@baseline-ui/core 3.2.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.css +1 -1
- package/dist/Accordion.mjs +1 -1
- package/dist/ActionButton.css +1 -1
- package/dist/ActionButton.mjs +1 -1
- package/dist/ActionGroup.css +1 -1
- package/dist/ActionGroup.mjs +1 -1
- package/dist/ActionIconButton.css +1 -1
- package/dist/ActionIconButton.mjs +1 -1
- package/dist/Actionable.mjs +1 -1
- package/dist/AlertDialog.css +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.css +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Avatar.mjs +1 -1
- package/dist/ButtonSelect.css +1 -1
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.css +1 -1
- package/dist/Calendar.mjs +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ColorInput.css +1 -1
- package/dist/ColorInput.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.css +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.css +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/DateFormat.mjs +1 -1
- package/dist/Dialog.css +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/DomNodeRenderer.mjs +1 -1
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.mjs +1 -1
- package/dist/Editor.css +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileInput.css +1 -1
- package/dist/FileInput.mjs +1 -1
- package/dist/FileList.css +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.css +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FrameProvider.mjs +1 -1
- package/dist/FreehandCanvas.css +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/Group.mjs +1 -1
- package/dist/I18nProvider.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/ImageDropZone.css +1 -1
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.css +1 -1
- package/dist/ImageGallery.mjs +1 -1
- package/dist/InlineAlert.css +1 -1
- package/dist/InlineAlert.mjs +1 -1
- package/dist/InlineToolbar.mjs +2 -2
- package/dist/Kbd.mjs +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/ListBox.mjs +1 -1
- package/dist/Menu.css +1 -1
- package/dist/Menu.mjs +1 -1
- package/dist/MessageFormat.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberFormat.mjs +1 -1
- package/dist/NumberInput.css +1 -1
- package/dist/NumberInput.mjs +1 -1
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.mjs +1 -1
- package/dist/Panel.mjs +1 -1
- package/dist/PointPicker.mjs +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.mjs +1 -1
- package/dist/Preview.css +1 -1
- package/dist/Preview.mjs +1 -1
- package/dist/ProgressBar.mjs +1 -1
- package/dist/ProgressSpinner.mjs +1 -1
- package/dist/RadioGroup.mjs +1 -1
- package/dist/Reaction.mjs +1 -1
- package/dist/ScrollControlButton.mjs +1 -1
- package/dist/SearchInput.css +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.css +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Separator.mjs +1 -1
- package/dist/Slider.css +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/StatusCard.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.css +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/TagGroup.mjs +1 -1
- package/dist/TaggedPagination.css +1 -1
- package/dist/TaggedPagination.mjs +1 -1
- package/dist/Text.mjs +1 -1
- package/dist/TextInput.mjs +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/TimeField.mjs +1 -1
- package/dist/Toast.css +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/ToggleButton.css +1 -1
- package/dist/ToggleButton.mjs +1 -1
- package/dist/ToggleIconButton.mjs +1 -1
- package/dist/Toolbar.css +1 -1
- package/dist/Toolbar.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TreeView.css +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/Virtualizer.mjs +1 -1
- package/dist/{chunk-UUBOEBYZ.mjs → chunk-22MA6EYO.mjs} +1 -1
- package/dist/{chunk-3UH5CQQF.mjs → chunk-22VRCVTH.mjs} +2 -2
- package/dist/chunk-235S3EB7.mjs +10 -0
- package/dist/chunk-24R46WQW.mjs +10 -0
- package/dist/chunk-2F3CFR22.mjs +10 -0
- package/dist/{chunk-CHTLOFCT.mjs → chunk-2JGVUCP5.mjs} +1 -1
- package/dist/{chunk-4SBMUWOY.mjs → chunk-2LFMBQKQ.mjs} +2 -2
- package/dist/{chunk-TK4QXU3W.mjs → chunk-2VOWBYNS.mjs} +1 -1
- package/dist/{chunk-TO2TQ2LE.mjs → chunk-335C37NB.mjs} +1 -1
- package/dist/{chunk-DAN5WASP.mjs → chunk-36ZMHBG5.mjs} +2 -2
- package/dist/chunk-3BEG3MEX.mjs +10 -0
- package/dist/chunk-3BG6K2G2.mjs +10 -0
- package/dist/{chunk-SNQDFFKP.mjs → chunk-3DWFAHR2.mjs} +1 -1
- package/dist/{chunk-FOEGHU3P.mjs → chunk-3KCSUNRV.mjs} +1 -1
- package/dist/{chunk-TZ4MVY4E.mjs → chunk-3WKDIXCM.mjs} +1 -1
- package/dist/chunk-4AG2RUAZ.mjs +10 -0
- package/dist/{chunk-7OCDKTTZ.mjs → chunk-4EANTENO.mjs} +1 -1
- package/dist/{chunk-JJPCZOOI.mjs → chunk-4EAXDHSV.mjs} +2 -2
- package/dist/{chunk-UQJGSVXP.mjs → chunk-4I7K4CCG.mjs} +2 -2
- package/dist/{chunk-QR2AF3KT.mjs → chunk-4JQUB53Q.mjs} +1 -1
- package/dist/chunk-4MHBLLHV.mjs +11 -0
- package/dist/chunk-4P247R4V.mjs +10 -0
- package/dist/{chunk-RXSYDMT6.mjs → chunk-4QBHQCCK.mjs} +2 -2
- package/dist/chunk-4RSUKS23.mjs +10 -0
- package/dist/chunk-4S4GGUSH.mjs +10 -0
- package/dist/chunk-4W5VP4NV.mjs +10 -0
- package/dist/chunk-5BKC373Y.mjs +10 -0
- package/dist/chunk-5FK5AJ7A.mjs +10 -0
- package/dist/{chunk-FWAK2OZM.mjs → chunk-5KJF7IQN.mjs} +1 -1
- package/dist/{chunk-F2O4AP7P.mjs → chunk-5MUEJ5WI.mjs} +1 -1
- package/dist/{chunk-XZSDCUID.mjs → chunk-5SHHWKFM.mjs} +1 -1
- package/dist/{chunk-WAOWR7MR.mjs → chunk-5USQ6HBY.mjs} +1 -1
- package/dist/{chunk-4DTPDMSQ.mjs → chunk-5VNC6UYE.mjs} +2 -2
- package/dist/chunk-5ZC64ZG7.mjs +10 -0
- package/dist/{chunk-246VHB32.mjs → chunk-6G7EUNZW.mjs} +1 -1
- package/dist/chunk-6QQEK5I6.mjs +10 -0
- package/dist/chunk-76DKF2SK.mjs +10 -0
- package/dist/{chunk-4BYKAG4W.mjs → chunk-7L5UOGZA.mjs} +1 -1
- package/dist/chunk-7MMO7S3R.mjs +10 -0
- package/dist/{chunk-HDVWQ6RL.mjs → chunk-7P7VZMTO.mjs} +1 -1
- package/dist/{chunk-CFLEBB5T.mjs → chunk-7SKQUEHP.mjs} +1 -1
- package/dist/chunk-7SQRBY7N.mjs +10 -0
- package/dist/chunk-7TE4MFKC.mjs +10 -0
- package/dist/chunk-7XGNJE7J.mjs +10 -0
- package/dist/{chunk-UCQJ6FJO.mjs → chunk-AD3MLX6G.mjs} +1 -1
- package/dist/chunk-AELTF2DE.mjs +10 -0
- package/dist/chunk-AI6WQPRX.mjs +10 -0
- package/dist/chunk-AK7XHUQW.mjs +10 -0
- package/dist/chunk-AM5FU4Y7.mjs +10 -0
- package/dist/chunk-AYQN3OH2.mjs +10 -0
- package/dist/chunk-B3EZOXNU.mjs +10 -0
- package/dist/chunk-BBYODNBO.mjs +10 -0
- package/dist/chunk-BGQRLALS.mjs +10 -0
- package/dist/chunk-BGRGRUG4.mjs +10 -0
- package/dist/chunk-BHJCYKFJ.mjs +11 -0
- package/dist/{chunk-K6MB234H.mjs → chunk-BIDNNBRG.mjs} +1 -1
- package/dist/{chunk-RBZ7SIZR.mjs → chunk-BROSGYL3.mjs} +1 -1
- package/dist/chunk-BTPAZDGG.mjs +10 -0
- package/dist/{chunk-TNU3YDGL.mjs → chunk-BXNNVZOQ.mjs} +1 -1
- package/dist/chunk-BYDJXA5A.mjs +10 -0
- package/dist/chunk-C2VP5IEB.mjs +10 -0
- package/dist/{chunk-I3YGB2BE.mjs → chunk-C4WHTPLY.mjs} +2 -2
- package/dist/chunk-CIPPPD6E.mjs +10 -0
- package/dist/{chunk-EU75HMPG.mjs → chunk-CLGLEEFO.mjs} +2 -2
- package/dist/{chunk-MXKP7NQ4.mjs → chunk-COHK4QQW.mjs} +2 -2
- package/dist/chunk-CTSDHAAV.mjs +10 -0
- package/dist/chunk-CU6D2EA6.mjs +10 -0
- package/dist/{chunk-SAZLJ66W.mjs → chunk-CY6W27WG.mjs} +1 -1
- package/dist/{chunk-34TYNTXM.mjs → chunk-D4NW56YQ.mjs} +1 -1
- package/dist/chunk-DAN62T2M.mjs +10 -0
- package/dist/{chunk-KAVZW4RV.mjs → chunk-DAS5QGJX.mjs} +1 -1
- package/dist/{chunk-PAQQ7MQG.mjs → chunk-DF2D7NE6.mjs} +1 -1
- package/dist/{chunk-H2E7GKGB.mjs → chunk-DSV6CCI6.mjs} +2 -2
- package/dist/{chunk-GX2IOGYR.mjs → chunk-DZDZZRWE.mjs} +1 -1
- package/dist/{chunk-3L7GTQXK.mjs → chunk-E22TWF63.mjs} +2 -2
- package/dist/{chunk-DRYSJSKA.mjs → chunk-E3FP4B25.mjs} +1 -1
- package/dist/chunk-ETM4MNG4.mjs +10 -0
- package/dist/chunk-EUVUJQ2Z.mjs +10 -0
- package/dist/chunk-F7WPMQ3P.mjs +16 -0
- package/dist/chunk-FOKMDEP7.mjs +10 -0
- package/dist/chunk-FPFGTGUC.mjs +10 -0
- package/dist/chunk-FPM5UJRF.mjs +10 -0
- package/dist/{chunk-TJEK54BW.mjs → chunk-G77E7EDE.mjs} +1 -1
- package/dist/chunk-GCBMNOA6.mjs +10 -0
- package/dist/chunk-GFKZXGWJ.mjs +10 -0
- package/dist/{chunk-CPSUI4IW.mjs → chunk-GFTIEY5K.mjs} +1 -1
- package/dist/{chunk-IVVZSESM.mjs → chunk-GL5GUKT7.mjs} +2 -2
- package/dist/chunk-GMALMQWI.mjs +10 -0
- package/dist/chunk-GQIS4QBN.mjs +10 -0
- package/dist/chunk-GUPSQSPC.mjs +0 -0
- package/dist/chunk-HH4VLTF3.mjs +10 -0
- package/dist/chunk-I7LPPUZS.mjs +10 -0
- package/dist/chunk-IEOHIOGL.mjs +10 -0
- package/dist/chunk-IHES52NR.mjs +10 -0
- package/dist/{chunk-AGYQLGBZ.mjs → chunk-IIURKT24.mjs} +1 -1
- package/dist/chunk-IUXXTORQ.mjs +10 -0
- package/dist/{chunk-XIXHGXIN.mjs → chunk-IVGNOQSQ.mjs} +1 -1
- package/dist/chunk-IWZXZ5LU.mjs +10 -0
- package/dist/{chunk-HXTAOYOD.mjs → chunk-IXRSSEHQ.mjs} +1 -1
- package/dist/chunk-J4OPD7OL.mjs +10 -0
- package/dist/{chunk-J7RVOP5G.mjs → chunk-JDIGAVFU.mjs} +1 -1
- package/dist/{chunk-NSC53QWT.mjs → chunk-JZXLV6JU.mjs} +1 -1
- package/dist/chunk-K4TTZX4T.mjs +10 -0
- package/dist/{chunk-4ZJMZB5B.mjs → chunk-K5RYVERS.mjs} +1 -1
- package/dist/chunk-K7VOXFSK.mjs +10 -0
- package/dist/{chunk-WL27JGVG.mjs → chunk-KG2EHFYA.mjs} +1 -1
- package/dist/chunk-KGS3UWPG.mjs +10 -0
- package/dist/{chunk-W3ZGXUFP.mjs → chunk-KJ6ZSO3I.mjs} +1 -1
- package/dist/{chunk-AMYRLAIC.mjs → chunk-KT4FTBJ2.mjs} +1 -1
- package/dist/chunk-KUDCYGII.mjs +10 -0
- package/dist/{chunk-YCI6BEXQ.mjs → chunk-KVIV5RTE.mjs} +1 -1
- package/dist/chunk-KX7WG3L4.mjs +10 -0
- package/dist/chunk-LJZ7ZS4C.mjs +10 -0
- package/dist/{chunk-BZTAFNPW.mjs → chunk-LPI2NIDI.mjs} +1 -1
- package/dist/{chunk-2HMLSXNO.mjs → chunk-MBRNO6IW.mjs} +1 -1
- package/dist/chunk-MDE2FQHX.mjs +10 -0
- package/dist/chunk-MFB3SWO7.mjs +29 -0
- package/dist/{chunk-J7K7I5U2.mjs → chunk-MIF6BAPG.mjs} +1 -1
- package/dist/chunk-MYJ733MN.mjs +10 -0
- package/dist/chunk-MZIQ27JP.mjs +10 -0
- package/dist/chunk-NJKSUI2F.mjs +10 -0
- package/dist/chunk-NKC4MIX3.mjs +10 -0
- package/dist/{chunk-XB657BXX.mjs → chunk-NMGKHMH3.mjs} +1 -1
- package/dist/{chunk-TDPODC62.mjs → chunk-NMSOOQB2.mjs} +1 -1
- package/dist/{chunk-GEZGEZAP.mjs → chunk-NQIZ3U7Q.mjs} +2 -2
- package/dist/chunk-NRQSR3G7.mjs +10 -0
- package/dist/{chunk-6Z6HOW6T.mjs → chunk-NUCSMH4S.mjs} +2 -2
- package/dist/chunk-NYCG264A.mjs +10 -0
- package/dist/chunk-NZNOHFLD.mjs +10 -0
- package/dist/chunk-O4DA3TPW.mjs +11 -0
- package/dist/{chunk-4PYEGHW5.mjs → chunk-O7IU5NHN.mjs} +2 -2
- package/dist/chunk-ONEE6UCM.mjs +10 -0
- package/dist/chunk-OQPYPKZV.mjs +10 -0
- package/dist/{chunk-F3HQNHR5.mjs → chunk-OYSOPCTA.mjs} +1 -1
- package/dist/chunk-OZMADP4Z.mjs +10 -0
- package/dist/chunk-P7BN7QDF.mjs +10 -0
- package/dist/chunk-PD5ZXNGT.mjs +10 -0
- package/dist/{chunk-WICBTAMY.mjs → chunk-PG3WDHSK.mjs} +1 -1
- package/dist/chunk-PMDRFB75.mjs +10 -0
- package/dist/chunk-PPHSLODC.mjs +10 -0
- package/dist/chunk-PYV5J322.mjs +11 -0
- package/dist/{chunk-TPNZG6FA.mjs → chunk-Q4SEEMIX.mjs} +1 -1
- package/dist/{chunk-IE3E4KQ6.mjs → chunk-Q6PGYMYI.mjs} +2 -2
- package/dist/chunk-QAAOC64D.mjs +10 -0
- package/dist/chunk-QJYPCVSD.mjs +10 -0
- package/dist/chunk-QU34XSML.mjs +10 -0
- package/dist/chunk-QUQ4VYCN.mjs +10 -0
- package/dist/chunk-R3HHMCE5.mjs +10 -0
- package/dist/chunk-R4MOUAJW.mjs +10 -0
- package/dist/{chunk-CGFLGZL4.mjs → chunk-R6TFTLMV.mjs} +1 -1
- package/dist/{chunk-H4ZIN7W3.mjs → chunk-R7R7JDA3.mjs} +2 -2
- package/dist/{chunk-2NO2ITVE.mjs → chunk-RO5ZRU3Y.mjs} +1 -1
- package/dist/{chunk-AV4ZP5SY.mjs → chunk-RPIUPWPO.mjs} +1 -1
- package/dist/chunk-RXSX2RKA.mjs +10 -0
- package/dist/{chunk-HT55YHTN.mjs → chunk-S2XIFW52.mjs} +2 -2
- package/dist/chunk-S4HLMIFK.mjs +10 -0
- package/dist/{chunk-FTYXFTJV.mjs → chunk-SBR5UAUY.mjs} +2 -2
- package/dist/chunk-SD43KVTU.mjs +10 -0
- package/dist/{chunk-YS3Y5KGV.mjs → chunk-SGZWUG3H.mjs} +2 -2
- package/dist/chunk-SLFKSR3T.mjs +10 -0
- package/dist/chunk-SLSJEMQ4.mjs +10 -0
- package/dist/{chunk-K6X2BHPP.mjs → chunk-STMDFIUL.mjs} +1 -1
- package/dist/chunk-SVIYLH7R.mjs +10 -0
- package/dist/chunk-SVTTHYTR.mjs +10 -0
- package/dist/{chunk-GXOXYPQQ.mjs → chunk-SVV6DLJH.mjs} +1 -1
- package/dist/chunk-SZCVQU55.mjs +10 -0
- package/dist/chunk-SZN2J2ER.mjs +10 -0
- package/dist/{chunk-RM2Y4D2M.mjs → chunk-SZTFMBPY.mjs} +1 -1
- package/dist/chunk-TAT552A5.mjs +10 -0
- package/dist/{chunk-IHLJTHGQ.mjs → chunk-TDYBXLYP.mjs} +1 -1
- package/dist/{chunk-ZNN43VZV.mjs → chunk-TFSBTGTQ.mjs} +2 -2
- package/dist/{chunk-ENDOKA57.mjs → chunk-TH4XPZEO.mjs} +1 -1
- package/dist/chunk-TSHZ7JSR.mjs +10 -0
- package/dist/{chunk-WN6FAICZ.mjs → chunk-TUJLNJPJ.mjs} +2 -2
- package/dist/chunk-TUY23KMK.mjs +10 -0
- package/dist/{chunk-LQMEFFFM.mjs → chunk-U3T5JTZ7.mjs} +1 -1
- package/dist/chunk-UDMNDUBO.mjs +10 -0
- package/dist/chunk-UFN2OAM2.mjs +10 -0
- package/dist/{chunk-ZLAY7NNY.mjs → chunk-UI2VBG26.mjs} +1 -1
- package/dist/chunk-UNGYVWKZ.mjs +10 -0
- package/dist/{chunk-545KDVGI.mjs → chunk-UO75BAPM.mjs} +2 -2
- package/dist/chunk-UUTMZQQA.mjs +15 -0
- package/dist/chunk-UZ672WDX.mjs +10 -0
- package/dist/chunk-VETO7WNN.mjs +10 -0
- package/dist/chunk-VGFPT43C.mjs +10 -0
- package/dist/{chunk-GKODQS6E.mjs → chunk-VJUBKX3W.mjs} +2 -2
- package/dist/{chunk-ODDEW5IV.mjs → chunk-W7OTSFZS.mjs} +1 -1
- package/dist/chunk-WHN2SEWO.mjs +10 -0
- package/dist/{chunk-6DU65N7Q.mjs → chunk-WTAJLO6E.mjs} +2 -2
- package/dist/{chunk-NVS22MIQ.mjs → chunk-X5Z54UUE.mjs} +1 -1
- package/dist/chunk-XD43CVDT.mjs +10 -0
- package/dist/{chunk-5KD2MNNX.mjs → chunk-XDTKLQJB.mjs} +1 -1
- package/dist/chunk-XMGPNXZH.mjs +10 -0
- package/dist/chunk-XWJJ4V3O.mjs +10 -0
- package/dist/{chunk-D3IZ4HBL.mjs → chunk-Y2MIU76N.mjs} +1 -1
- package/dist/chunk-YF63IQQR.mjs +10 -0
- package/dist/{chunk-2RCST7ET.mjs → chunk-YHI2PD3M.mjs} +1 -1
- package/dist/chunk-YMYMFVW4.mjs +10 -0
- package/dist/chunk-YPEAGD2G.mjs +10 -0
- package/dist/chunk-YQHHE5AT.mjs +10 -0
- package/dist/{chunk-UCNHDT36.mjs → chunk-YS3Z53YT.mjs} +2 -2
- package/dist/{chunk-OFWPRDTC.mjs → chunk-YU5NRJT6.mjs} +2 -2
- package/dist/{chunk-TEQE6WCH.mjs → chunk-ZFGTKLCU.mjs} +1 -1
- package/dist/{chunk-DECHIERQ.mjs → chunk-ZQOR4LCM.mjs} +1 -1
- package/dist/{chunk-ZAMDRHQY.mjs → chunk-ZZIQF6XD.mjs} +1 -1
- package/dist/hooks/useContainerScopedRef.mjs +1 -1
- package/dist/hooks/useDevice.mjs +1 -1
- package/dist/hooks/useI18n.mjs +1 -1
- package/dist/hooks/useIntersectionObserver.mjs +1 -1
- package/dist/hooks/useLiveInteractionModality.mjs +1 -1
- package/dist/hooks/useLocalStorage.mjs +1 -1
- package/dist/hooks/useMedia.mjs +1 -1
- package/dist/hooks/useMutationObserver.mjs +1 -1
- package/dist/hooks/usePortalContainer.mjs +1 -1
- package/dist/hooks/usePreventFocus.mjs +1 -1
- package/dist/hooks/useResizeObserver.mjs +1 -1
- package/dist/hooks/useTextSelection.mjs +1 -1
- package/dist/hooks/useUndoRedo.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +423 -199
- package/dist/index.js +21 -20
- package/dist/index.mjs +1 -1
- package/dist/react-aria.mjs +1 -1
- package/dist/react-stately.mjs +1 -1
- package/dist/utils/colors.mjs +1 -1
- package/dist/utils/dom.mjs +1 -1
- package/dist/utils/isInShadowDOM.mjs +1 -1
- package/dist/utils/keyboards.mjs +1 -1
- package/messages.json +1 -1
- package/package.json +6 -6
- package/sbom.json +27 -77
- package/dist/chunk-3BL5D3CA.mjs +0 -10
- package/dist/chunk-3FYY26ED.mjs +0 -10
- package/dist/chunk-3JL2TJZL.mjs +0 -10
- package/dist/chunk-3W6RWDIE.mjs +0 -10
- package/dist/chunk-47I3USMC.mjs +0 -10
- package/dist/chunk-4I4TIV2G.mjs +0 -10
- package/dist/chunk-4MRHG5IU.mjs +0 -10
- package/dist/chunk-4TAUFBXO.mjs +0 -10
- package/dist/chunk-55YEATL7.mjs +0 -10
- package/dist/chunk-5TDFLLMX.mjs +0 -10
- package/dist/chunk-63KRQW56.mjs +0 -10
- package/dist/chunk-66NJ7EYY.mjs +0 -10
- package/dist/chunk-6DGD7BZA.mjs +0 -10
- package/dist/chunk-6IRWW75G.mjs +0 -10
- package/dist/chunk-6Y6BYHT4.mjs +0 -10
- package/dist/chunk-6ZFBX7C7.mjs +0 -10
- package/dist/chunk-7PRJIPFA.mjs +0 -10
- package/dist/chunk-7VHON5HL.mjs +0 -10
- package/dist/chunk-A24DWFQ2.mjs +0 -10
- package/dist/chunk-AC7OXVHA.mjs +0 -10
- package/dist/chunk-AKES5B6C.mjs +0 -10
- package/dist/chunk-AL3FICFA.mjs +0 -10
- package/dist/chunk-AQYBKDT2.mjs +0 -16
- package/dist/chunk-AUOQSTS5.mjs +0 -10
- package/dist/chunk-AZRPXTYJ.mjs +0 -10
- package/dist/chunk-B7PSE5KC.mjs +0 -10
- package/dist/chunk-BGMVPFYK.mjs +0 -10
- package/dist/chunk-BJVFZYUV.mjs +0 -10
- package/dist/chunk-BU5H25MV.mjs +0 -10
- package/dist/chunk-C3W4WN2O.mjs +0 -10
- package/dist/chunk-C5P23FUW.mjs +0 -10
- package/dist/chunk-CAWUDHAE.mjs +0 -10
- package/dist/chunk-D5EEZT5J.mjs +0 -10
- package/dist/chunk-DSSMBDVA.mjs +0 -10
- package/dist/chunk-EA6GA4WC.mjs +0 -10
- package/dist/chunk-EADUR7IC.mjs +0 -10
- package/dist/chunk-EK3RIYMV.mjs +0 -10
- package/dist/chunk-EX2LI2CV.mjs +0 -10
- package/dist/chunk-F2X474RV.mjs +0 -10
- package/dist/chunk-G3K2DXNP.mjs +0 -10
- package/dist/chunk-GLT45FXJ.mjs +0 -10
- package/dist/chunk-GS4C6CYA.mjs +0 -10
- package/dist/chunk-HONWMHMX.mjs +0 -10
- package/dist/chunk-HZHAKW6I.mjs +0 -10
- package/dist/chunk-INDVRI57.mjs +0 -10
- package/dist/chunk-JDLUGVXG.mjs +0 -10
- package/dist/chunk-JF4BWG7T.mjs +0 -10
- package/dist/chunk-JQ4ZGZPV.mjs +0 -15
- package/dist/chunk-JUXBZ2ZN.mjs +0 -10
- package/dist/chunk-KEVERVHK.mjs +0 -10
- package/dist/chunk-KKJ6XIU3.mjs +0 -10
- package/dist/chunk-KLNQ24LT.mjs +0 -10
- package/dist/chunk-KPEONVLU.mjs +0 -10
- package/dist/chunk-KUEDQO7P.mjs +0 -10
- package/dist/chunk-KY3JKXSX.mjs +0 -10
- package/dist/chunk-LRZ6BQFQ.mjs +0 -10
- package/dist/chunk-LTIDSWDM.mjs +0 -10
- package/dist/chunk-LZFTBNPW.mjs +0 -10
- package/dist/chunk-M5M3EPG5.mjs +0 -10
- package/dist/chunk-MFH2E2GU.mjs +0 -10
- package/dist/chunk-MFNWPTNI.mjs +0 -10
- package/dist/chunk-MHUFXHRU.mjs +0 -10
- package/dist/chunk-MI7DCFP2.mjs +0 -10
- package/dist/chunk-MNAD5FJH.mjs +0 -10
- package/dist/chunk-MRJFGHFW.mjs +0 -10
- package/dist/chunk-MVK5CB64.mjs +0 -10
- package/dist/chunk-N53SGN23.mjs +0 -10
- package/dist/chunk-N7MTFSWR.mjs +0 -10
- package/dist/chunk-O66FNQSB.mjs +0 -10
- package/dist/chunk-OAY74XPB.mjs +0 -10
- package/dist/chunk-OC42IZG2.mjs +0 -10
- package/dist/chunk-OHZK2ZDA.mjs +0 -10
- package/dist/chunk-OMT6ZWSV.mjs +0 -11
- package/dist/chunk-PDWICYVZ.mjs +0 -29
- package/dist/chunk-PF3OQKXP.mjs +0 -10
- package/dist/chunk-PFKPY3N7.mjs +0 -10
- package/dist/chunk-Q4BSQC65.mjs +0 -10
- package/dist/chunk-QKKV24WQ.mjs +0 -10
- package/dist/chunk-QQGK5M66.mjs +0 -10
- package/dist/chunk-RCBUNCHV.mjs +0 -10
- package/dist/chunk-RFTDIXEG.mjs +0 -10
- package/dist/chunk-RRB5F4E4.mjs +0 -11
- package/dist/chunk-RWHDD6Z7.mjs +0 -10
- package/dist/chunk-RZEGMPV2.mjs +0 -11
- package/dist/chunk-SMAYNDQQ.mjs +0 -10
- package/dist/chunk-T2XIDX6U.mjs +0 -10
- package/dist/chunk-TBDKTTIY.mjs +0 -10
- package/dist/chunk-TDXALNX3.mjs +0 -10
- package/dist/chunk-THRAJMLX.mjs +0 -10
- package/dist/chunk-TIHKHXTS.mjs +0 -10
- package/dist/chunk-TKQOQVZD.mjs +0 -10
- package/dist/chunk-TO6OQF2Y.mjs +0 -10
- package/dist/chunk-TVENHRYC.mjs +0 -10
- package/dist/chunk-UCZZLAPB.mjs +0 -10
- package/dist/chunk-ULCYKB34.mjs +0 -10
- package/dist/chunk-UOMNE4F4.mjs +0 -10
- package/dist/chunk-V3L4SVVF.mjs +0 -10
- package/dist/chunk-VDSLDZLT.mjs +0 -10
- package/dist/chunk-VJ3SWDRJ.mjs +0 -10
- package/dist/chunk-WA35CT3D.mjs +0 -10
- package/dist/chunk-WRQ4FPJE.mjs +0 -10
- package/dist/chunk-WWSGOGLA.mjs +0 -10
- package/dist/chunk-X3AXUU3H.mjs +0 -10
- package/dist/chunk-XCL4K4MY.mjs +0 -10
- package/dist/chunk-XTH6B5FE.mjs +0 -10
- package/dist/chunk-XWLESSHN.mjs +0 -10
- package/dist/chunk-Y4DRSGEJ.mjs +0 -10
- package/dist/chunk-YB3KW7JC.mjs +0 -10
- package/dist/chunk-YIGT3OP2.mjs +0 -10
- package/dist/chunk-YVYMYKYN.mjs +0 -10
- package/dist/chunk-ZFLLIBX5.mjs +0 -10
- package/dist/chunk-ZGRRD3TU.mjs +0 -10
- package/dist/chunk-ZP4YB5RP.mjs +0 -10
- /package/dist/{chunk-FKYHERP4.mjs → chunk-3K2H3JOE.mjs} +0 -0
- /package/dist/{chunk-FXCHST4Z.mjs → chunk-JQQGRJ5J.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-GMALMQWI.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {useState}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-R6TFTLMV.mjs';import {a as a$2}from'./chunk-UFN2OAM2.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$3}from'./chunk-2VY4FAOY.mjs';import {a as a$6}from'./chunk-4QBHQCCK.mjs';import {c as c$1}from'./chunk-HH4VLTF3.mjs';import {d,j}from'./chunk-KUDCYGII.mjs';import {a as a$5}from'./chunk-PPHSLODC.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {a as a$4,j as j$1,b as b$1}from'./chunk-SD43KVTU.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 I=new WeakMap;function F(i,e){let r=I.get(i);if(!r)throw new Error("Unknown slider state");return `${r.id}-${e}`}function we(i,e,r){let{labelProps:T,fieldProps:V}=a(i),p=i.orientation==="vertical";I.set(e,{id:T.id??V.id,"aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]});let{direction:O}=b(),{addGlobalListener:a$5,removeGlobalListener:L}=a$1(),o=useRef(null),C=O==="rtl",s=useRef(null),{moveProps:P}=a$2({onMoveStart(){s.current=null;},onMove({deltaX:t,deltaY:b}){if(!r.current)return;let{height:f,width:x}=r.current.getBoundingClientRect(),u=p?f:x;s.current==null&&o.current!=null&&(s.current=e.getThumbPercent(o.current)*u);let c=p?b:t;if((p||C)&&(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);}}),E=useRef(void 0),D=(t,b,f,x)=>{if(r.current&&!i.isDisabled&&e.values.every((u,c)=>!e.isThumbDragging(c))){let u=b$1(t.currentTarget),{height:c,width:S,top:v,left:y}=r.current.getBoundingClientRect(),B=p?c:S,M=((p?x:f)-(p?v:y))/B;(O==="rtl"||p)&&(M=1-M);let d=e.getPercentValue(M),l,g=e.values.findIndex(n=>d-n<0);if(g===0)l=g;else if(g===-1)l=e.values.length-1;else {let n=e.values[g-1],h=e.values[g];Math.abs(n-d)<Math.abs(h-d)?l=g-1:l=g;}l>=0&&e.isThumbEditable(l)?(t.preventDefault(),o.current=l,e.setFocusedThumb(l),E.current=b,e.setThumbDragging(o.current,true),e.setThumbValue(l,d),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,f=b$1(t.currentTarget);b===E.current&&(o.current!=null&&(e.setThumbDragging(o.current,false),o.current=null),L(f,"mouseup",m,false),L(f,"touchend",m,false),L(f,"pointerup",m,false));};return "htmlFor"in T&&T.htmlFor&&(delete T.htmlFor,T.onClick=t=>{a$4(t.currentTarget).getElementById(F(e,0))?.focus(),d("keyboard");}),{labelProps:T,groupProps:{role:"group",...V},trackProps:c({onMouseDown(t){t.button!==0||t.altKey||t.ctrlKey||t.metaKey||D(t,void 0,t.clientX,t.clientY);},onPointerDown(t){t.pointerType==="mouse"&&(t.button!==0||t.altKey||t.ctrlKey||t.metaKey)||D(t,t.pointerId,t.clientX,t.clientY);},onTouchStart(t){D(t,t.changedTouches[0].identifier,t.changedTouches[0].clientX,t.changedTouches[0].clientY);},style:{position:"relative",touchAction:"none"}},P),outputProps:{htmlFor:e.values.map((t,b)=>F(e,b)).join(" "),"aria-live":"off"}}}function Xe(i,e){let{index:r=0,isRequired:T,validationState:V,isInvalid:p,trackRef:O,inputRef:a$4,orientation:L=e.orientation,name:o,form:C}=i,s=i.isDisabled||e.isDisabled,P=L==="vertical",{direction:E}=b(),{addGlobalListener:D,removeGlobalListener:m}=a$1(),t=I.get(e),{labelProps:b$2,fieldProps:f}=a({...i,id:F(e,r),"aria-labelledby":`${t.id} ${i["aria-labelledby"]??""}`.trim()}),x=e.values[r],u=useCallback(()=>{a$4.current&&a$5(a$4.current);},[a$4]),c$2=e.focusedThumb===r;useEffect(()=>{c$2&&u();},[c$2,u]);let S=E==="rtl",v=useRef(null),y=n=>{e.setThumbDragging(r,true),n(),e.setThumbDragging(r,false);},{keyboardProps:B}=j({shortcuts:{PageUp:()=>y(()=>{e.incrementThumb(r,e.pageSize);}),PageDown:()=>y(()=>{e.decrementThumb(r,e.pageSize);}),Home:()=>y(()=>{e.setThumbValue(r,e.getThumbMinValue(r));}),End:()=>y(()=>{e.setThumbValue(r,e.getThumbMaxValue(r));})},allowRepeats:true}),{moveProps:$}=a$2({onMoveStart(){v.current=null,e.setThumbDragging(r,true);},onMove({deltaX:n,deltaY:h,pointerType:R,shiftKey:X}){let{getThumbPercent:oe,setThumbPercent:le,decrementThumb:ue,incrementThumb:ae,step:Y,pageSize:_}=e;if(!O.current)return;let{width:se,height:ce}=O.current.getBoundingClientRect(),J=P?ce:se;if(v.current==null&&(v.current=oe(r)*J),R==="keyboard")n>0&&S||n<0&&!S||h>0?ue(r,X?_:Y):ae(r,X?_:Y);else {let G=P?h:n;(P||S)&&(G=-G),v.current+=G,le(r,a$3(v.current/J,0,1));}},onMoveEnd(){e.setThumbDragging(r,false);}});e.setThumbEditable(r,!s);let{focusableProps:q}=c$1(c(i,{onFocus:()=>e.setFocusedThumb(r),onBlur:()=>e.setFocusedThumb(void 0)}),a$4),z=useRef(void 0),M=n=>{u(),z.current=n,e.setThumbDragging(r,true);let h=b$1(a$4.current);D(h,"mouseup",d,false),D(h,"touchend",d,false),D(h,"pointerup",d,false);},d=n=>{if((n.pointerId??n.changedTouches?.[0].identifier)===z.current){u(),e.setThumbDragging(r,false);let R=b$1(a$4.current);m(R,"mouseup",d,false),m(R,"touchend",d,false),m(R,"pointerup",d,false);}},l=e.getThumbPercent(r);(P||E==="rtl")&&(l=1-l);let g=s?{}:c(B,$,{onMouseDown:n=>{n.button!==0||n.altKey||n.ctrlKey||n.metaKey||M();},onPointerDown:n=>{n.button!==0||n.altKey||n.ctrlKey||n.metaKey||M(n.pointerId);},onTouchStart:n=>{M(n.changedTouches[0].identifier);}});return a$6(a$4,e.defaultValues[r],n=>{e.setThumbValue(r,n);}),{inputProps:c(q,f,{type:"range",tabIndex:s?void 0:0,min:e.getThumbMinValue(r),max:e.getThumbMaxValue(r),step:e.step,value:x,name:o,form:C,disabled:s,"aria-orientation":L,"aria-valuetext":e.getThumbValueLabel(r),"aria-required":T||void 0,"aria-invalid":p||V==="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(j$1(n).value));}}),thumbProps:{...g,style:{position:"absolute",[P?"top":"left"]:`${l*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b$2,isDragging:e.isThumbDragging(r),isDisabled:s,isFocused:c$2}}export{we as a,Xe as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-FOKMDEP7.mjs';import {a as a$4}from'./chunk-3DWFAHR2.mjs';import {a as a$6}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-DZDZZRWE.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-VGFPT43C.mjs';import {d}from'./chunk-4EAXDHSV.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {b as b$1,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import g from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,g,f}from'./chunk-
|
|
1
|
+
import {a,g,f}from'./chunk-ZQOR4LCM.mjs';import {useMemo,useCallback,useRef,useEffect}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-S2XIFW52.mjs';import {a as a$4}from'./chunk-NMSOOQB2.mjs';import {g,e,h,a as a$1,i,c}from'./chunk-24R46WQW.mjs';import {b as b$1}from'./chunk-6G7EUNZW.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import {useGranularEffect}from'granular-hooks';import P,{useCallback,useImperativeHandle}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$2}from'./chunk-GEZGEZAP.mjs';import {a as a$4}from'./chunk-TDPODC
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
function F(t,o,r){let{direction:i$1}=b(),n=g({...t,collection:o.collection,selectionManager:o.selectionManager,isDisabled:!t.enableReorder,getItems:t.getItems||(
|
|
10
|
+
function F(t,o,r){let{direction:i$1}=b(),n=g({...t,collection:o.collection,selectionManager:o.selectionManager,isDisabled:!t.enableReorder,getItems:t.getItems||(c=>[...c].map(l=>{let p=o.collection.getItem(l);return a(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});e(t,n,r);let a$2=h({...t,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:e$1}=a$1({...t,keyboardDelegate:new b$1({collection:o.collection,disabledKeys:o.disabledKeys,ref:r,orientation:t.orientation,layout:t.layout,direction:i$1}),dropTargetDelegate:new i(o.collection,r)},a$2,r);return {collectionProps:e$1,dragState:n,dropState:a$2}}function G({type:t="listbox",handle:o},r,i){let n=useCallback(e=>t==="listbox"?i.current?.querySelector(`[data-key="${e}"][role="option"]`):i.current?.querySelector(`[data-key="${e}"][role="row"]`),[t,i]),a=useCallback((e,c)=>{let l=n(e);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...c});},[n]);useImperativeHandle(o,()=>({scrollIntoView:a,setFocusedKey:e=>{r.selectionManager.setFocused(true),r.selectionManager.setFocusedKey(e),a(e),n(e)?.focus();}}),[a,r.selectionManager,n]),useGranularEffect(()=>{let e=r.selectionManager.focusedKey;a$2(i.current)&&e&&a(e);},[r.selectionManager.focusedKey],[a,i]);}var Q=({dropState:t,orientation:o="vertical",dropIndicatorStyle:r,dropIndicatorClassName:i,renderDropIndicator:n=({isDropTarget:e,isHidden:c,dropIndicatorProps:l,orientation:p},C)=>c?null:jsx("li",{...l,ref:C,"data-drop-target":e,className:a$3(a$4({isDropTarget:e,orientation:p}),"BaselineUI-DropIndicator",i),style:r}),...a})=>{let e=P.useRef(null),{dropIndicatorProps:c$1,isHidden:l,isDropTarget:p}=c(a,t,e);return n({dropIndicatorProps:{...c$1,role:"option"},isHidden:l,isDropTarget:p,orientation:o},e)};export{F as a,G as b,Q as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-XXANV3FM.mjs';import {b as b$3}from'./chunk-F7PGMOQF.mjs';import {a,b as b$1,c}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-XXANV3FM.mjs';import {b as b$3}from'./chunk-F7PGMOQF.mjs';import {a,b as b$1,c}from'./chunk-LJZ7ZS4C.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {useContext,useMemo,useEffect}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$3}from'./chunk-7SKQUEHP.mjs';import {a as a$2}from'./chunk-3BG6K2G2.mjs';import {b,d}from'./chunk-NJKSUI2F.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b as b$1,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import T,{useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$4}from'./chunk-CFLEBB5T.mjs';import {a as a$3}from'./chunk-ULCYKB
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var S=a({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),B=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g9 _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611u"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61vc _1yep5z61vb _1yep5z61v9 _1yep5z61rp _1yep5z61od"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6gb"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61vc _1yep5z61vb _1yep5z61rf _1yep5z61v9"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61va _1yep5z61v9 _1yep5z61rg _1yep5z61oe"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61v9 _1yep5z61vb _1yep5z61rf _1yep5z61vc"]]}),C=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z618t _1yep5z618s _1yep5z614w _1yep5z618q"},isSelected:{true:"_1yep5z611t"},isDisabled:{true:"z9nup82 _1yep5z611u"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61oc"]]}),V=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z618t _1yep5z618s _1yep5z614w _1yep5z618q"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611u"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61pd"],[{isSelected:true,isDisabled:false},"_1yep5z61pd _1yep5z61og"],[{isSelected:true,isDisabled:true},"_1yep5z61pd _1yep5z61od"]]}),x=a({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611w"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61of"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61od"],[{isSelected:false,isHovered:true},"_1yep5z61pd"],[{isSelected:false,isFocusVisible:true},"_1yep5z61vc _1yep5z61vb _1yep5z61rf _1yep5z61v9"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61va _1yep5z61v9 _1yep5z61rg"]]});var E={xxs:8,xs:12,sm:16,md:20,lg:24},h=T.forwardRef((
|
|
10
|
+
var S=a({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),B=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g9 _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611u"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61vc _1yep5z61vb _1yep5z61v9 _1yep5z61rp _1yep5z61od"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6gb"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61vc _1yep5z61vb _1yep5z61rf _1yep5z61v9"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61va _1yep5z61v9 _1yep5z61rg _1yep5z61oe"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61v9 _1yep5z61vb _1yep5z61rf _1yep5z61vc"]]}),C=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z618t _1yep5z618s _1yep5z614w _1yep5z618q"},isSelected:{true:"_1yep5z611t"},isDisabled:{true:"z9nup82 _1yep5z611u"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61oc"]]}),V=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z618t _1yep5z618s _1yep5z614w _1yep5z618q"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611u"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61pd"],[{isSelected:true,isDisabled:false},"_1yep5z61pd _1yep5z61og"],[{isSelected:true,isDisabled:true},"_1yep5z61pd _1yep5z61od"]]}),x=a({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611w"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61of"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61od"],[{isSelected:false,isHovered:true},"_1yep5z61pd"],[{isSelected:false,isFocusVisible:true},"_1yep5z61vc _1yep5z61vb _1yep5z61rf _1yep5z61v9"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61va _1yep5z61v9 _1yep5z61rg"]]});var E={xxs:8,xs:12,sm:16,md:20,lg:24},h=T.forwardRef((t,r)=>{let e=a$1(r),{tooltipProps:p}=b(t,e);return p?jsx(a$2,{...p,children:jsx(z,{...t,ref:e})}):jsx(z,{...t,ref:e})});h.displayName="ToggleIconButton";var z=T.forwardRef(({className:t,style:r,icon:e,size:p="md",variant:a="primary","data-block-id":I,"data-block-class":D,..._},F)=>{let o=a$3(_),{buttonProps:N,isPressed:H,ref:P,isFocusVisible:l,isFocused:w,isHovered:u,uiStateOptions:n}=d(_,o),R=useMemo(()=>typeof e=="function"?e:o.isSelected?e.selected:e.unselected,[e,o.isSelected]),y={isSelected:o.isSelected,isHovered:u,isFocusVisible:l,isDisabled:!!_.isDisabled},M=a$4({"data-hovered":u,"data-selected":o.isSelected,"data-focus-visible":l,"data-disabled":_.isDisabled,"data-block-id":I,"data-block-class":D,"data-focused":w,"data-pressed":H});return jsx("button",{...c(N,M),className:a$5(a==="toolbar"&&x(y),a==="primary"&&B(y),a==="secondary"&&C(y),a==="tertiary"&&V(y),S({size:p}),"BaselineUI-ToggleIconButton",typeof t=="function"?t(n):t),style:typeof r=="function"?r(n):r,ref:b$1(P,F),children:jsx(R,{size:E[p]})})});z.displayName="ToggleIconButtonCore";export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-RPIUPWPO.mjs';import {jsx,Fragment}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1,k}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-RMUV6NJJ.mjs';import R,{useState,useRef,useCallback,useEffect}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var s=typeof document<"u"?R.useLayoutEffect:()=>{};function y(l){let[n,o]=useState(l),u=useRef(n),e=useRef(null),t=useRef(()=>{if(!e.current)return;let r=e.current.next();if(r.done){e.current=null;return}u.current===r.value?t.current():o(r.value);});s(()=>{u.current=n,e.current&&t.current();});let f=useCallback(r=>{e.current=r(u.current),t.current();},[t]);return [n,f]}var v=!!(typeof window<"u"&&window.document&&window.document.createElement),c=new Map,i;typeof FinalizationRegistry<"u"&&(i=new FinalizationRegistry(l=>{c.delete(l);}));var d=new WeakMap;function V(l){let[n,o]=useState(l),u=useRef(null),e=a(n),t=useRef(null),f=d.get(t);if(i&&f!==e&&(f!=null&&i.unregister(t),i.register(t,e,t),d.set(t,e)),v){let r=c.get(e);r&&!r.includes(u)?r.push(u):c.set(e,[u]);}return s(()=>{let r=e;return ()=>{i&&(i.unregister(t),d.delete(t)),c.delete(r);}},[e]),useEffect(()=>{let r=u.current;return r&&o(r),()=>{r&&(u.current=null);}}),e}function A(l,n){if(l===n)return l;let o=c.get(l);if(o)return o.forEach(e=>e.current=n),n;let u=c.get(n);return u?(u.forEach(e=>e.current=l),l):n}function H(l=[],n){let o=V(),[u,e]=y(o),t=useCallback(()=>{let f=a$1(n?.current);e(function*(){yield o,yield k(o,f)?o:void 0;});},[o,e,n]);return s(t,[o,t,...l]),u}export{s as a,y as b,V as c,A as d,H as e};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-AMW7LGCF.mjs';import {c}from'./chunk-NYCG264A.mjs';import {a as a$8}from'./chunk-7SQRBY7N.mjs';import {a as a$5}from'./chunk-VGFPT43C.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {e}from'./chunk-AYQN3OH2.mjs';import {a as a$7}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$4}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/12';import {XIcon as XIcon$1}from'@baseline-ui/icons/16';import {SearchIcon as SearchIcon$1}from'@baseline-ui/icons/20';import {SearchIcon}from'@baseline-ui/icons/24';import O from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* 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={"ar-AE":{"Clear search":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"},"bg-BG":{"Clear search":"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435"},"cs-CZ":{"Clear search":"Vymazat hled\xE1n\xED"},"da-DK":{"Clear search":"Ryd s\xF8gning"},"de-DE":{"Clear search":"Suche zur\xFCcksetzen"},"el-GR":{"Clear search":"\u0391\u03C0\u03B1\u03BB\u03BF\u03B9\u03C6\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar b\xFAsqueda"},"et-EE":{"Clear search":"T\xFChjenda otsing"},"fi-FI":{"Clear search":"Tyhjenn\xE4 haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"\u05E0\u05E7\u05D4 \u05D7\u05D9\u05E4\u05D5\u05E9"},"hr-HR":{"Clear search":"Obri\u0161i pretragu"},"hu-HU":{"Clear search":"Keres\xE9s t\xF6rl\xE9se"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2"},"ko-KR":{"Clear search":"\uAC80\uC0C9 \uC9C0\uC6B0\uAE30"},"lt-LT":{"Clear search":"I\u0161valyti ie\u0161k\u0105"},"lv-LV":{"Clear search":"Not\u012Br\u012Bt mekl\u0113\u0161anu"},"nb-NO":{"Clear search":"T\xF8m s\xF8k"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczy\u015B\u0107 zawarto\u015B\u0107 wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"\u015Eterge\u0163i c\u0103utarea"},"ru-RU":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A"},"sk-SK":{"Clear search":"Vymaza\u0165 vyh\u013Ead\xE1vanie"},"sl-SI":{"Clear search":"Po\u010Disti iskanje"},"sr-SP":{"Clear search":"Obri\u0161i pretragu"},"sv-SE":{"Clear search":"Rensa s\xF6kning"},"tr-TR":{"Clear search":"Aramay\u0131 temizle"},"uk-UA":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A"},"zh-CN":{"Clear search":"\u6E05\u9664\u641C\u7D22"},"zh-TW":{"Clear search":"\u6E05\u9664\u641C\u5C0B\u689D\u4EF6"}};function z(r,e,t){let y=b$1(M,"@react-aria/searchfield"),{isDisabled:n,isReadOnly:p,onSubmit:s,onClear:a,type:d="search"}=r,{keyboardProps:o}=j({isDisabled:n||p,shortcuts:{Enter:()=>{if(s){s(e.value);return}return false},Escape:()=>{if(e.value===""&&(!t.current||t.current.value===""))return false;e.setValue(""),a?.();}}}),i=()=>{e.setValue(""),a&&a();},h=()=>{t.current?.focus();},{labelProps:l,inputProps:m,descriptionProps:f,errorMessageProps:c,..._}=a$8({...r,value:e.value,onChange:e.setValue,onKeyDown:r.onKeyDown,onKeyUp:r.onKeyUp,type:d},t);return {labelProps:l,inputProps:c$1(o,{...m,defaultValue:void 0}),clearButtonProps:{"aria-label":y.format("Clear search"),excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:n||p,onPress:i,onPressStart:h},descriptionProps:f,errorMessageProps:c,..._}}function b(r){let[e,t]=a$7(B(r.value),B(r.defaultValue)||"",r.onChange);return {value:e,setValue:t}}function B(r){if(r!=null)return r.toString()}var D="_19n40yy9 _1yep5z6me _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kk _1yep5z6kl _1yep5z6km _1yep5z6ey",E=a({defaultClassName:"_19n40yy0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6g9 _1yep5z6mh _1yep5z6mf _1yep5z6hs _1yep5z6f9 _1yep5z6m3 _1yep5z6e6",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3 _1yep5z610m"},variant:{primary:"_1yep5z613z",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_1yep5z6os _1yep5z6ot _1yep5z6ou"},isDisabled:{true:"_19n40yy8 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]});var W={sm:SearchIcon$1,md:SearchIcon,lg:SearchIcon},K=O.forwardRef(({className:r,size:e$1="md",variant:t="primary","data-block-id":y,"data-block-class":n,style:p,isClearFocusable:s=false,...a},d)=>{let o=O.useRef(null);[a,o]=e(a,o,c);let i=b(a),{inputProps:h,clearButtonProps:l}=z({...a$1(a),"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},i,o),{focusProps:m,isFocusVisible:f,isFocused:c$2}=a$2({within:true,isTextInput:true}),_=W[e$1],N=e$1==="sm"?XIcon:XIcon$1,U=a$3({"data-block-id":y,"data-block-class":n,"data-focused":c$2,"data-disabled":a.isDisabled,"data-focus-visible":f}),P=a$4(a,{global:true});return delete P.id,jsxs("div",{...P,...U,className:a$6(E({size:e$1,isFocused:c$2,variant:t,hasText:!!i.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",r),style:p,ref:d,children:[jsx(_,{size:e$1==="sm"?20:24}),jsx("input",{...c$1(h,m),className:D,ref:o}),i.value!==""&&jsx(a$5,{icon:N,...l,size:e$1==="sm"?"xs":"sm",variant:"secondary",isExcludedFromRovingFocus:!s,excludeFromTabOrder:!s,...s?{onPressStart:C=>{l.onPressStart?.(C),l.onPress?.(C);}}:{}})]})});K.displayName="SearchInput";export{K as a};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {b as b$1,a as a$2,e}from'./chunk-235S3EB7.mjs';import {b as b$2}from'./chunk-S4HLMIFK.mjs';import {h,j,t,u,n,a as a$3,m,p,e as e$1,v}from'./chunk-PPHSLODC.mjs';import {c,a as a$4}from'./chunk-3WKDIXCM.mjs';import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {b,a,h as h$1,j as j$1}from'./chunk-SD43KVTU.mjs';import {flushSync}from'react-dom';import Me,{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 Z(r){let s=b(r);if(h()&&j()){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=b(r);if(h()&&j()){if(R!=="disabled")return;R="restoring",setTimeout(()=>{t(()=>{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.HTMLElement||r instanceof s.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 ee=Me.createContext({register:()=>{}});ee.displayName="PressResponderContext";function Ce(r){let s=useContext(ee);if(s){let{register:i,ref:a,...d}=s;r=c(d,r),i();}return v(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}},ge=Symbol("linkClicked"),me="react-aria-pressable-style",Pe="data-react-aria-pressable";function ut(r){let{onPress:s,onPressChange:i,onPressStart:a$5,onPressEnd:d,onPressUp:M,onClick:P,isDisabled:m$1,isPressed:L,preventFocusOnPress:k,shouldCancelOnPointerExit:I,allowTextSelectionOnPress:b$3,ref:Y,...be}=Ce(r),[he,se]=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(),y=useCallback((e,o)=>{let g=h.current;if(m$1||g.didFirePressStart)return false;let n=true;if(g.isTriggeringEvent=true,a$5){let c=new D("pressstart",o,e);a$5(c),n=c.shouldStopPropagation;}return i&&i(true),g.isTriggeringEvent=false,g.didFirePressStart=true,se(true),n},[m$1,a$5,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){let t=new D("pressend",o,e);d(t),c=t.shouldStopPropagation;}if(i&&i(false),se(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,i,s]),S=u(X),Se=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=u(Se),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$3||B(o.target);for(let g of o.disposables)g();o.disposables=[];}},[b$3,F,X]),T=u(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]),Ke=useMemo(()=>{let e$2=h.current,o={onKeyDown(n){if(re(n.nativeEvent,n.currentTarget)&&h$1(n.currentTarget,j$1(n))){ye(j$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=y(n,"keyboard"));let t=n.currentTarget,l=u=>{re(u,t)&&!u.repeat&&h$1(t,j$1(u))&&e$2.target&&C(w(e$2.target,u),"keyboard");};O(a(n.currentTarget),"keyup",a$4(l,g),true),c&&n.stopPropagation(),n.metaKey&&e$1()&&e$2.metaKeyEvents?.set(n.key,n.nativeEvent);}else n.key==="Meta"&&(e$2.metaKeyEvents=new Map);},onClick(n){if(!(n&&!h$1(n.currentTarget,j$1(n)))&&n&&n.button===0&&!e$2.isTriggeringEvent&&!p.isOpening){let c=true;if(m$1&&n.preventDefault(),!e$2.ignoreEmulatedMouseEvents&&!e$2.isPressed&&(e$2.pointerType==="virtual"||m(n.nativeEvent))){let t=y(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&&re(n,e$2.target)){ye(j$1(n),n.key)&&n.preventDefault();let c=j$1(n),t=h$1(e$2.target,c);S(w(e$2.target,n),"keyboard",t),t&&W(n,e$2.target),F(),n.key!=="Enter"&&ne(e$2.target)&&h$1(e$2.target,c)&&!n[ge]&&(n[ge]=true,p(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.onPointerDown=t=>{if(t.button!==0||!h$1(t.currentTarget,j$1(t)))return;if(n(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$3||Z(e$2.target),l=y(t,e$2.pointerType);let u=j$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$1,false),O(a(t.currentTarget),"pointercancel",c,false);}l&&t.stopPropagation();},o.onMouseDown=t=>{if(h$1(t.currentTarget,j$1(t))&&t.button===0){if(k){let l=e(j$1(t));l&&e$2.disposables.push(l);}t.stopPropagation();}},o.onPointerUp=t=>{!h$1(t.currentTarget,j$1(t))||e$2.pointerType==="virtual"||t.button===0&&!e$2.isPressed&&C(t,e$2.pointerType||t.pointerType);},o.onPointerEnter=t=>{t.pointerId===e$2.activePointerId&&e$2.target&&!e$2.isOverTarget&&e$2.pointerType!=null&&(e$2.isOverTarget=true,y(w(e$2.target,t),e$2.pointerType));},o.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$1=t=>{if(t.pointerId===e$2.activePointerId&&e$2.isPressed&&t.button===0&&e$2.target){if(h$1(e$2.target,j$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.onDragStart=t=>{h$1(t.currentTarget,j$1(t))&&T(t);};}else if(process.env.NODE_ENV==="test"){o.onMouseDown=t=>{if(t.button!==0||!h$1(t.currentTarget,j$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=m(t.nativeEvent)?"virtual":"mouse",flushSync(()=>y(t,e$2.pointerType))&&t.stopPropagation(),k){let u=e(j$1(t));u&&e$2.disposables.push(u);}O(a(t.currentTarget),"mouseup",n,false);},o.onMouseEnter=t=>{if(!h$1(t.currentTarget,j$1(t)))return;let l=true;e$2.isPressed&&!e$2.ignoreEmulatedMouseEvents&&e$2.pointerType!=null&&(e$2.isOverTarget=true,l=y(t,e$2.pointerType)),l&&t.stopPropagation();},o.onMouseLeave=t=>{if(!h$1(t.currentTarget,j$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.onMouseUp=t=>{h$1(t.currentTarget,j$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&&h$1(e$2.target,j$1(t))&&e$2.pointerType!=null||T(t),e$2.isOverTarget=false;}};o.onTouchStart=t=>{if(!h$1(t.currentTarget,j$1(t)))return;let l=Re(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$3||Z(e$2.target),y(K(e$2.target,t),e$2.pointerType)&&t.stopPropagation(),O(b(t.currentTarget),"scroll",c,true);},o.onTouchMove=t=>{if(!h$1(t.currentTarget,j$1(t)))return;if(!e$2.isPressed){t.stopPropagation();return}let l=Te(t.nativeEvent,e$2.activePointerId),u=true;l&&Ee(l,t.currentTarget)?!e$2.isOverTarget&&e$2.pointerType!=null&&(e$2.isOverTarget=true,u=y(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.onTouchEnd=t=>{if(!h$1(t.currentTarget,j$1(t)))return;if(!e$2.isPressed){t.stopPropagation();return}let l=Te(t.nativeEvent,e$2.activePointerId),u=true;l&&Ee(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$3&&B(e$2.target),F();},o.onTouchCancel=t=>{h$1(t.currentTarget,j$1(t))&&(t.stopPropagation(),e$2.isPressed&&T(K(e$2.target,t)));};let c=t=>{e$2.isPressed&&h$1(j$1(t),e$2.target)&&T({currentTarget:e$2.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false});};o.onDragStart=t=>{h$1(t.currentTarget,j$1(t))&&T(t);};}return o},[O,m$1,k,F,b$3,U,y,V,W]);return useEffect(()=>{if(!Y||process.env.NODE_ENV==="test")return;let e=a(Y.current);if(!e||!e.head||e.getElementById(me))return;let o=e.createElement("style");o.id=me;let g=b$2(e);g&&(o.nonce=g),o.textContent=`
|
|
11
|
+
@layer {
|
|
12
|
+
[${Pe}] {
|
|
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$3||B(e.target??void 0);for(let o of e.disposables)o();e.disposables=[];}},[b$3]),{isPressed:L||he,pressProps:c(be,Ke,{[Pe]:true})}}function ne(r){return r.tagName==="A"&&r.hasAttribute("href")}function re(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&&!ve(d,i)||d instanceof b(d).HTMLTextAreaElement||d.isContentEditable)&&!((M==="link"||!M&&ne(d))&&i!=="Enter")}function Re(r){let{targetTouches:s}=r;return s.length>0?s[0]:null}function Te(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 De(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 Le(r,s){return !(r.left>s.right||s.left>r.right||r.top>s.bottom||s.top>r.bottom)}function Ee(r,s){let i=s.getBoundingClientRect(),a=De(r);return Le(i,a)}function Fe(r){let s=b(r);return r instanceof s.HTMLInputElement?false:r instanceof s.HTMLButtonElement?r.type!=="submit"&&r.type!=="reset":!ne(r)}function ye(r,s){return e$1()&&s==="Enter"?false:r instanceof b(r).HTMLInputElement?s==="Enter"&&(r.type==="checkbox"||r.type==="radio")?false:!ve(r,s):Fe(r)}var Ue=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ve(r,s){return r.type==="checkbox"||r.type==="radio"?s===" ":Ue.has(r.type)}export{Z as a,B as b,ee as c,ut as d};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {c}from'./chunk-BGQRLALS.mjs';import {i as i$1}from'./chunk-KUDCYGII.mjs';import {a as a$1}from'./chunk-SVIYLH7R.mjs';import {e}from'./chunk-ETM4MNG4.mjs';import {a,i,h}from'./chunk-SD43KVTU.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
|
+
function E(r,e$1){let{role:d="dialog",isEntering:b}=r,i$2=e([],e$1);i$2=r["aria-label"]?void 0:i$2;let a$2=e();a$2=d==="alertdialog"&&!r["aria-describedby"]?a$2:void 0;let o=useRef(false);useEffect(()=>{if(b||!e$1.current)return;let t=a(e$1.current),l=i(t);if(!h(e$1.current,l)){i$1(e$1.current);let n=setTimeout(()=>{let g=i(t);(g===e$1.current||g===t.body)&&(o.current=true,e$1.current&&(e$1.current.blur(),i$1(e$1.current)),o.current=false);},500);return ()=>{clearTimeout(n);}}},[e$1,b]),c();let m=useRef(false);useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!m.current&&e$1.current){let t=e$1.current,l=t.hasAttribute("aria-label"),n=t.hasAttribute("aria-labelledby");!l&&!n&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),m.current=true);}});let O=r["aria-describedby"]??a$2;return {dialogProps:{...a$1(r,{labelable:true}),role:d,tabIndex:-1,"aria-labelledby":r["aria-labelledby"]??i$2,"aria-describedby":O,onBlur:t=>{o.current&&t.stopPropagation();}},titleProps:{id:i$2},contentProps:{id:a$2}}}export{E as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-BYDJXA5A.mjs';import {a as a$9}from'./chunk-TUY23KMK.mjs';import {a as a$8}from'./chunk-NGZRN4SF.mjs';import {b as b$1}from'./chunk-DF2D7NE6.mjs';import {a as a$b}from'./chunk-WTAJLO6E.mjs';import {b as b$3,e as e$1}from'./chunk-4RSUKS23.mjs';import {b,c as c$1}from'./chunk-DZDZZRWE.mjs';import {b as b$6}from'./chunk-TUJLNJPJ.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$6}from'./chunk-VGFPT43C.mjs';import {a as a$2}from'./chunk-GMALMQWI.mjs';import {b as b$5}from'./chunk-N2XGJKZG.mjs';import {b as b$7,j as j$1}from'./chunk-MBRNO6IW.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {e}from'./chunk-J4OPD7OL.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,b as b$4}from'./chunk-3WKDIXCM.mjs';import {b as b$2,a as a$1}from'./chunk-ETM4MNG4.mjs';import {b as b$8,i,a as a$a,h as h$1}from'./chunk-SD43KVTU.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import _,{useState,useRef,useCallback,useMemo,useEffect,createElement}from'react';import {MoreIcon}from'@baseline-ui/icons/24';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var _e=0,S="UNSUPPORTED_IN_MENU";function ye(e){return useMemo(()=>_.Children.toArray(e).map(t=>{let o=t,i=`item${++_e}`,r=h(o,b$7),a=ge(o),s,d;if(r){let f=h(r,j$1);a$5(f),s=ge(f),d=h(r,a$b).props.children;}else a?s=a:s=o;let{onPress:g,label:p,"aria-label":c,iconStart:u,isDisabled:T,icon:R}=s.props,m=p||c||S;a$5(typeof m=="string","ActionGroup children must have a string label");let b=`${i}-${m}`;return createElement(a$8,{...{key:b,onPress:g,textValue:m,"aria-label":c,icon:u||R,dialogContent:d,isDisabled:T},key:b},o)}),[e])}function h(e,t){if(t)for(let o of _.Children.toArray(e)){if(!_.isValidElement(o))continue;let i=o;if(i.type===t)return i;if(i.props.children){let r=h(i.props.children,t);if(r)return r}}}function ge(e){return h(e,b$6)||h(e,a$6)}var ke=new Set(["text","search","password","tel","url"]);function P({props:e,ref:t}){let{toolbarProps:o}=a$9(e,t),{direction:i$1}=b$5(),r=i$1==="rtl";return {toolbarProps:{...o,onKeyDownCapture:a=>{let s=a.target,d=a.key,g=()=>{let p=t.current;if(!p)return;let c=i(a$a(p));if(!c||!h$1(p,c)||c.dataset.buiAvoidFocus!=="true")return;let u=He(p),T=u.indexOf(c);if(T===-1)return;let R=Oe({key:d,orientation:e.orientation??"horizontal",isRTL:r});if(!R)return;let m=T+R;for(;m>=0&&m<u.length;){let b=u[m];if(b.dataset.buiAvoidFocus!=="true"&&!b.matches('[disabled], [aria-disabled="true"]')){b.focus();return}m+=R;}};if(Ve(s)&&ke.has(s.type)){let p=s.selectionStart===0,c=s.selectionEnd===s.value.length;(p&&(r&&a.key==="ArrowRight"||!r&&a.key==="ArrowLeft")||c&&(r&&a.key==="ArrowLeft"||!r&&a.key==="ArrowRight"))&&(o.onKeyDownCapture?.(a),g());return}o.onKeyDownCapture?.(a),g();}}}}function Oe({key:e,orientation:t,isRTL:o}){return t==="vertical"?e==="ArrowUp"?-1:e==="ArrowDown"?1:null:e==="ArrowLeft"?o?1:-1:e==="ArrowRight"?o?-1:1:null}var Be='button, [role="button"], input, [tabindex]';function He(e){let t=[],o=i=>{t.push(...i.querySelectorAll(Be));for(let r of i.querySelectorAll("*"))r.shadowRoot&&o(r.shadowRoot);};return o(e),t}function Ve(e){return e.tagName.toLowerCase()==="input"}var ve="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6m3 _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6lv",Re={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var O=_.forwardRef(({className:e$2,style:t,children:o,collapsibleMenuProps:i,"data-block-id":r,"data-block-class":a$7,renderSpacer:s,onKeyDown:d,isSingleTabStop:g=true,moreLabel:p,"aria-controls":c$1,...u},T)=>{let{formatMessage:R}=b(),[m,b$4]=useState(),H=ye(o),f=b$1({...u,children:H}),y=a(T),L=useRef(null),[{visibleItems:V,isMeasuring:U},W]=b$2({visibleItems:f.collection.size,isMeasuring:false}),x=useCallback(()=>{let n=l=>{if(L.current&&y.current){let v=[...L.current.children],z=y.current.getBoundingClientRect().width,xe=l<f.collection.size,D=0,F=0;if(xe){let C=v.pop();C&&(D+=he(C,false,true));}for(let[C,ze]of v.entries())if(D+=he(ze,C===0,C===v.length-1),Math.round(D)<=Math.round(z))F++;else break;return F}return l};W(function*(){yield {visibleItems:f.collection.size,isMeasuring:true};let l=n(f.collection.size),v=l<f.collection.size&&l>0;yield {visibleItems:l,isMeasuring:v},v&&(yield {visibleItems:n(l),isMeasuring:false});});},[W,y,f.collection.size]),Ae=useMemo(()=>({get current(){return y.current?.parentElement}}),[y]);e({ref:Ae,onResize:x}),a$1(x,[f.collection,x]);let{toolbarProps:Ie}=P({props:{...u,isSingleTabStop:g},ref:y}),j$1=[...f.collection],Ne=j$1.slice(0,V),M=j$1.slice(V).filter(n=>n.textValue!==S),Pe=M.length>0;useEffect(()=>{b$4(void 0);},[M.length]),useEffect(()=>{u.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[u.orientation]);let{keyboardProps:Le}=j({onKeyDown:d});return jsxs(a$2,{children:[jsx("div",{...c(Ie,Le),...c$1?{"aria-controls":c$1}:{},className:e$2,"data-block-id":r,"data-block-class":a$7,"data-collapse":true,style:{...t,flexBasis:U?"100%":void 0},ref:y,children:jsxs("div",{ref:L,className:ve,children:[Ne.map(n=>n.rendered),Pe?jsxs(Fragment,{children:[!U&&s?jsx(a$3,{flexGrow:1}):null,jsx(a$4,{placement:"bottom end",renderTrigger:({buttonProps:n,ref:l})=>jsx(a$6,{...n,size:"md",icon:MoreIcon,"aria-label":p??R(Je.more),variant:"toolbar",ref:l,tooltip:true,"data-testid":"toolbar-overflow-button"}),...i,disabledKeys:M.filter(n=>n.props?.isDisabled).map(n=>n.key),items:M.map(n=>{let l=n.textValue||n["aria-label"];return a$5(l,"ActionItem must have a label"),{id:n.key,label:l,icon:n.props.icon}}),onAction:n=>{let l=f.collection.getItem(n);a$5(l,"Item not found");let{onPress:v,dialogContent:z}=l.props;v?.(),b$4(z);}})]}):null]})}),jsx(b$3,{isOpen:!!m,onOpenChange:n=>{n||b$4(void 0);},children:jsx(e$1,{enableDrawer:"auto",style:{zIndex:1e5},children:m?_.cloneElement(m,{inheritDrawer:true}):null})})]})});O.displayName="CollapsibleToolbar";function he(e,t,o){let r=b$8(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:Ee(r.marginLeft))+(o?0:Ee(r.marginRight))}function Ee(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var Je=c$1({more:{id:"bui.toolbar.more",defaultMessage:"More"}});var B=_.forwardRef(({className:e,style:t,isSingleTabStop:o=true,"data-block-id":i,"data-block-class":r,"aria-controls":a,onKeyDown:s,...d},g)=>{let p=_.useRef(null),{toolbarProps:c$1}=P({props:{...d,isSingleTabStop:o},ref:p}),{keyboardProps:u}=j({onKeyDown:s});return jsx("div",{...c(c$1,u),...a?{"aria-controls":a}:{},className:a$7(Re[d.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":i,"data-block-class":r,ref:b$4(g,p),children:d.children})});B.displayName="WrappedToolbar";var Me=_.forwardRef((e,t)=>{let o=e.isCollapsible?O:B;return jsx(o,{...e,ref:t})});Me.displayName="Toolbar";export{Me as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import a,{useState,useRef,useEffect,useReducer,useCallback}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var g=typeof document<"u"||parseInt(a.version,10)>=19?a.useInsertionEffect??a.useLayoutEffect:()=>{};function A(n,i,l){let[r,s]=useState(n||i),o=useRef(r),d=useRef(n!==void 0),t=n!==void 0;useEffect(()=>{let e=d.current;e!==t&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${t?"controlled":"uncontrolled"}.`),d.current=t;},[t]);let c=t?n:r;g(()=>{o.current=c;});let[,T]=useReducer(()=>({}),{}),S=useCallback((e,...C)=>{let u=typeof e=="function"?e(o.current):e;Object.is(o.current,u)||(o.current=u,s(u),T(),l?.(u,...C));},[l]);return [c,S]}export{A as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-DF2D7NE6.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {useMemo}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-ETM4MNG4.mjs';import O,{useEffect}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function R({ref:e,onIntersect:t,isDisabled:r,threshold:n,rootMargin:o,root:c}){let s=O.useRef(t);a(()=>{s.current=t;}),useEffect(()=>{let i=e.current;if(r||!i)return;let u=new IntersectionObserver(([b])=>{s.current(b);},{root:c?.current,rootMargin:o,threshold:n});return u.observe(i),()=>{u.disconnect();}},[e,r,c,o,n]);}export{R as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-2JGVUCP5.mjs';import {a as a$6}from'./chunk-E3FP4B25.mjs';import {a as a$1}from'./chunk-7SKQUEHP.mjs';import {b}from'./chunk-K5RYVERS.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$4}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {CheckmarkIcon}from'@baseline-ui/icons/20';import h from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var R="_1yep5z6jb _1yep5z6jc _1yep5z6jd",x=a({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),z=a({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6ey _1yep5z6lq _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z611h"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61o6"],[{isSelected:true,isDisabled:true},"_1yep5z61o6"],[{isSelected:false,isDisabled:true},"_1yep5z61o4"]]}),C=a({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var N=h.forwardRef(({className:P,count:V,style:D,size:t="md",icon:H,"data-block-id":I,"data-block-class":O,...r},T)=>{let l={isRequired:false},j=H||(t==="md"?CheckmarkIcon:CheckmarkIcon$1);!r["aria-label"]&&!r["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let s=h.useRef(null),d=a$1({...r,...l}),{inputProps:F,isPressed:w,isDisabled:a,isReadOnly:i,isSelected:c$1}=a$2({...r,...l},d,s),{focusProps:M,isFocused:q,isFocusVisible:n}=a$3(),{hoverProps:A,isHovered:b$1}=a$4({}),B=a$5({"data-block-id":I,"data-block-class":O,"data-focused":q,"data-focus-visible":n,"data-disabled":a,"data-hovered":b$1,"data-pressed":w,"data-selected":c$1});return jsxs("label",{ref:T,style:D,className:a$7(R,"BaselineUI-Reaction",P),...B,children:[jsx(b,{children:jsx("input",{...c(F,M),ref:s})}),jsxs("div",{...A,className:x({isSelected:c$1,isFocusVisible:n,isHovered:b$1,isReadOnly:i,isDisabled:a}),children:[jsx("div",{className:C({isDisabled:a,isReadOnly:i}),children:jsx(j,{size:t==="md"?20:16})}),jsx("div",{className:z({isSelected:d.isSelected,isDisabled:a,isReadOnly:i,size:t}),children:jsx(a$6,{value:V})})]})]})});N.displayName="Reaction";export{N as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b
|
|
1
|
+
import {b}from'./chunk-OQPYPKZV.mjs';import {j,e,c,h}from'./chunk-AYQN3OH2.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {a}from'./chunk-B3EZOXNU.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$3}from'./chunk-SVIYLH7R.mjs';import {j as j$1}from'./chunk-SD43KVTU.mjs';import {createContext,forwardRef}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {b as b$1}from'./chunk-WWSGOGLA.mjs';import {b}from'./chunk-RCBUNCHV.mjs'
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var M=createContext({}),E=a=>{let{onHoverStart:e,onHoverChange:t,onHoverEnd:o,...r}=a;return r},
|
|
10
|
+
var M=createContext({}),E=a=>{let{onHoverStart:e,onHoverChange:t,onHoverEnd:o,...r}=a;return r},H=j(function(e$1,t){[e$1,t]=e(e$1,t,M);let{hoverProps:o,isHovered:r}=a({...e$1,isDisabled:e$1.disabled}),{isFocused:n,isFocusVisible:i,focusProps:d}=a$1({isTextInput:true,autoFocus:e$1.autoFocus}),l=!!e$1["aria-invalid"]&&e$1["aria-invalid"]!=="false",u=c({...e$1,values:{isHovered:r,isFocused:n,isFocusVisible:i,isDisabled:e$1.disabled||false,isInvalid:l},defaultClassName:"react-aria-Input"});return jsx(h.input,{...c$1(E(e$1),d,o),...u,ref:t,"data-focused":n||void 0,"data-disabled":e$1.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":l||void 0})});var D=forwardRef(function(e,t){let{onSelect:o,acceptedFileTypes:r,allowsMultiple:n,defaultCamera:i,children:d,acceptDirectory:l,...u}=e,s=a$2(t),y=a$3(u,{global:true});return jsxs(Fragment,{children:[jsx(b,{onPress:()=>{s.current?.value&&(s.current.value=""),s.current?.click();},children:d}),jsx(H,{...y,className:"",type:"file",ref:s,onClick:p=>p.stopPropagation(),style:{display:"none"},accept:r?.toString(),onChange:p=>o?.(j$1(p).files),capture:i,multiple:n,webkitdirectory:l?"":void 0})]})});export{D as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-4P247R4V.mjs';import {i as i$1,c as c$1}from'./chunk-KUDCYGII.mjs';import {d,c,l,k as k$1}from'./chunk-PPHSLODC.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {h as h$1,i,a as a$1,j,b}from'./chunk-SD43KVTU.mjs';import $,{useRef,useContext,useMemo,useEffect}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 K=$.createContext(null),O="react-aria-focus-scope-restore",m=null;function he(e){let{children:t,contain:n,restoreFocus:r,autoFocus:s,ownerDocument:o}=e,f=useRef(null),l=useRef(null),i$1=useRef([]),{parentNode:a$2}=useContext(K)||{},c=useMemo(()=>new C({scopeRef:i$1}),[i$1]);a(()=>{let d=a$2||E.root;if(E.getTreeNode(d.scopeRef)&&m&&!k(m,d.scopeRef)){let p=E.getTreeNode(m);p&&(d=p);}d.addChild(c),E.addNode(c);},[c,a$2]),a(()=>{let d=E.getTreeNode(i$1);d&&(d.contain=!!n);},[n]),a(()=>{let d=f.current?.nextSibling,p=[],L=A=>A.stopPropagation();for(;d&&d!==l.current;)p.push(d),d.addEventListener(O,L),d=d.nextSibling;return i$1.current=p,()=>{for(let A of p)A.removeEventListener(O,L);}},[t]),ue(i$1,r,n),oe(i$1,n),ae(i$1,r,n,o),le(i$1,s),useEffect(()=>{let d=i(a$1(i$1.current?i$1.current[0]:void 0)),p=null;if(h(d,i$1.current)){for(let L of E.traverse())L.scopeRef&&h(d,L.scopeRef.current)&&(p=L);p===E.getTreeNode(i$1)&&(m=p.scopeRef);}},[i$1]),a(()=>()=>{let d=E.getTreeNode(i$1)?.parent?.scopeRef??null;(i$1===m||k(i$1,m))&&(!d||E.getTreeNode(d))&&(m=d),E.removeTreeNode(i$1);},[i$1]);let u=useMemo(()=>te(i$1),[]),b=useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return jsxs(K.Provider,{value:b,children:[jsx("span",{"data-focus-scope-start":true,hidden:true,ref:f}),t,jsx("span",{"data-focus-scope-end":true,hidden:true,ref:l})]})}function ge(){return useContext(K)?.focusManager}function te(e){return {focusNext(t={}){let n=e.current,{from:r,tabbable:s,wrap:o,accept:f}=t,l=r||i(a$1(n[0]??void 0)),i$1=n[0].previousElementSibling,a=R(n),c=v(a,{tabbable:s,accept:f},n);c.currentNode=h(l,n)?l:i$1;let u=c.nextNode();return !u&&o&&(c.currentNode=i$1,u=c.nextNode()),u&&N(u,true),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:s,wrap:o,accept:f}=t,l=r||i(a$1(n[0]??void 0)),i$1=n[n.length-1].nextElementSibling,a=R(n),c=v(a,{tabbable:s,accept:f},n);c.currentNode=h(l,n)?l:i$1;let u=c.previousNode();return !u&&o&&(c.currentNode=i$1,u=c.previousNode()),u&&N(u,true),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:s}=t,o=R(n),f=v(o,{tabbable:r,accept:s},n);f.currentNode=n[0].previousElementSibling;let l=f.nextNode();return l&&N(l,true),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:s}=t,o=R(n),f=v(o,{tabbable:r,accept:s},n);f.currentNode=n[n.length-1].nextElementSibling;let l=f.previousNode();return l&&N(l,true),l}}}function R(e){return e[0].parentElement}function x(e){let t=E.getTreeNode(m);for(;t&&t.scopeRef!==e;){if(t.contain)return false;t=t.parent;}return true}function ne(e){if(!e.form)return Array.from(a$1(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);let t=e.form.elements.namedItem(e.name),n=b(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function re(e){if(e.checked)return true;let t=ne(e);return t.length>0&&!t.some(n=>n.checked)}function oe(e,t){let n=useRef(void 0),r=useRef(void 0);a(()=>{let s=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let o=a$1(s?s[0]:void 0),f=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!x(e)||a.isComposing)return;let c=i(o),u=e.current;if(!u||!h(c,u))return;let b$1=R(u),d=v(b$1,{tabbable:true},u);if(!c)return;d.currentNode=c;let p=a.shiftKey?d.previousNode():d.nextNode();p||(d.currentNode=a.shiftKey?u[u.length-1].nextElementSibling:u[0].previousElementSibling,p=a.shiftKey?d.previousNode():d.nextNode()),a.preventDefault(),p&&(N(p,true),p instanceof b(p).HTMLInputElement&&p.select());},l$1=a=>{(!m||k(m,e))&&h(j(a),e.current)?(m=e,n.current=j(a)):x(e)&&!w(j(a),e)?n.current?N(n.current):m&&m.current&&P(m.current):x(e)&&(n.current=j(a));},i$1=a=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=c$1(),u=(c==="virtual"||c===null)&&l()&&k$1(),b=i(o);if(!u&&b&&x(e)&&!w(b,e)){m=e;let d=j(a);d&&d.isConnected?(n.current=d,N(n.current)):m.current&&P(m.current);}});};return o.addEventListener("keydown",f,false),o.addEventListener("focusin",l$1,false),s?.forEach(a=>a.addEventListener("focusin",l$1,false)),s?.forEach(a=>a.addEventListener("focusout",i$1,false)),()=>{o.removeEventListener("keydown",f,false),o.removeEventListener("focusin",l$1,false),s?.forEach(a=>a.removeEventListener("focusin",l$1,false)),s?.forEach(a=>a.removeEventListener("focusout",i$1,false));}},[e,t]),a(()=>()=>{r.current&&cancelAnimationFrame(r.current);},[r]);}function Z(e){return w(e)}function h(e,t){return !e||!t?false:t.some(n=>h$1(n,e))}function w(e,t=null){if(e instanceof b(e).Element&&e.closest("[data-react-aria-top-layer]"))return true;for(let{scopeRef:n}of E.traverse(E.getTreeNode(t)))if(n&&h(e,n.current))return true;return false}function we(e){return w(e,m)}function k(e,t){let n=E.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return true;n=n.parent;}return false}function N(e,t=false){if(e!=null&&!t)try{i$1(e);}catch{}else if(e!=null)try{e.focus();}catch{}}function ee(e,t=true){let n=e[0].previousElementSibling,r=R(e),s=v(r,{tabbable:t},e);s.currentNode=n;let o=s.nextNode();return t&&!o&&(r=R(e),s=v(r,{tabbable:false},e),s.currentNode=n,o=s.nextNode()),o}function P(e,t=true){N(ee(e,t));}function le(e,t){let n=$.useRef(t);useEffect(()=>{if(n.current){m=e;let r=a$1(e.current?e.current[0]:void 0);!h(i(r),m.current)&&e.current&&P(e.current);}n.current=false;},[e]);}function ue(e,t,n){a(()=>{if(t||n)return;let r=e.current,s=a$1(r?r[0]:void 0),o=f=>{let l=j(f);h(l,e.current)?m=e:Z(l)||(m=null);};return s.addEventListener("focusin",o,false),r?.forEach(f=>f.addEventListener("focusin",o,false)),()=>{s.removeEventListener("focusin",o,false),r?.forEach(f=>f.removeEventListener("focusin",o,false));}},[e,t,n]);}function X(e){let t=E.getTreeNode(m);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return false;t=t.parent;}return t?.scopeRef===e}function ae(e,t,n,r){let s=useRef(typeof document<"u"?i(r??a$1(e.current?e.current[0]:void 0)):null);a(()=>{let o=e.current,f=a$1(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!m||k(m,e))&&h(i(f),e.current)&&(m=e);};return f.addEventListener("focusin",l,false),o?.forEach(i=>i.addEventListener("focusin",l,false)),()=>{f.removeEventListener("focusin",l,false),o?.forEach(i=>i.removeEventListener("focusin",l,false));}},[e,n]),a(()=>{let o=a$1(e.current?e.current[0]:void 0);if(!t)return;let f=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!x(e)||l.isComposing)return;let i$1=i(o);if(!i$1||!w(i$1,e)||!X(e))return;let a=E.getTreeNode(e);if(!a)return;let c=a.nodeToRestore,u=v(o.body,{tabbable:true});u.currentNode=i$1;let b=l.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,a.nodeToRestore=void 0),(!b||!w(b,e))&&c){u.currentNode=c;do b=l.shiftKey?u.previousNode():u.nextNode();while(w(b,e));l.preventDefault(),l.stopPropagation(),b?N(b,true):Z(c)?N(c,true):i$1.blur();}};return n||o.addEventListener("keydown",f,true),()=>{n||o.removeEventListener("keydown",f,true);}},[e,t,n]),a(()=>{let o=a$1(e.current?e.current[0]:void 0);if(!t)return;let f=E.getTreeNode(e);if(f)return f.nodeToRestore=s.current??void 0,()=>{let l=E.getTreeNode(e);if(!l)return;let i$1=l.nodeToRestore,a=i(o);if(t&&i$1&&(a&&w(a,e)||a===o.body&&X(e))){let c=E.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let u=c.getTreeNode(e);for(;u;){if(u.nodeToRestore&&u.nodeToRestore.isConnected){B(u.nodeToRestore);return}u=u.parent;}for(u=c.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&E.getTreeNode(u.scopeRef)){let b=ee(u.scopeRef.current,true);if(b){B(b);return}}u=u.parent;}}});}}},[e,t]);}function B(e){e.dispatchEvent(new CustomEvent(O,{bubbles:true,cancelable:true}))&&N(e);}function v(e,t,n){let r=t?.tabbable?d:c,s=e?.nodeType===Node.ELEMENT_NODE?e:null,o=a$1(s),f=a$2(o,e||o,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return h$1(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!re(l)||f.currentNode.tagName==="INPUT"&&f.currentNode.type==="radio"&&f.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:r(l)&&(!n||h(l,n))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(f.currentNode=t.from),f}function Se(e,t={}){return {focusNext(n={}){let r=e.current;if(!r)return null;let{from:s,tabbable:o=t.tabbable,wrap:f=t.wrap,accept:l=t.accept}=n,i$1=s||i(a$1(r)),a=v(r,{tabbable:o,accept:l});h$1(r,i$1)&&(a.currentNode=i$1);let c=a.nextNode();return !c&&f&&(a.currentNode=r,c=a.nextNode()),c&&N(c,true),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:s,tabbable:o=t.tabbable,wrap:f=t.wrap,accept:l=t.accept}=n,i$1=s||i(a$1(r)),a=v(r,{tabbable:o,accept:l});if(h$1(r,i$1))a.currentNode=i$1;else {let u=H(a);return u&&N(u,true),u??null}let c=a.previousNode();if(!c&&f){a.currentNode=r;let u=H(a);if(!u)return null;c=u;}return c&&N(c,true),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:s=t.tabbable,accept:o=t.accept}=n,l=v(r,{tabbable:s,accept:o}).nextNode();return l&&N(l,true),l},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:s=t.tabbable,accept:o=t.accept}=n,f=v(r,{tabbable:s,accept:o}),l=H(f);return l&&N(l,true),l??null}}}function H(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var W=class e{root;fastMap=new Map;constructor(){this.root=new C({scopeRef:null}),this.fastMap.set(null,this.root);}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let s=this.fastMap.get(n??null);if(!s)return;let o=new C({scopeRef:t});s.addChild(o),o.parent=s,this.fastMap.set(t,o),r&&(o.nodeToRestore=r);}addNode(t){this.fastMap.set(t.scopeRef,t);}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&h(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let s=n.children;r&&(r.removeChild(n),s.size>0&&s.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef);}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n);}clone(){let t=new e;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}},C=class{scopeRef;nodeToRestore;parent;children=new Set;contain=false;constructor(t){this.scopeRef=t.scopeRef;}addChild(t){this.children.add(t),t.parent=this;}removeChild(t){this.children.delete(t),t.parent=void 0;}},E=new W;export{he as a,ge as b,we as c,v as d,Se as e};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {h,j}from'./chunk-PPHSLODC.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {b,a,h as h$1}from'./chunk-SD43KVTU.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 L(e,r){if(!e)return false;let o=b(e).getComputedStyle(e),l=/(auto|scroll)/.test(o.overflow+o.overflowX+o.overflowY);return l&&r&&(l=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),l}function fe(e,r){let t=e;for(L(t,r)&&(t=t.parentElement);t&&!L(t,r);)t=t.parentElement;let o=a(e);return t||o.scrollingElement||o.documentElement}function v(e,r){let t=[],o=a(e),l=o.scrollingElement||o.documentElement;for(;e&&(L(e,r)&&t.push(e),e!==l);)e=e.parentElement;return t}var ne=0,X=new WeakMap;function we(e,r){let[t,o]=useState();return a$1(()=>{if(!e)return;let l=r?.current?.getRootNode()||document,d=l?.ownerDocument||document,a=X.get(l);a||(a=new Map,X.set(l,a));let n=a.get(e);if(n)o(n.element.id);else {let c=`react-aria-description-${ne++}`;o(c);let s=d.createElement("div");s.id=c,s.style.display="none",s.textContent=e,"body"in l?l.body.appendChild(s):l.appendChild(s),n={refCount:0,element:s},a.set(e,n);}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),a.delete(e));}},[e]),{"aria-describedby":e?t:void 0}}function y(e,r,t={}){if(e===r)return;let o=r.getBoundingClientRect();re(e,r,o,t);}function re(e,r,t,o={}){let{block:l="nearest",inline:d="nearest"}=o,a$1=e.scrollTop,n=e.scrollLeft,c=a(r),s=c.defaultView||window,m=e.getBoundingClientRect(),u=s.getComputedStyle(r),i=s.getComputedStyle(e),f=c.scrollingElement||c.documentElement,M=e===f,Y=e===f?0:m.top,K=e===f?e.clientHeight:m.bottom,_=e===f?0:m.left,$=e===f?e.clientWidth:m.right,q=parseFloat(u.scrollMarginTop)||0,z=parseFloat(u.scrollMarginBottom)||0,G=parseFloat(u.scrollMarginLeft)||0,J=parseFloat(u.scrollMarginRight)||0,Q=parseFloat(i.scrollPaddingTop)||0,U=parseFloat(i.scrollPaddingBottom)||0,Z=parseFloat(i.scrollPaddingLeft)||0,V=parseFloat(i.scrollPaddingRight)||0,H=parseFloat(i.borderTopWidth)||0,D=parseFloat(i.borderBottomWidth)||0,I=parseFloat(i.borderLeftWidth)||0,O=parseFloat(i.borderRightWidth)||0,E=t.top-q,S=t.bottom+z,T=t.left-G,P=t.right+J,ee=e===f?0:I+O,te=e===f?0:H+D,F=e===f?0:e.offsetWidth-e.clientWidth-ee,oe=e===f?0:e.offsetHeight-e.clientHeight-te,R=Y+(M?0:H)+Q,B=K-(M?0:D)-U-oe,g=_+(M?0:I)+Z,h$1=$-(M?0:O)-V;h()&&j()||i.direction==="ltr"?h$1-=F:i.direction==="rtl"&&(g+=F);let W=E<R||S>B,C=T<g||P>h$1;if(W&&l==="start")a$1+=E-R;else if(W&&l==="center")a$1+=(E+S)/2-(R+B)/2;else if(W&&l==="end")a$1+=S-B;else if(W&&l==="nearest"){let b=E-R,w=S-B;a$1+=Math.abs(b)<=Math.abs(w)?b:w;}if(C&&d==="start")n+=T-g;else if(C&&d==="center")n+=(T+P)/2-(g+h$1)/2;else if(C&&d==="end")n+=P-h$1;else if(C&&d==="nearest"){let b=T-g,w=P-h$1;n+=Math.abs(b)<=Math.abs(w)?b:w;}if(process.env.NODE_ENV==="test"){e.scrollLeft=n,e.scrollTop=a$1;return}e.scrollTo({left:n,top:a$1});}function Pe(e,r={}){let{containingElement:t}=r,o=a(e),l=o.defaultView||window;if(e&&h$1(o.body,e)){let d=o.scrollingElement||o.documentElement;if(l.getComputedStyle(d).overflow==="hidden"){let{left:n,top:c}=e.getBoundingClientRect(),s=v(e,true);for(let i of s)y(i,e);let{left:m,top:u}=e.getBoundingClientRect();if(Math.abs(n-m)>1||Math.abs(c-u)>1){s=t?v(t,true):[];for(let i of s)y(i,t,{block:"center",inline:"center"});for(let i of v(e,true))y(i,e);}}else {let{left:n,top:c}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:m}=e.getBoundingClientRect();(Math.abs(n-s)>1||Math.abs(c-m)>1)&&(t?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}));}}}export{L as a,fe as b,v as c,we as d,y as e,Pe as f};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-4S4GGUSH.mjs';import {j,i}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,v as v$1}from'./chunk-PPHSLODC.mjs';import {b as b$1,c as c$1}from'./chunk-3WKDIXCM.mjs';import {b}from'./chunk-SD43KVTU.mjs';import n,{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
|
+
var h=n.createContext(null);function v(r){let t=useContext(h)||{};v$1(t,r);let{ref:l,...s}=t;return s}var W=n.forwardRef(function(t,l){let{children:s,...a$1}=t,c=a(l),o={...a$1,ref:c};return jsx(h.Provider,{value:o,children:s})});function w(r,t){let{focusProps:l}=a$1(r),{keyboardProps:s}=j(r),a=c$1(l,s),c=v(t),o=r.isDisabled?{}:c,e=useRef(r.autoFocus);useEffect(()=>{e.current&&t.current&&i(t.current),e.current=false;},[t]);let b=r.excludeFromTabOrder?-1:0;return r.isDisabled&&(b=void 0),{focusableProps:c$1({...a,tabIndex:b},o)}}var $=forwardRef(({children:r,...t},l)=>{l=a(l);let{focusableProps:s}=w(t,l),a$1=n.Children.only(r);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let o=l.current;if(!o||!(o instanceof b(o).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!c(o,{skipVisibilityCheck:true})){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(o.localName!=="button"&&o.localName!=="input"&&o.localName!=="select"&&o.localName!=="textarea"&&o.localName!=="a"&&o.localName!=="area"&&o.localName!=="summary"&&o.localName!=="img"&&o.localName!=="svg"){let e=o.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.");}},[l,t.isDisabled]);let c$2=parseInt(n.version,10)<19?a$1.ref:a$1.props.ref;return n.cloneElement(a$1,{...c$1(s,a$1.props),ref:b$1(c$2,l)})});export{h as a,W as b,w as c,$ as d};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-4P247R4V.mjs';import {b,a,g,d,h}from'./chunk-SD43KVTU.mjs';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var C=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function H(i){return i.dataset.liveAnnouncer==="true"||i.dataset.reactAriaTopLayer!==void 0}var E=new WeakMap,n=[];function _(i,l){let s=b(i?.[0]),O=l instanceof s.Element?{root:l}:l,b$1=O?.root??a(i?.[0]).body,g$1=O?.shouldUseInert&&C,d$1=new Set(i),a$2=new Set,y=e=>g$1&&e instanceof s.HTMLElement?e.inert:e.getAttribute("aria-hidden")==="true",L=(e,t)=>{g$1&&e instanceof s.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof s.HTMLElement&&(e.inert=false));},h$1=new Set;if(g()){let e=b$1.getRootNode();for(let t of i){let r=t.getRootNode();for(;d(r)&&r!==e;)h$1.add(r),r=r.host.getRootNode();}}let v=e=>{for(let o of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))d$1.add(o);let t=o=>{if(a$2.has(o)||d$1.has(o)||o.parentElement&&a$2.has(o.parentElement)&&o.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let A of d$1)if(h(o,A))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=a$1(a(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),f=t(e);if(f===NodeFilter.FILTER_ACCEPT&&T(e),f!==NodeFilter.FILTER_REJECT){let o=r.nextNode();for(;o!=null;)T(o),o=r.nextNode();}},T=e=>{let t=E.get(e)??0;y(e)&&t===0||(t===0&&L(e,true),a$2.add(e),E.set(e,t+1));};n.length&&n[n.length-1].disconnect(),v(b$1);let c=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){if(t.target.isConnected&&![...d$1,...a$2].some(r=>h(r,t.target)))for(let r of t.addedNodes)(r instanceof s.HTMLElement||r instanceof s.SVGElement)&&H(r)?d$1.add(r):r instanceof s.Element&&v(r);if(g()){for(let r of h$1)if(!r.isConnected){c.disconnect();break}}}});c.observe(b$1,{childList:true,subtree:true});let m=new Map;if(g())for(let e of h$1){let t=new MutationObserver(r=>{for(let f of r)if(f.type==="childList"){if(f.target.isConnected&&![...d$1,...a$2].some(o=>h(o,f.target)))for(let o of f.addedNodes)(o instanceof s.HTMLElement||o instanceof s.SVGElement)&&H(o)?d$1.add(o):o instanceof s.Element&&v(o);if(g()){for(let o of h$1)if(!o.isConnected){c.disconnect();break}}}});t.observe(e,{childList:true,subtree:true}),m.set(t,e);}let w={visibleNodes:d$1,hiddenNodes:a$2,observe(){c.observe(b$1,{childList:true,subtree:true});for(let[e,t]of m)e.observe(t,{childList:true,subtree:true});},disconnect(){c.disconnect();for(let e of m.keys())e.disconnect();}};return n.push(w),()=>{if(c.disconnect(),g())for(let e of m.keys())e.disconnect();for(let e of a$2){let t=E.get(e);t!=null&&(t===1?(L(e,false),E.delete(e)):E.set(e,t-1));}w===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(w),1);}}function x(i){let l=n[n.length-1];if(l&&!l.visibleNodes.has(i))return l.visibleNodes.add(i),()=>{l.visibleNodes.delete(i);}}export{_ as a,x as b};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$6}from'./chunk-AM5FU4Y7.mjs';import {a as a$e}from'./chunk-EUVUJQ2Z.mjs';import {k,j as j$1,g,c,i,f as f$1,h as h$1,e as e$1,d as d$1,b as b$5,a as a$h}from'./chunk-AD3MLX6G.mjs';import {b as b$3,a as a$g,q as q$1,n,c as c$4}from'./chunk-K7VOXFSK.mjs';import {p}from'./chunk-YQHHE5AT.mjs';import {a as a$b}from'./chunk-AMW7LGCF.mjs';import {a as a$9}from'./chunk-NYCG264A.mjs';import {b as b$6}from'./chunk-6G7EUNZW.mjs';import {b as b$7}from'./chunk-PD5ZXNGT.mjs';import {b as b$8}from'./chunk-DF2D7NE6.mjs';import {a as a$3}from'./chunk-2MS356Q7.mjs';import {a as a$k}from'./chunk-ZZIQF6XD.mjs';import {a as a$d}from'./chunk-WTAJLO6E.mjs';import {a as a$c,b as b$2}from'./chunk-SZTFMBPY.mjs';import {d,h,e,f,g as g$1}from'./chunk-PG3WDHSK.mjs';import {a as a$f}from'./chunk-JZXLV6JU.mjs';import {a as a$m}from'./chunk-CY6W27WG.mjs';import {b,c as c$2}from'./chunk-DZDZZRWE.mjs';import {a as a$t}from'./chunk-6QQEK5I6.mjs';import {d as d$3}from'./chunk-W6QO7FPZ.mjs';import {b as b$4}from'./chunk-TUJLNJPJ.mjs';import {a as a$7}from'./chunk-O7XK2WIX.mjs';import {a as a$j}from'./chunk-3BG6K2G2.mjs';import {a as a$a}from'./chunk-OYSOPCTA.mjs';import {a as a$l}from'./chunk-USMC34OO.mjs';import {a as a$r}from'./chunk-K5RYVERS.mjs';import {a as a$i}from'./chunk-VDUFLHKK.mjs';import {a as a$p}from'./chunk-22VRCVTH.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$q}from'./chunk-FPM5UJRF.mjs';import {a as a$s}from'./chunk-4QBHQCCK.mjs';import {a}from'./chunk-SGZWUG3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {j as j$2,d as d$2}from'./chunk-KUDCYGII.mjs';import {a as a$1}from'./chunk-B3EZOXNU.mjs';import {c as c$1,b as b$1,a as a$o}from'./chunk-3WKDIXCM.mjs';import {a as a$n}from'./chunk-SVIYLH7R.mjs';import {c as c$3}from'./chunk-ETM4MNG4.mjs';import {h as h$2,j as j$3}from'./chunk-SD43KVTU.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import q,{useCallback,useContext,useEffect,useMemo,useRef,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {CaretDownIcon}from'@baseline-ui/icons/8';import {sprinkles}from'@baseline-ui/tokens';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var $=new WeakMap;function de(t,e,a){let{keyboardDelegate:i,isDisabled:f,isRequired:y,name:d,form:S,validationBehavior:n="aria"}=t,x=a$l({usage:"search",sensitivity:"base"}),l=useMemo(()=>i||new b$6(e.collection,e.disabledKeys,a,x),[i,e.collection,e.disabledKeys,x,a]),{menuTriggerProps:m,menuProps:s}=c$4({isDisabled:f,type:"listbox"},e,a),{keyboardProps:c}=j$2({shortcuts:{ArrowLeft:()=>{if(e.selectionManager.selectionMode==="multiple")return false;let u=e.selectedKey!=null?l.getKeyAbove?.(e.selectedKey):l.getFirstKey?.();u!=null&&e.setSelectedKey(u);},ArrowRight:()=>{if(e.selectionManager.selectionMode==="multiple")return false;let u=e.selectedKey!=null?l.getKeyBelow?.(e.selectedKey):l.getFirstKey?.();u!=null&&e.setSelectedKey(u);}},allowRepeats:true,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp}),{typeSelectProps:o}=b$7({keyboardDelegate:l,selectionManager:e.selectionManager,onTypeSelect(u){e.setSelectedKey(u);}}),{isInvalid:g,validationErrors:b,validationDetails:T}=e.displayValidation,{labelProps:K,fieldProps:r,descriptionProps:M,errorMessageProps:p}=a$m({...t,labelElementType:"span",isInvalid:g,errorMessage:t.errorMessage||b,ref:a});e.selectionManager.selectionMode==="multiple"&&(o={});let O=a$n(t,{labelable:true}),P=c$1(o,m,r),C=c$3();return $.set(e,{isDisabled:f,isRequired:y,name:d,form:S,validationBehavior:n}),{labelProps:{...K,onClick:()=>{t.isDisabled||(a.current?.focus(),d$2("keyboard"));}},triggerProps:c$1(O,{...P,isDisabled:f,onKeyDown:a$o(P.onKeyDown,c.onKeyDown),onKeyUp:c.onKeyUp,"aria-labelledby":[C,P["aria-labelledby"],P["aria-label"]&&!P["aria-labelledby"]?P.id:null].filter(Boolean).join(" "),onFocus(u){e.isFocused||(t.onFocus&&t.onFocus(u),t.onFocusChange&&t.onFocusChange(true),e.setFocused(true));},onBlur(u){e.isOpen||(t.onBlur&&t.onBlur(u),t.onFocusChange&&t.onFocusChange(false),e.setFocused(false));}}),valueProps:{id:C},menuProps:{...s,onAction:void 0,autoFocus:e.focusStrategy||true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,disallowEmptySelection:true,linkBehavior:"selection",onBlur:u=>{h$2(u.currentTarget,u.relatedTarget)||(t.onBlur&&t.onBlur(u),t.onFocusChange&&t.onFocusChange(false),e.setFocused(false));},"aria-labelledby":[r["aria-labelledby"],P["aria-label"]&&!r["aria-labelledby"]?P.id:null].filter(Boolean).join(" ")},descriptionProps:M,errorMessageProps:p,isInvalid:g,validationErrors:b,validationDetails:T,hiddenSelectProps:{isDisabled:f,name:d,label:t.label,state:e,triggerRef:a,form:S}}}function Mt(t,e,a){let i=$.get(e)||{},{autoComplete:f,name:y=i.name,form:d=i.form,isDisabled:S=i.isDisabled}=t,{validationBehavior:n,isRequired:x}=i,{visuallyHiddenProps:l}=a$r({style:{position:"fixed",top:0,left:0}});a$s(t.selectRef,e.defaultValue,e.setValue),a$t({validationBehavior:n,focus:()=>a.current?.focus()},e,t.selectRef);let m=e.setValue,s=useCallback(c=>{let o=j$3(c);o.multiple?m(Array.from(o.selectedOptions,g=>g.value)):m(c.currentTarget.value);},[m]);return {containerProps:{...l,"aria-hidden":true,"data-react-aria-prevent-focus":true,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:f,disabled:S,multiple:e.selectionManager.selectionMode==="multiple",required:n==="native"&&x,name:y,form:d,value:e.value??"",onChange:s,onInput:s}}}function ue(t){let{state:e,triggerRef:a,label:i,name:f,form:y,isDisabled:d}=t,S=useRef(null),n=useRef(null),{containerProps:x,selectProps:l}=Mt({...t,selectRef:e.collection.size<=300?S:n},e,a),m=Array.isArray(e.value)?e.value:[e.value];if(e.collection.size<=300)return jsx("div",{...x,"data-testid":"hidden-select-container",children:jsxs("label",{children:[i,jsxs("select",{...l,ref:S,children:[jsx("option",{value:"",label:"\xA0",children:"\xA0"}),[...e.collection.getKeys()].map(s=>{let c=e.collection.getItem(s);if(c&&c.type==="item")return jsx("option",{value:c.key,children:c.textValue},c.key)}),e.collection.size===0&&f&&m.map((s,c)=>jsx("option",{value:s??""},c))]})]})});if(f){let s=$.get(e)||{},{validationBehavior:c}=s;m.length===0&&(m=[null]);let o=m.map((g,b)=>{let T={type:"hidden",autoComplete:l.autoComplete,name:f,form:y,disabled:d,value:g??""};return c==="native"?jsx("input",{...T,ref:b===0?n:null,style:{display:"none"},type:"text",required:b===0?l.required:false,onChange:()=>{}},b):jsx("input",{...T,ref:b===0?n:null},b)});return jsx(Fragment,{children:o})}return null}function pe(t){let{selectionMode:e="single",shouldCloseOnSelect:a=e==="single"}=t,i=a$p(t),[f,y]=useState(null),d=useMemo(()=>t.defaultValue!==void 0?t.defaultValue:e==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,e]),S=useMemo(()=>t.value!==void 0?t.value:e==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,e]),[n,x]=a$q(S,d,t.onChange),l=e==="single"&&Array.isArray(n)?n[0]:n,m=r=>{if(e==="single"){let M=Array.isArray(r)?r[0]??null:r;x(M),M!==l&&t.onSelectionChange?.(M);}else {let M=[];Array.isArray(r)?M=r:r!=null&&(M=[r]),x(M);}},s=b$8({...t,selectionMode:e,disallowEmptySelection:e==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>At(l),[l]),onSelectionChange:r=>{if(r!=="all"){if(e==="single"){let M=r.values().next().value??null;m(M);}else m([...r]);a&&i.close(),g.commitValidation();}}}),c=s.selectionManager.firstSelectedKey,o=useMemo(()=>[...s.selectionManager.selectedKeys].map(r=>s.collection.getItem(r)).filter(r=>r!=null),[s.selectionManager.selectedKeys,s.collection]),g=d$3({...t,value:Array.isArray(l)&&l.length===0?null:l}),[b,T]=useState(false),[K]=useState(l);return {...g,...s,...i,value:l,defaultValue:d??K,setValue:m,selectedKey:c,setSelectedKey:m,selectedItem:o[0]??null,selectedItems:o,defaultSelectedKey:t.defaultSelectedKey??(t.selectionMode==="single"?K:null),focusStrategy:f,open(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),i.open());},toggle(r=null){(s.collection.size!==0||t.allowsEmptyCollection)&&(y(r),i.toggle());},isFocused:b,setFocused:T}}function At(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}var j=q.forwardRef(({variant:t,isOpen:e,validationState:a$9="valid",valueProps:i$1,className:f,style:y,value:d$1,"data-block-id":S,"data-block-class":n,fallbackValue:x,selectionMode:l="single",onRemove:m,maxCount:s=2,moreLabel:c$2,...o},g$1)=>{let{formatMessage:b$2}=b(),T=d$1?.[0]??null,K=T?.label??x,r=T?.icon??null,M=q.useRef(null),p=!!(l==="multiple"&&d$1&&d$1?.length>0),{buttonProps:O,isPressed:P}=a({...o,elementType:"div",isDisabled:o.isDisabled||o.isReadOnly},M),{hoverProps:C,isHovered:u}=a$1({isDisabled:o.isDisabled}),{focusProps:B,isFocused:N,isFocusVisible:A}=a$2(),F=a$3({isReadOnly:o.isReadOnly,validationState:a$9});o.isReadOnly&&(O.disabled=false);let V=a$4({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":N,"data-focus-visible":A,"data-hovered":u,"data-pressed":P,"data-open":e,"data-block-id":S,"data-block-class":n}),w=o["aria-labelledby"],ae=useCallback(()=>{a$5(Array.isArray(d$1),"value must be an array");let U=d$1.slice(0,s),H=d$1.slice(s),W=[...U,...H.length>0?[{label:(typeof c$2=="function"?c$2({count:H.length}):c$2)??b$2(Lt.more,{count:H.length}),id:"remaining-value"}]:[]];return jsx(a$6,{items:W,onRemove:o.isReadOnly?void 0:X=>{X.has("remaining-value")?m?.(new Set(H.map(E=>E.id))):m?.(X);},"aria-labelledby":w,className:k,isDisabled:o.isDisabled})},[d$1,s,b$2,c$2,w,o.isDisabled,m,o.isReadOnly]),z=l==="multiple";return jsxs("div",{...c$1(z?Object.fromEntries(Object.entries(O).filter(([U])=>U.startsWith("on"))):c$1(O,B),C,V),ref:z?g$1:b$1(g$1,M),className:a$8(i({isFocused:A,isDisabled:!!o.isDisabled,isOpen:e,isHovered:u,variant:t,isReadOnly:!!o.isReadOnly,areTagsVisible:p}),h({variant:t,isHovered:u,isFocused:A,validationState:a$9,isDisabled:!!o.isDisabled,isReadOnly:o.isReadOnly}),f,"BaselineUI-Select-Button"),"data-testid":"select-button",style:y,children:[jsxs(a$7,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[l==="multiple"&&d$1&&d$1.length>0?ae():jsxs("span",{className:k,children:[r?jsx(r,{size:24}):null,jsx("span",{...i$1,children:K})]}),F?jsx("span",{"aria-hidden":true,className:a$8(d({validationState:a$9,isReadOnly:!!o.isReadOnly}),j$1),children:jsx(F,{size:16})}):null]}),jsx("div",{...z?{...c$1(O,B),ref:M}:{},className:g,children:jsx(CaretDownIcon,{size:8,className:c({isOpen:e})})})]})});j.displayName="SelectButton";var Lt=c$2({more:{id:"bui.select.more",defaultMessage:"+{count} more"}});var Pt=q.createContext({state:null,popoverAnchorRef:null}),Se=q.forwardRef(({className:t,style:e$2,labelPosition:a="top",variant:i="primary","data-block-id":f$2,"data-block-class":y,onTriggerPress:d,placement:S="bottom start",triggerClassName:n,triggerStyle:x,state:l,optionStyle:m,optionClassName:s,showSectionHeader:c,hideSelectAll:o,hideClear:g,clearLabel:b$1,searchLabel:T,selectAllLabel:K,moreLabel:r,renderTrigger:M=({buttonProps:P,selectedValue:C,valueProps:u,isOpen:B,ref:N,selectionMode:A,onRemove:F,maxCount:V})=>jsx(j,{...P,className:n,style:x,isOpen:B,isReadOnly:p$1.isReadOnly,ref:N,variant:i,validationState:p$1.validationState,valueProps:u,value:C,fallbackValue:p$1.placeholder,selectionMode:A,onRemove:F,maxCount:V,moreLabel:r}),...p$1},O)=>{let{popoverAnchorRef:P}=useContext(Pt),C=q.useRef(null),{formatMessage:u}=b(),B=T??u(ye.search),N=useContext(a$9),{isVirtualized:A}=useContext(p),F=a$a(p$1.portalContainer),{labelProps:V,triggerProps:w,valueProps:ae,menuProps:z,descriptionProps:U,errorMessageProps:H}=de({...a$b(p$1),validationState:p$1.validationState==="error"?"invalid":"valid"},l,C),W=c$3(),X=a$c(p$1)==="warningMessage",E=b$2({...p$1,descriptionProps:U,errorMessageProps:H,warningMessageProps:{id:W},labelPosition:a}),ht=l.selectedItems?.map(_=>_.value)??null;return jsxs(Fragment,{children:[jsxs("div",{style:e$2,className:a$8(g$1({labelPosition:a}),"BaselineUI-Select",t),"data-block-id":f$2,"data-block-class":y,ref:O,children:[p$1.label||E?jsxs("div",{className:f({labelPosition:a,hasMessage:!!E}),children:[p$1.label?jsx("div",{...V,className:a$8(e,"BaselineUI-Select-Label"),children:p$1.label}):null,a==="start"&&E]}):null,jsx(ue,{state:l,triggerRef:C,isDisabled:p$1.isDisabled,label:p$1.label,name:p$1.name}),M({buttonProps:c$1({onPressStart:d,"aria-labelledby":V.id},w,X?{"aria-describedby":[w["aria-describedby"],W].filter(Boolean).join(" ")}:null),selectedValue:ht,valueProps:ae,isOpen:l.isOpen,ref:C,selectionMode:p$1.selectionMode??"single",onRemove:_=>{l.selectionManager.setSelectedKeys(new Set([...l.selectionManager.selectedKeys].filter(ne=>!_.has(ne))));},maxCount:p$1.maxCount??2}),a==="top"&&E]}),l?jsx(b$3.Provider,{value:l,children:jsx(a$d,{placement:S,state:l,portalContainer:F,offset:2,triggerRef:P||C,style:e$2,className:"BaselineUI-Select-Popover",...p$1,children:jsxs(a$7,{display:"flex",flex:1,flexDirection:"column",className:f$1,children:[N?jsxs(Fragment,{children:[jsx(a$e,{size:"sm","aria-label":B,placeholder:B,className:a$8(h$1,"BaselineUI-Select-SearchInput"),autoFocus:true}),jsx(a$f,{})]}):null,jsx(a$g.Provider,{value:z,children:jsx(q$1,{label:p$1.label,escapeKeyBehavior:"none",className:e$1({isVirtualized:A}),optionStyle:m,optionClassName:s,showSectionHeader:c})}),l.selectionManager.selectionMode==="multiple"&&(!o||!g)&&jsxs(a$7,{display:"flex",flexDirection:"row",className:d$1,children:[!o&&jsx(b$4,{variant:"ghost",size:"md",label:K??u(ye.selectAll),"data-testid":"select-all-button",onPress:()=>{if(l.selectionManager.isSelectAll)return;let ne=[...l.collection.getKeys()].filter(ge=>!l.selectionManager.disabledKeys.has(ge)&&l.selectionManager.canSelectItem(ge));l.selectionManager.setSelectedKeys(new Set(ne));},className:b$5}),!o&&!g&&jsx(a$f,{orientation:"vertical"}),!g&&jsx(b$4,{variant:"ghost",label:b$1??u(ye.clear),size:"md","data-testid":"select-clear-button",onPress:()=>{l.selectionManager.isEmpty||l.selectionManager.clearSelection();},className:b$5})]})]})})}):null]})});Se.displayName="SelectCore";var Tt=q.forwardRef(({collection:t,...e},a)=>{let i=pe({...e,collection:t,validationState:e.validationState==="error"?"invalid":"valid",children:void 0});return jsx(Se,{...e,ref:a,state:i})});Tt.displayName="SelectStandalone";var le=q.forwardRef(({optionStyle:t,optionClassName:e,showSectionHeader:a,...i},f)=>{let{state:y}=useContext(Pt);useEffect(()=>{a$5(y||i.items,"Select: A `state` that can be passed via context or `items` are required.");},[i.items,y]);let d=useMemo(()=>({renderOption:(S,n$1)=>jsx(n,{...n$1,item:S,selectionIcon:n$1.selectionMode==="multiple"?"checkbox":"checkmark"}),optionStyle:t,optionClassName:e,showSectionHeader:a}),[t,e,a]);return y?jsx(Se,{...i,optionStyle:t,optionClassName:e,showSectionHeader:a,ref:f,state:y}):jsx(a$h,{items:i.items,listBoxProps:d,children:S=>jsx(Tt,{collection:S,...i,ref:f})})});le.displayName="Select";var ye=c$2({selectAll:{id:"bui.select.selectAll",defaultMessage:"Select All"},clear:{id:"bui.select.clear",defaultMessage:"Clear"},search:{id:"bui.select.search",defaultMessage:"Search"}});var Rt=q.forwardRef(({className:t,style:e,variant:a,"data-block-id":i,"data-block-class":f,icon:y,tooltip:d=true,iconTooltip:S=true,...n},x)=>{let l=q.useRef(null),{tooltipProps:m}=a$i({label:n["aria-label"],tooltip:d}),s=useCallback(({buttonProps:c,selectedValue:o,valueProps:g,isOpen:b,ref:T})=>jsx(a$j,{...m,children:jsx(j,{...c,className:n.triggerClassName,style:n.triggerStyle,isOpen:b,isReadOnly:n.isReadOnly,ref:T,variant:a,validationState:n.validationState,value:o,fallbackValue:n.placeholder,valueProps:g,moreLabel:n.moreLabel})}),[n,m,a]);return jsxs(a$7,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$8("BaselineUI-IconSelect",t),"data-block-id":i,"data-block-class":f,style:e,ref:b$1(x,l),children:[y?jsx(a$k,{icon:y,label:n["aria-label"],tooltip:S,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsx(le,{...n,renderTrigger:s})]})});Rt.displayName="IconSelect";export{pe as a,Pt as b,le as c,Rt as d};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {b as b$1}from'./chunk-4EAXDHSV.mjs';import {a as a$1}from'./chunk-2UUKKXBD.mjs';import {a}from'./chunk-KX7WG3L4.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {MotionConfig,MotionGlobalConfig}from'motion/react';export{MotionGlobalConfig as f}from'motion/react';import {lightTheme,themes,themeVars}from'@baseline-ui/tokens';import {assignInlineVars}from'@vanilla-extract/dynamic';import J,{createContext,useMemo,useEffect,useState}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 v(r=typeof window>"u"?void 0:window){let[p,s]=useState("light"),[a,i]=useState(false),[u,n]=useState(false),[f,m]=useState(false);return useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-color-scheme: dark)"),t=o=>{s(o.matches?"dark":"light");};return s(e.matches?"dark":"light"),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-contrast: more)"),t=o=>{i(o.matches);};return i(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-reduced-motion: reduce)"),t=o=>{n(o.matches);};return n(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-reduced-transparency: reduce)"),t=o=>{m(o.matches);};return m(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),{colorScheme:p,highContrast:a,reducedMotion:u,transparency:f}}var k=createContext({theme:lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var A="var(--hj25q10)";var h={LIGHT:themes.base.light,DARK:themes.base.dark},R=J.forwardRef(({theme:r="system",children:p,setTheme:s,onThemeChange:a$3,className:i,style:u,UNSAFE_domProps:n,"data-block-id":f,"data-block-class":m,reducedMotion:e="user",shouldHandleVirtualKeyboard:t=true,minTouchTargetSize:o=24},U)=>{let{direction:P}=b(),{colorScheme:g,reducedMotion:V,highContrast:D,transparency:G}=v(),{name:K,...l}=useMemo(()=>{switch(r){case "system":return g==="light"?h.LIGHT:h.DARK;case "light":return h.LIGHT;case "dark":return h.DARK;default:return r}},[g,r]),N=a(),z={"data-theme":K,"data-block-id":f,"data-block-class":m,"data-reduced-motion":e==="user"?V:e==="always","data-high-contrast":D,"data-transparency":G,"data-device":N},B=useMemo(()=>({theme:l,setTheme:y=>{s?.(y),a$3?.(y);},shouldHandleVirtualKeyboard:t}),[l,s,a$3,t]);return useEffect(()=>{s&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[s]),jsx(k.Provider,{value:B,children:jsx(MotionConfig,{reducedMotion:e,children:jsx("div",{...c(n,z),className:a$2(b$1,"BaselineUI-ThemeProvider",i),style:{...assignInlineVars(themeVars,l),...assignInlineVars({[a$1]:P==="rtl"?"-1":"1",[A]:`${o}px`}),...u},dir:P,ref:U,children:p})})})});R.displayName="ThemeProvider";function ve(){MotionGlobalConfig.skipAnimations=true;}function Te(){MotionGlobalConfig.skipAnimations=false;}export{v as a,k as b,R as c,ve as d,Te as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-7SQRBY7N.mjs';import {b as b$1}from'./chunk-GMALMQWI.mjs';import {a as a$2}from'./chunk-SGZWUG3H.mjs';import {b}from'./chunk-4S4GGUSH.mjs';import {a}from'./chunk-XPISSX5R.mjs';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$8}from'./chunk-E3FP4B25.mjs';import {a as a$1,b as b$2}from'./chunk-5ZC64ZG7.mjs';import {a as a$6}from'./chunk-JZXLV6JU.mjs';import {b as b$1,c as c$1}from'./chunk-DZDZZRWE.mjs';import {a as a$5}from'./chunk-VGFPT43C.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3}from'@baseline-ui/icons/12';import {CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2}from'@baseline-ui/icons/16';import {CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1}from'@baseline-ui/icons/20';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import w from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var T=a({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),j="_1nsi9h1f _1yep5z6me _1yep5z6m6 _1yep5z6ey",k=a({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6g9 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z610e",sm:"_1nsi9h12 _1yep5z610h",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6zq _1yep5z6190 _1yep5z618y _1yep5z613y",pinned:"_1yep5z618m"}},defaultVariants:{},compoundVariants:[]}),U=a({defaultClassName:"_1nsi9h1g _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]});var ue={style:"decimal"},ce={xs:[CaretLeftIcon$3,CaretRightIcon$3],sm:[CaretLeftIcon$2,CaretRightIcon$2],md:[CaretLeftIcon$1,CaretRightIcon$1],lg:[CaretLeftIcon,CaretRightIcon]},E=w.forwardRef(({className:D,style:H,minValue:S=1,defaultValue:q=1,incrementAriaLabel:K,decrementAriaLabel:O,"aria-label":G,size:a="md",variant:t="floating",hideActions:_,isDisabled:o,pageXofYLabel:m,...s},X)=>{let{locale:Y}=b(),r=b$1(),h={...s,formatOptions:ue,minValue:S,incrementAriaLabel:K||r.formatMessage(l.nextPage),decrementAriaLabel:O||r.formatMessage(l.prevPage),defaultValue:q,"aria-label":G||r.formatMessage(l.goToPage)},u=w.useRef(null),i=a$1({...h,locale:Y}),{inputProps:c$1,decrementButtonProps:z,incrementButtonProps:b$3,groupProps:$}=b$2({...h,onKeyUp:C=>{C.key==="Enter"&&u.current?.blur(),s.onKeyUp?.(C);},isDisabled:o},i,u),{hoverProps:J,isHovered:Q}=a$2({}),{focusProps:W,isFocused:P,isFocusVisible:Z}=a$3(),v=t==="floating",[ee,ae]=ce[a],te=a$4({"data-focus-visible":Z,"data-focused":P,"data-hovered":Q,"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"]});return jsxs("div",{...c($,J,te),className:a$7(k({size:a,variant:t}),"BaselineUI-Pagination",D),style:H,ref:X,children:[_?null:jsxs(Fragment,{children:[jsx(a$5,{icon:ee,...z,elementType:"div",size:a,style:{height:"100%",...v&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:o||z.isDisabled}),t==="floating"&&jsx(a$6,{orientation:"vertical"})]}),jsxs("div",{role:"group",className:T({isFocused:P,variant:t,size:a}),"aria-label":(typeof m=="function"?m({page:i.numberValue,totalPages:i.maxValue}):m)??r.formatMessage(l.pageXofY,{arg0:c$1.value,arg1:i.maxValue}),children:[jsx("input",{...c(c$1,W),ref:u,className:a$7("BaselineUI-Pagination-Input",j),style:{width:`${c$1.value?.toString().length||1}ch`}}),jsxs("span",{className:U({isDisabled:o}),children:["/ ",jsx(a$8,{value:i.maxValue})]})]}),_?null:jsxs(Fragment,{children:[t==="floating"&&jsx(a$6,{orientation:"vertical"}),jsx(a$5,{icon:ae,...b$3,elementType:"div",size:a,style:{height:"100%",...v&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:o||b$3.isDisabled})]})]})});E.displayName="Pagination";var l=c$1({nextPage:{defaultMessage:"Next Page",id:"bui.pagination.nextPage"},prevPage:{defaultMessage:"Previous Page",id:"bui.pagination.prevPage"},goToPage:{defaultMessage:"Go to Page",id:"bui.pagination.goToPage"},pageXofY:{defaultMessage:"Page {arg0} of {arg1}",id:"bui.pagination.pageXofY"}});export{E as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-ZFGTKLCU.mjs';import {i}from'./chunk-5VNC6UYE.mjs';import {c,b as b$2}from'./chunk-ONEE6UCM.mjs';import {c as c$1,b as b$3,a as a$3}from'./chunk-DSV6CCI6.mjs';import {d,f}from'./chunk-24R46WQW.mjs';import {c as c$2}from'./chunk-L3SNGDBH.mjs';import {b as b$1}from'./chunk-DF2D7NE6.mjs';import {a as a$4}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {c as c$3}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import b from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-O7IU5NHN.mjs';import {a as a$3}from'./chunk-3DWFAHR2.mjs';import {a}from'./chunk-O7XK2WIX.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import p from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var f="_1vghdeb0";var x=new Set(["\u2318","\u2325","\u21E7","\u21A9","\u2423","\u2303"]),l="+";function K(t){let n=t.endsWith(l),e=(n?t.slice(0,-1):t).split(l).map(r=>r.trim()).filter(Boolean);return n?[...e,l]:e}function R(t,n){if(n){let e=[],r="";for(let o of t)x.has(o)?(r&&e.push(r),e.push(o),r=""):r+=o;return r&&e.push(r),e.length===1&&e[0].includes("+")?K(e[0]):e}return K(t)}var m=p.forwardRef(({children:t,className:n,style:e},r)=>jsx(a,{elementType:"kbd",ref:r,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"xs",borderWidth:1,borderStyle:"solid",borderColor:"border.medium",backgroundColor:"background.primary.strong",color:"text.primary",typography:"label.md.medium",paddingX:"md",paddingY:"sm",className:a$1(f,"BaselineUI-Kbd-Key",n),style:e,children:t}));m.displayName="KbdKey";var g=p.forwardRef(({children:t,shouldUseSymbol:n=false,className:e,style:r},o)=>{let u=a$2(t,n),i=R(u,n);return i.length===1?jsx(m,{ref:o,className:a$1("BaselineUI-Kbd",e),style:r,children:i[0]}):jsx(a,{elementType:"span",display:"inline-flex",alignItems:"center",gap:"md",ref:o,className:a$1("BaselineUI-Kbd",e),style:r,children:i.map((b,h)=>jsxs(p.Fragment,{children:[jsx(m,{children:b}),h<i.length-1?jsx(a$3,{type:"label",size:"sm",children:l}):null]},b))})});g.displayName="Kbd";export{g as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {AvatarIcon as AvatarIcon$1}from'@baseline-ui/icons/16';import {AvatarIcon}from'@baseline-ui/icons/24';import C from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|