@koobiq/components 17.0.0-rc.6 → 17.0.0-rc.8

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 (256) hide show
  1. package/alert/_alert-theme.scss +19 -33
  2. package/alert/alert.component.scss +49 -141
  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 +18 -38
  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 +14 -34
  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 +23 -21
  17. package/code-block/_code-block-theme.scss +27 -26
  18. package/code-block/actionbar.component.scss +7 -18
  19. package/code-block/code-block.scss +21 -66
  20. package/core/form-field/form-field-ref.d.ts +2 -0
  21. package/core/forms/_forms-theme.scss +4 -7
  22. package/core/forms/_forms.scss +13 -42
  23. package/core/locales/locale-service.d.ts +1 -0
  24. package/core/option/_optgroup-theme.scss +4 -5
  25. package/core/option/_option-action-theme.scss +7 -7
  26. package/core/option/_option-theme.scss +16 -20
  27. package/core/select/common.d.ts +35 -0
  28. package/core/select/index.d.ts +1 -0
  29. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -19
  30. package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
  31. package/core/styles/common/_groups.scss +3 -5
  32. package/core/styles/common/_list.scss +14 -18
  33. package/core/styles/common/_popup.scss +5 -4
  34. package/core/styles/common/_select.scss +11 -16
  35. package/core/styles/common/_tokens.scss +30 -9
  36. package/core/styles/theming/_components-theming.scss +151 -131
  37. package/core/styles/visual/_layout.scss +14 -16
  38. package/datepicker/_datepicker-theme.scss +24 -39
  39. package/datepicker/calendar-body.scss +3 -8
  40. package/datepicker/calendar-header.scss +4 -9
  41. package/datepicker/calendar.scss +5 -16
  42. package/datepicker/datepicker-content.scss +4 -12
  43. package/datepicker/datepicker-input.scss +0 -4
  44. package/datepicker/datepicker-toggle.scss +3 -2
  45. package/divider/_divider-theme.scss +3 -1
  46. package/divider/divider.scss +9 -25
  47. package/dl/_dl-theme.scss +5 -6
  48. package/dl/dl.scss +5 -19
  49. package/dropdown/_dropdown-theme.scss +21 -21
  50. package/dropdown/dropdown-item.scss +5 -11
  51. package/dropdown/dropdown-trigger.directive.d.ts +2 -2
  52. package/dropdown/dropdown.scss +6 -14
  53. package/esm2022/alert/alert.component.mjs +2 -2
  54. package/esm2022/badge/badge.component.mjs +2 -2
  55. package/esm2022/button/button.component.mjs +13 -6
  56. package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
  57. package/esm2022/checkbox/checkbox.mjs +2 -2
  58. package/esm2022/code-block/actionbar.component.mjs +2 -2
  59. package/esm2022/code-block/code-block.component.mjs +2 -2
  60. package/esm2022/core/form-field/form-field-ref.mjs +1 -1
  61. package/esm2022/core/locales/locale-service.mjs +5 -2
  62. package/esm2022/core/option/option.mjs +2 -2
  63. package/esm2022/core/select/common.mjs +120 -0
  64. package/esm2022/core/select/index.mjs +2 -1
  65. package/esm2022/core/version.mjs +2 -2
  66. package/esm2022/datepicker/calendar-header.component.mjs +1 -1
  67. package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
  68. package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
  69. package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
  70. package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
  71. package/esm2022/form-field/form-field.mjs +2 -2
  72. package/esm2022/form-field/hint.mjs +2 -2
  73. package/esm2022/form-field/password-hint.mjs +2 -2
  74. package/esm2022/icon/icon-item.component.mjs +16 -6
  75. package/esm2022/list/list-selection.component.mjs +2 -2
  76. package/esm2022/list/list.component.mjs +2 -2
  77. package/esm2022/markdown/markdown.component.mjs +2 -2
  78. package/esm2022/navbar/navbar-item.component.mjs +2 -2
  79. package/esm2022/navbar/navbar.component.mjs +2 -2
  80. package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
  81. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  82. package/esm2022/popover/popover.component.mjs +3 -3
  83. package/esm2022/radio/radio.component.mjs +2 -2
  84. package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
  85. package/esm2022/select/select.component.mjs +18 -114
  86. package/esm2022/select/select.module.mjs +28 -28
  87. package/esm2022/table/table.component.mjs +2 -2
  88. package/esm2022/tabs/tab-group.component.mjs +54 -12
  89. package/esm2022/tabs/tab-header.component.mjs +2 -2
  90. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  91. package/esm2022/tags/tag-default-options.mjs +1 -1
  92. package/esm2022/tags/tag-input.mjs +17 -3
  93. package/esm2022/tags/tag-list.component.mjs +2 -2
  94. package/esm2022/tags/tag.component.mjs +2 -2
  95. package/esm2022/timepicker/timepicker.directive.mjs +10 -2
  96. package/esm2022/timezone/timezone-option.component.mjs +2 -2
  97. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  98. package/esm2022/title/title.directive.mjs +2 -2
  99. package/esm2022/toast/toast.component.mjs +3 -3
  100. package/esm2022/toast/toast.service.mjs +17 -12
  101. package/esm2022/tooltip/tooltip.component.mjs +2 -2
  102. package/esm2022/tree/tree-option.component.mjs +2 -2
  103. package/esm2022/tree-select/tree-select.component.mjs +9 -37
  104. package/esm2022/tree-select/tree-select.module.mjs +31 -11
  105. package/fesm2022/koobiq-components-alert.mjs +2 -2
  106. package/fesm2022/koobiq-components-alert.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 +12 -5
  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 +4 -4
  116. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  117. package/fesm2022/koobiq-components-core.mjs +124 -7
  118. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  119. package/fesm2022/koobiq-components-datepicker.mjs +1 -1
  120. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  121. package/fesm2022/koobiq-components-dropdown.mjs +5 -5
  122. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  123. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  124. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  125. package/fesm2022/koobiq-components-form-field.mjs +6 -6
  126. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  127. package/fesm2022/koobiq-components-icon.mjs +14 -4
  128. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  129. package/fesm2022/koobiq-components-list.mjs +4 -4
  130. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  131. package/fesm2022/koobiq-components-markdown.mjs +2 -2
  132. package/fesm2022/koobiq-components-navbar.mjs +6 -6
  133. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  134. package/fesm2022/koobiq-components-popover.mjs +4 -4
  135. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  136. package/fesm2022/koobiq-components-radio.mjs +2 -2
  137. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  138. package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
  139. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  140. package/fesm2022/koobiq-components-select.mjs +46 -142
  141. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  142. package/fesm2022/koobiq-components-table.mjs +2 -2
  143. package/fesm2022/koobiq-components-tabs.mjs +56 -14
  144. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  145. package/fesm2022/koobiq-components-tags.mjs +20 -7
  146. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  147. package/fesm2022/koobiq-components-timepicker.mjs +9 -1
  148. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  149. package/fesm2022/koobiq-components-timezone.mjs +6 -6
  150. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  151. package/fesm2022/koobiq-components-title.mjs +1 -1
  152. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  153. package/fesm2022/koobiq-components-toast.mjs +19 -13
  154. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  155. package/fesm2022/koobiq-components-tooltip.mjs +2 -2
  156. package/fesm2022/koobiq-components-tree-select.mjs +37 -44
  157. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  158. package/fesm2022/koobiq-components-tree.mjs +2 -2
  159. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  160. package/file-upload/_file-upload-theme.scss +109 -68
  161. package/file-upload/file-upload.scss +0 -5
  162. package/file-upload/multiple-file-upload.component.scss +35 -99
  163. package/file-upload/single-file-upload.component.scss +12 -31
  164. package/form-field/_form-field-theme.scss +32 -34
  165. package/form-field/_hint-theme.scss +16 -19
  166. package/form-field/cleaner.scss +3 -8
  167. package/form-field/form-field.scss +11 -12
  168. package/form-field/hint.scss +5 -7
  169. package/form-field/password-toggle.scss +3 -9
  170. package/form-field/stepper.scss +4 -10
  171. package/icon/_icon-button-theme.scss +35 -35
  172. package/icon/_icon-item-theme.scss +46 -31
  173. package/icon/_icon-theme.scss +9 -15
  174. package/icon/icon-button.scss +5 -17
  175. package/icon/icon-item.component.d.ts +3 -1
  176. package/icon/icon-item.scss +12 -7
  177. package/icon/icon.scss +0 -5
  178. package/input/_input-theme.scss +2 -3
  179. package/input/input.scss +2 -1
  180. package/link/_link-theme.scss +25 -42
  181. package/list/_list-theme.scss +18 -17
  182. package/list/list.scss +3 -5
  183. package/loader-overlay/_loader-overlay-theme.scss +13 -16
  184. package/loader-overlay/loader-overlay.scss +9 -32
  185. package/markdown/_markdown-theme.scss +41 -44
  186. package/markdown/markdown.scss +38 -88
  187. package/modal/_modal-confirm.scss +2 -6
  188. package/modal/_modal-theme.scss +11 -12
  189. package/modal/modal.scss +18 -24
  190. package/navbar/_navbar-item_horizontal.scss +28 -28
  191. package/navbar/_navbar-item_vertical.scss +31 -30
  192. package/navbar/_navbar-theme.scss +21 -22
  193. package/navbar/navbar-brand.scss +24 -26
  194. package/navbar/navbar-divider.scss +4 -7
  195. package/navbar/navbar-item.scss +11 -13
  196. package/navbar/navbar.scss +2 -5
  197. package/navbar/vertical-navbar.scss +3 -5
  198. package/package.json +9 -9
  199. package/popover/_popover-theme.scss +9 -16
  200. package/popover/popover.scss +18 -24
  201. package/prebuilt-themes/dark-theme.css +1 -1
  202. package/prebuilt-themes/light-theme.css +1 -1
  203. package/progress-bar/_progress-bar-theme.scss +7 -10
  204. package/progress-bar/progress-bar.scss +6 -18
  205. package/progress-spinner/_progress-spinner-theme.scss +6 -7
  206. package/progress-spinner/progress-spinner.scss +8 -17
  207. package/radio/_radio-theme.scss +29 -37
  208. package/radio/radio.scss +20 -39
  209. package/risk-level/_risk-level-theme.scss +25 -30
  210. package/risk-level/risk-level.component.scss +5 -8
  211. package/schematics/ng-add/index.js +6 -6
  212. package/scrollbar/_scrollbar-component-theme.scss +14 -17
  213. package/scrollbar/scrollbar.component.scss +13 -20
  214. package/select/_select-theme.scss +14 -15
  215. package/select/select.component.d.ts +2 -32
  216. package/select/select.module.d.ts +1 -1
  217. package/select/select.scss +3 -10
  218. package/sidepanel/_sidepanel-theme.scss +8 -9
  219. package/sidepanel/sidepanel.scss +19 -30
  220. package/splitter/_splitter-theme.scss +3 -3
  221. package/table/_table-theme.scss +9 -8
  222. package/table/table.scss +12 -12
  223. package/tabs/_tabs-common.scss +4 -7
  224. package/tabs/_tabs-theme.scss +77 -44
  225. package/tabs/tab-group.component.d.ts +9 -3
  226. package/tabs/tab-group.scss +2 -7
  227. package/tabs/tab-header.scss +0 -4
  228. package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -7
  229. package/tags/_tag-theme.scss +23 -26
  230. package/tags/tag-default-options.d.ts +1 -0
  231. package/tags/tag-input.d.ts +7 -1
  232. package/tags/tag-list.scss +6 -5
  233. package/tags/tag.scss +6 -9
  234. package/textarea/_textarea-theme.scss +2 -4
  235. package/textarea/textarea.scss +4 -6
  236. package/timepicker/timepicker.scss +2 -7
  237. package/timezone/_timezone-option-theme.scss +8 -9
  238. package/timezone/timezone-option.component.scss +5 -7
  239. package/timezone/timezone-select.component.d.ts +2 -1
  240. package/timezone/timezone-select.component.scss +2 -3
  241. package/toast/_toast-theme.scss +15 -14
  242. package/toast/toast-container.component.scss +4 -7
  243. package/toast/toast.component.scss +20 -25
  244. package/toast/toast.service.d.ts +8 -4
  245. package/toggle/_toggle-theme.scss +48 -42
  246. package/toggle/toggle.scss +9 -21
  247. package/tooltip/_tooltip-theme.scss +13 -16
  248. package/tooltip/tooltip.scss +8 -10
  249. package/tree/_tree-theme.scss +20 -22
  250. package/tree/toggle.scss +3 -5
  251. package/tree/tree-option.scss +5 -6
  252. package/tree-select/_tree-select-theme.scss +12 -14
  253. package/tree-select/tree-select.component.d.ts +4 -17
  254. package/tree-select/tree-select.module.d.ts +1 -2
  255. package/tree-select/tree-select.scss +1 -5
  256. package/core/styles/_variables.scss +0 -1
