@baseline-ui/core 3.7.0 → 3.9.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.css +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.css +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Breadcrumbs.mjs +1 -1
- package/dist/ButtonSelect.css +1 -1
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.css +1 -1
- package/dist/Calendar.mjs +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ColorInput.css +1 -1
- package/dist/ColorInput.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.css +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.css +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/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.css +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileInput.css +1 -1
- package/dist/FileInput.mjs +1 -1
- package/dist/FileList.css +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.css +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FrameProvider.mjs +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/Group.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.css +10 -0
- package/dist/Image.mjs +1 -0
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.css +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/Menu.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberInput.css +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.css +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.mjs +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.css +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Slider.css +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.css +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.css +1 -1
- package/dist/TextInput.mjs +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/TimeField.css +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.css +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/Virtualizer.mjs +1 -1
- package/dist/chunk-25NW6ZEB.mjs +10 -0
- package/dist/chunk-2O4HB7UL.mjs +10 -0
- package/dist/{chunk-4QGZDJW4.mjs → chunk-2UDXAKWA.mjs} +1 -1
- package/dist/{chunk-ETM4MNG4.mjs → chunk-35AM4QEA.mjs} +1 -1
- package/dist/{chunk-XO7MAUFC.mjs → chunk-3COKCTB2.mjs} +2 -2
- package/dist/chunk-3JOOFCEF.mjs +10 -0
- package/dist/{chunk-4S4GGUSH.mjs → chunk-3PBFSDMT.mjs} +1 -1
- package/dist/{chunk-G5MSZV5O.mjs → chunk-3V4W6OGG.mjs} +1 -1
- package/dist/{chunk-CU6D2EA6.mjs → chunk-3ZX5CLZO.mjs} +1 -1
- package/dist/chunk-45EAFDOZ.mjs +10 -0
- package/dist/{chunk-IROFSPEN.mjs → chunk-4HOAPQDQ.mjs} +1 -1
- package/dist/{chunk-KHDWTXGG.mjs → chunk-4PZGQTXE.mjs} +1 -1
- package/dist/{chunk-B5VHU77N.mjs → chunk-54MWEZUP.mjs} +2 -2
- package/dist/chunk-5GZAORDK.mjs +10 -0
- package/dist/{chunk-BA5OA5DY.mjs → chunk-5LGYS5CZ.mjs} +1 -1
- package/dist/chunk-5MR5L5JZ.mjs +10 -0
- package/dist/{chunk-XAM3AXXK.mjs → chunk-64ZD4EKW.mjs} +1 -1
- package/dist/{chunk-YS3Z53YT.mjs → chunk-67QIBKUN.mjs} +1 -1
- package/dist/{chunk-YAI33K42.mjs → chunk-6CSP66NI.mjs} +1 -1
- package/dist/{chunk-LSPDPDB6.mjs → chunk-6HTOSJOJ.mjs} +1 -1
- package/dist/chunk-6LFOODXI.mjs +10 -0
- package/dist/chunk-6MTVNQKW.mjs +10 -0
- package/dist/{chunk-YNJD34U4.mjs → chunk-6NUHEJGL.mjs} +1 -1
- package/dist/{chunk-QIYZRQGP.mjs → chunk-6PBBHYCA.mjs} +1 -1
- package/dist/chunk-6RN7DKRF.mjs +10 -0
- package/dist/{chunk-S2XIFW52.mjs → chunk-7JE2SRIH.mjs} +2 -2
- package/dist/{chunk-I7LPPUZS.mjs → chunk-A455VRNY.mjs} +1 -1
- package/dist/{chunk-GQIS4QBN.mjs → chunk-A63HMTSM.mjs} +1 -1
- package/dist/chunk-AALXW5AP.mjs +10 -0
- package/dist/{chunk-5GW36EQJ.mjs → chunk-AC44TKUI.mjs} +1 -1
- package/dist/{chunk-QL7SC5BW.mjs → chunk-ADEALCJB.mjs} +1 -1
- package/dist/{chunk-SGZWUG3H.mjs → chunk-ALMW6S4I.mjs} +1 -1
- package/dist/{chunk-6DETJFO2.mjs → chunk-ARMWQYH2.mjs} +1 -1
- package/dist/chunk-B3W7VMJR.mjs +10 -0
- package/dist/{chunk-ZZ7YJ2FN.mjs → chunk-B5NICAFU.mjs} +1 -1
- package/dist/{chunk-Q6R75IOP.mjs → chunk-BFW26T6V.mjs} +1 -1
- package/dist/{chunk-EGLD5KVP.mjs → chunk-BK3RBPST.mjs} +1 -1
- package/dist/{chunk-TLU2GNUT.mjs → chunk-BPLTQDXX.mjs} +1 -1
- package/dist/{chunk-4WVW4KEK.mjs → chunk-BSFG32AL.mjs} +1 -1
- package/dist/{chunk-FJO6KCT5.mjs → chunk-C4XJOYAW.mjs} +1 -1
- package/dist/{chunk-UZ672WDX.mjs → chunk-CFDIUF4H.mjs} +1 -1
- package/dist/{chunk-6CEV43ZA.mjs → chunk-CHBF3XQ6.mjs} +1 -1
- package/dist/chunk-CIOPWCOS.mjs +10 -0
- package/dist/{chunk-UI2VBG26.mjs → chunk-CKUHFL5G.mjs} +1 -1
- package/dist/{chunk-GMALMQWI.mjs → chunk-D2NVLRIU.mjs} +1 -1
- package/dist/{chunk-JHA7DIPG.mjs → chunk-D6AOHRAV.mjs} +1 -1
- package/dist/chunk-DFMPVQM3.mjs +10 -0
- package/dist/{chunk-MHAPHPNN.mjs → chunk-DHZKZ3AV.mjs} +1 -1
- package/dist/{chunk-K5RYVERS.mjs → chunk-DLJHL4V7.mjs} +1 -1
- package/dist/{chunk-4Y4WKIL5.mjs → chunk-DOFT4BQH.mjs} +1 -1
- package/dist/{chunk-235S3EB7.mjs → chunk-DPFX25HC.mjs} +1 -1
- package/dist/{chunk-73UBSCJ2.mjs → chunk-DRQHSYY3.mjs} +1 -1
- package/dist/{chunk-AQTRFPF2.mjs → chunk-DV72V6NI.mjs} +1 -1
- package/dist/chunk-DZFNVFYT.mjs +10 -0
- package/dist/chunk-DZJTPX2G.mjs +10 -0
- package/dist/chunk-E2VXJPSE.mjs +10 -0
- package/dist/chunk-E3TD3EJQ.mjs +10 -0
- package/dist/{chunk-EFFODO2N.mjs → chunk-E6DZSC2G.mjs} +1 -1
- package/dist/{chunk-I7SMG6PT.mjs → chunk-EISLHUT5.mjs} +1 -1
- package/dist/chunk-ENUU2IVX.mjs +10 -0
- package/dist/{chunk-OQPYPKZV.mjs → chunk-ES3IQZSH.mjs} +1 -1
- package/dist/{chunk-KVIV5RTE.mjs → chunk-F3EOLTFM.mjs} +1 -1
- package/dist/chunk-F4YBUGLD.mjs +10 -0
- package/dist/{chunk-STMDFIUL.mjs → chunk-FDDB7QNQ.mjs} +1 -1
- package/dist/{chunk-Z4QTH4TB.mjs → chunk-FTV6OWMI.mjs} +1 -1
- package/dist/chunk-G76NJ3IU.mjs +10 -0
- package/dist/{chunk-INFMXVHD.mjs → chunk-GIUNLLWW.mjs} +1 -1
- package/dist/{chunk-UPCEZ32D.mjs → chunk-GLIN7JAI.mjs} +1 -1
- package/dist/{chunk-S4HLMIFK.mjs → chunk-GOCBU65X.mjs} +1 -1
- package/dist/{chunk-D4NW56YQ.mjs → chunk-GPT4DR4P.mjs} +1 -1
- package/dist/{chunk-BULEKXBD.mjs → chunk-GXQQZWIP.mjs} +1 -1
- package/dist/{chunk-GCBMNOA6.mjs → chunk-HNKEI45D.mjs} +1 -1
- package/dist/chunk-IBBDZQPO.mjs +10 -0
- package/dist/{chunk-F7WPMQ3P.mjs → chunk-IIBBR266.mjs} +1 -1
- package/dist/{chunk-MURSKAKT.mjs → chunk-INHZHYOF.mjs} +1 -1
- package/dist/{chunk-BGRGRUG4.mjs → chunk-IOHULFEP.mjs} +1 -1
- package/dist/{chunk-TUY23KMK.mjs → chunk-IVM5IBQS.mjs} +1 -1
- package/dist/{chunk-FX3THTOK.mjs → chunk-J7BCMF23.mjs} +1 -1
- package/dist/chunk-JB3UIJ3I.mjs +10 -0
- package/dist/{chunk-UFN2OAM2.mjs → chunk-JC22ELJM.mjs} +1 -1
- package/dist/chunk-JDDA4R2D.mjs +10 -0
- package/dist/{chunk-NO3DNA2U.mjs → chunk-JIGOXUY4.mjs} +1 -1
- package/dist/{chunk-KX7WG3L4.mjs → chunk-JOK6I52O.mjs} +1 -1
- package/dist/{chunk-6GV3YWV7.mjs → chunk-JTGVIAOK.mjs} +1 -1
- package/dist/chunk-JVD752FA.mjs +10 -0
- package/dist/{chunk-NT2MFIKD.mjs → chunk-JXJZIKEY.mjs} +1 -1
- package/dist/chunk-K276BGP2.mjs +10 -0
- package/dist/{chunk-TIGGKOJQ.mjs → chunk-KADD66HZ.mjs} +1 -1
- package/dist/{chunk-QAAOC64D.mjs → chunk-KBLJ34QI.mjs} +1 -1
- package/dist/{chunk-X3ACY7IY.mjs → chunk-KFJE5ZBK.mjs} +1 -1
- package/dist/{chunk-23WMOYTQ.mjs → chunk-KMSNBINF.mjs} +1 -1
- package/dist/{chunk-SZCVQU55.mjs → chunk-KMZ3YVPE.mjs} +1 -1
- package/dist/chunk-KOPAIJJU.mjs +10 -0
- package/dist/{chunk-C4WHTPLY.mjs → chunk-KRVEGSVY.mjs} +1 -1
- package/dist/{chunk-VPVF5N62.mjs → chunk-L5H5GE3H.mjs} +1 -1
- package/dist/{chunk-6TRBOQVN.mjs → chunk-L6ISOTLH.mjs} +1 -1
- package/dist/chunk-LHLY432N.mjs +10 -0
- package/dist/{chunk-2JGVUCP5.mjs → chunk-LN2NT32E.mjs} +1 -1
- package/dist/{chunk-B3EZOXNU.mjs → chunk-LRFFL765.mjs} +1 -1
- package/dist/{chunk-PCR5FD43.mjs → chunk-LXZOYBTL.mjs} +1 -1
- package/dist/chunk-LZEZW5RE.mjs +10 -0
- package/dist/{chunk-EGYIHFEQ.mjs → chunk-M7BCIQ2J.mjs} +1 -1
- package/dist/{chunk-2VOWBYNS.mjs → chunk-MPJXTZ6L.mjs} +1 -1
- package/dist/{chunk-SAATXQOW.mjs → chunk-MUQR2YER.mjs} +1 -1
- package/dist/{chunk-NUCSMH4S.mjs → chunk-N4NDPTX6.mjs} +1 -1
- package/dist/chunk-NN6HKMC4.mjs +10 -0
- package/dist/{chunk-KUDCYGII.mjs → chunk-NQVTVL24.mjs} +1 -1
- package/dist/chunk-NTUW55EB.mjs +10 -0
- package/dist/{chunk-6Z3GYFG5.mjs → chunk-NWYRVUTX.mjs} +1 -1
- package/dist/{chunk-RINS2TBF.mjs → chunk-NYNS3UDR.mjs} +1 -1
- package/dist/{chunk-MKHLBKSN.mjs → chunk-OAOIUNNG.mjs} +1 -1
- package/dist/{chunk-5USQ6HBY.mjs → chunk-OKEXEU3C.mjs} +1 -1
- package/dist/chunk-OMCGORTH.mjs +10 -0
- package/dist/{chunk-3IPRT57V.mjs → chunk-OO3ZVB2T.mjs} +2 -2
- package/dist/{chunk-TZGK36KC.mjs → chunk-OS6PVCFX.mjs} +1 -1
- package/dist/{chunk-EDMVODCD.mjs → chunk-P6LYION6.mjs} +1 -1
- package/dist/{chunk-3WKDIXCM.mjs → chunk-PJINRIA6.mjs} +1 -1
- package/dist/{chunk-6DYTFYPO.mjs → chunk-PLRUMLNB.mjs} +1 -1
- package/dist/{chunk-YF63IQQR.mjs → chunk-PQIDCA7P.mjs} +1 -1
- package/dist/{chunk-6Q5PNIYZ.mjs → chunk-PSUZMSD3.mjs} +1 -1
- package/dist/{chunk-VFO35ZLL.mjs → chunk-Q3FYMLAA.mjs} +1 -1
- package/dist/{chunk-Y2MIU76N.mjs → chunk-QSFRMY47.mjs} +1 -1
- package/dist/{chunk-HH4VLTF3.mjs → chunk-QVFGEXDU.mjs} +1 -1
- package/dist/{chunk-MBRNO6IW.mjs → chunk-R5JHN4X6.mjs} +1 -1
- package/dist/{chunk-NLVJYKSA.mjs → chunk-R7Y36JCO.mjs} +1 -1
- package/dist/chunk-RFCTQQMD.mjs +10 -0
- package/dist/{chunk-5ZC64ZG7.mjs → chunk-RXADOJLS.mjs} +1 -1
- package/dist/{chunk-PPHSLODC.mjs → chunk-SCJ3RG7B.mjs} +1 -1
- package/dist/chunk-SCUNJNIO.mjs +0 -0
- package/dist/{chunk-PMDRFB75.mjs → chunk-SI7LO2L4.mjs} +1 -1
- package/dist/{chunk-ZC5WXVNV.mjs → chunk-SY24O432.mjs} +1 -1
- package/dist/{chunk-KQOXSF4J.mjs → chunk-SYA6LAFU.mjs} +1 -1
- package/dist/{chunk-IIURKT24.mjs → chunk-SZNDCHMJ.mjs} +1 -1
- package/dist/{chunk-QUWRO3HT.mjs → chunk-TEQHGF4G.mjs} +1 -1
- package/dist/{chunk-TYKMNZJ4.mjs → chunk-TGLVJRZE.mjs} +1 -1
- package/dist/{chunk-GFBRKKX4.mjs → chunk-TN7FPPGM.mjs} +1 -1
- package/dist/chunk-TYOEGCPS.mjs +10 -0
- package/dist/{chunk-R6TFTLMV.mjs → chunk-U6M2GCPD.mjs} +1 -1
- package/dist/{chunk-6QQEK5I6.mjs → chunk-UBC32WQB.mjs} +1 -1
- package/dist/{chunk-P6V5EAYL.mjs → chunk-UCRJ3AR5.mjs} +1 -1
- package/dist/{chunk-BTPAZDGG.mjs → chunk-UI4SJCQU.mjs} +1 -1
- package/dist/{chunk-7SQRBY7N.mjs → chunk-UKBBSYRC.mjs} +1 -1
- package/dist/{chunk-IM3E5JL4.mjs → chunk-UPOQXYUI.mjs} +1 -1
- package/dist/{chunk-22MA6EYO.mjs → chunk-UQJB6AGO.mjs} +1 -1
- package/dist/{chunk-AI6WQPRX.mjs → chunk-UR42GQO4.mjs} +1 -1
- package/dist/{chunk-SXZP556C.mjs → chunk-V6DZG4PM.mjs} +1 -1
- package/dist/chunk-VEIBPZDL.mjs +10 -0
- package/dist/{chunk-LY2ZVEGJ.mjs → chunk-VKWXATZ3.mjs} +1 -1
- package/dist/{chunk-54ZKQAA3.mjs → chunk-VNJDCKLQ.mjs} +1 -1
- package/dist/{chunk-F3THHK5C.mjs → chunk-VPN55UVA.mjs} +1 -1
- package/dist/{chunk-QMV2O57M.mjs → chunk-VQ45RUYJ.mjs} +1 -1
- package/dist/chunk-VQHI3ZCW.mjs +10 -0
- package/dist/{chunk-BGQRLALS.mjs → chunk-VSGVHATE.mjs} +1 -1
- package/dist/{chunk-IMXJCV7G.mjs → chunk-VWSTMBQK.mjs} +1 -1
- package/dist/chunk-VYBJ36ZR.mjs +10 -0
- package/dist/{chunk-YDUKC7QS.mjs → chunk-W3YUV7IF.mjs} +1 -1
- package/dist/{chunk-4QBHQCCK.mjs → chunk-WAPBLICF.mjs} +1 -1
- package/dist/chunk-WBOFQ4BH.mjs +10 -0
- package/dist/{chunk-CIPPPD6E.mjs → chunk-WD2TPSZV.mjs} +1 -1
- package/dist/{chunk-TAT552A5.mjs → chunk-WID7IWNC.mjs} +1 -1
- package/dist/chunk-WSRXTVYB.mjs +10 -0
- package/dist/{chunk-O7IU5NHN.mjs → chunk-WXILHRBE.mjs} +1 -1
- package/dist/{chunk-4I7K4CCG.mjs → chunk-X34RHNLT.mjs} +1 -1
- package/dist/{chunk-XOS3JIQX.mjs → chunk-X6K4M542.mjs} +1 -1
- package/dist/chunk-XC5H4EVW.mjs +10 -0
- package/dist/chunk-XF65LVBQ.mjs +10 -0
- package/dist/{chunk-XVL2GXTB.mjs → chunk-XKNL5LSL.mjs} +2 -2
- package/dist/{chunk-4P247R4V.mjs → chunk-Y6PZKRST.mjs} +1 -1
- package/dist/{chunk-7YCV7MPI.mjs → chunk-YK3KAPIK.mjs} +2 -2
- package/dist/{chunk-OVJT5F2R.mjs → chunk-YQFS4UHL.mjs} +1 -1
- package/dist/{chunk-5YKRWGEJ.mjs → chunk-YSQ3YHJN.mjs} +2 -2
- package/dist/{chunk-VQ2K6Q3G.mjs → chunk-Z7JRM3NW.mjs} +2 -2
- package/dist/chunk-Z7UPVYL5.mjs +10 -0
- package/dist/{chunk-CBV6KXGO.mjs → chunk-ZRD2DMEX.mjs} +1 -1
- package/dist/hooks/useDevice.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/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/index.css +1 -1
- package/dist/index.d.ts +280 -60
- 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/package.json +5 -5
- package/sbom.json +13 -13
- package/dist/chunk-2JRDTJWJ.mjs +0 -10
- package/dist/chunk-5EI2562M.mjs +0 -10
- package/dist/chunk-5ILCVLWY.mjs +0 -10
- package/dist/chunk-5W6G3ZUT.mjs +0 -10
- package/dist/chunk-7DCQF3EP.mjs +0 -10
- package/dist/chunk-BROSGYL3.mjs +0 -10
- package/dist/chunk-BSSLS6MF.mjs +0 -10
- package/dist/chunk-CD5KKXIM.mjs +0 -10
- package/dist/chunk-CY6W27WG.mjs +0 -10
- package/dist/chunk-DG5VNJOH.mjs +0 -10
- package/dist/chunk-F56P4EKI.mjs +0 -10
- package/dist/chunk-GJ6ZPLFR.mjs +0 -10
- package/dist/chunk-HTRO6BM5.mjs +0 -10
- package/dist/chunk-IN7BLI4M.mjs +0 -10
- package/dist/chunk-IVDIKT6F.mjs +0 -10
- package/dist/chunk-JXCL5CUV.mjs +0 -10
- package/dist/chunk-L45T2KGW.mjs +0 -10
- package/dist/chunk-LDWNE2JT.mjs +0 -10
- package/dist/chunk-M3R4ZM34.mjs +0 -10
- package/dist/chunk-MJPCLLDU.mjs +0 -10
- package/dist/chunk-MYT5CSGX.mjs +0 -10
- package/dist/chunk-NKC4MIX3.mjs +0 -10
- package/dist/chunk-NWWH62TU.mjs +0 -10
- package/dist/chunk-O6PPXOEX.mjs +0 -10
- package/dist/chunk-OPIPJTLG.mjs +0 -10
- package/dist/chunk-PG3WDHSK.mjs +0 -10
- package/dist/chunk-PR3CD3UC.mjs +0 -10
- package/dist/chunk-SBR5UAUY.mjs +0 -10
- package/dist/chunk-SD43KVTU.mjs +0 -10
- package/dist/chunk-SSWWJZRE.mjs +0 -10
- package/dist/chunk-SZTFMBPY.mjs +0 -10
- package/dist/chunk-TFBJ767L.mjs +0 -10
- package/dist/chunk-UCDGZFQ7.mjs +0 -10
- package/dist/chunk-VNWKXT3X.mjs +0 -10
- package/dist/chunk-XC2S3RLC.mjs +0 -10
- package/dist/chunk-YEIRJNEA.mjs +0 -10
- package/dist/chunk-YQKEP62C.mjs +0 -10
- package/dist/chunk-ZXN5VT4G.mjs +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-K3WFKO7R.mjs';import {d as d$1}from'./chunk-
|
|
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
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b as b$1,c as c$1,d}from'./chunk-
|
|
1
|
+
import {a,b as b$1,c as c$1,d}from'./chunk-6LFOODXI.mjs';import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-DF2D7NE6.mjs';import {b as b$2}from'./chunk-PJINRIA6.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import v,{useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-JBXZ6ZHP.mjs';import {a as a$1}from'./chunk-IOHULFEP.mjs';import {a as a$3}from'./chunk-XF65LVBQ.mjs';import {c}from'./chunk-35AM4QEA.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import D from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var h="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3",B="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kz _1yep5z6l0 _1yep5z6l1",b=a({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z612d",error:"_1yep5z6128",active:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[]}),j="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ez _1yep5z6dy",C="_12vfhl43 _1yep5z6gd _1yep5z6m3",N="_12vfhl42 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k",x="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",k=a({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6ey",variantClassNames:{hasLabel:{false:"_1yep5z6py _1yep5z6pz _1yep5z6q0"}},defaultVariants:{},compoundVariants:[]});var P=D.forwardRef(({className:V,style:T,variant:p="active",showValue:t,description:H,errorMessage:L,"data-block-id":W,"data-block-class":I,...s},R)=>{let _=c(),o=p==="error"?L:H,{minValue:l=0,maxValue:w=100,value:i=0,label:r}=s,z=Number.isNaN(i)?l:i,{labelProps:E,progressBarProps:n}=a$1({...s,value:z,"aria-describedby":[o?_:void 0,s["aria-describedby"]].filter(Boolean).join(" ")||void 0}),d=w-l,M=d>0?a$2((z-l)/d,0,1):0,q=`${Math.round(M*100)}%`,m=jsx("output",{className:k({hasLabel:!!r}),children:n["aria-valuetext"]});return jsxs("div",{...n,style:T,className:a$4(h,"BaselineUI-ProgressBar",V),"data-block-id":W,"data-block-class":I,ref:R,children:[r?jsxs("div",{className:B,children:[jsx("label",{...E,className:j,children:r}),t?m:null]}):null,jsxs("div",{className:x,children:[jsxs("div",{className:N,children:[jsx("div",{className:C,children:jsx("div",{style:{width:q},className:b({variant:p})})}),!r&&t?m:null]}),o?jsx("div",{className:a$3({hasError:p==="error"}),id:_,children:o}):null]})]})});P.displayName="ProgressBar";export{P as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
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};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {c}from'./chunk-SYA6LAFU.mjs';import {b,c as c$1,a as a$1}from'./chunk-B3W7VMJR.mjs';import {a}from'./chunk-4QEH5CGK.mjs';import {CheckmarkIcon,MinusIcon}from'@baseline-ui/icons/12';import P from'react';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 y=({label:r,...s})=>{let{isSelected:t,isIndeterminate:e,isFocusVisible:c,isDisabled:n,isReadOnly:l,isHovered:a,isInvalid:k}=s;return jsxs(Fragment,{children:[jsxs("div",{className:c$1({isSelected:t&&!e,isIndeterminate:e,isFocusVisible:c,isDisabled:n,isReadOnly:l,hasError:k,isHovered:a}),children:[t&&!e?jsx(CheckmarkIcon,{size:12}):null,e?jsx(MinusIcon,{size:12}):null]}),r?jsx("span",{className:a$1,children:r}):null]})},d=P.forwardRef(({className:r,style:s,label:t,labelPosition:e="end",slot:c$1,...n},l)=>jsx(c,{...n,className:a(b({labelPosition:e}),"BaselineUI-Checkbox",r),style:s,slot:c$1,ref:l,children:a=>jsx(y,{label:t,...a})}));d.displayName="Checkbox";export{d as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-BSFG32AL.mjs';import {a as a$1}from'./chunk-TAYP2OGC.mjs';import {a as a$8}from'./chunk-J7BCMF23.mjs';import {a as a$5}from'./chunk-7JE2SRIH.mjs';import {B}from'./chunk-TGLVJRZE.mjs';import {b}from'./chunk-GIUNLLWW.mjs';import {a as a$6}from'./chunk-DIL5HL6K.mjs';import {a as a$9}from'./chunk-ES3IQZSH.mjs';import {a as a$3}from'./chunk-FDDB7QNQ.mjs';import {a as a$2}from'./chunk-LRFFL765.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {h,j}from'./chunk-TYOEGCPS.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {UploadIcon}from'@baseline-ui/icons/20';import t from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
|
+
* 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 W=a({defaultClassName:"_12y0zas2 _1yep5z6dv _1yep5z6f0",variantClassNames:{isDisabled:{true:"_1yep5z611l"},isCompact:{true:"_12y0zas4 z9nup86"}},defaultVariants:{},compoundVariants:[]}),X=a({defaultClassName:"_12y0zasj _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6e4 _1yep5z6f5",variantClassNames:{isDisabled:{true:"_12y0zask _1yep5z611l"},isCompact:{true:"_12y0zasl _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),Y=a({defaultClassName:"_12y0zas5 _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6m3 _1yep5z6gb",variantClassNames:{isOutlined:{true:"_12y0zas6 _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi _1yep5z6z4 _1yep5z6z5 _1yep5z6z6 _1yep5z618z _1yep5z6190 _1yep5z6140"},isCompact:{true:"_12y0zas7 _1yep5z6qd _1yep5z6qe _1yep5z6qf _1yep5z6o1 _1yep5z6o2 _1yep5z6o3 _1yep5z6ms _1yep5z6mt _1yep5z6mu _1yep5z6p4 _1yep5z6p5 _1yep5z6p6 _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6179 _1yep5z617a _1yep5z617b"},hasChildrenInside:{true:"_1yep5z6n1 _1yep5z6n2 _1yep5z6n3 _1yep5z6pd _1yep5z6pe _1yep5z6pf _1yep5z6qj _1yep5z6qk _1yep5z6ql _1yep5z6o7 _1yep5z6o8 _1yep5z6o9 _1yep5z6wa _1yep5z6wb _1yep5z6wc"},isDropTarget:{true:"_1yep5z6132"},isHovered:{true:"_12y0zasa"},isFocusVisible:{true:"_12y0zasb"},isError:{true:"_1yep5z618y _1yep5z6191 _1yep5z613e"},isDisabled:{true:"_12y0zasd _1yep5z618y _1yep5z6190 _1yep5z6146"}},defaultVariants:{},compoundVariants:[[{isOutlined:false,isHovered:true},"_12y0zase"],[{isOutlined:true,isHovered:true},"_1yep5z61ql _1yep5z61pd"],[{isOutlined:true,isFocusVisible:true},"_1yep5z61pd"],[{isOutlined:true,isDisabled:true},"_1yep5z61vi"],[{isOutlined:true,isError:true},"_1yep5z61vi _1yep5z61vk _1yep5z61px"],[{isError:true},"_12y0zasf"]]}),ee=a({defaultClassName:"_12y0zasg _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z69c _1yep5z69d _1yep5z69e",variantClassNames:{hasChildrenInside:{true:"_12y0zash _1yep5z6mv _1yep5z6mw _1yep5z6mx _1yep5z6p7 _1yep5z6p8 _1yep5z6p9 _1yep5z6qd _1yep5z6qe _1yep5z6qf _1yep5z6o1 _1yep5z6o2 _1yep5z6o3"},isCompact:{true:"_12y0zasi _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6179 _1yep5z617a _1yep5z617b _1yep5z6w1 _1yep5z6w2 _1yep5z6w3 _1yep5z618m"}},defaultVariants:{},compoundVariants:[]}),re=a({defaultClassName:"_12y0zasq _1yep5z6fa",variantClassNames:{isDisabled:{true:"_1yep5z611u"}},defaultVariants:{},compoundVariants:[]}),te=a({defaultClassName:"_12y0zasm",variantClassNames:{isHovered:{true:"_12y0zasn"},isCompact:{true:"_12y0zaso z9nup86"}},defaultVariants:{},compoundVariants:[[{isCompact:true,isHovered:true},"_12y0zasp _1yep5z61o8"]]}),oe="_1yep5z6dv _1yep5z6ee",ae="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69f _1yep5z69g _1yep5z69h",se="_1yep5z6dy _1yep5z6ez",ne=a({defaultClassName:"_12y0zas0 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m3",variantClassNames:{isCompact:{true:"_12y0zas1"}},defaultVariants:{},compoundVariants:[]});var Te="Drop files here or click to upload",Re="Upload",we='[role="option"], [role="row"], [role="treeitem"], [aria-disabled="true"], [data-disabled]';function Be({dropProps:j$1,triggerProps:N,dropRef:v,className:k,contentClassName:p,triggerClassName:z,isDisabled:i,fileTriggerProps:d,labelledBy:C,describedBy:e,triggerContent:_,description:F,children:P}){let u=t.useRef(null),c$1=t.useRef(false),m=o=>{let l=o.currentTarget;if(!h(l,j(o)))return false;for(let g of o.nativeEvent.composedPath()){if(g===l)break;if(g.matches?.(we))return false}return true};return jsxs("div",{ref:v,...c(j$1,{onPointerDownCapture:()=>{c$1.current=false;},onPointerDown:o=>{c$1.current=m(o);},onClick:o=>{let l=c$1.current;c$1.current=false,!i&&l&&m(o)&&(u.current?.focus(),u.current?.click());}}),tabIndex:-1,"data-testid":"file-uploader-dropzone",className:k,children:[jsxs("div",{className:p,children:[jsx(a$8,{...d,children:jsx(a$9,{isDisabled:i,children:jsx("div",{ref:u,...N,role:"button",tabIndex:i?-1:0,"aria-labelledby":C,"aria-describedby":e,"aria-disabled":i||void 0,"data-testid":"file-uploader-trigger",className:z,children:_})})}),F]}),P]})}var ie=t.forwardRef(({className:j,style:N,variant:v,isInline:k=false,label:p,description:z,onAdd:i,accept:d,allowsMultiple:C=true,isDisabled:e,errorMessage:_,buttonLabel:F=Re,dropzoneLabel:P=Te,children:u},c$1)=>{let m=t.useId(),o=t.useId(),l=t.useId(),g=t.useId(),I=t.useId(),H=t.useRef(null),h=v===void 0||v==="dropzone"?k?"dropzone-inline":"dropzone-box":v,f=h!=="button",s=h==="dropzone-compact",le=h==="dropzone-inline"||s,O=t.Children.toArray(u).length>0,y=f&&!s&&O,ye=t.useMemo(()=>({isCentered:y,isDisabled:e}),[y,e]),T=t.useCallback(a=>{if(!a.length)return;let Pe=C?a:a.slice(0,1);i?.(Pe);},[C,i]),D={acceptedFileTypes:d?[d]:void 0,allowsMultiple:C,onSelect:a=>{a&&T([...a]);}},{dropProps:ze,isDropTarget:de}=B({ref:H,isDisabled:e,onDrop:async a=>{T(await a$1({items:a.items,accept:d}));}}),{hoverProps:_e,isHovered:ue}=a$2({isDisabled:e}),{hoverProps:ce,isHovered:me}=a$2({}),{focusProps:fe,isFocusVisible:ve}=a$3(),{focusProps:Ce,isFocusVisible:ge}=a$3(),be=!e&&(ve||ge),U=ue&&!(y&&me),he=c(e?{}:ze,_e,fe),{clipboardProps:xe}=a$4({isDisabled:e,onPaste:async a=>{T(await a$1({items:a,accept:d}));}}),je=p?m:f?I:void 0,q=[z?l:null,_?g:null].filter(Boolean).join(" ")||void 0,A=z?jsx("div",{id:l,className:W({isDisabled:e&&f,isCompact:s}),children:z}):null,Ne=p||z&&!f?jsxs("div",{className:ae,children:[p?jsx("div",{id:m,className:se,children:p}):null,f?null:A]}):null,M=O?jsx(a$5.Provider,{value:ye,children:u}):null,ke=()=>f?jsx(Be,{dropProps:he,triggerProps:c(xe,Ce),dropRef:H,className:Y({isOutlined:le,isCompact:s,isDropTarget:de,isDisabled:e,isHovered:U,isFocusVisible:be,isError:!!_,hasChildrenInside:y}),contentClassName:ee({hasChildrenInside:y,isCompact:s}),triggerClassName:X({isDisabled:e,isCompact:s}),isDisabled:e,fileTriggerProps:D,labelledBy:je,describedBy:q,triggerContent:jsxs(Fragment,{children:[jsx(UploadIcon,{width:20,height:20,className:re({isDisabled:e})}),jsx("span",{id:I,className:te({isHovered:U,isCompact:s}),children:P})]}),description:A,children:y?jsx(a$6,{width:"full",...ce,children:M}):null}):jsx(a$8,{...D,children:jsx(b,{variant:"primary",iconStart:UploadIcon,label:F,id:o,"data-testid":"file-uploader-button","aria-labelledby":p?`${m} ${o}`:void 0,isDisabled:e,"aria-describedby":q})}),Fe=_?jsx(a$6,{id:g,elementType:"span",role:"alert",className:oe,children:_}):null;return jsxs("div",{ref:c$1,className:a$7(ne({isCompact:s}),"BaselineUI-FileUploader",j),style:N,"data-variant":h,"data-testid":"file-uploader",children:[Ne,ke(),Fe,y?null:M]})});ie.displayName="FileUploader";export{ie as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-2MS356Q7.mjs';import {f,d,b,h,g as g$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-2MS356Q7.mjs';import {f,d,b,h,g as g$1}from'./chunk-XF65LVBQ.mjs';import {a as a$2}from'./chunk-DIL5HL6K.mjs';import {c as c$1}from'./chunk-4EAXDHSV.mjs';import {a}from'./chunk-LRFFL765.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import A from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-UPOQXYUI.mjs';import {a as a$1}from'./chunk-DHZKZ3AV.mjs';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-35AM4QEA.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import {useState,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
|
+
function u(r,e){try{let t=window.localStorage.getItem(r);return t?JSON.parse(t):e}catch(t){return console.log(t),e}}function h(r,e){let t=b(),[a$1,S]=useState(()=>t?e:u(r,e)),s=useRef(a$1),n=useRef(t);return a(()=>{if(!t&&n.current){n.current=false;let o=u(r,e);s.current=o,S(o);}},[e,t,r]),[a$1,o=>{try{n.current&&(n.current=!1,s.current=u(r,e));let c=typeof o=="function"?o(s.current):o;s.current=c,S(c),window.localStorage.setItem(r,JSON.stringify(c));}catch(c){console.log(c);}}]}export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-QVFGEXDU.mjs';import {d,c as c$3}from'./chunk-IIBBR266.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c as c$1,v}from'./chunk-SCJ3RG7B.mjs';import {b as b$1,c as c$2}from'./chunk-PJINRIA6.mjs';import {b}from'./chunk-TYOEGCPS.mjs';import p,{useEffect,useRef,useContext,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-IOHULFEP.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {CheckmarkCircleFilledIcon,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1}from'@baseline-ui/icons/16';import {CheckCircleFilledIcon,ErrorAltCircleFilledIcon}from'@baseline-ui/icons/20';import {assignInlineVars}from'@vanilla-extract/dynamic';import F from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b as b$1}from'./chunk-
|
|
1
|
+
import {a,b as b$1}from'./chunk-3PBFSDMT.mjs';import {b,h as h$1}from'./chunk-NQVTVL24.mjs';import {useRef,useState,useCallback}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-A63HMTSM.mjs';import {d}from'./chunk-IIBBR266.mjs';import {a as a$2}from'./chunk-SCJ3RG7B.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {a as a$1,b}from'./chunk-TYOEGCPS.mjs';import {useRef}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-BIDNNBRG.mjs';import {d}from'./chunk-
|
|
1
|
+
import {a as a$3}from'./chunk-BIDNNBRG.mjs';import {d}from'./chunk-4HOAPQDQ.mjs';import {a as a$1}from'./chunk-NQIZ3U7Q.mjs';import {e}from'./chunk-NYNS3UDR.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {b,c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import R from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-OBEPT4LR.mjs';import {a as a$3}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-OBEPT4LR.mjs';import {a as a$3}from'./chunk-DZJTPX2G.mjs';import {a as a$2}from'./chunk-BPLTQDXX.mjs';import {b,c}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-DLJHL4V7.mjs';import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {PauseIcon,PlayIcon}from'@baseline-ui/icons/24';import i from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-D2NVLRIU.mjs';import {a}from'./chunk-35AM4QEA.mjs';import {useState}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b as b$1,a as a$8}from'./chunk-
|
|
1
|
+
import {b as b$1,a as a$8}from'./chunk-4PZGQTXE.mjs';import {a,b as b$4,c}from'./chunk-NTUW55EB.mjs';import {a as a$c}from'./chunk-AC44TKUI.mjs';import {n,p}from'./chunk-OO3ZVB2T.mjs';import {a as a$7}from'./chunk-BPLTQDXX.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {b as b$2}from'./chunk-GIUNLLWW.mjs';import {a as a$b}from'./chunk-DIL5HL6K.mjs';import {a as a$6}from'./chunk-LHLY432N.mjs';import {a as a$5}from'./chunk-VQHI3ZCW.mjs';import {b as b$3}from'./chunk-ES3IQZSH.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-FPM5UJRF.mjs';import {a as a$9}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-LRFFL765.mjs';import {a as a$a}from'./chunk-RT4LMB6X.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import pe,{useMemo,useCallback}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-35AM4QEA.mjs';import O,{useEffect}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1,b as b$1}from'./chunk-RXADOJLS.mjs';import {b as b$2,c}from'./chunk-6RN7DKRF.mjs';import {e,f,c as c$1,d,h,g}from'./chunk-XF65LVBQ.mjs';import {a as a$7}from'./chunk-JZXLV6JU.mjs';import {a as a$6}from'./chunk-LHLY432N.mjs';import {c as c$3}from'./chunk-4EAXDHSV.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-FDDB7QNQ.mjs';import {a as a$2}from'./chunk-LRFFL765.mjs';import {c as c$2}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {MinusIcon,PlusIcon}from'@baseline-ui/icons/8';import {ReadOnlyIcon,ErrorCircleFilledIcon}from'@baseline-ui/icons/16';import k,{useMemo}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var w=a({defaultClassName:"_1lnwne1 z9nup81",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup82"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),M="_1lnwne0";var H=k.forwardRef(({className:_,style:L,labelPosition:n="top",variant:P="primary",showStepper:S=true,...e$1},U)=>{let m=k.useRef(null),{locale:z}=b(),E=a$1({...e$1,locale:z}),{hoverProps:A,isHovered:s}=a$2({isDisabled:e$1.isDisabled}),{focusProps:V,isFocusVisible:T,isFocused:o}=a$3(),{labelProps:W,decrementButtonProps:q,inputProps:G,incrementButtonProps:J,groupProps:K,descriptionProps:Q,errorMessageProps:X}=b$1({...e$1,description:b$2(e$1)},E,m),d$1=useMemo(()=>e$1.isReadOnly?ReadOnlyIcon:e$1.isInvalid?ErrorCircleFilledIcon:null,[e$1.isInvalid,e$1.isReadOnly]),t=c({description:e$1.description,errorMessageProps:X,descriptionProps:Q,errorMessage:e$1.errorMessage,labelPosition:n,isDisabled:e$1.isDisabled}),Y=a$4({"data-disabled":e$1.isDisabled,"data-readonly":e$1.isReadOnly,"data-hovered":s,"data-focused":o,"data-focus-visible":T,"data-invalid":e$1.isInvalid,"data-block-id":e$1["data-block-id"],"data-block-class":e$1["data-block-class"]});return jsxs("div",{style:L,className:a$5(g({labelPosition:n}),"BaselineUI-NumberInput",_),...Y,ref:U,children:[e$1.label||n==="start"&&t?jsxs("div",{className:f({labelPosition:n,hasMessage:!!t}),children:[e$1.label?jsx("label",{...W,className:e,children:e$1.label}):null,n==="start"&&t]}):null,jsxs("div",{className:a$5({[c$3]:e$1.isDisabled}),children:[jsxs("div",{...c$2(K,A),className:a$5(h({isHovered:s,isDisabled:!!e$1.isDisabled,isReadOnly:!!e$1.isReadOnly,validationState:e$1.isInvalid?"error":"valid",isFocused:o,variant:P}),{[M]:n==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...c$2(G,V),ref:m,className:a$5("BaselineUI-NumberInput-Input",c$1({isDisabled:e$1.isDisabled,labelPosition:n}))}),d$1?jsx(d$1,{className:d({validationState:"error",isReadOnly:e$1.isReadOnly}),size:16}):null,S?jsxs("div",{className:w({isHoveredOrFocused:s||o,isInteractive:!e$1.isReadOnly&&!e$1.isDisabled}),children:[jsx(a$6,{variant:"secondary",size:"xxs",icon:MinusIcon,...q,className:"BaselineUI-NumberInput-DecrementButton",isExcludedFromRovingFocus:true}),jsx(a$7,{style:{height:16},orientation:"vertical"}),jsx(a$6,{variant:"secondary",size:"xxs",icon:PlusIcon,...J,className:"BaselineUI-NumberInput-DecrementButton BaselineUI-NumberInput-IncrementButton",isExcludedFromRovingFocus:true})]}):null]}),n==="top"&&t]})]})});H.displayName="NumberInput";export{H as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b as b$1,a as a$2,e}from'./chunk-
|
|
1
|
+
import {b as b$1,a as a$2,e}from'./chunk-DPFX25HC.mjs';import {b as b$2}from'./chunk-GOCBU65X.mjs';import {h,j,t,u,n,a as a$3,m,p,e as e$1,v}from'./chunk-SCJ3RG7B.mjs';import {c,a as a$4}from'./chunk-PJINRIA6.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {b,a,h as h$1,j as j$1}from'./chunk-TYOEGCPS.mjs';import {flushSync}from'react-dom';import Me,{useState,useRef,useCallback,useEffect,useMemo,useContext}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-AMW7LGCF.mjs';import {c}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-AMW7LGCF.mjs';import {c}from'./chunk-TEQHGF4G.mjs';import {a as a$8}from'./chunk-UKBBSYRC.mjs';import {a as a$5}from'./chunk-LHLY432N.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {e}from'./chunk-NYNS3UDR.mjs';import {a as a$7}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-FDDB7QNQ.mjs';import {j}from'./chunk-NQVTVL24.mjs';import {c as c$1}from'./chunk-PJINRIA6.mjs';import {a as a$4}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/12';import {XIcon as XIcon$1}from'@baseline-ui/icons/16';import {SearchIcon as SearchIcon$1}from'@baseline-ui/icons/20';import {SearchIcon}from'@baseline-ui/icons/24';import O from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-U6M2GCPD.mjs';import {a as a$3}from'./chunk-RPIUPWPO.mjs';import {a as a$2}from'./chunk-2VY4FAOY.mjs';import {c}from'./chunk-PJINRIA6.mjs';import {a}from'./chunk-SVIYLH7R.mjs';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {e}from'./chunk-
|
|
1
|
+
import {e}from'./chunk-D2NVLRIU.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-35AM4QEA.mjs';import {h,j,a as a$2,i}from'./chunk-TYOEGCPS.mjs';import {useState,useRef}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-ES3IQZSH.mjs';import {j,e,c,h}from'./chunk-NYNS3UDR.mjs';import {a as a$1}from'./chunk-FDDB7QNQ.mjs';import {a}from'./chunk-LRFFL765.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-PJINRIA6.mjs';import {a as a$3}from'./chunk-SVIYLH7R.mjs';import {j as j$1}from'./chunk-TYOEGCPS.mjs';import {createContext,forwardRef}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$5}from'./chunk-JDDA4R2D.mjs';import {a as a$a}from'./chunk-IVM5IBQS.mjs';import {a as a$9}from'./chunk-NGZRN4SF.mjs';import {b as b$1}from'./chunk-DF2D7NE6.mjs';import {a as a$c}from'./chunk-2UDXAKWA.mjs';import {b as b$3,e as e$1}from'./chunk-L5H5GE3H.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {b as b$6}from'./chunk-GIUNLLWW.mjs';import {a as a$4}from'./chunk-DIL5HL6K.mjs';import {a as a$7}from'./chunk-LHLY432N.mjs';import {a as a$3}from'./chunk-D2NVLRIU.mjs';import {a as a$2}from'./chunk-5IC46G5J.mjs';import {b as b$5}from'./chunk-N2XGJKZG.mjs';import {b as b$7,j as j$2}from'./chunk-R5JHN4X6.mjs';import {e}from'./chunk-OS6PVCFX.mjs';import {a as a$6}from'./chunk-66CUIXA6.mjs';import {j}from'./chunk-NQVTVL24.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,b as b$4}from'./chunk-PJINRIA6.mjs';import {b as b$2,a as a$1}from'./chunk-35AM4QEA.mjs';import {j as j$1,b as b$8,i,a as a$b,h}from'./chunk-TYOEGCPS.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import O,{useState,useRef,useCallback,useMemo,useEffect,createElement}from'react';import {MoreIcon}from'@baseline-ui/icons/24';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Be=0,k="UNSUPPORTED_IN_MENU";function Ee(e){return useMemo(()=>O.Children.toArray(e).map(t=>{let o=t,a=`item${++Be}`,r=w(o,b$7),u=ve(o),s,f;if(r){let m=w(r,j$2);a$6(m),s=ve(m),f=w(r,a$c).props.children;}else u?s=u:s=o;let{onPress:y,label:n,"aria-label":l,iconStart:p,isDisabled:v,icon:E}=s.props,d=n||l||k;a$6(typeof d=="string","ActionGroup children must have a string label");let b=`${a}-${d}`;return createElement(a$9,{...{key:b,onPress:y,textValue:d,"aria-label":l,icon:p||E,dialogContent:f,isDisabled:v},key:b},o)}),[e])}function w(e,t){if(t)for(let o of O.Children.toArray(e)){if(!O.isValidElement(o))continue;let a=o;if(a.type===t)return a;if(a.props.children){let r=w(a.props.children,t);if(r)return r}}}function ve(e){return w(e,b$6)||w(e,a$7)}var Ve=new Set(["text","search","password","tel","url"]);function N({props:e,ref:t}){let{toolbarProps:o}=a$a(e,t),a=o.onKeyDownCapture,{direction:r}=b$5(),u=r==="rtl",s=e.orientation??"horizontal",f=n=>{let l=t.current;if(!l)return;let p=i(a$b(l));if(!p||!h(l,p)||p.dataset.buiAvoidFocus!=="true")return;let v=je(l),E=v.indexOf(p);if(E===-1)return;let d=B({key:n,orientation:s,isRTL:u});if(!d)return;let b=E+d;for(;b>=0&&b<v.length;){let R=v[b];if(R.dataset.buiAvoidFocus!=="true"&&!R.matches('[disabled], [aria-disabled="true"]')){R.focus();return}b+=d;}},y=n=>{a?.(n),f(n.key);};return {toolbarProps:{...o,onKeyDownCapture:n=>{let l=j$1(n);(!he(l)||s==="horizontal"&&Re(n,l,s))&&y(n);},onKeyDown:n=>{let l=j$1(n);n.isDefaultPrevented()||!he(l)||(n.key==="Tab"||s==="vertical"&&!We(l)&&Re(n,l,s))&&y(n);}}}}function Re(e,t,o){let{key:a}=e,{selectionStart:r,selectionEnd:u,value:s}=t;return !Ue(a,o)||e.nativeEvent.isComposing||r!==u||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey?false:B({key:a,orientation:o,isRTL:b$8(t).getComputedStyle(t).direction==="rtl"})===-1?r===0:u===s.length}function Ue(e,t){return B({key:e,orientation:t,isRTL:false})!==null}function We(e){return e.hasAttribute("list")||e.getAttribute("role")==="combobox"}function B({key:e,orientation:t,isRTL:o}){return t==="vertical"?e==="ArrowUp"?-1:e==="ArrowDown"?1:null:e==="ArrowLeft"?o?1:-1:e==="ArrowRight"?o?-1:1:null}var Fe='button, [role="button"], input, [tabindex]';function je(e){let t=[],o=a=>{t.push(...a.querySelectorAll(Fe));for(let r of a.querySelectorAll("*"))r.shadowRoot&&o(r.shadowRoot);};return o(e),t}function he(e){let t=e.tagName.toLowerCase();return t==="textarea"||t==="input"&&Ve.has(e.type)}var we="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6m3 _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6lv",Me={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var V=O.forwardRef(({className:e$2,style:t,children:o,collapsibleMenuProps:a$8,"data-block-id":r,"data-block-class":u,renderSpacer:s,onKeyDown:f,isSingleTabStop:y=true,moreLabel:n,"aria-controls":l,...p},v)=>{let{formatMessage:E}=b(),[d,b$4]=useState(),R=Ee(o),m=b$1({...p,children:R}),T=a(v),z=useRef(null),[{visibleItems:W,isMeasuring:F},j$1]=b$2({visibleItems:m.collection.size,isMeasuring:false}),D=useCallback(()=>{let i=c=>{if(z.current&&T.current){let g=[...z.current.children],S=T.current.getBoundingClientRect().width,He=c<m.collection.size,_=0,X=0;if(He){let I=g.pop();I&&(_+=Ae(I,false,true));}for(let[I,Oe]of g.entries())if(_+=Ae(Oe,I===0,I===g.length-1),Math.round(_)<=Math.round(S))X++;else break;return X}return c};j$1(function*(){yield {visibleItems:m.collection.size,isMeasuring:true};let c=i(m.collection.size),g=c<m.collection.size&&c>0;yield {visibleItems:c,isMeasuring:g},g&&(yield {visibleItems:i(c),isMeasuring:false});});},[j$1,T,m.collection.size]),Ne=useMemo(()=>({get current(){return T.current?.parentElement}}),[T]);e({ref:Ne,onResize:D}),a$1(D,[m.collection,D]);let{toolbarProps:ze}=N({props:{...p,isSingleTabStop:y},ref:T}),J=[...m.collection],De=J.slice(0,W),C=J.slice(W).filter(i=>i.textValue!==k),Se=C.length>0;useEffect(()=>{b$4(void 0);},[C.length]),useEffect(()=>{p.orientation==="vertical"&&a$2("Toolbar:verticalCollapsible","Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[p.orientation]);let{keyboardProps:_e}=j({onKeyDown:f});return jsxs(a$3,{children:[jsx("div",{...c(_e,ze),...l?{"aria-controls":l}:{},className:e$2,"data-block-id":r,"data-block-class":u,"data-collapse":true,style:{...t,flexBasis:F?"100%":void 0},ref:T,children:jsxs("div",{ref:z,className:we,children:[De.map(i=>i.rendered),Se?jsxs(Fragment,{children:[!F&&s?jsx(a$4,{flexGrow:1}):null,jsx(a$5,{placement:"bottom end",renderTrigger:({buttonProps:i,ref:c})=>jsx(a$7,{...i,size:"md",icon:MoreIcon,"aria-label":n??E(Qe.more),variant:"toolbar",ref:c,tooltip:true,"data-testid":"toolbar-overflow-button"}),...a$8,disabledKeys:C.filter(i=>i.props?.isDisabled).map(i=>i.key),items:C.map(i=>{let c=i.textValue||i["aria-label"];return a$6(c,"ActionItem must have a label"),{id:i.key,label:c,icon:i.props.icon}}),onAction:i=>{let c=m.collection.getItem(i);a$6(c,"Item not found");let{onPress:g,dialogContent:S}=c.props;g?.(),b$4(S);}})]}):null]})}),jsx(b$3,{isOpen:!!d,onOpenChange:i=>{i||b$4(void 0);},children:jsx(e$1,{enableDrawer:"auto",style:{zIndex:1e5},children:d?O.cloneElement(d,{inheritDrawer:true}):null})})]})});V.displayName="CollapsibleToolbar";function Ae(e,t,o){let r=b$8(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:Pe(r.marginLeft))+(o?0:Pe(r.marginRight))}function Pe(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var Qe=c$1({more:{id:"bui.toolbar.more",defaultMessage:"More"}});var U=O.forwardRef(({className:e,style:t,isSingleTabStop:o=true,"data-block-id":a,"data-block-class":r,"aria-controls":u,onKeyDown:s,...f},y)=>{let n=O.useRef(null),{toolbarProps:l}=N({props:{...f,isSingleTabStop:o},ref:n}),{keyboardProps:p}=j({onKeyDown:s});return jsx("div",{...c(p,l),...u?{"aria-controls":u}:{},className:a$8(Me[f.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":a,"data-block-class":r,ref:b$4(y,n),children:f.children})});U.displayName="WrappedToolbar";var xe=O.forwardRef((e,t)=>{let o=e.isCollapsible?V:U;return jsx(o,{...e,ref:t})});xe.displayName="Toolbar";export{xe as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b,a as a$1}from'./chunk-
|
|
1
|
+
import {b,a as a$1}from'./chunk-IIBBR266.mjs';import {u}from'./chunk-SCJ3RG7B.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {b as b$1,j}from'./chunk-TYOEGCPS.mjs';import {useRef,useCallback,useMemo}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {j,l,m,k,o,i,h}from'./chunk-OO3ZVB2T.mjs';import {a as a$3}from'./chunk-2UDXAKWA.mjs';import {a as a$2}from'./chunk-KCHAWPUN.mjs';import {b}from'./chunk-GIUNLLWW.mjs';import {a}from'./chunk-5LGYS5CZ.mjs';import {e}from'./chunk-NYNS3UDR.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import z,{useEffect,useContext}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 D="xyd2ss0 _1yep5z6nm _1yep5z6nn _1yep5z6no _1yep5z6py _1yep5z6pz _1yep5z6q0 _1yep5z6r4 _1yep5z6r5 _1yep5z6r6 _1yep5z6os _1yep5z6ot _1yep5z6ou _1yep5z6sa _1yep5z6sb _1yep5z6sc _1yep5z6um _1yep5z6un _1yep5z6uo _1yep5z6vs _1yep5z6vt _1yep5z6vu _1yep5z6tg _1yep5z6th _1yep5z6ti _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi _1yep5z6z4 _1yep5z6z5 _1yep5z6z6 _1yep5z618r _1yep5z618q _1yep5z614z _1yep5z618u _1yep5z612s";var P=e=>e!=null&&typeof e=="object"&&!(Symbol.iterator in e);function J(e,o,r){let t=P(o)||P(r),i=o!=null&&!P(o)||r!=null&&!P(r);return e&&i?"Menu: an object `selectionMode` expects `selectedKeys`/`defaultSelectedKeys` to be records keyed by section id.":!e&&t?"Menu: a per-section `selectedKeys`/`defaultSelectedKeys` record requires the object form of `selectionMode`.":null}var V=z.forwardRef(({defaultOpen:e,onOpenChange:o,isOpen:r,isDisabled:t,contentClassName:i,trigger:l$1,placement:a$3="bottom start",isNonModal:c,shouldFlip:n,shouldUpdatePosition:M,boundaryElement:p,boundaryAxis:d,horizontalBoundaryBehavior:x,crossOffset:$,offset:I,triggerLabel:_,renderTrigger:b$1=({buttonProps:m,ref:y})=>jsx(b,{...m,variant:"popover",ref:y,"data-testid":"menu-trigger"}),portalContainer:ee,selectionMode:u,selectedKeys:v,defaultSelectedKeys:S,onSelectionChange:K,disabledKeys:h,disallowEmptySelection:N,itemClassName:C,optionClassName:R,optionStyle:oe,renderOption:re,...w},te)=>{let m=a(ee),y=u!=null&&typeof u=="object",k=z.useMemo(()=>h==null?void 0:new Set(h),[h]),ne=z.useMemo(()=>C?(se,ie)=>a$1(C,a$2(R,se,ie)):R,[C,R]),B=J(y,v,S);if(B)throw new Error(B);return useEffect(()=>{!_&&!b$1&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[b$1,_]),jsxs(j,{defaultOpen:e,onOpenChange:o,isOpen:r,trigger:l$1==="longPress"&&!t?"longPress":"press",children:[jsx(X,{isDisabled:t,renderTrigger:b$1,triggerLabel:_}),jsx(Y,{placement:a$3,isNonModal:c,shouldFlip:n,shouldUpdatePosition:M,boundaryElement:p,boundaryAxis:d,horizontalBoundaryBehavior:x,crossOffset:$,offset:I===0?0:I||2,className:"BaselineUI-Menu-Popover",portalContainer:m,children:jsx(l,{...w,disabledKeys:k,...y?{}:{selectionMode:u,selectedKeys:v,defaultSelectedKeys:S,onSelectionChange:K,disallowEmptySelection:N},className:a$1(D,i),ref:te,children:W(w.items,m,{onAction:w.onAction,disabledKeys:k,contentClassName:i,optionClassName:ne,optionStyle:oe,renderOption:re,selection:y?{modes:u,selectedKeys:v,defaultSelectedKeys:S,onSelectionChange:K,disallowEmptySelection:N}:void 0})})})]})});function W(e,o$1,r){let{onAction:t,disabledKeys:i,contentClassName:l$1,selection:a,...c}=r;return e.map((n,M)=>{if("children"in n){let p=n,d=a?.modes[p.id];return jsx(m,{section:p,componentName:"Menu",isFirstCollectionItem:M===0,showSectionHeader:!!p.title,...c,...d?{selectionMode:d,selectedKeys:a?.selectedKeys?.[p.id],defaultSelectedKeys:a?.defaultSelectedKeys?.[p.id],disabledKeys:i,disallowEmptySelection:a?.disallowEmptySelection,onSelectionChange:x=>{a?.onSelectionChange?.(x,{sectionId:p.id});}}:{}},p.id)}return n.items?jsxs(k,{children:[jsx(o,{item:n,componentName:"Menu",...c}),jsx(Y,{className:"BaselineUI-Menu-SubmenuPopover",portalContainer:o$1,children:jsx(l,{className:a$1(D,l$1),onAction:t,disabledKeys:i,children:W(n.items,o$1,r)})})]},n.id):jsx(o,{item:n,componentName:"Menu",...c},n.id)})}var X=z.forwardRef(({renderTrigger:e,triggerLabel:o,isDisabled:r,...t},i$1)=>{let l=useContext(i);return e?.({buttonProps:{...t,isDisabled:r,label:typeof o=="function"?o(l?.isOpen||false):o,isOpen:l?.isOpen||false,className:"BaselineUI-Menu-Trigger"},ref:i$1})});X.displayName="MyTrigger";var Y=({children:e$1,...o})=>{let r=useContext(i),[t]=e(o,void 0,h);return r?.isOpen?jsx(a$3,{...t,state:r,children:e$1}):null};V.displayName="Menu";export{V as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b,c}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-
|
|
1
|
+
import {b,c}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-GIUNLLWW.mjs';import {a as a$1}from'./chunk-LHLY432N.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {WarningFilledIcon as WarningFilledIcon$1,CheckmarkCircleFilledIcon,InfoCircleFilledIcon as InfoCircleFilledIcon$1,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1,XIcon}from'@baseline-ui/icons/16';import {WarningFilledIcon,CheckCircleFilledIcon,InfoCircleFilledIcon,ErrorAltCircleFilledIcon}from'@baseline-ui/icons/20';import U from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-22BJMDCA.mjs';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-22BJMDCA.mjs';import {b}from'./chunk-TYOEGCPS.mjs';import {breakpoints}from'@baseline-ui/tokens';import {useContext,useMemo,useCallback,useSyncExternalStore}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-DOFT4BQH.mjs';import {e}from'./chunk-NYNS3UDR.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import x from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|