svelte-multistyle-ui 0.0.6-alpha → 0.0.8-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bin.js +3 -0
- package/cli/emit.js +3 -5
- package/cli/fixtures/sample.expected.svelte +229 -56
- package/cli/fixtures/sample.yaml +254 -128
- package/cli/generate.js +438 -7
- package/dist/components/Accordion.svelte +3 -1
- package/dist/components/Accordion.svelte.d.ts +2 -0
- package/dist/components/Alert.svelte +5 -3
- package/dist/components/Alert.svelte.d.ts +4 -2
- package/dist/components/Avatar.svelte +3 -1
- package/dist/components/Avatar.svelte.d.ts +2 -0
- package/dist/components/Breadcrumb.svelte +3 -2
- package/dist/components/Breadcrumb.svelte.d.ts +2 -0
- package/dist/components/Button.svelte +3 -1
- package/dist/components/Button.svelte.d.ts +2 -0
- package/dist/components/ButtonGroup.svelte +3 -1
- package/dist/components/ButtonGroup.svelte.d.ts +2 -0
- package/dist/components/Card.svelte +2 -1
- package/dist/components/Carousel.svelte +3 -1
- package/dist/components/Carousel.svelte.d.ts +2 -0
- package/dist/components/Checkbox.svelte +3 -1
- package/dist/components/Checkbox.svelte.d.ts +2 -0
- package/dist/components/Chip.svelte +3 -1
- package/dist/components/Chip.svelte.d.ts +2 -0
- package/dist/components/Column.svelte +2 -1
- package/dist/components/CommandPalette.svelte +3 -1
- package/dist/components/CommandPalette.svelte.d.ts +2 -0
- package/dist/components/DatePicker.svelte +3 -1
- package/dist/components/DatePicker.svelte.d.ts +2 -0
- package/dist/components/Divider.svelte +3 -1
- package/dist/components/Divider.svelte.d.ts +2 -0
- package/dist/components/Drawer.svelte +3 -1
- package/dist/components/Drawer.svelte.d.ts +2 -0
- package/dist/components/DropdownMenu.svelte +3 -1
- package/dist/components/DropdownMenu.svelte.d.ts +2 -0
- package/dist/components/FAB.svelte +3 -1
- package/dist/components/FAB.svelte.d.ts +2 -0
- package/dist/components/FileUpload.svelte +3 -1
- package/dist/components/FileUpload.svelte.d.ts +2 -0
- package/dist/components/Grid.svelte +2 -1
- package/dist/components/IconButton.svelte +3 -1
- package/dist/components/IconButton.svelte.d.ts +2 -0
- package/dist/components/Input.svelte +3 -1
- package/dist/components/Input.svelte.d.ts +2 -0
- package/dist/components/Modal.svelte +3 -1
- package/dist/components/Modal.svelte.d.ts +2 -0
- package/dist/components/MultiSelect.svelte +3 -1
- package/dist/components/MultiSelect.svelte.d.ts +2 -0
- package/dist/components/Pagination.svelte +3 -1
- package/dist/components/Pagination.svelte.d.ts +2 -0
- package/dist/components/Popover.svelte +3 -1
- package/dist/components/Popover.svelte.d.ts +2 -0
- package/dist/components/ProgressBar.svelte +3 -1
- package/dist/components/ProgressBar.svelte.d.ts +2 -0
- package/dist/components/Radio.svelte +3 -1
- package/dist/components/Radio.svelte.d.ts +2 -0
- package/dist/components/Rating.svelte +3 -1
- package/dist/components/Rating.svelte.d.ts +2 -0
- package/dist/components/Row.svelte +2 -1
- package/dist/components/Select.svelte +3 -1
- package/dist/components/Select.svelte.d.ts +2 -0
- package/dist/components/Skeleton.svelte +3 -1
- package/dist/components/Skeleton.svelte.d.ts +2 -0
- package/dist/components/Slider.svelte +3 -1
- package/dist/components/Slider.svelte.d.ts +2 -0
- package/dist/components/SortableList.svelte +3 -1
- package/dist/components/SortableList.svelte.d.ts +2 -0
- package/dist/components/Spinner.svelte +3 -1
- package/dist/components/Spinner.svelte.d.ts +2 -0
- package/dist/components/Stepper.svelte +3 -1
- package/dist/components/Stepper.svelte.d.ts +2 -0
- package/dist/components/Table.svelte +3 -1
- package/dist/components/Table.svelte.d.ts +2 -0
- package/dist/components/Tabs.svelte +3 -1
- package/dist/components/Tabs.svelte.d.ts +2 -0
- package/dist/components/Textarea.svelte +3 -1
- package/dist/components/Textarea.svelte.d.ts +2 -0
- package/dist/components/Toast.svelte +7 -5
- package/dist/components/Toast.svelte.d.ts +2 -0
- package/dist/components/Toggle.svelte +3 -1
- package/dist/components/Toggle.svelte.d.ts +2 -0
- package/dist/components/Tooltip.svelte +3 -1
- package/dist/components/Tooltip.svelte.d.ts +2 -0
- package/dist/components/charts/BarChart.svelte +2 -2
- package/dist/components/charts/BarChart.svelte.d.ts +2 -0
- package/dist/components/charts/BubbleChart.svelte +2 -2
- package/dist/components/charts/BubbleChart.svelte.d.ts +2 -0
- package/dist/components/charts/Chart.svelte +3 -1
- package/dist/components/charts/Chart.svelte.d.ts +2 -0
- package/dist/components/charts/ComboChart.svelte +2 -2
- package/dist/components/charts/ComboChart.svelte.d.ts +2 -0
- package/dist/components/charts/DoughnutChart.svelte +2 -2
- package/dist/components/charts/DoughnutChart.svelte.d.ts +2 -0
- package/dist/components/charts/LineChart.svelte +2 -2
- package/dist/components/charts/LineChart.svelte.d.ts +2 -0
- package/dist/components/charts/PieChart.svelte +2 -2
- package/dist/components/charts/PieChart.svelte.d.ts +2 -0
- package/dist/components/charts/PolarAreaChart.svelte +2 -2
- package/dist/components/charts/PolarAreaChart.svelte.d.ts +2 -0
- package/dist/components/charts/RadarChart.svelte +2 -2
- package/dist/components/charts/RadarChart.svelte.d.ts +2 -0
- package/dist/components/charts/ScatterChart.svelte +2 -2
- package/dist/components/charts/ScatterChart.svelte.d.ts +2 -0
- package/dist/components/charts/StackedBarChart.svelte +2 -2
- package/dist/components/charts/StackedBarChart.svelte.d.ts +2 -0
- package/dist/components/charts/StackedLineChart.svelte +2 -2
- package/dist/components/charts/StackedLineChart.svelte.d.ts +2 -0
- package/dist/components/select-styles.css +6 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/utils/cn.d.ts +1 -0
- package/dist/utils/cn.js +9 -0
- package/package.json +4 -3
package/cli/fixtures/sample.yaml
CHANGED
|
@@ -1,128 +1,254 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
1
|
+
- Card:
|
|
2
|
+
- Row:
|
|
3
|
+
- Input:
|
|
4
|
+
label: Username
|
|
5
|
+
placeholder: Enter name
|
|
6
|
+
|
|
7
|
+
- Card:
|
|
8
|
+
- Row:
|
|
9
|
+
- Input:
|
|
10
|
+
label: Email
|
|
11
|
+
placeholder: Enter email
|
|
12
|
+
|
|
13
|
+
- Card:
|
|
14
|
+
- Row:
|
|
15
|
+
- Button:
|
|
16
|
+
label: Submit
|
|
17
|
+
|
|
18
|
+
- Card:
|
|
19
|
+
- Row:
|
|
20
|
+
- Select:
|
|
21
|
+
placeholder: Fruit
|
|
22
|
+
options:
|
|
23
|
+
- value: apple
|
|
24
|
+
label: Apple
|
|
25
|
+
- value: banana
|
|
26
|
+
label: Banana
|
|
27
|
+
- value: cherry
|
|
28
|
+
label: Cherry
|
|
29
|
+
|
|
30
|
+
- Card:
|
|
31
|
+
- Row:
|
|
32
|
+
- MultiSelect:
|
|
33
|
+
placeholder: Hobbies
|
|
34
|
+
options:
|
|
35
|
+
- value: reading
|
|
36
|
+
label: Reading
|
|
37
|
+
- value: traveling
|
|
38
|
+
label: Traveling
|
|
39
|
+
- value: cooking
|
|
40
|
+
label: Cooking
|
|
41
|
+
|
|
42
|
+
- Card:
|
|
43
|
+
- Row:
|
|
44
|
+
- Textarea:
|
|
45
|
+
label: Bio
|
|
46
|
+
placeholder: Tell us about yourself
|
|
47
|
+
rows: 4
|
|
48
|
+
|
|
49
|
+
- Card:
|
|
50
|
+
- Row:
|
|
51
|
+
- Checkbox:
|
|
52
|
+
label: Subscribe to newsletter
|
|
53
|
+
|
|
54
|
+
- Card:
|
|
55
|
+
- Row:
|
|
56
|
+
- Toggle:
|
|
57
|
+
label: Enable notifications
|
|
58
|
+
|
|
59
|
+
- Card:
|
|
60
|
+
- Row:
|
|
61
|
+
- Radio:
|
|
62
|
+
label: Plan A
|
|
63
|
+
value: plan-a
|
|
64
|
+
|
|
65
|
+
- Card:
|
|
66
|
+
- Row:
|
|
67
|
+
- Radio:
|
|
68
|
+
label: Plan B
|
|
69
|
+
value: plan-b
|
|
70
|
+
|
|
71
|
+
- Card:
|
|
72
|
+
- Row:
|
|
73
|
+
- Slider:
|
|
74
|
+
label: Volume
|
|
75
|
+
min: 0
|
|
76
|
+
max: 100
|
|
77
|
+
|
|
78
|
+
- Card:
|
|
79
|
+
- Row:
|
|
80
|
+
- DatePicker:
|
|
81
|
+
label: Start date
|
|
82
|
+
|
|
83
|
+
- Card:
|
|
84
|
+
- Row:
|
|
85
|
+
- FileUpload:
|
|
86
|
+
label: Upload resume
|
|
87
|
+
|
|
88
|
+
- Card:
|
|
89
|
+
- Row:
|
|
90
|
+
- ButtonGroup:
|
|
91
|
+
items:
|
|
92
|
+
- value: grid
|
|
93
|
+
label: Grid
|
|
94
|
+
- value: list
|
|
95
|
+
label: List
|
|
96
|
+
|
|
97
|
+
- Card:
|
|
98
|
+
- Row:
|
|
99
|
+
- Rating:
|
|
100
|
+
max: 5
|
|
101
|
+
|
|
102
|
+
- Card:
|
|
103
|
+
- Row:
|
|
104
|
+
- Chip:
|
|
105
|
+
children: Tag
|
|
106
|
+
|
|
107
|
+
- Card:
|
|
108
|
+
- Row:
|
|
109
|
+
- IconButton:
|
|
110
|
+
icon: search
|
|
111
|
+
ariaLabel: Search
|
|
112
|
+
|
|
113
|
+
- Card:
|
|
114
|
+
- Row:
|
|
115
|
+
- Tabs:
|
|
116
|
+
tabs:
|
|
117
|
+
- id: home
|
|
118
|
+
label: Home
|
|
119
|
+
- id: profile
|
|
120
|
+
label: Profile
|
|
121
|
+
|
|
122
|
+
- Card:
|
|
123
|
+
- Row:
|
|
124
|
+
- Breadcrumb:
|
|
125
|
+
items:
|
|
126
|
+
- label: Home
|
|
127
|
+
href: /
|
|
128
|
+
- label: Products
|
|
129
|
+
- label: Details
|
|
130
|
+
|
|
131
|
+
- Card:
|
|
132
|
+
- Row:
|
|
133
|
+
- Stepper:
|
|
134
|
+
steps:
|
|
135
|
+
- label: Cart
|
|
136
|
+
- label: Shipping
|
|
137
|
+
- label: Payment
|
|
138
|
+
current: 1
|
|
139
|
+
|
|
140
|
+
- Card:
|
|
141
|
+
- Row:
|
|
142
|
+
- Pagination:
|
|
143
|
+
total: 100
|
|
144
|
+
perPage: 10
|
|
145
|
+
|
|
146
|
+
- Card:
|
|
147
|
+
- Row:
|
|
148
|
+
- Accordion:
|
|
149
|
+
items:
|
|
150
|
+
- id: faq-1
|
|
151
|
+
title: What is this?
|
|
152
|
+
content: A multi-style UI library.
|
|
153
|
+
- id: faq-2
|
|
154
|
+
title: How do I use it?
|
|
155
|
+
content: Import components and pick a style.
|
|
156
|
+
|
|
157
|
+
- Card:
|
|
158
|
+
- Row:
|
|
159
|
+
- DropdownMenu:
|
|
160
|
+
items:
|
|
161
|
+
- label: Edit
|
|
162
|
+
- label: Delete
|
|
163
|
+
- divider: true
|
|
164
|
+
- label: Share
|
|
165
|
+
|
|
166
|
+
- Card:
|
|
167
|
+
- Row:
|
|
168
|
+
- Tooltip:
|
|
169
|
+
text: Hover tip
|
|
170
|
+
children: Info
|
|
171
|
+
|
|
172
|
+
- Card:
|
|
173
|
+
- Row:
|
|
174
|
+
- Popover:
|
|
175
|
+
children: Trigger
|
|
176
|
+
content: Popover body
|
|
177
|
+
|
|
178
|
+
- Card:
|
|
179
|
+
- Row:
|
|
180
|
+
- Alert:
|
|
181
|
+
preset: success
|
|
182
|
+
title: Done
|
|
183
|
+
children: Your changes were saved.
|
|
184
|
+
|
|
185
|
+
- Card:
|
|
186
|
+
- Row:
|
|
187
|
+
- ProgressBar:
|
|
188
|
+
value: 60
|
|
189
|
+
|
|
190
|
+
- Card:
|
|
191
|
+
- Row:
|
|
192
|
+
- Spinner:
|
|
193
|
+
|
|
194
|
+
- Card:
|
|
195
|
+
- Row:
|
|
196
|
+
- Skeleton:
|
|
197
|
+
|
|
198
|
+
- Card:
|
|
199
|
+
- Row:
|
|
200
|
+
- Divider:
|
|
201
|
+
|
|
202
|
+
- Card:
|
|
203
|
+
- Row:
|
|
204
|
+
- Avatar:
|
|
205
|
+
src: ""
|
|
206
|
+
fallback: JD
|
|
207
|
+
|
|
208
|
+
- Card:
|
|
209
|
+
- Row:
|
|
210
|
+
- Grid:
|
|
211
|
+
columns: 2
|
|
212
|
+
children: Grid cell
|
|
213
|
+
|
|
214
|
+
- Card:
|
|
215
|
+
- Row:
|
|
216
|
+
- Column:
|
|
217
|
+
children: Column cell
|
|
218
|
+
|
|
219
|
+
- Card:
|
|
220
|
+
- Row:
|
|
221
|
+
- Table:
|
|
222
|
+
|
|
223
|
+
- Card:
|
|
224
|
+
- Row:
|
|
225
|
+
- BarChart:
|
|
226
|
+
title: Quarterly Revenue
|
|
227
|
+
xAxisLabel: Quarter
|
|
228
|
+
yAxisLabel: Revenue
|
|
229
|
+
downloadable: true
|
|
230
|
+
|
|
231
|
+
- Card:
|
|
232
|
+
- Row:
|
|
233
|
+
- LineChart:
|
|
234
|
+
title: Trend
|
|
235
|
+
|
|
236
|
+
- Card:
|
|
237
|
+
- Row:
|
|
238
|
+
- PieChart:
|
|
239
|
+
title: Share
|
|
240
|
+
|
|
241
|
+
- Card:
|
|
242
|
+
- Row:
|
|
243
|
+
- DoughnutChart:
|
|
244
|
+
title: Distribution
|
|
245
|
+
|
|
246
|
+
- Card:
|
|
247
|
+
- Row:
|
|
248
|
+
- RadarChart:
|
|
249
|
+
title: Radar
|
|
250
|
+
|
|
251
|
+
- Card:
|
|
252
|
+
- Row:
|
|
253
|
+
- PolarAreaChart:
|
|
254
|
+
title: Polar
|