@caspeco/casper-ui-library 10.3.1 → 10.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (785) 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/index.d.ts +1 -0
  181. package/dist/components/icon/icons/index.d.ts.map +1 -1
  182. package/dist/components/icon/icons/info-icon.js +5 -5
  183. package/dist/components/icon/icons/inheritance-icon.js +5 -5
  184. package/dist/components/icon/icons/just-eat-icon.js +5 -5
  185. package/dist/components/icon/icons/karma-icon.js +5 -5
  186. package/dist/components/icon/icons/key-command-icon.js +5 -5
  187. package/dist/components/icon/icons/key-enter-icon.js +5 -5
  188. package/dist/components/icon/icons/key-icon.js +5 -5
  189. package/dist/components/icon/icons/key-option-icon.js +5 -5
  190. package/dist/components/icon/icons/language-icon.js +5 -5
  191. package/dist/components/icon/icons/link-broken-icon.js +5 -5
  192. package/dist/components/icon/icons/link-external-icon.js +5 -5
  193. package/dist/components/icon/icons/link-icon.js +5 -5
  194. package/dist/components/icon/icons/list-ol-icon.js +5 -5
  195. package/dist/components/icon/icons/list-ul-icon.js +5 -5
  196. package/dist/components/icon/icons/loading-icon.js +5 -5
  197. package/dist/components/icon/icons/location-icon.js +5 -5
  198. package/dist/components/icon/icons/lock-icon.js +5 -5
  199. package/dist/components/icon/icons/log-in-icon.js +5 -5
  200. package/dist/components/icon/icons/log-out-icon.js +5 -5
  201. package/dist/components/icon/icons/map-icon.js +5 -5
  202. package/dist/components/icon/icons/maximize-icon.js +5 -5
  203. package/dist/components/icon/icons/members-icon.js +5 -5
  204. package/dist/components/icon/icons/menu-hide-icon.js +5 -5
  205. package/dist/components/icon/icons/menu-icon.js +5 -5
  206. package/dist/components/icon/icons/menu-show-icon.js +5 -5
  207. package/dist/components/icon/icons/message-add-icon.js +5 -5
  208. package/dist/components/icon/icons/message-icon.js +5 -5
  209. package/dist/components/icon/icons/message-lines-icon.js +5 -5
  210. package/dist/components/icon/icons/minimize-icon.js +5 -5
  211. package/dist/components/icon/icons/minimize-window-icon.js +5 -5
  212. package/dist/components/icon/icons/mobile-rotate-icon.js +5 -5
  213. package/dist/components/icon/icons/module-accounting-icon.js +5 -5
  214. package/dist/components/icon/icons/module-ai-forecast-icon.js +5 -5
  215. package/dist/components/icon/icons/module-app-icon.js +5 -5
  216. package/dist/components/icon/icons/module-articles-icon.js +5 -5
  217. package/dist/components/icon/icons/module-benchmark-icon.js +5 -5
  218. package/dist/components/icon/icons/module-booking-icon.js +5 -5
  219. package/dist/components/icon/icons/module-cai-icon.js +5 -5
  220. package/dist/components/icon/icons/module-campaigns-icon.js +5 -5
  221. package/dist/components/icon/icons/module-cashier-icon.js +5 -5
  222. package/dist/components/icon/icons/module-communication-icon.js +5 -5
  223. package/dist/components/icon/icons/module-copilot-icon.js +5 -5
  224. package/dist/components/icon/icons/module-dashboard-icon.js +5 -5
  225. package/dist/components/icon/icons/module-document-icon.js +5 -5
  226. package/dist/components/icon/icons/module-employees-icon.js +5 -5
  227. package/dist/components/icon/icons/module-feed-icon.js +5 -5
  228. package/dist/components/icon/icons/module-history-icon.js +5 -5
  229. package/dist/components/icon/icons/module-home-icon.js +5 -5
  230. package/dist/components/icon/icons/module-insights-icon.js +5 -5
  231. package/dist/components/icon/icons/module-kds-icon.js +5 -5
  232. package/dist/components/icon/icons/module-members-icon.js +5 -5
  233. package/dist/components/icon/icons/module-menus-icon.js +5 -5
  234. package/dist/components/icon/icons/module-my-city-icon.js +5 -5
  235. package/dist/components/icon/icons/module-notification-center-icon.js +5 -5
  236. package/dist/components/icon/icons/module-online-order-icon.js +5 -5
  237. package/dist/components/icon/icons/module-organisation-icon.js +5 -5
  238. package/dist/components/icon/icons/module-pos-icon.js +5 -5
  239. package/dist/components/icon/icons/module-pulse-icon.js +5 -5
  240. package/dist/components/icon/icons/module-result-icon.js +5 -5
  241. package/dist/components/icon/icons/module-salary-icon.js +5 -5
  242. package/dist/components/icon/icons/module-schedule-icon.js +5 -5
  243. package/dist/components/icon/icons/module-settings-alt-icon.js +5 -5
  244. package/dist/components/icon/icons/module-settings-icon.js +5 -5
  245. package/dist/components/icon/icons/module-support-icon.js +5 -5
  246. package/dist/components/icon/icons/module-survey-icon.js +5 -5
  247. package/dist/components/icon/icons/module-table-map-icon.js +6 -6
  248. package/dist/components/icon/icons/module-tablet-icon.js +5 -5
  249. package/dist/components/icon/icons/module-time-icon.js +5 -5
  250. package/dist/components/icon/icons/module-timeline-icon.js +5 -5
  251. package/dist/components/icon/icons/module-tip-icon.js +5 -5
  252. package/dist/components/icon/icons/module-to-do-icon.js +5 -5
  253. package/dist/components/icon/icons/module-tools-icon.js +5 -5
  254. package/dist/components/icon/icons/module-top-list-icon.js +5 -5
  255. package/dist/components/icon/icons/module-web-charts-icon.js +5 -5
  256. package/dist/components/icon/icons/module-web-icon.js +5 -5
  257. package/dist/components/icon/icons/more-horizontal-icon.js +5 -5
  258. package/dist/components/icon/icons/more-vertical-icon.js +5 -5
  259. package/dist/components/icon/icons/nfc-icon.js +5 -5
  260. package/dist/components/icon/icons/no-cart-icon.js +5 -5
  261. package/dist/components/icon/icons/note-icon.js +5 -5
  262. package/dist/components/icon/icons/number-icon.js +6 -6
  263. package/dist/components/icon/icons/open-modal-icon.js +5 -5
  264. package/dist/components/icon/icons/parking-icon.js +5 -5
  265. package/dist/components/icon/icons/party-horn-icon.js +5 -5
  266. package/dist/components/icon/icons/paste-icon.d.ts +2 -0
  267. package/dist/components/icon/icons/paste-icon.d.ts.map +1 -0
  268. package/dist/components/icon/icons/paste-icon.js +5 -0
  269. package/dist/components/icon/icons/pause-icon.js +5 -5
  270. package/dist/components/icon/icons/payment-card-icon.js +5 -5
  271. package/dist/components/icon/icons/payment-cash-icon.js +5 -5
  272. package/dist/components/icon/icons/payment-generic-icon.js +5 -5
  273. package/dist/components/icon/icons/payment-giftcard-icon.js +5 -5
  274. package/dist/components/icon/icons/payment-hotel-icon.js +5 -5
  275. package/dist/components/icon/icons/payment-invoice-icon.js +5 -5
  276. package/dist/components/icon/icons/percentage-icon.js +5 -5
  277. package/dist/components/icon/icons/phone-icon.js +5 -5
  278. package/dist/components/icon/icons/pin-icon.js +5 -5
  279. package/dist/components/icon/icons/pin-map-icon.js +5 -5
  280. package/dist/components/icon/icons/play-icon.js +5 -5
  281. package/dist/components/icon/icons/preview-icon.js +5 -5
  282. package/dist/components/icon/icons/print-icon.js +5 -5
  283. package/dist/components/icon/icons/privacy-icon.js +5 -5
  284. package/dist/components/icon/icons/product-admin-icon.js +5 -5
  285. package/dist/components/icon/icons/product-analytics-icon.js +5 -5
  286. package/dist/components/icon/icons/product-booking-icon.js +5 -5
  287. package/dist/components/icon/icons/product-checkout-icon.js +5 -5
  288. package/dist/components/icon/icons/product-my-pages-icon.js +5 -5
  289. package/dist/components/icon/icons/product-staff-icon.js +5 -5
  290. package/dist/components/icon/icons/puck-icon.js +5 -5
  291. package/dist/components/icon/icons/qr-code-icon.js +5 -5
  292. package/dist/components/icon/icons/question-icon.js +5 -5
  293. package/dist/components/icon/icons/radio-icon.js +5 -5
  294. package/dist/components/icon/icons/receipt-icon.js +5 -5
  295. package/dist/components/icon/icons/redo-icon.js +5 -5
  296. package/dist/components/icon/icons/refund-icon.js +5 -5
  297. package/dist/components/icon/icons/remove-icon.js +5 -5
  298. package/dist/components/icon/icons/replace-icon.js +5 -5
  299. package/dist/components/icon/icons/schedule-icon.js +5 -5
  300. package/dist/components/icon/icons/search-icon.js +5 -5
  301. package/dist/components/icon/icons/select-icon.js +4 -4
  302. package/dist/components/icon/icons/send-icon.js +5 -5
  303. package/dist/components/icon/icons/share-icon.js +5 -5
  304. package/dist/components/icon/icons/show-icon.js +5 -5
  305. package/dist/components/icon/icons/shuffle-icon.js +5 -5
  306. package/dist/components/icon/icons/sidebar-hide-icon.js +4 -4
  307. package/dist/components/icon/icons/sidebar-left-icon.js +4 -4
  308. package/dist/components/icon/icons/sidebar-right-icon.js +5 -5
  309. package/dist/components/icon/icons/sidebar-show-icon.js +5 -5
  310. package/dist/components/icon/icons/sliders-icon.js +5 -5
  311. package/dist/components/icon/icons/slightly-sad-icon.js +5 -5
  312. package/dist/components/icon/icons/smile-icon.js +5 -5
  313. package/dist/components/icon/icons/sort-asc-icon.js +5 -5
  314. package/dist/components/icon/icons/sort-desc-icon.js +5 -5
  315. package/dist/components/icon/icons/split-icon.js +5 -5
  316. package/dist/components/icon/icons/status-icon.js +5 -5
  317. package/dist/components/icon/icons/stop-icon.js +5 -5
  318. package/dist/components/icon/icons/submenu-icon.js +5 -5
  319. package/dist/components/icon/icons/success-icon.js +5 -5
  320. package/dist/components/icon/icons/swap-icon.js +5 -5
  321. package/dist/components/icon/icons/swatch-icon.js +5 -5
  322. package/dist/components/icon/icons/sweat-icon.js +5 -5
  323. package/dist/components/icon/icons/table-icon.js +5 -5
  324. package/dist/components/icon/icons/table-map-icon.js +5 -5
  325. package/dist/components/icon/icons/take-away-dot-com-icon.js +5 -5
  326. package/dist/components/icon/icons/take-away-icon.js +5 -5
  327. package/dist/components/icon/icons/talk-icon.js +5 -5
  328. package/dist/components/icon/icons/thumbtack-icon.js +5 -5
  329. package/dist/components/icon/icons/time-icon.js +5 -5
  330. package/dist/components/icon/icons/timeline-icon.js +5 -5
  331. package/dist/components/icon/icons/tip-icon.js +5 -5
  332. package/dist/components/icon/icons/title-icon.js +5 -5
  333. package/dist/components/icon/icons/translate-icon.js +5 -5
  334. package/dist/components/icon/icons/tree-view-collapse-icon.js +4 -4
  335. package/dist/components/icon/icons/tree-view-expand-icon.js +4 -4
  336. package/dist/components/icon/icons/tree-view-last-icon.js +4 -4
  337. package/dist/components/icon/icons/trend-down-icon.js +5 -5
  338. package/dist/components/icon/icons/trend-up-icon.js +5 -5
  339. package/dist/components/icon/icons/triangle-warning-icon.js +5 -5
  340. package/dist/components/icon/icons/trivec-icon.js +6 -6
  341. package/dist/components/icon/icons/uber-eats-icon.js +5 -5
  342. package/dist/components/icon/icons/undo-icon.js +5 -5
  343. package/dist/components/icon/icons/unlock-icon.js +5 -5
  344. package/dist/components/icon/icons/unwrap-content-icon.js +5 -5
  345. package/dist/components/icon/icons/up-icon.js +5 -5
  346. package/dist/components/icon/icons/user-group-icon.js +5 -5
  347. package/dist/components/icon/icons/user-icon.js +5 -5
  348. package/dist/components/icon/icons/user-permissions-icon.js +5 -5
  349. package/dist/components/icon/icons/user-wait-icon.js +5 -5
  350. package/dist/components/icon/icons/users-icon.js +5 -5
  351. package/dist/components/icon/icons/version-control-icon.js +5 -5
  352. package/dist/components/icon/icons/volume-high-icon.js +5 -5
  353. package/dist/components/icon/icons/volume-icon.js +5 -5
  354. package/dist/components/icon/icons/volume-low-icon.js +5 -5
  355. package/dist/components/icon/icons/volume-off-icon.js +5 -5
  356. package/dist/components/icon/icons/warning-icon.js +5 -5
  357. package/dist/components/icon/icons/waste-icon.js +5 -5
  358. package/dist/components/icon/icons/wifi-icon.js +5 -5
  359. package/dist/components/icon/icons/wifi-off-icon.js +5 -5
  360. package/dist/components/icon/icons/wolt-icon.js +5 -5
  361. package/dist/components/icon/icons/wrap-content-icon.js +5 -5
  362. package/dist/components/icon-button/icon-button.js +37 -39
  363. package/dist/components/image/image.js +12 -14
  364. package/dist/components/image-upload/image-cropper.helper.js +74 -82
  365. package/dist/components/image-upload/image-cropper.js +156 -183
  366. package/dist/components/image-upload/image-upload-dropzone.js +134 -112
  367. package/dist/components/image-upload/image-upload-helper.js +15 -19
  368. package/dist/components/image-upload/image-upload-icons.js +52 -20
  369. package/dist/components/image-upload/image-upload-modal.js +131 -106
  370. package/dist/components/image-upload/image-upload.js +96 -86
  371. package/dist/components/image-upload/translations.js +65 -65
  372. package/dist/components/image-upload/types.js +6 -4
  373. package/dist/components/input/helper.js +18 -29
  374. package/dist/components/input/input-addon-recipe.js +37 -43
  375. package/dist/components/input/input-recipe.js +124 -133
  376. package/dist/components/input/input.js +78 -83
  377. package/dist/components/link/link-recipe.js +18 -22
  378. package/dist/components/link/link.js +14 -14
  379. package/dist/components/list/list-item.js +15 -15
  380. package/dist/components/list/list.js +19 -20
  381. package/dist/components/menu/helper.js +12 -16
  382. package/dist/components/menu/menu-box-button.js +22 -18
  383. package/dist/components/menu/menu-button.js +18 -16
  384. package/dist/components/menu/menu-divider.js +31 -28
  385. package/dist/components/menu/menu-group.js +138 -142
  386. package/dist/components/menu/menu-icon-button.js +13 -11
  387. package/dist/components/menu/menu-item.js +44 -45
  388. package/dist/components/menu/menu-list.js +14 -15
  389. package/dist/components/menu/menu-recipe.js +67 -81
  390. package/dist/components/menu/menu.js +34 -41
  391. package/dist/components/message/message.js +52 -38
  392. package/dist/components/modal/modal-body-context.js +6 -7
  393. package/dist/components/modal/modal-body.js +17 -17
  394. package/dist/components/modal/modal-close-button.js +23 -18
  395. package/dist/components/modal/modal-footer.js +29 -32
  396. package/dist/components/modal/modal-header.js +17 -17
  397. package/dist/components/modal/modal-recipe.js +110 -141
  398. package/dist/components/modal/modal.js +54 -58
  399. package/dist/components/navigation-list/navigation-list-item.js +76 -88
  400. package/dist/components/navigation-list/navigation-list.js +23 -17
  401. package/dist/components/paginator/paginator-recipe.js +34 -40
  402. package/dist/components/paginator/paginator.js +65 -70
  403. package/dist/components/paginator/translations.js +35 -35
  404. package/dist/components/phone-input/country-data.js +31 -36
  405. package/dist/components/phone-input/country-list.js +45 -25
  406. package/dist/components/phone-input/country-selector.js +167 -115
  407. package/dist/components/phone-input/phone-input-helpers.js +91 -119
  408. package/dist/components/phone-input/phone-input.js +47 -42
  409. package/dist/components/phone-input/translations.js +53 -53
  410. package/dist/components/phone-input/use-phone-input.js +110 -137
  411. package/dist/components/quantity-button/minus-button.js +18 -16
  412. package/dist/components/quantity-button/plus-button.js +18 -16
  413. package/dist/components/quantity-button/quantity-button.js +72 -40
  414. package/dist/components/radio/check-icon.js +5 -5
  415. package/dist/components/radio/hover-styles.js +21 -36
  416. package/dist/components/radio/radio-group-context.js +5 -6
  417. package/dist/components/radio/radio-group-recipe.js +124 -142
  418. package/dist/components/radio/radio-group.js +30 -28
  419. package/dist/components/radio/radio.js +72 -55
  420. package/dist/components/radio-card/hover-styles.js +21 -36
  421. package/dist/components/radio-card/radio-card-group.js +24 -25
  422. package/dist/components/radio-card/radio-card.js +87 -67
  423. package/dist/components/rich-text-editor/boolean-control.js +51 -54
  424. package/dist/components/rich-text-editor/extensions.js +39 -34
  425. package/dist/components/rich-text-editor/index.js +26 -22
  426. package/dist/components/rich-text-editor/rich-text-editor-context.js +9 -11
  427. package/dist/components/rich-text-editor/rich-text-editor-control.js +290 -284
  428. package/dist/components/rich-text-editor/rich-text-editor-recipe.js +71 -83
  429. package/dist/components/rich-text-editor/rich-text-editor.js +72 -69
  430. package/dist/components/rich-text-editor/rich-text-renderer.js +32 -32
  431. package/dist/components/rich-text-editor/translations.js +119 -119
  432. package/dist/components/rich-text-editor/use-rich-text-editor.js +22 -29
  433. package/dist/components/segmented-control/segmented-control-item.js +24 -25
  434. package/dist/components/segmented-control/segmented-control.js +49 -40
  435. package/dist/components/select/select-recipe.js +91 -106
  436. package/dist/components/select/select.js +27 -29
  437. package/dist/components/skeleton/skeleton-text.js +18 -19
  438. package/dist/components/skeleton/skeleton.js +19 -20
  439. package/dist/components/spinner/spinner.js +44 -28
  440. package/dist/components/stack/stack.js +18 -18
  441. package/dist/components/stepper/check-icon.js +5 -5
  442. package/dist/components/stepper/step-context.js +5 -5
  443. package/dist/components/stepper/step.js +111 -106
  444. package/dist/components/stepper/stepper.js +42 -43
  445. package/dist/components/stepper/times-icon.js +5 -5
  446. package/dist/components/switch/hover-styles.js +30 -44
  447. package/dist/components/switch/switch-recipe.js +76 -84
  448. package/dist/components/switch/switch.d.ts +3 -3
  449. package/dist/components/switch/switch.d.ts.map +1 -1
  450. package/dist/components/switch/switch.js +30 -31
  451. package/dist/components/switch/types.d.ts +4 -2
  452. package/dist/components/switch/types.d.ts.map +1 -1
  453. package/dist/components/table/helper.d.ts +6 -0
  454. package/dist/components/table/helper.d.ts.map +1 -1
  455. package/dist/components/table/helper.js +29 -9
  456. package/dist/components/table/index.d.ts +1 -1
  457. package/dist/components/table/index.d.ts.map +1 -1
  458. package/dist/components/table/table-cell.d.ts.map +1 -1
  459. package/dist/components/table/table-cell.js +136 -122
  460. package/dist/components/table/table-column-resize-handle.d.ts +12 -0
  461. package/dist/components/table/table-column-resize-handle.d.ts.map +1 -0
  462. package/dist/components/table/table-column-resize-handle.js +69 -0
  463. package/dist/components/table/table-content.d.ts.map +1 -1
  464. package/dist/components/table/table-content.js +174 -98
  465. package/dist/components/table/table-context-provider.d.ts +7 -2
  466. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  467. package/dist/components/table/table-context-provider.js +203 -151
  468. package/dist/components/table/table-context.d.ts +24 -0
  469. package/dist/components/table/table-context.d.ts.map +1 -1
  470. package/dist/components/table/table-context.js +18 -11
  471. package/dist/components/table/table-filter.js +170 -118
  472. package/dist/components/table/table-header-dropdown.js +131 -89
  473. package/dist/components/table/table-header-row.d.ts.map +1 -1
  474. package/dist/components/table/table-header-row.js +202 -140
  475. package/dist/components/table/table-recipe.d.ts.map +1 -1
  476. package/dist/components/table/table-recipe.js +75 -96
  477. package/dist/components/table/table-row-expand-toggle-button.js +28 -35
  478. package/dist/components/table/table-row.d.ts.map +1 -1
  479. package/dist/components/table/table-row.js +51 -41
  480. package/dist/components/table/table-toolbar-actions.js +19 -19
  481. package/dist/components/table/table-toolbar-add-button.js +18 -13
  482. package/dist/components/table/table-toolbar-search.js +17 -12
  483. package/dist/components/table/table-toolbar-settings.js +180 -133
  484. package/dist/components/table/table-toolbar.js +72 -51
  485. package/dist/components/table/table.composition.d.ts +1 -0
  486. package/dist/components/table/table.composition.d.ts.map +1 -1
  487. package/dist/components/table/table.constants.d.ts +4 -0
  488. package/dist/components/table/table.constants.d.ts.map +1 -1
  489. package/dist/components/table/table.constants.js +9 -4
  490. package/dist/components/table/table.d.ts +1 -1
  491. package/dist/components/table/table.d.ts.map +1 -1
  492. package/dist/components/table/table.js +41 -37
  493. package/dist/components/table/translations.d.ts +7 -0
  494. package/dist/components/table/translations.d.ts.map +1 -1
  495. package/dist/components/table/translations.js +199 -194
  496. package/dist/components/table/types.d.ts +33 -2
  497. package/dist/components/table/types.d.ts.map +1 -1
  498. package/dist/components/tabs/tab-list.js +16 -17
  499. package/dist/components/tabs/tab-panel.js +14 -14
  500. package/dist/components/tabs/tab-panels.js +15 -15
  501. package/dist/components/tabs/tab-with-image.js +60 -53
  502. package/dist/components/tabs/tab.js +26 -22
  503. package/dist/components/tabs/tabs-recipe.js +96 -116
  504. package/dist/components/tabs/tabs.js +25 -24
  505. package/dist/components/tag/tag-recipe.js +225 -252
  506. package/dist/components/tag/tag.js +121 -62
  507. package/dist/components/text/text-recipe.js +3 -8
  508. package/dist/components/text/text.js +26 -27
  509. package/dist/components/textarea/textarea-recipe.js +90 -96
  510. package/dist/components/textarea/textarea.js +19 -19
  511. package/dist/components/toaster/toast-store.d.ts +2 -2
  512. package/dist/components/toaster/toast-store.d.ts.map +1 -1
  513. package/dist/components/toaster/toast-store.js +25 -32
  514. package/dist/components/toaster/toaster.js +39 -34
  515. package/dist/components/toggle-button/toggle-button.js +23 -25
  516. package/dist/components/toggle-button/use-button-children.js +36 -35
  517. package/dist/components/tooltip/tooltip.js +43 -47
  518. package/dist/hooks/use-color-mode.js +17 -22
  519. package/dist/hooks/use-disclosure.js +10 -13
  520. package/dist/hooks/use-measured-width.js +21 -21
  521. package/dist/hooks/use-remove-attributes.js +25 -24
  522. package/dist/index.js +395 -799
  523. package/dist/node_modules/@dnd-kit/abstract/index.js +658 -1185
  524. package/dist/node_modules/@dnd-kit/collision/dist/index.js +51 -90
  525. package/dist/node_modules/@dnd-kit/dom/index.js +1256 -1518
  526. package/dist/node_modules/@dnd-kit/dom/sortable.js +529 -654
  527. package/dist/node_modules/@dnd-kit/dom/utilities.js +772 -940
  528. package/dist/node_modules/@dnd-kit/geometry/dist/index.js +228 -196
  529. package/dist/node_modules/@dnd-kit/react/hooks.js +51 -63
  530. package/dist/node_modules/@dnd-kit/react/index.js +175 -235
  531. package/dist/node_modules/@dnd-kit/react/sortable.js +67 -142
  532. package/dist/node_modules/@dnd-kit/react/utilities.js +7 -9
  533. package/dist/node_modules/@dnd-kit/state/dist/index.js +157 -172
  534. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +154 -243
  535. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +294 -369
  536. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +95 -133
  537. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +96 -122
  538. package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +249 -264
  539. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +34 -88
  540. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +74 -88
  541. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1463 -1822
  542. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +633 -768
  543. package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +30 -32
  544. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +35 -48
  545. package/dist/node_modules/@tiptap/core/dist/index.js +3433 -3946
  546. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +19 -19
  547. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +73 -1498
  548. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +71 -84
  549. package/dist/node_modules/@tiptap/extension-code/dist/index.js +65 -70
  550. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +155 -216
  551. package/dist/node_modules/@tiptap/extension-document/dist/index.js +9 -11
  552. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +48 -60
  553. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +65 -66
  554. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +47 -55
  555. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +68 -82
  556. package/dist/node_modules/@tiptap/extension-link/dist/index.js +365 -334
  557. package/dist/node_modules/@tiptap/extension-list/dist/index.js +936 -1105
  558. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +43 -48
  559. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +53 -65
  560. package/dist/node_modules/@tiptap/extension-text/dist/index.js +12 -12
  561. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +60 -64
  562. package/dist/node_modules/@tiptap/extensions/dist/index.js +439 -462
  563. package/dist/node_modules/@tiptap/react/dist/index.js +314 -0
  564. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +23 -24
  565. package/dist/node_modules/country-flag-icons/modules/countries.json.js +4 -4
  566. package/dist/node_modules/country-flag-icons/modules/hasFlag.js +6 -6
  567. package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +5469 -6298
  568. package/dist/node_modules/country-flag-icons/react/3x2/index.js +273 -269
  569. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
  570. package/dist/node_modules/date-fns/_lib/defaultOptions.js +6 -6
  571. package/dist/node_modules/date-fns/_lib/format/formatters.js +385 -544
  572. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +42 -57
  573. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +37 -48
  574. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
  575. package/dist/node_modules/date-fns/_lib/normalizeDates.js +6 -9
  576. package/dist/node_modules/date-fns/_lib/protectedTokens.js +19 -16
  577. package/dist/node_modules/date-fns/addDays.js +8 -8
  578. package/dist/node_modules/date-fns/addMonths.js +11 -18
  579. package/dist/node_modules/date-fns/addWeeks.js +6 -6
  580. package/dist/node_modules/date-fns/constants.js +10 -6
  581. package/dist/node_modules/date-fns/constructFrom.js +6 -6
  582. package/dist/node_modules/date-fns/constructNow.js +6 -6
  583. package/dist/node_modules/date-fns/differenceInCalendarDays.js +10 -14
  584. package/dist/node_modules/date-fns/endOfDay.js +7 -7
  585. package/dist/node_modules/date-fns/endOfMonth.js +7 -7
  586. package/dist/node_modules/date-fns/format.js +57 -55
  587. package/dist/node_modules/date-fns/getDayOfYear.js +9 -9
  588. package/dist/node_modules/date-fns/getISOWeek.js +10 -10
  589. package/dist/node_modules/date-fns/getISOWeekYear.js +13 -13
  590. package/dist/node_modules/date-fns/getWeek.js +10 -10
  591. package/dist/node_modules/date-fns/getWeekYear.js +14 -14
  592. package/dist/node_modules/date-fns/isBefore.js +6 -6
  593. package/dist/node_modules/date-fns/isDate.js +5 -5
  594. package/dist/node_modules/date-fns/isPast.js +6 -6
  595. package/dist/node_modules/date-fns/isSameDay.js +8 -12
  596. package/dist/node_modules/date-fns/isSameMonth.js +7 -11
  597. package/dist/node_modules/date-fns/isSameWeek.js +8 -12
  598. package/dist/node_modules/date-fns/isSameYear.js +7 -11
  599. package/dist/node_modules/date-fns/isToday.js +7 -10
  600. package/dist/node_modules/date-fns/isValid.js +7 -7
  601. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
  602. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
  603. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
  604. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -14
  605. package/dist/node_modules/date-fns/locale/da/_lib/formatDistance.js +68 -69
  606. package/dist/node_modules/date-fns/locale/da/_lib/formatLong.js +31 -32
  607. package/dist/node_modules/date-fns/locale/da/_lib/formatRelative.js +11 -11
  608. package/dist/node_modules/date-fns/locale/da/_lib/localize.js +193 -142
  609. package/dist/node_modules/date-fns/locale/da/_lib/match.js +123 -109
  610. package/dist/node_modules/date-fns/locale/da.js +17 -17
  611. package/dist/node_modules/date-fns/locale/en-GB/_lib/formatLong.js +31 -32
  612. package/dist/node_modules/date-fns/locale/en-GB.js +18 -18
  613. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
  614. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
  615. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
  616. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
  617. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
  618. package/dist/node_modules/date-fns/locale/en-US.js +18 -18
  619. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +68 -69
  620. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +31 -32
  621. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -18
  622. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +192 -141
  623. package/dist/node_modules/date-fns/locale/es/_lib/match.js +127 -114
  624. package/dist/node_modules/date-fns/locale/es.js +18 -18
  625. package/dist/node_modules/date-fns/locale/et/_lib/formatDistance.js +161 -162
  626. package/dist/node_modules/date-fns/locale/et/_lib/formatLong.js +31 -32
  627. package/dist/node_modules/date-fns/locale/et/_lib/formatRelative.js +11 -11
  628. package/dist/node_modules/date-fns/locale/et/_lib/localize.js +196 -152
  629. package/dist/node_modules/date-fns/locale/et/_lib/match.js +109 -107
  630. package/dist/node_modules/date-fns/locale/et.js +19 -19
  631. package/dist/node_modules/date-fns/locale/fi/_lib/formatDistance.js +101 -101
  632. package/dist/node_modules/date-fns/locale/fi/_lib/formatLong.js +31 -32
  633. package/dist/node_modules/date-fns/locale/fi/_lib/formatRelative.js +11 -11
  634. package/dist/node_modules/date-fns/locale/fi/_lib/localize.js +192 -140
  635. package/dist/node_modules/date-fns/locale/fi/_lib/match.js +122 -108
  636. package/dist/node_modules/date-fns/locale/fi.js +18 -18
  637. package/dist/node_modules/date-fns/locale/fr/_lib/formatDistance.js +68 -69
  638. package/dist/node_modules/date-fns/locale/fr/_lib/formatLong.js +31 -32
  639. package/dist/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -11
  640. package/dist/node_modules/date-fns/locale/fr/_lib/localize.js +176 -120
  641. package/dist/node_modules/date-fns/locale/fr/_lib/match.js +122 -108
  642. package/dist/node_modules/date-fns/locale/fr.js +18 -18
  643. package/dist/node_modules/date-fns/locale/lt/_lib/formatDistance.js +93 -109
  644. package/dist/node_modules/date-fns/locale/lt/_lib/formatLong.js +31 -32
  645. package/dist/node_modules/date-fns/locale/lt/_lib/formatRelative.js +11 -11
  646. package/dist/node_modules/date-fns/locale/lt/_lib/localize.js +298 -195
  647. package/dist/node_modules/date-fns/locale/lt/_lib/match.js +154 -121
  648. package/dist/node_modules/date-fns/locale/lt.js +19 -19
  649. package/dist/node_modules/date-fns/locale/lv/_lib/formatDistance.js +226 -120
  650. package/dist/node_modules/date-fns/locale/lv/_lib/formatLong.js +31 -32
  651. package/dist/node_modules/date-fns/locale/lv/_lib/formatRelative.js +22 -22
  652. package/dist/node_modules/date-fns/locale/lv/_lib/localize.js +298 -221
  653. package/dist/node_modules/date-fns/locale/lv/_lib/match.js +138 -112
  654. package/dist/node_modules/date-fns/locale/lv.js +18 -18
  655. package/dist/node_modules/date-fns/locale/nb/_lib/formatDistance.js +68 -69
  656. package/dist/node_modules/date-fns/locale/nb/_lib/formatLong.js +31 -32
  657. package/dist/node_modules/date-fns/locale/nb/_lib/formatRelative.js +11 -11
  658. package/dist/node_modules/date-fns/locale/nb/_lib/localize.js +159 -108
  659. package/dist/node_modules/date-fns/locale/nb/_lib/match.js +112 -108
  660. package/dist/node_modules/date-fns/locale/nb.js +18 -18
  661. package/dist/node_modules/date-fns/locale/nl/_lib/formatDistance.js +68 -69
  662. package/dist/node_modules/date-fns/locale/nl/_lib/formatLong.js +31 -32
  663. package/dist/node_modules/date-fns/locale/nl/_lib/formatRelative.js +11 -11
  664. package/dist/node_modules/date-fns/locale/nl/_lib/localize.js +160 -109
  665. package/dist/node_modules/date-fns/locale/nl/_lib/match.js +120 -108
  666. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js +68 -69
  667. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js +31 -32
  668. package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js +11 -11
  669. package/dist/node_modules/date-fns/locale/nl-BE/_lib/localize.js +160 -109
  670. package/dist/node_modules/date-fns/locale/nl-BE/_lib/match.js +120 -108
  671. package/dist/node_modules/date-fns/locale/nl-BE.js +18 -18
  672. package/dist/node_modules/date-fns/locale/nl.js +18 -18
  673. package/dist/node_modules/date-fns/locale/sv/_lib/formatDistance.js +82 -86
  674. package/dist/node_modules/date-fns/locale/sv/_lib/formatLong.js +31 -32
  675. package/dist/node_modules/date-fns/locale/sv/_lib/formatRelative.js +11 -11
  676. package/dist/node_modules/date-fns/locale/sv/_lib/localize.js +199 -142
  677. package/dist/node_modules/date-fns/locale/sv/_lib/match.js +109 -107
  678. package/dist/node_modules/date-fns/locale/sv.js +18 -18
  679. package/dist/node_modules/date-fns/startOfDay.js +7 -7
  680. package/dist/node_modules/date-fns/startOfISOWeek.js +9 -6
  681. package/dist/node_modules/date-fns/startOfISOWeekYear.js +9 -9
  682. package/dist/node_modules/date-fns/startOfMonth.js +7 -7
  683. package/dist/node_modules/date-fns/startOfWeek.js +8 -8
  684. package/dist/node_modules/date-fns/startOfWeekYear.js +10 -10
  685. package/dist/node_modules/date-fns/startOfYear.js +7 -7
  686. package/dist/node_modules/date-fns/subDays.js +6 -6
  687. package/dist/node_modules/date-fns/subMonths.js +6 -6
  688. package/dist/node_modules/date-fns/subWeeks.js +6 -6
  689. package/dist/node_modules/date-fns/toDate.js +6 -6
  690. package/dist/node_modules/fast-equals/dist/es/index.js +239 -298
  691. package/dist/node_modules/libphonenumber-js/es6/ParseError.js +116 -89
  692. package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +155 -183
  693. package/dist/node_modules/libphonenumber-js/es6/constants.js +4 -10
  694. package/dist/node_modules/libphonenumber-js/es6/format.js +70 -91
  695. package/dist/node_modules/libphonenumber-js/es6/getCountries.js +5 -5
  696. package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +8 -10
  697. package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +5 -5
  698. package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +19 -14
  699. package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +9 -9
  700. package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +15 -17
  701. package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +35 -45
  702. package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +20 -26
  703. package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +17 -22
  704. package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +24 -36
  705. package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +26 -30
  706. package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +13 -21
  707. package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +10 -24
  708. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +10 -11
  709. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +6 -8
  710. package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +39 -39
  711. package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +9 -11
  712. package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +56 -47
  713. package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +12 -12
  714. package/dist/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +5 -5
  715. package/dist/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +5 -5
  716. package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +6 -6
  717. package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +9 -17
  718. package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +5 -5
  719. package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
  720. package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +46 -77
  721. package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +17 -18
  722. package/dist/node_modules/libphonenumber-js/es6/isPossible.js +29 -32
  723. package/dist/node_modules/libphonenumber-js/es6/isValid.js +12 -13
  724. package/dist/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +55 -52
  725. package/dist/node_modules/libphonenumber-js/es6/metadata.js +462 -482
  726. package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +97 -95
  727. package/dist/node_modules/libphonenumber-js/es6/parse.js +98 -133
  728. package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +43 -35
  729. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +8 -8
  730. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +51 -48
  731. package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +59 -55
  732. package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +13 -13
  733. package/dist/node_modules/libphonenumber-js/metadata.min.json.js +7437 -3
  734. package/dist/node_modules/libphonenumber-js/min/exports/getCountries.js +6 -6
  735. package/dist/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js +6 -6
  736. package/dist/node_modules/libphonenumber-js/min/exports/isSupportedCountry.js +7 -7
  737. package/dist/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +6 -6
  738. package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +7 -7
  739. package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +6 -6
  740. package/dist/node_modules/linkifyjs/dist/linkify.js +486 -679
  741. package/dist/node_modules/next-themes/dist/index.js +120 -85
  742. package/dist/node_modules/orderedmap/dist/index.js +64 -100
  743. package/dist/node_modules/prosemirror-commands/dist/index.js +313 -368
  744. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +109 -84
  745. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +162 -195
  746. package/dist/node_modules/prosemirror-history/dist/index.js +203 -239
  747. package/dist/node_modules/prosemirror-keymap/dist/index.js +45 -57
  748. package/dist/node_modules/prosemirror-model/dist/index.js +1783 -2735
  749. package/dist/node_modules/prosemirror-schema-list/dist/index.js +66 -81
  750. package/dist/node_modules/prosemirror-state/dist/index.js +517 -814
  751. package/dist/node_modules/prosemirror-transform/dist/index.js +1104 -1505
  752. package/dist/node_modules/prosemirror-view/dist/index.js +3274 -3782
  753. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +15 -21
  754. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +12 -14
  755. package/dist/node_modules/react/compiler-runtime.js +10 -10
  756. package/dist/node_modules/rope-sequence/dist/index.js +82 -99
  757. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +55 -58
  758. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +53 -57
  759. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +53 -58
  760. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +45 -46
  761. package/dist/node_modules/use-sync-external-store/shim/index.js +10 -10
  762. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -10
  763. package/dist/node_modules/w3c-keyname/index.js +87 -92
  764. package/dist/theme/component-recipes.js +52 -53
  765. package/dist/theme/theme-casper-ui.js +179 -420
  766. package/dist/theme/theme-helper.js +4 -4
  767. package/dist/theme/theme-provider.js +33 -34
  768. package/dist/theme/theme-style-props.d.ts.map +1 -1
  769. package/dist/theme/theme-tokens.js +22 -12
  770. package/dist/theme/theme-types.js +22 -12
  771. package/dist/theme/theme.js +213 -268
  772. package/package.json +30 -29
  773. package/dist/_virtual/compiler-runtime.js +0 -5
  774. package/dist/_virtual/compiler-runtime2.js +0 -4
  775. package/dist/_virtual/index.js +0 -5
  776. package/dist/_virtual/index2.js +0 -4
  777. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  778. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  779. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
  780. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
  781. package/dist/_virtual/with-selector.development.js +0 -4
  782. package/dist/_virtual/with-selector.js +0 -5
  783. package/dist/_virtual/with-selector.production.js +0 -4
  784. package/dist/_virtual/with-selector2.js +0 -4
  785. package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +0 -506
