@koobiq/components 18.1.0 → 18.2.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 (310) hide show
  1. package/accordion/README.md +0 -0
  2. package/accordion/_accordion-theme.scss +62 -0
  3. package/accordion/accordion-content.d.ts +6 -0
  4. package/accordion/accordion-header.d.ts +6 -0
  5. package/accordion/accordion-item.d.ts +6 -0
  6. package/accordion/accordion-tokens.scss +45 -0
  7. package/accordion/accordion-trigger.component.d.ts +11 -0
  8. package/accordion/accordion-trigger.component.scss +79 -0
  9. package/accordion/accordion.component.d.ts +20 -0
  10. package/accordion/accordion.component.scss +66 -0
  11. package/accordion/accordion.module.d.ts +12 -0
  12. package/accordion/index.d.ts +1 -0
  13. package/accordion/public-api.d.ts +6 -0
  14. package/alert/_alert-theme.scss +3 -3
  15. package/alert/alert-tokens.scss +3 -3
  16. package/alert/alert.component.scss +40 -39
  17. package/autocomplete/_autocomplete-theme.scss +2 -2
  18. package/autocomplete/autocomplete.scss +6 -6
  19. package/badge/_badge-theme.scss +5 -5
  20. package/badge/badge.component.scss +16 -16
  21. package/button/_button-base.scss +6 -6
  22. package/button/_button-theme.scss +11 -11
  23. package/button/button.dropdown-trigger.directive.d.ts +14 -0
  24. package/button/button.module.d.ts +2 -1
  25. package/button/button.scss +8 -8
  26. package/button/public-api.d.ts +1 -0
  27. package/button-toggle/_button-toggle-theme.scss +5 -5
  28. package/button-toggle/button-toggle.scss +11 -11
  29. package/checkbox/_checkbox-theme.scss +22 -22
  30. package/checkbox/checkbox-tokens.scss +2 -2
  31. package/checkbox/checkbox.scss +16 -16
  32. package/code-block/_code-block-theme.scss +15 -15
  33. package/code-block/actionbar.component.scss +4 -4
  34. package/code-block/code-block.scss +18 -19
  35. package/core/forms/_forms-theme.scss +2 -2
  36. package/core/forms/_forms.scss +12 -12
  37. package/core/option/_optgroup-theme.scss +2 -2
  38. package/core/option/_option-action-theme.scss +6 -6
  39. package/core/option/_option-theme.scss +5 -5
  40. package/core/option/action.scss +2 -2
  41. package/core/option/optgroup.scss +1 -1
  42. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +8 -8
  43. package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +2 -2
  44. package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +8 -8
  45. package/core/styles/common/_groups.scss +4 -4
  46. package/core/styles/common/_list.scss +19 -19
  47. package/core/styles/common/_popup.scss +3 -3
  48. package/core/styles/common/_select.scss +13 -13
  49. package/core/styles/common/_tokens.scss +8 -19
  50. package/core/styles/theming/_scrollbar-theme.scss +11 -11
  51. package/core/styles/visual/_layout.scss +13 -13
  52. package/datepicker/_datepicker-theme.scss +15 -15
  53. package/datepicker/calendar-body.scss +2 -2
  54. package/datepicker/calendar-header.scss +3 -3
  55. package/datepicker/calendar.scss +6 -6
  56. package/datepicker/datepicker-content.scss +4 -4
  57. package/datepicker/datepicker-toggle.scss +2 -2
  58. package/divider/_divider-theme.scss +1 -1
  59. package/divider/divider.scss +6 -6
  60. package/dl/_dl-theme.scss +2 -2
  61. package/dl/dl.scss +4 -4
  62. package/dropdown/_dropdown-theme.scss +7 -7
  63. package/dropdown/dropdown-item.scss +2 -2
  64. package/dropdown/dropdown.scss +5 -5
  65. package/empty-state/_empty-state-theme.scss +4 -4
  66. package/empty-state/empty-state.scss +18 -20
  67. package/esm2022/accordion/accordion-content.mjs +19 -0
  68. package/esm2022/accordion/accordion-header.mjs +19 -0
  69. package/esm2022/accordion/accordion-item.mjs +25 -0
  70. package/esm2022/accordion/accordion-trigger.component.mjs +60 -0
  71. package/esm2022/accordion/accordion.component.mjs +40 -0
  72. package/esm2022/accordion/accordion.module.mjs +44 -0
  73. package/esm2022/accordion/index.mjs +2 -0
  74. package/esm2022/accordion/koobiq-components-accordion.mjs +5 -0
  75. package/esm2022/accordion/public-api.mjs +7 -0
  76. package/esm2022/alert/alert.component.mjs +2 -2
  77. package/esm2022/autocomplete/autocomplete.component.mjs +2 -2
  78. package/esm2022/badge/badge.component.mjs +2 -2
  79. package/esm2022/button/button.component.mjs +2 -2
  80. package/esm2022/button/button.dropdown-trigger.directive.mjs +28 -0
  81. package/esm2022/button/button.module.mjs +10 -5
  82. package/esm2022/button/public-api.mjs +2 -1
  83. package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
  84. package/esm2022/checkbox/checkbox.mjs +2 -2
  85. package/esm2022/code-block/actionbar.component.mjs +2 -2
  86. package/esm2022/code-block/code-block.component.mjs +2 -2
  87. package/esm2022/core/option/action.mjs +2 -2
  88. package/esm2022/core/option/optgroup.mjs +2 -2
  89. package/esm2022/core/option/option.mjs +2 -2
  90. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
  91. package/esm2022/core/version.mjs +2 -2
  92. package/esm2022/datepicker/calendar-body.component.mjs +2 -2
  93. package/esm2022/datepicker/calendar-header.component.mjs +2 -2
  94. package/esm2022/datepicker/calendar.component.mjs +2 -2
  95. package/esm2022/datepicker/datepicker-toggle.component.mjs +2 -2
  96. package/esm2022/datepicker/datepicker.component.mjs +3 -3
  97. package/esm2022/divider/divider.component.mjs +2 -2
  98. package/esm2022/dl/dl.component.mjs +2 -2
  99. package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
  100. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  101. package/esm2022/empty-state/empty-state.component.mjs +2 -2
  102. package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
  103. package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
  104. package/esm2022/form-field/cleaner.mjs +2 -2
  105. package/esm2022/form-field/form-field.mjs +2 -2
  106. package/esm2022/form-field/hint.mjs +2 -2
  107. package/esm2022/form-field/password-hint.mjs +2 -2
  108. package/esm2022/form-field/password-toggle.mjs +2 -2
  109. package/esm2022/form-field/stepper.mjs +2 -2
  110. package/esm2022/icon/icon-button.component.mjs +2 -2
  111. package/esm2022/icon/icon-item.component.mjs +2 -2
  112. package/esm2022/icon/icon.component.mjs +2 -2
  113. package/esm2022/list/list-selection.component.mjs +2 -2
  114. package/esm2022/list/list.component.mjs +2 -2
  115. package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
  116. package/esm2022/markdown/markdown.component.mjs +2 -2
  117. package/esm2022/modal/modal.component.mjs +5 -7
  118. package/esm2022/navbar/navbar-item.component.mjs +2 -2
  119. package/esm2022/navbar/navbar.component.mjs +2 -2
  120. package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
  121. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  122. package/esm2022/popover/popover.component.mjs +3 -3
  123. package/esm2022/progress-bar/progress-bar.component.mjs +2 -2
  124. package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
  125. package/esm2022/radio/radio.component.mjs +2 -2
  126. package/esm2022/risk-level/risk-level.component.mjs +2 -2
  127. package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
  128. package/esm2022/select/select.component.mjs +3 -3
  129. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  130. package/esm2022/splitter/splitter.component.mjs +3 -3
  131. package/esm2022/table/table.component.mjs +2 -2
  132. package/esm2022/tabs/tab-group.component.mjs +2 -2
  133. package/esm2022/tabs/tab-header.component.mjs +2 -2
  134. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  135. package/esm2022/tags/tag-list.component.mjs +2 -2
  136. package/esm2022/tags/tag.component.mjs +2 -2
  137. package/esm2022/timezone/timezone-option.component.mjs +2 -2
  138. package/esm2022/timezone/timezone-select.component.mjs +2 -2
  139. package/esm2022/toast/toast-container.component.mjs +2 -2
  140. package/esm2022/toast/toast.component.mjs +3 -3
  141. package/esm2022/toggle/toggle.component.mjs +3 -3
  142. package/esm2022/tooltip/tooltip.component.mjs +3 -3
  143. package/esm2022/tree/toggle.mjs +2 -2
  144. package/esm2022/tree/tree-option.component.mjs +2 -2
  145. package/esm2022/tree/tree-selection.component.mjs +2 -2
  146. package/esm2022/tree/tree.mjs +2 -2
  147. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  148. package/fesm2022/koobiq-components-accordion.mjs +189 -0
  149. package/fesm2022/koobiq-components-accordion.mjs.map +1 -0
  150. package/fesm2022/koobiq-components-alert.mjs +2 -2
  151. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  152. package/fesm2022/koobiq-components-autocomplete.mjs +2 -2
  153. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  154. package/fesm2022/koobiq-components-badge.mjs +2 -2
  155. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  156. package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
  157. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  158. package/fesm2022/koobiq-components-button.mjs +38 -8
  159. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  160. package/fesm2022/koobiq-components-checkbox.mjs +2 -2
  161. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  162. package/fesm2022/koobiq-components-code-block.mjs +4 -4
  163. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  164. package/fesm2022/koobiq-components-core.mjs +9 -9
  165. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  166. package/fesm2022/koobiq-components-datepicker.mjs +10 -10
  167. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  168. package/fesm2022/koobiq-components-divider.mjs +2 -2
  169. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  170. package/fesm2022/koobiq-components-dl.mjs +2 -2
  171. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  172. package/fesm2022/koobiq-components-dropdown.mjs +4 -4
  173. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  174. package/fesm2022/koobiq-components-empty-state.mjs +2 -2
  175. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
  176. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  177. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  178. package/fesm2022/koobiq-components-form-field.mjs +12 -12
  179. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  180. package/fesm2022/koobiq-components-icon.mjs +6 -6
  181. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  182. package/fesm2022/koobiq-components-list.mjs +4 -4
  183. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  184. package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
  185. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  186. package/fesm2022/koobiq-components-markdown.mjs +2 -2
  187. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  188. package/fesm2022/koobiq-components-modal.mjs +4 -6
  189. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  190. package/fesm2022/koobiq-components-navbar.mjs +6 -6
  191. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  192. package/fesm2022/koobiq-components-popover.mjs +4 -4
  193. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  194. package/fesm2022/koobiq-components-progress-bar.mjs +2 -2
  195. package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
  196. package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
  197. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  198. package/fesm2022/koobiq-components-radio.mjs +2 -2
  199. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  200. package/fesm2022/koobiq-components-risk-level.mjs +2 -2
  201. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
  202. package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
  203. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  204. package/fesm2022/koobiq-components-select.mjs +2 -2
  205. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  206. package/fesm2022/koobiq-components-sidepanel.mjs +2 -2
  207. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  208. package/fesm2022/koobiq-components-splitter.mjs +2 -2
  209. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  210. package/fesm2022/koobiq-components-table.mjs +2 -2
  211. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  212. package/fesm2022/koobiq-components-tabs.mjs +6 -6
  213. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  214. package/fesm2022/koobiq-components-tags.mjs +4 -4
  215. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  216. package/fesm2022/koobiq-components-timezone.mjs +4 -4
  217. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  218. package/fesm2022/koobiq-components-toast.mjs +4 -4
  219. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  220. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  221. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  222. package/fesm2022/koobiq-components-tooltip.mjs +2 -2
  223. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  224. package/fesm2022/koobiq-components-tree-select.mjs +2 -2
  225. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  226. package/fesm2022/koobiq-components-tree.mjs +8 -8
  227. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  228. package/file-upload/_file-upload-theme.scss +27 -29
  229. package/file-upload/multiple-file-upload.component.scss +26 -26
  230. package/file-upload/single-file-upload.component.scss +8 -8
  231. package/form-field/_form-field-theme.scss +14 -14
  232. package/form-field/_hint-theme.scss +2 -2
  233. package/form-field/cleaner.scss +2 -2
  234. package/form-field/form-field.scss +10 -10
  235. package/form-field/hint.scss +4 -4
  236. package/form-field/password-toggle.scss +2 -2
  237. package/form-field/stepper.scss +3 -3
  238. package/icon/_icon-button-theme.scss +26 -26
  239. package/icon/_icon-item-theme.scss +2 -2
  240. package/icon/_icon-theme.scss +6 -6
  241. package/icon/icon-button.scss +2 -4
  242. package/icon/icon-item.scss +2 -4
  243. package/input/input.scss +2 -2
  244. package/link/_link-theme.scss +11 -11
  245. package/list/_list-theme.scss +6 -6
  246. package/list/list.scss +1 -1
  247. package/loader-overlay/_loader-overlay-theme.scss +6 -6
  248. package/loader-overlay/loader-overlay.scss +8 -8
  249. package/markdown/_markdown-theme.scss +27 -27
  250. package/markdown/markdown-tokens.scss +17 -17
  251. package/markdown/markdown.scss +29 -29
  252. package/modal/_modal-confirm.scss +1 -1
  253. package/modal/_modal-theme.scss +9 -12
  254. package/modal/modal.scss +12 -13
  255. package/navbar/_navbar-item_horizontal.scss +20 -20
  256. package/navbar/_navbar-item_vertical.scss +28 -28
  257. package/navbar/_navbar-theme.scss +8 -8
  258. package/navbar/navbar-brand.scss +23 -23
  259. package/navbar/navbar-divider.scss +3 -3
  260. package/navbar/navbar-item.scss +6 -6
  261. package/navbar/navbar.scss +1 -1
  262. package/navbar/vertical-navbar.scss +2 -2
  263. package/package.json +13 -6
  264. package/popover/_popover-theme.scss +7 -7
  265. package/popover/popover.scss +17 -18
  266. package/prebuilt-themes/dark-theme.css +1 -1
  267. package/prebuilt-themes/light-theme.css +1 -1
  268. package/prebuilt-themes/theme.css +1 -1
  269. package/progress-bar/_progress-bar-theme.scss +4 -4
  270. package/progress-bar/progress-bar.scss +5 -5
  271. package/progress-spinner/_progress-spinner-theme.scss +3 -3
  272. package/progress-spinner/progress-spinner.scss +7 -7
  273. package/radio/_radio-theme.scss +9 -9
  274. package/radio/radio.scss +14 -14
  275. package/risk-level/_risk-level-theme.scss +5 -5
  276. package/risk-level/risk-level.component.scss +3 -3
  277. package/schematics/ng-add/index.js +21 -4
  278. package/scrollbar/_scrollbar-component-theme.scss +12 -12
  279. package/scrollbar/scrollbar.component.scss +6 -6
  280. package/select/_select-theme.scss +9 -9
  281. package/select/select.scss +2 -2
  282. package/sidepanel/_sidepanel-theme.scss +4 -4
  283. package/sidepanel/sidepanel.scss +14 -16
  284. package/splitter/_splitter-theme.scss +1 -1
  285. package/table/_table-theme.scss +5 -5
  286. package/table/table.scss +12 -12
  287. package/tabs/_tabs-common.scss +3 -3
  288. package/tabs/_tabs-theme.scss +13 -13
  289. package/tabs/tab-group.scss +1 -1
  290. package/tabs/tab-header.scss +3 -2
  291. package/tabs/tab-nav-bar/tab-nav-bar.scss +1 -1
  292. package/tags/_tag-theme.scss +5 -5
  293. package/tags/tag-list.scss +5 -5
  294. package/tags/tag.scss +4 -4
  295. package/textarea/textarea.scss +2 -2
  296. package/timepicker/timepicker.scss +1 -1
  297. package/timezone/_timezone-option-theme.scss +3 -3
  298. package/timezone/timezone-option.component.scss +4 -4
  299. package/timezone/timezone-select.component.scss +1 -1
  300. package/toast/_toast-theme.scss +4 -4
  301. package/toast/toast-container.component.scss +3 -3
  302. package/toast/toast.component.scss +21 -21
  303. package/toggle/_toggle-theme.scss +8 -8
  304. package/toggle/toggle.scss +8 -8
  305. package/tooltip/_tooltip-theme.scss +5 -5
  306. package/tooltip/tooltip.scss +7 -7
  307. package/tree/_tree-theme.scss +6 -6
  308. package/tree/toggle.scss +2 -2
  309. package/tree/tree-option.scss +4 -4
  310. package/tree-select/_tree-select-theme.scss +7 -7
