@webitel/ui-sdk 1.0.0 → 1.0.4

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/dist/ui-sdk.common.js +282 -282
  3. package/dist/ui-sdk.common.js.map +1 -1
  4. package/dist/ui-sdk.css +1 -1
  5. package/dist/ui-sdk.umd.js +282 -282
  6. package/dist/ui-sdk.umd.js.map +1 -1
  7. package/dist/ui-sdk.umd.min.js +2 -2
  8. package/dist/ui-sdk.umd.min.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/components/molecules/wt-datepicker/wt-datepicker.vue +0 -5
  11. package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +0 -5
  12. package/src/components/molecules/wt-input/wt-input.vue +0 -3
  13. package/src/components/molecules/wt-label/wt-label.vue +3 -0
  14. package/src/components/molecules/wt-select/wt-select.vue +0 -3
  15. package/src/components/molecules/wt-tags-input/wt-tags-input.vue +0 -5
  16. package/src/components/molecules/wt-textarea/wt-textarea.vue +0 -3
  17. package/src/components/molecules/wt-time-input/wt-time-input.vue +0 -2
  18. package/src/components/molecules/wt-timepicker/wt-timepicker.vue +0 -3
  19. package/src/components/organisms/wt-app-header/wt-app-navigator.vue +5 -0
  20. package/src/components/organisms/wt-app-header/wt-header-actions.vue +5 -0
  21. package/src/components/organisms/wt-player/wt-player.vue +4 -4
  22. package/src/css/components/atoms/wt-chip/_variables.scss +2 -2
  23. package/src/css/components/atoms/wt-divider/_variables.scss +1 -1
  24. package/src/css/components/atoms/wt-label/_variables.scss +0 -1
  25. package/src/css/components/atoms/wt-loader/_variables.scss +2 -2
  26. package/src/css/components/molecules/wt-tabs/_variables.scss +1 -1
  27. package/src/css/components/molecules/wt-tags-input/_variables.scss +2 -2
  28. package/src/css/components/organisms/wt-app-header/_variables.scss +2 -2
  29. package/src/css/components/organisms/wt-player/_variables.scss +2 -2
  30. package/src/css/styleguide/colors/_colors.scss +5 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -102,11 +102,6 @@
102
102
  </script>
103
103
 
104
104
  <style lang="scss" scoped>
105
- .wt-label {
106
- margin-bottom: var(--label-margin);
107
- cursor: text;
108
- }
109
-
110
105
  .wt-datepicker__calendar-icon {
111
106
  position: absolute;
112
107
  top: var(--spacing-xs);
@@ -163,11 +163,6 @@
163
163
  position: relative;
164
164
  }
165
165
 