@@ -2,81 +2,97 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../core/styles/typography/typography-utils' as *;
5
+ @use '../core/styles/common/tokens' as *;
5
6
 
6
- @use '../core/styles/tokens';
7
-
8
- $tokens: meta.module-variables(tokens) !default;
9
7
 
10
8
  /* stylelint-disable no-descending-specificity */
11
- @mixin kbq-file-upload-text-color($states) {
12
- &,
13
- .kbq-icon,
14
- .kbq-link {
15
- color: map.get($states, border);
16
- }
17
- }
18
-
19
- @mixin kbq-file-upload-color($states) {
20
- background-color: map.get($states, background);
21
- border-color: map.get($states, border) !important;
22
- }
23
-
24
9
  @mixin kbq-file-upload-theme($theme) {
25
- $file-upload: map.get(map.get($theme, components), file-upload);
26
-
27
- $single: map.get($file-upload, single);
28
- $single-states: map.get($single, states);
29
-
30
- $multiple: map.get($file-upload, multiple);
31
- $multiple-states: map.get($multiple, states);
10
+ $file-upload: map.get($theme, components, file-upload);
32
11
 
33
12
  .kbq-file-upload {
34
13
  .kbq-focused, .kbq-link.kbq-focused {
35
- border: 2px solid map.get(map.get($single, states), focused);
14
+ border: 2px solid kbq-css-variable(
15
+ file-upload-single-states-focused, map.get($file-upload, single, states, focused)
16
+ );
36
17
  }
37
18
  }
38
19
 
39
20
  .kbq-single-file-upload {
40
21
  .kbq-file-upload {
41
- @include kbq-file-upload-color(map.get($single, default));
22
+ background-color: kbq-css-variable(
23
+ file-upload-single-default-background, map.get($file-upload, single, default, background)
24
+ );
25
+ border-color: kbq-css-variable(
26
+ file-upload-single-default-border, map.get($file-upload, single, default, border)) !important;
42
27
 
43
28
  &.dragover {
44
- @include kbq-file-upload-color(map.get($single-states, on-drag));
29
+ background-color: kbq-css-variable(
30
+ file-upload-single-states-on-drag-background,
31
+ map.get($file-upload, single, states, on-drag, background)
32
+ );
33
+ border-color: kbq-css-variable(
34
+ file-upload-single-states-on-drag-border,
35
+ map.get($file-upload, single, states, on-drag, border)) !important;
45
36
  }
46
37
 
47
38
  &.kbq-error:not(.kbq-disabled) {
48
- $state-error: map.get($single-states, error);
49
-
50
39
  &:not(.dragover) {
51
- @include kbq-file-upload-color($state-error);
40
+ background-color: kbq-css-variable(
41
+ file-upload-single-states-error-background,
42
+ map.get($file-upload, single, states, error, background)
43
+ );
44
+ border-color: kbq-css-variable(
45
+ file-upload-single-states-error-border,
46
+ map.get($file-upload, single, states, error, border)) !important;
52
47
  }
53
48
 
54
49
  *,
55
50
  .kbq-icon {
56
- color: map.get($state-error, text-block);
51
+ color: kbq-css-variable(
52
+ file-upload-single-states-error-text-block,
53
+ map.get($file-upload, single, states, error, text-block)
54
+ );
57
55
  }
58
56
  }
59
57
 
60
58
  &.kbq-disabled {
61
- @include kbq-file-upload-color(map.get($single-states, disabled));
62
-
63
- @include kbq-file-upload-text-color(map.get($single-states, disabled));
59
+ background-color: kbq-css-variable(
60
+ file-upload-single-states-disabled-background,
61
+ map.get($file-upload, single, states, disabled, background)
62
+ );
63
+ border-color: kbq-css-variable(
64
+ file-upload-single-states-disabled-border,
65
+ map.get($file-upload, single, states, disabled, border)
66
+ ) !important;
67
+
68
+ &,
69
+ .kbq-icon,
70
+ .kbq-link {
71
+ color: kbq-css-variable(
72
+ file-upload-single-states-disabled-border,
73
+ map.get($file-upload, single, states, disabled, border)
74
+ );
75
+ }
64
76
  }
65
77
  }
66
78
  }
67
79
 
68
80
  .kbq-multiple-file-upload {
69
81
  .kbq-file-upload {
70
- $default: map.get($multiple, default);
71
-
72
- @include kbq-file-upload-color($default);
82
+ background-color: kbq-css-variable(
83
+ file-upload-multiple-default-background, map.get($file-upload, multiple, default, background));
84
+ border-color: kbq-css-variable(
85
+ file-upload-multiple-default-border, map.get($file-upload, multiple, default, border)) !important;
73
86
 
74
87
  .btn-upload {
75
- border-top-color: map.get($default, border);
88
+ border-top-color: kbq-css-variable(
89
+ file-upload-multiple-default-border, map.get($file-upload, multiple, default, border));
76
90
  }
77
91
 
78
92
  .kbq-file-multiple-uploaded__header {
79
- border-bottom-color: map.get($default, grid-divider);
93
+ border-bottom-color: kbq-css-variable(
94
+ file-upload-multiple-default-grid-divider, map.get($file-upload, multiple, default, grid-divider)
95
+ );
80
96
 
81
97
  .kbq-file-multiple-uploaded__header-inner {
82
98
  //color: map.get(map.get($multiple, default), border);;
@@ -84,49 +100,84 @@ $tokens: meta.module-variables(tokens) !default;
84
100
  }
85
101
 
86
102
  &.dragover {
87
- @include kbq-file-upload-color(map.get($multiple-states, on-drag));
103
+ background-color: kbq-css-variable(
104
+ file-upload-multiple-states-on-drag-background,
105
+ map.get($file-upload, multiple, states, on-drag, background)
106
+ );
107
+ border-color: kbq-css-variable(
108
+ file-upload-multiple-states-on-drag-border,
109
+ map.get($file-upload, multiple, states, on-drag, border)
110
+ ) !important;
88
111
 
89
112
  .kbq-file-multiple-uploaded__header {
90
- border-bottom-color: map.get(map.get($multiple-states, on-drag), background) !important;
113
+ border-bottom-color: kbq-css-variable(
114
+ file-upload-multiple-states-on-drag-background,
115
+ map.get($file-upload, multiple, states, on-drag, background)
116
+ ) !important;
91
117
  }
92
118
 
93
119
  &.selected {
94
120
  .dropzone {
95
- border-top-color: map.get(map.get($multiple-states, on-drag), border);
121
+ border-top-color: kbq-css-variable(
122
+ file-upload-multiple-states-on-drag-border,
123
+ map.get($file-upload, multiple, states, on-drag, border)
124
+ );
96
125
  }
97
126
  }
98
127
  }
99
128
 
100
129
  &.kbq-disabled {
101
- @include kbq-file-upload-color(map.get($multiple-states, disabled));
102
-
103
- @include kbq-file-upload-text-color(map.get($multiple-states, disabled));
130
+ background-color: kbq-css-variable(
131
+ file-upload-multiple-states-disabled-background,
132
+ map.get($file-upload, multiple, states, disabled, background)
133
+ );
134
+ border-color: kbq-css-variable(
135
+ file-upload-multiple-states-disabled-border,
136
+ map.get($file-upload, multiple, states, disabled, border)
137
+ ) !important;
138
+
139
+ &,
140
+ .kbq-icon,
141
+ .kbq-link {
142
+ color: kbq-css-variable(
143
+ file-upload-multiple-states-disabled-border,
144
+ map.get($file-upload, multiple, states, disabled, border)
145
+ );
146
+ }
104
147
 
105
148
  &.selected {
106
149
  .dropzone {
107
- border-top-color: map.get(map.get($multiple-states, disabled), border);
150
+ border-top-color: kbq-css-variable(
151
+ file-upload-multiple-states-disabled-border,
152
+ map.get($file-upload, multiple, states, disabled, border)
153
+ );
108
154
  }
109
155
  }
110
156
  }
111
157
 
112
158
  &:not(.kbq-disabled) {
113
159
  .kbq-file-upload__row.error {
114
- $state-error: map.get($multiple-states, error);
115
-
116
160
  *,
117
161
  .kbq-icon {
118
- color: map.get($state-error, text-block);
162
+ color: kbq-css-variable(
163
+ file-upload-multiple-states-error-text-block,
164
+ map.get($file-upload, multiple, states, error, text-block)
165
+ );
119
166
  }
120
167
  }
121
168
  }
122
169
 
123
170
  .multiple__uploaded-item {
124
171
  & .kbq-file-upload__file .kbq-icon {
125
- color: map.get($default, left-icon)
172
+ color: kbq-css-variable(
173
+ file-upload-multiple-default-left-icon, map.get($file-upload, multiple, default, left-icon)
174
+ );
126
175
  }
127
176
 
128
177
  & .kbq-file-upload__action .kbq-icon {
129
- color: map.get($default, icon-button)
178
+ color: kbq-css-variable(
179
+ file-upload-multiple-default-icon-button, map.get($file-upload, multiple, default, icon-button)
180
+ );
130
181
  }
131
182
  }
132
183
  }
@@ -135,9 +186,7 @@ $tokens: meta.module-variables(tokens) !default;
135
186
  .kbq-single-file-upload,
136
187
  .kbq-multiple-file-upload {
137
188
  .kbq-file-upload__hint:not(.kbq-error) {
138
- $form-field-hint: map.get(map.get($theme, components), form-field-hint);
139
-
140
- color: map.get($form-field-hint, text);
189
+ color: kbq-css-variable(form-field-hint-text, map.get($theme, components, form-field-hint, text));
141
190
  }
142
191
  }
143
192
  }
@@ -147,42 +196,34 @@ $tokens: meta.module-variables(tokens) !default;
147
196
  .kbq-single-file-upload {
148
197
  & .file-item__text-wrapper,
149
198
  & .dropzone__text {
150
- @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-single-text-block));
199
+ @include kbq-typography-css-variables(file-upload, single-text-block);
151
200
  }
152
201
  }
