@nuxt/ui 3.0.2 → 3.1.1
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 +29 -29
- package/.nuxt/ui/avatar-group.ts +1 -1
- package/.nuxt/ui/avatar.ts +3 -3
- package/.nuxt/ui/badge.ts +33 -33
- package/.nuxt/ui/breadcrumb.ts +5 -5
- package/.nuxt/ui/button.ts +43 -43
- package/.nuxt/ui/calendar.ts +17 -17
- package/.nuxt/ui/card.ts +5 -5
- package/.nuxt/ui/carousel.ts +6 -6
- package/.nuxt/ui/checkbox-group.ts +61 -0
- package/.nuxt/ui/checkbox.ts +140 -27
- package/.nuxt/ui/chip.ts +8 -8
- package/.nuxt/ui/color-picker.ts +3 -3
- package/.nuxt/ui/command-palette.ts +14 -14
- package/.nuxt/ui/context-menu.ts +33 -33
- package/.nuxt/ui/drawer.ts +10 -10
- package/.nuxt/ui/dropdown-menu.ts +34 -34
- package/.nuxt/ui/form-field.ts +6 -6
- package/.nuxt/ui/index.ts +1 -0
- package/.nuxt/ui/input-menu.ts +42 -42
- 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 +78 -80
- 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 +250 -35
- package/.nuxt/ui/select-menu.ts +36 -33
- package/.nuxt/ui/select.ts +32 -32
- 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 +15 -15
- package/.nuxt/ui/tabs.ts +32 -32
- package/.nuxt/ui/textarea.ts +40 -35
- package/.nuxt/ui/toast.ts +24 -24
- package/.nuxt/ui/tooltip.ts +2 -2
- package/.nuxt/ui/tree.ts +18 -18
- package/.nuxt/ui.css +63 -12
- package/README.md +15 -0
- package/cli/templates.mjs +18 -17
- package/dist/module.json +5 -5
- package/dist/module.mjs +12 -7
- package/dist/runtime/components/Accordion.vue +36 -93
- package/dist/runtime/components/Accordion.vue.d.ts +75 -0
- package/dist/runtime/components/Alert.vue +37 -100
- package/dist/runtime/components/Alert.vue.d.ts +81 -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 +39 -0
- package/dist/runtime/components/AvatarGroup.vue +40 -77
- package/dist/runtime/components/AvatarGroup.vue.d.ts +31 -0
- package/dist/runtime/components/Badge.vue +33 -62
- package/dist/runtime/components/Badge.vue.d.ts +41 -0
- package/dist/runtime/components/Breadcrumb.vue +37 -90
- package/dist/runtime/components/Breadcrumb.vue.d.ts +64 -0
- package/dist/runtime/components/Button.vue +95 -104
- package/dist/runtime/components/Button.vue.d.ts +48 -0
- package/dist/runtime/components/ButtonGroup.vue +20 -46
- package/dist/runtime/components/ButtonGroup.vue.d.ts +34 -0
- package/dist/runtime/components/Calendar.vue +67 -150
- package/dist/runtime/components/Calendar.vue.d.ts +111 -0
- package/dist/runtime/components/Card.vue +18 -40
- package/dist/runtime/components/Card.vue.d.ts +29 -0
- package/dist/runtime/components/Carousel.vue +112 -234
- package/dist/runtime/components/Carousel.vue.d.ts +122 -0
- package/dist/runtime/components/Checkbox.vue +52 -93
- package/dist/runtime/components/Checkbox.vue.d.ts +73 -0
- package/dist/runtime/components/CheckboxGroup.vue +121 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +78 -0
- package/dist/runtime/components/Chip.vue +26 -69
- package/dist/runtime/components/Chip.vue.d.ts +57 -0
- package/dist/runtime/components/Collapsible.vue +22 -41
- package/dist/runtime/components/Collapsible.vue.d.ts +35 -0
- package/dist/runtime/components/ColorPicker.vue +111 -197
- package/dist/runtime/components/ColorPicker.vue.d.ts +48 -0
- package/dist/runtime/components/CommandPalette.vue +96 -237
- package/dist/runtime/components/CommandPalette.vue.d.ts +161 -0
- package/dist/runtime/components/Container.vue +15 -28
- package/dist/runtime/components/Container.vue.d.ts +18 -0
- package/dist/runtime/components/ContextMenu.vue +34 -133
- package/dist/runtime/components/ContextMenu.vue.d.ts +107 -0
- package/dist/runtime/components/ContextMenuContent.vue +73 -81
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +65 -0
- package/dist/runtime/components/Drawer.vue +49 -83
- package/dist/runtime/components/Drawer.vue.d.ts +78 -0
- package/dist/runtime/components/DropdownMenu.vue +39 -142
- package/dist/runtime/components/DropdownMenu.vue.d.ts +117 -0
- package/dist/runtime/components/DropdownMenuContent.vue +78 -88
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +68 -0
- package/dist/runtime/components/Form.vue +135 -220
- package/dist/runtime/components/Form.vue.d.ts +69 -0
- package/dist/runtime/components/FormField.vue +35 -77
- package/dist/runtime/components/FormField.vue.d.ts +61 -0
- package/dist/runtime/components/Icon.vue +12 -19
- package/dist/runtime/components/Icon.vue.d.ts +8 -0
- package/dist/runtime/components/Input.vue +82 -140
- package/dist/runtime/components/Input.vue.d.ts +76 -0
- package/dist/runtime/components/InputMenu.vue +185 -332
- package/dist/runtime/components/InputMenu.vue.d.ts +324 -0
- package/dist/runtime/components/InputNumber.vue +71 -133
- package/dist/runtime/components/InputNumber.vue.d.ts +182 -0
- package/dist/runtime/components/Kbd.vue +20 -46
- package/dist/runtime/components/Kbd.vue.d.ts +34 -0
- package/dist/runtime/components/Link.vue +98 -176
- package/dist/runtime/components/Link.vue.d.ts +93 -0
- package/dist/runtime/components/LinkBase.vue +33 -42
- package/dist/runtime/components/LinkBase.vue.d.ts +25 -0
- package/dist/runtime/components/Modal.vue +53 -116
- package/dist/runtime/components/Modal.vue.d.ts +93 -0
- package/dist/runtime/components/NavigationMenu.vue +77 -209
- package/dist/runtime/components/NavigationMenu.vue.d.ts +139 -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 +119 -0
- package/dist/runtime/components/PinInput.vue +61 -78
- package/dist/runtime/components/PinInput.vue.d.ts +57 -0
- package/dist/runtime/components/Popover.vue +47 -84
- package/dist/runtime/components/Popover.vue.d.ts +63 -0
- package/dist/runtime/components/Progress.vue +70 -131
- package/dist/runtime/components/Progress.vue.d.ts +66 -0
- package/dist/runtime/components/RadioGroup.vue +70 -132
- package/dist/runtime/components/RadioGroup.vue.d.ts +91 -0
- package/dist/runtime/components/Select.vue +110 -224
- package/dist/runtime/components/Select.vue.d.ts +145 -0
- package/dist/runtime/components/SelectMenu.vue +161 -310
- package/dist/runtime/components/SelectMenu.vue.d.ts +196 -0
- package/dist/runtime/components/Separator.vue +29 -71
- package/dist/runtime/components/Separator.vue.d.ts +54 -0
- package/dist/runtime/components/Skeleton.vue +21 -23
- package/dist/runtime/components/Skeleton.vue.d.ts +17 -0
- package/dist/runtime/components/Slideover.vue +53 -120
- package/dist/runtime/components/Slideover.vue.d.ts +94 -0
- package/dist/runtime/components/Slider.vue +46 -84
- package/dist/runtime/components/Slider.vue.d.ts +52 -0
- package/dist/runtime/components/Stepper.vue +45 -115
- package/dist/runtime/components/Stepper.vue.d.ts +83 -0
- package/dist/runtime/components/Switch.vue +45 -93
- package/dist/runtime/components/Switch.vue.d.ts +70 -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 +88 -0
- package/dist/runtime/components/Textarea.vue +113 -158
- package/dist/runtime/components/Textarea.vue.d.ts +78 -0
- package/dist/runtime/components/Toast.vue +49 -110
- package/dist/runtime/components/Toast.vue.d.ts +157 -0
- package/dist/runtime/components/Toaster.vue +70 -107
- package/dist/runtime/components/Toaster.vue.d.ts +38 -0
- package/dist/runtime/components/Tooltip.vue +38 -65
- package/dist/runtime/components/Tooltip.vue.d.ts +50 -0
- package/dist/runtime/components/Tree.vue +59 -166
- package/dist/runtime/components/Tree.vue.d.ts +111 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +6 -0
- 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/useKbd.d.ts +1 -0
- package/dist/runtime/composables/useKbd.js +4 -3
- package/dist/runtime/composables/useOverlay.d.ts +14 -8
- package/dist/runtime/composables/useOverlay.js +20 -7
- 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 +63 -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/tv.d.ts +53 -0
- package/dist/runtime/types/tv.js +0 -0
- package/dist/runtime/types/utils.d.ts +7 -17
- package/dist/runtime/types/utils.js +1 -0
- 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 +5 -0
- package/dist/runtime/vue/components/Link.vue +118 -202
- package/dist/runtime/vue/components/Link.vue.d.ts +93 -0
- package/dist/runtime/vue/stubs.d.ts +2 -2
- package/dist/shared/{ui.BkNUP964.mjs → ui.CbtTMMzt.mjs} +631 -366
- package/dist/types.d.mts +3 -5
- package/dist/unplugin.d.mts +6 -2
- package/dist/unplugin.mjs +25 -4
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +96 -54
- 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/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-
|
|
31
|
+
"rounded-md border-0 placeholder: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-highlighted bg-default ring ring-inset ring-accented",
|
|
55
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
56
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
57
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
58
|
+
"none": "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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-default shadow-lg rounded-md ring ring-default data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-popover-content-transform-origin) focus:outline-none pointer-events-auto",
|
|
4
|
+
"arrow": "fill-default"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/.nuxt/ui/progress.ts
CHANGED
|
@@ -40,9 +40,9 @@ const orientation = [
|
|
|
40
40
|
export default {
|
|
41
41
|
"slots": {
|
|
42
42
|
"root": "gap-2",
|
|
43
|
-
"base": "relative overflow-hidden rounded-full bg-
|
|
43
|
+
"base": "relative overflow-hidden rounded-full bg-accented",
|
|
44
44
|
"indicator": "rounded-full size-full transition-transform duration-200 ease-out",
|
|
45
|
-
"status": "flex justify-end text-
|
|
45
|
+
"status": "flex justify-end text-dimmed transition-[width] duration-200",
|
|
46
46
|
"steps": "grid items-end",
|
|
47
47
|
"step": "truncate text-end row-start-1 col-start-1 transition-opacity" as typeof step[number]
|
|
48
48
|
},
|
|
@@ -55,32 +55,32 @@ export default {
|
|
|
55
55
|
},
|
|
56
56
|
"color": {
|
|
57
57
|
"primary": {
|
|
58
|
-
"indicator": "bg-
|
|
59
|
-
"steps": "text-
|
|
58
|
+
"indicator": "bg-primary",
|
|
59
|
+
"steps": "text-primary"
|
|
60
60
|
},
|
|
61
61
|
"secondary": {
|
|
62
|
-
"indicator": "bg-
|
|
63
|
-
"steps": "text-
|
|
62
|
+
"indicator": "bg-secondary",
|
|
63
|
+
"steps": "text-secondary"
|
|
64
64
|
},
|
|
65
65
|
"success": {
|
|
66
|
-
"indicator": "bg-
|
|
67
|
-
"steps": "text-
|
|
66
|
+
"indicator": "bg-success",
|
|
67
|
+
"steps": "text-success"
|
|
68
68
|
},
|
|
69
69
|
"info": {
|
|
70
|
-
"indicator": "bg-
|
|
71
|
-
"steps": "text-
|
|
70
|
+
"indicator": "bg-info",
|
|
71
|
+
"steps": "text-info"
|
|
72
72
|
},
|
|
73
73
|
"warning": {
|
|
74
|
-
"indicator": "bg-
|
|
75
|
-
"steps": "text-
|
|
74
|
+
"indicator": "bg-warning",
|
|
75
|
+
"steps": "text-warning"
|
|
76
76
|
},
|
|
77
77
|
"error": {
|
|
78
|
-
"indicator": "bg-
|
|
79
|
-
"steps": "text-
|
|
78
|
+
"indicator": "bg-error",
|
|
79
|
+
"steps": "text-error"
|
|
80
80
|
},
|
|
81
81
|
"neutral": {
|
|
82
|
-
"indicator": "bg-
|
|
83
|
-
"steps": "text-
|
|
82
|
+
"indicator": "bg-inverted",
|
|
83
|
+
"steps": "text-inverted"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"size": {
|
|
@@ -118,7 +118,7 @@ export default {
|
|
|
118
118
|
"step": "opacity-100" as typeof step[number]
|
|
119
119
|
},
|
|
120
120
|
"first": {
|
|
121
|
-
"step": "opacity-100 text-
|
|
121
|
+
"step": "opacity-100 text-muted" as typeof step[number]
|
|
122
122
|
},
|
|
123
123
|
"other": {
|
|
124
124
|
"step": "opacity-0" as typeof step[number]
|
package/.nuxt/ui/radio-group.ts
CHANGED
|
@@ -8,11 +8,23 @@ const color = [
|
|
|
8
8
|
"neutral"
|
|
9
9
|
] as const
|
|
10
10
|
|
|
11
|
+
const variant = [
|
|
12
|
+
"list",
|
|
13
|
+
"card",
|
|
14
|
+
"table"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
11
17
|
const orientation = [
|
|
12
18
|
"horizontal",
|
|
13
19
|
"vertical"
|
|
14
20
|
] as const
|
|
15
21
|
|
|
22
|
+
const indicator = [
|
|
23
|
+
"start",
|
|
24
|
+
"end",
|
|
25
|
+
"hidden"
|
|
26
|
+
] as const
|
|
27
|
+
|
|
16
28
|
const size = [
|
|
17
29
|
"xs",
|
|
18
30
|
"sm",
|
|
@@ -24,96 +36,120 @@ const size = [
|
|
|
24
36
|
export default {
|
|
25
37
|
"slots": {
|
|
26
38
|
"root": "relative",
|
|
27
|
-
"fieldset": "flex",
|
|
28
|
-
"legend": "mb-1 block font-medium text-
|
|
39
|
+
"fieldset": "flex gap-x-2",
|
|
40
|
+
"legend": "mb-1 block font-medium text-default",
|
|
29
41
|
"item": "flex items-start",
|
|
30
|
-
"base": "rounded-full ring ring-inset ring-(--ui-border-accented) focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
31
|
-
"indicator": "flex items-center justify-center size-full rounded-full after:bg-(--ui-bg) after:rounded-full",
|
|
32
42
|
"container": "flex items-center",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
43
|
+
"base": "rounded-full ring ring-inset ring-accented overflow-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
44
|
+
"indicator": "flex items-center justify-center size-full after:bg-default after:rounded-full" as typeof indicator[number],
|
|
45
|
+
"wrapper": "w-full",
|
|
46
|
+
"label": "block font-medium text-default",
|
|
47
|
+
"description": "text-muted"
|
|
36
48
|
},
|
|
37
49
|
"variants": {
|
|
38
50
|
"color": {
|
|
39
51
|
"primary": {
|
|
40
|
-
"base": "focus-visible:outline-
|
|
41
|
-
"indicator": "bg-
|
|
52
|
+
"base": "focus-visible:outline-primary",
|
|
53
|
+
"indicator": "bg-primary" as typeof indicator[number]
|
|
42
54
|
},
|
|
43
55
|
"secondary": {
|
|
44
|
-
"base": "focus-visible:outline-
|
|
45
|
-
"indicator": "bg-
|
|
56
|
+
"base": "focus-visible:outline-secondary",
|
|
57
|
+
"indicator": "bg-secondary" as typeof indicator[number]
|
|
46
58
|
},
|
|
47
59
|
"success": {
|
|
48
|
-
"base": "focus-visible:outline-
|
|
49
|
-
"indicator": "bg-
|
|
60
|
+
"base": "focus-visible:outline-success",
|
|
61
|
+
"indicator": "bg-success" as typeof indicator[number]
|
|
50
62
|
},
|
|
51
63
|
"info": {
|
|
52
|
-
"base": "focus-visible:outline-
|
|
53
|
-
"indicator": "bg-
|
|
64
|
+
"base": "focus-visible:outline-info",
|
|
65
|
+
"indicator": "bg-info" as typeof indicator[number]
|
|
54
66
|
},
|
|
55
67
|
"warning": {
|
|
56
|
-
"base": "focus-visible:outline-
|
|
57
|
-
"indicator": "bg-
|
|
68
|
+
"base": "focus-visible:outline-warning",
|
|
69
|
+
"indicator": "bg-warning" as typeof indicator[number]
|
|
58
70
|
},
|
|
59
71
|
"error": {
|
|
60
|
-
"base": "focus-visible:outline-
|
|
61
|
-
"indicator": "bg-
|
|
72
|
+
"base": "focus-visible:outline-error",
|
|
73
|
+
"indicator": "bg-error" as typeof indicator[number]
|
|
62
74
|
},
|
|
63
75
|
"neutral": {
|
|
64
|
-
"base": "focus-visible:outline-
|
|
65
|
-
"indicator": "bg-
|
|
76
|
+
"base": "focus-visible:outline-inverted",
|
|
77
|
+
"indicator": "bg-inverted" as typeof indicator[number]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"variant": {
|
|
81
|
+
"list": {
|
|
82
|
+
"item": ""
|
|
83
|
+
},
|
|
84
|
+
"card": {
|
|
85
|
+
"item": "border border-muted rounded-lg"
|
|
86
|
+
},
|
|
87
|
+
"table": {
|
|
88
|
+
"item": "border border-muted"
|
|
66
89
|
}
|
|
67
90
|
},
|
|
68
91
|
"orientation": {
|
|
69
92
|
"horizontal": {
|
|
70
|
-
"fieldset": "flex-row"
|
|
71
|
-
"wrapper": "me-2"
|
|
93
|
+
"fieldset": "flex-row"
|
|
72
94
|
},
|
|
73
95
|
"vertical": {
|
|
74
96
|
"fieldset": "flex-col"
|
|
75
97
|
}
|
|
76
98
|
},
|
|
99
|
+
"indicator": {
|
|
100
|
+
"start": {
|
|
101
|
+
"item": "flex-row",
|
|
102
|
+
"wrapper": "ms-2"
|
|
103
|
+
},
|
|
104
|
+
"end": {
|
|
105
|
+
"item": "flex-row-reverse",
|
|
106
|
+
"wrapper": "me-2"
|
|
107
|
+
},
|
|
108
|
+
"hidden": {
|
|
109
|
+
"base": "sr-only",
|
|
110
|
+
"wrapper": "text-center"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
77
113
|
"size": {
|
|
78
114
|
"xs": {
|
|
79
|
-
"fieldset": "gap-0.5",
|
|
115
|
+
"fieldset": "gap-y-0.5",
|
|
80
116
|
"legend": "text-xs",
|
|
81
117
|
"base": "size-3",
|
|
82
118
|
"item": "text-xs",
|
|
83
119
|
"container": "h-4",
|
|
84
|
-
"indicator": "after:size-1"
|
|
120
|
+
"indicator": "after:size-1" as typeof indicator[number]
|
|
85
121
|
},
|
|
86
122
|
"sm": {
|
|
87
|
-
"fieldset": "gap-0.5",
|
|
123
|
+
"fieldset": "gap-y-0.5",
|
|
88
124
|
"legend": "text-xs",
|
|
89
125
|
"base": "size-3.5",
|
|
90
126
|
"item": "text-xs",
|
|
91
127
|
"container": "h-4",
|
|
92
|
-
"indicator": "after:size-1"
|
|
128
|
+
"indicator": "after:size-1" as typeof indicator[number]
|
|
93
129
|
},
|
|
94
130
|
"md": {
|
|
95
|
-
"fieldset": "gap-1",
|
|
131
|
+
"fieldset": "gap-y-1",
|
|
96
132
|
"legend": "text-sm",
|
|
97
133
|
"base": "size-4",
|
|
98
134
|
"item": "text-sm",
|
|
99
135
|
"container": "h-5",
|
|
100
|
-
"indicator": "after:size-1.5"
|
|
136
|
+
"indicator": "after:size-1.5" as typeof indicator[number]
|
|
101
137
|
},
|
|
102
138
|
"lg": {
|
|
103
|
-
"fieldset": "gap-1",
|
|
139
|
+
"fieldset": "gap-y-1",
|
|
104
140
|
"legend": "text-sm",
|
|
105
141
|
"base": "size-4.5",
|
|
106
142
|
"item": "text-sm",
|
|
107
143
|
"container": "h-5",
|
|
108
|
-
"indicator": "after:size-1.5"
|
|
144
|
+
"indicator": "after:size-1.5" as typeof indicator[number]
|
|
109
145
|
},
|
|
110
146
|
"xl": {
|
|
111
|
-
"fieldset": "gap-1.5",
|
|
147
|
+
"fieldset": "gap-y-1.5",
|
|
112
148
|
"legend": "text-base",
|
|
113
149
|
"base": "size-5",
|
|
114
150
|
"item": "text-base",
|
|
115
151
|
"container": "h-6",
|
|
116
|
-
"indicator": "after:size-2"
|
|
152
|
+
"indicator": "after:size-2" as typeof indicator[number]
|
|
117
153
|
}
|
|
118
154
|
},
|
|
119
155
|
"disabled": {
|
|
@@ -124,12 +160,191 @@ export default {
|
|
|
124
160
|
},
|
|
125
161
|
"required": {
|
|
126
162
|
"true": {
|
|
127
|
-
"legend": "after:content-['*'] after:ms-0.5 after:text-
|
|
163
|
+
"legend": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
128
164
|
}
|
|
129
165
|
}
|
|
130
166
|
},
|
|
167
|
+
"compoundVariants": [
|
|
168
|
+
{
|
|
169
|
+
"size": "xs" as typeof size[number],
|
|
170
|
+
"variant": [
|
|
171
|
+
"card" as typeof variant[number],
|
|
172
|
+
"table" as typeof variant[number]
|
|
173
|
+
],
|
|
174
|
+
"class": {
|
|
175
|
+
"item": "p-2.5"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"size": "sm" as typeof size[number],
|
|
180
|
+
"variant": [
|
|
181
|
+
"card" as typeof variant[number],
|
|
182
|
+
"table" as typeof variant[number]
|
|
183
|
+
],
|
|
184
|
+
"class": {
|
|
185
|
+
"item": "p-3"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"size": "md" as typeof size[number],
|
|
190
|
+
"variant": [
|
|
191
|
+
"card" as typeof variant[number],
|
|
192
|
+
"table" as typeof variant[number]
|
|
193
|
+
],
|
|
194
|
+
"class": {
|
|
195
|
+
"item": "p-3.5"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"size": "lg" as typeof size[number],
|
|
200
|
+
"variant": [
|
|
201
|
+
"card" as typeof variant[number],
|
|
202
|
+
"table" as typeof variant[number]
|
|
203
|
+
],
|
|
204
|
+
"class": {
|
|
205
|
+
"item": "p-4"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"size": "xl" as typeof size[number],
|
|
210
|
+
"variant": [
|
|
211
|
+
"card" as typeof variant[number],
|
|
212
|
+
"table" as typeof variant[number]
|
|
213
|
+
],
|
|
214
|
+
"class": {
|
|
215
|
+
"item": "p-4.5"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
220
|
+
"variant": "table" as typeof variant[number],
|
|
221
|
+
"class": {
|
|
222
|
+
"item": "first-of-type:rounded-l-lg last-of-type:rounded-r-lg",
|
|
223
|
+
"fieldset": "gap-0 -space-x-px"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
228
|
+
"variant": "table" as typeof variant[number],
|
|
229
|
+
"class": {
|
|
230
|
+
"item": "first-of-type:rounded-t-lg last-of-type:rounded-b-lg",
|
|
231
|
+
"fieldset": "gap-0 -space-y-px"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"color": "primary" as typeof color[number],
|
|
236
|
+
"variant": "card" as typeof variant[number],
|
|
237
|
+
"class": {
|
|
238
|
+
"item": "has-data-[state=checked]:border-primary"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"color": "secondary" as typeof color[number],
|
|
243
|
+
"variant": "card" as typeof variant[number],
|
|
244
|
+
"class": {
|
|
245
|
+
"item": "has-data-[state=checked]:border-secondary"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"color": "success" as typeof color[number],
|
|
250
|
+
"variant": "card" as typeof variant[number],
|
|
251
|
+
"class": {
|
|
252
|
+
"item": "has-data-[state=checked]:border-success"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"color": "info" as typeof color[number],
|
|
257
|
+
"variant": "card" as typeof variant[number],
|
|
258
|
+
"class": {
|
|
259
|
+
"item": "has-data-[state=checked]:border-info"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"color": "warning" as typeof color[number],
|
|
264
|
+
"variant": "card" as typeof variant[number],
|
|
265
|
+
"class": {
|
|
266
|
+
"item": "has-data-[state=checked]:border-warning"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"color": "error" as typeof color[number],
|
|
271
|
+
"variant": "card" as typeof variant[number],
|
|
272
|
+
"class": {
|
|
273
|
+
"item": "has-data-[state=checked]:border-error"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"color": "neutral" as typeof color[number],
|
|
278
|
+
"variant": "card" as typeof variant[number],
|
|
279
|
+
"class": {
|
|
280
|
+
"item": "has-data-[state=checked]:border-inverted"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"color": "primary" as typeof color[number],
|
|
285
|
+
"variant": "table" as typeof variant[number],
|
|
286
|
+
"class": {
|
|
287
|
+
"item": "has-data-[state=checked]:bg-primary/10 has-data-[state=checked]:border-primary/50 has-data-[state=checked]:z-[1]"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"color": "secondary" as typeof color[number],
|
|
292
|
+
"variant": "table" as typeof variant[number],
|
|
293
|
+
"class": {
|
|
294
|
+
"item": "has-data-[state=checked]:bg-secondary/10 has-data-[state=checked]:border-secondary/50 has-data-[state=checked]:z-[1]"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"color": "success" as typeof color[number],
|
|
299
|
+
"variant": "table" as typeof variant[number],
|
|
300
|
+
"class": {
|
|
301
|
+
"item": "has-data-[state=checked]:bg-success/10 has-data-[state=checked]:border-success/50 has-data-[state=checked]:z-[1]"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"color": "info" as typeof color[number],
|
|
306
|
+
"variant": "table" as typeof variant[number],
|
|
307
|
+
"class": {
|
|
308
|
+
"item": "has-data-[state=checked]:bg-info/10 has-data-[state=checked]:border-info/50 has-data-[state=checked]:z-[1]"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"color": "warning" as typeof color[number],
|
|
313
|
+
"variant": "table" as typeof variant[number],
|
|
314
|
+
"class": {
|
|
315
|
+
"item": "has-data-[state=checked]:bg-warning/10 has-data-[state=checked]:border-warning/50 has-data-[state=checked]:z-[1]"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"color": "error" as typeof color[number],
|
|
320
|
+
"variant": "table" as typeof variant[number],
|
|
321
|
+
"class": {
|
|
322
|
+
"item": "has-data-[state=checked]:bg-error/10 has-data-[state=checked]:border-error/50 has-data-[state=checked]:z-[1]"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"color": "neutral" as typeof color[number],
|
|
327
|
+
"variant": "table" as typeof variant[number],
|
|
328
|
+
"class": {
|
|
329
|
+
"item": "has-data-[state=checked]:bg-elevated has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:z-[1]"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"variant": [
|
|
334
|
+
"card" as typeof variant[number],
|
|
335
|
+
"table" as typeof variant[number]
|
|
336
|
+
],
|
|
337
|
+
"disabled": true,
|
|
338
|
+
"class": {
|
|
339
|
+
"item": "cursor-not-allowed opacity-75"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
],
|
|
131
343
|
"defaultVariants": {
|
|
132
344
|
"size": "md" as typeof size[number],
|
|
133
|
-
"color": "primary" as typeof color[number]
|
|
345
|
+
"color": "primary" as typeof color[number],
|
|
346
|
+
"variant": "list" as typeof variant[number],
|
|
347
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
348
|
+
"indicator": "start" as typeof indicator[number]
|
|
134
349
|
}
|
|
135
350
|
}
|