@eightshift/ui-components 8.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (960) hide show
  1. package/dist/{Autocomplete-BtRn6klq.js → Autocomplete-BUU44AuW.js} +22 -15
  2. package/dist/{Button-9jdCU_L7.js → Button-_E2Z5G2l.js} +14 -14
  3. package/dist/{Dialog-DpHdFPGk.js → Dialog-3XLIaepk.js} +126 -109
  4. package/dist/{Disclosure-B3_qLaUB.js → Disclosure-Dh0z_DEQ.js} +11 -11
  5. package/dist/{FocusScope-CZoILo1u.js → FocusScope-BKGWN6UK.js} +7 -7
  6. package/dist/{Form-khN5PAN7.js → Form-BWMVEpwR.js} +1 -1
  7. package/dist/{Heading-V9tM5XWJ.js → Heading-BWTs9ckA.js} +3 -3
  8. package/dist/{Hidden-ZYMtT5BU.js → Hidden-C4Saxkx9.js} +4 -4
  9. package/dist/{I18nProvider-iRzqGw-D.js → I18nProvider-BskRMK8G.js} +3 -3
  10. package/dist/{Label-D8hcesgs.js → Label-UpU4cKPh.js} +4 -4
  11. package/dist/{List-BNOy0zms.js → List-BKcyZ8tT.js} +6 -6
  12. package/dist/{ListBox-c3TVEPet.js → ListBox-DepY-52g.js} +39 -37
  13. package/dist/{NumberFormatter-CJgo_mTg.js → NumberFormatter-WKBRKiEA.js} +4 -1
  14. package/dist/{PortalProvider-CcgJPJ2x.js → PortalProvider-Dbcc7pHq.js} +2 -2
  15. package/dist/{RadioGroup-DnE-0ISm.js → RadioGroup-Br9Mn9QJ.js} +41 -24
  16. package/dist/{SearchField-D45ndgZB.js → SearchField-q2Fj0L9K.js} +14 -14
  17. package/dist/SelectionIndicator-CyOcB5ps.js +5 -0
  18. package/dist/SharedElementTransition-D1LPCrSc.js +10 -0
  19. package/dist/{Slider-BipPsF_i.js → Slider-B8icnyOo.js} +40 -25
  20. package/dist/{Text-86b6VRkm.js → Text-D4y19vs8.js} +3 -3
  21. package/dist/{VisuallyHidden-CJBnc-Mm.js → VisuallyHidden-B_LZ_kn7.js} +4 -4
  22. package/dist/{animation-DR2fvAP0.js → animation-DpSgtWyu.js} +1 -1
  23. package/dist/assets/fonts/geist-mono-latin-400-normal.woff2 +0 -0
  24. package/dist/assets/fonts/geist-mono-latin-500-normal.woff2 +0 -0
  25. package/dist/assets/fonts/geist-mono-latin-700-normal.woff2 +0 -0
  26. package/dist/assets/fonts/geist-mono-latin-ext-400-normal.woff2 +0 -0
  27. package/dist/assets/fonts/geist-mono-latin-ext-500-normal.woff2 +0 -0
  28. package/dist/assets/fonts/geist-mono-latin-ext-700-normal.woff2 +0 -0
  29. package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
  30. package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
  31. package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
  32. package/dist/assets/style-admin.css +2 -2
  33. package/dist/assets/style-editor.css +2 -2
  34. package/dist/assets/style.css +2 -2
  35. package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
  36. package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
  37. package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
  38. package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
  39. package/dist/assets/wp-overrides/replace-fonts.css +1 -1
  40. package/dist/assets/wp-overrides/restyle-tooltips.css +2 -2
  41. package/dist/assets/wp-overrides/round-corners.css +1 -1
  42. package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
  43. package/dist/{build-module-Bb_b-FCh.js → build-module-DG6ZK7Ty.js} +6 -131
  44. package/dist/{button-Bxmw0hqk.js → button-XSk_8UW7.js} +57 -8
  45. package/dist/{checkbox-BvQwgvc_.js → checkbox-BYaS9tQ5.js} +49 -55
  46. package/dist/{color-swatch-D3QlNt5l.js → color-swatch-6ZEIXej3.js} +18 -12
  47. package/dist/components/animated-visibility/animated-visibility.d.ts +1 -1
  48. package/dist/components/base-control/base-control.d.ts +1 -1
  49. package/dist/components/base-control/base-control.js +1 -1
  50. package/dist/components/base-control/container.d.ts +28 -0
  51. package/dist/components/base-control/container.js +1 -1
  52. package/dist/components/breakpoint-preview/breakpoint-preview.d.ts +1 -1
  53. package/dist/components/button/button.d.ts +2 -2
  54. package/dist/components/button/button.js +1 -1
  55. package/dist/components/checkbox/checkbox.d.ts +1 -1
  56. package/dist/components/checkbox/checkbox.js +1 -1
  57. package/dist/components/color-pickers/color-picker.d.ts +1 -1
  58. package/dist/components/color-pickers/color-picker.js +2 -2
  59. package/dist/components/color-pickers/color-swatch.d.ts +1 -1
  60. package/dist/components/color-pickers/color-swatch.js +1 -1
  61. package/dist/components/color-pickers/gradient-editor.d.ts +2 -1
  62. package/dist/components/color-pickers/gradient-editor.js +1 -1
  63. package/dist/components/color-pickers/solid-color-picker.d.ts +1 -1
  64. package/dist/components/color-pickers/solid-color-picker.js +1 -1
  65. package/dist/components/component-toggle/component-toggle.d.ts +1 -1
  66. package/dist/components/component-toggle/component-toggle.js +5 -4
  67. package/dist/components/container-panel/container-panel.d.ts +1 -1
  68. package/dist/components/container-panel/container-panel.js +3 -3
  69. package/dist/components/contextual-help/contextual-help.d.ts +1 -1
  70. package/dist/components/contextual-help/contextual-help.js +3 -3
  71. package/dist/components/draggable/draggable-handle.d.ts +1 -1
  72. package/dist/components/draggable/draggable.d.ts +1 -1
  73. package/dist/components/draggable/draggable.js +1 -1
  74. package/dist/components/draggable-list/draggable-list-item.d.ts +2 -2
  75. package/dist/components/draggable-list/draggable-list.d.ts +1 -1
  76. package/dist/components/draggable-list/draggable-list.js +2 -2
  77. package/dist/components/expandable/expandable.d.ts +1 -1
  78. package/dist/components/expandable/expandable.js +4 -4
  79. package/dist/components/index.js +14 -14
  80. package/dist/components/input-field/input-field.d.ts +1 -1
  81. package/dist/components/input-field/input-field.js +1 -1
  82. package/dist/components/item-collection/item-collection.d.ts +1 -1
  83. package/dist/components/item-collection/item-collection.js +1 -1
  84. package/dist/components/link-input/link-input.d.ts +1 -1
  85. package/dist/components/link-input/link-input.js +1 -1
  86. package/dist/components/matrix-align/matrix-align.d.ts +1 -1
  87. package/dist/components/matrix-align/matrix-align.js +2 -2
  88. package/dist/components/menu/menu.d.ts +6 -6
  89. package/dist/components/menu/menu.js +4 -4
  90. package/dist/components/modal/modal.d.ts +1 -1
  91. package/dist/components/modal/modal.js +1 -1
  92. package/dist/components/notice/notice.d.ts +1 -1
  93. package/dist/components/number-picker/number-picker.d.ts +1 -1
  94. package/dist/components/number-picker/number-picker.js +1 -1
  95. package/dist/components/option-select/option-select.d.ts +1 -1
  96. package/dist/components/option-select/option-select.js +5 -5
  97. package/dist/components/options-panel/options-panel.d.ts +4 -9
  98. package/dist/components/options-panel/options-panel.js +10 -19
  99. package/dist/components/placeholders/file-picker-shell.d.ts +1 -1
  100. package/dist/components/placeholders/file-picker-shell.js +1 -1
  101. package/dist/components/placeholders/file-placeholder.d.ts +1 -1
  102. package/dist/components/placeholders/file-placeholder.js +1 -1
  103. package/dist/components/placeholders/image-placeholder.d.ts +1 -1
  104. package/dist/components/placeholders/media-placeholder.d.ts +1 -1
  105. package/dist/components/popover/popover.d.ts +2 -2
  106. package/dist/components/popover/popover.js +4 -4
  107. package/dist/components/portal-provider/portal-provider.d.ts +1 -1
  108. package/dist/components/portal-provider/portal-provider.js +1 -1
  109. package/dist/components/radio/radio.d.ts +2 -2
  110. package/dist/components/radio/radio.js +3 -3
  111. package/dist/components/repeater/repeater-item.d.ts +1 -1
  112. package/dist/components/repeater/repeater-item.js +2 -2
  113. package/dist/components/repeater/repeater.d.ts +1 -1
  114. package/dist/components/repeater/repeater.js +3 -3
  115. package/dist/components/responsive/mini-responsive.d.ts +1 -1
  116. package/dist/components/responsive/mini-responsive.js +5 -4
  117. package/dist/components/responsive/responsive-legacy.d.ts +1 -1
  118. package/dist/components/responsive/responsive-legacy.js +5 -4
  119. package/dist/components/responsive/responsive.d.ts +1 -1
  120. package/dist/components/responsive/responsive.js +5 -4
  121. package/dist/components/responsive-preview/responsive-preview.d.ts +1 -1
  122. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  123. package/dist/components/rich-label/rich-label.d.ts +1 -1
  124. package/dist/components/select/async-multi-select.d.ts +1 -1
  125. package/dist/components/select/async-multi-select.js +15 -13
  126. package/dist/components/select/async-select.d.ts +1 -1
  127. package/dist/components/select/async-select.js +13 -12
  128. package/dist/components/select/multi-select.d.ts +1 -1
  129. package/dist/components/select/multi-select.js +17 -14
  130. package/dist/components/select/shared.d.ts +2 -2
  131. package/dist/components/select/shared.js +1 -1
  132. package/dist/components/select/single-select.d.ts +1 -1
  133. package/dist/components/select/single-select.js +11 -11
  134. package/dist/components/select/styles.js +1 -1
  135. package/dist/components/slider/column-config-slider.d.ts +2 -2
  136. package/dist/components/slider/column-config-slider.js +5 -4
  137. package/dist/components/slider/slider.d.ts +1 -1
  138. package/dist/components/slider/slider.js +5 -5
  139. package/dist/components/slider/utils.js +2 -1
  140. package/dist/components/smart-image/smart-image.d.ts +1 -1
  141. package/dist/components/smart-image/smart-image.js +4 -3
  142. package/dist/components/spacer/spacer.d.ts +1 -1
  143. package/dist/components/tabs/tabs.d.ts +4 -4
  144. package/dist/components/tabs/tabs.js +1 -1
  145. package/dist/components/toggle/switch.d.ts +1 -1
  146. package/dist/components/toggle/switch.js +1 -1
  147. package/dist/components/toggle/toggle.d.ts +1 -1
  148. package/dist/components/toggle/toggle.js +2 -2
  149. package/dist/components/toggle-button/toggle-button.d.ts +1 -1
  150. package/dist/components/toggle-button/toggle-button.js +1 -1
  151. package/dist/components/tooltip/tooltip.d.ts +2 -2
  152. package/dist/components/tooltip/tooltip.js +1 -1
  153. package/dist/{dist-yhJVnp08.js → dist-DpXluZqJ.js} +3 -2
  154. package/dist/{draggable-ByXjMHm6.js → draggable-9MfdTVWP.js} +978 -612
  155. package/dist/{gradient-editor-D5-_PaH7.js → gradient-editor-yqSw0uPA.js} +8 -6
  156. package/dist/icons/icon.d.ts +1 -1
  157. package/dist/icons/icon.js +3 -3
  158. package/dist/icons/index.js +1 -1
  159. package/dist/icons/jsx-svg.js +1 -1
  160. package/dist/icons/ui-icons/a11y-warning.d.ts +1 -1
  161. package/dist/icons/ui-icons/a11y.d.ts +1 -1
  162. package/dist/icons/ui-icons/accelerometer.d.ts +1 -1
  163. package/dist/icons/ui-icons/activity-log.d.ts +1 -1
  164. package/dist/icons/ui-icons/add.d.ts +1 -1
  165. package/dist/icons/ui-icons/alert.d.ts +1 -1
  166. package/dist/icons/ui-icons/align-horizontal-vertical-alt.d.ts +1 -1
  167. package/dist/icons/ui-icons/align-horizontal-vertical-alt2.d.ts +1 -1
  168. package/dist/icons/ui-icons/align-horizontal-vertical.d.ts +1 -1
  169. package/dist/icons/ui-icons/alt-text-generic-alt.d.ts +1 -1
  170. package/dist/icons/ui-icons/alt-text-generic.d.ts +1 -1
  171. package/dist/icons/ui-icons/alt-text.d.ts +1 -1
  172. package/dist/icons/ui-icons/anchor-page.d.ts +1 -1
  173. package/dist/icons/ui-icons/anchor.d.ts +1 -1
  174. package/dist/icons/ui-icons/angle.d.ts +1 -1
  175. package/dist/icons/ui-icons/animation-file.d.ts +1 -1
  176. package/dist/icons/ui-icons/animation-generic.d.ts +1 -1
  177. package/dist/icons/ui-icons/animation-list-generic.d.ts +1 -1
  178. package/dist/icons/ui-icons/animation-settings-generic.d.ts +1 -1
  179. package/dist/icons/ui-icons/animation.d.ts +1 -1
  180. package/dist/icons/ui-icons/archive-file.d.ts +1 -1
  181. package/dist/icons/ui-icons/archive.d.ts +1 -1
  182. package/dist/icons/ui-icons/aria-label.d.ts +1 -1
  183. package/dist/icons/ui-icons/arrow-down-circle-alt.d.ts +1 -1
  184. package/dist/icons/ui-icons/arrow-down-circle.d.ts +1 -1
  185. package/dist/icons/ui-icons/arrow-down-square-alt.d.ts +1 -1
  186. package/dist/icons/ui-icons/arrow-down-square.d.ts +1 -1
  187. package/dist/icons/ui-icons/arrow-down.d.ts +1 -1
  188. package/dist/icons/ui-icons/arrow-left-circle-alt.d.ts +1 -1
  189. package/dist/icons/ui-icons/arrow-left-circle.d.ts +1 -1
  190. package/dist/icons/ui-icons/arrow-left-square-alt.d.ts +1 -1
  191. package/dist/icons/ui-icons/arrow-left-square.d.ts +1 -1
  192. package/dist/icons/ui-icons/arrow-left.d.ts +1 -1
  193. package/dist/icons/ui-icons/arrow-right-circle-alt.d.ts +1 -1
  194. package/dist/icons/ui-icons/arrow-right-circle.d.ts +1 -1
  195. package/dist/icons/ui-icons/arrow-right-square-alt.d.ts +1 -1
  196. package/dist/icons/ui-icons/arrow-right-square.d.ts +1 -1
  197. package/dist/icons/ui-icons/arrow-right.d.ts +1 -1
  198. package/dist/icons/ui-icons/arrow-up-circle-alt.d.ts +1 -1
  199. package/dist/icons/ui-icons/arrow-up-circle.d.ts +1 -1
  200. package/dist/icons/ui-icons/arrow-up-square-alt.d.ts +1 -1
  201. package/dist/icons/ui-icons/arrow-up-square.d.ts +1 -1
  202. package/dist/icons/ui-icons/arrow-up.d.ts +1 -1
  203. package/dist/icons/ui-icons/arrows-down.d.ts +1 -1
  204. package/dist/icons/ui-icons/arrows-horizontal.d.ts +1 -1
  205. package/dist/icons/ui-icons/arrows-left-diagonal.d.ts +1 -1
  206. package/dist/icons/ui-icons/arrows-left.d.ts +1 -1
  207. package/dist/icons/ui-icons/arrows-right-diagonal.d.ts +1 -1
  208. package/dist/icons/ui-icons/arrows-right.d.ts +1 -1
  209. package/dist/icons/ui-icons/arrows-up.d.ts +1 -1
  210. package/dist/icons/ui-icons/arrows-vertical.d.ts +1 -1
  211. package/dist/icons/ui-icons/aspect-ratio-auto.d.ts +1 -1
  212. package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.d.ts +1 -1
  213. package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.d.ts +1 -1
  214. package/dist/icons/ui-icons/aspect-ratio-square.d.ts +1 -1
  215. package/dist/icons/ui-icons/aspect-ratio-three-two.d.ts +1 -1
  216. package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.d.ts +1 -1
  217. package/dist/icons/ui-icons/aspect-ratio.d.ts +1 -1
  218. package/dist/icons/ui-icons/attachment.d.ts +1 -1
  219. package/dist/icons/ui-icons/auto-close.d.ts +1 -1
  220. package/dist/icons/ui-icons/auto-pause-scroll.d.ts +1 -1
  221. package/dist/icons/ui-icons/auto-pause.d.ts +1 -1
  222. package/dist/icons/ui-icons/automatic-alt.d.ts +1 -1
  223. package/dist/icons/ui-icons/automatic.d.ts +1 -1
  224. package/dist/icons/ui-icons/autoplay-alt.d.ts +1 -1
  225. package/dist/icons/ui-icons/autoplay-alt2.d.ts +1 -1
  226. package/dist/icons/ui-icons/autoplay.d.ts +1 -1
  227. package/dist/icons/ui-icons/award.d.ts +1 -1
  228. package/dist/icons/ui-icons/background-blur.d.ts +1 -1
  229. package/dist/icons/ui-icons/background-color-swatch.d.ts +1 -1
  230. package/dist/icons/ui-icons/background-image.d.ts +1 -1
  231. package/dist/icons/ui-icons/background-repeat.d.ts +1 -1
  232. package/dist/icons/ui-icons/background-type-alt.d.ts +1 -1
  233. package/dist/icons/ui-icons/background-type-alt2.d.ts +1 -1
  234. package/dist/icons/ui-icons/background-type.d.ts +1 -1
  235. package/dist/icons/ui-icons/block-parts.d.ts +1 -1
  236. package/dist/icons/ui-icons/bold.d.ts +1 -1
  237. package/dist/icons/ui-icons/book.d.ts +1 -1
  238. package/dist/icons/ui-icons/bookmark.d.ts +1 -1
  239. package/dist/icons/ui-icons/boolean-exclude.d.ts +1 -1
  240. package/dist/icons/ui-icons/boolean-intersect.d.ts +1 -1
  241. package/dist/icons/ui-icons/boolean-subtract.d.ts +1 -1
  242. package/dist/icons/ui-icons/boolean-union.d.ts +1 -1
  243. package/dist/icons/ui-icons/border-color.d.ts +1 -1
  244. package/dist/icons/ui-icons/border.d.ts +1 -1
  245. package/dist/icons/ui-icons/bot-deny.d.ts +1 -1
  246. package/dist/icons/ui-icons/bot.d.ts +1 -1
  247. package/dist/icons/ui-icons/box.d.ts +1 -1
  248. package/dist/icons/ui-icons/brain.d.ts +1 -1
  249. package/dist/icons/ui-icons/branch-fork.d.ts +1 -1
  250. package/dist/icons/ui-icons/branch.d.ts +1 -1
  251. package/dist/icons/ui-icons/briefcase.d.ts +1 -1
  252. package/dist/icons/ui-icons/browser.d.ts +1 -1
  253. package/dist/icons/ui-icons/button-disabled.d.ts +1 -1
  254. package/dist/icons/ui-icons/button-filled.d.ts +1 -1
  255. package/dist/icons/ui-icons/button-ghost.d.ts +1 -1
  256. package/dist/icons/ui-icons/button-outline.d.ts +1 -1
  257. package/dist/icons/ui-icons/calculator.d.ts +1 -1
  258. package/dist/icons/ui-icons/calendar-add.d.ts +1 -1
  259. package/dist/icons/ui-icons/calendar-download.d.ts +1 -1
  260. package/dist/icons/ui-icons/calendar-remove.d.ts +1 -1
  261. package/dist/icons/ui-icons/calendar.d.ts +1 -1
  262. package/dist/icons/ui-icons/caption-generic.d.ts +1 -1
  263. package/dist/icons/ui-icons/card-featured.d.ts +1 -1
  264. package/dist/icons/ui-icons/caret-down-fill.d.ts +1 -1
  265. package/dist/icons/ui-icons/caret-down.d.ts +1 -1
  266. package/dist/icons/ui-icons/caret-left-fill.d.ts +1 -1
  267. package/dist/icons/ui-icons/caret-left.d.ts +1 -1
  268. package/dist/icons/ui-icons/caret-right-fill.d.ts +1 -1
  269. package/dist/icons/ui-icons/caret-right.d.ts +1 -1
  270. package/dist/icons/ui-icons/caret-up-fill.d.ts +1 -1
  271. package/dist/icons/ui-icons/caret-up.d.ts +1 -1
  272. package/dist/icons/ui-icons/center-point.d.ts +1 -1
  273. package/dist/icons/ui-icons/chat-bubble-alt.d.ts +1 -1
  274. package/dist/icons/ui-icons/chat-bubble.d.ts +1 -1
  275. package/dist/icons/ui-icons/chat.d.ts +1 -1
  276. package/dist/icons/ui-icons/check-circle-fill-transparent.d.ts +1 -1
  277. package/dist/icons/ui-icons/check-circle-fill.d.ts +1 -1
  278. package/dist/icons/ui-icons/check-circle.d.ts +1 -1
  279. package/dist/icons/ui-icons/check-square.d.ts +1 -1
  280. package/dist/icons/ui-icons/check.d.ts +1 -1
  281. package/dist/icons/ui-icons/checks-circle.d.ts +1 -1
  282. package/dist/icons/ui-icons/checks.d.ts +1 -1
  283. package/dist/icons/ui-icons/chevron-down.d.ts +1 -1
  284. package/dist/icons/ui-icons/chevron-left.d.ts +1 -1
  285. package/dist/icons/ui-icons/chevron-right.d.ts +1 -1
  286. package/dist/icons/ui-icons/chevron-up.d.ts +1 -1
  287. package/dist/icons/ui-icons/clear-alt.d.ts +1 -1
  288. package/dist/icons/ui-icons/clear.d.ts +1 -1
  289. package/dist/icons/ui-icons/clipboard-plain.d.ts +1 -1
  290. package/dist/icons/ui-icons/clipboard.d.ts +1 -1
  291. package/dist/icons/ui-icons/clock.d.ts +1 -1
  292. package/dist/icons/ui-icons/closed-captions.d.ts +1 -1
  293. package/dist/icons/ui-icons/code-variable.d.ts +1 -1
  294. package/dist/icons/ui-icons/code.d.ts +1 -1
  295. package/dist/icons/ui-icons/color-alt.d.ts +1 -1
  296. package/dist/icons/ui-icons/color-fill-swatch.d.ts +1 -1
  297. package/dist/icons/ui-icons/color-picker-fill.d.ts +1 -1
  298. package/dist/icons/ui-icons/color-picker-list-marker.d.ts +1 -1
  299. package/dist/icons/ui-icons/color-picker-text-highlight.d.ts +1 -1
  300. package/dist/icons/ui-icons/color-picker-text.d.ts +1 -1
  301. package/dist/icons/ui-icons/color-select.d.ts +1 -1
  302. package/dist/icons/ui-icons/color.d.ts +1 -1
  303. package/dist/icons/ui-icons/column-gutters-lr.d.ts +1 -1
  304. package/dist/icons/ui-icons/columns.d.ts +1 -1
  305. package/dist/icons/ui-icons/columns3366.d.ts +1 -1
  306. package/dist/icons/ui-icons/columns6633.d.ts +1 -1
  307. package/dist/icons/ui-icons/component-generic.d.ts +1 -1
  308. package/dist/icons/ui-icons/component-options.d.ts +1 -1
  309. package/dist/icons/ui-icons/condition-h.d.ts +1 -1
  310. package/dist/icons/ui-icons/condition-v.d.ts +1 -1
  311. package/dist/icons/ui-icons/conditional-visibility.d.ts +1 -1
  312. package/dist/icons/ui-icons/container-height.d.ts +1 -1
  313. package/dist/icons/ui-icons/container-spacing-h.d.ts +1 -1
  314. package/dist/icons/ui-icons/container-spacing.d.ts +1 -1
  315. package/dist/icons/ui-icons/container-width.d.ts +1 -1
  316. package/dist/icons/ui-icons/content-bottom-left.d.ts +1 -1
  317. package/dist/icons/ui-icons/content-bottom-right.d.ts +1 -1
  318. package/dist/icons/ui-icons/content-center.d.ts +1 -1
  319. package/dist/icons/ui-icons/content-top-left.d.ts +1 -1
  320. package/dist/icons/ui-icons/content-top-right.d.ts +1 -1
  321. package/dist/icons/ui-icons/contrast-alt.d.ts +1 -1
  322. package/dist/icons/ui-icons/contrast.d.ts +1 -1
  323. package/dist/icons/ui-icons/cookie-alt.d.ts +1 -1
  324. package/dist/icons/ui-icons/cookie.d.ts +1 -1
  325. package/dist/icons/ui-icons/copy.d.ts +1 -1
  326. package/dist/icons/ui-icons/currency.d.ts +1 -1
  327. package/dist/icons/ui-icons/current-page.d.ts +1 -1
  328. package/dist/icons/ui-icons/cursor-disabled.d.ts +1 -1
  329. package/dist/icons/ui-icons/cursor-move.d.ts +1 -1
  330. package/dist/icons/ui-icons/dark-mode.d.ts +1 -1
  331. package/dist/icons/ui-icons/data.d.ts +1 -1
  332. package/dist/icons/ui-icons/date-time.d.ts +1 -1
  333. package/dist/icons/ui-icons/defer.d.ts +1 -1
  334. package/dist/icons/ui-icons/description-link.d.ts +1 -1
  335. package/dist/icons/ui-icons/design.d.ts +1 -1
  336. package/dist/icons/ui-icons/dice.d.ts +1 -1
  337. package/dist/icons/ui-icons/divider-bottom.d.ts +1 -1
  338. package/dist/icons/ui-icons/divider-side.d.ts +1 -1
  339. package/dist/icons/ui-icons/divider-status.d.ts +1 -1
  340. package/dist/icons/ui-icons/divider-top.d.ts +1 -1
  341. package/dist/icons/ui-icons/divider.d.ts +1 -1
  342. package/dist/icons/ui-icons/door-in.d.ts +1 -1
  343. package/dist/icons/ui-icons/door-out.d.ts +1 -1
  344. package/dist/icons/ui-icons/door.d.ts +1 -1
  345. package/dist/icons/ui-icons/download.d.ts +1 -1
  346. package/dist/icons/ui-icons/dropdown-caret-alt.d.ts +1 -1
  347. package/dist/icons/ui-icons/dropdown-caret.d.ts +1 -1
  348. package/dist/icons/ui-icons/dropdown-close.d.ts +1 -1
  349. package/dist/icons/ui-icons/dropdown-open.d.ts +1 -1
  350. package/dist/icons/ui-icons/dropdown.d.ts +1 -1
  351. package/dist/icons/ui-icons/dummy-spacer.d.ts +1 -1
  352. package/dist/icons/ui-icons/edit-options.d.ts +1 -1
  353. package/dist/icons/ui-icons/edit.d.ts +1 -1
  354. package/dist/icons/ui-icons/email-remove.d.ts +1 -1
  355. package/dist/icons/ui-icons/email.d.ts +1 -1
  356. package/dist/icons/ui-icons/embed.d.ts +1 -1
  357. package/dist/icons/ui-icons/empty-circle.d.ts +1 -1
  358. package/dist/icons/ui-icons/empty-rect.d.ts +1 -1
  359. package/dist/icons/ui-icons/equal-columns.d.ts +1 -1
  360. package/dist/icons/ui-icons/equal-rows.d.ts +1 -1
  361. package/dist/icons/ui-icons/equals.d.ts +1 -1
  362. package/dist/icons/ui-icons/error-circle-fill-transparent.d.ts +1 -1
  363. package/dist/icons/ui-icons/error-circle-fill.d.ts +1 -1
  364. package/dist/icons/ui-icons/error-circle.d.ts +1 -1
  365. package/dist/icons/ui-icons/exclude-item-alt.d.ts +1 -1
  366. package/dist/icons/ui-icons/exclude-item.d.ts +1 -1
  367. package/dist/icons/ui-icons/exclude.d.ts +1 -1
  368. package/dist/icons/ui-icons/expand-xl.d.ts +1 -1
  369. package/dist/icons/ui-icons/expand.d.ts +1 -1
  370. package/dist/icons/ui-icons/experiment.d.ts +1 -1
  371. package/dist/icons/ui-icons/external-link.d.ts +1 -1
  372. package/dist/icons/ui-icons/extract-alt.d.ts +1 -1
  373. package/dist/icons/ui-icons/extract.d.ts +1 -1
  374. package/dist/icons/ui-icons/eyedropper.d.ts +1 -1
  375. package/dist/icons/ui-icons/fast-forward.d.ts +1 -1
  376. package/dist/icons/ui-icons/fast-reverse.d.ts +1 -1
  377. package/dist/icons/ui-icons/field-after-text.d.ts +1 -1
  378. package/dist/icons/ui-icons/field-before-text.d.ts +1 -1
  379. package/dist/icons/ui-icons/field-disabled.d.ts +1 -1
  380. package/dist/icons/ui-icons/field-help.d.ts +1 -1
  381. package/dist/icons/ui-icons/field-label.d.ts +1 -1
  382. package/dist/icons/ui-icons/field-name.d.ts +1 -1
  383. package/dist/icons/ui-icons/field-placeholder.d.ts +1 -1
  384. package/dist/icons/ui-icons/field-readonly.d.ts +1 -1
  385. package/dist/icons/ui-icons/field-required.d.ts +1 -1
  386. package/dist/icons/ui-icons/field-type.d.ts +1 -1
  387. package/dist/icons/ui-icons/field-value.d.ts +1 -1
  388. package/dist/icons/ui-icons/field-width.d.ts +1 -1
  389. package/dist/icons/ui-icons/file-download.d.ts +1 -1
  390. package/dist/icons/ui-icons/file-error.d.ts +1 -1
  391. package/dist/icons/ui-icons/file-metadata.d.ts +1 -1
  392. package/dist/icons/ui-icons/file-pdf.d.ts +1 -1
  393. package/dist/icons/ui-icons/file-size-max.d.ts +1 -1
  394. package/dist/icons/ui-icons/file-size-min.d.ts +1 -1
  395. package/dist/icons/ui-icons/file-size.d.ts +1 -1
  396. package/dist/icons/ui-icons/file-type.d.ts +1 -1
  397. package/dist/icons/ui-icons/file-upload.d.ts +1 -1
  398. package/dist/icons/ui-icons/file.d.ts +1 -1
  399. package/dist/icons/ui-icons/files.d.ts +1 -1
  400. package/dist/icons/ui-icons/fill-color.d.ts +1 -1
  401. package/dist/icons/ui-icons/filter-alt.d.ts +1 -1
  402. package/dist/icons/ui-icons/filter.d.ts +1 -1
  403. package/dist/icons/ui-icons/flag-alt.d.ts +1 -1
  404. package/dist/icons/ui-icons/flag.d.ts +1 -1
  405. package/dist/icons/ui-icons/flip-h.d.ts +1 -1
  406. package/dist/icons/ui-icons/flip-v.d.ts +1 -1
  407. package/dist/icons/ui-icons/focus.d.ts +1 -1
  408. package/dist/icons/ui-icons/folder-add.d.ts +1 -1
  409. package/dist/icons/ui-icons/folder-open-solid.d.ts +1 -1
  410. package/dist/icons/ui-icons/folder-open.d.ts +1 -1
  411. package/dist/icons/ui-icons/folder-solid.d.ts +1 -1
  412. package/dist/icons/ui-icons/folder-top-level.d.ts +1 -1
  413. package/dist/icons/ui-icons/folder.d.ts +1 -1
  414. package/dist/icons/ui-icons/font-family.d.ts +1 -1
  415. package/dist/icons/ui-icons/footer.d.ts +1 -1
  416. package/dist/icons/ui-icons/form-alt.d.ts +1 -1
  417. package/dist/icons/ui-icons/form.d.ts +1 -1
  418. package/dist/icons/ui-icons/four-columns.d.ts +1 -1
  419. package/dist/icons/ui-icons/frame.d.ts +1 -1
  420. package/dist/icons/ui-icons/full-max-shield.d.ts +1 -1
  421. package/dist/icons/ui-icons/full-max-text.d.ts +1 -1
  422. package/dist/icons/ui-icons/full-width-image.d.ts +1 -1
  423. package/dist/icons/ui-icons/gears-fill.d.ts +1 -1
  424. package/dist/icons/ui-icons/gears.d.ts +1 -1
  425. package/dist/icons/ui-icons/generic-color-swatch.d.ts +1 -1
  426. package/dist/icons/ui-icons/generic-shapes-alt.d.ts +1 -1
  427. package/dist/icons/ui-icons/generic-shapes.d.ts +1 -1
  428. package/dist/icons/ui-icons/globe-anchor.d.ts +1 -1
  429. package/dist/icons/ui-icons/globe-hash.d.ts +1 -1
  430. package/dist/icons/ui-icons/globe.d.ts +1 -1
  431. package/dist/icons/ui-icons/google-tag-manager.d.ts +1 -1
  432. package/dist/icons/ui-icons/gradient-repeat.d.ts +1 -1
  433. package/dist/icons/ui-icons/gradient-stop.d.ts +1 -1
  434. package/dist/icons/ui-icons/gradient.d.ts +1 -1
  435. package/dist/icons/ui-icons/grid-alt.d.ts +1 -1
  436. package/dist/icons/ui-icons/grid-auto-cols.d.ts +1 -1
  437. package/dist/icons/ui-icons/grid-auto-rows.d.ts +1 -1
  438. package/dist/icons/ui-icons/grid-col.d.ts +1 -1
  439. package/dist/icons/ui-icons/grid-height.d.ts +1 -1
  440. package/dist/icons/ui-icons/grid-list-toggle.d.ts +1 -1
  441. package/dist/icons/ui-icons/grid-manual.d.ts +1 -1
  442. package/dist/icons/ui-icons/grid-row.d.ts +1 -1
  443. package/dist/icons/ui-icons/grid-width.d.ts +1 -1
  444. package/dist/icons/ui-icons/group.d.ts +1 -1
  445. package/dist/icons/ui-icons/gutter.d.ts +1 -1
  446. package/dist/icons/ui-icons/gyroscope.d.ts +1 -1
  447. package/dist/icons/ui-icons/h1.d.ts +1 -1
  448. package/dist/icons/ui-icons/h2.d.ts +1 -1
  449. package/dist/icons/ui-icons/h3.d.ts +1 -1
  450. package/dist/icons/ui-icons/h4.d.ts +1 -1
  451. package/dist/icons/ui-icons/h5.d.ts +1 -1
  452. package/dist/icons/ui-icons/h6.d.ts +1 -1
  453. package/dist/icons/ui-icons/hamburger-menu.d.ts +1 -1
  454. package/dist/icons/ui-icons/hard-drive.d.ts +1 -1
  455. package/dist/icons/ui-icons/header.d.ts +1 -1
  456. package/dist/icons/ui-icons/heading-level-alt.d.ts +1 -1
  457. package/dist/icons/ui-icons/heading-level.d.ts +1 -1
  458. package/dist/icons/ui-icons/heading.d.ts +1 -1
  459. package/dist/icons/ui-icons/heart-fill-transparent.d.ts +1 -1
  460. package/dist/icons/ui-icons/heart-fill.d.ts +1 -1
  461. package/dist/icons/ui-icons/heart.d.ts +1 -1
  462. package/dist/icons/ui-icons/height.d.ts +1 -1
  463. package/dist/icons/ui-icons/help-alt.d.ts +1 -1
  464. package/dist/icons/ui-icons/help-fill.d.ts +1 -1
  465. package/dist/icons/ui-icons/help.d.ts +1 -1
  466. package/dist/icons/ui-icons/hide.d.ts +1 -1
  467. package/dist/icons/ui-icons/highlighted-checkmark.d.ts +1 -1
  468. package/dist/icons/ui-icons/highlighted-exclamation-mark.d.ts +1 -1
  469. package/dist/icons/ui-icons/history.d.ts +1 -1
  470. package/dist/icons/ui-icons/horizontal-align-alt.d.ts +1 -1
  471. package/dist/icons/ui-icons/horizontal-align-around.d.ts +1 -1
  472. package/dist/icons/ui-icons/horizontal-align-between-alt.d.ts +1 -1
  473. package/dist/icons/ui-icons/horizontal-align-between.d.ts +1 -1
  474. package/dist/icons/ui-icons/horizontal-align-center.d.ts +1 -1
  475. package/dist/icons/ui-icons/horizontal-align-evenly.d.ts +1 -1
  476. package/dist/icons/ui-icons/horizontal-align-left.d.ts +1 -1
  477. package/dist/icons/ui-icons/horizontal-align-right.d.ts +1 -1
  478. package/dist/icons/ui-icons/horizontal-align-stretch.d.ts +1 -1
  479. package/dist/icons/ui-icons/horizontal-align.d.ts +1 -1
  480. package/dist/icons/ui-icons/hover-background-glow.d.ts +1 -1
  481. package/dist/icons/ui-icons/hover-background-type.d.ts +1 -1
  482. package/dist/icons/ui-icons/hover-invert-object.d.ts +1 -1
  483. package/dist/icons/ui-icons/hover-invert-text.d.ts +1 -1
  484. package/dist/icons/ui-icons/hover-rotate.d.ts +1 -1
  485. package/dist/icons/ui-icons/hover-zoom.d.ts +1 -1
  486. package/dist/icons/ui-icons/hyphenate-alt.d.ts +1 -1
  487. package/dist/icons/ui-icons/hyphenate-alt2.d.ts +1 -1
  488. package/dist/icons/ui-icons/hyphenate.d.ts +1 -1
  489. package/dist/icons/ui-icons/icon-generic.d.ts +1 -1
  490. package/dist/icons/ui-icons/id-card.d.ts +1 -1
  491. package/dist/icons/ui-icons/id.d.ts +1 -1
  492. package/dist/icons/ui-icons/image-blur.d.ts +1 -1
  493. package/dist/icons/ui-icons/image-caption.d.ts +1 -1
  494. package/dist/icons/ui-icons/image-error.d.ts +1 -1
  495. package/dist/icons/ui-icons/image-file.d.ts +1 -1
  496. package/dist/icons/ui-icons/image-lazy-load.d.ts +1 -1
  497. package/dist/icons/ui-icons/image-opacity.d.ts +1 -1
  498. package/dist/icons/ui-icons/image-overlay-alt.d.ts +1 -1
  499. package/dist/icons/ui-icons/image-overlay-alt2.d.ts +1 -1
  500. package/dist/icons/ui-icons/image-overlay.d.ts +1 -1
  501. package/dist/icons/ui-icons/image-remove.d.ts +1 -1
  502. package/dist/icons/ui-icons/image.d.ts +1 -1
  503. package/dist/icons/ui-icons/info-circle-fill-transparent.d.ts +1 -1
  504. package/dist/icons/ui-icons/info-circle-fill.d.ts +1 -1
  505. package/dist/icons/ui-icons/info-circle.d.ts +1 -1
  506. package/dist/icons/ui-icons/info.d.ts +1 -1
  507. package/dist/icons/ui-icons/inherit.d.ts +1 -1
  508. package/dist/icons/ui-icons/inline-gradient-format.d.ts +1 -1
  509. package/dist/icons/ui-icons/input-field.d.ts +1 -1
  510. package/dist/icons/ui-icons/italic.d.ts +1 -1
  511. package/dist/icons/ui-icons/item-limit.d.ts +1 -1
  512. package/dist/icons/ui-icons/item-select.d.ts +1 -1
  513. package/dist/icons/ui-icons/item-wrap.d.ts +1 -1
  514. package/dist/icons/ui-icons/items-per-page.d.ts +1 -1
  515. package/dist/icons/ui-icons/items-per-row.d.ts +1 -1
  516. package/dist/icons/ui-icons/key.d.ts +1 -1
  517. package/dist/icons/ui-icons/keyboard.d.ts +1 -1
  518. package/dist/icons/ui-icons/large.d.ts +1 -1
  519. package/dist/icons/ui-icons/latest-posts.d.ts +1 -1
  520. package/dist/icons/ui-icons/layer-off.d.ts +1 -1
  521. package/dist/icons/ui-icons/layer.d.ts +1 -1
  522. package/dist/icons/ui-icons/layers.d.ts +1 -1
  523. package/dist/icons/ui-icons/layout-alt.d.ts +1 -1
  524. package/dist/icons/ui-icons/layout-alt2.d.ts +1 -1
  525. package/dist/icons/ui-icons/layout-alt3.d.ts +1 -1
  526. package/dist/icons/ui-icons/layout-alt4.d.ts +1 -1
  527. package/dist/icons/ui-icons/layout-bento-box.d.ts +1 -1
  528. package/dist/icons/ui-icons/layout-masonry.d.ts +1 -1
  529. package/dist/icons/ui-icons/layout.d.ts +1 -1
  530. package/dist/icons/ui-icons/left-panel-alt.d.ts +1 -1
  531. package/dist/icons/ui-icons/left-panel.d.ts +1 -1
  532. package/dist/icons/ui-icons/light-bulb-alt.d.ts +1 -1
  533. package/dist/icons/ui-icons/light-bulb.d.ts +1 -1
  534. package/dist/icons/ui-icons/light-mode.d.ts +1 -1
  535. package/dist/icons/ui-icons/limit-width.d.ts +1 -1
  536. package/dist/icons/ui-icons/line-break-alt-off.d.ts +1 -1
  537. package/dist/icons/ui-icons/line-break-alt.d.ts +1 -1
  538. package/dist/icons/ui-icons/line-break-off-alt.d.ts +1 -1
  539. package/dist/icons/ui-icons/line-break-off.d.ts +1 -1
  540. package/dist/icons/ui-icons/line-break.d.ts +1 -1
  541. package/dist/icons/ui-icons/line-breaks-hyphenation.d.ts +1 -1
  542. package/dist/icons/ui-icons/link-add.d.ts +1 -1
  543. package/dist/icons/ui-icons/link-nav.d.ts +1 -1
  544. package/dist/icons/ui-icons/link-remove.d.ts +1 -1
  545. package/dist/icons/ui-icons/link.d.ts +1 -1
  546. package/dist/icons/ui-icons/list-indent.d.ts +1 -1
  547. package/dist/icons/ui-icons/list-ordered.d.ts +1 -1
  548. package/dist/icons/ui-icons/list-outdent.d.ts +1 -1
  549. package/dist/icons/ui-icons/list-unordered.d.ts +1 -1
  550. package/dist/icons/ui-icons/loader-alt.d.ts +1 -1
  551. package/dist/icons/ui-icons/loader.d.ts +1 -1
  552. package/dist/icons/ui-icons/location-add.d.ts +1 -1
  553. package/dist/icons/ui-icons/location-allow.d.ts +1 -1
  554. package/dist/icons/ui-icons/location-deny.d.ts +1 -1
  555. package/dist/icons/ui-icons/location-settings.d.ts +1 -1
  556. package/dist/icons/ui-icons/location.d.ts +1 -1
  557. package/dist/icons/ui-icons/lock.d.ts +1 -1
  558. package/dist/icons/ui-icons/loop-mode.d.ts +1 -1
  559. package/dist/icons/ui-icons/magic-alt-fill-transparent.d.ts +1 -1
  560. package/dist/icons/ui-icons/magic-alt-fill.d.ts +1 -1
  561. package/dist/icons/ui-icons/magic-alt.d.ts +1 -1
  562. package/dist/icons/ui-icons/magic-fill-transparent.d.ts +1 -1
  563. package/dist/icons/ui-icons/magic-fill.d.ts +1 -1
  564. package/dist/icons/ui-icons/magic.d.ts +1 -1
  565. package/dist/icons/ui-icons/map-layer-json.d.ts +1 -1
  566. package/dist/icons/ui-icons/map-layer-raster.d.ts +1 -1
  567. package/dist/icons/ui-icons/map-layer-vector.d.ts +1 -1
  568. package/dist/icons/ui-icons/map-layer.d.ts +1 -1
  569. package/dist/icons/ui-icons/map-pin.d.ts +1 -1
  570. package/dist/icons/ui-icons/matrix-align-control-dot-active.d.ts +1 -1
  571. package/dist/icons/ui-icons/matrix-align-control-dot-inactive.d.ts +1 -1
  572. package/dist/icons/ui-icons/media.d.ts +1 -1
  573. package/dist/icons/ui-icons/medium.d.ts +1 -1
  574. package/dist/icons/ui-icons/menu-item-check.d.ts +1 -1
  575. package/dist/icons/ui-icons/menu-item-circle.d.ts +1 -1
  576. package/dist/icons/ui-icons/microphone.d.ts +1 -1
  577. package/dist/icons/ui-icons/migration-alt-v.d.ts +1 -1
  578. package/dist/icons/ui-icons/migration-alt.d.ts +1 -1
  579. package/dist/icons/ui-icons/migration.d.ts +1 -1
  580. package/dist/icons/ui-icons/module.d.ts +1 -1
  581. package/dist/icons/ui-icons/money-paper.d.ts +1 -1
  582. package/dist/icons/ui-icons/more-h-circle.d.ts +1 -1
  583. package/dist/icons/ui-icons/more-h.d.ts +1 -1
  584. package/dist/icons/ui-icons/more-v-circle.d.ts +1 -1
  585. package/dist/icons/ui-icons/more-v.d.ts +1 -1
  586. package/dist/icons/ui-icons/mouse-cursor.d.ts +1 -1
  587. package/dist/icons/ui-icons/mouse-wheel.d.ts +1 -1
  588. package/dist/icons/ui-icons/multi-item-left-inset-mobile.d.ts +1 -1
  589. package/dist/icons/ui-icons/multi-item-left-inset.d.ts +1 -1
  590. package/dist/icons/ui-icons/multi-item-right-inset-mobile.d.ts +1 -1
  591. package/dist/icons/ui-icons/multi-item-right-inset.d.ts +1 -1
  592. package/dist/icons/ui-icons/multiple.d.ts +1 -1
  593. package/dist/icons/ui-icons/music-note.d.ts +1 -1
  594. package/dist/icons/ui-icons/mute-centered.d.ts +1 -1
  595. package/dist/icons/ui-icons/mute.d.ts +1 -1
  596. package/dist/icons/ui-icons/narrow-bottom.d.ts +1 -1
  597. package/dist/icons/ui-icons/narrow-left.d.ts +1 -1
  598. package/dist/icons/ui-icons/narrow-right.d.ts +1 -1
  599. package/dist/icons/ui-icons/narrow-top.d.ts +1 -1
  600. package/dist/icons/ui-icons/navigation-buttons.d.ts +1 -1
  601. package/dist/icons/ui-icons/new-tab.d.ts +1 -1
  602. package/dist/icons/ui-icons/newspaper.d.ts +1 -1
  603. package/dist/icons/ui-icons/none.d.ts +1 -1
  604. package/dist/icons/ui-icons/notebook.d.ts +1 -1
  605. package/dist/icons/ui-icons/num0-circle-alt.d.ts +1 -1
  606. package/dist/icons/ui-icons/num0-circle.d.ts +1 -1
  607. package/dist/icons/ui-icons/num0-square-alt.d.ts +1 -1
  608. package/dist/icons/ui-icons/num0-square.d.ts +1 -1
  609. package/dist/icons/ui-icons/num1-circle-alt.d.ts +1 -1
  610. package/dist/icons/ui-icons/num1-circle.d.ts +1 -1
  611. package/dist/icons/ui-icons/num1-square-alt.d.ts +1 -1
  612. package/dist/icons/ui-icons/num1-square.d.ts +1 -1
  613. package/dist/icons/ui-icons/num2-circle-alt.d.ts +1 -1
  614. package/dist/icons/ui-icons/num2-circle.d.ts +1 -1
  615. package/dist/icons/ui-icons/num2-square-alt.d.ts +1 -1
  616. package/dist/icons/ui-icons/num2-square.d.ts +1 -1
  617. package/dist/icons/ui-icons/num3-circle-alt.d.ts +1 -1
  618. package/dist/icons/ui-icons/num3-circle.d.ts +1 -1
  619. package/dist/icons/ui-icons/num3-square-alt.d.ts +1 -1
  620. package/dist/icons/ui-icons/num3-square.d.ts +1 -1
  621. package/dist/icons/ui-icons/num4-circle-alt.d.ts +1 -1
  622. package/dist/icons/ui-icons/num4-circle.d.ts +1 -1
  623. package/dist/icons/ui-icons/num4-square-alt.d.ts +1 -1
  624. package/dist/icons/ui-icons/num4-square.d.ts +1 -1
  625. package/dist/icons/ui-icons/num5-circle-alt.d.ts +1 -1
  626. package/dist/icons/ui-icons/num5-circle.d.ts +1 -1
  627. package/dist/icons/ui-icons/num5-square-alt.d.ts +1 -1
  628. package/dist/icons/ui-icons/num5-square.d.ts +1 -1
  629. package/dist/icons/ui-icons/num6-circle-alt.d.ts +1 -1
  630. package/dist/icons/ui-icons/num6-circle.d.ts +1 -1
  631. package/dist/icons/ui-icons/num6-square-alt.d.ts +1 -1
  632. package/dist/icons/ui-icons/num6-square.d.ts +1 -1
  633. package/dist/icons/ui-icons/num7-circle-alt.d.ts +1 -1
  634. package/dist/icons/ui-icons/num7-circle.d.ts +1 -1
  635. package/dist/icons/ui-icons/num7-square-alt.d.ts +1 -1
  636. package/dist/icons/ui-icons/num7-square.d.ts +1 -1
  637. package/dist/icons/ui-icons/num8-circle-alt.d.ts +1 -1
  638. package/dist/icons/ui-icons/num8-circle.d.ts +1 -1
  639. package/dist/icons/ui-icons/num8-square-alt.d.ts +1 -1
  640. package/dist/icons/ui-icons/num8-square.d.ts +1 -1
  641. package/dist/icons/ui-icons/num9-circle-alt.d.ts +1 -1
  642. package/dist/icons/ui-icons/num9-circle.d.ts +1 -1
  643. package/dist/icons/ui-icons/num9-square-alt.d.ts +1 -1
  644. package/dist/icons/ui-icons/num9-square.d.ts +1 -1
  645. package/dist/icons/ui-icons/office-building.d.ts +1 -1
  646. package/dist/icons/ui-icons/office-buildings.d.ts +1 -1
  647. package/dist/icons/ui-icons/offset-auto.d.ts +1 -1
  648. package/dist/icons/ui-icons/offset.d.ts +1 -1
  649. package/dist/icons/ui-icons/option-list-alt.d.ts +1 -1
  650. package/dist/icons/ui-icons/option-list.d.ts +1 -1
  651. package/dist/icons/ui-icons/options.d.ts +1 -1
  652. package/dist/icons/ui-icons/order.d.ts +1 -1
  653. package/dist/icons/ui-icons/padding-bottom.d.ts +1 -1
  654. package/dist/icons/ui-icons/padding-top.d.ts +1 -1
  655. package/dist/icons/ui-icons/padding.d.ts +1 -1
  656. package/dist/icons/ui-icons/pagination.d.ts +1 -1
  657. package/dist/icons/ui-icons/palette-color.d.ts +1 -1
  658. package/dist/icons/ui-icons/panel-collapse.d.ts +1 -1
  659. package/dist/icons/ui-icons/panel-expand.d.ts +1 -1
  660. package/dist/icons/ui-icons/paragraph.d.ts +1 -1
  661. package/dist/icons/ui-icons/paste.d.ts +1 -1
  662. package/dist/icons/ui-icons/pause.d.ts +1 -1
  663. package/dist/icons/ui-icons/people-group.d.ts +1 -1
  664. package/dist/icons/ui-icons/people.d.ts +1 -1
  665. package/dist/icons/ui-icons/person.d.ts +1 -1
  666. package/dist/icons/ui-icons/photo-camera.d.ts +1 -1
  667. package/dist/icons/ui-icons/picture-in-picture.d.ts +1 -1
  668. package/dist/icons/ui-icons/play-reverse.d.ts +1 -1
  669. package/dist/icons/ui-icons/play.d.ts +1 -1
  670. package/dist/icons/ui-icons/playback-options.d.ts +1 -1
  671. package/dist/icons/ui-icons/plus-circle-fill-alt.d.ts +1 -1
  672. package/dist/icons/ui-icons/plus-circle-fill.d.ts +1 -1
  673. package/dist/icons/ui-icons/plus-circle.d.ts +1 -1
  674. package/dist/icons/ui-icons/plus-minus-buttons-h.d.ts +1 -1
  675. package/dist/icons/ui-icons/plus-minus-buttons-v.d.ts +1 -1
  676. package/dist/icons/ui-icons/plus-square-fill-transparent.d.ts +1 -1
  677. package/dist/icons/ui-icons/plus-square-fill.d.ts +1 -1
  678. package/dist/icons/ui-icons/plus-square.d.ts +1 -1
  679. package/dist/icons/ui-icons/pointer-hand-disabled.d.ts +1 -1
  680. package/dist/icons/ui-icons/pointer-hand.d.ts +1 -1
  681. package/dist/icons/ui-icons/position-arrows-h.d.ts +1 -1
  682. package/dist/icons/ui-icons/position-arrows-inverted-h.d.ts +1 -1
  683. package/dist/icons/ui-icons/position-arrows-inverted-v.d.ts +1 -1
  684. package/dist/icons/ui-icons/position-arrows-inverted.d.ts +1 -1
  685. package/dist/icons/ui-icons/position-arrows-v.d.ts +1 -1
  686. package/dist/icons/ui-icons/position-arrows.d.ts +1 -1
  687. package/dist/icons/ui-icons/position-h-center.d.ts +1 -1
  688. package/dist/icons/ui-icons/position-h-end.d.ts +1 -1
  689. package/dist/icons/ui-icons/position-h-start.d.ts +1 -1
  690. package/dist/icons/ui-icons/position-left.d.ts +1 -1
  691. package/dist/icons/ui-icons/position-right.d.ts +1 -1
  692. package/dist/icons/ui-icons/position-v-center.d.ts +1 -1
  693. package/dist/icons/ui-icons/position-v-end.d.ts +1 -1
  694. package/dist/icons/ui-icons/position-v-start.d.ts +1 -1
  695. package/dist/icons/ui-icons/position2x2-bottom-left.d.ts +1 -1
  696. package/dist/icons/ui-icons/position2x2-bottom-right.d.ts +1 -1
  697. package/dist/icons/ui-icons/position2x2-empty.d.ts +1 -1
  698. package/dist/icons/ui-icons/position2x2-top-left.d.ts +1 -1
  699. package/dist/icons/ui-icons/position2x2-top-right.d.ts +1 -1
  700. package/dist/icons/ui-icons/position3x3-bottom-center.d.ts +1 -1
  701. package/dist/icons/ui-icons/position3x3-bottom-left.d.ts +1 -1
  702. package/dist/icons/ui-icons/position3x3-bottom-right.d.ts +1 -1
  703. package/dist/icons/ui-icons/position3x3-center-center.d.ts +1 -1
  704. package/dist/icons/ui-icons/position3x3-center-left.d.ts +1 -1
  705. package/dist/icons/ui-icons/position3x3-center-right.d.ts +1 -1
  706. package/dist/icons/ui-icons/position3x3-empty.d.ts +1 -1
  707. package/dist/icons/ui-icons/position3x3-top-center.d.ts +1 -1
  708. package/dist/icons/ui-icons/position3x3-top-left.d.ts +1 -1
  709. package/dist/icons/ui-icons/position3x3-top-right.d.ts +1 -1
  710. package/dist/icons/ui-icons/positioning-guide-alt.d.ts +1 -1
  711. package/dist/icons/ui-icons/positioning-guide.d.ts +1 -1
  712. package/dist/icons/ui-icons/positioning-width-guide.d.ts +1 -1
  713. package/dist/icons/ui-icons/preload.d.ts +1 -1
  714. package/dist/icons/ui-icons/preview-responsive.d.ts +1 -1
  715. package/dist/icons/ui-icons/preview.d.ts +1 -1
  716. package/dist/icons/ui-icons/progressbar-intermittent.d.ts +1 -1
  717. package/dist/icons/ui-icons/progressbar.d.ts +1 -1
  718. package/dist/icons/ui-icons/range-max.d.ts +1 -1
  719. package/dist/icons/ui-icons/range-mid.d.ts +1 -1
  720. package/dist/icons/ui-icons/range-min.d.ts +1 -1
  721. package/dist/icons/ui-icons/range.d.ts +1 -1
  722. package/dist/icons/ui-icons/read-only.d.ts +1 -1
  723. package/dist/icons/ui-icons/reduce-height-bottom.d.ts +1 -1
  724. package/dist/icons/ui-icons/reduce-height-top.d.ts +1 -1
  725. package/dist/icons/ui-icons/regex.d.ts +1 -1
  726. package/dist/icons/ui-icons/remove.d.ts +1 -1
  727. package/dist/icons/ui-icons/rename.d.ts +1 -1
  728. package/dist/icons/ui-icons/reorder-grabber-h.d.ts +1 -1
  729. package/dist/icons/ui-icons/reorder-grabber-v.d.ts +1 -1
  730. package/dist/icons/ui-icons/reorder.d.ts +1 -1
  731. package/dist/icons/ui-icons/required-alt.d.ts +1 -1
  732. package/dist/icons/ui-icons/required.d.ts +1 -1
  733. package/dist/icons/ui-icons/reset-to-zero.d.ts +1 -1
  734. package/dist/icons/ui-icons/reset.d.ts +1 -1
  735. package/dist/icons/ui-icons/responsive-overrides-alt-fill.d.ts +1 -1
  736. package/dist/icons/ui-icons/responsive-overrides-alt.d.ts +1 -1
  737. package/dist/icons/ui-icons/responsive-overrides-alt2-fill.d.ts +1 -1
  738. package/dist/icons/ui-icons/responsive-overrides-alt2.d.ts +1 -1
  739. package/dist/icons/ui-icons/responsive-overrides-alt3-fill.d.ts +1 -1
  740. package/dist/icons/ui-icons/responsive-overrides.d.ts +1 -1
  741. package/dist/icons/ui-icons/responsive.d.ts +1 -1
  742. package/dist/icons/ui-icons/right-panel-alt.d.ts +1 -1
  743. package/dist/icons/ui-icons/right-panel.d.ts +1 -1
  744. package/dist/icons/ui-icons/rotate-left.d.ts +1 -1
  745. package/dist/icons/ui-icons/rotate-right.d.ts +1 -1
  746. package/dist/icons/ui-icons/rounded-corners.d.ts +1 -1
  747. package/dist/icons/ui-icons/route.d.ts +1 -1
  748. package/dist/icons/ui-icons/row-add.d.ts +1 -1
  749. package/dist/icons/ui-icons/row-empty.d.ts +1 -1
  750. package/dist/icons/ui-icons/row.d.ts +1 -1
  751. package/dist/icons/ui-icons/rows.d.ts +1 -1
  752. package/dist/icons/ui-icons/ruler.d.ts +1 -1
  753. package/dist/icons/ui-icons/save.d.ts +1 -1
  754. package/dist/icons/ui-icons/screen-desktop.d.ts +1 -1
  755. package/dist/icons/ui-icons/screen-large.d.ts +1 -1
  756. package/dist/icons/ui-icons/screen-mobile.d.ts +1 -1
  757. package/dist/icons/ui-icons/screen-tablet-large.d.ts +1 -1
  758. package/dist/icons/ui-icons/screen-tablet.d.ts +1 -1
  759. package/dist/icons/ui-icons/scrollbar-h.d.ts +1 -1
  760. package/dist/icons/ui-icons/scrollbar-v.d.ts +1 -1
  761. package/dist/icons/ui-icons/scrollbars.d.ts +1 -1
  762. package/dist/icons/ui-icons/search-empty.d.ts +1 -1
  763. package/dist/icons/ui-icons/search.d.ts +1 -1
  764. package/dist/icons/ui-icons/separator-h.d.ts +1 -1
  765. package/dist/icons/ui-icons/separator-v.d.ts +1 -1
  766. package/dist/icons/ui-icons/shadow.d.ts +1 -1
  767. package/dist/icons/ui-icons/share.d.ts +1 -1
  768. package/dist/icons/ui-icons/shield-plus-alt.d.ts +1 -1
  769. package/dist/icons/ui-icons/shield-plus.d.ts +1 -1
  770. package/dist/icons/ui-icons/shield.d.ts +1 -1
  771. package/dist/icons/ui-icons/shrink-diagonal-left-xl.d.ts +1 -1
  772. package/dist/icons/ui-icons/shrink-diagonal-left.d.ts +1 -1
  773. package/dist/icons/ui-icons/shrink-diagonal-right-xl.d.ts +1 -1
  774. package/dist/icons/ui-icons/shrink-diagonal-right.d.ts +1 -1
  775. package/dist/icons/ui-icons/shrink-xl.d.ts +1 -1
  776. package/dist/icons/ui-icons/shrink.d.ts +1 -1
  777. package/dist/icons/ui-icons/shuffle.d.ts +1 -1
  778. package/dist/icons/ui-icons/sidebar-flip.d.ts +1 -1
  779. package/dist/icons/ui-icons/sidebar.d.ts +1 -1
  780. package/dist/icons/ui-icons/single-item-left-inset-mobile.d.ts +1 -1
  781. package/dist/icons/ui-icons/single-item-left-inset.d.ts +1 -1
  782. package/dist/icons/ui-icons/single-item-right-inset-mobile.d.ts +1 -1
  783. package/dist/icons/ui-icons/single-item-right-inset.d.ts +1 -1
  784. package/dist/icons/ui-icons/size-alt.d.ts +1 -1
  785. package/dist/icons/ui-icons/size.d.ts +1 -1
  786. package/dist/icons/ui-icons/slider.d.ts +1 -1
  787. package/dist/icons/ui-icons/sliders.d.ts +1 -1
  788. package/dist/icons/ui-icons/small.d.ts +1 -1
  789. package/dist/icons/ui-icons/solid-circle-fill-transparent.d.ts +1 -1
  790. package/dist/icons/ui-icons/solid-circle-filled.d.ts +1 -1
  791. package/dist/icons/ui-icons/solid-circle-gradient.d.ts +1 -1
  792. package/dist/icons/ui-icons/solid-circle.d.ts +1 -1
  793. package/dist/icons/ui-icons/solid-color.d.ts +1 -1
  794. package/dist/icons/ui-icons/solid-rect-fill-transparent.d.ts +1 -1
  795. package/dist/icons/ui-icons/solid-rect-filled.d.ts +1 -1
  796. package/dist/icons/ui-icons/solid-rect-gradient.d.ts +1 -1
  797. package/dist/icons/ui-icons/solid-rect.d.ts +1 -1
  798. package/dist/icons/ui-icons/sort-asc.d.ts +1 -1
  799. package/dist/icons/ui-icons/sort-desc.d.ts +1 -1
  800. package/dist/icons/ui-icons/sort-generic.d.ts +1 -1
  801. package/dist/icons/ui-icons/spacing-bottom-in.d.ts +1 -1
  802. package/dist/icons/ui-icons/spacing-bottom.d.ts +1 -1
  803. package/dist/icons/ui-icons/spacing-left-in.d.ts +1 -1
  804. package/dist/icons/ui-icons/spacing-left.d.ts +1 -1
  805. package/dist/icons/ui-icons/spacing-right-in.d.ts +1 -1
  806. package/dist/icons/ui-icons/spacing-right.d.ts +1 -1
  807. package/dist/icons/ui-icons/spacing-top-in.d.ts +1 -1
  808. package/dist/icons/ui-icons/spacing-top.d.ts +1 -1
  809. package/dist/icons/ui-icons/speed.d.ts +1 -1
  810. package/dist/icons/ui-icons/stagger.d.ts +1 -1
  811. package/dist/icons/ui-icons/star.d.ts +1 -1
  812. package/dist/icons/ui-icons/step.d.ts +1 -1
  813. package/dist/icons/ui-icons/stop.d.ts +1 -1
  814. package/dist/icons/ui-icons/swap.d.ts +1 -1
  815. package/dist/icons/ui-icons/tag-alt.d.ts +1 -1
  816. package/dist/icons/ui-icons/tag.d.ts +1 -1
  817. package/dist/icons/ui-icons/text-abc.d.ts +1 -1
  818. package/dist/icons/ui-icons/text-above.d.ts +1 -1
  819. package/dist/icons/ui-icons/text-align-center.d.ts +1 -1
  820. package/dist/icons/ui-icons/text-align-generic.d.ts +1 -1
  821. package/dist/icons/ui-icons/text-align-justify.d.ts +1 -1
  822. package/dist/icons/ui-icons/text-align-left.d.ts +1 -1
  823. package/dist/icons/ui-icons/text-align-right.d.ts +1 -1
  824. package/dist/icons/ui-icons/text-below.d.ts +1 -1
  825. package/dist/icons/ui-icons/text-box-edit.d.ts +1 -1
  826. package/dist/icons/ui-icons/text-color-swatch.d.ts +1 -1
  827. package/dist/icons/ui-icons/text-highlight-color-swatch-alt.d.ts +1 -1
  828. package/dist/icons/ui-icons/text-highlight-color-swatch.d.ts +1 -1
  829. package/dist/icons/ui-icons/text-larger.d.ts +1 -1
  830. package/dist/icons/ui-icons/text-length.d.ts +1 -1
  831. package/dist/icons/ui-icons/text-size-alt.d.ts +1 -1
  832. package/dist/icons/ui-icons/text-size.d.ts +1 -1
  833. package/dist/icons/ui-icons/text-smaller.d.ts +1 -1
  834. package/dist/icons/ui-icons/text-strikethrough.d.ts +1 -1
  835. package/dist/icons/ui-icons/text-uppercase.d.ts +1 -1
  836. package/dist/icons/ui-icons/text-write.d.ts +1 -1
  837. package/dist/icons/ui-icons/thumbs-down.d.ts +1 -1
  838. package/dist/icons/ui-icons/thumbs-up.d.ts +1 -1
  839. package/dist/icons/ui-icons/title-generic.d.ts +1 -1
  840. package/dist/icons/ui-icons/toggle-off.d.ts +1 -1
  841. package/dist/icons/ui-icons/toggle-on-alt.d.ts +1 -1
  842. package/dist/icons/ui-icons/toggle-on.d.ts +1 -1
  843. package/dist/icons/ui-icons/tools.d.ts +1 -1
  844. package/dist/icons/ui-icons/total-items.d.ts +1 -1
  845. package/dist/icons/ui-icons/trash-alt.d.ts +1 -1
  846. package/dist/icons/ui-icons/trash.d.ts +1 -1
  847. package/dist/icons/ui-icons/tree-alt.d.ts +1 -1
  848. package/dist/icons/ui-icons/tree-alt2.d.ts +1 -1
  849. package/dist/icons/ui-icons/tree.d.ts +1 -1
  850. package/dist/icons/ui-icons/troubleshoot-alt.d.ts +1 -1
  851. package/dist/icons/ui-icons/two-cards-left.d.ts +1 -1
  852. package/dist/icons/ui-icons/two-cards-right.d.ts +1 -1
  853. package/dist/icons/ui-icons/two-columns.d.ts +1 -1
  854. package/dist/icons/ui-icons/typography-options.d.ts +1 -1
  855. package/dist/icons/ui-icons/typography.d.ts +1 -1
  856. package/dist/icons/ui-icons/underline.d.ts +1 -1
  857. package/dist/icons/ui-icons/ungroup.d.ts +1 -1
  858. package/dist/icons/ui-icons/upload.d.ts +1 -1
  859. package/dist/icons/ui-icons/venn-diagram-alt.d.ts +1 -1
  860. package/dist/icons/ui-icons/venn-diagram-alt2.d.ts +1 -1
  861. package/dist/icons/ui-icons/venn-diagram-alt3.d.ts +1 -1
  862. package/dist/icons/ui-icons/venn-diagram-alt4.d.ts +1 -1
  863. package/dist/icons/ui-icons/venn-diagram-alt5.d.ts +1 -1
  864. package/dist/icons/ui-icons/venn-diagram-alt6.d.ts +1 -1
  865. package/dist/icons/ui-icons/venn-diagram-alt7.d.ts +1 -1
  866. package/dist/icons/ui-icons/venn-diagram.d.ts +1 -1
  867. package/dist/icons/ui-icons/vertical-align-alt.d.ts +1 -1
  868. package/dist/icons/ui-icons/vertical-align-around.d.ts +1 -1
  869. package/dist/icons/ui-icons/vertical-align-between-alt.d.ts +1 -1
  870. package/dist/icons/ui-icons/vertical-align-between.d.ts +1 -1
  871. package/dist/icons/ui-icons/vertical-align-bottom.d.ts +1 -1
  872. package/dist/icons/ui-icons/vertical-align-center.d.ts +1 -1
  873. package/dist/icons/ui-icons/vertical-align-evenly.d.ts +1 -1
  874. package/dist/icons/ui-icons/vertical-align-stretch.d.ts +1 -1
  875. package/dist/icons/ui-icons/vertical-align-top.d.ts +1 -1
  876. package/dist/icons/ui-icons/vertical-align.d.ts +1 -1
  877. package/dist/icons/ui-icons/vertical-spacing.d.ts +1 -1
  878. package/dist/icons/ui-icons/video-chapters.d.ts +1 -1
  879. package/dist/icons/ui-icons/video-controls.d.ts +1 -1
  880. package/dist/icons/ui-icons/video-file.d.ts +1 -1
  881. package/dist/icons/ui-icons/video-poster-image.d.ts +1 -1
  882. package/dist/icons/ui-icons/video-subtitle-alt.d.ts +1 -1
  883. package/dist/icons/ui-icons/video-subtitle.d.ts +1 -1
  884. package/dist/icons/ui-icons/video.d.ts +1 -1
  885. package/dist/icons/ui-icons/visibility-alt.d.ts +1 -1
  886. package/dist/icons/ui-icons/visibility-alt2.d.ts +1 -1
  887. package/dist/icons/ui-icons/visibility.d.ts +1 -1
  888. package/dist/icons/ui-icons/visible.d.ts +1 -1
  889. package/dist/icons/ui-icons/volume.d.ts +1 -1
  890. package/dist/icons/ui-icons/warning-circle-fill-transparent.d.ts +1 -1
  891. package/dist/icons/ui-icons/warning-circle-fill.d.ts +1 -1
  892. package/dist/icons/ui-icons/warning-circle.d.ts +1 -1
  893. package/dist/icons/ui-icons/warning-fill-transparent.d.ts +1 -1
  894. package/dist/icons/ui-icons/warning-fill.d.ts +1 -1
  895. package/dist/icons/ui-icons/warning.d.ts +1 -1
  896. package/dist/icons/ui-icons/web-video.d.ts +1 -1
  897. package/dist/icons/ui-icons/wide-bottom.d.ts +1 -1
  898. package/dist/icons/ui-icons/wide-left.d.ts +1 -1
  899. package/dist/icons/ui-icons/wide-right.d.ts +1 -1
  900. package/dist/icons/ui-icons/wide-top.d.ts +1 -1
  901. package/dist/icons/ui-icons/width.d.ts +1 -1
  902. package/dist/icons/ui-icons/wordpress.d.ts +1 -1
  903. package/dist/icons/ui-icons/wrapper-alt.d.ts +1 -1
  904. package/dist/icons/ui-icons/wrapper-config.d.ts +1 -1
  905. package/dist/icons/ui-icons/wrapper-off-alt.d.ts +1 -1
  906. package/dist/icons/ui-icons/wrapper-overflow.d.ts +1 -1
  907. package/dist/icons/ui-icons/wrapper-simple-alt.d.ts +1 -1
  908. package/dist/icons/ui-icons/wrapper-simple.d.ts +1 -1
  909. package/dist/icons/ui-icons/wrapper.d.ts +1 -1
  910. package/dist/icons/ui-icons/wrench.d.ts +1 -1
  911. package/dist/icons/ui-icons/zap-fill.d.ts +1 -1
  912. package/dist/icons/ui-icons/zap.d.ts +1 -1
  913. package/dist/index.js +14 -14
  914. package/dist/{input-field-BlZlV8tR.js → input-field-nN6BO0oz.js} +15 -15
  915. package/dist/{jsx-svg-DHsyyG4y.js → jsx-svg-BjGQUBLh.js} +5 -5
  916. package/dist/{keyboard-DSfGd-PY.js → keyboard-g5Amam-c.js} +1 -1
  917. package/dist/{link-input-eyXFRA_1.js → link-input-BhlPElU8.js} +52 -36
  918. package/dist/{modal-Ct_DKzP5.js → modal-B5axB0Fc.js} +20 -20
  919. package/dist/{number-Bgzc3wxt.js → number-BeC0ySe4.js} +2 -1
  920. package/dist/{number-picker-CeOp31Zd.js → number-picker-nnOf0XnN.js} +15 -15
  921. package/dist/{proxy-5i9ixxY0.js → react-y40Dt3ab.js} +77 -65
  922. package/dist/{shared-DSy1H9Uy.js → shared-Ba_bt4s9.js} +46 -52
  923. package/dist/{solid-color-picker-DY1pBp18.js → solid-color-picker-CsosgTVa.js} +42 -35
  924. package/dist/sprintf-xJRAt4p0.js +129 -0
  925. package/dist/{switch-85EFSGmJ.js → switch-BJ4_OyUm.js} +34 -18
  926. package/dist/{tabs-CBG98k4I.js → tabs-wAe0AAyu.js} +34 -29
  927. package/dist/text-helpers-2j9DuxP1.js +253 -0
  928. package/dist/{textSelection-DCeeu848.js → textSelection-B_Nv6Jz3.js} +1 -1
  929. package/dist/{toggle-button-Ba1-pDDV.js → toggle-button-BLJdEp8V.js} +11 -11
  930. package/dist/{tooltip-CYYcZD_f.js → tooltip-BW9nj5-V.js} +19 -19
  931. package/dist/{useButton-C5l3uM3M.js → useButton-CPMVLXoX.js} +3 -3
  932. package/dist/{useCollection-D_QRaKc6.js → useCollection-PzY6FI39.js} +146 -98
  933. package/dist/{useEvent-9UH7-hIb.js → useEvent-CzuFZ2HT.js} +1 -1
  934. package/dist/{useField-DZ0cTkNU.js → useField-DrfR8j9h.js} +7 -3
  935. package/dist/{useFilter-BVcZYNGK.js → useFilter-CiCjo6Na.js} +1 -1
  936. package/dist/{useFocusRing-KUKJnS3I.js → useFocusRing-CrYHpV7C.js} +3 -2
  937. package/dist/{useFormReset-Bz-W1XZE.js → useFormReset-U6c35PHq.js} +1 -1
  938. package/dist/{useFormValidation-BAC0iB4T.js → useFormValidation-B2q2MGWN.js} +5 -8
  939. package/dist/{useHover-BZbXvQcj.js → useHover-CNsbAR0V.js} +41 -26
  940. package/dist/{useLabel-Dyb9-lU5.js → useLabel-DuxAjaic.js} +2 -2
  941. package/dist/{useLabels-DdxgDtMs.js → useLabels-NUsp5IW3.js} +1 -1
  942. package/dist/{useListState-DdNleQAH.js → useListState-FLxa7R_U.js} +1 -1
  943. package/dist/{useLocalizedStringFormatter-B5q-uCG6.js → useLocalizedStringFormatter-Ccm8EL_u.js} +1 -1
  944. package/dist/{useNumberFieldState-D9gldYIv.js → useNumberFieldState-DWvm7CXu.js} +25 -13
  945. package/dist/{useNumberFormatter-DbIS46GT.js → useNumberFormatter-B0_D7a_o.js} +2 -2
  946. package/dist/{useOverlayTriggerState-DbYNw1PM.js → useOverlayTriggerState-zZ7homyI.js} +16 -15
  947. package/dist/{usePress-yLRbMdw6.js → usePress-DRoujMNm.js} +14 -5
  948. package/dist/useSlot-pRz-v9kC.js +25 -0
  949. package/dist/{useTextField-BRuuZW8y.js → useTextField-e8jIFT3s.js} +11 -11
  950. package/dist/useToggle-CR_ZKvr_.js +115 -0
  951. package/dist/{useToggleState-BTyFw4k9.js → useToggleState-ButQxGrJ.js} +1 -1
  952. package/dist/utilities/index.js +1 -1
  953. package/dist/utilities/text-helpers.js +1 -92
  954. package/dist/utilities/web-workers.d.ts +3 -2
  955. package/dist/utilities/web-workers.js +12 -4
  956. package/dist/{utils-8BmRKOPl.js → utils-Czi6q2Ub.js} +10 -10
  957. package/package.json +31 -30
  958. package/dist/SelectionIndicator-CVL8ZTMW.js +0 -13
  959. package/dist/useToggle-BYDcqWiq.js +0 -63
  960. package/dist/useToolbar-BKLb8oIP.js +0 -55
