@webitel/ui-sdk 0.9.45 → 0.9.46
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/dist/img/sprite/adfs.svg +5 -0
- package/dist/img/sprite/google.svg +6 -0
- package/dist/img/sprite/index.js +2 -0
- package/dist/img/sprite/messenger-facebook.svg +2 -3
- package/dist/img/sprite/messenger-viber.svg +2 -15
- package/dist/ui-sdk.common.js +102 -120
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +102 -120
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/wt-button/wt-button.vue +2 -2
- package/src/components/molecules/wt-input/wt-input.vue +21 -46
- package/src/css/components/atoms/wt-button/_variables.scss +3 -4
- package/src/css/components/molecules/wt-input/_variables.scss +0 -2
package/package.json
CHANGED
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
&.secondary {
|
|
103
103
|
color: var(--btn-secondary-color);
|
|
104
104
|
border-color: var(--btn-secondary-color);
|
|
105
|
-
background: var(--btn-secondary-
|
|
105
|
+
background: var(--btn-secondary-color);
|
|
106
106
|
|
|
107
107
|
&:hover,
|
|
108
108
|
&:active {
|
|
109
109
|
color: var(--btn-secondary--hover-color);
|
|
110
110
|
border-color: var(--btn-secondary--hover-color);
|
|
111
|
-
background: var(--btn-secondary-
|
|
111
|
+
background: var(--btn-secondary-color);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
:class="{
|
|
26
26
|
'wt-input--is-password': isPassword,
|
|
27
27
|
}"
|
|
28
|
-
ref="wt-input"
|
|
29
28
|
:value="value"
|
|
30
29
|
:type="inputType"
|
|
31
30
|
:placeholder="placeholder || label"
|
|
@@ -34,28 +33,20 @@
|
|
|
34
33
|
:max="numberMax"
|
|
35
34
|
v-on="listeners"
|
|
36
35
|
>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<slot
|
|
42
|
-
name="after-input"
|
|
43
|
-
></slot>
|
|
44
|
-
<slot
|
|
45
|
-
v-if="isPassword"
|
|
46
|
-
name="show-password"
|
|
47
|
-
v-bind="{
|
|
36
|
+
<slot
|
|
37
|
+
v-if="isPassword"
|
|
38
|
+
name="show-password"
|
|
39
|
+
v-bind="{
|
|
48
40
|
isPasswordVisible,
|
|
49
41
|
switchVisibilityPassword,
|
|
50
42
|
}"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</div>
|
|
43
|
+
>
|
|
44
|
+
<wt-icon-btn
|
|
45
|
+
class="wt-input__password-button"
|
|
46
|
+
:icon="showPasswordIcon"
|
|
47
|
+
@click.native="switchVisibilityPassword"
|
|
48
|
+
></wt-icon-btn>
|
|
49
|
+
</slot>
|
|
59
50
|
</div>
|
|
60
51
|
<wt-input-info
|
|
61
52
|
v-if="isValidation"
|
|
@@ -66,9 +57,9 @@
|
|
|
66
57
|
</template>
|
|
67
58
|
|
|
68
59
|
<script>
|
|
69
|
-
import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
60
|
+
import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
70
61
|
|
|
71
|
-
export default {
|
|
62
|
+
export default {
|
|
72
63
|
name: 'wt-input',
|
|
73
64
|
mixins: [validationMixin],
|
|
74
65
|
props: {
|
|
@@ -216,19 +207,8 @@ export default {
|
|
|
216
207
|
this.isPasswordVisible = !this.isPasswordVisible;
|
|
217
208
|
this.inputType = this.isPasswordVisible ? 'text' : 'password';
|
|
218
209
|
},
|
|
219
|
-
|
|
220
|
-
updateInputPaddings() {
|
|
221
|
-
const afterWrapperWidth = this.$refs['after-wrapper'].offsetWidth;
|
|
222
|
-
const inputEl = this.$refs['wt-input'];
|
|
223
|
-
const defaultInputPadding = parseInt(getComputedStyle(document.documentElement)
|
|
224
|
-
.getPropertyValue('--input-padding'), 10);
|
|
225
|
-
inputEl.style.paddingRight = `${defaultInputPadding + afterWrapperWidth + defaultInputPadding}px`;
|
|
226
|
-
},
|
|
227
210
|
},
|
|
228
|
-
|
|
229
|
-
this.updateInputPaddings();
|
|
230
|
-
},
|
|
231
|
-
};
|
|
211
|
+
};
|
|
232
212
|
</script>
|
|
233
213
|
|
|
234
214
|
<style lang="scss" scoped>
|
|
@@ -318,24 +298,19 @@ export default {
|
|
|
318
298
|
}
|
|
319
299
|
}
|
|
320
300
|
|
|
321
|
-
.wt-
|
|
322
|
-
display: flex;
|
|
323
|
-
gap: var(--input-after-wrapper-gap);
|
|
324
|
-
align-items: center;
|
|
301
|
+
.wt-input__password-button {
|
|
325
302
|
position: absolute;
|
|
326
303
|
top: 50%;
|
|
327
304
|
right: var(--input-icon-margin);
|
|
328
305
|
transform: translateY(-50%);
|
|
329
306
|
|
|
330
|
-
.wt-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
307
|
+
.wt-input--disabled & ::v-deep .wt-icon__icon {
|
|
308
|
+
fill: var(--icon-color-disabled);
|
|
309
|
+
}
|
|
334
310
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}
|
|
311
|
+
.wt-input:hover & ::v-deep .wt-icon__icon,
|
|
312
|
+
.wt-input:focus-within & ::v-deep .wt-icon__icon {
|
|
313
|
+
fill: var(--icon-color--hover);
|
|
339
314
|
}
|
|
340
315
|
}
|
|
341
316
|
</style>
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
--btn-dark-font-color: #000;
|
|
24
24
|
--btn-light-font-color: #fff;
|
|
25
25
|
|
|
26
|
-
--btn-primary-color: var(--
|
|
26
|
+
--btn-primary-color: var(--accent-color);
|
|
27
27
|
--btn-primary--hover-color: #EFB917;
|
|
28
28
|
|
|
29
|
-
--btn-secondary-color:
|
|
30
|
-
--btn-secondary-
|
|
31
|
-
--btn-secondary--hover-color: #000;
|
|
29
|
+
--btn-secondary-color: hsla(var(--_secondary-color), var(--_opacity--default));
|
|
30
|
+
--btn-secondary--hover-color: hsla(var(--_secondary-color), var(--_opacity--hover));
|
|
32
31
|
|
|
33
32
|
--btn-disabled-color: var(--disabled-color);
|
|
34
33
|
--btn-disabled-bg-color: transparent;
|