@caspeco/casper-ui-library 10.4.0 → 10.5.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 (842) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +11 -0
  2. package/dist/_virtual/builtin_esm-external-require-react.js +9 -0
  3. package/dist/components/accordion/accordion-context.js +5 -6
  4. package/dist/components/accordion/accordion-item.js +28 -40
  5. package/dist/components/accordion/accordion-panel.js +17 -14
  6. package/dist/components/accordion/accordion-recipe.js +85 -120
  7. package/dist/components/accordion/accordion.js +23 -20
  8. package/dist/components/alert/alert.js +80 -59
  9. package/dist/components/alert/helper.js +30 -42
  10. package/dist/components/alert/types.d.ts.map +1 -1
  11. package/dist/components/badge/badge-recipe.js +57 -49
  12. package/dist/components/badge/badge.js +66 -71
  13. package/dist/components/badge/helper.js +8 -9
  14. package/dist/components/box/box.js +14 -11
  15. package/dist/components/breadcrumbs/breadcrumb-item.js +21 -17
  16. package/dist/components/breadcrumbs/breadcrumb-link.js +21 -20
  17. package/dist/components/breadcrumbs/breadcrumbs.js +123 -90
  18. package/dist/components/button/button-recipe.js +280 -315
  19. package/dist/components/button/button.js +39 -40
  20. package/dist/components/checkbox/checkbox-icon.js +38 -46
  21. package/dist/components/checkbox/checkbox-recipe.js +176 -204
  22. package/dist/components/checkbox/checkbox.js +43 -36
  23. package/dist/components/checkbox/icons/check.js +5 -5
  24. package/dist/components/checkbox/icons/minus.js +5 -5
  25. package/dist/components/checkbox/icons/plus.js +5 -5
  26. package/dist/components/checkbox-group/checkbox-group.js +17 -16
  27. package/dist/components/collapsible/collapsible.js +117 -101
  28. package/dist/components/collapsible/translations.js +29 -29
  29. package/dist/components/combobox/combobox-button.js +173 -143
  30. package/dist/components/combobox/combobox-item.js +45 -23
  31. package/dist/components/combobox/combobox-menu.js +240 -190
  32. package/dist/components/combobox/combobox-recipe.js +69 -103
  33. package/dist/components/combobox/combobox.js +243 -273
  34. package/dist/components/combobox/translations.js +49 -50
  35. package/dist/components/date-picker/base-date-picker.js +238 -248
  36. package/dist/components/date-picker/date-cell-recipe.js +149 -179
  37. package/dist/components/date-picker/date-multi-picker.js +35 -29
  38. package/dist/components/date-picker/date-picker-date-cell.js +109 -114
  39. package/dist/components/date-picker/date-picker-header.js +152 -170
  40. package/dist/components/date-picker/date-picker-week-cell.js +41 -43
  41. package/dist/components/date-picker/date-picker.js +32 -29
  42. package/dist/components/date-picker/date-range-picker.js +29 -24
  43. package/dist/components/date-picker/date-week-picker.js +29 -22
  44. package/dist/components/date-picker/datepicker-week-recipe.js +75 -91
  45. package/dist/components/date-picker/helper.js +11 -16
  46. package/dist/components/divider/divider-recipe.js +9 -11
  47. package/dist/components/divider/divider.js +19 -18
  48. package/dist/components/drawer/drawer-recipe.js +21 -50
  49. package/dist/components/drawer/drawer.js +45 -41
  50. package/dist/components/drawer/inline-drawer.js +69 -66
  51. package/dist/components/drawer/use-drawer-key-down.js +20 -20
  52. package/dist/components/fieldset/fieldset-error-text.js +15 -15
  53. package/dist/components/fieldset/fieldset-helper-text.js +15 -15
  54. package/dist/components/fieldset/fieldset-legend.js +15 -15
  55. package/dist/components/fieldset/fieldset-recipe.js +14 -24
  56. package/dist/components/fieldset/fieldset.js +17 -17
  57. package/dist/components/flex/flex.js +15 -15
  58. package/dist/components/form-control/form-control-recipe.js +42 -46
  59. package/dist/components/form-control/form-control.js +19 -19
  60. package/dist/components/form-control/form-error-message.js +15 -15
  61. package/dist/components/form-control/form-helper-text.js +15 -15
  62. package/dist/components/form-control/form-label.js +24 -26
  63. package/dist/components/grid/grid-item.js +15 -15
  64. package/dist/components/grid/grid.js +15 -15
  65. package/dist/components/heading/heading.js +24 -23
  66. package/dist/components/highlight/highlight.js +22 -21
  67. package/dist/components/icon/create-icon.js +27 -26
  68. package/dist/components/icon/icons/absence-icon.js +5 -5
  69. package/dist/components/icon/icons/accessibility-icon.js +5 -5
  70. package/dist/components/icon/icons/add-absence-icon.js +5 -5
  71. package/dist/components/icon/icons/add-emoji-icon.js +5 -5
  72. package/dist/components/icon/icons/add-icon.js +5 -5
  73. package/dist/components/icon/icons/apple-icon.js +5 -5
  74. package/dist/components/icon/icons/apps-icon.js +5 -5
  75. package/dist/components/icon/icons/archive-icon.js +6 -6
  76. package/dist/components/icon/icons/area-icon.js +5 -5
  77. package/dist/components/icon/icons/at-icon.js +5 -5
  78. package/dist/components/icon/icons/attachment-icon.js +5 -5
  79. package/dist/components/icon/icons/baby-icon.js +5 -5
  80. package/dist/components/icon/icons/back-icon.js +5 -5
  81. package/dist/components/icon/icons/backspace-icon.js +5 -5
  82. package/dist/components/icon/icons/bank-icon.js +5 -5
  83. package/dist/components/icon/icons/bank-id-icon.js +5 -5
  84. package/dist/components/icon/icons/barcode-icon.js +5 -5
  85. package/dist/components/icon/icons/bell-icon.js +5 -5
  86. package/dist/components/icon/icons/bolt-icon.js +7 -7
  87. package/dist/components/icon/icons/calendar-icon.js +5 -5
  88. package/dist/components/icon/icons/camera-icon.js +5 -5
  89. package/dist/components/icon/icons/cancel-icon.js +5 -5
  90. package/dist/components/icon/icons/card-icon.js +5 -5
  91. package/dist/components/icon/icons/cart-icon.js +5 -5
  92. package/dist/components/icon/icons/caspeco-icon.js +7 -7
  93. package/dist/components/icon/icons/channels-icon.js +5 -5
  94. package/dist/components/icon/icons/chart-icon.js +5 -5
  95. package/dist/components/icon/icons/chart-line-icon.js +5 -5
  96. package/dist/components/icon/icons/chart-mixed-icon.js +5 -5
  97. package/dist/components/icon/icons/chart-pie-icon.js +5 -5
  98. package/dist/components/icon/icons/chart-scatter-icon.js +5 -5
  99. package/dist/components/icon/icons/check-icon.js +5 -5
  100. package/dist/components/icon/icons/checkbox-icon.js +5 -5
  101. package/dist/components/icon/icons/chevron-left-icon.js +5 -5
  102. package/dist/components/icon/icons/chevron-right-icon.js +5 -5
  103. package/dist/components/icon/icons/child-icon.js +5 -5
  104. package/dist/components/icon/icons/circle-info-icon.js +5 -5
  105. package/dist/components/icon/icons/circle-parking-icon.js +5 -5
  106. package/dist/components/icon/icons/circle-question-icon.js +5 -5
  107. package/dist/components/icon/icons/circle-select-icon.js +5 -5
  108. package/dist/components/icon/icons/circle-success-icon.js +5 -5
  109. package/dist/components/icon/icons/circle-user-icon.js +5 -5
  110. package/dist/components/icon/icons/clear-icon.js +5 -5
  111. package/dist/components/icon/icons/close-icon.js +5 -5
  112. package/dist/components/icon/icons/closed-icon.js +5 -5
  113. package/dist/components/icon/icons/collapse-icon.js +5 -5
  114. package/dist/components/icon/icons/color-icon.js +5 -5
  115. package/dist/components/icon/icons/columns-icon.js +5 -5
  116. package/dist/components/icon/icons/comment-add-icon.js +5 -5
  117. package/dist/components/icon/icons/comment-icon.js +5 -5
  118. package/dist/components/icon/icons/cookies-icon.js +5 -5
  119. package/dist/components/icon/icons/copy-icon.js +5 -5
  120. package/dist/components/icon/icons/date-icon.js +5 -5
  121. package/dist/components/icon/icons/decrease-icon.js +4 -4
  122. package/dist/components/icon/icons/delete-icon.js +5 -5
  123. package/dist/components/icon/icons/deliverect-icon.js +5 -5
  124. package/dist/components/icon/icons/delivery-icon.js +5 -5
  125. package/dist/components/icon/icons/description-icon.js +5 -5
  126. package/dist/components/icon/icons/discount-icon.js +5 -5
  127. package/dist/components/icon/icons/distribute-evenly-icon.js +5 -5
  128. package/dist/components/icon/icons/door-closed-icon.js +5 -5
  129. package/dist/components/icon/icons/door-open-icon.js +5 -5
  130. package/dist/components/icon/icons/down-icon.js +5 -5
  131. package/dist/components/icon/icons/eat-in-icon.js +5 -5
  132. package/dist/components/icon/icons/edit-icon.js +5 -5
  133. package/dist/components/icon/icons/email-icon.js +5 -5
  134. package/dist/components/icon/icons/error-icon.js +5 -5
  135. package/dist/components/icon/icons/expand-icon.js +5 -5
  136. package/dist/components/icon/icons/export-icon.js +5 -5
  137. package/dist/components/icon/icons/extract-icon.js +5 -5
  138. package/dist/components/icon/icons/facebook-icon.js +5 -5
  139. package/dist/components/icon/icons/failed-print-icon.js +5 -5
  140. package/dist/components/icon/icons/file-icon.js +5 -5
  141. package/dist/components/icon/icons/filter-icon.js +5 -5
  142. package/dist/components/icon/icons/folder-icon.js +5 -5
  143. package/dist/components/icon/icons/foodora-icon.js +5 -5
  144. package/dist/components/icon/icons/forward-icon.js +5 -5
  145. package/dist/components/icon/icons/glovo-icon.js +7 -7
  146. package/dist/components/icon/icons/goal-icon.js +5 -5
  147. package/dist/components/icon/icons/google-icon.js +5 -5
  148. package/dist/components/icon/icons/grip-more-icon.js +5 -5
  149. package/dist/components/icon/icons/hash-icon.js +5 -5
  150. package/dist/components/icon/icons/hexagon-error-icon.js +5 -5
  151. package/dist/components/icon/icons/hide-icon.js +5 -5
  152. package/dist/components/icon/icons/history-icon.js +5 -5
  153. package/dist/components/icon/icons/icon-picker-anchor-icon.js +5 -5
  154. package/dist/components/icon/icons/icon-picker-asterisk-icon.js +5 -5
  155. package/dist/components/icon/icons/icon-picker-beer-icon.js +5 -5
  156. package/dist/components/icon/icons/icon-picker-bicycle-icon.js +5 -5
  157. package/dist/components/icon/icons/icon-picker-binoculars-icon.js +5 -5
  158. package/dist/components/icon/icons/icon-picker-bomb-icon.js +5 -5
  159. package/dist/components/icon/icons/icon-picker-car-icon.js +5 -5
  160. package/dist/components/icon/icons/icon-picker-cocktail-icon.js +5 -5
  161. package/dist/components/icon/icons/icon-picker-gem-icon.js +5 -5
  162. package/dist/components/icon/icons/icon-picker-heart-full-icon.js +5 -5
  163. package/dist/components/icon/icons/icon-picker-heart-icon.js +5 -5
  164. package/dist/components/icon/icons/icon-picker-magnet-icon.js +5 -5
  165. package/dist/components/icon/icons/icon-picker-money-icon.js +5 -5
  166. package/dist/components/icon/icons/icon-picker-moon-icon.js +5 -5
  167. package/dist/components/icon/icons/icon-picker-music-icon.js +5 -5
  168. package/dist/components/icon/icons/icon-picker-star-full-icon.js +5 -5
  169. package/dist/components/icon/icons/icon-picker-star-half-icon.js +5 -5
  170. package/dist/components/icon/icons/icon-picker-star-icon.js +5 -5
  171. package/dist/components/icon/icons/icon-picker-tint-icon.js +5 -5
  172. package/dist/components/icon/icons/icon-picker-tree-icon.js +5 -5
  173. package/dist/components/icon/icons/icon-picker-utensils-icon.js +5 -5
  174. package/dist/components/icon/icons/icon-picker-wheelchair-icon.js +5 -5
  175. package/dist/components/icon/icons/image-icon.js +5 -5
  176. package/dist/components/icon/icons/import-icon.js +5 -5
  177. package/dist/components/icon/icons/inbox-icon.js +5 -5
  178. package/dist/components/icon/icons/increase-icon.js +5 -5
  179. package/dist/components/icon/icons/indeterminate-icon.js +4 -4
  180. package/dist/components/icon/icons/info-icon.js +5 -5
  181. package/dist/components/icon/icons/inheritance-icon.js +5 -5
  182. package/dist/components/icon/icons/just-eat-icon.js +5 -5
  183. package/dist/components/icon/icons/karma-icon.js +5 -5
  184. package/dist/components/icon/icons/key-command-icon.js +5 -5
  185. package/dist/components/icon/icons/key-enter-icon.js +5 -5
  186. package/dist/components/icon/icons/key-icon.js +5 -5
  187. package/dist/components/icon/icons/key-option-icon.js +5 -5
  188. package/dist/components/icon/icons/language-icon.js +5 -5
  189. package/dist/components/icon/icons/link-broken-icon.js +5 -5
  190. package/dist/components/icon/icons/link-external-icon.js +5 -5
  191. package/dist/components/icon/icons/link-icon.js +5 -5
  192. package/dist/components/icon/icons/list-ol-icon.js +5 -5
  193. package/dist/components/icon/icons/list-ul-icon.js +5 -5
  194. package/dist/components/icon/icons/loading-icon.js +5 -5
  195. package/dist/components/icon/icons/location-icon.js +5 -5
  196. package/dist/components/icon/icons/lock-icon.js +5 -5
  197. package/dist/components/icon/icons/log-in-icon.js +5 -5
  198. package/dist/components/icon/icons/log-out-icon.js +5 -5
  199. package/dist/components/icon/icons/map-icon.js +5 -5
  200. package/dist/components/icon/icons/maximize-icon.js +5 -5
  201. package/dist/components/icon/icons/members-icon.js +5 -5
  202. package/dist/components/icon/icons/menu-hide-icon.js +5 -5
  203. package/dist/components/icon/icons/menu-icon.js +5 -5
  204. package/dist/components/icon/icons/menu-show-icon.js +5 -5
  205. package/dist/components/icon/icons/message-add-icon.js +5 -5
  206. package/dist/components/icon/icons/message-icon.js +5 -5
  207. package/dist/components/icon/icons/message-lines-icon.js +5 -5
  208. package/dist/components/icon/icons/minimize-icon.js +5 -5
  209. package/dist/components/icon/icons/minimize-window-icon.js +5 -5
  210. package/dist/components/icon/icons/mobile-rotate-icon.js +5 -5
  211. package/dist/components/icon/icons/module-accounting-icon.js +5 -5
  212. package/dist/components/icon/icons/module-ai-forecast-icon.js +5 -5
  213. package/dist/components/icon/icons/module-app-icon.js +5 -5
  214. package/dist/components/icon/icons/module-articles-icon.js +5 -5
  215. package/dist/components/icon/icons/module-benchmark-icon.js +5 -5
  216. package/dist/components/icon/icons/module-booking-icon.js +5 -5
  217. package/dist/components/icon/icons/module-cai-icon.js +5 -5
  218. package/dist/components/icon/icons/module-campaigns-icon.js +5 -5
  219. package/dist/components/icon/icons/module-cashier-icon.js +5 -5
  220. package/dist/components/icon/icons/module-communication-icon.js +5 -5
  221. package/dist/components/icon/icons/module-copilot-icon.js +5 -5
  222. package/dist/components/icon/icons/module-dashboard-icon.js +5 -5
  223. package/dist/components/icon/icons/module-document-icon.js +5 -5
  224. package/dist/components/icon/icons/module-employees-icon.js +5 -5
  225. package/dist/components/icon/icons/module-feed-icon.js +5 -5
  226. package/dist/components/icon/icons/module-history-icon.js +5 -5
  227. package/dist/components/icon/icons/module-home-icon.js +5 -5
  228. package/dist/components/icon/icons/module-insights-icon.js +5 -5
  229. package/dist/components/icon/icons/module-kds-icon.js +5 -5
  230. package/dist/components/icon/icons/module-members-icon.js +5 -5
  231. package/dist/components/icon/icons/module-menus-icon.js +5 -5
  232. package/dist/components/icon/icons/module-my-city-icon.js +5 -5
  233. package/dist/components/icon/icons/module-notification-center-icon.js +5 -5
  234. package/dist/components/icon/icons/module-online-order-icon.js +5 -5
  235. package/dist/components/icon/icons/module-organisation-icon.js +5 -5
  236. package/dist/components/icon/icons/module-pos-icon.js +5 -5
  237. package/dist/components/icon/icons/module-pulse-icon.js +5 -5
  238. package/dist/components/icon/icons/module-result-icon.js +5 -5
  239. package/dist/components/icon/icons/module-salary-icon.js +5 -5
  240. package/dist/components/icon/icons/module-schedule-icon.js +5 -5
  241. package/dist/components/icon/icons/module-settings-alt-icon.js +5 -5
  242. package/dist/components/icon/icons/module-settings-icon.js +5 -5
  243. package/dist/components/icon/icons/module-support-icon.js +5 -5
  244. package/dist/components/icon/icons/module-survey-icon.js +5 -5
  245. package/dist/components/icon/icons/module-table-map-icon.js +6 -6
  246. package/dist/components/icon/icons/module-tablet-icon.js +5 -5
  247. package/dist/components/icon/icons/module-time-icon.js +5 -5
  248. package/dist/components/icon/icons/module-timeline-icon.js +5 -5
  249. package/dist/components/icon/icons/module-tip-icon.js +5 -5
  250. package/dist/components/icon/icons/module-to-do-icon.js +5 -5
  251. package/dist/components/icon/icons/module-tools-icon.js +5 -5
  252. package/dist/components/icon/icons/module-top-list-icon.js +5 -5
  253. package/dist/components/icon/icons/module-web-charts-icon.js +5 -5
  254. package/dist/components/icon/icons/module-web-icon.js +5 -5
  255. package/dist/components/icon/icons/more-horizontal-icon.js +5 -5
  256. package/dist/components/icon/icons/more-vertical-icon.js +5 -5
  257. package/dist/components/icon/icons/nfc-icon.js +5 -5
  258. package/dist/components/icon/icons/no-cart-icon.js +5 -5
  259. package/dist/components/icon/icons/note-icon.js +5 -5
  260. package/dist/components/icon/icons/number-icon.js +6 -6
  261. package/dist/components/icon/icons/open-modal-icon.js +5 -5
  262. package/dist/components/icon/icons/parking-icon.js +5 -5
  263. package/dist/components/icon/icons/party-horn-icon.js +5 -5
  264. package/dist/components/icon/icons/paste-icon.js +5 -5
  265. package/dist/components/icon/icons/pause-icon.js +5 -5
  266. package/dist/components/icon/icons/payment-card-icon.js +5 -5
  267. package/dist/components/icon/icons/payment-cash-icon.js +5 -5
  268. package/dist/components/icon/icons/payment-generic-icon.js +5 -5
  269. package/dist/components/icon/icons/payment-giftcard-icon.js +5 -5
  270. package/dist/components/icon/icons/payment-hotel-icon.js +5 -5
  271. package/dist/components/icon/icons/payment-invoice-icon.js +5 -5
  272. package/dist/components/icon/icons/percentage-icon.js +5 -5
  273. package/dist/components/icon/icons/phone-icon.js +5 -5
  274. package/dist/components/icon/icons/pin-icon.js +5 -5
  275. package/dist/components/icon/icons/pin-map-icon.js +5 -5
  276. package/dist/components/icon/icons/play-icon.js +5 -5
  277. package/dist/components/icon/icons/preview-icon.js +5 -5
  278. package/dist/components/icon/icons/print-icon.js +5 -5
  279. package/dist/components/icon/icons/privacy-icon.js +5 -5
  280. package/dist/components/icon/icons/product-admin-icon.js +5 -5
  281. package/dist/components/icon/icons/product-analytics-icon.js +5 -5
  282. package/dist/components/icon/icons/product-booking-icon.js +5 -5
  283. package/dist/components/icon/icons/product-checkout-icon.js +5 -5
  284. package/dist/components/icon/icons/product-my-pages-icon.js +5 -5
  285. package/dist/components/icon/icons/product-staff-icon.js +5 -5
  286. package/dist/components/icon/icons/puck-icon.js +5 -5
  287. package/dist/components/icon/icons/qr-code-icon.js +5 -5
  288. package/dist/components/icon/icons/question-icon.js +5 -5
  289. package/dist/components/icon/icons/radio-icon.js +5 -5
  290. package/dist/components/icon/icons/receipt-icon.js +5 -5
  291. package/dist/components/icon/icons/redo-icon.js +5 -5
  292. package/dist/components/icon/icons/refund-icon.js +5 -5
  293. package/dist/components/icon/icons/remove-icon.js +5 -5
  294. package/dist/components/icon/icons/replace-icon.js +5 -5
  295. package/dist/components/icon/icons/schedule-icon.js +5 -5
  296. package/dist/components/icon/icons/search-icon.js +5 -5
  297. package/dist/components/icon/icons/select-icon.js +4 -4
  298. package/dist/components/icon/icons/send-icon.js +5 -5
  299. package/dist/components/icon/icons/share-icon.js +5 -5
  300. package/dist/components/icon/icons/show-icon.js +5 -5
  301. package/dist/components/icon/icons/shuffle-icon.js +5 -5
  302. package/dist/components/icon/icons/sidebar-hide-icon.js +4 -4
  303. package/dist/components/icon/icons/sidebar-left-icon.js +4 -4
  304. package/dist/components/icon/icons/sidebar-right-icon.js +5 -5
  305. package/dist/components/icon/icons/sidebar-show-icon.js +5 -5
  306. package/dist/components/icon/icons/sliders-icon.js +5 -5
  307. package/dist/components/icon/icons/slightly-sad-icon.js +5 -5
  308. package/dist/components/icon/icons/smile-icon.js +5 -5
  309. package/dist/components/icon/icons/sort-asc-icon.js +5 -5
  310. package/dist/components/icon/icons/sort-desc-icon.js +5 -5
  311. package/dist/components/icon/icons/split-icon.js +5 -5
  312. package/dist/components/icon/icons/status-icon.js +5 -5
  313. package/dist/components/icon/icons/stop-icon.js +5 -5
  314. package/dist/components/icon/icons/submenu-icon.js +5 -5
  315. package/dist/components/icon/icons/success-icon.js +5 -5
  316. package/dist/components/icon/icons/swap-icon.js +5 -5
  317. package/dist/components/icon/icons/swatch-icon.js +5 -5
  318. package/dist/components/icon/icons/sweat-icon.js +5 -5
  319. package/dist/components/icon/icons/table-icon.js +5 -5
  320. package/dist/components/icon/icons/table-map-icon.js +5 -5
  321. package/dist/components/icon/icons/take-away-dot-com-icon.js +5 -5
  322. package/dist/components/icon/icons/take-away-icon.js +5 -5
  323. package/dist/components/icon/icons/talk-icon.js +5 -5
  324. package/dist/components/icon/icons/thumbtack-icon.js +5 -5
  325. package/dist/components/icon/icons/time-icon.js +5 -5
  326. package/dist/components/icon/icons/timeline-icon.js +5 -5
  327. package/dist/components/icon/icons/tip-icon.js +5 -5
  328. package/dist/components/icon/icons/title-icon.js +5 -5
  329. package/dist/components/icon/icons/translate-icon.js +5 -5
  330. package/dist/components/icon/icons/tree-view-collapse-icon.js +4 -4
  331. package/dist/components/icon/icons/tree-view-expand-icon.js +4 -4
  332. package/dist/components/icon/icons/tree-view-last-icon.js +4 -4
  333. package/dist/components/icon/icons/trend-down-icon.js +5 -5
  334. package/dist/components/icon/icons/trend-up-icon.js +5 -5
  335. package/dist/components/icon/icons/triangle-warning-icon.js +5 -5
  336. package/dist/components/icon/icons/trivec-icon.js +6 -6
  337. package/dist/components/icon/icons/uber-eats-icon.js +5 -5
  338. package/dist/components/icon/icons/undo-icon.js +5 -5
  339. package/dist/components/icon/icons/unlock-icon.js +5 -5
  340. package/dist/components/icon/icons/unwrap-content-icon.js +5 -5
  341. package/dist/components/icon/icons/up-icon.js +5 -5
  342. package/dist/components/icon/icons/user-group-icon.js +5 -5
  343. package/dist/components/icon/icons/user-icon.js +5 -5
  344. package/dist/components/icon/icons/user-permissions-icon.js +5 -5
  345. package/dist/components/icon/icons/user-wait-icon.js +5 -5
  346. package/dist/components/icon/icons/users-icon.js +5 -5
  347. package/dist/components/icon/icons/version-control-icon.js +5 -5
  348. package/dist/components/icon/icons/volume-high-icon.js +5 -5
  349. package/dist/components/icon/icons/volume-icon.js +5 -5
  350. package/dist/components/icon/icons/volume-low-icon.js +5 -5
  351. package/dist/components/icon/icons/volume-off-icon.js +5 -5
  352. package/dist/components/icon/icons/warning-icon.js +5 -5
  353. package/dist/components/icon/icons/waste-icon.js +5 -5
  354. package/dist/components/icon/icons/wifi-icon.js +5 -5
  355. package/dist/components/icon/icons/wifi-off-icon.js +5 -5
  356. package/dist/components/icon/icons/wolt-icon.js +5 -5
  357. package/dist/components/icon/icons/wrap-content-icon.js +5 -5
  358. package/dist/components/icon-button/icon-button.js +37 -39
  359. package/dist/components/image/image.js +12 -14
  360. package/dist/components/image-upload/image-cropper.helper.js +74 -82
  361. package/dist/components/image-upload/image-cropper.js +156 -183
  362. package/dist/components/image-upload/image-upload-dropzone.js +134 -112
  363. package/dist/components/image-upload/image-upload-helper.js +15 -19
  364. package/dist/components/image-upload/image-upload-icons.js +52 -20
  365. package/dist/components/image-upload/image-upload-modal.js +131 -106
  366. package/dist/components/image-upload/image-upload.js +96 -86
  367. package/dist/components/image-upload/translations.js +65 -65
  368. package/dist/components/image-upload/types.js +6 -4
  369. package/dist/components/input/helper.js +18 -29
  370. package/dist/components/input/input-addon-recipe.js +37 -43
  371. package/dist/components/input/input-recipe.js +124 -133
  372. package/dist/components/input/input.js +78 -83
  373. package/dist/components/link/link-recipe.js +18 -22
  374. package/dist/components/link/link.js +14 -14
  375. package/dist/components/list/list-item.js +15 -15
  376. package/dist/components/list/list.js +19 -20
  377. package/dist/components/menu/helper.js +12 -16
  378. package/dist/components/menu/menu-box-button.js +22 -18
  379. package/dist/components/menu/menu-button.js +18 -16
  380. package/dist/components/menu/menu-divider.js +31 -28
  381. package/dist/components/menu/menu-group.js +138 -142
  382. package/dist/components/menu/menu-icon-button.js +13 -11
  383. package/dist/components/menu/menu-item.js +44 -45
  384. package/dist/components/menu/menu-list.js +14 -15
  385. package/dist/components/menu/menu-recipe.js +67 -81
  386. package/dist/components/menu/menu.js +34 -41
  387. package/dist/components/message/message.js +52 -38
  388. package/dist/components/modal/modal-body-context.js +6 -7
  389. package/dist/components/modal/modal-body.js +17 -17
  390. package/dist/components/modal/modal-close-button.js +23 -18
  391. package/dist/components/modal/modal-footer.js +29 -32
  392. package/dist/components/modal/modal-header.js +17 -17
  393. package/dist/components/modal/modal-recipe.js +110 -141
  394. package/dist/components/modal/modal.js +54 -58
  395. package/dist/components/navigation-list/navigation-list-item.js +76 -88
  396. package/dist/components/navigation-list/navigation-list.js +23 -17
  397. package/dist/components/paginator/paginator-recipe.js +34 -40
  398. package/dist/components/paginator/paginator.js +65 -70
  399. package/dist/components/paginator/translations.js +35 -35
  400. package/dist/components/phone-input/country-data.d.ts +1 -1
  401. package/dist/components/phone-input/country-data.d.ts.map +1 -1
  402. package/dist/components/phone-input/country-data.js +31 -36
  403. package/dist/components/phone-input/country-list.d.ts +1 -1
  404. package/dist/components/phone-input/country-list.d.ts.map +1 -1
  405. package/dist/components/phone-input/country-list.js +46 -25
  406. package/dist/components/phone-input/country-selector.d.ts +1 -1
  407. package/dist/components/phone-input/country-selector.d.ts.map +1 -1
  408. package/dist/components/phone-input/country-selector.js +167 -115
  409. package/dist/components/phone-input/phone-input-helpers.d.ts +1 -1
  410. package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
  411. package/dist/components/phone-input/phone-input-helpers.js +91 -119
  412. package/dist/components/phone-input/phone-input.js +47 -42
  413. package/dist/components/phone-input/translations.js +53 -53
  414. package/dist/components/phone-input/types.d.ts +1 -1
  415. package/dist/components/phone-input/types.d.ts.map +1 -1
  416. package/dist/components/phone-input/use-phone-input.d.ts +1 -1
  417. package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
  418. package/dist/components/phone-input/use-phone-input.js +110 -137
  419. package/dist/components/quantity-button/minus-button.js +18 -16
  420. package/dist/components/quantity-button/plus-button.js +18 -16
  421. package/dist/components/quantity-button/quantity-button.js +72 -40
  422. package/dist/components/radio/check-icon.js +5 -5
  423. package/dist/components/radio/hover-styles.js +21 -36
  424. package/dist/components/radio/radio-group-context.js +5 -6
  425. package/dist/components/radio/radio-group-recipe.js +124 -142
  426. package/dist/components/radio/radio-group.js +30 -28
  427. package/dist/components/radio/radio.js +72 -55
  428. package/dist/components/radio-card/hover-styles.js +21 -36
  429. package/dist/components/radio-card/radio-card-group.js +24 -25
  430. package/dist/components/radio-card/radio-card.js +87 -67
  431. package/dist/components/rich-text-editor/boolean-control.js +51 -54
  432. package/dist/components/rich-text-editor/extensions.js +39 -34
  433. package/dist/components/rich-text-editor/index.js +26 -22
  434. package/dist/components/rich-text-editor/rich-text-editor-context.js +9 -11
  435. package/dist/components/rich-text-editor/rich-text-editor-control.js +290 -284
  436. package/dist/components/rich-text-editor/rich-text-editor-recipe.js +71 -83
  437. package/dist/components/rich-text-editor/rich-text-editor.js +72 -69
  438. package/dist/components/rich-text-editor/rich-text-renderer.js +32 -32
  439. package/dist/components/rich-text-editor/translations.js +119 -119
  440. package/dist/components/rich-text-editor/use-rich-text-editor.js +22 -29
  441. package/dist/components/segmented-control/segmented-control-item.js +24 -25
  442. package/dist/components/segmented-control/segmented-control.js +49 -40
  443. package/dist/components/select/select-recipe.js +91 -106
  444. package/dist/components/select/select.js +27 -29
  445. package/dist/components/skeleton/skeleton-text.js +18 -19
  446. package/dist/components/skeleton/skeleton.js +19 -20
  447. package/dist/components/spinner/spinner.js +44 -28
  448. package/dist/components/stack/stack.js +18 -18
  449. package/dist/components/stepper/check-icon.js +5 -5
  450. package/dist/components/stepper/step-context.js +5 -5
  451. package/dist/components/stepper/step.js +111 -106
  452. package/dist/components/stepper/stepper.js +42 -43
  453. package/dist/components/stepper/times-icon.js +5 -5
  454. package/dist/components/switch/hover-styles.js +30 -44
  455. package/dist/components/switch/switch-recipe.js +76 -84
  456. package/dist/components/switch/switch.d.ts +3 -3
  457. package/dist/components/switch/switch.d.ts.map +1 -1
  458. package/dist/components/switch/switch.js +30 -31
  459. package/dist/components/switch/types.d.ts +4 -2
  460. package/dist/components/switch/types.d.ts.map +1 -1
  461. package/dist/components/table/helper.d.ts +6 -0
  462. package/dist/components/table/helper.d.ts.map +1 -1
  463. package/dist/components/table/helper.js +29 -9
  464. package/dist/components/table/index.d.ts +1 -1
  465. package/dist/components/table/index.d.ts.map +1 -1
  466. package/dist/components/table/table-cell.d.ts.map +1 -1
  467. package/dist/components/table/table-cell.js +136 -122
  468. package/dist/components/table/table-column-resize-handle.d.ts +12 -0
  469. package/dist/components/table/table-column-resize-handle.d.ts.map +1 -0
  470. package/dist/components/table/table-column-resize-handle.js +69 -0
  471. package/dist/components/table/table-content.d.ts.map +1 -1
  472. package/dist/components/table/table-content.js +174 -98
  473. package/dist/components/table/table-context-provider.d.ts +7 -2
  474. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  475. package/dist/components/table/table-context-provider.js +203 -151
  476. package/dist/components/table/table-context.d.ts +24 -0
  477. package/dist/components/table/table-context.d.ts.map +1 -1
  478. package/dist/components/table/table-context.js +18 -11
  479. package/dist/components/table/table-filter.js +170 -118
  480. package/dist/components/table/table-header-dropdown.js +131 -89
  481. package/dist/components/table/table-header-row.d.ts.map +1 -1
  482. package/dist/components/table/table-header-row.js +202 -140
  483. package/dist/components/table/table-recipe.d.ts.map +1 -1
  484. package/dist/components/table/table-recipe.js +75 -96
  485. package/dist/components/table/table-row-expand-toggle-button.js +28 -35
  486. package/dist/components/table/table-row.d.ts.map +1 -1
  487. package/dist/components/table/table-row.js +51 -41
  488. package/dist/components/table/table-toolbar-actions.js +19 -19
  489. package/dist/components/table/table-toolbar-add-button.js +18 -13
  490. package/dist/components/table/table-toolbar-search.js +17 -12
  491. package/dist/components/table/table-toolbar-settings.js +180 -133
  492. package/dist/components/table/table-toolbar.js +72 -51
  493. package/dist/components/table/table.composition.d.ts +1 -0
  494. package/dist/components/table/table.composition.d.ts.map +1 -1
  495. package/dist/components/table/table.constants.d.ts +4 -0
  496. package/dist/components/table/table.constants.d.ts.map +1 -1
  497. package/dist/components/table/table.constants.js +9 -4
  498. package/dist/components/table/table.d.ts +1 -1
  499. package/dist/components/table/table.d.ts.map +1 -1
  500. package/dist/components/table/table.js +41 -37
  501. package/dist/components/table/translations.d.ts +7 -0
  502. package/dist/components/table/translations.d.ts.map +1 -1
  503. package/dist/components/table/translations.js +199 -194
  504. package/dist/components/table/types.d.ts +33 -2
  505. package/dist/components/table/types.d.ts.map +1 -1
  506. package/dist/components/tabs/tab-list.js +16 -17
  507. package/dist/components/tabs/tab-panel.js +14 -14
  508. package/dist/components/tabs/tab-panels.js +15 -15
  509. package/dist/components/tabs/tab-with-image.js +60 -53
  510. package/dist/components/tabs/tab.js +26 -22
  511. package/dist/components/tabs/tabs-recipe.js +96 -116
  512. package/dist/components/tabs/tabs.js +25 -24
  513. package/dist/components/tag/tag-recipe.js +225 -252
  514. package/dist/components/tag/tag.js +121 -62
  515. package/dist/components/text/text-recipe.js +3 -8
  516. package/dist/components/text/text.js +26 -27
  517. package/dist/components/textarea/textarea-recipe.js +90 -96
  518. package/dist/components/textarea/textarea.js +19 -19
  519. package/dist/components/toaster/toast-store.d.ts +2 -2
  520. package/dist/components/toaster/toast-store.d.ts.map +1 -1
  521. package/dist/components/toaster/toast-store.js +25 -32
  522. package/dist/components/toaster/toaster.js +39 -34
  523. package/dist/components/toggle-button/toggle-button.js +23 -25
  524. package/dist/components/toggle-button/use-button-children.js +36 -35
  525. package/dist/components/tooltip/tooltip.js +43 -47
  526. package/dist/hooks/use-color-mode.js +17 -22
  527. package/dist/hooks/use-disclosure.js +10 -13
  528. package/dist/hooks/use-measured-width.js +21 -21
  529. package/dist/hooks/use-remove-attributes.js +25 -24
  530. package/dist/index.js +396 -802
  531. package/dist/node_modules/@dnd-kit/abstract/index.js +658 -1185
  532. package/dist/node_modules/@dnd-kit/collision/dist/index.js +51 -90
  533. package/dist/node_modules/@dnd-kit/dom/index.js +1256 -1518
  534. package/dist/node_modules/@dnd-kit/dom/sortable.js +529 -654
  535. package/dist/node_modules/@dnd-kit/dom/utilities.js +772 -940
  536. package/dist/node_modules/@dnd-kit/geometry/dist/index.js +228 -196
  537. package/dist/node_modules/@dnd-kit/react/hooks.js +51 -63
  538. package/dist/node_modules/@dnd-kit/react/index.js +175 -235
  539. package/dist/node_modules/@dnd-kit/react/sortable.js +67 -142
  540. package/dist/node_modules/@dnd-kit/react/utilities.js +7 -9
  541. package/dist/node_modules/@dnd-kit/state/dist/index.js +157 -172
  542. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +154 -243
  543. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +294 -369
  544. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +95 -133
  545. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +96 -122
  546. package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +249 -264
  547. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +34 -88
  548. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +74 -88
  549. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1463 -1822
  550. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +633 -768
  551. package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +30 -32
  552. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +35 -48
  553. package/dist/node_modules/@tiptap/core/dist/index.js +3433 -3946
  554. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +19 -19
  555. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +73 -1498
  556. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +71 -84
  557. package/dist/node_modules/@tiptap/extension-code/dist/index.js +65 -70
  558. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +155 -216
  559. package/dist/node_modules/@tiptap/extension-document/dist/index.js +9 -11
  560. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +48 -60
  561. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +65 -66
  562. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +47 -55
  563. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +68 -82
  564. package/dist/node_modules/@tiptap/extension-link/dist/index.js +365 -334
  565. package/dist/node_modules/@tiptap/extension-list/dist/index.js +936 -1105
  566. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +43 -48
  567. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +53 -65
  568. package/dist/node_modules/@tiptap/extension-text/dist/index.js +12 -12
  569. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +60 -64
  570. package/dist/node_modules/@tiptap/extensions/dist/index.js +439 -462
  571. package/dist/node_modules/@tiptap/react/dist/index.js +314 -0
  572. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +23 -24
  573. package/dist/node_modules/country-flag-icons/modules/countries.json.js +4 -4
  574. package/dist/node_modules/country-flag-icons/modules/hasFlag.js +6 -6
  575. package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +5469 -6298
  576. package/dist/node_modules/country-flag-icons/react/3x2/index.js +273 -269
  577. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
  578. package/dist/node_modules/date-fns/_lib/defaultOptions.js +6 -6
  579. package/dist/node_modules/date-fns/_lib/format/formatters.js +385 -544
  580. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +42 -57
  581. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +37 -48
  582. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
  583. package/dist/node_modules/date-fns/_lib/normalizeDates.js +6 -9
  584. package/dist/node_modules/date-fns/_lib/protectedTokens.js +19 -16
  585. package/dist/node_modules/date-fns/addDays.js +8 -8
  586. package/dist/node_modules/date-fns/addMonths.js +11 -18
  587. package/dist/node_modules/date-fns/addWeeks.js +6 -6
  588. package/dist/node_modules/date-fns/constants.js +10 -6
  589. package/dist/node_modules/date-fns/constructFrom.js +6 -6
  590. package/dist/node_modules/date-fns/constructNow.js +6 -6
  591. package/dist/node_modules/date-fns/differenceInCalendarDays.js +10 -14
  592. package/dist/node_modules/date-fns/endOfDay.js +7 -7
  593. package/dist/node_modules/date-fns/endOfMonth.js +7 -7
  594. package/dist/node_modules/date-fns/format.js +57 -55
  595. package/dist/node_modules/date-fns/getDayOfYear.js +9 -9
  596. package/dist/node_modules/date-fns/getISOWeek.js +10 -10
  597. package/dist/node_modules/date-fns/getISOWeekYear.js +13 -13
  598. package/dist/node_modules/date-fns/getWeek.js +10 -10
  599. package/dist/node_modules/date-fns/getWeekYear.js +14 -14
  600. package/dist/node_modules/date-fns/isBefore.js +6 -6
  601. package/dist/node_modules/date-fns/isDate.js +5 -5
  602. package/dist/node_modules/date-fns/isPast.js +6 -6
  603. package/dist/node_modules/date-fns/isSameDay.js +8 -12
  604. package/dist/node_modules/date-fns/isSameMonth.js +7 -11
  605. package/dist/node_modules/date-fns/isSameWeek.js +8 -12
  606. package/dist/node_modules/date-fns/isSameYear.js +7 -11
  607. package/dist/node_modules/date-fns/isToday.js +7 -10
  608. package/dist/node_modules/date-fns/isValid.js +7 -7
  609. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
  610. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
  611. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
  612. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -14
  613. package/dist/node_modules/date-fns/locale/da/_lib/formatDistance.js +68 -69
  614. package/dist/node_modules/date-fns/locale/da/_lib/formatLong.js +31 -32
  615. package/dist/node_modules/date-fns/locale/da/_lib/formatRelative.js +11 -11
  616. package/dist/node_modules/date-fns/locale/da/_lib/localize.js +193 -142
  617. package/dist/node_modules/date-fns/locale/da/_lib/match.js +123 -109
  618. package/dist/node_modules/date-fns/locale/da.js +17 -17
  619. package/dist/node_modules/date-fns/locale/en-GB/_lib/formatLong.js +31 -32
  620. package/dist/node_modules/date-fns/locale/en-GB.js +18 -18
  621. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
  622. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
  623. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
  624. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
  625. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
  626. package/dist/node_modules/date-fns/locale/en-US.js +18 -18
  627. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +68 -69
  628. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +31 -32
  629. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -18
  630. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +192 -141
  631. package/dist/node_modules/date-fns/locale/es/_lib/match.js +127 -114
  632. package/dist/node_modules/date-fns/locale/es.js +18 -18
  633. package/dist/node_modules/date-fns/locale/et/_lib/formatDistance.js +161 -162
  634. package/dist/node_modules/date-fns/locale/et/_lib/formatLong.js +31 -32
  635. package/dist/node_modules/date-fns/locale/et/_lib/formatRelative.js +11 -11
  636. package/dist/node_modules/date-fns/locale/et/_lib/localize.js +196 -152
  637. package/dist/node_modules/date-fns/locale/et/_lib/match.js +109 -107
  638. package/dist/node_modules/date-fns/locale/et.js +19 -19
  639. package/dist/node_modules/date-fns/locale/fi/_lib/formatDistance.js +101 -101
  640. package/dist/node_modules/date-fns/locale/fi/_lib/formatLong.js +31 -32
  641. package/dist/node_modules/date-fns/locale/fi/_lib/formatRelative.js +11 -11
  642. package/dist/node_modules/date-fns/locale/fi/_lib/localize.js +192 -140
  643. package/dist/node_modules/date-fns/locale/fi/_lib/match.js +122 -108
  644. package/dist/node_modules/date-fns/locale/fi.js +18 -18
  645. package/dist/node_modules/date-fns/locale/fr/_lib/formatDistance.js +68 -69
  646. package/dist/node_modules/date-fns/locale/fr/_lib/formatLong.js +31 -32
  647. package/dist/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -11
  648. package/dist/node_modules/date-fns/locale/fr/_lib/localize.js +176 -120
  649. package/dist/node_modules/date-fns/locale/fr/_lib/match.js +122 -108
  650. package/dist/node_modules/date-fns/locale/fr.js +18 -18
  651. package/dist/node_modules/date-fns/locale/lt/_lib/formatDistance.js +93 -109
  652. package/dist/node_modules/date-fns/locale/lt/_lib/formatLong.js +31 -32
  653. package/dist/node_modules/date-fns/locale/lt/_lib/formatRelative.js +11 -11
  654. package/dist/node_modules/date-fns/locale/lt/_lib/localize.js +298 -195
  655. package/dist/node_modules/date-fns/locale/lt/_lib/match.js +154 -121
  656. package/dist/node_modules/date-fns/locale/lt.js +19 -19
  657. package/dist/node_modules/date-fns/locale/lv/_lib/formatDistance.js +226 -120
  658. package/dist/node_modules/date-fns/locale/lv/_lib/formatLong.js +31 -32
  659. package/dist/node_modules/date-fns/locale/lv/_lib/formatRelative.js +22 -22
  660. package/dist/node_modules/date-fns/locale/lv/_lib/localize.js +298 -221
  661. package/dist/node_modules/date-fns/locale/lv/_lib/match.js +138 -112
  662. package/dist/node_modules/date-fns/locale/lv.js +18 -18
  663. package/dist/node_modules/date-fns/locale/nb/_lib/formatDistance.js +68 -69
  664. package/dist/node_modules/date-fns/locale/nb/_lib/formatLong.js +31 -32
  665. package/dist/node_modules/date-fns/locale/nb/_lib/formatRelative.js +11 -11
  666. package/dist/node_modules/date-fns/locale/nb/_lib/localize.js +159 -108
  667. package/dist/node_modules/date-fns/locale/nb/_lib/match.js +112 -108
  668. package/dist/node_modules/date-fns/locale/nb.js +18 -18
  669. package/dist/node_modules/date-fns/locale/nl/_lib/formatDistance.js +68 -69
  670. package/dist/node_modules/date-fns/locale/nl/_lib/formatLong.js +31 -32
  671. package/dist/node_modules/date-fns/locale/nl/_lib/formatRelative.js +11 -11
  672. package/dist/node_modules/date-fns/locale/nl/_lib/localize.js +160 -109
  673. package/dist/node_modules/date-fns/locale/nl/_lib/match.js +120 -108
  674. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js +68 -69
  675. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js +31 -32
  676. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js +11 -11
  677. package/dist/node_modules/date-fns/locale/nl-BE/_lib/localize.js +160 -109
  678. package/dist/node_modules/date-fns/locale/nl-BE/_lib/match.js +120 -108
  679. package/dist/node_modules/date-fns/locale/nl-BE.js +18 -18
  680. package/dist/node_modules/date-fns/locale/nl.js +18 -18
  681. package/dist/node_modules/date-fns/locale/sv/_lib/formatDistance.js +82 -86
  682. package/dist/node_modules/date-fns/locale/sv/_lib/formatLong.js +31 -32
  683. package/dist/node_modules/date-fns/locale/sv/_lib/formatRelative.js +11 -11
  684. package/dist/node_modules/date-fns/locale/sv/_lib/localize.js +199 -142
  685. package/dist/node_modules/date-fns/locale/sv/_lib/match.js +109 -107
  686. package/dist/node_modules/date-fns/locale/sv.js +18 -18
  687. package/dist/node_modules/date-fns/startOfDay.js +7 -7
  688. package/dist/node_modules/date-fns/startOfISOWeek.js +9 -6
  689. package/dist/node_modules/date-fns/startOfISOWeekYear.js +9 -9
  690. package/dist/node_modules/date-fns/startOfMonth.js +7 -7
  691. package/dist/node_modules/date-fns/startOfWeek.js +8 -8
  692. package/dist/node_modules/date-fns/startOfWeekYear.js +10 -10
  693. package/dist/node_modules/date-fns/startOfYear.js +7 -7
  694. package/dist/node_modules/date-fns/subDays.js +6 -6
  695. package/dist/node_modules/date-fns/subMonths.js +6 -6
  696. package/dist/node_modules/date-fns/subWeeks.js +6 -6
  697. package/dist/node_modules/date-fns/toDate.js +6 -6
  698. package/dist/node_modules/fast-equals/dist/es/index.js +239 -298
  699. package/dist/node_modules/libphonenumber-js/es6-modern/ParseError.js +8 -0
  700. package/dist/node_modules/libphonenumber-js/es6-modern/PhoneNumber.js +73 -0
  701. package/dist/node_modules/libphonenumber-js/es6-modern/constants.js +4 -0
  702. package/dist/node_modules/libphonenumber-js/es6-modern/format.js +77 -0
  703. package/dist/node_modules/libphonenumber-js/es6-modern/getCountries.js +7 -0
  704. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/RFC3966.js +8 -0
  705. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/applyInternationalSeparatorStyle.js +7 -0
  706. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/checkNumberLength.js +21 -0
  707. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extension/createExtensionPattern.js +9 -0
  708. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extension/extractExtension.js +17 -0
  709. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractCountryCallingCode.js +37 -0
  710. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +21 -0
  711. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +21 -0
  712. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractNationalNumber.js +27 -0
  713. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +27 -0
  714. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/extractPhoneContext.js +16 -0
  715. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/formatNationalNumberUsingFormat.js +9 -0
  716. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getCountryAndCallingCodeFromOneOfThem.js +12 -0
  717. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getCountryByCallingCode.js +8 -0
  718. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getCountryByNationalNumber.js +14 -0
  719. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getIddPrefix.js +10 -0
  720. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getNumberType.js +30 -0
  721. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/getPossibleCountriesForNumber.js +12 -0
  722. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/isCallingCode.js +7 -0
  723. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/isCountryCode.js +7 -0
  724. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/isObject.js +7 -0
  725. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/isViablePhoneNumber.js +12 -0
  726. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/matchesEntirely.js +6 -0
  727. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/mergeArrays.js +8 -0
  728. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/parseDigits.js +48 -0
  729. package/dist/node_modules/libphonenumber-js/es6-modern/helpers/stripIddPrefix.js +16 -0
  730. package/dist/node_modules/libphonenumber-js/es6-modern/isPossible.js +32 -0
  731. package/dist/node_modules/libphonenumber-js/es6-modern/isValid.js +13 -0
  732. package/dist/node_modules/libphonenumber-js/es6-modern/isValidPhoneNumber.js +20 -0
  733. package/dist/node_modules/libphonenumber-js/es6-modern/metadata.js +254 -0
  734. package/dist/node_modules/libphonenumber-js/es6-modern/normalizeArguments.js +26 -0
  735. package/dist/node_modules/libphonenumber-js/es6-modern/parse.js +100 -0
  736. package/dist/node_modules/libphonenumber-js/es6-modern/parseIncompletePhoneNumber.js +19 -0
  737. package/dist/node_modules/libphonenumber-js/es6-modern/parsePhoneNumber.js +9 -0
  738. package/dist/node_modules/libphonenumber-js/es6-modern/parsePhoneNumberWithError_.js +16 -0
  739. package/dist/node_modules/libphonenumber-js/es6-modern/parsePhoneNumber_.js +24 -0
  740. package/dist/node_modules/libphonenumber-js/es6-modern/tools/semver-compare.js +14 -0
  741. package/dist/node_modules/libphonenumber-js/max/es6/exports/PhoneNumber.js +10 -0
  742. package/dist/node_modules/libphonenumber-js/max/es6/exports/getCountries.js +8 -0
  743. package/dist/node_modules/libphonenumber-js/max/es6/exports/getCountryCallingCode.js +8 -0
  744. package/dist/node_modules/libphonenumber-js/max/es6/exports/isSupportedCountry.js +8 -0
  745. package/dist/node_modules/libphonenumber-js/max/es6/exports/isValidPhoneNumber.js +8 -0
  746. package/dist/node_modules/libphonenumber-js/max/es6/exports/parsePhoneNumber.js +9 -0
  747. package/dist/node_modules/libphonenumber-js/max/es6/exports/withMetadataArgument.js +10 -0
  748. package/dist/node_modules/libphonenumber-js/metadata.max.json.js +10497 -0
  749. package/dist/node_modules/linkifyjs/dist/linkify.js +486 -679
  750. package/dist/node_modules/next-themes/dist/index.js +120 -85
  751. package/dist/node_modules/orderedmap/dist/index.js +64 -100
  752. package/dist/node_modules/prosemirror-commands/dist/index.js +313 -368
  753. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +109 -84
  754. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +162 -195
  755. package/dist/node_modules/prosemirror-history/dist/index.js +203 -239
  756. package/dist/node_modules/prosemirror-keymap/dist/index.js +45 -57
  757. package/dist/node_modules/prosemirror-model/dist/index.js +1783 -2735
  758. package/dist/node_modules/prosemirror-schema-list/dist/index.js +66 -81
  759. package/dist/node_modules/prosemirror-state/dist/index.js +517 -814
  760. package/dist/node_modules/prosemirror-transform/dist/index.js +1104 -1505
  761. package/dist/node_modules/prosemirror-view/dist/index.js +3274 -3782
  762. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +15 -21
  763. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +12 -14
  764. package/dist/node_modules/react/compiler-runtime.js +10 -10
  765. package/dist/node_modules/rope-sequence/dist/index.js +82 -99
  766. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +55 -58
  767. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +53 -57
  768. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +53 -58
  769. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +45 -46
  770. package/dist/node_modules/use-sync-external-store/shim/index.js +10 -10
  771. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -10
  772. package/dist/node_modules/w3c-keyname/index.js +87 -92
  773. package/dist/theme/component-recipes.js +52 -53
  774. package/dist/theme/theme-casper-ui.js +179 -420
  775. package/dist/theme/theme-helper.js +4 -4
  776. package/dist/theme/theme-provider.js +33 -34
  777. package/dist/theme/theme-style-props.d.ts.map +1 -1
  778. package/dist/theme/theme-tokens.js +22 -12
  779. package/dist/theme/theme-types.js +22 -12
  780. package/dist/theme/theme.js +213 -268
  781. package/package.json +30 -29
  782. package/dist/_virtual/compiler-runtime.js +0 -5
  783. package/dist/_virtual/compiler-runtime2.js +0 -4
  784. package/dist/_virtual/index.js +0 -5
  785. package/dist/_virtual/index2.js +0 -4
  786. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  787. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  788. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
  789. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
  790. package/dist/_virtual/with-selector.development.js +0 -4
  791. package/dist/_virtual/with-selector.js +0 -5
  792. package/dist/_virtual/with-selector.production.js +0 -4
  793. package/dist/_virtual/with-selector2.js +0 -4
  794. package/dist/node_modules/libphonenumber-js/es6/ParseError.js +0 -89
  795. package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -192
  796. package/dist/node_modules/libphonenumber-js/es6/constants.js +0 -10
  797. package/dist/node_modules/libphonenumber-js/es6/format.js +0 -98
  798. package/dist/node_modules/libphonenumber-js/es6/getCountries.js +0 -7
  799. package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -11
  800. package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -7
  801. package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -16
  802. package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -11
  803. package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -18
  804. package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -46
  805. package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -27
  806. package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -23
  807. package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -39
  808. package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -31
  809. package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -23
  810. package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -25
  811. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +0 -12
  812. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -9
  813. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +0 -43
  814. package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -12
  815. package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -52
  816. package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -14
  817. package/dist/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +0 -7
  818. package/dist/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +0 -7
  819. package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -7
  820. package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -20
  821. package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -6
  822. package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -79
  823. package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -19
  824. package/dist/node_modules/libphonenumber-js/es6/isPossible.js +0 -35
  825. package/dist/node_modules/libphonenumber-js/es6/isValid.js +0 -14
  826. package/dist/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +0 -59
  827. package/dist/node_modules/libphonenumber-js/es6/metadata.js +0 -494
  828. package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -108
  829. package/dist/node_modules/libphonenumber-js/es6/parse.js +0 -138
  830. package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -40
  831. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -9
  832. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -55
  833. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -62
  834. package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -14
  835. package/dist/node_modules/libphonenumber-js/metadata.min.json.js +0 -4
  836. package/dist/node_modules/libphonenumber-js/min/exports/getCountries.js +0 -8
  837. package/dist/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js +0 -8
  838. package/dist/node_modules/libphonenumber-js/min/exports/isSupportedCountry.js +0 -8
  839. package/dist/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +0 -8
  840. package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -8
  841. package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -8
  842. package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +0 -506