@@ -1,4 +1,4 @@
1
- import { t as __ } from "./build-module-Bb_b-FCh.js";
1
+ import { t as __ } from "./build-module-DG6ZK7Ty.js";
2
2
  import { DraggableContext } from "./components/draggable/draggable-context.js";
3
3
  import { createContext, createElement, forwardRef, memo, startTransition, useCallback, useContext, useEffect, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -68,7 +68,14 @@ function o(i) {
68
68
  r = t;
69
69
  }
70
70
  }
71
- var f, h = void 0, s = 0, v = 0, u = 0, e = 0, c = void 0, d = 0;
71
+ var f;
72
+ var h = void 0;
73
+ var s = 0;
74
+ var v = 0;
75
+ var u = 0;
76
+ var e = 0;
77
+ var c = void 0;
78
+ var d = 0;
72
79
  function a(i) {
73
80
  if (void 0 !== r) {
74
81
  var t = i.n;
@@ -586,7 +593,26 @@ function effects(...entries) {
586
593
  const effects2 = entries.map((fn) => j(fn));
587
594
  return () => effects2.forEach((cleanup) => cleanup());
588
595
  }
589
- var _previous_dec, _initial_dec, _current_dec$1, _current_dec2, _previous_dec2, _initial_dec2 = [reactive], _init$5, _initial, _a$3, initial_get, initial_set, _ValueHistory_instances, _previous, _b$1, previous_get, previous_set, _current, _c$2, current_get, current_set;
596
+ var _previous_dec;
597
+ var _initial_dec;
598
+ var _current_dec$1;
599
+ var _current_dec2;
600
+ var _previous_dec2;
601
+ var _initial_dec2 = [reactive];
602
+ var _init$5;
603
+ var _initial;
604
+ var _a$3;
605
+ var initial_get;
606
+ var initial_set;
607
+ var _ValueHistory_instances;
608
+ var _previous;
609
+ var _b$1;
610
+ var previous_get;
611
+ var previous_set;
612
+ var _current;
613
+ var _c$2;
614
+ var current_get;
615
+ var current_set;
590
616
  _previous_dec2 = [reactive], _current_dec2 = [reactive], _current_dec$1 = [enumerable()], _initial_dec = [enumerable()], _previous_dec = [enumerable()];
591
617
  var ValueHistory = class {
592
618
  constructor(defaultValue, equals = Object.is) {
@@ -935,7 +961,11 @@ function rectangleRectangleIntersection(a, b) {
935
961
  if (left < right && top < bottom) return width * height;
936
962
  return 0;
937
963
  }
938
- var _direction_dec$1, _delta_dec$1, _a$2, _timestamp$1, _init$4;
964
+ var _direction_dec$1;
965
+ var _delta_dec$1;
966
+ var _a$2;
967
+ var _timestamp$1;
968
+ var _init$4;
939
969
  var Position$1 = class extends (_a$2 = ValueHistory, _delta_dec$1 = [derived], _direction_dec$1 = [derived], _a$2) {
940
970
  constructor(initialValue) {
941
971
  const point = Point$1.from(initialValue);
@@ -1137,7 +1167,10 @@ function descriptor(plugin) {
1137
1167
  };
1138
1168
  return plugin;
1139
1169
  }
1140
- var _disabled_dec = [reactive], _init$3, _disabled, _cleanupFunctions$1;
1170
+ var _disabled_dec = [reactive];
1171
+ var _init$3;
1172
+ var _disabled;
1173
+ var _cleanupFunctions$1;
1141
1174
  var Plugin = class {
1142
1175
  /**
1143
1176
  * Creates a new plugin instance.
@@ -1262,9 +1295,13 @@ var PluginRegistry = class {
1262
1295
  * - Registers new plugins with their options
1263
1296
  */
1264
1297
  set values(entries) {
1265
- const descriptors = entries.map(descriptor).reduceRight((acc, descriptor2) => {
1266
- if (acc.some(({ plugin }) => plugin === descriptor2.plugin)) return acc;
1267
- return [descriptor2, ...acc];
1298
+ const descriptors = entries.map(descriptor).reduce((acc, descriptor2) => {
1299
+ const existing = acc.find(({ plugin }) => plugin === descriptor2.plugin);
1300
+ if (existing) {
1301
+ existing.options = descriptor2.options;
1302
+ return acc;
1303
+ }
1304
+ return [...acc, descriptor2];
1268
1305
  }, []);
1269
1306
  const constructors = descriptors.map(({ plugin }) => plugin);
1270
1307
  for (const plugin of __privateGet$4(this, _previousValues)) if (!constructors.includes(plugin)) {
@@ -1341,7 +1378,8 @@ function sortCollisions(a, b) {
1341
1378
  return b.priority - a.priority;
1342
1379
  }
1343
1380
  var DEFAULT_VALUE = [];
1344
- var _previousCoordinates, _collisions;
1381
+ var _previousCoordinates;
1382
+ var _collisions;
1345
1383
  var CollisionObserver = class extends Plugin {
1346
1384
  /**
1347
1385
  * Creates a new CollisionObserver instance.
@@ -1421,6 +1459,342 @@ var CollisionObserver = class extends Plugin {
1421
1459
  };
1422
1460
  _previousCoordinates = new WeakMap();
1423
1461
  _collisions = new WeakMap();
1462
+ var _disabled_dec2;
1463
+ var _data_dec;
1464
+ var _manager_dec = [reactive];
1465
+ var _Entity_static;
1466
+ var flushIdChanges_fn;
1467
+ var _init2$1;
1468
+ var _manager;
1469
+ var _idSignal;
1470
+ var _data;
1471
+ var _disabled2;
1472
+ _data_dec = [reactive], _disabled_dec2 = [reactive];
1473
+ var _Entity = class _Entity {
1474
+ /**
1475
+ * Creates a new instance of the `Entity` class.
1476
+ *
1477
+ * @param input - An object containing the initial properties of the entity.
1478
+ * @param manager - The manager that controls the drag and drop operations.
1479
+ */
1480
+ constructor(input, manager) {
1481
+ __privateAdd$4(this, _manager, __runInitializers$3(_init2$1, 8, this)), __runInitializers$3(_init2$1, 11, this);
1482
+ /**
1483
+ * The unique identifier of the entity.
1484
+ *
1485
+ * Setting this property defers the signal update to a microtask,
1486
+ * batching multiple id changes together atomically. This ensures
1487
+ * that when entities swap ids (e.g. during sorting with virtualization),
1488
+ * all registry updates happen in a single transaction.
1489
+ */
1490
+ __privateAdd$4(this, _idSignal);
1491
+ __privateAdd$4(this, _data, __runInitializers$3(_init2$1, 12, this)), __runInitializers$3(_init2$1, 15, this);
1492
+ __privateAdd$4(this, _disabled2, __runInitializers$3(_init2$1, 16, this)), __runInitializers$3(_init2$1, 19, this);
1493
+ const { effects: effects6, id, data = {}, disabled = false, register = true } = input;
1494
+ let previousId = id;
1495
+ __privateSet$4(this, _idSignal, y(id));
1496
+ this.manager = manager;
1497
+ this.data = data;
1498
+ this.disabled = disabled;
1499
+ this.effects = () => {
1500
+ var _a;
1501
+ return [() => {
1502
+ const { id: id2, manager: manager2 } = this;
1503
+ if (id2 === previousId) return;
1504
+ previousId = id2;
1505
+ manager2?.registry.register(this);
1506
+ return () => manager2 == null ? void 0 : manager2.registry.unregister(this);
1507
+ }, ...(_a = effects6 == null ? void 0 : effects6()) != null ? _a : []];
1508
+ };
1509
+ this.register = this.register.bind(this);
1510
+ this.unregister = this.unregister.bind(this);
1511
+ this.destroy = this.destroy.bind(this);
1512
+ if (manager && register) queueMicrotask(this.register);
1513
+ }
1514
+ get id() {
1515
+ var _a, _b;
1516
+ const signalValue = __privateGet$4(this, _idSignal).value;
1517
+ return (_b = (_a = _Entity.pendingIdChanges) == null ? void 0 : _a.get(this)) != null ? _b : signalValue;
1518
+ }
1519
+ set id(value) {
1520
+ var _a, _b;
1521
+ if (value === ((_b = (_a = _Entity.pendingIdChanges) == null ? void 0 : _a.get(this)) != null ? _b : __privateGet$4(this, _idSignal).peek())) return;
1522
+ if (!_Entity.pendingIdChanges) {
1523
+ _Entity.pendingIdChanges = new Map();
1524
+ queueMicrotask(() => {
1525
+ var _a2;
1526
+ return __privateMethod$2(_a2 = _Entity, _Entity_static, flushIdChanges_fn).call(_a2);
1527
+ });
1528
+ }
1529
+ _Entity.pendingIdChanges.set(this, value);
1530
+ }
1531
+ /**
1532
+ * A method that registers the entity with the manager.
1533
+ * @returns CleanupFunction | void
1534
+ */
1535
+ register() {
1536
+ var _a;
1537
+ return (_a = this.manager) == null ? void 0 : _a.registry.register(this);
1538
+ }
1539
+ /**
1540
+ * A method that unregisters the entity from the manager.
1541
+ * @returns void
1542
+ */
1543
+ unregister() {
1544
+ var _a;
1545
+ (_a = this.manager) == null || _a.registry.unregister(this);
1546
+ }
1547
+ /**
1548
+ * A method that cleans up the entity when it is no longer needed.
1549
+ * @returns void
1550
+ */
1551
+ destroy() {
1552
+ var _a;
1553
+ (_a = this.manager) == null || _a.registry.unregister(this);
1554
+ }
1555
+ };
1556
+ _init2$1 = __decoratorStart$3(null);
1557
+ _Entity_static = new WeakSet();
1558
+ flushIdChanges_fn = function() {
1559
+ const changes = _Entity.pendingIdChanges;
1560
+ _Entity.pendingIdChanges = null;
1561
+ if (changes) n(() => {
1562
+ for (const [entity, id] of changes) __privateGet$4(entity, _idSignal).value = id;
1563
+ });
1564
+ };
1565
+ _manager = new WeakMap();
1566
+ _idSignal = new WeakMap();
1567
+ _data = new WeakMap();
1568
+ _disabled2 = new WeakMap();
1569
+ __decorateElement$3(_init2$1, 4, "manager", _manager_dec, _Entity, _manager);
1570
+ __decorateElement$3(_init2$1, 4, "data", _data_dec, _Entity, _data);
1571
+ __decorateElement$3(_init2$1, 4, "disabled", _disabled_dec2, _Entity, _disabled2);
1572
+ __privateAdd$4(_Entity, _Entity_static);
1573
+ __decoratorMetadata$3(_init2$1, _Entity);
1574
+ _Entity.pendingIdChanges = null;
1575
+ var Entity = _Entity;
1576
+ var EntityRegistry = class {
1577
+ constructor() {
1578
+ this.map = y(new Map());
1579
+ this.cleanupFunctions = new WeakMap();
1580
+ /**
1581
+ * Registers a entity in the registry.
1582
+ * @param key - The unique identifier of the entity.
1583
+ * @param value - The entity to register.
1584
+ * @returns A function that unregisters the entity.
1585
+ */
1586
+ this.register = (key, value) => {
1587
+ const current = this.map.peek();
1588
+ const currentValue = current.get(key);
1589
+ const unregister = () => this.unregister(key, value);
1590
+ if (currentValue === value) return unregister;
1591
+ if (currentValue) {
1592
+ if (currentValue.id === key) {
1593
+ this.cleanupFunctions.get(currentValue)?.();
1594
+ this.cleanupFunctions.delete(currentValue);
1595
+ }
1596
+ }
1597
+ const updatedMap = new Map(current);
1598
+ for (const [existingKey, existingValue] of current) if (existingValue === value && existingKey !== key) {
1599
+ updatedMap.delete(existingKey);
1600
+ break;
1601
+ }
1602
+ updatedMap.set(key, value);
1603
+ this.map.value = updatedMap;
1604
+ const cleanup = effects(...value.effects());
1605
+ this.cleanupFunctions.set(value, cleanup);
1606
+ return unregister;
1607
+ };
1608
+ /**
1609
+ * Unregisters an entity from the registry.
1610
+ * @param key - The unique identifier of the entity.
1611
+ * @param value - The entity instance to unregister.
1612
+ */
1613
+ this.unregister = (key, value) => {
1614
+ const current = this.map.peek();
1615
+ if (current.get(key) !== value) return;
1616
+ this.cleanupFunctions.get(value)?.();
1617
+ this.cleanupFunctions.delete(value);
1618
+ const updatedMap = new Map(current);
1619
+ updatedMap.delete(key);
1620
+ this.map.value = updatedMap;
1621
+ };
1622
+ }
1623
+ /**
1624
+ * Iterator for the EntityRegistry class.
1625
+ * @returns An iterator for the values in the map.
1626
+ */
1627
+ [Symbol.iterator]() {
1628
+ return this.map.peek().values();
1629
+ }
1630
+ get value() {
1631
+ return this.map.value.values();
1632
+ }
1633
+ /**
1634
+ * Checks if a entity with the given identifier exists in the registry.
1635
+ * @param identifier - The unique identifier of the entity.
1636
+ * @returns True if the entity exists, false otherwise.
1637
+ */
1638
+ has(identifier) {
1639
+ return this.map.value.has(identifier);
1640
+ }
1641
+ /**
1642
+ * Retrieves a entity from the registry using its identifier.
1643
+ * @param identifier - The unique identifier of the entity.
1644
+ * @returns The entity if it exists, undefined otherwise.
1645
+ */
1646
+ get(identifier) {
1647
+ return this.map.value.get(identifier);
1648
+ }
1649
+ /**
1650
+ * Destroys all entries in the registry and clears the registry.
1651
+ */
1652
+ destroy() {
1653
+ for (const entry of this) {
1654
+ this.cleanupFunctions.get(entry)?.();
1655
+ entry.destroy();
1656
+ }
1657
+ this.map.value = new Map();
1658
+ }
1659
+ };
1660
+ var _isDragSource_dec;
1661
+ var _isDragging_dec;
1662
+ var _isDropping_dec;
1663
+ var _status_dec;
1664
+ var _modifiers_dec;
1665
+ var _type_dec;
1666
+ var _c$1;
1667
+ var _init3$1;
1668
+ var _type;
1669
+ var _modifiers;
1670
+ var _status;
1671
+ var Draggable$2 = class extends (_c$1 = Entity, _type_dec = [reactive], _modifiers_dec = [reactive], _status_dec = [reactive], _isDropping_dec = [derived], _isDragging_dec = [derived], _isDragSource_dec = [derived], _c$1) {
1672
+ constructor(_a, manager) {
1673
+ var _b = _a, { modifiers, type, sensors, plugins, effects: effects6 } = _b, input = __objRest$3(_b, [
1674
+ "modifiers",
1675
+ "type",
1676
+ "sensors",
1677
+ "plugins",
1678
+ "effects"
1679
+ ]);
1680
+ super(__spreadProps$4(__spreadValues$4({}, input), { effects: () => {
1681
+ var _a2;
1682
+ return [...(_a2 = effects6 == null ? void 0 : effects6()) != null ? _a2 : [], () => {
1683
+ const { manager: manager2, plugins: plugins2 } = this;
1684
+ if (!manager2 || !plugins2) return;
1685
+ for (const entry of plugins2) {
1686
+ const { plugin } = descriptor(entry);
1687
+ manager2.registry.plugins.register(plugin);
1688
+ }
1689
+ }];
1690
+ } }), manager);
1691
+ __runInitializers$3(_init3$1, 5, this);
1692
+ __privateAdd$4(this, _type, __runInitializers$3(_init3$1, 8, this)), __runInitializers$3(_init3$1, 11, this);
1693
+ __privateAdd$4(this, _modifiers, __runInitializers$3(_init3$1, 12, this)), __runInitializers$3(_init3$1, 15, this);
1694
+ __privateAdd$4(this, _status, __runInitializers$3(_init3$1, 16, this, this.isDragSource ? "dragging" : "idle")), __runInitializers$3(_init3$1, 19, this);
1695
+ this.type = type;
1696
+ this.sensors = sensors;
1697
+ this.modifiers = modifiers;
1698
+ this.alignment = input.alignment;
1699
+ this.plugins = plugins;
1700
+ }
1701
+ /**
1702
+ * Look up per-entity options for a given plugin constructor.
1703
+ */
1704
+ pluginConfig(plugin) {
1705
+ if (!this.plugins) return void 0;
1706
+ for (const entry of this.plugins) {
1707
+ const desc = descriptor(entry);
1708
+ if (desc.plugin === plugin) return desc.options;
1709
+ }
1710
+ }
1711
+ get isDropping() {
1712
+ return this.status === "dropping" && this.isDragSource;
1713
+ }
1714
+ get isDragging() {
1715
+ return this.status === "dragging" && this.isDragSource;
1716
+ }
1717
+ get isDragSource() {
1718
+ var _a, _b;
1719
+ return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.source) == null ? void 0 : _b.id) === this.id;
1720
+ }
1721
+ };
1722
+ _init3$1 = __decoratorStart$3(_c$1);
1723
+ _type = new WeakMap();
1724
+ _modifiers = new WeakMap();
1725
+ _status = new WeakMap();
1726
+ __decorateElement$3(_init3$1, 4, "type", _type_dec, Draggable$2, _type);
1727
+ __decorateElement$3(_init3$1, 4, "modifiers", _modifiers_dec, Draggable$2, _modifiers);
1728
+ __decorateElement$3(_init3$1, 4, "status", _status_dec, Draggable$2, _status);
1729
+ __decorateElement$3(_init3$1, 2, "isDropping", _isDropping_dec, Draggable$2);
1730
+ __decorateElement$3(_init3$1, 2, "isDragging", _isDragging_dec, Draggable$2);
1731
+ __decorateElement$3(_init3$1, 2, "isDragSource", _isDragSource_dec, Draggable$2);
1732
+ __decoratorMetadata$3(_init3$1, Draggable$2);
1733
+ var _isDropTarget_dec;
1734
+ var _shape_dec;
1735
+ var _collisionPriority_dec;
1736
+ var _collisionDetector_dec;
1737
+ var _type_dec2;
1738
+ var _accept_dec;
1739
+ var _c2$1;
1740
+ var _init4$1;
1741
+ var _accept;
1742
+ var _type2;
1743
+ var _collisionDetector;
1744
+ var _collisionPriority;
1745
+ var _shape;
1746
+ var Droppable$1 = class extends (_c2$1 = Entity, _accept_dec = [reactive], _type_dec2 = [reactive], _collisionDetector_dec = [reactive], _collisionPriority_dec = [reactive], _shape_dec = [reactive], _isDropTarget_dec = [derived], _c2$1) {
1747
+ constructor(_a, manager) {
1748
+ var _b = _a, { accept, collisionDetector, collisionPriority, type } = _b, input = __objRest$3(_b, [
1749
+ "accept",
1750
+ "collisionDetector",
1751
+ "collisionPriority",
1752
+ "type"
1753
+ ]);
1754
+ super(input, manager);
1755
+ __runInitializers$3(_init4$1, 5, this);
1756
+ __privateAdd$4(this, _accept, __runInitializers$3(_init4$1, 8, this)), __runInitializers$3(_init4$1, 11, this);
1757
+ __privateAdd$4(this, _type2, __runInitializers$3(_init4$1, 12, this)), __runInitializers$3(_init4$1, 15, this);
1758
+ __privateAdd$4(this, _collisionDetector, __runInitializers$3(_init4$1, 16, this)), __runInitializers$3(_init4$1, 19, this);
1759
+ __privateAdd$4(this, _collisionPriority, __runInitializers$3(_init4$1, 20, this)), __runInitializers$3(_init4$1, 23, this);
1760
+ __privateAdd$4(this, _shape, __runInitializers$3(_init4$1, 24, this)), __runInitializers$3(_init4$1, 27, this);
1761
+ this.accept = accept;
1762
+ this.collisionDetector = collisionDetector;
1763
+ this.collisionPriority = collisionPriority;
1764
+ this.type = type;
1765
+ }
1766
+ /**
1767
+ * Checks whether or not the droppable accepts a given draggable.
1768
+ *
1769
+ * @param draggable - The draggable to check
1770
+ * @returns true if the draggable can be dropped here
1771
+ */
1772
+ accepts(draggable) {
1773
+ const { accept } = this;
1774
+ if (!accept) return true;
1775
+ if (typeof accept === "function") return accept(draggable);
1776
+ if (!draggable.type) return false;
1777
+ if (Array.isArray(accept)) return accept.includes(draggable.type);
1778
+ return draggable.type === accept;
1779
+ }
1780
+ get isDropTarget() {
1781
+ var _a, _b;
1782
+ return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.target) == null ? void 0 : _b.id) === this.id;
1783
+ }
1784
+ };
1785
+ _init4$1 = __decoratorStart$3(_c2$1);
1786
+ _accept = new WeakMap();
1787
+ _type2 = new WeakMap();
1788
+ _collisionDetector = new WeakMap();
1789
+ _collisionPriority = new WeakMap();
1790
+ _shape = new WeakMap();
1791
+ __decorateElement$3(_init4$1, 4, "accept", _accept_dec, Droppable$1, _accept);
1792
+ __decorateElement$3(_init4$1, 4, "type", _type_dec2, Droppable$1, _type2);
1793
+ __decorateElement$3(_init4$1, 4, "collisionDetector", _collisionDetector_dec, Droppable$1, _collisionDetector);
1794
+ __decorateElement$3(_init4$1, 4, "collisionPriority", _collisionPriority_dec, Droppable$1, _collisionPriority);
1795
+ __decorateElement$3(_init4$1, 4, "shape", _shape_dec, Droppable$1, _shape);
1796
+ __decorateElement$3(_init4$1, 2, "isDropTarget", _isDropTarget_dec, Droppable$1);
1797
+ __decoratorMetadata$3(_init4$1, Droppable$1);
1424
1798
  var Monitor = class {
1425
1799
  constructor() {
1426
1800
  this.registry = new Map();
@@ -1513,6 +1887,7 @@ var CollisionNotifier = class extends CorePlugin {
1513
1887
  const { collisionObserver, monitor } = manager;
1514
1888
  const { collisions } = collisionObserver;
1515
1889
  if (collisionObserver.isDisabled()) return;
1890
+ if (Entity.pendingIdChanges) return;
1516
1891
  const event = defaultPreventable({ collisions });
1517
1892
  monitor.dispatch("collision", event);
1518
1893
  if (event.defaultPrevented) return;
@@ -1545,12 +1920,20 @@ var CollisionType = ((CollisionType2) => {
1545
1920
  CollisionType2[CollisionType2["PointerIntersection"] = 2] = "PointerIntersection";
1546
1921
  return CollisionType2;
1547
1922
  })(CollisionType || {});
1548
- var _dropped_dec, _dragging_dec, _initialized_dec, _initializing_dec, _idle_dec, _current_dec, _value_dec = [reactive], _init2$1, _value;
1923
+ var _dropped_dec;
1924
+ var _dragging_dec;
1925
+ var _initialized_dec;
1926
+ var _initializing_dec;
1927
+ var _idle_dec;
1928
+ var _current_dec;
1929
+ var _value_dec = [reactive];
1930
+ var _init5$1;
1931
+ var _value;
1549
1932
  _current_dec = [derived], _idle_dec = [derived], _initializing_dec = [derived], _initialized_dec = [derived], _dragging_dec = [derived], _dropped_dec = [derived];
1550
1933
  var Status = class {
1551
1934
  constructor() {
1552
- __runInitializers$3(_init2$1, 5, this);
1553
- __privateAdd$4(this, _value, __runInitializers$3(_init2$1, 8, this, "idle")), __runInitializers$3(_init2$1, 11, this);
1935
+ __runInitializers$3(_init5$1, 5, this);
1936
+ __privateAdd$4(this, _value, __runInitializers$3(_init5$1, 8, this, "idle")), __runInitializers$3(_init5$1, 11, this);
1554
1937
  }
1555
1938
  get current() {
1556
1939
  return this.value;
@@ -1580,16 +1963,16 @@ var Status = class {
1580
1963
  this.value = value;
1581
1964
  }
1582
1965
  };
1583
- _init2$1 = __decoratorStart$3(null);
1966
+ _init5$1 = __decoratorStart$3(null);
1584
1967
  _value = new WeakMap();
1585
- __decorateElement$3(_init2$1, 4, "value", _value_dec, Status, _value);
1586
- __decorateElement$3(_init2$1, 2, "current", _current_dec, Status);
1587
- __decorateElement$3(_init2$1, 2, "idle", _idle_dec, Status);
1588
- __decorateElement$3(_init2$1, 2, "initializing", _initializing_dec, Status);
1589
- __decorateElement$3(_init2$1, 2, "initialized", _initialized_dec, Status);
1590
- __decorateElement$3(_init2$1, 2, "dragging", _dragging_dec, Status);
1591
- __decorateElement$3(_init2$1, 2, "dropped", _dropped_dec, Status);
1592
- __decoratorMetadata$3(_init2$1, Status);
1968
+ __decorateElement$3(_init5$1, 4, "value", _value_dec, Status, _value);
1969
+ __decorateElement$3(_init5$1, 2, "current", _current_dec, Status);
1970
+ __decorateElement$3(_init5$1, 2, "idle", _idle_dec, Status);
1971
+ __decorateElement$3(_init5$1, 2, "initializing", _initializing_dec, Status);
1972
+ __decorateElement$3(_init5$1, 2, "initialized", _initialized_dec, Status);
1973
+ __decorateElement$3(_init5$1, 2, "dragging", _dragging_dec, Status);
1974
+ __decorateElement$3(_init5$1, 2, "dropped", _dropped_dec, Status);
1975
+ __decoratorMetadata$3(_init5$1, Status);
1593
1976
  var DragActions = class {
1594
1977
  /**
1595
1978
  * Creates a new instance of drag actions.
@@ -1631,387 +2014,149 @@ var DragActions = class {
1631
2014
  * @param args - Configuration for the drag operation
1632
2015
  * @param args.event - The event that initiated the drag
1633
2016
  * @param args.source - The source draggable entity or its identifier
1634
- * @param args.coordinates - The initial coordinates of the drag
1635
- * @returns true if the drag operation started successfully
1636
- * @throws {Error} If there is no drag source or another operation is active
1637
- */
1638
- start(args) {
1639
- return o(() => {
1640
- const { dragOperation } = this.manager;
1641
- if (args.source != null) this.setDragSource(args.source);
1642
- if (!dragOperation.source) throw new Error("Cannot start a drag operation without a drag source");
1643
- if (!dragOperation.status.idle) throw new Error("Cannot start a drag operation while another is active");
1644
- const controller = new AbortController();
1645
- const { event: nativeEvent, coordinates } = args;
1646
- n(() => {
1647
- dragOperation.status.set("initialization-pending");
1648
- dragOperation.shape = null;
1649
- dragOperation.canceled = false;
1650
- dragOperation.activatorEvent = nativeEvent != null ? nativeEvent : null;
1651
- dragOperation.position.reset(coordinates);
1652
- });
1653
- const beforeStartEvent = defaultPreventable({ operation: dragOperation.snapshot() });
1654
- this.manager.monitor.dispatch("beforedragstart", beforeStartEvent);
1655
- if (beforeStartEvent.defaultPrevented) {
1656
- dragOperation.reset();
1657
- controller.abort();
1658
- return controller;
1659
- }
1660
- dragOperation.status.set("initializing");
1661
- dragOperation.controller = controller;
1662
- this.manager.renderer.rendering.then(() => {
1663
- if (controller.signal.aborted) return;
1664
- const { status } = dragOperation;
1665
- if (status.current !== "initializing") return;
1666
- dragOperation.status.set("dragging");
1667
- this.manager.monitor.dispatch("dragstart", {
1668
- nativeEvent,
1669
- operation: dragOperation.snapshot(),
1670
- cancelable: false
1671
- });
1672
- });
1673
- return controller;
1674
- });
1675
- }
1676
- /**
1677
- * Moves the dragged entity to a new position.
1678
- *
1679
- * @param args - Configuration for the move operation
1680
- * @param args.by - Relative coordinates to move by
1681
- * @param args.to - Absolute coordinates to move to
1682
- * @param args.event - The event that triggered the move
1683
- * @param args.cancelable - Whether the move can be canceled
1684
- * @param args.propagate - Whether to dispatch dragmove events
1685
- */
1686
- move(args) {
1687
- return o(() => {
1688
- var _a, _b;
1689
- const { dragOperation } = this.manager;
1690
- const { status, controller } = dragOperation;
1691
- if (!status.dragging || !controller || controller.signal.aborted) return;
1692
- const event = defaultPreventable({
1693
- nativeEvent: args.event,
1694
- operation: dragOperation.snapshot(),
1695
- by: args.by,
1696
- to: args.to
1697
- }, (_a = args.cancelable) != null ? _a : true);
1698
- if ((_b = args.propagate) != null ? _b : true) this.manager.monitor.dispatch("dragmove", event);
1699
- queueMicrotask(() => {
1700
- var _a2, _b2, _c3, _d, _e;
1701
- if (event.defaultPrevented) return;
1702
- const coordinates = (_e = args.to) != null ? _e : {
1703
- x: dragOperation.position.current.x + ((_b2 = (_a2 = args.by) == null ? void 0 : _a2.x) != null ? _b2 : 0),
1704
- y: dragOperation.position.current.y + ((_d = (_c3 = args.by) == null ? void 0 : _c3.y) != null ? _d : 0)
1705
- };
1706
- dragOperation.position.current = coordinates;
1707
- });
1708
- });
1709
- }
1710
- /**
1711
- * Stops the current drag operation.
1712
- *
1713
- * @param args - Configuration for stopping the operation
1714
- * @param args.event - The event that triggered the stop
1715
- * @param args.canceled - Whether the operation was canceled
1716
- * @remarks
1717
- * This method:
1718
- * - Dispatches a dragend event
1719
- * - Allows suspension of the operation
1720
- * - Handles cleanup of the operation state
1721
- */
1722
- stop(args = {}) {
1723
- return o(() => {
1724
- var _a, _b;
1725
- const { dragOperation } = this.manager;
1726
- const { controller } = dragOperation;
1727
- if (!controller || controller.signal.aborted) return;
1728
- let promise;
1729
- const suspend = () => {
1730
- const output = {
1731
- resume: () => {},
1732
- abort: () => {}
1733
- };
1734
- promise = new Promise((resolve, reject) => {
1735
- output.resume = resolve;
1736
- output.abort = reject;
1737
- });
1738
- return output;
1739
- };
1740
- controller.abort();
1741
- const end = () => {
1742
- this.manager.renderer.rendering.then(() => {
1743
- dragOperation.status.set("dropped");
1744
- const dropping = o(() => {
1745
- var _a2;
1746
- return ((_a2 = dragOperation.source) == null ? void 0 : _a2.status) === "dropping";
1747
- });
1748
- const cleanup = () => {
1749
- if (dragOperation.controller === controller) dragOperation.controller = void 0;
1750
- dragOperation.reset();
1751
- };
1752
- if (dropping) {
1753
- const { source } = dragOperation;
1754
- const dispose = j(() => {
1755
- if ((source == null ? void 0 : source.status) === "idle") {
1756
- dispose();
1757
- cleanup();
1758
- }
1759
- });
1760
- } else this.manager.renderer.rendering.then(cleanup);
1761
- });
1762
- };
1763
- dragOperation.canceled = (_a = args.canceled) != null ? _a : false;
1764
- this.manager.monitor.dispatch("dragend", {
1765
- nativeEvent: args.event,
1766
- operation: dragOperation.snapshot(),
1767
- canceled: (_b = args.canceled) != null ? _b : false,
1768
- suspend
1769
- });
1770
- if (promise) promise.then(end).catch(() => dragOperation.reset());
1771
- else end();
1772
- });
1773
- }
1774
- };
1775
- var _disabled_dec2, _data_dec, _id_dec, _manager_dec = [reactive], _init3$1, _manager, _id, _data, _disabled2;
1776
- _id_dec = [reactive], _data_dec = [reactive], _disabled_dec2 = [reactive];
1777
- var Entity = class {
1778
- /**
1779
- * Creates a new instance of the `Entity` class.
1780
- *
1781
- * @param input - An object containing the initial properties of the entity.
1782
- * @param manager - The manager that controls the drag and drop operations.
1783
- */
1784
- constructor(input, manager) {
1785
- __privateAdd$4(this, _manager, __runInitializers$3(_init3$1, 8, this)), __runInitializers$3(_init3$1, 11, this);
1786
- __privateAdd$4(this, _id, __runInitializers$3(_init3$1, 12, this)), __runInitializers$3(_init3$1, 15, this);
1787
- __privateAdd$4(this, _data, __runInitializers$3(_init3$1, 16, this)), __runInitializers$3(_init3$1, 19, this);
1788
- __privateAdd$4(this, _disabled2, __runInitializers$3(_init3$1, 20, this)), __runInitializers$3(_init3$1, 23, this);
1789
- const { effects: effects6, id, data = {}, disabled = false, register = true } = input;
1790
- let previousId = id;
1791
- this.manager = manager;
1792
- this.id = id;
1793
- this.data = data;
1794
- this.disabled = disabled;
1795
- this.effects = () => {
1796
- var _a;
1797
- return [() => {
1798
- const { id: id2, manager: manager2 } = this;
1799
- if (id2 === previousId) return;
1800
- manager2?.registry.register(this);
1801
- return () => manager2 == null ? void 0 : manager2.registry.unregister(this);
1802
- }, ...(_a = effects6 == null ? void 0 : effects6()) != null ? _a : []];
1803
- };
1804
- this.register = this.register.bind(this);
1805
- this.unregister = this.unregister.bind(this);
1806
- this.destroy = this.destroy.bind(this);
1807
- if (manager && register) queueMicrotask(this.register);
1808
- }
1809
- /**
1810
- * A method that registers the entity with the manager.
1811
- * @returns CleanupFunction | void
1812
- */
1813
- register() {
1814
- var _a;
1815
- return (_a = this.manager) == null ? void 0 : _a.registry.register(this);
1816
- }
1817
- /**
1818
- * A method that unregisters the entity from the manager.
1819
- * @returns void
1820
- */
1821
- unregister() {
1822
- var _a;
1823
- (_a = this.manager) == null || _a.registry.unregister(this);
1824
- }
1825
- /**
1826
- * A method that cleans up the entity when it is no longer needed.
1827
- * @returns void
1828
- */
1829
- destroy() {
1830
- var _a;
1831
- (_a = this.manager) == null || _a.registry.unregister(this);
1832
- }
1833
- };
1834
- _init3$1 = __decoratorStart$3(null);
1835
- _manager = new WeakMap();
1836
- _id = new WeakMap();
1837
- _data = new WeakMap();
1838
- _disabled2 = new WeakMap();
1839
- __decorateElement$3(_init3$1, 4, "manager", _manager_dec, Entity, _manager);
1840
- __decorateElement$3(_init3$1, 4, "id", _id_dec, Entity, _id);
1841
- __decorateElement$3(_init3$1, 4, "data", _data_dec, Entity, _data);
1842
- __decorateElement$3(_init3$1, 4, "disabled", _disabled_dec2, Entity, _disabled2);
1843
- __decoratorMetadata$3(_init3$1, Entity);
1844
- var EntityRegistry = class {
1845
- constructor() {
1846
- this.map = y(new Map());
1847
- this.cleanupFunctions = new WeakMap();
1848
- /**
1849
- * Registers a entity in the registry.
1850
- * @param key - The unique identifier of the entity.
1851
- * @param value - The entity to register.
1852
- * @returns A function that unregisters the entity.
1853
- */
1854
- this.register = (key, value) => {
1855
- const current = this.map.peek();
1856
- const currentValue = current.get(key);
1857
- const unregister = () => this.unregister(key, value);
1858
- if (currentValue === value) return unregister;
1859
- if (currentValue) {
1860
- this.cleanupFunctions.get(currentValue)?.();
1861
- this.cleanupFunctions.delete(currentValue);
1862
- }
1863
- const updatedMap = new Map(current);
1864
- updatedMap.set(key, value);
1865
- this.map.value = updatedMap;
1866
- const cleanup = effects(...value.effects());
1867
- this.cleanupFunctions.set(value, cleanup);
1868
- return unregister;
1869
- };
1870
- /**
1871
- * Unregisters an entity from the registry.
1872
- * @param key - The unique identifier of the entity.
1873
- * @param value - The entity instance to unregister.
1874
- */
1875
- this.unregister = (key, value) => {
1876
- const current = this.map.peek();
1877
- if (current.get(key) !== value) return;
1878
- this.cleanupFunctions.get(value)?.();
1879
- this.cleanupFunctions.delete(value);
1880
- const updatedMap = new Map(current);
1881
- updatedMap.delete(key);
1882
- this.map.value = updatedMap;
1883
- };
1884
- }
1885
- /**
1886
- * Iterator for the EntityRegistry class.
1887
- * @returns An iterator for the values in the map.
1888
- */
1889
- [Symbol.iterator]() {
1890
- return this.map.peek().values();
1891
- }
1892
- get value() {
1893
- return this.map.value.values();
1894
- }
1895
- /**
1896
- * Checks if a entity with the given identifier exists in the registry.
1897
- * @param identifier - The unique identifier of the entity.
1898
- * @returns True if the entity exists, false otherwise.
1899
- */
1900
- has(identifier) {
1901
- return this.map.value.has(identifier);
1902
- }
1903
- /**
1904
- * Retrieves a entity from the registry using its identifier.
1905
- * @param identifier - The unique identifier of the entity.
1906
- * @returns The entity if it exists, undefined otherwise.
1907
- */
1908
- get(identifier) {
1909
- return this.map.value.get(identifier);
1910
- }
1911
- /**
1912
- * Destroys all entries in the registry and clears the registry.
1913
- */
1914
- destroy() {
1915
- for (const entry of this) {
1916
- this.cleanupFunctions.get(entry)?.();
1917
- entry.destroy();
1918
- }
1919
- this.map.value = new Map();
1920
- }
1921
- };
1922
- var _isDragSource_dec, _isDragging_dec, _isDropping_dec, _status_dec, _modifiers_dec, _type_dec, _c$1, _init4$1, _type, _modifiers, _status;
1923
- var Draggable$2 = class extends (_c$1 = Entity, _type_dec = [reactive], _modifiers_dec = [reactive], _status_dec = [reactive], _isDropping_dec = [derived], _isDragging_dec = [derived], _isDragSource_dec = [derived], _c$1) {
1924
- constructor(_a, manager) {
1925
- var _b = _a, { modifiers, type, sensors } = _b, input = __objRest$3(_b, [
1926
- "modifiers",
1927
- "type",
1928
- "sensors"
1929
- ]);
1930
- super(input, manager);
1931
- __runInitializers$3(_init4$1, 5, this);
1932
- __privateAdd$4(this, _type, __runInitializers$3(_init4$1, 8, this)), __runInitializers$3(_init4$1, 11, this);
1933
- __privateAdd$4(this, _modifiers, __runInitializers$3(_init4$1, 12, this)), __runInitializers$3(_init4$1, 15, this);
1934
- __privateAdd$4(this, _status, __runInitializers$3(_init4$1, 16, this, this.isDragSource ? "dragging" : "idle")), __runInitializers$3(_init4$1, 19, this);
1935
- this.type = type;
1936
- this.sensors = sensors;
1937
- this.modifiers = modifiers;
1938
- this.alignment = input.alignment;
1939
- }
1940
- get isDropping() {
1941
- return this.status === "dropping" && this.isDragSource;
1942
- }
1943
- get isDragging() {
1944
- return this.status === "dragging" && this.isDragSource;
1945
- }
1946
- get isDragSource() {
1947
- var _a, _b;
1948
- return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.source) == null ? void 0 : _b.id) === this.id;
1949
- }
1950
- };
1951
- _init4$1 = __decoratorStart$3(_c$1);
1952
- _type = new WeakMap();
1953
- _modifiers = new WeakMap();
1954
- _status = new WeakMap();
1955
- __decorateElement$3(_init4$1, 4, "type", _type_dec, Draggable$2, _type);
1956
- __decorateElement$3(_init4$1, 4, "modifiers", _modifiers_dec, Draggable$2, _modifiers);
1957
- __decorateElement$3(_init4$1, 4, "status", _status_dec, Draggable$2, _status);
1958
- __decorateElement$3(_init4$1, 2, "isDropping", _isDropping_dec, Draggable$2);
1959
- __decorateElement$3(_init4$1, 2, "isDragging", _isDragging_dec, Draggable$2);
1960
- __decorateElement$3(_init4$1, 2, "isDragSource", _isDragSource_dec, Draggable$2);
1961
- __decoratorMetadata$3(_init4$1, Draggable$2);
1962
- var _isDropTarget_dec, _shape_dec, _collisionPriority_dec, _collisionDetector_dec, _type_dec2, _accept_dec, _c2$1, _init5$1, _accept, _type2, _collisionDetector, _collisionPriority, _shape;
1963
- var Droppable$1 = class extends (_c2$1 = Entity, _accept_dec = [reactive], _type_dec2 = [reactive], _collisionDetector_dec = [reactive], _collisionPriority_dec = [reactive], _shape_dec = [reactive], _isDropTarget_dec = [derived], _c2$1) {
1964
- constructor(_a, manager) {
1965
- var _b = _a, { accept, collisionDetector, collisionPriority, type } = _b, input = __objRest$3(_b, [
1966
- "accept",
1967
- "collisionDetector",
1968
- "collisionPriority",
1969
- "type"
1970
- ]);
1971
- super(input, manager);
1972
- __runInitializers$3(_init5$1, 5, this);
1973
- __privateAdd$4(this, _accept, __runInitializers$3(_init5$1, 8, this)), __runInitializers$3(_init5$1, 11, this);
1974
- __privateAdd$4(this, _type2, __runInitializers$3(_init5$1, 12, this)), __runInitializers$3(_init5$1, 15, this);
1975
- __privateAdd$4(this, _collisionDetector, __runInitializers$3(_init5$1, 16, this)), __runInitializers$3(_init5$1, 19, this);
1976
- __privateAdd$4(this, _collisionPriority, __runInitializers$3(_init5$1, 20, this)), __runInitializers$3(_init5$1, 23, this);
1977
- __privateAdd$4(this, _shape, __runInitializers$3(_init5$1, 24, this)), __runInitializers$3(_init5$1, 27, this);
1978
- this.accept = accept;
1979
- this.collisionDetector = collisionDetector;
1980
- this.collisionPriority = collisionPriority;
1981
- this.type = type;
2017
+ * @param args.coordinates - The initial coordinates of the drag
2018
+ * @returns true if the drag operation started successfully
2019
+ * @throws {Error} If there is no drag source or another operation is active
2020
+ */
2021
+ start(args) {
2022
+ return o(() => {
2023
+ const { dragOperation } = this.manager;
2024
+ if (args.source != null) this.setDragSource(args.source);
2025
+ if (!dragOperation.source) throw new Error("Cannot start a drag operation without a drag source");
2026
+ if (!dragOperation.status.idle) throw new Error("Cannot start a drag operation while another is active");
2027
+ const controller = new AbortController();
2028
+ const { event: nativeEvent, coordinates } = args;
2029
+ n(() => {
2030
+ dragOperation.status.set("initialization-pending");
2031
+ dragOperation.shape = null;
2032
+ dragOperation.canceled = false;
2033
+ dragOperation.activatorEvent = nativeEvent != null ? nativeEvent : null;
2034
+ dragOperation.position.reset(coordinates);
2035
+ });
2036
+ const beforeStartEvent = defaultPreventable({ operation: dragOperation.snapshot() });
2037
+ this.manager.monitor.dispatch("beforedragstart", beforeStartEvent);
2038
+ if (beforeStartEvent.defaultPrevented) {
2039
+ dragOperation.reset();
2040
+ controller.abort();
2041
+ return controller;
2042
+ }
2043
+ dragOperation.status.set("initializing");
2044
+ dragOperation.controller = controller;
2045
+ this.manager.renderer.rendering.then(() => {
2046
+ if (controller.signal.aborted) return;
2047
+ const { status } = dragOperation;
2048
+ if (status.current !== "initializing") return;
2049
+ n(() => {
2050
+ dragOperation.status.set("dragging");
2051
+ this.manager.monitor.dispatch("dragstart", {
2052
+ nativeEvent,
2053
+ operation: dragOperation.snapshot(),
2054
+ cancelable: false
2055
+ });
2056
+ });
2057
+ });
2058
+ return controller;
2059
+ });
1982
2060
  }
1983
2061
  /**
1984
- * Checks whether or not the droppable accepts a given draggable.
2062
+ * Moves the dragged entity to a new position.
1985
2063
  *
1986
- * @param draggable - The draggable to check
1987
- * @returns true if the draggable can be dropped here
2064
+ * @param args - Configuration for the move operation
2065
+ * @param args.by - Relative coordinates to move by
2066
+ * @param args.to - Absolute coordinates to move to
2067
+ * @param args.event - The event that triggered the move
2068
+ * @param args.cancelable - Whether the move can be canceled
2069
+ * @param args.propagate - Whether to dispatch dragmove events
1988
2070
  */
1989
- accepts(draggable) {
1990
- const { accept } = this;
1991
- if (!accept) return true;
1992
- if (typeof accept === "function") return accept(draggable);
1993
- if (!draggable.type) return false;
1994
- if (Array.isArray(accept)) return accept.includes(draggable.type);
1995
- return draggable.type === accept;
2071
+ move(args) {
2072
+ return o(() => {
2073
+ var _a, _b;
2074
+ const { dragOperation } = this.manager;
2075
+ const { status, controller } = dragOperation;
2076
+ if (!status.dragging || !controller || controller.signal.aborted) return;
2077
+ const event = defaultPreventable({
2078
+ nativeEvent: args.event,
2079
+ operation: dragOperation.snapshot(),
2080
+ by: args.by,
2081
+ to: args.to
2082
+ }, (_a = args.cancelable) != null ? _a : true);
2083
+ if ((_b = args.propagate) != null ? _b : true) this.manager.monitor.dispatch("dragmove", event);
2084
+ queueMicrotask(() => {
2085
+ var _a2, _b2, _c3, _d, _e;
2086
+ if (event.defaultPrevented) return;
2087
+ const coordinates = (_e = args.to) != null ? _e : {
2088
+ x: dragOperation.position.current.x + ((_b2 = (_a2 = args.by) == null ? void 0 : _a2.x) != null ? _b2 : 0),
2089
+ y: dragOperation.position.current.y + ((_d = (_c3 = args.by) == null ? void 0 : _c3.y) != null ? _d : 0)
2090
+ };
2091
+ dragOperation.position.current = coordinates;
2092
+ });
2093
+ });
1996
2094
  }
1997
- get isDropTarget() {
1998
- var _a, _b;
1999
- return ((_b = (_a = this.manager) == null ? void 0 : _a.dragOperation.target) == null ? void 0 : _b.id) === this.id;
2095
+ /**
2096
+ * Stops the current drag operation.
2097
+ *
2098
+ * @param args - Configuration for stopping the operation
2099
+ * @param args.event - The event that triggered the stop
2100
+ * @param args.canceled - Whether the operation was canceled
2101
+ * @remarks
2102
+ * This method:
2103
+ * - Dispatches a dragend event
2104
+ * - Allows suspension of the operation
2105
+ * - Handles cleanup of the operation state
2106
+ */
2107
+ stop(args = {}) {
2108
+ return o(() => {
2109
+ var _a, _b;
2110
+ const { dragOperation } = this.manager;
2111
+ const { controller } = dragOperation;
2112
+ if (!controller || controller.signal.aborted) return;
2113
+ let promise;
2114
+ const suspend = () => {
2115
+ const output = {
2116
+ resume: () => {},
2117
+ abort: () => {}
2118
+ };
2119
+ promise = new Promise((resolve, reject) => {
2120
+ output.resume = resolve;
2121
+ output.abort = reject;
2122
+ });
2123
+ return output;
2124
+ };
2125
+ controller.abort();
2126
+ const end = () => {
2127
+ this.manager.renderer.rendering.then(() => {
2128
+ dragOperation.status.set("dropped");
2129
+ const dropping = o(() => {
2130
+ var _a2;
2131
+ return ((_a2 = dragOperation.source) == null ? void 0 : _a2.status) === "dropping";
2132
+ });
2133
+ const cleanup = () => {
2134
+ if (dragOperation.controller === controller) dragOperation.controller = void 0;
2135
+ dragOperation.reset();
2136
+ };
2137
+ if (dropping) {
2138
+ const { source } = dragOperation;
2139
+ const dispose = j(() => {
2140
+ if ((source == null ? void 0 : source.status) === "idle") {
2141
+ dispose();
2142
+ cleanup();
2143
+ }
2144
+ });
2145
+ } else this.manager.renderer.rendering.then(cleanup);
2146
+ });
2147
+ };
2148
+ dragOperation.canceled = (_a = args.canceled) != null ? _a : false;
2149
+ this.manager.monitor.dispatch("dragend", {
2150
+ nativeEvent: args.event,
2151
+ operation: dragOperation.snapshot(),
2152
+ canceled: (_b = args.canceled) != null ? _b : false,
2153
+ suspend
2154
+ });
2155
+ if (promise) promise.then(end).catch(() => dragOperation.reset());
2156
+ else end();
2157
+ });
2000
2158
  }
2001
2159
  };
2002
- _init5$1 = __decoratorStart$3(_c2$1);
2003
- _accept = new WeakMap();
2004
- _type2 = new WeakMap();
2005
- _collisionDetector = new WeakMap();
2006
- _collisionPriority = new WeakMap();
2007
- _shape = new WeakMap();
2008
- __decorateElement$3(_init5$1, 4, "accept", _accept_dec, Droppable$1, _accept);
2009
- __decorateElement$3(_init5$1, 4, "type", _type_dec2, Droppable$1, _type2);
2010
- __decorateElement$3(_init5$1, 4, "collisionDetector", _collisionDetector_dec, Droppable$1, _collisionDetector);
2011
- __decorateElement$3(_init5$1, 4, "collisionPriority", _collisionPriority_dec, Droppable$1, _collisionPriority);
2012
- __decorateElement$3(_init5$1, 4, "shape", _shape_dec, Droppable$1, _shape);
2013
- __decorateElement$3(_init5$1, 2, "isDropTarget", _isDropTarget_dec, Droppable$1);
2014
- __decoratorMetadata$3(_init5$1, Droppable$1);
2015
2160
  var Sensor = class extends Plugin {
2016
2161
  /**
2017
2162
  * Creates a new sensor instance.
@@ -2145,7 +2290,25 @@ var DragDropRegistry = class {
2145
2290
  this.modifiers.destroy();
2146
2291
  }
2147
2292
  };
2148
- var _transform_dec, _target_dec, _source_dec, _modifiers_dec2, _targetIdentifier_dec, _sourceIdentifier_dec, _activatorEvent_dec, _canceled_dec, _shape_dec2 = [derived], _manager2, _previousSource, _shape2, _init6$1, _canceled, _activatorEvent, _sourceIdentifier, _targetIdentifier, _modifiers2, _transform;
2293
+ var _transform_dec;
2294
+ var _target_dec;
2295
+ var _source_dec;
2296
+ var _modifiers_dec2;
2297
+ var _targetIdentifier_dec;
2298
+ var _sourceIdentifier_dec;
2299
+ var _activatorEvent_dec;
2300
+ var _canceled_dec;
2301
+ var _shape_dec2 = [derived];
2302
+ var _manager2;
2303
+ var _previousSource;
2304
+ var _shape2;
2305
+ var _init6$1;
2306
+ var _canceled;
2307
+ var _activatorEvent;
2308
+ var _sourceIdentifier;
2309
+ var _targetIdentifier;
2310
+ var _modifiers2;
2311
+ var _transform;
2149
2312
  _canceled_dec = [reactive], _activatorEvent_dec = [reactive], _sourceIdentifier_dec = [reactive], _targetIdentifier_dec = [reactive], _modifiers_dec2 = [reactive], _source_dec = [derived], _target_dec = [derived], _transform_dec = [derived];
2150
2313
  var DragOperation = class {
2151
2314
  /**
@@ -2489,13 +2652,14 @@ function isKeyframeEffect(effect) {
2489
2652
  }
2490
2653
  function getFinalKeyframe(element, match) {
2491
2654
  const animations2 = element.getAnimations();
2492
- if (animations2.length > 0) for (const animation of animations2) {
2655
+ let result = null;
2656
+ for (const animation of animations2) {
2493
2657
  if (animation.playState !== "running") continue;
2494
2658
  const { effect } = animation;
2495
2659
  const matchedKeyframes = (isKeyframeEffect(effect) ? effect.getKeyframes() : []).filter(match);
2496
- if (matchedKeyframes.length > 0) return [matchedKeyframes[matchedKeyframes.length - 1], animation];
2660
+ if (matchedKeyframes.length > 0) result = [matchedKeyframes[matchedKeyframes.length - 1], animation];
2497
2661
  }
2498
- return null;
2662
+ return result;
2499
2663
  }
2500
2664
  function getBoundingRectangle(element) {
2501
2665
  const { width, height, top, left, bottom, right } = element.getBoundingClientRect();
@@ -2702,15 +2866,15 @@ function isIFrameElement(element) {
2702
2866
  return (element == null ? void 0 : element.tagName) === "IFRAME";
2703
2867
  }
2704
2868
  var ProxiedElements = new WeakMap();
2705
- function isInteractiveElement(element) {
2706
- return Boolean(element.closest(`
2707
- input:not([disabled]),
2708
- select:not([disabled]),
2709
- textarea:not([disabled]),
2710
- button:not([disabled]),
2711
- a[href],
2712
- [contenteditable]:not([contenteditable="false"])
2713
- `));
2869
+ function getInteractiveElement(element) {
2870
+ return element.closest(`
2871
+ input:not([disabled]),
2872
+ select:not([disabled]),
2873
+ textarea:not([disabled]),
2874
+ button:not([disabled]),
2875
+ a[href],
2876
+ [contenteditable]:not([contenteditable="false"])
2877
+ `);
2714
2878
  }
2715
2879
  var Listeners = class {
2716
2880
  constructor() {
@@ -2734,8 +2898,13 @@ var Listeners = class {
2734
2898
  this.entries.add(entry);
2735
2899
  entries.push(entry);
2736
2900
  }
2901
+ const allEntries = this.entries;
2737
2902
  return function cleanup() {
2738
- for (const [target2, { type, listener, options }] of entries) target2.removeEventListener(type, listener, options);
2903
+ for (const entry of entries) {
2904
+ const [target2, { type, listener, options }] = entry;
2905
+ target2.removeEventListener(type, listener, options);
2906
+ allEntries.delete(entry);
2907
+ }
2739
2908
  };
2740
2909
  }
2741
2910
  };
@@ -2804,7 +2973,17 @@ var ResizeNotifier = class extends Observer {
2804
2973
  _initialized = new WeakMap();
2805
2974
  var threshold = Array.from({ length: 100 }, (_, index) => index / 100);
2806
2975
  var THROTTLE_INTERVAL = 75;
2807
- var _visible, _previousBoundingClientRect, _resizeObserver, _positionObserver, _visibilityObserver, _debug, _disconnected, _observePosition, _PositionObserver_instances, notify_fn, updateDebug_fn;
2976
+ var _visible;
2977
+ var _previousBoundingClientRect;
2978
+ var _resizeObserver;
2979
+ var _positionObserver;
2980
+ var _visibilityObserver;
2981
+ var _debug;
2982
+ var _disconnected;
2983
+ var _observePosition;
2984
+ var _PositionObserver_instances;
2985
+ var notify_fn;
2986
+ var updateDebug_fn;
2808
2987
  var PositionObserver = class {
2809
2988
  constructor(element, callback, options = {
2810
2989
  debug: false,
@@ -2981,7 +3160,10 @@ function addScrollListener(element, callback) {
2981
3160
  }
2982
3161
  };
2983
3162
  }
2984
- var _elementObserver, _disconnected2, _frames, _handleScroll;
3163
+ var _elementObserver;
3164
+ var _disconnected2;
3165
+ var _frames;
3166
+ var _handleScroll;
2985
3167
  var FrameObserver = class {
2986
3168
  constructor(element, callback, options) {
2987
3169
  this.callback = callback;
@@ -3168,10 +3350,6 @@ function getScrollableAncestors(element, options = defaultOptions) {
3168
3350
  if (!element) return scrollParents;
3169
3351
  return findScrollableAncestors(element);
3170
3352
  }
3171
- function getFirstScrollableAncestor(node) {
3172
- const [firstScrollableAncestor] = getScrollableAncestors(node, { limit: 1 });
3173
- return firstScrollableAncestor != null ? firstScrollableAncestor : null;
3174
- }
3175
3353
  function getFrameTransform(el, boundary = window.frameElement) {
3176
3354
  const transform = {
3177
3355
  x: 0,
@@ -3207,7 +3385,7 @@ function getScale(element, boundingRectangle = getBoundingRectangle(element)) {
3207
3385
  };
3208
3386
  }
3209
3387
  function parseScale(scale) {
3210
- if (scale === "none") return null;
3388
+ if (!scale || scale === "none") return null;
3211
3389
  const values = scale.split(" ");
3212
3390
  const x = parseFloat(values[0]);
3213
3391
  const y = parseFloat(values[1]);
@@ -3218,7 +3396,7 @@ function parseScale(scale) {
3218
3396
  };
3219
3397
  }
3220
3398
  function parseTranslate(translate) {
3221
- if (translate === "none") return null;
3399
+ if (!translate || translate === "none") return null;
3222
3400
  const [x, y, z = "0"] = translate.split(" ");
3223
3401
  const output = {
3224
3402
  x: parseFloat(x),
@@ -3315,17 +3493,17 @@ function detectScrollIntent(scrollableElement, coordinates, intent, acceleration
3315
3493
  height: scrollContainerRect.height * thresholdPercentage.y,
3316
3494
  width: scrollContainerRect.width * thresholdPercentage.x
3317
3495
  };
3318
- if ((!isTop || isYAxisInverted && !isBottom) && y <= scrollContainerRect.top + threshold2.height && (intent == null ? void 0 : intent.y) !== 1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
3496
+ if (threshold2.height > 0 && (!isTop || isYAxisInverted && !isBottom) && y <= scrollContainerRect.top + threshold2.height && (intent == null ? void 0 : intent.y) !== 1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
3319
3497
  direction.y = isYAxisInverted ? 1 : -1;
3320
3498
  speed.y = acceleration * Math.abs((scrollContainerRect.top + threshold2.height - y) / threshold2.height);
3321
- } else if ((!isBottom || isYAxisInverted && !isTop) && y >= scrollContainerRect.bottom - threshold2.height && (intent == null ? void 0 : intent.y) !== -1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
3499
+ } else if (threshold2.height > 0 && (!isBottom || isYAxisInverted && !isTop) && y >= scrollContainerRect.bottom - threshold2.height && (intent == null ? void 0 : intent.y) !== -1 && x >= scrollContainerRect.left - tolerance.x && x <= scrollContainerRect.right + tolerance.x) {
3322
3500
  direction.y = isYAxisInverted ? -1 : 1;
3323
3501
  speed.y = acceleration * Math.abs((scrollContainerRect.bottom - threshold2.height - y) / threshold2.height);
3324
3502
  }
3325
- if ((!isRight || isXAxisInverted && !isLeft) && x >= scrollContainerRect.right - threshold2.width && (intent == null ? void 0 : intent.x) !== -1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
3503
+ if (threshold2.width > 0 && (!isRight || isXAxisInverted && !isLeft) && x >= scrollContainerRect.right - threshold2.width && (intent == null ? void 0 : intent.x) !== -1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
3326
3504
  direction.x = isXAxisInverted ? -1 : 1;
3327
3505
  speed.x = acceleration * Math.abs((scrollContainerRect.right - threshold2.width - x) / threshold2.width);
3328
- } else if ((!isLeft || isXAxisInverted && !isRight) && x <= scrollContainerRect.left + threshold2.width && (intent == null ? void 0 : intent.x) !== 1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
3506
+ } else if (threshold2.width > 0 && (!isLeft || isXAxisInverted && !isRight) && x <= scrollContainerRect.left + threshold2.width && (intent == null ? void 0 : intent.x) !== 1 && y >= scrollContainerRect.top - tolerance.y && y <= scrollContainerRect.bottom + tolerance.y) {
3329
3507
  direction.x = isXAxisInverted ? 1 : -1;
3330
3508
  speed.x = acceleration * Math.abs((scrollContainerRect.left + threshold2.width - x) / threshold2.width);
3331
3509
  }
@@ -3334,21 +3512,59 @@ function detectScrollIntent(scrollableElement, coordinates, intent, acceleration
3334
3512
  speed
3335
3513
  };
3336
3514
  }
3337
- function supportsScrollIntoViewIfNeeded(element) {
3338
- return "scrollIntoViewIfNeeded" in element && typeof element.scrollIntoViewIfNeeded === "function";
3339
- }
3340
- function scrollIntoViewIfNeeded(el, centerIfNeeded = false) {
3341
- if (supportsScrollIntoViewIfNeeded(el)) {
3342
- el.scrollIntoViewIfNeeded(centerIfNeeded);
3343
- return;
3515
+ function scrollIntoViewIfNeeded(el, { block = "nearest", inline = "nearest" } = {}) {
3516
+ if (!isHTMLElement(el)) return;
3517
+ const scrollableAncestors = getScrollableAncestors(el);
3518
+ const processedAncestors = [];
3519
+ for (const ancestor of scrollableAncestors) {
3520
+ if (!isHTMLElement(ancestor)) continue;
3521
+ const { top, left } = getOffsetRelativeTo(el, ancestor);
3522
+ let adjustedTop = top;
3523
+ let adjustedLeft = left;
3524
+ for (const inner of processedAncestors) {
3525
+ adjustedTop -= inner.scrollTop;
3526
+ adjustedLeft -= inner.scrollLeft;
3527
+ }
3528
+ if (block !== "none") {
3529
+ const overTop = adjustedTop < ancestor.scrollTop;
3530
+ if (overTop !== adjustedTop + el.offsetHeight > ancestor.scrollTop + ancestor.clientHeight) if (block === "center") ancestor.scrollTop = adjustedTop - ancestor.clientHeight / 2 + el.offsetHeight / 2;
3531
+ else if (overTop) ancestor.scrollTop = adjustedTop;
3532
+ else ancestor.scrollTop = adjustedTop + el.offsetHeight - ancestor.clientHeight;
3533
+ }
3534
+ if (inline !== "none") {
3535
+ const overLeft = adjustedLeft < ancestor.scrollLeft;
3536
+ if (overLeft !== adjustedLeft + el.offsetWidth > ancestor.scrollLeft + ancestor.clientWidth) if (inline === "center") ancestor.scrollLeft = adjustedLeft - ancestor.clientWidth / 2 + el.offsetWidth / 2;
3537
+ else if (overLeft) ancestor.scrollLeft = adjustedLeft;
3538
+ else ancestor.scrollLeft = adjustedLeft + el.offsetWidth - ancestor.clientWidth;
3539
+ }
3540
+ processedAncestors.push(ancestor);
3541
+ }
3542
+ }
3543
+ function getDocumentOffset(element) {
3544
+ let top = 0;
3545
+ let left = 0;
3546
+ let current = element;
3547
+ while (current) {
3548
+ top += current.offsetTop;
3549
+ left += current.offsetLeft;
3550
+ const offsetParent = current.offsetParent;
3551
+ if (!isHTMLElement(offsetParent)) break;
3552
+ top += offsetParent.clientTop;
3553
+ left += offsetParent.clientLeft;
3554
+ current = offsetParent;
3344
3555
  }
3345
- if (!isHTMLElement(el)) return el.scrollIntoView();
3346
- var parent = getFirstScrollableAncestor(el);
3347
- if (!isHTMLElement(parent)) return;
3348
- const parentComputedStyle = getComputedStyles(parent, true), parentBorderTopWidth = parseInt(parentComputedStyle.getPropertyValue("border-top-width")), parentBorderLeftWidth = parseInt(parentComputedStyle.getPropertyValue("border-left-width")), overTop = el.offsetTop - parent.offsetTop < parent.scrollTop, overBottom = el.offsetTop - parent.offsetTop + el.clientHeight - parentBorderTopWidth > parent.scrollTop + parent.clientHeight, overLeft = el.offsetLeft - parent.offsetLeft < parent.scrollLeft, overRight = el.offsetLeft - parent.offsetLeft + el.clientWidth - parentBorderLeftWidth > parent.scrollLeft + parent.clientWidth, alignWithTop = overTop && !overBottom;
3349
- if ((overTop || overBottom) && centerIfNeeded) parent.scrollTop = el.offsetTop - parent.offsetTop - parent.clientHeight / 2 - parentBorderTopWidth + el.clientHeight / 2;
3350
- if ((overLeft || overRight) && centerIfNeeded) parent.scrollLeft = el.offsetLeft - parent.offsetLeft - parent.clientWidth / 2 - parentBorderLeftWidth + el.clientWidth / 2;
3351
- if ((overTop || overBottom || overLeft || overRight) && !centerIfNeeded) el.scrollIntoView(alignWithTop);
3556
+ return {
3557
+ top,
3558
+ left
3559
+ };
3560
+ }
3561
+ function getOffsetRelativeTo(element, ancestor) {
3562
+ const elOffset = getDocumentOffset(element);
3563
+ const ancestorOffset = getDocumentOffset(ancestor);
3564
+ return {
3565
+ top: elOffset.top - ancestorOffset.top - ancestor.clientTop,
3566
+ left: elOffset.left - ancestorOffset.left - ancestor.clientLeft
3567
+ };
3352
3568
  }
3353
3569
  function applyTransform(rect, parsedTransform, transformOrigin) {
3354
3570
  const { scaleX, scaleY, x: translateX, y: translateY } = parsedTransform;
@@ -3504,32 +3720,37 @@ var DOMRectangle = class extends Rectangle {
3504
3720
  }
3505
3721
  };
3506
3722
  function getProjectedTransform(element, computedStyles) {
3507
- var _a;
3508
3723
  const animations2 = element.getAnimations();
3509
- let projectedTransform = null;
3510
3724
  if (!animations2.length) return null;
3725
+ let latestTransform;
3726
+ let latestTranslate;
3727
+ let latestScale;
3728
+ let hasAnimatedProperty = false;
3511
3729
  for (const animation of animations2) {
3512
3730
  if (animation.playState !== "running") continue;
3513
3731
  const keyframes = isKeyframeEffect(animation.effect) ? animation.effect.getKeyframes() : [];
3514
3732
  const keyframe = keyframes[keyframes.length - 1];
3515
3733
  if (!keyframe) continue;
3516
3734
  const { transform, translate, scale } = keyframe;
3517
- if (transform || translate || scale) {
3518
- const parsedTransform = parseTransform({
3519
- transform: typeof transform === "string" && transform ? transform : computedStyles.transform,
3520
- translate: typeof translate === "string" && translate ? translate : computedStyles.translate,
3521
- scale: typeof scale === "string" && scale ? scale : computedStyles.scale
3522
- });
3523
- if (parsedTransform) projectedTransform = projectedTransform ? {
3524
- x: projectedTransform.x + parsedTransform.x,
3525
- y: projectedTransform.y + parsedTransform.y,
3526
- z: (_a = projectedTransform.z) != null ? _a : parsedTransform.z,
3527
- scaleX: projectedTransform.scaleX * parsedTransform.scaleX,
3528
- scaleY: projectedTransform.scaleY * parsedTransform.scaleY
3529
- } : parsedTransform;
3735
+ if (typeof transform === "string" && transform) {
3736
+ latestTransform = transform;
3737
+ hasAnimatedProperty = true;
3738
+ }
3739
+ if (typeof translate === "string" && translate) {
3740
+ latestTranslate = translate;
3741
+ hasAnimatedProperty = true;
3742
+ }
3743
+ if (typeof scale === "string" && scale) {
3744
+ latestScale = scale;
3745
+ hasAnimatedProperty = true;
3530
3746
  }
3531
3747
  }
3532
- return projectedTransform;
3748
+ if (!hasAnimatedProperty) return null;
3749
+ return parseTransform({
3750
+ transform: latestTransform != null ? latestTransform : computedStyles.transform,
3751
+ translate: latestTranslate != null ? latestTranslate : computedStyles.translate,
3752
+ scale: latestScale != null ? latestScale : computedStyles.scale
3753
+ });
3533
3754
  }
3534
3755
  function supportsStyle(element) {
3535
3756
  return "style" in element && typeof element.style === "object" && element.style !== null && "setProperty" in element.style && "removeProperty" in element.style && typeof element.style.setProperty === "function" && typeof element.style.removeProperty === "function";
@@ -3949,43 +4170,32 @@ function debounce(fn, wait) {
3949
4170
  debounced.cancel = () => clearTimeout(timeout);
3950
4171
  return debounced;
3951
4172
  }
3952
- var Cursor = class extends Plugin {
4173
+ var styleRegistry = new Map();
4174
+ var _roots_dec;
4175
+ var _targetRoot_dec;
4176
+ var _sourceRoot_dec;
4177
+ var _additionalRoots_dec;
4178
+ var _a$1;
4179
+ var _registeredRules;
4180
+ var _init$2;
4181
+ var _additionalRoots;
4182
+ var _StyleInjector_instances;
4183
+ var syncStyles_fn;
4184
+ var inject_fn;
4185
+ var injectStyleElement_fn;
4186
+ var injectAdoptedSheet_fn;
4187
+ var _StyleInjector = class _StyleInjector extends (_a$1 = CorePlugin, _additionalRoots_dec = [reactive], _sourceRoot_dec = [derived], _targetRoot_dec = [derived], _roots_dec = [derived], _a$1) {
3953
4188
  constructor(manager, options) {
3954
4189
  super(manager, options);
3955
- this.manager = manager;
3956
- const doc = computed(() => {
3957
- var _a5;
3958
- return getDocument((_a5 = this.manager.dragOperation.source) == null ? void 0 : _a5.element);
3959
- });
3960
- this.destroy = j(() => {
3961
- var _a5;
3962
- const { dragOperation } = this.manager;
3963
- const { cursor = "grabbing", nonce } = (_a5 = this.options) != null ? _a5 : {};
3964
- if (dragOperation.status.initialized) {
3965
- const document2 = doc.value;
3966
- const style = document2.createElement("style");
3967
- if (nonce) style.setAttribute("nonce", nonce);
3968
- style.textContent = `* { cursor: ${cursor} !important; }`;
3969
- document2.head.appendChild(style);
3970
- return () => style.remove();
3971
- }
3972
- });
3973
- }
3974
- };
3975
- var styleRegistry = new Map();
3976
- var _roots_dec, _targetRoot_dec, _sourceRoot_dec, _additionalRoots_dec, _a$1, _registeredRules, _init$2, _additionalRoots, _StyleSheetManager_instances, syncStyles_fn, inject_fn, injectStyleElement_fn, injectAdoptedSheet_fn;
3977
- var StyleSheetManager = class extends (_a$1 = CorePlugin, _additionalRoots_dec = [reactive], _sourceRoot_dec = [derived], _targetRoot_dec = [derived], _roots_dec = [derived], _a$1) {
3978
- constructor(manager) {
3979
- super(manager);
3980
4190
  __runInitializers$2(_init$2, 5, this);
3981
- __privateAdd$2(this, _StyleSheetManager_instances);
4191
+ __privateAdd$2(this, _StyleInjector_instances);
3982
4192
  __privateAdd$2(this, _registeredRules, new Set());
3983
4193
  __privateAdd$2(this, _additionalRoots, __runInitializers$2(_init$2, 8, this, new Set())), __runInitializers$2(_init$2, 11, this);
3984
- this.registerEffect(__privateMethod(this, _StyleSheetManager_instances, syncStyles_fn));
4194
+ this.registerEffect(__privateMethod(this, _StyleInjector_instances, syncStyles_fn));
3985
4195
  }
3986
4196
  /**
3987
4197
  * Registers CSS rules to be injected into the active drag operation's
3988
- * document and shadow roots. The StyleSheetManager handles tracking
4198
+ * document and shadow roots. The StyleInjector handles tracking
3989
4199
  * which roots need the styles and cleaning up when they're no longer needed.
3990
4200
  *
3991
4201
  * Returns a cleanup function that unregisters the rules.
@@ -4036,11 +4246,11 @@ var StyleSheetManager = class extends (_a$1 = CorePlugin, _additionalRoots_dec =
4036
4246
  _init$2 = __decoratorStart$2(_a$1);
4037
4247
  _registeredRules = new WeakMap();
4038
4248
  _additionalRoots = new WeakMap();
4039
- _StyleSheetManager_instances = new WeakSet();
4249
+ _StyleInjector_instances = new WeakSet();
4040
4250
  syncStyles_fn = function() {
4041
4251
  const { roots } = this;
4042
4252
  const cleanups = [];
4043
- for (const root of roots) for (const cssRules of __privateGet$2(this, _registeredRules)) cleanups.push(__privateMethod(this, _StyleSheetManager_instances, inject_fn).call(this, root, cssRules));
4253
+ for (const root of roots) for (const cssRules of __privateGet$2(this, _registeredRules)) cleanups.push(__privateMethod(this, _StyleInjector_instances, inject_fn).call(this, root, cssRules));
4044
4254
  return () => {
4045
4255
  for (const cleanup of cleanups) cleanup();
4046
4256
  };
@@ -4053,7 +4263,7 @@ inject_fn = function(root, cssRules) {
4053
4263
  }
4054
4264
  let registration = rootStyles.get(cssRules);
4055
4265
  if (!registration) {
4056
- const created = isDocument(root) ? __privateMethod(this, _StyleSheetManager_instances, injectStyleElement_fn).call(this, root, rootStyles, cssRules) : __privateMethod(this, _StyleSheetManager_instances, injectAdoptedSheet_fn).call(this, root, rootStyles, cssRules);
4266
+ const created = isDocument(root) ? __privateMethod(this, _StyleInjector_instances, injectStyleElement_fn).call(this, root, rootStyles, cssRules) : __privateMethod(this, _StyleInjector_instances, injectAdoptedSheet_fn).call(this, root, rootStyles, cssRules);
4057
4267
  if (!created) return () => {};
4058
4268
  registration = created;
4059
4269
  rootStyles.set(cssRules, registration);
@@ -4073,7 +4283,10 @@ inject_fn = function(root, cssRules) {
4073
4283
  * giving them the lowest cascade priority.
4074
4284
  */
4075
4285
  injectStyleElement_fn = function(root, rootStyles, cssRules) {
4286
+ var _a5;
4076
4287
  const style = root.createElement("style");
4288
+ const { nonce } = (_a5 = this.options) != null ? _a5 : {};
4289
+ if (nonce) style.setAttribute("nonce", nonce);
4077
4290
  style.textContent = cssRules;
4078
4291
  root.head.prepend(style);
4079
4292
  const observer = new MutationObserver((entries) => {
@@ -4121,11 +4334,29 @@ injectAdoptedSheet_fn = function(root, rootStyles, cssRules) {
4121
4334
  }
4122
4335
  };
4123
4336
  };
4124
- __decorateElement$2(_init$2, 4, "additionalRoots", _additionalRoots_dec, StyleSheetManager, _additionalRoots);
4125
- __decorateElement$2(_init$2, 2, "sourceRoot", _sourceRoot_dec, StyleSheetManager);
4126
- __decorateElement$2(_init$2, 2, "targetRoot", _targetRoot_dec, StyleSheetManager);
4127
- __decorateElement$2(_init$2, 2, "roots", _roots_dec, StyleSheetManager);
4128
- __decoratorMetadata$2(_init$2, StyleSheetManager);
4337
+ __decorateElement$2(_init$2, 4, "additionalRoots", _additionalRoots_dec, _StyleInjector, _additionalRoots);
4338
+ __decorateElement$2(_init$2, 2, "sourceRoot", _sourceRoot_dec, _StyleInjector);
4339
+ __decorateElement$2(_init$2, 2, "targetRoot", _targetRoot_dec, _StyleInjector);
4340
+ __decorateElement$2(_init$2, 2, "roots", _roots_dec, _StyleInjector);
4341
+ __decoratorMetadata$2(_init$2, _StyleInjector);
4342
+ _StyleInjector.configure = configurator(_StyleInjector);
4343
+ var StyleInjector = _StyleInjector;
4344
+ var Cursor = class extends Plugin {
4345
+ constructor(manager, options) {
4346
+ super(manager, options);
4347
+ this.manager = manager;
4348
+ const { cursor = "grabbing" } = options != null ? options : {};
4349
+ const styleInjector = manager.registry.plugins.get(StyleInjector);
4350
+ const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(`* { cursor: ${cursor} !important; }`);
4351
+ if (unregisterStyles) {
4352
+ const originalDestroy = this.destroy.bind(this);
4353
+ this.destroy = () => {
4354
+ unregisterStyles();
4355
+ originalDestroy();
4356
+ };
4357
+ }
4358
+ }
4359
+ };
4129
4360
  var ATTR_PREFIX = "data-dnd-";
4130
4361
  var DROPPING_ATTRIBUTE = `${ATTR_PREFIX}dropping`;
4131
4362
  var CSS_PREFIX = "--dnd-";
@@ -4154,6 +4385,7 @@ var CSS_RULES = `
4154
4385
  max-width: var(${CSS_PREFIX}width, auto);
4155
4386
  height: var(${CSS_PREFIX}height, auto);
4156
4387
  max-height: var(${CSS_PREFIX}height, auto);
4388
+ transform: var(${CSS_PREFIX}transform, none) !important;
4157
4389
  transition: var(${CSS_PREFIX}transition) !important;
4158
4390
  }
4159
4391
 
@@ -4286,7 +4518,7 @@ function createElementMutationObserver(element, placeholder, clone) {
4286
4518
  } else if (attributeValue !== null) placeholder.setAttribute(attributeName, attributeValue);
4287
4519
  else placeholder.removeAttribute(attributeName);
4288
4520
  }
4289
- if (hasChildrenMutations && clone) placeholder.innerHTML = element.innerHTML;
4521
+ if (hasChildrenMutations && clone) placeholder.replaceChildren(...element.cloneNode(true).childNodes);
4290
4522
  });
4291
4523
  observer.observe(element, {
4292
4524
  attributes: true,
@@ -4312,6 +4544,10 @@ function createDocumentMutationObserver(element, placeholder, feedbackElement) {
4312
4544
  }
4313
4545
  }
4314
4546
  }
4547
+ if (element.isConnected && placeholder.isConnected && element.nextElementSibling !== placeholder) {
4548
+ element.insertAdjacentElement("afterend", placeholder);
4549
+ showPopover(feedbackElement);
4550
+ }
4315
4551
  });
4316
4552
  observer.observe(element.ownerDocument.body, {
4317
4553
  childList: true,
@@ -4321,7 +4557,7 @@ function createDocumentMutationObserver(element, placeholder, feedbackElement) {
4321
4557
  }
4322
4558
  function createResizeObserver(ctx) {
4323
4559
  return new ResizeObserver(() => {
4324
- var _a5, _b2;
4560
+ var _a5, _b2, _c3;
4325
4561
  const placeholderShape = new DOMRectangle(ctx.placeholder, {
4326
4562
  frameTransform: ctx.frameTransform,
4327
4563
  ignoreTransforms: true
@@ -4349,7 +4585,16 @@ function createResizeObserver(ctx) {
4349
4585
  cell.style.width = `${placeholderCell.getBoundingClientRect().width}px`;
4350
4586
  }
4351
4587
  }
4352
- ctx.dragOperation.shape = new DOMRectangle(ctx.feedbackElement);
4588
+ const translate = (_c3 = ctx.getTranslate()) != null ? _c3 : {
4589
+ x: 0,
4590
+ y: 0
4591
+ };
4592
+ const shapeLeft = ctx.left + dX + fixedOffset.x + translate.x;
4593
+ const shapeTop = ctx.top + dY + fixedOffset.y + translate.y;
4594
+ const shapeWidth = placeholderShape.width - ctx.widthOffset;
4595
+ const shapeHeight = placeholderShape.height - ctx.heightOffset;
4596
+ const ft = ctx.frameTransform;
4597
+ ctx.dragOperation.shape = new Rectangle(shapeLeft * ft.scaleX + ft.x, shapeTop * ft.scaleY + ft.y, shapeWidth * ft.scaleX, shapeHeight * ft.scaleY);
4353
4598
  });
4354
4599
  }
4355
4600
  var DEFAULT_DURATION = 250;
@@ -4359,6 +4604,7 @@ function runDropAnimation(ctx) {
4359
4604
  const { animation } = ctx;
4360
4605
  if (typeof animation === "function") {
4361
4606
  const result = animation({
4607
+ source: ctx.source,
4362
4608
  element: ctx.element,
4363
4609
  feedbackElement: ctx.feedbackElement,
4364
4610
  placeholder: ctx.placeholder,
@@ -4410,7 +4656,13 @@ function runDropAnimation(ctx) {
4410
4656
  requestAnimationFrame(ctx.restoreFocus);
4411
4657
  });
4412
4658
  }
4413
- var _overlay_dec, _a2, _init2, _overlay, _Feedback_instances, trackOverlayRoot_fn, render_fn;
4659
+ var _overlay_dec;
4660
+ var _a2;
4661
+ var _init2;
4662
+ var _overlay;
4663
+ var _Feedback_instances;
4664
+ var trackOverlayRoot_fn;
4665
+ var render_fn;
4414
4666
  var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive], _a2) {
4415
4667
  constructor(manager, options) {
4416
4668
  super(manager, options);
@@ -4420,8 +4672,8 @@ var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive]
4420
4672
  initial: {},
4421
4673
  current: {}
4422
4674
  };
4423
- const styleSheetManager = manager.registry.plugins.get(StyleSheetManager);
4424
- const unregisterStyles = styleSheetManager == null ? void 0 : styleSheetManager.register(CSS_RULES);
4675
+ const styleInjector = manager.registry.plugins.get(StyleInjector);
4676
+ const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES);
4425
4677
  if (unregisterStyles) {
4426
4678
  const originalDestroy = this.destroy.bind(this);
4427
4679
  this.destroy = () => {
@@ -4429,22 +4681,22 @@ var _Feedback = class _Feedback extends (_a2 = Plugin, _overlay_dec = [reactive]
4429
4681
  originalDestroy();
4430
4682
  };
4431
4683
  }
4432
- this.registerEffect(__privateMethod(this, _Feedback_instances, trackOverlayRoot_fn).bind(this, styleSheetManager));
4684
+ this.registerEffect(__privateMethod(this, _Feedback_instances, trackOverlayRoot_fn).bind(this, styleInjector));
4433
4685
  this.registerEffect(__privateMethod(this, _Feedback_instances, render_fn));
4434
4686
  }
4435
4687
  };
4436
4688
  _init2 = __decoratorStart$2(_a2);
4437
4689
  _overlay = new WeakMap();
4438
4690
  _Feedback_instances = new WeakSet();
4439
- trackOverlayRoot_fn = function(styleSheetManager) {
4691
+ trackOverlayRoot_fn = function(styleInjector) {
4440
4692
  const { overlay } = this;
4441
- if (!overlay || !styleSheetManager) return;
4693
+ if (!overlay || !styleInjector) return;
4442
4694
  const root = getRoot(overlay);
4443
4695
  if (!root) return;
4444
- return styleSheetManager.addRoot(root);
4696
+ return styleInjector.addRoot(root);
4445
4697
  };
4446
4698
  render_fn = function() {
4447
- var _a5, _b2, _c3;
4699
+ var _a5, _b2, _c3, _d2, _e, _f, _g;
4448
4700
  const { state, manager, options } = this;
4449
4701
  const { dragOperation } = manager;
4450
4702
  const { position, source, status } = dragOperation;
@@ -4454,10 +4706,13 @@ render_fn = function() {
4454
4706
  return;
4455
4707
  }
4456
4708
  if (!source) return;
4457
- const { element, feedback } = source;
4709
+ const { element } = source;
4710
+ const entityOptions = source.pluginConfig(_Feedback);
4711
+ const feedbackOption = (_b2 = (_a5 = entityOptions == null ? void 0 : entityOptions.feedback) != null ? _a5 : options == null ? void 0 : options.feedback) != null ? _b2 : "default";
4712
+ const feedback = typeof feedbackOption === "function" ? feedbackOption(source, manager) : feedbackOption;
4458
4713
  if (!element || feedback === "none" || !status.initialized || status.initializing) return;
4459
4714
  const { initial } = state;
4460
- const feedbackElement = (_a5 = this.overlay) != null ? _a5 : element;
4715
+ const feedbackElement = (_c3 = this.overlay) != null ? _c3 : element;
4461
4716
  const frameTransform = getFrameTransform(feedbackElement);
4462
4717
  const elementFrameTransform = getFrameTransform(element);
4463
4718
  const crossFrame = !isSameFrame(element, feedbackElement);
@@ -4475,22 +4730,34 @@ render_fn = function() {
4475
4730
  height = height / scaleDelta.y;
4476
4731
  }
4477
4732
  const styles = new Styles(feedbackElement);
4478
- const { transition, translate, boxSizing, paddingBlockStart, paddingBlockEnd, paddingInlineStart, paddingInlineEnd, borderInlineStartWidth, borderInlineEndWidth, borderBlockStartWidth, borderBlockEndWidth } = getComputedStyles(element);
4733
+ const elementStyles = getComputedStyles(element);
4734
+ const { transition, translate, boxSizing, paddingBlockStart, paddingBlockEnd, paddingInlineStart, paddingInlineEnd, borderInlineStartWidth, borderInlineEndWidth, borderBlockStartWidth, borderBlockEndWidth } = elementStyles;
4735
+ const feedbackTransition = transition.split(",").filter((t) => !/^\s*(transform|translate|scale)\b/.test(t)).join(",");
4736
+ const parsedTransform = parseTransform(elementStyles);
4737
+ const initialTransformStyle = elementStyles.transform;
4479
4738
  const clone = feedback === "clone";
4480
4739
  const contentBox = boxSizing === "content-box";
4481
4740
  const widthOffset = contentBox ? parseInt(paddingInlineStart) + parseInt(paddingInlineEnd) + parseInt(borderInlineStartWidth) + parseInt(borderInlineEndWidth) : 0;
4482
4741
  const heightOffset = contentBox ? parseInt(paddingBlockStart) + parseInt(paddingBlockEnd) + parseInt(borderBlockStartWidth) + parseInt(borderBlockEndWidth) : 0;
4483
4742
  const placeholder = feedback !== "move" && !this.overlay ? createPlaceholder(source, clone ? "clone" : "hidden") : null;
4484
4743
  const isKeyboardOperation = o(() => isKeyboardEvent(manager.dragOperation.activatorEvent));
4485
- if (translate !== "none") {
4486
- const parsedTranslate = parseTranslate(translate);
4487
- if (parsedTranslate && !initial.translate) initial.translate = parsedTranslate;
4744
+ if (!initial.translate) {
4745
+ if (this.overlay && parsedTransform) initial.translate = {
4746
+ x: parsedTransform.x,
4747
+ y: parsedTransform.y
4748
+ };
4749
+ else if (translate !== "none") {
4750
+ const parsedTranslate = parseTranslate(translate);
4751
+ if (parsedTranslate) initial.translate = parsedTranslate;
4752
+ }
4488
4753
  }
4489
4754
  if (!initial.transformOrigin) {
4490
4755
  const current = o(() => position.current);
4756
+ const visualLeft = left + ((_d2 = parsedTransform == null ? void 0 : parsedTransform.x) != null ? _d2 : 0);
4757
+ const visualTop = top + ((_e = parsedTransform == null ? void 0 : parsedTransform.y) != null ? _e : 0);
4491
4758
  initial.transformOrigin = {
4492
- x: (current.x - left * frameTransform.scaleX - frameTransform.x) / (width * frameTransform.scaleX),
4493
- y: (current.y - top * frameTransform.scaleY - frameTransform.y) / (height * frameTransform.scaleY)
4759
+ x: (current.x - visualLeft * frameTransform.scaleX - frameTransform.x) / (width * frameTransform.scaleX),
4760
+ y: (current.y - visualTop * frameTransform.scaleY - frameTransform.y) / (height * frameTransform.scaleY)
4494
4761
  };
4495
4762
  }
4496
4763
  const { transformOrigin } = initial;
@@ -4531,7 +4798,7 @@ render_fn = function() {
4531
4798
  };
4532
4799
  feedbackElement.setAttribute(ATTRIBUTE, "true");
4533
4800
  const transform = o(() => dragOperation.transform);
4534
- const initialTranslate = (_b2 = initial.translate) != null ? _b2 : {
4801
+ const initialTranslate = (_f = initial.translate) != null ? _f : {
4535
4802
  x: 0,
4536
4803
  y: 0
4537
4804
  };
@@ -4544,7 +4811,8 @@ render_fn = function() {
4544
4811
  top: projected.top + fixedOffset.y,
4545
4812
  left: projected.left + fixedOffset.x,
4546
4813
  translate: `${tX}px ${tY}px 0`,
4547
- transition: transition ? `${transition}, translate 0ms linear` : "",
4814
+ transform: this.overlay ? "none" : initialTransformStyle,
4815
+ transition: feedbackTransition ? `${feedbackTransition}, translate 0ms linear` : "translate 0ms linear",
4548
4816
  scale: crossFrame ? `${scaleDelta.x} ${scaleDelta.y}` : "",
4549
4817
  "transform-origin": `${transformOrigin.x * 100}% ${transformOrigin.y * 100}%`
4550
4818
  }, CSS_PREFIX);
@@ -4575,6 +4843,7 @@ render_fn = function() {
4575
4843
  delta,
4576
4844
  styles,
4577
4845
  dragOperation,
4846
+ getTranslate: () => state.current.translate,
4578
4847
  getElementMutationObserver: () => elementMutationObserver,
4579
4848
  getSavedCellWidths: () => savedCellWidths,
4580
4849
  setSavedCellWidths: (widths) => {
@@ -4595,7 +4864,7 @@ render_fn = function() {
4595
4864
  elementMutationObserver = createElementMutationObserver(element, placeholder, clone);
4596
4865
  documentMutationObserver = createDocumentMutationObserver(element, placeholder, feedbackElement);
4597
4866
  }
4598
- const id = (_c3 = manager.dragOperation.source) == null ? void 0 : _c3.id;
4867
+ const id = (_g = manager.dragOperation.source) == null ? void 0 : _g.id;
4599
4868
  const restoreFocus = () => {
4600
4869
  var _a6;
4601
4870
  if (!isKeyboardOperation || id == null) return;
@@ -4604,7 +4873,6 @@ render_fn = function() {
4604
4873
  if (isHTMLElement(focusTarget)) focusTarget.focus();
4605
4874
  };
4606
4875
  const cleanup = () => {
4607
- var _a6;
4608
4876
  elementMutationObserver?.disconnect();
4609
4877
  documentMutationObserver?.disconnect();
4610
4878
  resizeObserver.disconnect();
@@ -4615,19 +4883,25 @@ render_fn = function() {
4615
4883
  }
4616
4884
  feedbackElement.removeAttribute(ATTRIBUTE);
4617
4885
  styles.reset();
4618
- if (savedCellWidths && isTableRow(element)) {
4619
- const cells = Array.from(element.cells);
4620
- for (const [index, cell] of cells.entries()) cell.style.width = (_a6 = savedCellWidths[index]) != null ? _a6 : "";
4621
- }
4622
- source.status = "idle";
4623
- const moved = state.current.translate != null;
4624
- if (placeholder && (moved || placeholder.parentElement !== feedbackElement.parentElement) && feedbackElement.isConnected) placeholder.replaceWith(feedbackElement);
4625
- placeholder?.remove();
4886
+ const finalize = () => {
4887
+ var _a6;
4888
+ if (savedCellWidths && isTableRow(element)) {
4889
+ const cells = Array.from(element.cells);
4890
+ for (const [index, cell] of cells.entries()) cell.style.width = (_a6 = savedCellWidths[index]) != null ? _a6 : "";
4891
+ }
4892
+ source.status = "idle";
4893
+ const moved = state.current.translate != null;
4894
+ const isDragging = dragOperation.status.dragging;
4895
+ if (placeholder && (!isDragging && moved || placeholder.parentElement !== feedbackElement.parentElement) && feedbackElement.isConnected) placeholder.replaceWith(feedbackElement);
4896
+ placeholder?.remove();
4897
+ };
4898
+ if (feedbackElement === this.overlay) setTimeout(finalize, 0);
4899
+ else finalize();
4626
4900
  };
4627
4901
  const optionsDropAnimation = options == null ? void 0 : options.dropAnimation;
4628
4902
  const feedbackPlugin = this;
4629
4903
  const cleanupEffects = effects(() => {
4630
- var _a6;
4904
+ var _a6, _b3, _c4;
4631
4905
  const { transform: transform2, status: status2 } = dragOperation;
4632
4906
  if (!transform2.x && !transform2.y && !state.current.translate) return;
4633
4907
  if (status2.dragging) {
@@ -4645,9 +4919,10 @@ render_fn = function() {
4645
4919
  var _a7;
4646
4920
  return (_a7 = dragOperation.shape) == null ? void 0 : _a7.current;
4647
4921
  });
4648
- const translateTransition = isKeyboardOperation && !reducedMotion ? "250ms cubic-bezier(0.25, 1, 0.5, 1)" : "0ms linear";
4922
+ const keyboardTransition = options == null ? void 0 : options.keyboardTransition;
4923
+ const translateTransition = isKeyboardOperation && !reducedMotion && keyboardTransition !== null ? `${(_b3 = keyboardTransition == null ? void 0 : keyboardTransition.duration) != null ? _b3 : 250}ms ${(_c4 = keyboardTransition == null ? void 0 : keyboardTransition.easing) != null ? _c4 : "cubic-bezier(0.25, 1, 0.5, 1)"}` : "0ms linear";
4649
4924
  styles.set({
4650
- transition: `${transition}, translate ${translateTransition}`,
4925
+ transition: feedbackTransition ? `${feedbackTransition}, translate ${translateTransition}` : `translate ${translateTransition}`,
4651
4926
  translate: `${translate2.x}px ${translate2.y}px 0`
4652
4927
  }, CSS_PREFIX);
4653
4928
  elementMutationObserver?.takeRecords();
@@ -4661,7 +4936,7 @@ render_fn = function() {
4661
4936
  if (dragOperation.status.dropped) {
4662
4937
  this.dispose();
4663
4938
  source.status = "dropping";
4664
- const dropAnimationConfig = feedbackPlugin.dropAnimation !== void 0 ? feedbackPlugin.dropAnimation : optionsDropAnimation;
4939
+ const dropAnimationConfig = (entityOptions == null ? void 0 : entityOptions.dropAnimation) !== void 0 ? entityOptions.dropAnimation : feedbackPlugin.dropAnimation !== void 0 ? feedbackPlugin.dropAnimation : optionsDropAnimation;
4665
4940
  let translate2 = state.current.translate;
4666
4941
  const moved = translate2 != null;
4667
4942
  if (!translate2 && element !== feedbackElement) translate2 = {
@@ -4674,6 +4949,7 @@ render_fn = function() {
4674
4949
  }
4675
4950
  manager.renderer.rendering.then(() => {
4676
4951
  runDropAnimation({
4952
+ source,
4677
4953
  element,
4678
4954
  feedbackElement,
4679
4955
  placeholder,
@@ -4701,7 +4977,13 @@ _Feedback.configure = configurator(_Feedback);
4701
4977
  var Feedback = _Feedback;
4702
4978
  var LOCKED = true;
4703
4979
  var UNLOCKED = false;
4704
- var _dec, _a3, _dec2, _b = (_dec2 = [reactive], ScrollDirection.Forward), _init3, __b, __a;
4980
+ var _dec;
4981
+ var _a3;
4982
+ var _dec2;
4983
+ var _b = (_dec2 = [reactive], ScrollDirection.Forward);
4984
+ var _init3;
4985
+ var __b;
4986
+ var __a;
4705
4987
  _a3 = (_dec = [reactive], ScrollDirection.Reverse);
4706
4988
  var ScrollLock = class {
4707
4989
  constructor() {
@@ -4769,7 +5051,12 @@ var ScrollIntentTracker = class extends Plugin {
4769
5051
  function getDirection$1(a, b) {
4770
5052
  return Math.sign(a - b);
4771
5053
  }
4772
- var _autoScrolling_dec, _a4, _init4, _autoScrolling, _meta, _scroll;
5054
+ var _autoScrolling_dec;
5055
+ var _a4;
5056
+ var _init4;
5057
+ var _autoScrolling;
5058
+ var _meta;
5059
+ var _scroll;
4773
5060
  var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive], _a4) {
4774
5061
  constructor(manager) {
4775
5062
  super(manager);
@@ -4781,7 +5068,7 @@ var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive],
4781
5068
  if (by.y) element.scrollTop += by.y;
4782
5069
  if (by.x) element.scrollLeft += by.x;
4783
5070
  });
4784
- this.scroll = (options) => {
5071
+ this.scroll = (options, scrollOptions) => {
4785
5072
  var _a5;
4786
5073
  if (this.disabled) return false;
4787
5074
  const elements = this.getScrollableElements();
@@ -4802,7 +5089,7 @@ var Scroller = class extends (_a4 = CorePlugin, _autoScrolling_dec = [reactive],
4802
5089
  for (const scrollableElement of elements) {
4803
5090
  const elementCanScroll = canScroll(scrollableElement, by);
4804
5091
  if (elementCanScroll.x || elementCanScroll.y) {
4805
- const { speed, direction } = detectScrollIntent(scrollableElement, currentPosition, intent);
5092
+ const { speed, direction } = detectScrollIntent(scrollableElement, currentPosition, intent, scrollOptions == null ? void 0 : scrollOptions.acceleration, scrollOptions == null ? void 0 : scrollOptions.threshold);
4806
5093
  if (scrollIntent) {
4807
5094
  for (const axis of Axes) if (scrollIntent[axis].isLocked(direction[axis])) {
4808
5095
  speed[axis] = 0;
@@ -4915,24 +5202,36 @@ var scheduler3 = new Scheduler((callback) => {
4915
5202
  else callback();
4916
5203
  });
4917
5204
  var AUTOSCROLL_INTERVAL = 10;
4918
- var AutoScroller = class extends Plugin {
4919
- constructor(manager, _options) {
4920
- super(manager);
5205
+ var _AutoScroller = class _AutoScroller extends Plugin {
5206
+ constructor(manager, options) {
5207
+ super(manager, options);
4921
5208
  const scroller = manager.registry.plugins.get(Scroller);
4922
5209
  if (!scroller) throw new Error("AutoScroller plugin depends on Scroller plugin");
4923
5210
  this.destroy = j(() => {
5211
+ var _a5, _b2, _c3;
4924
5212
  if (this.disabled) return;
4925
5213
  const { position: _, status } = manager.dragOperation;
4926
- if (status.dragging) if (scroller.scroll()) {
4927
- scroller.autoScrolling = true;
4928
- const interval = setInterval(() => scheduler3.schedule(scroller.scroll), AUTOSCROLL_INTERVAL);
4929
- return () => {
4930
- clearInterval(interval);
5214
+ if (status.dragging) {
5215
+ const scrollOptions = {
5216
+ acceleration: (_a5 = this.options) == null ? void 0 : _a5.acceleration,
5217
+ threshold: typeof ((_b2 = this.options) == null ? void 0 : _b2.threshold) === "number" ? {
5218
+ x: this.options.threshold,
5219
+ y: this.options.threshold
5220
+ } : (_c3 = this.options) == null ? void 0 : _c3.threshold
4931
5221
  };
4932
- } else scroller.autoScrolling = false;
5222
+ if (scroller.scroll(void 0, scrollOptions)) {
5223
+ scroller.autoScrolling = true;
5224
+ const interval = setInterval(() => scheduler3.schedule(() => scroller.scroll(void 0, scrollOptions)), AUTOSCROLL_INTERVAL);
5225
+ return () => {
5226
+ clearInterval(interval);
5227
+ };
5228
+ } else scroller.autoScrolling = false;
5229
+ }
4933
5230
  });
4934
5231
  }
4935
5232
  };
5233
+ _AutoScroller.configure = configurator(_AutoScroller);
5234
+ var AutoScroller = _AutoScroller;
4936
5235
  var listenerOptions = {
4937
5236
  capture: true,
4938
5237
  passive: true
@@ -4962,27 +5261,30 @@ var ScrollListener = class extends CorePlugin {
4962
5261
  }
4963
5262
  };
4964
5263
  _timeout = new WeakMap();
5264
+ var CSS_RULES2 = "* { user-select: none !important; -webkit-user-select: none !important; }";
4965
5265
  var PreventSelection = class extends Plugin {
4966
- constructor(manager, options) {
4967
- super(manager, options);
5266
+ constructor(manager) {
5267
+ super(manager);
4968
5268
  this.manager = manager;
5269
+ const styleInjector = manager.registry.plugins.get(StyleInjector);
5270
+ const unregisterStyles = styleInjector == null ? void 0 : styleInjector.register(CSS_RULES2);
4969
5271
  this.destroy = j(() => {
4970
- var _a5;
4971
5272
  const { dragOperation } = this.manager;
4972
- const { nonce } = (_a5 = this.options) != null ? _a5 : {};
4973
5273
  if (dragOperation.status.initialized) {
4974
- const style = document.createElement("style");
4975
- if (nonce) style.setAttribute("nonce", nonce);
4976
- style.textContent = `* { user-select: none !important; -webkit-user-select: none !important; }`;
4977
- document.head.appendChild(style);
4978
5274
  removeSelection();
4979
5275
  document.addEventListener("selectionchange", removeSelection, { capture: true });
4980
5276
  return () => {
4981
5277
  document.removeEventListener("selectionchange", removeSelection, { capture: true });
4982
- style.remove();
4983
5278
  };
4984
5279
  }
4985
5280
  });
5281
+ if (unregisterStyles) {
5282
+ const originalDestroy = this.destroy.bind(this);
5283
+ this.destroy = () => {
5284
+ unregisterStyles();
5285
+ originalDestroy();
5286
+ };
5287
+ }
4986
5288
  }
4987
5289
  };
4988
5290
  function removeSelection() {
@@ -5196,7 +5498,8 @@ var DistanceConstraint = class extends ActivationConstraint {
5196
5498
  }
5197
5499
  };
5198
5500
  _coordinates = new WeakMap();
5199
- var _timeout2, _coordinates2;
5501
+ var _timeout2;
5502
+ var _coordinates2;
5200
5503
  var DelayConstraint = class extends ActivationConstraint {
5201
5504
  constructor() {
5202
5505
  super(...arguments);
@@ -5260,7 +5563,9 @@ var defaults2 = Object.freeze({
5260
5563
  if (target === source.handle) return false;
5261
5564
  if (!isElement(target)) return false;
5262
5565
  if ((_a5 = source.handle) == null ? void 0 : _a5.contains(target)) return false;
5263
- return isInteractiveElement(target);
5566
+ const interactiveElement = getInteractiveElement(target);
5567
+ if (interactiveElement === source.element) return false;
5568
+ return Boolean(interactiveElement);
5264
5569
  }
5265
5570
  });
5266
5571
  var _cleanup;
@@ -5403,7 +5708,12 @@ var _PointerSensor = class _PointerSensor extends Sensor {
5403
5708
  }).signal.aborted) return this.cleanup();
5404
5709
  event.preventDefault();
5405
5710
  const pointerCaptureTarget = getDocument(event.target).body;
5406
- pointerCaptureTarget.setPointerCapture(event.pointerId);
5711
+ try {
5712
+ pointerCaptureTarget.setPointerCapture(event.pointerId);
5713
+ } catch (e) {
5714
+ this.handleCancel(event);
5715
+ return;
5716
+ }
5407
5717
  const listenerTargets = isElement(event.target) ? [event.target, pointerCaptureTarget] : pointerCaptureTarget;
5408
5718
  const unbind = this.listeners.bind(listenerTargets, [
5409
5719
  {
@@ -5435,6 +5745,9 @@ var _PointerSensor = class _PointerSensor extends Sensor {
5435
5745
  this.cleanup();
5436
5746
  }
5437
5747
  cleanup() {
5748
+ const { controller } = this;
5749
+ this.controller = void 0;
5750
+ if (controller && !controller.signal.aborted) controller.abort();
5438
5751
  this.latest = {
5439
5752
  event: void 0,
5440
5753
  coordinates: void 0
@@ -5487,7 +5800,7 @@ var DragDropManager = class extends DragDropManager$1 {
5487
5800
  plugins: [
5488
5801
  ScrollListener,
5489
5802
  Scroller,
5490
- StyleSheetManager,
5803
+ StyleInjector,
5491
5804
  ...plugins
5492
5805
  ],
5493
5806
  sensors,
@@ -5495,14 +5808,18 @@ var DragDropManager = class extends DragDropManager$1 {
5495
5808
  }));
5496
5809
  }
5497
5810
  };
5498
- var _feedback_dec, _element_dec, _handle_dec, _c, _init5, _handle, _element$1, _feedback;
5499
- var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _element_dec = [reactive], _feedback_dec = [reactive], _c) {
5811
+ var _element_dec;
5812
+ var _handle_dec;
5813
+ var _c;
5814
+ var _init5;
5815
+ var _handle;
5816
+ var _element$1;
5817
+ var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _element_dec = [reactive], _c) {
5500
5818
  constructor(_a5, manager) {
5501
- var _b2 = _a5, { element, effects: effects2 = () => [], handle, feedback = "default" } = _b2, input = __objRest$2(_b2, [
5819
+ var _b2 = _a5, { element, effects: effects2 = () => [], handle } = _b2, input = __objRest$2(_b2, [
5502
5820
  "element",
5503
5821
  "effects",
5504
- "handle",
5505
- "feedback"
5822
+ "handle"
5506
5823
  ]);
5507
5824
  super(__spreadValues$2({ effects: () => [...effects2(), () => {
5508
5825
  var _a6, _b3;
@@ -5519,21 +5836,26 @@ var Draggable$1 = class extends (_c = Draggable$2, _handle_dec = [reactive], _el
5519
5836
  }] }, input), manager);
5520
5837
  __privateAdd$2(this, _handle, __runInitializers$2(_init5, 8, this)), __runInitializers$2(_init5, 11, this);
5521
5838
  __privateAdd$2(this, _element$1, __runInitializers$2(_init5, 12, this)), __runInitializers$2(_init5, 15, this);
5522
- __privateAdd$2(this, _feedback, __runInitializers$2(_init5, 16, this)), __runInitializers$2(_init5, 19, this);
5523
5839
  this.element = element;
5524
5840
  this.handle = handle;
5525
- this.feedback = feedback;
5526
5841
  }
5527
5842
  };
5528
5843
  _init5 = __decoratorStart$2(_c);
5529
5844
  _handle = new WeakMap();
5530
5845
  _element$1 = new WeakMap();
5531
- _feedback = new WeakMap();
5532
5846
  __decorateElement$2(_init5, 4, "handle", _handle_dec, Draggable$1, _handle);
5533
5847
  __decorateElement$2(_init5, 4, "element", _element_dec, Draggable$1, _element$1);
5534
- __decorateElement$2(_init5, 4, "feedback", _feedback_dec, Draggable$1, _feedback);
5535
5848
  __decoratorMetadata$2(_init5, Draggable$1);
5536
- var _proxy_dec, _element_dec2, _c2, _init6, _element2, _d, element_get, element_set, _Droppable_instances, _proxy;
5849
+ var _proxy_dec;
5850
+ var _element_dec2;
5851
+ var _c2;
5852
+ var _init6;
5853
+ var _element2;
5854
+ var _d;
5855
+ var element_get;
5856
+ var element_set;
5857
+ var _Droppable_instances;
5858
+ var _proxy;
5537
5859
  var Droppable = class extends (_c2 = Droppable$1, _element_dec2 = [reactive], _proxy_dec = [reactive], _c2) {
5538
5860
  constructor(_a5, manager) {
5539
5861
  var _b2 = _a5, { element, effects: effects2 = () => [] } = _b2, input = __objRest$2(_b2, ["element", "effects"]);
@@ -5644,7 +5966,8 @@ function useDeepSignal(target, synchronous) {
5644
5966
  sync = (_a = synchronous == null ? void 0 : synchronous(key, value, latestValue)) != null ? _a : false;
5645
5967
  }
5646
5968
  }
5647
- if (stale) sync ? flushSync(forceUpdate) : forceUpdate();
5969
+ if (stale) if (sync) queueMicrotask(() => flushSync(forceUpdate));
5970
+ else forceUpdate();
5648
5971
  });
5649
5972
  }, [target]);
5650
5973
  return useMemo(() => target ? new Proxy(target, { get(target2, key) {
@@ -6201,17 +6524,21 @@ function arrayMove(array, from, to) {
6201
6524
  newArray.splice(to, 0, newArray.splice(from, 1)[0]);
6202
6525
  return newArray;
6203
6526
  }
6527
+ function getRecordKey(items, id) {
6528
+ const key = String(id);
6529
+ return Object.prototype.hasOwnProperty.call(items, key) ? key : void 0;
6530
+ }
6204
6531
  function hasSortableIndices(source) {
6205
6532
  return "initialIndex" in source && typeof source.initialIndex === "number" && "index" in source && typeof source.index === "number";
6206
6533
  }
6207
6534
  function mutate(items, event, mutation) {
6208
- var _a, _b, _c;
6535
+ var _a, _b;
6209
6536
  const { source, target, canceled } = event.operation;
6210
6537
  if (!source || !target || canceled) {
6211
6538
  if ("preventDefault" in event) event.preventDefault();
6212
6539
  return items;
6213
6540
  }
6214
- const findIndex = (item, id) => item === id || typeof item === "object" && "id" in item && item.id === id;
6541
+ const findIndex = (item, id) => item === id || item !== null && typeof item === "object" && "id" in item && item.id === id;
6215
6542
  if (Array.isArray(items)) {
6216
6543
  const sourceIndex2 = items.findIndex((item) => findIndex(item, source.id));
6217
6544
  const targetIndex2 = items.findIndex((item) => findIndex(item, target.id));
@@ -6250,11 +6577,11 @@ function mutate(items, event, mutation) {
6250
6577
  if (sourceIndex !== -1 && targetIndex !== -1) break;
6251
6578
  }
6252
6579
  if (sourceIndex === -1 && hasSortableIndices(source)) {
6253
- const srcParent = source.initialGroup;
6580
+ const srcParent = source.initialGroup == null ? void 0 : getRecordKey(items, source.initialGroup);
6254
6581
  const srcIndex = source.initialIndex;
6255
- const tgtParent = source.group;
6582
+ const tgtParent = source.group == null ? void 0 : getRecordKey(items, source.group);
6256
6583
  const tgtIndex = source.index;
6257
- if (srcParent == null || tgtParent == null || !(srcParent in items) || !(tgtParent in items)) {
6584
+ if (srcParent == null || tgtParent == null) {
6258
6585
  if ("preventDefault" in event) event.preventDefault();
6259
6586
  return items;
6260
6587
  }
@@ -6277,19 +6604,21 @@ function mutate(items, event, mutation) {
6277
6604
  const { dragOperation } = source.manager;
6278
6605
  const position = (_b = (_a = dragOperation.shape) == null ? void 0 : _a.current.center) != null ? _b : dragOperation.position.current;
6279
6606
  if (targetParent == null) {
6280
- if (target.id in items) {
6281
- const insertionIndex = target.shape && position.y > target.shape.center.y ? items[target.id].length : 0;
6282
- targetParent = target.id;
6607
+ const targetKey = getRecordKey(items, target.id);
6608
+ if (targetKey != null) {
6609
+ const insertionIndex = target.shape && position.y > target.shape.center.y ? items[targetKey].length : 0;
6610
+ targetParent = targetKey;
6283
6611
  targetIndex = insertionIndex;
6284
6612
  }
6285
6613
  }
6286
6614
  if (sourceParent == null || targetParent == null || sourceParent === targetParent && sourceIndex === targetIndex) {
6287
6615
  if (sourceParent != null && sourceParent === targetParent && sourceIndex === targetIndex && hasSortableIndices(source)) {
6288
- const hasGroupChanged = source.group != null && source.group !== sourceParent;
6616
+ const sourceGroupParent = source.group == null ? void 0 : getRecordKey(items, source.group);
6617
+ const hasGroupChanged = source.group != null && sourceGroupParent !== sourceParent;
6289
6618
  const hasIndexChanged = source.index !== sourceIndex;
6290
6619
  if (hasGroupChanged || hasIndexChanged) {
6291
- const reconciledTargetParent = (_c = source.group) != null ? _c : sourceParent;
6292
- if (reconciledTargetParent in items) {
6620
+ const reconciledTargetParent = source.group == null ? sourceParent : sourceGroupParent;
6621
+ if (reconciledTargetParent != null) {
6293
6622
  if (sourceParent === reconciledTargetParent) return __spreadProps2(__spreadValues2({}, items), { [sourceParent]: mutation(items[sourceParent], sourceIndex, source.index) });
6294
6623
  const sourceItem2 = items[sourceParent][sourceIndex];
6295
6624
  return __spreadProps2(__spreadValues2({}, items), {
@@ -6321,6 +6650,19 @@ function mutate(items, event, mutation) {
6321
6650
  function move(items, event) {
6322
6651
  return mutate(items, event, arrayMove);
6323
6652
  }
6653
+ function getSortableIndices(instances) {
6654
+ const sortableIndices = new Map();
6655
+ for (const [, group] of instances) for (const sortable of group) sortableIndices.set(sortable.id, sortable.index);
6656
+ return sortableIndices;
6657
+ }
6658
+ function hasChanged(snapshotIndices, instances, newInstances) {
6659
+ var _a;
6660
+ for (const [group, sortables] of instances) for (const sortable of sortables) {
6661
+ const index = snapshotIndices.get(sortable.id);
6662
+ if (sortable.index !== index || sortable.group !== group || !((_a = newInstances.get(group)) == null ? void 0 : _a.has(sortable))) return true;
6663
+ }
6664
+ return false;
6665
+ }
6324
6666
  var defaultGroup = "__default__";
6325
6667
  var OptimisticSortingPlugin = class extends Plugin {
6326
6668
  constructor(manager) {
@@ -6337,7 +6679,6 @@ var OptimisticSortingPlugin = class extends Plugin {
6337
6679
  }
6338
6680
  instances.add(sortable);
6339
6681
  }
6340
- for (const [group, instances] of sortableInstances) sortableInstances.set(group, new Set(sort(instances)));
6341
6682
  return sortableInstances;
6342
6683
  };
6343
6684
  const unsubscribe = [manager.monitor.addEventListener("dragover", (event, manager2) => {
@@ -6347,6 +6688,7 @@ var OptimisticSortingPlugin = class extends Plugin {
6347
6688
  if (!isSortable(source) || !isSortable(target)) return;
6348
6689
  if (source.sortable === target.sortable) return;
6349
6690
  const instances = getSortableInstances();
6691
+ const sortableIndices = getSortableIndices(instances);
6350
6692
  const sameGroup = source.sortable.group === target.sortable.group;
6351
6693
  const sourceInstances = instances.get(source.sortable.group);
6352
6694
  const targetInstances = sameGroup ? sourceInstances : instances.get(target.sortable.group);
@@ -6354,20 +6696,17 @@ var OptimisticSortingPlugin = class extends Plugin {
6354
6696
  queueMicrotask(() => {
6355
6697
  if (event.defaultPrevented) return;
6356
6698
  manager2.renderer.rendering.then(() => {
6357
- var _a, _b, _c;
6699
+ var _a, _b;
6358
6700
  const newInstances = getSortableInstances();
6359
- for (const [group, sortableInstances] of instances.entries()) {
6360
- const entries = Array.from(sortableInstances).entries();
6361
- for (const [index, sortable] of entries) if (sortable.index !== index || sortable.group !== group || !((_a = newInstances.get(group)) == null ? void 0 : _a.has(sortable))) return;
6362
- }
6701
+ if (hasChanged(sortableIndices, instances, newInstances)) return;
6363
6702
  const sourceElement = source.sortable.element;
6364
6703
  const targetElement = target.sortable.element;
6365
6704
  if (!targetElement || !sourceElement) return;
6366
6705
  if (!sameGroup && target.id === source.sortable.group) return;
6367
6706
  const orderedSourceSortables = sort(sourceInstances);
6368
6707
  const orderedTargetSortables = sameGroup ? orderedSourceSortables : sort(targetInstances);
6369
- const sourceGroup = (_b = source.sortable.group) != null ? _b : defaultGroup;
6370
- const targetGroup = (_c = target.sortable.group) != null ? _c : defaultGroup;
6708
+ const sourceGroup = (_a = source.sortable.group) != null ? _a : defaultGroup;
6709
+ const targetGroup = (_b = target.sortable.group) != null ? _b : defaultGroup;
6371
6710
  const state = {
6372
6711
  [sourceGroup]: orderedSourceSortables,
6373
6712
  [targetGroup]: orderedTargetSortables
@@ -6396,21 +6735,21 @@ var OptimisticSortingPlugin = class extends Plugin {
6396
6735
  if (source.sortable.initialIndex === source.sortable.index && source.sortable.initialGroup === source.sortable.group) return;
6397
6736
  queueMicrotask(() => {
6398
6737
  const instances = getSortableInstances();
6738
+ const sortableIndices = getSortableIndices(instances);
6399
6739
  const initialGroupInstances = instances.get(source.sortable.initialGroup);
6400
6740
  if (!initialGroupInstances) return;
6401
6741
  manager2.renderer.rendering.then(() => {
6402
- for (const [group, sortableInstances] of instances.entries()) {
6403
- const entries = Array.from(sortableInstances).entries();
6404
- for (const [index, sortable] of entries) if (sortable.index !== index || sortable.group !== group) return;
6405
- }
6406
- const initialGroup = sort(initialGroupInstances);
6742
+ const newInstances = getSortableInstances();
6743
+ if (hasChanged(sortableIndices, instances, newInstances)) return;
6744
+ const currentSortables = sort(initialGroupInstances);
6745
+ const initialSortables = sort(initialGroupInstances, sortByInitialIndex);
6407
6746
  const sourceElement = source.sortable.element;
6408
- const target = initialGroup[source.sortable.initialIndex];
6747
+ const target = currentSortables[initialSortables.indexOf(source.sortable)];
6409
6748
  const targetElement = target == null ? void 0 : target.element;
6410
6749
  if (!target || !targetElement || !sourceElement) return;
6411
6750
  reorder(sourceElement, target.index, targetElement, source.index);
6412
6751
  n(() => {
6413
- for (const [_, sortableInstances] of instances.entries()) {
6752
+ for (const sortableInstances of instances.values()) {
6414
6753
  const entries = Array.from(sortableInstances).values();
6415
6754
  for (const sortable of entries) {
6416
6755
  sortable.index = sortable.initialIndex;
@@ -6433,8 +6772,11 @@ function reorder(sourceElement, sourceIndex, targetElement, targetIndex) {
6433
6772
  function sortByIndex(a, b) {
6434
6773
  return a.index - b.index;
6435
6774
  }
6436
- function sort(instances) {
6437
- return Array.from(instances).sort(sortByIndex);
6775
+ function sortByInitialIndex(a, b) {
6776
+ return a.initialIndex - b.initialIndex;
6777
+ }
6778
+ function sort(instances, sortFn = sortByIndex) {
6779
+ return Array.from(instances).sort(sortFn);
6438
6780
  }
6439
6781
  var defaultPlugins = [SortableKeyboardPlugin, OptimisticSortingPlugin];
6440
6782
  var defaultSortableTransition = {
@@ -6442,8 +6784,26 @@ var defaultSortableTransition = {
6442
6784
  easing: "cubic-bezier(0.25, 1, 0.5, 1)",
6443
6785
  idle: false
6444
6786
  };
6787
+ function normalizeDisabled(disabled) {
6788
+ var _a, _b;
6789
+ if (typeof disabled === "boolean") return {
6790
+ draggable: disabled,
6791
+ droppable: disabled
6792
+ };
6793
+ return {
6794
+ draggable: (_a = disabled == null ? void 0 : disabled.draggable) != null ? _a : false,
6795
+ droppable: (_b = disabled == null ? void 0 : disabled.droppable) != null ? _b : false
6796
+ };
6797
+ }
6445
6798
  var store = new WeakStore();
6446
- var _group_dec, _index_dec = [reactive], _init, _index, _previousGroup, _previousIndex, _group, _element;
6799
+ var _group_dec;
6800
+ var _index_dec = [reactive];
6801
+ var _init;
6802
+ var _index;
6803
+ var _previousGroup;
6804
+ var _previousIndex;
6805
+ var _group;
6806
+ var _element;
6447
6807
  _group_dec = [reactive];
6448
6808
  var Sortable2 = class {
6449
6809
  constructor(_a, manager) {
@@ -6473,8 +6833,9 @@ var Sortable2 = class {
6473
6833
  this.draggable.destroy();
6474
6834
  });
6475
6835
  };
6476
- var _b = _a, { effects: inputEffects = () => [], group, index, sensors, type, transition = defaultSortableTransition, plugins = defaultPlugins } = _b, input = __objRest(_b, [
6836
+ var _b = _a, { effects: inputEffects = () => [], disabled, group, index, sensors, type, transition = defaultSortableTransition, plugins: pluginsInput } = _b, input = __objRest(_b, [
6477
6837
  "effects",
6838
+ "disabled",
6478
6839
  "group",
6479
6840
  "index",
6480
6841
  "sensors",
@@ -6482,8 +6843,12 @@ var Sortable2 = class {
6482
6843
  "transition",
6483
6844
  "plugins"
6484
6845
  ]);
6485
- this.droppable = new SortableDroppable(input, manager, this);
6846
+ const plugins = resolveCustomizable(pluginsInput, defaultPlugins);
6847
+ const disabledState = normalizeDisabled(disabled);
6848
+ this.droppable = new SortableDroppable(__spreadProps$1(__spreadValues$1({}, input), { disabled: disabledState.droppable }), manager, this);
6486
6849
  this.draggable = new SortableDraggable(__spreadProps$1(__spreadValues$1({}, input), {
6850
+ disabled: disabledState.draggable,
6851
+ plugins,
6487
6852
  effects: () => [
6488
6853
  () => {
6489
6854
  var _a2, _b2, _c;
@@ -6505,13 +6870,10 @@ var Sortable2 = class {
6505
6870
  }
6506
6871
  },
6507
6872
  () => {
6873
+ var _a2, _b2;
6508
6874
  const { target } = this;
6509
- const { feedback, isDragSource } = this.draggable;
6510
- if (feedback == "move" && isDragSource) this.droppable.disabled = !target;
6511
- },
6512
- () => {
6513
- const { manager: manager2 } = this;
6514
- for (const plugin of plugins) manager2?.registry.register(plugin);
6875
+ const { isDragSource } = this.draggable;
6876
+ if (((_b2 = (_a2 = this.draggable.pluginConfig(Feedback)) == null ? void 0 : _a2.feedback) != null ? _b2 : "default") === "move" && isDragSource) this.droppable.disabled = !target;
6515
6877
  },
6516
6878
  ...inputEffects()
6517
6879
  ],
@@ -6545,6 +6907,7 @@ var Sortable2 = class {
6545
6907
  manager.renderer.rendering.then(() => {
6546
6908
  const { element } = this;
6547
6909
  if (!element) return;
6910
+ for (const animation of element.getAnimations()) if ("transitionProperty" in animation && (animation.transitionProperty === "transform" || animation.transitionProperty === "translate" || animation.transitionProperty === "scale")) animation.cancel();
6548
6911
  const updatedShape = this.refreshShape();
6549
6912
  if (!updatedShape) return;
6550
6913
  const delta = {
@@ -6605,15 +6968,21 @@ var Sortable2 = class {
6605
6968
  return this.draggable.element;
6606
6969
  }
6607
6970
  get disabled() {
6608
- return this.draggable.disabled && this.droppable.disabled;
6971
+ const { disabled: draggable } = this.draggable;
6972
+ const { disabled: droppable } = this.droppable;
6973
+ return draggable === droppable ? draggable : {
6974
+ draggable,
6975
+ droppable
6976
+ };
6609
6977
  }
6610
- set feedback(value) {
6611
- this.draggable.feedback = value;
6978
+ set plugins(value) {
6979
+ this.draggable.plugins = resolveCustomizable(value, defaultPlugins);
6612
6980
  }
6613
6981
  set disabled(value) {
6982
+ const disabled = normalizeDisabled(value);
6614
6983
  n(() => {
6615
- this.droppable.disabled = value;
6616
- this.draggable.disabled = value;
6984
+ this.droppable.disabled = disabled.droppable;
6985
+ this.draggable.disabled = disabled.draggable;
6617
6986
  });
6618
6987
  }
6619
6988
  set data(data) {
@@ -6626,10 +6995,8 @@ var Sortable2 = class {
6626
6995
  this.draggable.handle = handle;
6627
6996
  }
6628
6997
  set id(id) {
6629
- n(() => {
6630
- this.droppable.id = id;
6631
- this.draggable.id = id;
6632
- });
6998
+ this.droppable.id = id;
6999
+ this.draggable.id = id;
6633
7000
  }
6634
7001
  get id() {
6635
7002
  return this.droppable.id;
@@ -6760,7 +7127,7 @@ var __spreadValues = (a, b) => {
6760
7127
  };
6761
7128
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6762
7129
  function useSortable(input) {
6763
- const { accept, collisionDetector, collisionPriority, id, data, element, handle, index, group, disabled, feedback, modifiers, sensors, target, type } = input;
7130
+ const { accept, collisionDetector, collisionPriority, id, data, element, handle, index, group, disabled, modifiers, sensors, target, type, plugins } = input;
6764
7131
  const transition = __spreadValues(__spreadValues({}, defaultSortableTransition), input.transition);
6765
7132
  const sortable = useInstance((manager) => {
6766
7133
  return new Sortable2(__spreadProps(__spreadValues({}, input), {
@@ -6768,8 +7135,7 @@ function useSortable(input) {
6768
7135
  register: false,
6769
7136
  handle: currentValue(handle),
6770
7137
  element: currentValue(element),
6771
- target: currentValue(target),
6772
- feedback
7138
+ target: currentValue(target)
6773
7139
  }), manager);
6774
7140
  });
6775
7141
  const trackedSortable = useDeepSignal(sortable, shouldUpdateSynchronously);
@@ -6794,11 +7160,11 @@ function useSortable(input) {
6794
7160
  useOnElementChange(handle, (handle2) => sortable.handle = handle2);
6795
7161
  useOnElementChange(element, (element2) => sortable.element = element2);
6796
7162
  useOnElementChange(target, (target2) => sortable.target = target2);
6797
- useOnValueChange(disabled, () => sortable.disabled = disabled === true);
6798
- useOnValueChange(sensors, () => sortable.sensors = sensors);
7163
+ useOnValueChange(disabled, () => sortable.disabled = disabled != null ? disabled : false, void 0, deepEqual);
7164
+ useOnValueChange(sensors, () => sortable.sensors = sensors, void 0, deepEqual);
6799
7165
  useOnValueChange(collisionDetector, () => sortable.collisionDetector = collisionDetector);
6800
7166
  useOnValueChange(collisionPriority, () => sortable.collisionPriority = collisionPriority);
6801
- useOnValueChange(feedback, () => sortable.feedback = feedback != null ? feedback : "default");
7167
+ useOnValueChange(plugins, () => sortable.plugins = plugins, void 0, deepEqual);
6802
7168
  useOnValueChange(transition, () => sortable.transition = transition, void 0, deepEqual);
6803
7169
  useOnValueChange(modifiers, () => sortable.modifiers = modifiers, void 0, deepEqual);
6804
7170
  useOnValueChange(input.alignment, () => sortable.alignment = input.alignment);