@@ -4,8 +4,8 @@
4
4
 
5
5
  @use './code-block-theme' as *;
6
6
 
7
- $border-radius: kbq-css-variable(code-block-size-container-border-radius);
8
- $border-width: kbq-css-variable(code-block-size-container-border-width);
7
+ $border-radius: var(--kbq-code-block-size-container-border-radius);
8
+ $border-width: var(--kbq-code-block-size-container-border-width);
9
9
 
10
10
  .kbq-code-block {
11
11
  display: block;
@@ -26,10 +26,9 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
26
26
  // 4 buttons + margin
27
27
  $buttons-margin: calc(32 * 4) + 24px;
28
28
 
29
- padding: calc(kbq-css-variable(code-block-size-header-padding-vertical) - $border-width)
29
+ padding: calc(var(--kbq-code-block-size-header-padding-vertical) - $border-width)
30
30
  kbq-sum-series-css-variables([code-block-size-header-padding-right, $buttons-margin])
31
- kbq-css-variable(code-block-size-header-padding-vertical)
32
- kbq-css-variable(code-block-size-header-padding-left);
31
+ var(--kbq-code-block-size-header-padding-vertical) var(--kbq-code-block-size-header-padding-left);
33
32
 
34
33
  border-width: $border-width $border-width 0 $border-width;
35
34
  border-style: solid;
@@ -39,7 +38,7 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
39
38
  &:has(.kbq-code-block__show-more) {
40
39
  .kbq-code-block__code {
41
40
  & > code {
42
- padding-bottom: kbq-css-variable(size-3xl) !important;
41
+ padding-bottom: var(--kbq-size-3xl) !important;
43
42
  overflow-x: scroll;
44
43
  }
45
44
  }
@@ -55,10 +54,10 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
55
54
 
56
55
  .kbq-code-block__code {
57
56
  > code {
58
- padding: kbq-css-variable(code-block-size-with-header-content-padding-top)
59
- kbq-css-variable(code-block-size-with-header-content-padding-horizontal)
60
- kbq-css-variable(code-block-size-with-header-content-padding-bottom)
61
- kbq-css-variable(code-block-size-with-header-content-padding-horizontal);
57
+ padding: var(--kbq-code-block-size-with-header-content-padding-top)
58
+ var(--kbq-code-block-size-with-header-content-padding-horizontal)
59
+ var(--kbq-code-block-size-with-header-content-padding-bottom)
60
+ var(--kbq-code-block-size-with-header-content-padding-horizontal);
62
61
 
63
62
  border-radius: $border-radius;
64
63
 
@@ -68,7 +67,7 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
68
67
  }
69
68
 
70
69
  .hljs-ln-numbers {
71
- padding-right: kbq-css-variable(code-block-size-with-header-content-content-gap-horizontal);
70
+ padding-right: var(--kbq-code-block-size-with-header-content-content-gap-horizontal);
72
71
  }
73
72
  }
74
73
 
@@ -110,12 +109,12 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
110
109
  position: relative;
111
110
 
112
111
  & > code {
113
- padding: kbq-css-variable(code-block-size-no-header-content-padding-vertical)
114
- kbq-css-variable(code-block-size-no-header-content-padding-horizontal);
112
+ padding: var(--kbq-code-block-size-no-header-content-padding-vertical)
113
+ var(--kbq-code-block-size-no-header-content-padding-horizontal);
115
114
  }
116
115
 
117
116
  .hljs-ln-numbers {
118
- padding-right: kbq-css-variable(code-block-size-no-header-content-content-gap-horizontal);
117
+ padding-right: var(--kbq-code-block-size-no-header-content-content-gap-horizontal);
119
118
  }
120
119
  }
121
120
  }
