@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.
- package/dist/Accordion.css +1 -1
- package/dist/Accordion.mjs +1 -1
- package/dist/ActionButton.css +1 -1
- package/dist/ActionButton.mjs +1 -1
- package/dist/ActionGroup.css +1 -1
- package/dist/ActionGroup.mjs +1 -1
- package/dist/ActionIconButton.css +1 -1
- package/dist/ActionIconButton.mjs +1 -1
- package/dist/Actionable.mjs +1 -1
- package/dist/AlertDialog.css +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.css +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Avatar.mjs +1 -1
- package/dist/ButtonSelect.css +1 -1
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.css +1 -1
- package/dist/Calendar.mjs +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ColorInput.css +1 -1
- package/dist/ColorInput.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.css +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.css +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/DateFormat.mjs +1 -1
- package/dist/Dialog.css +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/DomNodeRenderer.mjs +1 -1
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.mjs +1 -1
- package/dist/Editor.css +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileInput.css +1 -1
- package/dist/FileInput.mjs +1 -1
- package/dist/FileList.css +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.css +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FrameProvider.mjs +1 -1
- package/dist/FreehandCanvas.css +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/Group.mjs +1 -1
- package/dist/I18nProvider.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/ImageDropZone.css +1 -1
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.css +1 -1
- package/dist/ImageGallery.mjs +1 -1
- package/dist/InlineAlert.css +1 -1
- package/dist/InlineAlert.mjs +1 -1
- package/dist/InlineToolbar.mjs +2 -2
- package/dist/Kbd.mjs +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/ListBox.mjs +1 -1
- package/dist/Menu.css +1 -1
- package/dist/Menu.mjs +1 -1
- package/dist/MessageFormat.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberFormat.mjs +1 -1
- package/dist/NumberInput.css +1 -1
- package/dist/NumberInput.mjs +1 -1
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.mjs +1 -1
- package/dist/Panel.mjs +1 -1
- package/dist/PointPicker.mjs +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.mjs +1 -1
- package/dist/Preview.css +1 -1
- package/dist/Preview.mjs +1 -1
- package/dist/ProgressBar.mjs +1 -1
- package/dist/ProgressSpinner.mjs +1 -1
- package/dist/RadioGroup.mjs +1 -1
- package/dist/Reaction.mjs +1 -1
- package/dist/ScrollControlButton.mjs +1 -1
- package/dist/SearchInput.css +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.css +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Separator.mjs +1 -1
- package/dist/Slider.css +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/StatusCard.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.css +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/TagGroup.mjs +1 -1
- package/dist/TaggedPagination.css +1 -1
- package/dist/TaggedPagination.mjs +1 -1
- package/dist/Text.mjs +1 -1
- package/dist/TextInput.mjs +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/TimeField.mjs +1 -1
- package/dist/Toast.css +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/ToggleButton.css +1 -1
- package/dist/ToggleButton.mjs +1 -1
- package/dist/ToggleIconButton.mjs +1 -1
- package/dist/Toolbar.css +1 -1
- package/dist/Toolbar.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TreeView.css +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/Virtualizer.mjs +1 -1
- package/dist/{chunk-UUBOEBYZ.mjs → chunk-22MA6EYO.mjs} +1 -1
- package/dist/{chunk-3UH5CQQF.mjs → chunk-22VRCVTH.mjs} +2 -2
- package/dist/chunk-235S3EB7.mjs +10 -0
- package/dist/chunk-24R46WQW.mjs +10 -0
- package/dist/chunk-2F3CFR22.mjs +10 -0
- package/dist/{chunk-CHTLOFCT.mjs → chunk-2JGVUCP5.mjs} +1 -1
- package/dist/{chunk-4SBMUWOY.mjs → chunk-2LFMBQKQ.mjs} +2 -2
- package/dist/{chunk-TK4QXU3W.mjs → chunk-2VOWBYNS.mjs} +1 -1
- package/dist/{chunk-TO2TQ2LE.mjs → chunk-335C37NB.mjs} +1 -1
- package/dist/{chunk-DAN5WASP.mjs → chunk-36ZMHBG5.mjs} +2 -2
- package/dist/chunk-3BEG3MEX.mjs +10 -0
- package/dist/chunk-3BG6K2G2.mjs +10 -0
- package/dist/{chunk-SNQDFFKP.mjs → chunk-3DWFAHR2.mjs} +1 -1
- package/dist/{chunk-FOEGHU3P.mjs → chunk-3KCSUNRV.mjs} +1 -1
- package/dist/{chunk-TZ4MVY4E.mjs → chunk-3WKDIXCM.mjs} +1 -1
- package/dist/chunk-4AG2RUAZ.mjs +10 -0
- package/dist/{chunk-7OCDKTTZ.mjs → chunk-4EANTENO.mjs} +1 -1
- package/dist/{chunk-JJPCZOOI.mjs → chunk-4EAXDHSV.mjs} +2 -2
- package/dist/{chunk-UQJGSVXP.mjs → chunk-4I7K4CCG.mjs} +2 -2
- package/dist/{chunk-QR2AF3KT.mjs → chunk-4JQUB53Q.mjs} +1 -1
- package/dist/chunk-4MHBLLHV.mjs +11 -0
- package/dist/chunk-4P247R4V.mjs +10 -0
- package/dist/{chunk-RXSYDMT6.mjs → chunk-4QBHQCCK.mjs} +2 -2
- package/dist/chunk-4RSUKS23.mjs +10 -0
- package/dist/chunk-4S4GGUSH.mjs +10 -0
- package/dist/chunk-4W5VP4NV.mjs +10 -0
- package/dist/chunk-5BKC373Y.mjs +10 -0
- package/dist/chunk-5FK5AJ7A.mjs +10 -0
- package/dist/{chunk-FWAK2OZM.mjs → chunk-5KJF7IQN.mjs} +1 -1
- package/dist/{chunk-F2O4AP7P.mjs → chunk-5MUEJ5WI.mjs} +1 -1
- package/dist/{chunk-XZSDCUID.mjs → chunk-5SHHWKFM.mjs} +1 -1
- package/dist/{chunk-WAOWR7MR.mjs → chunk-5USQ6HBY.mjs} +1 -1
- package/dist/{chunk-4DTPDMSQ.mjs → chunk-5VNC6UYE.mjs} +2 -2
- package/dist/chunk-5ZC64ZG7.mjs +10 -0
- package/dist/{chunk-246VHB32.mjs → chunk-6G7EUNZW.mjs} +1 -1
- package/dist/chunk-6QQEK5I6.mjs +10 -0
- package/dist/chunk-76DKF2SK.mjs +10 -0
- package/dist/{chunk-4BYKAG4W.mjs → chunk-7L5UOGZA.mjs} +1 -1
- package/dist/chunk-7MMO7S3R.mjs +10 -0
- package/dist/{chunk-HDVWQ6RL.mjs → chunk-7P7VZMTO.mjs} +1 -1
- package/dist/{chunk-CFLEBB5T.mjs → chunk-7SKQUEHP.mjs} +1 -1
- package/dist/chunk-7SQRBY7N.mjs +10 -0
- package/dist/chunk-7TE4MFKC.mjs +10 -0
- package/dist/chunk-7XGNJE7J.mjs +10 -0
- package/dist/{chunk-UCQJ6FJO.mjs → chunk-AD3MLX6G.mjs} +1 -1
- package/dist/chunk-AELTF2DE.mjs +10 -0
- package/dist/chunk-AI6WQPRX.mjs +10 -0
- package/dist/chunk-AK7XHUQW.mjs +10 -0
- package/dist/chunk-AM5FU4Y7.mjs +10 -0
- package/dist/chunk-AYQN3OH2.mjs +10 -0
- package/dist/chunk-B3EZOXNU.mjs +10 -0
- package/dist/chunk-BBYODNBO.mjs +10 -0
- package/dist/chunk-BGQRLALS.mjs +10 -0
- package/dist/chunk-BGRGRUG4.mjs +10 -0
- package/dist/chunk-BHJCYKFJ.mjs +11 -0
- package/dist/{chunk-K6MB234H.mjs → chunk-BIDNNBRG.mjs} +1 -1
- package/dist/{chunk-RBZ7SIZR.mjs → chunk-BROSGYL3.mjs} +1 -1
- package/dist/chunk-BTPAZDGG.mjs +10 -0
- package/dist/{chunk-TNU3YDGL.mjs → chunk-BXNNVZOQ.mjs} +1 -1
- package/dist/chunk-BYDJXA5A.mjs +10 -0
- package/dist/chunk-C2VP5IEB.mjs +10 -0
- package/dist/{chunk-I3YGB2BE.mjs → chunk-C4WHTPLY.mjs} +2 -2
- package/dist/chunk-CIPPPD6E.mjs +10 -0
- package/dist/{chunk-EU75HMPG.mjs → chunk-CLGLEEFO.mjs} +2 -2
- package/dist/{chunk-MXKP7NQ4.mjs → chunk-COHK4QQW.mjs} +2 -2
- package/dist/chunk-CTSDHAAV.mjs +10 -0
- package/dist/chunk-CU6D2EA6.mjs +10 -0
- package/dist/{chunk-SAZLJ66W.mjs → chunk-CY6W27WG.mjs} +1 -1
- package/dist/{chunk-34TYNTXM.mjs → chunk-D4NW56YQ.mjs} +1 -1
- package/dist/chunk-DAN62T2M.mjs +10 -0
- package/dist/{chunk-KAVZW4RV.mjs → chunk-DAS5QGJX.mjs} +1 -1
- package/dist/{chunk-PAQQ7MQG.mjs → chunk-DF2D7NE6.mjs} +1 -1
- package/dist/{chunk-H2E7GKGB.mjs → chunk-DSV6CCI6.mjs} +2 -2
- package/dist/{chunk-GX2IOGYR.mjs → chunk-DZDZZRWE.mjs} +1 -1
- package/dist/{chunk-3L7GTQXK.mjs → chunk-E22TWF63.mjs} +2 -2
- package/dist/{chunk-DRYSJSKA.mjs → chunk-E3FP4B25.mjs} +1 -1
- package/dist/chunk-ETM4MNG4.mjs +10 -0
- package/dist/chunk-EUVUJQ2Z.mjs +10 -0
- package/dist/chunk-F7WPMQ3P.mjs +16 -0
- package/dist/chunk-FOKMDEP7.mjs +10 -0
- package/dist/chunk-FPFGTGUC.mjs +10 -0
- package/dist/chunk-FPM5UJRF.mjs +10 -0
- package/dist/{chunk-TJEK54BW.mjs → chunk-G77E7EDE.mjs} +1 -1
- package/dist/chunk-GCBMNOA6.mjs +10 -0
- package/dist/chunk-GFKZXGWJ.mjs +10 -0
- package/dist/{chunk-CPSUI4IW.mjs → chunk-GFTIEY5K.mjs} +1 -1
- package/dist/{chunk-IVVZSESM.mjs → chunk-GL5GUKT7.mjs} +2 -2
- package/dist/chunk-GMALMQWI.mjs +10 -0
- package/dist/chunk-GQIS4QBN.mjs +10 -0
- package/dist/chunk-GUPSQSPC.mjs +0 -0
- package/dist/chunk-HH4VLTF3.mjs +10 -0
- package/dist/chunk-I7LPPUZS.mjs +10 -0
- package/dist/chunk-IEOHIOGL.mjs +10 -0
- package/dist/chunk-IHES52NR.mjs +10 -0
- package/dist/{chunk-AGYQLGBZ.mjs → chunk-IIURKT24.mjs} +1 -1
- package/dist/chunk-IUXXTORQ.mjs +10 -0
- package/dist/{chunk-XIXHGXIN.mjs → chunk-IVGNOQSQ.mjs} +1 -1
- package/dist/chunk-IWZXZ5LU.mjs +10 -0
- package/dist/{chunk-HXTAOYOD.mjs → chunk-IXRSSEHQ.mjs} +1 -1
- package/dist/chunk-J4OPD7OL.mjs +10 -0
- package/dist/{chunk-J7RVOP5G.mjs → chunk-JDIGAVFU.mjs} +1 -1
- package/dist/{chunk-NSC53QWT.mjs → chunk-JZXLV6JU.mjs} +1 -1
- package/dist/chunk-K4TTZX4T.mjs +10 -0
- package/dist/{chunk-4ZJMZB5B.mjs → chunk-K5RYVERS.mjs} +1 -1
- package/dist/chunk-K7VOXFSK.mjs +10 -0
- package/dist/{chunk-WL27JGVG.mjs → chunk-KG2EHFYA.mjs} +1 -1
- package/dist/chunk-KGS3UWPG.mjs +10 -0
- package/dist/{chunk-W3ZGXUFP.mjs → chunk-KJ6ZSO3I.mjs} +1 -1
- package/dist/{chunk-AMYRLAIC.mjs → chunk-KT4FTBJ2.mjs} +1 -1
- package/dist/chunk-KUDCYGII.mjs +10 -0
- package/dist/{chunk-YCI6BEXQ.mjs → chunk-KVIV5RTE.mjs} +1 -1
- package/dist/chunk-KX7WG3L4.mjs +10 -0
- package/dist/chunk-LJZ7ZS4C.mjs +10 -0
- package/dist/{chunk-BZTAFNPW.mjs → chunk-LPI2NIDI.mjs} +1 -1
- package/dist/{chunk-2HMLSXNO.mjs → chunk-MBRNO6IW.mjs} +1 -1
- package/dist/chunk-MDE2FQHX.mjs +10 -0
- package/dist/chunk-MFB3SWO7.mjs +29 -0
- package/dist/{chunk-J7K7I5U2.mjs → chunk-MIF6BAPG.mjs} +1 -1
- package/dist/chunk-MYJ733MN.mjs +10 -0
- package/dist/chunk-MZIQ27JP.mjs +10 -0
- package/dist/chunk-NJKSUI2F.mjs +10 -0
- package/dist/chunk-NKC4MIX3.mjs +10 -0
- package/dist/{chunk-XB657BXX.mjs → chunk-NMGKHMH3.mjs} +1 -1
- package/dist/{chunk-TDPODC62.mjs → chunk-NMSOOQB2.mjs} +1 -1
- package/dist/{chunk-GEZGEZAP.mjs → chunk-NQIZ3U7Q.mjs} +2 -2
- package/dist/chunk-NRQSR3G7.mjs +10 -0
- package/dist/{chunk-6Z6HOW6T.mjs → chunk-NUCSMH4S.mjs} +2 -2
- package/dist/chunk-NYCG264A.mjs +10 -0
- package/dist/chunk-NZNOHFLD.mjs +10 -0
- package/dist/chunk-O4DA3TPW.mjs +11 -0
- package/dist/{chunk-4PYEGHW5.mjs → chunk-O7IU5NHN.mjs} +2 -2
- package/dist/chunk-ONEE6UCM.mjs +10 -0
- package/dist/chunk-OQPYPKZV.mjs +10 -0
- package/dist/{chunk-F3HQNHR5.mjs → chunk-OYSOPCTA.mjs} +1 -1
- package/dist/chunk-OZMADP4Z.mjs +10 -0
- package/dist/chunk-P7BN7QDF.mjs +10 -0
- package/dist/chunk-PD5ZXNGT.mjs +10 -0
- package/dist/{chunk-WICBTAMY.mjs → chunk-PG3WDHSK.mjs} +1 -1
- package/dist/chunk-PMDRFB75.mjs +10 -0
- package/dist/chunk-PPHSLODC.mjs +10 -0
- package/dist/chunk-PYV5J322.mjs +11 -0
- package/dist/{chunk-TPNZG6FA.mjs → chunk-Q4SEEMIX.mjs} +1 -1
- package/dist/{chunk-IE3E4KQ6.mjs → chunk-Q6PGYMYI.mjs} +2 -2
- package/dist/chunk-QAAOC64D.mjs +10 -0
- package/dist/chunk-QJYPCVSD.mjs +10 -0
- package/dist/chunk-QU34XSML.mjs +10 -0
- package/dist/chunk-QUQ4VYCN.mjs +10 -0
- package/dist/chunk-R3HHMCE5.mjs +10 -0
- package/dist/chunk-R4MOUAJW.mjs +10 -0
- package/dist/{chunk-CGFLGZL4.mjs → chunk-R6TFTLMV.mjs} +1 -1
- package/dist/{chunk-H4ZIN7W3.mjs → chunk-R7R7JDA3.mjs} +2 -2
- package/dist/{chunk-2NO2ITVE.mjs → chunk-RO5ZRU3Y.mjs} +1 -1
- package/dist/{chunk-AV4ZP5SY.mjs → chunk-RPIUPWPO.mjs} +1 -1
- package/dist/chunk-RXSX2RKA.mjs +10 -0
- package/dist/{chunk-HT55YHTN.mjs → chunk-S2XIFW52.mjs} +2 -2
- package/dist/chunk-S4HLMIFK.mjs +10 -0
- package/dist/{chunk-FTYXFTJV.mjs → chunk-SBR5UAUY.mjs} +2 -2
- package/dist/chunk-SD43KVTU.mjs +10 -0
- package/dist/{chunk-YS3Y5KGV.mjs → chunk-SGZWUG3H.mjs} +2 -2
- package/dist/chunk-SLFKSR3T.mjs +10 -0
- package/dist/chunk-SLSJEMQ4.mjs +10 -0
- package/dist/{chunk-K6X2BHPP.mjs → chunk-STMDFIUL.mjs} +1 -1
- package/dist/chunk-SVIYLH7R.mjs +10 -0
- package/dist/chunk-SVTTHYTR.mjs +10 -0
- package/dist/{chunk-GXOXYPQQ.mjs → chunk-SVV6DLJH.mjs} +1 -1
- package/dist/chunk-SZCVQU55.mjs +10 -0
- package/dist/chunk-SZN2J2ER.mjs +10 -0
- package/dist/{chunk-RM2Y4D2M.mjs → chunk-SZTFMBPY.mjs} +1 -1
- package/dist/chunk-TAT552A5.mjs +10 -0
- package/dist/{chunk-IHLJTHGQ.mjs → chunk-TDYBXLYP.mjs} +1 -1
- package/dist/{chunk-ZNN43VZV.mjs → chunk-TFSBTGTQ.mjs} +2 -2
- package/dist/{chunk-ENDOKA57.mjs → chunk-TH4XPZEO.mjs} +1 -1
- package/dist/chunk-TSHZ7JSR.mjs +10 -0
- package/dist/{chunk-WN6FAICZ.mjs → chunk-TUJLNJPJ.mjs} +2 -2
- package/dist/chunk-TUY23KMK.mjs +10 -0
- package/dist/{chunk-LQMEFFFM.mjs → chunk-U3T5JTZ7.mjs} +1 -1
- package/dist/chunk-UDMNDUBO.mjs +10 -0
- package/dist/chunk-UFN2OAM2.mjs +10 -0
- package/dist/{chunk-ZLAY7NNY.mjs → chunk-UI2VBG26.mjs} +1 -1
- package/dist/chunk-UNGYVWKZ.mjs +10 -0
- package/dist/{chunk-545KDVGI.mjs → chunk-UO75BAPM.mjs} +2 -2
- package/dist/chunk-UUTMZQQA.mjs +15 -0
- package/dist/chunk-UZ672WDX.mjs +10 -0
- package/dist/chunk-VETO7WNN.mjs +10 -0
- package/dist/chunk-VGFPT43C.mjs +10 -0
- package/dist/{chunk-GKODQS6E.mjs → chunk-VJUBKX3W.mjs} +2 -2
- package/dist/{chunk-ODDEW5IV.mjs → chunk-W7OTSFZS.mjs} +1 -1
- package/dist/chunk-WHN2SEWO.mjs +10 -0
- package/dist/{chunk-6DU65N7Q.mjs → chunk-WTAJLO6E.mjs} +2 -2
- package/dist/{chunk-NVS22MIQ.mjs → chunk-X5Z54UUE.mjs} +1 -1
- package/dist/chunk-XD43CVDT.mjs +10 -0
- package/dist/{chunk-5KD2MNNX.mjs → chunk-XDTKLQJB.mjs} +1 -1
- package/dist/chunk-XMGPNXZH.mjs +10 -0
- package/dist/chunk-XWJJ4V3O.mjs +10 -0
- package/dist/{chunk-D3IZ4HBL.mjs → chunk-Y2MIU76N.mjs} +1 -1
- package/dist/chunk-YF63IQQR.mjs +10 -0
- package/dist/{chunk-2RCST7ET.mjs → chunk-YHI2PD3M.mjs} +1 -1
- package/dist/chunk-YMYMFVW4.mjs +10 -0
- package/dist/chunk-YPEAGD2G.mjs +10 -0
- package/dist/chunk-YQHHE5AT.mjs +10 -0
- package/dist/{chunk-UCNHDT36.mjs → chunk-YS3Z53YT.mjs} +2 -2
- package/dist/{chunk-OFWPRDTC.mjs → chunk-YU5NRJT6.mjs} +2 -2
- package/dist/{chunk-TEQE6WCH.mjs → chunk-ZFGTKLCU.mjs} +1 -1
- package/dist/{chunk-DECHIERQ.mjs → chunk-ZQOR4LCM.mjs} +1 -1
- package/dist/{chunk-ZAMDRHQY.mjs → chunk-ZZIQF6XD.mjs} +1 -1
- package/dist/hooks/useContainerScopedRef.mjs +1 -1
- package/dist/hooks/useDevice.mjs +1 -1
- package/dist/hooks/useI18n.mjs +1 -1
- package/dist/hooks/useIntersectionObserver.mjs +1 -1
- package/dist/hooks/useLiveInteractionModality.mjs +1 -1
- package/dist/hooks/useLocalStorage.mjs +1 -1
- package/dist/hooks/useMedia.mjs +1 -1
- package/dist/hooks/useMutationObserver.mjs +1 -1
- package/dist/hooks/usePortalContainer.mjs +1 -1
- package/dist/hooks/usePreventFocus.mjs +1 -1
- package/dist/hooks/useResizeObserver.mjs +1 -1
- package/dist/hooks/useTextSelection.mjs +1 -1
- package/dist/hooks/useUndoRedo.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +423 -199
- package/dist/index.js +21 -20
- package/dist/index.mjs +1 -1
- package/dist/react-aria.mjs +1 -1
- package/dist/react-stately.mjs +1 -1
- package/dist/utils/colors.mjs +1 -1
- package/dist/utils/dom.mjs +1 -1
- package/dist/utils/isInShadowDOM.mjs +1 -1
- package/dist/utils/keyboards.mjs +1 -1
- package/messages.json +1 -1
- package/package.json +6 -6
- package/sbom.json +27 -77
- package/dist/chunk-3BL5D3CA.mjs +0 -10
- package/dist/chunk-3FYY26ED.mjs +0 -10
- package/dist/chunk-3JL2TJZL.mjs +0 -10
- package/dist/chunk-3W6RWDIE.mjs +0 -10
- package/dist/chunk-47I3USMC.mjs +0 -10
- package/dist/chunk-4I4TIV2G.mjs +0 -10
- package/dist/chunk-4MRHG5IU.mjs +0 -10
- package/dist/chunk-4TAUFBXO.mjs +0 -10
- package/dist/chunk-55YEATL7.mjs +0 -10
- package/dist/chunk-5TDFLLMX.mjs +0 -10
- package/dist/chunk-63KRQW56.mjs +0 -10
- package/dist/chunk-66NJ7EYY.mjs +0 -10
- package/dist/chunk-6DGD7BZA.mjs +0 -10
- package/dist/chunk-6IRWW75G.mjs +0 -10
- package/dist/chunk-6Y6BYHT4.mjs +0 -10
- package/dist/chunk-6ZFBX7C7.mjs +0 -10
- package/dist/chunk-7PRJIPFA.mjs +0 -10
- package/dist/chunk-7VHON5HL.mjs +0 -10
- package/dist/chunk-A24DWFQ2.mjs +0 -10
- package/dist/chunk-AC7OXVHA.mjs +0 -10
- package/dist/chunk-AKES5B6C.mjs +0 -10
- package/dist/chunk-AL3FICFA.mjs +0 -10
- package/dist/chunk-AQYBKDT2.mjs +0 -16
- package/dist/chunk-AUOQSTS5.mjs +0 -10
- package/dist/chunk-AZRPXTYJ.mjs +0 -10
- package/dist/chunk-B7PSE5KC.mjs +0 -10
- package/dist/chunk-BGMVPFYK.mjs +0 -10
- package/dist/chunk-BJVFZYUV.mjs +0 -10
- package/dist/chunk-BU5H25MV.mjs +0 -10
- package/dist/chunk-C3W4WN2O.mjs +0 -10
- package/dist/chunk-C5P23FUW.mjs +0 -10
- package/dist/chunk-CAWUDHAE.mjs +0 -10
- package/dist/chunk-D5EEZT5J.mjs +0 -10
- package/dist/chunk-DSSMBDVA.mjs +0 -10
- package/dist/chunk-EA6GA4WC.mjs +0 -10
- package/dist/chunk-EADUR7IC.mjs +0 -10
- package/dist/chunk-EK3RIYMV.mjs +0 -10
- package/dist/chunk-EX2LI2CV.mjs +0 -10
- package/dist/chunk-F2X474RV.mjs +0 -10
- package/dist/chunk-G3K2DXNP.mjs +0 -10
- package/dist/chunk-GLT45FXJ.mjs +0 -10
- package/dist/chunk-GS4C6CYA.mjs +0 -10
- package/dist/chunk-HONWMHMX.mjs +0 -10
- package/dist/chunk-HZHAKW6I.mjs +0 -10
- package/dist/chunk-INDVRI57.mjs +0 -10
- package/dist/chunk-JDLUGVXG.mjs +0 -10
- package/dist/chunk-JF4BWG7T.mjs +0 -10
- package/dist/chunk-JQ4ZGZPV.mjs +0 -15
- package/dist/chunk-JUXBZ2ZN.mjs +0 -10
- package/dist/chunk-KEVERVHK.mjs +0 -10
- package/dist/chunk-KKJ6XIU3.mjs +0 -10
- package/dist/chunk-KLNQ24LT.mjs +0 -10
- package/dist/chunk-KPEONVLU.mjs +0 -10
- package/dist/chunk-KUEDQO7P.mjs +0 -10
- package/dist/chunk-KY3JKXSX.mjs +0 -10
- package/dist/chunk-LRZ6BQFQ.mjs +0 -10
- package/dist/chunk-LTIDSWDM.mjs +0 -10
- package/dist/chunk-LZFTBNPW.mjs +0 -10
- package/dist/chunk-M5M3EPG5.mjs +0 -10
- package/dist/chunk-MFH2E2GU.mjs +0 -10
- package/dist/chunk-MFNWPTNI.mjs +0 -10
- package/dist/chunk-MHUFXHRU.mjs +0 -10
- package/dist/chunk-MI7DCFP2.mjs +0 -10
- package/dist/chunk-MNAD5FJH.mjs +0 -10
- package/dist/chunk-MRJFGHFW.mjs +0 -10
- package/dist/chunk-MVK5CB64.mjs +0 -10
- package/dist/chunk-N53SGN23.mjs +0 -10
- package/dist/chunk-N7MTFSWR.mjs +0 -10
- package/dist/chunk-O66FNQSB.mjs +0 -10
- package/dist/chunk-OAY74XPB.mjs +0 -10
- package/dist/chunk-OC42IZG2.mjs +0 -10
- package/dist/chunk-OHZK2ZDA.mjs +0 -10
- package/dist/chunk-OMT6ZWSV.mjs +0 -11
- package/dist/chunk-PDWICYVZ.mjs +0 -29
- package/dist/chunk-PF3OQKXP.mjs +0 -10
- package/dist/chunk-PFKPY3N7.mjs +0 -10
- package/dist/chunk-Q4BSQC65.mjs +0 -10
- package/dist/chunk-QKKV24WQ.mjs +0 -10
- package/dist/chunk-QQGK5M66.mjs +0 -10
- package/dist/chunk-RCBUNCHV.mjs +0 -10
- package/dist/chunk-RFTDIXEG.mjs +0 -10
- package/dist/chunk-RRB5F4E4.mjs +0 -11
- package/dist/chunk-RWHDD6Z7.mjs +0 -10
- package/dist/chunk-RZEGMPV2.mjs +0 -11
- package/dist/chunk-SMAYNDQQ.mjs +0 -10
- package/dist/chunk-T2XIDX6U.mjs +0 -10
- package/dist/chunk-TBDKTTIY.mjs +0 -10
- package/dist/chunk-TDXALNX3.mjs +0 -10
- package/dist/chunk-THRAJMLX.mjs +0 -10
- package/dist/chunk-TIHKHXTS.mjs +0 -10
- package/dist/chunk-TKQOQVZD.mjs +0 -10
- package/dist/chunk-TO6OQF2Y.mjs +0 -10
- package/dist/chunk-TVENHRYC.mjs +0 -10
- package/dist/chunk-UCZZLAPB.mjs +0 -10
- package/dist/chunk-ULCYKB34.mjs +0 -10
- package/dist/chunk-UOMNE4F4.mjs +0 -10
- package/dist/chunk-V3L4SVVF.mjs +0 -10
- package/dist/chunk-VDSLDZLT.mjs +0 -10
- package/dist/chunk-VJ3SWDRJ.mjs +0 -10
- package/dist/chunk-WA35CT3D.mjs +0 -10
- package/dist/chunk-WRQ4FPJE.mjs +0 -10
- package/dist/chunk-WWSGOGLA.mjs +0 -10
- package/dist/chunk-X3AXUU3H.mjs +0 -10
- package/dist/chunk-XCL4K4MY.mjs +0 -10
- package/dist/chunk-XTH6B5FE.mjs +0 -10
- package/dist/chunk-XWLESSHN.mjs +0 -10
- package/dist/chunk-Y4DRSGEJ.mjs +0 -10
- package/dist/chunk-YB3KW7JC.mjs +0 -10
- package/dist/chunk-YIGT3OP2.mjs +0 -10
- package/dist/chunk-YVYMYKYN.mjs +0 -10
- package/dist/chunk-ZFLLIBX5.mjs +0 -10
- package/dist/chunk-ZGRRD3TU.mjs +0 -10
- package/dist/chunk-ZP4YB5RP.mjs +0 -10
- /package/dist/{chunk-FKYHERP4.mjs → chunk-3K2H3JOE.mjs} +0 -0
- /package/dist/{chunk-FXCHST4Z.mjs → chunk-JQQGRJ5J.mjs} +0 -0
package/dist/chunk-TBDKTTIY.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$9}from'./chunk-TEQE6WCH.mjs';import {a as a$3}from'./chunk-GXOXYPQQ.mjs';import {a as a$b,b as b$3}from'./chunk-ZNN43VZV.mjs';import {b as b$6,c as c$5}from'./chunk-EK3RIYMV.mjs';import {a as a$2}from'./chunk-AMYRLAIC.mjs';import {i,l,p,r,s,w,u,v,j,n,k,h as h$1,x,d as d$1,g,a as a$f}from'./chunk-SMAYNDQQ.mjs';import {b as b$1}from'./chunk-246VHB32.mjs';import {a as a$k}from'./chunk-LRZ6BQFQ.mjs';import {a as a$i}from'./chunk-3L7GTQXK.mjs';import {a as a$l}from'./chunk-SNQDFFKP.mjs';import {c as c$4,b as b$8}from'./chunk-GX2IOGYR.mjs';import {a as a$h}from'./chunk-O7XK2WIX.mjs';import {a as a$j}from'./chunk-TVENHRYC.mjs';import {a as a$6}from'./chunk-KUEDQO7P.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$7}from'./chunk-WL27JGVG.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$a}from'./chunk-4ZJMZB5B.mjs';import {d}from'./chunk-RCBUNCHV.mjs';import {e,c,h,b as b$2,a as a$c}from'./chunk-B7PSE5KC.mjs';import {b as b$4,c as c$3}from'./chunk-PF3OQKXP.mjs';import {a as a$g}from'./chunk-D3IZ4HBL.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {a as a$4}from'./chunk-K6X2BHPP.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {a as a$7}from'./chunk-RT4LMB6X.mjs';import {c as c$1,b as b$5}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$d}from'./chunk-FXCHST4Z.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Kt,{createContext,forwardRef,useRef,useEffect,useContext,useState,useMemo,useCallback,isValidElement}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightIcon}from'@baseline-ui/icons/8';import {themeVars,sprinkles}from'@baseline-ui/tokens';/**
|
|
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 ve(r,o,e){let{gridProps:t}=b$6(r,o,e);return t.role="treegrid",{gridProps:t}}var gt={"ar-AE":{collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{collapse:"Skjul",expand:"Udvid"},"de-DE":{collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{expand:"Expand",collapse:"Collapse"},"es-ES":{collapse:"Contraer",expand:"Ampliar"},"et-EE":{collapse:"Ahenda",expand:"Laienda"},"fi-FI":{collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{collapse:"Comprimi",expand:"Espandi"},"ja-JP":{collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{collapse:"Skjul",expand:"Utvid"},"nl-NL":{collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{collapse:"Recolher",expand:"Expandir"},"pt-PT":{collapse:"Colapsar",expand:"Expandir"},"ro-RO":{collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};function se(r,o,e){let{node:t}=r,n=c$5(r,o,e),a=n.rowProps["aria-expanded"]===true,s=b$7(gt,"@react-aria/tree"),c=a$g({"aria-label":a?s.format("collapse"):s.format("expand"),"aria-labelledby":n.rowProps.id}),d={onPress:()=>{n.isDisabled||(o.toggleKey(t.key),o.selectionManager.setFocused(true),o.selectionManager.setFocusedKey(t.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};return {...n,expandButtonProps:d}}var be=class r extends g{expandedKeys=new Set;withExpandedKeys(o,e){let t=this.clone();return t.expandedKeys=e,r.cloneAncestorSections(e,o,t),r.cloneAncestorSections(o,e,t),t.frozen=this.frozen,t}static cloneAncestorSections(o,e,t){for(let n of o)if(!e.has(n)){let a=n;for(;a!=null;){let s=t.getItem(a);if(s?.type==="section"){t.keyMap.set(a,s.clone());break}else a=s?.parentKey??null;}}}*[Symbol.iterator](){let o=this.getFirstKey(),e=o!=null?this.getItem(o):null;for(;e;)if(yield e,e.type==="section")e=e.nextKey!=null?this.getItem(e.nextKey):null;else {let t=this.getKeyAfter(e.key);e=t!=null?this.getItem(t):null;}}getLastKey(){let o=this.lastKey;if(o==null)return null;let e=this.getItem(o);for(;e?.lastChildKey!=null&&(e.type!=="item"||this.expandedKeys.has(e.key));)e=this.getItem(e.lastChildKey);return e?.key}getKeyAfter(o){let e=this.getItem(o);if(!e)return null;if((this.expandedKeys.has(e.key)||e.type!=="item")&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.getItem(e.parentKey);else return null}return null}getKeyBefore(o){let e=this.getItem(o);if(!e)return null;if(e.prevKey!=null){for(e=this.getItem(e.prevKey);e&&(e.type!=="item"||this.expandedKeys.has(e.key))&&e.lastChildKey!=null;)e=this.getItem(e.lastChildKey);return e?.key??null}return e.parentKey}getChildren(o){let e=this;return {*[Symbol.iterator](){let t=e.getItem(o),n=t?.firstChildKey!=null?e.getItem(t.firstChildKey):null;if(t&&t.type==="section"&&n)for(;n&&n.key!==t.nextKey;){yield e.getItem(n.key);let a=e.getKeyAfter(n.key);n=a!=null?e.getItem(a):null;}else for(;n;)yield n,n=n.nextKey!=null?e.getItem(n.nextKey):null;}}}getTextValue(o){let e=this.getItem(o);return e?e.textValue:""}},bt=createContext(null),ue=createContext(null),Ie=forwardRef(function(o,e$1){return [o,e$1]=e(o,e$1,bt),jsx(i,{content:jsx(l,{...o}),createCollection:()=>new be,children:t=>jsx(Ht,{props:o,collection:t,treeRef:e$1})})}),xt={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ht({props:r$1,collection:o,treeRef:e}){let{dragAndDropHooks:t}=r$1,{direction:n}=b(),a$7=a({usage:"search",sensitivity:"base"}),s$1=!!t?.useDraggableCollectionState,c$2=!!t?.useDroppableCollectionState,d=useRef(s$1),C=useRef(c$2);useEffect(()=>{d.current!==s$1&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==c$2&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");},[s$1,c$2]);let{selectionMode:T="none",expandedKeys:g,defaultExpandedKeys:u$1,onExpandedChange:b$3,disabledBehavior:m="all"}=r$1,{CollectionRoot:I,isVirtualized:f,layoutDelegate:y,dropTargetDelegate:x}=useContext(p),[v$1,K]=a$1(g?new Set(g):void 0,u$1?new Set(u$1):new Set,b$3),[R,M]=useState(o),[w$1,P]=useState(v$1),[i,h$1]=useState(()=>o.withExpandedKeys(w$1,v$1));(!Ft(w$1,v$1)||o!==R)&&(h$1(o.withExpandedKeys(w$1,v$1)),M(o),P(v$1));let l=a$2({...r$1,selectionMode:T,expandedKeys:v$1,onExpandedChange:K,collection:i,children:void 0,disabledBehavior:m}),{gridProps:H}=ve({...r$1,isVirtualized:f,layoutDelegate:y},l,e),S,E,j,V=false,U=null,Z=useRef(null);if(s$1&&t){S=t.useDraggableCollectionState({collection:l.collection,selectionManager:l.selectionManager,preview:t.renderDragPreview?Z:void 0}),t.useDraggableCollection({},S,e);let ee=t.DragPreview;U=t.renderDragPreview?jsx(ee,{ref:Z,children:t.renderDragPreview}):null;}let[q]=useState(()=>new a$3);if(c$2&&t){E=t.useDroppableCollectionState({collection:l.collection,selectionManager:l.selectionManager});let ee=t.dropTargetDelegate||x||new t.ListDropTargetDelegate(l.collection,e,{direction:n});q.setup(ee,l,n);let me=new b$1({collection:l.collection,collator:a$7,ref:e,disabledKeys:l.selectionManager.disabledKeys,disabledBehavior:l.selectionManager.disabledBehavior,direction:n,layoutDelegate:y});j=t.useDroppableCollection({keyboardDelegate:me,dropTargetDelegate:q,onDropActivate:N=>{if(N.target.type==="item"){let D=N.target.key,W=l.collection.getItem(D),kt=v$1.has(D);W&&W.hasChildNodes&&(!kt||t?.isVirtualDragging?.())&&l.toggleKey(D);}},onKeyDown:N=>{let D=E?.target;if(D&&D.type==="item"&&D.dropPosition==="on"){let W=l.collection.getItem(D.key);(N.key===xt.expand[n]&&W?.hasChildNodes&&!l.expandedKeys.has(D.key)||N.key===xt.collapse[n]&&W?.hasChildNodes&&l.expandedKeys.has(D.key))&&l.toggleKey(D.key);}}},E,e),V=E.isDropTarget({type:"root"});}let Y=!!(s$1&&!S?.isDisabled),{focusProps:Q,isFocused:z,isFocusVisible:O}=a$4(),Me={isEmpty:l.collection.size===0,isFocused:z,isFocusVisible:O,isDropTarget:V,selectionMode:l.selectionManager.selectionMode,allowsDragging:!!Y,state:l},Lt=c({...r$1,children:void 0,defaultClassName:"react-aria-Tree",values:Me}),ke=null;if(l.collection.size===0&&r$1.renderEmptyState){let{isEmpty:ee,...me}=Me,N=r$1.renderEmptyState({...me});ke=jsx("div",{role:"row",style:{display:"contents"},...{"aria-level":1},children:jsx("div",{role:"gridcell",style:{display:"contents"},children:N})});}let Mt=a$5(r$1,{global:true});return jsxs(Fragment,{children:[jsx(a$6,{children:jsxs(h.div,{...c$1(Mt,Lt,H,Q,j?.collectionProps),ref:e,slot:r$1.slot||void 0,"data-empty":l.collection.size===0||void 0,"data-focused":z||void 0,"data-drop-target":V||void 0,"data-focus-visible":O||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode,"data-allows-dragging":!!Y||void 0,children:[jsxs(b$2,{values:[[ue,l],[r,{dragAndDropHooks:t,dragState:S,dropState:E}],[s,{render:Nt}]],children:[c$2&&jsx(zt,{}),jsx(w,{children:jsx(I,{collection:l.collection,persistedKeys:v(l.selectionManager,t,E),scrollRef:e,renderDropIndicator:u(t,E)})})]}),ke]})}),U]})}var Pe=class extends a$f{static type="content"},Ce=j(Pe,function(o){let e=useContext(Pt),t=c({children:o.children,values:e});return jsx(p.Provider,{value:n,children:t.children})}),Pt=createContext(null),he=class extends a$f{static type="item"},Re=k(he,(r$1,o,e)=>{let t=useContext(ue);o=a$7(o);let{dragAndDropHooks:n,dragState:a,dropState:s}=useContext(r),c$3=a&&!(a.isDisabled||a.selectionManager.isDisabled(e.key)),{rowProps:d$1,gridCellProps:C,expandButtonProps:T,descriptionProps:g,...u}=se({node:e,shouldSelectOnPressUp:!!a},t,o),b=d$1["aria-expanded"]===true,m=r$1.hasChildItems||[...t.collection.getChildren(e.key)].length>1,I=d$1["aria-level"]||1,{hoverProps:f,isHovered:y}=a$8({isDisabled:!u.allowsSelection&&!u.hasAction&&!c$3,onHoverStart:r$1.onHoverStart,onHoverChange:r$1.onHoverChange,onHoverEnd:r$1.onHoverEnd}),{isFocusVisible:x$1,focusProps:v}=a$4(),{isFocusVisible:K,focusProps:R}=a$4({within:true}),{checkboxProps:M}=a$9({key:e.key},t),w=null;a&&n&&(w=n.useDraggableItem({key:e.key,hasDragButton:true},a,o));let P=null,i=useRef(null),h$2=useRef(null),l=useRef(null),{visuallyHiddenProps:H}=a$a();s&&n&&(P=n.useDropIndicator({target:{type:"item",key:e.key,dropPosition:"on"},activateButtonRef:l},s,h$2));let S=a&&a.isDragging(e.key),E=P?.isDropTarget,j=t.selectionManager.selectionMode,V=t.selectionManager.selectionBehavior,U=Kt.useMemo(()=>({...u,isHovered:y,isFocusVisible:x$1,isExpanded:b,hasChildItems:m,level:I,selectionMode:j,selectionBehavior:V,isFocusVisibleWithin:K,state:t,id:e.key,allowsDragging:!!a,isDragging:S,isDropTarget:E}),[u,y,x$1,b,m,I,K,t,e.key,a,S,E,V,j]),Z=c({...r$1,id:void 0,children:e.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":I},values:U});useEffect(()=>{!e.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.");},[e.textValue]),useEffect(()=>{m&&!i.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.");},[]);let q=useRef(null);useEffect(()=>{a&&!q.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let Y=h$1({items:t.collection.getChildren(e.key),children:O=>{switch(O.type){case "content":return O.render(O);case "loader":case "item":return jsx(Fragment,{});default:throw new Error("Unsupported element type in TreeRow: "+O.type)}}}),Q=c$2(),z=a$5(r$1,{global:true});return delete z.id,delete z.onClick,jsxs(Fragment,{children:[P&&!P.isHidden&&jsx("div",{role:"row","aria-level":d$1["aria-level"],"aria-expanded":d$1["aria-expanded"],"aria-label":P.dropIndicatorProps["aria-label"],children:jsxs("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"},children:[jsx("div",{role:"button",...H,...P.dropIndicatorProps,ref:h$2}),d$1["aria-expanded"]!=null?jsx("div",{role:"button",...H,id:Q,"aria-label":T["aria-label"],"aria-labelledby":`${Q} ${d$1.id}`,tabIndex:-1,ref:l}):null]})}),jsx(h.div,{...c$1(z,d$1,v,f,R,w?.dragProps),...Z,ref:o,"data-expanded":m&&b||void 0,"data-has-child-items":m||void 0,"data-level":I,"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":x$1||void 0,"data-pressed":u.isPressed||void 0,"data-selection-mode":t.selectionManager.selectionMode==="none"?void 0:t.selectionManager.selectionMode,"data-allows-dragging":!!a||void 0,"data-dragging":S||void 0,"data-drop-target":E||void 0,children:jsx("div",{...C,style:{display:"contents"},children:jsx(b$2,{values:[[a$b,{slots:{selection:M}}],[b$3,{slots:{selection:M}}],[d,{slots:{[a$c]:{},chevron:{...T,ref:i},drag:{...w?.dragButtonProps,ref:q,style:{pointerEvents:"none"}}}}],[Pt,{...U}],[x,{isSelected:u.isSelected}]],children:Y})})})]})});j(d$1,function(o,e,t){let{isVirtualized:n}=useContext(p),a=useContext(ue),{isLoading:s,onLoadMore:c$2,scrollOffset:d,...C}=o,T=useRef(null),g=useMemo(()=>({onLoadMore:c$2,collection:a?.collection,sentinelRef:T,scrollOffset:d}),[c$2,d,a?.collection]);b$4(g,T),e=a$7(e);let{rowProps:u,gridCellProps:b}=se({node:t},a,e),m=u["aria-level"]||1,I={role:"row","aria-level":u["aria-level"]},f=c({...C,id:void 0,children:t.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:m}}),y={};return n&&(y={display:"contents"}),jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:c$3(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:T,style:{position:"absolute",height:1,width:1}})}),s&&f.children&&jsx(h.div,{ref:e,...c$1(a$5(o),I),...f,"data-level":m,children:jsx("div",{...b,style:y,children:f.children})})]})});function Nt(r$1,o){o=a$7(o);let{dragAndDropHooks:e,dropState:t}=useContext(r),n=useRef(null),{dropIndicatorProps:a,isHidden:s,isDropTarget:c}=e.useDropIndicator(r$1,t,n);if(s)return null;let d=t&&r$1.target.type==="item"?(t.collection.getItem(r$1.target.key)?.level||0)+1:1;return jsx(Vt,{...r$1,dropIndicatorProps:a,isDropTarget:c,ref:o,buttonRef:n,level:d})}function Bt(r,o){let{dropIndicatorProps:e,isDropTarget:t,buttonRef:n,level:a,...s}=r,{visuallyHiddenProps:c$1}=a$a(),d=c({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":a},values:{isDropTarget:t}});return jsx(h.div,{...d,role:"row","aria-level":a,ref:o,"data-drop-target":t||void 0,children:jsxs("div",{role:"gridcell",children:[jsx("div",{...c$1,role:"button",...e,ref:n}),d.children]})})}var Vt=forwardRef(Bt);function zt(){let{dragAndDropHooks:r$1,dropState:o}=useContext(r),e=useRef(null),{dropIndicatorProps:t}=r$1.useDropIndicator({target:{type:"root"}},o,e),n=o.isDropTarget({type:"root"}),{visuallyHiddenProps:a}=a$a();return !n&&t["aria-hidden"]?null:jsx("div",{role:"row","aria-hidden":t["aria-hidden"],style:{position:"absolute"},children:jsx("div",{role:"gridcell",children:jsx("div",{role:"button",...a,...t,ref:e})})})}function Ft(r,o){if(r.size!==o.size)return false;for(let e of r)if(!o.has(e))return false;return true}var ht=({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:d,onRename:C,renameLabel:T,renderItemTitle:g})=>Object.values({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:d,onRename:C,renameLabel:T,renderItemTitle:g});var Dt="_10dw1p96",It="_10dw1p95",Ct=a$d({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m6 _1yep5z6lt _1yep5z6lq",variantClassNames:{isSelected:{true:"_1yep5z612u"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61pc _1yep5z61rl _1yep5z61va _1yep5z61v9 _1yep5z61vd"]]});function St(r,o){if(typeof r=="function"&&!r.prototype?.isReactComponent){let e=r(o);return isValidElement(e)?r:e}return r}var Se=({item:r,...o})=>{let{onPrimaryAction:e,onSecondaryAction:t,actionsPosition:n,primaryActionIcon:a,secondaryActionIcon:s,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,expandLabel:C,collapseLabel:T,onRename:g,renameLabel:u,renderItemTitle:b}=o,{formatMessage:m}=b$8(),{renamingKey:I,setRenamingKey:f}=useContext(Ee),y=I===r.id,x=!!r.children?.length,v=r.icon,K=!!g,R=useRef(false),M=useMemo(()=>{let i=St(a,r.id),h=St(s,r.id),l=typeof c=="function"?c(r.id):c,H=typeof d=="function"?d(r.id):d;return i||h?jsxs(a$h,{display:"flex",flexDirection:"row",children:[i?jsx(a$i,{icon:i,"aria-label":l,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{e?.(r.id);},tooltip:true}):null,h?jsx(a$i,{icon:h,"aria-label":H,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{t?.(r.id);},tooltip:true}):null]}):null},[a,r.id,s,c,d,e,t]),w=useCallback(i=>{i.key==="Enter"?(R.current=true,g?.({key:r.id,value:i.target.value}),f(null)):i.key==="Escape"&&(R.current=true,f(null));},[r.id,g,f]),P=useCallback(()=>b?b(r):r.label,[b,r]);return jsxs(Re,{id:r.id,textValue:r.label,"data-key":r.id,className:i=>a$e(It,Ct({isHovered:i.isHovered,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isRenaming:y}),"BaselineUI-TreeView-Row"),style:{justifyContent:n==="end"?"space-between":void 0},children:[jsx(Ce,{children:i=>{let h=i.level-1;return jsxs(Fragment,{children:[n==="start"?M:null,jsxs(a$h,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(a$h,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${h*2} * ${themeVars.spacing.lg})`},children:[jsx(a$j,{icon:ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{i.state.toggleKey(i.id);},"aria-label":i.isExpanded?T??m(we.collapse):C??m(we.expand),style:{visibility:x?"visible":"hidden"},className:a$e(Dt,"BaselineUI-TreeView-ExpansionToggle")}),v?jsx(v,{size:16,style:{color:themeVars.color.icon.interactive.disabled}}):null]}),jsxs(a$h,{paddingLeft:"sm",paddingY:y?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:l=>{K&&(l.stopPropagation(),l.preventDefault(),f(r.id));},children:[y?jsx("div",{onClick:l=>{l.stopPropagation();},children:jsx(a$k,{defaultValue:r.label,autoFocus:true,onBlur:l=>{if(R.current){R.current=false;return}g?.({key:r.id,value:l.target.value}),f(null);},"aria-label":u??m(we.rename),onKeyDown:w,className:"BaselineUI-TreeView-RenameInput"})}):jsx(a$l,{type:"label",size:"sm",className:a$e(sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:P()}),r.description?jsx(a$l,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.description}):null]})]}),n==="end"?M:null]})}}),jsx(l,{items:r.children,children:i=>jsx(Se,{item:i,...o})})]})},we=c$4({expand:{id:"bui.treeView.expand",defaultMessage:"Expand"},collapse:{id:"bui.treeView.collapse",defaultMessage:"Collapse"},rename:{id:"bui.treeView.rename",defaultMessage:"Rename"}});var Ee=createContext({renamingKey:null,setRenamingKey:()=>{}}),Et=Kt.forwardRef(({className:r,style:o,"data-block-id":e,"data-block-class":t,items:n,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:d,primaryActionAriaLabel:C,secondaryActionAriaLabel:T,actionsPosition:g="start",expandLabel:u,collapseLabel:b,onRename:m,renameLabel:I,onAction:f,renderItemTitle:y,...x},v)=>{let K=useRef(null),[R,M]=useState(null);useEffect(()=>{let i=K.current;if(!i||!m)return;let h=l=>{if(l.key==="F2"){let S=i.querySelector("[data-focused='true']")?.dataset.key;S&&(l.preventDefault(),l.stopPropagation(),M(S));}};return i.addEventListener("keydown",h),()=>{i.removeEventListener("keydown",h);}},[m]);let w=useMemo(()=>({renamingKey:R,setRenamingKey:M}),[R]),P={actionsPosition:g,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:d,primaryActionAriaLabel:C,secondaryActionAriaLabel:T,expandLabel:u,collapseLabel:b,onRename:m,renameLabel:I,renderItemTitle:y};return jsx(Ee.Provider,{value:w,children:jsx(Ie,{ref:b$5(v,K),items:n.children||[],selectionMode:"multiple",expandedKeys:x.expandedKeys,defaultExpandedKeys:x.defaultExpandedKeys,onExpandedChange:x.onExpandedChange,selectedKeys:x.selectedKeys,onAction:f,"aria-label":x["aria-label"],"aria-labelledby":x["aria-labelledby"],"data-block-id":e,"data-block-class":t,style:o,className:a$e(r,"BaselineUI-TreeView"),dependencies:ht(P),children:i=>jsx(Se,{item:i,...P})})})});Et.displayName="TreeView";export{Et as a};
|
package/dist/chunk-TDXALNX3.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {t}from'./chunk-MRJFGHFW.mjs';import {a,g,e}from'./chunk-AUOQSTS5.mjs';import {useRef,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
|
-
function H(s){let{ref:n,onInteractOutside:o,isDisabled:u,onInteractOutsideStart:p}=s,m=useRef({isPointerDown:false,ignoreEmulatedMouseEvents:false}),i=t(e=>{o&&d(e,n)&&(p&&p(e),m.current.isPointerDown=true);}),f=t(e=>{o&&o(e);});useEffect(()=>{let e=m.current;if(u)return;let y=n.current,t=a(y);if(typeof PointerEvent<"u"){let a=r=>{r.pointerType==="pen"&&e.isPointerDown&&d(r,n)&&(f(r),e.isPointerDown=false);},c=r=>{e.isPointerDown&&d(r,n)&&(f(r),e.isPointerDown=false);};return t.addEventListener("pointerdown",i,true),t.addEventListener("pointerup",a,true),t.addEventListener("click",c,true),()=>{t.removeEventListener("pointerdown",i,true),t.removeEventListener("pointerup",a,true),t.removeEventListener("click",c,true);}}else if(process.env.NODE_ENV==="test"){let a=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=false:e.isPointerDown&&d(r,n)&&f(r),e.isPointerDown=false;},c=r=>{e.ignoreEmulatedMouseEvents=true,e.isPointerDown&&d(r,n)&&f(r),e.isPointerDown=false;};return t.addEventListener("mousedown",i,true),t.addEventListener("mouseup",a,true),t.addEventListener("touchstart",i,true),t.addEventListener("touchend",c,true),()=>{t.removeEventListener("mousedown",i,true),t.removeEventListener("mouseup",a,true),t.removeEventListener("touchstart",i,true),t.removeEventListener("touchend",c,true);}}},[n,u]);}function d(s,n){if(s.button>0)return false;let o=g(s);if(o){let u=o.ownerDocument;if(!u||!e(u.documentElement,o)||o.closest("[data-react-aria-top-layer]"))return false}return n.current?!s.composedPath().includes(n.current):false}export{H as a};
|
package/dist/chunk-THRAJMLX.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$2}from'./chunk-HONWMHMX.mjs';import {a as a$2}from'./chunk-PF3OQKXP.mjs';import {a as a$3}from'./chunk-2VY4FAOY.mjs';import {i}from'./chunk-MRJFGHFW.mjs';import {a as a$1}from'./chunk-JDLUGVXG.mjs';import {a,f,b as b$1,e}from'./chunk-AUOQSTS5.mjs';import {useState,useRef,useEffect,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
|
-
var $=1e7;function dt(t,e,l){let o=st(e.body,l);return t==="left"?{...o,left:-$/2,width:$,totalWidth:$,scroll:{...o.scroll,left:0}}:{...o,top:-$/2,height:$,totalHeight:$,scroll:{...o.scroll,top:0}}}var F={top:"top",bottom:"top",left:"left",right:"left"},G={top:"bottom",bottom:"top",left:"right",right:"left"},Ct={top:"left",left:"top"},it={top:"height",left:"width"},Et={width:"totalWidth",height:"totalHeight"},J={};function Ot(t){let e=b$1(t);return typeof e<"u"&&e.visualViewport?e.visualViewport:null}function st(t,e){let l=a(t),o=0,n=0,s=0,i$1=0,c=0,u=0,r={},a$1=(e?.scale??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let h=l.documentElement;s=h.clientWidth,i$1=h.clientHeight,o=e?.width??s,n=e?.height??i$1,r.top=h.scrollTop||t.scrollTop,r.left=h.scrollLeft||t.scrollLeft,e&&(c=e.offsetTop,u=e.offsetLeft);}else (({width:o,height:n,top:c,left:u}=Z(t,false))),r.top=t.scrollTop,r.left=t.scrollLeft,s=o,i$1=n;return i()&&(t.tagName==="BODY"||t.tagName==="HTML")&&a$1&&(r.top=0,r.left=0,c=e?.pageTop??0,u=e?.pageLeft??0),{width:o,height:n,totalWidth:s,totalHeight:i$1,scroll:r,top:c,left:u}}function Mt(t){return {top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Q(t,e,l,o,n,s,i){let c=n.scroll[t]??0,u=o[it[t]],r=i[t]+o.scroll[F[t]]+s,a=i[t]+o.scroll[F[t]]+u-s,h=e-c+o.scroll[F[t]]+i[t]-o[F[t]],d=e-c+l+o.scroll[F[t]]+i[t]-o[F[t]];return h<r?r-h:d>a?Math.max(a-d,r-h):0}function It(t){let l=b$1(t).getComputedStyle(t);return {top:parseInt(l.marginTop,10)||0,bottom:parseInt(l.marginBottom,10)||0,left:parseInt(l.marginLeft,10)||0,right:parseInt(l.marginRight,10)||0}}function rt(t){if(J[t])return J[t];let[e,l]=t.split(" "),o=F[e]||"right",n=Ct[o];F[l]||(l="center");let s=it[o],i=it[n];return J[t]={placement:e,crossPlacement:l,axis:o,crossAxis:n,size:s,crossSize:i},J[t]}function tt(t,e,l,o,n,s,i,c,u,r,a){let{placement:h,crossPlacement:d,axis:y,crossAxis:f,size:H,crossSize:w}=o,b={};b[f]=t[f]??0,d==="center"?b[f]+=((t[w]??0)-(l[w]??0))/2:d!==f&&(b[f]+=(t[w]??0)-(l[w]??0)),b[f]+=s;let E=t[f]-l[w]+u+r,L=t[f]+t[w]-u-r;if(b[f]=a$3(b[f],E,L),h===y){let W=c?a[H]:a[Et[H]];b[G[y]]=Math.floor(W-t[y]+n);}else b[y]=Math.floor(t[y]+t[H]+n);return b}function vt(t,e,l,o,n,s,i,c,u,r,a){let h=(t.top!=null?t.top:u[Et.height]-(t.bottom??0)-i)-(u.scroll.top??0),d=r?l.top:0,y={top:Math.max(e.top+d,(a?.offsetTop??e.top)+d),bottom:Math.min(e.top+e.height+d,(a?.offsetTop??0)+(a?.height??0))};return c!=="top"?Math.max(0,y.bottom-h-((n.top??0)+(n.bottom??0)+s)):Math.max(0,h+i-y.top-((n.top??0)+(n.bottom??0)+s))}function Pt(t,e,l,o,n,s,i,c){let{placement:u,axis:r,size:a}=s;return u===r?Math.max(0,l[r]-(i.scroll[r]??0)-(t[r]+(c?e[r]:0))-(o[r]??0)-o[G[r]]-n):Math.max(0,t[a]+t[r]+(c?e[r]:0)-l[r]-l[a]+(i.scroll[r]??0)-(o[r]??0)-o[G[r]]-n)}function St(t,e,l,o,n,s,i,c,u,r,a,h,d,y,f,H,w,b,E,L,W,_){let m=rt(t),{size:A,crossAxis:p,crossSize:R,placement:M,crossPlacement:T}=m,P=tt(e,c,l,m,a,h,r,d,f,H,u),S=a,k=E?$:Pt(c,r,e,n,s+a,m,u,w);if(i&&l[A]>k){let j=rt(`${G[M]} ${T}`),X=tt(e,c,l,j,a,h,r,d,f,H,u);Pt(c,r,e,n,s+a,j,u,w)>k&&(m=j,P=X,S=a);}if(_==="anchor"&&L&&(m.placement==="top"||m.placement==="bottom")){let j=E?0:Q(p,P[p],l[R],c,u,s,r);if(j!==0){let X=m.crossPlacement==="center"?j>0?"left":"right":G[m.crossPlacement];if(X){let lt=rt(`${m.placement} ${X}`),pt=tt(e,c,l,lt,a,h,r,d,f,H,u),Lt=E?0:Q(p,pt[p],l[R],c,u,s,r);Math.abs(Lt)<Math.abs(j)&&(m=lt,P=pt);}}}let I="bottom";m.axis==="top"?m.placement==="top"?I="top":m.placement==="bottom"&&(I="bottom"):m.crossAxis==="top"&&(m.crossPlacement==="top"?I="bottom":m.crossPlacement==="bottom"&&(I="top"));let V=_==="anchor"&&L&&(m.placement==="top"||m.placement==="bottom")&&m.crossPlacement!=="center",z=V||E?0:Q(p,P[p],l[R],c,u,s,r);P[p]+=z;let x=E||!W?void 0:vt(P,c,r,d,n,s,l.height,I,u,w,b);y&&(x==null||y<x)&&(x=y),l.height=x!=null?Math.min(l.height,x):l.height,P=tt(e,c,l,m,S,h,r,d,f,H,u),z=V||E?0:Q(p,P[p],l[R],c,u,s,r),P[p]+=z;let v={},g=e[p]-P[p]-n[F[p]],C=g+.5*e[R],D=f/2+H,B=F[p]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),N=l[R]-B-f/2-H,ot=e[p]+f/2-(P[p]+n[F[p]]),Tt=e[p]+e[R]-f/2-(P[p]+n[F[p]]),yt=a$3(C,ot,Tt);v[p]=a$3(yt,D,N),{placement:M,crossPlacement:T}=m,f?g=v[p]:T==="right"?g+=e[R]:T==="center"&&(g+=e[R]/2);let at=M==="left"||M==="top"?l[A]:0,Ht={x:M==="top"||M==="bottom"?g:at,y:M==="left"||M==="right"?g:at};return {position:P,maxHeight:x,arrowOffsetLeft:v.left,arrowOffsetTop:v.top,placement:M,triggerAnchorPoint:Ht}}function At(t){let{placement:e$1,targetNode:l,overlayNode:o,scrollNode:n,padding:s,shouldFlip:i,boundaryElement:c,boundaryAxis:u="both",horizontalBoundaryBehavior:r="shift",offset:a$1,crossOffset:h,maxHeight:d,arrowSize:y=0,arrowBoundaryOffset:f=0,targetRect:H}=t,w=a(o),b=b$1(o),E=Ot(o),L=o instanceof b.HTMLElement?zt(o):w.documentElement,W=L===w.documentElement,_=b.getComputedStyle(L).position,m=!!_&&_!=="static",A=W?Z(l,false,H):xt(l,L,false,H);if(!W){let{marginTop:D,marginLeft:B}=b.getComputedStyle(l);A.top+=parseInt(D,10)||0,A.left+=parseInt(B,10)||0;}let p=Z(o,true),R=It(o);p.width+=(R.left??0)+(R.right??0),p.height+=(R.top??0)+(R.bottom??0);let M=Mt(n),T=c===null,P=c??w.body,S=!T&&u!=="vertical",k=!T&&u!=="horizontal",I=st(P,E),V=S?I:dt("left",w,E),z=k?I:dt("top",w,E),x={...z,left:V.left,width:V.width,totalWidth:V.totalWidth,scroll:{top:z.scroll.top,left:V.scroll.left}},v=st(L,E);m&&!W&&(x.top-=v.top,x.left-=v.left,v.top=0,v.left=0);let g=T?{top:0,left:0,width:0,height:0}:xt(P,L,false),C=!T&&e(P,L)&&L!==P;return St(e$1,A,p,M,R,s,i,x,v,g,a$1,h,m,d,y,f,C,E,T,S,k,r)}function et(t,e){let l=b$1(t),{top:o,left:n,width:s,height:i}=t.getBoundingClientRect();return e&&t instanceof l.HTMLElement&&(s=t.offsetWidth,i=t.offsetHeight),{top:o,left:n,width:s,height:i}}function Z(t,e,l){let o=a(t),{top:n,left:s,width:i,height:c}=l||et(t,e),{scrollTop:u,scrollLeft:r,clientTop:a$1,clientLeft:h}=o.documentElement;return {top:n+u-a$1,left:s+r-h,width:i,height:c}}function xt(t,e,l,o){let n=b$1(t),s=n.getComputedStyle(t),i;if(s.position==="fixed")i=o||et(t,l);else {i=Z(t,l,o);let c=Z(e,l),u=n.getComputedStyle(e);c.top+=(parseInt(u.borderTopWidth,10)||0)-e.scrollTop,c.left+=(parseInt(u.borderLeftWidth,10)||0)-e.scrollLeft,i.top-=c.top,i.left-=c.left;}return i.top-=parseInt(s.marginTop,10)||0,i.left-=parseInt(s.marginLeft,10)||0,i}function zt(t){let e=a(t),l=b$1(t),o=t.offsetParent;if(o&&o===e.body&&l.getComputedStyle(o).position==="static"&&!wt(o)&&(o=e.documentElement),o==null)for(o=t.parentElement;o&&!wt(o);)o=o.parentElement;return o||e.documentElement}function wt(t){let l=b$1(t).getComputedStyle(t);return l.transform!=="none"||/transform|perspective/.test(l.willChange)||l.filter!=="none"||l.contain==="paint"||"backdropFilter"in l&&l.backdropFilter!=="none"||"WebkitBackdropFilter"in l&&l.WebkitBackdropFilter!=="none"}function mt(t){return typeof document>"u"?null:b$1(t).visualViewport??null}function te(t){let{direction:e$1}=b(),{arrowSize:l,targetRef:o,overlayRef:n,arrowRef:s,scrollRef:i=n,placement:c="bottom",containerPadding:u=12,shouldFlip:r=true,boundaryElement:a$3,boundaryAxis:h="both",horizontalBoundaryBehavior:d="shift",offset:y=0,crossOffset:f$1=0,shouldUpdatePosition:H=true,shouldCloseOnScroll:w=true,isOpen:b$3=true,onClose:E,maxHeight:L,arrowBoundaryOffset:W=0,getTargetRect:_}=t,m=a$3??(typeof document<"u"?o.current?.ownerDocument.body??n.current?.ownerDocument.body??document.body:void 0),[A,p]=useState(null),R=[H,c,n.current,o.current,s?.current,i.current,u,r,m,h,d,y,f$1,b$3,e$1,L,W,l],M=useRef(mt(n.current)?.scale);useEffect(()=>{b$3&&(M.current=mt(n.current)?.scale);},[b$3,n]);let T=useCallback(()=>{if(H===false||!b$3||!n.current||!o.current||m===void 0||mt(n.current)?.scale!==M.current)return;let z=a(n.current),x=f(z),v=b$1(z.body),g=null;if(i.current&&e(i.current,x)){let B=x?.getBoundingClientRect(),N=i.current.getBoundingClientRect();g={type:"top",offset:(B?.top??0)-N.top},g.offset>N.height/2&&(g.type="bottom",g.offset=(B?.bottom??0)-N.bottom);}let C=n.current;!L&&n.current&&(C.style.top="0px",C.style.bottom="",C.style.maxHeight=(v.visualViewport?.height??v.innerHeight)+"px");let D=At({placement:Wt(c,e$1),overlayNode:n.current,targetNode:o.current,scrollNode:i.current||n.current,padding:u,shouldFlip:r,boundaryElement:m,boundaryAxis:h,horizontalBoundaryBehavior:d,offset:y,crossOffset:f$1,maxHeight:L,arrowSize:l??(s?.current?et(s.current,true).width:0),arrowBoundaryOffset:W,targetRect:_?.(o.current)});if(D.position){if(C.style.top="",C.style.bottom="",C.style.left="",C.style.right="",Object.keys(D.position).forEach(B=>C.style[B]=D.position[B]+"px"),C.style.maxHeight=D.maxHeight!=null?D.maxHeight+"px":"",g&&x&&i.current){let B=x.getBoundingClientRect(),N=i.current.getBoundingClientRect(),ot=B[g.type]-N[g.type];i.current.scrollTop+=ot-g.offset;}p(D);}},R);a$1(T,R);let P=m?b$1(m):o.current?b$1(o.current):n.current?b$1(n.current):void 0;Bt(T,P);let S=useRef(null),k=useCallback(()=>{S.current!==null&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{S.current=null,T();});},[T]);useEffect(()=>()=>{S.current!==null&&cancelAnimationFrame(S.current);},[]),a$2({ref:n,onResize:k}),a$2({ref:o,onResize:k});let I=useRef(false);a$1(()=>{let z,x=()=>{I.current=true,clearTimeout(z),z=setTimeout(()=>{I.current=false;},500),T();},g=b$1(n.current).visualViewport,C=()=>{I.current&&x();};return g?.addEventListener("resize",x),g?.addEventListener("scroll",C),()=>{g?.removeEventListener("resize",x),g?.removeEventListener("scroll",C);}},[T]);let V=useCallback(()=>{I.current||E?.();},[E,I]);return b$2({triggerRef:o,isOpen:b$3,onClose:w?E&&V:null}),{overlayProps:{style:{position:A?"absolute":"fixed",top:A?void 0:0,left:A?void 0:0,zIndex:1e5,...A?.position,maxHeight:A==null?"100vh":A.maxHeight!=null?`${A.maxHeight}px`:""}},placement:A?.placement??null,triggerAnchorPoint:A?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A?.arrowOffsetLeft,top:A?.arrowOffsetTop}},updatePosition:T}}function Bt(t,e=window){a$1(()=>(e?.addEventListener("resize",t,false),()=>{e?.removeEventListener("resize",t,false);}),[t,e]);}function Wt(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}export{te as a};
|
package/dist/chunk-TIHKHXTS.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-JDLUGVXG.mjs';import O,{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
|
-
function a({ref:e,onIntersect:t,isDisabled:r,threshold:n,rootMargin:o,root:c}){let s=O.useRef(t);a$1(()=>{s.current=t;}),useEffect(()=>{let i=e.current;if(r||!i)return;let f=new IntersectionObserver(([b])=>{s.current(b);},{root:c?.current,rootMargin:o,threshold:n});return f.observe(i),()=>{f.disconnect();}},[e,r,c,o,n]);}export{a};
|
package/dist/chunk-TKQOQVZD.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {j,k}from'./chunk-OMT6ZWSV.mjs';import {a}from'./chunk-YB3KW7JC.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {a as a$2}from'./chunk-TZ4MVY4E.mjs';import {a as a$1,g}from'./chunk-AUOQSTS5.mjs';import {useRef,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 c=new Map;function i(t,l,a){let r=c.get(t);r||(r=new Map,c.set(t,r));let o=r.get(l);if(!o){let s=new Set,p=u=>{for(let f of s)f(u);};o={listener:p,handlers:s},r.set(l,o),t.addEventListener(l,p);}return o.handlers.add(a),()=>{o.handlers.delete(a),o.handlers.size===0&&(t.removeEventListener(l,o.listener),r.delete(l),r.size===0&&c.delete(t));}}function F(t$1){let{isDisabled:l}=t$1,a$3=useRef(false),[r,o]=useState(null),{focusProps:s}=a({onFocus:e=>{o(a$1(g(e)));},onFocusChange:e=>{a$3.current=e;}}),p=t(e=>{a$3.current&&t$1.getItems&&e.preventDefault();}),u=t(e=>{!a$3.current||!t$1.getItems||(e.preventDefault(),e.clipboardData&&(j(e.clipboardData,t$1.getItems({action:"copy"})),t$1.onCopy?.()));}),f=t(e=>{a$3.current&&t$1.onCut&&t$1.getItems&&e.preventDefault();}),g$1=t(e=>{!a$3.current||!t$1.onCut||!t$1.getItems||(e.preventDefault(),e.clipboardData&&(j(e.clipboardData,t$1.getItems({action:"cut"})),t$1.onCut()));}),E=t(e=>{a$3.current&&t$1.onPaste&&e.preventDefault();}),I=t(e=>{if(!(!a$3.current||!t$1.onPaste)&&(e.preventDefault(),e.clipboardData)){let y=k(e.clipboardData);t$1.onPaste(y);}});return useEffect(()=>{if(!(l||!r))return a$2(i(r,"beforecopy",p),i(r,"copy",u),i(r,"beforecut",f),i(r,"cut",g$1),i(r,"beforepaste",E),i(r,"paste",I))},[l,r]),{clipboardProps:s}}export{F as a};
|
package/dist/chunk-TO6OQF2Y.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b as b$3,a as a$5}from'./chunk-N7MTFSWR.mjs';import {p,o}from'./chunk-SMAYNDQQ.mjs';import {b as b$2}from'./chunk-DECHIERQ.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$3}from'./chunk-PF3OQKXP.mjs';import {a as a$1}from'./chunk-RXSYDMT6.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {a as a$2}from'./chunk-JDLUGVXG.mjs';import {g,e,b as b$1,a as a$4}from'./chunk-AUOQSTS5.mjs';import et,{createContext,useRef,useCallback,useState,useEffect,useMemo,useContext}from'react';import {flushSync}from'react-dom';import {jsx,jsxs}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 R=class h{x;y;constructor(e=0,t=0){this.x=e,this.y=t;}copy(){return new h(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}};var c=class h{x;y;width;height;constructor(e=0,t=0,i=0,o=0){this.x=e,this.y=t,this.width=i,this.height=o;}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new R(this.x,this.y)}get topRight(){return new R(this.maxX,this.y)}get bottomLeft(){return new R(this.x,this.maxY)}get bottomRight(){return new R(this.maxX,this.maxY)}intersects(e){return (process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of ["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),o=Math.max(this.maxX,e.maxX)-t,r=Math.max(this.maxY,e.maxY)-i;return new h(t,i,o,r)}intersection(e){if(!this.intersects(e))return new h(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new h(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new h(this.x,this.y,this.width,this.height)}};var f=class h{width;height;constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0);}copy(){return new h(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}};var Qe=0,ue=class{virtualizer;layoutInfo;content;rendered;viewType;key;children;reusableViews;constructor(e,t){this.virtualizer=e,this.key=++Qe,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null;}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null;}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new we(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e);}},de=class extends ue{constructor(e){super(e,"root");}},we=class extends ue{parent;constructor(e,t,i){super(e,i),this.parent=t;}};function Oe(h,e){if(h===e)return true;if(h.size!==e.size)return false;for(let t of h)if(!e.has(t))return false;return true}var ce=class{startTime=0;velocity=new R(0,0);visibleRect=new c;setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e;}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;e.height+=t,this.velocity.y<0&&(e.y-=t);let i=this.visibleRect.width/3;return e.width+=i,this.velocity.x<0&&(e.x-=i),e}};var ye=class{delegate;collection;layout;contentSize;visibleRect;size;persistedKeys;_visibleViews;_renderedContent;_rootView;_isScrolling;_invalidationContext;_overscanManager;constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new f,this.visibleRect=new c,this.size=new f,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new de(this),this._isScrolling=false,this._invalidationContext={},this._overscanManager=new ce;}isPersistedKey(e){if(this.persistedKeys.has(e))return true;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return true}return false}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:o}=e.layoutInfo;e.content=o||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content);}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let o=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,o),o}keyAtPoint(e){let t=new c(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let o of i)if(o.rect.intersects(t))return o.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,o=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),o=Math.max(0,Math.min(this.contentSize.height-t.height,o)),i!==t.x||o!==t.y){let r=new c(i,o,t.width,t.height);this.delegate.setVisibleRect(r);}else this.updateSubviews();}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),o;e&&!(t&&i)?o=new c(0,0,this.contentSize.width,this.contentSize.height):o=this._overscanManager.getOverscannedRect();let r=this.layout.getVisibleLayoutInfos(o),l=new Map;for(let n of r)l.set(n.key,n);return l}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,o]of this._visibleViews){let r=e.get(i);(!r||o.parent!==this.getParentView(r))&&(this._visibleViews.delete(i),o.parent.reuseChild(o),t.add(o));}for(let[i,o]of e){let r=this._visibleViews.get(i);if(!r)r=this.getReusableView(o),r.parent.children.add(r),this._visibleViews.set(i,r),t.delete(r);else {r.layoutInfo=o;let l=this.collection.getItem(o.key);r.content!==l&&(r.content!=null&&this._renderedContent.delete(r.content),this._renderView(r));}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let o=this._visibleViews.get(i);o.parent.children.delete(o),o.parent.children.add(o);}}render(e){let t=this,i=false,o=false,r=false,l=false,n=false,a=false;if(e.collection!==this.collection&&(t.collection=e.collection,i=true),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=true),e.persistedKeys&&!Oe(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,a=true),!this.visibleRect.equals(e.visibleRect)||!this.size.equals(e.size)){this._overscanManager.setVisibleRect(e.visibleRect);let s=new c(this.visibleRect.x,this.visibleRect.y,this.size.width,this.size.height),u=new c(e.visibleRect.x,e.visibleRect.y,e.size.width,e.size.height);this.layout.shouldInvalidate(u,s)?(o=!e.visibleRect.pointEquals(this.visibleRect),r=!this.size.equals(e.size),i=true):a=true,t.visibleRect=e.visibleRect,t.size=e.size;}return e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(r||=e.invalidationContext.sizeChanged||false,o||=e.invalidationContext.offsetChanged||false,l||=e.invalidationContext.itemSizeChanged||false,n||=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions),i||=l||r||o||n),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(a=true)),i?this.relayout({offsetChanged:o,sizeChanged:r,itemSizeChanged:l,layoutOptionsChanged:n,layoutOptions:this._invalidationContext.layoutOptions}):a&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e);}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:true});}};var it=typeof document<"u"?et.useLayoutEffect:()=>{};function ze(h){let[e,t]=useState(new c(0,0,0,0)),[i,o]=useState(new f),[r,l]=useState(false),[n,a]=useState({}),s=useRef(false),[u]=useState(()=>new ye({collection:h.collection,layout:h.layout,delegate:{setVisibleRect(L){t(L),s.current=true;},renderView:h.renderView,invalidate:a}}));it(()=>{s.current&&(s.current=false,h.onVisibleRectChange(e));});let m=useMemo(()=>h.layoutOptions!=null?{...n,layoutOptions:h.layoutOptions}:n,[n,h.layoutOptions]),d=u.render({layout:h.layout,collection:h.collection,persistedKeys:h.persistedKeys,layoutOptions:h.layoutOptions,visibleRect:e,size:i,invalidationContext:m,isScrolling:r}),y=u.contentSize,g=useCallback(()=>{l(true);},[]),p=useCallback(()=>{l(false);},[]);return useMemo(()=>({virtualizer:u,visibleViews:d,setVisibleRect:t,size:i,setSize:o,contentSize:y,isScrolling:r,startScrolling:g,endScrolling:p}),[u,d,t,i,o,y,r,g,p])}var F=class{virtualizer=null;shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){return this.getLayoutInfo(e)?.rect??null}getVisibleRect(){return this.virtualizer.visibleRect}};var S=class h{type;key;parentKey;content;rect;estimatedSize;isSticky;opacity;transform;zIndex;allowOverflow;constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=false,this.isSticky=false,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=false;}copy(){let e=new h(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}};var V={minItemSize:new f(200,200),maxItemSize:new f(1/0,1/0),preserveAspectRatio:false,minSpace:new f(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},oe=class extends F{gap=V.minSpace;dropIndicatorThickness=2;numColumns=0;direction="ltr";contentSize=new f;layoutInfos=new Map;margin=0;shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||V.minItemSize).equals(t.minItemSize||V.minItemSize)||!(e.maxItemSize||V.maxItemSize).equals(t.maxItemSize||V.maxItemSize)||!(e.minSpace||V.minSpace).equals(t.minSpace||V.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=V.minItemSize,maxItemSize:i=V.maxItemSize,preserveAspectRatio:o=V.preserveAspectRatio,minSpace:r=V.minSpace,maxHorizontalSpace:l=V.maxSpace,maxColumns:n=V.maxColumns,dropIndicatorThickness:a=V.dropIndicatorThickness,loaderHeight:s=V.loaderHeight,direction:u="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=a,this.direction=u;let m=this.virtualizer.size.width,d=Math.min(i.width,m),y=Number.isFinite(i.height)?i.height:Math.floor(t.height/t.width*d),g=Math.floor(m/(t.width+r.width)),p=Math.max(1,Math.min(n,g));this.numColumns=p;let T=m-r.width*Math.max(0,p),L=Math.floor(T/p);L=Math.max(t.width,Math.min(d,L));let E=(L-t.width)/Math.max(1,d-t.width),C=t.height+Math.floor((y-t.height)*E);C=Math.max(t.height,Math.min(y,C));let N=Math.min(Math.max(l,r.width),Math.floor((m-p*L)/(p+1)));this.gap=new f(N,r.height),this.margin=Math.floor((m-p*L-N*(p+1))/2);let k=this.virtualizer.collection,j=k.size,M=k.getLastKey();for(let x=0;x<2&&M!=null;x++){if(k.getItem(M)?.type==="skeleton"){j++;break}M=k.getKeyBefore(M);}let q=Math.ceil(j/p),A=k[Symbol.iterator](),w=q>0?r.height:0,b=new Map,z=null,v=0;for(let x=0;x<q;x++){let P=0,X=[];for(let O=0;O<p;O++){let D=z||A.next().value;if(!D)break;if(D.type==="loader")continue;D.type==="skeleton"&&(z=D);let _=z?`${z.key}-${v++}`:D.key,W=this.layoutInfos.get(_),H=D;z&&(H=W&&W.content.key===_?W.content:{...z,key:_});let ae=N+O*(L+N)+this.margin,se=C,te=!o;W&&te&&(se=W.rect.height,te=e.layoutOptionsChanged||e.sizeChanged||W.estimatedSize||W.content!==H);let Ze=new c(ae,w,L,se),J=new S(D.type,_,Ze);J.estimatedSize=te,J.allowOverflow=true,J.content=H,b.set(_,J),X.push(J),P=Math.max(P,J.rect.height);}for(let O of X)O.rect.height=P;w+=P+r.height,z&&x===q-1&&w<this.virtualizer.size.height&&q++;}let I=k.getItem(k.getLastKey());if(I?.type==="loader"){(v>0||!I.props.isLoading)&&(s=0);let x=m-N*2,P=new c(N,w,x,s),X=new S("loader",I.key,P);b.set(I.key,X),w=X.rect.maxY;}this.layoutInfos=b,this.contentSize=new f(this.virtualizer.size.width,w);}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let i of this.layoutInfos.values())(i.rect.intersects(e)||this.virtualizer.isPersistedKey(i.key)||i.type==="loader")&&t.push(i);return t}updateItemSize(e,t){let i=this.layoutInfos.get(e);if(!t||!i)return false;if(t.height!==i.rect.height){let o=i.copy();return o.rect.height=t.height,o.estimatedSize=false,this.layoutInfos.set(e,o),true}return false}getDropTargetFromPoint(e,t,i){if(this.layoutInfos.size===0)return {type:"root"};e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y,this.direction==="rtl"&&this.numColumns>1&&(e=this.contentSize.width-e);let o=null;if(this.numColumns===1){let u=new c(e,Math.max(0,t-this.gap.height),1,Math.max(1,this.gap.height*2)),m=this.getVisibleLayoutInfos(u),d=1/0;for(let y of m){if(!y.rect.intersects(u))continue;let g=Math.abs(y.rect.y-t),p=Math.abs(y.rect.maxY-t),T=Math.min(g,p);T<d&&(d=T,o=y.key);}}else {let u=new c(Math.max(0,e-this.gap.width),t,this.gap.width*2,1),m=this.getVisibleLayoutInfos(u),d=1/0;for(let y of m){if(!y.rect.intersects(u))continue;let g=Math.abs(y.rect.x-e),p=Math.abs(y.rect.maxX-e),T=Math.min(g,p);T<d&&(d=T,o=y.key);}}let r=o!=null?this.getLayoutInfo(o):null;if(!r)return {type:"root"};let l={type:"item",key:r.key,dropPosition:"on"},n=this.numColumns===1?t:e,a=this.numColumns===1?r.rect.y:r.rect.x,s=this.numColumns===1?r.rect.height:r.rect.width;if(i(l))n<a+5?l.dropPosition="before":n>a+s-5&&(l.dropPosition="after");else {let u=a+s/2;n<=u&&i({...l,dropPosition:"before"})?l.dropPosition="before":n>=u&&i({...l,dropPosition:"after"})&&(l.dropPosition="after");}return l}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;return this.numColumns===1?i=new c(t.rect.x,e.dropPosition==="before"?t.rect.y-this.gap.height/2-this.dropIndicatorThickness/2:t.rect.maxY+this.gap.height/2-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):i=new c(e.dropPosition==="before"?t.rect.x-this.gap.width/2-this.dropIndicatorThickness/2:t.rect.maxX+this.gap.width/2-this.dropIndicatorThickness/2,t.rect.y,this.dropIndicatorThickness,t.rect.height),new S("dropIndicator",e.key+":"+e.dropPosition,i)}};var B=48,Y=class extends F{rowSize;orientation;estimatedRowSize;headingSize;estimatedHeadingSize;loaderSize;dropIndicatorThickness;gap;padding;layoutNodes;contentSize;lastCollection;rootNodes;invalidateEverything;validRect;requestedRect;constructor(e={}){super(),this.rowSize=e?.rowSize??e?.rowHeight??null,this.orientation=e.orientation??"vertical",this.estimatedRowSize=e?.estimatedRowSize??e?.estimatedRowHeight??null,this.headingSize=e?.headingSize??e?.headingHeight??null,this.estimatedHeadingSize=e?.estimatedHeadingSize??e?.estimatedHeadingHeight??null,this.loaderSize=e?.loaderSize??e?.loaderHeight??null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=false,this.validRect=new c,this.requestedRect=new c,this.contentSize=new f;}get collection(){return this.virtualizer.collection}get rowHeight(){return this.rowSize}get estimatedRowHeight(){return this.estimatedRowSize}get headingHeight(){return this.headingSize}get estimatedHeadingHeight(){return this.estimatedHeadingSize}get loaderHeight(){return this.loaderSize}getLayoutInfo(e){return this.ensureLayoutInfo(e),this.layoutNodes.get(e)?.layoutInfo||null}getVisibleLayoutInfos(e){let t=this.orientation==="horizontal"?"x":"y",i=this.orientation==="horizontal"?"width":"height";if(e[i]>1){let l=(this.rowSize??this.estimatedRowSize??B)+this.gap;e=e.copy();let n=Math.floor(e[t]/l)*l,a=e[i]+e[t]-n;e[t]=n,e[i]=Math.ceil(a/l)*l;}this.layoutIfNeeded(e);let o=[],r=l=>{for(let n of l)this.isVisible(n,e)&&(o.push(n.layoutInfo),n.children&&r(n.children));};return r(this.rootNodes),o}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return !this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new c(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new c(0,0,this.contentSize.width,this.contentSize.height),true):false}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;return e.sizeChanged||this.rowSize!==(t?.rowSize??t?.rowHeight??this.rowSize)||this.orientation!==(t?.orientation??this.orientation)||this.headingSize!==(t?.headingSize??t?.headingHeight??this.headingSize)||this.loaderSize!==(t?.loaderSize??t?.loaderHeight??this.loaderSize)||this.gap!==(t?.gap??this.gap)||this.padding!==(t?.padding??this.padding)}shouldInvalidateLayoutOptions(e,t){return (e?.rowSize??e?.rowHeight)!==(t?.rowSize??t?.rowHeight)||e.orientation!==t.orientation||(e?.estimatedRowSize??e?.estimatedRowHeight)!==(t?.estimatedRowSize??t?.estimatedRowHeight)||(e?.headingSize??e?.headingHeight)!==(t?.headingSize??t?.headingHeight)||(e?.estimatedHeadingSize??e?.estimatedHeadingHeight)!==(t?.estimatedHeadingSize??t?.estimatedHeadingHeight)||(e?.loaderSize??e?.loaderHeight)!==(t?.loaderSize??t?.loaderHeight)||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;if(this.rowSize=i?.rowSize??i?.rowHeight??this.rowSize,this.orientation=i?.orientation??this.orientation,this.estimatedRowSize=i?.estimatedRowSize??i?.estimatedRowHeight??this.estimatedRowSize,this.headingSize=i?.headingSize??i?.headingHeight??this.headingSize,this.estimatedHeadingSize=i?.estimatedHeadingSize??i?.estimatedHeadingHeight??this.estimatedHeadingSize,this.loaderSize=i?.loaderSize??i?.loaderHeight??this.loaderSize,this.dropIndicatorThickness=i?.dropIndicatorThickness??this.dropIndicatorThickness,this.gap=i?.gap??this.gap,this.padding=i?.padding??this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let o of this.lastCollection.getKeys())t.getItem(o)||this.layoutNodes.get(o)&&this.layoutNodes.delete(o);this.lastCollection=t,this.invalidateEverything=false,this.validRect=this.requestedRect.copy();}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=this.orientation==="horizontal"?"x":"y",o=this.orientation==="horizontal"?"maxX":"maxY",r=ot(t,s=>s.type!=="content"),l=r.filter(s=>s.type==="loader"),n=[],a=t?.size===0;a&&(e=0);for(let s of r){let u=(this.rowSize??this.estimatedRowSize??B)+this.gap;if(s.type==="item"&&e+u<this.requestedRect[i]&&!this.isValid(s,e)){e+=u;continue}let m=this.orientation==="horizontal"?this.buildChild(s,e,this.padding,null):this.buildChild(s,this.padding,e,null);if(e=m.layoutInfo.rect[o]+this.gap,n.push(m),s.type==="loader"){let d=l.indexOf(s);l.splice(d,1);}if((s.type==="item"||s.type==="loader")&&e>this.requestedRect[o]){let d=r.indexOf(s);for(let y of l){let g=r.indexOf(y);e+=(g-d-1)*u;let p=this.orientation==="horizontal"?this.buildChild(y,e,this.padding,null):this.buildChild(y,this.padding,e,null);n.push(p),e=p.layoutInfo.rect[o],d=g;}e+=(r.length-d-1)*u;break}}return e=Math.max(e-this.gap,0),e+=a?0:this.padding,this.contentSize=this.orientation==="horizontal"?new f(e,this.virtualizer.size.height):new f(this.virtualizer.size.width,e),n}isValid(e,t){let i=this.layoutNodes.get(e.key),o=this.orientation==="horizontal"?"x":"y";return !this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect[o]&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,o){if(this.isValid(e,this.orientation==="horizontal"?t:i))return this.layoutNodes.get(e.key);let r=this.buildNode(e,t,i);return r.layoutInfo.parentKey=o??null,r.layoutInfo.allowOverflow=true,this.layoutNodes.set(e.key,r),r}buildNode(e,t,i){switch(e.type){case "section":return this.buildSection(e,t,i);case "item":return this.buildItem(e,t,i);case "header":return this.buildSectionHeader(e,t,i);case "loader":return this.buildLoader(e,t,i);case "separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let o=new c(t,i,this.padding,0),r=new S(e.type,e.key,o);return this.orientation==="horizontal"?(o.height=this.virtualizer.contentSize.height-this.padding-i,o.width=e.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??B:0):(o.width=this.virtualizer.contentSize.width-this.padding-t,o.height=e.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??B:0),{layoutInfo:r,validRect:o.intersection(this.requestedRect)}}buildSection(e,t,i){let o=this.virtualizer.collection,r=this.virtualizer.size.width-this.padding-t,l=this.virtualizer.size.height-this.padding-i,n=this.orientation==="horizontal"?new c(t,i,0,l):new c(t,i,r,0),a=new S(e.type,e.key,n),s=this.orientation==="horizontal"?t:i,u=this.orientation==="horizontal"?"x":"y",m=this.orientation==="horizontal"?"maxX":"maxY",d=this.orientation==="horizontal"?"width":"height",y=0,g=[];for(let p of b$2(e,o)){if(p.type==="content")continue;let T=(this.rowSize??this.estimatedRowSize??B)+this.gap;if(s+T<this.requestedRect[u]&&!this.isValid(e,s)){s+=T,y++;continue}let L=this.orientation==="horizontal"?this.buildChild(p,s,i,a.key):this.buildChild(p,t,s,a.key);if(s=L.layoutInfo.rect[m]+this.gap,g.push(L),s>this.requestedRect[m]){s+=([...b$2(e,o)].length-(g.length+y))*T;break}}return s-=this.gap,n[d]=s-(this.orientation==="horizontal"?t:i),{layoutInfo:a,children:g,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let o=this.orientation==="horizontal"?"height":"width",r=this.orientation==="horizontal"?"width":"height",l=this.virtualizer.size[o]-this.padding-(this.orientation==="horizontal"?i:t),n=this.headingSize,a=false;if(n==null){let m=this.layoutNodes.get(e.key),d=m?.layoutInfo;if(d){let y=this.virtualizer.collection.getItem(e.key),g=this.lastCollection?this.lastCollection.getItem(e.key):null;n=m.layoutInfo.rect[r],a=l!==d.rect[o]||y!==g||d.estimatedSize;}else n=e.rendered?this.estimatedHeadingSize:0,a=true;}n==null&&(n=B);let s=this.orientation==="horizontal"?new c(t,i,n,l-i):new c(t,i,l-t,n),u=new S("header",e.key,s);return u.estimatedSize=a,{layoutInfo:u,children:[],validRect:u.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let o=this.orientation==="horizontal"?"height":"width",r=this.orientation==="horizontal"?"width":"height",l=this.virtualizer.size[o]-this.padding-(this.orientation==="horizontal"?i:t),n=this.rowSize,a=false;if(n==null){let m=this.layoutNodes.get(e.key);m?(n=m.layoutInfo.rect[r],a=l!==m.layoutInfo.rect[o]||e!==m.node||m.layoutInfo.estimatedSize):(n=this.estimatedRowSize,a=true);}n==null&&(n=B);let s=this.orientation==="horizontal"?new c(t,i,n,l):new c(t,i,l,n),u=new S(e.type,e.key,s);return u.estimatedSize=a,{layoutInfo:u,children:[],validRect:u.rect.intersection(this.requestedRect),node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return false;let o=this.virtualizer.collection,r=i.layoutInfo,l=this.orientation==="horizontal"?"x":"y",n=this.orientation==="horizontal"?"width":"height";if(r.estimatedSize=false,r.rect[n]!==t[n]){let a=r.copy();a.rect[n]=t[n],i.layoutInfo=a,this.validRect[n]=Math.min(this.validRect[n],r.rect[l]-this.validRect[l]),i.node?.type==="item"&&(this.requestedRect[n]+=a.rect[n]-r.rect[n]),this.updateLayoutNode(e,r,a);let s=r.parentKey!=null?o.getItem(r.parentKey):null;for(;s;)this.updateLayoutNode(s.key,r,a),s=s.parentKey!=null?o.getItem(s.parentKey):null;return true}return false}updateLayoutNode(e,t,i){let o=this.layoutNodes.get(e);o&&(o.validRect=o.validRect.intersection(this.validRect),o.layoutInfo===t&&(o.layoutInfo=i));}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let o=new c(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),r=this.getVisibleLayoutInfos(o),l=null,n=1/0;for(let m of r){if(!m.rect.intersects(o))continue;let d=Math.abs(m.rect.y-t),y=Math.abs(m.rect.maxY-t),g=Math.min(d,y);g<n&&(n=g,l=m.key);}if(l==null||this.virtualizer.collection.size===0)return {type:"root"};let a=this.getLayoutInfo(l);if(!a)return null;let s=a.rect,u={type:"item",key:a.key,dropPosition:"on"};return i(u)?t<=s.y+10&&i({...u,dropPosition:"before"})?u.dropPosition="before":t>=s.maxY-10&&i({...u,dropPosition:"after"})&&(u.dropPosition="after"):t<=s.y+s.height/2&&i({...u,dropPosition:"before"})?u.dropPosition="before":i({...u,dropPosition:"after"})&&(u.dropPosition="after"),u}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=this.orientation==="horizontal"?new c(Math.max(0,t.rect.x-this.dropIndicatorThickness/2),t.rect.y,this.dropIndicatorThickness,t.rect.height):new c(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let o=this.collection.getItem(e.key);if(o){let r=o.level??0,l=this.collection.getKeyAfter(e.key);for(;l!=null;){let n=this.collection.getItem(l);if(!n||n.level<=r)break;t=this.getLayoutInfo(l)||t,l=this.collection.getKeyAfter(l);}}i=this.orientation==="horizontal"?new c(t.rect.maxX-this.dropIndicatorThickness/2,t.rect.y,this.dropIndicatorThickness,t.rect.height):new c(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness);}else i=t.rect;return new S("dropIndicator",e.key+":"+e.dropPosition,i)}};function ot(h,e){let t=[];for(let i of h)e(i)&&t.push(i);return t}var De=48,re=class extends Y{lastCollection=null;columnWidths=new Map;stickyColumnIndices;lastPersistedKeys=null;persistedIndices=new Map;constructor(e){super(e),this.stickyColumnIndices=[];}get collection(){return this.virtualizer.collection}get rowHeight(){return super.rowHeight}get estimatedRowHeight(){return super.estimatedRowHeight}get headingHeight(){return super.headingHeight}get estimatedHeadingHeight(){return super.estimatedHeadingHeight}get loaderHeight(){return super.loaderHeight}columnsChanged(e,t){return !t||e.columns!==t.columns&&e.columns.length!==t.columns.length||e.columns.some((i,o)=>i.key!==t.columns[o].key||i.props.width!==t.columns[o].props.width||i.props.minWidth!==t.columns[o].props.minWidth||i.props.maxWidth!==t.columns[o].props.maxWidth)}shouldInvalidateLayoutOptions(e,t){return e.columnWidths!==t.columnWidths||super.shouldInvalidateLayoutOptions(e,t)}update(e){let t=this.virtualizer.collection;if(e.layoutOptions?.columnWidths){for(let[i,o]of e.layoutOptions.columnWidths)if(this.columnWidths.get(i)!==o){this.columnWidths=e.layoutOptions.columnWidths,e.sizeChanged=true;break}}else if(e.sizeChanged||this.columnsChanged(t,this.lastCollection)){let i=new a$5({});this.columnWidths=i.buildColumnWidths(this.virtualizer.size.width-this.padding*2,t,new Map),e.sizeChanged=true;}super.update(e);}buildCollection(){this.stickyColumnIndices=[];let e=this.virtualizer.collection;for(let r of e.columns)(this.isStickyColumn(r)||e.rowHeaderColumnKeys.has(r.key))&&this.stickyColumnIndices.push(r.index);let t=[],i=0,o=0;if(e.head){for(let r of e)switch(r.type){case "tableheader":{let l=this.buildTableHeader();i=l.layoutInfo.rect.maxY+this.gap,o=Math.max(o,l.layoutInfo.rect.width),this.layoutNodes.set(l.layoutInfo.key,l),t.push(l);break}case "tablebody":case "tablefooter":{let l=this.buildRowGroup(i,r);i=l.layoutInfo.rect.maxY+this.gap,o=Math.max(o,l.layoutInfo.rect.width),this.layoutNodes.set(l.layoutInfo.key,l),t.push(l);break}}i>0&&(i-=this.gap);for(let r of t)r.layoutInfo.rect.width=o;}else {let r=this.buildTableHeader();this.layoutNodes.set(r.layoutInfo.key,r);let l=this.buildBody(r.layoutInfo.rect.maxY+this.gap);l.layoutInfo.rect.width=Math.max(r.layoutInfo.rect.width,l.layoutInfo.rect.width),i=l.layoutInfo.rect.maxY,o=l.layoutInfo.rect.width,t=[r,l];}return this.lastPersistedKeys=null,this.contentSize=new f(o+this.padding*2,i+this.padding),t}buildTableHeader(){let e=this.virtualizer.collection,t=new c(this.padding,this.padding,0,0),i=new S("header",e.head?.key??"header",t);i.isSticky=true,i.zIndex=1;let o=this.padding,r=0,l=[];for(let n of e.headerRows){let a=this.buildChild(n,this.padding,o,i.key);a.layoutInfo.parentKey=i.key,o=a.layoutInfo.rect.maxY,r=Math.max(r,a.layoutInfo.rect.width),a.index=l.length,l.push(a);}return t.width=r,t.height=o-this.padding,{layoutInfo:i,children:l,validRect:i.rect,node:e.head}}buildHeaderRow(e,t,i){let o=new c(t,i,0,0),r=new S("headerrow",e.key,o),l=0,n=[];for(let a of b$2(e,this.virtualizer.collection)){let s=this.buildChild(a,t,i,r.key);s.layoutInfo.parentKey=r.key,t=s.layoutInfo.rect.maxX,l=Math.max(l,s.layoutInfo.rect.height),s.index=n.length,n.push(s);}for(let[a,s]of n.entries())s.layoutInfo.zIndex=n.length-a+1;return this.setChildHeights(n,l),o.height=l,o.width=t-o.x,{layoutInfo:r,children:n,validRect:o,node:e}}setChildHeights(e,t){for(let i of e)i.layoutInfo.rect.height!==t&&(i.layoutInfo=i.layoutInfo.copy(),i.layoutInfo.rect.height=t);}getRenderedColumnWidth(e){let t=this.virtualizer.collection,i=e.colSpan??1,o=e.colIndex??e.index,r=0;for(let l=o;l<o+i;l++){let n=t.columns[l];n?.key!=null&&(r+=this.columnWidths.get(n.key)??0);}return r}getEstimatedHeight(e,t,i,o){let r=false;if(i==null){let l=this.layoutNodes.get(e.key);l?(i=l.layoutInfo.rect.height,r=e!==l.node||t!==l.layoutInfo.rect.width||l.layoutInfo.estimatedSize):(i=o??De,r=true);}return {height:i,isEstimated:r}}getEstimatedRowHeight(){return this.rowHeight??this.estimatedRowHeight??De}buildColumn(e,t,i){let o=this.getRenderedColumnWidth(e),{height:r,isEstimated:l}=this.getEstimatedHeight(e,o,this.headingHeight??this.rowHeight,this.estimatedHeadingHeight??this.estimatedRowHeight),n=new c(t,i,o,r),a=new S(e.type,e.key,n);return a.isSticky=this.isStickyColumn(e),a.zIndex=a.isSticky?2:1,a.estimatedSize=l,{layoutInfo:a,children:[],validRect:a.rect,node:e}}isStickyColumn(e){return false}buildBody(e){let t=this.virtualizer.collection;return this.buildRowGroup(e,t.body)}buildRowGroup(e,t){let i=this.virtualizer.collection,o=new c(this.padding,e,0,0),r=new S("rowgroup",t.key,o),l=e,n=0,a=[],s=this.getEstimatedRowHeight()+this.gap,u=b$2(t,i);for(let d of u){if(e+s<this.requestedRect.y&&!this.isValid(d,e)||e>this.requestedRect.maxY&&d.type!=="loader"){e+=s;continue}let y=this.buildChild(d,this.padding,e,r.key);y.layoutInfo.parentKey=r.key,y.index=a.length,e=y.layoutInfo.rect.maxY+this.gap,n=Math.max(n,y.layoutInfo.rect.width),a.push(y);}return i?.size===0?e=this.virtualizer.size.height:e-=this.gap,o.width=n,o.height=e-l,{layoutInfo:r,children:a,validRect:r.rect.intersection(this.requestedRect),node:t}}buildLoader(e,t,i){let o=super.buildLoader(e,t,i),r=this.virtualizer.collection;return o.layoutInfo.rect.width=this.layoutNodes.get(r.head?.key??"header").layoutInfo.rect.width,o.validRect=o.layoutInfo.rect.intersection(this.requestedRect),o}buildNode(e,t,i){switch(e.type){case "headerrow":return this.buildHeaderRow(e,t,i);case "item":return this.buildRow(e,t,i);case "column":case "placeholder":return this.buildColumn(e,t,i);case "cell":return this.buildCell(e,t,i);case "loader":return this.buildLoader(e,t,i);default:throw new Error("Unknown node type "+e.type)}}buildRow(e,t,i){let o=this.virtualizer.collection,r=new c(t,i,0,0),l=new S("row",e.key,r),n=[],a=0;for(let s of b$2(e,o))if(s.type==="cell")if(t>this.requestedRect.maxX){let u=this.layoutNodes.get(s.key);if(u)u.layoutInfo.rect.x=t,t+=u.layoutInfo.rect.width;else break}else {let u=this.buildChild(s,t,i,l.key);t=u.layoutInfo.rect.maxX,a=Math.max(a,u.layoutInfo.rect.height),u.index=n.length,n.push(u);}return this.setChildHeights(n,a),r.width=this.layoutNodes.get(o.head?.key??"header").layoutInfo.rect.width,r.height=a,{layoutInfo:l,children:n,validRect:r.intersection(this.requestedRect),node:e}}buildCell(e,t,i){let o=this.getRenderedColumnWidth(e),{height:r,isEstimated:l}=this.getEstimatedHeight(e,o,this.rowHeight,this.estimatedRowHeight),n=new c(t,i,o,r),a=new S(e.type,e.key,n);return a.isSticky=this.isStickyColumn(e),a.zIndex=a.isSticky?2:1,a.estimatedSize=l,{layoutInfo:a,children:[],validRect:n,node:e}}getVisibleLayoutInfos(e){if(e.height>1){let i=this.getEstimatedRowHeight();e.y=Math.floor(e.y/i)*i,e.height=Math.ceil(e.height/i)*i;}this.layoutIfNeeded(e);let t=[];this.buildPersistedIndices();for(let i of this.rootNodes)t.push(i.layoutInfo),this.addVisibleLayoutInfos(t,i,e);return t}addVisibleLayoutInfos(e,t,i){if(!(!t.children||t.children.length===0))switch(t.layoutInfo.type){case "header":{for(let o of t.children)e.push(o.layoutInfo),this.addVisibleLayoutInfos(e,o,i);break}case "rowgroup":{let o=this.binarySearch(t.children,i.topLeft,"y"),r=this.binarySearch(t.children,i.bottomRight,"y"),l=this.persistedIndices.get(t.layoutInfo.key),n=0;for(;l&&n<l.length&&l[n]<o;){let s=l[n];s<t.children.length&&(e.push(t.children[s].layoutInfo),this.addVisibleLayoutInfos(e,t.children[s],i)),n++;}for(let s=o;s<=r;s++){for(;l&&n<l.length&&l[n]<s;)n++;e.push(t.children[s].layoutInfo),this.addVisibleLayoutInfos(e,t.children[s],i);}for(;l&&n<l.length;){let s=l[n++];s<t.children.length&&(e.push(t.children[s].layoutInfo),this.addVisibleLayoutInfos(e,t.children[s],i));}let a=t.children.at(-1);a?.layoutInfo.type==="loader"&&e.push(a.layoutInfo);break}case "headerrow":case "row":{let o=this.binarySearch(t.children,i.topLeft,"x"),r=this.binarySearch(t.children,i.topRight,"x"),l=0,n=this.persistedIndices.get(t.layoutInfo.key)||this.stickyColumnIndices;for(;l<n.length&&n[l]<o;){let a=n[l];a<t.children.length&&e.push(t.children[a].layoutInfo),l++;}for(let a=o;a<=r;a++){for(;l<n.length&&n[l]<a;)l++;e.push(t.children[a].layoutInfo);}for(;l<n.length;){let a=n[l++];a<t.children.length&&e.push(t.children[a].layoutInfo);}break}default:throw new Error("Unknown node type "+t.layoutInfo.type)}}binarySearch(e,t,i){let o=0,r=e.length-1;for(;o<=r;){let l=o+r>>1,n=e[l];if(i==="x"&&n.layoutInfo.rect.maxX<=t.x||i==="y"&&n.layoutInfo.rect.maxY<=t.y)o=l+1;else if(i==="x"&&n.layoutInfo.rect.x>t.x||i==="y"&&n.layoutInfo.rect.y>t.y)r=l-1;else return l}return Math.max(0,Math.min(e.length-1,o))}buildPersistedIndices(){if(this.virtualizer.persistedKeys!==this.lastPersistedKeys){this.lastPersistedKeys=this.virtualizer.persistedKeys,this.persistedIndices.clear();for(let e of this.virtualizer.persistedKeys){let t=this.layoutNodes.get(e)?.layoutInfo;for(;t&&t.parentKey;){let i=this.virtualizer.collection.getItem(t.key),o=this.persistedIndices.get(t.parentKey);o||(o=i?.type==="cell"||i?.type==="column"?[...this.stickyColumnIndices]:[],this.persistedIndices.set(t.parentKey,o));let r=this.layoutNodes.get(t.key)?.index;r!=null&&!o.includes(r)&&o.push(r),t=this.layoutNodes.get(t.parentKey)?.layoutInfo;}}for(let e of this.persistedIndices.values())e.sort((t,i)=>t-i);}}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let o=new c(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),r=this.getVisibleLayoutInfos(o),l=null,n=1/0;for(let m of r){if(m.type!=="row"||!m.rect.intersects(o))continue;let d=Math.abs(m.rect.y-t),y=Math.abs(m.rect.maxY-t),g=Math.min(d,y);g<n&&(n=g,l=m.key);}if(l==null||this.virtualizer.collection.size===0)return {type:"root"};let a=this.getLayoutInfo(l);if(!a)return null;let s=a.rect,u={type:"item",key:a.key,dropPosition:"on"};return i(u)?t<=s.y+10&&i({...u,dropPosition:"before"})?u.dropPosition="before":t>=s.maxY-10&&i({...u,dropPosition:"after"})&&(u.dropPosition="after"):t<=s.y+s.height/2&&i({...u,dropPosition:"before"})?u.dropPosition="before":i({...u,dropPosition:"after"})&&(u.dropPosition="after"),u}getDropTargetLayoutInfo(e){let t=super.getDropTargetLayoutInfo(e);return t.parentKey=this.virtualizer.collection.getItem(e.key)?.parentKey??null,t}};var Ie=class extends S{column=0;index=0;copy(){let e=super.copy();return e.column=this.column,e.index=this.index,e}},K={minItemSize:new f(200,200),maxItemSize:new f(1/0,1/0),minSpace:new f(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},le=class extends F{contentSize=new f;layoutInfos=new Map;numColumns=0;dropIndicatorThickness=2;margin=0;shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||!(e.minItemSize||K.minItemSize).equals(t.minItemSize||K.minItemSize)||!(e.maxItemSize||K.maxItemSize).equals(t.maxItemSize||K.maxItemSize)||!(e.minSpace||K.minSpace).equals(t.minSpace||K.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight}update(e){let{minItemSize:t=K.minItemSize,maxItemSize:i=K.maxItemSize,minSpace:o=K.minSpace,maxHorizontalSpace:r=K.maxSpace,maxColumns:l=K.maxColumns,dropIndicatorThickness:n=K.dropIndicatorThickness,loaderHeight:a=K.loaderHeight}=e.layoutOptions||{};this.dropIndicatorThickness=n;let s=this.virtualizer.size.width,u=Math.min(i.width,s),m=Number.isFinite(i.height)?i.height:Math.floor(t.height/t.width*u),d=Math.floor(s/(t.width+o.width)),y=Math.max(1,Math.min(l,d)),g=s-o.width*Math.max(0,y),p=Math.floor(g/y);p=Math.max(t.width,Math.min(u,p));let T=(p-t.width)/Math.max(1,u-t.width),L=t.height+Math.floor((m-t.height)*T);L=Math.max(t.height,Math.min(m,L));let E=Math.min(Math.max(r,o.width),Math.floor((s-y*p)/(y+1)));this.margin=Math.floor((s-y*p-E*(y+1))/2);let C=Array(y).fill(o.height),N=new Map,k=0,j=(z,v)=>{let I=this.layoutInfos.get(z),x=L,P=true;I&&(x=I.rect.height/I.rect.width*p,P=e.sizeChanged||I.estimatedSize||I.content!==v);let O=(y===this.numColumns&&I&&I.index===k&&I.rect.y<this.virtualizer.visibleRect.maxY?I.column:void 0)??C.reduce((ae,se,te)=>se<C[ae]?te:ae,0),D=E+O*(p+E)+this.margin,_=C[O],W=new c(D,_,p,x),H=new Ie(v.type,z,W);H.estimatedSize=P,H.allowOverflow=true,H.content=v,H.column=O,H.index=k++,N.set(z,H),C[O]+=H.rect.height+o.height;},M=this.virtualizer.collection,q=0;for(let z of M)if(z.type==="skeleton"){let v=[...C];for(;!C.every((I,x)=>I!==v[x])||Math.min(...C)<this.virtualizer.size.height;){let I=`${z.key}-${q++}`,x=this.layoutInfos.get(I)?.content||{...z};j(I,x);}break}else z.type!=="loader"&&j(z.key,z);let w=M?.size===0&&M.getItem(M.getFirstKey())?.type!=="skeleton"?0:Math.max(...C),b=M.getItem(M.getLastKey());if(b?.type==="loader"){(q>0||!b.props.isLoading)&&(a=0);let z=s-E*2,v=new c(E,w,z,a),I=new S("loader",b.key,v);N.set(b.key,I),w=I.rect.maxY;}this.contentSize=new f(this.virtualizer.size.width,w),this.layoutInfos=N,this.numColumns=y;}getLayoutInfo(e){return this.layoutInfos.get(e)}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let i of this.layoutInfos.values())(i.rect.intersects(e)||this.virtualizer.isPersistedKey(i.key)||i.type==="loader")&&t.push(i);return t}updateItemSize(e,t){let i=this.layoutInfos.get(e);if(!t||!i)return false;if(t.height!==i.rect.height){let o=i.copy();return o.rect.height=t.height,o.estimatedSize=false,this.layoutInfos.set(e,o),true}return false}getKeyRightOf(e){let t=this.getLayoutInfo(e);if(!t)return null;let i=new c(t.rect.maxX,t.rect.y,this.virtualizer.visibleRect.maxX-t.rect.maxX,t.rect.height),o=this.getVisibleLayoutInfos(i),r=null,l=1/0;for(let n of o){if(n.key===e)continue;let a=n.rect.x-i.x,s=Math.min(n.rect.maxY,i.maxY)-Math.max(n.rect.y,i.y),u=a-s;u<l&&(l=u,r=n.key);}return r}getKeyLeftOf(e){let t=this.getLayoutInfo(e);if(!t)return null;let i=new c(0,t.rect.y,t.rect.x,t.rect.height),o=this.getVisibleLayoutInfos(i),r=null,l=1/0;for(let n of o){if(n.key===e)continue;let a=i.maxX-n.rect.maxX,s=Math.min(n.rect.maxY,i.maxY)-Math.max(n.rect.y,i.y),u=a-s;u<l&&(l=u,r=n.key);}return r}getKeyRange(e,t){let i=this.getLayoutInfo(e),o=this.getLayoutInfo(t);if(!i||!o)return [];let r=i.rect.union(o.rect),l=[];for(let n of this.layoutInfos.values())r.intersection(n.rect).area>n.rect.area/2&&l.push(n.key);return l}getDropTargetFromPoint(e,t){if(this.layoutInfos.size===0)return {type:"root"};e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let i=this.virtualizer.keyAtPoint(new R(e,t));return i==null?{type:"root"}:{type:"item",key:i,dropPosition:"on"}}};var be=new WeakMap;function rt(h=false,e=document){if(!be.has(e)||h){let t=e.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";let o=e.createElement("div"),r=o.style;r.width="100px",r.height="100px",t.appendChild(o),e.body.appendChild(t);let l;t.scrollLeft>0?l="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?l="negative":l="positive-ascending"),e.body.removeChild(t),be.set(e,l);}return be.get(e)}function We(h,e){let{scrollLeft:t}=h;if(e==="rtl"){let{scrollWidth:i,clientWidth:o}=h;switch(rt(false,a$4(h))){case "negative":t=-t;break;case "positive-descending":t=i-o-t;break}}return t}function at(h,e){e=a(e);let{scrollViewProps:t,contentProps:i}=pe(h,e);return jsx("div",{role:"presentation",...t,ref:e,children:jsx("div",{...i,children:h.children})})}et.forwardRef(at);function pe(h,e$1){let{contentSize:t$1,onVisibleRectChange:i,onSizeChange:o,innerStyle:r,onScrollStart:l,onScrollEnd:n,scrollDirection:a="both",onScroll:s,allowsWindowScrolling:u,...m}=h,d=useRef({scrollPosition:new R,size:new f,viewportOffset:new R,viewportSize:new f,scrollEndTime:0,scrollTimeout:null,isScrolling:false,lastVisibleRect:new c}).current,{direction:y}=b(),g$1=useCallback(()=>{let w=u?new c(d.viewportOffset.x+d.scrollPosition.x,d.viewportOffset.y+d.scrollPosition.y,Math.max(0,Math.min(d.size.width-d.viewportOffset.x,d.viewportSize.width)),Math.max(0,Math.min(d.size.height-d.viewportOffset.y,d.viewportSize.height))):new c(d.scrollPosition.x,d.scrollPosition.y,d.size.width,d.size.height);(w.area>0||d.lastVisibleRect.area>0)&&(i(w),d.lastVisibleRect=w);},[d,u,i]),[p,T]=useState(false),L=useCallback(w=>{let b=g(w);if(!e(b,e$1.current))return;if(s&&b===e$1.current&&s(w),b!==e$1.current){let v=e$1.current.getBoundingClientRect(),I=v.x<0?-v.x:0,x=v.y<0?-v.y:0;if(I===d.viewportOffset.x&&x===d.viewportOffset.y)return;d.viewportOffset=new R(I,x);}else {let v=b.scrollTop,I=We(b,y);d.scrollPosition=new R(Math.max(0,Math.min(I,t$1.width-d.size.width)),Math.max(0,Math.min(v,t$1.height-d.size.height)));}let z=b$1(w.currentTarget);flushSync(()=>{g$1(),d.isScrolling||(d.isScrolling=true,T(true),z.dispatchEvent(new z.Event("tk.disconnect-observer")),l&&l());let v=Date.now();d.scrollEndTime<=v+50&&(d.scrollEndTime=v+300,d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.scrollTimeout=setTimeout(()=>{d.isScrolling=false,T(false),d.scrollTimeout=null,z.dispatchEvent(new z.Event("tk.connect-observer")),n&&n();},300));});},[s,e$1,y,d,t$1,g$1,l,n]);a$1(e$1,"scroll",L),useEffect(()=>()=>{if(d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.isScrolling){let w=b$1(e$1.current);w.dispatchEvent(new w.Event("tk.connect-observer"));}},[]);let E=useRef(false),C=useCallback(w=>{let b=e$1.current;if(!b||E.current)return;E.current=true;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,v=b$1(b),I=Object.getOwnPropertyNames(v.HTMLElement.prototype).includes("clientWidth"),x=Object.getOwnPropertyNames(v.HTMLElement.prototype).includes("clientHeight"),P=b.clientWidth,X=b.clientHeight,O=z&&!I?1/0:P,D=z&&!x?1/0:X,_=window.innerWidth,W=window.innerHeight,H=d.viewportSize.width!==_||d.viewportSize.height!==W;H&&(d.viewportSize=new f(_,W)),(d.size.width!==O||d.size.height!==D||H)&&(d.size=new f(O,D),w(()=>{g$1(),o?.(d.size);}),(!z&&P!==b.clientWidth||X!==b.clientHeight)&&(d.size=new f(b.clientWidth,b.clientHeight),w(()=>{g$1(),o?.(d.size);}))),E.current=false;},[e$1,d,g$1,o]),N=t(C);a$2(()=>{d.viewportSize=new f(window.innerWidth,window.innerHeight);let w=()=>{N(flushSync);};return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[d]);let k=useRef(null),[j,M]=useState({});a$2(()=>{if(!E.current&&(k.current==null||!t$1.equals(k.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){M({}),k.current=t$1;return}else queueMicrotask(()=>N(flushSync));k.current=t$1;}),a$2(()=>{N(w=>w());},[j]);let q=useCallback(()=>{C(flushSync);},[C]);a$3({ref:e$1,box:"border-box",onResize:q});let A={padding:0,...m.style};return a==="horizontal"?(A.overflowX="auto",A.overflowY="hidden"):a==="vertical"||t$1.width===d.size.width?(A.overflowY="auto",A.overflowX="hidden"):A.overflow="auto",r={width:Number.isFinite(t$1.width)?t$1.width:void 0,height:Number.isFinite(t$1.height)?t$1.height:void 0,pointerEvents:p?"none":"auto",position:"relative",...r},{isScrolling:p,scrollViewProps:{...m,style:A},contentProps:{role:"presentation",style:r}}}function qe(h){let{layoutInfo:e,virtualizer:t,ref:i}=h,o=e?.key,r=useCallback(()=>{if(o!=null&&i.current){let l=ut(i.current);t.updateItemSize(o,l);}},[t,o,i]);return a$2(()=>{e?.estimatedSize&&r();}),{updateSize:r}}function ut(h){let e=h.style.height;h.style.height="";let t=new f(h.scrollWidth,h.scrollHeight);return h.style.height=e,t}function ge(h){let{style:e,className:t,layoutInfo:i,virtualizer:o,parent:r,children:l}=h,{direction:n}=b(),a=useRef(null);return qe({layoutInfo:i,virtualizer:o,ref:a}),jsx("div",{role:"presentation",ref:a,className:t,style:{...Xe(i,n,r),...e},children:l})}var Ae=new WeakMap;function Xe(h,e,t){let i=e==="rtl"?"right":"left",o=Ae.get(h);if(o&&o[i]!=null){if(!t)return o;let n=h.rect.y-t.rect.y,a=h.rect.x-t.rect.x;if(o.top===n&&o[i]===a)return o}let r={top:h.rect.y-(t&&!(t.allowOverflow&&h.isSticky)?t.rect.y:0),[i]:h.rect.x-(t&&!(t.allowOverflow&&h.isSticky)?t.rect.x:0),width:h.rect.width,height:h.rect.height};Object.entries(r).forEach(([n,a])=>{Number.isFinite(a)||(r[n]=void 0);});let l={position:h.isSticky?"sticky":"absolute",display:h.isSticky?"inline-block":void 0,overflow:h.allowOverflow?"visible":"hidden",opacity:h.opacity,zIndex:h.zIndex,transform:h.transform??void 0,contain:"size layout style",...r};return Ae.set(h,l),l}var Ue=createContext(null),Be=createContext(null);function Je(h){let{children:e,layout:t,layoutOptions:i}=h,o=useMemo(()=>typeof t=="function"?new t:t,[t]),r=useMemo(()=>({isVirtualized:true,layoutDelegate:o,dropTargetDelegate:o.getDropTargetFromPoint?o:void 0,CollectionRoot:mt,CollectionBranch:ft}),[o]);return jsx(p.Provider,{value:r,children:jsx(Be.Provider,{value:{layout:o,layoutOptions:i},children:e})})}function mt({collection:h,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){let{layout:o,layoutOptions:r}=useContext(Be),l=o.useLayoutOptions?.(),n=ze({allowsWindowScrolling:true,layout:o,collection:h,renderView:(s,u)=>u?.render?.(u),onVisibleRectChange(s){let u=t?.current;u&&(u.scrollLeft=s.x,u.scrollTop=s.y);},persistedKeys:e,layoutOptions:useMemo(()=>r&&l?{...r,...l}:r||l,[r,l])}),{contentProps:a}=pe({onVisibleRectChange:n.setVisibleRect,onSizeChange:n.setSize,contentSize:n.contentSize,onScrollStart:n.startScrolling,onScrollEnd:n.endScrolling,allowsWindowScrolling:true},t);return jsx("div",{...a,children:jsx(Ue.Provider,{value:n,children:$e(null,n.visibleViews,i)})})}function ft({parent:h,renderDropIndicator:e}){let i=useContext(Ue).virtualizer.getVisibleView(h.key);return $e(i,Array.from(i.children),e)}function $e(h,e,t){return e.map(i=>pt(h,i,t))}function pt(h,e,t){let i=jsx(ge,{layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:h?.layoutInfo,children:e.rendered},e.key),{collection:o$1,layout:r}=e.virtualizer,l=e.content;return l?.type==="item"&&t&&r.getDropTargetLayoutInfo&&(i=jsxs(et.Fragment,{children:[Ge(h,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,o(o$1,l,n=>Ge(h,e,n,t))]},e.key)),i}function Ge(h,e,t,i){let o=i(t);if(o){let r=e.virtualizer.layout.getDropTargetLayoutInfo(t);o=jsx(ge,{layoutInfo:r,virtualizer:e.virtualizer,parent:h?.layoutInfo,children:o});}return o}var Q=class extends oe{useLayoutOptions(){let{direction:e}=b();return useMemo(()=>({direction:e}),[e])}};var ee=class extends re{useLayoutOptions(){let e=useContext(b$3);return useMemo(()=>({columnWidths:e?.columnWidths}),[e?.columnWidths])}};var ne=class extends Q{useLayoutOptions(){let{direction:e}=b();return {direction:e}}};var Qo={LIST_BOX:{layout:Y,layoutOptions:{rowHeight:36}},TREE_VIEW:{layout:Y,layoutOptions:{rowHeight:44}},IMAGE_GALLERY:{layout:ne,layoutOptions:{minItemSize:new f(114,167),maxItemSize:new f(114,167),dropIndicatorThickness:2,maxHorizontalSpace:0,minSpace:new f(4,16),preserveAspectRatio:true}},TABLE:{layout:ee,layoutOptions:{rowHeight:48,headingHeight:48}}};export{f as a,Y as b,le as c,Je as d,Q as e,ee as f,ne as g,Qo as h};
|
package/dist/chunk-TVENHRYC.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-ULCYKB34.mjs';import {a as a$4,b as b$2}from'./chunk-K6MB234H.mjs';import {a as a$1,b}from'./chunk-WRQ4FPJE.mjs';import {d}from'./chunk-RCBUNCHV.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {b as b$1,c}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import S,{useEffect}from'react';import {jsx,jsxs}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={xxs:8,xs:12,sm:16,md:20,lg:24},_=S.forwardRef((o,a$3)=>{let t=a(a$3),{tooltipProps:n}=a$1(o,t);return n?jsx(a$2,{...n,children:jsx(u,{...o,ref:t})}):jsx(u,{...o,ref:t})});_.displayName="ActionIconButton";var u=S.forwardRef((o,a)=>{let[t,n]=e(o,a,d),{className:i,style:s,icon:V,size:m="md",variant:p="primary",UNSAFE_isVisuallyInteractiveOnly:r,elementType:f=r?"div":"button",isExcludedFromRovingFocus:b$3,isDisabled:l,"data-block-id":g,"data-block-class":w,"aria-label":c$1,"aria-labelledby":d$1,slot:Z,...I}=t;useEffect(()=>{!c$1&&!d$1&&!r&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[c$1,d$1,r]);let{buttonProps:U,isPressed:h,ref:z,isFocusVisible:y,isFocused:D,isHovered:B,uiStateOptions:A}=b({...I,"aria-label":c$1,"aria-labelledby":d$1,isDisabled:l,excludeFromTabOrder:I.excludeFromTabOrder??b$3,elementType:f}),H=a$3({"data-block-id":g,"data-block-class":w,"data-focused":D,"data-focus-visible":y,"data-disabled":l,"data-hovered":B,"data-pressed":h,"data-bui-avoid-focus":b$3});return jsxs(f,{...c(U,H),className:a$5(b$2({variant:p,size:m,isDisabled:!!l,isFocusVisible:y,isHovered:B}),"BaselineUI-ActionIconButton",typeof i=="function"?i(A):i),ref:b$1(n,z),style:typeof s=="function"?s(A):s,...r&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(V,{role:"presentation",size:G[m]}),p==="popover"&&jsx(CaretDownIcon,{size:8,className:a$4})]})});u.displayName="ActionIconButtonCore";export{_ as a};
|
package/dist/chunk-UCZZLAPB.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {g,e,d,f,h,b,a,c,i}from'./chunk-YVYMYKYN.mjs';import {y}from'./chunk-OMT6ZWSV.mjs';import {useMemo}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(o){return {dragAndDropHooks:useMemo(()=>{let{onDrop:m,onInsert:d$1,onItemDrop:C,onReorder:u,onMove:I,onRootDrop:f$1,getItems:T,renderDragPreview:S,renderDropIndicator:O,dropTargetDelegate:v}=o,E=!!T,A=!!(m||d$1||C||u||I||f$1),e$1={};return E&&(e$1.useDraggableCollectionState=function(r){return g({...r,...o})},e$1.useDraggableCollection=e,e$1.useDraggableItem=d,e$1.DragPreview=f,e$1.renderDragPreview=S,e$1.isVirtualDragging=y),A&&(e$1.useDroppableCollectionState=function(r){return h({...r,...o})},e$1.useDroppableItem=b,e$1.useDroppableCollection=function(r,P,R){return a({...r,...o},P,R)},e$1.useDropIndicator=c,e$1.renderDropIndicator=O,e$1.dropTargetDelegate=v,e$1.ListDropTargetDelegate=i),e$1},[o])}}export{k as a};
|
package/dist/chunk-ULCYKB34.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-TIHKHXTS.mjs';import {a as a$1}from'./chunk-FP5EWPOF.mjs';import {a as a$5}from'./chunk-TK4QXU3W.mjs';import {a as a$3}from'./chunk-THRAJMLX.mjs';import {a as a$6}from'./chunk-FOEGHU3P.mjs';import {a as a$2}from'./chunk-F3HQNHR5.mjs';import {a as a$9}from'./chunk-4PYEGHW5.mjs';import {c as c$1,d}from'./chunk-BGMVPFYK.mjs';import {c as c$3,b as b$1}from'./chunk-Y4DRSGEJ.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {c,b}from'./chunk-TZ4MVY4E.mjs';import {a as a$7}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$a}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import A,{useRef,useMemo,useEffect}from'react';import {motion}from'motion/react';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
|
-
function C(s,o,t){let a=a$7(s,{labelable:true}),{hoverProps:n}=a$8({onHoverStart:()=>o?.open(true),onHoverEnd:()=>o?.close()},t);return {tooltipProps:c(a,n,{role:"tooltip"})}}function S(s,o,t){let{isDisabled:a,trigger:n,shouldCloseOnPress:c$1=true}=s,r=c$2(),e=useRef(false),l=useRef(false),f=()=>{(e.current||l.current)&&o.open(l.current);},u=d=>{!e.current&&!l.current&&o.close(d);};useEffect(()=>{let d=F=>{t&&t.current&&F.key==="Escape"&&(F.stopPropagation(),o.close(true));},z=a$a(t?.current);if(o.isOpen)return z.addEventListener("keydown",d,true),()=>{z.removeEventListener("keydown",d,true);}},[t,o]);let T=()=>{n!=="focus"&&(c$3()==="pointer"?e.current=true:e.current=false,f());},p=()=>{n!=="focus"&&(l.current=false,e.current=false,u());},y=()=>{c$1&&(l.current=false,e.current=false,u(true));},i=()=>{b$1()&&(l.current=true,f());},v=()=>{l.current=false,e.current=false,u(true);},{hoverProps:x}=a$8({isDisabled:a,onHoverStart:T,onHoverEnd:p}),{focusableProps:g}=d({isDisabled:a,onFocus:i,onBlur:v},t);return {triggerProps:{"aria-describedby":o.isOpen?r:void 0,...c(g,x,{onPointerDown:y,onKeyDown:y}),tabIndex:void 0},tooltipProps:{id:r}}}var ue=1500,Z=500,P={},ce=0,O=false,m=null,_=null;function E(s={}){let{delay:o=ue,closeDelay:t=Z}=s,{isOpen:a,open:n,close:c}=a$9(s),r=useMemo(()=>`${++ce}`,[]),e=useRef(null),l=useRef(c),f=()=>{P[r]=p;},u=()=>{for(let i in P)i!==r&&(P[i](true),delete P[i]);},T=()=>{e.current&&clearTimeout(e.current),e.current=null,u(),f(),O=true,n(),m&&(clearTimeout(m),m=null),_&&(clearTimeout(_),_=null);},p=i=>{i||t<=0?(e.current&&clearTimeout(e.current),e.current=null,l.current()):e.current||(e.current=setTimeout(()=>{e.current=null,l.current();},t)),m&&(clearTimeout(m),m=null),O&&(_&&clearTimeout(_),_=setTimeout(()=>{delete P[r],_=null,O=false;},Math.max(Z,t)));},y=()=>{u(),f(),!a&&!O?(m&&clearTimeout(m),m=setTimeout(()=>{m=null,O=true,T();},o)):a||T();};return useEffect(()=>{l.current=c;},[c]),useEffect(()=>()=>{e.current&&clearTimeout(e.current),P[r]&&delete P[r];},[r]),{isOpen:a,open:i=>{!i&&o>0&&!e.current?y():T();},close:p}}var ee=a({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),oe=a({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6gh _1yep5z6f3",inverse:"_1yep5z6d7 _1yep5z6g9 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var h=A.forwardRef(({children:s,state:o,overlayProps:t,arrowProps:a,placement:n="bottom",variant:c$1,size:r,tooltipProps:e,includeArrow:l},f)=>{let u=useRef(null),{tooltipProps:T}=C({isOpen:o.isOpen},o,u),p=n==="center"?"bottom":n,{transitionProps:y}=a$1({placement:n});return jsxs(motion.span,{...c(t,y),ref:b(f,u),"data-placement":p,children:[l?jsx("div",{className:ee({placement:p,variant:c$1}),...a}):null,jsx("div",{...c(T,e),className:oe({variant:c$1,size:r}),children:s})]})});h.displayName="TooltipContent";var re=A.forwardRef(({children:s,placement:o="bottom",delay:t=1e3,closeDelay:a=500,variant:n="default",size:c="md",includeArrow:r=true,portalContainer:e,className:l,style:f,"data-block-id":u,"data-block-class":T,...p},y)=>{let i=A.useRef(null),v=A.useRef(null),x=!p.text||p.isDisabled,g=E({...p,delay:t,closeDelay:a,isDisabled:x}),{triggerProps:d,tooltipProps:z}=S({...p,isDisabled:x},g,i),F=a$2(e),{overlayProps:ie,arrowProps:le,placement:pe,updatePosition:L}=a$3({arrowSize:r?13:0,targetRef:i,arrowBoundaryOffset:r?8:0,offset:r?12:2,overlayRef:v,placement:o,isOpen:g.isOpen,...p});a$4({ref:v,threshold:1,onIntersect:L,isDisabled:!g.isOpen}),a$5({ref:i,onResize:L,isDisabled:!g.isOpen});let se=A.isValidElement(s)?jsx(c$1,{...d,ref:i,children:s}):typeof s=="function"?s({triggerProps:d,triggerRef:i}):null;return jsxs(Fragment,{children:[se,g.isOpen?jsx(a$6,{disableFocusManagement:true,portalContainer:F,className:l,style:f,"data-block-id":u,"data-block-class":T,children:jsx(h,{ref:b(y,v),state:g,arrowProps:le,overlayProps:ie,placement:pe??"bottom",tooltipProps:z,variant:n,size:c,includeArrow:r,children:p.text})}):null]})});re.displayName="Tooltip";export{re as a};
|
package/dist/chunk-UOMNE4F4.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b as b$1}from'./chunk-Q5UMLFN3.mjs';import {a as a$9}from'./chunk-TVENHRYC.mjs';import {a as a$4,b as b$2}from'./chunk-KUEDQO7P.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$6}from'./chunk-YS3Y5KGV.mjs';import {a as a$7}from'./chunk-K6X2BHPP.mjs';import {a as a$1}from'./chunk-BGMVPFYK.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {c as c$1}from'./chunk-JDLUGVXG.mjs';import {f,a as a$2}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import b,{useContext,useEffect,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AnimatePresence,motion}from'motion/react';import {ChevronRightIcon}from'@baseline-ui/icons/8';/**
|
|
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 J="_1yep5z6m3",U=a({defaultClassName:"_1kvz17db _1yep5z6lq _1yep5z6ls",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),X=a({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6lq _1yep5z6lr",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),G="_1kvz17de",Q="_1yep5z6ez _1yep5z6dy",W=a({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6lq _1yep5z6lt",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ga",false:"_1yep5z6gb"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),Y="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Z=a({defaultClassName:"_1kvz17d7 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{isDisabled:{true:"_1yep5z6f2",false:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var H=b.forwardRef(({children:f$1,className:p,style:z},e)=>{let{headers:r}=useContext(u),{disabledKeys:a}=useContext(u),{keyboardProps:y}=a$1({onKeyDown:t=>{let d=f(a$2(t.target)),s=[...r?.keys()||[]].findIndex(n=>{let o=r?.get(n)?.current;return o?o===d:false}),m=r?.get(s||0),i=r?.size||0,c=n=>{let o=r.get(n-1<0?i-1:n-1);a?.has(o?.current?.dataset.key||"")?c(n-1):o?.current?.focus();},l=n=>{let o=r.get((n+1)%i);a?.has(o?.current?.dataset.key||"")?l(n+1):o?.current?.focus();};if(m)switch(t.key){case "Home":{t.preventDefault(),l(-1);break}case "End":{t.preventDefault(),c(i);break}case "ArrowDown":{t.preventDefault(),l(s);break}case "ArrowUp":{t.preventDefault(),c(s);break}default:t.continuePropagation();}}});return jsx("div",{...b$1(y),style:z,className:a$3(J,p),ref:e,children:b.Children.map(f$1,(t,d)=>b.cloneElement(t,{index:d}))})});H.displayName="AccordionBase";var u=b.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),oe=b.forwardRef(({children:f,disabledKeys:p,defaultExpandedKeys:z=new Set,expandedKeys:e,expansionMode:r="multiple",onChange:a,className:y,style:t},d)=>{let[s,m]=b.useState(z),i=b.useRef(new Map).current,[c,l]=b.useState(r);useEffect(()=>{l(r);},[r]),useEffect(()=>{a?.(s);},[s,a]);let n=useMemo(()=>({expandedKeys:e||s,setExpandedKeys:e?()=>{}:m,disabledKeys:p,headers:i,expansionMode:c}),[e,s,p,i,c]);return jsx(u.Provider,{value:n,children:jsx(a$4,{children:jsx(H,{className:y,style:t,ref:d,children:f})})})});oe.displayName="Accordion";var K=b.forwardRef(({title:f,actions:p,controlId:z,value:e,id:r,index:a,subLabel:y,showActionsOnTriggerOnly:t},d$1)=>{let s=b.useRef(null),{expandedKeys:m,setExpandedKeys:i,expansionMode:c$1,disabledKeys:l,headers:n}=useContext(u),o=l?.has(e),S=b$2();a$5(S);let{focusNext:ne,focusPrevious:ae}=S,{keyboardProps:ie}=a$1({onKeyDown:_=>{_.key==="ArrowRight"?ne({wrap:true}):_.key==="ArrowLeft"?ae({wrap:true}):_.continuePropagation();},isDisabled:o});useEffect(()=>{a$5(typeof a=="number","AccordionItem must have an index"),n?.set(a,s);},[a,n]);let M=()=>{i(_=>{let v=new Set(_);return v.has(e)?v.delete(e):(c$1==="single"&&v.clear(),v.add(e)),v});},{buttonProps:ce}=a$6({"aria-expanded":m.has(e),"aria-controls":z,onPress:M,isDisabled:o},s),{pressProps:pe}=d({onPress:M,isDisabled:o}),{focusProps:de,isFocusVisible:me}=a$7(),{hoverProps:le,isHovered:I}=a$8({isDisabled:o}),{focusProps:ye,isFocusVisible:ue}=a$7({within:true}),fe=m.has(e);return jsxs("h3",{...c(ie,pe,le,ye),className:W({isFocusVisible:me,isHovered:I,isDisabled:o}),ref:d$1,children:[jsxs("div",{className:Z({isDisabled:!!o}),children:[jsx(ChevronRightIcon,{className:X({isExpanded:fe}),size:8}),jsx("button",{...c(ce,de),id:r,"data-key":e,className:Y,ref:s,children:f})]}),p?.length?jsx("div",{"data-testid":"action-buttons",className:U({showActionsOnTriggerOnly:t,isTriggered:ue||I}),children:p.map((_,v)=>jsx(a$9,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:o,..._},v))}):null,y?jsx("div",{className:Q,children:y}):null]})});K.displayName="AccordionHeader";var se=b.forwardRef(({title:f,actions:p,children:z,value:e,index:r,subLabel:a,style:y,className:t,showActionsOnTriggerOnly:d},s)=>{let m=c$1(),i=c$1(),{expandedKeys:c}=useContext(u),l=c.has(e);return jsxs(Fragment,{children:[jsx(a$4,{children:jsx(K,{value:e,actions:p,id:i,title:f,controlId:m,ref:s,index:r,subLabel:a,showActionsOnTriggerOnly:d})}),jsx(AnimatePresence,{initial:false,children:l?jsx(motion.section,{role:"region","aria-labelledby":i,id:m,className:G,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsx("div",{style:y,className:t,children:z})}):null})]})});se.displayName="AccordionItem";export{oe as a,se as b};
|
package/dist/chunk-V3L4SVVF.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {c}from'./chunk-WWSGOGLA.mjs';import {a as a$1}from'./chunk-KUEDQO7P.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {b as b$2}from'./chunk-4ZJMZB5B.mjs';import {a as a$3}from'./chunk-D3IZ4HBL.mjs';import {a as a$2}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-AUOQSTS5.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import O,{createContext,useState,useMemo,useContext}from'react';import L from'react-dom';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 g=createContext({});function x(){return useContext(g)??{}}var v=O.createContext(null);function N(e){let t=b(),{portalContainer:s=t?null:a(null).body,isExiting:r}=e,[o,n]=useState(false),y=useMemo(()=>({contain:o,setContain:n}),[o,n]),{getContainer:m}=x();if(!e.portalContainer&&m&&(s=m()),!s)return null;let i=e.children;return e.disableFocusManagement||(i=jsx(a$1,{restoreFocus:true,contain:(e.shouldContainFocus||o)&&!r,ownerDocument:a(s),children:i})),i=jsx(v.Provider,{value:y,children:jsx(c,{children:i})}),L.createPortal(i,s)}function W(){let t=useContext(v)?.setContain;a$2(()=>{t?.(true);},[t]);}var R={"ar-AE":{dismiss:"\u062A\u062C\u0627\u0647\u0644"},"bg-BG":{dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xDFen"},"el-GR":{dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xF5peta"},"fi-FI":{dismiss:"Hylk\xE4\xE4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xEDt\xE1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"\u9589\u3058\u308B"},"ko-KR":{dismiss:"\uBB34\uC2DC"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Ner\u0101d\u012Bt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"},"sk-SK":{dismiss:"Zru\u0161i\u0165"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-CN":{dismiss:"\u53D6\u6D88"},"zh-TW":{dismiss:"\u95DC\u9589"}};function A(e){let{onDismiss:t,...s}=e,r=b$1(R,"@react-aria/overlays"),o=a$3(s,r.format("dismiss"));return jsx(b$2,{children:jsx("button",{...o,tabIndex:-1,onClick:()=>{t&&t();},style:{width:1,height:1}})})}export{A as a,N as b,W as c};
|
package/dist/chunk-VDSLDZLT.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1,b as b$1}from'./chunk-KY3JKXSX.mjs';import {b as b$2}from'./chunk-RM2Y4D2M.mjs';import {e,f,c,d,h,g}from'./chunk-WICBTAMY.mjs';import {a as a$7}from'./chunk-NSC53QWT.mjs';import {a as a$6}from'./chunk-TVENHRYC.mjs';import {c as c$2}from'./chunk-JJPCZOOI.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {MinusIcon,PlusIcon}from'@baseline-ui/icons/8';import {ReadOnlyIcon,ErrorCircleFilledIcon}from'@baseline-ui/icons/16';import M,{useMemo}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 B=a({defaultClassName:"_1lnwne1 z9nup81",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup82"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),w="_1lnwne0";var P=M.forwardRef(({className:_,style:k,labelPosition:a="top",variant:H="primary",showStepper:L=true,...e$1},S)=>{let d$1=M.useRef(null),{locale:z}=b(),E=a$1({...e$1,locale:z}),{hoverProps:U,isHovered:t}=a$2({isDisabled:e$1.isDisabled}),{focusProps:A,isFocusVisible:V,isFocused:s}=a$3(),{labelProps:T,decrementButtonProps:W,inputProps:q,incrementButtonProps:G,groupProps:J,descriptionProps:K,errorMessageProps:Q}=b$1(e$1,E,d$1),m=useMemo(()=>e$1.isReadOnly?ReadOnlyIcon:e$1.isInvalid?ErrorCircleFilledIcon:null,[e$1.isInvalid,e$1.isReadOnly]),o=b$2({description:e$1.description,errorMessageProps:Q,descriptionProps:K,errorMessage:e$1.errorMessage,labelPosition:a,isDisabled:e$1.isDisabled}),X=a$4({"data-disabled":e$1.isDisabled,"data-readonly":e$1.isReadOnly,"data-hovered":t,"data-focused":s,"data-focus-visible":V,"data-invalid":e$1.isInvalid,"data-block-id":e$1["data-block-id"],"data-block-class":e$1["data-block-class"]});return jsxs("div",{style:k,className:a$5(g({labelPosition:a}),"BaselineUI-NumberInput",_),...X,ref:S,children:[e$1.label?jsxs("div",{className:f({labelPosition:a,hasMessage:!!o}),children:[jsx("label",{...T,className:e,children:e$1.label}),a==="start"&&o]}):null,jsxs("div",{className:a$5({[c$2]:e$1.isDisabled}),children:[jsxs("div",{...c$1(J,U),className:a$5(h({isHovered:t,isDisabled:!!e$1.isDisabled,isReadOnly:!!e$1.isReadOnly,validationState:e$1.isInvalid?"error":"valid",isFocused:s,variant:H}),{[w]:a==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...c$1(q,A),ref:d$1,className:a$5("BaselineUI-NumberInput-Input",c({isDisabled:e$1.isDisabled,labelPosition:a}))}),m?jsx(m,{className:d({validationState:"error",isReadOnly:e$1.isReadOnly}),size:16}):null,L?jsxs("div",{className:B({isHoveredOrFocused:t||s,isInteractive:!e$1.isReadOnly&&!e$1.isDisabled}),children:[jsx(a$6,{variant:"secondary",size:"xxs",icon:MinusIcon,...W,className:"BaselineUI-NumberInput-DecrementButton",isExcludedFromRovingFocus:true}),jsx(a$7,{style:{height:16},orientation:"vertical"}),jsx(a$6,{variant:"secondary",size:"xxs",icon:PlusIcon,...G,className:"BaselineUI-NumberInput-DecrementButton",isExcludedFromRovingFocus:true})]}):null]}),a==="top"&&o]})]})});P.displayName="NumberInput";export{P as a};
|
package/dist/chunk-VJ3SWDRJ.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$b}from'./chunk-WAOWR7MR.mjs';import {c as c$3,a as a$c,b as b$5}from'./chunk-RBZ7SIZR.mjs';import {b}from'./chunk-RM2Y4D2M.mjs';import {e,f,g}from'./chunk-WICBTAMY.mjs';import {a as a$5}from'./chunk-SAZLJ66W.mjs';import {a as a$a}from'./chunk-M5M3EPG5.mjs';import {d}from'./chunk-W6QO7FPZ.mjs';import {c}from'./chunk-JJPCZOOI.mjs';import {d as d$1}from'./chunk-KUEDQO7P.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-4ZJMZB5B.mjs';import {a as a$4}from'./chunk-X3AXUU3H.mjs';import {a as a$9}from'./chunk-545KDVGI.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {a as a$7}from'./chunk-K6X2BHPP.mjs';import {d as d$3}from'./chunk-BGMVPFYK.mjs';import {b as b$2}from'./chunk-YB3KW7JC.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {d as d$2}from'./chunk-AQYBKDT2.mjs';import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$6}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {b as b$4,g as g$1}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import Oe,{useMemo,useState}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 C=new WeakMap;function F(e,a,o){let{value:i,children:d,"aria-label":s,"aria-labelledby":p,onPressStart:t,onPressEnd:l,onPressChange:u,onPress:b,onPressUp:v,onClick:R}=e,r=e.isDisabled||a.isDisabled,D=d!=null,P=s!=null||p!=null;!D&&!P&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let y=a.selectedValue===i,g=z=>{z.stopPropagation(),a.setSelectedValue(i);},{pressProps:V,isPressed:_}=d$2({onPressStart:t,onPressEnd:l,onPressChange:u,onPress:b,onPressUp:v,onClick:R,isDisabled:r}),{pressProps:h,isPressed:G}=d$2({onPressStart:t,onPressEnd:l,onPressChange:u,onPressUp:v,onClick:R,isDisabled:r,onPress(z){b?.(z),a.setSelectedValue(i),o.current?.focus();}}),{focusableProps:c}=d$3(c$1(e,{onFocus:()=>a.setLastFocusedValue(i)}),o),m=c$1(V,c),x=a$6(e,{labelable:true}),n=-1;a.selectedValue!=null?a.selectedValue===i&&(n=0):(a.lastFocusedValue===i||a.lastFocusedValue==null)&&(n=0),r&&(n=void 0);let{name:O,form:xe,descriptionId:De,errorMessageId:_e,validationBehavior:j}=C.get(a);a$9(o,a.defaultSelectedValue,a.setSelectedValue),a$a({validationBehavior:j},a,o);let H=a$b();return {labelProps:c$1(h,useMemo(()=>({onClick:z=>z.preventDefault(),onMouseDown:z=>z.preventDefault()}),[])),inputProps:c$1(x,{...m,type:"radio",name:O,form:xe,tabIndex:n,disabled:r,required:a.isRequired&&j==="native",checked:y,value:i,onChange:g,"aria-describedby":[e["aria-describedby"],H.id,a.isInvalid?_e:null,De].filter(Boolean).join(" ")||void 0}),descriptionProps:H,isDisabled:r,isSelected:y,isPressed:_||G}}function N(e,a,o){let{name:i,form:d,isReadOnly:s,isRequired:p,isDisabled:t,orientation:l="vertical",validationBehavior:u="aria"}=e,{direction:b}=b$1(),{isInvalid:v,validationErrors:R,validationDetails:r}=a.displayValidation,{labelProps:D,fieldProps:P,descriptionProps:y,errorMessageProps:g}=a$5({...e,labelElementType:"span",isInvalid:a.isInvalid,errorMessage:e.errorMessage||R,ref:o}),V=a$6(e,{labelable:true}),{focusWithinProps:_}=b$2({onBlurWithin(c){e.onBlur?.(c),a.selectedValue||a.setLastFocusedValue(null);},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),h=c=>{let m;switch(c.key){case "ArrowRight":b==="rtl"&&l!=="vertical"?m="prev":m="next";break;case "ArrowLeft":b==="rtl"&&l!=="vertical"?m="next":m="prev";break;case "ArrowDown":m="next";break;case "ArrowUp":m="prev";break;default:return}c.preventDefault();let x=d$1(c.currentTarget,{from:g$1(c),accept:O=>O instanceof b$4(O).HTMLInputElement&&O.type==="radio"}),n;m==="next"?(n=x.nextNode(),n||(x.currentNode=c.currentTarget,n=x.firstChild())):(n=x.previousNode(),n||(x.currentNode=c.currentTarget,n=x.lastChild())),n&&(n.focus(),a.setSelectedValue(n.value));},G=c$2(i);return C.set(a,{name:G,form:d,descriptionId:y.id,errorMessageId:g.id,validationBehavior:u}),{radioGroupProps:c$1(V,{role:"radiogroup",onKeyDown:h,"aria-invalid":a.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":s||void 0,"aria-required":p||void 0,"aria-disabled":t||void 0,"aria-orientation":l,...P,..._}),labelProps:D,descriptionProps:y,errorMessageProps:g,isInvalid:v,validationErrors:R,validationDetails:r}}var Ie=Math.round(Math.random()*1e10),he=0;function w(e){let a=useMemo(()=>e.name||`radio-group-${Ie}-${++he}`,[e.name]),[o,i]=a$4(e.value,e.defaultValue??null,e.onChange),[d$1]=useState(o),[s,p]=useState(null),t=d({...e,value:o}),l=b=>{!e.isReadOnly&&!e.isDisabled&&(i(b),t.commitValidation());},u=t.displayValidation.isInvalid;return {...t,name:a,selectedValue:o,defaultSelectedValue:e.value!==void 0?d$1:e.defaultValue??null,setSelectedValue:l,lastFocusedValue:s,setLastFocusedValue:p,isDisabled:e.isDisabled||false,isReadOnly:e.isReadOnly||false,isRequired:e.isRequired||false,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}var be="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69c _1yep5z69d _1yep5z69e",ye=a({defaultClassName:"cw3m0n5 _1yep5z6f0 _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),Re="cw3m0n4",Pe="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m0",ve=a({defaultClassName:"cw3m0n0 _1yep5z61k2 _1yep5z61k3 _1yep5z61k4 _1yep5z61kq _1yep5z61kr _1yep5z61ks _1yep5z61le _1yep5z61lf _1yep5z61lg _1yep5z61m2 _1yep5z61m3 _1yep5z61m4 _1yep5z61ob _1yep5z61us",variantClassNames:{isHovered:{true:"cw3m0n1"},isReadOnly:{true:"cw3m0n2"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isReadOnly:false},"cw3m0n3"]]});var Le=({label:e,description:a},{isSelected:o,isFocusVisible:i,isDisabled:d,optionLabelPosition:s,isHovered:p,isReadOnly:t})=>jsxs("div",{className:b$5({labelPosition:s}),children:[jsx("div",{className:a$3(c$3({isSelected:o,isFocusVisible:i,isDisabled:d,isReadOnly:t,isHovered:p}),ve({isHovered:p})),children:o?jsx("div",{className:Re}):null}),e?jsxs("div",{className:be,children:[jsx("span",{className:a$c({isDisabled:d}),children:e}),a?jsx("span",{className:ye({isDisabled:d}),children:a}):null]}):null]}),ge=({state:e,renderOption:a=Le,item:o,optionLabelPosition:i="end",optionStyle:d,optionClassName:s,isReadOnly:p,...t})=>{let l=!!t.isDisabled||!!t.disabledValues?.includes(o.id),u=Oe.useRef(null),{inputProps:b,isPressed:v,isSelected:R,labelProps:r}=F({...t,isDisabled:l,children:o.label,value:o.id},e,u),{focusProps:D,isFocusVisible:P,isFocused:y}=a$7(),{hoverProps:g,isHovered:V}=a$8({isDisabled:l},u),_=a$2({"data-selected":R,"data-focused":y,"data-focus-visible":P,"data-hovered":V,"data-disabled":l,"data-pressed":v,"data-read-only":p});return jsxs("label",{...c$1(r,g,_),style:d,className:a$3("BaselineUI-Radio-Item",s),children:[jsx(b$3,{children:jsx("input",{...c$1(b,D),ref:u})}),a(o,{isFocusVisible:P,isSelected:R,isFocused:y,isHovered:V,isDisabled:l,optionLabelPosition:i,isReadOnly:p})]})};var Ge=Oe.forwardRef(({className:e$1,style:a,optionsContainerClassName:o,optionsContainerStyle:i,items:d,labelPosition:s="top",renderOption:p,"aria-label":t,"aria-labelledby":l,"aria-describedby":u,"aria-details":b$1,"data-block-id":v,"data-block-class":R,...r},D)=>{let P=a$1(D),y=w(r),{radioGroupProps:g$1,labelProps:V,descriptionProps:_,errorMessageProps:h}=N({...r,"aria-label":t,"aria-labelledby":l,"aria-describedby":u,"aria-details":b$1},y,P),G=b({...r,descriptionProps:_,errorMessageProps:h,labelPosition:s}),c$2=a$2({"data-orientation":r.orientation,"data-block-id":v,"data-block-class":R,"data-disabled":r.isDisabled,"data-readonly":r.isReadOnly});return jsxs("div",{...c$1(g$1,c$2),className:a$3(g({labelPosition:s}),"BaselineUI-RadioGroup",e$1),style:a,ref:P,children:[r.label||G?jsxs("div",{className:f({labelPosition:s,hasMessage:!!G}),children:[jsx("span",{...V,className:a$3(e,"BaselineUI-RadioGroup-Label"),children:r.label}),s==="start"&&G]}):null,jsx("div",{className:a$3(Pe,{[c]:r.isDisabled},o),style:i,children:d.map(m=>jsx(ge,{state:y,renderOption:p,item:m,...r,value:m.id},m.id))}),s==="top"&&G]})});Ge.displayName="RadioGroup";export{Ge as a};
|
package/dist/chunk-WA35CT3D.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {c as c$1,a as a$4,d,b,e}from'./chunk-NVS22MIQ.mjs';import {c as c$3,b as b$4}from'./chunk-EK3RIYMV.mjs';import {b as b$3}from'./chunk-246VHB32.mjs';import {a as a$8}from'./chunk-SAZLJ66W.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$6}from'./chunk-XWLESSHN.mjs';import {a as a$2}from'./chunk-YS3Y5KGV.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {d as d$1}from'./chunk-BGMVPFYK.mjs';import {b as b$5}from'./chunk-YB3KW7JC.mjs';import {f as f$1}from'./chunk-Y4DRSGEJ.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {p}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$7}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {XIcon as XIcon$1}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1,XIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/16';import f,{useState,useRef,useEffect}from'react';import {jsx,jsxs}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 A=new WeakMap;function ve(i,e,a){let{direction:o}=b$2(),t=i.keyboardDelegate||new b$3({collection:e.collection,ref:a,orientation:"horizontal",direction:o,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:p,fieldProps:r,descriptionProps:s,errorMessageProps:l}=a$8({...i,labelElementType:"span",ref:a}),{gridProps:c$1}=b$4({...i,...r,keyboardDelegate:t,shouldFocusWrap:true,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,a),[u,g]=useState(false),{focusWithinProps:m}=b$5({onFocusWithinChange:g}),b=a$7(i),n=useRef(e.collection.size);return useEffect(()=>{a.current&&n.current>0&&e.collection.size===0&&u&&a.current.focus(),n.current=e.collection.size;},[e.collection.size,u,a]),A.set(e,{onRemove:i.onRemove}),{gridProps:c(c$1,b,{role:e.collection.size?"grid":"group","aria-atomic":false,"aria-relevant":"additions","aria-live":u?"polite":"off",...m,...r}),labelProps:p,descriptionProps:s,errorMessageProps:l}}var ee={"ar-AE":{removeButtonLabel:"\u0625\u0632\u0627\u0644\u0629",removeDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D DELETE \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u0644\u0627\u0645\u0629."},"bg-BG":{removeButtonLabel:"\u041F\u0440\u0435\u043C\u0430\u0445\u0432\u0430\u043D\u0435",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Delete, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043C\u0430\u0440\u043A\u0435\u0440\u0430."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xEDm kl\xE1vesy Delete odeberete zna\u010Dku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xE5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf \u201EL\xF6schen\u201C dr\xFCcken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",removeDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03C1\u03B3\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l\u2019\xE9tiquette."},"he-IL":{removeButtonLabel:"\u05D4\u05E1\u05E8",removeDescription:"\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DE\u05D7\u05E7 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E1\u05D9\u05E8 \u05EA\u05D2."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xE1vol\xEDt\xE1s",removeDescription:"Nyomja meg a Delete billenty\u0171t a c\xEDmke elt\xE1vol\xEDt\xE1s\xE1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"\u524A\u9664",removeDescription:"\u30BF\u30B0\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u3001Delete \u30AD\u30FC\u3092\u62BC\u3057\u307E\u3059\u3002"},"ko-KR":{removeButtonLabel:"\uC81C\uAC70",removeDescription:"\uD0DC\uADF8\uB97C \uC81C\uAC70\uD558\uB824\uBA74 Delete \uD0A4\uB97C \uB204\uB974\uC2ED\uC2DC\uC624."},"lt-LT":{removeButtonLabel:"Pa\u0161alinti",removeDescription:"Nor\u0117dami pa\u0161alinti \u017Eym\u0105, paspauskite \u201EDelete\u201C klavi\u0161\u0105."},"lv-LV":{removeButtonLabel:"No\u0146emt",removeDescription:"Nospiediet Delete [Dz\u0113st], lai no\u0146emtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xE5 Slett for \xE5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usu\u0144",removeDescription:"Naci\u015Bnij Usu\u0144, aby usun\u0105\u0107 znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xCEndep\u0103rta\u0163i",removeDescription:"Ap\u0103sa\u021Bi pe Delete (\u0218tergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",removeDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 DELETE, \u0447\u0442\u043E\u0431\u044B \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u0433."},"sk-SK":{removeButtonLabel:"Odstr\xE1ni\u0165",removeDescription:"Ak chcete odstr\xE1ni\u0165 zna\u010Dku, stla\u010Dte kl\xE1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obri\u0161i da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xE5 Radera f\xF6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kald\u0131r",removeDescription:"Etiketi kald\u0131rmak i\xE7in Sil tu\u015Funa bas\u0131n."},"uk-UA":{removeButtonLabel:"\u0412\u0438\u043B\u0443\u0447\u0438\u0442\u0438",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Delete, \u0449\u043E\u0431 \u0432\u0438\u043B\u0443\u0447\u0438\u0442\u0438 \u0442\u0435\u0433."},"zh-CN":{removeButtonLabel:"\u5220\u9664",removeDescription:"\u6309\u4E0B\u201C\u5220\u9664\u201D\u4EE5\u5220\u9664\u6807\u8BB0\u3002"},"zh-TW":{removeButtonLabel:"\u79FB\u9664",removeDescription:"\u6309 Delete \u9375\u4EE5\u79FB\u9664\u6A19\u8A18\u3002"}};function E(i,e,a){let{item:o}=i,t=b$1(ee,"@react-aria/tag"),p$1=c$2(),{onRemove:r}=A.get(e)||{},{rowProps:s,gridCellProps:l,...c$1}=c$3({node:o},e,a),{descriptionProps:u,...g}=c$1,m=e.disabledKeys.has(o.key)||o.props.isDisabled,b=R=>{if(R.key==="Delete"||R.key==="Backspace"){if(m)return;R.preventDefault(),e.selectionManager.isSelected(o.key)?r?.(new Set(e.selectionManager.selectedKeys)):r?.(new Set([o.key]));}},n=f$1();n==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(n="pointer");let T=r&&(n==="keyboard"||n==="virtual")?t.format("removeDescription"):"",P=a$6(T,a),D=o.key===e.selectionManager.focusedKey,L=e.selectionManager.focusedKey!=null,y=-1;!m&&(D||!L)&&(y=0);let k=a$7(o.props),B=p(o.props),{focusableProps:h}=d$1({...o.props,isDisabled:m},a);return {removeButtonProps:{"aria-label":t.format("removeButtonLabel"),"aria-labelledby":`${p$1} ${s.id}`,isDisabled:m,id:p$1,onPress:()=>r?r(new Set([o.key])):null},rowProps:c(h,s,k,B,{tabIndex:y,onKeyDown:r?b:void 0,"aria-describedby":P["aria-describedby"]}),gridCellProps:c(l,{"aria-errormessage":i["aria-errormessage"],"aria-label":i["aria-label"]}),...g,allowsRemoving:!!r}}var te=f.createContext(null),re=f.createContext(null);var ae=f.forwardRef((i,e)=>{let a=f.useContext(te),o=f.useContext(re);return a&&o?jsx(se,{...i,ref:e,groupCtx:a,itemCtx:o}):jsx(ie,{...i,ref:e})});ae.displayName="Tag";var ie=f.forwardRef(({children:i,variant:e="neutral",size:a$2="md",icon:o,isDisabled:t=false,isSelected:p=false,onRemove:r,className:s,style:l,"data-block-id":c$1,"data-block-class":u},g)=>{let{focusProps:m,isFocusVisible:b}=a({within:true}),{hoverProps:n,isHovered:T}=a$1({isDisabled:t}),{hoverProps:P,isHovered:D}=a$1({isDisabled:t}),L=!!r;return jsx(w,{ref:g,outerProps:c(m,P),variant:e,size:a$2,Icon:o,isDisabled:t,isSelected:p,isFocusVisible:b,isTagHovered:D,allowsRemoving:L,allowsSelection:false,removeButtonProps:n,defaultRemoveProps:{"aria-label":"Remove",disabled:t,onClick:r},isRemoveHovered:T,className:s,style:l,"data-block-id":c$1,"data-block-class":u,children:i})});ie.displayName="TagStandalone";var se=f.forwardRef(({groupCtx:i,itemCtx:e,variant:a$3,...o},t)=>{let{state:p,variant:r,size:s}=i,{item:l}=e,c$1=f.useRef(null),{rowProps:u,gridCellProps:g,removeButtonProps:m,allowsRemoving:b,isDisabled:n,isSelected:T,allowsSelection:P}=E({item:l},p,c$1),D=f.useRef(null),{buttonProps:L}=a$2({...m,excludeFromTabOrder:true},D),{focusProps:y,isFocusVisible:k}=a({within:true}),{hoverProps:B,isHovered:h}=a$1({isDisabled:n}),{hoverProps:R,isHovered:ne}=a$1({isDisabled:n}),le=l.value?.icon,me=l.value?.data?.variant??a$3??r,pe=o.size??s??"md";return jsx(w,{ref:H=>{c$1.current=H,typeof t=="function"?t(H):t&&(t.current=H);},outerProps:c(u,y,R),gridCellProps:g,variant:me,size:pe,Icon:le,isDisabled:n,isSelected:T,isFocusVisible:k,isTagHovered:ne,allowsRemoving:b,allowsSelection:P,removeButtonProps:c(L,B),isRemoveHovered:h,children:l.rendered})});se.displayName="TagInGroup";var w=f.forwardRef(({children:i,outerProps:e$1,gridCellProps:a,variant:o="neutral",size:t,Icon:p,isDisabled:r,isSelected:s,isFocusVisible:l,isTagHovered:c$2,allowsRemoving:u,allowsSelection:g,removeButtonProps:m,defaultRemoveProps:b$1,isRemoveHovered:n,className:T,style:P,"data-block-id":D,"data-block-class":L},y)=>{let k=t==="md"?XIcon:XIcon$1,B=t==="md"?CheckmarkIcon:CheckmarkIcon$1;return jsx("div",{...e$1,ref:y,"aria-disabled":r||void 0,className:a$3(b({isFocusVisible:l,variant:o,isDisabled:r,allowsRemoving:u,isSelected:s,allowsSelection:g,isHovered:c$2,size:t}),e({variant:o,isDisabled:r,isSelected:s}),"BaselineUI-Tag",T),style:P,"data-block-id":D,"data-block-class":L,children:jsxs("div",{...a,className:c$1,children:[s?jsx(B,{size:t==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:r,isSelected:s}),"BaselineUI-Tag-Icon")}):null,!s&&p?jsx(p,{size:t==="md"?16:12,className:a$3(a$4({variant:o,isDisabled:r,isSelected:s}),"BaselineUI-Tag-Icon")}):null,jsx(a$5,{paddingY:t==="md"?"sm":"none",typography:t==="sm"?"label.sm.medium":"label.md.medium",children:i}),u?jsx("button",{type:"button",...c(m,b$1??{}),className:d({variant:o,isHovered:n}),children:jsx(k,{size:t==="md"?12:8})}):null]})})});w.displayName="TagView";export{ve as a,te as b,re as c,ae as d};
|
package/dist/chunk-WRQ4FPJE.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {i}from'./chunk-2HMLSXNO.mjs';import {a as a$1}from'./chunk-VDUFLHKK.mjs';import {a as a$2}from'./chunk-YS3Y5KGV.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$4}from'./chunk-3FYY26ED.mjs';import {b,c,a as a$5}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-AUOQSTS5.mjs';import H,{useState,useEffect,useContext}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 B(t,e,n){let{isSelected:r}=e,{isPressed:s,buttonProps:o}=a$2({...t,onPress:a$5(e.toggle,t.onPress)},n);return {isPressed:s,isSelected:r,isDisabled:t.isDisabled||false,buttonProps:c(o,{"aria-pressed":r})}}function z({tooltip:t,"aria-label":e,"aria-labelledby":n},r){let[s,o]=useState(e||"");useEffect(()=>{if(n){let u=a(r.current).querySelector(`#${n}`);u&&o(u.textContent||"");}else e&&o(e);},[n,r,e]);let{tooltipProps:i}=a$1({label:s,tooltip:t});return {tooltipProps:i}}var G=t=>{let e=H.useRef(null),{ref:n,...r}=useContext(i)||{},{buttonProps:s,isPressed:o}=a$2({...t,...r},e),{isFocusVisible:i$1,isFocused:l,focusProps:u}=a$3(),{hoverProps:c$1,isHovered:a}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(s,u,c$1),isPressed:o,ref:b(e,n||null),isFocusVisible:i$1,isFocused:l,isHovered:a,uiStateOptions:{isHovered:a,isFocused:l,isPressed:o,isDisabled:t.isDisabled,isFocusVisible:i$1}}},J=(t,e)=>{let n=H.useRef(null),{ref:r,...s}=useContext(i)||{},{buttonProps:o,isPressed:i$1}=B({...t,...s},e,n);(o.role==="radio"||o.role==="checkbox")&&(o["aria-pressed"]=void 0);let{isFocusVisible:l,isFocused:u,focusProps:c$1}=a$3(),{hoverProps:a,isHovered:d}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(o,c$1,a),isPressed:i$1,ref:b(n,r||null),isFocusVisible:l,isFocused:u,isHovered:d,uiStateOptions:{isHovered:d,isFocused:u,isPressed:i$1,isDisabled:t.isDisabled,isFocusVisible:l,isSelected:e.isSelected}}};export{z as a,G as b,J as c};
|
package/dist/chunk-WWSGOGLA.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-BGMVPFYK.mjs';import {d,c as c$1}from'./chunk-AQYBKDT2.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {b as b$1,u}from'./chunk-MRJFGHFW.mjs';import {b as b$2,c}from'./chunk-TZ4MVY4E.mjs';import {b}from'./chunk-AUOQSTS5.mjs';import p,{useEffect,useRef,useContext,useMemo}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 E=p.forwardRef(({children:a$1,...t},o)=>{o=a(o);let{pressProps:l}=d({...t,ref:o}),{focusableProps:n}=d$1(t,o),s=p.Children.only(a$1);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let r=o.current;if(!r||!(r instanceof b(r).Element)){console.error("<Pressable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!b$1(r)){console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(r.localName!=="button"&&r.localName!=="input"&&r.localName!=="select"&&r.localName!=="textarea"&&r.localName!=="a"&&r.localName!=="area"&&r.localName!=="summary"){let e=r.getAttribute("role");e?e!=="application"&&e!=="button"&&e!=="checkbox"&&e!=="combobox"&&e!=="gridcell"&&e!=="link"&&e!=="menuitem"&&e!=="menuitemcheckbox"&&e!=="menuitemradio"&&e!=="option"&&e!=="radio"&&e!=="searchbox"&&e!=="separator"&&e!=="slider"&&e!=="spinbutton"&&e!=="switch"&&e!=="tab"&&e!=="textbox"&&e!=="treeitem"&&console.warn(`<Pressable> child must have an interactive ARIA role. Got "${e}".`):console.warn("<Pressable> child must have an interactive ARIA role.");}},[o,t.isDisabled]);let x=parseInt(p.version,10)<19?s.ref:s.props.ref;return p.cloneElement(s,{...c(l,n,s.props),ref:b$2(x,o)})});var C=p.forwardRef(({children:a$1,...t},o)=>{let l=useRef(false),n=useContext(c$1),s=c(n||{},{...t,register(){l.current=true,n&&n.register();}});return s.ref=a(o||n?.ref),u(n,s.ref),useEffect(()=>{l.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),l.current=true);},[]),jsx(c$1.Provider,{value:s,children:a$1})});function O({children:a}){let t=useMemo(()=>({register:()=>{}}),[]);return jsx(c$1.Provider,{value:t,children:a})}export{E as a,C as b,O as c};
|
package/dist/chunk-X3AXUU3H.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import c,{useState,useRef,useEffect,useReducer,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
|
-
var g=typeof document<"u"?c.useInsertionEffect??c.useLayoutEffect:()=>{};function A(n,i,l){let[a,s]=useState(n||i),o=useRef(a),d=useRef(n!==void 0),t=n!==void 0;useEffect(()=>{let e=d.current;e!==t&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${t?"controlled":"uncontrolled"}.`),d.current=t;},[t]);let r=t?n:a;g(()=>{o.current=r;});let[,T]=useReducer(()=>({}),{}),S=useCallback((e,...C)=>{let u=typeof e=="function"?e(o.current):e;Object.is(o.current,u)||(o.current=u,s(u),T(),l?.(u,...C));},[l]);return [r,S]}export{A as a};
|
package/dist/chunk-XCL4K4MY.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b as b$1,d as d$1,e,c}from'./chunk-6DGD7BZA.mjs';import {a as a$1}from'./chunk-RZEGMPV2.mjs';import {b as b$2}from'./chunk-RM2Y4D2M.mjs';import {a as a$2}from'./chunk-O7XK2WIX.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-4ZJMZB5B.mjs';import {a as a$4}from'./chunk-X3AXUU3H.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import N,{useMemo,useCallback}from'react';import {Time,toZoned,toTime,GregorianCalendar,toCalendarDateTime,today,getLocalTimeZone}from'@internationalized/date';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
|
-
function P(i){let{placeholderValue:a=new Time,minValue:p,maxValue:u,defaultValue:t,granularity:c$1,validate:T}=i,[e,s]=a$4(i.value,t??null,i.onChange),r=e||a,o=r&&"day"in r?r:void 0,m=t&&"timeZone"in t?t.timeZone:void 0,F=useMemo(()=>{let l=r&&"timeZone"in r?r.timeZone:void 0;return (l||m)&&a?toZoned(d(a),l||m):d(a)},[a,r,m]),V=useMemo(()=>d(p,o),[p,o]),y=useMemo(()=>d(u,o),[u,o]),x=useMemo(()=>e&&"day"in e?toTime(e):e,[e]),g=useMemo(()=>e==null?null:d(e),[e]),S=useMemo(()=>t==null?null:d(t),[t]);return {...c({...i,value:g,defaultValue:S,minValue:V,maxValue:y,onChange:l=>{s(o||m?l:l&&toTime(l));},granularity:c$1||"minute",maxGranularity:"hour",placeholderValue:F??void 0,createCalendar:()=>new GregorianCalendar,validate:useCallback(()=>T?.(e),[T,e])}),timeValue:x}}function d(i,a=today(getLocalTimeZone())){return i?"day"in i?i:toCalendarDateTime(a,i):null}var B=N.forwardRef(({className:i,labelPosition:a$4,"data-block-id":p,"data-block-class":u,...t},c)=>{let{locale:T}=b(),e$1={...t,validationState:void 0,isInvalid:t.validationState==="error"||void 0},s=P({...e$1,locale:T}),r=N.useRef(null),{labelProps:o,fieldProps:m,descriptionProps:F,errorMessageProps:V,validationErrors:y,isInvalid:x,inputProps:g}=b$1(e$1,s,r),S=t.errorMessage||y.join(" "),k=b$2({...t,errorMessage:S,descriptionProps:F,errorMessageProps:V,labelPosition:a$4}),{focusProps:v,isFocused:l}=a({within:true});return jsxs(a$1,{className:a$3("BaselineUI-TimeField",i),labelProps:o,fieldProps:m,ref:c,wrapperRef:r,wrapperClassName:d$1,labelPosition:a$4,message:k,isFocused:l,"data-block-id":p,"data-block-class":u,isInvalid:x,...t,children:[jsx(b$3,{children:jsx("input",{...g})}),jsx(a$2,{display:"flex",flexDirection:"row",paddingRight:"md",...v,children:s.segments.map((E,G)=>jsx(e,{segment:E,state:s},G))})]})});B.displayName="TimeField";export{B as a};
|
package/dist/chunk-XTH6B5FE.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {d as d$1,e}from'./chunk-AUOQSTS5.mjs';/**
|
|
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 d=class{filter;root;whatToShow;_doc;_walkerStack=[];_currentNode;_currentSetFor=new Set;constructor(t,e,r,o){this._doc=t,this.root=e,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=e,this._walkerStack.unshift(t.createTreeWalker(e,r,this._acceptNode));let i=e.shadowRoot;if(i){let n=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(n);}}_acceptNode=t=>{if(t.nodeType===Node.ELEMENT_NODE){let e=t.shadowRoot;if(e){let r=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(r),NodeFilter.FILTER_ACCEPT}else {if(typeof this.filter=="function")return this.filter(t);if(this.filter?.acceptNode)return this.filter.acceptNode(t);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP};get currentNode(){return this._currentNode}set currentNode(t){if(!e(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");let e$1=[],r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=r,s=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});e$1.push(s),s.currentNode=o,this._currentSetFor.add(s),r=o=n.host;}else r=r.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});e$1.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=e$1;}get doc(){return this._doc}firstChild(){let t=this.currentNode,e$1=this.nextNode();return e(t,e$1)?(e$1&&(this.currentNode=e$1),e$1):(this.currentNode=t,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}let e=t.previousNode();if(e){if(e.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(e):this.filter?.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return e&&(this.currentNode=e),e;let i=this.lastChild();return i&&(this.currentNode=i),i}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function N(l,t,e,r){return d$1()?new d(l,t,e,r):l.createTreeWalker(t,e,r)}export{N as a};
|
package/dist/chunk-XWLESSHN.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-JDLUGVXG.mjs';import {useState}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 c=0,s=new WeakMap;function y(t,u){let[l,d]=useState();return a(()=>{if(!t)return;let n=u?.current?.getRootNode()||document,m=n?.ownerDocument||document,o=s.get(n);o||(o=new Map,s.set(n,o));let e=o.get(t);if(e)d(e.element.id);else {let i=`react-aria-description-${c++}`;d(i);let r=m.createElement("div");r.id=i,r.style.display="none",r.textContent=t,"body"in n?n.body.appendChild(r):n.appendChild(r),e={refCount:0,element:r},o.set(t,e);}return e.refCount++,()=>{e&&--e.refCount===0&&(e.element.remove(),o.delete(t));}},[t]),{"aria-describedby":t?l:void 0}}export{y as a};
|