@nuxt/ui 3.0.2 → 3.1.0
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 +25 -4
- package/.nuxt/ui/alert.ts +52 -31
- package/.nuxt/ui/avatar-group.ts +24 -3
- package/.nuxt/ui/avatar.ts +26 -5
- package/.nuxt/ui/badge.ts +56 -35
- package/.nuxt/ui/breadcrumb.ts +28 -7
- package/.nuxt/ui/button-group.ts +23 -2
- package/.nuxt/ui/button.ts +66 -45
- package/.nuxt/ui/calendar.ts +39 -18
- package/.nuxt/ui/card.ts +28 -7
- package/.nuxt/ui/carousel.ts +29 -8
- package/.nuxt/ui/checkbox-group.ts +82 -0
- package/.nuxt/ui/checkbox.ts +163 -29
- package/.nuxt/ui/chip.ts +31 -10
- package/.nuxt/ui/collapsible.ts +23 -2
- package/.nuxt/ui/color-picker.ts +26 -5
- package/.nuxt/ui/command-palette.ts +37 -16
- package/.nuxt/ui/container.ts +23 -2
- package/.nuxt/ui/context-menu.ts +56 -35
- package/.nuxt/ui/drawer.ts +33 -12
- package/.nuxt/ui/dropdown-menu.ts +57 -36
- package/.nuxt/ui/form-field.ts +29 -8
- package/.nuxt/ui/form.ts +23 -2
- package/.nuxt/ui/index.ts +1 -0
- package/.nuxt/ui/input-menu.ts +65 -44
- package/.nuxt/ui/input-number.ts +43 -22
- package/.nuxt/ui/input.ts +46 -25
- package/.nuxt/ui/kbd.ts +27 -6
- package/.nuxt/ui/link.ts +26 -5
- package/.nuxt/ui/modal.ts +28 -7
- package/.nuxt/ui/navigation-menu.ts +102 -83
- package/.nuxt/ui/pagination.ts +23 -2
- package/.nuxt/ui/pin-input.ts +43 -22
- package/.nuxt/ui/popover.ts +25 -4
- package/.nuxt/ui/progress.ts +40 -19
- package/.nuxt/ui/radio-group.ts +273 -37
- package/.nuxt/ui/select-menu.ts +59 -35
- package/.nuxt/ui/select.ts +55 -34
- package/.nuxt/ui/separator.ts +31 -10
- package/.nuxt/ui/skeleton.ts +24 -3
- package/.nuxt/ui/slideover.ts +27 -6
- package/.nuxt/ui/slider.ts +39 -18
- package/.nuxt/ui/stepper.ts +41 -20
- package/.nuxt/ui/switch.ts +43 -22
- package/.nuxt/ui/table.ts +38 -17
- package/.nuxt/ui/tabs.ts +55 -34
- package/.nuxt/ui/textarea.ts +63 -37
- package/.nuxt/ui/toast.ts +47 -26
- package/.nuxt/ui/toaster.ts +23 -2
- package/.nuxt/ui/tooltip.ts +25 -4
- package/.nuxt/ui/tree.ts +41 -20
- package/.nuxt/ui.css +56 -12
- package/README.md +11 -0
- package/cli/templates.mjs +18 -17
- package/dist/module.json +5 -5
- package/dist/module.mjs +11 -7
- package/dist/runtime/components/Accordion.vue +36 -93
- package/dist/runtime/components/Accordion.vue.d.ts +91 -0
- package/dist/runtime/components/Alert.vue +37 -100
- package/dist/runtime/components/Alert.vue.d.ts +96 -0
- package/dist/runtime/components/App.vue +28 -34
- package/dist/runtime/components/App.vue.d.ts +24 -0
- package/dist/runtime/components/Avatar.vue +42 -75
- package/dist/runtime/components/Avatar.vue.d.ts +60 -0
- package/dist/runtime/components/AvatarGroup.vue +40 -77
- package/dist/runtime/components/AvatarGroup.vue.d.ts +40 -0
- package/dist/runtime/components/Badge.vue +33 -62
- package/dist/runtime/components/Badge.vue.d.ts +62 -0
- package/dist/runtime/components/Breadcrumb.vue +37 -90
- package/dist/runtime/components/Breadcrumb.vue.d.ts +82 -0
- package/dist/runtime/components/Button.vue +95 -104
- package/dist/runtime/components/Button.vue.d.ts +73 -0
- package/dist/runtime/components/ButtonGroup.vue +20 -46
- package/dist/runtime/components/ButtonGroup.vue.d.ts +55 -0
- package/dist/runtime/components/Calendar.vue +67 -150
- package/dist/runtime/components/Calendar.vue.d.ts +107 -0
- package/dist/runtime/components/Card.vue +18 -40
- package/dist/runtime/components/Card.vue.d.ts +38 -0
- package/dist/runtime/components/Carousel.vue +112 -234
- package/dist/runtime/components/Carousel.vue.d.ts +120 -0
- package/dist/runtime/components/Checkbox.vue +52 -93
- package/dist/runtime/components/Checkbox.vue.d.ts +76 -0
- package/dist/runtime/components/CheckboxGroup.vue +121 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +75 -0
- package/dist/runtime/components/Chip.vue +26 -69
- package/dist/runtime/components/Chip.vue.d.ts +71 -0
- package/dist/runtime/components/Collapsible.vue +22 -41
- package/dist/runtime/components/Collapsible.vue.d.ts +50 -0
- package/dist/runtime/components/ColorPicker.vue +111 -197
- package/dist/runtime/components/ColorPicker.vue.d.ts +63 -0
- package/dist/runtime/components/CommandPalette.vue +96 -237
- package/dist/runtime/components/CommandPalette.vue.d.ts +173 -0
- package/dist/runtime/components/Container.vue +15 -28
- package/dist/runtime/components/Container.vue.d.ts +27 -0
- package/dist/runtime/components/ContextMenu.vue +34 -133
- package/dist/runtime/components/ContextMenu.vue.d.ts +127 -0
- package/dist/runtime/components/ContextMenuContent.vue +73 -81
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +105 -0
- package/dist/runtime/components/Drawer.vue +49 -83
- package/dist/runtime/components/Drawer.vue.d.ts +88 -0
- package/dist/runtime/components/DropdownMenu.vue +39 -142
- package/dist/runtime/components/DropdownMenu.vue.d.ts +141 -0
- package/dist/runtime/components/DropdownMenuContent.vue +78 -88
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +55 -0
- package/dist/runtime/components/Form.vue +135 -220
- package/dist/runtime/components/Form.vue.d.ts +66 -0
- package/dist/runtime/components/FormField.vue +35 -77
- package/dist/runtime/components/FormField.vue.d.ts +70 -0
- package/dist/runtime/components/Icon.vue +12 -19
- package/dist/runtime/components/Icon.vue.d.ts +17 -0
- package/dist/runtime/components/Input.vue +82 -140
- package/dist/runtime/components/Input.vue.d.ts +91 -0
- package/dist/runtime/components/InputMenu.vue +185 -332
- package/dist/runtime/components/InputMenu.vue.d.ts +312 -0
- package/dist/runtime/components/InputNumber.vue +71 -133
- package/dist/runtime/components/InputNumber.vue.d.ts +193 -0
- package/dist/runtime/components/Kbd.vue +20 -46
- package/dist/runtime/components/Kbd.vue.d.ts +55 -0
- package/dist/runtime/components/Link.vue +98 -176
- package/dist/runtime/components/Link.vue.d.ts +124 -0
- package/dist/runtime/components/LinkBase.vue +33 -42
- package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
- package/dist/runtime/components/Modal.vue +53 -116
- package/dist/runtime/components/Modal.vue.d.ts +109 -0
- package/dist/runtime/components/NavigationMenu.vue +77 -209
- package/dist/runtime/components/NavigationMenu.vue.d.ts +159 -0
- package/dist/runtime/components/OverlayProvider.vue +14 -18
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
- package/dist/runtime/components/Pagination.vue +46 -140
- package/dist/runtime/components/Pagination.vue.d.ts +143 -0
- package/dist/runtime/components/PinInput.vue +61 -78
- package/dist/runtime/components/PinInput.vue.d.ts +68 -0
- package/dist/runtime/components/Popover.vue +47 -84
- package/dist/runtime/components/Popover.vue.d.ts +80 -0
- package/dist/runtime/components/Progress.vue +70 -131
- package/dist/runtime/components/Progress.vue.d.ts +97 -0
- package/dist/runtime/components/RadioGroup.vue +70 -132
- package/dist/runtime/components/RadioGroup.vue.d.ts +88 -0
- package/dist/runtime/components/Select.vue +110 -224
- package/dist/runtime/components/Select.vue.d.ts +139 -0
- package/dist/runtime/components/SelectMenu.vue +161 -310
- package/dist/runtime/components/SelectMenu.vue.d.ts +184 -0
- package/dist/runtime/components/Separator.vue +29 -71
- package/dist/runtime/components/Separator.vue.d.ts +75 -0
- package/dist/runtime/components/Skeleton.vue +21 -23
- package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
- package/dist/runtime/components/Slideover.vue +53 -120
- package/dist/runtime/components/Slideover.vue.d.ts +111 -0
- package/dist/runtime/components/Slider.vue +46 -84
- package/dist/runtime/components/Slider.vue.d.ts +71 -0
- package/dist/runtime/components/Stepper.vue +45 -115
- package/dist/runtime/components/Stepper.vue.d.ts +89 -0
- package/dist/runtime/components/Switch.vue +45 -93
- package/dist/runtime/components/Switch.vue.d.ts +73 -0
- package/dist/runtime/components/Table.vue +163 -267
- package/dist/runtime/components/Table.vue.d.ts +183 -0
- package/dist/runtime/components/Tabs.vue +41 -107
- package/dist/runtime/components/Tabs.vue.d.ts +104 -0
- package/dist/runtime/components/Textarea.vue +113 -158
- package/dist/runtime/components/Textarea.vue.d.ts +95 -0
- package/dist/runtime/components/Toast.vue +49 -110
- package/dist/runtime/components/Toast.vue.d.ts +95 -0
- package/dist/runtime/components/Toaster.vue +70 -107
- package/dist/runtime/components/Toaster.vue.d.ts +63 -0
- package/dist/runtime/components/Tooltip.vue +38 -65
- package/dist/runtime/components/Tooltip.vue.d.ts +65 -0
- package/dist/runtime/components/Tree.vue +59 -166
- package/dist/runtime/components/Tree.vue.d.ts +128 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
- package/dist/runtime/composables/useFormField.d.ts +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +14 -7
- package/dist/runtime/composables/useOverlay.js +14 -6
- package/dist/runtime/composables/usePortal.d.ts +6 -0
- package/dist/runtime/composables/usePortal.js +17 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/inertia/components/Link.vue +146 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +92 -0
- package/dist/runtime/inertia/stubs.d.ts +43 -0
- package/dist/runtime/inertia/stubs.js +82 -0
- package/dist/runtime/locale/bg.d.ts +3 -0
- package/dist/runtime/locale/bg.js +54 -0
- package/dist/runtime/locale/index.d.ts +5 -1
- package/dist/runtime/locale/index.js +5 -1
- package/dist/runtime/locale/kk.d.ts +3 -0
- package/dist/runtime/locale/kk.js +54 -0
- package/dist/runtime/locale/tj.d.ts +3 -0
- package/dist/runtime/locale/tj.js +54 -0
- package/dist/runtime/locale/ug_cn.d.ts +3 -0
- package/dist/runtime/locale/ug_cn.js +55 -0
- package/dist/runtime/types/form.d.ts +4 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/utils.d.ts +47 -7
- package/dist/runtime/utils/link.d.ts +3 -3
- package/dist/runtime/utils/link.js +1 -0
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Icon.vue +7 -8
- package/dist/runtime/vue/components/Icon.vue.d.ts +14 -0
- package/dist/runtime/vue/components/Link.vue +118 -202
- package/dist/runtime/vue/components/Link.vue.d.ts +124 -0
- package/dist/runtime/vue/stubs.d.ts +2 -2
- package/dist/shared/{ui.BkNUP964.mjs → ui.D7lOOabO.mjs} +621 -362
- package/dist/types.d.mts +3 -5
- package/dist/unplugin.d.mts +4 -0
- package/dist/unplugin.mjs +25 -4
- package/dist/vite.mjs +1 -1
- package/package.json +94 -53
- package/dist/module.cjs +0 -62
- package/dist/module.d.cts +0 -45
- package/dist/module.d.ts +0 -45
- package/dist/shared/ui.BL-XB3u1.cjs +0 -3555
- package/dist/types.d.ts +0 -7
- package/dist/unplugin.cjs +0 -232
- package/dist/unplugin.d.cts +0 -62
- package/dist/unplugin.d.ts +0 -62
- package/dist/vite.cjs +0 -23
- package/dist/vite.d.cts +0 -15
- package/dist/vite.d.ts +0 -15
package/.nuxt/ui/input-menu.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/input-menu"
|
|
2
|
+
|
|
1
3
|
const buttonGroup = [
|
|
2
4
|
"horizontal",
|
|
3
5
|
"vertical"
|
|
@@ -33,32 +35,49 @@ const type = [
|
|
|
33
35
|
"file"
|
|
34
36
|
] as const
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
39
|
+
"prefix": "U",
|
|
40
|
+
"fonts": true,
|
|
41
|
+
"colorMode": true,
|
|
42
|
+
"theme": {
|
|
43
|
+
"colors": [
|
|
44
|
+
"primary",
|
|
45
|
+
"secondary",
|
|
46
|
+
"success",
|
|
47
|
+
"info",
|
|
48
|
+
"warning",
|
|
49
|
+
"error"
|
|
50
|
+
],
|
|
51
|
+
"transitions": true
|
|
52
|
+
}
|
|
53
|
+
}) : template
|
|
54
|
+
|
|
55
|
+
const theme = {
|
|
37
56
|
"slots": {
|
|
38
57
|
"root": "relative inline-flex items-center",
|
|
39
58
|
"base": [
|
|
40
|
-
"rounded-
|
|
59
|
+
"rounded-md",
|
|
41
60
|
"transition-colors"
|
|
42
61
|
],
|
|
43
62
|
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
44
|
-
"leadingIcon": "shrink-0 text-
|
|
63
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
45
64
|
"leadingAvatar": "shrink-0",
|
|
46
65
|
"leadingAvatarSize": "",
|
|
47
66
|
"trailing": "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
|
|
48
|
-
"trailingIcon": "shrink-0 text-
|
|
49
|
-
"arrow": "fill-
|
|
50
|
-
"content": "max-h-60 w-(--reka-
|
|
51
|
-
"viewport": "divide-y divide-
|
|
67
|
+
"trailingIcon": "shrink-0 text-dimmed",
|
|
68
|
+
"arrow": "fill-default",
|
|
69
|
+
"content": "max-h-60 w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto",
|
|
70
|
+
"viewport": "divide-y divide-default scroll-py-1",
|
|
52
71
|
"group": "p-1 isolate",
|
|
53
|
-
"empty": "py-2 text-center text-sm text-
|
|
54
|
-
"label": "font-semibold text-
|
|
55
|
-
"separator": "-mx-1 my-1 h-px bg-
|
|
72
|
+
"empty": "py-2 text-center text-sm text-muted",
|
|
73
|
+
"label": "font-semibold text-highlighted",
|
|
74
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
56
75
|
"item": [
|
|
57
|
-
"group relative w-full flex items-center gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-
|
|
76
|
+
"group relative w-full flex items-center gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
|
|
58
77
|
"transition-colors before:transition-colors"
|
|
59
78
|
],
|
|
60
79
|
"itemLeadingIcon": [
|
|
61
|
-
"shrink-0 text-
|
|
80
|
+
"shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
62
81
|
"transition-colors"
|
|
63
82
|
],
|
|
64
83
|
"itemLeadingAvatar": "shrink-0",
|
|
@@ -68,10 +87,10 @@ export default {
|
|
|
68
87
|
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
69
88
|
"itemTrailingIcon": "shrink-0",
|
|
70
89
|
"itemLabel": "truncate",
|
|
71
|
-
"tagsItem": "px-1.5 py-0.5 rounded-
|
|
90
|
+
"tagsItem": "px-1.5 py-0.5 rounded-sm font-medium inline-flex items-center gap-0.5 ring ring-inset ring-accented bg-elevated text-default data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
72
91
|
"tagsItemText": "truncate",
|
|
73
92
|
"tagsItemDelete": [
|
|
74
|
-
"inline-flex items-center rounded-
|
|
93
|
+
"inline-flex items-center rounded-xs text-dimmed hover:text-default hover:bg-accented/75 disabled:pointer-events-none",
|
|
75
94
|
"transition-colors"
|
|
76
95
|
],
|
|
77
96
|
"tagsItemDeleteIcon": "",
|
|
@@ -176,11 +195,11 @@ export default {
|
|
|
176
195
|
}
|
|
177
196
|
},
|
|
178
197
|
"variant": {
|
|
179
|
-
"outline": "text-
|
|
180
|
-
"soft": "text-
|
|
181
|
-
"subtle": "text-
|
|
182
|
-
"ghost": "text-
|
|
183
|
-
"none": "text-
|
|
198
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
199
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
200
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
201
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
202
|
+
"none": "text-highlighted bg-transparent"
|
|
184
203
|
},
|
|
185
204
|
"color": {
|
|
186
205
|
"primary": "",
|
|
@@ -204,15 +223,15 @@ export default {
|
|
|
204
223
|
"true": ""
|
|
205
224
|
},
|
|
206
225
|
"type": {
|
|
207
|
-
"file": "file:me-1.5 file:font-medium file:text-
|
|
226
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
208
227
|
},
|
|
209
228
|
"multiple": {
|
|
210
229
|
"true": {
|
|
211
230
|
"root": "flex-wrap",
|
|
212
|
-
"tagsInput": "border-0 bg-transparent placeholder:text-
|
|
231
|
+
"tagsInput": "border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
213
232
|
},
|
|
214
233
|
"false": {
|
|
215
|
-
"base": "w-full border-0 placeholder:text-
|
|
234
|
+
"base": "w-full border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
216
235
|
}
|
|
217
236
|
}
|
|
218
237
|
},
|
|
@@ -224,7 +243,7 @@ export default {
|
|
|
224
243
|
"outline" as typeof variant[number],
|
|
225
244
|
"subtle" as typeof variant[number]
|
|
226
245
|
],
|
|
227
|
-
"class": "has-focus-visible:ring-2 has-focus-visible:ring-
|
|
246
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-primary"
|
|
228
247
|
},
|
|
229
248
|
{
|
|
230
249
|
"color": "secondary" as typeof color[number],
|
|
@@ -233,7 +252,7 @@ export default {
|
|
|
233
252
|
"outline" as typeof variant[number],
|
|
234
253
|
"subtle" as typeof variant[number]
|
|
235
254
|
],
|
|
236
|
-
"class": "has-focus-visible:ring-2 has-focus-visible:ring-
|
|
255
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-secondary"
|
|
237
256
|
},
|
|
238
257
|
{
|
|
239
258
|
"color": "success" as typeof color[number],
|
|
@@ -242,7 +261,7 @@ export default {
|
|
|
242
261
|
"outline" as typeof variant[number],
|
|
243
262
|
"subtle" as typeof variant[number]
|
|
244
263
|
],
|
|
245
|
-
"class": "has-focus-visible:ring-2 has-focus-visible:ring-
|
|
264
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-success"
|
|
246
265
|
},
|
|
247
266
|
{
|
|
248
267
|
"color": "info" as typeof color[number],
|
|
@@ -251,7 +270,7 @@ export default {
|
|
|
251
270
|
"outline" as typeof variant[number],
|
|
252
271
|
"subtle" as typeof variant[number]
|
|
253
272
|
],
|
|
254
|
-
"class": "has-focus-visible:ring-2 has-focus-visible:ring-
|
|
273
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-info"
|
|
255
274
|
},
|
|
256
275
|
{
|
|
257
276
|
"color": "warning" as typeof color[number],
|
|
@@ -260,7 +279,7 @@ export default {
|
|
|
260
279
|
"outline" as typeof variant[number],
|
|
261
280
|
"subtle" as typeof variant[number]
|
|
262
281
|
],
|
|
263
|
-
"class": "has-focus-visible:ring-2 has-focus-visible:ring-
|
|
282
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-warning"
|
|
264
283
|
},
|
|
265
284
|
{
|
|
266
285
|
"color": "error" as typeof color[number],
|
|
@@ -269,7 +288,7 @@ export default {
|
|
|
269
288
|
"outline" as typeof variant[number],
|
|
270
289
|
"subtle" as typeof variant[number]
|
|
271
290
|
],
|
|
272
|
-
"class": "has-focus-visible:ring-2 has-focus-visible:ring-
|
|
291
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-error"
|
|
273
292
|
},
|
|
274
293
|
{
|
|
275
294
|
"color": "neutral" as typeof color[number],
|
|
@@ -278,7 +297,7 @@ export default {
|
|
|
278
297
|
"outline" as typeof variant[number],
|
|
279
298
|
"subtle" as typeof variant[number]
|
|
280
299
|
],
|
|
281
|
-
"class": "has-focus-visible:ring-2 has-focus-visible:ring-
|
|
300
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inverted"
|
|
282
301
|
},
|
|
283
302
|
{
|
|
284
303
|
"color": "primary" as typeof color[number],
|
|
@@ -286,7 +305,7 @@ export default {
|
|
|
286
305
|
"outline" as typeof variant[number],
|
|
287
306
|
"subtle" as typeof variant[number]
|
|
288
307
|
],
|
|
289
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
308
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
290
309
|
},
|
|
291
310
|
{
|
|
292
311
|
"color": "secondary" as typeof color[number],
|
|
@@ -294,7 +313,7 @@ export default {
|
|
|
294
313
|
"outline" as typeof variant[number],
|
|
295
314
|
"subtle" as typeof variant[number]
|
|
296
315
|
],
|
|
297
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
316
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
298
317
|
},
|
|
299
318
|
{
|
|
300
319
|
"color": "success" as typeof color[number],
|
|
@@ -302,7 +321,7 @@ export default {
|
|
|
302
321
|
"outline" as typeof variant[number],
|
|
303
322
|
"subtle" as typeof variant[number]
|
|
304
323
|
],
|
|
305
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
324
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
306
325
|
},
|
|
307
326
|
{
|
|
308
327
|
"color": "info" as typeof color[number],
|
|
@@ -310,7 +329,7 @@ export default {
|
|
|
310
329
|
"outline" as typeof variant[number],
|
|
311
330
|
"subtle" as typeof variant[number]
|
|
312
331
|
],
|
|
313
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
332
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
314
333
|
},
|
|
315
334
|
{
|
|
316
335
|
"color": "warning" as typeof color[number],
|
|
@@ -318,7 +337,7 @@ export default {
|
|
|
318
337
|
"outline" as typeof variant[number],
|
|
319
338
|
"subtle" as typeof variant[number]
|
|
320
339
|
],
|
|
321
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
340
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
322
341
|
},
|
|
323
342
|
{
|
|
324
343
|
"color": "error" as typeof color[number],
|
|
@@ -326,37 +345,37 @@ export default {
|
|
|
326
345
|
"outline" as typeof variant[number],
|
|
327
346
|
"subtle" as typeof variant[number]
|
|
328
347
|
],
|
|
329
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
348
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
330
349
|
},
|
|
331
350
|
{
|
|
332
351
|
"color": "primary" as typeof color[number],
|
|
333
352
|
"highlight": true,
|
|
334
|
-
"class": "ring ring-inset ring-
|
|
353
|
+
"class": "ring ring-inset ring-primary"
|
|
335
354
|
},
|
|
336
355
|
{
|
|
337
356
|
"color": "secondary" as typeof color[number],
|
|
338
357
|
"highlight": true,
|
|
339
|
-
"class": "ring ring-inset ring-
|
|
358
|
+
"class": "ring ring-inset ring-secondary"
|
|
340
359
|
},
|
|
341
360
|
{
|
|
342
361
|
"color": "success" as typeof color[number],
|
|
343
362
|
"highlight": true,
|
|
344
|
-
"class": "ring ring-inset ring-
|
|
363
|
+
"class": "ring ring-inset ring-success"
|
|
345
364
|
},
|
|
346
365
|
{
|
|
347
366
|
"color": "info" as typeof color[number],
|
|
348
367
|
"highlight": true,
|
|
349
|
-
"class": "ring ring-inset ring-
|
|
368
|
+
"class": "ring ring-inset ring-info"
|
|
350
369
|
},
|
|
351
370
|
{
|
|
352
371
|
"color": "warning" as typeof color[number],
|
|
353
372
|
"highlight": true,
|
|
354
|
-
"class": "ring ring-inset ring-
|
|
373
|
+
"class": "ring ring-inset ring-warning"
|
|
355
374
|
},
|
|
356
375
|
{
|
|
357
376
|
"color": "error" as typeof color[number],
|
|
358
377
|
"highlight": true,
|
|
359
|
-
"class": "ring ring-inset ring-
|
|
378
|
+
"class": "ring ring-inset ring-error"
|
|
360
379
|
},
|
|
361
380
|
{
|
|
362
381
|
"color": "neutral" as typeof color[number],
|
|
@@ -364,12 +383,12 @@ export default {
|
|
|
364
383
|
"outline" as typeof variant[number],
|
|
365
384
|
"subtle" as typeof variant[number]
|
|
366
385
|
],
|
|
367
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
386
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
368
387
|
},
|
|
369
388
|
{
|
|
370
389
|
"color": "neutral" as typeof color[number],
|
|
371
390
|
"highlight": true,
|
|
372
|
-
"class": "ring ring-inset ring-
|
|
391
|
+
"class": "ring ring-inset ring-inverted"
|
|
373
392
|
},
|
|
374
393
|
{
|
|
375
394
|
"leading": true,
|
|
@@ -442,4 +461,6 @@ export default {
|
|
|
442
461
|
"color": "primary" as typeof color[number],
|
|
443
462
|
"variant": "outline" as typeof variant[number]
|
|
444
463
|
}
|
|
445
|
-
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export default result as typeof theme
|
package/.nuxt/ui/input-number.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/input-number"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -29,11 +31,28 @@ const orientation = [
|
|
|
29
31
|
"vertical"
|
|
30
32
|
] as const
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
35
|
+
"prefix": "U",
|
|
36
|
+
"fonts": true,
|
|
37
|
+
"colorMode": true,
|
|
38
|
+
"theme": {
|
|
39
|
+
"colors": [
|
|
40
|
+
"primary",
|
|
41
|
+
"secondary",
|
|
42
|
+
"success",
|
|
43
|
+
"info",
|
|
44
|
+
"warning",
|
|
45
|
+
"error"
|
|
46
|
+
],
|
|
47
|
+
"transitions": true
|
|
48
|
+
}
|
|
49
|
+
}) : template
|
|
50
|
+
|
|
51
|
+
const theme = {
|
|
33
52
|
"slots": {
|
|
34
53
|
"root": "relative inline-flex items-center",
|
|
35
54
|
"base": [
|
|
36
|
-
"w-full rounded-
|
|
55
|
+
"w-full rounded-md border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
37
56
|
"transition-colors"
|
|
38
57
|
],
|
|
39
58
|
"increment": "absolute flex items-center",
|
|
@@ -57,11 +76,11 @@ export default {
|
|
|
57
76
|
"xl": "px-3 py-2 text-base gap-2"
|
|
58
77
|
},
|
|
59
78
|
"variant": {
|
|
60
|
-
"outline": "text-
|
|
61
|
-
"soft": "text-
|
|
62
|
-
"subtle": "text-
|
|
63
|
-
"ghost": "text-
|
|
64
|
-
"none": "text-
|
|
79
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
80
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
81
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
82
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
83
|
+
"none": "text-highlighted bg-transparent"
|
|
65
84
|
},
|
|
66
85
|
"disabled": {
|
|
67
86
|
"true": {
|
|
@@ -91,7 +110,7 @@ export default {
|
|
|
91
110
|
"outline" as typeof variant[number],
|
|
92
111
|
"subtle" as typeof variant[number]
|
|
93
112
|
],
|
|
94
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
113
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
95
114
|
},
|
|
96
115
|
{
|
|
97
116
|
"color": "secondary" as typeof color[number],
|
|
@@ -99,7 +118,7 @@ export default {
|
|
|
99
118
|
"outline" as typeof variant[number],
|
|
100
119
|
"subtle" as typeof variant[number]
|
|
101
120
|
],
|
|
102
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
121
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
103
122
|
},
|
|
104
123
|
{
|
|
105
124
|
"color": "success" as typeof color[number],
|
|
@@ -107,7 +126,7 @@ export default {
|
|
|
107
126
|
"outline" as typeof variant[number],
|
|
108
127
|
"subtle" as typeof variant[number]
|
|
109
128
|
],
|
|
110
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
129
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
111
130
|
},
|
|
112
131
|
{
|
|
113
132
|
"color": "info" as typeof color[number],
|
|
@@ -115,7 +134,7 @@ export default {
|
|
|
115
134
|
"outline" as typeof variant[number],
|
|
116
135
|
"subtle" as typeof variant[number]
|
|
117
136
|
],
|
|
118
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
137
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
119
138
|
},
|
|
120
139
|
{
|
|
121
140
|
"color": "warning" as typeof color[number],
|
|
@@ -123,7 +142,7 @@ export default {
|
|
|
123
142
|
"outline" as typeof variant[number],
|
|
124
143
|
"subtle" as typeof variant[number]
|
|
125
144
|
],
|
|
126
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
145
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
127
146
|
},
|
|
128
147
|
{
|
|
129
148
|
"color": "error" as typeof color[number],
|
|
@@ -131,37 +150,37 @@ export default {
|
|
|
131
150
|
"outline" as typeof variant[number],
|
|
132
151
|
"subtle" as typeof variant[number]
|
|
133
152
|
],
|
|
134
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
153
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
135
154
|
},
|
|
136
155
|
{
|
|
137
156
|
"color": "primary" as typeof color[number],
|
|
138
157
|
"highlight": true,
|
|
139
|
-
"class": "ring ring-inset ring-
|
|
158
|
+
"class": "ring ring-inset ring-primary"
|
|
140
159
|
},
|
|
141
160
|
{
|
|
142
161
|
"color": "secondary" as typeof color[number],
|
|
143
162
|
"highlight": true,
|
|
144
|
-
"class": "ring ring-inset ring-
|
|
163
|
+
"class": "ring ring-inset ring-secondary"
|
|
145
164
|
},
|
|
146
165
|
{
|
|
147
166
|
"color": "success" as typeof color[number],
|
|
148
167
|
"highlight": true,
|
|
149
|
-
"class": "ring ring-inset ring-
|
|
168
|
+
"class": "ring ring-inset ring-success"
|
|
150
169
|
},
|
|
151
170
|
{
|
|
152
171
|
"color": "info" as typeof color[number],
|
|
153
172
|
"highlight": true,
|
|
154
|
-
"class": "ring ring-inset ring-
|
|
173
|
+
"class": "ring ring-inset ring-info"
|
|
155
174
|
},
|
|
156
175
|
{
|
|
157
176
|
"color": "warning" as typeof color[number],
|
|
158
177
|
"highlight": true,
|
|
159
|
-
"class": "ring ring-inset ring-
|
|
178
|
+
"class": "ring ring-inset ring-warning"
|
|
160
179
|
},
|
|
161
180
|
{
|
|
162
181
|
"color": "error" as typeof color[number],
|
|
163
182
|
"highlight": true,
|
|
164
|
-
"class": "ring ring-inset ring-
|
|
183
|
+
"class": "ring ring-inset ring-error"
|
|
165
184
|
},
|
|
166
185
|
{
|
|
167
186
|
"color": "neutral" as typeof color[number],
|
|
@@ -169,12 +188,12 @@ export default {
|
|
|
169
188
|
"outline" as typeof variant[number],
|
|
170
189
|
"subtle" as typeof variant[number]
|
|
171
190
|
],
|
|
172
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
191
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
173
192
|
},
|
|
174
193
|
{
|
|
175
194
|
"color": "neutral" as typeof color[number],
|
|
176
195
|
"highlight": true,
|
|
177
|
-
"class": "ring ring-inset ring-
|
|
196
|
+
"class": "ring ring-inset ring-inverted"
|
|
178
197
|
},
|
|
179
198
|
{
|
|
180
199
|
"orientation": "horizontal" as typeof orientation[number],
|
|
@@ -232,4 +251,6 @@ export default {
|
|
|
232
251
|
"color": "primary" as typeof color[number],
|
|
233
252
|
"variant": "outline" as typeof variant[number]
|
|
234
253
|
}
|
|
235
|
-
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export default result as typeof theme
|
package/.nuxt/ui/input.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/input"
|
|
2
|
+
|
|
1
3
|
const buttonGroup = [
|
|
2
4
|
"horizontal",
|
|
3
5
|
"vertical"
|
|
@@ -33,19 +35,36 @@ const type = [
|
|
|
33
35
|
"file"
|
|
34
36
|
] as const
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
39
|
+
"prefix": "U",
|
|
40
|
+
"fonts": true,
|
|
41
|
+
"colorMode": true,
|
|
42
|
+
"theme": {
|
|
43
|
+
"colors": [
|
|
44
|
+
"primary",
|
|
45
|
+
"secondary",
|
|
46
|
+
"success",
|
|
47
|
+
"info",
|
|
48
|
+
"warning",
|
|
49
|
+
"error"
|
|
50
|
+
],
|
|
51
|
+
"transitions": true
|
|
52
|
+
}
|
|
53
|
+
}) : template
|
|
54
|
+
|
|
55
|
+
const theme = {
|
|
37
56
|
"slots": {
|
|
38
57
|
"root": "relative inline-flex items-center",
|
|
39
58
|
"base": [
|
|
40
|
-
"w-full rounded-
|
|
59
|
+
"w-full rounded-md border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
41
60
|
"transition-colors"
|
|
42
61
|
],
|
|
43
62
|
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
44
|
-
"leadingIcon": "shrink-0 text-
|
|
63
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
45
64
|
"leadingAvatar": "shrink-0",
|
|
46
65
|
"leadingAvatarSize": "",
|
|
47
66
|
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
48
|
-
"trailingIcon": "shrink-0 text-
|
|
67
|
+
"trailingIcon": "shrink-0 text-dimmed"
|
|
49
68
|
},
|
|
50
69
|
"variants": {
|
|
51
70
|
"buttonGroup": {
|
|
@@ -101,11 +120,11 @@ export default {
|
|
|
101
120
|
}
|
|
102
121
|
},
|
|
103
122
|
"variant": {
|
|
104
|
-
"outline": "text-
|
|
105
|
-
"soft": "text-
|
|
106
|
-
"subtle": "text-
|
|
107
|
-
"ghost": "text-
|
|
108
|
-
"none": "text-
|
|
123
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
124
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
125
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
126
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
127
|
+
"none": "text-highlighted bg-transparent"
|
|
109
128
|
},
|
|
110
129
|
"color": {
|
|
111
130
|
"primary": "",
|
|
@@ -129,7 +148,7 @@ export default {
|
|
|
129
148
|
"true": ""
|
|
130
149
|
},
|
|
131
150
|
"type": {
|
|
132
|
-
"file": "file:me-1.5 file:font-medium file:text-
|
|
151
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
133
152
|
}
|
|
134
153
|
},
|
|
135
154
|
"compoundVariants": [
|
|
@@ -139,7 +158,7 @@ export default {
|
|
|
139
158
|
"outline" as typeof variant[number],
|
|
140
159
|
"subtle" as typeof variant[number]
|
|
141
160
|
],
|
|
142
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
161
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
143
162
|
},
|
|
144
163
|
{
|
|
145
164
|
"color": "secondary" as typeof color[number],
|
|
@@ -147,7 +166,7 @@ export default {
|
|
|
147
166
|
"outline" as typeof variant[number],
|
|
148
167
|
"subtle" as typeof variant[number]
|
|
149
168
|
],
|
|
150
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
169
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
151
170
|
},
|
|
152
171
|
{
|
|
153
172
|
"color": "success" as typeof color[number],
|
|
@@ -155,7 +174,7 @@ export default {
|
|
|
155
174
|
"outline" as typeof variant[number],
|
|
156
175
|
"subtle" as typeof variant[number]
|
|
157
176
|
],
|
|
158
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
177
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
159
178
|
},
|
|
160
179
|
{
|
|
161
180
|
"color": "info" as typeof color[number],
|
|
@@ -163,7 +182,7 @@ export default {
|
|
|
163
182
|
"outline" as typeof variant[number],
|
|
164
183
|
"subtle" as typeof variant[number]
|
|
165
184
|
],
|
|
166
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
185
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
167
186
|
},
|
|
168
187
|
{
|
|
169
188
|
"color": "warning" as typeof color[number],
|
|
@@ -171,7 +190,7 @@ export default {
|
|
|
171
190
|
"outline" as typeof variant[number],
|
|
172
191
|
"subtle" as typeof variant[number]
|
|
173
192
|
],
|
|
174
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
193
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
175
194
|
},
|
|
176
195
|
{
|
|
177
196
|
"color": "error" as typeof color[number],
|
|
@@ -179,37 +198,37 @@ export default {
|
|
|
179
198
|
"outline" as typeof variant[number],
|
|
180
199
|
"subtle" as typeof variant[number]
|
|
181
200
|
],
|
|
182
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
201
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
183
202
|
},
|
|
184
203
|
{
|
|
185
204
|
"color": "primary" as typeof color[number],
|
|
186
205
|
"highlight": true,
|
|
187
|
-
"class": "ring ring-inset ring-
|
|
206
|
+
"class": "ring ring-inset ring-primary"
|
|
188
207
|
},
|
|
189
208
|
{
|
|
190
209
|
"color": "secondary" as typeof color[number],
|
|
191
210
|
"highlight": true,
|
|
192
|
-
"class": "ring ring-inset ring-
|
|
211
|
+
"class": "ring ring-inset ring-secondary"
|
|
193
212
|
},
|
|
194
213
|
{
|
|
195
214
|
"color": "success" as typeof color[number],
|
|
196
215
|
"highlight": true,
|
|
197
|
-
"class": "ring ring-inset ring-
|
|
216
|
+
"class": "ring ring-inset ring-success"
|
|
198
217
|
},
|
|
199
218
|
{
|
|
200
219
|
"color": "info" as typeof color[number],
|
|
201
220
|
"highlight": true,
|
|
202
|
-
"class": "ring ring-inset ring-
|
|
221
|
+
"class": "ring ring-inset ring-info"
|
|
203
222
|
},
|
|
204
223
|
{
|
|
205
224
|
"color": "warning" as typeof color[number],
|
|
206
225
|
"highlight": true,
|
|
207
|
-
"class": "ring ring-inset ring-
|
|
226
|
+
"class": "ring ring-inset ring-warning"
|
|
208
227
|
},
|
|
209
228
|
{
|
|
210
229
|
"color": "error" as typeof color[number],
|
|
211
230
|
"highlight": true,
|
|
212
|
-
"class": "ring ring-inset ring-
|
|
231
|
+
"class": "ring ring-inset ring-error"
|
|
213
232
|
},
|
|
214
233
|
{
|
|
215
234
|
"color": "neutral" as typeof color[number],
|
|
@@ -217,12 +236,12 @@ export default {
|
|
|
217
236
|
"outline" as typeof variant[number],
|
|
218
237
|
"subtle" as typeof variant[number]
|
|
219
238
|
],
|
|
220
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
239
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
221
240
|
},
|
|
222
241
|
{
|
|
223
242
|
"color": "neutral" as typeof color[number],
|
|
224
243
|
"highlight": true,
|
|
225
|
-
"class": "ring ring-inset ring-
|
|
244
|
+
"class": "ring ring-inset ring-inverted"
|
|
226
245
|
},
|
|
227
246
|
{
|
|
228
247
|
"leading": true,
|
|
@@ -295,4 +314,6 @@ export default {
|
|
|
295
314
|
"color": "primary" as typeof color[number],
|
|
296
315
|
"variant": "outline" as typeof variant[number]
|
|
297
316
|
}
|
|
298
|
-
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export default result as typeof theme
|