@webitel/ui-sdk 1.0.3 → 1.0.7

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": "@webitel/ui-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -101,6 +101,10 @@
101
101
  .wt-checkbox {
102
102
  @include width-fit-content;
103
103
  box-sizing: border-box;
104
+
105
+ .wt-label {
106
+ cursor: pointer;
107
+ }
104
108
  }
105
109
 
106
110
  .wt-checkbox__wrapper {
@@ -108,7 +112,6 @@
108
112
  display: flex;
109
113
  align-items: center;
110
114
  user-select: none;
111
- cursor: pointer;
112
115
 
113
116
  .wt-checkbox__checkmark {
114
117
  line-height: 0; // prevent icon height >> content
@@ -118,6 +121,7 @@
118
121
  .wt-checkbox__label {
119
122
  margin-left: var(--checkbox-icon-margin);
120
123
  transition: var(--transition);
124
+ cursor: pointer;
121
125
  }
122
126
 
123
127
  /* Hide the browser's default checkbox */
@@ -306,6 +306,7 @@ export default {
306
306
  top: 50%;
307
307
  right: var(--input-icon-margin);
308
308
  transform: translateY(-50%);
309
+ pointer-events: auto; // override --disabled p-events none
309
310
 
310
311
  .wt-input__password-button {
311
312
  .wt-input--disabled & ::v-deep .wt-icon__icon {
@@ -1,9 +1,11 @@
1
1
  <template>
2
- <div class="wt-popup">
2
+ <div
3
+ class="wt-popup"
4
+ :class="{ 'wt-popup--overflow': overflow }"
5
+ >
3
6
  <div class="wt-popup__shadow"></div>
4
7
  <aside
5
8
  class="wt-popup__popup"
6
- :class="{'wt-popup__popup--overflow': overflow}"
7
9
  :style="popupStyle"
8
10
  >
9
11
  <header class="wt-popup__header">
@@ -82,10 +84,6 @@ export default {
82
84
  border-radius: var(--border-radius);
83
85
  box-shadow: var(--elevation-10);
84
86
  z-index: 1;
85
-
86
- &--overflow {
87
- overflow: visible;
88
- }
89
87
  }
90
88
 
91
89
  .wt-popup__header {
@@ -125,4 +123,15 @@ export default {
125
123
  gap: var(--popup-actions-padding);
126
124
  padding: var(--popup-actions-padding);
127
125
  }
126
+
127
+ .wt-popup--overflow {
128
+ .wt-popup__popup {
129
+ overflow: visible;
130
+ }
131
+
132
+ .wt-popup__main {
133
+ overflow: visible;
134
+ padding-right: 0;
135
+ }
136
+ }
128
137
  </style>
@@ -81,6 +81,10 @@
81
81
  .wt-radio {
82
82
  @include width-fit-content;
83
83
  box-sizing: border-box;
84
+
85
+ .wt-label {
86
+ cursor: pointer;
87
+ }
84
88
  }
85
89
 
86
90
  .wt-radio__wrapper {
@@ -70,6 +70,10 @@
70
70
  @include width-fit-content;
71
71
  position: relative;
72
72
  box-sizing: border-box;
73
+
74
+ .wt-label {
75
+ cursor: pointer;
76
+ }
73
77
  }
74
78
 
75
79
  .wt-switcher__wrapper {
@@ -183,6 +183,11 @@ export default {
183
183
  z-index: var(--wt-app-header-content-z-index);
184
184
  display: flex;
185
185
  align-items: center;
186
+
187
+ ::v-deep .wt-icon-btn__tooltip {
188
+ left: 50%;
189
+ transform: translateX(-100%);
190
+ }
186
191
  }
187
192
 
188
193
  // dropdown part
@@ -198,7 +203,7 @@ export default {
198
203
  transition: var(--transition);
199
204
  border-radius: var(--border-radius);
200
205
  background: var(--wt-app-header-content-bg-color);
201
- box-shadow: var(--elevation-1);
206
+ box-shadow: var(--elevation-10);
202
207
  }
203
208
 
204
209
  .wt-app-navigator__nav-title {
@@ -26,7 +26,7 @@
26
26
  target="_blank"
27
27
  @click="close"
28
28
  >
29
- <wt-icon icon="docs" size="sm"></wt-icon>
29
+ <wt-icon icon="docs"></wt-icon>
30
30
  <span>{{ $t('webitelUI.headerActions.docs') }}</span>
31
31
  </a>
32
32
  </li>
@@ -35,7 +35,7 @@
35
35
  class="wt-header-actions__action__link"
36
36
  @click.prevent="settings"
37
37
  >
38
- <wt-icon icon="settings" size="sm"></wt-icon>
38
+ <wt-icon icon="settings"></wt-icon>
39
39
  <span>{{ $t('webitelUI.headerActions.settings') }}</span>
40
40
  </a>
41
41
  </li>
@@ -44,7 +44,7 @@
44
44
  class="wt-header-actions__action__link"
45
45
  @click.prevent="logout"
46
46
  >
47
- <wt-icon color="danger" icon="logout" size="sm"></wt-icon>
47
+ <wt-icon color="danger" icon="logout"></wt-icon>
48
48
  <span>{{ $t('webitelUI.headerActions.logout') }}</span>
49
49
  </a>
50
50
  </li>
@@ -117,6 +117,11 @@ export default {
117
117
  z-index: var(--wt-app-header-content-z-index);
118
118
  display: flex;
119
119
  align-items: center;
120
+
121
+ ::v-deep .wt-icon-btn__tooltip {
122
+ left: 50%;
123
+ transform: translateX(-100%);
124
+ }
120
125
  }
121
126
 
122
127
  .wt-header-actions__panel-wrapper {
@@ -132,7 +137,7 @@ export default {
132
137
  transition: var(--transition);
133
138
  border-radius: var(--border-radius);
134
139
  background: var(--wt-app-header-content-bg-color);
135
- box-shadow: var(--elevation-1);
140
+ box-shadow: var(--elevation-10);
136
141
  }
137
142
 
138
143
  .wt-header-actions__name {
@@ -1,6 +1,6 @@
1
1
 
2
2
  :root {
3
- --tooltip-padding: var(--spacing-3xs) var(--spacing-2xs);
3
+ --tooltip-padding: var(--spacing-2xs) var(--spacing-xs);
4
4
  --tooltip-z-index: 100;
5
5
 
6
6
  --tooltip-light-text-color: var(--text-primary-color);
@@ -1,7 +1,7 @@
1
1
 
2
2
  :root {
3
- --wt-app-header-min-height: 40px;
4
- --wt-app-header-padding: var(--spacing-xs) var(--spacing-sm);
3
+ --wt-app-header-min-height: 56px;
4
+ --wt-app-header-padding: var(--spacing-sm);
5
5
 
6
6
  --wt-app-header-content-gap: var(--spacing-sm);
7
7
  --wt-app-header-content-panel-margin: var(--spacing-2xs);
@@ -7,8 +7,8 @@
7
7
  --table-head-border-color: var(--secondary-color);
8
8
 
9
9
  --table-min-height: 24px; // 24px icon size or body-1 lh
10
- --table-column-gap: var(--spacing-sm);
11
- --table-row-padding: var(--spacing-sm);
10
+ --table-column-gap: var(--spacing-xs);
11
+ --table-row-padding: var(--spacing-xs);
12
12
 
13
13
  --table-primary-color: var(--main-color);
14
14
  --table--hover-color: var(--accent-secondary-color);
@@ -67,16 +67,16 @@
67
67
  --disabled-color: hsl(var(--_contrast-color), var(--_opacity--disabled));
68
68
 
69
69
  --true-color: hsla(var(--_positive-color), var(--_opacity--default));
70
- --true--hover-color: hsla(var(--_positive-color), var(--_opacity--hover)); // DEPRECATED
70
+ --true--hover-color: hsla(var(--_positive-color), var(--_opacity--hover));
71
71
 
72
72
  --false-color: hsla(var(--_negative-color), var(--_opacity--default));
73
- --false--hover-color: hsla(var(--_negative-color), var(--_opacity--hover)); // DEPRECATED
73
+ --false--hover-color: hsla(var(--_negative-color), var(--_opacity--hover));
74
74
 
75
75
  --hold-color: hsla(var(--_hold-color), var(--_opacity--default));
76
- --hold--hover-color: hsla(var(--_hold-color), var(--_opacity--hover)); // DEPRECATED
76
+ --hold--hover-color: hsla(var(--_hold-color), var(--_opacity--hover));
77
77
 
78
78
  --transfer-color: hsla(var(--_transfer-color), var(--_opacity--default));
79
- --transfer--hover-color: hsla(var(--_transfer-color), var(--_opacity--hover)); // DEPRECATED
79
+ --transfer--hover-color: hsla(var(--_transfer-color), var(--_opacity--hover));
80
80
 
81
81
  // SUBORDINATE COLORS
82
82
  --tag-bg-color: var(--accent-secondary-color);