@webitel/ui-sdk 23.12.41 → 23.12.44
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/favicon.ico +0 -0
- package/dist/img/sprite/index.js +148 -1
- package/dist/img/sprite/variable-select.svg +9 -0
- package/dist/plyr.svg +70 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.mjs +22671 -0
- package/dist/ui-sdk.umd.js +37 -43322
- package/package.json +33 -41
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
- package/src/components/transitions/wt-expand-transition.vue +2 -2
- package/src/components/wt-app-header/wt-app-header.vue +2 -2
- package/src/components/wt-app-header/wt-app-navigator.vue +6 -5
- package/src/components/wt-app-header/wt-header-actions.vue +30 -14
- package/src/components/wt-avatar/wt-avatar.vue +2 -2
- package/src/components/wt-badge/wt-badge.vue +3 -3
- package/src/components/wt-button/wt-button.vue +5 -3
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
- package/src/components/wt-button-select/wt-button-select.vue +3 -3
- package/src/components/wt-checkbox/wt-checkbox.vue +15 -48
- package/src/components/wt-chip/_variables.scss +25 -2
- package/src/components/wt-chip/wt-chip.scss +20 -17
- package/src/components/wt-chip/wt-chip.vue +10 -5
- package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
- package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
- package/src/components/wt-datepicker/wt-datepicker.vue +14 -12
- package/src/components/wt-divider/wt-divider.vue +1 -1
- package/src/components/wt-dummy/wt-dummy.vue +6 -2
- package/src/components/wt-error-page/wt-error-page.vue +10 -4
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
- package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +7 -4
- package/src/components/wt-headline/wt-headline.vue +4 -4
- package/src/components/wt-headline-nav/wt-headline-nav.vue +11 -4
- package/src/components/wt-hint/wt-hint.vue +4 -4
- package/src/components/wt-icon/wt-icon.vue +5 -5
- package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +3 -2
- package/src/components/wt-indicator/wt-indicator.vue +6 -3
- package/src/components/wt-input/wt-input.vue +190 -199
- package/src/components/wt-input-info/wt-input-info.vue +2 -2
- package/src/components/wt-item-link/wt-item-link.vue +1 -1
- package/src/components/wt-label/_variables.scss +4 -2
- package/src/components/wt-label/wt-label.vue +5 -18
- package/src/components/wt-load-bar/wt-load-bar.vue +5 -2
- package/src/components/wt-loader/_internals/wt-loader--md.vue +11 -2
- package/src/components/wt-loader/_internals/wt-loader--sm.vue +9 -2
- package/src/components/wt-loader/wt-loader.vue +10 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +16 -8
- package/src/components/wt-notification/wt-notification.vue +3 -3
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +9 -5
- package/src/components/wt-page-header/wt-page-header.vue +7 -8
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +8 -5
- package/src/components/wt-pagination/wt-pagination.vue +17 -15
- package/src/components/wt-player/wt-player.vue +16 -16
- package/src/components/wt-popup/_variables.scss +4 -3
- package/src/components/wt-popup/wt-popup.vue +18 -10
- package/src/components/wt-progress-bar/wt-progress-bar.vue +11 -7
- package/src/components/wt-radio/wt-radio.vue +15 -7
- package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +6 -5
- package/src/components/wt-select/_multiselect.scss +48 -53
- package/src/components/wt-select/_variables.scss +0 -3
- package/src/components/wt-select/wt-select.vue +41 -40
- package/src/components/wt-slider/wt-slider.vue +5 -5
- package/src/components/wt-status-select/wt-status-select.vue +9 -9
- package/src/components/wt-stepper/wt-stepper.vue +8 -6
- package/src/components/wt-switcher/_variables.scss +30 -7
- package/src/components/wt-switcher/wt-switcher.vue +56 -35
- package/src/components/wt-table/_variables.scss +8 -5
- package/src/components/wt-table/wt-table.vue +123 -90
- package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
- package/src/components/wt-table-column-select/wt-table-column-select.vue +33 -28
- package/src/components/wt-tabs/_variables.scss +4 -4
- package/src/components/wt-tabs/wt-tabs.vue +15 -13
- package/src/components/wt-tags-input/wt-tags-input.vue +26 -35
- package/src/components/wt-textarea/wt-textarea.vue +21 -33
- package/src/components/wt-time-input/wt-time-input.vue +24 -54
- package/src/components/wt-timepicker/wt-timepicker.vue +19 -27
- package/src/components/wt-tooltip/__tests__/WtTooltip.spec.js +0 -10
- package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
- package/src/components/wt-tooltip/_variables.scss +2 -4
- package/src/components/wt-tooltip/wt-tooltip.vue +6 -18
- package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
- package/src/css/styleguide/colors/_colors.scss +15 -14
- package/src/css/styleguide/colors/reusable/_text-field.scss +36 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +9 -9
- package/src/locale/i18n.js +1 -1
- package/src/locale/kz/kz.js +74 -78
- package/src/mixins/validationMixin/useValidation.js +2 -2
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +11 -9
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +6 -5
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +10 -6
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
- package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
- package/src/modules/AuditForm/components/audit-form.vue +6 -5
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +7 -4
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
- package/src/modules/CSVExport/__tests__/CSVExport.spec.js +5 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +13 -6
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
- package/src/modules/Filters/components/filter-pagination.vue +1 -1
- package/src/modules/Filters/components/filter-table-fields.vue +1 -1
- package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -6
- package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
- package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
- package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
- package/src/modules/QueryFilters/components/filter-from-to.vue +12 -10
- package/src/modules/QueryFilters/components/filter-search.vue +2 -2
- package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
- package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
- package/src/modules/Userinfo/components/the-auth.vue +7 -4
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
- package/dist/demo.html +0 -1
- package/dist/ui-sdk.common.js +0 -43304
- package/dist/ui-sdk.common.js.map +0 -1
- package/dist/ui-sdk.umd.js.map +0 -1
- package/dist/ui-sdk.umd.min.js +0 -35
- package/dist/ui-sdk.umd.min.js.map +0 -1
- package/src/components/wt-button/Readme.md +0 -23
- package/src/components/wt-button-select/Readme.md +0 -13
- package/src/components/wt-headline-nav/Readme.md +0 -9
- package/src/components/wt-icon/Readme.md +0 -327
- package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
- package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
- package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
- package/src/components/wt-icon-btn/Readme.md +0 -10
- package/src/components/wt-rounded-action/Readme.md +0 -68
- package/src/components/wt-tags-input/_variables.scss +0 -24
- package/src/validators/variableSearchValidator/Readme.md +0 -13
- package/src/validators/websocketValidator/Readme.md +0 -7
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="wt-timepicker"
|
|
4
|
+
:class="{'wt-timepicker--invalid': invalid}"
|
|
5
|
+
>
|
|
3
6
|
<wt-label
|
|
4
|
-
v-bind="labelProps"
|
|
5
7
|
v-if="label"
|
|
8
|
+
v-bind="labelProps"
|
|
6
9
|
:invalid="invalid"
|
|
7
10
|
>
|
|
8
11
|
{{ `${label} (${format})` }}
|
|
@@ -13,36 +16,37 @@
|
|
|
13
16
|
:value="hour"
|
|
14
17
|
:v="v"
|
|
15
18
|
:label="label ? null : $t('webitelUI.timepicker.hour') "
|
|
16
|
-
:
|
|
19
|
+
:max-value="dateMode ? null : 23"
|
|
17
20
|
:disabled="disabled"
|
|
18
21
|
hide-input-info
|
|
19
22
|
@input="hour = $event"
|
|
20
|
-
|
|
23
|
+
/>
|
|
21
24
|
<wt-time-input
|
|
22
25
|
v-if="isMin"
|
|
23
26
|
:value="min"
|
|
24
27
|
:v="v"
|
|
25
28
|
:label="label ? null : $t('webitelUI.timepicker.min')"
|
|
26
|
-
:
|
|
29
|
+
:max-value="59"
|
|
27
30
|
:disabled="disabled"
|
|
28
31
|
hide-input-info
|
|
29
32
|
@input="min = $event"
|
|
30
|
-
|
|
33
|
+
/>
|
|
31
34
|
<wt-time-input
|
|
32
35
|
v-if="isSec"
|
|
33
36
|
:value="sec"
|
|
34
37
|
:v="v"
|
|
35
|
-
:label="label ? null :
|
|
36
|
-
:
|
|
38
|
+
:label="label ? null : $t('webitelUI.timepicker.sec')"
|
|
39
|
+
:max-value="59"
|
|
37
40
|
:disabled="disabled"
|
|
38
41
|
hide-input-info
|
|
39
42
|
@input="sec = $event"
|
|
40
|
-
|
|
43
|
+
/>
|
|
41
44
|
</div>
|
|
42
45
|
<wt-input-info
|
|
43
46
|
v-if="isValidation"
|
|
44
47
|
:invalid="invalid"
|
|
45
|
-
>
|
|
48
|
+
>
|
|
49
|
+
{{ validationText }}
|
|
46
50
|
</wt-input-info>
|
|
47
51
|
</div>
|
|
48
52
|
</template>
|
|
@@ -54,8 +58,12 @@ const SEC_IN_HOUR = 60 * 60;
|
|
|
54
58
|
const SEC_IN_MIN = 60;
|
|
55
59
|
|
|
56
60
|
export default {
|
|
57
|
-
name: '
|
|
61
|
+
name: 'WtTimepicker',
|
|
58
62
|
mixins: [validationMixin],
|
|
63
|
+
model: {
|
|
64
|
+
prop: 'value',
|
|
65
|
+
event: 'input',
|
|
66
|
+
},
|
|
59
67
|
props: {
|
|
60
68
|
value: {
|
|
61
69
|
type: [String, Number],
|
|
@@ -82,10 +90,6 @@ export default {
|
|
|
82
90
|
description: 'Object with props, passed down to wt-label as props',
|
|
83
91
|
},
|
|
84
92
|
},
|
|
85
|
-
model: {
|
|
86
|
-
prop: 'value',
|
|
87
|
-
event: 'input',
|
|
88
|
-
},
|
|
89
93
|
|
|
90
94
|
computed: {
|
|
91
95
|
isHour() {
|
|
@@ -153,18 +157,6 @@ export default {
|
|
|
153
157
|
flex-direction: column;
|
|
154
158
|
}
|
|
155
159
|
|
|
156
|
-
.wt-label {
|
|
157
|
-
.wt-timepicker:hover &,
|
|
158
|
-
.wt-timepicker:focus-within & {
|
|
159
|
-
color: var(--form-label--hover-color);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.wt-timepicker--invalid:hover &,
|
|
163
|
-
.wt-timepicker--invalid:focus-within & {
|
|
164
|
-
color: var(--label--invalid-color);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
160
|
.wt-timepicker__wrapper {
|
|
169
161
|
display: flex;
|
|
170
162
|
}
|
|
@@ -17,14 +17,4 @@ describe('WtTooltip', () => {
|
|
|
17
17
|
});
|
|
18
18
|
expect(wrapper.find('.wt-tooltip').text()).toEqual(content);
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
it('changed tooltip color, if prop is passed', () => {
|
|
22
|
-
const wrapper = shallowMount(WtTooltip, {
|
|
23
|
-
props: {
|
|
24
|
-
contrast: true,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
expect(wrapper.find('.wt-tooltip').classes())
|
|
28
|
-
.toContain('wt-tooltip--contrast');
|
|
29
|
-
});
|
|
30
20
|
});
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
:root {
|
|
3
3
|
--tooltip-padding: var(--spacing-2xs) var(--spacing-xs);
|
|
4
4
|
|
|
5
|
-
--tooltip-
|
|
6
|
-
--tooltip-
|
|
7
|
-
--tooltip-dark-text-color: var(--text-contrast-color);
|
|
8
|
-
--tooltip-dark-bg-color: var(--contrast-color);
|
|
5
|
+
--wt-tooltip-text-color: var(--text-main-color);
|
|
6
|
+
--wt-tooltip-background-color: var(--dp-24-surface-color);
|
|
9
7
|
|
|
10
8
|
--tooltip-elevation: var(--elevation-10);
|
|
11
9
|
}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:class="{
|
|
4
|
-
'wt-tooltip--contrast': contrast,
|
|
5
4
|
'wt-tooltip--visible': isVisible,
|
|
6
|
-
|
|
5
|
+
}"
|
|
7
6
|
class="wt-tooltip"
|
|
8
7
|
>
|
|
9
8
|
<div
|
|
10
9
|
ref="activator"
|
|
11
10
|
class="wt-tooltip__activator"
|
|
12
11
|
>
|
|
13
|
-
<slot name="activator"
|
|
12
|
+
<slot name="activator" />
|
|
14
13
|
</div>
|
|
15
14
|
<wt-tooltip-floating
|
|
16
15
|
v-if="isVisible"
|
|
17
16
|
ref="floating"
|
|
18
|
-
class="wt-tooltip__floating"
|
|
19
17
|
v-clickaway="hideTooltip"
|
|
18
|
+
class="wt-tooltip__floating"
|
|
20
19
|
:class="[popperClass]"
|
|
21
20
|
:style="floatingStyles"
|
|
22
21
|
:triggers="popperTriggers"
|
|
23
22
|
@show="showTooltip"
|
|
24
23
|
@hide="hideTooltip"
|
|
25
24
|
>
|
|
26
|
-
<slot v-bind="{ hide: hideTooltip }"
|
|
25
|
+
<slot v-bind="{ hide: hideTooltip }" />
|
|
27
26
|
</wt-tooltip-floating>
|
|
28
27
|
</div>
|
|
29
28
|
</template>
|
|
@@ -43,10 +42,6 @@ const props = defineProps({
|
|
|
43
42
|
type: Boolean,
|
|
44
43
|
default: false,
|
|
45
44
|
},
|
|
46
|
-
contrast: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false,
|
|
49
|
-
},
|
|
50
45
|
placement: {
|
|
51
46
|
type: String,
|
|
52
47
|
default: 'auto',
|
|
@@ -133,18 +128,11 @@ onMounted(() => {
|
|
|
133
128
|
.wt-tooltip-floating {
|
|
134
129
|
@extend %typo-body-2;
|
|
135
130
|
padding: var(--spacing-2xs) var(--spacing-xs);
|
|
136
|
-
color: var(--
|
|
137
|
-
background: var(--
|
|
131
|
+
color: var(--wt-tooltip-text-color);
|
|
132
|
+
background: var(--wt-tooltip-background-color);
|
|
138
133
|
border-radius: var(--border-radius);
|
|
139
134
|
box-shadow: var(--elevation-10);
|
|
140
135
|
z-index: 1000;
|
|
141
136
|
}
|
|
142
|
-
|
|
143
|
-
&--contrast {
|
|
144
|
-
.wt-tooltip-floating {
|
|
145
|
-
color: var(--main-color);
|
|
146
|
-
background: var(--contrast-color);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
137
|
}
|
|
150
138
|
</style>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useCachedInterval } from '../useCachedInterval';
|
|
2
2
|
|
|
3
3
|
describe('useCachedInterval', () => {
|
|
4
|
-
it('subscribe', (
|
|
5
|
-
const callback =
|
|
4
|
+
it('subscribe', async () => {
|
|
5
|
+
const callback = vi.fn();
|
|
6
6
|
const { subscribe } = useCachedInterval({ timeout: 10 });
|
|
7
7
|
subscribe(callback);
|
|
8
8
|
expect(callback).toHaveBeenCalledTimes(1);
|
|
9
|
-
setTimeout(() => {
|
|
9
|
+
return await new Promise((resolve, reject) => setTimeout(() => {
|
|
10
10
|
expect(callback).toHaveBeenCalledTimes(2);
|
|
11
|
-
|
|
12
|
-
}, 10);
|
|
11
|
+
resolve();
|
|
12
|
+
}, 10));
|
|
13
13
|
});
|
|
14
14
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import './deprecated';
|
|
2
2
|
@import './palette';
|
|
3
|
+
@import './reusable/text-field';
|
|
3
4
|
|
|
4
5
|
:root {
|
|
5
6
|
// dp colors
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
--success-color: var(--green-darken-4);
|
|
36
37
|
--success-hover-color: var(--green-darken-3);
|
|
37
38
|
--success-light-color: var(--green-lighten-4);
|
|
38
|
-
--success-on-color: var(--
|
|
39
|
+
--success-on-color: var(--white);
|
|
39
40
|
|
|
40
41
|
// warning colors
|
|
41
42
|
--warning-color: var(--orange-accent-2);
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
--error-color: var(--red-accent-2);
|
|
48
49
|
--error-hover-color: var(--red-lighten-2);
|
|
49
50
|
--error-light-color: var(--red-lighten-4);
|
|
50
|
-
--error-on-color: var(--
|
|
51
|
+
--error-on-color: var(--white);
|
|
51
52
|
|
|
52
53
|
// info colors
|
|
53
54
|
--info-color: var(--blue-darken-1);
|
|
@@ -84,15 +85,15 @@
|
|
|
84
85
|
--sub-accent-color: var(--indigo-darken-3);
|
|
85
86
|
|
|
86
87
|
// typography colors
|
|
87
|
-
--main-
|
|
88
|
-
--
|
|
89
|
-
--
|
|
90
|
-
--link-color: var(--info-color);
|
|
88
|
+
--text-main-color: var(--grey-darken-3);
|
|
89
|
+
--text-disabled-color: var(--grey-lighten-1);
|
|
90
|
+
--text-error-color: var(--error-color);
|
|
91
|
+
--text-link-color: var(--info-color);
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
:root.theme--dark {
|
|
94
95
|
// dp colors
|
|
95
|
-
--dp-24-surface-color: hsl(
|
|
96
|
+
--dp-24-surface-color: hsl(225, 20%, 25%);
|
|
96
97
|
--dp-23-surface-color: hsl(225, 20%, 24%);
|
|
97
98
|
--dp-22-surface-color: hsl(225, 20%, 23%);
|
|
98
99
|
--dp-21-surface-color: hsl(225, 20%, 22%);
|
|
@@ -124,19 +125,19 @@
|
|
|
124
125
|
--success-color: var(--green-darken-4);
|
|
125
126
|
--success-hover-color: var(--green-darken-3);
|
|
126
127
|
--success-light-color: var(--green-lighten-3);
|
|
127
|
-
--success-on-color: var(--
|
|
128
|
+
--success-on-color: var(--black);
|
|
128
129
|
|
|
129
130
|
// warning colors
|
|
130
131
|
--warning-color: var(--orange-accent-2);
|
|
131
132
|
--warning-hover-color: var(--orange-accent-1);
|
|
132
133
|
--warning-light-color: var(--orange-lighten-3);
|
|
133
|
-
--warning-on-color: var(--
|
|
134
|
+
--warning-on-color: var(--black);
|
|
134
135
|
|
|
135
136
|
// error colors
|
|
136
137
|
--error-color: var(--red-accent-2);
|
|
137
138
|
--error-hover-color: var(--red-lighten-2);
|
|
138
139
|
--error-light-color: var(--red-lighten-3);
|
|
139
|
-
--error-on-color: var(--
|
|
140
|
+
--error-on-color: var(--black);
|
|
140
141
|
|
|
141
142
|
// info colors
|
|
142
143
|
--info-color: var(--blue-darken-1);
|
|
@@ -173,8 +174,8 @@
|
|
|
173
174
|
--sub-accent-color: var(--indigo-darken-3);
|
|
174
175
|
|
|
175
176
|
// typography colors
|
|
176
|
-
--main-
|
|
177
|
-
--
|
|
178
|
-
--
|
|
179
|
-
--link-color: var(--info-color);
|
|
177
|
+
--text-main-color: var(--grey-lighten-3);
|
|
178
|
+
--text-disabled-color: var(--grey-darken-1);
|
|
179
|
+
--text-error-color: var(--error-color);
|
|
180
|
+
--text-link-color: var(--info-color);
|
|
180
181
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// shared text field colors
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
// TODO: move to separate helper-text component
|
|
5
|
+
// helper
|
|
6
|
+
--wt-helper-text-color: var(--text-main-color);
|
|
7
|
+
--wt-helper-text-disabled-color: var(--text-disabled-color);
|
|
8
|
+
|
|
9
|
+
// placeholder
|
|
10
|
+
--wt-text-field-error-text-color: var(--error-color);
|
|
11
|
+
--wt-text-field-placeholder-color: var(--text-main-color);
|
|
12
|
+
--wt-text-field-placeholder-error-color: var(--error-color);
|
|
13
|
+
--wt-text-field-placeholder-disabled-color: var(--text-disabled-color);
|
|
14
|
+
|
|
15
|
+
// border
|
|
16
|
+
--wt-text-field-input-border-color: var(--grey-darken-1);
|
|
17
|
+
--wt-text-field-input-border-disabled-color: var(--dp-16-surface-color);
|
|
18
|
+
--wt-text-field-input-border-error-color: var(--error-color);
|
|
19
|
+
|
|
20
|
+
// input bg
|
|
21
|
+
--wt-text-field-input-background-disabled-color: var(--dp-16-surface-color);
|
|
22
|
+
|
|
23
|
+
// select
|
|
24
|
+
--wt-text-field-select-option-text-color: var(--text-main-color);
|
|
25
|
+
--wt-text-field-select-option-text-hover-color: var(--primary-on-color);
|
|
26
|
+
--wt-text-field-select-option-text-selected-color: var(--primary-on-color);
|
|
27
|
+
|
|
28
|
+
--wt-text-field-select-option-wrapper-border-color: var(--dp-22-surface-color);
|
|
29
|
+
--wt-text-field-select-option-background-color: var(--dp-22-surface-color);
|
|
30
|
+
--wt-text-field-select-option-background-hover-color: var(--primary-light-color);
|
|
31
|
+
--wt-text-field-select-option-background-selected-color: var(--primary-color);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:root.theme--dark {
|
|
35
|
+
--wt-text-field-input-border-color: var(--grey-lighten-1);
|
|
36
|
+
}
|
|
@@ -15,12 +15,12 @@ $vendors: (':-webkit', '-moz', ':-moz', '-ms');
|
|
|
15
15
|
font: inherit;
|
|
16
16
|
transition: var(--transition);
|
|
17
17
|
|
|
18
|
-
@if ($style == '
|
|
19
|
-
color: var(--
|
|
18
|
+
@if ($style == 'error') {
|
|
19
|
+
color: var(--wt-text-field-placeholder-error-color);
|
|
20
20
|
} @else if ($style == 'disabled') {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--wt-text-field-placeholder-disabled-color);
|
|
22
22
|
} @else {
|
|
23
|
-
color: var(--
|
|
23
|
+
color: var(--wt-text-field-placeholder-color);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@content;
|
|
@@ -35,15 +35,15 @@ $vendors: (':-webkit', '-moz', ':-moz', '-ms');
|
|
|
35
35
|
%wt-placeholder {
|
|
36
36
|
font: inherit;
|
|
37
37
|
transition: var(--transition);
|
|
38
|
-
color: var(--
|
|
38
|
+
color: var(--wt-text-field-placeholder-color);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
%wt-placeholder--
|
|
41
|
+
%wt-placeholder--disabled {
|
|
42
42
|
@extend %wt-placeholder;
|
|
43
|
-
color: var(--
|
|
43
|
+
color: var(--wt-text-field-placeholder-disabled-color);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
%wt-placeholder--
|
|
46
|
+
%wt-placeholder--error {
|
|
47
47
|
@extend %wt-placeholder;
|
|
48
|
-
color: var(--
|
|
48
|
+
color: var(--wt-text-field-placeholder-error-color);
|
|
49
49
|
}
|