@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/toast.ts
CHANGED
|
@@ -8,65 +8,75 @@ const color = [
|
|
|
8
8
|
"neutral"
|
|
9
9
|
] as const
|
|
10
10
|
|
|
11
|
+
const orientation = [
|
|
12
|
+
"horizontal",
|
|
13
|
+
"vertical"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
11
16
|
export default {
|
|
12
17
|
"slots": {
|
|
13
|
-
"root": "relative group overflow-hidden bg-
|
|
14
|
-
"wrapper": "w-0 flex-1 flex flex-col
|
|
15
|
-
"title": "text-sm font-medium text-
|
|
16
|
-
"description": "text-sm text-
|
|
18
|
+
"root": "relative group overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*2)] ring ring-(--ui-border) p-4 flex gap-2.5 focus:outline-none",
|
|
19
|
+
"wrapper": "w-0 flex-1 flex flex-col",
|
|
20
|
+
"title": "text-sm font-medium text-(--ui-text-highlighted)",
|
|
21
|
+
"description": "text-sm text-(--ui-text-muted)",
|
|
17
22
|
"icon": "shrink-0 size-5",
|
|
18
23
|
"avatar": "shrink-0",
|
|
19
24
|
"avatarSize": "2xl",
|
|
20
25
|
"actions": "flex gap-1.5 shrink-0",
|
|
21
26
|
"progress": "absolute inset-x-0 bottom-0 h-1 z-[-1]",
|
|
22
|
-
"close": "p-0
|
|
27
|
+
"close": "p-0"
|
|
23
28
|
},
|
|
24
29
|
"variants": {
|
|
25
30
|
"color": {
|
|
26
31
|
"primary": {
|
|
27
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
28
|
-
"icon": "text-
|
|
29
|
-
"progress": "bg-
|
|
32
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)",
|
|
33
|
+
"icon": "text-(--ui-primary)",
|
|
34
|
+
"progress": "bg-(--ui-primary)"
|
|
30
35
|
},
|
|
31
36
|
"secondary": {
|
|
32
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
33
|
-
"icon": "text-
|
|
34
|
-
"progress": "bg-
|
|
37
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)",
|
|
38
|
+
"icon": "text-(--ui-secondary)",
|
|
39
|
+
"progress": "bg-(--ui-secondary)"
|
|
35
40
|
},
|
|
36
41
|
"success": {
|
|
37
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
38
|
-
"icon": "text-
|
|
39
|
-
"progress": "bg-
|
|
42
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)",
|
|
43
|
+
"icon": "text-(--ui-success)",
|
|
44
|
+
"progress": "bg-(--ui-success)"
|
|
40
45
|
},
|
|
41
46
|
"info": {
|
|
42
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
43
|
-
"icon": "text-
|
|
44
|
-
"progress": "bg-
|
|
47
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-info)",
|
|
48
|
+
"icon": "text-(--ui-info)",
|
|
49
|
+
"progress": "bg-(--ui-info)"
|
|
45
50
|
},
|
|
46
51
|
"warning": {
|
|
47
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
48
|
-
"icon": "text-
|
|
49
|
-
"progress": "bg-
|
|
52
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)",
|
|
53
|
+
"icon": "text-(--ui-warning)",
|
|
54
|
+
"progress": "bg-(--ui-warning)"
|
|
50
55
|
},
|
|
51
56
|
"error": {
|
|
52
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
53
|
-
"icon": "text-
|
|
54
|
-
"progress": "bg-
|
|
57
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)",
|
|
58
|
+
"icon": "text-(--ui-error)",
|
|
59
|
+
"progress": "bg-(--ui-error)"
|
|
55
60
|
},
|
|
56
61
|
"neutral": {
|
|
57
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
58
|
-
"icon": "text-
|
|
59
|
-
"progress": "bg-
|
|
62
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)",
|
|
63
|
+
"icon": "text-(--ui-text-highlighted)",
|
|
64
|
+
"progress": "bg-(--ui-bg-inverted)"
|
|
60
65
|
}
|
|
61
66
|
},
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"root": "items-start",
|
|
65
|
-
"actions": "items-start mt-1"
|
|
66
|
-
},
|
|
67
|
-
"false": {
|
|
67
|
+
"orientation": {
|
|
68
|
+
"horizontal": {
|
|
68
69
|
"root": "items-center",
|
|
69
70
|
"actions": "items-center"
|
|
71
|
+
},
|
|
72
|
+
"vertical": {
|
|
73
|
+
"root": "items-start",
|
|
74
|
+
"actions": "items-start mt-2.5"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"title": {
|
|
78
|
+
"true": {
|
|
79
|
+
"description": "mt-1"
|
|
70
80
|
}
|
|
71
81
|
}
|
|
72
82
|
},
|
package/.nuxt/ui/toaster.ts
CHANGED
|
@@ -16,8 +16,8 @@ const swipeDirection = [
|
|
|
16
16
|
|
|
17
17
|
export default {
|
|
18
18
|
"slots": {
|
|
19
|
-
"viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-
|
|
20
|
-
"base": "pointer-events-auto absolute inset-x-0 z-
|
|
19
|
+
"viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
|
|
20
|
+
"base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
21
21
|
},
|
|
22
22
|
"variants": {
|
|
23
23
|
"position": {
|
|
@@ -75,14 +75,14 @@ export default {
|
|
|
75
75
|
"left" as typeof swipeDirection[number],
|
|
76
76
|
"right" as typeof swipeDirection[number]
|
|
77
77
|
],
|
|
78
|
-
"class": "data-[swipe=move]:translate-x-
|
|
78
|
+
"class": "data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"swipeDirection": [
|
|
82
82
|
"up" as typeof swipeDirection[number],
|
|
83
83
|
"down" as typeof swipeDirection[number]
|
|
84
84
|
],
|
|
85
|
-
"class": "data-[swipe=move]:translate-y-
|
|
85
|
+
"class": "data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0"
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
88
|
"defaultVariants": {
|
package/.nuxt/ui/tooltip.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"content": "flex items-center gap-1 bg-
|
|
4
|
-
"arrow": "fill-
|
|
3
|
+
"content": "flex items-center gap-1 bg-(--ui-bg) text-(--ui-text-highlighted) shadow-sm rounded-(--ui-radius) ring ring-(--ui-border) h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] pointer-events-auto",
|
|
4
|
+
"arrow": "fill-(--ui-border)",
|
|
5
5
|
"text": "truncate",
|
|
6
6
|
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
|
|
7
7
|
"kbdsSize": "sm"
|
package/.nuxt/ui.css
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@theme default {
|
|
2
|
+
--color-old-neutral-50: oklch(0.985 0 0);
|
|
3
|
+
--color-old-neutral-100: oklch(0.97 0 0);
|
|
4
|
+
--color-old-neutral-200: oklch(0.922 0 0);
|
|
5
|
+
--color-old-neutral-300: oklch(0.87 0 0);
|
|
6
|
+
--color-old-neutral-400: oklch(0.708 0 0);
|
|
7
|
+
--color-old-neutral-500: oklch(0.556 0 0);
|
|
8
|
+
--color-old-neutral-600: oklch(0.439 0 0);
|
|
9
|
+
--color-old-neutral-700: oklch(0.371 0 0);
|
|
10
|
+
--color-old-neutral-800: oklch(0.269 0 0);
|
|
11
|
+
--color-old-neutral-900: oklch(0.205 0 0);
|
|
12
|
+
--color-old-neutral-950: oklch(0.145 0 0);
|
|
13
|
+
--color-primary-50: var(--ui-color-primary-50);
|
|
14
|
+
--color-primary-100: var(--ui-color-primary-100);
|
|
15
|
+
--color-primary-200: var(--ui-color-primary-200);
|
|
16
|
+
--color-primary-300: var(--ui-color-primary-300);
|
|
17
|
+
--color-primary-400: var(--ui-color-primary-400);
|
|
18
|
+
--color-primary-500: var(--ui-color-primary-500);
|
|
19
|
+
--color-primary-600: var(--ui-color-primary-600);
|
|
20
|
+
--color-primary-700: var(--ui-color-primary-700);
|
|
21
|
+
--color-primary-800: var(--ui-color-primary-800);
|
|
22
|
+
--color-primary-900: var(--ui-color-primary-900);
|
|
23
|
+
--color-primary-950: var(--ui-color-primary-950);
|
|
24
|
+
--color-secondary-50: var(--ui-color-secondary-50);
|
|
25
|
+
--color-secondary-100: var(--ui-color-secondary-100);
|
|
26
|
+
--color-secondary-200: var(--ui-color-secondary-200);
|
|
27
|
+
--color-secondary-300: var(--ui-color-secondary-300);
|
|
28
|
+
--color-secondary-400: var(--ui-color-secondary-400);
|
|
29
|
+
--color-secondary-500: var(--ui-color-secondary-500);
|
|
30
|
+
--color-secondary-600: var(--ui-color-secondary-600);
|
|
31
|
+
--color-secondary-700: var(--ui-color-secondary-700);
|
|
32
|
+
--color-secondary-800: var(--ui-color-secondary-800);
|
|
33
|
+
--color-secondary-900: var(--ui-color-secondary-900);
|
|
34
|
+
--color-secondary-950: var(--ui-color-secondary-950);
|
|
35
|
+
--color-success-50: var(--ui-color-success-50);
|
|
36
|
+
--color-success-100: var(--ui-color-success-100);
|
|
37
|
+
--color-success-200: var(--ui-color-success-200);
|
|
38
|
+
--color-success-300: var(--ui-color-success-300);
|
|
39
|
+
--color-success-400: var(--ui-color-success-400);
|
|
40
|
+
--color-success-500: var(--ui-color-success-500);
|
|
41
|
+
--color-success-600: var(--ui-color-success-600);
|
|
42
|
+
--color-success-700: var(--ui-color-success-700);
|
|
43
|
+
--color-success-800: var(--ui-color-success-800);
|
|
44
|
+
--color-success-900: var(--ui-color-success-900);
|
|
45
|
+
--color-success-950: var(--ui-color-success-950);
|
|
46
|
+
--color-info-50: var(--ui-color-info-50);
|
|
47
|
+
--color-info-100: var(--ui-color-info-100);
|
|
48
|
+
--color-info-200: var(--ui-color-info-200);
|
|
49
|
+
--color-info-300: var(--ui-color-info-300);
|
|
50
|
+
--color-info-400: var(--ui-color-info-400);
|
|
51
|
+
--color-info-500: var(--ui-color-info-500);
|
|
52
|
+
--color-info-600: var(--ui-color-info-600);
|
|
53
|
+
--color-info-700: var(--ui-color-info-700);
|
|
54
|
+
--color-info-800: var(--ui-color-info-800);
|
|
55
|
+
--color-info-900: var(--ui-color-info-900);
|
|
56
|
+
--color-info-950: var(--ui-color-info-950);
|
|
57
|
+
--color-warning-50: var(--ui-color-warning-50);
|
|
58
|
+
--color-warning-100: var(--ui-color-warning-100);
|
|
59
|
+
--color-warning-200: var(--ui-color-warning-200);
|
|
60
|
+
--color-warning-300: var(--ui-color-warning-300);
|
|
61
|
+
--color-warning-400: var(--ui-color-warning-400);
|
|
62
|
+
--color-warning-500: var(--ui-color-warning-500);
|
|
63
|
+
--color-warning-600: var(--ui-color-warning-600);
|
|
64
|
+
--color-warning-700: var(--ui-color-warning-700);
|
|
65
|
+
--color-warning-800: var(--ui-color-warning-800);
|
|
66
|
+
--color-warning-900: var(--ui-color-warning-900);
|
|
67
|
+
--color-warning-950: var(--ui-color-warning-950);
|
|
68
|
+
--color-error-50: var(--ui-color-error-50);
|
|
69
|
+
--color-error-100: var(--ui-color-error-100);
|
|
70
|
+
--color-error-200: var(--ui-color-error-200);
|
|
71
|
+
--color-error-300: var(--ui-color-error-300);
|
|
72
|
+
--color-error-400: var(--ui-color-error-400);
|
|
73
|
+
--color-error-500: var(--ui-color-error-500);
|
|
74
|
+
--color-error-600: var(--ui-color-error-600);
|
|
75
|
+
--color-error-700: var(--ui-color-error-700);
|
|
76
|
+
--color-error-800: var(--ui-color-error-800);
|
|
77
|
+
--color-error-900: var(--ui-color-error-900);
|
|
78
|
+
--color-error-950: var(--ui-color-error-950);
|
|
79
|
+
--color-neutral-50: var(--ui-color-neutral-50);
|
|
80
|
+
--color-neutral-100: var(--ui-color-neutral-100);
|
|
81
|
+
--color-neutral-200: var(--ui-color-neutral-200);
|
|
82
|
+
--color-neutral-300: var(--ui-color-neutral-300);
|
|
83
|
+
--color-neutral-400: var(--ui-color-neutral-400);
|
|
84
|
+
--color-neutral-500: var(--ui-color-neutral-500);
|
|
85
|
+
--color-neutral-600: var(--ui-color-neutral-600);
|
|
86
|
+
--color-neutral-700: var(--ui-color-neutral-700);
|
|
87
|
+
--color-neutral-800: var(--ui-color-neutral-800);
|
|
88
|
+
--color-neutral-900: var(--ui-color-neutral-900);
|
|
89
|
+
--color-neutral-950: var(--ui-color-neutral-950);
|
|
90
|
+
}
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[![License][license-src]][license-href]
|
|
8
8
|
[![Nuxt][nuxt-src]][nuxt-href]
|
|
9
9
|
|
|
10
|
-
We're thrilled to introduce Nuxt UI v3, a significant upgrade to our UI library that delivers extensive improvements and robust new capabilities. This major update harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Tailwind CSS v4](https://tailwindcss.com/
|
|
10
|
+
We're thrilled to introduce Nuxt UI v3, a significant upgrade to our UI library that delivers extensive improvements and robust new capabilities. This major update harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Tailwind CSS v4](https://tailwindcss.com/), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.
|
|
11
11
|
|
|
12
12
|
> [!NOTE]
|
|
13
13
|
> You are on the `v3` development branch, check out the [dev branch](https://github.com/nuxt/ui/tree/dev) for Nuxt UI v2.
|
|
@@ -106,7 +106,7 @@ Learn more in the [installation guide](https://ui3.nuxt.dev/getting-started/inst
|
|
|
106
106
|
- [nuxt/icon](https://github.com/nuxt/icon)
|
|
107
107
|
- [nuxt/fonts](https://github.com/nuxt/fonts)
|
|
108
108
|
- [nuxt-modules/color-mode](https://github.com/nuxt-modules/color-mode)
|
|
109
|
-
- [unovue/
|
|
109
|
+
- [unovue/radix-vue](https://github.com/unovue/radix-vue)
|
|
110
110
|
- [tailwindlabs/tailwindcss](https://github.com/tailwindlabs/tailwindcss)
|
|
111
111
|
- [vueuse/vueuse](https://github.com/vueuse/vueuse)
|
|
112
112
|
|
package/cli/package.json
CHANGED
package/cli/templates.mjs
CHANGED
|
@@ -33,11 +33,11 @@ const component = ({ name, primitive, pro, prose, content }) => {
|
|
|
33
33
|
import type { AppConfig } from '@nuxt/schema'
|
|
34
34
|
import _appConfig from '#build/app.config'
|
|
35
35
|
import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
|
|
36
|
-
import { tv } from ${pro ? '#ui/utils/tv' : '../utils/tv'}
|
|
36
|
+
import { tv } from '${pro ? '#ui/utils/tv' : '../utils/tv'}'
|
|
37
37
|
|
|
38
|
-
const appConfig = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial<typeof theme> } }${prose ? ' }' : ''}
|
|
38
|
+
const appConfig${camelName} = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial<typeof theme> } }${prose ? ' }' : ''}
|
|
39
39
|
|
|
40
|
-
const ${camelName} = tv({ extend: tv(theme), ...(appConfig.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
|
|
40
|
+
const ${camelName} = tv({ extend: tv(theme), ...(appConfig${camelName}.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
|
|
41
41
|
|
|
42
42
|
export interface ${upperName}Props {
|
|
43
43
|
/**
|
|
@@ -76,11 +76,11 @@ import type { ${upperName}RootProps, ${upperName}RootEmits } from 'reka-ui'
|
|
|
76
76
|
import type { AppConfig } from '@nuxt/schema'
|
|
77
77
|
import _appConfig from '#build/app.config'
|
|
78
78
|
import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
|
|
79
|
-
import { tv } from ${pro ? '#ui/utils/tv' : '../utils/tv'}
|
|
79
|
+
import { tv } from '${pro ? '#ui/utils/tv' : '../utils/tv'}'
|
|
80
80
|
|
|
81
|
-
const appConfig = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial<typeof theme> } }${prose ? ' }' : ''}
|
|
81
|
+
const appConfig${camelName} = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial<typeof theme> } }${prose ? ' }' : ''}
|
|
82
82
|
|
|
83
|
-
const ${camelName} = tv({ extend: tv(theme), ...(appConfig.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
|
|
83
|
+
const ${camelName} = tv({ extend: tv(theme), ...(appConfig${camelName}.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
|
|
84
84
|
|
|
85
85
|
type ${upperName}Variants = VariantProps<typeof ${camelName}>
|
|
86
86
|
|
|
@@ -181,7 +181,7 @@ links:${primitive
|
|
|
181
181
|
: `
|
|
182
182
|
- label: ${upperName}
|
|
183
183
|
icon: i-custom-reka-ui
|
|
184
|
-
to: https://
|
|
184
|
+
to: https://reka-ui.com/docs/components/${kebabName}`}
|
|
185
185
|
- label: GitHub
|
|
186
186
|
icon: i-simple-icons-github
|
|
187
187
|
to: https://github.com/nuxt/${pro ? 'ui-pro' : 'ui'}/tree/v3/src/runtime/components/${upperName}.vue
|