@koobiq/components 17.0.0-rc.5 → 17.0.0-rc.7

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 (220) hide show
  1. package/alert/_alert-theme.scss +19 -21
  2. package/alert/alert.component.scss +39 -41
  3. package/autocomplete/_autocomplete-theme.scss +3 -2
  4. package/autocomplete/autocomplete.scss +7 -14
  5. package/badge/_badge-theme.scss +31 -45
  6. package/badge/badge.component.scss +15 -35
  7. package/button/_button-base.scss +7 -13
  8. package/button/_button-theme.scss +29 -85
  9. package/button/button.component.d.ts +3 -2
  10. package/button/button.scss +7 -16
  11. package/button-toggle/_button-toggle-theme.scss +18 -18
  12. package/button-toggle/button-toggle.scss +9 -32
  13. package/card/_card-theme.scss +19 -17
  14. package/card/card.component.scss +2 -4
  15. package/checkbox/_checkbox-theme.scss +44 -43
  16. package/checkbox/checkbox.scss +13 -18
  17. package/code-block/README.md +1 -0
  18. package/code-block/_code-block-theme.scss +27 -26
  19. package/code-block/actionbar.component.scss +7 -18
  20. package/code-block/code-block.scss +29 -65
  21. package/core/forms/_forms-theme.scss +4 -7
  22. package/core/forms/_forms.scss +13 -42
  23. package/core/option/_optgroup-theme.scss +4 -5
  24. package/core/option/_option-action-theme.scss +7 -7
  25. package/core/option/_option-theme.scss +16 -20
  26. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -19
  27. package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
  28. package/core/styles/common/_groups.scss +3 -5
  29. package/core/styles/common/_list.scss +14 -18
  30. package/core/styles/common/_popup.scss +5 -4
  31. package/core/styles/common/_select.scss +11 -16
  32. package/core/styles/common/_tokens.scss +30 -9
  33. package/core/styles/theming/_components-theming.scss +151 -131
  34. package/core/styles/visual/_layout.scss +14 -16
  35. package/datepicker/_datepicker-theme.scss +24 -39
  36. package/datepicker/calendar-body.scss +3 -8
  37. package/datepicker/calendar-header.scss +4 -9
  38. package/datepicker/calendar.scss +5 -16
  39. package/datepicker/datepicker-content.scss +4 -12
  40. package/datepicker/datepicker-input.scss +0 -4
  41. package/datepicker/datepicker-toggle.scss +3 -2
  42. package/divider/_divider-theme.scss +3 -1
  43. package/divider/divider.scss +9 -25
  44. package/dl/_dl-theme.scss +5 -6
  45. package/dl/dl.scss +5 -19
  46. package/dropdown/_dropdown-theme.scss +28 -22
  47. package/dropdown/dropdown-item.scss +3 -11
  48. package/dropdown/dropdown.scss +6 -14
  49. package/esm2022/alert/alert.component.mjs +2 -2
  50. package/esm2022/button/button.component.mjs +13 -6
  51. package/esm2022/code-block/actionbar.component.mjs +2 -2
  52. package/esm2022/code-block/code-block.component.mjs +2 -2
  53. package/esm2022/core/version.mjs +2 -2
  54. package/esm2022/datepicker/datepicker-animations.mjs +2 -2
  55. package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
  56. package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
  57. package/esm2022/form-field/form-field.mjs +2 -2
  58. package/esm2022/icon/icon-item.component.mjs +16 -6
  59. package/esm2022/input/input-number.mjs +2 -2
  60. package/esm2022/markdown/markdown.component.mjs +2 -2
  61. package/esm2022/modal/modal.component.mjs +4 -4
  62. package/esm2022/navbar/navbar-item.component.mjs +2 -2
  63. package/esm2022/navbar/navbar.component.mjs +2 -2
  64. package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
  65. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  66. package/esm2022/popover/popover.component.mjs +3 -3
  67. package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
  68. package/esm2022/select/select.component.mjs +4 -4
  69. package/esm2022/splitter/splitter.component.mjs +2 -2
  70. package/esm2022/tabs/tab-body.component.mjs +1 -1
  71. package/esm2022/tabs/tab-group.component.mjs +4 -4
  72. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  73. package/esm2022/tags/tag.component.mjs +2 -2
  74. package/esm2022/timepicker/timepicker.directive.mjs +11 -3
  75. package/esm2022/timezone/timezone-select.component.mjs +2 -2
  76. package/esm2022/title/title.directive.mjs +2 -2
  77. package/esm2022/toast/toast.component.mjs +3 -3
  78. package/esm2022/tree/tree-base.mjs +2 -2
  79. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  80. package/fesm2022/koobiq-components-alert.mjs +2 -2
  81. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  82. package/fesm2022/koobiq-components-button.mjs +12 -5
  83. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  84. package/fesm2022/koobiq-components-code-block.mjs +4 -4
  85. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  86. package/fesm2022/koobiq-components-core.mjs +1 -1
  87. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  88. package/fesm2022/koobiq-components-datepicker.mjs +1 -1
  89. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  90. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  91. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  92. package/fesm2022/koobiq-components-form-field.mjs +2 -2
  93. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  94. package/fesm2022/koobiq-components-icon.mjs +14 -4
  95. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  96. package/fesm2022/koobiq-components-input.mjs +1 -1
  97. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  98. package/fesm2022/koobiq-components-markdown.mjs +2 -2
  99. package/fesm2022/koobiq-components-modal.mjs +3 -3
  100. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  101. package/fesm2022/koobiq-components-navbar.mjs +6 -6
  102. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  103. package/fesm2022/koobiq-components-popover.mjs +4 -4
  104. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  105. package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
  106. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  107. package/fesm2022/koobiq-components-select.mjs +3 -3
  108. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  109. package/fesm2022/koobiq-components-splitter.mjs +1 -1
  110. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  111. package/fesm2022/koobiq-components-tabs.mjs +5 -5
  112. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  113. package/fesm2022/koobiq-components-tags.mjs +1 -1
  114. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  115. package/fesm2022/koobiq-components-timepicker.mjs +10 -2
  116. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  117. package/fesm2022/koobiq-components-timezone.mjs +2 -2
  118. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  119. package/fesm2022/koobiq-components-title.mjs +1 -1
  120. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  121. package/fesm2022/koobiq-components-toast.mjs +2 -2
  122. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  123. package/fesm2022/koobiq-components-tree-select.mjs +2 -2
  124. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  125. package/fesm2022/koobiq-components-tree.mjs +1 -1
  126. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  127. package/file-upload/_file-upload-theme.scss +109 -68
  128. package/file-upload/file-upload.scss +0 -5
  129. package/file-upload/multiple-file-upload.component.scss +32 -98
  130. package/file-upload/single-file-upload.component.scss +12 -31
  131. package/form-field/_form-field-theme.scss +32 -34
  132. package/form-field/_hint-theme.scss +16 -19
  133. package/form-field/cleaner.scss +3 -8
  134. package/form-field/form-field.scss +11 -12
  135. package/form-field/hint.scss +3 -7
  136. package/form-field/password-toggle.scss +3 -9
  137. package/form-field/stepper.scss +4 -10
  138. package/icon/_icon-button-theme.scss +35 -35
  139. package/icon/_icon-item-theme.scss +46 -31
  140. package/icon/_icon-theme.scss +9 -15
  141. package/icon/icon-button.scss +5 -17
  142. package/icon/icon-item.component.d.ts +3 -1
  143. package/icon/icon-item.scss +12 -7
  144. package/icon/icon.scss +0 -5
  145. package/input/_input-theme.scss +2 -3
  146. package/input/input.scss +2 -1
  147. package/link/_link-theme.scss +25 -42
  148. package/list/_list-theme.scss +22 -19
  149. package/list/list.scss +0 -4
  150. package/loader-overlay/_loader-overlay-theme.scss +13 -16
  151. package/loader-overlay/loader-overlay.scss +9 -32
  152. package/markdown/_markdown-theme.scss +41 -44
  153. package/markdown/markdown.scss +38 -88
  154. package/modal/_modal-confirm.scss +2 -6
  155. package/modal/_modal-theme.scss +11 -12
  156. package/modal/modal.component.d.ts +1 -1
  157. package/modal/modal.scss +19 -25
  158. package/navbar/_navbar-item_horizontal.scss +24 -27
  159. package/navbar/_navbar-item_vertical.scss +28 -27
  160. package/navbar/_navbar-theme.scss +21 -22
  161. package/navbar/navbar-brand.scss +24 -26
  162. package/navbar/navbar-divider.scss +4 -7
  163. package/navbar/navbar-item.scss +5 -13
  164. package/navbar/navbar.scss +2 -5
  165. package/navbar/vertical-navbar.scss +3 -5
  166. package/package.json +9 -9
  167. package/popover/README.md +1 -0
  168. package/popover/_popover-theme.scss +9 -16
  169. package/popover/popover.scss +18 -24
  170. package/prebuilt-themes/dark-theme.css +1 -1
  171. package/prebuilt-themes/light-theme.css +1 -1
  172. package/progress-bar/_progress-bar-theme.scss +7 -10
  173. package/progress-bar/progress-bar.scss +6 -18
  174. package/progress-spinner/_progress-spinner-theme.scss +6 -7
  175. package/progress-spinner/progress-spinner.scss +8 -17
  176. package/radio/_radio-theme.scss +29 -37
  177. package/radio/radio.scss +17 -38
  178. package/risk-level/_risk-level-theme.scss +25 -30
  179. package/risk-level/risk-level.component.scss +5 -8
  180. package/schematics/ng-add/index.js +6 -6
  181. package/scrollbar/_scrollbar-component-theme.scss +14 -17
  182. package/scrollbar/scrollbar.component.scss +7 -20
  183. package/select/_select-theme.scss +14 -15
  184. package/select/select.scss +3 -10
  185. package/sidepanel/_sidepanel-theme.scss +8 -9
  186. package/sidepanel/sidepanel.scss +19 -30
  187. package/splitter/_splitter-theme.scss +3 -3
  188. package/table/_table-theme.scss +9 -8
  189. package/table/table.scss +12 -12
  190. package/tabs/_tabs-common.scss +4 -7
  191. package/tabs/_tabs-theme.scss +77 -44
  192. package/tabs/tab-body.component.d.ts +1 -1
  193. package/tabs/tab-group.scss +2 -7
  194. package/tabs/tab-header.scss +0 -4
  195. package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -8
  196. package/tags/_tag-theme.scss +23 -26
  197. package/tags/tag-list.scss +6 -5
  198. package/tags/tag.component.d.ts +1 -1
  199. package/tags/tag.scss +6 -9
  200. package/textarea/_textarea-theme.scss +2 -4
  201. package/textarea/textarea.scss +6 -8
  202. package/timepicker/timepicker.directive.d.ts +1 -1
  203. package/timepicker/timepicker.scss +2 -7
  204. package/timezone/_timezone-option-theme.scss +8 -9
  205. package/timezone/timezone-option.component.scss +5 -7
  206. package/timezone/timezone-select.component.scss +2 -3
  207. package/toast/_toast-theme.scss +15 -14
  208. package/toast/toast-container.component.scss +4 -7
  209. package/toast/toast.component.scss +20 -25
  210. package/toggle/_toggle-theme.scss +48 -42
  211. package/toggle/toggle.scss +9 -21
  212. package/tooltip/_tooltip-theme.scss +13 -16
  213. package/tooltip/tooltip.scss +8 -10
  214. package/tree/_tree-theme.scss +20 -22
  215. package/tree/toggle.scss +3 -5
  216. package/tree/tree-base.d.ts +1 -1
  217. package/tree/tree-option.scss +5 -6
  218. package/tree-select/_tree-select-theme.scss +11 -13
  219. package/tree-select/tree-select.scss +0 -4
  220. package/core/styles/_variables.scss +0 -1
