@baseline-ui/core 3.2.1 → 3.4.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 (458) hide show
  1. package/dist/Accordion.css +1 -1
  2. package/dist/Accordion.mjs +1 -1
  3. package/dist/ActionButton.css +1 -1
  4. package/dist/ActionButton.mjs +1 -1
  5. package/dist/ActionGroup.css +1 -1
  6. package/dist/ActionGroup.mjs +1 -1
  7. package/dist/ActionIconButton.css +1 -1
  8. package/dist/ActionIconButton.mjs +1 -1
  9. package/dist/Actionable.mjs +1 -1
  10. package/dist/AlertDialog.css +1 -1
  11. package/dist/AlertDialog.mjs +1 -1
  12. package/dist/AudioPlayer.css +1 -1
  13. package/dist/AudioPlayer.mjs +1 -1
  14. package/dist/Avatar.mjs +1 -1
  15. package/dist/ButtonSelect.css +1 -1
  16. package/dist/ButtonSelect.mjs +1 -1
  17. package/dist/Calendar.css +1 -1
  18. package/dist/Calendar.mjs +1 -1
  19. package/dist/Checkbox.mjs +1 -1
  20. package/dist/ColorInput.css +1 -1
  21. package/dist/ColorInput.mjs +1 -1
  22. package/dist/ColorSwatch.mjs +1 -1
  23. package/dist/ColorSwatchPicker.mjs +1 -1
  24. package/dist/ComboBox.css +1 -1
  25. package/dist/ComboBox.mjs +1 -1
  26. package/dist/DateField.css +1 -1
  27. package/dist/DateField.mjs +1 -1
  28. package/dist/DateFormat.mjs +1 -1
  29. package/dist/Dialog.css +1 -1
  30. package/dist/Dialog.mjs +1 -1
  31. package/dist/Disclosure.mjs +1 -1
  32. package/dist/DomNodeRenderer.mjs +1 -1
  33. package/dist/Drawer.css +1 -1
  34. package/dist/Drawer.mjs +1 -1
  35. package/dist/Editor.css +1 -1
  36. package/dist/Editor.mjs +1 -1
  37. package/dist/FileInput.css +1 -1
  38. package/dist/FileInput.mjs +1 -1
  39. package/dist/FileList.css +1 -1
  40. package/dist/FileList.mjs +1 -1
  41. package/dist/FileUploader.css +1 -1
  42. package/dist/FileUploader.mjs +1 -1
  43. package/dist/FrameProvider.mjs +1 -1
  44. package/dist/FreehandCanvas.css +1 -1
  45. package/dist/FreehandCanvas.mjs +1 -1
  46. package/dist/GridList.mjs +1 -1
  47. package/dist/Group.mjs +1 -1
  48. package/dist/I18nProvider.mjs +1 -1
  49. package/dist/Icon.mjs +1 -1
  50. package/dist/ImageDropZone.css +1 -1
  51. package/dist/ImageDropZone.mjs +1 -1
  52. package/dist/ImageGallery.css +1 -1
  53. package/dist/ImageGallery.mjs +1 -1
  54. package/dist/InlineAlert.css +1 -1
  55. package/dist/InlineAlert.mjs +1 -1
  56. package/dist/InlineToolbar.mjs +2 -2
  57. package/dist/Kbd.mjs +1 -1
  58. package/dist/Link.mjs +1 -1
  59. package/dist/ListBox.mjs +1 -1
  60. package/dist/Menu.css +1 -1
  61. package/dist/Menu.mjs +1 -1
  62. package/dist/MessageFormat.mjs +1 -1
  63. package/dist/Modal.mjs +1 -1
  64. package/dist/NumberFormat.mjs +1 -1
  65. package/dist/NumberInput.css +1 -1
  66. package/dist/NumberInput.mjs +1 -1
  67. package/dist/Pagination.css +1 -1
  68. package/dist/Pagination.mjs +1 -1
  69. package/dist/Panel.mjs +1 -1
  70. package/dist/PointPicker.mjs +1 -1
  71. package/dist/Popover.mjs +1 -1
  72. package/dist/Portal.mjs +1 -1
  73. package/dist/Preview.css +1 -1
  74. package/dist/Preview.mjs +1 -1
  75. package/dist/ProgressBar.mjs +1 -1
  76. package/dist/ProgressSpinner.mjs +1 -1
  77. package/dist/RadioGroup.mjs +1 -1
  78. package/dist/Reaction.mjs +1 -1
  79. package/dist/ScrollControlButton.mjs +1 -1
  80. package/dist/SearchInput.css +1 -1
  81. package/dist/SearchInput.mjs +1 -1
  82. package/dist/Select.css +1 -1
  83. package/dist/Select.mjs +1 -1
  84. package/dist/Separator.mjs +1 -1
  85. package/dist/Slider.css +1 -1
  86. package/dist/Slider.mjs +1 -1
  87. package/dist/StatusCard.mjs +1 -1
  88. package/dist/Stepper.mjs +1 -1
  89. package/dist/Switch.mjs +1 -1
  90. package/dist/Table.mjs +1 -1
  91. package/dist/Tabs.css +1 -1
  92. package/dist/Tabs.mjs +1 -1
  93. package/dist/Tag.mjs +1 -1
  94. package/dist/TagGroup.mjs +1 -1
  95. package/dist/TaggedPagination.css +1 -1
  96. package/dist/TaggedPagination.mjs +1 -1
  97. package/dist/Text.mjs +1 -1
  98. package/dist/TextInput.mjs +1 -1
  99. package/dist/ThemeProvider.mjs +1 -1
  100. package/dist/TimeField.mjs +1 -1
  101. package/dist/Toast.css +1 -1
  102. package/dist/Toast.mjs +1 -1
  103. package/dist/ToggleButton.css +1 -1
  104. package/dist/ToggleButton.mjs +1 -1
  105. package/dist/ToggleIconButton.mjs +1 -1
  106. package/dist/Toolbar.css +1 -1
  107. package/dist/Toolbar.mjs +1 -1
  108. package/dist/Tooltip.mjs +1 -1
  109. package/dist/TreeView.css +1 -1
  110. package/dist/TreeView.mjs +1 -1
  111. package/dist/UNSAFE_ListBox.mjs +1 -1
  112. package/dist/Virtualizer.mjs +1 -1
  113. package/dist/{chunk-UUBOEBYZ.mjs → chunk-22MA6EYO.mjs} +1 -1
  114. package/dist/{chunk-3UH5CQQF.mjs → chunk-22VRCVTH.mjs} +2 -2
  115. package/dist/chunk-235S3EB7.mjs +10 -0
  116. package/dist/chunk-24R46WQW.mjs +10 -0
  117. package/dist/chunk-2F3CFR22.mjs +10 -0
  118. package/dist/{chunk-CHTLOFCT.mjs → chunk-2JGVUCP5.mjs} +1 -1
  119. package/dist/{chunk-4SBMUWOY.mjs → chunk-2LFMBQKQ.mjs} +2 -2
  120. package/dist/{chunk-TK4QXU3W.mjs → chunk-2VOWBYNS.mjs} +1 -1
  121. package/dist/{chunk-TO2TQ2LE.mjs → chunk-335C37NB.mjs} +1 -1
  122. package/dist/{chunk-DAN5WASP.mjs → chunk-36ZMHBG5.mjs} +2 -2
  123. package/dist/chunk-3BEG3MEX.mjs +10 -0
  124. package/dist/chunk-3BG6K2G2.mjs +10 -0
  125. package/dist/{chunk-SNQDFFKP.mjs → chunk-3DWFAHR2.mjs} +1 -1
  126. package/dist/{chunk-FOEGHU3P.mjs → chunk-3KCSUNRV.mjs} +1 -1
  127. package/dist/{chunk-TZ4MVY4E.mjs → chunk-3WKDIXCM.mjs} +1 -1
  128. package/dist/chunk-4AG2RUAZ.mjs +10 -0
  129. package/dist/{chunk-7OCDKTTZ.mjs → chunk-4EANTENO.mjs} +1 -1
  130. package/dist/{chunk-JJPCZOOI.mjs → chunk-4EAXDHSV.mjs} +2 -2
  131. package/dist/{chunk-UQJGSVXP.mjs → chunk-4I7K4CCG.mjs} +2 -2
  132. package/dist/{chunk-QR2AF3KT.mjs → chunk-4JQUB53Q.mjs} +1 -1
  133. package/dist/chunk-4MHBLLHV.mjs +11 -0
  134. package/dist/chunk-4P247R4V.mjs +10 -0
  135. package/dist/{chunk-RXSYDMT6.mjs → chunk-4QBHQCCK.mjs} +2 -2
  136. package/dist/chunk-4RSUKS23.mjs +10 -0
  137. package/dist/chunk-4S4GGUSH.mjs +10 -0
  138. package/dist/chunk-4W5VP4NV.mjs +10 -0
  139. package/dist/chunk-5BKC373Y.mjs +10 -0
  140. package/dist/chunk-5FK5AJ7A.mjs +10 -0
  141. package/dist/{chunk-FWAK2OZM.mjs → chunk-5KJF7IQN.mjs} +1 -1
  142. package/dist/{chunk-F2O4AP7P.mjs → chunk-5MUEJ5WI.mjs} +1 -1
  143. package/dist/{chunk-XZSDCUID.mjs → chunk-5SHHWKFM.mjs} +1 -1
  144. package/dist/{chunk-WAOWR7MR.mjs → chunk-5USQ6HBY.mjs} +1 -1
  145. package/dist/{chunk-4DTPDMSQ.mjs → chunk-5VNC6UYE.mjs} +2 -2
  146. package/dist/chunk-5ZC64ZG7.mjs +10 -0
  147. package/dist/{chunk-246VHB32.mjs → chunk-6G7EUNZW.mjs} +1 -1
  148. package/dist/chunk-6QQEK5I6.mjs +10 -0
  149. package/dist/chunk-76DKF2SK.mjs +10 -0
  150. package/dist/{chunk-4BYKAG4W.mjs → chunk-7L5UOGZA.mjs} +1 -1
  151. package/dist/chunk-7MMO7S3R.mjs +10 -0
  152. package/dist/{chunk-HDVWQ6RL.mjs → chunk-7P7VZMTO.mjs} +1 -1
  153. package/dist/{chunk-CFLEBB5T.mjs → chunk-7SKQUEHP.mjs} +1 -1
  154. package/dist/chunk-7SQRBY7N.mjs +10 -0
  155. package/dist/chunk-7TE4MFKC.mjs +10 -0
  156. package/dist/chunk-7XGNJE7J.mjs +10 -0
  157. package/dist/{chunk-UCQJ6FJO.mjs → chunk-AD3MLX6G.mjs} +1 -1
  158. package/dist/chunk-AELTF2DE.mjs +10 -0
  159. package/dist/chunk-AI6WQPRX.mjs +10 -0
  160. package/dist/chunk-AK7XHUQW.mjs +10 -0
  161. package/dist/chunk-AM5FU4Y7.mjs +10 -0
  162. package/dist/chunk-AYQN3OH2.mjs +10 -0
  163. package/dist/chunk-B3EZOXNU.mjs +10 -0
  164. package/dist/chunk-BBYODNBO.mjs +10 -0
  165. package/dist/chunk-BGQRLALS.mjs +10 -0
  166. package/dist/chunk-BGRGRUG4.mjs +10 -0
  167. package/dist/chunk-BHJCYKFJ.mjs +11 -0
  168. package/dist/{chunk-K6MB234H.mjs → chunk-BIDNNBRG.mjs} +1 -1
  169. package/dist/{chunk-RBZ7SIZR.mjs → chunk-BROSGYL3.mjs} +1 -1
  170. package/dist/chunk-BTPAZDGG.mjs +10 -0
  171. package/dist/{chunk-TNU3YDGL.mjs → chunk-BXNNVZOQ.mjs} +1 -1
  172. package/dist/chunk-BYDJXA5A.mjs +10 -0
  173. package/dist/chunk-C2VP5IEB.mjs +10 -0
  174. package/dist/{chunk-I3YGB2BE.mjs → chunk-C4WHTPLY.mjs} +2 -2
  175. package/dist/chunk-CIPPPD6E.mjs +10 -0
  176. package/dist/{chunk-EU75HMPG.mjs → chunk-CLGLEEFO.mjs} +2 -2
  177. package/dist/{chunk-MXKP7NQ4.mjs → chunk-COHK4QQW.mjs} +2 -2
  178. package/dist/chunk-CTSDHAAV.mjs +10 -0
  179. package/dist/chunk-CU6D2EA6.mjs +10 -0
  180. package/dist/{chunk-SAZLJ66W.mjs → chunk-CY6W27WG.mjs} +1 -1
  181. package/dist/{chunk-34TYNTXM.mjs → chunk-D4NW56YQ.mjs} +1 -1
  182. package/dist/chunk-DAN62T2M.mjs +10 -0
  183. package/dist/{chunk-KAVZW4RV.mjs → chunk-DAS5QGJX.mjs} +1 -1
  184. package/dist/{chunk-PAQQ7MQG.mjs → chunk-DF2D7NE6.mjs} +1 -1
  185. package/dist/{chunk-H2E7GKGB.mjs → chunk-DSV6CCI6.mjs} +2 -2
  186. package/dist/{chunk-GX2IOGYR.mjs → chunk-DZDZZRWE.mjs} +1 -1
  187. package/dist/{chunk-3L7GTQXK.mjs → chunk-E22TWF63.mjs} +2 -2
  188. package/dist/{chunk-DRYSJSKA.mjs → chunk-E3FP4B25.mjs} +1 -1
  189. package/dist/chunk-ETM4MNG4.mjs +10 -0
  190. package/dist/chunk-EUVUJQ2Z.mjs +10 -0
  191. package/dist/chunk-F7WPMQ3P.mjs +16 -0
  192. package/dist/chunk-FOKMDEP7.mjs +10 -0
  193. package/dist/chunk-FPFGTGUC.mjs +10 -0
  194. package/dist/chunk-FPM5UJRF.mjs +10 -0
  195. package/dist/{chunk-TJEK54BW.mjs → chunk-G77E7EDE.mjs} +1 -1
  196. package/dist/chunk-GCBMNOA6.mjs +10 -0
  197. package/dist/chunk-GFKZXGWJ.mjs +10 -0
  198. package/dist/{chunk-CPSUI4IW.mjs → chunk-GFTIEY5K.mjs} +1 -1
  199. package/dist/{chunk-IVVZSESM.mjs → chunk-GL5GUKT7.mjs} +2 -2
  200. package/dist/chunk-GMALMQWI.mjs +10 -0
  201. package/dist/chunk-GQIS4QBN.mjs +10 -0
  202. package/dist/chunk-GUPSQSPC.mjs +0 -0
  203. package/dist/chunk-HH4VLTF3.mjs +10 -0
  204. package/dist/chunk-I7LPPUZS.mjs +10 -0
  205. package/dist/chunk-IEOHIOGL.mjs +10 -0
  206. package/dist/chunk-IHES52NR.mjs +10 -0
  207. package/dist/{chunk-AGYQLGBZ.mjs → chunk-IIURKT24.mjs} +1 -1
  208. package/dist/chunk-IUXXTORQ.mjs +10 -0
  209. package/dist/{chunk-XIXHGXIN.mjs → chunk-IVGNOQSQ.mjs} +1 -1
  210. package/dist/chunk-IWZXZ5LU.mjs +10 -0
  211. package/dist/{chunk-HXTAOYOD.mjs → chunk-IXRSSEHQ.mjs} +1 -1
  212. package/dist/chunk-J4OPD7OL.mjs +10 -0
  213. package/dist/{chunk-J7RVOP5G.mjs → chunk-JDIGAVFU.mjs} +1 -1
  214. package/dist/{chunk-NSC53QWT.mjs → chunk-JZXLV6JU.mjs} +1 -1
  215. package/dist/chunk-K4TTZX4T.mjs +10 -0
  216. package/dist/{chunk-4ZJMZB5B.mjs → chunk-K5RYVERS.mjs} +1 -1
  217. package/dist/chunk-K7VOXFSK.mjs +10 -0
  218. package/dist/{chunk-WL27JGVG.mjs → chunk-KG2EHFYA.mjs} +1 -1
  219. package/dist/chunk-KGS3UWPG.mjs +10 -0
  220. package/dist/{chunk-W3ZGXUFP.mjs → chunk-KJ6ZSO3I.mjs} +1 -1
  221. package/dist/{chunk-AMYRLAIC.mjs → chunk-KT4FTBJ2.mjs} +1 -1
  222. package/dist/chunk-KUDCYGII.mjs +10 -0
  223. package/dist/{chunk-YCI6BEXQ.mjs → chunk-KVIV5RTE.mjs} +1 -1
  224. package/dist/chunk-KX7WG3L4.mjs +10 -0
  225. package/dist/chunk-LJZ7ZS4C.mjs +10 -0
  226. package/dist/{chunk-BZTAFNPW.mjs → chunk-LPI2NIDI.mjs} +1 -1
  227. package/dist/{chunk-2HMLSXNO.mjs → chunk-MBRNO6IW.mjs} +1 -1
  228. package/dist/chunk-MDE2FQHX.mjs +10 -0
  229. package/dist/chunk-MFB3SWO7.mjs +29 -0
  230. package/dist/{chunk-J7K7I5U2.mjs → chunk-MIF6BAPG.mjs} +1 -1
  231. package/dist/chunk-MYJ733MN.mjs +10 -0
  232. package/dist/chunk-MZIQ27JP.mjs +10 -0
  233. package/dist/chunk-NJKSUI2F.mjs +10 -0
  234. package/dist/chunk-NKC4MIX3.mjs +10 -0
  235. package/dist/{chunk-XB657BXX.mjs → chunk-NMGKHMH3.mjs} +1 -1
  236. package/dist/{chunk-TDPODC62.mjs → chunk-NMSOOQB2.mjs} +1 -1
  237. package/dist/{chunk-GEZGEZAP.mjs → chunk-NQIZ3U7Q.mjs} +2 -2
  238. package/dist/chunk-NRQSR3G7.mjs +10 -0
  239. package/dist/{chunk-6Z6HOW6T.mjs → chunk-NUCSMH4S.mjs} +2 -2
  240. package/dist/chunk-NYCG264A.mjs +10 -0
  241. package/dist/chunk-NZNOHFLD.mjs +10 -0
  242. package/dist/chunk-O4DA3TPW.mjs +11 -0
  243. package/dist/{chunk-4PYEGHW5.mjs → chunk-O7IU5NHN.mjs} +2 -2
  244. package/dist/chunk-ONEE6UCM.mjs +10 -0
  245. package/dist/chunk-OQPYPKZV.mjs +10 -0
  246. package/dist/{chunk-F3HQNHR5.mjs → chunk-OYSOPCTA.mjs} +1 -1
  247. package/dist/chunk-OZMADP4Z.mjs +10 -0
  248. package/dist/chunk-P7BN7QDF.mjs +10 -0
  249. package/dist/chunk-PD5ZXNGT.mjs +10 -0
  250. package/dist/{chunk-WICBTAMY.mjs → chunk-PG3WDHSK.mjs} +1 -1
  251. package/dist/chunk-PMDRFB75.mjs +10 -0
  252. package/dist/chunk-PPHSLODC.mjs +10 -0
  253. package/dist/chunk-PYV5J322.mjs +11 -0
  254. package/dist/{chunk-TPNZG6FA.mjs → chunk-Q4SEEMIX.mjs} +1 -1
  255. package/dist/{chunk-IE3E4KQ6.mjs → chunk-Q6PGYMYI.mjs} +2 -2
  256. package/dist/chunk-QAAOC64D.mjs +10 -0
  257. package/dist/chunk-QJYPCVSD.mjs +10 -0
  258. package/dist/chunk-QU34XSML.mjs +10 -0
  259. package/dist/chunk-QUQ4VYCN.mjs +10 -0
  260. package/dist/chunk-R3HHMCE5.mjs +10 -0
  261. package/dist/chunk-R4MOUAJW.mjs +10 -0
  262. package/dist/{chunk-CGFLGZL4.mjs → chunk-R6TFTLMV.mjs} +1 -1
  263. package/dist/{chunk-H4ZIN7W3.mjs → chunk-R7R7JDA3.mjs} +2 -2
  264. package/dist/{chunk-2NO2ITVE.mjs → chunk-RO5ZRU3Y.mjs} +1 -1
  265. package/dist/{chunk-AV4ZP5SY.mjs → chunk-RPIUPWPO.mjs} +1 -1
  266. package/dist/chunk-RXSX2RKA.mjs +10 -0
  267. package/dist/{chunk-HT55YHTN.mjs → chunk-S2XIFW52.mjs} +2 -2
  268. package/dist/chunk-S4HLMIFK.mjs +10 -0
  269. package/dist/{chunk-FTYXFTJV.mjs → chunk-SBR5UAUY.mjs} +2 -2
  270. package/dist/chunk-SD43KVTU.mjs +10 -0
  271. package/dist/{chunk-YS3Y5KGV.mjs → chunk-SGZWUG3H.mjs} +2 -2
  272. package/dist/chunk-SLFKSR3T.mjs +10 -0
  273. package/dist/chunk-SLSJEMQ4.mjs +10 -0
  274. package/dist/{chunk-K6X2BHPP.mjs → chunk-STMDFIUL.mjs} +1 -1
  275. package/dist/chunk-SVIYLH7R.mjs +10 -0
  276. package/dist/chunk-SVTTHYTR.mjs +10 -0
  277. package/dist/{chunk-GXOXYPQQ.mjs → chunk-SVV6DLJH.mjs} +1 -1
  278. package/dist/chunk-SZCVQU55.mjs +10 -0
  279. package/dist/chunk-SZN2J2ER.mjs +10 -0
  280. package/dist/{chunk-RM2Y4D2M.mjs → chunk-SZTFMBPY.mjs} +1 -1
  281. package/dist/chunk-TAT552A5.mjs +10 -0
  282. package/dist/{chunk-IHLJTHGQ.mjs → chunk-TDYBXLYP.mjs} +1 -1
  283. package/dist/{chunk-ZNN43VZV.mjs → chunk-TFSBTGTQ.mjs} +2 -2
  284. package/dist/{chunk-ENDOKA57.mjs → chunk-TH4XPZEO.mjs} +1 -1
  285. package/dist/chunk-TSHZ7JSR.mjs +10 -0
  286. package/dist/{chunk-WN6FAICZ.mjs → chunk-TUJLNJPJ.mjs} +2 -2
  287. package/dist/chunk-TUY23KMK.mjs +10 -0
  288. package/dist/{chunk-LQMEFFFM.mjs → chunk-U3T5JTZ7.mjs} +1 -1
  289. package/dist/chunk-UDMNDUBO.mjs +10 -0
  290. package/dist/chunk-UFN2OAM2.mjs +10 -0
  291. package/dist/{chunk-ZLAY7NNY.mjs → chunk-UI2VBG26.mjs} +1 -1
  292. package/dist/chunk-UNGYVWKZ.mjs +10 -0
  293. package/dist/{chunk-545KDVGI.mjs → chunk-UO75BAPM.mjs} +2 -2
  294. package/dist/chunk-UUTMZQQA.mjs +15 -0
  295. package/dist/chunk-UZ672WDX.mjs +10 -0
  296. package/dist/chunk-VETO7WNN.mjs +10 -0
  297. package/dist/chunk-VGFPT43C.mjs +10 -0
  298. package/dist/{chunk-GKODQS6E.mjs → chunk-VJUBKX3W.mjs} +2 -2
  299. package/dist/{chunk-ODDEW5IV.mjs → chunk-W7OTSFZS.mjs} +1 -1
  300. package/dist/chunk-WHN2SEWO.mjs +10 -0
  301. package/dist/{chunk-6DU65N7Q.mjs → chunk-WTAJLO6E.mjs} +2 -2
  302. package/dist/{chunk-NVS22MIQ.mjs → chunk-X5Z54UUE.mjs} +1 -1
  303. package/dist/chunk-XD43CVDT.mjs +10 -0
  304. package/dist/{chunk-5KD2MNNX.mjs → chunk-XDTKLQJB.mjs} +1 -1
  305. package/dist/chunk-XMGPNXZH.mjs +10 -0
  306. package/dist/chunk-XWJJ4V3O.mjs +10 -0
  307. package/dist/{chunk-D3IZ4HBL.mjs → chunk-Y2MIU76N.mjs} +1 -1
  308. package/dist/chunk-YF63IQQR.mjs +10 -0
  309. package/dist/{chunk-2RCST7ET.mjs → chunk-YHI2PD3M.mjs} +1 -1
  310. package/dist/chunk-YMYMFVW4.mjs +10 -0
  311. package/dist/chunk-YPEAGD2G.mjs +10 -0
  312. package/dist/chunk-YQHHE5AT.mjs +10 -0
  313. package/dist/{chunk-UCNHDT36.mjs → chunk-YS3Z53YT.mjs} +2 -2
  314. package/dist/{chunk-OFWPRDTC.mjs → chunk-YU5NRJT6.mjs} +2 -2
  315. package/dist/{chunk-TEQE6WCH.mjs → chunk-ZFGTKLCU.mjs} +1 -1
  316. package/dist/{chunk-DECHIERQ.mjs → chunk-ZQOR4LCM.mjs} +1 -1
  317. package/dist/{chunk-ZAMDRHQY.mjs → chunk-ZZIQF6XD.mjs} +1 -1
  318. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  319. package/dist/hooks/useDevice.mjs +1 -1
  320. package/dist/hooks/useI18n.mjs +1 -1
  321. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  322. package/dist/hooks/useLiveInteractionModality.mjs +1 -1
  323. package/dist/hooks/useLocalStorage.mjs +1 -1
  324. package/dist/hooks/useMedia.mjs +1 -1
  325. package/dist/hooks/useMutationObserver.mjs +1 -1
  326. package/dist/hooks/usePortalContainer.mjs +1 -1
  327. package/dist/hooks/usePreventFocus.mjs +1 -1
  328. package/dist/hooks/useResizeObserver.mjs +1 -1
  329. package/dist/hooks/useTextSelection.mjs +1 -1
  330. package/dist/hooks/useUndoRedo.mjs +1 -1
  331. package/dist/index.css +1 -1
  332. package/dist/index.d.ts +423 -199
  333. package/dist/index.js +21 -20
  334. package/dist/index.mjs +1 -1
  335. package/dist/react-aria.mjs +1 -1
  336. package/dist/react-stately.mjs +1 -1
  337. package/dist/utils/colors.mjs +1 -1
  338. package/dist/utils/dom.mjs +1 -1
  339. package/dist/utils/isInShadowDOM.mjs +1 -1
  340. package/dist/utils/keyboards.mjs +1 -1
  341. package/messages.json +1 -1
  342. package/package.json +6 -6
  343. package/sbom.json +27 -77
  344. package/dist/chunk-3BL5D3CA.mjs +0 -10
  345. package/dist/chunk-3FYY26ED.mjs +0 -10
  346. package/dist/chunk-3JL2TJZL.mjs +0 -10
  347. package/dist/chunk-3W6RWDIE.mjs +0 -10
  348. package/dist/chunk-47I3USMC.mjs +0 -10
  349. package/dist/chunk-4I4TIV2G.mjs +0 -10
  350. package/dist/chunk-4MRHG5IU.mjs +0 -10
  351. package/dist/chunk-4TAUFBXO.mjs +0 -10
  352. package/dist/chunk-55YEATL7.mjs +0 -10
  353. package/dist/chunk-5TDFLLMX.mjs +0 -10
  354. package/dist/chunk-63KRQW56.mjs +0 -10
  355. package/dist/chunk-66NJ7EYY.mjs +0 -10
  356. package/dist/chunk-6DGD7BZA.mjs +0 -10
  357. package/dist/chunk-6IRWW75G.mjs +0 -10
  358. package/dist/chunk-6Y6BYHT4.mjs +0 -10
  359. package/dist/chunk-6ZFBX7C7.mjs +0 -10
  360. package/dist/chunk-7PRJIPFA.mjs +0 -10
  361. package/dist/chunk-7VHON5HL.mjs +0 -10
  362. package/dist/chunk-A24DWFQ2.mjs +0 -10
  363. package/dist/chunk-AC7OXVHA.mjs +0 -10
  364. package/dist/chunk-AKES5B6C.mjs +0 -10
  365. package/dist/chunk-AL3FICFA.mjs +0 -10
  366. package/dist/chunk-AQYBKDT2.mjs +0 -16
  367. package/dist/chunk-AUOQSTS5.mjs +0 -10
  368. package/dist/chunk-AZRPXTYJ.mjs +0 -10
  369. package/dist/chunk-B7PSE5KC.mjs +0 -10
  370. package/dist/chunk-BGMVPFYK.mjs +0 -10
  371. package/dist/chunk-BJVFZYUV.mjs +0 -10
  372. package/dist/chunk-BU5H25MV.mjs +0 -10
  373. package/dist/chunk-C3W4WN2O.mjs +0 -10
  374. package/dist/chunk-C5P23FUW.mjs +0 -10
  375. package/dist/chunk-CAWUDHAE.mjs +0 -10
  376. package/dist/chunk-D5EEZT5J.mjs +0 -10
  377. package/dist/chunk-DSSMBDVA.mjs +0 -10
  378. package/dist/chunk-EA6GA4WC.mjs +0 -10
  379. package/dist/chunk-EADUR7IC.mjs +0 -10
  380. package/dist/chunk-EK3RIYMV.mjs +0 -10
  381. package/dist/chunk-EX2LI2CV.mjs +0 -10
  382. package/dist/chunk-F2X474RV.mjs +0 -10
  383. package/dist/chunk-G3K2DXNP.mjs +0 -10
  384. package/dist/chunk-GLT45FXJ.mjs +0 -10
  385. package/dist/chunk-GS4C6CYA.mjs +0 -10
  386. package/dist/chunk-HONWMHMX.mjs +0 -10
  387. package/dist/chunk-HZHAKW6I.mjs +0 -10
  388. package/dist/chunk-INDVRI57.mjs +0 -10
  389. package/dist/chunk-JDLUGVXG.mjs +0 -10
  390. package/dist/chunk-JF4BWG7T.mjs +0 -10
  391. package/dist/chunk-JQ4ZGZPV.mjs +0 -15
  392. package/dist/chunk-JUXBZ2ZN.mjs +0 -10
  393. package/dist/chunk-KEVERVHK.mjs +0 -10
  394. package/dist/chunk-KKJ6XIU3.mjs +0 -10
  395. package/dist/chunk-KLNQ24LT.mjs +0 -10
  396. package/dist/chunk-KPEONVLU.mjs +0 -10
  397. package/dist/chunk-KUEDQO7P.mjs +0 -10
  398. package/dist/chunk-KY3JKXSX.mjs +0 -10
  399. package/dist/chunk-LRZ6BQFQ.mjs +0 -10
  400. package/dist/chunk-LTIDSWDM.mjs +0 -10
  401. package/dist/chunk-LZFTBNPW.mjs +0 -10
  402. package/dist/chunk-M5M3EPG5.mjs +0 -10
  403. package/dist/chunk-MFH2E2GU.mjs +0 -10
  404. package/dist/chunk-MFNWPTNI.mjs +0 -10
  405. package/dist/chunk-MHUFXHRU.mjs +0 -10
  406. package/dist/chunk-MI7DCFP2.mjs +0 -10
  407. package/dist/chunk-MNAD5FJH.mjs +0 -10
  408. package/dist/chunk-MRJFGHFW.mjs +0 -10
  409. package/dist/chunk-MVK5CB64.mjs +0 -10
  410. package/dist/chunk-N53SGN23.mjs +0 -10
  411. package/dist/chunk-N7MTFSWR.mjs +0 -10
  412. package/dist/chunk-O66FNQSB.mjs +0 -10
  413. package/dist/chunk-OAY74XPB.mjs +0 -10
  414. package/dist/chunk-OC42IZG2.mjs +0 -10
  415. package/dist/chunk-OHZK2ZDA.mjs +0 -10
  416. package/dist/chunk-OMT6ZWSV.mjs +0 -11
  417. package/dist/chunk-PDWICYVZ.mjs +0 -29
  418. package/dist/chunk-PF3OQKXP.mjs +0 -10
  419. package/dist/chunk-PFKPY3N7.mjs +0 -10
  420. package/dist/chunk-Q4BSQC65.mjs +0 -10
  421. package/dist/chunk-QKKV24WQ.mjs +0 -10
  422. package/dist/chunk-QQGK5M66.mjs +0 -10
  423. package/dist/chunk-RCBUNCHV.mjs +0 -10
  424. package/dist/chunk-RFTDIXEG.mjs +0 -10
  425. package/dist/chunk-RRB5F4E4.mjs +0 -11
  426. package/dist/chunk-RWHDD6Z7.mjs +0 -10
  427. package/dist/chunk-RZEGMPV2.mjs +0 -11
  428. package/dist/chunk-SMAYNDQQ.mjs +0 -10
  429. package/dist/chunk-T2XIDX6U.mjs +0 -10
  430. package/dist/chunk-TBDKTTIY.mjs +0 -10
  431. package/dist/chunk-TDXALNX3.mjs +0 -10
  432. package/dist/chunk-THRAJMLX.mjs +0 -10
  433. package/dist/chunk-TIHKHXTS.mjs +0 -10
  434. package/dist/chunk-TKQOQVZD.mjs +0 -10
  435. package/dist/chunk-TO6OQF2Y.mjs +0 -10
  436. package/dist/chunk-TVENHRYC.mjs +0 -10
  437. package/dist/chunk-UCZZLAPB.mjs +0 -10
  438. package/dist/chunk-ULCYKB34.mjs +0 -10
  439. package/dist/chunk-UOMNE4F4.mjs +0 -10
  440. package/dist/chunk-V3L4SVVF.mjs +0 -10
  441. package/dist/chunk-VDSLDZLT.mjs +0 -10
  442. package/dist/chunk-VJ3SWDRJ.mjs +0 -10
  443. package/dist/chunk-WA35CT3D.mjs +0 -10
  444. package/dist/chunk-WRQ4FPJE.mjs +0 -10
  445. package/dist/chunk-WWSGOGLA.mjs +0 -10
  446. package/dist/chunk-X3AXUU3H.mjs +0 -10
  447. package/dist/chunk-XCL4K4MY.mjs +0 -10
  448. package/dist/chunk-XTH6B5FE.mjs +0 -10
  449. package/dist/chunk-XWLESSHN.mjs +0 -10
  450. package/dist/chunk-Y4DRSGEJ.mjs +0 -10
  451. package/dist/chunk-YB3KW7JC.mjs +0 -10
  452. package/dist/chunk-YIGT3OP2.mjs +0 -10
  453. package/dist/chunk-YVYMYKYN.mjs +0 -10
  454. package/dist/chunk-ZFLLIBX5.mjs +0 -10
  455. package/dist/chunk-ZGRRD3TU.mjs +0 -10
  456. package/dist/chunk-ZP4YB5RP.mjs +0 -10
  457. /package/dist/{chunk-FKYHERP4.mjs → chunk-3K2H3JOE.mjs} +0 -0
  458. /package/dist/{chunk-FXCHST4Z.mjs → chunk-JQQGRJ5J.mjs} +0 -0
