@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/context-menu.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/context-menu"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -16,13 +18,30 @@ const size = [
|
|
|
16
18
|
"xl"
|
|
17
19
|
] as const
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
22
|
+
"prefix": "U",
|
|
23
|
+
"fonts": true,
|
|
24
|
+
"colorMode": true,
|
|
25
|
+
"theme": {
|
|
26
|
+
"colors": [
|
|
27
|
+
"primary",
|
|
28
|
+
"secondary",
|
|
29
|
+
"success",
|
|
30
|
+
"info",
|
|
31
|
+
"warning",
|
|
32
|
+
"error"
|
|
33
|
+
],
|
|
34
|
+
"transitions": true
|
|
35
|
+
}
|
|
36
|
+
}) : template
|
|
37
|
+
|
|
38
|
+
const theme = {
|
|
20
39
|
"slots": {
|
|
21
|
-
"content": "min-w-32 bg-
|
|
40
|
+
"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
41
|
"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-
|
|
42
|
+
"label": "w-full flex items-center font-semibold text-highlighted",
|
|
43
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
44
|
+
"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
45
|
"itemLeadingIcon": "shrink-0",
|
|
27
46
|
"itemLeadingAvatar": "shrink-0",
|
|
28
47
|
"itemLeadingAvatarSize": "",
|
|
@@ -31,7 +50,7 @@ export default {
|
|
|
31
50
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
32
51
|
"itemTrailingKbdsSize": "",
|
|
33
52
|
"itemLabel": "truncate",
|
|
34
|
-
"itemLabelExternalIcon": "inline-block size-3 align-top text-
|
|
53
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-dimmed"
|
|
35
54
|
},
|
|
36
55
|
"variants": {
|
|
37
56
|
"color": {
|
|
@@ -45,16 +64,16 @@ export default {
|
|
|
45
64
|
},
|
|
46
65
|
"active": {
|
|
47
66
|
"true": {
|
|
48
|
-
"item": "text-
|
|
49
|
-
"itemLeadingIcon": "text-
|
|
67
|
+
"item": "text-highlighted before:bg-elevated",
|
|
68
|
+
"itemLeadingIcon": "text-default"
|
|
50
69
|
},
|
|
51
70
|
"false": {
|
|
52
71
|
"item": [
|
|
53
|
-
"text-
|
|
72
|
+
"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
73
|
"transition-colors before:transition-colors"
|
|
55
74
|
],
|
|
56
75
|
"itemLeadingIcon": [
|
|
57
|
-
"text-
|
|
76
|
+
"text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default",
|
|
58
77
|
"transition-colors"
|
|
59
78
|
]
|
|
60
79
|
}
|
|
@@ -117,100 +136,102 @@ export default {
|
|
|
117
136
|
"color": "primary" as typeof color[number],
|
|
118
137
|
"active": false,
|
|
119
138
|
"class": {
|
|
120
|
-
"item": "text-
|
|
121
|
-
"itemLeadingIcon": "text-
|
|
139
|
+
"item": "text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10",
|
|
140
|
+
"itemLeadingIcon": "text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary"
|
|
122
141
|
}
|
|
123
142
|
},
|
|
124
143
|
{
|
|
125
144
|
"color": "secondary" as typeof color[number],
|
|
126
145
|
"active": false,
|
|
127
146
|
"class": {
|
|
128
|
-
"item": "text-
|
|
129
|
-
"itemLeadingIcon": "text-
|
|
147
|
+
"item": "text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10",
|
|
148
|
+
"itemLeadingIcon": "text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary"
|
|
130
149
|
}
|
|
131
150
|
},
|
|
132
151
|
{
|
|
133
152
|
"color": "success" as typeof color[number],
|
|
134
153
|
"active": false,
|
|
135
154
|
"class": {
|
|
136
|
-
"item": "text-
|
|
137
|
-
"itemLeadingIcon": "text-
|
|
155
|
+
"item": "text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10",
|
|
156
|
+
"itemLeadingIcon": "text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success"
|
|
138
157
|
}
|
|
139
158
|
},
|
|
140
159
|
{
|
|
141
160
|
"color": "info" as typeof color[number],
|
|
142
161
|
"active": false,
|
|
143
162
|
"class": {
|
|
144
|
-
"item": "text-
|
|
145
|
-
"itemLeadingIcon": "text-
|
|
163
|
+
"item": "text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10",
|
|
164
|
+
"itemLeadingIcon": "text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info"
|
|
146
165
|
}
|
|
147
166
|
},
|
|
148
167
|
{
|
|
149
168
|
"color": "warning" as typeof color[number],
|
|
150
169
|
"active": false,
|
|
151
170
|
"class": {
|
|
152
|
-
"item": "text-
|
|
153
|
-
"itemLeadingIcon": "text-
|
|
171
|
+
"item": "text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10",
|
|
172
|
+
"itemLeadingIcon": "text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning"
|
|
154
173
|
}
|
|
155
174
|
},
|
|
156
175
|
{
|
|
157
176
|
"color": "error" as typeof color[number],
|
|
158
177
|
"active": false,
|
|
159
178
|
"class": {
|
|
160
|
-
"item": "text-
|
|
161
|
-
"itemLeadingIcon": "text-
|
|
179
|
+
"item": "text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10",
|
|
180
|
+
"itemLeadingIcon": "text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error"
|
|
162
181
|
}
|
|
163
182
|
},
|
|
164
183
|
{
|
|
165
184
|
"color": "primary" as typeof color[number],
|
|
166
185
|
"active": true,
|
|
167
186
|
"class": {
|
|
168
|
-
"item": "text-
|
|
169
|
-
"itemLeadingIcon": "text-
|
|
187
|
+
"item": "text-primary before:bg-primary/10",
|
|
188
|
+
"itemLeadingIcon": "text-primary"
|
|
170
189
|
}
|
|
171
190
|
},
|
|
172
191
|
{
|
|
173
192
|
"color": "secondary" as typeof color[number],
|
|
174
193
|
"active": true,
|
|
175
194
|
"class": {
|
|
176
|
-
"item": "text-
|
|
177
|
-
"itemLeadingIcon": "text-
|
|
195
|
+
"item": "text-secondary before:bg-secondary/10",
|
|
196
|
+
"itemLeadingIcon": "text-secondary"
|
|
178
197
|
}
|
|
179
198
|
},
|
|
180
199
|
{
|
|
181
200
|
"color": "success" as typeof color[number],
|
|
182
201
|
"active": true,
|
|
183
202
|
"class": {
|
|
184
|
-
"item": "text-
|
|
185
|
-
"itemLeadingIcon": "text-
|
|
203
|
+
"item": "text-success before:bg-success/10",
|
|
204
|
+
"itemLeadingIcon": "text-success"
|
|
186
205
|
}
|
|
187
206
|
},
|
|
188
207
|
{
|
|
189
208
|
"color": "info" as typeof color[number],
|
|
190
209
|
"active": true,
|
|
191
210
|
"class": {
|
|
192
|
-
"item": "text-
|
|
193
|
-
"itemLeadingIcon": "text-
|
|
211
|
+
"item": "text-info before:bg-info/10",
|
|
212
|
+
"itemLeadingIcon": "text-info"
|
|
194
213
|
}
|
|
195
214
|
},
|
|
196
215
|
{
|
|
197
216
|
"color": "warning" as typeof color[number],
|
|
198
217
|
"active": true,
|
|
199
218
|
"class": {
|
|
200
|
-
"item": "text-
|
|
201
|
-
"itemLeadingIcon": "text-
|
|
219
|
+
"item": "text-warning before:bg-warning/10",
|
|
220
|
+
"itemLeadingIcon": "text-warning"
|
|
202
221
|
}
|
|
203
222
|
},
|
|
204
223
|
{
|
|
205
224
|
"color": "error" as typeof color[number],
|
|
206
225
|
"active": true,
|
|
207
226
|
"class": {
|
|
208
|
-
"item": "text-
|
|
209
|
-
"itemLeadingIcon": "text-
|
|
227
|
+
"item": "text-error before:bg-error/10",
|
|
228
|
+
"itemLeadingIcon": "text-error"
|
|
210
229
|
}
|
|
211
230
|
}
|
|
212
231
|
],
|
|
213
232
|
"defaultVariants": {
|
|
214
233
|
"size": "md" as typeof size[number]
|
|
215
234
|
}
|
|
216
|
-
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export default result as typeof theme
|
package/.nuxt/ui/drawer.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/drawer"
|
|
2
|
+
|
|
1
3
|
const direction = [
|
|
2
4
|
"top",
|
|
3
5
|
"right",
|
|
@@ -5,18 +7,35 @@ const direction = [
|
|
|
5
7
|
"left"
|
|
6
8
|
] as const
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
11
|
+
"prefix": "U",
|
|
12
|
+
"fonts": true,
|
|
13
|
+
"colorMode": true,
|
|
14
|
+
"theme": {
|
|
15
|
+
"colors": [
|
|
16
|
+
"primary",
|
|
17
|
+
"secondary",
|
|
18
|
+
"success",
|
|
19
|
+
"info",
|
|
20
|
+
"warning",
|
|
21
|
+
"error"
|
|
22
|
+
],
|
|
23
|
+
"transitions": true
|
|
24
|
+
}
|
|
25
|
+
}) : template
|
|
26
|
+
|
|
27
|
+
const theme = {
|
|
9
28
|
"slots": {
|
|
10
|
-
"overlay": "fixed inset-0 bg-
|
|
11
|
-
"content": "fixed bg-
|
|
29
|
+
"overlay": "fixed inset-0 bg-elevated/75",
|
|
30
|
+
"content": "fixed bg-default ring ring-default flex focus:outline-none",
|
|
12
31
|
"handle": [
|
|
13
|
-
"shrink-0 !bg-
|
|
32
|
+
"shrink-0 !bg-accented",
|
|
14
33
|
"transition-opacity"
|
|
15
34
|
],
|
|
16
35
|
"container": "w-full flex flex-col gap-4 p-4 overflow-y-auto",
|
|
17
36
|
"header": "",
|
|
18
|
-
"title": "text-
|
|
19
|
-
"description": "mt-1 text-
|
|
37
|
+
"title": "text-highlighted font-semibold",
|
|
38
|
+
"description": "mt-1 text-muted text-sm",
|
|
20
39
|
"body": "flex-1",
|
|
21
40
|
"footer": "flex flex-col gap-1.5"
|
|
22
41
|
},
|
|
@@ -41,7 +60,7 @@ export default {
|
|
|
41
60
|
},
|
|
42
61
|
"inset": {
|
|
43
62
|
"true": {
|
|
44
|
-
"content": "rounded-
|
|
63
|
+
"content": "rounded-lg after:hidden"
|
|
45
64
|
}
|
|
46
65
|
}
|
|
47
66
|
},
|
|
@@ -77,7 +96,7 @@ export default {
|
|
|
77
96
|
"direction": "top" as typeof direction[number],
|
|
78
97
|
"inset": false,
|
|
79
98
|
"class": {
|
|
80
|
-
"content": "inset-x-0 top-0 rounded-b-
|
|
99
|
+
"content": "inset-x-0 top-0 rounded-b-lg"
|
|
81
100
|
}
|
|
82
101
|
},
|
|
83
102
|
{
|
|
@@ -91,7 +110,7 @@ export default {
|
|
|
91
110
|
"direction": "bottom" as typeof direction[number],
|
|
92
111
|
"inset": false,
|
|
93
112
|
"class": {
|
|
94
|
-
"content": "inset-x-0 bottom-0 rounded-t-
|
|
113
|
+
"content": "inset-x-0 bottom-0 rounded-t-lg"
|
|
95
114
|
}
|
|
96
115
|
},
|
|
97
116
|
{
|
|
@@ -105,7 +124,7 @@ export default {
|
|
|
105
124
|
"direction": "left" as typeof direction[number],
|
|
106
125
|
"inset": false,
|
|
107
126
|
"class": {
|
|
108
|
-
"content": "inset-y-0 left-0 rounded-r-
|
|
127
|
+
"content": "inset-y-0 left-0 rounded-r-lg"
|
|
109
128
|
}
|
|
110
129
|
},
|
|
111
130
|
{
|
|
@@ -119,8 +138,10 @@ export default {
|
|
|
119
138
|
"direction": "right" as typeof direction[number],
|
|
120
139
|
"inset": false,
|
|
121
140
|
"class": {
|
|
122
|
-
"content": "inset-y-0 right-0 rounded-l-
|
|
141
|
+
"content": "inset-y-0 right-0 rounded-l-lg"
|
|
123
142
|
}
|
|
124
143
|
}
|
|
125
144
|
]
|
|
126
|
-
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export default result as typeof theme
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/dropdown-menu"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -16,14 +18,31 @@ const size = [
|
|
|
16
18
|
"xl"
|
|
17
19
|
] as const
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
22
|
+
"prefix": "U",
|
|
23
|
+
"fonts": true,
|
|
24
|
+
"colorMode": true,
|
|
25
|
+
"theme": {
|
|
26
|
+
"colors": [
|
|
27
|
+
"primary",
|
|
28
|
+
"secondary",
|
|
29
|
+
"success",
|
|
30
|
+
"info",
|
|
31
|
+
"warning",
|
|
32
|
+
"error"
|
|
33
|
+
],
|
|
34
|
+
"transitions": true
|
|
35
|
+
}
|
|
36
|
+
}) : template
|
|
37
|
+
|
|
38
|
+
const theme = {
|
|
20
39
|
"slots": {
|
|
21
|
-
"content": "min-w-32 bg-
|
|
22
|
-
"arrow": "fill-
|
|
40
|
+
"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-dropdown-menu-content-transform-origin)",
|
|
41
|
+
"arrow": "fill-default",
|
|
23
42
|
"group": "p-1 isolate",
|
|
24
|
-
"label": "w-full flex items-center font-semibold text-
|
|
25
|
-
"separator": "-mx-1 my-1 h-px bg-
|
|
26
|
-
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-
|
|
43
|
+
"label": "w-full flex items-center font-semibold text-highlighted",
|
|
44
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
45
|
+
"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",
|
|
27
46
|
"itemLeadingIcon": "shrink-0",
|
|
28
47
|
"itemLeadingAvatar": "shrink-0",
|
|
29
48
|
"itemLeadingAvatarSize": "",
|
|
@@ -32,7 +51,7 @@ export default {
|
|
|
32
51
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
33
52
|
"itemTrailingKbdsSize": "",
|
|
34
53
|
"itemLabel": "truncate",
|
|
35
|
-
"itemLabelExternalIcon": "inline-block size-3 align-top text-
|
|
54
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-dimmed"
|
|
36
55
|
},
|
|
37
56
|
"variants": {
|
|
38
57
|
"color": {
|
|
@@ -46,16 +65,16 @@ export default {
|
|
|
46
65
|
},
|
|
47
66
|
"active": {
|
|
48
67
|
"true": {
|
|
49
|
-
"item": "text-
|
|
50
|
-
"itemLeadingIcon": "text-
|
|
68
|
+
"item": "text-highlighted before:bg-elevated",
|
|
69
|
+
"itemLeadingIcon": "text-default"
|
|
51
70
|
},
|
|
52
71
|
"false": {
|
|
53
72
|
"item": [
|
|
54
|
-
"text-
|
|
73
|
+
"text-default data-highlighted:text-highlighted data-[state=open]:text-highlighted data-highlighted:before:bg-elevated/50 data-[state=open]:before:bg-elevated/50",
|
|
55
74
|
"transition-colors before:transition-colors"
|
|
56
75
|
],
|
|
57
76
|
"itemLeadingIcon": [
|
|
58
|
-
"text-
|
|
77
|
+
"text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default",
|
|
59
78
|
"transition-colors"
|
|
60
79
|
]
|
|
61
80
|
}
|
|
@@ -118,100 +137,102 @@ export default {
|
|
|
118
137
|
"color": "primary" as typeof color[number],
|
|
119
138
|
"active": false,
|
|
120
139
|
"class": {
|
|
121
|
-
"item": "text-
|
|
122
|
-
"itemLeadingIcon": "text-
|
|
140
|
+
"item": "text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10",
|
|
141
|
+
"itemLeadingIcon": "text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary"
|
|
123
142
|
}
|
|
124
143
|
},
|
|
125
144
|
{
|
|
126
145
|
"color": "secondary" as typeof color[number],
|
|
127
146
|
"active": false,
|
|
128
147
|
"class": {
|
|
129
|
-
"item": "text-
|
|
130
|
-
"itemLeadingIcon": "text-
|
|
148
|
+
"item": "text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10",
|
|
149
|
+
"itemLeadingIcon": "text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary"
|
|
131
150
|
}
|
|
132
151
|
},
|
|
133
152
|
{
|
|
134
153
|
"color": "success" as typeof color[number],
|
|
135
154
|
"active": false,
|
|
136
155
|
"class": {
|
|
137
|
-
"item": "text-
|
|
138
|
-
"itemLeadingIcon": "text-
|
|
156
|
+
"item": "text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10",
|
|
157
|
+
"itemLeadingIcon": "text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success"
|
|
139
158
|
}
|
|
140
159
|
},
|
|
141
160
|
{
|
|
142
161
|
"color": "info" as typeof color[number],
|
|
143
162
|
"active": false,
|
|
144
163
|
"class": {
|
|
145
|
-
"item": "text-
|
|
146
|
-
"itemLeadingIcon": "text-
|
|
164
|
+
"item": "text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10",
|
|
165
|
+
"itemLeadingIcon": "text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info"
|
|
147
166
|
}
|
|
148
167
|
},
|
|
149
168
|
{
|
|
150
169
|
"color": "warning" as typeof color[number],
|
|
151
170
|
"active": false,
|
|
152
171
|
"class": {
|
|
153
|
-
"item": "text-
|
|
154
|
-
"itemLeadingIcon": "text-
|
|
172
|
+
"item": "text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10",
|
|
173
|
+
"itemLeadingIcon": "text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning"
|
|
155
174
|
}
|
|
156
175
|
},
|
|
157
176
|
{
|
|
158
177
|
"color": "error" as typeof color[number],
|
|
159
178
|
"active": false,
|
|
160
179
|
"class": {
|
|
161
|
-
"item": "text-
|
|
162
|
-
"itemLeadingIcon": "text-
|
|
180
|
+
"item": "text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10",
|
|
181
|
+
"itemLeadingIcon": "text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error"
|
|
163
182
|
}
|
|
164
183
|
},
|
|
165
184
|
{
|
|
166
185
|
"color": "primary" as typeof color[number],
|
|
167
186
|
"active": true,
|
|
168
187
|
"class": {
|
|
169
|
-
"item": "text-
|
|
170
|
-
"itemLeadingIcon": "text-
|
|
188
|
+
"item": "text-primary before:bg-primary/10",
|
|
189
|
+
"itemLeadingIcon": "text-primary"
|
|
171
190
|
}
|
|
172
191
|
},
|
|
173
192
|
{
|
|
174
193
|
"color": "secondary" as typeof color[number],
|
|
175
194
|
"active": true,
|
|
176
195
|
"class": {
|
|
177
|
-
"item": "text-
|
|
178
|
-
"itemLeadingIcon": "text-
|
|
196
|
+
"item": "text-secondary before:bg-secondary/10",
|
|
197
|
+
"itemLeadingIcon": "text-secondary"
|
|
179
198
|
}
|
|
180
199
|
},
|
|
181
200
|
{
|
|
182
201
|
"color": "success" as typeof color[number],
|
|
183
202
|
"active": true,
|
|
184
203
|
"class": {
|
|
185
|
-
"item": "text-
|
|
186
|
-
"itemLeadingIcon": "text-
|
|
204
|
+
"item": "text-success before:bg-success/10",
|
|
205
|
+
"itemLeadingIcon": "text-success"
|
|
187
206
|
}
|
|
188
207
|
},
|
|
189
208
|
{
|
|
190
209
|
"color": "info" as typeof color[number],
|
|
191
210
|
"active": true,
|
|
192
211
|
"class": {
|
|
193
|
-
"item": "text-
|
|
194
|
-
"itemLeadingIcon": "text-
|
|
212
|
+
"item": "text-info before:bg-info/10",
|
|
213
|
+
"itemLeadingIcon": "text-info"
|
|
195
214
|
}
|
|
196
215
|
},
|
|
197
216
|
{
|
|
198
217
|
"color": "warning" as typeof color[number],
|
|
199
218
|
"active": true,
|
|
200
219
|
"class": {
|
|
201
|
-
"item": "text-
|
|
202
|
-
"itemLeadingIcon": "text-
|
|
220
|
+
"item": "text-warning before:bg-warning/10",
|
|
221
|
+
"itemLeadingIcon": "text-warning"
|
|
203
222
|
}
|
|
204
223
|
},
|
|
205
224
|
{
|
|
206
225
|
"color": "error" as typeof color[number],
|
|
207
226
|
"active": true,
|
|
208
227
|
"class": {
|
|
209
|
-
"item": "text-
|
|
210
|
-
"itemLeadingIcon": "text-
|
|
228
|
+
"item": "text-error before:bg-error/10",
|
|
229
|
+
"itemLeadingIcon": "text-error"
|
|
211
230
|
}
|
|
212
231
|
}
|
|
213
232
|
],
|
|
214
233
|
"defaultVariants": {
|
|
215
234
|
"size": "md" as typeof size[number]
|
|
216
235
|
}
|
|
217
|
-
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export default result as typeof theme
|
package/.nuxt/ui/form-field.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/form-field"
|
|
2
|
+
|
|
1
3
|
const size = [
|
|
2
4
|
"xs",
|
|
3
5
|
"sm",
|
|
@@ -6,17 +8,34 @@ const size = [
|
|
|
6
8
|
"xl"
|
|
7
9
|
] as const
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
12
|
+
"prefix": "U",
|
|
13
|
+
"fonts": true,
|
|
14
|
+
"colorMode": true,
|
|
15
|
+
"theme": {
|
|
16
|
+
"colors": [
|
|
17
|
+
"primary",
|
|
18
|
+
"secondary",
|
|
19
|
+
"success",
|
|
20
|
+
"info",
|
|
21
|
+
"warning",
|
|
22
|
+
"error"
|
|
23
|
+
],
|
|
24
|
+
"transitions": true
|
|
25
|
+
}
|
|
26
|
+
}) : template
|
|
27
|
+
|
|
28
|
+
const theme = {
|
|
10
29
|
"slots": {
|
|
11
30
|
"root": "",
|
|
12
31
|
"wrapper": "",
|
|
13
32
|
"labelWrapper": "flex content-center items-center justify-between",
|
|
14
|
-
"label": "block font-medium text-
|
|
33
|
+
"label": "block font-medium text-default",
|
|
15
34
|
"container": "mt-1 relative",
|
|
16
|
-
"description": "text-
|
|
17
|
-
"error": "mt-2 text-
|
|
18
|
-
"hint": "text-
|
|
19
|
-
"help": "mt-2 text-
|
|
35
|
+
"description": "text-muted",
|
|
36
|
+
"error": "mt-2 text-error",
|
|
37
|
+
"hint": "text-muted",
|
|
38
|
+
"help": "mt-2 text-muted"
|
|
20
39
|
},
|
|
21
40
|
"variants": {
|
|
22
41
|
"size": {
|
|
@@ -38,11 +57,13 @@ export default {
|
|
|
38
57
|
},
|
|
39
58
|
"required": {
|
|
40
59
|
"true": {
|
|
41
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
60
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
42
61
|
}
|
|
43
62
|
}
|
|
44
63
|
},
|
|
45
64
|
"defaultVariants": {
|
|
46
65
|
"size": "md" as typeof size[number]
|
|
47
66
|
}
|
|
48
|
-
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default result as typeof theme
|
package/.nuxt/ui/form.ts
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/form"
|
|
2
|
+
|
|
3
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
4
|
+
"prefix": "U",
|
|
5
|
+
"fonts": true,
|
|
6
|
+
"colorMode": true,
|
|
7
|
+
"theme": {
|
|
8
|
+
"colors": [
|
|
9
|
+
"primary",
|
|
10
|
+
"secondary",
|
|
11
|
+
"success",
|
|
12
|
+
"info",
|
|
13
|
+
"warning",
|
|
14
|
+
"error"
|
|
15
|
+
],
|
|
16
|
+
"transitions": true
|
|
17
|
+
}
|
|
18
|
+
}) : template
|
|
19
|
+
|
|
20
|
+
const theme = {
|
|
2
21
|
"base": ""
|
|
3
|
-
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default result as typeof theme
|
package/.nuxt/ui/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { default as calendar } from './calendar'
|
|
|
10
10
|
export { default as card } from './card'
|
|
11
11
|
export { default as carousel } from './carousel'
|
|
12
12
|
export { default as checkbox } from './checkbox'
|
|
13
|
+
export { default as checkboxGroup } from './checkbox-group'
|
|
13
14
|
export { default as chip } from './chip'
|
|
14
15
|
export { default as collapsible } from './collapsible'
|
|
15
16
|
export { default as colorPicker } from './color-picker'
|