@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.
Files changed (255) hide show
  1. package/alert/_alert-theme.scss +16 -20
  2. package/alert/alert-tokens.scss +132 -0
  3. package/alert/alert.component.scss +5 -0
  4. package/autocomplete/_autocomplete-theme.scss +3 -5
  5. package/autocomplete/autocomplete-tokens.scss +16 -0
  6. package/autocomplete/autocomplete.scss +4 -0
  7. package/badge/_badge-theme.scss +22 -25
  8. package/badge/badge-tokens.scss +185 -0
  9. package/badge/badge.component.scss +5 -0
  10. package/button/_button-theme.scss +20 -29
  11. package/button/button-tokens.scss +278 -0
  12. package/button/button.scss +5 -0
  13. package/button-toggle/_button-toggle-theme.scss +16 -28
  14. package/button-toggle/button-toggle-tokens.scss +78 -0
  15. package/button-toggle/button-toggle.scss +7 -2
  16. package/checkbox/_checkbox-theme.scss +27 -58
  17. package/checkbox/checkbox-tokens.scss +140 -0
  18. package/checkbox/checkbox.scss +6 -4
  19. package/code-block/_code-block-theme.scss +124 -143
  20. package/code-block/code-block-tokens.scss +400 -0
  21. package/code-block/code-block.scss +4 -2
  22. package/core/highlight/_highlight-theme.scss +1 -1
  23. package/core/pop-up/pop-up-styles.d.ts +2 -2
  24. package/core/pop-up/pop-up-trigger.d.ts +8 -9
  25. package/core/pop-up/pop-up.d.ts +3 -3
  26. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +12 -15
  27. package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +140 -0
  28. package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +3 -2
  29. package/core/services/theme.service.d.ts +16 -0
  30. package/core/styles/_koobiq-theme.scss +6 -100
  31. package/datepicker/_datepicker-theme.scss +17 -43
  32. package/datepicker/calendar.scss +0 -3
  33. package/datepicker/datepicker-content.scss +5 -6
  34. package/datepicker/datepicker-tokens.scss +59 -0
  35. package/divider/_divider-theme.scss +2 -4
  36. package/divider/divider-tokens.scss +14 -0
  37. package/divider/divider.scss +4 -0
  38. package/dl/_dl-theme.scss +4 -6
  39. package/dl/dl-tokens.scss +32 -0
  40. package/dl/dl.scss +5 -0
  41. package/dropdown/_dropdown-theme.scss +15 -24
  42. package/dropdown/dropdown-tokens.scss +111 -0
  43. package/dropdown/dropdown.scss +5 -0
  44. package/ellipsis-center/ellipsis-center.directive.d.ts +2 -6
  45. package/empty-state/_empty-state-theme.scss +6 -9
  46. package/empty-state/empty-state-tokens.scss +68 -0
  47. package/empty-state/empty-state.scss +5 -0
  48. package/esm2022/alert/alert.component.mjs +3 -3
  49. package/esm2022/autocomplete/autocomplete.component.mjs +3 -3
  50. package/esm2022/badge/badge.component.mjs +3 -3
  51. package/esm2022/button/button.component.mjs +3 -3
  52. package/esm2022/button-toggle/button-toggle.component.mjs +3 -3
  53. package/esm2022/checkbox/checkbox.mjs +3 -3
  54. package/esm2022/code-block/code-block.component.mjs +3 -3
  55. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  56. package/esm2022/core/pop-up/pop-up-styles.mjs +7 -9
  57. package/esm2022/core/pop-up/pop-up-trigger.mjs +13 -16
  58. package/esm2022/core/pop-up/pop-up.mjs +7 -6
  59. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  60. package/esm2022/core/services/theme.service.mjs +20 -3
  61. package/esm2022/core/version.mjs +2 -2
  62. package/esm2022/datepicker/datepicker.component.mjs +3 -3
  63. package/esm2022/divider/divider.component.mjs +3 -3
  64. package/esm2022/dl/dl.component.mjs +3 -3
  65. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  66. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +12 -23
  67. package/esm2022/empty-state/empty-state.component.mjs +3 -3
  68. package/esm2022/file-upload/multiple-file-upload.component.mjs +3 -3
  69. package/esm2022/file-upload/single-file-upload.component.mjs +3 -3
  70. package/esm2022/form-field/form-field.mjs +3 -3
  71. package/esm2022/form-field/hint.mjs +3 -3
  72. package/esm2022/form-field/password-hint.mjs +10 -7
  73. package/esm2022/form-field/password-toggle.mjs +10 -21
  74. package/esm2022/icon/icon-button.component.mjs +3 -3
  75. package/esm2022/icon/icon-item.component.mjs +3 -3
  76. package/esm2022/icon/icon.component.mjs +3 -3
  77. package/esm2022/list/list-selection.component.mjs +3 -3
  78. package/esm2022/list/list.component.mjs +3 -3
  79. package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
  80. package/esm2022/markdown/markdown.component.mjs +3 -3
  81. package/esm2022/modal/modal-ref.class.mjs +1 -1
  82. package/esm2022/modal/modal.component.mjs +3 -3
  83. package/esm2022/modal/modal.service.mjs +16 -8
  84. package/esm2022/modal/modal.type.mjs +1 -1
  85. package/esm2022/navbar/navbar-item.component.mjs +17 -31
  86. package/esm2022/navbar/navbar.component.mjs +3 -3
  87. package/esm2022/popover/popover-confirm.component.mjs +13 -22
  88. package/esm2022/popover/popover.component.mjs +24 -31
  89. package/esm2022/select/select-option.directive.mjs +7 -18
  90. package/esm2022/table/table.component.mjs +3 -3
  91. package/esm2022/timezone/timezone-option.component.mjs +3 -3
  92. package/esm2022/timezone/timezone-option.directive.mjs +7 -18
  93. package/esm2022/timezone/timezone-select.component.mjs +3 -3
  94. package/esm2022/title/title.directive.mjs +7 -18
  95. package/esm2022/toast/toast.component.mjs +3 -3
  96. package/esm2022/toggle/toggle.component.mjs +3 -3
  97. package/esm2022/tooltip/tooltip.component.mjs +28 -47
  98. package/esm2022/tree/toggle.mjs +3 -3
  99. package/esm2022/tree/tree-option.component.mjs +3 -3
  100. package/esm2022/tree/tree-selection.component.mjs +3 -3
  101. package/esm2022/tree/tree.mjs +3 -3
  102. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  103. package/fesm2022/koobiq-components-alert.mjs +2 -2
  104. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  105. package/fesm2022/koobiq-components-autocomplete.mjs +2 -2
  106. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  107. package/fesm2022/koobiq-components-badge.mjs +2 -2
  108. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  109. package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
  110. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  111. package/fesm2022/koobiq-components-button.mjs +2 -2
  112. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  113. package/fesm2022/koobiq-components-checkbox.mjs +2 -2
  114. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  115. package/fesm2022/koobiq-components-code-block.mjs +2 -2
  116. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  117. package/fesm2022/koobiq-components-core.mjs +49 -35
  118. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  119. package/fesm2022/koobiq-components-datepicker.mjs +2 -2
  120. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  121. package/fesm2022/koobiq-components-divider.mjs +2 -2
  122. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  123. package/fesm2022/koobiq-components-dl.mjs +2 -2
  124. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  125. package/fesm2022/koobiq-components-dropdown.mjs +2 -2
  126. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  127. package/fesm2022/koobiq-components-ellipsis-center.mjs +11 -19
  128. package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
  129. package/fesm2022/koobiq-components-empty-state.mjs +2 -2
  130. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
  131. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  132. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  133. package/fesm2022/koobiq-components-form-field.mjs +33 -37
  134. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  135. package/fesm2022/koobiq-components-icon.mjs +6 -6
  136. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  137. package/fesm2022/koobiq-components-list.mjs +4 -4
  138. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  139. package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
  140. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  141. package/fesm2022/koobiq-components-markdown.mjs +2 -2
  142. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  143. package/fesm2022/koobiq-components-modal.mjs +17 -9
  144. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  145. package/fesm2022/koobiq-components-navbar.mjs +17 -29
  146. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  147. package/fesm2022/koobiq-components-popover.mjs +33 -44
  148. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  149. package/fesm2022/koobiq-components-select.mjs +14 -20
  150. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  151. package/fesm2022/koobiq-components-table.mjs +2 -2
  152. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  153. package/fesm2022/koobiq-components-timezone.mjs +13 -20
  154. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  155. package/fesm2022/koobiq-components-title.mjs +6 -14
  156. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  157. package/fesm2022/koobiq-components-toast.mjs +2 -2
  158. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  159. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  160. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  161. package/fesm2022/koobiq-components-tooltip.mjs +27 -44
  162. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  163. package/fesm2022/koobiq-components-tree-select.mjs +2 -2
  164. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  165. package/fesm2022/koobiq-components-tree.mjs +8 -8
  166. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  167. package/file-upload/_file-upload-theme.scss +29 -112
  168. package/file-upload/file-upload-tokens.scss +159 -0
  169. package/file-upload/file-upload.scss +4 -2
  170. package/form-field/_form-field-theme.scss +21 -47
  171. package/form-field/_hint-theme.scss +13 -17
  172. package/form-field/form-field-tokens.scss +69 -0
  173. package/form-field/form-field.scss +4 -2
  174. package/form-field/hint-tokens.scss +60 -0
  175. package/form-field/hint.scss +5 -0
  176. package/form-field/password-toggle.d.ts +3 -6
  177. package/icon/_icon-button-theme.scss +27 -65
  178. package/icon/_icon-item-theme.scss +14 -17
  179. package/icon/_icon-theme.scss +7 -12
  180. package/icon/icon-button-tokens.scss +67 -0
  181. package/icon/icon-button.scss +4 -0
  182. package/icon/icon-item-tokens.scss +52 -0
  183. package/icon/icon-item.scss +4 -0
  184. package/icon/icon-tokens.scss +17 -0
  185. package/icon/icon.scss +4 -0
  186. package/input/_input-theme.scss +1 -5
  187. package/input/input-tokens.scss +12 -0
  188. package/input/input.scss +4 -5
  189. package/link/_link-theme.scss +18 -26
  190. package/link/link-tokens.scss +67 -0
  191. package/list/_list-theme.scss +14 -25
  192. package/list/list-tokens.scss +100 -0
  193. package/list/list.scss +5 -0
  194. package/loader-overlay/_loader-overlay-theme.scss +8 -23
  195. package/loader-overlay/loader-overlay-tokens.scss +58 -0
  196. package/loader-overlay/loader-overlay.scss +4 -5
  197. package/markdown/_markdown-theme.scss +29 -43
  198. package/markdown/markdown-tokens.scss +252 -0
  199. package/markdown/markdown.scss +6 -6
  200. package/modal/_modal-confirm.scss +0 -3
  201. package/modal/_modal-theme.scss +10 -12
  202. package/modal/modal-ref.class.d.ts +2 -2
  203. package/modal/modal-tokens.scss +53 -0
  204. package/modal/modal.component.d.ts +2 -2
  205. package/modal/modal.scss +5 -0
  206. package/modal/modal.service.d.ts +12 -7
  207. package/modal/modal.type.d.ts +3 -0
  208. package/navbar/_navbar-theme.scss +15 -25
  209. package/navbar/navbar-divider.scss +0 -3
  210. package/navbar/navbar-item.component.d.ts +5 -7
  211. package/navbar/navbar-item.scss +0 -3
  212. package/navbar/navbar-tokens.scss +83 -0
  213. package/navbar/navbar.scss +5 -3
  214. package/navbar/vertical-navbar.scss +0 -3
  215. package/package.json +7 -7
  216. package/popover/_popover-theme.scss +9 -16
  217. package/popover/popover-confirm.component.d.ts +3 -6
  218. package/popover/popover-tokens.scss +60 -0
  219. package/popover/popover.component.d.ts +4 -6
  220. package/popover/popover.scss +4 -5
  221. package/prebuilt-themes/dark-theme.css +1 -1
  222. package/prebuilt-themes/light-theme.css +1 -1
  223. package/schematics/ng-add/index.js +4 -4
  224. package/select/select-option.directive.d.ts +3 -6
  225. package/table/_table-theme.scss +7 -15
  226. package/table/table-tokens.scss +37 -0
  227. package/table/table.scss +4 -1
  228. package/textarea/_textarea-theme.scss +1 -1
  229. package/textarea/textarea-tokens.scss +14 -0
  230. package/textarea/textarea.scss +1 -0
  231. package/timezone/_timezone-option-theme.scss +5 -7
  232. package/timezone/timezone-option-tokens.scss +51 -0
  233. package/timezone/timezone-option.component.scss +5 -0
  234. package/timezone/timezone-option.directive.d.ts +3 -6
  235. package/timezone/timezone-select.component.scss +5 -0
  236. package/title/title.directive.d.ts +3 -6
  237. package/toast/_toast-theme.scss +11 -15
  238. package/toast/toast-tokens.scss +75 -0
  239. package/toast/toast.component.scss +4 -1
  240. package/toggle/_toggle-theme.scss +21 -41
  241. package/toggle/toggle-tokens.scss +142 -0
  242. package/toggle/toggle.scss +4 -1
  243. package/tooltip/_tooltip-theme.scss +13 -23
  244. package/tooltip/tooltip-tokens.scss +63 -0
  245. package/tooltip/tooltip.component.d.ts +8 -11
  246. package/tooltip/tooltip.scss +5 -0
  247. package/tree/_tree-theme.scss +14 -21
  248. package/tree/toggle.scss +5 -0
  249. package/tree/tree-option.scss +0 -5
  250. package/tree/tree-selection.scss +5 -0
  251. package/tree/tree-tokens.scss +94 -0
  252. package/tree/tree.scss +5 -0
  253. package/tree-select/_tree-select-theme.scss +9 -16
  254. package/tree-select/tree-select-tokens.scss +59 -0
  255. 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
