@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
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.kbq-form-field {
|
|
2
|
+
--kbq-form-field-size-height: 32px;
|
|
3
|
+
--kbq-form-field-size-border-width: 1px;
|
|
4
|
+
--kbq-form-field-size-border-radius: 8px;
|
|
5
|
+
--kbq-form-field-size-icon-size: 16px;
|
|
6
|
+
--kbq-form-field-size-icon-margin-left: 8px;
|
|
7
|
+
--kbq-form-field-size-icon-margin-right: 8px;
|
|
8
|
+
--kbq-form-field-size-icon-button-size: 24px;
|
|
9
|
+
--kbq-form-field-size-icon-button-margin-right: 4px;
|
|
10
|
+
--kbq-form-field-size-icon-button-margin-left: 4px;
|
|
11
|
+
--kbq-form-field-font-text-font-size: 14px;
|
|
12
|
+
--kbq-form-field-font-text-line-height: 20px;
|
|
13
|
+
--kbq-form-field-font-text-letter-spacing: -0.006em;
|
|
14
|
+
--kbq-form-field-font-text-font-weight: normal;
|
|
15
|
+
--kbq-form-field-font-text-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
16
|
+
Arial, sans-serif;
|
|
17
|
+
--kbq-form-field-font-text-text-transform: null;
|
|
18
|
+
--kbq-form-field-font-text-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
22
|
+
--kbq-form-field-default-border-color: hsla(229, 15%, 80%, 100%);
|
|
23
|
+
--kbq-form-field-default-background: hsla(0, 0%, 100%, 100%);
|
|
24
|
+
--kbq-form-field-default-placeholder: hsla(229, 15%, 60%, 100%);
|
|
25
|
+
--kbq-form-field-default-text: hsla(229, 15%, 15%, 100%);
|
|
26
|
+
--kbq-form-field-states-focused-border-color: hsla(216, 100%, 60%, 100%);
|
|
27
|
+
--kbq-form-field-states-focused-background: hsla(0, 0%, 100%, 100%);
|
|
28
|
+
--kbq-form-field-states-focused-placeholder: hsla(229, 15%, 60%, 100%);
|
|
29
|
+
--kbq-form-field-states-focused-text: hsla(229, 15%, 15%, 100%);
|
|
30
|
+
--kbq-form-field-states-focused-focus-outline: hsla(216, 100%, 60%, 100%);
|
|
31
|
+
--kbq-form-field-states-error-border-color: hsla(7, 97%, 45%, 100%);
|
|
32
|
+
--kbq-form-field-states-error-background: hsla(7, 97%, 99%, 100%);
|
|
33
|
+
--kbq-form-field-states-error-placeholder: hsla(7, 97%, 70%, 100%);
|
|
34
|
+
--kbq-form-field-states-error-text: hsla(7, 97%, 40%, 100%);
|
|
35
|
+
--kbq-form-field-states-error-focused-focus-outline: hsla(7, 97%, 45%, 100%);
|
|
36
|
+
--kbq-form-field-states-autofill-border-color: hsla(216, 100%, 60%, 100%);
|
|
37
|
+
--kbq-form-field-states-autofill-background: hsla(216, 100%, 85%, 100%);
|
|
38
|
+
--kbq-form-field-states-autofill-placeholder: hsla(229, 15%, 60%, 100%);
|
|
39
|
+
--kbq-form-field-states-autofill-text: hsla(229, 15%, 15%, 100%);
|
|
40
|
+
--kbq-form-field-states-disabled-border-color: hsla(229, 15%, 15%, 32%);
|
|
41
|
+
--kbq-form-field-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
42
|
+
--kbq-form-field-states-disabled-placeholder: hsla(229, 15%, 15%, 32%);
|
|
43
|
+
--kbq-form-field-states-disabled-text: hsla(229, 15%, 15%, 32%);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
47
|
+
--kbq-form-field-default-border-color: hsla(229, 15%, 30%, 100%);
|
|
48
|
+
--kbq-form-field-default-background: hsla(229, 15%, 12%, 100%);
|
|
49
|
+
--kbq-form-field-default-placeholder: hsla(229, 15%, 45%, 100%);
|
|
50
|
+
--kbq-form-field-default-text: hsla(229, 15%, 80%, 100%);
|
|
51
|
+
--kbq-form-field-states-focused-border-color: hsla(216, 100%, 60%, 100%);
|
|
52
|
+
--kbq-form-field-states-focused-background: hsla(229, 15%, 12%, 100%);
|
|
53
|
+
--kbq-form-field-states-focused-placeholder: hsla(229, 15%, 45%, 100%);
|
|
54
|
+
--kbq-form-field-states-focused-text: hsla(229, 15%, 80%, 100%);
|
|
55
|
+
--kbq-form-field-states-focused-focus-outline: hsla(216, 100%, 60%, 100%);
|
|
56
|
+
--kbq-form-field-states-error-border-color: hsla(7, 97%, 35%, 100%);
|
|
57
|
+
--kbq-form-field-states-error-background: hsla(7, 97%, 6%, 100%);
|
|
58
|
+
--kbq-form-field-states-error-placeholder: hsla(7, 97%, 25%, 100%);
|
|
59
|
+
--kbq-form-field-states-error-text: hsla(7, 97%, 60%, 100%);
|
|
60
|
+
--kbq-form-field-states-error-focused-focus-outline: hsla(7, 97%, 45%, 100%);
|
|
61
|
+
--kbq-form-field-states-autofill-border-color: hsla(216, 100%, 60%, 100%);
|
|
62
|
+
--kbq-form-field-states-autofill-background: hsla(216, 100%, 20%, 100%);
|
|
63
|
+
--kbq-form-field-states-autofill-placeholder: hsla(229, 15%, 45%, 100%);
|
|
64
|
+
--kbq-form-field-states-autofill-text: hsla(229, 15%, 80%, 100%);
|
|
65
|
+
--kbq-form-field-states-disabled-border-color: hsla(229, 15%, 50%, 32%);
|
|
66
|
+
--kbq-form-field-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
67
|
+
--kbq-form-field-states-disabled-placeholder: hsla(229, 15%, 40%, 100%);
|
|
68
|
+
--kbq-form-field-states-disabled-text: hsla(229, 15%, 40%, 100%);
|
|
69
|
+
}
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
@use '../core/forms/forms';
|
|
7
7
|
|
|
8
|
-
@use '../core/styles/tokens';
|
|
9
8
|
@use '../core/styles/common/tokens' as *;
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
@use './form-field-theme' as *;
|
|
12
11
|
|
|
13
12
|
.kbq-form-field {
|
|
14
13
|
position: relative;
|
|
@@ -143,3 +142,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
143
142
|
.kbq-password-hint {
|
|
144
143
|
margin-top: kbq-css-variable(form-field-hint-size-gap);
|
|
145
144
|
}
|
|
145
|
+
|
|
146
|
+
@include kbq-form-field-theme();
|
|
147
|
+
@include kbq-form-field-typography();
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.kbq-hint {
|
|
2
|
+
--kbq-hint-size-normal-margin-top: 2px;
|
|
3
|
+
--kbq-hint-size-normal-content-padding: 4px;
|
|
4
|
+
--kbq-hint-size-compact-margin-top: 0;
|
|
5
|
+
--kbq-hint-size-compact-content-padding: 4px;
|
|
6
|
+
--kbq-hint-font-normal-text-font-size: 14px;
|
|
7
|
+
--kbq-hint-font-normal-text-line-height: 20px;
|
|
8
|
+
--kbq-hint-font-normal-text-letter-spacing: -0.006em;
|
|
9
|
+
--kbq-hint-font-normal-text-font-weight: 500;
|
|
10
|
+
--kbq-hint-font-normal-text-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
11
|
+
Arial, sans-serif;
|
|
12
|
+
--kbq-hint-font-normal-text-text-transform: null;
|
|
13
|
+
--kbq-hint-font-normal-text-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
14
|
+
--kbq-hint-font-compact-text-font-size: 12px;
|
|
15
|
+
--kbq-hint-font-compact-text-line-height: 16px;
|
|
16
|
+
--kbq-hint-font-compact-text-letter-spacing: normal;
|
|
17
|
+
--kbq-hint-font-compact-text-font-weight: normal;
|
|
18
|
+
--kbq-hint-font-compact-text-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
19
|
+
Arial, sans-serif;
|
|
20
|
+
--kbq-hint-font-compact-text-text-transform: null;
|
|
21
|
+
--kbq-hint-font-compact-text-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
25
|
+
--kbq-hint-fill-text-off-fade-contrast-text: hsla(229, 15%, 15%, 100%);
|
|
26
|
+
--kbq-hint-fill-text-off-fade-contrast-icon: hsla(229, 15%, 60%, 100%);
|
|
27
|
+
--kbq-hint-fill-text-off-success-text: hsla(229, 15%, 15%, 100%);
|
|
28
|
+
--kbq-hint-fill-text-off-success-icon: hsla(104, 64%, 40%, 100%);
|
|
29
|
+
--kbq-hint-fill-text-off-warning-text: hsla(229, 15%, 15%, 100%);
|
|
30
|
+
--kbq-hint-fill-text-off-warning-icon: hsla(38, 100%, 42%, 100%);
|
|
31
|
+
--kbq-hint-fill-text-off-error-text: hsla(229, 15%, 15%, 100%);
|
|
32
|
+
--kbq-hint-fill-text-off-error-icon: hsla(7, 97%, 45%, 100%);
|
|
33
|
+
--kbq-hint-fill-text-on-fade-contrast-text: hsla(229, 15%, 15%, 100%);
|
|
34
|
+
--kbq-hint-fill-text-on-fade-contrast-icon: hsla(229, 15%, 60%, 100%);
|
|
35
|
+
--kbq-hint-fill-text-on-success-text: hsla(104, 64%, 30%, 100%);
|
|
36
|
+
--kbq-hint-fill-text-on-success-icon: hsla(104, 64%, 40%, 100%);
|
|
37
|
+
--kbq-hint-fill-text-on-warning-text: hsla(38, 100%, 33%, 100%);
|
|
38
|
+
--kbq-hint-fill-text-on-warning-icon: hsla(38, 100%, 42%, 100%);
|
|
39
|
+
--kbq-hint-fill-text-on-error-text: hsla(7, 97%, 40%, 100%);
|
|
40
|
+
--kbq-hint-fill-text-on-error-icon: hsla(7, 97%, 45%, 100%);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
44
|
+
--kbq-hint-fill-text-off-fade-contrast-text: hsla(229, 15%, 80%, 100%);
|
|
45
|
+
--kbq-hint-fill-text-off-fade-contrast-icon: hsla(229, 15%, 45%, 100%);
|
|
46
|
+
--kbq-hint-fill-text-off-success-text: hsla(229, 15%, 80%, 100%);
|
|
47
|
+
--kbq-hint-fill-text-off-success-icon: hsla(104, 64%, 45%, 100%);
|
|
48
|
+
--kbq-hint-fill-text-off-warning-text: hsla(229, 15%, 80%, 100%);
|
|
49
|
+
--kbq-hint-fill-text-off-warning-icon: hsla(38, 100%, 60%, 100%);
|
|
50
|
+
--kbq-hint-fill-text-off-error-text: hsla(229, 15%, 80%, 100%);
|
|
51
|
+
--kbq-hint-fill-text-off-error-icon: hsla(7, 97%, 60%, 100%);
|
|
52
|
+
--kbq-hint-fill-text-on-fade-contrast-text: hsla(229, 15%, 80%, 100%);
|
|
53
|
+
--kbq-hint-fill-text-on-fade-contrast-icon: hsla(229, 15%, 45%, 100%);
|
|
54
|
+
--kbq-hint-fill-text-on-success-text: hsla(104, 64%, 45%, 100%);
|
|
55
|
+
--kbq-hint-fill-text-on-success-icon: hsla(104, 64%, 45%, 100%);
|
|
56
|
+
--kbq-hint-fill-text-on-warning-text: hsla(38, 100%, 60%, 100%);
|
|
57
|
+
--kbq-hint-fill-text-on-warning-icon: hsla(38, 100%, 60%, 100%);
|
|
58
|
+
--kbq-hint-fill-text-on-error-text: hsla(7, 97%, 60%, 100%);
|
|
59
|
+
--kbq-hint-fill-text-on-error-icon: hsla(7, 97%, 60%, 100%);
|
|
60
|
+
}
|
package/form-field/hint.scss
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
3
|
-
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
4
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, TemplateRef } from '@angular/core';
|
|
5
2
|
import { KbqFormFieldRef } from '@koobiq/components/core';
|
|
6
3
|
import { KbqIconButton } from '@koobiq/components/icon';
|
|
7
4
|
import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
|
|
@@ -16,10 +13,10 @@ export declare class KbqPasswordToggle extends KbqTooltipTrigger implements Afte
|
|
|
16
13
|
get hidden(): boolean;
|
|
17
14
|
get iconClass(): string;
|
|
18
15
|
get visibility(): string;
|
|
19
|
-
constructor(
|
|
16
|
+
constructor(formField: KbqFormFieldRef, changeDetector: ChangeDetectorRef);
|
|
20
17
|
ngAfterViewInit(): void;
|
|
21
18
|
toggle(event: KeyboardEvent): void;
|
|
22
19
|
private updateState;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordToggle,
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordToggle, never>;
|
|
24
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordToggle, "kbq-password-toggle", ["kbqPasswordToggle"], { "content": { "alias": "kbqTooltipNotHidden"; "required": false; }; "kbqTooltipHidden": { "alias": "kbqTooltipHidden"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
22
|
}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
4
|
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
|
-
@mixin kbq-icon-button-theme(
|
|
7
|
-
$icon-button: map.get($theme, components, icon-button);
|
|
8
|
-
|
|
6
|
+
@mixin kbq-icon-button-theme() {
|
|
9
7
|
.kbq-icon-button {
|
|
10
8
|
&:focus {
|
|
11
9
|
outline: none;
|
|
@@ -13,147 +11,111 @@
|
|
|
13
11
|
|
|
14
12
|
// FIXME: move to unified mixin
|
|
15
13
|
&.kbq-theme {
|
|
16
|
-
color: kbq-css-variable(icon-button-theme-default
|
|
14
|
+
color: kbq-css-variable(icon-button-theme-default);
|
|
17
15
|
|
|
18
16
|
&:active,
|
|
19
17
|
&.kbq-active {
|
|
20
|
-
color: kbq-css-variable(icon-button-theme-states-active
|
|
18
|
+
color: kbq-css-variable(icon-button-theme-states-active);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
&:not(.kbq-disabled):hover {
|
|
24
|
-
color: kbq-css-variable(icon-button-theme-states-hover
|
|
22
|
+
color: kbq-css-variable(icon-button-theme-states-hover);
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
&.kbq-disabled {
|
|
28
|
-
color: kbq-css-variable(
|
|
29
|
-
icon-button-theme-states-disabled,
|
|
30
|
-
map.get($icon-button, theme, state-disabled)
|
|
31
|
-
);
|
|
26
|
+
color: kbq-css-variable(icon-button-theme-states-disabled);
|
|
32
27
|
}
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
&.kbq-contrast {
|
|
36
|
-
color: kbq-css-variable(icon-button-contrast-default
|
|
31
|
+
color: kbq-css-variable(icon-button-contrast-default);
|
|
37
32
|
|
|
38
33
|
&:active,
|
|
39
34
|
&.kbq-active {
|
|
40
|
-
color: kbq-css-variable(
|
|
41
|
-
icon-button-contrast-states-active,
|
|
42
|
-
map.get($icon-button, contrast, state-active)
|
|
43
|
-
);
|
|
35
|
+
color: kbq-css-variable(icon-button-contrast-states-active);
|
|
44
36
|
}
|
|
45
37
|
|
|
46
38
|
&:not(.kbq-disabled):hover {
|
|
47
|
-
color: kbq-css-variable(
|
|
48
|
-
icon-button-contrast-states-hover,
|
|
49
|
-
map.get($icon-button, contrast, state-hover)
|
|
50
|
-
);
|
|
39
|
+
color: kbq-css-variable(icon-button-contrast-states-hover);
|
|
51
40
|
}
|
|
52
41
|
|
|
53
42
|
&.kbq-disabled {
|
|
54
|
-
color: kbq-css-variable(
|
|
55
|
-
icon-button-contrast-states-disabled,
|
|
56
|
-
map.get($icon-button, contrast, state-disabled)
|
|
57
|
-
);
|
|
43
|
+
color: kbq-css-variable(icon-button-contrast-states-disabled);
|
|
58
44
|
}
|
|
59
45
|
}
|
|
60
46
|
|
|
61
47
|
&.kbq-contrast-fade {
|
|
62
|
-
color: kbq-css-variable(icon-button-fade-contrast-default
|
|
48
|
+
color: kbq-css-variable(icon-button-fade-contrast-default);
|
|
63
49
|
|
|
64
50
|
&:active,
|
|
65
51
|
&.kbq-active {
|
|
66
|
-
color: kbq-css-variable(
|
|
67
|
-
icon-button-fade-contrast-states-active,
|
|
68
|
-
map.get($icon-button, fade-contrast, state-active)
|
|
69
|
-
);
|
|
52
|
+
color: kbq-css-variable(icon-button-fade-contrast-states-active);
|
|
70
53
|
}
|
|
71
54
|
|
|
72
55
|
&:not(.kbq-disabled):hover {
|
|
73
|
-
color: kbq-css-variable(
|
|
74
|
-
icon-button-fade-contrast-states-hover,
|
|
75
|
-
map.get($icon-button, fade-contrast, state-hover)
|
|
76
|
-
);
|
|
56
|
+
color: kbq-css-variable(icon-button-fade-contrast-states-hover);
|
|
77
57
|
}
|
|
78
58
|
|
|
79
59
|
&.kbq-disabled {
|
|
80
|
-
color: kbq-css-variable(
|
|
81
|
-
icon-button-fade-contrast-states-disabled,
|
|
82
|
-
map.get($icon-button, fade-contrast, state-disabled)
|
|
83
|
-
);
|
|
60
|
+
color: kbq-css-variable(icon-button-fade-contrast-states-disabled);
|
|
84
61
|
}
|
|
85
62
|
}
|
|
86
63
|
|
|
87
64
|
&.kbq-error {
|
|
88
|
-
color: kbq-css-variable(icon-button-error-default
|
|
65
|
+
color: kbq-css-variable(icon-button-error-default);
|
|
89
66
|
|
|
90
67
|
&:active,
|
|
91
68
|
&.kbq-active {
|
|
92
|
-
color: kbq-css-variable(icon-button-error-states-active
|
|
69
|
+
color: kbq-css-variable(icon-button-error-states-active);
|
|
93
70
|
}
|
|
94
71
|
|
|
95
72
|
&:not(.kbq-disabled):hover {
|
|
96
|
-
color: kbq-css-variable(icon-button-error-states-hover
|
|
73
|
+
color: kbq-css-variable(icon-button-error-states-hover);
|
|
97
74
|
}
|
|
98
75
|
|
|
99
76
|
&.kbq-disabled {
|
|
100
|
-
color: kbq-css-variable(
|
|
101
|
-
icon-button-error-states-disabled,
|
|
102
|
-
map.get($icon-button, error, state-disabled)
|
|
103
|
-
);
|
|
77
|
+
color: kbq-css-variable(icon-button-error-states-disabled);
|
|
104
78
|
}
|
|
105
79
|
}
|
|
106
80
|
|
|
107
81
|
&.kbq-success {
|
|
108
|
-
color: kbq-css-variable(icon-button-success-default
|
|
82
|
+
color: kbq-css-variable(icon-button-success-default);
|
|
109
83
|
|
|
110
84
|
&:active,
|
|
111
85
|
&.kbq-active {
|
|
112
|
-
color: kbq-css-variable(
|
|
113
|
-
icon-button-success-states-active,
|
|
114
|
-
map.get($icon-button, success, state-active)
|
|
115
|
-
);
|
|
86
|
+
color: kbq-css-variable(icon-button-success-states-active);
|
|
116
87
|
}
|
|
117
88
|
|
|
118
89
|
&:not(.kbq-disabled):hover {
|
|
119
|
-
color: kbq-css-variable(icon-button-success-states-hover
|
|
90
|
+
color: kbq-css-variable(icon-button-success-states-hover);
|
|
120
91
|
}
|
|
121
92
|
|
|
122
93
|
&.kbq-disabled {
|
|
123
|
-
color: kbq-css-variable(
|
|
124
|
-
icon-button-success-states-disabled,
|
|
125
|
-
map.get($icon-button, success, state-disabled)
|
|
126
|
-
);
|
|
94
|
+
color: kbq-css-variable(icon-button-success-states-disabled);
|
|
127
95
|
}
|
|
128
96
|
}
|
|
129
97
|
|
|
130
98
|
&.kbq-warning {
|
|
131
|
-
color: kbq-css-variable(icon-button-warning-default
|
|
99
|
+
color: kbq-css-variable(icon-button-warning-default);
|
|
132
100
|
|
|
133
101
|
&:active,
|
|
134
102
|
&.kbq-active {
|
|
135
|
-
color: kbq-css-variable(
|
|
136
|
-
icon-button-warning-states-active,
|
|
137
|
-
map.get($icon-button, warning, state-active)
|
|
138
|
-
);
|
|
103
|
+
color: kbq-css-variable(icon-button-warning-states-active);
|
|
139
104
|
}
|
|
140
105
|
|
|
141
106
|
&:not(.kbq-disabled):hover {
|
|
142
|
-
color: kbq-css-variable(icon-button-warning-states-hover
|
|
107
|
+
color: kbq-css-variable(icon-button-warning-states-hover);
|
|
143
108
|
}
|
|
144
109
|
|
|
145
110
|
&.kbq-disabled {
|
|
146
|
-
color: kbq-css-variable(
|
|
147
|
-
icon-button-warning-states-disabled,
|
|
148
|
-
map.get($icon-button, warning, state-disabled)
|
|
149
|
-
);
|
|
111
|
+
color: kbq-css-variable(icon-button-warning-states-disabled);
|
|
150
112
|
}
|
|
151
113
|
}
|
|
152
114
|
|
|
153
115
|
&.cdk-keyboard-focused {
|
|
154
116
|
box-shadow:
|
|
155
|
-
inset 0 0 0.1px 1px kbq-css-variable(states-focused-color
|
|
156
|
-
0 0 0.1px 1px kbq-css-variable(states-focused-color
|
|
117
|
+
inset 0 0 0.1px 1px kbq-css-variable(states-focused-color),
|
|
118
|
+
0 0 0.1px 1px kbq-css-variable(states-focused-color);
|
|
157
119
|
}
|
|
158
120
|
}
|
|
159
121
|
}
|
|
@@ -3,59 +3,56 @@
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
4
|
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
|
-
@mixin kbq-icon-item-style($
|
|
7
|
-
$style: map.get($component, $type, $style-name);
|
|
6
|
+
@mixin kbq-icon-item-style($type, $style-name) {
|
|
8
7
|
$base: icon-item-filled-#{$type}-#{$style-name};
|
|
9
8
|
|
|
10
|
-
color: kbq-css-variable(#{$base}-color
|
|
11
|
-
background: kbq-css-variable(#{$base}-background
|
|
9
|
+
color: kbq-css-variable(#{$base}-color);
|
|
10
|
+
background: kbq-css-variable(#{$base}-background);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
@mixin kbq-icon-item-theme(
|
|
15
|
-
$icon-item: map.get($theme, components, icon-item);
|
|
16
|
-
|
|
13
|
+
@mixin kbq-icon-item-theme() {
|
|
17
14
|
.kbq-icon-item.kbq-icon-item_filled {
|
|
18
15
|
&.kbq-icon-item_fade-off {
|
|
19
16
|
&.kbq-theme {
|
|
20
|
-
@include kbq-icon-item-style(
|
|
17
|
+
@include kbq-icon-item-style(fade-off, theme);
|
|
21
18
|
}
|
|
22
19
|
|
|
23
20
|
&.kbq-contrast {
|
|
24
|
-
@include kbq-icon-item-style(
|
|
21
|
+
@include kbq-icon-item-style(fade-off, contrast);
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
&.kbq-error {
|
|
28
|
-
@include kbq-icon-item-style(
|
|
25
|
+
@include kbq-icon-item-style(fade-off, error);
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
&.kbq-warning {
|
|
32
|
-
@include kbq-icon-item-style(
|
|
29
|
+
@include kbq-icon-item-style(fade-off, warning);
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
&.kbq-success {
|
|
36
|
-
@include kbq-icon-item-style(
|
|
33
|
+
@include kbq-icon-item-style(fade-off, success);
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
&.kbq-icon-item_fade-on {
|
|
41
38
|
&.kbq-theme {
|
|
42
|
-
@include kbq-icon-item-style(
|
|
39
|
+
@include kbq-icon-item-style(fade-on, theme);
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
&.kbq-contrast {
|
|
46
|
-
@include kbq-icon-item-style(
|
|
43
|
+
@include kbq-icon-item-style(fade-on, contrast);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
&.kbq-error {
|
|
50
|
-
@include kbq-icon-item-style(
|
|
47
|
+
@include kbq-icon-item-style(fade-on, error);
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
&.kbq-warning {
|
|
54
|
-
@include kbq-icon-item-style(
|
|
51
|
+
@include kbq-icon-item-style(fade-on, warning);
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
&.kbq-success {
|
|
58
|
-
@include kbq-icon-item-style(
|
|
55
|
+
@include kbq-icon-item-style(fade-on, success);
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
}
|
package/icon/_icon-theme.scss
CHANGED
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use '../core/styles/theming/theming' as *;
|
|
4
1
|
@use '../core/styles/common/tokens' as *;
|
|
5
2
|
|
|
6
|
-
@mixin kbq-icon-theme(
|
|
7
|
-
$icon: map.get($theme, components, icon);
|
|
8
|
-
|
|
3
|
+
@mixin kbq-icon-theme() {
|
|
9
4
|
.kbq-icon:not(.kbq-icon-button, .kbq-icon-item) {
|
|
10
5
|
&.kbq-theme {
|
|
11
|
-
color: kbq-css-variable(icon-theme-color
|
|
6
|
+
color: kbq-css-variable(icon-theme-color);
|
|
12
7
|
}
|
|
13
8
|
|
|
14
9
|
&.kbq-contrast {
|
|
15
|
-
color: kbq-css-variable(icon-contrast-color
|
|
10
|
+
color: kbq-css-variable(icon-contrast-color);
|
|
16
11
|
}
|
|
17
12
|
|
|
18
13
|
&.kbq-contrast-fade {
|
|
19
|
-
color: kbq-css-variable(icon-fade-contrast-color
|
|
14
|
+
color: kbq-css-variable(icon-fade-contrast-color);
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
&.kbq-error {
|
|
23
|
-
color: kbq-css-variable(icon-error-color
|
|
18
|
+
color: kbq-css-variable(icon-error-color);
|
|
24
19
|
}
|
|
25
20
|
|
|
26
21
|
&.kbq-warning {
|
|
27
|
-
color: kbq-css-variable(icon-warning-color
|
|
22
|
+
color: kbq-css-variable(icon-warning-color);
|
|
28
23
|
}
|
|
29
24
|
|
|
30
25
|
&.kbq-success {
|
|
31
|
-
color: kbq-css-variable(icon-success-color
|
|
26
|
+
color: kbq-css-variable(icon-success-color);
|
|
32
27
|
}
|
|
33
28
|
}
|
|
34
29
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.kbq-icon-button {
|
|
2
|
+
--kbq-icon-button-size-horizontal-padding: 8px;
|
|
3
|
+
--kbq-icon-button-size-left-icon-padding: 6px;
|
|
4
|
+
--kbq-icon-button-size-normal-horizontal-padding: 0;
|
|
5
|
+
--kbq-icon-button-size-normal-vertical-padding: 0;
|
|
6
|
+
--kbq-icon-button-size-small-horizontal-padding: 4px;
|
|
7
|
+
--kbq-icon-button-size-small-vertical-padding: 4px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
11
|
+
// TODO: remove after all settled, should be assigned via css-tokens.css (#DS-2846)
|
|
12
|
+
--kbq-states-focused-color: hsla(216, 100%, 50%, 100%);
|
|
13
|
+
--kbq-states-focused-color-error: hsla(7, 97%, 50%, 100%);
|
|
14
|
+
--kbq-icon-button-theme-default: hsla(216, 100%, 50%, 100%);
|
|
15
|
+
--kbq-icon-button-theme-states-hover: hsla(216, 100%, 45%, 100%);
|
|
16
|
+
--kbq-icon-button-theme-states-active: hsla(216, 100%, 40%, 100%);
|
|
17
|
+
--kbq-icon-button-theme-states-disabled: hsla(229, 15%, 15%, 32%);
|
|
18
|
+
--kbq-icon-button-contrast-default: hsla(229, 15%, 15%, 100%);
|
|
19
|
+
--kbq-icon-button-contrast-states-hover: hsla(229, 15%, 10%, 100%);
|
|
20
|
+
--kbq-icon-button-contrast-states-active: hsla(229, 15%, 10%, 100%);
|
|
21
|
+
--kbq-icon-button-contrast-states-disabled: hsla(229, 15%, 15%, 32%);
|
|
22
|
+
--kbq-icon-button-fade-contrast-default: hsla(229, 15%, 60%, 100%);
|
|
23
|
+
--kbq-icon-button-fade-contrast-states-hover: hsla(229, 15%, 50%, 100%);
|
|
24
|
+
--kbq-icon-button-fade-contrast-states-active: hsla(229, 15%, 40%, 100%);
|
|
25
|
+
--kbq-icon-button-fade-contrast-states-disabled: hsla(229, 15%, 15%, 32%);
|
|
26
|
+
--kbq-icon-button-error-default: hsla(7, 97%, 45%, 100%);
|
|
27
|
+
--kbq-icon-button-error-states-hover: hsla(7, 97%, 45%, 100%);
|
|
28
|
+
--kbq-icon-button-error-states-active: hsla(7, 97%, 40%, 100%);
|
|
29
|
+
--kbq-icon-button-error-states-disabled: hsla(229, 15%, 15%, 32%);
|
|
30
|
+
--kbq-icon-button-success-default: hsla(104, 64%, 40%, 100%);
|
|
31
|
+
--kbq-icon-button-success-states-hover: hsla(104, 64%, 40%, 100%);
|
|
32
|
+
--kbq-icon-button-success-states-active: hsla(104, 64%, 30%, 100%);
|
|
33
|
+
--kbq-icon-button-success-states-disabled: hsla(229, 15%, 15%, 32%);
|
|
34
|
+
--kbq-icon-button-warning-default: hsla(38, 100%, 42%, 100%);
|
|
35
|
+
--kbq-icon-button-warning-states-hover: hsla(38, 100%, 45%, 100%);
|
|
36
|
+
--kbq-icon-button-warning-states-active: hsla(38, 100%, 42%, 100%);
|
|
37
|
+
--kbq-icon-button-warning-states-disabled: hsla(229, 15%, 15%, 32%);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
41
|
+
--kbq-states-focused-color: hsla(216, 100%, 50%, 100%);
|
|
42
|
+
--kbq-states-focused-color-error: hsla(7, 97%, 50%, 100%);
|
|
43
|
+
--kbq-icon-button-theme-default: hsla(216, 100%, 65%, 100%);
|
|
44
|
+
--kbq-icon-button-theme-states-hover: hsla(216, 100%, 45%, 100%);
|
|
45
|
+
--kbq-icon-button-theme-states-active: hsla(216, 100%, 40%, 100%);
|
|
46
|
+
--kbq-icon-button-theme-states-disabled: hsla(229, 15%, 30%, 100%);
|
|
47
|
+
--kbq-icon-button-contrast-default: hsla(229, 15%, 80%, 100%);
|
|
48
|
+
--kbq-icon-button-contrast-states-hover: hsla(229, 15%, 90%, 100%);
|
|
49
|
+
--kbq-icon-button-contrast-states-active: hsla(229, 15%, 80%, 100%);
|
|
50
|
+
--kbq-icon-button-contrast-states-disabled: hsla(229, 15%, 30%, 100%);
|
|
51
|
+
--kbq-icon-button-fade-contrast-default: hsla(229, 15%, 45%, 100%);
|
|
52
|
+
--kbq-icon-button-fade-contrast-states-hover: hsla(229, 15%, 50%, 100%);
|
|
53
|
+
--kbq-icon-button-fade-contrast-states-active: hsla(229, 15%, 40%, 100%);
|
|
54
|
+
--kbq-icon-button-fade-contrast-states-disabled: hsla(229, 15%, 30%, 100%);
|
|
55
|
+
--kbq-icon-button-error-default: hsla(7, 97%, 60%, 100%);
|
|
56
|
+
--kbq-icon-button-error-states-hover: hsla(7, 97%, 50%, 100%);
|
|
57
|
+
--kbq-icon-button-error-states-active: hsla(7, 97%, 40%, 100%);
|
|
58
|
+
--kbq-icon-button-error-states-disabled: hsla(229, 15%, 30%, 100%);
|
|
59
|
+
--kbq-icon-button-success-default: hsla(104, 64%, 45%, 100%);
|
|
60
|
+
--kbq-icon-button-success-states-hover: hsla(104, 64%, 40%, 100%);
|
|
61
|
+
--kbq-icon-button-success-states-active: hsla(104, 64%, 30%, 100%);
|
|
62
|
+
--kbq-icon-button-success-states-disabled: hsla(229, 15%, 30%, 100%);
|
|
63
|
+
--kbq-icon-button-warning-default: hsla(38, 100%, 60%, 100%);
|
|
64
|
+
--kbq-icon-button-warning-states-hover: hsla(38, 100%, 45%, 100%);
|
|
65
|
+
--kbq-icon-button-warning-states-active: hsla(38, 100%, 42%, 100%);
|
|
66
|
+
--kbq-icon-button-warning-states-disabled: hsla(229, 15%, 30%, 100%);
|
|
67
|
+
}
|
package/icon/icon-button.scss
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
|
+
@use './icon-button-theme' as *;
|
|
7
|
+
|
|
6
8
|
.kbq-icon-button {
|
|
7
9
|
&:not(.kbq-disabled) {
|
|
8
10
|
cursor: pointer;
|
|
@@ -16,3 +18,5 @@
|
|
|
16
18
|
kbq-css-variable(icon-button-size-small-horizontal-padding);
|
|
17
19
|
}
|
|
18
20
|
}
|
|
21
|
+
|
|
22
|
+
@include kbq-icon-button-theme();
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.kbq-icon-item {
|
|
2
|
+
--kbq-icon-item-size-normal-horizontal-padding: 8px;
|
|
3
|
+
--kbq-icon-item-size-normal-vertical-padding: 8px;
|
|
4
|
+
--kbq-icon-item-size-big-horizontal-padding: 16px;
|
|
5
|
+
--kbq-icon-item-size-big-vertical-padding: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
9
|
+
--kbq-icon-item-filled-fade-off-theme-color: hsla(0, 0%, 100%, 100%);
|
|
10
|
+
--kbq-icon-item-filled-fade-off-theme-background: hsla(216, 100%, 50%, 100%);
|
|
11
|
+
--kbq-icon-item-filled-fade-off-contrast-color: hsla(229, 15%, 100%, 100%);
|
|
12
|
+
--kbq-icon-item-filled-fade-off-contrast-background: hsla(229, 15%, 25%, 100%);
|
|
13
|
+
--kbq-icon-item-filled-fade-off-error-color: hsla(0, 0%, 100%, 100%);
|
|
14
|
+
--kbq-icon-item-filled-fade-off-error-background: hsla(7, 97%, 60%, 100%);
|
|
15
|
+
--kbq-icon-item-filled-fade-off-warning-color: hsla(0, 0%, 100%, 100%);
|
|
16
|
+
--kbq-icon-item-filled-fade-off-warning-background: hsla(38, 100%, 50%, 100%);
|
|
17
|
+
--kbq-icon-item-filled-fade-off-success-color: hsla(0, 0%, 100%, 100%);
|
|
18
|
+
--kbq-icon-item-filled-fade-off-success-background: hsla(104, 64%, 45%, 100%);
|
|
19
|
+
--kbq-icon-item-filled-fade-on-theme-color: hsla(216, 100%, 50%, 100%);
|
|
20
|
+
--kbq-icon-item-filled-fade-on-theme-background: hsla(216, 100%, 85%, 100%);
|
|
21
|
+
--kbq-icon-item-filled-fade-on-contrast-color: hsla(229, 15%, 15%, 100%);
|
|
22
|
+
--kbq-icon-item-filled-fade-on-contrast-background: hsla(229, 15%, 92%, 100%);
|
|
23
|
+
--kbq-icon-item-filled-fade-on-error-color: hsla(7, 97%, 45%, 100%);
|
|
24
|
+
--kbq-icon-item-filled-fade-on-error-background: hsla(7, 97%, 90%, 100%);
|
|
25
|
+
--kbq-icon-item-filled-fade-on-warning-color: hsla(38, 100%, 42%, 100%);
|
|
26
|
+
--kbq-icon-item-filled-fade-on-warning-background: hsla(38, 100%, 85%, 100%);
|
|
27
|
+
--kbq-icon-item-filled-fade-on-success-color: hsla(104, 64%, 40%, 100%);
|
|
28
|
+
--kbq-icon-item-filled-fade-on-success-background: hsla(104, 64%, 80%, 100%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
32
|
+
--kbq-icon-item-filled-fade-off-theme-color: hsla(0, 0%, 100%, 100%);
|
|
33
|
+
--kbq-icon-item-filled-fade-off-theme-background: hsla(216, 100%, 50%, 100%);
|
|
34
|
+
--kbq-icon-item-filled-fade-off-contrast-color: hsla(229, 15%, 15%, 100%);
|
|
35
|
+
--kbq-icon-item-filled-fade-off-contrast-background: hsla(229, 15%, 90%, 100%);
|
|
36
|
+
--kbq-icon-item-filled-fade-off-error-color: hsla(0, 0%, 100%, 100%);
|
|
37
|
+
--kbq-icon-item-filled-fade-off-error-background: hsla(7, 97%, 41%, 100%);
|
|
38
|
+
--kbq-icon-item-filled-fade-off-warning-color: hsla(0, 0%, 100%, 100%);
|
|
39
|
+
--kbq-icon-item-filled-fade-off-warning-background: hsla(38, 100%, 39%, 100%);
|
|
40
|
+
--kbq-icon-item-filled-fade-off-success-color: hsla(0, 0%, 100%, 100%);
|
|
41
|
+
--kbq-icon-item-filled-fade-off-success-background: hsla(104, 64%, 40%, 100%);
|
|
42
|
+
--kbq-icon-item-filled-fade-on-theme-color: hsla(216, 100%, 65%, 100%);
|
|
43
|
+
--kbq-icon-item-filled-fade-on-theme-background: hsla(216, 100%, 20%, 100%);
|
|
44
|
+
--kbq-icon-item-filled-fade-on-contrast-color: hsla(229, 15%, 80%, 100%);
|
|
45
|
+
--kbq-icon-item-filled-fade-on-contrast-background: hsla(229, 15%, 25%, 100%);
|
|
46
|
+
--kbq-icon-item-filled-fade-on-error-color: hsla(7, 97%, 60%, 100%);
|
|
47
|
+
--kbq-icon-item-filled-fade-on-error-background: hsla(7, 97%, 15%, 100%);
|
|
48
|
+
--kbq-icon-item-filled-fade-on-warning-color: hsla(38, 100%, 60%, 100%);
|
|
49
|
+
--kbq-icon-item-filled-fade-on-warning-background: hsla(38, 100%, 14%, 100%);
|
|
50
|
+
--kbq-icon-item-filled-fade-on-success-color: hsla(104, 64%, 45%, 100%);
|
|
51
|
+
--kbq-icon-item-filled-fade-on-success-background: hsla(104, 64%, 12%, 100%);
|
|
52
|
+
}
|
package/icon/icon-item.scss
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
|
+
@use './icon-item-theme' as *;
|
|
7
|
+
|
|
6
8
|
.kbq-icon-item {
|
|
7
9
|
box-sizing: border-box;
|
|
8
10
|
|
|
@@ -18,3 +20,5 @@
|
|
|
18
20
|
kbq-css-variable(icon-item-size-big-horizontal-padding);
|
|
19
21
|
}
|
|
20
22
|
}
|
|
23
|
+
|
|
24
|
+
@include kbq-icon-item-theme();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
2
|
+
--kbq-icon-theme-color: hsla(216, 100%, 50%, 100%);
|
|
3
|
+
--kbq-icon-contrast-color: hsla(229, 15%, 15%, 100%);
|
|
4
|
+
--kbq-icon-fade-contrast-color: hsla(229, 15%, 60%, 100%);
|
|
5
|
+
--kbq-icon-error-color: hsla(7, 97%, 45%, 100%);
|
|
6
|
+
--kbq-icon-success-color: hsla(104, 64%, 40%, 100%);
|
|
7
|
+
--kbq-icon-warning-color: hsla(38, 100%, 42%, 100%);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
11
|
+
--kbq-icon-theme-color: hsla(216, 100%, 65%, 100%);
|
|
12
|
+
--kbq-icon-contrast-color: hsla(229, 15%, 80%, 100%);
|
|
13
|
+
--kbq-icon-fade-contrast-color: hsla(229, 15%, 45%, 100%);
|
|
14
|
+
--kbq-icon-error-color: hsla(7, 97%, 60%, 100%);
|
|
15
|
+
--kbq-icon-success-color: hsla(104, 64%, 45%, 100%);
|
|
16
|
+
--kbq-icon-warning-color: hsla(38, 100%, 60%, 100%);
|
|
17
|
+
}
|