@milaboratories/uikit 2.2.55 → 2.2.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/CHANGELOG.md +6 -0
- package/dist/pl-uikit.js +984 -984
- package/dist/pl-uikit.js.map +1 -1
- package/dist/pl-uikit.umd.cjs +4 -4
- package/dist/pl-uikit.umd.cjs.map +1 -1
- package/dist/src/components/PlAccordion/PlAccordionSection.vue.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/assets/mixins.scss +1 -2
- package/src/assets/variables.scss +3 -0
- package/src/components/PlAccordion/ExpandTransition.vue +1 -1
- package/src/components/PlAccordion/PlAccordionSection.vue +22 -15
- package/src/components/PlBtnGroup/pl-btn-group.scss +2 -2
- package/src/components/PlSlideModal/pl-slide-modal.scss +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/uikit",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.56",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/pl-uikit.umd.js",
|
|
6
6
|
"module": "dist/pl-uikit.js",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"yarpm": "^1.2.0",
|
|
35
35
|
"svgo": "^3.3.2",
|
|
36
36
|
"@types/d3": "^7.4.3",
|
|
37
|
-
"@milaboratories/
|
|
37
|
+
"@milaboratories/helpers": "^1.6.11",
|
|
38
38
|
"@platforma-sdk/model": "^1.22.18",
|
|
39
|
-
"@milaboratories/
|
|
39
|
+
"@milaboratories/eslint-config": "^1.0.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "vite",
|
package/src/assets/mixins.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
const onStart = (el: Element) => {
|
|
3
|
-
(el as HTMLElement).style.setProperty('--component-height', el.scrollHeight + 'px');
|
|
4
3
|
el.classList.add('expand-collapse-fix');
|
|
4
|
+
(el as HTMLElement).style.setProperty('--component-height', el.scrollHeight + 'px');
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
const onAfter = (el: Element) => {
|
|
@@ -50,28 +50,35 @@ defineProps<{
|
|
|
50
50
|
</script>
|
|
51
51
|
|
|
52
52
|
<template>
|
|
53
|
-
<
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
<div class="pl-accordion-section">
|
|
54
|
+
<PlSectionSeparator :class="$style.separator" :compact="compact" @click="open = !open">
|
|
55
|
+
<PlMaskIcon16 name="chevron-right" :class="[{ [$style.down]: open }, $style.chevron]" />
|
|
56
|
+
{{ label }}
|
|
57
|
+
</PlSectionSeparator>
|
|
58
|
+
<ExpandTransition>
|
|
59
|
+
<div v-if="open" :class="$style.content">
|
|
60
|
+
<slot />
|
|
61
|
+
</div>
|
|
62
|
+
</ExpandTransition>
|
|
63
|
+
</div>
|
|
62
64
|
</template>
|
|
63
65
|
|
|
64
66
|
<style module>
|
|
65
67
|
.content {
|
|
66
68
|
display: flex;
|
|
67
69
|
flex-direction: column;
|
|
68
|
-
gap:
|
|
70
|
+
gap: var(--gap-v);
|
|
69
71
|
will-change: height, opacity;
|
|
70
|
-
transform: translateZ(0);
|
|
71
|
-
backface-visibility: hidden;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
/* transform: translateZ(0);
|
|
73
|
+
backface-visibility: hidden; */
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.content > *:first-child {
|
|
77
|
+
margin-top: 24px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.content > *:last-child {
|
|
81
|
+
margin-bottom: 4px;
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
.separator:hover {
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
.pl-btn-group {
|
|
4
4
|
--pl-btn-group-height: 40px;
|
|
5
|
-
box-sizing:
|
|
5
|
+
box-sizing: border-box;
|
|
6
6
|
position: relative;
|
|
7
|
-
min-height: var(--pl-btn-group-height);
|
|
8
7
|
font-family: var(--control-font-family);
|
|
9
8
|
|
|
10
9
|
label {
|
|
@@ -26,6 +25,7 @@
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.inner-border {
|
|
28
|
+
height: var(--pl-btn-group-height);
|
|
29
29
|
min-height: var(--pl-btn-group-height);
|
|
30
30
|
|
|
31
31
|
&::after {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
font-size: 28px;
|
|
56
56
|
font-style: normal;
|
|
57
57
|
font-weight: 500;
|
|
58
|
-
line-height:
|
|
58
|
+
line-height: 40px;
|
|
59
59
|
/* 114.286% */
|
|
60
60
|
letter-spacing: -0.56px;
|
|
61
61
|
padding: 24px;
|
|
@@ -91,9 +91,10 @@
|
|
|
91
91
|
display: flex;
|
|
92
92
|
flex-direction: column;
|
|
93
93
|
gap: 24px;
|
|
94
|
-
padding: 16px 24px;
|
|
94
|
+
padding: 16px calc(24px - var(--scrollbar-width)) 16px 24px;
|
|
95
95
|
margin: 0 0;
|
|
96
96
|
@include scrollbar(true);
|
|
97
|
+
scrollbar-gutter: stable;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
&__shadow {
|