@milaboratories/uikit 2.2.8 → 2.2.9

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.8",
3
+ "version": "2.2.9",
4
4
  "type": "module",
5
5
  "main": "dist/pl-uikit.umd.js",
6
6
  "module": "dist/pl-uikit.js",
@@ -32,8 +32,8 @@
32
32
  "vue-tsc": "^2.1.6",
33
33
  "yarpm": "^1.2.0",
34
34
  "svgo": "^3.3.2",
35
- "@platforma-sdk/model": "^1.10.12",
36
- "@milaboratories/helpers": "^1.6.6"
35
+ "@milaboratories/helpers": "^1.6.6",
36
+ "@platforma-sdk/model": "^1.10.12"
37
37
  },
38
38
  "scripts": {
39
39
  "dev": "vite",
@@ -155,15 +155,6 @@ body {
155
155
  font-family: var(--font-family-base);
156
156
  }
157
157
 
158
- /// @TODO
159
- .space-keeper {
160
- position: absolute;
161
- top: 0;
162
- left: 0;
163
- right: 0;
164
- bottom: 0;
165
- }
166
-
167
158
  .base-form {
168
159
  display: flex;
169
160
  flex-direction: column;
@@ -98,10 +98,9 @@
98
98
  &::-webkit-scrollbar-thumb {
99
99
  background: var(--thumb-color);
100
100
  border-radius: 5px;
101
- }
102
-
103
- &:hover {
104
- --thumb-color: var(--border-color-focus);
101
+ &:hover {
102
+ --thumb-color: var(--border-color-focus);
103
+ }
105
104
  }
106
105
  }
107
106
 
@@ -61,7 +61,7 @@ const normalizedOptions = computed(() =>
61
61
  </script>
62
62
 
63
63
  <template>
64
- <div class="ui-btn-group" :class="{ disabled }">
64
+ <div class="pl-btn-group" :class="{ disabled }">
65
65
  <label v-if="label">
66
66
  <span>{{ label }}</span>
67
67
  <PlTooltip v-if="slots.tooltip" class="info" position="top">
@@ -70,11 +70,11 @@ const normalizedOptions = computed(() =>
70
70
  </template>
71
71
  </PlTooltip>
72
72
  </label>
73
- <InnerBorder class="ui-btn-group__container">
73
+ <InnerBorder class="pl-btn-group__container">
74
74
  <div
75
75
  v-for="(opt, i) in normalizedOptions"
76
76
  :key="i"
77
- class="ui-btn-group__option text-s"
77
+ class="pl-btn-group__option text-s"
78
78
  :tabindex="modelValue === opt.value || disabled ? undefined : 0"
79
79
  :class="{ active: modelValue === opt.value }"
80
80
  @keydown.enter="emitModel(opt.value)"
@@ -83,7 +83,7 @@ const normalizedOptions = computed(() =>
83
83
  {{ opt.label }}
84
84
  </div>
85
85
  </InnerBorder>
86
- <div v-if="helper" class="ui-btn-group__helper">{{ helper }}</div>
87
- <div v-else-if="error" class="ui-btn-group__error">{{ error }}</div>
86
+ <div v-if="helper" class="pl-btn-group__helper">{{ helper }}</div>
87
+ <div v-else-if="error" class="pl-btn-group__error">{{ error }}</div>
88
88
  </div>
89
89
  </template>
@@ -1,9 +1,10 @@
1
1
  @import "@/assets/mixins";
2
2
 
3
- .ui-btn-group {
3
+ .pl-btn-group {
4
+ --pl-btn-group-height: 40px;
4
5
  box-sizing: content-box;
5
6
  position: relative;
6
- min-height: 40px;
7
+ min-height: var(--pl-btn-group-height);
7
8
  font-family: var(--control-font-family);
8
9
 
9
10
  label {
@@ -25,7 +26,7 @@
25
26
  }
26
27
 
27
28
  .inner-border {
28
- min-height: 40px;
29
+ min-height: var(--pl-btn-group-height);
29
30
 
30
31
  &::after {
31
32
  border: 1px solid var(--color-border-default);
@@ -82,7 +83,7 @@
82
83
  }
83
84
  }
84
85
 
85
- &:not(.active)+.ui-btn-group__option:not(.active) {
86
+ &:not(.active)+.pl-btn-group__option:not(.active) {
86
87
  &::before {
87
88
  content: '';
88
89
  position: absolute;