@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
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as isInIframe}from'./chunk-IB23KCIW.mjs';export{a as isInsideOverlayContent}from'./chunk-A6ZQQSAX.mjs';export{a as useMutationObserver}from'./chunk-CKUHFL5G.mjs';export{c as UNSAFE_stately,a as useListData}from'./chunk-SLSJEMQ4.mjs';export{a as useIsFirstRender}from'./chunk-DD5FWULD.mjs';export{a as TreeView}from'./chunk-WSRXTVYB.mjs';export{a as UNSAFE_aria}from'./chunk-SZNDCHMJ.mjs';export{a as TaggedPagination}from'./chunk-45EAFDOZ.mjs';export{a as TimeField}from'./chunk-RFCTQQMD.mjs';export{b as GlobalToastRegion,a as ToastQueue}from'./chunk-VWSTMBQK.mjs';export{a as Skeleton}from'./chunk-F2HESRBD.mjs';export{a as Stepper}from'./chunk-OMCGORTH.mjs';export{a as Switch}from'./chunk-DFMPVQM3.mjs';export{f as Cell,c as Column,e as Row,a as Table,d as TableBody,b as TableHeader,g as useTableDragAndDrop}from'./chunk-VYBJ36ZR.mjs';export{b as TabItem,a as Tabs}from'./chunk-C4XJOYAW.mjs';import'./chunk-G77E7EDE.mjs';export{a as ProgressBar}from'./chunk-DZFNVFYT.mjs';export{a as RadioGroup}from'./chunk-K276BGP2.mjs';export{a as Reaction}from'./chunk-CIOPWCOS.mjs';import'./chunk-LN2NT32E.mjs';export{a as ScrollControlButton}from'./chunk-5GZAORDK.mjs';export{a as Pagination}from'./chunk-OAOIUNNG.mjs';export{a as Panel,b as PanelGroup,c as PanelResizeHandle}from'./chunk-Z7UPVYL5.mjs';export{a as PointPicker,b as PointPickerContent,c as PointPickerDisplay,d as usePointProximity}from'./chunk-V6DZG4PM.mjs';export{a as useLiveInteractionModality}from'./chunk-67QIBKUN.mjs';export{a as usePreventFocus}from'./chunk-KMZ3YVPE.mjs';export{a as clamp}from'./chunk-JBXZ6ZHP.mjs';export{a as Preview}from'./chunk-CR66GYHT.mjs';export{a as Kbd}from'./chunk-6NUHEJGL.mjs';export{a as Link}from'./chunk-ARMWQYH2.mjs';export{a as Markdown}from'./chunk-HMAVZPRE.mjs';export{a as MessageFormat}from'./chunk-RE7ZGPOY.mjs';export{a as NumberFormat}from'./chunk-E3FP4B25.mjs';export{a as Group}from'./chunk-SI7LO2L4.mjs';export{a as Icon}from'./chunk-MUQR2YER.mjs';export{a as Image}from'./chunk-LZEZW5RE.mjs';export{a as ImageDropZone}from'./chunk-2SKD7TKS.mjs';export{a as ImageGallery}from'./chunk-F4YBUGLD.mjs';import'./chunk-CWPFUB7B.mjs';export{a as useImage}from'./chunk-NV7KQVPE.mjs';export{a as InlineAlert}from'./chunk-JIGOXUY4.mjs';export{a as useTextSelection}from'./chunk-DRQHSYY3.mjs';export{g as EMPTY_SELECTION_STATE,l as Editor,e as EditorCore,k as EditorProvider,b as comparePoints,d as docEnd,c as docStart,a as getDocPlainText,i as handleEditorShortcut,j as useEditable,h as useEditor,f as useEditorContext}from'./chunk-26YOMQXV.mjs';export{a as isUrl}from'./chunk-JI4SJ53O.mjs';export{a as Toolbar}from'./chunk-JB3UIJ3I.mjs';import'./chunk-WDWBYTJG.mjs';export{a as capitalize,b as getPlainText}from'./chunk-BPW4QRPV.mjs';export{a as getOsSpecificKeyboardShortcutLabel}from'./chunk-WXILHRBE.mjs';import'./chunk-TDYBXLYP.mjs';export{a as Menu}from'./chunk-JDDA4R2D.mjs';import'./chunk-K3WFKO7R.mjs';import'./chunk-IVM5IBQS.mjs';export{a as FileInput}from'./chunk-YSQ3YHJN.mjs';export{a as FileList}from'./chunk-H2SJLW7T.mjs';import'./chunk-KOPAIJJU.mjs';export{a as ProgressSpinner}from'./chunk-F3EOLTFM.mjs';import'./chunk-IOHULFEP.mjs';export{a as FileUploader}from'./chunk-E3TD3EJQ.mjs';import'./chunk-BSFG32AL.mjs';export{a as onDropOrPaste}from'./chunk-TAYP2OGC.mjs';import'./chunk-J7BCMF23.mjs';import'./chunk-7JE2SRIH.mjs';import'./chunk-MZ4O6LWG.mjs';export{a as FreehandCanvas}from'./chunk-NN6HKMC4.mjs';export{a as getSvgPathFromStroke}from'./chunk-5HXTXIE5.mjs';export{a as useUndoRedo}from'./chunk-MZIQ27JP.mjs';import'./chunk-5MUEJ5WI.mjs';import'./chunk-RO5ZRU3Y.mjs';export{a as GridList}from'./chunk-L6ISOTLH.mjs';import'./chunk-EISLHUT5.mjs';import'./chunk-VPN55UVA.mjs';export{a as ColorSwatchPicker}from'./chunk-AALXW5AP.mjs';export{b as areColorsEqual,a as lightenColor}from'./chunk-HZM2XZP4.mjs';export{a as ComboBox}from'./chunk-G76NJ3IU.mjs';import'./chunk-XKNL5LSL.mjs';import'./chunk-VCIX4HG7.mjs';export{a as DateField}from'./chunk-KSWXLIZH.mjs';import'./chunk-XC5H4EVW.mjs';export{a as DateFormat}from'./chunk-NZNOHFLD.mjs';import'./chunk-O57ZEY3V.mjs';export{a as Disclosure}from'./chunk-3V4W6OGG.mjs';export{b as StatusCard,a as iconMap}from'./chunk-VIMSH5F5.mjs';export{a as DomNodeRenderer}from'./chunk-KBLJ34QI.mjs';export{b as Breadcrumb,a as Breadcrumbs}from'./chunk-LXZOYBTL.mjs';import'./chunk-BFW26T6V.mjs';export{a as ButtonSelect}from'./chunk-A2B2LTRA.mjs';export{b as ToggleButton}from'./chunk-4PZGQTXE.mjs';export{a as Calendar,b as RangeCalendar}from'./chunk-QKNNMY2Q.mjs';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-B5NICAFU.mjs';import'./chunk-KMSNBINF.mjs';import'./chunk-SVV6DLJH.mjs';import'./chunk-UPOQXYUI.mjs';import'./chunk-UTQ7AIPM.mjs';export{a as Checkbox}from'./chunk-E2VXJPSE.mjs';import'./chunk-SYA6LAFU.mjs';import'./chunk-UI4SJCQU.mjs';import'./chunk-OKEXEU3C.mjs';export{a as Code}from'./chunk-RILRXWGE.mjs';export{b as ColorInput,c as IconColorInput,a as IconColorInputButton}from'./chunk-SJRYJGTL.mjs';export{a as useLocalStorage}from'./chunk-ENUU2IVX.mjs';export{b as ModalClose,a as ModalTrigger}from'./chunk-R7Y36JCO.mjs';export{a as DefaultListOption,c as ListBox}from'./chunk-VNJDCKLQ.mjs';import'./chunk-TN7FPPGM.mjs';export{a as isInShadowDOM}from'./chunk-VEIBPZDL.mjs';import'./chunk-NMSOOQB2.mjs';export{d as IconSelect,c as Select}from'./chunk-OGIKNHLU.mjs';export{a as TagGroup}from'./chunk-WGZUNJGH.mjs';import'./chunk-SCUNJNIO.mjs';export{a as SearchInput}from'./chunk-INHZHYOF.mjs';import'./chunk-6F66XVOA.mjs';export{d as Tag}from'./chunk-Z2PHVVX4.mjs';import'./chunk-X5Z54UUE.mjs';import'./chunk-DHZKZ3AV.mjs';import'./chunk-BK3RBPST.mjs';import'./chunk-AC44TKUI.mjs';import'./chunk-NO55UIGK.mjs';export{a as useFilter}from'./chunk-5BAHJXOI.mjs';export{a as useDragAndDrop}from'./chunk-CHBF3XQ6.mjs';import'./chunk-YQFS4UHL.mjs';export{q as UNSAFE_ListBox}from'./chunk-OO3ZVB2T.mjs';import'./chunk-KT4FTBJ2.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-PLRUMLNB.mjs';import'./chunk-AMW7LGCF.mjs';export{d as Autocomplete}from'./chunk-TEQHGF4G.mjs';import'./chunk-BLHN7I5Z.mjs';import'./chunk-D6AOHRAV.mjs';import'./chunk-WID7IWNC.mjs';import'./chunk-X6K4M542.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-6HTOSJOJ.mjs';import'./chunk-64ZD4EKW.mjs';import'./chunk-VQ45RUYJ.mjs';import'./chunk-TGLVJRZE.mjs';import'./chunk-NWYRVUTX.mjs';import'./chunk-B3W7VMJR.mjs';import'./chunk-ILBAZFBL.mjs';export{I as ColorSwatch}from'./chunk-VKWXATZ3.mjs';export{a as parseColor}from'./chunk-FCKJCFMD.mjs';export{a as Accordion,b as AccordionItem}from'./chunk-YK3KAPIK.mjs';export{a as REACT_ARIA_INCOMPATIBLE_KEYS,b as safeSpreadProps}from'./chunk-Q5UMLFN3.mjs';export{a as ActionGroup,b as ActionGroupItem}from'./chunk-UCRJ3AR5.mjs';import'./chunk-L3SNGDBH.mjs';import'./chunk-NGZRN4SF.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-DF2D7NE6.mjs';import'./chunk-ZQOR4LCM.mjs';export{a as Actionable}from'./chunk-Q3FYMLAA.mjs';export{a as AlertDialog}from'./chunk-M7BCIQ2J.mjs';import'./chunk-4SW77SGW.mjs';export{a as TextInput}from'./chunk-3JOOFCEF.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-E6DZSC2G.mjs';import'./chunk-2MS356Q7.mjs';export{a as AudioPlayer}from'./chunk-GLIN7JAI.mjs';import'./chunk-OBEPT4LR.mjs';export{b as IconSlider,a as Slider}from'./chunk-DZJTPX2G.mjs';export{a as ToggleIconButton}from'./chunk-BPLTQDXX.mjs';import'./chunk-7SKQUEHP.mjs';export{a as NumberInput}from'./chunk-IBBDZQPO.mjs';import'./chunk-RXADOJLS.mjs';import'./chunk-MUNFBB7D.mjs';import'./chunk-6CSP66NI.mjs';export{a as PopoverContent}from'./chunk-2UDXAKWA.mjs';import'./chunk-ADEALCJB.mjs';import'./chunk-KCHAWPUN.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-KADD66HZ.mjs';import'./chunk-XDTKLQJB.mjs';import'./chunk-X34RHNLT.mjs';import'./chunk-PQIDCA7P.mjs';import'./chunk-WAFYFWH4.mjs';export{a as Dialog,b as DialogTitle}from'./chunk-JXJZIKEY.mjs';export{a as Drawer}from'./chunk-6PBBHYCA.mjs';export{a as Text}from'./chunk-JTGVIAOK.mjs';import'./chunk-6RN7DKRF.mjs';import'./chunk-XF65LVBQ.mjs';export{b as Modal,e as ModalContent}from'./chunk-L5H5GE3H.mjs';import'./chunk-O23QVPUT.mjs';import'./chunk-SY24O432.mjs';import'./chunk-PSUZMSD3.mjs';import'./chunk-5ANNWMLJ.mjs';export{a as Separator}from'./chunk-JZXLV6JU.mjs';import'./chunk-GFTIEY5K.mjs';import'./chunk-DOFT4BQH.mjs';import'./chunk-UKBBSYRC.mjs';import'./chunk-5MR5L5JZ.mjs';import'./chunk-U6M2GCPD.mjs';export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'./chunk-IDIZSV2Y.mjs';export{a as cleanKeyFromGlobImport}from'./chunk-XXANV3FM.mjs';export{b as legacyMessageIdMap,a as messageIds}from'./chunk-TDRN6VLD.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-UBC32WQB.mjs';import'./chunk-W6QO7FPZ.mjs';import'./chunk-ZANUFNOL.mjs';export{b as ActionButton}from'./chunk-GIUNLLWW.mjs';import'./chunk-G6VX4SU6.mjs';import'./chunk-VE2UA2AH.mjs';export{a as Box}from'./chunk-DIL5HL6K.mjs';export{a as ActionIconButton}from'./chunk-LHLY432N.mjs';export{a as Tooltip}from'./chunk-VQHI3ZCW.mjs';export{a as useIntersectionObserver}from'./chunk-HNKEI45D.mjs';import'./chunk-FP5EWPOF.mjs';export{a as useResizeObserver}from'./chunk-MPJXTZ6L.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-54MWEZUP.mjs';export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'./chunk-CFDIUF4H.mjs';export{a as Portal}from'./chunk-KFJE5ZBK.mjs';export{a as usePortalContainer}from'./chunk-5LGYS5CZ.mjs';import'./chunk-VSGVHATE.mjs';export{f as MotionGlobalConfig,c as ThemeProvider,d as disableAnimations,e as enableAnimations,a as useUserPreferences}from'./chunk-Z7JRM3NW.mjs';import'./chunk-4EAXDHSV.mjs';export{a as directionVar}from'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';import'./chunk-GUPSQSPC.mjs';export{d as I18nProvider}from'./chunk-LJZ7ZS4C.mjs';export{a as useNumberFormatter}from'./chunk-RPIUPWPO.mjs';import'./chunk-XMGPNXZH.mjs';export{c as FrameProvider,a as useFrameDimensions}from'./chunk-W3YUV7IF.mjs';export{a as useDevice}from'./chunk-JOK6I52O.mjs';import'./chunk-N4NDPTX6.mjs';import'./chunk-WD2TPSZV.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-JC22ELJM.mjs';export{b as PortalContainerProvider}from'./chunk-OO7BXL2N.mjs';export{a as Pressable}from'./chunk-ES3IQZSH.mjs';import'./chunk-GPT4DR4P.mjs';import'./chunk-KRVEGSVY.mjs';export{a as FocusScope}from'./chunk-D2NVLRIU.mjs';export{a as useCollator}from'./chunk-USMC34OO.mjs';import'./chunk-A455VRNY.mjs';import'./chunk-FTV6OWMI.mjs';export{a as devWarnOnce}from'./chunk-5IC46G5J.mjs';import'./chunk-QAUEG3EX.mjs';export{a as useDateFormatter}from'./chunk-CV6JQGJ3.mjs';export{b as DeviceProvider,a as DeviceProviderContext}from'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';export{b as useLocale}from'./chunk-N2XGJKZG.mjs';export{b as VisuallyHidden}from'./chunk-DLJHL4V7.mjs';import'./chunk-BIDNNBRG.mjs';import'./chunk-3K2H3JOE.mjs';import'./chunk-4HOAPQDQ.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';export{b as Popover,j as PopoverTrigger}from'./chunk-R5JHN4X6.mjs';export{a as isRect}from'./chunk-ZLDT2KDZ.mjs';import'./chunk-UQJB6AGO.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-IGM72PUL.mjs';import'./chunk-NYNS3UDR.mjs';import'./chunk-VDUFLHKK.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-3ZX5CLZO.mjs';export{a as announce,b as clearAnnouncer,c as destroyAnnouncer}from'./chunk-JJG67M2S.mjs';import'./chunk-3COKCTB2.mjs';import'./chunk-OS6PVCFX.mjs';import'./chunk-A63HMTSM.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-QSFRMY47.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-UR42GQO4.mjs';export{a as invariant}from'./chunk-66CUIXA6.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-WAPBLICF.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-HPUUQKKH.mjs';import'./chunk-ALMW6S4I.mjs';export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'./chunk-RSKKEGJZ.mjs';export{a as useFocusRing}from'./chunk-FDDB7QNQ.mjs';export{d as Focusable}from'./chunk-QVFGEXDU.mjs';import'./chunk-3PBFSDMT.mjs';import'./chunk-LRFFL765.mjs';export{g as useFocusVisible,f as useInteractionModality,j as useKeyboard}from'./chunk-NQVTVL24.mjs';import'./chunk-IIBBR266.mjs';import'./chunk-DPFX25HC.mjs';import'./chunk-4WW2MVQN.mjs';export{a as useObjectRef}from'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-SCJ3RG7B.mjs';import'./chunk-54IAJ3RI.mjs';export{c as mergeProps,b as mergeRefs}from'./chunk-PJINRIA6.mjs';export{a as filterDOMProps}from'./chunk-SVIYLH7R.mjs';export{c as useId}from'./chunk-35AM4QEA.mjs';import'./chunk-6ZQE5SHE.mjs';export{a as getOwnerDocument}from'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';export{a as Avatar}from'./chunk-UBLCUHRL.mjs';import'./chunk-JQQGRJ5J.mjs';export{a as classNames}from'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
|
1
|
+
export{a as isInsideOverlayContent}from'./chunk-A6ZQQSAX.mjs';export{a as isInIframe}from'./chunk-IB23KCIW.mjs';export{a as useMutationObserver}from'./chunk-3HJAQJWA.mjs';export{c as UNSAFE_stately,a as useListData}from'./chunk-SLSJEMQ4.mjs';export{a as useIsFirstRender}from'./chunk-DD5FWULD.mjs';export{a as TreeView}from'./chunk-2KRVQJDA.mjs';export{a as UNSAFE_aria}from'./chunk-OFEX3RHY.mjs';export{a as TaggedPagination}from'./chunk-AYBI4SQV.mjs';export{a as TimeField}from'./chunk-DP76DMVO.mjs';export{b as GlobalToastRegion,a as ToastQueue}from'./chunk-64Y62MDR.mjs';export{a as Skeleton}from'./chunk-F2HESRBD.mjs';export{a as Stepper}from'./chunk-S3LWWMMQ.mjs';export{a as Switch}from'./chunk-TJDL7HT5.mjs';export{f as Cell,c as Column,e as Row,a as Table,d as TableBody,b as TableHeader,g as useTableDragAndDrop}from'./chunk-GJVQMTGA.mjs';export{b as TabItem,a as Tabs}from'./chunk-QMSBDXK6.mjs';import'./chunk-G77E7EDE.mjs';export{a as ProgressBar}from'./chunk-EGSNIMDP.mjs';export{a as RadioGroup}from'./chunk-3P25UGHE.mjs';export{a as Reaction}from'./chunk-RPV3UUIN.mjs';import'./chunk-CE2W5D44.mjs';export{a as ScrollControlButton}from'./chunk-LJAVEZ2H.mjs';export{a as Pagination}from'./chunk-JQSZFPWJ.mjs';export{a as Panel,b as PanelGroup,c as PanelResizeHandle}from'./chunk-RS7TRDRM.mjs';export{a as PointPicker,b as PointPickerContent,c as PointPickerDisplay,d as usePointProximity}from'./chunk-CBQO7JUC.mjs';export{a as useLiveInteractionModality}from'./chunk-QRLUWOGW.mjs';export{a as usePreventFocus}from'./chunk-GKPZBTRE.mjs';export{a as clamp}from'./chunk-JBXZ6ZHP.mjs';export{a as Preview}from'./chunk-RM64ROGL.mjs';export{a as Kbd}from'./chunk-NOTKA3RL.mjs';export{a as Link}from'./chunk-KDNT54DP.mjs';export{a as Markdown}from'./chunk-CRNJAQPI.mjs';export{a as MessageFormat}from'./chunk-QMFL5BMI.mjs';export{a as NumberFormat}from'./chunk-E3FP4B25.mjs';export{a as Group}from'./chunk-TK33MBDB.mjs';export{a as Icon}from'./chunk-WN4QRMX6.mjs';export{a as Image}from'./chunk-7LQTLZJ5.mjs';export{a as ImageDropZone}from'./chunk-A52PIXOO.mjs';export{a as ImageGallery}from'./chunk-Q5SN5AQT.mjs';import'./chunk-CWPFUB7B.mjs';export{a as useImage}from'./chunk-NV7KQVPE.mjs';export{a as InlineAlert}from'./chunk-QPWBJW2X.mjs';export{a as useTextSelection}from'./chunk-PZBJGZ57.mjs';export{g as EMPTY_SELECTION_STATE,l as Editor,e as EditorCore,k as EditorProvider,b as comparePoints,d as docEnd,c as docStart,a as getDocPlainText,i as handleEditorShortcut,j as useEditable,h as useEditor,f as useEditorContext}from'./chunk-5B6263RO.mjs';export{a as isUrl}from'./chunk-JI4SJ53O.mjs';export{a as Toolbar}from'./chunk-AFJ3QV2Q.mjs';import'./chunk-WDWBYTJG.mjs';export{a as capitalize,b as getPlainText}from'./chunk-BPW4QRPV.mjs';export{a as getOsSpecificKeyboardShortcutLabel}from'./chunk-U5XI3CZD.mjs';import'./chunk-TDYBXLYP.mjs';export{a as Menu}from'./chunk-LJM26E7W.mjs';import'./chunk-K3WFKO7R.mjs';import'./chunk-6DVKR25T.mjs';export{a as FileInput}from'./chunk-2TMQUHHU.mjs';export{a as FileList}from'./chunk-ZY3ZKJVD.mjs';import'./chunk-KOPAIJJU.mjs';export{a as ProgressSpinner}from'./chunk-4FN6UAXD.mjs';import'./chunk-A4PXU7GU.mjs';export{a as FileUploader}from'./chunk-23OLSA2X.mjs';import'./chunk-VOWLLVPD.mjs';export{a as onDropOrPaste}from'./chunk-TAYP2OGC.mjs';import'./chunk-4CMATAQ2.mjs';import'./chunk-7JE2SRIH.mjs';import'./chunk-MZ4O6LWG.mjs';export{a as FreehandCanvas}from'./chunk-CMM5JW7L.mjs';export{a as getSvgPathFromStroke}from'./chunk-5HXTXIE5.mjs';export{a as useUndoRedo}from'./chunk-WJBURR7M.mjs';import'./chunk-5MUEJ5WI.mjs';import'./chunk-RO5ZRU3Y.mjs';export{a as GridList}from'./chunk-LZOXWIAS.mjs';import'./chunk-Q7BJGV4I.mjs';import'./chunk-VPN55UVA.mjs';export{a as ColorSwatchPicker}from'./chunk-GAKWWL3Y.mjs';export{b as areColorsEqual,a as lightenColor}from'./chunk-HZM2XZP4.mjs';export{a as ComboBox}from'./chunk-OWXMAVXI.mjs';import'./chunk-HOZPCWCF.mjs';import'./chunk-VCIX4HG7.mjs';export{a as DateField}from'./chunk-JGKBJHX2.mjs';import'./chunk-CGBI7OB5.mjs';export{a as DateFormat}from'./chunk-NZNOHFLD.mjs';import'./chunk-O57ZEY3V.mjs';export{a as Disclosure}from'./chunk-3LS73XVI.mjs';export{b as StatusCard,a as iconMap}from'./chunk-VIMSH5F5.mjs';export{a as DomNodeRenderer}from'./chunk-NYH6JQMA.mjs';export{b as Breadcrumb,a as Breadcrumbs}from'./chunk-ASIKCQC6.mjs';import'./chunk-43U6RZ5C.mjs';export{a as ButtonSelect}from'./chunk-IQ3Z6ZO2.mjs';export{b as ToggleButton}from'./chunk-ZZGRLSEK.mjs';export{a as Calendar,b as RangeCalendar}from'./chunk-6VKIT2PF.mjs';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-PPGEEMZ2.mjs';import'./chunk-XDORZSJQ.mjs';import'./chunk-UTQ7AIPM.mjs';export{a as Checkbox}from'./chunk-ZRPR4V5U.mjs';import'./chunk-BJHDL2HH.mjs';import'./chunk-ZNZBHN2V.mjs';import'./chunk-T7K4WI76.mjs';export{a as Code}from'./chunk-RILRXWGE.mjs';export{b as ColorInput,c as IconColorInput,a as IconColorInputButton}from'./chunk-LNEOOIXS.mjs';export{a as useLocalStorage}from'./chunk-SUJD4QFW.mjs';export{b as ModalClose,a as ModalTrigger}from'./chunk-HOG4QRLG.mjs';export{a as DefaultListOption,c as ListBox}from'./chunk-U6W7D7TT.mjs';import'./chunk-GZTF5YE3.mjs';export{a as isInShadowDOM}from'./chunk-VEIBPZDL.mjs';import'./chunk-NMSOOQB2.mjs';export{d as IconSelect,c as Select}from'./chunk-7EOAYPSZ.mjs';export{a as TagGroup}from'./chunk-AU3GNNEG.mjs';import'./chunk-SCUNJNIO.mjs';export{a as SearchInput}from'./chunk-HOV7MM7M.mjs';import'./chunk-6F66XVOA.mjs';export{d as Tag}from'./chunk-IIYP5UE7.mjs';import'./chunk-X5Z54UUE.mjs';import'./chunk-OY57K37D.mjs';import'./chunk-TLUB6FCT.mjs';import'./chunk-V6ZIMZ53.mjs';import'./chunk-NO55UIGK.mjs';export{a as useFilter}from'./chunk-5BAHJXOI.mjs';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';export{d as Autocomplete}from'./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-ILBAZFBL.mjs';export{I as ColorSwatch}from'./chunk-W4DOEGYH.mjs';export{a as parseColor}from'./chunk-FCKJCFMD.mjs';export{a as Accordion,b as AccordionItem}from'./chunk-2CFMM7MZ.mjs';export{a as REACT_ARIA_INCOMPATIBLE_KEYS,b as safeSpreadProps}from'./chunk-Q5UMLFN3.mjs';export{a as ActionGroup,b as ActionGroupItem}from'./chunk-AANAI2XF.mjs';import'./chunk-L3SNGDBH.mjs';import'./chunk-NGZRN4SF.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-DF2D7NE6.mjs';import'./chunk-ZQOR4LCM.mjs';export{a as Actionable}from'./chunk-ZOCNDYUQ.mjs';export{a as AlertDialog}from'./chunk-QYU7CWJD.mjs';import'./chunk-4SW77SGW.mjs';export{a as TextInput}from'./chunk-YI5VNFT4.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-TUSG5ZRW.mjs';import'./chunk-2MS356Q7.mjs';export{a as AudioPlayer}from'./chunk-OJIOLYTM.mjs';import'./chunk-5YV74V36.mjs';export{b as IconSlider,a as Slider}from'./chunk-GHKMHXQ3.mjs';export{a as ToggleIconButton}from'./chunk-ACHYZYVA.mjs';import'./chunk-7SKQUEHP.mjs';export{a as NumberInput}from'./chunk-HVSDXCZP.mjs';import'./chunk-HI56YXPJ.mjs';import'./chunk-MUNFBB7D.mjs';import'./chunk-LGE4377M.mjs';export{a as PopoverContent}from'./chunk-C6TD53KY.mjs';import'./chunk-6IK2TDLH.mjs';import'./chunk-KCHAWPUN.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-DNZMQ7EA.mjs';import'./chunk-XDTKLQJB.mjs';import'./chunk-NIAMDJYU.mjs';import'./chunk-YYOOJMQZ.mjs';import'./chunk-WAFYFWH4.mjs';export{a as Dialog,b as DialogTitle}from'./chunk-UC6WAEPH.mjs';export{a as Drawer}from'./chunk-QVXIFV7W.mjs';export{a as Text}from'./chunk-QMP72J5L.mjs';import'./chunk-6RN7DKRF.mjs';import'./chunk-XF65LVBQ.mjs';export{b as Modal,e as ModalContent}from'./chunk-G2RVM2KB.mjs';import'./chunk-O23QVPUT.mjs';import'./chunk-L4MQCPRT.mjs';import'./chunk-3IHIKAT4.mjs';import'./chunk-5ANNWMLJ.mjs';export{a as Separator}from'./chunk-JZXLV6JU.mjs';import'./chunk-GFTIEY5K.mjs';import'./chunk-3EFE2WAJ.mjs';import'./chunk-PTL6NSYA.mjs';import'./chunk-SQPWV3OX.mjs';import'./chunk-EJGGWOY5.mjs';export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'./chunk-JYWJE6L5.mjs';export{a as cleanKeyFromGlobImport}from'./chunk-XXANV3FM.mjs';export{b as legacyMessageIdMap,a as messageIds}from'./chunk-TDRN6VLD.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-TMGB4HZ7.mjs';import'./chunk-W6QO7FPZ.mjs';import'./chunk-ZANUFNOL.mjs';export{b as ActionButton}from'./chunk-P3RRGPNM.mjs';import'./chunk-G6VX4SU6.mjs';import'./chunk-VE2UA2AH.mjs';export{a as Box}from'./chunk-DIL5HL6K.mjs';export{a as ActionIconButton}from'./chunk-L7GYT3MC.mjs';export{a as Tooltip}from'./chunk-WSDEMATI.mjs';export{a as useIntersectionObserver}from'./chunk-3JHXI33A.mjs';import'./chunk-FP5EWPOF.mjs';export{a as useResizeObserver}from'./chunk-3A7ZISTE.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-IHCKLMWD.mjs';import'./chunk-46UWKP7W.mjs';export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'./chunk-CFDIUF4H.mjs';export{a as Portal}from'./chunk-G2IYZES5.mjs';export{a as usePortalContainer}from'./chunk-V3DTS6FF.mjs';import'./chunk-LPHX7UMQ.mjs';export{f as MotionGlobalConfig,c as ThemeProvider,d as disableAnimations,e as enableAnimations,a as useUserPreferences}from'./chunk-MQCTOCK2.mjs';import'./chunk-4EAXDHSV.mjs';export{a as directionVar}from'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';import'./chunk-GUPSQSPC.mjs';export{d as I18nProvider}from'./chunk-LJZ7ZS4C.mjs';export{a as useNumberFormatter}from'./chunk-RPIUPWPO.mjs';import'./chunk-XMGPNXZH.mjs';export{c as FrameProvider,a as useFrameDimensions}from'./chunk-M3NJURGR.mjs';export{a as useDevice}from'./chunk-JOK6I52O.mjs';import'./chunk-RKPWFZB4.mjs';import'./chunk-NIGOM3FD.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-RGWXVYDG.mjs';export{b as PortalContainerProvider}from'./chunk-OO7BXL2N.mjs';export{a as Pressable}from'./chunk-6V7S5IG5.mjs';import'./chunk-PGDGNOYE.mjs';import'./chunk-KRVEGSVY.mjs';export{a as FocusScope}from'./chunk-TZSRU3GG.mjs';export{a as useCollator}from'./chunk-USMC34OO.mjs';import'./chunk-A455VRNY.mjs';import'./chunk-QSNYILCF.mjs';export{a as devWarnOnce}from'./chunk-5IC46G5J.mjs';import'./chunk-QAUEG3EX.mjs';export{a as useDateFormatter}from'./chunk-CV6JQGJ3.mjs';export{b as DeviceProvider,a as DeviceProviderContext}from'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';export{b as useLocale}from'./chunk-N2XGJKZG.mjs';export{b as VisuallyHidden}from'./chunk-I5YPTKMM.mjs';import'./chunk-BIDNNBRG.mjs';import'./chunk-3K2H3JOE.mjs';import'./chunk-CPX5CB4L.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';export{b as Popover,j as PopoverTrigger}from'./chunk-QDMG3P5Z.mjs';export{a as isRect}from'./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';export{a as announce,b as clearAnnouncer,c as destroyAnnouncer}from'./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';export{a as invariant}from'./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';export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'./chunk-3K6XNSYE.mjs';export{a as useFocusRing}from'./chunk-ELW6SXDM.mjs';export{d as Focusable}from'./chunk-PV4E7XDP.mjs';import'./chunk-2PTLJDIT.mjs';import'./chunk-LRFFL765.mjs';export{g as useFocusVisible,f as useInteractionModality,j as useKeyboard}from'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-4WW2MVQN.mjs';export{a as useObjectRef}from'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.mjs';import'./chunk-54IAJ3RI.mjs';export{g as mergeProps,f as mergeRefs,c as useId}from'./chunk-V2C4UDOC.mjs';export{a as filterDOMProps}from'./chunk-SVIYLH7R.mjs';import'./chunk-6ZQE5SHE.mjs';export{a as getOwnerDocument}from'./chunk-TYOEGCPS.mjs';import'./chunk-RMUV6NJJ.mjs';export{a as Avatar}from'./chunk-UBLCUHRL.mjs';import'./chunk-JQQGRJ5J.mjs';export{a as classNames}from'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/react-aria.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-OFEX3RHY.mjs';import'./chunk-2PH5GN2S.mjs';export{a as useTextField}from'./chunk-PTL6NSYA.mjs';import'./chunk-SQPWV3OX.mjs';import'./chunk-EJGGWOY5.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-TMGB4HZ7.mjs';import'./chunk-W6QO7FPZ.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-XBBPWSJI.mjs';export{b as useFocusManager}from'./chunk-TZSRU3GG.mjs';import'./chunk-Y6PZKRST.mjs';import'./chunk-BPXZ6J5G.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5NVCSLXT.mjs';export{a as useButton}from'./chunk-TQMBJFQC.mjs';import'./chunk-PV4E7XDP.mjs';export{b as useFocusWithin}from'./chunk-2PTLJDIT.mjs';import'./chunk-AIG23SN5.mjs';import'./chunk-MMLAKHLR.mjs';import'./chunk-PITIJLE3.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-GOCBU65X.mjs';import'./chunk-2MNK24YJ.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';
|
package/dist/utils/dom.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'../chunk-CFDIUF4H.mjs';import'../chunk-
|
|
1
|
+
export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'../chunk-CFDIUF4H.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-5NVCSLXT.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.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 +1 @@
|
|
|
1
|
-
export{a as isInShadowDOM}from'../chunk-VEIBPZDL.mjs';import'../chunk-
|
|
1
|
+
export{a as isInShadowDOM}from'../chunk-VEIBPZDL.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-5NVCSLXT.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.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';
|
package/dist/utils/keyboards.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getOsSpecificKeyboardShortcutLabel}from'../chunk-
|
|
1
|
+
export{a as getOsSpecificKeyboardShortcutLabel}from'../chunk-U5XI3CZD.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-5NVCSLXT.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.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';
|
package/dist/utils/objects.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'../chunk-
|
|
1
|
+
export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'../chunk-3K6XNSYE.mjs';import'../chunk-XPISSX5R.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseline-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Baseline UI is a set of accessible components and tools for building accessible, customizable, production-ready user interfaces",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"perfect-freehand": "^1.2.3",
|
|
32
32
|
"react-resizable-panels": "4.11.2",
|
|
33
33
|
"use-sync-external-store": "1.6.0",
|
|
34
|
-
"@baseline-ui/css": "3.
|
|
35
|
-
"@baseline-ui/
|
|
36
|
-
"@baseline-ui/
|
|
34
|
+
"@baseline-ui/css": "3.10.0",
|
|
35
|
+
"@baseline-ui/icons": "3.10.0",
|
|
36
|
+
"@baseline-ui/tokens": "3.10.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0",
|
package/sbom.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.6",
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:1b928787-7206-4632-a5b4-8ba1efb64afe",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-
|
|
8
|
+
"timestamp": "2026-11-03T19:07:57.942Z",
|
|
9
9
|
"lifecycles": [
|
|
10
10
|
{
|
|
11
11
|
"phase": "pre-build"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"component": {
|
|
24
24
|
"type": "library",
|
|
25
25
|
"name": "@baseline-ui/core",
|
|
26
|
-
"version": "3.
|
|
27
|
-
"purl": "pkg:npm/@baseline-ui/core@3.
|
|
28
|
-
"bom-ref": "pkg:npm/@baseline-ui/core@3.
|
|
26
|
+
"version": "3.10.0",
|
|
27
|
+
"purl": "pkg:npm/@baseline-ui/core@3.10.0",
|
|
28
|
+
"bom-ref": "pkg:npm/@baseline-ui/core@3.10.0",
|
|
29
29
|
"licenses": [
|
|
30
30
|
{
|
|
31
31
|
"license": {
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
],
|
|
596
596
|
"dependencies": [
|
|
597
597
|
{
|
|
598
|
-
"ref": "pkg:npm/@baseline-ui/core@3.
|
|
598
|
+
"ref": "pkg:npm/@baseline-ui/core@3.10.0",
|
|
599
599
|
"dependsOn": [
|
|
600
600
|
"pkg:npm/%40internationalized/date@3.12.2",
|
|
601
601
|
"pkg:npm/%40vanilla-extract/dynamic@2.1.5",
|
package/dist/chunk-2SKD7TKS.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$8}from'./chunk-NV7KQVPE.mjs';import {a as a$d}from'./chunk-F3EOLTFM.mjs';import {a as a$5}from'./chunk-BSFG32AL.mjs';import {a as a$4}from'./chunk-TAYP2OGC.mjs';import {c as c$2}from'./chunk-5MUEJ5WI.mjs';import {b as b$1,c as c$1,a as a$e}from'./chunk-RO5ZRU3Y.mjs';import {B}from'./chunk-TGLVJRZE.mjs';import {a as a$3}from'./chunk-5MR5L5JZ.mjs';import {b,c as c$3}from'./chunk-IDIZSV2Y.mjs';import {a as a$a,b as b$3}from'./chunk-GIUNLLWW.mjs';import {a as a$c}from'./chunk-DIL5HL6K.mjs';import {b as b$2}from'./chunk-DLJHL4V7.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {a as a$b}from'./chunk-RSKKEGJZ.mjs';import {a as a$6}from'./chunk-FDDB7QNQ.mjs';import {a as a$7}from'./chunk-LRFFL765.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a as a$2}from'./chunk-35AM4QEA.mjs';import {b as b$4}from'./chunk-TYOEGCPS.mjs';import {a as a$9}from'./chunk-4QEH5CGK.mjs';import D,{useReducer,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var S=D.forwardRef(({className:t,style:n,isInline:r=true,accept:o="image/*",defaultImageSrc:g,imageSrc:i,imageAlt:ee,pickerButtonLabel:te,isDisabled:a$f,onDrop:re,onPaste:oe,includeCheckeredBackground:se=true,"data-block-id":ne,"data-block-class":ae,pickerButtonStyle:ie,pickerButtonClassName:le,footerClassName:ue,footerStyle:fe,clearLabel:y,placeholder:P,description:b$4,labelStyle:me,labelClassName:pe,maxFileSize:H,onFileSizeError:ce,onFileTypeError:de,...u},ge)=>{let p=D.useRef(null),F=D.useRef(null),{formatMessage:ye}=b(),Pe=e=>!H||e.size<=H?true:(ce?.(e),false),be=e=>Ee(e,o)?true:(de?.(e),false),h=e=>be(e)&&Pe(e),[I,c$3]=a(i,g||null,e=>{a$1(typeof e!="string"),u.onValueChange?.(e?[e]:[]);}),f=Oe(I),[Fe,he]=useReducer(e=>e+1,0);a$2(()=>{F.current&&ke(F.current,I);},[I,Fe]);let{fieldProps:Ie,labelProps:Le,descriptionProps:Ce}=a$3({...u,description:b$4,ref:p}),{dropProps:Re,isDropTarget:L}=B({ref:p,isDisabled:a$f,onDrop:async e=>{let s=await a$4({items:e.items});s.length&&h(s[0])&&c$3(s[0]),re?.(e);},...u}),{clipboardProps:ve}=a$5({onPaste:async e=>{if(a$f)return;let s=await a$4({items:e});s.length&&h(s[0])&&c$3(s[0]),oe?.(e);},...u}),we=()=>{c$3(null);},Te={type:"file",onChange:e=>{let s=[...e.target.files];s.length&&h(s[0])?c$3(s[0]):s.length&&(e.target.value=""),he(),u.onChange?.(e);},accept:o,disabled:a$f,name:u.name},{focusProps:Ze,isFocused:Be,isFocusVisible:C}=a$6({within:true}),{hoverProps:De,isHovered:N}=a$7({isDisabled:a$f}),{imgProps:He,isLoading:Ne,isLoaded:R}=a$8({src:f,alt:ee||""}),V=te||ye(We.selectImage),Ve=f&&!u["aria-label"]&&!u["aria-labelledby"]?{"aria-label":V}:void 0,xe={label:V,onPress:()=>p.current?.click(),variant:"secondary",isDisabled:a$f,excludeFromTabOrder:true,className:a$9(a$a({isFocusVisible:C}),{[b$1]:L&&!a$f},le),style:ie},Ae=a$b({"data-loaded":R,"data-block-id":ne,"data-block-class":ae,"data-hovered":N,"data-focused":Be,"data-drop-target":L,"data-disabled":a$f,"data-focus-visible":C});return jsxs(a$c,{...Ae,className:a$9("BaselineUI-ImageDropZone",t),display:"flex",flexDirection:"column",alignItems:"center",style:n,ref:ge,children:[jsxs("label",{...c(Re,De,Ze,Le),className:a$9(a$e({isInline:r,isHovered:N,isDisabled:a$f,hasLoadedImage:!!f&&R,showFocusRing:L||!!f&&C}),pe),style:me,ref:p,children:[jsx(b$2,{children:jsx("input",{...c(Ie,ve,Te,Ve),ref:F})}),!f&&jsx(b$3,{...xe}),!!f&&(Ne?jsx(a$d,{}):jsx("img",{className:c$1({isInline:r,isDisabled:a$f,hasLoadedImage:!!f&&R&&se}),...He}))]}),P||y?jsx("div",{style:fe,className:a$9(c$2({isInline:r,isDisabled:a$f}),ue),children:(f||!P)&&y?jsx(b$3,{size:"sm",variant:"ghost",label:y,isDisabled:a$f,onPress:we}):jsx(b$3,{size:"sm",variant:"ghost",label:P,isDisabled:true})}):null,!!b$4&&jsx(b$2,{...Ce,children:b$4})]})});S.displayName="ImageDropZone";function ke(t,n){if(!n||typeof n=="string")t.value="";else if(t.files?.[0]!==n){let{DataTransfer:r}=b$4(t);if(!r)return;let o=new r;o.items.add(n),t.files=o.files;}}function Oe(t){let[n,r]=useState();if(a$2(()=>{if(!t||typeof t=="string"){r(void 0);return}let o=URL.createObjectURL(t);return r(o),()=>{URL.revokeObjectURL(o);}},[t]),!!t)return typeof t=="string"?t:n}function Ee(t,n){if(!n)return true;let r=n.split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(r.length===0)return true;let o=t.type.toLowerCase(),g=t.name.toLowerCase();return r.some(i=>i==="*/*"?true:i.startsWith(".")?g.endsWith(i):o?i.endsWith("/*")?o.startsWith(i.slice(0,-1)):o===i:true)}var We=c$3({selectImage:{defaultMessage:"Select Image",id:"bui.imageDropZone.selectImage"}});export{S as a};
|
package/dist/chunk-35AM4QEA.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1,k}from'./chunk-TYOEGCPS.mjs';import {a}from'./chunk-RMUV6NJJ.mjs';import R,{useState,useRef,useCallback,useEffect}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var s=typeof document<"u"?R.useLayoutEffect:()=>{};function y(l){let[n,o]=useState(l),u=useRef(n),e=useRef(null),t=useRef(()=>{if(!e.current)return;let r=e.current.next();if(r.done){e.current=null;return}u.current===r.value?t.current():o(r.value);});s(()=>{u.current=n,e.current&&t.current();});let f=useCallback(r=>{e.current=r(u.current),t.current();},[t]);return [n,f]}var v=!!(typeof window<"u"&&window.document&&window.document.createElement),c=new Map,i;typeof FinalizationRegistry<"u"&&(i=new FinalizationRegistry(l=>{c.delete(l);}));var d=new WeakMap;function V(l){let[n,o]=useState(l),u=useRef(null),e=a(n),t=useRef(null),f=d.get(t);if(i&&f!==e&&(f!=null&&i.unregister(t),i.register(t,e,t),d.set(t,e)),v){let r=c.get(e);r&&!r.includes(u)?r.push(u):c.set(e,[u]);}return s(()=>{let r=e;return ()=>{i&&(i.unregister(t),d.delete(t)),c.delete(r);}},[e]),useEffect(()=>{let r=u.current;return r&&o(r),()=>{r&&(u.current=null);}}),e}function A(l,n){if(l===n)return l;let o=c.get(l);if(o)return o.forEach(e=>e.current=n),n;let u=c.get(n);return u?(u.forEach(e=>e.current=l),l):n}function H(l=[],n){let o=V(),[u,e]=y(o),t=useCallback(()=>{let f=a$1(n?.current);e(function*(){yield o,yield k(o,f)?o:void 0;});},[o,e,n]);return s(t,[o,t,...l]),u}export{s as a,y as b,V as c,A as d,H as e};
|
package/dist/chunk-3V4W6OGG.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-VIMSH5F5.mjs';import {a as a$1}from'./chunk-JZXLV6JU.mjs';import {a as a$8}from'./chunk-DIL5HL6K.mjs';import {a as a$a}from'./chunk-UR42GQO4.mjs';import {a as a$9}from'./chunk-FPM5UJRF.mjs';import {a as a$6}from'./chunk-ALMW6S4I.mjs';import {a as a$7}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-FDDB7QNQ.mjs';import {a as a$4}from'./chunk-LRFFL765.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {c as c$1,a as a$b}from'./chunk-35AM4QEA.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {CaretUpIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon,CircleFilledIcon,ErrorCircleIcon,WarningIcon}from'@baseline-ui/icons/16';import W,{useRef,useCallback,useEffect}from'react';import {flushSync}from'react-dom';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function _(n,r,s){let{isDisabled:i}=n,a=c$1(),o=c$1(),p=b$1(),t=useRef(null),f=useCallback(()=>{t.current=requestAnimationFrame(()=>{s.current&&s.current.setAttribute("hidden","until-found");}),flushSync(()=>{r.toggle();});},[s,r]);a$a(s,"beforematch",f);let l=useRef(null);return a$b(()=>{if(t.current&&cancelAnimationFrame(t.current),s.current&&!p){let e=s.current;l.current==null||typeof e.getAnimations!="function"?r.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):r.isExpanded!==l.current&&(r.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(d=>d.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto");}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px"),Promise.all(e.getAnimations().map(d=>d.finished)).then(()=>e.setAttribute("hidden","until-found")).catch(()=>{}))),l.current=r.isExpanded;}},[i,s,r.isExpanded,p]),useEffect(()=>()=>{t.current&&cancelAnimationFrame(t.current);},[]),{buttonProps:{id:a,"aria-expanded":r.isExpanded,"aria-controls":o,onPress:e=>{!i&&e.pointerType!=="keyboard"&&r.toggle();},isDisabled:i,onPressStart(e){e.pointerType==="keyboard"&&!i&&r.toggle();}},panelProps:{id:o,role:"group","aria-labelledby":a,"aria-hidden":!r.isExpanded,hidden:p?!r.isExpanded:void 0}}}function g(n){let[r,s]=a$9(n.isExpanded,n.defaultExpanded||false,n.onExpandedChange),i=useCallback(()=>{s(true);},[s]),a=useCallback(()=>{s(false);},[s]),o=useCallback(()=>{s(!r);},[s,r]);return {isExpanded:r,setExpanded:s,expand:i,collapse:a,toggle:o}}var M=a({defaultClassName:"wf9zfn0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6mh _1yep5z6mf",variantClassNames:{variant:{active:"_1yep5z613y _1yep5z612s",warning:"_1yep5z613y _1yep5z612s",error:"_1yep5z613y _1yep5z612s",success:"_1yep5z613y _1yep5z612s",denied:"_1yep5z613y _1yep5z612s","warning-tinted":"_1yep5z613n _1yep5z612g","error-tinted":"_1yep5z613d _1yep5z6126","active-tinted":"_1yep5z613s _1yep5z612l","success-tinted":"_1yep5z613i _1yep5z612b","denied-tinted":"_1yep5z613z _1yep5z612v"}},defaultVariants:{},compoundVariants:[]}),k=a({defaultClassName:"wf9zfnb _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6me _1yep5z6m3 _1yep5z6lq _1yep5z6m7 _1yep5z6m8 _1yep5z6m5",variantClassNames:{isFocusVisible:{true:"_1yep5z618s _1yep5z614w _1yep5z618u"},isHovered:{true:"wf9zfnd"},variant:{active:"wf9zfne",warning:"wf9zfnf",error:"wf9zfng",success:"wf9zfnh",denied:"wf9zfni","warning-tinted":"wf9zfnj","error-tinted":"wf9zfnk","active-tinted":"wf9zfnl","success-tinted":"wf9zfnm","denied-tinted":"wf9zfnn"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocusVisible:false},"_1yep5z61va _1yep5z61v9"],[{variant:"active",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"warning",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"error",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"success",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"denied",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"active-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61rc"],[{variant:"warning-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61r7"],[{variant:"error-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61qx"],[{variant:"success-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61r2"],[{variant:"denied-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61ri"]]}),L="wf9zfno",q={active:"wf9zfnp",warning:"wf9zfnq",error:"wf9zfnr",success:"wf9zfns",denied:"wf9zfnt","active-tinted":"wf9zfnu","warning-tinted":"wf9zfnv","error-tinted":"wf9zfnw","success-tinted":"wf9zfnx","denied-tinted":"wf9zfny"},O=a({defaultClassName:"wf9zfnz _1yep5z6f9",variantClassNames:{isPopupOpen:{true:"wf9zfn10",false:"wf9zfn11"}},defaultVariants:{},compoundVariants:[]});var te={warning:WarningIcon,error:ErrorCircleIcon,info:CircleFilledIcon,success:CheckmarkIcon},G=W.forwardRef(({className:n,style:r,children:s,title:i,description:a,variant:o="active",icon:p=te[o],headerClassName:t,headerStyle:f,panelClassName:l,panelStyle:e,shouldTruncateTitle:d,...y},m)=>{let u=g(y),v=useRef(null),b=useRef(null),{buttonProps:K,panelProps:Q}=_(y,u,b);return jsxs("div",{className:a$2(M({variant:o}),"BaselineUI-Disclosure",n),style:r,ref:m,"data-expanded":u.isExpanded||void 0,children:[jsx(J,{ref:v,...K,variant:o,title:i,description:a,icon:p,className:t,style:f,isExpanded:u.isExpanded,shouldTruncateTitle:d}),jsxs("div",{ref:b,...Q,className:a$2(L,"BaselineUI-Disclosure-Panel",l),style:e,"data-expanded":u.isExpanded||void 0,children:[jsx(a$1,{className:q[o]}),s]})]})});G.displayName="Disclosure";var J=W.forwardRef(({className:n,style:r,variant:s="active",icon:i,title:a,description:o,shouldTruncateTitle:p,...t},f)=>{let{isFocusVisible:l,focusProps:e}=a$3(),{hoverProps:d,isHovered:y}=a$4({isDisabled:t.isDisabled}),m=a$5(f),{buttonProps:u,isPressed:v}=a$6(t,m),b$1=a$7({"data-focus-visible":l,"data-hovered":y,"data-pressed":v});return jsx("button",{...c(u,e,d),ref:m,className:a$2(k({isFocusVisible:l,isHovered:y,variant:s}),"BaselineUI-Disclosure-Header",n),style:r,...b$1,children:jsx(b,{title:a,description:o,variant:s,icon:i,shouldTruncateTitle:p,renderTrailingElement:()=>jsx(a$8,{padding:"sm",display:"inline-flex",children:jsx(CaretUpIcon,{size:12,className:O({isPopupOpen:t.isExpanded})})}),style:{border:"none"}})})});J.displayName="DisclosureHeader";export{G as a};
|
package/dist/chunk-4HOAPQDQ.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {i}from'./chunk-R5JHN4X6.mjs';import {a as a$1}from'./chunk-VDUFLHKK.mjs';import {a as a$5}from'./chunk-HPUUQKKH.mjs';import {a as a$2}from'./chunk-ALMW6S4I.mjs';import {a as a$3}from'./chunk-FDDB7QNQ.mjs';import {a as a$4}from'./chunk-LRFFL765.mjs';import {c,b,a as a$6}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-TYOEGCPS.mjs';import R,{useState,useEffect,useContext}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function M(t,e){let o=t?.getRootNode();return (o&&"getElementById"in o?o:a(t)).getElementById(e)}function H(t,e){let o=e.split(/\s+/).filter(Boolean).map(n=>M(t,n)?.textContent).filter(n=>!!n);return o.length>0?o.join(" "):void 0}function d(t,e,o){let{isSelected:n}=e,{isPressed:s,buttonProps:r}=a$2({...t,onPress:a$6(e.toggle,t.onPress)},o);return {isPressed:s,isSelected:n,isDisabled:t.isDisabled||false,buttonProps:c(r,{"aria-pressed":n})}}function Z({tooltip:t,"aria-label":e,"aria-labelledby":o},n){let[s,r]=useState(e||"");useEffect(()=>{o?r(H(n.current,o)??e??""):e&&r(e);},[o,n,e]);let{tooltipProps:i}=a$1({label:s,tooltip:t});return {tooltipProps:i}}var _=t=>{let e=R.useRef(null),{ref:o,...n}=useContext(i),{buttonProps:s,isPressed:r}=a$2(c(t,n),e),{isFocusVisible:i$1,isFocused:l,focusProps:p}=a$3(),{hoverProps:c$1,isHovered:a}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(a$5(t.elementType,t.isDisabled),s,p,c$1),isPressed:r,ref:b(e,o||null),isFocusVisible:i$1,isFocused:l,isHovered:a,uiStateOptions:{isHovered:a,isFocused:l,isPressed:r,isDisabled:t.isDisabled,isFocusVisible:i$1}}},$=(t,e)=>{let o=R.useRef(null),{ref:n,...s}=useContext(i),{buttonProps:r,isPressed:i$1}=d(c(t,s),e,o);(r.role==="radio"||r.role==="checkbox")&&(r["aria-pressed"]=void 0);let{isFocusVisible:l,isFocused:p,focusProps:c$1}=a$3(),{hoverProps:a,isHovered:A}=a$4({isDisabled:t.isDisabled});return {buttonProps:c(a$5(t.elementType,t.isDisabled),r,c$1,a),isPressed:i$1,ref:b(o,n||null),isFocusVisible:l,isFocused:p,isHovered:A,uiStateOptions:{isHovered:A,isFocused:p,isPressed:i$1,isDisabled:t.isDisabled,isFocusVisible:l,isSelected:e.isSelected}}};export{M as a,H as b,Z as c,_ as d,$ as e};
|
package/dist/chunk-5GZAORDK.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$5,b as b$3,e}from'./chunk-X5Z54UUE.mjs';import {a as a$1}from'./chunk-ALMW6S4I.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-FDDB7QNQ.mjs';import {a as a$3}from'./chunk-LRFFL765.mjs';import {f}from'./chunk-NQVTVL24.mjs';import {b as b$2,c}from'./chunk-PJINRIA6.mjs';import {a,b}from'./chunk-TYOEGCPS.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {ArrowDownCircleFilledIcon}from'@baseline-ui/icons/16';import {AnimatePresence,motion}from'motion/react';import s,{useCallback,useEffect}from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var I="_8kqf970 _1yep5z6q4 _1yep5z6q5 _1yep5z6q6 _1yep5z6mm _1yep5z6mn _1yep5z6mo _1yep5z6oy _1yep5z6oz _1yep5z6p0 _1yep5z615r _1yep5z615s _1yep5z615t _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z616i _1yep5z616j _1yep5z616k _1yep5z6zp _1yep5z6vy _1yep5z6vz _1yep5z6w0 _1yep5z618o _1yep5z610h";var M=2;function F(e){let{body:o}=e,a=b(o).getComputedStyle(o).overflowY;return a==="auto"||a==="scroll"?{eventTarget:o,scrollElement:o}:{eventTarget:e,scrollElement:e.scrollingElement??e.documentElement}}var D=s.forwardRef(({className:e$1,style:o,hideForKeyboard:a$7,scrollRef:r,label:N,delay:d=1500,smoothScroll:O=true,"data-block-id":X,"data-block-class":U},V)=>{let g=s.useRef(null),c$1=s.useRef(null),W=f(),[j,v]=s.useState(false),m=useCallback(()=>r?.current??F(a(c$1.current)).scrollElement,[r]),n=useCallback(()=>{let t=m();return b(t).getComputedStyle(t).flexDirection==="column-reverse"?t.scrollTop+M>=0:t.scrollTop+t.clientHeight+M>=t.scrollHeight},[m]),G=b$1(),[J,_]=s.useState(()=>G||r?true:n()),{buttonProps:K,isPressed:Q}=a$1({onPress:()=>{let t=m();t.scrollTo({top:t.scrollHeight,behavior:O?"smooth":"auto"});}},g),{focusProps:Z,isFocused:$,isFocusVisible:z}=a$2(),{hoverProps:tt,isHovered:S}=a$3({}),et=a$4({"data-block-id":X,"data-block-class":U,"data-pressed":Q,"data-focus-visible":z,"data-hovered":S,"data-focused":$});return useEffect(()=>{_(n());},[n]),useEffect(()=>{let t=F(a(c$1.current)),l=r?.current??t.eventTarget,ot="onscrollend"in b(r?.current??t.scrollElement),u,p=()=>{clearTimeout(u),u=setTimeout(()=>{v(false),_(n());},d);},C=()=>{v(true),ot||p();};return l.addEventListener("scroll",C),l.addEventListener("scrollend",p),()=>{clearTimeout(u),l.removeEventListener("scroll",C),l.removeEventListener("scrollend",p);}},[r,d,n]),jsxs(Fragment,{children:[jsx("span",{hidden:true,ref:c$1}),jsx(AnimatePresence,{initial:false,children:(!a$7||W!=="keyboard")&&!j&&!J?jsxs(motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...c(K,Z,tt,et),className:a$6(I,b$3({isFocusVisible:z,variant:"high-contrast",isHovered:S}),e({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e$1),style:o,ref:b$2(V,g),children:[jsx(ArrowDownCircleFilledIcon,{size:16,className:a$5({variant:"high-contrast"})}),N]}):null})]})});D.displayName="ScrollControlButton";export{D as a};
|
package/dist/chunk-6PBBHYCA.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-JTGVIAOK.mjs';import {a as a$1}from'./chunk-PSUZMSD3.mjs';import {a as a$7}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$3}from'./chunk-DIL5HL6K.mjs';import {a as a$6}from'./chunk-LHLY432N.mjs';import {d}from'./chunk-4EAXDHSV.mjs';import {a as a$2}from'./chunk-FDDB7QNQ.mjs';import {b as b$1,c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import h from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var z=a({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6mh _1yep5z6mf _1yep5z6hg _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm",variantClassNames:{background:{subtle:"_1yep5z612s",medium:"_1yep5z612t"},isFocusVisible:{true:"_1yep5z618q _1yep5z618s _1yep5z618t _1yep5z614w"}},defaultVariants:{},compoundVariants:[]}),_="siobe24",v="siobe25";var x=h.forwardRef(({className:C,style:D,children:k,background:t="medium",title:i,action:p,"data-block-id":N,"data-block-class":P,onCloseRequest:R,contentStyle:B,contentClassName:j,closeLabel:I,...F},M)=>{let{formatMessage:T}=b(),m=h.useRef(null),{dialogProps:V,titleProps:q}=a$1(F,m),{focusProps:A,isFocusVisible:L}=a$2();return jsxs("div",{...c(V,A),className:a$5(z({background:t,isFocusVisible:L}),"BaselineUI-Drawer",C),"data-block-id":N,"data-block-class":P,style:D,ref:b$1(M,m),children:[jsxs(a$3,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:_,children:[jsx(a$4,{type:"title",size:"sm",elementType:i?"h2":"span",...q,className:a$5(d,v),children:i}),jsxs(a$3,{children:[p?jsx(a$6,{...p,variant:"secondary"}):null,jsx(a$6,{variant:"secondary",size:"md",icon:XIcon,onPress:R,"aria-label":I??T(E.close)})]})]}),jsx(a$7,{variant:t==="subtle"?"primary":"secondary"}),jsx(a$3,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...B},className:a$5(j,"BaselineUI-Drawer-Content"),children:k})]})});x.displayName="Drawer";var E=c$1({close:{id:"bui.drawer.close",defaultMessage:"Close"}});export{x as a};
|
package/dist/chunk-B3W7VMJR.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-JQQGRJ5J.mjs';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var _="_1yep5z6ez _1yep5z6dy",z=a({defaultClassName:"_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6it _1yep5z6iu _1yep5z6iv z9nup88",variantClassNames:{labelPosition:{end:"_1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6w1 _1yep5z6w2 _1yep5z6w3",start:"_1yep5z6166 _1yep5z6167 _1yep5z6168 _1yep5z617i _1yep5z617j _1yep5z617k"}},defaultVariants:{},compoundVariants:[]}),t=a({defaultClassName:"_16vugd03 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6mh _1yep5z6mf _1yep5z6hi _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6fc _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6m5 _1yep5z6lq _1yep5z6m0",variantClassNames:{isIndeterminate:{true:"_1yep5z618x _1yep5z6130"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd06"},isHovered:{true:"_1yep5z6142"},isDisabled:{true:"_16vugd08 _1yep5z6146"},isReadOnly:{true:"_16vugd09 _1yep5z611s _1yep5z6190 _1yep5z618y _1yep5z6146"},hasError:{true:"_1yep5z613e _1yep5z6190 _1yep5z618y"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61pj"],[{isSelected:true,isDisabled:false,isReadOnly:false,hasError:false},"_1yep5z61vg"],[{isSelected:true,isDisabled:true},"_1yep5z61pt _1yep5z61of"],[{isSelected:true,isDisabled:true,hasError:false},"_1yep5z61vg"],[{isHovered:true,isSelected:true,isReadOnly:false},"_1yep5z61pp _1yep5z61of"],[{isHovered:true,isSelected:true,isReadOnly:false,hasError:false},"_1yep5z61vg"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false},"_1yep5z61pp _1yep5z61of"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false,hasError:false},"_1yep5z61vg"]]});export{_ as a,z as b,t as c};
|
package/dist/chunk-C4XJOYAW.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$8}from'./chunk-G77E7EDE.mjs';import {c as c$1,d}from'./chunk-VQ45RUYJ.mjs';import {a as a$7}from'./chunk-NGZRN4SF.mjs';import {a as a$2}from'./chunk-LHLY432N.mjs';import {a as a$b}from'./chunk-GPT4DR4P.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$9}from'./chunk-QSFRMY47.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a as a$6}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-FDDB7QNQ.mjs';import {c as c$3}from'./chunk-QVFGEXDU.mjs';import {a as a$4}from'./chunk-LRFFL765.mjs';import {j}from'./chunk-NQVTVL24.mjs';import {r}from'./chunk-SCJ3RG7B.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a as a$a}from'./chunk-SVIYLH7R.mjs';import {c as c$2}from'./chunk-35AM4QEA.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import R,{useMemo,useRef,useEffect}from'react';import {XIcon}from'@baseline-ui/icons/8';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var I=new WeakMap;function P(a,e,t){if(!a)return "";typeof e=="string"&&(e=e.replace(/\s+/g,""));let i=I.get(a);return process.env.NODE_ENV!=="production"&&!i&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${i}-${t}-${e}`}function C(a,e,t){let{key:i,isDisabled:o,shouldSelectOnPressUp:r$1}=a,{selectionManager:l,selectedKey:b}=e,p=i===b,s=o||e.isDisabled||e.selectionManager.isDisabled(i),d$1=e.collection.getItem(i),{itemProps:n,isPressed:m}=d({selectionManager:l,key:i,ref:t,isDisabled:s,shouldSelectOnPressUp:r$1??d$1?.props.href!=null,linkBehavior:"selection"}),h=P(e,i,"tab"),c$1=P(e,i,"tabpanel"),{tabIndex:_}=n,x=a$a(d$1?.props,{labelable:true});delete x.id;let v=r(d$1?.props),{focusableProps:K}=c$3({...d$1?.props,isDisabled:s},t);return {tabProps:c(x,K,v,n,{id:h,"aria-selected":p,"aria-disabled":s||void 0,"aria-controls":p?c$1:void 0,tabIndex:s?void 0:_,role:"tab"}),isSelected:p,isDisabled:s,isPressed:m}}function A(a,e,t){let i=a$b(t)?void 0:0,o=P(e,a.id??e?.selectedKey,"tabpanel"),r=a$9({...a,id:o,"aria-labelledby":P(e,e?.selectedKey,"tab")});return {tabPanelProps:c(r,{tabIndex:i,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}var L=class{collection;flipDirection;disabledKeys;tabDirection;constructor(e,t,i,o=new Set){this.collection=e,this.flipDirection=t==="rtl",this.disabledKeys=o,this.tabDirection=i==="horizontal";}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function O(a,e,t){let{orientation:i="horizontal",keyboardActivation:o="automatic"}=a,{collection:r,selectionManager:l,disabledKeys:b$1}=e,{direction:p}=b(),s=useMemo(()=>new L(r,p,i,b$1),[r,b$1,i,p]),{collectionProps:d}=c$1({ref:t,selectionManager:l,keyboardDelegate:s,selectOnFocus:o==="automatic",disallowEmptySelection:true,scrollRef:t,linkBehavior:"selection"}),n=c$2();I.set(e,n);let m=a$9({...a,id:n});return {tabListProps:{...c(d,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}function N(a){let e=a$8({...a,onSelectionChange:a.onSelectionChange?l=>{l!=null&&a.onSelectionChange?.(l);}:void 0,suppressTextValueWarning:true,defaultSelectedKey:a.defaultSelectedKey??Z(a.collection,a.disabledKeys?new Set(a.disabledKeys):new Set)??void 0}),{selectionManager:t,collection:i,selectedKey:o}=e,r=useRef(o);return useEffect(()=>{let l=o;a.selectedKey==null&&(t.isEmpty||l==null||!i.getItem(l))&&(l=Z(i,e.disabledKeys),l!=null&&t.setSelectedKeys([l])),(l!=null&&t.focusedKey==null||!t.isFocused&&l!==r.current)&&t.setFocusedKey(l),r.current=l;}),{...e,isDisabled:a.isDisabled||false}}function Z(a,e){let t=null;if(a){for(t=a.getFirstKey();t!=null&&(e.has(t)||a.getItem(t)?.props?.isDisabled)&&t!==a.getLastKey();)t=a.getKeyAfter(t);t!=null&&(e.has(t)||a.getItem(t)?.props?.isDisabled)&&t===a.getLastKey()&&(t=a.getFirstKey());}return t}var ee="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",te=a({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6lq _1yep5z6lt _1yep5z6ez _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z611h"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z611l"},variant:{primary:"_1x62fhbb _1yep5z610e",ghost:"_1yep5z610h"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61o0"],[{variant:"primary",isSelected:true},"_1yep5z61pb"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61o7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6f2"],[{variant:"primary",isHovered:true},"_1yep5z61pc"]]}),ae=a({defaultClassName:"_1x62fhb3 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6w1 _1yep5z6w2 _1yep5z6w3"}},defaultVariants:{},compoundVariants:[]}),ie="_1x62fhbl",k=a({defaultClassName:"_1x62fhbf _1yep5z6fa",variantClassNames:{isHovered:{true:"_1yep5z611s"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611u"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61ob"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61og"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61od"]]}),re="_1yep5z6ma _1yep5z6m7 _1yep5z6id _1yep5z6m9",se=a({defaultClassName:"_1x62fhb0 _1yep5z6m3 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{primary:"_1yep5z612u",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var oe=({state:a,...e})=>{let t=R.useRef(null),{tabPanelProps:i}=A(e,a,t),{selectedItem:o}=a,{focusProps:r,isFocusVisible:l}=a$5();if(!o?.value)return null;let{className:b,style:p,"data-block-id":s}=o.value;return jsx("div",{...c(i,r),ref:t,className:a$3({[re]:l},"Baseline-Tabs-TabPanel",b),"data-block-id":s,style:p,children:o?.props.children})};var M=R.forwardRef(({className:a,style:e,tabHeaderStyle:t,tabHeaderClassName:i,variant:o="primary",actions:r,onRemove:l,"data-block-id":b,"data-block-class":p,...s},d)=>{let n=N({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues}),m=R.useRef(null),{tabListProps:h}=O({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues},n,m);return jsxs("div",{className:a$3("BaselineUI-Tabs",a),style:e,ref:d,"data-block-id":b,"data-block-class":p,children:[jsxs("div",{className:a$3(se({variant:o}),i),style:t,children:[jsx("div",{...h,className:ae({variant:o}),ref:m,children:[...n.collection].map(c=>(a$1(c.value,"TabItem requires a value prop"),jsx(le,{item:c,state:n,onRemove:l,variant:o},c.key)))}),r?.map((c,_)=>jsx("div",{className:ee,children:jsx(a$2,{...c,variant:"secondary",size:"sm",className:a$3(ie,c.className)})},_))]}),jsx(oe,{state:n},n.selectedItem?.key)]})});M.displayName="TabsBase";var le=({item:a,onRemove:e,state:t,variant:i})=>{let{key:o,value:r}=a,l=R.useRef(null),{tabProps:b,isSelected:p,isDisabled:s}=C({key:o},t,l),{hoverProps:d,isHovered:n}=a$4({isDisabled:s});a$1(r,"TabButton requires a value prop");let{title:m,icon:h,titleStyle:c$1,titleClassName:_}=r,{focusProps:x,isFocusVisible:v,isFocused:K}=a$5(),{keyboardProps:de}=j({onKeyDown:w=>{w.key==="Backspace"&&e?e(o):w.continuePropagation();}}),ce=a$6({"data-selected":p,"data-disabled":s,"data-focused":K,"data-hovered":n,"data-focus-visible":v});return jsxs("div",{...c(de,b,d,x,ce),className:a$3(te({isHovered:n,isSelected:p,isFocusVisible:v,isDisabled:s,variant:i}),"BaselineUI-Tabs-TabButton",_),style:c$1,ref:l,children:[h?jsx(h,{size:20,className:k({isHovered:n,isSelected:p,isDisabled:s,variant:i})}):null,m,e?jsx(a$2,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>{e(o);},excludeFromTabOrder:true,isDisabled:s,UNSAFE_isVisuallyInteractiveOnly:true,style:{display:"inline-flex",opacity:p||K||n?1:0},className:k({isHovered:n,isSelected:p,isDisabled:s,variant:i})}):null]})};le.displayName="TabButton";var pe=R.forwardRef(function({children:e,...t},i){let o=useMemo(()=>(R.Children.map(e,r=>!r||!R.isValidElement(r)||typeof r.type=="string"?null:{...r.props,id:r.props.value})??[]).filter(Boolean),[e]);return jsx(M,{...t,ref:i,items:o,children:r=>jsx(a$7,{title:r.title,children:r.children},r.key)})});pe.displayName="Tabs";var be=({children:a,title:e,value:t})=>(a$1(t,"TabItem requires a value prop"),a$1(e,"TabItem requires a title prop"),a$1(a,"TabItem requires children"),a);be.displayName="TabItem";export{pe as a,be as b};
|
package/dist/chunk-CR66GYHT.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {c as c$1}from'./chunk-RO5ZRU3Y.mjs';import {a as a$7}from'./chunk-LHLY432N.mjs';import {a as a$4}from'./chunk-66CUIXA6.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-FDDB7QNQ.mjs';import {a as a$3}from'./chunk-LRFFL765.mjs';import {d}from'./chunk-IIBBR266.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a as a$6}from'./chunk-35AM4QEA.mjs';import {a as a$1}from'./chunk-JQQGRJ5J.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import {TrashIcon}from'@baseline-ui/icons/16';import*as R from'dompurify';import F from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var N="_1vm2oh49 _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6gc",a="_1vm2oh48 _1yep5z6m4 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6kk _1yep5z6kl _1yep5z6km",j=a$1({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6m9 _1yep5z6m7 _1yep5z6is _1yep5z6ma _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6lq _1yep5z6m5 _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z613z _1yep5z618y _1yep5z6190",false:"_1yep5z6135"},isFocusVisible:{true:"_1yep5z614b _1yep5z618s _1yep5z618q _1yep5z614w _1yep5z618t"},isDisabled:{true:"mnnh5s8 z9nup82 _1yep5z6zt"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:true},"_1yep5z61pm"],[{accent:"theme",isInline:true},"_1yep5z61pb"],[{accent:"positive",isInline:false},"_1yep5z61po"],[{accent:"theme",isInline:false},"_1yep5z61pd"],[{isFocusVisible:true,isInline:true},"_1yep5z61rf _1yep5z61v9 _1yep5z61vb _1yep5z61vc"],[{isHovered:true,isInline:true},"_1yep5z61vc _1yep5z61rf _1yep5z61v9 _1yep5z61vb"],[{isHovered:true,isInline:false,accent:"positive"},"_1yep5z61pn"],[{isHovered:true,isInline:false,accent:"theme"},"_1yep5z61pf"],[{isHovered:true,isInline:true,accent:"theme"},"_1yep5z61pc"]]});var T=F.forwardRef(({className:V,style:g,isDisabled:e,isInline:n=true,imageAlt:i,imageSrc:o,svgSrc:p,textValue:t,textStyle:q,onPress:E,onDelete:z,deleteAriaLabel:M,addAriaLabel:_,accent:U="positive","data-block-id":Y,"data-block-class":G,...r},J)=>{let{focusProps:m,isFocused:K,isFocusVisible:l}=a$2({within:true}),{isHovered:u,hoverProps:v}=a$3({isDisabled:e}),{pressProps:c$2}=d({isDisabled:e,onPress:E});a$4(o||p||t,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let f=a$5({"data-hovered":u,"data-focus-visible":l,"data-focused":K,"data-disabled":e}),[O,Q]=F.useState("");return a$6(()=>{Q(typeof p=="string"?R.default.sanitize(p):"");},[p]),jsxs("div",{...r,className:a$8(j({isInline:n,isFocusVisible:l,isDisabled:e,isHovered:u,accent:U}),"BaselineUI-Preview",V),"data-block-id":Y,"data-block-class":G,role:r["aria-label"]||r["aria-labelledby"]?"group":void 0,"aria-label":r["aria-label"]||i||t,style:g,ref:J,children:[typeof p=="string"?jsx("button",{disabled:e,...c(v,m,c$2,f),className:a,"aria-label":_||i||t,dangerouslySetInnerHTML:{__html:O}}):jsxs("button",{...c(v,m,c$2,f),disabled:e,style:q,"aria-label":_,className:a,children:[o?jsx("img",{src:o,alt:i,className:c$1({isInline:n,isDisabled:e})}):null,!!p&&typeof p=="object"&&p,t]}),z?jsx(a$7,{isDisabled:e,className:N,"aria-label":M,size:"xs",icon:TrashIcon,onPress:z}):null]})});T.displayName="Preview";export{T as a};
|
package/dist/chunk-D6AOHRAV.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-6HTOSJOJ.mjs';import {d}from'./chunk-VQ45RUYJ.mjs';import {b as b$2}from'./chunk-ZQOR4LCM.mjs';import {a as a$2}from'./chunk-U6M2GCPD.mjs';import {b}from'./chunk-3PBFSDMT.mjs';import {a as a$4}from'./chunk-LRFFL765.mjs';import {b as b$1}from'./chunk-NQVTVL24.mjs';import {r}from'./chunk-SCJ3RG7B.mjs';import {c as c$2,a as a$3}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-SVIYLH7R.mjs';import {c as c$1,e}from'./chunk-35AM4QEA.mjs';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var c=new WeakMap;function R(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function N(e,o){let r=c.get(e);if(!r)throw new Error("Unknown list");return `${r.id}-option-${R(o)}`}function j(e,o,r){let t=a(e,{labelable:true}),i=e.selectionBehavior||"toggle",s=e.orientation||"vertical",n=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&n==="action"&&(n="override");let{listProps:d}=a$1({...e,ref:r,selectionManager:o.selectionManager,collection:o.collection,disabledKeys:o.disabledKeys,linkBehavior:n}),{focusWithinProps:p}=b({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),m=c$1(e.id);c.set(o,{id:m,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:n,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:b$1,fieldProps:f}=a$2({...e,id:m,labelElementType:"span"});return {labelProps:b$1,listBoxProps:c$2(t,p,o.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":s,...c$2(f,d)})}}var K=new WeakMap;function B(e){let o=K.get(e);if(o!=null)return o;let r=0,t=i=>{for(let s of i)s.type==="section"?t(b$2(s,e)):s.type==="item"&&r++;};return t(e),K.set(e,r),r}function _(e$1,o,r$1){let{key:t}=e$1,i=c.get(o),s=e$1.isDisabled??o.selectionManager.isDisabled(t),n=e$1.isSelected??o.selectionManager.isSelected(t),d$1=e$1.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,p=e$1.shouldFocusOnHover??i?.shouldFocusOnHover,m=e$1.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,b=e$1.isVirtualized??i?.isVirtualized,f=e(void 0,r$1),g=e(void 0,r$1),h={role:"option","aria-disabled":s||void 0,"aria-selected":o.selectionManager.selectionMode!=="none"?n:void 0,"aria-label":e$1["aria-label"],"aria-labelledby":f,"aria-describedby":g},l=o.collection.getItem(t);if(b){let v=Number(l?.index);h["aria-posinset"]=Number.isNaN(v)?void 0:v+1,h["aria-setsize"]=B(o.collection);}let A=i?.onAction?()=>i?.onAction?.(t):void 0,L=N(o,t),{itemProps:w,isPressed:E,isFocused:O,hasAction:H,allowsSelection:z}=d({selectionManager:o.selectionManager,key:t,ref:r$1,shouldSelectOnPressUp:d$1,allowsDifferentPressOrigin:d$1&&p,isVirtualized:b,shouldUseVirtualFocus:m,isDisabled:s,onAction:A||l?.props?.onAction?a$3(l?.props?.onAction,A):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:L}),{hoverProps:C}=a$4({isDisabled:s||!p,onHoverStart(){b$1()||(o.selectionManager.setFocused(true),o.selectionManager.setFocusedKey(t));}}),S=a(l?.props);delete S.id;let W=r(l?.props);return {optionProps:{...h,...c$2(S,w,C,W),id:L},labelProps:{id:f},descriptionProps:{id:g},isFocused:O,isFocusVisible:O&&o.selectionManager.isFocused&&b$1(),isSelected:n,isDisabled:s,isPressed:E,allowsSelection:z,hasAction:H}}function $(e$1){let{heading:o,"aria-label":r}=e$1,t=e([!!o]);return {itemProps:{role:"presentation"},headingProps:o?{id:t,role:"presentation",onMouseDown:i=>{i.preventDefault();}}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":o?t:void 0}}}export{c as a,N as b,j as c,B as d,_ as e,$ as f};
|
package/dist/chunk-DHZKZ3AV.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {c as c$1,b}from'./chunk-BK3RBPST.mjs';import {a}from'./chunk-6HTOSJOJ.mjs';import {d}from'./chunk-VQ45RUYJ.mjs';import {a as a$1}from'./chunk-GPT4DR4P.mjs';import {d as d$1}from'./chunk-D2NVLRIU.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {f,b as b$2}from'./chunk-A63HMTSM.mjs';import {i as i$1,b as b$3}from'./chunk-NQVTVL24.mjs';import {q}from'./chunk-SCJ3RG7B.mjs';import {c as c$2,a as a$3}from'./chunk-PJINRIA6.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c,e}from'./chunk-35AM4QEA.mjs';import {m,i,a as a$4,h,j}from'./chunk-TYOEGCPS.mjs';import {useRef}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var M=new WeakMap;function I(n,t){let{id:e}=M.get(n)??{};if(!e)throw new Error("Unknown list");return `${e}-${se(t)}`}function se(n){return typeof n=="string"?n.replace(/\s*/g,""):""+n}function Se(n,t,e){let{isVirtualized:i,keyboardDelegate:a$3,layoutDelegate:u,onAction:p,disallowTypeAhead:d,linkBehavior:y="action",keyboardNavigationBehavior:O="arrow",escapeKeyBehavior:b$1="clearSelection",shouldSelectOnPressUp:F}=n;!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:w}=a({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:e,keyboardDelegate:a$3,layoutDelegate:u,isVirtualized:i,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:n.shouldFocusWrap,linkBehavior:y,disallowTypeAhead:d,autoFocus:n.autoFocus,escapeKeyBehavior:b$1,UNSTABLE_focusOnEntry:n.UNSTABLE_focusOnEntry}),k=c(n.id);M.set(t,{id:k,onAction:p,linkBehavior:y,keyboardNavigationBehavior:O,shouldSelectOnPressUp:F});let T=c$1({selectionManager:t.selectionManager,hasItemActions:!!p,ref:e}),x=a$1(e,{isDisabled:t.collection.size!==0}),g=a$2(n,{labelable:true}),E=c$2(g,{role:"grid",id:k,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:x?-1:0}:w,T);return i&&(E["aria-rowcount"]=t.collection.size,E["aria-colcount"]=1),b({},t),{gridProps:E}}var Y={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ue(n,t,e$1){let{node:i$2,isVirtualized:a,focusMode:u="row",allowsArrowNavigation:p}=n,{direction:d$2}=b$1(),{onAction:y,linkBehavior:O,keyboardNavigationBehavior:b,shouldSelectOnPressUp:F}=M.get(t),w=e([],e$1),k=useRef(null),T=()=>{if(e$1.current!==null){if(u==="child"){if(m(e$1.current)&&e$1.current!==i(a$4(e$1.current)))return;let l=d$1(e$1.current,{tabbable:true}).firstChild();if(l){i$1(l),f(l,{containingElement:b$2(l)});return}}(k.current!=null&&i$2.key!==k.current||!m(e$1.current))&&i$1(e$1.current);}},x={},g=n.hasChildItems,E=t.selectionManager.isLink(i$2.key);if(i$2!=null&&"expandedKeys"in t){let r=t.collection.getChildren?.(i$2.key);g=g||[...r??[]].length>1,y==null&&!E&&t.selectionManager.selectionMode==="none"&&g&&(y=()=>t.toggleKey(i$2.key));let l=g?t.expandedKeys.has(i$2.key):void 0,o=1,c=i$2.index;if(i$2.level>=0&&i$2?.parentKey!=null){let s=t.collection.getItem(i$2.parentKey);if(s){let B=ue(s,t.collection);o=[...B].filter(ae=>ae.type==="item").length,c>0&&B[0].type!=="item"&&(c-=1);}}else o=[...t.collection].filter(s=>s.level===0&&s.type==="item").length;x={"aria-expanded":l,"aria-level":i$2.level+1,"aria-posinset":c+1,"aria-setsize":o};}let{itemProps:Z,...R}=d({selectionManager:t.selectionManager,key:i$2.key,ref:e$1,isVirtualized:a,shouldSelectOnPressUp:n.shouldSelectOnPressUp||F,onAction:y||i$2.props?.onAction?a$3(i$2.props?.onAction,y?()=>y(i$2.key):void 0):void 0,focus:T,linkBehavior:O}),ee=r=>{let l=i(a$4(e$1.current));if(!h(r.currentTarget,j(r))||!e$1.current||!l)return;let o=d$1(e$1.current);if(o.currentNode=l,!J(r,t,i$2,g,d$2,l,e$1.current,p))switch(r.key){case "ArrowLeft":{if(b==="arrow"){let c=d$2==="rtl"?o.nextNode():o.previousNode();if(c)r.preventDefault(),r.stopPropagation(),i$1(c),f(c,{containingElement:b$2(e$1.current)});else if(r.preventDefault(),r.stopPropagation(),d$2==="rtl")i$1(e$1.current),f(e$1.current,{containingElement:b$2(e$1.current)});else {o.currentNode=e$1.current;let s=Q(o);s&&(i$1(s),f(s,{containingElement:b$2(e$1.current)}));}}break}case "ArrowRight":{if(b==="arrow"){let c=d$2==="rtl"?o.previousNode():o.nextNode();if(c)r.preventDefault(),r.stopPropagation(),i$1(c),f(c,{containingElement:b$2(e$1.current)});else if(r.preventDefault(),r.stopPropagation(),d$2==="ltr")i$1(e$1.current),f(e$1.current,{containingElement:b$2(e$1.current)});else {o.currentNode=e$1.current;let s=Q(o);s&&(i$1(s),f(s,{containingElement:b$2(e$1.current)}));}}break}case "ArrowUp":case "ArrowDown":!r.altKey&&h(e$1.current,j(r))&&(r.stopPropagation(),r.preventDefault(),e$1.current.parentElement?.dispatchEvent(new KeyboardEvent(r.nativeEvent.type,r.nativeEvent)));break}},te=r=>{if(k.current=i$2.key,j(r)!==e$1.current){b$3()||t.selectionManager.setFocusedKey(i$2.key);return}u==="child"&&r.relatedTarget&&h(e$1.current,r.relatedTarget)||requestAnimationFrame(()=>{u==="child"&&i(a$4(e$1.current))===e$1.current&&T();});},re=r=>{let l=i(a$4(e$1.current));if(!(!h(r.currentTarget,j(r))||!e$1.current||!l)){if(b==="tab"){if(j(r)!==e$1.current&&r.key!=="Tab"){r.stopPropagation();return}if(J(r,t,i$2,g,d$2,l,e$1.current,p))return}switch(r.key){case "Tab":if(b==="tab"){let o=d$1(e$1.current,{tabbable:true});o.currentNode=l,(r.shiftKey?o.previousNode():o.nextNode())&&r.stopPropagation();}}}},ie=q(i$2.props),ne=R.hasAction?ie:{},K=c$2(Z,ne,{role:"row",onKeyDownCapture:b==="arrow"||p?ee:void 0,onFocus:te,"aria-label":i$2["aria-label"]||i$2.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(i$2.key)?t.selectionManager.isSelected(i$2.key):void 0,"aria-disabled":t.selectionManager.isDisabled(i$2.key)||void 0,"aria-labelledby":w&&(i$2["aria-label"]||i$2.textValue)?`${I(t,i$2.key)} ${w}`:void 0,id:I(t,i$2.key)});u==="child"&&p&&b==="tab"&&(K.tabIndex=-1);let oe=K.onKeyDown;if(K.onKeyDown=r=>{re(r),r.isPropagationStopped()||oe?.(r);},a){let{collection:r}=t,l=[...r];K["aria-rowindex"]=l.find(o=>o.type==="section")?[...r.getKeys()].filter(o=>r.getItem(o)?.type!=="section").findIndex(o=>o===i$2.key)+1:i$2.index+1;}let le={role:"gridcell","aria-colindex":1};return {rowProps:{...c$2(K,x)},gridCellProps:le,descriptionProps:{id:w},...R}}function J(n,t,e,i,a,u,p,d){if(!("expandedKeys"in t)||!d&&u!==p)return false;if(n.key===Y.expand[a]&&t.selectionManager.focusedKey===e.key&&i&&!t.expandedKeys.has(e.key))return t.toggleKey(e.key),n.stopPropagation(),true;if(n.key===Y.collapse[a]&&t.selectionManager.focusedKey===e.key){if(i&&t.expandedKeys.has(e.key))return t.toggleKey(e.key),n.stopPropagation(),true;if(!t.expandedKeys.has(e.key)&&e.parentKey&&t.collection.getItem(e.parentKey)?.type==="item")return t.selectionManager.setFocusedKey(e.parentKey),n.stopPropagation(),true}return false}function Q(n){let t=null,e=null;do e=n.lastChild(),e&&(t=e);while(e);return t}function ue(n,t){let e=t.getChildren?.(n.key),i=e?Array.from(e):[],a=i.length>0?i[0]:null,u=[];for(;a;)u.push(a),a=a.nextKey!=null?t.getItem(a.nextKey):null;return u}export{I as a,Se as b,Ue as c};
|
package/dist/chunk-DRQHSYY3.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-K3WFKO7R.mjs';import {d as d$1}from'./chunk-IIBBR266.mjs';import {b,a as a$1}from'./chunk-TYOEGCPS.mjs';import d,{useEffect}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function E({ref:n,onSelectionChange:i,onSelectionEnd:S,isDisabled:t}){let o=d.useRef(null);d$1({ref:n,isDisabled:t,onPressEnd(){let e=a(n.current);e&&n.current?.contains(e.anchorNode)&&S?.(e);},onPressStart(){let e=b(n.current);o.current=e.getSelection(),o.current&&o.current.removeAllRanges();}}),useEffect(()=>{let e=n.current;if(!e||t)return;function l(){let c=a(e);c&&n.current?.contains(c.anchorNode)&&i(c);}let s=a$1(e);return s.addEventListener("selectionchange",l),()=>{s.removeEventListener("selectionchange",l);}},[n,i,t]);}export{E as a};
|
package/dist/chunk-DZJTPX2G.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-IBBDZQPO.mjs';import {a as a$d}from'./chunk-6CSP66NI.mjs';import {a as a$f}from'./chunk-2UDXAKWA.mjs';import {a as a$3,b as b$1}from'./chunk-KADD66HZ.mjs';import {a as a$2}from'./chunk-XDTKLQJB.mjs';import {a as a$g}from'./chunk-JXJZIKEY.mjs';import {c as c$1}from'./chunk-6RN7DKRF.mjs';import {b as b$5}from'./chunk-GIUNLLWW.mjs';import {a as a$c}from'./chunk-DIL5HL6K.mjs';import {a as a$e}from'./chunk-VQHI3ZCW.mjs';import {a as a$1}from'./chunk-RPIUPWPO.mjs';import {a as a$h}from'./chunk-D2NVLRIU.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-DLJHL4V7.mjs';import {b as b$4,j as j$1}from'./chunk-R5JHN4X6.mjs';import {a as a$b}from'./chunk-VDUFLHKK.mjs';import {a as a$a}from'./chunk-FPM5UJRF.mjs';import {a as a$8}from'./chunk-RSKKEGJZ.mjs';import {a as a$6}from'./chunk-FDDB7QNQ.mjs';import {a as a$7}from'./chunk-LRFFL765.mjs';import {j}from'./chunk-NQVTVL24.mjs';import {a as a$9}from'./chunk-RT4LMB6X.mjs';import {b,c as c$2}from'./chunk-PJINRIA6.mjs';import {c}from'./chunk-35AM4QEA.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import A from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {sprinkles}from'@baseline-ui/tokens';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var ne="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3",me="_14uvjig2 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k",ue="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6jz _1yep5z6k0 _1yep5z6k1",ye=a({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ez",variantClassNames:{hasNumberInput:{false:"_1yep5z6p1 _1yep5z6p2 _1yep5z6p3"}},defaultVariants:{},compoundVariants:[]}),ce=a({defaultClassName:"_14uvjiga _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6gh _1yep5z6m5 _1yep5z6lq",variantClassNames:{active:{true:"_14uvjigb _1yep5z6136 _1yep5z618x _1yep5z618p"},isDisabled:{true:"_14uvjigc _1yep5z613a"},isReadOnly:{true:"_1yep5z615l _1yep5z615m _1yep5z615n"},isFocusVisible:{true:"_14uvjige _1yep5z6136 _1yep5z6189"},isHovered:{true:"_14uvjigf _1yep5z6136"}},defaultVariants:{},compoundVariants:[]}),fe="z9nup8a _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv",be="_14uvjig3 z9nup87 _1yep5z6gd _1yep5z6m3",_e=a({defaultClassName:"_14uvjig4 _1yep5z6gh _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6m4",variantClassNames:{active:{true:"_1yep5z6136"},isFocusVisible:{true:"_1yep5z6136"},isDisabled:{true:"_1yep5z613a"},isHovered:{true:"_1yep5z6136"}},defaultVariants:{},compoundVariants:[]});var N=A.forwardRef(({className:g,style:v,onChange:i,onChangeEnd:p,numberFormatOptions:o,isDisabled:r,step:h,minValue:d,maxValue:S,value:u,"aria-label":s,"aria-labelledby":e,"aria-details":n,"aria-describedby":m,"data-block-id":y,"data-block-class":I,defaultValue:T,isReadOnly:c$2,label:f,description:x,id:j,includeNumberInput:b$1,numberInputClassName:k,numberInputStyle:he},Se)=>{let H=A.useRef(null),F=c(),O={onChange:i===void 0?void 0:z=>{i(z[0]);},isDisabled:r||c$2,step:h,minValue:d,maxValue:S,onChangeEnd:p===void 0?void 0:z=>{p(z[0]);},value:u===void 0?void 0:[u],defaultValue:T===void 0?void 0:[T],"aria-label":s,"aria-labelledby":e,"aria-details":n,"aria-describedby":[x?F:void 0,m].filter(Boolean).join(" ")||void 0,id:j,label:f},xe=a$1(o),_=a$2({...O,numberFormatter:xe}),{trackProps:je,groupProps:ke,labelProps:L}=a$3(O,_,H),U=jsx(a$4,{variant:"ghost",showStepper:false,className:k,"aria-label":s,"aria-labelledby":L.id,isDisabled:r,isReadOnly:c$2,value:_.getThumbValue(0),formatOptions:o,onChange:z=>{Number.isNaN(z)||(_.setThumbDragging(0,true),_.setThumbValue(0,z),_.setThumbDragging(0,false));},style:{width:60,textAlign:"right",flexShrink:0,...he}});return jsxs("div",{...ke,style:v,"data-block-id":y,"data-block-class":I,className:a$5(ne,"BaselineUI-Slider",g),children:[f?jsxs("div",{className:ue,children:[jsx("label",{...L,className:a$5(ye({hasNumberInput:!!b$1}),"BaselineUI-Slider-Label"),children:f}),b$1?U:null]}):null,jsxs("div",{className:me,children:[jsx("div",{...je,className:a$5(be,"BaselineUI-Slider-Track"),ref:b(H,Se),"data-testid":"track",children:jsx(Pe,{state:_,trackRef:H,isDisabled:r,isReadOnly:c$2})}),b$1&&!f?U:null]}),c$1({description:x,descriptionProps:{id:F},errorMessageProps:{},isDisabled:r})]})});N.displayName="Slider";function Pe({state:g,trackRef:v,isDisabled:i,isReadOnly:p}){let o=A.useRef(null),{thumbProps:r,inputProps:h,isDragging:d}=b$1({trackRef:v,inputRef:o},g),{focusProps:S,isFocused:u,isFocusVisible:s}=a$6(),{hoverProps:e,isHovered:n}=a$7({isDisabled:i}),{direction:m}=b$2(),y=a$8({"data-disabled":i,"data-readonly":p,"data-hovered":n,"data-focus-visible":s,"data-dragging":d,"data-focused":u});return jsxs(Fragment,{children:[jsx("div",{className:a$5(_e({isDisabled:i,isFocusVisible:s,active:d,isHovered:n}),"BaselineUI-Slider-TrackHighlight"),style:{width:m==="rtl"?`calc(100% - ${r.style?.left})`:r.style?.left},"data-testid":"track-highlight"}),jsxs("div",{...c$2(r,e,y),className:a$5(fe,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsx("div",{className:a$5(ce({isDisabled:i,isFocusVisible:s,active:d,isReadOnly:p,isHovered:n}),"BaselineUI-Slider-Thumb")}),jsx(b$3,{children:jsx("input",{ref:o,...c$2(h,S)})})]})]})}var ve=A.forwardRef(({className:g,style:v,onChange:i,"data-block-id":p,icon:o,formatValue:r=m=>m,tooltip:h=true,iconTooltip:d=true,popoverContentProps:S,isDisabled:u,onTriggerPress:s,...e},n)=>{let m=a$9(n),[y,I]=a$a(e.value,e.defaultValue||0,i),[T,c]=A.useState(false),{keyboardProps:f}=j({onKeyDown:k=>{k.key==="Enter"||k.key==="Escape"?c(false):k.continuePropagation();}}),{tooltipProps:x}=a$b({label:e["aria-label"],tooltip:h}),j$2=r(y||0),b=x?.isDisabled||e["aria-label"]?`${e["aria-label"]}, ${j$2}`:j$2.toString();return jsxs(a$c,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$5("BaselineUI-IconSlider",g),"data-block-id":p,style:v,ref:m,children:[o?jsx(a$d,{icon:o,label:e["aria-label"],tooltip:d,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsxs(b$4,{type:"dialog",isOpen:T,onOpenChange:c,children:[jsx(j$1,{children:jsx(a$e,{...x,children:jsx(b$5,{label:j$2,variant:"popover","aria-label":b,isDisabled:u,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"},onPressStart:s})})}),jsx(a$f,{placement:"bottom start",...S,children:jsx(a$g,{size:"content","aria-label":b,children:jsx(a$h,{autoFocus:true,children:jsx(a$c,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...f,children:jsx(N,{...e,onChange:I,value:y})})})})})]})]})});ve.displayName="IconSlider";export{N as a,ve as b};
|
package/dist/chunk-F4YBUGLD.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-CWPFUB7B.mjs';import {a as a$f}from'./chunk-NV7KQVPE.mjs';import {a as a$g}from'./chunk-F3EOLTFM.mjs';import {f,b as b$4,i,g,a as a$c,h,c as c$3,e as e$1,d}from'./chunk-VPN55UVA.mjs';import {a as a$b}from'./chunk-NMSOOQB2.mjs';import {a as a$a}from'./chunk-YQFS4UHL.mjs';import {q}from'./chunk-OO3ZVB2T.mjs';import {c as c$2}from'./chunk-PLRUMLNB.mjs';import {p}from'./chunk-NWYRVUTX.mjs';import {a as a$9}from'./chunk-M7BCIQ2J.mjs';import {a as a$8,b as b$5}from'./chunk-KCHAWPUN.mjs';import {b as b$3,e}from'./chunk-L5H5GE3H.mjs';import {b}from'./chunk-DOFT4BQH.mjs';import {b as b$2,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$e}from'./chunk-DIL5HL6K.mjs';import {a as a$d}from'./chunk-LHLY432N.mjs';import {a as a$4}from'./chunk-VQHI3ZCW.mjs';import {a as a$6}from'./chunk-5IC46G5J.mjs';import {a as a$7}from'./chunk-FPM5UJRF.mjs';import {a}from'./chunk-ALMW6S4I.mjs';import {a as a$1}from'./chunk-LRFFL765.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {b as b$1,c}from'./chunk-PJINRIA6.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {sprinkles}from'@baseline-ui/tokens';import Z,{useRef,useLayoutEffect,useState,useContext,useEffect,useCallback,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {XIcon}from'@baseline-ui/icons/12';import {useReducedMotion,motion}from'motion/react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var We=t=>a$a({getItems:(e,r)=>r.map(i=>({"text/plain":i.label})),renderDropIndicator(e){return jsx(c$2,{target:e,className:({isDropTarget:r})=>a$2(a$b({isDropTarget:r}),"BaselineUI-DropIndicator")})},...t});function Y(t,e){return t.find(r=>r.id===e)}function $e(t,e,r){let i=[...t],l=i.filter(o=>r.has(o.id)),n=i.filter(o=>!r.has(o.id)),s=n.findIndex(o=>o.id===e);return n.flatMap((o,p)=>p===s?[...l,o]:o)}function Xe(t,e,r){let i=[...t],l=i.filter(o=>r.has(o.id)),n=i.filter(o=>!r.has(o.id)),s=n.findIndex(o=>o.id===e);return n.flatMap((o,p)=>p===s?[o,...l]:o)}function oe(t){return t.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function K(t){return t.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var H={src:"src",alt:"alt"},T={sm:102,md:170};function je(t,e){let r=Y(t,e);return {[H.src]:r?.data?.src||"",[H.alt]:r?.data?.alt||"",key:String(e)}}function qe(t){let e=t[H.src];return e?{src:String(e),alt:t[H.alt]?String(t[H.alt]):""}:null}function Je({fit:t,imageDimensions:e,item:r,isSelected:i}){let l={display:"block",objectFit:t},n=typeof e=="function"?r?e(r,{isSelected:i}):void 0:e;if(!n)return l;let s=typeof n.width=="string"?T[n.width]:n.width;return l.width=s,l.aspectRatio="height"in n?`${s} / ${n.height}`:n.aspectRatio.toString(),l}var Ye=Z.forwardRef(({className:t,children:e,style:r,isDisabled:i,onTruncatedChange:l,onHoverChange:n},s)=>{let o=useRef(null),{buttonProps:p}=a({elementType:"span",isDisabled:i},o);useLayoutEffect(()=>{o.current&&l?.(o.current.scrollWidth>o.current.clientWidth);},[e,l]);let{hoverProps:I}=a$1({isDisabled:i,onHoverChange:n});return jsx(b,{elementType:"span",slot:"label",...c(p,I),className:a$2(t,"BaselineUI-AdaptiveText"),tabIndex:-1,ref:b$1(o,s),style:r,role:void 0,children:e})});Ye.displayName="Label";var ie=Z.memo(Z.forwardRef(({children:t,isOpen:e,isDisabled:r,...i},l)=>{let[n,s]=useState(false),[o,p]=useState(false),I=a$3(),A=r||!o||I;return jsx(a$4,{text:t,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(n||e)&&o,isDisabled:A,children:jsx(Ye,{...i,isDisabled:A,onTruncatedChange:p,onHoverChange:s,ref:l,children:t})})}));ie.displayName="AdaptiveText";var It=({fit:t,item:e,deleteElement:r,loadingLabel:i})=>{let{formatMessage:l}=b$2(),{isLoading:n,imgProps:s}=a$f({src:e.data?.src,alt:e.data?.alt||""});return jsxs("div",{className:e$1,children:[n?jsx(a$g,{"aria-label":i??l(_.loading)}):jsx("div",{role:"img",className:d({isLoading:n}),"aria-label":s.alt||"",style:{backgroundImage:`url(${s.src})`,backgroundSize:t}}),r]})},Ze=({item:t,options:{isFocusVisible:e,isSelected:r,isFocused:i,isDisabled:l,isPressed:n},fit:s="contain",onDelete:o,className:p,imageClassName:I,imageLabelClassName:A,imageDimensions:O,style:z,layoutTransition:P=true,deleteLabel:U,loadingLabel:F,renderImage:W=(w,{deleteElement:k})=>jsx(It,{item:w,deleteElement:k,fit:s,loadingLabel:F})})=>{let{formatMessage:w}=b$2(),k=o?jsx("div",{className:a$c,children:jsx(a$d,{"aria-label":U??w(_.delete),size:"xs",icon:XIcon,onPress:()=>{o(t.id);},isDisabled:l,UNSAFE_isVisuallyInteractiveOnly:true,"data-testid":"image-gallery-delete-button"})}):null,v=K([t])[0],R=useCallback(C=>{let y={},c=typeof C=="function"?C(v,{isSelected:r}):C;return c&&(y.width=typeof c.width=="string"?T[c.width]:c.width,y.aspectRatio="height"in c?`${y.width} / ${c.height}`:c?.aspectRatio?.toString()),y},[v,r]),x=useMemo(()=>({isFocusVisible:e,isSelected:r,isFocused:i,isDisabled:l,isPressed:n}),[e,r,i,l,n]),B=!useReducedMotion()&&(typeof P=="boolean"?P:true),b=typeof P=="object"?P:void 0,$=R(O),X=B?motion.div:"div";return jsxs(X,{...B?{layout:"position",initial:false,transition:b}:{},className:a$2(c$3,a$8(p,v,x)),style:b$5(z,v,x),children:[jsx(a$e,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsx("div",{className:a$2(g({isFocusVisible:e,isSelected:r,isLoading:true}),a$8(I,v,x)),style:$,"data-image-key":t.id,children:W(t,{deleteElement:k??void 0,onDelete:o})})}),jsx(ie,{className:a$2(h({isFocusVisible:e,isSelected:r}),A),style:{maxWidth:$.width},isOpen:e,children:t.label})]})};var V={keys:[],isAll:false};function Dt(t,e){return t==="all"?true:"has"in t&&typeof t.has=="function"?t.has(e):[...t].includes(e)}var tt=Z.forwardRef(({className:t,style:e$1,fit:r="cover",onReorder:i$1,"data-block-id":l,"data-block-class":n,onDelete:s,imageWidth:o,aspectRatio:p$1,items:I,defaultItems:A=[],onKeyDown:O,imageContainerClassName:z,imageClassName:P,labelClassName:U,onListChange:F,renderImage:W,layoutTransition:w,imageDimensions:k,imageContainerStyle:v,deleteConfirmationTitle:R="Are you sure you want to delete this item?",deleteLabel:x,cancelLabel:le,loadingLabel:B,...b},$)=>{let{isVirtualized:X}=useContext(p),C=a$5($),[y,c]=useState(V),S=y.keys,{formatMessage:me}=b$2(),ce=o??T.sm,de=p$1??3/4,pe=o!==void 0||p$1!==void 0;useEffect(()=>{pe&&a$6("ImageGallery:deprecatedSizing","ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[pe]);let ee=Z.useMemo(()=>k??{width:ce,aspectRatio:de},[k,ce,de]),[h,j]=a$7(b.selectedKeys,b.defaultSelectedKeys??[],b.onSelectionChange),rt=Z.useMemo(()=>I?oe(I):void 0,[I]),ot=Z.useMemo(()=>oe(A),[]),[u,N]=a$7(rt,ot,F?a=>{F?.(K(a));}:void 0),at=useCallback(a=>{let m=a.target.key,d=a.keys;if(a.target.dropPosition==="before"){let f=$e(u,m,d);N(f);}else if(a.target.dropPosition==="after"){let f=Xe(u,m,d);N(f);}i$1?.(a);},[u,i$1,N]),{dragAndDropHooks:nt}=We({onReorder:at,isDisabled:!i$1,renderDragPreview:a=>jsx(i,{items:a,containerClassName:".BaselineUI-ImageGallery",previewClassName:g(),itemDataAttribute:"data-image-key",showCount:true,renderFallback:m=>{let d=qe(m);if(!d)return null;let f=Y(u,m.key),q=f?K([f])[0]:void 0;return jsx("img",{...d,style:Je({fit:r,imageDimensions:ee,item:q,isSelected:Dt(h,m.key)})})}}),getItems:a=>[...a].map(m=>je(u,m)),renderDropIndicator(a){return jsx(c$2,{target:a,className:a$2(b$4({isVirtualized:!!X}),"BaselineUI-DropIndicator")})}}),it=useCallback(()=>{if(s&&S.length){if(y.isAll)j(new Set);else if(h!=="all"){let a=[...h],m=a.filter(d=>!S.includes(d));m.length!==a.length&&j(new Set(m));}N(u.filter(a=>!S.includes(a.id))),s(S),c(V);}},[S,y.isAll,u,s,h,N,j]),st=useCallback((a,m)=>{let d={id:a.id,label:a.label,src:a.data?.src,alt:a.data?.alt};return jsx(Ze,{item:a,options:m,fit:r,onDelete:s?f=>{m.isDisabled||c({keys:[f],isAll:false});}:void 0,renderImage:W,className:a$8(z,d,m),imageClassName:P,imageLabelClassName:U,imageDimensions:ee,style:v,layoutTransition:w,deleteLabel:x,loadingLabel:B},a.id)},[r,s,W,z,P,U,ee,v,w,x,B]);return useEffect(()=>{let a=C.current;if(!a)return;let m=d=>{if(O?.(d),d.key==="Backspace"||d.key==="Delete"){if(!s)return;let f=new Set(b.disabledKeys);if(h==="all"){c({keys:u.map(G=>G.id).filter(G=>!f.has(G)),isAll:true});return}let q=[...h];if(q.length){let G=q.filter(lt=>!f.has(lt));G.length&&c({keys:G,isAll:false});return}let te=d.target.closest("[data-key]");if(!te||!a.contains(te))return;let fe=te.dataset.key;if(f.has(fe))return;c({keys:[fe],isAll:false});}};return a.addEventListener("keydown",m),()=>{a.removeEventListener("keydown",m);}},[C,s,O,h,u,b.disabledKeys]),jsxs(Fragment,{children:[jsx(q,{...b,ref:C,style:e$1,className:a$2(f,"BaselineUI-ImageGallery",t),"data-block-id":l,"data-block-class":n,selectedKeys:h,items:u,dragAndDropHooks:nt,layout:"grid",orientation:"vertical",renderOption:st,onSelectionChange:j,optionClassName:i$1&&!X?sprinkles({marginLeft:"sm"}):void 0}),jsx(b$3,{isOpen:!![...S].length,onOpenChange:a=>{a||c(V);},children:jsx(e,{isDismissable:true,children:jsx(a$9,{showCloseButton:false,title:typeof R=="function"?R(y.isAll?"all":new Set(S)):R,primaryActionLabel:x??me(_.delete),cancelLabel:le??me(_.cancel),onCancel:()=>{c(V);},onPrimaryAction:it,autoFocusButton:"cancel"})})})]})});tt.displayName="ImageGallery";var _=c$1({delete:{id:"bui.imageGallery.delete",defaultMessage:"Delete"},cancel:{id:"bui.imageGallery.cancel",defaultMessage:"Cancel"},loading:{id:"bui.imageGallery.loading",defaultMessage:"Loading"}});export{tt as a};
|
package/dist/chunk-G76NJ3IU.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b,a as a$5}from'./chunk-XKNL5LSL.mjs';import {a as a$1,f as f$1}from'./chunk-AC44TKUI.mjs';import {a as a$3}from'./chunk-5BAHJXOI.mjs';import {b as b$2,a as a$g,q}from'./chunk-OO3ZVB2T.mjs';import {a as a$a}from'./chunk-2MS356Q7.mjs';import {a as a$f}from'./chunk-2UDXAKWA.mjs';import {b as b$1,a as a$7,c as c$1}from'./chunk-6RN7DKRF.mjs';import {a as a$c}from'./chunk-U6M2GCPD.mjs';import {b as b$4}from'./chunk-GIUNLLWW.mjs';import {a as a$e}from'./chunk-VQHI3ZCW.mjs';import {f}from'./chunk-CFDIUF4H.mjs';import {a as a$4}from'./chunk-WD2TPSZV.mjs';import {a as a$i}from'./chunk-5IC46G5J.mjs';import {a as a$d}from'./chunk-VDUFLHKK.mjs';import {a as a$b}from'./chunk-RSKKEGJZ.mjs';import {a as a$9}from'./chunk-FDDB7QNQ.mjs';import {a as a$8}from'./chunk-LRFFL765.mjs';import {j as j$1}from'./chunk-NQVTVL24.mjs';import {d}from'./chunk-IIBBR266.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {a as a$6,c as c$2,b as b$3}from'./chunk-PJINRIA6.mjs';import {c}from'./chunk-35AM4QEA.mjs';import {j,h}from'./chunk-TYOEGCPS.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$h}from'./chunk-4QEH5CGK.mjs';import x,{useMemo,useState,useRef,useEffect}from'react';import {useGranularEffect}from'granular-hooks';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var De=a({defaultClassName:"_18v88n10 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6m3",variantClassNames:{labelPosition:{top:"_1yep5z6163 _1yep5z6164 _1yep5z6165",start:"_1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z617i _1yep5z617j _1yep5z617k _1yep5z6w1 _1yep5z6w2 _1yep5z6w3"}},defaultVariants:{},compoundVariants:[]}),Oe=a({defaultClassName:"_18v88n1n _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ey _1yep5z6m3 _1yep5z6me _1yep5z6m6 _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1o _1yep5z611l"},labelPosition:{top:"_18v88n1p",start:"_18v88n1q"}},defaultVariants:{},compoundVariants:[]}),Te=a({defaultClassName:"_18v88n1r _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6m0",variantClassNames:{validationState:{valid:"_18v88n1s",error:"_1yep5z610x",warning:"_1yep5z6117"},isReadOnly:{true:"_1yep5z611s"}},defaultVariants:{},compoundVariants:[]}),He=a({defaultClassName:"_18v88n1b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6mh _1yep5z6mf _1yep5z6hg _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{validationState:{valid:"_18v88n1c",error:"_1yep5z613e",warning:"_18v88n1e"},isHovered:{true:"_18v88n1f"},isFocused:{true:"_1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z6190 _1yep5z618y _1yep5z613w _1yep5z618r _1yep5z618q _1yep5z614w _1yep5z618t"},isDisabled:{true:"_18v88n1h"},variant:{primary:"_18v88n1i",ghost:"_18v88n1j"},isReadOnly:{true:"_1yep5z614w"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61vj _1yep5z61vh _1yep5z61qi"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1l"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61qj"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61qj"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1m"]]}),Fe="_1yep5z6dy _1yep5z6ez",Se=a({defaultClassName:"_18v88n17 _1yep5z6jb _1yep5z6jc _1yep5z6jd",variantClassNames:{labelPosition:{top:"_1yep5z6tp _1yep5z6tq _1yep5z6tr",start:"_1yep5z6nm _1yep5z6nn _1yep5z6no _1yep5z6163 _1yep5z6164 _1yep5z6165"},hasMessage:{true:"_18v88n1a"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61tv _1yep5z61tw _1yep5z61tx"]]}),Ke="_18v88n1w",Ae=a({defaultClassName:"_18v88n13 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isHovered:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isOpen:{true:"_1yep5z615b _1yep5z618p"}},defaultVariants:{},compoundVariants:[]});function K(a,s,d,p){if(s!=="number"||a===void 0||a==="")return a;let u=Number.parseFloat(a);if(Number.isNaN(u))return a;let e=u;return d!==void 0&&(e=Math.max(e,d)),p!==void 0&&(e=Math.min(e,p)),e===u?a:String(e)}function We(a,s){return a.selectedKey==null||s!==a.selectedItem?.textValue}function Ge({allowsCustomValue:a,onValueChange:s,inputType:d,minValue:p,maxValue:u},e,g,b){let[V,c]=useState(null),n=useRef(false),C=useRef(null),P=!We(e,e.inputValue),w=(t,r)=>{C.current=r==null?null:{key:r,value:t},s?.({value:t,key:r});},I=t=>{!n.current||!We(e,t)||(w(t,null),n.current=false);};useEffect(()=>{if(!s)return;let t=g.current,r=y=>{c(j(y));};return t?.addEventListener("focusin",r),()=>{t?.removeEventListener("focusin",r);}},[s,g,e.selectedKey]),useGranularEffect(()=>{if(e.selectedKey==null||e.selectedItem==null){e.selectionManager.isEmpty&&(C.current=null);return}let t=e.selectedKey,r=e.selectedItem.textValue,y=C.current?.key!==t;!y&&(C.current?.value===r||n.current&&!P)||(w(r,t),y&&(n.current=false));},[e.selectedKey,e.selectedItem?.textValue,P],[s,e.selectedItem]);let k=()=>{V===b.current&&a&&n.current&&(n.current=false);};useEffect(()=>{if(!s)return;let t=b.current,r=()=>{n.current=true;};return t?.addEventListener("input",r),()=>{t?.removeEventListener("input",r);}},[b,s]);let{keyboardProps:D}=j$1({isDisabled:!s,onKeyDown:t=>{if(a&&t.key==="Enter"&&n.current){let r=K(b.current?.value,d,p,u);I(r??""),n.current=false;}else t.key==="Escape"&&(e.selectedKey!=null&&(n.current=false),e.close());t.continuePropagation();}});return {inputProps:D,commitCustomValue:I,disarmPendingEdit:k}}var Je=x.forwardRef(({renderOption:a,optionStyle:s,optionClassName:d,...p},u)=>jsx(a$1,{items:p.items,listBoxProps:{renderOption:a,optionStyle:s,optionClassName:d},children:e=>jsx(Qe,{...p,collection:e,ref:u})}));Je.displayName="ComboBox";var Qe=x.forwardRef(({className:a,style:s,inputStyle:d$1,inputClassName:p,"data-block-id":u,"data-block-class":e,label:g,items:b$5,isInvalid:V=false,labelPosition:c$3="top",validationState:n="valid",variant:C="primary",toggleLabel:P,showIcon:w=true,filter:I,filterItems:k,readOnly:D,minValue:t,maxValue:r,inputType:y="text",onInputSubmit:A,onValueChange:q$1,tooltip:Xe,collection:Ye,onTriggerPress:U,...o},Ze)=>{let O=a$2(Ze),{contains:$e}=a$3({sensitivity:"base"}),f$2=o.isReadOnly??D,W=V||n==="error"||!!o.errorMessage,_=b({...o,isReadOnly:f$2,defaultFilter:k===false?void 0:I||$e,defaultItems:b$5,collection:Ye,children:void 0,validationState:W?"invalid":"valid"}),G=x.useRef(null),v=x.useRef(null),J=x.useRef(null),T=x.useRef(null),Q=x.useRef(null),{inputProps:eo,commitCustomValue:oo,disarmPendingEdit:to}=Ge({onValueChange:q$1,allowsCustomValue:o.allowsCustomValue,inputType:y,minValue:t,maxValue:r},_,O,v),X=i=>{let m=K(i,y,t,r)??"";return m!==i&&!A&&!q$1&&a$i("bui.comboBox.clampNoCallback","ComboBox: minValue/maxValue clamped a value but no onInputSubmit or onValueChange callback is provided. The constraint cannot be enforced without a callback to notify the consumer."),A?.(m),m},Y=()=>{let i=v.current?.value??"";!o.allowsCustomValue||!i||oo(X(i));};a$4({ref:v,onInteractOutside:i=>{let m=j(i);if(h(O.current,m)||h(T.current,m))return;let h$1=v.current;if(!h$1||f(h$1)!==h$1){to();return}_.isOpen&&(Y(),_.close());}});let{buttonProps:L,inputProps:Z,listBoxProps:$,labelProps:ro,errorMessageProps:no,descriptionProps:ao,validationErrors:so}=a$5({...o,description:b$1(o),onBlur:a$6(o.onBlur,Y),inputRef:v,defaultItems:b$5,buttonRef:G,listBoxRef:J,popoverRef:T,isReadOnly:f$2,validationState:W?"invalid":"valid"},_),H=o.errorMessage||so.join(" "),ee=c(),io=a$7({...o,errorMessage:H})==="warningMessage",R=c$1({...o,errorMessage:H,descriptionProps:ao,errorMessageProps:no,warningMessageProps:{id:ee},labelPosition:c$3});H&&(n="error");let{hoverProps:lo,isHovered:oe}=a$8({isDisabled:o.isDisabled}),{isFocused:te,focusProps:po,isFocusVisible:re}=a$9(),ne=a$a({isReadOnly:f$2,validationState:n}),uo=a$b({"data-read-only":f$2,"data-disabled":o.isDisabled,"data-validation-state":n,"data-focused":te,"data-focus-visible":re}),{labelProps:co,fieldProps:mo}=a$c({label:g,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],"aria-describedby":o["aria-describedby"],"aria-details":o["aria-details"]}),{keyboardProps:yo}=j$1({onKeyDown:i=>{o.allowsCustomValue&&i.key==="Enter"&&X(v.current?.value??"");}}),{tooltipProps:ae}=a$d({tooltip:Xe,label:o["aria-label"]}),{pressProps:fo}=d({onPress:U}),se=P?.trim()||void 0,ie=i=>{let{triggerProps:m,triggerRef:h}=i??{};return jsxs("div",{className:a$h(De({labelPosition:c$3}),a,"BaselineUI-ComboBox"),"data-block-id":u,"data-block-class":e,style:s,ref:O,children:[g||c$3==="start"&&R?jsxs("div",{className:Se({labelPosition:c$3,hasMessage:!!R}),children:[jsx("label",{...c$2(ro,co),className:Fe,children:g}),c$3==="start"&&R]}):null,jsxs("div",{...lo,className:He({validationState:n,isHovered:oe,isFocused:te,variant:C,isReadOnly:!!f$2,isDisabled:!!o.isDisabled}),ref:Q,children:[jsx("input",{...c$2(fo,m,Z,eo,po,uo,mo,yo,y==="number"?{type:"number",min:t,max:r,onKeyDown:B=>{(B.key==="ArrowUp"||B.key==="ArrowDown")&&B.preventDefault();}}:null,{"aria-describedby":[m?.["aria-describedby"],Z["aria-describedby"],io?ee:void 0].filter(Boolean).join(" ")||void 0}),id:o.id,ref:b$3(h,v),className:a$h(Oe({isDisabled:o.isDisabled,labelPosition:c$3}),"BaselineUI-ComboBox-Input",p),style:d$1}),ne&&w?jsx(ne,{className:Te({validationState:n,isReadOnly:f$2}),size:16}):null,jsx(b$4,{...L,onPressStart:B=>{L.onPressStart?.(B),U?.(B);},ref:G,"data-testid":"combobox-toggle-button",variant:"popover",label:null,"aria-label":se??L["aria-label"],"aria-labelledby":se?void 0:L["aria-labelledby"],className:Ae({isFocusVisible:!o.isDisabled&&!f$2&&re,isHovered:!o.isDisabled&&!f$2&&oe,isOpen:_.isOpen})})]}),c$3==="top"&&R]})};return jsxs(Fragment,{children:[ae?jsx(a$e,{...ae,children:ie}):ie(),jsx(a$f,{ref:T,triggerRef:Q,state:_,isNonModal:true,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsx(b$2.Provider,{value:_,children:jsx(a$g.Provider,{value:useMemo(()=>({...$,ref:J}),[$]),children:jsx(q,{selectionMode:"single",className:a$h(f$1,Ke,"BaselineUI-ComboBox-ListBox")})})})})]})});Qe.displayName="ComboBoxInner";export{Je as a};
|
package/dist/chunk-H2SJLW7T.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-KOPAIJJU.mjs';import {a as a$5}from'./chunk-F3EOLTFM.mjs';import {a as a$2}from'./chunk-7JE2SRIH.mjs';import {d}from'./chunk-Z2PHVVX4.mjs';import {q}from'./chunk-OO3ZVB2T.mjs';import {b}from'./chunk-DOFT4BQH.mjs';import {c as c$1,b as b$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$3}from'./chunk-DIL5HL6K.mjs';import {a as a$6}from'./chunk-LHLY432N.mjs';import {b as b$2}from'./chunk-DLJHL4V7.mjs';import {j}from'./chunk-TYOEGCPS.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {MinusIcon}from'@baseline-ui/icons/12';import {AttachmentsIcon,ErrorCircleFilledIcon}from'@baseline-ui/icons/16';import {sprinkles}from'@baseline-ui/tokens';import c from'react';import {PagePortraitIcon}from'@baseline-ui/icons/24';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var U=a({defaultClassName:"_1x35j5gm _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6g9 _1yep5z6mf _1yep5z6mh _1yep5z6hg",variantClassNames:{variant:{expanded:"_1x35j5gn _1yep5z6ms _1yep5z6mt _1yep5z6mu _1yep5z6p4 _1yep5z6p5 _1yep5z6p6 _1yep5z6qa _1yep5z6qb _1yep5z6qc _1yep5z6ny _1yep5z6nz _1yep5z6o0 _1yep5z615x _1yep5z615y _1yep5z615z _1yep5z616i _1yep5z616j _1yep5z616k",grid:"_1x35j5go _1yep5z6mp _1yep5z6mq _1yep5z6mr _1yep5z6p1 _1yep5z6p2 _1yep5z6p3 _1yep5z6q7 _1yep5z6q8 _1yep5z6q9 _1yep5z6nv _1yep5z6nw _1yep5z6nx _1yep5z615r _1yep5z615s _1yep5z615t _1yep5z6163 _1yep5z6164 _1yep5z6165 _1yep5z616i _1yep5z616j _1yep5z616k _1yep5z6w1 _1yep5z6w2 _1yep5z6w3"},isHovered:{true:"_1yep5z6143 _1yep5z612t"},isFocusVisible:{true:"_1yep5z618q _1yep5z618s _1yep5z618t _1yep5z614w"},isDisabled:{true:"_1yep5z6146"}},defaultVariants:{},compoundVariants:[]}),G=a({defaultClassName:"_1x35j5gx _1yep5z6du _1yep5z6f0",variantClassNames:{variant:{expanded:"_1x35j5gy _1yep5z6r7 _1yep5z6r8 _1yep5z6r9",grid:"_1x35j5gz"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),K="_1x35j5gw",Y="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6m3",J=a({defaultClassName:"_1x35j5g12 _1yep5z6f9",variantClassNames:{isDisabled:{true:"_1yep5z611u"}},defaultVariants:{},compoundVariants:[]}),Q=a({defaultClassName:"_1x35j5gb _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{variant:{expanded:"_1x35j5gc _1yep5z615r _1yep5z615s _1yep5z615t _1yep5z6163 _1yep5z6164 _1yep5z6165",grid:"_1x35j5gd"},isCentered:{true:"_1yep5z6w4 _1yep5z6w5 _1yep5z6w6 _1yep5z617c _1yep5z617d _1yep5z617e",false:"_1x35j5gf"}},defaultVariants:{},compoundVariants:[[{variant:"grid",isCentered:false},"_1x35j5gg"],[{variant:"grid",isCentered:true},"_1x35j5gh"]]}),W=a({defaultClassName:"_1x35j5gs _1yep5z6e5 _1yep5z6ey",variantClassNames:{variant:{expanded:"_1x35j5gt",grid:"_1yep5z610n"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),X=a({defaultClassName:"_1x35j5gi _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{variant:{expanded:"_1yep5z618m",grid:"_1x35j5gk"},hasAction:{true:"_1x35j5gl"}},defaultVariants:{},compoundVariants:[]}),Z=a({defaultClassName:"_1x35j5g14 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6m3 _1yep5z6gc",variantClassNames:{isDisabled:{true:"_1x35j5g15"}},defaultVariants:{},compoundVariants:[]}),$="_1x35j5g11",ee="_1yep5z6e5 _1yep5z6ez",ae="_1x35j5g0 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3 _1yep5z6m6",re=a({defaultClassName:"_1x35j5g9 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69l _1yep5z69m _1yep5z69n",variantClassNames:{isCentered:{true:"_1x35j5ga _1yep5z616i _1yep5z616j _1yep5z616k"}},defaultVariants:{},compoundVariants:[]}),te=a({defaultClassName:"_1x35j5g1 _1yep5z68f _1yep5z68g _1yep5z68h _1yep5z663 _1yep5z664 _1yep5z665 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1x35j5g2"},isError:{true:"_1x35j5g3"},isDisabled:{true:"_1x35j5g4"}},defaultVariants:{},compoundVariants:[]}),ie="_1x35j5g5 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6m3",pe=a({defaultClassName:"_1x35j5g7 _1yep5z6dy _1yep5z6ey",variantClassNames:{isLoading:{true:"_1yep5z611j"}},defaultVariants:{},compoundVariants:[]}),oe="_1yep5z64r _1yep5z64s _1yep5z64t _1yep5z673 _1yep5z674 _1yep5z675 _1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",se="_1x35j5g6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jw _1yep5z6jx _1yep5z6jy _1yep5z6kt _1yep5z6ku _1yep5z6kv";function ye({item:e,variant:l,isHovered:p,isFocusVisible:y,isDisabled:r}){let t=c.useMemo(()=>jsx(PagePortraitIcon,{width:24,height:24,className:J({isDisabled:r})}),[r]),_=c.useMemo(()=>({fallback:t}),[t]),o=jsx(b,{slot:"label",className:W({variant:l,isDisabled:r}),children:e.name}),n=jsxs(b,{slot:"description",className:K,children:[e.description?jsx("span",{className:G({variant:l,isDisabled:r}),children:e.description}):null,l==="expanded"&&e.tag?jsx("span",{className:$,children:jsx(d,{elementType:"span",size:"sm",variant:e.tag.variant,isDisabled:r,children:e.tag.label})}):null]});return jsx(a$3,{elementType:"span",className:U({variant:l,isDisabled:r,isHovered:p,isFocusVisible:y}),children:l==="grid"?jsxs(Fragment,{children:[jsx(a$3,{elementType:"span",className:Z({isDisabled:r}),children:jsx(a$4.Provider,{value:_,children:e.preview??t})}),jsxs("span",{className:Y,children:[o,n]})]}):jsxs(Fragment,{children:[t,o,n]})})}var we=sprinkles({color:"icon.secondary"}),Ne=sprinkles({color:"support.error.medium"}),he=a$1(sprinkles({display:"flex",flexDirection:"column",width:"full",paddingY:"md"}),"BaselineUI-Box");function Le({item:e,isFocusVisible:l,isDisabled:p,onRemove:y,loadingLabel:r,removeHintLabel:t}){let{formatMessage:_}=b$1(),o=!!e.isLoading,n=!!(e.errorMessage||e.errorExplanation),f=!p&&!o&&!!y,j=(typeof r=="function"?r({fileName:e.name}):r)??_(_e.loading,{fileName:e.name}),u=e.name;return o?u=j:f&&(u=(typeof t=="function"?t({fileName:e.name}):t)??_(_e.removeHint,{fileName:e.name})),jsxs("div",{className:te({isDisabled:p,isFocusVisible:l,isError:n}),"data-error":n||void 0,children:[jsx(b$2,{children:jsx(b,{slot:"label",children:u})}),jsxs("div",{className:ie,children:[jsx(AttachmentsIcon,{width:16,height:16,className:we}),jsx("span",{className:se,children:jsx("span",{className:pe({isLoading:o}),title:e.name,children:e.name})}),jsxs(a$3,{elementType:"span",display:"flex",alignItems:"center",gap:"xs",flexShrink:0,children:[n?jsx(ErrorCircleFilledIcon,{width:16,height:16,className:Ne}):null,o?jsx(a$5,{size:"sm",className:oe,"aria-label":j}):y?jsx(a$6,{icon:MinusIcon,size:"xs",variant:"secondary",excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:p,onPress:()=>{y(e.id);},UNSAFE_isVisuallyInteractiveOnly:true}):null]})]}),jsxs(b,{slot:"description",elementType:"div",className:n?he:void 0,children:[e.errorMessage?jsx(a$3,{elementType:"span",typography:"label.sm.medium",color:"support.error.medium",children:e.errorMessage}):null,e.errorExplanation?jsx(a$3,{elementType:"span",typography:"label.sm.medium",color:"text.helper",children:e.errorExplanation}):null]})]})}var de=c.forwardRef(({className:e,style:l,variant:p="compact",label:y,onAction:r,items:t,onRemove:_,disabledKeys:o,loadingLabel:n,removeHintLabel:f,"aria-label":j$1,"aria-labelledby":u,"aria-describedby":me,"aria-details":ze},ce)=>{let{isCentered:k=false,isDisabled:xe}=c.useContext(a$2),T=c.useId(),w=p==="compact",b=xe||o==="all",v=c.useMemo(()=>new Set(o&&o!=="all"?o:[]),[o]),N=c.useMemo(()=>new Map(t.map(a=>[a.id,a])),[t]),V=c.useMemo(()=>t.map(a=>({id:a.id,label:a.name})),[t]),ue=c.useCallback((a,{isHovered:I,isFocusVisible:h})=>{let d=N.get(a.id);if(!d)return null;let B=b||v.has(d.id);return p!=="compact"?jsx(ye,{item:d,variant:p,isHovered:I,isFocusVisible:h,isDisabled:B}):jsx(Le,{item:d,isFocusVisible:h,isDisabled:B,onRemove:_,loadingLabel:n,removeHintLabel:f})},[N,p,b,v,_,n,f]);if(!t.length)return null;let ge=b?V.map(a=>a.id):v,fe=a=>{if(!_||!w||a.key!=="Delete"&&a.key!=="Backspace"||b)return;let d=j(a)?.closest("[data-key]")?.dataset.key;d&&(v.has(d)||N.get(d)?.isLoading||(a.preventDefault(),_(d)));};return jsxs(a$3,{ref:ce,className:a$1(re({isCentered:k}),"BaselineUI-FileList",e),style:l,onKeyDown:fe,children:[y?jsx("div",{id:T,className:ee,children:y}):null,jsx(q,{"aria-label":j$1,"aria-labelledby":[u,y?T:null].filter(Boolean).join(" ")||void 0,"aria-describedby":me,"aria-details":ze,items:V,selectionMode:"none",layout:p==="grid"?"grid":"stack",disabledKeys:ge,className:w?ae:Q({variant:p,isCentered:k}),optionClassName:w?void 0:X({variant:p,hasAction:!!r}),renderOption:ue,onAction:r?a=>{r(String(a));}:void 0})]})});de.displayName="FileList";var _e=c$1({loading:{id:"bui.fileList.loading",defaultMessage:"Loading {fileName}"},removeHint:{id:"bui.fileList.removeHint",defaultMessage:"{fileName}, press Delete or Backspace to remove"}});export{de as a};
|