@webitel/ui-sdk 0.9.66 → 1.0.0
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/CHANGELOG.md +41 -0
- package/dist/fonts/Montserrat-Black.27e3649b.ttf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.d9b6ba59.ttf +0 -0
- package/dist/fonts/Montserrat-Bold.ade91f47.ttf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.1b384149.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.19ba7aa5.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.52a50ca0.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.570a244c.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.1170df55.ttf +0 -0
- package/dist/fonts/Montserrat-Italic.a7063e0c.ttf +0 -0
- package/dist/fonts/Montserrat-Light.409c7f79.ttf +0 -0
- package/dist/fonts/Montserrat-LightItalic.01c4560c.ttf +0 -0
- package/dist/fonts/Montserrat-Medium.c8b6e083.ttf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.40a74702.ttf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.83c1ec1f.ttf +0 -0
- package/dist/fonts/Montserrat-Thin.43dd5b7a.ttf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.3c2b290f.ttf +0 -0
- package/dist/ui-sdk.common.js +938 -919
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +938 -919
- 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 +4 -4
- package/src/components/atoms/wt-button/wt-button.vue +187 -150
- package/src/components/atoms/wt-chip/__tests__/WtChip.spec.js +19 -0
- package/src/components/atoms/{wt-badge/wt-badge.vue → wt-chip/wt-chip.vue} +4 -4
- package/src/components/atoms/wt-context-menu/wt-context-menu.vue +1 -1
- package/src/components/atoms/wt-icon/wt-icon.vue +4 -0
- package/src/components/atoms/wt-indicator/wt-indicator.vue +39 -6
- package/src/components/atoms/wt-input-info/wt-input-info.vue +1 -1
- package/src/components/atoms/wt-loader/_internals/wt-loader--sm.vue +34 -153
- package/src/components/atoms/wt-loader/wt-loader.vue +2 -4
- package/src/components/atoms/wt-rounded-action/__tests__/WtRoundedAction.spec.js +0 -11
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +27 -179
- package/src/components/atoms/wt-tooltip/wt-tooltip.vue +2 -2
- package/src/components/index.js +2 -2
- package/src/components/molecules/wt-button-select/wt-button-select.vue +2 -1
- package/src/components/molecules/wt-datepicker/wt-datepicker.vue +61 -59
- package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +2 -2
- package/src/components/molecules/wt-input/wt-input.vue +4 -22
- package/src/components/molecules/wt-label/wt-label.vue +2 -2
- package/src/components/molecules/wt-notification/wt-notification.vue +3 -2
- package/src/components/molecules/wt-popup/__tests__/WtPopup.spec.js +1 -1
- package/src/components/molecules/wt-popup/wt-popup.vue +26 -28
- package/src/components/molecules/wt-progress-bar/wt-progress-bar.vue +3 -4
- package/src/components/molecules/wt-radio/wt-radio.vue +0 -2
- package/src/components/molecules/wt-search-bar/wt-search-bar.vue +4 -20
- package/src/components/molecules/wt-select/wt-select.vue +26 -25
- package/src/components/molecules/wt-tabs/wt-tabs.vue +6 -18
- package/src/components/molecules/wt-tags-input/wt-tags-input.vue +31 -20
- package/src/components/molecules/wt-textarea/wt-textarea.vue +6 -14
- package/src/components/molecules/wt-time-input/wt-time-input.vue +1 -1
- package/src/components/organisms/wt-app-header/wt-app-header.vue +1 -0
- package/src/components/organisms/wt-app-header/wt-app-navigator.vue +32 -33
- package/src/components/organisms/wt-app-header/wt-header-actions.vue +145 -144
- package/src/components/organisms/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +3 -3
- package/src/components/organisms/wt-headline/wt-headline.vue +1 -2
- package/src/components/organisms/wt-navigation-bar/wt-navigation-bar.vue +8 -11
- package/src/components/organisms/wt-page-wrapper/wt-page-wrapper.vue +6 -14
- package/src/components/organisms/wt-pagination/wt-pagination.vue +5 -5
- package/src/components/organisms/wt-player/wt-player.vue +1 -1
- package/src/components/organisms/wt-status-select/wt-status-select.vue +24 -4
- package/src/components/organisms/wt-table/wt-table.vue +15 -12
- package/src/components/organisms/wt-table-actions/wt-table-actions.vue +2 -4
- package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/css/components/_components.scss +1 -1
- package/src/css/components/atoms/wt-button/_variables.scss +22 -24
- package/src/css/components/atoms/wt-chip/_variables.scss +7 -0
- package/src/css/components/atoms/{wt-badge/wt-badge.scss → wt-chip/wt-chip.scss} +8 -7
- package/src/css/components/atoms/wt-context-menu/_variables.scss +1 -1
- package/src/css/components/atoms/wt-indicator/_variables.scss +6 -2
- package/src/css/components/atoms/wt-rounded-action/_variables.scss +3 -26
- package/src/css/components/atoms/wt-tooltip/_variables.scss +7 -5
- package/src/css/components/molecules/wt-button-select/_variables.scss +5 -8
- package/src/css/components/molecules/wt-checkbox/_variables.scss +1 -1
- package/src/css/components/molecules/wt-datepicker/_variables.scss +15 -14
- package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +20 -31
- package/src/css/components/molecules/wt-datetimepicker/_variables.scss +5 -5
- package/src/css/components/molecules/wt-input/_variables.scss +3 -3
- package/src/css/components/molecules/wt-notification/_variables.scss +4 -4
- package/src/css/components/molecules/wt-popup/_variables.scss +16 -8
- package/src/css/components/molecules/wt-progress-bar/_variables.scss +3 -3
- package/src/css/components/molecules/wt-radio/_variables.scss +1 -1
- package/src/css/components/molecules/wt-search-bar/_variables.scss +5 -1
- package/src/css/components/molecules/wt-select/_variables.scss +49 -13
- package/src/css/components/molecules/wt-switcher/_variables.scss +1 -1
- package/src/css/components/molecules/wt-tabs/_variables.scss +2 -2
- package/src/css/components/molecules/wt-tags-input/_variables.scss +4 -5
- package/src/css/components/molecules/wt-textarea/_variables.scss +9 -1
- package/src/css/components/molecules/wt-timepicker/_variables.scss +1 -1
- package/src/css/components/organisms/wt-app-header/_variables.scss +13 -9
- package/src/css/components/organisms/wt-headline/_variables.scss +3 -4
- package/src/css/components/organisms/wt-navigation-bar/_variables.scss +10 -10
- package/src/css/components/organisms/wt-notifications-bar/_variables.scss +2 -2
- package/src/css/components/organisms/wt-page-wrapper/_variables.scss +3 -3
- package/src/css/components/organisms/wt-pagination/_variables.scss +1 -3
- package/src/css/components/organisms/wt-player/_variables.scss +2 -2
- package/src/css/components/organisms/wt-status-select/_variables.scss +3 -3
- package/src/css/components/organisms/wt-table/_variables.scss +9 -9
- package/src/css/components/organisms/wt-table-actions/_variables.scss +2 -1
- package/src/css/main.scss +7 -5
- package/src/css/styleguide/_styleguide.scss +8 -3
- package/src/css/styleguide/border-radius/_border-radius.scss +4 -0
- package/src/css/{colors → styleguide/colors}/_colors.scss +5 -7
- package/src/css/{display-helpers → styleguide/display-helpers}/_display-helpers.scss +2 -0
- package/src/css/styleguide/elevations/_elevations.scss +13 -0
- package/src/css/styleguide/fonts/_fonts.scss +126 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +49 -0
- package/src/css/styleguide/spacings/_spacings.scss +15 -0
- package/src/css/styleguide/transitions/_transitions.scss +1 -0
- package/src/css/{transitions → styleguide/transitions}/fade/_fade.scss +0 -0
- package/src/css/styleguide/typography/_typography.scss +102 -0
- package/src/css/{sizes → styleguide/viewport-breakpoints}/_viewport-breakpoints.scss +0 -0
- package/src/components/atoms/wt-badge/__tests__/WtBadge.spec.js +0 -19
- package/src/css/components/atoms/wt-badge/_variables.scss +0 -7
- package/src/css/fonts/_fonts.scss +0 -9
- package/src/css/shadows/_shadows.scss +0 -7
- package/src/css/sizes/_sizes.scss +0 -2
- package/src/css/sizes/_spacing.scss +0 -33
- package/src/css/transitions/_transitions.scss +0 -1
- package/src/css/typography/_typography.scss +0 -72
|
@@ -16,11 +16,33 @@
|
|
|
16
16
|
:maximum-view="maximumView"
|
|
17
17
|
:disabled="disabled"
|
|
18
18
|
:disabled-dates="disabledDates"
|
|
19
|
+
:placeholder="label || placeholder"
|
|
19
20
|
:lang="lang"
|
|
20
|
-
calendar-button
|
|
21
21
|
monday-first
|
|
22
22
|
@input="$emit('change', $event.getTime())"
|
|
23
23
|
>
|
|
24
|
+
<template slot="afterDateInput">
|
|
25
|
+
<wt-icon
|
|
26
|
+
class="wt-datepicker__calendar-icon"
|
|
27
|
+
icon="calendar"
|
|
28
|
+
:color="disabled ? 'disabled' : 'default'"
|
|
29
|
+
></wt-icon>
|
|
30
|
+
<wt-icon
|
|
31
|
+
class="wt-datepicker__arrow-icon"
|
|
32
|
+
icon="arrow-down"
|
|
33
|
+
:color="disabled ? 'disabled' : 'default'"
|
|
34
|
+
></wt-icon>
|
|
35
|
+
</template>
|
|
36
|
+
<template slot="beforeCalendarHeader">
|
|
37
|
+
<wt-icon
|
|
38
|
+
class="wt-datepicker__month-arrow wt-datepicker__month-arrow--left"
|
|
39
|
+
icon="arrow-left"
|
|
40
|
+
></wt-icon>
|
|
41
|
+
<wt-icon
|
|
42
|
+
class="wt-datepicker__month-arrow wt-datepicker__month-arrow--right"
|
|
43
|
+
icon="arrow-right"
|
|
44
|
+
></wt-icon>
|
|
45
|
+
</template>
|
|
24
46
|
</vue-datepicker>
|
|
25
47
|
</div>
|
|
26
48
|
</template>
|
|
@@ -45,6 +67,10 @@
|
|
|
45
67
|
type: String,
|
|
46
68
|
default: '',
|
|
47
69
|
},
|
|
70
|
+
placeholder: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: '',
|
|
73
|
+
},
|
|
48
74
|
format: {
|
|
49
75
|
type: [String, Function],
|
|
50
76
|
},
|
|
@@ -81,6 +107,34 @@
|
|
|
81
107
|
cursor: text;
|
|
82
108
|
}
|
|
83
109
|
|
|
110
|
+
.wt-datepicker__calendar-icon {
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: var(--spacing-xs);
|
|
113
|
+
left: var(--input-padding);
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.wt-datepicker__arrow-icon {
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: var(--spacing-xs);
|
|
120
|
+
right: var(--input-padding);
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.wt-datepicker__month-arrow{
|
|
125
|
+
position: absolute;
|
|
126
|
+
top: var(--spacing-xs);
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
|
|
129
|
+
&--right {
|
|
130
|
+
right: var(--spacing-xs);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&--left {
|
|
134
|
+
left: var(--spacing-xs);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
84
138
|
::v-deep .vdp-datepicker {
|
|
85
139
|
min-width: var(--datepicker-width);
|
|
86
140
|
|
|
@@ -89,52 +143,22 @@
|
|
|
89
143
|
position: relative;
|
|
90
144
|
|
|
91
145
|
input {
|
|
92
|
-
@extend %typo-body-
|
|
146
|
+
@extend %typo-body-1;
|
|
147
|
+
@include wt-placeholder;
|
|
93
148
|
box-sizing: border-box;
|
|
94
149
|
width: 100%;
|
|
95
150
|
padding: var(--datepicker-padding);
|
|
96
151
|
border: var(--datepicker-border);
|
|
97
152
|
border-color: var(--form-border-color);
|
|
98
153
|
border-radius: var(--border-radius);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// arrow down icon
|
|
102
|
-
.vdp-datepicker__calendar-button {
|
|
103
|
-
position: absolute;
|
|
104
|
-
top: 50%;
|
|
105
|
-
right: var(--datepicker-icon-margin);
|
|
106
|
-
width: 24px;
|
|
107
|
-
height: 24px;
|
|
108
|
-
transform: translateY(-50%);
|
|
109
|
-
|
|
110
|
-
&:before {
|
|
111
|
-
content: '';
|
|
112
|
-
position: absolute;
|
|
113
|
-
width: 24px;
|
|
114
|
-
height: 24px;
|
|
115
|
-
background: url("../../../assets/icons/arrow-down--md.svg") center center;
|
|
116
|
-
background-size: contain;
|
|
117
|
-
transition: var(--transition);
|
|
118
|
-
}
|
|
119
154
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
display: none;
|
|
155
|
+
&:focus {
|
|
156
|
+
@include wt-placeholder('focus');
|
|
123
157
|
}
|
|
124
158
|
}
|
|
125
159
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
content: '';
|
|
129
|
-
position: absolute;
|
|
130
|
-
top: 50%;
|
|
131
|
-
left: var(--datepicker-icon-margin);
|
|
132
|
-
width: 24px;
|
|
133
|
-
height: 24px;
|
|
134
|
-
background: url("../../../assets/icons/calendar--md.svg") center center;
|
|
135
|
-
background-size: contain;
|
|
136
|
-
transform: translateY(-50%);
|
|
137
|
-
pointer-events: none;
|
|
160
|
+
.vdp-datepicker__calendar-button {
|
|
161
|
+
display: none;
|
|
138
162
|
}
|
|
139
163
|
}
|
|
140
164
|
@import '../../../css/components/molecules/wt-datepicker/datepicker-calendar';
|
|
@@ -155,17 +179,6 @@
|
|
|
155
179
|
input {
|
|
156
180
|
border-color: var(--form-border--hover-color);
|
|
157
181
|
}
|
|
158
|
-
|
|
159
|
-
// arrow down icon
|
|
160
|
-
.vdp-datepicker__calendar-button:before {
|
|
161
|
-
background: url("../../../assets/icons/arrow-down--active--md.svg") center center;
|
|
162
|
-
background-size: contain;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// calendar icon
|
|
166
|
-
&:before {
|
|
167
|
-
background: url("../../../assets/icons/calendar--active--md.svg") center center;
|
|
168
|
-
}
|
|
169
182
|
}
|
|
170
183
|
}
|
|
171
184
|
}
|
|
@@ -192,17 +205,6 @@
|
|
|
192
205
|
background: var(--form-border--disabled-color);
|
|
193
206
|
border-color: var(--form-border--disabled-color);
|
|
194
207
|
}
|
|
195
|
-
|
|
196
|
-
// arrow down icon
|
|
197
|
-
.vdp-datepicker__calendar-button:before {
|
|
198
|
-
background: url("../../../assets/icons/arrow-down--disabled--md.svg") center center;
|
|
199
|
-
background-size: contain;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// calendar icon
|
|
203
|
-
&:before {
|
|
204
|
-
background: url("../../../assets/icons/calendar--disabled--md.svg") center center;
|
|
205
|
-
}
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
}
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
outline: none;
|
|
175
175
|
|
|
176
176
|
&__input {
|
|
177
|
-
@extend %typo-body-
|
|
177
|
+
@extend %typo-body-1;
|
|
178
178
|
display: block;
|
|
179
179
|
width: 100%;
|
|
180
180
|
box-sizing: border-box;
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
.wt-datetimepicker__quick-filter {
|
|
225
|
-
@extend %typo-
|
|
225
|
+
@extend %typo-caption;
|
|
226
226
|
text-decoration: underline;
|
|
227
227
|
cursor: pointer;
|
|
228
228
|
}
|
|
@@ -261,7 +261,8 @@ export default {
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.wt-input__input {
|
|
264
|
-
@extend %typo-body-
|
|
264
|
+
@extend %typo-body-1;
|
|
265
|
+
@include wt-placeholder;
|
|
265
266
|
|
|
266
267
|
display: block;
|
|
267
268
|
width: 100%;
|
|
@@ -273,34 +274,18 @@ export default {
|
|
|
273
274
|
border-radius: var(--border-radius);
|
|
274
275
|
transition: var(--transition);
|
|
275
276
|
|
|
276
|
-
&::placeholder {
|
|
277
|
-
color: var(--form-placeholder-color);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.wt-input:hover &,
|
|
281
277
|
&:focus {
|
|
278
|
+
@include wt-placeholder('focus');
|
|
282
279
|
border-color: var(--form-border--hover-color);
|
|
283
|
-
|
|
284
|
-
&::placeholder {
|
|
285
|
-
color: var(--form-placeholder--hover-color)
|
|
286
|
-
}
|
|
287
280
|
}
|
|
288
281
|
|
|
289
282
|
.wt-input--outline & {
|
|
290
283
|
border-color: var(--form-outline-border-color);
|
|
291
|
-
|
|
292
|
-
&::placeholder {
|
|
293
|
-
color: var(--form-outline-placeholder-color);
|
|
294
|
-
}
|
|
295
284
|
}
|
|
296
285
|
|
|
297
286
|
.wt-input--outline:hover &,
|
|
298
287
|
.wt-input--outline &:focus {
|
|
299
288
|
border-color: var(--form-outline-border--hover-color);
|
|
300
|
-
|
|
301
|
-
&::placeholder {
|
|
302
|
-
color: var(--form-outline-placeholder--hover-color)
|
|
303
|
-
}
|
|
304
289
|
}
|
|
305
290
|
|
|
306
291
|
.wt-input--invalid &,
|
|
@@ -310,12 +295,9 @@ export default {
|
|
|
310
295
|
}
|
|
311
296
|
|
|
312
297
|
.wt-input--disabled & {
|
|
298
|
+
@include wt-placeholder('disabled');
|
|
313
299
|
background: var(--form-border--disabled-color);
|
|
314
300
|
border-color: var(--form-border--disabled-color);
|
|
315
|
-
|
|
316
|
-
&::placeholder {
|
|
317
|
-
color: var(--form-placeholder--disabled-color);
|
|
318
|
-
}
|
|
319
301
|
}
|
|
320
302
|
}
|
|
321
303
|
|
|
@@ -53,7 +53,7 @@ export default {
|
|
|
53
53
|
|
|
54
54
|
<style lang="scss" scoped>
|
|
55
55
|
.wt-label {
|
|
56
|
-
@extend %typo-body-
|
|
56
|
+
@extend %typo-body-1;
|
|
57
57
|
|
|
58
58
|
display: flex;
|
|
59
59
|
align-items: center;
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.wt-label__hint {
|
|
77
|
-
margin-left: var(--
|
|
77
|
+
margin-left: var(--spacing-xs);
|
|
78
78
|
::v-deep {
|
|
79
79
|
.wt-tooltip {
|
|
80
80
|
width: max-content; // experimental css property
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
<style lang="scss" scoped>
|
|
48
48
|
.wt-notification {
|
|
49
|
-
@extend %typo-body-
|
|
49
|
+
@extend %typo-body-1;
|
|
50
50
|
@include width-fit-content;
|
|
51
51
|
|
|
52
52
|
position: relative;
|
|
@@ -58,11 +58,12 @@
|
|
|
58
58
|
color: var(--notification-text-color);
|
|
59
59
|
background: var(--notification-bg-color);
|
|
60
60
|
border-radius: var(--border-radius);
|
|
61
|
-
box-shadow: var(--
|
|
61
|
+
box-shadow: var(--elevation-1);
|
|
62
62
|
cursor: pointer;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.wt-notification__icon {
|
|
66
|
+
flex: 0 0 var(--icon-md-size);
|
|
66
67
|
margin-right: var(--notification-icon-margin);
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -24,7 +24,7 @@ describe('WtPopup', () => {
|
|
|
24
24
|
stubs: { WtIconBtn: true },
|
|
25
25
|
slots: { title: content },
|
|
26
26
|
});
|
|
27
|
-
expect(wrapper.find('.wt-
|
|
27
|
+
expect(wrapper.find('.wt-popup__title').text()).toBe(content);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
it('renders popup main via main slot', () => {
|
|
@@ -8,16 +8,14 @@
|
|
|
8
8
|
>
|
|
9
9
|
<header class="wt-popup__header">
|
|
10
10
|
<slot name="header">
|
|
11
|
-
<h3 class="wt-
|
|
11
|
+
<h3 class="wt-popup__title">
|
|
12
12
|
<slot name="title"></slot>
|
|
13
13
|
</h3>
|
|
14
14
|
</slot>
|
|
15
15
|
<wt-icon-btn
|
|
16
16
|
class="wt-popup__close-btn"
|
|
17
|
-
icon="close
|
|
18
|
-
|
|
19
|
-
color="active"
|
|
20
|
-
@click.native="$emit('close')"
|
|
17
|
+
icon="close"
|
|
18
|
+
@click="$emit('close')"
|
|
21
19
|
></wt-icon-btn>
|
|
22
20
|
</header>
|
|
23
21
|
<section class="wt-popup__main" v-if="$slots.main">
|
|
@@ -65,25 +63,24 @@ export default {
|
|
|
65
63
|
right: 0;
|
|
66
64
|
bottom: 0;
|
|
67
65
|
left: 0;
|
|
68
|
-
background: var(--
|
|
69
|
-
opacity: var(--popup-shadow-opacity);
|
|
66
|
+
background: var(--popup-shadow-color);
|
|
70
67
|
z-index: 0;
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
70
|
|
|
74
71
|
.wt-popup__popup {
|
|
75
|
-
@extend %wt-scrollbar;
|
|
76
|
-
|
|
77
72
|
position: absolute;
|
|
78
73
|
top: 50%;
|
|
79
74
|
left: 50%;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: var(--popup-sections-gap);
|
|
80
78
|
max-height: var(--popup-max-height);
|
|
81
79
|
padding: var(--popup-padding);
|
|
82
80
|
background: var(--popup-bg-color);
|
|
83
81
|
transform: translate(-50%, -50%);
|
|
84
82
|
border-radius: var(--border-radius);
|
|
85
|
-
box-shadow: var(--
|
|
86
|
-
overflow-y: auto;
|
|
83
|
+
box-shadow: var(--elevation-10);
|
|
87
84
|
z-index: 1;
|
|
88
85
|
|
|
89
86
|
&--overflow {
|
|
@@ -92,39 +89,40 @@ export default {
|
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
.wt-popup__header {
|
|
92
|
+
@extend %typo-subtitle-1;
|
|
95
93
|
position: relative;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: space-between;
|
|
97
|
+
gap: var(--popup-header-padding);
|
|
96
98
|
padding: var(--popup-header-padding);
|
|
99
|
+
background: var(--popup-header-bg-color);
|
|
100
|
+
border-radius: var(--border-radius);
|
|
97
101
|
|
|
98
|
-
.wt-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
padding: var(--popup-header-title-padding);
|
|
102
|
+
.wt-popup__title {
|
|
103
|
+
font: inherit;
|
|
104
|
+
flex-grow: 1;
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
.wt-popup__close-btn {
|
|
105
|
-
|
|
106
|
-
top: 0;
|
|
107
|
-
right: 0;
|
|
108
|
+
flex: 0 0 var(--icon-md-size);
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
.wt-popup__main {
|
|
112
|
-
@extend %
|
|
113
|
-
|
|
113
|
+
@extend %wt-scrollbar;
|
|
114
|
+
@extend %typo-body-1;
|
|
115
|
+
min-height: 0;
|
|
116
|
+
flex-grow: 1;
|
|
117
|
+
overflow-y: auto;
|
|
118
|
+
padding-right: var(--popup-main-section-padding-right);
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
.wt-popup__actions {
|
|
117
122
|
display: flex;
|
|
118
123
|
justify-content: center;
|
|
119
124
|
align-items: center;
|
|
125
|
+
gap: var(--popup-actions-padding);
|
|
120
126
|
padding: var(--popup-actions-padding);
|
|
121
|
-
|
|
122
|
-
.wt-button {
|
|
123
|
-
margin-left: 20px;
|
|
124
|
-
|
|
125
|
-
&:first-child {
|
|
126
|
-
margin-left: 0;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
127
|
}
|
|
130
128
|
</style>
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
padding: var(--progress-bar-padding);
|
|
49
49
|
line-height: 0;
|
|
50
50
|
border-radius: var(--border-radius);
|
|
51
|
-
box-shadow: var(--
|
|
51
|
+
box-shadow: var(--elevation-2);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.wt-progress-bar__progress {
|
|
@@ -56,9 +56,8 @@ export default {
|
|
|
56
56
|
height: var(--progress-bar-height);
|
|
57
57
|
will-change: width;
|
|
58
58
|
background: var(--accent-color);
|
|
59
|
-
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
|
59
|
+
border-radius: var(--progress-bar-border-radius) 0 0 var(--progress-bar-border-radius);
|
|
60
60
|
transition: var(--transition);
|
|
61
|
-
box-shadow: var(--progress-bar-box-shadow);
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.wt-progress-bar--primary .wt-progress-bar__progress {
|
|
@@ -75,6 +74,6 @@ export default {
|
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
.wt-progress-bar--overflow .wt-progress-bar__progress {
|
|
78
|
-
border-radius: var(--border-radius);
|
|
77
|
+
border-radius: var(--progress-bar-border-radius);
|
|
79
78
|
}
|
|
80
79
|
</style>
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
:disabled="disabled"
|
|
17
17
|
@input="inputHandler"
|
|
18
18
|
>
|
|
19
|
-
<span class="wt-radio__checkmark">
|
|
20
19
|
<wt-icon :icon="radioIcon"></wt-icon>
|
|
21
|
-
</span>
|
|
22
20
|
<!-- @slot Custom input label -->
|
|
23
21
|
<slot name="label" v-bind="{ label, isChecked, disabled }">
|
|
24
22
|
<div v-if="label" class="wt-radio__label">{{ label }}</div>
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
<wt-icon-btn
|
|
21
21
|
class="wt-search-bar__reset-icon-btn"
|
|
22
22
|
:class="{ 'hidden': !value }"
|
|
23
|
-
icon="close
|
|
24
|
-
size="sm"
|
|
23
|
+
icon="close"
|
|
25
24
|
@click="$emit('input', '')"
|
|
26
25
|
></wt-icon-btn>
|
|
27
26
|
</div>
|
|
@@ -133,7 +132,8 @@
|
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
.wt-search-bar__input {
|
|
136
|
-
@extend %typo-body-
|
|
135
|
+
@extend %typo-body-1;
|
|
136
|
+
@include wt-placeholder;
|
|
137
137
|
|
|
138
138
|
display: block;
|
|
139
139
|
width: 100%;
|
|
@@ -145,34 +145,18 @@
|
|
|
145
145
|
border-radius: var(--border-radius);
|
|
146
146
|
transition: var(--transition);
|
|
147
147
|
|
|
148
|
-
&::placeholder {
|
|
149
|
-
color: var(--form-placeholder-color)
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.wt-search-bar:hover &,
|
|
153
148
|
&:focus {
|
|
149
|
+
@include wt-placeholder('focus');
|
|
154
150
|
border-color: var(--form-border--hover-color);
|
|
155
|
-
|
|
156
|
-
&::placeholder {
|
|
157
|
-
color: var(--form-placeholder--hover-color)
|
|
158
|
-
}
|
|
159
151
|
}
|
|
160
152
|
|
|
161
153
|
.wt-search-bar--outline & {
|
|
162
154
|
border-color: var(--form-outline-border-color);
|
|
163
|
-
|
|
164
|
-
&::placeholder {
|
|
165
|
-
color: var(--form-outline-placeholder-color)
|
|
166
|
-
}
|
|
167
155
|
}
|
|
168
156
|
|
|
169
157
|
.wt-search-bar--outline:hover &,
|
|
170
158
|
.wt-search-bar--outline &:focus {
|
|
171
159
|
border-color: var(--form-outline-border--hover-color);
|
|
172
|
-
|
|
173
|
-
&::placeholder {
|
|
174
|
-
color: var(--form-outline-placeholder--hover-color)
|
|
175
|
-
}
|
|
176
160
|
}
|
|
177
161
|
}
|
|
178
162
|
|
|
@@ -79,8 +79,7 @@
|
|
|
79
79
|
class="wt-select__clear"
|
|
80
80
|
:class="{ 'hidden': !isValue }"
|
|
81
81
|
:disabled="disabled"
|
|
82
|
-
icon="close
|
|
83
|
-
size="sm"
|
|
82
|
+
icon="close"
|
|
84
83
|
@click="clearValue"
|
|
85
84
|
></wt-icon-btn>
|
|
86
85
|
</template>
|
|
@@ -276,7 +275,7 @@ export default {
|
|
|
276
275
|
|
|
277
276
|
<style lang="scss" scoped>
|
|
278
277
|
@import '~vue-multiselect/dist/vue-multiselect.min.css';
|
|
279
|
-
@import '../../../css/components/atoms/wt-
|
|
278
|
+
@import '../../../css/components/atoms/wt-chip/wt-chip';
|
|
280
279
|
|
|
281
280
|
.wt-select {
|
|
282
281
|
width: 100%;
|
|
@@ -328,25 +327,30 @@ export default {
|
|
|
328
327
|
|
|
329
328
|
.multiselect__input,
|
|
330
329
|
.multiselect__single {
|
|
331
|
-
@extend %typo-body-
|
|
330
|
+
@extend %typo-body-1;
|
|
331
|
+
@include wt-placeholder;
|
|
332
332
|
min-height: var(--select-input-min-height); // reset original 20px style
|
|
333
333
|
padding: 0;
|
|
334
334
|
margin: 0;
|
|
335
335
|
background: transparent;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
+
.multiselect__input:focus {
|
|
339
|
+
@include wt-placeholder('focus');
|
|
340
|
+
}
|
|
341
|
+
|
|
338
342
|
.multiselect__strong {
|
|
339
|
-
@extend %typo-body-
|
|
340
|
-
@extend .wt-
|
|
343
|
+
@extend %typo-body-1;
|
|
344
|
+
@extend .wt-chip;
|
|
341
345
|
position: absolute;
|
|
342
|
-
right: var(--select-
|
|
346
|
+
right: var(--select-chip-right-pos);
|
|
343
347
|
min-height: var(--select-input-min-height); // reset original 20px style
|
|
344
348
|
margin: 0;
|
|
345
349
|
font-weight: normal;
|
|
346
|
-
z-index: var(--select-
|
|
350
|
+
z-index: var(--select-chip-z-index);
|
|
347
351
|
|
|
348
|
-
/* these before-after elements are fixing issue when
|
|
349
|
-
selected option name (yep,
|
|
352
|
+
/* these before-after elements are fixing issue when chip is visually overflown by
|
|
353
|
+
selected option name (yep, chip has z-index, but its background has 0.3 opacity)*/
|
|
350
354
|
&:before {
|
|
351
355
|
content: '';
|
|
352
356
|
position: absolute;
|
|
@@ -354,19 +358,19 @@ export default {
|
|
|
354
358
|
right: 0;
|
|
355
359
|
bottom: 0;
|
|
356
360
|
left: 0;
|
|
357
|
-
z-index: -2; // below
|
|
361
|
+
z-index: -2; // below chip itself
|
|
358
362
|
background: var(--main-color);
|
|
359
363
|
}
|
|
360
364
|
|
|
361
365
|
&:after {
|
|
362
|
-
@extend .wt-
|
|
366
|
+
@extend .wt-chip;
|
|
363
367
|
content: '';
|
|
364
368
|
position: absolute;
|
|
365
369
|
top: 0;
|
|
366
370
|
right: 0;
|
|
367
371
|
bottom: 0;
|
|
368
372
|
left: 0;
|
|
369
|
-
z-index: -1; // below
|
|
373
|
+
z-index: -1; // below chip itself
|
|
370
374
|
|
|
371
375
|
}
|
|
372
376
|
}
|
|
@@ -376,7 +380,7 @@ export default {
|
|
|
376
380
|
}
|
|
377
381
|
|
|
378
382
|
.multiselect__custom-tag, .multiselect__single-label {
|
|
379
|
-
@extend %typo-body-
|
|
383
|
+
@extend %typo-body-1;
|
|
380
384
|
color: var(--form-input-color);
|
|
381
385
|
|
|
382
386
|
// text overflow 3 dots
|
|
@@ -387,9 +391,9 @@ export default {
|
|
|
387
391
|
}
|
|
388
392
|
|
|
389
393
|
.multiselect__placeholder {
|
|
394
|
+
@extend %wt-placeholder;
|
|
390
395
|
padding: 0;
|
|
391
396
|
margin: 0;
|
|
392
|
-
color: var(--form-placeholder-color);
|
|
393
397
|
|
|
394
398
|
// text overflow 3 dots
|
|
395
399
|
white-space: nowrap;
|
|
@@ -406,11 +410,11 @@ export default {
|
|
|
406
410
|
transition: var(--transition);
|
|
407
411
|
|
|
408
412
|
.multiselect__option {
|
|
409
|
-
@extend %typo-body-
|
|
413
|
+
@extend %typo-body-1;
|
|
410
414
|
padding: var(--select-options-padding);
|
|
411
415
|
|
|
412
416
|
& > span {
|
|
413
|
-
|
|
417
|
+
@extend %wt-placeholder;
|
|
414
418
|
}
|
|
415
419
|
|
|
416
420
|
&:after {
|
|
@@ -418,7 +422,7 @@ export default {
|
|
|
418
422
|
}
|
|
419
423
|
|
|
420
424
|
&--highlight {
|
|
421
|
-
background: var(
|
|
425
|
+
background: var(--т, еselect-option--hover-color);
|
|
422
426
|
|
|
423
427
|
& > span {
|
|
424
428
|
color: var(--form-input-color);
|
|
@@ -459,10 +463,6 @@ export default {
|
|
|
459
463
|
.multiselect__tags {
|
|
460
464
|
border-color: var(--form-border--hover-color);
|
|
461
465
|
}
|
|
462
|
-
|
|
463
|
-
.multiselect__placeholder {
|
|
464
|
-
color: var(--form-placeholder--hover-color);
|
|
465
|
-
}
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
|
|
@@ -485,7 +485,7 @@ export default {
|
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.multiselect__placeholder {
|
|
488
|
-
|
|
488
|
+
@extend %wt-placeholder--focus;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
}
|
|
@@ -532,7 +532,8 @@ export default {
|
|
|
532
532
|
border-color: var(--form-border--disabled-color);
|
|
533
533
|
|
|
534
534
|
.multiselect__placeholder {
|
|
535
|
-
|
|
535
|
+
@extend %wt-placeholder--disabled;
|
|
536
|
+
//color: var(--form-placeholder--disabled-color);
|
|
536
537
|
}
|
|
537
538
|
}
|
|
538
539
|
}
|
|
@@ -546,7 +547,7 @@ export default {
|
|
|
546
547
|
}
|
|
547
548
|
|
|
548
549
|
.multiselect__strong {
|
|
549
|
-
right: var(--select-
|
|
550
|
+
right: var(--select-chip-right-pos--clearable);
|
|
550
551
|
}
|
|
551
552
|
}
|
|
552
553
|
}
|