@baseline-ui/core 3.4.0 → 3.6.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.mjs +1 -1
- package/dist/ActionButton.mjs +1 -1
- package/dist/ActionGroup.mjs +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/Breadcrumbs.css +10 -0
- package/dist/Breadcrumbs.mjs +1 -0
- package/dist/ButtonSelect.mjs +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.mjs +1 -1
- package/dist/DateField.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.mjs +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FrameProvider.mjs +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/I18nProvider.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.css +1 -1
- package/dist/ImageGallery.mjs +1 -1
- package/dist/InlineAlert.mjs +1 -1
- package/dist/InlineToolbar.mjs +1 -1
- package/dist/Kbd.mjs +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/ListBox.mjs +1 -1
- package/dist/Menu.mjs +1 -1
- package/dist/MessageFormat.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberInput.mjs +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.mjs +1 -1
- package/dist/ProgressBar.mjs +1 -1
- package/dist/RadioGroup.mjs +1 -1
- package/dist/Reaction.mjs +1 -1
- package/dist/ScrollControlButton.mjs +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Slider.css +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.css +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/TagGroup.mjs +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.mjs +1 -1
- package/dist/ToggleButton.mjs +1 -1
- package/dist/ToggleIconButton.mjs +1 -1
- package/dist/Toolbar.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/Virtualizer.mjs +1 -1
- package/dist/chunk-23WMOYTQ.mjs +10 -0
- package/dist/chunk-266F6F4Y.mjs +10 -0
- package/dist/{chunk-BYDJXA5A.mjs → chunk-2CXZQGP5.mjs} +1 -1
- package/dist/chunk-2KX2HY2H.mjs +10 -0
- package/dist/{chunk-4AG2RUAZ.mjs → chunk-3PU6C5US.mjs} +2 -2
- package/dist/{chunk-UNGYVWKZ.mjs → chunk-3RWM6E56.mjs} +2 -2
- package/dist/{chunk-SVTTHYTR.mjs → chunk-3YVVIFY7.mjs} +1 -1
- package/dist/chunk-42SQX2EB.mjs +10 -0
- package/dist/{chunk-AM5FU4Y7.mjs → chunk-4T7P66ZA.mjs} +1 -1
- package/dist/{chunk-AELTF2DE.mjs → chunk-4WVW4KEK.mjs} +1 -1
- package/dist/{chunk-UO75BAPM.mjs → chunk-4Y4WKIL5.mjs} +1 -1
- package/dist/chunk-6DETJFO2.mjs +10 -0
- package/dist/chunk-6DYTFYPO.mjs +10 -0
- package/dist/{chunk-3DWFAHR2.mjs → chunk-6GV3YWV7.mjs} +1 -1
- package/dist/chunk-6LP7UKPC.mjs +10 -0
- package/dist/chunk-6M77HEKA.mjs +10 -0
- package/dist/chunk-6Q5PNIYZ.mjs +10 -0
- package/dist/chunk-6Z3GYFG5.mjs +10 -0
- package/dist/{chunk-7XGNJE7J.mjs → chunk-7DCQF3EP.mjs} +1 -1
- package/dist/chunk-7EQIV4GX.mjs +10 -0
- package/dist/{chunk-C2VP5IEB.mjs → chunk-7HVUCDKZ.mjs} +1 -1
- package/dist/{chunk-KGS3UWPG.mjs → chunk-7KZEJYIU.mjs} +1 -1
- package/dist/{chunk-AD3MLX6G.mjs → chunk-7OUGARUO.mjs} +1 -1
- package/dist/{chunk-QU34XSML.mjs → chunk-AMLFQDKI.mjs} +2 -2
- package/dist/{chunk-CTSDHAAV.mjs → chunk-ARCCPNHM.mjs} +2 -2
- package/dist/{chunk-OYSOPCTA.mjs → chunk-BA5OA5DY.mjs} +1 -1
- package/dist/{chunk-7L5UOGZA.mjs → chunk-BPW4QRPV.mjs} +2 -2
- package/dist/chunk-BSSLS6MF.mjs +10 -0
- package/dist/{chunk-YPEAGD2G.mjs → chunk-C2B7L5CL.mjs} +1 -1
- package/dist/{chunk-COHK4QQW.mjs → chunk-EGLD5KVP.mjs} +2 -2
- package/dist/chunk-EIB7MPRA.mjs +10 -0
- package/dist/{chunk-QJYPCVSD.mjs → chunk-F67SYAEW.mjs} +1 -1
- package/dist/{chunk-CLGLEEFO.mjs → chunk-FCKJCFMD.mjs} +1 -1
- package/dist/{chunk-LPI2NIDI.mjs → chunk-FF7H33Z5.mjs} +1 -1
- package/dist/{chunk-GL5GUKT7.mjs → chunk-FX3THTOK.mjs} +1 -1
- package/dist/chunk-G2T6UJ66.mjs +11 -0
- package/dist/chunk-GAT5QH2M.mjs +10 -0
- package/dist/chunk-GDIKHTP3.mjs +10 -0
- package/dist/chunk-GFBRKKX4.mjs +10 -0
- package/dist/{chunk-ZZIQF6XD.mjs → chunk-GJTOYWLJ.mjs} +1 -1
- package/dist/chunk-GTHN5ZCZ.mjs +10 -0
- package/dist/{chunk-TSHZ7JSR.mjs → chunk-GYKBMDSJ.mjs} +1 -1
- package/dist/{chunk-NRQSR3G7.mjs → chunk-HABKIEKC.mjs} +1 -1
- package/dist/{chunk-QUQ4VYCN.mjs → chunk-HCQI7MNN.mjs} +1 -1
- package/dist/{chunk-EUVUJQ2Z.mjs → chunk-HJGMXLKN.mjs} +1 -1
- package/dist/{chunk-HI44JQA7.mjs → chunk-HPUUQKKH.mjs} +2 -2
- package/dist/chunk-HZM2XZP4.mjs +10 -0
- package/dist/{chunk-ZFGTKLCU.mjs → chunk-I7SMG6PT.mjs} +1 -1
- package/dist/{chunk-YU5NRJT6.mjs → chunk-IC5SBDP3.mjs} +1 -1
- package/dist/{chunk-DZDZZRWE.mjs → chunk-IDIZSV2Y.mjs} +1 -1
- package/dist/chunk-IGM72PUL.mjs +0 -0
- package/dist/{chunk-TH4XPZEO.mjs → chunk-IM3E5JL4.mjs} +1 -1
- package/dist/{chunk-TUJLNJPJ.mjs → chunk-INFMXVHD.mjs} +2 -2
- package/dist/chunk-IROFSPEN.mjs +10 -0
- package/dist/{chunk-WTAJLO6E.mjs → chunk-J2KZM2I2.mjs} +1 -1
- package/dist/{chunk-R3HHMCE5.mjs → chunk-JHA7DIPG.mjs} +1 -1
- package/dist/chunk-JKOCFSBH.mjs +10 -0
- package/dist/chunk-JTKDC2CM.mjs +10 -0
- package/dist/{chunk-4EANTENO.mjs → chunk-K4N2ADJO.mjs} +1 -1
- package/dist/{chunk-WHN2SEWO.mjs → chunk-KHDWTXGG.mjs} +2 -2
- package/dist/{chunk-TFSBTGTQ.mjs → chunk-KQOXSF4J.mjs} +1 -1
- package/dist/{chunk-RXSX2RKA.mjs → chunk-KX2GDQKJ.mjs} +1 -1
- package/dist/chunk-LQHFBXCW.mjs +10 -0
- package/dist/{chunk-R7R7JDA3.mjs → chunk-LRF3YZWU.mjs} +2 -2
- package/dist/{chunk-MIF6BAPG.mjs → chunk-LSPDPDB6.mjs} +1 -1
- package/dist/{chunk-K4TTZX4T.mjs → chunk-LV5AUNI2.mjs} +1 -1
- package/dist/chunk-MHAPHPNN.mjs +10 -0
- package/dist/{chunk-7P7VZMTO.mjs → chunk-NWWH62TU.mjs} +1 -1
- package/dist/chunk-O23QVPUT.mjs +10 -0
- package/dist/{chunk-P7BN7QDF.mjs → chunk-O4YMXTNR.mjs} +1 -1
- package/dist/{chunk-XD43CVDT.mjs → chunk-OVJT5F2R.mjs} +1 -1
- package/dist/chunk-PCR5FD43.mjs +10 -0
- package/dist/{chunk-Q6PGYMYI.mjs → chunk-PR3CD3UC.mjs} +2 -2
- package/dist/chunk-Q6R75IOP.mjs +10 -0
- package/dist/chunk-QC76UPJB.mjs +29 -0
- package/dist/{chunk-PD5ZXNGT.mjs → chunk-QMV2O57M.mjs} +2 -2
- package/dist/{chunk-NYCG264A.mjs → chunk-QUWRO3HT.mjs} +2 -2
- package/dist/{chunk-5KJF7IQN.mjs → chunk-RE7ZGPOY.mjs} +1 -1
- package/dist/chunk-RFVLSR2P.mjs +10 -0
- package/dist/{chunk-4RSUKS23.mjs → chunk-RFVPGD6N.mjs} +2 -2
- package/dist/chunk-RINS2TBF.mjs +10 -0
- package/dist/chunk-RITIRWKN.mjs +10 -0
- package/dist/chunk-RUHZRYDJ.mjs +10 -0
- package/dist/{chunk-IVGNOQSQ.mjs → chunk-RXVMJVRX.mjs} +1 -1
- package/dist/chunk-SH7ZI4CA.mjs +10 -0
- package/dist/chunk-TDRN6VLD.mjs +10 -0
- package/dist/chunk-TTJTZLW5.mjs +10 -0
- package/dist/chunk-TYKMNZJ4.mjs +11 -0
- package/dist/chunk-TZGK36KC.mjs +10 -0
- package/dist/chunk-UBLCUHRL.mjs +10 -0
- package/dist/chunk-UY76QEJC.mjs +10 -0
- package/dist/chunk-VFO35ZLL.mjs +10 -0
- package/dist/{chunk-BHJCYKFJ.mjs → chunk-VJUSOXPW.mjs} +1 -1
- package/dist/{chunk-IUXXTORQ.mjs → chunk-VZ5CLAIL.mjs} +2 -2
- package/dist/chunk-WB7EFOP7.mjs +10 -0
- package/dist/chunk-WDWBYTJG.mjs +10 -0
- package/dist/{chunk-6G7EUNZW.mjs → chunk-XAM3AXXK.mjs} +1 -1
- package/dist/{chunk-KJ6ZSO3I.mjs → chunk-XDTZXNGJ.mjs} +1 -1
- package/dist/chunk-XG6JJCCJ.mjs +10 -0
- package/dist/{chunk-4W5VP4NV.mjs → chunk-XKUZVQ2A.mjs} +1 -1
- package/dist/chunk-XO7MAUFC.mjs +10 -0
- package/dist/{chunk-24R46WQW.mjs → chunk-XOS3JIQX.mjs} +1 -1
- package/dist/{chunk-W7OTSFZS.mjs → chunk-XSORBGUU.mjs} +1 -1
- package/dist/{chunk-7TE4MFKC.mjs → chunk-XYK5KKOH.mjs} +1 -1
- package/dist/chunk-YDUKC7QS.mjs +10 -0
- package/dist/chunk-Z4QTH4TB.mjs +10 -0
- package/dist/{chunk-UUTMZQQA.mjs → chunk-ZC5WXVNV.mjs} +3 -3
- package/dist/{chunk-E22TWF63.mjs → chunk-ZI7HJRJA.mjs} +2 -2
- package/dist/chunk-ZNLIC44U.mjs +10 -0
- package/dist/chunk-ZP6QG5FX.mjs +10 -0
- package/dist/{chunk-BXNNVZOQ.mjs → chunk-ZXEWW3E7.mjs} +1 -1
- package/dist/{chunk-OZMADP4Z.mjs → chunk-ZZ7YJ2FN.mjs} +2 -2
- 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/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/index.css +1 -1
- package/dist/index.d.ts +150 -33
- package/dist/index.js +21 -21
- package/dist/index.mjs +1 -1
- package/dist/messageIds.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/dist/utils/strings.mjs +1 -1
- package/intl/ar.json +3 -0
- package/intl/cs.json +3 -0
- package/intl/cy.json +3 -0
- package/intl/da.json +3 -0
- package/intl/de.json +3 -0
- package/intl/el.json +3 -0
- package/intl/en-GB.json +3 -0
- package/intl/en.json +3 -0
- package/intl/es.json +3 -0
- package/intl/fi.json +3 -0
- package/intl/fr-CA.json +3 -0
- package/intl/fr.json +3 -0
- package/intl/he.json +3 -0
- package/intl/hr.json +3 -0
- package/intl/id.json +3 -0
- package/intl/it.json +3 -0
- package/intl/ja.json +3 -0
- package/intl/ko.json +3 -0
- package/intl/ms.json +3 -0
- package/intl/nb-NO.json +3 -0
- package/intl/nl.json +3 -0
- package/intl/pl.json +3 -0
- package/intl/pt-PT.json +3 -0
- package/intl/pt.json +3 -0
- package/intl/ru.json +3 -0
- package/intl/sk.json +3 -0
- package/intl/sl.json +3 -0
- package/intl/sv.json +3 -0
- package/intl/th.json +3 -0
- package/intl/tr.json +3 -0
- package/intl/uk.json +3 -0
- package/intl/zh-Hans.json +3 -0
- package/intl/zh-Hant.json +3 -0
- package/messages.json +12 -0
- package/package.json +4 -4
- package/sbom.json +6 -6
- package/dist/chunk-2F3CFR22.mjs +0 -10
- package/dist/chunk-2LFMBQKQ.mjs +0 -10
- package/dist/chunk-36ZMHBG5.mjs +0 -10
- package/dist/chunk-3BEG3MEX.mjs +0 -10
- package/dist/chunk-3BG6K2G2.mjs +0 -10
- package/dist/chunk-3KCSUNRV.mjs +0 -10
- package/dist/chunk-4JQUB53Q.mjs +0 -10
- package/dist/chunk-4MHBLLHV.mjs +0 -11
- package/dist/chunk-5BKC373Y.mjs +0 -10
- package/dist/chunk-5FK5AJ7A.mjs +0 -10
- package/dist/chunk-5SHHWKFM.mjs +0 -10
- package/dist/chunk-76DKF2SK.mjs +0 -10
- package/dist/chunk-7MMO7S3R.mjs +0 -10
- package/dist/chunk-AK7XHUQW.mjs +0 -10
- package/dist/chunk-AYQN3OH2.mjs +0 -10
- package/dist/chunk-BBYODNBO.mjs +0 -10
- package/dist/chunk-DAS5QGJX.mjs +0 -10
- package/dist/chunk-DSV6CCI6.mjs +0 -10
- package/dist/chunk-F7PGMOQF.mjs +0 -10
- package/dist/chunk-FOKMDEP7.mjs +0 -10
- package/dist/chunk-FPFGTGUC.mjs +0 -10
- package/dist/chunk-IEOHIOGL.mjs +0 -10
- package/dist/chunk-IWZXZ5LU.mjs +0 -10
- package/dist/chunk-IXRSSEHQ.mjs +0 -10
- package/dist/chunk-J4OPD7OL.mjs +0 -10
- package/dist/chunk-K7VOXFSK.mjs +0 -10
- package/dist/chunk-MDE2FQHX.mjs +0 -10
- package/dist/chunk-MFB3SWO7.mjs +0 -29
- package/dist/chunk-MYJ733MN.mjs +0 -10
- package/dist/chunk-NJKSUI2F.mjs +0 -10
- package/dist/chunk-O4DA3TPW.mjs +0 -11
- package/dist/chunk-ONEE6UCM.mjs +0 -10
- package/dist/chunk-Q4SEEMIX.mjs +0 -10
- package/dist/chunk-R4MOUAJW.mjs +0 -10
- package/dist/chunk-SZN2J2ER.mjs +0 -10
- package/dist/chunk-U3T5JTZ7.mjs +0 -10
- package/dist/chunk-UDMNDUBO.mjs +0 -10
- package/dist/chunk-VETO7WNN.mjs +0 -10
- package/dist/chunk-VGFPT43C.mjs +0 -10
- package/dist/chunk-VJUBKX3W.mjs +0 -10
- package/dist/chunk-XWJJ4V3O.mjs +0 -10
- package/dist/chunk-YMYMFVW4.mjs +0 -10
- package/dist/chunk-YQHHE5AT.mjs +0 -10
- /package/dist/{chunk-DAN62T2M.mjs → chunk-TIGGKOJQ.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$8}from'./chunk-E3FP4B25.mjs';import {a as a$1,b as b$2}from'./chunk-5ZC64ZG7.mjs';import {a as a$6}from'./chunk-JZXLV6JU.mjs';import {b as b$1,c as c$1}from'./chunk-
|
|
1
|
+
import {a as a$8}from'./chunk-E3FP4B25.mjs';import {a as a$1,b as b$2}from'./chunk-5ZC64ZG7.mjs';import {a as a$6}from'./chunk-JZXLV6JU.mjs';import {b as b$1,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$5}from'./chunk-JTKDC2CM.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$2}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3}from'@baseline-ui/icons/12';import {CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2}from'@baseline-ui/icons/16';import {CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1}from'@baseline-ui/icons/20';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/24';import w from'react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';/**
|
|
2
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-E3FP4B25.mjs';import {a as a$1,b as b$2}from'./chu
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var T=a({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),j="_1nsi9h1f _1yep5z6me _1yep5z6m6 _1yep5z6ey",k=a({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6g9 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z610e",sm:"_1nsi9h12 _1yep5z610h",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6zq _1yep5z6190 _1yep5z618y _1yep5z613y",pinned:"_1yep5z618m"}},defaultVariants:{},compoundVariants:[]}),U=a({defaultClassName:"_1nsi9h1g _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]});var ue={style:"decimal"},ce={xs:[CaretLeftIcon$3,CaretRightIcon$3],sm:[CaretLeftIcon$2,CaretRightIcon$2],md:[CaretLeftIcon$1,CaretRightIcon$1],lg:[CaretLeftIcon,CaretRightIcon]},E=w.forwardRef(({className:
|
|
10
|
+
var T=a({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),j="_1nsi9h1f _1yep5z6me _1yep5z6m6 _1yep5z6ey",k=a({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6g9 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z6z1 _1yep5z6z2 _1yep5z6z3 _1yep5z610e",sm:"_1nsi9h12 _1yep5z610h",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6zq _1yep5z6190 _1yep5z618y _1yep5z613y",pinned:"_1yep5z618m"}},defaultVariants:{},compoundVariants:[]}),U=a({defaultClassName:"_1nsi9h1g _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]});var ue={style:"decimal"},ce={xs:[CaretLeftIcon$3,CaretRightIcon$3],sm:[CaretLeftIcon$2,CaretRightIcon$2],md:[CaretLeftIcon$1,CaretRightIcon$1],lg:[CaretLeftIcon,CaretRightIcon]},E=w.forwardRef(({className:H,style:D,minValue:S=1,defaultValue:q=1,incrementAriaLabel:K,decrementAriaLabel:O,"aria-label":G,size:a="md",variant:t="floating",hideActions:_,isDisabled:i,pageXofYLabel:m,...s},X)=>{let{locale:Y}=b(),r=b$1(),h={...s,formatOptions:ue,minValue:S,incrementAriaLabel:K||r.formatMessage(l.nextPage),decrementAriaLabel:O||r.formatMessage(l.prevPage),defaultValue:q,"aria-label":G||r.formatMessage(l.goToPage)},u=w.useRef(null),n=a$1({...h,locale:Y}),{inputProps:c$1,decrementButtonProps:z,incrementButtonProps:b$3,groupProps:$}=b$2({...h,onKeyUp:C=>{C.key==="Enter"&&u.current?.blur(),s.onKeyUp?.(C);},isDisabled:i},n,u),{hoverProps:J,isHovered:Q}=a$2({isDisabled:i}),{focusProps:W,isFocused:P,isFocusVisible:Z}=a$3(),v=t==="floating",[ee,ae]=ce[a],te=a$4({"data-focus-visible":Z,"data-focused":P,"data-hovered":Q,"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"]});return jsxs("div",{...c($,J,te),className:a$7(k({size:a,variant:t}),"BaselineUI-Pagination",H),style:D,ref:X,children:[_?null:jsxs(Fragment,{children:[jsx(a$5,{icon:ee,...z,elementType:"div",size:a,style:{height:"100%",...v&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:i||z.isDisabled}),t==="floating"&&jsx(a$6,{orientation:"vertical"})]}),jsxs("div",{role:"group",className:T({isFocused:P,variant:t,size:a}),"aria-label":(typeof m=="function"?m({page:n.numberValue,totalPages:n.maxValue}):m)??r.formatMessage(l.pageXofY,{arg0:c$1.value,arg1:n.maxValue}),children:[jsx("input",{...c(c$1,W),ref:u,className:a$7("BaselineUI-Pagination-Input",j),style:{width:`${c$1.value?.toString().length||1}ch`}}),jsxs("span",{className:U({isDisabled:i}),children:["/ ",jsx(a$8,{value:n.maxValue})]})]}),_?null:jsxs(Fragment,{children:[t==="floating"&&jsx(a$6,{orientation:"vertical"}),jsx(a$5,{icon:ae,...b$3,elementType:"div",size:a,style:{height:"100%",...v&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:i||b$3.isDisabled})]})]})});E.displayName="Pagination";var l=c$1({nextPage:{defaultMessage:"Next Page",id:"bui.pagination.nextPage"},prevPage:{defaultMessage:"Previous Page",id:"bui.pagination.prevPage"},goToPage:{defaultMessage:"Go to Page",id:"bui.pagination.goToPage"},pageXofY:{defaultMessage:"Page {arg0} of {arg1}",id:"bui.pagination.pageXofY"}});export{E as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-2CXZQGP5.mjs';import {a as a$9}from'./chunk-TUY23KMK.mjs';import {a as a$8}from'./chunk-NGZRN4SF.mjs';import {b as b$1}from'./chunk-DF2D7NE6.mjs';import {a as a$b}from'./chunk-J2KZM2I2.mjs';import {b as b$3,e as e$1}from'./chunk-RFVPGD6N.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {b as b$6}from'./chunk-INFMXVHD.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$6}from'./chunk-JTKDC2CM.mjs';import {a as a$2}from'./chunk-GMALMQWI.mjs';import {b as b$5}from'./chunk-N2XGJKZG.mjs';import {b as b$7,j as j$2}from'./chunk-MBRNO6IW.mjs';import {e}from'./chunk-TZGK36KC.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {c,b as b$4}from'./chunk-3WKDIXCM.mjs';import {b as b$2,a as a$1}from'./chunk-ETM4MNG4.mjs';import {j as j$1,b as b$8,i,a as a$a,h}from'./chunk-SD43KVTU.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import k,{useState,useRef,useCallback,useMemo,useEffect,createElement}from'react';import {MoreIcon}from'@baseline-ui/icons/24';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Oe=0,O="UNSUPPORTED_IN_MENU";function ve(e){return useMemo(()=>k.Children.toArray(e).map(t=>{let o=t,a=`item${++Oe}`,r=w(o,b$7),u=Te(o),s,f;if(r){let m=w(r,j$2);a$5(m),s=Te(m),f=w(r,a$b).props.children;}else u?s=u:s=o;let{onPress:y,label:n,"aria-label":l,iconStart:p,isDisabled:v,icon:E}=s.props,d=n||l||O;a$5(typeof d=="string","ActionGroup children must have a string label");let b=`${a}-${d}`;return createElement(a$8,{...{key:b,onPress:y,textValue:d,"aria-label":l,icon:p||E,dialogContent:f,isDisabled:v},key:b},o)}),[e])}function w(e,t){if(t)for(let o of k.Children.toArray(e)){if(!k.isValidElement(o))continue;let a=o;if(a.type===t)return a;if(a.props.children){let r=w(a.props.children,t);if(r)return r}}}function Te(e){return w(e,b$6)||w(e,a$6)}var Ke=new Set(["text","search","password","tel","url"]);function N({props:e,ref:t}){let{toolbarProps:o}=a$9(e,t),a=o.onKeyDownCapture,{direction:r}=b$5(),u=r==="rtl",s=e.orientation??"horizontal",f=n=>{let l=t.current;if(!l)return;let p=i(a$a(l));if(!p||!h(l,p)||p.dataset.buiAvoidFocus!=="true")return;let v=Fe(l),E=v.indexOf(p);if(E===-1)return;let d=B({key:n,orientation:s,isRTL:u});if(!d)return;let b=E+d;for(;b>=0&&b<v.length;){let R=v[b];if(R.dataset.buiAvoidFocus!=="true"&&!R.matches('[disabled], [aria-disabled="true"]')){R.focus();return}b+=d;}},y=n=>{a?.(n),f(n.key);};return {toolbarProps:{...o,onKeyDownCapture:n=>{let l=j$1(n);(!Re(l)||s==="horizontal"&&Ee(n,l,s))&&y(n);},onKeyDown:n=>{let l=j$1(n);n.isDefaultPrevented()||!Re(l)||(n.key==="Tab"||s==="vertical"&&!Ue(l)&&Ee(n,l,s))&&y(n);}}}}function Ee(e,t,o){let{key:a}=e,{selectionStart:r,selectionEnd:u,value:s}=t;return !Ve(a,o)||e.nativeEvent.isComposing||r!==u||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey?false:B({key:a,orientation:o,isRTL:b$8(t).getComputedStyle(t).direction==="rtl"})===-1?r===0:u===s.length}function Ve(e,t){return B({key:e,orientation:t,isRTL:false})!==null}function Ue(e){return e.hasAttribute("list")||e.getAttribute("role")==="combobox"}function B({key:e,orientation:t,isRTL:o}){return t==="vertical"?e==="ArrowUp"?-1:e==="ArrowDown"?1:null:e==="ArrowLeft"?o?1:-1:e==="ArrowRight"?o?-1:1:null}var We='button, [role="button"], input, [tabindex]';function Fe(e){let t=[],o=a=>{t.push(...a.querySelectorAll(We));for(let r of a.querySelectorAll("*"))r.shadowRoot&&o(r.shadowRoot);};return o(e),t}function Re(e){let t=e.tagName.toLowerCase();return t==="textarea"||t==="input"&&Ke.has(e.type)}var he="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6m3 _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6lv",we={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var V=k.forwardRef(({className:e$2,style:t,children:o,collapsibleMenuProps:a$7,"data-block-id":r,"data-block-class":u,renderSpacer:s,onKeyDown:f,isSingleTabStop:y=true,moreLabel:n,"aria-controls":l,...p},v)=>{let{formatMessage:E}=b(),[d,b$4]=useState(),R=ve(o),m=b$1({...p,children:R}),g=a(v),z=useRef(null),[{visibleItems:W,isMeasuring:F},j$1]=b$2({visibleItems:m.collection.size,isMeasuring:false}),D=useCallback(()=>{let i=c=>{if(z.current&&g.current){let T=[...z.current.children],S=g.current.getBoundingClientRect().width,_e=c<m.collection.size,_=0,X=0;if(_e){let I=T.pop();I&&(_+=Ae(I,false,true));}for(let[I,He]of T.entries())if(_+=Ae(He,I===0,I===T.length-1),Math.round(_)<=Math.round(S))X++;else break;return X}return c};j$1(function*(){yield {visibleItems:m.collection.size,isMeasuring:true};let c=i(m.collection.size),T=c<m.collection.size&&c>0;yield {visibleItems:c,isMeasuring:T},T&&(yield {visibleItems:i(c),isMeasuring:false});});},[j$1,g,m.collection.size]),xe=useMemo(()=>({get current(){return g.current?.parentElement}}),[g]);e({ref:xe,onResize:D}),a$1(D,[m.collection,D]);let{toolbarProps:Ne}=N({props:{...p,isSingleTabStop:y},ref:g}),J=[...m.collection],ze=J.slice(0,W),A=J.slice(W).filter(i=>i.textValue!==O),De=A.length>0;useEffect(()=>{b$4(void 0);},[A.length]),useEffect(()=>{p.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[p.orientation]);let{keyboardProps:Se}=j({onKeyDown:f});return jsxs(a$2,{children:[jsx("div",{...c(Se,Ne),...l?{"aria-controls":l}:{},className:e$2,"data-block-id":r,"data-block-class":u,"data-collapse":true,style:{...t,flexBasis:F?"100%":void 0},ref:g,children:jsxs("div",{ref:z,className:he,children:[ze.map(i=>i.rendered),De?jsxs(Fragment,{children:[!F&&s?jsx(a$3,{flexGrow:1}):null,jsx(a$4,{placement:"bottom end",renderTrigger:({buttonProps:i,ref:c})=>jsx(a$6,{...i,size:"md",icon:MoreIcon,"aria-label":n??E($e.more),variant:"toolbar",ref:c,tooltip:true,"data-testid":"toolbar-overflow-button"}),...a$7,disabledKeys:A.filter(i=>i.props?.isDisabled).map(i=>i.key),items:A.map(i=>{let c=i.textValue||i["aria-label"];return a$5(c,"ActionItem must have a label"),{id:i.key,label:c,icon:i.props.icon}}),onAction:i=>{let c=m.collection.getItem(i);a$5(c,"Item not found");let{onPress:T,dialogContent:S}=c.props;T?.(),b$4(S);}})]}):null]})}),jsx(b$3,{isOpen:!!d,onOpenChange:i=>{i||b$4(void 0);},children:jsx(e$1,{enableDrawer:"auto",style:{zIndex:1e5},children:d?k.cloneElement(d,{inheritDrawer:true}):null})})]})});V.displayName="CollapsibleToolbar";function Ae(e,t,o){let r=b$8(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:Ce(r.marginLeft))+(o?0:Ce(r.marginRight))}function Ce(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var $e=c$1({more:{id:"bui.toolbar.more",defaultMessage:"More"}});var U=k.forwardRef(({className:e,style:t,isSingleTabStop:o=true,"data-block-id":a,"data-block-class":r,"aria-controls":u,onKeyDown:s,...f},y)=>{let n=k.useRef(null),{toolbarProps:l}=N({props:{...f,isSingleTabStop:o},ref:n}),{keyboardProps:p}=j({onKeyDown:s});return jsx("div",{...c(p,l),...u?{"aria-controls":u}:{},className:a$7(we[f.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":a,"data-block-class":r,ref:b$4(y,n),children:f.children})});U.displayName="WrappedToolbar";var Le=k.forwardRef((e,t)=>{let o=e.isCollapsible?V:U;return jsx(o,{...e,ref:t})});Le.displayName="Toolbar";export{Le as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function n(e){return e.nativeEvent.isComposing||e.keyCode===229}export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-QMV2O57M.mjs';import {a as a$1}from'./chunk-GQIS4QBN.mjs';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-FX3THTOK.mjs';import {a as a$2}from'./chunk-2MS356Q7.mjs';import {b}from'./chunk-SZTFMBPY.mjs';import {e,f,d,h,g}from'./chunk-PG3WDHSK.mjs';import {b as b$1}from'./chunk-INFMXVHD.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import j from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$7}from'./chunk-NV7KQVPE.mjs';import {a as a$c}from'./chunk-KVIV5RTE.mjs';import {a as a$4}from'./chunk-4WVW4KEK.mjs';import {a as a$3}from'./chunk-TAYP2OGC.mjs';import {c as c$2}from'./chunk-5MUEJ5WI.mjs';import {b as b$1,c as c$1,a as a$d}from'./chunk-RO5ZRU3Y.mjs';import {B}from'./chunk-TYKMNZJ4.mjs';import {a as a$2}from'./chunk-CY6W27WG.mjs';import {b,c as c$3}from'./chunk-IDIZSV2Y.mjs';import {a as a$9,b as b$3}from'./chunk-INFMXVHD.mjs';import {a as a$b}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-K5RYVERS.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-STMDFIUL.mjs';import {a as a$6}from'./chunk-B3EZOXNU.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$e}from'./chunk-ETM4MNG4.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import Z,{useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Q=Z.forwardRef(({className:t,style:u,isInline:n=true,accept:i="image/*",defaultImageSrc:g,imageSrc:s,imageAlt:X,pickerButtonLabel:Y,isDisabled:r,onDrop:$,onPaste:S,includeCheckeredBackground:ee=true,"data-block-id":te,"data-block-class":oe,pickerButtonStyle:re,pickerButtonClassName:se,footerClassName:ne,footerStyle:ie,clearLabel:y,placeholder:P,labelStyle:ae,labelClassName:le,maxFileSize:w,onFileSizeError:ue,onFileTypeError:me,...m},pe)=>{let f=Z.useRef(null),h=Z.useRef(null),{formatMessage:fe}=b(),ce=e=>!w||e.size<=w?true:(ue?.(e),false),de=e=>xe(e,i)?true:(me?.(e),false),F=e=>de(e)&&ce(e),[ge,c$3]=a(s,g||null,e=>{a$1(typeof e!="string"),m.onValueChange?.(e?[e]:[]);}),l=Te(ge),{fieldProps:ye,labelProps:Pe}=a$2({...m,ref:f}),{dropProps:he,isDropTarget:I}=B({ref:f,isDisabled:r,onDrop:async e=>{let o=await a$3({items:e.items});o.length&&F(o[0])&&c$3(o[0]),$?.(e);},...m}),{clipboardProps:Fe}=a$4({onPaste:async e=>{if(r)return;let o=await a$3({items:e});o.length&&F(o[0])&&c$3(o[0]),S?.(e);},...m}),Ie=()=>{c$3(null),h.current&&(h.current.value="");},be={type:"file",onChange:e=>{let o=[...e.target.files];o.length&&F(o[0])?c$3(o[0]):o.length&&(e.target.value=""),m.onChange?.(e);},accept:i,disabled:r},{focusProps:ve,isFocused:Ce,isFocusVisible:b$4}=a$5({within:true}),{hoverProps:Le,isHovered:B$1}=a$6({isDisabled:r}),{imgProps:Re,isLoading:Ze,isLoaded:v}=a$7({src:l,alt:X||""}),we={label:Y||fe(Ae.selectImage),onPress:()=>f.current?.click(),variant:"secondary",isDisabled:r,excludeFromTabOrder:true,className:a$8(a$9({isFocusVisible:b$4}),{[b$1]:I&&!r},se),style:re},Be=a$a({"data-loaded":v,"data-block-id":te,"data-block-class":oe,"data-hovered":B$1,"data-focused":Ce,"data-drop-target":I,"data-disabled":r,"data-focus-visible":b$4});return jsxs(a$b,{...Be,className:a$8("BaselineUI-ImageDropZone",t),display:"flex",flexDirection:"column",alignItems:"center",style:u,ref:pe,children:[jsxs("label",{...c(he,Le,ve,Pe),className:a$8(a$d({isInline:n,isHovered:B$1,isDisabled:r,hasLoadedImage:!!l&&v,showFocusRing:I||!!l&&b$4}),le),style:ae,ref:f,children:[jsx(b$2,{children:jsx("input",{...c(ye,Fe,be),ref:h})}),!l&&jsx(b$3,{...we}),!!l&&(Ze?jsx(a$c,{}):jsx("img",{className:c$1({isInline:n,isDisabled:r,hasLoadedImage:!!l&&v&&ee}),...Re}))]}),P||y?jsx("div",{style:ie,className:a$8(c$2({isInline:n,isDisabled:r}),ne),children:(l||!P)&&y?jsx(b$3,{size:"sm",variant:"ghost",label:y,isDisabled:r,onPress:Ie}):jsx(b$3,{size:"sm",variant:"ghost",label:P,isDisabled:true})}):null]})});Q.displayName="ImageDropZone";function Te(t){let[u,n]=useState();if(a$e(()=>{if(!t||typeof t=="string"){n(void 0);return}let i=URL.createObjectURL(t);return n(i),()=>{URL.revokeObjectURL(i);}},[t]),!!t)return typeof t=="string"?t:u}function xe(t,u){if(!u)return true;let n=u.split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(n.length===0)return true;let i=t.type.toLowerCase(),g=t.name.toLowerCase();return n.some(s=>s==="*/*"?true:s.startsWith(".")?g.endsWith(s):i?s.endsWith("/*")?i.startsWith(s.slice(0,-1)):i===s:true)}var Ae=c$3({selectImage:{defaultMessage:"Select Image",id:"bui.imageDropZone.selectImage"}});export{Q as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b}from'./chunk-
|
|
1
|
+
import {a,b}from'./chunk-ZC5WXVNV.mjs';import {a as a$1}from'./chunk-HABKIEKC.mjs';import {b as b$1,a as a$3}from'./chunk-I7LPPUZS.mjs';import {b as b$2}from'./chunk-4S4GGUSH.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-ETM4MNG4.mjs';import {a as a$4}from'./chunk-SD43KVTU.mjs';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {g,f,h,j}from'./chunk-TZGK36KC.mjs';import {h as h$1,j as j$1}from'./chunk-PPHSLODC.mjs';import {j as j$2}from'./chunk-SD43KVTU.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {useRef,useState,useEffect}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var M=200,N=50,D=600,s=new WeakMap,p=new Set,c=new Set;function _(e,i){let o=j(),t=performance.now()>=i;if(e!==o||t)for(let n of c)n(o),c.delete(n);if(!e&&o&&j$1()&&!t){window.clearInterval(s.get(window)),s.set(window,S(M));return}if(e!==o||t)for(let n of p)n(o),p.delete(n);(c.size+p.size<=0||t)&&(window.clearInterval(s.get(window)),s.delete(window));}function S(e=D){return window.setInterval(_,N,j(),performance.now()+e)}function I(e){if(!g())return e(false),()=>{};let i=window.requestAnimationFrame(()=>{i=window.requestAnimationFrame(()=>{let o=f(),t=h(o);if(j()===t||j()&&!t)return e(t);c.add(e),s.has(window)||s.set(window,S());});});return ()=>{window.cancelAnimationFrame(i),c.delete(e);}}function le(e){if(!g())return e(false),()=>{};let i=window.requestAnimationFrame(()=>{i=window.requestAnimationFrame(()=>{let o=f(),t=h(o);if(j()===t)return e(t);p.add(e),s.has(window)||s.set(window,S());});});return ()=>{window.cancelAnimationFrame(i),p.delete(e);}}var r=typeof document<"u"&&window.visualViewport;function L(){let e=b$1(),i=useRef(null),[o,t]=useState(()=>e?{width:0,height:0}:b());return useEffect(()=>{let n=u=>{t(m=>u.width===m.width&&u.height===m.height?m:u);},w=()=>{r&&r.scale>1||n(b());},g=u=>{r&&r.scale>1||h(j$2(u))&&(i.current=I(m=>{m||n({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});}));};return n(b()),h$1()&&j$1()&&window.addEventListener("blur",g,true),r?r.addEventListener("resize",w):window.addEventListener("resize",w),()=>{i.current?.(),h$1()&&j$1()&&window.removeEventListener("blur",g,true),r?r.removeEventListener("resize",w):window.removeEventListener("resize",w);}},[]),o}function b(){return {width:r?Math.min(r.width*r.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:r?r.height*r.scale:document.documentElement.clientHeight}}export{I as a,le as b,L as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-TYKMNZJ4.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
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-4SW77SGW.mjs';import {a as a$7}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-4SW77SGW.mjs';import {a as a$7}from'./chunk-7EQIV4GX.mjs';import {a as a$3}from'./chunk-SH7ZI4CA.mjs';import {a as a$1}from'./chunk-6GV3YWV7.mjs';import {a as a$8}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-INFMXVHD.mjs';import {a as a$4}from'./chunk-O7XK2WIX.mjs';import {a as a$5}from'./chunk-JTKDC2CM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import Y from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-266F6F4Y.mjs';import {a,d,b as b$3}from'./chunk-JHA7DIPG.mjs';import {b as b$1}from'./chunk-XAM3AXXK.mjs';import {c as c$1}from'./chunk-QMV2O57M.mjs';import {b as b$4,a as a$b}from'./chunk-DF2D7NE6.mjs';import {b as b$2}from'./chunk-ZQOR4LCM.mjs';import {a as a$1}from'./chunk-7SQRBY7N.mjs';import {c as c$2,d as d$2}from'./chunk-W6QO7FPZ.mjs';import {c as c$4}from'./chunk-C4WHTPLY.mjs';import {a as a$6}from'./chunk-I7LPPUZS.mjs';import {b}from'./chunk-KG2EHFYA.mjs';import {a as a$a}from'./chunk-22VRCVTH.mjs';import {a as a$5}from'./chunk-JJG67M2S.mjs';import {c as c$3}from'./chunk-TZGK36KC.mjs';import {a as a$4}from'./chunk-Y2MIU76N.mjs';import {a as a$8}from'./chunk-AI6WQPRX.mjs';import {a as a$9}from'./chunk-FPM5UJRF.mjs';import {a as a$3}from'./chunk-4QBHQCCK.mjs';import {j,d as d$1}from'./chunk-KUDCYGII.mjs';import {o,i}from'./chunk-PPHSLODC.mjs';import {a as a$2,c as c$5}from'./chunk-3WKDIXCM.mjs';import {c as c$6}from'./chunk-ETM4MNG4.mjs';import {i as i$1,a as a$7,h,j as j$1}from'./chunk-SD43KVTU.mjs';import {useRef,useMemo,useEffect,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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a}from'./chunk-KX7WG3L4.mjs';import {b as b$1}from'./chunk-OO7BXL2N.mjs';import {a as a$1}from'./chunk-KUDCYGII.mjs';import {b}from'./chunk-SD43KVTU.mjs';import {sprinkles}from'@baseline-ui/tokens';import H,{useState,useEffect,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function B(t){return t?.nodeType===Node.DOCUMENT_NODE}function J(){let{containerWidth:t,containerHeight:d}=H.useContext(N);return {width:t,height:d}}var N=H.createContext({container:null,portalContainer:null,shouldContainOverlays:false,isContainerPositioned:false,containerWidth:void 0,containerHeight:void 0,shouldUseContainerAsBoundary:false}),K=({children:t,container:d,portalContainer:R,shouldContainOverlays:l="auto",shouldUseContainerAsBoundary:h=false})=>{let E=a(),[m,T]=useState(),[f,M]=useState(),[C,S]=useState(()=>typeof document>"u"?null:document),e=d??C?.body??null;useEffect(()=>{let n=e?.getRootNode()??null,i;return B(n)&&n!==document&&(i=a$1(n.body)),()=>{i?.();}},[e]);let u=!e||e===e.ownerDocument.body||l==="never",o=!u&&(l==="always"||E!=="mobile"),[p,_]=useState(false);useEffect(()=>{if(!e)return;let i=b(e).getComputedStyle(e),b$1=!!i.position&&i.position!=="static";!b$1&&!u&&console.warn("FrameProvider: container is not positioned. Please ensure the container is non-static."),_(b$1);let r=e.getBoundingClientRect();(r.width===0||r.height===0)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");function g({width:c,height:a}){e&&(T(c),M(a));}let P=new ResizeObserver(c=>{for(let a of c)g({width:a.contentRect.width,height:a.contentRect.height});});return o&&(g({width:r.width,height:r.height}),P.observe(e)),e.dataset.shouldContainOverlays=o.toString(),()=>{P.disconnect(),e.dataset.shouldContainOverlays="";}},[e,o,u]);let v=R||e||C?.body||null,w=useMemo(()=>({container:e,portalContainer:v,shouldContainOverlays:o,isContainerPositioned:p,containerWidth:m,containerHeight:f,shouldUseContainerAsBoundary:h}),[e,v,o,p,m,f,h]);return jsx(N.Provider,{value:w,children:jsxs(b$1,{portalContainer:w.portalContainer||void 0,children:[t,jsx("div",{ref:n=>{n&&S(n.ownerDocument);},className:sprinkles({display:"none"})})]})})};export{J as a,N as b,K as c};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {d as d$1}from'./chunk-GQIS4QBN.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {a as a$2}from'./chunk-PPHSLODC.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-6ZQE5SHE.mjs';import {a as a$1,b}from'./chunk-SD43KVTU.mjs';import {useRef}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var O=500;function H(L){let{isDisabled:s,pointerType:i,onLongPressStart:p,onLongPressEnd:u,onLongPress:r,threshold:b$1=O,accessibilityDescription:E,ref:v}=L,t=useRef(void 0),{addGlobalListener:o,removeAllGlobalListeners:y}=a(),l=e=>i?e.pointerType===i:e.pointerType==="mouse"||e.pointerType==="touch",{pressProps:T}=d({isDisabled:s,onPressStart(e){if(e.continuePropagation(),l(e)){p&&p({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),o(e.target,"click",n=>n.preventDefault(),{once:true}),a$1(e.target).activeElement!==e.target&&a$2(e.target),r&&r({...e,type:"longpress"}),t.current=void 0;},b$1),e.pointerType==="touch"&&o(e.target,"contextmenu",n=>n.preventDefault(),{once:true});let h=b(e.target);o(h,"pointerup",()=>{setTimeout(()=>{y();},100);},{once:true});}},onPressEnd(e){t.current&&clearTimeout(t.current),u&&l(e)&&u({...e,type:"longpressend"});}}),D=d$1(r&&!s?E:void 0,v);return {longPressProps:c(T,D)}}export{H as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-CIPPPD6E.mjs';import {c as c$1}from'./chunk-GMALMQWI.mjs';import {a as a$4,b as b$2}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-CIPPPD6E.mjs';import {c as c$1}from'./chunk-GMALMQWI.mjs';import {a as a$4,b as b$2}from'./chunk-XO7MAUFC.mjs';import {g,h as h$1}from'./chunk-TZGK36KC.mjs';import {a as a$5,b as b$3}from'./chunk-GQIS4QBN.mjs';import {b}from'./chunk-4S4GGUSH.mjs';import {j as j$1}from'./chunk-KUDCYGII.mjs';import {b as b$1}from'./chunk-S4HLMIFK.mjs';import {h,j as j$2}from'./chunk-PPHSLODC.mjs';import {a as a$3}from'./chunk-3WKDIXCM.mjs';import {a as a$1}from'./chunk-ETM4MNG4.mjs';import {a as a$2,f,e,j as j$3,b as b$4,i}from'./chunk-SD43KVTU.mjs';import {useRef,useEffect}from'react';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,9 +7,9 @@ import {a}from'./chunk-CIPPPD6E.mjs';import {c as c$1}from'./chunk-GMALMQWI.mjs'
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var c=[];function Y(e,l){let{onClose:o,shouldCloseOnBlur:r,isOpen:t,isDismissable:n=false,isKeyboardDismissDisabled:i=false,shouldCloseOnInteractOutside:s}=e,f=useRef();useEffect(()=>{if(t&&!c.includes(l))return c.push(l),()=>{let a=c.indexOf(l);a>=0&&c.splice(a,1);}},[t,l]);let m=()=>{c[c.length-1]===l&&o&&o();},d=a=>{let M=c[c.length-1];f.current=M,(!s||s(j$3(a)))&&M===l&&a.stopPropagation();},u=a=>{(!s||s(j$3(a)))&&(c[c.length-1]===l&&a.stopPropagation(),f.current===l&&m()),f.current=void 0;},{keyboardProps:b$1}=j$1({shortcuts:{Escape:()=>{if(!i){m();return}return false}}});a({ref:l,onInteractOutside:n&&t?u:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=b({isDisabled:!r,onBlurWithin:a=>{!a.relatedTarget||c$1(a.relatedTarget)||(!s||s(a.relatedTarget))&&o?.();}});return {overlayProps:{...b$1,...g},underlayProps:{}}}var E=new WeakMap;function ce(e={},l){let{isDisabled:o,root:r,UNSTABLE_overrideFocus:t}=e;a$1(()=>{if(o)return;let n=r?.ownerDocument??a$2(l?.current),i=E.get(n);return i||(i={count:0},E.set(n,i)),i.count++,i.count===1&&(h()&&j$2()?i.restore=U(n):i.restore=G(r??n.documentElement,t)),()=>{let s=E.get(n);s&&(s.count--,s.count===0&&(s.restore?.(),E.delete(n)));}},[o,r,t]);}function G(e,l){let o=e.ownerDocument,t=(o.defaultView??window).innerWidth-e.clientWidth,n=e===o.documentElement;return a$3(n&&t>0&&("scrollbarGutter"in e.style?f(e,"scrollbar-gutter","stable"):f(e,"padding-right",`${t}px`)),f(e,"overflow","hidden"),l&&k(o),l&&
|
|
10
|
+
var c=[];function Y(e,l){let{onClose:o,shouldCloseOnBlur:r,isOpen:t,isDismissable:n=false,isKeyboardDismissDisabled:i=false,shouldCloseOnInteractOutside:s}=e,f=useRef();useEffect(()=>{if(t&&!c.includes(l))return c.push(l),()=>{let a=c.indexOf(l);a>=0&&c.splice(a,1);}},[t,l]);let m=()=>{c[c.length-1]===l&&o&&o();},d=a=>{let M=c[c.length-1];f.current=M,(!s||s(j$3(a)))&&M===l&&a.stopPropagation();},u=a=>{(!s||s(j$3(a)))&&(c[c.length-1]===l&&a.stopPropagation(),f.current===l&&m()),f.current=void 0;},{keyboardProps:b$1}=j$1({shortcuts:{Escape:()=>{if(!i){m();return}return false}}});a({ref:l,onInteractOutside:n&&t?u:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=b({isDisabled:!r,onBlurWithin:a=>{!a.relatedTarget||c$1(a.relatedTarget)||(!s||s(a.relatedTarget))&&o?.();}});return {overlayProps:{...b$1,...g},underlayProps:{}}}var E=new WeakMap;function ce(e={},l){let{isDisabled:o,root:r,UNSTABLE_overrideFocus:t}=e;a$1(()=>{if(o)return;let n=r?.ownerDocument??a$2(l?.current),i=E.get(n);return i||(i={count:0},E.set(n,i)),i.count++,i.count===1&&(h()&&j$2()?i.restore=U(n):i.restore=G(r??n.documentElement,t)),()=>{let s=E.get(n);s&&(s.count--,s.count===0&&(s.restore?.(),E.delete(n)));}},[o,r,t]);}function G(e,l){let o=e.ownerDocument,t=(o.defaultView??window).innerWidth-e.clientWidth,n=e===o.documentElement;return a$3(n&&t>0&&("scrollbarGutter"in e.style?f(e,"scrollbar-gutter","stable"):f(e,"padding-right",`${t}px`)),f(e,"overflow","hidden"),l&&k(o),l&&g()&&j(o))}function U(e$1){let l=f(e$1.documentElement,"overflow","hidden"),o,r=false,t=d=>{let u=j$3(d);o=a$5(u,true)?u:b$3(u,true),r=false;let b=u.ownerDocument.defaultView.getSelection();b&&!b.isCollapsed&&b.containsNode(u,true)&&(r=true);let g=b$4(u);d.composedPath().some(a=>a instanceof g.HTMLInputElement&&a.type==="range")&&(r=true),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&i(a$2(u))===u&&(r=true);},n=e$1.createElement("style"),i$1=b$1(e$1);i$1&&(n.nonce=i$1),n.textContent=`
|
|
11
11
|
@layer {
|
|
12
12
|
* {
|
|
13
13
|
overscroll-behavior: contain;
|
|
14
14
|
}
|
|
15
|
-
}`.trim(),e$1.head.prepend(n);let s=d=>{if(!(d.touches.length===2||r)){if(!o||o===e$1.documentElement||o===e$1.body){d.preventDefault();return}o.scrollHeight===o.clientHeight&&o.scrollWidth===o.clientWidth&&d.preventDefault();}},f$1=k(e$1),m=a$3(e(e$1,"touchstart",t,{passive:false,capture:true}),e(e$1,"touchmove",s,{passive:false,capture:true}),j(e$1));return ()=>{l(),m(),n.remove(),f$1();}}function j(e$1){return e(e$1,"blur",o=>{let r=j$3(o),t=o.relatedTarget;t&&
|
|
15
|
+
}`.trim(),e$1.head.prepend(n);let s=d=>{if(!(d.touches.length===2||r)){if(!o||o===e$1.documentElement||o===e$1.body){d.preventDefault();return}o.scrollHeight===o.clientHeight&&o.scrollWidth===o.clientWidth&&d.preventDefault();}},f$1=k(e$1),m=a$3(e(e$1,"touchstart",t,{passive:false,capture:true}),e(e$1,"touchmove",s,{passive:false,capture:true}),j(e$1));return ()=>{l(),m(),n.remove(),f$1();}}function j(e$1){return e(e$1,"blur",o=>{let r=j$3(o),t=o.relatedTarget;t&&h$1(t)?t.focus():t||r.parentElement?.closest("[tabindex]")?.focus({preventScroll:true});},true)}function k(e){let l=e.defaultView??window,o=l.HTMLElement.prototype.focus;return Reflect.defineProperty(l.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:function(r){if(o.call(this,{...r,preventScroll:true}),!r||!r.preventScroll){let t=()=>{i(e)===this&&_(this,e);};a$4(n=>n?t():b$2(()=>t()));}}}),()=>{Reflect.defineProperty(l.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:o});}}function _(e,l){let o=l.scrollingElement||l.documentElement,r=e;for(;r&&r!==o&&r.isConnected;){let t=b$3(r);if(t!==l.documentElement&&t!==l.body&&t!==r){let n=t.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<n.top||i.bottom>n.top+r.clientHeight){let s=n.bottom,f=l.defaultView?.visualViewport;f&&(s=Math.min(s,f.offsetTop+f.height));let m=i.top-n.top-((s-n.top)/2-i.height/2);t.scrollTo({top:Math.max(0,Math.min(t.scrollHeight-t.clientHeight,t.scrollTop+m)),behavior:"smooth"});}}r=t.parentElement;}}export{Y as a,ce as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-7SKQUEHP.mjs';import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$3}from'./chunk-7SKQUEHP.mjs';import {a as a$2}from'./chunk-UY76QEJC.mjs';import {c,e}from'./chunk-IROFSPEN.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c as c$1}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import h,{useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$3}from'./chunk-7SKQUEHP.mjs';import {a as a$2}from'./chunk-3BG6K2
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var
|
|
10
|
+
var B=a({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),C=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g9 _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611u"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61vc _1yep5z61vb _1yep5z61v9 _1yep5z61rp _1yep5z61od"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6gb"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61vc _1yep5z61vb _1yep5z61rf _1yep5z61v9"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61va _1yep5z61v9 _1yep5z61rg _1yep5z61oe"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61v9 _1yep5z61vb _1yep5z61rf _1yep5z61vc"]]}),T=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z618t _1yep5z618s _1yep5z614w _1yep5z618q"},isSelected:{true:"_1yep5z611t"},isDisabled:{true:"z9nup82 _1yep5z611u"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61oc"]]}),V=a({defaultClassName:"_1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z618t _1yep5z618s _1yep5z614w _1yep5z618q"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611u"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61pd"],[{isSelected:true,isDisabled:false},"_1yep5z61pd _1yep5z61og"],[{isSelected:true,isDisabled:true},"_1yep5z61pd _1yep5z61od"]]}),x=a({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m5 _1yep5z6m6 _1yep5z6m0 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6f9",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611w"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61of"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61od"],[{isSelected:false,isHovered:true},"_1yep5z61pd"],[{isSelected:false,isFocusVisible:true},"_1yep5z61vc _1yep5z61vb _1yep5z61rf _1yep5z61v9"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61va _1yep5z61v9 _1yep5z61rg"]]});var L={xxs:8,xs:12,sm:16,md:20,lg:24},I=h.forwardRef((t,r)=>{let e=a$1(r),{tooltipProps:p}=c(t,e);return p?jsx(a$2,{...p,children:jsx(z,{...t,ref:e})}):jsx(z,{...t,ref:e})});I.displayName="ToggleIconButton";var z=h.forwardRef(({className:t,style:r,icon:e$1,size:p="md",variant:a="primary",elementType:l="button","data-block-id":D,"data-block-class":F,..._},N)=>{let o=a$3(_),{buttonProps:H,isPressed:P,ref:w,isFocusVisible:u,isFocused:R,isHovered:n,uiStateOptions:c}=e({..._,elementType:l},o),M=useMemo(()=>typeof e$1=="function"?e$1:o.isSelected?e$1.selected:e$1.unselected,[e$1,o.isSelected]),y={isSelected:o.isSelected,isHovered:n,isFocusVisible:u,isDisabled:!!_.isDisabled},q=a$4({"data-hovered":n,"data-selected":o.isSelected,"data-focus-visible":u,"data-disabled":_.isDisabled,"data-block-id":D,"data-block-class":F,"data-focused":R,"data-pressed":P});return jsx(l,{...c$1(H,q),className:a$5(a==="toolbar"&&x(y),a==="primary"&&C(y),a==="secondary"&&T(y),a==="tertiary"&&V(y),B({size:p}),"BaselineUI-ToggleIconButton",typeof t=="function"?t(c):t),style:typeof r=="function"?r(c):r,ref:b(w,N),children:jsx(M,{size:L[p]})})});z.displayName="ToggleIconButtonCore";export{I as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-O7IU5NHN.mjs';import {a as a$3}from'./chunk-6GV3YWV7.mjs';import {a}from'./chunk-O7XK2WIX.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import p from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var K="_1vghdeb0";var x=new Set(["\u2318","\u2325","\u21E7","\u21A9","\u2423","\u2303"]),l="+";function g(t){let s=t.endsWith(l),e=(s?t.slice(0,-1):t).split(l).map(r=>r.trim()).filter(Boolean);return s?[...e,l]:e}function R(t,s){if(s){let e=[],r="";for(let o of t)x.has(o)?(r&&e.push(r),e.push(o),r=""):r+=o;return r&&e.push(r),e.length===1&&e[0].includes("+")?g(e[0]):e}return g(t)}var m=p.forwardRef(({children:t,className:s,style:e},r)=>jsx(a,{elementType:"kbd",ref:r,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"xs",borderWidth:1,borderStyle:"solid",borderColor:"border.medium",backgroundColor:"background.primary.strong",color:"text.primary",typography:"label.md.medium",paddingX:"md",paddingY:"sm",className:a$1(K,"BaselineUI-Kbd-Key",s),style:e,children:t}));m.displayName="KbdKey";var u=p.forwardRef(({children:t,shouldUseSymbol:s=false,className:e,style:r},o)=>{let S=b()?t:a$2(t,s),i=R(S,s);return i.length===1?jsx(m,{ref:o,className:a$1("BaselineUI-Kbd",e),style:r,children:i[0]}):jsx(a,{elementType:"span",display:"inline-flex",alignItems:"center",gap:"md",ref:o,className:a$1("BaselineUI-Kbd",e),style:r,children:i.map((b,h)=>jsxs(p.Fragment,{children:[jsx(m,{children:b}),h<i.length-1?jsx(a$3,{type:"label",size:"sm",children:l}):null]},b))})});u.displayName="Kbd";export{u as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-G77E7EDE.mjs';import {a as a$6}from'./chunk-LSPDPDB6.mjs';import {d}from'./chunk-QMV2O57M.mjs';import {a as a$1}from'./chunk-NGZRN4SF.mjs';import {c,b}from'./chunk-IDIZSV2Y.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
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Y={"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 N(p,t,a){let{"aria-label":s}=p,{listProps:i}=a$6({...p,...t,allowsTabNavigation:true,ref:a}),r=b$1(Y,"@react-aria/steplist");return {listProps:{...{...c$1(i,a$7(p,{labelable:true})),"aria-label":s||r.format("steplist")},tabIndex:void 0}}}function D(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:i,selectedKey:r,collection:l}=t,{indexMap:n,keysLinkedList:_}=useMemo(()=>me(l),[l]),z=r!=null?n.get(r):0,c=useCallback(e=>e===void 0?false:e!==null&&a!==null&&n.has(e)&&n.has(a)&&n.get(e)<=n.get(a),[n,a]),g=useCallback((e,d)=>{let y=null;if(e&&e.size>0)for(y=e.getFirstKey();y!==e.getLastKey()&&y&&(d.has(y)||c(y));)y=e.getKeyAfter(y);return y},[c]);useEffect(()=>{let e=t.selectedKey;(t.selectionManager.isEmpty||e==null||!t.collection.getItem(e))&&(e=g(t.collection,t.disabledKeys),e!==null&&t.selectionManager.replaceSelection(e)),t.selectionManager.focusedKey==null&&t.selectionManager.setFocusedKey(e);let d=(a!==null?n.get(a):-1)??-1;z!==void 0&&z>0&&z>d+1&&e!==null&&_.has(e)&&s(_.get(e));});function m(e){if(p.isDisabled||t.disabledKeys.has(e)||p.isReadOnly)return false;if(c(e))return true;let d=_.get(e);return c(d)||e===t.collection.getFirstKey()}function h(e){let d=_.get(e);d&&!c(d)&&s(d),i(e);}return {...t,setSelectedKey:h,setLastCompletedStep:s,isCompleted:c,isSelectable:m}}function me(p){let t=new Map,a=new Map,s=0,i;for(let r of p)t.set(r.key,s),a.set(r.key,i?.key),i=r,s++;return {indexMap:t,keysLinkedList:a}}var ee=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:[]}),te=a({defaultClassName:"_1yep5z6ez",variantClassNames:{size:{sm:"_1yep5z610e",md:"_1yep5z610h"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),se=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"]]}),pe=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:[]}),ae="_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",ie=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:[]}),re="_41r3q2h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6jw _1yep5z6jx _1yep5z6jy _1yep5z6kt _1yep5z6ku _1yep5z6kv _1yep5z6kk _1yep5z6kl _1yep5z6km _1yep5z69c _1yep5z69d _1yep5z69e",oe=a({defaultClassName:"_1yep5z6ey",variantClassNames:{size:{sm:"_1yep5z610h",md:"_1yep5z610k"},isDisabled:{true:"_1yep5z611l"}},defaultVariants:{},compoundVariants:[]});function A(p,t,a){let{key:s}=p,{selectionManager:i,selectedKey:r}=t,l=!t.isSelectable(s),{itemProps:n}=d({isDisabled:l,key:s,ref:a,selectionManager:i});return {stepProps:{...n,role:"link","aria-current":r===s?"step":void 0,"aria-disabled":l?true:void 0,tabIndex:l?void 0:0}}}function ne({state:p,item:t,size:a,variant:s,index:i,isLast:r,stepLabel:l,completedLabel:n,isDisabled:_}){let z=useRef(null),c=b(),{stepProps:g}=A({key:t.key},p,z),m=p.disabledKeys.has(t.key),{hoverProps:h,isHovered:e}=a$8({isDisabled:_||m}),{focusProps:d,isFocused:y,isFocusVisible:v}=a$9(),k=p.isCompleted(t.key),P=p.selectedKey===t.key,b$1=k?"complete":P?"active":"incomplete",S=t["aria-label"],C=!!S&&!t.description,j=s==="expanded"&&!!t.title&&!C,q=s==="expanded"&&!!t.description,o=t.title||((typeof l=="function"?l({index:i+1}):l)??c.formatMessage(le.step,{index:i+1})),x=n??c.formatMessage(le.completed),M=a==="sm"?CheckmarkIcon:CheckmarkIcon$1;return jsxs("li",{className:a$3("BaselineUI-Stepper-Item",pe({variant:s,isLast:r})),"data-status":b$1,children:[jsxs("a",{...c$1(g,h,d),ref:z,"aria-label":k&&S?[x,S].join(" "):S||void 0,className:a$3("BaselineUI-Stepper-StepLink",ae),"data-status":b$1,"data-hovered":e||void 0,"data-focused":y||void 0,"data-focus-visible":v||void 0,"data-disabled":m||void 0,children:[jsx("span",{className:a$3("BaselineUI-Stepper-Indicator",se({size:a,status:b$1,isDisabled:m,isFocusVisible:v})),"aria-hidden":"true",children:k?jsx(M,{}):jsx("span",{children:i+1})}),k?jsx(b$2,{children:x}):null,j?jsxs("span",{className:a$3("BaselineUI-Stepper-Text",re),children:[jsx("span",{className:a$3("BaselineUI-Stepper-Title",oe({size:a,isDisabled:m})),children:t.title}),q?jsx("span",{className:a$3("BaselineUI-Stepper-Description",te({size:a,isDisabled:m})),children:t.description}):null]}):S?null:jsx(b$2,{children:o})]}),!r&&jsx("span",{className:a$3("BaselineUI-Stepper-Connector",ee({variant:s,status:b$1})),"aria-hidden":"true"})]})}var le=c({step:{defaultMessage:"Step {index}",id:"bui.stepper.step"},completed:{defaultMessage:"Completed",id:"bui.stepper.completed"}});var de=fe.forwardRef(function(t,a){let{items:s,variant:i="expanded",size:r="md",selectedStep:l,defaultSelectedStep:n,onSelectionChange:_,lastCompletedStep:z,defaultLastCompletedStep:c,onLastCompletedStepChange:g,isDisabled:m,className:h,style:e,"aria-label":d,stepLabel:y,completedLabel:v}=t,k=b(),P=useMemo(()=>new Set(s.filter(o=>o.isDisabled).map(o=>o.key)),[s]),b$1=useMemo(()=>s.map(o=>jsx(a$1,{textValue:o.title??String(o.key),children:o.title??""},o.key)),[s]),S=useMemo(()=>new Map(s.map(o=>[o.key,o])),[s]),C=D({children:b$1,selectedKey:l,defaultSelectedKey:n,onSelectionChange:_,lastCompletedStep:z,defaultLastCompletedStep:c,onLastCompletedStepChange:g,disabledKeys:P,isDisabled:m}),j=a$2(a),{listProps:q}=N({children:b$1,"aria-label":d||k.formatMessage(be.label)},C,j);return jsx("ol",{...q,ref:j,className:a$3("BaselineUI-Stepper",ie({variant:i}),h),style:e,"data-variant":i,"data-size":r,children:[...C.collection].map((o,x,M)=>{let E=S.get(o.key);return E?jsx(ne,{state:C,item:E,size:r,variant:i,index:x,isLast:x===M.length-1,stepLabel:y,completedLabel:v,isDisabled:m},o.key):null})})});de.displayName="Stepper";var be=c({label:{defaultMessage:"Progress",id:"bui.stepper.label"}});export{de as a};
|
|
@@ -7,4 +7,4 @@ import {b}from'./chunk-JDIGAVFU.mjs';import {a as a$1}from'./chunk-JZXLV6JU.mjs'
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
function _(n,r,s){let{isDisabled:
|
|
10
|
+
function _(n,r,s){let{isDisabled:i}=n,a=c$1(),o=c$1(),p=b$1(),t=useRef(null),f=useCallback(()=>{t.current=requestAnimationFrame(()=>{s.current&&s.current.setAttribute("hidden","until-found");}),flushSync(()=>{r.toggle();});},[s,r]);a$a(s,"beforematch",f);let l=useRef(null);return a$b(()=>{if(t.current&&cancelAnimationFrame(t.current),s.current&&!p){let e=s.current;l.current==null||typeof e.getAnimations!="function"?r.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):r.isExpanded!==l.current&&(r.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(d=>d.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto");}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px"),Promise.all(e.getAnimations().map(d=>d.finished)).then(()=>e.setAttribute("hidden","until-found")).catch(()=>{}))),l.current=r.isExpanded;}},[i,s,r.isExpanded,p]),useEffect(()=>()=>{t.current&&cancelAnimationFrame(t.current);},[]),{buttonProps:{id:a,"aria-expanded":r.isExpanded,"aria-controls":o,onPress:e=>{!i&&e.pointerType!=="keyboard"&&r.toggle();},isDisabled:i,onPressStart(e){e.pointerType==="keyboard"&&!i&&r.toggle();}},panelProps:{id:o,role:"group","aria-labelledby":a,"aria-hidden":!r.isExpanded,hidden:p?!r.isExpanded:void 0}}}function g(n){let[r,s]=a$9(n.isExpanded,n.defaultExpanded||false,n.onExpandedChange),i=useCallback(()=>{s(true);},[s]),a=useCallback(()=>{s(false);},[s]),o=useCallback(()=>{s(!r);},[s,r]);return {isExpanded:r,setExpanded:s,expand:i,collapse:a,toggle:o}}var M=a({defaultClassName:"wf9zfn0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6mh _1yep5z6mf",variantClassNames:{variant:{active:"_1yep5z613y _1yep5z612s",warning:"_1yep5z613y _1yep5z612s",error:"_1yep5z613y _1yep5z612s",success:"_1yep5z613y _1yep5z612s",denied:"_1yep5z613y _1yep5z612s","warning-tinted":"_1yep5z613n _1yep5z612g","error-tinted":"_1yep5z613d _1yep5z6126","active-tinted":"_1yep5z613s _1yep5z612l","success-tinted":"_1yep5z613i _1yep5z612b","denied-tinted":"_1yep5z613z _1yep5z612v"}},defaultVariants:{},compoundVariants:[]}),k=a({defaultClassName:"wf9zfnb _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6me _1yep5z6m3 _1yep5z6lq _1yep5z6m7 _1yep5z6m8 _1yep5z6m5",variantClassNames:{isFocusVisible:{true:"_1yep5z618s _1yep5z614w _1yep5z618u"},isHovered:{true:"wf9zfnd"},variant:{active:"wf9zfne",warning:"wf9zfnf",error:"wf9zfng",success:"wf9zfnh",denied:"wf9zfni","warning-tinted":"wf9zfnj","error-tinted":"wf9zfnk","active-tinted":"wf9zfnl","success-tinted":"wf9zfnm","denied-tinted":"wf9zfnn"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocusVisible:false},"_1yep5z61va _1yep5z61v9"],[{variant:"active",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"warning",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"error",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"success",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"denied",isHovered:true,isFocusVisible:false},"_1yep5z61ri"],[{variant:"active-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61rc"],[{variant:"warning-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61r7"],[{variant:"error-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61qx"],[{variant:"success-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61r2"],[{variant:"denied-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61ri"]]}),L="wf9zfno",q={active:"wf9zfnp",warning:"wf9zfnq",error:"wf9zfnr",success:"wf9zfns",denied:"wf9zfnt","active-tinted":"wf9zfnu","warning-tinted":"wf9zfnv","error-tinted":"wf9zfnw","success-tinted":"wf9zfnx","denied-tinted":"wf9zfny"},O=a({defaultClassName:"wf9zfnz _1yep5z6f9",variantClassNames:{isPopupOpen:{true:"wf9zfn10",false:"wf9zfn11"}},defaultVariants:{},compoundVariants:[]});var te={warning:WarningIcon,error:ErrorCircleIcon,info:CircleFilledIcon,success:CheckmarkIcon},G=W.forwardRef(({className:n,style:r,children:s,title:i,description:a,variant:o="active",icon:p=te[o],headerClassName:t,headerStyle:f,panelClassName:l,panelStyle:e,shouldTruncateTitle:d,...y},m)=>{let u=g(y),v=useRef(null),b=useRef(null),{buttonProps:K,panelProps:Q}=_(y,u,b);return jsxs("div",{className:a$2(M({variant:o}),"BaselineUI-Disclosure",n),style:r,ref:m,"data-expanded":u.isExpanded||void 0,children:[jsx(J,{ref:v,...K,variant:o,title:i,description:a,icon:p,className:t,style:f,isExpanded:u.isExpanded,shouldTruncateTitle:d}),jsxs("div",{ref:b,...Q,className:a$2(L,"BaselineUI-Disclosure-Panel",l),style:e,"data-expanded":u.isExpanded||void 0,children:[jsx(a$1,{className:q[o]}),s]})]})});G.displayName="Disclosure";var J=W.forwardRef(({className:n,style:r,variant:s="active",icon:i,title:a,description:o,shouldTruncateTitle:p,...t},f)=>{let{isFocusVisible:l,focusProps:e}=a$3(),{hoverProps:d,isHovered:y}=a$4({isDisabled:t.isDisabled}),m=a$5(f),{buttonProps:u,isPressed:v}=a$6(t,m),b$1=a$7({"data-focus-visible":l,"data-hovered":y,"data-pressed":v});return jsx("button",{...c(u,e,d),ref:m,className:a$2(k({isFocusVisible:l,isHovered:y,variant:s}),"BaselineUI-Disclosure-Header",n),style:r,...b$1,children:jsx(b,{title:a,description:o,variant:s,icon:i,shouldTruncateTitle:p,renderTrailingElement:()=>jsx(a$8,{padding:"sm",display:"inline-flex",children:jsx(CaretUpIcon,{size:12,className:O({isPopupOpen:t.isExpanded})})}),style:{border:"none"}})})});J.displayName="DisclosureHeader";export{G as a};
|