@policystudio/policy-studio-ui-vue 1.1.90-beta.76 → 1.1.90-beta.78
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.
|
@@ -4017,19 +4017,10 @@ video {
|
|
|
4017
4017
|
z-index: 50;
|
|
4018
4018
|
}
|
|
4019
4019
|
.psui-el-dropdown-menu-dialog-wrapper {
|
|
4020
|
-
|
|
4021
|
-
}
|
|
4022
|
-
.psui-el-dropdown-menu-dialog-wrapper {
|
|
4023
|
-
border-radius: 0.375rem;
|
|
4024
|
-
}
|
|
4025
|
-
.psui-el-dropdown-menu-dialog-wrapper {
|
|
4026
|
-
--tw-bg-opacity: 1;
|
|
4027
|
-
background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
|
|
4020
|
+
height: auto;
|
|
4028
4021
|
}
|
|
4029
4022
|
.psui-el-dropdown-menu-dialog-wrapper {
|
|
4030
|
-
|
|
4031
|
-
--tw-shadow-colored: 0px 0px 8px var(--tw-shadow-color), 0px 5px 6px var(--tw-shadow-color);
|
|
4032
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);
|
|
4023
|
+
overflow: auto;
|
|
4033
4024
|
}
|
|
4034
4025
|
|
|
4035
4026
|
.psui-el-dropdown-menu-list {
|
|
@@ -6330,6 +6321,10 @@ video {
|
|
|
6330
6321
|
justify-self: center;
|
|
6331
6322
|
}
|
|
6332
6323
|
|
|
6324
|
+
.psui-rounded {
|
|
6325
|
+
border-radius: 0.25rem;
|
|
6326
|
+
}
|
|
6327
|
+
|
|
6333
6328
|
.psui-rounded-md {
|
|
6334
6329
|
border-radius: 0.375rem;
|
|
6335
6330
|
}
|
|
@@ -6374,6 +6369,11 @@ video {
|
|
|
6374
6369
|
background-color: rgb(214, 92, 90, var(--tw-bg-opacity, 1));
|
|
6375
6370
|
}
|
|
6376
6371
|
|
|
6372
|
+
.psui-bg-white {
|
|
6373
|
+
--tw-bg-opacity: 1;
|
|
6374
|
+
background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6377
6377
|
.psui-bg-yellow-20 {
|
|
6378
6378
|
--tw-bg-opacity: 1;
|
|
6379
6379
|
background-color: rgb(237, 171, 62, var(--tw-bg-opacity, 1));
|
|
@@ -6519,6 +6519,12 @@ video {
|
|
|
6519
6519
|
opacity: 0.75;
|
|
6520
6520
|
}
|
|
6521
6521
|
|
|
6522
|
+
.psui-shadow-elevation-20 {
|
|
6523
|
+
--tw-shadow: 0px 0px 8px rgba(0, 0, 0, 0.04), 0px 5px 6px rgba(0, 0, 0, 0.1);
|
|
6524
|
+
--tw-shadow-colored: 0px 0px 8px var(--tw-shadow-color), 0px 5px 6px var(--tw-shadow-color);
|
|
6525
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);
|
|
6526
|
+
}
|
|
6527
|
+
|
|
6522
6528
|
.psui-transition {
|
|
6523
6529
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
6524
6530
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
package/package.json
CHANGED
|
@@ -34,13 +34,12 @@
|
|
|
34
34
|
ref="PSDropdownFloating"
|
|
35
35
|
role="menu"
|
|
36
36
|
class="psui-el-dropdown-menu-dialog-wrapper"
|
|
37
|
+
:class="contentCss"
|
|
37
38
|
aria-orientation="vertical"
|
|
38
39
|
:style="floatingStyles"
|
|
39
40
|
v-click-outside="close"
|
|
40
41
|
>
|
|
41
|
-
<
|
|
42
|
-
<slot name="items" />
|
|
43
|
-
</div>
|
|
42
|
+
<slot name="items" />
|
|
44
43
|
</div>
|
|
45
44
|
</Transition>
|
|
46
45
|
</Teleport>
|
|
@@ -65,9 +64,17 @@ const props = defineProps({
|
|
|
65
64
|
disabled: {type: Boolean, default: false},
|
|
66
65
|
placement: { type: String, default: 'bottom-start' },
|
|
67
66
|
offsetVal: { type: Number, default: 4 },
|
|
68
|
-
|
|
69
|
-
type: Number,
|
|
67
|
+
width: {
|
|
68
|
+
type: [Number, String],
|
|
70
69
|
default: null
|
|
70
|
+
},
|
|
71
|
+
height: {
|
|
72
|
+
type: [Number, String],
|
|
73
|
+
default: 'auto'
|
|
74
|
+
},
|
|
75
|
+
contentCss: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'psui-rounded psui-bg-white psui-shadow-elevation-20'
|
|
71
78
|
}
|
|
72
79
|
})
|
|
73
80
|
|
|
@@ -87,10 +94,10 @@ const { floatingStyles } = useFloating(PSDropdownTrigger, PSDropdownFloating, {
|
|
|
87
94
|
shift(),
|
|
88
95
|
size({
|
|
89
96
|
apply({rects, elements}) {
|
|
90
|
-
const customWidth = props.
|
|
97
|
+
const customWidth = props.width ?? rects.reference.width
|
|
91
98
|
Object.assign(elements.floating.style, {
|
|
92
99
|
width: `${customWidth}px`,
|
|
93
|
-
|
|
100
|
+
...(typeof height == 'string' ? {maxHeight: props.height} : {maxHeight : `${props.height}px`})
|
|
94
101
|
})
|
|
95
102
|
},
|
|
96
103
|
})
|