@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/kbd.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/kbd"
|
|
2
|
+
|
|
1
3
|
const variant = [
|
|
2
4
|
"solid",
|
|
3
5
|
"outline",
|
|
@@ -10,13 +12,30 @@ const size = [
|
|
|
10
12
|
"lg"
|
|
11
13
|
] as const
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
16
|
+
"prefix": "U",
|
|
17
|
+
"fonts": true,
|
|
18
|
+
"colorMode": true,
|
|
19
|
+
"theme": {
|
|
20
|
+
"colors": [
|
|
21
|
+
"primary",
|
|
22
|
+
"secondary",
|
|
23
|
+
"success",
|
|
24
|
+
"info",
|
|
25
|
+
"warning",
|
|
26
|
+
"error"
|
|
27
|
+
],
|
|
28
|
+
"transitions": true
|
|
29
|
+
}
|
|
30
|
+
}) : template
|
|
31
|
+
|
|
32
|
+
const theme = {
|
|
33
|
+
"base": "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans",
|
|
15
34
|
"variants": {
|
|
16
35
|
"variant": {
|
|
17
|
-
"solid": "bg-
|
|
18
|
-
"outline": "bg-
|
|
19
|
-
"subtle": "bg-
|
|
36
|
+
"solid": "bg-inverted text-inverted",
|
|
37
|
+
"outline": "bg-default text-highlighted ring ring-inset ring-accented",
|
|
38
|
+
"subtle": "bg-elevated text-default ring ring-inset ring-accented"
|
|
20
39
|
},
|
|
21
40
|
"size": {
|
|
22
41
|
"sm": "h-4 min-w-[16px] text-[10px]",
|
|
@@ -28,4 +47,6 @@ export default {
|
|
|
28
47
|
"variant": "outline" as typeof variant[number],
|
|
29
48
|
"size": "md" as typeof size[number]
|
|
30
49
|
}
|
|
31
|
-
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default result as typeof theme
|
package/.nuxt/ui/link.ts
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/link"
|
|
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": "focus-visible:outline-primary",
|
|
3
22
|
"variants": {
|
|
4
23
|
"active": {
|
|
5
|
-
"true": "text-
|
|
24
|
+
"true": "text-primary",
|
|
6
25
|
"false": [
|
|
7
|
-
"text-
|
|
26
|
+
"text-muted hover:text-default",
|
|
8
27
|
"transition-colors"
|
|
9
28
|
]
|
|
10
29
|
},
|
|
@@ -12,4 +31,6 @@ export default {
|
|
|
12
31
|
"true": "cursor-not-allowed opacity-75"
|
|
13
32
|
}
|
|
14
33
|
}
|
|
15
|
-
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default result as typeof theme
|
package/.nuxt/ui/modal.ts
CHANGED
|
@@ -1,13 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/modal"
|
|
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
|
-
"overlay": "fixed inset-0 bg-
|
|
4
|
-
"content": "fixed bg-
|
|
22
|
+
"overlay": "fixed inset-0 bg-elevated/75",
|
|
23
|
+
"content": "fixed bg-default divide-y divide-default flex flex-col focus:outline-none",
|
|
5
24
|
"header": "flex items-center gap-1.5 p-4 sm:px-6 min-h-16",
|
|
6
25
|
"wrapper": "",
|
|
7
26
|
"body": "flex-1 overflow-y-auto p-4 sm:p-6",
|
|
8
27
|
"footer": "flex items-center gap-1.5 p-4 sm:px-6",
|
|
9
|
-
"title": "text-
|
|
10
|
-
"description": "mt-1 text-
|
|
28
|
+
"title": "text-highlighted font-semibold",
|
|
29
|
+
"description": "mt-1 text-muted text-sm",
|
|
11
30
|
"close": "absolute top-4 end-4"
|
|
12
31
|
},
|
|
13
32
|
"variants": {
|
|
@@ -22,8 +41,10 @@ export default {
|
|
|
22
41
|
"content": "inset-0"
|
|
23
42
|
},
|
|
24
43
|
"false": {
|
|
25
|
-
"content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-
|
|
44
|
+
"content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-lg shadow-lg ring ring-default"
|
|
26
45
|
}
|
|
27
46
|
}
|
|
28
47
|
}
|
|
29
|
-
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default result as typeof theme
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/navigation-menu"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -33,13 +35,30 @@ const contentOrientation = [
|
|
|
33
35
|
"vertical"
|
|
34
36
|
] as const
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
39
|
+
"prefix": "U",
|
|
40
|
+
"fonts": true,
|
|
41
|
+
"colorMode": true,
|
|
42
|
+
"theme": {
|
|
43
|
+
"colors": [
|
|
44
|
+
"primary",
|
|
45
|
+
"secondary",
|
|
46
|
+
"success",
|
|
47
|
+
"info",
|
|
48
|
+
"warning",
|
|
49
|
+
"error"
|
|
50
|
+
],
|
|
51
|
+
"transitions": true
|
|
52
|
+
}
|
|
53
|
+
}) : template
|
|
54
|
+
|
|
55
|
+
const theme = {
|
|
37
56
|
"slots": {
|
|
38
57
|
"root": "relative flex gap-1.5 [&>div]:min-w-0",
|
|
39
58
|
"list": "isolate min-w-0",
|
|
40
|
-
"label": "w-full flex items-center gap-1.5 font-semibold text-xs/5 text-
|
|
59
|
+
"label": "w-full flex items-center gap-1.5 font-semibold text-xs/5 text-highlighted px-2.5 py-1.5",
|
|
41
60
|
"item": "min-w-0",
|
|
42
|
-
"link": "group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-
|
|
61
|
+
"link": "group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
|
|
43
62
|
"linkLeadingIcon": "shrink-0 size-5",
|
|
44
63
|
"linkLeadingAvatar": "shrink-0",
|
|
45
64
|
"linkLeadingAvatarSize": "2xs",
|
|
@@ -48,51 +67,51 @@ export default {
|
|
|
48
67
|
"linkTrailingBadgeSize": "sm",
|
|
49
68
|
"linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
50
69
|
"linkLabel": "truncate",
|
|
51
|
-
"linkLabelExternalIcon": "inline-block size-3 align-top text-
|
|
70
|
+
"linkLabelExternalIcon": "inline-block size-3 align-top text-dimmed",
|
|
52
71
|
"childList": "",
|
|
53
72
|
"childItem": "",
|
|
54
|
-
"childLink": "group size-full px-3 py-2 rounded-
|
|
73
|
+
"childLink": "group size-full px-3 py-2 rounded-md flex items-start gap-2 text-start",
|
|
55
74
|
"childLinkWrapper": "flex flex-col items-start",
|
|
56
75
|
"childLinkIcon": "size-5 shrink-0",
|
|
57
76
|
"childLinkLabel": "font-semibold text-sm relative inline-flex",
|
|
58
|
-
"childLinkLabelExternalIcon": "inline-block size-3 align-top text-
|
|
59
|
-
"childLinkDescription": "text-sm text-
|
|
60
|
-
"separator": "px-2 h-px bg-
|
|
77
|
+
"childLinkLabelExternalIcon": "inline-block size-3 align-top text-dimmed",
|
|
78
|
+
"childLinkDescription": "text-sm text-muted",
|
|
79
|
+
"separator": "px-2 h-px bg-border",
|
|
61
80
|
"viewportWrapper": "absolute top-full left-0 flex w-full",
|
|
62
|
-
"viewport": "relative overflow-hidden bg-
|
|
63
|
-
"content": "absolute top-0 left-0 w-full",
|
|
64
|
-
"indicator": "absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[
|
|
65
|
-
"arrow": "relative top-[50%] size-2.5 rotate-45 border border-
|
|
81
|
+
"viewport": "relative overflow-hidden bg-default shadow-lg rounded-md ring ring-default h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] z-[1]",
|
|
82
|
+
"content": "absolute top-0 left-0 w-full sm:w-auto",
|
|
83
|
+
"indicator": "absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[2] w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",
|
|
84
|
+
"arrow": "relative top-[50%] size-2.5 rotate-45 border border-default bg-default z-[1] rounded-xs"
|
|
66
85
|
},
|
|
67
86
|
"variants": {
|
|
68
87
|
"color": {
|
|
69
88
|
"primary": {
|
|
70
|
-
"link": "focus-visible:before:ring-
|
|
71
|
-
"childLink": "focus-visible:outline-
|
|
89
|
+
"link": "focus-visible:before:ring-primary",
|
|
90
|
+
"childLink": "focus-visible:outline-primary"
|
|
72
91
|
},
|
|
73
92
|
"secondary": {
|
|
74
|
-
"link": "focus-visible:before:ring-
|
|
75
|
-
"childLink": "focus-visible:outline-
|
|
93
|
+
"link": "focus-visible:before:ring-secondary",
|
|
94
|
+
"childLink": "focus-visible:outline-secondary"
|
|
76
95
|
},
|
|
77
96
|
"success": {
|
|
78
|
-
"link": "focus-visible:before:ring-
|
|
79
|
-
"childLink": "focus-visible:outline-
|
|
97
|
+
"link": "focus-visible:before:ring-success",
|
|
98
|
+
"childLink": "focus-visible:outline-success"
|
|
80
99
|
},
|
|
81
100
|
"info": {
|
|
82
|
-
"link": "focus-visible:before:ring-
|
|
83
|
-
"childLink": "focus-visible:outline-
|
|
101
|
+
"link": "focus-visible:before:ring-info",
|
|
102
|
+
"childLink": "focus-visible:outline-info"
|
|
84
103
|
},
|
|
85
104
|
"warning": {
|
|
86
|
-
"link": "focus-visible:before:ring-
|
|
87
|
-
"childLink": "focus-visible:outline-
|
|
105
|
+
"link": "focus-visible:before:ring-warning",
|
|
106
|
+
"childLink": "focus-visible:outline-warning"
|
|
88
107
|
},
|
|
89
108
|
"error": {
|
|
90
|
-
"link": "focus-visible:before:ring-
|
|
91
|
-
"childLink": "focus-visible:outline-
|
|
109
|
+
"link": "focus-visible:before:ring-error",
|
|
110
|
+
"childLink": "focus-visible:outline-error"
|
|
92
111
|
},
|
|
93
112
|
"neutral": {
|
|
94
|
-
"link": "focus-visible:before:ring-
|
|
95
|
-
"childLink": "focus-visible:outline-
|
|
113
|
+
"link": "focus-visible:before:ring-inverted",
|
|
114
|
+
"childLink": "focus-visible:outline-inverted"
|
|
96
115
|
}
|
|
97
116
|
},
|
|
98
117
|
"highlightColor": {
|
|
@@ -123,29 +142,27 @@ export default {
|
|
|
123
142
|
},
|
|
124
143
|
"contentOrientation": {
|
|
125
144
|
"horizontal": {
|
|
126
|
-
"viewport": "",
|
|
127
145
|
"viewportWrapper": "justify-center",
|
|
128
146
|
"content": "data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"
|
|
129
147
|
},
|
|
130
148
|
"vertical": {
|
|
131
|
-
"viewport": "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)"
|
|
132
|
-
"content": ""
|
|
149
|
+
"viewport": "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)"
|
|
133
150
|
}
|
|
134
151
|
},
|
|
135
152
|
"active": {
|
|
136
153
|
"true": {
|
|
137
|
-
"childLink": "bg-
|
|
138
|
-
"childLinkIcon": "text-
|
|
154
|
+
"childLink": "bg-elevated text-highlighted",
|
|
155
|
+
"childLinkIcon": "text-default"
|
|
139
156
|
},
|
|
140
157
|
"false": {
|
|
141
|
-
"link": "text-
|
|
142
|
-
"linkLeadingIcon": "text-
|
|
158
|
+
"link": "text-muted",
|
|
159
|
+
"linkLeadingIcon": "text-dimmed",
|
|
143
160
|
"childLink": [
|
|
144
|
-
"hover:bg-
|
|
161
|
+
"hover:bg-elevated/50 text-default hover:text-highlighted",
|
|
145
162
|
"transition-colors"
|
|
146
163
|
],
|
|
147
164
|
"childLinkIcon": [
|
|
148
|
-
"text-
|
|
165
|
+
"text-dimmed group-hover:text-default",
|
|
149
166
|
"transition-colors"
|
|
150
167
|
]
|
|
151
168
|
}
|
|
@@ -208,11 +225,11 @@ export default {
|
|
|
208
225
|
"variant": "pill" as typeof variant[number],
|
|
209
226
|
"class": {
|
|
210
227
|
"link": [
|
|
211
|
-
"hover:text-
|
|
228
|
+
"hover:text-highlighted hover:before:bg-elevated/50",
|
|
212
229
|
"transition-colors before:transition-colors"
|
|
213
230
|
],
|
|
214
231
|
"linkLeadingIcon": [
|
|
215
|
-
"group-hover:text-
|
|
232
|
+
"group-hover:text-default",
|
|
216
233
|
"transition-colors"
|
|
217
234
|
]
|
|
218
235
|
}
|
|
@@ -223,8 +240,8 @@ export default {
|
|
|
223
240
|
"variant": "pill" as typeof variant[number],
|
|
224
241
|
"orientation": "horizontal" as typeof orientation[number],
|
|
225
242
|
"class": {
|
|
226
|
-
"link": "data-[state=open]:text-
|
|
227
|
-
"linkLeadingIcon": "group-data-[state=open]:text-
|
|
243
|
+
"link": "data-[state=open]:text-highlighted",
|
|
244
|
+
"linkLeadingIcon": "group-data-[state=open]:text-default"
|
|
228
245
|
}
|
|
229
246
|
},
|
|
230
247
|
{
|
|
@@ -233,7 +250,7 @@ export default {
|
|
|
233
250
|
"highlight": true,
|
|
234
251
|
"orientation": "horizontal" as typeof orientation[number],
|
|
235
252
|
"class": {
|
|
236
|
-
"link": "data-[state=open]:before:bg-
|
|
253
|
+
"link": "data-[state=open]:before:bg-elevated/50"
|
|
237
254
|
}
|
|
238
255
|
},
|
|
239
256
|
{
|
|
@@ -243,7 +260,7 @@ export default {
|
|
|
243
260
|
"active": false,
|
|
244
261
|
"orientation": "horizontal" as typeof orientation[number],
|
|
245
262
|
"class": {
|
|
246
|
-
"link": "data-[state=open]:before:bg-
|
|
263
|
+
"link": "data-[state=open]:before:bg-elevated/50"
|
|
247
264
|
}
|
|
248
265
|
},
|
|
249
266
|
{
|
|
@@ -251,8 +268,8 @@ export default {
|
|
|
251
268
|
"variant": "pill" as typeof variant[number],
|
|
252
269
|
"active": true,
|
|
253
270
|
"class": {
|
|
254
|
-
"link": "text-
|
|
255
|
-
"linkLeadingIcon": "text-
|
|
271
|
+
"link": "text-primary",
|
|
272
|
+
"linkLeadingIcon": "text-primary group-data-[state=open]:text-primary"
|
|
256
273
|
}
|
|
257
274
|
},
|
|
258
275
|
{
|
|
@@ -260,8 +277,8 @@ export default {
|
|
|
260
277
|
"variant": "pill" as typeof variant[number],
|
|
261
278
|
"active": true,
|
|
262
279
|
"class": {
|
|
263
|
-
"link": "text-
|
|
264
|
-
"linkLeadingIcon": "text-
|
|
280
|
+
"link": "text-secondary",
|
|
281
|
+
"linkLeadingIcon": "text-secondary group-data-[state=open]:text-secondary"
|
|
265
282
|
}
|
|
266
283
|
},
|
|
267
284
|
{
|
|
@@ -269,8 +286,8 @@ export default {
|
|
|
269
286
|
"variant": "pill" as typeof variant[number],
|
|
270
287
|
"active": true,
|
|
271
288
|
"class": {
|
|
272
|
-
"link": "text-
|
|
273
|
-
"linkLeadingIcon": "text-
|
|
289
|
+
"link": "text-success",
|
|
290
|
+
"linkLeadingIcon": "text-success group-data-[state=open]:text-success"
|
|
274
291
|
}
|
|
275
292
|
},
|
|
276
293
|
{
|
|
@@ -278,8 +295,8 @@ export default {
|
|
|
278
295
|
"variant": "pill" as typeof variant[number],
|
|
279
296
|
"active": true,
|
|
280
297
|
"class": {
|
|
281
|
-
"link": "text-
|
|
282
|
-
"linkLeadingIcon": "text-
|
|
298
|
+
"link": "text-info",
|
|
299
|
+
"linkLeadingIcon": "text-info group-data-[state=open]:text-info"
|
|
283
300
|
}
|
|
284
301
|
},
|
|
285
302
|
{
|
|
@@ -287,8 +304,8 @@ export default {
|
|
|
287
304
|
"variant": "pill" as typeof variant[number],
|
|
288
305
|
"active": true,
|
|
289
306
|
"class": {
|
|
290
|
-
"link": "text-
|
|
291
|
-
"linkLeadingIcon": "text-
|
|
307
|
+
"link": "text-warning",
|
|
308
|
+
"linkLeadingIcon": "text-warning group-data-[state=open]:text-warning"
|
|
292
309
|
}
|
|
293
310
|
},
|
|
294
311
|
{
|
|
@@ -296,8 +313,8 @@ export default {
|
|
|
296
313
|
"variant": "pill" as typeof variant[number],
|
|
297
314
|
"active": true,
|
|
298
315
|
"class": {
|
|
299
|
-
"link": "text-
|
|
300
|
-
"linkLeadingIcon": "text-
|
|
316
|
+
"link": "text-error",
|
|
317
|
+
"linkLeadingIcon": "text-error group-data-[state=open]:text-error"
|
|
301
318
|
}
|
|
302
319
|
},
|
|
303
320
|
{
|
|
@@ -305,8 +322,8 @@ export default {
|
|
|
305
322
|
"variant": "pill" as typeof variant[number],
|
|
306
323
|
"active": true,
|
|
307
324
|
"class": {
|
|
308
|
-
"link": "text-
|
|
309
|
-
"linkLeadingIcon": "text-
|
|
325
|
+
"link": "text-highlighted",
|
|
326
|
+
"linkLeadingIcon": "text-highlighted group-data-[state=open]:text-highlighted"
|
|
310
327
|
}
|
|
311
328
|
},
|
|
312
329
|
{
|
|
@@ -314,7 +331,7 @@ export default {
|
|
|
314
331
|
"active": true,
|
|
315
332
|
"highlight": false,
|
|
316
333
|
"class": {
|
|
317
|
-
"link": "before:bg-
|
|
334
|
+
"link": "before:bg-elevated"
|
|
318
335
|
}
|
|
319
336
|
},
|
|
320
337
|
{
|
|
@@ -323,7 +340,7 @@ export default {
|
|
|
323
340
|
"highlight": true,
|
|
324
341
|
"class": {
|
|
325
342
|
"link": [
|
|
326
|
-
"hover:before:bg-
|
|
343
|
+
"hover:before:bg-elevated/50",
|
|
327
344
|
"before:transition-colors"
|
|
328
345
|
]
|
|
329
346
|
}
|
|
@@ -334,11 +351,11 @@ export default {
|
|
|
334
351
|
"variant": "link" as typeof variant[number],
|
|
335
352
|
"class": {
|
|
336
353
|
"link": [
|
|
337
|
-
"hover:text-
|
|
354
|
+
"hover:text-highlighted",
|
|
338
355
|
"transition-colors"
|
|
339
356
|
],
|
|
340
357
|
"linkLeadingIcon": [
|
|
341
|
-
"group-hover:text-
|
|
358
|
+
"group-hover:text-default",
|
|
342
359
|
"transition-colors"
|
|
343
360
|
]
|
|
344
361
|
}
|
|
@@ -349,8 +366,8 @@ export default {
|
|
|
349
366
|
"variant": "link" as typeof variant[number],
|
|
350
367
|
"orientation": "horizontal" as typeof orientation[number],
|
|
351
368
|
"class": {
|
|
352
|
-
"link": "data-[state=open]:text-
|
|
353
|
-
"linkLeadingIcon": "group-data-[state=open]:text-
|
|
369
|
+
"link": "data-[state=open]:text-highlighted",
|
|
370
|
+
"linkLeadingIcon": "group-data-[state=open]:text-default"
|
|
354
371
|
}
|
|
355
372
|
},
|
|
356
373
|
{
|
|
@@ -358,8 +375,8 @@ export default {
|
|
|
358
375
|
"variant": "link" as typeof variant[number],
|
|
359
376
|
"active": true,
|
|
360
377
|
"class": {
|
|
361
|
-
"link": "text-
|
|
362
|
-
"linkLeadingIcon": "text-
|
|
378
|
+
"link": "text-primary",
|
|
379
|
+
"linkLeadingIcon": "text-primary group-data-[state=open]:text-primary"
|
|
363
380
|
}
|
|
364
381
|
},
|
|
365
382
|
{
|
|
@@ -367,8 +384,8 @@ export default {
|
|
|
367
384
|
"variant": "link" as typeof variant[number],
|
|
368
385
|
"active": true,
|
|
369
386
|
"class": {
|
|
370
|
-
"link": "text-
|
|
371
|
-
"linkLeadingIcon": "text-
|
|
387
|
+
"link": "text-secondary",
|
|
388
|
+
"linkLeadingIcon": "text-secondary group-data-[state=open]:text-secondary"
|
|
372
389
|
}
|
|
373
390
|
},
|
|
374
391
|
{
|
|
@@ -376,8 +393,8 @@ export default {
|
|
|
376
393
|
"variant": "link" as typeof variant[number],
|
|
377
394
|
"active": true,
|
|
378
395
|
"class": {
|
|
379
|
-
"link": "text-
|
|
380
|
-
"linkLeadingIcon": "text-
|
|
396
|
+
"link": "text-success",
|
|
397
|
+
"linkLeadingIcon": "text-success group-data-[state=open]:text-success"
|
|
381
398
|
}
|
|
382
399
|
},
|
|
383
400
|
{
|
|
@@ -385,8 +402,8 @@ export default {
|
|
|
385
402
|
"variant": "link" as typeof variant[number],
|
|
386
403
|
"active": true,
|
|
387
404
|
"class": {
|
|
388
|
-
"link": "text-
|
|
389
|
-
"linkLeadingIcon": "text-
|
|
405
|
+
"link": "text-info",
|
|
406
|
+
"linkLeadingIcon": "text-info group-data-[state=open]:text-info"
|
|
390
407
|
}
|
|
391
408
|
},
|
|
392
409
|
{
|
|
@@ -394,8 +411,8 @@ export default {
|
|
|
394
411
|
"variant": "link" as typeof variant[number],
|
|
395
412
|
"active": true,
|
|
396
413
|
"class": {
|
|
397
|
-
"link": "text-
|
|
398
|
-
"linkLeadingIcon": "text-
|
|
414
|
+
"link": "text-warning",
|
|
415
|
+
"linkLeadingIcon": "text-warning group-data-[state=open]:text-warning"
|
|
399
416
|
}
|
|
400
417
|
},
|
|
401
418
|
{
|
|
@@ -403,8 +420,8 @@ export default {
|
|
|
403
420
|
"variant": "link" as typeof variant[number],
|
|
404
421
|
"active": true,
|
|
405
422
|
"class": {
|
|
406
|
-
"link": "text-
|
|
407
|
-
"linkLeadingIcon": "text-
|
|
423
|
+
"link": "text-error",
|
|
424
|
+
"linkLeadingIcon": "text-error group-data-[state=open]:text-error"
|
|
408
425
|
}
|
|
409
426
|
},
|
|
410
427
|
{
|
|
@@ -412,8 +429,8 @@ export default {
|
|
|
412
429
|
"variant": "link" as typeof variant[number],
|
|
413
430
|
"active": true,
|
|
414
431
|
"class": {
|
|
415
|
-
"link": "text-
|
|
416
|
-
"linkLeadingIcon": "text-
|
|
432
|
+
"link": "text-highlighted",
|
|
433
|
+
"linkLeadingIcon": "text-highlighted group-data-[state=open]:text-highlighted"
|
|
417
434
|
}
|
|
418
435
|
},
|
|
419
436
|
{
|
|
@@ -422,7 +439,7 @@ export default {
|
|
|
422
439
|
"level": true,
|
|
423
440
|
"active": true,
|
|
424
441
|
"class": {
|
|
425
|
-
"link": "after:bg-
|
|
442
|
+
"link": "after:bg-primary"
|
|
426
443
|
}
|
|
427
444
|
},
|
|
428
445
|
{
|
|
@@ -431,7 +448,7 @@ export default {
|
|
|
431
448
|
"level": true,
|
|
432
449
|
"active": true,
|
|
433
450
|
"class": {
|
|
434
|
-
"link": "after:bg-
|
|
451
|
+
"link": "after:bg-secondary"
|
|
435
452
|
}
|
|
436
453
|
},
|
|
437
454
|
{
|
|
@@ -440,7 +457,7 @@ export default {
|
|
|
440
457
|
"level": true,
|
|
441
458
|
"active": true,
|
|
442
459
|
"class": {
|
|
443
|
-
"link": "after:bg-
|
|
460
|
+
"link": "after:bg-success"
|
|
444
461
|
}
|
|
445
462
|
},
|
|
446
463
|
{
|
|
@@ -449,7 +466,7 @@ export default {
|
|
|
449
466
|
"level": true,
|
|
450
467
|
"active": true,
|
|
451
468
|
"class": {
|
|
452
|
-
"link": "after:bg-
|
|
469
|
+
"link": "after:bg-info"
|
|
453
470
|
}
|
|
454
471
|
},
|
|
455
472
|
{
|
|
@@ -458,7 +475,7 @@ export default {
|
|
|
458
475
|
"level": true,
|
|
459
476
|
"active": true,
|
|
460
477
|
"class": {
|
|
461
|
-
"link": "after:bg-
|
|
478
|
+
"link": "after:bg-warning"
|
|
462
479
|
}
|
|
463
480
|
},
|
|
464
481
|
{
|
|
@@ -467,7 +484,7 @@ export default {
|
|
|
467
484
|
"level": true,
|
|
468
485
|
"active": true,
|
|
469
486
|
"class": {
|
|
470
|
-
"link": "after:bg-
|
|
487
|
+
"link": "after:bg-error"
|
|
471
488
|
}
|
|
472
489
|
},
|
|
473
490
|
{
|
|
@@ -476,14 +493,14 @@ export default {
|
|
|
476
493
|
"level": true,
|
|
477
494
|
"active": true,
|
|
478
495
|
"class": {
|
|
479
|
-
"link": "after:bg-
|
|
496
|
+
"link": "after:bg-inverted"
|
|
480
497
|
}
|
|
481
498
|
},
|
|
482
499
|
{
|
|
483
500
|
"orientation": "vertical" as typeof orientation[number],
|
|
484
501
|
"collapsed": false,
|
|
485
502
|
"class": {
|
|
486
|
-
"childList": "ms-5 border-s border-
|
|
503
|
+
"childList": "ms-5 border-s border-default",
|
|
487
504
|
"childItem": "ps-1.5 -ms-px"
|
|
488
505
|
}
|
|
489
506
|
},
|
|
@@ -500,4 +517,6 @@ export default {
|
|
|
500
517
|
"highlightColor": "primary" as typeof highlightColor[number],
|
|
501
518
|
"variant": "pill" as typeof variant[number]
|
|
502
519
|
}
|
|
503
|
-
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export default result as typeof theme
|
package/.nuxt/ui/pagination.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/pagination"
|
|
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
|
"list": "flex items-center gap-1",
|
|
@@ -10,4 +29,6 @@ export default {
|
|
|
10
29
|
"next": "",
|
|
11
30
|
"last": ""
|
|
12
31
|
}
|
|
13
|
-
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default result as typeof theme
|