@milaboratories/uikit 2.2.7 → 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.7",
3
+ "version": "2.2.9",
4
4
  "type": "module",
5
5
  "main": "dist/pl-uikit.umd.js",
6
6
  "module": "dist/pl-uikit.js",
@@ -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;
@@ -16,6 +16,7 @@ import type { AnyLogHandle, Platforma, ValueOrErrors } from '@platforma-sdk/mode
16
16
  import { useLogHandle } from './useLogHandle';
17
17
  import { useLabelNotch } from '@/utils/useLabelNotch';
18
18
  import DoubleContour from '@/utils/DoubleContour.vue';
19
+ import { PlTooltip } from '../PlTooltip';
19
20
 
20
21
  const getOutputError = <T,>(o?: ValueOrErrors<T>) => {
21
22
  if (o && o.ok === false) {
@@ -115,7 +116,12 @@ const onContentScroll = (ev: Event) => {
115
116
  <div ref="root" class="pl-log-view" :class="{ 'has-error': computedError }">
116
117
  <label v-if="label"> {{ label }} </label>
117
118
  <DoubleContour class="pl-log-view__contour" />
118
- <PlMaskIcon24 title="Copy content" class="pl-log-view__copy" :name="iconName" @click="onClickCopy" />
119
+ <div class="pl-log-view__copy">
120
+ <PlTooltip :close-delay="800" position="top">
121
+ <PlMaskIcon24 title="Copy content" :name="iconName" @click="onClickCopy" />
122
+ <template #tooltip>{{ copyActive ? 'copied' : 'copy' }}</template>
123
+ </PlTooltip>
124
+ </div>
119
125
  <div v-if="computedError" class="pl-log-view__error">{{ computedError }}</div>
120
126
  <div v-else ref="contentRef" class="pl-log-view__content" @scroll="onContentScroll">{{ computedValue }}</div>
121
127
  </div>
@@ -46,11 +46,16 @@
46
46
  position: absolute;
47
47
  top: 12px;
48
48
  right: 12px;
49
- background-color: var(--ic-02);
50
49
  cursor: pointer;
51
50
 
51
+ .mask-24 {
52
+ background-color: var(--ic-02);
53
+ }
54
+
52
55
  &:hover {
53
- background-color: var(--txt-01);
56
+ .mask-24 {
57
+ background-color: var(--txt-01);
58
+ }
54
59
  }
55
60
  }
56
61