@koobiq/components 17.0.0-beta.2 → 17.0.0-rc.10

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 (369) hide show
  1. package/README.md +1 -2
  2. package/alert/_alert-theme.scss +48 -24
  3. package/alert/alert.component.d.ts +23 -3
  4. package/alert/alert.component.scss +91 -59
  5. package/autocomplete/_autocomplete-theme.scss +3 -3
  6. package/autocomplete/autocomplete.scss +8 -18
  7. package/badge/_badge-theme.scss +30 -45
  8. package/badge/badge.component.scss +18 -39
  9. package/button/_button-base.scss +7 -14
  10. package/button/_button-theme.scss +30 -86
  11. package/button/button.component.d.ts +3 -2
  12. package/button/button.scss +7 -17
  13. package/button-toggle/_button-toggle-theme.scss +19 -20
  14. package/button-toggle/button-toggle.scss +17 -44
  15. package/card/_card-theme.scss +18 -17
  16. package/card/card.component.scss +3 -6
  17. package/checkbox/_checkbox-theme.scss +50 -50
  18. package/checkbox/checkbox.scss +31 -35
  19. package/code-block/README.md +18 -14
  20. package/code-block/_code-block-theme.scss +53 -23
  21. package/code-block/actionbar.component.scss +11 -25
  22. package/code-block/code-block.component.d.ts +12 -4
  23. package/code-block/code-block.scss +62 -77
  24. package/core/form-field/form-field-ref.d.ts +2 -0
  25. package/core/forms/_forms-theme.scss +4 -8
  26. package/core/forms/_forms.scss +13 -43
  27. package/core/locales/formatters.d.ts +96 -0
  28. package/core/locales/locale-service.d.ts +97 -0
  29. package/core/option/_optgroup-theme.scss +4 -6
  30. package/core/option/_option-action-theme.scss +8 -11
  31. package/core/option/_option-theme.scss +15 -20
  32. package/core/option/optgroup.scss +0 -1
  33. package/core/option/option.scss +0 -1
  34. package/core/pop-up/_pop-up.scss +0 -1
  35. package/core/pop-up/pop-up-trigger.d.ts +3 -1
  36. package/core/select/common.d.ts +35 -0
  37. package/core/select/index.d.ts +1 -0
  38. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +15 -19
  39. package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -9
  40. package/core/services/theme.service.d.ts +3 -2
  41. package/core/styles/_core.scss +0 -1
  42. package/core/styles/_koobiq-theme.scss +5 -3
  43. package/core/styles/common/_animation.scss +9 -8
  44. package/core/styles/common/_button.scss +0 -2
  45. package/core/styles/common/_clearfix.scss +1 -1
  46. package/core/styles/common/_groups.scss +3 -9
  47. package/core/styles/common/_list.scss +28 -31
  48. package/core/styles/common/_overlay.scss +4 -3
  49. package/core/styles/common/_popup.scss +5 -5
  50. package/core/styles/common/_rtl.scss +4 -4
  51. package/core/styles/common/_select.scss +48 -42
  52. package/core/styles/common/_tokens.scss +47 -0
  53. package/core/styles/functions/_number.scss +14 -19
  54. package/core/styles/functions/_string.scss +18 -19
  55. package/core/styles/functions/_timing.scss +24 -24
  56. package/core/styles/theming/_components-theming.scss +1380 -1384
  57. package/core/styles/theming/_scrollbar-theme.scss +8 -5
  58. package/core/styles/theming/_theming.scss +26 -29
  59. package/core/styles/typography/_typography-utils.scss +1 -2
  60. package/core/styles/typography/_typography.scss +138 -85
  61. package/core/styles/visual/_body.scss +0 -2
  62. package/core/styles/visual/_layout.scss +44 -38
  63. package/core/utils/data-size/config.d.ts +20 -2
  64. package/core/utils/data-size/data-size.pipe.d.ts +10 -9
  65. package/core/utils/data-size/size.d.ts +3 -4
  66. package/datepicker/_datepicker-theme.scss +38 -40
  67. package/datepicker/calendar-body.scss +3 -11
  68. package/datepicker/calendar-header.scss +4 -10
  69. package/datepicker/calendar.scss +5 -17
  70. package/datepicker/datepicker-content.scss +5 -15
  71. package/datepicker/datepicker-input.scss +0 -5
  72. package/datepicker/datepicker-toggle.scss +3 -3
  73. package/divider/_divider-theme.scss +2 -1
  74. package/divider/divider.scss +9 -26
  75. package/dl/_dl-theme.scss +5 -8
  76. package/dl/dl.scss +5 -20
  77. package/dropdown/_dropdown-theme.scss +27 -22
  78. package/dropdown/dropdown-item.scss +5 -12
  79. package/dropdown/dropdown-trigger.directive.d.ts +2 -2
  80. package/dropdown/dropdown.scss +6 -15
  81. package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
  82. package/empty-state/README.md +0 -0
  83. package/empty-state/_empty-state-theme.scss +56 -0
  84. package/empty-state/empty-state.component.d.ts +31 -0
  85. package/empty-state/empty-state.module.d.ts +10 -0
  86. package/empty-state/empty-state.scss +81 -0
  87. package/empty-state/index.d.ts +1 -0
  88. package/empty-state/public-api.d.ts +2 -0
  89. package/esm2022/alert/alert.component.mjs +52 -5
  90. package/esm2022/badge/badge.component.mjs +2 -2
  91. package/esm2022/button/button.component.mjs +13 -6
  92. package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
  93. package/esm2022/checkbox/checkbox.mjs +2 -2
  94. package/esm2022/code-block/actionbar.component.mjs +2 -2
  95. package/esm2022/code-block/code-block.component.mjs +58 -14
  96. package/esm2022/core/animation/select-animations.mjs +4 -4
  97. package/esm2022/core/form-field/form-field-ref.mjs +1 -1
  98. package/esm2022/core/locales/formatters.mjs +97 -1
  99. package/esm2022/core/locales/locale-service.mjs +5 -2
  100. package/esm2022/core/option/option.mjs +2 -2
  101. package/esm2022/core/pop-up/pop-up-trigger.mjs +18 -11
  102. package/esm2022/core/select/common.mjs +120 -0
  103. package/esm2022/core/select/index.mjs +2 -1
  104. package/esm2022/core/services/theme.service.mjs +4 -1
  105. package/esm2022/core/utils/data-size/config.mjs +5 -17
  106. package/esm2022/core/utils/data-size/data-size.pipe.mjs +36 -22
  107. package/esm2022/core/utils/data-size/size.mjs +10 -14
  108. package/esm2022/core/version.mjs +2 -2
  109. package/esm2022/datepicker/calendar-header.component.mjs +1 -1
  110. package/esm2022/datepicker/datepicker-animations.mjs +2 -2
  111. package/esm2022/dropdown/dropdown-animations.mjs +4 -4
  112. package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
  113. package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
  114. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
  115. package/esm2022/empty-state/empty-state.component.mjs +104 -0
  116. package/esm2022/empty-state/empty-state.module.mjs +50 -0
  117. package/esm2022/empty-state/index.mjs +2 -0
  118. package/esm2022/empty-state/koobiq-components-empty-state.mjs +5 -0
  119. package/esm2022/empty-state/public-api.mjs +3 -0
  120. package/esm2022/file-upload/file-upload.mjs +15 -1
  121. package/esm2022/file-upload/file-upload.module.mjs +15 -5
  122. package/esm2022/file-upload/multiple-file-upload.component.mjs +98 -49
  123. package/esm2022/file-upload/single-file-upload.component.mjs +110 -54
  124. package/esm2022/form-field/form-field.mjs +2 -2
  125. package/esm2022/form-field/hint.mjs +2 -2
  126. package/esm2022/form-field/password-hint.mjs +2 -2
  127. package/esm2022/form-field/password-toggle.mjs +11 -9
  128. package/esm2022/icon/icon-item.component.mjs +16 -6
  129. package/esm2022/input/input-number.mjs +2 -2
  130. package/esm2022/list/list-selection.component.mjs +2 -2
  131. package/esm2022/list/list.component.mjs +2 -2
  132. package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
  133. package/esm2022/markdown/markdown.component.mjs +2 -2
  134. package/esm2022/modal/modal.component.mjs +8 -9
  135. package/esm2022/navbar/navbar-item.component.mjs +11 -11
  136. package/esm2022/navbar/navbar.component.mjs +2 -2
  137. package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
  138. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  139. package/esm2022/popover/popover.component.mjs +3 -3
  140. package/esm2022/radio/radio.component.mjs +2 -2
  141. package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
  142. package/esm2022/select/select-option.directive.mjs +7 -5
  143. package/esm2022/select/select.component.mjs +71 -125
  144. package/esm2022/select/select.module.mjs +28 -28
  145. package/esm2022/splitter/splitter.component.mjs +37 -17
  146. package/esm2022/table/table.component.mjs +29 -6
  147. package/esm2022/table/table.module.mjs +14 -6
  148. package/esm2022/tabs/tab-body.component.mjs +1 -1
  149. package/esm2022/tabs/tab-group.component.mjs +55 -13
  150. package/esm2022/tabs/tab-header.component.mjs +2 -2
  151. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  152. package/esm2022/tags/tag-default-options.mjs +1 -1
  153. package/esm2022/tags/tag-input.mjs +17 -3
  154. package/esm2022/tags/tag-list.component.mjs +2 -2
  155. package/esm2022/tags/tag.component.mjs +4 -4
  156. package/esm2022/textarea/textarea.component.mjs +12 -10
  157. package/esm2022/timepicker/timepicker.directive.mjs +11 -3
  158. package/esm2022/timezone/timezone-option.component.mjs +2 -2
  159. package/esm2022/timezone/timezone-option.directive.mjs +7 -5
  160. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  161. package/esm2022/title/title.directive.mjs +3 -4
  162. package/esm2022/toast/toast-container.component.mjs +2 -2
  163. package/esm2022/toast/toast.component.mjs +4 -4
  164. package/esm2022/toast/toast.service.mjs +18 -13
  165. package/esm2022/toast/toast.type.mjs +3 -1
  166. package/esm2022/tooltip/tooltip.component.mjs +28 -14
  167. package/esm2022/tree/padding.directive.mjs +2 -2
  168. package/esm2022/tree/tree-base.mjs +2 -2
  169. package/esm2022/tree/tree-option.component.mjs +2 -2
  170. package/esm2022/tree/tree-selection.component.mjs +6 -1
  171. package/esm2022/tree-select/tree-select.component.mjs +29 -44
  172. package/esm2022/tree-select/tree-select.module.mjs +31 -11
  173. package/fesm2022/koobiq-components-alert.mjs +52 -5
  174. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  175. package/fesm2022/koobiq-components-badge.mjs +2 -2
  176. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  177. package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
  178. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  179. package/fesm2022/koobiq-components-button.mjs +12 -5
  180. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  181. package/fesm2022/koobiq-components-checkbox.mjs +2 -2
  182. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  183. package/fesm2022/koobiq-components-code-block.mjs +57 -14
  184. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  185. package/fesm2022/koobiq-components-core.mjs +285 -67
  186. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  187. package/fesm2022/koobiq-components-datepicker.mjs +2 -2
  188. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  189. package/fesm2022/koobiq-components-dropdown.mjs +8 -8
  190. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  191. package/fesm2022/koobiq-components-ellipsis-center.mjs +5 -4
  192. package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
  193. package/fesm2022/koobiq-components-empty-state.mjs +157 -0
  194. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -0
  195. package/fesm2022/koobiq-components-file-upload.mjs +225 -97
  196. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  197. package/fesm2022/koobiq-components-form-field.mjs +21 -21
  198. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  199. package/fesm2022/koobiq-components-icon.mjs +14 -4
  200. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  201. package/fesm2022/koobiq-components-input.mjs +1 -1
  202. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  203. package/fesm2022/koobiq-components-list.mjs +4 -4
  204. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  205. package/fesm2022/koobiq-components-loader-overlay.mjs +1 -1
  206. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  207. package/fesm2022/koobiq-components-markdown.mjs +2 -2
  208. package/fesm2022/koobiq-components-modal.mjs +7 -8
  209. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  210. package/fesm2022/koobiq-components-navbar.mjs +14 -14
  211. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  212. package/fesm2022/koobiq-components-popover.mjs +4 -4
  213. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  214. package/fesm2022/koobiq-components-radio.mjs +2 -2
  215. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  216. package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
  217. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  218. package/fesm2022/koobiq-components-select.mjs +102 -155
  219. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  220. package/fesm2022/koobiq-components-splitter.mjs +36 -16
  221. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  222. package/fesm2022/koobiq-components-table.mjs +41 -10
  223. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  224. package/fesm2022/koobiq-components-tabs.mjs +57 -15
  225. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  226. package/fesm2022/koobiq-components-tags.mjs +21 -8
  227. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  228. package/fesm2022/koobiq-components-textarea.mjs +11 -9
  229. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  230. package/fesm2022/koobiq-components-timepicker.mjs +10 -2
  231. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  232. package/fesm2022/koobiq-components-timezone.mjs +11 -10
  233. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  234. package/fesm2022/koobiq-components-title.mjs +2 -3
  235. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  236. package/fesm2022/koobiq-components-toast.mjs +25 -17
  237. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  238. package/fesm2022/koobiq-components-tooltip.mjs +26 -13
  239. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  240. package/fesm2022/koobiq-components-tree-select.mjs +57 -51
  241. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  242. package/fesm2022/koobiq-components-tree.mjs +9 -4
  243. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  244. package/file-upload/_file-upload-theme.scss +124 -73
  245. package/file-upload/file-upload.d.ts +1 -1
  246. package/file-upload/file-upload.module.d.ts +11 -9
  247. package/file-upload/file-upload.scss +0 -6
  248. package/file-upload/multiple-file-upload.component.d.ts +38 -10
  249. package/file-upload/multiple-file-upload.component.scss +50 -120
  250. package/file-upload/single-file-upload.component.d.ts +40 -13
  251. package/file-upload/single-file-upload.component.scss +12 -33
  252. package/form-field/_form-field-theme.scss +46 -36
  253. package/form-field/_hint-theme.scss +15 -20
  254. package/form-field/cleaner.scss +3 -9
  255. package/form-field/form-field.scss +23 -26
  256. package/form-field/hint.scss +5 -8
  257. package/form-field/password-toggle.d.ts +3 -2
  258. package/form-field/password-toggle.scss +3 -10
  259. package/form-field/stepper.scss +4 -11
  260. package/icon/_icon-button-theme.scss +47 -36
  261. package/icon/_icon-item-theme.scss +47 -26
  262. package/icon/_icon-theme.scss +12 -14
  263. package/icon/icon-button.scss +5 -20
  264. package/icon/icon-item.component.d.ts +3 -1
  265. package/icon/icon-item.scss +10 -8
  266. package/icon/icon.scss +0 -6
  267. package/input/_input-theme.scss +6 -4
  268. package/input/input.scss +11 -10
  269. package/link/_link-theme.scss +30 -49
  270. package/list/_list-theme.scss +21 -19
  271. package/list/list.scss +2 -6
  272. package/loader-overlay/_loader-overlay-theme.scss +17 -18
  273. package/loader-overlay/loader-overlay.scss +9 -33
  274. package/markdown/_markdown-theme.scss +47 -47
  275. package/markdown/markdown.scss +41 -91
  276. package/modal/README.md +5 -4
  277. package/modal/_modal-animation.scss +0 -1
  278. package/modal/_modal-confirm.scss +2 -7
  279. package/modal/_modal-theme.scss +11 -13
  280. package/modal/modal.component.d.ts +1 -1
  281. package/modal/modal.scss +15 -31
  282. package/navbar/README.md +21 -20
  283. package/navbar/_navbar-item_horizontal.scss +28 -29
  284. package/navbar/_navbar-item_vertical.scss +31 -31
  285. package/navbar/_navbar-theme.scss +20 -24
  286. package/navbar/navbar-brand.scss +24 -27
  287. package/navbar/navbar-divider.scss +4 -8
  288. package/navbar/navbar-item.component.d.ts +4 -4
  289. package/navbar/navbar-item.scss +13 -15
  290. package/navbar/navbar.scss +2 -6
  291. package/navbar/vertical-navbar.scss +4 -6
  292. package/package.json +23 -16
  293. package/popover/README.md +18 -14
  294. package/popover/_popover-theme.scss +9 -17
  295. package/popover/popover.scss +15 -29
  296. package/prebuilt-themes/dark-theme.css +1 -1
  297. package/prebuilt-themes/light-theme.css +1 -1
  298. package/progress-bar/_progress-bar-theme.scss +7 -11
  299. package/progress-bar/progress-bar.scss +6 -19
  300. package/progress-spinner/_progress-spinner-theme.scss +6 -8
  301. package/progress-spinner/progress-spinner.scss +8 -18
  302. package/radio/_radio-theme.scss +36 -37
  303. package/radio/radio.scss +25 -40
  304. package/risk-level/_risk-level-theme.scss +25 -31
  305. package/risk-level/risk-level.component.scss +4 -10
  306. package/schematics/collection.json +11 -0
  307. package/schematics/ng-add/index.js +70 -0
  308. package/schematics/ng-add/schema.json +15 -0
  309. package/scrollbar/_scrollbar-component-theme.scss +15 -19
  310. package/scrollbar/scrollbar.component.scss +68 -63
  311. package/scrollbar/scrollbar.directive.d.ts +1 -0
  312. package/scrollbar/scrollbar.types.d.ts +1 -0
  313. package/select/_select-theme.scss +14 -16
  314. package/select/select-option.directive.d.ts +3 -2
  315. package/select/select.component.d.ts +12 -33
  316. package/select/select.module.d.ts +1 -1
  317. package/select/select.scss +3 -11
  318. package/sidepanel/_sidepanel-theme.scss +8 -10
  319. package/sidepanel/sidepanel.scss +20 -37
  320. package/splitter/_splitter-theme.scss +5 -6
  321. package/splitter/splitter.component.d.ts +10 -5
  322. package/splitter/splitter.scss +0 -1
  323. package/table/_table-theme.scss +16 -15
  324. package/table/table.component.d.ts +8 -1
  325. package/table/table.module.d.ts +1 -1
  326. package/table/table.scss +41 -42
  327. package/tabs/_tabs-common.scss +13 -15
  328. package/tabs/_tabs-theme.scss +76 -44
  329. package/tabs/tab-body.component.d.ts +1 -1
  330. package/tabs/tab-group.component.d.ts +9 -3
  331. package/tabs/tab-group.scss +2 -8
  332. package/tabs/tab-header.scss +0 -10
  333. package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -9
  334. package/tags/_tag-theme.scss +22 -27
  335. package/tags/tag-default-options.d.ts +1 -0
  336. package/tags/tag-input.d.ts +7 -1
  337. package/tags/tag-list.scss +15 -12
  338. package/tags/tag.component.d.ts +1 -1
  339. package/tags/tag.scss +5 -11
  340. package/textarea/_textarea-theme.scss +2 -5
  341. package/textarea/textarea.scss +5 -10
  342. package/timepicker/timepicker.directive.d.ts +1 -1
  343. package/timepicker/timepicker.scss +2 -8
  344. package/timezone/_timezone-option-theme.scss +8 -10
  345. package/timezone/timezone-option.component.scss +5 -8
  346. package/timezone/timezone-option.directive.d.ts +3 -2
  347. package/timezone/timezone-select.component.d.ts +2 -1
  348. package/timezone/timezone-select.component.scss +2 -4
  349. package/title/title.directive.d.ts +0 -1
  350. package/toast/_toast-theme.scss +20 -16
  351. package/toast/toast-container.component.scss +5 -6
  352. package/toast/toast.component.scss +28 -29
  353. package/toast/toast.service.d.ts +8 -4
  354. package/toast/toast.type.d.ts +2 -0
  355. package/toggle/_toggle-theme.scss +49 -42
  356. package/toggle/toggle.scss +9 -22
  357. package/tooltip/_tooltip-theme.scss +12 -16
  358. package/tooltip/tooltip.component.d.ts +12 -8
  359. package/tooltip/tooltip.scss +7 -13
  360. package/tree/_tree-theme.scss +20 -23
  361. package/tree/toggle.scss +3 -6
  362. package/tree/tree-base.d.ts +1 -1
  363. package/tree/tree-option.scss +17 -14
  364. package/tree/tree-selection.component.d.ts +1 -0
  365. package/tree-select/_tree-select-theme.scss +12 -15
  366. package/tree-select/tree-select.component.d.ts +8 -17
  367. package/tree-select/tree-select.module.d.ts +1 -2
  368. package/tree-select/tree-select.scss +1 -6
  369. package/core/styles/_variables.scss +0 -1
