1
1
<script >
2
2
// @ts-nocheck
3
3
import { primaryColor , secondaryColor } from " ../../../store/stores" ;
4
- import { Button , Accordion , AccordionSection , Badge } from " attractions" ;
4
+ import { Button , Accordion , AccordionSection , Badge , Switch , Checkbox , CheckboxGroup , RadioChip , Tabs , Dialog , Modal , TextField , Table } from " attractions" ;
5
5
6
6
let colorP;
7
7
let colorS;
16
16
17
17
let open = false ;
18
18
19
- let selectedTab = " Main dishes" ;
19
+ let selectedTab = " Tab 2" ;
20
+
21
+ const colors = [
22
+ { value: ' #ffffff' },
23
+ { value: ' #000000' },
24
+ ];
25
+
26
+ let modalOpen = false ;
27
+ let cardNumber = ' ' ;
28
+
29
+ const headers = [
30
+ { text: ' #' , value: ' #' },
31
+ { text: ' Elements' , value: ' Elements' },
32
+ ];
33
+ const items = [
34
+ { " #" : ' 0' , Elements: ' List Element 0' , },
35
+ { " #" : ' 1' , Elements: ' List Element 1' },
36
+ { " #" : ' 2' , Elements: ' List Element 2' },
37
+ ];
20
38
</script >
21
39
22
40
<div class =" container-ui-comparison" >
23
- <p >
24
- Very bad svelte kit support, <br />so no Integration of attractions
25
- </p >
26
41
<div class =" sub-container-button" >
27
- <Button round neutral outline style ={" background-color:" + colorP + " ; color:" + colorS }
28
- >Click me</Button
42
+ <Button filled style ={" background-color:" + colorP + " ; color:" + colorS }>Click me</Button >
43
+ </div >
44
+ <div class =" sub-container-button" >
45
+ <Switch />
46
+ </div >
47
+ <div class =" sub-container-button" >
48
+ <div style =" display: flex" >
49
+ <CheckboxGroup
50
+ class =" flex"
51
+ color
52
+ round
53
+ items ={colors }
54
+ name =" colors[]"
55
+ max ={1 }
56
+ />
57
+ </div >
58
+ </div >
59
+ <div class =" sub-container-button" >
60
+ <div style =" display:flex" >
61
+ <Checkbox
62
+ name =" subscribe"
63
+ value =" newsletter"
64
+ title =" Check me"
29
65
>
66
+ </Checkbox >
67
+ Check me
68
+ </div >
30
69
</div >
70
+
31
71
<div class =" sub-container-button" >
32
- <Badge >used on some text</Badge >
72
+ <RadioChip value =" Morning" name =" selection" outline >Morning</RadioChip >
73
+ <RadioChip value =" Afternoon" name =" selection" outline >Afternoon</RadioChip >
74
+ <RadioChip value =" Evening" name =" selection" outline >Evening</RadioChip >
75
+ </div >
76
+
77
+ <div class =" sub-container-button" >
78
+ <Tabs
79
+ name =" menu"
80
+ items ={[' Tab 1' , ' Tab 2' , ' Tab 3' ]}
81
+ bind:value ={selectedTab }
82
+ />
83
+ </div >
84
+
85
+ <div class =" sub-container-button" >
86
+ <Button on:click ={() => modalOpen = true }>click me</Button >
87
+ <Modal bind:open ={modalOpen } let:closeCallback >
88
+ <Dialog title ="Attractions Modal" {closeCallback }>
89
+ <div >
90
+ <br />
91
+ <p >Hello from Attractions Modal</p >
92
+ </div >
93
+ </Dialog >
94
+ </Modal >
95
+ </div >
96
+
97
+ <div class =" sub-container-button" style =" width: 100%; height: 100%; margin-top: 1em; margin-bottom: 1em" >
98
+ <TextField
99
+ placeholder =" Your Email"
100
+ bind:value ={cardNumber }
101
+ error ={cardNumber .startsWith (' 2' ) && ' We do not serve your bank.' }
102
+ />
33
103
</div >
34
104
35
105
<Accordion let:closeOtherPanels >
36
- {#each [0 , 1 , 2 , 3 , 4 ] as idx }
106
+ {#each [0 , 1 , 2 , 3 ] as idx }
37
107
<AccordionSection on:panel-open ={closeOtherPanels }>
38
108
<div slot =" handle" let:toggle >
39
109
<Button on:click ={toggle }>
46
116
{/each }
47
117
</Accordion >
48
118
</div >
119
+
120
+ <div class =" sub-container-button" style =" width: 100%; height: 100%; margin-top: 1em; margin-bottom: 1em" >
121
+ <Table {headers } {items } />
122
+ </div >
123
+
124
+ <style >
125
+ .flex {
126
+ display : " flex" ;
127
+ margin : 1em ;
128
+ padding : 1em ;
129
+
130
+ }
131
+ </style >
0 commit comments