@koobiq/components 17.8.5 → 18.1.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 (348) hide show
  1. package/alert/alert-tokens.scss +114 -121
  2. package/autocomplete/autocomplete-tokens.scss +8 -7
  3. package/badge/badge-tokens.scss +164 -169
  4. package/button/button-tokens.scss +237 -228
  5. package/button/button.scss +5 -9
  6. package/button-toggle/button-toggle-tokens.scss +68 -71
  7. package/checkbox/checkbox-tokens.scss +118 -125
  8. package/code-block/code-block-tokens.scss +92 -91
  9. package/core/common-behaviors/index.d.ts +1 -1
  10. package/core/forms/forms-tokens.scss +28 -33
  11. package/core/option/optgroup-tokens.scss +8 -26
  12. package/core/option/option-action-tokens.scss +3 -19
  13. package/core/option/option-tokens.scss +89 -105
  14. package/core/pop-up/pop-up-trigger.d.ts +5 -1
  15. package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +118 -125
  16. package/core/styles/_koobiq-theme.scss +3 -7
  17. package/core/styles/theming/_theming.scss +4 -6
  18. package/core/styles/theming/scrollbar-tokens.scss +16 -14
  19. package/core/styles/typography/_typography.scss +1 -0
  20. package/datepicker/datepicker-tokens.scss +41 -47
  21. package/divider/divider-tokens.scss +6 -4
  22. package/dl/dl-tokens.scss +24 -25
  23. package/dropdown/dropdown-tokens.scss +87 -99
  24. package/empty-state/empty-state-tokens.scss +46 -59
  25. package/esm2022/alert/alert.component.mjs +13 -13
  26. package/esm2022/alert/alert.module.mjs +4 -4
  27. package/esm2022/autocomplete/autocomplete-origin.directive.mjs +3 -3
  28. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +3 -3
  29. package/esm2022/autocomplete/autocomplete.component.mjs +5 -5
  30. package/esm2022/autocomplete/autocomplete.module.mjs +4 -4
  31. package/esm2022/badge/badge.component.mjs +10 -10
  32. package/esm2022/badge/badge.module.mjs +4 -4
  33. package/esm2022/button/button.component.mjs +8 -8
  34. package/esm2022/button/button.module.mjs +4 -4
  35. package/esm2022/button-toggle/button-toggle.component.mjs +8 -8
  36. package/esm2022/button-toggle/button-toggle.module.mjs +4 -4
  37. package/esm2022/checkbox/checkbox-module.mjs +4 -4
  38. package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
  39. package/esm2022/checkbox/checkbox.mjs +5 -5
  40. package/esm2022/code-block/actionbar.component.mjs +5 -5
  41. package/esm2022/code-block/code-block.component.mjs +5 -5
  42. package/esm2022/code-block/code-block.module.mjs +4 -4
  43. package/esm2022/core/common-behaviors/common-module.mjs +4 -4
  44. package/esm2022/core/common-behaviors/index.mjs +2 -2
  45. package/esm2022/core/error/error-options.mjs +6 -6
  46. package/esm2022/core/formatters/date/formatter.mjs +3 -3
  47. package/esm2022/core/formatters/date/formatter.pipe.mjs +39 -39
  48. package/esm2022/core/formatters/index.mjs +4 -4
  49. package/esm2022/core/formatters/number/formatter.mjs +12 -12
  50. package/esm2022/core/forms/forms-module.mjs +4 -4
  51. package/esm2022/core/forms/forms.directive.mjs +6 -6
  52. package/esm2022/core/highlight/highlight.pipe.mjs +3 -3
  53. package/esm2022/core/highlight/index.mjs +4 -4
  54. package/esm2022/core/line/line.mjs +7 -7
  55. package/esm2022/core/locales/locale-service.mjs +3 -3
  56. package/esm2022/core/locales/locale-service.module.mjs +4 -4
  57. package/esm2022/core/option/action.mjs +8 -8
  58. package/esm2022/core/option/optgroup.mjs +4 -4
  59. package/esm2022/core/option/option-module.mjs +4 -4
  60. package/esm2022/core/option/option.mjs +5 -5
  61. package/esm2022/core/pop-up/pop-up-trigger.mjs +17 -8
  62. package/esm2022/core/pop-up/pop-up.mjs +3 -3
  63. package/esm2022/core/select/common.mjs +15 -15
  64. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
  65. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +4 -4
  66. package/esm2022/core/services/measure-scrollbar.service.mjs +3 -3
  67. package/esm2022/core/services/theme.service.mjs +3 -3
  68. package/esm2022/core/utils/data-size/data-size.pipe.mjs +3 -3
  69. package/esm2022/core/version.mjs +2 -2
  70. package/esm2022/datepicker/calendar-body.component.mjs +3 -3
  71. package/esm2022/datepicker/calendar-header.component.mjs +5 -5
  72. package/esm2022/datepicker/calendar.component.mjs +3 -3
  73. package/esm2022/datepicker/datepicker-input.directive.mjs +3 -3
  74. package/esm2022/datepicker/datepicker-intl.mjs +3 -3
  75. package/esm2022/datepicker/datepicker-module.mjs +4 -4
  76. package/esm2022/datepicker/datepicker-toggle.component.mjs +8 -8
  77. package/esm2022/datepicker/datepicker.component.mjs +8 -8
  78. package/esm2022/datepicker/month-view.component.mjs +3 -3
  79. package/esm2022/divider/divider.component.mjs +4 -4
  80. package/esm2022/divider/divider.module.mjs +4 -4
  81. package/esm2022/dl/dl.component.mjs +10 -10
  82. package/esm2022/dl/dl.module.mjs +4 -4
  83. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  84. package/esm2022/dropdown/dropdown-item.component.mjs +6 -6
  85. package/esm2022/dropdown/dropdown-trigger.directive.mjs +3 -3
  86. package/esm2022/dropdown/dropdown.component.mjs +6 -6
  87. package/esm2022/dropdown/dropdown.module.mjs +4 -4
  88. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -7
  89. package/esm2022/empty-state/empty-state.component.mjs +16 -16
  90. package/esm2022/empty-state/empty-state.module.mjs +4 -4
  91. package/esm2022/file-upload/file-drop.mjs +3 -3
  92. package/esm2022/file-upload/file-upload.module.mjs +4 -4
  93. package/esm2022/file-upload/multiple-file-upload.component.mjs +5 -5
  94. package/esm2022/file-upload/single-file-upload.component.mjs +5 -5
  95. package/esm2022/form-field/cleaner.mjs +6 -6
  96. package/esm2022/form-field/form-field.mjs +11 -11
  97. package/esm2022/form-field/form-field.module.mjs +4 -4
  98. package/esm2022/form-field/hint.mjs +5 -5
  99. package/esm2022/form-field/password-hint.mjs +7 -7
  100. package/esm2022/form-field/password-toggle.mjs +5 -5
  101. package/esm2022/form-field/prefix.mjs +3 -3
  102. package/esm2022/form-field/stepper.mjs +8 -8
  103. package/esm2022/form-field/suffix.mjs +3 -3
  104. package/esm2022/form-field/validate.directive.mjs +3 -3
  105. package/esm2022/icon/icon-button.component.mjs +7 -7
  106. package/esm2022/icon/icon-item.component.mjs +7 -7
  107. package/esm2022/icon/icon.component.mjs +7 -7
  108. package/esm2022/icon/icon.module.mjs +13 -24
  109. package/esm2022/input/input-number-validators.mjs +6 -6
  110. package/esm2022/input/input-number.mjs +3 -3
  111. package/esm2022/input/input-password.mjs +3 -3
  112. package/esm2022/input/input.mjs +6 -6
  113. package/esm2022/input/input.module.mjs +4 -4
  114. package/esm2022/link/link.component.mjs +3 -3
  115. package/esm2022/link/link.module.mjs +4 -4
  116. package/esm2022/list/list-selection.component.mjs +11 -11
  117. package/esm2022/list/list.component.mjs +7 -7
  118. package/esm2022/list/list.module.mjs +4 -4
  119. package/esm2022/loader-overlay/loader-overlay.component.mjs +13 -13
  120. package/esm2022/loader-overlay/loader-overlay.module.mjs +4 -4
  121. package/esm2022/markdown/markdown.component.mjs +5 -5
  122. package/esm2022/markdown/markdown.module.mjs +4 -4
  123. package/esm2022/markdown/markdown.service.mjs +3 -3
  124. package/esm2022/modal/css-unit.pipe.mjs +3 -3
  125. package/esm2022/modal/modal-control.service.mjs +3 -3
  126. package/esm2022/modal/modal.component.mjs +5 -5
  127. package/esm2022/modal/modal.directive.mjs +53 -17
  128. package/esm2022/modal/modal.module.mjs +4 -4
  129. package/esm2022/modal/modal.service.mjs +3 -3
  130. package/esm2022/navbar/navbar-item.component.mjs +33 -33
  131. package/esm2022/navbar/navbar.component.mjs +11 -11
  132. package/esm2022/navbar/navbar.module.mjs +4 -4
  133. package/esm2022/navbar/vertical-navbar.component.mjs +5 -5
  134. package/esm2022/popover/popover-confirm.component.mjs +8 -8
  135. package/esm2022/popover/popover.component.mjs +8 -8
  136. package/esm2022/popover/popover.module.mjs +4 -4
  137. package/esm2022/progress-bar/progress-bar.component.mjs +10 -10
  138. package/esm2022/progress-bar/progress-bar.module.mjs +4 -4
  139. package/esm2022/progress-spinner/progress-spinner.component.mjs +10 -10
  140. package/esm2022/progress-spinner/progress-spinner.module.mjs +4 -4
  141. package/esm2022/radio/radio.component.mjs +7 -7
  142. package/esm2022/radio/radio.module.mjs +4 -4
  143. package/esm2022/risk-level/risk-level.component.mjs +4 -4
  144. package/esm2022/risk-level/risk-level.module.mjs +4 -4
  145. package/esm2022/scrollbar/scrollbar.component.mjs +6 -6
  146. package/esm2022/scrollbar/scrollbar.directive.mjs +3 -3
  147. package/esm2022/scrollbar/scrollbar.module.mjs +4 -4
  148. package/esm2022/select/select-option.directive.mjs +3 -3
  149. package/esm2022/select/select.component.mjs +6 -6
  150. package/esm2022/select/select.module.mjs +4 -4
  151. package/esm2022/sidebar/sidebar.component.mjs +9 -9
  152. package/esm2022/sidebar/sidebar.module.mjs +4 -4
  153. package/esm2022/sidepanel/sidepanel-container.component.mjs +5 -5
  154. package/esm2022/sidepanel/sidepanel-directives.mjs +18 -18
  155. package/esm2022/sidepanel/sidepanel.module.mjs +4 -4
  156. package/esm2022/sidepanel/sidepanel.service.mjs +3 -3
  157. package/esm2022/splitter/splitter.component.mjs +14 -14
  158. package/esm2022/splitter/splitter.module.mjs +4 -4
  159. package/esm2022/table/table.component.mjs +7 -7
  160. package/esm2022/table/table.module.mjs +4 -4
  161. package/esm2022/tabs/paginated-tab-header.mjs +3 -3
  162. package/esm2022/tabs/tab-body.component.mjs +6 -6
  163. package/esm2022/tabs/tab-content.directive.mjs +3 -3
  164. package/esm2022/tabs/tab-group.component.mjs +33 -18
  165. package/esm2022/tabs/tab-header.component.mjs +16 -5
  166. package/esm2022/tabs/tab-label-wrapper.directive.mjs +8 -4
  167. package/esm2022/tabs/tab-label.directive.mjs +3 -3
  168. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +7 -7
  169. package/esm2022/tabs/tab.component.mjs +3 -3
  170. package/esm2022/tabs/tabs.module.mjs +15 -8
  171. package/esm2022/tags/tag-input.mjs +3 -3
  172. package/esm2022/tags/tag-list.component.mjs +4 -4
  173. package/esm2022/tags/tag.component.mjs +12 -12
  174. package/esm2022/tags/tag.module.mjs +4 -4
  175. package/esm2022/textarea/textarea.component.mjs +3 -3
  176. package/esm2022/textarea/textarea.module.mjs +4 -4
  177. package/esm2022/timepicker/timepicker.directive.mjs +3 -3
  178. package/esm2022/timepicker/timepicker.module.mjs +4 -4
  179. package/esm2022/timezone/cities-by-filter.pipe.mjs +3 -3
  180. package/esm2022/timezone/timezone-option.component.mjs +5 -5
  181. package/esm2022/timezone/timezone-option.directive.mjs +3 -3
  182. package/esm2022/timezone/timezone-select.component.mjs +9 -9
  183. package/esm2022/timezone/timezone.module.mjs +4 -4
  184. package/esm2022/timezone/utc-offset.pipe.mjs +3 -3
  185. package/esm2022/title/title.directive.mjs +3 -3
  186. package/esm2022/title/title.module.mjs +4 -4
  187. package/esm2022/toast/toast-container.component.mjs +3 -3
  188. package/esm2022/toast/toast.component.mjs +8 -8
  189. package/esm2022/toast/toast.module.mjs +4 -4
  190. package/esm2022/toast/toast.service.mjs +3 -3
  191. package/esm2022/toggle/toggle.component.mjs +6 -6
  192. package/esm2022/toggle/toggle.module.mjs +4 -4
  193. package/esm2022/tooltip/tooltip.component.mjs +52 -15
  194. package/esm2022/tooltip/tooltip.module.mjs +15 -28
  195. package/esm2022/tree/node.mjs +3 -3
  196. package/esm2022/tree/outlet.mjs +3 -3
  197. package/esm2022/tree/padding.directive.mjs +3 -3
  198. package/esm2022/tree/toggle.mjs +14 -14
  199. package/esm2022/tree/tree-base.mjs +6 -6
  200. package/esm2022/tree/tree-option.component.mjs +5 -5
  201. package/esm2022/tree/tree-selection.component.mjs +5 -5
  202. package/esm2022/tree/tree.mjs +5 -5
  203. package/esm2022/tree/tree.module.mjs +4 -4
  204. package/esm2022/tree-select/tree-select.component.mjs +6 -6
  205. package/esm2022/tree-select/tree-select.module.mjs +4 -4
  206. package/fesm2022/koobiq-components-alert.mjs +17 -17
  207. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  208. package/fesm2022/koobiq-components-autocomplete.mjs +15 -15
  209. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  210. package/fesm2022/koobiq-components-badge.mjs +14 -14
  211. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  212. package/fesm2022/koobiq-components-button-toggle.mjs +12 -12
  213. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  214. package/fesm2022/koobiq-components-button.mjs +12 -12
  215. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  216. package/fesm2022/koobiq-components-checkbox.mjs +11 -11
  217. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  218. package/fesm2022/koobiq-components-code-block.mjs +12 -12
  219. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  220. package/fesm2022/koobiq-components-core.mjs +171 -162
  221. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  222. package/fesm2022/koobiq-components-datepicker.mjs +37 -37
  223. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  224. package/fesm2022/koobiq-components-divider.mjs +8 -8
  225. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  226. package/fesm2022/koobiq-components-dl.mjs +14 -14
  227. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  228. package/fesm2022/koobiq-components-dropdown.mjs +20 -20
  229. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  230. package/fesm2022/koobiq-components-ellipsis-center.mjs +7 -7
  231. package/fesm2022/koobiq-components-empty-state.mjs +20 -20
  232. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
  233. package/fesm2022/koobiq-components-file-upload.mjs +15 -15
  234. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  235. package/fesm2022/koobiq-components-form-field.mjs +51 -51
  236. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  237. package/fesm2022/koobiq-components-icon.mjs +30 -41
  238. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  239. package/fesm2022/koobiq-components-input.mjs +22 -22
  240. package/fesm2022/koobiq-components-link.mjs +7 -7
  241. package/fesm2022/koobiq-components-list.mjs +22 -22
  242. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  243. package/fesm2022/koobiq-components-loader-overlay.mjs +17 -17
  244. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  245. package/fesm2022/koobiq-components-markdown.mjs +12 -12
  246. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  247. package/fesm2022/koobiq-components-modal.mjs +64 -32
  248. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  249. package/fesm2022/koobiq-components-navbar.mjs +52 -52
  250. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  251. package/fesm2022/koobiq-components-popover.mjs +18 -18
  252. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  253. package/fesm2022/koobiq-components-progress-bar.mjs +14 -14
  254. package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
  255. package/fesm2022/koobiq-components-progress-spinner.mjs +14 -14
  256. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  257. package/fesm2022/koobiq-components-radio.mjs +11 -11
  258. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  259. package/fesm2022/koobiq-components-risk-level.mjs +8 -8
  260. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
  261. package/fesm2022/koobiq-components-scrollbar.mjs +12 -12
  262. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  263. package/fesm2022/koobiq-components-select.mjs +12 -12
  264. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  265. package/fesm2022/koobiq-components-sidebar.mjs +13 -13
  266. package/fesm2022/koobiq-components-sidepanel.mjs +28 -28
  267. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  268. package/fesm2022/koobiq-components-splitter.mjs +17 -17
  269. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  270. package/fesm2022/koobiq-components-table.mjs +11 -11
  271. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  272. package/fesm2022/koobiq-components-tabs.mjs +93 -56
  273. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  274. package/fesm2022/koobiq-components-tags.mjs +23 -23
  275. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  276. package/fesm2022/koobiq-components-textarea.mjs +7 -7
  277. package/fesm2022/koobiq-components-timepicker.mjs +7 -7
  278. package/fesm2022/koobiq-components-timezone.mjs +26 -26
  279. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  280. package/fesm2022/koobiq-components-title.mjs +7 -7
  281. package/fesm2022/koobiq-components-toast.mjs +17 -17
  282. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  283. package/fesm2022/koobiq-components-toggle.mjs +9 -9
  284. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  285. package/fesm2022/koobiq-components-tooltip.mjs +67 -42
  286. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  287. package/fesm2022/koobiq-components-tree-select.mjs +9 -9
  288. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  289. package/fesm2022/koobiq-components-tree.mjs +47 -47
  290. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  291. package/file-upload/file-upload-tokens.scss +142 -145
  292. package/file-upload/multiple-file-upload.component.scss +2 -8
  293. package/form-field/form-field-tokens.scss +70 -75
  294. package/form-field/hint-tokens.scss +49 -54
  295. package/icon/icon-button-tokens.scss +54 -56
  296. package/icon/icon-button.component.d.ts +1 -1
  297. package/icon/icon-item-tokens.scss +46 -44
  298. package/icon/icon-item.component.d.ts +1 -1
  299. package/icon/icon-tokens.scss +14 -12
  300. package/icon/icon.component.d.ts +1 -1
  301. package/icon/icon.module.d.ts +1 -3
  302. package/input/input-tokens.scss +10 -13
  303. package/link/link-tokens.scss +53 -60
  304. package/list/list-tokens.scss +80 -89
  305. package/loader-overlay/loader-overlay-tokens.scss +50 -51
  306. package/markdown/markdown-tokens.scss +203 -234
  307. package/modal/modal-tokens.scss +38 -44
  308. package/modal/modal.directive.d.ts +3 -0
  309. package/navbar/navbar-tokens.scss +49 -74
  310. package/package.json +12 -9
  311. package/popover/popover-tokens.scss +38 -48
  312. package/prebuilt-themes/dark-theme.css +1 -1
  313. package/prebuilt-themes/light-theme.css +1 -1
  314. package/prebuilt-themes/theme.css +1 -0
  315. package/progress-bar/progress-bar-tokens.scss +26 -31
  316. package/progress-spinner/progress-spinner-tokens.scss +26 -31
  317. package/radio/radio-tokens.scss +115 -128
  318. package/risk-level/risk-level-tokens.scss +56 -59
  319. package/schematics/collection.json +5 -0
  320. package/schematics/new-icons-pack/data.js +2303 -0
  321. package/schematics/new-icons-pack/index.js +120 -0
  322. package/schematics/new-icons-pack/schema.json +25 -0
  323. package/schematics/ng-add/index.js +14 -40
  324. package/schematics/utils/package-config.js +65 -0
  325. package/scrollbar/scrollbar-tokens.scss +16 -14
  326. package/scrollbar/scrollbar.directive.d.ts +1 -24
  327. package/select/select-tokens.scss +30 -50
  328. package/sidepanel/sidepanel-tokens.scss +34 -40
  329. package/splitter/splitter-tokens.scss +1 -7
  330. package/table/table-tokens.scss +16 -37
  331. package/tabs/_tabs-common.scss +29 -0
  332. package/tabs/_tabs-theme.scss +12 -0
  333. package/tabs/tab-group.component.d.ts +7 -2
  334. package/tabs/tab-header.component.d.ts +4 -1
  335. package/tabs/tab-header.scss +28 -0
  336. package/tabs/tabs-tokens.scss +167 -110
  337. package/tabs/tabs.module.d.ts +2 -1
  338. package/tags/tag-input-tokens.scss +12 -15
  339. package/tags/tag-tokens.scss +139 -144
  340. package/textarea/textarea-tokens.scss +10 -13
  341. package/timezone/timezone-option-tokens.scss +60 -39
  342. package/toast/toast-tokens.scss +59 -66
  343. package/toggle/toggle-tokens.scss +120 -129
  344. package/tooltip/tooltip-tokens.scss +48 -55
  345. package/tooltip/tooltip.component.d.ts +11 -4
  346. package/tooltip/tooltip.module.d.ts +1 -3
  347. package/tree/tree-tokens.scss +78 -83
  348. package/tree-select/tree-select-tokens.scss +13 -53
