@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
@@ -4,81 +4,45 @@
4
4
  @use '../core/styles/typography/typography-utils' as *;
5
5
  @use '../core/styles/common/tokens' as *;
6
6
 
7
- @mixin kbq-file-upload-theme($theme) {
8
- $file-upload: map.get($theme, components, file-upload);
9
-
7
+ @mixin kbq-file-upload-theme() {
10
8
  .kbq-file-upload {
11
9
  .kbq-focused,
12
10
  .kbq-link.kbq-focused {
13
- border: 2px solid
14
- kbq-css-variable(
15
- file-upload-single-states-focused-focus-outline,
16
- map.get($file-upload, single, states, focused)
17
- );
11
+ border: 2px solid kbq-css-variable(file-upload-single-states-focused-focus-outline);
18
12
  }
19
13
  }
20
14
 
21
15
  .kbq-single-file-upload {
22
16
  .kbq-file-upload {
23
17
  // FIXME: move to mixin kbq-file-upload-state
24
- background-color: kbq-css-variable(
25
- file-upload-single-default-container-background,
26
- map.get($file-upload, single, default, background)
27
- );
28
- border-color: kbq-css-variable(
29
- file-upload-single-default-container-border,
30
- map.get($file-upload, single, default, border)
31
- ) !important;
18
+ background-color: kbq-css-variable(file-upload-single-default-container-background);
19
+ border-color: kbq-css-variable(file-upload-single-default-container-border) !important;
32
20
 
33
21
  &.dragover {
34
- background-color: kbq-css-variable(
35
- file-upload-single-states-on-drag-container-background,
36
- map.get($file-upload, single, states, on-drag, background)
37
- );
38
- border-color: kbq-css-variable(
39
- file-upload-single-states-on-drag-container-border,
40
- map.get($file-upload, single, states, on-drag, border)
41
- ) !important;
22
+ background-color: kbq-css-variable(file-upload-single-states-on-drag-container-background);
23
+ border-color: kbq-css-variable(file-upload-single-states-on-drag-container-border) !important;
42
24
  }
43
25
 
44
26
  &.kbq-error:not(.kbq-disabled) {
45
27
  &:not(.dragover) {
46
- background-color: kbq-css-variable(
47
- file-upload-single-states-error-container-background,
48
- map.get($file-upload, single, states, error, background)
49
- );
50
- border-color: kbq-css-variable(
51
- file-upload-single-states-error-container-border,
52
- map.get($file-upload, single, states, error, border)
53
- ) !important;
28
+ background-color: kbq-css-variable(file-upload-single-states-error-container-background);
29
+ border-color: kbq-css-variable(file-upload-single-states-error-container-border) !important;
54
30
  }
55
31
 
56
32
  *,
57
33
  .kbq-icon {
58
- color: kbq-css-variable(
59
- file-upload-single-states-error-text-block-color,
60
- map.get($file-upload, single, states, error, text-block)
61
- );
34
+ color: kbq-css-variable(file-upload-single-states-error-text-block-color);
62
35
  }
63
36
  }
64
37
 
65
38
  &.kbq-disabled {
66
- background-color: kbq-css-variable(
67
- file-upload-single-states-disabled-container-background,
68
- map.get($file-upload, single, states, disabled, background)
69
- );
70
- border-color: kbq-css-variable(
71
- file-upload-single-states-disabled-container-border,
72
- map.get($file-upload, single, states, disabled, border)
73
- ) !important;
39
+ background-color: kbq-css-variable(file-upload-single-states-disabled-container-background);
40
+ border-color: kbq-css-variable(file-upload-single-states-disabled-container-border) !important;
74
41
 
75
42
  &,
76
43
  .kbq-icon,
77
44
  .kbq-link {
78
- color: kbq-css-variable(
79
- file-upload-single-states-disabled-container-border,
80
- map.get($file-upload, single, states, disabled, border)
81
- );
45
+ color: kbq-css-variable(file-upload-single-states-disabled-container-border);
82
46
  }
83
47
  }
84
48
  }
@@ -86,85 +50,47 @@
86
50
 
87
51
  .kbq-multiple-file-upload {
88
52
  .kbq-file-upload {
89
- background-color: kbq-css-variable(
90
- file-upload-multiple-default-container-background,
91
- map.get($file-upload, multiple, default, background)
92
- );
93
- border-color: kbq-css-variable(
94
- file-upload-multiple-default-container-border,
95
- map.get($file-upload, multiple, default, border)
96
- ) !important;
53
+ background-color: kbq-css-variable(file-upload-multiple-default-container-background);
54
+ border-color: kbq-css-variable(file-upload-multiple-default-container-border) !important;
97
55
 
98
56
  .btn-upload {
99
- border-top-color: kbq-css-variable(
100
- file-upload-multiple-default-container-border,
101
- map.get($file-upload, multiple, default, border)
102
- );
57
+ border-top-color: kbq-css-variable(file-upload-multiple-default-container-border);
103
58
  }
104
59
 
105
60
  .kbq-file-multiple-uploaded__header {
106
- border-bottom-color: kbq-css-variable(
107
- file-upload-multiple-default-grid-divider-color,
108
- map.get($file-upload, multiple, default, grid-divider)
109
- );
110
-
111
- .kbq-file-multiple-uploaded__header-inner {
112
- //color: map.get(map.get($multiple, default), border);
113
- }
61
+ border-bottom-color: kbq-css-variable(file-upload-multiple-default-grid-divider-color);
114
62
  }
115
63
 
116
64
  &.dragover {
117
- background-color: kbq-css-variable(
118
- file-upload-multiple-states-on-drag-container-background,
119
- map.get($file-upload, multiple, states, on-drag, background)
120
- );
121
- border-color: kbq-css-variable(
122
- file-upload-multiple-states-on-drag-container-border,
123
- map.get($file-upload, multiple, states, on-drag, border)
124
- ) !important;
65
+ background-color: kbq-css-variable(file-upload-multiple-states-on-drag-container-background);
66
+ border-color: kbq-css-variable(file-upload-multiple-states-on-drag-container-border) !important;
125
67
 
126
68
  .kbq-file-multiple-uploaded__header {
127
69
  border-bottom-color: kbq-css-variable(
128
- file-upload-multiple-states-on-drag-container-background,
129
- map.get($file-upload, multiple, states, on-drag, background)
70
+ file-upload-multiple-states-on-drag-container-background
130
71
  ) !important;
131
72
  }
132
73
 
133
74
  &.selected {
134
75
  .dropzone {
135
- border-top-color: kbq-css-variable(
136
- file-upload-multiple-states-on-drag-container-border,
137
- map.get($file-upload, multiple, states, on-drag, border)
138
- );
76
+ border-top-color: kbq-css-variable(file-upload-multiple-states-on-drag-container-border);
139
77
  }
140
78
  }
141
79
  }
142
80
 
143
81
  &.kbq-disabled {
144
- background-color: kbq-css-variable(
145
- file-upload-multiple-states-disabled-container-background,
146
- map.get($file-upload, multiple, states, disabled, background)
147
- );
148
- border-color: kbq-css-variable(
149
- file-upload-multiple-states-disabled-container-border,
150
- map.get($file-upload, multiple, states, disabled, border)
151
- ) !important;
82
+ background-color: kbq-css-variable(file-upload-multiple-states-disabled-container-background);
83
+ border-color: kbq-css-variable(file-upload-multiple-states-disabled-container-border) !important;
152
84
 
153
85
  &,
154
86
  .kbq-icon,
155
87
  .kbq-link {
156
- color: kbq-css-variable(
157
- file-upload-multiple-states-disabled-container-border,
158
- map.get($file-upload, multiple, states, disabled, border)
159
- );
88
+ color: kbq-css-variable(file-upload-multiple-states-disabled-container-border);
160
89
  }
161
90
 
162
91
  &.selected {
163
92
  .dropzone {
164
- border-top-color: kbq-css-variable(
165
- file-upload-multiple-states-disabled-container-border,
166
- map.get($file-upload, multiple, states, disabled, border)
167
- );
93
+ border-top-color: kbq-css-variable(file-upload-multiple-states-disabled-container-border);
168
94
  }
169
95
  }
170
96
  }
@@ -173,27 +99,18 @@
173
99
  .kbq-file-upload__row.error {
174
100
  *,
175
101
  .kbq-icon {
176
- color: kbq-css-variable(
177
- file-upload-multiple-states-error-text-block-color,
178
- map.get($file-upload, multiple, states, error, text-block)
179
- );
102
+ color: kbq-css-variable(file-upload-multiple-states-error-text-block-color);
180
103
  }
181
104
  }
182
105
  }
183
106
 
184
107
  .multiple__uploaded-item {
185
108
  & .kbq-file-upload__file .kbq-icon {
186
- color: kbq-css-variable(
187
- file-upload-multiple-default-left-icon-color,
188
- map.get($file-upload, multiple, default, left-icon)
189
- );
109
+ color: kbq-css-variable(file-upload-multiple-default-left-icon-color);
190
110
  }
191
111
 
192
112
  & .kbq-file-upload__action .kbq-icon {
193
- color: kbq-css-variable(
194
- file-upload-multiple-default-icon-button-color,
195
- map.get($file-upload, multiple, default, icon-button)
196
- );
113
+ color: kbq-css-variable(file-upload-multiple-default-icon-button-color);
197
114
  }
198
115
  }
199
116
  }
@@ -202,12 +119,12 @@
202
119
  .kbq-single-file-upload,
203
120
  .kbq-multiple-file-upload {
204
121
  .kbq-file-upload__hint:not(.kbq-error) {
205
- color: kbq-css-variable(form-field-hint-text, map.get($theme, components, form-field-hint, text));
122
+ color: kbq-css-variable(form-field-hint-text);
206
123
  }
207
124
  }
208
125
  }
209
126
 
210
- @mixin kbq-file-upload-typography($config) {
127
+ @mixin kbq-file-upload-typography() {
211
128
  .kbq-single-file-upload {
212
129
  & .file-item__text-wrapper,
213
130
  & .dropzone__text {
@@ -0,0 +1,159 @@
1
+ .kbq-file-upload {
2
+ --kbq-file-upload-size-single-container-border-radius: 8px;
3
+ --kbq-file-upload-size-single-container-border-width: 1px;
4
+ --kbq-file-upload-size-single-container-content-gap-horizontal: 8px;
5
+ --kbq-file-upload-size-single-container-padding-vertical: 12px;
6
+ --kbq-file-upload-size-single-container-padding-horizontal: 12px;
7
+ --kbq-file-upload-size-single-text-block-padding-vertical: 2px;
8
+ --kbq-file-upload-size-single-text-block-content-gap-horizontal: 4px;
9
+ --kbq-file-upload-size-multiple-big-container-min-height: 160px;
10
+ --kbq-file-upload-size-multiple-big-container-min-width: 320px;
11
+ --kbq-file-upload-size-multiple-big-container-border-radius: 8px;
12
+ --kbq-file-upload-size-multiple-big-container-border-width: 1px;
13
+ --kbq-file-upload-size-multiple-big-container-content-gap-horizontal: 12px;
14
+ --kbq-file-upload-size-multiple-big-container-padding-vertical: 24px;
15
+ --kbq-file-upload-size-multiple-big-container-padding-horizontal: 24px;
16
+ --kbq-file-upload-size-multiple-big-text-block-content-gap-vertical: 0px;
17
+ --kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal: 4px;
18
+ --kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal: 8px;
19
+ --kbq-file-upload-size-multiple-big-grid-cell-padding-vertical: 8px;
20
+ --kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal: 4px;
21
+ --kbq-file-upload-font-single-text-block-font-size: 14px;
22
+ --kbq-file-upload-font-single-text-block-line-height: 20px;
23
+ --kbq-file-upload-font-single-text-block-letter-spacing: -0.006em;
24
+ --kbq-file-upload-font-single-text-block-font-weight: normal;
25
+ --kbq-file-upload-font-single-text-block-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
26
+ 'Helvetica Neue', Arial, sans-serif;
27
+ --kbq-file-upload-font-single-text-block-text-transform: null;
28
+ --kbq-file-upload-font-single-text-block-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
29
+ --kbq-file-upload-font-multiple-title-font-size: 18px;
30
+ --kbq-file-upload-font-multiple-title-line-height: 26px;
31
+ --kbq-file-upload-font-multiple-title-letter-spacing: normal;
32
+ --kbq-file-upload-font-multiple-title-font-weight: 600;
33
+ --kbq-file-upload-font-multiple-title-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont,
34
+ 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
35
+ --kbq-file-upload-font-multiple-title-text-transform: null;
36
+ --kbq-file-upload-font-multiple-title-font-feature-settings: 'calt', 'kern', 'liga';
37
+ --kbq-file-upload-font-multiple-text-block-font-size: 14px;
38
+ --kbq-file-upload-font-multiple-text-block-line-height: 20px;
39
+ --kbq-file-upload-font-multiple-text-block-letter-spacing: -0.006em;
40
+ --kbq-file-upload-font-multiple-text-block-font-weight: normal;
41
+ --kbq-file-upload-font-multiple-text-block-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
42
+ 'Helvetica Neue', Arial, sans-serif;
43
+ --kbq-file-upload-font-multiple-text-block-text-transform: null;
44
+ --kbq-file-upload-font-multiple-text-block-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
45
+ --kbq-file-upload-font-multiple-grid-font-size: 14px;
46
+ --kbq-file-upload-font-multiple-grid-line-height: 20px;
47
+ --kbq-file-upload-font-multiple-grid-letter-spacing: -0.006em;
48
+ --kbq-file-upload-font-multiple-grid-font-weight: normal;
49
+ --kbq-file-upload-font-multiple-grid-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
50
+ 'Helvetica Neue', Arial, sans-serif;
51
+ --kbq-file-upload-font-multiple-grid-text-transform: null;
52
+ --kbq-file-upload-font-multiple-grid-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
53
+ --kbq-form-field-hint-font-text-font-size: 12px;
54
+ --kbq-form-field-hint-font-text-line-height: 16px;
55
+ --kbq-form-field-hint-font-text-letter-spacing: normal;
56
+ --kbq-form-field-hint-font-text-font-weight: normal;
57
+ --kbq-form-field-hint-font-text-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
58
+ Arial, sans-serif;
59
+ --kbq-form-field-hint-font-text-text-transform: null;
60
+ --kbq-form-field-hint-font-text-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
61
+ }
62
+
63
+ :where(.kbq-light, .theme-light, .kbq-theme-light) {
64
+ --kbq-file-upload-single-default-container-border: hsla(229, 15%, 70%, 100%);
65
+ --kbq-file-upload-single-default-container-background: hsla(0, 0%, 100%, 100%);
66
+ --kbq-file-upload-single-default-upload-icon-color: hsla(229, 15%, 60%, 100%);
67
+ --kbq-file-upload-single-default-left-icon-color: hsla(229, 15%, 60%, 100%);
68
+ --kbq-file-upload-single-default-text-block-color: hsla(229, 15%, 15%, 100%);
69
+ --kbq-file-upload-single-default-icon-button-color: hsla(229, 15%, 15%, 100%);
70
+ --kbq-file-upload-single-states-on-drag-container-border: hsla(216, 100%, 65%, 100%);
71
+ --kbq-file-upload-single-states-on-drag-container-background: hsla(216, 100%, 85%, 100%);
72
+ --kbq-file-upload-single-states-on-drag-upload-icon-color: hsla(229, 15%, 60%, 100%);
73
+ --kbq-file-upload-single-states-on-drag-left-icon-color: hsla(229, 15%, 60%, 100%);
74
+ --kbq-file-upload-single-states-on-drag-text-block-color: hsla(229, 15%, 15%, 100%);
75
+ --kbq-file-upload-single-states-error-container-border: hsla(7, 97%, 45%, 100%);
76
+ --kbq-file-upload-single-states-error-container-background: hsla(7, 97%, 99%, 100%);
77
+ --kbq-file-upload-single-states-error-left-icon-color: hsla(7, 97%, 45%, 100%);
78
+ --kbq-file-upload-single-states-error-text-block-color: hsla(7, 97%, 40%, 100%);
79
+ --kbq-file-upload-single-states-disabled-container-border: hsla(229, 15%, 15%, 32%);
80
+ --kbq-file-upload-single-states-disabled-container-background: hsla(229, 15%, 50%, 16%);
81
+ --kbq-file-upload-single-states-disabled-upload-icon-color: hsla(229, 15%, 15%, 32%);
82
+ --kbq-file-upload-single-states-disabled-left-icon-color: hsla(229, 15%, 15%, 32%);
83
+ --kbq-file-upload-single-states-disabled-text-block-color: hsla(229, 15%, 15%, 32%);
84
+ --kbq-file-upload-single-states-focused-focus-outline-color: hsla(216, 100%, 60%, 100%);
85
+ --kbq-file-upload-multiple-default-container-border: hsla(229, 15%, 70%, 100%);
86
+ --kbq-file-upload-multiple-default-container-background: hsla(0, 0%, 100%, 100%);
87
+ --kbq-file-upload-multiple-default-upload-icon-color: hsla(229, 15%, 60%, 100%);
88
+ --kbq-file-upload-multiple-default-left-icon-color: hsla(229, 15%, 60%, 100%);
89
+ --kbq-file-upload-multiple-default-text-block-color: hsla(229, 15%, 15%, 100%);
90
+ --kbq-file-upload-multiple-default-icon-button-color: hsla(229, 15%, 15%, 100%);
91
+ --kbq-file-upload-multiple-default-grid-divider-color: hsla(229, 15%, 6%, 12%);
92
+ --kbq-file-upload-multiple-states-on-drag-container-border: hsla(216, 100%, 65%, 100%);
93
+ --kbq-file-upload-multiple-states-on-drag-container-background: hsla(216, 100%, 85%, 100%);
94
+ --kbq-file-upload-multiple-states-on-drag-upload-icon-color: hsla(229, 15%, 60%, 100%);
95
+ --kbq-file-upload-multiple-states-on-drag-left-icon-color: hsla(229, 15%, 60%, 100%);
96
+ --kbq-file-upload-multiple-states-on-drag-icon-button-color: hsla(229, 15%, 15%, 100%);
97
+ --kbq-file-upload-multiple-states-on-drag-text-block-color: hsla(229, 15%, 15%, 100%);
98
+ --kbq-file-upload-multiple-states-on-drag-grid-divider-color: hsla(216, 100%, 65%, 100%);
99
+ --kbq-file-upload-multiple-states-error-grid-cell-background: hsla(7, 97%, 99%, 100%);
100
+ --kbq-file-upload-multiple-states-error-left-icon-color: hsla(7, 97%, 45%, 100%);
101
+ --kbq-file-upload-multiple-states-error-text-block-color: hsla(7, 97%, 40%, 100%);
102
+ --kbq-file-upload-multiple-states-error-icon-button-color: hsla(7, 97%, 45%, 100%);
103
+ --kbq-file-upload-multiple-states-disabled-container-border: hsla(229, 15%, 15%, 32%);
104
+ --kbq-file-upload-multiple-states-disabled-container-background: hsla(229, 15%, 50%, 16%);
105
+ --kbq-file-upload-multiple-states-disabled-upload-icon-color: hsla(229, 15%, 15%, 32%);
106
+ --kbq-file-upload-multiple-states-disabled-left-icon-color: hsla(229, 15%, 15%, 32%);
107
+ --kbq-file-upload-multiple-states-disabled-text-block-color: hsla(229, 15%, 15%, 32%);
108
+ --kbq-file-upload-multiple-states-disabled-grid-divider-color: hsla(229, 15%, 15%, 32%);
109
+ --kbq-form-field-hint-text: hsla(229, 15%, 50%, 100%);
110
+ }
111
+
112
+ :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
113
+ --kbq-file-upload-single-default-container-border: hsla(229, 15%, 30%, 100%);
114
+ --kbq-file-upload-single-default-container-background: hsla(229, 15%, 12%, 100%);
115
+ --kbq-file-upload-single-default-upload-icon-color: hsla(229, 15%, 45%, 100%);
116
+ --kbq-file-upload-single-default-left-icon-color: hsla(229, 15%, 45%, 100%);
117
+ --kbq-file-upload-single-default-text-block-color: hsla(229, 15%, 80%, 100%);
118
+ --kbq-file-upload-single-default-icon-button-color: hsla(229, 15%, 80%, 100%);
119
+ --kbq-file-upload-single-states-on-drag-container-border: hsla(216, 100%, 30%, 100%);
120
+ --kbq-file-upload-single-states-on-drag-container-background: hsla(216, 100%, 20%, 100%);
121
+ --kbq-file-upload-single-states-on-drag-upload-icon-color: hsla(229, 15%, 45%, 100%);
122
+ --kbq-file-upload-single-states-on-drag-left-icon-color: hsla(229, 15%, 45%, 100%);
123
+ --kbq-file-upload-single-states-on-drag-text-block-color: hsla(229, 15%, 80%, 100%);
124
+ --kbq-file-upload-single-states-error-container-border: hsla(7, 97%, 35%, 100%);
125
+ --kbq-file-upload-single-states-error-container-background: hsla(7, 97%, 6%, 100%);
126
+ --kbq-file-upload-single-states-error-left-icon-color: hsla(7, 97%, 60%, 100%);
127
+ --kbq-file-upload-single-states-error-text-block-color: hsla(7, 97%, 60%, 100%);
128
+ --kbq-file-upload-single-states-disabled-container-border: hsla(229, 15%, 50%, 32%);
129
+ --kbq-file-upload-single-states-disabled-container-background: hsla(229, 15%, 50%, 16%);
130
+ --kbq-file-upload-single-states-disabled-upload-icon-color: hsla(229, 15%, 30%, 100%);
131
+ --kbq-file-upload-single-states-disabled-left-icon-color: hsla(229, 15%, 30%, 100%);
132
+ --kbq-file-upload-single-states-disabled-text-block-color: hsla(229, 15%, 40%, 100%);
133
+ --kbq-file-upload-single-states-focused-focus-outline-color: hsla(216, 100%, 60%, 100%);
134
+ --kbq-file-upload-multiple-default-container-border: hsla(229, 15%, 30%, 100%);
135
+ --kbq-file-upload-multiple-default-container-background: hsla(229, 15%, 12%, 100%);
136
+ --kbq-file-upload-multiple-default-upload-icon-color: hsla(229, 15%, 45%, 100%);
137
+ --kbq-file-upload-multiple-default-left-icon-color: hsla(229, 15%, 45%, 100%);
138
+ --kbq-file-upload-multiple-default-text-block-color: hsla(229, 15%, 80%, 100%);
139
+ --kbq-file-upload-multiple-default-icon-button-color: hsla(229, 15%, 80%, 100%);
140
+ --kbq-file-upload-multiple-default-grid-divider-color: hsla(229, 15%, 22%, 100%);
141
+ --kbq-file-upload-multiple-states-on-drag-container-border: hsla(216, 100%, 30%, 100%);
142
+ --kbq-file-upload-multiple-states-on-drag-container-background: hsla(216, 100%, 20%, 100%);
143
+ --kbq-file-upload-multiple-states-on-drag-upload-icon-color: hsla(229, 15%, 45%, 100%);
144
+ --kbq-file-upload-multiple-states-on-drag-left-icon-color: hsla(229, 15%, 45%, 100%);
145
+ --kbq-file-upload-multiple-states-on-drag-icon-button-color: hsla(229, 15%, 80%, 100%);
146
+ --kbq-file-upload-multiple-states-on-drag-text-block-color: hsla(229, 15%, 80%, 100%);
147
+ --kbq-file-upload-multiple-states-on-drag-grid-divider-color: hsla(216, 100%, 30%, 100%);
148
+ --kbq-file-upload-multiple-states-error-grid-cell-background: hsla(7, 97%, 6%, 100%);
149
+ --kbq-file-upload-multiple-states-error-left-icon-color: hsla(7, 97%, 60%, 100%);
150
+ --kbq-file-upload-multiple-states-error-text-block-color: hsla(7, 97%, 60%, 100%);
151
+ --kbq-file-upload-multiple-states-error-icon-button-color: hsla(7, 97%, 60%, 100%);
152
+ --kbq-file-upload-multiple-states-disabled-container-border: hsla(229, 15%, 50%, 32%);
153
+ --kbq-file-upload-multiple-states-disabled-container-background: hsla(229, 15%, 50%, 16%);
154
+ --kbq-file-upload-multiple-states-disabled-upload-icon-color: hsla(229, 15%, 30%, 100%);
155
+ --kbq-file-upload-multiple-states-disabled-left-icon-color: hsla(229, 15%, 30%, 100%);
156
+ --kbq-file-upload-multiple-states-disabled-text-block-color: hsla(229, 15%, 40%, 100%);
157
+ --kbq-file-upload-multiple-states-disabled-grid-divider-color: hsla(229, 15%, 50%, 32%);
158
+ --kbq-form-field-hint-text: hsla(229, 15%, 60%, 100%);
159
+ }
@@ -1,5 +1,4 @@
1
- @use 'sass:meta';
2
- @use 'sass:map';
1
+ @use './file-upload-theme' as *;
3
2
 
4
3
  .kbq-file-upload {
5
4
  box-sizing: border-box;
@@ -31,3 +30,6 @@
31
30
  }
32
31
  }
33
32
  }
33
+
34
+ @include kbq-file-upload-theme();
35
+ @include kbq-file-upload-typography();
@@ -5,107 +5,81 @@
5
5
  @use '../core/styles/typography/typography-utils' as *;
6
6
  @use '../core/styles/common/tokens' as *;
7
7
 
8
- @mixin kbq-form-field-state($component, $state-name) {
9
- $state: map.get($component, $state-name);
10
-
8
+ @mixin kbq-form-field-state($state-name) {
11
9
  .kbq-form-field__container {
12
- border-color: kbq-css-variable(form-field-#{$state-name}-border-color, map.get($state, border));
13
- background-color: kbq-css-variable(form-field-#{$state-name}-background, map.get($state, background));
10
+ border-color: kbq-css-variable(form-field-#{$state-name}-border-color);
11
+ background-color: kbq-css-variable(form-field-#{$state-name}-background);
14
12
  }
15
13
 
16
14
  .kbq-input,
17
15
  .kbq-tag-input,
18
16
  .kbq-textarea {
19
- color: kbq-css-variable(form-field-#{$state-name}-text, map.get($state, text));
17
+ color: kbq-css-variable(form-field-#{$state-name}-text);
20
18
 
21
19
  &::placeholder {
22
- color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
20
+ color: kbq-css-variable(form-field-#{$state-name}-placeholder);
23
21
  }
24
22
 
25
23
  &::-ms-input-placeholder {
26
- color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
24
+ color: kbq-css-variable(form-field-#{$state-name}-placeholder);
27
25
  }
28
26
 
29
27
  &::-webkit-input-placeholder {
30
- color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
28
+ color: kbq-css-variable(form-field-#{$state-name}-placeholder);
31
29
  }
32
30
  }
33
31
  }
34
32
 
35
- @mixin kbq-form-field-theme($theme) {
33
+ @mixin kbq-form-field-theme() {
36
34
  .kbq-form-field {
37
- $form-field: map.get($theme, components, form-field);
38
-
39
- @include kbq-form-field-state($form-field, default);
35
+ @include kbq-form-field-state(default);
40
36
 
41
37
  & .kbq-input {
42
38
  //https://css-tricks.com/almanac/selectors/a/autofill/
43
39
  &:-webkit-autofill,
44
40
  &:-webkit-autofill:hover,
45
41
  &:-webkit-autofill:focus {
46
- -webkit-box-shadow: 0 0 0 40rem
47
- kbq-css-variable(
48
- form-field-states-autofill-background,
49
- map.get($form-field, states-autofill, background)
50
- )
51
- inset;
52
- -webkit-text-fill-color: kbq-css-variable(
53
- form-field-states-autofill-text,
54
- map.get($form-field, states-autofill, text)
55
- );
56
- caret-color: kbq-css-variable(
57
- form-field-states-autofill-text,
58
- map.get($form-field, states-autofill, text)
59
- );
42
+ -webkit-box-shadow: inset 0 0 0 40rem kbq-css-variable(form-field-states-autofill-background);
43
+ -webkit-text-fill-color: kbq-css-variable(form-field-states-autofill-text);
44
+ caret-color: kbq-css-variable(form-field-states-autofill-text);
60
45
  }
61
46
  }
62
47
 
63
48
  &.cdk-focused {
64
- @include kbq-form-field-state($form-field, states-focused);
49
+ @include kbq-form-field-state(states-focused);
65
50
 
66
51
  & .kbq-form-field__container {
67
- box-shadow: 0 0 0.1px 1px
68
- kbq-css-variable(
69
- form-field-states-focused-focus-outline,
70
- map.get($form-field, states-focused, focus-outline)
71
- );
52
+ box-shadow: 0 0 0.1px 1px kbq-css-variable(form-field-states-focused-focus-outline);
72
53
  }
73
54
  }
74
55
 
75
56
  &.kbq-form-field_invalid,
76
57
  &.ng-invalid {
77
- @include kbq-form-field-state($form-field, states-error);
58
+ @include kbq-form-field-state(states-error);
78
59
 
79
60
  &.cdk-focused .kbq-form-field__container {
80
- box-shadow: 0 0 0.1px 1px
81
- kbq-css-variable(
82
- form-field-states-error-focused-focus-outline,
83
- map.get($form-field, states-error, focus-outline)
84
- );
61
+ box-shadow: 0 0 0.1px 1px kbq-css-variable(form-field-states-error-focused-focus-outline);
85
62
  }
86
63
  }
87
64
 
88
65
  &.kbq-disabled {
89
- @include kbq-form-field-state($form-field, states-disabled);
66
+ @include kbq-form-field-state(states-disabled);
90
67
 
91
68
  .kbq-icon {
92
- color: kbq-css-variable(form-field-states-disabled-text, map.get($form-field, states-disabled, text));
93
- -webkit-text-fill-color: kbq-css-variable(
94
- form-field-states-disabled-text,
95
- map.get($form-field, states-disabled, text)
96
- );
69
+ color: kbq-css-variable(form-field-states-disabled-text);
70
+ -webkit-text-fill-color: kbq-css-variable(form-field-states-disabled-text);
97
71
  }
98
72
  }
99
73
  }
100
74
 
101
75
  .kbq-form-field__hint {
102
76
  & > .kbq-hint:not(.kbq-password-hint, .kbq-contrast-fade, .kbq-success, .kbq-warning, .kbq-error) {
103
- color: kbq-css-variable(form-field-hint-text, map.get($theme, components, form-field-hint, text));
77
+ color: kbq-css-variable(form-field-hint-text);
104
78
  }
105
79
  }
106
80
  }
107
81
 
108
- @mixin kbq-form-field-typography($config) {
82
+ @mixin kbq-form-field-typography() {
109
83
  .kbq-form-field {
110
84
  @include kbq-typography-css-variables(form-field, text);
111
85
  }
@@ -5,57 +5,53 @@
5
5
  @use '../core/styles/typography/typography-utils' as *;
6
6
  @use '../core/styles/common/tokens' as *;
7
7
 
8
- @mixin kbq-hint-color($component, $type, $style-name) {
9
- $style: map.get($component, $type, $style-name);
10
-
11
- color: kbq-css-variable(hint-#{$type}-#{$style-name}-text, map.get($style, text));
8
+ @mixin kbq-hint-color($type, $style-name) {
9
+ color: kbq-css-variable(hint-#{$type}-#{$style-name}-text);
12
10
 
13
11
  & .kbq-icon {
14
- color: kbq-css-variable(hint-#{$type}-#{$style-name}-icon, map.get($style, icon)) !important;
12
+ color: kbq-css-variable(hint-#{$type}-#{$style-name}-icon) !important;
15
13
  }
16
14
  }
17
15
 
18
- @mixin kbq-hint-theme($theme) {
19
- $hint: map.get(map.get($theme, components), hint);
20
-
16
+ @mixin kbq-hint-theme() {
21
17
  .kbq-hint {
22
18
  &.kbq-contrast-fade {
23
- @include kbq-hint-color($hint, fill-text-on, fade-contrast);
19
+ @include kbq-hint-color(fill-text-on, fade-contrast);
24
20
  }
25
21
 
26
22
  &.kbq-success {
27
- @include kbq-hint-color($hint, fill-text-on, success);
23
+ @include kbq-hint-color(fill-text-on, success);
28
24
  }
29
25
 
30
26
  &.kbq-warning {
31
- @include kbq-hint-color($hint, fill-text-on, warning);
27
+ @include kbq-hint-color(fill-text-on, warning);
32
28
  }
33
29
 
34
30
  &.kbq-error {
35
- @include kbq-hint-color($hint, fill-text-on, error);
31
+ @include kbq-hint-color(fill-text-on, error);
36
32
  }
37
33
  }
38
34
 
39
35
  .kbq-hint.kbq-hint_fill-text-off {
40
36
  &.kbq-contrast-fade {
41
- @include kbq-hint-color($hint, fill-text-off, fade-contrast);
37
+ @include kbq-hint-color(fill-text-off, fade-contrast);
42
38
  }
43
39
 
44
40
  &.kbq-success {
45
- @include kbq-hint-color($hint, fill-text-off, success);
41
+ @include kbq-hint-color(fill-text-off, success);
46
42
  }
47
43
 
48
44
  &.kbq-warning {
49
- @include kbq-hint-color($hint, fill-text-off, warning);
45
+ @include kbq-hint-color(fill-text-off, warning);
50
46
  }
51
47
 
52
48
  &.kbq-error {
53
- @include kbq-hint-color($hint, fill-text-off, error);
49
+ @include kbq-hint-color(fill-text-off, error);
54
50
  }
55
51
  }
56
52
  }
57
53
 
58
- @mixin kbq-hint-typography($config) {
54
+ @mixin kbq-hint-typography() {
59
55
  .kbq-hint .kbq-hint__text {
60
56
  @include kbq-typography-css-variables(hint, normal-text);
61
57
  }