@koobiq/components 18.5.2 → 18.6.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/accordion/_accordion-theme.scss +3 -3
- package/alert/_alert-theme.scss +3 -3
- package/badge/_badge-theme.scss +8 -4
- package/badge/badge-tokens.scss +8 -0
- package/badge/badge.component.d.ts +1 -0
- package/button/_button-theme.scss +2 -2
- package/button/button-tokens.scss +3 -6
- package/button/button.scss +13 -8
- package/button-toggle/_button-toggle-theme.scss +1 -1
- package/checkbox/_checkbox-theme.scss +4 -4
- package/checkbox/checkbox-tokens.scss +4 -4
- package/code-block/_code-block-theme.scss +4 -4
- package/core/forms/_forms-theme.scss +1 -1
- package/core/option/_optgroup-theme.scss +2 -2
- package/core/option/_option-action-theme.scss +1 -1
- package/core/option/_option-theme.scss +2 -2
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +4 -4
- package/core/styles/theming/_theming.scss +2 -42
- package/core/styles/typography/_typography.scss +120 -159
- package/core/styles/visual/_layout.scss +1 -1
- package/datepicker/_datepicker-theme.scss +2 -2
- package/dl/_dl-theme.scss +2 -2
- package/dl/dl-tokens.scss +2 -2
- package/dropdown/_dropdown-theme.scss +8 -4
- package/empty-state/_empty-state-theme.scss +4 -4
- package/esm2022/badge/badge.component.mjs +4 -3
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/option/action.mjs +2 -2
- package/esm2022/core/option/optgroup.mjs +2 -2
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dl/dl.component.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/icon/icon-button.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +3 -3
- package/esm2022/splitter/splitter.component.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-badge.mjs +3 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +2 -2
- 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 +2 -2
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +7 -7
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -2
- package/fesm2022/koobiq-components-dropdown.mjs +2 -2
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +2 -2
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +2 -2
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +2 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +7 -7
- package/form-field/_form-field-theme.scss +2 -2
- package/form-field/_hint-theme.scss +2 -2
- package/icon/_icon-button-theme.scss +2 -2
- package/input/_input-theme.scss +2 -2
- package/link/_link-theme.scss +3 -3
- package/list/_list-theme.scss +2 -2
- package/loader-overlay/_loader-overlay-theme.scss +4 -4
- package/markdown/_markdown-theme.scss +9 -9
- package/markdown/markdown-tokens.scss +23 -23
- package/modal/_modal-theme.scss +2 -2
- package/navbar/_navbar-theme.scss +2 -2
- package/package.json +6 -6
- package/popover/_popover-theme.scss +2 -2
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +2 -2
- package/progress-spinner/_progress-spinner-theme.scss +2 -2
- package/radio/_radio-theme.scss +4 -4
- package/risk-level/_risk-level-theme.scss +1 -1
- package/schematics/collection.json +5 -0
- package/schematics/migrations/css-selectors/data.js +65 -0
- package/schematics/migrations/css-selectors/index.js +103 -0
- package/schematics/migrations/css-selectors/schema.json +25 -0
- package/schematics/ng-add/index.js +4 -4
- package/select/_select-theme.scss +5 -5
- package/sidepanel/_sidepanel-theme.scss +2 -2
- package/splitter/_splitter-theme.scss +1 -1
- package/table/_table-theme.scss +2 -2
- package/tabs/_tabs-theme.scss +1 -1
- package/tags/_tag-theme.scss +2 -2
- package/textarea/_textarea-theme.scss +1 -1
- package/timezone/_timezone-option-theme.scss +4 -4
- package/toast/_toast-theme.scss +2 -2
- package/toast/toast.component.scss +6 -1
- package/toggle/_toggle-theme.scss +5 -5
- package/tooltip/_tooltip-theme.scss +2 -2
- package/tree/_tree-theme.scss +2 -2
- package/tree-select/_tree-select-theme.scss +3 -3
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
@mixin kbq-accordion-typography() {
|
|
46
46
|
.kbq-accordion-header,
|
|
47
47
|
.kbq-accordion-trigger {
|
|
48
|
-
@include kbq-typography-level-to-
|
|
48
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-big);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.kbq-accordion-trigger__caption {
|
|
52
|
-
@include kbq-typography-level-to-
|
|
52
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.kbq-accordion-content {
|
|
56
|
-
@include kbq-typography-level-to-
|
|
56
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
57
57
|
}
|
|
58
58
|
}
|
package/alert/_alert-theme.scss
CHANGED
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
|
|
65
65
|
@mixin kbq-alert-typography() {
|
|
66
66
|
.kbq-alert {
|
|
67
|
-
@include kbq-typography-level-to-
|
|
67
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
68
68
|
|
|
69
69
|
.kbq-alert__title {
|
|
70
|
-
@include kbq-typography-level-to-
|
|
70
|
+
@include kbq-typography-level-to-styles-css-variables(typography, subheading);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&.kbq-alert_compact .kbq-alert__title {
|
|
74
|
-
@include kbq-typography-level-to-
|
|
74
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-big-strong);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
package/badge/_badge-theme.scss
CHANGED
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
@include kbq-badge-style(filled, fade-on, error);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
&.kbq-badge_contrast {
|
|
47
|
+
@include kbq-badge-style(filled, fade-off, contrast);
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
&.kbq-badge_theme {
|
|
47
51
|
@include kbq-badge-style(filled, fade-off, theme);
|
|
48
52
|
}
|
|
@@ -85,18 +89,18 @@
|
|
|
85
89
|
|
|
86
90
|
@mixin kbq-badge-typography() {
|
|
87
91
|
.kbq-badge {
|
|
88
|
-
@include kbq-typography-level-to-
|
|
92
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
|
|
89
93
|
|
|
90
94
|
& .kbq-badge-caption {
|
|
91
|
-
@include kbq-typography-level-to-
|
|
95
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
92
96
|
}
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
.kbq-badge_compact {
|
|
96
|
-
@include kbq-typography-level-to-
|
|
100
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact-medium);
|
|
97
101
|
|
|
98
102
|
& .kbq-badge-caption {
|
|
99
|
-
@include kbq-typography-level-to-
|
|
103
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
100
104
|
}
|
|
101
105
|
}
|
|
102
106
|
}
|
package/badge/badge-tokens.scss
CHANGED
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
28
|
+
--kbq-badge-filled-fade-off-contrast-background: var(--kbq-background-contrast);
|
|
29
|
+
--kbq-badge-filled-fade-off-contrast-color: var(--kbq-foreground-on-contrast);
|
|
30
|
+
--kbq-badge-filled-fade-off-contrast-caption: var(--kbq-foreground-on-contrast);
|
|
31
|
+
--kbq-badge-filled-fade-off-contrast-icon: var(--kbq-icon-on-contrast);
|
|
28
32
|
--kbq-badge-filled-fade-off-theme-background: var(--kbq-background-theme);
|
|
29
33
|
--kbq-badge-filled-fade-off-theme-color: var(--kbq-foreground-white);
|
|
30
34
|
--kbq-badge-filled-fade-off-theme-caption: var(--kbq-foreground-white);
|
|
@@ -89,6 +93,10 @@
|
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
96
|
+
--kbq-badge-filled-fade-off-contrast-background: var(--kbq-background-contrast);
|
|
97
|
+
--kbq-badge-filled-fade-off-contrast-color: var(--kbq-foreground-on-contrast);
|
|
98
|
+
--kbq-badge-filled-fade-off-contrast-caption: var(--kbq-foreground-on-contrast);
|
|
99
|
+
--kbq-badge-filled-fade-off-contrast-icon: var(--kbq-icon-on-contrast);
|
|
92
100
|
--kbq-badge-filled-fade-off-theme-background: var(--kbq-background-theme);
|
|
93
101
|
--kbq-badge-filled-fade-off-theme-color: var(--kbq-foreground-white);
|
|
94
102
|
--kbq-badge-filled-fade-off-theme-caption: var(--kbq-foreground-white);
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
&.kbq-button_outline,
|
|
88
88
|
&.kbq-button_transparent {
|
|
89
89
|
&.cdk-keyboard-focused {
|
|
90
|
-
$focused-color: var(--kbq-states-
|
|
90
|
+
$focused-color: var(--kbq-states-line-focus-theme);
|
|
91
91
|
outline: 1px solid $focused-color;
|
|
92
92
|
border-color: $focused-color;
|
|
93
93
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
@mixin kbq-button-typography() {
|
|
99
99
|
.kbq-button,
|
|
100
100
|
.kbq-button-icon {
|
|
101
|
-
@include kbq-typography-level-to-
|
|
101
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.kbq-button-icon.kbq-button-wrapper {
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
.kbq-button-icon {
|
|
2
|
-
--kbq-button-icon-size-horizontal-padding: var(--kbq-size-s);
|
|
3
|
-
--kbq-button-icon-size-vertical-padding: var(--kbq-size-s);
|
|
4
|
-
--kbq-button-icon-size-content-padding: var(--kbq-size-xxs);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
1
|
.kbq-button,
|
|
8
2
|
.kbq-button-icon {
|
|
9
3
|
--kbq-button-size-height: var(--kbq-size-3xl);
|
|
@@ -11,6 +5,9 @@
|
|
|
11
5
|
--kbq-button-size-border-radius: var(--kbq-size-border-radius);
|
|
12
6
|
--kbq-button-size-horizontal-padding: var(--kbq-size-m);
|
|
13
7
|
--kbq-button-size-content-padding: var(--kbq-size-xs);
|
|
8
|
+
--kbq-button-icon-size-horizontal-padding: var(--kbq-size-s);
|
|
9
|
+
--kbq-button-icon-size-vertical-padding: var(--kbq-size-s);
|
|
10
|
+
--kbq-button-icon-size-content-padding: var(--kbq-size-xxs);
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
package/button/button.scss
CHANGED
|
@@ -7,16 +7,22 @@
|
|
|
7
7
|
.kbq-button {
|
|
8
8
|
@extend %kbq-button-base;
|
|
9
9
|
|
|
10
|
-
// base padding
|
|
11
|
-
padding-left: kbq-
|
|
12
|
-
padding-right: kbq-
|
|
10
|
+
// base padding - border-width
|
|
11
|
+
padding-left: kbq-difference-series-css-variables([button-size-horizontal-padding, button-size-border-width]);
|
|
12
|
+
padding-right: kbq-difference-series-css-variables([button-size-horizontal-padding, button-size-border-width]);
|
|
13
13
|
|
|
14
14
|
&.kbq-button-icon_left {
|
|
15
|
-
padding-left:
|
|
15
|
+
padding-left: kbq-difference-series-css-variables(
|
|
16
|
+
[button-icon-size-horizontal-padding,
|
|
17
|
+
button-size-border-width]
|
|
18
|
+
);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
&.kbq-button-icon_right {
|
|
19
|
-
padding-right:
|
|
22
|
+
padding-right: kbq-difference-series-css-variables(
|
|
23
|
+
[button-icon-size-horizontal-padding,
|
|
24
|
+
button-size-border-width]
|
|
25
|
+
);
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
|
|
@@ -27,9 +33,8 @@
|
|
|
27
33
|
.kbq-button-icon {
|
|
28
34
|
@extend %kbq-button-base;
|
|
29
35
|
|
|
30
|
-
padding-left:
|
|
31
|
-
|
|
32
|
-
padding-right: var(--kbq-button-icon-size-horizontal-padding);
|
|
36
|
+
padding-left: kbq-difference-series-css-variables([button-icon-size-horizontal-padding, button-size-border-width]);
|
|
37
|
+
padding-right: kbq-difference-series-css-variables([button-icon-size-horizontal-padding, button-size-border-width]);
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
.kbq-button-overlay {
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
|
|
58
58
|
@mixin kbq-button-toggle-typography() {
|
|
59
59
|
.kbq-button-toggle .kbq-button-toggle-wrapper {
|
|
60
|
-
@include kbq-typography-level-to-
|
|
60
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -98,18 +98,18 @@
|
|
|
98
98
|
|
|
99
99
|
@mixin kbq-checkbox-typography() {
|
|
100
100
|
.kbq-checkbox {
|
|
101
|
-
@include kbq-typography-level-to-
|
|
101
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
102
102
|
|
|
103
103
|
& .kbq-hint .kbq-hint__text {
|
|
104
|
-
@include kbq-typography-level-to-
|
|
104
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.kbq-checkbox.kbq-checkbox_big {
|
|
109
|
-
@include kbq-typography-level-to-
|
|
109
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-big);
|
|
110
110
|
|
|
111
111
|
& .kbq-hint .kbq-hint__text {
|
|
112
|
-
@include kbq-typography-level-to-
|
|
112
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
17
17
|
--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
|
|
18
|
-
--kbq-checkbox-theme-default-color: var(--kbq-
|
|
18
|
+
--kbq-checkbox-theme-default-color: var(--kbq-icon-white);
|
|
19
19
|
--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
|
|
20
20
|
--kbq-checkbox-theme-default-background: var(--kbq-background-bg);
|
|
21
21
|
--kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
|
|
38
38
|
--kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
|
|
39
39
|
--kbq-checkbox-error-default-border: var(--kbq-line-error);
|
|
40
|
-
--kbq-checkbox-error-default-color: var(--kbq-
|
|
40
|
+
--kbq-checkbox-error-default-color: var(--kbq-icon-white);
|
|
41
41
|
--kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
|
|
42
42
|
--kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
|
|
43
43
|
--kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
64
64
|
--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
|
|
65
|
-
--kbq-checkbox-theme-default-color: var(--kbq-
|
|
65
|
+
--kbq-checkbox-theme-default-color: var(--kbq-icon-white);
|
|
66
66
|
--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
|
|
67
67
|
--kbq-checkbox-theme-default-background: var(--kbq-background-bg);
|
|
68
68
|
--kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
|
|
85
85
|
--kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
|
|
86
86
|
--kbq-checkbox-error-default-border: var(--kbq-line-error);
|
|
87
|
-
--kbq-checkbox-error-default-color: var(--kbq-
|
|
87
|
+
--kbq-checkbox-error-default-color: var(--kbq-icon-white);
|
|
88
88
|
--kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
|
|
89
89
|
--kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
|
|
90
90
|
--kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -346,12 +346,12 @@
|
|
|
346
346
|
.kbq-tab-group.kbq-focused {
|
|
347
347
|
// paint focus border from the top since because of border constraints
|
|
348
348
|
.kbq-tab-header {
|
|
349
|
-
box-shadow: 0 2px 0 -1px var(--kbq-states-
|
|
349
|
+
box-shadow: 0 2px 0 -1px var(--kbq-states-line-focus-theme);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
.kbq-tab-body__wrapper {
|
|
353
|
-
border-color: var(--kbq-states-
|
|
354
|
-
box-shadow: inset 0 0 0.1 1px var(--kbq-states-
|
|
353
|
+
border-color: var(--kbq-states-line-focus-theme);
|
|
354
|
+
box-shadow: inset 0 0 0.1 1px var(--kbq-states-line-focus-theme);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
|
|
360
360
|
@mixin kbq-code-block-typography() {
|
|
361
361
|
.kbq-code-block {
|
|
362
|
-
@include kbq-typography-level-to-
|
|
362
|
+
@include kbq-typography-level-to-styles-css-variables(typography, mono-codeblock);
|
|
363
363
|
|
|
364
364
|
& .kbq-code-block__code {
|
|
365
365
|
font: inherit;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.kbq-disabled .kbq-optgroup-label {
|
|
9
|
-
color: var(--kbq-foreground-
|
|
9
|
+
color: var(--kbq-states-foreground-disabled);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@mixin kbq-optgroup-typography() {
|
|
14
14
|
.kbq-optgroup-label {
|
|
15
|
-
@include kbq-typography-level-to-
|
|
15
|
+
@include kbq-typography-level-to-styles-css-variables(typography, subheading);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
|
|
46
46
|
@mixin kbq-option-typography() {
|
|
47
47
|
.kbq-option {
|
|
48
|
-
@include kbq-typography-level-to-
|
|
48
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.kbq-list-option-caption {
|
|
52
|
-
@include kbq-typography-level-to-
|
|
52
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
17
17
|
--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
|
|
18
|
-
--kbq-checkbox-theme-default-color: var(--kbq-
|
|
18
|
+
--kbq-checkbox-theme-default-color: var(--kbq-icon-white);
|
|
19
19
|
--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
|
|
20
20
|
--kbq-checkbox-theme-default-background: var(--kbq-background-bg);
|
|
21
21
|
--kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
|
|
38
38
|
--kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
|
|
39
39
|
--kbq-checkbox-error-default-border: var(--kbq-line-error);
|
|
40
|
-
--kbq-checkbox-error-default-color: var(--kbq-
|
|
40
|
+
--kbq-checkbox-error-default-color: var(--kbq-icon-white);
|
|
41
41
|
--kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
|
|
42
42
|
--kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
|
|
43
43
|
--kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
64
64
|
--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
|
|
65
|
-
--kbq-checkbox-theme-default-color: var(--kbq-
|
|
65
|
+
--kbq-checkbox-theme-default-color: var(--kbq-icon-white);
|
|
66
66
|
--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
|
|
67
67
|
--kbq-checkbox-theme-default-background: var(--kbq-background-bg);
|
|
68
68
|
--kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
|
|
85
85
|
--kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
|
|
86
86
|
--kbq-checkbox-error-default-border: var(--kbq-line-error);
|
|
87
|
-
--kbq-checkbox-error-default-color: var(--kbq-
|
|
87
|
+
--kbq-checkbox-error-default-color: var(--kbq-icon-white);
|
|
88
88
|
--kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
|
|
89
89
|
--kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
|
|
90
90
|
--kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
@@ -75,16 +75,7 @@
|
|
|
75
75
|
error-tertiary: map.get($tokens, '#{$scheme}-foreground-error-tertiary'),
|
|
76
76
|
visited: map.get($tokens, '#{$scheme}-foreground-visited'),
|
|
77
77
|
// будет удалено, после удаления из компонентов ↓
|
|
78
|
-
error-less: map.get($tokens, '#{$scheme}-foreground-error-less')
|
|
79
|
-
// будет удалено, после удаления из компонентов ↓
|
|
80
|
-
text: map.get($tokens, '#{$scheme}-foreground-text'),
|
|
81
|
-
text-less-contrast: map.get($tokens, '#{$scheme}-foreground-text-less-contrast'),
|
|
82
|
-
text-disabled: map.get($tokens, '#{$scheme}-foreground-text-disabled'),
|
|
83
|
-
text-error: map.get($tokens, '#{$scheme}-foreground-text-error'),
|
|
84
|
-
text-success: map.get($tokens, '#{$scheme}-foreground-text-success'),
|
|
85
|
-
divider: map.get($tokens, '#{$scheme}-foreground-divider'),
|
|
86
|
-
border: map.get($tokens, '#{$scheme}-foreground-border'),
|
|
87
|
-
icon: map.get($tokens, '#{$scheme}-foreground-icon')
|
|
78
|
+
error-less: map.get($tokens, '#{$scheme}-foreground-error-less')
|
|
88
79
|
);
|
|
89
80
|
}
|
|
90
81
|
|
|
@@ -107,16 +98,8 @@
|
|
|
107
98
|
warning: map.get($tokens, '#{$scheme}-background-warning'),
|
|
108
99
|
warning-fade: map.get($tokens, '#{$scheme}-background-warning-fade'),
|
|
109
100
|
transparent: map.get($tokens, '#{$scheme}-background-transparent'),
|
|
110
|
-
// будет удалено, после удаления из компонентов ↓
|
|
111
|
-
background: map.get($tokens, '#{$scheme}-background-background'),
|
|
112
|
-
background-disabled: map.get($tokens, '#{$scheme}-background-background-disabled'),
|
|
113
|
-
background-less-contrast: map.get($tokens, '#{$scheme}-background-background-less-contrast'),
|
|
114
|
-
background-under: map.get($tokens, '#{$scheme}-background-background-under'),
|
|
115
101
|
overlay: map.get($tokens, '#{$scheme}-background-overlay'),
|
|
116
|
-
overlay-inverse: map.get($tokens, '#{$scheme}-background-overlay-inverse')
|
|
117
|
-
overlay-hover: map.get($tokens, '#{$scheme}-background-overlay-hover'),
|
|
118
|
-
overlay-active: map.get($tokens, '#{$scheme}-background-overlay-active'),
|
|
119
|
-
overlay-disabled: map.get($tokens, '#{$scheme}-background-overlay-disabled')
|
|
102
|
+
overlay-inverse: map.get($tokens, '#{$scheme}-background-overlay-inverse')
|
|
120
103
|
);
|
|
121
104
|
}
|
|
122
105
|
|
|
@@ -213,22 +196,13 @@
|
|
|
213
196
|
);
|
|
214
197
|
}
|
|
215
198
|
|
|
216
|
-
@function _theme_states-others($tokens, $scheme) {
|
|
217
|
-
@return (brand: map.get($tokens, '#{$scheme}-states-others-brand'));
|
|
218
|
-
}
|
|
219
|
-
|
|
220
199
|
@function _theme_states($tokens, $scheme) {
|
|
221
200
|
@return (
|
|
222
201
|
background: _theme_states-background($tokens, $scheme),
|
|
223
202
|
foreground: _theme_states-foreground($tokens, $scheme),
|
|
224
203
|
icon: _theme_states-icon($tokens, $scheme),
|
|
225
204
|
line: _theme_states-line($tokens, $scheme),
|
|
226
|
-
others: _theme_states-others($tokens, $scheme),
|
|
227
205
|
// будет удалено, после удаления из компонентов ↓
|
|
228
|
-
focused-color: map.get($tokens, '#{$scheme}-states-focused-color'),
|
|
229
|
-
focused-color-error: map.get($tokens, '#{$scheme}-states-focused-color-error'),
|
|
230
|
-
selected-color: map.get($tokens, '#{$scheme}-states-selected-color'),
|
|
231
|
-
pressed-shadow: map.get($tokens, '#{$scheme}-states-pressed-shadow'),
|
|
232
206
|
disabled-opacity: map.get($tokens, '#{$scheme}-states-disabled-opacity')
|
|
233
207
|
);
|
|
234
208
|
}
|
|
@@ -249,10 +223,6 @@
|
|
|
249
223
|
);
|
|
250
224
|
}
|
|
251
225
|
|
|
252
|
-
@function _theme_palette_neutral($tokens, $scheme) {
|
|
253
|
-
@return (white: map.get($tokens, '#{$scheme}-neutral-white'), black: map.get($tokens, '#{$scheme}-neutral-black'));
|
|
254
|
-
}
|
|
255
|
-
|
|
256
226
|
@function kbq-light-theme($tokens) {
|
|
257
227
|
$scheme: 'light';
|
|
258
228
|
|
|
@@ -269,14 +239,9 @@
|
|
|
269
239
|
warning: _theme_palette($tokens, $scheme, warning),
|
|
270
240
|
error: _theme_palette($tokens, $scheme, error),
|
|
271
241
|
contrast: _theme_palette($tokens, $scheme, contrast),
|
|
272
|
-
neutral: _theme_palette_neutral($tokens, $scheme),
|
|
273
242
|
white: _theme_palette($tokens, $scheme, white),
|
|
274
243
|
black: _theme_palette($tokens, $scheme, black),
|
|
275
|
-
brand: _theme_palette($tokens, $scheme, brand),
|
|
276
244
|
purple: _theme_palette($tokens, $scheme, purple),
|
|
277
|
-
// будет удалено, после удаления из компонентов ↓
|
|
278
|
-
info: _theme_palette($tokens, $scheme, info),
|
|
279
|
-
// будет удалено, после удаления из компонентов ↑
|
|
280
245
|
components: kbq-components-theme($tokens, $scheme),
|
|
281
246
|
tokens: $tokens
|
|
282
247
|
);
|
|
@@ -298,14 +263,9 @@
|
|
|
298
263
|
warning: _theme_palette($tokens, $scheme, warning),
|
|
299
264
|
error: _theme_palette($tokens, $scheme, error),
|
|
300
265
|
contrast: _theme_palette($tokens, $scheme, contrast),
|
|
301
|
-
neutral: _theme_palette_neutral($tokens, $scheme),
|
|
302
266
|
white: _theme_palette($tokens, $scheme, white),
|
|
303
267
|
black: _theme_palette($tokens, $scheme, black),
|
|
304
|
-
brand: _theme_palette($tokens, $scheme, brand),
|
|
305
268
|
purple: _theme_palette($tokens, $scheme, purple),
|
|
306
|
-
// будет удалено, после удаления из компонентов ↓
|
|
307
|
-
info: _theme_palette($tokens, $scheme, info),
|
|
308
|
-
// будет удалено, после удаления из компонентов ↑
|
|
309
269
|
components: kbq-components-theme($tokens, $scheme),
|
|
310
270
|
tokens: $tokens
|
|
311
271
|
);
|