@baseline-ui/core 2.1.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.css +10 -0
- package/dist/Accordion.mjs +1 -0
- package/dist/ActionButton.css +10 -0
- package/dist/ActionButton.mjs +1 -0
- package/dist/ActionGroup.css +10 -0
- package/dist/ActionGroup.mjs +1 -0
- package/dist/ActionIconButton.css +10 -0
- package/dist/ActionIconButton.mjs +1 -0
- package/dist/Actionable.css +10 -0
- package/dist/Actionable.mjs +1 -0
- package/dist/AlertDialog.css +10 -0
- package/dist/AlertDialog.mjs +1 -0
- package/dist/AudioPlayer.css +10 -0
- package/dist/AudioPlayer.mjs +1 -0
- package/dist/Avatar.css +10 -0
- package/dist/Avatar.mjs +1 -0
- package/dist/Box.mjs +1 -0
- package/dist/ButtonSelect.css +10 -0
- package/dist/ButtonSelect.mjs +1 -0
- package/dist/Calendar.css +10 -0
- package/dist/Calendar.mjs +1 -0
- package/dist/Checkbox.css +10 -0
- package/dist/Checkbox.mjs +1 -0
- package/dist/Code.css +10 -0
- package/dist/Code.mjs +1 -0
- package/dist/ColorInput.css +10 -0
- package/dist/ColorInput.mjs +1 -0
- package/dist/ColorSwatch.css +10 -0
- package/dist/ColorSwatch.mjs +1 -0
- package/dist/ColorSwatchPicker.css +10 -0
- package/dist/ColorSwatchPicker.mjs +1 -0
- package/dist/ComboBox.css +10 -0
- package/dist/ComboBox.mjs +1 -0
- package/dist/DateField.css +10 -0
- package/dist/DateField.mjs +1 -0
- package/dist/DateFormat.mjs +1 -0
- package/dist/DeviceProvider.mjs +1 -0
- package/dist/Dialog.css +10 -0
- package/dist/Dialog.mjs +1 -0
- package/dist/Disclosure.css +10 -0
- package/dist/Disclosure.mjs +1 -0
- package/dist/DomNodeRenderer.mjs +1 -0
- package/dist/Drawer.css +10 -0
- package/dist/Drawer.mjs +1 -0
- package/dist/Editor.css +10 -0
- package/dist/Editor.mjs +1 -0
- package/dist/FileInput.css +10 -0
- package/dist/FileInput.mjs +1 -0
- package/dist/FileList.css +10 -0
- package/dist/FileList.mjs +1 -0
- package/dist/FileUploader.css +10 -0
- package/dist/FileUploader.mjs +1 -0
- package/dist/FrameProvider.mjs +1 -0
- package/dist/FreehandCanvas.css +10 -0
- package/dist/FreehandCanvas.mjs +1 -0
- package/dist/GridList.css +10 -0
- package/dist/GridList.mjs +1 -0
- package/dist/Group.mjs +1 -0
- package/dist/I18nProvider.mjs +1 -0
- package/dist/Icon.mjs +1 -0
- package/dist/ImageDropZone.css +10 -0
- package/dist/ImageDropZone.mjs +1 -0
- package/dist/ImageGallery.css +10 -0
- package/dist/ImageGallery.mjs +1 -0
- package/dist/InlineAlert.css +10 -0
- package/dist/InlineAlert.mjs +1 -0
- package/dist/InlineToolbar.css +10 -0
- package/dist/InlineToolbar.mjs +10 -0
- package/dist/Kbd.css +10 -0
- package/dist/Kbd.mjs +1 -0
- package/dist/Link.css +10 -0
- package/dist/Link.mjs +1 -0
- package/dist/ListBox.css +10 -0
- package/dist/ListBox.mjs +1 -0
- package/dist/Markdown.css +10 -0
- package/dist/Markdown.mjs +1 -0
- package/dist/Menu.css +10 -0
- package/dist/Menu.mjs +1 -0
- package/dist/MessageFormat.mjs +1 -0
- package/dist/Modal.css +10 -0
- package/dist/Modal.mjs +1 -0
- package/dist/NumberFormat.mjs +1 -0
- package/dist/NumberInput.css +10 -0
- package/dist/NumberInput.mjs +1 -0
- package/dist/Pagination.css +10 -0
- package/dist/Pagination.mjs +1 -0
- package/dist/Panel.css +10 -0
- package/dist/Panel.mjs +1 -0
- package/dist/PointPicker.css +10 -0
- package/dist/PointPicker.mjs +1 -0
- package/dist/Popover.css +10 -0
- package/dist/Popover.mjs +1 -0
- package/dist/Portal.css +10 -0
- package/dist/Portal.mjs +1 -0
- package/dist/PortalContainerProvider.mjs +1 -0
- package/dist/Preview.css +10 -0
- package/dist/Preview.mjs +1 -0
- package/dist/ProgressBar.css +10 -0
- package/dist/ProgressBar.mjs +1 -0
- package/dist/ProgressSpinner.css +10 -0
- package/dist/ProgressSpinner.mjs +1 -0
- package/dist/RadioGroup.css +10 -0
- package/dist/RadioGroup.mjs +1 -0
- package/dist/Reaction.css +10 -0
- package/dist/Reaction.mjs +1 -0
- package/dist/ScrollControlButton.css +10 -0
- package/dist/ScrollControlButton.mjs +1 -0
- package/dist/SearchInput.css +10 -0
- package/dist/SearchInput.mjs +1 -0
- package/dist/Select.css +10 -0
- package/dist/Select.mjs +1 -0
- package/dist/Separator.css +10 -0
- package/dist/Separator.mjs +1 -0
- package/dist/Skeleton.css +10 -0
- package/dist/Skeleton.mjs +1 -0
- package/dist/Slider.css +10 -0
- package/dist/Slider.mjs +1 -0
- package/dist/StatusCard.css +10 -0
- package/dist/StatusCard.mjs +1 -0
- package/dist/Stepper.css +10 -0
- package/dist/Stepper.mjs +1 -0
- package/dist/Switch.css +10 -0
- package/dist/Switch.mjs +1 -0
- package/dist/Table.css +10 -0
- package/dist/Table.mjs +1 -0
- package/dist/Tabs.css +10 -0
- package/dist/Tabs.mjs +1 -0
- package/dist/Tag.css +10 -0
- package/dist/Tag.mjs +1 -0
- package/dist/TagGroup.css +10 -0
- package/dist/TagGroup.mjs +1 -0
- package/dist/TaggedPagination.css +10 -0
- package/dist/TaggedPagination.mjs +1 -0
- package/dist/Text.css +10 -0
- package/dist/Text.mjs +1 -0
- package/dist/TextInput.css +10 -0
- package/dist/TextInput.mjs +1 -0
- package/dist/ThemeProvider.css +10 -0
- package/dist/ThemeProvider.mjs +1 -0
- package/dist/TimeField.css +10 -0
- package/dist/TimeField.mjs +1 -0
- package/dist/Toast.css +10 -0
- package/dist/Toast.mjs +1 -0
- package/dist/ToggleButton.css +10 -0
- package/dist/ToggleButton.mjs +1 -0
- package/dist/ToggleIconButton.css +10 -0
- package/dist/ToggleIconButton.mjs +1 -0
- package/dist/Toolbar.css +10 -0
- package/dist/Toolbar.mjs +1 -0
- package/dist/Tooltip.css +10 -0
- package/dist/Tooltip.mjs +1 -0
- package/dist/TreeView.css +10 -0
- package/dist/TreeView.mjs +1 -0
- package/dist/UNSAFE_ListBox.css +10 -0
- package/dist/UNSAFE_ListBox.mjs +1 -0
- package/dist/Virtualizer.mjs +1 -0
- package/dist/chunk-22BJMDCA.mjs +10 -0
- package/dist/chunk-246VHB32.mjs +10 -0
- package/dist/chunk-2CZ3OV4X.mjs +10 -0
- package/dist/chunk-2JANDORZ.mjs +11 -0
- package/dist/chunk-2MS356Q7.mjs +10 -0
- package/dist/chunk-2PH5GN2S.mjs +0 -0
- package/dist/chunk-2RCST7ET.mjs +10 -0
- package/dist/chunk-2UUKKXBD.mjs +10 -0
- package/dist/chunk-2VY4FAOY.mjs +10 -0
- package/dist/chunk-2WAKHFPS.mjs +10 -0
- package/dist/chunk-34TYNTXM.mjs +10 -0
- package/dist/chunk-3CWP2VCB.mjs +10 -0
- package/dist/chunk-3FYY26ED.mjs +10 -0
- package/dist/chunk-3HKG74G4.mjs +0 -0
- package/dist/chunk-3UH5CQQF.mjs +10 -0
- package/dist/chunk-3W6RWDIE.mjs +10 -0
- package/dist/chunk-44OUOGJ4.mjs +10 -0
- package/dist/chunk-4N6CLPAY.mjs +10 -0
- package/dist/chunk-4NYPVKDO.mjs +10 -0
- package/dist/chunk-4PYEGHW5.mjs +10 -0
- package/dist/chunk-4QEH5CGK.mjs +10 -0
- package/dist/chunk-4SW77SGW.mjs +10 -0
- package/dist/chunk-4WW2MVQN.mjs +0 -0
- package/dist/chunk-4ZJMZB5B.mjs +10 -0
- package/dist/chunk-545KDVGI.mjs +10 -0
- package/dist/chunk-54IAJ3RI.mjs +0 -0
- package/dist/chunk-566SP7NE.mjs +10 -0
- package/dist/chunk-5ANNWMLJ.mjs +0 -0
- package/dist/chunk-5BAHJXOI.mjs +10 -0
- package/dist/chunk-5HXTXIE5.mjs +10 -0
- package/dist/chunk-5IC46G5J.mjs +10 -0
- package/dist/chunk-5KD2MNNX.mjs +10 -0
- package/dist/chunk-5ODZPQL2.mjs +10 -0
- package/dist/chunk-5PQHOVGX.mjs +0 -0
- package/dist/chunk-5ULL6IBX.mjs +10 -0
- package/dist/chunk-5YHNHEDK.mjs +0 -0
- package/dist/chunk-63KRQW56.mjs +10 -0
- package/dist/chunk-66CUIXA6.mjs +10 -0
- package/dist/chunk-66NJ7EYY.mjs +10 -0
- package/dist/chunk-6F66XVOA.mjs +0 -0
- package/dist/chunk-6IRWW75G.mjs +10 -0
- package/dist/chunk-6IX6BM7C.mjs +0 -0
- package/dist/chunk-6XARU7F2.mjs +0 -0
- package/dist/chunk-6YQHZ5RZ.mjs +0 -0
- package/dist/chunk-6Z6HOW6T.mjs +10 -0
- package/dist/chunk-6ZFBX7C7.mjs +10 -0
- package/dist/chunk-6ZQE5SHE.mjs +10 -0
- package/dist/chunk-6ZV4UYEG.mjs +10 -0
- package/dist/chunk-77BAFSDX.mjs +10 -0
- package/dist/chunk-7AQAC6QK.mjs +10 -0
- package/dist/chunk-7AY6C5M5.mjs +10 -0
- package/dist/chunk-7PRJIPFA.mjs +10 -0
- package/dist/chunk-7ZYMMUDM.mjs +10 -0
- package/dist/chunk-A24DWFQ2.mjs +10 -0
- package/dist/chunk-A6ZQQSAX.mjs +10 -0
- package/dist/chunk-AC7OXVHA.mjs +10 -0
- package/dist/chunk-AGUSZG6K.mjs +0 -0
- package/dist/chunk-AGYQLGBZ.mjs +10 -0
- package/dist/chunk-AKES5B6C.mjs +10 -0
- package/dist/chunk-AMQX3KZR.mjs +10 -0
- package/dist/chunk-AMW7LGCF.mjs +10 -0
- package/dist/chunk-AMYRLAIC.mjs +10 -0
- package/dist/chunk-AQYBKDT2.mjs +16 -0
- package/dist/chunk-AUOQSTS5.mjs +10 -0
- package/dist/chunk-AV4ZP5SY.mjs +10 -0
- package/dist/chunk-AZRPXTYJ.mjs +10 -0
- package/dist/chunk-B7PSE5KC.mjs +10 -0
- package/dist/chunk-BED7T5CL.mjs +10 -0
- package/dist/chunk-BGMVPFYK.mjs +10 -0
- package/dist/chunk-BJVFZYUV.mjs +10 -0
- package/dist/chunk-BKDQLDOK.mjs +10 -0
- package/dist/chunk-BLHN7I5Z.mjs +0 -0
- package/dist/chunk-BTVDMO5C.mjs +10 -0
- package/dist/chunk-BU5H25MV.mjs +10 -0
- package/dist/chunk-C342HL26.mjs +0 -0
- package/dist/chunk-C5P23FUW.mjs +10 -0
- package/dist/chunk-C6OMLVIQ.mjs +0 -0
- package/dist/chunk-CAWUDHAE.mjs +10 -0
- package/dist/chunk-CFDKFUTO.mjs +10 -0
- package/dist/chunk-CFLEBB5T.mjs +10 -0
- package/dist/chunk-CFRTAJP2.mjs +0 -0
- package/dist/chunk-CGFLGZL4.mjs +10 -0
- package/dist/chunk-CHTLOFCT.mjs +10 -0
- package/dist/chunk-CPSUI4IW.mjs +10 -0
- package/dist/chunk-CSPZMYVG.mjs +10 -0
- package/dist/chunk-CV6JQGJ3.mjs +10 -0
- package/dist/chunk-CWPFUB7B.mjs +10 -0
- package/dist/chunk-D3IZ4HBL.mjs +10 -0
- package/dist/chunk-D5EEZT5J.mjs +10 -0
- package/dist/chunk-DD5FWULD.mjs +10 -0
- package/dist/chunk-DECHIERQ.mjs +10 -0
- package/dist/chunk-DIHILOKU.mjs +10 -0
- package/dist/chunk-DOL6RDMF.mjs +10 -0
- package/dist/chunk-DRYSJSKA.mjs +10 -0
- package/dist/chunk-DY6WY36N.mjs +0 -0
- package/dist/chunk-E3PFPOHX.mjs +0 -0
- package/dist/chunk-E6VOSF6Z.mjs +10 -0
- package/dist/chunk-EA6GA4WC.mjs +10 -0
- package/dist/chunk-EK3RIYMV.mjs +10 -0
- package/dist/chunk-ELXWR5TS.mjs +10 -0
- package/dist/chunk-EMCEJKBJ.mjs +10 -0
- package/dist/chunk-ENDOKA57.mjs +10 -0
- package/dist/chunk-EU75HMPG.mjs +10 -0
- package/dist/chunk-EX2LI2CV.mjs +10 -0
- package/dist/chunk-EZXMEGV7.mjs +0 -0
- package/dist/chunk-F2HESRBD.mjs +10 -0
- package/dist/chunk-F2X474RV.mjs +10 -0
- package/dist/chunk-F7PGMOQF.mjs +10 -0
- package/dist/chunk-FJ2JRD3H.mjs +10 -0
- package/dist/chunk-FKYHERP4.mjs +0 -0
- package/dist/chunk-FP5EWPOF.mjs +10 -0
- package/dist/chunk-FRZTJBLY.mjs +10 -0
- package/dist/chunk-FTYXFTJV.mjs +10 -0
- package/dist/chunk-FXCHST4Z.mjs +10 -0
- package/dist/chunk-GCZFXILF.mjs +10 -0
- package/dist/chunk-GEZGEZAP.mjs +10 -0
- package/dist/chunk-GFLVN5JQ.mjs +10 -0
- package/dist/chunk-GKODQS6E.mjs +10 -0
- package/dist/chunk-GOSLHCDP.mjs +0 -0
- package/dist/chunk-GXOXYPQQ.mjs +10 -0
- package/dist/chunk-H44PBNVX.mjs +10 -0
- package/dist/chunk-H7OUUCSA.mjs +10 -0
- package/dist/chunk-HBBRMEES.mjs +10 -0
- package/dist/chunk-HHI7CEUP.mjs +10 -0
- package/dist/chunk-HI44JQA7.mjs +10 -0
- package/dist/chunk-HLDCVJXD.mjs +10 -0
- package/dist/chunk-HONWMHMX.mjs +10 -0
- package/dist/chunk-HT55YHTN.mjs +10 -0
- package/dist/chunk-HWOMGFBL.mjs +10 -0
- package/dist/chunk-HXTAOYOD.mjs +10 -0
- package/dist/chunk-I3RGYL4B.mjs +10 -0
- package/dist/chunk-I3YGB2BE.mjs +10 -0
- package/dist/chunk-IB23KCIW.mjs +10 -0
- package/dist/chunk-IHLJTHGQ.mjs +10 -0
- package/dist/chunk-ILBAZFBL.mjs +0 -0
- package/dist/chunk-INDVRI57.mjs +10 -0
- package/dist/chunk-IUQOFRI3.mjs +10 -0
- package/dist/chunk-IVVZSESM.mjs +10 -0
- package/dist/chunk-IW4GXU75.mjs +10 -0
- package/dist/chunk-IYFTU6IC.mjs +10 -0
- package/dist/chunk-J3MJZQUJ.mjs +10 -0
- package/dist/chunk-J4NO4WYU.mjs +0 -0
- package/dist/chunk-J5YWAPLN.mjs +10 -0
- package/dist/chunk-J7EAQSKX.mjs +10 -0
- package/dist/chunk-J7K7I5U2.mjs +10 -0
- package/dist/chunk-JBXZ6ZHP.mjs +10 -0
- package/dist/chunk-JDLUGVXG.mjs +10 -0
- package/dist/chunk-JI4SJ53O.mjs +11 -0
- package/dist/chunk-JJG67M2S.mjs +10 -0
- package/dist/chunk-JJPCZOOI.mjs +10 -0
- package/dist/chunk-JQ4ZGZPV.mjs +15 -0
- package/dist/chunk-JUXBZ2ZN.mjs +10 -0
- package/dist/chunk-K6IQ4ALU.mjs +0 -0
- package/dist/chunk-K6X2BHPP.mjs +10 -0
- package/dist/chunk-KCHAWPUN.mjs +10 -0
- package/dist/chunk-KEVERVHK.mjs +10 -0
- package/dist/chunk-KG5PDPBK.mjs +10 -0
- package/dist/chunk-KKJ6XIU3.mjs +10 -0
- package/dist/chunk-KPEONVLU.mjs +10 -0
- package/dist/chunk-KUEDQO7P.mjs +10 -0
- package/dist/chunk-KY3JKXSX.mjs +10 -0
- package/dist/chunk-LQMEFFFM.mjs +10 -0
- package/dist/chunk-LZFTBNPW.mjs +10 -0
- package/dist/chunk-M5M3EPG5.mjs +10 -0
- package/dist/chunk-MEYMETYC.mjs +11 -0
- package/dist/chunk-MEZNZ5W6.mjs +10 -0
- package/dist/chunk-MFH2E2GU.mjs +10 -0
- package/dist/chunk-MI7DCFP2.mjs +10 -0
- package/dist/chunk-MIHIAPBG.mjs +10 -0
- package/dist/chunk-MLNPTVVX.mjs +10 -0
- package/dist/chunk-MRJFGHFW.mjs +10 -0
- package/dist/chunk-MUNFBB7D.mjs +0 -0
- package/dist/chunk-MVK5CB64.mjs +10 -0
- package/dist/chunk-MXKP7NQ4.mjs +10 -0
- package/dist/chunk-MZ4O6LWG.mjs +0 -0
- package/dist/chunk-N2XGJKZG.mjs +10 -0
- package/dist/chunk-N5RZGO7Y.mjs +10 -0
- package/dist/chunk-N7MTFSWR.mjs +10 -0
- package/dist/chunk-NA3IF43N.mjs +10 -0
- package/dist/chunk-NGZRN4SF.mjs +10 -0
- package/dist/chunk-NHM3H5JU.mjs +0 -0
- package/dist/chunk-NO55UIGK.mjs +0 -0
- package/dist/chunk-NRKHWSOP.mjs +0 -0
- package/dist/chunk-NSC53QWT.mjs +10 -0
- package/dist/chunk-NV7KQVPE.mjs +10 -0
- package/dist/chunk-O4VZ6XEP.mjs +10 -0
- package/dist/chunk-O57ZEY3V.mjs +0 -0
- package/dist/chunk-O66FNQSB.mjs +10 -0
- package/dist/chunk-O7XK2WIX.mjs +10 -0
- package/dist/chunk-OAY74XPB.mjs +10 -0
- package/dist/chunk-OC42IZG2.mjs +10 -0
- package/dist/chunk-OLJWK3LS.mjs +10 -0
- package/dist/chunk-OMT6ZWSV.mjs +11 -0
- package/dist/chunk-OO7BXL2N.mjs +10 -0
- package/dist/chunk-P44XZ4PV.mjs +10 -0
- package/dist/chunk-P5GO3XIS.mjs +10 -0
- package/dist/chunk-PAQQ7MQG.mjs +10 -0
- package/dist/chunk-PBFIKNYZ.mjs +10 -0
- package/dist/chunk-PBO4SFGS.mjs +10 -0
- package/dist/chunk-PF3OQKXP.mjs +10 -0
- package/dist/chunk-PHZZLBH3.mjs +10 -0
- package/dist/chunk-PZTVDABF.mjs +0 -0
- package/dist/chunk-Q5UMLFN3.mjs +10 -0
- package/dist/chunk-QAUEG3EX.mjs +0 -0
- package/dist/chunk-QBJDGBTU.mjs +0 -0
- package/dist/chunk-QMDDCVAF.mjs +10 -0
- package/dist/chunk-QNBBJ5HC.mjs +11 -0
- package/dist/chunk-R32OJDN2.mjs +10 -0
- package/dist/chunk-RC7QITNV.mjs +10 -0
- package/dist/chunk-RCBUNCHV.mjs +10 -0
- package/dist/chunk-RFTDIXEG.mjs +10 -0
- package/dist/chunk-RJC3HQDZ.mjs +10 -0
- package/dist/chunk-RJWPSJX2.mjs +10 -0
- package/dist/chunk-RMUV6NJJ.mjs +10 -0
- package/dist/chunk-ROHLZINC.mjs +10 -0
- package/dist/chunk-RSKKEGJZ.mjs +10 -0
- package/dist/chunk-RT4LMB6X.mjs +10 -0
- package/dist/chunk-RXSYDMT6.mjs +10 -0
- package/dist/chunk-S3V4OOC3.mjs +10 -0
- package/dist/chunk-SAZLJ66W.mjs +10 -0
- package/dist/chunk-SMAYNDQQ.mjs +10 -0
- package/dist/chunk-TAROK7TO.mjs +10 -0
- package/dist/chunk-TAYP2OGC.mjs +10 -0
- package/dist/chunk-TBSQUJ67.mjs +10 -0
- package/dist/chunk-TDXALNX3.mjs +10 -0
- package/dist/chunk-TEQE6WCH.mjs +10 -0
- package/dist/chunk-THRAJMLX.mjs +10 -0
- package/dist/chunk-TI5RR7KX.mjs +10 -0
- package/dist/chunk-TIHKHXTS.mjs +10 -0
- package/dist/chunk-TJEK54BW.mjs +10 -0
- package/dist/chunk-TK4QXU3W.mjs +10 -0
- package/dist/chunk-TKQOQVZD.mjs +10 -0
- package/dist/chunk-TO2TQ2LE.mjs +10 -0
- package/dist/chunk-TO6OQF2Y.mjs +10 -0
- package/dist/chunk-TZ4MVY4E.mjs +10 -0
- package/dist/chunk-U2ODAIZG.mjs +10 -0
- package/dist/chunk-U4K44ZHN.mjs +10 -0
- package/dist/chunk-UCNHDT36.mjs +10 -0
- package/dist/chunk-UCZZLAPB.mjs +10 -0
- package/dist/chunk-UQJGSVXP.mjs +10 -0
- package/dist/chunk-USMC34OO.mjs +10 -0
- package/dist/chunk-UTQ7AIPM.mjs +0 -0
- package/dist/chunk-UUBOEBYZ.mjs +10 -0
- package/dist/chunk-V3L4SVVF.mjs +10 -0
- package/dist/chunk-VCIX4HG7.mjs +0 -0
- package/dist/chunk-VDUFLHKK.mjs +10 -0
- package/dist/chunk-VG7J427T.mjs +10 -0
- package/dist/chunk-VHDXSFQC.mjs +10 -0
- package/dist/chunk-VLQ4S7XC.mjs +10 -0
- package/dist/chunk-VTX6R6KM.mjs +10 -0
- package/dist/chunk-VXB5SVQC.mjs +10 -0
- package/dist/chunk-W6QO7FPZ.mjs +10 -0
- package/dist/chunk-WAFYFWH4.mjs +0 -0
- package/dist/chunk-WAOWR7MR.mjs +10 -0
- package/dist/chunk-WL27JGVG.mjs +10 -0
- package/dist/chunk-WOVAT6U4.mjs +10 -0
- package/dist/chunk-WSCZ34XO.mjs +10 -0
- package/dist/chunk-WSQGB4ZE.mjs +0 -0
- package/dist/chunk-WWSGOGLA.mjs +10 -0
- package/dist/chunk-X3AXUU3H.mjs +10 -0
- package/dist/chunk-X3OCHEQM.mjs +12 -0
- package/dist/chunk-X7DI4I2U.mjs +10 -0
- package/dist/chunk-XB657BXX.mjs +10 -0
- package/dist/chunk-XBBPWSJI.mjs +0 -0
- package/dist/chunk-XJGQXVMR.mjs +10 -0
- package/dist/chunk-XPISSX5R.mjs +10 -0
- package/dist/chunk-XTH6B5FE.mjs +10 -0
- package/dist/chunk-XVBOKL6D.mjs +10 -0
- package/dist/chunk-XWLESSHN.mjs +10 -0
- package/dist/chunk-XXANV3FM.mjs +10 -0
- package/dist/chunk-XZ2VSOJD.mjs +29 -0
- package/dist/chunk-Y4DRSGEJ.mjs +10 -0
- package/dist/chunk-Y6XQJ4X2.mjs +10 -0
- package/dist/chunk-YB3KW7JC.mjs +10 -0
- package/dist/chunk-YCI6BEXQ.mjs +10 -0
- package/dist/chunk-YGSCHWU3.mjs +10 -0
- package/dist/chunk-YIGT3OP2.mjs +10 -0
- package/dist/chunk-YOBESAXG.mjs +10 -0
- package/dist/chunk-YS3Y5KGV.mjs +10 -0
- package/dist/chunk-YT36W3OS.mjs +10 -0
- package/dist/chunk-YV3WI6OV.mjs +10 -0
- package/dist/chunk-YV5CNDCW.mjs +0 -0
- package/dist/chunk-YVYMYKYN.mjs +10 -0
- package/dist/chunk-ZANUFNOL.mjs +0 -0
- package/dist/chunk-ZGRRD3TU.mjs +10 -0
- package/dist/chunk-ZLAY7NNY.mjs +10 -0
- package/dist/chunk-ZLDT2KDZ.mjs +10 -0
- package/dist/chunk-ZNN43VZV.mjs +10 -0
- package/dist/chunk-ZREX7XOO.mjs +10 -0
- package/dist/chunk-ZRWDMNNY.mjs +10 -0
- package/dist/chunk-ZVODDLGL.mjs +10 -0
- package/dist/hooks/useDevice.mjs +1 -0
- package/dist/hooks/useI18n.mjs +1 -0
- package/dist/hooks/useImage.mjs +1 -0
- package/dist/hooks/useIntersectionObserver.mjs +1 -0
- package/dist/hooks/useIsFirstRender.mjs +1 -0
- package/dist/hooks/useIsTouchDevice.mjs +1 -0
- package/dist/hooks/useLiveInteractionModality.mjs +1 -0
- package/dist/hooks/useLocalStorage.mjs +1 -0
- package/dist/hooks/useMedia.mjs +1 -0
- package/dist/hooks/useMutationObserver.mjs +1 -0
- package/dist/hooks/usePortalContainer.mjs +1 -0
- package/dist/hooks/usePreventFocus.mjs +1 -0
- package/dist/hooks/useResizeObserver.mjs +1 -0
- package/dist/hooks/useTextSelection.mjs +1 -0
- package/dist/hooks/useUndoRedo.mjs +1 -0
- package/dist/index.d.ts +811 -70
- package/dist/index.js +21 -21
- package/dist/index.mjs +1 -43
- package/dist/messageIds.mjs +1 -0
- package/dist/react-aria.d.ts +133 -133
- package/dist/react-aria.mjs +1 -0
- package/dist/react-stately.d.ts +82 -82
- package/dist/react-stately.mjs +1 -0
- package/dist/utils/a11y.mjs +1 -0
- package/dist/utils/classNames.mjs +1 -0
- package/dist/utils/colors.mjs +1 -0
- package/dist/utils/constants.mjs +10 -0
- package/dist/utils/devWarn.mjs +1 -0
- package/dist/utils/dom.mjs +1 -0
- package/dist/utils/invariant.mjs +1 -0
- package/dist/utils/isInIframe.mjs +1 -0
- package/dist/utils/isInShadowDOM.mjs +1 -0
- package/dist/utils/isRect.mjs +1 -0
- package/dist/utils/keyboards.mjs +1 -0
- package/dist/utils/math.mjs +1 -0
- package/dist/utils/objects.mjs +1 -0
- package/dist/utils/onDropOrPaste.mjs +1 -0
- package/dist/utils/overlays.mjs +1 -0
- package/dist/utils/reactAriaCompat.mjs +1 -0
- package/dist/utils/reactAriaComponentsCompat.mjs +1 -0
- package/dist/utils/resolveAriaLabelAttrs.mjs +1 -0
- package/dist/utils/resolvePublicUrl.mjs +10 -0
- package/dist/utils/strings.mjs +1 -0
- package/dist/utils/style.mjs +1 -0
- package/dist/utils/svgs.mjs +1 -0
- package/dist/utils/validations.mjs +1 -0
- package/intl/ar.json +2 -2
- package/intl/cs.json +2 -2
- package/intl/cy.json +4 -4
- package/intl/da.json +3 -3
- package/intl/de.json +3 -3
- package/intl/el.json +2 -2
- package/intl/en-GB.json +2 -2
- package/intl/en.json +2 -2
- package/intl/fi.json +3 -3
- package/intl/fr-CA.json +1 -1
- package/intl/fr.json +2 -2
- package/intl/he.json +3 -3
- package/intl/hr.json +3 -3
- package/intl/id.json +3 -3
- package/intl/ja.json +2 -2
- package/intl/ko.json +1 -1
- package/intl/ms.json +2 -2
- package/intl/nb-NO.json +3 -3
- package/intl/nl.json +4 -4
- package/intl/pt-PT.json +1 -1
- package/intl/pt.json +3 -3
- package/intl/ru.json +2 -2
- package/intl/sk.json +2 -2
- package/intl/sl.json +4 -4
- package/intl/sv.json +3 -3
- package/intl/th.json +1 -1
- package/intl/tr.json +3 -3
- package/intl/uk.json +1 -1
- package/intl/zh-Hant.json +2 -2
- package/messages.json +2 -2
- package/package.json +8 -5
- package/sbom.json +6 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {b,c}from'./chunk-X3OCHEQM.mjs';import {b as b$1}from'./chunk-J3MJZQUJ.mjs';import {a as a$1}from'./chunk-GCZFXILF.mjs';import {a}from'./chunk-FXCHST4Z.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
|
+
* 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:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),d=a({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:false,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:true,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:true,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),f=a({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),C=a({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),k=a({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),v=a({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),I=a({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]});var X={error:{sm:ErrorAltCircleFilledIcon$1,md:ErrorAltCircleFilledIcon},info:{sm:InfoCircleFilledIcon$1,md:InfoCircleFilledIcon},success:{sm:CheckmarkCircleFilledIcon,md:CheckCircleFilledIcon},warning:{sm:WarningFilledIcon$1,md:WarningFilledIcon}},g=U.forwardRef(({className:A,description:h,actionLabel:i,onAction:N,style:j,variant:s="info",title:b$2,arrangement:p="single",onClose:y,closeLabel:V,size:z="sm","data-block-id":x,"data-block-class":F,elementProps:n},B)=>{let w=b(),l=i&&jsx(b$1,{variant:p==="compact"?"tertiary":"ghost",label:i,onPress:N}),q=X[s][z];return jsxs("div",{className:a$2(d({variant:s,arrangement:p,hasButton:!!i||!!y,hasCloseButton:!!y}),"BaselineUI-InlineAlert",A),"data-block-id":x,"data-block-class":F,style:j,role:"alert",ref:B,...n?.root,children:[jsxs("div",{className:I({arrangement:p}),children:[jsx(q,{className:k({variant:s}),size:16}),jsxs("div",{className:u({arrangement:p}),...n?.content,children:[jsx("h3",{className:v({size:z}),...n?.title,children:b$2}),jsx("section",{className:f({size:z}),...n?.description,children:h})]}),p==="compact"&&l]}),jsxs("div",{className:C({arrangement:p}),children:[p!=="compact"&&l,y?jsx(a$1,{variant:"secondary",icon:XIcon,size:"sm",onPress:y,"aria-label":V??w.formatMessage(G.close),...n?.close}):null]})]})});g.displayName="InlineAlert";var G=c({close:{defaultMessage:"Close",id:"bui.inlineAlert.close"}});export{g as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-3FYY26ED.mjs';import i from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var p=i.forwardRef(({className:e,style:a$1,children:t,"data-block-id":d,"data-block-class":s,role:l="group",isDisabled:o,...m},c)=>{let{hoverProps:u,isHovered:f}=a({isDisabled:o});return jsx("div",{...u,role:l,"data-hovered":f,"data-disabled":o,"data-block-id":d,"data-block-class":s,className:e,style:a$1,...m,ref:c,children:t})});p.displayName="Group";export{p as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-CFLEBB5T.mjs';import {a as a$3}from'./chunk-MEZNZ5W6.mjs';import {a as a$2,c}from'./chunk-PBFIKNYZ.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import T,{useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var x=a({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),S=a({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611a"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6g3"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),B=a({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1yep5z6119"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61nc"]]}),C=a({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:true,isDisabled:false},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:true,isDisabled:true},"_1yep5z61o9 _1yep5z61nd"]]}),V=a({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611c"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61nf"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61nd"],[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:false,isFocusVisible:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]});var E={xxs:8,xs:12,sm:16,md:20,lg:24},I=T.forwardRef((e,t)=>{let s=a$1(t),{tooltipProps:p}=a$2(e,s);return p?jsx(a$3,{...p,children:jsx(l,{...e,ref:t})}):jsx(l,{...e,ref:t})});I.displayName="ToggleIconButton";var l=T.forwardRef(({className:e,style:t,icon:s,size:p="md",variant:a="primary","data-block-id":D,"data-block-class":h,..._},F)=>{let o=a$4(_),{buttonProps:N,isPressed:w,ref:H,isFocusVisible:z,isFocused:q,isHovered:n,uiStateOptions:u}=c(_,o),P=useMemo(()=>typeof s=="function"?s:o.isSelected?s.selected:s.unselected,[s,o.isSelected]),y={isSelected:o.isSelected,isHovered:n,isFocusVisible:z,isDisabled:!!_.isDisabled},R=a$5({"data-hovered":n,"data-selected":o.isSelected,"data-focus-visible":z,"data-disabled":_.isDisabled,"data-block-id":D,"data-block-class":h,"data-focused":q,"data-pressed":w});return jsx("button",{...c$1(N,R),className:a$6(a==="toolbar"&&V(y),a==="primary"&&S(y),a==="secondary"&&B(y),a==="tertiary"&&C(y),x({size:p}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(u):e),style:typeof t=="function"?t(u):t,ref:b(H,F),children:jsx(P,{size:E[p]})})});l.displayName="ToggleIconButtonCore";export{I as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {d as d$1}from'./chunk-BGMVPFYK.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-KEVERVHK.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
|
+
function g(t,i){let{elementType:e="button",isDisabled:n,onPress:f,onPressStart:d$2,onPressEnd:m,onPressUp:b,onPressChange:c$1,preventFocusOnPress:B,allowFocusWhenDisabled:A,onClick:T,href:P,target:x,rel:E,type:s="button"}=t,r;e==="button"?r={type:s,disabled:n,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:r={role:"button",href:e==="a"&&!n?P:void 0,target:e==="a"?x:void 0,type:e==="input"?s:void 0,disabled:e==="input"?n:void 0,"aria-disabled":!n||e==="input"?void 0:n,rel:e==="a"?E:void 0};let{pressProps:M,isPressed:L}=d({onPressStart:d$2,onPressEnd:m,onPressChange:c$1,onPress:f,onPressUp:b,onClick:T,isDisabled:n,preventFocusOnPress:B,ref:i}),{focusableProps:o}=d$1(t,i);A&&(o.tabIndex=n?-1:o.tabIndex);let O=c(o,M,a(t,{labelable:true}));return {isPressed:L,buttonProps:c(r,O,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}export{g as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$5,b as b$2,e}from'./chunk-5ULL6IBX.mjs';import {a as a$1}from'./chunk-YS3Y5KGV.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-K6X2BHPP.mjs';import {f}from'./chunk-Y4DRSGEJ.mjs';import {a as a$3}from'./chunk-3FYY26ED.mjs';import {b as b$1,c}from'./chunk-TZ4MVY4E.mjs';import {a,b}from'./chunk-AUOQSTS5.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 {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 k="_8kqf970 _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6z9 _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z617s _1yep5z6101";var x=2,H=s.forwardRef(({className:L,style:A,hideForKeyboard:T,scrollRef:o,label:F,delay:i=1500,smoothScroll:I=true,"data-block-id":q,"data-block-class":R},N)=>{let e$1=s.useRef(null),D=f(),[M,c$1]=s.useState(false),r=useCallback(()=>{let t=o?.current||a(e$1.current).body;return b(t).getComputedStyle(t).flexDirection==="column-reverse"?t.scrollTop+x>=0:t.scrollTop+t.clientHeight+x>=t.scrollHeight},[o]),[O,p]=s.useState(r),{buttonProps:X,isPressed:Y}=a$1({onPress:()=>{let t=o?.current||a(e$1.current).body;t.scrollTo({top:t.scrollHeight,behavior:I?"smooth":"auto"});}},e$1),{focusProps:U,isFocused:V,isFocusVisible:m}=a$2(),{hoverProps:j,isHovered:u}=a$3({}),W=a$4({"data-block-id":q,"data-block-class":R,"data-pressed":Y,"data-focus-visible":m,"data-hovered":u,"data-focused":V});return useEffect(()=>{p(r());},[r]),useEffect(()=>{let t=o?.current||a(e$1.current).body,y="onscrollend"in b(t),l=()=>{setTimeout(()=>{c$1(false),p(r());},i);},d=()=>{c$1(true),y||l();};return t.addEventListener("scroll",d),t.addEventListener("scrollend",l),()=>{t.removeEventListener("scroll",d),t.removeEventListener("scrollend",l);}},[o,i,r]),jsx(AnimatePresence,{initial:false,children:(!T||D!=="keyboard")&&!M&&!O?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(X,U,j,W),className:a$6(k,b$2({isFocusVisible:m,variant:"high-contrast",isHovered:u}),e({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",L),style:A,ref:b$1(N,e$1),children:[jsx(ArrowDownCircleFilledIcon,{size:16,className:a$5({variant:"high-contrast"})}),F]}):null})});H.displayName="ScrollControlButton";export{H as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {b}from'./chunk-QMDDCVAF.mjs';import {a}from'./chunk-OO7BXL2N.mjs';import {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 u(t){let o=useContext(a),{portalContainer:i}=useContext(b);return t||o||i||void 0}export{u as a};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {l,q,e,B,o,p,u,h,d as d$1,A,g,v,x,z,f,i,m,c as c$2,r,t,s,n,j,a as a$4,b as b$4,w}from'./chunk-OMT6ZWSV.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$2,b as b$3}from'./chunk-MVK5CB64.mjs';import {a as a$1}from'./chunk-XWLESSHN.mjs';import {d}from'./chunk-Y4DRSGEJ.mjs';import {i as i$1,g as g$1,l as l$1,m as m$1}from'./chunk-MRJFGHFW.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a,c}from'./chunk-JDLUGVXG.mjs';import {a as a$3}from'./chunk-6ZQE5SHE.mjs';import {b as b$2,g as g$2}from'./chunk-AUOQSTS5.mjs';import {flushSync}from'react-dom';import Je,{useState,useRef,useImperativeHandle,useEffect,useCallback,version}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Ze=Je.forwardRef(function(e,o){let t=e.children,[g,n]=useState(null),v=useRef(null),d=useRef(void 0);return useImperativeHandle(o,()=>(h,K)=>{let T=t(h),O,p,b;T&&typeof T=="object"&&"element"in T?(O=T.element,p=T.x,b=T.y):O=T,flushSync(()=>{n(O);}),K(v.current,p,b),d.current=requestAnimationFrame(()=>{n(null);});},[t]),useEffect(()=>()=>{d.current&&cancelAnimationFrame(d.current);},[]),g?jsx("div",{style:{zIndex:-100,position:"fixed",top:0,left:-1e5},ref:v,children:g}):null});function Be(a,e,o,t,g=false,n=false){switch(t){case "left":return g?te(a,e,o,n,"left"):re(a,e,o,n,"left");case "right":return g?re(a,e,o,n,"right"):te(a,e,o,n,"right");case "up":return re(a,e,o,n);case "down":return te(a,e,o,n)}}function te(a,e,o,t=false,g=null){if(!o)return {type:"root"};if(o.type==="root"){let n=a.getFirstKey?.()??null;return n!=null?{type:"item",key:n,dropPosition:"before"}:null}if(o.type==="item"){let n=null;g?n=g==="right"?a.getKeyRightOf?.(o.key,{includeDisabled:true}):a.getKeyLeftOf?.(o.key,{includeDisabled:true}):n=a.getKeyBelow?.(o.key,{includeDisabled:true});let v=oe(e,o.key,d=>e.getKeyAfter(d));if(n!=null&&n!==v)return {type:"item",key:n,dropPosition:o.dropPosition};switch(o.dropPosition){case "before":return {type:"item",key:o.key,dropPosition:"on"};case "on":{let d=e.getItem(o.key),h=n!=null?e.getItem(n):null;return d&&h&&h.level>=d.level?{type:"item",key:h.key,dropPosition:"before"}:{type:"item",key:o.key,dropPosition:"after"}}case "after":{let d=e.getItem(o.key),h=d?.nextKey!=null?e.getItem(d.nextKey):null;for(;h!=null&&h.type!=="item";)h=h.nextKey!=null?e.getItem(h.nextKey):null;if(d&&h==null&&d.parentKey!=null){let K=e.getItem(d.parentKey),T=K?.nextKey!=null?e.getItem(K.nextKey):null;if(T?.type==="item")return {type:"item",key:T.key,dropPosition:"before"};if(K?.type==="item")return {type:"item",key:K.key,dropPosition:"after"}}if(h)return {type:"item",key:h.key,dropPosition:"on"}}}}return t?{type:"root"}:null}function re(a,e,o,t=false,g=null){if(!o||t&&o.type==="root"){let n=null,v=a.getLastKey?.();for(;v!=null;){let d=e.getItem(v);if(d?.type!=="item")break;n=v,v=d?.parentKey;}return n!=null?{type:"item",key:n,dropPosition:"after"}:null}if(o.type==="item"){let n=null;g?n=g==="left"?a.getKeyLeftOf?.(o.key,{includeDisabled:true}):a.getKeyRightOf?.(o.key,{includeDisabled:true}):n=a.getKeyAbove?.(o.key,{includeDisabled:true});let v=oe(e,o.key,d=>e.getKeyBefore(d));if(n!=null&&n!==v)return {type:"item",key:n,dropPosition:o.dropPosition};switch(o.dropPosition){case "before":{let d=e.getItem(o.key);if(d&&d.prevKey!=null){let h=Fe(e,d.prevKey);if(h)return h}return n!=null?{type:"item",key:n,dropPosition:"on"}:{type:"root"}}case "on":return {type:"item",key:o.key,dropPosition:"before"};case "after":{let d=Fe(e,o.key);return d||{type:"item",key:o.key,dropPosition:"on"}}}}return o.type!=="root"?{type:"root"}:null}function Fe(a,e){let o=a.getItem(e),t=oe(a,e,n=>a.getKeyAfter(n)),g=t!=null?a.getItem(t):null;if(o&&g&&g.level>o.level){let n=null;if("lastChildKey"in o)for(n=o.lastChildKey!=null?a.getItem(o.lastChildKey):null;n&&n.type!=="item"&&n.prevKey!=null;)n=a.getItem(n.prevKey);else n=Array.from(o.childNodes).findLast(v=>v.type==="item")||null;if(n)return {type:"item",key:n.key,dropPosition:"after"}}return null}function oe(a,e,o){let t=o(e),g=t!=null?a.getItem(t):null;for(;g&&g.type!=="item";)t=o(g.key),g=t!=null?a.getItem(t):null;return t}var $=20;function He(a){let e=useRef(null),o=useRef(true),t=useRef(true);useEffect(()=>{if(a.current){e.current=a$2(a.current)?a.current:b$3(a.current);let v=window.getComputedStyle(e.current);o.current=/(auto|scroll)/.test(v.overflowX),t.current=/(auto|scroll)/.test(v.overflowY);}},[a]);let g=useRef({timer:void 0,dx:0,dy:0}).current;useEffect(()=>()=>{g.timer&&(cancelAnimationFrame(g.timer),g.timer=void 0);},[g]);let n=useCallback(()=>{o.current&&e.current&&(e.current.scrollLeft+=g.dx),t.current&&e.current&&(e.current.scrollTop+=g.dy),g.timer&&(g.timer=requestAnimationFrame(n));},[e,g]);return {move(v,d){if(!i$1()||g$1()||!e.current)return;let h=e.current.getBoundingClientRect(),K=$,T=$,O=h.height-$,p=h.width-$;v<K||v>p||d<T||d>O?(v<K?g.dx=v-K:v>p&&(g.dx=v-p),d<T?g.dy=d-T:d>O&&(g.dy=d-O),g.timer||(g.timer=requestAnimationFrame(n))):this.stop();},stop(){g.timer&&(cancelAnimationFrame(g.timer),g.timer=void 0);}}}function tt(a$1,e$1,o$1){let t=useRef({props:a$1,state:e$1,nextTarget:null,dropOperation:null}).current;t.props=a$1,t.state=e$1;let g=useCallback(async p=>{let{onInsert:b,onRootDrop:u,onItemDrop:c,onReorder:s,onMove:m,acceptedDragTypes:D="all",shouldAcceptItemDrop:i}=t.props,{draggingKeys:l$1}=l,f=q(o$1),{target:r,dropOperation:y,items:w}=p,P=w;(D!=="all"||i)&&(P=w.filter(I=>{let E;return I.kind==="directory"?E=new Set([e]):E=I.kind==="file"?new Set([I.type]):I.types,D==="all"||D.some(C=>E.has(C))?r.type==="item"&&r.dropPosition==="on"&&i?i(r,E):true:false})),P.length>0&&(r.type==="root"&&u&&await u({items:P,dropOperation:y}),r.type==="item"&&(r.dropPosition==="on"&&c&&await c({items:P,dropOperation:y,isInternal:f,target:r}),m&&f&&await m({keys:l$1,dropOperation:y,target:r}),r.dropPosition!=="on"&&(!f&&b&&await b({items:P,dropOperation:y,target:r}),f&&s&&await s({keys:l$1,dropOperation:y,target:r}))));},[t,o$1]),n=He(o$1),{dropProps:v}=B({ref:o$1,onDropEnter(){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},onDropMove(p){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},getDropOperationForPoint(p,b,u,c){let{draggingKeys:s,dropCollectionRef:m}=l,D=q(o$1),i=f=>e$1.getDropOperation({target:f,types:p,allowedOperations:b,isInternal:D,draggingKeys:s})!=="cancel",l$1=a$1.dropTargetDelegate.getDropTargetFromPoint(u,c,i);if(!l$1)return t.dropOperation="cancel",t.nextTarget=null,"cancel";if(t.dropOperation=e$1.getDropOperation({target:l$1,types:p,allowedOperations:b,isInternal:D,draggingKeys:s}),t.dropOperation==="cancel"){let f={type:"root"},r=e$1.getDropOperation({target:f,types:p,allowedOperations:b,isInternal:D,draggingKeys:s});r!=="cancel"&&(l$1=f,t.dropOperation=r);}return l$1&&t.dropOperation!=="cancel"&&o$1?.current!==m?.current&&o(o$1),t.nextTarget=t.dropOperation==="cancel"?null:l$1,t.dropOperation},onDropExit(){o(void 0),e$1.setTarget(null),n.stop();},onDropActivate(p){e$1.target?.type==="item"&&typeof a$1.onDropActivate=="function"&&a$1.onDropActivate({type:"dropactivate",x:p.x,y:p.y,target:e$1.target});},onDrop(p$1){o(o$1),e$1.target&&K(p$1,e$1.target);let{draggingCollectionRef:b}=l;b==null&&p();}}),d$2=useRef(null),h$1=useCallback(()=>{let{state:p}=t;if(d$2.current){let{target:b,collection:u,selectedKeys:c,focusedKey:s,isInternal:m,draggingKeys:D}=d$2.current;if(p.collection.size>u.size&&p.selectionManager.isSelectionEqual(c)){let i=new Set,l=p.collection.getFirstKey();for(;l!=null;){let f=p.collection.getItem(l);f?.type==="item"&&!u.getItem(f.key)&&i.add(f.key),f?.hasChildNodes&&p.collection.getItem(f.lastChildKey)?.type==="item"?l=f.firstChildKey:l=p.collection.getKeyAfter(l);}if(p.selectionManager.setSelectedKeys(i),p.selectionManager.focusedKey===s){let f=i.keys().next().value;if(f!=null){let r=p.collection.getItem(f),y=d$2.current.target,w=p.collection.expandedKeys?p.collection.expandedKeys.has(r?.parentKey):false;r&&(r?.type==="cell"||y.type==="item"&&y.dropPosition==="on"&&!w)&&(f=r.parentKey),f!=null&&p.selectionManager.setFocusedKey(f),p.selectionManager.selectionMode==="none"&&d("keyboard");}}}else s!=null&&p.selectionManager.focusedKey===s&&m&&b.type==="item"&&b.dropPosition!=="on"&&D.has(p.collection.getItem(s)?.parentKey)?(p.selectionManager.setFocusedKey(p.collection.getItem(s)?.parentKey??null),d("keyboard")):p.selectionManager.focusedKey===s&&b.type==="item"&&b.dropPosition==="on"&&p.collection.getItem(b.key)!=null?(p.selectionManager.setFocusedKey(b.key),d("keyboard")):p.selectionManager.focusedKey!=null&&!p.selectionManager.isSelected(p.selectionManager.focusedKey)&&d("keyboard");p.selectionManager.setFocused(true);}},[t]),K=useCallback((p,b)=>{let{state:u}=t;d$2.current={timeout:void 0,focusedKey:u.selectionManager.focusedKey,collection:u.collection,selectedKeys:u.selectionManager.selectedKeys,draggingKeys:l.draggingKeys,isInternal:q(o$1),target:b},(t.props.onDrop||g)({type:"drop",x:p.x,y:p.y,target:b,items:p.items,dropOperation:p.dropOperation}),d$2.current.timeout=setTimeout(()=>{h$1(),d$2.current=null;},50);},[t,g,o$1,h$1]);useEffect(()=>()=>{d$2.current&&clearTimeout(d$2.current.timeout);},[]),a(()=>{d$2.current&&e$1.collection!==d$2.current.collection&&h$1();});let{direction:T}=b();useEffect(()=>{if(!o$1.current)return;let p=(c,s=true,m="down")=>Be(t.props.keyboardDelegate,t.state.collection,c,m,T==="rtl",s),b=(c,s=true)=>p(c,s,"up"),u$1=(c,s,m,D,i=true)=>{let l$1=0,f,{draggingKeys:r}=l,y=q(o$1);do{let w=D(c,i);if(!w)return null;c=w,f=t.state.getDropOperation({target:w,types:s,allowedOperations:m,isInternal:y,draggingKeys:r}),c.type==="root"&&l$1++;}while(f==="cancel"&&!t.state.isDropTarget(c)&&l$1<2);return f==="cancel"?null:c};return u({element:o$1.current,preventFocusOnDrop:true,getDropOperation(c,s){if(t.state.target){let{draggingKeys:D}=l,i=q(o$1);return t.state.getDropOperation({target:t.state.target,types:c,allowedOperations:s,isInternal:i,draggingKeys:D})}return u$1(null,c,s,p)?"move":"cancel"},onDropEnter(c,s){let m=h(s.items),D=t.state.selectionManager,i=null;o(o$1);let l$1=D.focusedKey,f="after",r=l$1!=null?t.state.collection.getItem(l$1):null;if(r?.type==="cell"&&(l$1=r.parentKey),l$1!=null&&D.isSelected(l$1)&&(D.selectedKeys.size>1&&D.firstSelectedKey===l$1?f="before":l$1=D.lastSelectedKey),l$1!=null){i={type:"item",key:l$1,dropPosition:f};let{draggingKeys:y}=l,w=q(o$1);t.state.getDropOperation({target:i,types:m,allowedOperations:s.allowedDropOperations,isInternal:w,draggingKeys:y})==="cancel"&&(i=u$1(i,m,s.allowedDropOperations,p,false)??u$1(i,m,s.allowedDropOperations,b,false));}i||(i=u$1(null,m,s.allowedDropOperations,p)),t.state.setTarget(i);},onDropExit(){o(void 0),t.state.setTarget(null);},onDropTargetEnter(c){t.state.setTarget(c);},onDropActivate(c,s){s?.type==="item"&&s?.dropPosition==="on"&&typeof t.props.onDropActivate=="function"&&t.props.onDropActivate({type:"dropactivate",x:c.x,y:c.y,target:s});},onDrop(c,s){o(o$1),t.state.target&&K(c,s||t.state.target);},onKeyDown(c,s){let{keyboardDelegate:m}=t.props,D=h(s.items);switch(c.key){case "ArrowDown":{if(m.getKeyBelow){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"down"));t.state.setTarget(i);}break}case "ArrowUp":{if(m.getKeyAbove){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"up"));t.state.setTarget(i);}break}case "ArrowLeft":{if(m.getKeyLeftOf){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"left"));t.state.setTarget(i);}break}case "ArrowRight":{if(m.getKeyRightOf){let i=u$1(t.state.target,D,s.allowedDropOperations,(l,f)=>p(l,f,"right"));t.state.setTarget(i);}break}case "Home":{if(m.getFirstKey){let i=u$1(null,D,s.allowedDropOperations,p);t.state.setTarget(i);}break}case "End":{if(m.getLastKey){let i=u$1(null,D,s.allowedDropOperations,b);t.state.setTarget(i);}break}case "PageDown":{if(m.getKeyPageBelow){let i=t.state.target;if(!i)i=u$1(null,D,s.allowedDropOperations,p);else {let l$1=m.getFirstKey?.();i.type==="item"&&(l$1=i.key);let f=null;l$1!=null&&(f=m.getKeyPageBelow(l$1));let r=i.type==="item"?i.dropPosition:"after";if((f==null||i.type==="item"&&i.key===m.getLastKey?.())&&(f=m.getLastKey?.()??null,r="after"),f==null)break;i={type:"item",key:f,dropPosition:r};let{draggingCollectionRef:y,draggingKeys:w}=l,P=y?.current===o$1?.current;t.state.getDropOperation({target:i,types:D,allowedOperations:s.allowedDropOperations,isInternal:P,draggingKeys:w})==="cancel"&&(i=u$1(i,D,s.allowedDropOperations,p,false)??u$1(i,D,s.allowedDropOperations,b,false));}t.state.setTarget(i??t.state.target);}break}case "PageUp":{if(!m.getKeyPageAbove)break;let i=t.state.target;if(!i)i=u$1(null,D,s.allowedDropOperations,b);else if(i.type==="item"){if(i.key===m.getFirstKey?.())i={type:"root"};else {let y=m.getKeyPageAbove(i.key),w=i.dropPosition;if(y==null&&(y=m.getFirstKey?.(),w="before"),y==null)break;i={type:"item",key:y,dropPosition:w};}let{draggingKeys:l$1}=l,f=q(o$1);t.state.getDropOperation({target:i,types:D,allowedOperations:s.allowedDropOperations,isInternal:f,draggingKeys:l$1})==="cancel"&&(i=u$1(i,D,s.allowedDropOperations,b,false)??u$1(i,D,s.allowedDropOperations,p,false));}t.state.setTarget(i??t.state.target);break}}t.props.onKeyDown?.(c);}})},[t,o$1,K,T]);let O=c();return d$1.set(e$1,{id:O,ref:o$1}),{collectionProps:c$1(v,{id:O,"aria-describedby":null})}}function ie(a,e,o){let{dropProps:t}=A(o),g$1=g(e);useEffect(()=>{if(o.current)return v({element:o.current,target:a.target,getDropOperation(T,O){let{draggingKeys:p}=l,b=q(g$1);return e.getDropOperation({target:a.target,types:T,allowedOperations:O,isInternal:b,draggingKeys:p})},activateButtonRef:a.activateButtonRef})},[o,a.target,e,g$1,a.activateButtonRef]);let n=x(),{draggingKeys:v$1}=l,d=q(g$1),h$1=n&&e.getDropOperation({target:a.target,types:h(n.dragTarget.items),allowedOperations:n.dragTarget.allowedDropOperations,isInternal:d,draggingKeys:v$1})!=="cancel",K=e.isDropTarget(a.target);return useEffect(()=>{n&&K&&o.current&&o.current.focus();},[K,n,o]),{dropProps:{...t,"aria-hidden":!n||h$1?void 0:"true"},isDropTarget:K}}function rt(a,e,o){let{target:t}=a,{collection:g}=e,n=b$1(z,"@react-aria/dnd"),v=x(),{dropProps:d}=ie(a,e,o),h=c(),K=u=>u==null?"":g.getTextValue?.(u)??g.getItem(u)?.textValue??"",T="",O;if(t.type==="root")T=n.format("dropOnRoot"),O=`${h} ${f(e)}`;else if(t.dropPosition==="on")T=n.format("dropOnItem",{itemText:K(t.key)});else {let u,c;if(t.dropPosition==="before"){let s=g.getItem(t.key)?.prevKey,m=s!=null?g.getItem(s):null;u=m?.type==="item"?m.key:null;}else u=t.key;if(t.dropPosition==="after"){let s=g.getItem(t.key)?.nextKey,m=s!=null?g.getItem(s):null;c=m?.type==="item"?m.key:null;}else c=t.key;u!=null&&c!=null?T=n.format("insertBetween",{beforeItemText:K(u),afterItemText:K(c)}):u!=null?T=n.format("insertAfter",{itemText:K(u)}):c!=null&&(T=n.format("insertBefore",{itemText:K(c)}));}let p=e.isDropTarget(t),b=v?d["aria-hidden"]:"true";return {dropIndicatorProps:{...d,id:h,"aria-roledescription":n.format("dropIndicator"),"aria-label":T,"aria-labelledby":O,"aria-hidden":b,tabIndex:-1},isDropTarget:p,isHidden:!p&&!!b}}var Ve={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Ye(a){let{hasDragButton:e,isDisabled:o,elementRef:t$1}=a,g=b$1(z,"@react-aria/dnd"),n=useRef({options:a,x:0,y:0}).current;n.options=a;let v=useRef(null),[d,h]=useState(false),K=r=>{v.current=r,h(!!r);},{addGlobalListener:T,removeAllGlobalListeners:O}=a$3(),p=useRef(null),b=r=>{if(r.defaultPrevented)return;if(r.stopPropagation(),p.current==="virtual"){r.preventDefault(),m(g$2(r)),p.current=null;return}typeof a.onDragStart=="function"&&a.onDragStart({type:"dragstart",x:r.clientX,y:r.clientY});let y=a.getItems();r.dataTransfer.clearData?.(),j(r.dataTransfer,y);let w=7;if(typeof a.getAllowedDropOperations=="function"){let E=a.getAllowedDropOperations();w=0;for(let C of E)w|=a$4[C]||0;}t(w);let P=b$4[w]||"none";r.dataTransfer.effectAllowed=P==="cancel"?"none":P,typeof a.preview?.current=="function"&&a.preview.current(y,(E,C,N)=>{if(!E)return;let x=E.getBoundingClientRect(),ge=r.currentTarget.getBoundingClientRect(),Z=r.clientX-ge.x,Q=r.clientY-ge.y;(Z>x.width||Q>x.height)&&(Z=x.width/2,Q=x.height/2);let H=Z,j=Q;typeof C=="number"&&typeof N=="number"&&(H=C,j=N),H=Math.max(0,Math.min(H,x.width)),j=Math.max(0,Math.min(j,x.height));let _e=2*Math.round(x.height/2);E.style.height=`${_e}px`,r.dataTransfer.setDragImage(E,H,j);}),T(b$2(g$2(r)),"drop",E=>{E.preventDefault(),E.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");},{once:true}),n.x=r.clientX,n.y=r.clientY;let I=g$2(r);requestAnimationFrame(()=>{K(I);});},u=r=>{r.stopPropagation(),!(r.clientX===n.x&&r.clientY===n.y)&&(typeof a.onDragMove=="function"&&a.onDragMove({type:"dragmove",x:r.clientX,y:r.clientY}),n.x=r.clientX,n.y=r.clientY);},c=r$1=>{if(r$1.stopPropagation(),typeof a.onDragEnd=="function"){let y={type:"dragend",x:r$1.clientX,y:r$1.clientY,dropOperation:c$2[r$1.dataTransfer.dropEffect]};r&&(y.dropOperation=c$2[r]),a.onDragEnd(y);}K(null),O(),t(0),s(void 0);};useEffect(()=>()=>{if(v.current&&(!v.current.isConnected||parseInt(version,10)<17)){if(typeof n.options.onDragEnd=="function"){let r$1={type:"dragend",x:0,y:0,dropOperation:c$2[r||"none"]};n.options.onDragEnd(r$1);}K(null),t(0),s(void 0);}},[n]);let s$1=r=>{r.pointerType!=="keyboard"&&r.pointerType!=="virtual"||m(r.target);},m=r=>{if(typeof n.options.onDragStart=="function"){let y=r.getBoundingClientRect();n.options.onDragStart({type:"dragstart",x:y.x+y.width/2,y:y.y+y.height/2});}w({element:r,items:n.options.getItems(),allowedDropOperations:typeof n.options.getAllowedDropOperations=="function"?n.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(y){K(null),typeof n.options.onDragEnd=="function"&&n.options.onDragEnd(y);}},g),K(r);},D=i(),i$1=d?Ve[D].end:Ve[D].start,l=a$1(g.format(i$1),t$1),f={};return e||(f={...l,onPointerDown(r){if(p.current=m$1(r.nativeEvent)?"virtual":r.pointerType,r.width<1&&r.height<1)p.current="virtual";else {let y=r.currentTarget.getBoundingClientRect(),w=r.clientX-y.x,P=r.clientY-y.y,I=y.width/2,E=y.height/2;Math.abs(w-I)<=.5&&Math.abs(P-E)<=.5?p.current="virtual":p.current=r.pointerType;}},onKeyDownCapture(r){g$2(r)===r.currentTarget&&r.key==="Enter"&&(r.preventDefault(),r.stopPropagation());},onKeyUpCapture(r){g$2(r)===r.currentTarget&&r.key==="Enter"&&(r.preventDefault(),r.stopPropagation(),m(g$2(r)));},onClick(r){(l$1(r.nativeEvent)||p.current==="virtual")&&(r.preventDefault(),r.stopPropagation(),m(g$2(r)));}}),o?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:false}:{dragProps:{...f,draggable:"true",onDragStart:b,onDrag:u,onDragEnd:c},dragButtonProps:{...l,onPress:s$1},isDragging:d}}var it={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function at(a,e,o){let t=b$1(z,"@react-aria/dnd"),g=e.isDisabled||e.selectionManager.isDisabled(a.key),{dragProps:n$1,dragButtonProps:v}=Ye({elementRef:o,getItems(){return e.getItems(a.key)},preview:e.preview,getAllowedDropOperations:e.getAllowedDropOperations,hasDragButton:a.hasDragButton,onDragStart(u){e.startDrag(a.key,u),n(e.draggingKeys);},onDragMove(u){e.moveDrag(u);},onDragEnd(u){let{dropOperation:c}=u,s=c==="cancel"?false:q();e.endDrag({...u,keys:e.draggingKeys,isInternal:s}),p();}}),d=e.collection.getItem(a.key),h=e.getKeysForDrag(a.key).size,K=h>1&&e.selectionManager.isSelected(a.key),T,O,p$1=i();if(!a.hasDragButton&&e.selectionManager.selectionMode!=="none"){let u=it[p$1][K?"selected":"notSelected"];a.hasAction&&p$1==="keyboard"&&(u+="Alt"),K?O=t.format(u,{count:h}):O=t.format(u),delete n$1.onClick;}else if(K)T=t.format("dragSelectedItems",{count:h});else {let u=e.collection.getTextValue?.(a.key)??d?.textValue??"";T=t.format("dragItem",{itemText:u});}let b=a$1(O,o);if(O&&Object.assign(n$1,b),!a.hasDragButton&&a.hasAction){let{onKeyDownCapture:u,onKeyUpCapture:c}=n$1;p$1==="touch"&&delete n$1["aria-describedby"],n$1.onKeyDownCapture=s=>{s.altKey&&u?.(s);},n$1.onKeyUpCapture=s=>{s.altKey&&c?.(s);};}return {dragProps:g?{}:n$1,dragButtonProps:{...v,isDisabled:g,"aria-label":T}}}function pt(a,e,o){let{draggingCollectionRef:t}=l;e.draggingKeys.size>0&&t?.current!==o.current&&m(o);}function gt(a){let{getItems:e,isDisabled:o,collection:t,selectionManager:g,onDragStart:n,onDragMove:v,onDragEnd:d,preview:h,getAllowedDropOperations:K}=a,[,T]=useState(false),O=useRef(new Set),p=useRef(null),b=u=>{let c=new Set;if(g.isSelected(u))for(let s of g.selectedKeys){let m=t.getItem(s);if(m){let D=false,i=m.parentKey;for(;i!=null;){if(g.selectedKeys.has(i)){D=true;break}let l=t.getItem(i);i=l?l.parentKey:null;}D||c.add(s);}}else c.add(u);return c};return {collection:t,selectionManager:g,get draggedKey(){return p.current},get draggingKeys(){return O.current},isDragging(u){return O.current.has(u)},getKeysForDrag:b,getItems(u){let c=b(u),s=[];for(let m of c){let D=t.getItem(m)?.value;D!=null&&s.push(D);}return e(b(u),s)},isDisabled:o,preview:h,getAllowedDropOperations:K,startDrag(u,c){let s=b(u);O.current=s,p.current=u,g.setFocused(false),T(true),typeof n=="function"&&n({...c,keys:s});},moveDrag(u){typeof v=="function"&&v({...u,keys:O.current});},endDrag(u){let{isInternal:c}=u;typeof d=="function"&&d({...u,keys:O.current,isInternal:c}),O.current=new Set,p.current=null,T(false);}}}function ft(a){let{acceptedDragTypes:e="all",isDisabled:o,onInsert:t,onRootDrop:g,onItemDrop:n,onReorder:v,onMove:d,shouldAcceptItemDrop:h,collection:K,selectionManager:T,onDropEnter:O,getDropOperation:p,onDrop:b}=a,[u,c]=useState(null),s=useRef(null),m=i=>{if(i.dropPosition==="before"){let l=K.getItem(i.key);return l&&l.prevKey!=null?{type:"item",key:l.prevKey,dropPosition:"after"}:null}else if(i.dropPosition==="after"){let l=K.getItem(i.key);return l&&l.nextKey!=null?{type:"item",key:l.nextKey,dropPosition:"before"}:null}return null},D=useCallback(i=>{let{target:l,types:f,allowedOperations:r,isInternal:y,draggingKeys:w}=i;if(o||!l)return "cancel";if(e==="all"||e.some(P=>f.has(P))){let P=t&&l.type==="item"&&!y&&(l.dropPosition==="before"||l.dropPosition==="after"),I=v&&l.type==="item"&&y&&(l.dropPosition==="before"||l.dropPosition==="after")&&yt(K,l,w),E=l.type!=="item"||l.dropPosition!=="on"||!h||h(l,f),C=d&&l.type==="item"&&y&&E,N=g&&l.type==="root"&&!y,x=n&&l.type==="item"&&l.dropPosition==="on"&&!(y&&l.key!=null&&w.has(l.key))&&E;if(b||P||I||C||N||x)return p?p(l,f,r):r[0]}return "cancel"},[o,K,e,p,t,g,n,h,v,d,b]);return {collection:K,selectionManager:T,isDisabled:o,target:u,setTarget(i){if(this.isDropTarget(i))return;let l=s.current;l&&typeof a.onDropExit=="function"&&a.onDropExit({type:"dropexit",x:0,y:0,target:l}),i&&typeof O=="function"&&O({type:"dropenter",x:0,y:0,target:i}),s.current=i??null,c(i??null);},isDropTarget(i){let l=s.current;return !l||!i?false:pe(i,l)?true:i?.type==="item"&&l?.type==="item"&&i.key!==l.key&&i.dropPosition!==l.dropPosition&&i.dropPosition!=="on"&&l.dropPosition!=="on"?pe(m(i),l)||pe(i,m(l)):false},getDropOperation(i){let{target:l,isInternal:f,draggingKeys:r}=i;if(f&&l.type==="item"&&r.size>0){if(r.has(l.key)&&l.dropPosition==="on")return "cancel";let y=l.key;for(;y!=null;){let P=K.getItem(y)?.parentKey;if(P!=null&&r.has(P))return "cancel";y=P??null;}}return D(i)}}}function pe(a,e){if(!a)return !e;switch(a.type){case "root":return e?.type==="root";case "item":return e?.type==="item"&&e?.key===a.key&&e?.dropPosition===a.dropPosition}}function yt(a,e,o){let t=a.getItem(e.key);for(let g of o)if(a.getItem(g)?.parentKey!==t?.parentKey)return false;return true}var se=class{collection;ref;layout;orientation;direction;constructor(e,o,t){this.collection=e,this.ref=o,this.layout=t?.layout||"stack",this.orientation=t?.orientation||"vertical",this.direction=t?.direction||"ltr";}getPrimaryStart(e){return this.orientation==="horizontal"?e.left:e.top}getPrimaryEnd(e){return this.orientation==="horizontal"?e.right:e.bottom}getSecondaryStart(e){return this.orientation==="horizontal"?e.top:e.left}getSecondaryEnd(e){return this.orientation==="horizontal"?e.bottom:e.right}getFlowStart(e){return this.layout==="stack"?this.getPrimaryStart(e):this.getSecondaryStart(e)}getFlowEnd(e){return this.layout==="stack"?this.getPrimaryEnd(e):this.getSecondaryEnd(e)}getFlowSize(e){return this.getFlowEnd(e)-this.getFlowStart(e)}getDropTargetFromPoint(e,o,t){if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return {type:"root"};let g=this.ref.current.getBoundingClientRect(),n=this.orientation==="horizontal"?e:o,v=this.orientation==="horizontal"?o:e;n+=this.getPrimaryStart(g),v+=this.getSecondaryStart(g);let d=this.layout==="stack"?n:v,h=this.orientation==="horizontal"&&this.direction==="rtl",K=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",T=this.layout==="stack"?h:K,O=this.ref.current?.dataset.collection,p=this.ref.current.querySelectorAll(O?`[data-collection="${CSS.escape(O)}"]`:"[data-key]"),b=new Map,u=b$2(this.ref.current);for(let l of p)l instanceof u.HTMLElement&&l.dataset.key!=null&&b.set(l.dataset.key,l);let c=[...this.collection].filter(l=>l.type==="item");if(c.length<1)return {type:"root"};let s=0,m=c.length;for(;s<m;){let l=Math.floor((s+m)/2),f=c[l],r=b.get(String(f.key));if(!r)break;let y=r.getBoundingClientRect(),w=P=>{P?s=l+1:m=l;};if(n<this.getPrimaryStart(y))w(h);else if(n>this.getPrimaryEnd(y))w(!h);else if(v<this.getSecondaryStart(y))w(K);else if(v>this.getSecondaryEnd(y))w(!K);else {let P={type:"item",key:f.key,dropPosition:"on"};if(t(P))d<=this.getFlowStart(y)+5&&t({...P,dropPosition:"before"})?P.dropPosition=T?"after":"before":d>=this.getFlowEnd(y)-5&&t({...P,dropPosition:"after"})&&(P.dropPosition=T?"before":"after");else {let I=this.getFlowStart(y)+this.getFlowSize(y)/2;d<=I&&t({...P,dropPosition:"before"})?P.dropPosition=T?"after":"before":d>=I&&t({...P,dropPosition:"after"})&&(P.dropPosition=T?"before":"after");}return P}}let D=c[Math.min(s,c.length-1)];return g=b.get(String(D.key))?.getBoundingClientRect(),g&&(n<this.getPrimaryStart(g)||Math.abs(d-this.getFlowStart(g))<Math.abs(d-this.getFlowEnd(g)))?{type:"item",key:D.key,dropPosition:T?"after":"before"}:{type:"item",key:D.key,dropPosition:T?"before":"after"}}};export{tt as a,ie as b,rt as c,at as d,pt as e,Ze as f,gt as g,ft as h,se as i};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-22BJMDCA.mjs';import {a as a$1}from'./chunk-JDLUGVXG.mjs';import {b}from'./chunk-AUOQSTS5.mjs';import {breakpoints}from'@baseline-ui/tokens';import m,{useContext,useMemo,useCallback}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function x(o){let{breakpoints:n=breakpoints}=useContext(a),r=useMemo(()=>({tablet:`screen and (min-width: ${n.tablet}px)`,desktop:`screen and (min-width: ${n.desktop}px)`}),[n]),s=useCallback(()=>{let e=b(typeof window>"u"?void 0:o),t=e.matchMedia(r.tablet);return e.matchMedia(r.desktop).matches?"desktop":t.matches?"tablet":"mobile"},[o,r]),[a$2,p]=m.useState(s);return a$1(()=>{let e=b(o),t=()=>{p(s());};return e.addEventListener("resize",t),t(),()=>{e.removeEventListener("resize",t);}},[o,s]),a$2}export{x as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-JDLUGVXG.mjs';import t 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 v(e,u,o){let n=t.useRef(null),s=t.useRef(o);a(()=>{s.current=o;});let i=JSON.stringify(u);return t.useEffect(()=>{if(!e)return;let r=new MutationObserver((f,l)=>{s.current(f,l);});return n.current=r,r.observe(e,u),()=>{r.disconnect(),n.current=null;}},[e,i]),n.current}export{v as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
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 t(e){return typeof e=="object"&&typeof e.left=="number"&&typeof e.top=="number"&&(typeof e.width=="number"||e.width===void 0)&&(typeof e.height=="number"||e.height===void 0)}export{t as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$6}from'./chunk-EA6GA4WC.mjs';import {a as a$4}from'./chunk-CFLEBB5T.mjs';import {b,d as d$1,a as a$5,c as c$2}from'./chunk-W6QO7FPZ.mjs';import {b as b$1}from'./chunk-4ZJMZB5B.mjs';import {e,h,c,d,g}from'./chunk-B7PSE5KC.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {c as c$1,b as b$2}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-KEVERVHK.mjs';import {createContext,forwardRef,useContext,useMemo,useRef,useEffect}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var W=new WeakMap;function C(o,e,t){let{labelProps:n,inputProps:a,descriptionProps:r,errorMessageProps:i,isSelected:l,isPressed:d,isDisabled:u,isReadOnly:m,isInvalid:f,validationErrors:b,validationDetails:x}=a$6(o,e,t),{isIndeterminate:c}=o;return useEffect(()=>{t.current&&(t.current.indeterminate=!!c);}),{labelProps:c$1(n,useMemo(()=>({onMouseDown:s=>s.preventDefault()}),[])),inputProps:a,descriptionProps:r,errorMessageProps:i,isSelected:l,isPressed:d,isDisabled:u,isReadOnly:m,isInvalid:f,validationErrors:b,validationDetails:x}}function O(o,e,t){let n=a$4({isReadOnly:o.isReadOnly||e.isReadOnly,isSelected:e.isSelected(o.value),defaultSelected:e.defaultValue.includes(o.value),onChange(s){s?e.addValue(o.value):e.removeValue(o.value),o.onChange&&o.onChange(s);}}),{name:a,form:r,descriptionId:i,errorMessageId:l,validationBehavior:d}=W.get(e);d=o.validationBehavior??d;let{realtimeValidation:u}=d$1({...o,value:n.isSelected,name:void 0,validationBehavior:"aria"}),m=useRef(a$5),f=()=>{e.setInvalid(o.value,u.isInvalid?u:m.current);};useEffect(f);let b=e.realtimeValidation.isInvalid?e.realtimeValidation:u,x=d==="native"?e.displayValidation:b,c=C({...o,isReadOnly:o.isReadOnly||e.isReadOnly,isDisabled:o.isDisabled||e.isDisabled,name:o.name||a,form:o.form||r,isRequired:o.isRequired??e.isRequired,validationBehavior:d,[c$2]:{realtimeValidation:b,displayValidation:x,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(s){m.current=s,f();}}},n,t);return {...c,inputProps:{...c.inputProps,"aria-describedby":[c.inputProps["aria-describedby"],e.isInvalid?l:null,i].filter(Boolean).join(" ")||void 0}}}var k=createContext(null);forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,k);let{validationErrors:n,validationBehavior:a="native",children:r,className:i,...l}=e$1;return jsx(h.form,{noValidate:a!=="native",...l,ref:t,className:i||"react-aria-Form",children:jsx(k.Provider,{value:{...e$1,validationBehavior:a},children:jsx(b.Provider,{value:n??{},children:r})})})});var re=createContext(null),bo=createContext(null);createContext(null);var ie=createContext(null);var z=createContext(null);function ae(o,e){let{validationBehavior:t}=d(k)||{},n=o.validationBehavior??t??"native",a=useContext(ie),r=a$3(useMemo(()=>b$2(e,o.inputRef!==void 0?o.inputRef:null),[e,o.inputRef])),i={...g(o),children:typeof o.children=="function"?true:o.children,value:o.value,validationBehavior:n};return [a?O(i,a,r):C(i,a$4(o),r),r]}var fo=forwardRef(function(e$1,t){let{inputRef:n=null,...a}=e$1;[e$1,t]=e(a,t,re);let[r,i]=ae(e$1,n);return jsx(z.Provider,{value:{...r,inputRef:i,defaultClassName:"react-aria-Checkbox",isIndeterminate:e$1.isIndeterminate,isRequired:e$1.isRequired},children:jsx(ne,{...e$1,ref:t})})}),ne=forwardRef(function(e,t){let{labelProps:n,inputProps:a$3,isSelected:r,isDisabled:i,isReadOnly:l,isPressed:d,isInvalid:u,inputRef:m,defaultClassName:f,isIndeterminate:b,isRequired:x}=useContext(z),{isFocused:c$2,isFocusVisible:s,focusProps:J}=a(),K=i||l,{hoverProps:Q,isHovered:g}=a$1({...e,isDisabled:K}),T=c({...e,defaultClassName:f,values:{isSelected:r,isIndeterminate:b||false,isPressed:d,isHovered:g,isFocused:c$2,isFocusVisible:s,isDisabled:i,isReadOnly:l,isInvalid:u,isRequired:x||false}}),I=a$2(e,{global:true});return delete I.id,delete I.onClick,jsxs(h.label,{...c$1(I,n,Q,T),ref:t,slot:e.slot||void 0,"data-selected":r||void 0,"data-indeterminate":b||void 0,"data-pressed":d||void 0,"data-hovered":g||void 0,"data-focused":c$2||void 0,"data-focus-visible":s||void 0,"data-disabled":i||void 0,"data-readonly":l||void 0,"data-invalid":u||void 0,"data-required":x||void 0,children:[jsx(b$1,{elementType:"span",children:jsx("input",{...c$1(a$3,J),ref:m})}),T.children]})});export{re as a,bo as b,fo as c};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-TKQOQVZD.mjs';import {a as a$2}from'./chunk-TAYP2OGC.mjs';import {a as a$4}from'./chunk-IVVZSESM.mjs';import {B as B$1}from'./chunk-OMT6ZWSV.mjs';import {b}from'./chunk-J3MJZQUJ.mjs';import {a as a$6}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-WWSGOGLA.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {UploadIcon}from'@baseline-ui/icons/20';import a$1 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 I="_1yep5z6dv _1yep5z6ew",B=a({defaultClassName:"_12y0zas5 _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ln _1yep5z6dy _1yep5z6f1",variantClassNames:{isDisabled:{true:"_12y0zas6 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),P=a({defaultClassName:"_12y0zas0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln _1yep5z6g3",variantClassNames:{isInline:{true:"_1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6183 _1yep5z6184 _1yep5z6138"},isDropTarget:{true:"_1yep5z612e"},isError:{true:"_1yep5z6182 _1yep5z6185 _1yep5z612q"},isDisabled:{true:"_1yep5z6182 _1yep5z6184 _1yep5z613e"}},defaultVariants:{},compoundVariants:[[{isInline:true,isError:true},"_1yep5z61u6 _1yep5z61u8 _1yep5z61ot"]]}),w=a({defaultClassName:"_12y0zas7 _1yep5z6f6",variantClassNames:{isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),k="_1yep5z6dv _1yep5z6ee",E="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",L="_1yep5z6dy _1yep5z6ev",D="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ln";var Y="Drop files here or click to upload",$="Upload",V=a$1.forwardRef(({className:q,style:A,variant:m="dropzone",isInline:O=false,label:t,description:i,onAdd:c$1,accept:o,allowsMultiple:n=true,isDisabled:p,errorMessage:y,buttonLabel:S=$,dropzoneLabel:H=Y},Z)=>{let f=a$1.useId(),v=a$1.useId(),b$1=a$1.useId(),x=a$1.useRef(null),l=a$1.useCallback(e=>{if(!e.length)return;let X=n?e:e.slice(0,1);c$1?.(X);},[n,c$1]),C=e=>{e&&l([...e]);},{dropProps:G,isDropTarget:J}=B$1({ref:x,onDrop:async e=>{l(await a$2({items:e.items,accept:o}));}}),{clipboardProps:K}=a$3({isDisabled:p,onPaste:async e=>{l(await a$2({items:e,accept:o}));}}),F=[i?v:null,y?b$1:null].filter(Boolean).join(" ")||void 0,M=t||i?jsxs("div",{className:E,children:[t?jsx("div",{id:f,className:L,children:t}):null,i?jsx("div",{id:v,className:I,children:i}):null]}):null,Q=m==="dropzone"?jsx(a$4,{acceptedFileTypes:o?[o]:void 0,allowsMultiple:n,onSelect:C,children:jsx(a$5,{isDisabled:p,children:jsx("div",{ref:x,...c(p?{}:G,K),role:"button",tabIndex:p?-1:0,"aria-labelledby":t?f:void 0,"aria-describedby":F,"aria-disabled":p||void 0,"data-testid":"file-uploader-dropzone",className:P({isInline:O,isDropTarget:J,isDisabled:p,isError:!!y}),children:jsxs("div",{className:B({isDisabled:p}),children:[jsx(UploadIcon,{width:20,height:20,className:w({isDisabled:p})}),jsx("span",{children:H})]})})})}):jsx(a$4,{acceptedFileTypes:o?[o]:void 0,allowsMultiple:n,onSelect:C,children:jsx(b,{variant:"primary",iconStart:UploadIcon,label:S,isDisabled:p,"aria-describedby":F})}),W=y?jsx(a$6,{id:b$1,elementType:"span",role:"alert",className:k,children:y}):null;return jsxs("div",{ref:Z,className:a$7(D,"BaselineUI-FileUploader",q),style:A,"data-variant":m,"data-testid":"file-uploader",children:[M,Q,W]})});V.displayName="FileUploader";export{V as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$9}from'./chunk-TJEK54BW.mjs';import {c as c$1,d}from'./chunk-OC42IZG2.mjs';import {a as a$8}from'./chunk-NGZRN4SF.mjs';import {a as a$2}from'./chunk-GCZFXILF.mjs';import {a as a$c}from'./chunk-34TYNTXM.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a as a$a}from'./chunk-D3IZ4HBL.mjs';import {a as a$7}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-K6X2BHPP.mjs';import {a as a$6,d as d$1}from'./chunk-BGMVPFYK.mjs';import {a as a$4}from'./chunk-3FYY26ED.mjs';import {q}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$b}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import k,{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 h(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:s,shouldSelectOnPressUp:r}=a,{selectionManager:o,selectedKey:c$1}=e,l=i===c$1,n=s||e.isDisabled||e.selectionManager.isDisabled(i),p=e.collection.getItem(i),{itemProps:b,isPressed:m}=d({selectionManager:o,key:i,ref:t,isDisabled:n,shouldSelectOnPressUp:r??p?.props.href!=null,linkBehavior:"selection"}),d$2=h(e,i,"tab"),P=h(e,i,"tabpanel"),{tabIndex:L}=b,x=a$b(p?.props,{labelable:true});delete x.id;let g=q(p?.props),{focusableProps:v}=d$1({...p?.props,isDisabled:n},t);return {tabProps:c(x,v,g,b,{id:d$2,"aria-selected":l,"aria-disabled":n||void 0,"aria-controls":l?P:void 0,tabIndex:n?void 0:L,role:"tab"}),isSelected:l,isDisabled:n,isPressed:m}}function A(a,e,t){let i=a$c(t)?void 0:0,s=h(e,a.id??e?.selectedKey,"tabpanel"),r=a$a({...a,id:s,"aria-labelledby":h(e,e?.selectedKey,"tab")});return {tabPanelProps:c(r,{tabIndex:i,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}var z=class{collection;flipDirection;disabledKeys;tabDirection;constructor(e,t,i,s=new Set){this.collection=e,this.flipDirection=t==="rtl"&&i==="horizontal",this.disabledKeys=s,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:s="automatic"}=a,{collection:r,selectionManager:o,disabledKeys:c$3}=e,{direction:l}=b(),n=useMemo(()=>new z(r,l,i,c$3),[r,c$3,i,l]),{collectionProps:p}=c$1({ref:t,selectionManager:o,keyboardDelegate:n,selectOnFocus:s==="automatic",disallowEmptySelection:true,scrollRef:t,linkBehavior:"selection"}),b$1=c$2();I.set(e,b$1);let m=a$a({...a,id:b$1});return {tabListProps:{...c(p,m),role:"tablist","aria-orientation":i,tabIndex:void 0}}}function N(a){let e=a$9({...a,onSelectionChange:a.onSelectionChange?o=>{o!=null&&a.onSelectionChange?.(o);}: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:s}=e,r=useRef(s);return useEffect(()=>{let o=s;a.selectedKey==null&&(t.isEmpty||o==null||!i.getItem(o))&&(o=Z(i,e.disabledKeys),o!=null&&t.setSelectedKeys([o])),(o!=null&&t.focusedKey==null||!t.isFocused&&o!==r.current)&&t.setFocusedKey(o),r.current=o;}),{...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 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",te=a({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6111"},variant:{primary:"_1x62fhbb _1yep5z6zy",ghost:"_1yep5z6101"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61n0"],[{variant:"primary",isSelected:true},"_1yep5z61o7"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61n7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:true},"_1yep5z61o8"]]}),ae=a({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),ie="_1x62fhbl",R=a({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61nb"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61ng"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61nd"]]}),re="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",se=a({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var oe=({state:a,...e})=>{let t=k.useRef(null),{tabPanelProps:i}=A(e,a,t),{selectedItem:s}=a,{focusProps:r,isFocusVisible:o}=a$5();if(!s?.value)return null;let{className:c$1,style:l,"data-block-id":n}=s.value;return jsx("div",{...c(i,r),ref:t,className:a$3({[re]:o},"Baseline-Tabs-TabPanel",c$1),"data-block-id":n,style:l,children:s?.props.children})};var M=k.forwardRef(({className:a,style:e,tabHeaderStyle:t,tabHeaderClassName:i,variant:s="primary",actions:r,onRemove:o,"data-block-id":c,...l},n)=>{let p=N({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),b=k.useRef(null),{tabListProps:m}=O({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},p,b);return jsxs("div",{className:a$3("BaselineUI-Tabs",a),style:e,ref:n,"data-block-id":c,children:[jsxs("div",{className:a$3(se({variant:s}),i),style:t,children:[jsx("div",{...m,className:ae({variant:s}),ref:b,children:[...p.collection].map(d=>(a$1(d.value,"TabItem requires a value prop"),jsx(le,{item:d,state:p,onRemove:o,variant:s},d.key)))}),r?.map((d,P)=>jsx("div",{className:ee,children:jsx(a$2,{...d,variant:"secondary",size:"sm",className:a$3(ie,d.className)})},P))]}),jsx(oe,{state:p},p.selectedItem?.key)]})});M.displayName="TabsBase";var le=({item:a,onRemove:e,state:t,variant:i})=>{let{key:s,value:r}=a,o=k.useRef(null),{tabProps:c$1,isSelected:l,isDisabled:n}=C({key:s},t,o),{hoverProps:p,isHovered:b}=a$4({});a$1(r,"TabButton requires a value prop");let{title:m,icon:d,titleStyle:P,titleClassName:L}=r,{focusProps:x,isFocusVisible:g,isFocused:v}=a$5(),{keyboardProps:de}=a$6({onKeyDown:w=>{w.key==="Backspace"&&e?e(s):w.continuePropagation();}}),ce=a$7({"data-selected":l,"data-disabled":n,"data-focused":v,"data-hovered":b,"data-focus-visible":g});return jsxs("div",{...c(de,c$1,p,x,ce),className:a$3(te({isHovered:b,isSelected:l,isFocusVisible:g,isDisabled:n,variant:i}),"BaselineUI-Tabs-TabButton",L),style:P,ref:o,children:[d?jsx(d,{size:20,className:R({isHovered:b,isSelected:l,isDisabled:n,variant:i})}):null,m,e?jsx(a$2,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>{e(s);},excludeFromTabOrder:true,UNSAFE_isVisuallyInteractiveOnly:true,style:{display:"inline-flex",opacity:l||v||b?1:0},className:R({isHovered:b,isSelected:l,isDisabled:n,variant:i})}):null]})};le.displayName="TabButton";var pe=k.forwardRef(function({children:e,...t},i){let s=useMemo(()=>k.Children.map(e,r=>!r||!k.isValidElement(r)||typeof r.type=="string"?null:{...r.props,id:r.props.value}).filter(Boolean),[e]);return jsx(M,{...t,ref:i,items:s,children:r=>jsx(a$8,{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};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {c as c$1}from'./chunk-ROHLZINC.mjs';import {a as a$5}from'./chunk-GCZFXILF.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {TrashIcon}from'@baseline-ui/icons/16';import G 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 j="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",o="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",H=a({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6lt _1yep5z6lr _1yep5z6ic _1yep5z6lu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6lp _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6137 _1yep5z6182 _1yep5z6184",false:"_1yep5z612h"},isFocusVisible:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 z9nup82 _1yep5z6zd"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:true},"_1yep5z61oi"],[{accent:"theme",isInline:true},"_1yep5z61o7"],[{accent:"positive",isInline:false},"_1yep5z61ok"],[{accent:"theme",isInline:false},"_1yep5z61o9"],[{isFocusVisible:true,isInline:true},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:true,isInline:true},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:true,isInline:false,accent:"positive"},"_1yep5z61oj"],[{isHovered:true,isInline:false,accent:"theme"},"_1yep5z61ob"],[{isHovered:true,isInline:true,accent:"theme"},"_1yep5z61o8"]]});var F=G.forwardRef(({className:g,style:V,isDisabled:e,isInline:a=true,imageAlt:y,imageSrc:r,svgSrc:t,textValue:i,textStyle:B,onPress:R,onDelete:n,deleteAriaLabel:T,addAriaLabel:_,accent:q="positive","data-block-id":M,"data-block-class":E,...z},U)=>{let{focusProps:l,isFocused:Y,isFocusVisible:m}=a$1({within:true}),{isHovered:u,hoverProps:c$2}=a$2({isDisabled:e}),{pressProps:v}=d({isDisabled:e,onPress:R});a$3(r||t||i,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let d$1=a$4({"data-hovered":u,"data-focus-visible":m,"data-focused":Y,"data-disabled":e});return jsxs("div",{...z,className:a$6(H({isInline:a,isFocusVisible:m,isDisabled:e,isHovered:u,accent:q}),"BaselineUI-Preview",g),"data-block-id":M,"data-block-class":E,"aria-label":z["aria-label"]||y||i,style:V,ref:U,children:[typeof t=="string"?jsx("button",{disabled:e,...c(c$2,l,v,d$1),className:o,"aria-label":_,dangerouslySetInnerHTML:{__html:t}}):jsxs("button",{...c(c$2,l,v,d$1),disabled:e,style:B,"aria-label":_,className:o,children:[r?jsx("img",{src:r,alt:y,className:c$1({isInline:a,isDisabled:e})}):null,!!t&&typeof t=="object"&&t,i]}),n?jsx(a$5,{isDisabled:e,className:j,"aria-label":T,size:"xs",icon:TrashIcon,onPress:n}):null]})});F.displayName="Preview";export{F as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useDevice}from'../chunk-ZGRRD3TU.mjs';import'../chunk-22BJMDCA.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'../chunk-X3OCHEQM.mjs';import'../chunk-XXANV3FM.mjs';import'../chunk-F7PGMOQF.mjs';import'../chunk-GFLVN5JQ.mjs';import'../chunk-NHM3H5JU.mjs';import'../chunk-N2XGJKZG.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useImage}from'../chunk-NV7KQVPE.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useIntersectionObserver}from'../chunk-TIHKHXTS.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useIsFirstRender}from'../chunk-DD5FWULD.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useIsTouchDevice}from'../chunk-CWPFUB7B.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useLiveInteractionModality}from'../chunk-UCNHDT36.mjs';import'../chunk-6Z6HOW6T.mjs';import'../chunk-TDXALNX3.mjs';import'../chunk-XBBPWSJI.mjs';import'../chunk-7PRJIPFA.mjs';import'../chunk-WWSGOGLA.mjs';import'../chunk-BU5H25MV.mjs';import'../chunk-6IX6BM7C.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-BGMVPFYK.mjs';import'../chunk-YB3KW7JC.mjs';import'../chunk-Y4DRSGEJ.mjs';import'../chunk-3FYY26ED.mjs';import'../chunk-AQYBKDT2.mjs';import'../chunk-66NJ7EYY.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useLocalStorage}from'../chunk-FTYXFTJV.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as formattedDuration,a as useMedia}from'../chunk-IYFTU6IC.mjs';import'../chunk-X3OCHEQM.mjs';import'../chunk-XXANV3FM.mjs';import'../chunk-F7PGMOQF.mjs';import'../chunk-GFLVN5JQ.mjs';import'../chunk-NHM3H5JU.mjs';import'../chunk-N2XGJKZG.mjs';import'../chunk-5YHNHEDK.mjs';import'../chunk-JJG67M2S.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useMutationObserver}from'../chunk-ZLAY7NNY.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as usePortalContainer}from'../chunk-YV3WI6OV.mjs';import'../chunk-QMDDCVAF.mjs';import'../chunk-DD5FWULD.mjs';import'../chunk-ZGRRD3TU.mjs';import'../chunk-6Z6HOW6T.mjs';import'../chunk-TDXALNX3.mjs';import'../chunk-XBBPWSJI.mjs';import'../chunk-7PRJIPFA.mjs';import'../chunk-OO7BXL2N.mjs';import'../chunk-WWSGOGLA.mjs';import'../chunk-BU5H25MV.mjs';import'../chunk-22BJMDCA.mjs';import'../chunk-6IX6BM7C.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-BGMVPFYK.mjs';import'../chunk-YB3KW7JC.mjs';import'../chunk-Y4DRSGEJ.mjs';import'../chunk-3FYY26ED.mjs';import'../chunk-AQYBKDT2.mjs';import'../chunk-66NJ7EYY.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as usePreventFocus}from'../chunk-63KRQW56.mjs';import'../chunk-AKES5B6C.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useResizeObserver}from'../chunk-TK4QXU3W.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useTextSelection}from'../chunk-TO2TQ2LE.mjs';import'../chunk-6IX6BM7C.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-AQYBKDT2.mjs';import'../chunk-66NJ7EYY.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as useUndoRedo}from'../chunk-MI7DCFP2.mjs';import'../chunk-DD5FWULD.mjs';import'../chunk-XPISSX5R.mjs';
|