@nuxt/ui 2.13.0 → 2.14.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/README.md +8 -8
- package/dist/module.d.mts +61 -2
- package/dist/module.d.ts +61 -2
- package/dist/module.json +2 -2
- package/dist/module.mjs +27 -23
- package/dist/runtime/components/data/Table.vue +16 -4
- package/dist/runtime/components/data/Table.vue.d.ts +21 -3
- package/dist/runtime/components/elements/Accordion.vue +11 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Alert.vue +2 -2
- package/dist/runtime/components/elements/Alert.vue.d.ts +4 -3
- package/dist/runtime/components/elements/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/elements/AvatarGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +62 -36
- package/dist/runtime/components/elements/ButtonGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Carousel.vue +19 -12
- package/dist/runtime/components/elements/Carousel.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Dropdown.vue +3 -1
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Link.vue +1 -1
- package/dist/runtime/components/elements/Link.vue.d.ts +61 -35
- package/dist/runtime/components/elements/Meter.vue +4 -0
- package/dist/runtime/components/elements/Meter.vue.d.ts +1 -1
- package/dist/runtime/components/elements/MeterGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Progress.vue +4 -1
- package/dist/runtime/components/elements/Progress.vue.d.ts +5 -5
- package/dist/runtime/components/forms/Checkbox.vue +1 -6
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +5 -14
- package/dist/runtime/components/forms/Form.vue +6 -3
- package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +20 -17
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Input.vue +1 -0
- package/dist/runtime/components/forms/Input.vue.d.ts +5 -5
- package/dist/runtime/components/forms/InputMenu.vue +4 -1
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Radio.vue +5 -11
- package/dist/runtime/components/forms/Radio.vue.d.ts +5 -5
- package/dist/runtime/components/forms/RadioGroup.vue +1 -0
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Range.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Select.vue.d.ts +5 -5
- package/dist/runtime/components/forms/SelectMenu.vue +4 -1
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Textarea.vue +5 -1
- package/dist/runtime/components/forms/Textarea.vue.d.ts +14 -5
- package/dist/runtime/components/forms/Toggle.vue +3 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +3 -3
- package/dist/runtime/components/layout/Card.vue +1 -1
- package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue +8 -1
- package/dist/runtime/components/layout/Divider.vue.d.ts +15 -4
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/CommandPalette.vue +3 -1
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +3 -1
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Tabs.vue +8 -8
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +10 -1
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Modal.vue +3 -1
- package/dist/runtime/components/overlays/Modal.vue.d.ts +5 -5
- package/dist/runtime/components/overlays/Modals.client.vue +12 -0
- package/dist/runtime/components/overlays/Notification.vue +2 -2
- package/dist/runtime/components/overlays/Notification.vue.d.ts +4 -3
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Popover.vue +3 -1
- package/dist/runtime/components/overlays/Popover.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Slideover.vue +3 -1
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +5 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useFormGroup.mjs +9 -12
- package/dist/runtime/composables/useModal.d.ts +12 -0
- package/dist/runtime/composables/useModal.mjs +37 -0
- package/dist/runtime/plugins/modals.d.ts +2 -0
- package/dist/runtime/plugins/modals.mjs +10 -0
- package/dist/runtime/types/component.d.ts +14 -0
- package/dist/runtime/types/divider.d.ts +3 -0
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/modal.d.ts +18 -0
- package/dist/runtime/types/progress.d.ts +2 -0
- package/dist/runtime/types/range.d.ts +2 -0
- package/dist/runtime/types/toggle.d.ts +2 -0
- package/dist/runtime/ui.config/data/table.d.ts +7 -0
- package/dist/runtime/ui.config/data/table.mjs +10 -3
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
- package/dist/runtime/ui.config/elements/accordion.mjs +1 -0
- package/dist/runtime/ui.config/forms/formGroup.d.ts +1 -0
- package/dist/runtime/ui.config/forms/formGroup.mjs +1 -0
- package/dist/runtime/ui.config/forms/input.d.ts +11 -0
- package/dist/runtime/ui.config/forms/input.mjs +11 -0
- package/dist/runtime/ui.config/forms/select.d.ts +11 -0
- package/dist/runtime/ui.config/forms/textarea.d.ts +11 -0
- package/dist/runtime/ui.config/layout/divider.d.ts +19 -2
- package/dist/runtime/ui.config/layout/divider.mjs +20 -3
- package/dist/runtime/utils/index.mjs +9 -0
- package/dist/runtime/utils/link.d.ts +24 -11
- package/dist/runtime/utils/link.mjs +26 -13
- package/package.json +21 -19
- package/dist/runtime/utils/uid.d.ts +0 -1
- package/dist/runtime/utils/uid.mjs +0 -5
|
@@ -3,54 +3,67 @@ export declare const nuxtLinkProps: {
|
|
|
3
3
|
readonly to: {
|
|
4
4
|
readonly type: PropType<RouteLocationRaw>;
|
|
5
5
|
readonly default: undefined;
|
|
6
|
+
readonly required: false;
|
|
6
7
|
};
|
|
7
8
|
readonly href: {
|
|
8
9
|
readonly type: PropType<RouteLocationRaw>;
|
|
9
10
|
readonly default: undefined;
|
|
11
|
+
readonly required: false;
|
|
10
12
|
};
|
|
11
13
|
readonly target: {
|
|
12
|
-
readonly type: PropType<
|
|
14
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
13
15
|
readonly default: undefined;
|
|
16
|
+
readonly required: false;
|
|
14
17
|
};
|
|
15
18
|
readonly rel: {
|
|
16
|
-
readonly type: PropType<
|
|
19
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
17
20
|
readonly default: undefined;
|
|
21
|
+
readonly required: false;
|
|
18
22
|
};
|
|
19
23
|
readonly noRel: {
|
|
20
|
-
readonly type:
|
|
24
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
21
25
|
readonly default: undefined;
|
|
26
|
+
readonly required: false;
|
|
22
27
|
};
|
|
23
28
|
readonly prefetch: {
|
|
24
|
-
readonly type:
|
|
29
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
25
30
|
readonly default: undefined;
|
|
31
|
+
readonly required: false;
|
|
26
32
|
};
|
|
27
33
|
readonly noPrefetch: {
|
|
28
|
-
readonly type:
|
|
34
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
29
35
|
readonly default: undefined;
|
|
36
|
+
readonly required: false;
|
|
30
37
|
};
|
|
31
38
|
readonly activeClass: {
|
|
32
|
-
readonly type:
|
|
39
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
33
40
|
readonly default: undefined;
|
|
41
|
+
readonly required: false;
|
|
34
42
|
};
|
|
35
43
|
readonly exactActiveClass: {
|
|
36
|
-
readonly type:
|
|
44
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
37
45
|
readonly default: undefined;
|
|
46
|
+
readonly required: false;
|
|
38
47
|
};
|
|
39
48
|
readonly prefetchedClass: {
|
|
40
|
-
readonly type:
|
|
49
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
41
50
|
readonly default: undefined;
|
|
51
|
+
readonly required: false;
|
|
42
52
|
};
|
|
43
53
|
readonly replace: {
|
|
44
|
-
readonly type:
|
|
54
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
45
55
|
readonly default: undefined;
|
|
56
|
+
readonly required: false;
|
|
46
57
|
};
|
|
47
58
|
readonly ariaCurrentValue: {
|
|
48
|
-
readonly type:
|
|
59
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
49
60
|
readonly default: undefined;
|
|
61
|
+
readonly required: false;
|
|
50
62
|
};
|
|
51
63
|
readonly external: {
|
|
52
|
-
readonly type:
|
|
64
|
+
readonly type: PropType<NuxtLinkProps>;
|
|
53
65
|
readonly default: undefined;
|
|
66
|
+
readonly required: false;
|
|
54
67
|
};
|
|
55
68
|
};
|
|
56
69
|
export declare const getNuxtLinkProps: (props: any) => {};
|
|
@@ -1,60 +1,73 @@
|
|
|
1
1
|
export const nuxtLinkProps = {
|
|
2
2
|
to: {
|
|
3
3
|
type: [String, Object],
|
|
4
|
-
default: void 0
|
|
4
|
+
default: void 0,
|
|
5
|
+
required: false
|
|
5
6
|
},
|
|
6
7
|
href: {
|
|
7
8
|
type: [String, Object],
|
|
8
|
-
default: void 0
|
|
9
|
+
default: void 0,
|
|
10
|
+
required: false
|
|
9
11
|
},
|
|
10
12
|
// Attributes
|
|
11
13
|
target: {
|
|
12
14
|
type: String,
|
|
13
|
-
default: void 0
|
|
15
|
+
default: void 0,
|
|
16
|
+
required: false
|
|
14
17
|
},
|
|
15
18
|
rel: {
|
|
16
19
|
type: String,
|
|
17
|
-
default: void 0
|
|
20
|
+
default: void 0,
|
|
21
|
+
required: false
|
|
18
22
|
},
|
|
19
23
|
noRel: {
|
|
20
24
|
type: Boolean,
|
|
21
|
-
default: void 0
|
|
25
|
+
default: void 0,
|
|
26
|
+
required: false
|
|
22
27
|
},
|
|
23
28
|
// Prefetching
|
|
24
29
|
prefetch: {
|
|
25
30
|
type: Boolean,
|
|
26
|
-
default: void 0
|
|
31
|
+
default: void 0,
|
|
32
|
+
required: false
|
|
27
33
|
},
|
|
28
34
|
noPrefetch: {
|
|
29
35
|
type: Boolean,
|
|
30
|
-
default: void 0
|
|
36
|
+
default: void 0,
|
|
37
|
+
required: false
|
|
31
38
|
},
|
|
32
39
|
// Styling
|
|
33
40
|
activeClass: {
|
|
34
41
|
type: String,
|
|
35
|
-
default: void 0
|
|
42
|
+
default: void 0,
|
|
43
|
+
required: false
|
|
36
44
|
},
|
|
37
45
|
exactActiveClass: {
|
|
38
46
|
type: String,
|
|
39
|
-
default: void 0
|
|
47
|
+
default: void 0,
|
|
48
|
+
required: false
|
|
40
49
|
},
|
|
41
50
|
prefetchedClass: {
|
|
42
51
|
type: String,
|
|
43
|
-
default: void 0
|
|
52
|
+
default: void 0,
|
|
53
|
+
required: false
|
|
44
54
|
},
|
|
45
55
|
// Vue Router's `<RouterLink>` additional props
|
|
46
56
|
replace: {
|
|
47
57
|
type: Boolean,
|
|
48
|
-
default: void 0
|
|
58
|
+
default: void 0,
|
|
59
|
+
required: false
|
|
49
60
|
},
|
|
50
61
|
ariaCurrentValue: {
|
|
51
62
|
type: String,
|
|
52
|
-
default: void 0
|
|
63
|
+
default: void 0,
|
|
64
|
+
required: false
|
|
53
65
|
},
|
|
54
66
|
// Edge cases handling
|
|
55
67
|
external: {
|
|
56
68
|
type: Boolean,
|
|
57
|
-
default: void 0
|
|
69
|
+
default: void 0,
|
|
70
|
+
required: false
|
|
58
71
|
}
|
|
59
72
|
};
|
|
60
73
|
const uLinkProps = {
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.1",
|
|
4
4
|
"repository": "nuxt/ui",
|
|
5
5
|
"homepage": "https://ui.nuxt.com",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
@@ -32,27 +33,27 @@
|
|
|
32
33
|
"test": "vitest"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@egoist/tailwindcss-icons": "^1.7.
|
|
36
|
+
"@egoist/tailwindcss-icons": "^1.7.4",
|
|
36
37
|
"@headlessui/tailwindcss": "^0.2.0",
|
|
37
|
-
"@headlessui/vue": "1.7.
|
|
38
|
-
"@iconify-json/heroicons": "^1.1.
|
|
39
|
-
"@nuxt/kit": "^3.
|
|
38
|
+
"@headlessui/vue": "^1.7.19",
|
|
39
|
+
"@iconify-json/heroicons": "^1.1.20",
|
|
40
|
+
"@nuxt/kit": "^3.10.3",
|
|
40
41
|
"@nuxtjs/color-mode": "^3.3.2",
|
|
41
|
-
"@nuxtjs/tailwindcss": "^6.11.
|
|
42
|
+
"@nuxtjs/tailwindcss": "^6.11.4",
|
|
42
43
|
"@popperjs/core": "^2.11.8",
|
|
43
44
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
44
45
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
45
46
|
"@tailwindcss/forms": "^0.5.7",
|
|
46
47
|
"@tailwindcss/typography": "^0.5.10",
|
|
47
|
-
"@vueuse/core": "^10.
|
|
48
|
-
"@vueuse/integrations": "^10.
|
|
49
|
-
"@vueuse/math": "^10.
|
|
48
|
+
"@vueuse/core": "^10.8.0",
|
|
49
|
+
"@vueuse/integrations": "^10.8.0",
|
|
50
|
+
"@vueuse/math": "^10.8.0",
|
|
50
51
|
"defu": "^6.1.4",
|
|
51
52
|
"fuse.js": "^6.6.2",
|
|
52
53
|
"nuxt-icon": "^0.6.8",
|
|
53
54
|
"ohash": "^1.1.3",
|
|
54
55
|
"pathe": "^1.1.2",
|
|
55
|
-
"scule": "^1.
|
|
56
|
+
"scule": "^1.3.0",
|
|
56
57
|
"tailwind-merge": "^2.2.1",
|
|
57
58
|
"tailwindcss": "^3.4.1"
|
|
58
59
|
},
|
|
@@ -63,23 +64,24 @@
|
|
|
63
64
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
64
65
|
"@vue/test-utils": "^2.4.4",
|
|
65
66
|
"eslint": "^8.56.0",
|
|
66
|
-
"happy-dom": "^13.
|
|
67
|
-
"joi": "^17.
|
|
68
|
-
"nuxt": "^3.
|
|
69
|
-
"release-it": "^17.
|
|
67
|
+
"happy-dom": "^13.4.1",
|
|
68
|
+
"joi": "^17.12.2",
|
|
69
|
+
"nuxt": "^3.10.3",
|
|
70
|
+
"release-it": "^17.1.1",
|
|
70
71
|
"typescript": "^5.3.3",
|
|
71
72
|
"unbuild": "^2.0.0",
|
|
72
|
-
"valibot": "^0.
|
|
73
|
-
"vitest": "^1.
|
|
73
|
+
"valibot": "^0.29.0",
|
|
74
|
+
"vitest": "^1.3.1",
|
|
74
75
|
"vitest-environment-nuxt": "^1.0.0",
|
|
75
76
|
"vue-tsc": "^1.8.27",
|
|
76
77
|
"yup": "^1.3.3",
|
|
77
78
|
"zod": "^3.22.4"
|
|
78
79
|
},
|
|
79
80
|
"resolutions": {
|
|
80
|
-
"@nuxt/kit": "3.
|
|
81
|
-
"@nuxt/schema": "3.
|
|
81
|
+
"@nuxt/kit": "3.10.3",
|
|
82
|
+
"@nuxt/schema": "3.10.3",
|
|
82
83
|
"tailwindcss": "3.4.1",
|
|
83
|
-
"vue": "
|
|
84
|
+
"@headlessui/vue": "1.7.19",
|
|
85
|
+
"vue": "3.4.19"
|
|
84
86
|
}
|
|
85
87
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function uid(): string;
|