@@ -183,19 +182,19 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
183
182
  border-radius: $border-radius;
184
183
 
185
184
  &.kbq-code-block__show-more_collapsed {
186
- padding-top: kbq-css-variable(code-block-size-collapse-collapsed-padding-top);
185
+ padding-top: var(--kbq-code-block-size-collapse-collapsed-padding-top);
187
186
 
188
- padding-bottom: kbq-css-variable(code-block-size-collapse-collapsed-padding-bottom);
187
+ padding-bottom: var(--kbq-code-block-size-collapse-collapsed-padding-bottom);
189
188
  }
190
189
 
191
190
  &.kbq-code-block__show-more_expanded {
192
- padding-top: kbq-css-variable(code-block-size-collapse-expanded-padding-top);
191
+ padding-top: var(--kbq-code-block-size-collapse-expanded-padding-top);
193
192
 
194
- margin-bottom: kbq-css-variable(code-block-size-collapse-expanded-padding-bottom);
193
+ margin-bottom: var(--kbq-code-block-size-collapse-expanded-padding-bottom);
195
194
  }
196
195
 
197
196
  .bg-wrapper {
198
- border-radius: kbq-css-variable(button-size-border-radius);
197
+ border-radius: var(--kbq-button-size-border-radius);
199
198
  }
