@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
package/dist/chunk-KEVERVHK.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var p=new Set(["id"]),c=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),u=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),P=new Set(["dir","lang","hidden","inert","translate"]),r=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),M=/^(data-.*)$/;function O(n,a={}){let{labelable:i,isLink:l,global:e,events:s=e,propNames:b}=a,t={};for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(p.has(o)||i&&c.has(o)||l&&u.has(o)||e&&P.has(o)||s&&(r.has(o)||o.endsWith("Capture")&&r.has(o.slice(0,-7)))||b?.has(o)||M.test(o))&&(t[o]=n[o]);return t}export{O as a};
|
package/dist/chunk-KKJ6XIU3.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4,d as d$1,c as c$3,b as b$4}from'./chunk-I3YGB2BE.mjs';import {b as b$3}from'./chunk-WL27JGVG.mjs';import {d,g,b}from'./chunk-B7PSE5KC.mjs';import {b as b$2,a as a$7,e as e$1}from'./chunk-6IRWW75G.mjs';import {a as a$6}from'./chunk-D3IZ4HBL.mjs';import {a as a$5}from'./chunk-RXSYDMT6.mjs';import {a}from'./chunk-X3AXUU3H.mjs';import {c as c$2,e}from'./chunk-Y4DRSGEJ.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {g as g$1,k,t}from'./chunk-MRJFGHFW.mjs';import {c,b as b$1}from'./chunk-TZ4MVY4E.mjs';import {c as c$1,a as a$2}from'./chunk-JDLUGVXG.mjs';import {f,a as a$1,g as g$2,h}from'./chunk-AUOQSTS5.mjs';import {createContext,useRef,useState,useEffect,useCallback,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var ie={"ar-AE":{collectionLabel:"\u0645\u0642\u062A\u0631\u062D\u0627\u062A"},"bg-BG":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"cs-CZ":{collectionLabel:"N\xE1vrhy"},"da-DK":{collectionLabel:"Forslag"},"de-DE":{collectionLabel:"Empfehlungen"},"el-GR":{collectionLabel:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2"},"en-US":{collectionLabel:"Suggestions"},"es-ES":{collectionLabel:"Sugerencias"},"et-EE":{collectionLabel:"Soovitused"},"fi-FI":{collectionLabel:"Ehdotukset"},"fr-FR":{collectionLabel:"Suggestions"},"he-IL":{collectionLabel:"\u05D4\u05E6\u05E2\u05D5\u05EA"},"hr-HR":{collectionLabel:"Prijedlozi"},"hu-HU":{collectionLabel:"Javaslatok"},"it-IT":{collectionLabel:"Suggerimenti"},"ja-JP":{collectionLabel:"\u5019\u88DC"},"ko-KR":{collectionLabel:"\uC81C\uC548"},"lt-LT":{collectionLabel:"Pasi\u016Blymai"},"lv-LV":{collectionLabel:"Ieteikumi"},"nb-NO":{collectionLabel:"Forslag"},"nl-NL":{collectionLabel:"Suggesties"},"pl-PL":{collectionLabel:"Sugestie"},"pt-BR":{collectionLabel:"Sugest\xF5es"},"pt-PT":{collectionLabel:"Sugest\xF5es"},"ro-RO":{collectionLabel:"Sugestii"},"ru-RU":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"sk-SK":{collectionLabel:"N\xE1vrhy"},"sl-SI":{collectionLabel:"Predlogi"},"sr-SP":{collectionLabel:"Predlozi"},"sv-SE":{collectionLabel:"F\xF6rslag"},"tr-TR":{collectionLabel:"\xD6neriler"},"uk-UA":{collectionLabel:"\u041F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457"},"zh-CN":{collectionLabel:"\u5EFA\u8BAE"},"zh-TW":{collectionLabel:"\u5EFA\u8B70"}};function O(i,n){let{inputRef:l,collectionRef:o,filter:c$4,disableAutoFocusFirst:m=false,disableVirtualFocus:E=false}=i,b=c$1(),a=useRef(void 0),s=useRef(false),r=useRef(null),se=c$2()==="virtual"&&(g$1()||k()),[P,pe]=useState(!se&&!E),[D,K]=useState(false),[de,M]=useState(false);useEffect(()=>()=>clearTimeout(a.current),[]);let H=t(e$1=>{!e$1.isTrusted&&P&&l.current&&f(a$1(l.current))!==l.current&&e()!=="touch"&&l.current.focus();let t=g$2(e$1);e$1.isTrusted||!t||r.current===t.id||(clearTimeout(a.current),t!==o.current?s.current?(r.current=t.id,a.current=setTimeout(()=>{n.setFocusedNodeId(t.id);},500)):(r.current=t.id,n.setFocusedNodeId(t.id)):r.current&&!h(r.current,a$1(o.current))&&(r.current=null,n.setFocusedNodeId(null)),s.current=false);}),[F,fe]=useState(null),U=useCallback(e=>{fe(e),e!=null?(e.getAttribute("tabindex")!=null&&pe(false),K(true)):K(false);},[]);a$2(()=>(F?.addEventListener("focusin",H),()=>{F?.removeEventListener("focusin",H);}),[F]);let me=a$3(useMemo(()=>b$1(o,U),[o,U])),be=useCallback(()=>{if(!o.current){M(true);return}s.current=true,o.current?.dispatchEvent(new CustomEvent(b$2,{cancelable:true,bubbles:true,detail:{focusStrategy:"first"}}));},[o]),x=useCallback(e=>{M(false),a$4(f(a$1(l.current))),r.current=null,n.setFocusedNodeId(null);let t=new CustomEvent(a$7,{cancelable:true,bubbles:true,detail:{clearFocusKey:e}});clearTimeout(a.current),s.current=false,o.current?.dispatchEvent(t);},[o,n]),p=useRef("");a$5(l,"beforeinput",e=>{let{inputType:t}=e;p.current=t;});let ve=e=>{(p.current==="insertText"||p.current==="insertCompositionText"||p.current==="insertFromComposition")&&!m?be():p.current&&(p.current.includes("insert")||p.current.includes("delete")||p.current.includes("history"))&&(x(true),d$1(a$1(l.current))===l.current&&c$3(l.current,null)),n.setInputValue(e);},B=useRef(null),Ee=e=>{if(B.current=g$2(e.nativeEvent),e.nativeEvent.isComposing)return;let t=r.current;switch(t!==null&&a$1(l.current).getElementById(t)==null&&(r.current=null,t=null),e.key){case "a":if(e$1(e))return;break;case "Escape":if(e.isDefaultPrevented())return;break;case " ":return;case "Tab":"continuePropagation"in e&&e.continuePropagation();return;case "Home":case "End":case "PageDown":case "PageUp":case "ArrowUp":case "ArrowDown":case "ArrowRight":case "ArrowLeft":{if((e.key==="Home"||e.key==="End")&&t==null&&e.shiftKey)return;if(e.key==="ArrowRight"||e.key==="ArrowLeft"){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let A=new CustomEvent(b$2,{cancelable:true,bubbles:true});o.current?.dispatchEvent(A);break}}e.isPropagationStopped()||e.stopPropagation();let d=true;if(o.current!==null)if(t==null)d=o.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||false;else {let A=h(t,a$1(o.current));A&&(d=A?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||false);}if(d)switch(e.key){case "ArrowLeft":case "ArrowRight":{x();break}case "Enter":t!=null&&h(t,a$1(l.current))?.dispatchEvent(new PointerEvent("click",e.nativeEvent));break}else e.preventDefault();},S=t(e=>{if(g$2(e)===B.current){e.stopImmediatePropagation();let t=r.current;t==null?o.current?.dispatchEvent(new KeyboardEvent(e.type,e)):h(t,a$1(o.current))?.dispatchEvent(new KeyboardEvent(e.type,e));}});useEffect(()=>{let e=a$1(l.current);return e.addEventListener("keyup",S,true),()=>{e.removeEventListener("keyup",S,true);}},[S]);let Ae=b$3(ie,"@react-aria/autocomplete"),ge=a$6({id:b,"aria-label":Ae.format("collectionLabel")}),Pe=useCallback((e,t)=>c$4?c$4(e,n.inputValue,t):true,[n.inputValue,c$4]),Fe=e=>{if(!e.isTrusted)return;let t=r.current?h(r.current,a$1(l.current)):null;t&&b$4(t,e.relatedTarget);},Te=e=>{if(!e.isTrusted)return;if(r.current?h(r.current,a$1(l.current)):null){let d=g$2(e.nativeEvent);queueMicrotask(()=>{b$4(d,o.current),c$3(o.current,d);});}},Le=e=>{e.button!==0||e.pointerType==="touch"||r.current==null||l.current==null||g$2(e)===l.current&&x();},h$1={value:n.inputValue,onChange:ve},ye={onKeyDown:Ee,"aria-activedescendant":n.focusedNodeId??void 0,onBlur:Fe,onFocus:Te,onPointerDown:Le};return h$1={...h$1,...P&&D&&ye,enterKeyHint:"go","aria-controls":D?b:void 0,"aria-autocomplete":"list",autoCorrect:"off",spellCheck:"false",autoComplete:"off"},{inputProps:h$1,collectionProps:c(ge,{shouldUseVirtualFocus:P,disallowTypeAhead:P,autoFocus:de?"first":false}),collectionRef:me,filter:c$4!=null?Pe:void 0}}function w(i){let{onInputChange:n,inputValue:l,defaultInputValue:o=""}=i,c=s=>{n&&n(s);},[m,E]=useState(null),[b,a$1]=a(l,o,c);return {inputValue:b,setInputValue:a$1,focusedNodeId:m,setFocusedNodeId:E}}var Se=createContext(null),he=createContext(null),Ie=createContext(null),Ve=createContext(null);function Ft(i){let n=d(Se,i.slot);i=c(n,i);let{filter:l,disableAutoFocusFirst:o}=i,c$1=w(i),m=useRef(null),E=useRef(null),{inputProps:b$1,collectionProps:a,collectionRef:s,filter:r}=O({...g(i),filter:l,disableAutoFocusFirst:o,inputRef:m,collectionRef:E},c$1);return jsx(b,{values:[[he,c$1],[Ve,{...b$1,ref:m}],[Ie,{...a,filter:r,ref:s}]],children:i.children})}export{he as a,Ie as b,Ve as c,Ft as d};
|
package/dist/chunk-KLNQ24LT.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-VDSLDZLT.mjs';import {a as a$e}from'./chunk-ZAMDRHQY.mjs';import {a as a$g}from'./chunk-6DU65N7Q.mjs';import {a as a$3,b as b$1}from'./chunk-BJVFZYUV.mjs';import {a as a$2}from'./chunk-5KD2MNNX.mjs';import {a as a$h}from'./chunk-MFNWPTNI.mjs';import {b as b$5}from'./chunk-WN6FAICZ.mjs';import {a as a$d}from'./chunk-O7XK2WIX.mjs';import {a as a$f}from'./chunk-ULCYKB34.mjs';import {a as a$1}from'./chunk-AV4ZP5SY.mjs';import {a as a$i}from'./chunk-KUEDQO7P.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-4ZJMZB5B.mjs';import {b as b$4,j}from'./chunk-2HMLSXNO.mjs';import {a as a$c}from'./chunk-VDUFLHKK.mjs';import {a as a$a}from'./chunk-X3AXUU3H.mjs';import {a as a$8}from'./chunk-RSKKEGJZ.mjs';import {a as a$6}from'./chunk-K6X2BHPP.mjs';import {a as a$b}from'./chunk-BGMVPFYK.mjs';import {a as a$7}from'./chunk-3FYY26ED.mjs';import {a as a$9}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import B from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {sprinkles}from'@baseline-ui/tokens';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var se="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3",pe="_14uvjig3 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k",de="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6jz _1yep5z6k0 _1yep5z6k1",ne=a({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"},hasNumberInput:{false:"_1yep5z6p1 _1yep5z6p2 _1yep5z6p3"}},defaultVariants:{},compoundVariants:[]}),me=a({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6gh _1yep5z6m5 _1yep5z6lq",variantClassNames:{active:{true:"_14uvjigc _1yep5z6136 _1yep5z618x _1yep5z618p"},isDisabled:{true:"_14uvjigd _1yep5z613a"},isReadOnly:{true:"_1yep5z615l _1yep5z615m _1yep5z615n"},isFocusVisible:{true:"_14uvjigf _1yep5z6136 _1yep5z6189"},isHovered:{true:"_14uvjigg _1yep5z6136"}},defaultVariants:{},compoundVariants:[]}),ue="z9nup8a _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv",ye="_14uvjig4 z9nup87 _1yep5z6gd _1yep5z6m3",ce=a({defaultClassName:"_14uvjig5 _1yep5z6gh _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6m4",variantClassNames:{active:{true:"_1yep5z6136"},isFocusVisible:{true:"_1yep5z6136"},isDisabled:{true:"_1yep5z613a"},isHovered:{true:"_1yep5z6136"}},defaultVariants:{},compoundVariants:[]});var N=B.forwardRef(({className:z,style:v,onChange:r,onChangeEnd:p,numberFormatOptions:o,isDisabled:i,step:g,minValue:d,maxValue:h,value:c,"aria-label":l,"aria-labelledby":e,"aria-details":n,"aria-describedby":m,"data-block-id":f,"data-block-class":H,defaultValue:j,isReadOnly:b$1,label:_,id:k,includeNumberInput:u,numberInputClassName:P,numberInputStyle:y},ze)=>{let I=B.useRef(null),F={onChange:r===void 0?void 0:S=>{r(S[0]);},isDisabled:i||b$1,step:g,minValue:d,maxValue:h,onChangeEnd:p===void 0?void 0:S=>{p(S[0]);},value:c===void 0?void 0:[c],defaultValue:j===void 0?void 0:[j],"aria-label":l,"aria-labelledby":e,"aria-details":n,"aria-describedby":m,id:k,label:_},ve=a$1(o),T=a$2({...F,numberFormatter:ve}),{trackProps:ge,groupProps:he,labelProps:O}=a$3(F,T,I),L=jsx(a$4,{variant:"ghost",showStepper:false,className:P,"aria-label":l,"aria-labelledby":O.id,isDisabled:i,isReadOnly:b$1,value:T.getThumbValue(0),formatOptions:o,onChange:S=>{T.setThumbValue(0,S);},style:{width:60,textAlign:"right",flexShrink:0,...y}});return jsxs("div",{...he,style:v,"data-block-id":f,"data-block-class":H,className:a$5(se,"BaselineUI-Slider",z),children:[_?jsxs("div",{className:de,children:[jsx("label",{...O,className:a$5(ne({isDisabled:i,hasNumberInput:!!u}),"BaselineUI-Slider-Label"),children:_}),u?L:null]}):null,jsxs("div",{className:pe,children:[jsx("div",{...ge,className:a$5(ye,"BaselineUI-Slider-Track"),ref:b(I,ze),"data-testid":"track",children:jsx(Se,{state:T,trackRef:I,isDisabled:i,isReadOnly:b$1})}),u&&!_?L:null]})]})});N.displayName="Slider";function Se({state:z,trackRef:v,isDisabled:r,isReadOnly:p}){let o=B.useRef(null),{thumbProps:i,inputProps:g,isDragging:d}=b$1({trackRef:v,inputRef:o},z),{focusProps:h,isFocused:c$1,isFocusVisible:l}=a$6(),{hoverProps:e,isHovered:n}=a$7({isDisabled:r}),{direction:m}=b$2(),f=a$8({"data-disabled":r,"data-readonly":p,"data-hovered":n,"data-focus-visible":l,"data-dragging":d,"data-focused":c$1});return jsxs(Fragment,{children:[jsx("div",{className:a$5(ce({isDisabled:r,isFocusVisible:l,active:d,isHovered:n}),"BaselineUI-Slider-TrackHighlight"),style:{width:m==="rtl"?`calc(100% - ${i.style?.left})`:i.style?.left},"data-testid":"track-highlight"}),jsxs("div",{...c(i,e,f),className:a$5(ue,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsx("div",{className:a$5(me({isDisabled:r,isFocusVisible:l,active:d,isReadOnly:p,isHovered:n}),"BaselineUI-Slider-Thumb")}),jsx(b$3,{children:jsx("input",{ref:o,...c(g,h)})})]})]})}var _e=B.forwardRef(({className:z,style:v,onChange:r,"data-block-id":p,icon:o,formatValue:i=m=>m,tooltip:g=true,iconTooltip:d=true,popoverContentProps:h,isDisabled:c,onTriggerPress:l,...e},n)=>{let m=a$9(n),[f,H]=a$a(e.value,e.defaultValue||0,r),[j$1,b]=B.useState(false),{keyboardProps:_}=a$b({onKeyDown:y=>{(y.key==="Enter"||y.key==="Escape")&&b(false);}}),{tooltipProps:k}=a$c({label:e["aria-label"],tooltip:g}),u=i(f||0),P=k?.isDisabled||e["aria-label"]?`${e["aria-label"]}, ${u}`:u.toString();return jsxs(a$d,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$5("BaselineUI-IconSlider",z),"data-block-id":p,style:v,ref:m,children:[o?jsx(a$e,{icon:o,label:e["aria-label"],tooltip:d,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsxs(b$4,{type:"dialog",isOpen:j$1,onOpenChange:b,children:[jsx(j,{children:jsx(a$f,{...k,children:jsx(b$5,{label:u,variant:"popover","aria-label":P,isDisabled:c,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"},onPressStart:l})})}),jsx(a$g,{placement:"bottom start",...h,children:jsx(a$h,{size:"content","aria-label":P,children:jsx(a$i,{autoFocus:true,children:jsx(a$d,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},..._,children:jsx(N,{...e,onChange:y=>{H(y),r?.(y);},value:f})})})})})]})]})});_e.displayName="IconSlider";export{N as a,_e as b};
|
package/dist/chunk-KPEONVLU.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var y=new Map,d=false;try{d=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero";}catch{}var g=false;try{g=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit";}catch{}var P={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}},u=class{numberFormatter;options;constructor(t,e={}){this.numberFormatter=V(t,e),this.options=e;}format(t){let e="";if(!d&&this.options.signDisplay!=null?e=z(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!g){let{unit:i,unitDisplay:n="short",locale:s}=this.resolvedOptions();if(!i)return e;let a=P[i]?.[n];e+=a[s]||a.default;}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return `${this.format(t)} \u2013 ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),n=this.numberFormatter.formatToParts(e);return [...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...n.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return !d&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!g&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}};function V(r,t={}){let{numberingSystem:e}=t;if(e&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${e}`),t.style==="unit"&&!g){let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!P[s]?.[a])throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"};}let i=r+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(y.has(i))return y.get(i);let n=new Intl.NumberFormat(r,t);return y.set(i,n),n}function z(r,t,e){if(t==="auto")return r.format(e);if(t==="never")return r.format(Math.abs(e));{let i=false;if(t==="always"?i=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):i=e>0),i){let n=r.format(-e),s=r.format(e),a=n.replace(s,"").replace(/\u200e|\u061C/,"");return [...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),n.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return r.format(e)}}var W=new RegExp("^.*\\(.*\\).*$"),_=["latn","arab","hanidec","deva","beng","fullwide"],f=class{locale;options;constructor(t,e={}){this.locale=t,this.options=e;}parse(t){return F(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,e,i){return F(this.locale,this.options,t).isValidPartialNumber(t,e,i)}getNumberingSystem(t){return F(this.locale,this.options,t).options.numberingSystem}},w=new Map;function F(r,t,e){let i=D(r,t);if(!r.includes("-nu-")&&!i.isValidPartialNumber(e)){for(let n of _)if(n!==i.options.numberingSystem){let s=D(r+(r.includes("-u-")?"-nu-":"-u-nu-")+n,t);if(s.isValidPartialNumber(e))return s}}return i}function D(r,t){let e=r+(t?Object.entries(t).sort((n,s)=>n[0]<s[0]?-1:1).join():""),i=w.get(e);return i||(i=new N(r,t),w.set(e,i)),i}var N=class{formatter;options;symbols;locale;constructor(t,e={}){this.locale=t,e.roundingIncrement!==1&&e.roundingIncrement!=null&&(e.maximumFractionDigits==null&&e.minimumFractionDigits==null?(e.maximumFractionDigits=0,e.minimumFractionDigits=0):e.maximumFractionDigits==null?e.maximumFractionDigits=e.minimumFractionDigits:e.minimumFractionDigits==null&&(e.minimumFractionDigits=e.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,e),this.options=this.formatter.resolvedOptions(),this.symbols=L(t,this.formatter,this.options,e),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");}parse(t){let e=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(t);if(!e&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let a=i.indexOf(".");a===-1&&(a=i.length),i=i.replace(".",""),a-2===0?i=`0.${i}`:a-2===-1?i=`0.0${i}`:a-2===-2?i="0.00":i=`${i.slice(0,a-2)}.${i.slice(a-2)}`,s>-1&&(i=`-${i}`);}let n=i?+i:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){let s={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new f(this.locale,s).parse(new u(this.locale,s).format(n))}return this.options.currencySign==="accounting"&&W.test(t)&&(n=-1*n),n}sanitize(t){let e=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(i=>i.unit===t)?this.symbols.noNumeralUnits.find(i=>i.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=l(t,",",this.symbols.decimal),t=l(t,"\u060C",this.symbols.decimal)),this.symbols.group&&e&&(t=l(t,".",this.symbols.group))),this.symbols.group==="\u2019"&&t.includes("'")&&e&&(t=l(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("\u2019")&&e&&(t=l(t,"\u2019",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&e&&(t=l(t," ",this.symbols.group),t=l(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,e=-1/0,i=1/0){let n=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&e<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&i>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?false:(this.symbols.group&&n&&(t=l(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}},I=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),R=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function L(r,t,e,i){let n=new Intl.NumberFormat(r,{...e,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:true}),s=n.formatToParts(-10000.111),a=n.formatToParts(10000.111),b=R.map(o=>n.formatToParts(o)),E=b.map((o,m)=>{let x=o.find(p=>p.type==="unit");return x&&!o.some(p=>p.type==="integer"||p.type==="fraction")?{unit:x.value,value:R[m]}:null}).filter(o=>!!o),$=s.find(o=>o.type==="minusSign")?.value??"-",c=a.find(o=>o.type==="plusSign")?.value;!c&&(i?.signDisplay==="exceptZero"||i?.signDisplay==="always")&&(c="+");let T=new Intl.NumberFormat(r,{...e,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(o=>o.type==="decimal")?.value,j=s.find(o=>o.type==="group")?.value,C=s.filter(o=>!I.has(o.type)).map(o=>O(o.value)),G=b.flatMap(o=>o.filter(m=>!I.has(m.type)).map(m=>O(m.value))),S=[...new Set([...C,...G])].sort((o,m)=>m.length-o.length),M=S.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${S.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),h=[...new Intl.NumberFormat(e.locale,{useGrouping:false}).format(9876543210)].reverse(),U=new Map(h.map((o,m)=>[o,m])),A=new RegExp(`[${h.join("")}]`,"g");return {minusSign:$,plusSign:c,decimal:T,group:j,literals:M,numeral:A,numerals:h,index:o=>String(U.get(o)),noNumeralUnits:E}}function l(r,t,e){return r.replaceAll?r.replaceAll(t,e):r.split(t).join(e)}function O(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}export{u as a,f as b};
|
package/dist/chunk-KUEDQO7P.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-XTH6B5FE.mjs';import {i,c as c$1}from'./chunk-Y4DRSGEJ.mjs';import {c,b,k as k$1,j}from'./chunk-MRJFGHFW.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {e,f,a as a$1,g,b as b$1}from'./chunk-AUOQSTS5.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$1=useRef(null),l=useRef(null),i=useRef([]),{parentNode:a$2}=useContext(K)||{},c=useMemo(()=>new C({scopeRef:i}),[i]);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);d&&(d.contain=!!n);},[n]),a(()=>{let d=f$1.current?.nextSibling,p=[],L=A=>A.stopPropagation();for(;d&&d!==l.current;)p.push(d),d.addEventListener(O,L),d=d.nextSibling;return i.current=p,()=>{for(let A of p)A.removeEventListener(O,L);}},[t]),ue(i,r,n),oe(i,n),ae(i,r,n,o),le(i,s),useEffect(()=>{let d=f(a$1(i.current?i.current[0]:void 0)),p=null;if(h(d,i.current)){for(let L of E.traverse())L.scopeRef&&h(d,L.scopeRef.current)&&(p=L);p===E.getTreeNode(i)&&(m=p.scopeRef);}},[i]),a(()=>()=>{let d=E.getTreeNode(i)?.parent?.scopeRef??null;(i===m||k(i,m))&&(!d||E.getTreeNode(d))&&(m=d),E.removeTreeNode(i);},[i]);let u=useMemo(()=>te(i),[]),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$1}),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$1}=t,l=r||f(a$1(n[0]??void 0)),i=n[0].previousElementSibling,a=R(n),c=v(a,{tabbable:s,accept:f$1},n);c.currentNode=h(l,n)?l:i;let u=c.nextNode();return !u&&o&&(c.currentNode=i,u=c.nextNode()),u&&T(u,true),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:s,wrap:o,accept:f$1}=t,l=r||f(a$1(n[0]??void 0)),i=n[n.length-1].nextElementSibling,a=R(n),c=v(a,{tabbable:s,accept:f$1},n);c.currentNode=h(l,n)?l:i;let u=c.previousNode();return !u&&o&&(c.currentNode=i,u=c.previousNode()),u&&T(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&&T(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&&T(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$1(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$1=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!x(e)||a.isComposing)return;let c=f(o),u=e.current;if(!u||!h(c,u))return;let b=R(u),d=v(b,{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&&(T(p,true),p instanceof b$1(p).HTMLInputElement&&p.select());},l=a=>{(!m||k(m,e))&&h(g(a),e.current)?(m=e,n.current=g(a)):x(e)&&!w(g(a),e)?n.current?n.current.focus():m&&m.current&&P(m.current):x(e)&&(n.current=g(a));},i=a=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=c$1(),u=(c==="virtual"||c===null)&&k$1()&&j(),b=f(o);if(!u&&b&&x(e)&&!w(b,e)){m=e;let d=g(a);d&&d.isConnected?(n.current=d,n.current?.focus()):m.current&&P(m.current);}});};return o.addEventListener("keydown",f$1,false),o.addEventListener("focusin",l,false),s?.forEach(a=>a.addEventListener("focusin",l,false)),s?.forEach(a=>a.addEventListener("focusout",i,false)),()=>{o.removeEventListener("keydown",f$1,false),o.removeEventListener("focusin",l,false),s?.forEach(a=>a.removeEventListener("focusin",l,false)),s?.forEach(a=>a.removeEventListener("focusout",i,false));}},[e,t]),a(()=>()=>{r.current&&cancelAnimationFrame(r.current);},[r]);}function Z(e){return w(e)}function h(e$1,t){return !e$1||!t?false:t.some(n=>e(n,e$1))}function w(e,t=null){if(e instanceof b$1(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 T(e,t=false){if(e!=null&&!t)try{i(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){T(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(f(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=g(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"?f(r??a$1(e.current?e.current[0]:void 0)):null);a(()=>{let o=e.current,f$1=a$1(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!m||k(m,e))&&h(f(f$1),e.current)&&(m=e);};return f$1.addEventListener("focusin",l,false),o?.forEach(i=>i.addEventListener("focusin",l,false)),()=>{f$1.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$1=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!x(e)||l.isComposing)return;let i=f(o);if(!i||!w(i,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;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?T(b,true):Z(c)?T(c,true):i.blur();}};return n||o.addEventListener("keydown",f$1,true),()=>{n||o.removeEventListener("keydown",f$1,true);}},[e,t,n]),a(()=>{let o=a$1(e.current?e.current[0]:void 0);if(!t)return;let f$1=E.getTreeNode(e);if(f$1)return f$1.nodeToRestore=s.current??void 0,()=>{let l=E.getTreeNode(e);if(!l)return;let i=l.nodeToRestore,a=f(o);if(t&&i&&(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);B(b);return}u=u.parent;}}});}}},[e,t]);}function B(e){e.dispatchEvent(new CustomEvent(O,{bubbles:true,cancelable:true}))&&T(e);}function v(e$1,t,n){let r=t?.tabbable?c:b,s=e$1?.nodeType===Node.ELEMENT_NODE?e$1:null,o=a$1(s),f=a$2(o,e$1||o,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return e(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$1,t={}){return {focusNext(n={}){let r=e$1.current;if(!r)return null;let{from:s,tabbable:o=t.tabbable,wrap:f$1=t.wrap,accept:l=t.accept}=n,i=s||f(a$1(r)),a=v(r,{tabbable:o,accept:l});e(r,i)&&(a.currentNode=i);let c=a.nextNode();return !c&&f$1&&(a.currentNode=r,c=a.nextNode()),c&&T(c,true),c},focusPrevious(n=t){let r=e$1.current;if(!r)return null;let{from:s,tabbable:o=t.tabbable,wrap:f$1=t.wrap,accept:l=t.accept}=n,i=s||f(a$1(r)),a=v(r,{tabbable:o,accept:l});if(e(r,i))a.currentNode=i;else {let u=H(a);return u&&T(u,true),u??null}let c=a.previousNode();if(!c&&f$1){a.currentNode=r;let u=H(a);if(!u)return null;c=u;}return c&&T(c,true),c??null},focusFirst(n=t){let r=e$1.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&&T(l,true),l},focusLast(n=t){let r=e$1.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&&T(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};
|
package/dist/chunk-KY3JKXSX.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$9}from'./chunk-UQJGSVXP.mjs';import {a as a$6}from'./chunk-RFTDIXEG.mjs';import {d,c as c$1}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-AV4ZP5SY.mjs';import {a as a$2,b as b$2}from'./chunk-KPEONVLU.mjs';import {a as a$7}from'./chunk-6Z6HOW6T.mjs';import {b as b$3}from'./chunk-WL27JGVG.mjs';import {a as a$3}from'./chunk-JJG67M2S.mjs';import {a,b as b$1}from'./chunk-2VY4FAOY.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {a as a$b}from'./chunk-545KDVGI.mjs';import {a as a$4,b as b$4}from'./chunk-YB3KW7JC.mjs';import {e,k,g}from'./chunk-MRJFGHFW.mjs';import {a as a$a,c as c$2}from'./chunk-TZ4MVY4E.mjs';import {a as a$8}from'./chunk-KEVERVHK.mjs';import {c,a as a$c}from'./chunk-JDLUGVXG.mjs';import {g as g$1,f,a as a$d}from'./chunk-AUOQSTS5.mjs';import {useCallback,useState,useMemo}from'react';import {flushSync}from'react-dom';/**
|
|
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 Qe(e){let{minValue:i,maxValue:t,step:u,formatOptions:r,value:o,defaultValue:d$1=NaN,onChange:L,locale:l,isDisabled:F,isReadOnly:P,commitBehavior:S="snap"}=e;o===null&&(o=NaN);let E=useCallback(a$1=>u===void 0||isNaN(u)?a(a$1,i,t):b$1(a$1,i,t,u),[u,i,t]);o!==void 0&&!isNaN(o)&&S==="snap"&&(o=E(o)),!isNaN(d$1)&&S==="snap"&&(d$1=E(d$1));let[s,g]=a$1(o,isNaN(d$1)?NaN:d$1,L),[U]=useState(s),[h,N]=useState(()=>isNaN(s)?"":new a$2(l,r).format(s)),$=useMemo(()=>new b$2(l,r),[l,r]),k=useMemo(()=>$.getNumberingSystem(h),[$,h]),x=useMemo(()=>new a$2(l,{...r,numberingSystem:k}),[l,r,k]),Z=useMemo(()=>x.resolvedOptions(),[x]),V=useCallback(a=>isNaN(a)||a===null?"":x.format(a),[x]),v=d({...e,value:s}),c=u!==void 0&&!isNaN(u)?u:1;Z.style==="percent"&&(u===void 0||isNaN(u))&&(c=.01);let[B,G]=useState(s),[T,q]=useState(l),[y,H]=useState(r);(!Object.is(s,B)||l!==T||!_e(r,y))&&(N(V(s)),G(s),q(l),H(r));let m=useMemo(()=>$.parse(h),[$,h]),Y=a=>{let D=a===void 0?h:a,p=m;if(a!==void 0&&(p=$.parse(D)),!D.length){g(NaN),N(o===void 0?"":V(s));return}if(isNaN(p)){N(V(s));return}let f=S==="snap"?E(p):p;f=$.parse(V(f));let ee=f!==s;g(f),N(V(o===void 0?f:s)),ee&&v.commitValidation();},A=(a,D=0)=>{let p=m;if(isNaN(p)){let f=isNaN(D)?0:D;return b$1(f,i,t,c)}else {let f=b$1(p,i,t,c);return a==="+"&&f>p||a==="-"&&f<p?f:b$1(ae(a,p,c),i,t,c)}},J=()=>{let a=A("+",i);a===s&&N(V(a)),g(a),v.commitValidation();},j=()=>{let a=A("-",t);a===s&&N(V(a)),g(a),v.commitValidation();},X=()=>{t!=null&&(g(b$1(t,i,t,c)),v.commitValidation());},R=()=>{i!=null&&(g(i),v.commitValidation());},Q=useMemo(()=>!F&&!P&&(isNaN(m)||t===void 0||isNaN(t)||b$1(m,i,t,c)>m||ae("+",m,c)<=t),[F,P,i,t,c,m]),_=useMemo(()=>!F&&!P&&(isNaN(m)||i===void 0||isNaN(i)||b$1(m,i,t,c)<m||ae("-",m,c)>=i),[F,P,i,t,c,m]);return {...v,validate:a=>$.isValidPartialNumber(a,i,t),increment:J,incrementToMax:X,decrement:j,decrementToMin:R,canIncrement:Q,canDecrement:_,minValue:i,maxValue:t,numberValue:m,defaultNumberValue:isNaN(d$1)?U:d$1,setNumberValue:g,setInputValue:N,inputValue:h,commit:Y}}function _e(e,i){if(e===i)return true;if(!e||!i)return false;let t=Object.keys(e),u=Object.keys(i);if(t.length!==u.length)return false;for(let r of t)if(i[r]!==e[r])return false;return true}function ae(e,i,t){let u=e==="+"?i+t:i-t;if(i%1!==0||t%1!==0){let r=i.toString().split("."),o=t.toString().split("."),d=r[1]&&r[1].length||0,L=o[1]&&o[1].length||0,l=Math.pow(10,Math.max(d,L));i=Math.round(i*l),t=Math.round(t*l),u=e==="+"?i+t:i-t,u/=l;}return u}var je={"ar-AE":{decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"},"bg-BG":{decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"},"cs-CZ":{decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"et-EE":{decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"},"fi-FI":{decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"},"ko-KR":{decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"},"lt-LT":{decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"},"ro-RO":{decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"},"ru-RU":{decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"},"sk-SK":{decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"},"uk-UA":{decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"},"zh-CN":{decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"},"zh-TW":{decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"}};function ii(e$1,i,t){let{id:u,decrementAriaLabel:r,incrementAriaLabel:o,isDisabled:d,isReadOnly:L,isRequired:l,minValue:F,maxValue:P,autoFocus:S,label:E,formatOptions:s,onBlur:g$2=()=>{},onFocus:U,onFocusChange:h,onKeyDown:N,onKeyUp:$,description:k$1,errorMessage:x,isWheelDisabled:Z,...V}=e$1,{increment:v,incrementToMax:c$3,decrement:B,decrementToMin:G,numberValue:T,inputValue:q,commit:y,commitValidation:H}=i,m=b$3(je,"@react-aria/numberfield"),Y=useCallback(()=>{let n=t.current?.value??"";flushSync(()=>{y();}),t.current?.value!==n&&a$3(t.current?.value??"","assertive");},[y,t]),A=c(u),{focusProps:J}=a$4({onBlur(){Y();}}),j=a$5(s),X=useMemo(()=>j.resolvedOptions(),[j]),R=a$5({...s,currencySign:void 0}),Q=useMemo(()=>isNaN(T)?"":R.format(T),[R,T]),{spinButtonProps:_,incrementButtonProps:oe,decrementButtonProps:a}=a$6({isDisabled:d,isReadOnly:L,isRequired:l,maxValue:P,minValue:F,onIncrement:v,onIncrementToMax:c$3,onDecrement:B,onDecrementToMin:G,value:T,textValue:Q}),[D,p]=useState(false),{focusWithinProps:f$1}=b$4({isDisabled:d,onFocusWithinChange:p}),ee=useCallback(n=>{Math.abs(n.deltaY)<=Math.abs(n.deltaX)||(n.deltaY>0?v():n.deltaY<0&&B());},[B,v]);a$7({onScroll:ee,isDisabled:Z||d||L||!D},t);let ue=(X.maximumFractionDigits??0)>0,de=i.minValue===void 0||isNaN(i.minValue)||i.minValue<0,C="numeric";e()?de?C="text":ue&&(C="decimal"):k()&&(de?C="numeric":ue&&(C="decimal"));let We=n=>{i.validate(n)&&i.setInputValue(n);},ze=n=>{e$1.onPaste?.(n);let W=g$1(n);W&&(W.selectionEnd??-1)-(W.selectionStart??0)===W.value.length&&(n.preventDefault(),y(n.clipboardData?.getData?.("text/plain")?.trim()??""));},Ke=a$8(e$1),se=useCallback(n=>{n.nativeEvent.isComposing||(n.key==="Enter"?(flushSync(()=>{y();}),H()):n.continuePropagation());},[y,H]),{isInvalid:me,validationErrors:Ue,validationDetails:Ze}=i.displayValidation,{labelProps:be,inputProps:Ge,descriptionProps:qe,errorMessageProps:Ye}=a$9({...V,...Ke,name:void 0,form:void 0,label:E,autoFocus:S,isDisabled:d,isReadOnly:L,isRequired:l,validate:void 0,[c$1]:i,value:q,defaultValue:"!",autoComplete:"off","aria-label":e$1["aria-label"]||void 0,"aria-labelledby":e$1["aria-labelledby"]||void 0,id:A,type:"text",inputMode:C,onChange:We,onBlur:g$2,onFocus:U,onFocusChange:h,onKeyDown:useMemo(()=>a$a(se,N),[se,N]),onKeyUp:$,onPaste:ze,description:k$1,errorMessage:x},i,t);a$b(t,i.defaultNumberValue,i.setNumberValue),ti(i,e$1.validationBehavior,e$1.commitBehavior,t,i.minValue,i.maxValue,e$1.step,i.numberValue);let ce=c$2(_,J,Ge,{role:null,"aria-roledescription":g()?null:m.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e$1.validationBehavior==="native"&&(ce["aria-required"]=void 0);let fe=n=>{f(a$d(t.current))!==t.current&&(n.pointerType==="mouse"?t.current?.focus():n.target.focus());},ie=e$1["aria-label"]||(typeof e$1.label=="string"?e$1.label:""),I;ie||(I=e$1.label!=null?be.id:e$1["aria-labelledby"]);let pe=c(),Le=c(),Je=c$2(oe,{"aria-label":o||m.format("increase",{fieldLabel:ie}).trim(),id:I&&!o?pe:null,"aria-labelledby":I&&!o?`${pe} ${I}`:null,"aria-controls":A,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!i.canIncrement,onPressStart:fe}),Xe=c$2(a,{"aria-label":r||m.format("decrease",{fieldLabel:ie}).trim(),id:I&&!r?Le:null,"aria-labelledby":I&&!r?`${Le} ${I}`:null,"aria-controls":A,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!i.canDecrement,onPressStart:fe});return {groupProps:{...f$1,role:"group","aria-disabled":d,"aria-invalid":me?"true":void 0},labelProps:be,inputProps:ce,incrementButtonProps:Je,decrementButtonProps:Xe,errorMessageProps:Ye,descriptionProps:qe,isInvalid:me,validationErrors:Ue,validationDetails:Ze}}var b=null;function ti(e,i,t,u,r,o,d,L){a$c(()=>{let l=u.current;if(t!=="validate"||e.realtimeValidation.isInvalid||!l||l.disabled||(!b&&typeof document<"u"&&(b=document.createElement("input"),b.type="number"),!b))return;b.min=r!=null&&!isNaN(r)?String(r):"",b.max=o!=null&&!isNaN(o)?String(o):"",b.step=d!=null&&!isNaN(d)?String(d):"",b.value=L!=null&&!isNaN(L)?String(L):"";let F=l.validity.valid&&b.validity.valid,P=l.validationMessage||b.validationMessage,S={isInvalid:!F,validationErrors:P?[P]:[],validationDetails:{badInput:l.validity.badInput,customError:l.validity.customError,patternMismatch:l.validity.patternMismatch,rangeOverflow:b.validity.rangeOverflow,rangeUnderflow:b.validity.rangeUnderflow,stepMismatch:b.validity.stepMismatch,tooLong:l.validity.tooLong,tooShort:l.validity.tooShort,typeMismatch:l.validity.typeMismatch,valueMissing:l.validity.valueMissing,valid:F}};e.updateValidation(S),i==="native"&&!b.validity.valid&&l.setCustomValidity(b.validationMessage);});}export{Qe as a,ii as b};
|
package/dist/chunk-LRZ6BQFQ.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-RZEGMPV2.mjs';import {b}from'./chunk-RM2Y4D2M.mjs';import {c}from'./chunk-WICBTAMY.mjs';import {a}from'./chunk-EX2LI2CV.mjs';import {a as a$2}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import g from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var M=g.forwardRef(({className:R,validationState:t,variant:E="primary",labelPosition:s="top",inputStyle:i,inputClassName:F,isMultiLine:r=false,rows:H,"data-block-id":A,"data-block-class":N,...e},L)=>{let a$5=g.useRef(null),{inputProps:l,labelProps:k,descriptionProps:v,errorMessageProps:h,validationErrors:D}=a({...e,inputElementType:r?"textarea":"input",validationState:t?t==="error"?"invalid":"valid":void 0},a$5),m=e.errorMessage||D.join(" "),O=b({...e,errorMessage:m,descriptionProps:v,errorMessageProps:h,labelPosition:s});m&&(t="error");let{isFocused:u,focusProps:d,isFocusVisible:j}=a$1(),c$2=a$2({"data-readonly":e.isReadOnly,"data-disabled":e.isDisabled,"data-validation-state":t,"data-focused":u,"data-focus-visible":j}),f=a$3(c({isDisabled:e.isDisabled,labelPosition:s,isMultiLine:r}),"BaselineUI-TextInput-Input",F);return jsx(a$4,{variant:E,labelProps:k,isFocused:u,message:O,ref:L,labelPosition:s,className:a$3("BaselineUI-TextInput",R),validationState:t,isMultiLine:r,"data-block-id":A,"data-block-class":N,...e,children:r?jsx("textarea",{...c$1(l,d,c$2),className:f,style:i,rows:H,ref:a$5}):jsx("input",{...c$1(l,d,c$2),className:f,style:i,ref:a$5})})});M.displayName="TextInput";export{M as a};
|
package/dist/chunk-LTIDSWDM.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a,b as b$1,c as c$1,d}from'./chunk-WA35CT3D.mjs';import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-PAQQ7MQG.mjs';import {b as b$2}from'./chunk-TZ4MVY4E.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import v,{useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var G="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k";var z=({item:e})=>{let p=useMemo(()=>({item:e}),[e]);return jsx(c$1.Provider,{value:p,children:jsx(d,{children:e.rendered})})},x=v.forwardRef(({className:e,style:p,"data-block-id":C,"data-block-class":P,items:i,size:m="md",isDisabled:_=false,...t},k)=>{let L=useMemo(()=>i.map(o=>({...o,data:{variant:o.variant}})),[i]),b$3=c(),n=v.useRef(null),a$2=b({...t,items:L,children:b$3,disabledKeys:_?i.map(o=>o.id):t.disabledKeys}),{gridProps:I}=a(t,a$2,n),R=useMemo(()=>({state:a$2,variant:t.variant,size:m}),[a$2,t.variant,m]);return jsx("div",{...I,className:a$1(G,"BaselineUI-TagGroup",e),style:p,"data-block-id":C,"data-block-class":P,ref:b$2(k,n),children:jsx(b$1.Provider,{value:R,children:[...a$2.collection].map(o=>jsx(z,{item:o},o.key))})})});x.displayName="TagGroup";export{x as a};
|
package/dist/chunk-LZFTBNPW.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-CGFLGZL4.mjs';import {a as a$3}from'./chunk-AV4ZP5SY.mjs';import {a as a$2}from'./chunk-2VY4FAOY.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-KEVERVHK.mjs';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function c(a$4){let{value:r=0,minValue:e=0,maxValue:s=100,valueLabel:o,isIndeterminate:t,formatOptions:p={style:"percent"}}=a$4,u=a(a$4,{labelable:true}),{labelProps:g,fieldProps:B}=a$1({...a$4,labelElementType:"span"});r=a$2(r,e,s);let f=(r-e)/(s-e),b=a$3(p);if(!t&&!o){let x=p.style==="percent"?f:r;o=b.format(x);}return {progressBarProps:c$1(u,{...B,"aria-valuenow":t?void 0:r,"aria-valuemin":e,"aria-valuemax":s,"aria-valuetext":t?void 0:o,role:"progressbar"}),labelProps:g}}export{c as a};
|
package/dist/chunk-M5M3EPG5.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {d}from'./chunk-Y4DRSGEJ.mjs';import {t}from'./chunk-MRJFGHFW.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {b as b$1,g}from'./chunk-AUOQSTS5.mjs';import {useRef,useEffect}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function S(n,e,t$1){let{validationBehavior:s,focus:m}=n;a(()=>{if(s==="native"&&t$1?.current&&"setCustomValidity"in t$1.current&&!t$1.current.disabled){let i=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t$1.current.setCustomValidity(i),t$1.current.hasAttribute("title")||(t$1.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(I(t$1.current));}});let r=useRef(false),u=t(()=>{r.current||e.resetValidation();}),v=t(i=>{e.displayValidation.isInvalid||e.commitValidation();let a=t$1?.current?.form;!i.defaultPrevented&&t$1&&a&&L(a)===t$1.current&&(m?m():t$1.current?.focus(),d("keyboard")),i.preventDefault();}),c=t(()=>{e.commitValidation();});useEffect(()=>{let i=t$1?.current;if(!i)return;let a=i.form,f=a?.reset;if(a){let E=b$1(i);a.reset=()=>{let o=E.event?E:window,d=o.event;r.current=!d||d.type==="message"&&typeof o.MessagePort=="function"&&g(d)instanceof o.MessagePort;try{f?.call(a);}finally{r.current=false;}};}return i.addEventListener("invalid",v),i.addEventListener("change",c),a?.addEventListener("reset",u),()=>{i.removeEventListener("invalid",v),i.removeEventListener("change",c),a?.removeEventListener("reset",u),a&&(a.reset=f);}},[t$1,s]);}function b(n){let e=n.validity;return {badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function I(n){return {isInvalid:!n.validity.valid,validationDetails:b(n),validationErrors:n.validationMessage?[n.validationMessage]:[]}}function L(n){for(let e=0;e<n.elements.length;e++){let t=n.elements[e];if(t.validity?.valid===false)return t}return null}export{S as a};
|
package/dist/chunk-MFH2E2GU.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a,b}from'./chunk-JQ4ZGZPV.mjs';import {b as b$1,a as a$3}from'./chunk-F2X474RV.mjs';import {a as a$1}from'./chunk-THRAJMLX.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$2}from'./chunk-JDLUGVXG.mjs';import {a as a$4}from'./chunk-AUOQSTS5.mjs';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function E(d,r){let{triggerRef:n,popoverRef:e,groupRef:t,isNonModal:o,isKeyboardDismissDisabled:b$2,shouldCloseOnInteractOutside:g,shouldCloseOnScroll:i=true,...s}=d,l=s.trigger==="SubmenuTrigger",{overlayProps:v,underlayProps:y}=a({isOpen:r.isOpen,onClose:r.close,shouldCloseOnBlur:true,isDismissable:!o||l,isKeyboardDismissDisabled:b$2,shouldCloseOnInteractOutside:g},t??e),{overlayProps:A,arrowProps:R,placement:D,triggerAnchorPoint:h,updatePosition:x}=a$1({...s,targetRef:n,overlayRef:e,isOpen:r.isOpen,shouldCloseOnScroll:i,onClose:o&&!l&&i?r.close:null}),C=e.current?.ownerDocument.documentElement??n.current?.ownerDocument.documentElement;return b({isDisabled:o||!r.isOpen,root:C},e),a$2(()=>{if(r.isOpen&&e.current)return o?b$1(t?.current??e.current):a$3([t?.current??e.current],{shouldUseInert:false,root:a$4(e.current)?.body})},[o,r.isOpen,e,t]),{popoverProps:c(v,A),arrowProps:R,underlayProps:y,placement:D,triggerAnchorPoint:h,updatePosition:x}}export{E as a};
|
package/dist/chunk-MFNWPTNI.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-KAVZW4RV.mjs';import {c}from'./chunk-MNAD5FJH.mjs';import {a as a$2}from'./chunk-OAY74XPB.mjs';import {b}from'./chunk-QR2AF3KT.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {b as b$1,c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {assignInlineVars}from'@vanilla-extract/dynamic';import d,{useContext,useMemo,useState,useEffect}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 S="var(--cjv3et0)",H=a({defaultClassName:"cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g9 _1yep5z6mf _1yep5z6mh",variantClassNames:{size:{sm:"cjv3et2",md:"cjv3et3",lg:"cjv3et4",content:"cjv3et5"},variant:{primary:"_1yep5z613z",ghost:"cjv3et7"},overlayType:{modal:"cjv3et8",popover:"cjv3et9"},isDrawer:{true:"cjv3eta _1yep5z6yy _1yep5z6yz _1yep5z6z0 _1yep5z6zm _1yep5z6zn _1yep5z6zo _1yep5z618m"},isFocusVisible:{true:"_1yep5z61rf _1yep5z61v9 _1yep5z61vb _1yep5z61vd"}},defaultVariants:{},compoundVariants:[]});function k(e,o){let t=e["aria-label"],r=e["aria-labelledby"],[s,i]=useState(()=>t||"");return useEffect(()=>{if(t){i(t);return}if(!r){i("");return}let a=o?.current?.getRootNode()??a$5(null),p=r.replaceAll(":",String.raw`\:`),m=a.querySelector(`#${p}`);if(m?.textContent){i(m.textContent);return}let l=a$5(null),y=a===l?l.body:a,n=new MutationObserver(()=>{let c=a.querySelector(`#${p}`);c?.textContent&&(i(c.textContent),n.disconnect());});return n.observe(y,{childList:true,subtree:true}),()=>{n.disconnect();}},[t,r,o]),s}var z=d.createContext({titleProps:{}}),O=d.forwardRef(({children:e,className:o,style:t,inheritDrawer:r,size:s="md",variant:i="primary","data-block-id":a,"data-block-class":p,drawerBackground:m,...l},y)=>{let n=d.useRef(null),c$2=d.useRef(null),{containerWidth:x,shouldContainOverlays:q}=useContext(b),{isDrawer:u,closeDrawer:U,dialogStyle:C,setDialogElement:R,isWithinModal:w}=useContext(c),$=k(l,c$2),{focusProps:A,isFocusVisible:P}=a$1(),{dialogProps:I,titleProps:T}=a$2(l,n),B=useMemo(()=>({titleProps:T}),[T]);return u&&r?jsx(a$3,{title:$,onCloseRequest:U,className:o,style:C,...l,"data-drawer":true,"data-block-id":a,"data-block-class":p,ref:b$1(y,c$2,g=>{R(g);}),background:m,children:e}):jsx(z.Provider,{value:B,children:jsx("section",{...c$1(I,A),"data-block-id":a,"data-block-class":p,"data-focus-visible":P,"data-overlay-type":w?"modal":"popover",ref:b$1(n,y,g=>{R(g);}),style:{...C,...t,...assignInlineVars({[S]:x&&q?`${x}px`:"100vw"})},className:a$4(H({size:u?"content":s,variant:i,isDrawer:u,isFocusVisible:P,overlayType:w?"modal":"popover"}),"BaselineUI-Dialog",o),children:e})})});O.displayName="Dialog";var W=d.forwardRef(({children:e,className:o,style:t},r)=>{let{titleProps:s}=useContext(z);return d.isValidElement(e)?d.cloneElement(e,{...s,ref:r,className:a$4(e.props.className,o),style:{...e.props.style,...t}}):jsx("h3",{...s,ref:r,className:o,style:t,children:e})});W.displayName="DialogTitle";export{O as a,W as b};
|
package/dist/chunk-MHUFXHRU.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {c,b}from'./chunk-GX2IOGYR.mjs';import {a}from'./chunk-JJG67M2S.mjs';import u,{useEffect,useCallback}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function C(e,r){let{playingLabel:n,pausedLabel:a$1}=r??{},{formatMessage:o,locale:s}=b(),[E,d]=u.useState(false),[S,c]=u.useState(0),[l,T]=u.useState(0),[g,h]=u.useState(false);useEffect(()=>{if(!e.current)return;let t=e.current,p=()=>{d(false),c(0);},f=()=>{g||c(t.currentTime*100/t.duration);},M=()=>{T(t.duration);};return t.addEventListener("ended",p),t.addEventListener("timeupdate",f),t.addEventListener("loadedmetadata",M),()=>{t.removeEventListener("ended",p),t.removeEventListener("timeupdate",f),t.removeEventListener("loadedmetadata",M);}},[g,e]);let D=useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),d(true),a(n??o(v.playing),"polite")):(e.current.pause(),d(false),a(a$1??o(v.paused),"polite"))))();},[o,a$1,n,e]),P=useCallback(t=>{e.current&&(e.current.currentTime=t*e.current.duration/100,a(x(e.current.currentTime,s.locale),"assertive"));},[s.locale,e]);return {isPlaying:E,progress:S,duration:l,togglePlay:D,seek:P,setProgress:c,formattedCurrentTime:e.current?.currentTime?m(e.current?.currentTime):"00:00",formattedDuration:l?m(l):"00:00",setIsSliderDragging:h}}var v=c({playing:{id:"bui.useMedia.playing",defaultMessage:"Playing"},paused:{id:"bui.useMedia.paused",defaultMessage:"Paused"}});function x(e,r){if(!("DurationFormat"in Intl))return m(e);let n=Math.floor(e/3600),a=Math.floor(e%3600/60),o=e%60,s={...n&&{hours:n},...a&&{minutes:a},seconds:Math.floor(o)};return new Intl.DurationFormat(r,{style:"long"}).format(s)}function m(e){let r=Math.floor(e%3600/60),n=Math.floor(e%60);return [r,n].map(a=>a.toString().padStart(2,"0")).join(":")}export{C as a,x as b};
|
package/dist/chunk-MI7DCFP2.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-DD5FWULD.mjs';import {useGranularEffect}from'granular-hooks';import {useReducer,useRef}from'react';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var f="SET_STATE",o="UNDO",a="REDO",U=(c,e)=>{let{past:t,present:n,future:s}=c;switch(e.type){case f:return {past:[...t,n],present:e.data,future:[]};case o:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[n,...s]};case a:return {past:[...t,n],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},H=(c={},{isDisabled:e,onAction:t})=>{let n=a$1(),[s,u]=useReducer(U,{past:[],present:c,future:[]}),{past:i,present:p,future:T}=s,h=E=>{u({type:f,data:E});},r=useRef(),y=()=>{i.length&&(r.current=o,u({type:o}));},S=()=>{T.length&&(r.current=a,u({type:a}));},l=!!i?.length,R=!!T?.length;return useGranularEffect(()=>{(r.current===o||r.current===a)&&(t?.(p,r.current),r.current=void 0);},[p],[t,n]),{state:p,push:e?()=>{}:h,undo:e?()=>{}:y,redo:e?()=>{}:S,pastStates:i,futureStates:T,canUndo:l,canRedo:R}};export{H as a};
|
package/dist/chunk-MNAD5FJH.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-4BYKAG4W.mjs';import {a as a$7,b as b$2}from'./chunk-JQ4ZGZPV.mjs';import {h,g}from'./chunk-AKES5B6C.mjs';import {a as a$8}from'./chunk-F2X474RV.mjs';import {a as a$5}from'./chunk-FOEGHU3P.mjs';import {a as a$3}from'./chunk-F3HQNHR5.mjs';import {c}from'./chunk-V3L4SVVF.mjs';import {b}from'./chunk-JUXBZ2ZN.mjs';import {b as b$1}from'./chunk-QR2AF3KT.mjs';import {a as a$1}from'./chunk-ZGRRD3TU.mjs';import {a as a$a}from'./chunk-UUBOEBYZ.mjs';import {a as a$9}from'./chunk-4PYEGHW5.mjs';import {a as a$2}from'./chunk-66CUIXA6.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {b as b$3,e,f}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import x,{useContext,useMemo,useEffect,useState,useRef}from'react';import {jsx,jsxs}from'react/jsx-runtime';import {motion,AnimatePresence}from'motion/react';import {themeVars}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 P=x.createContext({state:null,triggerProps:{},overlayProps:{}}),Ee=({children:e,...t})=>{let o=a$9(t),{triggerProps:a,overlayProps:n}=a$a({type:"dialog"},o),l=useMemo(()=>({state:o,triggerProps:a,overlayProps:n}),[o,a,n]);return jsx(P.Provider,{value:l,children:e})};Ee.displayName="Modal";function A(e,t,o){let{overlayProps:a,underlayProps:n}=a$7({...e,isOpen:t.isOpen,onClose:t.close},o);return b$2({isDisabled:!t.isOpen,root:e.root},o),c(),useEffect(()=>{if(t.isOpen&&o.current)return a$8([o.current],{shouldUseInert:e.shouldUseInert??false,root:e.root})},[t.isOpen,o,e.root,e.shouldUseInert]),{modalProps:c$1(a),underlayProps:n}}function se(e$1,t,o){let[a,n]=useState({}),l=useRef(false),[g$1,b]=useState(null),{container:p,shouldContainOverlays:d,isContainerPositioned:v,containerHeight:c,portalContainer:h$1}=useContext(b$1);useEffect(()=>{if(!e$1)return;let r=b$3(e$1),m=r.visualViewport,y=()=>{let M=o?m?.height??r.innerHeight:r.innerHeight,O=r.innerHeight-M;if(l.current=o?O>60:false,l.current){let i=f(e$1.ownerDocument);i&&g(i)&&i.scrollIntoView({behavior:"smooth",block:"center"});}if(t)n({maxHeight:(M||0)*.8,bottom:O});else {let i=`${M||0}px`,f=d?`min(${i}, ${c?c+"px":i})`:i;n({maxHeight:`calc(${f} - (2 * ${themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:l.current?`calc(env(safe-area-inset-top) + ${themeVars.spacing.xl})`:void 0});}};return y(),m?.addEventListener("resize",y),r.addEventListener("resize",y),()=>{m?.removeEventListener("resize",y),r.removeEventListener("resize",y);}},[e$1,t,d,o,c]);let C=h$1&&!e(p,h$1);useEffect(()=>{if(!p||!d||v&&!C)return;let r=()=>{p&&b(h(p));};r();let m=new ResizeObserver(()=>{r();});return m.observe(p),()=>{m.disconnect();}},[p,d,v,C]);let u=useMemo(()=>({...a,overflow:"auto",position:"relative"}),[a]),R=useMemo(()=>{if(!t&&l.current)return {alignItems:"flex-start"};if(d&&(!v||C)){let r=g$1||(p?h(p):{x:0,y:0,height:0,width:0});return {position:"absolute",left:r.x,top:r.y,height:r.height,width:r.width}}return {}},[t,l.current,p,v,d,g$1,C]);return {dialogStyle:u,containerStyle:R}}var le="aml2vl8 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6iz _1yep5z6j0 _1yep5z6j1",pe="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",me=a({defaultClassName:"aml2vl3 _1yep5z6lw _1yep5z6lx _1yep5z6lz _1yep5z6ly _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{enableDrawer:{false:"_1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),de=a({defaultClassName:"aml2vl0 _1yep5z6lw _1yep5z6lx _1yep5z6lz _1yep5z6ly _1yep5z6gj",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var L=x.forwardRef(({children:e,className:t,style:o,isDismissable:a=true,isKeyboardDismissDisabled:n=false,portalContainer:l,disableAnimation:g,enableDrawer:b$2=false,"data-block-id":p,"data-block-class":d,shouldCloseOnInteractOutside:v,UNSAFE_enableInert:c,disableFocusManagement:h},C)=>{let{state:u}=x.useContext(P),[R,r]=x.useState(true),m=x.useRef(null),[y,M]=x.useState(null),{shouldHandleVirtualKeyboard:O}=useContext(b),{shouldContainOverlays:i,container:f}=useContext(b$1),Ce=a$1(),s=typeof b$2=="boolean"&&b$2||b$2==="auto"&&Ce==="mobile";a$2(u,"ModalContent must be a child of Modal");let Me=typeof a=="function"?a(s):a,ge=typeof n=="function"?n(s):n,be=typeof c=="function"?c(s):c??false,z=a$3(l),k=a$4(z),Pe=useMemo(()=>i&&f?f:z?.ownerDocument?.body??f?.ownerDocument?.body??document.body,[i,f,z]),{modalProps:xe,underlayProps:he}=A({isDismissable:R&&Me,shouldCloseOnInteractOutside:E=>!f?.contains(E)&&i&&!z?.contains(E)?false:v?.(E)??true,isKeyboardDismissDisabled:ge,root:Pe,shouldUseInert:be},u,k),{dialogStyle:V,containerStyle:Oe}=se(y,s,O),ze=useMemo(()=>({isDrawer:s,closeDrawer:u.close,dialogStyle:V,dialogRef:m,setDialogElement:M,isWithinModal:true}),[s,u.close,V,m,M]),_e=useMemo(()=>({setIsPopoverSafelyClosed:r}),[r]),j={duration:.3,type:"tween",ease:"easeOut"},De={type:"spring",duration:.3},we={open:{opacity:1,transform:s?"translateY(0%)":"scale(1)"},closed:g?{opacity:1,transform:s?"translateY(0%)":"scale(1)"}:{opacity:0,transform:s?"translateY(100%)":"scale(0.95)"}};return jsx(ye.Provider,{value:ze,children:jsx(fe.Provider,{value:_e,children:jsxs(a$5,{className:a$6(me({enableDrawer:s,shouldContainOverlays:i}),t),"data-block-id":p,"data-block-class":d,style:{...o,...Oe},portalContainer:l,disableFocusManagement:h,ref:C,children:[jsx(motion.div,{...he,variants:{open:{opacity:1},closed:{opacity:g?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:j,className:a$6(de({shouldContainOverlays:i}),"BaselineUI-Modal-Underlay")}),jsx(motion.div,{...xe,ref:k,"data-drawer":s,className:a$6(s?le:pe,"BaselineUI-Modal-Content"),variants:we,transition:s?j:De,initial:"closed",animate:"open",exit:"closed",children:typeof e=="function"?e(u):e})]})})})});L.displayName="ModalContentCore";var ye=x.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),fe=x.createContext({setIsPopoverSafelyClosed:()=>{}}),Ve=x.forwardRef(({shouldAnimateOnMount:e=true,disableAnimation:t,...o},a)=>{let{state:n}=x.useContext(P);return jsx(AnimatePresence,{initial:e&&!t,children:n?.isOpen?jsx(L,{...o,disableAnimation:t,ref:a}):null})});Ve.displayName="ModalContent";export{P as a,Ee as b,ye as c,fe as d,Ve as e};
|
package/dist/chunk-MRJFGHFW.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-JDLUGVXG.mjs';import {b as b$1,a as a$1,c,g as g$1}from'./chunk-AUOQSTS5.mjs';import ne,{createContext,useContext,useRef,useCallback}from'react';import'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 m(e){if(typeof window>"u"||window.navigator==null)return false;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function g(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):false}function f(e){if(process.env.NODE_ENV==="test")return e;let t=null;return ()=>(t==null&&(t=e()),t)}var p=f(function(){return g(/^Mac/i)}),N=f(function(){return g(/^iPhone/i)}),v=f(function(){return g(/^iPad/i)||p()&&navigator.maxTouchPoints>1}),V=f(function(){return N()||v()}),ae=f(function(){return p()||V()}),L=f(function(){return m(/AppleWebKit/i)&&!K()}),K=f(function(){return m(/Chrome/i)}),w=f(function(){return m(/Android/i)}),A=f(function(){return m(/Firefox/i)});function R(e){if(W(e))e.focus({preventScroll:true});else {let t=B(e);e.focus(),F(t);}}var b=null;function W(e){if(b==null){b=false;try{a$1(e).createElement("div").focus({get preventScroll(){return b=!0,!0}});}catch{}}return b}function B(e){let t=e.parentNode,n=[],o=a$1(e),r=b$1(e),i=o.scrollingElement||o.documentElement;for(;t&&t!==i;){if(c(t)){t=t.host;continue}t instanceof r.HTMLElement&&(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;}return i instanceof r.HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function F(e){for(let{element:t,scrollTop:n,scrollLeft:o}of e)t.scrollTop=n,t.scrollLeft=o;}var I=typeof Element<"u"&&"checkVisibility"in Element.prototype;function _(e){let t=b$1(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return false;let{display:n,visibility:o}=e.style,r=n!=="none"&&o!=="hidden"&&o!=="collapse";if(r){let{getComputedStyle:i}=b$1(e),{display:a,visibility:l}=i(e);r=a!=="none"&&l!=="hidden"&&l!=="collapse";}return r}function j(e,t){return !e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):true)}function h(e,t){return I?e.checkVisibility({visibilityProperty:true})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&_(e)&&j(e,t)&&(!e.parentElement||h(e.parentElement,e))}var S=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],z=S.join(':not([hidden]):not([data-bui-avoid-focus="true"]),')+',[tabindex]:not([disabled]):not([hidden]):not([data-bui-avoid-focus="true"])';S.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var U=S.join(':not([hidden]):not([tabindex="-1"]),');function Ee(e,t){return e.matches(z)&&!k(e)&&(t?.skipVisibilityCheck||h(e))}function me(e){return e.matches(U)&&h(e)&&!k(e)}function k(e){let t=e;for(;t!=null;){if(t instanceof b$1(t).HTMLElement&&t.inert)return true;t=t.parentElement;}return false}function ye(e){return e.pointerType===""&&e.isTrusted?true:w()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Te(e){return !w()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}var X=createContext({isNative:true,open:Q,useHref:e=>e});function P(){return useContext(X)}function q(e,t){let n=e.getAttribute("target");return (!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function y(e,t,n=true){let{metaKey:o,ctrlKey:r,altKey:i,shiftKey:a}=t;A()&&b$1(e).event?.type?.startsWith("key")&&e.target==="_blank"&&(p()?o=true:r=true);let l=L()&&p()&&!v()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:r,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:r,altKey:i,shiftKey:a,detail:1,bubbles:true,cancelable:true});y.isOpening=n,R(e),e.dispatchEvent(l),y.isOpening=false;}y.isOpening=false;function Y(e,t){if(e instanceof b$1(e).HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=a$1(e).createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n);}}function Q(e,t){Y(e,n=>y(n,t));}function Oe(e){let n=P().useHref(e.href??"");return {"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function He(e){let n=P().useHref(e?.href??""),o={};if(e)for(let r of ["href","target","rel","download","ping","referrerPolicy"])r in e&&(o[r]=r==="href"?n:e[r]);return o}function Ce(e,t,n,o){let r=b$1(e.currentTarget);!t.isNative&&e.currentTarget instanceof r.HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&q(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,o));}var x=new WeakMap,O=new WeakSet;function H(e){return "propertyName"in e}function Z(){let e=new Map,t=new Set,n=a=>{let l=g$1(a);if(!H(a)||!l)return;let c=e.get(l);c&&(c.delete(a.propertyName),c.size===0&&(l.removeEventListener("transitioncancel",n),e.delete(l)),e.size===0&&D(i));},o=(a,l)=>{let c=e.get(a);c||(c=new Set,e.set(a,c),a.addEventListener("transitioncancel",n,{once:true})),c.add(l);},i={transitionsByElement:e,transitionCallbacks:t,track:o,onTransitionStart:a=>{let l=g$1(a);!H(a)||!l||o(l,a.propertyName);},onTransitionEnd:n};return i}function C(e){let t=x.get(e);return t||(t=Z(),x.set(e,t)),t}function $(e){let t=[],n=e?.getRootNode()??null;c(n)&&t.push(n);let o=a$1(e).body;return o&&t.push(o),t}function D(e){for(let t of e.transitionCallbacks)t();e.transitionCallbacks.clear();}function ee(e,t){let n=c(e)?e:a$1(e),o=c(e)?e.getAnimations?.():a$1(e).getAnimations?.();for(let r of o??[]){if(r.playState==="finished"||!("transitionProperty"in r))continue;let i=r.effect?.target;i&&i.getRootNode()===n&&t.track(i,r.transitionProperty);}}function M(e){if(typeof window>"u")return;let t=$(e).filter(o=>!O.has(o));if(t.length===0)return;let n=C(a$1(e));for(let o of t)O.add(o),o.addEventListener("transitionrun",n.onTransitionStart),o.addEventListener("transitionend",n.onTransitionEnd),ee(o,n);}typeof document<"u"&&(document.readyState!=="loading"?M():document.addEventListener("DOMContentLoaded",()=>M()));function te(e){for(let[t]of e.transitionsByElement)"isConnected"in t&&(!t.isConnected||!t.ownerDocument?.defaultView)&&e.transitionsByElement.delete(t);e.transitionsByElement.size===0&&D(e);}function Be(e,t){M(t);let n=C(a$1(t));requestAnimationFrame(()=>{te(n),n.transitionsByElement.size===0?e():n.transitionCallbacks.add(e);});}var ie=ne.useInsertionEffect??a;function je(e){let t=useRef(null);return ie(()=>{t.current=e;},[e]),useCallback((...n)=>{let o=t.current;return o?.(...n)},[])}function Ge(e,t){a(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null);}});}export{R as a,Ee as b,me as c,p as d,N as e,v as f,V as g,ae as h,L as i,K as j,w as k,ye as l,Te as m,P as n,y as o,Oe as p,He as q,Ce as r,Be as s,je as t,Ge as u};
|
package/dist/chunk-MVK5CB64.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {j}from'./chunk-MRJFGHFW.mjs';import {b,a,e}from'./chunk-AUOQSTS5.mjs';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function m(t,e){if(!t)return false;let l=b(t).getComputedStyle(t),r=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function $(t,e){let o=t;for(m(o,e)&&(o=o.parentElement);o&&!m(o,e);)o=o.parentElement;let l=a(t);return o||l.scrollingElement||l.documentElement}function W(t,e){let o=[],l=a(t),r=l.scrollingElement||l.documentElement;for(;t&&(m(t,e)&&o.push(t),t!==r);)t=t.parentElement;return o}function J(t,e){let l=a(e).defaultView||window,r=D(t,e,"left"),a$1=D(t,e,"top"),f=e.offsetWidth,c=e.offsetHeight,n=t.scrollLeft,i=t.scrollTop,{borderTopWidth:p,borderLeftWidth:u,scrollPaddingTop:v,scrollPaddingRight:x,scrollPaddingBottom:B,scrollPaddingLeft:C}=l.getComputedStyle(t),{scrollMarginTop:R,scrollMarginRight:y,scrollMarginBottom:O,scrollMarginLeft:k}=l.getComputedStyle(e),X=n+parseInt(u,10),S=i+parseInt(p,10),g=X+t.clientWidth,d=S+t.clientHeight,w=parseInt(v,10)||0,b=parseInt(B,10)||0,E=parseInt(x,10)||0,h=parseInt(C,10)||0,Y=parseInt(R,10)||0,j=parseInt(O,10)||0,A=parseInt(y,10)||0,V=parseInt(k,10)||0,P=r-V,I=r+f+A,T=a$1-Y,L=a$1+c+j,_=n+parseInt(u,10)+h,q=g-E,z=i+parseInt(p,10)+w,G=d-b;if((P>_||I<q)&&(P<=n+h?n=P-parseInt(u,10)-h:I>g-E&&(n+=I-g+E)),(T>z||L<G)&&(T<=S+w?i=T-parseInt(p,10)-w:L>d-b&&(i+=L-d+b)),process.env.NODE_ENV==="test"){t.scrollLeft=n,t.scrollTop=i;return}t.scrollTo({left:n,top:i});}function D(t,e$1,o){let l=o==="left"?"offsetLeft":"offsetTop",r=0;for(;e$1.offsetParent&&(r+=e$1[l],e$1.offsetParent!==t);){if(e(e$1.offsetParent,t)){r-=t[l];break}e$1=e$1.offsetParent;}return r}function st(t,e$1){let o=a(t),l=o.defaultView||window;if(t&&e(o.body,t)){let r=o.scrollingElement||o.documentElement,a=l.getComputedStyle(r).overflow==="hidden";if(!a&&!j()){let{left:f,top:c}=t.getBoundingClientRect();t?.scrollIntoView?.({block:"nearest"});let{left:n,top:i}=t.getBoundingClientRect();(Math.abs(f-n)>1||Math.abs(c-i)>1)&&(e$1?.containingElement?.scrollIntoView?.({block:"center",inline:"center"}),t.scrollIntoView?.({block:"nearest"}));}else {let f=W(t);a||f.push(r);for(let c of f)J(c,t);}}}export{m as a,$ as b,W as c,J as d,st as e};
|
package/dist/chunk-N53SGN23.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {b,a as a$5}from'./chunk-QKKV24WQ.mjs';import {a as a$i}from'./chunk-5IC46G5J.mjs';import {a as a$1,f as f$1}from'./chunk-UCQJ6FJO.mjs';import {a as a$3}from'./chunk-5BAHJXOI.mjs';import {b as b$2,a as a$g,q}from'./chunk-5TDFLLMX.mjs';import {a as a$9}from'./chunk-2MS356Q7.mjs';import {a as a$f}from'./chunk-6DU65N7Q.mjs';import {b as b$1}from'./chunk-RM2Y4D2M.mjs';import {f}from'./chunk-AKES5B6C.mjs';import {a as a$b}from'./chunk-CGFLGZL4.mjs';import {b as b$4}from'./chunk-WN6FAICZ.mjs';import {a as a$e}from'./chunk-ULCYKB34.mjs';import {a as a$4}from'./chunk-TDXALNX3.mjs';import {a as a$d}from'./chunk-VDUFLHKK.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$8}from'./chunk-K6X2BHPP.mjs';import {a as a$c}from'./chunk-BGMVPFYK.mjs';import {a as a$7}from'./chunk-3FYY26ED.mjs';import {d}from'./chunk-AQYBKDT2.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {a as a$6,c,b as b$3}from'./chunk-TZ4MVY4E.mjs';import {g,e}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$h}from'./chunk-4QEH5CGK.mjs';import z,{useMemo,useState,useRef,useEffect}from'react';import {useGranularEffect}from'granular-hooks';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var Le=a({defaultClassName:"_18v88n10 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6m3",variantClassNames:{labelPosition:{top:"_1yep5z6163 _1yep5z6164 _1yep5z6165",start:"_1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z617i _1yep5z617j _1yep5z617k _1yep5z6w1 _1yep5z6w2 _1yep5z6w3"}},defaultVariants:{},compoundVariants:[]}),Ne=a({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ey _1yep5z6m3 _1yep5z6me _1yep5z6m6 _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z611l"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),we=a({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6m0",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610x",warning:"_1yep5z6117"},isReadOnly:{true:"_1yep5z611s"}},defaultVariants:{},compoundVariants:[]}),Ie=a({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6mh _1yep5z6mf _1yep5z6hg _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z613e",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z6190 _1yep5z618y _1yep5z613w _1yep5z618r _1yep5z618q _1yep5z614w _1yep5z618t"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z614w"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61vj _1yep5z61vh _1yep5z61qi"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1n"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61qj"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61qj"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1o"]]}),Ee=a({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),Ve=a({defaultClassName:"_18v88n19 _1yep5z6jb _1yep5z6jc _1yep5z6jd",variantClassNames:{labelPosition:{top:"_1yep5z6tp _1yep5z6tq _1yep5z6tr",start:"_1yep5z6nm _1yep5z6nn _1yep5z6no _1yep5z6163 _1yep5z6164 _1yep5z6165"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61tv _1yep5z61tw _1yep5z61tx"]]}),je="_18v88n1y",Oe=a({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isHovered:{true:"_1yep5z612v _1yep5z615b _1yep5z618p"},isOpen:{true:"_1yep5z615b _1yep5z618p"}},defaultVariants:{},compoundVariants:[]});function F(n,s,c,p){if(s!=="number"||n===void 0||n==="")return n;let u=Number.parseFloat(n);if(Number.isNaN(u))return n;let t=u;return c!==void 0&&(t=Math.max(t,c)),p!==void 0&&(t=Math.min(t,p)),t===u?n:String(t)}function Me(n,s){return n.selectedKey==null||s!==n.selectedItem?.textValue}function Te({allowsCustomValue:n,onValueChange:s,inputType:c,minValue:p,maxValue:u},t,x,f){let[D,m]=useState(null),r=useRef(false),C=useRef(null),R=!Me(t,t.inputValue),L=(o,a)=>{C.current=a==null?null:{key:a,value:o},s?.({value:o,key:a});},N=o=>{!r.current||!Me(t,o)||(L(o,null),r.current=false);};useEffect(()=>{if(!s)return;let o=x.current,a=b=>{m(g(b));};return o?.addEventListener("focusin",a),()=>{o?.removeEventListener("focusin",a);}},[s,x,t.selectedKey]),useGranularEffect(()=>{if(t.selectedKey==null||t.selectedItem==null){t.selectionManager.isEmpty&&(C.current=null);return}let o=t.selectedKey,a=t.selectedItem.textValue,b=C.current?.key!==o;!b&&(C.current?.value===a||r.current&&!R)||(L(a,o),b&&(r.current=false));},[t.selectedKey,t.selectedItem?.textValue,R],[s,t.selectedItem]);let B=()=>{D===f.current&&n&&r.current&&(r.current=false);};useEffect(()=>{if(!s)return;let o=f.current,a=()=>{r.current=true;};return o?.addEventListener("input",a),()=>{o?.removeEventListener("input",a);}},[f,s]);let{keyboardProps:h}=a$c({isDisabled:!s,onKeyDown:o=>{if(n&&o.key==="Enter"&&r.current){let a=F(f.current?.value,c,p,u);N(a??""),r.current=false;}else o.key==="Escape"&&(t.selectedKey!=null&&(r.current=false),t.close());o.continuePropagation();}});return {inputProps:h,commitCustomValue:N,disarmPendingEdit:B}}var He=z.forwardRef(({renderOption:n,optionStyle:s,optionClassName:c,...p},u)=>jsx(a$1,{items:p.items,listBoxProps:{renderOption:n,optionStyle:s,optionClassName:c},children:t=>jsx(Fe,{...p,collection:t,ref:u})}));He.displayName="ComboBox";var Fe=z.forwardRef(({className:n,style:s,inputStyle:c$1,inputClassName:p,"data-block-id":u,"data-block-class":t,label:x,items:f$2,isInvalid:D=false,labelPosition:m="top",validationState:r="valid",variant:C="primary",toggleLabel:R,showIcon:L=true,filter:N,minValue:B,maxValue:h,inputType:o="text",onInputSubmit:a,onValueChange:b$5,tooltip:Se,collection:Ke,onTriggerPress:S,...e$1},qe)=>{let k=a$2(qe),{contains:Ae}=a$3({sensitivity:"base"}),_=b({...e$1,defaultFilter:N||Ae,defaultItems:f$2,collection:Ke,children:void 0,validationState:D?"invalid":"valid"}),K=z.useRef(null),v=z.useRef(null),q$1=z.useRef(null),M=z.useRef(null),A=z.useRef(null),{inputProps:Ue,commitCustomValue:We,disarmPendingEdit:Ge}=Te({onValueChange:b$5,allowsCustomValue:e$1.allowsCustomValue,inputType:o,minValue:B,maxValue:h},_,k,v),U=i=>{let d=F(i,o,B,h)??"";return d!==i&&!a&&!b$5&&a$i("bui.comboBox.clampNoCallback","ComboBox: minValue/maxValue clamped a value but no onInputSubmit or onValueChange callback is provided. The constraint cannot be enforced without a callback to notify the consumer."),a?.(d),d},W=()=>{let i=v.current?.value??"";!e$1.allowsCustomValue||!i||We(U(i));};a$4({ref:v,onInteractOutside:i=>{let d=g(i);if(e(k.current,d)||e(M.current,d))return;let P=v.current;if(!P||f(P)!==P){Ge();return}_.isOpen&&(W(),_.close());}});let{buttonProps:w,inputProps:Je,listBoxProps:G,labelProps:Qe,errorMessageProps:Xe,descriptionProps:Ye,validationErrors:Ze}=a$5({...e$1,onBlur:a$6(e$1.onBlur,W),inputRef:v,defaultItems:f$2,buttonRef:K,listBoxRef:q$1,popoverRef:M,validationState:r==="error"?"invalid":"valid"},_),J=e$1.errorMessage||Ze.join(" "),I=b$1({...e$1,errorMessage:J,descriptionProps:Ye,errorMessageProps:Xe,labelPosition:m});J&&(r="error");let{hoverProps:$e,isHovered:Q}=a$7({isDisabled:e$1.isDisabled}),{isFocused:X,focusProps:et,isFocusVisible:Y}=a$8(),Z=a$9({isReadOnly:e$1.isReadOnly,validationState:r}),tt=a$a({"data-read-only":e$1.isReadOnly,"data-disabled":e$1.isDisabled,"data-validation-state":r,"data-focused":X,"data-focus-visible":Y}),{labelProps:ot,fieldProps:rt}=a$b({label:x,"aria-label":e$1["aria-label"],"aria-labelledby":e$1["aria-labelledby"],"aria-describedby":e$1["aria-describedby"],"aria-details":e$1["aria-details"]}),{keyboardProps:at}=a$c({onKeyDown:i=>{e$1.allowsCustomValue&&i.key==="Enter"&&U(v.current?.value??"");}}),{tooltipProps:$}=a$d({tooltip:Se,label:e$1["aria-label"]}),{pressProps:nt}=d({onPress:S}),ee=R?.trim()||void 0,te=i=>{let{triggerProps:d,triggerRef:P}=i??{};return jsxs("div",{className:a$h(Le({labelPosition:m}),n,"BaselineUI-ComboBox"),"data-block-id":u,"data-block-class":t,style:s,ref:k,children:[x||m==="start"&&I?jsxs("div",{className:Ve({labelPosition:m,hasMessage:!!I}),children:[jsx("label",{...c(Qe,ot),className:Ee({isDisabled:e$1.isDisabled}),children:x}),m==="start"&&I]}):null,jsxs("div",{...$e,className:Ie({validationState:r,isHovered:Q,isFocused:X,variant:C,isReadOnly:!!e$1.isReadOnly,isDisabled:!!e$1.isDisabled}),ref:A,children:[jsx("input",{...c(nt,d,Je,Ue,et,tt,rt,at,o==="number"?{type:"number",min:B,max:h,onKeyDown:g=>{(g.key==="ArrowUp"||g.key==="ArrowDown")&&g.preventDefault();}}:null),id:e$1.id,ref:b$3(P,v),className:a$h(Ne({isDisabled:e$1.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",p),style:c$1}),Z&&L?jsx(Z,{className:we({validationState:r,isReadOnly:e$1.isReadOnly}),size:16}):null,jsx(b$4,{...w,onPressStart:g=>{w.onPressStart?.(g),S?.(g);},ref:K,"data-testid":"combobox-toggle-button",variant:"popover",label:null,"aria-label":ee??w["aria-label"],"aria-labelledby":ee?void 0:w["aria-labelledby"],className:Oe({isFocusVisible:!e$1.isDisabled&&!e$1.isReadOnly&&Y,isHovered:!e$1.isDisabled&&!e$1.isReadOnly&&Q,isOpen:_.isOpen})})]}),m==="top"&&I]})};return jsxs(Fragment,{children:[$?jsx(a$e,{...$,children:te}):te(),jsx(a$f,{ref:M,triggerRef:A,state:_,isNonModal:true,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsx(b$2.Provider,{value:_,children:jsx(a$g.Provider,{value:useMemo(()=>({...G,ref:q$1}),[G]),children:jsx(q,{selectionMode:"single",className:a$h(f$1,je,"BaselineUI-ComboBox-ListBox")})})})})]})});Fe.displayName="ComboBoxInner";export{He as a};
|