@nuxt/ui 3.0.1 → 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 +24 -3
- 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 +103 -84
- 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 +44 -23
- 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.d.mts +2 -1
- package/dist/module.json +5 -5
- package/dist/module.mjs +11 -7
- package/dist/runtime/components/Accordion.vue +36 -92
- 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 +47 -78
- 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 +36 -88
- package/dist/runtime/components/Breadcrumb.vue.d.ts +82 -0
- package/dist/runtime/components/Button.vue +96 -105
- 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 +73 -127
- 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 -230
- 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 +94 -234
- 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 +32 -119
- package/dist/runtime/components/ContextMenu.vue.d.ts +127 -0
- package/dist/runtime/components/ContextMenuContent.vue +71 -72
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +105 -0
- package/dist/runtime/components/Drawer.vue +49 -87
- package/dist/runtime/components/Drawer.vue.d.ts +88 -0
- package/dist/runtime/components/DropdownMenu.vue +37 -129
- package/dist/runtime/components/DropdownMenu.vue.d.ts +141 -0
- package/dist/runtime/components/DropdownMenuContent.vue +76 -79
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +55 -0
- package/dist/runtime/components/Form.vue +135 -219
- package/dist/runtime/components/Form.vue.d.ts +66 -0
- package/dist/runtime/components/FormField.vue +36 -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 +193 -302
- 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 -173
- package/dist/runtime/components/Link.vue.d.ts +124 -0
- package/dist/runtime/components/LinkBase.vue +33 -41
- 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 +78 -186
- 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 +75 -126
- package/dist/runtime/components/RadioGroup.vue.d.ts +88 -0
- package/dist/runtime/components/Select.vue +115 -202
- package/dist/runtime/components/Select.vue.d.ts +139 -0
- package/dist/runtime/components/SelectMenu.vue +167 -281
- 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 +44 -113
- 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 +165 -264
- package/dist/runtime/components/Table.vue.d.ts +183 -0
- package/dist/runtime/components/Tabs.vue +40 -105
- 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 +57 -150
- package/dist/runtime/components/Tree.vue.d.ts +128 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +0 -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/useFormField.js +1 -1
- package/dist/runtime/composables/useOverlay.d.ts +16 -8
- 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/hy.d.ts +3 -0
- package/dist/runtime/locale/hy.js +54 -0
- package/dist/runtime/locale/index.d.ts +6 -1
- package/dist/runtime/locale/index.js +6 -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 +5 -1
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.d.ts +70 -10
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +3 -0
- package/dist/runtime/utils/link.d.ts +4 -27
- package/dist/runtime/utils/link.js +32 -1
- 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 -199
- package/dist/runtime/vue/components/Link.vue.d.ts +124 -0
- package/dist/runtime/vue/stubs.d.ts +5 -0
- package/dist/runtime/vue/stubs.js +11 -2
- package/dist/shared/{ui.BCaWD5Ek.mjs → ui.D7lOOabO.mjs} +623 -364
- package/dist/types.d.mts +5 -1
- package/dist/unplugin.d.mts +6 -1
- package/dist/unplugin.mjs +25 -4
- package/dist/vite.mjs +1 -1
- package/package.json +122 -64
- package/dist/module.cjs +0 -62
- package/dist/module.d.cts +0 -44
- package/dist/module.d.ts +0 -44
- package/dist/shared/ui.C6uTSFTI.cjs +0 -3555
- package/dist/types.d.ts +0 -1
- package/dist/unplugin.cjs +0 -232
- package/dist/unplugin.d.cts +0 -61
- package/dist/unplugin.d.ts +0 -61
- package/dist/vite.cjs +0 -23
- package/dist/vite.d.cts +0 -15
- package/dist/vite.d.ts +0 -15
package/.nuxt/ui/carousel.ts
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/carousel"
|
|
2
|
+
|
|
1
3
|
const orientation = [
|
|
2
4
|
"vertical",
|
|
3
5
|
"horizontal"
|
|
4
6
|
] as const
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
9
|
+
"prefix": "U",
|
|
10
|
+
"fonts": true,
|
|
11
|
+
"colorMode": true,
|
|
12
|
+
"theme": {
|
|
13
|
+
"colors": [
|
|
14
|
+
"primary",
|
|
15
|
+
"secondary",
|
|
16
|
+
"success",
|
|
17
|
+
"info",
|
|
18
|
+
"warning",
|
|
19
|
+
"error"
|
|
20
|
+
],
|
|
21
|
+
"transitions": true
|
|
22
|
+
}
|
|
23
|
+
}) : template
|
|
24
|
+
|
|
25
|
+
const theme = {
|
|
7
26
|
"slots": {
|
|
8
27
|
"root": "relative focus:outline-none",
|
|
9
28
|
"viewport": "overflow-hidden",
|
|
@@ -15,7 +34,7 @@ export default {
|
|
|
15
34
|
"next": "absolute rounded-full",
|
|
16
35
|
"dots": "absolute inset-x-0 -bottom-7 flex flex-wrap items-center justify-center gap-3",
|
|
17
36
|
"dot": [
|
|
18
|
-
"cursor-pointer size-3 bg-
|
|
37
|
+
"cursor-pointer size-3 bg-accented rounded-full",
|
|
19
38
|
"transition"
|
|
20
39
|
]
|
|
21
40
|
},
|
|
@@ -24,20 +43,22 @@ export default {
|
|
|
24
43
|
"vertical": {
|
|
25
44
|
"container": "flex-col -mt-4",
|
|
26
45
|
"item": "pt-4",
|
|
27
|
-
"prev": "-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90",
|
|
28
|
-
"next": "-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90"
|
|
46
|
+
"prev": "top-4 sm:-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90",
|
|
47
|
+
"next": "bottom-4 sm:-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90"
|
|
29
48
|
},
|
|
30
49
|
"horizontal": {
|
|
31
50
|
"container": "flex-row -ms-4",
|
|
32
51
|
"item": "ps-4",
|
|
33
|
-
"prev": "-start-12 top-1/2 -translate-y-1/2",
|
|
34
|
-
"next": "-end-12 top-1/2 -translate-y-1/2"
|
|
52
|
+
"prev": "start-4 sm:-start-12 top-1/2 -translate-y-1/2",
|
|
53
|
+
"next": "end-4 sm:-end-12 top-1/2 -translate-y-1/2"
|
|
35
54
|
}
|
|
36
55
|
},
|
|
37
56
|
"active": {
|
|
38
57
|
"true": {
|
|
39
|
-
"dot": "bg-
|
|
58
|
+
"dot": "bg-inverted"
|
|
40
59
|
}
|
|
41
60
|
}
|
|
42
61
|
}
|
|
43
|
-
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export default result as typeof theme
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/checkbox-group"
|
|
2
|
+
|
|
3
|
+
const orientation = [
|
|
4
|
+
"horizontal",
|
|
5
|
+
"vertical"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
const size = [
|
|
9
|
+
"xs",
|
|
10
|
+
"sm",
|
|
11
|
+
"md",
|
|
12
|
+
"lg",
|
|
13
|
+
"xl"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
17
|
+
"prefix": "U",
|
|
18
|
+
"fonts": true,
|
|
19
|
+
"colorMode": true,
|
|
20
|
+
"theme": {
|
|
21
|
+
"colors": [
|
|
22
|
+
"primary",
|
|
23
|
+
"secondary",
|
|
24
|
+
"success",
|
|
25
|
+
"info",
|
|
26
|
+
"warning",
|
|
27
|
+
"error"
|
|
28
|
+
],
|
|
29
|
+
"transitions": true
|
|
30
|
+
}
|
|
31
|
+
}) : template
|
|
32
|
+
|
|
33
|
+
const theme = {
|
|
34
|
+
"slots": {
|
|
35
|
+
"root": "relative",
|
|
36
|
+
"fieldset": "flex gap-x-2",
|
|
37
|
+
"legend": "mb-1 block font-medium text-default",
|
|
38
|
+
"item": ""
|
|
39
|
+
},
|
|
40
|
+
"variants": {
|
|
41
|
+
"orientation": {
|
|
42
|
+
"horizontal": {
|
|
43
|
+
"fieldset": "flex-row"
|
|
44
|
+
},
|
|
45
|
+
"vertical": {
|
|
46
|
+
"fieldset": "flex-col"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"size": {
|
|
50
|
+
"xs": {
|
|
51
|
+
"fieldset": "gap-y-0.5",
|
|
52
|
+
"legend": "text-xs"
|
|
53
|
+
},
|
|
54
|
+
"sm": {
|
|
55
|
+
"fieldset": "gap-y-0.5",
|
|
56
|
+
"legend": "text-xs"
|
|
57
|
+
},
|
|
58
|
+
"md": {
|
|
59
|
+
"fieldset": "gap-y-1",
|
|
60
|
+
"legend": "text-sm"
|
|
61
|
+
},
|
|
62
|
+
"lg": {
|
|
63
|
+
"fieldset": "gap-y-1",
|
|
64
|
+
"legend": "text-sm"
|
|
65
|
+
},
|
|
66
|
+
"xl": {
|
|
67
|
+
"fieldset": "gap-y-1.5",
|
|
68
|
+
"legend": "text-base"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": {
|
|
72
|
+
"true": {
|
|
73
|
+
"legend": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"defaultVariants": {
|
|
78
|
+
"size": "md" as typeof size[number]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export default result as typeof theme
|
package/.nuxt/ui/checkbox.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/checkbox"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -8,6 +10,17 @@ const color = [
|
|
|
8
10
|
"neutral"
|
|
9
11
|
] as const
|
|
10
12
|
|
|
13
|
+
const variant = [
|
|
14
|
+
"list",
|
|
15
|
+
"card"
|
|
16
|
+
] as const
|
|
17
|
+
|
|
18
|
+
const indicator = [
|
|
19
|
+
"start",
|
|
20
|
+
"end",
|
|
21
|
+
"hidden"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
11
24
|
const size = [
|
|
12
25
|
"xs",
|
|
13
26
|
"sm",
|
|
@@ -16,25 +29,86 @@ const size = [
|
|
|
16
29
|
"xl"
|
|
17
30
|
] as const
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
33
|
+
"prefix": "U",
|
|
34
|
+
"fonts": true,
|
|
35
|
+
"colorMode": true,
|
|
36
|
+
"theme": {
|
|
37
|
+
"colors": [
|
|
38
|
+
"primary",
|
|
39
|
+
"secondary",
|
|
40
|
+
"success",
|
|
41
|
+
"info",
|
|
42
|
+
"warning",
|
|
43
|
+
"error"
|
|
44
|
+
],
|
|
45
|
+
"transitions": true
|
|
46
|
+
}
|
|
47
|
+
}) : template
|
|
48
|
+
|
|
49
|
+
const theme = {
|
|
20
50
|
"slots": {
|
|
21
51
|
"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
52
|
"container": "flex items-center",
|
|
24
|
-
"
|
|
53
|
+
"base": "rounded-sm ring ring-inset ring-accented overflow-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
54
|
+
"indicator": "flex items-center justify-center size-full text-inverted" as typeof indicator[number],
|
|
25
55
|
"icon": "shrink-0 size-full",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
56
|
+
"wrapper": "w-full",
|
|
57
|
+
"label": "block font-medium text-default",
|
|
58
|
+
"description": "text-muted"
|
|
28
59
|
},
|
|
29
60
|
"variants": {
|
|
30
61
|
"color": {
|
|
31
|
-
"primary":
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
62
|
+
"primary": {
|
|
63
|
+
"base": "focus-visible:outline-primary",
|
|
64
|
+
"indicator": "bg-primary" as typeof indicator[number]
|
|
65
|
+
},
|
|
66
|
+
"secondary": {
|
|
67
|
+
"base": "focus-visible:outline-secondary",
|
|
68
|
+
"indicator": "bg-secondary" as typeof indicator[number]
|
|
69
|
+
},
|
|
70
|
+
"success": {
|
|
71
|
+
"base": "focus-visible:outline-success",
|
|
72
|
+
"indicator": "bg-success" as typeof indicator[number]
|
|
73
|
+
},
|
|
74
|
+
"info": {
|
|
75
|
+
"base": "focus-visible:outline-info",
|
|
76
|
+
"indicator": "bg-info" as typeof indicator[number]
|
|
77
|
+
},
|
|
78
|
+
"warning": {
|
|
79
|
+
"base": "focus-visible:outline-warning",
|
|
80
|
+
"indicator": "bg-warning" as typeof indicator[number]
|
|
81
|
+
},
|
|
82
|
+
"error": {
|
|
83
|
+
"base": "focus-visible:outline-error",
|
|
84
|
+
"indicator": "bg-error" as typeof indicator[number]
|
|
85
|
+
},
|
|
86
|
+
"neutral": {
|
|
87
|
+
"base": "focus-visible:outline-inverted",
|
|
88
|
+
"indicator": "bg-inverted" as typeof indicator[number]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"variant": {
|
|
92
|
+
"list": {
|
|
93
|
+
"root": ""
|
|
94
|
+
},
|
|
95
|
+
"card": {
|
|
96
|
+
"root": "border border-muted rounded-lg"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"indicator": {
|
|
100
|
+
"start": {
|
|
101
|
+
"root": "flex-row",
|
|
102
|
+
"wrapper": "ms-2"
|
|
103
|
+
},
|
|
104
|
+
"end": {
|
|
105
|
+
"root": "flex-row-reverse",
|
|
106
|
+
"wrapper": "me-2"
|
|
107
|
+
},
|
|
108
|
+
"hidden": {
|
|
109
|
+
"base": "sr-only",
|
|
110
|
+
"wrapper": "text-center"
|
|
111
|
+
}
|
|
38
112
|
},
|
|
39
113
|
"size": {
|
|
40
114
|
"xs": {
|
|
@@ -65,7 +139,7 @@ export default {
|
|
|
65
139
|
},
|
|
66
140
|
"required": {
|
|
67
141
|
"true": {
|
|
68
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
142
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
69
143
|
}
|
|
70
144
|
},
|
|
71
145
|
"disabled": {
|
|
@@ -80,44 +154,104 @@ export default {
|
|
|
80
154
|
}
|
|
81
155
|
},
|
|
82
156
|
"compoundVariants": [
|
|
157
|
+
{
|
|
158
|
+
"size": "xs" as typeof size[number],
|
|
159
|
+
"variant": "card" as typeof variant[number],
|
|
160
|
+
"class": {
|
|
161
|
+
"root": "p-2.5"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"size": "sm" as typeof size[number],
|
|
166
|
+
"variant": "card" as typeof variant[number],
|
|
167
|
+
"class": {
|
|
168
|
+
"root": "p-3"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"size": "md" as typeof size[number],
|
|
173
|
+
"variant": "card" as typeof variant[number],
|
|
174
|
+
"class": {
|
|
175
|
+
"root": "p-3.5"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"size": "lg" as typeof size[number],
|
|
180
|
+
"variant": "card" as typeof variant[number],
|
|
181
|
+
"class": {
|
|
182
|
+
"root": "p-4"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"size": "xl" as typeof size[number],
|
|
187
|
+
"variant": "card" as typeof variant[number],
|
|
188
|
+
"class": {
|
|
189
|
+
"root": "p-4.5"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
83
192
|
{
|
|
84
193
|
"color": "primary" as typeof color[number],
|
|
85
|
-
"
|
|
86
|
-
"class":
|
|
194
|
+
"variant": "card" as typeof variant[number],
|
|
195
|
+
"class": {
|
|
196
|
+
"root": "has-data-[state=checked]:border-primary"
|
|
197
|
+
}
|
|
87
198
|
},
|
|
88
199
|
{
|
|
89
200
|
"color": "secondary" as typeof color[number],
|
|
90
|
-
"
|
|
91
|
-
"class":
|
|
201
|
+
"variant": "card" as typeof variant[number],
|
|
202
|
+
"class": {
|
|
203
|
+
"root": "has-data-[state=checked]:border-secondary"
|
|
204
|
+
}
|
|
92
205
|
},
|
|
93
206
|
{
|
|
94
207
|
"color": "success" as typeof color[number],
|
|
95
|
-
"
|
|
96
|
-
"class":
|
|
208
|
+
"variant": "card" as typeof variant[number],
|
|
209
|
+
"class": {
|
|
210
|
+
"root": "has-data-[state=checked]:border-success"
|
|
211
|
+
}
|
|
97
212
|
},
|
|
98
213
|
{
|
|
99
214
|
"color": "info" as typeof color[number],
|
|
100
|
-
"
|
|
101
|
-
"class":
|
|
215
|
+
"variant": "card" as typeof variant[number],
|
|
216
|
+
"class": {
|
|
217
|
+
"root": "has-data-[state=checked]:border-info"
|
|
218
|
+
}
|
|
102
219
|
},
|
|
103
220
|
{
|
|
104
221
|
"color": "warning" as typeof color[number],
|
|
105
|
-
"
|
|
106
|
-
"class":
|
|
222
|
+
"variant": "card" as typeof variant[number],
|
|
223
|
+
"class": {
|
|
224
|
+
"root": "has-data-[state=checked]:border-warning"
|
|
225
|
+
}
|
|
107
226
|
},
|
|
108
227
|
{
|
|
109
228
|
"color": "error" as typeof color[number],
|
|
110
|
-
"
|
|
111
|
-
"class":
|
|
229
|
+
"variant": "card" as typeof variant[number],
|
|
230
|
+
"class": {
|
|
231
|
+
"root": "has-data-[state=checked]:border-error"
|
|
232
|
+
}
|
|
112
233
|
},
|
|
113
234
|
{
|
|
114
235
|
"color": "neutral" as typeof color[number],
|
|
115
|
-
"
|
|
116
|
-
"class":
|
|
236
|
+
"variant": "card" as typeof variant[number],
|
|
237
|
+
"class": {
|
|
238
|
+
"root": "has-data-[state=checked]:border-inverted"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"variant": "card" as typeof variant[number],
|
|
243
|
+
"disabled": true,
|
|
244
|
+
"class": {
|
|
245
|
+
"root": "cursor-not-allowed opacity-75"
|
|
246
|
+
}
|
|
117
247
|
}
|
|
118
248
|
],
|
|
119
249
|
"defaultVariants": {
|
|
120
250
|
"size": "md" as typeof size[number],
|
|
121
|
-
"color": "primary" as typeof color[number]
|
|
251
|
+
"color": "primary" as typeof color[number],
|
|
252
|
+
"variant": "list" as typeof variant[number],
|
|
253
|
+
"indicator": "start" as typeof indicator[number]
|
|
122
254
|
}
|
|
123
|
-
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export default result as typeof theme
|
package/.nuxt/ui/chip.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/chip"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -27,20 +29,37 @@ const position = [
|
|
|
27
29
|
"bottom-left"
|
|
28
30
|
] as const
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
33
|
+
"prefix": "U",
|
|
34
|
+
"fonts": true,
|
|
35
|
+
"colorMode": true,
|
|
36
|
+
"theme": {
|
|
37
|
+
"colors": [
|
|
38
|
+
"primary",
|
|
39
|
+
"secondary",
|
|
40
|
+
"success",
|
|
41
|
+
"info",
|
|
42
|
+
"warning",
|
|
43
|
+
"error"
|
|
44
|
+
],
|
|
45
|
+
"transitions": true
|
|
46
|
+
}
|
|
47
|
+
}) : template
|
|
48
|
+
|
|
49
|
+
const theme = {
|
|
31
50
|
"slots": {
|
|
32
51
|
"root": "relative inline-flex items-center justify-center shrink-0",
|
|
33
|
-
"base": "rounded-full ring ring-
|
|
52
|
+
"base": "rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"
|
|
34
53
|
},
|
|
35
54
|
"variants": {
|
|
36
55
|
"color": {
|
|
37
|
-
"primary": "bg-
|
|
38
|
-
"secondary": "bg-
|
|
39
|
-
"success": "bg-
|
|
40
|
-
"info": "bg-
|
|
41
|
-
"warning": "bg-
|
|
42
|
-
"error": "bg-
|
|
43
|
-
"neutral": "bg-
|
|
56
|
+
"primary": "bg-primary",
|
|
57
|
+
"secondary": "bg-secondary",
|
|
58
|
+
"success": "bg-success",
|
|
59
|
+
"info": "bg-info",
|
|
60
|
+
"warning": "bg-warning",
|
|
61
|
+
"error": "bg-error",
|
|
62
|
+
"neutral": "bg-inverted"
|
|
44
63
|
},
|
|
45
64
|
"size": {
|
|
46
65
|
"3xs": "h-[4px] min-w-[4px] text-[4px]",
|
|
@@ -93,4 +112,6 @@ export default {
|
|
|
93
112
|
"color": "primary" as typeof color[number],
|
|
94
113
|
"position": "top-right" as typeof position[number]
|
|
95
114
|
}
|
|
96
|
-
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export default result as typeof theme
|
package/.nuxt/ui/collapsible.ts
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/collapsible"
|
|
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
|
"slots": {
|
|
3
22
|
"root": "",
|
|
4
23
|
"content": "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden"
|
|
5
24
|
}
|
|
6
|
-
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default result as typeof theme
|
package/.nuxt/ui/color-picker.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/color-picker"
|
|
2
|
+
|
|
1
3
|
const size = [
|
|
2
4
|
"xs",
|
|
3
5
|
"sm",
|
|
@@ -6,14 +8,31 @@ 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": "data-[disabled]:opacity-75",
|
|
12
31
|
"picker": "flex gap-4",
|
|
13
|
-
"selector": "rounded-
|
|
14
|
-
"selectorBackground": "w-full h-full relative rounded-
|
|
32
|
+
"selector": "rounded-md",
|
|
33
|
+
"selectorBackground": "w-full h-full relative rounded-md",
|
|
15
34
|
"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-
|
|
35
|
+
"track": "w-[8px] relative rounded-md",
|
|
17
36
|
"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
37
|
},
|
|
19
38
|
"variants": {
|
|
@@ -44,4 +63,6 @@ export default {
|
|
|
44
63
|
"defaultVariants": {
|
|
45
64
|
"size": "md" as typeof size[number]
|
|
46
65
|
}
|
|
47
|
-
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export default result as typeof theme
|
|
@@ -1,14 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/command-palette"
|
|
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
|
"slots": {
|
|
3
|
-
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-
|
|
22
|
+
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-default",
|
|
4
23
|
"input": "[&>input]:h-12",
|
|
5
24
|
"close": "",
|
|
6
25
|
"content": "relative overflow-hidden flex flex-col",
|
|
7
|
-
"viewport": "relative divide-y divide-
|
|
26
|
+
"viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
|
|
8
27
|
"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-
|
|
28
|
+
"empty": "py-6 text-center text-sm text-muted",
|
|
29
|
+
"label": "p-1.5 text-xs font-semibold text-highlighted",
|
|
30
|
+
"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
31
|
"itemLeadingIcon": "shrink-0 size-5",
|
|
13
32
|
"itemLeadingAvatar": "shrink-0",
|
|
14
33
|
"itemLeadingAvatarSize": "2xs",
|
|
@@ -16,27 +35,27 @@ export default {
|
|
|
16
35
|
"itemLeadingChipSize": "md",
|
|
17
36
|
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
18
37
|
"itemTrailingIcon": "shrink-0 size-5",
|
|
19
|
-
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-
|
|
38
|
+
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-dimmed hidden group-data-highlighted:inline-flex",
|
|
20
39
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
|
|
21
40
|
"itemTrailingKbdsSize": "md",
|
|
22
|
-
"itemLabel": "truncate space-x-1 rtl:space-x-reverse text-
|
|
23
|
-
"itemLabelBase": "text-
|
|
24
|
-
"itemLabelPrefix": "text-
|
|
25
|
-
"itemLabelSuffix": "text-
|
|
41
|
+
"itemLabel": "truncate space-x-1 rtl:space-x-reverse text-dimmed",
|
|
42
|
+
"itemLabelBase": "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
|
|
43
|
+
"itemLabelPrefix": "text-default",
|
|
44
|
+
"itemLabelSuffix": "text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary"
|
|
26
45
|
},
|
|
27
46
|
"variants": {
|
|
28
47
|
"active": {
|
|
29
48
|
"true": {
|
|
30
|
-
"item": "text-
|
|
31
|
-
"itemLeadingIcon": "text-
|
|
49
|
+
"item": "text-highlighted before:bg-elevated",
|
|
50
|
+
"itemLeadingIcon": "text-default"
|
|
32
51
|
},
|
|
33
52
|
"false": {
|
|
34
53
|
"item": [
|
|
35
|
-
"text-
|
|
54
|
+
"text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
|
|
36
55
|
"transition-colors before:transition-colors"
|
|
37
56
|
],
|
|
38
57
|
"itemLeadingIcon": [
|
|
39
|
-
"text-
|
|
58
|
+
"text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
40
59
|
"transition-colors"
|
|
41
60
|
]
|
|
42
61
|
}
|
|
@@ -47,4 +66,6 @@ export default {
|
|
|
47
66
|
}
|
|
48
67
|
}
|
|
49
68
|
}
|
|
50
|
-
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default result as typeof theme
|
package/.nuxt/ui/container.ts
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/container"
|
|
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 = {
|
|
21
|
+
"base": "w-full max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default result as typeof theme
|