@nuxt/ui 3.0.0-alpha.10 → 3.0.0-alpha.12
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 +76 -59
- package/.nuxt/ui/avatar-group.ts +13 -1
- package/.nuxt/ui/avatar.ts +14 -2
- package/.nuxt/ui/badge.ts +102 -65
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +124 -93
- 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 +31 -13
- package/.nuxt/ui/drawer.ts +11 -4
- package/.nuxt/ui/dropdown-menu.ts +31 -13
- 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 +193 -79
- 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 +21 -16
- package/dist/chunks/component-meta.cjs +2590 -2511
- package/dist/chunks/component-meta.mjs +2590 -2511
- package/dist/client/devtools/200.html +1 -1
- package/dist/client/devtools/404.html +1 -1
- package/dist/client/devtools/_nuxt/CgoQwOTV.js +57 -0
- package/dist/client/devtools/_nuxt/DLmPhbaq.js +1 -0
- package/dist/client/devtools/_nuxt/DYuJNiSW.js +1 -0
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/client/devtools/_nuxt/builds/meta/3184ffe2-7577-4441-af98-fe6e81c30e3a.json +1 -0
- package/dist/client/devtools/_nuxt/entry.ChJczkiN.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.DyY3rYaL.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.D_1PCaJh.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 +4 -3
- package/dist/runtime/components/Alert.vue +5 -4
- package/dist/runtime/components/Avatar.vue +35 -13
- package/dist/runtime/components/AvatarGroup.vue +4 -3
- package/dist/runtime/components/Badge.vue +4 -3
- package/dist/runtime/components/Breadcrumb.vue +3 -3
- package/dist/runtime/components/Button.vue +4 -3
- package/dist/runtime/components/ButtonGroup.vue +4 -3
- package/dist/runtime/components/Calendar.vue +6 -3
- package/dist/runtime/components/Card.vue +3 -3
- package/dist/runtime/components/Carousel.vue +4 -3
- package/dist/runtime/components/Checkbox.vue +6 -5
- package/dist/runtime/components/Chip.vue +5 -4
- package/dist/runtime/components/Collapsible.vue +6 -4
- package/dist/runtime/components/ColorPicker.vue +48 -16
- package/dist/runtime/components/CommandPalette.vue +14 -7
- package/dist/runtime/components/Container.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue +4 -3
- package/dist/runtime/components/ContextMenuContent.vue +4 -4
- package/dist/runtime/components/Drawer.vue +9 -4
- package/dist/runtime/components/DropdownMenu.vue +4 -3
- package/dist/runtime/components/DropdownMenuContent.vue +4 -4
- package/dist/runtime/components/Form.vue +59 -29
- package/dist/runtime/components/FormField.vue +14 -7
- package/dist/runtime/components/Input.vue +7 -5
- package/dist/runtime/components/InputMenu.vue +19 -7
- package/dist/runtime/components/InputNumber.vue +9 -5
- package/dist/runtime/components/Kbd.vue +4 -3
- package/dist/runtime/components/Link.vue +3 -3
- package/dist/runtime/components/Modal.vue +10 -15
- package/dist/runtime/components/NavigationMenu.vue +97 -69
- package/dist/runtime/components/Pagination.vue +3 -3
- package/dist/runtime/components/PinInput.vue +9 -7
- package/dist/runtime/components/Popover.vue +9 -8
- package/dist/runtime/components/Progress.vue +6 -5
- package/dist/runtime/components/RadioGroup.vue +6 -5
- package/dist/runtime/components/Select.vue +12 -9
- package/dist/runtime/components/SelectMenu.vue +25 -8
- package/dist/runtime/components/Separator.vue +4 -3
- package/dist/runtime/components/Skeleton.vue +3 -3
- package/dist/runtime/components/Slideover.vue +10 -14
- package/dist/runtime/components/Slider.vue +6 -5
- package/dist/runtime/components/Stepper.vue +8 -6
- package/dist/runtime/components/Switch.vue +6 -5
- package/dist/runtime/components/Table.vue +4 -3
- package/dist/runtime/components/Tabs.vue +5 -3
- package/dist/runtime/components/Textarea.vue +7 -5
- package/dist/runtime/components/Toast.vue +4 -3
- package/dist/runtime/components/Toaster.vue +4 -3
- package/dist/runtime/components/Tooltip.vue +3 -3
- package/dist/runtime/composables/defineShortcuts.js +1 -1
- package/dist/runtime/composables/useFormField.d.ts +7 -3
- package/dist/runtime/composables/useFormField.js +18 -8
- package/dist/runtime/composables/useToast.d.ts +1 -1
- package/dist/runtime/composables/useToast.js +21 -7
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/locale/ar.js +3 -1
- package/dist/runtime/locale/cs.js +3 -1
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.js +3 -1
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.js +3 -1
- package/dist/runtime/locale/es.js +5 -3
- 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/he.d.ts +2 -0
- package/dist/runtime/locale/he.js +53 -0
- package/dist/runtime/locale/hi.d.ts +2 -0
- package/dist/runtime/locale/hi.js +54 -0
- package/dist/runtime/locale/hu.d.ts +2 -0
- package/dist/runtime/locale/hu.js +54 -0
- package/dist/runtime/locale/id.d.ts +2 -0
- package/dist/runtime/locale/id.js +54 -0
- package/dist/runtime/locale/index.d.ts +14 -2
- package/dist/runtime/locale/index.js +14 -2
- package/dist/runtime/locale/it.js +3 -1
- package/dist/runtime/locale/ja.js +3 -1
- package/dist/runtime/locale/km.d.ts +2 -0
- package/dist/runtime/locale/km.js +54 -0
- package/dist/runtime/locale/ko.js +3 -1
- package/dist/runtime/locale/nb_no.d.ts +2 -0
- package/dist/runtime/locale/nb_no.js +54 -0
- 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_cn.d.ts +2 -0
- package/dist/runtime/locale/{zh_hans.js → zh_cn.js} +4 -2
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +12 -10
- package/dist/runtime/plugins/colors.js +7 -4
- package/dist/runtime/types/form.d.ts +23 -14
- 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 +5 -7
- 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/components/Link.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.CENZ17mM.mjs} +131 -48
- package/dist/shared/{ui.CwmIkD_Y.cjs → ui.ClMXjgLK.cjs} +131 -48
- 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 +55 -51
- 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/dist/runtime/locale/{zh_hans.d.ts → da.d.ts} +0 -0
- /package/dist/runtime/locale/{zh_hant.d.ts → el.d.ts} +0 -0
|
@@ -1,14 +1,50 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const highlightColor = [
|
|
12
|
+
"primary",
|
|
13
|
+
"secondary",
|
|
14
|
+
"success",
|
|
15
|
+
"info",
|
|
16
|
+
"warning",
|
|
17
|
+
"error",
|
|
18
|
+
"neutral"
|
|
19
|
+
] as const
|
|
20
|
+
|
|
21
|
+
const variant = [
|
|
22
|
+
"pill",
|
|
23
|
+
"link"
|
|
24
|
+
] as const
|
|
25
|
+
|
|
26
|
+
const orientation = [
|
|
27
|
+
"horizontal",
|
|
28
|
+
"vertical"
|
|
29
|
+
] as const
|
|
30
|
+
|
|
31
|
+
const contentOrientation = [
|
|
32
|
+
"horizontal",
|
|
33
|
+
"vertical"
|
|
34
|
+
] as const
|
|
35
|
+
|
|
1
36
|
export default {
|
|
2
37
|
"slots": {
|
|
3
38
|
"root": "relative flex gap-1.5 [&>div]:min-w-0",
|
|
4
39
|
"list": "isolate min-w-0",
|
|
40
|
+
"label": "w-full flex items-center gap-1.5 font-semibold text-xs/5 text-[var(--ui-text-highlighted)] px-2.5 py-1.5",
|
|
5
41
|
"item": "min-w-0",
|
|
6
42
|
"link": "group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-[calc(var(--ui-radius)*1.5)] focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
|
|
7
43
|
"linkLeadingIcon": "shrink-0 size-5",
|
|
8
44
|
"linkLeadingAvatar": "shrink-0",
|
|
9
45
|
"linkLeadingAvatarSize": "2xs",
|
|
10
46
|
"linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
11
|
-
"linkTrailingBadge": "shrink-0
|
|
47
|
+
"linkTrailingBadge": "shrink-0",
|
|
12
48
|
"linkTrailingBadgeSize": "sm",
|
|
13
49
|
"linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
14
50
|
"linkLabel": "truncate",
|
|
@@ -22,10 +58,10 @@ export default {
|
|
|
22
58
|
"childLinkLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]",
|
|
23
59
|
"childLinkDescription": "text-sm text-[var(--ui-text-muted)]",
|
|
24
60
|
"separator": "px-2 h-px bg-[var(--ui-border)]",
|
|
25
|
-
"viewportWrapper": "absolute top-full left-0 flex w-full
|
|
26
|
-
"viewport": "relative overflow-hidden bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] h-[var(--reka-navigation-menu-viewport-height)] w-full transition-[width,height] origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
27
|
-
"content": "absolute top-0 left-0 w-full
|
|
28
|
-
"indicator": "data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] bottom-0 z-[1] flex h-2.5 items-end justify-center overflow-hidden transition-
|
|
61
|
+
"viewportWrapper": "absolute top-full left-0 flex w-full",
|
|
62
|
+
"viewport": "relative overflow-hidden bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] h-[var(--reka-navigation-menu-viewport-height)] w-full transition-[width,height,left] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
63
|
+
"content": "absolute top-0 left-0 w-full",
|
|
64
|
+
"indicator": "absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[1] w-[var(--reka-navigation-menu-indicator-size)] translate-x-[var(--reka-navigation-menu-indicator-position)] flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",
|
|
29
65
|
"arrow": "relative top-[50%] size-2.5 rotate-45 border border-[var(--ui-border)] bg-[var(--ui-bg)] z-[1] rounded-[calc(var(--ui-radius)/2)]"
|
|
30
66
|
},
|
|
31
67
|
"variants": {
|
|
@@ -74,17 +110,26 @@ export default {
|
|
|
74
110
|
},
|
|
75
111
|
"orientation": {
|
|
76
112
|
"horizontal": {
|
|
77
|
-
"root": "
|
|
113
|
+
"root": "items-center justify-between",
|
|
78
114
|
"list": "flex items-center",
|
|
79
115
|
"item": "py-2",
|
|
80
116
|
"link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
|
|
81
|
-
"childList": "grid
|
|
117
|
+
"childList": "grid p-2"
|
|
82
118
|
},
|
|
83
119
|
"vertical": {
|
|
84
120
|
"root": "flex-col",
|
|
85
|
-
"link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
|
|
86
|
-
|
|
87
|
-
|
|
121
|
+
"link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"contentOrientation": {
|
|
125
|
+
"horizontal": {
|
|
126
|
+
"viewport": "",
|
|
127
|
+
"viewportWrapper": "justify-center",
|
|
128
|
+
"content": "data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"
|
|
129
|
+
},
|
|
130
|
+
"vertical": {
|
|
131
|
+
"viewport": "sm:w-[var(--reka-navigation-menu-viewport-width)] left-[var(--reka-navigation-menu-viewport-left)]",
|
|
132
|
+
"content": ""
|
|
88
133
|
}
|
|
89
134
|
},
|
|
90
135
|
"active": {
|
|
@@ -112,124 +157,161 @@ export default {
|
|
|
112
157
|
},
|
|
113
158
|
"highlight": {
|
|
114
159
|
"true": ""
|
|
160
|
+
},
|
|
161
|
+
"level": {
|
|
162
|
+
"true": ""
|
|
163
|
+
},
|
|
164
|
+
"collapsed": {
|
|
165
|
+
"true": ""
|
|
115
166
|
}
|
|
116
167
|
},
|
|
117
168
|
"compoundVariants": [
|
|
118
169
|
{
|
|
170
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
171
|
+
"contentOrientation": "horizontal" as typeof contentOrientation[number],
|
|
172
|
+
"class": {
|
|
173
|
+
"childList": "grid-cols-2 gap-2"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
178
|
+
"contentOrientation": "vertical" as typeof contentOrientation[number],
|
|
179
|
+
"class": {
|
|
180
|
+
"childList": "gap-1",
|
|
181
|
+
"content": "w-60"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
186
|
"highlight": true,
|
|
120
|
-
"orientation": "horizontal" as const,
|
|
121
187
|
"class": {
|
|
122
188
|
"item": "-mb-px",
|
|
123
|
-
"link":
|
|
189
|
+
"link": [
|
|
190
|
+
"after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full",
|
|
191
|
+
"after:transition-colors"
|
|
192
|
+
]
|
|
124
193
|
}
|
|
125
194
|
},
|
|
126
195
|
{
|
|
196
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
127
197
|
"highlight": true,
|
|
128
|
-
"
|
|
198
|
+
"level": true,
|
|
129
199
|
"class": {
|
|
130
|
-
"
|
|
131
|
-
|
|
200
|
+
"link": [
|
|
201
|
+
"after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full",
|
|
202
|
+
"after:transition-colors"
|
|
203
|
+
]
|
|
132
204
|
}
|
|
133
205
|
},
|
|
134
206
|
{
|
|
135
207
|
"disabled": false,
|
|
136
208
|
"active": false,
|
|
137
|
-
"variant": "pill" as
|
|
209
|
+
"variant": "pill" as typeof variant[number],
|
|
138
210
|
"class": {
|
|
139
211
|
"link": [
|
|
140
|
-
"hover:text-[var(--ui-text-highlighted)] hover:before:bg-[var(--ui-bg-elevated)]/50
|
|
212
|
+
"hover:text-[var(--ui-text-highlighted)] hover:before:bg-[var(--ui-bg-elevated)]/50",
|
|
141
213
|
"transition-colors before:transition-colors"
|
|
142
214
|
],
|
|
143
215
|
"linkLeadingIcon": [
|
|
144
|
-
"group-hover:text-[var(--ui-text)]
|
|
216
|
+
"group-hover:text-[var(--ui-text)]",
|
|
145
217
|
"transition-colors"
|
|
146
218
|
]
|
|
147
219
|
}
|
|
148
220
|
},
|
|
149
221
|
{
|
|
150
222
|
"disabled": false,
|
|
151
|
-
"
|
|
223
|
+
"active": false,
|
|
224
|
+
"variant": "pill" as typeof variant[number],
|
|
225
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
226
|
+
"class": {
|
|
227
|
+
"link": "data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
228
|
+
"linkLeadingIcon": "group-data-[state=open]:text-[var(--ui-text)]"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"disabled": false,
|
|
233
|
+
"variant": "pill" as typeof variant[number],
|
|
152
234
|
"highlight": true,
|
|
153
|
-
"orientation": "horizontal" as
|
|
235
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
154
236
|
"class": {
|
|
155
237
|
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
156
238
|
}
|
|
157
239
|
},
|
|
158
240
|
{
|
|
159
241
|
"disabled": false,
|
|
160
|
-
"variant": "pill" as
|
|
242
|
+
"variant": "pill" as typeof variant[number],
|
|
161
243
|
"highlight": false,
|
|
162
244
|
"active": false,
|
|
163
|
-
"orientation": "horizontal" as
|
|
245
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
164
246
|
"class": {
|
|
165
247
|
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
166
248
|
}
|
|
167
249
|
},
|
|
168
250
|
{
|
|
169
|
-
"color": "primary" as
|
|
170
|
-
"variant": "pill" as
|
|
251
|
+
"color": "primary" as typeof color[number],
|
|
252
|
+
"variant": "pill" as typeof variant[number],
|
|
171
253
|
"active": true,
|
|
172
254
|
"class": {
|
|
173
255
|
"link": "text-[var(--ui-primary)]",
|
|
174
|
-
"linkLeadingIcon": "text-[var(--ui-primary)]"
|
|
256
|
+
"linkLeadingIcon": "text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
175
257
|
}
|
|
176
258
|
},
|
|
177
259
|
{
|
|
178
|
-
"color": "secondary" as
|
|
179
|
-
"variant": "pill" as
|
|
260
|
+
"color": "secondary" as typeof color[number],
|
|
261
|
+
"variant": "pill" as typeof variant[number],
|
|
180
262
|
"active": true,
|
|
181
263
|
"class": {
|
|
182
264
|
"link": "text-[var(--ui-secondary)]",
|
|
183
|
-
"linkLeadingIcon": "text-[var(--ui-secondary)]"
|
|
265
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
184
266
|
}
|
|
185
267
|
},
|
|
186
268
|
{
|
|
187
|
-
"color": "success" as
|
|
188
|
-
"variant": "pill" as
|
|
269
|
+
"color": "success" as typeof color[number],
|
|
270
|
+
"variant": "pill" as typeof variant[number],
|
|
189
271
|
"active": true,
|
|
190
272
|
"class": {
|
|
191
273
|
"link": "text-[var(--ui-success)]",
|
|
192
|
-
"linkLeadingIcon": "text-[var(--ui-success)]"
|
|
274
|
+
"linkLeadingIcon": "text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
193
275
|
}
|
|
194
276
|
},
|
|
195
277
|
{
|
|
196
|
-
"color": "info" as
|
|
197
|
-
"variant": "pill" as
|
|
278
|
+
"color": "info" as typeof color[number],
|
|
279
|
+
"variant": "pill" as typeof variant[number],
|
|
198
280
|
"active": true,
|
|
199
281
|
"class": {
|
|
200
282
|
"link": "text-[var(--ui-info)]",
|
|
201
|
-
"linkLeadingIcon": "text-[var(--ui-info)]"
|
|
283
|
+
"linkLeadingIcon": "text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
202
284
|
}
|
|
203
285
|
},
|
|
204
286
|
{
|
|
205
|
-
"color": "warning" as
|
|
206
|
-
"variant": "pill" as
|
|
287
|
+
"color": "warning" as typeof color[number],
|
|
288
|
+
"variant": "pill" as typeof variant[number],
|
|
207
289
|
"active": true,
|
|
208
290
|
"class": {
|
|
209
291
|
"link": "text-[var(--ui-warning)]",
|
|
210
|
-
"linkLeadingIcon": "text-[var(--ui-warning)]"
|
|
292
|
+
"linkLeadingIcon": "text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
211
293
|
}
|
|
212
294
|
},
|
|
213
295
|
{
|
|
214
|
-
"color": "error" as
|
|
215
|
-
"variant": "pill" as
|
|
296
|
+
"color": "error" as typeof color[number],
|
|
297
|
+
"variant": "pill" as typeof variant[number],
|
|
216
298
|
"active": true,
|
|
217
299
|
"class": {
|
|
218
300
|
"link": "text-[var(--ui-error)]",
|
|
219
|
-
"linkLeadingIcon": "text-[var(--ui-error)]"
|
|
301
|
+
"linkLeadingIcon": "text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
220
302
|
}
|
|
221
303
|
},
|
|
222
304
|
{
|
|
223
|
-
"color": "neutral" as
|
|
224
|
-
"variant": "pill" as
|
|
305
|
+
"color": "neutral" as typeof color[number],
|
|
306
|
+
"variant": "pill" as typeof variant[number],
|
|
225
307
|
"active": true,
|
|
226
308
|
"class": {
|
|
227
309
|
"link": "text-[var(--ui-text-highlighted)]",
|
|
228
|
-
"linkLeadingIcon": "text-[var(--ui-text-highlighted)]"
|
|
310
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)] group-data-[state=open]:text-[var(--ui-text-highlighted)]"
|
|
229
311
|
}
|
|
230
312
|
},
|
|
231
313
|
{
|
|
232
|
-
"variant": "pill" as
|
|
314
|
+
"variant": "pill" as typeof variant[number],
|
|
233
315
|
"active": true,
|
|
234
316
|
"highlight": false,
|
|
235
317
|
"class": {
|
|
@@ -237,7 +319,7 @@ export default {
|
|
|
237
319
|
}
|
|
238
320
|
},
|
|
239
321
|
{
|
|
240
|
-
"variant": "pill" as
|
|
322
|
+
"variant": "pill" as typeof variant[number],
|
|
241
323
|
"active": true,
|
|
242
324
|
"highlight": true,
|
|
243
325
|
"class": {
|
|
@@ -250,141 +332,173 @@ export default {
|
|
|
250
332
|
{
|
|
251
333
|
"disabled": false,
|
|
252
334
|
"active": false,
|
|
253
|
-
"variant": "link" as
|
|
335
|
+
"variant": "link" as typeof variant[number],
|
|
254
336
|
"class": {
|
|
255
337
|
"link": [
|
|
256
|
-
"hover:text-[var(--ui-text-highlighted)]
|
|
338
|
+
"hover:text-[var(--ui-text-highlighted)]",
|
|
257
339
|
"transition-colors"
|
|
258
340
|
],
|
|
259
341
|
"linkLeadingIcon": [
|
|
260
|
-
"group-hover:text-[var(--ui-text)]
|
|
342
|
+
"group-hover:text-[var(--ui-text)]",
|
|
261
343
|
"transition-colors"
|
|
262
344
|
]
|
|
263
345
|
}
|
|
264
346
|
},
|
|
265
347
|
{
|
|
266
|
-
"
|
|
267
|
-
"
|
|
348
|
+
"disabled": false,
|
|
349
|
+
"active": false,
|
|
350
|
+
"variant": "link" as typeof variant[number],
|
|
351
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
352
|
+
"class": {
|
|
353
|
+
"link": "data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
354
|
+
"linkLeadingIcon": "group-data-[state=open]:text-[var(--ui-text)]"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"color": "primary" as typeof color[number],
|
|
359
|
+
"variant": "link" as typeof variant[number],
|
|
268
360
|
"active": true,
|
|
269
361
|
"class": {
|
|
270
362
|
"link": "text-[var(--ui-primary)]",
|
|
271
|
-
"linkLeadingIcon": "text-[var(--ui-primary)]"
|
|
363
|
+
"linkLeadingIcon": "text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
272
364
|
}
|
|
273
365
|
},
|
|
274
366
|
{
|
|
275
|
-
"color": "secondary" as
|
|
276
|
-
"variant": "link" as
|
|
367
|
+
"color": "secondary" as typeof color[number],
|
|
368
|
+
"variant": "link" as typeof variant[number],
|
|
277
369
|
"active": true,
|
|
278
370
|
"class": {
|
|
279
371
|
"link": "text-[var(--ui-secondary)]",
|
|
280
|
-
"linkLeadingIcon": "text-[var(--ui-secondary)]"
|
|
372
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
281
373
|
}
|
|
282
374
|
},
|
|
283
375
|
{
|
|
284
|
-
"color": "success" as
|
|
285
|
-
"variant": "link" as
|
|
376
|
+
"color": "success" as typeof color[number],
|
|
377
|
+
"variant": "link" as typeof variant[number],
|
|
286
378
|
"active": true,
|
|
287
379
|
"class": {
|
|
288
380
|
"link": "text-[var(--ui-success)]",
|
|
289
|
-
"linkLeadingIcon": "text-[var(--ui-success)]"
|
|
381
|
+
"linkLeadingIcon": "text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
290
382
|
}
|
|
291
383
|
},
|
|
292
384
|
{
|
|
293
|
-
"color": "info" as
|
|
294
|
-
"variant": "link" as
|
|
385
|
+
"color": "info" as typeof color[number],
|
|
386
|
+
"variant": "link" as typeof variant[number],
|
|
295
387
|
"active": true,
|
|
296
388
|
"class": {
|
|
297
389
|
"link": "text-[var(--ui-info)]",
|
|
298
|
-
"linkLeadingIcon": "text-[var(--ui-info)]"
|
|
390
|
+
"linkLeadingIcon": "text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
299
391
|
}
|
|
300
392
|
},
|
|
301
393
|
{
|
|
302
|
-
"color": "warning" as
|
|
303
|
-
"variant": "link" as
|
|
394
|
+
"color": "warning" as typeof color[number],
|
|
395
|
+
"variant": "link" as typeof variant[number],
|
|
304
396
|
"active": true,
|
|
305
397
|
"class": {
|
|
306
398
|
"link": "text-[var(--ui-warning)]",
|
|
307
|
-
"linkLeadingIcon": "text-[var(--ui-warning)]"
|
|
399
|
+
"linkLeadingIcon": "text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
308
400
|
}
|
|
309
401
|
},
|
|
310
402
|
{
|
|
311
|
-
"color": "error" as
|
|
312
|
-
"variant": "link" as
|
|
403
|
+
"color": "error" as typeof color[number],
|
|
404
|
+
"variant": "link" as typeof variant[number],
|
|
313
405
|
"active": true,
|
|
314
406
|
"class": {
|
|
315
407
|
"link": "text-[var(--ui-error)]",
|
|
316
|
-
"linkLeadingIcon": "text-[var(--ui-error)]"
|
|
408
|
+
"linkLeadingIcon": "text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
317
409
|
}
|
|
318
410
|
},
|
|
319
411
|
{
|
|
320
|
-
"color": "neutral" as
|
|
321
|
-
"variant": "link" as
|
|
412
|
+
"color": "neutral" as typeof color[number],
|
|
413
|
+
"variant": "link" as typeof variant[number],
|
|
322
414
|
"active": true,
|
|
323
415
|
"class": {
|
|
324
416
|
"link": "text-[var(--ui-text-highlighted)]",
|
|
325
|
-
"linkLeadingIcon": "text-[var(--ui-text-highlighted)]"
|
|
417
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)] group-data-[state=open]:text-[var(--ui-text-highlighted)]"
|
|
326
418
|
}
|
|
327
419
|
},
|
|
328
420
|
{
|
|
329
|
-
"highlightColor": "primary" as
|
|
421
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
330
422
|
"highlight": true,
|
|
423
|
+
"level": true,
|
|
331
424
|
"active": true,
|
|
332
425
|
"class": {
|
|
333
426
|
"link": "after:bg-[var(--ui-primary)]"
|
|
334
427
|
}
|
|
335
428
|
},
|
|
336
429
|
{
|
|
337
|
-
"highlightColor": "secondary" as
|
|
430
|
+
"highlightColor": "secondary" as typeof highlightColor[number],
|
|
338
431
|
"highlight": true,
|
|
432
|
+
"level": true,
|
|
339
433
|
"active": true,
|
|
340
434
|
"class": {
|
|
341
435
|
"link": "after:bg-[var(--ui-secondary)]"
|
|
342
436
|
}
|
|
343
437
|
},
|
|
344
438
|
{
|
|
345
|
-
"highlightColor": "success" as
|
|
439
|
+
"highlightColor": "success" as typeof highlightColor[number],
|
|
346
440
|
"highlight": true,
|
|
441
|
+
"level": true,
|
|
347
442
|
"active": true,
|
|
348
443
|
"class": {
|
|
349
444
|
"link": "after:bg-[var(--ui-success)]"
|
|
350
445
|
}
|
|
351
446
|
},
|
|
352
447
|
{
|
|
353
|
-
"highlightColor": "info" as
|
|
448
|
+
"highlightColor": "info" as typeof highlightColor[number],
|
|
354
449
|
"highlight": true,
|
|
450
|
+
"level": true,
|
|
355
451
|
"active": true,
|
|
356
452
|
"class": {
|
|
357
453
|
"link": "after:bg-[var(--ui-info)]"
|
|
358
454
|
}
|
|
359
455
|
},
|
|
360
456
|
{
|
|
361
|
-
"highlightColor": "warning" as
|
|
457
|
+
"highlightColor": "warning" as typeof highlightColor[number],
|
|
362
458
|
"highlight": true,
|
|
459
|
+
"level": true,
|
|
363
460
|
"active": true,
|
|
364
461
|
"class": {
|
|
365
462
|
"link": "after:bg-[var(--ui-warning)]"
|
|
366
463
|
}
|
|
367
464
|
},
|
|
368
465
|
{
|
|
369
|
-
"highlightColor": "error" as
|
|
466
|
+
"highlightColor": "error" as typeof highlightColor[number],
|
|
370
467
|
"highlight": true,
|
|
468
|
+
"level": true,
|
|
371
469
|
"active": true,
|
|
372
470
|
"class": {
|
|
373
471
|
"link": "after:bg-[var(--ui-error)]"
|
|
374
472
|
}
|
|
375
473
|
},
|
|
376
474
|
{
|
|
377
|
-
"highlightColor": "neutral" as
|
|
475
|
+
"highlightColor": "neutral" as typeof highlightColor[number],
|
|
378
476
|
"highlight": true,
|
|
477
|
+
"level": true,
|
|
379
478
|
"active": true,
|
|
380
479
|
"class": {
|
|
381
480
|
"link": "after:bg-[var(--ui-bg-inverted)]"
|
|
382
481
|
}
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
485
|
+
"collapsed": false,
|
|
486
|
+
"class": {
|
|
487
|
+
"childList": "ms-5 border-s border-[var(--ui-border)]",
|
|
488
|
+
"childItem": "ps-1.5 -ms-px"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
493
|
+
"collapsed": true,
|
|
494
|
+
"class": {
|
|
495
|
+
"link": "px-1.5"
|
|
496
|
+
}
|
|
383
497
|
}
|
|
384
498
|
],
|
|
385
499
|
"defaultVariants": {
|
|
386
|
-
"color": "primary" as
|
|
387
|
-
"highlightColor": "primary" as
|
|
388
|
-
"variant": "pill" as
|
|
500
|
+
"color": "primary" as typeof color[number],
|
|
501
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
502
|
+
"variant": "pill" as typeof variant[number]
|
|
389
503
|
}
|
|
390
504
|
}
|
package/.nuxt/ui/pin-input.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
const variant = [
|
|
10
|
+
"outline",
|
|
11
|
+
"soft",
|
|
12
|
+
"subtle",
|
|
13
|
+
"ghost",
|
|
14
|
+
"none"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
17
|
+
const color = [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"success",
|
|
21
|
+
"info",
|
|
22
|
+
"warning",
|
|
23
|
+
"error",
|
|
24
|
+
"neutral"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
1
27
|
export default {
|
|
2
28
|
"slots": {
|
|
3
29
|
"root": "relative inline-flex items-center gap-1.5",
|
|
@@ -46,100 +72,100 @@ export default {
|
|
|
46
72
|
},
|
|
47
73
|
"compoundVariants": [
|
|
48
74
|
{
|
|
49
|
-
"color": "primary" as
|
|
75
|
+
"color": "primary" as typeof color[number],
|
|
50
76
|
"variant": [
|
|
51
|
-
"outline" as
|
|
52
|
-
"subtle" as
|
|
77
|
+
"outline" as typeof variant[number],
|
|
78
|
+
"subtle" as typeof variant[number]
|
|
53
79
|
],
|
|
54
80
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
55
81
|
},
|
|
56
82
|
{
|
|
57
|
-
"color": "secondary" as
|
|
83
|
+
"color": "secondary" as typeof color[number],
|
|
58
84
|
"variant": [
|
|
59
|
-
"outline" as
|
|
60
|
-
"subtle" as
|
|
85
|
+
"outline" as typeof variant[number],
|
|
86
|
+
"subtle" as typeof variant[number]
|
|
61
87
|
],
|
|
62
88
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
63
89
|
},
|
|
64
90
|
{
|
|
65
|
-
"color": "success" as
|
|
91
|
+
"color": "success" as typeof color[number],
|
|
66
92
|
"variant": [
|
|
67
|
-
"outline" as
|
|
68
|
-
"subtle" as
|
|
93
|
+
"outline" as typeof variant[number],
|
|
94
|
+
"subtle" as typeof variant[number]
|
|
69
95
|
],
|
|
70
96
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
|
|
71
97
|
},
|
|
72
98
|
{
|
|
73
|
-
"color": "info" as
|
|
99
|
+
"color": "info" as typeof color[number],
|
|
74
100
|
"variant": [
|
|
75
|
-
"outline" as
|
|
76
|
-
"subtle" as
|
|
101
|
+
"outline" as typeof variant[number],
|
|
102
|
+
"subtle" as typeof variant[number]
|
|
77
103
|
],
|
|
78
104
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
79
105
|
},
|
|
80
106
|
{
|
|
81
|
-
"color": "warning" as
|
|
107
|
+
"color": "warning" as typeof color[number],
|
|
82
108
|
"variant": [
|
|
83
|
-
"outline" as
|
|
84
|
-
"subtle" as
|
|
109
|
+
"outline" as typeof variant[number],
|
|
110
|
+
"subtle" as typeof variant[number]
|
|
85
111
|
],
|
|
86
112
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
87
113
|
},
|
|
88
114
|
{
|
|
89
|
-
"color": "error" as
|
|
115
|
+
"color": "error" as typeof color[number],
|
|
90
116
|
"variant": [
|
|
91
|
-
"outline" as
|
|
92
|
-
"subtle" as
|
|
117
|
+
"outline" as typeof variant[number],
|
|
118
|
+
"subtle" as typeof variant[number]
|
|
93
119
|
],
|
|
94
120
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
95
121
|
},
|
|
96
122
|
{
|
|
97
|
-
"color": "primary" as
|
|
123
|
+
"color": "primary" as typeof color[number],
|
|
98
124
|
"highlight": true,
|
|
99
125
|
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
100
126
|
},
|
|
101
127
|
{
|
|
102
|
-
"color": "secondary" as
|
|
128
|
+
"color": "secondary" as typeof color[number],
|
|
103
129
|
"highlight": true,
|
|
104
130
|
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
105
131
|
},
|
|
106
132
|
{
|
|
107
|
-
"color": "success" as
|
|
133
|
+
"color": "success" as typeof color[number],
|
|
108
134
|
"highlight": true,
|
|
109
135
|
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
110
136
|
},
|
|
111
137
|
{
|
|
112
|
-
"color": "info" as
|
|
138
|
+
"color": "info" as typeof color[number],
|
|
113
139
|
"highlight": true,
|
|
114
140
|
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
115
141
|
},
|
|
116
142
|
{
|
|
117
|
-
"color": "warning" as
|
|
143
|
+
"color": "warning" as typeof color[number],
|
|
118
144
|
"highlight": true,
|
|
119
145
|
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
120
146
|
},
|
|
121
147
|
{
|
|
122
|
-
"color": "error" as
|
|
148
|
+
"color": "error" as typeof color[number],
|
|
123
149
|
"highlight": true,
|
|
124
150
|
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
125
151
|
},
|
|
126
152
|
{
|
|
127
|
-
"color": "neutral" as
|
|
153
|
+
"color": "neutral" as typeof color[number],
|
|
128
154
|
"variant": [
|
|
129
|
-
"outline" as
|
|
130
|
-
"subtle" as
|
|
155
|
+
"outline" as typeof variant[number],
|
|
156
|
+
"subtle" as typeof variant[number]
|
|
131
157
|
],
|
|
132
158
|
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
133
159
|
},
|
|
134
160
|
{
|
|
135
|
-
"color": "neutral" as
|
|
161
|
+
"color": "neutral" as typeof color[number],
|
|
136
162
|
"highlight": true,
|
|
137
163
|
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
138
164
|
}
|
|
139
165
|
],
|
|
140
166
|
"defaultVariants": {
|
|
141
|
-
"size": "md" as
|
|
142
|
-
"color": "primary" as
|
|
143
|
-
"variant": "outline" as
|
|
167
|
+
"size": "md" as typeof size[number],
|
|
168
|
+
"color": "primary" as typeof color[number],
|
|
169
|
+
"variant": "outline" as typeof variant[number]
|
|
144
170
|
}
|
|
145
171
|
}
|