@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/uikit",
3
- "version": "2.2.55",
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/eslint-config": "^1.0.1",
37
+ "@milaboratories/helpers": "^1.6.11",
38
38
  "@platforma-sdk/model": "^1.22.18",
39
- "@milaboratories/helpers": "^1.6.11"
39
+ "@milaboratories/eslint-config": "^1.0.1"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "vite",
@@ -96,9 +96,8 @@
96
96
  }
97
97
 
98
98
  &::-webkit-scrollbar {
99
- width: 6px;
99
+ width: var(--scrollbar-width, 6px);
100
100
  height: 5px;
101
- padding-right: 5px;
102
101
  background-color: transparent;
103
102
  display: block;
104
103
  }
@@ -73,6 +73,9 @@
73
73
  --z-dropdown-options: 110;
74
74
  --z-tooltip: 120;
75
75
  --z-context-menu: 1001;
76
+
77
+ // Base custom scrollbar width (see mixins)
78
+ --scrollbar-width: 6px;
76
79
  }
77
80
 
78
81
  [data-theme='dark'] {
@@ -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
- <PlSectionSeparator :class="$style.separator" :compact="compact" @click="open = !open">
54
- <PlMaskIcon16 name="chevron-right" :class="[{ [$style.down]: open }, $style.chevron]" />
55
- {{ label }}
56
- </PlSectionSeparator>
57
- <ExpandTransition>
58
- <div v-if="open" :class="$style.content">
59
- <slot />
60
- </div>
61
- </ExpandTransition>
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: inherit;
70
+ gap: var(--gap-v);
69
71
  will-change: height, opacity;
70
- transform: translateZ(0);
71
- backface-visibility: hidden;
72
- perspective: 1000px;
73
- margin-top: -8px;
74
- padding-top: 8px;
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: content-box;
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: 32px;
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 {