@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,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();
|
|
@@ -6,6 +6,22 @@ export interface KbqTheme {
|
|
|
6
6
|
className: string;
|
|
7
7
|
selected: boolean;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Enum representing the available themes for the Koobiq design system.
|
|
11
|
+
* This enum is used to manage and switch between different visual themes.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum KbqThemeSelector {
|
|
14
|
+
/**
|
|
15
|
+
* Represents the default light theme.
|
|
16
|
+
* This is the standard theme that is applied
|
|
17
|
+
* when the application is first loaded if nothing else provided
|
|
18
|
+
*/
|
|
19
|
+
Default = "kbq-theme-light",
|
|
20
|
+
/**
|
|
21
|
+
* This theme is used to provide a darker visual experience, often preferred in low-light environments.
|
|
22
|
+
*/
|
|
23
|
+
Dark = "kbq-theme-dark"
|
|
24
|
+
}
|
|
9
25
|
export declare const KbqDefaultThemes: KbqTheme[];
|
|
10
26
|
export declare class ThemeService<T extends KbqTheme | null = KbqTheme> implements OnDestroy {
|
|
11
27
|
private rendererFactory;
|
|
@@ -5,32 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
@use 'theming/scrollbar-theme' as *;
|
|
7
7
|
|
|
8
|
-
@use '../selection/pseudo-checkbox/pseudo-checkbox-theme' as *;
|
|
9
|
-
@use '../../alert/alert-theme' as *;
|
|
10
|
-
@use '../../autocomplete/autocomplete-theme' as *;
|
|
11
|
-
@use '../../badge/badge-theme' as *;
|
|
12
|
-
@use '../../button/button-theme' as *;
|
|
13
|
-
@use '../../button-toggle/button-toggle-theme' as *;
|
|
14
|
-
@use '../../checkbox/checkbox-theme' as *;
|
|
15
|
-
@use '../../code-block/code-block-theme' as *;
|
|
16
|
-
@use '../../datepicker/datepicker-theme' as *;
|
|
17
|
-
@use '../../divider/divider-theme' as *;
|
|
18
|
-
@use '../../dropdown/dropdown-theme' as *;
|
|
19
|
-
@use '../../empty-state/empty-state-theme' as *;
|
|
20
|
-
@use '../../file-upload/file-upload-theme' as *;
|
|
21
|
-
@use '../../form-field/form-field-theme' as *;
|
|
22
|
-
@use '../../form-field/hint-theme' as *;
|
|
23
|
-
@use '../../icon/icon-theme' as *;
|
|
24
|
-
@use '../../icon/icon-item-theme' as *;
|
|
25
|
-
@use '../../icon/icon-button-theme' as *;
|
|
26
|
-
@use '../../input/input-theme' as *;
|
|
27
8
|
@use '../../link/link-theme' as *;
|
|
28
|
-
@use '../../list/list-theme' as *;
|
|
29
|
-
@use '../../loader-overlay/loader-overlay-theme' as *;
|
|
30
|
-
@use '../../modal/modal-theme' as *;
|
|
31
9
|
@use '../../markdown/markdown-theme' as *;
|
|
32
|
-
@use '../../navbar/navbar-theme' as *;
|
|
33
|
-
@use '../../popover/popover-theme' as *;
|
|
34
10
|
@use '../../progress-bar/progress-bar-theme' as *;
|
|
35
11
|
@use '../../progress-spinner/progress-spinner-theme' as *;
|
|
36
12
|
@use '../../radio/radio-theme' as *;
|
|
@@ -42,56 +18,25 @@
|
|
|
42
18
|
@use '../../tabs/tabs-theme' as *;
|
|
43
19
|
@use '../../tags/tag-theme' as *;
|
|
44
20
|
@use '../../textarea/textarea-theme' as *;
|
|
45
|
-
@use '../../timezone/timezone-option-theme' as *;
|
|
46
|
-
@use '../../toast/toast-theme' as *;
|
|
47
|
-
@use '../../toggle/toggle-theme' as *;
|
|
48
|
-
@use '../../tooltip/tooltip-theme' as *;
|
|
49
|
-
@use '../../tree-select/tree-select-theme' as *;
|
|
50
|
-
@use '../../tree/tree-theme' as *;
|
|
51
|
-
@use '../../table/table-theme' as *;
|
|
52
21
|
@use '../forms/forms-theme' as *;
|
|
53
22
|
@use '../option/option-theme' as *;
|
|
54
23
|
@use '../option/optgroup-theme' as *;
|
|
55
24
|
@use '../option/option-action-theme' as *;
|
|
56
25
|
@use '../highlight/highlight-theme' as *;
|
|
57
|
-
@use '../../dl/dl-theme' as *;
|
|
58
26
|
|
|
59
27
|
@mixin koobiq-theme($theme) {
|
|
60
28
|
@include kbq-core-theme($theme);
|
|
61
29
|
|
|
62
|
-
@include kbq-alert-theme($theme);
|
|
63
|
-
@include kbq-autocomplete-theme($theme);
|
|
64
|
-
@include kbq-badge-theme($theme);
|
|
65
|
-
@include kbq-button-theme($theme);
|
|
66
|
-
@include kbq-button-toggle-theme($theme);
|
|
67
|
-
@include kbq-checkbox-theme($theme);
|
|
68
|
-
@include kbq-code-block-theme($theme);
|
|
69
|
-
@include kbq-datepicker-theme($theme);
|
|
70
|
-
@include kbq-dl-theme($theme);
|
|
71
|
-
@include kbq-divider-theme($theme);
|
|
72
|
-
@include kbq-dropdown-theme($theme);
|
|
73
|
-
@include kbq-empty-state-theme($theme);
|
|
74
|
-
@include kbq-form-field-theme($theme);
|
|
75
|
-
@include kbq-file-upload-theme($theme);
|
|
76
|
-
@include kbq-hint-theme($theme);
|
|
77
30
|
@include kbq-forms-theme($theme);
|
|
78
|
-
@include kbq-highlight-theme(
|
|
79
|
-
|
|
80
|
-
@include kbq-
|
|
81
|
-
@include kbq-
|
|
82
|
-
@include kbq-link-theme($theme);
|
|
83
|
-
@include kbq-list-theme($theme);
|
|
84
|
-
@include kbq-loader-overlay-theme($theme);
|
|
85
|
-
@include kbq-modal-theme($theme);
|
|
86
|
-
@include kbq-markdown-theme($theme);
|
|
87
|
-
@include kbq-navbar-theme($theme);
|
|
31
|
+
@include kbq-highlight-theme();
|
|
32
|
+
// link is a directive, so styles for it should be applied globally
|
|
33
|
+
@include kbq-link-theme();
|
|
34
|
+
@include kbq-markdown-theme();
|
|
88
35
|
@include kbq-option-theme($theme);
|
|
89
36
|
@include kbq-optgroup-theme($theme);
|
|
90
37
|
@include kbq-option-action-theme($theme);
|
|
91
|
-
@include kbq-popover-theme($theme);
|
|
92
38
|
@include kbq-progress-bar-theme($theme);
|
|
93
39
|
@include kbq-progress-spinner-theme($theme);
|
|
94
|
-
@include kbq-pseudo-checkbox-theme($theme);
|
|
95
40
|
@include kbq-radio-theme($theme);
|
|
96
41
|
@include kbq-risk-level-theme($theme);
|
|
97
42
|
@include kbq-scrollbar-theme($theme);
|
|
@@ -101,13 +46,6 @@
|
|
|
101
46
|
@include kbq-splitter-theme($theme);
|
|
102
47
|
@include kbq-tabs-theme($theme);
|
|
103
48
|
@include kbq-tag-theme($theme);
|
|
104
|
-
@include kbq-timezone-option-theme($theme);
|
|
105
|
-
@include kbq-toast-theme($theme);
|
|
106
|
-
@include kbq-toggle-theme($theme);
|
|
107
|
-
@include kbq-tooltip-theme($theme);
|
|
108
|
-
@include kbq-tree-select-theme($theme);
|
|
109
|
-
@include kbq-tree-theme($theme);
|
|
110
|
-
@include kbq-table-theme($theme);
|
|
111
49
|
}
|
|
112
50
|
|
|
113
51
|
@mixin koobiq-typography($tokens, $config: null, $md-config: null) {
|
|
@@ -115,36 +53,13 @@
|
|
|
115
53
|
$config: kbq-typography-config($tokens);
|
|
116
54
|
}
|
|
117
55
|
|
|
118
|
-
@if not $md-config {
|
|
119
|
-
$md-config: kbq-markdown-typography-config($tokens);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
56
|
@include kbq-base-typography();
|
|
123
57
|
@include kbq-markdown-base-typography();
|
|
58
|
+
@include kbq-markdown-typography();
|
|
124
59
|
|
|
125
|
-
@include kbq-alert-typography($config);
|
|
126
|
-
@include kbq-badge-typography($config);
|
|
127
|
-
@include kbq-button-typography($config);
|
|
128
|
-
@include kbq-button-toggle-typography($config);
|
|
129
|
-
@include kbq-checkbox-typography($config);
|
|
130
|
-
@include kbq-code-block-typography($config);
|
|
131
|
-
@include kbq-datepicker-typography($config);
|
|
132
|
-
@include kbq-dropdown-typography($config);
|
|
133
|
-
@include kbq-empty-state-typography($config);
|
|
134
|
-
@include kbq-dl-typography($config);
|
|
135
|
-
@include kbq-form-field-typography($config);
|
|
136
|
-
@include kbq-hint-typography($config);
|
|
137
|
-
@include kbq-file-upload-typography($config);
|
|
138
60
|
@include kbq-forms-typography($config);
|
|
139
|
-
@include kbq-input-typography($config);
|
|
140
|
-
@include kbq-link-typography($config);
|
|
141
|
-
@include kbq-list-typography($config);
|
|
142
|
-
@include kbq-loader-overlay-typography($config);
|
|
143
|
-
@include kbq-modal-typography($config);
|
|
144
|
-
@include kbq-navbar-typography($config);
|
|
145
61
|
@include kbq-option-typography($config);
|
|
146
62
|
@include kbq-optgroup-typography($config);
|
|
147
|
-
@include kbq-popover-typography($config);
|
|
148
63
|
@include kbq-progress-bar-typography($config);
|
|
149
64
|
@include kbq-progress-spinner-typography($config);
|
|
150
65
|
@include kbq-radio-typography($config);
|
|
@@ -153,14 +68,5 @@
|
|
|
153
68
|
@include kbq-sidepanel-typography($config);
|
|
154
69
|
@include kbq-tabs-typography($config);
|
|
155
70
|
@include kbq-tag-typography($config);
|
|
156
|
-
@include kbq-textarea-typography(
|
|
157
|
-
@include kbq-timezone-option-typography($config);
|
|
158
|
-
@include kbq-toast-typography($config);
|
|
159
|
-
@include kbq-toggle-typography($config);
|
|
160
|
-
@include kbq-tooltip-typography($config);
|
|
161
|
-
@include kbq-tree-select-typography($config);
|
|
162
|
-
@include kbq-tree-typography($config);
|
|
163
|
-
@include kbq-table-typography($config);
|
|
164
|
-
|
|
165
|
-
@include kbq-markdown-typography($md-config);
|
|
71
|
+
@include kbq-textarea-typography();
|
|
166
72
|
}
|
|
@@ -5,80 +5,54 @@
|
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
6
|
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
|
-
@mixin kbq-datepicker-theme(
|
|
9
|
-
$datepicker: map.get(map.get($theme, components), datepicker);
|
|
10
|
-
|
|
8
|
+
@mixin kbq-datepicker-theme() {
|
|
11
9
|
.kbq-datepicker__content {
|
|
12
|
-
background: kbq-css-variable(datepicker-container-background
|
|
13
|
-
box-shadow: kbq-css-variable(datepicker-container-box-shadow
|
|
10
|
+
background: kbq-css-variable(datepicker-container-background);
|
|
11
|
+
box-shadow: kbq-css-variable(datepicker-container-box-shadow);
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
.kbq-calendar__table-header {
|
|
17
|
-
color: kbq-css-variable(datepicker-header-text
|
|
15
|
+
color: kbq-css-variable(datepicker-header-text);
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
.kbq-calendar__table-header-divider::after {
|
|
21
|
-
background: kbq-css-variable(datepicker-header-divider
|
|
19
|
+
background: kbq-css-variable(datepicker-header-divider);
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
.kbq-calendar__body-cell-content {
|
|
25
|
-
background: kbq-css-variable(
|
|
26
|
-
|
|
27
|
-
map.get($datepicker, cell, default, background)
|
|
28
|
-
);
|
|
29
|
-
color: kbq-css-variable(datepicker-grid-cell-default-text, map.get($datepicker, cell, default, text));
|
|
23
|
+
background: kbq-css-variable(datepicker-grid-cell-default-background);
|
|
24
|
+
color: kbq-css-variable(datepicker-grid-cell-default-text);
|
|
30
25
|
|
|
31
26
|
&.kbq-calendar__body-today {
|
|
32
|
-
background: kbq-css-variable(
|
|
33
|
-
|
|
34
|
-
map.get($datepicker, cell, today, background)
|
|
35
|
-
);
|
|
36
|
-
color: kbq-css-variable(datepicker-grid-cell-today-text, map.get($datepicker, cell, today, text));
|
|
27
|
+
background: kbq-css-variable(datepicker-grid-cell-today-background);
|
|
28
|
+
color: kbq-css-variable(datepicker-grid-cell-today-text);
|
|
37
29
|
}
|
|
38
30
|
|
|
39
31
|
&:hover:not(.kbq-disabled) {
|
|
40
|
-
background: kbq-css-variable(
|
|
41
|
-
datepicker-grid-cell-states-hover-background,
|
|
42
|
-
map.get($datepicker, cell, hover, background)
|
|
43
|
-
);
|
|
32
|
+
background: kbq-css-variable(datepicker-grid-cell-states-hover-background);
|
|
44
33
|
}
|
|
45
34
|
|
|
46
35
|
&:active:not(.kbq-disabled) {
|
|
47
|
-
background: kbq-css-variable(
|
|
48
|
-
datepicker-grid-cell-states-active-background,
|
|
49
|
-
map.get($datepicker, cell, active, background)
|
|
50
|
-
);
|
|
36
|
+
background: kbq-css-variable(datepicker-grid-cell-states-active-background);
|
|
51
37
|
}
|
|
52
38
|
|
|
53
39
|
&.kbq-selected:not(.kbq-disabled) {
|
|
54
|
-
background: kbq-css-variable(
|
|
55
|
-
|
|
56
|
-
map.get($datepicker, cell, selected, background)
|
|
57
|
-
);
|
|
58
|
-
color: kbq-css-variable(
|
|
59
|
-
datepicker-grid-cell-states-selected-text,
|
|
60
|
-
map.get($datepicker, cell, selected, text)
|
|
61
|
-
);
|
|
40
|
+
background: kbq-css-variable(datepicker-grid-cell-states-selected-background);
|
|
41
|
+
color: kbq-css-variable(datepicker-grid-cell-states-selected-text);
|
|
62
42
|
|
|
63
43
|
&:hover {
|
|
64
|
-
background: kbq-css-variable(
|
|
65
|
-
datepicker-grid-cell-states-selected-hover-background,
|
|
66
|
-
map.get($datepicker, cell, selected-hover, background)
|
|
67
|
-
);
|
|
44
|
+
background: kbq-css-variable(datepicker-grid-cell-states-selected-hover-background);
|
|
68
45
|
}
|
|
69
46
|
}
|
|
70
47
|
|
|
71
48
|
&.kbq-disabled {
|
|
72
|
-
color: kbq-css-variable(states-foreground-disabled
|
|
73
|
-
background: kbq-css-variable(
|
|
74
|
-
datepicker-grid-cell-states-disabled-background,
|
|
75
|
-
map.get($datepicker, cell, disabled, background)
|
|
76
|
-
);
|
|
49
|
+
color: kbq-css-variable(states-foreground-disabled);
|
|
50
|
+
background: kbq-css-variable(datepicker-grid-cell-states-disabled-background);
|
|
77
51
|
}
|
|
78
52
|
}
|
|
79
53
|
}
|
|
80
54
|
|
|
81
|
-
@mixin kbq-datepicker-typography(
|
|
55
|
+
@mixin kbq-datepicker-typography() {
|
|
82
56
|
.kbq-calendar {
|
|
83
57
|
@include kbq-typography-css-variables(datepicker, text);
|
|
84
58
|
}
|
package/datepicker/calendar.scss
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens';
|
|
5
4
|
@use '../core/styles/common/tokens' as *;
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
@use './datepicker-theme' as *;
|
|
8
7
|
|
|
9
8
|
$kbq-datepicker-non-touch-calendar-cell-size: 40px;
|
|
10
|
-
$kbq-datepicker-size-grid-padding-horizontal: kbq-css-variable(
|
|
11
|
-
datepicker-size-grid-padding-horizontal,
|
|
12
|
-
map.get($tokens, datepicker-size-grid-padding-horizontal)
|
|
13
|
-
);
|
|
9
|
+
$kbq-datepicker-size-grid-padding-horizontal: kbq-css-variable(datepicker-size-grid-padding-horizontal);
|
|
14
10
|
|
|
15
11
|
$kbq-datepicker-non-touch-calendar-width: calc(
|
|
16
12
|
$kbq-datepicker-non-touch-calendar-cell-size * 7 + $kbq-datepicker-size-grid-padding-horizontal * 2
|
|
@@ -33,3 +29,6 @@ $kbq-datepicker-non-touch-calendar-height: 270px;
|
|
|
33
29
|
padding-bottom: kbq-css-variable(datepicker-size-container-padding-vertical);
|
|
34
30
|
}
|
|
35
31
|
}
|
|
32
|
+
|
|
33
|
+
@include kbq-datepicker-theme();
|
|
34
|
+
@include kbq-datepicker-typography();
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.kbq-datepicker__content {
|
|
2
|
+
--kbq-datepicker-size-container-padding-vertical: 12px;
|
|
3
|
+
--kbq-datepicker-size-container-border-radius: 8px;
|
|
4
|
+
--kbq-datepicker-size-header-padding-horizontal: 4px;
|
|
5
|
+
--kbq-datepicker-size-header-margin-bottom: 2px;
|
|
6
|
+
--kbq-datepicker-size-grid-padding-horizontal: 12px;
|
|
7
|
+
--kbq-datepicker-size-grid-content-gap-vertical: 2px;
|
|
8
|
+
--kbq-datepicker-size-grid-divider-height: 1px;
|
|
9
|
+
--kbq-datepicker-size-grid-cell-padding-horizontal: 8px;
|
|
10
|
+
--kbq-datepicker-size-grid-cell-padding-vertical: 8px;
|
|
11
|
+
--kbq-datepicker-size-grid-cell-border-radius: 8px;
|
|
12
|
+
--kbq-datepicker-font-text-font-size: 14px;
|
|
13
|
+
--kbq-datepicker-font-text-line-height: 20px;
|
|
14
|
+
--kbq-datepicker-font-text-letter-spacing: -0.006em;
|
|
15
|
+
--kbq-datepicker-font-text-font-weight: normal;
|
|
16
|
+
--kbq-datepicker-font-text-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
17
|
+
Arial, sans-serif;
|
|
18
|
+
--kbq-datepicker-font-text-text-transform: null;
|
|
19
|
+
--kbq-datepicker-font-text-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
23
|
+
--kbq-states-foreground-disabled: hsla(229, 15%, 15%, 32%);
|
|
24
|
+
--kbq-datepicker-container-background: hsla(229, 15%, 100%, 100%);
|
|
25
|
+
--kbq-datepicker-container-box-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
|
|
26
|
+
0 3px 8px hsla(229, 15%, 6%, 12%);
|
|
27
|
+
--kbq-datepicker-header-text: hsla(229, 15%, 60%, 100%);
|
|
28
|
+
--kbq-datepicker-header-divider: hsla(229, 15%, 6%, 12%);
|
|
29
|
+
--kbq-datepicker-grid-cell-default-background: transparent;
|
|
30
|
+
--kbq-datepicker-grid-cell-default-text: hsla(229, 15%, 15%, 100%);
|
|
31
|
+
--kbq-datepicker-grid-cell-today-background: transparent;
|
|
32
|
+
--kbq-datepicker-grid-cell-today-text: hsla(216, 100%, 50%, 100%);
|
|
33
|
+
--kbq-datepicker-grid-cell-states-hover-background: hsla(229, 15%, 50%, 8%);
|
|
34
|
+
--kbq-datepicker-grid-cell-states-active-background: hsla(229, 15%, 50%, 16%);
|
|
35
|
+
--kbq-datepicker-grid-cell-states-selected-background: hsla(229, 15%, 25%, 100%);
|
|
36
|
+
--kbq-datepicker-grid-cell-states-selected-text: hsla(0, 0%, 100%, 100%);
|
|
37
|
+
--kbq-datepicker-grid-cell-states-selected-hover-background: hsla(229, 15%, 15%, 100%);
|
|
38
|
+
--kbq-datepicker-grid-cell-states-disabled-background: transparent;
|
|
39
|
+
--kbq-datepicker-grid-cell-states-disabled-text: hsla(229, 15%, 15%, 32%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
43
|
+
--kbq-states-foreground-disabled: hsla(229, 15%, 40%, 100%);
|
|
44
|
+
--kbq-datepicker-container-background: hsla(229, 15%, 15%, 100%);
|
|
45
|
+
--kbq-datepicker-container-box-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
46
|
+
--kbq-datepicker-header-text: hsla(229, 15%, 45%, 100%);
|
|
47
|
+
--kbq-datepicker-header-divider: hsla(229, 15%, 22%, 100%);
|
|
48
|
+
--kbq-datepicker-grid-cell-default-background: transparent;
|
|
49
|
+
--kbq-datepicker-grid-cell-default-text: hsla(229, 15%, 80%, 100%);
|
|
50
|
+
--kbq-datepicker-grid-cell-today-background: transparent;
|
|
51
|
+
--kbq-datepicker-grid-cell-today-text: hsla(216, 100%, 65%, 100%);
|
|
52
|
+
--kbq-datepicker-grid-cell-states-hover-background: hsla(229, 15%, 50%, 16%);
|
|
53
|
+
--kbq-datepicker-grid-cell-states-active-background: hsla(229, 100%, 85%, 15%);
|
|
54
|
+
--kbq-datepicker-grid-cell-states-selected-background: hsla(229, 15%, 90%, 100%);
|
|
55
|
+
--kbq-datepicker-grid-cell-states-selected-text: hsla(229, 15%, 15%, 100%);
|
|
56
|
+
--kbq-datepicker-grid-cell-states-selected-hover-background: hsla(229, 15%, 55%, 100%);
|
|
57
|
+
--kbq-datepicker-grid-cell-states-disabled-background: transparent;
|
|
58
|
+
--kbq-datepicker-grid-cell-states-disabled-text: hsla(229, 15%, 40%, 100%);
|
|
59
|
+
}
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/common/tokens' as *;
|
|
4
4
|
|
|
5
|
-
@mixin kbq-divider-theme(
|
|
6
|
-
$divider: map.get(map.get($theme, components), divider);
|
|
7
|
-
|
|
5
|
+
@mixin kbq-divider-theme() {
|
|
8
6
|
.kbq-divider {
|
|
9
|
-
background: kbq-css-variable(divider-color
|
|
7
|
+
background: kbq-css-variable(divider-color);
|
|
10
8
|
}
|
|
11
9
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.kbq-divider {
|
|
2
|
+
--kbq-divider-size-horizontal-width: 1px;
|
|
3
|
+
--kbq-divider-size-horizontal-margin-vertical: 4px;
|
|
4
|
+
--kbq-divider-size-vertical-width: 1px;
|
|
5
|
+
--kbq-divider-size-vertical-margin-horizontal: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
9
|
+
--kbq-divider-color: hsla(229, 15%, 6%, 12%);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
13
|
+
--kbq-divider-color: hsla(229, 15%, 22%, 100%);
|
|
14
|
+
}
|
package/divider/divider.scss
CHANGED
package/dl/_dl-theme.scss
CHANGED
|
@@ -4,19 +4,17 @@
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
5
|
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
|
-
@mixin kbq-dl-theme(
|
|
8
|
-
$dl: map.get(map.get($theme, components), dl);
|
|
9
|
-
|
|
7
|
+
@mixin kbq-dl-theme() {
|
|
10
8
|
.kbq-dt {
|
|
11
|
-
color: kbq-css-variable(description-list-term-color
|
|
9
|
+
color: kbq-css-variable(description-list-term-color);
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
.kbq-dd {
|
|
15
|
-
color: kbq-css-variable(description-list-description-color
|
|
13
|
+
color: kbq-css-variable(description-list-description-color);
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
|
|
19
|
-
@mixin kbq-dl-typography(
|
|
17
|
+
@mixin kbq-dl-typography() {
|
|
20
18
|
.kbq-dl {
|
|
21
19
|
& .kbq-dt {
|
|
22
20
|
@include kbq-typography-css-variables(description-list, term);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.kbq-dl {
|
|
2
|
+
--kbq-description-list-size-horizontal-content-gap-horizontal: 16px;
|
|
3
|
+
--kbq-description-list-size-horizontal-gap-vertical: 16px;
|
|
4
|
+
--kbq-description-list-size-vertical-content-gap-vertical: 2px;
|
|
5
|
+
--kbq-description-list-size-vertical-gap-vertical: 12px;
|
|
6
|
+
--kbq-description-list-font-term-font-size: 14px;
|
|
7
|
+
--kbq-description-list-font-term-line-height: 20px;
|
|
8
|
+
--kbq-description-list-font-term-letter-spacing: -0.006em;
|
|
9
|
+
--kbq-description-list-font-term-font-weight: normal;
|
|
10
|
+
--kbq-description-list-font-term-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
11
|
+
Arial, sans-serif;
|
|
12
|
+
--kbq-description-list-font-term-text-transform: null;
|
|
13
|
+
--kbq-description-list-font-term-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
14
|
+
--kbq-description-list-font-description-font-size: 14px;
|
|
15
|
+
--kbq-description-list-font-description-line-height: 20px;
|
|
16
|
+
--kbq-description-list-font-description-letter-spacing: -0.006em;
|
|
17
|
+
--kbq-description-list-font-description-font-weight: normal;
|
|
18
|
+
--kbq-description-list-font-description-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
19
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
20
|
+
--kbq-description-list-font-description-text-transform: null;
|
|
21
|
+
--kbq-description-list-font-description-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
25
|
+
--kbq-description-list-term-color: hsla(229, 15%, 50%, 100%);
|
|
26
|
+
--kbq-description-list-description-color: hsla(229, 15%, 15%, 100%);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
30
|
+
--kbq-description-list-term-color: hsla(229, 15%, 50%, 100%);
|
|
31
|
+
--kbq-description-list-description-color: hsla(229, 15%, 80%, 100%);
|
|
32
|
+
}
|
package/dl/dl.scss
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
|
+
@use './dl-theme' as *;
|
|
7
|
+
|
|
6
8
|
.kbq-dl {
|
|
7
9
|
display: grid;
|
|
8
10
|
column-gap: kbq-css-variable(description-list-size-horizontal-content-gap-horizontal);
|
|
@@ -45,3 +47,6 @@
|
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
}
|
|
50
|
+
|
|
51
|
+
@include kbq-dl-theme();
|
|
52
|
+
@include kbq-dl-typography();
|