@koobiq/components 17.4.0 → 17.5.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/alert/_alert-theme.scss +16 -20
- package/alert/alert-tokens.scss +132 -0
- package/alert/alert.component.scss +5 -0
- package/autocomplete/_autocomplete-theme.scss +3 -5
- package/autocomplete/autocomplete-tokens.scss +16 -0
- package/autocomplete/autocomplete.scss +4 -0
- package/badge/_badge-theme.scss +22 -25
- package/badge/badge-tokens.scss +185 -0
- package/badge/badge.component.scss +5 -0
- package/button/_button-theme.scss +20 -29
- package/button/button-tokens.scss +278 -0
- package/button/button.scss +5 -0
- package/button-toggle/_button-toggle-theme.scss +16 -28
- package/button-toggle/button-toggle-tokens.scss +78 -0
- package/button-toggle/button-toggle.scss +7 -2
- package/checkbox/_checkbox-theme.scss +27 -58
- package/checkbox/checkbox-tokens.scss +140 -0
- package/checkbox/checkbox.scss +6 -4
- package/core/highlight/_highlight-theme.scss +1 -1
- package/core/pop-up/pop-up-styles.d.ts +2 -2
- package/core/pop-up/pop-up-trigger.d.ts +8 -9
- package/core/pop-up/pop-up.d.ts +3 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +12 -15
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +140 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +3 -2
- package/core/styles/_koobiq-theme.scss +3 -42
- package/datepicker/_datepicker-theme.scss +17 -43
- package/datepicker/calendar.scss +0 -3
- package/datepicker/datepicker-content.scss +5 -6
- package/datepicker/datepicker-tokens.scss +59 -0
- package/dropdown/_dropdown-theme.scss +15 -24
- package/dropdown/dropdown-tokens.scss +111 -0
- package/dropdown/dropdown.scss +5 -0
- package/ellipsis-center/ellipsis-center.directive.d.ts +2 -6
- package/esm2022/alert/alert.component.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/badge/badge.component.mjs +3 -3
- package/esm2022/button/button.component.mjs +3 -3
- package/esm2022/button-toggle/button-toggle.component.mjs +3 -3
- package/esm2022/checkbox/checkbox.mjs +3 -3
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-styles.mjs +7 -9
- package/esm2022/core/pop-up/pop-up-trigger.mjs +13 -16
- package/esm2022/core/pop-up/pop-up.mjs +7 -6
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +12 -23
- package/esm2022/form-field/form-field.mjs +3 -3
- package/esm2022/form-field/hint.mjs +3 -3
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/form-field/password-toggle.mjs +10 -21
- package/esm2022/icon/icon-button.component.mjs +3 -3
- package/esm2022/icon/icon-item.component.mjs +3 -3
- package/esm2022/icon/icon.component.mjs +3 -3
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal.component.mjs +1 -1
- package/esm2022/modal/modal.service.mjs +16 -8
- package/esm2022/modal/modal.type.mjs +1 -1
- package/esm2022/navbar/navbar-item.component.mjs +16 -30
- package/esm2022/popover/popover-confirm.component.mjs +11 -20
- package/esm2022/popover/popover.component.mjs +22 -29
- package/esm2022/select/select-option.directive.mjs +7 -18
- package/esm2022/timezone/timezone-option.directive.mjs +7 -18
- package/esm2022/title/title.directive.mjs +7 -18
- package/esm2022/tooltip/tooltip.component.mjs +26 -45
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +2 -2
- package/fesm2022/koobiq-components-autocomplete.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 +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-core.mjs +29 -32
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +2 -2
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +2 -2
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +11 -19
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +26 -33
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +6 -6
- 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-modal.mjs +15 -7
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +14 -26
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +29 -40
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +14 -20
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +10 -17
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +6 -14
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +25 -42
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +21 -47
- package/form-field/_hint-theme.scss +13 -17
- package/form-field/form-field-tokens.scss +69 -0
- package/form-field/form-field.scss +4 -2
- package/form-field/hint-tokens.scss +60 -0
- package/form-field/hint.scss +5 -0
- package/form-field/password-toggle.d.ts +3 -6
- package/icon/_icon-button-theme.scss +27 -65
- package/icon/_icon-item-theme.scss +14 -17
- package/icon/_icon-theme.scss +7 -12
- package/icon/icon-button-tokens.scss +67 -0
- package/icon/icon-button.scss +4 -0
- package/icon/icon-item-tokens.scss +52 -0
- package/icon/icon-item.scss +4 -0
- package/icon/icon-tokens.scss +17 -0
- package/icon/icon.scss +4 -0
- package/input/_input-theme.scss +1 -5
- package/input/input-tokens.scss +12 -0
- package/input/input.scss +4 -5
- package/link/_link-theme.scss +18 -26
- package/link/link-tokens.scss +67 -0
- package/markdown/markdown.scss +6 -0
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal.component.d.ts +2 -2
- package/modal/modal.service.d.ts +12 -7
- package/modal/modal.type.d.ts +3 -0
- package/navbar/navbar-item.component.d.ts +5 -7
- package/package.json +7 -7
- package/popover/popover-confirm.component.d.ts +3 -6
- package/popover/popover.component.d.ts +4 -6
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/schematics/ng-add/index.js +4 -4
- package/select/select-option.directive.d.ts +3 -6
- package/timezone/timezone-option.directive.d.ts +3 -6
- package/title/title.directive.d.ts +3 -6
- package/tooltip/tooltip.component.d.ts +8 -11
|
@@ -4,47 +4,40 @@
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
5
|
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
|
-
@mixin kbq-checkbox-color($
|
|
8
|
-
$style: map.get($component, $style-name);
|
|
7
|
+
@mixin kbq-checkbox-color($style-name) {
|
|
9
8
|
$base: checkbox-#{$style-name};
|
|
10
9
|
|
|
11
10
|
.kbq-checkbox__frame {
|
|
12
|
-
border-color: kbq-css-variable(#{$base}-default-border
|
|
13
|
-
|
|
14
|
-
background-color: kbq-css-variable(#{$base}-default-background, map.get($style, default, background));
|
|
11
|
+
border-color: kbq-css-variable(#{$base}-default-border);
|
|
12
|
+
background-color: kbq-css-variable(#{$base}-default-background);
|
|
15
13
|
|
|
16
14
|
& .kbq-checkbox-checkmark,
|
|
17
15
|
& .kbq-checkbox-mixedmark {
|
|
18
|
-
color: kbq-css-variable(#{$base}-default-color
|
|
16
|
+
color: kbq-css-variable(#{$base}-default-color);
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
.kbq-checkbox-label {
|
|
23
|
-
color: kbq-css-variable(#{$base}-default-text
|
|
21
|
+
color: kbq-css-variable(#{$base}-default-text);
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
& .kbq-hint .kbq-hint__text {
|
|
27
|
-
color: kbq-css-variable(#{$base}-default-caption
|
|
25
|
+
color: kbq-css-variable(#{$base}-default-caption);
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
&:hover,
|
|
31
29
|
&.kbq-hover {
|
|
32
30
|
.kbq-checkbox__frame {
|
|
33
|
-
border-color: kbq-css-variable(#{$base}-states-hover-border
|
|
34
|
-
|
|
35
|
-
background-color: kbq-css-variable(#{$base}-states-hover-background, map.get($style, hover, background));
|
|
31
|
+
border-color: kbq-css-variable(#{$base}-states-hover-border);
|
|
32
|
+
background-color: kbq-css-variable(#{$base}-states-hover-background);
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
&.kbq-checked,
|
|
40
37
|
&.kbq-indeterminate {
|
|
41
38
|
.kbq-checkbox__frame {
|
|
42
|
-
border-color: kbq-css-variable(#{$base}-states-checked-border
|
|
43
|
-
|
|
44
|
-
background-color: kbq-css-variable(
|
|
45
|
-
#{$base}-states-checked-background,
|
|
46
|
-
map.get($style, checked, background)
|
|
47
|
-
);
|
|
39
|
+
border-color: kbq-css-variable(#{$base}-states-checked-border);
|
|
40
|
+
background-color: kbq-css-variable(#{$base}-states-checked-background);
|
|
48
41
|
}
|
|
49
42
|
}
|
|
50
43
|
|
|
@@ -53,84 +46,60 @@
|
|
|
53
46
|
&:hover,
|
|
54
47
|
&.kbq-hover {
|
|
55
48
|
.kbq-checkbox__frame {
|
|
56
|
-
border-color: kbq-css-variable(
|
|
57
|
-
|
|
58
|
-
map.get($style, checked-hover, border)
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
background-color: kbq-css-variable(
|
|
62
|
-
#{$base}-states-checked-hover-background,
|
|
63
|
-
map.get($style, checked-hover, background)
|
|
64
|
-
);
|
|
49
|
+
border-color: kbq-css-variable(#{$base}-states-checked-hover-border);
|
|
50
|
+
background-color: kbq-css-variable(#{$base}-states-checked-hover-background);
|
|
65
51
|
}
|
|
66
52
|
}
|
|
67
53
|
|
|
68
54
|
& .kbq-checkbox-input.cdk-keyboard-focused {
|
|
69
55
|
+ .kbq-checkbox__frame {
|
|
70
|
-
border-color: kbq-css-variable(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
);
|
|
74
|
-
background-color: kbq-css-variable(
|
|
75
|
-
#{$base}-states-checked-focused-background,
|
|
76
|
-
map.get($style, checked-focused, background)
|
|
77
|
-
);
|
|
78
|
-
outline: kbq-css-variable(
|
|
79
|
-
#{$base}-states-checked-focused-outline,
|
|
80
|
-
map.get($style, checked-focused, outline)
|
|
81
|
-
);
|
|
56
|
+
border-color: kbq-css-variable(#{$base}-states-checked-focused-border);
|
|
57
|
+
background-color: kbq-css-variable(#{$base}-states-checked-focused-background);
|
|
58
|
+
outline: kbq-css-variable(#{$base}-states-checked-focused-outline);
|
|
82
59
|
}
|
|
83
60
|
}
|
|
84
61
|
}
|
|
85
62
|
|
|
86
63
|
& .kbq-checkbox-input.cdk-keyboard-focused {
|
|
87
64
|
+ .kbq-checkbox__frame {
|
|
88
|
-
border-color: kbq-css-variable(#{$base}-states-focused-border
|
|
89
|
-
background-color: kbq-css-variable(
|
|
90
|
-
|
|
91
|
-
map.get($style, focused, background)
|
|
92
|
-
);
|
|
93
|
-
outline: kbq-css-variable(#{$base}-states-focused-outline, map.get($style, focused, outline));
|
|
65
|
+
border-color: kbq-css-variable(#{$base}-states-focused-border);
|
|
66
|
+
background-color: kbq-css-variable(#{$base}-states-focused-background);
|
|
67
|
+
outline: kbq-css-variable(#{$base}-states-focused-outline);
|
|
94
68
|
}
|
|
95
69
|
}
|
|
96
70
|
|
|
97
71
|
&.kbq-disabled {
|
|
98
72
|
.kbq-checkbox__frame {
|
|
99
|
-
border-color: kbq-css-variable(#{$base}-states-disabled-border
|
|
100
|
-
background-color: kbq-css-variable(
|
|
101
|
-
#{$base}-states-disabled-background,
|
|
102
|
-
map.get($style, disabled, background)
|
|
103
|
-
);
|
|
73
|
+
border-color: kbq-css-variable(#{$base}-states-disabled-border);
|
|
74
|
+
background-color: kbq-css-variable(#{$base}-states-disabled-background);
|
|
104
75
|
|
|
105
76
|
& .kbq-checkbox-checkmark,
|
|
106
77
|
& .kbq-checkbox-mixedmark {
|
|
107
|
-
color: kbq-css-variable(#{$base}-states-disabled-color
|
|
78
|
+
color: kbq-css-variable(#{$base}-states-disabled-color);
|
|
108
79
|
}
|
|
109
80
|
}
|
|
110
81
|
|
|
111
82
|
& .kbq-hint .kbq-hint__text {
|
|
112
|
-
color: kbq-css-variable(#{$base}-states-disabled-caption
|
|
83
|
+
color: kbq-css-variable(#{$base}-states-disabled-caption);
|
|
113
84
|
}
|
|
114
85
|
|
|
115
86
|
.kbq-checkbox-label {
|
|
116
|
-
color: kbq-css-variable(#{$base}-states-disabled-text
|
|
87
|
+
color: kbq-css-variable(#{$base}-states-disabled-text);
|
|
117
88
|
}
|
|
118
89
|
}
|
|
119
90
|
}
|
|
120
91
|
|
|
121
|
-
@mixin kbq-checkbox-theme(
|
|
122
|
-
$checkbox: map.get(map.get($theme, components), checkbox);
|
|
123
|
-
|
|
92
|
+
@mixin kbq-checkbox-theme() {
|
|
124
93
|
.kbq-checkbox {
|
|
125
|
-
@include kbq-checkbox-color(
|
|
94
|
+
@include kbq-checkbox-color(theme);
|
|
126
95
|
|
|
127
96
|
&.kbq-error {
|
|
128
|
-
@include kbq-checkbox-color(
|
|
97
|
+
@include kbq-checkbox-color(error);
|
|
129
98
|
}
|
|
130
99
|
}
|
|
131
100
|
}
|
|
132
101
|
|
|
133
|
-
@mixin kbq-checkbox-typography(
|
|
102
|
+
@mixin kbq-checkbox-typography() {
|
|
134
103
|
.kbq-checkbox {
|
|
135
104
|
@include kbq-typography-css-variables(checkbox, normal-label);
|
|
136
105
|
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
.kbq-checkbox {
|
|
2
|
+
--kbq-checkbox-size-normal-width: 16px;
|
|
3
|
+
--kbq-checkbox-size-normal-border-width: 1px;
|
|
4
|
+
--kbq-checkbox-size-normal-border-radius: 4px;
|
|
5
|
+
--kbq-checkbox-size-normal-horizontal-content-padding: 8px;
|
|
6
|
+
--kbq-checkbox-size-normal-vertical-content-padding: 2px;
|
|
7
|
+
--kbq-checkbox-size-normal-top: 2px;
|
|
8
|
+
--kbq-checkbox-size-big-width: 16px;
|
|
9
|
+
--kbq-checkbox-size-big-border-width: 1px;
|
|
10
|
+
--kbq-checkbox-size-big-border-radius: 4px;
|
|
11
|
+
--kbq-checkbox-size-big-horizontal-content-padding: 8px;
|
|
12
|
+
--kbq-checkbox-size-big-vertical-content-padding: 2px;
|
|
13
|
+
--kbq-checkbox-size-big-top: 4px;
|
|
14
|
+
--kbq-checkbox-font-normal-label-font-size: 14px;
|
|
15
|
+
--kbq-checkbox-font-normal-label-line-height: 20px;
|
|
16
|
+
--kbq-checkbox-font-normal-label-letter-spacing: -0.006em;
|
|
17
|
+
--kbq-checkbox-font-normal-label-font-weight: normal;
|
|
18
|
+
--kbq-checkbox-font-normal-label-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
19
|
+
Arial, sans-serif;
|
|
20
|
+
--kbq-checkbox-font-normal-label-text-transform: null;
|
|
21
|
+
--kbq-checkbox-font-normal-label-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
22
|
+
--kbq-checkbox-font-normal-caption-font-size: 12px;
|
|
23
|
+
--kbq-checkbox-font-normal-caption-line-height: 16px;
|
|
24
|
+
--kbq-checkbox-font-normal-caption-letter-spacing: normal;
|
|
25
|
+
--kbq-checkbox-font-normal-caption-font-weight: normal;
|
|
26
|
+
--kbq-checkbox-font-normal-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
27
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
28
|
+
--kbq-checkbox-font-normal-caption-text-transform: null;
|
|
29
|
+
--kbq-checkbox-font-normal-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
30
|
+
--kbq-checkbox-font-big-label-font-size: 16px;
|
|
31
|
+
--kbq-checkbox-font-big-label-line-height: 24px;
|
|
32
|
+
--kbq-checkbox-font-big-label-letter-spacing: -0.011em;
|
|
33
|
+
--kbq-checkbox-font-big-label-font-weight: normal;
|
|
34
|
+
--kbq-checkbox-font-big-label-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
35
|
+
Arial, sans-serif;
|
|
36
|
+
--kbq-checkbox-font-big-label-text-transform: null;
|
|
37
|
+
--kbq-checkbox-font-big-label-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
38
|
+
--kbq-checkbox-font-big-caption-font-size: 14px;
|
|
39
|
+
--kbq-checkbox-font-big-caption-line-height: 20px;
|
|
40
|
+
--kbq-checkbox-font-big-caption-letter-spacing: -0.006em;
|
|
41
|
+
--kbq-checkbox-font-big-caption-font-weight: normal;
|
|
42
|
+
--kbq-checkbox-font-big-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
43
|
+
Arial, sans-serif;
|
|
44
|
+
--kbq-checkbox-font-big-caption-text-transform: null;
|
|
45
|
+
--kbq-checkbox-font-big-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
49
|
+
--kbq-checkbox-theme-default-border: hsla(229, 15%, 80%, 100%);
|
|
50
|
+
--kbq-checkbox-theme-default-color: hsla(0, 0%, 100%, 100%);
|
|
51
|
+
--kbq-checkbox-theme-default-text: hsla(229, 15%, 15%, 100%);
|
|
52
|
+
--kbq-checkbox-theme-default-background: hsla(0, 0%, 100%, 100%);
|
|
53
|
+
--kbq-checkbox-theme-default-caption: hsla(229, 15%, 50%, 100%);
|
|
54
|
+
--kbq-checkbox-theme-states-hover-border: hsla(229, 15%, 80%, 100%);
|
|
55
|
+
--kbq-checkbox-theme-states-hover-background: hsla(229, 15%, 50%, 8%);
|
|
56
|
+
--kbq-checkbox-theme-states-checked-border: transparent;
|
|
57
|
+
--kbq-checkbox-theme-states-checked-background: hsla(216, 100%, 50%, 100%);
|
|
58
|
+
--kbq-checkbox-theme-states-checked-hover-border: transparent;
|
|
59
|
+
--kbq-checkbox-theme-states-checked-hover-background: hsla(216, 100%, 45%, 100%);
|
|
60
|
+
--kbq-checkbox-theme-states-focused-border: hsla(216, 100%, 60%, 100%);
|
|
61
|
+
--kbq-checkbox-theme-states-focused-background: hsla(0, 0%, 100%, 100%);
|
|
62
|
+
--kbq-checkbox-theme-states-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
63
|
+
--kbq-checkbox-theme-states-checked-focused-border: hsla(216, 100%, 60%, 100%);
|
|
64
|
+
--kbq-checkbox-theme-states-checked-focused-background: hsla(216, 100%, 50%, 100%);
|
|
65
|
+
--kbq-checkbox-theme-states-checked-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
66
|
+
--kbq-checkbox-theme-states-disabled-border: hsla(229, 15%, 80%, 100%);
|
|
67
|
+
--kbq-checkbox-theme-states-disabled-color: hsla(229, 15%, 15%, 32%);
|
|
68
|
+
--kbq-checkbox-theme-states-disabled-text: hsla(229, 15%, 15%, 32%);
|
|
69
|
+
--kbq-checkbox-theme-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
70
|
+
--kbq-checkbox-theme-states-disabled-caption: hsla(229, 15%, 15%, 32%);
|
|
71
|
+
--kbq-checkbox-error-default-border: hsla(7, 97%, 45%, 100%);
|
|
72
|
+
--kbq-checkbox-error-default-color: hsla(0, 0%, 100%, 100%);
|
|
73
|
+
--kbq-checkbox-error-default-text: hsla(229, 15%, 15%, 100%);
|
|
74
|
+
--kbq-checkbox-error-default-background: hsla(7, 97%, 99%, 100%);
|
|
75
|
+
--kbq-checkbox-error-default-caption: hsla(229, 15%, 50%, 100%);
|
|
76
|
+
--kbq-checkbox-error-states-hover-border: hsla(7, 97%, 45%, 100%);
|
|
77
|
+
--kbq-checkbox-error-states-hover-background: hsla(7, 97%, 92%, 100%);
|
|
78
|
+
--kbq-checkbox-error-states-checked-border: transparent;
|
|
79
|
+
--kbq-checkbox-error-states-checked-background: hsla(7, 97%, 60%, 100%);
|
|
80
|
+
--kbq-checkbox-error-states-checked-hover-border: transparent;
|
|
81
|
+
--kbq-checkbox-error-states-checked-hover-background: hsla(7, 97%, 56%, 100%);
|
|
82
|
+
--kbq-checkbox-error-states-focused-border: hsla(7, 97%, 45%, 100%);
|
|
83
|
+
--kbq-checkbox-error-states-focused-background: hsla(7, 97%, 99%, 100%);
|
|
84
|
+
--kbq-checkbox-error-states-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
85
|
+
--kbq-checkbox-error-states-checked-focused-border: hsla(7, 97%, 45%, 100%);
|
|
86
|
+
--kbq-checkbox-error-states-checked-focused-background: hsla(7, 97%, 60%, 100%);
|
|
87
|
+
--kbq-checkbox-error-states-checked-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
88
|
+
--kbq-checkbox-error-states-disabled-border: hsla(229, 15%, 80%, 100%);
|
|
89
|
+
--kbq-checkbox-error-states-disabled-color: hsla(229, 15%, 15%, 32%);
|
|
90
|
+
--kbq-checkbox-error-states-disabled-text: hsla(229, 15%, 15%, 32%);
|
|
91
|
+
--kbq-checkbox-error-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
92
|
+
--kbq-checkbox-error-states-disabled-caption: hsla(229, 15%, 15%, 32%);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
96
|
+
--kbq-checkbox-theme-default-border: hsla(229, 15%, 30%, 100%);
|
|
97
|
+
--kbq-checkbox-theme-default-color: hsla(0, 0%, 100%, 100%);
|
|
98
|
+
--kbq-checkbox-theme-default-text: hsla(229, 15%, 80%, 100%);
|
|
99
|
+
--kbq-checkbox-theme-default-background: hsla(229, 15%, 12%, 100%);
|
|
100
|
+
--kbq-checkbox-theme-default-caption: hsla(229, 15%, 60%, 100%);
|
|
101
|
+
--kbq-checkbox-theme-states-hover-border: hsla(229, 15%, 30%, 100%);
|
|
102
|
+
--kbq-checkbox-theme-states-hover-background: hsla(229, 15%, 50%, 16%);
|
|
103
|
+
--kbq-checkbox-theme-states-checked-border: transparent;
|
|
104
|
+
--kbq-checkbox-theme-states-checked-background: hsla(216, 100%, 50%, 100%);
|
|
105
|
+
--kbq-checkbox-theme-states-checked-hover-border: transparent;
|
|
106
|
+
--kbq-checkbox-theme-states-checked-hover-background: hsla(216, 100%, 45%, 100%);
|
|
107
|
+
--kbq-checkbox-theme-states-focused-border: hsla(216, 100%, 60%, 100%);
|
|
108
|
+
--kbq-checkbox-theme-states-focused-background: hsla(229, 15%, 12%, 100%);
|
|
109
|
+
--kbq-checkbox-theme-states-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
110
|
+
--kbq-checkbox-theme-states-checked-focused-border: hsla(216, 100%, 60%, 100%);
|
|
111
|
+
--kbq-checkbox-theme-states-checked-focused-background: hsla(216, 100%, 50%, 100%);
|
|
112
|
+
--kbq-checkbox-theme-states-checked-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
113
|
+
--kbq-checkbox-theme-states-disabled-border: hsla(229, 15%, 30%, 100%);
|
|
114
|
+
--kbq-checkbox-theme-states-disabled-color: hsla(229, 15%, 30%, 100%);
|
|
115
|
+
--kbq-checkbox-theme-states-disabled-text: hsla(229, 15%, 40%, 100%);
|
|
116
|
+
--kbq-checkbox-theme-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
117
|
+
--kbq-checkbox-theme-states-disabled-caption: hsla(229, 15%, 30%, 100%);
|
|
118
|
+
--kbq-checkbox-error-default-border: hsla(7, 97%, 35%, 100%);
|
|
119
|
+
--kbq-checkbox-error-default-color: hsla(0, 0%, 100%, 100%);
|
|
120
|
+
--kbq-checkbox-error-default-text: hsla(229, 15%, 80%, 100%);
|
|
121
|
+
--kbq-checkbox-error-default-background: hsla(7, 97%, 6%, 100%);
|
|
122
|
+
--kbq-checkbox-error-default-caption: hsla(229, 15%, 60%, 100%);
|
|
123
|
+
--kbq-checkbox-error-states-hover-border: hsla(7, 97%, 35%, 100%);
|
|
124
|
+
--kbq-checkbox-error-states-hover-background: hsla(7, 97%, 13%, 100%);
|
|
125
|
+
--kbq-checkbox-error-states-checked-border: transparent;
|
|
126
|
+
--kbq-checkbox-error-states-checked-background: hsla(7, 97%, 41%, 100%);
|
|
127
|
+
--kbq-checkbox-error-states-checked-hover-border: transparent;
|
|
128
|
+
--kbq-checkbox-error-states-checked-hover-background: hsla(7, 97%, 42%, 100%);
|
|
129
|
+
--kbq-checkbox-error-states-focused-border: hsla(7, 97%, 35%, 100%);
|
|
130
|
+
--kbq-checkbox-error-states-focused-background: hsla(7, 97%, 6%, 100%);
|
|
131
|
+
--kbq-checkbox-error-states-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
132
|
+
--kbq-checkbox-error-states-checked-focused-border: hsla(7, 97%, 45%, 100%);
|
|
133
|
+
--kbq-checkbox-error-states-checked-focused-background: hsla(7, 97%, 41%, 100%);
|
|
134
|
+
--kbq-checkbox-error-states-checked-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
135
|
+
--kbq-checkbox-error-states-disabled-border: hsla(229, 15%, 30%, 100%);
|
|
136
|
+
--kbq-checkbox-error-states-disabled-color: hsla(229, 15%, 30%, 100%);
|
|
137
|
+
--kbq-checkbox-error-states-disabled-text: hsla(229, 15%, 40%, 100%);
|
|
138
|
+
--kbq-checkbox-error-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
139
|
+
--kbq-checkbox-error-states-disabled-caption: hsla(229, 15%, 30%, 100%);
|
|
140
|
+
}
|
package/checkbox/checkbox.scss
CHANGED
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
@use '../core/styles/common/visually-hidden';
|
|
5
5
|
@use '../core/styles/common/layout';
|
|
6
6
|
|
|
7
|
-
@use '../core/styles/tokens';
|
|
8
7
|
@use '../core/styles/common/tokens' as *;
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
@use './checkbox-theme' as *;
|
|
11
10
|
|
|
12
11
|
.kbq-checkbox-checkmark,
|
|
13
12
|
.kbq-checkbox-mixedmark {
|
|
@@ -43,9 +42,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
43
42
|
// (e.g. pointer by default, regular when disabled), instead of the browser default.
|
|
44
43
|
cursor: inherit;
|
|
45
44
|
|
|
46
|
-
padding-top: kbq-css-variable(checkbox-size-normal-
|
|
45
|
+
padding-top: kbq-css-variable(checkbox-size-normal-padding-top);
|
|
47
46
|
|
|
48
|
-
padding-bottom: kbq-css-variable(checkbox-size-normal-
|
|
47
|
+
padding-bottom: kbq-css-variable(checkbox-size-normal-padding-bottom);
|
|
49
48
|
|
|
50
49
|
padding-left: kbq-sum-series-css-variables(
|
|
51
50
|
[checkbox-size-normal-width,
|
|
@@ -159,3 +158,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
159
158
|
left: unset;
|
|
160
159
|
}
|
|
161
160
|
}
|
|
161
|
+
|
|
162
|
+
@include kbq-checkbox-theme();
|
|
163
|
+
@include kbq-checkbox-typography();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const applyPopupMargins: (element:
|
|
1
|
+
import { Renderer2 } from '@angular/core';
|
|
2
|
+
export declare const applyPopupMargins: (renderer: Renderer2, element: HTMLElement, name: string, value: string) => void;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import { ConnectedOverlayPositionChange, ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
2
|
+
import { ConnectedOverlayPositionChange, ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef, ScrollDispatcher, ScrollStrategy } from '@angular/cdk/overlay';
|
|
3
3
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
4
4
|
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
|
5
5
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
6
6
|
import { PopUpPlacements } from './constants';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare abstract class KbqPopUpTrigger<T> implements OnInit, OnDestroy {
|
|
9
|
-
protected overlay: Overlay;
|
|
10
|
-
protected elementRef: ElementRef;
|
|
11
|
-
protected ngZone: NgZone;
|
|
12
|
-
protected scrollDispatcher: ScrollDispatcher;
|
|
13
|
-
protected hostView: ViewContainerRef;
|
|
14
|
-
protected
|
|
15
|
-
protected
|
|
9
|
+
protected readonly overlay: Overlay;
|
|
10
|
+
protected readonly elementRef: ElementRef;
|
|
11
|
+
protected readonly ngZone: NgZone;
|
|
12
|
+
protected readonly scrollDispatcher: ScrollDispatcher;
|
|
13
|
+
protected readonly hostView: ViewContainerRef;
|
|
14
|
+
protected readonly direction: Directionality | null;
|
|
15
|
+
protected abstract scrollStrategy: () => ScrollStrategy;
|
|
16
16
|
isOpen: boolean;
|
|
17
17
|
enterDelay: number;
|
|
18
18
|
leaveDelay: number;
|
|
@@ -40,7 +40,6 @@ export declare abstract class KbqPopUpTrigger<T> implements OnInit, OnDestroy {
|
|
|
40
40
|
};
|
|
41
41
|
protected readonly destroyed: Subject<void>;
|
|
42
42
|
protected triggerName: string;
|
|
43
|
-
protected constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction?: Directionality | undefined);
|
|
44
43
|
abstract updateClassMap(newPlacement?: string): void;
|
|
45
44
|
abstract updateData(): void;
|
|
46
45
|
abstract closingActions(): Observable<any>;
|
package/core/pop-up/pop-up.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { PopUpVisibility } from './constants';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare abstract class KbqPopUp implements OnDestroy {
|
|
7
|
-
|
|
7
|
+
protected readonly renderer: Renderer2;
|
|
8
|
+
protected readonly changeDetectorRef: ChangeDetectorRef;
|
|
8
9
|
header: string | TemplateRef<any>;
|
|
9
10
|
content: string | TemplateRef<any>;
|
|
10
11
|
context: {
|
|
@@ -22,7 +23,6 @@ export declare abstract class KbqPopUp implements OnDestroy {
|
|
|
22
23
|
protected closeOnInteraction: boolean;
|
|
23
24
|
private showTimeoutId;
|
|
24
25
|
private hideTimeoutId;
|
|
25
|
-
protected constructor(changeDetectorRef: ChangeDetectorRef);
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
27
|
isTemplateRef(value: any): boolean;
|
|
28
28
|
show(delay: number): void;
|
|
@@ -2,43 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../../styles/common/tokens' as *;
|
|
4
4
|
|
|
5
|
-
@mixin kbq-pseudo-checkbox-color($
|
|
6
|
-
$style: map.get($component, $style-name);
|
|
5
|
+
@mixin kbq-pseudo-checkbox-color($style-name) {
|
|
7
6
|
$base: checkbox-#{$style-name};
|
|
8
7
|
|
|
9
|
-
border-color: kbq-css-variable(#{$base}-default-border
|
|
10
|
-
background: kbq-css-variable(#{$base}-default-background
|
|
8
|
+
border-color: kbq-css-variable(#{$base}-default-border);
|
|
9
|
+
background: kbq-css-variable(#{$base}-default-background);
|
|
11
10
|
|
|
12
11
|
& .kbq-checkbox-checkmark,
|
|
13
12
|
& .kbq-checkbox-mixedmark {
|
|
14
|
-
color: kbq-css-variable(#{$base}-default-color
|
|
13
|
+
color: kbq-css-variable(#{$base}-default-color);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
&.kbq-checked,
|
|
18
17
|
&.kbq-indeterminate {
|
|
19
|
-
border-color: kbq-css-variable(#{$base}-states-checked-border
|
|
20
|
-
background: kbq-css-variable(#{$base}-states-checked-background
|
|
18
|
+
border-color: kbq-css-variable(#{$base}-states-checked-border);
|
|
19
|
+
background: kbq-css-variable(#{$base}-states-checked-background);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
&.kbq-disabled {
|
|
24
23
|
& .kbq-checkbox-checkmark,
|
|
25
24
|
& .kbq-checkbox-mixedmark {
|
|
26
|
-
color: kbq-css-variable(#{$base}-states-disabled-color
|
|
25
|
+
color: kbq-css-variable(#{$base}-states-disabled-color);
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
border-color: kbq-css-variable(#{$base}-states-disabled-border
|
|
30
|
-
background: kbq-css-variable(#{$base}-states-disabled-background
|
|
28
|
+
border-color: kbq-css-variable(#{$base}-states-disabled-border);
|
|
29
|
+
background: kbq-css-variable(#{$base}-states-disabled-background);
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
@mixin kbq-pseudo-checkbox-theme(
|
|
35
|
-
$checkbox: map.get($theme, components, checkbox);
|
|
36
|
-
|
|
33
|
+
@mixin kbq-pseudo-checkbox-theme() {
|
|
37
34
|
.kbq-pseudo-checkbox {
|
|
38
|
-
@include kbq-pseudo-checkbox-color(
|
|
35
|
+
@include kbq-pseudo-checkbox-color(theme);
|
|
39
36
|
|
|
40
37
|
&.kbq-error {
|
|
41
|
-
@include kbq-pseudo-checkbox-color(
|
|
38
|
+
@include kbq-pseudo-checkbox-color(error);
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
41
|
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
.kbq-pseudo-checkbox {
|
|
2
|
+
--kbq-checkbox-size-normal-width: 16px;
|
|
3
|
+
--kbq-checkbox-size-normal-border-width: 1px;
|
|
4
|
+
--kbq-checkbox-size-normal-border-radius: 4px;
|
|
5
|
+
--kbq-checkbox-size-normal-horizontal-content-padding: 8px;
|
|
6
|
+
--kbq-checkbox-size-normal-vertical-content-padding: 2px;
|
|
7
|
+
--kbq-checkbox-size-normal-top: 2px;
|
|
8
|
+
--kbq-checkbox-size-big-width: 16px;
|
|
9
|
+
--kbq-checkbox-size-big-border-width: 1px;
|
|
10
|
+
--kbq-checkbox-size-big-border-radius: 4px;
|
|
11
|
+
--kbq-checkbox-size-big-horizontal-content-padding: 8px;
|
|
12
|
+
--kbq-checkbox-size-big-vertical-content-padding: 2px;
|
|
13
|
+
--kbq-checkbox-size-big-top: 4px;
|
|
14
|
+
--kbq-checkbox-font-normal-label-font-size: 14px;
|
|
15
|
+
--kbq-checkbox-font-normal-label-line-height: 20px;
|
|
16
|
+
--kbq-checkbox-font-normal-label-letter-spacing: -0.006em;
|
|
17
|
+
--kbq-checkbox-font-normal-label-font-weight: normal;
|
|
18
|
+
--kbq-checkbox-font-normal-label-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
19
|
+
Arial, sans-serif;
|
|
20
|
+
--kbq-checkbox-font-normal-label-text-transform: null;
|
|
21
|
+
--kbq-checkbox-font-normal-label-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
22
|
+
--kbq-checkbox-font-normal-caption-font-size: 12px;
|
|
23
|
+
--kbq-checkbox-font-normal-caption-line-height: 16px;
|
|
24
|
+
--kbq-checkbox-font-normal-caption-letter-spacing: normal;
|
|
25
|
+
--kbq-checkbox-font-normal-caption-font-weight: normal;
|
|
26
|
+
--kbq-checkbox-font-normal-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
27
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
28
|
+
--kbq-checkbox-font-normal-caption-text-transform: null;
|
|
29
|
+
--kbq-checkbox-font-normal-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
30
|
+
--kbq-checkbox-font-big-label-font-size: 16px;
|
|
31
|
+
--kbq-checkbox-font-big-label-line-height: 24px;
|
|
32
|
+
--kbq-checkbox-font-big-label-letter-spacing: -0.011em;
|
|
33
|
+
--kbq-checkbox-font-big-label-font-weight: normal;
|
|
34
|
+
--kbq-checkbox-font-big-label-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
35
|
+
Arial, sans-serif;
|
|
36
|
+
--kbq-checkbox-font-big-label-text-transform: null;
|
|
37
|
+
--kbq-checkbox-font-big-label-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
38
|
+
--kbq-checkbox-font-big-caption-font-size: 14px;
|
|
39
|
+
--kbq-checkbox-font-big-caption-line-height: 20px;
|
|
40
|
+
--kbq-checkbox-font-big-caption-letter-spacing: -0.006em;
|
|
41
|
+
--kbq-checkbox-font-big-caption-font-weight: normal;
|
|
42
|
+
--kbq-checkbox-font-big-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
43
|
+
Arial, sans-serif;
|
|
44
|
+
--kbq-checkbox-font-big-caption-text-transform: null;
|
|
45
|
+
--kbq-checkbox-font-big-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
49
|
+
--kbq-checkbox-theme-default-border: hsla(229, 15%, 80%, 100%);
|
|
50
|
+
--kbq-checkbox-theme-default-color: hsla(0, 0%, 100%, 100%);
|
|
51
|
+
--kbq-checkbox-theme-default-text: hsla(229, 15%, 15%, 100%);
|
|
52
|
+
--kbq-checkbox-theme-default-background: hsla(0, 0%, 100%, 100%);
|
|
53
|
+
--kbq-checkbox-theme-default-caption: hsla(229, 15%, 50%, 100%);
|
|
54
|
+
--kbq-checkbox-theme-states-hover-border: hsla(229, 15%, 80%, 100%);
|
|
55
|
+
--kbq-checkbox-theme-states-hover-background: hsla(229, 15%, 50%, 8%);
|
|
56
|
+
--kbq-checkbox-theme-states-checked-border: transparent;
|
|
57
|
+
--kbq-checkbox-theme-states-checked-background: hsla(216, 100%, 50%, 100%);
|
|
58
|
+
--kbq-checkbox-theme-states-checked-hover-border: transparent;
|
|
59
|
+
--kbq-checkbox-theme-states-checked-hover-background: hsla(216, 100%, 45%, 100%);
|
|
60
|
+
--kbq-checkbox-theme-states-focused-border: hsla(216, 100%, 60%, 100%);
|
|
61
|
+
--kbq-checkbox-theme-states-focused-background: hsla(0, 0%, 100%, 100%);
|
|
62
|
+
--kbq-checkbox-theme-states-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
63
|
+
--kbq-checkbox-theme-states-checked-focused-border: hsla(216, 100%, 60%, 100%);
|
|
64
|
+
--kbq-checkbox-theme-states-checked-focused-background: hsla(216, 100%, 50%, 100%);
|
|
65
|
+
--kbq-checkbox-theme-states-checked-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
66
|
+
--kbq-checkbox-theme-states-disabled-border: hsla(229, 15%, 80%, 100%);
|
|
67
|
+
--kbq-checkbox-theme-states-disabled-color: hsla(229, 15%, 15%, 32%);
|
|
68
|
+
--kbq-checkbox-theme-states-disabled-text: hsla(229, 15%, 15%, 32%);
|
|
69
|
+
--kbq-checkbox-theme-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
70
|
+
--kbq-checkbox-theme-states-disabled-caption: hsla(229, 15%, 15%, 32%);
|
|
71
|
+
--kbq-checkbox-error-default-border: hsla(7, 97%, 45%, 100%);
|
|
72
|
+
--kbq-checkbox-error-default-color: hsla(0, 0%, 100%, 100%);
|
|
73
|
+
--kbq-checkbox-error-default-text: hsla(229, 15%, 15%, 100%);
|
|
74
|
+
--kbq-checkbox-error-default-background: hsla(7, 97%, 99%, 100%);
|
|
75
|
+
--kbq-checkbox-error-default-caption: hsla(229, 15%, 50%, 100%);
|
|
76
|
+
--kbq-checkbox-error-states-hover-border: hsla(7, 97%, 45%, 100%);
|
|
77
|
+
--kbq-checkbox-error-states-hover-background: hsla(7, 97%, 92%, 100%);
|
|
78
|
+
--kbq-checkbox-error-states-checked-border: transparent;
|
|
79
|
+
--kbq-checkbox-error-states-checked-background: hsla(7, 97%, 60%, 100%);
|
|
80
|
+
--kbq-checkbox-error-states-checked-hover-border: transparent;
|
|
81
|
+
--kbq-checkbox-error-states-checked-hover-background: hsla(7, 97%, 56%, 100%);
|
|
82
|
+
--kbq-checkbox-error-states-focused-border: hsla(7, 97%, 45%, 100%);
|
|
83
|
+
--kbq-checkbox-error-states-focused-background: hsla(7, 97%, 99%, 100%);
|
|
84
|
+
--kbq-checkbox-error-states-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
85
|
+
--kbq-checkbox-error-states-checked-focused-border: hsla(7, 97%, 45%, 100%);
|
|
86
|
+
--kbq-checkbox-error-states-checked-focused-background: hsla(7, 97%, 60%, 100%);
|
|
87
|
+
--kbq-checkbox-error-states-checked-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
88
|
+
--kbq-checkbox-error-states-disabled-border: hsla(229, 15%, 80%, 100%);
|
|
89
|
+
--kbq-checkbox-error-states-disabled-color: hsla(229, 15%, 15%, 32%);
|
|
90
|
+
--kbq-checkbox-error-states-disabled-text: hsla(229, 15%, 15%, 32%);
|
|
91
|
+
--kbq-checkbox-error-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
92
|
+
--kbq-checkbox-error-states-disabled-caption: hsla(229, 15%, 15%, 32%);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
96
|
+
--kbq-checkbox-theme-default-border: hsla(229, 15%, 30%, 100%);
|
|
97
|
+
--kbq-checkbox-theme-default-color: hsla(0, 0%, 100%, 100%);
|
|
98
|
+
--kbq-checkbox-theme-default-text: hsla(229, 15%, 80%, 100%);
|
|
99
|
+
--kbq-checkbox-theme-default-background: hsla(229, 15%, 12%, 100%);
|
|
100
|
+
--kbq-checkbox-theme-default-caption: hsla(229, 15%, 60%, 100%);
|
|
101
|
+
--kbq-checkbox-theme-states-hover-border: hsla(229, 15%, 30%, 100%);
|
|
102
|
+
--kbq-checkbox-theme-states-hover-background: hsla(229, 15%, 50%, 16%);
|
|
103
|
+
--kbq-checkbox-theme-states-checked-border: transparent;
|
|
104
|
+
--kbq-checkbox-theme-states-checked-background: hsla(216, 100%, 50%, 100%);
|
|
105
|
+
--kbq-checkbox-theme-states-checked-hover-border: transparent;
|
|
106
|
+
--kbq-checkbox-theme-states-checked-hover-background: hsla(216, 100%, 45%, 100%);
|
|
107
|
+
--kbq-checkbox-theme-states-focused-border: hsla(216, 100%, 60%, 100%);
|
|
108
|
+
--kbq-checkbox-theme-states-focused-background: hsla(229, 15%, 12%, 100%);
|
|
109
|
+
--kbq-checkbox-theme-states-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
110
|
+
--kbq-checkbox-theme-states-checked-focused-border: hsla(216, 100%, 60%, 100%);
|
|
111
|
+
--kbq-checkbox-theme-states-checked-focused-background: hsla(216, 100%, 50%, 100%);
|
|
112
|
+
--kbq-checkbox-theme-states-checked-focused-outline: 1px solid hsla(216, 100%, 60%, 100%);
|
|
113
|
+
--kbq-checkbox-theme-states-disabled-border: hsla(229, 15%, 30%, 100%);
|
|
114
|
+
--kbq-checkbox-theme-states-disabled-color: hsla(229, 15%, 30%, 100%);
|
|
115
|
+
--kbq-checkbox-theme-states-disabled-text: hsla(229, 15%, 40%, 100%);
|
|
116
|
+
--kbq-checkbox-theme-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
117
|
+
--kbq-checkbox-theme-states-disabled-caption: hsla(229, 15%, 30%, 100%);
|
|
118
|
+
--kbq-checkbox-error-default-border: hsla(7, 97%, 35%, 100%);
|
|
119
|
+
--kbq-checkbox-error-default-color: hsla(0, 0%, 100%, 100%);
|
|
120
|
+
--kbq-checkbox-error-default-text: hsla(229, 15%, 80%, 100%);
|
|
121
|
+
--kbq-checkbox-error-default-background: hsla(7, 97%, 6%, 100%);
|
|
122
|
+
--kbq-checkbox-error-default-caption: hsla(229, 15%, 60%, 100%);
|
|
123
|
+
--kbq-checkbox-error-states-hover-border: hsla(7, 97%, 35%, 100%);
|
|
124
|
+
--kbq-checkbox-error-states-hover-background: hsla(7, 97%, 13%, 100%);
|
|
125
|
+
--kbq-checkbox-error-states-checked-border: transparent;
|
|
126
|
+
--kbq-checkbox-error-states-checked-background: hsla(7, 97%, 41%, 100%);
|
|
127
|
+
--kbq-checkbox-error-states-checked-hover-border: transparent;
|
|
128
|
+
--kbq-checkbox-error-states-checked-hover-background: hsla(7, 97%, 42%, 100%);
|
|
129
|
+
--kbq-checkbox-error-states-focused-border: hsla(7, 97%, 35%, 100%);
|
|
130
|
+
--kbq-checkbox-error-states-focused-background: hsla(7, 97%, 6%, 100%);
|
|
131
|
+
--kbq-checkbox-error-states-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
132
|
+
--kbq-checkbox-error-states-checked-focused-border: hsla(7, 97%, 45%, 100%);
|
|
133
|
+
--kbq-checkbox-error-states-checked-focused-background: hsla(7, 97%, 41%, 100%);
|
|
134
|
+
--kbq-checkbox-error-states-checked-focused-outline: 1px solid hsla(7, 97%, 45%, 100%);
|
|
135
|
+
--kbq-checkbox-error-states-disabled-border: hsla(229, 15%, 30%, 100%);
|
|
136
|
+
--kbq-checkbox-error-states-disabled-color: hsla(229, 15%, 30%, 100%);
|
|
137
|
+
--kbq-checkbox-error-states-disabled-text: hsla(229, 15%, 40%, 100%);
|
|
138
|
+
--kbq-checkbox-error-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
139
|
+
--kbq-checkbox-error-states-disabled-caption: hsla(229, 15%, 30%, 100%);
|
|
140
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../../styles/tokens';
|
|
5
4
|
@use '../../styles/common/tokens' as *;
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
@use './pseudo-checkbox-theme' as *;
|
|
8
7
|
|
|
9
8
|
.kbq-pseudo-checkbox {
|
|
10
9
|
position: relative;
|
|
@@ -64,3 +63,5 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
64
63
|
width: kbq-css-variable(checkbox-size-big-border-width);
|
|
65
64
|
}
|
|
66
65
|
}
|
|
66
|
+
|
|
67
|
+
@include kbq-pseudo-checkbox-theme();
|