@baseline-ui/core 2.4.0 → 3.0.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/ActionGroup.mjs +1 -1
- package/dist/ActionIconButton.mjs +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.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.mjs +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Drawer.mjs +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/I18nProvider.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 +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/SearchInput.mjs +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/TaggedPagination.mjs +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/Toast.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/{chunk-7ZYMMUDM.mjs → chunk-3X2QM7GV.mjs} +1 -1
- package/dist/{chunk-NA3IF43N.mjs → chunk-4ILKZKTW.mjs} +1 -1
- package/dist/{chunk-YGSCHWU3.mjs → chunk-535OT4US.mjs} +1 -1
- package/dist/{chunk-HHI7CEUP.mjs → chunk-67MPTBBY.mjs} +1 -1
- package/dist/{chunk-O4VZ6XEP.mjs → chunk-7FJMUUHS.mjs} +1 -1
- package/dist/{chunk-VTX6R6KM.mjs → chunk-DM26KBZ3.mjs} +1 -1
- package/dist/{chunk-H7OUUCSA.mjs → chunk-FWAK2OZM.mjs} +1 -1
- package/dist/{chunk-X3OCHEQM.mjs → chunk-GX2IOGYR.mjs} +3 -3
- package/dist/{chunk-XZ2VSOJD.mjs → chunk-H2LXVMBI.mjs} +1 -1
- package/dist/{chunk-N5RZGO7Y.mjs → chunk-HEO2XVRN.mjs} +1 -1
- package/dist/{chunk-BTVDMO5C.mjs → chunk-HJQZW2VO.mjs} +1 -1
- package/dist/chunk-HZHAKW6I.mjs +10 -0
- package/dist/{chunk-2CZ3OV4X.mjs → chunk-K5RKL3WY.mjs} +1 -1
- package/dist/{chunk-H44PBNVX.mjs → chunk-KAYY6L7Y.mjs} +1 -1
- package/dist/{chunk-J5YWAPLN.mjs → chunk-LQB4U6GF.mjs} +1 -1
- package/dist/{chunk-7AQAC6QK.mjs → chunk-LZM6UK3C.mjs} +1 -1
- package/dist/{chunk-IYFTU6IC.mjs → chunk-MHUFXHRU.mjs} +1 -1
- package/dist/{chunk-MIHIAPBG.mjs → chunk-NCADIC3I.mjs} +1 -1
- package/dist/{chunk-P44XZ4PV.mjs → chunk-NKKKKVQ7.mjs} +1 -1
- package/dist/{chunk-OLJWK3LS.mjs → chunk-NMTDGCRA.mjs} +1 -1
- package/dist/{chunk-R32OJDN2.mjs → chunk-O6AE67ZY.mjs} +1 -1
- package/dist/{chunk-S3V4OOC3.mjs → chunk-PR3HWZFH.mjs} +1 -1
- package/dist/{chunk-PBO4SFGS.mjs → chunk-QY3O34WX.mjs} +1 -1
- package/dist/{chunk-X7DI4I2U.mjs → chunk-RELI5YAS.mjs} +1 -1
- package/dist/{chunk-FRZTJBLY.mjs → chunk-S5XX36JC.mjs} +1 -1
- package/dist/{chunk-566SP7NE.mjs → chunk-UMABUZ67.mjs} +1 -1
- package/dist/{chunk-TBSQUJ67.mjs → chunk-VU2PDOBR.mjs} +1 -1
- package/dist/{chunk-U4K44ZHN.mjs → chunk-WDJ4GXWF.mjs} +1 -1
- package/dist/hooks/useI18n.mjs +1 -1
- package/dist/hooks/useMedia.mjs +1 -1
- package/dist/index.d.ts +60 -33
- package/dist/index.js +16 -16
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
- package/sbom.json +13 -13
- package/dist/chunk-GFLVN5JQ.mjs +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$9}from'./chunk-TEQE6WCH.mjs';import {a as a$3}from'./chunk-GXOXYPQQ.mjs';import {a as a$b,b as b$3}from'./chunk-ZNN43VZV.mjs';import {b as b$6,c as c$5}from'./chunk-EK3RIYMV.mjs';import {a as a$2}from'./chunk-AMYRLAIC.mjs';import {i,l,p,r,s,w,u,v,j,n,k,h as h$1,x,d as d$1,g,a as a$f}from'./chunk-SMAYNDQQ.mjs';import {b as b$1}from'./chunk-246VHB32.mjs';import {a as a$k}from'./chunk-RJWPSJX2.mjs';import {a as a$i}from'./chunk-YOBESAXG.mjs';import {a as a$l}from'./chunk-2WAKHFPS.mjs';import {c as c$4,b as b$8}from'./chunk-
|
|
1
|
+
import {a as a$9}from'./chunk-TEQE6WCH.mjs';import {a as a$3}from'./chunk-GXOXYPQQ.mjs';import {a as a$b,b as b$3}from'./chunk-ZNN43VZV.mjs';import {b as b$6,c as c$5}from'./chunk-EK3RIYMV.mjs';import {a as a$2}from'./chunk-AMYRLAIC.mjs';import {i,l,p,r,s,w,u,v,j,n,k,h as h$1,x,d as d$1,g,a as a$f}from'./chunk-SMAYNDQQ.mjs';import {b as b$1}from'./chunk-246VHB32.mjs';import {a as a$k}from'./chunk-RJWPSJX2.mjs';import {a as a$i}from'./chunk-YOBESAXG.mjs';import {a as a$l}from'./chunk-2WAKHFPS.mjs';import {c as c$4,b as b$8}from'./chunk-GX2IOGYR.mjs';import {a as a$h}from'./chunk-O7XK2WIX.mjs';import {a as a$j}from'./chunk-GCZFXILF.mjs';import {a as a$6}from'./chunk-KUEDQO7P.mjs';import {a}from'./chunk-USMC34OO.mjs';import {b as b$7}from'./chunk-WL27JGVG.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {a as a$a}from'./chunk-4ZJMZB5B.mjs';import {d}from'./chunk-RCBUNCHV.mjs';import {e,c,h,b as b$2,a as a$c}from'./chunk-B7PSE5KC.mjs';import {b as b$4,c as c$3}from'./chunk-PF3OQKXP.mjs';import {a as a$g}from'./chunk-D3IZ4HBL.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {a as a$4}from'./chunk-K6X2BHPP.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {a as a$7}from'./chunk-RT4LMB6X.mjs';import {c as c$1,b as b$5}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$d}from'./chunk-FXCHST4Z.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Kt,{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 {themeVars,sprinkles}from'@baseline-ui/tokens';/**
|
|
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-
|
|
1
|
+
import {a as a$3}from'./chunk-HEO2XVRN.mjs';import {c}from'./chunk-PHZZLBH3.mjs';import {a as a$2}from'./chunk-OAY74XPB.mjs';import {b}from'./chunk-QMDDCVAF.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {b as b$1,c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$5}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {assignInlineVars}from'@vanilla-extract/dynamic';import f,{useContext,useMemo,useState,useEffect}from'react';import {jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-TJEK54BW.mjs';import {a as a$6}from'./chunk-J7K7I5U2.mjs';import {d}from'./chunk-OC42IZG2.mjs';import {a as a$1}from'./chunk-NGZRN4SF.mjs';import {c,b}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-TJEK54BW.mjs';import {a as a$6}from'./chunk-J7K7I5U2.mjs';import {d}from'./chunk-OC42IZG2.mjs';import {a as a$1}from'./chunk-NGZRN4SF.mjs';import {c,b}from'./chunk-GX2IOGYR.mjs';import {b as b$1}from'./chunk-WL27JGVG.mjs';import {b as b$2}from'./chunk-4ZJMZB5B.mjs';import {a as a$5}from'./chunk-X3AXUU3H.mjs';import {a as a$9}from'./chunk-K6X2BHPP.mjs';import {a as a$8}from'./chunk-3FYY26ED.mjs';import {a as a$2}from'./chunk-RT4LMB6X.mjs';import {c as c$1}from'./chunk-TZ4MVY4E.mjs';import {a as a$7}from'./chunk-KEVERVHK.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import fe,{useMemo,useCallback,useEffect,useRef}from'react';import {CheckmarkIcon}from'@baseline-ui/icons/12';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {jsx,jsxs}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-YCI6BEXQ.mjs';import {q}from'./chunk-7AY6C5M5.mjs';import {b as b$2}from'./chunk-AC7OXVHA.mjs';import {c,b}from'./chunk-
|
|
1
|
+
import {a as a$3}from'./chunk-YCI6BEXQ.mjs';import {q}from'./chunk-7AY6C5M5.mjs';import {b as b$2}from'./chunk-AC7OXVHA.mjs';import {c,b}from'./chunk-GX2IOGYR.mjs';import {a as a$1}from'./chunk-O7XK2WIX.mjs';import {a as a$4}from'./chunk-GCZFXILF.mjs';import {b as b$1}from'./chunk-4ZJMZB5B.mjs';import {g}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {MinusIcon}from'@baseline-ui/icons/12';import {AttachmentsIcon,ErrorCircleFilledIcon}from'@baseline-ui/icons/16';import {sprinkles}from'@baseline-ui/tokens';import d 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,a,d as d$1,e}from'./chunk-KG5PDPBK.mjs';import {a as a$6}from'./chunk-
|
|
1
|
+
import {c,a,d as d$1,e}from'./chunk-KG5PDPBK.mjs';import {a as a$6}from'./chunk-LQB4U6GF.mjs';import {a as a$2}from'./chunk-2JANDORZ.mjs';import {a as a$5}from'./chunk-MEYMETYC.mjs';import {b as b$2}from'./chunk-J7EAQSKX.mjs';import {b as b$1,c as c$1}from'./chunk-GX2IOGYR.mjs';import {a as a$3}from'./chunk-O7XK2WIX.mjs';import {a as a$4}from'./chunk-GCZFXILF.mjs';import {b}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-4ZJMZB5B.mjs';import {b as b$4,j}from'./chunk-4NYPVKDO.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CalendarIcon}from'@baseline-ui/icons/16';import {createCalendar}from'@internationalized/date';import d 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 as a$1}from'./chunk-EU75HMPG.mjs';import {a as a$h,b as b$4}from'./chunk-BJVFZYUV.mjs';import {a as a$k}from'./chunk-UQJGSVXP.mjs';import {a as a$i}from'./chunk-RFTDIXEG.mjs';import {b,c as c$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-EU75HMPG.mjs';import {a as a$h,b as b$4}from'./chunk-BJVFZYUV.mjs';import {a as a$k}from'./chunk-UQJGSVXP.mjs';import {a as a$i}from'./chunk-RFTDIXEG.mjs';import {b,c as c$1}from'./chunk-GX2IOGYR.mjs';import {c as c$3}from'./chunk-W6QO7FPZ.mjs';import {a as a$5}from'./chunk-O7XK2WIX.mjs';import {a as a$7}from'./chunk-MEZNZ5W6.mjs';import {a as a$j}from'./chunk-6Z6HOW6T.mjs';import {a as a$d}from'./chunk-7PRJIPFA.mjs';import {b as b$2}from'./chunk-WL27JGVG.mjs';import {b as b$1}from'./chunk-N2XGJKZG.mjs';import {a as a$g}from'./chunk-4ZJMZB5B.mjs';import {a as a$4}from'./chunk-VDUFLHKK.mjs';import {a as a$l}from'./chunk-66CUIXA6.mjs';import {a as a$f}from'./chunk-D3IZ4HBL.mjs';import {a as a$b}from'./chunk-545KDVGI.mjs';import {a as a$3}from'./chunk-RSKKEGJZ.mjs';import {e,a as a$c}from'./chunk-BGMVPFYK.mjs';import {b as b$3,a as a$e}from'./chunk-YB3KW7JC.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {a as a$a,g,k}from'./chunk-MRJFGHFW.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$8}from'./chunk-KEVERVHK.mjs';import {c as c$2}from'./chunk-JDLUGVXG.mjs';import {a as a$9}from'./chunk-6ZQE5SHE.mjs';import {b as b$5}from'./chunk-AUOQSTS5.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$6}from'./chunk-4QEH5CGK.mjs';import {HelpIcon}from'@baseline-ui/icons/16';import Ir,{useMemo,useState,useCallback,useRef}from'react';import {themeVars}from'@baseline-ui/tokens';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 {a as a$6}from'./chunk-VLQ4S7XC.mjs';import {a as a$e}from'./chunk-VG7J427T.mjs';import {k,j as j$1,g,c,i,f as f$1,h as h$1,e as e$1,d as d$1,b as b$5,a as a$h}from'./chunk-RC7QITNV.mjs';import {b as b$3,a as a$g,q as q$1,n,c as c$4}from'./chunk-7AY6C5M5.mjs';import {p}from'./chunk-SMAYNDQQ.mjs';import {a as a$b}from'./chunk-AMW7LGCF.mjs';import {a as a$9}from'./chunk-KKJ6XIU3.mjs';import {b as b$6}from'./chunk-246VHB32.mjs';import {b as b$7}from'./chunk-OC42IZG2.mjs';import {b as b$8}from'./chunk-PAQQ7MQG.mjs';import {a as a$3}from'./chunk-2MS356Q7.mjs';import {a as a$k}from'./chunk-Y6XQJ4X2.mjs';import {a as a$d}from'./chunk-MEYMETYC.mjs';import {a as a$c,b as b$2}from'./chunk-J7EAQSKX.mjs';import {d,h,e,f,g as g$1}from'./chunk-IW4GXU75.mjs';import {a as a$f}from'./chunk-NSC53QWT.mjs';import {a as a$m}from'./chunk-SAZLJ66W.mjs';import {b,c as c$2}from'./chunk-
|
|
1
|
+
import {a as a$6}from'./chunk-VLQ4S7XC.mjs';import {a as a$e}from'./chunk-VG7J427T.mjs';import {k,j as j$1,g,c,i,f as f$1,h as h$1,e as e$1,d as d$1,b as b$5,a as a$h}from'./chunk-RC7QITNV.mjs';import {b as b$3,a as a$g,q as q$1,n,c as c$4}from'./chunk-7AY6C5M5.mjs';import {p}from'./chunk-SMAYNDQQ.mjs';import {a as a$b}from'./chunk-AMW7LGCF.mjs';import {a as a$9}from'./chunk-KKJ6XIU3.mjs';import {b as b$6}from'./chunk-246VHB32.mjs';import {b as b$7}from'./chunk-OC42IZG2.mjs';import {b as b$8}from'./chunk-PAQQ7MQG.mjs';import {a as a$3}from'./chunk-2MS356Q7.mjs';import {a as a$k}from'./chunk-Y6XQJ4X2.mjs';import {a as a$d}from'./chunk-MEYMETYC.mjs';import {a as a$c,b as b$2}from'./chunk-J7EAQSKX.mjs';import {d,h,e,f,g as g$1}from'./chunk-IW4GXU75.mjs';import {a as a$f}from'./chunk-NSC53QWT.mjs';import {a as a$m}from'./chunk-SAZLJ66W.mjs';import {b,c as c$2}from'./chunk-GX2IOGYR.mjs';import {a as a$t}from'./chunk-M5M3EPG5.mjs';import {d as d$3}from'./chunk-W6QO7FPZ.mjs';import {b as b$4}from'./chunk-J3MJZQUJ.mjs';import {a as a$7}from'./chunk-O7XK2WIX.mjs';import {a as a$j}from'./chunk-MEZNZ5W6.mjs';import {a as a$a}from'./chunk-YV3WI6OV.mjs';import {a as a$l}from'./chunk-USMC34OO.mjs';import {a as a$r}from'./chunk-4ZJMZB5B.mjs';import {a as a$i}from'./chunk-VDUFLHKK.mjs';import {a as a$p}from'./chunk-4PYEGHW5.mjs';import {a as a$5}from'./chunk-66CUIXA6.mjs';import {a as a$q}from'./chunk-X3AXUU3H.mjs';import {a as a$s}from'./chunk-545KDVGI.mjs';import {a}from'./chunk-YS3Y5KGV.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-K6X2BHPP.mjs';import {d as d$2}from'./chunk-Y4DRSGEJ.mjs';import {a as a$1}from'./chunk-3FYY26ED.mjs';import {c as c$1,b as b$1,a as a$o}from'./chunk-TZ4MVY4E.mjs';import {a as a$n}from'./chunk-KEVERVHK.mjs';import {c as c$3}from'./chunk-JDLUGVXG.mjs';import {e as e$2,g as g$2}from'./chunk-AUOQSTS5.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import q,{useCallback,useContext,useEffect,useMemo,useRef,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {CaretDownIcon}from'@baseline-ui/icons/8';import {sprinkles}from'@baseline-ui/tokens';/**
|
|
2
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$7}from'./chunk-NV7KQVPE.mjs';import {a as a$c}from'./chunk-YCI6BEXQ.mjs';import {a as a$4}from'./chunk-TKQOQVZD.mjs';import {a as a$3}from'./chunk-TAYP2OGC.mjs';import {c as c$2}from'./chunk-ELXWR5TS.mjs';import {b as b$1,c as c$1,a as a$d}from'./chunk-ROHLZINC.mjs';import {B}from'./chunk-OMT6ZWSV.mjs';import {a as a$2}from'./chunk-SAZLJ66W.mjs';import {b,c as c$3}from'./chunk-
|
|
1
|
+
import {a as a$7}from'./chunk-NV7KQVPE.mjs';import {a as a$c}from'./chunk-YCI6BEXQ.mjs';import {a as a$4}from'./chunk-TKQOQVZD.mjs';import {a as a$3}from'./chunk-TAYP2OGC.mjs';import {c as c$2}from'./chunk-ELXWR5TS.mjs';import {b as b$1,c as c$1,a as a$d}from'./chunk-ROHLZINC.mjs';import {B}from'./chunk-OMT6ZWSV.mjs';import {a as a$2}from'./chunk-SAZLJ66W.mjs';import {b,c as c$3}from'./chunk-GX2IOGYR.mjs';import {a as a$9,b as b$3}from'./chunk-J3MJZQUJ.mjs';import {a as a$b}from'./chunk-O7XK2WIX.mjs';import {b as b$2}from'./chunk-4ZJMZB5B.mjs';import {a as a$1}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-X3AXUU3H.mjs';import {a as a$a}from'./chunk-RSKKEGJZ.mjs';import {a as a$5}from'./chunk-K6X2BHPP.mjs';import {a as a$6}from'./chunk-3FYY26ED.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import Z,{useMemo}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
|
package/dist/hooks/useI18n.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'../chunk-
|
|
1
|
+
export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'../chunk-GX2IOGYR.mjs';import'../chunk-XXANV3FM.mjs';import'../chunk-F7PGMOQF.mjs';import'../chunk-HZHAKW6I.mjs';import'../chunk-NHM3H5JU.mjs';import'../chunk-N2XGJKZG.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
package/dist/hooks/useMedia.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as formattedDuration,a as useMedia}from'../chunk-
|
|
1
|
+
export{b as formattedDuration,a as useMedia}from'../chunk-MHUFXHRU.mjs';import'../chunk-GX2IOGYR.mjs';import'../chunk-XXANV3FM.mjs';import'../chunk-F7PGMOQF.mjs';import'../chunk-HZHAKW6I.mjs';import'../chunk-NHM3H5JU.mjs';import'../chunk-N2XGJKZG.mjs';import'../chunk-5YHNHEDK.mjs';import'../chunk-JJG67M2S.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -7875,10 +7875,9 @@ type MessageIssue = (MessageIssueBase & {
|
|
|
7875
7875
|
id: string;
|
|
7876
7876
|
/**
|
|
7877
7877
|
* Which template would not format: `"catalog"` is an entry from the
|
|
7878
|
-
* `messages` you supplied, `"defaultMessage"` the English fallback the
|
|
7879
|
-
*
|
|
7880
|
-
*
|
|
7881
|
-
* declaring code.
|
|
7878
|
+
* `messages` you supplied, `"defaultMessage"` the English fallback on the
|
|
7879
|
+
* descriptor passed to `formatMessage`. They route differently — one is a
|
|
7880
|
+
* translation to fix, the other a defect in the declaring code.
|
|
7882
7881
|
*/
|
|
7883
7882
|
source: "catalog" | "defaultMessage";
|
|
7884
7883
|
/**
|
|
@@ -7898,22 +7897,25 @@ type MessageIssue = (MessageIssueBase & {
|
|
|
7898
7897
|
*
|
|
7899
7898
|
* - `missing-message` — no supplied catalog answers for the id, so its
|
|
7900
7899
|
* `defaultMessage` renders instead (or the id itself, when it declares none).
|
|
7901
|
-
* Reported for
|
|
7902
|
-
*
|
|
7903
|
-
*
|
|
7900
|
+
* Reported for any id, an app's own as much as Baseline UI's. Supplying no
|
|
7901
|
+
* catalogs at all is the English-only mode rather than a gap, so there a
|
|
7902
|
+
* descriptor carrying a `defaultMessage` reports nothing; a bare id, which
|
|
7903
|
+
* reaches the screen raw, still does.
|
|
7904
7904
|
* - `malformed-message` — a catalog entry (or a `defaultMessage`) could not be
|
|
7905
7905
|
* parsed or formatted as an ICU template; `source` says which. Covers a
|
|
7906
7906
|
* template that will not parse and a placeholder value the caller did not
|
|
7907
|
-
* supply,
|
|
7908
|
-
* whoever wrote the template can act on it.
|
|
7907
|
+
* supply, for any id, since whoever wrote the template can act on it.
|
|
7909
7908
|
* - `deprecated-message-id` — the id resolved only through the deprecated
|
|
7910
|
-
* bare-id fallback (`bui.editor.bold` answered by `bold`).
|
|
7911
|
-
* `
|
|
7912
|
-
*
|
|
7909
|
+
* bare-id fallback (`bui.editor.bold` answered by `bold`). Reported for
|
|
7910
|
+
* Baseline UI's own `bui.*` ids only, the only ones that migration covers. In
|
|
7911
|
+
* development, `message` also names the other ids that bare id answers for;
|
|
7912
|
+
* production builds drop that detail to keep the id map out of the bundle.
|
|
7913
7913
|
* - `no-catalog-for-locale` — catalogs were supplied, but none of them covers
|
|
7914
|
-
* the active locale, so every message falls back to
|
|
7915
|
-
*
|
|
7916
|
-
*
|
|
7914
|
+
* the active locale, so every message falls back to its `defaultMessage`, or
|
|
7915
|
+
* to its id where it has none. Raised once for the locale rather than per
|
|
7916
|
+
* message, so it carries no `id`, and no longer gated on the `bui.` prefix.
|
|
7917
|
+
* Not raised when the active locale is itself English, where falling back is
|
|
7918
|
+
* the intended result.
|
|
7917
7919
|
* - `locale-alias-collision` — the same locale was supplied under two ID
|
|
7918
7920
|
* formats (`pt_BR` and `pt-BR`); the hyphenated entry wins.
|
|
7919
7921
|
*
|
|
@@ -8916,9 +8918,21 @@ interface MessageFormatProps {
|
|
|
8916
8918
|
* (e.g., 'div')
|
|
8917
8919
|
*/
|
|
8918
8920
|
elementType?: React__default.ElementType | "div" | "span";
|
|
8919
|
-
/**
|
|
8921
|
+
/**
|
|
8922
|
+
* The id of the message to format. Spread a `defineMessages` descriptor to
|
|
8923
|
+
* pass this and `defaultMessage` together rather than as separate props.
|
|
8924
|
+
*/
|
|
8920
8925
|
id: string;
|
|
8921
|
-
/**
|
|
8926
|
+
/**
|
|
8927
|
+
* The message to render when no supplied catalog answers for `id`. Without
|
|
8928
|
+
* it an unanswered `id` renders as itself, so pass one for any message the
|
|
8929
|
+
* active catalog might not cover.
|
|
8930
|
+
*
|
|
8931
|
+
* Write it as a literal — the only form the extraction pipeline can read.
|
|
8932
|
+
* Distinct templates are compiled once and cached, so one built per render —
|
|
8933
|
+
* per file name, per row — churns that cache and recompiles the templates it
|
|
8934
|
+
* displaces.
|
|
8935
|
+
*/
|
|
8922
8936
|
defaultMessage?: string;
|
|
8923
8937
|
/**
|
|
8924
8938
|
* Values for the message's ICU placeholders, e.g. `{ arg0: 2, arg1: 10 }` for
|
|
@@ -10555,7 +10569,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
|
|
|
10555
10569
|
|
|
10556
10570
|
declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
10557
10571
|
|
|
10558
|
-
declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "
|
|
10572
|
+
declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "isRequired" | "validate" | "validationState" | "isInvalid"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & React__default.RefAttributes<HTMLDivElement>>;
|
|
10559
10573
|
|
|
10560
10574
|
type TimeFieldProps = StylingProps & Omit<Omit<TimeFieldStateOptions, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isInvalid" | "isRequired" | "validate"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
|
|
10561
10575
|
|
|
@@ -10834,7 +10848,7 @@ type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale">
|
|
|
10834
10848
|
openCalendarLabel?: string;
|
|
10835
10849
|
};
|
|
10836
10850
|
|
|
10837
|
-
declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "
|
|
10851
|
+
declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "isRequired" | "validate" | "validationState" | "isInvalid" | "createCalendar"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & {
|
|
10838
10852
|
pickerType?: DateFieldPickerType;
|
|
10839
10853
|
openCalendarLabel?: string;
|
|
10840
10854
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -11700,7 +11714,15 @@ declare const legacyMessageIdMap: Readonly<Partial<Record<string, readonly Messa
|
|
|
11700
11714
|
* messages: { de },
|
|
11701
11715
|
* });
|
|
11702
11716
|
*
|
|
11703
|
-
* window.alert(
|
|
11717
|
+
* window.alert(
|
|
11718
|
+
* formatMessage(
|
|
11719
|
+
* {
|
|
11720
|
+
* id: "bui.fileList.removeHint",
|
|
11721
|
+
* defaultMessage: "{fileName}, press Delete or Backspace to remove",
|
|
11722
|
+
* },
|
|
11723
|
+
* { fileName: "photo.png" },
|
|
11724
|
+
* ),
|
|
11725
|
+
* );
|
|
11704
11726
|
* ```;
|
|
11705
11727
|
*
|
|
11706
11728
|
* @template T - The shape of one locale's messages, when you want the returned
|
|
@@ -11711,9 +11733,10 @@ declare const legacyMessageIdMap: Readonly<Partial<Record<string, readonly Messa
|
|
|
11711
11733
|
* there is no surrounding provider to read it from, so it is required.
|
|
11712
11734
|
* @param options.messages - Locale-keyed catalogs, in the same shape
|
|
11713
11735
|
* `I18nProvider` takes, plus keys that came straight from an `import.meta.glob`
|
|
11714
|
-
* (`./intl/de.json`) which are reduced to their locale. Omit them
|
|
11715
|
-
*
|
|
11716
|
-
*
|
|
11736
|
+
* (`./intl/de.json`) which are reduced to their locale. Omit them and every
|
|
11737
|
+
* message formatted from a descriptor renders its English `defaultMessage`,
|
|
11738
|
+
* while a bare id renders as itself. There is no provider here to merge with
|
|
11739
|
+
* — these catalogs are the only ones consulted.
|
|
11717
11740
|
* @param options.shouldLogMissingMessages - Whether to report missing
|
|
11718
11741
|
* translations to the console. Defaults to off in production builds, on
|
|
11719
11742
|
* everywhere else, matching `I18nProvider`. Ignored when `onMessageIssue` is
|
|
@@ -11731,8 +11754,9 @@ declare function createMessageFormatter<T extends Record<string, string> = Recor
|
|
|
11731
11754
|
* messages and the current locale.
|
|
11732
11755
|
*
|
|
11733
11756
|
* With no catalog of your own, `formatMessage` takes a built-in `MessageId` or
|
|
11734
|
-
* a `MessageDescriptor`, so a misspelled
|
|
11735
|
-
*
|
|
11757
|
+
* a `MessageDescriptor`, so a misspelled id is a compile error. A bare
|
|
11758
|
+
* `MessageId` still needs a catalog to answer for it — pass the descriptor to
|
|
11759
|
+
* render Baseline UI's English without one. To put your application's own
|
|
11736
11760
|
* string ids through the hook, pass their catalog or name it —
|
|
11737
11761
|
* `useI18n<MyMessages>()`.
|
|
11738
11762
|
*
|
|
@@ -11745,7 +11769,9 @@ declare function createMessageFormatter<T extends Record<string, string> = Recor
|
|
|
11745
11769
|
* const MyComponent = () => {
|
|
11746
11770
|
* const { formatMessage } = useI18n();
|
|
11747
11771
|
*
|
|
11748
|
-
* return
|
|
11772
|
+
* return (
|
|
11773
|
+
* <p>{formatMessage({ id: "bui.editor.bold", defaultMessage: "Bold" })}</p>
|
|
11774
|
+
* );
|
|
11749
11775
|
* };
|
|
11750
11776
|
* ```;
|
|
11751
11777
|
*
|
|
@@ -11809,8 +11835,9 @@ interface CreateMessageFormatterOptions {
|
|
|
11809
11835
|
locale: string;
|
|
11810
11836
|
/**
|
|
11811
11837
|
* Locale-keyed catalogs, in the shape `I18nProvider` takes. These are the only
|
|
11812
|
-
* catalogs consulted; nothing is merged in from a provider. Omit them
|
|
11813
|
-
*
|
|
11838
|
+
* catalogs consulted; nothing is merged in from a provider. Omit them and
|
|
11839
|
+
* every message formatted from a descriptor renders its English
|
|
11840
|
+
* `defaultMessage`, while a bare id renders as itself.
|
|
11814
11841
|
*/
|
|
11815
11842
|
messages?: LocalizedStrings;
|
|
11816
11843
|
/**
|
|
@@ -11848,13 +11875,13 @@ interface MessageDescriptor {
|
|
|
11848
11875
|
description?: string;
|
|
11849
11876
|
}
|
|
11850
11877
|
/**
|
|
11851
|
-
*
|
|
11878
|
+
* Marks a set of message descriptors for `eslint-plugin-formatjs` and the
|
|
11879
|
+
* extraction pipeline that produces `messages.json`. A pure identity function
|
|
11880
|
+
* at runtime — call it for the tooling, not for an effect it has on
|
|
11881
|
+
* formatting.
|
|
11852
11882
|
*
|
|
11853
11883
|
* @param messages An object containing message descriptors.
|
|
11854
|
-
* @returns
|
|
11855
|
-
* property names.
|
|
11856
|
-
* @remarks Registers each `defaultMessage` so the no-catalog path can format it
|
|
11857
|
-
* as ICU rather than rendering the template verbatim.
|
|
11884
|
+
* @returns The same object, unchanged.
|
|
11858
11885
|
*/
|
|
11859
11886
|
declare const defineMessages: <T extends Record<string, MessageDescriptor>>(messages: T) => T;
|
|
11860
11887
|
|