153
202
 
154
203
  .kbq-multiple-file-upload {
155
204
  .multiple__header {
156
- @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-title));
205
+ @include kbq-typography-css-variables(file-upload, multiple-title);
157
206
  }
158
207
 
159
208
  .multiple__caption {
160
209
  &,
161
210
  .kbq-link {
162
- @include kbq-typography-level-to-styles(
163
- $config, map.get($tokens, file-upload-font-multiple-text-block)
164
- );
211
+ @include kbq-typography-css-variables(file-upload, multiple-text-block);
165
212
  }
166
213
  }
167
214
 
168
215
  .kbq-file-multiple-uploaded__header {
169
- @include kbq-typography-level-to-styles(
170
- $config,
171
- map.get($tokens, file-upload-font-multiple-grid)
172
- );
216
+ @include kbq-typography-css-variables(file-upload, multiple-grid);
173
217
  }
174
218
 
175
219
  .multiple__uploaded-item {
176
- @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-grid));
220
+ @include kbq-typography-css-variables(file-upload, multiple-grid);
177
221
  }
178
222
 
179
223
  .kbq-file-upload {
180
224
  .kbq-list-item,
181
225
  .kbq-list-option {
182
- @include kbq-typography-level-to-styles(
183
- $config,
184
- map.get($tokens, file-upload-font-multiple-grid)
185
- );
226
+ @include kbq-typography-css-variables(file-upload, multiple-grid);
186
227
  }
187
228
  }
