@koobiq/components 17.5.0 → 17.6.1
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/button/button-tokens.scss +2 -3
- 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/services/theme.service.d.ts +16 -0
- package/core/styles/_koobiq-theme.scss +3 -58
- 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-tokens.scss +0 -1
- 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/button/button.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +3 -3
- package/esm2022/core/services/theme.service.mjs +20 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/divider/divider.component.mjs +3 -3
- package/esm2022/dl/dl.component.mjs +3 -3
- 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 +2 -2
- package/esm2022/form-field/password-hint.mjs +8 -5
- 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.component.mjs +3 -3
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +3 -3
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/timezone/timezone-option.component.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- 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-button.mjs +2 -2
- 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 +21 -4
- package/fesm2022/koobiq-components-core.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-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 +9 -6
- package/fesm2022/koobiq-components-form-field.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 +2 -2
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +4 -4
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.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 +4 -4
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +2 -2
- 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-tokens.scss +1 -1
- package/icon/icon-button-tokens.scss +0 -1
- package/link/link-tokens.scss +1 -1
- 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 +0 -6
- package/modal/_modal-confirm.scss +0 -3
- package/modal/_modal-theme.scss +10 -12
- package/modal/modal-tokens.scss +53 -0
- package/modal/modal.scss +5 -0
- package/navbar/_navbar-theme.scss +15 -25
- package/navbar/navbar-divider.scss +0 -3
- 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 +6 -6
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover-tokens.scss +60 -0
- 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/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-select.component.scss +5 -0
- 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.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,142 @@
|
|
|
1
|
+
.kbq-toggle {
|
|
2
|
+
--kbq-toggle-size-normal-height: 16px;
|
|
3
|
+
--kbq-toggle-size-normal-width: 28px;
|
|
4
|
+
--kbq-toggle-size-normal-horizontal-content-padding: 8px;
|
|
5
|
+
--kbq-toggle-size-normal-vertical-content-padding: 8px;
|
|
6
|
+
--kbq-toggle-size-big-height: 16px;
|
|
7
|
+
--kbq-toggle-size-big-width: 28px;
|
|
8
|
+
--kbq-toggle-size-big-horizontal-content-padding: 8px;
|
|
9
|
+
--kbq-toggle-size-big-vertical-content-padding: 8px;
|
|
10
|
+
--kbq-toggle-font-normal-label-font-size: 14px;
|
|
11
|
+
--kbq-toggle-font-normal-label-line-height: 20px;
|
|
12
|
+
--kbq-toggle-font-normal-label-letter-spacing: -0.006em;
|
|
13
|
+
--kbq-toggle-font-normal-label-font-weight: normal;
|
|
14
|
+
--kbq-toggle-font-normal-label-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
15
|
+
Arial, sans-serif;
|
|
16
|
+
--kbq-toggle-font-normal-label-text-transform: null;
|
|
17
|
+
--kbq-toggle-font-normal-label-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
18
|
+
--kbq-toggle-font-normal-caption-font-size: 12px;
|
|
19
|
+
--kbq-toggle-font-normal-caption-line-height: 16px;
|
|
20
|
+
--kbq-toggle-font-normal-caption-letter-spacing: normal;
|
|
21
|
+
--kbq-toggle-font-normal-caption-font-weight: normal;
|
|
22
|
+
--kbq-toggle-font-normal-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
23
|
+
Arial, sans-serif;
|
|
24
|
+
--kbq-toggle-font-normal-caption-text-transform: null;
|
|
25
|
+
--kbq-toggle-font-normal-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
26
|
+
--kbq-toggle-font-big-label-font-size: 16px;
|
|
27
|
+
--kbq-toggle-font-big-label-line-height: 24px;
|
|
28
|
+
--kbq-toggle-font-big-label-letter-spacing: -0.011em;
|
|
29
|
+
--kbq-toggle-font-big-label-font-weight: normal;
|
|
30
|
+
--kbq-toggle-font-big-label-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
31
|
+
Arial, sans-serif;
|
|
32
|
+
--kbq-toggle-font-big-label-text-transform: null;
|
|
33
|
+
--kbq-toggle-font-big-label-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
34
|
+
--kbq-toggle-font-big-caption-font-size: 14px;
|
|
35
|
+
--kbq-toggle-font-big-caption-line-height: 20px;
|
|
36
|
+
--kbq-toggle-font-big-caption-letter-spacing: -0.006em;
|
|
37
|
+
--kbq-toggle-font-big-caption-font-weight: normal;
|
|
38
|
+
--kbq-toggle-font-big-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
39
|
+
Arial, sans-serif;
|
|
40
|
+
--kbq-toggle-font-big-caption-text-transform: null;
|
|
41
|
+
--kbq-toggle-font-big-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
45
|
+
--kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
|
|
46
|
+
--kbq-toggle-theme-default-border: hsla(229, 15%, 80%, 100%);
|
|
47
|
+
--kbq-toggle-theme-default-background: hsla(0, 0%, 100%, 100%);
|
|
48
|
+
--kbq-toggle-theme-default-circle-background: hsla(229, 15%, 15%, 100%);
|
|
49
|
+
--kbq-toggle-theme-states-hover-border: hsla(229, 15%, 80%, 100%);
|
|
50
|
+
--kbq-toggle-theme-states-hover-background: hsla(229, 15%, 50%, 8%);
|
|
51
|
+
--kbq-toggle-theme-states-hover-circle-background: hsla(229, 15%, 15%, 100%);
|
|
52
|
+
--kbq-toggle-theme-states-checked-border: transparent;
|
|
53
|
+
--kbq-toggle-theme-states-checked-background: hsla(216, 100%, 50%, 100%);
|
|
54
|
+
--kbq-toggle-theme-states-checked-circle-background: hsla(0, 0%, 100%, 100%);
|
|
55
|
+
--kbq-toggle-theme-states-checked-hover-border: transparent;
|
|
56
|
+
--kbq-toggle-theme-states-checked-hover-background: hsla(216, 100%, 45%, 100%);
|
|
57
|
+
--kbq-toggle-theme-states-checked-hover-circle-background: hsla(0, 0%, 100%, 100%);
|
|
58
|
+
--kbq-toggle-theme-states-focused-border: hsla(216, 100%, 60%, 100%);
|
|
59
|
+
--kbq-toggle-theme-states-focused-background: hsla(0, 0%, 100%, 100%);
|
|
60
|
+
--kbq-toggle-theme-states-focused-circle-background: hsla(229, 15%, 15%, 100%);
|
|
61
|
+
--kbq-toggle-theme-states-focused-focus-outline: hsla(216, 100%, 60%, 100%);
|
|
62
|
+
--kbq-toggle-theme-states-checked-focused-border: hsla(216, 100%, 60%, 100%);
|
|
63
|
+
--kbq-toggle-theme-states-checked-focused-background: hsla(216, 100%, 50%, 100%);
|
|
64
|
+
--kbq-toggle-theme-states-checked-focused-circle-background: hsla(0, 0%, 100%, 100%);
|
|
65
|
+
--kbq-toggle-theme-states-checked-focused-focus-outline: hsla(216, 100%, 60%, 100%);
|
|
66
|
+
--kbq-toggle-theme-states-disabled-border: hsla(229, 15%, 50%, 32%);
|
|
67
|
+
--kbq-toggle-theme-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
68
|
+
--kbq-toggle-theme-states-disabled-circle-background: hsla(229, 15%, 15%, 32%);
|
|
69
|
+
--kbq-toggle-error-default-border: hsla(7, 97%, 45%, 100%);
|
|
70
|
+
--kbq-toggle-error-default-background: hsla(7, 97%, 99%, 100%);
|
|
71
|
+
--kbq-toggle-error-default-circle-background: hsla(7, 97%, 45%, 100%);
|
|
72
|
+
--kbq-toggle-error-states-hover-border: hsla(7, 97%, 45%, 100%);
|
|
73
|
+
--kbq-toggle-error-states-hover-background: hsla(7, 97%, 92%, 100%);
|
|
74
|
+
--kbq-toggle-error-states-hover-circle-background: hsla(7, 97%, 45%, 100%);
|
|
75
|
+
--kbq-toggle-error-states-checked-border: hsla(7, 97%, 45%, 100%);
|
|
76
|
+
--kbq-toggle-error-states-checked-background: hsla(7, 97%, 60%, 100%);
|
|
77
|
+
--kbq-toggle-error-states-checked-circle-background: hsla(0, 0%, 100%, 100%);
|
|
78
|
+
--kbq-toggle-error-states-checked-hover-border: hsla(7, 97%, 45%, 100%);
|
|
79
|
+
--kbq-toggle-error-states-checked-hover-background: hsla(7, 97%, 56%, 100%);
|
|
80
|
+
--kbq-toggle-error-states-checked-hover-circle-background: hsla(0, 0%, 100%, 100%);
|
|
81
|
+
--kbq-toggle-error-states-focused-border: hsla(7, 97%, 45%, 100%);
|
|
82
|
+
--kbq-toggle-error-states-focused-background: hsla(7, 97%, 99%, 100%);
|
|
83
|
+
--kbq-toggle-error-states-focused-circle-background: hsla(7, 97%, 45%, 100%);
|
|
84
|
+
--kbq-toggle-error-states-focused-focus-outline: hsla(7, 97%, 45%, 100%);
|
|
85
|
+
--kbq-toggle-error-states-checked-focused-border: hsla(7, 97%, 45%, 100%);
|
|
86
|
+
--kbq-toggle-error-states-checked-focused-background: hsla(7, 97%, 60%, 100%);
|
|
87
|
+
--kbq-toggle-error-states-checked-focused-circle-background: hsla(0, 0%, 100%, 100%);
|
|
88
|
+
--kbq-toggle-error-states-checked-focused-focus-outline: hsla(7, 97%, 45%, 100%);
|
|
89
|
+
--kbq-toggle-error-states-disabled-border: hsla(229, 15%, 50%, 32%);
|
|
90
|
+
--kbq-toggle-error-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
91
|
+
--kbq-toggle-error-states-disabled-circle-background: hsla(229, 15%, 15%, 32%);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
95
|
+
--kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
|
|
96
|
+
--kbq-toggle-theme-default-border: hsla(229, 15%, 30%, 100%);
|
|
97
|
+
--kbq-toggle-theme-default-background: hsla(229, 15%, 12%, 100%);
|
|
98
|
+
--kbq-toggle-theme-default-circle-background: hsla(229, 15%, 80%, 100%);
|
|
99
|
+
--kbq-toggle-theme-states-hover-border: hsla(229, 15%, 30%, 100%);
|
|
100
|
+
--kbq-toggle-theme-states-hover-background: hsla(229, 15%, 50%, 16%);
|
|
101
|
+
--kbq-toggle-theme-states-hover-circle-background: hsla(229, 15%, 80%, 100%);
|
|
102
|
+
--kbq-toggle-theme-states-checked-border: transparent;
|
|
103
|
+
--kbq-toggle-theme-states-checked-background: hsla(216, 100%, 50%, 100%);
|
|
104
|
+
--kbq-toggle-theme-states-checked-circle-background: hsla(0, 0%, 100%, 100%);
|
|
105
|
+
--kbq-toggle-theme-states-checked-hover-border: transparent;
|
|
106
|
+
--kbq-toggle-theme-states-checked-hover-background: hsla(216, 100%, 45%, 100%);
|
|
107
|
+
--kbq-toggle-theme-states-checked-hover-circle-background: hsla(0, 0%, 100%, 100%);
|
|
108
|
+
--kbq-toggle-theme-states-focused-border: hsla(216, 100%, 60%, 100%);
|
|
109
|
+
--kbq-toggle-theme-states-focused-background: hsla(229, 15%, 12%, 100%);
|
|
110
|
+
--kbq-toggle-theme-states-focused-circle-background: hsla(229, 15%, 80%, 100%);
|
|
111
|
+
--kbq-toggle-theme-states-focused-focus-outline: hsla(216, 100%, 60%, 100%);
|
|
112
|
+
--kbq-toggle-theme-states-checked-focused-border: hsla(216, 100%, 60%, 100%);
|
|
113
|
+
--kbq-toggle-theme-states-checked-focused-background: hsla(216, 100%, 50%, 100%);
|
|
114
|
+
--kbq-toggle-theme-states-checked-focused-circle-background: hsla(0, 0%, 100%, 100%);
|
|
115
|
+
--kbq-toggle-theme-states-checked-focused-focus-outline: hsla(216, 100%, 60%, 100%);
|
|
116
|
+
--kbq-toggle-theme-states-disabled-border: hsla(229, 15%, 50%, 32%);
|
|
117
|
+
--kbq-toggle-theme-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
118
|
+
--kbq-toggle-theme-states-disabled-circle-background: hsla(229, 15%, 30%, 100%);
|
|
119
|
+
--kbq-toggle-error-default-border: hsla(7, 97%, 35%, 100%);
|
|
120
|
+
--kbq-toggle-error-default-background: hsla(7, 97%, 6%, 100%);
|
|
121
|
+
--kbq-toggle-error-default-circle-background: hsla(7, 97%, 60%, 100%);
|
|
122
|
+
--kbq-toggle-error-states-hover-border: hsla(7, 97%, 35%, 100%);
|
|
123
|
+
--kbq-toggle-error-states-hover-background: hsla(7, 97%, 13%, 100%);
|
|
124
|
+
--kbq-toggle-error-states-hover-circle-background: hsla(7, 97%, 60%, 100%);
|
|
125
|
+
--kbq-toggle-error-states-checked-border: hsla(7, 97%, 35%, 100%);
|
|
126
|
+
--kbq-toggle-error-states-checked-background: hsla(7, 97%, 41%, 100%);
|
|
127
|
+
--kbq-toggle-error-states-checked-circle-background: hsla(0, 0%, 100%, 100%);
|
|
128
|
+
--kbq-toggle-error-states-checked-hover-border: hsla(7, 97%, 35%, 100%);
|
|
129
|
+
--kbq-toggle-error-states-checked-hover-background: hsla(7, 97%, 42%, 100%);
|
|
130
|
+
--kbq-toggle-error-states-checked-hover-circle-background: hsla(0, 0%, 100%, 100%);
|
|
131
|
+
--kbq-toggle-error-states-focused-border: hsla(7, 97%, 45%, 100%);
|
|
132
|
+
--kbq-toggle-error-states-focused-background: hsla(7, 97%, 6%, 100%);
|
|
133
|
+
--kbq-toggle-error-states-focused-circle-background: hsla(7, 97%, 60%, 100%);
|
|
134
|
+
--kbq-toggle-error-states-focused-focus-outline: hsla(7, 97%, 45%, 100%);
|
|
135
|
+
--kbq-toggle-error-states-checked-focused-border: hsla(7, 97%, 45%, 100%);
|
|
136
|
+
--kbq-toggle-error-states-checked-focused-background: hsla(7, 97%, 41%, 100%);
|
|
137
|
+
--kbq-toggle-error-states-checked-focused-circle-background: hsla(0, 0%, 100%, 100%);
|
|
138
|
+
--kbq-toggle-error-states-checked-focused-focus-outline: hsla(7, 97%, 45%, 100%);
|
|
139
|
+
--kbq-toggle-error-states-disabled-border: hsla(229, 15%, 50%, 32%);
|
|
140
|
+
--kbq-toggle-error-states-disabled-background: hsla(229, 15%, 50%, 16%);
|
|
141
|
+
--kbq-toggle-error-states-disabled-circle-background: hsla(229, 15%, 30%, 100%);
|
|
142
|
+
}
|
package/toggle/toggle.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
@use './toggle-theme' as *;
|
|
7
7
|
|
|
8
8
|
.kbq-toggle {
|
|
9
9
|
display: inline-block;
|
|
@@ -97,3 +97,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
97
97
|
.kbq-toggle:not(.kbq-disabled) {
|
|
98
98
|
cursor: pointer;
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
@include kbq-toggle-theme();
|
|
102
|
+
@include kbq-toggle-typography();
|
|
@@ -1,53 +1,43 @@
|
|
|
1
|
-
@use 'sass:meta';
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
// FIXME: @use properties are used, which are most likely not applied. Need to check
|
|
5
|
-
@use '../core/pop-up/pop-up' as *;
|
|
6
|
-
@use '../core/styles/typography/typography-utils' as *;
|
|
7
1
|
@use '../core/styles/common/tokens' as *;
|
|
8
2
|
|
|
9
|
-
@mixin kbq-tooltip-color($
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
box-shadow: kbq-css-variable(tooltip-#{$style-name}-shadow, map.get($style, shadow));
|
|
3
|
+
@mixin kbq-tooltip-color($style-name) {
|
|
4
|
+
box-shadow: kbq-css-variable(tooltip-#{$style-name}-shadow);
|
|
13
5
|
|
|
14
6
|
& .kbq-tooltip__inner {
|
|
15
|
-
color: kbq-css-variable(tooltip-#{$style-name}-text
|
|
7
|
+
color: kbq-css-variable(tooltip-#{$style-name}-text);
|
|
16
8
|
|
|
17
|
-
background-color: kbq-css-variable(tooltip-#{$style-name}-background
|
|
9
|
+
background-color: kbq-css-variable(tooltip-#{$style-name}-background);
|
|
18
10
|
}
|
|
19
11
|
|
|
20
12
|
& .kbq-tooltip__arrow {
|
|
21
|
-
background-color: kbq-css-variable(tooltip-#{$style-name}-background
|
|
22
|
-
box-shadow: kbq-css-variable(tooltip-#{$style-name}-shadow
|
|
13
|
+
background-color: kbq-css-variable(tooltip-#{$style-name}-background);
|
|
14
|
+
box-shadow: kbq-css-variable(tooltip-#{$style-name}-shadow);
|
|
23
15
|
}
|
|
24
16
|
}
|
|
25
17
|
|
|
26
|
-
@mixin kbq-tooltip-theme(
|
|
27
|
-
$tooltip: map.get(map.get($theme, components), tooltip);
|
|
28
|
-
|
|
18
|
+
@mixin kbq-tooltip-theme() {
|
|
29
19
|
.kbq-tooltip.kbq-theme {
|
|
30
|
-
@include kbq-tooltip-color(
|
|
20
|
+
@include kbq-tooltip-color(theme-fade-off);
|
|
31
21
|
}
|
|
32
22
|
|
|
33
23
|
.kbq-tooltip.kbq-contrast {
|
|
34
|
-
@include kbq-tooltip-color(
|
|
24
|
+
@include kbq-tooltip-color(contrast-fade-off);
|
|
35
25
|
}
|
|
36
26
|
|
|
37
27
|
.kbq-tooltip.kbq-contrast-fade {
|
|
38
|
-
@include kbq-tooltip-color(
|
|
28
|
+
@include kbq-tooltip-color(contrast-fade-on);
|
|
39
29
|
}
|
|
40
30
|
|
|
41
31
|
.kbq-tooltip.kbq-warning {
|
|
42
|
-
@include kbq-tooltip-color(
|
|
32
|
+
@include kbq-tooltip-color(warning-fade-off);
|
|
43
33
|
}
|
|
44
34
|
|
|
45
35
|
.kbq-tooltip.kbq-error {
|
|
46
|
-
@include kbq-tooltip-color(
|
|
36
|
+
@include kbq-tooltip-color(error-fade-off);
|
|
47
37
|
}
|
|
48
38
|
}
|
|
49
39
|
|
|
50
|
-
@mixin kbq-tooltip-typography(
|
|
40
|
+
@mixin kbq-tooltip-typography() {
|
|
51
41
|
.kbq-tooltip {
|
|
52
42
|
@include kbq-typography-css-variables(tooltip, default);
|
|
53
43
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.kbq-tooltip {
|
|
2
|
+
--kbq-tooltip-size-max-width: 300px;
|
|
3
|
+
--kbq-tooltip-size-border-radius: 8px;
|
|
4
|
+
--kbq-tooltip-size-padding-horizontal: 12px;
|
|
5
|
+
--kbq-tooltip-size-padding-vertical: 8px;
|
|
6
|
+
--kbq-tooltip-size-arrow-size: 12px;
|
|
7
|
+
--kbq-tooltip-font-default-font-size: 12px;
|
|
8
|
+
--kbq-tooltip-font-default-line-height: 16px;
|
|
9
|
+
--kbq-tooltip-font-default-letter-spacing: normal;
|
|
10
|
+
--kbq-tooltip-font-default-font-weight: normal;
|
|
11
|
+
--kbq-tooltip-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
12
|
+
Arial, sans-serif;
|
|
13
|
+
--kbq-tooltip-font-default-text-transform: null;
|
|
14
|
+
--kbq-tooltip-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
15
|
+
--kbq-tooltip-font-title-font-size: 12px;
|
|
16
|
+
--kbq-tooltip-font-title-line-height: 16px;
|
|
17
|
+
--kbq-tooltip-font-title-letter-spacing: normal;
|
|
18
|
+
--kbq-tooltip-font-title-font-weight: normal;
|
|
19
|
+
--kbq-tooltip-font-title-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
|
|
20
|
+
sans-serif;
|
|
21
|
+
--kbq-tooltip-font-title-text-transform: null;
|
|
22
|
+
--kbq-tooltip-font-title-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
26
|
+
--kbq-tooltip-contrast-fade-on-background: hsla(229, 15%, 100%, 100%);
|
|
27
|
+
--kbq-tooltip-contrast-fade-on-text: hsla(229, 15%, 15%, 100%);
|
|
28
|
+
--kbq-tooltip-contrast-fade-on-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
|
|
29
|
+
0 3px 8px hsla(229, 15%, 6%, 12%);
|
|
30
|
+
--kbq-tooltip-contrast-fade-off-background: hsla(229, 15%, 25%, 100%);
|
|
31
|
+
--kbq-tooltip-contrast-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
32
|
+
--kbq-tooltip-contrast-fade-off-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
|
|
33
|
+
0 3px 8px hsla(229, 15%, 6%, 12%);
|
|
34
|
+
--kbq-tooltip-theme-fade-off-background: hsla(216, 100%, 50%, 100%);
|
|
35
|
+
--kbq-tooltip-theme-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
36
|
+
--kbq-tooltip-theme-fade-off-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
|
|
37
|
+
0 3px 8px hsla(229, 15%, 6%, 12%);
|
|
38
|
+
--kbq-tooltip-warning-fade-off-background: hsla(38, 100%, 50%, 100%);
|
|
39
|
+
--kbq-tooltip-warning-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
40
|
+
--kbq-tooltip-warning-fade-off-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
|
|
41
|
+
0 3px 8px hsla(229, 15%, 6%, 12%);
|
|
42
|
+
--kbq-tooltip-error-fade-off-background: hsla(7, 97%, 60%, 100%);
|
|
43
|
+
--kbq-tooltip-error-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
44
|
+
--kbq-tooltip-error-fade-off-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
48
|
+
--kbq-tooltip-contrast-fade-on-background: hsla(229, 15%, 15%, 100%);
|
|
49
|
+
--kbq-tooltip-contrast-fade-on-text: hsla(229, 15%, 80%, 100%);
|
|
50
|
+
--kbq-tooltip-contrast-fade-on-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
51
|
+
--kbq-tooltip-contrast-fade-off-background: hsla(229, 15%, 25%, 100%);
|
|
52
|
+
--kbq-tooltip-contrast-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
53
|
+
--kbq-tooltip-contrast-fade-off-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
54
|
+
--kbq-tooltip-theme-fade-off-background: hsla(216, 100%, 50%, 100%);
|
|
55
|
+
--kbq-tooltip-theme-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
56
|
+
--kbq-tooltip-theme-fade-off-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
57
|
+
--kbq-tooltip-warning-fade-off-background: hsla(38, 100%, 50%, 100%);
|
|
58
|
+
--kbq-tooltip-warning-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
59
|
+
--kbq-tooltip-warning-fade-off-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
60
|
+
--kbq-tooltip-error-fade-off-background: hsla(7, 97%, 60%, 100%);
|
|
61
|
+
--kbq-tooltip-error-fade-off-text: hsla(0, 0%, 100%, 100%);
|
|
62
|
+
--kbq-tooltip-error-fade-off-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
63
|
+
}
|
package/tooltip/tooltip.scss
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
|
+
@use './tooltip-theme' as *;
|
|
9
|
+
|
|
8
10
|
$trigger-margin: 8px;
|
|
9
11
|
$trigger-margin_without-arrow: 4px;
|
|
10
12
|
|
|
@@ -33,6 +35,9 @@ $trigger-margin_without-arrow: 4px;
|
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
38
|
+
@include kbq-tooltip-theme();
|
|
39
|
+
@include kbq-tooltip-typography();
|
|
40
|
+
|
|
36
41
|
.kbq-tooltip__arrow {
|
|
37
42
|
position: absolute;
|
|
38
43
|
|
package/tree/_tree-theme.scss
CHANGED
|
@@ -5,60 +5,53 @@
|
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
6
|
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
|
-
@mixin kbq-tree-option($
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
background: kbq-css-variable(tree-#{$state-name}-container-background, map.get($state, container-background));
|
|
8
|
+
@mixin kbq-tree-option($state-name) {
|
|
9
|
+
background: kbq-css-variable(tree-#{$state-name}-container-background);
|
|
12
10
|
|
|
13
11
|
.kbq-option-text {
|
|
14
|
-
color: kbq-css-variable(tree-#{$state-name}-text-color
|
|
12
|
+
color: kbq-css-variable(tree-#{$state-name}-text-color);
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
.kbq-tree-node-toggle .kbq-icon {
|
|
18
|
-
color: kbq-css-variable(tree-#{$state-name}-tree-toggle-color
|
|
16
|
+
color: kbq-css-variable(tree-#{$state-name}-tree-toggle-color);
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
.kbq-option-action .kbq-icon {
|
|
22
|
-
color: kbq-css-variable(tree-#{$state-name}-action-button-color
|
|
20
|
+
color: kbq-css-variable(tree-#{$state-name}-action-button-color);
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
.kbq-option-caption {
|
|
26
|
-
color: kbq-css-variable(tree-#{$state-name}-caption-color
|
|
24
|
+
color: kbq-css-variable(tree-#{$state-name}-caption-color);
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
@mixin kbq-tree-theme(
|
|
28
|
+
@mixin kbq-tree-theme() {
|
|
31
29
|
.kbq-tree-selection:focus {
|
|
32
30
|
outline: none;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
.kbq-tree-option {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
@include kbq-tree-option($tree-item, default);
|
|
34
|
+
@include kbq-tree-option(default);
|
|
39
35
|
|
|
40
36
|
&:hover:not(.kbq-disabled) {
|
|
41
|
-
@include kbq-tree-option(
|
|
37
|
+
@include kbq-tree-option(states-hover);
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
&.kbq-focused,
|
|
45
41
|
&.kbq-active {
|
|
46
|
-
border-color: kbq-css-variable(
|
|
47
|
-
tree-states-focused-focus-outline-color,
|
|
48
|
-
map.get($tree-item, states-focused, focus-outline)
|
|
49
|
-
);
|
|
42
|
+
border-color: kbq-css-variable(tree-states-focused-focus-outline-color);
|
|
50
43
|
}
|
|
51
44
|
|
|
52
45
|
&.kbq-selected {
|
|
53
|
-
@include kbq-tree-option(
|
|
46
|
+
@include kbq-tree-option(states-selected);
|
|
54
47
|
|
|
55
48
|
&:hover:not(.kbq-disabled) {
|
|
56
|
-
@include kbq-tree-option(
|
|
49
|
+
@include kbq-tree-option(states-selected-hover);
|
|
57
50
|
}
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
&.kbq-disabled {
|
|
61
|
-
@include kbq-tree-option(
|
|
54
|
+
@include kbq-tree-option(states-disabled);
|
|
62
55
|
|
|
63
56
|
& .kbq-icon {
|
|
64
57
|
cursor: default;
|
|
@@ -67,7 +60,7 @@
|
|
|
67
60
|
}
|
|
68
61
|
}
|
|
69
62
|
|
|
70
|
-
@mixin kbq-tree-typography(
|
|
63
|
+
@mixin kbq-tree-typography() {
|
|
71
64
|
.kbq-tree-option {
|
|
72
65
|
@include kbq-typography-css-variables(tree, text);
|
|
73
66
|
}
|
package/tree/toggle.scss
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
|
+
@use './tree-theme' as *;
|
|
7
|
+
|
|
6
8
|
.kbq-tree-node-toggle {
|
|
7
9
|
display: flex;
|
|
8
10
|
align-items: center;
|
|
@@ -30,3 +32,6 @@
|
|
|
30
32
|
cursor: default;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
35
|
+
|
|
36
|
+
@include kbq-tree-theme();
|
|
37
|
+
@include kbq-tree-typography();
|
package/tree/tree-option.scss
CHANGED
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common';
|
|
5
|
-
@use '../core/styles/tokens';
|
|
6
5
|
@use '../core/styles/common/tokens' as *;
|
|
7
6
|
|
|
8
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
9
|
-
|
|
10
7
|
.kbq-tree-option {
|
|
11
8
|
@include common.kbq-no-select;
|
|
12
9
|
|
|
@@ -39,8 +36,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
39
36
|
gap: kbq-css-variable(tree-size-container-content-gap-horizontal);
|
|
40
37
|
|
|
41
38
|
& .kbq-option-text {
|
|
42
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
43
|
-
|
|
44
39
|
@include common.kbq-line-wrapper-base();
|
|
45
40
|
display: inline-block;
|
|
46
41
|
|
package/tree/tree-selection.scss
CHANGED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
.kbq-tree,
|
|
2
|
+
.kbq-tree-selection {
|
|
3
|
+
--kbq-tree-size-indent-level: 24px;
|
|
4
|
+
--kbq-tree-size-container-padding-right: 8px;
|
|
5
|
+
--kbq-tree-size-container-padding-vertical: 4px;
|
|
6
|
+
--kbq-tree-size-container-content-gap-horizontal: 8px;
|
|
7
|
+
--kbq-tree-size-container-content-gap-vertical: 0px;
|
|
8
|
+
--kbq-tree-size-container-focus-outline-width: 2px;
|
|
9
|
+
--kbq-tree-size-text-padding-vertical: 2px;
|
|
10
|
+
--kbq-tree-font-text-font-size: 14px;
|
|
11
|
+
--kbq-tree-font-text-line-height: 20px;
|
|
12
|
+
--kbq-tree-font-text-letter-spacing: -0.006em;
|
|
13
|
+
--kbq-tree-font-text-font-weight: normal;
|
|
14
|
+
--kbq-tree-font-text-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
|
|
15
|
+
sans-serif;
|
|
16
|
+
--kbq-tree-font-text-text-transform: null;
|
|
17
|
+
--kbq-tree-font-text-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
18
|
+
--kbq-tree-font-caption-font-size: 12px;
|
|
19
|
+
--kbq-tree-font-caption-line-height: 16px;
|
|
20
|
+
--kbq-tree-font-caption-letter-spacing: normal;
|
|
21
|
+
--kbq-tree-font-caption-font-weight: normal;
|
|
22
|
+
--kbq-tree-font-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
|
|
23
|
+
sans-serif;
|
|
24
|
+
--kbq-tree-font-caption-text-transform: null;
|
|
25
|
+
--kbq-tree-font-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
29
|
+
--kbq-tree-default-container-background: transparent;
|
|
30
|
+
--kbq-tree-default-text-color: hsla(229, 15%, 15%, 100%);
|
|
31
|
+
--kbq-tree-default-icon-color: hsla(229, 15%, 15%, 100%);
|
|
32
|
+
--kbq-tree-default-tree-toggle-color: hsla(229, 15%, 60%, 100%);
|
|
33
|
+
--kbq-tree-default-action-button-color: hsla(229, 15%, 60%, 100%);
|
|
34
|
+
--kbq-tree-default-caption-color: hsla(229, 15%, 50%, 100%);
|
|
35
|
+
--kbq-tree-states-hover-container-background: hsla(229, 15%, 50%, 8%);
|
|
36
|
+
--kbq-tree-states-hover-text-color: hsla(229, 15%, 15%, 100%);
|
|
37
|
+
--kbq-tree-states-hover-icon-color: hsla(229, 15%, 15%, 100%);
|
|
38
|
+
--kbq-tree-states-hover-tree-toggle-color: hsla(229, 15%, 60%, 100%);
|
|
39
|
+
--kbq-tree-states-hover-action-button-color: hsla(229, 15%, 60%, 100%);
|
|
40
|
+
--kbq-tree-states-hover-caption-color: hsla(229, 15%, 50%, 100%);
|
|
41
|
+
--kbq-tree-states-focused-focus-outline-color: hsla(216, 100%, 60%, 100%);
|
|
42
|
+
--kbq-tree-states-selected-container-background: hsla(216, 100%, 94%, 100%);
|
|
43
|
+
--kbq-tree-states-selected-text-color: hsla(229, 15%, 15%, 100%);
|
|
44
|
+
--kbq-tree-states-selected-icon-color: hsla(229, 15%, 15%, 100%);
|
|
45
|
+
--kbq-tree-states-selected-tree-toggle-color: hsla(229, 15%, 60%, 100%);
|
|
46
|
+
--kbq-tree-states-selected-action-button-color: hsla(229, 15%, 60%, 100%);
|
|
47
|
+
--kbq-tree-states-selected-caption-color: hsla(229, 15%, 50%, 100%);
|
|
48
|
+
--kbq-tree-states-selected-hover-container-background: hsla(216, 100%, 90%, 100%);
|
|
49
|
+
--kbq-tree-states-selected-hover-text-color: hsla(229, 15%, 15%, 100%);
|
|
50
|
+
--kbq-tree-states-selected-hover-icon-color: hsla(229, 15%, 15%, 100%);
|
|
51
|
+
--kbq-tree-states-selected-hover-tree-toggle-color: hsla(229, 15%, 60%, 100%);
|
|
52
|
+
--kbq-tree-states-selected-hover-action-button-color: hsla(229, 15%, 60%, 100%);
|
|
53
|
+
--kbq-tree-states-selected-hover-caption-color: hsla(229, 15%, 50%, 100%);
|
|
54
|
+
--kbq-tree-states-disabled-container-background: transparent;
|
|
55
|
+
--kbq-tree-states-disabled-text-color: hsla(229, 15%, 15%, 32%);
|
|
56
|
+
--kbq-tree-states-disabled-icon-color: hsla(229, 15%, 15%, 32%);
|
|
57
|
+
--kbq-tree-states-disabled-tree-toggle-color: hsla(229, 15%, 15%, 32%);
|
|
58
|
+
--kbq-tree-states-disabled-action-button-color: hsla(229, 15%, 15%, 32%);
|
|
59
|
+
--kbq-tree-states-disabled-caption-color: hsla(229, 15%, 15%, 32%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
63
|
+
--kbq-tree-default-container-background: transparent;
|
|
64
|
+
--kbq-tree-default-text-color: hsla(229, 15%, 80%, 100%);
|
|
65
|
+
--kbq-tree-default-icon-color: hsla(229, 15%, 80%, 100%);
|
|
66
|
+
--kbq-tree-default-tree-toggle-color: hsla(229, 15%, 45%, 100%);
|
|
67
|
+
--kbq-tree-default-action-button-color: hsla(229, 15%, 45%, 100%);
|
|
68
|
+
--kbq-tree-default-caption-color: hsla(229, 15%, 60%, 100%);
|
|
69
|
+
--kbq-tree-states-hover-container-background: hsla(229, 15%, 50%, 16%);
|
|
70
|
+
--kbq-tree-states-hover-text-color: hsla(229, 15%, 80%, 100%);
|
|
71
|
+
--kbq-tree-states-hover-icon-color: hsla(229, 15%, 80%, 100%);
|
|
72
|
+
--kbq-tree-states-hover-tree-toggle-color: hsla(229, 15%, 45%, 100%);
|
|
73
|
+
--kbq-tree-states-hover-action-button-color: hsla(229, 15%, 45%, 100%);
|
|
74
|
+
--kbq-tree-states-hover-caption-color: hsla(229, 15%, 60%, 100%);
|
|
75
|
+
--kbq-tree-states-focused-focus-outline-color: hsla(216, 100%, 60%, 100%);
|
|
76
|
+
--kbq-tree-states-selected-container-background: hsla(216, 100%, 18%, 100%);
|
|
77
|
+
--kbq-tree-states-selected-text-color: hsla(229, 15%, 80%, 100%);
|
|
78
|
+
--kbq-tree-states-selected-icon-color: hsla(229, 15%, 80%, 100%);
|
|
79
|
+
--kbq-tree-states-selected-tree-toggle-color: hsla(229, 15%, 45%, 100%);
|
|
80
|
+
--kbq-tree-states-selected-action-button-color: hsla(229, 15%, 45%, 100%);
|
|
81
|
+
--kbq-tree-states-selected-caption-color: hsla(229, 15%, 60%, 100%);
|
|
82
|
+
--kbq-tree-states-selected-hover-container-background: hsla(216, 100%, 15%, 100%);
|
|
83
|
+
--kbq-tree-states-selected-hover-text-color: hsla(229, 15%, 80%, 100%);
|
|
84
|
+
--kbq-tree-states-selected-hover-icon-color: hsla(229, 15%, 80%, 100%);
|
|
85
|
+
--kbq-tree-states-selected-hover-tree-toggle-color: hsla(229, 15%, 45%, 100%);
|
|
86
|
+
--kbq-tree-states-selected-hover-action-button-color: hsla(229, 15%, 45%, 100%);
|
|
87
|
+
--kbq-tree-states-selected-hover-caption-color: hsla(229, 15%, 60%, 100%);
|
|
88
|
+
--kbq-tree-states-disabled-container-background: transparent;
|
|
89
|
+
--kbq-tree-states-disabled-text-color: hsla(229, 15%, 40%, 100%);
|
|
90
|
+
--kbq-tree-states-disabled-icon-color: hsla(229, 15%, 30%, 100%);
|
|
91
|
+
--kbq-tree-states-disabled-tree-toggle-color: hsla(229, 15%, 30%, 100%);
|
|
92
|
+
--kbq-tree-states-disabled-action-button-color: hsla(229, 15%, 30%, 100%);
|
|
93
|
+
--kbq-tree-states-disabled-caption-color: hsla(229, 15%, 40%, 100%);
|
|
94
|
+
}
|
package/tree/tree.scss
CHANGED
|
@@ -1,46 +1,39 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/theming/theming' as *;
|
|
5
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
-
@use '../core/styles/common/popup' as *;
|
|
7
5
|
@use '../core/styles/common/tokens' as *;
|
|
8
6
|
|
|
9
|
-
@mixin kbq-tree-select-theme(
|
|
10
|
-
$foreground: map.get($theme, foreground);
|
|
11
|
-
|
|
12
|
-
$select-panel: map.get($theme, components, select-panel);
|
|
13
|
-
$divider: map.get($theme, components, divider);
|
|
14
|
-
|
|
7
|
+
@mixin kbq-tree-select-theme() {
|
|
15
8
|
.kbq-tree-select {
|
|
16
|
-
color: kbq-css-variable(foreground-contrast
|
|
9
|
+
color: kbq-css-variable(foreground-contrast);
|
|
17
10
|
|
|
18
11
|
&.ng-invalid {
|
|
19
|
-
color: kbq-css-variable(error-default
|
|
12
|
+
color: kbq-css-variable(error-default);
|
|
20
13
|
}
|
|
21
14
|
|
|
22
15
|
&.kbq-disabled {
|
|
23
|
-
color: kbq-css-variable(foreground-text-disabled
|
|
16
|
+
color: kbq-css-variable(foreground-text-disabled);
|
|
24
17
|
}
|
|
25
18
|
}
|
|
26
19
|
|
|
27
20
|
.kbq-select__placeholder {
|
|
28
21
|
text-overflow: ellipsis;
|
|
29
22
|
|
|
30
|
-
color: kbq-css-variable(foreground-text-disabled
|
|
23
|
+
color: kbq-css-variable(foreground-text-disabled);
|
|
31
24
|
}
|
|
32
25
|
|
|
33
26
|
.kbq-tree-select__panel {
|
|
34
|
-
box-shadow: kbq-css-variable(select-panel-dropdown-shadow
|
|
35
|
-
background: kbq-css-variable(select-panel-dropdown-background
|
|
27
|
+
box-shadow: kbq-css-variable(select-panel-dropdown-shadow);
|
|
28
|
+
background: kbq-css-variable(select-panel-dropdown-background);
|
|
36
29
|
|
|
37
30
|
& .kbq-select__footer {
|
|
38
|
-
border-color: kbq-css-variable(divider-color
|
|
31
|
+
border-color: kbq-css-variable(divider-color);
|
|
39
32
|
}
|
|
40
33
|
}
|
|
41
34
|
}
|
|
42
35
|
|
|
43
|
-
@mixin kbq-tree-select-typography(
|
|
36
|
+
@mixin kbq-tree-select-typography() {
|
|
44
37
|
.kbq-tree-select,
|
|
45
38
|
.kbq-tree-select__panel {
|
|
46
39
|
@include kbq-typography-css-variables(select-panel, default);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.kbq-tree-select {
|
|
2
|
+
--kbq-select-panel-size-border-radius: 8px;
|
|
3
|
+
--kbq-select-panel-size-max-height: 256px;
|
|
4
|
+
--kbq-select-panel-font-default-font-size: 14px;
|
|
5
|
+
--kbq-select-panel-font-default-line-height: 20px;
|
|
6
|
+
--kbq-select-panel-font-default-letter-spacing: -0.006em;
|
|
7
|
+
--kbq-select-panel-font-default-font-weight: normal;
|
|
8
|
+
--kbq-select-panel-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
9
|
+
Arial, sans-serif;
|
|
10
|
+
--kbq-select-panel-font-default-text-transform: null;
|
|
11
|
+
--kbq-select-panel-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
15
|
+
--kbq-error-default: hsla(7, 97%, 50%, 100%);
|
|
16
|
+
--kbq-foreground-contrast: hsla(229, 15%, 15%, 100%);
|
|
17
|
+
--kbq-foreground-contrast-secondary: hsla(229, 15%, 50%, 100%);
|
|
18
|
+
--kbq-foreground-contrast-tertiary: hsla(229, 15%, 60%, 100%);
|
|
19
|
+
--kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
|
|
20
|
+
--kbq-icon-button-error-default: hsla(7, 97%, 45%, 100%);
|
|
21
|
+
--kbq-checkbox-error-default-border: hsla(7, 97%, 45%, 100%);
|
|
22
|
+
--kbq-checkbox-error-default-color: hsla(0, 0%, 100%, 100%);
|
|
23
|
+
--kbq-checkbox-error-default-text: hsla(229, 15%, 15%, 100%);
|
|
24
|
+
--kbq-checkbox-error-default-background: hsla(7, 97%, 99%, 100%);
|
|
25
|
+
--kbq-checkbox-error-default-caption: hsla(229, 15%, 50%, 100%);
|
|
26
|
+
--kbq-divider-color: hsla(229, 15%, 6%, 12%);
|
|
27
|
+
--kbq-radio-error-default-outer-circle-border: hsla(7, 97%, 45%, 100%);
|
|
28
|
+
--kbq-radio-error-default-outer-circle-background: hsla(7, 97%, 99%, 100%);
|
|
29
|
+
--kbq-radio-error-default-inner-circle-background: transparent;
|
|
30
|
+
--kbq-select-panel-dropdown-background: hsla(229, 15%, 100%, 100%);
|
|
31
|
+
--kbq-select-panel-dropdown-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
|
|
32
|
+
0 3px 8px hsla(229, 15%, 6%, 12%);
|
|
33
|
+
--kbq-toggle-error-default-border: hsla(7, 97%, 45%, 100%);
|
|
34
|
+
--kbq-toggle-error-default-background: hsla(7, 97%, 99%, 100%);
|
|
35
|
+
--kbq-toggle-error-default-circle-background: hsla(7, 97%, 45%, 100%);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
39
|
+
--kbq-error-default: hsla(7, 97%, 50%, 100%);
|
|
40
|
+
--kbq-foreground-contrast: hsla(229, 15%, 80%, 100%);
|
|
41
|
+
--kbq-foreground-contrast-secondary: hsla(229, 15%, 60%, 100%);
|
|
42
|
+
--kbq-foreground-contrast-tertiary: hsla(229, 15%, 45%, 100%);
|
|
43
|
+
--kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
|
|
44
|
+
--kbq-icon-button-error-default: hsla(7, 97%, 60%, 100%);
|
|
45
|
+
--kbq-checkbox-error-default-border: hsla(7, 97%, 35%, 100%);
|
|
46
|
+
--kbq-checkbox-error-default-color: hsla(0, 0%, 100%, 100%);
|
|
47
|
+
--kbq-checkbox-error-default-text: hsla(229, 15%, 80%, 100%);
|
|
48
|
+
--kbq-checkbox-error-default-background: hsla(7, 97%, 6%, 100%);
|
|
49
|
+
--kbq-checkbox-error-default-caption: hsla(229, 15%, 60%, 100%);
|
|
50
|
+
--kbq-divider-color: hsla(229, 15%, 22%, 100%);
|
|
51
|
+
--kbq-radio-error-default-outer-circle-border: hsla(7, 97%, 35%, 100%);
|
|
52
|
+
--kbq-radio-error-default-outer-circle-background: hsla(7, 97%, 6%, 100%);
|
|
53
|
+
--kbq-radio-error-default-inner-circle-background: transparent;
|
|
54
|
+
--kbq-select-panel-dropdown-background: hsla(229, 15%, 15%, 100%);
|
|
55
|
+
--kbq-select-panel-dropdown-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
56
|
+
--kbq-toggle-error-default-border: hsla(7, 97%, 35%, 100%);
|
|
57
|
+
--kbq-toggle-error-default-background: hsla(7, 97%, 6%, 100%);
|
|
58
|
+
--kbq-toggle-error-default-circle-background: hsla(7, 97%, 60%, 100%);
|
|
59
|
+
}
|