@@ -1,248 +1,212 @@
1
- import P from "../../rope-sequence/dist/index.js";
2
- import { Mapping as k } from "../../prosemirror-transform/dist/index.js";
3
- import { Plugin as H, PluginKey as O } from "../../prosemirror-state/dist/index.js";
4
- const D = 500;
5
- class c {
6
- constructor(t, e) {
7
- this.items = t, this.eventCount = e;
8
- }
9
- // Pop the latest event off the branch's history and apply it
10
- // to a document transform.
11
- popEvent(t, e) {
12
- if (this.eventCount == 0)
13
- return null;
14
- let i = this.items.length;
15
- for (; ; i--)
16
- if (this.items.get(i - 1).selection) {
17
- --i;
18
- break;
19
- }
20
- let s, p;
21
- e && (s = this.remapping(i, this.items.length), p = s.maps.length);
22
- let l = t.tr, r, m, u = [], f = [];
23
- return this.items.forEach((a, o) => {
24
- if (!a.step) {
25
- s || (s = this.remapping(i, o + 1), p = s.maps.length), p--, f.push(a);
26
- return;
27
- }
28
- if (s) {
29
- f.push(new g(a.map));
30
- let d = a.step.map(s.slice(p)), v;
31
- d && l.maybeStep(d).doc && (v = l.mapping.maps[l.mapping.maps.length - 1], u.push(new g(v, void 0, void 0, u.length + f.length))), p--, v && s.appendMap(v, p);
32
- } else
33
- l.maybeStep(a.step);
34
- if (a.selection)
35
- return r = s ? a.selection.map(s.slice(p)) : a.selection, m = new c(this.items.slice(0, i).append(f.reverse().concat(u)), this.eventCount - 1), !1;
36
- }, this.items.length, 0), { remaining: m, transform: l, selection: r };
37
- }
38
- // Create a new branch with the given transform added.
39
- addTransform(t, e, i, s) {
40
- let p = [], l = this.eventCount, r = this.items, m = !s && r.length ? r.get(r.length - 1) : null;
41
- for (let f = 0; f < t.steps.length; f++) {
42
- let a = t.steps[f].invert(t.docs[f]), o = new g(t.mapping.maps[f], a, e), d;
43
- (d = m && m.merge(o)) && (o = d, f ? p.pop() : r = r.slice(0, r.length - 1)), p.push(o), e && (l++, e = void 0), s || (m = o);
44
- }
45
- let u = l - i.depth;
46
- return u > y && (r = x(r, u), l -= u), new c(r.append(p), l);
47
- }
48
- remapping(t, e) {
49
- let i = new k();
50
- return this.items.forEach((s, p) => {
51
- let l = s.mirrorOffset != null && p - s.mirrorOffset >= t ? i.maps.length - s.mirrorOffset : void 0;
52
- i.appendMap(s.map, l);
53
- }, t, e), i;
54
- }
55
- addMaps(t) {
56
- return this.eventCount == 0 ? this : new c(this.items.append(t.map((e) => new g(e))), this.eventCount);
57
- }
58
- // When the collab module receives remote changes, the history has
59
- // to know about those, so that it can adjust the steps that were
60
- // rebased on top of the remote changes, and include the position
61
- // maps for the remote changes in its array of items.
62
- rebased(t, e) {
63
- if (!this.eventCount)
64
- return this;
65
- let i = [], s = Math.max(0, this.items.length - e), p = t.mapping, l = t.steps.length, r = this.eventCount;
66
- this.items.forEach((o) => {
67
- o.selection && r--;
68
- }, s);
69
- let m = e;
70
- this.items.forEach((o) => {
71
- let d = p.getMirror(--m);
72
- if (d == null)
73
- return;
74
- l = Math.min(l, d);
75
- let v = p.maps[d];
76
- if (o.step) {
77
- let S = t.steps[d].invert(t.docs[d]), E = o.selection && o.selection.map(p.slice(m + 1, d));
78
- E && r++, i.push(new g(v, S, E));
79
- } else
80
- i.push(new g(v));
81
- }, s);
82
- let u = [];
83
- for (let o = e; o < l; o++)
84
- u.push(new g(p.maps[o]));
85
- let f = this.items.slice(0, s).append(u).append(i), a = new c(f, r);
86
- return a.emptyItemCount() > D && (a = a.compress(this.items.length - i.length)), a;
87
- }
88
- emptyItemCount() {
89
- let t = 0;
90
- return this.items.forEach((e) => {
91
- e.step || t++;
92
- }), t;
93
- }
94
- // Compressing a branch means rewriting it to push the air (map-only
95
- // items) out. During collaboration, these naturally accumulate
96
- // because each remote change adds one. The `upto` argument is used
97
- // to ensure that only the items below a given level are compressed,
98
- // because `rebased` relies on a clean, untouched set of items in
99
- // order to associate old items with rebased steps.
100
- compress(t = this.items.length) {
101
- let e = this.remapping(0, t), i = e.maps.length, s = [], p = 0;
102
- return this.items.forEach((l, r) => {
103
- if (r >= t)
104
- s.push(l), l.selection && p++;
105
- else if (l.step) {
106
- let m = l.step.map(e.slice(i)), u = m && m.getMap();
107
- if (i--, u && e.appendMap(u, i), m) {
108
- let f = l.selection && l.selection.map(e.slice(i));
109
- f && p++;
110
- let a = new g(u.invert(), m, f), o, d = s.length - 1;
111
- (o = s.length && s[d].merge(a)) ? s[d] = o : s.push(a);
112
- }
113
- } else l.map && i--;
114
- }, this.items.length, 0), new c(P.from(s.reverse()), p);
115
- }
116
- }
117
- c.empty = new c(P.empty, 0);
118
- function x(n, t) {
119
- let e;
120
- return n.forEach((i, s) => {
121
- if (i.selection && t-- == 0)
122
- return e = s, !1;
123
- }), n.slice(e);
124
- }
125
- class g {
126
- constructor(t, e, i, s) {
127
- this.map = t, this.step = e, this.selection = i, this.mirrorOffset = s;
128
- }
129
- merge(t) {
130
- if (this.step && t.step && !t.selection) {
131
- let e = t.step.merge(this.step);
132
- if (e)
133
- return new g(e.getMap().invert(), e, this.selection);
134
- }
135
- }
136
- }
137
- class h {
138
- constructor(t, e, i, s, p) {
139
- this.done = t, this.undone = e, this.prevRanges = i, this.prevTime = s, this.prevComposition = p;
140
- }
1
+ import { Mapping as e } from "../../prosemirror-transform/dist/index.js";
2
+ import { Plugin as t, PluginKey as n } from "../../prosemirror-state/dist/index.js";
3
+ import r from "../../rope-sequence/dist/index.js";
4
+ //#region ../../node_modules/prosemirror-history/dist/index.js
5
+ var i = 500, a = class t {
6
+ constructor(e, t) {
7
+ this.items = e, this.eventCount = t;
8
+ }
9
+ popEvent(e, n) {
10
+ if (this.eventCount == 0) return null;
11
+ let r = this.items.length;
12
+ for (;; r--) if (this.items.get(r - 1).selection) {
13
+ --r;
14
+ break;
15
+ }
16
+ let i, a;
17
+ n && (i = this.remapping(r, this.items.length), a = i.maps.length);
18
+ let o = e.tr, c, l, u = [], d = [];
19
+ return this.items.forEach((e, n) => {
20
+ if (!e.step) {
21
+ i || (i = this.remapping(r, n + 1), a = i.maps.length), a--, d.push(e);
22
+ return;
23
+ }
24
+ if (i) {
25
+ d.push(new s(e.map));
26
+ let t = e.step.map(i.slice(a)), n;
27
+ t && o.maybeStep(t).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], u.push(new s(n, void 0, void 0, u.length + d.length))), a--, n && i.appendMap(n, a);
28
+ } else o.maybeStep(e.step);
29
+ if (e.selection) return c = i ? e.selection.map(i.slice(a)) : e.selection, l = new t(this.items.slice(0, r).append(d.reverse().concat(u)), this.eventCount - 1), !1;
30
+ }, this.items.length, 0), {
31
+ remaining: l,
32
+ transform: o,
33
+ selection: c
34
+ };
35
+ }
36
+ addTransform(e, n, r, i) {
37
+ let a = [], c = this.eventCount, u = this.items, d = !i && u.length ? u.get(u.length - 1) : null;
38
+ for (let t = 0; t < e.steps.length; t++) {
39
+ let r = e.steps[t].invert(e.docs[t]), o = new s(e.mapping.maps[t], r, n), l;
40
+ (l = d && d.merge(o)) && (o = l, t ? a.pop() : u = u.slice(0, u.length - 1)), a.push(o), n &&= (c++, void 0), i || (d = o);
41
+ }
42
+ let f = c - r.depth;
43
+ return f > l && (u = o(u, f), c -= f), new t(u.append(a), c);
44
+ }
45
+ remapping(t, n) {
46
+ let r = new e();
47
+ return this.items.forEach((e, n) => {
48
+ let i = e.mirrorOffset != null && n - e.mirrorOffset >= t ? r.maps.length - e.mirrorOffset : void 0;
49
+ r.appendMap(e.map, i);
50
+ }, t, n), r;
51
+ }
52
+ addMaps(e) {
53
+ return this.eventCount == 0 ? this : new t(this.items.append(e.map((e) => new s(e))), this.eventCount);
54
+ }
55
+ rebased(e, n) {
56
+ if (!this.eventCount) return this;
57
+ let r = [], a = Math.max(0, this.items.length - n), o = e.mapping, c = e.steps.length, l = this.eventCount;
58
+ this.items.forEach((e) => {
59
+ e.selection && l--;
60
+ }, a);
61
+ let u = n;
62
+ this.items.forEach((t) => {
63
+ let n = o.getMirror(--u);
64
+ if (n == null) return;
65
+ c = Math.min(c, n);
66
+ let i = o.maps[n];
67
+ if (t.step) {
68
+ let a = e.steps[n].invert(e.docs[n]), c = t.selection && t.selection.map(o.slice(u + 1, n));
69
+ c && l++, r.push(new s(i, a, c));
70
+ } else r.push(new s(i));
71
+ }, a);
72
+ let d = [];
73
+ for (let e = n; e < c; e++) d.push(new s(o.maps[e]));
74
+ let f = this.items.slice(0, a).append(d).append(r), p = new t(f, l);
75
+ return p.emptyItemCount() > i && (p = p.compress(this.items.length - r.length)), p;
76
+ }
77
+ emptyItemCount() {
78
+ let e = 0;
79
+ return this.items.forEach((t) => {
80
+ t.step || e++;
81
+ }), e;
82
+ }
83
+ compress(e = this.items.length) {
84
+ let n = this.remapping(0, e), i = n.maps.length, a = [], o = 0;
85
+ return this.items.forEach((t, r) => {
86
+ if (r >= e) a.push(t), t.selection && o++;
87
+ else if (t.step) {
88
+ let e = t.step.map(n.slice(i)), r = e && e.getMap();
89
+ if (i--, r && n.appendMap(r, i), e) {
90
+ let c = t.selection && t.selection.map(n.slice(i));
91
+ c && o++;
92
+ let l = new s(r.invert(), e, c), u, d = a.length - 1;
93
+ (u = a.length && a[d].merge(l)) ? a[d] = u : a.push(l);
94
+ }
95
+ } else t.map && i--;
96
+ }, this.items.length, 0), new t(r.from(a.reverse()), o);
97
+ }
98
+ };
99
+ a.empty = new a(r.empty, 0);
100
+ function o(e, t) {
101
+ let n;
102
+ return e.forEach((e, r) => {
103
+ if (e.selection && t-- == 0) return n = r, !1;
104
+ }), e.slice(n);
141
105
  }
