@nuxt/ui 3.0.0-alpha.11 → 3.0.0-alpha.13
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/accordion.ts +2 -2
- package/.nuxt/ui/alert.ts +47 -37
- package/.nuxt/ui/avatar-group.ts +1 -1
- package/.nuxt/ui/avatar.ts +4 -4
- package/.nuxt/ui/badge.ts +37 -28
- package/.nuxt/ui/breadcrumb.ts +5 -5
- package/.nuxt/ui/button.ts +42 -43
- package/.nuxt/ui/calendar.ts +15 -15
- package/.nuxt/ui/card.ts +27 -1
- package/.nuxt/ui/carousel.ts +2 -2
- package/.nuxt/ui/checkbox.ts +18 -18
- package/.nuxt/ui/chip.ts +8 -8
- package/.nuxt/ui/color-picker.ts +2 -2
- package/.nuxt/ui/command-palette.ts +12 -12
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/context-menu.ts +32 -32
- package/.nuxt/ui/drawer.ts +72 -11
- package/.nuxt/ui/dropdown-menu.ts +33 -33
- package/.nuxt/ui/form-field.ts +6 -6
- package/.nuxt/ui/input-menu.ts +41 -41
- package/.nuxt/ui/input-number.ts +20 -20
- package/.nuxt/ui/input.ts +23 -23
- package/.nuxt/ui/kbd.ts +4 -4
- package/.nuxt/ui/link.ts +3 -3
- package/.nuxt/ui/modal.ts +5 -5
- package/.nuxt/ui/navigation-menu.ts +144 -77
- package/.nuxt/ui/pin-input.ts +20 -20
- package/.nuxt/ui/popover.ts +2 -2
- package/.nuxt/ui/progress.ts +17 -17
- package/.nuxt/ui/radio-group.ts +20 -20
- package/.nuxt/ui/select-menu.ts +33 -32
- package/.nuxt/ui/select.ts +31 -31
- package/.nuxt/ui/separator.ts +8 -8
- package/.nuxt/ui/skeleton.ts +1 -1
- package/.nuxt/ui/slideover.ts +4 -4
- package/.nuxt/ui/slider.ts +16 -16
- package/.nuxt/ui/stepper.ts +18 -18
- package/.nuxt/ui/switch.ts +20 -20
- package/.nuxt/ui/table.ts +16 -16
- package/.nuxt/ui/tabs.ts +33 -33
- package/.nuxt/ui/textarea.ts +23 -23
- package/.nuxt/ui/toast.ts +42 -32
- package/.nuxt/ui/toaster.ts +4 -4
- package/.nuxt/ui/tooltip.ts +2 -2
- package/.nuxt/ui.css +90 -0
- package/README.md +2 -2
- package/cli/package.json +2 -2
- package/cli/templates.mjs +7 -7
- 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/CG6Dc4jp.js +1 -0
- package/dist/client/devtools/_nuxt/{Dtz-o9GB.js → DrNJgD08.js} +1 -1
- package/dist/client/devtools/_nuxt/{DNZFyo26.js → ElqrUh1r.js} +1 -1
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/client/devtools/_nuxt/builds/meta/255c8d0b-7281-4d74-b4b6-ec96e6721aa0.json +1 -0
- package/dist/client/devtools/_nuxt/entry.Hn8drx4g.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.Dew7w9Ee.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.Dep59i31.css +1 -0
- package/dist/client/devtools/_nuxt/mC2e7kOs.js +57 -0
- package/dist/client/devtools/index.html +1 -1
- package/dist/devtools/runtime/examples/CardExample.vue +3 -3
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +1 -1
- package/dist/devtools/runtime/examples/ContainerExample.vue +1 -1
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +1 -1
- package/dist/devtools/runtime/examples/PopoverExample.vue +1 -1
- package/dist/devtools/runtime/examples/TooltipExample.vue +1 -1
- package/dist/module.cjs +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/Accordion.vue +2 -2
- package/dist/runtime/components/Alert.vue +15 -12
- package/dist/runtime/components/App.vue +3 -3
- package/dist/runtime/components/Avatar.vue +31 -10
- package/dist/runtime/components/AvatarGroup.vue +2 -2
- package/dist/runtime/components/Badge.vue +7 -3
- package/dist/runtime/components/Breadcrumb.vue +2 -2
- package/dist/runtime/components/Button.vue +2 -2
- package/dist/runtime/components/ButtonGroup.vue +2 -2
- package/dist/runtime/components/Calendar.vue +6 -3
- package/dist/runtime/components/Card.vue +8 -4
- package/dist/runtime/components/Carousel.vue +2 -2
- package/dist/runtime/components/Checkbox.vue +4 -4
- package/dist/runtime/components/Chip.vue +2 -2
- package/dist/runtime/components/Collapsible.vue +2 -2
- package/dist/runtime/components/ColorPicker.vue +46 -15
- package/dist/runtime/components/CommandPalette.vue +48 -41
- package/dist/runtime/components/Container.vue +2 -2
- package/dist/runtime/components/ContextMenu.vue +10 -2
- package/dist/runtime/components/ContextMenuContent.vue +4 -2
- package/dist/runtime/components/Drawer.vue +9 -3
- package/dist/runtime/components/DropdownMenu.vue +10 -2
- package/dist/runtime/components/DropdownMenuContent.vue +4 -2
- package/dist/runtime/components/Form.vue +46 -17
- package/dist/runtime/components/FormField.vue +12 -6
- package/dist/runtime/components/Input.vue +5 -4
- package/dist/runtime/components/InputMenu.vue +6 -5
- package/dist/runtime/components/InputNumber.vue +10 -6
- package/dist/runtime/components/Kbd.vue +2 -2
- package/dist/runtime/components/Link.vue +2 -2
- package/dist/runtime/components/Modal.vue +17 -3
- package/dist/runtime/components/NavigationMenu.vue +110 -67
- package/dist/runtime/components/Pagination.vue +2 -2
- package/dist/runtime/components/PinInput.vue +5 -4
- package/dist/runtime/components/Popover.vue +2 -2
- package/dist/runtime/components/Progress.vue +2 -2
- package/dist/runtime/components/RadioGroup.vue +4 -4
- package/dist/runtime/components/Select.vue +9 -7
- package/dist/runtime/components/SelectMenu.vue +67 -64
- package/dist/runtime/components/Separator.vue +2 -2
- package/dist/runtime/components/Skeleton.vue +2 -2
- package/dist/runtime/components/Slideover.vue +17 -3
- package/dist/runtime/components/Slider.vue +4 -4
- package/dist/runtime/components/Stepper.vue +3 -3
- package/dist/runtime/components/Switch.vue +4 -4
- package/dist/runtime/components/Table.vue +96 -18
- package/dist/runtime/components/Tabs.vue +2 -2
- package/dist/runtime/components/Textarea.vue +7 -5
- package/dist/runtime/components/Toast.vue +28 -16
- package/dist/runtime/components/Toaster.vue +4 -4
- package/dist/runtime/components/Tooltip.vue +2 -2
- package/dist/runtime/composables/useFormField.d.ts +6 -2
- package/dist/runtime/composables/useFormField.js +18 -11
- package/dist/runtime/composables/useToast.d.ts +4 -3
- package/dist/runtime/composables/useToast.js +20 -6
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/locale/az.js +54 -0
- package/dist/runtime/locale/bn.js +54 -0
- package/dist/runtime/locale/es.js +2 -2
- 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/index.d.ts +8 -2
- package/dist/runtime/locale/index.js +8 -2
- package/dist/runtime/locale/km.d.ts +2 -0
- package/dist/runtime/locale/km.js +54 -0
- package/dist/runtime/locale/nb_no.d.ts +2 -0
- package/dist/runtime/locale/nb_no.js +54 -0
- package/dist/runtime/locale/zh_cn.d.ts +2 -0
- package/dist/runtime/locale/{zh_hans.js → zh_cn.js} +1 -1
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +1 -1
- package/dist/runtime/plugins/colors.js +8 -5
- package/dist/runtime/types/form.d.ts +21 -12
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/utils.d.ts +5 -0
- package/dist/runtime/utils/form.js +3 -5
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Link.vue +77 -18
- package/dist/shared/{ui.DCjJwb6l.cjs → ui.C5FzRWM5.cjs} +529 -366
- package/dist/shared/{ui.BKsd22-Q.mjs → ui.DCZM2pl8.mjs} +525 -366
- package/dist/unplugin.cjs +44 -20
- package/dist/unplugin.d.cts +10 -0
- package/dist/unplugin.d.mts +10 -0
- package/dist/unplugin.d.ts +10 -0
- package/dist/unplugin.mjs +43 -19
- package/dist/vite.cjs +3 -2
- package/dist/vite.d.cts +2 -0
- package/dist/vite.d.mts +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.mjs +3 -2
- package/package.json +67 -41
- package/dist/client/devtools/_nuxt/CQ-XZFu7.js +0 -54
- package/dist/client/devtools/_nuxt/builds/meta/1f5fbd7b-9d97-480e-9ae4-e02b4ff7018b.json +0 -1
- package/dist/client/devtools/_nuxt/entry.qOdop8tq.css +0 -1
- package/dist/client/devtools/_nuxt/error-404.D-rS9BDk.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.CfcCHs91.css +0 -1
- /package/dist/runtime/locale/{zh_hans.d.ts → az.d.ts} +0 -0
- /package/dist/runtime/locale/{zh_hant.d.ts → bn.d.ts} +0 -0
|
@@ -28,10 +28,16 @@ const orientation = [
|
|
|
28
28
|
"vertical"
|
|
29
29
|
] as const
|
|
30
30
|
|
|
31
|
+
const contentOrientation = [
|
|
32
|
+
"horizontal",
|
|
33
|
+
"vertical"
|
|
34
|
+
] as const
|
|
35
|
+
|
|
31
36
|
export default {
|
|
32
37
|
"slots": {
|
|
33
38
|
"root": "relative flex gap-1.5 [&>div]:min-w-0",
|
|
34
39
|
"list": "isolate min-w-0",
|
|
40
|
+
"label": "w-full flex items-center gap-1.5 font-semibold text-xs/5 text-(--ui-text-highlighted) px-2.5 py-1.5",
|
|
35
41
|
"item": "min-w-0",
|
|
36
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",
|
|
37
43
|
"linkLeadingIcon": "shrink-0 size-5",
|
|
@@ -42,51 +48,51 @@ export default {
|
|
|
42
48
|
"linkTrailingBadgeSize": "sm",
|
|
43
49
|
"linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
44
50
|
"linkLabel": "truncate",
|
|
45
|
-
"linkLabelExternalIcon": "inline-block size-3 align-top text-
|
|
51
|
+
"linkLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)",
|
|
46
52
|
"childList": "",
|
|
47
53
|
"childItem": "",
|
|
48
54
|
"childLink": "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
|
|
49
55
|
"childLinkWrapper": "flex flex-col items-start",
|
|
50
56
|
"childLinkIcon": "size-5 shrink-0",
|
|
51
57
|
"childLinkLabel": "font-semibold text-sm relative inline-flex",
|
|
52
|
-
"childLinkLabelExternalIcon": "inline-block size-3 align-top text-
|
|
53
|
-
"childLinkDescription": "text-sm text-
|
|
54
|
-
"separator": "px-2 h-px bg-
|
|
55
|
-
"viewportWrapper": "absolute top-full left-0 flex w-full
|
|
56
|
-
"viewport": "relative overflow-hidden bg-
|
|
57
|
-
"content": "absolute top-0 left-0 w-full
|
|
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-
|
|
59
|
-
"arrow": "relative top-[50%] size-2.5 rotate-45 border border-
|
|
58
|
+
"childLinkLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)",
|
|
59
|
+
"childLinkDescription": "text-sm text-(--ui-text-muted)",
|
|
60
|
+
"separator": "px-2 h-px bg-(--ui-border)",
|
|
61
|
+
"viewportWrapper": "absolute top-full left-0 flex w-full",
|
|
62
|
+
"viewport": "relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) h-(--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-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",
|
|
65
|
+
"arrow": "relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-[calc(var(--ui-radius)/2)]"
|
|
60
66
|
},
|
|
61
67
|
"variants": {
|
|
62
68
|
"color": {
|
|
63
69
|
"primary": {
|
|
64
|
-
"link": "focus-visible:before:ring-
|
|
65
|
-
"childLink": "focus-visible:outline-
|
|
70
|
+
"link": "focus-visible:before:ring-(--ui-primary)",
|
|
71
|
+
"childLink": "focus-visible:outline-(--ui-primary)"
|
|
66
72
|
},
|
|
67
73
|
"secondary": {
|
|
68
|
-
"link": "focus-visible:before:ring-
|
|
69
|
-
"childLink": "focus-visible:outline-
|
|
74
|
+
"link": "focus-visible:before:ring-(--ui-secondary)",
|
|
75
|
+
"childLink": "focus-visible:outline-(--ui-secondary)"
|
|
70
76
|
},
|
|
71
77
|
"success": {
|
|
72
|
-
"link": "focus-visible:before:ring-
|
|
73
|
-
"childLink": "focus-visible:outline-
|
|
78
|
+
"link": "focus-visible:before:ring-(--ui-success)",
|
|
79
|
+
"childLink": "focus-visible:outline-(--ui-success)"
|
|
74
80
|
},
|
|
75
81
|
"info": {
|
|
76
|
-
"link": "focus-visible:before:ring-
|
|
77
|
-
"childLink": "focus-visible:outline-
|
|
82
|
+
"link": "focus-visible:before:ring-(--ui-info)",
|
|
83
|
+
"childLink": "focus-visible:outline-(--ui-info)"
|
|
78
84
|
},
|
|
79
85
|
"warning": {
|
|
80
|
-
"link": "focus-visible:before:ring-
|
|
81
|
-
"childLink": "focus-visible:outline-
|
|
86
|
+
"link": "focus-visible:before:ring-(--ui-warning)",
|
|
87
|
+
"childLink": "focus-visible:outline-(--ui-warning)"
|
|
82
88
|
},
|
|
83
89
|
"error": {
|
|
84
|
-
"link": "focus-visible:before:ring-
|
|
85
|
-
"childLink": "focus-visible:outline-
|
|
90
|
+
"link": "focus-visible:before:ring-(--ui-error)",
|
|
91
|
+
"childLink": "focus-visible:outline-(--ui-error)"
|
|
86
92
|
},
|
|
87
93
|
"neutral": {
|
|
88
|
-
"link": "focus-visible:before:ring-
|
|
89
|
-
"childLink": "focus-visible:outline-
|
|
94
|
+
"link": "focus-visible:before:ring-(--ui-border-inverted)",
|
|
95
|
+
"childLink": "focus-visible:outline-(--ui-border-inverted)"
|
|
90
96
|
}
|
|
91
97
|
},
|
|
92
98
|
"highlightColor": {
|
|
@@ -108,29 +114,38 @@ export default {
|
|
|
108
114
|
"list": "flex items-center",
|
|
109
115
|
"item": "py-2",
|
|
110
116
|
"link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
|
|
111
|
-
"childList": "grid
|
|
117
|
+
"childList": "grid p-2"
|
|
112
118
|
},
|
|
113
119
|
"vertical": {
|
|
114
120
|
"root": "flex-col",
|
|
115
|
-
"link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
|
|
116
|
-
|
|
117
|
-
|
|
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-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
|
|
132
|
+
"content": ""
|
|
118
133
|
}
|
|
119
134
|
},
|
|
120
135
|
"active": {
|
|
121
136
|
"true": {
|
|
122
|
-
"childLink": "bg-
|
|
123
|
-
"childLinkIcon": "text-
|
|
137
|
+
"childLink": "bg-(--ui-bg-elevated) text-(--ui-text-highlighted)",
|
|
138
|
+
"childLinkIcon": "text-(--ui-text)"
|
|
124
139
|
},
|
|
125
140
|
"false": {
|
|
126
|
-
"link": "text-
|
|
127
|
-
"linkLeadingIcon": "text-
|
|
141
|
+
"link": "text-(--ui-text-muted)",
|
|
142
|
+
"linkLeadingIcon": "text-(--ui-text-dimmed)",
|
|
128
143
|
"childLink": [
|
|
129
|
-
"hover:bg-
|
|
144
|
+
"hover:bg-(--ui-bg-elevated)/50 text-(--ui-text) hover:text-(--ui-text-highlighted)",
|
|
130
145
|
"transition-colors"
|
|
131
146
|
],
|
|
132
147
|
"childLinkIcon": [
|
|
133
|
-
"text-
|
|
148
|
+
"text-(--ui-text-dimmed) group-hover:text-(--ui-text)",
|
|
134
149
|
"transition-colors"
|
|
135
150
|
]
|
|
136
151
|
}
|
|
@@ -145,14 +160,31 @@ export default {
|
|
|
145
160
|
},
|
|
146
161
|
"level": {
|
|
147
162
|
"true": ""
|
|
163
|
+
},
|
|
164
|
+
"collapsed": {
|
|
165
|
+
"true": ""
|
|
148
166
|
}
|
|
149
167
|
},
|
|
150
168
|
"compoundVariants": [
|
|
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
|
+
},
|
|
151
184
|
{
|
|
152
185
|
"orientation": "horizontal" as typeof orientation[number],
|
|
153
186
|
"highlight": true,
|
|
154
187
|
"class": {
|
|
155
|
-
"item": "-mb-px",
|
|
156
188
|
"link": [
|
|
157
189
|
"after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full",
|
|
158
190
|
"after:transition-colors"
|
|
@@ -176,22 +208,32 @@ export default {
|
|
|
176
208
|
"variant": "pill" as typeof variant[number],
|
|
177
209
|
"class": {
|
|
178
210
|
"link": [
|
|
179
|
-
"hover:text-
|
|
211
|
+
"hover:text-(--ui-text-highlighted) hover:before:bg-(--ui-bg-elevated)/50",
|
|
180
212
|
"transition-colors before:transition-colors"
|
|
181
213
|
],
|
|
182
214
|
"linkLeadingIcon": [
|
|
183
|
-
"group-hover:text-
|
|
215
|
+
"group-hover:text-(--ui-text)",
|
|
184
216
|
"transition-colors"
|
|
185
217
|
]
|
|
186
218
|
}
|
|
187
219
|
},
|
|
220
|
+
{
|
|
221
|
+
"disabled": false,
|
|
222
|
+
"active": false,
|
|
223
|
+
"variant": "pill" as typeof variant[number],
|
|
224
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
225
|
+
"class": {
|
|
226
|
+
"link": "data-[state=open]:text-(--ui-text-highlighted)",
|
|
227
|
+
"linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
188
230
|
{
|
|
189
231
|
"disabled": false,
|
|
190
232
|
"variant": "pill" as typeof variant[number],
|
|
191
233
|
"highlight": true,
|
|
192
234
|
"orientation": "horizontal" as typeof orientation[number],
|
|
193
235
|
"class": {
|
|
194
|
-
"link": "data-[state=open]:before:bg-
|
|
236
|
+
"link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
|
|
195
237
|
}
|
|
196
238
|
},
|
|
197
239
|
{
|
|
@@ -201,7 +243,7 @@ export default {
|
|
|
201
243
|
"active": false,
|
|
202
244
|
"orientation": "horizontal" as typeof orientation[number],
|
|
203
245
|
"class": {
|
|
204
|
-
"link": "data-[state=open]:before:bg-
|
|
246
|
+
"link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
|
|
205
247
|
}
|
|
206
248
|
},
|
|
207
249
|
{
|
|
@@ -209,8 +251,8 @@ export default {
|
|
|
209
251
|
"variant": "pill" as typeof variant[number],
|
|
210
252
|
"active": true,
|
|
211
253
|
"class": {
|
|
212
|
-
"link": "text-
|
|
213
|
-
"linkLeadingIcon": "text-
|
|
254
|
+
"link": "text-(--ui-primary)",
|
|
255
|
+
"linkLeadingIcon": "text-(--ui-primary) group-data-[state=open]:text-(--ui-primary)"
|
|
214
256
|
}
|
|
215
257
|
},
|
|
216
258
|
{
|
|
@@ -218,8 +260,8 @@ export default {
|
|
|
218
260
|
"variant": "pill" as typeof variant[number],
|
|
219
261
|
"active": true,
|
|
220
262
|
"class": {
|
|
221
|
-
"link": "text-
|
|
222
|
-
"linkLeadingIcon": "text-
|
|
263
|
+
"link": "text-(--ui-secondary)",
|
|
264
|
+
"linkLeadingIcon": "text-(--ui-secondary) group-data-[state=open]:text-(--ui-secondary)"
|
|
223
265
|
}
|
|
224
266
|
},
|
|
225
267
|
{
|
|
@@ -227,8 +269,8 @@ export default {
|
|
|
227
269
|
"variant": "pill" as typeof variant[number],
|
|
228
270
|
"active": true,
|
|
229
271
|
"class": {
|
|
230
|
-
"link": "text-
|
|
231
|
-
"linkLeadingIcon": "text-
|
|
272
|
+
"link": "text-(--ui-success)",
|
|
273
|
+
"linkLeadingIcon": "text-(--ui-success) group-data-[state=open]:text-(--ui-success)"
|
|
232
274
|
}
|
|
233
275
|
},
|
|
234
276
|
{
|
|
@@ -236,8 +278,8 @@ export default {
|
|
|
236
278
|
"variant": "pill" as typeof variant[number],
|
|
237
279
|
"active": true,
|
|
238
280
|
"class": {
|
|
239
|
-
"link": "text-
|
|
240
|
-
"linkLeadingIcon": "text-
|
|
281
|
+
"link": "text-(--ui-info)",
|
|
282
|
+
"linkLeadingIcon": "text-(--ui-info) group-data-[state=open]:text-(--ui-info)"
|
|
241
283
|
}
|
|
242
284
|
},
|
|
243
285
|
{
|
|
@@ -245,8 +287,8 @@ export default {
|
|
|
245
287
|
"variant": "pill" as typeof variant[number],
|
|
246
288
|
"active": true,
|
|
247
289
|
"class": {
|
|
248
|
-
"link": "text-
|
|
249
|
-
"linkLeadingIcon": "text-
|
|
290
|
+
"link": "text-(--ui-warning)",
|
|
291
|
+
"linkLeadingIcon": "text-(--ui-warning) group-data-[state=open]:text-(--ui-warning)"
|
|
250
292
|
}
|
|
251
293
|
},
|
|
252
294
|
{
|
|
@@ -254,8 +296,8 @@ export default {
|
|
|
254
296
|
"variant": "pill" as typeof variant[number],
|
|
255
297
|
"active": true,
|
|
256
298
|
"class": {
|
|
257
|
-
"link": "text-
|
|
258
|
-
"linkLeadingIcon": "text-
|
|
299
|
+
"link": "text-(--ui-error)",
|
|
300
|
+
"linkLeadingIcon": "text-(--ui-error) group-data-[state=open]:text-(--ui-error)"
|
|
259
301
|
}
|
|
260
302
|
},
|
|
261
303
|
{
|
|
@@ -263,8 +305,8 @@ export default {
|
|
|
263
305
|
"variant": "pill" as typeof variant[number],
|
|
264
306
|
"active": true,
|
|
265
307
|
"class": {
|
|
266
|
-
"link": "text-
|
|
267
|
-
"linkLeadingIcon": "text-
|
|
308
|
+
"link": "text-(--ui-text-highlighted)",
|
|
309
|
+
"linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
|
|
268
310
|
}
|
|
269
311
|
},
|
|
270
312
|
{
|
|
@@ -272,7 +314,7 @@ export default {
|
|
|
272
314
|
"active": true,
|
|
273
315
|
"highlight": false,
|
|
274
316
|
"class": {
|
|
275
|
-
"link": "before:bg-
|
|
317
|
+
"link": "before:bg-(--ui-bg-elevated)"
|
|
276
318
|
}
|
|
277
319
|
},
|
|
278
320
|
{
|
|
@@ -281,7 +323,7 @@ export default {
|
|
|
281
323
|
"highlight": true,
|
|
282
324
|
"class": {
|
|
283
325
|
"link": [
|
|
284
|
-
"hover:before:bg-
|
|
326
|
+
"hover:before:bg-(--ui-bg-elevated)/50",
|
|
285
327
|
"before:transition-colors"
|
|
286
328
|
]
|
|
287
329
|
}
|
|
@@ -292,22 +334,32 @@ export default {
|
|
|
292
334
|
"variant": "link" as typeof variant[number],
|
|
293
335
|
"class": {
|
|
294
336
|
"link": [
|
|
295
|
-
"hover:text-
|
|
337
|
+
"hover:text-(--ui-text-highlighted)",
|
|
296
338
|
"transition-colors"
|
|
297
339
|
],
|
|
298
340
|
"linkLeadingIcon": [
|
|
299
|
-
"group-hover:text-
|
|
341
|
+
"group-hover:text-(--ui-text)",
|
|
300
342
|
"transition-colors"
|
|
301
343
|
]
|
|
302
344
|
}
|
|
303
345
|
},
|
|
346
|
+
{
|
|
347
|
+
"disabled": false,
|
|
348
|
+
"active": false,
|
|
349
|
+
"variant": "link" as typeof variant[number],
|
|
350
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
351
|
+
"class": {
|
|
352
|
+
"link": "data-[state=open]:text-(--ui-text-highlighted)",
|
|
353
|
+
"linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
304
356
|
{
|
|
305
357
|
"color": "primary" as typeof color[number],
|
|
306
358
|
"variant": "link" as typeof variant[number],
|
|
307
359
|
"active": true,
|
|
308
360
|
"class": {
|
|
309
|
-
"link": "text-
|
|
310
|
-
"linkLeadingIcon": "text-
|
|
361
|
+
"link": "text-(--ui-primary)",
|
|
362
|
+
"linkLeadingIcon": "text-(--ui-primary) group-data-[state=open]:text-(--ui-primary)"
|
|
311
363
|
}
|
|
312
364
|
},
|
|
313
365
|
{
|
|
@@ -315,8 +367,8 @@ export default {
|
|
|
315
367
|
"variant": "link" as typeof variant[number],
|
|
316
368
|
"active": true,
|
|
317
369
|
"class": {
|
|
318
|
-
"link": "text-
|
|
319
|
-
"linkLeadingIcon": "text-
|
|
370
|
+
"link": "text-(--ui-secondary)",
|
|
371
|
+
"linkLeadingIcon": "text-(--ui-secondary) group-data-[state=open]:text-(--ui-secondary)"
|
|
320
372
|
}
|
|
321
373
|
},
|
|
322
374
|
{
|
|
@@ -324,8 +376,8 @@ export default {
|
|
|
324
376
|
"variant": "link" as typeof variant[number],
|
|
325
377
|
"active": true,
|
|
326
378
|
"class": {
|
|
327
|
-
"link": "text-
|
|
328
|
-
"linkLeadingIcon": "text-
|
|
379
|
+
"link": "text-(--ui-success)",
|
|
380
|
+
"linkLeadingIcon": "text-(--ui-success) group-data-[state=open]:text-(--ui-success)"
|
|
329
381
|
}
|
|
330
382
|
},
|
|
331
383
|
{
|
|
@@ -333,8 +385,8 @@ export default {
|
|
|
333
385
|
"variant": "link" as typeof variant[number],
|
|
334
386
|
"active": true,
|
|
335
387
|
"class": {
|
|
336
|
-
"link": "text-
|
|
337
|
-
"linkLeadingIcon": "text-
|
|
388
|
+
"link": "text-(--ui-info)",
|
|
389
|
+
"linkLeadingIcon": "text-(--ui-info) group-data-[state=open]:text-(--ui-info)"
|
|
338
390
|
}
|
|
339
391
|
},
|
|
340
392
|
{
|
|
@@ -342,8 +394,8 @@ export default {
|
|
|
342
394
|
"variant": "link" as typeof variant[number],
|
|
343
395
|
"active": true,
|
|
344
396
|
"class": {
|
|
345
|
-
"link": "text-
|
|
346
|
-
"linkLeadingIcon": "text-
|
|
397
|
+
"link": "text-(--ui-warning)",
|
|
398
|
+
"linkLeadingIcon": "text-(--ui-warning) group-data-[state=open]:text-(--ui-warning)"
|
|
347
399
|
}
|
|
348
400
|
},
|
|
349
401
|
{
|
|
@@ -351,8 +403,8 @@ export default {
|
|
|
351
403
|
"variant": "link" as typeof variant[number],
|
|
352
404
|
"active": true,
|
|
353
405
|
"class": {
|
|
354
|
-
"link": "text-
|
|
355
|
-
"linkLeadingIcon": "text-
|
|
406
|
+
"link": "text-(--ui-error)",
|
|
407
|
+
"linkLeadingIcon": "text-(--ui-error) group-data-[state=open]:text-(--ui-error)"
|
|
356
408
|
}
|
|
357
409
|
},
|
|
358
410
|
{
|
|
@@ -360,8 +412,8 @@ export default {
|
|
|
360
412
|
"variant": "link" as typeof variant[number],
|
|
361
413
|
"active": true,
|
|
362
414
|
"class": {
|
|
363
|
-
"link": "text-
|
|
364
|
-
"linkLeadingIcon": "text-
|
|
415
|
+
"link": "text-(--ui-text-highlighted)",
|
|
416
|
+
"linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
|
|
365
417
|
}
|
|
366
418
|
},
|
|
367
419
|
{
|
|
@@ -370,7 +422,7 @@ export default {
|
|
|
370
422
|
"level": true,
|
|
371
423
|
"active": true,
|
|
372
424
|
"class": {
|
|
373
|
-
"link": "after:bg-
|
|
425
|
+
"link": "after:bg-(--ui-primary)"
|
|
374
426
|
}
|
|
375
427
|
},
|
|
376
428
|
{
|
|
@@ -379,7 +431,7 @@ export default {
|
|
|
379
431
|
"level": true,
|
|
380
432
|
"active": true,
|
|
381
433
|
"class": {
|
|
382
|
-
"link": "after:bg-
|
|
434
|
+
"link": "after:bg-(--ui-secondary)"
|
|
383
435
|
}
|
|
384
436
|
},
|
|
385
437
|
{
|
|
@@ -388,7 +440,7 @@ export default {
|
|
|
388
440
|
"level": true,
|
|
389
441
|
"active": true,
|
|
390
442
|
"class": {
|
|
391
|
-
"link": "after:bg-
|
|
443
|
+
"link": "after:bg-(--ui-success)"
|
|
392
444
|
}
|
|
393
445
|
},
|
|
394
446
|
{
|
|
@@ -397,7 +449,7 @@ export default {
|
|
|
397
449
|
"level": true,
|
|
398
450
|
"active": true,
|
|
399
451
|
"class": {
|
|
400
|
-
"link": "after:bg-
|
|
452
|
+
"link": "after:bg-(--ui-info)"
|
|
401
453
|
}
|
|
402
454
|
},
|
|
403
455
|
{
|
|
@@ -406,7 +458,7 @@ export default {
|
|
|
406
458
|
"level": true,
|
|
407
459
|
"active": true,
|
|
408
460
|
"class": {
|
|
409
|
-
"link": "after:bg-
|
|
461
|
+
"link": "after:bg-(--ui-warning)"
|
|
410
462
|
}
|
|
411
463
|
},
|
|
412
464
|
{
|
|
@@ -415,7 +467,7 @@ export default {
|
|
|
415
467
|
"level": true,
|
|
416
468
|
"active": true,
|
|
417
469
|
"class": {
|
|
418
|
-
"link": "after:bg-
|
|
470
|
+
"link": "after:bg-(--ui-error)"
|
|
419
471
|
}
|
|
420
472
|
},
|
|
421
473
|
{
|
|
@@ -424,7 +476,22 @@ export default {
|
|
|
424
476
|
"level": true,
|
|
425
477
|
"active": true,
|
|
426
478
|
"class": {
|
|
427
|
-
"link": "after:bg-
|
|
479
|
+
"link": "after:bg-(--ui-bg-inverted)"
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
484
|
+
"collapsed": false,
|
|
485
|
+
"class": {
|
|
486
|
+
"childList": "ms-5 border-s border-(--ui-border)",
|
|
487
|
+
"childItem": "ps-1.5 -ms-px"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
492
|
+
"collapsed": true,
|
|
493
|
+
"class": {
|
|
494
|
+
"link": "px-1.5"
|
|
428
495
|
}
|
|
429
496
|
}
|
|
430
497
|
],
|
package/.nuxt/ui/pin-input.ts
CHANGED
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
"slots": {
|
|
29
29
|
"root": "relative inline-flex items-center gap-1.5",
|
|
30
30
|
"base": [
|
|
31
|
-
"rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-
|
|
31
|
+
"rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-(--ui-text-dimmed) text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
32
32
|
"transition-colors"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
@@ -51,11 +51,11 @@ export default {
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"variant": {
|
|
54
|
-
"outline": "text-
|
|
55
|
-
"soft": "text-
|
|
56
|
-
"subtle": "text-
|
|
57
|
-
"ghost": "text-
|
|
58
|
-
"none": "text-
|
|
54
|
+
"outline": "text-(--ui-text-highlighted) bg-(--ui-bg) ring ring-inset ring-(--ui-border-accented)",
|
|
55
|
+
"soft": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated)/50 hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg-elevated)/50",
|
|
56
|
+
"subtle": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated) ring ring-inset ring-(--ui-border-accented)",
|
|
57
|
+
"ghost": "text-(--ui-text-highlighted) bg-transparent hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-transparent dark:disabled:bg-transparent",
|
|
58
|
+
"none": "text-(--ui-text-highlighted) bg-transparent"
|
|
59
59
|
},
|
|
60
60
|
"color": {
|
|
61
61
|
"primary": "",
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
"outline" as typeof variant[number],
|
|
78
78
|
"subtle" as typeof variant[number]
|
|
79
79
|
],
|
|
80
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
80
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"color": "secondary" as typeof color[number],
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
"outline" as typeof variant[number],
|
|
86
86
|
"subtle" as typeof variant[number]
|
|
87
87
|
],
|
|
88
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
88
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"color": "success" as typeof color[number],
|
|
@@ -93,7 +93,7 @@ export default {
|
|
|
93
93
|
"outline" as typeof variant[number],
|
|
94
94
|
"subtle" as typeof variant[number]
|
|
95
95
|
],
|
|
96
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
96
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"color": "info" as typeof color[number],
|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
101
101
|
"outline" as typeof variant[number],
|
|
102
102
|
"subtle" as typeof variant[number]
|
|
103
103
|
],
|
|
104
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
104
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-info)"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"color": "warning" as typeof color[number],
|
|
@@ -109,7 +109,7 @@ export default {
|
|
|
109
109
|
"outline" as typeof variant[number],
|
|
110
110
|
"subtle" as typeof variant[number]
|
|
111
111
|
],
|
|
112
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
112
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"color": "error" as typeof color[number],
|
|
@@ -117,37 +117,37 @@ export default {
|
|
|
117
117
|
"outline" as typeof variant[number],
|
|
118
118
|
"subtle" as typeof variant[number]
|
|
119
119
|
],
|
|
120
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
120
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"color": "primary" as typeof color[number],
|
|
124
124
|
"highlight": true,
|
|
125
|
-
"class": "ring ring-inset ring-
|
|
125
|
+
"class": "ring ring-inset ring-(--ui-primary)"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"color": "secondary" as typeof color[number],
|
|
129
129
|
"highlight": true,
|
|
130
|
-
"class": "ring ring-inset ring-
|
|
130
|
+
"class": "ring ring-inset ring-(--ui-secondary)"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"color": "success" as typeof color[number],
|
|
134
134
|
"highlight": true,
|
|
135
|
-
"class": "ring ring-inset ring-
|
|
135
|
+
"class": "ring ring-inset ring-(--ui-success)"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"color": "info" as typeof color[number],
|
|
139
139
|
"highlight": true,
|
|
140
|
-
"class": "ring ring-inset ring-
|
|
140
|
+
"class": "ring ring-inset ring-(--ui-info)"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"color": "warning" as typeof color[number],
|
|
144
144
|
"highlight": true,
|
|
145
|
-
"class": "ring ring-inset ring-
|
|
145
|
+
"class": "ring ring-inset ring-(--ui-warning)"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"color": "error" as typeof color[number],
|
|
149
149
|
"highlight": true,
|
|
150
|
-
"class": "ring ring-inset ring-
|
|
150
|
+
"class": "ring ring-inset ring-(--ui-error)"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"color": "neutral" as typeof color[number],
|
|
@@ -155,12 +155,12 @@ export default {
|
|
|
155
155
|
"outline" as typeof variant[number],
|
|
156
156
|
"subtle" as typeof variant[number]
|
|
157
157
|
],
|
|
158
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
158
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"color": "neutral" as typeof color[number],
|
|
162
162
|
"highlight": true,
|
|
163
|
-
"class": "ring ring-inset ring-
|
|
163
|
+
"class": "ring ring-inset ring-(--ui-border-inverted)"
|
|
164
164
|
}
|
|
165
165
|
],
|
|
166
166
|
"defaultVariants": {
|
package/.nuxt/ui/popover.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"content": "bg-
|
|
4
|
-
"arrow": "fill-
|
|
3
|
+
"content": "bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--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
|
+
"arrow": "fill-(--ui-border)"
|
|
5
5
|
}
|
|
6
6
|
}
|