@baseline-ui/core 3.9.1 → 3.10.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.mjs +1 -1
- package/dist/ActionButton.mjs +1 -1
- package/dist/ActionGroup.mjs +1 -1
- package/dist/ActionIconButton.mjs +1 -1
- package/dist/Actionable.mjs +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Breadcrumbs.mjs +1 -1
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.mjs +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ColorInput.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/DomNodeRenderer.mjs +1 -1
- package/dist/Drawer.mjs +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileInput.mjs +1 -1
- package/dist/FileList.css +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FrameProvider.mjs +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/Group.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.mjs +1 -1
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.mjs +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/Markdown.css +1 -1
- package/dist/Markdown.mjs +1 -1
- package/dist/Menu.mjs +1 -1
- package/dist/MessageFormat.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberInput.mjs +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.mjs +1 -1
- package/dist/ProgressBar.mjs +1 -1
- package/dist/ProgressSpinner.mjs +1 -1
- package/dist/RadioGroup.css +1 -1
- package/dist/RadioGroup.mjs +1 -1
- package/dist/Reaction.mjs +1 -1
- package/dist/ScrollControlButton.css +1 -1
- package/dist/ScrollControlButton.mjs +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/TagGroup.mjs +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.mjs +1 -1
- package/dist/ToggleButton.mjs +1 -1
- package/dist/ToggleIconButton.mjs +1 -1
- package/dist/Toolbar.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/Virtualizer.mjs +1 -1
- package/dist/{chunk-E3TD3EJQ.mjs → chunk-23OLSA2X.mjs} +2 -2
- package/dist/{chunk-X6K4M542.mjs → chunk-24WOG72O.mjs} +2 -2
- package/dist/{chunk-YK3KAPIK.mjs → chunk-2CFMM7MZ.mjs} +2 -2
- package/dist/{chunk-WSRXTVYB.mjs → chunk-2KRVQJDA.mjs} +2 -2
- package/dist/{chunk-SCJ3RG7B.mjs → chunk-2MNK24YJ.mjs} +1 -1
- package/dist/{chunk-3PBFSDMT.mjs → chunk-2PTLJDIT.mjs} +1 -1
- package/dist/{chunk-YSQ3YHJN.mjs → chunk-2TMQUHHU.mjs} +1 -1
- package/dist/chunk-3A7ZISTE.mjs +10 -0
- package/dist/{chunk-DOFT4BQH.mjs → chunk-3EFE2WAJ.mjs} +1 -1
- package/dist/{chunk-CKUHFL5G.mjs → chunk-3HJAQJWA.mjs} +1 -1
- package/dist/chunk-3IHIKAT4.mjs +10 -0
- package/dist/chunk-3JHXI33A.mjs +10 -0
- package/dist/chunk-3K6XNSYE.mjs +10 -0
- package/dist/chunk-3LS73XVI.mjs +10 -0
- package/dist/chunk-3P25UGHE.mjs +10 -0
- package/dist/{chunk-BFW26T6V.mjs → chunk-43U6RZ5C.mjs} +2 -2
- package/dist/{chunk-54MWEZUP.mjs → chunk-46UWKP7W.mjs} +1 -1
- package/dist/chunk-4CMATAQ2.mjs +10 -0
- package/dist/{chunk-F3EOLTFM.mjs → chunk-4FN6UAXD.mjs} +1 -1
- package/dist/{chunk-NWYRVUTX.mjs → chunk-4Y5IKZSW.mjs} +1 -1
- package/dist/{chunk-26YOMQXV.mjs → chunk-5B6263RO.mjs} +13 -13
- package/dist/{chunk-WAPBLICF.mjs → chunk-5NVCSLXT.mjs} +1 -1
- package/dist/{chunk-OBEPT4LR.mjs → chunk-5YV74V36.mjs} +1 -1
- package/dist/{chunk-VWSTMBQK.mjs → chunk-64Y62MDR.mjs} +2 -2
- package/dist/{chunk-IVM5IBQS.mjs → chunk-6DVKR25T.mjs} +1 -1
- package/dist/{chunk-ADEALCJB.mjs → chunk-6IK2TDLH.mjs} +2 -2
- package/dist/{chunk-ES3IQZSH.mjs → chunk-6V7S5IG5.mjs} +2 -2
- package/dist/chunk-6VKIT2PF.mjs +10 -0
- package/dist/{chunk-OGIKNHLU.mjs → chunk-7EOAYPSZ.mjs} +2 -2
- package/dist/{chunk-LZEZW5RE.mjs → chunk-7LQTLZJ5.mjs} +2 -2
- package/dist/{chunk-IOHULFEP.mjs → chunk-A4PXU7GU.mjs} +2 -2
- package/dist/chunk-A52PIXOO.mjs +10 -0
- package/dist/chunk-AANAI2XF.mjs +10 -0
- package/dist/{chunk-UQJB6AGO.mjs → chunk-AB7LDKP2.mjs} +1 -1
- package/dist/{chunk-BPLTQDXX.mjs → chunk-ACHYZYVA.mjs} +2 -2
- package/dist/{chunk-JB3UIJ3I.mjs → chunk-AFJ3QV2Q.mjs} +2 -2
- package/dist/{chunk-NQVTVL24.mjs → chunk-AIG23SN5.mjs} +2 -2
- package/dist/chunk-ASIKCQC6.mjs +10 -0
- package/dist/{chunk-WGZUNJGH.mjs → chunk-AU3GNNEG.mjs} +2 -2
- package/dist/{chunk-45EAFDOZ.mjs → chunk-AYBI4SQV.mjs} +1 -1
- package/dist/chunk-BJHDL2HH.mjs +10 -0
- package/dist/chunk-BNWDQ4KX.mjs +10 -0
- package/dist/{chunk-QSFRMY47.mjs → chunk-BPXZ6J5G.mjs} +1 -1
- package/dist/{chunk-2UDXAKWA.mjs → chunk-C6TD53KY.mjs} +2 -2
- package/dist/chunk-CBQO7JUC.mjs +11 -0
- package/dist/{chunk-LN2NT32E.mjs → chunk-CE2W5D44.mjs} +1 -1
- package/dist/{chunk-UR42GQO4.mjs → chunk-CEUVH4UZ.mjs} +1 -1
- package/dist/chunk-CGBI7OB5.mjs +10 -0
- package/dist/chunk-CMM5JW7L.mjs +10 -0
- package/dist/chunk-CPX5CB4L.mjs +10 -0
- package/dist/{chunk-HMAVZPRE.mjs → chunk-CRNJAQPI.mjs} +1 -1
- package/dist/chunk-DIMNDTFC.mjs +10 -0
- package/dist/{chunk-KADD66HZ.mjs → chunk-DNZMQ7EA.mjs} +2 -2
- package/dist/{chunk-RFCTQQMD.mjs → chunk-DP76DMVO.mjs} +1 -1
- package/dist/{chunk-DZFNVFYT.mjs → chunk-EGSNIMDP.mjs} +1 -1
- package/dist/chunk-EHIGJYGW.mjs +10 -0
- package/dist/{chunk-U6M2GCPD.mjs → chunk-EJGGWOY5.mjs} +1 -1
- package/dist/chunk-EKRT3PPK.mjs +10 -0
- package/dist/{chunk-FDDB7QNQ.mjs → chunk-ELW6SXDM.mjs} +1 -1
- package/dist/{chunk-YQFS4UHL.mjs → chunk-EPWWEFTP.mjs} +1 -1
- package/dist/{chunk-VDUFLHKK.mjs → chunk-EYKQGC4O.mjs} +2 -2
- package/dist/{chunk-PLRUMLNB.mjs → chunk-FFPJBDWH.mjs} +1 -1
- package/dist/{chunk-KFJE5ZBK.mjs → chunk-G2IYZES5.mjs} +1 -1
- package/dist/chunk-G2RVM2KB.mjs +10 -0
- package/dist/{chunk-AALXW5AP.mjs → chunk-GAKWWL3Y.mjs} +1 -1
- package/dist/chunk-GHKMHXQ3.mjs +10 -0
- package/dist/{chunk-VYBJ36ZR.mjs → chunk-GJVQMTGA.mjs} +1 -1
- package/dist/chunk-GKPZBTRE.mjs +10 -0
- package/dist/{chunk-TN7FPPGM.mjs → chunk-GZTF5YE3.mjs} +1 -1
- package/dist/{chunk-RXADOJLS.mjs → chunk-HI56YXPJ.mjs} +2 -2
- package/dist/{chunk-R7Y36JCO.mjs → chunk-HOG4QRLG.mjs} +1 -1
- package/dist/chunk-HOV7MM7M.mjs +10 -0
- package/dist/{chunk-XKNL5LSL.mjs → chunk-HOZPCWCF.mjs} +2 -2
- package/dist/{chunk-IBBDZQPO.mjs → chunk-HVSDXCZP.mjs} +2 -2
- package/dist/{chunk-64ZD4EKW.mjs → chunk-I4F5NJUI.mjs} +1 -1
- package/dist/{chunk-DLJHL4V7.mjs → chunk-I5YPTKMM.mjs} +2 -2
- package/dist/chunk-IHCKLMWD.mjs +10 -0
- package/dist/chunk-IIYP5UE7.mjs +10 -0
- package/dist/{chunk-A2B2LTRA.mjs → chunk-IQ3Z6ZO2.mjs} +1 -1
- package/dist/{chunk-3COKCTB2.mjs → chunk-J4T6TE7V.mjs} +2 -2
- package/dist/{chunk-OS6PVCFX.mjs → chunk-JANI446W.mjs} +1 -1
- package/dist/{chunk-KSWXLIZH.mjs → chunk-JGKBJHX2.mjs} +1 -1
- package/dist/chunk-JQSZFPWJ.mjs +10 -0
- package/dist/{chunk-IDIZSV2Y.mjs → chunk-JYWJE6L5.mjs} +2 -2
- package/dist/{chunk-ARMWQYH2.mjs → chunk-KDNT54DP.mjs} +2 -2
- package/dist/{chunk-KMSNBINF.mjs → chunk-L42WN3AP.mjs} +2 -2
- package/dist/{chunk-SY24O432.mjs → chunk-L4MQCPRT.mjs} +3 -3
- package/dist/chunk-L7GYT3MC.mjs +10 -0
- package/dist/{chunk-6CSP66NI.mjs → chunk-LGE4377M.mjs} +1 -1
- package/dist/chunk-LJAVEZ2H.mjs +10 -0
- package/dist/{chunk-JDDA4R2D.mjs → chunk-LJM26E7W.mjs} +1 -1
- package/dist/chunk-LNEOOIXS.mjs +10 -0
- package/dist/{chunk-VSGVHATE.mjs → chunk-LPHX7UMQ.mjs} +1 -1
- package/dist/{chunk-L6ISOTLH.mjs → chunk-LZOXWIAS.mjs} +2 -2
- package/dist/{chunk-W3YUV7IF.mjs → chunk-M3NJURGR.mjs} +1 -1
- package/dist/{chunk-IIBBR266.mjs → chunk-MMLAKHLR.mjs} +3 -3
- package/dist/{chunk-Z7JRM3NW.mjs → chunk-MQCTOCK2.mjs} +2 -2
- package/dist/{chunk-X34RHNLT.mjs → chunk-NIAMDJYU.mjs} +2 -2
- package/dist/{chunk-WD2TPSZV.mjs → chunk-NIGOM3FD.mjs} +1 -1
- package/dist/{chunk-6NUHEJGL.mjs → chunk-NOTKA3RL.mjs} +1 -1
- package/dist/chunk-NYH6JQMA.mjs +10 -0
- package/dist/{chunk-SZNDCHMJ.mjs → chunk-OFEX3RHY.mjs} +1 -1
- package/dist/{chunk-GLIN7JAI.mjs → chunk-OJIOLYTM.mjs} +1 -1
- package/dist/chunk-OWXMAVXI.mjs +10 -0
- package/dist/chunk-OY57K37D.mjs +10 -0
- package/dist/{chunk-OO3ZVB2T.mjs → chunk-OYE6VSTU.mjs} +2 -2
- package/dist/{chunk-GIUNLLWW.mjs → chunk-P3RRGPNM.mjs} +2 -2
- package/dist/{chunk-GPT4DR4P.mjs → chunk-PGDGNOYE.mjs} +1 -1
- package/dist/{chunk-DPFX25HC.mjs → chunk-PITIJLE3.mjs} +1 -1
- package/dist/{chunk-RSKKEGJZ.mjs → chunk-PPGEEMZ2.mjs} +2 -2
- package/dist/{chunk-UKBBSYRC.mjs → chunk-PTL6NSYA.mjs} +2 -2
- package/dist/chunk-PV4E7XDP.mjs +10 -0
- package/dist/chunk-PZBJGZ57.mjs +10 -0
- package/dist/chunk-Q5SN5AQT.mjs +10 -0
- package/dist/{chunk-EISLHUT5.mjs → chunk-Q7BJGV4I.mjs} +1 -1
- package/dist/{chunk-R5JHN4X6.mjs → chunk-QDMG3P5Z.mjs} +1 -1
- package/dist/{chunk-RE7ZGPOY.mjs → chunk-QMFL5BMI.mjs} +1 -1
- package/dist/{chunk-JTGVIAOK.mjs → chunk-QMP72J5L.mjs} +1 -1
- package/dist/chunk-QMSBDXK6.mjs +10 -0
- package/dist/{chunk-JIGOXUY4.mjs → chunk-QPWBJW2X.mjs} +1 -1
- package/dist/{chunk-67QIBKUN.mjs → chunk-QRLUWOGW.mjs} +1 -1
- package/dist/{chunk-FTV6OWMI.mjs → chunk-QSNYILCF.mjs} +2 -2
- package/dist/chunk-QVXIFV7W.mjs +10 -0
- package/dist/{chunk-M7BCIQ2J.mjs → chunk-QYU7CWJD.mjs} +1 -1
- package/dist/{chunk-JC22ELJM.mjs → chunk-RGWXVYDG.mjs} +1 -1
- package/dist/{chunk-N4NDPTX6.mjs → chunk-RKPWFZB4.mjs} +1 -1
- package/dist/chunk-RM64ROGL.mjs +10 -0
- package/dist/{chunk-CIOPWCOS.mjs → chunk-RPV3UUIN.mjs} +2 -2
- package/dist/chunk-RS7TRDRM.mjs +10 -0
- package/dist/{chunk-CHBF3XQ6.mjs → chunk-S2MA4MRM.mjs} +1 -1
- package/dist/chunk-S3LWWMMQ.mjs +10 -0
- package/dist/{chunk-WID7IWNC.mjs → chunk-SL5Q4NLV.mjs} +1 -1
- package/dist/{chunk-A63HMTSM.mjs → chunk-SMPF53W4.mjs} +1 -1
- package/dist/{chunk-5MR5L5JZ.mjs → chunk-SQPWV3OX.mjs} +2 -2
- package/dist/chunk-ST3TDAOP.mjs +10 -0
- package/dist/{chunk-ENUU2IVX.mjs → chunk-SUJD4QFW.mjs} +1 -1
- package/dist/{chunk-OKEXEU3C.mjs → chunk-T7K4WI76.mjs} +1 -1
- package/dist/{chunk-DFMPVQM3.mjs → chunk-TJDL7HT5.mjs} +2 -2
- package/dist/{chunk-SI7LO2L4.mjs → chunk-TK33MBDB.mjs} +1 -1
- package/dist/{chunk-BK3RBPST.mjs → chunk-TLUB6FCT.mjs} +1 -1
- package/dist/{chunk-UBC32WQB.mjs → chunk-TMGB4HZ7.mjs} +1 -1
- package/dist/{chunk-ALMW6S4I.mjs → chunk-TQMBJFQC.mjs} +2 -2
- package/dist/{chunk-E6DZSC2G.mjs → chunk-TUSG5ZRW.mjs} +2 -2
- package/dist/{chunk-D2NVLRIU.mjs → chunk-TZSRU3GG.mjs} +1 -1
- package/dist/{chunk-WXILHRBE.mjs → chunk-U5XI3CZD.mjs} +1 -1
- package/dist/chunk-U6W7D7TT.mjs +10 -0
- package/dist/chunk-UC6WAEPH.mjs +10 -0
- package/dist/{chunk-TGLVJRZE.mjs → chunk-UXAMVDQ4.mjs} +1 -1
- package/dist/chunk-V2C4UDOC.mjs +10 -0
- package/dist/{chunk-5LGYS5CZ.mjs → chunk-V3DTS6FF.mjs} +1 -1
- package/dist/{chunk-AC44TKUI.mjs → chunk-V6ZIMZ53.mjs} +1 -1
- package/dist/{chunk-B5NICAFU.mjs → chunk-VGBHKFW7.mjs} +1 -1
- package/dist/{chunk-BSFG32AL.mjs → chunk-VOWLLVPD.mjs} +2 -2
- package/dist/chunk-W4DOEGYH.mjs +10 -0
- package/dist/chunk-WJBURR7M.mjs +10 -0
- package/dist/{chunk-MUQR2YER.mjs → chunk-WN4QRMX6.mjs} +2 -2
- package/dist/chunk-WSDEMATI.mjs +10 -0
- package/dist/{chunk-UPOQXYUI.mjs → chunk-XDORZSJQ.mjs} +1 -1
- package/dist/{chunk-6HTOSJOJ.mjs → chunk-Y5LEKSMM.mjs} +1 -1
- package/dist/{chunk-3JOOFCEF.mjs → chunk-YI5VNFT4.mjs} +2 -2
- package/dist/{chunk-PQIDCA7P.mjs → chunk-YYOOJMQZ.mjs} +1 -1
- package/dist/chunk-ZNZBHN2V.mjs +10 -0
- package/dist/chunk-ZOCNDYUQ.mjs +10 -0
- package/dist/{chunk-E2VXJPSE.mjs → chunk-ZRPR4V5U.mjs} +1 -1
- package/dist/chunk-ZY3ZKJVD.mjs +10 -0
- package/dist/{chunk-4PZGQTXE.mjs → chunk-ZZGRLSEK.mjs} +2 -2
- package/dist/hooks/useCommitEffect.mjs +1 -0
- 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 +116 -40
- package/dist/index.js +22 -22
- package/dist/index.mjs +1 -1
- package/dist/react-aria.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/dist/utils/objects.mjs +1 -1
- package/package.json +4 -4
- package/sbom.json +6 -6
- package/dist/chunk-2SKD7TKS.mjs +0 -10
- package/dist/chunk-35AM4QEA.mjs +0 -10
- package/dist/chunk-3V4W6OGG.mjs +0 -10
- package/dist/chunk-4HOAPQDQ.mjs +0 -10
- package/dist/chunk-5GZAORDK.mjs +0 -10
- package/dist/chunk-6PBBHYCA.mjs +0 -10
- package/dist/chunk-B3W7VMJR.mjs +0 -10
- package/dist/chunk-C4XJOYAW.mjs +0 -10
- package/dist/chunk-CR66GYHT.mjs +0 -10
- package/dist/chunk-D6AOHRAV.mjs +0 -10
- package/dist/chunk-DHZKZ3AV.mjs +0 -10
- package/dist/chunk-DRQHSYY3.mjs +0 -10
- package/dist/chunk-DZJTPX2G.mjs +0 -10
- package/dist/chunk-F4YBUGLD.mjs +0 -10
- package/dist/chunk-G76NJ3IU.mjs +0 -10
- package/dist/chunk-H2SJLW7T.mjs +0 -10
- package/dist/chunk-HNKEI45D.mjs +0 -10
- package/dist/chunk-INHZHYOF.mjs +0 -10
- package/dist/chunk-J7BCMF23.mjs +0 -10
- package/dist/chunk-JXJZIKEY.mjs +0 -10
- package/dist/chunk-K276BGP2.mjs +0 -10
- package/dist/chunk-KBLJ34QI.mjs +0 -10
- package/dist/chunk-KMZ3YVPE.mjs +0 -10
- package/dist/chunk-L5H5GE3H.mjs +0 -10
- package/dist/chunk-LHLY432N.mjs +0 -10
- package/dist/chunk-LXZOYBTL.mjs +0 -10
- package/dist/chunk-MPJXTZ6L.mjs +0 -10
- package/dist/chunk-MZIQ27JP.mjs +0 -10
- package/dist/chunk-NN6HKMC4.mjs +0 -10
- package/dist/chunk-NYNS3UDR.mjs +0 -10
- package/dist/chunk-OAOIUNNG.mjs +0 -10
- package/dist/chunk-OMCGORTH.mjs +0 -10
- package/dist/chunk-PJINRIA6.mjs +0 -10
- package/dist/chunk-PSUZMSD3.mjs +0 -10
- package/dist/chunk-Q3FYMLAA.mjs +0 -10
- package/dist/chunk-QKNNMY2Q.mjs +0 -10
- package/dist/chunk-QVFGEXDU.mjs +0 -10
- package/dist/chunk-SJRYJGTL.mjs +0 -10
- package/dist/chunk-SYA6LAFU.mjs +0 -10
- package/dist/chunk-TEQHGF4G.mjs +0 -10
- package/dist/chunk-UCRJ3AR5.mjs +0 -10
- package/dist/chunk-UI4SJCQU.mjs +0 -10
- package/dist/chunk-V6DZG4PM.mjs +0 -11
- package/dist/chunk-VKWXATZ3.mjs +0 -10
- package/dist/chunk-VNJDCKLQ.mjs +0 -10
- package/dist/chunk-VQ45RUYJ.mjs +0 -10
- package/dist/chunk-VQHI3ZCW.mjs +0 -10
- package/dist/chunk-XC5H4EVW.mjs +0 -10
- package/dist/chunk-Z2PHVVX4.mjs +0 -10
- package/dist/chunk-Z7UPVYL5.mjs +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ToggleIconButton}from'./chunk-
|
|
1
|
+
export{a as ToggleIconButton}from'./chunk-ACHYZYVA.mjs';import'./chunk-7SKQUEHP.mjs';import'./chunk-WSDEMATI.mjs';import'./chunk-3JHXI33A.mjs';import'./chunk-FP5EWPOF.mjs';import'./chunk-3A7ZISTE.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-IHCKLMWD.mjs';import'./chunk-46UWKP7W.mjs';import'./chunk-CFDIUF4H.mjs';import'./chunk-G2IYZES5.mjs';import'./chunk-V3DTS6FF.mjs';import'./chunk-LPHX7UMQ.mjs';import'./chunk-MQCTOCK2.mjs';import'./chunk-4EAXDHSV.mjs';import'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';import'./chunk-GUPSQSPC.mjs';import'./chunk-LJZ7ZS4C.mjs';import'./chunk-RPIUPWPO.mjs';import'./chunk-XMGPNXZH.mjs';import'./chunk-M3NJURGR.mjs';import'./chunk-JOK6I52O.mjs';import'./chunk-RKPWFZB4.mjs';import'./chunk-NIGOM3FD.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-RGWXVYDG.mjs';import'./chunk-OO7BXL2N.mjs';import'./chunk-6V7S5IG5.mjs';import'./chunk-PGDGNOYE.mjs';import'./chunk-KRVEGSVY.mjs';import'./chunk-TZSRU3GG.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-A455VRNY.mjs';import'./chunk-QSNYILCF.mjs';import'./chunk-5IC46G5J.mjs';import'./chunk-QAUEG3EX.mjs';import'./chunk-CV6JQGJ3.mjs';import'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-I5YPTKMM.mjs';import'./chunk-CPX5CB4L.mjs';import'./chunk-QDMG3P5Z.mjs';import'./chunk-ZLDT2KDZ.mjs';import'./chunk-AB7LDKP2.mjs';import'./chunk-C342HL26.mjs';import'./chunk-EYKQGC4O.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-3ZX5CLZO.mjs';import'./chunk-J4T6TE7V.mjs';import'./chunk-JANI446W.mjs';import'./chunk-SMPF53W4.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-BPXZ6J5G.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-CEUVH4UZ.mjs';import'./chunk-66CUIXA6.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5NVCSLXT.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-HPUUQKKH.mjs';import'./chunk-TQMBJFQC.mjs';import'./chunk-3K6XNSYE.mjs';import'./chunk-ELW6SXDM.mjs';import'./chunk-PV4E7XDP.mjs';import'./chunk-2PTLJDIT.mjs';import'./chunk-LRFFL765.mjs';import'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-V2C4UDOC.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-JQQGRJ5J.mjs';import'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/Toolbar.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Toolbar}from'./chunk-
|
|
1
|
+
export{a as Toolbar}from'./chunk-AFJ3QV2Q.mjs';import'./chunk-LJM26E7W.mjs';import'./chunk-6DVKR25T.mjs';import'./chunk-HOG4QRLG.mjs';import'./chunk-OYE6VSTU.mjs';import'./chunk-KT4FTBJ2.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-FFPJBDWH.mjs';import'./chunk-AMW7LGCF.mjs';import'./chunk-DIMNDTFC.mjs';import'./chunk-BNWDQ4KX.mjs';import'./chunk-SL5Q4NLV.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-Y5LEKSMM.mjs';import'./chunk-I4F5NJUI.mjs';import'./chunk-ST3TDAOP.mjs';import'./chunk-4Y5IKZSW.mjs';import'./chunk-EHIGJYGW.mjs';import'./chunk-NGZRN4SF.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-DF2D7NE6.mjs';import'./chunk-ZQOR4LCM.mjs';import'./chunk-MUNFBB7D.mjs';import'./chunk-C6TD53KY.mjs';import'./chunk-6IK2TDLH.mjs';import'./chunk-KCHAWPUN.mjs';import'./chunk-G2RVM2KB.mjs';import'./chunk-O23QVPUT.mjs';import'./chunk-L4MQCPRT.mjs';import'./chunk-3IHIKAT4.mjs';import'./chunk-5ANNWMLJ.mjs';import'./chunk-GFTIEY5K.mjs';import'./chunk-3EFE2WAJ.mjs';import'./chunk-EJGGWOY5.mjs';import'./chunk-JYWJE6L5.mjs';import'./chunk-XXANV3FM.mjs';import'./chunk-TDRN6VLD.mjs';import'./chunk-P3RRGPNM.mjs';import'./chunk-G6VX4SU6.mjs';import'./chunk-VE2UA2AH.mjs';import'./chunk-DIL5HL6K.mjs';import'./chunk-L7GYT3MC.mjs';import'./chunk-WSDEMATI.mjs';import'./chunk-3JHXI33A.mjs';import'./chunk-FP5EWPOF.mjs';import'./chunk-3A7ZISTE.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-IHCKLMWD.mjs';import'./chunk-46UWKP7W.mjs';import'./chunk-CFDIUF4H.mjs';import'./chunk-G2IYZES5.mjs';import'./chunk-V3DTS6FF.mjs';import'./chunk-LPHX7UMQ.mjs';import'./chunk-MQCTOCK2.mjs';import'./chunk-4EAXDHSV.mjs';import'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';import'./chunk-GUPSQSPC.mjs';import'./chunk-LJZ7ZS4C.mjs';import'./chunk-RPIUPWPO.mjs';import'./chunk-XMGPNXZH.mjs';import'./chunk-M3NJURGR.mjs';import'./chunk-JOK6I52O.mjs';import'./chunk-RKPWFZB4.mjs';import'./chunk-NIGOM3FD.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-RGWXVYDG.mjs';import'./chunk-OO7BXL2N.mjs';import'./chunk-6V7S5IG5.mjs';import'./chunk-PGDGNOYE.mjs';import'./chunk-KRVEGSVY.mjs';import'./chunk-TZSRU3GG.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-A455VRNY.mjs';import'./chunk-QSNYILCF.mjs';import'./chunk-5IC46G5J.mjs';import'./chunk-QAUEG3EX.mjs';import'./chunk-CV6JQGJ3.mjs';import'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-I5YPTKMM.mjs';import'./chunk-BIDNNBRG.mjs';import'./chunk-3K2H3JOE.mjs';import'./chunk-CPX5CB4L.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';import'./chunk-QDMG3P5Z.mjs';import'./chunk-ZLDT2KDZ.mjs';import'./chunk-AB7LDKP2.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-IGM72PUL.mjs';import'./chunk-EKRT3PPK.mjs';import'./chunk-EYKQGC4O.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-3ZX5CLZO.mjs';import'./chunk-JJG67M2S.mjs';import'./chunk-J4T6TE7V.mjs';import'./chunk-JANI446W.mjs';import'./chunk-SMPF53W4.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-BPXZ6J5G.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-CEUVH4UZ.mjs';import'./chunk-66CUIXA6.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5NVCSLXT.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-HPUUQKKH.mjs';import'./chunk-TQMBJFQC.mjs';import'./chunk-3K6XNSYE.mjs';import'./chunk-ELW6SXDM.mjs';import'./chunk-PV4E7XDP.mjs';import'./chunk-2PTLJDIT.mjs';import'./chunk-LRFFL765.mjs';import'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-V2C4UDOC.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-JQQGRJ5J.mjs';import'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/Tooltip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Tooltip}from'./chunk-
|
|
1
|
+
export{a as Tooltip}from'./chunk-WSDEMATI.mjs';import'./chunk-3JHXI33A.mjs';import'./chunk-FP5EWPOF.mjs';import'./chunk-3A7ZISTE.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-IHCKLMWD.mjs';import'./chunk-46UWKP7W.mjs';import'./chunk-CFDIUF4H.mjs';import'./chunk-G2IYZES5.mjs';import'./chunk-V3DTS6FF.mjs';import'./chunk-LPHX7UMQ.mjs';import'./chunk-MQCTOCK2.mjs';import'./chunk-4EAXDHSV.mjs';import'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';import'./chunk-GUPSQSPC.mjs';import'./chunk-LJZ7ZS4C.mjs';import'./chunk-RPIUPWPO.mjs';import'./chunk-XMGPNXZH.mjs';import'./chunk-M3NJURGR.mjs';import'./chunk-JOK6I52O.mjs';import'./chunk-RKPWFZB4.mjs';import'./chunk-NIGOM3FD.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-RGWXVYDG.mjs';import'./chunk-OO7BXL2N.mjs';export{a as Pressable}from'./chunk-6V7S5IG5.mjs';import'./chunk-PGDGNOYE.mjs';import'./chunk-KRVEGSVY.mjs';import'./chunk-TZSRU3GG.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-A455VRNY.mjs';import'./chunk-QSNYILCF.mjs';import'./chunk-5IC46G5J.mjs';import'./chunk-QAUEG3EX.mjs';import'./chunk-CV6JQGJ3.mjs';import'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-I5YPTKMM.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-3ZX5CLZO.mjs';import'./chunk-J4T6TE7V.mjs';import'./chunk-JANI446W.mjs';import'./chunk-SMPF53W4.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-BPXZ6J5G.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-CEUVH4UZ.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5NVCSLXT.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-ELW6SXDM.mjs';export{d as Focusable}from'./chunk-PV4E7XDP.mjs';import'./chunk-2PTLJDIT.mjs';import'./chunk-LRFFL765.mjs';import'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-V2C4UDOC.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-JQQGRJ5J.mjs';import'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/TreeView.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as TreeView}from'./chunk-
|
|
1
|
+
export{a as TreeView}from'./chunk-2KRVQJDA.mjs';import'./chunk-WDWBYTJG.mjs';import'./chunk-Q7BJGV4I.mjs';import'./chunk-SVV6DLJH.mjs';import'./chunk-XDORZSJQ.mjs';import'./chunk-BJHDL2HH.mjs';import'./chunk-ZNZBHN2V.mjs';import'./chunk-T7K4WI76.mjs';import'./chunk-OY57K37D.mjs';import'./chunk-TLUB6FCT.mjs';import'./chunk-KT4FTBJ2.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-FFPJBDWH.mjs';import'./chunk-SL5Q4NLV.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-Y5LEKSMM.mjs';import'./chunk-I4F5NJUI.mjs';import'./chunk-ST3TDAOP.mjs';import'./chunk-4Y5IKZSW.mjs';import'./chunk-ZQOR4LCM.mjs';import'./chunk-YI5VNFT4.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-TUSG5ZRW.mjs';import'./chunk-2MS356Q7.mjs';import'./chunk-7SKQUEHP.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-QMP72J5L.mjs';import'./chunk-6RN7DKRF.mjs';import'./chunk-XF65LVBQ.mjs';import'./chunk-5ANNWMLJ.mjs';import'./chunk-3EFE2WAJ.mjs';import'./chunk-PTL6NSYA.mjs';import'./chunk-SQPWV3OX.mjs';import'./chunk-EJGGWOY5.mjs';import'./chunk-JYWJE6L5.mjs';import'./chunk-XXANV3FM.mjs';import'./chunk-TDRN6VLD.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-TMGB4HZ7.mjs';import'./chunk-W6QO7FPZ.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-VE2UA2AH.mjs';import'./chunk-DIL5HL6K.mjs';import'./chunk-L7GYT3MC.mjs';import'./chunk-WSDEMATI.mjs';import'./chunk-3JHXI33A.mjs';import'./chunk-FP5EWPOF.mjs';import'./chunk-3A7ZISTE.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-IHCKLMWD.mjs';import'./chunk-46UWKP7W.mjs';import'./chunk-CFDIUF4H.mjs';import'./chunk-G2IYZES5.mjs';import'./chunk-V3DTS6FF.mjs';import'./chunk-LPHX7UMQ.mjs';import'./chunk-MQCTOCK2.mjs';import'./chunk-4EAXDHSV.mjs';import'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';import'./chunk-GUPSQSPC.mjs';import'./chunk-LJZ7ZS4C.mjs';import'./chunk-RPIUPWPO.mjs';import'./chunk-XMGPNXZH.mjs';import'./chunk-M3NJURGR.mjs';import'./chunk-JOK6I52O.mjs';import'./chunk-RKPWFZB4.mjs';import'./chunk-NIGOM3FD.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-RGWXVYDG.mjs';import'./chunk-OO7BXL2N.mjs';import'./chunk-6V7S5IG5.mjs';import'./chunk-PGDGNOYE.mjs';import'./chunk-KRVEGSVY.mjs';import'./chunk-TZSRU3GG.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-A455VRNY.mjs';import'./chunk-QSNYILCF.mjs';import'./chunk-5IC46G5J.mjs';import'./chunk-QAUEG3EX.mjs';import'./chunk-CV6JQGJ3.mjs';import'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-I5YPTKMM.mjs';import'./chunk-BIDNNBRG.mjs';import'./chunk-3K2H3JOE.mjs';import'./chunk-CPX5CB4L.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';import'./chunk-QDMG3P5Z.mjs';import'./chunk-ZLDT2KDZ.mjs';import'./chunk-AB7LDKP2.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-IGM72PUL.mjs';import'./chunk-EKRT3PPK.mjs';import'./chunk-EYKQGC4O.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-3ZX5CLZO.mjs';import'./chunk-JJG67M2S.mjs';import'./chunk-J4T6TE7V.mjs';import'./chunk-JANI446W.mjs';import'./chunk-SMPF53W4.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-BPXZ6J5G.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-CEUVH4UZ.mjs';import'./chunk-66CUIXA6.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5NVCSLXT.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-HPUUQKKH.mjs';import'./chunk-TQMBJFQC.mjs';import'./chunk-3K6XNSYE.mjs';import'./chunk-ELW6SXDM.mjs';import'./chunk-PV4E7XDP.mjs';import'./chunk-2PTLJDIT.mjs';import'./chunk-LRFFL765.mjs';import'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-V2C4UDOC.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-JQQGRJ5J.mjs';import'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/UNSAFE_ListBox.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as useDragAndDrop}from'./chunk-
|
|
1
|
+
export{a as useDragAndDrop}from'./chunk-S2MA4MRM.mjs';import'./chunk-EPWWEFTP.mjs';export{q as UNSAFE_ListBox}from'./chunk-OYE6VSTU.mjs';import'./chunk-KT4FTBJ2.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-FFPJBDWH.mjs';import'./chunk-AMW7LGCF.mjs';import'./chunk-DIMNDTFC.mjs';import'./chunk-BLHN7I5Z.mjs';import'./chunk-BNWDQ4KX.mjs';import'./chunk-SL5Q4NLV.mjs';import'./chunk-24WOG72O.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-Y5LEKSMM.mjs';import'./chunk-I4F5NJUI.mjs';import'./chunk-ST3TDAOP.mjs';import'./chunk-UXAMVDQ4.mjs';import'./chunk-4Y5IKZSW.mjs';import'./chunk-EHIGJYGW.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-DF2D7NE6.mjs';import'./chunk-ZQOR4LCM.mjs';import'./chunk-6IK2TDLH.mjs';import'./chunk-L4MQCPRT.mjs';import'./chunk-3IHIKAT4.mjs';import'./chunk-5ANNWMLJ.mjs';import'./chunk-GFTIEY5K.mjs';import'./chunk-3EFE2WAJ.mjs';import'./chunk-EJGGWOY5.mjs';import'./chunk-VE2UA2AH.mjs';import'./chunk-DIL5HL6K.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-46UWKP7W.mjs';import'./chunk-CFDIUF4H.mjs';import'./chunk-LPHX7UMQ.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NIGOM3FD.mjs';import'./chunk-6V7S5IG5.mjs';import'./chunk-KRVEGSVY.mjs';import'./chunk-TZSRU3GG.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-A455VRNY.mjs';import'./chunk-QSNYILCF.mjs';import'./chunk-5IC46G5J.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-I5YPTKMM.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';import'./chunk-AB7LDKP2.mjs';import'./chunk-C342HL26.mjs';import'./chunk-IGM72PUL.mjs';import'./chunk-EKRT3PPK.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-3ZX5CLZO.mjs';import'./chunk-JJG67M2S.mjs';import'./chunk-J4T6TE7V.mjs';import'./chunk-JANI446W.mjs';import'./chunk-SMPF53W4.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-BPXZ6J5G.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-CEUVH4UZ.mjs';import'./chunk-66CUIXA6.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5NVCSLXT.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-TQMBJFQC.mjs';import'./chunk-ELW6SXDM.mjs';import'./chunk-PV4E7XDP.mjs';import'./chunk-2PTLJDIT.mjs';import'./chunk-LRFFL765.mjs';import'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-V2C4UDOC.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-JQQGRJ5J.mjs';import'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/Virtualizer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-
|
|
1
|
+
export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-VGBHKFW7.mjs';import'./chunk-L42WN3AP.mjs';import'./chunk-SVV6DLJH.mjs';import'./chunk-XDORZSJQ.mjs';import'./chunk-UTQ7AIPM.mjs';import'./chunk-BJHDL2HH.mjs';import'./chunk-ZNZBHN2V.mjs';import'./chunk-T7K4WI76.mjs';import'./chunk-6F66XVOA.mjs';import'./chunk-TLUB6FCT.mjs';import'./chunk-NO55UIGK.mjs';import'./chunk-5BAHJXOI.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-FFPJBDWH.mjs';export{d as Autocomplete}from'./chunk-DIMNDTFC.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-I4F5NJUI.mjs';import'./chunk-ST3TDAOP.mjs';import'./chunk-4Y5IKZSW.mjs';import'./chunk-ZQOR4LCM.mjs';import'./chunk-7SKQUEHP.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-3EFE2WAJ.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-TMGB4HZ7.mjs';import'./chunk-W6QO7FPZ.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-RGWXVYDG.mjs';import'./chunk-PGDGNOYE.mjs';import'./chunk-KRVEGSVY.mjs';import'./chunk-TZSRU3GG.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-QSNYILCF.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-I5YPTKMM.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';import'./chunk-IGM72PUL.mjs';import'./chunk-EKRT3PPK.mjs';import'./chunk-JJG67M2S.mjs';import'./chunk-JANI446W.mjs';import'./chunk-SMPF53W4.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-BPXZ6J5G.mjs';import'./chunk-CEUVH4UZ.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5NVCSLXT.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-TQMBJFQC.mjs';import'./chunk-ELW6SXDM.mjs';import'./chunk-PV4E7XDP.mjs';import'./chunk-2PTLJDIT.mjs';import'./chunk-LRFFL765.mjs';import'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-V2C4UDOC.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-XPISSX5R.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-VOWLLVPD.mjs';import {a as a$1}from'./chunk-TAYP2OGC.mjs';import {a as a$8}from'./chunk-4CMATAQ2.mjs';import {a as a$5}from'./chunk-7JE2SRIH.mjs';import {B}from'./chunk-UXAMVDQ4.mjs';import {b}from'./chunk-P3RRGPNM.mjs';import {a as a$6}from'./chunk-DIL5HL6K.mjs';import {a as a$9}from'./chunk-6V7S5IG5.mjs';import {a as a$3}from'./chunk-ELW6SXDM.mjs';import {a as a$2}from'./chunk-LRFFL765.mjs';import {g}from'./chunk-V2C4UDOC.mjs';import {h,j}from'./chunk-TYOEGCPS.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {UploadIcon}from'@baseline-ui/icons/20';import t from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$4}from'./chunk-BSFG32AL.mjs';import {a as a$1}from'./chunk-TAYP2O
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var W=a({defaultClassName:"_12y0zas2 _1yep5z6dv _1yep5z6f0",variantClassNames:{isDisabled:{true:"_1yep5z611l"},isCompact:{true:"_12y0zas4 z9nup86"}},defaultVariants:{},compoundVariants:[]}),X=a({defaultClassName:"_12y0zasj _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6e4 _1yep5z6f5",variantClassNames:{isDisabled:{true:"_12y0zask _1yep5z611l"},isCompact:{true:"_12y0zasl _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),Y=a({defaultClassName:"_12y0zas5 _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6m3 _1yep5z6gb",variantClassNames:{isOutlined:{true:"_12y0zas6 _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi _1yep5z6z4 _1yep5z6z5 _1yep5z6z6 _1yep5z618z _1yep5z6190 _1yep5z6140"},isCompact:{true:"_12y0zas7 _1yep5z6qd _1yep5z6qe _1yep5z6qf _1yep5z6o1 _1yep5z6o2 _1yep5z6o3 _1yep5z6ms _1yep5z6mt _1yep5z6mu _1yep5z6p4 _1yep5z6p5 _1yep5z6p6 _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6179 _1yep5z617a _1yep5z617b"},hasChildrenInside:{true:"_1yep5z6n1 _1yep5z6n2 _1yep5z6n3 _1yep5z6pd _1yep5z6pe _1yep5z6pf _1yep5z6qj _1yep5z6qk _1yep5z6ql _1yep5z6o7 _1yep5z6o8 _1yep5z6o9 _1yep5z6wa _1yep5z6wb _1yep5z6wc"},isDropTarget:{true:"_1yep5z6132"},isHovered:{true:"_12y0zasa"},isFocusVisible:{true:"_12y0zasb"},isError:{true:"_1yep5z618y _1yep5z6191 _1yep5z613e"},isDisabled:{true:"_12y0zasd _1yep5z618y _1yep5z6190 _1yep5z6146"}},defaultVariants:{},compoundVariants:[[{isOutlined:false,isHovered:true},"_12y0zase"],[{isOutlined:true,isHovered:true},"_1yep5z61ql _1yep5z61pd"],[{isOutlined:true,isFocusVisible:true},"_1yep5z61pd"],[{isOutlined:true,isDisabled:true},"_1yep5z61vi"],[{isOutlined:true,isError:true},"_1yep5z61vi _1yep5z61vk _1yep5z61px"],[{isError:true},"_12y0zasf"]]}),ee=a({defaultClassName:"_12y0zasg _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z69c _1yep5z69d _1yep5z69e",variantClassNames:{hasChildrenInside:{true:"_12y0zash _1yep5z6mv _1yep5z6mw _1yep5z6mx _1yep5z6p7 _1yep5z6p8 _1yep5z6p9 _1yep5z6qd _1yep5z6qe _1yep5z6qf _1yep5z6o1 _1yep5z6o2 _1yep5z6o3"},isCompact:{true:"_12y0zasi _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6179 _1yep5z617a _1yep5z617b _1yep5z6w1 _1yep5z6w2 _1yep5z6w3 _1yep5z618m"}},defaultVariants:{},compoundVariants:[]}),re=a({defaultClassName:"_12y0zasq _1yep5z6fa",variantClassNames:{isDisabled:{true:"_1yep5z611u"}},defaultVariants:{},compoundVariants:[]}),te=a({defaultClassName:"_12y0zasm",variantClassNames:{isHovered:{true:"_12y0zasn"},isCompact:{true:"_12y0zaso z9nup86"}},defaultVariants:{},compoundVariants:[[{isCompact:true,isHovered:true},"_12y0zasp _1yep5z61o8"]]}),oe="_1yep5z6dv _1yep5z6ee",ae="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69f _1yep5z69g _1yep5z69h",se="_1yep5z6dy _1yep5z6ez",ne=a({defaultClassName:"_12y0zas0 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m3",variantClassNames:{isCompact:{true:"_12y0zas1"}},defaultVariants:{},compoundVariants:[]});var Te="Drop files here or click to upload",Re="Upload",we='[role="option"], [role="row"], [role="treeitem"], [aria-disabled="true"], [data-disabled]';function Be({dropProps:j$1,triggerProps:N,dropRef:v,className:k,contentClassName:p,triggerClassName:z,isDisabled:i,fileTriggerProps:d,labelledBy:C,describedBy:e,triggerContent:_,description:F,children:P}){let u=t.useRef(null),c
|
|
10
|
+
var W=a({defaultClassName:"_12y0zas2 _1yep5z6dv _1yep5z6f0",variantClassNames:{isDisabled:{true:"_1yep5z611l"},isCompact:{true:"_12y0zas4 z9nup86"}},defaultVariants:{},compoundVariants:[]}),X=a({defaultClassName:"_12y0zasj _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6e4 _1yep5z6f5",variantClassNames:{isDisabled:{true:"_12y0zask _1yep5z611l"},isCompact:{true:"_12y0zasl _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),Y=a({defaultClassName:"_12y0zas5 _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6m3 _1yep5z6gb",variantClassNames:{isOutlined:{true:"_12y0zas6 _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi _1yep5z6z4 _1yep5z6z5 _1yep5z6z6 _1yep5z618z _1yep5z6190 _1yep5z6140"},isCompact:{true:"_12y0zas7 _1yep5z6qd _1yep5z6qe _1yep5z6qf _1yep5z6o1 _1yep5z6o2 _1yep5z6o3 _1yep5z6ms _1yep5z6mt _1yep5z6mu _1yep5z6p4 _1yep5z6p5 _1yep5z6p6 _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6179 _1yep5z617a _1yep5z617b"},hasChildrenInside:{true:"_1yep5z6n1 _1yep5z6n2 _1yep5z6n3 _1yep5z6pd _1yep5z6pe _1yep5z6pf _1yep5z6qj _1yep5z6qk _1yep5z6ql _1yep5z6o7 _1yep5z6o8 _1yep5z6o9 _1yep5z6wa _1yep5z6wb _1yep5z6wc"},isDropTarget:{true:"_1yep5z6132"},isHovered:{true:"_12y0zasa"},isFocusVisible:{true:"_12y0zasb"},isError:{true:"_1yep5z618y _1yep5z6191 _1yep5z613e"},isDisabled:{true:"_12y0zasd _1yep5z618y _1yep5z6190 _1yep5z6146"}},defaultVariants:{},compoundVariants:[[{isOutlined:false,isHovered:true},"_12y0zase"],[{isOutlined:true,isHovered:true},"_1yep5z61ql _1yep5z61pd"],[{isOutlined:true,isFocusVisible:true},"_1yep5z61pd"],[{isOutlined:true,isDisabled:true},"_1yep5z61vi"],[{isOutlined:true,isError:true},"_1yep5z61vi _1yep5z61vk _1yep5z61px"],[{isError:true},"_12y0zasf"]]}),ee=a({defaultClassName:"_12y0zasg _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z69c _1yep5z69d _1yep5z69e",variantClassNames:{hasChildrenInside:{true:"_12y0zash _1yep5z6mv _1yep5z6mw _1yep5z6mx _1yep5z6p7 _1yep5z6p8 _1yep5z6p9 _1yep5z6qd _1yep5z6qe _1yep5z6qf _1yep5z6o1 _1yep5z6o2 _1yep5z6o3"},isCompact:{true:"_12y0zasi _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6179 _1yep5z617a _1yep5z617b _1yep5z6w1 _1yep5z6w2 _1yep5z6w3 _1yep5z618m"}},defaultVariants:{},compoundVariants:[]}),re=a({defaultClassName:"_12y0zasq _1yep5z6fa",variantClassNames:{isDisabled:{true:"_1yep5z611u"}},defaultVariants:{},compoundVariants:[]}),te=a({defaultClassName:"_12y0zasm",variantClassNames:{isHovered:{true:"_12y0zasn"},isCompact:{true:"_12y0zaso z9nup86"}},defaultVariants:{},compoundVariants:[[{isCompact:true,isHovered:true},"_12y0zasp _1yep5z61o8"]]}),oe="_1yep5z6dv _1yep5z6ee",ae="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69f _1yep5z69g _1yep5z69h",se="_1yep5z6dy _1yep5z6ez",ne=a({defaultClassName:"_12y0zas0 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m3",variantClassNames:{isCompact:{true:"_12y0zas1"}},defaultVariants:{},compoundVariants:[]});var Te="Drop files here or click to upload",Re="Upload",we='[role="option"], [role="row"], [role="treeitem"], [aria-disabled="true"], [data-disabled]';function Be({dropProps:j$1,triggerProps:N,dropRef:v,className:k,contentClassName:p,triggerClassName:z,isDisabled:i,fileTriggerProps:d,labelledBy:C,describedBy:e,triggerContent:_,description:F,children:P}){let u=t.useRef(null),c=t.useRef(false),m=o=>{let l=o.currentTarget;if(!h(l,j(o)))return false;for(let g of o.nativeEvent.composedPath()){if(g===l)break;if(g.matches?.(we))return false}return true};return jsxs("div",{ref:v,...g(j$1,{onPointerDownCapture:()=>{c.current=false;},onPointerDown:o=>{c.current=m(o);},onClick:o=>{let l=c.current;c.current=false,!i&&l&&m(o)&&(u.current?.focus(),u.current?.click());}}),tabIndex:-1,"data-testid":"file-uploader-dropzone",className:k,children:[jsxs("div",{className:p,children:[jsx(a$8,{...d,children:jsx(a$9,{isDisabled:i,children:jsx("div",{ref:u,...N,role:"button",tabIndex:i?-1:0,"aria-labelledby":C,"aria-describedby":e,"aria-disabled":i||void 0,"data-testid":"file-uploader-trigger",className:z,children:_})})}),F]}),P]})}var ie=t.forwardRef(({className:j,style:N,variant:v,isInline:k=false,label:p,description:z,onAdd:i,accept:d,allowsMultiple:C=true,isDisabled:e,errorMessage:_,buttonLabel:F=Re,dropzoneLabel:P=Te,children:u},c)=>{let m=t.useId(),o=t.useId(),l=t.useId(),g$1=t.useId(),I=t.useId(),H=t.useRef(null),h=v===void 0||v==="dropzone"?k?"dropzone-inline":"dropzone-box":v,f=h!=="button",s=h==="dropzone-compact",le=h==="dropzone-inline"||s,O=t.Children.toArray(u).length>0,y=f&&!s&&O,ye=t.useMemo(()=>({isCentered:y,isDisabled:e}),[y,e]),T=t.useCallback(a=>{if(!a.length)return;let Pe=C?a:a.slice(0,1);i?.(Pe);},[C,i]),D={acceptedFileTypes:d?[d]:void 0,allowsMultiple:C,onSelect:a=>{a&&T([...a]);}},{dropProps:ze,isDropTarget:de}=B({ref:H,isDisabled:e,onDrop:async a=>{T(await a$1({items:a.items,accept:d}));}}),{hoverProps:_e,isHovered:ue}=a$2({isDisabled:e}),{hoverProps:ce,isHovered:me}=a$2({}),{focusProps:fe,isFocusVisible:ve}=a$3(),{focusProps:Ce,isFocusVisible:ge}=a$3(),be=!e&&(ve||ge),U=ue&&!(y&&me),he=g(e?{}:ze,_e,fe),{clipboardProps:xe}=a$4({isDisabled:e,onPaste:async a=>{T(await a$1({items:a,accept:d}));}}),je=p?m:f?I:void 0,q=[z?l:null,_?g$1:null].filter(Boolean).join(" ")||void 0,A=z?jsx("div",{id:l,className:W({isDisabled:e&&f,isCompact:s}),children:z}):null,Ne=p||z&&!f?jsxs("div",{className:ae,children:[p?jsx("div",{id:m,className:se,children:p}):null,f?null:A]}):null,M=O?jsx(a$5.Provider,{value:ye,children:u}):null,ke=()=>f?jsx(Be,{dropProps:he,triggerProps:g(xe,Ce),dropRef:H,className:Y({isOutlined:le,isCompact:s,isDropTarget:de,isDisabled:e,isHovered:U,isFocusVisible:be,isError:!!_,hasChildrenInside:y}),contentClassName:ee({hasChildrenInside:y,isCompact:s}),triggerClassName:X({isDisabled:e,isCompact:s}),isDisabled:e,fileTriggerProps:D,labelledBy:je,describedBy:q,triggerContent:jsxs(Fragment,{children:[jsx(UploadIcon,{width:20,height:20,className:re({isDisabled:e})}),jsx("span",{id:I,className:te({isHovered:U,isCompact:s}),children:P})]}),description:A,children:y?jsx(a$6,{width:"full",...ce,children:M}):null}):jsx(a$8,{...D,children:jsx(b,{variant:"primary",iconStart:UploadIcon,label:F,id:o,"data-testid":"file-uploader-button","aria-labelledby":p?`${m} ${o}`:void 0,isDisabled:e,"aria-describedby":q})}),Fe=_?jsx(a$6,{id:g$1,elementType:"span",role:"alert",className:oe,children:_}):null;return jsxs("div",{ref:c,className:a$7(ne({isCompact:s}),"BaselineUI-FileUploader",j),style:N,"data-variant":h,"data-testid":"file-uploader",children:[Ne,ke(),Fe,y?null:M]})});ie.displayName="FileUploader";export{ie as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {l,q,e,B,o,p,u,h,d as d$1,A,g,v,x,z,f,i,m,c as c$
|
|
1
|
+
import {l,q,e,B,o,p,u,h,d as d$1,A,g as g$1,v,x,z,f,i,m,c as c$1,r,t,s,n as n$1,j as j$2,a as a$3,b as b$4,w}from'./chunk-UXAMVDQ4.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {d as d$2,a as a$1,b as b$3}from'./chunk-SMPF53W4.mjs';import {d}from'./chunk-AIG23SN5.mjs';import {j,h as h$1,m as m$1,n}from'./chunk-2MNK24YJ.mjs';import {a,c,g}from'./chunk-V2C4UDOC.mjs';import {a as a$2}from'./chunk-6ZQE5SHE.mjs';import {b as b$2,j as j$1}from'./chunk-TYOEGCPS.mjs';import {flushSync}from'react-dom';import We,{useState,useRef,useImperativeHandle,useEffect,useCallback,version}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {l,q,e,B,o,p,u,h,d as d$1,A,g,v,x,z,f,i,m,c as c$2,r,t,s,n as n$1,j as j$
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var Ze=We.forwardRef(function(e,n){let t=e.children,[s,l]=useState(null),v=useRef(null),d=useRef(void 0);return useImperativeHandle(n,()=>(h,K)=>{let T=t(h),O,a,b;T&&typeof T=="object"&&"element"in T?(O=T.element,a=T.x,b=T.y):O=T,flushSync(()=>{l(O);}),K(v.current,a,b),d.current=requestAnimationFrame(()=>{l(null);});},[t]),useEffect(()=>()=>{d.current&&cancelAnimationFrame(d.current);},[]),s?jsx("div",{style:{zIndex:-100,position:"fixed",top:0,left:-1e5},ref:v,children:s}):null});function Be(i,e,n,t,s=false,l=false){switch(t){case "left":return s?oe(i,e,n,l,"left"):ne(i,e,n,l,"left");case "right":return s?ne(i,e,n,l,"right"):oe(i,e,n,l,"right");case "up":return ne(i,e,n,l);case "down":return oe(i,e,n,l)}}function oe(i,e,n,t=false,s=null){if(!n)return {type:"root"};if(n.type==="root"){let l=i.getFirstKey?.()??null;return l!=null?{type:"item",key:l,dropPosition:"before"}:null}if(n.type==="item"){let l=null;s?l=s==="right"?i.getKeyRightOf?.(n.key,{includeDisabled:true}):i.getKeyLeftOf?.(n.key,{includeDisabled:true}):l=i.getKeyBelow?.(n.key,{includeDisabled:true});let v=le(e,n.key,d=>e.getKeyAfter(d));if(l!=null&&l!==v)return {type:"item",key:l,dropPosition:n.dropPosition};switch(n.dropPosition){case "before":return {type:"item",key:n.key,dropPosition:"on"};case "on":{let d=e.getItem(n.key),h=l!=null?e.getItem(l):null;return d&&h&&h.level>=d.level?{type:"item",key:h.key,dropPosition:"before"}:{type:"item",key:n.key,dropPosition:"after"}}case "after":{let d=e.getItem(n.key),h=d?.nextKey!=null?e.getItem(d.nextKey):null;for(;h!=null&&h.type!=="item";)h=h.nextKey!=null?e.getItem(h.nextKey):null;if(d&&h==null&&d.parentKey!=null){let K=e.getItem(d.parentKey),T=K?.nextKey!=null?e.getItem(K.nextKey):null;if(T?.type==="item")return {type:"item",key:T.key,dropPosition:"before"};if(K?.type==="item")return {type:"item",key:K.key,dropPosition:"after"}}if(h)return {type:"item",key:h.key,dropPosition:"on"}}}}return t?{type:"root"}:null}function ne(i,e,n,t=false,s=null){if(!n||t&&n.type==="root"){let l=null,v=i.getLastKey?.();for(;v!=null;){let d=e.getItem(v);if(d?.type!=="item")break;l=v,v=d?.parentKey;}return l!=null?{type:"item",key:l,dropPosition:"after"}:null}if(n.type==="item"){let l=null;s?l=s==="left"?i.getKeyLeftOf?.(n.key,{includeDisabled:true}):i.getKeyRightOf?.(n.key,{includeDisabled:true}):l=i.getKeyAbove?.(n.key,{includeDisabled:true});let v=le(e,n.key,d=>e.getKeyBefore(d));if(l!=null&&l!==v)return {type:"item",key:l,dropPosition:n.dropPosition};switch(n.dropPosition){case "before":{let d=e.getItem(n.key);if(d&&d.prevKey!=null){let h=Fe(e,d.prevKey);if(h)return h}return l!=null?{type:"item",key:l,dropPosition:"on"}:{type:"root"}}case "on":return {type:"item",key:n.key,dropPosition:"before"};case "after":{let d=Fe(e,n.key);return d||{type:"item",key:n.key,dropPosition:"on"}}}}return n.type!=="root"?{type:"root"}:null}function Fe(i,e){let n=i.getItem(e),t=le(i,e,l=>i.getKeyAfter(l)),s=t!=null?i.getItem(t):null;if(n&&s&&s.level>n.level){let l=null;if("lastChildKey"in n)for(l=n.lastChildKey!=null?i.getItem(n.lastChildKey):null;l&&l.type!=="item"&&l.prevKey!=null;)l=i.getItem(l.prevKey);else l=Array.from(n.childNodes).findLast(v=>v.type==="item")||null;if(l)return {type:"item",key:l.key,dropPosition:"after"}}return null}function le(i,e,n){let t=n(e),s=t!=null?i.getItem(t):null;for(;s&&s.type!=="item";)t=n(s.key),s=t!=null?i.getItem(t):null;return t}var Q=20;function He(i){let e=useRef(null),n=useRef(true),t=useRef(true);useEffect(()=>{if(i.current){e.current=a$1(i.current)?i.current:b$3(i.current);let v=window.getComputedStyle(e.current);n.current=/(auto|scroll)/.test(v.overflowX),t.current=/(auto|scroll)/.test(v.overflowY);}},[i]);let s=useRef({timer:void 0,dx:0,dy:0}).current;useEffect(()=>()=>{s.timer&&(cancelAnimationFrame(s.timer),s.timer=void 0);},[s]);let l=useCallback(()=>{n.current&&e.current&&(e.current.scrollLeft+=s.dx),t.current&&e.current&&(e.current.scrollTop+=s.dy),s.timer&&(s.timer=requestAnimationFrame(l));},[e,s]);return {move(v,d){if(!j()||h$1()||!e.current)return;let h=e.current.getBoundingClientRect(),K=Q,T=Q,O=h.height-Q,a=h.width-Q;v<K||v>a||d<T||d>O?(v<K?s.dx=v-K:v>a&&(s.dx=v-a),d<T?s.dy=d-T:d>O&&(s.dy=d-O),s.timer||(s.timer=requestAnimationFrame(l))):this.stop();},stop(){s.timer&&(cancelAnimationFrame(s.timer),s.timer=void 0);}}}function tt(i,e$1,n){let t=useRef({props:i,state:e$1,nextTarget:null,dropOperation:null}).current;t.props=i,t.state=e$1;let s=useCallback(async a=>{let{onInsert:b,onRootDrop:g,onItemDrop:c,onReorder:p,onMove:m,acceptedDragTypes:u="all",shouldAcceptItemDrop:r}=t.props,{draggingKeys:f}=l,y=q(n),{target:o,dropOperation:D,items:P}=a,w=P;(u!=="all"||r)&&(w=P.filter(E=>{let S;return E.kind==="directory"?S=new Set([e]):S=E.kind==="file"?new Set([E.type]):E.types,u==="all"||u.some(x=>S.has(x))?o.type==="item"&&o.dropPosition==="on"&&r?r(o,S):true:false})),w.length>0&&(o.type==="root"&&g&&await g({items:w,dropOperation:D}),o.type==="item"&&(o.dropPosition==="on"&&c&&await c({items:w,dropOperation:D,isInternal:y,target:o}),m&&y&&await m({keys:f,dropOperation:D,target:o}),o.dropPosition!=="on"&&(!y&&b&&await b({items:w,dropOperation:D,target:o}),y&&p&&await p({keys:f,dropOperation:D,target:o}))));},[t,n]),l$1=He(n),{dropProps:v}=B({ref:n,onDropEnter(){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},onDropMove(a){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},getDropOperationForPoint(a,b,g,c){let{draggingKeys:p,dropCollectionRef:m}=l,u=q(n),r=y=>e$1.getDropOperation({target:y,types:a,allowedOperations:b,isInternal:u,draggingKeys:p})!=="cancel",f=i.dropTargetDelegate.getDropTargetFromPoint(g,c,r);if(!f)return t.dropOperation="cancel",t.nextTarget=null,"cancel";if(t.dropOperation=e$1.getDropOperation({target:f,types:a,allowedOperations:b,isInternal:u,draggingKeys:p}),t.dropOperation==="cancel"){let y={type:"root"},o=e$1.getDropOperation({target:y,types:a,allowedOperations:b,isInternal:u,draggingKeys:p});o!=="cancel"&&(f=y,t.dropOperation=o);}return f&&t.dropOperation!=="cancel"&&n?.current!==m?.current&&o(n),t.nextTarget=t.dropOperation==="cancel"?null:f,t.dropOperation},onDropExit(){o(void 0),e$1.setTarget(null),l$1.stop();},onDropActivate(a){e$1.target?.type==="item"&&typeof i.onDropActivate=="function"&&i.onDropActivate({type:"dropactivate",x:a.x,y:a.y,target:e$1.target});},onDrop(a){o(n),e$1.target&&K(a,e$1.target);let{draggingCollectionRef:b}=l;b==null&&p();}}),d$2=useRef(null),h$1=useCallback(()=>{let{state:a}=t;if(d$2.current){let{target:b,collection:g,selectedKeys:c,focusedKey:p,isInternal:m,draggingKeys:u}=d$2.current;if(a.collection.size>g.size&&a.selectionManager.isSelectionEqual(c)){let r=new Set,f=a.collection.getFirstKey();for(;f!=null;){let y=a.collection.getItem(f);y?.type==="item"&&!g.getItem(y.key)&&r.add(y.key),y?.hasChildNodes&&a.collection.getItem(y.lastChildKey)?.type==="item"?f=y.firstChildKey:f=a.collection.getKeyAfter(f);}if(a.selectionManager.setSelectedKeys(r),a.selectionManager.focusedKey===p){let y=r.keys().next().value;if(y!=null){let o=a.collection.getItem(y),D=d$2.current.target,P=a.collection.expandedKeys?a.collection.expandedKeys.has(o?.parentKey):false;o&&(o?.type==="cell"||D.type==="item"&&D.dropPosition==="on"&&!P)&&(y=o.parentKey),y!=null&&a.selectionManager.setFocusedKey(y),a.selectionManager.selectionMode==="none"&&d("keyboard");}}}else p!=null&&a.selectionManager.focusedKey===p&&m&&b.type==="item"&&b.dropPosition!=="on"&&u.has(a.collection.getItem(p)?.parentKey)?(a.selectionManager.setFocusedKey(a.collection.getItem(p)?.parentKey??null),d("keyboard")):a.selectionManager.focusedKey===p&&b.type==="item"&&b.dropPosition==="on"&&a.collection.getItem(b.key)!=null?(a.selectionManager.setFocusedKey(b.key),d("keyboard")):a.selectionManager.focusedKey!=null&&!a.selectionManager.isSelected(a.selectionManager.focusedKey)&&d("keyboard");a.selectionManager.setFocused(true);}},[t]),K=useCallback((a,b)=>{let{state:g}=t;d$2.current={timeout:void 0,focusedKey:g.selectionManager.focusedKey,collection:g.collection,selectedKeys:g.selectionManager.selectedKeys,draggingKeys:l.draggingKeys,isInternal:q(n),target:b},(t.props.onDrop||s)({type:"drop",x:a.x,y:a.y,target:b,items:a.items,dropOperation:a.dropOperation}),d$2.current.timeout=setTimeout(()=>{h$1(),d$2.current=null;},50);},[t,s,n,h$1]);useEffect(()=>()=>{d$2.current&&clearTimeout(d$2.current.timeout);},[]),a(()=>{d$2.current&&e$1.collection!==d$2.current.collection&&h$1();});let{direction:T}=b();useEffect(()=>{if(!n.current)return;let a=(c,p=true,m="down")=>Be(t.props.keyboardDelegate,t.state.collection,c,m,T==="rtl",p),b=(c,p=true)=>a(c,p,"up"),g=(c,p,m,u,r=true)=>{let f=0,y,{draggingKeys:o}=l,D=q(n);do{let P=u(c,r);if(!P)return null;c=P,y=t.state.getDropOperation({target:P,types:p,allowedOperations:m,isInternal:D,draggingKeys:o}),c.type==="root"&&f++;}while(y==="cancel"&&!t.state.isDropTarget(c)&&f<2);return y==="cancel"?null:c};return u({element:n.current,preventFocusOnDrop:true,getDropOperation(c,p){if(t.state.target){let{draggingKeys:u}=l,r=q(n);return t.state.getDropOperation({target:t.state.target,types:c,allowedOperations:p,isInternal:r,draggingKeys:u})}return g(null,c,p,a)?"move":"cancel"},onDropEnter(c,p){let m=h(p.items),u=t.state.selectionManager,r=null;o(n);let f=u.focusedKey,y="after",o$1=f!=null?t.state.collection.getItem(f):null;if(o$1?.type==="cell"&&(f=o$1.parentKey),f!=null&&u.isSelected(f)&&(u.selectedKeys.size>1&&u.firstSelectedKey===f?y="before":f=u.lastSelectedKey),f!=null){r={type:"item",key:f,dropPosition:y};let{draggingKeys:D}=l,P=q(n);t.state.getDropOperation({target:r,types:m,allowedOperations:p.allowedDropOperations,isInternal:P,draggingKeys:D})==="cancel"&&(r=g(r,m,p.allowedDropOperations,a,false)??g(r,m,p.allowedDropOperations,b,false));}r||(r=g(null,m,p.allowedDropOperations,a)),t.state.setTarget(r);},onDropExit(){o(void 0),t.state.setTarget(null);},onDropTargetEnter(c){t.state.setTarget(c);},onDropActivate(c,p){p?.type==="item"&&p?.dropPosition==="on"&&typeof t.props.onDropActivate=="function"&&t.props.onDropActivate({type:"dropactivate",x:c.x,y:c.y,target:p});},onDrop(c,p){o(n),t.state.target&&K(c,p||t.state.target);},onKeyDown(c,p){let{keyboardDelegate:m}=t.props,u=h(p.items);switch(c.key){case "ArrowDown":{if(m.getKeyBelow){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"down"));t.state.setTarget(r);}break}case "ArrowUp":{if(m.getKeyAbove){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"up"));t.state.setTarget(r);}break}case "ArrowLeft":{if(m.getKeyLeftOf){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"left"));t.state.setTarget(r);}break}case "ArrowRight":{if(m.getKeyRightOf){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"right"));t.state.setTarget(r);}break}case "Home":{if(m.getFirstKey){let r=g(null,u,p.allowedDropOperations,a);t.state.setTarget(r);}break}case "End":{if(m.getLastKey){let r=g(null,u,p.allowedDropOperations,b);t.state.setTarget(r);}break}case "PageDown":{if(m.getKeyPageBelow){let r=t.state.target;if(!r)r=g(null,u,p.allowedDropOperations,a);else {let f=m.getFirstKey?.();r.type==="item"&&(f=r.key);let y=null;f!=null&&(y=m.getKeyPageBelow(f));let o=r.type==="item"?r.dropPosition:"after";if((y==null||r.type==="item"&&r.key===m.getLastKey?.())&&(y=m.getLastKey?.()??null,o="after"),y==null)break;r={type:"item",key:y,dropPosition:o};let{draggingCollectionRef:D,draggingKeys:P}=l,w=D?.current===n?.current;t.state.getDropOperation({target:r,types:u,allowedOperations:p.allowedDropOperations,isInternal:w,draggingKeys:P})==="cancel"&&(r=g(r,u,p.allowedDropOperations,a,false)??g(r,u,p.allowedDropOperations,b,false));}t.state.setTarget(r??t.state.target);}break}case "PageUp":{if(!m.getKeyPageAbove)break;let r=t.state.target;if(!r)r=g(null,u,p.allowedDropOperations,b);else if(r.type==="item"){if(r.key===m.getFirstKey?.())r={type:"root"};else {let D=m.getKeyPageAbove(r.key),P=r.dropPosition;if(D==null&&(D=m.getFirstKey?.(),P="before"),D==null)break;r={type:"item",key:D,dropPosition:P};}let{draggingKeys:f}=l,y=q(n);t.state.getDropOperation({target:r,types:u,allowedOperations:p.allowedDropOperations,isInternal:y,draggingKeys:f})==="cancel"&&(r=g(r,u,p.allowedDropOperations,b,false)??g(r,u,p.allowedDropOperations,a,false));}t.state.setTarget(r??t.state.target);break}}t.props.onKeyDown?.(c);}})},[t,n,K,T]);let O=c();return d$1.set(e$1,{id:O,ref:n}),{collectionProps:c$1(v,{id:O,"aria-describedby":null})}}function pe(i,e,n){let{dropProps:t}=A(n),s=g(e);useEffect(()=>{if(n.current)return v({element:n.current,target:i.target,getDropOperation(T,O){let{draggingKeys:a}=l,b=q(s);return e.getDropOperation({target:i.target,types:T,allowedOperations:O,isInternal:b,draggingKeys:a})},activateButtonRef:i.activateButtonRef})},[n,i.target,e,s,i.activateButtonRef]);let l$1=x(),{draggingKeys:v$1}=l,d=q(s),h$1=l$1&&e.getDropOperation({target:i.target,types:h(l$1.dragTarget.items),allowedOperations:l$1.dragTarget.allowedDropOperations,isInternal:d,draggingKeys:v$1})!=="cancel",K=e.isDropTarget(i.target);return useEffect(()=>{l$1&&K&&n.current&&n.current.focus();},[K,l$1,n]),{dropProps:{...t,"aria-hidden":!l$1||h$1?void 0:"true"},isDropTarget:K}}function rt(i,e,n){let{target:t}=i,{collection:s}=e,l=b$1(z,"@react-aria/dnd"),v=x(),{dropProps:d}=pe(i,e,n),h=c(),K=g=>g==null?"":s.getTextValue?.(g)??s.getItem(g)?.textValue??"",T="",O;if(t.type==="root")T=l.format("dropOnRoot"),O=`${h} ${f(e)}`;else if(t.dropPosition==="on")T=l.format("dropOnItem",{itemText:K(t.key)});else {let g,c;if(t.dropPosition==="before"){let p=s.getItem(t.key)?.prevKey,m=p!=null?s.getItem(p):null;g=m?.type==="item"?m.key:null;}else g=t.key;if(t.dropPosition==="after"){let p=s.getItem(t.key)?.nextKey,m=p!=null?s.getItem(p):null;c=m?.type==="item"?m.key:null;}else c=t.key;g!=null&&c!=null?T=l.format("insertBetween",{beforeItemText:K(g),afterItemText:K(c)}):g!=null?T=l.format("insertAfter",{itemText:K(g)}):c!=null&&(T=l.format("insertBefore",{itemText:K(c)}));}let a=e.isDropTarget(t),b=v?d["aria-hidden"]:"true";return {dropIndicatorProps:{...d,id:h,"aria-roledescription":l.format("dropIndicator"),"aria-label":T,"aria-labelledby":O,"aria-hidden":b,tabIndex:-1},isDropTarget:a,isHidden:!a&&!!b}}var Ve={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Ye(i$1){let{hasDragButton:e,isDisabled:n$1,elementRef:t$1}=i$1,s$1=b$1(z,"@react-aria/dnd"),l=useRef({options:i$1,x:0,y:0}).current;l.options=i$1;let v=useRef(null),[d,h]=useState(false),K=o=>{v.current=o,h(!!o);},{addGlobalListener:T,removeAllGlobalListeners:O}=a$2(),a=useRef(null),b=o=>{if(o.defaultPrevented)return;if(o.stopPropagation(),a.current==="virtual"){o.preventDefault(),m(j$1(o)),a.current=null;return}typeof i$1.onDragStart=="function"&&i$1.onDragStart({type:"dragstart",x:o.clientX,y:o.clientY});let D=i$1.getItems();o.dataTransfer.clearData?.(),j$2(o.dataTransfer,D);let P=7;if(typeof i$1.getAllowedDropOperations=="function"){let S=i$1.getAllowedDropOperations();P=0;for(let x of S)P|=a$3[x]||0;}t(P);let w=b$4[P]||"none";o.dataTransfer.effectAllowed=w==="cancel"?"none":w,typeof i$1.preview?.current=="function"&&i$1.preview.current(D,(S,x,N)=>{if(!S)return;let M=S.getBoundingClientRect(),de=o.currentTarget.getBoundingClientRect(),ee=o.clientX-de.x,te=o.clientY-de.y;(ee>M.width||te>M.height)&&(ee=M.width/2,te=M.height/2);let H=ee,j=te;typeof x=="number"&&typeof N=="number"&&(H=x,j=N),H=Math.max(0,Math.min(H,M.width)),j=Math.max(0,Math.min(j,M.height));let _e=2*Math.round(M.height/2);S.style.height=`${_e}px`,o.dataTransfer.setDragImage(S,H,j);}),T(b$2(j$1(o)),"drop",S=>{S.preventDefault(),S.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");},{once:true}),l.x=o.clientX,l.y=o.clientY;let E=j$1(o);requestAnimationFrame(()=>{K(E);});},g=o=>{o.stopPropagation(),!(o.clientX===l.x&&o.clientY===l.y)&&(typeof i$1.onDragMove=="function"&&i$1.onDragMove({type:"dragmove",x:o.clientX,y:o.clientY}),l.x=o.clientX,l.y=o.clientY);},c=o=>{if(o.stopPropagation(),typeof i$1.onDragEnd=="function"){let D={type:"dragend",x:o.clientX,y:o.clientY,dropOperation:c$2[o.dataTransfer.dropEffect]};r&&(D.dropOperation=c$2[r]),i$1.onDragEnd(D);}K(null),O(),t(0),s(void 0);};useEffect(()=>()=>{if(v.current&&(!v.current.isConnected||parseInt(version,10)<17)){if(typeof l.options.onDragEnd=="function"){let o={type:"dragend",x:0,y:0,dropOperation:c$2[r||"none"]};l.options.onDragEnd(o);}K(null),t(0),s(void 0);}},[l]);let p=o=>{o.pointerType!=="keyboard"&&o.pointerType!=="virtual"||m(o.target);},m=o=>{if(typeof l.options.onDragStart=="function"){let D=o.getBoundingClientRect();l.options.onDragStart({type:"dragstart",x:D.x+D.width/2,y:D.y+D.height/2});}w({element:o,items:l.options.getItems(),allowedDropOperations:typeof l.options.getAllowedDropOperations=="function"?l.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(D){K(null),typeof l.options.onDragEnd=="function"&&l.options.onDragEnd(D);}},s$1),K(o);},u=i(),r$1=d?Ve[u].end:Ve[u].start,f=d$2(s$1.format(r$1),t$1),y={};return e||(y={...f,onPointerDown(o){if(a.current=n(o.nativeEvent)?"virtual":o.pointerType,o.width<1&&o.height<1&&h$1()&&j())a.current="virtual";else {let D=o.currentTarget.getBoundingClientRect(),P=o.clientX-D.x,w=o.clientY-D.y,E=D.width/2,S=D.height/2;Math.abs(P-E)<=.5&&Math.abs(w-S)<=.5?a.current="virtual":a.current=o.pointerType;}},onKeyDownCapture(o){j$1(o)===o.currentTarget&&o.key==="Enter"&&(o.preventDefault(),o.stopPropagation());},onKeyUpCapture(o){j$1(o)===o.currentTarget&&o.key==="Enter"&&(o.preventDefault(),o.stopPropagation(),m(j$1(o)));},onClick(o){(m$1(o.nativeEvent)||a.current==="virtual")&&(o.preventDefault(),o.stopPropagation(),m(j$1(o)));}}),n$1?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:false}:{dragProps:{...y,draggable:"true",onDragStart:b,onDrag:g,onDragEnd:c},dragButtonProps:{...f,onPress:p},isDragging:d}}var it={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function at(i$1,e,n){let t=b$1(z,"@react-aria/dnd"),s=e.isDisabled||e.selectionManager.isDisabled(i$1.key),{dragProps:l,dragButtonProps:v}=Ye({elementRef:n,getItems(){return e.getItems(i$1.key)},preview:e.preview,getAllowedDropOperations:e.getAllowedDropOperations,hasDragButton:i$1.hasDragButton,onDragStart(g){e.startDrag(i$1.key,g),n$1(e.draggingKeys);},onDragMove(g){e.moveDrag(g);},onDragEnd(g){let{dropOperation:c}=g,p$1=c==="cancel"?false:q();e.endDrag({...g,keys:e.draggingKeys,isInternal:p$1}),p();}}),d=e.collection.getItem(i$1.key),h=e.getKeysForDrag(i$1.key).size,K=h>1&&e.selectionManager.isSelected(i$1.key),T,O,a=i();if(!i$1.hasDragButton&&e.selectionManager.selectionMode!=="none"){let g=it[a][K?"selected":"notSelected"];i$1.hasAction&&a==="keyboard"&&(g+="Alt"),K?O=t.format(g,{count:h}):O=t.format(g),delete l.onClick;}else if(K)T=t.format("dragSelectedItems",{count:h});else {let g=e.collection.getTextValue?.(i$1.key)??d?.textValue??"";T=t.format("dragItem",{itemText:g});}let b=d$2(O,n);if(O&&Object.assign(l,b),!i$1.hasDragButton&&i$1.hasAction){let{onKeyDownCapture:g,onKeyUpCapture:c}=l;a==="touch"&&delete l["aria-describedby"],l.onKeyDownCapture=p=>{p.altKey&&g?.(p);},l.onKeyUpCapture=p=>{p.altKey&&c?.(p);};}return {dragProps:s?{}:l,dragButtonProps:{...v,isDisabled:s,"aria-label":T}}}function pt(i,e,n){let{draggingCollectionRef:t}=l;e.draggingKeys.size>0&&t?.current!==n.current&&m(n);}function gt(i){let{getItems:e,isDisabled:n,collection:t,selectionManager:s,onDragStart:l,onDragMove:v,onDragEnd:d,preview:h,getAllowedDropOperations:K}=i,[,T]=useState(false),O=useRef(new Set),a=useRef(null),b=g=>{let c=new Set;if(s.isSelected(g))for(let p of s.selectedKeys){let m=t.getItem(p);if(m){let u=false,r=m.parentKey;for(;r!=null;){if(s.selectedKeys.has(r)){u=true;break}let f=t.getItem(r);r=f?f.parentKey:null;}u||c.add(p);}}else c.add(g);return c};return {collection:t,selectionManager:s,get draggedKey(){return a.current},get draggingKeys(){return O.current},isDragging(g){return O.current.has(g)},getKeysForDrag:b,getItems(g){let c=b(g),p=[];for(let m of c){let u=t.getItem(m)?.value;u!=null&&p.push(u);}return e(b(g),p)},isDisabled:n,preview:h,getAllowedDropOperations:K,startDrag(g,c){let p=b(g);O.current=p,a.current=g,s.setFocused(false),T(true),typeof l=="function"&&l({...c,keys:p});},moveDrag(g){typeof v=="function"&&v({...g,keys:O.current});},endDrag(g){let{isInternal:c}=g;typeof d=="function"&&d({...g,keys:O.current,isInternal:c}),O.current=new Set,a.current=null,T(false);}}}function ft(i){let{acceptedDragTypes:e="all",isDisabled:n,onInsert:t,onRootDrop:s,onItemDrop:l,onReorder:v,onMove:d,shouldAcceptItemDrop:h,collection:K,selectionManager:T,onDropEnter:O,getDropOperation:a,onDrop:b}=i,[,g]=useState(null),c=useRef(null),p=u=>{if(u.dropPosition==="before"){let r=K.getItem(u.key);return r&&r.prevKey!=null?{type:"item",key:r.prevKey,dropPosition:"after"}:null}else if(u.dropPosition==="after"){let r=K.getItem(u.key);return r&&r.nextKey!=null?{type:"item",key:r.nextKey,dropPosition:"before"}:null}return null},m=useCallback(u=>{let{target:r,types:f,allowedOperations:y,isInternal:o,draggingKeys:D}=u;if(n||!r)return "cancel";if(e==="all"||e.some(P=>f.has(P))){let P=t&&r.type==="item"&&!o&&(r.dropPosition==="before"||r.dropPosition==="after"),w=v&&r.type==="item"&&o&&(r.dropPosition==="before"||r.dropPosition==="after")&&yt(K,r,D),E=r.type!=="item"||r.dropPosition!=="on"||!h||h(r,f),S=d&&r.type==="item"&&o&&E,x=s&&r.type==="root"&&!o,N=l&&r.type==="item"&&r.dropPosition==="on"&&!(o&&r.key!=null&&D.has(r.key))&&E;if(b||P||w||S||x||N)return a?a(r,f,y):y[0]}return "cancel"},[n,K,e,a,t,s,l,h,v,d,b]);return {collection:K,selectionManager:T,isDisabled:n,get target(){return c.current},setTarget(u){if(this.isDropTarget(u))return;let r=c.current;r&&typeof i.onDropExit=="function"&&i.onDropExit({type:"dropexit",x:0,y:0,target:r}),u&&typeof O=="function"&&O({type:"dropenter",x:0,y:0,target:u}),c.current=u??null,g(u??null);},isDropTarget(u){let r=c.current;return !r||!u?false:ge(u,r)?true:u?.type==="item"&&r?.type==="item"&&u.key!==r.key&&u.dropPosition!==r.dropPosition&&u.dropPosition!=="on"&&r.dropPosition!=="on"?ge(p(u),r)||ge(u,p(r)):false},getDropOperation(u){let{target:r,isInternal:f,draggingKeys:y}=u;if(f&&r.type==="item"&&y.size>0){if(y.has(r.key)&&r.dropPosition==="on")return "cancel";let o=r.key;for(;o!=null;){let P=K.getItem(o)?.parentKey;if(P!=null&&y.has(P))return "cancel";o=P??null;}}return m(u)}}}function ge(i,e){if(!i)return !e;switch(i.type){case "root":return e?.type==="root";case "item":return e?.type==="item"&&e?.key===i.key&&e?.dropPosition===i.dropPosition}}function yt(i,e,n){let t=i.getItem(e.key);for(let s of n)if(i.getItem(s)?.parentKey!==t?.parentKey)return false;return true}var ue=class{collection;ref;layout;orientation;direction;constructor(e,n,t){this.collection=e,this.ref=n,this.layout=t?.layout||"stack",this.orientation=t?.orientation||"vertical",this.direction=t?.direction||"ltr";}getPrimaryStart(e){return this.orientation==="horizontal"?e.left:e.top}getPrimaryEnd(e){return this.orientation==="horizontal"?e.right:e.bottom}getSecondaryStart(e){return this.orientation==="horizontal"?e.top:e.left}getSecondaryEnd(e){return this.orientation==="horizontal"?e.bottom:e.right}getFlowStart(e){return this.layout==="stack"?this.getPrimaryStart(e):this.getSecondaryStart(e)}getFlowEnd(e){return this.layout==="stack"?this.getPrimaryEnd(e):this.getSecondaryEnd(e)}getFlowSize(e){return this.getFlowEnd(e)-this.getFlowStart(e)}getDropTargetFromPoint(e,n,t){if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return {type:"root"};let s=this.ref.current.getBoundingClientRect(),l=this.orientation==="horizontal"?e:n,v=this.orientation==="horizontal"?n:e;l+=this.getPrimaryStart(s),v+=this.getSecondaryStart(s);let d=this.layout==="stack"?l:v,h=this.orientation==="horizontal"&&this.direction==="rtl",K=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",T=this.layout==="stack"?h:K,O=this.ref.current?.dataset.collection,a=this.ref.current.querySelectorAll(O?`[data-collection="${CSS.escape(O)}"]`:"[data-key]"),b=new Map,g=b$2(this.ref.current);for(let f of a)f instanceof g.HTMLElement&&f.dataset.key!=null&&b.set(f.dataset.key,f);let c=[...this.collection].filter(f=>f.type==="item");if(c.length<1)return {type:"root"};let p=0,m=c.length;for(;p<m;){let f=Math.floor((p+m)/2),y=c[f],o=b.get(String(y.key));if(!o)break;let D=o.getBoundingClientRect(),P=w=>{w?p=f+1:m=f;};if(l<this.getPrimaryStart(D))P(h);else if(l>this.getPrimaryEnd(D))P(!h);else if(v<this.getSecondaryStart(D))P(K);else if(v>this.getSecondaryEnd(D))P(!K);else {let w={type:"item",key:y.key,dropPosition:"on"};if(t(w))d<=this.getFlowStart(D)+5&&t({...w,dropPosition:"before"})?w.dropPosition=T?"after":"before":d>=this.getFlowEnd(D)-5&&t({...w,dropPosition:"after"})&&(w.dropPosition=T?"before":"after");else {let E=this.getFlowStart(D)+this.getFlowSize(D)/2;d<=E&&t({...w,dropPosition:"before"})?w.dropPosition=T?"after":"before":d>=E&&t({...w,dropPosition:"after"})&&(w.dropPosition=T?"before":"after");}return w}}let u=c[Math.min(p,c.length-1)];return s=b.get(String(u.key))?.getBoundingClientRect(),s&&(l<this.getPrimaryStart(s)||Math.abs(d-this.getFlowStart(s))<Math.abs(d-this.getFlowEnd(s)))?{type:"item",key:u.key,dropPosition:T?"after":"before"}:{type:"item",key:u.key,dropPosition:T?"before":"after"}}};export{tt as a,pe as b,rt as c,at as d,pt as e,Ze as f,gt as g,ft as h,ue as i};
|
|
10
|
+
var Ze=We.forwardRef(function(e,n){let t=e.children,[s,l]=useState(null),v=useRef(null),d=useRef(void 0);return useImperativeHandle(n,()=>(h,K)=>{let T=t(h),O,a,b;T&&typeof T=="object"&&"element"in T?(O=T.element,a=T.x,b=T.y):O=T,flushSync(()=>{l(O);}),K(v.current,a,b),d.current=requestAnimationFrame(()=>{l(null);});},[t]),useEffect(()=>()=>{d.current&&cancelAnimationFrame(d.current);},[]),s?jsx("div",{style:{zIndex:-100,position:"fixed",top:0,left:-1e5},ref:v,children:s}):null});function Be(i,e,n,t,s=false,l=false){switch(t){case "left":return s?oe(i,e,n,l,"left"):ne(i,e,n,l,"left");case "right":return s?ne(i,e,n,l,"right"):oe(i,e,n,l,"right");case "up":return ne(i,e,n,l);case "down":return oe(i,e,n,l)}}function oe(i,e,n,t=false,s=null){if(!n)return {type:"root"};if(n.type==="root"){let l=i.getFirstKey?.()??null;return l!=null?{type:"item",key:l,dropPosition:"before"}:null}if(n.type==="item"){let l=null;s?l=s==="right"?i.getKeyRightOf?.(n.key,{includeDisabled:true}):i.getKeyLeftOf?.(n.key,{includeDisabled:true}):l=i.getKeyBelow?.(n.key,{includeDisabled:true});let v=le(e,n.key,d=>e.getKeyAfter(d));if(l!=null&&l!==v)return {type:"item",key:l,dropPosition:n.dropPosition};switch(n.dropPosition){case "before":return {type:"item",key:n.key,dropPosition:"on"};case "on":{let d=e.getItem(n.key),h=l!=null?e.getItem(l):null;return d&&h&&h.level>=d.level?{type:"item",key:h.key,dropPosition:"before"}:{type:"item",key:n.key,dropPosition:"after"}}case "after":{let d=e.getItem(n.key),h=d?.nextKey!=null?e.getItem(d.nextKey):null;for(;h!=null&&h.type!=="item";)h=h.nextKey!=null?e.getItem(h.nextKey):null;if(d&&h==null&&d.parentKey!=null){let K=e.getItem(d.parentKey),T=K?.nextKey!=null?e.getItem(K.nextKey):null;if(T?.type==="item")return {type:"item",key:T.key,dropPosition:"before"};if(K?.type==="item")return {type:"item",key:K.key,dropPosition:"after"}}if(h)return {type:"item",key:h.key,dropPosition:"on"}}}}return t?{type:"root"}:null}function ne(i,e,n,t=false,s=null){if(!n||t&&n.type==="root"){let l=null,v=i.getLastKey?.();for(;v!=null;){let d=e.getItem(v);if(d?.type!=="item")break;l=v,v=d?.parentKey;}return l!=null?{type:"item",key:l,dropPosition:"after"}:null}if(n.type==="item"){let l=null;s?l=s==="left"?i.getKeyLeftOf?.(n.key,{includeDisabled:true}):i.getKeyRightOf?.(n.key,{includeDisabled:true}):l=i.getKeyAbove?.(n.key,{includeDisabled:true});let v=le(e,n.key,d=>e.getKeyBefore(d));if(l!=null&&l!==v)return {type:"item",key:l,dropPosition:n.dropPosition};switch(n.dropPosition){case "before":{let d=e.getItem(n.key);if(d&&d.prevKey!=null){let h=Fe(e,d.prevKey);if(h)return h}return l!=null?{type:"item",key:l,dropPosition:"on"}:{type:"root"}}case "on":return {type:"item",key:n.key,dropPosition:"before"};case "after":{let d=Fe(e,n.key);return d||{type:"item",key:n.key,dropPosition:"on"}}}}return n.type!=="root"?{type:"root"}:null}function Fe(i,e){let n=i.getItem(e),t=le(i,e,l=>i.getKeyAfter(l)),s=t!=null?i.getItem(t):null;if(n&&s&&s.level>n.level){let l=null;if("lastChildKey"in n)for(l=n.lastChildKey!=null?i.getItem(n.lastChildKey):null;l&&l.type!=="item"&&l.prevKey!=null;)l=i.getItem(l.prevKey);else l=Array.from(n.childNodes).findLast(v=>v.type==="item")||null;if(l)return {type:"item",key:l.key,dropPosition:"after"}}return null}function le(i,e,n){let t=n(e),s=t!=null?i.getItem(t):null;for(;s&&s.type!=="item";)t=n(s.key),s=t!=null?i.getItem(t):null;return t}var Q=20;function He(i){let e=useRef(null),n=useRef(true),t=useRef(true);useEffect(()=>{if(i.current){e.current=a$1(i.current)?i.current:b$3(i.current);let v=window.getComputedStyle(e.current);n.current=/(auto|scroll)/.test(v.overflowX),t.current=/(auto|scroll)/.test(v.overflowY);}},[i]);let s=useRef({timer:void 0,dx:0,dy:0}).current;useEffect(()=>()=>{s.timer&&(cancelAnimationFrame(s.timer),s.timer=void 0);},[s]);let l=useCallback(()=>{n.current&&e.current&&(e.current.scrollLeft+=s.dx),t.current&&e.current&&(e.current.scrollTop+=s.dy),s.timer&&(s.timer=requestAnimationFrame(l));},[e,s]);return {move(v,d){if(!j()||h$1()||!e.current)return;let h=e.current.getBoundingClientRect(),K=Q,T=Q,O=h.height-Q,a=h.width-Q;v<K||v>a||d<T||d>O?(v<K?s.dx=v-K:v>a&&(s.dx=v-a),d<T?s.dy=d-T:d>O&&(s.dy=d-O),s.timer||(s.timer=requestAnimationFrame(l))):this.stop();},stop(){s.timer&&(cancelAnimationFrame(s.timer),s.timer=void 0);}}}function tt(i,e$1,n){let t=useRef({props:i,state:e$1,nextTarget:null,dropOperation:null}).current;t.props=i,t.state=e$1;let s=useCallback(async a=>{let{onInsert:b,onRootDrop:g,onItemDrop:c,onReorder:p,onMove:m,acceptedDragTypes:u="all",shouldAcceptItemDrop:r}=t.props,{draggingKeys:f}=l,y=q(n),{target:o,dropOperation:D,items:P}=a,w=P;(u!=="all"||r)&&(w=P.filter(E=>{let S;return E.kind==="directory"?S=new Set([e]):S=E.kind==="file"?new Set([E.type]):E.types,u==="all"||u.some(x=>S.has(x))?o.type==="item"&&o.dropPosition==="on"&&r?r(o,S):true:false})),w.length>0&&(o.type==="root"&&g&&await g({items:w,dropOperation:D}),o.type==="item"&&(o.dropPosition==="on"&&c&&await c({items:w,dropOperation:D,isInternal:y,target:o}),m&&y&&await m({keys:f,dropOperation:D,target:o}),o.dropPosition!=="on"&&(!y&&b&&await b({items:w,dropOperation:D,target:o}),y&&p&&await p({keys:f,dropOperation:D,target:o}))));},[t,n]),l$1=He(n),{dropProps:v}=B({ref:n,onDropEnter(){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},onDropMove(a){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},getDropOperationForPoint(a,b,g,c){let{draggingKeys:p,dropCollectionRef:m}=l,u=q(n),r=y=>e$1.getDropOperation({target:y,types:a,allowedOperations:b,isInternal:u,draggingKeys:p})!=="cancel",f=i.dropTargetDelegate.getDropTargetFromPoint(g,c,r);if(!f)return t.dropOperation="cancel",t.nextTarget=null,"cancel";if(t.dropOperation=e$1.getDropOperation({target:f,types:a,allowedOperations:b,isInternal:u,draggingKeys:p}),t.dropOperation==="cancel"){let y={type:"root"},o=e$1.getDropOperation({target:y,types:a,allowedOperations:b,isInternal:u,draggingKeys:p});o!=="cancel"&&(f=y,t.dropOperation=o);}return f&&t.dropOperation!=="cancel"&&n?.current!==m?.current&&o(n),t.nextTarget=t.dropOperation==="cancel"?null:f,t.dropOperation},onDropExit(){o(void 0),e$1.setTarget(null),l$1.stop();},onDropActivate(a){e$1.target?.type==="item"&&typeof i.onDropActivate=="function"&&i.onDropActivate({type:"dropactivate",x:a.x,y:a.y,target:e$1.target});},onDrop(a){o(n),e$1.target&&K(a,e$1.target);let{draggingCollectionRef:b}=l;b==null&&p();}}),d$2=useRef(null),h$1=useCallback(()=>{let{state:a}=t;if(d$2.current){let{target:b,collection:g,selectedKeys:c,focusedKey:p,isInternal:m,draggingKeys:u}=d$2.current;if(a.collection.size>g.size&&a.selectionManager.isSelectionEqual(c)){let r=new Set,f=a.collection.getFirstKey();for(;f!=null;){let y=a.collection.getItem(f);y?.type==="item"&&!g.getItem(y.key)&&r.add(y.key),y?.hasChildNodes&&a.collection.getItem(y.lastChildKey)?.type==="item"?f=y.firstChildKey:f=a.collection.getKeyAfter(f);}if(a.selectionManager.setSelectedKeys(r),a.selectionManager.focusedKey===p){let y=r.keys().next().value;if(y!=null){let o=a.collection.getItem(y),D=d$2.current.target,P=a.collection.expandedKeys?a.collection.expandedKeys.has(o?.parentKey):false;o&&(o?.type==="cell"||D.type==="item"&&D.dropPosition==="on"&&!P)&&(y=o.parentKey),y!=null&&a.selectionManager.setFocusedKey(y),a.selectionManager.selectionMode==="none"&&d("keyboard");}}}else p!=null&&a.selectionManager.focusedKey===p&&m&&b.type==="item"&&b.dropPosition!=="on"&&u.has(a.collection.getItem(p)?.parentKey)?(a.selectionManager.setFocusedKey(a.collection.getItem(p)?.parentKey??null),d("keyboard")):a.selectionManager.focusedKey===p&&b.type==="item"&&b.dropPosition==="on"&&a.collection.getItem(b.key)!=null?(a.selectionManager.setFocusedKey(b.key),d("keyboard")):a.selectionManager.focusedKey!=null&&!a.selectionManager.isSelected(a.selectionManager.focusedKey)&&d("keyboard");a.selectionManager.setFocused(true);}},[t]),K=useCallback((a,b)=>{let{state:g}=t;d$2.current={timeout:void 0,focusedKey:g.selectionManager.focusedKey,collection:g.collection,selectedKeys:g.selectionManager.selectedKeys,draggingKeys:l.draggingKeys,isInternal:q(n),target:b},(t.props.onDrop||s)({type:"drop",x:a.x,y:a.y,target:b,items:a.items,dropOperation:a.dropOperation}),d$2.current.timeout=setTimeout(()=>{h$1(),d$2.current=null;},50);},[t,s,n,h$1]);useEffect(()=>()=>{d$2.current&&clearTimeout(d$2.current.timeout);},[]),a(()=>{d$2.current&&e$1.collection!==d$2.current.collection&&h$1();});let{direction:T}=b();useEffect(()=>{if(!n.current)return;let a=(c,p=true,m="down")=>Be(t.props.keyboardDelegate,t.state.collection,c,m,T==="rtl",p),b=(c,p=true)=>a(c,p,"up"),g=(c,p,m,u,r=true)=>{let f=0,y,{draggingKeys:o}=l,D=q(n);do{let P=u(c,r);if(!P)return null;c=P,y=t.state.getDropOperation({target:P,types:p,allowedOperations:m,isInternal:D,draggingKeys:o}),c.type==="root"&&f++;}while(y==="cancel"&&!t.state.isDropTarget(c)&&f<2);return y==="cancel"?null:c};return u({element:n.current,preventFocusOnDrop:true,getDropOperation(c,p){if(t.state.target){let{draggingKeys:u}=l,r=q(n);return t.state.getDropOperation({target:t.state.target,types:c,allowedOperations:p,isInternal:r,draggingKeys:u})}return g(null,c,p,a)?"move":"cancel"},onDropEnter(c,p){let m=h(p.items),u=t.state.selectionManager,r=null;o(n);let f=u.focusedKey,y="after",o$1=f!=null?t.state.collection.getItem(f):null;if(o$1?.type==="cell"&&(f=o$1.parentKey),f!=null&&u.isSelected(f)&&(u.selectedKeys.size>1&&u.firstSelectedKey===f?y="before":f=u.lastSelectedKey),f!=null){r={type:"item",key:f,dropPosition:y};let{draggingKeys:D}=l,P=q(n);t.state.getDropOperation({target:r,types:m,allowedOperations:p.allowedDropOperations,isInternal:P,draggingKeys:D})==="cancel"&&(r=g(r,m,p.allowedDropOperations,a,false)??g(r,m,p.allowedDropOperations,b,false));}r||(r=g(null,m,p.allowedDropOperations,a)),t.state.setTarget(r);},onDropExit(){o(void 0),t.state.setTarget(null);},onDropTargetEnter(c){t.state.setTarget(c);},onDropActivate(c,p){p?.type==="item"&&p?.dropPosition==="on"&&typeof t.props.onDropActivate=="function"&&t.props.onDropActivate({type:"dropactivate",x:c.x,y:c.y,target:p});},onDrop(c,p){o(n),t.state.target&&K(c,p||t.state.target);},onKeyDown(c,p){let{keyboardDelegate:m}=t.props,u=h(p.items);switch(c.key){case "ArrowDown":{if(m.getKeyBelow){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"down"));t.state.setTarget(r);}break}case "ArrowUp":{if(m.getKeyAbove){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"up"));t.state.setTarget(r);}break}case "ArrowLeft":{if(m.getKeyLeftOf){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"left"));t.state.setTarget(r);}break}case "ArrowRight":{if(m.getKeyRightOf){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"right"));t.state.setTarget(r);}break}case "Home":{if(m.getFirstKey){let r=g(null,u,p.allowedDropOperations,a);t.state.setTarget(r);}break}case "End":{if(m.getLastKey){let r=g(null,u,p.allowedDropOperations,b);t.state.setTarget(r);}break}case "PageDown":{if(m.getKeyPageBelow){let r=t.state.target;if(!r)r=g(null,u,p.allowedDropOperations,a);else {let f=m.getFirstKey?.();r.type==="item"&&(f=r.key);let y=null;f!=null&&(y=m.getKeyPageBelow(f));let o=r.type==="item"?r.dropPosition:"after";if((y==null||r.type==="item"&&r.key===m.getLastKey?.())&&(y=m.getLastKey?.()??null,o="after"),y==null)break;r={type:"item",key:y,dropPosition:o};let{draggingCollectionRef:D,draggingKeys:P}=l,w=D?.current===n?.current;t.state.getDropOperation({target:r,types:u,allowedOperations:p.allowedDropOperations,isInternal:w,draggingKeys:P})==="cancel"&&(r=g(r,u,p.allowedDropOperations,a,false)??g(r,u,p.allowedDropOperations,b,false));}t.state.setTarget(r??t.state.target);}break}case "PageUp":{if(!m.getKeyPageAbove)break;let r=t.state.target;if(!r)r=g(null,u,p.allowedDropOperations,b);else if(r.type==="item"){if(r.key===m.getFirstKey?.())r={type:"root"};else {let D=m.getKeyPageAbove(r.key),P=r.dropPosition;if(D==null&&(D=m.getFirstKey?.(),P="before"),D==null)break;r={type:"item",key:D,dropPosition:P};}let{draggingKeys:f}=l,y=q(n);t.state.getDropOperation({target:r,types:u,allowedOperations:p.allowedDropOperations,isInternal:y,draggingKeys:f})==="cancel"&&(r=g(r,u,p.allowedDropOperations,b,false)??g(r,u,p.allowedDropOperations,a,false));}t.state.setTarget(r??t.state.target);break}}t.props.onKeyDown?.(c);}})},[t,n,K,T]);let O=c();return d$1.set(e$1,{id:O,ref:n}),{collectionProps:g(v,{id:O,"aria-describedby":null})}}function pe(i,e,n){let{dropProps:t}=A(n),s=g$1(e);useEffect(()=>{if(n.current)return v({element:n.current,target:i.target,getDropOperation(T,O){let{draggingKeys:a}=l,b=q(s);return e.getDropOperation({target:i.target,types:T,allowedOperations:O,isInternal:b,draggingKeys:a})},activateButtonRef:i.activateButtonRef})},[n,i.target,e,s,i.activateButtonRef]);let l$1=x(),{draggingKeys:v$1}=l,d=q(s),h$1=l$1&&e.getDropOperation({target:i.target,types:h(l$1.dragTarget.items),allowedOperations:l$1.dragTarget.allowedDropOperations,isInternal:d,draggingKeys:v$1})!=="cancel",K=e.isDropTarget(i.target);return useEffect(()=>{l$1&&K&&n.current&&n.current.focus();},[K,l$1,n]),{dropProps:{...t,"aria-hidden":!l$1||h$1?void 0:"true"},isDropTarget:K}}function rt(i,e,n){let{target:t}=i,{collection:s}=e,l=b$1(z,"@react-aria/dnd"),v=x(),{dropProps:d}=pe(i,e,n),h=c(),K=g=>g==null?"":s.getTextValue?.(g)??s.getItem(g)?.textValue??"",T="",O;if(t.type==="root")T=l.format("dropOnRoot"),O=`${h} ${f(e)}`;else if(t.dropPosition==="on")T=l.format("dropOnItem",{itemText:K(t.key)});else {let g,c;if(t.dropPosition==="before"){let p=s.getItem(t.key)?.prevKey,m=p!=null?s.getItem(p):null;g=m?.type==="item"?m.key:null;}else g=t.key;if(t.dropPosition==="after"){let p=s.getItem(t.key)?.nextKey,m=p!=null?s.getItem(p):null;c=m?.type==="item"?m.key:null;}else c=t.key;g!=null&&c!=null?T=l.format("insertBetween",{beforeItemText:K(g),afterItemText:K(c)}):g!=null?T=l.format("insertAfter",{itemText:K(g)}):c!=null&&(T=l.format("insertBefore",{itemText:K(c)}));}let a=e.isDropTarget(t),b=v?d["aria-hidden"]:"true";return {dropIndicatorProps:{...d,id:h,"aria-roledescription":l.format("dropIndicator"),"aria-label":T,"aria-labelledby":O,"aria-hidden":b,tabIndex:-1},isDropTarget:a,isHidden:!a&&!!b}}var Ve={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Ye(i$1){let{hasDragButton:e,isDisabled:n$1,elementRef:t$1}=i$1,s$1=b$1(z,"@react-aria/dnd"),l=useRef({options:i$1,x:0,y:0}).current;l.options=i$1;let v=useRef(null),[d,h]=useState(false),K=o=>{v.current=o,h(!!o);},{addGlobalListener:T,removeAllGlobalListeners:O}=a$2(),a=useRef(null),b=o=>{if(o.defaultPrevented)return;if(o.stopPropagation(),a.current==="virtual"){o.preventDefault(),m(j$1(o)),a.current=null;return}typeof i$1.onDragStart=="function"&&i$1.onDragStart({type:"dragstart",x:o.clientX,y:o.clientY});let D=i$1.getItems();o.dataTransfer.clearData?.(),j$2(o.dataTransfer,D);let P=7;if(typeof i$1.getAllowedDropOperations=="function"){let S=i$1.getAllowedDropOperations();P=0;for(let x of S)P|=a$3[x]||0;}t(P);let w=b$4[P]||"none";o.dataTransfer.effectAllowed=w==="cancel"?"none":w,typeof i$1.preview?.current=="function"&&i$1.preview.current(D,(S,x,N)=>{if(!S)return;let M=S.getBoundingClientRect(),de=o.currentTarget.getBoundingClientRect(),ee=o.clientX-de.x,te=o.clientY-de.y;(ee>M.width||te>M.height)&&(ee=M.width/2,te=M.height/2);let H=ee,j=te;typeof x=="number"&&typeof N=="number"&&(H=x,j=N),H=Math.max(0,Math.min(H,M.width)),j=Math.max(0,Math.min(j,M.height));let _e=2*Math.round(M.height/2);S.style.height=`${_e}px`,o.dataTransfer.setDragImage(S,H,j);}),T(b$2(j$1(o)),"drop",S=>{S.preventDefault(),S.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");},{once:true}),l.x=o.clientX,l.y=o.clientY;let E=j$1(o);requestAnimationFrame(()=>{K(E);});},g=o=>{o.stopPropagation(),!(o.clientX===l.x&&o.clientY===l.y)&&(typeof i$1.onDragMove=="function"&&i$1.onDragMove({type:"dragmove",x:o.clientX,y:o.clientY}),l.x=o.clientX,l.y=o.clientY);},c=o=>{if(o.stopPropagation(),typeof i$1.onDragEnd=="function"){let D={type:"dragend",x:o.clientX,y:o.clientY,dropOperation:c$1[o.dataTransfer.dropEffect]};r&&(D.dropOperation=c$1[r]),i$1.onDragEnd(D);}K(null),O(),t(0),s(void 0);};useEffect(()=>()=>{if(v.current&&(!v.current.isConnected||parseInt(version,10)<17)){if(typeof l.options.onDragEnd=="function"){let o={type:"dragend",x:0,y:0,dropOperation:c$1[r||"none"]};l.options.onDragEnd(o);}K(null),t(0),s(void 0);}},[l]);let p=o=>{o.pointerType!=="keyboard"&&o.pointerType!=="virtual"||m(o.target);},m=o=>{if(typeof l.options.onDragStart=="function"){let D=o.getBoundingClientRect();l.options.onDragStart({type:"dragstart",x:D.x+D.width/2,y:D.y+D.height/2});}w({element:o,items:l.options.getItems(),allowedDropOperations:typeof l.options.getAllowedDropOperations=="function"?l.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(D){K(null),typeof l.options.onDragEnd=="function"&&l.options.onDragEnd(D);}},s$1),K(o);},u=i(),r$1=d?Ve[u].end:Ve[u].start,f=d$2(s$1.format(r$1),t$1),y={};return e||(y={...f,onPointerDown(o){if(a.current=n(o.nativeEvent)?"virtual":o.pointerType,o.width<1&&o.height<1&&h$1()&&j())a.current="virtual";else {let D=o.currentTarget.getBoundingClientRect(),P=o.clientX-D.x,w=o.clientY-D.y,E=D.width/2,S=D.height/2;Math.abs(P-E)<=.5&&Math.abs(w-S)<=.5?a.current="virtual":a.current=o.pointerType;}},onKeyDownCapture(o){j$1(o)===o.currentTarget&&o.key==="Enter"&&(o.preventDefault(),o.stopPropagation());},onKeyUpCapture(o){j$1(o)===o.currentTarget&&o.key==="Enter"&&(o.preventDefault(),o.stopPropagation(),m(j$1(o)));},onClick(o){(m$1(o.nativeEvent)||a.current==="virtual")&&(o.preventDefault(),o.stopPropagation(),m(j$1(o)));}}),n$1?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:false}:{dragProps:{...y,draggable:"true",onDragStart:b,onDrag:g,onDragEnd:c},dragButtonProps:{...f,onPress:p},isDragging:d}}var it={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function at(i$1,e,n){let t=b$1(z,"@react-aria/dnd"),s=e.isDisabled||e.selectionManager.isDisabled(i$1.key),{dragProps:l,dragButtonProps:v}=Ye({elementRef:n,getItems(){return e.getItems(i$1.key)},preview:e.preview,getAllowedDropOperations:e.getAllowedDropOperations,hasDragButton:i$1.hasDragButton,onDragStart(g){e.startDrag(i$1.key,g),n$1(e.draggingKeys);},onDragMove(g){e.moveDrag(g);},onDragEnd(g){let{dropOperation:c}=g,p$1=c==="cancel"?false:q();e.endDrag({...g,keys:e.draggingKeys,isInternal:p$1}),p();}}),d=e.collection.getItem(i$1.key),h=e.getKeysForDrag(i$1.key).size,K=h>1&&e.selectionManager.isSelected(i$1.key),T,O,a=i();if(!i$1.hasDragButton&&e.selectionManager.selectionMode!=="none"){let g=it[a][K?"selected":"notSelected"];i$1.hasAction&&a==="keyboard"&&(g+="Alt"),K?O=t.format(g,{count:h}):O=t.format(g),delete l.onClick;}else if(K)T=t.format("dragSelectedItems",{count:h});else {let g=e.collection.getTextValue?.(i$1.key)??d?.textValue??"";T=t.format("dragItem",{itemText:g});}let b=d$2(O,n);if(O&&Object.assign(l,b),!i$1.hasDragButton&&i$1.hasAction){let{onKeyDownCapture:g,onKeyUpCapture:c}=l;a==="touch"&&delete l["aria-describedby"],l.onKeyDownCapture=p=>{p.altKey&&g?.(p);},l.onKeyUpCapture=p=>{p.altKey&&c?.(p);};}return {dragProps:s?{}:l,dragButtonProps:{...v,isDisabled:s,"aria-label":T}}}function pt(i,e,n){let{draggingCollectionRef:t}=l;e.draggingKeys.size>0&&t?.current!==n.current&&m(n);}function gt(i){let{getItems:e,isDisabled:n,collection:t,selectionManager:s,onDragStart:l,onDragMove:v,onDragEnd:d,preview:h,getAllowedDropOperations:K}=i,[,T]=useState(false),O=useRef(new Set),a=useRef(null),b=g=>{let c=new Set;if(s.isSelected(g))for(let p of s.selectedKeys){let m=t.getItem(p);if(m){let u=false,r=m.parentKey;for(;r!=null;){if(s.selectedKeys.has(r)){u=true;break}let f=t.getItem(r);r=f?f.parentKey:null;}u||c.add(p);}}else c.add(g);return c};return {collection:t,selectionManager:s,get draggedKey(){return a.current},get draggingKeys(){return O.current},isDragging(g){return O.current.has(g)},getKeysForDrag:b,getItems(g){let c=b(g),p=[];for(let m of c){let u=t.getItem(m)?.value;u!=null&&p.push(u);}return e(b(g),p)},isDisabled:n,preview:h,getAllowedDropOperations:K,startDrag(g,c){let p=b(g);O.current=p,a.current=g,s.setFocused(false),T(true),typeof l=="function"&&l({...c,keys:p});},moveDrag(g){typeof v=="function"&&v({...g,keys:O.current});},endDrag(g){let{isInternal:c}=g;typeof d=="function"&&d({...g,keys:O.current,isInternal:c}),O.current=new Set,a.current=null,T(false);}}}function ft(i){let{acceptedDragTypes:e="all",isDisabled:n,onInsert:t,onRootDrop:s,onItemDrop:l,onReorder:v,onMove:d,shouldAcceptItemDrop:h,collection:K,selectionManager:T,onDropEnter:O,getDropOperation:a,onDrop:b}=i,[,g]=useState(null),c=useRef(null),p=u=>{if(u.dropPosition==="before"){let r=K.getItem(u.key);return r&&r.prevKey!=null?{type:"item",key:r.prevKey,dropPosition:"after"}:null}else if(u.dropPosition==="after"){let r=K.getItem(u.key);return r&&r.nextKey!=null?{type:"item",key:r.nextKey,dropPosition:"before"}:null}return null},m=useCallback(u=>{let{target:r,types:f,allowedOperations:y,isInternal:o,draggingKeys:D}=u;if(n||!r)return "cancel";if(e==="all"||e.some(P=>f.has(P))){let P=t&&r.type==="item"&&!o&&(r.dropPosition==="before"||r.dropPosition==="after"),w=v&&r.type==="item"&&o&&(r.dropPosition==="before"||r.dropPosition==="after")&&yt(K,r,D),E=r.type!=="item"||r.dropPosition!=="on"||!h||h(r,f),S=d&&r.type==="item"&&o&&E,x=s&&r.type==="root"&&!o,N=l&&r.type==="item"&&r.dropPosition==="on"&&!(o&&r.key!=null&&D.has(r.key))&&E;if(b||P||w||S||x||N)return a?a(r,f,y):y[0]}return "cancel"},[n,K,e,a,t,s,l,h,v,d,b]);return {collection:K,selectionManager:T,isDisabled:n,get target(){return c.current},setTarget(u){if(this.isDropTarget(u))return;let r=c.current;r&&typeof i.onDropExit=="function"&&i.onDropExit({type:"dropexit",x:0,y:0,target:r}),u&&typeof O=="function"&&O({type:"dropenter",x:0,y:0,target:u}),c.current=u??null,g(u??null);},isDropTarget(u){let r=c.current;return !r||!u?false:ge(u,r)?true:u?.type==="item"&&r?.type==="item"&&u.key!==r.key&&u.dropPosition!==r.dropPosition&&u.dropPosition!=="on"&&r.dropPosition!=="on"?ge(p(u),r)||ge(u,p(r)):false},getDropOperation(u){let{target:r,isInternal:f,draggingKeys:y}=u;if(f&&r.type==="item"&&y.size>0){if(y.has(r.key)&&r.dropPosition==="on")return "cancel";let o=r.key;for(;o!=null;){let P=K.getItem(o)?.parentKey;if(P!=null&&y.has(P))return "cancel";o=P??null;}}return m(u)}}}function ge(i,e){if(!i)return !e;switch(i.type){case "root":return e?.type==="root";case "item":return e?.type==="item"&&e?.key===i.key&&e?.dropPosition===i.dropPosition}}function yt(i,e,n){let t=i.getItem(e.key);for(let s of n)if(i.getItem(s)?.parentKey!==t?.parentKey)return false;return true}var ue=class{collection;ref;layout;orientation;direction;constructor(e,n,t){this.collection=e,this.ref=n,this.layout=t?.layout||"stack",this.orientation=t?.orientation||"vertical",this.direction=t?.direction||"ltr";}getPrimaryStart(e){return this.orientation==="horizontal"?e.left:e.top}getPrimaryEnd(e){return this.orientation==="horizontal"?e.right:e.bottom}getSecondaryStart(e){return this.orientation==="horizontal"?e.top:e.left}getSecondaryEnd(e){return this.orientation==="horizontal"?e.bottom:e.right}getFlowStart(e){return this.layout==="stack"?this.getPrimaryStart(e):this.getSecondaryStart(e)}getFlowEnd(e){return this.layout==="stack"?this.getPrimaryEnd(e):this.getSecondaryEnd(e)}getFlowSize(e){return this.getFlowEnd(e)-this.getFlowStart(e)}getDropTargetFromPoint(e,n,t){if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return {type:"root"};let s=this.ref.current.getBoundingClientRect(),l=this.orientation==="horizontal"?e:n,v=this.orientation==="horizontal"?n:e;l+=this.getPrimaryStart(s),v+=this.getSecondaryStart(s);let d=this.layout==="stack"?l:v,h=this.orientation==="horizontal"&&this.direction==="rtl",K=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",T=this.layout==="stack"?h:K,O=this.ref.current?.dataset.collection,a=this.ref.current.querySelectorAll(O?`[data-collection="${CSS.escape(O)}"]`:"[data-key]"),b=new Map,g=b$2(this.ref.current);for(let f of a)f instanceof g.HTMLElement&&f.dataset.key!=null&&b.set(f.dataset.key,f);let c=[...this.collection].filter(f=>f.type==="item");if(c.length<1)return {type:"root"};let p=0,m=c.length;for(;p<m;){let f=Math.floor((p+m)/2),y=c[f],o=b.get(String(y.key));if(!o)break;let D=o.getBoundingClientRect(),P=w=>{w?p=f+1:m=f;};if(l<this.getPrimaryStart(D))P(h);else if(l>this.getPrimaryEnd(D))P(!h);else if(v<this.getSecondaryStart(D))P(K);else if(v>this.getSecondaryEnd(D))P(!K);else {let w={type:"item",key:y.key,dropPosition:"on"};if(t(w))d<=this.getFlowStart(D)+5&&t({...w,dropPosition:"before"})?w.dropPosition=T?"after":"before":d>=this.getFlowEnd(D)-5&&t({...w,dropPosition:"after"})&&(w.dropPosition=T?"before":"after");else {let E=this.getFlowStart(D)+this.getFlowSize(D)/2;d<=E&&t({...w,dropPosition:"before"})?w.dropPosition=T?"after":"before":d>=E&&t({...w,dropPosition:"after"})&&(w.dropPosition=T?"before":"after");}return w}}let u=c[Math.min(p,c.length-1)];return s=b.get(String(u.key))?.getBoundingClientRect(),s&&(l<this.getPrimaryStart(s)||Math.abs(d-this.getFlowStart(s))<Math.abs(d-this.getFlowEnd(s)))?{type:"item",key:u.key,dropPosition:T?"after":"before"}:{type:"item",key:u.key,dropPosition:T?"before":"after"}}};export{tt as a,pe as b,rt as c,at as d,pt as e,Ze as f,gt as g,ft as h,ue as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b}from'./chunk-Q5UMLFN3.mjs';import {a as a$9}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-Q5UMLFN3.mjs';import {a as a$9}from'./chunk-L7GYT3MC.mjs';import {a as a$4,b as b$1}from'./chunk-TZSRU3GG.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-FPM5UJRF.mjs';import {a as a$6}from'./chunk-TQMBJFQC.mjs';import {a as a$7}from'./chunk-ELW6SXDM.mjs';import {a as a$8}from'./chunk-LRFFL765.mjs';import {j}from'./chunk-AIG23SN5.mjs';import {d}from'./chunk-MMLAKHLR.mjs';import {g,c}from'./chunk-V2C4UDOC.mjs';import {i,a as a$1}from'./chunk-TYOEGCPS.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import H,{useContext,useEffect,useMemo,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AnimatePresence,motion}from'motion/react';import {ChevronRightIcon}from'@baseline-ui/icons/8';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {b}from'./chunk-Q5UMLFN3.mjs';import {a as a$9}from'./chunk-LHLY432N.mjs'
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var X="_1yep5z6m3",Y=a({defaultClassName:"_1kvz17db _1yep5z6lq _1yep5z6ls",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Z=a({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6lq _1yep5z6lr",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),$="_1kvz17de",ee="_1yep5z6ez _1yep5z6dy",oe=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:[]}),te="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",re=a({defaultClassName:"_1kvz17d7 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{isDisabled:{true:"_1yep5z6f2",false:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var M=H.forwardRef(({children:a,className:i$1,style:p},t)=>{let{headers:o}=useContext(z),{disabledKeys:u}=useContext(z),l=H.Children.toArray(a).filter(e=>H.isValidElement(e));useEffect(()=>{for(let e of o.keys())e>=l.length&&o.delete(e);},[o,l.length]);let{keyboardProps:_}=j({onKeyDown:e=>{let n=i(a$1(e.target)),c=[...o?.keys()||[]].findIndex(d=>{let y=o?.get(d)?.current;return y?y===n:false});if(!o?.get(c)){e.continuePropagation();return}let s=o?.size||0,v=new Set([...u??[]].map(String)),m=d=>{let y=o.get(d)?.current?.dataset.key;return y!==void 0&&v.has(y)},r=(d,y)=>{for(let g=1;g<=s;g++){let A=((d+y*g)%s+s)%s;if(!m(A)){o.get(A)?.current?.focus();return}}};switch(e.key){case "Home":{e.preventDefault(),r(-1,1);break}case "End":{e.preventDefault(),r(s,-1);break}case "ArrowDown":{e.preventDefault(),r(c,1);break}case "ArrowUp":{e.preventDefault(),r(c,-1);break}default:e.continuePropagation();}}});return jsx("div",{...b(_),style:p,className:a$2(X,i$1),ref:t,children:l.map((e,n)=>H.cloneElement(e,{index:n}))})});M.displayName="AccordionBase";var z=H.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),se=H.forwardRef(({children:a,disabledKeys:i,defaultExpandedKeys:p=new Set,expandedKeys:t,expansionMode:o="multiple",onChange:u,className:l,style:_},e)=>{let[n,c]=a$3(t,p,u),f=H.useRef(new Map).current,[s,v]=H.useState(o);useEffect(()=>{v(o);},[o]);let m=useMemo(()=>({expandedKeys:n,setExpandedKeys:c,disabledKeys:i,headers:f,expansionMode:s}),[n,c,i,f,s]);return jsx(z.Provider,{value:m,children:jsx(a$4,{children:jsx(M,{className:l,style:_,ref:e,children:a})})})});se.displayName="Accordion";var D=H.forwardRef(({title:a,actions:i,controlId:p,value:t,id:o,index:u,subLabel:l,showActionsOnTriggerOnly:_},e)=>{let n=H.useRef(null),{expandedKeys:c
|
|
10
|
+
var X="_1yep5z6m3",Y=a({defaultClassName:"_1kvz17db _1yep5z6lq _1yep5z6ls",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Z=a({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6lq _1yep5z6lr",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),$="_1kvz17de",ee="_1yep5z6ez _1yep5z6dy",oe=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:[]}),te="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",re=a({defaultClassName:"_1kvz17d7 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{isDisabled:{true:"_1yep5z6f2",false:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var M=H.forwardRef(({children:a,className:i$1,style:p},t)=>{let{headers:o}=useContext(z),{disabledKeys:u}=useContext(z),l=H.Children.toArray(a).filter(e=>H.isValidElement(e));useEffect(()=>{for(let e of o.keys())e>=l.length&&o.delete(e);},[o,l.length]);let{keyboardProps:_}=j({onKeyDown:e=>{let n=i(a$1(e.target)),c=[...o?.keys()||[]].findIndex(d=>{let y=o?.get(d)?.current;return y?y===n:false});if(!o?.get(c)){e.continuePropagation();return}let s=o?.size||0,v=new Set([...u??[]].map(String)),m=d=>{let y=o.get(d)?.current?.dataset.key;return y!==void 0&&v.has(y)},r=(d,y)=>{for(let g=1;g<=s;g++){let A=((d+y*g)%s+s)%s;if(!m(A)){o.get(A)?.current?.focus();return}}};switch(e.key){case "Home":{e.preventDefault(),r(-1,1);break}case "End":{e.preventDefault(),r(s,-1);break}case "ArrowDown":{e.preventDefault(),r(c,1);break}case "ArrowUp":{e.preventDefault(),r(c,-1);break}default:e.continuePropagation();}}});return jsx("div",{...b(_),style:p,className:a$2(X,i$1),ref:t,children:l.map((e,n)=>H.cloneElement(e,{index:n}))})});M.displayName="AccordionBase";var z=H.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),se=H.forwardRef(({children:a,disabledKeys:i,defaultExpandedKeys:p=new Set,expandedKeys:t,expansionMode:o="multiple",onChange:u,className:l,style:_},e)=>{let[n,c]=a$3(t,p,u),f=H.useRef(new Map).current,[s,v]=H.useState(o);useEffect(()=>{v(o);},[o]);let m=useMemo(()=>({expandedKeys:n,setExpandedKeys:c,disabledKeys:i,headers:f,expansionMode:s}),[n,c,i,f,s]);return jsx(z.Provider,{value:m,children:jsx(a$4,{children:jsx(M,{className:l,style:_,ref:e,children:a})})})});se.displayName="Accordion";var D=H.forwardRef(({title:a,actions:i,controlId:p,value:t,id:o,index:u,subLabel:l,showActionsOnTriggerOnly:_},e)=>{let n=H.useRef(null),{expandedKeys:c,setExpandedKeys:f,expansionMode:s,disabledKeys:v,headers:m}=useContext(z),r=v?.has(t),d$1=b$1();a$5(d$1);let{focusNext:y,focusPrevious:g$1}=d$1,{direction:A}=b$2(),pe=A==="rtl"?"ArrowLeft":"ArrowRight",le=A==="rtl"?"ArrowRight":"ArrowLeft",{keyboardProps:me}=j({onKeyDown:x=>{x.key===pe?y({wrap:true}):x.key===le?g$1({wrap:true}):x.continuePropagation();},isDisabled:r});useEffect(()=>{a$5(typeof u=="number","AccordionItem must have an index"),m?.set(u,n);},[u,m]);let L=()=>{f(x=>{let b=new Set(x);return b.has(t)?b.delete(t):(s==="single"&&b.clear(),b.add(t)),b});},{buttonProps:ue}=a$6({"aria-expanded":c.has(t),"aria-controls":p,onPress:L,isDisabled:r},n),{pressProps:ye}=d({onPress:L,isDisabled:r}),{focusProps:fe,isFocusVisible:ze}=a$7(),{hoverProps:_e,isHovered:T}=a$8({isDisabled:r}),{focusProps:ve,isFocusVisible:xe}=a$7({within:true}),be=c.has(t);return jsxs("h3",{...g(me,ye,_e,ve),className:oe({isFocusVisible:ze,isHovered:T,isDisabled:r}),ref:e,children:[jsxs("div",{className:re({isDisabled:!!r}),children:[jsx(ChevronRightIcon,{className:Z({isExpanded:be}),size:8}),jsx("button",{...g(ue,fe),id:o,"data-key":t,className:te,ref:n,children:a})]}),i?.length?jsx("div",{"data-testid":"action-buttons",className:Y({showActionsOnTriggerOnly:_,isTriggered:xe||T}),children:i.map((x,b)=>jsx(a$9,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:r,...x},b))}):null,l?jsx("div",{className:ee,children:l}):null]})});D.displayName="AccordionHeader";var Ke={open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},Ne=({isExpanded:a,...i})=>{let[p,t]=useState(!a);return a&&p&&t(false),jsx(motion.section,{...i,initial:false,animate:a?"open":"closed",onAnimationComplete:o=>{o==="closed"&&t(true);},hidden:p})},de=H.forwardRef(({title:a,actions:i,children:p,value:t,index:o,subLabel:u,style:l,className:_,showActionsOnTriggerOnly:e,shouldForceMount:n},c$1)=>{let f=c(),s=c(),{expandedKeys:v}=useContext(z),m=v.has(t),r={role:"region","aria-labelledby":s,id:f,className:$,variants:Ke},d=jsx("div",{style:l,className:_,children:p});return jsxs(Fragment,{children:[jsx(a$4,{children:jsx(D,{value:t,actions:i,id:s,title:a,controlId:m||n?f:void 0,ref:c$1,index:o,subLabel:u,showActionsOnTriggerOnly:e})}),n?jsx(Ne,{...r,isExpanded:m,children:d}):jsx(AnimatePresence,{initial:false,children:m?jsx(motion.section,{...r,initial:"closed",animate:"open",exit:"closed",children:d}):null})]})});de.displayName="AccordionItem";export{se as a,de as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$m}from'./chunk-WDWBYTJG.mjs';import {a as a$a}from'./chunk-
|
|
1
|
+
import {a as a$m}from'./chunk-WDWBYTJG.mjs';import {a as a$a}from'./chunk-Q7BJGV4I.mjs';import {a as a$3}from'./chunk-SVV6DLJH.mjs';import {a as a$c,b as b$4}from'./chunk-BJHDL2HH.mjs';import {b as b$5,c as c$3}from'./chunk-OY57K37D.mjs';import {a as a$2}from'./chunk-KT4FTBJ2.mjs';import {a as a$7,b as b$3,g,d,e as e$1,f,h as h$2}from'./chunk-FFPJBDWH.mjs';import {a as a$g}from'./chunk-SL5Q4NLV.mjs';import {b as b$1}from'./chunk-I4F5NJUI.mjs';import {i,l,p,j,n,k,h as h$1,d as d$1,g as g$2,a as a$i}from'./chunk-4Y5IKZSW.mjs';import {a as a$n}from'./chunk-YI5VNFT4.mjs';import {a as a$o}from'./chunk-QMP72J5L.mjs';import {c as c$2,b as b$7}from'./chunk-JYWJE6L5.mjs';import {a as a$k}from'./chunk-DIL5HL6K.mjs';import {a as a$l}from'./chunk-L7GYT3MC.mjs';import {a as a$6}from'./chunk-TZSRU3GG.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$6}from'./chunk-KG2EHFYA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$b}from'./chunk-I5YPTKMM.mjs';import {a as a$d}from'./chunk-NQIZ3U7Q.mjs';import {e,c,h,b as b$2,a as a$e}from'./chunk-EKRT3PPK.mjs';import {k as k$1,l as l$1}from'./chunk-JANI446W.mjs';import {a as a$j}from'./chunk-BPXZ6J5G.mjs';import {a as a$1}from'./chunk-FPM5UJRF.mjs';import {a as a$4}from'./chunk-ELW6SXDM.mjs';import {a as a$9}from'./chunk-LRFFL765.mjs';import {a as a$8}from'./chunk-RT4LMB6X.mjs';import {g as g$1,c as c$1,f as f$1}from'./chunk-V2C4UDOC.mjs';import {a as a$5}from'./chunk-SVIYLH7R.mjs';import {a as a$f}from'./chunk-JQQGRJ5J.mjs';import {a as a$h}from'./chunk-4QEH5CGK.mjs';import _t,{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 {DragIndicatorIcon}from'@baseline-ui/icons/12';import {themeVars,sprinkles}from'@baseline-ui/tokens';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$m}from'./chunk-WDWBYTJG.mjs';import {a as a$a}from'./chunk-EISLHU
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
function De(r,o,e){let{gridProps:t}=b$6(r,o,e);return t.role="treegrid",{gridProps:t}}var xt={"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:"Expandir"},"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 ce(r,o,e){let{node:t}=r,n=c$4(r,o,e),a=n.rowProps["aria-expanded"]===true,s=b$7(xt,"@react-aria/tree"),c=a$j({"aria-label":a?s.format("collapse"):s.format("expand"),"aria-labelledby":n.rowProps.id}),p={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:p}}var he=class r extends g$1{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:""}},ht=createContext(null),ye=createContext(null),we=forwardRef(function(o,e$1){return [o,e$1]=e(o,e$1,ht),jsx(i,{content:jsx(l,{...o}),createCollection:()=>new he,children:t=>jsx(Bt,{props:o,collection:t,treeRef:e$1})})}),bt={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Bt({props:r,collection:o,treeRef:e}){let{dragAndDropHooks:t}=r,{direction:n}=b(),a$8=a({usage:"search",sensitivity:"base"}),s=!!t?.useDraggableCollectionState,c$2=!!t?.useDroppableCollectionState,p$1=useRef(s),D=useRef(c$2);useEffect(()=>{p$1.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),D.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,c$2]);let{selectionMode:g$1="none",expandedKeys:S,defaultExpandedKeys:m,onExpandedChange:h$1,disabledBehavior:x="all"}=r,{CollectionRoot:P,isVirtualized:I,layoutDelegate:b$4,dropTargetDelegate:k}=useContext(p),[T,L]=a$1(S?new Set(S):void 0,m?new Set(m):new Set,h$1),[C,N]=useState(o),[E,v]=useState(T),[K,M]=useState(()=>o.withExpandedKeys(E,T));(!Wt(E,T)||o!==C)&&(M(o.withExpandedKeys(E,T)),N(o),v(T));let l=a$2({...r,selectionMode:g$1,expandedKeys:T,onExpandedChange:L,collection:K,children:void 0,disabledBehavior:x}),{gridProps:i}=De({...r,isVirtualized:I,layoutDelegate:b$4},l,e),y,u,f,A=false,j=null,_=useRef(null);if(s&&t){y=t.useDraggableCollectionState({collection:l.collection,selectionManager:l.selectionManager,preview:t.renderDragPreview?_:void 0}),t.useDraggableCollection({},y,e);let re=t.DragPreview;j=t.renderDragPreview?jsx(re,{ref:_,children:t.renderDragPreview}):null;}let[J]=useState(()=>new a$3);if(c$2&&t){u=t.useDroppableCollectionState({collection:l.collection,selectionManager:l.selectionManager});let re=t.dropTargetDelegate||k||new t.ListDropTargetDelegate(l.collection,e,{direction:n});J.setup(re,l,n);let ge=new b$1({collection:l.collection,collator:a$8,ref:e,disabledKeys:l.selectionManager.disabledKeys,disabledBehavior:l.selectionManager.disabledBehavior,direction:n,layoutDelegate:b$4});f=t.useDroppableCollection({keyboardDelegate:ge,dropTargetDelegate:J,onDropActivate:B=>{if(B.target.type==="item"){let w=B.target.key,$=l.collection.getItem(w),Ot=T.has(w);$&&$.hasChildNodes&&(!Ot||t?.isVirtualDragging?.())&&l.toggleKey(w);}},onKeyDown:B=>{let w=u?.target;if(w&&w.type==="item"&&w.dropPosition==="on"){let $=l.collection.getItem(w.key);(B.key===bt.expand[n]&&$?.hasChildNodes&&!l.expandedKeys.has(w.key)||B.key===bt.collapse[n]&&$?.hasChildNodes&&l.expandedKeys.has(w.key))&&l.toggleKey(w.key);}}},u,e),A=u.isDropTarget({type:"root"});}let ee=!!(s&&!y?.isDisabled),{focusProps:te,isFocused:U,isFocusVisible:X}=a$4(),V={isEmpty:l.collection.size===0,isFocused:U,isFocusVisible:X,isDropTarget:A,selectionMode:l.selectionManager.selectionMode,allowsDragging:!!ee,state:l},Ht=c({...r,children:void 0,defaultClassName:"react-aria-Tree",values:V}),Ke=null;if(l.collection.size===0&&r.renderEmptyState){let{isEmpty:re,...ge}=V,B=r.renderEmptyState({...ge});Ke=jsx("div",{role:"row",style:{display:"contents"},...{"aria-level":1},children:jsx("div",{role:"gridcell",style:{display:"contents"},children:B})});}let Nt=a$5(r,{global:true});return jsxs(Fragment,{children:[jsx(a$6,{children:jsxs(h.div,{...c$1(Nt,Ht,i,te,f?.collectionProps),ref:e,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,"data-focused":U||void 0,"data-drop-target":A||void 0,"data-focus-visible":X||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode,"data-allows-dragging":!!ee||void 0,children:[jsxs(b$2,{values:[[ye,l],[a$7,{dragAndDropHooks:t,dragState:y,dropState:u}],[b$3,{render:Ft}]],children:[c$2&&jsx(Ut,{}),jsx(g,{children:jsx(P,{collection:l.collection,persistedKeys:e$1(l.selectionManager,t,u),scrollRef:e,renderDropIndicator:d(t,u)})})]}),Ke]})}),j]})}var Pe=class extends a$i{static type="content"},Re=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),Ie=class extends a$i{static type="item"},Se=k(Ie,(r,o,e)=>{let t=useContext(ye);o=a$8(o);let{dragAndDropHooks:n,dragState:a,dropState:s}=useContext(a$7),c$3=a&&!(a.isDisabled||a.selectionManager.isDisabled(e.key)),{rowProps:p,gridCellProps:D,expandButtonProps:g,descriptionProps:S,...m}=ce({node:e,shouldSelectOnPressUp:!!a,focusMode:r.focusMode,allowsArrowNavigation:r.allowsArrowNavigation},t,o),h$3=p["aria-expanded"]===true,x=r.hasChildItems||[...t.collection.getChildren(e.key)].length>1,P=p["aria-level"]||1,{hoverProps:I,isHovered:b}=a$9({isDisabled:!m.allowsSelection&&!m.hasAction&&!c$3,onHoverStart:r.onHoverStart,onHoverChange:r.onHoverChange,onHoverEnd:r.onHoverEnd}),{isFocusVisible:k,focusProps:T}=a$4(),{isFocusVisible:L,focusProps:C}=a$4({within:true}),{checkboxProps:N}=a$a({key:e.key},t),E=null;a&&n&&(E=n.useDraggableItem({key:e.key,hasDragButton:true},a,o));let v=null,K=useRef(null),M=useRef(null),l=useRef(null),{visuallyHiddenProps:i}=a$b();s&&n&&(v=n.useDropIndicator({target:{type:"item",key:e.key,dropPosition:"on"},activateButtonRef:l},s,M));let y=a&&a.isDragging(e.key),u=v?.isDropTarget,f$1=t.selectionManager.selectionMode,A=t.selectionManager.selectionBehavior,j=_t.useMemo(()=>({...m,isHovered:b,isFocusVisible:k,isExpanded:h$3,hasChildItems:x,level:P,selectionMode:f$1,selectionBehavior:A,isFocusVisibleWithin:L,state:t,id:e.key,allowsDragging:!!a,isDragging:y,isDropTarget:u}),[m,b,k,h$3,x,P,L,t,e.key,a,y,u,A,f$1]),_=c({...r,id:void 0,children:e.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":P},values:j});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(()=>{x&&!K.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 J=useRef(null);useEffect(()=>{a&&!J.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 ee=h$1({items:t.collection.getChildren(e.key),children:V=>{switch(V.type){case "content":return V.render(V);case "loader":case "item":return jsx(Fragment,{});default:throw new Error("Unsupported element type in TreeRow: "+V.type)}}}),te=c$2(),U=a$5(r,{global:true});delete U.id,delete U.onClick;let X=f(E,n,o);return jsxs(Fragment,{children:[v&&!v.isHidden&&jsx("div",{role:"row","aria-level":p["aria-level"],"aria-expanded":p["aria-expanded"],"aria-label":v.dropIndicatorProps["aria-label"],children:jsxs("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"},children:[jsx("div",{role:"button",...i,...v.dropIndicatorProps,ref:M}),p["aria-expanded"]!=null?jsx("div",{role:"button",...i,id:te,"aria-label":g["aria-label"],"aria-labelledby":`${te} ${p.id}`,tabIndex:-1,ref:l}):null]})}),jsx(h.div,{...c$1(U,p,T,I,C,X.itemProps),..._,ref:o,"data-expanded":x&&h$3||void 0,"data-has-child-items":x||void 0,"data-level":P,"data-selected":m.isSelected||void 0,"data-disabled":m.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":k||void 0,"data-pressed":m.isPressed||void 0,"data-selection-mode":t.selectionManager.selectionMode==="none"?void 0:t.selectionManager.selectionMode,"data-allows-dragging":!!a||void 0,"data-dragging":y||void 0,"data-drop-target":u||void 0,children:jsx("div",{...D,style:{display:"contents"},children:jsx(b$2,{values:[[a$c,{slots:{[a$e]:{},selection:N}}],[b$4,{slots:{[a$e]:{},selection:N}}],[a$d,{slots:{[a$e]:{},chevron:{...g,ref:K},drag:{...X.dragButtonProps,ref:J}}}],[Pt,{...j}],[h$2,{isSelected:m.isSelected}]],children:ee})})})]})});j(d$1,function(o,e,t){let{isVirtualized:n}=useContext(p),a=useContext(ye),{isLoading:s,onLoadMore:c$2,scrollOffset:p$1,...D}=o,g=useRef(null),S=useMemo(()=>({onLoadMore:c$2,collection:a?.collection,sentinelRef:g,scrollOffset:p$1}),[c$2,p$1,a?.collection]);k$1(S,g),e=a$8(e);let{rowProps:m,gridCellProps:h$1}=ce({node:t},a,e),x=m["aria-level"]||1,P={role:"row","aria-level":m["aria-level"]},I=c({...D,id:void 0,children:t.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:x}}),b={};return n&&(b={display:"contents"}),jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:g,style:{position:"absolute",height:1,width:1}})}),s&&I.children&&jsx(h.div,{ref:e,...c$1(a$5(o),P),...I,"data-level":x,children:jsx("div",{...h$1,style:b,children:I.children})})]})});function Ft(r,o){o=a$8(o);let{dragAndDropHooks:e,dropState:t}=useContext(a$7),n=useRef(null),{dropIndicatorProps:a,isHidden:s,isDropTarget:c}=e.useDropIndicator(r,t,n);if(s)return null;let p=t&&r.target.type==="item"?(t.collection.getItem(r.target.key)?.level||0)+1:1;return jsx(jt,{...r,dropIndicatorProps:a,isDropTarget:c,ref:o,buttonRef:n,level:p})}function Gt(r,o){let{dropIndicatorProps:e,isDropTarget:t,buttonRef:n,level:a,...s}=r,{visuallyHiddenProps:c$1}=a$b(),p=c({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":a},values:{isDropTarget:t}});return jsx(h.div,{...p,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}),p.children]})})}var jt=forwardRef(Gt);function Ut(){let{dragAndDropHooks:r,dropState:o}=useContext(a$7),e=useRef(null),{dropIndicatorProps:t}=r.useDropIndicator({target:{type:"root"}},o,e),n=o.isDropTarget({type:"root"}),{visuallyHiddenProps:a}=a$b();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 Wt(r,o){if(r.size!==o.size)return false;for(let e of r)if(!o.has(e))return false;return true}var It=({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:p,onRename:D,renameLabel:g,renderItemTitle:S,renderItem:m})=>Object.values({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:p,onRename:D,renameLabel:g,renderItemTitle:S,renderItem:m});var Ct="_10dw1p98",wt="_10dw1p96",Rt=["_10dw1p9b","_10dw1p9c"],St="_10dw1p97",Et=a$f({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"},isDropTarget:{true:"_1yep5z612t _1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61pc _1yep5z61rl _1yep5z61va _1yep5z61v9 _1yep5z61vd"]]}),Lt="_10dw1p99";function Kt(r,o){let e=r;if(typeof r=="function"&&!r.prototype?.isReactComponent){let t=r(o);e=isValidElement(t)?r:t;}if(e)return "unselected"in e?e.unselected:e}var Le=({item:r,id:o,value:e,...t})=>{let{onPrimaryAction:n,onSecondaryAction:a,actionsPosition:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:g,expandLabel:S,collapseLabel:m,onRename:h,renameLabel:x,renderItemTitle:P,renderItem:I}=t,{formatMessage:b}=b$8(),{renamingKey:k,setRenamingKey:T}=useContext(Me),L=k===r.id,C=!!r.children?.length,N=r.icon,E=!!h,v=useRef(false),K=useMemo(()=>{let i=Kt(c,r.id),y=Kt(p,r.id),u=typeof D=="function"?D(r.id):D,f=typeof g=="function"?g(r.id):g;return i||y?jsxs(a$k,{display:"flex",flexDirection:"row",style:s==="end"?{marginInlineStart:"auto"}:void 0,children:[i?jsx(a$l,{icon:i,"aria-label":u,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{n?.(r.id);},tooltip:true}):null,y?jsx(a$l,{icon:y,"aria-label":f,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{a?.(r.id);},tooltip:true}):null]}):null},[s,c,r.id,p,D,g,n,a]),M=useCallback(i=>{a$m(i)||(i.key==="Enter"?(v.current=true,h?.({key:r.id,value:i.target.value}),T(null)):i.key==="Escape"&&(v.current=true,T(null)));},[r.id,h,T]),l$1=useCallback(()=>P?P(r):r.label,[P,r]);return jsxs(Se,{id:r.id,value:r,textValue:r.label,"data-key":r.id,className:I?a$h(wt,"BaselineUI-TreeView-Row"):i=>a$h(St,Et({isHovered:i.isHovered,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isRenaming:L,isDropTarget:i.isDropTarget}),"BaselineUI-TreeView-Row"),children:[jsx(Re,{children:i=>{let y=i.allowsDragging?jsx(a$l,{slot:"drag",icon:DragIndicatorIcon,size:"xs",variant:"secondary",className:"BaselineUI-TreeView-DragHandle","data-testid":"tree-view-drag-handle"}):null;if(I){let f=I(r,{level:i.level,isExpanded:i.isExpanded,hasChildItems:i.hasChildItems,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isFocusVisibleWithin:i.isFocusVisibleWithin,isHovered:i.isHovered,isPressed:i.isPressed,isDropTarget:!!i.isDropTarget,isDragging:!!i.isDragging,toggleExpanded:()=>{i.state.toggleKey(i.id);}});return y?jsxs(a$k,{display:"flex",flexDirection:"row",alignItems:"center",children:[y,jsx("div",{style:{flex:1,minWidth:0},children:f})]}):f}let u=i.level-1;return jsxs(Fragment,{children:[y,s==="start"?K:null,jsxs(a$k,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(a$k,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${u*2} * ${themeVars.spacing.lg})`},children:[jsx(a$l,{icon:ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{i.state.toggleKey(i.id);},"aria-label":i.isExpanded?m??b(Ee.collapse):S??b(Ee.expand),style:{visibility:C?"visible":"hidden"},className:a$h(Ct,"BaselineUI-TreeView-ExpansionToggle")}),N?jsx(N,{size:16,style:{color:themeVars.color.icon.interactive.disabled}}):null]}),jsxs(a$k,{paddingLeft:"sm",paddingY:L?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:f=>{E&&(f.stopPropagation(),f.preventDefault(),T(r.id));},children:[L?jsx("div",{onClick:f=>{f.stopPropagation();},children:jsx(a$n,{defaultValue:r.label,autoFocus:true,onFocus:()=>{v.current=false;},onBlur:f=>{if(v.current){v.current=false;return}h?.({key:r.id,value:f.target.value}),T(null);},"aria-label":x??b(Ee.rename),onKeyDown:M,className:"BaselineUI-TreeView-RenameInput"})}):jsx(a$o,{type:"label",size:"sm",className:a$h(sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:l$1()}),r.description?jsx(a$o,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.description}):null]})]}),s==="end"?K:null]})}}),jsx(l,{items:r.children,children:i=>jsx(Le,{item:i,...t})})]})},Ee=c$3({expand:{id:"bui.treeView.expand",defaultMessage:"Expand"},collapse:{id:"bui.treeView.collapse",defaultMessage:"Collapse"},rename:{id:"bui.treeView.rename",defaultMessage:"Rename"}});var Me=createContext({renamingKey:null,setRenamingKey:()=>{}}),At=_t.forwardRef(({className:r,style:o,"data-block-id":e,"data-block-class":t,items:n,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:g,actionsPosition:S="start",expandLabel:m,collapseLabel:h,onRename:x,renameLabel:P,onAction:I,renderItemTitle:b,dragAndDropHooks:k,keyboardNavigationBehavior:T,renderItem:L,...C},N)=>{let E=useRef(null);a$g({ref:E,isDisabled:!k});let[v,K]=useState(null),M=L!==void 0,l=S==="start"?[c,p].filter(Boolean).length:0;useEffect(()=>{let u=E.current;if(!u||!x||M)return;let f=A=>{if(A.key==="F2"){let _=u.querySelector("[data-focused='true']")?.dataset.key;_&&(A.preventDefault(),A.stopPropagation(),K(_));}};return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f);}},[x,M]);let i=useMemo(()=>({renamingKey:v,setRenamingKey:K}),[v]),y={actionsPosition:S,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:g,expandLabel:m,collapseLabel:h,onRename:x,renameLabel:P,renderItemTitle:b,renderItem:L};return jsx(Me.Provider,{value:i,children:jsx(we,{ref:b$5(N,E),items:n.children||[],selectionMode:"multiple",expandedKeys:C.expandedKeys,defaultExpandedKeys:C.defaultExpandedKeys,onExpandedChange:C.onExpandedChange,selectedKeys:C.selectedKeys,disallowEmptySelection:C.disallowEmptySelection,onAction:I,dragAndDropHooks:k,keyboardNavigationBehavior:T,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"data-block-id":e,"data-block-class":t,style:o,className:a$h(r,!M&&Lt,!M&&Rt[l-1],"BaselineUI-TreeView"),dependencies:It(y),children:u=>jsx(Le,{item:u,...y})})})});At.displayName="TreeView";export{At as a};
|
|
10
|
+
function De(r,o,e){let{gridProps:t}=b$5(r,o,e);return t.role="treegrid",{gridProps:t}}var xt={"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:"Expandir"},"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 ce(r,o,e){let{node:t}=r,n=c$3(r,o,e),a=n.rowProps["aria-expanded"]===true,s=b$6(xt,"@react-aria/tree"),c=a$j({"aria-label":a?s.format("collapse"):s.format("expand"),"aria-labelledby":n.rowProps.id}),p={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:p}}var he=class r extends g$2{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:""}},ht=createContext(null),ye=createContext(null),we=forwardRef(function(o,e$1){return [o,e$1]=e(o,e$1,ht),jsx(i,{content:jsx(l,{...o}),createCollection:()=>new he,children:t=>jsx(Bt,{props:o,collection:t,treeRef:e$1})})}),bt={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Bt({props:r,collection:o,treeRef:e}){let{dragAndDropHooks:t}=r,{direction:n}=b(),a$8=a({usage:"search",sensitivity:"base"}),s=!!t?.useDraggableCollectionState,c$1=!!t?.useDroppableCollectionState,p$1=useRef(s),D=useRef(c$1);useEffect(()=>{p$1.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),D.current!==c$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");},[s,c$1]);let{selectionMode:g$2="none",expandedKeys:S,defaultExpandedKeys:m,onExpandedChange:h$1,disabledBehavior:x="all"}=r,{CollectionRoot:P,isVirtualized:I,layoutDelegate:b$4,dropTargetDelegate:k}=useContext(p),[T,L]=a$1(S?new Set(S):void 0,m?new Set(m):new Set,h$1),[C,N]=useState(o),[E,v]=useState(T),[K,M]=useState(()=>o.withExpandedKeys(E,T));(!Wt(E,T)||o!==C)&&(M(o.withExpandedKeys(E,T)),N(o),v(T));let l=a$2({...r,selectionMode:g$2,expandedKeys:T,onExpandedChange:L,collection:K,children:void 0,disabledBehavior:x}),{gridProps:i}=De({...r,isVirtualized:I,layoutDelegate:b$4},l,e),y,u,f,A=false,j=null,_=useRef(null);if(s&&t){y=t.useDraggableCollectionState({collection:l.collection,selectionManager:l.selectionManager,preview:t.renderDragPreview?_:void 0}),t.useDraggableCollection({},y,e);let re=t.DragPreview;j=t.renderDragPreview?jsx(re,{ref:_,children:t.renderDragPreview}):null;}let[J]=useState(()=>new a$3);if(c$1&&t){u=t.useDroppableCollectionState({collection:l.collection,selectionManager:l.selectionManager});let re=t.dropTargetDelegate||k||new t.ListDropTargetDelegate(l.collection,e,{direction:n});J.setup(re,l,n);let ge=new b$1({collection:l.collection,collator:a$8,ref:e,disabledKeys:l.selectionManager.disabledKeys,disabledBehavior:l.selectionManager.disabledBehavior,direction:n,layoutDelegate:b$4});f=t.useDroppableCollection({keyboardDelegate:ge,dropTargetDelegate:J,onDropActivate:B=>{if(B.target.type==="item"){let w=B.target.key,$=l.collection.getItem(w),Ot=T.has(w);$&&$.hasChildNodes&&(!Ot||t?.isVirtualDragging?.())&&l.toggleKey(w);}},onKeyDown:B=>{let w=u?.target;if(w&&w.type==="item"&&w.dropPosition==="on"){let $=l.collection.getItem(w.key);(B.key===bt.expand[n]&&$?.hasChildNodes&&!l.expandedKeys.has(w.key)||B.key===bt.collapse[n]&&$?.hasChildNodes&&l.expandedKeys.has(w.key))&&l.toggleKey(w.key);}}},u,e),A=u.isDropTarget({type:"root"});}let ee=!!(s&&!y?.isDisabled),{focusProps:te,isFocused:U,isFocusVisible:X}=a$4(),V={isEmpty:l.collection.size===0,isFocused:U,isFocusVisible:X,isDropTarget:A,selectionMode:l.selectionManager.selectionMode,allowsDragging:!!ee,state:l},Ht=c({...r,children:void 0,defaultClassName:"react-aria-Tree",values:V}),Ke=null;if(l.collection.size===0&&r.renderEmptyState){let{isEmpty:re,...ge}=V,B=r.renderEmptyState({...ge});Ke=jsx("div",{role:"row",style:{display:"contents"},...{"aria-level":1},children:jsx("div",{role:"gridcell",style:{display:"contents"},children:B})});}let Nt=a$5(r,{global:true});return jsxs(Fragment,{children:[jsx(a$6,{children:jsxs(h.div,{...g$1(Nt,Ht,i,te,f?.collectionProps),ref:e,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,"data-focused":U||void 0,"data-drop-target":A||void 0,"data-focus-visible":X||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode,"data-allows-dragging":!!ee||void 0,children:[jsxs(b$2,{values:[[ye,l],[a$7,{dragAndDropHooks:t,dragState:y,dropState:u}],[b$3,{render:Ft}]],children:[c$1&&jsx(Ut,{}),jsx(g,{children:jsx(P,{collection:l.collection,persistedKeys:e$1(l.selectionManager,t,u),scrollRef:e,renderDropIndicator:d(t,u)})})]}),Ke]})}),j]})}var Pe=class extends a$i{static type="content"},Re=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),Ie=class extends a$i{static type="item"},Se=k(Ie,(r,o,e)=>{let t=useContext(ye);o=a$8(o);let{dragAndDropHooks:n,dragState:a,dropState:s}=useContext(a$7),c$2=a&&!(a.isDisabled||a.selectionManager.isDisabled(e.key)),{rowProps:p,gridCellProps:D,expandButtonProps:g,descriptionProps:S,...m}=ce({node:e,shouldSelectOnPressUp:!!a,focusMode:r.focusMode,allowsArrowNavigation:r.allowsArrowNavigation},t,o),h$3=p["aria-expanded"]===true,x=r.hasChildItems||[...t.collection.getChildren(e.key)].length>1,P=p["aria-level"]||1,{hoverProps:I,isHovered:b}=a$9({isDisabled:!m.allowsSelection&&!m.hasAction&&!c$2,onHoverStart:r.onHoverStart,onHoverChange:r.onHoverChange,onHoverEnd:r.onHoverEnd}),{isFocusVisible:k,focusProps:T}=a$4(),{isFocusVisible:L,focusProps:C}=a$4({within:true}),{checkboxProps:N}=a$a({key:e.key},t),E=null;a&&n&&(E=n.useDraggableItem({key:e.key,hasDragButton:true},a,o));let v=null,K=useRef(null),M=useRef(null),l=useRef(null),{visuallyHiddenProps:i}=a$b();s&&n&&(v=n.useDropIndicator({target:{type:"item",key:e.key,dropPosition:"on"},activateButtonRef:l},s,M));let y=a&&a.isDragging(e.key),u=v?.isDropTarget,f$1=t.selectionManager.selectionMode,A=t.selectionManager.selectionBehavior,j=_t.useMemo(()=>({...m,isHovered:b,isFocusVisible:k,isExpanded:h$3,hasChildItems:x,level:P,selectionMode:f$1,selectionBehavior:A,isFocusVisibleWithin:L,state:t,id:e.key,allowsDragging:!!a,isDragging:y,isDropTarget:u}),[m,b,k,h$3,x,P,L,t,e.key,a,y,u,A,f$1]),_=c({...r,id:void 0,children:e.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":P},values:j});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(()=>{x&&!K.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 J=useRef(null);useEffect(()=>{a&&!J.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 ee=h$1({items:t.collection.getChildren(e.key),children:V=>{switch(V.type){case "content":return V.render(V);case "loader":case "item":return jsx(Fragment,{});default:throw new Error("Unsupported element type in TreeRow: "+V.type)}}}),te=c$1(),U=a$5(r,{global:true});delete U.id,delete U.onClick;let X=f(E,n,o);return jsxs(Fragment,{children:[v&&!v.isHidden&&jsx("div",{role:"row","aria-level":p["aria-level"],"aria-expanded":p["aria-expanded"],"aria-label":v.dropIndicatorProps["aria-label"],children:jsxs("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"},children:[jsx("div",{role:"button",...i,...v.dropIndicatorProps,ref:M}),p["aria-expanded"]!=null?jsx("div",{role:"button",...i,id:te,"aria-label":g["aria-label"],"aria-labelledby":`${te} ${p.id}`,tabIndex:-1,ref:l}):null]})}),jsx(h.div,{...g$1(U,p,T,I,C,X.itemProps),..._,ref:o,"data-expanded":x&&h$3||void 0,"data-has-child-items":x||void 0,"data-level":P,"data-selected":m.isSelected||void 0,"data-disabled":m.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":k||void 0,"data-pressed":m.isPressed||void 0,"data-selection-mode":t.selectionManager.selectionMode==="none"?void 0:t.selectionManager.selectionMode,"data-allows-dragging":!!a||void 0,"data-dragging":y||void 0,"data-drop-target":u||void 0,children:jsx("div",{...D,style:{display:"contents"},children:jsx(b$2,{values:[[a$c,{slots:{[a$e]:{},selection:N}}],[b$4,{slots:{[a$e]:{},selection:N}}],[a$d,{slots:{[a$e]:{},chevron:{...g,ref:K},drag:{...X.dragButtonProps,ref:J}}}],[Pt,{...j}],[h$2,{isSelected:m.isSelected}]],children:ee})})})]})});j(d$1,function(o,e,t){let{isVirtualized:n}=useContext(p),a=useContext(ye),{isLoading:s,onLoadMore:c$1,scrollOffset:p$1,...D}=o,g=useRef(null),S=useMemo(()=>({onLoadMore:c$1,collection:a?.collection,sentinelRef:g,scrollOffset:p$1}),[c$1,p$1,a?.collection]);k$1(S,g),e=a$8(e);let{rowProps:m,gridCellProps:h$1}=ce({node:t},a,e),x=m["aria-level"]||1,P={role:"row","aria-level":m["aria-level"]},I=c({...D,id:void 0,children:t.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:x}}),b={};return n&&(b={display:"contents"}),jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:g,style:{position:"absolute",height:1,width:1}})}),s&&I.children&&jsx(h.div,{ref:e,...g$1(a$5(o),P),...I,"data-level":x,children:jsx("div",{...h$1,style:b,children:I.children})})]})});function Ft(r,o){o=a$8(o);let{dragAndDropHooks:e,dropState:t}=useContext(a$7),n=useRef(null),{dropIndicatorProps:a,isHidden:s,isDropTarget:c}=e.useDropIndicator(r,t,n);if(s)return null;let p=t&&r.target.type==="item"?(t.collection.getItem(r.target.key)?.level||0)+1:1;return jsx(jt,{...r,dropIndicatorProps:a,isDropTarget:c,ref:o,buttonRef:n,level:p})}function Gt(r,o){let{dropIndicatorProps:e,isDropTarget:t,buttonRef:n,level:a,...s}=r,{visuallyHiddenProps:c$1}=a$b(),p=c({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":a},values:{isDropTarget:t}});return jsx(h.div,{...p,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}),p.children]})})}var jt=forwardRef(Gt);function Ut(){let{dragAndDropHooks:r,dropState:o}=useContext(a$7),e=useRef(null),{dropIndicatorProps:t}=r.useDropIndicator({target:{type:"root"}},o,e),n=o.isDropTarget({type:"root"}),{visuallyHiddenProps:a}=a$b();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 Wt(r,o){if(r.size!==o.size)return false;for(let e of r)if(!o.has(e))return false;return true}var It=({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:p,onRename:D,renameLabel:g,renderItemTitle:S,renderItem:m})=>Object.values({actionsPosition:r,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:t,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:p,onRename:D,renameLabel:g,renderItemTitle:S,renderItem:m});var Ct="_10dw1p98",wt="_10dw1p96",Rt=["_10dw1p9b","_10dw1p9c"],St="_10dw1p97",Et=a$f({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"},isDropTarget:{true:"_1yep5z612t _1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61pc _1yep5z61rl _1yep5z61va _1yep5z61v9 _1yep5z61vd"]]}),Lt="_10dw1p99";function Kt(r,o){let e=r;if(typeof r=="function"&&!r.prototype?.isReactComponent){let t=r(o);e=isValidElement(t)?r:t;}if(e)return "unselected"in e?e.unselected:e}var Le=({item:r,id:o,value:e,...t})=>{let{onPrimaryAction:n,onSecondaryAction:a,actionsPosition:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:g,expandLabel:S,collapseLabel:m,onRename:h,renameLabel:x,renderItemTitle:P,renderItem:I}=t,{formatMessage:b}=b$7(),{renamingKey:k,setRenamingKey:T}=useContext(Me),L=k===r.id,C=!!r.children?.length,N=r.icon,E=!!h,v=useRef(false),K=useMemo(()=>{let i=Kt(c,r.id),y=Kt(p,r.id),u=typeof D=="function"?D(r.id):D,f=typeof g=="function"?g(r.id):g;return i||y?jsxs(a$k,{display:"flex",flexDirection:"row",style:s==="end"?{marginInlineStart:"auto"}:void 0,children:[i?jsx(a$l,{icon:i,"aria-label":u,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{n?.(r.id);},tooltip:true}):null,y?jsx(a$l,{icon:y,"aria-label":f,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{a?.(r.id);},tooltip:true}):null]}):null},[s,c,r.id,p,D,g,n,a]),M=useCallback(i=>{a$m(i)||(i.key==="Enter"?(v.current=true,h?.({key:r.id,value:i.target.value}),T(null)):i.key==="Escape"&&(v.current=true,T(null)));},[r.id,h,T]),l$1=useCallback(()=>P?P(r):r.label,[P,r]);return jsxs(Se,{id:r.id,value:r,textValue:r.label,"data-key":r.id,className:I?a$h(wt,"BaselineUI-TreeView-Row"):i=>a$h(St,Et({isHovered:i.isHovered,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isRenaming:L,isDropTarget:i.isDropTarget}),"BaselineUI-TreeView-Row"),children:[jsx(Re,{children:i=>{let y=i.allowsDragging?jsx(a$l,{slot:"drag",icon:DragIndicatorIcon,size:"xs",variant:"secondary",className:"BaselineUI-TreeView-DragHandle","data-testid":"tree-view-drag-handle"}):null;if(I){let f=I(r,{level:i.level,isExpanded:i.isExpanded,hasChildItems:i.hasChildItems,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isFocusVisibleWithin:i.isFocusVisibleWithin,isHovered:i.isHovered,isPressed:i.isPressed,isDropTarget:!!i.isDropTarget,isDragging:!!i.isDragging,toggleExpanded:()=>{i.state.toggleKey(i.id);}});return y?jsxs(a$k,{display:"flex",flexDirection:"row",alignItems:"center",children:[y,jsx("div",{style:{flex:1,minWidth:0},children:f})]}):f}let u=i.level-1;return jsxs(Fragment,{children:[y,s==="start"?K:null,jsxs(a$k,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(a$k,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${u*2} * ${themeVars.spacing.lg})`},children:[jsx(a$l,{icon:ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{i.state.toggleKey(i.id);},"aria-label":i.isExpanded?m??b(Ee.collapse):S??b(Ee.expand),style:{visibility:C?"visible":"hidden"},className:a$h(Ct,"BaselineUI-TreeView-ExpansionToggle")}),N?jsx(N,{size:16,style:{color:themeVars.color.icon.interactive.disabled}}):null]}),jsxs(a$k,{paddingLeft:"sm",paddingY:L?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:f=>{E&&(f.stopPropagation(),f.preventDefault(),T(r.id));},children:[L?jsx("div",{onClick:f=>{f.stopPropagation();},children:jsx(a$n,{defaultValue:r.label,autoFocus:true,onFocus:()=>{v.current=false;},onBlur:f=>{if(v.current){v.current=false;return}h?.({key:r.id,value:f.target.value}),T(null);},"aria-label":x??b(Ee.rename),onKeyDown:M,className:"BaselineUI-TreeView-RenameInput"})}):jsx(a$o,{type:"label",size:"sm",className:a$h(sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:l$1()}),r.description?jsx(a$o,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.description}):null]})]}),s==="end"?K:null]})}}),jsx(l,{items:r.children,children:i=>jsx(Le,{item:i,...t})})]})},Ee=c$2({expand:{id:"bui.treeView.expand",defaultMessage:"Expand"},collapse:{id:"bui.treeView.collapse",defaultMessage:"Collapse"},rename:{id:"bui.treeView.rename",defaultMessage:"Rename"}});var Me=createContext({renamingKey:null,setRenamingKey:()=>{}}),At=_t.forwardRef(({className:r,style:o,"data-block-id":e,"data-block-class":t,items:n,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:g,actionsPosition:S="start",expandLabel:m,collapseLabel:h,onRename:x,renameLabel:P,onAction:I,renderItemTitle:b,dragAndDropHooks:k,keyboardNavigationBehavior:T,renderItem:L,...C},N)=>{let E=useRef(null);a$g({ref:E,isDisabled:!k});let[v,K]=useState(null),M=L!==void 0,l=S==="start"?[c,p].filter(Boolean).length:0;useEffect(()=>{let u=E.current;if(!u||!x||M)return;let f=A=>{if(A.key==="F2"){let _=u.querySelector("[data-focused='true']")?.dataset.key;_&&(A.preventDefault(),A.stopPropagation(),K(_));}};return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f);}},[x,M]);let i=useMemo(()=>({renamingKey:v,setRenamingKey:K}),[v]),y={actionsPosition:S,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:g,expandLabel:m,collapseLabel:h,onRename:x,renameLabel:P,renderItemTitle:b,renderItem:L};return jsx(Me.Provider,{value:i,children:jsx(we,{ref:f$1(N,E),items:n.children||[],selectionMode:"multiple",expandedKeys:C.expandedKeys,defaultExpandedKeys:C.defaultExpandedKeys,onExpandedChange:C.onExpandedChange,selectedKeys:C.selectedKeys,disallowEmptySelection:C.disallowEmptySelection,onAction:I,dragAndDropHooks:k,keyboardNavigationBehavior:T,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"data-block-id":e,"data-block-class":t,style:o,className:a$h(r,!M&&Lt,!M&&Rt[l-1],"BaselineUI-TreeView"),dependencies:It(y),children:u=>jsx(Le,{item:u,...y})})})});At.displayName="TreeView";export{At as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-V2C4UDOC.mjs';import {b as b$1,a as a$1,d,j}from'./chunk-TYOEGCPS.mjs';import Z,{createContext,useContext,useRef,useCallback}from'react';import'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {c,b,a as a$2}from'./chunk-
|
|
1
|
+
import {c,b,a as a$2}from'./chunk-PITIJLE3.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {h,j,a as a$1,i}from'./chunk-TYOEGCPS.mjs';import {useRef,useCallback}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-4CMATAQ2.mjs';import {a as a$2}from'./chunk-2MS356Q7.mjs';import {c as c$1}from'./chunk-6RN7DKRF.mjs';import {e,f,d,h,g}from'./chunk-XF65LVBQ.mjs';import {b}from'./chunk-P3RRGPNM.mjs';import {a as a$5}from'./chunk-DIL5HL6K.mjs';import {a as a$3}from'./chunk-3K6XNSYE.mjs';import {a as a$1}from'./chunk-ELW6SXDM.mjs';import {c}from'./chunk-V2C4UDOC.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import j from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|