@una-ui/nuxt 0.14.0-beta.2 → 0.15.0-beta.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.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/elements/Link.vue +1 -1
- package/dist/runtime/components/elements/Link.vue.d.ts +3 -3
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +3 -3
- package/dist/runtime/components/forms/select/SelectTrigger.vue +3 -3
- package/dist/runtime/components/slots/AvatarGroupDefault.d.ts +7 -11
- package/dist/runtime/components/slots/FormGroupDefault.d.ts +7 -13
- package/dist/runtime/components/slots/FormGroupLabel.d.ts +6 -12
- package/dist/runtime/utils/index.js +2 -1
- package/package.json +5 -4
- package/playground/.nuxt/components.d.ts +1188 -1304
- package/playground/.nuxt/imports.d.ts +1 -1
- package/playground/.nuxt/nuxt.d.ts +1 -1
- package/playground/.nuxt/types/imports.d.ts +762 -762
- package/playground/.nuxt/types/nitro-imports.d.ts +5 -5
- package/playground/.nuxt/types/nitro-routes.d.ts +1 -1
- package/playground/.nuxt/types/plugins.d.ts +11 -11
- package/playground/.nuxt/types/schema.d.ts +2 -2
- package/playground/node_modules/.vue-global-types/{vue_3.4_false.d.ts → vue_3.5_false.d.ts} +1 -1
- package/playground/.nuxt/types/layouts.d.ts +0 -7
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -77,7 +77,7 @@ export default defineComponent({
|
|
|
77
77
|
|
|
78
78
|
<template>
|
|
79
79
|
<NuxtLink
|
|
80
|
-
v-slot="{ route, href, target, rel, navigate, isActive, isExactActive, isExternal }"
|
|
80
|
+
v-slot="{ route, href, target, rel, navigate, isActive, isExactActive, isExternal, exact }"
|
|
81
81
|
v-bind="$props"
|
|
82
82
|
custom
|
|
83
83
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
resolveLinkClass: (route: any, $route: any, { isActive, isExactActive }: {
|
|
3
3
|
isActive: boolean;
|
|
4
4
|
isExactActive: boolean;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<any, {
|
|
|
11
11
|
isActive: boolean;
|
|
12
12
|
isExactActive: boolean;
|
|
13
13
|
}) => any;
|
|
14
|
-
},
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {} | {
|
|
15
15
|
[x: string]: any;
|
|
16
|
-
}, {}>;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
|
|
17
17
|
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { DropdownMenuTrigger, useForwardProps } from 'radix-vue'
|
|
3
3
|
import Button from '../Button.vue'
|
|
4
|
-
import { cn } from '../../../utils'
|
|
4
|
+
import { cn, randomId } from '../../../utils'
|
|
5
5
|
import type { NDropdownMenuTriggerProps } from '../../../types'
|
|
6
6
|
|
|
7
|
-
const props =
|
|
8
|
-
})
|
|
7
|
+
const props = defineProps<NDropdownMenuTriggerProps>()
|
|
9
8
|
|
|
10
9
|
const forwardedProps = useForwardProps(props)
|
|
11
10
|
</script>
|
|
@@ -16,6 +15,7 @@ const forwardedProps = useForwardProps(props)
|
|
|
16
15
|
>
|
|
17
16
|
<Button
|
|
18
17
|
v-bind="forwardedProps"
|
|
18
|
+
:id="randomId('dropdown-menu-trigger')"
|
|
19
19
|
:class="cn(
|
|
20
20
|
'dropdown-menu-trigger justify-start font-normal',
|
|
21
21
|
props.class,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { SelectTrigger, useForwardProps } from 'radix-vue'
|
|
4
|
-
import { cn } from '../../../utils'
|
|
4
|
+
import { cn, randomId } from '../../../utils'
|
|
5
5
|
import type { NSelectTriggerProps } from '../../../types'
|
|
6
6
|
import Button from '../../elements/Button.vue'
|
|
7
7
|
|
|
8
|
-
const props =
|
|
9
|
-
})
|
|
8
|
+
const props = defineProps<NSelectTriggerProps>()
|
|
10
9
|
|
|
11
10
|
const delegatedProps = computed(() => {
|
|
12
11
|
const { class: _, ...delegated } = props
|
|
@@ -55,6 +54,7 @@ const statusClassVariants = computed(() => {
|
|
|
55
54
|
>
|
|
56
55
|
<Button
|
|
57
56
|
v-bind="forwardedProps"
|
|
57
|
+
:id="randomId('select-trigger')"
|
|
58
58
|
:class="cn(
|
|
59
59
|
'select-trigger justify-between font-normal',
|
|
60
60
|
props.class,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType, VNode } from 'vue';
|
|
2
2
|
import type { NAvatarGroupProps } from '../../types.js';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
max: {
|
|
5
5
|
type: NumberConstructor;
|
|
6
6
|
required: true;
|
|
@@ -8,15 +8,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
avatar: {
|
|
9
9
|
type: PropType<NAvatarGroupProps>;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, (() => null) | (() => (VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
12
|
[key: string]: any;
|
|
13
|
-
}> | null)[]),
|
|
14
|
-
max:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
avatar: {
|
|
19
|
-
type: PropType<NAvatarGroupProps>;
|
|
20
|
-
};
|
|
21
|
-
}>>, {}, {}>;
|
|
13
|
+
}> | null)[]), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
14
|
+
max: number;
|
|
15
|
+
} & {
|
|
16
|
+
avatar?: NAvatarGroupProps | undefined;
|
|
17
|
+
} & {}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
|
|
22
18
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
id: {
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
required: true;
|
|
@@ -9,17 +9,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
validator: (v: string) => boolean;
|
|
10
10
|
required: false;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, (() => null) | (() => VNode<unknown, unknown, {
|
|
13
13
|
[key: string]: any;
|
|
14
|
-
}>[]),
|
|
15
|
-
id:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
status: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
validator: (v: string) => boolean;
|
|
22
|
-
required: false;
|
|
23
|
-
};
|
|
24
|
-
}>>, {}, {}>;
|
|
14
|
+
}>[]), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
15
|
+
id: string;
|
|
16
|
+
} & {
|
|
17
|
+
status?: string | undefined;
|
|
18
|
+
} & {}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
|
|
25
19
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { NFormGroupProps } from '../../types.js';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
for: {
|
|
5
5
|
type: PropType<NFormGroupProps["for"]>;
|
|
6
6
|
required: false;
|
|
@@ -9,16 +9,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
type: PropType<NFormGroupProps["id"]>;
|
|
10
10
|
required: false;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
13
13
|
[key: string]: any;
|
|
14
|
-
}> | undefined,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
id: {
|
|
20
|
-
type: PropType<NFormGroupProps["id"]>;
|
|
21
|
-
required: false;
|
|
22
|
-
};
|
|
23
|
-
}>>, {}, {}>;
|
|
14
|
+
}> | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{} & {
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
for?: string | boolean | undefined;
|
|
17
|
+
} & {}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
|
|
24
18
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useId } from "vue";
|
|
1
2
|
export * from "./cn.js";
|
|
2
3
|
export function rgbToHex(r, g, b) {
|
|
3
4
|
return `#${[r, g, b].map((x) => {
|
|
@@ -16,7 +17,7 @@ export function hexToRgb(hex) {
|
|
|
16
17
|
];
|
|
17
18
|
}
|
|
18
19
|
export function randomId(prefix) {
|
|
19
|
-
return `una-${prefix}-${
|
|
20
|
+
return `una-${prefix}-${useId()}`;
|
|
20
21
|
}
|
|
21
22
|
export function omitProps(obj, propsToOmit) {
|
|
22
23
|
const newObj = { ...obj };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.0-beta.1",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,13 +49,14 @@
|
|
|
49
49
|
"typescript": "^5.5.4",
|
|
50
50
|
"unocss": "^0.62.2",
|
|
51
51
|
"unocss-preset-animations": "^1.1.0",
|
|
52
|
-
"@una-ui/extractor-vue-script": "^0.
|
|
53
|
-
"@una-ui/preset": "^0.
|
|
52
|
+
"@una-ui/extractor-vue-script": "^0.15.0-beta.1",
|
|
53
|
+
"@una-ui/preset": "^0.15.0-beta.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@nuxt/module-builder": "^0.8.1",
|
|
57
57
|
"@nuxt/schema": "^3.12.4",
|
|
58
|
-
"nuxt": "^3.12.4"
|
|
58
|
+
"nuxt": "^3.12.4",
|
|
59
|
+
"vue": "3.5.0"
|
|
59
60
|
},
|
|
60
61
|
"publishConfig": {
|
|
61
62
|
"access": "public"
|