@caspeco/casper-ui-library 9.13.0 → 10.0.1

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 (776) hide show
  1. package/dist/_virtual/compiler-runtime.js +5 -0
  2. package/dist/_virtual/compiler-runtime2.js +4 -0
  3. package/dist/_virtual/react-compiler-runtime.development.js +4 -0
  4. package/dist/_virtual/react-compiler-runtime.production.js +4 -0
  5. package/dist/components/accordion/accordion-item.d.ts +3 -2
  6. package/dist/components/accordion/accordion-item.d.ts.map +1 -1
  7. package/dist/components/accordion/accordion-item.js +36 -19
  8. package/dist/components/accordion/accordion-panel.d.ts +1 -1
  9. package/dist/components/accordion/accordion-panel.d.ts.map +1 -1
  10. package/dist/components/accordion/accordion-panel.js +13 -5
  11. package/dist/components/accordion/accordion.composition.d.ts +3 -3
  12. package/dist/components/accordion/accordion.composition.d.ts.map +1 -1
  13. package/dist/components/accordion/accordion.d.ts +1 -1
  14. package/dist/components/accordion/accordion.d.ts.map +1 -1
  15. package/dist/components/accordion/accordion.js +18 -6
  16. package/dist/components/alert/alert.composition.d.ts +5 -5
  17. package/dist/components/alert/alert.composition.d.ts.map +1 -1
  18. package/dist/components/alert/alert.d.ts +1 -1
  19. package/dist/components/alert/alert.d.ts.map +1 -1
  20. package/dist/components/alert/alert.js +58 -74
  21. package/dist/components/alert/helper.d.ts +1 -1
  22. package/dist/components/alert/helper.d.ts.map +1 -1
  23. package/dist/components/alert/helper.js +10 -15
  24. package/dist/components/badge/badge-recipe.js +13 -19
  25. package/dist/components/badge/badge.composition.d.ts +3 -3
  26. package/dist/components/badge/badge.composition.d.ts.map +1 -1
  27. package/dist/components/badge/badge.js +70 -31
  28. package/dist/components/box/box.composition.d.ts +6 -6
  29. package/dist/components/box/box.composition.d.ts.map +1 -1
  30. package/dist/components/box/box.js +10 -5
  31. package/dist/components/breadcrumbs/breadcrumb-item.d.ts +1 -1
  32. package/dist/components/breadcrumbs/breadcrumb-item.d.ts.map +1 -1
  33. package/dist/components/breadcrumbs/breadcrumb-item.js +16 -5
  34. package/dist/components/breadcrumbs/breadcrumb-link.js +19 -17
  35. package/dist/components/breadcrumbs/breadcrumbs.composition.d.ts +2 -2
  36. package/dist/components/breadcrumbs/breadcrumbs.composition.d.ts.map +1 -1
  37. package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
  38. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  39. package/dist/components/breadcrumbs/breadcrumbs.js +82 -80
  40. package/dist/components/button/button-recipe.js +6 -2
  41. package/dist/components/button/button.composition.d.ts +5 -5
  42. package/dist/components/button/button.composition.d.ts.map +1 -1
  43. package/dist/components/button/button.js +38 -42
  44. package/dist/components/checkbox/checkbox-icon.d.ts +2 -1
  45. package/dist/components/checkbox/checkbox-icon.d.ts.map +1 -1
  46. package/dist/components/checkbox/checkbox.composition.d.ts +3 -3
  47. package/dist/components/checkbox/checkbox.composition.d.ts.map +1 -1
  48. package/dist/components/checkbox/checkbox.js +34 -53
  49. package/dist/components/checkbox/icons/check.js +1 -6
  50. package/dist/components/checkbox/icons/minus.js +1 -6
  51. package/dist/components/checkbox/icons/plus.js +1 -6
  52. package/dist/components/checkbox-group/checkbox-group.composition.d.ts +2 -2
  53. package/dist/components/checkbox-group/checkbox-group.composition.d.ts.map +1 -1
  54. package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
  55. package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -1
  56. package/dist/components/checkbox-group/checkbox-group.js +13 -4
  57. package/dist/components/collapsible/collapsible.composition.d.ts +3 -3
  58. package/dist/components/collapsible/collapsible.composition.d.ts.map +1 -1
  59. package/dist/components/collapsible/collapsible.d.ts +1 -1
  60. package/dist/components/collapsible/collapsible.d.ts.map +1 -1
  61. package/dist/components/collapsible/collapsible.js +93 -108
  62. package/dist/components/combobox/combobox-button.d.ts +1 -1
  63. package/dist/components/combobox/combobox-button.d.ts.map +1 -1
  64. package/dist/components/combobox/combobox-button.js +131 -174
  65. package/dist/components/combobox/combobox-item.d.ts +1 -1
  66. package/dist/components/combobox/combobox-item.d.ts.map +1 -1
  67. package/dist/components/combobox/combobox-item.js +18 -11
  68. package/dist/components/combobox/combobox-menu.d.ts +2 -2
  69. package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
  70. package/dist/components/combobox/combobox-menu.js +171 -270
  71. package/dist/components/combobox/combobox.composition.d.ts +9 -9
  72. package/dist/components/combobox/combobox.composition.d.ts.map +1 -1
  73. package/dist/components/combobox/combobox.d.ts +1 -1
  74. package/dist/components/combobox/combobox.d.ts.map +1 -1
  75. package/dist/components/combobox/combobox.js +286 -209
  76. package/dist/components/combobox/types.d.ts +7 -7
  77. package/dist/components/combobox/types.d.ts.map +1 -1
  78. package/dist/components/date-picker/base-date-picker.d.ts +2 -1
  79. package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
  80. package/dist/components/date-picker/base-date-picker.js +244 -262
  81. package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
  82. package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
  83. package/dist/components/date-picker/date-multi-picker.js +25 -49
  84. package/dist/components/date-picker/date-picker-date-cell.d.ts +1 -1
  85. package/dist/components/date-picker/date-picker-date-cell.d.ts.map +1 -1
  86. package/dist/components/date-picker/date-picker-date-cell.js +111 -117
  87. package/dist/components/date-picker/date-picker-header.d.ts +1 -1
  88. package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
  89. package/dist/components/date-picker/date-picker-header.js +153 -120
  90. package/dist/components/date-picker/date-picker-week-cell.d.ts +1 -1
  91. package/dist/components/date-picker/date-picker-week-cell.d.ts.map +1 -1
  92. package/dist/components/date-picker/date-picker-week-cell.js +41 -36
  93. package/dist/components/date-picker/date-picker.composition.d.ts +5 -5
  94. package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
  95. package/dist/components/date-picker/date-picker.d.ts +1 -1
  96. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  97. package/dist/components/date-picker/date-picker.js +24 -45
  98. package/dist/components/date-picker/date-range-picker.d.ts +1 -1
  99. package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
  100. package/dist/components/date-picker/date-range-picker.js +23 -41
  101. package/dist/components/date-picker/date-week-picker.d.ts +1 -1
  102. package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
  103. package/dist/components/date-picker/date-week-picker.js +18 -36
  104. package/dist/components/date-picker/helper.js +1 -1
  105. package/dist/components/divider/divider.composition.d.ts +2 -2
  106. package/dist/components/divider/divider.composition.d.ts.map +1 -1
  107. package/dist/components/divider/divider.d.ts +1 -1
  108. package/dist/components/divider/divider.d.ts.map +1 -1
  109. package/dist/components/divider/divider.js +16 -19
  110. package/dist/components/drawer/drawer-recipe.js +25 -5
  111. package/dist/components/drawer/drawer.composition.d.ts +5 -5
  112. package/dist/components/drawer/drawer.composition.d.ts.map +1 -1
  113. package/dist/components/drawer/drawer.d.ts +1 -1
  114. package/dist/components/drawer/drawer.d.ts.map +1 -1
  115. package/dist/components/drawer/drawer.js +38 -36
  116. package/dist/components/drawer/inline-drawer.d.ts +1 -1
  117. package/dist/components/drawer/inline-drawer.d.ts.map +1 -1
  118. package/dist/components/drawer/inline-drawer.js +62 -57
  119. package/dist/components/drawer/use-drawer-key-down.js +15 -8
  120. package/dist/components/fieldset/fieldset-error-text.d.ts +1 -1
  121. package/dist/components/fieldset/fieldset-error-text.d.ts.map +1 -1
  122. package/dist/components/fieldset/fieldset-error-text.js +13 -5
  123. package/dist/components/fieldset/fieldset-helper-text.d.ts +1 -1
  124. package/dist/components/fieldset/fieldset-helper-text.d.ts.map +1 -1
  125. package/dist/components/fieldset/fieldset-helper-text.js +13 -5
  126. package/dist/components/fieldset/fieldset-legend.d.ts +1 -1
  127. package/dist/components/fieldset/fieldset-legend.d.ts.map +1 -1
  128. package/dist/components/fieldset/fieldset-legend.js +13 -5
  129. package/dist/components/fieldset/fieldset.d.ts +1 -1
  130. package/dist/components/fieldset/fieldset.d.ts.map +1 -1
  131. package/dist/components/fieldset/fieldset.js +15 -5
  132. package/dist/components/flex/flex.composition.d.ts +2 -2
  133. package/dist/components/flex/flex.composition.d.ts.map +1 -1
  134. package/dist/components/flex/flex.d.ts +1 -1
  135. package/dist/components/flex/flex.d.ts.map +1 -1
  136. package/dist/components/flex/flex.js +13 -5
  137. package/dist/components/form-control/form-control.composition.d.ts +6 -6
  138. package/dist/components/form-control/form-control.composition.d.ts.map +1 -1
  139. package/dist/components/form-control/form-control.d.ts +1 -1
  140. package/dist/components/form-control/form-control.d.ts.map +1 -1
  141. package/dist/components/form-control/form-control.js +17 -22
  142. package/dist/components/form-control/form-error-message.d.ts +1 -1
  143. package/dist/components/form-control/form-error-message.d.ts.map +1 -1
  144. package/dist/components/form-control/form-error-message.js +13 -5
  145. package/dist/components/form-control/form-helper-text.d.ts +1 -1
  146. package/dist/components/form-control/form-helper-text.d.ts.map +1 -1
  147. package/dist/components/form-control/form-helper-text.js +13 -5
  148. package/dist/components/form-control/form-label.d.ts +1 -1
  149. package/dist/components/form-control/form-label.d.ts.map +1 -1
  150. package/dist/components/form-control/form-label.js +24 -11
  151. package/dist/components/grid/grid-item.d.ts +1 -1
  152. package/dist/components/grid/grid-item.d.ts.map +1 -1
  153. package/dist/components/grid/grid-item.js +12 -4
  154. package/dist/components/grid/grid.composition.d.ts +2 -2
  155. package/dist/components/grid/grid.composition.d.ts.map +1 -1
  156. package/dist/components/grid/grid.d.ts +1 -1
  157. package/dist/components/grid/grid.d.ts.map +1 -1
  158. package/dist/components/grid/grid.js +13 -5
  159. package/dist/components/heading/heading.composition.d.ts +3 -3
  160. package/dist/components/heading/heading.composition.d.ts.map +1 -1
  161. package/dist/components/heading/heading.d.ts +1 -1
  162. package/dist/components/heading/heading.d.ts.map +1 -1
  163. package/dist/components/heading/heading.js +21 -29
  164. package/dist/components/highlight/highlight.composition.d.ts +2 -2
  165. package/dist/components/highlight/highlight.composition.d.ts.map +1 -1
  166. package/dist/components/highlight/highlight.d.ts +1 -1
  167. package/dist/components/highlight/highlight.d.ts.map +1 -1
  168. package/dist/components/highlight/highlight.js +19 -15
  169. package/dist/components/icon/create-icon.js +24 -15
  170. package/dist/components/icon/icon.composition.d.ts +1 -1
  171. package/dist/components/icon/icon.composition.d.ts.map +1 -1
  172. package/dist/components/icon/icons/absence-icon.js +1 -4
  173. package/dist/components/icon/icons/accessibility-icon.js +1 -4
  174. package/dist/components/icon/icons/add-absence-icon.js +1 -4
  175. package/dist/components/icon/icons/add-emoji-icon.js +1 -4
  176. package/dist/components/icon/icons/add-icon.js +1 -4
  177. package/dist/components/icon/icons/apple-icon.js +1 -4
  178. package/dist/components/icon/icons/apps-icon.js +1 -4
  179. package/dist/components/icon/icons/archive-icon.js +4 -5
  180. package/dist/components/icon/icons/area-icon.js +1 -4
  181. package/dist/components/icon/icons/at-icon.js +1 -4
  182. package/dist/components/icon/icons/attachment-icon.js +1 -4
  183. package/dist/components/icon/icons/baby-icon.js +1 -4
  184. package/dist/components/icon/icons/back-icon.js +1 -4
  185. package/dist/components/icon/icons/backspace-icon.js +1 -4
  186. package/dist/components/icon/icons/bank-icon.js +1 -4
  187. package/dist/components/icon/icons/bank-id-icon.js +1 -4
  188. package/dist/components/icon/icons/barcode-icon.js +1 -4
  189. package/dist/components/icon/icons/bell-icon.js +1 -4
  190. package/dist/components/icon/icons/bolt-icon.js +4 -5
  191. package/dist/components/icon/icons/calendar-icon.js +1 -4
  192. package/dist/components/icon/icons/camera-icon.js +1 -4
  193. package/dist/components/icon/icons/cancel-icon.js +1 -4
  194. package/dist/components/icon/icons/card-icon.js +1 -4
  195. package/dist/components/icon/icons/cart-icon.js +1 -4
  196. package/dist/components/icon/icons/caspeco-icon.js +4 -5
  197. package/dist/components/icon/icons/channels-icon.js +1 -4
  198. package/dist/components/icon/icons/chart-icon.js +1 -4
  199. package/dist/components/icon/icons/chart-line-icon.js +1 -4
  200. package/dist/components/icon/icons/chart-mixed-icon.js +1 -4
  201. package/dist/components/icon/icons/chart-pie-icon.js +1 -4
  202. package/dist/components/icon/icons/chart-scatter-icon.js +1 -4
  203. package/dist/components/icon/icons/check-icon.js +1 -4
  204. package/dist/components/icon/icons/checkbox-icon.js +1 -4
  205. package/dist/components/icon/icons/chevron-left-icon.js +1 -4
  206. package/dist/components/icon/icons/chevron-right-icon.js +1 -4
  207. package/dist/components/icon/icons/child-icon.js +1 -4
  208. package/dist/components/icon/icons/circle-info-icon.js +1 -4
  209. package/dist/components/icon/icons/circle-parking-icon.js +1 -4
  210. package/dist/components/icon/icons/circle-question-icon.js +1 -4
  211. package/dist/components/icon/icons/circle-select-icon.js +1 -4
  212. package/dist/components/icon/icons/circle-success-icon.js +1 -4
  213. package/dist/components/icon/icons/circle-user-icon.js +1 -4
  214. package/dist/components/icon/icons/clear-icon.js +1 -4
  215. package/dist/components/icon/icons/close-icon.js +1 -4
  216. package/dist/components/icon/icons/closed-icon.js +1 -4
  217. package/dist/components/icon/icons/collapse-icon.js +1 -4
  218. package/dist/components/icon/icons/color-icon.js +1 -4
  219. package/dist/components/icon/icons/columns-icon.js +1 -4
  220. package/dist/components/icon/icons/comment-add-icon.js +1 -4
  221. package/dist/components/icon/icons/comment-icon.js +1 -4
  222. package/dist/components/icon/icons/cookies-icon.js +1 -4
  223. package/dist/components/icon/icons/copy-icon.js +1 -4
  224. package/dist/components/icon/icons/date-icon.js +1 -4
  225. package/dist/components/icon/icons/decrease-icon.js +1 -4
  226. package/dist/components/icon/icons/delete-icon.js +1 -4
  227. package/dist/components/icon/icons/deliverect-icon.js +1 -4
  228. package/dist/components/icon/icons/delivery-icon.js +1 -4
  229. package/dist/components/icon/icons/description-icon.js +1 -4
  230. package/dist/components/icon/icons/discount-icon.js +1 -4
  231. package/dist/components/icon/icons/distribute-evenly-icon.js +1 -4
  232. package/dist/components/icon/icons/door-closed-icon.js +1 -4
  233. package/dist/components/icon/icons/door-open-icon.js +1 -4
  234. package/dist/components/icon/icons/down-icon.js +1 -4
  235. package/dist/components/icon/icons/eat-in-icon.js +1 -4
  236. package/dist/components/icon/icons/edit-icon.js +1 -4
  237. package/dist/components/icon/icons/email-icon.js +1 -4
  238. package/dist/components/icon/icons/error-icon.js +1 -4
  239. package/dist/components/icon/icons/expand-icon.js +1 -4
  240. package/dist/components/icon/icons/export-icon.js +1 -4
  241. package/dist/components/icon/icons/extract-icon.js +1 -4
  242. package/dist/components/icon/icons/facebook-icon.js +1 -4
  243. package/dist/components/icon/icons/failed-print-icon.js +1 -4
  244. package/dist/components/icon/icons/file-icon.js +1 -4
  245. package/dist/components/icon/icons/filter-icon.js +1 -4
  246. package/dist/components/icon/icons/folder-icon.js +1 -4
  247. package/dist/components/icon/icons/foodora-icon.js +1 -4
  248. package/dist/components/icon/icons/forward-icon.js +1 -4
  249. package/dist/components/icon/icons/glovo-icon.js +4 -5
  250. package/dist/components/icon/icons/goal-icon.js +1 -4
  251. package/dist/components/icon/icons/google-icon.js +1 -4
  252. package/dist/components/icon/icons/grip-more-icon.js +1 -4
  253. package/dist/components/icon/icons/hash-icon.js +1 -4
  254. package/dist/components/icon/icons/hexagon-error-icon.js +1 -4
  255. package/dist/components/icon/icons/hide-icon.js +1 -4
  256. package/dist/components/icon/icons/history-icon.js +1 -4
  257. package/dist/components/icon/icons/icon-picker-anchor-icon.js +1 -4
  258. package/dist/components/icon/icons/icon-picker-asterisk-icon.js +1 -4
  259. package/dist/components/icon/icons/icon-picker-beer-icon.js +1 -4
  260. package/dist/components/icon/icons/icon-picker-bicycle-icon.js +1 -4
  261. package/dist/components/icon/icons/icon-picker-binoculars-icon.js +1 -4
  262. package/dist/components/icon/icons/icon-picker-bomb-icon.js +1 -4
  263. package/dist/components/icon/icons/icon-picker-car-icon.js +1 -4
  264. package/dist/components/icon/icons/icon-picker-cocktail-icon.js +1 -4
  265. package/dist/components/icon/icons/icon-picker-gem-icon.js +1 -4
  266. package/dist/components/icon/icons/icon-picker-heart-full-icon.js +1 -4
  267. package/dist/components/icon/icons/icon-picker-heart-icon.js +1 -4
  268. package/dist/components/icon/icons/icon-picker-magnet-icon.js +1 -4
  269. package/dist/components/icon/icons/icon-picker-money-icon.js +1 -4
  270. package/dist/components/icon/icons/icon-picker-moon-icon.js +1 -4
  271. package/dist/components/icon/icons/icon-picker-music-icon.js +1 -4
  272. package/dist/components/icon/icons/icon-picker-star-full-icon.js +1 -4
  273. package/dist/components/icon/icons/icon-picker-star-half-icon.js +1 -4
  274. package/dist/components/icon/icons/icon-picker-star-icon.js +1 -4
  275. package/dist/components/icon/icons/icon-picker-tint-icon.js +1 -4
  276. package/dist/components/icon/icons/icon-picker-tree-icon.js +1 -4
  277. package/dist/components/icon/icons/icon-picker-utensils-icon.js +1 -4
  278. package/dist/components/icon/icons/icon-picker-wheelchair-icon.js +1 -4
  279. package/dist/components/icon/icons/image-icon.js +1 -4
  280. package/dist/components/icon/icons/import-icon.js +1 -4
  281. package/dist/components/icon/icons/inbox-icon.js +1 -4
  282. package/dist/components/icon/icons/increase-icon.js +1 -4
  283. package/dist/components/icon/icons/indeterminate-icon.js +1 -4
  284. package/dist/components/icon/icons/info-icon.js +1 -4
  285. package/dist/components/icon/icons/inheritance-icon.js +1 -4
  286. package/dist/components/icon/icons/just-eat-icon.js +1 -4
  287. package/dist/components/icon/icons/karma-icon.js +1 -4
  288. package/dist/components/icon/icons/key-command-icon.js +1 -4
  289. package/dist/components/icon/icons/key-enter-icon.js +1 -4
  290. package/dist/components/icon/icons/key-icon.js +1 -4
  291. package/dist/components/icon/icons/key-option-icon.js +1 -4
  292. package/dist/components/icon/icons/language-icon.js +1 -4
  293. package/dist/components/icon/icons/link-broken-icon.js +1 -4
  294. package/dist/components/icon/icons/link-external-icon.js +1 -4
  295. package/dist/components/icon/icons/link-icon.js +1 -4
  296. package/dist/components/icon/icons/list-ol-icon.js +1 -4
  297. package/dist/components/icon/icons/list-ul-icon.js +1 -4
  298. package/dist/components/icon/icons/loading-icon.js +1 -4
  299. package/dist/components/icon/icons/location-icon.js +1 -4
  300. package/dist/components/icon/icons/lock-icon.js +1 -4
  301. package/dist/components/icon/icons/log-in-icon.js +1 -4
  302. package/dist/components/icon/icons/log-out-icon.js +1 -4
  303. package/dist/components/icon/icons/map-icon.js +1 -4
  304. package/dist/components/icon/icons/maximize-icon.js +1 -4
  305. package/dist/components/icon/icons/members-icon.js +1 -4
  306. package/dist/components/icon/icons/menu-hide-icon.js +1 -4
  307. package/dist/components/icon/icons/menu-icon.js +1 -4
  308. package/dist/components/icon/icons/menu-show-icon.js +1 -4
  309. package/dist/components/icon/icons/message-add-icon.js +1 -4
  310. package/dist/components/icon/icons/message-icon.js +1 -4
  311. package/dist/components/icon/icons/message-lines-icon.js +1 -4
  312. package/dist/components/icon/icons/minimize-icon.js +1 -4
  313. package/dist/components/icon/icons/minimize-window-icon.js +1 -4
  314. package/dist/components/icon/icons/mobile-rotate-icon.js +1 -4
  315. package/dist/components/icon/icons/module-accounting-icon.js +1 -4
  316. package/dist/components/icon/icons/module-ai-forecast-icon.js +1 -4
  317. package/dist/components/icon/icons/module-app-icon.js +1 -4
  318. package/dist/components/icon/icons/module-articles-icon.js +1 -4
  319. package/dist/components/icon/icons/module-benchmark-icon.js +1 -4
  320. package/dist/components/icon/icons/module-booking-icon.js +1 -4
  321. package/dist/components/icon/icons/module-cai-icon.js +1 -4
  322. package/dist/components/icon/icons/module-campaigns-icon.js +1 -4
  323. package/dist/components/icon/icons/module-cashier-icon.js +1 -4
  324. package/dist/components/icon/icons/module-communication-icon.js +1 -4
  325. package/dist/components/icon/icons/module-copilot-icon.js +1 -4
  326. package/dist/components/icon/icons/module-dashboard-icon.js +1 -4
  327. package/dist/components/icon/icons/module-document-icon.js +1 -4
  328. package/dist/components/icon/icons/module-employees-icon.js +1 -4
  329. package/dist/components/icon/icons/module-feed-icon.js +1 -4
  330. package/dist/components/icon/icons/module-history-icon.js +1 -4
  331. package/dist/components/icon/icons/module-home-icon.js +1 -4
  332. package/dist/components/icon/icons/module-insights-icon.js +1 -4
  333. package/dist/components/icon/icons/module-kds-icon.js +1 -4
  334. package/dist/components/icon/icons/module-members-icon.js +1 -4
  335. package/dist/components/icon/icons/module-menus-icon.js +1 -4
  336. package/dist/components/icon/icons/module-my-city-icon.js +1 -4
  337. package/dist/components/icon/icons/module-notification-center-icon.js +1 -4
  338. package/dist/components/icon/icons/module-online-order-icon.js +1 -4
  339. package/dist/components/icon/icons/module-organisation-icon.js +1 -4
  340. package/dist/components/icon/icons/module-pos-icon.js +1 -4
  341. package/dist/components/icon/icons/module-pulse-icon.js +1 -4
  342. package/dist/components/icon/icons/module-result-icon.js +1 -4
  343. package/dist/components/icon/icons/module-salary-icon.js +1 -4
  344. package/dist/components/icon/icons/module-schedule-icon.js +1 -4
  345. package/dist/components/icon/icons/module-settings-alt-icon.js +1 -4
  346. package/dist/components/icon/icons/module-settings-icon.js +1 -4
  347. package/dist/components/icon/icons/module-support-icon.js +1 -4
  348. package/dist/components/icon/icons/module-survey-icon.js +1 -4
  349. package/dist/components/icon/icons/module-table-map-icon.js +4 -5
  350. package/dist/components/icon/icons/module-tablet-icon.js +1 -4
  351. package/dist/components/icon/icons/module-time-icon.js +1 -4
  352. package/dist/components/icon/icons/module-timeline-icon.js +1 -4
  353. package/dist/components/icon/icons/module-tip-icon.js +1 -4
  354. package/dist/components/icon/icons/module-to-do-icon.js +1 -4
  355. package/dist/components/icon/icons/module-tools-icon.js +1 -4
  356. package/dist/components/icon/icons/module-top-list-icon.js +1 -4
  357. package/dist/components/icon/icons/module-web-charts-icon.js +1 -4
  358. package/dist/components/icon/icons/module-web-icon.js +1 -4
  359. package/dist/components/icon/icons/more-horizontal-icon.js +1 -4
  360. package/dist/components/icon/icons/more-vertical-icon.js +1 -4
  361. package/dist/components/icon/icons/nfc-icon.js +1 -4
  362. package/dist/components/icon/icons/no-cart-icon.js +1 -4
  363. package/dist/components/icon/icons/note-icon.js +1 -4
  364. package/dist/components/icon/icons/number-icon.js +4 -5
  365. package/dist/components/icon/icons/open-modal-icon.js +1 -4
  366. package/dist/components/icon/icons/parking-icon.js +1 -4
  367. package/dist/components/icon/icons/party-horn-icon.js +1 -4
  368. package/dist/components/icon/icons/pause-icon.js +1 -4
  369. package/dist/components/icon/icons/payment-card-icon.js +1 -4
  370. package/dist/components/icon/icons/payment-cash-icon.js +1 -4
  371. package/dist/components/icon/icons/payment-generic-icon.js +1 -4
  372. package/dist/components/icon/icons/payment-giftcard-icon.js +1 -4
  373. package/dist/components/icon/icons/payment-hotel-icon.js +1 -4
  374. package/dist/components/icon/icons/payment-invoice-icon.js +1 -4
  375. package/dist/components/icon/icons/percentage-icon.js +1 -4
  376. package/dist/components/icon/icons/phone-icon.js +1 -4
  377. package/dist/components/icon/icons/pin-icon.js +1 -4
  378. package/dist/components/icon/icons/pin-map-icon.js +1 -4
  379. package/dist/components/icon/icons/play-icon.js +1 -4
  380. package/dist/components/icon/icons/preview-icon.js +1 -4
  381. package/dist/components/icon/icons/print-icon.js +1 -4
  382. package/dist/components/icon/icons/privacy-icon.js +1 -4
  383. package/dist/components/icon/icons/product-admin-icon.js +1 -4
  384. package/dist/components/icon/icons/product-analytics-icon.js +1 -4
  385. package/dist/components/icon/icons/product-booking-icon.js +1 -4
  386. package/dist/components/icon/icons/product-checkout-icon.js +1 -4
  387. package/dist/components/icon/icons/product-my-pages-icon.js +1 -4
  388. package/dist/components/icon/icons/product-staff-icon.js +1 -4
  389. package/dist/components/icon/icons/puck-icon.js +1 -4
  390. package/dist/components/icon/icons/qr-code-icon.js +1 -4
  391. package/dist/components/icon/icons/question-icon.js +1 -4
  392. package/dist/components/icon/icons/radio-icon.js +1 -4
  393. package/dist/components/icon/icons/receipt-icon.js +1 -4
  394. package/dist/components/icon/icons/redo-icon.js +1 -4
  395. package/dist/components/icon/icons/refund-icon.js +1 -4
  396. package/dist/components/icon/icons/remove-icon.js +1 -4
  397. package/dist/components/icon/icons/replace-icon.js +1 -4
  398. package/dist/components/icon/icons/schedule-icon.js +1 -4
  399. package/dist/components/icon/icons/search-icon.js +1 -4
  400. package/dist/components/icon/icons/select-icon.js +1 -4
  401. package/dist/components/icon/icons/send-icon.js +1 -4
  402. package/dist/components/icon/icons/share-icon.js +1 -4
  403. package/dist/components/icon/icons/show-icon.js +1 -4
  404. package/dist/components/icon/icons/shuffle-icon.js +1 -4
  405. package/dist/components/icon/icons/sidebar-hide-icon.js +1 -4
  406. package/dist/components/icon/icons/sidebar-left-icon.js +1 -4
  407. package/dist/components/icon/icons/sidebar-right-icon.js +1 -4
  408. package/dist/components/icon/icons/sidebar-show-icon.js +1 -4
  409. package/dist/components/icon/icons/sliders-icon.js +1 -4
  410. package/dist/components/icon/icons/slightly-sad-icon.js +1 -4
  411. package/dist/components/icon/icons/smile-icon.js +1 -4
  412. package/dist/components/icon/icons/sort-asc-icon.js +1 -4
  413. package/dist/components/icon/icons/sort-desc-icon.js +1 -4
  414. package/dist/components/icon/icons/split-icon.js +1 -4
  415. package/dist/components/icon/icons/status-icon.js +1 -4
  416. package/dist/components/icon/icons/stop-icon.js +1 -4
  417. package/dist/components/icon/icons/submenu-icon.js +1 -4
  418. package/dist/components/icon/icons/success-icon.js +1 -4
  419. package/dist/components/icon/icons/swap-icon.js +1 -4
  420. package/dist/components/icon/icons/swatch-icon.js +1 -4
  421. package/dist/components/icon/icons/sweat-icon.js +1 -4
  422. package/dist/components/icon/icons/table-icon.js +1 -4
  423. package/dist/components/icon/icons/table-map-icon.js +1 -4
  424. package/dist/components/icon/icons/take-away-dot-com-icon.js +1 -4
  425. package/dist/components/icon/icons/take-away-icon.js +1 -4
  426. package/dist/components/icon/icons/talk-icon.js +1 -4
  427. package/dist/components/icon/icons/thumbtack-icon.js +1 -4
  428. package/dist/components/icon/icons/time-icon.js +1 -4
  429. package/dist/components/icon/icons/timeline-icon.js +1 -4
  430. package/dist/components/icon/icons/tip-icon.js +1 -4
  431. package/dist/components/icon/icons/title-icon.js +1 -4
  432. package/dist/components/icon/icons/translate-icon.js +1 -4
  433. package/dist/components/icon/icons/tree-view-collapse-icon.js +1 -4
  434. package/dist/components/icon/icons/tree-view-expand-icon.js +1 -4
  435. package/dist/components/icon/icons/tree-view-last-icon.js +1 -4
  436. package/dist/components/icon/icons/trend-down-icon.js +1 -4
  437. package/dist/components/icon/icons/trend-up-icon.js +1 -4
  438. package/dist/components/icon/icons/triangle-warning-icon.js +1 -4
  439. package/dist/components/icon/icons/trivec-icon.js +4 -5
  440. package/dist/components/icon/icons/uber-eats-icon.js +1 -4
  441. package/dist/components/icon/icons/undo-icon.js +1 -4
  442. package/dist/components/icon/icons/unlock-icon.js +1 -4
  443. package/dist/components/icon/icons/unwrap-content-icon.js +1 -4
  444. package/dist/components/icon/icons/up-icon.js +1 -4
  445. package/dist/components/icon/icons/user-group-icon.js +1 -4
  446. package/dist/components/icon/icons/user-icon.js +1 -4
  447. package/dist/components/icon/icons/user-permissions-icon.js +1 -4
  448. package/dist/components/icon/icons/user-wait-icon.js +1 -4
  449. package/dist/components/icon/icons/users-icon.js +1 -4
  450. package/dist/components/icon/icons/version-control-icon.js +1 -4
  451. package/dist/components/icon/icons/volume-high-icon.js +1 -4
  452. package/dist/components/icon/icons/volume-icon.js +1 -4
  453. package/dist/components/icon/icons/volume-low-icon.js +1 -4
  454. package/dist/components/icon/icons/volume-off-icon.js +1 -4
  455. package/dist/components/icon/icons/warning-icon.js +1 -4
  456. package/dist/components/icon/icons/waste-icon.js +1 -4
  457. package/dist/components/icon/icons/wifi-icon.js +1 -4
  458. package/dist/components/icon/icons/wifi-off-icon.js +1 -4
  459. package/dist/components/icon/icons/wolt-icon.js +1 -4
  460. package/dist/components/icon/icons/wrap-content-icon.js +1 -4
  461. package/dist/components/icon-button/icon-button.composition.d.ts +4 -4
  462. package/dist/components/icon-button/icon-button.composition.d.ts.map +1 -1
  463. package/dist/components/icon-button/icon-button.js +38 -32
  464. package/dist/components/image/image.composition.d.ts +1 -1
  465. package/dist/components/image/image.composition.d.ts.map +1 -1
  466. package/dist/components/image/image.d.ts +1 -1
  467. package/dist/components/image/image.d.ts.map +1 -1
  468. package/dist/components/image/image.js +12 -5
  469. package/dist/components/image-upload/image-cropper.d.ts +2 -1
  470. package/dist/components/image-upload/image-cropper.d.ts.map +1 -1
  471. package/dist/components/image-upload/image-cropper.helper.d.ts +1 -1
  472. package/dist/components/image-upload/image-cropper.helper.d.ts.map +1 -1
  473. package/dist/components/image-upload/image-cropper.helper.js +38 -40
  474. package/dist/components/image-upload/image-cropper.js +63 -73
  475. package/dist/components/image-upload/image-upload-dropzone.d.ts +2 -1
  476. package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
  477. package/dist/components/image-upload/image-upload-dropzone.js +102 -72
  478. package/dist/components/image-upload/image-upload-helper.d.ts +3 -0
  479. package/dist/components/image-upload/image-upload-helper.d.ts.map +1 -1
  480. package/dist/components/image-upload/image-upload-helper.js +20 -3
  481. package/dist/components/image-upload/image-upload-icons.d.ts +5 -5
  482. package/dist/components/image-upload/image-upload-icons.d.ts.map +1 -1
  483. package/dist/components/image-upload/image-upload-icons.js +19 -26
  484. package/dist/components/image-upload/image-upload-modal.d.ts +1 -1
  485. package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
  486. package/dist/components/image-upload/image-upload-modal.js +100 -116
  487. package/dist/components/image-upload/image-upload.composition.d.ts +3 -3
  488. package/dist/components/image-upload/image-upload.composition.d.ts.map +1 -1
  489. package/dist/components/image-upload/image-upload.d.ts +1 -1
  490. package/dist/components/image-upload/image-upload.d.ts.map +1 -1
  491. package/dist/components/image-upload/image-upload.js +69 -78
  492. package/dist/components/input/input.composition.d.ts +9 -9
  493. package/dist/components/input/input.composition.d.ts.map +1 -1
  494. package/dist/components/input/input.d.ts +1 -1
  495. package/dist/components/input/input.js +54 -58
  496. package/dist/components/input/types.d.ts +5 -4
  497. package/dist/components/input/types.d.ts.map +1 -1
  498. package/dist/components/link/link.composition.d.ts +2 -2
  499. package/dist/components/link/link.composition.d.ts.map +1 -1
  500. package/dist/components/link/link.d.ts +1 -1
  501. package/dist/components/link/link.d.ts.map +1 -1
  502. package/dist/components/link/link.js +11 -3
  503. package/dist/components/list/list-item.d.ts +1 -1
  504. package/dist/components/list/list-item.d.ts.map +1 -1
  505. package/dist/components/list/list-item.js +13 -5
  506. package/dist/components/list/list.composition.d.ts +1 -1
  507. package/dist/components/list/list.composition.d.ts.map +1 -1
  508. package/dist/components/list/list.d.ts +1 -1
  509. package/dist/components/list/list.d.ts.map +1 -1
  510. package/dist/components/list/list.js +17 -11
  511. package/dist/components/menu/menu-box-button.js +16 -8
  512. package/dist/components/menu/menu-button.d.ts +1 -1
  513. package/dist/components/menu/menu-button.d.ts.map +1 -1
  514. package/dist/components/menu/menu-button.js +15 -5
  515. package/dist/components/menu/menu-divider.d.ts +2 -1
  516. package/dist/components/menu/menu-divider.d.ts.map +1 -1
  517. package/dist/components/menu/menu-divider.js +21 -12
  518. package/dist/components/menu/menu-group.d.ts +3 -2
  519. package/dist/components/menu/menu-group.d.ts.map +1 -1
  520. package/dist/components/menu/menu-group.js +131 -129
  521. package/dist/components/menu/menu-icon-button.d.ts +1 -1
  522. package/dist/components/menu/menu-icon-button.d.ts.map +1 -1
  523. package/dist/components/menu/menu-icon-button.js +10 -5
  524. package/dist/components/menu/menu-item.d.ts +1 -1
  525. package/dist/components/menu/menu-item.d.ts.map +1 -1
  526. package/dist/components/menu/menu-item.js +43 -32
  527. package/dist/components/menu/menu-list.d.ts +1 -1
  528. package/dist/components/menu/menu-list.d.ts.map +1 -1
  529. package/dist/components/menu/menu-list.js +14 -4
  530. package/dist/components/menu/menu-recipe.js +6 -2
  531. package/dist/components/menu/menu.composition.d.ts +10 -10
  532. package/dist/components/menu/menu.composition.d.ts.map +1 -1
  533. package/dist/components/menu/menu.js +36 -19
  534. package/dist/components/message/message.composition.d.ts +1 -1
  535. package/dist/components/message/message.composition.d.ts.map +1 -1
  536. package/dist/components/message/message.d.ts +1 -1
  537. package/dist/components/message/message.d.ts.map +1 -1
  538. package/dist/components/message/message.js +36 -58
  539. package/dist/components/modal/modal-body.d.ts +1 -1
  540. package/dist/components/modal/modal-body.d.ts.map +1 -1
  541. package/dist/components/modal/modal-body.js +15 -7
  542. package/dist/components/modal/modal-close-button.d.ts +1 -1
  543. package/dist/components/modal/modal-close-button.d.ts.map +1 -1
  544. package/dist/components/modal/modal-close-button.js +16 -16
  545. package/dist/components/modal/modal-footer.d.ts +1 -1
  546. package/dist/components/modal/modal-footer.d.ts.map +1 -1
  547. package/dist/components/modal/modal-footer.js +29 -18
  548. package/dist/components/modal/modal-header.d.ts +1 -1
  549. package/dist/components/modal/modal-header.d.ts.map +1 -1
  550. package/dist/components/modal/modal-header.js +15 -5
  551. package/dist/components/modal/modal.composition.d.ts +11 -11
  552. package/dist/components/modal/modal.composition.d.ts.map +1 -1
  553. package/dist/components/modal/modal.d.ts +1 -1
  554. package/dist/components/modal/modal.d.ts.map +1 -1
  555. package/dist/components/modal/modal.js +53 -43
  556. package/dist/components/navigation-list/navigation-list-item.d.ts +2 -2
  557. package/dist/components/navigation-list/navigation-list-item.d.ts.map +1 -1
  558. package/dist/components/navigation-list/navigation-list-item.js +54 -67
  559. package/dist/components/navigation-list/navigation-list.composition.d.ts +6 -5
  560. package/dist/components/navigation-list/navigation-list.composition.d.ts.map +1 -1
  561. package/dist/components/navigation-list/navigation-list.d.ts +1 -1
  562. package/dist/components/navigation-list/navigation-list.d.ts.map +1 -1
  563. package/dist/components/navigation-list/navigation-list.js +15 -5
  564. package/dist/components/paginator/paginator.composition.d.ts +2 -2
  565. package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
  566. package/dist/components/paginator/paginator.d.ts +1 -1
  567. package/dist/components/paginator/paginator.d.ts.map +1 -1
  568. package/dist/components/paginator/paginator.js +67 -51
  569. package/dist/components/quantity-button/minus-button.d.ts +1 -1
  570. package/dist/components/quantity-button/minus-button.d.ts.map +1 -1
  571. package/dist/components/quantity-button/minus-button.js +14 -16
  572. package/dist/components/quantity-button/plus-button.d.ts +1 -1
  573. package/dist/components/quantity-button/plus-button.d.ts.map +1 -1
  574. package/dist/components/quantity-button/plus-button.js +14 -16
  575. package/dist/components/quantity-button/quantity-button.composition.d.ts +3 -3
  576. package/dist/components/quantity-button/quantity-button.composition.d.ts.map +1 -1
  577. package/dist/components/quantity-button/quantity-button.d.ts +1 -1
  578. package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
  579. package/dist/components/quantity-button/quantity-button.js +38 -74
  580. package/dist/components/radio/check-icon.js +1 -6
  581. package/dist/components/radio/radio-group-context.js +2 -2
  582. package/dist/components/radio/radio-group.composition.d.ts +5 -5
  583. package/dist/components/radio/radio-group.composition.d.ts.map +1 -1
  584. package/dist/components/radio/radio-group.d.ts +1 -1
  585. package/dist/components/radio/radio-group.d.ts.map +1 -1
  586. package/dist/components/radio/radio-group.js +26 -33
  587. package/dist/components/radio/radio.composition.d.ts +2 -2
  588. package/dist/components/radio/radio.composition.d.ts.map +1 -1
  589. package/dist/components/radio/radio.js +53 -49
  590. package/dist/components/radio-card/radio-card-group.d.ts +1 -1
  591. package/dist/components/radio-card/radio-card-group.d.ts.map +1 -1
  592. package/dist/components/radio-card/radio-card-group.js +23 -31
  593. package/dist/components/radio-card/radio-card.composition.d.ts +4 -4
  594. package/dist/components/radio-card/radio-card.composition.d.ts.map +1 -1
  595. package/dist/components/radio-card/radio-card.js +64 -81
  596. package/dist/components/rich-text-editor/boolean-control.d.ts +1 -1
  597. package/dist/components/rich-text-editor/boolean-control.d.ts.map +1 -1
  598. package/dist/components/rich-text-editor/boolean-control.js +50 -30
  599. package/dist/components/rich-text-editor/extensions.js +15 -17
  600. package/dist/components/rich-text-editor/rich-text-editor-control.d.ts +10 -10
  601. package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
  602. package/dist/components/rich-text-editor/rich-text-editor-control.js +273 -166
  603. package/dist/components/rich-text-editor/rich-text-editor-recipe.js +36 -10
  604. package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts +4 -4
  605. package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts.map +1 -1
  606. package/dist/components/rich-text-editor/rich-text-editor.d.ts +4 -4
  607. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  608. package/dist/components/rich-text-editor/rich-text-editor.js +68 -54
  609. package/dist/components/rich-text-editor/rich-text-renderer.d.ts +1 -1
  610. package/dist/components/rich-text-editor/rich-text-renderer.d.ts.map +1 -1
  611. package/dist/components/rich-text-editor/rich-text-renderer.js +30 -17
  612. package/dist/components/rich-text-editor/use-rich-text-editor.js +27 -14
  613. package/dist/components/segmented-control/segmented-control-item.d.ts +1 -1
  614. package/dist/components/segmented-control/segmented-control-item.d.ts.map +1 -1
  615. package/dist/components/segmented-control/segmented-control-item.js +23 -25
  616. package/dist/components/segmented-control/segmented-control.composition.d.ts +5 -5
  617. package/dist/components/segmented-control/segmented-control.composition.d.ts.map +1 -1
  618. package/dist/components/segmented-control/segmented-control.d.ts +1 -1
  619. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  620. package/dist/components/segmented-control/segmented-control.js +38 -38
  621. package/dist/components/segmented-control/types.d.ts +2 -1
  622. package/dist/components/segmented-control/types.d.ts.map +1 -1
  623. package/dist/components/select/select.composition.d.ts +3 -3
  624. package/dist/components/select/select.composition.d.ts.map +1 -1
  625. package/dist/components/select/select.js +27 -12
  626. package/dist/components/skeleton/skeleton-text.d.ts +1 -1
  627. package/dist/components/skeleton/skeleton-text.d.ts.map +1 -1
  628. package/dist/components/skeleton/skeleton-text.js +17 -12
  629. package/dist/components/skeleton/skeleton.composition.d.ts +2 -2
  630. package/dist/components/skeleton/skeleton.composition.d.ts.map +1 -1
  631. package/dist/components/skeleton/skeleton.d.ts +1 -1
  632. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  633. package/dist/components/skeleton/skeleton.js +18 -13
  634. package/dist/components/spinner/spinner.composition.d.ts +2 -2
  635. package/dist/components/spinner/spinner.composition.d.ts.map +1 -1
  636. package/dist/components/spinner/spinner.d.ts +1 -1
  637. package/dist/components/spinner/spinner.d.ts.map +1 -1
  638. package/dist/components/spinner/spinner.js +26 -49
  639. package/dist/components/stack/stack.composition.d.ts +3 -3
  640. package/dist/components/stack/stack.composition.d.ts.map +1 -1
  641. package/dist/components/stack/stack.js +17 -7
  642. package/dist/components/stepper/check-icon.js +1 -6
  643. package/dist/components/stepper/step-context.d.ts +2 -1
  644. package/dist/components/stepper/step-context.d.ts.map +1 -1
  645. package/dist/components/stepper/step.d.ts +1 -1
  646. package/dist/components/stepper/step.d.ts.map +1 -1
  647. package/dist/components/stepper/step.js +89 -69
  648. package/dist/components/stepper/stepper.composition.d.ts +6 -6
  649. package/dist/components/stepper/stepper.composition.d.ts.map +1 -1
  650. package/dist/components/stepper/stepper.d.ts +1 -1
  651. package/dist/components/stepper/stepper.d.ts.map +1 -1
  652. package/dist/components/stepper/stepper.js +41 -21
  653. package/dist/components/stepper/times-icon.js +1 -6
  654. package/dist/components/stepper/types.d.ts +2 -1
  655. package/dist/components/stepper/types.d.ts.map +1 -1
  656. package/dist/components/switch/switch.composition.d.ts +2 -2
  657. package/dist/components/switch/switch.composition.d.ts.map +1 -1
  658. package/dist/components/switch/switch.js +29 -33
  659. package/dist/components/table/table-cell.d.ts +1 -1
  660. package/dist/components/table/table-cell.d.ts.map +1 -1
  661. package/dist/components/table/table-cell.js +67 -92
  662. package/dist/components/table/table-content.d.ts +1 -1
  663. package/dist/components/table/table-content.d.ts.map +1 -1
  664. package/dist/components/table/table-content.js +26 -76
  665. package/dist/components/table/table-context-provider.d.ts +1 -1
  666. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  667. package/dist/components/table/table-context-provider.js +28 -49
  668. package/dist/components/table/table-context.d.ts.map +1 -1
  669. package/dist/components/table/table-filter.d.ts +1 -1
  670. package/dist/components/table/table-filter.d.ts.map +1 -1
  671. package/dist/components/table/table-filter.js +68 -96
  672. package/dist/components/table/table-header-dropdown.d.ts +1 -1
  673. package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
  674. package/dist/components/table/table-header-dropdown.js +65 -113
  675. package/dist/components/table/table-header-row.d.ts +1 -1
  676. package/dist/components/table/table-header-row.d.ts.map +1 -1
  677. package/dist/components/table/table-header-row.js +53 -106
  678. package/dist/components/table/table-recipe.js +6 -2
  679. package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -1
  680. package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
  681. package/dist/components/table/table-row-expand-toggle-button.js +26 -23
  682. package/dist/components/table/table-row.d.ts +1 -1
  683. package/dist/components/table/table-row.d.ts.map +1 -1
  684. package/dist/components/table/table-row.js +8 -26
  685. package/dist/components/table/table-toolbar-actions.d.ts +1 -1
  686. package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
  687. package/dist/components/table/table-toolbar-actions.js +4 -10
  688. package/dist/components/table/table-toolbar-add-button.d.ts +1 -1
  689. package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
  690. package/dist/components/table/table-toolbar-search.d.ts +1 -1
  691. package/dist/components/table/table-toolbar-search.d.ts.map +1 -1
  692. package/dist/components/table/table-toolbar-search.js +6 -11
  693. package/dist/components/table/table-toolbar-settings.d.ts +1 -1
  694. package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
  695. package/dist/components/table/table-toolbar-settings.js +75 -144
  696. package/dist/components/table/table-toolbar.d.ts +1 -1
  697. package/dist/components/table/table-toolbar.d.ts.map +1 -1
  698. package/dist/components/table/table-toolbar.js +28 -34
  699. package/dist/components/table/table.composition.d.ts +5 -4
  700. package/dist/components/table/table.composition.d.ts.map +1 -1
  701. package/dist/components/table/table.d.ts +1 -1
  702. package/dist/components/table/table.d.ts.map +1 -1
  703. package/dist/components/table/table.js +1 -34
  704. package/dist/components/tabs/tab-list.d.ts +1 -1
  705. package/dist/components/tabs/tab-list.d.ts.map +1 -1
  706. package/dist/components/tabs/tab-list.js +15 -5
  707. package/dist/components/tabs/tab-panel.d.ts +1 -1
  708. package/dist/components/tabs/tab-panel.d.ts.map +1 -1
  709. package/dist/components/tabs/tab-panel.js +13 -5
  710. package/dist/components/tabs/tab-panels.d.ts +1 -1
  711. package/dist/components/tabs/tab-panels.d.ts.map +1 -1
  712. package/dist/components/tabs/tab-panels.js +12 -4
  713. package/dist/components/tabs/tab-with-image.d.ts +1 -1
  714. package/dist/components/tabs/tab-with-image.d.ts.map +1 -1
  715. package/dist/components/tabs/tab-with-image.js +51 -32
  716. package/dist/components/tabs/tab.d.ts +1 -1
  717. package/dist/components/tabs/tab.d.ts.map +1 -1
  718. package/dist/components/tabs/tab.js +21 -16
  719. package/dist/components/tabs/tabs-recipe.js +3 -1
  720. package/dist/components/tabs/tabs.composition.d.ts +6 -6
  721. package/dist/components/tabs/tabs.composition.d.ts.map +1 -1
  722. package/dist/components/tabs/tabs.d.ts +1 -1
  723. package/dist/components/tabs/tabs.d.ts.map +1 -1
  724. package/dist/components/tabs/tabs.js +22 -16
  725. package/dist/components/tag/tag-recipe.js +6 -1
  726. package/dist/components/tag/tag.composition.d.ts +4 -4
  727. package/dist/components/tag/tag.composition.d.ts.map +1 -1
  728. package/dist/components/tag/tag.d.ts +20 -20
  729. package/dist/components/tag/tag.d.ts.map +1 -1
  730. package/dist/components/tag/tag.js +41 -35
  731. package/dist/components/tag/types.d.ts +3 -2
  732. package/dist/components/tag/types.d.ts.map +1 -1
  733. package/dist/components/text/text.composition.d.ts +4 -4
  734. package/dist/components/text/text.composition.d.ts.map +1 -1
  735. package/dist/components/text/text.d.ts +1 -1
  736. package/dist/components/text/text.d.ts.map +1 -1
  737. package/dist/components/text/text.js +25 -35
  738. package/dist/components/textarea/textarea.composition.d.ts +3 -3
  739. package/dist/components/textarea/textarea.composition.d.ts.map +1 -1
  740. package/dist/components/textarea/textarea.js +16 -16
  741. package/dist/components/toaster/toast-store.d.ts +2 -1
  742. package/dist/components/toaster/toast-store.d.ts.map +1 -1
  743. package/dist/components/toaster/toast-store.js +19 -12
  744. package/dist/components/toaster/toaster.composition.d.ts +6 -6
  745. package/dist/components/toaster/toaster.composition.d.ts.map +1 -1
  746. package/dist/components/toaster/toaster.d.ts +1 -1
  747. package/dist/components/toaster/toaster.d.ts.map +1 -1
  748. package/dist/components/toaster/toaster.js +33 -18
  749. package/dist/components/toggle-button/toggle-button.composition.d.ts +2 -2
  750. package/dist/components/toggle-button/toggle-button.composition.d.ts.map +1 -1
  751. package/dist/components/toggle-button/toggle-button.d.ts +1 -1
  752. package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
  753. package/dist/components/toggle-button/toggle-button.js +23 -17
  754. package/dist/components/toggle-button/use-button-children.js +33 -24
  755. package/dist/components/tooltip/tooltip.composition.d.ts +4 -4
  756. package/dist/components/tooltip/tooltip.composition.d.ts.map +1 -1
  757. package/dist/components/tooltip/tooltip.d.ts +1 -1
  758. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  759. package/dist/components/tooltip/tooltip.js +44 -32
  760. package/dist/hooks/use-color-mode.js +20 -11
  761. package/dist/hooks/use-disclosure.js +8 -2
  762. package/dist/hooks/use-remove-attributes.js +20 -12
  763. package/dist/node_modules/@dnd-kit/dom/index.js +237 -233
  764. package/dist/node_modules/@dnd-kit/dom/sortable.js +367 -326
  765. package/dist/node_modules/@dnd-kit/dom/utilities.js +11 -11
  766. package/dist/node_modules/@dnd-kit/react/sortable.js +55 -40
  767. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
  768. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
  769. package/dist/node_modules/react/compiler-runtime.js +10 -0
  770. package/dist/theme/theme-provider-context.composition.d.ts +9 -9
  771. package/dist/theme/theme-provider-context.composition.d.ts.map +1 -1
  772. package/dist/theme/theme-provider.d.ts +1 -1
  773. package/dist/theme/theme-provider.d.ts.map +1 -1
  774. package/dist/theme/theme-provider.js +32 -28
  775. package/dist/theme/theme.js +6 -2
  776. package/package.json +24 -23