@@ -2,40 +2,37 @@
2
2
 
3
3
  @use '../styles/theming/theming' as *;
4
4
  @use '../styles/typography/typography-utils' as *;
5
-
5
+ @use '../styles/common/tokens' as *;
6
6
 
7
7
  @mixin kbq-option-action-theme($theme) {
8
- $foreground: map.get($theme, foreground);
9
8
  $background: map.get($theme, background);
10
9
 
11
- $secondary: map.get($theme, secondary);
12
-
13
- $is-dark: map.get($theme, is-dark);
10
+ $states: map.get($theme, states);
14
11
 
15
12
  .kbq-option-action {
16
13
  &.cdk-keyboard-focused {
17
- border-color: map.get(map.get($theme, states), focused-color);
14
+ border-color: kbq-css-variable(states-focused-color, map.get($theme, states, focused-color));
18
15
  }
19
16
 
20
17
  &:active,
21
18
  &.kbq-pressed {
22
19
  & .kbq-icon {
23
- color: kbq-color($secondary, if($is-dark, 70, 30));
20
+ color: kbq-css-variable(states-icon-contrast-fade, map.get($states, icon, contrast-fade));
24
21
  }
25
22
 
26
- background-color: kbq-color($secondary, A16);
23
+ background-color: kbq-css-variable(background-transparent, map.get($background, transparent));
27
24
  }
28
25
 
29
26
  &:hover .kbq-icon {
30
- color: kbq-color($secondary, if($is-dark, 70, 30));
27
+ color: kbq-css-variable(states-icon-contrast-fade-hover, map.get($states, icon, contrast-fade-hover));
31
28
  }
32
29
 
33
30
  &.kbq-disabled {
34
31
  & .kbq-icon {
35
- color: kbq-color($secondary, if($is-dark, 30, 70));
32
+ color: kbq-css-variable(states-icon-disabled, map.get($states, icon, disabled));
36
33
  }
37
34
 
38
- background-color: transparent;
35
+ background-color: kbq-css-variable(background-transparent, map.get($background, transparent));
39
36
  }
40
37
  }
41
38
  }