- $tokens: meta.module-variables(tokens) !default;
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
+ }
@@ -3,6 +3,8 @@
3
3
 
4
4
  @use '../core/styles/common/tokens' as *;
5
5
 
6
+ @use './hint-theme' as *;
7
+
6
8
  .kbq-hint {
7
9
  display: flex;
8
10
 
@@ -18,3 +20,6 @@
18
20
  }
19
21
  }
20
22
  }
23
+
24
+ @include kbq-hint-theme();
25
+ @include kbq-hint-typography();
@@ -1,7 +1,4 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
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(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, focusMonitor: FocusMonitor, direction: Directionality, formField: KbqFormFieldRef, changeDetector: ChangeDetectorRef);
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, [null, null, null, null, null, null, null, { optional: true; }, null, null]>;
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($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, map.get($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, map.get($icon-button, theme, state-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, map.get($icon-button, theme, state-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, map.get($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, map.get($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, map.get($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, map.get($icon-button, error, state-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, map.get($icon-button, error, state-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, map.get($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, map.get($icon-button, success, state-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, map.get($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, map.get($icon-button, warning, state-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, map.get($theme, states, focused-color)),
156
- 0 0 0.1px 1px kbq-css-variable(states-focused-color, map.get($theme, 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($component, $type, $style-name) {
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, map.get($component, $type, $style-name, color));
11
- background: kbq-css-variable(#{$base}-background, map.get($component, $type, $style-name, 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($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($icon-item, fade-off, theme);
17
+ @include kbq-icon-item-style(fade-off, theme);
21
18
  }
22
19
 
23
20
  &.kbq-contrast {
24
- @include kbq-icon-item-style($icon-item, fade-off, contrast);
21
+ @include kbq-icon-item-style(fade-off, contrast);
25
22
  }
26
23
 
27
24
  &.kbq-error {
28
- @include kbq-icon-item-style($icon-item, fade-off, error);
25
+ @include kbq-icon-item-style(fade-off, error);
29
26
  }
30
27
 
31
28
  &.kbq-warning {
32
- @include kbq-icon-item-style($icon-item, fade-off, warning);
29
+ @include kbq-icon-item-style(fade-off, warning);
33
30
  }
34
31
 
35
32
  &.kbq-success {
36
- @include kbq-icon-item-style($icon-item, fade-off, success);
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($icon-item, fade-on, theme);
39
+ @include kbq-icon-item-style(fade-on, theme);
43
40
  }
44
41
 
45
42
  &.kbq-contrast {
46
- @include kbq-icon-item-style($icon-item, fade-on, contrast);
43
+ @include kbq-icon-item-style(fade-on, contrast);
47
44
  }
48
45
 
49
46
  &.kbq-error {
50
- @include kbq-icon-item-style($icon-item, fade-on, error);
47
+ @include kbq-icon-item-style(fade-on, error);
51
48
  }
52
49
 
53
50
  &.kbq-warning {
54
- @include kbq-icon-item-style($icon-item, fade-on, warning);
51
+ @include kbq-icon-item-style(fade-on, warning);
55
52
  }
56
53
 
57
54
  &.kbq-success {
58
- @include kbq-icon-item-style($icon-item, fade-on, success);
55
+ @include kbq-icon-item-style(fade-on, success);
59
56
  }
60
57
  }
61
58
  }
@@ -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($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, map.get($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, map.get($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, map.get($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, map.get($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, map.get($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, map.get($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
+ }
@@ -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
+ }
@@ -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
+ }