@nuxt/ui 2.11.0 → 2.12.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/dist/module.d.mts +294 -48
- package/dist/module.d.ts +294 -48
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -4
- package/dist/runtime/components/data/Table.vue +29 -21
- package/dist/runtime/components/data/Table.vue.d.ts +28 -19
- package/dist/runtime/components/elements/Accordion.vue +10 -6
- package/dist/runtime/components/elements/Accordion.vue.d.ts +11 -11
- package/dist/runtime/components/elements/Alert.vue +12 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +12 -17
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
- package/dist/runtime/components/elements/Badge.vue +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Button.vue +8 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +9 -8
- package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
- package/dist/runtime/components/elements/ButtonGroup.mjs +3 -16
- package/dist/runtime/components/elements/Chip.vue +2 -2
- package/dist/runtime/components/elements/Chip.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Dropdown.vue +68 -19
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +37 -9
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Link.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
- package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
- package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
- package/dist/runtime/components/elements/Progress.vue +5 -94
- package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
- package/dist/runtime/components/forms/Checkbox.vue +7 -7
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Form.vue +17 -8
- package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +2 -2
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
- package/dist/runtime/components/forms/Input.vue +8 -8
- package/dist/runtime/components/forms/Input.vue.d.ts +11 -11
- package/dist/runtime/components/forms/InputMenu.vue +410 -0
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +331 -0
- package/dist/runtime/components/forms/Radio.vue +7 -7
- package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
- package/dist/runtime/components/forms/RadioGroup.vue +5 -5
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Range.vue +5 -5
- package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Select.vue +8 -8
- package/dist/runtime/components/forms/Select.vue.d.ts +10 -10
- package/dist/runtime/components/forms/SelectMenu.vue +69 -36
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +40 -20
- package/dist/runtime/components/forms/Textarea.vue +3 -3
- package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Toggle.vue +10 -10
- package/dist/runtime/components/forms/Toggle.vue.d.ts +16 -15
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Divider.vue +3 -8
- package/dist/runtime/components/layout/Divider.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Breadcrumb.vue +9 -6
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +10 -7
- package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +16 -9
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +16 -11
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +16 -7
- package/dist/runtime/components/navigation/Tabs.vue +8 -5
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
- package/dist/runtime/components/navigation/VerticalNavigation.vue +56 -39
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +14 -10
- package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Modal.vue +3 -6
- package/dist/runtime/components/overlays/Modal.vue.d.ts +8 -8
- package/dist/runtime/components/overlays/Notification.vue +7 -7
- package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notifications.vue +2 -2
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Popover.vue +54 -17
- package/dist/runtime/components/overlays/Popover.vue.d.ts +21 -11
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +8 -8
- package/dist/runtime/components/overlays/Tooltip.vue +6 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
- package/dist/runtime/composables/useFormGroup.d.ts +3 -3
- package/dist/runtime/composables/useFormGroup.mjs +1 -1
- package/dist/runtime/composables/useShortcuts.mjs +3 -1
- package/dist/runtime/composables/useUI.d.ts +3 -3
- package/dist/runtime/types/alert.d.ts +5 -0
- package/dist/runtime/types/breadcrumb.d.ts +3 -0
- package/dist/runtime/types/dropdown.d.ts +2 -0
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/utils.d.ts +4 -4
- package/dist/runtime/types/vertical-navigation.d.ts +1 -0
- package/dist/runtime/ui.config/data/table.d.ts +2 -2
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
- package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
- package/dist/runtime/ui.config/elements/alert.mjs +1 -0
- package/dist/runtime/ui.config/elements/button.d.ts +4 -0
- package/dist/runtime/ui.config/elements/button.mjs +4 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
- package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
- package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
- package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
- package/dist/runtime/ui.config/forms/input.d.ts +2 -0
- package/dist/runtime/ui.config/forms/input.mjs +14 -12
- package/dist/runtime/ui.config/forms/inputMenu.d.ts +64 -0
- package/dist/runtime/ui.config/forms/inputMenu.mjs +62 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
- package/dist/runtime/ui.config/forms/radio.mjs +3 -0
- package/dist/runtime/ui.config/forms/select.d.ts +2 -0
- package/dist/runtime/ui.config/forms/select.mjs +1 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +18 -11
- package/dist/runtime/ui.config/forms/selectMenu.mjs +12 -41
- package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
- package/dist/runtime/ui.config/index.d.ts +1 -0
- package/dist/runtime/ui.config/index.mjs +1 -0
- package/dist/runtime/ui.config/layout/card.mjs +1 -1
- package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
- package/dist/runtime/ui.config/layout/divider.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +1 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +2 -1
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
- package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +6 -1
- package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +5 -0
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
- package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
- package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
- package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
- package/dist/runtime/ui.config/popper.mjs +9 -0
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.mjs +11 -3
- package/dist/runtime/utils/uid.mjs +2 -1
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +1 -1
- package/package.json +29 -28
- package/dist/runtime/ui.config/_popperArrow.mjs +0 -8
|
@@ -13,6 +13,7 @@ export { default as progress } from "./elements/progress.mjs";
|
|
|
13
13
|
export { default as meter } from "./elements/meter.mjs";
|
|
14
14
|
export { default as meterGroup } from "./elements/meterGroup.mjs";
|
|
15
15
|
export { default as input } from "./forms/input.mjs";
|
|
16
|
+
export { default as inputMenu } from "./forms/inputMenu.mjs";
|
|
16
17
|
export { default as formGroup } from "./forms/formGroup.mjs";
|
|
17
18
|
export { default as textarea } from "./forms/textarea.mjs";
|
|
18
19
|
export { default as select } from "./forms/select.mjs";
|
|
@@ -17,13 +17,18 @@ declare const _default: {
|
|
|
17
17
|
horizontal: string;
|
|
18
18
|
vertical: string;
|
|
19
19
|
};
|
|
20
|
+
type: {
|
|
21
|
+
solid: string;
|
|
22
|
+
dotted: string;
|
|
23
|
+
dashed: string;
|
|
24
|
+
};
|
|
20
25
|
};
|
|
21
26
|
icon: {
|
|
22
27
|
base: string;
|
|
23
28
|
};
|
|
24
29
|
avatar: {
|
|
25
30
|
base: string;
|
|
26
|
-
size:
|
|
31
|
+
size: "2xs";
|
|
27
32
|
};
|
|
28
33
|
label: string;
|
|
29
34
|
};
|
|
@@ -3,6 +3,7 @@ export default {
|
|
|
3
3
|
ol: "flex items-center gap-x-1.5",
|
|
4
4
|
li: "flex items-center gap-x-1.5 text-gray-500 dark:text-gray-400 text-sm",
|
|
5
5
|
base: "flex items-center gap-x-1.5 group font-semibold",
|
|
6
|
+
label: "",
|
|
6
7
|
icon: {
|
|
7
8
|
base: "flex-shrink-0 w-4 h-4",
|
|
8
9
|
active: "",
|
|
@@ -14,6 +15,6 @@ export default {
|
|
|
14
15
|
active: "text-primary-500 dark:text-primary-400",
|
|
15
16
|
inactive: " hover:text-gray-700 dark:hover:text-gray-200",
|
|
16
17
|
default: {
|
|
17
|
-
divider: "i-heroicons-chevron-right-20-solid"
|
|
18
|
+
divider: "i-heroicons-chevron-right-20-solid rtl:i-heroicons-chevron-left-20-solid"
|
|
18
19
|
}
|
|
19
20
|
};
|
|
@@ -9,10 +9,14 @@ declare const _default: {
|
|
|
9
9
|
size: string;
|
|
10
10
|
icon: {
|
|
11
11
|
base: string;
|
|
12
|
+
loading: string;
|
|
12
13
|
size: string;
|
|
13
14
|
padding: string;
|
|
14
15
|
};
|
|
15
|
-
closeButton:
|
|
16
|
+
closeButton: {
|
|
17
|
+
base: string;
|
|
18
|
+
padding: string;
|
|
19
|
+
};
|
|
16
20
|
};
|
|
17
21
|
emptyState: {
|
|
18
22
|
wrapper: string;
|
|
@@ -9,10 +9,14 @@ export default {
|
|
|
9
9
|
size: "sm:text-sm",
|
|
10
10
|
icon: {
|
|
11
11
|
base: "pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",
|
|
12
|
+
loading: "animate-spin",
|
|
12
13
|
size: "h-4 w-4",
|
|
13
14
|
padding: "ps-10"
|
|
14
15
|
},
|
|
15
|
-
closeButton:
|
|
16
|
+
closeButton: {
|
|
17
|
+
base: "absolute end-4",
|
|
18
|
+
padding: "pe-10"
|
|
19
|
+
}
|
|
16
20
|
},
|
|
17
21
|
emptyState: {
|
|
18
22
|
wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
|
|
@@ -5,28 +5,28 @@ declare const _default: {
|
|
|
5
5
|
default: {
|
|
6
6
|
size: string;
|
|
7
7
|
activeButton: {
|
|
8
|
-
color:
|
|
8
|
+
color: "primary";
|
|
9
9
|
};
|
|
10
10
|
inactiveButton: {
|
|
11
|
-
color:
|
|
11
|
+
color: "white";
|
|
12
12
|
};
|
|
13
13
|
firstButton: {
|
|
14
|
-
color:
|
|
14
|
+
color: "white";
|
|
15
15
|
class: string;
|
|
16
16
|
icon: string;
|
|
17
17
|
};
|
|
18
18
|
lastButton: {
|
|
19
|
-
color:
|
|
19
|
+
color: "white";
|
|
20
20
|
class: string;
|
|
21
21
|
icon: string;
|
|
22
22
|
};
|
|
23
23
|
prevButton: {
|
|
24
|
-
color:
|
|
24
|
+
color: "white";
|
|
25
25
|
class: string;
|
|
26
26
|
icon: string;
|
|
27
27
|
};
|
|
28
28
|
nextButton: {
|
|
29
|
-
color:
|
|
29
|
+
color: "white";
|
|
30
30
|
class: string;
|
|
31
31
|
icon: string;
|
|
32
32
|
};
|
|
@@ -17,12 +17,17 @@ declare const _default: {
|
|
|
17
17
|
};
|
|
18
18
|
avatar: {
|
|
19
19
|
base: string;
|
|
20
|
-
size:
|
|
20
|
+
size: "3xs";
|
|
21
21
|
};
|
|
22
22
|
badge: {
|
|
23
23
|
base: string;
|
|
24
24
|
active: string;
|
|
25
25
|
inactive: string;
|
|
26
26
|
};
|
|
27
|
+
divider: {
|
|
28
|
+
wrapper: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
27
32
|
};
|
|
28
33
|
export default _default;
|
|
@@ -23,5 +23,10 @@ export default {
|
|
|
23
23
|
base: "relative ms-auto inline-block py-0.5 px-2 text-xs rounded-md -me-1 -my-0.5",
|
|
24
24
|
active: "bg-white dark:bg-gray-900",
|
|
25
25
|
inactive: "bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white group-hover:bg-white dark:group-hover:bg-gray-900"
|
|
26
|
+
},
|
|
27
|
+
divider: {
|
|
28
|
+
wrapper: {
|
|
29
|
+
base: "p-2"
|
|
30
|
+
}
|
|
26
31
|
}
|
|
27
32
|
};
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
container: "flex min-h-full items-end sm:items-center justify-center text-center",
|
|
5
5
|
padding: "p-4 sm:p-0",
|
|
6
6
|
margin: "sm:my-8",
|
|
7
|
-
base: "relative text-left rtl:text-right overflow-hidden
|
|
7
|
+
base: "relative text-left rtl:text-right overflow-hidden flex flex-col",
|
|
8
8
|
overlay: {
|
|
9
9
|
base: "fixed inset-0 transition-opacity",
|
|
10
10
|
background: "bg-gray-200/75 dark:bg-gray-800/75",
|
|
@@ -22,8 +22,9 @@ export default {
|
|
|
22
22
|
ring: "",
|
|
23
23
|
rounded: "rounded-lg",
|
|
24
24
|
shadow: "shadow-xl",
|
|
25
|
-
width: "sm:max-w-lg",
|
|
25
|
+
width: "w-full sm:max-w-lg",
|
|
26
26
|
height: "",
|
|
27
|
+
fullscreen: "w-screen h-screen",
|
|
27
28
|
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
28
29
|
transition: {
|
|
29
30
|
enter: "ease-out duration-300",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
wrapper: string;
|
|
3
3
|
container: string;
|
|
4
|
+
inner: string;
|
|
4
5
|
title: string;
|
|
5
6
|
description: string;
|
|
6
7
|
actions: string;
|
|
@@ -36,13 +37,13 @@ declare const _default: {
|
|
|
36
37
|
timeout: number;
|
|
37
38
|
closeButton: {
|
|
38
39
|
icon: string;
|
|
39
|
-
color:
|
|
40
|
-
variant:
|
|
40
|
+
color: "gray";
|
|
41
|
+
variant: "link";
|
|
41
42
|
padded: boolean;
|
|
42
43
|
};
|
|
43
44
|
actionButton: {
|
|
44
|
-
size:
|
|
45
|
-
color:
|
|
45
|
+
size: "xs";
|
|
46
|
+
color: "white";
|
|
46
47
|
};
|
|
47
48
|
};
|
|
48
49
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
wrapper: "w-full pointer-events-auto",
|
|
3
3
|
container: "relative overflow-hidden",
|
|
4
|
+
inner: "w-0 flex-1",
|
|
4
5
|
title: "text-sm font-medium text-gray-900 dark:text-white",
|
|
5
6
|
description: "mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",
|
|
6
7
|
actions: "flex items-center gap-2 mt-3 flex-shrink-0",
|
|
@@ -20,6 +20,11 @@ export default {
|
|
|
20
20
|
padding: "",
|
|
21
21
|
shadow: "shadow-xl",
|
|
22
22
|
width: "w-screen max-w-md",
|
|
23
|
+
translate: {
|
|
24
|
+
base: "translate-x-0",
|
|
25
|
+
left: "-translate-x-full",
|
|
26
|
+
right: "translate-x-full"
|
|
27
|
+
},
|
|
23
28
|
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
24
29
|
transition: {
|
|
25
30
|
enter: "transform transition ease-in-out duration-300",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import arrow from "../
|
|
1
|
+
import { arrow } from "../popper.mjs";
|
|
2
2
|
export default {
|
|
3
3
|
wrapper: "relative inline-flex",
|
|
4
4
|
container: "z-20 group",
|
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
ring: "ring-1 ring-gray-200 dark:ring-gray-800",
|
|
11
11
|
base: "[@media(pointer:coarse)]:hidden h-6 px-2 py-1 text-xs font-normal truncate relative",
|
|
12
12
|
shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5",
|
|
13
|
+
middot: "mx-1 text-gray-700 dark:text-gray-200",
|
|
13
14
|
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
14
15
|
transition: {
|
|
15
16
|
enterActiveClass: "transition ease-out duration-200",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const arrow = {
|
|
2
|
+
base: "invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",
|
|
3
|
+
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
|
|
4
|
+
rounded: "before:rounded-sm",
|
|
5
|
+
background: "before:bg-gray-200 dark:before:bg-gray-800",
|
|
6
|
+
shadow: "before:shadow",
|
|
7
|
+
// eslint-disable-next-line quotes
|
|
8
|
+
placement: `group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1`
|
|
9
|
+
};
|
package/dist/runtime/ui.css
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
.dark {
|
|
2
|
-
color-scheme: dark;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
a:focus-visible {
|
|
6
|
-
@apply outline-primary;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
::selection { @apply bg-primary/40; }
|
|
10
|
-
|
|
11
|
-
select {
|
|
12
|
-
background-image: none;
|
|
13
|
-
}
|
|
1
|
+
.dark{color-scheme:dark}a:focus-visible{@apply outline-primary}::-moz-selection{@apply bg-primary/40}::selection{@apply bg-primary/40}select{background-image:none}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { defu, createDefu } from "defu";
|
|
2
2
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
3
3
|
const customTwMerge = extendTailwindMerge({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
extend: {
|
|
5
|
+
classGroups: {
|
|
6
|
+
icons: [(classPart) => /^i-/.test(classPart)]
|
|
7
|
+
}
|
|
6
8
|
}
|
|
7
9
|
});
|
|
8
10
|
const defuTwMerge = createDefu((obj, key, value, namespace) => {
|
|
9
|
-
if (namespace
|
|
11
|
+
if (namespace === "default" || namespace.startsWith("default.")) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (namespace.endsWith("avatar") && key === "size") {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (typeof obj[key] === "string" && typeof value === "string" && obj[key] && value) {
|
|
10
18
|
obj[key] = customTwMerge(obj[key], value);
|
|
11
19
|
return true;
|
|
12
20
|
}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
2
|
+
import type { ModuleOptions } from './module.js'
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
declare module '@nuxt/schema' {
|
|
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
|
|
16
|
+
export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
|
|
16
|
+
export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"repository": "nuxt/ui",
|
|
5
5
|
"homepage": "https://ui.nuxt.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,53 +32,54 @@
|
|
|
32
32
|
"test": "vitest"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@egoist/tailwindcss-icons": "^1.
|
|
35
|
+
"@egoist/tailwindcss-icons": "^1.7.2",
|
|
36
36
|
"@headlessui/tailwindcss": "^0.2.0",
|
|
37
37
|
"@headlessui/vue": "^1.7.16",
|
|
38
|
-
"@iconify-json/heroicons": "^1.1.
|
|
39
|
-
"@nuxt/kit": "^3.
|
|
38
|
+
"@iconify-json/heroicons": "^1.1.19",
|
|
39
|
+
"@nuxt/kit": "^3.9.1",
|
|
40
40
|
"@nuxtjs/color-mode": "^3.3.2",
|
|
41
|
-
"@nuxtjs/tailwindcss": "^6.10.
|
|
41
|
+
"@nuxtjs/tailwindcss": "^6.10.3",
|
|
42
42
|
"@popperjs/core": "^2.11.8",
|
|
43
43
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
44
44
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
45
45
|
"@tailwindcss/forms": "^0.5.7",
|
|
46
46
|
"@tailwindcss/typography": "^0.5.10",
|
|
47
|
-
"@vueuse/core": "^10.
|
|
48
|
-
"@vueuse/integrations": "^10.
|
|
49
|
-
"@vueuse/math": "^10.
|
|
50
|
-
"defu": "^6.1.
|
|
47
|
+
"@vueuse/core": "^10.7.1",
|
|
48
|
+
"@vueuse/integrations": "^10.7.1",
|
|
49
|
+
"@vueuse/math": "^10.7.1",
|
|
50
|
+
"defu": "^6.1.4",
|
|
51
51
|
"fuse.js": "^6.6.2",
|
|
52
|
-
"nuxt-icon": "^0.6.
|
|
52
|
+
"nuxt-icon": "^0.6.8",
|
|
53
53
|
"ohash": "^1.1.3",
|
|
54
54
|
"pathe": "^1.1.1",
|
|
55
|
-
"scule": "^1.1.
|
|
56
|
-
"tailwind-merge": "^
|
|
57
|
-
"tailwindcss": "^3.
|
|
55
|
+
"scule": "^1.1.1",
|
|
56
|
+
"tailwind-merge": "^2.2.0",
|
|
57
|
+
"tailwindcss": "^3.4.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@nuxt/eslint-config": "^0.2.0",
|
|
61
|
-
"@nuxt/module-builder": "^0.5.
|
|
61
|
+
"@nuxt/module-builder": "^0.5.5",
|
|
62
|
+
"@nuxt/test-utils": "^3.9.0",
|
|
62
63
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
63
|
-
"@
|
|
64
|
-
"
|
|
65
|
-
"eslint": "^8.54.0",
|
|
64
|
+
"@vue/test-utils": "^2.4.3",
|
|
65
|
+
"eslint": "^8.56.0",
|
|
66
66
|
"happy-dom": "^12.10.3",
|
|
67
67
|
"joi": "^17.11.0",
|
|
68
|
-
"nuxt": "^3.
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"typescript": "^5.3.2",
|
|
68
|
+
"nuxt": "^3.9.1",
|
|
69
|
+
"release-it": "^17.0.1",
|
|
70
|
+
"typescript": "^5.3.3",
|
|
72
71
|
"unbuild": "^2.0.0",
|
|
73
|
-
"valibot": "^0.
|
|
74
|
-
"vitest": "^
|
|
75
|
-
"
|
|
76
|
-
"
|
|
72
|
+
"valibot": "^0.25.0",
|
|
73
|
+
"vitest": "^1.1.3",
|
|
74
|
+
"vitest-environment-nuxt": "^1.0.0",
|
|
75
|
+
"vue-tsc": "^1.8.27",
|
|
76
|
+
"yup": "^1.3.3",
|
|
77
77
|
"zod": "^3.22.4"
|
|
78
78
|
},
|
|
79
79
|
"resolutions": {
|
|
80
|
-
"@nuxt/kit": "3.
|
|
81
|
-
"@nuxt/schema": "3.
|
|
82
|
-
"vue": "3.3.
|
|
80
|
+
"@nuxt/kit": "3.9.1",
|
|
81
|
+
"@nuxt/schema": "3.9.1",
|
|
82
|
+
"vue": "3.3.13",
|
|
83
|
+
"tailwindcss": "3.4.1"
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
base: "before:w-2 before:h-2",
|
|
3
|
-
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
|
|
4
|
-
rounded: "before:rounded-sm",
|
|
5
|
-
background: "before:bg-gray-200 dark:before:bg-gray-800",
|
|
6
|
-
shadow: "before:shadow",
|
|
7
|
-
placement: 'group-data-[popper-placement*="right"]:-left-1 group-data-[popper-placement*="left"]:-right-1 group-data-[popper-placement*="top"]:-bottom-1 group-data-[popper-placement*="bottom"]:-top-1'
|
|
8
|
-
};
|