@koobiq/components 17.0.0-rc.6 → 17.0.0-rc.8
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/alert/_alert-theme.scss +19 -33
- package/alert/alert.component.scss +49 -141
- package/autocomplete/_autocomplete-theme.scss +3 -2
- package/autocomplete/autocomplete.scss +7 -14
- package/badge/_badge-theme.scss +31 -45
- package/badge/badge.component.scss +18 -38
- package/button/_button-base.scss +7 -13
- package/button/_button-theme.scss +29 -85
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -16
- package/button-toggle/_button-toggle-theme.scss +18 -18
- package/button-toggle/button-toggle.scss +14 -34
- package/card/_card-theme.scss +19 -17
- package/card/card.component.scss +2 -4
- package/checkbox/_checkbox-theme.scss +44 -43
- package/checkbox/checkbox.scss +23 -21
- package/code-block/_code-block-theme.scss +27 -26
- package/code-block/actionbar.component.scss +7 -18
- package/code-block/code-block.scss +21 -66
- package/core/form-field/form-field-ref.d.ts +2 -0
- package/core/forms/_forms-theme.scss +4 -7
- package/core/forms/_forms.scss +13 -42
- package/core/locales/locale-service.d.ts +1 -0
- package/core/option/_optgroup-theme.scss +4 -5
- package/core/option/_option-action-theme.scss +7 -7
- package/core/option/_option-theme.scss +16 -20
- package/core/select/common.d.ts +35 -0
- package/core/select/index.d.ts +1 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
- package/core/styles/common/_groups.scss +3 -5
- package/core/styles/common/_list.scss +14 -18
- package/core/styles/common/_popup.scss +5 -4
- package/core/styles/common/_select.scss +11 -16
- package/core/styles/common/_tokens.scss +30 -9
- package/core/styles/theming/_components-theming.scss +151 -131
- package/core/styles/visual/_layout.scss +14 -16
- package/datepicker/_datepicker-theme.scss +24 -39
- package/datepicker/calendar-body.scss +3 -8
- package/datepicker/calendar-header.scss +4 -9
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +4 -12
- package/datepicker/datepicker-input.scss +0 -4
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +3 -1
- package/divider/divider.scss +9 -25
- package/dl/_dl-theme.scss +5 -6
- package/dl/dl.scss +5 -19
- package/dropdown/_dropdown-theme.scss +21 -21
- package/dropdown/dropdown-item.scss +5 -11
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.scss +6 -14
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/locales/locale-service.mjs +5 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/select/common.mjs +120 -0
- package/esm2022/core/select/index.mjs +2 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/list/list-selection.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +18 -114
- package/esm2022/select/select.module.mjs +28 -28
- package/esm2022/table/table.component.mjs +2 -2
- package/esm2022/tabs/tab-group.component.mjs +54 -12
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -3
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +2 -2
- package/esm2022/timepicker/timepicker.directive.mjs +10 -2
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toast/toast.service.mjs +17 -12
- package/esm2022/tooltip/tooltip.component.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +9 -37
- package/esm2022/tree-select/tree-select.module.mjs +31 -11
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -5
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +4 -4
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +124 -7
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +5 -5
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +4 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +6 -6
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +14 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-navbar.mjs +6 -6
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +2 -2
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +46 -142
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-tabs.mjs +56 -14
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +20 -7
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +9 -1
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +6 -6
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +1 -1
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +19 -13
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs +37 -44
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +2 -2
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +109 -68
- package/file-upload/file-upload.scss +0 -5
- package/file-upload/multiple-file-upload.component.scss +35 -99
- package/file-upload/single-file-upload.component.scss +12 -31
- package/form-field/_form-field-theme.scss +32 -34
- package/form-field/_hint-theme.scss +16 -19
- package/form-field/cleaner.scss +3 -8
- package/form-field/form-field.scss +11 -12
- package/form-field/hint.scss +5 -7
- package/form-field/password-toggle.scss +3 -9
- package/form-field/stepper.scss +4 -10
- package/icon/_icon-button-theme.scss +35 -35
- package/icon/_icon-item-theme.scss +46 -31
- package/icon/_icon-theme.scss +9 -15
- package/icon/icon-button.scss +5 -17
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +12 -7
- package/icon/icon.scss +0 -5
- package/input/_input-theme.scss +2 -3
- package/input/input.scss +2 -1
- package/link/_link-theme.scss +25 -42
- package/list/_list-theme.scss +18 -17
- package/list/list.scss +3 -5
- package/loader-overlay/_loader-overlay-theme.scss +13 -16
- package/loader-overlay/loader-overlay.scss +9 -32
- package/markdown/_markdown-theme.scss +41 -44
- package/markdown/markdown.scss +38 -88
- package/modal/_modal-confirm.scss +2 -6
- package/modal/_modal-theme.scss +11 -12
- package/modal/modal.scss +18 -24
- package/navbar/_navbar-item_horizontal.scss +28 -28
- package/navbar/_navbar-item_vertical.scss +31 -30
- package/navbar/_navbar-theme.scss +21 -22
- package/navbar/navbar-brand.scss +24 -26
- package/navbar/navbar-divider.scss +4 -7
- package/navbar/navbar-item.scss +11 -13
- package/navbar/navbar.scss +2 -5
- package/navbar/vertical-navbar.scss +3 -5
- package/package.json +9 -9
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover.scss +18 -24
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -10
- package/progress-bar/progress-bar.scss +6 -18
- package/progress-spinner/_progress-spinner-theme.scss +6 -7
- package/progress-spinner/progress-spinner.scss +8 -17
- package/radio/_radio-theme.scss +29 -37
- package/radio/radio.scss +20 -39
- package/risk-level/_risk-level-theme.scss +25 -30
- package/risk-level/risk-level.component.scss +5 -8
- package/schematics/ng-add/index.js +6 -6
- package/scrollbar/_scrollbar-component-theme.scss +14 -17
- package/scrollbar/scrollbar.component.scss +13 -20
- package/select/_select-theme.scss +14 -15
- package/select/select.component.d.ts +2 -32
- package/select/select.module.d.ts +1 -1
- package/select/select.scss +3 -10
- package/sidepanel/_sidepanel-theme.scss +8 -9
- package/sidepanel/sidepanel.scss +19 -30
- package/splitter/_splitter-theme.scss +3 -3
- package/table/_table-theme.scss +9 -8
- package/table/table.scss +12 -12
- package/tabs/_tabs-common.scss +4 -7
- package/tabs/_tabs-theme.scss +77 -44
- package/tabs/tab-group.component.d.ts +9 -3
- package/tabs/tab-group.scss +2 -7
- package/tabs/tab-header.scss +0 -4
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -7
- package/tags/_tag-theme.scss +23 -26
- package/tags/tag-default-options.d.ts +1 -0
- package/tags/tag-input.d.ts +7 -1
- package/tags/tag-list.scss +6 -5
- package/tags/tag.scss +6 -9
- package/textarea/_textarea-theme.scss +2 -4
- package/textarea/textarea.scss +4 -6
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +8 -9
- package/timezone/timezone-option.component.scss +5 -7
- package/timezone/timezone-select.component.d.ts +2 -1
- package/timezone/timezone-select.component.scss +2 -3
- package/toast/_toast-theme.scss +15 -14
- package/toast/toast-container.component.scss +4 -7
- package/toast/toast.component.scss +20 -25
- package/toast/toast.service.d.ts +8 -4
- package/toggle/_toggle-theme.scss +48 -42
- package/toggle/toggle.scss +9 -21
- package/tooltip/_tooltip-theme.scss +13 -16
- package/tooltip/tooltip.scss +8 -10
- package/tree/_tree-theme.scss +20 -22
- package/tree/toggle.scss +3 -5
- package/tree/tree-option.scss +5 -6
- package/tree-select/_tree-select-theme.scss +12 -14
- package/tree-select/tree-select.component.d.ts +4 -17
- package/tree-select/tree-select.module.d.ts +1 -2
- package/tree-select/tree-select.scss +1 -5
- package/core/styles/_variables.scss +0 -1
|
@@ -3,46 +3,41 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
@mixin kbq-form-field-state($state) {
|
|
9
|
+
@mixin kbq-form-field-state($component, $state-name) {
|
|
10
|
+
$state: map.get($component, $state-name);
|
|
11
|
+
|
|
9
12
|
.kbq-form-field__container {
|
|
10
|
-
border-color: map.get($state, border);
|
|
11
|
-
background-color: map.get($state, background);
|
|
13
|
+
border-color: kbq-css-variable(form-field-#{$state-name}-border, map.get($state, border));
|
|
14
|
+
background-color: kbq-css-variable(form-field-#{$state-name}-background, map.get($state, background));
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
.kbq-input,
|
|
15
18
|
.kbq-tag-input,
|
|
16
19
|
.kbq-textarea {
|
|
17
|
-
color: map.get($state, text);
|
|
20
|
+
color: kbq-css-variable(form-field-#{$state-name}-text, map.get($state, text));
|
|
18
21
|
|
|
19
22
|
&::placeholder {
|
|
20
|
-
color: map.get($state, placeholder);
|
|
23
|
+
color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
&::-ms-input-placeholder {
|
|
24
|
-
color: map.get($state, placeholder);
|
|
27
|
+
color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
&::-webkit-input-placeholder {
|
|
28
|
-
color: map.get($state, placeholder);
|
|
31
|
+
color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
@mixin kbq-form-field-theme($theme) {
|
|
34
|
-
$foreground: map.get($theme, foreground);
|
|
35
|
-
|
|
36
37
|
.kbq-form-field {
|
|
37
|
-
$form-field: map.get(
|
|
38
|
-
|
|
39
|
-
$default: map.get($form-field, default);
|
|
40
|
-
$autofill: map.get($form-field, autofill);
|
|
41
|
-
$error: map.get($form-field, error);
|
|
42
|
-
$focused: map.get($form-field, focused);
|
|
43
|
-
$disabled: map.get($form-field, disabled);
|
|
38
|
+
$form-field: map.get($theme, components, form-field);
|
|
44
39
|
|
|
45
|
-
@include kbq-form-field-state($default);
|
|
40
|
+
@include kbq-form-field-state($form-field, default);
|
|
46
41
|
|
|
47
42
|
/* stylelint-disable no-descending-specificity */
|
|
48
43
|
& .kbq-input {
|
|
@@ -50,35 +45,42 @@
|
|
|
50
45
|
&:-webkit-autofill,
|
|
51
46
|
&:-webkit-autofill:hover,
|
|
52
47
|
&:-webkit-autofill:focus {
|
|
53
|
-
-webkit-box-shadow: 0 0 0 40rem
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
-webkit-box-shadow: 0 0 0 40rem kbq-css-variable(
|
|
49
|
+
form-field-states-autofill-background, map.get($form-field, states-autofill, background)) inset;
|
|
50
|
+
-webkit-text-fill-color: kbq-css-variable(
|
|
51
|
+
form-field-states-autofill-text, map.get($form-field, states-autofill, text));
|
|
52
|
+
caret-color: kbq-css-variable(
|
|
53
|
+
form-field-states-autofill-text, map.get($form-field, states-autofill, text));
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
&.cdk-focused {
|
|
60
|
-
@include kbq-form-field-state($focused);
|
|
58
|
+
@include kbq-form-field-state($form-field, states-focused);
|
|
61
59
|
|
|
62
60
|
& .kbq-form-field__container {
|
|
63
|
-
box-shadow: 0 0 0 1px
|
|
61
|
+
box-shadow: 0 0 0.1px 1px kbq-css-variable(
|
|
62
|
+
form-field-states-focused-focu-outline, map.get($form-field, states-focused, focus-outline));
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
&.kbq-form-field_invalid,
|
|
68
67
|
&.ng-invalid {
|
|
69
|
-
@include kbq-form-field-state($error);
|
|
68
|
+
@include kbq-form-field-state($form-field, states-error);
|
|
70
69
|
|
|
71
70
|
&.cdk-focused .kbq-form-field__container {
|
|
72
|
-
box-shadow: 0 0 0 1px
|
|
71
|
+
box-shadow: 0 0 0.1px 1px kbq-css-variable(
|
|
72
|
+
form-field-states-error-focu-outline, map.get($form-field, states-error, focus-outline));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&.kbq-disabled {
|
|
77
|
-
@include kbq-form-field-state($disabled);
|
|
77
|
+
@include kbq-form-field-state($form-field, states-disabled);
|
|
78
78
|
|
|
79
79
|
.kbq-icon {
|
|
80
|
-
color: map.get($disabled, text);
|
|
81
|
-
-webkit-text-fill-color:
|
|
80
|
+
color: kbq-css-variable(form-field-disabled-text, map.get($form-field, disabled, text));
|
|
81
|
+
-webkit-text-fill-color: kbq-css-variable(
|
|
82
|
+
form-field-disabled-text, map.get($form-field, disabled, text)
|
|
83
|
+
);
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
/* stylelint-enable no-descending-specificity */
|
|
@@ -86,21 +88,17 @@
|
|
|
86
88
|
|
|
87
89
|
.kbq-form-field__hint {
|
|
88
90
|
& > .kbq-hint:not(.kbq-password-hint, .kbq-contrast-fade, .kbq-success, .kbq-warning, .kbq-error) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
color: map.get($form-field-hint, text);
|
|
91
|
+
color: kbq-css-variable(form-field-hint-text, map.get($theme, components, form-field-hint, text));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
@mixin kbq-form-field-typography($config) {
|
|
97
|
-
$tokens: map.get($config, tokens);
|
|
98
|
-
|
|
99
97
|
.kbq-form-field {
|
|
100
|
-
@include kbq-typography-
|
|
98
|
+
@include kbq-typography-css-variables(form-field, text);
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
.kbq-form-field__hint > .kbq-hint:not(.kbq-password-hint) .kbq-hint__text {
|
|
104
|
-
@include kbq-typography-
|
|
102
|
+
@include kbq-typography-css-variables(form-field-hint, text);
|
|
105
103
|
}
|
|
106
104
|
}
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
@mixin kbq-hint-color($
|
|
9
|
-
|
|
9
|
+
@mixin kbq-hint-color($component, $type, $style-name) {
|
|
10
|
+
$style: map.get($component, $type, $style-name);
|
|
11
|
+
|
|
12
|
+
color: kbq-css-variable(hint-#{$type}-#{$style-name}-text, map.get($style, text));
|
|
10
13
|
|
|
11
14
|
& .kbq-icon {
|
|
12
|
-
color: map.get($
|
|
15
|
+
color: kbq-css-variable(hint-#{$type}-#{$style-name}-icon, map.get($style, icon)) !important;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
|
|
@@ -18,54 +21,48 @@
|
|
|
18
21
|
$hint: map.get(map.get($theme, components), hint);
|
|
19
22
|
|
|
20
23
|
.kbq-hint {
|
|
21
|
-
$fill-text-on: map.get($hint, fill-text-on);
|
|
22
|
-
|
|
23
24
|
&.kbq-contrast-fade {
|
|
24
|
-
@include kbq-hint-color(
|
|
25
|
+
@include kbq-hint-color($hint, fill-text-on, fade-contrast);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
&.kbq-success {
|
|
28
|
-
@include kbq-hint-color(
|
|
29
|
+
@include kbq-hint-color($hint, fill-text-on, success);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
&.kbq-warning {
|
|
32
|
-
@include kbq-hint-color(
|
|
33
|
+
@include kbq-hint-color($hint, fill-text-on, warning);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
&.kbq-error {
|
|
36
|
-
@include kbq-hint-color(
|
|
37
|
+
@include kbq-hint-color($hint, fill-text-on, error);
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.kbq-hint.kbq-hint_fill-text-off {
|
|
41
|
-
$fill-text-off: map.get($hint, fill-text-off);
|
|
42
|
-
|
|
43
42
|
&.kbq-contrast-fade {
|
|
44
|
-
@include kbq-hint-color(
|
|
43
|
+
@include kbq-hint-color($hint, fill-text-off, fade-contrast);
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
&.kbq-success {
|
|
48
|
-
@include kbq-hint-color(
|
|
47
|
+
@include kbq-hint-color($hint, fill-text-off, success);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
&.kbq-warning {
|
|
52
|
-
@include kbq-hint-color(
|
|
51
|
+
@include kbq-hint-color($hint, fill-text-off, warning);
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
&.kbq-error {
|
|
56
|
-
@include kbq-hint-color(
|
|
55
|
+
@include kbq-hint-color($hint, fill-text-off, error);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
@mixin kbq-hint-typography($config) {
|
|
62
|
-
$tokens: map.get($config, tokens);
|
|
63
|
-
|
|
64
61
|
.kbq-hint .kbq-hint__text {
|
|
65
|
-
@include kbq-typography-
|
|
62
|
+
@include kbq-typography-css-variables(hint, normal-text);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
.kbq-hint.kbq-hint_compact .kbq-hint__text {
|
|
69
|
-
@include kbq-typography-
|
|
66
|
+
@include kbq-typography-css-variables(hint, compact-text);
|
|
70
67
|
}
|
|
71
68
|
}
|
package/form-field/cleaner.scss
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-cleaner {
|
|
10
8
|
display: flex;
|
|
11
9
|
align-items: center;
|
|
12
10
|
justify-content: center;
|
|
13
11
|
|
|
14
|
-
width:
|
|
15
|
-
margin-right:
|
|
16
|
-
--kbq-form-field-size-icon-button-margin-right,
|
|
17
|
-
map.get($tokens, form-field-size-icon-button-margin-right)
|
|
18
|
-
);
|
|
12
|
+
width: kbq-css-variable(form-field-size-icon-button-size);
|
|
13
|
+
margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
|
|
19
14
|
height: 100%;
|
|
20
15
|
|
|
21
16
|
cursor: pointer;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../core/forms/forms';
|
|
5
5
|
|
|
6
6
|
@use '../core/styles/tokens';
|
|
7
|
+
@use '../core/styles/common/tokens' as *;
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -20,13 +21,13 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.kbq-form-field:not(.kbq-form-field-type-textarea) {
|
|
23
|
-
height:
|
|
24
|
+
height: kbq-css-variable(form-field-size-height);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
&,
|
|
27
28
|
.kbq-input,
|
|
28
29
|
.kbq-textarea {
|
|
29
|
-
border-radius:
|
|
30
|
+
border-radius: kbq-css-variable(form-field-size-border-radius);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
&:hover {
|
|
@@ -72,17 +73,17 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
& + .kbq-password-hint {
|
|
75
|
-
margin-top:
|
|
76
|
+
margin-top: kbq-css-variable(size-m);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
.kbq-form-field__container {
|
|
80
81
|
position: relative;
|
|
81
82
|
|
|
82
|
-
border-width:
|
|
83
|
+
border-width: kbq-css-variable(form-field-size-border-width);
|
|
83
84
|
border-style: solid;
|
|
84
85
|
border-color: transparent;
|
|
85
|
-
border-radius:
|
|
86
|
+
border-radius: kbq-css-variable(form-field-size-border-radius);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
.kbq-form-field__prefix,
|
|
@@ -122,12 +123,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
122
123
|
justify-content: center;
|
|
123
124
|
align-items: center;
|
|
124
125
|
|
|
125
|
-
width:
|
|
126
|
+
width: kbq-css-variable(form-field-size-button-width);
|
|
126
127
|
|
|
127
128
|
.kbq-stepper-step-up,
|
|
128
129
|
.kbq-stepper-step-down {
|
|
129
130
|
cursor: pointer;
|
|
130
|
-
width:
|
|
131
|
+
width: kbq-css-variable(form-field-size-button-width);
|
|
131
132
|
text-align: center;
|
|
132
133
|
}
|
|
133
134
|
|
|
@@ -139,16 +140,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
139
140
|
.kbq-form-field__hint {
|
|
140
141
|
display: flex;
|
|
141
142
|
flex-direction: column;
|
|
142
|
-
margin-top:
|
|
143
|
+
margin-top: kbq-css-variable(form-field-hint-size-margin-top);
|
|
143
144
|
|
|
144
145
|
& .kbq-password-hint:first-child {
|
|
145
|
-
margin-top:
|
|
146
|
+
margin-top: kbq-css-variable(size-s);
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.kbq-password-hint {
|
|
150
|
-
margin-top:
|
|
151
|
+
margin-top: kbq-css-variable(form-field-hint-size-gap);
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
153
|
/* stylelint-enable no-descending-specificity */
|
package/form-field/hint.scss
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-hint {
|
|
10
8
|
display: flex;
|
|
11
9
|
|
|
12
10
|
& .kbq-icon {
|
|
13
|
-
margin-
|
|
11
|
+
margin-top: kbq-css-variable(hint-size-normal-margin-top);
|
|
12
|
+
margin-right: kbq-css-variable(hint-size-normal-content-padding);
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
&.kbq-hint_compact {
|
|
17
16
|
& .kbq-icon {
|
|
18
|
-
margin-
|
|
19
|
-
|
|
20
|
-
);
|
|
17
|
+
margin-top: kbq-css-variable(hint-size-compact-margin-top);
|
|
18
|
+
margin-right: kbq-css-variable(hint-size-compact-content-padding);
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
5
|
|
|
9
6
|
|
|
10
7
|
.kbq-password-toggle {
|
|
@@ -12,11 +9,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
12
9
|
align-items: center;
|
|
13
10
|
justify-content: center;
|
|
14
11
|
|
|
15
|
-
width:
|
|
16
|
-
margin-right:
|
|
17
|
-
--kbq-form-field-size-icon-button-margin-right,
|
|
18
|
-
map.get($tokens, form-field-size-icon-button-margin-right)
|
|
19
|
-
);
|
|
12
|
+
width: kbq-css-variable(form-field-size-icon-button-size);
|
|
13
|
+
margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
|
|
20
14
|
height: 100%;
|
|
21
15
|
|
|
22
16
|
&::-moz-focus-inner {
|
package/form-field/stepper.scss
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
5
|
|
|
9
6
|
|
|
10
7
|
.kbq-stepper {
|
|
@@ -13,17 +10,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
13
10
|
justify-content: center;
|
|
14
11
|
align-items: center;
|
|
15
12
|
|
|
16
|
-
width:
|
|
17
|
-
margin-right:
|
|
18
|
-
--kbq-form-field-size-icon-button-margin-right,
|
|
19
|
-
map.get($tokens, form-field-size-icon-button-margin-right)
|
|
20
|
-
);
|
|
13
|
+
width: kbq-css-variable(form-field-size-icon-button-size);
|
|
14
|
+
margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
|
|
21
15
|
height: 100%;
|
|
22
16
|
|
|
23
17
|
.kbq-stepper-step-up,
|
|
24
18
|
.kbq-stepper-step-down {
|
|
25
19
|
cursor: pointer;
|
|
26
|
-
width:
|
|
20
|
+
width: kbq-css-variable(form-field-size-button-width);
|
|
27
21
|
text-align: center;
|
|
28
22
|
}
|
|
29
23
|
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
@mixin kbq-icon-button-theme($
|
|
7
|
-
$icon-button: map.get(
|
|
8
|
-
|
|
9
|
-
$theme: map.get($icon-button, theme);
|
|
10
|
-
$contrast: map.get($icon-button, contrast);
|
|
11
|
-
$fade-contrast: map.get($icon-button, fade-contrast);
|
|
12
|
-
$error: map.get($icon-button, error);
|
|
13
|
-
$success: map.get($icon-button, success);
|
|
14
|
-
$warning: map.get($icon-button, warning);
|
|
7
|
+
@mixin kbq-icon-button-theme($theme) {
|
|
8
|
+
$icon-button: map.get($theme, components, icon-button);
|
|
15
9
|
|
|
16
10
|
.kbq-icon-button {
|
|
17
11
|
&:focus {
|
|
@@ -19,111 +13,117 @@
|
|
|
19
13
|
}
|
|
20
14
|
|
|
21
15
|
&.kbq-theme {
|
|
22
|
-
color: map.get($theme, default);
|
|
16
|
+
color: kbq-css-variable(icon-button-heme-default, map.get($icon-button, theme, default));
|
|
23
17
|
|
|
24
18
|
&:active,
|
|
25
19
|
&.kbq-active {
|
|
26
|
-
color: map.get($theme, state-active);
|
|
20
|
+
color: kbq-css-variable(icon-button-heme-state-active, map.get($icon-button, theme, state-active));
|
|
27
21
|
}
|
|
28
22
|
|
|
29
23
|
&:not(.kbq-disabled):hover {
|
|
30
|
-
color: map.get($theme, state-hover);
|
|
24
|
+
color: kbq-css-variable(icon-button-heme-state-hover, map.get($icon-button, theme, state-hover));
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
&.kbq-disabled {
|
|
34
|
-
color: map.get($theme, state-disabled);
|
|
28
|
+
color: kbq-css-variable(icon-button-heme-state-disabled, map.get($icon-button, theme, state-disabled));
|
|
35
29
|
}
|
|
36
30
|
}
|
|
37
31
|
|
|
38
32
|
&.kbq-contrast {
|
|
39
|
-
color: map.get($contrast, default);
|
|
33
|
+
color: kbq-css-variable(icon-button-ontrast-default, map.get($icon-button, contrast, default));
|
|
40
34
|
|
|
41
35
|
&:active,
|
|
42
36
|
&.kbq-active {
|
|
43
|
-
color:
|
|
37
|
+
color: kbq-css-variable(
|
|
38
|
+
icon-button-ontrast-state-active, map.get($icon-button, contrast, state-active));
|
|
44
39
|
}
|
|
45
40
|
|
|
46
41
|
&:not(.kbq-disabled):hover {
|
|
47
|
-
color: map.get($contrast, state-hover);
|
|
42
|
+
color: kbq-css-variable(icon-button-ontrast-state-hover, map.get($icon-button, contrast, state-hover));
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
&.kbq-disabled {
|
|
51
|
-
color:
|
|
46
|
+
color: kbq-css-variable(
|
|
47
|
+
icon-button-ontrast-state-disabled, map.get($icon-button, contrast, state-disabled));
|
|
52
48
|
}
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
&.kbq-contrast-fade {
|
|
56
|
-
color: map.get($fade-contrast, default);
|
|
52
|
+
color: kbq-css-variable(icon-button-ade-contrast-default, map.get($icon-button, fade-contrast, default));
|
|
57
53
|
|
|
58
54
|
&:active,
|
|
59
55
|
&.kbq-active {
|
|
60
|
-
color:
|
|
56
|
+
color: kbq-css-variable(
|
|
57
|
+
icon-button-ade-contrast-state-active, map.get($icon-button, fade-contrast, state-active));
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
&:not(.kbq-disabled):hover {
|
|
64
|
-
color:
|
|
61
|
+
color: kbq-css-variable(
|
|
62
|
+
icon-button-ade-contrast-state-hover, map.get($icon-button, fade-contrast, state-hover));
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
&.kbq-disabled {
|
|
68
|
-
color:
|
|
66
|
+
color: kbq-css-variable(
|
|
67
|
+
icon-button-ade-contrast-state-disabled, map.get($icon-button, fade-contrast, state-disabled));
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
&.kbq-error {
|
|
73
|
-
color: map.get($error, default);
|
|
72
|
+
color: kbq-css-variable(icon-button-rror-default, map.get($icon-button, error, default));
|
|
74
73
|
|
|
75
74
|
&:active,
|
|
76
75
|
&.kbq-active {
|
|
77
|
-
color: map.get($error, state-active);
|
|
76
|
+
color: kbq-css-variable(icon-button-rror-state-active, map.get($icon-button, error, state-active));
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
&:not(.kbq-disabled):hover {
|
|
81
|
-
color: map.get($error, state-hover);
|
|
80
|
+
color: kbq-css-variable(icon-button-rror-state-hover, map.get($icon-button, error, state-hover));
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
&.kbq-disabled {
|
|
85
|
-
color: map.get($error, state-disabled);
|
|
84
|
+
color: kbq-css-variable(icon-button-rror-state-disabled, map.get($icon-button, error, state-disabled));
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
&.kbq-success {
|
|
90
|
-
color: map.get($success, default);
|
|
89
|
+
color: kbq-css-variable(icon-button-uccess-default, map.get($icon-button, success, default));
|
|
91
90
|
|
|
92
91
|
&:active,
|
|
93
92
|
&.kbq-active {
|
|
94
|
-
color: map.get($success, state-active);
|
|
93
|
+
color: kbq-css-variable(icon-button-uccess-state-active, map.get($icon-button, success, state-active));
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
&:not(.kbq-disabled):hover {
|
|
98
|
-
color: map.get($success, state-hover);
|
|
97
|
+
color: kbq-css-variable(icon-button-uccess-state-hover, map.get($icon-button, success, state-hover));
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
&.kbq-disabled {
|
|
102
|
-
color:
|
|
101
|
+
color: kbq-css-variable(
|
|
102
|
+
icon-button-uccess-state-disabled, map.get($icon-button, success, state-disabled));
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&.kbq-warning {
|
|
107
|
-
color: map.get($
|
|
107
|
+
color: kbq-css-variable(icon-button-default, map.get($icon-button, default));
|
|
108
108
|
|
|
109
109
|
&:active,
|
|
110
110
|
&.kbq-active {
|
|
111
|
-
color: map.get($
|
|
111
|
+
color: kbq-css-variable(icon-button-state-active, map.get($icon-button, state-active));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&:not(.kbq-disabled):hover {
|
|
115
|
-
color: map.get($
|
|
115
|
+
color: kbq-css-variable(icon-button-state-hover, map.get($icon-button, state-hover));
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
&.kbq-disabled {
|
|
119
|
-
color: map.get($
|
|
119
|
+
color: kbq-css-variable(icon-button-state-disabled, map.get($icon-button, state-disabled));
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&.cdk-keyboard-focused {
|
|
124
124
|
box-shadow:
|
|
125
|
-
inset 0 0 0 1px map.get(
|
|
126
|
-
0 0 0 1px map.get(
|
|
125
|
+
inset 0 0 0.1px 1px map.get($theme, states, focused-color),
|
|
126
|
+
0 0 0.1px 1px map.get($theme, states, focused-color);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|