@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/checkbox.ts
CHANGED
|
@@ -8,6 +8,17 @@ const color = [
|
|
|
8
8
|
"neutral"
|
|
9
9
|
] as const
|
|
10
10
|
|
|
11
|
+
const variant = [
|
|
12
|
+
"list",
|
|
13
|
+
"card"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const indicator = [
|
|
17
|
+
"start",
|
|
18
|
+
"end",
|
|
19
|
+
"hidden"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
11
22
|
const size = [
|
|
12
23
|
"xs",
|
|
13
24
|
"sm",
|
|
@@ -19,22 +30,66 @@ const size = [
|
|
|
19
30
|
export default {
|
|
20
31
|
"slots": {
|
|
21
32
|
"root": "relative flex items-start",
|
|
22
|
-
"base": "shrink-0 flex items-center justify-center rounded-(--ui-radius) text-(--ui-bg) ring ring-inset ring-(--ui-border-accented) focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
23
33
|
"container": "flex items-center",
|
|
24
|
-
"
|
|
34
|
+
"base": "rounded-sm ring ring-inset ring-accented overflow-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
35
|
+
"indicator": "flex items-center justify-center size-full text-inverted" as typeof indicator[number],
|
|
25
36
|
"icon": "shrink-0 size-full",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
37
|
+
"wrapper": "w-full",
|
|
38
|
+
"label": "block font-medium text-default",
|
|
39
|
+
"description": "text-muted"
|
|
28
40
|
},
|
|
29
41
|
"variants": {
|
|
30
42
|
"color": {
|
|
31
|
-
"primary":
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
"primary": {
|
|
44
|
+
"base": "focus-visible:outline-primary",
|
|
45
|
+
"indicator": "bg-primary" as typeof indicator[number]
|
|
46
|
+
},
|
|
47
|
+
"secondary": {
|
|
48
|
+
"base": "focus-visible:outline-secondary",
|
|
49
|
+
"indicator": "bg-secondary" as typeof indicator[number]
|
|
50
|
+
},
|
|
51
|
+
"success": {
|
|
52
|
+
"base": "focus-visible:outline-success",
|
|
53
|
+
"indicator": "bg-success" as typeof indicator[number]
|
|
54
|
+
},
|
|
55
|
+
"info": {
|
|
56
|
+
"base": "focus-visible:outline-info",
|
|
57
|
+
"indicator": "bg-info" as typeof indicator[number]
|
|
58
|
+
},
|
|
59
|
+
"warning": {
|
|
60
|
+
"base": "focus-visible:outline-warning",
|
|
61
|
+
"indicator": "bg-warning" as typeof indicator[number]
|
|
62
|
+
},
|
|
63
|
+
"error": {
|
|
64
|
+
"base": "focus-visible:outline-error",
|
|
65
|
+
"indicator": "bg-error" as typeof indicator[number]
|
|
66
|
+
},
|
|
67
|
+
"neutral": {
|
|
68
|
+
"base": "focus-visible:outline-inverted",
|
|
69
|
+
"indicator": "bg-inverted" as typeof indicator[number]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"variant": {
|
|
73
|
+
"list": {
|
|
74
|
+
"root": ""
|
|
75
|
+
},
|
|
76
|
+
"card": {
|
|
77
|
+
"root": "border border-muted rounded-lg"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"indicator": {
|
|
81
|
+
"start": {
|
|
82
|
+
"root": "flex-row",
|
|
83
|
+
"wrapper": "ms-2"
|
|
84
|
+
},
|
|
85
|
+
"end": {
|
|
86
|
+
"root": "flex-row-reverse",
|
|
87
|
+
"wrapper": "me-2"
|
|
88
|
+
},
|
|
89
|
+
"hidden": {
|
|
90
|
+
"base": "sr-only",
|
|
91
|
+
"wrapper": "text-center"
|
|
92
|
+
}
|
|
38
93
|
},
|
|
39
94
|
"size": {
|
|
40
95
|
"xs": {
|
|
@@ -65,7 +120,7 @@ export default {
|
|
|
65
120
|
},
|
|
66
121
|
"required": {
|
|
67
122
|
"true": {
|
|
68
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
123
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
69
124
|
}
|
|
70
125
|
},
|
|
71
126
|
"disabled": {
|
|
@@ -80,44 +135,102 @@ export default {
|
|
|
80
135
|
}
|
|
81
136
|
},
|
|
82
137
|
"compoundVariants": [
|
|
138
|
+
{
|
|
139
|
+
"size": "xs" as typeof size[number],
|
|
140
|
+
"variant": "card" as typeof variant[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"root": "p-2.5"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"size": "sm" as typeof size[number],
|
|
147
|
+
"variant": "card" as typeof variant[number],
|
|
148
|
+
"class": {
|
|
149
|
+
"root": "p-3"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"size": "md" as typeof size[number],
|
|
154
|
+
"variant": "card" as typeof variant[number],
|
|
155
|
+
"class": {
|
|
156
|
+
"root": "p-3.5"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"size": "lg" as typeof size[number],
|
|
161
|
+
"variant": "card" as typeof variant[number],
|
|
162
|
+
"class": {
|
|
163
|
+
"root": "p-4"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"size": "xl" as typeof size[number],
|
|
168
|
+
"variant": "card" as typeof variant[number],
|
|
169
|
+
"class": {
|
|
170
|
+
"root": "p-4.5"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
83
173
|
{
|
|
84
174
|
"color": "primary" as typeof color[number],
|
|
85
|
-
"
|
|
86
|
-
"class":
|
|
175
|
+
"variant": "card" as typeof variant[number],
|
|
176
|
+
"class": {
|
|
177
|
+
"root": "has-data-[state=checked]:border-primary"
|
|
178
|
+
}
|
|
87
179
|
},
|
|
88
180
|
{
|
|
89
181
|
"color": "secondary" as typeof color[number],
|
|
90
|
-
"
|
|
91
|
-
"class":
|
|
182
|
+
"variant": "card" as typeof variant[number],
|
|
183
|
+
"class": {
|
|
184
|
+
"root": "has-data-[state=checked]:border-secondary"
|
|
185
|
+
}
|
|
92
186
|
},
|
|
93
187
|
{
|
|
94
188
|
"color": "success" as typeof color[number],
|
|
95
|
-
"
|
|
96
|
-
"class":
|
|
189
|
+
"variant": "card" as typeof variant[number],
|
|
190
|
+
"class": {
|
|
191
|
+
"root": "has-data-[state=checked]:border-success"
|
|
192
|
+
}
|
|
97
193
|
},
|
|
98
194
|
{
|
|
99
195
|
"color": "info" as typeof color[number],
|
|
100
|
-
"
|
|
101
|
-
"class":
|
|
196
|
+
"variant": "card" as typeof variant[number],
|
|
197
|
+
"class": {
|
|
198
|
+
"root": "has-data-[state=checked]:border-info"
|
|
199
|
+
}
|
|
102
200
|
},
|
|
103
201
|
{
|
|
104
202
|
"color": "warning" as typeof color[number],
|
|
105
|
-
"
|
|
106
|
-
"class":
|
|
203
|
+
"variant": "card" as typeof variant[number],
|
|
204
|
+
"class": {
|
|
205
|
+
"root": "has-data-[state=checked]:border-warning"
|
|
206
|
+
}
|
|
107
207
|
},
|
|
108
208
|
{
|
|
109
209
|
"color": "error" as typeof color[number],
|
|
110
|
-
"
|
|
111
|
-
"class":
|
|
210
|
+
"variant": "card" as typeof variant[number],
|
|
211
|
+
"class": {
|
|
212
|
+
"root": "has-data-[state=checked]:border-error"
|
|
213
|
+
}
|
|
112
214
|
},
|
|
113
215
|
{
|
|
114
216
|
"color": "neutral" as typeof color[number],
|
|
115
|
-
"
|
|
116
|
-
"class":
|
|
217
|
+
"variant": "card" as typeof variant[number],
|
|
218
|
+
"class": {
|
|
219
|
+
"root": "has-data-[state=checked]:border-inverted"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"variant": "card" as typeof variant[number],
|
|
224
|
+
"disabled": true,
|
|
225
|
+
"class": {
|
|
226
|
+
"root": "cursor-not-allowed opacity-75"
|
|
227
|
+
}
|
|
117
228
|
}
|
|
118
229
|
],
|
|
119
230
|
"defaultVariants": {
|
|
120
231
|
"size": "md" as typeof size[number],
|
|
121
|
-
"color": "primary" as typeof color[number]
|
|
232
|
+
"color": "primary" as typeof color[number],
|
|
233
|
+
"variant": "list" as typeof variant[number],
|
|
234
|
+
"indicator": "start" as typeof indicator[number]
|
|
122
235
|
}
|
|
123
236
|
}
|
package/.nuxt/ui/chip.ts
CHANGED
|
@@ -30,17 +30,17 @@ const position = [
|
|
|
30
30
|
export default {
|
|
31
31
|
"slots": {
|
|
32
32
|
"root": "relative inline-flex items-center justify-center shrink-0",
|
|
33
|
-
"base": "rounded-full ring ring-
|
|
33
|
+
"base": "rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"
|
|
34
34
|
},
|
|
35
35
|
"variants": {
|
|
36
36
|
"color": {
|
|
37
|
-
"primary": "bg-
|
|
38
|
-
"secondary": "bg-
|
|
39
|
-
"success": "bg-
|
|
40
|
-
"info": "bg-
|
|
41
|
-
"warning": "bg-
|
|
42
|
-
"error": "bg-
|
|
43
|
-
"neutral": "bg-
|
|
37
|
+
"primary": "bg-primary",
|
|
38
|
+
"secondary": "bg-secondary",
|
|
39
|
+
"success": "bg-success",
|
|
40
|
+
"info": "bg-info",
|
|
41
|
+
"warning": "bg-warning",
|
|
42
|
+
"error": "bg-error",
|
|
43
|
+
"neutral": "bg-inverted"
|
|
44
44
|
},
|
|
45
45
|
"size": {
|
|
46
46
|
"3xs": "h-[4px] min-w-[4px] text-[4px]",
|
package/.nuxt/ui/color-picker.ts
CHANGED
|
@@ -10,10 +10,10 @@ export default {
|
|
|
10
10
|
"slots": {
|
|
11
11
|
"root": "data-[disabled]:opacity-75",
|
|
12
12
|
"picker": "flex gap-4",
|
|
13
|
-
"selector": "rounded-
|
|
14
|
-
"selectorBackground": "w-full h-full relative rounded-
|
|
13
|
+
"selector": "rounded-md",
|
|
14
|
+
"selectorBackground": "w-full h-full relative rounded-md",
|
|
15
15
|
"selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-(--color-white) rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
16
|
-
"track": "w-[8px] relative rounded-
|
|
16
|
+
"track": "w-[8px] relative rounded-md",
|
|
17
17
|
"trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-(--color-white) cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
18
18
|
},
|
|
19
19
|
"variants": {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-
|
|
3
|
+
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-default",
|
|
4
4
|
"input": "[&>input]:h-12",
|
|
5
5
|
"close": "",
|
|
6
6
|
"content": "relative overflow-hidden flex flex-col",
|
|
7
|
-
"viewport": "relative divide-y divide-
|
|
7
|
+
"viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
|
|
8
8
|
"group": "p-1 isolate",
|
|
9
|
-
"empty": "py-6 text-center text-sm text-
|
|
10
|
-
"label": "
|
|
11
|
-
"item": "group relative w-full flex items-center gap-
|
|
9
|
+
"empty": "py-6 text-center text-sm text-muted",
|
|
10
|
+
"label": "p-1.5 text-xs font-semibold text-highlighted",
|
|
11
|
+
"item": "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",
|
|
12
12
|
"itemLeadingIcon": "shrink-0 size-5",
|
|
13
13
|
"itemLeadingAvatar": "shrink-0",
|
|
14
14
|
"itemLeadingAvatarSize": "2xs",
|
|
@@ -16,27 +16,27 @@ export default {
|
|
|
16
16
|
"itemLeadingChipSize": "md",
|
|
17
17
|
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
18
18
|
"itemTrailingIcon": "shrink-0 size-5",
|
|
19
|
-
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-
|
|
19
|
+
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-dimmed hidden group-data-highlighted:inline-flex",
|
|
20
20
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
|
|
21
21
|
"itemTrailingKbdsSize": "md",
|
|
22
|
-
"itemLabel": "truncate space-x-1 rtl:space-x-reverse text-
|
|
23
|
-
"itemLabelBase": "text-
|
|
24
|
-
"itemLabelPrefix": "text-
|
|
25
|
-
"itemLabelSuffix": "text-
|
|
22
|
+
"itemLabel": "truncate space-x-1 rtl:space-x-reverse text-dimmed",
|
|
23
|
+
"itemLabelBase": "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
|
|
24
|
+
"itemLabelPrefix": "text-default",
|
|
25
|
+
"itemLabelSuffix": "text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary"
|
|
26
26
|
},
|
|
27
27
|
"variants": {
|
|
28
28
|
"active": {
|
|
29
29
|
"true": {
|
|
30
|
-
"item": "text-
|
|
31
|
-
"itemLeadingIcon": "text-
|
|
30
|
+
"item": "text-highlighted before:bg-elevated",
|
|
31
|
+
"itemLeadingIcon": "text-default"
|
|
32
32
|
},
|
|
33
33
|
"false": {
|
|
34
34
|
"item": [
|
|
35
|
-
"text-
|
|
35
|
+
"text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
|
|
36
36
|
"transition-colors before:transition-colors"
|
|
37
37
|
],
|
|
38
38
|
"itemLeadingIcon": [
|
|
39
|
-
"text-
|
|
39
|
+
"text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
40
40
|
"transition-colors"
|
|
41
41
|
]
|
|
42
42
|
}
|
package/.nuxt/ui/context-menu.ts
CHANGED
|
@@ -18,11 +18,11 @@ const size = [
|
|
|
18
18
|
|
|
19
19
|
export default {
|
|
20
20
|
"slots": {
|
|
21
|
-
"content": "min-w-32 bg-
|
|
21
|
+
"content": "min-w-32 bg-default shadow-lg rounded-md ring ring-default divide-y divide-default overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-context-menu-content-transform-origin)",
|
|
22
22
|
"group": "p-1 isolate",
|
|
23
|
-
"label": "w-full flex items-center font-semibold text-
|
|
24
|
-
"separator": "-mx-1 my-1 h-px bg-
|
|
25
|
-
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-
|
|
23
|
+
"label": "w-full flex items-center font-semibold text-highlighted",
|
|
24
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
25
|
+
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
26
26
|
"itemLeadingIcon": "shrink-0",
|
|
27
27
|
"itemLeadingAvatar": "shrink-0",
|
|
28
28
|
"itemLeadingAvatarSize": "",
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
32
32
|
"itemTrailingKbdsSize": "",
|
|
33
33
|
"itemLabel": "truncate",
|
|
34
|
-
"itemLabelExternalIcon": "inline-block size-3 align-top text-
|
|
34
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-dimmed"
|
|
35
35
|
},
|
|
36
36
|
"variants": {
|
|
37
37
|
"color": {
|
|
@@ -45,16 +45,16 @@ export default {
|
|
|
45
45
|
},
|
|
46
46
|
"active": {
|
|
47
47
|
"true": {
|
|
48
|
-
"item": "text-
|
|
49
|
-
"itemLeadingIcon": "text-
|
|
48
|
+
"item": "text-highlighted before:bg-elevated",
|
|
49
|
+
"itemLeadingIcon": "text-default"
|
|
50
50
|
},
|
|
51
51
|
"false": {
|
|
52
52
|
"item": [
|
|
53
|
-
"text-
|
|
53
|
+
"text-default data-highlighted:text-highlighted data-[state=open]:text-highlighted data-highlighted:before:bg-elevated/50 data-[state=open]:before:bg-elevated/50",
|
|
54
54
|
"transition-colors before:transition-colors"
|
|
55
55
|
],
|
|
56
56
|
"itemLeadingIcon": [
|
|
57
|
-
"text-
|
|
57
|
+
"text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default",
|
|
58
58
|
"transition-colors"
|
|
59
59
|
]
|
|
60
60
|
}
|
|
@@ -117,96 +117,96 @@ export default {
|
|
|
117
117
|
"color": "primary" as typeof color[number],
|
|
118
118
|
"active": false,
|
|
119
119
|
"class": {
|
|
120
|
-
"item": "text-
|
|
121
|
-
"itemLeadingIcon": "text-
|
|
120
|
+
"item": "text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10",
|
|
121
|
+
"itemLeadingIcon": "text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"color": "secondary" as typeof color[number],
|
|
126
126
|
"active": false,
|
|
127
127
|
"class": {
|
|
128
|
-
"item": "text-
|
|
129
|
-
"itemLeadingIcon": "text-
|
|
128
|
+
"item": "text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10",
|
|
129
|
+
"itemLeadingIcon": "text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary"
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"color": "success" as typeof color[number],
|
|
134
134
|
"active": false,
|
|
135
135
|
"class": {
|
|
136
|
-
"item": "text-
|
|
137
|
-
"itemLeadingIcon": "text-
|
|
136
|
+
"item": "text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10",
|
|
137
|
+
"itemLeadingIcon": "text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success"
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"color": "info" as typeof color[number],
|
|
142
142
|
"active": false,
|
|
143
143
|
"class": {
|
|
144
|
-
"item": "text-
|
|
145
|
-
"itemLeadingIcon": "text-
|
|
144
|
+
"item": "text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10",
|
|
145
|
+
"itemLeadingIcon": "text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info"
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"color": "warning" as typeof color[number],
|
|
150
150
|
"active": false,
|
|
151
151
|
"class": {
|
|
152
|
-
"item": "text-
|
|
153
|
-
"itemLeadingIcon": "text-
|
|
152
|
+
"item": "text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10",
|
|
153
|
+
"itemLeadingIcon": "text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"color": "error" as typeof color[number],
|
|
158
158
|
"active": false,
|
|
159
159
|
"class": {
|
|
160
|
-
"item": "text-
|
|
161
|
-
"itemLeadingIcon": "text-
|
|
160
|
+
"item": "text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10",
|
|
161
|
+
"itemLeadingIcon": "text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error"
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"color": "primary" as typeof color[number],
|
|
166
166
|
"active": true,
|
|
167
167
|
"class": {
|
|
168
|
-
"item": "text-
|
|
169
|
-
"itemLeadingIcon": "text-
|
|
168
|
+
"item": "text-primary before:bg-primary/10",
|
|
169
|
+
"itemLeadingIcon": "text-primary"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"color": "secondary" as typeof color[number],
|
|
174
174
|
"active": true,
|
|
175
175
|
"class": {
|
|
176
|
-
"item": "text-
|
|
177
|
-
"itemLeadingIcon": "text-
|
|
176
|
+
"item": "text-secondary before:bg-secondary/10",
|
|
177
|
+
"itemLeadingIcon": "text-secondary"
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"color": "success" as typeof color[number],
|
|
182
182
|
"active": true,
|
|
183
183
|
"class": {
|
|
184
|
-
"item": "text-
|
|
185
|
-
"itemLeadingIcon": "text-
|
|
184
|
+
"item": "text-success before:bg-success/10",
|
|
185
|
+
"itemLeadingIcon": "text-success"
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"color": "info" as typeof color[number],
|
|
190
190
|
"active": true,
|
|
191
191
|
"class": {
|
|
192
|
-
"item": "text-
|
|
193
|
-
"itemLeadingIcon": "text-
|
|
192
|
+
"item": "text-info before:bg-info/10",
|
|
193
|
+
"itemLeadingIcon": "text-info"
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"color": "warning" as typeof color[number],
|
|
198
198
|
"active": true,
|
|
199
199
|
"class": {
|
|
200
|
-
"item": "text-
|
|
201
|
-
"itemLeadingIcon": "text-
|
|
200
|
+
"item": "text-warning before:bg-warning/10",
|
|
201
|
+
"itemLeadingIcon": "text-warning"
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
"color": "error" as typeof color[number],
|
|
206
206
|
"active": true,
|
|
207
207
|
"class": {
|
|
208
|
-
"item": "text-
|
|
209
|
-
"itemLeadingIcon": "text-
|
|
208
|
+
"item": "text-error before:bg-error/10",
|
|
209
|
+
"itemLeadingIcon": "text-error"
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
],
|
package/.nuxt/ui/drawer.ts
CHANGED
|
@@ -7,16 +7,16 @@ const direction = [
|
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
"slots": {
|
|
10
|
-
"overlay": "fixed inset-0 bg-
|
|
11
|
-
"content": "fixed bg-
|
|
10
|
+
"overlay": "fixed inset-0 bg-elevated/75",
|
|
11
|
+
"content": "fixed bg-default ring ring-default flex focus:outline-none",
|
|
12
12
|
"handle": [
|
|
13
|
-
"shrink-0 !bg-
|
|
13
|
+
"shrink-0 !bg-accented",
|
|
14
14
|
"transition-opacity"
|
|
15
15
|
],
|
|
16
16
|
"container": "w-full flex flex-col gap-4 p-4 overflow-y-auto",
|
|
17
17
|
"header": "",
|
|
18
|
-
"title": "text-
|
|
19
|
-
"description": "mt-1 text-
|
|
18
|
+
"title": "text-highlighted font-semibold",
|
|
19
|
+
"description": "mt-1 text-muted text-sm",
|
|
20
20
|
"body": "flex-1",
|
|
21
21
|
"footer": "flex flex-col gap-1.5"
|
|
22
22
|
},
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
},
|
|
42
42
|
"inset": {
|
|
43
43
|
"true": {
|
|
44
|
-
"content": "rounded-
|
|
44
|
+
"content": "rounded-lg after:hidden"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
},
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
"direction": "top" as typeof direction[number],
|
|
78
78
|
"inset": false,
|
|
79
79
|
"class": {
|
|
80
|
-
"content": "inset-x-0 top-0 rounded-b-
|
|
80
|
+
"content": "inset-x-0 top-0 rounded-b-lg"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
"direction": "bottom" as typeof direction[number],
|
|
92
92
|
"inset": false,
|
|
93
93
|
"class": {
|
|
94
|
-
"content": "inset-x-0 bottom-0 rounded-t-
|
|
94
|
+
"content": "inset-x-0 bottom-0 rounded-t-lg"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
105
105
|
"direction": "left" as typeof direction[number],
|
|
106
106
|
"inset": false,
|
|
107
107
|
"class": {
|
|
108
|
-
"content": "inset-y-0 left-0 rounded-r-
|
|
108
|
+
"content": "inset-y-0 left-0 rounded-r-lg"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
{
|
|
@@ -119,7 +119,7 @@ export default {
|
|
|
119
119
|
"direction": "right" as typeof direction[number],
|
|
120
120
|
"inset": false,
|
|
121
121
|
"class": {
|
|
122
|
-
"content": "inset-y-0 right-0 rounded-l-
|
|
122
|
+
"content": "inset-y-0 right-0 rounded-l-lg"
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
]
|