@nuxt/ui 3.0.0-alpha.10 → 3.0.0-alpha.11
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/.nuxt/ui/alert.ts +75 -58
- package/.nuxt/ui/avatar-group.ts +13 -1
- package/.nuxt/ui/avatar.ts +13 -1
- package/.nuxt/ui/badge.ts +102 -65
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +124 -92
- package/.nuxt/ui/calendar.ts +20 -2
- package/.nuxt/ui/carousel.ts +5 -3
- package/.nuxt/ui/checkbox.ts +27 -9
- package/.nuxt/ui/chip.ts +36 -7
- package/.nuxt/ui/color-picker.ts +9 -1
- package/.nuxt/ui/context-menu.ts +32 -14
- package/.nuxt/ui/drawer.ts +11 -4
- package/.nuxt/ui/dropdown-menu.ts +32 -14
- package/.nuxt/ui/form-field.ts +9 -1
- package/.nuxt/ui/input-menu.ts +110 -75
- package/.nuxt/ui/input-number.ts +82 -51
- package/.nuxt/ui/input.ts +88 -53
- package/.nuxt/ui/kbd.ts +14 -2
- package/.nuxt/ui/navigation-menu.ts +114 -68
- package/.nuxt/ui/pin-input.ts +57 -31
- package/.nuxt/ui/popover.ts +1 -1
- package/.nuxt/ui/progress.ts +93 -54
- package/.nuxt/ui/radio-group.ts +25 -2
- package/.nuxt/ui/select-menu.ts +89 -54
- package/.nuxt/ui/select.ts +89 -54
- package/.nuxt/ui/separator.ts +52 -23
- package/.nuxt/ui/slideover.ts +11 -4
- package/.nuxt/ui/slider.ts +45 -22
- package/.nuxt/ui/stepper.ts +45 -23
- package/.nuxt/ui/switch.ts +20 -2
- package/.nuxt/ui/table.ts +30 -13
- package/.nuxt/ui/tabs.ts +67 -39
- package/.nuxt/ui/textarea.ts +88 -53
- package/.nuxt/ui/toast.ts +11 -1
- package/.nuxt/ui/toaster.ts +27 -11
- package/.nuxt/ui/tooltip.ts +1 -1
- package/README.md +8 -1
- package/cli/commands/make/component.mjs +12 -0
- package/cli/package.json +2 -2
- package/cli/templates.mjs +17 -12
- package/dist/client/devtools/200.html +1 -1
- package/dist/client/devtools/404.html +1 -1
- package/dist/client/devtools/_nuxt/CQ-XZFu7.js +54 -0
- package/dist/client/devtools/_nuxt/DNZFyo26.js +1 -0
- package/dist/client/devtools/_nuxt/Dtz-o9GB.js +1 -0
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/client/devtools/_nuxt/builds/meta/1f5fbd7b-9d97-480e-9ae4-e02b4ff7018b.json +1 -0
- package/dist/client/devtools/_nuxt/entry.qOdop8tq.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.D-rS9BDk.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.CfcCHs91.css +1 -0
- package/dist/client/devtools/index.html +1 -1
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Accordion.vue +2 -1
- package/dist/runtime/components/Alert.vue +3 -2
- package/dist/runtime/components/Avatar.vue +5 -4
- package/dist/runtime/components/AvatarGroup.vue +2 -1
- package/dist/runtime/components/Badge.vue +2 -1
- package/dist/runtime/components/Breadcrumb.vue +1 -1
- package/dist/runtime/components/Button.vue +2 -1
- package/dist/runtime/components/ButtonGroup.vue +2 -1
- package/dist/runtime/components/Calendar.vue +2 -1
- package/dist/runtime/components/Card.vue +1 -1
- package/dist/runtime/components/Carousel.vue +2 -1
- package/dist/runtime/components/Checkbox.vue +2 -1
- package/dist/runtime/components/Chip.vue +3 -2
- package/dist/runtime/components/Collapsible.vue +4 -2
- package/dist/runtime/components/ColorPicker.vue +2 -1
- package/dist/runtime/components/CommandPalette.vue +12 -5
- package/dist/runtime/components/Container.vue +1 -1
- package/dist/runtime/components/ContextMenu.vue +2 -1
- package/dist/runtime/components/ContextMenuContent.vue +3 -3
- package/dist/runtime/components/Drawer.vue +7 -2
- package/dist/runtime/components/DropdownMenu.vue +2 -1
- package/dist/runtime/components/DropdownMenuContent.vue +3 -3
- package/dist/runtime/components/Form.vue +15 -14
- package/dist/runtime/components/FormField.vue +2 -1
- package/dist/runtime/components/Input.vue +3 -2
- package/dist/runtime/components/InputMenu.vue +13 -2
- package/dist/runtime/components/InputNumber.vue +2 -1
- package/dist/runtime/components/Kbd.vue +2 -1
- package/dist/runtime/components/Link.vue +1 -1
- package/dist/runtime/components/Modal.vue +8 -13
- package/dist/runtime/components/NavigationMenu.vue +14 -9
- package/dist/runtime/components/Pagination.vue +1 -1
- package/dist/runtime/components/PinInput.vue +4 -3
- package/dist/runtime/components/Popover.vue +7 -6
- package/dist/runtime/components/Progress.vue +4 -3
- package/dist/runtime/components/RadioGroup.vue +2 -1
- package/dist/runtime/components/Select.vue +3 -2
- package/dist/runtime/components/SelectMenu.vue +20 -4
- package/dist/runtime/components/Separator.vue +2 -1
- package/dist/runtime/components/Skeleton.vue +1 -1
- package/dist/runtime/components/Slideover.vue +8 -12
- package/dist/runtime/components/Slider.vue +2 -1
- package/dist/runtime/components/Stepper.vue +6 -4
- package/dist/runtime/components/Switch.vue +2 -1
- package/dist/runtime/components/Table.vue +2 -1
- package/dist/runtime/components/Tabs.vue +3 -1
- package/dist/runtime/components/Textarea.vue +3 -2
- package/dist/runtime/components/Toast.vue +2 -1
- package/dist/runtime/components/Toaster.vue +2 -1
- package/dist/runtime/components/Tooltip.vue +1 -1
- package/dist/runtime/composables/defineShortcuts.js +1 -1
- package/dist/runtime/composables/useFormField.d.ts +1 -1
- package/dist/runtime/composables/useFormField.js +6 -3
- package/dist/runtime/locale/ar.js +3 -1
- package/dist/runtime/locale/cs.js +3 -1
- package/dist/runtime/locale/da.d.ts +2 -0
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.js +3 -1
- package/dist/runtime/locale/el.d.ts +2 -0
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.js +3 -1
- package/dist/runtime/locale/es.js +3 -1
- package/dist/runtime/locale/et.d.ts +2 -0
- package/dist/runtime/locale/et.js +54 -0
- package/dist/runtime/locale/fa_ir.js +3 -1
- package/dist/runtime/locale/fi.d.ts +2 -0
- package/dist/runtime/locale/fi.js +54 -0
- package/dist/runtime/locale/fr.js +3 -1
- package/dist/runtime/locale/id.d.ts +2 -0
- package/dist/runtime/locale/id.js +54 -0
- package/dist/runtime/locale/index.d.ts +9 -0
- package/dist/runtime/locale/index.js +9 -0
- package/dist/runtime/locale/it.js +3 -1
- package/dist/runtime/locale/ja.js +3 -1
- package/dist/runtime/locale/ko.js +3 -1
- package/dist/runtime/locale/nl.js +3 -1
- package/dist/runtime/locale/pl.js +3 -1
- package/dist/runtime/locale/pt.js +3 -1
- package/dist/runtime/locale/pt_br.js +3 -1
- package/dist/runtime/locale/ru.js +3 -1
- package/dist/runtime/locale/sk.js +3 -1
- package/dist/runtime/locale/sv.d.ts +2 -0
- package/dist/runtime/locale/sv.js +54 -0
- package/dist/runtime/locale/th.d.ts +2 -0
- package/dist/runtime/locale/th.js +54 -0
- package/dist/runtime/locale/tr.js +3 -1
- package/dist/runtime/locale/uk.d.ts +2 -0
- package/dist/runtime/locale/uk.js +54 -0
- package/dist/runtime/locale/vi.d.ts +2 -0
- package/dist/runtime/locale/vi.js +54 -0
- package/dist/runtime/locale/zh_hans.js +3 -1
- package/dist/runtime/locale/zh_hant.js +11 -9
- package/dist/runtime/types/form.d.ts +2 -2
- package/dist/runtime/types/form.js +2 -2
- package/dist/runtime/types/locale.d.ts +2 -0
- package/dist/runtime/utils/form.d.ts +2 -2
- package/dist/runtime/utils/form.js +3 -3
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/vue/components/Icon.vue +2 -2
- package/dist/runtime/vue/plugins/head.d.ts +1 -1
- package/dist/runtime/vue/plugins/head.js +3 -3
- package/dist/shared/{ui.D_93iuwH.mjs → ui.BKsd22-Q.mjs} +63 -36
- package/dist/shared/{ui.CwmIkD_Y.cjs → ui.DCjJwb6l.cjs} +63 -36
- package/dist/unplugin.cjs +5 -5
- package/dist/unplugin.mjs +5 -5
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +49 -44
- package/dist/client/devtools/_nuxt/B1fTd_Rf.js +0 -1
- package/dist/client/devtools/_nuxt/CSUxkedg.js +0 -1
- package/dist/client/devtools/_nuxt/CbRTGpb7.js +0 -1
- package/dist/client/devtools/_nuxt/YQTlxbcT.js +0 -53
- package/dist/client/devtools/_nuxt/builds/meta/b3465abc-0a92-4ee7-ba6b-e5174891fcc0.json +0 -1
- package/dist/client/devtools/_nuxt/entry.DXXceQev.css +0 -1
- package/dist/client/devtools/_nuxt/error-404.BJpkZFyY.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.D3i9VDlt.css +0 -1
package/.nuxt/ui/select.ts
CHANGED
|
@@ -1,19 +1,54 @@
|
|
|
1
|
+
const buttonGroup = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const size = [
|
|
7
|
+
"xs",
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg",
|
|
11
|
+
"xl"
|
|
12
|
+
] as const
|
|
13
|
+
|
|
14
|
+
const variant = [
|
|
15
|
+
"outline",
|
|
16
|
+
"soft",
|
|
17
|
+
"subtle",
|
|
18
|
+
"ghost",
|
|
19
|
+
"none"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
const color = [
|
|
23
|
+
"primary",
|
|
24
|
+
"secondary",
|
|
25
|
+
"success",
|
|
26
|
+
"info",
|
|
27
|
+
"warning",
|
|
28
|
+
"error",
|
|
29
|
+
"neutral"
|
|
30
|
+
] as const
|
|
31
|
+
|
|
32
|
+
const type = [
|
|
33
|
+
"file"
|
|
34
|
+
] as const
|
|
35
|
+
|
|
1
36
|
export default {
|
|
2
37
|
"slots": {
|
|
3
38
|
"base": [
|
|
4
39
|
"relative group rounded-[calc(var(--ui-radius)*1.5)] inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
5
40
|
"transition-colors"
|
|
6
41
|
],
|
|
7
|
-
"leading": "absolute inset-y-0 start-0 flex items-center"
|
|
42
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
8
43
|
"leadingIcon": "shrink-0 text-[var(--ui-text-dimmed)]",
|
|
9
44
|
"leadingAvatar": "shrink-0",
|
|
10
45
|
"leadingAvatarSize": "",
|
|
11
|
-
"trailing": "absolute inset-y-0 end-0 flex items-center"
|
|
46
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
12
47
|
"trailingIcon": "shrink-0 text-[var(--ui-text-dimmed)]",
|
|
13
48
|
"value": "truncate pointer-events-none",
|
|
14
49
|
"placeholder": "truncate text-[var(--ui-text-dimmed)]",
|
|
15
50
|
"arrow": "fill-[var(--ui-border)]",
|
|
16
|
-
"content": "max-h-60 w-[var(--reka-popper-anchor-width)] bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
51
|
+
"content": "max-h-60 w-[var(--reka-popper-anchor-width)] bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] pointer-events-auto",
|
|
17
52
|
"viewport": "divide-y divide-[var(--ui-border)] scroll-py-1",
|
|
18
53
|
"group": "p-1 isolate",
|
|
19
54
|
"empty": "py-2 text-center text-sm text-[var(--ui-text-muted)]",
|
|
@@ -43,8 +78,8 @@ export default {
|
|
|
43
78
|
"size": {
|
|
44
79
|
"xs": {
|
|
45
80
|
"base": "px-2 py-1 text-xs gap-1",
|
|
46
|
-
"leading": "ps-2"
|
|
47
|
-
"trailing": "pe-2"
|
|
81
|
+
"leading": "ps-2",
|
|
82
|
+
"trailing": "pe-2",
|
|
48
83
|
"leadingIcon": "size-4",
|
|
49
84
|
"leadingAvatarSize": "3xs",
|
|
50
85
|
"trailingIcon": "size-4",
|
|
@@ -58,8 +93,8 @@ export default {
|
|
|
58
93
|
},
|
|
59
94
|
"sm": {
|
|
60
95
|
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
61
|
-
"leading": "ps-2.5"
|
|
62
|
-
"trailing": "pe-2.5"
|
|
96
|
+
"leading": "ps-2.5",
|
|
97
|
+
"trailing": "pe-2.5",
|
|
63
98
|
"leadingIcon": "size-4",
|
|
64
99
|
"leadingAvatarSize": "3xs",
|
|
65
100
|
"trailingIcon": "size-4",
|
|
@@ -73,8 +108,8 @@ export default {
|
|
|
73
108
|
},
|
|
74
109
|
"md": {
|
|
75
110
|
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
76
|
-
"leading": "ps-2.5"
|
|
77
|
-
"trailing": "pe-2.5"
|
|
111
|
+
"leading": "ps-2.5",
|
|
112
|
+
"trailing": "pe-2.5",
|
|
78
113
|
"leadingIcon": "size-5",
|
|
79
114
|
"leadingAvatarSize": "2xs",
|
|
80
115
|
"trailingIcon": "size-5",
|
|
@@ -88,8 +123,8 @@ export default {
|
|
|
88
123
|
},
|
|
89
124
|
"lg": {
|
|
90
125
|
"base": "px-3 py-2 text-sm gap-2",
|
|
91
|
-
"leading": "ps-3"
|
|
92
|
-
"trailing": "pe-3"
|
|
126
|
+
"leading": "ps-3",
|
|
127
|
+
"trailing": "pe-3",
|
|
93
128
|
"leadingIcon": "size-5",
|
|
94
129
|
"leadingAvatarSize": "2xs",
|
|
95
130
|
"trailingIcon": "size-5",
|
|
@@ -103,8 +138,8 @@ export default {
|
|
|
103
138
|
},
|
|
104
139
|
"xl": {
|
|
105
140
|
"base": "px-3 py-2 text-base gap-2",
|
|
106
|
-
"leading": "ps-3"
|
|
107
|
-
"trailing": "pe-3"
|
|
141
|
+
"leading": "ps-3",
|
|
142
|
+
"trailing": "pe-3",
|
|
108
143
|
"leadingIcon": "size-6",
|
|
109
144
|
"leadingAvatarSize": "xs",
|
|
110
145
|
"trailingIcon": "size-6",
|
|
@@ -151,144 +186,144 @@ export default {
|
|
|
151
186
|
},
|
|
152
187
|
"compoundVariants": [
|
|
153
188
|
{
|
|
154
|
-
"color": "primary" as
|
|
189
|
+
"color": "primary" as typeof color[number],
|
|
155
190
|
"variant": [
|
|
156
|
-
"outline" as
|
|
157
|
-
"subtle" as
|
|
191
|
+
"outline" as typeof variant[number],
|
|
192
|
+
"subtle" as typeof variant[number]
|
|
158
193
|
],
|
|
159
194
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
160
195
|
},
|
|
161
196
|
{
|
|
162
|
-
"color": "secondary" as
|
|
197
|
+
"color": "secondary" as typeof color[number],
|
|
163
198
|
"variant": [
|
|
164
|
-
"outline" as
|
|
165
|
-
"subtle" as
|
|
199
|
+
"outline" as typeof variant[number],
|
|
200
|
+
"subtle" as typeof variant[number]
|
|
166
201
|
],
|
|
167
202
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
168
203
|
},
|
|
169
204
|
{
|
|
170
|
-
"color": "success" as
|
|
205
|
+
"color": "success" as typeof color[number],
|
|
171
206
|
"variant": [
|
|
172
|
-
"outline" as
|
|
173
|
-
"subtle" as
|
|
207
|
+
"outline" as typeof variant[number],
|
|
208
|
+
"subtle" as typeof variant[number]
|
|
174
209
|
],
|
|
175
210
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
|
|
176
211
|
},
|
|
177
212
|
{
|
|
178
|
-
"color": "info" as
|
|
213
|
+
"color": "info" as typeof color[number],
|
|
179
214
|
"variant": [
|
|
180
|
-
"outline" as
|
|
181
|
-
"subtle" as
|
|
215
|
+
"outline" as typeof variant[number],
|
|
216
|
+
"subtle" as typeof variant[number]
|
|
182
217
|
],
|
|
183
218
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
184
219
|
},
|
|
185
220
|
{
|
|
186
|
-
"color": "warning" as
|
|
221
|
+
"color": "warning" as typeof color[number],
|
|
187
222
|
"variant": [
|
|
188
|
-
"outline" as
|
|
189
|
-
"subtle" as
|
|
223
|
+
"outline" as typeof variant[number],
|
|
224
|
+
"subtle" as typeof variant[number]
|
|
190
225
|
],
|
|
191
226
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
192
227
|
},
|
|
193
228
|
{
|
|
194
|
-
"color": "error" as
|
|
229
|
+
"color": "error" as typeof color[number],
|
|
195
230
|
"variant": [
|
|
196
|
-
"outline" as
|
|
197
|
-
"subtle" as
|
|
231
|
+
"outline" as typeof variant[number],
|
|
232
|
+
"subtle" as typeof variant[number]
|
|
198
233
|
],
|
|
199
234
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
200
235
|
},
|
|
201
236
|
{
|
|
202
|
-
"color": "primary" as
|
|
237
|
+
"color": "primary" as typeof color[number],
|
|
203
238
|
"highlight": true,
|
|
204
239
|
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
205
240
|
},
|
|
206
241
|
{
|
|
207
|
-
"color": "secondary" as
|
|
242
|
+
"color": "secondary" as typeof color[number],
|
|
208
243
|
"highlight": true,
|
|
209
244
|
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
210
245
|
},
|
|
211
246
|
{
|
|
212
|
-
"color": "success" as
|
|
247
|
+
"color": "success" as typeof color[number],
|
|
213
248
|
"highlight": true,
|
|
214
249
|
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
215
250
|
},
|
|
216
251
|
{
|
|
217
|
-
"color": "info" as
|
|
252
|
+
"color": "info" as typeof color[number],
|
|
218
253
|
"highlight": true,
|
|
219
254
|
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
220
255
|
},
|
|
221
256
|
{
|
|
222
|
-
"color": "warning" as
|
|
257
|
+
"color": "warning" as typeof color[number],
|
|
223
258
|
"highlight": true,
|
|
224
259
|
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
225
260
|
},
|
|
226
261
|
{
|
|
227
|
-
"color": "error" as
|
|
262
|
+
"color": "error" as typeof color[number],
|
|
228
263
|
"highlight": true,
|
|
229
264
|
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
230
265
|
},
|
|
231
266
|
{
|
|
232
|
-
"color": "neutral" as
|
|
267
|
+
"color": "neutral" as typeof color[number],
|
|
233
268
|
"variant": [
|
|
234
|
-
"outline" as
|
|
235
|
-
"subtle" as
|
|
269
|
+
"outline" as typeof variant[number],
|
|
270
|
+
"subtle" as typeof variant[number]
|
|
236
271
|
],
|
|
237
272
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
238
273
|
},
|
|
239
274
|
{
|
|
240
|
-
"color": "neutral" as
|
|
275
|
+
"color": "neutral" as typeof color[number],
|
|
241
276
|
"highlight": true,
|
|
242
277
|
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
243
278
|
},
|
|
244
279
|
{
|
|
245
280
|
"leading": true,
|
|
246
|
-
"size": "xs" as
|
|
281
|
+
"size": "xs" as typeof size[number],
|
|
247
282
|
"class": "ps-7"
|
|
248
283
|
},
|
|
249
284
|
{
|
|
250
285
|
"leading": true,
|
|
251
|
-
"size": "sm" as
|
|
286
|
+
"size": "sm" as typeof size[number],
|
|
252
287
|
"class": "ps-8"
|
|
253
288
|
},
|
|
254
289
|
{
|
|
255
290
|
"leading": true,
|
|
256
|
-
"size": "md" as
|
|
291
|
+
"size": "md" as typeof size[number],
|
|
257
292
|
"class": "ps-9"
|
|
258
293
|
},
|
|
259
294
|
{
|
|
260
295
|
"leading": true,
|
|
261
|
-
"size": "lg" as
|
|
296
|
+
"size": "lg" as typeof size[number],
|
|
262
297
|
"class": "ps-10"
|
|
263
298
|
},
|
|
264
299
|
{
|
|
265
300
|
"leading": true,
|
|
266
|
-
"size": "xl" as
|
|
301
|
+
"size": "xl" as typeof size[number],
|
|
267
302
|
"class": "ps-11"
|
|
268
303
|
},
|
|
269
304
|
{
|
|
270
305
|
"trailing": true,
|
|
271
|
-
"size": "xs" as
|
|
306
|
+
"size": "xs" as typeof size[number],
|
|
272
307
|
"class": "pe-7"
|
|
273
308
|
},
|
|
274
309
|
{
|
|
275
310
|
"trailing": true,
|
|
276
|
-
"size": "sm" as
|
|
311
|
+
"size": "sm" as typeof size[number],
|
|
277
312
|
"class": "pe-8"
|
|
278
313
|
},
|
|
279
314
|
{
|
|
280
315
|
"trailing": true,
|
|
281
|
-
"size": "md" as
|
|
316
|
+
"size": "md" as typeof size[number],
|
|
282
317
|
"class": "pe-9"
|
|
283
318
|
},
|
|
284
319
|
{
|
|
285
320
|
"trailing": true,
|
|
286
|
-
"size": "lg" as
|
|
321
|
+
"size": "lg" as typeof size[number],
|
|
287
322
|
"class": "pe-10"
|
|
288
323
|
},
|
|
289
324
|
{
|
|
290
325
|
"trailing": true,
|
|
291
|
-
"size": "xl" as
|
|
326
|
+
"size": "xl" as typeof size[number],
|
|
292
327
|
"class": "pe-11"
|
|
293
328
|
},
|
|
294
329
|
{
|
|
@@ -308,8 +343,8 @@ export default {
|
|
|
308
343
|
}
|
|
309
344
|
],
|
|
310
345
|
"defaultVariants": {
|
|
311
|
-
"size": "md" as
|
|
312
|
-
"color": "primary" as
|
|
313
|
-
"variant": "outline" as
|
|
346
|
+
"size": "md" as typeof size[number],
|
|
347
|
+
"color": "primary" as typeof color[number],
|
|
348
|
+
"variant": "outline" as typeof variant[number]
|
|
314
349
|
}
|
|
315
350
|
}
|
package/.nuxt/ui/separator.ts
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const orientation = [
|
|
12
|
+
"horizontal",
|
|
13
|
+
"vertical"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const size = [
|
|
17
|
+
"xs",
|
|
18
|
+
"sm",
|
|
19
|
+
"md",
|
|
20
|
+
"lg",
|
|
21
|
+
"xl"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
const type = [
|
|
25
|
+
"solid",
|
|
26
|
+
"dashed",
|
|
27
|
+
"dotted"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
1
30
|
export default {
|
|
2
31
|
"slots": {
|
|
3
32
|
"root": "flex items-center align-center text-center",
|
|
@@ -65,79 +94,79 @@ export default {
|
|
|
65
94
|
},
|
|
66
95
|
"compoundVariants": [
|
|
67
96
|
{
|
|
68
|
-
"orientation": "horizontal" as
|
|
69
|
-
"size": "xs" as
|
|
97
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
98
|
+
"size": "xs" as typeof size[number],
|
|
70
99
|
"class": {
|
|
71
100
|
"border": "border-t"
|
|
72
101
|
}
|
|
73
102
|
},
|
|
74
103
|
{
|
|
75
|
-
"orientation": "horizontal" as
|
|
76
|
-
"size": "sm" as
|
|
104
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
105
|
+
"size": "sm" as typeof size[number],
|
|
77
106
|
"class": {
|
|
78
107
|
"border": "border-t-[2px]"
|
|
79
108
|
}
|
|
80
109
|
},
|
|
81
110
|
{
|
|
82
|
-
"orientation": "horizontal" as
|
|
83
|
-
"size": "md" as
|
|
111
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
112
|
+
"size": "md" as typeof size[number],
|
|
84
113
|
"class": {
|
|
85
114
|
"border": "border-t-[3px]"
|
|
86
115
|
}
|
|
87
116
|
},
|
|
88
117
|
{
|
|
89
|
-
"orientation": "horizontal" as
|
|
90
|
-
"size": "lg" as
|
|
118
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
|
+
"size": "lg" as typeof size[number],
|
|
91
120
|
"class": {
|
|
92
121
|
"border": "border-t-[4px]"
|
|
93
122
|
}
|
|
94
123
|
},
|
|
95
124
|
{
|
|
96
|
-
"orientation": "horizontal" as
|
|
97
|
-
"size": "xl" as
|
|
125
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
126
|
+
"size": "xl" as typeof size[number],
|
|
98
127
|
"class": {
|
|
99
128
|
"border": "border-t-[5px]"
|
|
100
129
|
}
|
|
101
130
|
},
|
|
102
131
|
{
|
|
103
|
-
"orientation": "vertical" as
|
|
104
|
-
"size": "xs" as
|
|
132
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
133
|
+
"size": "xs" as typeof size[number],
|
|
105
134
|
"class": {
|
|
106
135
|
"border": "border-s"
|
|
107
136
|
}
|
|
108
137
|
},
|
|
109
138
|
{
|
|
110
|
-
"orientation": "vertical" as
|
|
111
|
-
"size": "sm" as
|
|
139
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
140
|
+
"size": "sm" as typeof size[number],
|
|
112
141
|
"class": {
|
|
113
142
|
"border": "border-s-[2px]"
|
|
114
143
|
}
|
|
115
144
|
},
|
|
116
145
|
{
|
|
117
|
-
"orientation": "vertical" as
|
|
118
|
-
"size": "md" as
|
|
146
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
147
|
+
"size": "md" as typeof size[number],
|
|
119
148
|
"class": {
|
|
120
149
|
"border": "border-s-[3px]"
|
|
121
150
|
}
|
|
122
151
|
},
|
|
123
152
|
{
|
|
124
|
-
"orientation": "vertical" as
|
|
125
|
-
"size": "lg" as
|
|
153
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
154
|
+
"size": "lg" as typeof size[number],
|
|
126
155
|
"class": {
|
|
127
156
|
"border": "border-s-[4px]"
|
|
128
157
|
}
|
|
129
158
|
},
|
|
130
159
|
{
|
|
131
|
-
"orientation": "vertical" as
|
|
132
|
-
"size": "xl" as
|
|
160
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
161
|
+
"size": "xl" as typeof size[number],
|
|
133
162
|
"class": {
|
|
134
163
|
"border": "border-s-[5px]"
|
|
135
164
|
}
|
|
136
165
|
}
|
|
137
166
|
],
|
|
138
167
|
"defaultVariants": {
|
|
139
|
-
"color": "neutral" as
|
|
140
|
-
"size": "xs" as
|
|
141
|
-
"type": "solid" as
|
|
168
|
+
"color": "neutral" as typeof color[number],
|
|
169
|
+
"size": "xs" as typeof size[number],
|
|
170
|
+
"type": "solid" as typeof type[number]
|
|
142
171
|
}
|
|
143
172
|
}
|
package/.nuxt/ui/slideover.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
const side = [
|
|
2
|
+
"top",
|
|
3
|
+
"right",
|
|
4
|
+
"bottom",
|
|
5
|
+
"left"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
1
8
|
export default {
|
|
2
9
|
"slots": {
|
|
3
10
|
"overlay": "fixed inset-0 bg-[var(--ui-bg-elevated)]/75",
|
|
@@ -33,28 +40,28 @@ export default {
|
|
|
33
40
|
"compoundVariants": [
|
|
34
41
|
{
|
|
35
42
|
"transition": true,
|
|
36
|
-
"side": "top" as
|
|
43
|
+
"side": "top" as typeof side[number],
|
|
37
44
|
"class": {
|
|
38
45
|
"content": "data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"
|
|
39
46
|
}
|
|
40
47
|
},
|
|
41
48
|
{
|
|
42
49
|
"transition": true,
|
|
43
|
-
"side": "right" as
|
|
50
|
+
"side": "right" as typeof side[number],
|
|
44
51
|
"class": {
|
|
45
52
|
"content": "data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"
|
|
46
53
|
}
|
|
47
54
|
},
|
|
48
55
|
{
|
|
49
56
|
"transition": true,
|
|
50
|
-
"side": "bottom" as
|
|
57
|
+
"side": "bottom" as typeof side[number],
|
|
51
58
|
"class": {
|
|
52
59
|
"content": "data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"
|
|
53
60
|
}
|
|
54
61
|
},
|
|
55
62
|
{
|
|
56
63
|
"transition": true,
|
|
57
|
-
"side": "left" as
|
|
64
|
+
"side": "left" as typeof side[number],
|
|
58
65
|
"class": {
|
|
59
66
|
"content": "data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"
|
|
60
67
|
}
|
package/.nuxt/ui/slider.ts
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
const orientation = [
|
|
20
|
+
"horizontal",
|
|
21
|
+
"vertical"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
1
24
|
export default {
|
|
2
25
|
"slots": {
|
|
3
26
|
"root": "relative flex items-center select-none touch-none",
|
|
@@ -71,78 +94,78 @@ export default {
|
|
|
71
94
|
},
|
|
72
95
|
"compoundVariants": [
|
|
73
96
|
{
|
|
74
|
-
"orientation": "horizontal" as
|
|
75
|
-
"size": "xs" as
|
|
97
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
98
|
+
"size": "xs" as typeof size[number],
|
|
76
99
|
"class": {
|
|
77
100
|
"track": "h-[6px]"
|
|
78
101
|
}
|
|
79
102
|
},
|
|
80
103
|
{
|
|
81
|
-
"orientation": "horizontal" as
|
|
82
|
-
"size": "sm" as
|
|
104
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
105
|
+
"size": "sm" as typeof size[number],
|
|
83
106
|
"class": {
|
|
84
107
|
"track": "h-[7px]"
|
|
85
108
|
}
|
|
86
109
|
},
|
|
87
110
|
{
|
|
88
|
-
"orientation": "horizontal" as
|
|
89
|
-
"size": "md" as
|
|
111
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
112
|
+
"size": "md" as typeof size[number],
|
|
90
113
|
"class": {
|
|
91
114
|
"track": "h-[8px]"
|
|
92
115
|
}
|
|
93
116
|
},
|
|
94
117
|
{
|
|
95
|
-
"orientation": "horizontal" as
|
|
96
|
-
"size": "lg" as
|
|
118
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
|
+
"size": "lg" as typeof size[number],
|
|
97
120
|
"class": {
|
|
98
121
|
"track": "h-[9px]"
|
|
99
122
|
}
|
|
100
123
|
},
|
|
101
124
|
{
|
|
102
|
-
"orientation": "horizontal" as
|
|
103
|
-
"size": "xl" as
|
|
125
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
126
|
+
"size": "xl" as typeof size[number],
|
|
104
127
|
"class": {
|
|
105
128
|
"track": "h-[10px]"
|
|
106
129
|
}
|
|
107
130
|
},
|
|
108
131
|
{
|
|
109
|
-
"orientation": "vertical" as
|
|
110
|
-
"size": "xs" as
|
|
132
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
133
|
+
"size": "xs" as typeof size[number],
|
|
111
134
|
"class": {
|
|
112
135
|
"track": "w-[6px]"
|
|
113
136
|
}
|
|
114
137
|
},
|
|
115
138
|
{
|
|
116
|
-
"orientation": "vertical" as
|
|
117
|
-
"size": "sm" as
|
|
139
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
140
|
+
"size": "sm" as typeof size[number],
|
|
118
141
|
"class": {
|
|
119
142
|
"track": "w-[7px]"
|
|
120
143
|
}
|
|
121
144
|
},
|
|
122
145
|
{
|
|
123
|
-
"orientation": "vertical" as
|
|
124
|
-
"size": "md" as
|
|
146
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
147
|
+
"size": "md" as typeof size[number],
|
|
125
148
|
"class": {
|
|
126
149
|
"track": "w-[8px]"
|
|
127
150
|
}
|
|
128
151
|
},
|
|
129
152
|
{
|
|
130
|
-
"orientation": "vertical" as
|
|
131
|
-
"size": "lg" as
|
|
153
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
154
|
+
"size": "lg" as typeof size[number],
|
|
132
155
|
"class": {
|
|
133
156
|
"track": "w-[9px]"
|
|
134
157
|
}
|
|
135
158
|
},
|
|
136
159
|
{
|
|
137
|
-
"orientation": "vertical" as
|
|
138
|
-
"size": "xl" as
|
|
160
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
161
|
+
"size": "xl" as typeof size[number],
|
|
139
162
|
"class": {
|
|
140
163
|
"track": "w-[10px]"
|
|
141
164
|
}
|
|
142
165
|
}
|
|
143
166
|
],
|
|
144
167
|
"defaultVariants": {
|
|
145
|
-
"size": "md" as
|
|
146
|
-
"color": "primary" as
|
|
168
|
+
"size": "md" as typeof size[number],
|
|
169
|
+
"color": "primary" as typeof color[number]
|
|
147
170
|
}
|
|
148
171
|
}
|