@@ -1,674 +1,549 @@
1
- import { WeakStore as Ge, reactive as ne } from "../state/dist/index.js";
2
- import { Plugin as _e, resolveCustomizable as ie } from "../abstract/index.js";
3
- import { closestCorners as ke, defaultCollisionDetection as Te } from "../collision/dist/index.js";
4
- import { Droppable as je, Draggable as Ce, Scroller as Me, Feedback as Re } from "./index.js";
5
- import { isKeyboardEvent as oe, DOMRectangle as se, getVisibleBoundingRectangle as ze, scrollIntoViewIfNeeded as Ae, ProxiedElements as We, getComputedStyles as Be, computeTranslate as ae, prefersReducedMotion as $e, getWindow as Le, animateTransform as Ke } from "./utilities.js";
6
- import { Rectangle as le } from "../geometry/dist/index.js";
7
- import { effect as Ne, batch as w, untracked as de } from "../../@preact/signals-core/dist/signals-core.module.js";
8
- var Ve = Object.create, xe = Object.defineProperty, qe = Object.defineProperties, Fe = Object.getOwnPropertyDescriptor, He = Object.getOwnPropertyDescriptors, F = Object.getOwnPropertySymbols, ye = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable, Je = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), $ = (e) => {
9
- throw TypeError(e);
10
- }, X = (e, t, r) => t in e ? xe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, J = (e, t) => {
11
- for (var r in t || (t = {}))
12
- ye.call(t, r) && X(e, r, t[r]);
13
- if (F)
14
- for (var r of F(t))
15
- Ie.call(t, r) && X(e, r, t[r]);
16
- return e;
17
- }, Q = (e, t) => qe(e, He(t)), Qe = (e, t) => {
18
- var r = {};
19
- for (var n in e)
20
- ye.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
21
- if (e != null && F)
22
- for (var n of F(e))
23
- t.indexOf(n) < 0 && Ie.call(e, n) && (r[n] = e[n]);
24
- return r;
25
- }, Ue = (e) => {
26
- var t;
27
- return [, , , Ve((t = void 0) != null ? t : null)];
28
- }, Oe = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], z = (e) => e !== void 0 && typeof e != "function" ? $("Function expected") : e, Xe = (e, t, r, n, a) => ({ kind: Oe[e], name: t, metadata: n, addInitializer: (i) => r._ ? $("Already initialized") : a.push(z(i || null)) }), Ye = (e, t) => X(t, Je("metadata"), e[3]), L = (e, t, r, n) => {
29
- for (var a = 0, i = e[t >> 1], o = i && i.length; a < o; a++) t & 1 ? i[a].call(r) : n = i[a].call(r, n);
30
- return n;
31
- }, Pe = (e, t, r, n, a, i) => {
32
- for (var o, l, h, v, c, u = t & 7, _ = !1, b = !1, g = e.length + 1, f = Oe[u + 5], O = e[g - 1] = [], x = e[g] || (e[g] = []), I = (a = a.prototype, Fe({ get [r]() {
33
- return A(this, i);
34
- }, set [r](p) {
35
- return G(this, i, p);
36
- } }, r)), d = n.length - 1; d >= 0; d--)
37
- v = Xe(u, r, h = {}, e[3], x), v.static = _, v.private = b, c = v.access = { has: (p) => r in p }, c.get = (p) => p[r], c.set = (p, s) => p[r] = s, l = (0, n[d])({ get: I.get, set: I.set }, v), h._ = 1, l === void 0 ? z(l) && (I[f] = l) : typeof l != "object" || l === null ? $("Object expected") : (z(o = l.get) && (I.get = o), z(o = l.set) && (I.set = o), z(o = l.init) && O.unshift(o));
38
- return I && xe(a, r, I), a;
39
- }, we = (e, t, r) => t.has(e) || $("Cannot " + r), A = (e, t, r) => (we(e, t, "read from private field"), t.get(e)), R = (e, t, r) => t.has(e) ? $("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), G = (e, t, r, n) => (we(e, t, "write to private field"), t.set(e, r), r);
40
- function m(e) {
41
- return e instanceof te || e instanceof De;
1
+ import { batch as e, effect as t, untracked as n } from "../../@preact/signals-core/dist/signals-core.module.js";
2
+ import { WeakStore as r, reactive as i } from "../state/dist/index.js";
3
+ import { Rectangle as a } from "../geometry/dist/index.js";
4
+ import { Plugin as o, resolveCustomizable as s } from "../abstract/index.js";
5
+ import { DOMRectangle as c, ProxiedElements as l, animateTransform as u, computeTranslate as d, getComputedStyles as f, getVisibleBoundingRectangle as p, getWindow as m, isKeyboardEvent as h, prefersReducedMotion as g, scrollIntoViewIfNeeded as _ } from "./utilities.js";
6
+ import { closestCorners as v, defaultCollisionDetection as y } from "../collision/dist/index.js";
7
+ import { Draggable as b, Droppable as x, Feedback as ee, Scroller as te } from "./index.js";
8
+ //#region ../../node_modules/@dnd-kit/dom/sortable.js
9
+ var ne = Object.create, S = Object.defineProperty, re = Object.defineProperties, ie = Object.getOwnPropertyDescriptor, ae = Object.getOwnPropertyDescriptors, C = Object.getOwnPropertySymbols, w = Object.prototype.hasOwnProperty, oe = Object.prototype.propertyIsEnumerable, se = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), T = (e) => {
10
+ throw TypeError(e);
11
+ }, E = (e, t, n) => t in e ? S(e, t, {
12
+ enumerable: !0,
13
+ configurable: !0,
14
+ writable: !0,
15
+ value: n
16
+ }) : e[t] = n, D = (e, t) => {
17
+ for (var n in t ||= {}) w.call(t, n) && E(e, n, t[n]);
18
+ if (C) for (var n of C(t)) oe.call(t, n) && E(e, n, t[n]);
19
+ return e;
20
+ }, O = (e, t) => re(e, ae(t)), ce = (e, t) => {
21
+ var n = {};
22
+ for (var r in e) w.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
23
+ if (e != null && C) for (var r of C(e)) t.indexOf(r) < 0 && oe.call(e, r) && (n[r] = e[r]);
24
+ return n;
25
+ }, le = (e) => [
26
+ ,
27
+ ,
28
+ ,
29
+ ne(null)
30
+ ], ue = [
31
+ "class",
32
+ "method",
33
+ "getter",
34
+ "setter",
35
+ "accessor",
36
+ "field",
37
+ "value",
38
+ "get",
39
+ "set"
40
+ ], k = (e) => e !== void 0 && typeof e != "function" ? T("Function expected") : e, de = (e, t, n, r, i) => ({
41
+ kind: ue[e],
42
+ name: t,
43
+ metadata: r,
44
+ addInitializer: (e) => n._ ? T("Already initialized") : i.push(k(e || null))
45
+ }), fe = (e, t) => E(t, se("metadata"), e[3]), A = (e, t, n, r) => {
46
+ for (var i = 0, a = e[t >> 1], o = a && a.length; i < o; i++) t & 1 ? a[i].call(n) : r = a[i].call(n, r);
47
+ return r;
48
+ }, pe = (e, t, n, r, i, a) => {
49
+ for (var o, s, c, l, u, d = t & 7, f = !1, p = !1, m = e.length + 1, h = ue[d + 5], g = e[m - 1] = [], _ = e[m] || (e[m] = []), v = (i = i.prototype, ie({
50
+ get [n]() {
51
+ return j(this, a);
52
+ },
53
+ set [n](e) {
54
+ return N(this, a, e);
55
+ }
56
+ }, n)), y = r.length - 1; y >= 0; y--) l = de(d, n, c = {}, e[3], _), l.static = f, l.private = p, u = l.access = { has: (e) => n in e }, u.get = (e) => e[n], u.set = (e, t) => e[n] = t, s = (0, r[y])({
57
+ get: v.get,
58
+ set: v.set
59
+ }, l), c._ = 1, s === void 0 ? k(s) && (v[h] = s) : typeof s != "object" || !s ? T("Object expected") : (k(o = s.get) && (v.get = o), k(o = s.set) && (v.set = o), k(o = s.init) && g.unshift(o));
60
+ return v && S(i, n, v), i;
61
+ }, me = (e, t, n) => t.has(e) || T("Cannot " + n), j = (e, t, n) => (me(e, t, "read from private field"), t.get(e)), M = (e, t, n) => t.has(e) ? T("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), N = (e, t, n, r) => (me(e, t, "write to private field"), t.set(e, n), n);
62
+ function P(e) {
63
+ return e instanceof $ || e instanceof Q;
42
64
  }
43
- function yt(e) {
44
- return m(e.source) && m(e.target);
65
+ function he(e) {
66
+ return P(e.source) && P(e.target);
45
67
  }
46
- var K = 10, Ze = class extends _e {
47
- constructor(e) {
48
- super(e);
49
- const t = Ne(() => {
50
- const { dragOperation: n } = e;
51
- if (oe(n.activatorEvent) && m(n.source) && n.status.initialized) {
52
- const a = e.registry.plugins.get(Me);
53
- if (a)
54
- return a.disable(), () => a.enable();
55
- }
56
- }), r = e.monitor.addEventListener(
57
- "dragmove",
58
- (n, a) => {
59
- queueMicrotask(() => {
60
- if (this.disabled || n.defaultPrevented || !n.nativeEvent)
61
- return;
62
- const { dragOperation: i } = a;
63
- if (!oe(n.nativeEvent) || !m(i.source) || !i.shape)
64
- return;
65
- const { actions: o, collisionObserver: l, registry: h } = a, { by: v } = n;
66
- if (!v)
67
- return;
68
- const c = et(v), { source: u, target: _ } = i, { center: b } = i.shape.current, g = [], f = [];
69
- w(() => {
70
- for (const s of h.droppables) {
71
- const { id: y } = s;
72
- if (!s.accepts(u) || y === _?.id && m(s) || !s.element)
73
- continue;
74
- let P = s.shape;
75
- const S = new se(s.element, {
76
- getBoundingClientRect: (C) => ze(C, void 0, 0.2)
77
- });
78
- !S.height || !S.width || (c == "down" && b.y + K < S.center.y || c == "up" && b.y - K > S.center.y || c == "left" && b.x - K > S.center.x || c == "right" && b.x + K < S.center.x) && (g.push(s), s.shape = S, f.push(() => s.shape = P));
79
- }
80
- }), n.preventDefault(), l.disable();
81
- const O = l.computeCollisions(
82
- g,
83
- ke
84
- );
85
- w(() => f.forEach((s) => s()));
86
- const [x] = O;
87
- if (!x)
88
- return;
89
- const { id: I } = x, { index: d, group: p } = u.sortable;
90
- o.setDropTarget(I).then(() => {
91
- const { source: s, target: y, shape: P } = i;
92
- if (!s || !m(s) || !P)
93
- return;
94
- const {
95
- index: S,
96
- group: C,
97
- target: M
98
- } = s.sortable, E = d !== S || p !== C, H = E ? M : y?.element;
99
- if (!H) return;
100
- Ae(H);
101
- const re = new se(H);
102
- if (!re)
103
- return;
104
- const Ee = le.delta(
105
- re,
106
- le.from(P.current.boundingRectangle),
107
- s.alignment
108
- );
109
- o.move({
110
- by: Ee
111
- }), E ? o.setDropTarget(s.id).then(() => l.enable()) : l.enable();
112
- });
113
- });
114
- }
115
- );
116
- this.destroy = () => {
117
- r(), t();
118
- };
119
- }
68
+ var F = 10, I = class extends o {
69
+ constructor(n) {
70
+ super(n);
71
+ let r = t(() => {
72
+ let { dragOperation: e } = n;
73
+ if (h(e.activatorEvent) && P(e.source) && e.status.initialized) {
74
+ let e = n.registry.plugins.get(te);
75
+ if (e) return e.disable(), () => e.enable();
76
+ }
77
+ }), i = n.monitor.addEventListener("dragmove", (t, n) => {
78
+ queueMicrotask(() => {
79
+ if (this.disabled || t.defaultPrevented || !t.nativeEvent) return;
80
+ let { dragOperation: r } = n;
81
+ if (!h(t.nativeEvent) || !P(r.source) || !r.shape) return;
82
+ let { actions: i, collisionObserver: o, registry: s } = n, { by: l } = t;
83
+ if (!l) return;
84
+ let u = ge(l), { source: d, target: f } = r, { center: m } = r.shape.current, g = [], y = [];
85
+ e(() => {
86
+ for (let e of s.droppables) {
87
+ let { id: t } = e;
88
+ if (!e.accepts(d) || t === f?.id && P(e) || !e.element) continue;
89
+ let n = e.shape, r = new c(e.element, { getBoundingClientRect: (e) => p(e, void 0, .2) });
90
+ !r.height || !r.width || (u == "down" && m.y + F < r.center.y || u == "up" && m.y - F > r.center.y || u == "left" && m.x - F > r.center.x || u == "right" && m.x + F < r.center.x) && (g.push(e), e.shape = r, y.push(() => e.shape = n));
91
+ }
92
+ }), t.preventDefault(), o.disable();
93
+ let b = o.computeCollisions(g, v);
94
+ e(() => y.forEach((e) => e()));
95
+ let [x] = b;
96
+ if (!x) return;
97
+ let { id: ee } = x, { index: te, group: ne } = d.sortable;
98
+ i.setDropTarget(ee).then(() => {
99
+ let { source: e, target: t, shape: n } = r;
100
+ if (!e || !P(e) || !n) return;
101
+ let { index: s, group: l, target: u } = e.sortable, d = te !== s || ne !== l, f = d ? u : t?.element;
102
+ if (!f) return;
103
+ _(f);
104
+ let p = new c(f);
105
+ if (!p) return;
106
+ let m = a.delta(p, a.from(n.current.boundingRectangle), e.alignment);
107
+ i.move({ by: m }), d ? i.setDropTarget(e.id).then(() => o.enable()) : o.enable();
108
+ });
109
+ });
110
+ });
111
+ this.destroy = () => {
112
+ i(), r();
113
+ };
114
+ }
120
115
  };
121
- function et(e) {
122
- const { x: t, y: r } = e;
123
- if (t > 0)
124
- return "right";
125
- if (t < 0)
126
- return "left";
127
- if (r > 0)
128
- return "down";
129
- if (r < 0)
130
- return "up";
116
+ function ge(e) {
117
+ let { x: t, y: n } = e;
118
+ if (t > 0) return "right";
119
+ if (t < 0) return "left";
120
+ if (n > 0) return "down";
121
+ if (n < 0) return "up";
131
122
  }
132
- var tt = Object.defineProperty, rt = Object.defineProperties, nt = Object.getOwnPropertyDescriptors, ce = Object.getOwnPropertySymbols, it = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable, ue = (e, t, r) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, k = (e, t) => {
133
- for (var r in t || (t = {}))
134
- it.call(t, r) && ue(e, r, t[r]);
135
- if (ce)
136
- for (var r of ce(t))
137
- ot.call(t, r) && ue(e, r, t[r]);
138
- return e;
139
- }, T = (e, t) => rt(e, nt(t));
140
- function st(e, t, r) {
141
- if (t === r)
142
- return e;
143
- const n = e.slice();
144
- return n.splice(r, 0, n.splice(t, 1)[0]), n;
123
+ var _e = Object.defineProperty, ve = Object.defineProperties, ye = Object.getOwnPropertyDescriptors, L = Object.getOwnPropertySymbols, be = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable, R = (e, t, n) => t in e ? _e(e, t, {
124
+ enumerable: !0,
125
+ configurable: !0,
126
+ writable: !0,
127
+ value: n
128
+ }) : e[t] = n, z = (e, t) => {
129
+ for (var n in t ||= {}) be.call(t, n) && R(e, n, t[n]);
130
+ if (L) for (var n of L(t)) xe.call(t, n) && R(e, n, t[n]);
131
+ return e;
132
+ }, B = (e, t) => ve(e, ye(t));
133
+ function Se(e, t, n) {
134
+ if (t === n) return e;
135
+ let r = e.slice();
136
+ return r.splice(n, 0, r.splice(t, 1)[0]), r;
145
137
  }
146
- function N(e, t) {
147
- const r = String(t);
148
- return Object.prototype.hasOwnProperty.call(e, r) ? r : void 0;
138
+ function V(e, t) {
139
+ let n = String(t);
140
+ return Object.prototype.hasOwnProperty.call(e, n) ? n : void 0;
149
141
  }
150
- function U(e) {
151
- return "initialIndex" in e && typeof e.initialIndex == "number" && "index" in e && typeof e.index == "number";
142
+ function H(e) {
143
+ return "initialIndex" in e && typeof e.initialIndex == "number" && "index" in e && typeof e.index == "number";
152
144
  }
153
- function at(e, t, r) {
154
- var n, a;
155
- const { source: i, target: o, canceled: l } = t.operation;
156
- if (!i || !o || l)
157
- return "preventDefault" in t && t.preventDefault(), e;
158
- const h = (d, p) => d === p || d !== null && typeof d == "object" && "id" in d && d.id === p;
159
- if (Array.isArray(e)) {
160
- const d = e.findIndex((s) => h(s, i.id)), p = e.findIndex((s) => h(s, o.id));
161
- if (d === -1 || p === -1) {
162
- if (U(i)) {
163
- const s = i.initialIndex, y = i.index;
164
- return s === y || s < 0 || s >= e.length ? ("preventDefault" in t && t.preventDefault(), e) : r(e, s, y);
165
- }
166
- return e;
167
- }
168
- if (!l && "index" in i && typeof i.index == "number") {
169
- const s = i.index;
170
- if (s !== d)
171
- return r(e, d, s);
172
- }
173
- return r(e, d, p);
174
- }
175
- const v = Object.entries(e);
176
- let c = -1, u, _ = -1, b;
177
- for (const [d, p] of v)
178
- if (c === -1 && (c = p.findIndex((s) => h(s, i.id)), c !== -1 && (u = d)), _ === -1 && (_ = p.findIndex((s) => h(s, o.id)), _ !== -1 && (b = d)), c !== -1 && _ !== -1)
179
- break;
180
- if (c === -1 && U(i)) {
181
- const d = i.initialGroup == null ? void 0 : N(e, i.initialGroup), p = i.initialIndex, s = i.group == null ? void 0 : N(e, i.group), y = i.index;
182
- if (d == null || s == null || d === s && p === y)
183
- return "preventDefault" in t && t.preventDefault(), e;
184
- if (d === s)
185
- return T(k({}, e), {
186
- [d]: r(e[d], p, y)
187
- });
188
- const P = e[d][p];
189
- return T(k({}, e), {
190
- [d]: [
191
- ...e[d].slice(0, p),
192
- ...e[d].slice(p + 1)
193
- ],
194
- [s]: [
195
- ...e[s].slice(0, y),
196
- P,
197
- ...e[s].slice(y)
198
- ]
199
- });
200
- }
201
- if (!i.manager) return e;
202
- const { dragOperation: g } = i.manager, f = (a = (n = g.shape) == null ? void 0 : n.current.center) != null ? a : g.position.current;
203
- if (b == null) {
204
- const d = N(e, o.id);
205
- if (d != null) {
206
- const p = o.shape && f.y > o.shape.center.y ? e[d].length : 0;
207
- b = d, _ = p;
208
- }
209
- }
210
- if (u == null || b == null || u === b && c === _) {
211
- if (u != null && u === b && c === _ && U(i)) {
212
- const d = i.group == null ? void 0 : N(e, i.group), p = i.group != null && d !== u, s = i.index !== c;
213
- if (p || s) {
214
- const y = i.group == null ? u : d;
215
- if (y != null) {
216
- if (u === y)
217
- return T(k({}, e), {
218
- [u]: r(
219
- e[u],
220
- c,
221
- i.index
222
- )
223
- });
224
- const P = e[u][c];
225
- return T(k({}, e), {
226
- [u]: [
227
- ...e[u].slice(0, c),
228
- ...e[u].slice(c + 1)
229
- ],
230
- [y]: [
231
- ...e[y].slice(0, i.index),
232
- P,
233
- ...e[y].slice(i.index)
234
- ]
235
- });
236
- }
237
- }
238
- }
239
- return "preventDefault" in t && t.preventDefault(), e;
240
- }
241
- if (u === b)
242
- return T(k({}, e), {
243
- [u]: r(e[u], c, _)
244
- });
245
- const x = o.shape && Math.round(f.y) > Math.round(o.shape.center.y) ? 1 : 0, I = e[u][c];
246
- return T(k({}, e), {
247
- [u]: [
248
- ...e[u].slice(0, c),
249
- ...e[u].slice(c + 1)
250
- ],
251
- [b]: [
252
- ...e[b].slice(0, _ + x),
253
- I,
254
- ...e[b].slice(_ + x)
255
- ]
256
- });
145
+ function Ce(e, t, n) {
146
+ let { source: r, target: i, canceled: a } = t.operation;
147
+ if (!r || !i || a) return "preventDefault" in t && t.preventDefault(), e;
148
+ let o = (e, t) => e === t || typeof e == "object" && !!e && "id" in e && e.id === t;
149
+ if (Array.isArray(e)) {
150
+ let s = e.findIndex((e) => o(e, r.id)), c = e.findIndex((e) => o(e, i.id));
151
+ if (s === -1 || c === -1) {
152
+ if (H(r)) {
153
+ let i = r.initialIndex, a = r.index;
154
+ return i === a || i < 0 || i >= e.length ? ("preventDefault" in t && t.preventDefault(), e) : n(e, i, a);
155
+ }
156
+ return e;
157
+ }
158
+ if (!a && "index" in r && typeof r.index == "number") {
159
+ let t = r.index;
160
+ if (t !== s) return n(e, s, t);
161
+ }
162
+ return n(e, s, c);
163
+ }
164
+ let s = Object.entries(e), c = -1, l, u = -1, d;
165
+ for (let [e, t] of s) if (c === -1 && (c = t.findIndex((e) => o(e, r.id)), c !== -1 && (l = e)), u === -1 && (u = t.findIndex((e) => o(e, i.id)), u !== -1 && (d = e)), c !== -1 && u !== -1) break;
166
+ if (c === -1 && H(r)) {
167
+ let i = r.initialGroup == null ? void 0 : V(e, r.initialGroup), a = r.initialIndex, o = r.group == null ? void 0 : V(e, r.group), s = r.index;
168
+ if (i == null || o == null || i === o && a === s) return "preventDefault" in t && t.preventDefault(), e;
169
+ if (i === o) return B(z({}, e), { [i]: n(e[i], a, s) });
170
+ let c = e[i][a];
171
+ return B(z({}, e), {
172
+ [i]: [...e[i].slice(0, a), ...e[i].slice(a + 1)],
173
+ [o]: [
174
+ ...e[o].slice(0, s),
175
+ c,
176
+ ...e[o].slice(s)
177
+ ]
178
+ });
179
+ }
180
+ if (!r.manager) return e;
181
+ let { dragOperation: f } = r.manager, p = f.shape?.current.center ?? f.position.current;
182
+ if (d == null) {
183
+ let t = V(e, i.id);
184
+ if (t != null) {
185
+ let n = i.shape && p.y > i.shape.center.y ? e[t].length : 0;
186
+ d = t, u = n;
187
+ }
188
+ }
189
+ if (l == null || d == null || l === d && c === u) {
190
+ if (l != null && l === d && c === u && H(r)) {
191
+ let t = r.group == null ? void 0 : V(e, r.group), i = r.group != null && t !== l, a = r.index !== c;
192
+ if (i || a) {
193
+ let i = r.group == null ? l : t;
194
+ if (i != null) {
195
+ if (l === i) return B(z({}, e), { [l]: n(e[l], c, r.index) });
196
+ let t = e[l][c];
197
+ return B(z({}, e), {
198
+ [l]: [...e[l].slice(0, c), ...e[l].slice(c + 1)],
199
+ [i]: [
200
+ ...e[i].slice(0, r.index),
201
+ t,
202
+ ...e[i].slice(r.index)
203
+ ]
204
+ });
205
+ }
206
+ }
207
+ }
208
+ return "preventDefault" in t && t.preventDefault(), e;
209
+ }
210
+ if (l === d) return B(z({}, e), { [l]: n(e[l], c, u) });
211
+ let m = i.shape && Math.round(p.y) > Math.round(i.shape.center.y) ? 1 : 0, h = e[l][c];
212
+ return B(z({}, e), {
213
+ [l]: [...e[l].slice(0, c), ...e[l].slice(c + 1)],
214
+ [d]: [
215
+ ...e[d].slice(0, u + m),
216
+ h,
217
+ ...e[d].slice(u + m)
218
+ ]
219
+ });
257
220
  }
258
- function lt(e, t) {
259
- return at(e, t, st);
221
+ function we(e, t) {
222
+ return Ce(e, t, Se);
260
223
  }
261
- function pe(e) {
262
- const t = /* @__PURE__ */ new Map();
263
- for (const [, r] of e)
264
- for (const n of r)
265
- t.set(n.id, n.index);
266
- return t;
224
+ function Te(e) {
225
+ let t = /* @__PURE__ */ new Map();
226
+ for (let [, n] of e) for (let e of n) t.set(e.id, e.index);
227
+ return t;
267
228
  }
268
- function ge(e, t, r) {
269
- var n;
270
- for (const [a, i] of t)
271
- for (const o of i) {
272
- const l = e.get(o.id);
273
- if (o.index !== l || o.group !== a || !((n = r.get(a)) != null && n.has(o)))
274
- return !0;
275
- }
276
- return !1;
229
+ function Ee(e, t, n) {
230
+ for (let [r, i] of t) for (let t of i) {
231
+ let i = e.get(t.id);
232
+ if (t.index !== i || t.group !== r || !n.get(r)?.has(t)) return !0;
233
+ }
234
+ return !1;
277
235
  }
278
- var fe = "__default__", dt = class extends _e {
279
- constructor(e) {
280
- super(e);
281
- const t = () => {
282
- const n = /* @__PURE__ */ new Map();
283
- for (const a of e.registry.droppables)
284
- if (a instanceof te) {
285
- const { sortable: i } = a, { group: o } = i;
286
- let l = n.get(o);
287
- l || (l = /* @__PURE__ */ new Set(), n.set(o, l)), l.add(i);
288
- }
289
- return n;
290
- }, r = [
291
- e.monitor.addEventListener("dragover", (n, a) => {
292
- if (this.disabled)
293
- return;
294
- const { dragOperation: i } = a, { source: o, target: l } = i;
295
- if (!m(o) || !m(l) || o.sortable === l.sortable)
296
- return;
297
- const h = t(), v = pe(h), c = o.sortable.group === l.sortable.group, u = h.get(o.sortable.group), _ = c ? u : h.get(l.sortable.group);
298
- !u || !_ || queueMicrotask(() => {
299
- n.defaultPrevented || a.renderer.rendering.then(() => {
300
- var b, g;
301
- const f = t();
302
- if (ge(v, h, f))
303
- return;
304
- const O = o.sortable.element, x = l.sortable.element;
305
- if (!x || !O || !c && l.id === o.sortable.group)
306
- return;
307
- const I = V(u), d = c ? I : V(_), p = (b = o.sortable.group) != null ? b : fe, s = (g = l.sortable.group) != null ? g : fe, y = {
308
- [p]: I,
309
- [s]: d
310
- }, P = lt(y, n);
311
- if (y === P) return;
312
- const S = P[s].indexOf(o.sortable), C = P[s].indexOf(l.sortable);
313
- a.collisionObserver.disable(), be(O, S, x, C), w(() => {
314
- for (const [M, E] of P[p].entries())
315
- E.index = M;
316
- if (!c)
317
- for (const [M, E] of P[s].entries())
318
- E.group = l.sortable.group, E.index = M;
319
- }), a.actions.setDropTarget(o.id).then(() => a.collisionObserver.enable());
320
- });
321
- });
322
- }),
323
- e.monitor.addEventListener("dragend", (n, a) => {
324
- if (!n.canceled)
325
- return;
326
- const { dragOperation: i } = a, { source: o } = i;
327
- m(o) && (o.sortable.initialIndex === o.sortable.index && o.sortable.initialGroup === o.sortable.group || queueMicrotask(() => {
328
- const l = t(), h = pe(l), v = l.get(
329
- o.sortable.initialGroup
330
- );
331
- v && a.renderer.rendering.then(() => {
332
- const c = t();
333
- if (ge(h, l, c))
334
- return;
335
- const u = V(v), _ = V(
336
- v,
337
- ut
338
- ), b = o.sortable.element, g = _.indexOf(o.sortable), f = u[g], O = f?.element;
339
- !f || !O || !b || (be(b, f.index, O, o.index), w(() => {
340
- for (const x of l.values()) {
341
- const I = Array.from(x).values();
342
- for (const d of I)
343
- d.index = d.initialIndex, d.group = d.initialGroup;
344
- }
345
- }));
346
- });
347
- }));
348
- })
349
- ];
350
- this.destroy = () => {
351
- for (const n of r)
352
- n();
353
- };
354
- }
236
+ var De = "__default__", Oe = class extends o {
237
+ constructor(t) {
238
+ super(t);
239
+ let n = () => {
240
+ let e = /* @__PURE__ */ new Map();
241
+ for (let n of t.registry.droppables) if (n instanceof $) {
242
+ let { sortable: t } = n, { group: r } = t, i = e.get(r);
243
+ i || (i = /* @__PURE__ */ new Set(), e.set(r, i)), i.add(t);
244
+ }
245
+ return e;
246
+ }, r = [t.monitor.addEventListener("dragover", (t, r) => {
247
+ if (this.disabled) return;
248
+ let { dragOperation: i } = r, { source: a, target: o } = i;
249
+ if (!P(a) || !P(o) || a.sortable === o.sortable) return;
250
+ let s = n(), c = Te(s), l = a.sortable.group === o.sortable.group, u = s.get(a.sortable.group), d = l ? u : s.get(o.sortable.group);
251
+ !u || !d || queueMicrotask(() => {
252
+ t.defaultPrevented || r.renderer.rendering.then(() => {
253
+ let i = n();
254
+ if (Ee(c, s, i)) return;
255
+ let f = a.sortable.element, p = o.sortable.element;
256
+ if (!p || !f || !l && o.id === a.sortable.group) return;
257
+ let m = U(u), h = l ? m : U(d), g = a.sortable.group ?? De, _ = o.sortable.group ?? De, v = {
258
+ [g]: m,
259
+ [_]: h
260
+ }, y = we(v, t);
261
+ if (v === y) return;
262
+ let b = y[_].indexOf(a.sortable), x = y[_].indexOf(o.sortable);
263
+ r.collisionObserver.disable(), ke(f, b, p, x), e(() => {
264
+ for (let [e, t] of y[g].entries()) t.index = e;
265
+ if (!l) for (let [e, t] of y[_].entries()) t.group = o.sortable.group, t.index = e;
266
+ }), r.actions.setDropTarget(a.id).then(() => r.collisionObserver.enable());
267
+ });
268
+ });
269
+ }), t.monitor.addEventListener("dragend", (t, r) => {
270
+ if (!t.canceled) return;
271
+ let { dragOperation: i } = r, { source: a } = i;
272
+ P(a) && (a.sortable.initialIndex !== a.sortable.index || a.sortable.initialGroup !== a.sortable.group) && queueMicrotask(() => {
273
+ let t = n(), i = Te(t), o = t.get(a.sortable.initialGroup);
274
+ o && r.renderer.rendering.then(() => {
275
+ let r = n();
276
+ if (Ee(i, t, r)) return;
277
+ let s = U(o), c = U(o, je), l = a.sortable.element, u = s[c.indexOf(a.sortable)], d = u?.element;
278
+ !u || !d || !l || (ke(l, u.index, d, a.index), e(() => {
279
+ for (let e of t.values()) {
280
+ let t = Array.from(e).values();
281
+ for (let e of t) e.index = e.initialIndex, e.group = e.initialGroup;
282
+ }
283
+ }));
284
+ });
285
+ });
286
+ })];
287
+ this.destroy = () => {
288
+ for (let e of r) e();
289
+ };
290
+ }
355
291
  };
356
- function be(e, t, r, n) {
357
- const a = n < t ? "afterend" : "beforebegin";
358
- r.insertAdjacentElement(a, e);
292
+ function ke(e, t, n, r) {
293
+ let i = r < t ? "afterend" : "beforebegin";
294
+ n.insertAdjacentElement(i, e);
359
295
  }
360
- function ct(e, t) {
361
- return e.index - t.index;
296
+ function Ae(e, t) {
297
+ return e.index - t.index;
362
298
  }
363
- function ut(e, t) {
364
- return e.initialIndex - t.initialIndex;
299
+ function je(e, t) {
300
+ return e.initialIndex - t.initialIndex;
365
301
  }
366
- function V(e, t = ct) {
367
- return Array.from(e).sort(t);
302
+ function U(e, t = Ae) {
303
+ return Array.from(e).sort(t);
368
304
  }
369
- var he = [
370
- Ze,
371
- dt
372
- ], pt = {
373
- duration: 250,
374
- easing: "cubic-bezier(0.25, 1, 0.5, 1)",
375
- idle: !1
305
+ var Me = [I, Oe], Ne = {
306
+ duration: 250,
307
+ easing: "cubic-bezier(0.25, 1, 0.5, 1)",
308
+ idle: !1
376
309
  };
377
- function ve(e) {
378
- var t, r;
379
- return typeof e == "boolean" ? {
380
- draggable: e,
381
- droppable: e
382
- } : {
383
- draggable: (t = e?.draggable) != null ? t : !1,
384
- droppable: (r = e?.droppable) != null ? r : !1
385
- };
310
+ function Pe(e) {
311
+ return typeof e == "boolean" ? {
312
+ draggable: e,
313
+ droppable: e
314
+ } : {
315
+ draggable: e?.draggable ?? !1,
316
+ droppable: e?.droppable ?? !1
317
+ };
386
318
  }
387
- var q = new Ge(), Se, me, D, Y, W, B, Z, j;
388
- me = [ne], Se = [ne];
389
- var ee = class {
390
- constructor(e, t) {
391
- R(this, Y, L(D, 8, this)), L(D, 11, this), R(this, W), R(this, B), R(this, Z, L(D, 12, this)), L(D, 15, this), R(this, j), this.register = () => (w(() => {
392
- var g, f;
393
- (g = this.manager) == null || g.registry.register(this.droppable), (f = this.manager) == null || f.registry.register(this.draggable);
394
- }), () => this.unregister()), this.unregister = () => {
395
- w(() => {
396
- var g, f;
397
- (g = this.manager) == null || g.registry.unregister(this.droppable), (f = this.manager) == null || f.registry.unregister(this.draggable);
398
- });
399
- }, this.destroy = () => {
400
- w(() => {
401
- this.droppable.destroy(), this.draggable.destroy();
402
- });
403
- };
404
- var r = e, {
405
- effects: n = () => [],
406
- disabled: a,
407
- group: i,
408
- index: o,
409
- sensors: l,
410
- type: h,
411
- transition: v = pt,
412
- plugins: c
413
- } = r, u = Qe(r, [
414
- "effects",
415
- "disabled",
416
- "group",
417
- "index",
418
- "sensors",
419
- "type",
420
- "transition",
421
- "plugins"
422
- ]);
423
- const _ = ie(c, he), b = ve(a);
424
- this.droppable = new te(
425
- Q(J({}, u), { disabled: b.droppable }),
426
- t,
427
- this
428
- ), this.draggable = new De(
429
- Q(J({}, u), {
430
- disabled: b.draggable,
431
- plugins: _,
432
- effects: () => [
433
- () => {
434
- var g, f, O;
435
- const x = (g = this.manager) == null ? void 0 : g.dragOperation.status;
436
- x?.initializing && this.id === ((O = (f = this.manager) == null ? void 0 : f.dragOperation.source) == null ? void 0 : O.id) && q.clear(this.manager), x?.dragging && q.set(
437
- this.manager,
438
- this.id,
439
- de(() => ({
440
- initialIndex: this.index,
441
- initialGroup: this.group
442
- }))
443
- );
444
- },
445
- () => {
446
- const { index: g, group: f, manager: O } = this, x = A(this, B), I = A(this, W);
447
- (g !== x || f !== I) && (G(this, B, g), G(this, W, f), this.animate());
448
- },
449
- () => {
450
- var g, f;
451
- const { target: O } = this, { isDragSource: x } = this.draggable;
452
- ((f = (g = this.draggable.pluginConfig(Re)) == null ? void 0 : g.feedback) != null ? f : "default") === "move" && x && (this.droppable.disabled = !O);
453
- },
454
- ...n()
455
- ],
456
- type: h,
457
- sensors: l
458
- }),
459
- t,
460
- this
461
- ), G(this, j, u.element), this.manager = t, this.index = o, G(this, B, o), this.group = i, G(this, W, i), this.type = h, this.transition = v;
462
- }
463
- get initialIndex() {
464
- var e, t;
465
- return (t = (e = q.get(this.manager, this.id)) == null ? void 0 : e.initialIndex) != null ? t : this.index;
466
- }
467
- get initialGroup() {
468
- var e, t;
469
- return (t = (e = q.get(this.manager, this.id)) == null ? void 0 : e.initialGroup) != null ? t : this.group;
470
- }
471
- animate() {
472
- de(() => {
473
- const { manager: e, transition: t } = this, { shape: r } = this.droppable;
474
- if (!e) return;
475
- const { idle: n } = e.dragOperation.status;
476
- !r || !t || n && !t.idle || e.renderer.rendering.then(() => {
477
- const { element: a } = this;
478
- if (!a)
479
- return;
480
- for (const c of a.getAnimations())
481
- "transitionProperty" in c && (c.transitionProperty === "transform" || c.transitionProperty === "translate" || c.transitionProperty === "scale") && c.cancel();
482
- const i = this.refreshShape();
483
- if (!i)
484
- return;
485
- const o = {
486
- x: r.boundingRectangle.left - i.boundingRectangle.left,
487
- y: r.boundingRectangle.top - i.boundingRectangle.top
488
- }, { translate: l } = Be(a), h = ae(a, l, !1), v = ae(a, l);
489
- if (o.x || o.y) {
490
- const c = $e(Le(a)) ? Q(J({}, t), { duration: 0 }) : t;
491
- Ke({
492
- element: a,
493
- keyframes: {
494
- translate: [
495
- `${h.x + o.x}px ${h.y + o.y}px ${h.z}`,
496
- `${v.x}px ${v.y}px ${v.z}`
497
- ]
498
- },
499
- options: c
500
- }).then(() => {
501
- e.dragOperation.status.dragging || (this.droppable.shape = void 0);
502
- });
503
- }
504
- });
505
- });
506
- }
507
- get manager() {
508
- return this.draggable.manager;
509
- }
510
- set manager(e) {
511
- w(() => {
512
- this.draggable.manager = e, this.droppable.manager = e;
513
- });
514
- }
515
- set element(e) {
516
- w(() => {
517
- const t = A(this, j), r = this.droppable.element, n = this.draggable.element;
518
- (!r || r === t) && (this.droppable.element = e), (!n || n === t) && (this.draggable.element = e), G(this, j, e);
519
- });
520
- }
521
- get element() {
522
- var e, t;
523
- const r = A(this, j);
524
- if (r)
525
- return (t = (e = We.get(r)) != null ? e : r) != null ? t : this.droppable.element;
526
- }
527
- set target(e) {
528
- this.droppable.element = e;
529
- }
530
- get target() {
531
- return this.droppable.element;
532
- }
533
- set source(e) {
534
- this.draggable.element = e;
535
- }
536
- get source() {
537
- return this.draggable.element;
538
- }
539
- get disabled() {
540
- const { disabled: e } = this.draggable, { disabled: t } = this.droppable;
541
- return e === t ? e : { draggable: e, droppable: t };
542
- }
543
- set plugins(e) {
544
- this.draggable.plugins = ie(e, he);
545
- }
546
- set disabled(e) {
547
- const t = ve(e);
548
- w(() => {
549
- this.droppable.disabled = t.droppable, this.draggable.disabled = t.draggable;
550
- });
551
- }
552
- set data(e) {
553
- w(() => {
554
- this.droppable.data = e, this.draggable.data = e;
555
- });
556
- }
557
- set handle(e) {
558
- this.draggable.handle = e;
559
- }
560
- set id(e) {
561
- this.droppable.id = e, this.draggable.id = e;
562
- }
563
- get id() {
564
- return this.droppable.id;
565
- }
566
- set sensors(e) {
567
- this.draggable.sensors = e;
568
- }
569
- set modifiers(e) {
570
- this.draggable.modifiers = e;
571
- }
572
- set collisionPriority(e) {
573
- this.droppable.collisionPriority = e;
574
- }
575
- set collisionDetector(e) {
576
- this.droppable.collisionDetector = e ?? Te;
577
- }
578
- set alignment(e) {
579
- this.draggable.alignment = e;
580
- }
581
- get alignment() {
582
- return this.draggable.alignment;
583
- }
584
- set type(e) {
585
- w(() => {
586
- this.droppable.type = e, this.draggable.type = e;
587
- });
588
- }
589
- get type() {
590
- return this.draggable.type;
591
- }
592
- set accept(e) {
593
- this.droppable.accept = e;
594
- }
595
- get accept() {
596
- return this.droppable.accept;
597
- }
598
- get isDropTarget() {
599
- return this.droppable.isDropTarget;
600
- }
601
- /**
602
- * A boolean indicating whether the sortable item is the source of a drag operation.
603
- */
604
- get isDragSource() {
605
- return this.draggable.isDragSource;
606
- }
607
- /**
608
- * A boolean indicating whether the sortable item is being dragged.
609
- */
610
- get isDragging() {
611
- return this.draggable.isDragging;
612
- }
613
- /**
614
- * A boolean indicating whether the sortable item is being dropped.
615
- */
616
- get isDropping() {
617
- return this.draggable.isDropping;
618
- }
619
- get status() {
620
- return this.draggable.status;
621
- }
622
- refreshShape() {
623
- return this.droppable.refreshShape();
624
- }
625
- accepts(e) {
626
- return this.droppable.accepts(e);
627
- }
319
+ var W = new r(), Fe, Ie = [i], G, K, q, J, Y, X;
320
+ Fe = [i];
321
+ var Z = class {
322
+ constructor(t, r) {
323
+ M(this, K, A(G, 8, this)), A(G, 11, this), M(this, q), M(this, J), M(this, Y, A(G, 12, this)), A(G, 15, this), M(this, X), this.register = () => (e(() => {
324
+ var e, t;
325
+ (e = this.manager) == null || e.registry.register(this.droppable), (t = this.manager) == null || t.registry.register(this.draggable);
326
+ }), () => this.unregister()), this.unregister = () => {
327
+ e(() => {
328
+ var e, t;
329
+ (e = this.manager) == null || e.registry.unregister(this.droppable), (t = this.manager) == null || t.registry.unregister(this.draggable);
330
+ });
331
+ }, this.destroy = () => {
332
+ e(() => {
333
+ this.droppable.destroy(), this.draggable.destroy();
334
+ });
335
+ };
336
+ var i = t, { effects: a = () => [], disabled: o, group: c, index: l, sensors: u, type: d, transition: f = Ne, plugins: p } = i, m = ce(i, [
337
+ "effects",
338
+ "disabled",
339
+ "group",
340
+ "index",
341
+ "sensors",
342
+ "type",
343
+ "transition",
344
+ "plugins"
345
+ ]);
346
+ let h = s(p, Me), g = Pe(o);
347
+ this.droppable = new $(O(D({}, m), { disabled: g.droppable }), r, this), this.draggable = new Q(O(D({}, m), {
348
+ disabled: g.draggable,
349
+ plugins: h,
350
+ effects: () => [
351
+ () => {
352
+ let e = this.manager?.dragOperation.status;
353
+ e?.initializing && this.id === this.manager?.dragOperation.source?.id && W.clear(this.manager), e?.dragging && W.set(this.manager, this.id, n(() => ({
354
+ initialIndex: this.index,
355
+ initialGroup: this.group
356
+ })));
357
+ },
358
+ () => {
359
+ let { index: e, group: t, manager: n } = this, r = j(this, J), i = j(this, q);
360
+ (e !== r || t !== i) && (N(this, J, e), N(this, q, t), this.animate());
361
+ },
362
+ () => {
363
+ let { target: e } = this, { isDragSource: t } = this.draggable;
364
+ (this.draggable.pluginConfig(ee)?.feedback ?? "default") === "move" && t && (this.droppable.disabled = !e);
365
+ },
366
+ ...a()
367
+ ],
368
+ type: d,
369
+ sensors: u
370
+ }), r, this), N(this, X, m.element), this.manager = r, this.index = l, N(this, J, l), this.group = c, N(this, q, c), this.type = d, this.transition = f;
371
+ }
372
+ get initialIndex() {
373
+ return W.get(this.manager, this.id)?.initialIndex ?? this.index;
374
+ }
375
+ get initialGroup() {
376
+ return W.get(this.manager, this.id)?.initialGroup ?? this.group;
377
+ }
378
+ animate() {
379
+ n(() => {
380
+ let { manager: e, transition: t } = this, { shape: n } = this.droppable;
381
+ if (!e) return;
382
+ let { idle: r } = e.dragOperation.status;
383
+ !n || !t || r && !t.idle || e.renderer.rendering.then(() => {
384
+ let { element: r } = this;
385
+ if (!r) return;
386
+ for (let e of r.getAnimations()) "transitionProperty" in e && (e.transitionProperty === "transform" || e.transitionProperty === "translate" || e.transitionProperty === "scale") && e.cancel();
387
+ let i = this.refreshShape();
388
+ if (!i) return;
389
+ let a = {
390
+ x: n.boundingRectangle.left - i.boundingRectangle.left,
391
+ y: n.boundingRectangle.top - i.boundingRectangle.top
392
+ }, { translate: o } = f(r), s = d(r, o, !1), c = d(r, o);
393
+ if (a.x || a.y) {
394
+ let n = g(m(r)) ? O(D({}, t), { duration: 0 }) : t;
395
+ u({
396
+ element: r,
397
+ keyframes: { translate: [`${s.x + a.x}px ${s.y + a.y}px ${s.z}`, `${c.x}px ${c.y}px ${c.z}`] },
398
+ options: n
399
+ }).then(() => {
400
+ e.dragOperation.status.dragging || (this.droppable.shape = void 0);
401
+ });
402
+ }
403
+ });
404
+ });
405
+ }
406
+ get manager() {
407
+ return this.draggable.manager;
408
+ }
409
+ set manager(t) {
410
+ e(() => {
411
+ this.draggable.manager = t, this.droppable.manager = t;
412
+ });
413
+ }
414
+ set element(t) {
415
+ e(() => {
416
+ let e = j(this, X), n = this.droppable.element, r = this.draggable.element;
417
+ (!n || n === e) && (this.droppable.element = t), (!r || r === e) && (this.draggable.element = t), N(this, X, t);
418
+ });
419
+ }
420
+ get element() {
421
+ let e = j(this, X);
422
+ if (e) return l.get(e) ?? e ?? this.droppable.element;
423
+ }
424
+ set target(e) {
425
+ this.droppable.element = e;
426
+ }
427
+ get target() {
428
+ return this.droppable.element;
429
+ }
430
+ set source(e) {
431
+ this.draggable.element = e;
432
+ }
433
+ get source() {
434
+ return this.draggable.element;
435
+ }
436
+ get disabled() {
437
+ let { disabled: e } = this.draggable, { disabled: t } = this.droppable;
438
+ return e === t ? e : {
439
+ draggable: e,
440
+ droppable: t
441
+ };
442
+ }
443
+ set plugins(e) {
444
+ this.draggable.plugins = s(e, Me);
445
+ }
446
+ set disabled(t) {
447
+ let n = Pe(t);
448
+ e(() => {
449
+ this.droppable.disabled = n.droppable, this.draggable.disabled = n.draggable;
450
+ });
451
+ }
452
+ set data(t) {
453
+ e(() => {
454
+ this.droppable.data = t, this.draggable.data = t;
455
+ });
456
+ }
457
+ set handle(e) {
458
+ this.draggable.handle = e;
459
+ }
460
+ set id(e) {
461
+ this.droppable.id = e, this.draggable.id = e;
462
+ }
463
+ get id() {
464
+ return this.droppable.id;
465
+ }
466
+ set sensors(e) {
467
+ this.draggable.sensors = e;
468
+ }
469
+ set modifiers(e) {
470
+ this.draggable.modifiers = e;
471
+ }
472
+ set collisionPriority(e) {
473
+ this.droppable.collisionPriority = e;
474
+ }
475
+ set collisionDetector(e) {
476
+ this.droppable.collisionDetector = e ?? y;
477
+ }
478
+ set alignment(e) {
479
+ this.draggable.alignment = e;
480
+ }
481
+ get alignment() {
482
+ return this.draggable.alignment;
483
+ }
484
+ set type(t) {
485
+ e(() => {
486
+ this.droppable.type = t, this.draggable.type = t;
487
+ });
488
+ }
489
+ get type() {
490
+ return this.draggable.type;
491
+ }
492
+ set accept(e) {
493
+ this.droppable.accept = e;
494
+ }
495
+ get accept() {
496
+ return this.droppable.accept;
497
+ }
498
+ get isDropTarget() {
499
+ return this.droppable.isDropTarget;
500
+ }
501
+ get isDragSource() {
502
+ return this.draggable.isDragSource;
503
+ }
504
+ get isDragging() {
505
+ return this.draggable.isDragging;
506
+ }
507
+ get isDropping() {
508
+ return this.draggable.isDropping;
509
+ }
510
+ get status() {
511
+ return this.draggable.status;
512
+ }
513
+ refreshShape() {
514
+ return this.droppable.refreshShape();
515
+ }
516
+ accepts(e) {
517
+ return this.droppable.accepts(e);
518
+ }
628
519
  };
629
- D = Ue();
630
- Y = /* @__PURE__ */ new WeakMap();
631
- W = /* @__PURE__ */ new WeakMap();
632
- B = /* @__PURE__ */ new WeakMap();
633
- Z = /* @__PURE__ */ new WeakMap();
634
- j = /* @__PURE__ */ new WeakMap();
635
- Pe(D, 4, "index", me, ee, Y);
636
- Pe(D, 4, "group", Se, ee, Z);
637
- Ye(D, ee);
638
- var De = class extends Ce {
639
- constructor(e, t, r) {
640
- super(e, t), this.sortable = r;
641
- }
642
- get index() {
643
- return this.sortable.index;
644
- }
645
- get initialIndex() {
646
- return this.sortable.initialIndex;
647
- }
648
- get group() {
649
- return this.sortable.group;
650
- }
651
- get initialGroup() {
652
- return this.sortable.initialGroup;
653
- }
654
- }, te = class extends je {
655
- constructor(e, t, r) {
656
- super(e, t), this.sortable = r;
657
- }
658
- get index() {
659
- return this.sortable.index;
660
- }
661
- get group() {
662
- return this.sortable.group;
663
- }
664
- };
665
- export {
666
- dt as OptimisticSortingPlugin,
667
- ee as Sortable,
668
- De as SortableDraggable,
669
- te as SortableDroppable,
670
- Ze as SortableKeyboardPlugin,
671
- pt as defaultSortableTransition,
672
- m as isSortable,
673
- yt as isSortableOperation
520
+ G = le(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), pe(G, 4, "index", Ie, Z, K), pe(G, 4, "group", Fe, Z, Y), fe(G, Z);
521
+ var Q = class extends b {
522
+ constructor(e, t, n) {
523
+ super(e, t), this.sortable = n;
524
+ }
525
+ get index() {
526
+ return this.sortable.index;
527
+ }
528
+ get initialIndex() {
529
+ return this.sortable.initialIndex;
530
+ }
531
+ get group() {
532
+ return this.sortable.group;
533
+ }
534
+ get initialGroup() {
535
+ return this.sortable.initialGroup;
536
+ }
537
+ }, $ = class extends x {
538
+ constructor(e, t, n) {
539
+ super(e, t), this.sortable = n;
540
+ }
541
+ get index() {
542
+ return this.sortable.index;
543
+ }
544
+ get group() {
545
+ return this.sortable.group;
546
+ }
674
547
  };
548
+ //#endregion
549
+ export { Oe as OptimisticSortingPlugin, Z as Sortable, Q as SortableDraggable, $ as SortableDroppable, I as SortableKeyboardPlugin, Ne as defaultSortableTransition, P as isSortable, he as isSortableOperation };