@@ -1,123 +1,107 @@
1
- import { jsxs as t, jsx as e, Fragment as D } from "react/jsx-runtime";
2
- import { ButtonGroup as H } from "@chakra-ui/react";
3
- import { useState as u, useCallback as L, useEffect as R } from "react";
4
- import { ImageCropper as V } from "./image-cropper.js";
5
- import j from "./image-upload-dropzone.js";
6
- import { sanitizeFilename as O } from "./image-upload-helper.js";
7
- import { RemoveIcon as $ } from "./image-upload-icons.js";
8
- import { translations as s } from "./translations.js";
9
- import { Modal as w } from "../modal/modal.js";
10
- import { ModalHeader as U } from "../modal/modal-header.js";
11
- import { Text as W } from "../text/text.js";
12
- import { ModalCloseButton as X } from "../modal/modal-close-button.js";
13
- import { ModalBody as A } from "../modal/modal-body.js";
14
- import { Button as p } from "../button/button.js";
15
- import { ModalFooter as E } from "../modal/modal-footer.js";
16
- import { ThemeSpaceVariable as r, ThemeFontSizeVariable as G, ThemeFontVariable as q, ThemeColorVariable as g } from "../../theme/theme-types.js";
17
- function se({
18
- title: b,
19
- src: a,
20
- savedCrop: C,
21
- isOpen: S,
22
- aspectRatio: x,
23
- crop: c,
24
- locale: n,
25
- onClose: y,
26
- handleSaveImage: I,
27
- setPreviewImage: i,
28
- setCrop: l
29
- }) {
30
- const [M, F] = u(!1), [o, m] = u({
1
+ import { jsx as l, jsxs as b, Fragment as q } from "react/jsx-runtime";
2
+ import { c as J } from "../../_virtual/compiler-runtime.js";
3
+ import { ButtonGroup as K } from "@chakra-ui/react";
4
+ import { useState as E, useEffect as Q } from "react";
5
+ import { ImageCropper as Y } from "./image-cropper.js";
6
+ import Z from "./image-upload-dropzone.js";
7
+ import { loadImageFileItem as W } from "./image-upload-helper.js";
8
+ import { RemoveIcon as ee } from "./image-upload-icons.js";
9
+ import { translations as D } from "./translations.js";
10
+ import { Text as te } from "../text/text.js";
11
+ import { ModalHeader as oe } from "../modal/modal-header.js";
12
+ import { ModalBody as re } from "../modal/modal-body.js";
13
+ import { Button as L } from "../button/button.js";
14
+ import { ModalFooter as ae } from "../modal/modal-footer.js";
15
+ import { ModalCloseButton as le } from "../modal/modal-close-button.js";
16
+ import { Modal as ie } from "../modal/modal.js";
17
+ import { ThemeFontSizeVariable as me, ThemeFontVariable as ne, ThemeColorVariable as X, ThemeSpaceVariable as i } from "../../theme/theme-types.js";
18
+ function Te(A) {
19
+ const e = J.c(48), {
20
+ title: T,
21
+ src: o,
22
+ savedCrop: F,
23
+ isOpen: B,
24
+ aspectRatio: k,
25
+ crop: m,
26
+ locale: n,
27
+ onClose: w,
28
+ handleSaveImage: z,
29
+ setPreviewImage: r,
30
+ setCrop: a
31
+ } = A, [H, G] = E(!1);
32
+ let C;
33
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
31
34
  data: "",
32
35
  fileName: ""
33
- }), d = L(() => {
34
- (async () => {
35
- if (!a)
36
- return;
37
- const z = await (await fetch(a)).blob(), f = new FileReader();
38
- f.readAsDataURL(z), f.onloadend = () => {
39
- const B = f.result;
40
- m({
41
- data: B,
42
- fileName: O(a)
43
- });
44
- };
45
- })().catch(console.error);
46
- }, [a]);
47
- R(() => {
48
- d();
49
- }, [d]);
50
- const T = () => {
51
- I(o, c, M);
52
- }, N = (!o.data || !o.fileName) && !a, v = (!o.data || !o.fileName) && a, h = () => {
53
- m({ data: "", fileName: "" }), i(""), a && (d(), i(a)), l(C || null), y();
54
- }, k = () => {
55
- m({
36
+ }, e[0] = C) : C = e[0];
37
+ const [t, u] = E(C);
38
+ let I, S;
39
+ e[1] !== o ? (I = () => {
40
+ if (!o)
41
+ return;
42
+ const j = new AbortController();
43
+ return W(o, j.signal).then((U) => {
44
+ j.signal.aborted || u(U);
45
+ }).catch(console.error), () => {
46
+ j.abort();
47
+ };
48
+ }, S = [o], e[1] = o, e[2] = I, e[3] = S) : (I = e[2], S = e[3]), Q(I, S);
49
+ let v;
50
+ e[4] !== m || e[5] !== t || e[6] !== z || e[7] !== H ? (v = () => {
51
+ z(t, m, H);
52
+ }, e[4] = m, e[5] = t, e[6] = z, e[7] = H, e[8] = v) : v = e[8];
53
+ const O = v, R = (!t.data || !t.fileName) && !o, P = (!t.data || !t.fileName) && o;
54
+ let y;
55
+ e[9] !== w || e[10] !== F || e[11] !== a || e[12] !== r || e[13] !== o ? (y = () => {
56
+ u({
56
57
  data: "",
57
58
  fileName: ""
58
- }), i(""), l(null);
59
- };
60
- return /* @__PURE__ */ t(w, { isOpen: S, onClose: h, size: "md", children: [
61
- /* @__PURE__ */ t(
62
- U,
63
- {
64
- display: "flex",
65
- alignItems: "center",
66
- justifyContent: "space-between",
67
- p: r.Medium,
68
- children: [
69
- /* @__PURE__ */ e(
70
- W,
71
- {
72
- color: g.OnSurfaceHeader,
73
- fontFamily: q.SubHeader,
74
- fontWeight: "medium",
75
- fontSize: G.XLarge,
76
- children: b
77
- }
78
- ),
79
- /* @__PURE__ */ e(X, {})
80
- ]
81
- }
82
- ),
83
- /* @__PURE__ */ e(
84
- A,
85
- {
86
- display: "flex",
87
- flexDirection: "column",
88
- p: `${r.Large} ${r.Medium}`,
89
- children: o.data && o.fileName ? /* @__PURE__ */ t(D, { children: [
90
- /* @__PURE__ */ e(
91
- V,
92
- {
93
- src: o.data,
94
- crop: c,
95
- onCropCallback: l,
96
- aspectRatio: x,
97
- setPreviewImage: i
98
- }
99
- ),
100
- /* @__PURE__ */ e(H, { gap: r.Small, mt: r.Large, flexWrap: "wrap", children: /* @__PURE__ */ t(p, { variant: "ghost", onClick: k, gap: r.XSmall, children: [
101
- /* @__PURE__ */ e($, {}),
102
- "Ta bort bild"
103
- ] }) })
104
- ] }) : /* @__PURE__ */ e(j, { locale: n, setFileItem: m, setHasImageChanged: F })
105
- }
106
- ),
107
- /* @__PURE__ */ t(
108
- E,
109
- {
110
- p: r.Medium,
111
- gap: r.Medium,
112
- borderTop: `1px solid ${g.OnSurfaceBorder}`,
113
- children: [
114
- /* @__PURE__ */ e(p, { variant: "ghost", onClick: h, children: s[n].secondary }),
115
- /* @__PURE__ */ e(p, { variant: "primary", onClick: T, isDisabled: N, children: v ? s[n].remove : s[n].primary })
116
- ]
117
- }
118
- )
119
- ] });
59
+ }), r(""), o && (W(o).then(u).catch(console.error), r(o)), a(F || null), w();
60
+ }, e[9] = w, e[10] = F, e[11] = a, e[12] = r, e[13] = o, e[14] = y) : y = e[14];
61
+ const s = y;
62
+ let x;
63
+ e[15] !== a || e[16] !== r ? (x = () => {
64
+ u({
65
+ data: "",
66
+ fileName: ""
67
+ }), r(""), a(null);
68
+ }, e[15] = a, e[16] = r, e[17] = x) : x = e[17];
69
+ const V = x;
70
+ let c;
71
+ e[18] !== T ? (c = /* @__PURE__ */ l(te, { color: X.OnSurfaceHeader, fontFamily: ne.SubHeader, fontWeight: "medium", fontSize: me.XLarge, children: T }), e[18] = T, e[19] = c) : c = e[19];
72
+ let M;
73
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(le, {}), e[20] = M) : M = e[20];
74
+ let f;
75
+ e[21] !== c ? (f = /* @__PURE__ */ b(oe, { display: "flex", alignItems: "center", justifyContent: "space-between", p: i.Medium, children: [
76
+ c,
77
+ M
78
+ ] }), e[21] = c, e[22] = f) : f = e[22];
79
+ let d;
80
+ e[23] !== k || e[24] !== m || e[25] !== t.data || e[26] !== t.fileName || e[27] !== V || e[28] !== n || e[29] !== a || e[30] !== r ? (d = /* @__PURE__ */ l(re, { display: "flex", flexDirection: "column", p: `${i.Large} ${i.Medium}`, children: t.data && t.fileName ? /* @__PURE__ */ b(q, { children: [
81
+ /* @__PURE__ */ l(Y, { src: t.data, crop: m, onCropCallback: a, aspectRatio: k, setPreviewImage: r }),
82
+ /* @__PURE__ */ l(K, { gap: i.Small, mt: i.Large, flexWrap: "wrap", children: /* @__PURE__ */ b(L, { variant: "ghost", onClick: V, gap: i.XSmall, children: [
83
+ /* @__PURE__ */ l(ee, {}),
84
+ "Ta bort bild"
85
+ ] }) })
86
+ ] }) : /* @__PURE__ */ l(Z, { locale: n, setFileItem: u, setHasImageChanged: G }) }), e[23] = k, e[24] = m, e[25] = t.data, e[26] = t.fileName, e[27] = V, e[28] = n, e[29] = a, e[30] = r, e[31] = d) : d = e[31];
87
+ const _ = D[n];
88
+ let p;
89
+ e[32] !== s || e[33] !== _.secondary ? (p = /* @__PURE__ */ l(L, { variant: "ghost", onClick: s, children: _.secondary }), e[32] = s, e[33] = _.secondary, e[34] = p) : p = e[34];
90
+ const $ = P ? D[n].remove : D[n].primary;
91
+ let h;
92
+ e[35] !== R || e[36] !== O || e[37] !== $ ? (h = /* @__PURE__ */ l(L, { variant: "primary", onClick: O, isDisabled: R, children: $ }), e[35] = R, e[36] = O, e[37] = $, e[38] = h) : h = e[38];
93
+ let g;
94
+ e[39] !== p || e[40] !== h ? (g = /* @__PURE__ */ b(ae, { p: i.Medium, gap: i.Medium, borderTop: `1px solid ${X.OnSurfaceBorder}`, children: [
95
+ p,
96
+ h
97
+ ] }), e[39] = p, e[40] = h, e[41] = g) : g = e[41];
98
+ let N;
99
+ return e[42] !== s || e[43] !== B || e[44] !== d || e[45] !== g || e[46] !== f ? (N = /* @__PURE__ */ b(ie, { isOpen: B, onClose: s, size: "md", children: [
100
+ f,
101
+ d,
102
+ g
103
+ ] }), e[42] = s, e[43] = B, e[44] = d, e[45] = g, e[46] = f, e[47] = N) : N = e[47], N;
120
104
  }
