@una-ui/nuxt 0.43.0 → 0.44.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 +9 -2
- package/dist/runtime/components/elements/Link.vue.d.ts +1 -0
- package/dist/runtime/components/forms/select/SelectItem.vue +3 -1
- package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -6
- package/dist/runtime/types/link.d.ts +4 -0
- package/package.json +3 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -8,6 +8,10 @@ export default defineComponent({
|
|
|
8
8
|
props: {
|
|
9
9
|
...NuxtLink.props,
|
|
10
10
|
// config
|
|
11
|
+
label: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
11
15
|
exact: {
|
|
12
16
|
type: Boolean,
|
|
13
17
|
default: false
|
|
@@ -105,7 +109,8 @@ export default defineComponent({
|
|
|
105
109
|
resolveLinkClass,
|
|
106
110
|
resolveNavLinkActive,
|
|
107
111
|
resolveNavLinkInactive,
|
|
108
|
-
isLinkActive
|
|
112
|
+
isLinkActive,
|
|
113
|
+
label: props.label
|
|
109
114
|
};
|
|
110
115
|
}
|
|
111
116
|
});
|
|
@@ -127,7 +132,9 @@ export default defineComponent({
|
|
|
127
132
|
:nav-link-inactive="resolveNavLinkInactive(route, $route, { isActive, isExactActive })"
|
|
128
133
|
@click="(e) => !isExternal && navigate(e)"
|
|
129
134
|
>
|
|
130
|
-
<slot :active="isLinkActive({ route, isActive, isExactActive })"
|
|
135
|
+
<slot :active="isLinkActive({ route, isActive, isExactActive })">
|
|
136
|
+
{{ label }}
|
|
137
|
+
</slot>
|
|
131
138
|
</a>
|
|
132
139
|
</NuxtLink>
|
|
133
140
|
</template>
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
12
12
|
isExactActive: boolean;
|
|
13
13
|
}) => string | null;
|
|
14
14
|
isLinkActive: ({ route: linkRoute, isActive, isExactActive }: any) => any;
|
|
15
|
+
label: any;
|
|
15
16
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
16
17
|
[x: string]: any;
|
|
17
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -9,7 +9,9 @@ import { cn } from '../../../utils'
|
|
|
9
9
|
import SelectItemIndicator from './SelectItemIndicator.vue'
|
|
10
10
|
import SelectItemText from './SelectItemText.vue'
|
|
11
11
|
|
|
12
|
-
const props = withDefaults(defineProps<NSelectItemProps>(), {
|
|
12
|
+
const props = withDefaults(defineProps<NSelectItemProps>(), {
|
|
13
|
+
selectItem: 'gray',
|
|
14
|
+
})
|
|
13
15
|
|
|
14
16
|
const delegatedProps = computed(() => {
|
|
15
17
|
const { class: _, ...delegated } = props
|
|
@@ -58,11 +58,6 @@ const status = computed(() => props.status ?? 'default')
|
|
|
58
58
|
props.una?.btnLeading,
|
|
59
59
|
props.una?.selectTriggerLeading,
|
|
60
60
|
),
|
|
61
|
-
btnTrailing: cn(
|
|
62
|
-
'select-trigger-trailing rtl:mr-auto ltr:ml-auto',
|
|
63
|
-
props.una?.btnTrailing,
|
|
64
|
-
props.una?.selectTriggerTrailing,
|
|
65
|
-
),
|
|
66
61
|
btnDefaultVariant: statusClassVariants.btn,
|
|
67
62
|
}"
|
|
68
63
|
>
|
|
@@ -76,7 +71,7 @@ const status = computed(() => props.status ?? 'default')
|
|
|
76
71
|
:data-status="status"
|
|
77
72
|
:name="statusClassVariants.icon"
|
|
78
73
|
:class="cn(
|
|
79
|
-
'select-trigger-trailing',
|
|
74
|
+
'select-trigger-trailing rtl:mr-auto ltr:ml-auto',
|
|
80
75
|
props.una?.btnTrailing,
|
|
81
76
|
props.una?.selectTriggerTrailing,
|
|
82
77
|
)"
|
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.44.1",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"typescript": "5.6.3",
|
|
49
49
|
"unocss": "^66.0.0",
|
|
50
50
|
"unocss-preset-animations": "^1.1.1",
|
|
51
|
-
"@una-ui/
|
|
52
|
-
"@una-ui/
|
|
51
|
+
"@una-ui/extractor-vue-script": "^0.44.1",
|
|
52
|
+
"@una-ui/preset": "^0.44.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@iconify-json/lucide": "^1.2.30",
|