@baseline-ui/core 3.5.0 → 3.7.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.mjs +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Box.mjs +1 -1
- package/dist/Breadcrumbs.css +10 -0
- package/dist/Breadcrumbs.mjs +1 -0
- 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.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.css +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/DomNodeRenderer.mjs +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.mjs +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/Markdown.css +1 -1
- package/dist/Markdown.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/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.mjs +1 -1
- package/dist/StatusCard.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.css +1 -1
- package/dist/Switch.mjs +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-UOWKAUCQ.mjs → chunk-23WMOYTQ.mjs} +2 -2
- package/dist/{chunk-7XLBV46W.mjs → chunk-2JRDTJWJ.mjs} +1 -1
- package/dist/chunk-3IPRT57V.mjs +10 -0
- package/dist/{chunk-O6FPWOHR.mjs → chunk-4QGZDJW4.mjs} +1 -1
- package/dist/{chunk-UO75BAPM.mjs → chunk-4Y4WKIL5.mjs} +1 -1
- package/dist/chunk-54ZKQAA3.mjs +10 -0
- package/dist/{chunk-GLAMJIYO.mjs → chunk-5EI2562M.mjs} +1 -1
- package/dist/{chunk-6GMU63H2.mjs → chunk-5GW36EQJ.mjs} +1 -1
- package/dist/{chunk-ZA2FH3MS.mjs → chunk-5ILCVLWY.mjs} +1 -1
- package/dist/{chunk-VXZT2JR2.mjs → chunk-5W6G3ZUT.mjs} +1 -1
- package/dist/{chunk-UYUYQFOW.mjs → chunk-5YKRWGEJ.mjs} +1 -1
- package/dist/{chunk-7BE6MOPW.mjs → chunk-6CEV43ZA.mjs} +2 -2
- 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-6TRBOQVN.mjs +10 -0
- package/dist/chunk-6Z3GYFG5.mjs +10 -0
- package/dist/chunk-73UBSCJ2.mjs +10 -0
- package/dist/{chunk-7XGNJE7J.mjs → chunk-7DCQF3EP.mjs} +1 -1
- package/dist/{chunk-MCN5JU6E.mjs → chunk-7YCV7MPI.mjs} +1 -1
- package/dist/{chunk-3M3WJHOI.mjs → chunk-AQTRFPF2.mjs} +1 -1
- package/dist/{chunk-HABKIEKC.mjs → chunk-B5VHU77N.mjs} +1 -1
- package/dist/{chunk-ONBEVR2G.mjs → chunk-BULEKXBD.mjs} +1 -1
- package/dist/chunk-CBV6KXGO.mjs +30 -0
- package/dist/chunk-CD5KKXIM.mjs +10 -0
- package/dist/{chunk-KW3BKIG4.mjs → chunk-DG5VNJOH.mjs} +1 -1
- package/dist/{chunk-O7XK2WIX.mjs → chunk-DIL5HL6K.mjs} +2 -2
- package/dist/{chunk-QWZBZ23U.mjs → chunk-EDMVODCD.mjs} +1 -1
- package/dist/{chunk-PYV5J322.mjs → chunk-EFFODO2N.mjs} +1 -1
- package/dist/{chunk-CTBCJZEG.mjs → chunk-EGYIHFEQ.mjs} +1 -1
- package/dist/{chunk-5VNC6UYE.mjs → chunk-F3THHK5C.mjs} +1 -1
- package/dist/chunk-F56P4EKI.mjs +10 -0
- package/dist/{chunk-NMK4W6K3.mjs → chunk-FJO6KCT5.mjs} +2 -2
- package/dist/{chunk-GL5GUKT7.mjs → chunk-FX3THTOK.mjs} +1 -1
- package/dist/{chunk-EL5OYHOX.mjs → chunk-G5MSZV5O.mjs} +2 -2
- package/dist/chunk-GJ6ZPLFR.mjs +10 -0
- package/dist/{chunk-JRCDMRIW.mjs → chunk-HTRO6BM5.mjs} +1 -1
- package/dist/{chunk-7MLFM55C.mjs → chunk-IDIZSV2Y.mjs} +1 -1
- package/dist/chunk-IGM72PUL.mjs +0 -0
- package/dist/{chunk-2M2LI4MI.mjs → chunk-IMXJCV7G.mjs} +1 -1
- package/dist/{chunk-43LOJ3SH.mjs → chunk-IN7BLI4M.mjs} +1 -1
- package/dist/{chunk-AFOW62QN.mjs → chunk-INFMXVHD.mjs} +1 -1
- package/dist/{chunk-5G6JNQQR.mjs → chunk-IVDIKT6F.mjs} +1 -1
- package/dist/{chunk-WFYFHANE.mjs → chunk-JHA7DIPG.mjs} +1 -1
- package/dist/{chunk-X5ZTXDQ4.mjs → chunk-JXCL5CUV.mjs} +1 -1
- package/dist/chunk-K3WFKO7R.mjs +10 -0
- package/dist/{chunk-TFSBTGTQ.mjs → chunk-KQOXSF4J.mjs} +1 -1
- package/dist/{chunk-LKSUUT3M.mjs → chunk-L45T2KGW.mjs} +1 -1
- package/dist/{chunk-7EQIV4GX.mjs → chunk-LDWNE2JT.mjs} +1 -1
- package/dist/{chunk-676DOXEK.mjs → chunk-LY2ZVEGJ.mjs} +2 -2
- package/dist/chunk-M3R4ZM34.mjs +10 -0
- package/dist/{chunk-USUPPN73.mjs → chunk-MJPCLLDU.mjs} +1 -1
- package/dist/{chunk-5W67PVZQ.mjs → chunk-MKHLBKSN.mjs} +2 -2
- package/dist/{chunk-LBHZV4BO.mjs → chunk-MURSKAKT.mjs} +1 -1
- package/dist/chunk-MYT5CSGX.mjs +10 -0
- package/dist/{chunk-2AKHB7Y5.mjs → chunk-NLVJYKSA.mjs} +1 -1
- package/dist/{chunk-5G7ABQYJ.mjs → chunk-NO3DNA2U.mjs} +1 -1
- package/dist/{chunk-DO5YROCG.mjs → chunk-NT2MFIKD.mjs} +1 -1
- package/dist/{chunk-7P7VZMTO.mjs → chunk-NWWH62TU.mjs} +1 -1
- package/dist/chunk-O6PPXOEX.mjs +10 -0
- package/dist/chunk-OBEPT4LR.mjs +10 -0
- package/dist/{chunk-DAI7V4TE.mjs → chunk-OPIPJTLG.mjs} +1 -1
- package/dist/{chunk-3KWSJRYK.mjs → chunk-P6V5EAYL.mjs} +1 -1
- package/dist/chunk-PCR5FD43.mjs +10 -0
- package/dist/{chunk-Z3ZMWJSV.mjs → chunk-PR3CD3UC.mjs} +2 -2
- package/dist/chunk-Q6R75IOP.mjs +10 -0
- package/dist/{chunk-6M7PJXEE.mjs → chunk-QIYZRQGP.mjs} +1 -1
- package/dist/{chunk-BAIVRB2I.mjs → chunk-QL7SC5BW.mjs} +1 -1
- package/dist/{chunk-X5ORCNAU.mjs → chunk-QUWRO3HT.mjs} +1 -1
- package/dist/{chunk-3UC5V5E3.mjs → chunk-RE7ZGPOY.mjs} +1 -1
- package/dist/chunk-RINS2TBF.mjs +10 -0
- package/dist/{chunk-SLFKSR3T.mjs → chunk-SAATXQOW.mjs} +1 -1
- package/dist/chunk-SSWWJZRE.mjs +10 -0
- package/dist/{chunk-D5VU5TED.mjs → chunk-SXZP556C.mjs} +1 -1
- package/dist/{chunk-2WA3KB7H.mjs → chunk-TDRN6VLD.mjs} +1 -1
- package/dist/{chunk-OWQRYRWF.mjs → chunk-TFBJ767L.mjs} +1 -1
- package/dist/{chunk-QXXKOFWM.mjs → chunk-TLU2GNUT.mjs} +1 -1
- package/dist/{chunk-GFKZXGWJ.mjs → chunk-UCDGZFQ7.mjs} +1 -1
- package/dist/{chunk-ABXTAFKP.mjs → chunk-UPCEZ32D.mjs} +1 -1
- package/dist/chunk-VE2UA2AH.mjs +0 -0
- package/dist/{chunk-JDIGAVFU.mjs → chunk-VIMSH5F5.mjs} +1 -1
- package/dist/chunk-VNWKXT3X.mjs +10 -0
- package/dist/chunk-VPVF5N62.mjs +10 -0
- package/dist/chunk-VQ2K6Q3G.mjs +10 -0
- package/dist/chunk-WDWBYTJG.mjs +10 -0
- package/dist/{chunk-LQHFBXCW.mjs → chunk-X3ACY7IY.mjs} +2 -2
- package/dist/chunk-XC2S3RLC.mjs +10 -0
- package/dist/{chunk-SI5WP6I7.mjs → chunk-XO7MAUFC.mjs} +1 -1
- package/dist/{chunk-AN26QORL.mjs → chunk-XVL2GXTB.mjs} +1 -1
- package/dist/{chunk-PLZ6ZFEO.mjs → chunk-YAI33K42.mjs} +1 -1
- package/dist/chunk-YEIRJNEA.mjs +10 -0
- package/dist/{chunk-LQ7PGSP4.mjs → chunk-YNJD34U4.mjs} +1 -1
- package/dist/{chunk-FGSVPRDN.mjs → chunk-YQKEP62C.mjs} +1 -1
- package/dist/{chunk-CENNHSIS.mjs → chunk-ZC5WXVNV.mjs} +1 -1
- package/dist/chunk-ZXN5VT4G.mjs +10 -0
- package/dist/{chunk-UPJHL37C.mjs → chunk-ZZ7YJ2FN.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 +305 -95
- package/dist/index.js +22 -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/selection.mjs +1 -0
- package/intl/ar.json +2 -0
- package/intl/cs.json +2 -0
- package/intl/cy.json +2 -0
- package/intl/da.json +2 -0
- package/intl/de.json +2 -0
- package/intl/el.json +2 -0
- package/intl/en-GB.json +2 -0
- package/intl/en.json +2 -0
- package/intl/es.json +2 -0
- package/intl/fi.json +2 -0
- package/intl/fr-CA.json +2 -0
- package/intl/fr.json +2 -0
- package/intl/he.json +2 -0
- package/intl/hr.json +2 -0
- package/intl/id.json +2 -0
- package/intl/it.json +2 -0
- package/intl/ja.json +2 -0
- package/intl/ko.json +2 -0
- package/intl/ms.json +2 -0
- package/intl/nb-NO.json +2 -0
- package/intl/nl.json +2 -0
- package/intl/pl.json +2 -0
- package/intl/pt-PT.json +2 -0
- package/intl/pt.json +2 -0
- package/intl/ru.json +2 -0
- package/intl/sk.json +2 -0
- package/intl/sl.json +2 -0
- package/intl/sv.json +2 -0
- package/intl/th.json +2 -0
- package/intl/tr.json +2 -0
- package/intl/uk.json +2 -0
- package/intl/zh-Hans.json +2 -0
- package/intl/zh-Hant.json +2 -0
- package/messages.json +8 -0
- package/package.json +4 -4
- package/sbom.json +6 -6
- package/dist/chunk-335C37NB.mjs +0 -10
- package/dist/chunk-46RUOB4U.mjs +0 -29
- package/dist/chunk-AMVX34SS.mjs +0 -10
- package/dist/chunk-AYQN3OH2.mjs +0 -10
- package/dist/chunk-BET5GVGQ.mjs +0 -10
- package/dist/chunk-FNCHBVLF.mjs +0 -10
- package/dist/chunk-IHES52NR.mjs +0 -10
- package/dist/chunk-NMGKHMH3.mjs +0 -10
- package/dist/chunk-OMWMNUTI.mjs +0 -10
- package/dist/chunk-R6Q7UMQS.mjs +0 -10
- package/dist/chunk-SBGZCLF4.mjs +0 -10
- package/dist/chunk-T6J7G3YL.mjs +0 -10
- package/dist/chunk-TTVYMCU3.mjs +0 -10
- package/dist/chunk-UH6QIGD3.mjs +0 -10
- package/dist/chunk-UYAFH4CW.mjs +0 -10
- package/dist/chunk-X7CKWYUD.mjs +0 -10
- package/dist/chunk-XQC3DSTW.mjs +0 -10
- package/dist/chunk-Y3HXPORF.mjs +0 -10
- package/dist/chunk-YFBMCK5O.mjs +0 -10
- package/dist/chunk-YMYMFVW4.mjs +0 -10
- package/dist/chunk-YQHHE5AT.mjs +0 -10
- package/dist/chunk-YYU46XNM.mjs +0 -10
- /package/dist/{chunk-MAJ74VNE.mjs → chunk-HMAVZPRE.mjs} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-IN7BLI4M.mjs';import {a as a$d}from'./chunk-YAI33K42.mjs';import {a as a$f}from'./chunk-4QGZDJW4.mjs';import {a as a$3,b as b$2}from'./chunk-TIGGKOJQ.mjs';import {a as a$2}from'./chunk-XDTKLQJB.mjs';import {a as a$g}from'./chunk-NT2MFIKD.mjs';import {b as b$1}from'./chunk-SZTFMBPY.mjs';import {b as b$6}from'./chunk-INFMXVHD.mjs';import {a as a$c}from'./chunk-DIL5HL6K.mjs';import {a as a$e}from'./chunk-5W6G3ZUT.mjs';import {a as a$1}from'./chunk-RPIUPWPO.mjs';import {a as a$h}from'./chunk-GMALMQWI.mjs';import {b as b$3}from'./chunk-N2XGJKZG.mjs';import {b as b$4}from'./chunk-K5RYVERS.mjs';import {b as b$5,j as j$1}from'./chunk-MBRNO6IW.mjs';import {a as a$b}from'./chunk-VDUFLHKK.mjs';import {a as a$a}from'./chunk-FPM5UJRF.mjs';import {a as a$8}from'./chunk-RSKKEGJZ.mjs';import {a as a$6}from'./chunk-STMDFIUL.mjs';import {a as a$7}from'./chunk-B3EZOXNU.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a as a$9}from'./chunk-RT4LMB6X.mjs';import {b,c as c$1}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import A from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {sprinkles}from'@baseline-ui/tokens';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var ne="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jk _1yep5z6jl _1yep5z6jm _1yep5z6m3",me="_14uvjig3 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k",ue="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z6jz _1yep5z6k0 _1yep5z6k1",ye=a({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ez",variantClassNames:{isDisabled:{true:"_1yep5z611l"},hasNumberInput:{false:"_1yep5z6p1 _1yep5z6p2 _1yep5z6p3"}},defaultVariants:{},compoundVariants:[]}),ce=a({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6gh _1yep5z6m5 _1yep5z6lq",variantClassNames:{active:{true:"_14uvjigc _1yep5z6136 _1yep5z618x _1yep5z618p"},isDisabled:{true:"_14uvjigd _1yep5z613a"},isReadOnly:{true:"_1yep5z615l _1yep5z615m _1yep5z615n"},isFocusVisible:{true:"_14uvjigf _1yep5z6136 _1yep5z6189"},isHovered:{true:"_14uvjigg _1yep5z6136"}},defaultVariants:{},compoundVariants:[]}),fe="z9nup8a _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv",be="_14uvjig4 z9nup87 _1yep5z6gd _1yep5z6m3",_e=a({defaultClassName:"_14uvjig5 _1yep5z6gh _1yep5z6iw _1yep5z6ix _1yep5z6iy _1yep5z6m4",variantClassNames:{active:{true:"_1yep5z6136"},isFocusVisible:{true:"_1yep5z6136"},isDisabled:{true:"_1yep5z613a"},isHovered:{true:"_1yep5z6136"}},defaultVariants:{},compoundVariants:[]});var N=A.forwardRef(({className:g,style:v,onChange:i,onChangeEnd:p,numberFormatOptions:o,isDisabled:e,step:h,minValue:d,maxValue:S,value:u,"aria-label":s,"aria-labelledby":r,"aria-details":n,"aria-describedby":m,"data-block-id":y,"data-block-class":I,defaultValue:T,isReadOnly:c$1,label:f,description:x,id:j,includeNumberInput:b$2,numberInputClassName:k,numberInputStyle:he},Se)=>{let H=A.useRef(null),F=c(),O={onChange:i===void 0?void 0:z=>{i(z[0]);},isDisabled:e||c$1,step:h,minValue:d,maxValue:S,onChangeEnd:p===void 0?void 0:z=>{p(z[0]);},value:u===void 0?void 0:[u],defaultValue:T===void 0?void 0:[T],"aria-label":s,"aria-labelledby":r,"aria-details":n,"aria-describedby":[x?F:void 0,m].filter(Boolean).join(" ")||void 0,id:j,label:f},xe=a$1(o),_=a$2({...O,numberFormatter:xe}),{trackProps:je,groupProps:ke,labelProps:L}=a$3(O,_,H),U=jsx(a$4,{variant:"ghost",showStepper:false,className:k,"aria-label":s,"aria-labelledby":L.id,isDisabled:e,isReadOnly:c$1,value:_.getThumbValue(0),formatOptions:o,onChange:z=>{Number.isNaN(z)||(_.setThumbDragging(0,true),_.setThumbValue(0,z),_.setThumbDragging(0,false));},style:{width:60,textAlign:"right",flexShrink:0,...he}});return jsxs("div",{...ke,style:v,"data-block-id":y,"data-block-class":I,className:a$5(ne,"BaselineUI-Slider",g),children:[f?jsxs("div",{className:ue,children:[jsx("label",{...L,className:a$5(ye({isDisabled:e,hasNumberInput:!!b$2}),"BaselineUI-Slider-Label"),children:f}),b$2?U:null]}):null,jsxs("div",{className:me,children:[jsx("div",{...je,className:a$5(be,"BaselineUI-Slider-Track"),ref:b(H,Se),"data-testid":"track",children:jsx(Pe,{state:_,trackRef:H,isDisabled:e,isReadOnly:c$1})}),b$2&&!f?U:null]}),b$1({description:x,descriptionProps:{id:F},errorMessageProps:{},isDisabled:e})]})});N.displayName="Slider";function Pe({state:g,trackRef:v,isDisabled:i,isReadOnly:p}){let o=A.useRef(null),{thumbProps:e,inputProps:h,isDragging:d}=b$2({trackRef:v,inputRef:o},g),{focusProps:S,isFocused:u,isFocusVisible:s}=a$6(),{hoverProps:r,isHovered:n}=a$7({isDisabled:i}),{direction:m}=b$3(),y=a$8({"data-disabled":i,"data-readonly":p,"data-hovered":n,"data-focus-visible":s,"data-dragging":d,"data-focused":u});return jsxs(Fragment,{children:[jsx("div",{className:a$5(_e({isDisabled:i,isFocusVisible:s,active:d,isHovered:n}),"BaselineUI-Slider-TrackHighlight"),style:{width:m==="rtl"?`calc(100% - ${e.style?.left})`:e.style?.left},"data-testid":"track-highlight"}),jsxs("div",{...c$1(e,r,y),className:a$5(fe,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsx("div",{className:a$5(ce({isDisabled:i,isFocusVisible:s,active:d,isReadOnly:p,isHovered:n}),"BaselineUI-Slider-Thumb")}),jsx(b$4,{children:jsx("input",{ref:o,...c$1(h,S)})})]})]})}var ve=A.forwardRef(({className:g,style:v,onChange:i,"data-block-id":p,icon:o,formatValue:e=m=>m,tooltip:h=true,iconTooltip:d=true,popoverContentProps:S,isDisabled:u,onTriggerPress:s,...r},n)=>{let m=a$9(n),[y,I]=a$a(r.value,r.defaultValue||0,i),[T,c]=A.useState(false),{keyboardProps:f}=j({onKeyDown:k=>{k.key==="Enter"||k.key==="Escape"?c(false):k.continuePropagation();}}),{tooltipProps:x}=a$b({label:r["aria-label"],tooltip:h}),j$2=e(y||0),b=x?.isDisabled||r["aria-label"]?`${r["aria-label"]}, ${j$2}`:j$2.toString();return jsxs(a$c,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$5("BaselineUI-IconSlider",g),"data-block-id":p,style:v,ref:m,children:[o?jsx(a$d,{icon:o,label:r["aria-label"],tooltip:d,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsxs(b$5,{type:"dialog",isOpen:T,onOpenChange:c,children:[jsx(j$1,{children:jsx(a$e,{...x,children:jsx(b$6,{label:j$2,variant:"popover","aria-label":b,isDisabled:u,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"},onPressStart:s})})}),jsx(a$f,{placement:"bottom start",...S,children:jsx(a$g,{size:"content","aria-label":b,children:jsx(a$h,{autoFocus:true,children:jsx(a$c,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...f,children:jsx(N,{...r,onChange:I,value:y})})})})})]})]})});ve.displayName="IconSlider";export{N as a,ve as b};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {c,b}from'./chunk-IDIZSV2Y.mjs';import {a}from'./chunk-JJG67M2S.mjs';import m,{useEffect,useCallback}from'react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function H(t,i){let{playingLabel:a$1,pausedLabel:r}=i??{},{formatMessage:n,locale:o}=b(),[T,f]=m.useState(false),[D,s]=m.useState(0),[c,v]=m.useState(0),[E,P]=m.useState(false);useEffect(()=>{if(!t.current)return;let e=t.current,u=()=>{f(false),s(0);},L=()=>{!E&&e.duration>0&&s(e.currentTime*100/e.duration);},p=()=>{v(e.duration);},d=()=>{f(!e.paused);},M=()=>{d(),s(0),v(0);};return e.readyState>=1&&p(),e.addEventListener("playing",d),e.addEventListener("pause",d),e.addEventListener("emptied",M),e.addEventListener("ended",u),e.addEventListener("timeupdate",L),e.addEventListener("loadedmetadata",p),()=>{e.removeEventListener("playing",d),e.removeEventListener("pause",d),e.removeEventListener("emptied",M),e.removeEventListener("ended",u),e.removeEventListener("timeupdate",L),e.removeEventListener("loadedmetadata",p);}},[E,t]);let I=useCallback(()=>{let e=t.current;e&&(e.paused?e.play().then(()=>{a(a$1??n(S.playing),"polite");},u=>{if(u?.name!=="AbortError")throw u}):(e.pause(),a(r??n(S.paused),"polite")));},[n,r,a$1,t]),A=useCallback(e=>{t.current&&Number.isFinite(t.current.duration)&&t.current.duration>0?(t.current.currentTime=e*t.current.duration/100,a(k(t.current.currentTime,o.locale),"assertive")):s(0);},[o.locale,t]);return {isPlaying:T,progress:D,duration:c,togglePlay:I,seek:A,setProgress:s,formattedCurrentTime:t.current?.currentTime?g(t.current?.currentTime):"00:00",formattedDuration:Number.isFinite(c)&&c>0?g(c):"00:00",setIsSliderDragging:P}}var S=c({playing:{id:"bui.useMedia.playing",defaultMessage:"Playing"},paused:{id:"bui.useMedia.paused",defaultMessage:"Paused"}});function k(t,i){if(!("DurationFormat"in Intl))return g(t);let a=Math.floor(t/3600),r=Math.floor(t%3600/60),n=t%60,o={...a&&{hours:a},...r&&{minutes:r},seconds:Math.floor(n)};return new Intl.DurationFormat(i,{style:"long"}).format(o)}function g(t){let i=Math.floor(t/3600),a=Math.floor(t%3600/60),r=Math.floor(t%60),n=[a,r].map(o=>o.toString().padStart(2,"0")).join(":");return i?`${i}:${n}`:n}export{H as a,k as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-5W6G3ZUT.mjs';import {a as a$4,b as b$1}from'./chunk-BIDNNBRG.mjs';import {c,d}from'./chunk-IROFSPEN.mjs';import {a as a$2}from'./chunk-NQIZ3U7Q.mjs';import {e}from'./chunk-RINS2TBF.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {b,c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/8';import k,{useEffect}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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-DF2D7NE6.mjs';import {a as a$2}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-L3SNGDBH.mjs';import {b}from'./chunk-DF2D7NE6.mjs';import {a as a$2}from'./chunk-DIL5HL6K.mjs';import {a as a$5}from'./chunk-OPIPJTLG.mjs';import {a as a$4}from'./chunk-5W6G3ZUT.mjs';import {b as b$1}from'./chunk-OQPYPKZV.mjs';import {e}from'./chunk-GMALMQWI.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {u}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$7}from'./chunk-SVIYLH7R.mjs';import {a as a$6}from'./chunk-ETM4MNG4.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import z,{useMemo,useState,useEffect}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}from'./chunk-Q6R75IOP.mjs';import {p,i,l,j as j$1,a as a$7}from'./chunk-6Z3GYFG5.mjs';import {b as b$1}from'./chunk-KG2EHFYA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {e,h as h$1,c,d}from'./chunk-RINS2TBF.mjs';import {a as a$6}from'./chunk-66CUIXA6.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {a as a$1}from'./chunk-B3EZOXNU.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a as a$3}from'./chunk-SVIYLH7R.mjs';import {c as c$2}from'./chunk-ETM4MNG4.mjs';import {a as a$4}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {CaretLeftIcon,CaretRightIcon}from'@baseline-ui/icons/8';import _,{createContext,forwardRef,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var W={"ar-AE":{breadcrumbs:"\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0648\u0627\u062C\u0647\u0629"},"bg-BG":{breadcrumbs:"\u0422\u0440\u043E\u0445\u0438 \u0445\u043B\u044F\u0431"},"cs-CZ":{breadcrumbs:"Popis cesty"},"da-DK":{breadcrumbs:"Br\xF8dkrummer"},"de-DE":{breadcrumbs:"Breadcrumbs"},"el-GR":{breadcrumbs:"\u03A0\u03BB\u03BF\u03B7\u03B3\u03AE\u03C3\u03B5\u03B9\u03C2 breadcrumb"},"en-US":{breadcrumbs:"Breadcrumbs"},"es-ES":{breadcrumbs:"Migas de pan"},"et-EE":{breadcrumbs:"Lingiread"},"fi-FI":{breadcrumbs:"Navigointilinkit"},"fr-FR":{breadcrumbs:"Chemin de navigation"},"he-IL":{breadcrumbs:"\u05E9\u05D1\u05D9\u05DC\u05D9 \u05E0\u05D9\u05D5\u05D5\u05D8"},"hr-HR":{breadcrumbs:"Navigacijski putovi"},"hu-HU":{breadcrumbs:"Morzsamen\xFC"},"it-IT":{breadcrumbs:"Breadcrumb"},"ja-JP":{breadcrumbs:"\u30D1\u30F3\u304F\u305A\u30EA\u30B9\u30C8"},"ko-KR":{breadcrumbs:"\uD0D0\uC0C9 \uD45C\uC2DC"},"lt-LT":{breadcrumbs:"Nar\u0161ymo kelias"},"lv-LV":{breadcrumbs:"Atpaka\u013Cce\u013Ci"},"nb-NO":{breadcrumbs:"Navigasjonsstier"},"nl-NL":{breadcrumbs:"Broodkruimels"},"pl-PL":{breadcrumbs:"Struktura nawigacyjna"},"pt-BR":{breadcrumbs:"Caminho detalhado"},"pt-PT":{breadcrumbs:"Categorias"},"ro-RO":{breadcrumbs:"Miez de p\xE2ine"},"ru-RU":{breadcrumbs:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F"},"sk-SK":{breadcrumbs:"Naviga\u010Dn\xE9 prvky Breadcrumbs"},"sl-SI":{breadcrumbs:"Drobtine"},"sr-SP":{breadcrumbs:"Putanje navigacije"},"sv-SE":{breadcrumbs:"S\xF6kv\xE4gar"},"tr-TR":{breadcrumbs:"\u0130\xE7erik haritalar\u0131"},"uk-UA":{breadcrumbs:"\u041D\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u0439\u043D\u0430 \u0441\u0442\u0435\u0436\u043A\u0430"},"zh-CN":{breadcrumbs:"\u5BFC\u822A\u680F"},"zh-TW":{breadcrumbs:"\u5C0E\u89BD\u5217"}};function L(i){let{"aria-label":e,...r}=i,a=b$1(W,"@react-aria/breadcrumbs");return {navProps:{...a$3(r,{labelable:true}),"aria-label":e||a.format("breadcrumbs")}}}var D=createContext(null),N=forwardRef(function(e$1,r){[e$1,r]=e(e$1,r,D);let a$4=e$1.href&&!e$1.isDisabled?"a":"span",{linkProps:o,isPressed:t}=a({...e$1,elementType:a$4},r),d=h$1[a$4],{hoverProps:l,isHovered:n}=a$1(e$1),{focusProps:p,isFocused:z,isFocusVisible:m}=a$2(),u=c({...e$1,defaultClassName:"react-aria-Link",values:{isCurrent:!!e$1["aria-current"],isDisabled:e$1.isDisabled||false,isPressed:t,isHovered:n,isFocused:z,isFocusVisible:m}}),c$2=a$3(e$1,{global:true});return delete c$2.onClick,jsx(d,{ref:r,slot:e$1.slot||void 0,...c$1(c$2,u,o,l,p),"data-focused":z||void 0,"data-hovered":n||void 0,"data-pressed":t||void 0,"data-focus-visible":m||void 0,"data-current":!!e$1["aria-current"]||void 0,"data-disabled":e$1.isDisabled||void 0,children:u.children})});var h=createContext(null),O=forwardRef(function(e$1,r){[e$1,r]=e(e$1,r,h);let{CollectionRoot:a}=useContext(p),{navProps:o}=L(e$1),t=a$3(e$1,{global:true,labelable:true});return jsx(i,{content:jsx(l,{...e$1}),children:d=>jsx(h$1.ol,{render:e$1.render,ref:r,...c$1(t,o),slot:e$1.slot||void 0,style:e$1.style,className:e$1.className??"react-aria-Breadcrumbs",children:jsx(h.Provider,{value:e$1,children:jsx(a,{collection:d})})})})}),M=class extends a$7{static type="item"},j=j$1(M,function(e,r,a){let o=a.nextKey==null,{isDisabled:t,onAction:d$1}=d(h),l={"aria-current":o?"page":void 0,isDisabled:t||o,onPress:()=>d$1?.(a.key)},n=c({...a.props,children:a.rendered,values:{isDisabled:t||o,isCurrent:o},defaultClassName:"react-aria-Breadcrumb"}),p=a$3(e,{global:true,labelable:true});return delete p.id,jsx(h$1.li,{...p,...n,ref:r,"data-disabled":t||o||void 0,"data-current":o||void 0,children:jsx(D.Provider,{value:l,children:n.children})})});var Z="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6g3",Q=a$4({defaultClassName:"oi1ctg9 _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6f9",variantClassNames:{isHovered:{true:"_1yep5z611t"},isDisabled:{true:"_1yep5z61od"},isDimmed:{true:"oi1ctgc"}},defaultVariants:{},compoundVariants:[]}),X="_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69o _1yep5z69p _1yep5z69q",Y=a$4({defaultClassName:"oi1ctg6",variantClassNames:{isCurrent:{true:"oi1ctg7",false:"oi1ctg8"}},defaultVariants:{},compoundVariants:[]}),$=a$4({defaultClassName:"oi1ctg1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6dy _1yep5z6ey _1yep5z6m5",variantClassNames:{isHovered:{true:"_1yep5z611i"},isFocusVisible:{true:"oi1ctg3"},isCurrent:{true:"oi1ctg4"},isDisabled:{true:"oi1ctg5 _1yep5z61o4"}},defaultVariants:{},compoundVariants:[]}),ee="oi1ctg0 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z69o _1yep5z69p _1yep5z69q",re="_1yep5z6jb _1yep5z6jc _1yep5z6jd _1yep5z6fa";var te=_.createContext({disabledKeys:new Set,separator:null}),se=_.forwardRef(({children:i,onAction:e,isDisabled:r,disabledKeys:a,separator:o,className:t,id:d,"aria-label":l,"aria-labelledby":n,...p},z)=>{let{direction:m}=b(),u=m==="rtl"?CaretLeftIcon:CaretRightIcon,c=c$2(),C=d??c,{navProps:b$1}=L({id:C,"aria-label":l,"aria-labelledby":n}),P=_.useMemo(()=>({disabledKeys:new Set(a),isDisabled:r,separator:o===void 0?jsx(u,{size:8}):o}),[a,r,o,u]);return jsx("nav",{...p,...b$1,ref:z,className:a$5("BaselineUI-Breadcrumbs",t),children:jsx(te.Provider,{value:P,children:jsx(O,{className:ee,"aria-labelledby":n??C,onAction:e,isDisabled:r,children:i})})})});se.displayName="Breadcrumbs";var ie=_.forwardRef(({id:i,label:e,icon:r,"aria-label":a,href:o,children:t,className:d,...l},n)=>{let{disabledKeys:p,isDisabled:z,separator:m}=_.useContext(te),u=m!==null&&m!==false&&m!=="",c=z||p.has(i),C=_.Children.toArray(t).some(b=>b!=="");return a$6(C||e||a,"Breadcrumb requires a `label`, an `aria-label`, or `children`."),jsx(j,{...l,ref:n,id:i,className:a$5(X,d),children:({isCurrent:b})=>jsxs(Fragment,{children:[C?t:jsx(N,{"aria-label":a,href:o,className:({isHovered:P,isFocusVisible:B})=>$({isHovered:P,isFocusVisible:B,isCurrent:b,isDisabled:c}),isDisabled:c||void 0,children:({isHovered:P})=>{let B=r?jsx("span",{className:Q({isHovered:P,isDisabled:c,isDimmed:!b&&(P||c)}),children:jsx(r,{size:16})}):null;return jsxs(Fragment,{children:[e&&B?jsx("span",{className:Z,children:B}):B,e?jsx("span",{className:Y({isCurrent:b}),children:e}):null]})}}),!b&&u?jsx("span",{"aria-hidden":"true",className:re,"data-testid":"breadcrumbs-separator",children:m}):null]})})});ie.displayName="Breadcrumb";export{se as a,ie as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-KVIV5RTE.mjs';import {c,d,e,f,i,g,h as h$1}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-KVIV5RTE.mjs';import {c,d,e,f,i,g,h as h$1}from'./chunk-23WMOYTQ.mjs';import {a as a$4}from'./chunk-OVJT5F2R.mjs';import {c as c$2}from'./chunk-6DYTFYPO.mjs';import {a as a$3}from'./chunk-TAT552A5.mjs';import {l}from'./chunk-6Z3GYFG5.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import {CaretDownIcon}from'@baseline-ui/icons/12';import p from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$2}from'./chunk-KVIV5RTE.mjs';import {c,d,e,f,i,g,h as h$1}from'./
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var R=a({defaultClassName:"_1enn18vd _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[]}),z=a({defaultClassName:"_1enn18v2 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6dw _1yep5z6f1 _1yep5z6g9 _1yep5z6m6",variantClassNames:{allowsSorting:{true:"_1enn18v3"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[]}),I=a({defaultClassName:"_1enn18vi _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"}},defaultVariants:{},compoundVariants:[]}),w=a({defaultClassName:"_1enn18v8 _1yep5z6m6 _1yep5z6lt _1yep5z6lq",variantClassNames:{isHovered:{true:"_1yep5z612t"},isSelected:{true:"_1yep5z612u"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"},isDisabled:{true:"_1enn18vc"}},defaultVariants:{},compoundVariants:[]}),P=a({defaultClassName:"_1enn18vf",variantClassNames:{sortDirection:{ascending:"_1enn18vg",descending:"_1enn18vh"}},defaultVariants:{},compoundVariants:[]}),B="_1enn18v5",E="_1enn18v0",H="_1enn18v1",S="_1enn18v6",h="_1enn18v7";var L=p.forwardRef(({className:e,style:r,...a},t)=>jsx(c,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,E,"BaselineUI-Table"),style:r,...a}));L.displayName="Table";var M=p.forwardRef(({className:e,style:r,...a},t)=>jsx(d,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,H,"BaselineUI-TableHeader"),style:r,...a}));M.displayName="TableHeader";var A=p.forwardRef(({className:e$1,style:r,children:a,...t},o)=>jsx(e,{ref:o,className:n=>a$1(typeof e$1=="function"?e$1(n):e$1,z({allowsSorting:n.allowsSorting,isFocusVisible:n.isFocusVisible}),"BaselineUI-Column"),style:r,...t,children:n=>jsxs(Fragment,{children:[typeof a=="function"?a(n):a,n.allowsSorting&&n.sortDirection?jsx(CaretDownIcon,{className:P({sortDirection:n.sortDirection}),"aria-hidden":"true"}):null]})}));A.displayName="Column";var V=p.forwardRef(({children:e,className:r,dependencies:a,isLoading:t,items:o,onLoadMore:n,scrollOffset:U,loadingLabel:k,style:q,...j},K)=>{let{formatMessage:G}=b();return process.env.NODE_ENV!=="production"&&t&&!n&&console.warn("[Baseline UI] TableBody: `isLoading` is set but `onLoadMore` is not provided. The loading spinner will not be displayed. Either provide `onLoadMore` or remove `isLoading`."),jsxs(f,{ref:K,className:J=>a$1(typeof r=="function"?r(J):r,B,"BaselineUI-TableBody"),style:q,...j,children:[o&&typeof e=="function"?jsx(l,{items:o,dependencies:a,children:e}):typeof e=="function"?null:e,n?jsx(i,{className:a$1(S,"BaselineUI-TableLoadMoreItem"),isLoading:t,onLoadMore:n,scrollOffset:U,children:t?jsx("div",{className:a$1(h,"BaselineUI-TableLoadMoreItemContent"),children:jsx(a$2,{"aria-label":k??G(W.loading),size:"sm"})}):null}):null]})});V.displayName="TableBody";var N=p.forwardRef(({className:e,style:r,...a},t)=>jsx(g,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,w({isHovered:o.isHovered,isSelected:o.isSelected,isFocusVisible:o.isFocusVisible,isDisabled:o.isDisabled}),"BaselineUI-Row"),style:r,...a}));N.displayName="Row";var F=p.forwardRef(({className:e,style:r,...a},t)=>jsx(h$1,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,R({isFocusVisible:o.isFocusVisible}),"BaselineUI-Cell"),style:r,...a}));F.displayName="Cell";var W=c$1({loading:{defaultMessage:"Loading",id:"bui.table.loading"}});function Y(e){let{scrollRef:r,...a}=e;return a$3({ref:r??{current:null},isDisabled:!r}),a$4({getItems:t=>[...t].map(o=>({"text/plain":String(o)})),renderDropIndicator(t
|
|
10
|
+
var R=a({defaultClassName:"_1enn18vd _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6m6",variantClassNames:{isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[]}),z=a({defaultClassName:"_1enn18v2 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6dw _1yep5z6f1 _1yep5z6g9 _1yep5z6m6",variantClassNames:{allowsSorting:{true:"_1enn18v3"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[]}),I=a({defaultClassName:"_1enn18vi _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"}},defaultVariants:{},compoundVariants:[]}),w=a({defaultClassName:"_1enn18v8 _1yep5z6m6 _1yep5z6lt _1yep5z6lq",variantClassNames:{isHovered:{true:"_1yep5z612t"},isSelected:{true:"_1yep5z612u"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"},isDisabled:{true:"_1enn18vc"}},defaultVariants:{},compoundVariants:[]}),P=a({defaultClassName:"_1enn18vf",variantClassNames:{sortDirection:{ascending:"_1enn18vg",descending:"_1enn18vh"}},defaultVariants:{},compoundVariants:[]}),B="_1enn18v5",E="_1enn18v0",H="_1enn18v1",S="_1enn18v6",h="_1enn18v7";var L=p.forwardRef(({className:e,style:r,...a},t)=>jsx(c,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,E,"BaselineUI-Table"),style:r,...a}));L.displayName="Table";var M=p.forwardRef(({className:e,style:r,...a},t)=>jsx(d,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,H,"BaselineUI-TableHeader"),style:r,...a}));M.displayName="TableHeader";var A=p.forwardRef(({className:e$1,style:r,children:a,...t},o)=>jsx(e,{ref:o,className:n=>a$1(typeof e$1=="function"?e$1(n):e$1,z({allowsSorting:n.allowsSorting,isFocusVisible:n.isFocusVisible}),"BaselineUI-Column"),style:r,...t,children:n=>jsxs(Fragment,{children:[typeof a=="function"?a(n):a,n.allowsSorting&&n.sortDirection?jsx(CaretDownIcon,{className:P({sortDirection:n.sortDirection}),"aria-hidden":"true"}):null]})}));A.displayName="Column";var V=p.forwardRef(({children:e,className:r,dependencies:a,isLoading:t,items:o,onLoadMore:n,scrollOffset:U,loadingLabel:k,style:q,...j},K)=>{let{formatMessage:G}=b();return process.env.NODE_ENV!=="production"&&t&&!n&&console.warn("[Baseline UI] TableBody: `isLoading` is set but `onLoadMore` is not provided. The loading spinner will not be displayed. Either provide `onLoadMore` or remove `isLoading`."),jsxs(f,{ref:K,className:J=>a$1(typeof r=="function"?r(J):r,B,"BaselineUI-TableBody"),style:q,...j,children:[o&&typeof e=="function"?jsx(l,{items:o,dependencies:a,children:e}):typeof e=="function"?null:e,n?jsx(i,{className:a$1(S,"BaselineUI-TableLoadMoreItem"),isLoading:t,onLoadMore:n,scrollOffset:U,children:t?jsx("div",{className:a$1(h,"BaselineUI-TableLoadMoreItemContent"),children:jsx(a$2,{"aria-label":k??G(W.loading),size:"sm"})}):null}):null]})});V.displayName="TableBody";var N=p.forwardRef(({className:e,style:r,...a},t)=>jsx(g,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,w({isHovered:o.isHovered,isSelected:o.isSelected,isFocusVisible:o.isFocusVisible,isDisabled:o.isDisabled}),"BaselineUI-Row"),style:r,...a}));N.displayName="Row";var F=p.forwardRef(({className:e,style:r,...a},t)=>jsx(h$1,{ref:t,className:o=>a$1(typeof e=="function"?e(o):e,R({isFocusVisible:o.isFocusVisible}),"BaselineUI-Cell"),style:r,...a}));F.displayName="Cell";var W=c$1({loading:{defaultMessage:"Loading",id:"bui.table.loading"}});function Y(e){let{scrollRef:r,...a}=e;return a$3({ref:r??{current:null},isDisabled:!r}),a$4({getItems:t=>[...t].map(o=>({"text/plain":String(o)})),renderDropIndicator(t){return jsx(c$2,{target:t,className:({isDropTarget:o})=>a$1(I({isDropTarget:o}),"BaselineUI-DropIndicator")})},...a})}export{L as a,M as b,A as c,V as d,N as e,F as f,Y as g};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {c}from'./chunk-HH4VLTF3.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {o,r,s}from'./chunk-PPHSLODC.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-SVIYLH7R.mjs';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function h(e,t){let{elementType:c$2="a",onPress:m,onPressStart:L,onPressEnd:b,onPressChange:f,onClick:d$1,isDisabled:r$1,...A}=e,n={};c$2!=="a"&&(n={role:"link",tabIndex:r$1?void 0:0});let{focusableProps:O}=c(e,t),{pressProps:o$1,isPressed:x}=d({onPress:m,onPressStart:L,onPressEnd:b,onPressChange:f,onClick:d$1,isDisabled:r$1,ref:t}),D=a(A,{labelable:true}),M=c$1(O,o$1),E=o(),g=r(e);return {isPressed:x,linkProps:c$1(D,g,{...M,...n,"aria-disabled":r$1||void 0,"aria-current":e["aria-current"],onClick:s$1=>{o$1.onClick?.(s$1),s(s$1,E,e.href,e.routerOptions);}})}}export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$4}from'./chunk-6GV3YWV7.mjs';import {a as a$1}from'./chunk-6Q5PNIYZ.mjs';import {a as a$7}from'./chunk-JZXLV6JU.mjs';import {b,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$3}from'./chunk-DIL5HL6K.mjs';import {a as a$6}from'./chunk-OPIPJTLG.mjs';import {d}from'./chunk-4EAXDHSV.mjs';import {a as a$2}from'./chunk-STMDFIUL.mjs';import {b as b$1,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {XIcon}from'@baseline-ui/icons/20';import h from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,b}from'./chunk-
|
|
1
|
+
import {a,b}from'./chunk-ZC5WXVNV.mjs';import {a as a$1}from'./chunk-B5VHU77N.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$4,d as d$1,c as c$3,b as b$4}from'./chunk-C4WHTPLY.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {d,g,b}from'./chunk-
|
|
1
|
+
import {a as a$4,d as d$1,c as c$3,b as b$4}from'./chunk-C4WHTPLY.mjs';import {b as b$3}from'./chunk-KG2EHFYA.mjs';import {d,g,b}from'./chunk-RINS2TBF.mjs';import {b as b$2,a as a$7,i as i$1}from'./chunk-TZGK36KC.mjs';import {a as a$6}from'./chunk-Y2MIU76N.mjs';import {a as a$5}from'./chunk-AI6WQPRX.mjs';import {a}from'./chunk-FPM5UJRF.mjs';import {c as c$2,e}from'./chunk-KUDCYGII.mjs';import {a as a$3}from'./chunk-RT4LMB6X.mjs';import {h,l,u}from'./chunk-PPHSLODC.mjs';import {c,b as b$1}from'./chunk-3WKDIXCM.mjs';import {c as c$1,a as a$2}from'./chunk-ETM4MNG4.mjs';import {i,a as a$1,j,k}from'./chunk-SD43KVTU.mjs';import {createContext,useRef,useState,useEffect,useCallback,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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-IDIZSV2Y.mjs';import {a}from'./chunk-66CUIXA6.mjs';import {Fragment}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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {a}from'./chunk-ETM4MNG4.mjs';import {forwardRef,createContext,useRef,useMemo,useContext,useState,useCallback}from'react';import {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 M=Symbol("default");function z({values:e,children:t}){for(let[r,o]of e)t=jsx(r.Provider,{value:o,children:t});return t}function Q(e){let{className:t,style:r,children:o,defaultClassName:l=void 0,defaultChildren:n=void 0,defaultStyle:a,values:i,render:d}=e;return useMemo(()=>{let c,u,s;return typeof t=="function"?c=t({...i,defaultClassName:l}):c=t,typeof r=="function"?u=r({...i,defaultStyle:a||{}}):u=r,typeof o=="function"?s=o({...i,defaultChildren:n}):o==null?s=n:s=o,{className:c??l,style:u||a?{...a,...u}:void 0,children:s??n,"data-rac":"",render:d?C=>d(C,i):void 0}},[t,r,o,l,n,a,i,d])}function D(e,t){let r=useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||M;if(!r.slots[o]){let l=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),n=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${n} Valid slot names are ${l}.`)}return r.slots[o]}return r}function Y(e,t,r){let o=D(r,e.slot)||{},{ref:l,...n}=o,a=a$1(useMemo(()=>b(t,l),[t,l])),i=c(n,e);return "style"in n&&n.style&&"style"in e&&e.style&&(typeof n.style=="function"||typeof e.style=="function"?i.style=d=>{let c=typeof n.style=="function"?n.style(d):n.style,u={...d.defaultStyle,...c},s=typeof e.style=="function"?e.style({...d,defaultStyle:u}):e.style;return {...u,...s}}:i.style={...n.style,...e.style}),[i,a]}function Z(e=true){let[t,r]=useState(e),o=useRef(false),l=useCallback(n=>{o.current=true,r(!!n);},[]);return a(()=>{o.current||r(false);},[]),[l,t]}function ee(e){let t=/^(data-.*)$/,r={};for(let o in e)t.test(o)||(r[o]=e[o]);return r}function A(e,t,r){let{render:o,...l}=t,n=useRef(null),a$1=useMemo(()=>b(r,n),[r,n]);a(()=>{process.env.NODE_ENV!=="production"&&o&&(n.current?n.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${n.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));},[e,o]);let i={...l,ref:a$1};return o?o(i,void 0):jsx(e,{...i})}var T={},re=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=T[t];return r||(r=forwardRef(A.bind(null,t)),T[t]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:true,enumerable:true,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:true,enumerable:true,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:true,enumerable:true,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:true,enumerable:true,value:function(e,t){return this.content.insertBefore(e,t)}}));var f=createContext(false);function se(e){if(useContext(f))return jsx(Fragment,{children:e.children});let r=jsx(f.Provider,{value:true,children:e.children});return jsx("template",{children:r})}function ce(e){let t=(r,o)=>useContext(f)?null:e(r,o);return t.displayName=e.displayName||e.name,forwardRef(t)}function fe(){return useContext(f)}export{M as a,z as b,Q as c,D as d,Y as e,Z as f,ee as g,re as h,se as i,ce as j,fe as k};
|
|
@@ -7,4 +7,4 @@ import {a as a$1}from'./chunk-66CUIXA6.mjs';import {b as b$1}from'./chunk-3WKDIX
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var I=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},R=(e,t,n)=>{let o=e.querySelector("title"),i=a(e);if(o)o.textContent=t,o.setAttribute("id",n);else {let r=i.createElement("title");r.textContent=t,r.setAttribute("id",n),e.prepend(r);}},T=(e,t)=>{t&&e.classList.add(t);},w=(e,t)=>{let n=t.createElement("span");n.innerHTML=y.default.sanitize(e);let o=n.querySelector("svg");return a$1(o,"Icon: svg prop must be a valid svg string"),o},x=c.forwardRef(({size:e,title:t,className:n,style:o,color:i,...r},v)=>{let u=useId(),f=b(),l=c.useRef(null),m="svg"in r?r.svg:void 0,a$1=c.useMemo(()=>{if(m&&!f){let b=a(l.current),s=w(m,b);return e&&I(s,e),t&&R(s,t,u),T(s,n),s.outerHTML}},[m,e,t,n,u,f]);return jsx("span",{className:n,ref:b$1(v,l),style:{display:"contents",...o,color:i},dangerouslySetInnerHTML:a$1?{__html:a$1}:void 0})});x.displayName="Icon";export{x as a};
|
|
10
|
+
var I=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},R=(e,t,n)=>{let o=e.querySelector("title"),i=a(e);if(o)o.textContent=t,o.setAttribute("id",n);else {let r=i.createElement("title");r.textContent=t,r.setAttribute("id",n),e.prepend(r);}},T=(e,t)=>{t&&e.classList.add(...t.split(/[\t\n\f\r ]+/).filter(Boolean));},w=(e,t)=>{let n=t.createElement("span");n.innerHTML=y.default.sanitize(e);let o=n.querySelector("svg");return a$1(o,"Icon: svg prop must be a valid svg string"),o},x=c.forwardRef(({size:e,title:t,className:n,style:o,color:i,...r},v)=>{let u=useId(),f=b(),l=c.useRef(null),m="svg"in r?r.svg:void 0,a$1=c.useMemo(()=>{if(m&&!f){let b=a(l.current),s=w(m,b);return e&&I(s,e),t&&R(s,t,u),T(s,n),s.outerHTML}},[m,e,t,n,u,f]);return jsx("span",{className:n,ref:b$1(v,l),style:{display:"contents",...o,color:i},dangerouslySetInnerHTML:a$1?{__html:a$1}:void 0})});x.displayName="Icon";export{x as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-CWPFUB7B.mjs';import {a as a$e}from'./chunk-NV7KQVPE.mjs';import {a as a$f}from'./chunk-KVIV5RTE.mjs';import {f,b as b$4,i,g,a as a$b,h,c as c$3,e as e$1,d}from'./chunk-F3THHK5C.mjs';import {a as a$a}from'./chunk-NMSOOQB2.mjs';import {a as a$9}from'./chunk-OVJT5F2R.mjs';import {q}from'./chunk-3IPRT57V.mjs';import {c as c$2}from'./chunk-6DYTFYPO.mjs';import {p}from'./chunk-6Z3GYFG5.mjs';import {a as a$8}from'./chunk-EGYIHFEQ.mjs';import {a as a$7,b as b$5}from'./chunk-KCHAWPUN.mjs';import {b as b$3,e}from'./chunk-VPVF5N62.mjs';import {b}from'./chunk-4Y4WKIL5.mjs';import {b as b$2,c as c$1}from'./chunk-IDIZSV2Y.mjs';import {a as a$d}from'./chunk-DIL5HL6K.mjs';import {a as a$c}from'./chunk-OPIPJTLG.mjs';import {a as a$4}from'./chunk-5W6G3ZUT.mjs';import {a as a$6}from'./chunk-FPM5UJRF.mjs';import {a}from'./chunk-SGZWUG3H.mjs';import {a as a$1}from'./chunk-B3EZOXNU.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {b as b$1,c}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {sprinkles}from'@baseline-ui/tokens';import Z,{useRef,useLayoutEffect,useState,useContext,useEffect,useCallback,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {XIcon}from'@baseline-ui/icons/12';import {useReducedMotion,motion}from'motion/react';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Fe=t=>a$9({getItems:(e,r)=>r.map(i=>({"text/plain":i.label})),renderDropIndicator(e){return jsx(c$2,{target:e,className:({isDropTarget:r})=>a$2(a$a({isDropTarget:r}),"BaselineUI-DropIndicator")})},...t});function Y(t,e){return t.find(r=>r.id===e)}function We(t,e,r){let i=[...t],l=i.filter(o=>r.has(o.id)),n=i.filter(o=>!r.has(o.id)),s=n.findIndex(o=>o.id===e);return n.flatMap((o,p)=>p===s?[...l,o]:o)}function $e(t,e,r){let i=[...t],l=i.filter(o=>r.has(o.id)),n=i.filter(o=>!r.has(o.id)),s=n.findIndex(o=>o.id===e);return n.flatMap((o,p)=>p===s?[o,...l]:o)}function oe(t){return t.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function K(t){return t.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var H={src:"src",alt:"alt"},T={sm:102,md:170};function Xe(t,e){let r=Y(t,e);return {[H.src]:r?.data?.src||"",[H.alt]:r?.data?.alt||"",key:String(e)}}function je(t){let e=t[H.src];return e?{src:String(e),alt:t[H.alt]?String(t[H.alt]):""}:null}function qe({fit:t,imageDimensions:e,item:r,isSelected:i}){let l={display:"block",objectFit:t},n=typeof e=="function"?r?e(r,{isSelected:i}):void 0:e;if(!n)return l;let s=typeof n.width=="string"?T[n.width]:n.width;return l.width=s,l.aspectRatio="height"in n?`${s} / ${n.height}`:n.aspectRatio.toString(),l}var Qe=Z.forwardRef(({className:t,children:e,style:r,isDisabled:i,onTruncatedChange:l,onHoverChange:n},s)=>{let o=useRef(null),{buttonProps:p}=a({elementType:"span",isDisabled:i},o);useLayoutEffect(()=>{o.current&&l?.(o.current.scrollWidth>o.current.clientWidth);},[e,l]);let{hoverProps:I}=a$1({isDisabled:i,onHoverChange:n});return jsx(b,{elementType:"span",slot:"label",...c(p,I),className:a$2(t,"BaselineUI-AdaptiveText"),tabIndex:-1,ref:b$1(o,s),style:r,role:void 0,children:e})});Qe.displayName="Label";var ie=Z.memo(Z.forwardRef(({children:t,isOpen:e,isDisabled:r,...i},l)=>{let[n,s]=useState(false),[o,p]=useState(false),I=a$3(),A=r||!o||I;return jsx(a$4,{text:t,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(n||e)&&o,isDisabled:A,children:jsx(Qe,{...i,isDisabled:A,onTruncatedChange:p,onHoverChange:s,ref:l,children:t})})}));ie.displayName="AdaptiveText";var ut=({fit:t,item:e,deleteElement:r,loadingLabel:i})=>{let{formatMessage:l}=b$2(),{isLoading:n,imgProps:s}=a$e({src:e.data?.src,alt:e.data?.alt||""});return jsxs("div",{className:e$1,children:[n?jsx(a$f,{"aria-label":i??l(_.loading)}):jsx("div",{role:"img",className:d({isLoading:n}),"aria-label":s.alt||"",style:{backgroundImage:`url(${s.src})`,backgroundSize:t}}),r]})},Ye=({item:t,options:{isFocusVisible:e,isSelected:r,isFocused:i,isDisabled:l,isPressed:n},fit:s="contain",onDelete:o,className:p,imageClassName:I,imageLabelClassName:A,imageDimensions:O,style:U,layoutTransition:P=true,deleteLabel:z,loadingLabel:F,renderImage:W=(w,{deleteElement:k})=>jsx(ut,{item:w,deleteElement:k,fit:s,loadingLabel:F})})=>{let{formatMessage:w}=b$2(),k=o?jsx("div",{className:a$b,children:jsx(a$c,{"aria-label":z??w(_.delete),size:"xs",icon:XIcon,onPress:()=>{o(t.id);},isDisabled:l,UNSAFE_isVisuallyInteractiveOnly:true})}):null,v=K([t])[0],R=useCallback(C=>{let y={},c=typeof C=="function"?C(v,{isSelected:r}):C;return c&&(y.width=typeof c.width=="string"?T[c.width]:c.width,y.aspectRatio="height"in c?`${y.width} / ${c.height}`:c?.aspectRatio?.toString()),y},[v,r]),x=useMemo(()=>({isFocusVisible:e,isSelected:r,isFocused:i,isDisabled:l,isPressed:n}),[e,r,i,l,n]),B=!useReducedMotion()&&(typeof P=="boolean"?P:true),b=typeof P=="object"?P:void 0,$=R(O),X=B?motion.div:"div";return jsxs(X,{...B?{layout:"position",initial:false,transition:b}:{},className:a$2(c$3,a$7(p,v,x)),style:b$5(U,v,x),children:[jsx(a$d,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsx("div",{className:a$2(g({isFocusVisible:e,isSelected:r,isLoading:true}),a$7(I,v,x)),style:$,"data-image-key":t.id,children:W(t,{deleteElement:k??void 0,onDelete:o})})}),jsx(ie,{className:a$2(h({isFocusVisible:e,isSelected:r}),A),style:{maxWidth:$.width},isOpen:e,children:t.label})]})};var V={keys:[],isAll:false};function ht(t,e){return t==="all"?true:"has"in t&&typeof t.has=="function"?t.has(e):[...t].includes(e)}var et=Z.forwardRef(({className:t,style:e$1,fit:r="cover",onReorder:i$1,"data-block-id":l,"data-block-class":n,onDelete:s,imageWidth:o,aspectRatio:p$1,items:I,defaultItems:A=[],onKeyDown:O,imageContainerClassName:U,imageClassName:P,labelClassName:z,onListChange:F,renderImage:W,layoutTransition:w,imageDimensions:k,imageContainerStyle:v,deleteConfirmationTitle:R="Are you sure you want to delete this item?",deleteLabel:x,cancelLabel:le,loadingLabel:B,...b},$)=>{let{isVirtualized:X}=useContext(p),C=a$5($),[y,c]=useState(V),S=y.keys,{formatMessage:me}=b$2(),ce=o??T.sm,de=p$1??3/4,pe=o!==void 0||p$1!==void 0;useEffect(()=>{pe&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[pe]);let ee=Z.useMemo(()=>k??{width:ce,aspectRatio:de},[k,ce,de]),[h,j]=a$6(b.selectedKeys,b.defaultSelectedKeys??[],b.onSelectionChange),tt=Z.useMemo(()=>I?oe(I):void 0,[I]),rt=Z.useMemo(()=>oe(A),[]),[u,N]=a$6(tt,rt,F?a=>{F?.(K(a));}:void 0),ot=useCallback(a=>{let m=a.target.key,d=a.keys;if(a.target.dropPosition==="before"){let f=We(u,m,d);N(f);}else if(a.target.dropPosition==="after"){let f=$e(u,m,d);N(f);}i$1?.(a);},[u,i$1,N]),{dragAndDropHooks:at}=Fe({onReorder:ot,isDisabled:!i$1,renderDragPreview:a=>jsx(i,{items:a,containerClassName:".BaselineUI-ImageGallery",previewClassName:g(),itemDataAttribute:"data-image-key",showCount:true,renderFallback:m=>{let d=je(m);if(!d)return null;let f=Y(u,m.key),q=f?K([f])[0]:void 0;return jsx("img",{...d,style:qe({fit:r,imageDimensions:ee,item:q,isSelected:ht(h,m.key)})})}}),getItems:a=>[...a].map(m=>Xe(u,m)),renderDropIndicator(a){return jsx(c$2,{target:a,className:a$2(b$4({isVirtualized:!!X}),"BaselineUI-DropIndicator")})}}),nt=useCallback(()=>{if(s&&S.length){if(y.isAll)j(new Set);else if(h!=="all"){let a=[...h],m=a.filter(d=>!S.includes(d));m.length!==a.length&&j(new Set(m));}N(u.filter(a=>!S.includes(a.id))),s(S),c(V);}},[S,y.isAll,u,s,h,N,j]),it=useCallback((a,m)=>{let d={id:a.id,label:a.label,src:a.data?.src,alt:a.data?.alt};return jsx(Ye,{item:a,options:m,fit:r,onDelete:s?f=>{m.isDisabled||c({keys:[f],isAll:false});}:void 0,renderImage:W,className:a$7(U,d,m),imageClassName:P,imageLabelClassName:z,imageDimensions:ee,style:v,layoutTransition:w,deleteLabel:x,loadingLabel:B},a.id)},[r,s,W,U,P,z,ee,v,w,x,B]);return useEffect(()=>{let a=C.current;if(!a)return;let m=d=>{if(O?.(d),d.key==="Backspace"||d.key==="Delete"){if(!s)return;let f=new Set(b.disabledKeys);if(h==="all"){c({keys:u.map(G=>G.id).filter(G=>!f.has(G)),isAll:true});return}let q=[...h];if(q.length){let G=q.filter(st=>!f.has(st));G.length&&c({keys:G,isAll:false});return}let te=d.target.closest("[data-key]");if(!te||!a.contains(te))return;let fe=te.dataset.key;if(f.has(fe))return;c({keys:[fe],isAll:false});}};return a.addEventListener("keydown",m),()=>{a.removeEventListener("keydown",m);}},[C,s,O,h,u,b.disabledKeys]),jsxs(Fragment,{children:[jsx(q,{...b,ref:C,style:e$1,className:a$2(f,"BaselineUI-ImageGallery",t),"data-block-id":l,"data-block-class":n,selectedKeys:h,items:u,dragAndDropHooks:at,layout:"grid",orientation:"vertical",renderOption:it,onSelectionChange:j,optionClassName:i$1&&!X?sprinkles({marginLeft:"sm"}):void 0}),jsx(b$3,{isOpen:!![...S].length,onOpenChange:a=>{a||c(V);},children:jsx(e,{isDismissable:true,children:jsx(a$8,{showCloseButton:false,title:typeof R=="function"?R(y.isAll?"all":new Set(S)):R,primaryActionLabel:x??me(_.delete),cancelLabel:le??me(_.cancel),onCancel:()=>{c(V);},onPrimaryAction:nt,autoFocusButton:"cancel"})})})]})});et.displayName="ImageGallery";var _=c$1({delete:{id:"bui.imageGallery.delete",defaultMessage:"Delete"},cancel:{id:"bui.imageGallery.cancel",defaultMessage:"Cancel"},loading:{id:"bui.imageGallery.loading",defaultMessage:"Loading"}});export{et as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$6}from'./chunk-SZCVQU55.mjs';import {a as a$2}from'./chunk-YS3Z53YT.mjs';import {a as a$e}from'./chunk-JBXZ6ZHP.mjs';import {a as a$b}from'./chunk-BPW4QRPV.mjs';import {a as a$d}from'./chunk-
|
|
1
|
+
import {a as a$6}from'./chunk-SZCVQU55.mjs';import {a as a$2}from'./chunk-YS3Z53YT.mjs';import {a as a$e}from'./chunk-JBXZ6ZHP.mjs';import {a as a$b}from'./chunk-BPW4QRPV.mjs';import {a as a$d}from'./chunk-6GV3YWV7.mjs';import {a as a$c}from'./chunk-DIL5HL6K.mjs';import {a as a$a}from'./chunk-B5VHU77N.mjs';import {a as a$4}from'./chunk-X3ACY7IY.mjs';import {a as a$8}from'./chunk-CIPPPD6E.mjs';import {a as a$9,b as b$2}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-STMDFIUL.mjs';import {a as a$7}from'./chunk-4S4GGUSH.mjs';import {j}from'./chunk-KUDCYGII.mjs';import {d}from'./chunk-F7WPMQ3P.mjs';import {b,c}from'./chunk-3WKDIXCM.mjs';import {c as c$1}from'./chunk-ETM4MNG4.mjs';import {a as a$3,b as b$1}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import R,{useContext,useMemo,useRef,useCallback,useEffect,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {PlusIcon}from'@baseline-ui/icons/12';import {themeVars}from'@baseline-ui/tokens';import {useGranularEffect}from'granular-hooks';import Ze from'just-camel-case';import*as it from'comlink';/**
|
|
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 @@
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var e=["bui.alertDialog.close","bui.audioPlayer.audioTimeline","bui.audioPlayer.pause","bui.audioPlayer.play","bui.buttonSelect.more","bui.buttonSelect.moreWithLabel","bui.calendar.nextMonth","bui.calendar.nextYear","bui.calendar.previousMonth","bui.calendar.previousYear","bui.calendar.selectMonth","bui.calendar.selectYear","bui.colorInput.add","bui.colorInput.addColor","bui.colorInput.cancel","bui.colorInput.colorFormat","bui.colorInput.colorPresets","bui.colorInput.customColors","bui.colorInput.indeterminate","bui.colorInput.newColor","bui.colorInput.noColor","bui.colorInput.removeColor","bui.colorInput.transparent","bui.colorSwatch.none","bui.dateField.openCalendar","bui.drawer.close","bui.editor.action","bui.editor.addLink","bui.editor.backgroundColor","bui.editor.bold","bui.editor.cancel","bui.editor.close","bui.editor.copy","bui.editor.cut","bui.editor.editLink","bui.editor.fontColor","bui.editor.help","bui.editor.italic","bui.editor.linkAnnotation","bui.editor.mention","bui.editor.openHelpDialog","bui.editor.paste","bui.editor.redo","bui.editor.removeLink","bui.editor.save","bui.editor.selectAll","bui.editor.shortcut","bui.editor.submit","bui.editor.toolbarFocus","bui.editor.underline","bui.editor.undo","bui.fileList.loading","bui.fileList.removeHint","bui.freehandCanvas.redo","bui.freehandCanvas.undo","bui.imageDropZone.selectImage","bui.imageGallery.cancel","bui.imageGallery.delete","bui.imageGallery.loading","bui.inlineAlert.close","bui.pagination.goToPage","bui.pagination.nextPage","bui.pagination.pageXofY","bui.pagination.prevPage","bui.select.clear","bui.select.more","bui.select.search","bui.select.selectAll","bui.stepper.completed","bui.stepper.label","bui.stepper.step","bui.table.loading","bui.tag.remove","bui.toolbar.more","bui.treeView.collapse","bui.treeView.expand","bui.treeView.rename","bui.useMedia.paused","bui.useMedia.playing"],i={close:["bui.alertDialog.close","bui.drawer.close","bui.editor.close","bui.inlineAlert.close"],audioTimeline:["bui.audioPlayer.audioTimeline"],pause:["bui.audioPlayer.pause"],play:["bui.audioPlayer.play"],more:["bui.buttonSelect.more","bui.select.more","bui.toolbar.more"],moreWithLabel:["bui.buttonSelect.moreWithLabel"],nextMonth:["bui.calendar.nextMonth"],nextYear:["bui.calendar.nextYear"],previousMonth:["bui.calendar.previousMonth"],previousYear:["bui.calendar.previousYear"],selectMonth:["bui.calendar.selectMonth"],selectYear:["bui.calendar.selectYear"],add:["bui.colorInput.add"],addColor:["bui.colorInput.addColor"],cancel:["bui.colorInput.cancel","bui.editor.cancel","bui.imageGallery.cancel"],colorFormat:["bui.colorInput.colorFormat"],colorPresets:["bui.colorInput.colorPresets"],customColors:["bui.colorInput.customColors"],indeterminate:["bui.colorInput.indeterminate"],newColor:["bui.colorInput.newColor"],noColor:["bui.colorInput.noColor"],removeColor:["bui.colorInput.removeColor"],transparent:["bui.colorInput.transparent"],none:["bui.colorSwatch.none"],openCalendar:["bui.dateField.openCalendar"],action:["bui.editor.action"],addLink:["bui.editor.addLink"],backgroundColor:["bui.editor.backgroundColor"],bold:["bui.editor.bold"],copy:["bui.editor.copy"],cut:["bui.editor.cut"],editLink:["bui.editor.editLink"],fontColor:["bui.editor.fontColor"],help:["bui.editor.help"],italic:["bui.editor.italic"],linkAnnotation:["bui.editor.linkAnnotation"],mention:["bui.editor.mention"],openHelpDialog:["bui.editor.openHelpDialog"],paste:["bui.editor.paste"],redo:["bui.editor.redo","bui.freehandCanvas.redo"],removeLink:["bui.editor.removeLink"],save:["bui.editor.save"],selectAll:["bui.editor.selectAll","bui.select.selectAll"],shortcut:["bui.editor.shortcut"],submit:["bui.editor.submit"],toolbarFocus:["bui.editor.toolbarFocus"],underline:["bui.editor.underline"],undo:["bui.editor.undo","bui.freehandCanvas.undo"],loading:["bui.fileList.loading","bui.imageGallery.loading","bui.table.loading"],removeHint:["bui.fileList.removeHint"],selectImage:["bui.imageDropZone.selectImage"],delete:["bui.imageGallery.delete"],goToPage:["bui.pagination.goToPage"],nextPage:["bui.pagination.nextPage"],pageXofY:["bui.pagination.pageXofY"],prevPage:["bui.pagination.prevPage"],clear:["bui.select.clear"],search:["bui.select.search"],completed:["bui.stepper.completed"],label:["bui.stepper.label"],step:["bui.stepper.step"],remove:["bui.tag.remove"],collapse:["bui.treeView.collapse"],expand:["bui.treeView.expand"],rename:["bui.treeView.rename"],paused:["bui.useMedia.paused"],playing:["bui.useMedia.playing"]};export{e as a,i as b};
|
|
10
|
+
var e=["bui.alertDialog.close","bui.audioPlayer.audioTimeline","bui.audioPlayer.pause","bui.audioPlayer.play","bui.buttonSelect.more","bui.buttonSelect.moreWithLabel","bui.calendar.nextMonth","bui.calendar.nextYear","bui.calendar.previousMonth","bui.calendar.previousYear","bui.calendar.selectMonth","bui.calendar.selectYear","bui.colorInput.add","bui.colorInput.addColor","bui.colorInput.cancel","bui.colorInput.colorFormat","bui.colorInput.colorPresets","bui.colorInput.customColors","bui.colorInput.indeterminate","bui.colorInput.newColor","bui.colorInput.noColor","bui.colorInput.removeColor","bui.colorInput.transparent","bui.colorSwatch.none","bui.dateField.openCalendar","bui.drawer.close","bui.editor.action","bui.editor.addLink","bui.editor.backgroundColor","bui.editor.bold","bui.editor.cancel","bui.editor.close","bui.editor.copy","bui.editor.cut","bui.editor.editLink","bui.editor.fontColor","bui.editor.help","bui.editor.italic","bui.editor.linkAnnotation","bui.editor.mention","bui.editor.openHelpDialog","bui.editor.paste","bui.editor.redo","bui.editor.removeLink","bui.editor.save","bui.editor.selectAll","bui.editor.shortcut","bui.editor.submit","bui.editor.toolbarFocus","bui.editor.underline","bui.editor.undo","bui.fileList.loading","bui.fileList.removeHint","bui.freehandCanvas.redo","bui.freehandCanvas.undo","bui.imageDropZone.selectImage","bui.imageGallery.cancel","bui.imageGallery.delete","bui.imageGallery.loading","bui.inlineAlert.close","bui.pagination.goToPage","bui.pagination.nextPage","bui.pagination.pageXofY","bui.pagination.prevPage","bui.select.clear","bui.select.more","bui.select.search","bui.select.selectAll","bui.stepper.completed","bui.stepper.label","bui.stepper.step","bui.table.loading","bui.tag.remove","bui.taggedPagination.nextPage","bui.taggedPagination.prevPage","bui.toolbar.more","bui.treeView.collapse","bui.treeView.expand","bui.treeView.rename","bui.useMedia.paused","bui.useMedia.playing"],i={close:["bui.alertDialog.close","bui.drawer.close","bui.editor.close","bui.inlineAlert.close"],audioTimeline:["bui.audioPlayer.audioTimeline"],pause:["bui.audioPlayer.pause"],play:["bui.audioPlayer.play"],more:["bui.buttonSelect.more","bui.select.more","bui.toolbar.more"],moreWithLabel:["bui.buttonSelect.moreWithLabel"],nextMonth:["bui.calendar.nextMonth"],nextYear:["bui.calendar.nextYear"],previousMonth:["bui.calendar.previousMonth"],previousYear:["bui.calendar.previousYear"],selectMonth:["bui.calendar.selectMonth"],selectYear:["bui.calendar.selectYear"],add:["bui.colorInput.add"],addColor:["bui.colorInput.addColor"],cancel:["bui.colorInput.cancel","bui.editor.cancel","bui.imageGallery.cancel"],colorFormat:["bui.colorInput.colorFormat"],colorPresets:["bui.colorInput.colorPresets"],customColors:["bui.colorInput.customColors"],indeterminate:["bui.colorInput.indeterminate"],newColor:["bui.colorInput.newColor"],noColor:["bui.colorInput.noColor"],removeColor:["bui.colorInput.removeColor"],transparent:["bui.colorInput.transparent"],none:["bui.colorSwatch.none"],openCalendar:["bui.dateField.openCalendar"],action:["bui.editor.action"],addLink:["bui.editor.addLink"],backgroundColor:["bui.editor.backgroundColor"],bold:["bui.editor.bold"],copy:["bui.editor.copy"],cut:["bui.editor.cut"],editLink:["bui.editor.editLink"],fontColor:["bui.editor.fontColor"],help:["bui.editor.help"],italic:["bui.editor.italic"],linkAnnotation:["bui.editor.linkAnnotation"],mention:["bui.editor.mention"],openHelpDialog:["bui.editor.openHelpDialog"],paste:["bui.editor.paste"],redo:["bui.editor.redo","bui.freehandCanvas.redo"],removeLink:["bui.editor.removeLink"],save:["bui.editor.save"],selectAll:["bui.editor.selectAll","bui.select.selectAll"],shortcut:["bui.editor.shortcut"],submit:["bui.editor.submit"],toolbarFocus:["bui.editor.toolbarFocus"],underline:["bui.editor.underline"],undo:["bui.editor.undo","bui.freehandCanvas.undo"],loading:["bui.fileList.loading","bui.imageGallery.loading","bui.table.loading"],removeHint:["bui.fileList.removeHint"],selectImage:["bui.imageDropZone.selectImage"],delete:["bui.imageGallery.delete"],goToPage:["bui.pagination.goToPage"],nextPage:["bui.pagination.nextPage","bui.taggedPagination.nextPage"],pageXofY:["bui.pagination.pageXofY"],prevPage:["bui.pagination.prevPage","bui.taggedPagination.prevPage"],clear:["bui.select.clear"],search:["bui.select.search"],completed:["bui.stepper.completed"],label:["bui.stepper.label"],step:["bui.stepper.step"],remove:["bui.tag.remove"],collapse:["bui.treeView.collapse"],expand:["bui.treeView.expand"],rename:["bui.treeView.rename"],paused:["bui.useMedia.paused"],playing:["bui.useMedia.playing"]};export{e as a,i as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b as b$1,d,e,c as c$1}from'./chunk-
|
|
1
|
+
import {b as b$1,d,e,c as c$1}from'./chunk-5ILCVLWY.mjs';import {a as a$2}from'./chunk-EFFODO2N.mjs';import {a,b as b$2}from'./chunk-SZTFMBPY.mjs';import {a as a$3}from'./chunk-DIL5HL6K.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-K5RYVERS.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import E,{useMemo,useCallback}from'react';import {Time,toZoned,toTime,GregorianCalendar,toCalendarDateTime,today,getLocalTimeZone}from'@internationalized/date';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a 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-5W6G3ZUT.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$2}from'./chunk-2JGVUCP5.mjs';import {a as a$6}from'./chunk-E3FP4B
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var R="_1yep5z6jb _1yep5z6jc _1yep5z6jd",x=a({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),z=a({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6ey _1yep5z6lq _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z611h"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61o6"],[{isSelected:true,isDisabled:true},"_1yep5z61o6"],[{isSelected:false,isDisabled:true},"_1yep5z61o4"]]}),C=a({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var N=h.forwardRef(({className:P,count:V,style:D,size:t="md",icon:H,"data-block-id":I,"data-block-class":O,...
|
|
10
|
+
var R="_1yep5z6jb _1yep5z6jc _1yep5z6jd",x=a({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),z=a({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6ey _1yep5z6lq _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z611h"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61o6"],[{isSelected:true,isDisabled:true},"_1yep5z61o6"],[{isSelected:false,isDisabled:true},"_1yep5z61o4"]]}),C=a({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var N=h.forwardRef(({className:P,count:V,style:D,size:t="md",icon:H,"data-block-id":I,"data-block-class":O,...a},T)=>{let l={isRequired:false},j=H||(t==="md"?CheckmarkIcon:CheckmarkIcon$1);!a["aria-label"]&&!a["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let s=h.useRef(null),d=a$1({...a,...l}),{inputProps:F,isPressed:w,isDisabled:r,isReadOnly:i,isSelected:c$1}=a$2({...a,...l},d,s),{focusProps:M,isFocused:q,isFocusVisible:n}=a$3(),{hoverProps:A,isHovered:b$1}=a$4({isDisabled:r}),B=a$5({"data-block-id":I,"data-block-class":O,"data-focused":q,"data-focus-visible":n,"data-disabled":r,"data-hovered":b$1,"data-pressed":w,"data-selected":c$1});return jsxs("label",{ref:T,style:D,className:a$7(R,"BaselineUI-Reaction",P),...B,children:[jsx(b,{children:jsx("input",{...c(F,M),ref:s})}),jsxs("div",{...A,className:x({isSelected:c$1,isFocusVisible:n,isHovered:b$1,isReadOnly:i,isDisabled:r}),children:[jsx("div",{className:C({isDisabled:r,isReadOnly:i}),children:jsx(j,{size:t==="md"?20:16})}),jsx("div",{className:z({isSelected:d.isSelected,isDisabled:r,isReadOnly:i,size:t}),children:jsx(a$6,{value:V})})]})]})});N.displayName="Reaction";export{N as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-OBEPT4LR.mjs';import {a as a$3}from'./chunk-O6PPXOEX.mjs';import {a as a$2}from'./chunk-TLU2GNUT.mjs';import {b,c}from'./chunk-IDIZSV2Y.mjs';import {b as b$1}from'./chunk-K5RYVERS.mjs';import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {PauseIcon,PlayIcon}from'@baseline-ui/icons/24';import i from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-DIL5HL6K.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {XIcon,CheckmarkIcon,CircleFilledIcon,ErrorCircleIcon,WarningIcon}from'@baseline-ui/icons/16';import {themeVars}from'@baseline-ui/tokens';import h 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$m}from'./chunk-WDWBYTJG.mjs';import {a as a$a}from'./chunk-I7SMG6PT.mjs';import {a as a$3}from'./chunk-SVV6DLJH.mjs';import {a as a$c,b as b$4}from'./chunk-KQOXSF4J.mjs';import {b as b$6,c as c$4}from'./chunk-MHAPHPNN.mjs';import {a as a$2}from'./chunk-KT4FTBJ2.mjs';import {a as a$7,b as b$3,g,d,e as e$1,f,h as h$2}from'./chunk-6DYTFYPO.mjs';import {a as a$g}from'./chunk-TAT552A5.mjs';import {b as b$1}from'./chunk-XAM3AXXK.mjs';import {i,l,p,j,n,k,h as h$1,d as d$1,g as g$1,a as a$i}from'./chunk-6Z3GYFG5.mjs';import {a as a$o}from'./chunk-LDWNE2JT.mjs';import {a as a$l}from'./chunk-TLU2GNUT.mjs';import {a as a$p}from'./chunk-6GV3YWV7.mjs';import {c as c$3,b as b$8}from'./chunk-IDIZSV2Y.mjs';import {a as a$k}from'./chunk-DIL5HL6K.mjs';import {a as a$n}from'./chunk-OPIPJTLG.mjs';import {a as a$6}from'./chunk-GMALMQWI.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$7}from'./chunk-KG2EHFYA.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$b}from'./chunk-K5RYVERS.mjs';import {a as a$d}from'./chunk-NQIZ3U7Q.mjs';import {e,c,h,b as b$2,a as a$e}from'./chunk-RINS2TBF.mjs';import {k as k$1,l as l$1}from'./chunk-TZGK36KC.mjs';import {a as a$j}from'./chunk-Y2MIU76N.mjs';import {a as a$1}from'./chunk-FPM5UJRF.mjs';import {a as a$4}from'./chunk-STMDFIUL.mjs';import {a as a$9}from'./chunk-B3EZOXNU.mjs';import {a as a$8}from'./chunk-RT4LMB6X.mjs';import {c as c$1,b as b$5}from'./chunk-3WKDIXCM.mjs';import {a as a$5}from'./chunk-SVIYLH7R.mjs';import {c as c$2}from'./chunk-ETM4MNG4.mjs';import {a as a$f}from'./chunk-JQQGRJ5J.mjs';import {a as a$h}from'./chunk-4QEH5CGK.mjs';import Bt,{createContext,forwardRef,useRef,useEffect,useContext,useState,useMemo,useCallback,isValidElement}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightIcon}from'@baseline-ui/icons/8';import {DragIndicatorIcon}from'@baseline-ui/icons/12';import {themeVars,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
|
+
function he(t,o,e){let{gridProps:r}=b$6(t,o,e);return r.role="treegrid",{gridProps:r}}var bt={"ar-AE":{collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{collapse:"Skjul",expand:"Udvid"},"de-DE":{collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{expand:"Expand",collapse:"Collapse"},"es-ES":{collapse:"Contraer",expand:"Expandir"},"et-EE":{collapse:"Ahenda",expand:"Laienda"},"fi-FI":{collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{collapse:"Comprimi",expand:"Espandi"},"ja-JP":{collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{collapse:"Skjul",expand:"Utvid"},"nl-NL":{collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{collapse:"Recolher",expand:"Expandir"},"pt-PT":{collapse:"Colapsar",expand:"Expandir"},"ro-RO":{collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};function pe(t,o,e){let{node:r}=t,n=c$4(t,o,e),a=n.rowProps["aria-expanded"]===true,s=b$7(bt,"@react-aria/tree"),c=a$j({"aria-label":a?s.format("collapse"):s.format("expand"),"aria-labelledby":n.rowProps.id}),p={onPress:()=>{n.isDisabled||(o.toggleKey(r.key),o.selectionManager.setFocused(true),o.selectionManager.setFocusedKey(r.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};return {...n,expandButtonProps:p}}var Pe=class t extends g$1{expandedKeys=new Set;withExpandedKeys(o,e){let r=this.clone();return r.expandedKeys=e,t.cloneAncestorSections(e,o,r),t.cloneAncestorSections(o,e,r),r.frozen=this.frozen,r}static cloneAncestorSections(o,e,r){for(let n of o)if(!e.has(n)){let a=n;for(;a!=null;){let s=r.getItem(a);if(s?.type==="section"){r.keyMap.set(a,s.clone());break}else a=s?.parentKey??null;}}}*[Symbol.iterator](){let o=this.getFirstKey(),e=o!=null?this.getItem(o):null;for(;e;)if(yield e,e.type==="section")e=e.nextKey!=null?this.getItem(e.nextKey):null;else {let r=this.getKeyAfter(e.key);e=r!=null?this.getItem(r):null;}}getLastKey(){let o=this.lastKey;if(o==null)return null;let e=this.getItem(o);for(;e?.lastChildKey!=null&&(e.type!=="item"||this.expandedKeys.has(e.key));)e=this.getItem(e.lastChildKey);return e?.key}getKeyAfter(o){let e=this.getItem(o);if(!e)return null;if((this.expandedKeys.has(e.key)||e.type!=="item")&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.getItem(e.parentKey);else return null}return null}getKeyBefore(o){let e=this.getItem(o);if(!e)return null;if(e.prevKey!=null){for(e=this.getItem(e.prevKey);e&&(e.type!=="item"||this.expandedKeys.has(e.key))&&e.lastChildKey!=null;)e=this.getItem(e.lastChildKey);return e?.key??null}return e.parentKey}getChildren(o){let e=this;return {*[Symbol.iterator](){let r=e.getItem(o),n=r?.firstChildKey!=null?e.getItem(r.firstChildKey):null;if(r&&r.type==="section"&&n)for(;n&&n.key!==r.nextKey;){yield e.getItem(n.key);let a=e.getKeyAfter(n.key);n=a!=null?e.getItem(a):null;}else for(;n;)yield n,n=n.nextKey!=null?e.getItem(n.nextKey):null;}}}getTextValue(o){let e=this.getItem(o);return e?e.textValue:""}},Pt=createContext(null),fe=createContext(null),Re=forwardRef(function(o,e$1){return [o,e$1]=e(o,e$1,Pt),jsx(i,{content:jsx(l,{...o}),createCollection:()=>new Pe,children:r=>jsx(zt,{props:o,collection:r,treeRef:e$1})})}),Dt={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function zt({props:t,collection:o,treeRef:e}){let{dragAndDropHooks:r}=t,{direction:n}=b(),a$8=a({usage:"search",sensitivity:"base"}),s=!!r?.useDraggableCollectionState,c$2=!!r?.useDroppableCollectionState,p$1=useRef(s),D=useRef(c$2);useEffect(()=>{p$1.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),D.current!==c$2&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");},[s,c$2]);let{selectionMode:y="none",expandedKeys:S,defaultExpandedKeys:m,onExpandedChange:h$1,disabledBehavior:x="all"}=t,{CollectionRoot:P,isVirtualized:I,layoutDelegate:b$4,dropTargetDelegate:M}=useContext(p),[T,L]=a$1(S?new Set(S):void 0,m?new Set(m):new Set,h$1),[C,N]=useState(o),[E,v]=useState(T),[K,k]=useState(()=>o.withExpandedKeys(E,T));(!qt(E,T)||o!==C)&&(k(o.withExpandedKeys(E,T)),N(o),v(T));let l=a$2({...t,selectionMode:y,expandedKeys:T,onExpandedChange:L,collection:K,children:void 0,disabledBehavior:x}),{gridProps:i}=he({...t,isVirtualized:I,layoutDelegate:b$4},l,e),g$1,u,f,A=false,j=null,_=useRef(null);if(s&&r){g$1=r.useDraggableCollectionState({collection:l.collection,selectionManager:l.selectionManager,preview:r.renderDragPreview?_:void 0}),r.useDraggableCollection({},g$1,e);let te=r.DragPreview;j=r.renderDragPreview?jsx(te,{ref:_,children:r.renderDragPreview}):null;}let[J]=useState(()=>new a$3);if(c$2&&r){u=r.useDroppableCollectionState({collection:l.collection,selectionManager:l.selectionManager});let te=r.dropTargetDelegate||M||new r.ListDropTargetDelegate(l.collection,e,{direction:n});J.setup(te,l,n);let ge=new b$1({collection:l.collection,collator:a$8,ref:e,disabledKeys:l.selectionManager.disabledKeys,disabledBehavior:l.selectionManager.disabledBehavior,direction:n,layoutDelegate:b$4});f=r.useDroppableCollection({keyboardDelegate:ge,dropTargetDelegate:J,onDropActivate:V=>{if(V.target.type==="item"){let w=V.target.key,$=l.collection.getItem(w),_t=T.has(w);$&&$.hasChildNodes&&(!_t||r?.isVirtualDragging?.())&&l.toggleKey(w);}},onKeyDown:V=>{let w=u?.target;if(w&&w.type==="item"&&w.dropPosition==="on"){let $=l.collection.getItem(w.key);(V.key===Dt.expand[n]&&$?.hasChildNodes&&!l.expandedKeys.has(w.key)||V.key===Dt.collapse[n]&&$?.hasChildNodes&&l.expandedKeys.has(w.key))&&l.toggleKey(w.key);}}},u,e),A=u.isDropTarget({type:"root"});}let Q=!!(s&&!g$1?.isDisabled),{focusProps:ee,isFocused:U,isFocusVisible:X}=a$4(),B={isEmpty:l.collection.size===0,isFocused:U,isFocusVisible:X,isDropTarget:A,selectionMode:l.selectionManager.selectionMode,allowsDragging:!!Q,state:l},Nt=c({...t,children:void 0,defaultClassName:"react-aria-Tree",values:B}),Ae=null;if(l.collection.size===0&&t.renderEmptyState){let{isEmpty:te,...ge}=B,V=t.renderEmptyState({...ge});Ae=jsx("div",{role:"row",style:{display:"contents"},...{"aria-level":1},children:jsx("div",{role:"gridcell",style:{display:"contents"},children:V})});}let Ot=a$5(t,{global:true});return jsxs(Fragment,{children:[jsx(a$6,{children:jsxs(h.div,{...c$1(Ot,Nt,i,ee,f?.collectionProps),ref:e,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,"data-focused":U||void 0,"data-drop-target":A||void 0,"data-focus-visible":X||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode,"data-allows-dragging":!!Q||void 0,children:[jsxs(b$2,{values:[[fe,l],[a$7,{dragAndDropHooks:r,dragState:g$1,dropState:u}],[b$3,{render:Gt}]],children:[c$2&&jsx(Wt,{}),jsx(g,{children:jsx(P,{collection:l.collection,persistedKeys:e$1(l.selectionManager,r,u),scrollRef:e,renderDropIndicator:d(r,u)})})]}),Ae]})}),j]})}var Ie=class extends a$i{static type="content"},Se=j(Ie,function(o){let e=useContext(It),r=c({children:o.children,values:e});return jsx(p.Provider,{value:n,children:r.children})}),It=createContext(null),Ce=class extends a$i{static type="item"},Ee=k(Ce,(t,o,e)=>{let r=useContext(fe);o=a$8(o);let{dragAndDropHooks:n,dragState:a,dropState:s}=useContext(a$7),c$3=a&&!(a.isDisabled||a.selectionManager.isDisabled(e.key)),{rowProps:p,gridCellProps:D,expandButtonProps:y,descriptionProps:S,...m}=pe({node:e,shouldSelectOnPressUp:!!a,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},r,o),h$3=p["aria-expanded"]===true,x=t.hasChildItems||[...r.collection.getChildren(e.key)].length>1,P=p["aria-level"]||1,{hoverProps:I,isHovered:b}=a$9({isDisabled:!m.allowsSelection&&!m.hasAction&&!c$3,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{isFocusVisible:M,focusProps:T}=a$4(),{isFocusVisible:L,focusProps:C}=a$4({within:true}),{checkboxProps:N}=a$a({key:e.key},r),E=null;a&&n&&(E=n.useDraggableItem({key:e.key,hasDragButton:true},a,o));let v=null,K=useRef(null),k=useRef(null),l=useRef(null),{visuallyHiddenProps:i}=a$b();s&&n&&(v=n.useDropIndicator({target:{type:"item",key:e.key,dropPosition:"on"},activateButtonRef:l},s,k));let g=a&&a.isDragging(e.key),u=v?.isDropTarget,f$1=r.selectionManager.selectionMode,A=r.selectionManager.selectionBehavior,j=Bt.useMemo(()=>({...m,isHovered:b,isFocusVisible:M,isExpanded:h$3,hasChildItems:x,level:P,selectionMode:f$1,selectionBehavior:A,isFocusVisibleWithin:L,state:r,id:e.key,allowsDragging:!!a,isDragging:g,isDropTarget:u}),[m,b,M,h$3,x,P,L,r,e.key,a,g,u,A,f$1]),_=c({...t,id:void 0,children:e.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":P},values:j});useEffect(()=>{!e.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.");},[e.textValue]),useEffect(()=>{x&&!K.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.");},[]);let J=useRef(null);useEffect(()=>{a&&!J.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let Q=h$1({items:r.collection.getChildren(e.key),children:B=>{switch(B.type){case "content":return B.render(B);case "loader":case "item":return jsx(Fragment,{});default:throw new Error("Unsupported element type in TreeRow: "+B.type)}}}),ee=c$2(),U=a$5(t,{global:true});delete U.id,delete U.onClick;let X=f(E,n,o);return jsxs(Fragment,{children:[v&&!v.isHidden&&jsx("div",{role:"row","aria-level":p["aria-level"],"aria-expanded":p["aria-expanded"],"aria-label":v.dropIndicatorProps["aria-label"],children:jsxs("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"},children:[jsx("div",{role:"button",...i,...v.dropIndicatorProps,ref:k}),p["aria-expanded"]!=null?jsx("div",{role:"button",...i,id:ee,"aria-label":y["aria-label"],"aria-labelledby":`${ee} ${p.id}`,tabIndex:-1,ref:l}):null]})}),jsx(h.div,{...c$1(U,p,T,I,C,X.itemProps),..._,ref:o,"data-expanded":x&&h$3||void 0,"data-has-child-items":x||void 0,"data-level":P,"data-selected":m.isSelected||void 0,"data-disabled":m.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":M||void 0,"data-pressed":m.isPressed||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode,"data-allows-dragging":!!a||void 0,"data-dragging":g||void 0,"data-drop-target":u||void 0,children:jsx("div",{...D,style:{display:"contents"},children:jsx(b$2,{values:[[a$c,{slots:{[a$e]:{},selection:N}}],[b$4,{slots:{[a$e]:{},selection:N}}],[a$d,{slots:{[a$e]:{},chevron:{...y,ref:K},drag:{...X.dragButtonProps,ref:J}}}],[It,{...j}],[h$2,{isSelected:m.isSelected}]],children:Q})})})]})});j(d$1,function(o,e,r){let{isVirtualized:n}=useContext(p),a=useContext(fe),{isLoading:s,onLoadMore:c$2,scrollOffset:p$1,...D}=o,y=useRef(null),S=useMemo(()=>({onLoadMore:c$2,collection:a?.collection,sentinelRef:y,scrollOffset:p$1}),[c$2,p$1,a?.collection]);k$1(S,y),e=a$8(e);let{rowProps:m,gridCellProps:h$1}=pe({node:r},a,e),x=m["aria-level"]||1,P={role:"row","aria-level":m["aria-level"]},I=c({...D,id:void 0,children:r.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:x}}),b={};return n&&(b={display:"contents"}),jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:y,style:{position:"absolute",height:1,width:1}})}),s&&I.children&&jsx(h.div,{ref:e,...c$1(a$5(o),P),...I,"data-level":x,children:jsx("div",{...h$1,style:b,children:I.children})})]})});function Gt(t,o){o=a$8(o);let{dragAndDropHooks:e,dropState:r}=useContext(a$7),n=useRef(null),{dropIndicatorProps:a,isHidden:s,isDropTarget:c}=e.useDropIndicator(t,r,n);if(s)return null;let p=r&&t.target.type==="item"?(r.collection.getItem(t.target.key)?.level||0)+1:1;return jsx(Ut,{...t,dropIndicatorProps:a,isDropTarget:c,ref:o,buttonRef:n,level:p})}function jt(t,o){let{dropIndicatorProps:e,isDropTarget:r,buttonRef:n,level:a,...s}=t,{visuallyHiddenProps:c$1}=a$b(),p=c({...s,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":a},values:{isDropTarget:r}});return jsx(h.div,{...p,role:"row","aria-level":a,ref:o,"data-drop-target":r||void 0,children:jsxs("div",{role:"gridcell",children:[jsx("div",{...c$1,role:"button",...e,ref:n}),p.children]})})}var Ut=forwardRef(jt);function Wt(){let{dragAndDropHooks:t,dropState:o}=useContext(a$7),e=useRef(null),{dropIndicatorProps:r}=t.useDropIndicator({target:{type:"root"}},o,e),n=o.isDropTarget({type:"root"}),{visuallyHiddenProps:a}=a$b();return !n&&r["aria-hidden"]?null:jsx("div",{role:"row","aria-hidden":r["aria-hidden"],style:{position:"absolute"},children:jsx("div",{role:"gridcell",children:jsx("div",{role:"button",...a,...r,ref:e})})})}function qt(t,o){if(t.size!==o.size)return false;for(let e of t)if(!o.has(e))return false;return true}var Ct=({actionsPosition:t,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:r,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:p,onRename:D,renameLabel:y,renderItemTitle:S,renderItem:m})=>Object.values({actionsPosition:t,onPrimaryAction:o,onSecondaryAction:e,primaryActionIcon:r,secondaryActionIcon:n,primaryActionAriaLabel:a,secondaryActionAriaLabel:s,expandLabel:c,collapseLabel:p,onRename:D,renameLabel:y,renderItemTitle:S,renderItem:m});var wt="_10dw1p98",Rt="_10dw1p96",St=["_10dw1p9b","_10dw1p9c"],Et="_10dw1p97",Lt=a$f({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6m6 _1yep5z6lt _1yep5z6lq",variantClassNames:{isSelected:{true:"_1yep5z612u"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isDropTarget:{true:"_1yep5z612t _1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"},isFocusVisible:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61pc _1yep5z61rl _1yep5z61va _1yep5z61v9 _1yep5z61vd"]]}),kt="_10dw1p99";function At(t,o){if(typeof t=="function"&&!t.prototype?.isReactComponent){let e=t(o);return isValidElement(e)?t:e}return t}var ke=({item:t,id:o,value:e,...r})=>{let{onPrimaryAction:n,onSecondaryAction:a,actionsPosition:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:y,expandLabel:S,collapseLabel:m,onRename:h,renameLabel:x,renderItemTitle:P,renderItem:I}=r,{formatMessage:b}=b$8(),{renamingKey:M,setRenamingKey:T}=useContext(Me),L=M===t.id,C=!!t.children?.length,N=t.icon,E=!!h,v=useRef(false),K=useMemo(()=>{let i=At(c,t.id),g=At(p,t.id),u=typeof D=="function"?D(t.id):D,f=typeof y=="function"?y(t.id):y;return i||g?jsxs(a$k,{display:"flex",flexDirection:"row",style:s==="end"?{marginInlineStart:"auto"}:void 0,children:[i?jsx(a$l,{icon:i,"aria-label":u,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{n?.(t.id);},tooltip:true}):null,g?jsx(a$l,{icon:g,"aria-label":f,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{a?.(t.id);},tooltip:true}):null]}):null},[s,c,t.id,p,D,y,n,a]),k=useCallback(i=>{a$m(i)||(i.key==="Enter"?(v.current=true,h?.({key:t.id,value:i.target.value}),T(null)):i.key==="Escape"&&(v.current=true,T(null)));},[t.id,h,T]),l$1=useCallback(()=>P?P(t):t.label,[P,t]);return jsxs(Ee,{id:t.id,value:t,textValue:t.label,"data-key":t.id,className:I?a$h(Rt,"BaselineUI-TreeView-Row"):i=>a$h(Et,Lt({isHovered:i.isHovered,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isRenaming:L,isDropTarget:i.isDropTarget}),"BaselineUI-TreeView-Row"),children:[jsx(Se,{children:i=>{let g=i.allowsDragging?jsx(a$n,{slot:"drag",icon:DragIndicatorIcon,size:"xs",variant:"secondary",className:"BaselineUI-TreeView-DragHandle","data-testid":"tree-view-drag-handle"}):null;if(I){let f=I(t,{level:i.level,isExpanded:i.isExpanded,hasChildItems:i.hasChildItems,isSelected:i.isSelected,isFocusVisible:i.isFocusVisible,isFocusVisibleWithin:i.isFocusVisibleWithin,isHovered:i.isHovered,isPressed:i.isPressed,isDropTarget:!!i.isDropTarget,isDragging:!!i.isDragging,toggleExpanded:()=>{i.state.toggleKey(i.id);}});return g?jsxs(a$k,{display:"flex",flexDirection:"row",alignItems:"center",children:[g,jsx("div",{style:{flex:1,minWidth:0},children:f})]}):f}let u=i.level-1;return jsxs(Fragment,{children:[g,s==="start"?K:null,jsxs(a$k,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(a$k,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${u*2} * ${themeVars.spacing.lg})`},children:[jsx(a$n,{icon:ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{i.state.toggleKey(i.id);},"aria-label":i.isExpanded?m??b(Le.collapse):S??b(Le.expand),style:{visibility:C?"visible":"hidden"},className:a$h(wt,"BaselineUI-TreeView-ExpansionToggle")}),N?jsx(N,{size:16,style:{color:themeVars.color.icon.interactive.disabled}}):null]}),jsxs(a$k,{paddingLeft:"sm",paddingY:L?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:f=>{E&&(f.stopPropagation(),f.preventDefault(),T(t.id));},children:[L?jsx("div",{onClick:f=>{f.stopPropagation();},children:jsx(a$o,{defaultValue:t.label,autoFocus:true,onFocus:()=>{v.current=false;},onBlur:f=>{if(v.current){v.current=false;return}h?.({key:t.id,value:f.target.value}),T(null);},"aria-label":x??b(Le.rename),onKeyDown:k,className:"BaselineUI-TreeView-RenameInput"})}):jsx(a$p,{type:"label",size:"sm",className:a$h(sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:l$1()}),t.description?jsx(a$p,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:t.description}):null]})]}),s==="end"?K:null]})}}),jsx(l,{items:t.children,children:i=>jsx(ke,{item:i,...r})})]})},Le=c$3({expand:{id:"bui.treeView.expand",defaultMessage:"Expand"},collapse:{id:"bui.treeView.collapse",defaultMessage:"Collapse"},rename:{id:"bui.treeView.rename",defaultMessage:"Rename"}});var Me=createContext({renamingKey:null,setRenamingKey:()=>{}}),Ht=Bt.forwardRef(({className:t,style:o,"data-block-id":e,"data-block-class":r,items:n,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:y,actionsPosition:S="start",expandLabel:m,collapseLabel:h,onRename:x,renameLabel:P,onAction:I,renderItemTitle:b,dragAndDropHooks:M,keyboardNavigationBehavior:T,renderItem:L,...C},N)=>{let E=useRef(null);a$g({ref:E,isDisabled:!M});let[v,K]=useState(null),k=L!==void 0,l=S==="start"?[c,p].filter(Boolean).length:0;useEffect(()=>{let u=E.current;if(!u||!x||k)return;let f=A=>{if(A.key==="F2"){let _=u.querySelector("[data-focused='true']")?.dataset.key;_&&(A.preventDefault(),A.stopPropagation(),K(_));}};return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f);}},[x,k]);let i=useMemo(()=>({renamingKey:v,setRenamingKey:K}),[v]),g={actionsPosition:S,onPrimaryAction:a,onSecondaryAction:s,primaryActionIcon:c,secondaryActionIcon:p,primaryActionAriaLabel:D,secondaryActionAriaLabel:y,expandLabel:m,collapseLabel:h,onRename:x,renameLabel:P,renderItemTitle:b,renderItem:L};return jsx(Me.Provider,{value:i,children:jsx(Re,{ref:b$5(N,E),items:n.children||[],selectionMode:"multiple",expandedKeys:C.expandedKeys,defaultExpandedKeys:C.defaultExpandedKeys,onExpandedChange:C.onExpandedChange,selectedKeys:C.selectedKeys,disallowEmptySelection:C.disallowEmptySelection,onAction:I,dragAndDropHooks:M,keyboardNavigationBehavior:T,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"data-block-id":e,"data-block-class":r,style:o,className:a$h(t,!k&&kt,!k&&St[l-1],"BaselineUI-TreeView"),dependencies:Ct(g),children:u=>jsx(ke,{item:u,...g})})})});Ht.displayName="TreeView";export{Ht as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-O23QVPUT.mjs';import {a as a$7,b as b$2}from'./chunk-ZC5WXVNV.mjs';import {h as h$2,g}from'./chunk-UZ672WDX.mjs';import {a as a$5}from'./chunk-X3ACY7IY.mjs';import {a as a$3}from'./chunk-BA5OA5DY.mjs';import {c}from'./chunk-BGQRLALS.mjs';import {b}from'./chunk-VQ2K6Q3G.mjs';import {b as b$1}from'./chunk-YDUKC7QS.mjs';import {a as a$1}from'./chunk-KX7WG3L4.mjs';import {b as b$3,a as a$8}from'./chunk-I7LPPUZS.mjs';import {a as a$a}from'./chunk-22MA6EYO.mjs';import {a as a$9}from'./chunk-22VRCVTH.mjs';import {a as a$2}from'./chunk-66CUIXA6.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {b as b$4,h as h$1,i}from'./chunk-SD43KVTU.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import h,{useContext,useMemo,useEffect,useState,useRef}from'react';import {jsx,jsxs}from'react/jsx-runtime';import {motion,AnimatePresence}from'motion/react';import {themeVars}from'@baseline-ui/tokens';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var x=h.createContext({state:null,triggerProps:{},overlayProps:{}}),Re=({children:e,...o})=>{let t=a$9(o),{triggerProps:n,overlayProps:i}=a$a({type:"dialog"},t),a=useMemo(()=>({state:t,triggerProps:n,overlayProps:i}),[t,n,i]);return jsx(x.Provider,{value:a,children:e})};Re.displayName="Modal";function L(e,o,t){let{overlayProps:n,underlayProps:i}=a$7({...e,isOpen:o.isOpen,onClose:o.close},t);b$2({isDisabled:!o.isOpen,root:e.root,UNSTABLE_overrideFocus:e.UNSTABLE_overrideFocus},t),c();let{isEntering:a}=e;return useEffect(()=>{if(o.isOpen&&t.current)return a?b$3(t.current):a$8([t.current],{shouldUseInert:e.shouldUseInert??false,root:e.root})},[o.isOpen,a,t,e.root,e.shouldUseInert]),{modalProps:c$1(n),underlayProps:i}}function le(e,o,t){let[n,i$1]=useState({}),a=useRef(false),[b,g$1]=useState(null),{container:p,shouldContainOverlays:d,isContainerPositioned:v,containerHeight:c,portalContainer:O}=useContext(b$1);useEffect(()=>{if(!e)return;let r=b$4(e),m=r.visualViewport,y=()=>{let M=t?m?.height??r.innerHeight:r.innerHeight,z=r.innerHeight-M;if(a.current=t?z>60:false,a.current){let s=i(e.ownerDocument);s&&g(s)&&s.scrollIntoView({behavior:"smooth",block:"center"});}if(o)i$1({maxHeight:(M||0)*.8,bottom:z});else {let s=`${M||0}px`,f=d?`min(${s}, ${c?c+"px":s})`:s;i$1({maxHeight:`calc(${f} - (2 * ${themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:a.current?`calc(env(safe-area-inset-top) + ${themeVars.spacing.xl})`:void 0});}};return y(),m?.addEventListener("resize",y),r.addEventListener("resize",y),()=>{m?.removeEventListener("resize",y),r.removeEventListener("resize",y);}},[e,o,d,t,c]);let C=O&&!h$1(p,O);useEffect(()=>{if(!p||!d||v&&!C)return;let r=()=>{p&&g$1(h$2(p));};r();let m=new ResizeObserver(()=>{r();});return m.observe(p),()=>{m.disconnect();}},[p,d,v,C]);let u=useMemo(()=>({...n,overflow:"auto",position:"relative"}),[n]),T=useMemo(()=>{if(!o&&a.current)return {alignItems:"flex-start"};if(d&&(!v||C)){let r=b||(p?h$2(p):{x:0,y:0,height:0,width:0});return {position:"absolute",left:r.x,top:r.y,height:r.height,width:r.width}}return {}},[o,a.current,p,v,d,b,C]);return {dialogStyle:u,containerStyle:T}}var pe="aml2vl8 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6iz _1yep5z6j0 _1yep5z6j1",me="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",de=a({defaultClassName:"aml2vl3 _1yep5z6lw _1yep5z6lx _1yep5z6lz _1yep5z6ly _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{enableDrawer:{false:"_1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kt _1yep5z6ku _1yep5z6kv",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),ce=a({defaultClassName:"aml2vl0 _1yep5z6lw _1yep5z6lx _1yep5z6lz _1yep5z6ly _1yep5z6gj",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var I=h.forwardRef(({children:e,className:o,style:t,isDismissable:n=true,isKeyboardDismissDisabled:i=false,portalContainer:a,disableAnimation:b$2,enableDrawer:g=false,"data-block-id":p,"data-block-class":d,shouldCloseOnInteractOutside:v,UNSAFE_enableInert:c,disableFocusManagement:O},C)=>{let{state:u}=h.useContext(x),[T,r]=h.useState(true),m=h.useRef(null),[y,M]=h.useState(null),{shouldHandleVirtualKeyboard:z}=useContext(b),{shouldContainOverlays:s,container:f}=useContext(b$1),Me=a$1(),l=typeof g=="boolean"&&g||g==="auto"&&Me==="mobile";a$2(u,"ModalContent must be a child of Modal");let be=typeof n=="function"?n(l):n,ge=typeof i=="function"?i(l):i,Pe=typeof c=="function"?c(l):c??false,_=a$3(a),N=a$4(_),xe=useMemo(()=>s&&f?f:_?.ownerDocument?.body??f?.ownerDocument?.body??(typeof document>"u"?void 0:document.body),[s,f,_]),{modalProps:he,underlayProps:Oe}=L({isDismissable:T&&be,shouldCloseOnInteractOutside:R=>!h$1(f,R)&&s&&!h$1(_,R)?false:v?.(R)??true,isKeyboardDismissDisabled:ge,root:xe,shouldUseInert:Pe},u,N),{dialogStyle:V,containerStyle:ze}=le(y,l,z),_e=useMemo(()=>({isDrawer:l,closeDrawer:u.close,dialogStyle:V,dialogRef:m,setDialogElement:M,isWithinModal:true}),[l,u.close,V,m,M]),Se=useMemo(()=>({setIsPopoverSafelyClosed:r}),[r]),B={duration:.3,type:"tween",ease:"easeOut"},De={type:"spring",duration:.3},we={open:{opacity:1,transform:l?"translateY(0%)":"scale(1)"},closed:b$2?{opacity:1,transform:l?"translateY(0%)":"scale(1)"}:{opacity:0,transform:l?"translateY(100%)":"scale(0.95)"}};return jsx(fe.Provider,{value:_e,children:jsx(ve.Provider,{value:Se,children:jsxs(a$5,{className:a$6(de({enableDrawer:l,shouldContainOverlays:s}),o),"data-block-id":p,"data-block-class":d,style:{...t,...ze},portalContainer:a,disableFocusManagement:O,ref:C,children:[jsx(motion.div,{...Oe,variants:{open:{opacity:1},closed:{opacity:b$2?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:B,className:a$6(ce({shouldContainOverlays:s}),"BaselineUI-Modal-Underlay")}),jsx(motion.div,{...he,ref:N,"data-drawer":l||void 0,className:a$6(l?pe:me,"BaselineUI-Modal-Content"),variants:we,transition:l?B:De,initial:"closed",animate:"open",exit:"closed",children:typeof e=="function"?e(u):e})]})})})});I.displayName="ModalContentCore";var fe=h.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),ve=h.createContext({setIsPopoverSafelyClosed:()=>{}}),Ve=h.forwardRef(({shouldAnimateOnMount:e=true,disableAnimation:o,...t},n)=>{let{state:i}=h.useContext(x);return jsx(AnimatePresence,{initial:e&&!o,children:i?.isOpen?jsx(I,{...t,disableAnimation:o,ref:n}):null})});Ve.displayName="ModalContent";export{x as a,Re as b,fe as c,ve as d,Ve as e};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {b as b$1}from'./chunk-4EAXDHSV.mjs';import {a as a$1}from'./chunk-2UUKKXBD.mjs';import {a}from'./chunk-KX7WG3L4.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {c}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {MotionConfig,MotionGlobalConfig}from'motion/react';export{MotionGlobalConfig as f}from'motion/react';import {lightTheme,themes,themeVars}from'@baseline-ui/tokens';import {assignInlineVars}from'@vanilla-extract/dynamic';import O,{createContext,useMemo,useEffect,useState}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
function v(r=typeof window>"u"?void 0:window){let[u,s]=useState("light"),[i,a]=useState(false),[l,n]=useState(false),[p,m]=useState(false);return useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-color-scheme: dark)"),t=o=>{s(o.matches?"dark":"light");};return s(e.matches?"dark":"light"),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-contrast: more)"),t=o=>{a(o.matches);};return a(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-reduced-motion: reduce)"),t=o=>{n(o.matches);};return n(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),useEffect(()=>{if(!r)return;let e=r.matchMedia("(prefers-reduced-transparency: reduce)"),t=o=>{m(o.matches);};return m(e.matches),e.addEventListener("change",t),()=>{e.removeEventListener("change",t);}},[r]),{colorScheme:u,highContrast:i,reducedMotion:l,transparency:p}}var k=createContext({theme:lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true,reducedMotion:"user",minTouchTargetSize:24});var A="var(--hj25q10)";var h={LIGHT:themes.base.light,DARK:themes.base.dark},R=O.forwardRef(({theme:r="system",children:u,setTheme:s,onThemeChange:i,className:a$3,style:l,UNSAFE_domProps:n,"data-block-id":p,"data-block-class":m,reducedMotion:e="user",shouldHandleVirtualKeyboard:t=true,minTouchTargetSize:o=24},U)=>{let{direction:P}=b(),{colorScheme:g,reducedMotion:V,highContrast:D,transparency:G}=v(),f=useMemo(()=>{switch(r){case "system":return g==="light"?h.LIGHT:h.DARK;case "light":return h.LIGHT;case "dark":return h.DARK;default:return r}},[g,r]),{name:N,...K}=f,z=a(),B={"data-theme":N,"data-block-id":p,"data-block-class":m,"data-reduced-motion":e==="user"?V:e==="always","data-high-contrast":D,"data-transparency":G,"data-device":z},q=useMemo(()=>({theme:f,setTheme:y=>{s?.(y),i?.(y);},shouldHandleVirtualKeyboard:t,reducedMotion:e,minTouchTargetSize:o}),[f,s,i,t,e,o]);return useEffect(()=>{s&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[s]),jsx(k.Provider,{value:q,children:jsx(MotionConfig,{reducedMotion:e,children:jsx("div",{...c(n,B),className:a$2(b$1,"BaselineUI-ThemeProvider",a$3),style:{...assignInlineVars(themeVars,K),...assignInlineVars({[a$1]:P==="rtl"?"-1":"1",[A]:`${o}px`}),...l},dir:P,ref:U,children:u})})})});R.displayName="ThemeProvider";function Te(){MotionGlobalConfig.skipAnimations=true;}function Pe(){MotionGlobalConfig.skipAnimations=false;}export{v as a,k as b,R as c,Te as d,Pe as e};
|
|
@@ -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-BA5OA5DY.mjs';import {b as b$2}from'./chunk-BGQRLALS.mjs';import {b,c}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-BA5OA5DY.mjs';import {b as b$2}from'./chunk-BGQRLALS.mjs';import {b,c}from'./chunk-VQ2K6Q3G.mjs';import {b as b$1}from'./chunk-RMUV6NJJ.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import C,{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
|
|
@@ -7,4 +7,4 @@ import {a}from'./chunk-BA5OA5DY.mjs';import {b as b$2}from'./chunk-BGQRLALS.mjs'
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var
|
|
10
|
+
var i=C.forwardRef(({className:m,style:n,children:d,"data-block-id":p,"data-block-class":c$1,portalContainer:P,...f},h)=>{let{theme:u,shouldHandleVirtualKeyboard:y,reducedMotion:T,minTouchTargetSize:v}=useContext(b),b$3=a(),S=b$1();return jsx(b$2,{...f,portalContainer:S?void 0:P??b$3,children:jsx(c,{ref:h,theme:u,shouldHandleVirtualKeyboard:y,reducedMotion:T,minTouchTargetSize:v,style:n,className:a$1("BaselineUI-Portal",m),"data-block-id":p,"data-block-class":c$1,children:d})})});i.displayName="Portal";export{i as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-2JGVUCP5.mjs';import {a as a$1}from'./chunk-7SKQUEHP.mjs';import {a as a$7}from'./chunk-DIL5HL6K.mjs';import {b}from'./chunk-K5RYVERS.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-STMDFIUL.mjs';import {a as a$4}from'./chunk-B3EZOXNU.mjs';import {c as c$1}from'./chunk-3WKDIXCM.mjs';import {c}from'./chunk-ETM4MNG4.mjs';import {a}from'./chunk-JQQGRJ5J.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import T 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 D=a({defaultClassName:"bpklwaa z9nup88",variantClassNames:{isReadOnly:{true:"bpklwab"},isDisabled:{true:"bpklwac"},isSelected:{true:"bpklwad"},isFocused:{true:"bpklwae"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"bpklwaf"]]}),R=a({defaultClassName:"bpklwal",variantClassNames:{isDisabled:{true:"bpklwam"},isSelected:{true:"bpklwan"},isReadOnly:{true:"bpklwao"}},defaultVariants:{},compoundVariants:[]}),P=a({defaultClassName:"bpklwag",variantClassNames:{isDisabled:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),B=a({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"},hasDescription:{true:"bpklwa3"}},defaultVariants:{},compoundVariants:[[{labelPosition:"left",hasDescription:true},"bpklwa4"]]}),I=a({defaultClassName:"bpklwa8",variantClassNames:{isDisabled:{true:"bpklwa9"}},defaultVariants:{},compoundVariants:[]}),L=a({defaultClassName:"bpklwai",variantClassNames:{labelPosition:{top:"bpklwaj",left:"bpklwak"}},defaultVariants:{},compoundVariants:[]}),O=a({defaultClassName:"bpklwa5",variantClassNames:{labelPosition:{top:"bpklwa6",left:"bpklwa7"}},defaultVariants:{},compoundVariants:[]});var H=T.forwardRef(({className:U,description:s,label:o,labelPosition:d="top",statusLabel:r,style:F,"data-block-id":E,"data-block-class":K,...a},j)=>{let w=T.useRef(null),f=c(),k=c(),t=a$1(a),n=!!a.isDisabled,p=!!s&&!!o&&!a["aria-label"]&&!a["aria-labelledby"],z=p?[f,r&&k].filter(Boolean).join(" "):a["aria-labelledby"],{inputProps:M,isPressed:W,labelProps:_,descriptionProps:A}=a$2({...a,children:o,"aria-labelledby":z},t,w),{isFocusVisible:c$2,focusProps:X}=a$3(),{hoverProps:q,isHovered:G}=a$4({isDisabled:a.isDisabled}),J=a$5({"data-block-id":E,"data-block-class":K,"data-focused":c$2,"data-disabled":a.isDisabled,"data-focus-visible":c$2,"data-selected":t.isSelected,"data-readonly":a.isReadOnly,"data-hovered":G,"data-pressed":W}),h=jsx("div",{className:a$6(D({isSelected:t.isSelected,isDisabled:n,isFocused:c$2,isReadOnly:!!a.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:a$6(R({isSelected:t.isSelected,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})}),v=o?jsx("span",{id:p?f:void 0,className:a$6(P({isDisabled:n}),"BaselineUI-Switch-Label"),children:o}):null;return jsxs("label",{...c$1(J,_,q),className:a$6(B({labelPosition:d,hasDescription:!!s}),"BaselineUI-Switch",U),style:F,ref:j,children:[s?jsxs("span",{className:L({labelPosition:d}),children:[v,jsx(a$7,{...A,elementType:"span",className:"BaselineUI-Switch-Description",color:n?"text.interactive.disabled":"text.helper",typography:"label.sm.medium",children:s})]}):v,jsx(b,{children:jsx("input",{...c$1(M,X),ref:w})}),r?jsxs("div",{className:O({labelPosition:d}),children:[jsx("span",{id:p?k:void 0,className:a$6("BaselineUI-Switch-Status-Label",I({isDisabled:n})),children:t.isSelected?r.on:r.off}),h]}):h]})});H.displayName="Switch";export{H as a};
|
|
@@ -7,4 +7,4 @@ import {g,f,h,j}from'./chunk-TZGK36KC.mjs';import {h as h$1,j as j$1}from'./chun
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
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
|
|
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 {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-3IPRT57V.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-DIL5HL6K.mjs';import {a as a$1}from'./chunk-5W6G3ZUT.mjs';import {a}from'./chunk-VDUFLHKK.mjs';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
|