188
229
  }
@@ -190,7 +231,7 @@ $tokens: meta.module-variables(tokens) !default;
190
231
  .kbq-single-file-upload,
191
232
  .kbq-multiple-file-upload {
192
233
  .kbq-file-upload__hint.kbq-hint .kbq-hint__text {
193
- @include kbq-typography-level-to-styles($config, map.get($tokens, form-field-hint-font-text));
234
+ @include kbq-typography-css-variables(form-field-hint, text);
194
235
  }
195
236
  }
196
237
  }
@@ -1,11 +1,6 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
5
-
6
- @use '../core/styles/common';
7
-
8
- $tokens: meta.module-variables(tokens) !default;
9
4
 
10
5
  .kbq-file-upload {
11
6
  box-sizing: border-box;
@@ -2,8 +2,8 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../core/styles/tokens';
5
+ @use '../core/styles/common/tokens' as *;
5
6
 
6
- @use '../core/styles/common';
7
7
 
8
8
  $tokens: meta.module-variables(tokens) !default;
9
9
 
@@ -11,93 +11,53 @@ $tokens: meta.module-variables(tokens) !default;
11
11
  /* stylelint-disable no-descending-specificity */
12
12
 
13
13
  .kbq-multiple-file-upload .kbq-file-upload {
14
- border-radius: var(
15
- --kbq-file-upload-size-multiple-big-container-border-radius,
16
- map.get($tokens, file-upload-size-multiple-big-container-border-radius)
17
- );
18
- border-width: var(
19
- --kbq-file-upload-size-multiple-big-container-border-width,
20
- map.get($tokens, file-upload-size-multiple-big-container-border-width)
21
- );
14
+ border-radius: kbq-css-variable(file-upload-size-multiple-big-container-border-radius);
15
+ border-width: kbq-css-variable(file-upload-size-multiple-big-container-border-width);
22
16
  border-style: dashed;
23
17
 
24
18
  &.default:not(.selected) {
25
19
  justify-content: center;
26
20
 
27
21
  padding:
28
- var(
29
- --kbq-file-upload-size-multiple-big-container-padding-vertical,
30
- map.get($tokens, file-upload-size-multiple-big-container-padding-vertical)
31
- )
32
- var(
33
- --kbq-file-upload-size-multiple-big-container-padding-vertical,
34
- map.get($tokens, file-upload-size-multiple-big-container-padding-vertical)
35
- );
36
-
37
- min-height: var(
38
- --kbq-file-upload-size-multiple-big-container-min-height,
39
- map.get($tokens, file-upload-size-multiple-big-container-min-height)
40
- );
41
-
42
- min-width: var(
43
- --kbq-file-upload-size-multiple-big-container-min-width,
44
- map.get($tokens, file-upload-size-multiple-big-container-min-width)
45
- );
22
+ kbq-css-variable(file-upload-size-multiple-big-container-padding-vertical)
23
+ kbq-css-variable(file-upload-size-multiple-big-container-padding-vertical);
24
+
25
+ min-height: kbq-css-variable(file-upload-size-multiple-big-container-min-height);
26
+
27
+ min-width: kbq-css-variable(file-upload-size-multiple-big-container-min-width);
46
28
 
47
29
  & .dropzone {
48
- gap: var(
49
- --kbq-file-upload-size-multiple-big-container-content-gap-horizontal,
50
- map.get($tokens, file-upload-size-multiple-big-container-content-gap-horizontal)
51
- );
30
+ gap: kbq-css-variable(file-upload-size-multiple-big-container-content-gap-horizontal);
52
31
  }
53
32
 
54
33
  & .dropzone__text {
55
- & .multiple__caption {
56
- padding-top: var(
57
- --kbq-file-upload-size-multiple-big-text-block-content-gap-vertical,
58
- map.get($tokens, file-upload-size-multiple-big-text-block-content-gap-vertical)
59
- );
34
+ & .multiple__header {
35
+ display: block;
36
+ }
60
37
 
61
- gap: var(
62
- --kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal,
63
- map.get($tokens, file-upload-size-multiple-big-text-block-content-gap-horizontal)
64
- );
38
+ & .multiple__caption {
39
+ display: block;
40
+ padding-top: kbq-css-variable(file-upload-size-multiple-big-text-block-content-gap-vertical);
41
+ // гап не применяется тк не флекс. в целом гап не нужен, тк по логике дизайна ссылка от текста отделяется пробелом
42
+ gap: kbq-css-variable(file-upload-size-multiple-big-text-block-content-gap-horizontal);
65
43
  }
66
44
  }
67
45
  }
68
46
 
69
47
  &.compact:not(.selected) {
70
48
  padding:
71
- var(
72
- --kbq-file-upload-size-single-container-padding-vertical,
73
- map.get($tokens, file-upload-size-single-container-padding-vertical)
74
- )
75
- var(
76
- --kbq-file-upload-size-single-container-padding-horizontal,
77
- map.get($tokens, file-upload-size-single-container-padding-horizontal)
78
- );
49
+ kbq-css-variable(file-upload-size-single-container-padding-vertical)
50
+ kbq-css-variable(file-upload-size-single-container-padding-horizontal);
79
51
 
80
52
  & .dropzone {
81
- gap: var(
82
- --kbq-file-upload-size-single-container-content-gap-horizontal,
83
- map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
84
- );
53
+ gap: kbq-css-variable(file-upload-size-single-container-content-gap-horizontal);
85
54
 
86
55
  & .dropzone__text.multiple__caption {
87
- padding-top: var(
88
- --kbq-file-upload-size-single-text-block-padding-vertical,
89
- map.get($tokens, file-upload-size-single-text-block-padding-vertical)
90
- );
56
+ padding-top: kbq-css-variable(file-upload-size-single-text-block-padding-vertical);
91
57
 
92
- padding-bottom: var(
93
- --kbq-file-upload-size-single-text-block-padding-vertical,
94
- map.get($tokens, file-upload-size-single-text-block-padding-vertical)
95
- );
58
+ padding-bottom: kbq-css-variable(file-upload-size-single-text-block-padding-vertical);
96
59
 
97
- gap: var(
98
- --kbq-file-upload-size-single-text-block-content-gap-horizontal,
99
- map.get($tokens, file-upload-size-single-text-block-content-gap-horizontal)
100
- );
60
+ gap: kbq-css-variable(file-upload-size-single-text-block-content-gap-horizontal);
101
61
  }
102
62
  }
103
63
  }
@@ -139,10 +99,7 @@ $tokens: meta.module-variables(tokens) !default;
139
99
  width: 65%;
140
100
  max-width: 65%;
141
101
 
142
- gap: var(
143
- --kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal,
144
- map.get($tokens, file-upload-size-multiple-big-grid-cell-content-gap-horizontal)
145
- );
102
+ gap: kbq-css-variable(file-upload-size-multiple-big-grid-cell-content-gap-horizontal);
146
103
  }
147
104
 
148
105
  .kbq-file-upload__size {
@@ -179,7 +136,7 @@ $tokens: meta.module-variables(tokens) !default;
179
136
  .kbq-file-multiple-uploaded__header-inner {
180
137
  $padding-vertical: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-vertical);
181
138
  $padding-horizontal: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-horizontal);
182
- $compensation: 3px;
139
+ $compensation: 2px;
183
140
 
184
141
  padding:
185
142
  calc(
@@ -203,42 +160,21 @@ $tokens: meta.module-variables(tokens) !default;
203
160
  calc(var(--kbq-file-upload-size-single-container-padding-vertical, $padding-vertical) - $border-width)
204
161
  calc(var(--kbq-file-upload-size-single-container-padding-horizontal, $padding-horizontal) - $border-width);
205
162
 
206
- border-top-left-radius: var(
207
- --kbq-file-upload-size-single-container-border-radius,
208
- map.get($tokens, file-upload-size-single-container-border-radius)
209
- );
210
-
211
- border-top-right-radius: var(
212
- --kbq-file-upload-size-single-container-border-radius,
213
- map.get($tokens, file-upload-size-single-container-border-radius)
214
- );
215
- border-top-width: var(
216
- --kbq-file-upload-size-single-container-border-width,
217
- map.get($tokens, file-upload-size-single-container-border-width)
218
- );
163
+ border-top-left-radius: kbq-css-variable(file-upload-size-single-container-border-radius);
164
+
165
+ border-top-right-radius: kbq-css-variable(file-upload-size-single-container-border-radius);
166
+ border-top-width: kbq-css-variable(file-upload-size-single-container-border-width);
219
167
  border-top-style: dashed;
220
168
 
221
169
  & .dropzone {
222
- gap: var(
223
- --kbq-file-upload-size-single-container-content-gap-horizontal,
224
- map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
225
- );
170
+ gap: kbq-css-variable(file-upload-size-single-container-content-gap-horizontal);
226
171
 
227
172
  & .dropzone__text.multiple__caption {
228
- padding-top: var(
229
- --kbq-file-upload-size-single-text-block-padding-vertical,
230
- map.get($tokens, file-upload-size-single-text-block-padding-vertical)
231
- );
173
+ padding-top: kbq-css-variable(file-upload-size-single-text-block-padding-vertical);
232
174
 
233
- padding-bottom: var(
234
- --kbq-file-upload-size-single-text-block-padding-vertical,
235
- map.get($tokens, file-upload-size-single-text-block-padding-vertical)
236
- );
175
+ padding-bottom: kbq-css-variable(file-upload-size-single-text-block-padding-vertical);
237
176
 
238
- gap: var(
239
- --kbq-file-upload-size-single-text-block-content-gap-horizontal,
240
- map.get($tokens, file-upload-size-single-text-block-content-gap-horizontal)
241
- );
177
+ gap: kbq-css-variable(file-upload-size-single-text-block-content-gap-horizontal);
242
178
  }
243
179
  }
244
180
  }
@@ -254,6 +190,6 @@ $tokens: meta.module-variables(tokens) !default;
254
190
  }
255
191
 
256
192
  .kbq-file-upload__hint {
257
- margin-top: var(--kbq-form-field-hint-size-margin-top, map.get($tokens, form-field-hint-size-margin-top));
193
+ margin-top: kbq-css-variable(form-field-hint-size-margin-top);
258
194
  }
259
195
  /* stylelint-enable no-descending-specificity */
@@ -4,6 +4,8 @@
4
4
  @use '../core/styles/tokens';
5
5
 
6
6
  @use '../core/styles/common';
7
+ @use '../core/styles/common/tokens' as *;
8
+
7
9
 
8
10
  $tokens: meta.module-variables(tokens) !default;
9
11
 
@@ -16,38 +18,20 @@ $tokens: meta.module-variables(tokens) !default;
16
18
  calc(var(--kbq-file-upload-size-single-container-padding-vertical, $padding-vertical) - $border-width)
17
19
  calc(var(--kbq-file-upload-size-single-container-padding-horizontal, $padding-horizontal) - $border-width);
18
20
 
19
- border-radius: var(
20
- --kbq-file-upload-size-single-container-border-radius,
21
- map.get($tokens, file-upload-size-single-container-border-radius)
22
- );
23
- border-width: var(
24
- --kbq-file-upload-size-single-container-border-width,
25
- map.get($tokens, file-upload-size-single-container-border-width)
26
- );
21
+ border-radius: kbq-css-variable(file-upload-size-single-container-border-radius);
22
+ border-width: kbq-css-variable(file-upload-size-single-container-border-width);
27
23
  border-style: dashed;
28
24
 
29
25
  & .dropzone__text {
30
- padding-top: var(
31
- --kbq-file-upload-size-single-text-block-padding-vertical,
32
- map.get($tokens, file-upload-size-single-text-block-padding-vertical)
33
- );
34
-
35
- padding-bottom: var(
36
- --kbq-file-upload-size-single-text-block-padding-vertical,
37
- map.get($tokens, file-upload-size-single-text-block-padding-vertical)
38
- );
39
-
40
- gap: var(
41
- --kbq-file-upload-size-single-text-block-content-gap-horizontal,
42
- map.get($tokens, file-upload-size-single-text-block-content-gap-horizontal)
43
- );
26
+ padding-top: kbq-css-variable(file-upload-size-single-text-block-padding-vertical);
27
+
28
+ padding-bottom: kbq-css-variable(file-upload-size-single-text-block-padding-vertical);
29
+
30
+ gap: kbq-css-variable(file-upload-size-single-text-block-content-gap-horizontal);
44
31
  }
45
32
 
46
33
  & .dropzone {
47
- gap: var(
48
- --kbq-file-upload-size-single-container-content-gap-horizontal,
49
- map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
50
- );
34
+ gap: kbq-css-variable(file-upload-size-single-container-content-gap-horizontal);
51
35
  }
52
36
 
53
37
  .file-item {
@@ -58,10 +42,7 @@ $tokens: meta.module-variables(tokens) !default;
58
42
  align-items: center;
59
43
  width: 100%;
60
44
 
61
- gap: var(
62
- --kbq-file-upload-size-single-container-content-gap-horizontal,
63
- map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
64
- );
45
+ gap: kbq-css-variable(file-upload-size-single-container-content-gap-horizontal);
65
46
 
66
47
  .file-item__text {
67
48
  width: 120px;
@@ -76,5 +57,5 @@ $tokens: meta.module-variables(tokens) !default;
76
57
  }
77
58
 
78
59
  .kbq-file-upload__hint {
79
- margin-top: var(--kbq-form-field-hint-size-margin-top, map.get($tokens, form-field-hint-size-margin-top));
60
+ margin-top: kbq-css-variable(form-field-hint-size-margin-top);
80
61
  }