121
105
  export {
122
- se as ImageUploadModal
106
+ Te as ImageUploadModal
123
107
  };
@@ -1,4 +1,4 @@
1
- export declare const ImageUploadOneOne: () => import("react/jsx-runtime").JSX.Element;
2
- export declare const ImageUploadSixteenNine: () => import("react/jsx-runtime").JSX.Element;
3
- export declare const ImageUploadThirtyTwoNine: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const ImageUploadOneOne: () => import("react").JSX.Element;
2
+ export declare const ImageUploadSixteenNine: () => import("react").JSX.Element;
3
+ export declare const ImageUploadThirtyTwoNine: () => import("react").JSX.Element;
4
4
  //# sourceMappingURL=image-upload.composition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-upload.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/image-upload.composition.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,+CAY7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,+CAYlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,+CAWpC,CAAC"}
1
+ {"version":3,"file":"image-upload.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/image-upload.composition.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,mCAY7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,mCAYlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,mCAWpC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { ImageUploadProps } from './types.js';
2
- export declare function ImageUpload({ title, savedImageUrl, savedCrop, aspectRatio, isLoading, locale, onSave, }: ImageUploadProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ImageUpload({ title, savedImageUrl, savedCrop, aspectRatio, isLoading, locale, onSave, }: ImageUploadProps): import("react").JSX.Element;
3
3
  //# sourceMappingURL=image-upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/image-upload.tsx"],"names":[],"mappings":"AASA,OAAO,EAAqD,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEnG,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,SAAS,EACT,MAAgB,EAChB,MAAM,GACN,EAAE,gBAAgB,2CAgGlB"}
1
+ {"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/image-upload.tsx"],"names":[],"mappings":"AASA,OAAO,EAAqD,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEnG,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,SAAS,EACT,MAAgB,EAChB,MAAM,GACN,EAAE,gBAAgB,+BAgGlB"}
@@ -1,96 +1,87 @@
1
- import { jsxs as k, Fragment as C, jsx as e } from "react/jsx-runtime";
2
- import { useDisclosure as U } from "../../hooks/use-disclosure.js";
3
- import { Box as j, Spinner as F } from "@chakra-ui/react";
4
- import { useState as l } from "react";
5
- import { ImageIcon as M } from "./image-upload-icons.js";
6
- import { ImageUploadModal as V } from "./image-upload-modal.js";
7
- import { ImageUploadAspectRatio as r } from "./types.js";
8
- import { Text as A } from "../text/text.js";
9
- import { Image as P } from "../image/image.js";
10
- import { ThemeRadiusVariable as u, ThemeColorVariable as t, ThemeSpaceVariable as R } from "../../theme/theme-types.js";
11
- function L({
12
- title: p,
13
- savedImageUrl: n,
14
- savedCrop: i,
15
- aspectRatio: o,
16
- isLoading: d,
17
- locale: g = "en-US",
18
- onSave: a
19
- }) {
20
- const { isOpen: f, onOpen: h, onClose: m } = U(), [c, x] = l(n || ""), [B, w] = l(i || null), b = (s, S, D) => {
21
- const N = {
22
- crop: S,
1
+ import { jsx as s, jsxs as L, Fragment as W } from "react/jsx-runtime";
2
+ import { c as X } from "../../_virtual/compiler-runtime.js";
3
+ import { useDisclosure as $ } from "../../hooks/use-disclosure.js";
4
+ import { Box as q, Spinner as G } from "@chakra-ui/react";
5
+ import { useState as N } from "react";
6
+ import { ImageIcon as H } from "./image-upload-icons.js";
7
+ import { ImageUploadModal as J } from "./image-upload-modal.js";
8
+ import { ImageUploadAspectRatio as l } from "./types.js";
9
+ import { Text as K } from "../text/text.js";
10
+ import { Image as Q } from "../image/image.js";
11
+ import { ThemeRadiusVariable as k, ThemeColorVariable as D, ThemeSpaceVariable as Y } from "../../theme/theme-types.js";
12
+ function ce(j) {
13
+ const e = X.c(32), {
14
+ title: B,
15
+ savedImageUrl: c,
16
+ savedCrop: m,
17
+ aspectRatio: t,
18
+ isLoading: w,
19
+ locale: R,
20
+ onSave: p
21
+ } = j, I = R === void 0 ? "en-US" : R, {
22
+ isOpen: b,
23
+ onOpen: S,
24
+ onClose: r
25
+ } = $(), [d, F] = N(c || ""), [v, M] = N(m || null);
26
+ let u;
27
+ e[0] !== r || e[1] !== p ? (u = (U, P, z) => {
28
+ const E = {
29
+ crop: P,
23
30
  file: {
24
- imageFilename: s.fileName,
25
- imageUploadData: s.data
31
+ imageFilename: U.fileName,
32
+ imageUploadData: U.data
26
33
  }
27
34
  };
28
- a && (a(N, D), m());
29
- }, y = () => {
30
- switch (o) {
31
- case r.OneByOne:
35
+ p && (p(E, z), r());
36
+ }, e[0] = r, e[1] = p, e[2] = u) : u = e[2];
37
+ const y = u;
38
+ let f;
39
+ e[3] !== t ? (f = () => {
40
+ switch (t) {
41
+ case l.OneByOne:
32
42
  return "102px";
33
- case r.SixteenByNine:
43
+ case l.SixteenByNine:
34
44
  return "178px";
35
- case r.ThirtyTwoByNine:
45
+ case l.ThirtyTwoByNine:
36
46
  return "360px";
37
47
  default:
38
48
  return "102px";
39
49
  }
40
- }, I = () => {
41
- switch (o) {
42
- case r.OneByOne:
50
+ }, e[3] = t, e[4] = f) : f = e[4];
51
+ const V = f;
52
+ let g;
53
+ e[5] !== t ? (g = () => {
54
+ switch (t) {
55
+ case l.OneByOne:
43
56
  return "1:1";
44
- case r.SixteenByNine:
57
+ case l.SixteenByNine:
45
58
  return "16:9";
46
- case r.ThirtyTwoByNine:
59
+ case l.ThirtyTwoByNine:
47
60
  return "32:9";
48
61
  default:
49
62
  return "";
50
63
  }
51
- }, O = () => d ? /* @__PURE__ */ e(F, { color: t.OnBackgroundBorder, size: "lg", animationDuration: "0.825s" }) : c ? /* @__PURE__ */ e(
52
- P,
53
- {
54
- alt: "Preview Image",
55
- src: c,
56
- borderRadius: u.Medium,
57
- objectFit: "fill",
58
- h: "100%",
59
- w: "100%"
60
- }
61
- ) : /* @__PURE__ */ e(M, {}), T = y();
62
- return /* @__PURE__ */ k(C, { children: [
63
- /* @__PURE__ */ e(
64
- j,
65
- {
66
- as: "button",
67
- onClick: h,
68
- bg: t.BackgroundDisabled,
69
- borderRadius: u.Medium,
70
- w: T,
71
- h: "102px",
72
- children: /* @__PURE__ */ e(O, {})
73
- }
74
- ),
75
- /* @__PURE__ */ e(A, { mt: R.XSmall, color: t.OnBackground, children: I() }),
76
- /* @__PURE__ */ e(
77
- V,
78
- {
79
- locale: g,
80
- title: p,
81
- src: n,
82
- savedCrop: i,
83
- aspectRatio: o,
84
- isOpen: f,
85
- onClose: m,
86
- handleSaveImage: b,
87
- setPreviewImage: x,
88
- crop: B,
89
- setCrop: w
90
- }
91
- )
92
- ] });
64
+ }, e[5] = t, e[6] = g) : g = e[6];
65
+ const A = g;
66
+ let h;
67
+ e[7] !== w || e[8] !== d ? (h = () => w ? /* @__PURE__ */ s(G, { color: D.OnBackgroundBorder, size: "lg", animationDuration: "0.825s" }) : d ? /* @__PURE__ */ s(Q, { alt: "Preview Image", src: d, borderRadius: k.Medium, objectFit: "fill", h: "100%", w: "100%" }) : /* @__PURE__ */ s(H, {}), e[7] = w, e[8] = d, e[9] = h) : h = e[9];
68
+ const O = h, T = V();
69
+ let o;
70
+ e[10] !== O ? (o = O(), e[10] = O, e[11] = o) : o = e[11];
71
+ let i;
72
+ e[12] !== S || e[13] !== o || e[14] !== T ? (i = /* @__PURE__ */ s(q, { as: "button", onClick: S, bg: D.BackgroundDisabled, borderRadius: k.Medium, w: T, h: "102px", children: o }), e[12] = S, e[13] = o, e[14] = T, e[15] = i) : i = e[15];
73
+ const C = A();
74
+ let n;
75
+ e[16] !== C ? (n = /* @__PURE__ */ s(K, { mt: Y.XSmall, color: D.OnBackground, children: C }), e[16] = C, e[17] = n) : n = e[17];
76
+ let a;
77
+ e[18] !== t || e[19] !== v || e[20] !== y || e[21] !== b || e[22] !== I || e[23] !== r || e[24] !== m || e[25] !== c || e[26] !== B ? (a = /* @__PURE__ */ s(J, { locale: I, title: B, src: c, savedCrop: m, aspectRatio: t, isOpen: b, onClose: r, handleSaveImage: y, setPreviewImage: F, crop: v, setCrop: M }), e[18] = t, e[19] = v, e[20] = y, e[21] = b, e[22] = I, e[23] = r, e[24] = m, e[25] = c, e[26] = B, e[27] = a) : a = e[27];
78
+ let x;
79
+ return e[28] !== a || e[29] !== i || e[30] !== n ? (x = /* @__PURE__ */ L(W, { children: [
80
+ i,
81
+ n,
82
+ a
83
+ ] }), e[28] = a, e[29] = i, e[30] = n, e[31] = x) : x = e[31], x;
93
84
  }
94
85
  export {
95
- L as ImageUpload
86
+ ce as ImageUpload
96
87
  };
@@ -1,10 +1,10 @@
1
- export declare const Sizes: () => import("react/jsx-runtime").JSX.Element;
2
- export declare const Disabled: () => import("react/jsx-runtime").JSX.Element;
3
- export declare const Readonly: () => import("react/jsx-runtime").JSX.Element;
4
- export declare const Invalid: () => import("react/jsx-runtime").JSX.Element;
5
- export declare const Success: () => import("react/jsx-runtime").JSX.Element;
6
- export declare const Warning: () => import("react/jsx-runtime").JSX.Element;
7
- export declare const InputAddons: () => import("react/jsx-runtime").JSX.Element;
8
- export declare const InputElements: () => import("react/jsx-runtime").JSX.Element;
9
- export declare const GhostVariant: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const Sizes: () => import("react").JSX.Element;
2
+ export declare const Disabled: () => import("react").JSX.Element;
3
+ export declare const Readonly: () => import("react").JSX.Element;
4
+ export declare const Invalid: () => import("react").JSX.Element;
5
+ export declare const Success: () => import("react").JSX.Element;
6
+ export declare const Warning: () => import("react").JSX.Element;
7
+ export declare const InputAddons: () => import("react").JSX.Element;
8
+ export declare const InputElements: () => import("react").JSX.Element;
9
+ export declare const GhostVariant: () => import("react").JSX.Element;
10
10
  //# sourceMappingURL=input.composition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/input/input.composition.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,+CAMjB,CAAC;AAEF,eAAO,MAAM,QAAQ,+CAA2C,CAAC;AACjE,eAAO,MAAM,QAAQ,+CAA2C,CAAC;AACjE,eAAO,MAAM,OAAO,+CAInB,CAAC;AACF,eAAO,MAAM,OAAO,+CAA6D,CAAC;AAClF,eAAO,MAAM,OAAO,+CAA6D,CAAC;AAElF,eAAO,MAAM,WAAW,+CAUvB,CAAC;AAEF,eAAO,MAAM,aAAa,+CAUzB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAIxB,CAAC"}
1
+ {"version":3,"file":"input.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/input/input.composition.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,mCAMjB,CAAC;AAEF,eAAO,MAAM,QAAQ,mCAA2C,CAAC;AACjE,eAAO,MAAM,QAAQ,mCAA2C,CAAC;AACjE,eAAO,MAAM,OAAO,mCAInB,CAAC;AACF,eAAO,MAAM,OAAO,mCAA6D,CAAC;AAClF,eAAO,MAAM,OAAO,mCAA6D,CAAC;AAElF,eAAO,MAAM,WAAW,mCAUvB,CAAC;AAEF,eAAO,MAAM,aAAa,mCAUzB,CAAC;AAEF,eAAO,MAAM,YAAY,mCAIxB,CAAC"}
@@ -11,7 +11,7 @@ export declare const Input: React.ForwardRefExoticComponent<import('./types.js')
11
11
  type?: React.HTMLInputTypeAttribute | undefined;
12
12
  onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
13
13
  onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
14
- onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
14
+ onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
15
15
  onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
16
16
  defaultValue?: string | number | readonly string[] | undefined;
17
17
  autoFocus?: boolean | undefined | undefined;
@@ -1,65 +1,61 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { InputGroup as b, Input as I } from "@chakra-ui/react";
3
- import E from "react";
4
- import { getVisualStateStyle as w } from "./helper.js";
5
- import { ThemeSpaceVariable as a, ThemeColorVariable as s } from "../../theme/theme-types.js";
6
- const q = E.forwardRef((m, p) => {
7
- const {
8
- size: e = "md",
9
- visualState: d,
10
- leftAddon: u,
11
- rightAddon: c,
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { c as j } from "../../_virtual/compiler-runtime.js";
3
+ import { Input as C, InputGroup as D } from "@chakra-ui/react";
4
+ import G from "react";
5
+ import { getVisualStateStyle as H } from "./helper.js";
6
+ import { ThemeSpaceVariable as T, ThemeColorVariable as $ } from "../../theme/theme-types.js";
7
+ const K = G.forwardRef((b, E) => {
8
+ const e = j.c(40);
9
+ let o, n, d, s, t, r, a, l, v, h, i;
10
+ e[0] !== b ? ({
11
+ size: v,
12
+ visualState: i,
13
+ leftAddon: s,
14
+ rightAddon: a,
12
15
  leftElement: t,
13
- rightElement: i,
14
- variant: f = "outline",
15
- isDisabled: g,
16
- isReadOnly: h,
17
- isRequired: v,
18
- ...S
19
- } = m, y = d ? w(d) : void 0, n = e === "lg" ? a.Medium : a.Small, o = e === "lg" ? "3rem" : e === "md" ? "2.5rem" : "2rem", r = {
20
- color: s.OnSurface,
16
+ rightElement: l,
17
+ variant: h,
18
+ isDisabled: o,
19
+ isReadOnly: n,
20
+ isRequired: d,
21
+ ...r
22
+ } = b, e[0] = b, e[1] = o, e[2] = n, e[3] = d, e[4] = s, e[5] = t, e[6] = r, e[7] = a, e[8] = l, e[9] = v, e[10] = h, e[11] = i) : (o = e[1], n = e[2], d = e[3], s = e[4], t = e[5], r = e[6], a = e[7], l = e[8], v = e[9], h = e[10], i = e[11]);
23
+ const m = v === void 0 ? "md" : v, I = h === void 0 ? "outline" : h;
24
+ let S;
25
+ e[12] !== i ? (S = i ? H(i) : void 0, e[12] = i, e[13] = S) : S = e[13];
26
+ const R = S, x = m === "lg" ? T.Medium : T.Small, V = m === "lg" ? "3rem" : m === "md" ? "2.5rem" : "2rem";
27
+ let g;
28
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
29
+ color: $.OnSurface,
21
30
  _disabled: {
22
31
  opacity: 1,
23
- color: s.OnSurfaceSubdued
32
+ color: $.OnSurfaceSubdued
24
33
  }
25
- };
26
- return /* @__PURE__ */ l(
27
- b,
28
- {
29
- startElement: t,
30
- endElement: i,
31
- startAddon: u,
32
- endAddon: c,
33
- width: "100%",
34
- css: {
35
- // https://github.com/chakra-ui/chakra-ui/issues/10697
36
- "& > div:first-of-type": {
37
- paddingInline: t ? n : void 0,
38
- width: t ? o : void 0,
39
- ...r
40
- },
41
- "& > div:last-of-type": {
42
- paddingInline: i ? n : void 0,
43
- width: i ? o : void 0,
44
- ...r
45
- }
46
- },
47
- children: /* @__PURE__ */ l(
48
- I,
49
- {
50
- ref: p,
51
- css: y,
52
- size: e,
53
- variant: f,
54
- disabled: g,
55
- readOnly: h,
56
- required: v,
57
- ...S
58
- }
59
- )
60
- }
61
- );
34
+ }, e[14] = g) : g = e[14];
35
+ const q = g, _ = t ? x : void 0, w = t ? V : void 0;
36
+ let c;
37
+ e[15] !== _ || e[16] !== w ? (c = {
38
+ paddingInline: _,
39
+ width: w,
40
+ ...q
41
+ }, e[15] = _, e[16] = w, e[17] = c) : c = e[17];
42
+ const A = l ? x : void 0, O = l ? V : void 0;
43
+ let f;
44
+ e[18] !== A || e[19] !== O ? (f = {
45
+ paddingInline: A,
46
+ width: O,
47
+ ...q
48
+ }, e[18] = A, e[19] = O, e[20] = f) : f = e[20];
49
+ let u;
50
+ e[21] !== c || e[22] !== f ? (u = {
51
+ "& > div:first-of-type": c,
52
+ "& > div:last-of-type": f
53
+ }, e[21] = c, e[22] = f, e[23] = u) : u = e[23];
54
+ let p;
55
+ e[24] !== R || e[25] !== o || e[26] !== n || e[27] !== d || e[28] !== E || e[29] !== r || e[30] !== m || e[31] !== I ? (p = /* @__PURE__ */ z(C, { ref: E, css: R, size: m, variant: I, disabled: o, readOnly: n, required: d, ...r }), e[24] = R, e[25] = o, e[26] = n, e[27] = d, e[28] = E, e[29] = r, e[30] = m, e[31] = I, e[32] = p) : p = e[32];
56
+ let y;
57
+ return e[33] !== s || e[34] !== t || e[35] !== a || e[36] !== l || e[37] !== u || e[38] !== p ? (y = /* @__PURE__ */ z(D, { startElement: t, endElement: l, startAddon: s, endAddon: a, width: "100%", css: u, children: p }), e[33] = s, e[34] = t, e[35] = a, e[36] = l, e[37] = u, e[38] = p, e[39] = y) : y = e[39], y;
62
58
  });
63
59
  export {
64
- q as Input
60
+ K as Input
65
61
  };
@@ -1,17 +1,18 @@
1
1
  import { CustomChakraBoxProps, LayoutProps, MarginProps, PaddingProps, TypographyProps } from '../../theme/index.js';
2
2
  import { InputProps as ChakraInputProps, ConditionalValue } from '@chakra-ui/react';
3
+ import { ReactNode } from 'react';
3
4
  export type VisualInputState = "success" | "warning";
4
5
  export type CustomProperties = {
5
6
  /** Size of input. Defaults to medium / 'md'. */
6
7
  size?: ConditionalValue<"sm" | "md" | "lg">;
7
8
  /** Element to append to the right of input */
8
- rightAddon?: JSX.Element | string | null;
9
+ rightAddon?: ReactNode;
9
10
  /** Element to append to the left of input */
10
- leftAddon?: JSX.Element | string | null;
11
+ leftAddon?: ReactNode;
11
12
  /** Element to display inside input, to the right of the input value */
12
- rightElement?: JSX.Element | string | null;
13
+ rightElement?: ReactNode;
13
14
  /** Element to display inside input, to the left of the input value */
14
- leftElement?: JSX.Element | string | null;
15
+ leftElement?: ReactNode;
15
16
  /** Custom "visual state" of input, used to indicate "warning" or "success" appearance.
16
17
  * Not semantic html, just visual effect. For invalid/error state of input, use 'isInvalid'. */
17
18
  visualState?: VisualInputState;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC7G,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC9B,gDAAgD;IAChD,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAC5C,8CAA8C;IAC9C,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IACxC,uEAAuE;IACvE,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3C,sEAAsE;IACtE,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1C;mGAC+F;IAC/F,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,uEAAuE;IACvE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAG9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,KAAK,qBAAqB,GAAG,IAAI,CAChC,gBAAgB,EACd,IAAI,GACJ,MAAM,GACN,OAAO,GACP,aAAa,GACb,UAAU,GACV,QAAQ,GACR,SAAS,GACT,WAAW,GACX,MAAM,GACN,cAAc,GACd,WAAW,GACX,SAAS,GACT,WAAW,GACX,cAAc,CAChB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,gBAAgB,GACxC,qBAAqB,GACrB,oBAAoB,GACpB,WAAW,GACX,WAAW,GACX,YAAY,GACZ,eAAe,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC7G,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC9B,gDAAgD;IAChD,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAC5C,8CAA8C;IAC9C,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uEAAuE;IACvE,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,sEAAsE;IACtE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;mGAC+F;IAC/F,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,uEAAuE;IACvE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAG9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,KAAK,qBAAqB,GAAG,IAAI,CAChC,gBAAgB,EACd,IAAI,GACJ,MAAM,GACN,OAAO,GACP,aAAa,GACb,UAAU,GACV,QAAQ,GACR,SAAS,GACT,WAAW,GACX,MAAM,GACN,cAAc,GACd,WAAW,GACX,SAAS,GACT,WAAW,GACX,cAAc,CAChB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,gBAAgB,GACxC,qBAAqB,GACrB,oBAAoB,GACpB,WAAW,GACX,WAAW,GACX,YAAY,GACZ,eAAe,CAAC"}
@@ -1,3 +1,3 @@
1
- export declare const BasicLink: () => import("react/jsx-runtime").JSX.Element;
2
- export declare const InlineLink: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const BasicLink: () => import("react").JSX.Element;
2
+ export declare const InlineLink: () => import("react").JSX.Element;
3
3
  //# sourceMappingURL=link.composition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/link/link.composition.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,+CAMrB,CAAC;AAEF,eAAO,MAAM,UAAU,+CAStB,CAAC"}
1
+ {"version":3,"file":"link.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/link/link.composition.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,mCAMrB,CAAC;AAEF,eAAO,MAAM,UAAU,mCAStB,CAAC"}