@personizely/ui 0.0.55 → 0.0.56
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/personizely-ui.css +1 -1
- package/dist/personizely-ui.js +292 -282
- package/dist/personizely-ui.umd.cjs +8 -8
- package/package.json +1 -1
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +3 -0
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +3 -1
- package/src/components/ui/dropdown-menu/DropdownMenuPart.vue +9 -5
- package/web-types.json +9 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@personizely/ui",
|
|
3
3
|
"web-types": "./web-types.json",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.56",
|
|
5
5
|
"description": "Personizely UI is a Vue.js UI library with a simple API, based on Reka UI, inspired by shadcn-vue and Keen UI.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/personizely-ui.js",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
<template v-for="(item, index) in items" :key="index">
|
|
23
23
|
<DropdownMenuPart :item="item" @select="$emit('select', $event)">
|
|
24
|
+
<template v-if="$slots['group-action']" #group-action="{ item }">
|
|
25
|
+
<slot name="group-action" v-bind="{ item }" />
|
|
26
|
+
</template>
|
|
24
27
|
<template v-if="$slots['item-icon']" #item-icon="{ item }">
|
|
25
28
|
<slot name="item-icon" v-bind="{ item }" />
|
|
26
29
|
</template>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
|
-
import { type HTMLAttributes, computed } from 'vue'
|
|
13
|
+
import { type HTMLAttributes, computed, provide } from 'vue'
|
|
14
14
|
import {
|
|
15
15
|
DropdownMenuContent,
|
|
16
16
|
type DropdownMenuContentEmits,
|
|
@@ -34,4 +34,6 @@ const delegatedProps = computed(() => {
|
|
|
34
34
|
|
|
35
35
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
36
36
|
const options = getOptions()
|
|
37
|
+
|
|
38
|
+
provide('hasDropdown', false)
|
|
37
39
|
</script>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<template v-if="'items' in item">
|
|
3
3
|
<template v-if="item.label">
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<div class="flex items-center justify-between">
|
|
5
|
+
<DropdownMenuLabel>
|
|
6
|
+
<slot name="label" v-bind="{ item }">
|
|
7
|
+
{{ item.label }}
|
|
8
|
+
</slot>
|
|
9
|
+
</DropdownMenuLabel>
|
|
10
|
+
<slot name="group-action" v-bind="{ item }" />
|
|
11
|
+
</div>
|
|
9
12
|
<DropdownMenuSeparator />
|
|
10
13
|
</template>
|
|
11
14
|
<DropdownMenuGroup>
|
|
@@ -57,6 +60,7 @@ defineEmits<{
|
|
|
57
60
|
|
|
58
61
|
defineSlots<{
|
|
59
62
|
'label'(props: { item: MenuGroupItem }): any
|
|
63
|
+
'group-action'(props: { item: MenuGroupItem }): any
|
|
60
64
|
'item-icon'(props: { item: MenuItem }): any
|
|
61
65
|
'item-label'(props: { item: MenuItem }): any
|
|
62
66
|
'item-help'(props: { item: MenuItem }): any
|
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@personizely/ui",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.56",
|
|
6
6
|
"description-markup": "none",
|
|
7
7
|
"js-types-syntax": "typescript",
|
|
8
8
|
"contributions": {
|
|
@@ -5170,6 +5170,10 @@
|
|
|
5170
5170
|
"name": "label",
|
|
5171
5171
|
"description": ""
|
|
5172
5172
|
},
|
|
5173
|
+
{
|
|
5174
|
+
"name": "group-action",
|
|
5175
|
+
"description": ""
|
|
5176
|
+
},
|
|
5173
5177
|
{
|
|
5174
5178
|
"name": "item-icon",
|
|
5175
5179
|
"description": ""
|
|
@@ -5298,6 +5302,10 @@
|
|
|
5298
5302
|
"name": "label",
|
|
5299
5303
|
"description": ""
|
|
5300
5304
|
},
|
|
5305
|
+
{
|
|
5306
|
+
"name": "group-action",
|
|
5307
|
+
"description": ""
|
|
5308
|
+
},
|
|
5301
5309
|
{
|
|
5302
5310
|
"name": "item-icon",
|
|
5303
5311
|
"description": ""
|