@baseline-ui/core 2.2.0 → 3.0.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-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-3X2QM7GV.mjs +10 -0
- package/dist/chunk-44OUOGJ4.mjs +10 -0
- package/dist/chunk-4ILKZKTW.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-535OT4US.mjs +10 -0
- package/dist/chunk-545KDVGI.mjs +10 -0
- package/dist/chunk-54IAJ3RI.mjs +0 -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-67MPTBBY.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-7AY6C5M5.mjs +10 -0
- package/dist/chunk-7FJMUUHS.mjs +10 -0
- package/dist/chunk-7PRJIPFA.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-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-DM26KBZ3.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-FTYXFTJV.mjs +10 -0
- package/dist/chunk-FWAK2OZM.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-GKODQS6E.mjs +10 -0
- package/dist/chunk-GOSLHCDP.mjs +0 -0
- package/dist/chunk-GX2IOGYR.mjs +12 -0
- package/dist/chunk-GXOXYPQQ.mjs +10 -0
- package/dist/chunk-H2LXVMBI.mjs +29 -0
- package/dist/chunk-HBBRMEES.mjs +10 -0
- package/dist/chunk-HEO2XVRN.mjs +10 -0
- package/dist/chunk-HI44JQA7.mjs +10 -0
- package/dist/chunk-HJQZW2VO.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-HZHAKW6I.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-J3MJZQUJ.mjs +10 -0
- package/dist/chunk-J4NO4WYU.mjs +0 -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-K5RKL3WY.mjs +10 -0
- package/dist/chunk-K6IQ4ALU.mjs +0 -0
- package/dist/chunk-K6X2BHPP.mjs +10 -0
- package/dist/chunk-KAYY6L7Y.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-LQB4U6GF.mjs +10 -0
- package/dist/chunk-LQMEFFFM.mjs +10 -0
- package/dist/chunk-LZFTBNPW.mjs +10 -0
- package/dist/chunk-LZM6UK3C.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-MHUFXHRU.mjs +10 -0
- package/dist/chunk-MI7DCFP2.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-N7MTFSWR.mjs +10 -0
- package/dist/chunk-NCADIC3I.mjs +10 -0
- package/dist/chunk-NGZRN4SF.mjs +10 -0
- package/dist/chunk-NHM3H5JU.mjs +0 -0
- package/dist/chunk-NKKKKVQ7.mjs +10 -0
- package/dist/chunk-NMTDGCRA.mjs +10 -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-O57ZEY3V.mjs +0 -0
- package/dist/chunk-O66FNQSB.mjs +10 -0
- package/dist/chunk-O6AE67ZY.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-OMT6ZWSV.mjs +11 -0
- package/dist/chunk-OO7BXL2N.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-PF3OQKXP.mjs +10 -0
- package/dist/chunk-PHZZLBH3.mjs +10 -0
- package/dist/chunk-PR3HWZFH.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-QY3O34WX.mjs +10 -0
- package/dist/chunk-RC7QITNV.mjs +10 -0
- package/dist/chunk-RCBUNCHV.mjs +10 -0
- package/dist/chunk-RELI5YAS.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-S5XX36JC.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-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-UCNHDT36.mjs +10 -0
- package/dist/chunk-UCZZLAPB.mjs +10 -0
- package/dist/chunk-UMABUZ67.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-VU2PDOBR.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-WDJ4GXWF.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-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-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-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 +349 -73
- 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 +9 -6
- package/sbom.json +13 -13
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-CFLEBB5T.mjs';import {c}from'./chunk-PBFIKNYZ.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {b,c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import C 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 f=a({defaultClassName:"_5uw3kp0 oom8bs0 z9nup81",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true},"_5uw3kpa"],[{isSelected:true,isDisabled:true},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),k=a({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var z={sm:16,md:20,lg:24},v=C.forwardRef(({className:t,style:a,iconStart:i,size:u="md",elementType:_="button",variant:w="toolbar",...e},y)=>{let o=a$1(e),{buttonProps:h,isPressed:x,ref:B,isFocusVisible:s,isFocused:T,isHovered:l,uiStateOptions:n}=c(e,o),S=a$2({"data-block-id":e["data-block-id"],"data-block-class":e["data-block-class"],"data-focused":T,"data-focus-visible":s,"data-disabled":e.isDisabled,"data-hovered":l,"data-pressed":x,"data-selected":o.isSelected});return jsxs(_,{...c$1(h,S),className:a$3(f({isHovered:l,isFocusVisible:s,isSelected:o.isSelected,size:u,isDisabled:e.isDisabled,variant:w}),"BaselineUI-ToggleButton",typeof t=="function"?t(n):t),style:typeof a=="function"?a(n):a,ref:b(B,y),children:[i?jsx(i,{size:z[u],className:k({isDisabled:e.isDisabled,isSelected:o.isSelected})}):null,e.label]})});v.displayName="ToggleButton";export{f as a,v as b};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$b}from'./chunk-AMYRLAIC.mjs';import {j,c,i,l,p,r,s,m,w,u,v,k,f as f$2,e as e$1,x,d,q,a as a$i}from'./chunk-SMAYNDQQ.mjs';import {a as a$f}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$6}from'./chunk-KKJ6XIU3.mjs';import {c as c$8}from'./chunk-BKDQLDOK.mjs';import {c as c$2,f as f$1,e as e$2,d as d$2}from'./chunk-O66FNQSB.mjs';import {a as a$g}from'./chunk-AZRPXTYJ.mjs';import {a as a$l}from'./chunk-J7K7I5U2.mjs';import {b as b$3}from'./chunk-246VHB32.mjs';import {d as d$3}from'./chunk-OC42IZG2.mjs';import {b,c as c$1}from'./chunk-PAQQ7MQG.mjs';import {a as a$c,f as f$3}from'./chunk-DECHIERQ.mjs';import {f as f$4}from'./chunk-AKES5B6C.mjs';import {a as a$8,b as b$7}from'./chunk-AC7OXVHA.mjs';import {a as a$d}from'./chunk-O7XK2WIX.mjs';import {b as b$a}from'./chunk-WWSGOGLA.mjs';import {a as a$3}from'./chunk-KUEDQO7P.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$9}from'./chunk-WL27JGVG.mjs';import {a as a$r}from'./chunk-BU5H25MV.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {c as c$9}from'./chunk-RCBUNCHV.mjs';import {a as a$q}from'./chunk-UUBOEBYZ.mjs';import {e,h,c as c$3,b as b$4,f,a as a$9,d as d$1}from'./chunk-B7PSE5KC.mjs';import {a as a$m}from'./chunk-4PYEGHW5.mjs';import {a as a$h}from'./chunk-66CUIXA6.mjs';import {b as b$5,c as c$5,a as a$o}from'./chunk-PF3OQKXP.mjs';import {a as a$k}from'./chunk-RXSYDMT6.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {a as a$6,d as d$6}from'./chunk-BGMVPFYK.mjs';import {a as a$7}from'./chunk-YB3KW7JC.mjs';import {b as b$6,d as d$5,f as f$6}from'./chunk-Y4DRSGEJ.mjs';import {a as a$5}from'./chunk-3FYY26ED.mjs';import {d as d$4}from'./chunk-AQYBKDT2.mjs';import {a as a$4}from'./chunk-RT4LMB6X.mjs';import {n,q as q$1,a as a$n,t,r as r$1}from'./chunk-MRJFGHFW.mjs';import {c as c$4}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-KEVERVHK.mjs';import {c as c$7,a as a$j,e as e$4}from'./chunk-JDLUGVXG.mjs';import {e as e$3,g,i as i$1,f as f$5,b as b$8,a as a$p}from'./chunk-AUOQSTS5.mjs';import {a as a$a}from'./chunk-FXCHST4Z.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Ce,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
|
|
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 fe=createContext({}),He=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,fe),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var Ne=createContext({});var nt=createContext(null),ie=createContext(null),it=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,nt);let o=useContext(ie);return o?jsx(Cr,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(uo,{props:e$1,listBoxRef:t,collection:n})})});function uo({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(Cr,{state:n,props:r,listBoxRef:e})}function Cr({state:r$1,props:e$1,listBoxRef:t}){[e$1,t]=e(e$1,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$1,s$1=c$1(r$1,l),{collection:c,selectionManager:m$1}=s$1,u$1=!!o?.useDraggableCollectionState,p$1=!!o?.useDroppableCollectionState,{direction:f}=b$2(),{disabledBehavior:a$4,disabledKeys:x}=m$1,y=a({usage:"search",sensitivity:"base"}),{isVirtualized:h$1,layoutDelegate:S,dropTargetDelegate:D,CollectionRoot:v$1}=useContext(p),R=useMemo(()=>e$1.keyboardDelegate||new b$3({collection:c,collator:y,ref:t,disabledKeys:x,disabledBehavior:a$4,layout:n,orientation:i,direction:f,layoutDelegate:S}),[c,y,t,a$4,x,i,f,e$1.keyboardDelegate,n,S]),{listBoxProps:E}=c$2({...e$1,shouldSelectOnPressUp:u$1||e$1.shouldSelectOnPressUp,keyboardDelegate:R,isVirtualized:h$1},s$1,t),w$1=useRef(u$1),d=useRef(p$1);useEffect(()=>{process.env.NODE_ENV!=="production"&&(w$1.current!==u$1&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),d.current!==p$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[u$1,p$1]);let M,g,b,L=false,O=null,F=useRef(null);if(u$1&&o){M=o.useDraggableCollectionState({collection:c,selectionManager:m$1,preview:o.renderDragPreview?F:void 0}),o.useDraggableCollection({},M,t);let Y=o.DragPreview;O=o.renderDragPreview?jsx(Y,{ref:F,children:o.renderDragPreview}):null;}if(p$1&&o){g=o.useDroppableCollectionState({collection:c,selectionManager:m$1});let Y=o.dropTargetDelegate||D||new o.ListDropTargetDelegate(c,t,{orientation:i,layout:n,direction:f});b=o.useDroppableCollection({keyboardDelegate:R,dropTargetDelegate:Y},g,t),L=g.isDropTarget({type:"root"});}let{focusProps:q,isFocused:U,isFocusVisible:K}=a$1(),H=s$1.collection.size===0,ee={isDropTarget:L,isEmpty:H,isFocused:U,isFocusVisible:K,layout:e$1.layout||"stack",orientation:i,state:s$1},le=c$3({...e$1,children:void 0,defaultClassName:"react-aria-ListBox",values:ee}),te=null;H&&e$1.renderEmptyState&&(te=jsx("div",{role:"option",style:{display:"contents"},children:e$1.renderEmptyState(ee)}));let J=a$2(e$1,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(J,le,E,q,b?.collectionProps),ref:t,slot:e$1.slot||void 0,onScroll:e$1.onScroll,"data-drop-target":L||void 0,"data-empty":H||void 0,"data-focused":U||void 0,"data-focus-visible":K||void 0,"data-layout":e$1.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[nt,e$1],[ie,s$1],[r,{dragAndDropHooks:o,dragState:M,dropState:g}],[Ne,{elementType:"div"}],[s,{render:po}],[m,{name:"ListBoxSection",render:Dr}]],children:jsx(w,{children:jsx(v$1,{collection:c,scrollRef:t,persistedKeys:v(m$1,o,g),renderDropIndicator:u(o,g)})})}),te,O]})})}function Dr(r$1,e,t,o="react-aria-ListBoxSection"){let n=useContext(ie),{dragAndDropHooks:i,dropState:l}=useContext(r),{CollectionBranch:s}=useContext(p),[c,m]=f(),{headingProps:u$1,groupProps:p$1}=f$1({heading:m,"aria-label":r$1["aria-label"]??void 0}),f$2=c$3({...r$1,id:void 0,children:void 0,defaultClassName:o,values:void 0}),a=a$2(r$1,{global:true});return delete a.id,jsx(h.section,{...c$4(a,f$2,p$1),ref:e,children:jsx(fe.Provider,{value:{...u$1,ref:c},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:u(i,l)})})})}var lt=k(f$2,Dr),st=j(e$1,function(e,t,o){let n=a$4(t),i=useContext(ie),{dragAndDropHooks:l,dragState:s,dropState:c}=useContext(r),m=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:u,labelProps:p,descriptionProps:f,...a}=e$2({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:x$1,isHovered:y}=a$5({isDisabled:!a.allowsSelection&&!a.hasAction&&!m,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:h$1}=a$6(e),{focusProps:S}=a$7(e),D=null;s&&l&&(D=l.useDraggableItem({key:o.key,hasAction:a.hasAction},s,n));let v=null;c&&l&&(v=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,n));let R=s&&s.isDragging(o.key),E=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...a,isHovered:y,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:R,isDropTarget:v?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let w=e.href?h.a:h.div,d=a$2(e,{global:true});return delete d.id,delete d.onClick,e.href&&u.tabIndex==null&&(u.tabIndex=-1),jsx(w,{...c$4(d,E,u,x$1,h$1,S,D?.dragProps,v?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":a.isSelected||void 0,"data-disabled":a.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":a.isFocusVisible||void 0,"data-pressed":a.isPressed||void 0,"data-dragging":R||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:p,label:p,description:f}}],[x,{isSelected:a.isSelected}]],children:E.children})})});function po(r$1,e){e=a$4(e);let{dragAndDropHooks:t,dropState:o}=useContext(r),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r$1,o,e);return i?null:jsx(mo,{...r$1,dropIndicatorProps:n,isDropTarget:l,ref:e})}function co(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var mo=forwardRef(co);j(d,function(e,t,o){let n=useContext(ie),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,m=useRef(null),u=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:m,scrollOffset:s}),[l,s,n?.collection]);b$5(u,m);let p=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),f={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:c$5(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:m,style:{position:"absolute",height:1,width:1}})}),i&&p.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),f),...p,role:"option",ref:t,children:p.children})})]})});var Rr=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var gi=a$a({defaultClassName:"_1fjxa6ld _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),Lr="_1fjxa6la _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",Er=a$a({defaultClassName:"_1fjxa6lb _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Or=a$a({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isDisabled:{true:"z9nup82 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Ar="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",Ir="_1fjxa6l1",kr="_1fjxa6l2",wr="_1fjxa6l0";var Fr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function at(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$7(),{triggerProps:s,overlayProps:c}=a$q({type:o},e,t),m=a=>{if(!n&&!(i==="longPress"&&!a.altKey)&&t&&t.current)switch(a.key){case "Enter":case " ":if(i==="longPress"||a.isDefaultPrevented())return;case "ArrowDown":"continuePropagation"in a||a.stopPropagation(),a.preventDefault(),e.toggle("first");break;case "ArrowUp":"continuePropagation"in a||a.stopPropagation(),a.preventDefault(),e.toggle("last");break;default:"continuePropagation"in a&&a.continuePropagation();}},u=b$9(Fr,"@react-aria/menu"),{longPressProps:p}=a$r({isDisabled:n||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),f={preventFocusOnPress:true,onPressStart(a){a.pointerType!=="touch"&&a.pointerType!=="keyboard"&&!n&&(a$n(a.target),e.open(a.pointerType==="virtual"?"first":null));},onPress(a){a.pointerType==="touch"&&!n&&(a$n(a.target),e.toggle());}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?f:p,id:l,onKeyDown:m},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var _e=new WeakMap;function ut(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:c}=a$l({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return _e.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:c$4(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...c,onKeyDown:m=>{(m.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(m);}})}}function dt(r,e,t){let{id:o,key:n$1,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s,"aria-haspopup":c,onPressStart:m,onPressUp:u,onPress:p,onPressChange:f,onPressEnd:a,onClick:x,onHoverStart:y,onHoverChange:h,onHoverEnd:S,onKeyDown:D,onKeyUp:v,onFocus:R,onFocusChange:E,onBlur:w,selectionManager:d=e.selectionManager}=r,M=!!c,g$1=M&&r["aria-expanded"]==="true",b=r.isDisabled??d.isDisabled(n$1),L=r.isSelected??d.isSelected(n$1),O=_e.get(e),F=e.collection.getItem(n$1),q=r.onClose||O.onClose,U=n(),K=()=>{if(!M&&(F?.props?.onAction?F.props.onAction():r.onAction&&r.onAction(n$1),O.onAction)){let P=O.onAction;P(n$1,F?.value);}},H="menuitem";M||(d.selectionMode==="single"?H="menuitemradio":d.selectionMode==="multiple"&&(H="menuitemcheckbox"));let ee=e$4(),le=e$4(),te=e$4(),J={id:o,"aria-disabled":b||void 0,role:H,"aria-label":r["aria-label"],"aria-labelledby":ee,"aria-describedby":[r["aria-describedby"],le,te].filter(Boolean).join(" ")||void 0,"aria-controls":r["aria-controls"],"aria-haspopup":c,"aria-expanded":r["aria-expanded"]};if(d.selectionMode!=="none"&&!M&&(J["aria-checked"]=L),s){let P=Number(F?.index);J["aria-posinset"]=Number.isNaN(P)?void 0:P+1,J["aria-setsize"]=d$2(e.collection);}let Y=useRef(false),T=P=>{f?.(P),Y.current=P;},j=useRef(null),Xe=P=>{P.pointerType!=="keyboard"&&(j.current={pointerType:P.pointerType}),P.pointerType==="mouse"&&(Y.current||P.target.click()),u?.(P);},Qr=P=>{x?.(P),K(),r$1(P,U,F.props.href,F?.props.routerOptions);let $e=j.current?.pointerType==="keyboard"?j.current?.key==="Enter"||d.selectionMode==="none"||d.isLink(n$1):d.selectionMode!=="multiple"||d.isLink(n$1);$e=l??i??$e,q&&!M&&$e&&q(),j.current=null;},{itemProps:ae,isFocused:Rt}=d$3({id:o,selectionManager:d,key:n$1,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:O.shouldUseVirtualFocus}),{pressProps:eo,isPressed:to}=d$4({onPressStart:m,onPress:p,onPressUp:Xe,onPressChange:T,onPressEnd:a,isDisabled:b}),{hoverProps:ro}=a$5({isDisabled:b,onHoverStart(P){!b$6()&&!(g$1&&c)&&(d.setFocused(true),d.setFocusedKey(n$1)),y?.(P);},onHoverChange:h,onHoverEnd:S}),{keyboardProps:oo}=a$6({onKeyDown:P=>{if(P.repeat){P.continuePropagation();return}switch(P.key){case " ":j.current={pointerType:"keyboard",key:" "},g(P).click(),d$5("keyboard");break;case "Enter":j.current={pointerType:"keyboard",key:"Enter"},g(P).tagName!=="A"&&g(P).click(),d$5("keyboard");break;default:M||P.continuePropagation(),D?.(P);break}},onKeyUp:v}),{focusableProps:no}=d$6({onBlur:w,onFocus:R,onFocusChange:E},t),Lt=a$2(F?.props);delete Lt.id;let io=q$1(F?.props);return {menuItemProps:{...J,...c$4(Lt,io,M?{onFocus:ae.onFocus,"data-collection":ae["data-collection"],"data-key":ae["data-key"]}:ae,eo,ro,oo,no,O.shouldUseVirtualFocus||M?{onMouseDown:P=>P.preventDefault()}:void 0,b?void 0:{onClick:Qr}),tabIndex:ae.tabIndex!=null&&g$1&&!O.shouldUseVirtualFocus?-1:ae.tabIndex},labelProps:{id:ee},descriptionProps:{id:le},keyboardShortcutProps:{id:te},isFocused:Rt,isFocusVisible:Rt&&d.isFocused&&b$6()&&!g$1,isSelected:L,isPressed:to,isDisabled:b}}function pt(r){let{heading:e,"aria-label":t}=r,o=e$4([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ke=2,bo=50,Po=1e3,Hr=Math.PI/12;function Nr(r){let{menuRef:e,submenuRef:t$1,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),c=useRef(void 0),m=useRef(void 0),u=useRef(void 0),p=useRef(2),[f,a]=useState(false);a$o({ref:o?t$1:void 0,onResize:()=>{t$1.current&&(l.current=t$1.current.getBoundingClientRect(),u.current=void 0);}});let y=()=>{a(false),p.current=Ke,i.current=void 0;},h=f$6(),S=t(D=>{f&&D.preventDefault();});useEffect(()=>{f&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,f]),a$j(()=>{let D=t$1.current,v=e.current;if(n||!D||!o||h!=="pointer"||!v){y();return}l.current=D.getBoundingClientRect();let R=w=>{if(w.pointerType==="touch"||w.pointerType==="pen")return;let d=Date.now();if(d-s.current<bo)return;clearTimeout(c.current),clearTimeout(m.current);let{clientX:M,clientY:g}=w;if(!i.current){i.current={x:M,y:g};return}if(!l.current)return;if(u.current||(u.current=M>l.current.right?"left":"right"),M<v.getBoundingClientRect().left||M>v.getBoundingClientRect().right||g<v.getBoundingClientRect().top||g>v.getBoundingClientRect().bottom){y();return}let b=i.current.x,L=i.current.y,O=u.current==="right"?l.current.left-b:b-l.current.right,F=Math.atan2(L-l.current.top,O)+Hr,q=Math.atan2(L-l.current.bottom,O)-Hr,U=Math.atan2(L-g,u.current==="left"?-(M-b):M-b),K=U<F&&U>q;p.current=K?Math.min(p.current+1,Ke):Math.max(p.current-1,0),p.current>=Ke?a(true):a(false),s.current=d,i.current={x:M,y:g},K&&(c.current=setTimeout(()=>{y(),m.current=setTimeout(()=>{let H=a$p(v).elementFromPoint(M,g);H&&e$3(v,H)&&H.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Po));},E=b$8(v);return E.addEventListener("pointermove",R),process.env.NODE_ENV!=="test"&&E.addEventListener("pointerdown",S,true),()=>{E.removeEventListener("pointermove",R),process.env.NODE_ENV!=="test"&&E.removeEventListener("pointerdown",S,true),clearTimeout(c.current),clearTimeout(m.current),p.current=Ke;}},[n,o,e,h,a,t$1]);}function mt(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=r,m=c$7(),u=c$7(),{direction:p}=b$2(),f=useRef(void 0),a=useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0);},[f]),x=useCallback(d=>{a(),e.open(d);},[e,a]),y=useCallback(()=>{a(),e.close();},[e,a]);a$j(()=>()=>{a();},[a]);let h=d=>{if(i$1(d.currentTarget))switch(d.key){case "ArrowLeft":p==="ltr"&&e$3(d.currentTarget,g(d))&&(d.preventDefault(),d.stopPropagation(),y(),!c&&t.current&&a$n(t.current));break;case "ArrowRight":p==="rtl"&&e$3(d.currentTarget,g(d))&&(d.preventDefault(),d.stopPropagation(),y(),!c&&t.current&&a$n(t.current));break;case "Escape":e$3(n.current,g(d))&&(d.stopPropagation(),y(),!c&&t.current&&a$n(t.current));break}},S={id:u,"aria-labelledby":m,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,onKeyDown:h}},D=d=>{switch(d.key){case "ArrowRight":l||(p==="ltr"?(d.preventDefault(),e.isOpen||x("first"),i==="menu"&&n?.current&&f$5()===t?.current&&a$n(n.current)):e.isOpen?y():d.continuePropagation());break;case "ArrowLeft":l||(p==="rtl"?(d.preventDefault(),e.isOpen||x("first"),i==="menu"&&n?.current&&f$5()===t?.current&&a$n(n.current)):e.isOpen?y():d.continuePropagation());break;default:d.continuePropagation();break}},v=d=>{!l&&(d.pointerType==="virtual"||d.pointerType==="keyboard")&&x("first");},R=d=>{!l&&(d.pointerType==="touch"||d.pointerType==="mouse")&&x();},E=d=>{l||(d&&!e.isOpen?f.current||(f.current=setTimeout(()=>{x();},s)):d||a());};a$k(o,"focusin",d=>{e.isOpen&&e$3(o.current,g(d))&&g(d)!==t.current&&y();});let w=d=>d!==t.current;return Nr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{id:m,"aria-controls":e.isOpen?u:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:v,onPress:R,onHoverChange:E,onKeyDown:D,isOpen:e.isOpen},submenuProps:S,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:w}}}function Ve(r){let e=a$m(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(m=null){o(m),e.open();},toggle(m=null){o(m),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(m,u)=>{i(p=>u>p.length?p:[...p.slice(0,u),m]);},closeSubmenu:(m,u)=>{i(p=>p[u]===m?p.slice(0,u):p);}}}function gt(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),c=useMemo(()=>o[s]===t,[o,t,s]),[m,u]=useState(null),p=useCallback(x=>{u(x??null),n(t,s);},[n,s,t]),f=useCallback(()=>{u(null),i(t,s);},[i,s,t]),a=useCallback(x=>{u(x??null),c?f():p(x);},[f,p,c]);return useMemo(()=>({focusStrategy:m,isOpen:c,open:p,close:f,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:a}),[c,p,f,l,m,a,s])}var yt=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,yt),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var Do=createContext({}),Xl=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,Do);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var bt=createContext(null);createContext(null);createContext(null);var Pt=createContext(null);var Ue=createContext(null),Te=createContext(null),Me=createContext(null),je=createContext(null);function Eo(r){let e=Ve(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=at({...r,type:"menu"},e,t),i=useRef(null);return c$9()?null:jsx(b$4,{values:[[Ue,{...n,ref:i}],[Pt,e],[Me,e],[bt,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"]}]],children:jsx(b$a,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var Ur=createContext(null),vt=class extends a$i{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},Oo=k(vt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(Te),i=useContext(Me),l=gt({triggerKey:t.key},i),s=useRef(null),c=a$4(e),{parentMenuRef:m,shouldUseVirtualFocus:u}=useContext(Ur),{submenuTriggerProps:p$1,submenuProps:f,popoverProps:a}=mt({parentMenuRef:m,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:u},l,c);return jsxs(b$4,{values:[[ge,{...p$1,onAction:void 0,ref:c}],[Ue,{ref:s,...f}],[Pt,l],[bt,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":f["aria-labelledby"],...a}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),Ao=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,Ue),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(Io,{props:e$1,collection:o,menuRef:t})})});function Io({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$b({...r,collection:i,children:void 0}),s=useContext(Me),{isVirtualized:c,CollectionRoot:m$1}=useContext(p),{menuProps:u}=ut({...r,isVirtualized:c,onClose:r.onClose||s?.close},l,t),p$1=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),f=null;l.collection.size===0&&r.renderEmptyState&&(f=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let a=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(a,p$1,u),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[Te,l],[Ne,{elementType:"div"}],[m,{name:"MenuSection",render:Gr}],[Ur,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[ge,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$6,null],[je,l.selectionManager],[Me,s??Ve({})]],children:jsx(w,{children:jsx(m$1,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),f]})})}var St=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function Gr(r,e,t,o="react-aria-MenuSection"){let n=useContext(Te),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:c,groupProps:m}=pt({heading:s,"aria-label":t.props["aria-label"]??void 0}),u=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),p$1=useContext(je),f$1=a$c(r),a=r.selectionMode!=null?new St(p$1,f$1):p$1,x=d$1(ge)?.shouldCloseOnSelect,y=a$2(r,{global:true});return delete y.id,jsx(h.section,{...c$4(y,u,m),ref:e,children:jsx(b$4,{values:[[fe,{...c,ref:l}],[je,a],[ge,{shouldCloseOnSelect:r.shouldCloseOnSelect??x}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Mt=k(f$2,Gr),ge=createContext(null),Tt=j(e$1,function(e$1,t,o){[e$1,t]=e(e$1,t,ge);let n=d$1(ge)?.id,i=useContext(Te),l=a$4(t),s=useContext(je),{isVirtualized:c}=useContext(p),{menuItemProps:m,labelProps:u,descriptionProps:p$1,keyboardShortcutProps:f,...a}=dt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:x$1,isHovered:y}=a$5({isDisabled:a.isDisabled}),h$1=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...a,isHovered:y,isFocusVisible:a.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),S=e$1.href?h.a:h.div,D=a$2(e$1,{global:true});return delete D.id,delete D.onClick,jsx(S,{...c$4(D,h$1,m,x$1),ref:l,"data-disabled":a.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":a.isFocusVisible||void 0,"data-pressed":a.isPressed||void 0,"data-selected":a.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:u,label:u,description:p$1}}],[yt,f],[x,{isSelected:a.isSelected}]],children:h$1.children})})});var Dt=Ce.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:c,selectedKeys:m,defaultSelectedKeys:u,onSelectionChange:p$1,disabledKeys:f,disallowEmptySelection:a,...x},y)=>{let{isVirtualized:h}=useContext(p),S=o?.(r),D=s==="ListBox"?lt:Mt,v=c==null?{}:{selectionMode:c,selectedKeys:m,defaultSelectedKeys:u,onSelectionChange:p$1,disabledKeys:f,disallowEmptySelection:a};return jsxs(D,{id:r.id,"aria-label":r.title,...v,className:a$e(`BaselineUI-${s}-Section`,Ir,h&&!e&&kr,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:y,children:[t?S?jsx(He,{className:`BaselineUI-${s}-SectionHeader`,children:S}):jsx(He,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$d,{className:a$e(Ar,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,children:R=>jsx(Ge,{componentName:s,item:R,...x},R.id)})]})});Dt.displayName="ListSection";var Bo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$d,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Ho=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:c=false})=>{let m=r.icon,u=l!=="none",p="keyboardShortcut"in r?r.keyboardShortcut:r.description;return jsxs(a$d,{display:"flex",alignItems:"center",gap:"lg",className:a$e(Or({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$d,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[u&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,u&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$8({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,m?jsx(m,{size:24}):null,jsx(b$7,{slot:"label",elementType:"span",children:r.label})]}),c?jsx(Bo,{componentName:s}):p?jsx(b$7,{slot:"description",className:a$e(Er({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:p}):null]})},Ge=Ce.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:c}=useContext(qr);return jsx(n==="ListBox"?st:Tt,{...c$4(a$f(i),{onPress:u=>s?.(u,r.id),onKeyDown:c?u=>{c(u,r.id),u.continuePropagation();}:void 0}),id:r.id,value:r,className:u=>a$e(wr,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,u):t),style:u=>typeof e=="function"?e(r,u):e,textValue:r.label,ref:l,children:u=>o?o(r,u):jsx(Ho,{componentName:n,...u,item:r})})});Ge.displayName="ListOption";var Zr=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),qr=Ce.createContext({}),zo=Ce.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:c,dragAndDropHooks:m,listBoxHandle:u,"data-block-id":p$1,"data-block-class":f,...a},x)=>{let y=a$4(x),h=Ce.useRef(false),S=Ce.useRef(null),D=useContext(ie),{isVirtualized:v,layoutDelegate:R}=useContext(p);useEffect(()=>{D&&(s||o||n)&&console.warn("ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[D,s,o,n,i,l,t]),a$g({ref:y,isDisabled:!m});let E=useCallback(g=>y.current?.querySelector(`[data-key="${g}"][role="option"]`),[y]);useEffect(()=>{if(!v)return;let g=y.current,b=g?.ownerDocument,L=b?.defaultView;if(g==null||b==null||L==null)return;let O=()=>{let T=f$4(g);return T==null||T===b.body||T===b.documentElement},F=()=>g.querySelector('[role="option"][tabindex="0"]')??g.querySelector('[role="option"][data-focused="true"]'),q=()=>{let T=f$4(g);return T!=null&&e$3(g,T)},U=T=>T.composedPath().some(j=>j instanceof L.Node&&e$3(g,j)),K=()=>{h.current=false;},H=()=>{S.current!=null&&L.cancelAnimationFrame(S.current),S.current=L.requestAnimationFrame(()=>{if(S.current=null,q())return;if(!O()){K();return}let T=F();T?.focus({preventScroll:true});});},ee=T=>{Zr.has(T.key)&&(h.current=true);},le=T=>{!Zr.has(T.key)||!O()||!h.current||H();},te=T=>{U(T)||q()||K();},J=T=>{U(T)||K();},Y=new MutationObserver(T=>{T.some(({addedNodes:j,removedNodes:Xe})=>j.length>0||Xe.length>0)&&h.current&&H();});return g.addEventListener("keydown",ee),b.addEventListener("keydown",le,true),b.addEventListener("focusin",te,true),b.addEventListener("pointerdown",J,true),Y.observe(g,{childList:true,subtree:true}),()=>{g.removeEventListener("keydown",ee),b.removeEventListener("keydown",le,true),b.removeEventListener("focusin",te,true),b.removeEventListener("pointerdown",J,true),Y.disconnect(),S.current!=null&&L.cancelAnimationFrame(S.current),K(),S.current=null;}},[v,y]);let w=useCallback((g,b)=>{if(!y.current)return;let L=E(g);if(L)L.scrollIntoView({block:"nearest",inline:"nearest",...b});else if(v&&R){let O=R.getItemRect(g);if(!O)return;R.virtualizer.delegate.setVisibleRect(O);}},[E,v,R,y]);useImperativeHandle(u,()=>({scrollIntoView:w,setFocusedKey:g=>{let b=E(g);!y.current||!b||(b.focus(),w(g));}}),[w,E,y]);let d={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},M=a.items?.[0]?.id;return jsx(it,{...a,dependencies:[...a.dependencies??[],M,...Rr(d)],"data-block-id":p$1,"data-block-class":f,dragAndDropHooks:m,ref:y,className:a$e(Lr,"BaselineUI-ListBox",c),children:g=>jsx(Ko,{item:g,isFirstCollectionItem:M===g.id,...d},g.id)})});zo.displayName="UNSAFE_ListBox";var _o=Ce.createContext({}),Ko=r=>{let e=useContext(_o),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$h(t,"Item is required"),"children"in t?jsx(Dt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx(Ge,{item:t,componentName:"ListBox",...l})};export{nt as a,ie as b,at as c,Rr as d,gi as e,Do as f,Xl as g,bt as h,Pt as i,Eo as j,Oo as k,Ao as l,Dt as m,Ho as n,Ge as o,qr as p,zo as q,Ko as r};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-CWPFUB7B.mjs';import {a as a$e}from'./chunk-NV7KQVPE.mjs';import {a as a$f}from'./chunk-YCI6BEXQ.mjs';import {f,b as b$4,i,g,a as a$b,h,c as c$2,e as e$1,d}from'./chunk-AMQX3KZR.mjs';import {a as a$9}from'./chunk-UCZZLAPB.mjs';import {q}from'./chunk-7AY6C5M5.mjs';import {p,t}from'./chunk-SMAYNDQQ.mjs';import {a as a$a}from'./chunk-FJ2JRD3H.mjs';import {a as a$8}from'./chunk-KAYY6L7Y.mjs';import {a as a$7,b as b$5}from'./chunk-KCHAWPUN.mjs';import {b as b$3,e}from'./chunk-PHZZLBH3.mjs';import {b}from'./chunk-AC7OXVHA.mjs';import {b as b$2,c as c$1}from'./chunk-GX2IOGYR.mjs';import {a as a$d}from'./chunk-O7XK2WIX.mjs';import {a as a$c}from'./chunk-GCZFXILF.mjs';import {a as a$4}from'./chunk-MEZNZ5W6.mjs';import {a as a$6}from'./chunk-X3AXUU3H.mjs';import {a}from'./chunk-YS3Y5KGV.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {b as b$1,c}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {sprinkles}from'@baseline-ui/tokens';import Z,{useRef,useLayoutEffect,useState,useContext,useEffect,useCallback,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {XIcon}from'@baseline-ui/icons/12';import {useReducedMotion,motion}from'motion/react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Be=t$1=>a$9({getItems:(e,o)=>o.map(s=>({"text/plain":s.label})),renderDropIndicator(e){return jsx(t,{target:e,className:({isDropTarget:o})=>a$2(a$a({isDropTarget:o}),"BaselineUI-DropIndicator")})},...t$1});function j(t,e){return t.find(o=>o.id===e)}function Ne(t,e,o){let s=[...t],l=s.filter(r=>o.has(r.id)),n=s.filter(r=>!o.has(r.id)),i=n.findIndex(r=>r.id===e);return n.flatMap((r,m)=>m===i?[...l,r]:r)}function Re(t,e,o){let s=[...t],l=s.filter(r=>o.has(r.id)),n=s.filter(r=>!o.has(r.id)),i=n.findIndex(r=>r.id===e);return n.flatMap((r,m)=>m===i?[r,...l]:r)}function Y(t){return t.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function M(t){return t.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var E={src:"src",alt:"alt"},T={sm:102,md:170};function Me(t,e){let o=j(t,e);return {[E.src]:o?.data?.src||"",[E.alt]:o?.data?.alt||"",key:String(e)}}function Ee(t){let e=t[E.src];return e?{src:String(e),alt:t[E.alt]?String(t[E.alt]):""}:null}function Ke({fit:t,imageDimensions:e,item:o,isSelected:s}){let l={display:"block",objectFit:t},n=typeof e=="function"?o?e(o,{isSelected:s}):void 0:e;if(!n)return l;let i=typeof n.width=="string"?T[n.width]:n.width;return l.width=i,l.aspectRatio="height"in n?`${i} / ${n.height}`:n.aspectRatio.toString(),l}var _e=Z.forwardRef(({className:t,children:e,style:o,isDisabled:s,onTruncatedChange:l,onHoverChange:n},i)=>{let r=useRef(null),{buttonProps:m}=a({elementType:"span",isDisabled:s},r);useLayoutEffect(()=>{r.current&&l?.(r.current.scrollWidth>r.current.clientWidth);},[e,l]);let{hoverProps:u}=a$1({isDisabled:s,onHoverChange:n});return jsx(b,{elementType:"span",slot:"label",...c(m,u),className:a$2(t,"BaselineUI-AdaptiveText"),tabIndex:-1,ref:b$1(r,i),style:o,role:void 0,children:e})});_e.displayName="Label";var ee=Z.memo(Z.forwardRef(({children:t,isOpen:e,isDisabled:o,...s},l)=>{let[n,i]=useState(false),[r,m]=useState(false),u=a$3(),P=o||!r||u;return jsx(a$4,{text:t,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(n||e)&&r,isDisabled:P,children:jsx(_e,{...s,isDisabled:P,onTruncatedChange:m,onHoverChange:i,ref:l,children:t})})}));ee.displayName="AdaptiveText";var nt=({fit:t,item:e,deleteElement:o,loadingLabel:s})=>{let{formatMessage:l}=b$2(),{isLoading:n,imgProps:i}=a$e({src:e.data?.src,alt:e.data?.alt||""});return jsxs("div",{className:e$1,children:[n?jsx(a$f,{"aria-label":s??l(K.loading)}):jsx("div",{role:"img",className:d({isLoading:n}),"aria-label":i.alt||"",style:{backgroundImage:`url(${i.src})`,backgroundSize:t}}),o]})},Ue=({item:t,options:{isFocusVisible:e,isSelected:o,isFocused:s,isDisabled:l,isPressed:n},fit:i="contain",onDelete:r,className:m,imageClassName:u,imageLabelClassName:P,imageDimensions:A,style:H,layoutTransition:h$1=true,deleteLabel:_,loadingLabel:U,renderImage:z=(S,{deleteElement:w})=>jsx(nt,{item:S,deleteElement:w,fit:i,loadingLabel:U})})=>{let{formatMessage:S}=b$2(),w=r?jsx("div",{className:a$b,children:jsx(a$c,{"aria-label":_??S(K.delete),size:"xs",icon:XIcon,onPress:()=>{r(t.id);},UNSAFE_isVisuallyInteractiveOnly:true})}):null,I=M([t])[0],O=useCallback(L=>{let f={},p=typeof L=="function"?L(I,{isSelected:o}):L;return p&&(f.width=typeof p.width=="string"?T[p.width]:p.width,f.aspectRatio="height"in p?`${f.width} / ${p.height}`:p?.aspectRatio?.toString()),f},[I,o]),x=useMemo(()=>({isFocusVisible:e,isSelected:o,isFocused:s,isDisabled:l,isPressed:n}),[e,o,s,l,n]),k=!useReducedMotion()&&(typeof h$1=="boolean"?h$1:true),G=typeof h$1=="object"?h$1:void 0,F=O(A),$=k?motion.div:"div";return jsxs($,{...k?{layout:"position",initial:false,transition:G}:{},className:a$2(c$2,a$7(m,I,x)),style:b$5(H,I,x),children:[jsx(a$d,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsx("div",{className:a$2(g({isFocusVisible:e,isSelected:o,isLoading:true}),a$7(u,I,x)),style:F,"data-image-key":t.id,children:z(t,{deleteElement:w??void 0,onDelete:r})})}),jsx(ee,{className:a$2(h({isFocusVisible:e,isSelected:o}),P),style:{maxWidth:F.width},isOpen:e,children:t.label})]})};function mt(t,e){return t==="all"?true:"has"in t&&typeof t.has=="function"?t.has(e):[...t].includes(e)}var We=Z.forwardRef(({className:t$1,style:e$1,fit:o="cover",onReorder:s,"data-block-id":l,"data-block-class":n,onDelete:i$1,imageWidth:r=T.sm,aspectRatio:m=3/4,items:u,defaultItems:P=[],onKeyDown:A,imageContainerClassName:H,imageClassName:h,labelClassName:_,onListChange:U,renderImage:z,layoutTransition:S,imageDimensions:w,imageContainerStyle:I,deleteConfirmationTitle:O="Are you sure you want to delete this item?",deleteLabel:x,cancelLabel:re,loadingLabel:k,...G},F)=>{let{isVirtualized:$}=useContext(p),L=a$5(F),[f$1,p$1]=useState([]),{formatMessage:oe}=b$2();useEffect(()=>{(m||r)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[r,m]);let q$1=Z.useMemo(()=>w??{width:r,aspectRatio:m},[w,r,m]),[C,Xe]=a$6(G.selectedKeys,G.defaultSelectedKeys??[],G.onSelectionChange),[v,B]=a$6(u?Y(u):void 0,Y(P),U?a=>{U?.(M(a));}:void 0),je=useCallback(a=>{let c=a.target.key,d=a.keys;if(a.target.dropPosition==="before"){let y=Ne(v,c,d);B(y);}else if(a.target.dropPosition==="after"){let y=Re(v,c,d);B(y);}s?.(a);},[v,s,B]),{dragAndDropHooks:qe}=Be({onReorder:je,isDisabled:!s,renderDragPreview:a=>jsx(i,{items:a,containerClassName:".BaselineUI-ImageGallery",previewClassName:g(),itemDataAttribute:"data-image-key",showCount:true,renderFallback:c=>{let d=Ee(c);if(!d)return null;let y=j(v,c.key),J=y?M([y])[0]:void 0;return jsx("img",{...d,style:Ke({fit:o,imageDimensions:q$1,item:J,isSelected:mt(C,c.key)})})}}),getItems:a=>[...a].map(c=>Me(v,c)),renderDropIndicator(a){return jsx(t,{target:a,className:a$2(b$4({isVirtualized:!!$}),"BaselineUI-DropIndicator")})}}),Je=useCallback(()=>{i$1&&f$1.length&&(B(v.filter(a=>!f$1.includes(a.id))),i$1(f$1),p$1([]));},[f$1,v,i$1,B]),Qe=useCallback((a,c)=>{let d={id:a.id,label:a.label,src:a.data?.src,alt:a.data?.alt};return jsx(Ue,{item:a,options:c,fit:o,onDelete:i$1?y=>{p$1([y]);}:void 0,renderImage:z,className:a$7(H,d,c),imageClassName:h,imageLabelClassName:_,imageDimensions:q$1,style:I,layoutTransition:S,deleteLabel:x,loadingLabel:k},a.id)},[o,i$1,z,H,h,_,q$1,I,S,x,k]);return useEffect(()=>{let a=L.current;if(!a)return;let c=d=>{if(A?.(d),d.key==="Backspace"||d.key==="Delete"){if(!i$1)return;if([...C].length)p$1([...C]);else {let J=d.target.dataset.key;p$1([J]);}}};return a.addEventListener("keydown",c),()=>{a.removeEventListener("keydown",c);}},[L,i$1,A,C]),jsxs(Fragment,{children:[jsx(q,{...G,ref:L,style:e$1,className:a$2(f,"BaselineUI-ImageGallery",t$1),"data-block-id":l,"data-block-class":n,selectedKeys:C,items:v,dragAndDropHooks:qe,layout:"grid",orientation:"vertical",renderOption:Qe,onSelectionChange:Xe,optionClassName:s&&!$?sprinkles({marginLeft:"sm"}):void 0}),jsx(b$3,{isOpen:!![...f$1].length,onOpenChange:a=>{a||p$1([]);},children:jsx(e,{isDismissable:true,children:jsx(a$8,{showCloseButton:false,title:typeof O=="function"?O(C==="all"?"all":new Set(C)):O,primaryActionLabel:x??oe(K.delete),cancelLabel:re??oe(K.cancel),onCancel:()=>{p$1([]);},onPrimaryAction:Je,autoFocusButton:"cancel"})})})]})});We.displayName="ImageGallery";var K=c$1({delete:{id:"bui.imageGallery.delete",defaultMessage:"Delete"},cancel:{id:"bui.imageGallery.cancel",defaultMessage:"Cancel"},loading:{id:"bui.imageGallery.loading",defaultMessage:"Loading"}});export{We as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {b,a as a$1}from'./chunk-AQYBKDT2.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {b as b$1,g}from'./chunk-AUOQSTS5.mjs';import {useRef,useCallback,useMemo}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function G(X){let{onMoveStart:b$2,onMove:K,onMoveEnd:M}=X,t$1=useRef({didMove:false,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:u}=a(),Y=useCallback((r,p,f,o)=>{f===0&&o===0||(t$1.current.didMove||(t$1.current.didMove=true,b$2?.({type:"movestart",pointerType:p,shiftKey:r.shiftKey,metaKey:r.metaKey,ctrlKey:r.ctrlKey,altKey:r.altKey})),K?.({type:"move",pointerType:p,deltaX:f,deltaY:o,shiftKey:r.shiftKey,metaKey:r.metaKey,ctrlKey:r.ctrlKey,altKey:r.altKey}));},[b$2,K,t$1]),v=t(Y),R=useCallback((r,p)=>{b(),t$1.current.didMove&&M?.({type:"moveend",pointerType:p,shiftKey:r.shiftKey,metaKey:r.metaKey,ctrlKey:r.ctrlKey,altKey:r.altKey});},[M,t$1]),y=t(R);return {moveProps:useMemo(()=>{let r={},p=()=>{a$1(),t$1.current.didMove=false;};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let o=e=>{e.button===0&&(v(e,"mouse",e.pageX-(t$1.current.lastPosition?.pageX??0),e.pageY-(t$1.current.lastPosition?.pageY??0)),t$1.current.lastPosition={pageX:e.pageX,pageY:e.pageY});},c=e=>{if(e.button===0){y(e,"mouse");let l=b$1(g(e));u(l,"mousemove",o,false),u(l,"mouseup",c,false);}};r.onMouseDown=e=>{if(e.button===0){p(),e.stopPropagation(),e.preventDefault(),t$1.current.lastPosition={pageX:e.pageX,pageY:e.pageY};let l=b$1(g(e));i(l,"mousemove",o,false),i(l,"mouseup",c,false);}};let n=e=>{let l=[...e.changedTouches].findIndex(({identifier:s})=>s===t$1.current.id);if(l>=0){let{pageX:s,pageY:g}=e.changedTouches[l];v(e,"touch",s-(t$1.current.lastPosition?.pageX??0),g-(t$1.current.lastPosition?.pageY??0)),t$1.current.lastPosition={pageX:s,pageY:g};}},a=e=>{if([...e.changedTouches].findIndex(({identifier:s})=>s===t$1.current.id)>=0){y(e,"touch"),t$1.current.id=null;let s=b$1(g(e));u(s,"touchmove",n),u(s,"touchend",a),u(s,"touchcancel",a);}};r.onTouchStart=e=>{if(e.changedTouches.length===0||t$1.current.id!=null)return;let{pageX:l,pageY:s,identifier:g$1}=e.changedTouches[0];p(),e.stopPropagation(),e.preventDefault(),t$1.current.lastPosition={pageX:l,pageY:s},t$1.current.id=g$1;let h=b$1(g(e));i(h,"touchmove",n,false),i(h,"touchend",a,false),i(h,"touchcancel",a,false);};}else {let o=n=>{if(n.pointerId===t$1.current.id){let a=n.pointerType||"mouse";v(n,a,n.pageX-(t$1.current.lastPosition?.pageX??0),n.pageY-(t$1.current.lastPosition?.pageY??0)),t$1.current.lastPosition={pageX:n.pageX,pageY:n.pageY};}},c=n=>{if(n.pointerId===t$1.current.id){let a=n.pointerType||"mouse";y(n,a),t$1.current.id=null;let e=b$1(g(n));u(e,"pointermove",o,false),u(e,"pointerup",c,false),u(e,"pointercancel",c,false);}};r.onPointerDown=n=>{if(n.button===0&&t$1.current.id==null){p(),n.stopPropagation(),n.preventDefault(),t$1.current.lastPosition={pageX:n.pageX,pageY:n.pageY},t$1.current.id=n.pointerId;let a=b$1(g(n));i(a,"pointermove",o,false),i(a,"pointerup",c,false),i(a,"pointercancel",c,false);}};}let f=(o,c,n)=>{p(),v(o,"keyboard",c,n),y(o,"keyboard");};return r.onKeyDown=o=>{switch(o.key){case "Left":case "ArrowLeft":o.preventDefault(),o.stopPropagation(),f(o,-1,0);break;case "Right":case "ArrowRight":o.preventDefault(),o.stopPropagation(),f(o,1,0);break;case "Up":case "ArrowUp":o.preventDefault(),o.stopPropagation(),f(o,0,-1);break;case "Down":case "ArrowDown":o.preventDefault(),o.stopPropagation(),f(o,0,1);break}},r},[i,u,t$1])}}export{G as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {e}from'./chunk-KUEDQO7P.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-KEVERVHK.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {e as e$1,g,a as a$2,f}from'./chunk-AUOQSTS5.mjs';import {useState,useRef}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function E(u,n){let{"aria-label":c,"aria-labelledby":A,orientation:o="horizontal",isSingleTabStop:y=true}=u,[i,H]=useState(false);a(()=>{H(!!(n.current&&n.current.parentElement?.closest('[role="toolbar"]')));});let{direction:v}=b(),b$1=v==="rtl"&&o==="horizontal",t=e(n),M=e=>{if(e$1(e.currentTarget,g(e))){if(o==="horizontal"&&e.key==="ArrowRight"||o==="vertical"&&e.key==="ArrowDown")b$1?t.focusPrevious():t.focusNext();else if(o==="horizontal"&&e.key==="ArrowLeft"||o==="vertical"&&e.key==="ArrowUp")b$1?t.focusNext():t.focusPrevious();else if(e.key==="Tab"){if(!y)return;e.stopPropagation();let r=a$2(n.current);a$3.current=f(r),e.shiftKey?t.focusFirst():t.focusLast();return}else return;e.stopPropagation(),e.preventDefault();}},a$3=useRef(null),P=e=>{let r=e.relatedTarget;(r===null||!e$1(e.currentTarget,r))&&!a$3.current&&(a$3.current=g(e));},x=e=>{let r=e.relatedTarget,f=r===null||!e$1(e.currentTarget,r),w=e$1(n.current,g(e));a$3.current&&f&&w&&(a$3.current?.focus(),a$3.current=null);};return {toolbarProps:{...a$1(u,{labelable:true}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":c,"aria-labelledby":c==null?A:void 0,onKeyDownCapture:i?void 0:M,onFocusCapture:i?void 0:x,onBlurCapture:i?void 0:P}}}export{E 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 n(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}export{n as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {e,h}from'./chunk-B7PSE5KC.mjs';import {createContext,forwardRef}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 m=createContext({}),R=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,m);let{elementType:n="span",...a}=e$1,x=h[n];return jsx(x,{className:"react-aria-Text",...a,ref:t})});export{m as a,R as b};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-EX2LI2CV.mjs';import {b as b$1}from'./chunk-KUEDQO7P.mjs';import {a as a$2}from'./chunk-YS3Y5KGV.mjs';import {b}from'./chunk-YB3KW7JC.mjs';import {a}from'./chunk-XPISSX5R.mjs';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var p={};a(p,{useButton:()=>a$2,useFocusManager:()=>b$1,useFocusWithin:()=>b,useTextField:()=>a$1});export{p as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a,b as b$1,c}from'./chunk-AUOQSTS5.mjs';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function w(t,e){if(!t)return null;if(typeof t=="string")return e.querySelector(t);if(t instanceof HTMLElement)return t;if("current"in t)return t.current}function m({text:t,fontSize:e=16,fontFamily:n="Arial",fontWeight:r="normal",fontStyle:c="normal",font:s,element:l}){let o=a(l).createElement("canvas").getContext("2d");if(!o)return {width:0,height:0};o.font=s||`${c} ${r} ${e}px ${n}`;let i=o.measureText(t);return {width:i.width,height:i.actualBoundingBoxAscent+i.actualBoundingBoxDescent}}function T({text:t,maxWidth:e,initialFontSize:n=50,fontFamily:r="Arial",fontWeight:c="normal",fontStyle:s="normal",element:l}){let{width:u}=m({text:t,fontSize:n,fontFamily:r,fontWeight:c,fontStyle:s,element:l}),o=n,i=u;for(;i>e;)o-=.5,i=m({text:t,fontSize:o,fontFamily:r,fontWeight:c,fontStyle:s,element:l}).width;return Math.max(o,1)}var h=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function b(t){return h.some(e=>t.matches(e))}function L(t){return t.querySelectorAll(h.join(", "))}function E(t){return t.nodeType===Node.DOCUMENT_NODE||c(t)}function M(t=document.documentElement){let e=t.getRootNode();if(!E(e))return null;let n=e.activeElement;for(;n?.shadowRoot?.activeElement;)n=n.shadowRoot.activeElement;return n}var x=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function S(t){return t instanceof HTMLInputElement&&!x.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function p(t){let e=t.getBoundingClientRect(),n=b$1(t),r=t.getRootNode();if(r instanceof n.ShadowRoot){let s=r.host,l=0,u=0,o=t;for(;o&&o!==s;){l+=o.offsetLeft,u+=o.offsetTop;let i=o.offsetParent;if(!i||!s.contains(i))break;o=i;}return {x:l,y:u,width:e.width,height:e.height}}return {x:e.left+n.scrollX,y:e.top+n.scrollY,width:e.width,height:e.height}}function y(t,e){let n=p(t);return {x:n.x+(e?.x??0),y:n.y+(e?.y??0)}}export{w as a,m as b,T as c,b as d,L as e,M as f,S as g,p as h,y as i};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-O7XK2WIX.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import l,{useLayoutEffect}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 x="_1w920rnf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",C=a({defaultClassName:"_1w920rng",variantClassNames:{isVirtualized:{true:"_1w920rnh",false:"_1w920rni"}},defaultVariants:{},compoundVariants:[]}),j="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",k=a({defaultClassName:"_1w920rnc",variantClassNames:{isLoading:{false:"_1w920rnd"}},defaultVariants:{},compoundVariants:[]}),N="_1w920rnb _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",V="_1w920rn0 _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",R=a({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{isFocusVisible:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isLoading:{true:"_1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),F=a({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ar _1yep5z6as _1yep5z6at _1yep5z6bf _1yep5z6bg _1yep5z6bh _1yep5z6c3 _1yep5z6c4 _1yep5z6c5 _1yep5z6cr _1yep5z6cs _1yep5z6ct _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),y="_1w920rne";var P=({items:n,containerClassName:i,previewClassName:z,itemDataAttribute:p,showCount:u=false,renderFallback:c})=>{let{length:o}=n,r=l.useRef(null),[d,_]=l.useState(false),t=n.at(-1);return useLayoutEffect(()=>{if(!r.current)return;let a=r.current.closest(i)?.querySelector(`[${p}='${t?.key}']`)?.cloneNode(true);if(!a){_(true);return}return _(false),r.current.prepend(a),()=>{a.remove();}},[t?.key,i,p]),jsxs("div",{className:z,ref:r,children:[d&&t?c?.(t):null,u&&o>1?jsx(a$1,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:y,children:o}):null]})};export{x as a,C as b,j as c,k as d,N as e,V as f,R as g,F as h,P as i};
|
|
@@ -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 n(e){let o=/^(data-.*)$/,r={};for(let t in e)o.test(t)||(r[t]=e[t]);return r}export{n as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$2,g as g$1,f}from'./chunk-DECHIERQ.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {useMemo,useCallback,useEffect}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var a=class{keyMap=new Map;iterable;firstKey=null;lastKey=null;constructor(t,{expandedKeys:e}={}){this.iterable=t,e=e||new Set;let i=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||e.has(l.key)))for(let o of l.childNodes)i(o);};for(let l of t)i(l);let r=null,y=0;for(let[l,o]of this.keyMap)r?(r.nextKey=l,o.prevKey=r.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=y++),r=o,r.nextKey=void 0;this.lastKey=r?.key??null;}*[Symbol.iterator](){yield*this.iterable;}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let e=this.keyMap.get(t);return e?e.prevKey??null:null}getKeyAfter(t){let e=this.keyMap.get(t);return e?e.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let e=[...this.getKeys()];return this.getItem(e[t])}};function g(n){let{onExpandedChange:t}=n,[e,i]=a$1(n.expandedKeys?new Set(n.expandedKeys):void 0,n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,t),r=a$2(n),y=useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),l=g$1(n,useCallback(s=>new a(s,{expandedKeys:e}),[e]),null);return useEffect(()=>{r.focusedKey!=null&&!l.getItem(r.focusedKey)&&r.setFocusedKey(null);},[l,r.focusedKey]),{collection:l,expandedKeys:e,disabledKeys:y,toggleKey:s=>{i(m(e,s));},setExpandedKeys:i,selectionManager:new f(l,r)}}function m(n,t){let e=new Set(n);return e.has(t)?e.delete(t):e.add(t),e}export{g as a};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {b as b$1,a as a$2,e as e$1}from'./chunk-66NJ7EYY.mjs';import {a as a$4}from'./chunk-3W6RWDIE.mjs';import {g,s,t,m,a as a$3,l,o,d,u}from'./chunk-MRJFGHFW.mjs';import {c,a as a$5}from'./chunk-TZ4MVY4E.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {b,a,e,g as g$1}from'./chunk-AUOQSTS5.mjs';import {flushSync}from'react-dom';import Ke,{useState,useRef,useCallback,useEffect,useMemo,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
|
+
var R="default",q="",A=new WeakMap;function J(r){let s=b(r);if(g()){if(R==="default"){let i=a(r);q=i.documentElement.style.webkitUserSelect,i.documentElement.style.webkitUserSelect="none";}R="disabled";}else if(r instanceof s.HTMLElement||r instanceof s.SVGElement){let i="userSelect"in r.style?"userSelect":"webkitUserSelect";A.set(r,r.style[i]),r.style[i]="none";}}function B(r){let s$1=b(r);if(g()){if(R!=="disabled")return;R="restoring",setTimeout(()=>{s(()=>{if(R==="restoring"){let i=a(r);i.documentElement.style.webkitUserSelect==="none"&&(i.documentElement.style.webkitUserSelect=q||""),q="",R="default";}},r);},300);}else if((r instanceof s$1.HTMLElement||r instanceof s$1.SVGElement)&&r&&A.has(r)){let i=A.get(r),a="userSelect"in r.style?"userSelect":"webkitUserSelect";r.style[a]==="none"&&(r.style[a]=i),r.getAttribute("style")===""&&r.removeAttribute("style"),A.delete(r);}}var Q=Ke.createContext({register:()=>{}});Q.displayName="PressResponderContext";function Ie(r){let s=useContext(Q);if(s){let{register:i,ref:a,...d}=s;r=c(d,r),i();}return u(s,r.ref),r}var D=class{type;pointerType;target;shiftKey;ctrlKey;metaKey;altKey;x;y;key;#e=true;constructor(s,i,a,d){let P=(d?.target??a.currentTarget)?.getBoundingClientRect(),m,L=0,k,I=null;a.clientX!=null&&a.clientY!=null&&(k=a.clientX,I=a.clientY),P&&(k!=null&&I!=null?(m=k-P.left,L=I-P.top):(m=P.width/2,L=P.height/2)),this.type=s,this.pointerType=i,this.target=a.currentTarget,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.x=m,this.y=L,this.key=a.key;}continuePropagation(){this.#e=false;}get shouldStopPropagation(){return this.#e}},de=Symbol("linkClicked"),ge="react-aria-pressable-style",me="data-react-aria-pressable";function lt(r){let{onPress:s,onPressChange:i,onPressStart:a$6,onPressEnd:d$1,onPressUp:M,onClick:P,isDisabled:m$1,isPressed:L,preventFocusOnPress:k,shouldCancelOnPointerExit:I,allowTextSelectionOnPress:b$2,ref:Y,...ve}=Ie(r),[be,re]=useState(false),h=useRef({isPressed:false,ignoreEmulatedMouseEvents:false,didFirePressStart:false,isTriggeringEvent:false,activePointerId:null,target:null,isOverTarget:false,pointerType:null,disposables:[]}),{addGlobalListener:O,removeAllGlobalListeners:F}=a$1(),E=useCallback((e,o)=>{let g=h.current;if(m$1||g.didFirePressStart)return false;let n=true;if(g.isTriggeringEvent=true,a$6){let c=new D("pressstart",o,e);a$6(c),n=c.shouldStopPropagation;}return i&&i(true),g.isTriggeringEvent=false,g.didFirePressStart=true,re(true),n},[m$1,a$6,i]),X=useCallback((e,o,g=true)=>{let n=h.current;if(!n.didFirePressStart)return false;n.didFirePressStart=false,n.isTriggeringEvent=true;let c=true;if(d$1){let t=new D("pressend",o,e);d$1(t),c=t.shouldStopPropagation;}if(i&&i(false),re(false),s&&g&&!m$1){let t=new D("press",o,e);s(t),c&&=t.shouldStopPropagation;}return n.isTriggeringEvent=false,c},[m$1,d$1,i,s]),S=t(X),he=useCallback((e,o)=>{let g=h.current;if(m$1)return false;if(M){g.isTriggeringEvent=true;let n=new D("pressup",o,e);return M(n),g.isTriggeringEvent=false,n.shouldStopPropagation}return true},[m$1,M]),C=t(he),N=useCallback(e=>{let o=h.current;if(o.isPressed&&o.target){o.didFirePressStart&&o.pointerType!=null&&X(w(o.target,e),o.pointerType,false),o.isPressed=false,o.isOverTarget=false,o.activePointerId=null,o.pointerType=null,F(),b$2||B(o.target);for(let g of o.disposables)g();o.disposables=[];}},[b$2,F,X]),T=t(N);useEffect(()=>{m$1&&h.current.isPressed&&T({currentTarget:h.current.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false});},[m$1]);let U=useCallback(e=>{I&&N(e);},[I,N]),V=useCallback(e=>{m$1||P?.(e);},[m$1,P]),W=useCallback((e,o)=>{if(!m$1&&P){let g=new MouseEvent("click",e);b$1(g,o),P(a$2(g));}},[m$1,P]),Se=useMemo(()=>{let e$2=h.current,o$1={onKeyDown(n){if(ee(n.nativeEvent,n.currentTarget)&&e(n.currentTarget,g$1(n))){ye(g$1(n),n.key)&&n.preventDefault();let c=true;!e$2.isPressed&&!n.repeat&&(e$2.target=n.currentTarget,e$2.isPressed=true,e$2.pointerType="keyboard",c=E(n,"keyboard"));let t=n.currentTarget,l=u=>{ee(u,t)&&!u.repeat&&e(t,g$1(u))&&e$2.target&&C(w(e$2.target,u),"keyboard");};O(a(n.currentTarget),"keyup",a$5(l,g),true),c&&n.stopPropagation(),n.metaKey&&d()&&e$2.metaKeyEvents?.set(n.key,n.nativeEvent);}else n.key==="Meta"&&(e$2.metaKeyEvents=new Map);},onClick(n){if(!(n&&!e(n.currentTarget,g$1(n)))&&n&&n.button===0&&!e$2.isTriggeringEvent&&!o.isOpening){let c=true;if(m$1&&n.preventDefault(),!e$2.ignoreEmulatedMouseEvents&&!e$2.isPressed&&(e$2.pointerType==="virtual"||l(n.nativeEvent))){let t=E(n,"virtual"),l=C(n,"virtual"),u=S(n,"virtual");V(n),c=t&&l&&u;}else if(e$2.isPressed&&e$2.pointerType!=="keyboard"){let t=e$2.pointerType||n.nativeEvent.pointerType||"virtual",l=C(w(n.currentTarget,n),t),u=S(w(n.currentTarget,n),t,true);c=l&&u,e$2.isOverTarget=false,V(n),T(n);}e$2.ignoreEmulatedMouseEvents=false,c&&n.stopPropagation();}}},g=n=>{if(e$2.isPressed&&e$2.target&&ee(n,e$2.target)){ye(g$1(n),n.key)&&n.preventDefault();let c=g$1(n),t=e(e$2.target,c);S(w(e$2.target,n),"keyboard",t),t&&W(n,e$2.target),F(),n.key!=="Enter"&&te(e$2.target)&&e(e$2.target,c)&&!n[de]&&(n[de]=true,o(e$2.target,n,false)),e$2.isPressed=false,e$2.metaKeyEvents?.delete(n.key);}else if(n.key==="Meta"&&e$2.metaKeyEvents?.size){let c=e$2.metaKeyEvents;e$2.metaKeyEvents=void 0;for(let t of c.values())e$2.target?.dispatchEvent(new KeyboardEvent("keyup",t));}};if(typeof PointerEvent<"u"){o$1.onPointerDown=t=>{if(t.button!==0||!e(t.currentTarget,g$1(t)))return;if(m(t.nativeEvent)){e$2.pointerType="virtual";return}e$2.pointerType=t.pointerType;let l=true;if(!e$2.isPressed){e$2.isPressed=true,e$2.isOverTarget=true,e$2.activePointerId=t.pointerId,e$2.target=t.currentTarget,b$2||J(e$2.target),l=E(t,e$2.pointerType);let u=g$1(t);"releasePointerCapture"in u&&("hasPointerCapture"in u?u.hasPointerCapture(t.pointerId)&&u.releasePointerCapture(t.pointerId):u.releasePointerCapture(t.pointerId)),O(a(t.currentTarget),"pointerup",n,false),O(a(t.currentTarget),"pointercancel",c,false);}l&&t.stopPropagation();},o$1.onMouseDown=t=>{if(e(t.currentTarget,g$1(t))&&t.button===0){if(k){let l=e$1(g$1(t));l&&e$2.disposables.push(l);}t.stopPropagation();}},o$1.onPointerUp=t=>{!e(t.currentTarget,g$1(t))||e$2.pointerType==="virtual"||t.button===0&&!e$2.isPressed&&C(t,e$2.pointerType||t.pointerType);},o$1.onPointerEnter=t=>{t.pointerId===e$2.activePointerId&&e$2.target&&!e$2.isOverTarget&&e$2.pointerType!=null&&(e$2.isOverTarget=true,E(w(e$2.target,t),e$2.pointerType));},o$1.onPointerLeave=t=>{t.pointerId===e$2.activePointerId&&e$2.target&&e$2.isOverTarget&&e$2.pointerType!=null&&(e$2.isOverTarget=false,S(w(e$2.target,t),e$2.pointerType,false),U(t));};let n=t=>{if(t.pointerId===e$2.activePointerId&&e$2.isPressed&&t.button===0&&e$2.target){if(e(e$2.target,g$1(t))&&e$2.pointerType!=null){let l=false,u=setTimeout(()=>{e$2.isPressed&&e$2.target instanceof b(e$2.target).HTMLElement&&(l?T(t):(a$3(e$2.target),e$2.target.click()));},80);O(t.currentTarget,"click",()=>l=true,true),e$2.disposables.push(()=>clearTimeout(u));}else T(t);e$2.isOverTarget=false;}},c=t=>{T(t);};o$1.onDragStart=t=>{e(t.currentTarget,g$1(t))&&T(t);};}else if(process.env.NODE_ENV==="test"){o$1.onMouseDown=t=>{if(t.button!==0||!e(t.currentTarget,g$1(t)))return;if(e$2.ignoreEmulatedMouseEvents){t.stopPropagation();return}if(e$2.isPressed=true,e$2.isOverTarget=true,e$2.target=t.currentTarget,e$2.pointerType=l(t.nativeEvent)?"virtual":"mouse",flushSync(()=>E(t,e$2.pointerType))&&t.stopPropagation(),k){let u=e$1(g$1(t));u&&e$2.disposables.push(u);}O(a(t.currentTarget),"mouseup",n,false);},o$1.onMouseEnter=t=>{if(!e(t.currentTarget,g$1(t)))return;let l=true;e$2.isPressed&&!e$2.ignoreEmulatedMouseEvents&&e$2.pointerType!=null&&(e$2.isOverTarget=true,l=E(t,e$2.pointerType)),l&&t.stopPropagation();},o$1.onMouseLeave=t=>{if(!e(t.currentTarget,g$1(t)))return;let l=true;e$2.isPressed&&!e$2.ignoreEmulatedMouseEvents&&e$2.pointerType!=null&&(e$2.isOverTarget=false,l=S(t,e$2.pointerType,false),U(t)),l&&t.stopPropagation();},o$1.onMouseUp=t=>{e(t.currentTarget,g$1(t))&&!e$2.ignoreEmulatedMouseEvents&&t.button===0&&!e$2.isPressed&&C(t,e$2.pointerType||"mouse");};let n=t=>{if(t.button===0){if(e$2.ignoreEmulatedMouseEvents){e$2.ignoreEmulatedMouseEvents=false;return}e$2.target&&e(e$2.target,g$1(t))&&e$2.pointerType!=null||T(t),e$2.isOverTarget=false;}};o$1.onTouchStart=t=>{if(!e(t.currentTarget,g$1(t)))return;let l=Ce(t.nativeEvent);if(!l)return;e$2.activePointerId=l.identifier,e$2.ignoreEmulatedMouseEvents=true,e$2.isOverTarget=true,e$2.isPressed=true,e$2.target=t.currentTarget,e$2.pointerType="touch",b$2||J(e$2.target),E(K(e$2.target,t),e$2.pointerType)&&t.stopPropagation(),O(b(t.currentTarget),"scroll",c,true);},o$1.onTouchMove=t=>{if(!e(t.currentTarget,g$1(t)))return;if(!e$2.isPressed){t.stopPropagation();return}let l=Pe(t.nativeEvent,e$2.activePointerId),u=true;l&&Te(l,t.currentTarget)?!e$2.isOverTarget&&e$2.pointerType!=null&&(e$2.isOverTarget=true,u=E(K(e$2.target,t),e$2.pointerType)):e$2.isOverTarget&&e$2.pointerType!=null&&(e$2.isOverTarget=false,u=S(K(e$2.target,t),e$2.pointerType,false),U(K(e$2.target,t))),u&&t.stopPropagation();},o$1.onTouchEnd=t=>{if(!e(t.currentTarget,g$1(t)))return;if(!e$2.isPressed){t.stopPropagation();return}let l=Pe(t.nativeEvent,e$2.activePointerId),u=true;l&&Te(l,t.currentTarget)&&e$2.pointerType!=null?(C(K(e$2.target,t),e$2.pointerType),u=S(K(e$2.target,t),e$2.pointerType),W(t.nativeEvent,e$2.target)):e$2.isOverTarget&&e$2.pointerType!=null&&(u=S(K(e$2.target,t),e$2.pointerType,false)),u&&t.stopPropagation(),e$2.isPressed=false,e$2.activePointerId=null,e$2.isOverTarget=false,e$2.ignoreEmulatedMouseEvents=true,e$2.target&&!b$2&&B(e$2.target),F();},o$1.onTouchCancel=t=>{e(t.currentTarget,g$1(t))&&(t.stopPropagation(),e$2.isPressed&&T(K(e$2.target,t)));};let c=t=>{e$2.isPressed&&e(g$1(t),e$2.target)&&T({currentTarget:e$2.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false});};o$1.onDragStart=t=>{e(t.currentTarget,g$1(t))&&T(t);};}return o$1},[O,m$1,k,F,b$2,U,E,V,W]);return useEffect(()=>{if(!Y||process.env.NODE_ENV==="test")return;let e=a(Y.current);if(!e||!e.head||e.getElementById(ge))return;let o=e.createElement("style");o.id=ge;let g=a$4(e);g&&(o.nonce=g),o.textContent=`
|
|
11
|
+
@layer {
|
|
12
|
+
[${me}] {
|
|
13
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`.trim(),e.head.prepend(o);},[Y]),useEffect(()=>{let e=h.current;return ()=>{b$2||B(e.target??void 0);for(let o of e.disposables)o();e.disposables=[];}},[b$2]),{isPressed:L||be,pressProps:c(ve,Se,{[me]:true})}}function te(r){return r.tagName==="A"&&r.hasAttribute("href")}function ee(r,s){let{key:i,code:a}=r,d=s,M=d.getAttribute("role");return (i==="Enter"||i===" "||i==="Spacebar"||a==="Space")&&!(d instanceof b(d).HTMLInputElement&&!Ee(d,i)||d instanceof b(d).HTMLTextAreaElement||d.isContentEditable)&&!((M==="link"||!M&&te(d))&&i!=="Enter")}function Ce(r){let{targetTouches:s}=r;return s.length>0?s[0]:null}function Pe(r,s){let i=r.changedTouches;for(let a=0;a<i.length;a++){let d=i[a];if(d.identifier===s)return d}return null}function K(r,s){let i=0,a=0;return s.targetTouches&&s.targetTouches.length===1&&(i=s.targetTouches[0].clientX,a=s.targetTouches[0].clientY),{currentTarget:r,shiftKey:s.shiftKey,ctrlKey:s.ctrlKey,metaKey:s.metaKey,altKey:s.altKey,clientX:i,clientY:a}}function w(r,s){let i=s.clientX,a=s.clientY;return {currentTarget:r,shiftKey:s.shiftKey,ctrlKey:s.ctrlKey,metaKey:s.metaKey,altKey:s.altKey,clientX:i,clientY:a,key:s.key}}function Re(r){let s=0,i=0;return r.width!==void 0?s=r.width/2:r.radiusX!==void 0&&(s=r.radiusX),r.height!==void 0?i=r.height/2:r.radiusY!==void 0&&(i=r.radiusY),{top:r.clientY-i,right:r.clientX+s,bottom:r.clientY+i,left:r.clientX-s}}function De(r,s){return !(r.left>s.right||s.left>r.right||r.top>s.bottom||s.top>r.bottom)}function Te(r,s){let i=s.getBoundingClientRect(),a=Re(r);return De(i,a)}function Le(r){let s=b(r);return r instanceof s.HTMLInputElement?false:r instanceof s.HTMLButtonElement?r.type!=="submit"&&r.type!=="reset":!te(r)}function ye(r,s){return r instanceof b(r).HTMLInputElement?!Ee(r,s):Le(r)}var Fe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ee(r,s){return r.type==="checkbox"||r.type==="radio"?s===" ":Fe.has(r.type)}export{J as a,B as b,Q as c,lt as d};
|
|
@@ -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
|
+
var s=e=>e?.ownerDocument??document,a=e=>e&&"window"in e&&e.window===e?e:s(e).defaultView||window;function f(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function u(e){return f(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}var c=true;function l(){return c}function b(e,t){if(!e||!t)return false;let o=t;for(;o!==null;){if(o===e)return true;let n=o.assignedSlot;n?o=n:u(o)?o=o.host:o=o.parentNode;}return false}var v=(e=document)=>{let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function D(e){let t=e.target;if(t&&"shadowRoot"in t&&t.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return t}function d(e,t=document){if(typeof t.getElementById=="function"){let n=t.getElementById(e);if(n)return n}let o=t.children||[];for(let n of o){if(n.getAttribute&&n.getAttribute("id")===e)return n;if(n.shadowRoot){let r=d(e,n.shadowRoot);if(r)return r}let i=d(e,n);if(i)return i}return null}function N(e){if(!e)return false;let t=e.getRootNode(),o=a(e);if(!(t instanceof o.Document||t instanceof o.ShadowRoot))return false;let n=t.activeElement;return n!=null&&e.contains(n)}export{s as a,a as b,u as c,l as d,b as e,v as f,D as g,d as h,N as i};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-KPEONVLU.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {useMemo}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function i(r={}){let{locale:e}=b();return useMemo(()=>new a(e,r),[e,r])}export{i as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a,b as b$1}from'./chunk-MVK5CB64.mjs';import {b}from'./chunk-AUOQSTS5.mjs';import {useRef,useEffect}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Y=16,S=50,A=30;function F({ref:l,isDisabled:i}){let v=useRef(null),p=useRef({isScrollableX:true,isScrollableY:true}),u=useRef({x:0,y:0}),c=useRef(),w=useRef(0);useEffect(()=>{if(i||!l.current)return;let e=l.current,m=b(e),a$1=a(e)?e:b$1(e),f=m.getComputedStyle(a$1);v.current=a$1,p.current={isScrollableX:/(auto|scroll)/.test(f.overflowX),isScrollableY:/(auto|scroll)/.test(f.overflowY)};},[i,l]),useEffect(()=>{if(i||!l.current||!v.current)return;let e=v.current,m=()=>{if(!e)return;let{isScrollableX:r,isScrollableY:t}=p.current,{x:n,y:o}=u.current;r&&n!==0&&(e.scrollLeft+=n),t&&o!==0&&(e.scrollTop+=o),c.current=requestAnimationFrame(m);},a=(r,t)=>r<S?-A*(1-r/S):r>t-S?A*(1-(t-r)/S):0,f=(r,t,n,o)=>{let E=performance.now();if(E-w.current<Y)return;let b=a(r,n),g=a(t,o);(b!==u.current.x||g!==u.current.y)&&(u.current={x:b,y:g},w.current=E,(b!==0||g!==0)&&!c.current&&(c.current=requestAnimationFrame(m)));},R=r=>{if(r.preventDefault(),!e)return;let t=r,n=e.getBoundingClientRect(),o=t.clientX-n.left,E=t.clientY-n.top;f(o,E,n.width,n.height);},d=()=>{u.current={x:0,y:0},c.current&&(cancelAnimationFrame(c.current),c.current=void 0);};return e.addEventListener("dragover",R),e.addEventListener("dragend",d),e.addEventListener("drop",d),()=>{e.removeEventListener("dragover",R),e.removeEventListener("dragend",d),e.removeEventListener("drop",d),c.current&&cancelAnimationFrame(c.current);}},[i,l]);}export{F as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {forwardRef,useRef,useMemo,useContext,useState,useCallback}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 D=Symbol("default");function U({values:t,children:r}){for(let[e,o]of t)r=jsx(e.Provider,{value:o,children:r});return r}function $(t){let{className:r,style:e,children:o,defaultClassName:l=void 0,defaultChildren:n=void 0,defaultStyle:a,values:i,render:d}=t;return useMemo(()=>{let c,s,u;return typeof r=="function"?c=r({...i,defaultClassName:l}):c=r,typeof e=="function"?s=e({...i,defaultStyle:a||{}}):s=e,typeof o=="function"?u=o({...i,defaultChildren:n}):o==null?u=n:u=o,{className:c??l,style:s||a?{...a,...s}:void 0,children:u??n,"data-rac":"",render:d?E=>d(E,i):void 0}},[r,e,o,l,n,a,i,d])}function h(t,r){let e=useContext(t);if(r===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let o=r||D;if(!e.slots[o]){let l=new Intl.ListFormat().format(Object.keys(e.slots).map(a=>`"${a}"`)),n=r?`Invalid slot "${r}".`:"A slot prop is required.";throw new Error(`${n} Valid slot names are ${l}.`)}return e.slots[o]}return e}function j(t,r,e){let o=h(e,t.slot)||{},{ref:l,...n}=o,a=a$1(useMemo(()=>b(r,l),[r,l])),i=c(n,t);return "style"in n&&n.style&&"style"in t&&t.style&&(typeof n.style=="function"||typeof t.style=="function"?i.style=d=>{let c=typeof n.style=="function"?n.style(d):n.style,s={...d.defaultStyle,...c},u=typeof t.style=="function"?t.style({...d,defaultStyle:s}):t.style;return {...s,...u}}:i.style={...n.style,...t.style}),[i,a]}function q(t=true){let[r,e]=useState(t),o=useRef(false),l=useCallback(n=>{o.current=true,e(!!n);},[]);return a(()=>{o.current||e(false);},[]),[l,r]}function W(t){let r=/^(data-.*)$/,e={};for(let o in t)r.test(o)||(e[o]=t[o]);return e}function A(t,r,e){let{render:o,...l}=r,n=useRef(null),a$1=useMemo(()=>b(e,n),[e,n]);a(()=>{process.env.NODE_ENV!=="production"&&o&&(n.current?n.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${n.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));},[t,o]);let i={...l,ref:a$1};return o?o(i,void 0):jsx(t,{...i})}var y={},_=new Proxy({},{get(t,r){if(typeof r!="string")return;let e=y[r];return e||(e=forwardRef(A.bind(null,r)),y[r]=e),e}});export{D as a,U as b,$ as c,h as d,j as e,q as f,W as g,_ as h};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-UCZZLAPB.mjs';import {e}from'./chunk-7AY6C5M5.mjs';import {t}from'./chunk-SMAYNDQQ.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';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 n=a$2=>a({getItems:(o,r)=>r.map(i=>({"text/plain":i.label})),renderDropIndicator(o){return jsx(t,{target:o,className:({isDropTarget:r})=>a$1(e({isDropTarget:r}),"BaselineUI-DropIndicator")})},...a$2});export{n as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-YB3KW7JC.mjs';import {i as i$1}from'./chunk-Y4DRSGEJ.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {b as b$2,u}from'./chunk-MRJFGHFW.mjs';import {b as b$3,c}from'./chunk-TZ4MVY4E.mjs';import {b as b$1}from'./chunk-AUOQSTS5.mjs';import i,{forwardRef,useEffect,useRef,useContext}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
|
+
function b(o){if(!o)return;let t=true;return r=>{let n={...r,preventDefault(){r.preventDefault();},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=true;},continuePropagation(){t=false,typeof r.continuePropagation=="function"&&r.continuePropagation();},isPropagationStopped(){return t}};o(n),t&&r.stopPropagation();}}function v(o){return {keyboardProps:o.isDisabled?{}:{onKeyDown:b(o.onKeyDown),onKeyUp:b(o.onKeyUp)}}}var E=i.createContext(null);function O(o){let t=useContext(E)||{};u(t,o);let{ref:r,...n}=t;return n}var Y=i.forwardRef(function(t,r){let{children:n,...l}=t,s=a(r),a$1={...l,ref:s};return jsx(E.Provider,{value:a$1,children:n})});function g(o,t){let{focusProps:r}=a$1(o),{keyboardProps:n}=v(o),l=c(r,n),s=O(t),a=o.isDisabled?{}:s,e=useRef(o.autoFocus);useEffect(()=>{e.current&&t.current&&i$1(t.current),e.current=false;},[t]);let f=o.excludeFromTabOrder?-1:0;return o.isDisabled&&(f=void 0),{focusableProps:c({...l,tabIndex:f},a)}}var $=forwardRef(({children:o,...t},r)=>{r=a(r);let{focusableProps:n}=g(t,r),l=i.Children.only(o);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let a=r.current;if(!a||!(a instanceof b$1(a).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!b$2(a)){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(a.localName!=="button"&&a.localName!=="input"&&a.localName!=="select"&&a.localName!=="textarea"&&a.localName!=="a"&&a.localName!=="area"&&a.localName!=="summary"&&a.localName!=="img"&&a.localName!=="svg"){let e=a.getAttribute("role");e?e!=="application"&&e!=="button"&&e!=="checkbox"&&e!=="combobox"&&e!=="gridcell"&&e!=="link"&&e!=="menuitem"&&e!=="menuitemcheckbox"&&e!=="menuitemradio"&&e!=="option"&&e!=="radio"&&e!=="searchbox"&&e!=="separator"&&e!=="slider"&&e!=="spinbutton"&&e!=="switch"&&e!=="tab"&&e!=="tabpanel"&&e!=="textbox"&&e!=="treeitem"&&e!=="img"&&e!=="meter"&&e!=="progressbar"&&console.warn(`<Focusable> child must have an interactive ARIA role. Got "${e}".`):console.warn("<Focusable> child must have an interactive ARIA role.");}},[r,t.isDisabled]);let s=parseInt(i.version,10)<19?l.ref:l.props.ref;return i.cloneElement(l,{...c(n,l.props),ref:b$3(s,r)})});export{v as a,E as b,Y as c,g as d,$ as e};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-CGFLGZL4.mjs';import {a as a$2}from'./chunk-7PRJIPFA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$3}from'./chunk-2VY4FAOY.mjs';import {a as a$7}from'./chunk-545KDVGI.mjs';import {a as a$6,d as d$1}from'./chunk-BGMVPFYK.mjs';import {d}from'./chunk-Y4DRSGEJ.mjs';import {a as a$5}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {a as a$4,g,b as b$1}from'./chunk-AUOQSTS5.mjs';import {useRef,useCallback,useEffect}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var x=new WeakMap;function I(i,e){let r=x.get(i);if(!r)throw new Error("Unknown slider state");return `${r.id}-${e}`}function we(i,e,r){let{labelProps:T,fieldProps:R}=a(i),f=i.orientation==="vertical";x.set(e,{id:T.id??R.id,"aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]});let{direction:A}=b(),{addGlobalListener:a$5,removeGlobalListener:L}=a$1(),o=useRef(null),U=A==="rtl",s=useRef(null),{moveProps:D}=a$2({onMoveStart(){s.current=null;},onMove({deltaX:t,deltaY:b}){if(!r.current)return;let{height:g,width:E}=r.current.getBoundingClientRect(),u=f?g:E;s.current==null&&o.current!=null&&(s.current=e.getThumbPercent(o.current)*u);let c=f?b:t;if((f||U)&&(c=-c),s.current+=c,o.current!=null&&r.current){let S=a$3(s.current/u,0,1);e.setThumbPercent(o.current,S);}},onMoveEnd(){o.current!=null&&(e.setThumbDragging(o.current,false),o.current=null);}}),O=useRef(void 0),v=(t,b,g,E)=>{if(r.current&&!i.isDisabled&&e.values.every((u,c)=>!e.isThumbDragging(c))){let u=b$1(t.currentTarget),{height:c,width:S,top:M,left:$}=r.current.getBoundingClientRect(),z=f?c:S,p=((f?E:g)-(f?M:$))/z;(A==="rtl"||f)&&(p=1-p);let P=e.getPercentValue(p),d,n=e.values.findIndex(l=>P-l<0);if(n===0)d=n;else if(n===-1)d=e.values.length-1;else {let l=e.values[n-1],h=e.values[n];Math.abs(l-P)<Math.abs(h-P)?d=n-1:d=n;}d>=0&&e.isThumbEditable(d)?(t.preventDefault(),o.current=d,e.setFocusedThumb(d),O.current=b,e.setThumbDragging(o.current,true),e.setThumbValue(d,P),a$5(u,"mouseup",m,false),a$5(u,"touchend",m,false),a$5(u,"pointerup",m,false)):o.current=null;}},m=t=>{let b=t.pointerId??t.changedTouches?.[0].identifier,g=b$1(t.currentTarget);b===O.current&&(o.current!=null&&(e.setThumbDragging(o.current,false),o.current=null),L(g,"mouseup",m,false),L(g,"touchend",m,false),L(g,"pointerup",m,false));};return "htmlFor"in T&&T.htmlFor&&(delete T.htmlFor,T.onClick=t=>{a$4(t.currentTarget).getElementById(I(e,0))?.focus(),d("keyboard");}),{labelProps:T,groupProps:{role:"group",...R},trackProps:c({onMouseDown(t){t.button!==0||t.altKey||t.ctrlKey||t.metaKey||v(t,void 0,t.clientX,t.clientY);},onPointerDown(t){t.pointerType==="mouse"&&(t.button!==0||t.altKey||t.ctrlKey||t.metaKey)||v(t,t.pointerId,t.clientX,t.clientY);},onTouchStart(t){v(t,t.changedTouches[0].identifier,t.changedTouches[0].clientX,t.changedTouches[0].clientY);},style:{position:"relative",touchAction:"none"}},D),outputProps:{htmlFor:e.values.map((t,b)=>I(e,b)).join(" "),"aria-live":"off"}}}function qe(i,e){let{index:r=0,isRequired:T,validationState:R,isInvalid:f,trackRef:A,inputRef:a$4,orientation:L=e.orientation,name:o,form:U}=i,s=i.isDisabled||e.isDisabled,D=L==="vertical",{direction:O}=b(),{addGlobalListener:v,removeGlobalListener:m}=a$1(),t=x.get(e),{labelProps:b$2,fieldProps:g$1}=a({...i,id:I(e,r),"aria-labelledby":`${t.id} ${i["aria-labelledby"]??""}`.trim()}),E=e.values[r],u=useCallback(()=>{a$4.current&&a$5(a$4.current);},[a$4]),c$1=e.focusedThumb===r;useEffect(()=>{c$1&&u();},[c$1,u]);let S=O==="rtl",M=useRef(null),{keyboardProps:$}=a$6({onKeyDown(n){let{getThumbMaxValue:l,getThumbMinValue:h,decrementThumb:F,incrementThumb:X,setThumbValue:V,setThumbDragging:H,pageSize:K}=e;if(!/^(PageUp|PageDown|Home|End)$/.test(n.key)){n.continuePropagation();return}switch(n.preventDefault(),H(r,true),n.key){case "PageUp":X(r,K);break;case "PageDown":F(r,K);break;case "Home":V(r,h(r));break;case "End":V(r,l(r));break}H(r,false);}}),{moveProps:z}=a$2({onMoveStart(){M.current=null,e.setThumbDragging(r,true);},onMove({deltaX:n,deltaY:l,pointerType:h,shiftKey:F}){let{getThumbPercent:X,setThumbPercent:V,decrementThumb:H,incrementThumb:K,step:N,pageSize:Q}=e;if(!A.current)return;let{width:ae,height:se}=A.current.getBoundingClientRect(),Z=D?se:ae;if(M.current==null&&(M.current=X(r)*Z),h==="keyboard")n>0&&S||n<0&&!S||l>0?H(r,F?Q:N):K(r,F?Q:N);else {let Y=D?l:n;(D||S)&&(Y=-Y),M.current+=Y,V(r,a$3(M.current/Z,0,1));}},onMoveEnd(){e.setThumbDragging(r,false);}});e.setThumbEditable(r,!s);let{focusableProps:J}=d$1(c(i,{onFocus:()=>e.setFocusedThumb(r),onBlur:()=>e.setFocusedThumb(void 0)}),a$4),q=useRef(void 0),k=n=>{u(),q.current=n,e.setThumbDragging(r,true);let l=b$1(a$4.current);v(l,"mouseup",p,false),v(l,"touchend",p,false),v(l,"pointerup",p,false);},p=n=>{if((n.pointerId??n.changedTouches?.[0].identifier)===q.current){u(),e.setThumbDragging(r,false);let h=b$1(a$4.current);m(h,"mouseup",p,false),m(h,"touchend",p,false),m(h,"pointerup",p,false);}},P=e.getThumbPercent(r);(D||O==="rtl")&&(P=1-P);let d=s?{}:c($,z,{onMouseDown:n=>{n.button!==0||n.altKey||n.ctrlKey||n.metaKey||k();},onPointerDown:n=>{n.button!==0||n.altKey||n.ctrlKey||n.metaKey||k(n.pointerId);},onTouchStart:n=>{k(n.changedTouches[0].identifier);}});return a$7(a$4,e.defaultValues[r],n=>{e.setThumbValue(r,n);}),{inputProps:c(J,g$1,{type:"range",tabIndex:s?void 0:0,min:e.getThumbMinValue(r),max:e.getThumbMaxValue(r),step:e.step,value:E,name:o,form:U,disabled:s,"aria-orientation":L,"aria-valuetext":e.getThumbValueLabel(r),"aria-required":T||void 0,"aria-invalid":f||R==="invalid"||void 0,"aria-errormessage":i["aria-errormessage"],"aria-describedby":[t["aria-describedby"],i["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[t["aria-details"],i["aria-details"]].filter(Boolean).join(" "),onChange:n=>{e.setThumbValue(r,parseFloat(g(n).value));}}),thumbProps:{...d,style:{position:"absolute",[D?"top":"left"]:`${P*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b$2,isDragging:e.isThumbDragging(r),isDisabled:s,isFocused:c$1}}export{we as a,qe as b};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-FXCHST4Z.mjs';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var _=a({defaultClassName:"_16vugd0b _1yep5z6ev _1yep5z6dy",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),i=a({defaultClassName:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if z9nup88",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),t=a({defaultClassName:"_16vugd03 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6m1 _1yep5z6lz _1yep5z6h6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6f8 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lp _1yep5z6la _1yep5z6lk",variantClassNames:{isIndeterminate:{true:"_1yep5z6181 _1yep5z612c"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd06"},isHovered:{true:"_1yep5z613a"},isDisabled:{true:"_16vugd08 _1yep5z613e"},isReadOnly:{true:"_16vugd09 _1yep5z6118 _1yep5z6184 _1yep5z6182 _1yep5z613e"},hasError:{true:"_1yep5z612q _1yep5z6184 _1yep5z6182"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61of"],[{isSelected:true,isDisabled:false,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isSelected:true,isDisabled:true},"_1yep5z61op _1yep5z61nf"],[{isSelected:true,isDisabled:true,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:true,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false,hasError:false},"_1yep5z61u4"]]});export{_ as a,i as b,t as c};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-XWLESSHN.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {a as a$2}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {a as a$1,b}from'./chunk-AUOQSTS5.mjs';import {useRef}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var h=500;function G(f){let{isDisabled:r,onLongPressStart:n,onLongPressEnd:s,onLongPress:o,threshold:d$1=h,accessibilityDescription:L}=f,t=useRef(void 0),{addGlobalListener:i,removeGlobalListener:b$1}=a(),{pressProps:E}=d({isDisabled:r,onPressStart(e){if(e.continuePropagation(),(e.pointerType==="mouse"||e.pointerType==="touch")&&(n&&n({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),a$1(e.target).activeElement!==e.target&&a$2(e.target),o&&o({...e,type:"longpress"}),t.current=void 0;},d$1),e.pointerType==="touch")){let p=T=>{T.preventDefault();},y=b(e.target);i(e.target,"contextmenu",p,{once:true}),i(y,"pointerup",()=>{setTimeout(()=>{b$1(e.target,"contextmenu",p);},30);},{once:true});}},onPressEnd(e){t.current&&clearTimeout(t.current),s&&(e.pointerType==="mouse"||e.pointerType==="touch")&&s({...e,type:"longpressend"});}}),v=a$3(o&&!r?L:void 0);return {longPressProps:c(E,v)}}export{G as a};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-IHLJTHGQ.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-K6X2BHPP.mjs';import {d}from'./chunk-BGMVPFYK.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {d as d$1}from'./chunk-AQYBKDT2.mjs';import {n,q,r}from'./chunk-MRJFGHFW.mjs';import {b,c}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-KEVERVHK.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import C 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
|
+
function A(e,o){let{elementType:d$2="a",onPress:c$1,onPressStart:k,onPressEnd:t,onClick:f,isDisabled:s,...u}=e,n$1={};d$2!=="a"&&(n$1={role:"link",tabIndex:s?void 0:0});let{focusableProps:P}=d(e,o),{pressProps:r$1,isPressed:L}=d$1({onPress:c$1,onPressStart:k,onPressEnd:t,onClick:f,isDisabled:s,ref:o}),a=a$5(u,{labelable:true}),b=c(P,r$1),l=n(),m=q(e);return {isPressed:L,linkProps:c(a,m,{...b,...n$1,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:p=>{r$1.onClick?.(p),r(p,l,e.href,e.routerOptions);}})}}var N=C.forwardRef(({className:e,style:o,children:d,variant:c$1="default",size:k="md",elementType:t="a",type:f="body","data-block-id":s,"data-block-class":u,title:n,role:P,...r},L)=>{let a$5=C.useRef(null),{linkProps:b$1,isPressed:l}=A({...r,elementType:r.onPress?"span":t},a$5),{isFocusVisible:m,isFocused:p,focusProps:I}=a(),{hoverProps:V,isHovered:x}=a$1({isDisabled:r.isDisabled}),j=t,w=a$2({"data-block-id":s,"data-block-class":u,"data-disabled":r.isDisabled,"data-focused":p,"data-pressed":l,"data-focus-visible":m,"data-hovered":x,role:P,title:n});return jsx(j,{...c(b$1,I,V,w),className:a$3(a$4({variant:c$1,isFocusVisible:m,isHovered:x,isDisabled:r.isDisabled,size:k,isActive:l,type:f}),"BaselineUI-Link",e),ref:b(a$5,L),style:o,children:d})});N.displayName="Link";export{N as a};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-66CUIXA6.mjs';import {b as b$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-AUOQSTS5.mjs';import*as d from'dompurify';import c,{useId}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 b=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},E=(e,t,n)=>{let o=e.querySelector("title"),i=a(e);if(o)o.textContent=t,o.setAttribute("id",n);else {let r=i.createElement("title");r.textContent=t,r.setAttribute("id",n),e.prepend(r);}},I=(e,t)=>{t&&e.classList.add(t);},T=(e,t)=>{let n=t.createElement("span");n.innerHTML=d.default.sanitize(e);let o=n.querySelector("svg");return a$1(o,"Icon: svg prop must be a valid svg string"),o},w=c.forwardRef(({size:e,title:t,className:n,style:o,color:i,...r},S)=>{let u=useId(),f=c.useRef(null),m="svg"in r?r.svg:void 0,l=c.useMemo(()=>{if(m){let y=a(f.current),s=T(m,y);return e&&b(s,e),t&&E(s,t,u),I(s,n),s.outerHTML}},[m,e,t,n,u]);return jsx("span",{className:n,ref:b$1(S,f),style:{display:"contents",...o,color:i},dangerouslySetInnerHTML:l?{__html:l}:void 0})});w.displayName="Icon";export{w as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$5}from'./chunk-NSC53QWT.mjs';import {a as a$2}from'./chunk-EX2LI2CV.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$4}from'./chunk-GCZFXILF.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import {useGranularEffect}from'granular-hooks';import j,{useCallback,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Y=a({defaultClassName:"_1bwul1t8 _1yep5z6lq _1yep5z6ly _1yep5z6eu _1yep5z6g1",variantClassNames:{size:{xs:"_1bwul1t9 _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6zy",sm:"_1bwul1ta _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6101",md:"_1bwul1tb _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6104"}},defaultVariants:{},compoundVariants:[]}),R=a({defaultClassName:"_1bwul1t3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6zy",sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),$={xs:"_1bwul1t0",sm:"_1bwul1t1",md:"_1bwul1t2"};var D=j.forwardRef(({className:L,style:W,size:p="md",isDisabled:n,decrementAriaLabel:J,incrementAriaLabel:M,"data-block-id":Q,"data-block-class":X,label:Z,onChange:E,onBlur:k,onKeyDown:F,minValue:a=Number.NEGATIVE_INFINITY,maxValue:r=Number.POSITIVE_INFINITY,defaultValue:V,value:ee,description:_=w=>`${w} / ${r}`,onInputChange:te,onChangeSuccess:ne,step:b=1,valueToLabelMap:l,...i},re)=>{let w=j.useRef(null),B=c(),O=c(),u=useCallback(e=>l?l.get(e)??e.toString():e.toString(),[l]),S=useCallback(e=>{if(l){let H=[...l.entries()].find(([,se])=>se===e);if(H)return H[0]}return Number.parseInt(e)},[l]),[t,c$1]=a$1(ee,V??1,ne),[d,g]=useState(u(t)??""),z=t<=a||n,h=t>=r||n,y=useCallback(e=>{if(!e)return;E?.(e);let m=S(e);if(Number.isNaN(m)){g(u(t)??"");return}m>=a&&m<=r&&!n&&!i.isReadOnly?c$1(m):g(u(t));},[E,S,a,r,n,i.isReadOnly,u,t,c$1]),f=useCallback(e=>e>=a&&e<=r,[a,r]),ae=useCallback(e=>{y(d),k?.(e);},[d,y,k]),v=useCallback(()=>{if(h)return;let e=Math.min(t+b,r);f(e)&&c$1(e);},[t,h,f,r,c$1,b]),x=useCallback(()=>{if(z)return;let e=Math.max(t-b,a);f(e)&&c$1(e);},[t,z,f,a,c$1,b]),oe=useCallback(e=>{if(!(n||i.isReadOnly)){switch(e.key){case "Enter":{y(d);break}case "ArrowUp":{v();break}case "ArrowDown":{x();break}}F?.(e);}},[n,i.isReadOnly,F,y,d,v,x]);useGranularEffect(()=>{g(u(t));},[t],[u]);let{inputProps:ie}=a$2({...i,value:d?.toString(),isDisabled:n,onBlur:ae,onChange:e=>{g(e),te?.(e);},onKeyDown:oe,"aria-labelledby":B,"aria-describedby":O},w),A=typeof _=="function"?_(t):_;return jsxs(a$3,{className:a$6($[p],L),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":Q,"data-block-class":X,style:W,ref:re,"aria-disabled":n,children:[jsx("span",{id:B,className:R({size:p,isDisabled:n}),children:Z}),jsxs(a$3,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[jsx(a$4,{icon:CaretLeftIcon,elementType:"div",size:p,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:n||z||i.isReadOnly,excludeFromTabOrder:true,onPress:x,"aria-label":J,tooltip:true}),jsx(a$5,{orientation:"vertical"}),jsx("input",{...ie,className:Y({size:p}),min:a,max:r}),jsx(a$5,{orientation:"vertical"}),jsx(a$4,{icon:CaretRightIcon,elementType:"div",size:p,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:n||h||i.isReadOnly,excludeFromTabOrder:true,onPress:v,"aria-label":M,tooltip:true})]}),A?jsx("span",{id:O,className:R({size:p,isDisabled:n}),children:A}):null]})});D.displayName="TaggedPagination";export{D as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-X3AXUU3H.mjs';import {useState}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function S(e={}){let{isReadOnly:o}=e,[t,l]=a(e.isSelected,e.defaultSelected||false,e.onChange),[n]=useState(t);function d(i){o||l(i);}function g(){o||l(!t);}return {isSelected:t,defaultSelected:e.defaultSelected??n,setSelected:d,toggle:g}}export{S as a};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-D3IZ4HBL.mjs';import {c}from'./chunk-JDLUGVXG.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 f(o){let{id:l,label:s,"aria-labelledby":e,"aria-label":i,labelElementType:p="label"}=o;l=c(l);let a$1=c(),b={};s?(e=e?`${a$1} ${e}`:a$1,b={id:a$1,htmlFor:p==="label"?l:void 0}):!e&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let n=a({id:l,"aria-label":i,"aria-labelledby":e});return {labelProps:b,fieldProps:n}}export{f as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-EA6GA4WC.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 n(r,o,i){let{labelProps:s,inputProps:p,isSelected:t,...l}=a(r,o,i);return {labelProps:s,inputProps:{...p,role:"switch",checked:t},isSelected:t,...l}}export{n as a};
|