@caspeco/casper-ui-library 11.4.0 → 12.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 (351) hide show
  1. package/README.md +5 -5
  2. package/dist/components/accordion/accordion-item.js +11 -11
  3. package/dist/components/accordion/accordion-panel.js +4 -4
  4. package/dist/components/accordion/accordion.js +4 -4
  5. package/dist/components/alert/alert.d.ts.map +1 -1
  6. package/dist/components/alert/alert.js +14 -14
  7. package/dist/components/alert/helper.d.ts +3 -3
  8. package/dist/components/alert/helper.d.ts.map +1 -1
  9. package/dist/components/alert/helper.js +1 -1
  10. package/dist/components/badge/badge.js +19 -19
  11. package/dist/components/badge/helper.d.ts +3 -3
  12. package/dist/components/badge/helper.d.ts.map +1 -1
  13. package/dist/components/badge/helper.js +1 -1
  14. package/dist/components/box/box.composition.d.ts.map +1 -1
  15. package/dist/components/box/box.js +3 -3
  16. package/dist/components/breadcrumbs/breadcrumb-item.js +4 -4
  17. package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
  18. package/dist/components/breadcrumbs/breadcrumbs.js +25 -25
  19. package/dist/components/button/button.d.ts +1 -1
  20. package/dist/components/button/button.d.ts.map +1 -1
  21. package/dist/components/button/button.js +6 -6
  22. package/dist/components/checkbox/checkbox-icon.js +3 -3
  23. package/dist/components/checkbox/checkbox.js +8 -8
  24. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  25. package/dist/components/collapsible/collapsible.d.ts +1 -1
  26. package/dist/components/collapsible/collapsible.d.ts.map +1 -1
  27. package/dist/components/collapsible/collapsible.js +31 -30
  28. package/dist/components/collapsible/collapsible.translations.d.ts +6 -0
  29. package/dist/components/collapsible/collapsible.translations.d.ts.map +1 -0
  30. package/dist/components/collapsible/collapsible.translations.js +54 -0
  31. package/dist/components/collapsible/types.d.ts +0 -6
  32. package/dist/components/collapsible/types.d.ts.map +1 -1
  33. package/dist/components/combobox/combobox-button.d.ts +1 -1
  34. package/dist/components/combobox/combobox-button.d.ts.map +1 -1
  35. package/dist/components/combobox/combobox-button.js +67 -65
  36. package/dist/components/combobox/combobox-item.js +9 -9
  37. package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
  38. package/dist/components/combobox/combobox-menu.js +96 -95
  39. package/dist/components/combobox/combobox-recipe.js +1 -1
  40. package/dist/components/combobox/combobox.d.ts +1 -1
  41. package/dist/components/combobox/combobox.d.ts.map +1 -1
  42. package/dist/components/combobox/combobox.js +91 -91
  43. package/dist/components/combobox/combobox.translations.d.ts +10 -0
  44. package/dist/components/combobox/combobox.translations.d.ts.map +1 -0
  45. package/dist/components/combobox/combobox.translations.js +102 -0
  46. package/dist/components/combobox/index.d.ts +1 -1
  47. package/dist/components/combobox/index.d.ts.map +1 -1
  48. package/dist/components/combobox/types.d.ts +0 -15
  49. package/dist/components/combobox/types.d.ts.map +1 -1
  50. package/dist/components/date-picker/base-date-picker.d.ts +1 -1
  51. package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
  52. package/dist/components/date-picker/base-date-picker.js +164 -163
  53. package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
  54. package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
  55. package/dist/components/date-picker/date-multi-picker.js +20 -21
  56. package/dist/components/date-picker/date-picker-date-cell.d.ts.map +1 -1
  57. package/dist/components/date-picker/date-picker-date-cell.js +27 -27
  58. package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
  59. package/dist/components/date-picker/date-picker-header.js +83 -115
  60. package/dist/components/date-picker/date-picker-week-cell.js +5 -5
  61. package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
  62. package/dist/components/date-picker/date-picker.d.ts +1 -1
  63. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  64. package/dist/components/date-picker/date-picker.js +20 -21
  65. package/dist/components/date-picker/date-picker.translations.d.ts +6 -0
  66. package/dist/components/date-picker/date-picker.translations.d.ts.map +1 -0
  67. package/dist/components/date-picker/date-picker.translations.js +54 -0
  68. package/dist/components/date-picker/date-range-picker.d.ts +1 -1
  69. package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
  70. package/dist/components/date-picker/date-range-picker.js +15 -16
  71. package/dist/components/date-picker/date-week-picker.d.ts +1 -1
  72. package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
  73. package/dist/components/date-picker/date-week-picker.js +13 -14
  74. package/dist/components/date-picker/types.d.ts +4 -10
  75. package/dist/components/date-picker/types.d.ts.map +1 -1
  76. package/dist/components/divider/divider.d.ts.map +1 -1
  77. package/dist/components/divider/divider.js +4 -4
  78. package/dist/components/drawer/drawer.js +6 -6
  79. package/dist/components/drawer/inline-drawer.js +5 -5
  80. package/dist/components/fieldset/fieldset-error-text.js +3 -3
  81. package/dist/components/fieldset/fieldset-helper-text.js +3 -3
  82. package/dist/components/fieldset/fieldset-legend.js +3 -3
  83. package/dist/components/fieldset/fieldset.js +3 -3
  84. package/dist/components/flex/flex.js +3 -3
  85. package/dist/components/form-control/form-control.js +3 -3
  86. package/dist/components/form-control/form-error-message.js +3 -3
  87. package/dist/components/form-control/form-helper-text.js +3 -3
  88. package/dist/components/form-control/form-label.d.ts.map +1 -1
  89. package/dist/components/form-control/form-label.js +6 -6
  90. package/dist/components/grid/grid-item.js +3 -3
  91. package/dist/components/grid/grid.js +3 -3
  92. package/dist/components/heading/heading.d.ts.map +1 -1
  93. package/dist/components/heading/heading.js +5 -5
  94. package/dist/components/highlight/highlight.js +4 -4
  95. package/dist/components/icon/create-icon.d.ts +2 -2
  96. package/dist/components/icon/create-icon.d.ts.map +1 -1
  97. package/dist/components/icon/create-icon.js +8 -8
  98. package/dist/components/icon/icon.composition.d.ts.map +1 -1
  99. package/dist/components/icon-button/icon-button.d.ts.map +1 -1
  100. package/dist/components/icon-button/icon-button.js +5 -5
  101. package/dist/components/image/image.js +3 -3
  102. package/dist/components/image-upload/image-upload-dropzone.d.ts +1 -3
  103. package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
  104. package/dist/components/image-upload/image-upload-dropzone.js +76 -75
  105. package/dist/components/image-upload/image-upload-icons.js +11 -11
  106. package/dist/components/image-upload/image-upload-modal.d.ts +2 -3
  107. package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
  108. package/dist/components/image-upload/image-upload-modal.js +70 -70
  109. package/dist/components/image-upload/image-upload.d.ts +1 -1
  110. package/dist/components/image-upload/image-upload.d.ts.map +1 -1
  111. package/dist/components/image-upload/image-upload.js +44 -45
  112. package/dist/components/image-upload/image-upload.translations.d.ts +12 -0
  113. package/dist/components/image-upload/image-upload.translations.d.ts.map +1 -0
  114. package/dist/components/image-upload/image-upload.translations.js +126 -0
  115. package/dist/components/image-upload/types.d.ts +0 -3
  116. package/dist/components/image-upload/types.d.ts.map +1 -1
  117. package/dist/components/input/helper.js +1 -1
  118. package/dist/components/input/input-recipe.js +1 -1
  119. package/dist/components/input/input.d.ts +1 -1
  120. package/dist/components/input/input.js +6 -6
  121. package/dist/components/link/link.js +3 -3
  122. package/dist/components/list/list-item.js +3 -3
  123. package/dist/components/list/list.d.ts.map +1 -1
  124. package/dist/components/list/list.js +4 -4
  125. package/dist/components/menu/menu-box-button.js +4 -4
  126. package/dist/components/menu/menu-button.js +4 -4
  127. package/dist/components/menu/menu-divider.js +1 -1
  128. package/dist/components/menu/menu-group.d.ts.map +1 -1
  129. package/dist/components/menu/menu-group.js +12 -12
  130. package/dist/components/menu/menu-icon-button.js +4 -4
  131. package/dist/components/menu/menu-item.d.ts.map +1 -1
  132. package/dist/components/menu/menu-item.js +8 -8
  133. package/dist/components/menu/menu-list.js +3 -3
  134. package/dist/components/menu/menu-recipe.d.ts.map +1 -1
  135. package/dist/components/menu/menu-recipe.js +1 -1
  136. package/dist/components/menu/menu.js +4 -4
  137. package/dist/components/message/message.js +9 -9
  138. package/dist/components/modal/modal-body.js +3 -3
  139. package/dist/components/modal/modal-close-button.js +6 -6
  140. package/dist/components/modal/modal-footer.js +3 -3
  141. package/dist/components/modal/modal-header.js +3 -3
  142. package/dist/components/modal/modal.composition.d.ts.map +1 -1
  143. package/dist/components/modal/modal.js +8 -8
  144. package/dist/components/navigation-list/navigation-list-item.js +13 -13
  145. package/dist/components/navigation-list/navigation-list.js +4 -4
  146. package/dist/components/paginator/paginator-recipe.d.ts.map +1 -1
  147. package/dist/components/paginator/paginator-recipe.js +3 -3
  148. package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
  149. package/dist/components/paginator/paginator.d.ts +1 -4
  150. package/dist/components/paginator/paginator.d.ts.map +1 -1
  151. package/dist/components/paginator/paginator.js +31 -30
  152. package/dist/components/paginator/paginator.translations.d.ts +7 -0
  153. package/dist/components/paginator/paginator.translations.d.ts.map +1 -0
  154. package/dist/components/paginator/paginator.translations.js +66 -0
  155. package/dist/components/phone-input/country-data.d.ts +2 -2
  156. package/dist/components/phone-input/country-data.d.ts.map +1 -1
  157. package/dist/components/phone-input/country-list.js +6 -6
  158. package/dist/components/phone-input/country-selector.d.ts +1 -4
  159. package/dist/components/phone-input/country-selector.d.ts.map +1 -1
  160. package/dist/components/phone-input/country-selector.js +86 -84
  161. package/dist/components/phone-input/phone-input-helpers.d.ts +4 -5
  162. package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
  163. package/dist/components/phone-input/phone-input-helpers.js +33 -34
  164. package/dist/components/phone-input/phone-input.d.ts +1 -1
  165. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  166. package/dist/components/phone-input/phone-input.js +38 -38
  167. package/dist/components/phone-input/phone-input.translations.d.ts +10 -0
  168. package/dist/components/phone-input/phone-input.translations.d.ts.map +1 -0
  169. package/dist/components/phone-input/phone-input.translations.js +102 -0
  170. package/dist/components/phone-input/types.d.ts +0 -3
  171. package/dist/components/phone-input/types.d.ts.map +1 -1
  172. package/dist/components/phone-input/use-phone-input.d.ts +0 -3
  173. package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
  174. package/dist/components/phone-input/use-phone-input.js +82 -81
  175. package/dist/components/quantity-button/quantity-button.composition.d.ts.map +1 -1
  176. package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
  177. package/dist/components/quantity-button/quantity-button.js +13 -13
  178. package/dist/components/radio/hover-styles.js +1 -1
  179. package/dist/components/radio/radio-group-recipe.js +1 -1
  180. package/dist/components/radio/radio-group.js +4 -4
  181. package/dist/components/radio/radio.d.ts +1 -1
  182. package/dist/components/radio/radio.d.ts.map +1 -1
  183. package/dist/components/radio/radio.js +15 -15
  184. package/dist/components/radio-card/hover-styles.js +1 -1
  185. package/dist/components/radio-card/radio-card-group.d.ts.map +1 -1
  186. package/dist/components/radio-card/radio-card-group.js +4 -4
  187. package/dist/components/radio-card/radio-card.d.ts +1 -1
  188. package/dist/components/radio-card/radio-card.js +10 -10
  189. package/dist/components/rich-text-editor/index.d.ts +1 -1
  190. package/dist/components/rich-text-editor/index.d.ts.map +1 -1
  191. package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +0 -2
  192. package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -1
  193. package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
  194. package/dist/components/rich-text-editor/rich-text-editor-control.js +130 -129
  195. package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts.map +1 -1
  196. package/dist/components/rich-text-editor/rich-text-editor-recipe.js +1 -1
  197. package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
  198. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  199. package/dist/components/rich-text-editor/rich-text-editor.js +23 -26
  200. package/dist/components/rich-text-editor/{translations.d.ts → rich-text-editor.translations.d.ts} +3 -5
  201. package/dist/components/rich-text-editor/rich-text-editor.translations.d.ts.map +1 -0
  202. package/dist/components/rich-text-editor/rich-text-editor.translations.js +234 -0
  203. package/dist/components/rich-text-editor/rich-text-renderer.js +4 -4
  204. package/dist/components/rich-text-editor/types.d.ts +0 -2
  205. package/dist/components/rich-text-editor/types.d.ts.map +1 -1
  206. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  207. package/dist/components/segmented-control/segmented-control.js +6 -6
  208. package/dist/components/select/select-recipe.js +1 -1
  209. package/dist/components/select/select.js +6 -6
  210. package/dist/components/skeleton/skeleton-text.d.ts.map +1 -1
  211. package/dist/components/skeleton/skeleton-text.js +4 -4
  212. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  213. package/dist/components/skeleton/skeleton.js +4 -4
  214. package/dist/components/spinner/spinner.d.ts.map +1 -1
  215. package/dist/components/spinner/spinner.js +6 -6
  216. package/dist/components/stack/stack.d.ts +1 -1
  217. package/dist/components/stack/stack.js +3 -3
  218. package/dist/components/stepper/step-context.d.ts +4 -4
  219. package/dist/components/stepper/step-context.d.ts.map +1 -1
  220. package/dist/components/stepper/step.d.ts.map +1 -1
  221. package/dist/components/stepper/step.js +28 -28
  222. package/dist/components/stepper/stepper.js +9 -9
  223. package/dist/components/stepper/types.d.ts +4 -4
  224. package/dist/components/stepper/types.d.ts.map +1 -1
  225. package/dist/components/switch/hover-styles.js +1 -1
  226. package/dist/components/switch/switch.js +6 -6
  227. package/dist/components/table/table-cell.d.ts +1 -3
  228. package/dist/components/table/table-cell.d.ts.map +1 -1
  229. package/dist/components/table/table-cell.js +44 -47
  230. package/dist/components/table/table-column-resize-handle.d.ts.map +1 -1
  231. package/dist/components/table/table-column-resize-handle.js +23 -22
  232. package/dist/components/table/table-content.d.ts.map +1 -1
  233. package/dist/components/table/table-content.js +82 -80
  234. package/dist/components/table/table-context-provider.d.ts +1 -4
  235. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  236. package/dist/components/table/table-context-provider.js +137 -140
  237. package/dist/components/table/table-drag-accessibility.d.ts +3 -3
  238. package/dist/components/table/table-drag-accessibility.d.ts.map +1 -1
  239. package/dist/components/table/table-drag-accessibility.js +10 -14
  240. package/dist/components/table/table-filter.d.ts.map +1 -1
  241. package/dist/components/table/table-filter.js +60 -60
  242. package/dist/components/table/table-header-dropdown.d.ts +0 -2
  243. package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
  244. package/dist/components/table/table-header-dropdown.js +29 -28
  245. package/dist/components/table/table-header-row.d.ts.map +1 -1
  246. package/dist/components/table/table-header-row.js +56 -59
  247. package/dist/components/table/table-recipe.js +1 -1
  248. package/dist/components/table/table-row-drag-handle.d.ts +1 -3
  249. package/dist/components/table/table-row-drag-handle.d.ts.map +1 -1
  250. package/dist/components/table/table-row-drag-handle.js +11 -10
  251. package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -3
  252. package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
  253. package/dist/components/table/table-row-expand-toggle-button.js +10 -9
  254. package/dist/components/table/table-row.d.ts.map +1 -1
  255. package/dist/components/table/table-row.js +5 -6
  256. package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -3
  257. package/dist/components/table/table-sorted-reorder-prompt.d.ts.map +1 -1
  258. package/dist/components/table/table-sorted-reorder-prompt.js +29 -28
  259. package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
  260. package/dist/components/table/table-toolbar-actions.js +4 -4
  261. package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
  262. package/dist/components/table/table-toolbar-add-button.js +4 -4
  263. package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
  264. package/dist/components/table/table-toolbar-settings.js +110 -108
  265. package/dist/components/table/table-toolbar.d.ts.map +1 -1
  266. package/dist/components/table/table-toolbar.js +14 -14
  267. package/dist/components/table/table.composition.d.ts.map +1 -1
  268. package/dist/components/table/table.d.ts +1 -1
  269. package/dist/components/table/table.d.ts.map +1 -1
  270. package/dist/components/table/table.js +31 -32
  271. package/dist/components/table/table.translations.d.ts +45 -0
  272. package/dist/components/table/table.translations.d.ts.map +1 -0
  273. package/dist/components/table/table.translations.js +522 -0
  274. package/dist/components/table/types.d.ts +0 -5
  275. package/dist/components/table/types.d.ts.map +1 -1
  276. package/dist/components/tabs/tab-list.js +3 -3
  277. package/dist/components/tabs/tab-panel.js +3 -3
  278. package/dist/components/tabs/tab-panels.js +3 -3
  279. package/dist/components/tabs/tab-with-image.js +11 -11
  280. package/dist/components/tabs/tab.js +4 -4
  281. package/dist/components/tabs/tabs-recipe.js +1 -1
  282. package/dist/components/tabs/tabs.js +3 -3
  283. package/dist/components/tabs/types.d.ts +2 -2
  284. package/dist/components/tabs/types.d.ts.map +1 -1
  285. package/dist/components/tag/tag-recipe.js +5 -5
  286. package/dist/components/tag/tag.js +28 -28
  287. package/dist/components/text/text.d.ts.map +1 -1
  288. package/dist/components/text/text.js +5 -5
  289. package/dist/components/textarea/textarea-recipe.js +1 -1
  290. package/dist/components/textarea/textarea.js +3 -3
  291. package/dist/components/toaster/toast-store.d.ts +2 -2
  292. package/dist/components/toaster/toast-store.d.ts.map +1 -1
  293. package/dist/components/toaster/toaster.js +10 -10
  294. package/dist/components/toggle-button/toggle-button.js +3 -3
  295. package/dist/components/toggle-button/use-button-children.js +11 -11
  296. package/dist/components/tooltip/tooltip.d.ts +1 -1
  297. package/dist/components/tooltip/tooltip.js +10 -10
  298. package/dist/index.js +404 -402
  299. package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +13 -19
  300. package/dist/test-utils/render-with-theme.d.ts +5 -1
  301. package/dist/test-utils/render-with-theme.d.ts.map +1 -1
  302. package/dist/theme/index.d.ts +4 -0
  303. package/dist/theme/index.d.ts.map +1 -1
  304. package/dist/theme/locale-provider.d.ts +9 -0
  305. package/dist/theme/locale-provider.d.ts.map +1 -0
  306. package/dist/theme/locale-provider.js +14 -0
  307. package/dist/theme/locale-provider.spec.d.ts +2 -0
  308. package/dist/theme/locale-provider.spec.d.ts.map +1 -0
  309. package/dist/theme/theme-casper-ui.d.ts.map +1 -1
  310. package/dist/theme/theme-casper-ui.js +1 -1
  311. package/dist/theme/theme-locale.d.ts +7 -0
  312. package/dist/theme/theme-locale.d.ts.map +1 -0
  313. package/dist/theme/theme-locale.js +8 -0
  314. package/dist/theme/theme-provider.d.ts +4 -1
  315. package/dist/theme/theme-provider.d.ts.map +1 -1
  316. package/dist/theme/theme-provider.js +30 -25
  317. package/dist/theme/theme-style-props.d.ts +25 -25
  318. package/dist/theme/theme-style-props.d.ts.map +1 -1
  319. package/dist/theme/theme-types.d.ts +46 -10
  320. package/dist/theme/theme-types.d.ts.map +1 -1
  321. package/dist/theme/theme-types.js +2 -2
  322. package/dist/theme/theme-types.spec.d.ts +2 -0
  323. package/dist/theme/theme-types.spec.d.ts.map +1 -0
  324. package/dist/theme/theme.d.ts.map +1 -1
  325. package/dist/theme/theme.js +1 -1
  326. package/dist/theme/translations.d.ts +14 -0
  327. package/dist/theme/translations.d.ts.map +1 -0
  328. package/dist/theme/translations.js +10 -0
  329. package/dist/theme/translations.spec.d.ts +2 -0
  330. package/dist/theme/translations.spec.d.ts.map +1 -0
  331. package/package.json +6 -6
  332. package/dist/components/collapsible/translations.d.ts +0 -32
  333. package/dist/components/collapsible/translations.d.ts.map +0 -1
  334. package/dist/components/collapsible/translations.js +0 -30
  335. package/dist/components/combobox/translations.d.ts +0 -9
  336. package/dist/components/combobox/translations.d.ts.map +0 -1
  337. package/dist/components/combobox/translations.js +0 -57
  338. package/dist/components/image-upload/translations.d.ts +0 -73
  339. package/dist/components/image-upload/translations.d.ts.map +0 -1
  340. package/dist/components/image-upload/translations.js +0 -66
  341. package/dist/components/paginator/translations.d.ts +0 -9
  342. package/dist/components/paginator/translations.d.ts.map +0 -1
  343. package/dist/components/paginator/translations.js +0 -36
  344. package/dist/components/phone-input/translations.d.ts +0 -60
  345. package/dist/components/phone-input/translations.d.ts.map +0 -1
  346. package/dist/components/phone-input/translations.js +0 -54
  347. package/dist/components/rich-text-editor/translations.d.ts.map +0 -1
  348. package/dist/components/rich-text-editor/translations.js +0 -120
  349. package/dist/components/table/translations.d.ts +0 -308
  350. package/dist/components/table/translations.d.ts.map +0 -1
  351. package/dist/components/table/translations.js +0 -267
