@una-ui/nuxt 0.44.0 → 0.44.2
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/dropdown-menu/DropdownMenu.vue +29 -27
- package/dist/runtime/components/forms/select/SelectItem.vue +3 -1
- package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -6
- package/package.json +4 -4
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -67,40 +67,42 @@ const [DefineMenuSub, ReuseMenuSub] = createReusableTemplate<NDropdownMenuProps>
|
|
|
67
67
|
/>
|
|
68
68
|
</template>
|
|
69
69
|
|
|
70
|
-
<slot name="
|
|
70
|
+
<slot name="group" :items>
|
|
71
71
|
<DropdownMenuGroup
|
|
72
72
|
:una="forwarded.una?.dropdownMenuGroup"
|
|
73
73
|
v-bind="forwarded._dropdownMenuGroup"
|
|
74
74
|
>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<slot
|
|
80
|
-
v-if="!item.items && item.label"
|
|
81
|
-
:name="`item-${item.label}`"
|
|
75
|
+
<slot name="items" :items>
|
|
76
|
+
<template
|
|
77
|
+
v-for="item in items"
|
|
78
|
+
:key="item.label"
|
|
82
79
|
>
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
<slot
|
|
81
|
+
v-if="!item.items && item.label"
|
|
82
|
+
:name="`item-${item.label}`"
|
|
83
|
+
>
|
|
84
|
+
<DropdownMenuItem
|
|
85
|
+
:size
|
|
86
|
+
:inset
|
|
87
|
+
:dropdown-menu-item
|
|
88
|
+
:una="forwarded.una?.dropdownMenuItem"
|
|
89
|
+
:_dropdown-menu-shortcut
|
|
90
|
+
v-bind="{ ...item, ...forwarded._dropdownMenuItem, ...item._dropdownMenuItem }"
|
|
91
|
+
/>
|
|
92
|
+
</slot>
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
<DropdownMenuSeparator
|
|
95
|
+
v-else-if="!item.label && !item.items"
|
|
96
|
+
:una="forwarded.una?.dropdownMenuSeparator"
|
|
97
|
+
v-bind="{ ...forwarded._dropdownMenuSeparator, ...item._dropdownMenuSeparator }"
|
|
98
|
+
/>
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
<ReuseMenuSub
|
|
101
|
+
v-else
|
|
102
|
+
v-bind="item"
|
|
103
|
+
/>
|
|
104
|
+
</template>
|
|
105
|
+
</slot>
|
|
104
106
|
</DropdownMenuGroup>
|
|
105
107
|
</slot>
|
|
106
108
|
</slot>
|
|
@@ -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.44.
|
|
4
|
+
"version": "0.44.2",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"typescript": "5.6.3",
|
|
49
49
|
"unocss": "^66.0.0",
|
|
50
50
|
"unocss-preset-animations": "^1.1.1",
|
|
51
|
-
"@una-ui/extractor-vue-script": "^0.44.
|
|
52
|
-
"@una-ui/preset": "^0.44.
|
|
51
|
+
"@una-ui/extractor-vue-script": "^0.44.2",
|
|
52
|
+
"@una-ui/preset": "^0.44.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@iconify-json/lucide": "^1.2.
|
|
55
|
+
"@iconify-json/lucide": "^1.2.32",
|
|
56
56
|
"@iconify-json/radix-icons": "^1.2.2",
|
|
57
57
|
"@iconify-json/tabler": "^1.2.17",
|
|
58
58
|
"@nuxt/module-builder": "^0.8.4",
|