@milaboratories/uikit 2.2.18 → 2.2.20

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.18",
3
+ "version": "2.2.20",
4
4
  "type": "module",
5
5
  "main": "dist/pl-uikit.umd.js",
6
6
  "module": "dist/pl-uikit.js",
@@ -33,7 +33,7 @@
33
33
  "yarpm": "^1.2.0",
34
34
  "svgo": "^3.3.2",
35
35
  "@milaboratories/helpers": "^1.6.8",
36
- "@platforma-sdk/model": "^1.13.15"
36
+ "@platforma-sdk/model": "^1.14.1"
37
37
  },
38
38
  "scripts": {
39
39
  "dev": "vite",
@@ -23,7 +23,9 @@
23
23
 
24
24
  @if $h ==null {
25
25
  height: $w;
26
- } @else {
26
+ }
27
+
28
+ @else {
27
29
  height: $h;
28
30
  }
29
31
  }
@@ -34,7 +36,9 @@
34
36
 
35
37
  @if $h ==null {
36
38
  height: $w;
37
- } @else {
39
+ }
40
+
41
+ @else {
38
42
  height: $h;
39
43
  }
40
44
  }
@@ -46,7 +50,9 @@
46
50
 
47
51
  @if $h ==null {
48
52
  height: $w;
49
- } @else {
53
+ }
54
+
55
+ @else {
50
56
  height: $h;
51
57
  }
52
58
  }
@@ -64,7 +70,9 @@
64
70
 
65
71
  @if $h ==null {
66
72
  height: $w;
67
- } @else {
73
+ }
74
+
75
+ @else {
68
76
  height: $h;
69
77
  }
70
78
  }
@@ -98,6 +106,7 @@
98
106
  &::-webkit-scrollbar-thumb {
99
107
  background: var(--thumb-color);
100
108
  border-radius: 5px;
109
+
101
110
  &:hover {
102
111
  --thumb-color: var(--border-color-focus);
103
112
  }
@@ -143,7 +152,11 @@
143
152
  font-size: 12px;
144
153
  font-weight: 500;
145
154
 
146
- > span {
155
+ border-bottom-right-radius: 4px;
156
+ border-bottom-left-radius: 4px;
157
+ background: var(--bg-elevated-01);
158
+
159
+ >span {
147
160
  overflow: hidden;
148
161
  white-space: pre;
149
162
  text-overflow: ellipsis;
@@ -202,4 +215,4 @@
202
215
  border: 2px solid transparent;
203
216
  border-right: 1px solid transparent;
204
217
  }
205
- }
218
+ }
@@ -8,7 +8,7 @@ export default {
8
8
  import { useEventListener } from '@/composition/useEventListener';
9
9
  import './pl-dialog-modal.scss';
10
10
  import { ref, useAttrs, useSlots } from 'vue';
11
- import CloseModalBtn from '@/utils/CloseModalBtn.vue';
11
+ import PlCloseModalBtn from '@/utils/PlCloseModalBtn.vue';
12
12
 
13
13
  const slots = useSlots();
14
14
 
@@ -96,7 +96,7 @@ useEventListener(document.body, 'keyup', (ev) => {
96
96
  :class="{ 'has-title': slots.title, 'has-content': slots.default }"
97
97
  :style="{ width, height, minHeight, maxHeight }"
98
98
  >
99
- <CloseModalBtn v-if="closable" class="close-modal-btn" @click.stop="emit('update:modelValue', false)" />
99
+ <PlCloseModalBtn v-if="closable" class="close-modal-btn" @click.stop="emit('update:modelValue', false)" />
100
100
  <div v-if="slots.title" class="pl-dialog-modal__title">
101
101
  <slot name="title" />
102
102
  </div>
@@ -132,7 +132,7 @@
132
132
  padding: 0 60px 0 11px; // @TODO padding-right based on controls width
133
133
  pointer-events: none;
134
134
  line-height: var(--control-height);
135
- color: var(--contour-color);
135
+ color: var(--txt-01);
136
136
  overflow: hidden;
137
137
  white-space: pre;
138
138
  text-overflow: ellipsis;
@@ -254,5 +254,9 @@
254
254
  cursor: not-allowed;
255
255
  pointer-events: none;
256
256
  user-select: none;
257
+
258
+ .input-value {
259
+ color: var(--dis-01);
260
+ }
257
261
  }
258
262
  }
@@ -12,6 +12,7 @@
12
12
  --label-offset-right-x: 8px;
13
13
  --prefix-color: var(--color-placeholder);
14
14
  --icon-color: #000;
15
+ --contour-offset: 2px;
15
16
 
16
17
  width: 100%;
17
18
  height: var(--control-height, 40px);
@@ -70,6 +71,10 @@
70
71
  &:empty::before {
71
72
  color: var(--color-placeholder);
72
73
  content: attr(data-placeholder);
74
+ color: var(--txt-03);
75
+ font-size: 14px;
76
+ font-weight: 500;
77
+ line-height: 20px;
73
78
  }
74
79
  }
75
80
 
package/src/index.ts CHANGED
@@ -85,6 +85,12 @@ export { useFormState } from './composition/useFormState';
85
85
  export { useQuery } from './composition/useQuery.ts';
86
86
  export { useDraggable } from './composition/useDraggable';
87
87
 
88
+ /**
89
+ * Utils/Partials
90
+ */
91
+
92
+ export { default as PlCloseModalBtn } from './utils/PlCloseModalBtn.vue';
93
+
88
94
  /**
89
95
  * Technical
90
96
  * @TODO move it from here maybe