@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/TreeView.css
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
@layer bui-base;@layer bui-variants;@layer bui-base{.cjv3et1{overflow:auto;outline:none;width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-xl))}[data-device=tablet] .cjv3et1,[data-device=tablet].cjv3et1{width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-2-xl))}[data-device=desktop] .cjv3et1,[data-device=desktop].cjv3et1{width:var(--cjv3et0)}}@layer bui-variants{.cjv3et2{max-width:240px}.cjv3et3{max-width:480px}.cjv3et4{max-width:720px}.cjv3et5{width:unset;max-width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-xl))}[data-device=tablet] .cjv3et5,[data-device=tablet].cjv3et5,[data-device=desktop] .cjv3et5,[data-device=desktop].cjv3et5{max-width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-2-xl))}.cjv3et7{outline:none;border-color:transparent}.cjv3eta{max-width:100vw}}@layer bui-base;@layer bui-variants;._1gzftthc{position:fixed;inset:0;z-index:1;overflow:hidden}._1gzftthd{opacity:0;position:fixed;pointer-events:none}._1gzftth1:has(.cjv3et1[data-focus-visible=true]) ._1gzftth2{display:none}._1gzftth1:has(.cjv3et1[data-focus-visible=true]) ._1gzftth7{display:block}@layer bui-base{._1gzftth1{min-width:max-content;position:absolute}._1gzftth1[data-placement=top],._1gzftth1[data-placement=bottom]{width:var(--_1gzftth0)}._1gzftth2{position:absolute}._1gzftth7{display:none;z-index:9}}@layer bui-variants{._1gzftth3{transform:rotate(180deg) translate(-50%,8px);transform-origin:left}._1gzftth4{bottom:0;transform:translate(-50%,8px)}._1gzftth5{transform:rotate(90deg) translate(-50%,11px)}._1gzftth6{right:0;transform:rotate(-90deg) translate(50%,11px);transform-origin:center}._1gzftth8{transform:rotate(180deg) translate(-50%,10px);transform-origin:left}._1gzftth9{bottom:0;transform:translate(-50%,10px)}._1gzfttha{transform:rotate(90deg) translate(-50%,10px)}._1gzftthb{right:0;transform:rotate(-90deg) translate(50%,10px);transform-origin:center}}@layer bui-reset;.z9nup81{display:flex;flex-direction:row}.z9nup82{pointer-events:none;cursor:not-allowed}.z9nup83{background-image:repeating-conic-gradient(transparent 0% 25%,var(--bui-color-background-secondary-medium) 25% 50%)}.z9nup84{background-size:4px 4px}.z9nup85{background-size:6px 6px}.z9nup87{position:relative}.z9nup87:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:100%;min-height:var(--hj25q10);background:transparent;pointer-events:auto}.z9nup89{position:relative}.z9nup89:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:var(--hj25q10);min-height:var(--hj25q10);background:transparent;pointer-events:auto}@layer bui-reset{.z9nup80{display:contents}.z9nup86{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(pointer:coarse){.z9nup88{position:relative}.z9nup88:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:100%;min-height:var(--hj25q10);background:transparent;pointer-events:auto}.z9nup8a{position:relative}.z9nup8a:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:var(--hj25q10);min-height:var(--hj25q10);background:transparent;pointer-events:auto}}@layer bui-base;._1jwycy80{width:0;height:0;border-right:7px solid transparent;border-bottom:8px solid;border-left:7px solid transparent;position:absolute}._1jwycy81{transform:translate(-50%,-7px)}._1jwycy82{transform:translate(10px,-50%) rotate(90deg);right:0}._1jwycy83{transform:translate(-10px,-50%) rotate(270deg);left:0}._1jwycy84{transform:translate(-50%,7px) rotate(180deg);bottom:0}._1jwycy85{border-bottom-color:var(--bui-color-background-inverse-strong)}._1jwycy86{border-bottom-color:var(--bui-color-background-primary-subtle)}@layer bui-base{._1jwycy87{max-inline-size:35ch}}@layer bui-reset;@layer bui-variants;.uf19bsf{transition-property:rotate}.uf19bse[aria-expanded=true] .uf19bsf{rotate:180deg}@layer bui-reset{.uf19bs0{all:unset;height:fit-content}}@layer bui-variants{.uf19bs1{min-height:16px;min-width:16px}.uf19bs2{min-height:24px;min-width:24px}.uf19bs3{min-height:32px;min-width:32px}.uf19bs4{min-height:40px;min-width:40px}.uf19bs5{min-height:48px;min-width:48px}.uf19bs7{cursor:not-allowed}.uf19bs8{box-shadow:inset 0 0 0 2px var(--bui-color-focused-default)}.uf19bs9[aria-expanded=true],.uf19bs9[data-pressed=true]{background-color:var(--bui-color-background-primary-medium)}.uf19bsa[aria-expanded=true],.uf19bsa[data-pressed=true]{color:var(--bui-color-icon-secondary)}.uf19bsb[aria-expanded=true],.uf19bsb[data-pressed=true]{background-color:var(--bui-color-background-primary-strong);color:var(--bui-color-icon-interactive-enabled)}.uf19bsc[aria-expanded=true],.uf19bsc[data-pressed=true]{color:var(--bui-color-icon-interactive-active)}.uf19bsd[aria-expanded=true],.uf19bsd[data-pressed=true]{background-color:var(--bui-color-background-primary-strong)}.uf19bse{min-height:unset;width:fit-content;min-width:unset}.uf19bse[aria-expanded=true],.uf19bse[data-pressed=true]{outline:1px solid var(--bui-color-border-medium);outline-offset:-1px}}@layer bui-variants;@layer bui-variants;@layer bui-variants;@layer bui-base;@layer bui-compound-variants;.nrh1ehx{position:absolute;bottom:2px;inset-inline-end:2px;width:8px;height:8px;transform:scaleX(var(--_1hotumh0));pointer-events:none;color:var(--bui-color-text-helper)}@layer bui-variants{.nrh1ehd{cursor:not-allowed}.nrh1ehh{height:auto;min-height:60px;position:relative;resize:both;max-width:100%}.nrh1ehh::-webkit-resizer{display:none}.nrh1ehn{cursor:inherit;color:var(--bui-color-text-interactive-disabled)}.nrh1ehn::placeholder{color:var(--bui-color-text-interactive-disabled)}.nrh1ehp{text-align:right}.nrh1ehq{height:auto;min-height:58px;box-sizing:border-box;resize:none;overflow:auto}.nrh1eh11{width:max-content;max-width:100px}}@layer bui-base{.nrh1eh7{overflow:hidden;height:32px}.nrh1ehm{background-color:transparent;height:inherit;text-align:inherit}.nrh1ehm::placeholder{color:var(--bui-color-text-placeholder)}}@layer bui-compound-variants{.nrh1ehi{border-color:transparent;border-bottom:1px solid var(--bui-color-border-medium)}.nrh1ehj{transition:border-color .2s ease-in-out}.nrh1ehk,.nrh1ehl{resize:none}}@layer bui-reset;@layer bui-base;@layer bui-variants;@layer bui-compound-variants;@layer bui-reset{._1j5skr70{all:unset}}@layer bui-base{._1j5skr71{aspect-ratio:1 / 1;height:fit-content}._1j5skr77{background-color:transparent}}@layer bui-variants{._1j5skr72{min-height:16px}._1j5skr73{min-height:24px}._1j5skr74{min-height:32px}._1j5skr75{min-height:40px}._1j5skr76{min-height:48px}._1j5skr7b{background-color:var(--bui-color-background-interactive-disabled)}}@layer bui-compound-variants{._1j5skr7c{background-color:var(--bui-color-background-interactive-enabled)}._1j5skr7d{background-color:transparent}._1j5skr7e{outline-offset:-3px}._1j5skr7k{background-color:var(--bui-color-background-interactive-enabled);outline-offset:-3px}}@layer bui-reset;@layer bui-base;@layer bui-variants;.
|
|
10
|
+
@layer bui-base;@layer bui-variants;@layer bui-base{.cjv3et1{overflow:auto;outline:none;width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-xl))}[data-device=tablet] .cjv3et1,[data-device=tablet].cjv3et1{width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-2-xl))}[data-device=desktop] .cjv3et1,[data-device=desktop].cjv3et1{width:var(--cjv3et0)}}@layer bui-variants{.cjv3et2{max-width:240px}.cjv3et3{max-width:480px}.cjv3et4{max-width:720px}.cjv3et5{width:unset;max-width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-xl))}[data-device=tablet] .cjv3et5,[data-device=tablet].cjv3et5,[data-device=desktop] .cjv3et5,[data-device=desktop].cjv3et5{max-width:calc(var(--cjv3et0) - 2 * var(--bui-spacing-2-xl))}.cjv3et7{outline:none;border-color:transparent}.cjv3eta{max-width:100vw}}@layer bui-base;@layer bui-variants;._1gzftthc{position:fixed;inset:0;z-index:1;overflow:hidden}._1gzftthd{opacity:0;position:fixed;pointer-events:none}._1gzftth1:has(.cjv3et1[data-focus-visible=true]) ._1gzftth2{display:none}._1gzftth1:has(.cjv3et1[data-focus-visible=true]) ._1gzftth7{display:block}@layer bui-base{._1gzftth1{min-width:max-content;position:absolute}._1gzftth1[data-placement=top],._1gzftth1[data-placement=bottom]{width:var(--_1gzftth0)}._1gzftth2{position:absolute}._1gzftth7{display:none;z-index:9}}@layer bui-variants{._1gzftth3{transform:rotate(180deg) translate(-50%,8px);transform-origin:left}._1gzftth4{bottom:0;transform:translate(-50%,8px)}._1gzftth5{transform:rotate(90deg) translate(-50%,11px)}._1gzftth6{right:0;transform:rotate(-90deg) translate(50%,11px);transform-origin:center}._1gzftth8{transform:rotate(180deg) translate(-50%,10px);transform-origin:left}._1gzftth9{bottom:0;transform:translate(-50%,10px)}._1gzfttha{transform:rotate(90deg) translate(-50%,10px)}._1gzftthb{right:0;transform:rotate(-90deg) translate(50%,10px);transform-origin:center}}@layer bui-reset;.z9nup81{display:flex;flex-direction:row}.z9nup82{pointer-events:none;cursor:not-allowed}.z9nup83{background-image:repeating-conic-gradient(transparent 0% 25%,var(--bui-color-background-secondary-medium) 25% 50%)}.z9nup84{background-size:4px 4px}.z9nup85{background-size:6px 6px}.z9nup87{position:relative}.z9nup87:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:100%;min-height:var(--hj25q10);background:transparent;pointer-events:auto}.z9nup89{position:relative}.z9nup89:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:var(--hj25q10);min-height:var(--hj25q10);background:transparent;pointer-events:auto}@layer bui-reset{.z9nup80{display:contents}.z9nup86{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(pointer:coarse){.z9nup88{position:relative}.z9nup88:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:100%;min-height:var(--hj25q10);background:transparent;pointer-events:auto}.z9nup8a{position:relative}.z9nup8a:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:var(--hj25q10);min-height:var(--hj25q10);background:transparent;pointer-events:auto}}@layer bui-base;._1jwycy80{width:0;height:0;border-right:7px solid transparent;border-bottom:8px solid;border-left:7px solid transparent;position:absolute}._1jwycy81{transform:translate(-50%,-7px)}._1jwycy82{transform:translate(10px,-50%) rotate(90deg);right:0}._1jwycy83{transform:translate(-10px,-50%) rotate(270deg);left:0}._1jwycy84{transform:translate(-50%,7px) rotate(180deg);bottom:0}._1jwycy85{border-bottom-color:var(--bui-color-background-inverse-strong)}._1jwycy86{border-bottom-color:var(--bui-color-background-primary-subtle)}@layer bui-base{._1jwycy87{max-inline-size:35ch}}@layer bui-reset;@layer bui-variants;.uf19bsf{transition-property:rotate}.uf19bse[aria-expanded=true] .uf19bsf{rotate:180deg}@layer bui-reset{.uf19bs0{all:unset;height:fit-content}.uf19bs0[draggable=true]{-webkit-user-drag:element}}@layer bui-variants{.uf19bs1{min-height:16px;min-width:16px}.uf19bs2{min-height:24px;min-width:24px}.uf19bs3{min-height:32px;min-width:32px}.uf19bs4{min-height:40px;min-width:40px}.uf19bs5{min-height:48px;min-width:48px}.uf19bs7{cursor:not-allowed}.uf19bs8{box-shadow:inset 0 0 0 2px var(--bui-color-focused-default)}.uf19bs9[aria-expanded=true],.uf19bs9[data-pressed=true]{background-color:var(--bui-color-background-primary-medium)}.uf19bsa[aria-expanded=true],.uf19bsa[data-pressed=true]{color:var(--bui-color-icon-secondary)}.uf19bsb[aria-expanded=true],.uf19bsb[data-pressed=true]{background-color:var(--bui-color-background-primary-strong);color:var(--bui-color-icon-interactive-enabled)}.uf19bsc[aria-expanded=true],.uf19bsc[data-pressed=true]{color:var(--bui-color-icon-interactive-active)}.uf19bsd[aria-expanded=true],.uf19bsd[data-pressed=true]{background-color:var(--bui-color-background-primary-strong)}.uf19bse{min-height:unset;width:fit-content;min-width:unset}.uf19bse[aria-expanded=true],.uf19bse[data-pressed=true]{outline:1px solid var(--bui-color-border-medium);outline-offset:-1px}}@layer bui-variants;@layer bui-variants;@layer bui-variants;@layer bui-base;@layer bui-compound-variants;.nrh1ehx{position:absolute;bottom:2px;inset-inline-end:2px;width:8px;height:8px;transform:scaleX(var(--_1hotumh0));pointer-events:none;color:var(--bui-color-text-helper)}@layer bui-variants{.nrh1ehd{cursor:not-allowed}.nrh1ehh{height:auto;min-height:60px;position:relative;resize:both;max-width:100%}.nrh1ehh::-webkit-resizer{display:none}.nrh1ehn{cursor:inherit;color:var(--bui-color-text-interactive-disabled)}.nrh1ehn::placeholder{color:var(--bui-color-text-interactive-disabled)}.nrh1ehp{text-align:right}.nrh1ehq{height:auto;min-height:58px;box-sizing:border-box;resize:none;overflow:auto}.nrh1eh11{width:max-content;max-width:100px}}@layer bui-base{.nrh1eh7{overflow:hidden;height:32px}.nrh1ehm{background-color:transparent;height:inherit;text-align:inherit}.nrh1ehm::placeholder{color:var(--bui-color-text-placeholder)}}@layer bui-compound-variants{.nrh1ehi{border-color:transparent;border-bottom:1px solid var(--bui-color-border-medium)}.nrh1ehj{transition:border-color .2s ease-in-out}.nrh1ehk,.nrh1ehl{resize:none}}@layer bui-reset;@layer bui-base;@layer bui-variants;@layer bui-compound-variants;@layer bui-reset{._1j5skr70{all:unset}}@layer bui-base{._1j5skr71{aspect-ratio:1 / 1;height:fit-content}._1j5skr77{background-color:transparent}}@layer bui-variants{._1j5skr72{min-height:16px}._1j5skr73{min-height:24px}._1j5skr74{min-height:32px}._1j5skr75{min-height:40px}._1j5skr76{min-height:48px}._1j5skr7b{background-color:var(--bui-color-background-interactive-disabled)}}@layer bui-compound-variants{._1j5skr7c{background-color:var(--bui-color-background-interactive-enabled)}._1j5skr7d{background-color:transparent}._1j5skr7e{outline-offset:-3px}._1j5skr7k{background-color:var(--bui-color-background-interactive-enabled);outline-offset:-3px}}@layer bui-reset;@layer bui-base;@layer bui-variants;._10dw1p97 ._10dw1p98 svg{transition:transform .2s ease-in-out}._10dw1p97[data-expanded=true] ._10dw1p98 svg{transform:rotate(90deg)}._10dw1p9b{--_10dw1p9a: calc(32px + var(--bui-spacing-sm))}._10dw1p9c{--_10dw1p9a: calc(64px + var(--bui-spacing-sm))}@layer bui-reset{._10dw1p90{all:unset}._10dw1p90[draggable=true]{-webkit-user-drag:element}._10dw1p96{all:unset;display:block;outline:none}._10dw1p96[draggable=true]{-webkit-user-drag:element}}@layer bui-base{._10dw1p90{min-height:32px}}@layer bui-variants{._10dw1p99 .BaselineUI-DropIndicator{margin-inline-start:calc(var(--bui-spacing-md) + 24px + var(--bui-spacing-sm) + var(--_10dw1p9a, 0px) + (var(--tree-item-level, 1) - 1) * 2 * var(--bui-spacing-lg))}}
|
package/dist/TreeView.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as TreeView}from'./chunk-
|
|
1
|
+
export{a as TreeView}from'./chunk-VETO7WNN.mjs';import'./chunk-ZFGTKLCU.mjs';import'./chunk-SVV6DLJH.mjs';import'./chunk-TH4XPZEO.mjs';import'./chunk-TFSBTGTQ.mjs';import'./chunk-BTPAZDGG.mjs';import'./chunk-5USQ6HBY.mjs';import'./chunk-ONEE6UCM.mjs';import'./chunk-COHK4QQW.mjs';import'./chunk-KT4FTBJ2.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-YQHHE5AT.mjs';import'./chunk-TAT552A5.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-MIF6BAPG.mjs';import'./chunk-6G7EUNZW.mjs';import'./chunk-PD5ZXNGT.mjs';import'./chunk-ZQOR4LCM.mjs';import'./chunk-AK7XHUQW.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-PYV5J322.mjs';import'./chunk-2MS356Q7.mjs';import'./chunk-E22TWF63.mjs';import'./chunk-7SKQUEHP.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-SZTFMBPY.mjs';import'./chunk-PG3WDHSK.mjs';import'./chunk-3DWFAHR2.mjs';import'./chunk-5ANNWMLJ.mjs';import'./chunk-UO75BAPM.mjs';import'./chunk-7SQRBY7N.mjs';import'./chunk-CY6W27WG.mjs';import'./chunk-R6TFTLMV.mjs';import'./chunk-DZDZZRWE.mjs';import'./chunk-XXANV3FM.mjs';import'./chunk-F7PGMOQF.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-6QQEK5I6.mjs';import'./chunk-W6QO7FPZ.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-O7XK2WIX.mjs';import'./chunk-VGFPT43C.mjs';import'./chunk-3BG6K2G2.mjs';import'./chunk-GCBMNOA6.mjs';import'./chunk-FP5EWPOF.mjs';import'./chunk-2VOWBYNS.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-NRQSR3G7.mjs';import'./chunk-3KCSUNRV.mjs';import'./chunk-OYSOPCTA.mjs';import'./chunk-BGQRLALS.mjs';import'./chunk-IHES52NR.mjs';import'./chunk-4EAXDHSV.mjs';import'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';import'./chunk-LJZ7ZS4C.mjs';import'./chunk-RPIUPWPO.mjs';import'./chunk-XMGPNXZH.mjs';import'./chunk-4JQUB53Q.mjs';import'./chunk-KX7WG3L4.mjs';import'./chunk-NUCSMH4S.mjs';import'./chunk-CIPPPD6E.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-UFN2OAM2.mjs';import'./chunk-OO7BXL2N.mjs';import'./chunk-OQPYPKZV.mjs';import'./chunk-D4NW56YQ.mjs';import'./chunk-C4WHTPLY.mjs';import'./chunk-GMALMQWI.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-5FK5AJ7A.mjs';import'./chunk-5IC46G5J.mjs';import'./chunk-QAUEG3EX.mjs';import'./chunk-CV6JQGJ3.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';import'./chunk-K5RYVERS.mjs';import'./chunk-BIDNNBRG.mjs';import'./chunk-3K2H3JOE.mjs';import'./chunk-NJKSUI2F.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';import'./chunk-MBRNO6IW.mjs';import'./chunk-ZLDT2KDZ.mjs';import'./chunk-22MA6EYO.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-AYQN3OH2.mjs';import'./chunk-VDUFLHKK.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-CU6D2EA6.mjs';import'./chunk-JJG67M2S.mjs';import'./chunk-66CUIXA6.mjs';import'./chunk-MDE2FQHX.mjs';import'./chunk-J4OPD7OL.mjs';import'./chunk-GQIS4QBN.mjs';import'./chunk-4P247R4V.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-Y2MIU76N.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-AI6WQPRX.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-4QBHQCCK.mjs';import'./chunk-SGZWUG3H.mjs';import'./chunk-RSKKEGJZ.mjs';import'./chunk-STMDFIUL.mjs';import'./chunk-HH4VLTF3.mjs';import'./chunk-4S4GGUSH.mjs';import'./chunk-KUDCYGII.mjs';import'./chunk-B3EZOXNU.mjs';import'./chunk-F7WPMQ3P.mjs';import'./chunk-235S3EB7.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-S4HLMIFK.mjs';import'./chunk-PPHSLODC.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-3WKDIXCM.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-ETM4MNG4.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-SD43KVTU.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-JQQGRJ5J.mjs';import'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/UNSAFE_ListBox.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as useDragAndDrop}from'./chunk-
|
|
1
|
+
export{a as useDragAndDrop}from'./chunk-R7R7JDA3.mjs';import'./chunk-XD43CVDT.mjs';export{q as UNSAFE_ListBox}from'./chunk-K7VOXFSK.mjs';import'./chunk-KT4FTBJ2.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-YQHHE5AT.mjs';import'./chunk-AMW7LGCF.mjs';import'./chunk-NYCG264A.mjs';import'./chunk-BLHN7I5Z.mjs';import'./chunk-BROSGYL3.mjs';import'./chunk-R3HHMCE5.mjs';import'./chunk-TAT552A5.mjs';import'./chunk-24R46WQW.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-MIF6BAPG.mjs';import'./chunk-6G7EUNZW.mjs';import'./chunk-PD5ZXNGT.mjs';import'./chunk-4MHBLLHV.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-DF2D7NE6.mjs';import'./chunk-ZQOR4LCM.mjs';import'./chunk-4W5VP4NV.mjs';import'./chunk-UUTMZQQA.mjs';import'./chunk-UZ672WDX.mjs';import'./chunk-FOKMDEP7.mjs';import'./chunk-I7LPPUZS.mjs';import'./chunk-5ANNWMLJ.mjs';import'./chunk-GFTIEY5K.mjs';import'./chunk-UO75BAPM.mjs';import'./chunk-R6TFTLMV.mjs';import'./chunk-O7XK2WIX.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-NRQSR3G7.mjs';import'./chunk-BGQRLALS.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-CIPPPD6E.mjs';import'./chunk-OQPYPKZV.mjs';import'./chunk-C4WHTPLY.mjs';import'./chunk-GMALMQWI.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-5FK5AJ7A.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-K5RYVERS.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';import'./chunk-22MA6EYO.mjs';import'./chunk-C342HL26.mjs';import'./chunk-AYQN3OH2.mjs';import'./chunk-22VRCVTH.mjs';import'./chunk-CU6D2EA6.mjs';import'./chunk-JJG67M2S.mjs';import'./chunk-66CUIXA6.mjs';import'./chunk-MDE2FQHX.mjs';import'./chunk-J4OPD7OL.mjs';import'./chunk-GQIS4QBN.mjs';import'./chunk-4P247R4V.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-Y2MIU76N.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-AI6WQPRX.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-4QBHQCCK.mjs';import'./chunk-SGZWUG3H.mjs';import'./chunk-STMDFIUL.mjs';import'./chunk-HH4VLTF3.mjs';import'./chunk-4S4GGUSH.mjs';import'./chunk-KUDCYGII.mjs';import'./chunk-B3EZOXNU.mjs';import'./chunk-F7WPMQ3P.mjs';import'./chunk-235S3EB7.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-S4HLMIFK.mjs';import'./chunk-PPHSLODC.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-3WKDIXCM.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-ETM4MNG4.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-SD43KVTU.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-JQQGRJ5J.mjs';import'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|
package/dist/Virtualizer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-
|
|
1
|
+
export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-OZMADP4Z.mjs';import'./chunk-5BKC373Y.mjs';import'./chunk-SVV6DLJH.mjs';import'./chunk-TH4XPZEO.mjs';import'./chunk-UTQ7AIPM.mjs';import'./chunk-TFSBTGTQ.mjs';import'./chunk-BTPAZDGG.mjs';import'./chunk-5USQ6HBY.mjs';import'./chunk-6F66XVOA.mjs';import'./chunk-COHK4QQW.mjs';import'./chunk-NO55UIGK.mjs';import'./chunk-5BAHJXOI.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-YQHHE5AT.mjs';export{d as Autocomplete}from'./chunk-NYCG264A.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-6G7EUNZW.mjs';import'./chunk-PD5ZXNGT.mjs';import'./chunk-ZQOR4LCM.mjs';import'./chunk-7SKQUEHP.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-UO75BAPM.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-6QQEK5I6.mjs';import'./chunk-W6QO7FPZ.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-UFN2OAM2.mjs';import'./chunk-D4NW56YQ.mjs';import'./chunk-C4WHTPLY.mjs';import'./chunk-GMALMQWI.mjs';import'./chunk-USMC34OO.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-KG2EHFYA.mjs';import'./chunk-YHI2PD3M.mjs';import'./chunk-5FK5AJ7A.mjs';import'./chunk-N2XGJKZG.mjs';import'./chunk-K5RYVERS.mjs';import'./chunk-NQIZ3U7Q.mjs';import'./chunk-5YHNHEDK.mjs';import'./chunk-AYQN3OH2.mjs';import'./chunk-JJG67M2S.mjs';import'./chunk-J4OPD7OL.mjs';import'./chunk-GQIS4QBN.mjs';import'./chunk-4P247R4V.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-Y2MIU76N.mjs';import'./chunk-AI6WQPRX.mjs';import'./chunk-FPM5UJRF.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-4QBHQCCK.mjs';import'./chunk-SGZWUG3H.mjs';import'./chunk-STMDFIUL.mjs';import'./chunk-HH4VLTF3.mjs';import'./chunk-4S4GGUSH.mjs';import'./chunk-KUDCYGII.mjs';import'./chunk-B3EZOXNU.mjs';import'./chunk-F7WPMQ3P.mjs';import'./chunk-235S3EB7.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-RT4LMB6X.mjs';import'./chunk-S4HLMIFK.mjs';import'./chunk-PPHSLODC.mjs';import'./chunk-54IAJ3RI.mjs';import'./chunk-3WKDIXCM.mjs';import'./chunk-SVIYLH7R.mjs';import'./chunk-ETM4MNG4.mjs';import'./chunk-6ZQE5SHE.mjs';import'./chunk-SD43KVTU.mjs';import'./chunk-RMUV6NJJ.mjs';import'./chunk-XPISSX5R.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-CU6D2EA6.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {useEffect}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {a}from'./chunk-FPM5UJRF.mjs';import {useState,useCallback}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {d}from'./chunk-MRJFGHFW.mjs';/**
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
function
|
|
10
|
+
function d(n){let[o,e]=a(n.isOpen,n.defaultOpen||false,n.onOpenChange),[i,l]=useState(null),a$1=useCallback(()=>{e(true);},[e]),s=useCallback(()=>{e(false);},[e]),p=useCallback(()=>{e(!o);},[e,o]);return {isOpen:o,setOpen:e,open:a$1,close:s,toggle:p,point:i,setPoint:l}}export{d as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {c,a as a$2}from'./chunk-PPHSLODC.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {j,b,i,a as a$1,g,c as c$1,h}from'./chunk-SD43KVTU.mjs';import {useRef,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 M(n){let e=n;return e.nativeEvent=n,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function N(n,e){Object.defineProperty(n,"target",{value:e}),Object.defineProperty(n,"currentTarget",{value:e});}function q(n){let e=useRef({isFocused:false,observer:null});return a(()=>{let o=e.current;return ()=>{o.observer&&(o.observer.disconnect(),o.observer=null);}},[]),useCallback(o=>{let i$1=j(o),c=b(i$1);if(i$1 instanceof c.HTMLButtonElement||i$1 instanceof c.HTMLInputElement||i$1 instanceof c.HTMLTextAreaElement||i$1 instanceof c.HTMLSelectElement){e.current.isFocused=true;let r=i$1,u=s=>{if(e.current.isFocused=false,r.disabled){let a=M(s);n?.(a);}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null);};r.addEventListener("focusout",u,{once:true}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){e.current.observer?.disconnect();let s=r===i(a$1(r))?null:i(a$1(r));r.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:s}));}}),e.current.observer.observe(r,{attributes:true,attributeFilter:["disabled"]});}},[n])}var y=false;function V(n){for(;n&&!c(n,{skipVisibilityCheck:true});)n=n.parentElement;let e=b(n),o=i(e.document);if(!o||o===n)return;let i$1=t=>t===n||c$1(t)&&h(n,t),c$2=t=>t===o||o!=null&&c$1(t)&&h(o,t);y=true;let r=false,u=t=>{(c$2(j(t))||r)&&t.stopImmediatePropagation();},s=t=>{(c$2(j(t))||r)&&(t.stopImmediatePropagation(),!n&&!r&&(r=true,a$2(o),f()));},a=t=>{(i$1(j(t))||r)&&t.stopImmediatePropagation();},E=t=>{(i$1(j(t))||r)&&(t.stopImmediatePropagation(),r||(r=true,a$2(o),f()));},l=e.document;e.addEventListener("blur",u,true),e.addEventListener("focusout",s,true),e.addEventListener("focusin",E,true),e.addEventListener("focus",a,true),l.addEventListener("blur",u,true),l.addEventListener("focusout",s,true),l.addEventListener("focusin",E,true),l.addEventListener("focus",a,true);let b$1=[];if(g()){let t=new Set;for(let v of [o,n])if(v){let T=v.getRootNode();T instanceof b(v).ShadowRoot&&t.add(T);}b$1=[...t];for(let v of b$1)v.addEventListener("blur",u,true),v.addEventListener("focusout",s,true),v.addEventListener("focusin",E,true),v.addEventListener("focus",a,true);}let f=()=>{cancelAnimationFrame(O),e.removeEventListener("blur",u,true),e.removeEventListener("focusout",s,true),e.removeEventListener("focusin",E,true),e.removeEventListener("focus",a,true),l.removeEventListener("blur",u,true),l.removeEventListener("focusout",s,true),l.removeEventListener("focusin",E,true),l.removeEventListener("focus",a,true);for(let t of b$1)t.removeEventListener("blur",u,true),t.removeEventListener("focusout",s,true),t.removeEventListener("focusin",E,true),t.removeEventListener("focus",a,true);y=false,r=false;},O=requestAnimationFrame(f);return f}export{M as a,N as b,q as c,y as d,V as e};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {l,q,e,B,o,p,u,h,d as d$1,A,g,v,x,z,f,i,m,c as c$2,r,t,s,n as n$1,j as j$2,a as a$3,b as b$4,w}from'./chunk-4MHBLLHV.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {d as d$2,a as a$1,b as b$3}from'./chunk-GQIS4QBN.mjs';import {d}from'./chunk-KUDCYGII.mjs';import {j,h as h$1,m as m$1,n}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a,c}from'./chunk-ETM4MNG4.mjs';import {a as a$2}from'./chunk-6ZQE5SHE.mjs';import {b as b$2,j as j$1}from'./chunk-SD43KVTU.mjs';import {flushSync}from'react-dom';import We,{useState,useRef,useImperativeHandle,useEffect,useCallback,version}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Ze=We.forwardRef(function(e,n){let t=e.children,[s,l]=useState(null),v=useRef(null),d=useRef(void 0);return useImperativeHandle(n,()=>(h,K)=>{let T=t(h),O,a,b;T&&typeof T=="object"&&"element"in T?(O=T.element,a=T.x,b=T.y):O=T,flushSync(()=>{l(O);}),K(v.current,a,b),d.current=requestAnimationFrame(()=>{l(null);});},[t]),useEffect(()=>()=>{d.current&&cancelAnimationFrame(d.current);},[]),s?jsx("div",{style:{zIndex:-100,position:"fixed",top:0,left:-1e5},ref:v,children:s}):null});function Be(i,e,n,t,s=false,l=false){switch(t){case "left":return s?oe(i,e,n,l,"left"):ne(i,e,n,l,"left");case "right":return s?ne(i,e,n,l,"right"):oe(i,e,n,l,"right");case "up":return ne(i,e,n,l);case "down":return oe(i,e,n,l)}}function oe(i,e,n,t=false,s=null){if(!n)return {type:"root"};if(n.type==="root"){let l=i.getFirstKey?.()??null;return l!=null?{type:"item",key:l,dropPosition:"before"}:null}if(n.type==="item"){let l=null;s?l=s==="right"?i.getKeyRightOf?.(n.key,{includeDisabled:true}):i.getKeyLeftOf?.(n.key,{includeDisabled:true}):l=i.getKeyBelow?.(n.key,{includeDisabled:true});let v=le(e,n.key,d=>e.getKeyAfter(d));if(l!=null&&l!==v)return {type:"item",key:l,dropPosition:n.dropPosition};switch(n.dropPosition){case "before":return {type:"item",key:n.key,dropPosition:"on"};case "on":{let d=e.getItem(n.key),h=l!=null?e.getItem(l):null;return d&&h&&h.level>=d.level?{type:"item",key:h.key,dropPosition:"before"}:{type:"item",key:n.key,dropPosition:"after"}}case "after":{let d=e.getItem(n.key),h=d?.nextKey!=null?e.getItem(d.nextKey):null;for(;h!=null&&h.type!=="item";)h=h.nextKey!=null?e.getItem(h.nextKey):null;if(d&&h==null&&d.parentKey!=null){let K=e.getItem(d.parentKey),T=K?.nextKey!=null?e.getItem(K.nextKey):null;if(T?.type==="item")return {type:"item",key:T.key,dropPosition:"before"};if(K?.type==="item")return {type:"item",key:K.key,dropPosition:"after"}}if(h)return {type:"item",key:h.key,dropPosition:"on"}}}}return t?{type:"root"}:null}function ne(i,e,n,t=false,s=null){if(!n||t&&n.type==="root"){let l=null,v=i.getLastKey?.();for(;v!=null;){let d=e.getItem(v);if(d?.type!=="item")break;l=v,v=d?.parentKey;}return l!=null?{type:"item",key:l,dropPosition:"after"}:null}if(n.type==="item"){let l=null;s?l=s==="left"?i.getKeyLeftOf?.(n.key,{includeDisabled:true}):i.getKeyRightOf?.(n.key,{includeDisabled:true}):l=i.getKeyAbove?.(n.key,{includeDisabled:true});let v=le(e,n.key,d=>e.getKeyBefore(d));if(l!=null&&l!==v)return {type:"item",key:l,dropPosition:n.dropPosition};switch(n.dropPosition){case "before":{let d=e.getItem(n.key);if(d&&d.prevKey!=null){let h=Fe(e,d.prevKey);if(h)return h}return l!=null?{type:"item",key:l,dropPosition:"on"}:{type:"root"}}case "on":return {type:"item",key:n.key,dropPosition:"before"};case "after":{let d=Fe(e,n.key);return d||{type:"item",key:n.key,dropPosition:"on"}}}}return n.type!=="root"?{type:"root"}:null}function Fe(i,e){let n=i.getItem(e),t=le(i,e,l=>i.getKeyAfter(l)),s=t!=null?i.getItem(t):null;if(n&&s&&s.level>n.level){let l=null;if("lastChildKey"in n)for(l=n.lastChildKey!=null?i.getItem(n.lastChildKey):null;l&&l.type!=="item"&&l.prevKey!=null;)l=i.getItem(l.prevKey);else l=Array.from(n.childNodes).findLast(v=>v.type==="item")||null;if(l)return {type:"item",key:l.key,dropPosition:"after"}}return null}function le(i,e,n){let t=n(e),s=t!=null?i.getItem(t):null;for(;s&&s.type!=="item";)t=n(s.key),s=t!=null?i.getItem(t):null;return t}var Q=20;function He(i){let e=useRef(null),n=useRef(true),t=useRef(true);useEffect(()=>{if(i.current){e.current=a$1(i.current)?i.current:b$3(i.current);let v=window.getComputedStyle(e.current);n.current=/(auto|scroll)/.test(v.overflowX),t.current=/(auto|scroll)/.test(v.overflowY);}},[i]);let s=useRef({timer:void 0,dx:0,dy:0}).current;useEffect(()=>()=>{s.timer&&(cancelAnimationFrame(s.timer),s.timer=void 0);},[s]);let l=useCallback(()=>{n.current&&e.current&&(e.current.scrollLeft+=s.dx),t.current&&e.current&&(e.current.scrollTop+=s.dy),s.timer&&(s.timer=requestAnimationFrame(l));},[e,s]);return {move(v,d){if(!j()||h$1()||!e.current)return;let h=e.current.getBoundingClientRect(),K=Q,T=Q,O=h.height-Q,a=h.width-Q;v<K||v>a||d<T||d>O?(v<K?s.dx=v-K:v>a&&(s.dx=v-a),d<T?s.dy=d-T:d>O&&(s.dy=d-O),s.timer||(s.timer=requestAnimationFrame(l))):this.stop();},stop(){s.timer&&(cancelAnimationFrame(s.timer),s.timer=void 0);}}}function tt(i,e$1,n){let t=useRef({props:i,state:e$1,nextTarget:null,dropOperation:null}).current;t.props=i,t.state=e$1;let s=useCallback(async a=>{let{onInsert:b,onRootDrop:g,onItemDrop:c,onReorder:p,onMove:m,acceptedDragTypes:u="all",shouldAcceptItemDrop:r}=t.props,{draggingKeys:f}=l,y=q(n),{target:o,dropOperation:D,items:P}=a,w=P;(u!=="all"||r)&&(w=P.filter(E=>{let S;return E.kind==="directory"?S=new Set([e]):S=E.kind==="file"?new Set([E.type]):E.types,u==="all"||u.some(x=>S.has(x))?o.type==="item"&&o.dropPosition==="on"&&r?r(o,S):true:false})),w.length>0&&(o.type==="root"&&g&&await g({items:w,dropOperation:D}),o.type==="item"&&(o.dropPosition==="on"&&c&&await c({items:w,dropOperation:D,isInternal:y,target:o}),m&&y&&await m({keys:f,dropOperation:D,target:o}),o.dropPosition!=="on"&&(!y&&b&&await b({items:w,dropOperation:D,target:o}),y&&p&&await p({keys:f,dropOperation:D,target:o}))));},[t,n]),l$1=He(n),{dropProps:v}=B({ref:n,onDropEnter(){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},onDropMove(a){t.nextTarget!=null&&e$1.setTarget(t.nextTarget);},getDropOperationForPoint(a,b,g,c){let{draggingKeys:p,dropCollectionRef:m}=l,u=q(n),r=y=>e$1.getDropOperation({target:y,types:a,allowedOperations:b,isInternal:u,draggingKeys:p})!=="cancel",f=i.dropTargetDelegate.getDropTargetFromPoint(g,c,r);if(!f)return t.dropOperation="cancel",t.nextTarget=null,"cancel";if(t.dropOperation=e$1.getDropOperation({target:f,types:a,allowedOperations:b,isInternal:u,draggingKeys:p}),t.dropOperation==="cancel"){let y={type:"root"},o=e$1.getDropOperation({target:y,types:a,allowedOperations:b,isInternal:u,draggingKeys:p});o!=="cancel"&&(f=y,t.dropOperation=o);}return f&&t.dropOperation!=="cancel"&&n?.current!==m?.current&&o(n),t.nextTarget=t.dropOperation==="cancel"?null:f,t.dropOperation},onDropExit(){o(void 0),e$1.setTarget(null),l$1.stop();},onDropActivate(a){e$1.target?.type==="item"&&typeof i.onDropActivate=="function"&&i.onDropActivate({type:"dropactivate",x:a.x,y:a.y,target:e$1.target});},onDrop(a){o(n),e$1.target&&K(a,e$1.target);let{draggingCollectionRef:b}=l;b==null&&p();}}),d$2=useRef(null),h$1=useCallback(()=>{let{state:a}=t;if(d$2.current){let{target:b,collection:g,selectedKeys:c,focusedKey:p,isInternal:m,draggingKeys:u}=d$2.current;if(a.collection.size>g.size&&a.selectionManager.isSelectionEqual(c)){let r=new Set,f=a.collection.getFirstKey();for(;f!=null;){let y=a.collection.getItem(f);y?.type==="item"&&!g.getItem(y.key)&&r.add(y.key),y?.hasChildNodes&&a.collection.getItem(y.lastChildKey)?.type==="item"?f=y.firstChildKey:f=a.collection.getKeyAfter(f);}if(a.selectionManager.setSelectedKeys(r),a.selectionManager.focusedKey===p){let y=r.keys().next().value;if(y!=null){let o=a.collection.getItem(y),D=d$2.current.target,P=a.collection.expandedKeys?a.collection.expandedKeys.has(o?.parentKey):false;o&&(o?.type==="cell"||D.type==="item"&&D.dropPosition==="on"&&!P)&&(y=o.parentKey),y!=null&&a.selectionManager.setFocusedKey(y),a.selectionManager.selectionMode==="none"&&d("keyboard");}}}else p!=null&&a.selectionManager.focusedKey===p&&m&&b.type==="item"&&b.dropPosition!=="on"&&u.has(a.collection.getItem(p)?.parentKey)?(a.selectionManager.setFocusedKey(a.collection.getItem(p)?.parentKey??null),d("keyboard")):a.selectionManager.focusedKey===p&&b.type==="item"&&b.dropPosition==="on"&&a.collection.getItem(b.key)!=null?(a.selectionManager.setFocusedKey(b.key),d("keyboard")):a.selectionManager.focusedKey!=null&&!a.selectionManager.isSelected(a.selectionManager.focusedKey)&&d("keyboard");a.selectionManager.setFocused(true);}},[t]),K=useCallback((a,b)=>{let{state:g}=t;d$2.current={timeout:void 0,focusedKey:g.selectionManager.focusedKey,collection:g.collection,selectedKeys:g.selectionManager.selectedKeys,draggingKeys:l.draggingKeys,isInternal:q(n),target:b},(t.props.onDrop||s)({type:"drop",x:a.x,y:a.y,target:b,items:a.items,dropOperation:a.dropOperation}),d$2.current.timeout=setTimeout(()=>{h$1(),d$2.current=null;},50);},[t,s,n,h$1]);useEffect(()=>()=>{d$2.current&&clearTimeout(d$2.current.timeout);},[]),a(()=>{d$2.current&&e$1.collection!==d$2.current.collection&&h$1();});let{direction:T}=b();useEffect(()=>{if(!n.current)return;let a=(c,p=true,m="down")=>Be(t.props.keyboardDelegate,t.state.collection,c,m,T==="rtl",p),b=(c,p=true)=>a(c,p,"up"),g=(c,p,m,u,r=true)=>{let f=0,y,{draggingKeys:o}=l,D=q(n);do{let P=u(c,r);if(!P)return null;c=P,y=t.state.getDropOperation({target:P,types:p,allowedOperations:m,isInternal:D,draggingKeys:o}),c.type==="root"&&f++;}while(y==="cancel"&&!t.state.isDropTarget(c)&&f<2);return y==="cancel"?null:c};return u({element:n.current,preventFocusOnDrop:true,getDropOperation(c,p){if(t.state.target){let{draggingKeys:u}=l,r=q(n);return t.state.getDropOperation({target:t.state.target,types:c,allowedOperations:p,isInternal:r,draggingKeys:u})}return g(null,c,p,a)?"move":"cancel"},onDropEnter(c,p){let m=h(p.items),u=t.state.selectionManager,r=null;o(n);let f=u.focusedKey,y="after",o$1=f!=null?t.state.collection.getItem(f):null;if(o$1?.type==="cell"&&(f=o$1.parentKey),f!=null&&u.isSelected(f)&&(u.selectedKeys.size>1&&u.firstSelectedKey===f?y="before":f=u.lastSelectedKey),f!=null){r={type:"item",key:f,dropPosition:y};let{draggingKeys:D}=l,P=q(n);t.state.getDropOperation({target:r,types:m,allowedOperations:p.allowedDropOperations,isInternal:P,draggingKeys:D})==="cancel"&&(r=g(r,m,p.allowedDropOperations,a,false)??g(r,m,p.allowedDropOperations,b,false));}r||(r=g(null,m,p.allowedDropOperations,a)),t.state.setTarget(r);},onDropExit(){o(void 0),t.state.setTarget(null);},onDropTargetEnter(c){t.state.setTarget(c);},onDropActivate(c,p){p?.type==="item"&&p?.dropPosition==="on"&&typeof t.props.onDropActivate=="function"&&t.props.onDropActivate({type:"dropactivate",x:c.x,y:c.y,target:p});},onDrop(c,p){o(n),t.state.target&&K(c,p||t.state.target);},onKeyDown(c,p){let{keyboardDelegate:m}=t.props,u=h(p.items);switch(c.key){case "ArrowDown":{if(m.getKeyBelow){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"down"));t.state.setTarget(r);}break}case "ArrowUp":{if(m.getKeyAbove){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"up"));t.state.setTarget(r);}break}case "ArrowLeft":{if(m.getKeyLeftOf){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"left"));t.state.setTarget(r);}break}case "ArrowRight":{if(m.getKeyRightOf){let r=g(t.state.target,u,p.allowedDropOperations,(f,y)=>a(f,y,"right"));t.state.setTarget(r);}break}case "Home":{if(m.getFirstKey){let r=g(null,u,p.allowedDropOperations,a);t.state.setTarget(r);}break}case "End":{if(m.getLastKey){let r=g(null,u,p.allowedDropOperations,b);t.state.setTarget(r);}break}case "PageDown":{if(m.getKeyPageBelow){let r=t.state.target;if(!r)r=g(null,u,p.allowedDropOperations,a);else {let f=m.getFirstKey?.();r.type==="item"&&(f=r.key);let y=null;f!=null&&(y=m.getKeyPageBelow(f));let o=r.type==="item"?r.dropPosition:"after";if((y==null||r.type==="item"&&r.key===m.getLastKey?.())&&(y=m.getLastKey?.()??null,o="after"),y==null)break;r={type:"item",key:y,dropPosition:o};let{draggingCollectionRef:D,draggingKeys:P}=l,w=D?.current===n?.current;t.state.getDropOperation({target:r,types:u,allowedOperations:p.allowedDropOperations,isInternal:w,draggingKeys:P})==="cancel"&&(r=g(r,u,p.allowedDropOperations,a,false)??g(r,u,p.allowedDropOperations,b,false));}t.state.setTarget(r??t.state.target);}break}case "PageUp":{if(!m.getKeyPageAbove)break;let r=t.state.target;if(!r)r=g(null,u,p.allowedDropOperations,b);else if(r.type==="item"){if(r.key===m.getFirstKey?.())r={type:"root"};else {let D=m.getKeyPageAbove(r.key),P=r.dropPosition;if(D==null&&(D=m.getFirstKey?.(),P="before"),D==null)break;r={type:"item",key:D,dropPosition:P};}let{draggingKeys:f}=l,y=q(n);t.state.getDropOperation({target:r,types:u,allowedOperations:p.allowedDropOperations,isInternal:y,draggingKeys:f})==="cancel"&&(r=g(r,u,p.allowedDropOperations,b,false)??g(r,u,p.allowedDropOperations,a,false));}t.state.setTarget(r??t.state.target);break}}t.props.onKeyDown?.(c);}})},[t,n,K,T]);let O=c();return d$1.set(e$1,{id:O,ref:n}),{collectionProps:c$1(v,{id:O,"aria-describedby":null})}}function pe(i,e,n){let{dropProps:t}=A(n),s=g(e);useEffect(()=>{if(n.current)return v({element:n.current,target:i.target,getDropOperation(T,O){let{draggingKeys:a}=l,b=q(s);return e.getDropOperation({target:i.target,types:T,allowedOperations:O,isInternal:b,draggingKeys:a})},activateButtonRef:i.activateButtonRef})},[n,i.target,e,s,i.activateButtonRef]);let l$1=x(),{draggingKeys:v$1}=l,d=q(s),h$1=l$1&&e.getDropOperation({target:i.target,types:h(l$1.dragTarget.items),allowedOperations:l$1.dragTarget.allowedDropOperations,isInternal:d,draggingKeys:v$1})!=="cancel",K=e.isDropTarget(i.target);return useEffect(()=>{l$1&&K&&n.current&&n.current.focus();},[K,l$1,n]),{dropProps:{...t,"aria-hidden":!l$1||h$1?void 0:"true"},isDropTarget:K}}function rt(i,e,n){let{target:t}=i,{collection:s}=e,l=b$1(z,"@react-aria/dnd"),v=x(),{dropProps:d}=pe(i,e,n),h=c(),K=g=>g==null?"":s.getTextValue?.(g)??s.getItem(g)?.textValue??"",T="",O;if(t.type==="root")T=l.format("dropOnRoot"),O=`${h} ${f(e)}`;else if(t.dropPosition==="on")T=l.format("dropOnItem",{itemText:K(t.key)});else {let g,c;if(t.dropPosition==="before"){let p=s.getItem(t.key)?.prevKey,m=p!=null?s.getItem(p):null;g=m?.type==="item"?m.key:null;}else g=t.key;if(t.dropPosition==="after"){let p=s.getItem(t.key)?.nextKey,m=p!=null?s.getItem(p):null;c=m?.type==="item"?m.key:null;}else c=t.key;g!=null&&c!=null?T=l.format("insertBetween",{beforeItemText:K(g),afterItemText:K(c)}):g!=null?T=l.format("insertAfter",{itemText:K(g)}):c!=null&&(T=l.format("insertBefore",{itemText:K(c)}));}let a=e.isDropTarget(t),b=v?d["aria-hidden"]:"true";return {dropIndicatorProps:{...d,id:h,"aria-roledescription":l.format("dropIndicator"),"aria-label":T,"aria-labelledby":O,"aria-hidden":b,tabIndex:-1},isDropTarget:a,isHidden:!a&&!!b}}var Ve={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Ye(i$1){let{hasDragButton:e,isDisabled:n$1,elementRef:t$1}=i$1,s$1=b$1(z,"@react-aria/dnd"),l=useRef({options:i$1,x:0,y:0}).current;l.options=i$1;let v=useRef(null),[d,h]=useState(false),K=o=>{v.current=o,h(!!o);},{addGlobalListener:T,removeAllGlobalListeners:O}=a$2(),a=useRef(null),b=o=>{if(o.defaultPrevented)return;if(o.stopPropagation(),a.current==="virtual"){o.preventDefault(),m(j$1(o)),a.current=null;return}typeof i$1.onDragStart=="function"&&i$1.onDragStart({type:"dragstart",x:o.clientX,y:o.clientY});let D=i$1.getItems();o.dataTransfer.clearData?.(),j$2(o.dataTransfer,D);let P=7;if(typeof i$1.getAllowedDropOperations=="function"){let S=i$1.getAllowedDropOperations();P=0;for(let x of S)P|=a$3[x]||0;}t(P);let w=b$4[P]||"none";o.dataTransfer.effectAllowed=w==="cancel"?"none":w,typeof i$1.preview?.current=="function"&&i$1.preview.current(D,(S,x,N)=>{if(!S)return;let M=S.getBoundingClientRect(),de=o.currentTarget.getBoundingClientRect(),ee=o.clientX-de.x,te=o.clientY-de.y;(ee>M.width||te>M.height)&&(ee=M.width/2,te=M.height/2);let H=ee,j=te;typeof x=="number"&&typeof N=="number"&&(H=x,j=N),H=Math.max(0,Math.min(H,M.width)),j=Math.max(0,Math.min(j,M.height));let _e=2*Math.round(M.height/2);S.style.height=`${_e}px`,o.dataTransfer.setDragImage(S,H,j);}),T(b$2(j$1(o)),"drop",S=>{S.preventDefault(),S.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");},{once:true}),l.x=o.clientX,l.y=o.clientY;let E=j$1(o);requestAnimationFrame(()=>{K(E);});},g=o=>{o.stopPropagation(),!(o.clientX===l.x&&o.clientY===l.y)&&(typeof i$1.onDragMove=="function"&&i$1.onDragMove({type:"dragmove",x:o.clientX,y:o.clientY}),l.x=o.clientX,l.y=o.clientY);},c=o=>{if(o.stopPropagation(),typeof i$1.onDragEnd=="function"){let D={type:"dragend",x:o.clientX,y:o.clientY,dropOperation:c$2[o.dataTransfer.dropEffect]};r&&(D.dropOperation=c$2[r]),i$1.onDragEnd(D);}K(null),O(),t(0),s(void 0);};useEffect(()=>()=>{if(v.current&&(!v.current.isConnected||parseInt(version,10)<17)){if(typeof l.options.onDragEnd=="function"){let o={type:"dragend",x:0,y:0,dropOperation:c$2[r||"none"]};l.options.onDragEnd(o);}K(null),t(0),s(void 0);}},[l]);let p=o=>{o.pointerType!=="keyboard"&&o.pointerType!=="virtual"||m(o.target);},m=o=>{if(typeof l.options.onDragStart=="function"){let D=o.getBoundingClientRect();l.options.onDragStart({type:"dragstart",x:D.x+D.width/2,y:D.y+D.height/2});}w({element:o,items:l.options.getItems(),allowedDropOperations:typeof l.options.getAllowedDropOperations=="function"?l.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(D){K(null),typeof l.options.onDragEnd=="function"&&l.options.onDragEnd(D);}},s$1),K(o);},u=i(),r$1=d?Ve[u].end:Ve[u].start,f=d$2(s$1.format(r$1),t$1),y={};return e||(y={...f,onPointerDown(o){if(a.current=n(o.nativeEvent)?"virtual":o.pointerType,o.width<1&&o.height<1&&h$1()&&j())a.current="virtual";else {let D=o.currentTarget.getBoundingClientRect(),P=o.clientX-D.x,w=o.clientY-D.y,E=D.width/2,S=D.height/2;Math.abs(P-E)<=.5&&Math.abs(w-S)<=.5?a.current="virtual":a.current=o.pointerType;}},onKeyDownCapture(o){j$1(o)===o.currentTarget&&o.key==="Enter"&&(o.preventDefault(),o.stopPropagation());},onKeyUpCapture(o){j$1(o)===o.currentTarget&&o.key==="Enter"&&(o.preventDefault(),o.stopPropagation(),m(j$1(o)));},onClick(o){(m$1(o.nativeEvent)||a.current==="virtual")&&(o.preventDefault(),o.stopPropagation(),m(j$1(o)));}}),n$1?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:false}:{dragProps:{...y,draggable:"true",onDragStart:b,onDrag:g,onDragEnd:c},dragButtonProps:{...f,onPress:p},isDragging:d}}var it={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function at(i$1,e,n){let t=b$1(z,"@react-aria/dnd"),s=e.isDisabled||e.selectionManager.isDisabled(i$1.key),{dragProps:l,dragButtonProps:v}=Ye({elementRef:n,getItems(){return e.getItems(i$1.key)},preview:e.preview,getAllowedDropOperations:e.getAllowedDropOperations,hasDragButton:i$1.hasDragButton,onDragStart(g){e.startDrag(i$1.key,g),n$1(e.draggingKeys);},onDragMove(g){e.moveDrag(g);},onDragEnd(g){let{dropOperation:c}=g,p$1=c==="cancel"?false:q();e.endDrag({...g,keys:e.draggingKeys,isInternal:p$1}),p();}}),d=e.collection.getItem(i$1.key),h=e.getKeysForDrag(i$1.key).size,K=h>1&&e.selectionManager.isSelected(i$1.key),T,O,a=i();if(!i$1.hasDragButton&&e.selectionManager.selectionMode!=="none"){let g=it[a][K?"selected":"notSelected"];i$1.hasAction&&a==="keyboard"&&(g+="Alt"),K?O=t.format(g,{count:h}):O=t.format(g),delete l.onClick;}else if(K)T=t.format("dragSelectedItems",{count:h});else {let g=e.collection.getTextValue?.(i$1.key)??d?.textValue??"";T=t.format("dragItem",{itemText:g});}let b=d$2(O,n);if(O&&Object.assign(l,b),!i$1.hasDragButton&&i$1.hasAction){let{onKeyDownCapture:g,onKeyUpCapture:c}=l;a==="touch"&&delete l["aria-describedby"],l.onKeyDownCapture=p=>{p.altKey&&g?.(p);},l.onKeyUpCapture=p=>{p.altKey&&c?.(p);};}return {dragProps:s?{}:l,dragButtonProps:{...v,isDisabled:s,"aria-label":T}}}function pt(i,e,n){let{draggingCollectionRef:t}=l;e.draggingKeys.size>0&&t?.current!==n.current&&m(n);}function gt(i){let{getItems:e,isDisabled:n,collection:t,selectionManager:s,onDragStart:l,onDragMove:v,onDragEnd:d,preview:h,getAllowedDropOperations:K}=i,[,T]=useState(false),O=useRef(new Set),a=useRef(null),b=g=>{let c=new Set;if(s.isSelected(g))for(let p of s.selectedKeys){let m=t.getItem(p);if(m){let u=false,r=m.parentKey;for(;r!=null;){if(s.selectedKeys.has(r)){u=true;break}let f=t.getItem(r);r=f?f.parentKey:null;}u||c.add(p);}}else c.add(g);return c};return {collection:t,selectionManager:s,get draggedKey(){return a.current},get draggingKeys(){return O.current},isDragging(g){return O.current.has(g)},getKeysForDrag:b,getItems(g){let c=b(g),p=[];for(let m of c){let u=t.getItem(m)?.value;u!=null&&p.push(u);}return e(b(g),p)},isDisabled:n,preview:h,getAllowedDropOperations:K,startDrag(g,c){let p=b(g);O.current=p,a.current=g,s.setFocused(false),T(true),typeof l=="function"&&l({...c,keys:p});},moveDrag(g){typeof v=="function"&&v({...g,keys:O.current});},endDrag(g){let{isInternal:c}=g;typeof d=="function"&&d({...g,keys:O.current,isInternal:c}),O.current=new Set,a.current=null,T(false);}}}function ft(i){let{acceptedDragTypes:e="all",isDisabled:n,onInsert:t,onRootDrop:s,onItemDrop:l,onReorder:v,onMove:d,shouldAcceptItemDrop:h,collection:K,selectionManager:T,onDropEnter:O,getDropOperation:a,onDrop:b}=i,[,g]=useState(null),c=useRef(null),p=u=>{if(u.dropPosition==="before"){let r=K.getItem(u.key);return r&&r.prevKey!=null?{type:"item",key:r.prevKey,dropPosition:"after"}:null}else if(u.dropPosition==="after"){let r=K.getItem(u.key);return r&&r.nextKey!=null?{type:"item",key:r.nextKey,dropPosition:"before"}:null}return null},m=useCallback(u=>{let{target:r,types:f,allowedOperations:y,isInternal:o,draggingKeys:D}=u;if(n||!r)return "cancel";if(e==="all"||e.some(P=>f.has(P))){let P=t&&r.type==="item"&&!o&&(r.dropPosition==="before"||r.dropPosition==="after"),w=v&&r.type==="item"&&o&&(r.dropPosition==="before"||r.dropPosition==="after")&&yt(K,r,D),E=r.type!=="item"||r.dropPosition!=="on"||!h||h(r,f),S=d&&r.type==="item"&&o&&E,x=s&&r.type==="root"&&!o,N=l&&r.type==="item"&&r.dropPosition==="on"&&!(o&&r.key!=null&&D.has(r.key))&&E;if(b||P||w||S||x||N)return a?a(r,f,y):y[0]}return "cancel"},[n,K,e,a,t,s,l,h,v,d,b]);return {collection:K,selectionManager:T,isDisabled:n,get target(){return c.current},setTarget(u){if(this.isDropTarget(u))return;let r=c.current;r&&typeof i.onDropExit=="function"&&i.onDropExit({type:"dropexit",x:0,y:0,target:r}),u&&typeof O=="function"&&O({type:"dropenter",x:0,y:0,target:u}),c.current=u??null,g(u??null);},isDropTarget(u){let r=c.current;return !r||!u?false:ge(u,r)?true:u?.type==="item"&&r?.type==="item"&&u.key!==r.key&&u.dropPosition!==r.dropPosition&&u.dropPosition!=="on"&&r.dropPosition!=="on"?ge(p(u),r)||ge(u,p(r)):false},getDropOperation(u){let{target:r,isInternal:f,draggingKeys:y}=u;if(f&&r.type==="item"&&y.size>0){if(y.has(r.key)&&r.dropPosition==="on")return "cancel";let o=r.key;for(;o!=null;){let P=K.getItem(o)?.parentKey;if(P!=null&&y.has(P))return "cancel";o=P??null;}}return m(u)}}}function ge(i,e){if(!i)return !e;switch(i.type){case "root":return e?.type==="root";case "item":return e?.type==="item"&&e?.key===i.key&&e?.dropPosition===i.dropPosition}}function yt(i,e,n){let t=i.getItem(e.key);for(let s of n)if(i.getItem(s)?.parentKey!==t?.parentKey)return false;return true}var ue=class{collection;ref;layout;orientation;direction;constructor(e,n,t){this.collection=e,this.ref=n,this.layout=t?.layout||"stack",this.orientation=t?.orientation||"vertical",this.direction=t?.direction||"ltr";}getPrimaryStart(e){return this.orientation==="horizontal"?e.left:e.top}getPrimaryEnd(e){return this.orientation==="horizontal"?e.right:e.bottom}getSecondaryStart(e){return this.orientation==="horizontal"?e.top:e.left}getSecondaryEnd(e){return this.orientation==="horizontal"?e.bottom:e.right}getFlowStart(e){return this.layout==="stack"?this.getPrimaryStart(e):this.getSecondaryStart(e)}getFlowEnd(e){return this.layout==="stack"?this.getPrimaryEnd(e):this.getSecondaryEnd(e)}getFlowSize(e){return this.getFlowEnd(e)-this.getFlowStart(e)}getDropTargetFromPoint(e,n,t){if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return {type:"root"};let s=this.ref.current.getBoundingClientRect(),l=this.orientation==="horizontal"?e:n,v=this.orientation==="horizontal"?n:e;l+=this.getPrimaryStart(s),v+=this.getSecondaryStart(s);let d=this.layout==="stack"?l:v,h=this.orientation==="horizontal"&&this.direction==="rtl",K=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",T=this.layout==="stack"?h:K,O=this.ref.current?.dataset.collection,a=this.ref.current.querySelectorAll(O?`[data-collection="${CSS.escape(O)}"]`:"[data-key]"),b=new Map,g=b$2(this.ref.current);for(let f of a)f instanceof g.HTMLElement&&f.dataset.key!=null&&b.set(f.dataset.key,f);let c=[...this.collection].filter(f=>f.type==="item");if(c.length<1)return {type:"root"};let p=0,m=c.length;for(;p<m;){let f=Math.floor((p+m)/2),y=c[f],o=b.get(String(y.key));if(!o)break;let D=o.getBoundingClientRect(),P=w=>{w?p=f+1:m=f;};if(l<this.getPrimaryStart(D))P(h);else if(l>this.getPrimaryEnd(D))P(!h);else if(v<this.getSecondaryStart(D))P(K);else if(v>this.getSecondaryEnd(D))P(!K);else {let w={type:"item",key:y.key,dropPosition:"on"};if(t(w))d<=this.getFlowStart(D)+5&&t({...w,dropPosition:"before"})?w.dropPosition=T?"after":"before":d>=this.getFlowEnd(D)-5&&t({...w,dropPosition:"after"})&&(w.dropPosition=T?"before":"after");else {let E=this.getFlowStart(D)+this.getFlowSize(D)/2;d<=E&&t({...w,dropPosition:"before"})?w.dropPosition=T?"after":"before":d>=E&&t({...w,dropPosition:"after"})&&(w.dropPosition=T?"before":"after");}return w}}let u=c[Math.min(p,c.length-1)];return s=b.get(String(u.key))?.getBoundingClientRect(),s&&(l<this.getPrimaryStart(s)||Math.abs(d-this.getFlowStart(s))<Math.abs(d-this.getFlowEnd(s)))?{type:"item",key:u.key,dropPosition:T?"after":"before"}:{type:"item",key:u.key,dropPosition:T?"before":"after"}}};export{tt as a,pe as b,rt as c,at as d,pt as e,Ze as f,gt as g,ft as h,ue as i};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$j}from'./chunk-SBR5UAUY.mjs';import {a as a$l}from'./chunk-LPI2NIDI.mjs';import {c as c$4}from'./chunk-IEOHIOGL.mjs';import {c as c$2}from'./chunk-TSHZ7JSR.mjs';import {I,j,f,e,p,F,A,H,i,B,s,C,G,z,h,g,m,q,D,E,t,l,v,y,u,a as a$m,w,d,c as c$6,x,k,b as b$8,o,n,r}from'./chunk-CTSDHAAV.mjs';import {a as a$6,b as b$7,c as c$5,d as d$1}from'./chunk-CLGLEEFO.mjs';import {a as a$o}from'./chunk-QUQ4VYCN.mjs';import {a as a$h}from'./chunk-ZZIQF6XD.mjs';import {a as a$b}from'./chunk-WTAJLO6E.mjs';import {a as a$c}from'./chunk-UDMNDUBO.mjs';import {b as b$5,e as e$1}from'./chunk-4RSUKS23.mjs';import {a as a$d}from'./chunk-JZXLV6JU.mjs';import {b as b$2,c as c$3}from'./chunk-DZDZZRWE.mjs';import {b as b$4}from'./chunk-TUJLNJPJ.mjs';import {a as a$g}from'./chunk-O7XK2WIX.mjs';import {a as a$k}from'./chunk-VGFPT43C.mjs';import {a as a$f}from'./chunk-3BG6K2G2.mjs';import {a as a$9}from'./chunk-OYSOPCTA.mjs';import {a as a$n}from'./chunk-4EAXDHSV.mjs';import {a as a$i}from'./chunk-KX7WG3L4.mjs';import {b as b$3}from'./chunk-N2XGJKZG.mjs';import {b}from'./chunk-K5RYVERS.mjs';import {b as b$6,j as j$1}from'./chunk-MBRNO6IW.mjs';import {a as a$8}from'./chunk-22MA6EYO.mjs';import {a as a$e}from'./chunk-VDUFLHKK.mjs';import {a as a$7}from'./chunk-22VRCVTH.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$a}from'./chunk-FPM5UJRF.mjs';import {a as a$1}from'./chunk-SGZWUG3H.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {a}from'./chunk-B3EZOXNU.mjs';import {b as b$1,c as c$1}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {j as j$2}from'./chunk-SD43KVTU.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import so,{useCallback,useMemo,useEffect}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {TextIcon,PlusIcon,MinusIcon}from'@baseline-ui/icons/20';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 no=so.forwardRef(({color:o,colorLabel:t,colorName:r,isIndeterminate:e,indeterminateIcon:l,noneLabel:a$5,...n},s)=>{let i=so.useRef(null),{hoverProps:u,isHovered:m}=a({isDisabled:n.isDisabled}),{buttonProps:d,isPressed:b$2}=a$1(n,i),{isFocusVisible:f$1,focusProps:I$1}=a$2(),M=a$3({"data-block-id":n["data-block-id"],"data-focused":f$1,"data-focus-visible":f$1,"data-disabled":n.isDisabled,"data-hovered":m,"data-pressed":b$2}),L=c(),y=c();return jsxs("button",{...c$1(d,u,I$1,M),style:n.style,className:a$4(f({isHovered:m,isFocusVisible:f$1||n.isOpen,isDisabled:n.isDisabled,labelPosition:n.labelPosition}),"BaselineUI-ColorInputButton",n.className),ref:b$1(s,i),id:L,"aria-labelledby":n["aria-labelledby"]||`${L} ${y}`,children:[jsx(I,{color:o?.toString("hexa"),isIndeterminate:e,indeterminateIcon:l,noneLabel:a$5}),t?jsx("div",{className:j,id:y,"aria-hidden":"true",children:r}):typeof r=="string"&&jsx(b,{children:r})]})});no.displayName="ColorInputButton";var Ro=so.forwardRef(({className:o,style:t,icon:r,...e$1},l)=>{let a$5=so.useRef(null),{hoverProps:n,isHovered:s}=a({isDisabled:e$1.isDisabled}),{buttonProps:i,isPressed:u}=a$1(e$1,a$5),{isFocusVisible:m,focusProps:d}=a$2(),b=a$3({"data-block-id":e$1["data-block-id"],"data-focused":m,"data-focus-visible":m,"data-disabled":e$1.isDisabled,"data-hovered":s,"data-pressed":u});return jsxs("button",{...c$1(i,n,d,b),ref:b$1(l,a$5),style:t,className:a$4(p({isHovered:s||u||e$1.isOpen,isFocusVisible:m,isDisabled:e$1.isDisabled}),"BaselineUI-IconColorInputButton","BaselineUI-IconColorInput-Button",o),children:[jsx(r,{size:16}),jsx("div",{className:e,style:{backgroundColor:e$1.color||void 0}})]})});Ro.displayName="IconColorInputButton";var Yo=so.forwardRef(({setColor:o,color:t,triggerRef:r,autoFocus:e,presets:l,state:a,isIndeterminate:n,colorPresetsLabel:s$1},i$1)=>{let{formatMessage:u}=b$2(),m=useCallback(d=>{if(d instanceof Set&&d.size){let b=[...d][0],f=l.find(I=>I.id===b);a$5(f,"Preset not found"),o(f.id===F?null:a$6(f.id).toFormat(A)),a.close();}},[a,l,o]);return jsx("div",{className:a$4(s,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:i$1,children:jsx(c$2,{autoFocus:e,items:l,layout:"grid","aria-label":s$1??u(ct.colorPresets),className:i,renderOption:H,selectionMode:"single",selectedKeys:n?[]:[t?.toString(B)||F],onSelectionChange:m,escapeKeyBehavior:"none"})})});Yo.displayName="ColorPresetList";var ct=c$3({colorPresets:{defaultMessage:"Color Presets",id:"bui.colorInput.colorPresets"}});var Xe=({value:o,...t})=>{let r=so.useRef(null),e=so.useRef(null),l=so.useRef(null),a=b$7({...t,value:o}),{colorAreaProps:n,xInputProps:s,yInputProps:i,thumbProps:u}=a$m({...t,value:o,inputXRef:r,inputYRef:e,containerRef:l},a);useEffect(()=>{r.current?.focus();},[]);let{focusProps:m,isFocusVisible:d$1}=a$2();return jsx("div",{ref:l,...n,className:a$4(d,"BaselineUI-ColorInput-ColorArea"),children:jsxs("div",{...u,className:a$4(w({isFocusVisible:d$1}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...u.style,transform:"translate(-50%, -50%)",backgroundColor:C(o)?.withChannelValue("alpha",1).toString("css")},children:[jsx("input",{ref:r,...s,...m}),jsx("input",{ref:e,...i,...m})]})})};var $e=({color:o$1,setColor:t,allowAlpha:r,...e})=>{let l=d$1({value:o$1,onChange:d=>{t(C(d)?.toFormat(A).withChannelValue("alpha",o$1.getChannelValue("alpha")??1)||z);}}),a$1=so.useRef(null),{inputProps:n$1}=b$8({...e,"aria-label":"Hex"},l,a$1),{focusProps:s,isFocused:i}=a$2({isTextInput:true}),{hoverProps:u,isHovered:m}=a({});return jsxs("div",{className:a$4(n,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[jsx("input",{...c$1(n$1,s,u),ref:a$1,className:o({isFocused:i,isHovered:m,allowAlpha:r})}),r?jsx(qe,{color:o$1,setColor:t}):null]})},Ye=({color:o,setColor:t,allowAlpha:r$1})=>{let e=o.toFormat("rgba"),{locale:l}=b$3();return jsxs("div",{className:a$4(n,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r$1?"rgba":"rgb",children:[jsx(a$o,{"aria-label":o.getChannelName("red",l),value:e.getChannelValue("red"),showStepper:false,className:r,onChange:a=>{t(e.withChannelValue("red",a).toFormat(A));},step:1,minValue:0,maxValue:255}),jsx(a$o,{"aria-label":o.getChannelName("green",l),value:e.getChannelValue("green"),showStepper:false,className:r,onChange:a=>{t(e.withChannelValue("green",a).toFormat(A));},step:1,minValue:0,maxValue:255}),jsx(a$o,{"aria-label":o.getChannelName("blue",l),value:e.getChannelValue("blue"),showStepper:false,className:r,onChange:a=>{t(e.withChannelValue("blue",a).toFormat(A));},step:1,minValue:0,maxValue:255}),r$1?jsx(qe,{color:o,setColor:t}):null]})},bt={style:"percent",maximumFractionDigits:0},qe=({color:o,setColor:t})=>{let{locale:r$1}=b$3(),e=useCallback(l=>{t(o.withChannelValue("alpha",l));},[o,t]);return jsx(a$o,{"aria-label":o.getChannelName("alpha",r$1),value:o.getChannelValue("alpha"),formatOptions:bt,className:r,showStepper:false,onChange:e,minValue:0,maxValue:1})};var Jo=({channel:o,...t})=>{let{locale:r}=b$3(),e=c$5({...t,channel:o,locale:r}),l=so.useRef(null),a=so.useRef(null),{trackProps:n,thumbProps:s,inputProps:i}=c$6({...t,channel:o,trackRef:l,inputRef:a,"aria-label":e.value.getChannelName(o,r)},e),{focusProps:u,isFocusVisible:m}=a$2();return jsxs("div",{className:a$4(k,{[a$n({size:"xs"})]:o==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":o,...n,ref:l,children:[o==="alpha"&&jsx("div",{className:x}),jsx("div",{className:k,style:n.style}),jsxs("div",{className:a$4(w({isFocusVisible:m}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsx("div",{className:x,style:{backgroundColor:"#ffffff"}}),jsx("div",{style:{backgroundColor:e.getDisplayColor().toString("css"),height:8},className:k}),jsx(b,{children:jsx("input",{ref:a,...i,...u})})]})]})};var Fo=({color:o,setColor:t,allowAlpha:r,colorFormatLabel:e,onChangeEnd:l})=>{let[a,n]=so.useState("hex"),{formatMessage:s}=b$2();return jsxs(Fragment,{children:[jsx(Xe,{value:o,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:l}),jsxs("div",{className:v,children:[jsx(Jo,{channel:"hue",value:o,onChange:t,onChangeEnd:l}),r?jsx(Jo,{channel:"alpha",value:o,onChange:t,onChangeEnd:l}):null]}),jsxs("div",{className:a$4(v,sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsx(c$4,{label:e??s(vt.colorFormat),labelPosition:"start",variant:"ghost",items:y,selectedKey:a,onSelectionChange:i=>{n(i);}}),a==="hex"&&jsx($e,{color:o,setColor:i=>{t(i),l?.(i);},allowAlpha:r}),a==="rgb"&&jsx(Ye,{color:o,setColor:i=>{t(i),l?.(i);},allowAlpha:r})]})]})},vt=c$3({colorFormat:{defaultMessage:"Color Format",id:"bui.colorInput.colorFormat"}});var Ze=({color:o,setColor:t$1,storePickedColorKey:r,addColorButtonLabel:e,removeColorButtonLabel:l$1,customColorsLabel:a,addLabel:n,cancelLabel:s$1,newColorLabel:i$1,colorFormatLabel:u$1,pickerMode:m$1,allowAlpha:d,isIndeterminate:b})=>{let{locale:f}=b$3(),{formatMessage:I}=b$2(),M=so.useRef(null),L=a$i(M.current),[y,T]=a$j(r,[]),C=so.useMemo(()=>Array.isArray(y)?y.filter(p=>Rt(p)):[],[y]),J=so.useRef(null),[A$1,Mo]=so.useState(o),To=so.useMemo(()=>C.map(p=>({id:p,label:a$6(p).getColorName(f),description:p})),[C,f]),Q=useCallback(()=>{let p=m$1==="active"?o:A$1;if(C.includes(p.toString(B))){J.current?.querySelector(`[data-key='${p.toString(B)}']`)?.classList.add(t);return}T([...C,p.toString(B)]);},[C,o,T,A$1,m$1]);useEffect(()=>{let p=J.current;function O(k){k.animationName===u&&j$2(k)?.classList.remove(t);}return p?.addEventListener("animationend",O),()=>{p?.removeEventListener("animationend",O);}},[]);let po=c(),N=jsx(a$k,{ref:M,variant:"secondary",size:"md","aria-label":e,icon:PlusIcon,onPress:m$1==="active"?Q:void 0}),uo=useCallback(p=>jsxs(a$c,{size:"content",className:m({includesCustomColorPicker:true}),style:{paddingBlockEnd:0},"aria-label":i$1??I(jo.newColor),children:[jsx(Fo,{color:A$1,setColor:Mo,allowAlpha:d,colorFormatLabel:u$1}),jsx(a$d,{}),jsx(a$g,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxs(a$g,{display:"inline-flex",gap:"lg",children:[jsx(b$4,{label:s$1??I(jo.cancel),size:"sm",variant:"secondary",onPress:p}),jsx(b$4,{label:n??I(jo.add),variant:"primary",onPress:()=>{Q(),p();},size:"sm"})]})})]}),[A$1,Q,I,d,i$1,u$1,s$1,n]),Ao=useCallback(p=>{a$5(p instanceof Set,"Key must be a set");let O=[...p][0];O&&t$1(a$6(O).toFormat(A));},[t$1]);return jsxs(Fragment,{children:[jsx(a$d,{}),jsxs("div",{className:a$4(l,"BaselineUI-ColorInput-CustomColors"),children:[jsx("span",{id:po,children:a}),jsxs(a$g,{display:"flex",children:[!!C.length&&C.includes(o.toString(B))&&jsx(a$k,{variant:"secondary",size:"md",elementType:"div",icon:MinusIcon,"aria-label":l$1,onPress:()=>{T(C.filter(p=>p!==o.toString(B)));}}),m$1==="active"&&N,m$1==="lazy"&&(L==="mobile"?jsxs(b$5,{children:[jsx(a$l,{children:N}),jsx(e$1,{style:{zIndex:1e5},children:({close:p})=>uo(p)})]}):jsxs(b$6,{type:"dialog",children:[jsx(j$1,{children:N}),jsx(a$b,{placement:"right top",className:q,offset:6,children:({close:p})=>uo(p)})]}))]})]}),!!C.length&&jsx(c$2,{items:To,layout:"grid","aria-labelledby":po,className:a$4(i,s,sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:H,ref:J,autoFocus:false,selectionMode:"single",selectedKeys:b?[]:[o.toString(B)],onSelectionChange:Ao})]})},jo=c$3({newColor:{defaultMessage:"New Custom Color",id:"bui.colorInput.newColor"},cancel:{defaultMessage:"Cancel",id:"bui.colorInput.cancel"},add:{defaultMessage:"Add",id:"bui.colorInput.add"}});function Rt(o){if(typeof o!="string")return false;try{return a$6(o),!0}catch{return false}}function ot({colorLabel:o,color:t,presets:r,isIndeterminate:e,indeterminateLabel:l,transparentLabel:a}){let{formatMessage:n}=b$2(),{locale:s}=b$3(),i=useMemo(()=>e?{id:"indeterminate",label:l??n(je.indeterminate)}:r.find(d=>d.id===F?!t:t?D(t,a$6(d.id)):false),[r,t,e,n,l]),u=useMemo(()=>{if(typeof o=="function")return o?.(t,{isIndeterminate:!!e});if(typeof o=="boolean")return o?E(t,i,a??n(je.transparent)):false;throw new TypeError("`colorLabel` must be a function or a boolean")},[t,o,n,i,e,a]),m=useMemo(()=>{if(i?.label)return i.label;t?.getColorName(s);},[t,s,i?.label]);return {colorName:u,humanReadableName:m}}var je=c$3({transparent:{defaultMessage:"Transparent",id:"bui.colorInput.transparent"},indeterminate:{defaultMessage:"Indeterminate",id:"bui.colorInput.indeterminate"}});var xo=so.forwardRef(({className:o,style:t,allowRemoval:r,allowAlpha:e=true,presets:l,labelPosition:a="top",colorLabel:n=true,includePicker:s=true,onChange:i,onChangeEnd:u,defaultValue:m$1,storePickedColorKey:d="baselinePickedColor",value:b,addColorButtonLabel:f,removeColorButtonLabel:I,customColorsLabel:M,addLabel:L,cancelLabel:y,newColorLabel:T,colorFormatLabel:C$1,colorPresetsLabel:J,noColorLabel:A,indeterminateLabel:Mo,transparentLabel:To,onTriggerPress:Q,renderTriggerButton:po=({isOpen:X,color:Oo,ref:$,colorName:Ho,triggerProps:Do,labelId:ko,isIndeterminate:w,indeterminateIcon:Z,noneLabel:E})=>jsx(no,{...c$1(Do,{...P.label?{"aria-labelledby":ko}:{"aria-label":P["aria-label"]}}),ref:$,isOpen:X,isDisabled:P.isDisabled,labelPosition:a,color:Oo,colorLabel:n,colorName:Ho,isIndeterminate:w,indeterminateIcon:Z,noneLabel:E}),pickerMode:N="active",offset:uo=2,placement:Ao=a==="start"?"bottom end":"bottom start","data-block-id":p,"data-block-class":O,isIndeterminate:k,indeterminateIcon:lt,...P},at)=>{let X=so.useRef(null),Oo=so.useRef(null),$=a$7(P),{triggerProps:Ho,overlayProps:Do}=a$8({type:"listbox"},$,X),ko=a$9(P.portalContainer),[w,Z]=a$a(b===void 0?void 0:C(b),C(m$1),v=>i?.(v?.toFormat("rgba")||null)),{formatMessage:E}=b$2(),wo=useMemo(()=>G(A??E(So.noColor),l),[l,E,A]),Eo=c(),{colorName:nt}=ot({colorLabel:n,color:w,presets:wo,isIndeterminate:k,indeterminateLabel:Mo,transparentLabel:To}),re=useMemo(()=>wo.filter(v=>r||v.id!==F),[wo,r]),st=f||E(So.addColor),it=I||E(So.removeColor),mt=M||E(So.customColors),le=jsx(Ze,{color:w||z,setColor:v=>{Z(v),u?.(v?.toFormat("rgba")||null);},storePickedColorKey:d,addColorButtonLabel:st,removeColorButtonLabel:it,customColorsLabel:mt,addLabel:L,cancelLabel:y,newColorLabel:T,colorFormatLabel:C$1,pickerMode:N,allowAlpha:e,isIndeterminate:!!k});return jsxs(Fragment,{children:[jsxs("div",{className:a$4({[g]:a==="start"},"BaselineUI-ColorInput-Trigger",o),"data-block-id":p,"data-block-class":O,style:t,ref:at,children:[P.label?jsx("label",{id:Eo,className:h({labelPosition:a}),children:P.label}):null,po({isOpen:$.isOpen,color:w,ref:X,colorName:nt,triggerProps:c$1(Ho,{onPress:Q}),labelId:Eo,isIndeterminate:k,indeterminateIcon:lt,noneLabel:A})]}),jsx(a$b,{...P,portalContainer:ko,placement:Ao,state:$,offset:uo,className:a$4(q,"BaselineUI-ColorInput-Popover"),triggerRef:X,overlayProps:Do,children:jsxs(a$c,{size:"content",className:m({includesCustomColorPicker:s}),ref:Oo,"aria-labelledby":P.label?Eo:void 0,"aria-label":P["aria-label"],children:[s&&N==="active"?jsxs(Fragment,{children:[jsx(Fo,{color:w||z,setColor:Z,allowAlpha:e,colorFormatLabel:C$1,onChangeEnd:v=>{u?.(v?.toFormat("rgba")||null);}}),le]}):null,!!re.length&&jsxs(Fragment,{children:[s&&N==="active"?jsx(a$d,{}):null,jsx(Yo,{autoFocus:s&&N==="active"?false:"first",state:$,triggerRef:X,presets:re,colorPresetsLabel:J,color:w,setColor:v=>{Z(v),u?.(v?.toFormat("rgba")||null);},isIndeterminate:!!k})]}),s&&N==="lazy"?le:null]})})]})});xo.displayName="ColorInput";var So=c$3({addColor:{defaultMessage:"Add Color",id:"bui.colorInput.addColor"},removeColor:{defaultMessage:"Remove Color",id:"bui.colorInput.removeColor"},customColors:{defaultMessage:"Custom Colors",id:"bui.colorInput.customColors"},noColor:{defaultMessage:"None",id:"bui.colorInput.noColor"}});var rt=so.forwardRef(({className:o,style:t,icon:r,variant:e="standard","data-block-id":l,tooltip:a=true,iconTooltip:n=true,...s},i)=>{let u=so.useRef(null),{tooltipProps:m}=a$e({label:s["aria-label"],tooltip:a}),d=useCallback(({isOpen:b,color:f,ref:I,colorName:M,triggerProps:L,isIndeterminate:y,indeterminateIcon:T,noneLabel:C})=>jsx(a$f,{...m,children:e==="standard"?jsx(no,{...L,"aria-label":s["aria-label"],ref:I,isOpen:b,isDisabled:s.isDisabled,color:f,colorLabel:false,colorName:M,isIndeterminate:y,indeterminateIcon:T,noneLabel:C}):jsx(Ro,{...L,isOpen:b,icon:TextIcon,color:f?.toString("hexa"),ref:I,isDisabled:s.isDisabled,"aria-label":s["aria-label"],isIndeterminate:y,indeterminateIcon:T})}),[s,m,e]);return jsxs(a$g,{display:"flex",flexDirection:"row",gap:"md",paddingX:e==="standard"?"md":"none",alignItems:"center",className:a$4("BaselineUI-IconColorInput",o),"data-block-id":l,style:t,ref:b$1(i,u),children:[e==="standard"&&r?jsx(a$h,{icon:r,label:s["aria-label"],tooltip:n,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsx(xo,{...s,colorLabel:false,renderTriggerButton:d})]})});rt.displayName="IconColorInput";export{Ro as a,xo as b,rt as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$8}from'./chunk-
|
|
1
|
+
import {a as a$8}from'./chunk-4EANTENO.mjs';import {a as a$4}from'./chunk-3KCSUNRV.mjs';import {a as a$3}from'./chunk-OYSOPCTA.mjs';import {b}from'./chunk-KG2EHFYA.mjs';import {b as b$1}from'./chunk-4S4GGUSH.mjs';import {c}from'./chunk-KUDCYGII.mjs';import {a as a$5}from'./chunk-B3EZOXNU.mjs';import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {a as a$7}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$9}from'./chunk-SVIYLH7R.mjs';import {a as a$6,c as c$2,e}from'./chunk-ETM4MNG4.mjs';import {j,h}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import z,{useRef,useCallback,useEffect,useMemo,useState}from'react';import {useSyncExternalStore}from'use-sync-external-store/shim/index.js';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$8}from'./chunk-7OCDKTTZ.mjs';import {a as a$4}from'./chunk-FOEGHU
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
function w(t){let e=useCallback(o=>t.subscribe(o),[t]),n=useCallback(()=>t.visibleToasts,[t]);return {visibleToasts:useSyncExternalStore(e,n,n),add:(o,i)=>t.add(o,i),close:o=>t.close(o),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}var E=class{queue=[];subscriptions=new Set;maxVisibleToasts;wrapUpdate;visibleToasts=[];constructor(e){this.maxVisibleToasts=e?.maxVisibleToasts??1/0,this.wrapUpdate=e?.wrapUpdate;}runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e();}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let r="_"+Math.random().toString(36).slice(2),o={...n,content:e,key:r,timer:n.timeout?new R(()=>this.close(r),n.timeout):void 0};return this.queue.unshift(o),this.updateVisibleToasts("add"),r}close(e){let n=this.queue.findIndex(r=>r.key===e);n>=0&&(this.queue[n].onClose?.(),this.queue.splice(n,1)),this.updateVisibleToasts("remove");}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n();},e);}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause();}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume();}clear(){this.queue=[],this.updateVisibleToasts("clear");}},R=class{timerId;startTime=null;remaining;callback;constructor(e,n){this.remaining=n,this.callback=e;}reset(e){this.remaining=e,this.resume();}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime);}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback();},this.remaining));}};var x={"ar-AE":{close:"\u0625\u063A\u0644\u0627\u0642",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0625\u0634\u0639\u0627\u0631`,other:()=>`${e.number(t.count)} \u0625\u0634\u0639\u0627\u0631\u0627\u062A`})}.`},"bg-BG":{close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u0435`,other:()=>`${e.number(t.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u044F`})}.`},"cs-CZ":{close:"Zav\u0159\xEDt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ozn\xE1men\xED`,other:()=>`${e.number(t.count)} ozn\xE1men\xED`})}.`},"da-DK":{close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`},"de-DE":{close:"Schlie\xDFen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`},"el-GR":{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7`,other:()=>`${e.number(t.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2`})}.`},"en-US":{close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`},"es-ES":{close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificaci\xF3n`,other:()=>`${e.number(t.count)} notificaciones`})}.`},"et-EE":{close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`},"fi-FI":{close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`},"fr-FR":{close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`},"he-IL":{close:"\u05E1\u05D2\u05D5\u05E8",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u05D4\u05EA\u05E8\u05D0\u05D4`,other:()=>`${e.number(t.count)} \u05D4\u05EA\u05E8\u05D0\u05D5\u05EA`})}.`},"hr-HR":{close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`},"hu-HU":{close:"Bez\xE1r\xE1s",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \xE9rtes\xEDt\xE9s`,other:()=>`${e.number(t.count)} \xE9rtes\xEDt\xE9s`})}.`},"it-IT":{close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`},"ja-JP":{close:"\u9589\u3058\u308B",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u306E\u901A\u77E5`,other:()=>`${e.number(t.count)} \u500B\u306E\u901A\u77E5`})}\u3002`},"ko-KR":{close:"\uB2EB\uAE30",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}\uAC1C \uC54C\uB9BC`,other:()=>`${e.number(t.count)}\uAC1C \uC54C\uB9BC`})}.`},"lt-LT":{close:"U\u017Edaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} prane\u0161imas`,other:()=>`${e.number(t.count)} prane\u0161imai`})}.`},"lv-LV":{close:"Aizv\u0113rt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pazi\u0146ojums`,other:()=>`${e.number(t.count)} pazi\u0146ojumi`})}.`},"nb-NO":{close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`},"nl-NL":{close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`},"pl-PL":{close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomie\u0144`,other:()=>`${e.number(t.count)} powiadomienia`})}.`},"pt-BR":{close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica\xE7\xE3o`,other:()=>`${e.number(t.count)} notifica\xE7\xF5es`})}.`},"pt-PT":{close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica\xE7\xE3o`,other:()=>`${e.number(t.count)} notifica\xE7\xF5es`})}.`},"ro-RO":{close:"\xCEnchide\u0163i",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notific\u0103ri`})}.`},"ru-RU":{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435`,other:()=>`${e.number(t.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F`})}.`},"sk-SK":{close:"Zatvori\u0165",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ozn\xE1menie`,few:()=>`${e.number(t.count)} ozn\xE1menia`,other:()=>`${e.number(t.count)} ozn\xE1men\xED`})}.`},"sl-SI":{close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`},"sr-SP":{close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obave\u0161tenje`,other:()=>`${e.number(t.count)} obave\u0161tenja`})}.`},"sv-SE":{close:"St\xE4ng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`},"tr-TR":{close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`},"uk-UA":{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`,other:()=>`${e.number(t.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`})}.`},"zh-CN":{close:"\u5173\u95ED",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u4E2A\u901A\u77E5`,other:()=>`${e.number(t.count)} \u4E2A\u901A\u77E5`})}\u3002`},"zh-TW":{close:"\u95DC\u9589",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u901A\u77E5`,other:()=>`${e.number(t.count)} \u500B\u901A\u77E5`})}\u3002`}};function C(t,e$1,n){let{key:r,timer:o,timeout:i}=t.toast;useEffect(()=>{if(!(o==null||i==null))return o.reset(i),()=>{o.pause();}},[o,i]);let a=c$2(),s=e(),d=b(x,"@react-aria/toast"),[u,c]=useState(false);return a$6(()=>{c(true);},[]),{toastProps:{...a$9(t,{labelable:true}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||a,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":u?void 0:"true"},titleProps:{id:a},descriptionProps:{id:s},closeButtonProps:{"aria-label":d.format("close"),onPress:()=>e$1.close(r)}}}var q=1,S=Symbol.for("react-aria-landmark-manager");function ce(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function Z(){if(typeof document>"u")return null;let t=document[S];return t&&t.version>=q?t:(document[S]=new F,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[S])}function de(){return useSyncExternalStore(ce,Z,Z)}var F=class{landmarks=[];isListening=false;refCount=0;version=q;constructor(){this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this);}setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:true}),document.addEventListener("focusin",this.focusinHandler,{capture:true}),document.addEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=true);}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:true}),document.removeEventListener("focusin",this.focusinHandler,{capture:true}),document.removeEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=false);}focusLandmark(e,n){this.landmarks.find(r=>r.ref.current===e)?.focus?.(n);}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(o=>o.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(o=>o.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,r=this.landmarks.length-1;for(;n<=r;){let o=Math.floor((n+r)/2),i=e.ref.current.compareDocumentPosition(this.landmarks[o].ref.current);!!(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)?n=o+1:r=o-1;}this.landmarks.splice(n,0,e),this.checkLabels(e.role);}updateLandmark(e){let n=this.landmarks.findIndex(r=>r.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role));}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded();}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let r=[...n].filter(o=>!o.label);if(r.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,r.map(o=>o.ref.current));else if(process.env.NODE_ENV!=="production"){let o=[...n].map(a=>a.label);o.filter((a,s)=>o.indexOf(a)!==s).forEach(a=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${a}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===a).map(s=>s.ref.current));});}}}closestLandmark(e){let n=new Map(this.landmarks.map(o=>[o.ref.current,o])),r=e;for(;r&&!n.has(r)&&r!==document.body&&r.parentElement;)r=r.parentElement;return n.get(r)}getNextLandmark(e,{backward:n}){let r=this.closestLandmark(e),o=n?this.landmarks.length-1:0;r&&(o=this.landmarks.indexOf(r)+(n?-1:1));let i=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:true,cancelable:true})))return true;o=this.landmarks.length-1;}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:true,cancelable:true})))return true;o=0;}return o<0||o>=this.landmarks.length};if(i())return;let a=o;for(;this.landmarks[o].ref.current?.closest("[aria-hidden=true]");){if(o+=n?-1:1,i())return;if(o===a)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(g(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation());}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&e.ref.current.isConnected?(this.focusLandmark(e.ref.current,"forward"),true):false}navigate(e,n){let r=this.getNextLandmark(e,{backward:n});if(!r)return false;if(r.lastFocused){let o=r.lastFocused;if(e$1(document.body,o))return o.focus(),true}return r.ref.current&&r.ref.current.isConnected?(this.focusLandmark(r.ref.current,n?"backward":"forward"),true):false}focusinHandler(e){let n=this.closestLandmark(g(e));n&&n.ref.current!==g(e)&&this.updateLandmark({ref:n.ref,lastFocused:g(e)});let r=e.relatedTarget;if(r){let o=this.closestLandmark(r);o&&o.ref.current===r&&o.blur();}}focusoutHandler(e){let n=g(e),r=e.relatedTarget;if(!r||r===document){let o=this.closestLandmark(n);o&&o.ref.current===n&&o.blur();}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,r){let o=r?.from||document.activeElement;return e.navigate(o,n==="backward")},focusNext(n){let r=n?.from||document.activeElement;return e.navigate(r,false)},focusPrevious(n){let r=n?.from||document.activeElement;return e.navigate(r,true)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null);}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}};function J(t,e){let{role:n,"aria-label":r,"aria-labelledby":o,focus:i}=t,a=de(),s=r||o,[d,u]=useState(false),c=useCallback(()=>{u(true);},[u]),f=useCallback(()=>{u(false);},[u]);return a$6(()=>{if(a)return a.registerLandmark({ref:e,label:s,role:n,focus:i||c,blur:f})},[a,s,e,n,i,c,f]),useEffect(()=>{d&&e.current?.focus();},[d,e]),{landmarkProps:{role:n,tabIndex:d?-1:void 0,"aria-label":r,"aria-labelledby":o}}}function _(t,e,n){let r=b(x,"@react-aria/toast"),{landmarkProps:o}=J({role:"region","aria-label":t["aria-label"]||r.format("notifications",{count:e.visibleToasts.length})},n),i=useRef(false),a=useRef(false),s=useCallback(()=>{i.current||a.current?e.pauseAll():e.resumeAll();},[e]),{hoverProps:d}=a$5({onHoverStart:()=>{i.current=true,s();},onHoverEnd:()=>{i.current=false,s();}}),u=useRef([]),c$2=useRef(e.visibleToasts),f=useRef(null);a$6(()=>{if(f.current===-1||e.visibleToasts.length===0||!n.current){u.current=[],c$2.current=e.visibleToasts;return}if(u.current=[...n.current.querySelectorAll('[role="alertdialog"]')],c$2.current.length===e.visibleToasts.length&&e.visibleToasts.every((l,p)=>l.key===c$2.current[p].key)){c$2.current=e.visibleToasts;return}let b=c$2.current.map((l,p)=>({...l,i:p,isRemoved:!e.visibleToasts.some(h=>l.key===h.key)})),y=b.findIndex(l=>l.i===f.current&&l.isRemoved);if(y>-1)if(c()==="pointer"&&m.current?.isConnected)a$7(m.current);else {let l=0,p,h;for(;l<=y;)b[l].isRemoved||(h=Math.max(0,l-1)),l++;for(;l<b.length;){if(!b[l].isRemoved){p=l-1;break}l++;}h===void 0&&p===void 0&&(h=0),h>=0&&h<u.current.length?a$7(u.current[h]):p>=0&&p<u.current.length&&a$7(u.current[p]);}c$2.current=e.visibleToasts;},[e.visibleToasts,n]);let m=useRef(null),{focusWithinProps:oe}=b$1({onFocusWithin:b=>{a.current=true,m.current=b.relatedTarget,s();},onBlurWithin:()=>{a.current=false,m.current=null,s();}});return useEffect(()=>{e.visibleToasts.length===0&&m.current?.isConnected&&(c()==="pointer"?a$7(m.current):m.current.focus(),m.current=null);},[n,e.visibleToasts.length]),useEffect(()=>()=>{m.current?.isConnected&&(c()==="pointer"?a$7(m.current):m.current.focus(),m.current=null);},[n]),{regionProps:c$1(o,d,oe,{tabIndex:-1,"data-react-aria-top-layer":true,onFocus:b=>{let y=g(b).closest('[role="alertdialog"]');f.current=u.current.findIndex(l=>l===y);},onBlur:()=>{f.current=-1;}})}}var Y=a({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6mf _1yep5z6mh",variantClassNames:{variant:{info:"_1yep5z613s",warning:"_1yep5z613n",error:"_1yep5z613d",success:"_1yep5z613i"}},defaultVariants:{},compoundVariants:[]}),ee="_1udvgpn5 _1yep5z6iz _1yep5z6j0 _1yep5z6j1 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69l _1yep5z69m _1yep5z69n";var fe=()=>{};function be({state:t,...e}){z.useRef(null);let {toastProps:r,contentProps:o,titleProps:i,descriptionProps:a,closeButtonProps:s}=C(e,t),d=useMemo(()=>({root:r,title:i,content:o,description:a,close:s}),[r,i,o,a,s]),{canClose:u=true,...c}=e.toast.content;return jsx(a$8,{elementProps:d,...c,className:a$2(Y({variant:c.variant||"info"}),c.className),onClose:u?fe:void 0})}var te=z.forwardRef(({state:t,style:e,className:n,...r},o)=>{let i=a$1(o),{regionProps:a}=_(r,t,i),s={zIndex:1,...e,...a.style};return jsx("div",{...a,ref:i,className:a$2(ee,n),style:s,children:t.visibleToasts.map(d=>jsx(be,{toast:d,state:t},d.key))})});te.displayName="ToastRegion";var ne=z.forwardRef(({toastQueue:t,portalContainer:e,...n},r)=>{let o=w(t),i=a$3(e);return o.visibleToasts.length>0?jsx(a$4,{portalContainer:i,ref:r,children:jsx(te,{state:o,...n})}):null});ne.displayName="GlobalToastRegion";export{E as a,ne as b};
|
|
10
|
+
function w(t){let e=useCallback(o=>t.subscribe(o),[t]),n=useCallback(()=>t.visibleToasts,[t]);return {visibleToasts:useSyncExternalStore(e,n,n),add:(o,i)=>t.add(o,i),close:o=>t.close(o),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}var E=class{queue=[];subscriptions=new Set;maxVisibleToasts;wrapUpdate;visibleToasts=[];constructor(e){this.maxVisibleToasts=e?.maxVisibleToasts??1/0,this.wrapUpdate=e?.wrapUpdate;}runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e();}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let r="_"+Math.random().toString(36).slice(2),o={...n,content:e,key:r,timer:n.timeout?new R(()=>this.close(r),n.timeout):void 0};return this.queue.unshift(o),this.updateVisibleToasts("add"),r}close(e){let n=this.queue.findIndex(r=>r.key===e);n>=0&&(this.queue[n].onClose?.(),this.queue.splice(n,1)),this.updateVisibleToasts("remove");}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n();},e);}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause();}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume();}clear(){this.queue=[],this.updateVisibleToasts("clear");}},R=class{timerId;startTime=null;remaining;callback;constructor(e,n){this.remaining=n,this.callback=e;}reset(e){this.remaining=e,this.resume();}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime);}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback();},this.remaining));}};var x={"ar-AE":{close:"\u0625\u063A\u0644\u0627\u0642",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0625\u0634\u0639\u0627\u0631`,other:()=>`${e.number(t.count)} \u0625\u0634\u0639\u0627\u0631\u0627\u062A`})}.`},"bg-BG":{close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u0435`,other:()=>`${e.number(t.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u044F`})}.`},"cs-CZ":{close:"Zav\u0159\xEDt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ozn\xE1men\xED`,other:()=>`${e.number(t.count)} ozn\xE1men\xED`})}.`},"da-DK":{close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`},"de-DE":{close:"Schlie\xDFen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`},"el-GR":{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7`,other:()=>`${e.number(t.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2`})}.`},"en-US":{close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`},"es-ES":{close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificaci\xF3n`,other:()=>`${e.number(t.count)} notificaciones`})}.`},"et-EE":{close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`},"fi-FI":{close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`},"fr-FR":{close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`},"he-IL":{close:"\u05E1\u05D2\u05D5\u05E8",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u05D4\u05EA\u05E8\u05D0\u05D4`,other:()=>`${e.number(t.count)} \u05D4\u05EA\u05E8\u05D0\u05D5\u05EA`})}.`},"hr-HR":{close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`},"hu-HU":{close:"Bez\xE1r\xE1s",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \xE9rtes\xEDt\xE9s`,other:()=>`${e.number(t.count)} \xE9rtes\xEDt\xE9s`})}.`},"it-IT":{close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`},"ja-JP":{close:"\u9589\u3058\u308B",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u306E\u901A\u77E5`,other:()=>`${e.number(t.count)} \u500B\u306E\u901A\u77E5`})}\u3002`},"ko-KR":{close:"\uB2EB\uAE30",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}\uAC1C \uC54C\uB9BC`,other:()=>`${e.number(t.count)}\uAC1C \uC54C\uB9BC`})}.`},"lt-LT":{close:"U\u017Edaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} prane\u0161imas`,other:()=>`${e.number(t.count)} prane\u0161imai`})}.`},"lv-LV":{close:"Aizv\u0113rt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pazi\u0146ojums`,other:()=>`${e.number(t.count)} pazi\u0146ojumi`})}.`},"nb-NO":{close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`},"nl-NL":{close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`},"pl-PL":{close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomie\u0144`,other:()=>`${e.number(t.count)} powiadomienia`})}.`},"pt-BR":{close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica\xE7\xE3o`,other:()=>`${e.number(t.count)} notifica\xE7\xF5es`})}.`},"pt-PT":{close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica\xE7\xE3o`,other:()=>`${e.number(t.count)} notifica\xE7\xF5es`})}.`},"ro-RO":{close:"\xCEnchide\u0163i",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notific\u0103ri`})}.`},"ru-RU":{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435`,other:()=>`${e.number(t.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F`})}.`},"sk-SK":{close:"Zatvori\u0165",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ozn\xE1menie`,few:()=>`${e.number(t.count)} ozn\xE1menia`,other:()=>`${e.number(t.count)} ozn\xE1men\xED`})}.`},"sl-SI":{close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`},"sr-SP":{close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obave\u0161tenje`,other:()=>`${e.number(t.count)} obave\u0161tenja`})}.`},"sv-SE":{close:"St\xE4ng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`},"tr-TR":{close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`},"uk-UA":{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`,other:()=>`${e.number(t.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`})}.`},"zh-CN":{close:"\u5173\u95ED",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u4E2A\u901A\u77E5`,other:()=>`${e.number(t.count)} \u4E2A\u901A\u77E5`})}\u3002`},"zh-TW":{close:"\u95DC\u9589",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u901A\u77E5`,other:()=>`${e.number(t.count)} \u500B\u901A\u77E5`})}\u3002`}};function C(t,e$1,n){let{key:r,timer:o,timeout:i}=t.toast;useEffect(()=>{if(!(o==null||i==null))return o.reset(i),()=>{o.pause();}},[o,i]);let a=c$2(),s=e(),d=b(x,"@react-aria/toast"),[l,u]=useState(false);return a$6(()=>{u(true);},[]),{toastProps:{...a$9(t,{labelable:true}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||a,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":l?void 0:"true"},titleProps:{id:a},descriptionProps:{id:s},closeButtonProps:{"aria-label":d.format("close"),onPress:()=>e$1.close(r)}}}var q=1,S=Symbol.for("react-aria-landmark-manager");function ce(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function Z(){if(typeof document>"u")return null;let t=document[S];return t&&t.version>=q?t:(document[S]=new F,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[S])}function de(){return useSyncExternalStore(ce,Z,Z)}var F=class{landmarks=[];isListening=false;refCount=0;version=q;constructor(){this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this);}setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:true}),document.addEventListener("focusin",this.focusinHandler,{capture:true}),document.addEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=true);}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:true}),document.removeEventListener("focusin",this.focusinHandler,{capture:true}),document.removeEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=false);}focusLandmark(e,n){this.landmarks.find(r=>r.ref.current===e)?.focus?.(n);}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(o=>o.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(o=>o.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,r=this.landmarks.length-1;for(;n<=r;){let o=Math.floor((n+r)/2),i=e.ref.current.compareDocumentPosition(this.landmarks[o].ref.current);!!(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)?n=o+1:r=o-1;}this.landmarks.splice(n,0,e),this.checkLabels(e.role);}updateLandmark(e){let n=this.landmarks.findIndex(r=>r.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role));}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded();}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let r=[...n].filter(o=>!o.label);if(r.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,r.map(o=>o.ref.current));else if(process.env.NODE_ENV!=="production"){let o=[...n].map(a=>a.label);o.filter((a,s)=>o.indexOf(a)!==s).forEach(a=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${a}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===a).map(s=>s.ref.current));});}}}closestLandmark(e){let n=new Map(this.landmarks.map(o=>[o.ref.current,o])),r=e;for(;r&&!n.has(r)&&r!==document.body&&r.parentElement;)r=r.parentElement;return n.get(r)}getNextLandmark(e,{backward:n}){let r=this.closestLandmark(e),o=n?this.landmarks.length-1:0;r&&(o=this.landmarks.indexOf(r)+(n?-1:1));let i=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:true,cancelable:true})))return true;o=this.landmarks.length-1;}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:true,cancelable:true})))return true;o=0;}return o<0||o>=this.landmarks.length};if(i())return;let a=o;for(;this.landmarks[o].ref.current?.closest("[aria-hidden=true]");){if(o+=n?-1:1,i())return;if(o===a)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(j(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation());}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&e.ref.current.isConnected?(this.focusLandmark(e.ref.current,"forward"),true):false}navigate(e,n){let r=this.getNextLandmark(e,{backward:n});if(!r)return false;if(r.lastFocused){let o=r.lastFocused;if(h(document.body,o))return o.focus(),true}return r.ref.current&&r.ref.current.isConnected?(this.focusLandmark(r.ref.current,n?"backward":"forward"),true):false}focusinHandler(e){let n=this.closestLandmark(j(e));n&&n.ref.current!==j(e)&&this.updateLandmark({ref:n.ref,lastFocused:j(e)});let r=e.relatedTarget;if(r){let o=this.closestLandmark(r);o&&o.ref.current===r&&o.blur();}}focusoutHandler(e){let n=j(e),r=e.relatedTarget;if(!r||r===document){let o=this.closestLandmark(n);o&&o.ref.current===n&&o.blur();}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,r){let o=r?.from||document.activeElement;return e.navigate(o,n==="backward")},focusNext(n){let r=n?.from||document.activeElement;return e.navigate(r,false)},focusPrevious(n){let r=n?.from||document.activeElement;return e.navigate(r,true)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null);}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}};function J(t,e){let{role:n,"aria-label":r,"aria-labelledby":o,focus:i}=t,a=de(),s=r||o,[d,l]=useState(false),u=useCallback(()=>{l(true);},[l]),p=useCallback(()=>{l(false);},[l]);return a$6(()=>{if(a)return a.registerLandmark({ref:e,label:s,role:n,focus:i||u,blur:p})},[a,s,e,n,i,u,p]),useEffect(()=>{d&&e.current?.focus();},[d,e]),{landmarkProps:{role:n,tabIndex:d?-1:void 0,"aria-label":r,"aria-labelledby":o}}}function _(t,e,n){let r=b(x,"@react-aria/toast"),{landmarkProps:o}=J({role:"region","aria-label":t["aria-label"]||r.format("notifications",{count:e.visibleToasts.length})},n),i=useRef(false),a=useRef(false),s=useCallback(()=>{i.current||a.current?e.pauseAll():e.resumeAll();},[e]),{hoverProps:d}=a$5({onHoverStart:()=>{i.current=true,s();},onHoverEnd:()=>{i.current=false,s();}}),l=useRef([]),u=useRef(e.visibleToasts),p=useRef(null);a$6(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){l.current=[],u.current=e.visibleToasts;return}if(l.current=[...n.current.querySelectorAll('[role="alertdialog"]')],u.current.length===e.visibleToasts.length&&e.visibleToasts.every((c,f)=>c.key===u.current[f].key)){u.current=e.visibleToasts;return}let b=u.current.map((c,f)=>({...c,i:f,isRemoved:!e.visibleToasts.some(h=>c.key===h.key)})),y=b.findIndex(c=>c.i===p.current&&c.isRemoved);if(y>-1)if(c()==="pointer"&&m.current?.isConnected)a$7(m.current);else {let c=0,f,h;for(;c<=y;)b[c].isRemoved||(h=Math.max(0,c-1)),c++;for(;c<b.length;){if(!b[c].isRemoved){f=c-1;break}c++;}h===void 0&&f===void 0&&(h=0),h>=0&&h<l.current.length?a$7(l.current[h]):f>=0&&f<l.current.length&&a$7(l.current[f]);}u.current=e.visibleToasts;},[e.visibleToasts,n]);let m=useRef(null),{focusWithinProps:oe}=b$1({onFocusWithin:b=>{a.current=true,m.current=b.relatedTarget,s();},onBlurWithin:()=>{a.current=false,m.current=null,s();}});return useEffect(()=>{e.visibleToasts.length===0&&m.current?.isConnected&&(c()==="pointer"?a$7(m.current):m.current.focus(),m.current=null);},[n,e.visibleToasts.length]),useEffect(()=>()=>{m.current?.isConnected&&(c()==="pointer"?a$7(m.current):m.current.focus(),m.current=null);},[n]),{regionProps:c$1(o,d,oe,{tabIndex:-1,"data-react-aria-top-layer":true,onFocus:b=>{let y=j(b).closest('[role="alertdialog"]');p.current=l.current.findIndex(c=>c===y);},onBlur:()=>{p.current=-1;}})}}var Y=a({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6mf _1yep5z6mh",variantClassNames:{variant:{info:"_1yep5z613s",warning:"_1yep5z613n",error:"_1yep5z613d",success:"_1yep5z613i"}},defaultVariants:{},compoundVariants:[]}),ee="_1udvgpn5 _1yep5z6iz _1yep5z6j0 _1yep5z6j1 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z69l _1yep5z69m _1yep5z69n";var fe=()=>{};function be({state:t,...e}){z.useRef(null);let {toastProps:r,contentProps:o,titleProps:i,descriptionProps:a,closeButtonProps:s}=C(e,t),{canClose:d=true,...l}=e.toast.content,{closeLabel:u}=l,p=useMemo(()=>({root:r,title:i,content:o,description:a,close:u?{...s,"aria-label":u}:s}),[r,i,o,a,s,u]);return jsx(a$8,{elementProps:p,...l,className:a$2(Y({variant:l.variant||"info"}),l.className),onClose:d?fe:void 0})}var te=z.forwardRef(({state:t,style:e,className:n,"data-block-id":r,"data-block-class":o,...i},a)=>{let s=a$1(a),{regionProps:d}=_(i,t,s),l={zIndex:1,...e,...d.style};return jsx("div",{...d,ref:s,className:a$2(ee,n),style:l,"data-block-id":r,"data-block-class":o,children:t.visibleToasts.map(u=>jsx(be,{toast:u,state:t},u.key))})});te.displayName="ToastRegion";var ne=z.forwardRef(({toastQueue:t,portalContainer:e,...n},r)=>{let o=w(t),i=a$3(e);return o.visibleToasts.length>0?jsx(a$4,{portalContainer:i,ref:r,children:jsx(te,{state:o,...n})}):null});ne.displayName="GlobalToastRegion";export{E as a,ne as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ETM4MNG4.mjs';import e from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-F7WPMQ3P.mjs';import {b,a as a$1}from'./chunk-SD43KVTU.mjs';import a,{useEffect}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-G77E7EDE.mjs';import {a as a$6}from'./chunk-MIF6BAPG.mjs';import {d}from'./chunk-PD5ZXNGT.mjs';import {a as a$1}from'./chunk-NGZRN4SF.mjs';import {c,b}from'./chunk-DZDZZRWE.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-K5RYVERS.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$9}from'./chunk-STMDFIUL.mjs';import {a as a$8}from'./chunk-B3EZOXNU.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import fe,{useMemo,useCallback,useEffect,useRef}from'react';import {CheckmarkIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$4}from'./chunk-TJEK54BW.mjs';import {a as a$6}from'./chunk-J7K7I5
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var X={"ar-AE":{steplist:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u0637\u0648\u0627\u062A"},"bg-BG":{steplist:"\u0421\u043F\u0438\u0441\u044A\u043A \u0441\u044A\u0441 \u0441\u0442\u044A\u043F\u043A\u0438"},"cs-CZ":{steplist:"Seznam krok\u016F"},"da-DK":{steplist:"Trinliste"},"de-DE":{steplist:"Schrittliste"},"el-GR":{steplist:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03B2\u03B7\u03BC\u03AC\u03C4\u03C9\u03BD"},"en-US":{steplist:"Step List"},"es-ES":{steplist:"Lista de pasos"},"et-EE":{steplist:"Sammude loend"},"fi-FI":{steplist:"Vaiheluettelo"},"fr-FR":{steplist:"Liste des \xE9tapes"},"he-IL":{steplist:"\u05E8\u05E9\u05D9\u05DE\u05EA \u05E6\u05E2\u05D3\u05D9\u05DD"},"hr-HR":{steplist:"Lista koraka"},"hu-HU":{steplist:"L\xE9p\xE9sek list\xE1ja"},"it-IT":{steplist:"Elenco dei passaggi"},"ja-JP":{steplist:"\u624B\u9806\u30EA\u30B9\u30C8"},"ko-KR":{steplist:"\uB2E8\uACC4 \uBAA9\uB85D"},"lt-LT":{steplist:"\u017Dingsni\u0173 s\u0105ra\u0161as"},"lv-LV":{steplist:"Darb\u012Bbu saraksts"},"nb-NO":{steplist:"Trinnliste"},"nl-NL":{steplist:"Stappenlijst"},"pl-PL":{steplist:"Lista krok\xF3w"},"pt-BR":{steplist:"Lista de etapas"},"pt-PT":{steplist:"Lista de passos"},"ro-RO":{steplist:"Lista de pa\u0219i"},"ru-RU":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u0448\u0430\u0433\u043E\u0432"},"sk-SK":{steplist:"Zoznam krokov"},"sl-SI":{steplist:"Seznam korakov"},"sr-SP":{steplist:"Lista koraka"},"sv-SE":{steplist:"Steglista"},"tr-TR":{steplist:"Ad\u0131m Listesi"},"uk-UA":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u043A\u0440\u043E\u043A\u0456\u0432"},"zh-CN":{steplist:"\u6B65\u9AA4\u5217\u8868"},"zh-TW":{steplist:"\u6B65\u9A5F\u6E05\u55AE"}};function
|
|
10
|
+
var X={"ar-AE":{steplist:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u0637\u0648\u0627\u062A"},"bg-BG":{steplist:"\u0421\u043F\u0438\u0441\u044A\u043A \u0441\u044A\u0441 \u0441\u0442\u044A\u043F\u043A\u0438"},"cs-CZ":{steplist:"Seznam krok\u016F"},"da-DK":{steplist:"Trinliste"},"de-DE":{steplist:"Schrittliste"},"el-GR":{steplist:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03B2\u03B7\u03BC\u03AC\u03C4\u03C9\u03BD"},"en-US":{steplist:"Step List"},"es-ES":{steplist:"Lista de pasos"},"et-EE":{steplist:"Sammude loend"},"fi-FI":{steplist:"Vaiheluettelo"},"fr-FR":{steplist:"Liste des \xE9tapes"},"he-IL":{steplist:"\u05E8\u05E9\u05D9\u05DE\u05EA \u05E6\u05E2\u05D3\u05D9\u05DD"},"hr-HR":{steplist:"Lista koraka"},"hu-HU":{steplist:"L\xE9p\xE9sek list\xE1ja"},"it-IT":{steplist:"Elenco dei passaggi"},"ja-JP":{steplist:"\u624B\u9806\u30EA\u30B9\u30C8"},"ko-KR":{steplist:"\uB2E8\uACC4 \uBAA9\uB85D"},"lt-LT":{steplist:"\u017Dingsni\u0173 s\u0105ra\u0161as"},"lv-LV":{steplist:"Darb\u012Bbu saraksts"},"nb-NO":{steplist:"Trinnliste"},"nl-NL":{steplist:"Stappenlijst"},"pl-PL":{steplist:"Lista krok\xF3w"},"pt-BR":{steplist:"Lista de etapas"},"pt-PT":{steplist:"Lista de passos"},"ro-RO":{steplist:"Lista de pa\u0219i"},"ru-RU":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u0448\u0430\u0433\u043E\u0432"},"sk-SK":{steplist:"Zoznam krokov"},"sl-SI":{steplist:"Seznam korakov"},"sr-SP":{steplist:"Lista koraka"},"sv-SE":{steplist:"Steglista"},"tr-TR":{steplist:"Ad\u0131m Listesi"},"uk-UA":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u043A\u0440\u043E\u043A\u0456\u0432"},"zh-CN":{steplist:"\u6B65\u9AA4\u5217\u8868"},"zh-TW":{steplist:"\u6B65\u9A5F\u6E05\u55AE"}};function w(p,t,a){let{"aria-label":s}=p,{listProps:r}=a$6({...p,...t,allowsTabNavigation:true,ref:a}),o=b$1(X,"@react-aria/steplist");return {listProps:{...{...c$1(r,a$7(p,{labelable:true})),"aria-label":s||o.format("steplist")},tabIndex:void 0}}}function N(p){let t=a$4({...p,onSelectionChange:p.onSelectionChange?e=>{e!=null&&p.onSelectionChange?.(e);}:void 0}),[a,s]=a$5(p.lastCompletedStep,p.defaultLastCompletedStep??null,p.onLastCompletedStepChange),{setSelectedKey:r,selectedKey:o,collection:d}=t,{indexMap:y,keysLinkedList:c}=useMemo(()=>me(d),[d]),_=o!=null?y.get(o):0,m=useCallback(e=>e===void 0?false:e!==null&&a!==null&&y.has(e)&&y.has(a)&&y.get(e)<=y.get(a),[y,a]),k=useCallback((e,n)=>{let l=null;if(e&&e.size>0)for(l=e.getFirstKey();l!==e.getLastKey()&&l&&(n.has(l)||m(l));)l=e.getKeyAfter(l);return l},[m]);useEffect(()=>{let e=t.selectedKey;(t.selectionManager.isEmpty||e==null||!t.collection.getItem(e))&&(e=k(t.collection,t.disabledKeys),e!==null&&t.selectionManager.replaceSelection(e)),t.selectionManager.focusedKey==null&&t.selectionManager.setFocusedKey(e);let n=(a!==null?y.get(a):-1)??-1;_!==void 0&&_>0&&_>n+1&&e!==null&&c.has(e)&&s(c.get(e));});function g(e){if(p.isDisabled||t.disabledKeys.has(e)||p.isReadOnly)return false;if(m(e))return true;let n=c.get(e);return m(n)||e===t.collection.getFirstKey()}function h(e){let n=c.get(e);n&&!m(n)&&s(n),r(e);}return {...t,setSelectedKey:h,setLastCompletedStep:s,isCompleted:m,isSelectable:g}}function me(p){let t=new Map,a=new Map,s=0,r;for(let o of p)t.set(o.key,s),a.set(o.key,r?.key),r=o,s++;return {indexMap:t,keysLinkedList:a}}var $=a({defaultClassName:"_41r3q2q _1yep5z6kb _1yep5z6kc _1yep5z6kd",variantClassNames:{variant:{condensed:"_41r3q2r _1yep5z618j",expanded:"_41r3q2s _1yep5z6us _1yep5z6ut _1yep5z6uu _1yep5z6sg _1yep5z6sh _1yep5z6si _1yep5z6173 _1yep5z6174 _1yep5z6175"},status:{complete:"_1yep5z6136",active:"_41r3q2u",incomplete:"_41r3q2v"}},defaultVariants:{},compoundVariants:[]}),ee=a({defaultClassName:"_1yep5z6ez",variantClassNames:{size:{sm:"_1yep5z610e",md:"_1yep5z610h"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),te=a({defaultClassName:"_41r3q28 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6mf _1yep5z6mh _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6m0",variantClassNames:{size:{sm:"_41r3q29 _1yep5z610e",md:"_41r3q2a _1yep5z610h"},status:{complete:"_41r3q2b _1yep5z6136 _1yep5z611n",active:"_1yep5z612s _1yep5z611h _1yep5z6142",incomplete:"_1yep5z612s _1yep5z611h _1yep5z613z"},isDisabled:{true:"_41r3q2e"},isFocusVisible:{true:"_41r3q2f"}},defaultVariants:{},compoundVariants:[[{status:"complete",isDisabled:true},"_41r3q2g _1yep5z61pt _1yep5z61o6"],[{status:"active",isDisabled:true},"_1yep5z61pb _1yep5z61o4 _1yep5z61qp"],[{status:"incomplete",isDisabled:true},"_1yep5z61pb _1yep5z61o4 _1yep5z61qp"]]}),se=a({defaultClassName:"_41r3q23 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1",variantClassNames:{variant:{condensed:"_1yep5z618j _1yep5z6vy _1yep5z6vz _1yep5z6w0",expanded:"_41r3q25 _1yep5z6173 _1yep5z6174 _1yep5z6175"},isLast:{true:"_41r3q26"}},defaultVariants:{},compoundVariants:[]}),pe="_41r3q27 _1yep5z60 _1yep5z61 _1yep5z62 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6m5",ae=a({defaultClassName:"_41r3q20 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj",variantClassNames:{variant:{condensed:"_1yep5z616i _1yep5z616j _1yep5z616k _1yep5z6vy _1yep5z6vz _1yep5z6w0",expanded:"_1yep5z616c _1yep5z616d _1yep5z616e _1yep5z618m _1yep5z618l _1yep5z6wy _1yep5z6wz _1yep5z6x0"}},defaultVariants:{},compoundVariants:[]}),ie="_41r3q2h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jw _1yep5z6jx _1yep5z6jy _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6kk _1yep5z6kl _1yep5z6km _1yep5z69c _1yep5z69d _1yep5z69e",re=a({defaultClassName:"_1yep5z6ey",variantClassNames:{size:{sm:"_1yep5z610h",md:"_1yep5z610k"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]});function A(p,t,a){let{key:s}=p,{selectionManager:r,selectedKey:o}=t,d$1=!t.isSelectable(s),{itemProps:y}=d({isDisabled:d$1,key:s,ref:a,selectionManager:r});return {stepProps:{...y,role:"link","aria-current":o===s?"step":void 0,"aria-disabled":d$1?true:void 0,tabIndex:d$1?void 0:0}}}function le({state:p,item:t,size:a,variant:s,index:r,isLast:o,stepLabel:d,completedLabel:y}){let c=useRef(null),_=b(),{stepProps:m}=A({key:t.key},p,c),{hoverProps:k,isHovered:g}=a$8({}),{focusProps:h,isFocused:e,isFocusVisible:n}=a$9(),l=p.isCompleted(t.key),I=p.selectedKey===t.key,b$1=l?"complete":I?"active":"incomplete",L=p.disabledKeys.has(t.key),z=t["aria-label"],P=!!z&&!t.description,C=s==="expanded"&&!!t.title&&!P,x=s==="expanded"&&!!t.description,q=t.title||((typeof d=="function"?d({index:r+1}):d)??_.formatMessage(oe.step,{index:r+1})),i=y??_.formatMessage(oe.completed),v=a==="sm"?CheckmarkIcon:CheckmarkIcon$1;return jsxs("li",{className:a$3("BaselineUI-Stepper-Item",se({variant:s,isLast:o})),"data-status":b$1,children:[jsxs("a",{...c$1(m,k,h),ref:c,"aria-label":l&&z?[i,z].join(" "):z||void 0,className:a$3("BaselineUI-Stepper-StepLink",pe),"data-status":b$1,"data-hovered":g||void 0,"data-focused":e||void 0,"data-focus-visible":n||void 0,"data-disabled":L||void 0,children:[jsx("span",{className:a$3("BaselineUI-Stepper-Indicator",te({size:a,status:b$1,isDisabled:L,isFocusVisible:n})),"aria-hidden":"true",children:l?jsx(v,{}):jsx("span",{children:r+1})}),l?jsx(b$2,{children:i}):null,C?jsxs("span",{className:a$3("BaselineUI-Stepper-Text",ie),children:[jsx("span",{className:a$3("BaselineUI-Stepper-Title",re({size:a,isDisabled:L})),children:t.title}),x?jsx("span",{className:a$3("BaselineUI-Stepper-Description",ee({size:a,isDisabled:L})),children:t.description}):null]}):z?null:jsx(b$2,{children:q})]}),!o&&jsx("span",{className:a$3("BaselineUI-Stepper-Connector",$({variant:s,status:b$1})),"aria-hidden":"true"})]})}var oe=c({step:{defaultMessage:"Step {index}",id:"bui.stepper.step"},completed:{defaultMessage:"Completed",id:"bui.stepper.completed"}});var ne=fe.forwardRef(function(t,a){let{items:s,variant:r="expanded",size:o="md",selectedStep:d,defaultSelectedStep:y,onSelectionChange:c,lastCompletedStep:_,defaultLastCompletedStep:m,onLastCompletedStepChange:k,isDisabled:g,className:h,style:e,"aria-label":n,stepLabel:l,completedLabel:I}=t,b$1=b(),L=useMemo(()=>new Set(s.filter(i=>i.isDisabled).map(i=>i.key)),[s]),z=useMemo(()=>s.map(i=>jsx(a$1,{textValue:i.title??String(i.key),children:i.title??""},i.key)),[s]),P=useMemo(()=>new Map(s.map(i=>[i.key,i])),[s]),C=N({children:z,selectedKey:d,defaultSelectedKey:y,onSelectionChange:c,lastCompletedStep:_,defaultLastCompletedStep:m,onLastCompletedStepChange:k,disabledKeys:L,isDisabled:g}),x=a$2(a),{listProps:q}=w({children:z,"aria-label":n||b$1.formatMessage(Se.label)},C,x);return jsx("ol",{...q,ref:x,className:a$3("BaselineUI-Stepper",ae({variant:r}),h),style:e,"data-variant":r,"data-size":o,children:[...C.collection].map((i,v,de)=>{let V=P.get(i.key);return V?jsx(le,{state:C,item:V,size:o,variant:r,index:v,isLast:v===de.length-1,stepLabel:l,completedLabel:I},i.key):null})})});ne.displayName="Stepper";var Se=c({label:{defaultMessage:"Progress",id:"bui.stepper.label"}});export{ne as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {c as c$1}from'./chunk-TSHZ7JSR.mjs';import {I}from'./chunk-CTSDHAAV.mjs';import {a as a$1}from'./chunk-3DWFAHR2.mjs';import {a}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-3BG6K2G2.mjs';import {a as a$4}from'./chunk-VDUFLHKK.mjs';import {d}from'./chunk-HH4VLTF3.mjs';import {a as a$3}from'./chunk-SVIYLH7R.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {sprinkles}from'@baseline-ui/tokens';import K,{useMemo,useState,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 B="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",N="_1yep5z61sj _1yep5z61sk _1yep5z61sl _1yep5z61ih _1yep5z61ii _1yep5z61ij";var R=K.forwardRef(({className:c$2,style:l,items:s,optionsContainerClassName:d,label:e,icon:t,value:i,defaultValue:p,onChange:m,isDisabled:f,optionClassName:j,optionStyle:T,labelPosition:u="top","data-block-id":I,"data-block-class":L,shouldFocusWrap:D,tooltip:F=true,...a$4},M)=>{let P=useMemo(()=>s.map(o=>({id:o.color,label:o.label})),[s]),b=c(),[C,v]=useState(!!i);return i&&!C&&v(true),useEffect(()=>{!e&&!a$4["aria-label"]&&!a$4["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[e,a$4]),jsxs(a,{...a$3(a$4),className:a$2("BaselineUI-ColorSwatchPicker",c$2),"data-block-id":I,"data-block-class":L,display:"flex",flexDirection:u==="top"?"column":"row",alignItems:u==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:l,ref:M,children:[t||e?jsxs(a,{display:"flex",alignItems:"center",gap:"md",children:[t?jsx(t,{"aria-hidden":"true",size:24,className:sprinkles({color:"icon.primary"})}):null,e?jsx(a$1,{id:b,type:"label",size:"sm",children:e}):null]}):null,jsx(c$1,{className:a$2(N,d),selectionMode:"single",items:P,orientation:"horizontal",defaultSelectedKeys:p?[p]:void 0,disabledKeys:f?P.map(o=>o.id):void 0,isDisabled:f,selectedKeys:i?[i]:C?[]:void 0,onSelectionChange:o=>{m?.([...o][0]);},optionClassName:j,optionStyle:T,renderOption:(...o)=>W(...o,F),shouldFocusWrap:D,...a$4,"aria-labelledby":e?b:a$4["aria-labelledby"]})]})});R.displayName="ColorSwatchPicker";var W=({key:c,textValue:l},{isSelected:s,isFocusVisible:d$1,isDisabled:e,optionProps:t},i,p)=>{let{tooltipProps:m}=a$4({label:l,tooltip:p});return jsx(a$5,{...m,children:jsx(d,{children:jsx("li",{...t,"data-disabled":e,className:a$2(B,t.className),ref:i,children:jsx(I,{isFocusVisible:d$1,color:c,isSelected:s,"aria-label":l,isInteractive:true,isDisabled:e,tooltip:false})})})})};export{R as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-GCBMNOA6.mjs';import {a as a$1}from'./chunk-FP5EWPOF.mjs';import {a as a$5}from'./chunk-2VOWBYNS.mjs';import {a as a$3}from'./chunk-NRQSR3G7.mjs';import {a as a$7}from'./chunk-3KCSUNRV.mjs';import {a as a$2}from'./chunk-OYSOPCTA.mjs';import {a as a$6}from'./chunk-5IC46G5J.mjs';import {a as a$a}from'./chunk-22VRCVTH.mjs';import {b as b$1,c as c$2}from'./chunk-HH4VLTF3.mjs';import {c as c$3,b as b$2}from'./chunk-KUDCYGII.mjs';import {a as a$9}from'./chunk-B3EZOXNU.mjs';import {c,b}from'./chunk-3WKDIXCM.mjs';import {a as a$8}from'./chunk-SVIYLH7R.mjs';import {c as c$1}from'./chunk-ETM4MNG4.mjs';import {a as a$b}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import z,{useRef,useState,useMemo,useEffect}from'react';import {motion}from'motion/react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function S(e,i,a){let p=a$8(e,{labelable:true}),{hoverProps:u}=a$9({onHoverStart:()=>i?.open(true),onHoverEnd:()=>i?.close()},a);return {tooltipProps:c(p,u,{role:"tooltip"})}}function C(e,i,a){let{isDisabled:p,trigger:u,shouldCloseOnPress:T=true}=e,c$4=c$1(),s=useRef(false),t=useRef(false),o=()=>{(s.current||t.current)&&i.open(t.current);},f=d=>{!s.current&&!t.current&&i.close(d);};useEffect(()=>{let d=R=>{a&&a.current&&R.key==="Escape"&&(R.stopPropagation(),i.close(true));},F=a$b(a?.current);if(i.isOpen)return F.addEventListener("keydown",d,true),()=>{F.removeEventListener("keydown",d,true);}},[a,i]);let P=()=>{u!=="focus"&&(c$3()==="pointer"?s.current=true:s.current=false,o());},r=()=>{u!=="focus"&&(t.current=false,s.current=false,f());},y=()=>{T&&(t.current=false,s.current=false,f(true));},m=()=>{b$2()&&(t.current=true,o());},b=()=>{t.current=false,s.current=false,f(true);},{hoverProps:l}=a$9({isDisabled:p,onHoverStart:P,onHoverEnd:r}),{focusableProps:n}=c$2({isDisabled:p,onFocus:m,onBlur:b},a);return {triggerProps:{"aria-describedby":i.isOpen?c$4:void 0,...c(n,l,{onPointerDown:y,onKeyDown:y}),tabIndex:void 0},tooltipProps:{id:c$4}}}var ce=1500,ee=500,v={},fe=0,x=false,g=null,O=null;function E(e={}){let{delay:i=ce,closeDelay:a=ee}=e,{isOpen:p,open:u,close:T}=a$a(e),[c,s]=useState(false),t=useMemo(()=>`${++fe}`,[]),o=useRef(null),f=useRef(T),P=()=>{v[t]=m;},r=()=>{for(let l in v)l!==t&&(v[l](true,true),delete v[l]);},y=l=>{o.current&&clearTimeout(o.current),o.current=null,r(),P(),s(!!l),x=true,u(),g&&(clearTimeout(g),g=null),O&&(clearTimeout(O),O=null);},m=(l,n)=>{s(!!n),l||a<=0?(o.current&&clearTimeout(o.current),o.current=null,f.current()):o.current||(o.current=setTimeout(()=>{o.current=null,f.current();},a)),g&&(clearTimeout(g),g=null),x&&(O&&clearTimeout(O),O=setTimeout(()=>{delete v[t],O=null,x=false;},Math.max(ee,a)));},b=()=>{r(),P(),!p&&!x?(g&&clearTimeout(g),g=setTimeout(()=>{g=null,x=true,y(false);},i)):p||y(true);};return useEffect(()=>{f.current=T;},[T]),useEffect(()=>()=>{o.current&&clearTimeout(o.current),v[t]&&delete v[t];},[t]),{isOpen:p,shouldSkipAnimation:c,open:l=>{!l&&i>0&&!o.current?b():y(x);},close:m}}var oe=a({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),te=a({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6gh _1yep5z6f3",inverse:"_1yep5z6d7 _1yep5z6g9 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]});var h=z.forwardRef(({children:e,state:i,overlayProps:a,arrowProps:p,placement:u="bottom",variant:T,size:c$1,tooltipProps:s,includeArrow:t,id:o,"aria-label":f,"aria-labelledby":P,"aria-describedby":r,"aria-details":y},m)=>{let b$1=useRef(null),{tooltipProps:l}=S({isOpen:i.isOpen,id:o,"aria-label":f,"aria-labelledby":P,"aria-describedby":r,"aria-details":y},i,b$1),n=u==="center"?"bottom":u,{transitionProps:d}=a$1({placement:u});return jsxs(motion.span,{...c(a,d),ref:b(m,b$1),"data-placement":n,children:[t?jsx("div",{className:oe({placement:n,variant:T}),...p}):null,jsx("div",{...c(l,s),className:te({variant:T,size:c$1}),children:e})]})});h.displayName="TooltipContent";var ie=z.forwardRef(({children:e,placement:i="bottom",delay:a=1e3,closeDelay:p=500,variant:u="default",size:T="md",includeArrow:c=true,portalContainer:s,className:t,style:o,"data-block-id":f,"data-block-class":P,...r},y)=>{let m=z.useRef(null),b$2=z.useRef(null),l=!r.text||r.isDisabled,n=E({...r,delay:a,closeDelay:p,isDisabled:l}),{triggerProps:d,tooltipProps:F}=C({...r,isDisabled:l},n,m),R=a$2(s),{overlayProps:le,arrowProps:ae,placement:se,updatePosition:k}=a$3({arrowSize:c?13:0,targetRef:m,arrowBoundaryOffset:c?8:0,offset:c?12:2,overlayRef:b$2,placement:i,isOpen:n.isOpen,...r});a$4({ref:b$2,threshold:1,onIntersect:k,isDisabled:!n.isOpen}),a$5({ref:m,onResize:k,isDisabled:!n.isOpen});let pe=z.isValidElement(e)?jsx(b$1,{...d,ref:m,children:e}):typeof e=="function"?e({triggerProps:d,triggerRef:m}):e;return !z.isValidElement(e)&&typeof e!="function"&&e!=null&&e!==""&&typeof e!="boolean"&&a$6("Tooltip:non-element-children","Tooltip: children must be a single element or a render function to trigger the tooltip. Other children render without a trigger, so the tooltip never opens."),jsxs(Fragment,{children:[pe,n.isOpen?jsx(a$7,{disableFocusManagement:true,portalContainer:R,className:t,style:o,"data-block-id":f,"data-block-class":P,children:jsx(h,{ref:b(y,b$2),state:n,arrowProps:ae,overlayProps:le,placement:se??"bottom",tooltipProps:F,variant:u,size:T,includeArrow:c,id:r.id,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],"aria-describedby":r["aria-describedby"],"aria-details":r["aria-details"],children:r.text})}):null]})});ie.displayName="Tooltip";export{ie as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-UO75BAPM.mjs';import {e}from'./chunk-AYQN3OH2.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import x from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-OYSOPCTA.mjs';import {b as b$1}from'./chunk-BGQRLALS.mjs';import {b,c}from'./chunk-IHES52NR.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import u,{useContext}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|