166
- .wt-label {
167
- margin-bottom: var(--label-margin);
168
- cursor: text;
169
- }
170
-
171
166
  .wt-datetimepicker__preview {
172
167
  position: relative;
173
168
  cursor: text;
@@ -246,9 +246,6 @@ export default {
246
246
  }
247
247
 
248
248
  .wt-label {
249
- margin-bottom: var(--label-margin);
250
- cursor: text;
251
-
252
249
  .wt-input:hover &,
253
250
  .wt-input:focus-within & {
254
251
  color: var(--form-label--hover-color);
@@ -59,6 +59,7 @@ export default {
59
59
  align-items: center;
60
60
  color: var(--form-label-color);
61
61
  transition: var(--transition);
62
+ cursor: text;
62
63
 
63
64
  &--outline {
64
65
  color: var(--form-outline-label-color);
@@ -74,7 +75,9 @@ export default {
74
75
  }
75
76
 
76
77
  .wt-label__hint {
78
+ cursor: pointer;
77
79
  margin-left: var(--spacing-xs);
80
+
78
81
  ::v-deep {
79
82
  .wt-tooltip {
80
83
  width: max-content; // experimental css property
@@ -283,9 +283,6 @@ export default {
283
283
  }
284
284
 
285
285
  .wt-label {
286
- margin-bottom: var(--label-margin);
287
- cursor: text;
288
-
289
286
  .wt-select:hover &,
290
287
  .wt-select:focus-within & {
291
288
  color: var(--form-label--hover-color);
@@ -153,11 +153,6 @@ export default {
153
153
  width: 100%;
154
154
  }
155
155
 
156
- .wt-label {
157
- margin-bottom: var(--label-margin);
158
- cursor: text;
159
- }
160
-
161
156
  // increase specificity
162
157
  .wt-tags-input .wt-tags-input__tags-input {
163
158
  width: 100%;
@@ -119,9 +119,6 @@
119
119
  }
120
120
 
121
121
  .wt-label {
122
- margin-bottom: var(--label-margin);
123
- cursor: text;
124
-
125
122
  .wt-textarea:hover &,
126
123
  .wt-textarea:focus-within & {
127
124
  color: var(--form-label--hover-color);
@@ -137,8 +137,6 @@ import validationMixin from '../../../mixins/validationMixin/validationMixin';
137
137
 
138
138
  .wt-label {
139
139
  text-align: center;
140
- margin-bottom: var(--label-margin);
141
- cursor: text;
142
140
 
143
141
  .wt-time-input:hover &,
144
142
  .wt-time-input:focus-within & {
@@ -146,9 +146,6 @@ export default {
146
146
  }
147
147
 
148
148
  .wt-label {
149
- margin-bottom: var(--label-margin);
150
- cursor: text;
151
-
152
149
  .wt-timepicker:hover &,
153
150
  .wt-timepicker:focus-within & {
154
151
  color: var(--form-label--hover-color);
@@ -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
@@ -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 {
@@ -121,18 +121,18 @@ export default {
121
121
  }
122
122
 
123
123
  .plyr__control:hover, {
124
- background: var(--main-option-hover-color);
124
+ background: var(--accent-secondary-color);
125
125
  color: var(--text-primary-color);
126
126
  }
127
127
 
128
128
  //.plyr__control[role='menuitemradio']::before,
129
129
  //.plyr__control[role='menuitemradio']:hover::before {
130
- // border: 2px solid var(--main-secondary-color);
131
- // background: var(--main-primary-color);
130
+ // border: 2px solid var(--secondary-color);
131
+ // background: var(--main-color);
132
132
  //}
133
133
  //
134
134
  //.plyr__control[role='menuitemradio']::after {
135
- // background: var(--main-secondary-color);
135
+ // background: var(--secondary-color);
136
136
  //}
137
137
  }
138
138
 
@@ -2,6 +2,6 @@
2
2
  :root {
3
3
  --chip-padding: var(--spacing-2xs) var(--spacing-xs);
4
4
  --chip-border-radius: var(--spacing-lg);
5
- --chip-bg-color: var(--main-secondary-accent-color);
6
- --chip-bg-color--outline: var(--main-outline-color);
5
+ --chip-bg-color: var(--accent-secondary-color);
6
+ --chip-bg-color--outline: var(--secondary-color);
7
7
  }
@@ -1,5 +1,5 @@
1
1
 
2
2
  :root {
3
3
  --divider-border: 1px solid;
4
- --divider-border-color: var(--main-page-bg-color);
4
+ --divider-border-color: var(--page-bg-color);
5
5
  }
@@ -1,5 +1,4 @@
1
1
 
2
2
  :root {
3
- --label-margin: 10px;
4
3
  --label--invalid-color: var(--false-color);
5
4
  }
@@ -2,7 +2,7 @@
2
2
  :root {
3
3
  --loader-size: 44px;
4
4
  --loader-dot-size: 6px;
5
- --loader-path-color: var(--main-primary-accent-color);
6
- --loader-dot-color: var(--main-accent-color);
5
+ --loader-path-color: var(--contrast-color);
6
+ --loader-dot-color: var(--accent-color);
7
7
  --loader-animation-duration: 3s;
8
8
  }
@@ -9,6 +9,6 @@
9
9
  --tab--hover-color: var(--text-primary-color);
10
10
  --tab--active-color: var(--text-primary-color);
11
11
  --tab-border: 4px solid;
12
- --tab--active-border-color: var(--main-accent-color);
12
+ --tab--active-border-color: var(--accent-color);
13
13
  --tab-z-index: 1;
14
14
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  --tags-input-tags-gap: var(--spacing-xs);
9
9
  --tags-input-tag-text-color: var(--text-primary-color);
10
- --tags-input-tag-bg-color: var(--main-secondary-accent-color);
10
+ --tags-input-tag-bg-color: var(--accent-secondary-color);
11
11
  --tags-input-tag-actions-margin-left: var(--spacing-2xs);
12
12
 
13
13
  --tags-input-tag-text-color--deletion: var(--text-contrast-color);
@@ -19,6 +19,6 @@
19
19
  --tags-input-autocomplete-option-padding: var(--input-padding);
20
20
  --tags-input-autocomplete-option--text-color: var(--form-placeholder-color);
21
21
 
22
- --tags-input-option-bg-color--hover: var(--main-secondary-accent-color);
22
+ --tags-input-option-bg-color--hover: var(--accent-secondary-color);
23
23
  --tags-input-option-text-color--hover: var(--text-primary-color);
24
24
  }
@@ -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);
@@ -1,7 +1,7 @@
1
1
  .wt-player {
2
- --plyr-color-main: var(--main-accent-color);
2
+ --plyr-color-main: var(--accent-color);
3
3
  --plyr-audio-control-color: var(--icon-primary-color);
4
- // --plyr-control-toggle-checked-background: var(--main-primary-color);
4
+ // --plyr-control-toggle-checked-background: var(--main-color);
5
5
  --player-close-icon-transform-translate-x: var(--spacing-xs);
6
6
  // "-1 * var" for use the negative value of a variable
7
7
  --player-close-icon-transform-translate-y: calc(-1 * var(--spacing-md));
@@ -34,18 +34,13 @@
34
34
 
35
35
  // MAIN COLORS
36
36
  --accent-color: hsla(var(--_accent-color), 1);
37
- --main-accent-color: var(--accent-color); // DEPRECATED
38
37
 
39
38
  --main-color: hsla(var(--_main-color), 1);
40
- --main-primary-color: var(--main-color); // DEPRECATED
41
39
 
42
40
  --contrast-color: hsla(var(--_contrast-color), 1);
43
- --main-primary-accent-color: var(--contrast-color); // DEPRECATED
44
41
 
45
42
  --secondary-color: hsla(var(--_secondary-color), 1);
46
43
  --secondary-color-50: hsla(var(--_secondary-color-50), 1);
47
- --main-secondary-color: var(--secondary-color); // DEPRECATED
48
- --main-outline-color: var(--secondary-color); // DEPRECATED
49
44
 
50
45
  // ICON COLORS
51
46
  --icon-color: hsla(var(--_icon-color), var(--_opacity--default));
@@ -65,29 +60,26 @@
65
60
 
66
61
  --page-bg-color: hsla(var(--_page-bg-color), 1);
67
62
  --header-color: hsla(var(--_header-color), 1);
68
- --main-page-bg-color: var(--page-bg-color); // DEPRECATED
69
63
 
70
64
  --accent-secondary-color: hsla(var(--_accent-color), 0.3);
71
- --main-secondary-accent-color: var(--accent-secondary-color); // DEPRECATED
72
- --main-option-hover-color: var(--accent-secondary-color); // DEPRECATED
73
65
 
74
66
  // SEMANTIC COLORS
75
67
  --disabled-color: hsl(var(--_contrast-color), var(--_opacity--disabled));
76
68
 
77
69
  --true-color: hsla(var(--_positive-color), var(--_opacity--default));
78
- --true--hover-color: hsla(var(--_positive-color), var(--_opacity--hover)); // DEPRECATED
70
+ --true--hover-color: hsla(var(--_positive-color), var(--_opacity--hover));
79
71
 
80
72
  --false-color: hsla(var(--_negative-color), var(--_opacity--default));
81
- --false--hover-color: hsla(var(--_negative-color), var(--_opacity--hover)); // DEPRECATED
73
+ --false--hover-color: hsla(var(--_negative-color), var(--_opacity--hover));
82
74
 
83
75
  --hold-color: hsla(var(--_hold-color), var(--_opacity--default));
84
- --hold--hover-color: hsla(var(--_hold-color), var(--_opacity--hover)); // DEPRECATED
76
+ --hold--hover-color: hsla(var(--_hold-color), var(--_opacity--hover));
85
77
 
86
78
  --transfer-color: hsla(var(--_transfer-color), var(--_opacity--default));
87
- --transfer--hover-color: hsla(var(--_transfer-color), var(--_opacity--hover)); // DEPRECATED
79
+ --transfer--hover-color: hsla(var(--_transfer-color), var(--_opacity--hover));
88
80
 
89
81
  // SUBORDINATE COLORS
90
- --tag-bg-color: var(--main-secondary-accent-color);
82
+ --tag-bg-color: var(--accent-secondary-color);
91
83
 
92
84
  // FORM STATES OPACITY
93
85
  --form-opacity--default: var(--_opacity--default);