@nuxt/ui 3.0.0 → 3.0.2
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/button.ts +36 -36
- package/.nuxt/ui/calendar.ts +1 -1
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/drawer.ts +8 -5
- package/.nuxt/ui/navigation-menu.ts +2 -2
- package/.nuxt/ui/switch.ts +1 -1
- package/.nuxt/ui/tabs.ts +1 -1
- package/.nuxt/ui.css +1 -1
- package/README.md +11 -11
- package/cli/package.json +1 -1
- package/dist/module.cjs +2 -2
- package/dist/module.d.cts +8 -7
- package/dist/module.d.mts +8 -7
- package/dist/module.d.ts +8 -7
- package/dist/module.json +2 -2
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.vue +11 -8
- package/dist/runtime/components/Alert.vue +1 -1
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/Avatar.vue +7 -5
- package/dist/runtime/components/Breadcrumb.vue +13 -10
- package/dist/runtime/components/Button.vue +1 -1
- package/dist/runtime/components/Calendar.vue +40 -11
- package/dist/runtime/components/Carousel.vue +7 -3
- package/dist/runtime/components/ColorPicker.vue +2 -0
- package/dist/runtime/components/CommandPalette.vue +14 -11
- package/dist/runtime/components/ContextMenu.vue +31 -17
- package/dist/runtime/components/ContextMenuContent.vue +22 -15
- package/dist/runtime/components/Drawer.vue +10 -15
- package/dist/runtime/components/DropdownMenu.vue +29 -16
- package/dist/runtime/components/DropdownMenuContent.vue +22 -15
- package/dist/runtime/components/Form.vue +22 -1
- package/dist/runtime/components/FormField.vue +6 -0
- package/dist/runtime/components/InputMenu.vue +93 -55
- package/dist/runtime/components/Link.vue +3 -0
- package/dist/runtime/components/LinkBase.vue +1 -0
- package/dist/runtime/components/Modal.vue +11 -8
- package/dist/runtime/components/NavigationMenu.vue +53 -27
- package/dist/runtime/components/PinInput.vue +2 -0
- package/dist/runtime/components/Popover.vue +3 -2
- package/dist/runtime/components/RadioGroup.vue +25 -14
- package/dist/runtime/components/Select.vue +70 -43
- package/dist/runtime/components/SelectMenu.vue +84 -49
- package/dist/runtime/components/Slideover.vue +11 -8
- package/dist/runtime/components/Stepper.vue +13 -10
- package/dist/runtime/components/Table.vue +8 -3
- package/dist/runtime/components/Tabs.vue +8 -5
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Tooltip.vue +3 -2
- package/dist/runtime/components/Tree.vue +48 -32
- package/dist/runtime/composables/defineLocale.js +1 -0
- package/dist/runtime/composables/useFormField.js +1 -1
- package/dist/runtime/composables/useKbd.js +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +3 -2
- package/dist/runtime/composables/useOverlay.js +1 -1
- package/dist/runtime/locale/ca.d.ts +3 -0
- package/dist/runtime/locale/ca.js +54 -0
- package/dist/runtime/locale/ckb.d.ts +3 -0
- package/dist/runtime/locale/ckb.js +55 -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 -0
- package/dist/runtime/locale/index.js +6 -0
- package/dist/runtime/locale/ro.d.ts +3 -0
- package/dist/runtime/locale/ro.js +54 -0
- package/dist/runtime/locale/ur.d.ts +3 -0
- package/dist/runtime/locale/ur.js +55 -0
- package/dist/runtime/locale/uz.d.ts +3 -0
- package/dist/runtime/locale/uz.js +54 -0
- package/dist/runtime/plugins/colors.js +19 -15
- package/dist/runtime/types/form.d.ts +2 -3
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.d.ts +28 -8
- package/dist/runtime/utils/form.d.ts +0 -4
- package/dist/runtime/utils/form.js +2 -47
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +3 -0
- package/dist/runtime/utils/link.d.ts +2 -25
- package/dist/runtime/utils/link.js +31 -1
- package/dist/runtime/utils/tv.js +1 -1
- package/dist/runtime/vue/components/Link.vue +3 -0
- package/dist/runtime/vue/plugins/head.js +3 -0
- package/dist/runtime/vue/stubs.d.ts +7 -3
- package/dist/runtime/vue/stubs.js +12 -4
- package/dist/shared/{ui.COBs1u5H.cjs → ui.BL-XB3u1.cjs} +26 -26
- package/dist/shared/{ui.yjbGE7Dx.mjs → ui.BkNUP964.mjs} +26 -26
- package/dist/types.d.mts +7 -1
- package/dist/types.d.ts +7 -1
- package/dist/unplugin.cjs +6 -2
- package/dist/unplugin.d.cts +2 -1
- package/dist/unplugin.d.mts +2 -1
- package/dist/unplugin.d.ts +2 -1
- package/dist/unplugin.mjs +6 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +46 -29
|
@@ -428,7 +428,7 @@ const breadcrumb = (options) => ({
|
|
|
428
428
|
|
|
429
429
|
const button = (options) => ({
|
|
430
430
|
slots: {
|
|
431
|
-
base: ["rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center
|
|
431
|
+
base: ["rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75", options.theme.transitions && "transition-colors"],
|
|
432
432
|
label: "truncate",
|
|
433
433
|
leadingIcon: "shrink-0",
|
|
434
434
|
leadingAvatar: "shrink-0",
|
|
@@ -515,23 +515,23 @@ const button = (options) => ({
|
|
|
515
515
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
516
516
|
color,
|
|
517
517
|
variant: "outline",
|
|
518
|
-
class: `ring ring-inset ring-(--ui-${color})/50 text-(--ui-${color}) hover:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
518
|
+
class: `ring ring-inset ring-(--ui-${color})/50 text-(--ui-${color}) hover:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
519
519
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
520
520
|
color,
|
|
521
521
|
variant: "soft",
|
|
522
|
-
class: `text-(--ui-${color}) bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 focus-visible:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10`
|
|
522
|
+
class: `text-(--ui-${color}) bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 focus:outline-none focus-visible:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10`
|
|
523
523
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
524
524
|
color,
|
|
525
525
|
variant: "subtle",
|
|
526
|
-
class: `text-(--ui-${color}) ring ring-inset ring-(--ui-${color})/25 bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10 focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
526
|
+
class: `text-(--ui-${color}) ring ring-inset ring-(--ui-${color})/25 bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
527
527
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
528
528
|
color,
|
|
529
529
|
variant: "ghost",
|
|
530
|
-
class: `text-(--ui-${color}) hover:bg-(--ui-${color})/10 focus-visible:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`
|
|
530
|
+
class: `text-(--ui-${color}) hover:bg-(--ui-${color})/10 focus:outline-none focus-visible:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`
|
|
531
531
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
532
532
|
color,
|
|
533
533
|
variant: "link",
|
|
534
|
-
class: `text-(--ui-${color}) hover:text-(--ui-${color})/75 disabled:text-(--ui-${color}) aria-disabled:text-(--ui-${color}) focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-${color})`
|
|
534
|
+
class: `text-(--ui-${color}) hover:text-(--ui-${color})/75 disabled:text-(--ui-${color}) aria-disabled:text-(--ui-${color}) focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-${color})`
|
|
535
535
|
})), {
|
|
536
536
|
color: "neutral",
|
|
537
537
|
variant: "solid",
|
|
@@ -539,23 +539,23 @@ const button = (options) => ({
|
|
|
539
539
|
}, {
|
|
540
540
|
color: "neutral",
|
|
541
541
|
variant: "outline",
|
|
542
|
-
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg) hover:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg) aria-disabled:bg-(--ui-bg) focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
542
|
+
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg) hover:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg) aria-disabled:bg-(--ui-bg) focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
543
543
|
}, {
|
|
544
544
|
color: "neutral",
|
|
545
545
|
variant: "soft",
|
|
546
|
-
class: "text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 focus-visible:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated)"
|
|
546
|
+
class: "text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 focus:outline-none focus-visible:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated)"
|
|
547
547
|
}, {
|
|
548
548
|
color: "neutral",
|
|
549
549
|
variant: "subtle",
|
|
550
|
-
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated) focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
550
|
+
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated) focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
551
551
|
}, {
|
|
552
552
|
color: "neutral",
|
|
553
553
|
variant: "ghost",
|
|
554
|
-
class: "text-(--ui-text) hover:bg-(--ui-bg-elevated) focus-visible:bg-(--ui-bg-elevated) hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"
|
|
554
|
+
class: "text-(--ui-text) hover:bg-(--ui-bg-elevated) focus:outline-none focus-visible:bg-(--ui-bg-elevated) hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"
|
|
555
555
|
}, {
|
|
556
556
|
color: "neutral",
|
|
557
557
|
variant: "link",
|
|
558
|
-
class: "text-(--ui-text-muted) hover:text-(--ui-text) disabled:text-(--ui-text-muted) aria-disabled:text-(--ui-text-muted) focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
558
|
+
class: "text-(--ui-text-muted) hover:text-(--ui-text) disabled:text-(--ui-text-muted) aria-disabled:text-(--ui-text-muted) focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
559
559
|
}, {
|
|
560
560
|
size: "xs",
|
|
561
561
|
square: true,
|
|
@@ -609,7 +609,7 @@ const calendar = (options) => ({
|
|
|
609
609
|
gridBody: "grid",
|
|
610
610
|
headCell: "rounded-[calc(var(--ui-radius)*1.5)]",
|
|
611
611
|
cell: "relative text-center",
|
|
612
|
-
cellTrigger: ["m-0.5 relative flex items-center justify-center rounded-full whitespace-nowrap focus-visible:ring-2 focus:outline-none data-disabled:text-(--ui-text-muted) data-unavailable:line-through data-unavailable:text-(--ui-text-muted) data-unavailable:pointer-events-none data-[selected]:text-(--ui-bg) data-today:font-semibold", options.theme.transitions && "transition"]
|
|
612
|
+
cellTrigger: ["m-0.5 relative flex items-center justify-center rounded-full whitespace-nowrap focus-visible:ring-2 focus:outline-none data-disabled:text-(--ui-text-muted) data-unavailable:line-through data-unavailable:text-(--ui-text-muted) data-unavailable:pointer-events-none data-[selected]:text-(--ui-bg) data-today:font-semibold data-[outside-view]:text-(--ui-text-muted)", options.theme.transitions && "transition"]
|
|
613
613
|
},
|
|
614
614
|
variants: {
|
|
615
615
|
color: {
|
|
@@ -948,7 +948,7 @@ const commandPalette = (options) => ({
|
|
|
948
948
|
});
|
|
949
949
|
|
|
950
950
|
const container = {
|
|
951
|
-
base: "max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8"
|
|
951
|
+
base: "w-full max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8"
|
|
952
952
|
};
|
|
953
953
|
|
|
954
954
|
const contextMenu = (options) => ({
|
|
@@ -1056,11 +1056,11 @@ const contextMenu = (options) => ({
|
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
1058
1058
|
|
|
1059
|
-
const drawer = {
|
|
1059
|
+
const drawer = (options) => ({
|
|
1060
1060
|
slots: {
|
|
1061
1061
|
overlay: "fixed inset-0 bg-(--ui-bg-elevated)/75",
|
|
1062
1062
|
content: "fixed bg-(--ui-bg) ring ring-(--ui-border) flex focus:outline-none",
|
|
1063
|
-
handle: "shrink-0
|
|
1063
|
+
handle: ["shrink-0 !bg-(--ui-bg-accented)", options.theme.transitions && "transition-opacity"],
|
|
1064
1064
|
container: "w-full flex flex-col gap-4 p-4 overflow-y-auto",
|
|
1065
1065
|
header: "",
|
|
1066
1066
|
title: "text-(--ui-text-highlighted) font-semibold",
|
|
@@ -1076,7 +1076,7 @@ const drawer = {
|
|
|
1076
1076
|
},
|
|
1077
1077
|
right: {
|
|
1078
1078
|
content: "flex-row",
|
|
1079
|
-
handle: "ml-4"
|
|
1079
|
+
handle: "!ml-4"
|
|
1080
1080
|
},
|
|
1081
1081
|
bottom: {
|
|
1082
1082
|
content: "mt-24 flex-col",
|
|
@@ -1084,7 +1084,7 @@ const drawer = {
|
|
|
1084
1084
|
},
|
|
1085
1085
|
left: {
|
|
1086
1086
|
content: "flex-row-reverse",
|
|
1087
|
-
handle: "mr-4"
|
|
1087
|
+
handle: "!mr-4"
|
|
1088
1088
|
}
|
|
1089
1089
|
},
|
|
1090
1090
|
inset: {
|
|
@@ -1097,13 +1097,13 @@ const drawer = {
|
|
|
1097
1097
|
direction: ["top", "bottom"],
|
|
1098
1098
|
class: {
|
|
1099
1099
|
content: "h-auto max-h-[96%]",
|
|
1100
|
-
handle: "w-12 h-1.5 mx-auto"
|
|
1100
|
+
handle: "!w-12 !h-1.5 mx-auto"
|
|
1101
1101
|
}
|
|
1102
1102
|
}, {
|
|
1103
1103
|
direction: ["right", "left"],
|
|
1104
1104
|
class: {
|
|
1105
1105
|
content: "w-auto max-w-[calc(100%-2rem)]",
|
|
1106
|
-
handle: "h-12 w-1.5 mt-auto mb-auto"
|
|
1106
|
+
handle: "!h-12 !w-1.5 mt-auto mb-auto"
|
|
1107
1107
|
}
|
|
1108
1108
|
}, {
|
|
1109
1109
|
direction: "top",
|
|
@@ -1154,7 +1154,7 @@ const drawer = {
|
|
|
1154
1154
|
content: "inset-y-0 right-0 rounded-l-[calc(var(--ui-radius)*2)]"
|
|
1155
1155
|
}
|
|
1156
1156
|
}]
|
|
1157
|
-
};
|
|
1157
|
+
});
|
|
1158
1158
|
|
|
1159
1159
|
const dropdownMenu = (options) => ({
|
|
1160
1160
|
slots: {
|
|
@@ -1764,9 +1764,9 @@ const navigationMenu = (options) => ({
|
|
|
1764
1764
|
childLinkDescription: "text-sm text-(--ui-text-muted)",
|
|
1765
1765
|
separator: "px-2 h-px bg-(--ui-border)",
|
|
1766
1766
|
viewportWrapper: "absolute top-full left-0 flex w-full",
|
|
1767
|
-
viewport: "relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) 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]",
|
|
1767
|
+
viewport: "relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) 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]",
|
|
1768
1768
|
content: "absolute top-0 left-0 w-full",
|
|
1769
|
-
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-[
|
|
1769
|
+
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",
|
|
1770
1770
|
arrow: "relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-[calc(var(--ui-radius)/2)]"
|
|
1771
1771
|
},
|
|
1772
1772
|
variants: {
|
|
@@ -2878,7 +2878,7 @@ const stepper = (options) => ({
|
|
|
2878
2878
|
const _switch = (options) => ({
|
|
2879
2879
|
slots: {
|
|
2880
2880
|
root: "relative flex items-start",
|
|
2881
|
-
base: ["inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-(--ui-bg-accented)", options.theme.transitions && "transition-
|
|
2881
|
+
base: ["inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-(--ui-bg-accented)", options.theme.transitions && "transition-[background] duration-200"],
|
|
2882
2882
|
container: "flex items-center",
|
|
2883
2883
|
thumb: "group pointer-events-none rounded-full bg-(--ui-bg) shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center",
|
|
2884
2884
|
icon: ["absolute shrink-0 group-data-[state=unchecked]:text-(--ui-text-dimmed) opacity-0 size-10/12", options.theme.transitions && "transition-[color,opacity] duration-200"],
|
|
@@ -3052,7 +3052,7 @@ const tabs = (options) => ({
|
|
|
3052
3052
|
root: "flex items-center gap-2",
|
|
3053
3053
|
list: "relative flex p-1 group",
|
|
3054
3054
|
indicator: "absolute transition-[translate,width] duration-200",
|
|
3055
|
-
trigger: ["group relative inline-flex items-center shrink-0 min-w-0 data-[state=inactive]:text-(--ui-text-muted) hover:data-[state=inactive]:not-disabled:text-(--ui-text) font-medium rounded-[calc(var(--ui-radius)*1.5)] disabled:cursor-not-allowed disabled:opacity-75
|
|
3055
|
+
trigger: ["group relative inline-flex items-center shrink-0 min-w-0 data-[state=inactive]:text-(--ui-text-muted) hover:data-[state=inactive]:not-disabled:text-(--ui-text) font-medium rounded-[calc(var(--ui-radius)*1.5)] disabled:cursor-not-allowed disabled:opacity-75", options.theme.transitions && "transition-colors"],
|
|
3056
3056
|
content: "focus:outline-none w-full",
|
|
3057
3057
|
leadingIcon: "shrink-0",
|
|
3058
3058
|
leadingAvatar: "shrink-0",
|
|
@@ -3469,7 +3469,7 @@ function getTemplates(options, uiConfig) {
|
|
|
3469
3469
|
write: true,
|
|
3470
3470
|
getContents: () => `@source "./ui";
|
|
3471
3471
|
|
|
3472
|
-
@theme default
|
|
3472
|
+
@theme default {
|
|
3473
3473
|
--color-old-neutral-50: ${colors__default.neutral[50]};
|
|
3474
3474
|
--color-old-neutral-100: ${colors__default.neutral[100]};
|
|
3475
3475
|
--color-old-neutral-200: ${colors__default.neutral[200]};
|
|
@@ -3515,7 +3515,7 @@ declare module '@nuxt/schema' {
|
|
|
3515
3515
|
interface AppConfigInput {
|
|
3516
3516
|
/**
|
|
3517
3517
|
* Nuxt UI theme configuration
|
|
3518
|
-
* @see https://
|
|
3518
|
+
* @see https://ui.nuxt.com/getting-started/theme#customize-theme
|
|
3519
3519
|
*/
|
|
3520
3520
|
ui?: AppConfigUI
|
|
3521
3521
|
}
|
|
@@ -422,7 +422,7 @@ const breadcrumb = (options) => ({
|
|
|
422
422
|
|
|
423
423
|
const button = (options) => ({
|
|
424
424
|
slots: {
|
|
425
|
-
base: ["rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center
|
|
425
|
+
base: ["rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75", options.theme.transitions && "transition-colors"],
|
|
426
426
|
label: "truncate",
|
|
427
427
|
leadingIcon: "shrink-0",
|
|
428
428
|
leadingAvatar: "shrink-0",
|
|
@@ -509,23 +509,23 @@ const button = (options) => ({
|
|
|
509
509
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
510
510
|
color,
|
|
511
511
|
variant: "outline",
|
|
512
|
-
class: `ring ring-inset ring-(--ui-${color})/50 text-(--ui-${color}) hover:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
512
|
+
class: `ring ring-inset ring-(--ui-${color})/50 text-(--ui-${color}) hover:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
513
513
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
514
514
|
color,
|
|
515
515
|
variant: "soft",
|
|
516
|
-
class: `text-(--ui-${color}) bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 focus-visible:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10`
|
|
516
|
+
class: `text-(--ui-${color}) bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 focus:outline-none focus-visible:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10`
|
|
517
517
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
518
518
|
color,
|
|
519
519
|
variant: "subtle",
|
|
520
|
-
class: `text-(--ui-${color}) ring ring-inset ring-(--ui-${color})/25 bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10 focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
520
|
+
class: `text-(--ui-${color}) ring ring-inset ring-(--ui-${color})/25 bg-(--ui-${color})/10 hover:bg-(--ui-${color})/15 disabled:bg-(--ui-${color})/10 aria-disabled:bg-(--ui-${color})/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-${color})`
|
|
521
521
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
522
522
|
color,
|
|
523
523
|
variant: "ghost",
|
|
524
|
-
class: `text-(--ui-${color}) hover:bg-(--ui-${color})/10 focus-visible:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`
|
|
524
|
+
class: `text-(--ui-${color}) hover:bg-(--ui-${color})/10 focus:outline-none focus-visible:bg-(--ui-${color})/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`
|
|
525
525
|
})), ...(options.theme.colors || []).map((color) => ({
|
|
526
526
|
color,
|
|
527
527
|
variant: "link",
|
|
528
|
-
class: `text-(--ui-${color}) hover:text-(--ui-${color})/75 disabled:text-(--ui-${color}) aria-disabled:text-(--ui-${color}) focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-${color})`
|
|
528
|
+
class: `text-(--ui-${color}) hover:text-(--ui-${color})/75 disabled:text-(--ui-${color}) aria-disabled:text-(--ui-${color}) focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-${color})`
|
|
529
529
|
})), {
|
|
530
530
|
color: "neutral",
|
|
531
531
|
variant: "solid",
|
|
@@ -533,23 +533,23 @@ const button = (options) => ({
|
|
|
533
533
|
}, {
|
|
534
534
|
color: "neutral",
|
|
535
535
|
variant: "outline",
|
|
536
|
-
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg) hover:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg) aria-disabled:bg-(--ui-bg) focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
536
|
+
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg) hover:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg) aria-disabled:bg-(--ui-bg) focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
537
537
|
}, {
|
|
538
538
|
color: "neutral",
|
|
539
539
|
variant: "soft",
|
|
540
|
-
class: "text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 focus-visible:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated)"
|
|
540
|
+
class: "text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 focus:outline-none focus-visible:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated)"
|
|
541
541
|
}, {
|
|
542
542
|
color: "neutral",
|
|
543
543
|
variant: "subtle",
|
|
544
|
-
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated) focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
544
|
+
class: "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg-elevated) hover:bg-(--ui-bg-accented)/75 disabled:bg-(--ui-bg-elevated) aria-disabled:bg-(--ui-bg-elevated) focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
545
545
|
}, {
|
|
546
546
|
color: "neutral",
|
|
547
547
|
variant: "ghost",
|
|
548
|
-
class: "text-(--ui-text) hover:bg-(--ui-bg-elevated) focus-visible:bg-(--ui-bg-elevated) hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"
|
|
548
|
+
class: "text-(--ui-text) hover:bg-(--ui-bg-elevated) focus:outline-none focus-visible:bg-(--ui-bg-elevated) hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"
|
|
549
549
|
}, {
|
|
550
550
|
color: "neutral",
|
|
551
551
|
variant: "link",
|
|
552
|
-
class: "text-(--ui-text-muted) hover:text-(--ui-text) disabled:text-(--ui-text-muted) aria-disabled:text-(--ui-text-muted) focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
552
|
+
class: "text-(--ui-text-muted) hover:text-(--ui-text) disabled:text-(--ui-text-muted) aria-disabled:text-(--ui-text-muted) focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-(--ui-border-inverted)"
|
|
553
553
|
}, {
|
|
554
554
|
size: "xs",
|
|
555
555
|
square: true,
|
|
@@ -603,7 +603,7 @@ const calendar = (options) => ({
|
|
|
603
603
|
gridBody: "grid",
|
|
604
604
|
headCell: "rounded-[calc(var(--ui-radius)*1.5)]",
|
|
605
605
|
cell: "relative text-center",
|
|
606
|
-
cellTrigger: ["m-0.5 relative flex items-center justify-center rounded-full whitespace-nowrap focus-visible:ring-2 focus:outline-none data-disabled:text-(--ui-text-muted) data-unavailable:line-through data-unavailable:text-(--ui-text-muted) data-unavailable:pointer-events-none data-[selected]:text-(--ui-bg) data-today:font-semibold", options.theme.transitions && "transition"]
|
|
606
|
+
cellTrigger: ["m-0.5 relative flex items-center justify-center rounded-full whitespace-nowrap focus-visible:ring-2 focus:outline-none data-disabled:text-(--ui-text-muted) data-unavailable:line-through data-unavailable:text-(--ui-text-muted) data-unavailable:pointer-events-none data-[selected]:text-(--ui-bg) data-today:font-semibold data-[outside-view]:text-(--ui-text-muted)", options.theme.transitions && "transition"]
|
|
607
607
|
},
|
|
608
608
|
variants: {
|
|
609
609
|
color: {
|
|
@@ -942,7 +942,7 @@ const commandPalette = (options) => ({
|
|
|
942
942
|
});
|
|
943
943
|
|
|
944
944
|
const container = {
|
|
945
|
-
base: "max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8"
|
|
945
|
+
base: "w-full max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8"
|
|
946
946
|
};
|
|
947
947
|
|
|
948
948
|
const contextMenu = (options) => ({
|
|
@@ -1050,11 +1050,11 @@ const contextMenu = (options) => ({
|
|
|
1050
1050
|
}
|
|
1051
1051
|
});
|
|
1052
1052
|
|
|
1053
|
-
const drawer = {
|
|
1053
|
+
const drawer = (options) => ({
|
|
1054
1054
|
slots: {
|
|
1055
1055
|
overlay: "fixed inset-0 bg-(--ui-bg-elevated)/75",
|
|
1056
1056
|
content: "fixed bg-(--ui-bg) ring ring-(--ui-border) flex focus:outline-none",
|
|
1057
|
-
handle: "shrink-0
|
|
1057
|
+
handle: ["shrink-0 !bg-(--ui-bg-accented)", options.theme.transitions && "transition-opacity"],
|
|
1058
1058
|
container: "w-full flex flex-col gap-4 p-4 overflow-y-auto",
|
|
1059
1059
|
header: "",
|
|
1060
1060
|
title: "text-(--ui-text-highlighted) font-semibold",
|
|
@@ -1070,7 +1070,7 @@ const drawer = {
|
|
|
1070
1070
|
},
|
|
1071
1071
|
right: {
|
|
1072
1072
|
content: "flex-row",
|
|
1073
|
-
handle: "ml-4"
|
|
1073
|
+
handle: "!ml-4"
|
|
1074
1074
|
},
|
|
1075
1075
|
bottom: {
|
|
1076
1076
|
content: "mt-24 flex-col",
|
|
@@ -1078,7 +1078,7 @@ const drawer = {
|
|
|
1078
1078
|
},
|
|
1079
1079
|
left: {
|
|
1080
1080
|
content: "flex-row-reverse",
|
|
1081
|
-
handle: "mr-4"
|
|
1081
|
+
handle: "!mr-4"
|
|
1082
1082
|
}
|
|
1083
1083
|
},
|
|
1084
1084
|
inset: {
|
|
@@ -1091,13 +1091,13 @@ const drawer = {
|
|
|
1091
1091
|
direction: ["top", "bottom"],
|
|
1092
1092
|
class: {
|
|
1093
1093
|
content: "h-auto max-h-[96%]",
|
|
1094
|
-
handle: "w-12 h-1.5 mx-auto"
|
|
1094
|
+
handle: "!w-12 !h-1.5 mx-auto"
|
|
1095
1095
|
}
|
|
1096
1096
|
}, {
|
|
1097
1097
|
direction: ["right", "left"],
|
|
1098
1098
|
class: {
|
|
1099
1099
|
content: "w-auto max-w-[calc(100%-2rem)]",
|
|
1100
|
-
handle: "h-12 w-1.5 mt-auto mb-auto"
|
|
1100
|
+
handle: "!h-12 !w-1.5 mt-auto mb-auto"
|
|
1101
1101
|
}
|
|
1102
1102
|
}, {
|
|
1103
1103
|
direction: "top",
|
|
@@ -1148,7 +1148,7 @@ const drawer = {
|
|
|
1148
1148
|
content: "inset-y-0 right-0 rounded-l-[calc(var(--ui-radius)*2)]"
|
|
1149
1149
|
}
|
|
1150
1150
|
}]
|
|
1151
|
-
};
|
|
1151
|
+
});
|
|
1152
1152
|
|
|
1153
1153
|
const dropdownMenu = (options) => ({
|
|
1154
1154
|
slots: {
|
|
@@ -1758,9 +1758,9 @@ const navigationMenu = (options) => ({
|
|
|
1758
1758
|
childLinkDescription: "text-sm text-(--ui-text-muted)",
|
|
1759
1759
|
separator: "px-2 h-px bg-(--ui-border)",
|
|
1760
1760
|
viewportWrapper: "absolute top-full left-0 flex w-full",
|
|
1761
|
-
viewport: "relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) 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]",
|
|
1761
|
+
viewport: "relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) 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]",
|
|
1762
1762
|
content: "absolute top-0 left-0 w-full",
|
|
1763
|
-
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-[
|
|
1763
|
+
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",
|
|
1764
1764
|
arrow: "relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-[calc(var(--ui-radius)/2)]"
|
|
1765
1765
|
},
|
|
1766
1766
|
variants: {
|
|
@@ -2872,7 +2872,7 @@ const stepper = (options) => ({
|
|
|
2872
2872
|
const _switch = (options) => ({
|
|
2873
2873
|
slots: {
|
|
2874
2874
|
root: "relative flex items-start",
|
|
2875
|
-
base: ["inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-(--ui-bg-accented)", options.theme.transitions && "transition-
|
|
2875
|
+
base: ["inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-(--ui-bg-accented)", options.theme.transitions && "transition-[background] duration-200"],
|
|
2876
2876
|
container: "flex items-center",
|
|
2877
2877
|
thumb: "group pointer-events-none rounded-full bg-(--ui-bg) shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center",
|
|
2878
2878
|
icon: ["absolute shrink-0 group-data-[state=unchecked]:text-(--ui-text-dimmed) opacity-0 size-10/12", options.theme.transitions && "transition-[color,opacity] duration-200"],
|
|
@@ -3046,7 +3046,7 @@ const tabs = (options) => ({
|
|
|
3046
3046
|
root: "flex items-center gap-2",
|
|
3047
3047
|
list: "relative flex p-1 group",
|
|
3048
3048
|
indicator: "absolute transition-[translate,width] duration-200",
|
|
3049
|
-
trigger: ["group relative inline-flex items-center shrink-0 min-w-0 data-[state=inactive]:text-(--ui-text-muted) hover:data-[state=inactive]:not-disabled:text-(--ui-text) font-medium rounded-[calc(var(--ui-radius)*1.5)] disabled:cursor-not-allowed disabled:opacity-75
|
|
3049
|
+
trigger: ["group relative inline-flex items-center shrink-0 min-w-0 data-[state=inactive]:text-(--ui-text-muted) hover:data-[state=inactive]:not-disabled:text-(--ui-text) font-medium rounded-[calc(var(--ui-radius)*1.5)] disabled:cursor-not-allowed disabled:opacity-75", options.theme.transitions && "transition-colors"],
|
|
3050
3050
|
content: "focus:outline-none w-full",
|
|
3051
3051
|
leadingIcon: "shrink-0",
|
|
3052
3052
|
leadingAvatar: "shrink-0",
|
|
@@ -3463,7 +3463,7 @@ function getTemplates(options, uiConfig) {
|
|
|
3463
3463
|
write: true,
|
|
3464
3464
|
getContents: () => `@source "./ui";
|
|
3465
3465
|
|
|
3466
|
-
@theme default
|
|
3466
|
+
@theme default {
|
|
3467
3467
|
--color-old-neutral-50: ${colors.neutral[50]};
|
|
3468
3468
|
--color-old-neutral-100: ${colors.neutral[100]};
|
|
3469
3469
|
--color-old-neutral-200: ${colors.neutral[200]};
|
|
@@ -3509,7 +3509,7 @@ declare module '@nuxt/schema' {
|
|
|
3509
3509
|
interface AppConfigInput {
|
|
3510
3510
|
/**
|
|
3511
3511
|
* Nuxt UI theme configuration
|
|
3512
|
-
* @see https://
|
|
3512
|
+
* @see https://ui.nuxt.com/getting-started/theme#customize-theme
|
|
3513
3513
|
*/
|
|
3514
3514
|
ui?: AppConfigUI
|
|
3515
3515
|
}
|
package/dist/types.d.mts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module.js'
|
|
4
|
+
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
7
|
+
export { default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module'
|
|
4
|
+
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
7
|
+
export { default } from './module'
|
package/dist/unplugin.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const pathe = require('pathe');
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const defu = require('defu');
|
|
7
7
|
const tailwind = require('@tailwindcss/vite');
|
|
8
|
-
const templates = require('./shared/ui.
|
|
8
|
+
const templates = require('./shared/ui.BL-XB3u1.cjs');
|
|
9
9
|
const tinyglobby = require('tinyglobby');
|
|
10
10
|
const knitwork = require('knitwork');
|
|
11
11
|
const MagicString = require('magic-string');
|
|
@@ -121,7 +121,11 @@ function ComponentImportPlugin(options, meta) {
|
|
|
121
121
|
const overrideNames = new Set(overrides.map((c) => `${options.prefix}${c.replace(/\.vue$/, "")}`));
|
|
122
122
|
const pluginOptions = defu.defu(options.components, {
|
|
123
123
|
dts: options.dts ?? true,
|
|
124
|
-
exclude: [
|
|
124
|
+
exclude: [
|
|
125
|
+
/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui|@compodium\/examples)/,
|
|
126
|
+
/[\\/]\.git[\\/]/,
|
|
127
|
+
/[\\/]\.nuxt[\\/]/
|
|
128
|
+
],
|
|
125
129
|
resolvers: [
|
|
126
130
|
(componentName) => {
|
|
127
131
|
if (overrideNames.has(componentName))
|
package/dist/unplugin.d.cts
CHANGED
|
@@ -58,4 +58,5 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
|
|
|
58
58
|
declare const runtimeDir: string;
|
|
59
59
|
declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { NuxtUIPlugin, runtimeDir };
|
|
62
|
+
export type { NuxtUIOptions };
|
package/dist/unplugin.d.mts
CHANGED
|
@@ -58,4 +58,5 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
|
|
|
58
58
|
declare const runtimeDir: string;
|
|
59
59
|
declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { NuxtUIPlugin, runtimeDir };
|
|
62
|
+
export type { NuxtUIOptions };
|
package/dist/unplugin.d.ts
CHANGED
|
@@ -58,4 +58,5 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
|
|
|
58
58
|
declare const runtimeDir: string;
|
|
59
59
|
declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { NuxtUIPlugin, runtimeDir };
|
|
62
|
+
export type { NuxtUIOptions };
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.BkNUP964.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
|
@@ -111,7 +111,11 @@ function ComponentImportPlugin(options, meta) {
|
|
|
111
111
|
const overrideNames = new Set(overrides.map((c) => `${options.prefix}${c.replace(/\.vue$/, "")}`));
|
|
112
112
|
const pluginOptions = defu(options.components, {
|
|
113
113
|
dts: options.dts ?? true,
|
|
114
|
-
exclude: [
|
|
114
|
+
exclude: [
|
|
115
|
+
/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui|@compodium\/examples)/,
|
|
116
|
+
/[\\/]\.git[\\/]/,
|
|
117
|
+
/[\\/]\.nuxt[\\/]/
|
|
118
|
+
],
|
|
115
119
|
resolvers: [
|
|
116
120
|
(componentName) => {
|
|
117
121
|
if (overrideNames.has(componentName))
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
3
|
"description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
|
|
4
|
-
"version": "3.0.
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "3.0.2",
|
|
5
|
+
"packageManager": "pnpm@10.7.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/nuxt/ui.git"
|
|
9
9
|
},
|
|
10
|
-
"homepage": "https://
|
|
10
|
+
"homepage": "https://ui.nuxt.com",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"exports": {
|
|
@@ -63,8 +63,9 @@
|
|
|
63
63
|
"build": "nuxt-module-build build",
|
|
64
64
|
"prepack": "pnpm build",
|
|
65
65
|
"dev": "DEV=true nuxi dev playground",
|
|
66
|
-
"dev:vue": "DEV=true vite playground-vue",
|
|
67
66
|
"dev:build": "nuxi build playground",
|
|
67
|
+
"dev:vue": "DEV=true vite playground-vue",
|
|
68
|
+
"dev:vue:build": "vite build playground-vue",
|
|
68
69
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs && vite build playground-vue",
|
|
69
70
|
"docs": "DEV=true nuxi dev docs",
|
|
70
71
|
"docs:build": "NODE_OPTIONS='--max-old-space-size=8192' nuxi build docs",
|
|
@@ -74,7 +75,6 @@
|
|
|
74
75
|
"typecheck": "vue-tsc --noEmit && nuxi typecheck playground && nuxi typecheck docs && cd playground-vue && vue-tsc --noEmit",
|
|
75
76
|
"test": "vitest",
|
|
76
77
|
"test:vue": "vitest -c vitest.vue.config.ts",
|
|
77
|
-
"test:vue:build": "vite build playground-vue",
|
|
78
78
|
"release": "release-it"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
@@ -83,17 +83,18 @@
|
|
|
83
83
|
"@internationalized/number": "^3.6.0",
|
|
84
84
|
"@nuxt/fonts": "^0.11.0",
|
|
85
85
|
"@nuxt/icon": "^1.11.0",
|
|
86
|
-
"@nuxt/kit": "^3.16.
|
|
87
|
-
"@nuxt/schema": "^3.16.
|
|
86
|
+
"@nuxt/kit": "^3.16.1",
|
|
87
|
+
"@nuxt/schema": "^3.16.1",
|
|
88
88
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
89
|
-
"@
|
|
90
|
-
"@tailwindcss/
|
|
89
|
+
"@standard-schema/spec": "^1.0.0",
|
|
90
|
+
"@tailwindcss/postcss": "^4.0.17",
|
|
91
|
+
"@tailwindcss/vite": "^4.0.17",
|
|
91
92
|
"@tanstack/vue-table": "^8.21.2",
|
|
92
|
-
"@unhead/vue": "^2.0.
|
|
93
|
+
"@unhead/vue": "^2.0.2",
|
|
93
94
|
"@vueuse/core": "^13.0.0",
|
|
94
95
|
"@vueuse/integrations": "^13.0.0",
|
|
95
96
|
"colortranslator": "^4.1.0",
|
|
96
|
-
"consola": "^3.4.
|
|
97
|
+
"consola": "^3.4.2",
|
|
97
98
|
"defu": "^6.1.4",
|
|
98
99
|
"embla-carousel-auto-height": "^8.5.2",
|
|
99
100
|
"embla-carousel-auto-scroll": "^8.5.2",
|
|
@@ -103,20 +104,21 @@
|
|
|
103
104
|
"embla-carousel-vue": "^8.5.2",
|
|
104
105
|
"embla-carousel-wheel-gestures": "^8.0.1",
|
|
105
106
|
"fuse.js": "^7.1.0",
|
|
107
|
+
"hookable": "^5.5.3",
|
|
106
108
|
"knitwork": "^1.2.0",
|
|
107
109
|
"magic-string": "^0.30.17",
|
|
108
110
|
"mlly": "^1.7.4",
|
|
109
111
|
"ohash": "^2.0.11",
|
|
110
112
|
"pathe": "^2.0.3",
|
|
111
|
-
"reka-ui": "^2.
|
|
113
|
+
"reka-ui": "^2.1.1",
|
|
112
114
|
"scule": "^1.3.0",
|
|
113
115
|
"tailwind-variants": "^1.0.0",
|
|
114
|
-
"tailwindcss": "^4.0.
|
|
116
|
+
"tailwindcss": "^4.0.17",
|
|
115
117
|
"tinyglobby": "^0.2.12",
|
|
116
|
-
"unplugin": "^2.2.
|
|
117
|
-
"unplugin-auto-import": "^19.1.
|
|
118
|
+
"unplugin": "^2.2.2",
|
|
119
|
+
"unplugin-auto-import": "^19.1.2",
|
|
118
120
|
"unplugin-vue-components": "^28.4.1",
|
|
119
|
-
"vaul-vue": "^0.
|
|
121
|
+
"vaul-vue": "^0.4.1",
|
|
120
122
|
"vue": "^3.5.13",
|
|
121
123
|
"vue-router": "^4.5.0"
|
|
122
124
|
},
|
|
@@ -125,32 +127,47 @@
|
|
|
125
127
|
"@nuxt/module-builder": "^0.8.4",
|
|
126
128
|
"@nuxt/test-utils": "^3.17.2",
|
|
127
129
|
"@release-it/conventional-changelog": "^10.0.0",
|
|
128
|
-
"@standard-schema/spec": "^1.0.0",
|
|
129
130
|
"@vue/test-utils": "^2.4.6",
|
|
130
131
|
"embla-carousel": "^8.5.2",
|
|
131
|
-
"eslint": "^9.
|
|
132
|
+
"eslint": "^9.23.0",
|
|
132
133
|
"happy-dom": "^17.4.4",
|
|
133
|
-
"
|
|
134
|
-
"nuxt": "^3.16.0",
|
|
134
|
+
"nuxt": "^3.16.1",
|
|
135
135
|
"release-it": "^18.1.2",
|
|
136
|
-
"
|
|
137
|
-
"valibot": "^0.42.1",
|
|
138
|
-
"vitest": "^3.0.8",
|
|
136
|
+
"vitest": "^3.0.9",
|
|
139
137
|
"vitest-environment-nuxt": "^1.0.1",
|
|
140
|
-
"vue-tsc": "^2.2.0"
|
|
141
|
-
"yup": "^1.6.1",
|
|
142
|
-
"zod": "^3.24.2"
|
|
138
|
+
"vue-tsc": "^2.2.0"
|
|
143
139
|
},
|
|
144
140
|
"peerDependencies": {
|
|
145
|
-
"
|
|
141
|
+
"joi": "^17.13.0",
|
|
142
|
+
"superstruct": "^2.0.0",
|
|
143
|
+
"typescript": "^5.6.3",
|
|
144
|
+
"valibot": "^1.0.0",
|
|
145
|
+
"yup": "^1.6.0",
|
|
146
|
+
"zod": "^3.24.0"
|
|
147
|
+
},
|
|
148
|
+
"peerDependenciesMeta": {
|
|
149
|
+
"joi": {
|
|
150
|
+
"optional": true
|
|
151
|
+
},
|
|
152
|
+
"valibot": {
|
|
153
|
+
"optional": true
|
|
154
|
+
},
|
|
155
|
+
"superstruct": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"yup": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
161
|
+
"zod": {
|
|
162
|
+
"optional": true
|
|
163
|
+
}
|
|
146
164
|
},
|
|
147
165
|
"resolutions": {
|
|
148
166
|
"@nuxt/ui": "workspace:*",
|
|
149
167
|
"chokidar": "3.6.0",
|
|
150
168
|
"debug": "4.3.7",
|
|
151
169
|
"rollup": "4.34.9",
|
|
152
|
-
"
|
|
153
|
-
"unplugin": "^2.2.0",
|
|
170
|
+
"unplugin": "^2.2.2",
|
|
154
171
|
"vue-tsc": "2.2.0"
|
|
155
172
|
},
|
|
156
173
|
"pnpm": {
|