142
- const y = 20;
143
- function F(n, t, e, i) {
144
- let s = e.getMeta(w), p;
145
- if (s)
146
- return s.historyState;
147
- e.getMeta(j) && (n = new h(n.done, n.undone, null, 0, -1));
148
- let l = e.getMeta("appendedTransaction");
149
- if (e.steps.length == 0)
150
- return n;
151
- if (l && l.getMeta(w))
152
- return l.getMeta(w).redo ? new h(n.done.addTransform(e, void 0, i, M(t)), n.undone, I(e.mapping.maps), n.prevTime, n.prevComposition) : new h(n.done, n.undone.addTransform(e, void 0, i, M(t)), null, n.prevTime, n.prevComposition);
153
- if (e.getMeta("addToHistory") !== !1 && !(l && l.getMeta("addToHistory") === !1)) {
154
- let r = e.getMeta("composition"), m = n.prevTime == 0 || !l && n.prevComposition != r && (n.prevTime < (e.time || 0) - i.newGroupDelay || !G(e, n.prevRanges)), u = l ? C(n.prevRanges, e.mapping) : I(e.mapping.maps);
155
- return new h(n.done.addTransform(e, m ? t.selection.getBookmark() : void 0, i, M(t)), c.empty, u, e.time, r ?? n.prevComposition);
156
- } else return (p = e.getMeta("rebased")) ? new h(n.done.rebased(e, p), n.undone.rebased(e, p), C(n.prevRanges, e.mapping), n.prevTime, n.prevComposition) : new h(n.done.addMaps(e.mapping.maps), n.undone.addMaps(e.mapping.maps), C(n.prevRanges, e.mapping), n.prevTime, n.prevComposition);
106
+ var s = class e {
107
+ constructor(e, t, n, r) {
108
+ this.map = e, this.step = t, this.selection = n, this.mirrorOffset = r;
109
+ }
110
+ merge(t) {
111
+ if (this.step && t.step && !t.selection) {
112
+ let n = t.step.merge(this.step);
113
+ if (n) return new e(n.getMap().invert(), n, this.selection);
114
+ }
115
+ }
116
+ }, c = class {
117
+ constructor(e, t, n, r, i) {
118
+ this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = i;
119
+ }
120
+ }, l = 20;
121
+ function u(e, t, n, r) {
122
+ let i = n.getMeta(v), o;
123
+ if (i) return i.historyState;
124
+ n.getMeta(y) && (e = new c(e.done, e.undone, null, 0, -1));
125
+ let s = n.getMeta("appendedTransaction");
126
+ if (n.steps.length == 0) return e;
127
+ if (s && s.getMeta(v)) return s.getMeta(v).redo ? new c(e.done.addTransform(n, void 0, r, _(t)), e.undone, f(n.mapping.maps), e.prevTime, e.prevComposition) : new c(e.done, e.undone.addTransform(n, void 0, r, _(t)), null, e.prevTime, e.prevComposition);
128
+ if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
129
+ let i = n.getMeta("composition"), o = e.prevTime == 0 || !s && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !d(n, e.prevRanges)), l = s ? p(e.prevRanges, n.mapping) : f(n.mapping.maps);
130
+ return new c(e.done.addTransform(n, o ? t.selection.getBookmark() : void 0, r, _(t)), a.empty, l, n.time, i ?? e.prevComposition);
131
+ }
132
+ return (o = n.getMeta("rebased")) ? new c(e.done.rebased(n, o), e.undone.rebased(n, o), p(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new c(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), p(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
157
133
  }
158
- function G(n, t) {
159
- if (!t)
160
- return !1;
161
- if (!n.docChanged)
162
- return !0;
163
- let e = !1;
164
- return n.mapping.maps[0].forEach((i, s) => {
165
- for (let p = 0; p < t.length; p += 2)
166
- i <= t[p + 1] && s >= t[p] && (e = !0);
167
- }), e;
134
+ function d(e, t) {
135
+ if (!t) return !1;
136
+ if (!e.docChanged) return !0;
137
+ let n = !1;
138
+ return e.mapping.maps[0].forEach((e, r) => {
139
+ for (let i = 0; i < t.length; i += 2) e <= t[i + 1] && r >= t[i] && (n = !0);
140
+ }), n;
168
141
  }
169
- function I(n) {
170
- let t = [];
171
- for (let e = n.length - 1; e >= 0 && t.length == 0; e--)
172
- n[e].forEach((i, s, p, l) => t.push(p, l));
173
- return t;
142
+ function f(e) {
143
+ let t = [];
144
+ for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((e, n, r, i) => t.push(r, i));
145
+ return t;
174
146
  }
175
- function C(n, t) {
176
- if (!n)
177
- return null;
178
- let e = [];
179
- for (let i = 0; i < n.length; i += 2) {
180
- let s = t.map(n[i], 1), p = t.map(n[i + 1], -1);
181
- s <= p && e.push(s, p);
182
- }
183
- return e;
147
+ function p(e, t) {
148
+ if (!e) return null;
149
+ let n = [];
150
+ for (let r = 0; r < e.length; r += 2) {
151
+ let i = t.map(e[r], 1), a = t.map(e[r + 1], -1);
152
+ i <= a && n.push(i, a);
153
+ }
154
+ return n;
184
155
  }
185
- function K(n, t, e) {
186
- let i = M(t), s = w.get(t).spec.config, p = (e ? n.undone : n.done).popEvent(t, i);
187
- if (!p)
188
- return null;
189
- let l = p.selection.resolve(p.transform.doc), r = (e ? n.done : n.undone).addTransform(p.transform, t.selection.getBookmark(), s, i), m = new h(e ? r : p.remaining, e ? p.remaining : r, null, 0, -1);
190
- return p.transform.setSelection(l).setMeta(w, { redo: e, historyState: m });
156
+ function m(e, t, n) {
157
+ let r = _(t), i = v.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
158
+ if (!a) return null;
159
+ let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), l = new c(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
160
+ return a.transform.setSelection(o).setMeta(v, {
161
+ redo: n,
162
+ historyState: l
163
+ });
191
164
  }
192
- let T = !1, b = null;
193
- function M(n) {
194
- let t = n.plugins;
195
- if (b != t) {
196
- T = !1, b = t;
197
- for (let e = 0; e < t.length; e++)
198
- if (t[e].spec.historyPreserveItems) {
199
- T = !0;
200
- break;
201
- }
202
- }
203
- return T;
165
+ var h = !1, g = null;
166
+ function _(e) {
167
+ let t = e.plugins;
168
+ if (g != t) {
169
+ h = !1, g = t;
170
+ for (let e = 0; e < t.length; e++) if (t[e].spec.historyPreserveItems) {
171
+ h = !0;
172
+ break;
173
+ }
174
+ }
175
+ return h;
204
176
  }
205
- const w = new O("history"), j = new O("closeHistory");
206
- function W(n = {}) {
207
- return n = {
208
- depth: n.depth || 100,
209
- newGroupDelay: n.newGroupDelay || 500
210
- }, new H({
211
- key: w,
212
- state: {
213
- init() {
214
- return new h(c.empty, c.empty, null, 0, -1);
215
- },
216
- apply(t, e, i) {
217
- return F(e, i, t, n);
218
- }
219
- },
220
- config: n,
221
- props: {
222
- handleDOMEvents: {
223
- beforeinput(t, e) {
224
- let i = e.inputType, s = i == "historyUndo" ? A : i == "historyRedo" ? U : null;
225
- return !s || !t.editable ? !1 : (e.preventDefault(), s(t.state, t.dispatch));
226
- }
227
- }
228
- }
229
- });
177
+ var v = new n("history"), y = new n("closeHistory");
178
+ function b(e = {}) {
179
+ return e = {
180
+ depth: e.depth || 100,
181
+ newGroupDelay: e.newGroupDelay || 500
182
+ }, new t({
183
+ key: v,
184
+ state: {
185
+ init() {
186
+ return new c(a.empty, a.empty, null, 0, -1);
187
+ },
188
+ apply(t, n, r) {
189
+ return u(n, r, t, e);
190
+ }
191
+ },
192
+ config: e,
193
+ props: { handleDOMEvents: { beforeinput(e, t) {
194
+ let n = t.inputType, r = n == "historyUndo" ? S : n == "historyRedo" ? C : null;
195
+ return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
196
+ } } }
197
+ });
230
198
  }
231
- function R(n, t) {
232
- return (e, i) => {
233
- let s = w.getState(e);
234
- if (!s || (n ? s.undone : s.done).eventCount == 0)
235
- return !1;
236
- if (i) {
237
- let p = K(s, e, n);
238
- p && i(t ? p.scrollIntoView() : p);
239
- }
240
- return !0;
241
- };
199
+ function x(e, t) {
200
+ return (n, r) => {
201
+ let i = v.getState(n);
202
+ if (!i || (e ? i.undone : i.done).eventCount == 0) return !1;
203
+ if (r) {
204
+ let a = m(i, n, e);
205
+ a && r(t ? a.scrollIntoView() : a);
206
+ }
207
+ return !0;
208
+ };
242
209
  }
243
- const A = R(!1, !0), U = R(!0, !0);
244
- export {
245
- W as history,
246
- U as redo,
247
- A as undo
248
- };
210
+ var S = x(!1, !0), C = x(!0, !0);
211
+ //#endregion
212
+ export { b as history, C as redo, S as undo };
@@ -1,62 +1,50 @@
1
- import { keyName as u, base as c } from "../../w3c-keyname/index.js";
2
- import { Plugin as d } from "../../prosemirror-state/dist/index.js";
3
- const p = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), y = typeof navigator < "u" && /Win/.test(navigator.platform);
4
- function m(e) {
5
- let r = e.split(/-(?!$)/), t = r[r.length - 1];
6
- t == "Space" && (t = " ");
7
- let i, f, o, a;
8
- for (let l = 0; l < r.length - 1; l++) {
9
- let s = r[l];
10
- if (/^(cmd|meta|m)$/i.test(s))
11
- a = !0;
12
- else if (/^a(lt)?$/i.test(s))
13
- i = !0;
14
- else if (/^(c|ctrl|control)$/i.test(s))
15
- f = !0;
16
- else if (/^s(hift)?$/i.test(s))
17
- o = !0;
18
- else if (/^mod$/i.test(s))
19
- p ? a = !0 : f = !0;
20
- else
21
- throw new Error("Unrecognized modifier name: " + s);
22
- }
23
- return i && (t = "Alt-" + t), f && (t = "Ctrl-" + t), a && (t = "Meta-" + t), o && (t = "Shift-" + t), t;
1
+ import { Plugin as e } from "../../prosemirror-state/dist/index.js";
2
+ import { base as t, keyName as n } from "../../w3c-keyname/index.js";
3
+ //#region ../../node_modules/prosemirror-keymap/dist/index.js
4
+ var r = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), i = typeof navigator < "u" && /Win/.test(navigator.platform);
5
+ function a(e) {
6
+ let t = e.split(/-(?!$)/), n = t[t.length - 1];
7
+ n == "Space" && (n = " ");
8
+ let i, a, o, s;
9
+ for (let e = 0; e < t.length - 1; e++) {
10
+ let n = t[e];
11
+ if (/^(cmd|meta|m)$/i.test(n)) s = !0;
12
+ else if (/^a(lt)?$/i.test(n)) i = !0;
13
+ else if (/^(c|ctrl|control)$/i.test(n)) a = !0;
14
+ else if (/^s(hift)?$/i.test(n)) o = !0;
15
+ else if (/^mod$/i.test(n)) r ? s = !0 : a = !0;
16
+ else throw Error("Unrecognized modifier name: " + n);
17
+ }
18
+ return i && (n = "Alt-" + n), a && (n = "Ctrl-" + n), s && (n = "Meta-" + n), o && (n = "Shift-" + n), n;
24
19
  }
25
- function h(e) {
26
- let r = /* @__PURE__ */ Object.create(null);
27
- for (let t in e)
28
- r[m(t)] = e[t];
29
- return r;
20
+ function o(e) {
21
+ let t = Object.create(null);
22
+ for (let n in e) t[a(n)] = e[n];
23
+ return t;
30
24
  }
31
- function n(e, r, t = !0) {
32
- return r.altKey && (e = "Alt-" + e), r.ctrlKey && (e = "Ctrl-" + e), r.metaKey && (e = "Meta-" + e), t && r.shiftKey && (e = "Shift-" + e), e;
25
+ function s(e, t, n = !0) {
26
+ return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
33
27
  }
34
- function k(e) {
35
- return new d({ props: { handleKeyDown: K(e) } });
28
+ function c(t) {
29
+ return new e({ props: { handleKeyDown: l(t) } });
36
30
  }
37
- function K(e) {
38
- let r = h(e);
39
- return function(t, i) {
40
- let f = u(i), o, a = r[n(f, i)];
41
- if (a && a(t.state, t.dispatch, t))
42
- return !0;
43
- if (f.length == 1 && f != " ") {
44
- if (i.shiftKey) {
45
- let l = r[n(f, i, !1)];
46
- if (l && l(t.state, t.dispatch, t))
47
- return !0;
48
- }
49
- if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
50
- !(y && i.ctrlKey && i.altKey) && (o = c[i.keyCode]) && o != f) {
51
- let l = r[n(o, i)];
52
- if (l && l(t.state, t.dispatch, t))
53
- return !0;
54
- }
55
- }
56
- return !1;
57
- };
31
+ function l(e) {
32
+ let r = o(e);
33
+ return function(e, a) {
34
+ let o = n(a), c, l = r[s(o, a)];
35
+ if (l && l(e.state, e.dispatch, e)) return !0;
36
+ if (o.length == 1 && o != " ") {
37
+ if (a.shiftKey) {
38
+ let t = r[s(o, a, !1)];
39
+ if (t && t(e.state, e.dispatch, e)) return !0;
40
+ }
41
+ if ((a.altKey || a.metaKey || a.ctrlKey) && !(i && a.ctrlKey && a.altKey) && (c = t[a.keyCode]) && c != o) {
42
+ let t = r[s(c, a)];
43
+ if (t && t(e.state, e.dispatch, e)) return !0;
44
+ }
45
+ }
46
+ return !1;
47
+ };
58
48
  }
59
- export {
60
- K as keydownHandler,
61
- k as keymap
62
- };
49
+ //#endregion
50
+ export { l as keydownHandler, c as keymap };