@personizely/ui 0.0.53 → 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 +2 -2
- package/dist/personizely-ui.js +20091 -16534
- package/dist/personizely-ui.umd.cjs +26 -26
- package/package.json +7 -7
- 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 +203 -115
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",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"class-variance-authority": "^0.7.0",
|
|
65
65
|
"clsx": "^2.1.0",
|
|
66
66
|
"deepmerge": "^2.0.1",
|
|
67
|
-
"lodash": "
|
|
67
|
+
"lodash": "4.17.23",
|
|
68
68
|
"lodash.debounce": "^4.0.8",
|
|
69
69
|
"lucide-vue-next": "^0.364.0",
|
|
70
70
|
"patch-package": "^8.0.0",
|
|
71
|
-
"reka-ui": "^2.
|
|
71
|
+
"reka-ui": "^2.7.0",
|
|
72
72
|
"tailwind-merge": "^2.5.5",
|
|
73
73
|
"tailwindcss-animate": "^1.0.7",
|
|
74
74
|
"vue-component-meta": "^2.1.2",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@eslint/js": "^9.17.0",
|
|
79
79
|
"@iconify/vue": "^4.2.0",
|
|
80
|
-
"@tailwindcss/postcss": "^4.
|
|
81
|
-
"@tailwindcss/vite": "^4.
|
|
80
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
81
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
82
82
|
"@vee-validate/rules": "^4.14.7",
|
|
83
83
|
"@vee-validate/zod": "^4.14.7",
|
|
84
|
-
"@vitejs/plugin-vue": "
|
|
84
|
+
"@vitejs/plugin-vue": "6.0.3",
|
|
85
85
|
"@vue/tsconfig": "^0.7.0",
|
|
86
86
|
"cross-env": "^7.0.3",
|
|
87
87
|
"eslint": "^9.17.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"typescript": "^5.7.2",
|
|
99
99
|
"typescript-eslint": "^8.18.1",
|
|
100
100
|
"vee-validate": "^4.14.7",
|
|
101
|
-
"vite": "
|
|
101
|
+
"vite": "7.1.11",
|
|
102
102
|
"vite-plugin-banner": "^0.8.0",
|
|
103
103
|
"vitepress": "^1.5.0",
|
|
104
104
|
"vue": "^3.5.13",
|
|
@@ -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
|