@nuxt/ui 2.11.0 → 2.11.1
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 +196 -22
- package/dist/module.d.ts +196 -22
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -3
- package/dist/runtime/components/data/Table.vue +3 -3
- package/dist/runtime/components/data/Table.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Accordion.vue +2 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Alert.vue +6 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +7 -7
- 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 +8 -7
- 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 +7 -7
- package/dist/runtime/components/elements/Dropdown.vue +5 -5
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +7 -7
- 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/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 +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 +7 -7
- package/dist/runtime/components/forms/Input.vue.d.ts +10 -10
- 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 +4 -4
- 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 +7 -7
- package/dist/runtime/components/forms/Select.vue.d.ts +9 -9
- package/dist/runtime/components/forms/SelectMenu.vue +18 -18
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +13 -13
- 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 +9 -9
- package/dist/runtime/components/forms/Toggle.vue.d.ts +14 -14
- 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 +2 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +15 -8
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +7 -7
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +7 -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 +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +7 -7
- 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 +7 -7
- 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 +5 -4
- package/dist/runtime/components/overlays/Popover.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +7 -7
- 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/useUI.d.ts +3 -3
- package/dist/runtime/types/breadcrumb.d.ts +2 -0
- package/dist/runtime/types/form.d.ts +1 -1
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/utils.d.ts +4 -4
- 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 +2 -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 +6 -1
- package/dist/runtime/ui.config/forms/selectMenu.mjs +7 -2
- 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/layout/divider.d.ts +6 -1
- package/dist/runtime/ui.config/layout/divider.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +1 -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 +1 -1
- 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/{_popperArrow.mjs → popper.mjs} +2 -2
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.mjs +1 -1
- package/package.json +12 -14
|
@@ -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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
base: "before:w-2 before:h-2",
|
|
1
|
+
export const arrow = {
|
|
2
|
+
base: "invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",
|
|
3
3
|
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
|
|
4
4
|
rounded: "before:rounded-sm",
|
|
5
5
|
background: "before:bg-gray-200 dark:before:bg-gray-800",
|
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}
|
|
@@ -6,7 +6,7 @@ const customTwMerge = extendTailwindMerge({
|
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
8
|
const defuTwMerge = createDefu((obj, key, value, namespace) => {
|
|
9
|
-
if (namespace !== "default" && typeof obj[key] === "string" && typeof value === "string" && obj[key] && value) {
|
|
9
|
+
if (namespace !== "default" && !namespace.startsWith("default.") && typeof obj[key] === "string" && typeof value === "string" && obj[key] && value) {
|
|
10
10
|
obj[key] = customTwMerge(obj[key], value);
|
|
11
11
|
return true;
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"repository": "nuxt/ui",
|
|
5
5
|
"homepage": "https://ui.nuxt.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,44 +35,42 @@
|
|
|
35
35
|
"@egoist/tailwindcss-icons": "^1.4.0",
|
|
36
36
|
"@headlessui/tailwindcss": "^0.2.0",
|
|
37
37
|
"@headlessui/vue": "^1.7.16",
|
|
38
|
-
"@iconify-json/heroicons": "^1.1.
|
|
38
|
+
"@iconify-json/heroicons": "^1.1.15",
|
|
39
39
|
"@nuxt/kit": "^3.8.2",
|
|
40
40
|
"@nuxtjs/color-mode": "^3.3.2",
|
|
41
|
-
"@nuxtjs/tailwindcss": "^6.10.
|
|
41
|
+
"@nuxtjs/tailwindcss": "^6.10.1",
|
|
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.
|
|
47
|
+
"@vueuse/core": "^10.7.0",
|
|
48
|
+
"@vueuse/integrations": "^10.7.0",
|
|
49
|
+
"@vueuse/math": "^10.7.0",
|
|
50
50
|
"defu": "^6.1.3",
|
|
51
51
|
"fuse.js": "^6.6.2",
|
|
52
|
-
"nuxt-icon": "^0.6.
|
|
52
|
+
"nuxt-icon": "^0.6.7",
|
|
53
53
|
"ohash": "^1.1.3",
|
|
54
54
|
"pathe": "^1.1.1",
|
|
55
|
-
"scule": "^1.1.
|
|
55
|
+
"scule": "^1.1.1",
|
|
56
56
|
"tailwind-merge": "^1.14.0",
|
|
57
|
-
"tailwindcss": "^3.3.
|
|
57
|
+
"tailwindcss": "^3.3.6"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@nuxt/eslint-config": "^0.2.0",
|
|
61
61
|
"@nuxt/module-builder": "^0.5.4",
|
|
62
62
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
63
|
-
"
|
|
64
|
-
"@vitejs/plugin-vue": "^4.5.0",
|
|
65
|
-
"eslint": "^8.54.0",
|
|
63
|
+
"eslint": "^8.55.0",
|
|
66
64
|
"happy-dom": "^12.10.3",
|
|
67
65
|
"joi": "^17.11.0",
|
|
68
66
|
"nuxt": "^3.8.2",
|
|
69
67
|
"nuxt-vitest": "^0.11.5",
|
|
70
68
|
"release-it": "^17.0.0",
|
|
71
|
-
"typescript": "^5.3.
|
|
69
|
+
"typescript": "^5.3.3",
|
|
72
70
|
"unbuild": "^2.0.0",
|
|
73
71
|
"valibot": "^0.21.0",
|
|
74
72
|
"vitest": "^0.33.0",
|
|
75
|
-
"vue-tsc": "^1.8.
|
|
73
|
+
"vue-tsc": "^1.8.25",
|
|
76
74
|
"yup": "^1.3.2",
|
|
77
75
|
"zod": "^3.22.4"
|
|
78
76
|
},
|