package/README.md CHANGED
@@ -86,11 +86,11 @@ You may need to tweak the [pixelmatch comparator options](https://vitest.dev/api
86
86
  ```bash
87
87
  git checkout -b UTF-837-add-checkbox-component
88
88
  ```
89
- 3. Make your changes.
90
- 4. Bump the `version` field in `package.json` (following [Semantic versioning](https://semver.org/)) and run `npm install`. The version reflects API changes only (e.g. removing a prop → MAJOR, adding a prop → MINOR, no public API changes → PATCH). UI changes are **NOT** API changes.
91
- 5. Open a [pull request](https://github.com/Caspeco/casper-ui-library/pulls) using the template and assign a reviewer.
92
- 6. If the PR makes significant changes to the UI (e.g. changes the sizes for all buttons), clearly announce this in the [Mattermost channel](https://snack.azure.caspeco.com/default/channels/casper-ui-20---devs).
93
- 7. After approval, merge the PR. If you have a new version in package.json it will automatically publish your changes to npm. The documentation website is always rebuilt.
89
+ 3. Make your changes. Don't touch the `version` field in `package.json`, CI handles it.
90
+ 4. Open a [pull request](https://github.com/Caspeco/casper-ui-library/pulls) using the template and assign a reviewer.
91
+ 5. If the change should be released, add **one** of the labels `bump-patch`, `bump-minor` or `bump-major` (following [Semantic versioning](https://semver.org/)). The version reflects API changes only (e.g. removing a prop → MAJOR, adding a prop → MINOR, no public API changes → PATCH). UI changes are **NOT** API changes.
92
+ 6. If the PR makes significant changes to the UI (e.g. changes the sizes for all buttons), clearly announce this in the [Mattermost channel](https://snack.azure.caspeco.com/default/channels/casper-ui-20).
93
+ 7. After approval, merge the PR. If it has a bump label, CI bumps the version, commits it to `main` and publishes to npm. [`@caspeco/casper-ui-css`](../casper-ui-css) is released the same way with its own `bump-css-*` labels. The documentation website is always rebuilt.
94
94
 
95
95
  ### How to add new icons
96
96
 
@@ -1,33 +1,33 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { ThemeIconSizeVariable as t } from "../../theme/theme-types.js";
2
+ import { ThemeIconSize as t } from "../../theme/theme-types.js";
3
3
  import { useAccordionVariant as n } from "./accordion-context.js";
4
4
  import { CollapseIcon as r } from "../icon/icons/collapse-icon.js";
5
5
  import { ExpandIcon as i } from "../icon/icons/expand-icon.js";
6
6
  import { TreeViewCollapseIcon as a } from "../icon/icons/tree-view-collapse-icon.js";
7
7
  import { TreeViewExpandIcon as o } from "../icon/icons/tree-view-expand-icon.js";
8
- import { Accordion as s, Box as c, useAccordionStyles as l } from "@chakra-ui/react";
9
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
8
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { Accordion as u, Box as d, useAccordionStyles as f } from "@chakra-ui/react";
10
10
  //#region lib/components/accordion/accordion-item.tsx
11
11
  var p = e(), m = (e) => {
12
12
  let m = (0, p.c)(21), h, g, _, v, y;
13
13
  m[0] === e ? (h = m[1], g = m[2], _ = m[3], v = m[4], y = m[5]) : ({children: h, title: v, rightElement: _, value: y, ...g} = e, m[0] = e, m[1] = h, m[2] = g, m[3] = _, m[4] = v, m[5] = y);
14
- let b = n(), x = l(), S;
14
+ let b = n(), x = f(), S;
15
15
  m[6] === b ? S = m[7] : (S = (e) => b === "noBorder" ? e ? a : o : e ? r : i, m[6] = b, m[7] = S);
16
16
  let C = S, w;
17
- m[8] !== h || m[9] !== C || m[10] !== _ || m[11] !== x.itemHeader || m[12] !== x.itemIcon || m[13] !== x.itemRightElement || m[14] !== v || m[15] !== b ? (w = /* @__PURE__ */ d(s.ItemContext, { children: (e) => {
18
- let { expanded: n } = e, r = C(n), i = /* @__PURE__ */ d(c, {
17
+ m[8] !== h || m[9] !== C || m[10] !== _ || m[11] !== x.itemHeader || m[12] !== x.itemIcon || m[13] !== x.itemRightElement || m[14] !== v || m[15] !== b ? (w = /* @__PURE__ */ c(u.ItemContext, { children: (e) => {
18
+ let { expanded: n } = e, r = C(n), i = /* @__PURE__ */ c(d, {
19
19
  as: "span",
20
20
  "aria-hidden": !0,
21
21
  css: x.itemIcon,
22
- children: /* @__PURE__ */ d(r, { size: t.Small })
22
+ children: /* @__PURE__ */ c(r, { size: t.Small })
23
23
  });
24
- return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f(c, {
24
+ return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l(d, {
25
25
  css: x.itemHeader,
26
26
  "data-expanded": n ? "" : void 0,
27
27
  children: [
28
28
  b === "noBorder" && i,
29
- /* @__PURE__ */ d("h3", { children: /* @__PURE__ */ d(s.ItemTrigger, { children: v }) }),
30
- _ && /* @__PURE__ */ d(c, {
29
+ /* @__PURE__ */ c("h3", { children: /* @__PURE__ */ c(u.ItemTrigger, { children: v }) }),
30
+ _ && /* @__PURE__ */ c(d, {
31
31
  css: x.itemRightElement,
32
32
  children: _
33
33
  }),
@@ -36,7 +36,7 @@ var p = e(), m = (e) => {
36
36
  }), h] });
37
37
  } }), m[8] = h, m[9] = C, m[10] = _, m[11] = x.itemHeader, m[12] = x.itemIcon, m[13] = x.itemRightElement, m[14] = v, m[15] = b, m[16] = w) : w = m[16];
38
38
  let T;
39
- return m[17] !== g || m[18] !== w || m[19] !== y ? (T = /* @__PURE__ */ d(s.Item, {
39
+ return m[17] !== g || m[18] !== w || m[19] !== y ? (T = /* @__PURE__ */ c(u.Item, {
40
40
  ...g,
41
41
  value: y,
42
42
  children: w
@@ -1,15 +1,15 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { Accordion as t } from "@chakra-ui/react";
3
- import { jsx as n } from "react/jsx-runtime";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { Accordion as n } from "@chakra-ui/react";
4
4
  //#region lib/components/accordion/accordion-panel.tsx
5
5
  var r = e();
6
6
  function i(e) {
7
7
  let i = (0, r.c)(6), a, o;
8
8
  i[0] === e ? (a = i[1], o = i[2]) : ({children: a, ...o} = e, i[0] = e, i[1] = a, i[2] = o);
9
9
  let s;
10
- return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ n(t.ItemContent, {
10
+ return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ t(n.ItemContent, {
11
11
  "data-testid": "accordionPanel",
12
- children: /* @__PURE__ */ n(t.ItemBody, {
12
+ children: /* @__PURE__ */ t(n.ItemBody, {
13
13
  ...o,
14
14
  children: a
15
15
  })
@@ -1,21 +1,21 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
2
  import { AccordionVariantContext as t } from "./accordion-context.js";
3
- import { Accordion as n } from "@chakra-ui/react";
4
- import { jsx as r } from "react/jsx-runtime";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { Accordion as r } from "@chakra-ui/react";
5
5
  //#region lib/components/accordion/accordion.tsx
6
6
  var i = e();
7
7
  function a(e) {
8
8
  let a = (0, i.c)(11), o, s, c;
9
9
  a[0] === e ? (o = a[1], s = a[2], c = a[3]) : ({children: o, variant: c, ...s} = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c);
10
10
  let l = c === void 0 ? "border" : c, u;
11
- a[4] !== o || a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ r(n.Root, {
11
+ a[4] !== o || a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ n(r.Root, {
12
12
  variant: l,
13
13
  collapsible: !0,
14
14
  ...s,
15
15
  children: o
16
16
  }), a[4] = o, a[5] = s, a[6] = l, a[7] = u) : u = a[7];
17
17
  let d;
18
- return a[8] !== u || a[9] !== l ? (d = /* @__PURE__ */ r(t.Provider, {
18
+ return a[8] !== u || a[9] !== l ? (d = /* @__PURE__ */ n(t.Provider, {
19
19
  value: l,
20
20
  children: u
21
21
  }), a[8] = u, a[9] = l, a[10] = d) : d = a[10], d;
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/components/alert/alert.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,KAAK,CAAC,EACrB,SAAkB,EAClB,EAA8B,EAC9B,EAAW,EACX,CAAU,EACV,QAAQ,EACR,KAAK,EACL,OAAO,EACP,IAAa,EACb,iBAAiB,EACjB,IAAI,EAAE,UAAU,EAChB,GAAG,KAAK,EACR,EAAE,UAAU,+BAgEZ"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/components/alert/alert.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,KAAK,CAAC,EACrB,SAAkB,EAClB,EAAsB,EACtB,EAAW,EACX,CAAU,EACV,QAAQ,EACR,KAAK,EACL,OAAO,EACP,IAAa,EACb,iBAAiB,EACjB,IAAI,EAAE,UAAU,EAChB,GAAG,KAAK,EACR,EAAE,UAAU,+BAuDZ"}
@@ -1,11 +1,11 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { ThemeFontSizeVariable as t, ThemeFontVariable as n, ThemeIconSizeVariable as r, ThemeRadiusVariable as i, ThemeSpaceVariable as a } from "../../theme/theme-types.js";
2
+ import { ThemeFont as t, ThemeFontSize as n, ThemeIconSize as r, ThemeRadius as i, ThemeSpace as a } from "../../theme/theme-types.js";
3
3
  import { CloseIcon as o } from "../icon/icons/close-icon.js";
4
4
  import { Text as s } from "../text/text.js";
5
5
  import { alertIcons as c, getAlertBackgroundColor as l, getAlertTextColor as u } from "./helper.js";
6
6
  import "react";
7
- import { Alert as d, Flex as f, chakra as p } from "@chakra-ui/react";
8
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
7
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
+ import { Alert as p, Flex as m, chakra as h } from "@chakra-ui/react";
9
9
  //#region lib/components/alert/alert.tsx
10
10
  var g = e();
11
11
  function _(e) {
@@ -16,46 +16,46 @@ function _(e) {
16
16
  let F = P, I;
17
17
  _[14] === N ? I = _[15] : (I = l(N), _[14] = N, _[15] = I);
18
18
  let L = I, R = y ?? c[N], z;
19
- _[16] !== x || _[17] !== F || _[18] !== O ? (z = () => x ? /* @__PURE__ */ m(p.button, {
19
+ _[16] !== x || _[17] !== F || _[18] !== O ? (z = () => x ? /* @__PURE__ */ d(h.button, {
20
20
  type: "button",
21
21
  "aria-label": "Close",
22
22
  onClick: x,
23
23
  mt: O ? "4px" : 0,
24
24
  alignSelf: O ? "flex-start" : "center",
25
- children: /* @__PURE__ */ m(o, {
25
+ children: /* @__PURE__ */ d(o, {
26
26
  size: r.Medium,
27
27
  color: F
28
28
  })
29
29
  }) : null, _[16] = x, _[17] = F, _[18] = O, _[19] = z) : z = _[19];
30
30
  let B = z, V = b || (O ? "flex-start" : "center"), H = V === "flex-start" ? "4px" : 0, U;
31
- _[20] !== R || _[21] !== V || _[22] !== H || _[23] !== F ? (U = /* @__PURE__ */ m(R, {
31
+ _[20] !== R || _[21] !== V || _[22] !== H || _[23] !== F ? (U = /* @__PURE__ */ d(R, {
32
32
  color: F,
33
33
  size: r.Small,
34
34
  mt: H,
35
35
  alignSelf: V
36
36
  }), _[20] = R, _[21] = V, _[22] = H, _[23] = F, _[24] = U) : U = _[24];
37
37
  let W;
38
- _[25] === O ? W = _[26] : (W = O && /* @__PURE__ */ m(s, {
39
- fontFamily: n.SubHeader,
40
- fontSize: t.Large,
38
+ _[25] === O ? W = _[26] : (W = O && /* @__PURE__ */ d(s, {
39
+ fontFamily: t.SubHeader,
40
+ fontSize: n.Large,
41
41
  fontWeight: "medium",
42
42
  children: O
43
43
  }), _[25] = O, _[26] = W);
44
44
  let G;
45
- _[27] !== v || _[28] !== W ? (G = /* @__PURE__ */ h(f, {
45
+ _[27] !== v || _[28] !== W ? (G = /* @__PURE__ */ f(m, {
46
46
  direction: "column",
47
47
  alignContent: "flex-start",
48
48
  children: [W, v]
49
49
  }), _[27] = v, _[28] = W, _[29] = G) : G = _[29];
50
50
  let K;
51
- _[30] !== G || _[31] !== U ? (K = /* @__PURE__ */ h(f, {
51
+ _[30] !== G || _[31] !== U ? (K = /* @__PURE__ */ f(m, {
52
52
  gap: "10px",
53
53
  children: [U, G]
54
54
  }), _[30] = G, _[31] = U, _[32] = K) : K = _[32];
55
55
  let q;
56
56
  _[33] === B ? q = _[34] : (q = B(), _[33] = B, _[34] = q);
57
57
  let J;
58
- _[35] !== K || _[36] !== q ? (J = /* @__PURE__ */ h(f, {
58
+ _[35] !== K || _[36] !== q ? (J = /* @__PURE__ */ f(m, {
59
59
  align: "center",
60
60
  w: "100%",
61
61
  justify: "space-between",
@@ -63,7 +63,7 @@ function _(e) {
63
63
  children: [K, q]
64
64
  }), _[35] = K, _[36] = q, _[37] = J) : J = _[37];
65
65
  let Y;
66
- return _[38] !== L || _[39] !== k || _[40] !== S || _[41] !== A || _[42] !== j || _[43] !== J || _[44] !== F || _[45] !== M ? (Y = /* @__PURE__ */ m(d.Root, {
66
+ return _[38] !== L || _[39] !== k || _[40] !== S || _[41] !== A || _[42] !== j || _[43] !== J || _[44] !== F || _[45] !== M ? (Y = /* @__PURE__ */ d(p.Root, {
67
67
  bgColor: L,
68
68
  px: A,
69
69
  py: j,
@@ -72,7 +72,7 @@ function _(e) {
72
72
  display: "flex",
73
73
  alignItems: "center",
74
74
  minHeight: k,
75
- fontFamily: n.Body,
75
+ fontFamily: t.Body,
76
76
  color: F,
77
77
  ...S,
78
78
  children: J
@@ -1,7 +1,7 @@
1
1
  import { CasperIconComponent } from '../icon/index.js';
2
- import { ThemeColorVariable } from '../../theme/index.js';
2
+ import { ThemeColor } from '../../theme/index.js';
3
3
  import { AlertType } from './types.js';
4
- export declare const getAlertTextColor: (type: AlertType) => ThemeColorVariable;
5
- export declare const getAlertBackgroundColor: (type: AlertType) => ThemeColorVariable;
4
+ export declare const getAlertTextColor: (type: AlertType) => ThemeColor;
5
+ export declare const getAlertBackgroundColor: (type: AlertType) => ThemeColor;
6
6
  export declare const alertIcons: Record<AlertType, CasperIconComponent>;
7
7
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../lib/components/alert/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,mBAAmB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS,KAAG,kBAcnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,SAAS,KAAG,kBAczD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,mBAAmB,CAM7D,CAAC"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../lib/components/alert/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,mBAAmB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS,KAAG,UAcnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,SAAS,KAAG,UAczD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,mBAAmB,CAM7D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ThemeColorVariable as e } from "../../theme/theme-types.js";
1
+ import { ThemeColor as e } from "../../theme/theme-types.js";
2
2
  import { CircleInfoIcon as t } from "../icon/icons/circle-info-icon.js";
3
3
  import { CircleSuccessIcon as n } from "../icon/icons/circle-success-icon.js";
4
4
  import { HexagonErrorIcon as r } from "../icon/icons/hexagon-error-icon.js";
@@ -1,20 +1,20 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { ThemeSpaceVariable as t } from "../../theme/theme-types.js";
2
+ import { ThemeSpace as t } from "../../theme/theme-types.js";
3
3
  import { IconSizeConstants as n, checkChildRendersToString as r } from "./helper.js";
4
4
  import { Children as i } from "react";
5
- import { Badge as a, Box as o } from "@chakra-ui/react";
6
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import { Badge as s, Box as c } from "@chakra-ui/react";
7
7
  //#region lib/components/badge/badge.tsx
8
8
  var l = e();
9
9
  function u(e) {
10
10
  let u = (0, l.c)(13), d, f, p;
11
11
  if (u[0] !== e) {
12
- let { icon: t, ...a } = e;
13
- p = a;
14
- let { size: o, children: c } = p;
12
+ let { icon: t, ...o } = e;
13
+ p = o;
14
+ let { size: s, children: c } = p;
15
15
  d = c;
16
- let l = n[o ?? "md"], m = t, h;
17
- u[4] !== m || u[5] !== l ? (h = m ? /* @__PURE__ */ s(m, { size: l }) : null, u[4] = m, u[5] = l, u[6] = h) : h = u[6], f = h;
16
+ let l = n[s ?? "md"], m = t, h;
17
+ u[4] !== m || u[5] !== l ? (h = m ? /* @__PURE__ */ a(m, { size: l }) : null, u[4] = m, u[5] = l, u[6] = h) : h = u[6], f = h;
18
18
  let g = [];
19
19
  i.forEach(d, (e) => {
20
20
  if (r(e)) g.push(e);
@@ -22,7 +22,7 @@ function u(e) {
22
22
  }), u[0] = e, u[1] = d, u[2] = f, u[3] = p;
23
23
  } else d = u[1], f = u[2], p = u[3];
24
24
  let m;
25
- u[7] !== d || u[8] !== f ? (m = /* @__PURE__ */ c(o, {
25
+ u[7] !== d || u[8] !== f ? (m = /* @__PURE__ */ o(c, {
26
26
  display: "flex",
27
27
  flexDirection: "row",
28
28
  gap: t.XSmall,
@@ -31,7 +31,7 @@ function u(e) {
31
31
  children: [f, d]
32
32
  }), u[7] = d, u[8] = f, u[9] = m) : m = u[9];
33
33
  let h;
34
- return u[10] !== p || u[11] !== m ? (h = /* @__PURE__ */ s(a, {
34
+ return u[10] !== p || u[11] !== m ? (h = /* @__PURE__ */ a(s, {
35
35
  ...p,
36
36
  children: m
37
37
  }), u[10] = p, u[11] = m, u[12] = h) : h = u[12], h;
@@ -39,28 +39,28 @@ function u(e) {
39
39
  var d = (e) => {
40
40
  let t = (0, l.c)(6), n, r;
41
41
  t[0] === e ? (n = t[1], r = t[2]) : ({solid: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r);
42
- let i = r ? "neutralSolid" : "neutral", a;
43
- return t[3] !== n || t[4] !== i ? (a = /* @__PURE__ */ s(u, {
42
+ let i = r ? "neutralSolid" : "neutral", o;
43
+ return t[3] !== n || t[4] !== i ? (o = /* @__PURE__ */ a(u, {
44
44
  variant: i,
45
45
  ...n
46
- }), t[3] = n, t[4] = i, t[5] = a) : a = t[5], a;
46
+ }), t[3] = n, t[4] = i, t[5] = o) : o = t[5], o;
47
47
  };
48
- d.Primary = ({ solid: e, ...t }) => /* @__PURE__ */ s(u, {
48
+ d.Primary = ({ solid: e, ...t }) => /* @__PURE__ */ a(u, {
49
49
  variant: e ? "primarySolid" : "primary",
50
50
  ...t
51
- }), d.Secondary = ({ solid: e, ...t }) => /* @__PURE__ */ s(u, {
51
+ }), d.Secondary = ({ solid: e, ...t }) => /* @__PURE__ */ a(u, {
52
52
  variant: e ? "secondarySolid" : "secondary",
53
53
  ...t
54
- }), d.Success = ({ solid: e, ...t }) => /* @__PURE__ */ s(u, {
54
+ }), d.Success = ({ solid: e, ...t }) => /* @__PURE__ */ a(u, {
55
55
  variant: e ? "successSolid" : "success",
56
56
  ...t
57
- }), d.Error = ({ solid: e, ...t }) => /* @__PURE__ */ s(u, {
57
+ }), d.Error = ({ solid: e, ...t }) => /* @__PURE__ */ a(u, {
58
58
  variant: e ? "errorSolid" : "error",
59
59
  ...t
60
- }), d.Warning = ({ solid: e, ...t }) => /* @__PURE__ */ s(u, {
60
+ }), d.Warning = ({ solid: e, ...t }) => /* @__PURE__ */ a(u, {
61
61
  variant: e ? "warningSolid" : "warning",
62
62
  ...t
63
- }), d.Info = ({ solid: e, ...t }) => /* @__PURE__ */ s(u, {
63
+ }), d.Info = ({ solid: e, ...t }) => /* @__PURE__ */ a(u, {
64
64
  variant: e ? "infoSolid" : "info",
65
65
  ...t
66
66
  });
@@ -1,8 +1,8 @@
1
- import { ThemeIconSizeVariable } from '../../theme/index.js';
1
+ import { ThemeIconSize } from '../../theme/index.js';
2
2
  import { ReactNode } from 'react';
3
3
  export declare const IconSizeConstants: {
4
- readonly md: ThemeIconSizeVariable.Small;
5
- readonly sm: ThemeIconSizeVariable.XSmall;
4
+ readonly md: ThemeIconSize.Small;
5
+ readonly sm: ThemeIconSize.XSmall;
6
6
  };
7
7
  export declare const checkChildRendersToString: (child: ReactNode) => boolean;
8
8
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../lib/components/badge/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,yBAAyB,GAAI,OAAO,SAAS,KAAG,OAW5D,CAAC"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../lib/components/badge/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,yBAAyB,GAAI,OAAO,SAAS,KAAG,OAW5D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ThemeIconSizeVariable as e } from "../../theme/theme-types.js";
1
+ import { ThemeIconSize as e } from "../../theme/theme-types.js";
2
2
  import { isValidElement as t } from "react";
3
3
  //#region lib/components/badge/helper.ts
4
4
  var n = {
@@ -1 +1 @@
1
- {"version":3,"file":"box.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/box/box.composition.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,mCAA+B,CAAC;AAEpD,eAAO,MAAM,MAAM,mCAIlB,CAAC;AAEF,eAAO,MAAM,OAAO,mCASnB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAYlB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAQxB,CAAC;AAEF,eAAO,MAAM,MAAM,mCA2BlB,CAAC"}
1
+ {"version":3,"file":"box.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/box/box.composition.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,mCAA+B,CAAC;AAEpD,eAAO,MAAM,MAAM,mCAIlB,CAAC;AAEF,eAAO,MAAM,OAAO,mCAInB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAYlB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAIxB,CAAC;AAEF,eAAO,MAAM,MAAM,mCAmBlB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
2
  import { forwardRef as t } from "react";
3
- import { Box as n } from "@chakra-ui/react";
4
- import { jsx as r } from "react/jsx-runtime";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { Box as r } from "@chakra-ui/react";
5
5
  //#region lib/components/box/box.tsx
6
6
  var i = e(), a = t((e, t) => {
7
7
  let a = (0, i.c)(3), o;
8
- return a[0] !== e || a[1] !== t ? (o = /* @__PURE__ */ r(n, {
8
+ return a[0] !== e || a[1] !== t ? (o = /* @__PURE__ */ n(r, {
9
9
  ...e,
10
10
  ref: t,
11
11
  children: e.children
@@ -1,19 +1,19 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { Breadcrumb as t } from "@chakra-ui/react";
3
- import { jsx as n } from "react/jsx-runtime";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { Breadcrumb as n } from "@chakra-ui/react";
4
4
  //#region lib/components/breadcrumbs/breadcrumb-item.tsx
5
5
  var r = e();
6
6
  function i(e) {
7
7
  let i = (0, r.c)(10), a, o, s;
8
8
  i[0] === e ? (a = i[1], o = i[2], s = i[3]) : ({children: a, isCurrentPage: o, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s);
9
9
  let c;
10
- i[4] !== a || i[5] !== o ? (c = o ? /* @__PURE__ */ n(t.CurrentLink, {
10
+ i[4] !== a || i[5] !== o ? (c = o ? /* @__PURE__ */ t(n.CurrentLink, {
11
11
  asChild: !0,
12
12
  cursor: "default",
13
13
  children: a
14
14
  }) : a, i[4] = a, i[5] = o, i[6] = c) : c = i[6];
15
15
  let l;
16
- return i[7] !== s || i[8] !== c ? (l = /* @__PURE__ */ n(t.Item, {
16
+ return i[7] !== s || i[8] !== c ? (l = /* @__PURE__ */ t(n.Item, {
17
17
  whiteSpace: "nowrap",
18
18
  overflow: "hidden",
19
19
  ...s,
@@ -1,7 +1,7 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
2
  import { forwardRef as t } from "react";
3
- import { BreadcrumbLink as n } from "@chakra-ui/react";
4
- import { jsx as r } from "react/jsx-runtime";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { BreadcrumbLink as r } from "@chakra-ui/react";
5
5
  //#region lib/components/breadcrumbs/breadcrumb-link.tsx
6
6
  var i = e(), a = t((e, t) => {
7
7
  let a = (0, i.c)(8), o, s;
@@ -9,7 +9,7 @@ var i = e(), a = t((e, t) => {
9
9
  let c;
10
10
  a[3] === Symbol.for("react.memo_cache_sentinel") ? (c = { textDecoration: "underline" }, a[3] = c) : c = a[3];
11
11
  let l;
12
- return a[4] !== o || a[5] !== s || a[6] !== t ? (l = /* @__PURE__ */ r(n, {
12
+ return a[4] !== o || a[5] !== s || a[6] !== t ? (l = /* @__PURE__ */ n(r, {
13
13
  ref: t,
14
14
  overflow: "hidden",
15
15
  textOverflow: "ellipsis",
@@ -1,5 +1,5 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { ThemeColorVariable as t, ThemeFontSizeVariable as n, ThemeFontVariable as r, ThemeSpaceVariable as i } from "../../theme/theme-types.js";
2
+ import { ThemeColor as t, ThemeFont as n, ThemeFontSize as r, ThemeSpace as i } from "../../theme/theme-types.js";
3
3
  import { Menu as a } from "../menu/menu.js";
4
4
  import { MenuButton as o } from "../menu/menu-button.js";
5
5
  import { MenuItem as s } from "../menu/menu-item.js";
@@ -7,13 +7,13 @@ import { MenuList as c } from "../menu/menu-list.js";
7
7
  import { BreadcrumbItem as l } from "./breadcrumb-item.js";
8
8
  import { BreadcrumbLink as u } from "./breadcrumb-link.js";
9
9
  import { Fragment as d } from "react";
10
- import { Breadcrumb as f } from "@chakra-ui/react";
11
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
11
+ import { Breadcrumb as m } from "@chakra-ui/react";
12
12
  //#region lib/components/breadcrumbs/breadcrumbs.tsx
13
13
  var h = e();
14
14
  function g() {
15
15
  let e = (0, h.c)(1), n;
16
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ p(f.Separator, {
16
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(m.Separator, {
17
17
  color: t.OnBackgroundSubdued,
18
18
  opacity: "1",
19
19
  children: "/"
@@ -21,44 +21,44 @@ function g() {
21
21
  }
22
22
  function _({ key: e, isCurrentPage: n, showSeparator: r, breadCrumb: i }) {
23
23
  let a = n ? t.OnBackground : t.OnBackgroundSubdued;
24
- return /* @__PURE__ */ m(d, { children: [/* @__PURE__ */ p(l, {
24
+ return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(l, {
25
25
  isCurrentPage: n,
26
26
  color: a,
27
- children: n ? /* @__PURE__ */ p("span", { children: i.title }) : i.as && i.to && !i.href ? /* @__PURE__ */ p(u, {
27
+ children: n ? /* @__PURE__ */ f("span", { children: i.title }) : i.as && i.to && !i.href ? /* @__PURE__ */ f(u, {
28
28
  as: i.as,
29
29
  to: i.to,
30
30
  children: i.title
31
- }) : i.href && !i.as && !i.to ? /* @__PURE__ */ p(u, {
31
+ }) : i.href && !i.as && !i.to ? /* @__PURE__ */ f(u, {
32
32
  href: i.href,
33
33
  children: i.title
34
34
  }) : null
35
- }), r && /* @__PURE__ */ p(g, {})] }, e);
35
+ }), r && /* @__PURE__ */ f(g, {})] }, e);
36
36
  }
37
37
  function v({ key: e, breadCrumbs: n, showSeparator: r }) {
38
- return /* @__PURE__ */ m(d, { children: [/* @__PURE__ */ p(l, {
38
+ return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(l, {
39
39
  overflow: "unset",
40
40
  color: t.OnBackgroundSubdued,
41
- children: /* @__PURE__ */ m(a, { children: [/* @__PURE__ */ p(o, {
41
+ children: /* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(o, {
42
42
  variant: "ghost",
43
43
  size: "sm",
44
44
  "aria-label": "Show collapsed items",
45
45
  children: "..."
46
- }), /* @__PURE__ */ p(c, { children: n.map((e, t) => e.as && e.to ? /* @__PURE__ */ p(s, {
46
+ }), /* @__PURE__ */ f(c, { children: n.map((e, t) => e.as && e.to ? /* @__PURE__ */ f(s, {
47
47
  as: e.as,
48
48
  to: e.to,
49
49
  value: e.to,
50
50
  children: e.title
51
- }, t) : e.href ? /* @__PURE__ */ p(s, {
51
+ }, t) : e.href ? /* @__PURE__ */ f(s, {
52
52
  itemType: "link",
53
53
  href: e.href,
54
54
  value: e.href,
55
55
  children: e.title
56
- }, t) : /* @__PURE__ */ p(s, {
56
+ }, t) : /* @__PURE__ */ f(s, {
57
57
  isDisabled: !0,
58
58
  value: e.title,
59
59
  children: e.title
60
60
  }, t)) })] })
61
- }), r && /* @__PURE__ */ p(g, {})] }, e);
61
+ }), r && /* @__PURE__ */ f(g, {})] }, e);
62
62
  }
63
63
  function y(e) {
64
64
  let a = (0, h.c)(26), { breadCrumbs: o, itemsBeforeCollapse: s, itemsAfterCollapse: c } = e, l = s === void 0 ? 1 : s, u = c === void 0 ? 2 : c, d = l + u;
@@ -66,18 +66,18 @@ function y(e) {
66
66
  let e = o, s;
67
67
  a[0] === e ? s = a[1] : (s = e.map(b), a[0] = e, a[1] = s);
68
68
  let c;
69
- return a[2] === s ? c = a[3] : (c = /* @__PURE__ */ p(f.Root, {
69
+ return a[2] === s ? c = a[3] : (c = /* @__PURE__ */ f(m.Root, {
70
70
  color: t.OnBackground,
71
- fontSize: n.Medium,
72
- fontFamily: r.Body,
71
+ fontSize: r.Medium,
72
+ fontFamily: n.Body,
73
73
  width: "100%",
74
- children: /* @__PURE__ */ p(f.List, {
74
+ children: /* @__PURE__ */ f(m.List, {
75
75
  gap: i.Small,
76
76
  children: s
77
77
  })
78
78
  }), a[2] = s, a[3] = c), c;
79
79
  }
80
- let m, g, y, x, S, C, w, T;
80
+ let p, g, y, x, S, C, w, T;
81
81
  if (a[4] !== o || a[5] !== u || a[6] !== l) {
82
82
  let e = o.slice(0, l), s = u > 0 ? o.slice(-u) : [], c = o.slice(l, o.length - u), d = [
83
83
  ...e,
@@ -87,7 +87,7 @@ function y(e) {
87
87
  },
88
88
  ...s
89
89
  ];
90
- g = f.Root, S = t.OnBackground, C = n.Medium, w = r.Body, T = "100%", m = f.List, y = i.Small, x = d.map((e, t, n) => {
90
+ g = m.Root, S = t.OnBackground, C = r.Medium, w = n.Body, T = "100%", p = m.List, y = i.Small, x = d.map((e, t, n) => {
91
91
  let r = t + 1 === n.length;
92
92
  return e.isMenuButton ? v({
93
93
  key: t.toString(),
@@ -99,15 +99,15 @@ function y(e) {
99
99
  showSeparator: !r,
100
100
  breadCrumb: e
101
101
  });
102
- }), a[4] = o, a[5] = u, a[6] = l, a[7] = m, a[8] = g, a[9] = y, a[10] = x, a[11] = S, a[12] = C, a[13] = w, a[14] = T;
103
- } else m = a[7], g = a[8], y = a[9], x = a[10], S = a[11], C = a[12], w = a[13], T = a[14];
102
+ }), a[4] = o, a[5] = u, a[6] = l, a[7] = p, a[8] = g, a[9] = y, a[10] = x, a[11] = S, a[12] = C, a[13] = w, a[14] = T;
103
+ } else p = a[7], g = a[8], y = a[9], x = a[10], S = a[11], C = a[12], w = a[13], T = a[14];
104
104
  let E;
105
- a[15] !== m || a[16] !== y || a[17] !== x ? (E = /* @__PURE__ */ p(m, {
105
+ a[15] !== p || a[16] !== y || a[17] !== x ? (E = /* @__PURE__ */ f(p, {
106
106
  gap: y,
107
107
  children: x
108
- }), a[15] = m, a[16] = y, a[17] = x, a[18] = E) : E = a[18];
108
+ }), a[15] = p, a[16] = y, a[17] = x, a[18] = E) : E = a[18];
109
109
  let D;
110
- return a[19] !== g || a[20] !== S || a[21] !== C || a[22] !== w || a[23] !== T || a[24] !== E ? (D = /* @__PURE__ */ p(g, {
110
+ return a[19] !== g || a[20] !== S || a[21] !== C || a[22] !== w || a[23] !== T || a[24] !== E ? (D = /* @__PURE__ */ f(g, {
111
111
  color: S,
112
112
  fontSize: C,
113
113
  fontFamily: w,
@@ -7,7 +7,7 @@ import { ButtonSize } from './types.js';
7
7
  * @see Docs https://caspeco.github.io/casper-ui-library/components/button
8
8
  * @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/button
9
9
  */
10
- export declare const Button: import('react').ForwardRefExoticComponent<import('../../theme/index.js').CustomChakraBoxProps & import('../../theme/index.js').LayoutProps & import('../../theme/index.js').MarginProps & import('../../theme/index.js').PaddingProps & Pick<import('@chakra-ui/react').LinkProps, "target" | "href" | "rel"> & Pick<import('@chakra-ui/react').ButtonProps, "form" | "type" | "children" | "onClick" | "loadingText"> & {
10
+ export declare const Button: import('react').ForwardRefExoticComponent<import('../../theme/index.js').CustomChakraBoxProps & import('../../theme/index.js').LayoutProps & import('../../theme/index.js').MarginProps & import('../../theme/index.js').PaddingProps & Pick<import('@chakra-ui/react').LinkProps, "target" | "href" | "rel"> & Pick<import('@chakra-ui/react').ButtonProps, "children" | "form" | "type" | "onClick" | "loadingText"> & {
11
11
  variant?: "primary" | "secondary" | "link" | "ghost" | "tertiary" | "segmentedControl" | "alert";
12
12
  size?: ConditionalValue<ButtonSize>;
13
13
  leftIcon?: import('../icon/index.js').CasperIconComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../lib/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,kBAAkB,CAAC;AAEjF,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,SAAS,CAAC;AAwBvD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;;;;;;;qDAiCjB,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../lib/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,kBAAkB,CAAC;AAEjF,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,SAAS,CAAC;AAsBvD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;;;;;;;qDAiCjB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
2
- import { ThemeIconSizeVariable as t } from "../../theme/theme-types.js";
2
+ import { ThemeIconSize as t } from "../../theme/theme-types.js";
3
3
  import { forwardRef as n } from "react";
4
- import { Button as r } from "@chakra-ui/react";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { Button as a } from "@chakra-ui/react";
6
6
  //#region lib/components/button/button.tsx
7
7
  var o = e(), s = {
8
8
  xl: t.Medium,
@@ -18,11 +18,11 @@ var l = n((e, t) => {
18
18
  let n = (0, o.c)(20), { children: s, variant: l, size: u, href: d, isLoading: f, isDisabled: p, leftIcon: m, rightIcon: h } = e, g = l === void 0 ? "secondary" : l, _ = u === void 0 ? "md" : u, v;
19
19
  n[0] === _ ? v = n[1] : (v = c(_), n[0] = _, n[1] = v);
20
20
  let y = v, b = m, x = h, S = d ? "a" : void 0, C = d || void 0, w;
21
- n[2] !== b || n[3] !== y ? (w = b && /* @__PURE__ */ i(b, { size: y }), n[2] = b, n[3] = y, n[4] = w) : w = n[4];
21
+ n[2] !== b || n[3] !== y ? (w = b && /* @__PURE__ */ r(b, { size: y }), n[2] = b, n[3] = y, n[4] = w) : w = n[4];
22
22
  let T;
23
- n[5] !== x || n[6] !== y ? (T = x && /* @__PURE__ */ i(x, { size: y }), n[5] = x, n[6] = y, n[7] = T) : T = n[7];
23
+ n[5] !== x || n[6] !== y ? (T = x && /* @__PURE__ */ r(x, { size: y }), n[5] = x, n[6] = y, n[7] = T) : T = n[7];
24
24
  let E;
25
- return n[8] !== s || n[9] !== p || n[10] !== f || n[11] !== e || n[12] !== t || n[13] !== _ || n[14] !== S || n[15] !== C || n[16] !== w || n[17] !== T || n[18] !== g ? (E = /* @__PURE__ */ a(r, {
25
+ return n[8] !== s || n[9] !== p || n[10] !== f || n[11] !== e || n[12] !== t || n[13] !== _ || n[14] !== S || n[15] !== C || n[16] !== w || n[17] !== T || n[18] !== g ? (E = /* @__PURE__ */ i(a, {
26
26
  as: S,
27
27
  href: C,
28
28
  size: _,
@@ -1,8 +1,8 @@
1
1
  import { Check as e } from "./icons/check.js";
2
2
  import { Minus as t } from "./icons/minus.js";
3
3
  import { Plus as n } from "./icons/plus.js";
4
- import { Icon as r } from "@chakra-ui/react";
5
- import { jsx as i } from "react/jsx-runtime";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { Icon as i } from "@chakra-ui/react";
6
6
  //#region lib/components/checkbox/checkbox-icon.tsx
7
7
  function a(e, t, n) {
8
8
  if (t && !n) switch (e) {
@@ -31,7 +31,7 @@ function o({ variant: o, size: s, isChecked: c, isIndeterminate: l }) {
31
31
  break;
32
32
  default: u = e;
33
33
  }
34
- return /* @__PURE__ */ i(r, {
34
+ return /* @__PURE__ */ r(i, {
35
35
  as: u,
36
36
  boxSize: d
37
37
  });