@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
|
@@ -1,3 +1,33 @@
|
|
|
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
|
+
|
|
1
31
|
export default {
|
|
2
32
|
"slots": {
|
|
3
33
|
"root": "relative flex gap-1.5 [&>div]:min-w-0",
|
|
@@ -8,7 +38,7 @@ export default {
|
|
|
8
38
|
"linkLeadingAvatar": "shrink-0",
|
|
9
39
|
"linkLeadingAvatarSize": "2xs",
|
|
10
40
|
"linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
11
|
-
"linkTrailingBadge": "shrink-0
|
|
41
|
+
"linkTrailingBadge": "shrink-0",
|
|
12
42
|
"linkTrailingBadgeSize": "sm",
|
|
13
43
|
"linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
14
44
|
"linkLabel": "truncate",
|
|
@@ -25,7 +55,7 @@ export default {
|
|
|
25
55
|
"viewportWrapper": "absolute top-full left-0 flex w-full justify-center",
|
|
26
56
|
"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
57
|
"content": "absolute top-0 left-0 w-full 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]",
|
|
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-
|
|
58
|
+
"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
59
|
"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
60
|
},
|
|
31
61
|
"variants": {
|
|
@@ -74,7 +104,7 @@ export default {
|
|
|
74
104
|
},
|
|
75
105
|
"orientation": {
|
|
76
106
|
"horizontal": {
|
|
77
|
-
"root": "
|
|
107
|
+
"root": "items-center justify-between",
|
|
78
108
|
"list": "flex items-center",
|
|
79
109
|
"item": "py-2",
|
|
80
110
|
"link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
|
|
@@ -112,29 +142,38 @@ export default {
|
|
|
112
142
|
},
|
|
113
143
|
"highlight": {
|
|
114
144
|
"true": ""
|
|
145
|
+
},
|
|
146
|
+
"level": {
|
|
147
|
+
"true": ""
|
|
115
148
|
}
|
|
116
149
|
},
|
|
117
150
|
"compoundVariants": [
|
|
118
151
|
{
|
|
152
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
153
|
"highlight": true,
|
|
120
|
-
"orientation": "horizontal" as const,
|
|
121
154
|
"class": {
|
|
122
155
|
"item": "-mb-px",
|
|
123
|
-
"link":
|
|
156
|
+
"link": [
|
|
157
|
+
"after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full",
|
|
158
|
+
"after:transition-colors"
|
|
159
|
+
]
|
|
124
160
|
}
|
|
125
161
|
},
|
|
126
162
|
{
|
|
163
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
127
164
|
"highlight": true,
|
|
128
|
-
"
|
|
165
|
+
"level": true,
|
|
129
166
|
"class": {
|
|
130
|
-
"
|
|
131
|
-
|
|
167
|
+
"link": [
|
|
168
|
+
"after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full",
|
|
169
|
+
"after:transition-colors"
|
|
170
|
+
]
|
|
132
171
|
}
|
|
133
172
|
},
|
|
134
173
|
{
|
|
135
174
|
"disabled": false,
|
|
136
175
|
"active": false,
|
|
137
|
-
"variant": "pill" as
|
|
176
|
+
"variant": "pill" as typeof variant[number],
|
|
138
177
|
"class": {
|
|
139
178
|
"link": [
|
|
140
179
|
"hover:text-[var(--ui-text-highlighted)] hover:before:bg-[var(--ui-bg-elevated)]/50 data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
@@ -148,88 +187,88 @@ export default {
|
|
|
148
187
|
},
|
|
149
188
|
{
|
|
150
189
|
"disabled": false,
|
|
151
|
-
"variant": "pill" as
|
|
190
|
+
"variant": "pill" as typeof variant[number],
|
|
152
191
|
"highlight": true,
|
|
153
|
-
"orientation": "horizontal" as
|
|
192
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
154
193
|
"class": {
|
|
155
194
|
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
156
195
|
}
|
|
157
196
|
},
|
|
158
197
|
{
|
|
159
198
|
"disabled": false,
|
|
160
|
-
"variant": "pill" as
|
|
199
|
+
"variant": "pill" as typeof variant[number],
|
|
161
200
|
"highlight": false,
|
|
162
201
|
"active": false,
|
|
163
|
-
"orientation": "horizontal" as
|
|
202
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
164
203
|
"class": {
|
|
165
204
|
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
166
205
|
}
|
|
167
206
|
},
|
|
168
207
|
{
|
|
169
|
-
"color": "primary" as
|
|
170
|
-
"variant": "pill" as
|
|
208
|
+
"color": "primary" as typeof color[number],
|
|
209
|
+
"variant": "pill" as typeof variant[number],
|
|
171
210
|
"active": true,
|
|
172
211
|
"class": {
|
|
173
212
|
"link": "text-[var(--ui-primary)]",
|
|
174
|
-
"linkLeadingIcon": "text-[var(--ui-primary)]"
|
|
213
|
+
"linkLeadingIcon": "text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
175
214
|
}
|
|
176
215
|
},
|
|
177
216
|
{
|
|
178
|
-
"color": "secondary" as
|
|
179
|
-
"variant": "pill" as
|
|
217
|
+
"color": "secondary" as typeof color[number],
|
|
218
|
+
"variant": "pill" as typeof variant[number],
|
|
180
219
|
"active": true,
|
|
181
220
|
"class": {
|
|
182
221
|
"link": "text-[var(--ui-secondary)]",
|
|
183
|
-
"linkLeadingIcon": "text-[var(--ui-secondary)]"
|
|
222
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
184
223
|
}
|
|
185
224
|
},
|
|
186
225
|
{
|
|
187
|
-
"color": "success" as
|
|
188
|
-
"variant": "pill" as
|
|
226
|
+
"color": "success" as typeof color[number],
|
|
227
|
+
"variant": "pill" as typeof variant[number],
|
|
189
228
|
"active": true,
|
|
190
229
|
"class": {
|
|
191
230
|
"link": "text-[var(--ui-success)]",
|
|
192
|
-
"linkLeadingIcon": "text-[var(--ui-success)]"
|
|
231
|
+
"linkLeadingIcon": "text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
193
232
|
}
|
|
194
233
|
},
|
|
195
234
|
{
|
|
196
|
-
"color": "info" as
|
|
197
|
-
"variant": "pill" as
|
|
235
|
+
"color": "info" as typeof color[number],
|
|
236
|
+
"variant": "pill" as typeof variant[number],
|
|
198
237
|
"active": true,
|
|
199
238
|
"class": {
|
|
200
239
|
"link": "text-[var(--ui-info)]",
|
|
201
|
-
"linkLeadingIcon": "text-[var(--ui-info)]"
|
|
240
|
+
"linkLeadingIcon": "text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
202
241
|
}
|
|
203
242
|
},
|
|
204
243
|
{
|
|
205
|
-
"color": "warning" as
|
|
206
|
-
"variant": "pill" as
|
|
244
|
+
"color": "warning" as typeof color[number],
|
|
245
|
+
"variant": "pill" as typeof variant[number],
|
|
207
246
|
"active": true,
|
|
208
247
|
"class": {
|
|
209
248
|
"link": "text-[var(--ui-warning)]",
|
|
210
|
-
"linkLeadingIcon": "text-[var(--ui-warning)]"
|
|
249
|
+
"linkLeadingIcon": "text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
211
250
|
}
|
|
212
251
|
},
|
|
213
252
|
{
|
|
214
|
-
"color": "error" as
|
|
215
|
-
"variant": "pill" as
|
|
253
|
+
"color": "error" as typeof color[number],
|
|
254
|
+
"variant": "pill" as typeof variant[number],
|
|
216
255
|
"active": true,
|
|
217
256
|
"class": {
|
|
218
257
|
"link": "text-[var(--ui-error)]",
|
|
219
|
-
"linkLeadingIcon": "text-[var(--ui-error)]"
|
|
258
|
+
"linkLeadingIcon": "text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
220
259
|
}
|
|
221
260
|
},
|
|
222
261
|
{
|
|
223
|
-
"color": "neutral" as
|
|
224
|
-
"variant": "pill" as
|
|
262
|
+
"color": "neutral" as typeof color[number],
|
|
263
|
+
"variant": "pill" as typeof variant[number],
|
|
225
264
|
"active": true,
|
|
226
265
|
"class": {
|
|
227
266
|
"link": "text-[var(--ui-text-highlighted)]",
|
|
228
|
-
"linkLeadingIcon": "text-[var(--ui-text-highlighted)]"
|
|
267
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)] group-data-[state=open]:text-[var(--ui-text-highlighted)]"
|
|
229
268
|
}
|
|
230
269
|
},
|
|
231
270
|
{
|
|
232
|
-
"variant": "pill" as
|
|
271
|
+
"variant": "pill" as typeof variant[number],
|
|
233
272
|
"active": true,
|
|
234
273
|
"highlight": false,
|
|
235
274
|
"class": {
|
|
@@ -237,7 +276,7 @@ export default {
|
|
|
237
276
|
}
|
|
238
277
|
},
|
|
239
278
|
{
|
|
240
|
-
"variant": "pill" as
|
|
279
|
+
"variant": "pill" as typeof variant[number],
|
|
241
280
|
"active": true,
|
|
242
281
|
"highlight": true,
|
|
243
282
|
"class": {
|
|
@@ -250,7 +289,7 @@ export default {
|
|
|
250
289
|
{
|
|
251
290
|
"disabled": false,
|
|
252
291
|
"active": false,
|
|
253
|
-
"variant": "link" as
|
|
292
|
+
"variant": "link" as typeof variant[number],
|
|
254
293
|
"class": {
|
|
255
294
|
"link": [
|
|
256
295
|
"hover:text-[var(--ui-text-highlighted)] data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
@@ -263,119 +302,126 @@ export default {
|
|
|
263
302
|
}
|
|
264
303
|
},
|
|
265
304
|
{
|
|
266
|
-
"color": "primary" as
|
|
267
|
-
"variant": "link" as
|
|
305
|
+
"color": "primary" as typeof color[number],
|
|
306
|
+
"variant": "link" as typeof variant[number],
|
|
268
307
|
"active": true,
|
|
269
308
|
"class": {
|
|
270
309
|
"link": "text-[var(--ui-primary)]",
|
|
271
|
-
"linkLeadingIcon": "text-[var(--ui-primary)]"
|
|
310
|
+
"linkLeadingIcon": "text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
272
311
|
}
|
|
273
312
|
},
|
|
274
313
|
{
|
|
275
|
-
"color": "secondary" as
|
|
276
|
-
"variant": "link" as
|
|
314
|
+
"color": "secondary" as typeof color[number],
|
|
315
|
+
"variant": "link" as typeof variant[number],
|
|
277
316
|
"active": true,
|
|
278
317
|
"class": {
|
|
279
318
|
"link": "text-[var(--ui-secondary)]",
|
|
280
|
-
"linkLeadingIcon": "text-[var(--ui-secondary)]"
|
|
319
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
281
320
|
}
|
|
282
321
|
},
|
|
283
322
|
{
|
|
284
|
-
"color": "success" as
|
|
285
|
-
"variant": "link" as
|
|
323
|
+
"color": "success" as typeof color[number],
|
|
324
|
+
"variant": "link" as typeof variant[number],
|
|
286
325
|
"active": true,
|
|
287
326
|
"class": {
|
|
288
327
|
"link": "text-[var(--ui-success)]",
|
|
289
|
-
"linkLeadingIcon": "text-[var(--ui-success)]"
|
|
328
|
+
"linkLeadingIcon": "text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
290
329
|
}
|
|
291
330
|
},
|
|
292
331
|
{
|
|
293
|
-
"color": "info" as
|
|
294
|
-
"variant": "link" as
|
|
332
|
+
"color": "info" as typeof color[number],
|
|
333
|
+
"variant": "link" as typeof variant[number],
|
|
295
334
|
"active": true,
|
|
296
335
|
"class": {
|
|
297
336
|
"link": "text-[var(--ui-info)]",
|
|
298
|
-
"linkLeadingIcon": "text-[var(--ui-info)]"
|
|
337
|
+
"linkLeadingIcon": "text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
299
338
|
}
|
|
300
339
|
},
|
|
301
340
|
{
|
|
302
|
-
"color": "warning" as
|
|
303
|
-
"variant": "link" as
|
|
341
|
+
"color": "warning" as typeof color[number],
|
|
342
|
+
"variant": "link" as typeof variant[number],
|
|
304
343
|
"active": true,
|
|
305
344
|
"class": {
|
|
306
345
|
"link": "text-[var(--ui-warning)]",
|
|
307
|
-
"linkLeadingIcon": "text-[var(--ui-warning)]"
|
|
346
|
+
"linkLeadingIcon": "text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
308
347
|
}
|
|
309
348
|
},
|
|
310
349
|
{
|
|
311
|
-
"color": "error" as
|
|
312
|
-
"variant": "link" as
|
|
350
|
+
"color": "error" as typeof color[number],
|
|
351
|
+
"variant": "link" as typeof variant[number],
|
|
313
352
|
"active": true,
|
|
314
353
|
"class": {
|
|
315
354
|
"link": "text-[var(--ui-error)]",
|
|
316
|
-
"linkLeadingIcon": "text-[var(--ui-error)]"
|
|
355
|
+
"linkLeadingIcon": "text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
317
356
|
}
|
|
318
357
|
},
|
|
319
358
|
{
|
|
320
|
-
"color": "neutral" as
|
|
321
|
-
"variant": "link" as
|
|
359
|
+
"color": "neutral" as typeof color[number],
|
|
360
|
+
"variant": "link" as typeof variant[number],
|
|
322
361
|
"active": true,
|
|
323
362
|
"class": {
|
|
324
363
|
"link": "text-[var(--ui-text-highlighted)]",
|
|
325
|
-
"linkLeadingIcon": "text-[var(--ui-text-highlighted)]"
|
|
364
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)] group-data-[state=open]:text-[var(--ui-text-highlighted)]"
|
|
326
365
|
}
|
|
327
366
|
},
|
|
328
367
|
{
|
|
329
|
-
"highlightColor": "primary" as
|
|
368
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
330
369
|
"highlight": true,
|
|
370
|
+
"level": true,
|
|
331
371
|
"active": true,
|
|
332
372
|
"class": {
|
|
333
373
|
"link": "after:bg-[var(--ui-primary)]"
|
|
334
374
|
}
|
|
335
375
|
},
|
|
336
376
|
{
|
|
337
|
-
"highlightColor": "secondary" as
|
|
377
|
+
"highlightColor": "secondary" as typeof highlightColor[number],
|
|
338
378
|
"highlight": true,
|
|
379
|
+
"level": true,
|
|
339
380
|
"active": true,
|
|
340
381
|
"class": {
|
|
341
382
|
"link": "after:bg-[var(--ui-secondary)]"
|
|
342
383
|
}
|
|
343
384
|
},
|
|
344
385
|
{
|
|
345
|
-
"highlightColor": "success" as
|
|
386
|
+
"highlightColor": "success" as typeof highlightColor[number],
|
|
346
387
|
"highlight": true,
|
|
388
|
+
"level": true,
|
|
347
389
|
"active": true,
|
|
348
390
|
"class": {
|
|
349
391
|
"link": "after:bg-[var(--ui-success)]"
|
|
350
392
|
}
|
|
351
393
|
},
|
|
352
394
|
{
|
|
353
|
-
"highlightColor": "info" as
|
|
395
|
+
"highlightColor": "info" as typeof highlightColor[number],
|
|
354
396
|
"highlight": true,
|
|
397
|
+
"level": true,
|
|
355
398
|
"active": true,
|
|
356
399
|
"class": {
|
|
357
400
|
"link": "after:bg-[var(--ui-info)]"
|
|
358
401
|
}
|
|
359
402
|
},
|
|
360
403
|
{
|
|
361
|
-
"highlightColor": "warning" as
|
|
404
|
+
"highlightColor": "warning" as typeof highlightColor[number],
|
|
362
405
|
"highlight": true,
|
|
406
|
+
"level": true,
|
|
363
407
|
"active": true,
|
|
364
408
|
"class": {
|
|
365
409
|
"link": "after:bg-[var(--ui-warning)]"
|
|
366
410
|
}
|
|
367
411
|
},
|
|
368
412
|
{
|
|
369
|
-
"highlightColor": "error" as
|
|
413
|
+
"highlightColor": "error" as typeof highlightColor[number],
|
|
370
414
|
"highlight": true,
|
|
415
|
+
"level": true,
|
|
371
416
|
"active": true,
|
|
372
417
|
"class": {
|
|
373
418
|
"link": "after:bg-[var(--ui-error)]"
|
|
374
419
|
}
|
|
375
420
|
},
|
|
376
421
|
{
|
|
377
|
-
"highlightColor": "neutral" as
|
|
422
|
+
"highlightColor": "neutral" as typeof highlightColor[number],
|
|
378
423
|
"highlight": true,
|
|
424
|
+
"level": true,
|
|
379
425
|
"active": true,
|
|
380
426
|
"class": {
|
|
381
427
|
"link": "after:bg-[var(--ui-bg-inverted)]"
|
|
@@ -383,8 +429,8 @@ export default {
|
|
|
383
429
|
}
|
|
384
430
|
],
|
|
385
431
|
"defaultVariants": {
|
|
386
|
-
"color": "primary" as
|
|
387
|
-
"highlightColor": "primary" as
|
|
388
|
-
"variant": "pill" as
|
|
432
|
+
"color": "primary" as typeof color[number],
|
|
433
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
434
|
+
"variant": "pill" as typeof variant[number]
|
|
389
435
|
}
|
|
390
436
|
}
|
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
|
}
|
package/.nuxt/ui/popover.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"content": "bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none",
|
|
3
|
+
"content": "bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto",
|
|
4
4
|
"arrow": "fill-[var(--ui-border)]"
|
|
5
5
|
}
|
|
6
6
|
}
|