200
199
  }
201
200
 
@@ -7,11 +7,11 @@
7
7
  @include kbq-form-geometry();
8
8
 
9
9
  .kbq-form__label {
10
- color: kbq-css-variable(forms-label);
10
+ color: var(--kbq-forms-label);
11
11
  }
12
12
 
13
13
  .kbq-form__legend {
14
- color: kbq-css-variable(forms-legend);
14
+ color: var(--kbq-forms-legend);
15
15
  }
16
16
  }
17
17
 
@@ -12,11 +12,11 @@
12
12
  }
13
13
 
14
14
  .kbq-form-horizontal {
15
- $line-height: kbq-css-variable(forms-font-label-line-height);
16
- $form-field-size-height: kbq-css-variable(form-field-size-height);
15
+ $line-height: var(--kbq-forms-font-label-line-height);
16
+ $form-field-size-height: var(--kbq-form-field-size-height);
17
17
 
18
18
  & .kbq-form-row_margin {
19
- margin-bottom: kbq-css-variable(forms-size-horizontal-row-margin-bottom);
19
+ margin-bottom: var(--kbq-forms-size-horizontal-row-margin-bottom);
20
20
  }
21
21
 
22
22
  & .kbq-form__label {
@@ -26,12 +26,12 @@
26
26
  }
27
27
 
28
28
  & .kbq-form__control {
29
- padding-left: kbq-css-variable(forms-size-horizontal-control-padding-left);
29
+ padding-left: var(--kbq-forms-size-horizontal-control-padding-left);
30
30
  }
31
31
 
32
32
  & .kbq-form__legend {
33
- margin-top: kbq-css-variable(forms-size-horizontal-legend-margin-top);
34
- margin-bottom: kbq-css-variable(forms-size-horizontal-legend-margin-bottom);
33
+ margin-top: var(--kbq-forms-size-horizontal-legend-margin-top);
34
+ margin-bottom: var(--kbq-forms-size-horizontal-legend-margin-bottom);
35
35
  }
36
36
  }