@@ -0,0 +1,120 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chalk = require('chalk');
6
+ var path = require('path');
7
+ var utils_packageConfig = require('../utils/package-config.js');
8
+ var newIconsPack_data = require('./data.js');
9
+ require('@angular-devkit/schematics');
10
+ require('@schematics/angular/utility');
11
+
12
+ function _interopNamespaceDefault(e) {
13
+ var n = Object.create(null);
14
+ if (e) {
15
+ Object.keys(e).forEach(function (k) {
16
+ if (k !== 'default') {
17
+ var d = Object.getOwnPropertyDescriptor(e, k);
18
+ Object.defineProperty(n, k, d.get ? d : {
19
+ enumerable: true,
20
+ get: function () { return e[k]; }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n.default = e;
26
+ return Object.freeze(n);
27
+ }
28
+
29
+ var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
30
+
31
+ const { italic, blue, bold } = chalk;
32
+ const data = newIconsPack_data.newIconsPackData;
33
+ function newIconsPack(options) {
34
+ let targetDir;
35
+ const breakingIconsVersionRegExp = /^\^|\~?9\.1\.0/;
36
+ const pkg = '@koobiq/icons';
37
+ return async (tree, context) => {
38
+ const { project, fix, stylesExt } = options;
39
+ try {
40
+ const projectDefinition = await utils_packageConfig.setupOptions(project, tree);
41
+ targetDir = projectDefinition ? tree.getDir(projectDefinition.root) : tree;
42
+ }
43
+ catch (e) {
44
+ targetDir = tree;
45
+ }
46
+ const { logger } = context;
47
+ const handleDeprecatedIcons = (newContent, path) => {
48
+ if (fix) {
49
+ data.forEach(({ replace, replaceWith }) => {
50
+ newContent = newContent.replace(new RegExp(`kbq-${replace}`, 'g'), `kbq-${replaceWith}`);
51
+ });
52
+ }
53
+ else {
54
+ const foundIcons = data.filter(({ replace }) => newContent.indexOf(replace) !== -1);
55
+ if (foundIcons.length) {
56
+ showWarning(path, foundIcons, logger);
57
+ }
58
+ }
59
+ return newContent;
60
+ };
61
+ // Check if breaking version is used indeed
62
+ if (tree.exists('package.json')) {
63
+ const sourceText = tree.read('package.json').toString('utf-8');
64
+ const json = JSON.parse(sourceText);
65
+ const isIconsBreakingVersionUsed = ['devDependencies', 'dependencies', 'peerDependencies'].some((type) => json[type] && json[type][pkg] && breakingIconsVersionRegExp.test(json[type][pkg]));
66
+ if (!isIconsBreakingVersionUsed) {
67
+ logger.warn('Breaking version of icons is not used. Everything is OK.');
68
+ return;
69
+ }
70
+ }
71
+ // Update templates & components
72
+ targetDir.visit((path, entry) => {
73
+ // if project property not provided, provide node_modules to be changed
74
+ if (path.includes('node_modules')) {
75
+ return;
76
+ }
77
+ if (path.endsWith('.html') || path.endsWith('.ts') || path.endsWith('.md')) {
78
+ const initialContent = entry?.content.toString();
79
+ let newContent = initialContent;
80
+ if (newContent) {
81
+ newIconsPack_data.iconReplacements.forEach(({ replace, replaceWith }) => {
82
+ newContent = newContent.replace(new RegExp(replace, 'g'), replaceWith);
83
+ });
84
+ newContent = handleDeprecatedIcons(newContent, path);
85
+ if (initialContent !== newContent) {
86
+ tree.overwrite(path, newContent || '');
87
+ }
88
+ }
89
+ }
90
+ });
91
+ // update styles
92
+ targetDir.visit((path, entry) => {
93
+ // if project property not provided, provide node_modules to be changed
94
+ if (path.includes('node_modules')) {
95
+ return;
96
+ }
97
+ if (path.endsWith(stylesExt)) {
98
+ const initialContent = entry?.content.toString();
99
+ let newContent = initialContent;
100
+ if (newContent) {
101
+ // replace icons in styles
102
+ newContent = newContent.replace(new RegExp('mc-', 'g'), 'kbq-');
103
+ newContent = handleDeprecatedIcons(newContent, path);
104
+ }
105
+ if (initialContent !== newContent) {
106
+ tree.overwrite(path, newContent || '');
107
+ }
108
+ }
109
+ });
110
+ };
111
+ }
112
+ function showWarning(filePath, foundIcons, logger) {
113
+ logger.warn('-------------------------');
114
+ logger.warn(`Please pay attention! Found deprecated icons in file: `);
115
+ logger.info(`${bold(italic(blue(path__namespace.resolve(`.${filePath}`))))}`);
116
+ logger.warn(foundIcons.map(({ replace, replaceWith }) => `\t${replace} -> \t${replaceWith}`).join('\n'));
117
+ logger.warn('-------------------------');
118
+ }
119
+
120
+ exports.default = newIconsPack;
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "koobiq-components-new-icons-pack",
4
+ "title": "koobiq-components new-icons-pack schematic",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "Name of the project",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ },
14
+ "fix": {
15
+ "type": "boolean",
16
+ "description": "Whether overwrite icons prefixes or simply inform in console",
17
+ "default": false
18
+ },
19
+ "stylesExt": {
20
+ "type": "string",
21
+ "description": "Use this option to specify styles extension preferred in your project",
22
+ "default": "scss"
23
+ }
24
+ }
25
+ }
@@ -4,33 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var schematics = require('@angular-devkit/schematics');
6
6
  var utility = require('@schematics/angular/utility');
7
-
8
- /**
9
- * Sorts the keys of the given object.
10
- * @returns A new object instance with sorted keys
11
- */
12
- function sortObjectByKeys(obj) {
13
- return Object.keys(obj)
14
- .sort()
15
- .reduce((result, key) => (result[key] = obj[key]) && result, {});
16
- }
17
- /**
18
- * Adds a package to the package.json in the given tree
19
- */
20
- function addPackageToPackageJson(tree, pkg, version, devDependency = false) {
21
- if (tree.exists('package.json')) {
22
- const sourceText = tree.read('package.json').toString('utf-8');
23
- const json = JSON.parse(sourceText);
24
- const dependenciesType = devDependency ? 'devDependencies' : 'dependencies';
25
- const dependencies = json[dependenciesType] || {};
26
- if (!dependencies[pkg]) {
27
- dependencies[pkg] = version;
28
- json[dependenciesType] = sortObjectByKeys(dependencies);
29
- }
30
- tree.overwrite('package.json', JSON.stringify(json, null, 2));
31
- }
32
- return tree;
33
- }
7
+ var utils_packageConfig = require('../utils/package-config.js');
34
8
 
35
9
  function noProject(project) {
36
10
  return `Unable to find project '${project}' in the workspace`;
@@ -51,19 +25,19 @@ function ngAdd(options) {
51
25
  }
52
26
  }
53
27
  // Installing dependencies
54
- addPackageToPackageJson(tree, '@angular/cdk', "^17.2.0");
55
- addPackageToPackageJson(tree, '@koobiq/cdk', "^17.8.5");
56
- addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.8.5");
57
- addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.2");
58
- addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.1.2");
59
- addPackageToPackageJson(tree, '@koobiq/icons', "^7.1.1");
60
- addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.5.1");
61
- addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.5.1");
62
- addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
63
- addPackageToPackageJson(tree, 'luxon', "^3.4.4");
64
- addPackageToPackageJson(tree, 'marked', "^9.0.0");
65
- addPackageToPackageJson(tree, 'overlayscrollbars', "^2.7.3");
66
- addPackageToPackageJson(tree, 'ngx-highlightjs', "^10.0.0");
28
+ utils_packageConfig.addPackageToPackageJson(tree, '@angular/cdk', "^18.2.6");
29
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^18.1.0");
30
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^18.1.0");
31
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.2");
32
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.1.2");
33
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/icons', "^9.1.0");
34
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.6.0");
35
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.6.0");
36
+ utils_packageConfig.addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
37
+ utils_packageConfig.addPackageToPackageJson(tree, 'luxon', "^3.4.4");
38
+ utils_packageConfig.addPackageToPackageJson(tree, 'marked', "^9.0.0");
39
+ utils_packageConfig.addPackageToPackageJson(tree, 'overlayscrollbars', "^2.7.3");
40
+ utils_packageConfig.addPackageToPackageJson(tree, 'ngx-highlightjs', "^10.0.0");
67
41
  };
68
42
  }
69
43
 
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+
3
+ var schematics = require('@angular-devkit/schematics');
4
+ var utility = require('@schematics/angular/utility');
5
+
6
+ function noProject(project) {
7
+ return `Unable to find project '${project}' in the workspace`;
8
+ }
9
+
10
+ /**
11
+ * Sorts the keys of the given object.
12
+ * @returns A new object instance with sorted keys
13
+ */
14
+ function sortObjectByKeys(obj) {
15
+ return Object.keys(obj)
16
+ .sort()
17
+ .reduce((result, key) => (result[key] = obj[key]) && result, {});
18
+ }
19
+ /**
20
+ * Adds a package to the package.json in the given tree
21
+ */
22
+ function addPackageToPackageJson(tree, pkg, version, devDependency = false) {
23
+ if (tree.exists('package.json')) {
24
+ const sourceText = tree.read('package.json').toString('utf-8');
25
+ const json = JSON.parse(sourceText);
26
+ const dependenciesType = devDependency ? 'devDependencies' : 'dependencies';
27
+ const dependencies = json[dependenciesType] || {};
28
+ if (!dependencies[pkg]) {
29
+ dependencies[pkg] = version;
30
+ json[dependenciesType] = sortObjectByKeys(dependencies);
31
+ }
32
+ tree.overwrite('package.json', JSON.stringify(json, null, 2));
33
+ }
34
+ return tree;
35
+ }
36
+ /**
37
+ * Gets the version of the specified package by looking at the package.json in the given tree
38
+ */
39
+ function getPackageVersionFromPackageJson(tree, name, includeDevDependencies = false) {
40
+ if (!tree.exists('package.json')) {
41
+ return null;
42
+ }
43
+ const packageJson = JSON.parse(tree.read('package.json').toString('utf8'));
44
+ if (packageJson.dependencies && packageJson.dependencies[name]) {
45
+ return packageJson.dependencies[name];
46
+ }
47
+ if (includeDevDependencies && packageJson.devDependencies && packageJson.devDependencies[name]) {
48
+ return packageJson.devDependencies[name];
49
+ }
50
+ return null;
51
+ }
52
+ async function setupOptions(project, tree) {
53
+ if (project) {
54
+ const workspace = await utility.readWorkspace(tree);
55
+ const projectWorkspace = workspace.projects.get(project);
56
+ if (!projectWorkspace) {
57
+ throw new schematics.SchematicsException(noProject(project));
58
+ }
59
+ return projectWorkspace;
60
+ }
61
+ }
62
+
63
+ exports.addPackageToPackageJson = addPackageToPackageJson;
64
+ exports.getPackageVersionFromPackageJson = getPackageVersionFromPackageJson;
65
+ exports.setupOptions = setupOptions;
@@ -1,17 +1,19 @@
1
+ /* stylelint-disable no-unknown-custom-properties */
2
+
1
3
  .kbq-scrollbar-component {
2
- --kbq-scrollbar-size-track-dimension: 16px;
3
- --kbq-scrollbar-size-track-padding-vertical: 2px;
4
- --kbq-scrollbar-size-track-padding-horizontal: 2px;
5
- --kbq-scrollbar-size-thumb-width: 8px;
6
- --kbq-scrollbar-size-thumb-min-size: 20px;
7
- --kbq-scrollbar-size-thumb-border-radius: 8px;
4
+ --kbq-scrollbar-size-track-dimension: var(--kbq-size-l);
5
+ --kbq-scrollbar-size-track-padding-vertical: var(--kbq-size-3xs);
6
+ --kbq-scrollbar-size-track-padding-horizontal: var(--kbq-size-3xs);
7
+ --kbq-scrollbar-size-thumb-width: var(--kbq-size-s);
8
+ --kbq-scrollbar-size-thumb-min-size: var(--kbq-size-xl);
9
+ --kbq-scrollbar-size-thumb-border-radius: var(--kbq-size-s);
8
10
  }
9
11
 
10
12
  :where(.kbq-light, .theme-light, .kbq-theme-light) {
11
- --kbq-scrollbar-thumb-default-background: hsla(229, 15%, 60%, 100%);
12
- --kbq-scrollbar-thumb-hover-background: hsla(229, 15%, 50%, 100%);
13
- --kbq-scrollbar-thumb-active-background: hsla(229, 15%, 40%, 100%);
14
- --kbq-scrollbar-thumb-disabled-background: hsla(229, 15%, 15%, 32%);
13
+ --kbq-scrollbar-thumb-default-background: var(--kbq-icon-contrast-fade);
14
+ --kbq-scrollbar-thumb-hover-background: var(--kbq-states-icon-contrast-fade-hover);
15
+ --kbq-scrollbar-thumb-active-background: var(--kbq-states-icon-contrast-fade-active);
16
+ --kbq-scrollbar-thumb-disabled-background: var(--kbq-states-icon-disabled);
15
17
  --kbq-scrollbar-track-default-border: transparent;
16
18
  --kbq-scrollbar-track-default-background: transparent;
17
19
  --kbq-scrollbar-track-hover-border: transparent;
@@ -21,10 +23,10 @@
21
23
  }
22
24
 
23
25
  :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
24
- --kbq-scrollbar-thumb-default-background: hsla(229, 15%, 45%, 100%);
25
- --kbq-scrollbar-thumb-hover-background: hsla(229, 15%, 50%, 100%);
26
- --kbq-scrollbar-thumb-active-background: hsla(229, 15%, 40%, 100%);
27
- --kbq-scrollbar-thumb-disabled-background: hsla(229, 15%, 30%, 100%);
26
+ --kbq-scrollbar-thumb-default-background: var(--kbq-icon-contrast-fade);
27
+ --kbq-scrollbar-thumb-hover-background: var(--kbq-states-icon-contrast-fade-hover);
28
+ --kbq-scrollbar-thumb-active-background: var(--kbq-states-icon-contrast-fade-active);
29
+ --kbq-scrollbar-thumb-disabled-background: var(--kbq-states-icon-disabled);
28
30
  --kbq-scrollbar-track-default-border: transparent;
29
31
  --kbq-scrollbar-track-default-background: transparent;
30
32
  --kbq-scrollbar-track-hover-border: transparent;
@@ -20,30 +20,7 @@ export declare class KbqScrollbarDirective implements OnDestroy {
20
20
  /** Whether to defer the initialization to a point in time when the browser is idle. (or to the next frame if `window.requestIdleCallback` is not supported) */
21
21
  defer?: boolean | IdleRequestOptions;
22
22
  scrollbarInstance?: OverlayScrollbars;
23
- constructor(ngZone: NgZone, scrollbarConfig?: {
24
- paddingAbsolute?: boolean | undefined;
25
- showNativeOverlaidScrollbars?: boolean | undefined;
26
- update?: {
27
- elementEvents?: [elementSelector: string, eventNames: string][] | null | undefined;
28
- debounce?: number | [timeout: number, maxWait: number] | null | undefined;
29
- attributes?: string[] | null | undefined;
30
- ignoreMutation?: ((mutation: MutationRecord) => any) | null | undefined;
31
- } | undefined;
32
- overflow?: {
33
- x?: import("overlayscrollbars").OverflowBehavior | undefined;
34
- y?: import("overlayscrollbars").OverflowBehavior | undefined;
35
- } | undefined;
36
- scrollbars?: {
37
- theme?: string | null | undefined;
38
- visibility?: import("overlayscrollbars").ScrollbarsVisibilityBehavior | undefined;
39
- autoHide?: import("overlayscrollbars").ScrollbarsAutoHideBehavior | undefined;
40
- autoHideDelay?: number | undefined;
41
- autoHideSuspend?: boolean | undefined;
42
- dragScroll?: boolean | undefined;
43
- clickScroll?: boolean | undefined;
44
- pointers?: string[] | null | undefined;
45
- } | undefined;
46
- } | undefined);
23
+ constructor(ngZone: NgZone, scrollbarConfig?: KbqScrollbarOptions | undefined);
47
24
  initialize(target: KbqScrollbarTarget): void;
48
25
  ngOnDestroy(): void;
49
26
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqScrollbarDirective, never>;
@@ -1,62 +1,42 @@
1
+ /* stylelint-disable no-unknown-custom-properties */
2
+
1
3
  .kbq-select,
2
4
  .kbq-select__panel {
3
- --kbq-size-xxs: 4px;
4
- --kbq-size-m: 12px;
5
- --kbq-option-size-horizontal-padding: 12px;
6
- --kbq-option-size-height: 32px;
5
+ --kbq-option-size-horizontal-padding: var(--kbq-size-m);
6
+ --kbq-option-size-height: var(--kbq-size-3xl);
7
7
  --kbq-option-size-border-width: 2px;
8
- --kbq-select-size-single-padding-left: 12px;
9
- --kbq-select-size-single-padding-right: 4px;
10
- --kbq-select-size-single-padding-vertical: 6px;
11
- --kbq-select-size-single-content-gap: 4px;
12
- --kbq-select-size-multiple-padding-left: 4px;
13
- --kbq-select-size-multiple-padding-right: 4px;
14
- --kbq-select-size-multiple-padding-vertical: 4px;
15
- --kbq-select-size-multiple-content-gap: 4px;
16
- --kbq-select-font-default-font-size: 14px;
17
- --kbq-select-font-default-line-height: 20px;
18
- --kbq-select-font-default-letter-spacing: -0.006em;
19
- --kbq-select-font-default-font-weight: normal;
20
- --kbq-select-font-default-text-transform: null;
21
- --kbq-select-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
22
- --kbq-select-panel-size-border-radius: 8px;
23
- --kbq-select-panel-size-max-height: 256px;
24
- --kbq-select-panel-font-default-font-size: 14px;
25
- --kbq-select-panel-font-default-line-height: 20px;
26
- --kbq-select-panel-font-default-letter-spacing: -0.006em;
27
- --kbq-select-panel-font-default-font-weight: normal;
28
- --kbq-select-panel-font-default-text-transform: null;
29
- --kbq-select-panel-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
8
+ --kbq-select-size-single-padding-left: var(--kbq-size-m);
9
+ --kbq-select-size-single-padding-right: var(--kbq-size-xxs);
10
+ --kbq-select-size-single-padding-vertical: var(--kbq-size-xs);
11
+ --kbq-select-size-single-content-gap: var(--kbq-size-xxs);
12
+ --kbq-select-size-multiple-padding-left: var(--kbq-size-xxs);
13
+ --kbq-select-size-multiple-padding-right: var(--kbq-size-xxs);
14
+ --kbq-select-size-multiple-padding-vertical: var(--kbq-size-xxs);
15
+ --kbq-select-size-multiple-content-gap: var(--kbq-size-xxs);
16
+ --kbq-select-font-default-font-size: var(--kbq-typography-text-normal-font-size);
17
+ --kbq-select-font-default-line-height: var(--kbq-typography-text-normal-line-height);
18
+ --kbq-select-font-default-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
19
+ --kbq-select-font-default-font-weight: var(--kbq-typography-text-normal-font-weight);
30
20
  --kbq-select-font-default-font-family: var(--kbq-typography-text-normal-font-family);
21
+ --kbq-select-font-default-text-transform: var(--kbq-typography-text-normal-text-transform);
22
+ --kbq-select-font-default-font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
23
+ --kbq-select-panel-size-border-radius: var(--kbq-size-s);
24
+ --kbq-select-panel-size-max-height: 256px;
25
+ --kbq-select-panel-font-default-font-size: var(--kbq-typography-text-normal-font-size);
26
+ --kbq-select-panel-font-default-line-height: var(--kbq-typography-text-normal-line-height);
27
+ --kbq-select-panel-font-default-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
28
+ --kbq-select-panel-font-default-font-weight: var(--kbq-typography-text-normal-font-weight);
31
29
  --kbq-select-panel-font-default-font-family: var(--kbq-typography-text-normal-font-family);
32
- }
33
-
34
- :root {
35
- --kbq-typography-text-normal-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
36
- Arial, sans-serif;
30
+ --kbq-select-panel-font-default-text-transform: var(--kbq-typography-text-normal-text-transform);
31
+ --kbq-select-panel-font-default-font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
37
32
  }
38
33
 
39
34
  :where(.kbq-light, .theme-light, .kbq-theme-light) {
40
- --kbq-error-default: hsla(7, 97%, 50%, 100%);
41
- --kbq-foreground-contrast: hsla(229, 15%, 15%, 100%);
42
- --kbq-foreground-contrast-secondary: hsla(229, 15%, 50%, 100%);
43
- --kbq-foreground-contrast-tertiary: hsla(229, 15%, 60%, 100%);
44
- --kbq-foreground-text-less-contrast: hsla(229, 15%, 50%, 100%);
45
- --kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
46
- --kbq-divider-color: hsla(229, 15%, 6%, 12%);
47
- --kbq-select-panel-dropdown-background: hsla(229, 15%, 100%, 100%);
48
- --kbq-select-panel-dropdown-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 2px 8px hsla(229, 15%, 6%, 6%),
49
- 0 3px 8px hsla(229, 15%, 6%, 12%);
35
+ --kbq-select-panel-dropdown-background: var(--kbq-background-card);
36
+ --kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
50
37
  }
51
38
 
52
39
  :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
53
- --kbq-error-default: hsla(7, 97%, 50%, 100%);
54
- --kbq-foreground-contrast: hsla(229, 15%, 80%, 100%);
55
- --kbq-foreground-contrast-secondary: hsla(229, 15%, 60%, 100%);
56
- --kbq-foreground-contrast-tertiary: hsla(229, 15%, 45%, 100%);
57
- --kbq-foreground-text-less-contrast: hsla(229, 15%, 50%, 100%);
58
- --kbq-foreground-text-disabled: hsla(229, 15%, 70%, 100%);
59
- --kbq-divider-color: hsla(229, 15%, 22%, 100%);
60
- --kbq-select-panel-dropdown-background: hsla(229, 15%, 15%, 100%);
61
- --kbq-select-panel-dropdown-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
40
+ --kbq-select-panel-dropdown-background: var(--kbq-background-card);
41
+ --kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
62
42
  }
@@ -1,53 +1,47 @@
1
+ /* stylelint-disable no-unknown-custom-properties */
2
+
1
3
  .kbq-sidepanel-container {
2
4
  --kbq-sidepanel-size-small-width: 400px;
3
5
  --kbq-sidepanel-size-medium-width: 640px;
4
6
  --kbq-sidepanel-size-large-width: 960px;
5
- --kbq-sidepanel-size-header-padding-vertical: 16px;
6
- --kbq-sidepanel-size-header-padding-left: 32px;
7
- --kbq-sidepanel-size-header-padding-right: 12px;
8
- --kbq-sidepanel-size-close-button-margin-left: 8px;
9
- --kbq-sidepanel-size-content-padding-horizontal: 32px;
10
- --kbq-sidepanel-size-content-padding-bottom: 24px;
11
- --kbq-sidepanel-size-footer-padding-top: 8px;
12
- --kbq-sidepanel-size-footer-padding-bottom: 32px;
13
- --kbq-sidepanel-size-footer-padding-horizontal: 32px;
14
- --kbq-sidepanel-size-footer-content-gap-horizontal: 16px;
15
- --kbq-sidepanel-font-header-font-size: 20px;
16
- --kbq-sidepanel-font-header-line-height: 28px;
17
- --kbq-sidepanel-font-header-letter-spacing: normal;
18
- --kbq-sidepanel-font-header-font-weight: 700;
19
- --kbq-sidepanel-font-header-text-transform: null;
20
- --kbq-sidepanel-font-header-font-feature-settings: 'calt', 'kern', 'liga';
21
- --kbq-sidepanel-font-content-font-size: 14px;
22
- --kbq-sidepanel-font-content-line-height: 20px;
23
- --kbq-sidepanel-font-content-letter-spacing: -0.006em;
24
- --kbq-sidepanel-font-content-font-weight: normal;
25
- --kbq-sidepanel-font-content-text-transform: null;
26
- --kbq-sidepanel-font-content-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
7
+ --kbq-sidepanel-size-header-padding-vertical: var(--kbq-size-l);
8
+ --kbq-sidepanel-size-header-padding-left: var(--kbq-size-3xl);
9
+ --kbq-sidepanel-size-header-padding-right: var(--kbq-size-m);
10
+ --kbq-sidepanel-size-close-button-margin-left: var(--kbq-size-s);
11
+ --kbq-sidepanel-size-content-padding-horizontal: var(--kbq-size-3xl);
12
+ --kbq-sidepanel-size-content-padding-bottom: var(--kbq-size-xxl);
13
+ --kbq-sidepanel-size-footer-padding-top: var(--kbq-size-s);
14
+ --kbq-sidepanel-size-footer-padding-bottom: var(--kbq-size-3xl);
15
+ --kbq-sidepanel-size-footer-padding-horizontal: var(--kbq-size-3xl);
16
+ --kbq-sidepanel-size-footer-content-gap-horizontal: var(--kbq-size-l);
17
+ --kbq-sidepanel-font-header-font-size: var(--kbq-typography-title-font-size);
18
+ --kbq-sidepanel-font-header-line-height: var(--kbq-typography-title-line-height);
19
+ --kbq-sidepanel-font-header-letter-spacing: var(--kbq-typography-title-letter-spacing);
20
+ --kbq-sidepanel-font-header-font-weight: var(--kbq-typography-title-font-weight);
27
21
  --kbq-sidepanel-font-header-font-family: var(--kbq-typography-title-font-family);
22
+ --kbq-sidepanel-font-header-text-transform: var(--kbq-typography-title-text-transform);
23
+ --kbq-sidepanel-font-header-font-feature-settings: var(--kbq-typography-title-font-feature-settings);
24
+ --kbq-sidepanel-font-content-font-size: var(--kbq-typography-text-normal-font-size);
25
+ --kbq-sidepanel-font-content-line-height: var(--kbq-typography-text-normal-line-height);
26
+ --kbq-sidepanel-font-content-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
27
+ --kbq-sidepanel-font-content-font-weight: var(--kbq-typography-text-normal-font-weight);
28
28
  --kbq-sidepanel-font-content-font-family: var(--kbq-typography-text-normal-font-family);
29
- }
30
-
31
- :root {
32
- --kbq-typography-title-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
33
- 'Helvetica Neue', Arial, sans-serif;
34
- --kbq-typography-text-normal-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
35
- Arial, sans-serif;
29
+ --kbq-sidepanel-font-content-text-transform: var(--kbq-typography-text-normal-text-transform);
30
+ --kbq-sidepanel-font-content-font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
36
31
  }
37
32
 
38
33
  :where(.kbq-light, .theme-light, .kbq-theme-light) {
39
- --kbq-sidepanel-overlay-background: hsla(229, 15%, 20%, 32%);
40
- --kbq-sidepanel-container-background: hsla(229, 15%, 100%, 100%);
41
- --kbq-sidepanel-container-box-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 3px 16px hsla(229, 15%, 6%, 6%),
42
- 0 4px 32px hsla(229, 15%, 6%, 12%);
43
- --kbq-sidepanel-header-text-color: hsla(229, 15%, 15%, 100%);
44
- --kbq-sidepanel-content-text-color: hsla(229, 15%, 15%, 100%);
34
+ --kbq-sidepanel-overlay-background: var(--kbq-background-overlay);
35
+ --kbq-sidepanel-container-background: var(--kbq-background-card);
36
+ --kbq-sidepanel-container-box-shadow: var(--kbq-shadow-overlay);
37
+ --kbq-sidepanel-header-text-color: var(--kbq-foreground-contrast);
38
+ --kbq-sidepanel-content-text-color: var(--kbq-foreground-contrast);
45
39
  }
46
40
 
47
41
  :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
48
- --kbq-sidepanel-overlay-background: hsla(229, 15%, 6%, 64%);
49
- --kbq-sidepanel-container-background: hsla(229, 15%, 15%, 100%);
50
- --kbq-sidepanel-container-box-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
51
- --kbq-sidepanel-header-text-color: hsla(229, 15%, 80%, 100%);
52
- --kbq-sidepanel-content-text-color: hsla(229, 15%, 80%, 100%);
42
+ --kbq-sidepanel-overlay-background: var(--kbq-background-overlay);
43
+ --kbq-sidepanel-container-background: var(--kbq-background-card);
44
+ --kbq-sidepanel-container-box-shadow: var(--kbq-shadow-overlay);
45
+ --kbq-sidepanel-header-text-color: var(--kbq-foreground-contrast);
46
+ --kbq-sidepanel-content-text-color: var(--kbq-foreground-contrast);
53
47
  }
