@koobiq/components 17.4.0 → 17.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/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/code-block/_code-block-theme.scss +124 -143
- package/code-block/code-block-tokens.scss +400 -0
- package/code-block/code-block.scss +4 -2
- 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/services/theme.service.d.ts +16 -0
- package/core/styles/_koobiq-theme.scss +6 -100
- 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/divider/_divider-theme.scss +2 -4
- package/divider/divider-tokens.scss +14 -0
- package/divider/divider.scss +4 -0
- package/dl/_dl-theme.scss +4 -6
- package/dl/dl-tokens.scss +32 -0
- package/dl/dl.scss +5 -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/empty-state/_empty-state-theme.scss +6 -9
- package/empty-state/empty-state-tokens.scss +68 -0
- package/empty-state/empty-state.scss +5 -0
- 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/code-block/code-block.component.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/services/theme.service.mjs +20 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/divider/divider.component.mjs +3 -3
- package/esm2022/dl/dl.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +12 -23
- package/esm2022/empty-state/empty-state.component.mjs +3 -3
- package/esm2022/file-upload/multiple-file-upload.component.mjs +3 -3
- package/esm2022/file-upload/single-file-upload.component.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +3 -3
- package/esm2022/form-field/hint.mjs +3 -3
- package/esm2022/form-field/password-hint.mjs +10 -7
- 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/list/list-selection.component.mjs +3 -3
- package/esm2022/list/list.component.mjs +3 -3
- package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
- package/esm2022/markdown/markdown.component.mjs +3 -3
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal.component.mjs +3 -3
- package/esm2022/modal/modal.service.mjs +16 -8
- package/esm2022/modal/modal.type.mjs +1 -1
- package/esm2022/navbar/navbar-item.component.mjs +17 -31
- package/esm2022/navbar/navbar.component.mjs +3 -3
- package/esm2022/popover/popover-confirm.component.mjs +13 -22
- package/esm2022/popover/popover.component.mjs +24 -31
- package/esm2022/select/select-option.directive.mjs +7 -18
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/timezone/timezone-option.component.mjs +3 -3
- package/esm2022/timezone/timezone-option.directive.mjs +7 -18
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/title/title.directive.mjs +7 -18
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +28 -47
- package/esm2022/tree/toggle.mjs +3 -3
- package/esm2022/tree/tree-option.component.mjs +3 -3
- package/esm2022/tree/tree-selection.component.mjs +3 -3
- package/esm2022/tree/tree.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- 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-code-block.mjs +2 -2
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +49 -35
- 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-divider.mjs +2 -2
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -2
- package/fesm2022/koobiq-components-dl.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-empty-state.mjs +2 -2
- package/fesm2022/koobiq-components-empty-state.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 +33 -37
- 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-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
- package/fesm2022/koobiq-components-loader-overlay.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 +17 -9
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +17 -29
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +33 -44
- 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-table.mjs +2 -2
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +13 -20
- 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-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-tooltip.mjs +27 -44
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +8 -8
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +29 -112
- package/file-upload/file-upload-tokens.scss +159 -0
- package/file-upload/file-upload.scss +4 -2
- 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/list/_list-theme.scss +14 -25
- package/list/list-tokens.scss +100 -0
- package/list/list.scss +5 -0
- package/loader-overlay/_loader-overlay-theme.scss +8 -23
- package/loader-overlay/loader-overlay-tokens.scss +58 -0
- package/loader-overlay/loader-overlay.scss +4 -5
- package/markdown/_markdown-theme.scss +29 -43
- package/markdown/markdown-tokens.scss +252 -0
- package/markdown/markdown.scss +6 -6
- package/modal/_modal-confirm.scss +0 -3
- package/modal/_modal-theme.scss +10 -12
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal-tokens.scss +53 -0
- package/modal/modal.component.d.ts +2 -2
- package/modal/modal.scss +5 -0
- package/modal/modal.service.d.ts +12 -7
- package/modal/modal.type.d.ts +3 -0
- package/navbar/_navbar-theme.scss +15 -25
- package/navbar/navbar-divider.scss +0 -3
- package/navbar/navbar-item.component.d.ts +5 -7
- package/navbar/navbar-item.scss +0 -3
- package/navbar/navbar-tokens.scss +83 -0
- package/navbar/navbar.scss +5 -3
- package/navbar/vertical-navbar.scss +0 -3
- package/package.json +7 -7
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover-confirm.component.d.ts +3 -6
- package/popover/popover-tokens.scss +60 -0
- package/popover/popover.component.d.ts +4 -6
- package/popover/popover.scss +4 -5
- 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/table/_table-theme.scss +7 -15
- package/table/table-tokens.scss +37 -0
- package/table/table.scss +4 -1
- package/textarea/_textarea-theme.scss +1 -1
- package/textarea/textarea-tokens.scss +14 -0
- package/textarea/textarea.scss +1 -0
- package/timezone/_timezone-option-theme.scss +5 -7
- package/timezone/timezone-option-tokens.scss +51 -0
- package/timezone/timezone-option.component.scss +5 -0
- package/timezone/timezone-option.directive.d.ts +3 -6
- package/timezone/timezone-select.component.scss +5 -0
- package/title/title.directive.d.ts +3 -6
- package/toast/_toast-theme.scss +11 -15
- package/toast/toast-tokens.scss +75 -0
- package/toast/toast.component.scss +4 -1
- package/toggle/_toggle-theme.scss +21 -41
- package/toggle/toggle-tokens.scss +142 -0
- package/toggle/toggle.scss +4 -1
- package/tooltip/_tooltip-theme.scss +13 -23
- package/tooltip/tooltip-tokens.scss +63 -0
- package/tooltip/tooltip.component.d.ts +8 -11
- package/tooltip/tooltip.scss +5 -0
- package/tree/_tree-theme.scss +14 -21
- package/tree/toggle.scss +5 -0
- package/tree/tree-option.scss +0 -5
- package/tree/tree-selection.scss +5 -0
- package/tree/tree-tokens.scss +94 -0
- package/tree/tree.scss +5 -0
- package/tree-select/_tree-select-theme.scss +9 -16
- package/tree-select/tree-select-tokens.scss +59 -0
- package/tree-select/tree-select.scss +5 -0
|
@@ -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();
|