37
37
 
@@ -41,12 +41,12 @@
41
41
  }
42
42
 
43
43
  & .kbq-form-row_margin {
44
- margin-bottom: kbq-css-variable(forms-size-vertical-row-margin-bottom);
44
+ margin-bottom: var(--kbq-forms-size-vertical-row-margin-bottom);
45
45
  }
46
46
 
47
47
  & .kbq-form__label {
48
- padding-top: kbq-css-variable(forms-size-vertical-label-padding-top);
49
- padding-bottom: kbq-css-variable(forms-size-vertical-label-padding-bottom);
48
+ padding-top: var(--kbq-forms-size-vertical-label-padding-top);
49
+ padding-bottom: var(--kbq-forms-size-vertical-label-padding-bottom);
50
50
 
51
51
  text-align: start;
52
52
  }
@@ -56,8 +56,8 @@
56
56
  }
57
57
 
58
58
  & .kbq-form__legend {
59
- margin-top: kbq-css-variable(forms-size-vertical-legend-margin-top);
60
- margin-bottom: kbq-css-variable(forms-size-vertical-legend-margin-bottom);
59
+ margin-top: var(--kbq-forms-size-vertical-legend-margin-top);
60
+ margin-bottom: var(--kbq-forms-size-vertical-legend-margin-bottom);
61
61
  }
62
62
  }
63
63
 
@@ -70,7 +70,7 @@
70
70
  flex-direction: row;
71
71
 
72
72
  & .kbq-form__row:not(:first-child) {
73
- padding-left: kbq-css-variable(forms-size-vertical-control-padding-left);
73
+ padding-left: var(--kbq-forms-size-vertical-control-padding-left);
74
74
  }
75
75
  }
76
76
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  @mixin kbq-optgroup-theme() {
4
4
  .kbq-optgroup-label {
5
- color: kbq-css-variable(foreground-contrast);
5
+ color: var(--kbq-foreground-contrast);
6
6
  }
7
7
 
8
8
  .kbq-disabled .kbq-optgroup-label {
9
- color: kbq-css-variable(foreground-text-disabled);
9
+ color: var(--kbq-foreground-text-disabled);
10
10
  }
11
11
  }
12
12
 
@@ -3,28 +3,28 @@
3
3
  @mixin kbq-option-action-theme() {
4
4
  .kbq-option-action {
5
5
  &.cdk-keyboard-focused {
6
- border-color: kbq-css-variable(states-focused-color);
6
+ border-color: var(--kbq-states-focused-color);
7
7
  }
8
8
 
9
9
  &:active,
10
10
  &.kbq-pressed {
11
11
  & .kbq-icon {
12
- color: kbq-css-variable(states-icon-contrast-fade-active);
12
+ color: var(--kbq-states-icon-contrast-fade-active);
13
13
  }
14
14
 
15
- background-color: kbq-css-variable(background-transparent);
15
+ background-color: var(--kbq-background-transparent);
16
16
  }
17
17
 
18
18
  &:hover .kbq-icon {
19
- color: kbq-css-variable(states-icon-contrast-fade-hover);
19
+ color: var(--kbq-states-icon-contrast-fade-hover);
20
20
  }
21
21
 
22
22
  &.kbq-disabled {
23
23
  & .kbq-icon {
24
- color: kbq-css-variable(states-icon-disabled);
24
+ color: var(--kbq-states-icon-disabled);
25
25
  }
26
26
 
27
- background-color: kbq-css-variable(background-transparent);
27
+ background-color: var(--kbq-background-transparent);
28
28
  }
29
29
  }
30
30
  }
@@ -1,18 +1,18 @@
1
1
  @use '../styles/common/tokens' as *;
2
2
 