@@ -3,46 +3,41 @@
3
3
 
4
4
  @use '../core/styles/theming/theming' as *;
5
5
  @use '../core/styles/typography/typography-utils' as *;
6
+ @use '../core/styles/common/tokens' as *;
6
7
 
7
8
 
8
- @mixin kbq-form-field-state($state) {
9
+ @mixin kbq-form-field-state($component, $state-name) {
10
+ $state: map.get($component, $state-name);
11
+
9
12
  .kbq-form-field__container {
10
- border-color: map.get($state, border);
11
- background-color: map.get($state, background);
13
+ border-color: kbq-css-variable(form-field-#{$state-name}-border, map.get($state, border));
14
+ background-color: kbq-css-variable(form-field-#{$state-name}-background, map.get($state, background));
12
15
  }
13
16
 
14
17
  .kbq-input,
15
18
  .kbq-tag-input,
16
19
  .kbq-textarea {
17
- color: map.get($state, text);
20
+ color: kbq-css-variable(form-field-#{$state-name}-text, map.get($state, text));
18
21
 
19
22
  &::placeholder {
20
- color: map.get($state, placeholder);
23
+ color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
21
24
  }
22
25
 
23
26
  &::-ms-input-placeholder {
24
- color: map.get($state, placeholder);
27
+ color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
25
28
  }
26
29
 
27
30
  &::-webkit-input-placeholder {
28
- color: map.get($state, placeholder);
31
+ color: kbq-css-variable(form-field-#{$state-name}-placeholder, map.get($state, placeholder));
29
32
  }
30
33
  }
31
34
  }
32
35
 
33
36
  @mixin kbq-form-field-theme($theme) {
34
- $foreground: map.get($theme, foreground);
35
-
36
37
  .kbq-form-field {
37
- $form-field: map.get(map.get($theme, components), form-field);
38
-
39
- $default: map.get($form-field, default);
40
- $autofill: map.get($form-field, autofill);
41
- $error: map.get($form-field, error);
42
- $focused: map.get($form-field, focused);
43
- $disabled: map.get($form-field, disabled);
38
+ $form-field: map.get($theme, components, form-field);
44
39
 
45
- @include kbq-form-field-state($default);
40
+ @include kbq-form-field-state($form-field, default);
46
41
 
47
42
  /* stylelint-disable no-descending-specificity */
48
43
  & .kbq-input {
@@ -50,35 +45,42 @@
50
45
  &:-webkit-autofill,
51
46
  &:-webkit-autofill:hover,
52
47
  &:-webkit-autofill:focus {
53
- -webkit-box-shadow: 0 0 0 40rem map.get($autofill, background) inset;
54
- -webkit-text-fill-color: map.get($autofill, text);
55
- caret-color: map-get($autofill, text);
48
+ -webkit-box-shadow: 0 0 0 40rem kbq-css-variable(
49
+ form-field-states-autofill-background, map.get($form-field, states-autofill, background)) inset;
50
+ -webkit-text-fill-color: kbq-css-variable(
51
+ form-field-states-autofill-text, map.get($form-field, states-autofill, text));
52
+ caret-color: kbq-css-variable(
53
+ form-field-states-autofill-text, map.get($form-field, states-autofill, text));
56
54
  }
57
55
  }
58
56
 
59
57
  &.cdk-focused {
60
- @include kbq-form-field-state($focused);
58
+ @include kbq-form-field-state($form-field, states-focused);
61
59
 
62
60
  & .kbq-form-field__container {
63
- box-shadow: 0 0 0 1px map.get($focused, focus-outline);
61
+ box-shadow: 0 0 0 1px kbq-css-variable(
62
+ form-field-states-focused-focu-outline, map.get($form-field, states-focused, focus-outline));
64
63
  }
65
64
  }
66
65
 
67
66
  &.kbq-form-field_invalid,
68
67
  &.ng-invalid {
69
- @include kbq-form-field-state($error);
68
+ @include kbq-form-field-state($form-field, states-error);
70
69
 
71
70
  &.cdk-focused .kbq-form-field__container {
72
- box-shadow: 0 0 0 1px map.get($error, focus-outline);
71
+ box-shadow: 0 0 0 1px kbq-css-variable(
72
+ form-field-states-error-focu-outline, map.get($form-field, states-error, focus-outline));
73
73
  }
74
74
  }
75
75
 
76
76
  &.kbq-disabled {
77
- @include kbq-form-field-state($disabled);
77
+ @include kbq-form-field-state($form-field, states-disabled);
78
78
 
79
79
  .kbq-icon {
80
- color: map.get($disabled, text);
81
- -webkit-text-fill-color: map.get($disabled, text);
80
+ color: kbq-css-variable(form-field-disabled-text, map.get($form-field, disabled, text));
81
+ -webkit-text-fill-color: kbq-css-variable(
82
+ form-field-disabled-text, map.get($form-field, disabled, text)
83
+ );
82
84
  }
83
85
  }
84
86
  /* stylelint-enable no-descending-specificity */
@@ -86,21 +88,17 @@
86
88
 
87
89
  .kbq-form-field__hint {
88
90
  & > .kbq-hint:not(.kbq-password-hint, .kbq-contrast-fade, .kbq-success, .kbq-warning, .kbq-error) {
89
- $form-field-hint: map.get(map.get($theme, components), form-field-hint);
90
-
91
- color: map.get($form-field-hint, text);
91
+ color: kbq-css-variable(form-field-hint-text, map.get($theme, components, form-field-hint, text));
92
92
  }
93
93
  }
94
94
  }
95
95
 
96
96
  @mixin kbq-form-field-typography($config) {
97
- $tokens: map.get($config, tokens);
98
-
99
97
  .kbq-form-field {
100
- @include kbq-typography-level-to-styles($config, map.get($tokens, form-field-font-text));
98
+ @include kbq-typography-css-variables(form-field, text);
101
99
  }
102
100
 
103
101
  .kbq-form-field__hint > .kbq-hint:not(.kbq-password-hint) .kbq-hint__text {
104
- @include kbq-typography-level-to-styles($config, map.get($tokens, form-field-hint-font-text));
102
+ @include kbq-typography-css-variables(form-field-hint, text);
105
103
  }
106
104
  }
@@ -3,13 +3,16 @@
3
3
 
4
4
  @use '../core/styles/theming/theming' as *;
5
5
  @use '../core/styles/typography/typography-utils' as *;
6
+ @use '../core/styles/common/tokens' as *;
6
7
 
7
8
 
8
- @mixin kbq-hint-color($hint) {
9
- color: map.get($hint, text);
9
+ @mixin kbq-hint-color($component, $type, $style-name) {
10
+ $style: map.get($component, $type, $style-name);
11
+
12
+ color: kbq-css-variable(hint-#{$type}-#{$style-name}-text, map.get($style, text));
10
13
 
11
14
  & .kbq-icon {
12
- color: map.get($hint, icon) !important;
15
+ color: kbq-css-variable(hint-#{$type}-#{$style-name}-icon, map.get($style, icon)) !important;
13
16
  }
14
17
  }
15
18
 
@@ -18,54 +21,48 @@
18
21
  $hint: map.get(map.get($theme, components), hint);
19
22
 
20
23
  .kbq-hint {
21
- $fill-text-on: map.get($hint, fill-text-on);
22
-
23
24
  &.kbq-contrast-fade {
24
- @include kbq-hint-color(map.get($fill-text-on, fade-contrast));
25
+ @include kbq-hint-color($hint, fill-text-on, fade-contrast);
25
26
  }
26
27
 
27
28
  &.kbq-success {
28
- @include kbq-hint-color(map.get($fill-text-on, success));
29
+ @include kbq-hint-color($hint, fill-text-on, success);
29
30
  }
30
31
 
31
32
  &.kbq-warning {
32
- @include kbq-hint-color(map.get($fill-text-on, warning));
33
+ @include kbq-hint-color($hint, fill-text-on, warning);
33
34
  }
34
35
 
35
36
  &.kbq-error {
36
- @include kbq-hint-color(map.get($fill-text-on, error));
37
+ @include kbq-hint-color($hint, fill-text-on, error);
37
38
  }
38
39
  }
39
40
 
40
41
  .kbq-hint.kbq-hint_fill-text-off {
41
- $fill-text-off: map.get($hint, fill-text-off);
42
-
43
42
  &.kbq-contrast-fade {
44
- @include kbq-hint-color(map.get($fill-text-off, fade-contrast));
43
+ @include kbq-hint-color($hint, fill-text-off, fade-contrast);
45
44
  }
46
45
 
47
46
  &.kbq-success {
48
- @include kbq-hint-color(map.get($fill-text-off, success));
47
+ @include kbq-hint-color($hint, fill-text-off, success);
49
48
  }
50
49
 
51
50
  &.kbq-warning {
52
- @include kbq-hint-color(map.get($fill-text-off, warning));
51
+ @include kbq-hint-color($hint, fill-text-off, warning);
53
52
  }
54
53
 
55
54
  &.kbq-error {
56
- @include kbq-hint-color(map.get($fill-text-off, error));
55
+ @include kbq-hint-color($hint, fill-text-off, error);
57
56
  }
58
57
  }
59
58
  }
60
59
 
61
60
  @mixin kbq-hint-typography($config) {
62
- $tokens: map.get($config, tokens);
63
-
64
61
  .kbq-hint .kbq-hint__text {
65
- @include kbq-typography-level-to-styles($config, map.get($tokens, hint-font-normal-text));
62
+ @include kbq-typography-css-variables(hint, normal-text);
66
63
  }
67
64
 
68
65
  .kbq-hint.kbq-hint_compact .kbq-hint__text {
69
- @include kbq-typography-level-to-styles($config, map.get($tokens, hint-font-compact-text));
66
+ @include kbq-typography-css-variables(hint, compact-text);
70
67
  }
71
68
  }
@@ -1,21 +1,16 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
4
+ @use '../core/styles/common/tokens' as *;
5
5
 
6
6
 
7
- $tokens: meta.module-variables(tokens) !default;
8
-
9
7
  .kbq-cleaner {
10
8
  display: flex;
11
9
  align-items: center;
12
10
  justify-content: center;
13
11
 
14
- width: var(--kbq-form-field-size-icon-button-size, map.get($tokens, form-field-size-icon-button-size));
15
- margin-right: var(
16
- --kbq-form-field-size-icon-button-margin-right,
17
- map.get($tokens, form-field-size-icon-button-margin-right)
18
- );
12
+ width: kbq-css-variable(form-field-size-icon-button-size);
13
+ margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
19
14
  height: 100%;
20
15
 
21
16
  cursor: pointer;
@@ -4,6 +4,7 @@
4
4
  @use '../core/forms/forms';
5
5
 
6
6
  @use '../core/styles/tokens';
7
+ @use '../core/styles/common/tokens' as *;
7
8
 
8
9
 
9
10
  $tokens: meta.module-variables(tokens) !default;
@@ -20,13 +21,13 @@ $tokens: meta.module-variables(tokens) !default;
20
21
  }
21
22
 
22
23
  .kbq-form-field:not(.kbq-form-field-type-textarea) {
23
- height: var(--kbq-form-field-size-height, map.get($tokens, form-field-size-height));
24
+ height: kbq-css-variable(form-field-size-height);
24
25
  }
25
26
 
26
27
  &,
27
28
  .kbq-input,
28
29
  .kbq-textarea {
29
- border-radius: var(--kbq-form-field-size-border-radius, map.get($tokens, form-field-size-border-radius));
30
+ border-radius: kbq-css-variable(form-field-size-border-radius);
30
31
  }
31
32
 
32
33
  &:hover {
@@ -72,17 +73,17 @@ $tokens: meta.module-variables(tokens) !default;
72
73
  }
73
74
 
74
75
  & + .kbq-password-hint {
75
- margin-top: var(--kbq-size-m, map.get($tokens, size-m));
76
+ margin-top: kbq-css-variable(size-m);
76
77
  }
77
78
  }
78
79
 
79
80
  .kbq-form-field__container {
80
81
  position: relative;
81
82
 
82
- border-width: var(--kbq-form-field-size-border-width, map.get($tokens, form-field-size-border-width));
83
+ border-width: kbq-css-variable(form-field-size-border-width);
83
84
  border-style: solid;
84
85
  border-color: transparent;
85
- border-radius: var(--kbq-form-field-size-border-radius, map.get($tokens, form-field-size-border-radius));
86
+ border-radius: kbq-css-variable(form-field-size-border-radius);
86
87
  }
87
88
 
88
89
  .kbq-form-field__prefix,
@@ -122,12 +123,12 @@ $tokens: meta.module-variables(tokens) !default;
122
123
  justify-content: center;
123
124
  align-items: center;
124
125
 
125
- width: var(--kbq-form-field-size-button-width, map.get($tokens, form-field-size-button-width));
126
+ width: kbq-css-variable(form-field-size-button-width);
126
127
 
127
128
  .kbq-stepper-step-up,
128
129
  .kbq-stepper-step-down {
129
130
  cursor: pointer;
130
- width: var(--kbq-form-field-size-button-width, map.get($tokens, form-field-size-button-width));
131
+ width: kbq-css-variable(form-field-size-button-width);
131
132
  text-align: center;
132
133
  }
133
134
 
@@ -139,16 +140,14 @@ $tokens: meta.module-variables(tokens) !default;
139
140
  .kbq-form-field__hint {
140
141
  display: flex;
141
142
  flex-direction: column;
142
- margin-top: var(--kbq-form-field-hint-size-margin-top, map.get($tokens, form-field-hint-size-margin-top));
143
+ margin-top: kbq-css-variable(form-field-hint-size-margin-top);
143
144
 
144
145
  & .kbq-password-hint:first-child {
145
- margin-top: var(--kbq-size-s, map.get($tokens, size-s));
146
+ margin-top: kbq-css-variable(size-s);
146
147
  }
147
148
  }
148
149
 
149
150
  .kbq-password-hint {
150
- margin-top: var(--kbq-form-field-hint-size-gap, map.get($tokens, form-field-hint-size-gap));
151
+ margin-top: kbq-css-variable(form-field-hint-size-gap);
151
152
  }
152
-
153
-
154
153
  /* stylelint-enable no-descending-specificity */
@@ -1,23 +1,19 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
4
+ @use '../core/styles/common/tokens' as *;
5
5
 
6
6
 
7
- $tokens: meta.module-variables(tokens) !default;
8
-
9
7
  .kbq-hint {
10
8
  display: flex;
11
9
 
12
10
  & .kbq-icon {
13
- margin-right: var(--kbq-hint-size-normal-content-padding, map-get($tokens, hint-size-normal-content-padding));
11
+ margin-right: kbq-css-variable(hint-size-normal-content-padding);
14
12
  }
15
13
 
16
14
  &.kbq-hint_compact {
17
15
  & .kbq-icon {
18
- margin-right: var(
19
- --kbq-hint-size-compact-content-padding, map-get($tokens, hint-size-compact-content-padding)
20
- );
16
+ margin-right: kbq-css-variable(hint-size-compact-content-padding);
21
17
  }
22
18
  }
23
19
  }
@@ -1,10 +1,7 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
5
-
6
-
7
- $tokens: meta.module-variables(tokens) !default;
4
+ @use '../core/styles/common/tokens' as *;
8
5
 
9
6
 
10
7
  .kbq-password-toggle {
@@ -12,11 +9,8 @@ $tokens: meta.module-variables(tokens) !default;
12
9
  align-items: center;
13
10
  justify-content: center;
14
11
 
15
- width: var(--kbq-form-field-size-icon-button-size, map.get($tokens, form-field-size-icon-button-size));
16
- margin-right: var(
17
- --kbq-form-field-size-icon-button-margin-right,
18
- map.get($tokens, form-field-size-icon-button-margin-right)
19
- );
12
+ width: kbq-css-variable(form-field-size-icon-button-size);
13
+ margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
20
14
  height: 100%;
21
15
 
22
16
  &::-moz-focus-inner {
@@ -1,10 +1,7 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
5
-
6
-
7
- $tokens: meta.module-variables(tokens) !default;
4
+ @use '../core/styles/common/tokens' as *;
8
5
 
9
6
 
10
7
  .kbq-stepper {
@@ -13,17 +10,14 @@ $tokens: meta.module-variables(tokens) !default;
13
10
  justify-content: center;
14
11
  align-items: center;
15
12
 
16
- width: var(--kbq-form-field-size-icon-button-size, map.get($tokens, form-field-size-icon-button-size));
17
- margin-right: var(
18
- --kbq-form-field-size-icon-button-margin-right,
19
- map.get($tokens, form-field-size-icon-button-margin-right)
20
- );
13
+ width: kbq-css-variable(form-field-size-icon-button-size);
14
+ margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
21
15
  height: 100%;
22
16
 
23
17
  .kbq-stepper-step-up,
24
18
  .kbq-stepper-step-down {
25
19
  cursor: pointer;
26
- width: var(--kbq-form-field-size-button-width, map.get($tokens, form-field-size-button-width));
20
+ width: kbq-css-variable(form-field-size-button-width);
27
21
  text-align: center;
28
22
  }
29
23
 
@@ -1,17 +1,11 @@
1
1
  @use 'sass:map';
2
2
 
3
3
  @use '../core/styles/theming/theming' as *;
4
+ @use '../core/styles/common/tokens' as *;
4
5
 
5
6
 
6
- @mixin kbq-icon-button-theme($themeObj) {
7
- $icon-button: map.get(map.get($themeObj, components), icon-button);
8
-
9
- $theme: map.get($icon-button, theme);
10
- $contrast: map.get($icon-button, contrast);
11
- $fade-contrast: map.get($icon-button, fade-contrast);
12
- $error: map.get($icon-button, error);
13
- $success: map.get($icon-button, success);
14
- $warning: map.get($icon-button, warning);
7
+ @mixin kbq-icon-button-theme($theme) {
8
+ $icon-button: map.get($theme, components, icon-button);
15
9
 
16
10
  .kbq-icon-button {
17
11
  &:focus {
@@ -19,111 +13,117 @@
19
13
  }
20
14
 
21
15
  &.kbq-theme {
22
- color: map.get($theme, default);
16
+ color: kbq-css-variable(icon-button-heme-default, map.get($icon-button, theme, default));
23
17
 
24
18
  &:active,
25
19
  &.kbq-active {
26
- color: map.get($theme, state-active);
20
+ color: kbq-css-variable(icon-button-heme-state-active, map.get($icon-button, theme, state-active));
27
21
  }
28
22
 
29
23
  &:not(.kbq-disabled):hover {
30
- color: map.get($theme, state-hover);
24
+ color: kbq-css-variable(icon-button-heme-state-hover, map.get($icon-button, theme, state-hover));
31
25
  }
32
26
 
33
27
  &.kbq-disabled {
34
- color: map.get($theme, state-disabled);
28
+ color: kbq-css-variable(icon-button-heme-state-disabled, map.get($icon-button, theme, state-disabled));
35
29
  }
36
30
  }
37
31
 
38
32
  &.kbq-contrast {
39
- color: map.get($contrast, default);
33
+ color: kbq-css-variable(icon-button-ontrast-default, map.get($icon-button, contrast, default));
40
34
 
41
35
  &:active,
42
36
  &.kbq-active {
43
- color: map.get($contrast, state-active);
37
+ color: kbq-css-variable(
38
+ icon-button-ontrast-state-active, map.get($icon-button, contrast, state-active));
44
39
  }
45
40
 
46
41
  &:not(.kbq-disabled):hover {
47
- color: map.get($contrast, state-hover);
42
+ color: kbq-css-variable(icon-button-ontrast-state-hover, map.get($icon-button, contrast, state-hover));
48
43
  }
49
44
 
50
45
  &.kbq-disabled {
51
- color: map.get($contrast, state-disabled);
46
+ color: kbq-css-variable(
47
+ icon-button-ontrast-state-disabled, map.get($icon-button, contrast, state-disabled));
52
48
  }
53
49
  }
54
50
 
55
51
  &.kbq-contrast-fade {
56
- color: map.get($fade-contrast, default);
52
+ color: kbq-css-variable(icon-button-ade-contrast-default, map.get($icon-button, fade-contrast, default));
57
53
 
58
54
  &:active,
59
55
  &.kbq-active {
60
- color: map.get($fade-contrast, state-active);
56
+ color: kbq-css-variable(
57
+ icon-button-ade-contrast-state-active, map.get($icon-button, fade-contrast, state-active));
61
58
  }
62
59
 
63
60
  &:not(.kbq-disabled):hover {
64
- color: map.get($fade-contrast, state-hover);
61
+ color: kbq-css-variable(
62
+ icon-button-ade-contrast-state-hover, map.get($icon-button, fade-contrast, state-hover));
65
63
  }
66
64
 
67
65
  &.kbq-disabled {
68
- color: map.get($fade-contrast, state-disabled);
66
+ color: kbq-css-variable(
67
+ icon-button-ade-contrast-state-disabled, map.get($icon-button, fade-contrast, state-disabled));
69
68
  }
70
69
  }
71
70
 
72
71
  &.kbq-error {
73
- color: map.get($error, default);
72
+ color: kbq-css-variable(icon-button-rror-default, map.get($icon-button, error, default));
74
73
 
75
74
  &:active,
76
75
  &.kbq-active {
77
- color: map.get($error, state-active);
76
+ color: kbq-css-variable(icon-button-rror-state-active, map.get($icon-button, error, state-active));
78
77
  }
79
78
 
80
79
  &:not(.kbq-disabled):hover {
81
- color: map.get($error, state-hover);
80
+ color: kbq-css-variable(icon-button-rror-state-hover, map.get($icon-button, error, state-hover));
82
81
  }
83
82
 
84
83
  &.kbq-disabled {
85
- color: map.get($error, state-disabled);
84
+ color: kbq-css-variable(icon-button-rror-state-disabled, map.get($icon-button, error, state-disabled));
86
85
  }
87
86
  }
88
87
 
89
88
  &.kbq-success {
90
- color: map.get($success, default);
89
+ color: kbq-css-variable(icon-button-uccess-default, map.get($icon-button, success, default));
91
90
 
92
91
  &:active,
93
92
  &.kbq-active {
94
- color: map.get($success, state-active);
93
+ color: kbq-css-variable(icon-button-uccess-state-active, map.get($icon-button, success, state-active));
95
94
  }
96
95
 
97
96
  &:not(.kbq-disabled):hover {
98
- color: map.get($success, state-hover);
97
+ color: kbq-css-variable(icon-button-uccess-state-hover, map.get($icon-button, success, state-hover));
99
98
  }
100
99
 
101
100
  &.kbq-disabled {
102
- color: map.get($success, state-disabled);
101
+ color: kbq-css-variable(
102
+ icon-button-uccess-state-disabled, map.get($icon-button, success, state-disabled));
103
103
  }
104
104
  }
105
105
 
106
106
  &.kbq-warning {
107
- color: map.get($warning, default);
107
+ color: kbq-css-variable(icon-button-default, map.get($icon-button, default));
108
108
 
109
109
  &:active,
110
110
  &.kbq-active {
111
- color: map.get($warning, state-active);
111
+ color: kbq-css-variable(icon-button-state-active, map.get($icon-button, state-active));
112
112
  }
113
113
 
114
114
  &:not(.kbq-disabled):hover {
115
- color: map.get($warning, state-hover);
115
+ color: kbq-css-variable(icon-button-state-hover, map.get($icon-button, state-hover));
116
116
  }
117
117
 
118
118
  &.kbq-disabled {
119
- color: map.get($warning, state-disabled);
119
+ color: kbq-css-variable(icon-button-state-disabled, map.get($icon-button, state-disabled));
120
120
  }
121
121
  }
122
122
 
123
123
  &.cdk-keyboard-focused {
124
124
  box-shadow:
125
- inset 0 0 0 1px map.get(map.get($themeObj, states), focused-color),
126
- 0 0 0 1px map.get(map.get($themeObj, states), focused-color);
125
+ inset 0 0 0 1px map.get($theme, states, focused-color),
126
+ 0 0 0 1px map.get($theme, states, focused-color);
127
127
  }
128
128
  }
129
129
  }