@nuxt/ui 3.0.0-alpha.11 → 3.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/ui/accordion.ts +2 -2
- package/.nuxt/ui/alert.ts +47 -37
- package/.nuxt/ui/avatar-group.ts +1 -1
- package/.nuxt/ui/avatar.ts +4 -4
- package/.nuxt/ui/badge.ts +37 -28
- package/.nuxt/ui/breadcrumb.ts +5 -5
- package/.nuxt/ui/button.ts +42 -43
- package/.nuxt/ui/calendar.ts +15 -15
- package/.nuxt/ui/card.ts +27 -1
- package/.nuxt/ui/carousel.ts +2 -2
- package/.nuxt/ui/checkbox.ts +18 -18
- package/.nuxt/ui/chip.ts +8 -8
- package/.nuxt/ui/color-picker.ts +2 -2
- package/.nuxt/ui/command-palette.ts +12 -12
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/context-menu.ts +32 -32
- package/.nuxt/ui/drawer.ts +72 -11
- package/.nuxt/ui/dropdown-menu.ts +33 -33
- package/.nuxt/ui/form-field.ts +6 -6
- package/.nuxt/ui/input-menu.ts +41 -41
- package/.nuxt/ui/input-number.ts +20 -20
- package/.nuxt/ui/input.ts +23 -23
- package/.nuxt/ui/kbd.ts +4 -4
- package/.nuxt/ui/link.ts +3 -3
- package/.nuxt/ui/modal.ts +5 -5
- package/.nuxt/ui/navigation-menu.ts +144 -77
- package/.nuxt/ui/pin-input.ts +20 -20
- package/.nuxt/ui/popover.ts +2 -2
- package/.nuxt/ui/progress.ts +17 -17
- package/.nuxt/ui/radio-group.ts +20 -20
- package/.nuxt/ui/select-menu.ts +33 -32
- package/.nuxt/ui/select.ts +31 -31
- package/.nuxt/ui/separator.ts +8 -8
- package/.nuxt/ui/skeleton.ts +1 -1
- package/.nuxt/ui/slideover.ts +4 -4
- package/.nuxt/ui/slider.ts +16 -16
- package/.nuxt/ui/stepper.ts +18 -18
- package/.nuxt/ui/switch.ts +20 -20
- package/.nuxt/ui/table.ts +16 -16
- package/.nuxt/ui/tabs.ts +33 -33
- package/.nuxt/ui/textarea.ts +23 -23
- package/.nuxt/ui/toast.ts +42 -32
- package/.nuxt/ui/toaster.ts +4 -4
- package/.nuxt/ui/tooltip.ts +2 -2
- package/.nuxt/ui.css +90 -0
- package/README.md +2 -2
- package/cli/package.json +2 -2
- package/cli/templates.mjs +7 -7
- package/dist/chunks/component-meta.cjs +2590 -2511
- package/dist/chunks/component-meta.mjs +2590 -2511
- package/dist/client/devtools/200.html +1 -1
- package/dist/client/devtools/404.html +1 -1
- package/dist/client/devtools/_nuxt/CG6Dc4jp.js +1 -0
- package/dist/client/devtools/_nuxt/{Dtz-o9GB.js → DrNJgD08.js} +1 -1
- package/dist/client/devtools/_nuxt/{DNZFyo26.js → ElqrUh1r.js} +1 -1
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/client/devtools/_nuxt/builds/meta/255c8d0b-7281-4d74-b4b6-ec96e6721aa0.json +1 -0
- package/dist/client/devtools/_nuxt/entry.Hn8drx4g.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.Dew7w9Ee.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.Dep59i31.css +1 -0
- package/dist/client/devtools/_nuxt/mC2e7kOs.js +57 -0
- package/dist/client/devtools/index.html +1 -1
- package/dist/devtools/runtime/examples/CardExample.vue +3 -3
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +1 -1
- package/dist/devtools/runtime/examples/ContainerExample.vue +1 -1
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +1 -1
- package/dist/devtools/runtime/examples/PopoverExample.vue +1 -1
- package/dist/devtools/runtime/examples/TooltipExample.vue +1 -1
- package/dist/module.cjs +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/Accordion.vue +2 -2
- package/dist/runtime/components/Alert.vue +15 -12
- package/dist/runtime/components/App.vue +3 -3
- package/dist/runtime/components/Avatar.vue +31 -10
- package/dist/runtime/components/AvatarGroup.vue +2 -2
- package/dist/runtime/components/Badge.vue +7 -3
- package/dist/runtime/components/Breadcrumb.vue +2 -2
- package/dist/runtime/components/Button.vue +2 -2
- package/dist/runtime/components/ButtonGroup.vue +2 -2
- package/dist/runtime/components/Calendar.vue +6 -3
- package/dist/runtime/components/Card.vue +8 -4
- package/dist/runtime/components/Carousel.vue +2 -2
- package/dist/runtime/components/Checkbox.vue +4 -4
- package/dist/runtime/components/Chip.vue +2 -2
- package/dist/runtime/components/Collapsible.vue +2 -2
- package/dist/runtime/components/ColorPicker.vue +46 -15
- package/dist/runtime/components/CommandPalette.vue +48 -41
- package/dist/runtime/components/Container.vue +2 -2
- package/dist/runtime/components/ContextMenu.vue +10 -2
- package/dist/runtime/components/ContextMenuContent.vue +4 -2
- package/dist/runtime/components/Drawer.vue +9 -3
- package/dist/runtime/components/DropdownMenu.vue +10 -2
- package/dist/runtime/components/DropdownMenuContent.vue +4 -2
- package/dist/runtime/components/Form.vue +46 -17
- package/dist/runtime/components/FormField.vue +12 -6
- package/dist/runtime/components/Input.vue +5 -4
- package/dist/runtime/components/InputMenu.vue +6 -5
- package/dist/runtime/components/InputNumber.vue +10 -6
- package/dist/runtime/components/Kbd.vue +2 -2
- package/dist/runtime/components/Link.vue +2 -2
- package/dist/runtime/components/Modal.vue +17 -3
- package/dist/runtime/components/NavigationMenu.vue +110 -67
- package/dist/runtime/components/Pagination.vue +2 -2
- package/dist/runtime/components/PinInput.vue +5 -4
- package/dist/runtime/components/Popover.vue +2 -2
- package/dist/runtime/components/Progress.vue +2 -2
- package/dist/runtime/components/RadioGroup.vue +4 -4
- package/dist/runtime/components/Select.vue +9 -7
- package/dist/runtime/components/SelectMenu.vue +67 -64
- package/dist/runtime/components/Separator.vue +2 -2
- package/dist/runtime/components/Skeleton.vue +2 -2
- package/dist/runtime/components/Slideover.vue +17 -3
- package/dist/runtime/components/Slider.vue +4 -4
- package/dist/runtime/components/Stepper.vue +3 -3
- package/dist/runtime/components/Switch.vue +4 -4
- package/dist/runtime/components/Table.vue +96 -18
- package/dist/runtime/components/Tabs.vue +2 -2
- package/dist/runtime/components/Textarea.vue +7 -5
- package/dist/runtime/components/Toast.vue +28 -16
- package/dist/runtime/components/Toaster.vue +4 -4
- package/dist/runtime/components/Tooltip.vue +2 -2
- package/dist/runtime/composables/useFormField.d.ts +6 -2
- package/dist/runtime/composables/useFormField.js +18 -11
- package/dist/runtime/composables/useToast.d.ts +4 -3
- package/dist/runtime/composables/useToast.js +20 -6
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/locale/az.js +54 -0
- package/dist/runtime/locale/bn.js +54 -0
- package/dist/runtime/locale/es.js +2 -2
- package/dist/runtime/locale/he.d.ts +2 -0
- package/dist/runtime/locale/he.js +53 -0
- package/dist/runtime/locale/hi.d.ts +2 -0
- package/dist/runtime/locale/hi.js +54 -0
- package/dist/runtime/locale/hu.d.ts +2 -0
- package/dist/runtime/locale/hu.js +54 -0
- package/dist/runtime/locale/index.d.ts +8 -2
- package/dist/runtime/locale/index.js +8 -2
- package/dist/runtime/locale/km.d.ts +2 -0
- package/dist/runtime/locale/km.js +54 -0
- package/dist/runtime/locale/nb_no.d.ts +2 -0
- package/dist/runtime/locale/nb_no.js +54 -0
- package/dist/runtime/locale/zh_cn.d.ts +2 -0
- package/dist/runtime/locale/{zh_hans.js → zh_cn.js} +1 -1
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +1 -1
- package/dist/runtime/plugins/colors.js +8 -5
- package/dist/runtime/types/form.d.ts +21 -12
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/utils.d.ts +5 -0
- package/dist/runtime/utils/form.js +3 -5
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Link.vue +77 -18
- package/dist/shared/{ui.DCjJwb6l.cjs → ui.C5FzRWM5.cjs} +529 -366
- package/dist/shared/{ui.BKsd22-Q.mjs → ui.DCZM2pl8.mjs} +525 -366
- package/dist/unplugin.cjs +44 -20
- package/dist/unplugin.d.cts +10 -0
- package/dist/unplugin.d.mts +10 -0
- package/dist/unplugin.d.ts +10 -0
- package/dist/unplugin.mjs +43 -19
- package/dist/vite.cjs +3 -2
- package/dist/vite.d.cts +2 -0
- package/dist/vite.d.mts +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.mjs +3 -2
- package/package.json +67 -41
- package/dist/client/devtools/_nuxt/CQ-XZFu7.js +0 -54
- package/dist/client/devtools/_nuxt/builds/meta/1f5fbd7b-9d97-480e-9ae4-e02b4ff7018b.json +0 -1
- package/dist/client/devtools/_nuxt/entry.qOdop8tq.css +0 -1
- package/dist/client/devtools/_nuxt/error-404.D-rS9BDk.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.CfcCHs91.css +0 -1
- /package/dist/runtime/locale/{zh_hans.d.ts → az.d.ts} +0 -0
- /package/dist/runtime/locale/{zh_hant.d.ts → bn.d.ts} +0 -0
package/.nuxt/ui/context-menu.ts
CHANGED
|
@@ -18,10 +18,10 @@ const size = [
|
|
|
18
18
|
|
|
19
19
|
export default {
|
|
20
20
|
"slots": {
|
|
21
|
-
"content": "min-w-32 bg-
|
|
21
|
+
"content": "min-w-32 bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) divide-y divide-(--ui-border) overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
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-
|
|
23
|
+
"label": "w-full flex items-center font-semibold text-(--ui-text-highlighted)",
|
|
24
|
+
"separator": "-mx-1 my-1 h-px bg-(--ui-border)",
|
|
25
25
|
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
26
26
|
"itemLeadingIcon": "shrink-0",
|
|
27
27
|
"itemLeadingAvatar": "shrink-0",
|
|
@@ -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-(--ui-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-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
|
|
49
|
+
"itemLeadingIcon": "text-(--ui-text)"
|
|
50
50
|
},
|
|
51
51
|
"false": {
|
|
52
52
|
"item": [
|
|
53
|
-
"text-
|
|
53
|
+
"text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-[state=open]:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50 data-[state=open]:before:bg-(--ui-bg-elevated)/50",
|
|
54
54
|
"transition-colors before:transition-colors"
|
|
55
55
|
],
|
|
56
56
|
"itemLeadingIcon": [
|
|
57
|
-
"text-
|
|
57
|
+
"text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text) group-data-[state=open]:text-(--ui-text)",
|
|
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-(--ui-primary) data-highlighted:text-(--ui-primary) data-highlighted:before:bg-(--ui-primary)/10 data-[state=open]:before:bg-(--ui-primary)/10",
|
|
121
|
+
"itemLeadingIcon": "text-(--ui-primary)/75 group-data-highlighted:text-(--ui-primary) group-data-[state=open]:text-(--ui-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-(--ui-secondary) data-highlighted:text-(--ui-secondary) data-highlighted:before:bg-(--ui-secondary)/10 data-[state=open]:before:bg-(--ui-secondary)/10",
|
|
129
|
+
"itemLeadingIcon": "text-(--ui-secondary)/75 group-data-highlighted:text-(--ui-secondary) group-data-[state=open]:text-(--ui-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-(--ui-success) data-highlighted:text-(--ui-success) data-highlighted:before:bg-(--ui-success)/10 data-[state=open]:before:bg-(--ui-success)/10",
|
|
137
|
+
"itemLeadingIcon": "text-(--ui-success)/75 group-data-highlighted:text-(--ui-success) group-data-[state=open]:text-(--ui-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-(--ui-info) data-highlighted:text-(--ui-info) data-highlighted:before:bg-(--ui-info)/10 data-[state=open]:before:bg-(--ui-info)/10",
|
|
145
|
+
"itemLeadingIcon": "text-(--ui-info)/75 group-data-highlighted:text-(--ui-info) group-data-[state=open]:text-(--ui-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-(--ui-warning) data-highlighted:text-(--ui-warning) data-highlighted:before:bg-(--ui-warning)/10 data-[state=open]:before:bg-(--ui-warning)/10",
|
|
153
|
+
"itemLeadingIcon": "text-(--ui-warning)/75 group-data-highlighted:text-(--ui-warning) group-data-[state=open]:text-(--ui-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-(--ui-error) data-highlighted:text-(--ui-error) data-highlighted:before:bg-(--ui-error)/10 data-[state=open]:before:bg-(--ui-error)/10",
|
|
161
|
+
"itemLeadingIcon": "text-(--ui-error)/75 group-data-highlighted:text-(--ui-error) group-data-[state=open]:text-(--ui-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-(--ui-primary) before:bg-(--ui-primary)/10",
|
|
169
|
+
"itemLeadingIcon": "text-(--ui-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-(--ui-secondary) before:bg-(--ui-secondary)/10",
|
|
177
|
+
"itemLeadingIcon": "text-(--ui-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-(--ui-success) before:bg-(--ui-success)/10",
|
|
185
|
+
"itemLeadingIcon": "text-(--ui-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-(--ui-info) before:bg-(--ui-info)/10",
|
|
193
|
+
"itemLeadingIcon": "text-(--ui-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-(--ui-warning) before:bg-(--ui-warning)/10",
|
|
201
|
+
"itemLeadingIcon": "text-(--ui-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-(--ui-error) before:bg-(--ui-error)/10",
|
|
209
|
+
"itemLeadingIcon": "text-(--ui-error)"
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
],
|
package/.nuxt/ui/drawer.ts
CHANGED
|
@@ -7,34 +7,39 @@ const direction = [
|
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
"slots": {
|
|
10
|
-
"overlay": "fixed inset-0 bg-
|
|
11
|
-
"content": "fixed bg-
|
|
12
|
-
"handle": "shrink-0 rounded-full bg-
|
|
10
|
+
"overlay": "fixed inset-0 bg-(--ui-bg-elevated)/75",
|
|
11
|
+
"content": "fixed bg-(--ui-bg) ring ring-(--ui-border) flex focus:outline-none",
|
|
12
|
+
"handle": "shrink-0 rounded-full bg-(--ui-bg-accented)",
|
|
13
13
|
"container": "w-full flex flex-col gap-4 p-4 overflow-y-auto",
|
|
14
14
|
"header": "",
|
|
15
|
-
"title": "text-
|
|
16
|
-
"description": "mt-1 text-
|
|
15
|
+
"title": "text-(--ui-text-highlighted) font-semibold",
|
|
16
|
+
"description": "mt-1 text-(--ui-text-muted) text-sm",
|
|
17
17
|
"body": "flex-1",
|
|
18
18
|
"footer": "flex flex-col gap-1.5"
|
|
19
19
|
},
|
|
20
20
|
"variants": {
|
|
21
21
|
"direction": {
|
|
22
22
|
"top": {
|
|
23
|
-
"content": "
|
|
23
|
+
"content": "mb-24 flex-col-reverse",
|
|
24
24
|
"handle": "mb-4"
|
|
25
25
|
},
|
|
26
26
|
"right": {
|
|
27
|
-
"content": "
|
|
27
|
+
"content": "flex-row",
|
|
28
28
|
"handle": "ml-4"
|
|
29
29
|
},
|
|
30
30
|
"bottom": {
|
|
31
|
-
"content": "
|
|
31
|
+
"content": "mt-24 flex-col",
|
|
32
32
|
"handle": "mt-4"
|
|
33
33
|
},
|
|
34
34
|
"left": {
|
|
35
|
-
"content": "
|
|
35
|
+
"content": "flex-row-reverse",
|
|
36
36
|
"handle": "mr-4"
|
|
37
37
|
}
|
|
38
|
+
},
|
|
39
|
+
"inset": {
|
|
40
|
+
"true": {
|
|
41
|
+
"content": "rounded-[calc(var(--ui-radius)*2)] after:hidden"
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
},
|
|
40
45
|
"compoundVariants": [
|
|
@@ -44,7 +49,7 @@ export default {
|
|
|
44
49
|
"bottom" as typeof direction[number]
|
|
45
50
|
],
|
|
46
51
|
"class": {
|
|
47
|
-
"content": "
|
|
52
|
+
"content": "h-auto max-h-[96%]",
|
|
48
53
|
"handle": "w-12 h-1.5 mx-auto"
|
|
49
54
|
}
|
|
50
55
|
},
|
|
@@ -54,9 +59,65 @@ export default {
|
|
|
54
59
|
"left" as typeof direction[number]
|
|
55
60
|
],
|
|
56
61
|
"class": {
|
|
57
|
-
"content": "
|
|
62
|
+
"content": "w-auto max-w-[calc(100%-2rem)]",
|
|
58
63
|
"handle": "h-12 w-1.5 mt-auto mb-auto"
|
|
59
64
|
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"direction": "top" as typeof direction[number],
|
|
68
|
+
"inset": true,
|
|
69
|
+
"class": {
|
|
70
|
+
"content": "inset-x-4 top-4"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"direction": "top" as typeof direction[number],
|
|
75
|
+
"inset": false,
|
|
76
|
+
"class": {
|
|
77
|
+
"content": "inset-x-0 top-0 rounded-b-[calc(var(--ui-radius)*2)]"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"direction": "bottom" as typeof direction[number],
|
|
82
|
+
"inset": true,
|
|
83
|
+
"class": {
|
|
84
|
+
"content": "inset-x-4 bottom-4"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"direction": "bottom" as typeof direction[number],
|
|
89
|
+
"inset": false,
|
|
90
|
+
"class": {
|
|
91
|
+
"content": "inset-x-0 bottom-0 rounded-t-[calc(var(--ui-radius)*2)]"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"direction": "left" as typeof direction[number],
|
|
96
|
+
"inset": true,
|
|
97
|
+
"class": {
|
|
98
|
+
"content": "inset-y-4 left-4"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"direction": "left" as typeof direction[number],
|
|
103
|
+
"inset": false,
|
|
104
|
+
"class": {
|
|
105
|
+
"content": "inset-y-0 left-0 rounded-r-[calc(var(--ui-radius)*2)]"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"direction": "right" as typeof direction[number],
|
|
110
|
+
"inset": true,
|
|
111
|
+
"class": {
|
|
112
|
+
"content": "inset-y-4 right-4"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"direction": "right" as typeof direction[number],
|
|
117
|
+
"inset": false,
|
|
118
|
+
"class": {
|
|
119
|
+
"content": "inset-y-0 right-0 rounded-l-[calc(var(--ui-radius)*2)]"
|
|
120
|
+
}
|
|
60
121
|
}
|
|
61
122
|
]
|
|
62
123
|
}
|
|
@@ -18,11 +18,11 @@ const size = [
|
|
|
18
18
|
|
|
19
19
|
export default {
|
|
20
20
|
"slots": {
|
|
21
|
-
"content": "min-w-32 bg-
|
|
22
|
-
"arrow": "fill-
|
|
21
|
+
"content": "min-w-32 bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) divide-y divide-(--ui-border) overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
22
|
+
"arrow": "fill-(--ui-border)",
|
|
23
23
|
"group": "p-1 isolate",
|
|
24
|
-
"label": "w-full flex items-center font-semibold text-
|
|
25
|
-
"separator": "-mx-1 my-1 h-px bg-
|
|
24
|
+
"label": "w-full flex items-center font-semibold text-(--ui-text-highlighted)",
|
|
25
|
+
"separator": "-mx-1 my-1 h-px bg-(--ui-border)",
|
|
26
26
|
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
27
27
|
"itemLeadingIcon": "shrink-0",
|
|
28
28
|
"itemLeadingAvatar": "shrink-0",
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
33
33
|
"itemTrailingKbdsSize": "",
|
|
34
34
|
"itemLabel": "truncate",
|
|
35
|
-
"itemLabelExternalIcon": "inline-block size-3 align-top text-
|
|
35
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)"
|
|
36
36
|
},
|
|
37
37
|
"variants": {
|
|
38
38
|
"color": {
|
|
@@ -46,16 +46,16 @@ export default {
|
|
|
46
46
|
},
|
|
47
47
|
"active": {
|
|
48
48
|
"true": {
|
|
49
|
-
"item": "text-
|
|
50
|
-
"itemLeadingIcon": "text-
|
|
49
|
+
"item": "text-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
|
|
50
|
+
"itemLeadingIcon": "text-(--ui-text)"
|
|
51
51
|
},
|
|
52
52
|
"false": {
|
|
53
53
|
"item": [
|
|
54
|
-
"text-
|
|
54
|
+
"text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-[state=open]:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50 data-[state=open]:before:bg-(--ui-bg-elevated)/50",
|
|
55
55
|
"transition-colors before:transition-colors"
|
|
56
56
|
],
|
|
57
57
|
"itemLeadingIcon": [
|
|
58
|
-
"text-
|
|
58
|
+
"text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text) group-data-[state=open]:text-(--ui-text)",
|
|
59
59
|
"transition-colors"
|
|
60
60
|
]
|
|
61
61
|
}
|
|
@@ -118,96 +118,96 @@ export default {
|
|
|
118
118
|
"color": "primary" as typeof color[number],
|
|
119
119
|
"active": false,
|
|
120
120
|
"class": {
|
|
121
|
-
"item": "text-
|
|
122
|
-
"itemLeadingIcon": "text-
|
|
121
|
+
"item": "text-(--ui-primary) data-highlighted:text-(--ui-primary) data-highlighted:before:bg-(--ui-primary)/10 data-[state=open]:before:bg-(--ui-primary)/10",
|
|
122
|
+
"itemLeadingIcon": "text-(--ui-primary)/75 group-data-highlighted:text-(--ui-primary) group-data-[state=open]:text-(--ui-primary)"
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"color": "secondary" as typeof color[number],
|
|
127
127
|
"active": false,
|
|
128
128
|
"class": {
|
|
129
|
-
"item": "text-
|
|
130
|
-
"itemLeadingIcon": "text-
|
|
129
|
+
"item": "text-(--ui-secondary) data-highlighted:text-(--ui-secondary) data-highlighted:before:bg-(--ui-secondary)/10 data-[state=open]:before:bg-(--ui-secondary)/10",
|
|
130
|
+
"itemLeadingIcon": "text-(--ui-secondary)/75 group-data-highlighted:text-(--ui-secondary) group-data-[state=open]:text-(--ui-secondary)"
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"color": "success" as typeof color[number],
|
|
135
135
|
"active": false,
|
|
136
136
|
"class": {
|
|
137
|
-
"item": "text-
|
|
138
|
-
"itemLeadingIcon": "text-
|
|
137
|
+
"item": "text-(--ui-success) data-highlighted:text-(--ui-success) data-highlighted:before:bg-(--ui-success)/10 data-[state=open]:before:bg-(--ui-success)/10",
|
|
138
|
+
"itemLeadingIcon": "text-(--ui-success)/75 group-data-highlighted:text-(--ui-success) group-data-[state=open]:text-(--ui-success)"
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"color": "info" as typeof color[number],
|
|
143
143
|
"active": false,
|
|
144
144
|
"class": {
|
|
145
|
-
"item": "text-
|
|
146
|
-
"itemLeadingIcon": "text-
|
|
145
|
+
"item": "text-(--ui-info) data-highlighted:text-(--ui-info) data-highlighted:before:bg-(--ui-info)/10 data-[state=open]:before:bg-(--ui-info)/10",
|
|
146
|
+
"itemLeadingIcon": "text-(--ui-info)/75 group-data-highlighted:text-(--ui-info) group-data-[state=open]:text-(--ui-info)"
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"color": "warning" as typeof color[number],
|
|
151
151
|
"active": false,
|
|
152
152
|
"class": {
|
|
153
|
-
"item": "text-
|
|
154
|
-
"itemLeadingIcon": "text-
|
|
153
|
+
"item": "text-(--ui-warning) data-highlighted:text-(--ui-warning) data-highlighted:before:bg-(--ui-warning)/10 data-[state=open]:before:bg-(--ui-warning)/10",
|
|
154
|
+
"itemLeadingIcon": "text-(--ui-warning)/75 group-data-highlighted:text-(--ui-warning) group-data-[state=open]:text-(--ui-warning)"
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"color": "error" as typeof color[number],
|
|
159
159
|
"active": false,
|
|
160
160
|
"class": {
|
|
161
|
-
"item": "text-
|
|
162
|
-
"itemLeadingIcon": "text-
|
|
161
|
+
"item": "text-(--ui-error) data-highlighted:text-(--ui-error) data-highlighted:before:bg-(--ui-error)/10 data-[state=open]:before:bg-(--ui-error)/10",
|
|
162
|
+
"itemLeadingIcon": "text-(--ui-error)/75 group-data-highlighted:text-(--ui-error) group-data-[state=open]:text-(--ui-error)"
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"color": "primary" as typeof color[number],
|
|
167
167
|
"active": true,
|
|
168
168
|
"class": {
|
|
169
|
-
"item": "text-
|
|
170
|
-
"itemLeadingIcon": "text-
|
|
169
|
+
"item": "text-(--ui-primary) before:bg-(--ui-primary)/10",
|
|
170
|
+
"itemLeadingIcon": "text-(--ui-primary)"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
"color": "secondary" as typeof color[number],
|
|
175
175
|
"active": true,
|
|
176
176
|
"class": {
|
|
177
|
-
"item": "text-
|
|
178
|
-
"itemLeadingIcon": "text-
|
|
177
|
+
"item": "text-(--ui-secondary) before:bg-(--ui-secondary)/10",
|
|
178
|
+
"itemLeadingIcon": "text-(--ui-secondary)"
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"color": "success" as typeof color[number],
|
|
183
183
|
"active": true,
|
|
184
184
|
"class": {
|
|
185
|
-
"item": "text-
|
|
186
|
-
"itemLeadingIcon": "text-
|
|
185
|
+
"item": "text-(--ui-success) before:bg-(--ui-success)/10",
|
|
186
|
+
"itemLeadingIcon": "text-(--ui-success)"
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"color": "info" as typeof color[number],
|
|
191
191
|
"active": true,
|
|
192
192
|
"class": {
|
|
193
|
-
"item": "text-
|
|
194
|
-
"itemLeadingIcon": "text-
|
|
193
|
+
"item": "text-(--ui-info) before:bg-(--ui-info)/10",
|
|
194
|
+
"itemLeadingIcon": "text-(--ui-info)"
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"color": "warning" as typeof color[number],
|
|
199
199
|
"active": true,
|
|
200
200
|
"class": {
|
|
201
|
-
"item": "text-
|
|
202
|
-
"itemLeadingIcon": "text-
|
|
201
|
+
"item": "text-(--ui-warning) before:bg-(--ui-warning)/10",
|
|
202
|
+
"itemLeadingIcon": "text-(--ui-warning)"
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
"color": "error" as typeof color[number],
|
|
207
207
|
"active": true,
|
|
208
208
|
"class": {
|
|
209
|
-
"item": "text-
|
|
210
|
-
"itemLeadingIcon": "text-
|
|
209
|
+
"item": "text-(--ui-error) before:bg-(--ui-error)/10",
|
|
210
|
+
"itemLeadingIcon": "text-(--ui-error)"
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
],
|
package/.nuxt/ui/form-field.ts
CHANGED
|
@@ -11,12 +11,12 @@ export default {
|
|
|
11
11
|
"root": "",
|
|
12
12
|
"wrapper": "",
|
|
13
13
|
"labelWrapper": "flex content-center items-center justify-between",
|
|
14
|
-
"label": "block font-medium text-
|
|
14
|
+
"label": "block font-medium text-(--ui-text)",
|
|
15
15
|
"container": "mt-1 relative",
|
|
16
|
-
"description": "text-
|
|
17
|
-
"error": "mt-2 text-
|
|
18
|
-
"hint": "text-
|
|
19
|
-
"help": "mt-2 text-
|
|
16
|
+
"description": "text-(--ui-text-muted)",
|
|
17
|
+
"error": "mt-2 text-(--ui-error)",
|
|
18
|
+
"hint": "text-(--ui-text-muted)",
|
|
19
|
+
"help": "mt-2 text-(--ui-text-muted)"
|
|
20
20
|
},
|
|
21
21
|
"variants": {
|
|
22
22
|
"size": {
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
},
|
|
39
39
|
"required": {
|
|
40
40
|
"true": {
|
|
41
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
41
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-(--ui-error)"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
},
|