3
3
  @mixin kbq-option($style-name) {
4
- background: kbq-css-variable(list-#{$style-name}-container-background);
4
+ background: var(--kbq-list-#{$style-name}-container-background);
5
5
 
6
6
  .kbq-option-text {
7
- color: kbq-css-variable(list-#{$style-name}-text-color);
7
+ color: var(--kbq-list-#{$style-name}-text-color);
8
8
  }
9
9
 
10
10
  .kbq-option-action .kbq-icon {
11
- color: kbq-css-variable(list-#{$style-name}-icon-button-color);
11
+ color: var(--kbq-list-#{$style-name}-icon-button-color);
12
12
  }
13
13
 
14
14
  .kbq-option-caption {
15
- color: kbq-css-variable(list-#{$style-name}-caption-color);
15
+ color: var(--kbq-list-#{$style-name}-caption-color);
16
16
  }
17
17
  }
18
18
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  &.kbq-focused,
28
28
  &.kbq-active {
29
- border-color: kbq-css-variable(list-states-focused-focus-outline-color);
29
+ border-color: var(--kbq-list-states-focused-focus-outline-color);
30
30
  }
31
31
 
32
32
  &.kbq-selected {
@@ -14,8 +14,8 @@
14
14
 
15
15
  margin-right: -2px;
16
16
 
17
- width: kbq-css-variable(list-font-text-line-height);
18
- height: kbq-css-variable(list-font-text-line-height);
17
+ width: var(--kbq-list-font-text-line-height);
18
+ height: var(--kbq-list-font-text-line-height);
19
19
 
20
20
  cursor: pointer;
21
21
 
@@ -4,7 +4,7 @@
4
4
  @use './optgroup-theme' as *;
5
5
 
6
6
  .kbq-optgroup-label {
7
- padding-left: kbq-css-variable(size-m);
7
+ padding-left: var(--kbq-size-m);
8
8
 
9
9
  @include vendor-prefixes.user-select(none);
10
10
  cursor: default;
@@ -5,28 +5,28 @@
5
5
  @mixin kbq-pseudo-checkbox-color($style-name) {
6
6
  $base: checkbox-#{$style-name};
7
7
 
8
- border-color: kbq-css-variable(#{$base}-default-border);
9
- background: kbq-css-variable(#{$base}-default-background);
8
+ border-color: var(--kbq-#{$base}-default-border);
9
+ background: var(--kbq-#{$base}-default-background);
10
10
 
11
11
  & .kbq-checkbox-checkmark,
12
12
  & .kbq-checkbox-mixedmark {
13
- color: kbq-css-variable(#{$base}-default-color);
13
+ color: var(--kbq-#{$base}-default-color);
14
14
  }
15
15
 
16
16
  &.kbq-checked,
17
17
  &.kbq-indeterminate {
18
- border-color: kbq-css-variable(#{$base}-states-checked-border);
19
- background: kbq-css-variable(#{$base}-states-checked-background);
18
+ border-color: var(--kbq-#{$base}-states-checked-border);
19
+ background: var(--kbq-#{$base}-states-checked-background);
20
20
  }
21
21
 
22
22
  &.kbq-disabled {
23
23
  & .kbq-checkbox-checkmark,
24
24
  & .kbq-checkbox-mixedmark {
25
- color: kbq-css-variable(#{$base}-states-disabled-color);
25
+ color: var(--kbq-#{$base}-states-disabled-color);
26
26
  }
27
27
 
28
- border-color: kbq-css-variable(#{$base}-states-disabled-border);
29
- background: kbq-css-variable(#{$base}-states-disabled-background);
28
+ border-color: var(--kbq-#{$base}-states-disabled-border);
29
+ background: var(--kbq-#{$base}-states-disabled-background);
30
30
  }
31
31
  }
32
32
 
@@ -61,7 +61,7 @@
61
61
  --kbq-checkbox-theme-states-checked-focused-border: var(--kbq-states-line-focus-theme);
62
62
  --kbq-checkbox-theme-states-checked-focused-background: var(--kbq-background-theme);
63
63
  --kbq-checkbox-theme-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-theme);
64
- --kbq-checkbox-theme-states-disabled-border: var(--kbq-line-contrast-fade);
64
+ --kbq-checkbox-theme-states-disabled-border: var(--kbq-states-line-disabled);
65
65
  --kbq-checkbox-theme-states-disabled-color: var(--kbq-states-icon-disabled);
66
66
  --kbq-checkbox-theme-states-disabled-text: var(--kbq-states-foreground-disabled);
67
67
  --kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
@@ -83,7 +83,7 @@
83
83
  --kbq-checkbox-error-states-checked-focused-border: var(--kbq-states-line-focus-error);
84
84
  --kbq-checkbox-error-states-checked-focused-background: var(--kbq-background-error);
85
85
  --kbq-checkbox-error-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-error);
86
- --kbq-checkbox-error-states-disabled-border: var(--kbq-line-contrast-fade);
86
+ --kbq-checkbox-error-states-disabled-border: var(--kbq-states-line-disabled);
87
87
  --kbq-checkbox-error-states-disabled-color: var(--kbq-states-icon-disabled);
88
88
  --kbq-checkbox-error-states-disabled-text: var(--kbq-states-foreground-disabled);
89
89
  --kbq-checkbox-error-states-disabled-background: var(--kbq-states-background-disabled);
@@ -13,12 +13,12 @@
13
13
  align-items: center;
14
14
  justify-content: center;
15
15
 
16
- width: kbq-css-variable(checkbox-size-normal-width);
17
- height: kbq-css-variable(checkbox-size-normal-width);
16
+ width: var(--kbq-checkbox-size-normal-width);
17
+ height: var(--kbq-checkbox-size-normal-width);
18
18
 
19
19
  border: {
20
- radius: kbq-css-variable(checkbox-size-normal-border-radius);
21
- width: kbq-css-variable(checkbox-size-normal-border-width);
20
+ radius: var(--kbq-checkbox-size-normal-border-radius);
21
+ width: var(--kbq-checkbox-size-normal-border-width);
22
22
  style: solid;
23
23
  }
24
24
 
@@ -55,12 +55,12 @@
55
55
  }
56
56
 
57
57
  .kbq-pseudo-checkbox.kbq-pseudo-checkbox_big {
58
- width: kbq-css-variable(checkbox-size-big-width);
59
- height: kbq-css-variable(checkbox-size-big-width);
58
+ width: var(--kbq-checkbox-size-big-width);
59
+ height: var(--kbq-checkbox-size-big-width);
60
60
 
61
61
  border: {
62
- radius: kbq-css-variable(checkbox-size-big-border-radius);
63
- width: kbq-css-variable(checkbox-size-big-border-width);
62
+ radius: var(--kbq-checkbox-size-big-border-radius);
63
+ width: var(--kbq-checkbox-size-big-border-width);
64
64
  }
65
65
  }
66
66
 
@@ -45,7 +45,7 @@ $tokens: meta.module-variables(tokens) !default;
45
45
  }
46
46
 
47
47
  .kbq-group-item + .kbq-group-item {
48
- margin-left: calc(-1 * #{kbq-css-variable(button-size-border-width)});
48
+ margin-left: calc(-1 * #{var(--kbq-button-size-border-width)});
49
49
  }
50
50
 
51
51
  & > .kbq-group-item:first-child:not(:last-child) {
@@ -81,7 +81,7 @@ $tokens: meta.module-variables(tokens) !default;
81
81
  &:first-child:not(:last-child) {
82
82
  @include border-bottom-radius(0);
83
83
 
84
- border-top-right-radius: kbq-css-variable(button-size-border-radius);
84
+ border-top-right-radius: var(--kbq-button-size-border-radius);
85
85
 
86
86
  > .kbq-form-field__container {
87
87
  @include border-bottom-radius(0);
@@ -91,7 +91,7 @@ $tokens: meta.module-variables(tokens) !default;
91
91
  &:last-child:not(:first-child) {
92
92
  @include border-top-radius(0);
93
93
 
94
- border-bottom-left-radius: kbq-css-variable(button-size-border-radius);
94
+ border-bottom-left-radius: var(--kbq-button-size-border-radius);
95
95
 
96
96
  > .kbq-form-field__container {
97
97
  @include border-top-radius(0);
@@ -108,6 +108,6 @@ $tokens: meta.module-variables(tokens) !default;
108
108
  }
109
109
 
110
110
  .kbq-group-item + .kbq-group-item {
111
- margin-top: calc(-1 * #{kbq-css-variable(button-size-border-width)});
111
+ margin-top: calc(-1 * #{var(--kbq-button-size-border-width)});
112
112
  }
113
113
  }
@@ -64,21 +64,21 @@
64
64
  outline: none;
65
65
  -webkit-tap-highlight-color: transparent;
66
66
  min-height: 32px;
67
- gap: kbq-css-variable(size-s);
67
+ gap: var(--kbq-size-s);
68
68
 
69
- border: kbq-css-variable(size-3xs) solid transparent;
69
+ border: var(--kbq-size-3xs) solid transparent;
70
70
 
71
- padding-top: kbq-css-variable(size-xxs);
72
- padding-left: kbq-css-variable(size-m);
73
- padding-right: kbq-css-variable(size-m);
74
- padding-bottom: kbq-css-variable(size-xxs);
71
+ padding-top: var(--kbq-size-xxs);
72
+ padding-left: var(--kbq-size-m);
73
+ padding-right: var(--kbq-size-m);
74
+ padding-bottom: var(--kbq-size-xxs);
75
75
 
76
76
  .kbq-list-text {
77
77
  @include kbq-list-text();
78
78
  }
79
79
 
80
80
  .kbq-list-option-caption {
81
- padding-top: kbq-css-variable(size-3xs);
81
+ padding-top: var(--kbq-size-3xs);
82
82
  }
83
83
  }
84
84
 
@@ -89,13 +89,13 @@
89
89
  box-sizing: border-box;
90
90
  min-height: 32px;
91
91
 
92
- border-left: kbq-css-variable(size-3xs) solid transparent;
93
- border-right: kbq-css-variable(size-3xs) solid transparent;
92
+ border-left: var(--kbq-size-3xs) solid transparent;
93
+ border-right: var(--kbq-size-3xs) solid transparent;
94
94
 
95
- padding-top: kbq-css-variable(size-xs);
96
- padding-left: kbq-css-variable(size-m);
97
- padding-right: kbq-css-variable(size-m);
98
- padding-bottom: kbq-css-variable(size-3xs);
95
+ padding-top: var(--kbq-size-xs);
96
+ padding-left: var(--kbq-size-m);
97
+ padding-right: var(--kbq-size-m);
98
+ padding-bottom: var(--kbq-size-3xs);
99
99
 
100
100
  .kbq-list-text {
101
101
  @include kbq-list-text();
@@ -109,13 +109,13 @@
109
109
  box-sizing: border-box;
110
110
  min-height: 32px;
111
111
 
112
- border-left: kbq-css-variable(size-3xs) solid transparent;
113
- border-right: kbq-css-variable(size-3xs) solid transparent;
112
+ border-left: var(--kbq-size-3xs) solid transparent;
113
+ border-right: var(--kbq-size-3xs) solid transparent;
114
114
 
115
- padding-top: kbq-css-variable(size-m);
116
- padding-left: kbq-css-variable(size-m);
117
- padding-right: kbq-css-variable(size-m);
118
- padding-bottom: kbq-css-variable(size-xxs);
115
+ padding-top: var(--kbq-size-m);
116
+ padding-left: var(--kbq-size-m);
117
+ padding-right: var(--kbq-size-m);
118
+ padding-bottom: var(--kbq-size-xxs);
119
119
 
120
120
  .kbq-list-text {
121
121
  @include kbq-list-text();
@@ -4,8 +4,8 @@
4
4
  @mixin popup-params($theme) {
5
5
  $popup: map.get($theme, components, popup);
6
6
 
7
- box-shadow: kbq-css-variable(popup-shadow, map.get($popup, shadow));
8
- border-color: kbq-css-variable(popup-border, map.get($popup, border));
7
+ box-shadow: var(--kbq-popup-shadow, map.get($popup, shadow));
8
+ border-color: var(--kbq-popup-border, map.get($popup, border));
9
9
 
10
- background-color: kbq-css-variable(popup-background, map.get($popup, background));
10
+ background-color: var(--kbq-popup-background, map.get($popup, background));
11
11
  }
@@ -42,7 +42,7 @@ $tokens: meta.module-variables(tokens) !default;
42
42
 
43
43
  height: kbq-difference-series-css-variables(
44
44
  [form-field-size-height,
45
- calc(kbq-css-variable(form-field-size-border-width) * 2)]
45
+ calc(var(--kbq-form-field-size-border-width) * 2)]
46
46
  );
47
47
  }
48
48
 
@@ -83,17 +83,17 @@ $tokens: meta.module-variables(tokens) !default;
83
83
 
84
84
  height: kbq-difference-series-css-variables(
85
85
  [form-field-size-height,
86
- calc(kbq-css-variable(select-size-multiple-padding-vertical) * 2)]
86
+ calc(var(--kbq-select-size-multiple-padding-vertical) * 2)]
87
87
  );
88
88
 
89
89
  max-height: kbq-difference-series-css-variables(
90
90
  [form-field-size-height,
91
- calc(kbq-css-variable(select-size-multiple-padding-vertical) * 2)]
91
+ calc(var(--kbq-select-size-multiple-padding-vertical) * 2)]
92
92
  );
93
93
 
94
- gap: kbq-css-variable(select-size-multiple-content-gap);
94
+ gap: var(--kbq-select-size-multiple-content-gap);
95
95
 
96
- margin-right: kbq-css-variable(select-size-multiple-content-gap);
96
+ margin-right: var(--kbq-select-size-multiple-content-gap);
97
97
  }
98
98
  }
99
99
  }
@@ -108,7 +108,7 @@ $tokens: meta.module-variables(tokens) !default;
108
108
  flex: 0 0 70px;
109
109
  align-self: center;
110
110
  padding-left: 4px;
111
- padding-right: kbq-css-variable(select-size-multiple-content-gap);
111
+ padding-right: var(--kbq-select-size-multiple-content-gap);
112
112
 
113
113
  text-align: right;
114
114
  }
@@ -146,7 +146,7 @@ $tokens: meta.module-variables(tokens) !default;
146
146
 
147
147
  overflow: hidden;
148
148
 
149
- border-radius: kbq-css-variable(select-panel-size-border-radius);
149
+ border-radius: var(--kbq-select-panel-size-border-radius);
150
150
 
151
151
  // Override optgroup and option to scale based on font-size of the trigger.
152
152
  .kbq-optgroup-label,
@@ -163,15 +163,15 @@ $tokens: meta.module-variables(tokens) !default;
163
163
  position: relative;
164
164
 
165
165
  max-width: 100%;
166
- height: kbq-css-variable(option-size-height);
166
+ height: var(--kbq-option-size-height);
167
167
 
168
168
  cursor: default;
169
169
  outline: none;
170
170
 
171
- padding-left: kbq-css-variable(option-size-horizontal-padding);
172
- padding-right: kbq-css-variable(option-size-horizontal-padding);
171
+ padding-left: var(--kbq-option-size-horizontal-padding);
172
+ padding-right: var(--kbq-option-size-horizontal-padding);
173
173
 
174
- border: kbq-css-variable(option-size-border-width) solid transparent;
174
+ border: var(--kbq-option-size-border-width) solid transparent;
175
175
  }
176
176
 
177
177
  .kbq-select__search-container {
@@ -183,7 +183,7 @@ $tokens: meta.module-variables(tokens) !default;
183
183
  }
184
184
 
185
185
  %kbq-select-content {
186
- max-height: kbq-css-variable(select-panel-size-max-height);
186
+ max-height: var(--kbq-select-panel-size-max-height);
187
187
  padding: 4px 0;
188
188
  overflow: hidden auto;
189
189
  }
@@ -198,5 +198,5 @@ $tokens: meta.module-variables(tokens) !default;
198
198
  border-top-width: 1px;
199
199
  border-top-style: solid;
200
200
 
201
- padding: kbq-css-variable(size-xxs) kbq-css-variable(size-m);
201
+ padding: var(--kbq-size-xxs) var(--kbq-size-m);
202
202
  }
@@ -7,23 +7,12 @@
7
7
 
8
8
  $tokens: meta.module-variables(tokens) !default;
9
9
 
10
- @function kbq-css-variable($name, $value: null) {
11
- @if $value {
12
- @return var(--kbq-#{$name}, $value);
13
- } @else {
14
- @return var(--kbq-#{$name}, map.get($tokens, $name));
15
- }
16
- }
17
-
18
10
  @function getToken($name) {
19
11
  @return map.get($tokens, $name);
20
12
  }
21
13
 
22
14
  @mixin kbq-css-font-variable($component, $component-property, $font-property, $font) {
23
- #{$font-property}: var(
24
- --kbq-#{$component}-#{$font}#{$component-property}-#{$font-property},
25
- map.get($tokens, #{$component}-#{$font}#{$component-property}-#{$font-property})
26
- );
15
+ #{$font-property}: var(--kbq-#{$component}-#{$font}#{$component-property}-#{$font-property});
27
16
  }
28
17
 
29
18
  @mixin kbq-typography-css-variables($component, $property) {
@@ -53,13 +42,13 @@ $tokens: meta.module-variables(tokens) !default;
53
42
  @if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
54
43
  $sum: $variable;
55
44
  } @else {
56
- $sum: kbq-css-variable($variable);
45
+ $sum: var(--kbq-#{$variable});
57
46
  }
58
47
  } @else {
59
48
  @if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
60
49
  $sum: calc($sum + $variable);
61
50
  } @else {
62
- $sum: calc($sum + kbq-css-variable($variable));
51
+ $sum: calc($sum + var(--kbq-#{$variable}));
63
52
  }
64
53
  }
65
54
  }
@@ -73,13 +62,13 @@ $tokens: meta.module-variables(tokens) !default;
73
62
  @if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
74
63
  $difference: $variable;
75
64
  } @else {
76
- $difference: kbq-css-variable($variable);
65
+ $difference: var(--kbq-#{$variable});
77
66
  }
78
67
  } @else {
79
68
  @if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
80
69
  $difference: calc($difference - $variable);
81
70
  } @else {
82
- $difference: calc($difference - kbq-css-variable($variable));
71
+ $difference: calc($difference - var(--kbq-#{$variable}));
83
72
  }
84
73
  }
85
74
  }
@@ -89,11 +78,11 @@ $tokens: meta.module-variables(tokens) !default;
89
78
  @function kbq-css-half-difference($outer, $inner, $border: null) {
90
79
  @if $border {
91
80
  @if (meta.type-of($border) == number or meta.type-of($border) == calculation) {
92
- @return calc((kbq-css-variable($outer) - kbq-css-variable($inner) - $border * 2) / 2);
81
+ @return calc((var(--kbq-#{$outer}) - var(--kbq-#{$inner}) - $border * 2) / 2);
93
82
  } @else {
94
- @return calc((kbq-css-variable($outer) - kbq-css-variable($inner) - kbq-css-variable($border * 2)) / 2);
83
+ @return calc((var(--kbq-#{$outer}) - var(--kbq-#{$inner}) - var(--kbq-#{$border} * 2)) / 2);
95
84
  }
96
85
  } @else {
97
- @return calc((kbq-css-variable($outer) - kbq-css-variable($inner)) / 2);
86
+ @return calc((var(--kbq-#{$outer}) - var(--kbq-#{$inner})) / 2);
98
87
  }
99
88
  }