@@ -1,7 +1 @@
1
- :where(.kbq-light, .theme-light, .kbq-theme-light) {
2
- --kbq-background-background-disabled: hsla(229, 15%, 95%, 100%);
3
- }
4
-
5
- :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
6
- --kbq-background-background-disabled: hsla(229, 15%, 95%, 100%);
7
- }
1
+ /* stylelint-disable no-unknown-custom-properties */
@@ -1,42 +1,21 @@
1
+ /* stylelint-disable no-unknown-custom-properties */
2
+
1
3
  .kbq-table {
2
- --kbq-table-size-border-width: 1px;
4
+ --kbq-table-size-border-width: var(--kbq-size-border-width);
3
5
  --kbq-table-size-row-padding-vertical: 10px;
4
- --kbq-table-size-row-padding-horizontal: 8px;
5
- --kbq-table-font-header-font-size: 14px;
6
- --kbq-table-font-header-line-height: 20px;
7
- --kbq-table-font-header-letter-spacing: -0.006em;
8
- --kbq-table-font-header-font-weight: normal;
9
- --kbq-table-font-header-text-transform: null;
10
- --kbq-table-font-header-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
11
- --kbq-table-font-body-font-size: 14px;
12
- --kbq-table-font-body-line-height: 20px;
13
- --kbq-table-font-body-letter-spacing: -0.006em;
14
- --kbq-table-font-body-font-weight: normal;
15
- --kbq-table-font-body-text-transform: null;
16
- --kbq-table-font-body-font-feature-settings: 'calt', 'ss01', 'ss04', 'tnum';
6
+ --kbq-table-size-row-padding-horizontal: var(--kbq-size-s);
7
+ --kbq-table-font-header-font-size: var(--kbq-typography-text-normal-font-size);
8
+ --kbq-table-font-header-line-height: var(--kbq-typography-text-normal-line-height);
9
+ --kbq-table-font-header-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
10
+ --kbq-table-font-header-font-weight: var(--kbq-typography-text-normal-font-weight);
17
11
  --kbq-table-font-header-font-family: var(--kbq-typography-text-normal-font-family);
12
+ --kbq-table-font-header-text-transform: var(--kbq-typography-text-normal-text-transform);
13
+ --kbq-table-font-header-font-feature-settings: var(--kbq-typography-text-normal-font-feature-settings);
14
+ --kbq-table-font-body-font-size: var(--kbq-typography-tabular-normal-font-size);
15
+ --kbq-table-font-body-line-height: var(--kbq-typography-tabular-normal-line-height);
16
+ --kbq-table-font-body-letter-spacing: var(--kbq-typography-tabular-normal-letter-spacing);
17
+ --kbq-table-font-body-font-weight: var(--kbq-typography-tabular-normal-font-weight);
18
18
  --kbq-table-font-body-font-family: var(--kbq-typography-tabular-normal-font-family);
19
- }
20
-
21
- :root {
22
- --kbq-typography-text-normal-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
23
- Arial, sans-serif;
24
- --kbq-typography-tabular-normal-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
25
- Arial, sans-serif;
26
- }
27
-
28
- :where(.kbq-light, .theme-light, .kbq-theme-light) {
29
- --kbq-foreground-contrast: hsla(229, 15%, 15%, 100%);
30
- --kbq-foreground-contrast-secondary: hsla(229, 15%, 50%, 100%);
31
- --kbq-foreground-contrast-tertiary: hsla(229, 15%, 60%, 100%);
32
- --kbq-line-contrast-less: hsla(229, 15%, 6%, 12%);
33
- --kbq-states-background-transparent-hover: hsla(229, 15%, 50%, 8%);
34
- }
35
-
36
- :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
37
- --kbq-foreground-contrast: hsla(229, 15%, 80%, 100%);
38
- --kbq-foreground-contrast-secondary: hsla(229, 15%, 60%, 100%);
39
- --kbq-foreground-contrast-tertiary: hsla(229, 15%, 45%, 100%);
40
- --kbq-line-contrast-less: hsla(229, 15%, 22%, 100%);
41
- --kbq-states-background-transparent-hover: hsla(229, 15%, 50%, 16%);
19
+ --kbq-table-font-body-text-transform: var(--kbq-typography-tabular-normal-text-transform);
20
+ --kbq-table-font-body-font-feature-settings: var(--kbq-typography-tabular-normal-font-feature-settings);
42
21
  }