@@ -2,26 +2,23 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../styles/typography/typography-utils' as *;
5
+ @use '../styles/common/tokens' as *;
5
6
 
7
+ @mixin kbq-option($component, $style-name) {
8
+ $state: map.get($component, $style-name);
6
9
 
7
- @mixin kbq-option($state) {
8
- background: map.get($state, container-background);
10
+ background: kbq-css-variable(list-#{$style-name}-container-background, map.get($state, container-background));
9
11
 
10
12
  .kbq-option-text {
11
- color: map.get($state, text);
13
+ color: kbq-css-variable(list-#{$style-name}-text, map.get($state, text));
12
14
  }
13
15
 
14
- // todo выглядит как баг
15
- //.kbq-icon {
16
- // color: map.get($state, icon);
17
- //}
18
-
19
16
  .kbq-option-action .kbq-icon {
20
- color: map.get($state, icon-button);
17
+ color: kbq-css-variable(list-#{$style-name}-icon-button, map.get($state, icon-button));
21
18
  }
22
19
 
23
20
  .kbq-option-caption {
24
- color: map.get($state, caption);
21
+ color: kbq-css-variable(list-#{$style-name}-caption, map.get($state, caption));
25
22
  }
26
23
  }
27
24
 
@@ -29,39 +26,37 @@
29
26
  $list-item: map.get(map.get($theme, components), list-item);
30
27
 
31
28
  .kbq-option {
32
- @include kbq-option(map.get($list-item, default));
29
+ @include kbq-option($list-item, default);
33
30
 
34
31
  &:hover:not(.kbq-disabled) {
35
- @include kbq-option(map.get($list-item, hover));
32
+ @include kbq-option($list-item, states-hover);
36
33
  }
37
34
 
38
35
  &.kbq-focused,
39
36
  &.kbq-active {
40
- border-color: map.get(map.get($list-item, focused), focus-outline);
37
+ border-color: map.get($list-item, states-focused, focus-outline);
41
38
  }
42
39
 
43
40
  &.kbq-selected {
44
- @include kbq-option(map.get($list-item, selected));
41
+ @include kbq-option($list-item, states-selected);
45
42
 
46
43
  &:hover:not(.kbq-disabled) {
47
- @include kbq-option(map.get($list-item, selected-hover));
44
+ @include kbq-option($list-item, states-selected-hover);
48
45
  }
49
46
  }
50
47
 
51
48
  &.kbq-disabled {
52
- @include kbq-option(map.get($list-item, disabled));
49
+ @include kbq-option($list-item, states-disabled);
53
50
  }
54
51
  }
55
52
  }
56
53
 
57
54
  @mixin kbq-option-typography($config) {
58
- $tokens: map.get($config, tokens);
59
-
60
55
  .kbq-option {
61
- @include kbq-typography-level-to-styles($config, map.get($tokens, list-font-text));
56
+ @include kbq-typography-css-variables(list, text);
62
57
  }
63
58
 
64
59
  .kbq-list-option-caption {
65
- @include kbq-typography-level-to-styles($config, map.get($tokens, list-font-caption));
60
+ @include kbq-typography-css-variables(list, caption);
66
61
  }
67
62
  }
@@ -4,7 +4,6 @@
4
4
  @use '../styles/common/vendor-prefixes';
5
5
  @use '../styles/tokens';
6
6
 
7
-
8
7
  $tokens: meta.module-variables(tokens) !default;
9
8
 
10
9
  .kbq-optgroup-label {
@@ -3,7 +3,6 @@
3
3
 
4
4
  @use '../styles/common';
5
5
 
6
-
7
6
  .kbq-option {
8
7
  @include common.kbq-list-item-base();
9
8
 
@@ -88,7 +88,6 @@
88
88
  top: $arrow-offset;
89
89
  right: $arrow-padding;
90
90
  }
91
-
92
91
  }
93
92
 
94
93
  @mixin popup-arrow-borders-color($name, $value) {
@@ -33,12 +33,13 @@ export declare abstract class KbqPopUpTrigger<T> {
33
33
  protected overlayRef: OverlayRef | null;
34
34
  protected portal: ComponentPortal<T>;
35
35
  protected instance: any | null;
36
- protected listeners: Map<string, EventListenerOrEventListenerObject>;
36
+ protected listeners: Map<string, EventListener>;
37
37
  protected closingActionsSubscription: Subscription;
38
38
  protected readonly availablePositions: {
39
39
  [key: string]: ConnectionPositionPair;
40
40
  };
41
41
  protected readonly destroyed: Subject<void>;
42
+ protected triggerName: string;
42
43
  protected constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction?: Directionality | undefined);
43
44
  abstract updateClassMap(newPlacement?: string): void;
44
45
  abstract updateData(): void;
@@ -63,6 +64,7 @@ export declare abstract class KbqPopUpTrigger<T> {
63
64
  protected getPriorityPlacementStrategy(value: string | string[]): ConnectionPositionPair[];
64
65
  protected getPrioritizedPositions(): ConnectionPositionPair[];
65
66
  protected clearListeners(): void;
67
+ private createListener;
66
68
  private addEventListener;
67
69
  private removeEventListener;
68
70
  private subscribeOnClosingActions;
@@ -0,0 +1,35 @@
1
+ import { AfterContentInit, OnDestroy } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import { KbqFormFieldRef } from '../form-field';
4
+ import * as i0 from "@angular/core";
5
+ export declare class KbqSelectTrigger {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectTrigger, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectTrigger, "kbq-select-trigger, [kbq-select-trigger]", never, {}, {}, never, never, true, never>;
8
+ }
9
+ export declare class KbqSelectMatcher {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectMatcher, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectMatcher, "kbq-select-matcher, [kbq-select-matcher]", never, {}, {}, never, never, true, never>;
12
+ }
13
+ export declare class KbqSelectFooter {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectFooter, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectFooter, "kbq-select-footer, [kbq-select-footer]", never, {}, {}, never, never, true, never>;
16
+ }
17
+ export declare class KbqSelectSearch implements AfterContentInit, OnDestroy {
18
+ protected formField: KbqFormFieldRef;
19
+ searchChangesSubscription: Subscription;
20
+ isSearchChanged: boolean;
21
+ get ngControl(): any;
22
+ constructor(formField: KbqFormFieldRef);
23
+ focus(): void;
24
+ reset(): void;
25
+ value(): any;
26
+ ngAfterContentInit(): void;
27
+ ngOnDestroy(): void;
28
+ handleKeydown(event: KeyboardEvent): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectSearch, [{ optional: true; }]>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectSearch, "[kbqSelectSearch]", ["kbqSelectSearch"], {}, {}, never, never, true, never>;
31
+ }
32
+ export declare class KbqSelectSearchEmptyResult {
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectSearchEmptyResult, never>;
34
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectSearchEmptyResult, "[kbq-select-search-empty-result]", ["kbqSelectSearchEmptyResult"], {}, {}, never, never, true, never>;
35
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './events';
2
2
  export * from './errors';
3
3
  export * from './constants';
4
+ export * from './common';
@@ -1,48 +1,44 @@
1
1
  @use 'sass:map';
2
2
 
3
+ @use '../../styles/common/tokens' as *;
3
4
 
4
- @mixin kbq-pseudo-checkbox-color($checkbox) {
5
- $default: map.get($checkbox, default);
5
+ @mixin kbq-pseudo-checkbox-color($component, $style-name) {
6
+ $style: map.get($component, $style-name);
7
+ $base: checkbox-#{$style-name};
6
8
 
7
- border-color: map.get($default, border);
9
+ border-color: kbq-css-variable(#{$base}-default-border, map.get($style, default, border));
10
+ background: kbq-css-variable(#{$base}-default-background, map.get($style, default, background));
8
11
 
9
12
  & .kbq-checkbox-checkmark,
10
13
  & .kbq-checkbox-mixedmark {
11
- color: map.get($default, color);
14
+ color: kbq-css-variable(#{$base}-default-color, map.get($style, default, color));
12
15
  }
13
16
 
14
17
  &.kbq-checked,
15
18
  &.kbq-indeterminate {
16
- $checked: map.get($checkbox, checked);
17
-
18
- border-color: map.get($checked, border);
19
- background: map.get($checked, background);
19
+ border-color: kbq-css-variable(#{$base}-checked-border, map.get($style, checked, border));
20
+ background: kbq-css-variable(#{$base}-checked-background, map.get($style, checked, background));
20
21
  }
21
22
 
22
23
  &.kbq-disabled {
23
- $disabled: map.get($checkbox, disabled);
24
-
25
24
  & .kbq-checkbox-checkmark,
26
25
  & .kbq-checkbox-mixedmark {
27
- color: map.get($disabled, color);
26
+ color: kbq-css-variable(#{$base}-disabled-color, map.get($style, disabled, color));
28
27
  }
29
28
 
30
- border-color: map.get($disabled, border);
31
- background: map.get($disabled, background);
29
+ border-color: kbq-css-variable(#{$base}-disabled-border, map.get($style, disabled, border));
30
+ background: kbq-css-variable(#{$base}-disabled-background, map.get($style, disabled, background));
32
31
  }
33
32
  }
34
33
 
35
34
  @mixin kbq-pseudo-checkbox-theme($theme) {
36
- $foreground: map.get($theme, foreground);
37
- $background: map.get($theme, background);
38
-
39
- $checkbox: map.get(map.get($theme, components), checkbox);
35
+ $checkbox: map.get($theme, components, checkbox);
40
36
 
41
37
  .kbq-pseudo-checkbox {
42
- @include kbq-pseudo-checkbox-color(map.get($checkbox, theme));
38
+ @include kbq-pseudo-checkbox-color($checkbox, theme);
43
39
 
44
40
  &.kbq-error {
45
- @include kbq-pseudo-checkbox-color(map.get($checkbox, error));
41
+ @include kbq-pseudo-checkbox-color($checkbox, error);
46
42
  }
47
43
  }
48
44
  }
@@ -2,7 +2,7 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../../styles/tokens';
5
-
5
+ @use '../../styles/common/tokens' as *;
6
6
 
7
7
  $tokens: meta.module-variables(tokens) !default;
8
8
 
@@ -14,12 +14,12 @@ $tokens: meta.module-variables(tokens) !default;
14
14
  align-items: center;
15
15
  justify-content: center;
16
16
 
17
- width: var(--kbq-checkbox-size-normal-width, map.get($tokens, checkbox-size-normal-width));
18
- height: var(--kbq-checkbox-size-normal-width, map.get($tokens, checkbox-size-normal-width));
17
+ width: kbq-css-variable(checkbox-size-normal-width);
18
+ height: kbq-css-variable(checkbox-size-normal-width);
19
19
 
20
20
  border: {
21
- radius: var(--kbq-checkbox-size-normal-border-radius, map.get($tokens, checkbox-size-normal-border-radius));
22
- width: var(--kbq-checkbox-size-normal-border-width, map.get($tokens, checkbox-size-normal-border-width));
21
+ radius: kbq-css-variable(checkbox-size-normal-border-radius);
22
+ width: kbq-css-variable(checkbox-size-normal-border-width);
23
23
  style: solid;
24
24
  }
25
25
 
@@ -56,11 +56,11 @@ $tokens: meta.module-variables(tokens) !default;
56
56
  }
57
57
 
58
58
  .kbq-pseudo-checkbox.kbq-pseudo-checkbox_big {
59
- width: var(--kbq-checkbox-size-big-width, map.get($tokens, checkbox-size-big-width));
60
- height: var(--kbq-checkbox-size-big-width, map.get($tokens, checkbox-size-big-width));
59
+ width: kbq-css-variable(checkbox-size-big-width);
60
+ height: kbq-css-variable(checkbox-size-big-width);
61
61
 
62
62
  border: {
63
- radius: var(--kbq-checkbox-size-big-border-radius, map.get($tokens, checkbox-size-big-border-radius));
64
- width: var(--kbq-checkbox-size-big-border-width, map.get($tokens, checkbox-size-big-border-width));
63
+ radius: kbq-css-variable(checkbox-size-big-border-radius);
64
+ width: kbq-css-variable(checkbox-size-big-border-width);
65
65
  }
66
66
  }
@@ -1,4 +1,4 @@
1
- import { Renderer2, RendererFactory2 } from '@angular/core';
1
+ import { OnDestroy, Renderer2, RendererFactory2 } from '@angular/core';
2
2
  import { BehaviorSubject, Subscription } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface KbqTheme {
@@ -7,13 +7,14 @@ export interface KbqTheme {
7
7
  selected: boolean;
8
8
  }
9
9
  export declare const KbqDefaultThemes: KbqTheme[];
10
- export declare class ThemeService<T extends KbqTheme | null = KbqTheme> {
10
+ export declare class ThemeService<T extends KbqTheme | null = KbqTheme> implements OnDestroy {
11
11
  private rendererFactory;
12
12
  current: BehaviorSubject<T>;
13
13
  themes: T[];
14
14
  protected renderer: Renderer2;
15
15
  protected subscription: Subscription;
16
16
  constructor(rendererFactory: RendererFactory2);
17
+ ngOnDestroy(): void;
17
18
  setThemes(items: T[]): void;
18
19
  setTheme(value: T | number): void;
19
20
  getTheme(): T;
@@ -3,7 +3,6 @@
3
3
  @use 'common/overlay' as *;
4
4
  @use 'common/visually-hidden' as *;
5
5
 
6
-
7
6
  // Mixin that renders all of the core styles that are not theme-dependent.
8
7
  @mixin kbq-core() {
9
8
  @include a11y-visually-hidden();
@@ -17,6 +17,7 @@
17
17
  @use '../../datepicker/datepicker-theme' as *;
18
18
  @use '../../divider/divider-theme' as *;
19
19
  @use '../../dropdown/dropdown-theme' as *;
20
+ @use '../../empty-state/empty-state-theme' as *;
20
21
  @use '../../file-upload/file-upload-theme' as *;
21
22
  @use '../../form-field/form-field-theme' as *;
22
23
  @use '../../form-field/hint-theme' as *;
@@ -56,7 +57,6 @@
56
57
  @use '../highlight/highlight-theme' as *;
57
58
  @use '../../dl/dl-theme' as *;
58
59
 
59
-
60
60
  @mixin koobiq-theme($theme) {
61
61
  @include kbq-core-theme($theme);
62
62
 
@@ -72,6 +72,7 @@
72
72
  @include kbq-dl-theme($theme);
73
73
  @include kbq-divider-theme($theme);
74
74
  @include kbq-dropdown-theme($theme);
75
+ @include kbq-empty-state-theme($theme);
75
76
  @include kbq-form-field-theme($theme);
76
77
  @include kbq-file-upload-theme($theme);
77
78
  @include kbq-hint-theme($theme);
@@ -112,11 +113,11 @@
112
113
  }
113
114
 
114
115
  @mixin koobiq-typography($tokens, $config: null, $md-config: null) {
115
- @if $config == null {
116
+ @if not $config {
116
117
  $config: kbq-typography-config($tokens);
117
118
  }
118
119
 
119
- @if $md-config == null {
120
+ @if not $md-config {
120
121
  $md-config: kbq-markdown-typography-config($tokens);
121
122
  }
122
123
 
@@ -131,6 +132,7 @@
131
132
  @include kbq-code-block-typography($config);
132
133
  @include kbq-datepicker-typography($config);
133
134
  @include kbq-dropdown-typography($config);
135
+ @include kbq-empty-state-typography($config);
134
136
  @include kbq-dl-typography($config);
135
137
  @include kbq-form-field-typography($config);
136
138
  @include kbq-hint-typography($config);
@@ -25,14 +25,15 @@
25
25
  $darker: rgba(0, 0, 0, 0.04);
26
26
 
27
27
  background: linear-gradient(
28
- 135deg,
29
- $darker 10px,
30
- $lighter 10px,
31
- $lighter 20px,
32
- $darker 20px,
33
- $darker 30px,
34
- $lighter 31px
35
- ) repeat;
28
+ 135deg,
29
+ $darker 10px,
30
+ $lighter 10px,
31
+ $lighter 20px,
32
+ $darker 20px,
33
+ $darker 30px,
34
+ $lighter 31px
35
+ )
36
+ repeat;
36
37
  background-size: 32px 32px;
37
38
  animation: kbq-progress 1s linear infinite;
38
39
  }
@@ -1,10 +1,8 @@
1
1
  @use 'vendor-prefixes';
2
2
 
3
-
4
3
  @mixin kbq-button-reset {
5
4
  @include vendor-prefixes.user-select(none);
6
5
  cursor: pointer;
7
6
  outline: none;
8
7
  border: none;
9
8
  }
10
-
@@ -3,7 +3,7 @@
3
3
 
4
4
  &:before,
5
5
  &:after {
6
- content: "";
6
+ content: '';
7
7
  display: table;
8
8
  }
9
9
 
@@ -2,7 +2,7 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../tokens';
5
-
5
+ @use '../common/tokens' as *;
6
6
 
7
7
  $tokens: meta.module-variables(tokens) !default;
8
8
 
@@ -77,12 +77,11 @@ $tokens: meta.module-variables(tokens) !default;
77
77
  display: flex;
78
78
  flex-direction: column;
79
79
 
80
- /* stylelint-disable no-descending-specificity */
81
80
  > .kbq-group-item {
82
81
  &:first-child:not(:last-child) {
83
82
  @include border-bottom-radius(0);
84
83
 
85
- border-top-right-radius: var(--kbq-button-size-border-radius, map.get($tokens, button-size-border-radius));
84
+ border-top-right-radius: kbq-css-variable(button-size-border-radius);
86
85
 
87
86
  > .kbq-form-field__container {
88
87
  @include border-bottom-radius(0);
@@ -92,10 +91,7 @@ $tokens: meta.module-variables(tokens) !default;
92
91
  &:last-child:not(:first-child) {
93
92
  @include border-top-radius(0);
94
93
 
95
- border-bottom-left-radius: var(
96
- --kbq-button-size-border-radius,
97
- map.get($tokens, button-size-border-radius)
98
- );
94
+ border-bottom-left-radius: kbq-css-variable(button-size-border-radius);
99
95
 
100
96
  > .kbq-form-field__container {
101
97
  @include border-top-radius(0);
@@ -114,6 +110,4 @@ $tokens: meta.module-variables(tokens) !default;
114
110
  .kbq-group-item + .kbq-group-item {
115
111
  margin-top: calc(-1 * var(--kbq-button-size-border-width, #{map.get($tokens, button-size-border-width)}));
116
112
  }
117
- /* stylelint-enable no-descending-specificity */
118
113
  }
119
-
@@ -2,7 +2,7 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../tokens';
5
-
5
+ @use './tokens' as *;
6
6
 
7
7
  // This mixin will ensure that lines that overflow the container will hide the overflow and
8
8
  // truncate neatly with an ellipsis.
@@ -55,8 +55,8 @@
55
55
 
56
56
  @include kbq-truncate-line();
57
57
 
58
- padding-top: var(--kbq-list-size-text-padding-vertical, map.get($tokens, list-size-text-padding-vertical));
59
- padding-bottom: var(--kbq-list-size-text-padding-vertical, map.get($tokens, list-size-text-padding-vertical));
58
+ padding-top: kbq-css-variable(list-size-text-padding-vertical);
59
+ padding-bottom: kbq-css-variable(list-size-text-padding-vertical);
60
60
  }
61
61
 
62
62
  // This mixin provides all list-item styles, changing font size and height based on whether the list is in dense mode.
@@ -82,30 +82,35 @@
82
82
 
83
83
  min-height: 32px;
84
84
 
85
- gap: var(
86
- --kbq-list-size-container-content-gap-horizontal, map.get($tokens, list-size-container-content-gap-horizontal)
87
- );
85
+ gap: kbq-css-variable(list-size-container-content-gap-horizontal);
88
86
 
89
- border-width: var(--kbq-list-size-container-focus-outline-width, $outline-width);
87
+ border-width: kbq-css-variable(list-size-container-focus-outline-width);
90
88
  border-style: solid;
91
89
  border-color: transparent;
92
90
 
93
- padding:
94
- calc(
95
- var(--kbq-list-size-container-padding-vertical, $padding-vertical) -
96
- var(--kbq-list-size-container-focus-outline-width, $outline-width)
91
+ padding: calc(
92
+ var(--kbq-list-size-container-padding-vertical, $padding-vertical) - var(
93
+ --kbq-list-size-container-focus-outline-width,
94
+ $outline-width
95
+ )
97
96
  )
98
97
  calc(
99
- var(--kbq-list-size-container-padding-right, $padding-right) -
100
- var(--kbq-list-size-container-focus-outline-width, $outline-width)
98
+ var(--kbq-list-size-container-padding-right, $padding-right) - var(
99
+ --kbq-list-size-container-focus-outline-width,
100
+ $outline-width
101
+ )
101
102
  )
102
103
  calc(
103
- var(--kbq-list-size-container-padding-vertical, $padding-vertical) -
104
- var(--kbq-list-size-container-focus-outline-width, $outline-width)
104
+ var(--kbq-list-size-container-padding-vertical, $padding-vertical) - var(
105
+ --kbq-list-size-container-focus-outline-width,
106
+ $outline-width
107
+ )
105
108
  )
106
109
  calc(
107
- var(--kbq-list-size-container-padding-left, $padding-left) -
108
- var(--kbq-list-size-container-focus-outline-width, $outline-width)
110
+ var(--kbq-list-size-container-padding-left, $padding-left) - var(
111
+ --kbq-list-size-container-focus-outline-width,
112
+ $outline-width
113
+ )
109
114
  );
110
115
 
111
116
  .kbq-list-text {
@@ -113,10 +118,7 @@
113
118
  }
114
119
 
115
120
  .kbq-list-option-caption {
116
- padding-top: var(
117
- --kbq-list-size-container-content-gap-vertical,
118
- map.get($tokens, list-size-container-content-gap-vertical)
119
- );
121
+ padding-top: kbq-css-variable(list-size-container-content-gap-vertical);
120
122
  }
121
123
  }
122
124
 
@@ -131,11 +133,8 @@
131
133
 
132
134
  min-height: 32px;
133
135
 
134
- padding:
135
- var(--kbq-list-size-header-padding-top, map.get($tokens, list-size-header-padding-top))
136
- var(--kbq-list-size-header-padding-horizontal, map.get($tokens, list-size-header-padding-horizontal))
137
- var(--kbq-list-size-header-padding-bottom, map.get($tokens, list-size-header-padding-bottom))
138
- var(--kbq-list-size-header-padding-horizontal, map.get($tokens, list-size-header-padding-horizontal));
136
+ padding: kbq-css-variable(list-size-header-padding-top) kbq-css-variable(list-size-header-padding-horizontal)
137
+ kbq-css-variable(list-size-header-padding-bottom) kbq-css-variable(list-size-header-padding-horizontal);
139
138
 
140
139
  .kbq-list-text {
141
140
  @include kbq-list-text();
@@ -153,11 +152,9 @@
153
152
 
154
153
  min-height: 32px;
155
154
 
156
- padding:
157
- var(--kbq-list-size-subheading-padding-top, map.get($tokens, list-size-subheading-padding-top))
158
- var(--kbq-list-size-subheading-padding-horizontal, map.get($tokens, list-size-subheading-padding-horizontal))
159
- var(--kbq-list-size-subheading-padding-bottom, map.get($tokens, list-size-subheading-padding-bottom))
160
- var(--kbq-list-size-subheading-padding-horizontal, map.get($tokens, list-size-subheading-padding-horizontal));
155
+ padding: kbq-css-variable(list-size-subheading-padding-top)
156
+ kbq-css-variable(list-size-subheading-padding-horizontal) kbq-css-variable(list-size-subheading-padding-bottom)
157
+ kbq-css-variable(list-size-subheading-padding-horizontal);
161
158
 
162
159
  .kbq-list-text {
163
160
  @include kbq-list-text();
@@ -6,7 +6,7 @@ $overlay-z-index: 1000 !default;
6
6
  $overlay-backdrop-z-index: 1000 !default;
7
7
 
8
8
  // Background color for all of the backdrops
9
- $overlay-backdrop-color: rgba(0, 0, 0, 0.50) !default;
9
+ $overlay-backdrop-color: rgba(0, 0, 0, 0.5) !default;
10
10
 
11
11
  // Default backdrop animation is based on the Material Design swift-ease-out.
12
12
  $backdrop-animation-duration: 400ms !default;
@@ -116,7 +116,9 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
116
116
 
117
117
  .cdk-overlay-transparent-backdrop {
118
118
  // Define a transition on the visibility so that the `transitionend` event can fire immediately.
119
- transition: visibility 1ms linear, opacity 1ms linear;
119
+ transition:
120
+ visibility 1ms linear,
121
+ opacity 1ms linear;
120
122
  visibility: hidden;
121
123
  opacity: 1;
122
124
 
@@ -174,4 +176,3 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
174
176
  overflow-y: scroll;
175
177
  }
176
178
  }
177
-
@@ -1,11 +1,11 @@
1
1
  @use 'sass:map';
2
-
2
+ @use './tokens' as *;
3
3
 
4
4
  @mixin popup-params($theme) {
5
- $popup: map.get(map.get($theme, components), popup);
5
+ $popup: map.get($theme, components, popup);
6
6
 
7
- box-shadow: map.get($popup, shadow);
8
- border-color: map.get($popup, border);
7
+ box-shadow: kbq-css-variable(popup-shadow, map.get($popup, shadow));
8
+ border-color: kbq-css-variable(popup-border, map.get($popup, border));
9
9
 
10
- background-color: map.get($popup, background);
10
+ background-color: kbq-css-variable(popup-background, map.get($popup, background));
11
11
  }