@nuxt/ui 2.18.4 → 2.18.6
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 +1 -1
- package/dist/module.d.mts +1 -6
- package/dist/module.d.ts +1 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +16 -8
- package/dist/runtime/components/data/Table.vue +8 -7
- package/dist/runtime/components/data/Table.vue.d.ts +2016 -12
- package/dist/runtime/components/elements/Accordion.vue.d.ts +1124 -10
- package/dist/runtime/components/elements/Alert.vue.d.ts +1449 -11
- package/dist/runtime/components/elements/Avatar.vue.d.ts +118 -10
- package/dist/runtime/components/elements/AvatarGroup.d.ts +12 -6
- package/dist/runtime/components/elements/Badge.vue.d.ts +45 -9
- package/dist/runtime/components/elements/Button.vue.d.ts +367 -14
- package/dist/runtime/components/elements/ButtonGroup.d.ts +107 -6
- package/dist/runtime/components/elements/Carousel.vue.d.ts +970 -10
- package/dist/runtime/components/elements/Chip.vue.d.ts +46 -9
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +784 -13
- package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Kbd.vue.d.ts +28 -9
- package/dist/runtime/components/elements/Link.vue +1 -0
- package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Meter.vue.d.ts +136 -11
- package/dist/runtime/components/elements/MeterGroup.d.ts +60 -6
- package/dist/runtime/components/elements/Progress.vue.d.ts +89 -12
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +33 -12
- package/dist/runtime/components/forms/Form.vue +4 -3
- package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +39 -11
- package/dist/runtime/components/forms/Input.vue +1 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +176 -14
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +957 -20
- package/dist/runtime/components/forms/Radio.vue.d.ts +32 -12
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +245 -14
- package/dist/runtime/components/forms/Range.vue.d.ts +79 -13
- package/dist/runtime/components/forms/Select.vue.d.ts +171 -12
- package/dist/runtime/components/forms/SelectMenu.vue +1 -1
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +1163 -19
- package/dist/runtime/components/forms/Textarea.vue +3 -0
- package/dist/runtime/components/forms/Textarea.vue.d.ts +129 -14
- package/dist/runtime/components/forms/Toggle.vue.d.ts +211 -12
- package/dist/runtime/components/layout/Card.vue.d.ts +35 -9
- package/dist/runtime/components/layout/Container.vue.d.ts +17 -9
- package/dist/runtime/components/layout/Divider.vue.d.ts +528 -11
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +17 -9
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +302 -9
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1971 -13
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +625 -5
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +898 -9
- package/dist/runtime/components/navigation/Pagination.vue +4 -0
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +981 -11
- package/dist/runtime/components/navigation/Tabs.vue +4 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +274 -14
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1666 -9
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +45 -12
- package/dist/runtime/components/overlays/Modal.vue +2 -2
- package/dist/runtime/components/overlays/Modal.vue.d.ts +392 -13
- package/dist/runtime/components/overlays/Notification.vue.d.ts +1459 -12
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +1746 -10
- package/dist/runtime/components/overlays/Popover.vue.d.ts +165 -14
- package/dist/runtime/components/overlays/Slideover.vue +3 -3
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +391 -13
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +168 -12
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useFormGroup.js +4 -2
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/usePopper.d.ts +262 -1
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +1 -1
- package/dist/runtime/composables/useUI.d.ts +2 -2
- package/dist/runtime/composables/useUI.js +1 -1
- package/dist/runtime/plugins/colors.js +3 -3
- package/dist/runtime/types/command-palette.d.ts +2 -2
- package/dist/runtime/ui.config/elements/button.js +9 -9
- package/dist/runtime/ui.config/elements/carousel.js +1 -1
- package/dist/runtime/ui.config/navigation/tabs.js +1 -1
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +5 -1
- package/package.json +27 -29
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
nextButton: {
|
|
21
21
|
color: "black",
|
|
22
22
|
class: "rtl:[&_span:last-child]:rotate-180 absolute right-4 top-1/2 transform -translate-y-1/2 rounded-full",
|
|
23
|
-
icon: "i-heroicons-chevron-right-20-solid
|
|
23
|
+
icon: "i-heroicons-chevron-right-20-solid"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Strategy } from '../types/index.js';
|
|
2
2
|
export declare function mergeConfig<T>(strategy: Strategy, ...configs: any[]): T;
|
|
3
|
+
export declare function parseConfigValue(value: string): string;
|
|
3
4
|
export declare function hexToRgb(hex: string): string;
|
|
4
5
|
export declare function getSlotsChildren(slots: any): any;
|
|
5
6
|
/**
|
|
@@ -34,12 +34,16 @@ export function mergeConfig(strategy, ...configs) {
|
|
|
34
34
|
}
|
|
35
35
|
return defuTwMerge({}, ...configs);
|
|
36
36
|
}
|
|
37
|
+
const rxHex = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;
|
|
38
|
+
export function parseConfigValue(value) {
|
|
39
|
+
return rxHex.test(value) ? hexToRgb(value) : value;
|
|
40
|
+
}
|
|
37
41
|
export function hexToRgb(hex) {
|
|
38
42
|
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
39
43
|
hex = hex.replace(shorthandRegex, function(_, r, g, b) {
|
|
40
44
|
return r + r + g + g + b + b;
|
|
41
45
|
});
|
|
42
|
-
const result =
|
|
46
|
+
const result = rxHex.exec(hex);
|
|
43
47
|
return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : null;
|
|
44
48
|
}
|
|
45
49
|
export function getSlotsChildren(slots) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
|
|
4
|
+
"version": "2.18.6",
|
|
5
|
+
"packageManager": "pnpm@9.11.0",
|
|
5
6
|
"repository": "nuxt/ui",
|
|
6
7
|
"homepage": "https://ui.nuxt.com",
|
|
7
8
|
"type": "module",
|
|
@@ -17,9 +18,6 @@
|
|
|
17
18
|
"files": [
|
|
18
19
|
"dist"
|
|
19
20
|
],
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=v16.20.2"
|
|
22
|
-
},
|
|
23
21
|
"scripts": {
|
|
24
22
|
"build": "nuxt-module-build build",
|
|
25
23
|
"prepack": "pnpm build",
|
|
@@ -28,58 +26,58 @@
|
|
|
28
26
|
"build:docs": "nuxi generate docs",
|
|
29
27
|
"lint": "eslint .",
|
|
30
28
|
"lint:fix": "eslint . --fix",
|
|
31
|
-
"typecheck": "vue-tsc --noEmit
|
|
29
|
+
"typecheck": "vue-tsc --noEmit",
|
|
32
30
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare docs",
|
|
33
31
|
"release": "release-it",
|
|
34
32
|
"test": "vitest"
|
|
35
33
|
},
|
|
36
34
|
"dependencies": {
|
|
37
35
|
"@headlessui/tailwindcss": "^0.2.1",
|
|
38
|
-
"@headlessui/vue": "^1.7.
|
|
39
|
-
"@iconify-json/heroicons": "^1.
|
|
40
|
-
"@nuxt/icon": "^1.
|
|
41
|
-
"@nuxt/kit": "^3.
|
|
42
|
-
"@nuxtjs/color-mode": "^3.
|
|
36
|
+
"@headlessui/vue": "^1.7.23",
|
|
37
|
+
"@iconify-json/heroicons": "^1.2.0",
|
|
38
|
+
"@nuxt/icon": "^1.5.1",
|
|
39
|
+
"@nuxt/kit": "^3.13.2",
|
|
40
|
+
"@nuxtjs/color-mode": "^3.5.1",
|
|
43
41
|
"@nuxtjs/tailwindcss": "^6.12.1",
|
|
44
42
|
"@popperjs/core": "^2.11.8",
|
|
45
43
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
46
44
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
47
|
-
"@tailwindcss/forms": "^0.5.
|
|
48
|
-
"@tailwindcss/typography": "^0.5.
|
|
49
|
-
"@vueuse/core": "^
|
|
50
|
-
"@vueuse/integrations": "^
|
|
51
|
-
"@vueuse/math": "^
|
|
45
|
+
"@tailwindcss/forms": "^0.5.9",
|
|
46
|
+
"@tailwindcss/typography": "^0.5.15",
|
|
47
|
+
"@vueuse/core": "^11.1.0",
|
|
48
|
+
"@vueuse/integrations": "^11.1.0",
|
|
49
|
+
"@vueuse/math": "^11.1.0",
|
|
52
50
|
"defu": "^6.1.4",
|
|
53
|
-
"fuse.js": "^
|
|
54
|
-
"ohash": "^1.1.
|
|
51
|
+
"fuse.js": "^7.0.0",
|
|
52
|
+
"ohash": "^1.1.4",
|
|
55
53
|
"pathe": "^1.1.2",
|
|
56
54
|
"scule": "^1.3.0",
|
|
57
|
-
"tailwind-merge": "^2.
|
|
58
|
-
"tailwindcss": "^3.4.
|
|
55
|
+
"tailwind-merge": "^2.5.2",
|
|
56
|
+
"tailwindcss": "^3.4.12"
|
|
59
57
|
},
|
|
60
58
|
"devDependencies": {
|
|
61
59
|
"@nuxt/eslint-config": "^0.4.0",
|
|
62
|
-
"@nuxt/module-builder": "^0.8.
|
|
63
|
-
"@nuxt/test-utils": "^3.14.
|
|
64
|
-
"@release-it/conventional-changelog": "^8.0.
|
|
60
|
+
"@nuxt/module-builder": "^0.8.4",
|
|
61
|
+
"@nuxt/test-utils": "^3.14.2",
|
|
62
|
+
"@release-it/conventional-changelog": "^8.0.2",
|
|
65
63
|
"@vue/test-utils": "^2.4.6",
|
|
66
64
|
"eslint": "^8.57.0",
|
|
67
65
|
"happy-dom": "^14.12.3",
|
|
68
66
|
"joi": "^17.13.3",
|
|
69
|
-
"nuxt": "^3.
|
|
67
|
+
"nuxt": "^3.13.2",
|
|
70
68
|
"release-it": "^17.6.0",
|
|
71
69
|
"unbuild": "^2.0.0",
|
|
72
|
-
"valibot": "^0.
|
|
70
|
+
"valibot": "^0.42.1",
|
|
73
71
|
"valibot30": "npm:valibot@0.30.0",
|
|
74
72
|
"valibot31": "npm:valibot@0.31.0",
|
|
75
|
-
"vitest": "^2.
|
|
76
|
-
"vitest-environment-nuxt": "^1.0.
|
|
77
|
-
"vue-tsc": "^2.
|
|
73
|
+
"vitest": "^2.1.1",
|
|
74
|
+
"vitest-environment-nuxt": "^1.0.1",
|
|
75
|
+
"vue-tsc": "^2.1.6",
|
|
78
76
|
"yup": "^1.4.0",
|
|
79
77
|
"zod": "^3.23.8"
|
|
80
78
|
},
|
|
81
79
|
"resolutions": {
|
|
82
80
|
"@nuxt/ui": "workspace:*",
|
|
83
|
-
"
|
|
81
|
+
"@nuxtjs/mdc": "0.9.0"
|
|
84
82
|
}
|
|
85
83
|
}
|