@@ -1,10 +0,0 @@
1
- import {d as d$1}from'./chunk-66NJ7EYY.mjs';import {o,l,d as d$2,s,a as a$2}from'./chunk-MRJFGHFW.mjs';import {a as a$1,b as b$1,g as g$1,f}from'./chunk-AUOQSTS5.mjs';import {b as b$2}from'./chunk-RMUV6NJJ.mjs';import {useState,useEffect}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var u=null,d="keyboard",E=new Set,v=new Map,a=false,g=false,R={Tab:true,Escape:true};function b(e,n){for(let t of E)t(e,n);}function _(e){return !(e.metaKey||!d$2()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function m(e){a=true,!o.isOpening&&_(e)&&(u="keyboard",d="keyboard",b("keyboard",e));}function i(e){u="pointer",d="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(a=true,b("pointer",e));}function D(e){!o.isOpening&&l(e)&&(a=true,u="virtual",d="virtual");}function I(e){let n=g$1(e),t="nodeType"in n&&n.nodeType===Node.DOCUMENT_NODE,o=t?n.defaultView||window:b$1(n),l=t?n:a$1(n);n===o||n===l||d$1||!e.isTrusted||(!a&&!g&&(u="virtual",d="virtual",b("virtual",e)),a=false,g=false);}function O(){d$1||(a=false,g=true);}function y(e){if(typeof window>"u"||typeof document>"u")return;let n=b$1(e),t=a$1(e);if(v.get(n))return;let o=n.HTMLElement.prototype.focus;Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:function(){a=true,o.apply(this,arguments);}}),t.addEventListener("keydown",m,true),t.addEventListener("keyup",m,true),t.addEventListener("click",D,true),n.addEventListener("focus",I,true),n.addEventListener("blur",O,false),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",i,true),t.addEventListener("pointermove",i,true),t.addEventListener("pointerup",i,true)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",i,true),t.addEventListener("mousemove",i,true),t.addEventListener("mouseup",i,true)),n.addEventListener("beforeunload",()=>{P(e);},{once:true}),v.set(n,{focus:o});}var P=(e,n)=>{let t=b$1(e),o=a$1(e);n&&o.removeEventListener("DOMContentLoaded",n),v.has(t)&&(Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:v.get(t).focus}),o.removeEventListener("keydown",m,true),o.removeEventListener("keyup",m,true),o.removeEventListener("click",D,true),t.removeEventListener("focus",I,true),t.removeEventListener("blur",O,false),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",i,true),o.removeEventListener("pointermove",i,true),o.removeEventListener("pointerup",i,true)):process.env.NODE_ENV==="test"&&(o.removeEventListener("mousedown",i,true),o.removeEventListener("mousemove",i,true),o.removeEventListener("mouseup",i,true)),v.delete(t));};function j(e){let n=a$1(e),t;return n.readyState!=="loading"?y(e):(t=()=>{y(e);},n.addEventListener("DOMContentLoaded",t)),()=>P(e,t)}typeof document<"u"&&j();function S(){return u!=="pointer"}function K(){return u}function ee(e){u=e,d=e==="pointer"?"mouse":e,b(e,null);}function te(){return d}function ne(){y();let[e,n]=useState(u);return useEffect(()=>{let t=()=>{n(u);};return E.add(t),()=>{E.delete(t);}},[]),b$2()?null:e}var G=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function B(e,n,t){let o=t?g$1(t):void 0,l=a$1(o),r=b$1(o),W=typeof r<"u"?r.HTMLInputElement:HTMLInputElement,C=typeof r<"u"?r.HTMLTextAreaElement:HTMLTextAreaElement,N=typeof r<"u"?r.HTMLElement:HTMLElement,A=typeof r<"u"?r.KeyboardEvent:KeyboardEvent,c=f(l);return e=e||c instanceof W&&!G.has(c.type)||c instanceof C||c instanceof N&&c.isContentEditable,!(e&&n==="keyboard"&&t instanceof A&&!R[t.key])}function oe(e={}){let{isTextInput:n,autoFocus:t}=e,[o,l]=useState(t||S());return U(r=>{l(r);},[n],{isTextInput:n}),{isFocusVisible:o}}function U(e,n,t){y(),useEffect(()=>{if(t?.enabled===false)return;let o=(l,r)=>{B(!!t?.isTextInput,l,r)&&e(S());};return E.add(o),()=>{E.delete(o);}},n);}function de(e){if(!e.isConnected)return;let n=a$1(e);if(K()==="virtual"){let t=f(n);s(()=>{let o=f(n);(o===t||o===n.body)&&e.isConnected&&a$2(e);},e);}else a$2(e);}export{j as a,S as b,K as c,ee as d,te as e,ne as f,oe as g,U as h,de as i};
@@ -1,10 +0,0 @@
1
- import {c,b,a as a$2}from'./chunk-66NJ7EYY.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {e,g,a as a$1,f}from'./chunk-AUOQSTS5.mjs';import {useRef,useCallback}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- function k(p){let{isDisabled:F,onBlurWithin:s,onFocusWithin:n,onFocusWithinChange:e$1}=p,r=useRef({isFocusWithin:false}),{addGlobalListener:c$1,removeAllGlobalListeners:f$1}=a(),o=useCallback(t=>{e(t.currentTarget,g(t))&&r.current.isFocusWithin&&!e(t.currentTarget,t.relatedTarget)&&(r.current.isFocusWithin=false,f$1(),s&&s(t),e$1&&e$1(false));},[s,e$1,r,f$1]),i=c(o),m=useCallback(t=>{if(!e(t.currentTarget,g(t)))return;let h=g(t),E=a$1(h),A=f(E);if(!r.current.isFocusWithin&&A===h){n&&n(t),e$1&&e$1(true),r.current.isFocusWithin=true,i(t);let T=t.currentTarget;c$1(E,"focus",w=>{let d=g(w);if(r.current.isFocusWithin&&!e(T,d)){let b$1=new E.defaultView.FocusEvent("blur",{relatedTarget:d});b(b$1,T);let C=a$2(b$1);o(C);}},{capture:true});}},[n,e$1,i,c$1,o]);return F?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:o}}}function J(p){let{isDisabled:F,onFocus:s,onBlur:n,onFocusChange:e}=p,r=useCallback(o=>{if(g(o)===o.currentTarget)return n&&n(o),e&&e(false),true},[n,e]),c$1=c(r),f$1=useCallback(o=>{let i=g(o),m=a$1(i),t=m?f(m):f();i===o.currentTarget&&i===t&&(s&&s(o),e&&e(true),c$1(o));},[e,s,c$1]);return {focusProps:{onFocus:!F&&(s||e||n)?f$1:void 0,onBlur:!F&&(n||e)?r:void 0}}}export{J as a,k as b};
@@ -1,10 +0,0 @@
1
- import {a}from'./chunk-3FYY26ED.mjs';import i from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var p=i.forwardRef(({className:e,style:a$1,children:t,"data-block-id":d,"data-block-class":s,role:l="group",isDisabled:o,...m},c)=>{let{hoverProps:u,isHovered:f}=a({isDisabled:o});return jsx("div",{...u,role:l,"data-hovered":f,"data-disabled":o,"data-block-id":d,"data-block-class":s,className:e,style:a$1,...m,ref:c,children:t})});p.displayName="Group";export{p as a};
@@ -1,10 +0,0 @@
1
- import {l,q,e,B,o,p,u,h,d as d$1,A,g,v,x,z,f,i,m,c as c$2,r,t,s,n,j,a as a$4,b as b$4,w}from'./chunk-OMT6ZWSV.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$2,b as b$3}from'./chunk-MVK5CB64.mjs';import {a as a$1}from'./chunk-XWLESSHN.mjs';import {d}from'./chunk-Y4DRSGEJ.mjs';import {i as i$1,g as g$1,l as l$1,m as m$1}from'./chunk-MRJFGHFW.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a,c}from'./chunk-JDLUGVXG.mjs';import {a as a$3}from'./chunk-6ZQE5SHE.mjs';import {b as b$2,g as g$2}from'./chunk-AUOQSTS5.mjs';import {flushSync}from'react-dom';import Je,{useState,useRef,useImperativeHandle,useEffect,useCallback,version}from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var Ze=Je.forwardRef(function(e,o){let t=e.children,[g,n]=useState(null),v=useRef(null),d=useRef(void 0);return useImperativeHandle(o,()=>(h,K)=>{let T=t(h),O,p,b;T&&typeof T=="object"&&"element"in T?(O=T.element,p=T.x,b=T.y):O=T,flushSync(()=>{n(O);}),K(v.current,p,b),d.current=requestAnimationFrame(()=>{n(null);});},[t]),useEffect(()=>()=>{d.current&&cancelAnimationFrame(d.current);},[]),g?jsx("div",{style:{zIndex:-100,position:"fixed",top:0,left:-1e5},ref:v,children:g}):null});function Be(a,e,o,t,g=false,n=false){switch(t){case "left":return g?te(a,e,o,n,"left"):re(a,e,o,n,"left");case "right":return g?re(a,e,o,n,"right"):te(a,e,o,n,"right");case "up":return re(a,e,o,n);case "down":return te(a,e,o,n)}}function te(a,e,o,t=false,g=null){if(!o)return {type:"root"};if(o.type==="root"){let n=a.getFirstKey?.()??null;return n!=null?{type:"item",key:n,dropPosition:"before"}:null}if(o.type==="item"){let n=null;g?n=g==="right"?a.getKeyRightOf?.(o.key,{includeDisabled:true}):a.getKeyLeftOf?.(o.key,{includeDisabled:true}):n=a.getKeyBelow?.(o.key,{includeDisabled:true});let v=oe(e,o.key,d=>e.getKeyAfter(d));if(n!=null&&n!==v)return {type:"item",key:n,dropPosition:o.dropPosition};switch(o.dropPosition){case "before":return {type:"item",key:o.key,dropPosition:"on"};case "on":{let d=e.getItem(o.key),h=n!=null?e.getItem(n):null;return d&&h&&h.level>=d.level?{type:"item",key:h.key,dropPosition:"before"}:{type:"item",key:o.key,dropPosition:"after"}}case "after":{let d=e.getItem(o.key),h=d?.nextKey!=null?e.getItem(d.nextKey):null;for(;h!=null&&h.type!=="item";)h=h.nextKey!=null?e.getItem(h.nextKey):null;if(d&&h==null&&d.parentKey!=null){let K=e.getItem(d.parentKey),T=K?.nextKey!=null?e.getItem(K.nextKey):null;if(T?.type==="item")return {type:"item",key:T.key,dropPosition:"before"};if(K?.type==="item")return {type:"item",key:K.key,dropPosition:"after"}}if(h)return {type:"item",key:h.key,dropPosition:"on"}}}}return t?{type:"root"}:null}function re(a,e,o,t=false,g=null){if(!o||t&&o.type==="root"){let n=null,v=a.getLastKey?.();for(;v!=null;){let d=e.getItem(v);if(d?.type!=="item")break;n=v,v=d?.parentKey;}return n!=null?{type:"item",key:n,dropPosition:"after"}:null}if(o.type==="item"){let n=null;g?n=g==="left"?a.getKeyLeftOf?.(o.key,{includeDisabled:true}):a.getKeyRightOf?.(o.key,{includeDisabled:true}):n=a.getKeyAbove?.(o.key,{includeDisabled:true});let v=oe(e,o.key,d=>e.getKeyBefore(d));if(n!=null&&n!==v)return {type:"item",key:n,dropPosition:o.dropPosition};switch(o.dropPosition){case "before":{let d=e.getItem(o.key);if(d&&d.prevKey!=null){let h=Fe(e,d.prevKey);if(h)return h}return n!=null?{type:"item",key:n,dropPosition:"on"}:{type:"root"}}case "on":return {type:"item",key:o.key,dropPosition:"before"};case "after":{let d=Fe(e,o.key);return d||{type:"item",key:o.key,dropPosition:"on"}}}}return o.type!=="root"?{type:"root"}:null}function Fe(a,e){let o=a.getItem(e),t=oe(a,e,n=>a.getKeyAfter(n)),g=t!=null?a.getItem(t):null;if(o&&g&&g.level>o.level){let n=null;if("lastChildKey"in o)for(n=o.lastChildKey!=null?a.getItem(o.lastChildKey):null;n&&n.type!=="item"&&n.prevKey!=null;)n=a.getItem(n.prevKey);else n=Array.from(o.childNodes).findLast(v=>v.type==="item")||null;if(n)return {type:"item",key:n.key,dropPosition:"after"}}return null}function oe(a,e,o){let t=o(e),g=t!=null?a.getItem(t):null;for(;g&&g.type!=="item";)t=o(g.key),g=t!=null?a.getItem(t):null;return t}var $=20;function He(a){let e=useRef(null),o=useRef(true),t=useRef(true);useEffect(()=>{if(a.current){e.current=a$2(a.current)?a.current:b$3(a.current);let v=window.getComputedStyle(e.current);o.current=/(auto|scroll)/.test(v.overflowX),t.current=/(auto|scroll)/.test(v.overflowY);}},[a]);let g=useRef({timer:void 0,dx:0,dy:0}).current;useEffect(()=>()=>{g.timer&&(cancelAnimationFrame(g.timer),g.timer=void 0);},[g]);let n=useCallback(()=>{o.current&&e.current&&(e.current.scrollLeft+=g.dx),t.current&&e.current&&(e.current.scrollTop+=g.dy),g.timer&&(g.timer=requestAnimationFrame(n));},[e,g]);return {move(v,d){if(!i$1()||g$1()||!e.current)return;let h=e.current.getBoundingClientRect(),K=$,T=$,O=h.height-$,p=h.width-$;v<K||v>p||d<T||d>O?(v<K?g.dx=v-K:v>p&&(g.dx=v-p),d<T?g.dy=d-T:d>O&&(g.dy=d-O),g.timer||(g.timer=requestAnimationFrame(n))):this.stop();},stop(){g.timer&&(cancelAnimationFrame(g.timer),g.timer=void 0);}}}function tt(a$1,e$1,o$1){let t=useRef({props:a$1,state:e$1,nextTarget:null,dropOperation:null}).current;t.props=a$1,t.state=e$1;let g=useCallback(async p=>{let{onInsert:b,onRootDrop:u,onItemDrop:c,onReorder:s,onMove:m,acceptedDragTypes:D="all",shouldAcceptItemDrop:i}=t.props,{draggingKeys:l$1}=l,f=q(o$1),{target:r,dropOperation:y,items:w}=p,P=w;(D!=="all"||i)&&(P=w.filter(I=>{let E;return I.kind==="directory"?E=new Set([e]):E=I.kind==="file"?new Set([I.type]):I.types,D==="all"||D.some(C=>E.has(C))?r.type==="item"&&r.dropPosition==="on"&&i?i(r,E):true:false})),P.length>0&&(r.type==="root"&&u&&await u({items:P,dropOperation:y}),r.type==="item"&&(r.dropPosition==="on"&&c&&await c({items:P,dropOperation:y,isInternal:f,target:r}),m&&f&&await m({keys:l$1,dropOperation:y,target:r}),r.dropPosition!=="on"&&(!f&&b&&await b({items:P,dropOperation:y,target:r}),f&&s&&await s({keys:l$1,dropOperation:y,target:r}))));},[t,o$1]),n=He(o$1),{dropProps:v}=B({ref:o$1,onDropEnter(){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},onDropMove(p){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},getDropOperationForPoint(p,b,u,c){let{draggingKeys:s,dropCollectionRef:m}=l,D=q(o$1),i=f=>e$1.getDropOperation({target:f,types:p,allowedOperations:b,isInternal:D,draggingKeys:s})!=="cancel",l$1=a$1.dropTargetDelegate.getDropTargetFromPoint(u,c,i);if(!l$1)return t.dropOperation="cancel",t.nextTarget=null,"cancel";if(t.dropOperation=e$1.getDropOperation({target:l$1,types:p,allowedOperations:b,isInternal:D,draggingKeys:s}),t.dropOperation==="cancel"){let f={type:"root"},r=e$1.getDropOperation({target:f,types:p,allowedOperations:b,isInternal:D,draggingKeys:s});r!=="cancel"&&(l$1=f,t.dropOperation=r);}return l$1&&t.dropOperation!=="cancel"&&o$1?.current!==m?.current&&o(o$1),t.nextTarget=t.dropOperation==="cancel"?null:l$1,t.dropOperation},onDropExit(){o(void 0),e$1.setTarget(null),n.stop();},onDropActivate(p){e$1.target?.type==="item"&&typeof a$1.onDropActivate=="function"&&a$1.onDropActivate({type:"dropactivate",x:p.x,y:p.y,target:e$1.target});},onDrop(p$1){o(o$1),e$1.target&&K(p$1,e$1.target);let{draggingCollectionRef:b}=l;b==null&&p();}}),d$2=useRef(null),h$1=useCallback(()=>{let{state:p}=t;if(d$2.current){let{target:b,collection:u,selectedKeys:c,focusedKey:s,isInternal:m,draggingKeys:D}=d$2.current;if(p.collection.size>u.size&&p.selectionManager.isSelectionEqual(c)){let i=new Set,l=p.collection.getFirstKey();for(;l!=null;){let f=p.collection.getItem(l);f?.type==="item"&&!u.getItem(f.key)&&i.add(f.key),f?.hasChildNodes&&p.collection.getItem(f.lastChildKey)?.type==="item"?l=f.firstChildKey:l=p.collection.getKeyAfter(l);}if(p.selectionManager.setSelectedKeys(i),p.selectionManager.focusedKey===s){let f=i.keys().next().value;if(f!=null){let r=p.collection.getItem(f),y=d$2.current.target,w=p.collection.expandedKeys?p.collection.expandedKeys.has(r?.parentKey):false;r&&(r?.type==="cell"||y.type==="item"&&y.dropPosition==="on"&&!w)&&(f=r.parentKey),f!=null&&p.selectionManager.setFocusedKey(f),p.selectionManager.selectionMode==="none"&&d("keyboard");}}}else s!=null&&p.selectionManager.focusedKey===s&&m&&b.type==="item"&&b.dropPosition!=="on"&&D.has(p.collection.getItem(s)?.parentKey)?(p.selectionManager.setFocusedKey(p.collection.getItem(s)?.parentKey??null),d("keyboard")):p.selectionManager.focusedKey===s&&b.type==="item"&&b.dropPosition==="on"&&p.collection.getItem(b.key)!=null?(p.selectionManager.setFocusedKey(b.key),d("keyboard")):p.selectionManager.focusedKey!=null&&!p.selectionManager.isSelected(p.selectionManager.focusedKey)&&d("keyboard");p.selectionManager.setFocused(true);}},[t]),K=useCallback((p,b)=>{let{state:u}=t;d$2.current={timeout:void 0,focusedKey:u.selectionManager.focusedKey,collection:u.collection,selectedKeys:u.selectionManager.selectedKeys,draggingKeys:l.draggingKeys,isInternal:q(o$1),target:b},(t.props.onDrop||g)({type:"drop",x:p.x,y:p.y,target:b,items:p.items,dropOperation:p.dropOperation}),d$2.current.timeout=setTimeout(()=>{h$1(),d$2.current=null;},50);},[t,g,o$1,h$1]);useEffect(()=>()=>{d$2.current&&clearTimeout(d$2.current.timeout);},[]),a(()=>{d$2.current&&e$1.collection!==d$2.current.collection&&h$1();});let{direction:T}=b();useEffect(()=>{if(!o$1.current)return;let p=(c,s=true,m="down")=>Be(t.props.keyboardDelegate,t.state.collection,c,m,T==="rtl",s),b=(c,s=true)=>p(c,s,"up"),u$1=(c,s,m,D,i=true)=>{let l$1=0,f,{draggingKeys:r}=l,y=q(o$1);do{let w=D(c,i);if(!w)return null;c=w,f=t.state.getDropOperation({target:w,types:s,allowedOperations:m,isInternal:y,draggingKeys:r}),c.type==="root"&&l$1++;}while(f==="cancel"&&!t.state.isDropTarget(c)&&l$1<2);return f==="cancel"?null:c};return u({element:o$1.current,preventFocusOnDrop:true,getDropOperation(c,s){if(t.state.target){let{draggingKeys:D}=l,i=q(o$1);return t.state.getDropOperation({target:t.state.target,types:c,allowedOperations:s,isInternal:i,draggingKeys:D})}return u$1(null,c,s,p)?"move":"cancel"},onDropEnter(c,s){let m=h(s.items),D=t.state.selectionManager,i=null;o(o$1);let l$1=D.focusedKey,f="after",r=l$1!=null?t.state.collection.getItem(l$1):null;if(r?.type==="cell"&&(l$1=r.parentKey),l$1!=null&&D.isSelected(l$1)&&(D.selectedKeys.size>1&&D.firstSelectedKey===l$1?f="before":l$1=D.lastSelectedKey),l$1!=null){i={type:"item",key:l$1,dropPosition:f};let{draggingKeys:y}=l,w=q(o$1);t.state.getDropOperation({target:i,types:m,allowedOperations:s.allowedDropOperations,isInternal:w,draggingKeys:y})==="cancel"&&(i=u$1(i,m,s.allowedDropOperations,p,false)??u$1(i,m,s.allowedDropOperations,b,false));}i||(i=u$1(null,m,s.allowedDropOperations,p)),t.state.setTarget(i);},onDropExit(){o(void 0),t.state.setTarget(null);},onDropTargetEnter(c){t.state.setTarget(c);},onDropActivate(c,s){s?.type==="item"&&s?.dropPosition==="on"&&typeof t.props.onDropActivate=="function"&&t.props.onDropActivate({type:"dropactivate",x:c.x,y:c.y,target:s});},onDrop(c,s){o(o$1),t.state.target&&K(c,s||t.state.target);},onKeyDown(c,s){let{keyboardDelegate:m}=t.props,D=h(s.items);switch(c.key){case "ArrowDown":{if(m.getKeyBelow){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"down"));t.state.setTarget(i);}break}case "ArrowUp":{if(m.getKeyAbove){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"up"));t.state.setTarget(i);}break}case "ArrowLeft":{if(m.getKeyLeftOf){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"left"));t.state.setTarget(i);}break}case "ArrowRight":{if(m.getKeyRightOf){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"right"));t.state.setTarget(i);}break}case "Home":{if(m.getFirstKey){let i=u$1(null,D,s.allowedDropOperations,p);t.state.setTarget(i);}break}case "End":{if(m.getLastKey){let i=u$1(null,D,s.allowedDropOperations,b);t.state.setTarget(i);}break}case "PageDown":{if(m.getKeyPageBelow){let i=t.state.target;if(!i)i=u$1(null,D,s.allowedDropOperations,p);else {let l$1=m.getFirstKey?.();i.type==="item"&&(l$1=i.key);let f=null;l$1!=null&&(f=m.getKeyPageBelow(l$1));let r=i.type==="item"?i.dropPosition:"after";if((f==null||i.type==="item"&&i.key===m.getLastKey?.())&&(f=m.getLastKey?.()??null,r="after"),f==null)break;i={type:"item",key:f,dropPosition:r};let{draggingCollectionRef:y,draggingKeys:w}=l,P=y?.current===o$1?.current;t.state.getDropOperation({target:i,types:D,allowedOperations:s.allowedDropOperations,isInternal:P,draggingKeys:w})==="cancel"&&(i=u$1(i,D,s.allowedDropOperations,p,false)??u$1(i,D,s.allowedDropOperations,b,false));}t.state.setTarget(i??t.state.target);}break}case "PageUp":{if(!m.getKeyPageAbove)break;let i=t.state.target;if(!i)i=u$1(null,D,s.allowedDropOperations,b);else if(i.type==="item"){if(i.key===m.getFirstKey?.())i={type:"root"};else {let y=m.getKeyPageAbove(i.key),w=i.dropPosition;if(y==null&&(y=m.getFirstKey?.(),w="before"),y==null)break;i={type:"item",key:y,dropPosition:w};}let{draggingKeys:l$1}=l,f=q(o$1);t.state.getDropOperation({target:i,types:D,allowedOperations:s.allowedDropOperations,isInternal:f,draggingKeys:l$1})==="cancel"&&(i=u$1(i,D,s.allowedDropOperations,b,false)??u$1(i,D,s.allowedDropOperations,p,false));}t.state.setTarget(i??t.state.target);break}}t.props.onKeyDown?.(c);}})},[t,o$1,K,T]);let O=c();return d$1.set(e$1,{id:O,ref:o$1}),{collectionProps:c$1(v,{id:O,"aria-describedby":null})}}function ie(a,e,o){let{dropProps:t}=A(o),g$1=g(e);useEffect(()=>{if(o.current)return v({element:o.current,target:a.target,getDropOperation(T,O){let{draggingKeys:p}=l,b=q(g$1);return e.getDropOperation({target:a.target,types:T,allowedOperations:O,isInternal:b,draggingKeys:p})},activateButtonRef:a.activateButtonRef})},[o,a.target,e,g$1,a.activateButtonRef]);let n=x(),{draggingKeys:v$1}=l,d=q(g$1),h$1=n&&e.getDropOperation({target:a.target,types:h(n.dragTarget.items),allowedOperations:n.dragTarget.allowedDropOperations,isInternal:d,draggingKeys:v$1})!=="cancel",K=e.isDropTarget(a.target);return useEffect(()=>{n&&K&&o.current&&o.current.focus();},[K,n,o]),{dropProps:{...t,"aria-hidden":!n||h$1?void 0:"true"},isDropTarget:K}}function rt(a,e,o){let{target:t}=a,{collection:g}=e,n=b$1(z,"@react-aria/dnd"),v=x(),{dropProps:d}=ie(a,e,o),h=c(),K=u=>u==null?"":g.getTextValue?.(u)??g.getItem(u)?.textValue??"",T="",O;if(t.type==="root")T=n.format("dropOnRoot"),O=`${h} ${f(e)}`;else if(t.dropPosition==="on")T=n.format("dropOnItem",{itemText:K(t.key)});else {let u,c;if(t.dropPosition==="before"){let s=g.getItem(t.key)?.prevKey,m=s!=null?g.getItem(s):null;u=m?.type==="item"?m.key:null;}else u=t.key;if(t.dropPosition==="after"){let s=g.getItem(t.key)?.nextKey,m=s!=null?g.getItem(s):null;c=m?.type==="item"?m.key:null;}else c=t.key;u!=null&&c!=null?T=n.format("insertBetween",{beforeItemText:K(u),afterItemText:K(c)}):u!=null?T=n.format("insertAfter",{itemText:K(u)}):c!=null&&(T=n.format("insertBefore",{itemText:K(c)}));}let p=e.isDropTarget(t),b=v?d["aria-hidden"]:"true";return {dropIndicatorProps:{...d,id:h,"aria-roledescription":n.format("dropIndicator"),"aria-label":T,"aria-labelledby":O,"aria-hidden":b,tabIndex:-1},isDropTarget:p,isHidden:!p&&!!b}}var Ve={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Ye(a){let{hasDragButton:e,isDisabled:o,elementRef:t$1}=a,g=b$1(z,"@react-aria/dnd"),n=useRef({options:a,x:0,y:0}).current;n.options=a;let v=useRef(null),[d,h]=useState(false),K=r=>{v.current=r,h(!!r);},{addGlobalListener:T,removeAllGlobalListeners:O}=a$3(),p=useRef(null),b=r=>{if(r.defaultPrevented)return;if(r.stopPropagation(),p.current==="virtual"){r.preventDefault(),m(g$2(r)),p.current=null;return}typeof a.onDragStart=="function"&&a.onDragStart({type:"dragstart",x:r.clientX,y:r.clientY});let y=a.getItems();r.dataTransfer.clearData?.(),j(r.dataTransfer,y);let w=7;if(typeof a.getAllowedDropOperations=="function"){let E=a.getAllowedDropOperations();w=0;for(let C of E)w|=a$4[C]||0;}t(w);let P=b$4[w]||"none";r.dataTransfer.effectAllowed=P==="cancel"?"none":P,typeof a.preview?.current=="function"&&a.preview.current(y,(E,C,N)=>{if(!E)return;let x=E.getBoundingClientRect(),ge=r.currentTarget.getBoundingClientRect(),Z=r.clientX-ge.x,Q=r.clientY-ge.y;(Z>x.width||Q>x.height)&&(Z=x.width/2,Q=x.height/2);let H=Z,j=Q;typeof C=="number"&&typeof N=="number"&&(H=C,j=N),H=Math.max(0,Math.min(H,x.width)),j=Math.max(0,Math.min(j,x.height));let _e=2*Math.round(x.height/2);E.style.height=`${_e}px`,r.dataTransfer.setDragImage(E,H,j);}),T(b$2(g$2(r)),"drop",E=>{E.preventDefault(),E.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");},{once:true}),n.x=r.clientX,n.y=r.clientY;let I=g$2(r);requestAnimationFrame(()=>{K(I);});},u=r=>{r.stopPropagation(),!(r.clientX===n.x&&r.clientY===n.y)&&(typeof a.onDragMove=="function"&&a.onDragMove({type:"dragmove",x:r.clientX,y:r.clientY}),n.x=r.clientX,n.y=r.clientY);},c=r$1=>{if(r$1.stopPropagation(),typeof a.onDragEnd=="function"){let y={type:"dragend",x:r$1.clientX,y:r$1.clientY,dropOperation:c$2[r$1.dataTransfer.dropEffect]};r&&(y.dropOperation=c$2[r]),a.onDragEnd(y);}K(null),O(),t(0),s(void 0);};useEffect(()=>()=>{if(v.current&&(!v.current.isConnected||parseInt(version,10)<17)){if(typeof n.options.onDragEnd=="function"){let r$1={type:"dragend",x:0,y:0,dropOperation:c$2[r||"none"]};n.options.onDragEnd(r$1);}K(null),t(0),s(void 0);}},[n]);let s$1=r=>{r.pointerType!=="keyboard"&&r.pointerType!=="virtual"||m(r.target);},m=r=>{if(typeof n.options.onDragStart=="function"){let y=r.getBoundingClientRect();n.options.onDragStart({type:"dragstart",x:y.x+y.width/2,y:y.y+y.height/2});}w({element:r,items:n.options.getItems(),allowedDropOperations:typeof n.options.getAllowedDropOperations=="function"?n.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(y){K(null),typeof n.options.onDragEnd=="function"&&n.options.onDragEnd(y);}},g),K(r);},D=i(),i$1=d?Ve[D].end:Ve[D].start,l=a$1(g.format(i$1),t$1),f={};return e||(f={...l,onPointerDown(r){if(p.current=m$1(r.nativeEvent)?"virtual":r.pointerType,r.width<1&&r.height<1)p.current="virtual";else {let y=r.currentTarget.getBoundingClientRect(),w=r.clientX-y.x,P=r.clientY-y.y,I=y.width/2,E=y.height/2;Math.abs(w-I)<=.5&&Math.abs(P-E)<=.5?p.current="virtual":p.current=r.pointerType;}},onKeyDownCapture(r){g$2(r)===r.currentTarget&&r.key==="Enter"&&(r.preventDefault(),r.stopPropagation());},onKeyUpCapture(r){g$2(r)===r.currentTarget&&r.key==="Enter"&&(r.preventDefault(),r.stopPropagation(),m(g$2(r)));},onClick(r){(l$1(r.nativeEvent)||p.current==="virtual")&&(r.preventDefault(),r.stopPropagation(),m(g$2(r)));}}),o?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:false}:{dragProps:{...f,draggable:"true",onDragStart:b,onDrag:u,onDragEnd:c},dragButtonProps:{...l,onPress:s$1},isDragging:d}}var it={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function at(a,e,o){let t=b$1(z,"@react-aria/dnd"),g=e.isDisabled||e.selectionManager.isDisabled(a.key),{dragProps:n$1,dragButtonProps:v}=Ye({elementRef:o,getItems(){return e.getItems(a.key)},preview:e.preview,getAllowedDropOperations:e.getAllowedDropOperations,hasDragButton:a.hasDragButton,onDragStart(u){e.startDrag(a.key,u),n(e.draggingKeys);},onDragMove(u){e.moveDrag(u);},onDragEnd(u){let{dropOperation:c}=u,s=c==="cancel"?false:q();e.endDrag({...u,keys:e.draggingKeys,isInternal:s}),p();}}),d=e.collection.getItem(a.key),h=e.getKeysForDrag(a.key).size,K=h>1&&e.selectionManager.isSelected(a.key),T,O,p$1=i();if(!a.hasDragButton&&e.selectionManager.selectionMode!=="none"){let u=it[p$1][K?"selected":"notSelected"];a.hasAction&&p$1==="keyboard"&&(u+="Alt"),K?O=t.format(u,{count:h}):O=t.format(u),delete n$1.onClick;}else if(K)T=t.format("dragSelectedItems",{count:h});else {let u=e.collection.getTextValue?.(a.key)??d?.textValue??"";T=t.format("dragItem",{itemText:u});}let b=a$1(O,o);if(O&&Object.assign(n$1,b),!a.hasDragButton&&a.hasAction){let{onKeyDownCapture:u,onKeyUpCapture:c}=n$1;p$1==="touch"&&delete n$1["aria-describedby"],n$1.onKeyDownCapture=s=>{s.altKey&&u?.(s);},n$1.onKeyUpCapture=s=>{s.altKey&&c?.(s);};}return {dragProps:g?{}:n$1,dragButtonProps:{...v,isDisabled:g,"aria-label":T}}}function pt(a,e,o){let{draggingCollectionRef:t}=l;e.draggingKeys.size>0&&t?.current!==o.current&&m(o);}function gt(a){let{getItems:e,isDisabled:o,collection:t,selectionManager:g,onDragStart:n,onDragMove:v,onDragEnd:d,preview:h,getAllowedDropOperations:K}=a,[,T]=useState(false),O=useRef(new Set),p=useRef(null),b=u=>{let c=new Set;if(g.isSelected(u))for(let s of g.selectedKeys){let m=t.getItem(s);if(m){let D=false,i=m.parentKey;for(;i!=null;){if(g.selectedKeys.has(i)){D=true;break}let l=t.getItem(i);i=l?l.parentKey:null;}D||c.add(s);}}else c.add(u);return c};return {collection:t,selectionManager:g,get draggedKey(){return p.current},get draggingKeys(){return O.current},isDragging(u){return O.current.has(u)},getKeysForDrag:b,getItems(u){let c=b(u),s=[];for(let m of c){let D=t.getItem(m)?.value;D!=null&&s.push(D);}return e(b(u),s)},isDisabled:o,preview:h,getAllowedDropOperations:K,startDrag(u,c){let s=b(u);O.current=s,p.current=u,g.setFocused(false),T(true),typeof n=="function"&&n({...c,keys:s});},moveDrag(u){typeof v=="function"&&v({...u,keys:O.current});},endDrag(u){let{isInternal:c}=u;typeof d=="function"&&d({...u,keys:O.current,isInternal:c}),O.current=new Set,p.current=null,T(false);}}}function ft(a){let{acceptedDragTypes:e="all",isDisabled:o,onInsert:t,onRootDrop:g,onItemDrop:n,onReorder:v,onMove:d,shouldAcceptItemDrop:h,collection:K,selectionManager:T,onDropEnter:O,getDropOperation:p,onDrop:b}=a,[u,c]=useState(null),s=useRef(null),m=i=>{if(i.dropPosition==="before"){let l=K.getItem(i.key);return l&&l.prevKey!=null?{type:"item",key:l.prevKey,dropPosition:"after"}:null}else if(i.dropPosition==="after"){let l=K.getItem(i.key);return l&&l.nextKey!=null?{type:"item",key:l.nextKey,dropPosition:"before"}:null}return null},D=useCallback(i=>{let{target:l,types:f,allowedOperations:r,isInternal:y,draggingKeys:w}=i;if(o||!l)return "cancel";if(e==="all"||e.some(P=>f.has(P))){let P=t&&l.type==="item"&&!y&&(l.dropPosition==="before"||l.dropPosition==="after"),I=v&&l.type==="item"&&y&&(l.dropPosition==="before"||l.dropPosition==="after")&&yt(K,l,w),E=l.type!=="item"||l.dropPosition!=="on"||!h||h(l,f),C=d&&l.type==="item"&&y&&E,N=g&&l.type==="root"&&!y,x=n&&l.type==="item"&&l.dropPosition==="on"&&!(y&&l.key!=null&&w.has(l.key))&&E;if(b||P||I||C||N||x)return p?p(l,f,r):r[0]}return "cancel"},[o,K,e,p,t,g,n,h,v,d,b]);return {collection:K,selectionManager:T,isDisabled:o,target:u,setTarget(i){if(this.isDropTarget(i))return;let l=s.current;l&&typeof a.onDropExit=="function"&&a.onDropExit({type:"dropexit",x:0,y:0,target:l}),i&&typeof O=="function"&&O({type:"dropenter",x:0,y:0,target:i}),s.current=i??null,c(i??null);},isDropTarget(i){let l=s.current;return !l||!i?false:pe(i,l)?true:i?.type==="item"&&l?.type==="item"&&i.key!==l.key&&i.dropPosition!==l.dropPosition&&i.dropPosition!=="on"&&l.dropPosition!=="on"?pe(m(i),l)||pe(i,m(l)):false},getDropOperation(i){let{target:l,isInternal:f,draggingKeys:r}=i;if(f&&l.type==="item"&&r.size>0){if(r.has(l.key)&&l.dropPosition==="on")return "cancel";let y=l.key;for(;y!=null;){let P=K.getItem(y)?.parentKey;if(P!=null&&r.has(P))return "cancel";y=P??null;}}return D(i)}}}function pe(a,e){if(!a)return !e;switch(a.type){case "root":return e?.type==="root";case "item":return e?.type==="item"&&e?.key===a.key&&e?.dropPosition===a.dropPosition}}function yt(a,e,o){let t=a.getItem(e.key);for(let g of o)if(a.getItem(g)?.parentKey!==t?.parentKey)return false;return true}var se=class{collection;ref;layout;orientation;direction;constructor(e,o,t){this.collection=e,this.ref=o,this.layout=t?.layout||"stack",this.orientation=t?.orientation||"vertical",this.direction=t?.direction||"ltr";}getPrimaryStart(e){return this.orientation==="horizontal"?e.left:e.top}getPrimaryEnd(e){return this.orientation==="horizontal"?e.right:e.bottom}getSecondaryStart(e){return this.orientation==="horizontal"?e.top:e.left}getSecondaryEnd(e){return this.orientation==="horizontal"?e.bottom:e.right}getFlowStart(e){return this.layout==="stack"?this.getPrimaryStart(e):this.getSecondaryStart(e)}getFlowEnd(e){return this.layout==="stack"?this.getPrimaryEnd(e):this.getSecondaryEnd(e)}getFlowSize(e){return this.getFlowEnd(e)-this.getFlowStart(e)}getDropTargetFromPoint(e,o,t){if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return {type:"root"};let g=this.ref.current.getBoundingClientRect(),n=this.orientation==="horizontal"?e:o,v=this.orientation==="horizontal"?o:e;n+=this.getPrimaryStart(g),v+=this.getSecondaryStart(g);let d=this.layout==="stack"?n:v,h=this.orientation==="horizontal"&&this.direction==="rtl",K=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",T=this.layout==="stack"?h:K,O=this.ref.current?.dataset.collection,p=this.ref.current.querySelectorAll(O?`[data-collection="${CSS.escape(O)}"]`:"[data-key]"),b=new Map,u=b$2(this.ref.current);for(let l of p)l instanceof u.HTMLElement&&l.dataset.key!=null&&b.set(l.dataset.key,l);let c=[...this.collection].filter(l=>l.type==="item");if(c.length<1)return {type:"root"};let s=0,m=c.length;for(;s<m;){let l=Math.floor((s+m)/2),f=c[l],r=b.get(String(f.key));if(!r)break;let y=r.getBoundingClientRect(),w=P=>{P?s=l+1:m=l;};if(n<this.getPrimaryStart(y))w(h);else if(n>this.getPrimaryEnd(y))w(!h);else if(v<this.getSecondaryStart(y))w(K);else if(v>this.getSecondaryEnd(y))w(!K);else {let P={type:"item",key:f.key,dropPosition:"on"};if(t(P))d<=this.getFlowStart(y)+5&&t({...P,dropPosition:"before"})?P.dropPosition=T?"after":"before":d>=this.getFlowEnd(y)-5&&t({...P,dropPosition:"after"})&&(P.dropPosition=T?"before":"after");else {let I=this.getFlowStart(y)+this.getFlowSize(y)/2;d<=I&&t({...P,dropPosition:"before"})?P.dropPosition=T?"after":"before":d>=I&&t({...P,dropPosition:"after"})&&(P.dropPosition=T?"before":"after");}return P}}let D=c[Math.min(s,c.length-1)];return g=b.get(String(D.key))?.getBoundingClientRect(),g&&(n<this.getPrimaryStart(g)||Math.abs(d-this.getFlowStart(g))<Math.abs(d-this.getFlowEnd(g)))?{type:"item",key:D.key,dropPosition:T?"after":"before"}:{type:"item",key:D.key,dropPosition:T?"before":"after"}}};export{tt as a,ie as b,rt as c,at as d,pt as e,Ze as f,gt as g,ft as h,se as i};
@@ -1,10 +0,0 @@
1
- import {c as c$1}from'./chunk-7VHON5HL.mjs';import {I}from'./chunk-GS4C6CYA.mjs';import {a as a$1}from'./chunk-SNQDFFKP.mjs';import {a}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-ULCYKB34.mjs';import {a as a$4}from'./chunk-VDUFLHKK.mjs';import {e}from'./chunk-BGMVPFYK.mjs';import {a as a$3}from'./chunk-KEVERVHK.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {sprinkles}from'@baseline-ui/tokens';import M,{useMemo,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var g="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",B="_1yep5z61sj _1yep5z61sk _1yep5z61sl _1yep5z61ih _1yep5z61ii _1yep5z61ij";var O=M.forwardRef(({className:c$2,style:a$4,items:l,optionsContainerClassName:m,label:e,icon:t,value:p,defaultValue:s,onChange:d,isDisabled:f,optionClassName:R,optionStyle:j,labelPosition:u="top","data-block-id":T,"data-block-class":v,shouldFocusWrap:L,tooltip:D=true,...i},F)=>{let P=useMemo(()=>l.map(o=>({id:o.color,label:o.label})),[l]),b=c();return useEffect(()=>{!e&&!i["aria-label"]&&!i["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[e,i]),jsxs(a,{...a$3(i),className:a$2("BaselineUI-ColorSwatchPicker",c$2),"data-block-id":T,"data-block-class":v,display:"flex",flexDirection:u==="top"?"column":"row",alignItems:u==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:a$4,ref:F,children:[t||e?jsxs(a,{display:"flex",alignItems:"center",gap:"md",children:[t?jsx(t,{"aria-hidden":"true",size:24,className:sprinkles({color:"icon.primary"})}):null,e?jsx(a$1,{id:b,type:"label",size:"sm",children:e}):null]}):null,jsx(c$1,{className:a$2(B,m),selectionMode:"single",items:P,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:f?P.map(o=>o.id):void 0,isDisabled:f,selectedKeys:p?[p]:void 0,onSelectionChange:o=>{d?.([...o][0]);},optionClassName:R,optionStyle:j,renderOption:(...o)=>q(...o,D),shouldFocusWrap:L,...i,"aria-labelledby":e?b:i["aria-labelledby"]})]})});O.displayName="ColorSwatchPicker";var q=({key:c,textValue:a},{isSelected:l,isFocusVisible:m,isDisabled:e$1,optionProps:t},p,s)=>{let{tooltipProps:d}=a$4({label:a,tooltip:s});return jsx(a$5,{...d,children:jsx(e,{children:jsx("li",{...t,"data-disabled":e$1,className:a$2(g,t.className),ref:p,children:jsx(I,{isFocusVisible:m,color:c,isSelected:l,"aria-label":a,isInteractive:true,isDisabled:e$1,tooltip:false})})})})};export{O as a};
@@ -1,10 +0,0 @@
1
- import {a}from'./chunk-22BJMDCA.mjs';import {a as a$1}from'./chunk-JDLUGVXG.mjs';import {b}from'./chunk-AUOQSTS5.mjs';import {breakpoints}from'@baseline-ui/tokens';import m,{useContext,useMemo,useCallback}from'react';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- function x(o){let{breakpoints:n=breakpoints}=useContext(a),r=useMemo(()=>({tablet:`screen and (min-width: ${n.tablet}px)`,desktop:`screen and (min-width: ${n.desktop}px)`}),[n]),s=useCallback(()=>{let e=b(typeof window>"u"?void 0:o),t=e.matchMedia(r.tablet);return e.matchMedia(r.desktop).matches?"desktop":t.matches?"tablet":"mobile"},[o,r]),[a$2,p]=m.useState(s);return a$1(()=>{let e=b(o),t=()=>{p(s());};return e.addEventListener("resize",t),t(),()=>{e.removeEventListener("resize",t);}},[o,s]),a$2}export{x as a};
@@ -1,10 +0,0 @@
1
- import {a as a$6}from'./chunk-EADUR7IC.mjs';import {a as a$b}from'./chunk-A24DWFQ2.mjs';import {a as a$a}from'./chunk-NGZRN4SF.mjs';import {b as b$1}from'./chunk-PAQQ7MQG.mjs';import {a as a$d}from'./chunk-6DU65N7Q.mjs';import {b as b$3,e}from'./chunk-MNAD5FJH.mjs';import {b,c as c$1}from'./chunk-GX2IOGYR.mjs';import {b as b$6}from'./chunk-WN6FAICZ.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {a as a$8}from'./chunk-TVENHRYC.mjs';import {a as a$4}from'./chunk-KUEDQO7P.mjs';import {b as b$5}from'./chunk-N2XGJKZG.mjs';import {b as b$7,j}from'./chunk-2HMLSXNO.mjs';import {a as a$7}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-PF3OQKXP.mjs';import {a as a$3}from'./chunk-BGMVPFYK.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,b as b$4}from'./chunk-TZ4MVY4E.mjs';import {b as b$2,a as a$2}from'./chunk-JDLUGVXG.mjs';import {b as b$8,f,a as a$c,e as e$1}from'./chunk-AUOQSTS5.mjs';import {a as a$9}from'./chunk-4QEH5CGK.mjs';import D,{useState,useRef,useCallback,useMemo,useEffect,createElement}from'react';import {MoreIcon}from'@baseline-ui/icons/24';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var Se=0,_="UNSUPPORTED_IN_MENU";function ge(e){return useMemo(()=>D.Children.toArray(e).map(t=>{let o=t,s=`item${++Se}`,n=R(o,b$7),i=be(o),c,m;if(n){let b=R(n,j);a$7(b),c=be(b),m=R(n,a$d).props.children;}else i?c=i:c=o;let{onPress:y,label:p,"aria-label":a,iconStart:f,isDisabled:E,icon:g}=c.props,u=p||a||_;a$7(typeof u=="string","ActionGroup children must have a string label");let v=`${s}-${u}`;return createElement(a$a,{...{key:v,onPress:y,textValue:u,"aria-label":a,icon:f||g,dialogContent:m,isDisabled:E},key:v},o)}),[e])}function R(e,t){if(t){for(let o of D.Children.toArray(e))if(D.isValidElement(o)){if(o.type===t)return o;if(o.props.children){let s=R(o.props.children,t);if(s)return s}}}}function be(e){return R(e,b$6)||R(e,a$8)}var _e=new Set(["text","search","password","tel","url"]);function L({props:e,ref:t}){let{toolbarProps:o}=a$b(e,t),{direction:s}=b$5(),n=s==="rtl";return {toolbarProps:{...o,onKeyDownCapture:i=>{let c=i.target,m=i.key,y=()=>{let p=t.current;if(!p)return;let a=f(a$c(p));if(!a||!e$1(p,a)||a.dataset.buiAvoidFocus!=="true")return;let f$1=Be(p),E=f$1.indexOf(a);if(E===-1)return;let g=ke({key:m,orientation:e.orientation??"horizontal",isRTL:n});if(!g)return;let u=E+g;for(;u>=0&&u<f$1.length;){let v=f$1[u];if(v.dataset.buiAvoidFocus!=="true"&&!v.matches('[disabled], [aria-disabled="true"]')){v.focus();return}u+=g;}};if(He(c)&&_e.has(c.type)){let p=c.selectionStart===0,a=c.selectionEnd===c.value.length;(p&&(n&&i.key==="ArrowRight"||!n&&i.key==="ArrowLeft")||a&&(n&&i.key==="ArrowLeft"||!n&&i.key==="ArrowRight"))&&(o.onKeyDownCapture?.(i),y());return}o.onKeyDownCapture?.(i),y();}}}}function ke({key:e,orientation:t,isRTL:o}){return t==="vertical"?e==="ArrowUp"?-1:e==="ArrowDown"?1:null:e==="ArrowLeft"?o?1:-1:e==="ArrowRight"?o?-1:1:null}var Oe='button, [role="button"], input, [tabindex]';function Be(e){let t=[],o=s=>{t.push(...s.querySelectorAll(Oe));for(let n of s.querySelectorAll("*"))n.shadowRoot&&o(n.shadowRoot);};return o(e),t}function He(e){return e.tagName.toLowerCase()==="input"}var ye="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6m3 _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6lv",ve={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var O=D.forwardRef(({className:e$1,style:t,children:o,collapsibleMenuProps:s,"data-block-id":n,"data-block-class":i,renderSpacer:c$1,onKeyDown:m,isSingleTabStop:y=true,moreLabel:p,...a$9},f)=>{let{formatMessage:E}=b(),[g,u]=useState(),v=ge(o),d=b$1({...a$9,children:v}),b$4=a(f),M=useRef(null),[{visibleItems:H,isMeasuring:V},U]=b$2({visibleItems:d.collection.size,isMeasuring:false}),x=useCallback(()=>{let r=l=>{if(M.current&&b$4.current){let T=[...M.current.children],z=b$4.current.getBoundingClientRect().width,Le=l<d.collection.size,S=0,j=0;if(Le){let C=T.pop();C&&(S+=we(C,false,true));}for(let[C,xe]of T.entries())if(S+=we(xe,C===0,C===T.length-1),Math.round(S)<=Math.round(z))j++;else break;return j}return l};U(function*(){yield {visibleItems:d.collection.size,isMeasuring:true};let l=r(d.collection.size),T=l<d.collection.size&&l>0;yield {visibleItems:l,isMeasuring:T},T&&(yield {visibleItems:r(l),isMeasuring:false});});},[U,b$4,d.collection.size]),Me=useMemo(()=>({get current(){return b$4.current?.parentElement}}),[b$4]);a$1({ref:Me,onResize:x}),a$2(x,[d.collection,x]);let{toolbarProps:Ae}=L({props:{...a$9,isSingleTabStop:y},ref:b$4}),W=[...d.collection],Ie=W.slice(0,H),A=W.slice(H).filter(r=>r.textValue!==_),Pe=A.length>0;useEffect(()=>{u(void 0);},[A.length]),useEffect(()=>{a$9.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[a$9.orientation]);let{keyboardProps:Ne}=a$3({onKeyDown:m});return jsxs(a$4,{children:[jsx("div",{...c(Ae,Ne),className:e$1,"data-block-id":n,"data-block-class":i,"data-collapse":true,style:{...t,flexBasis:V?"100%":void 0},ref:b$4,children:jsxs("div",{ref:M,className:ye,children:[Ie.map(r=>r.rendered),Pe?jsxs(Fragment,{children:[!V&&c$1?jsx(a$5,{flexGrow:1}):null,jsx(a$6,{placement:"bottom end",renderTrigger:({buttonProps:r,ref:l})=>jsx(a$8,{...r,size:"md",icon:MoreIcon,"aria-label":p??E(Je.more),variant:"toolbar",ref:l,tooltip:true}),...s,disabledKeys:A.filter(r=>r.props?.isDisabled).map(r=>r.key),items:A.map(r=>{let l=r.textValue||r["aria-label"];return a$7(l,"ActionItem must have a label"),{id:r.key,label:l,icon:r.props.icon}}),onAction:r=>{let l=d.collection.getItem(r);a$7(l,"Item not found");let{onPress:T,dialogContent:z}=l.props;T?.(),u(z);}})]}):null]})}),jsx(b$3,{isOpen:!!g,onOpenChange:r=>{r||u(void 0);},children:jsx(e,{enableDrawer:"auto",style:{zIndex:1e5},children:g?D.cloneElement(g,{inheritDrawer:true}):null})})]})});O.displayName="CollapsibleToolbar";function we(e,t,o){let n=b$8(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:Re(n.marginLeft))+(o?0:Re(n.marginRight))}function Re(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var Je=c$1({more:{id:"bui.toolbar.more",defaultMessage:"More"}});var B=D.forwardRef(({className:e,style:t,isSingleTabStop:o=true,"data-block-id":s,"data-block-class":n,"aria-controls":i,onKeyDown:c$1,...m},y)=>{let p=D.useRef(null),{toolbarProps:a}=L({props:{...m,isSingleTabStop:o},ref:p}),{keyboardProps:f}=a$3({onKeyDown:c$1});return jsx("div",{...c(a,f),...i?{"aria-controls":i}:{},className:a$9(ve[m.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":s,"data-block-class":n,ref:b$4(y,p),children:m.children})});B.displayName="WrappedToolbar";var Ce=D.forwardRef((e,t)=>{let o=e.isCollapsible?O:B;return jsx(o,{...e,ref:t})});Ce.displayName="Toolbar";export{Ce as a};
File without changes
File without changes