@baseline-ui/core 2.1.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.css +10 -0
- package/dist/Accordion.mjs +1 -0
- package/dist/ActionButton.css +10 -0
- package/dist/ActionButton.mjs +1 -0
- package/dist/ActionGroup.css +10 -0
- package/dist/ActionGroup.mjs +1 -0
- package/dist/ActionIconButton.css +10 -0
- package/dist/ActionIconButton.mjs +1 -0
- package/dist/Actionable.css +10 -0
- package/dist/Actionable.mjs +1 -0
- package/dist/AlertDialog.css +10 -0
- package/dist/AlertDialog.mjs +1 -0
- package/dist/AudioPlayer.css +10 -0
- package/dist/AudioPlayer.mjs +1 -0
- package/dist/Avatar.css +10 -0
- package/dist/Avatar.mjs +1 -0
- package/dist/Box.mjs +1 -0
- package/dist/ButtonSelect.css +10 -0
- package/dist/ButtonSelect.mjs +1 -0
- package/dist/Calendar.css +10 -0
- package/dist/Calendar.mjs +1 -0
- package/dist/Checkbox.css +10 -0
- package/dist/Checkbox.mjs +1 -0
- package/dist/Code.css +10 -0
- package/dist/Code.mjs +1 -0
- package/dist/ColorInput.css +10 -0
- package/dist/ColorInput.mjs +1 -0
- package/dist/ColorSwatch.css +10 -0
- package/dist/ColorSwatch.mjs +1 -0
- package/dist/ColorSwatchPicker.css +10 -0
- package/dist/ColorSwatchPicker.mjs +1 -0
- package/dist/ComboBox.css +10 -0
- package/dist/ComboBox.mjs +1 -0
- package/dist/DateField.css +10 -0
- package/dist/DateField.mjs +1 -0
- package/dist/DateFormat.mjs +1 -0
- package/dist/DeviceProvider.mjs +1 -0
- package/dist/Dialog.css +10 -0
- package/dist/Dialog.mjs +1 -0
- package/dist/Disclosure.css +10 -0
- package/dist/Disclosure.mjs +1 -0
- package/dist/DomNodeRenderer.mjs +1 -0
- package/dist/Drawer.css +10 -0
- package/dist/Drawer.mjs +1 -0
- package/dist/Editor.css +10 -0
- package/dist/Editor.mjs +1 -0
- package/dist/FileInput.css +10 -0
- package/dist/FileInput.mjs +1 -0
- package/dist/FileList.css +10 -0
- package/dist/FileList.mjs +1 -0
- package/dist/FileUploader.css +10 -0
- package/dist/FileUploader.mjs +1 -0
- package/dist/FrameProvider.mjs +1 -0
- package/dist/FreehandCanvas.css +10 -0
- package/dist/FreehandCanvas.mjs +1 -0
- package/dist/GridList.css +10 -0
- package/dist/GridList.mjs +1 -0
- package/dist/Group.mjs +1 -0
- package/dist/I18nProvider.mjs +1 -0
- package/dist/Icon.mjs +1 -0
- package/dist/ImageDropZone.css +10 -0
- package/dist/ImageDropZone.mjs +1 -0
- package/dist/ImageGallery.css +10 -0
- package/dist/ImageGallery.mjs +1 -0
- package/dist/InlineAlert.css +10 -0
- package/dist/InlineAlert.mjs +1 -0
- package/dist/InlineToolbar.css +10 -0
- package/dist/InlineToolbar.mjs +10 -0
- package/dist/Kbd.css +10 -0
- package/dist/Kbd.mjs +1 -0
- package/dist/Link.css +10 -0
- package/dist/Link.mjs +1 -0
- package/dist/ListBox.css +10 -0
- package/dist/ListBox.mjs +1 -0
- package/dist/Markdown.css +10 -0
- package/dist/Markdown.mjs +1 -0
- package/dist/Menu.css +10 -0
- package/dist/Menu.mjs +1 -0
- package/dist/MessageFormat.mjs +1 -0
- package/dist/Modal.css +10 -0
- package/dist/Modal.mjs +1 -0
- package/dist/NumberFormat.mjs +1 -0
- package/dist/NumberInput.css +10 -0
- package/dist/NumberInput.mjs +1 -0
- package/dist/Pagination.css +10 -0
- package/dist/Pagination.mjs +1 -0
- package/dist/Panel.css +10 -0
- package/dist/Panel.mjs +1 -0
- package/dist/PointPicker.css +10 -0
- package/dist/PointPicker.mjs +1 -0
- package/dist/Popover.css +10 -0
- package/dist/Popover.mjs +1 -0
- package/dist/Portal.css +10 -0
- package/dist/Portal.mjs +1 -0
- package/dist/PortalContainerProvider.mjs +1 -0
- package/dist/Preview.css +10 -0
- package/dist/Preview.mjs +1 -0
- package/dist/ProgressBar.css +10 -0
- package/dist/ProgressBar.mjs +1 -0
- package/dist/ProgressSpinner.css +10 -0
- package/dist/ProgressSpinner.mjs +1 -0
- package/dist/RadioGroup.css +10 -0
- package/dist/RadioGroup.mjs +1 -0
- package/dist/Reaction.css +10 -0
- package/dist/Reaction.mjs +1 -0
- package/dist/ScrollControlButton.css +10 -0
- package/dist/ScrollControlButton.mjs +1 -0
- package/dist/SearchInput.css +10 -0
- package/dist/SearchInput.mjs +1 -0
- package/dist/Select.css +10 -0
- package/dist/Select.mjs +1 -0
- package/dist/Separator.css +10 -0
- package/dist/Separator.mjs +1 -0
- package/dist/Skeleton.css +10 -0
- package/dist/Skeleton.mjs +1 -0
- package/dist/Slider.css +10 -0
- package/dist/Slider.mjs +1 -0
- package/dist/StatusCard.css +10 -0
- package/dist/StatusCard.mjs +1 -0
- package/dist/Stepper.css +10 -0
- package/dist/Stepper.mjs +1 -0
- package/dist/Switch.css +10 -0
- package/dist/Switch.mjs +1 -0
- package/dist/Table.css +10 -0
- package/dist/Table.mjs +1 -0
- package/dist/Tabs.css +10 -0
- package/dist/Tabs.mjs +1 -0
- package/dist/Tag.css +10 -0
- package/dist/Tag.mjs +1 -0
- package/dist/TagGroup.css +10 -0
- package/dist/TagGroup.mjs +1 -0
- package/dist/TaggedPagination.css +10 -0
- package/dist/TaggedPagination.mjs +1 -0
- package/dist/Text.css +10 -0
- package/dist/Text.mjs +1 -0
- package/dist/TextInput.css +10 -0
- package/dist/TextInput.mjs +1 -0
- package/dist/ThemeProvider.css +10 -0
- package/dist/ThemeProvider.mjs +1 -0
- package/dist/TimeField.css +10 -0
- package/dist/TimeField.mjs +1 -0
- package/dist/Toast.css +10 -0
- package/dist/Toast.mjs +1 -0
- package/dist/ToggleButton.css +10 -0
- package/dist/ToggleButton.mjs +1 -0
- package/dist/ToggleIconButton.css +10 -0
- package/dist/ToggleIconButton.mjs +1 -0
- package/dist/Toolbar.css +10 -0
- package/dist/Toolbar.mjs +1 -0
- package/dist/Tooltip.css +10 -0
- package/dist/Tooltip.mjs +1 -0
- package/dist/TreeView.css +10 -0
- package/dist/TreeView.mjs +1 -0
- package/dist/UNSAFE_ListBox.css +10 -0
- package/dist/UNSAFE_ListBox.mjs +1 -0
- package/dist/Virtualizer.mjs +1 -0
- package/dist/chunk-22BJMDCA.mjs +10 -0
- package/dist/chunk-246VHB32.mjs +10 -0
- package/dist/chunk-2CZ3OV4X.mjs +10 -0
- package/dist/chunk-2JANDORZ.mjs +11 -0
- package/dist/chunk-2MS356Q7.mjs +10 -0
- package/dist/chunk-2PH5GN2S.mjs +0 -0
- package/dist/chunk-2RCST7ET.mjs +10 -0
- package/dist/chunk-2UUKKXBD.mjs +10 -0
- package/dist/chunk-2VY4FAOY.mjs +10 -0
- package/dist/chunk-2WAKHFPS.mjs +10 -0
- package/dist/chunk-34TYNTXM.mjs +10 -0
- package/dist/chunk-3CWP2VCB.mjs +10 -0
- package/dist/chunk-3FYY26ED.mjs +10 -0
- package/dist/chunk-3HKG74G4.mjs +0 -0
- package/dist/chunk-3UH5CQQF.mjs +10 -0
- package/dist/chunk-3W6RWDIE.mjs +10 -0
- package/dist/chunk-44OUOGJ4.mjs +10 -0
- package/dist/chunk-4N6CLPAY.mjs +10 -0
- package/dist/chunk-4NYPVKDO.mjs +10 -0
- package/dist/chunk-4PYEGHW5.mjs +10 -0
- package/dist/chunk-4QEH5CGK.mjs +10 -0
- package/dist/chunk-4SW77SGW.mjs +10 -0
- package/dist/chunk-4WW2MVQN.mjs +0 -0
- package/dist/chunk-4ZJMZB5B.mjs +10 -0
- package/dist/chunk-545KDVGI.mjs +10 -0
- package/dist/chunk-54IAJ3RI.mjs +0 -0
- package/dist/chunk-566SP7NE.mjs +10 -0
- package/dist/chunk-5ANNWMLJ.mjs +0 -0
- package/dist/chunk-5BAHJXOI.mjs +10 -0
- package/dist/chunk-5HXTXIE5.mjs +10 -0
- package/dist/chunk-5IC46G5J.mjs +10 -0
- package/dist/chunk-5KD2MNNX.mjs +10 -0
- package/dist/chunk-5ODZPQL2.mjs +10 -0
- package/dist/chunk-5PQHOVGX.mjs +0 -0
- package/dist/chunk-5ULL6IBX.mjs +10 -0
- package/dist/chunk-5YHNHEDK.mjs +0 -0
- package/dist/chunk-63KRQW56.mjs +10 -0
- package/dist/chunk-66CUIXA6.mjs +10 -0
- package/dist/chunk-66NJ7EYY.mjs +10 -0
- package/dist/chunk-6F66XVOA.mjs +0 -0
- package/dist/chunk-6IRWW75G.mjs +10 -0
- package/dist/chunk-6IX6BM7C.mjs +0 -0
- package/dist/chunk-6XARU7F2.mjs +0 -0
- package/dist/chunk-6YQHZ5RZ.mjs +0 -0
- package/dist/chunk-6Z6HOW6T.mjs +10 -0
- package/dist/chunk-6ZFBX7C7.mjs +10 -0
- package/dist/chunk-6ZQE5SHE.mjs +10 -0
- package/dist/chunk-6ZV4UYEG.mjs +10 -0
- package/dist/chunk-77BAFSDX.mjs +10 -0
- package/dist/chunk-7AQAC6QK.mjs +10 -0
- package/dist/chunk-7AY6C5M5.mjs +10 -0
- package/dist/chunk-7PRJIPFA.mjs +10 -0
- package/dist/chunk-7ZYMMUDM.mjs +10 -0
- package/dist/chunk-A24DWFQ2.mjs +10 -0
- package/dist/chunk-A6ZQQSAX.mjs +10 -0
- package/dist/chunk-AC7OXVHA.mjs +10 -0
- package/dist/chunk-AGUSZG6K.mjs +0 -0
- package/dist/chunk-AGYQLGBZ.mjs +10 -0
- package/dist/chunk-AKES5B6C.mjs +10 -0
- package/dist/chunk-AMQX3KZR.mjs +10 -0
- package/dist/chunk-AMW7LGCF.mjs +10 -0
- package/dist/chunk-AMYRLAIC.mjs +10 -0
- package/dist/chunk-AQYBKDT2.mjs +16 -0
- package/dist/chunk-AUOQSTS5.mjs +10 -0
- package/dist/chunk-AV4ZP5SY.mjs +10 -0
- package/dist/chunk-AZRPXTYJ.mjs +10 -0
- package/dist/chunk-B7PSE5KC.mjs +10 -0
- package/dist/chunk-BED7T5CL.mjs +10 -0
- package/dist/chunk-BGMVPFYK.mjs +10 -0
- package/dist/chunk-BJVFZYUV.mjs +10 -0
- package/dist/chunk-BKDQLDOK.mjs +10 -0
- package/dist/chunk-BLHN7I5Z.mjs +0 -0
- package/dist/chunk-BTVDMO5C.mjs +10 -0
- package/dist/chunk-BU5H25MV.mjs +10 -0
- package/dist/chunk-C342HL26.mjs +0 -0
- package/dist/chunk-C5P23FUW.mjs +10 -0
- package/dist/chunk-C6OMLVIQ.mjs +0 -0
- package/dist/chunk-CAWUDHAE.mjs +10 -0
- package/dist/chunk-CFDKFUTO.mjs +10 -0
- package/dist/chunk-CFLEBB5T.mjs +10 -0
- package/dist/chunk-CFRTAJP2.mjs +0 -0
- package/dist/chunk-CGFLGZL4.mjs +10 -0
- package/dist/chunk-CHTLOFCT.mjs +10 -0
- package/dist/chunk-CPSUI4IW.mjs +10 -0
- package/dist/chunk-CSPZMYVG.mjs +10 -0
- package/dist/chunk-CV6JQGJ3.mjs +10 -0
- package/dist/chunk-CWPFUB7B.mjs +10 -0
- package/dist/chunk-D3IZ4HBL.mjs +10 -0
- package/dist/chunk-D5EEZT5J.mjs +10 -0
- package/dist/chunk-DD5FWULD.mjs +10 -0
- package/dist/chunk-DECHIERQ.mjs +10 -0
- package/dist/chunk-DIHILOKU.mjs +10 -0
- package/dist/chunk-DOL6RDMF.mjs +10 -0
- package/dist/chunk-DRYSJSKA.mjs +10 -0
- package/dist/chunk-DY6WY36N.mjs +0 -0
- package/dist/chunk-E3PFPOHX.mjs +0 -0
- package/dist/chunk-E6VOSF6Z.mjs +10 -0
- package/dist/chunk-EA6GA4WC.mjs +10 -0
- package/dist/chunk-EK3RIYMV.mjs +10 -0
- package/dist/chunk-ELXWR5TS.mjs +10 -0
- package/dist/chunk-EMCEJKBJ.mjs +10 -0
- package/dist/chunk-ENDOKA57.mjs +10 -0
- package/dist/chunk-EU75HMPG.mjs +10 -0
- package/dist/chunk-EX2LI2CV.mjs +10 -0
- package/dist/chunk-EZXMEGV7.mjs +0 -0
- package/dist/chunk-F2HESRBD.mjs +10 -0
- package/dist/chunk-F2X474RV.mjs +10 -0
- package/dist/chunk-F7PGMOQF.mjs +10 -0
- package/dist/chunk-FJ2JRD3H.mjs +10 -0
- package/dist/chunk-FKYHERP4.mjs +0 -0
- package/dist/chunk-FP5EWPOF.mjs +10 -0
- package/dist/chunk-FRZTJBLY.mjs +10 -0
- package/dist/chunk-FTYXFTJV.mjs +10 -0
- package/dist/chunk-FXCHST4Z.mjs +10 -0
- package/dist/chunk-GCZFXILF.mjs +10 -0
- package/dist/chunk-GEZGEZAP.mjs +10 -0
- package/dist/chunk-GFLVN5JQ.mjs +10 -0
- package/dist/chunk-GKODQS6E.mjs +10 -0
- package/dist/chunk-GOSLHCDP.mjs +0 -0
- package/dist/chunk-GXOXYPQQ.mjs +10 -0
- package/dist/chunk-H44PBNVX.mjs +10 -0
- package/dist/chunk-H7OUUCSA.mjs +10 -0
- package/dist/chunk-HBBRMEES.mjs +10 -0
- package/dist/chunk-HHI7CEUP.mjs +10 -0
- package/dist/chunk-HI44JQA7.mjs +10 -0
- package/dist/chunk-HLDCVJXD.mjs +10 -0
- package/dist/chunk-HONWMHMX.mjs +10 -0
- package/dist/chunk-HT55YHTN.mjs +10 -0
- package/dist/chunk-HWOMGFBL.mjs +10 -0
- package/dist/chunk-HXTAOYOD.mjs +10 -0
- package/dist/chunk-I3RGYL4B.mjs +10 -0
- package/dist/chunk-I3YGB2BE.mjs +10 -0
- package/dist/chunk-IB23KCIW.mjs +10 -0
- package/dist/chunk-IHLJTHGQ.mjs +10 -0
- package/dist/chunk-ILBAZFBL.mjs +0 -0
- package/dist/chunk-INDVRI57.mjs +10 -0
- package/dist/chunk-IUQOFRI3.mjs +10 -0
- package/dist/chunk-IVVZSESM.mjs +10 -0
- package/dist/chunk-IW4GXU75.mjs +10 -0
- package/dist/chunk-IYFTU6IC.mjs +10 -0
- package/dist/chunk-J3MJZQUJ.mjs +10 -0
- package/dist/chunk-J4NO4WYU.mjs +0 -0
- package/dist/chunk-J5YWAPLN.mjs +10 -0
- package/dist/chunk-J7EAQSKX.mjs +10 -0
- package/dist/chunk-J7K7I5U2.mjs +10 -0
- package/dist/chunk-JBXZ6ZHP.mjs +10 -0
- package/dist/chunk-JDLUGVXG.mjs +10 -0
- package/dist/chunk-JI4SJ53O.mjs +11 -0
- package/dist/chunk-JJG67M2S.mjs +10 -0
- package/dist/chunk-JJPCZOOI.mjs +10 -0
- package/dist/chunk-JQ4ZGZPV.mjs +15 -0
- package/dist/chunk-JUXBZ2ZN.mjs +10 -0
- package/dist/chunk-K6IQ4ALU.mjs +0 -0
- package/dist/chunk-K6X2BHPP.mjs +10 -0
- package/dist/chunk-KCHAWPUN.mjs +10 -0
- package/dist/chunk-KEVERVHK.mjs +10 -0
- package/dist/chunk-KG5PDPBK.mjs +10 -0
- package/dist/chunk-KKJ6XIU3.mjs +10 -0
- package/dist/chunk-KPEONVLU.mjs +10 -0
- package/dist/chunk-KUEDQO7P.mjs +10 -0
- package/dist/chunk-KY3JKXSX.mjs +10 -0
- package/dist/chunk-LQMEFFFM.mjs +10 -0
- package/dist/chunk-LZFTBNPW.mjs +10 -0
- package/dist/chunk-M5M3EPG5.mjs +10 -0
- package/dist/chunk-MEYMETYC.mjs +11 -0
- package/dist/chunk-MEZNZ5W6.mjs +10 -0
- package/dist/chunk-MFH2E2GU.mjs +10 -0
- package/dist/chunk-MI7DCFP2.mjs +10 -0
- package/dist/chunk-MIHIAPBG.mjs +10 -0
- package/dist/chunk-MLNPTVVX.mjs +10 -0
- package/dist/chunk-MRJFGHFW.mjs +10 -0
- package/dist/chunk-MUNFBB7D.mjs +0 -0
- package/dist/chunk-MVK5CB64.mjs +10 -0
- package/dist/chunk-MXKP7NQ4.mjs +10 -0
- package/dist/chunk-MZ4O6LWG.mjs +0 -0
- package/dist/chunk-N2XGJKZG.mjs +10 -0
- package/dist/chunk-N5RZGO7Y.mjs +10 -0
- package/dist/chunk-N7MTFSWR.mjs +10 -0
- package/dist/chunk-NA3IF43N.mjs +10 -0
- package/dist/chunk-NGZRN4SF.mjs +10 -0
- package/dist/chunk-NHM3H5JU.mjs +0 -0
- package/dist/chunk-NO55UIGK.mjs +0 -0
- package/dist/chunk-NRKHWSOP.mjs +0 -0
- package/dist/chunk-NSC53QWT.mjs +10 -0
- package/dist/chunk-NV7KQVPE.mjs +10 -0
- package/dist/chunk-O4VZ6XEP.mjs +10 -0
- package/dist/chunk-O57ZEY3V.mjs +0 -0
- package/dist/chunk-O66FNQSB.mjs +10 -0
- package/dist/chunk-O7XK2WIX.mjs +10 -0
- package/dist/chunk-OAY74XPB.mjs +10 -0
- package/dist/chunk-OC42IZG2.mjs +10 -0
- package/dist/chunk-OLJWK3LS.mjs +10 -0
- package/dist/chunk-OMT6ZWSV.mjs +11 -0
- package/dist/chunk-OO7BXL2N.mjs +10 -0
- package/dist/chunk-P44XZ4PV.mjs +10 -0
- package/dist/chunk-P5GO3XIS.mjs +10 -0
- package/dist/chunk-PAQQ7MQG.mjs +10 -0
- package/dist/chunk-PBFIKNYZ.mjs +10 -0
- package/dist/chunk-PBO4SFGS.mjs +10 -0
- package/dist/chunk-PF3OQKXP.mjs +10 -0
- package/dist/chunk-PHZZLBH3.mjs +10 -0
- package/dist/chunk-PZTVDABF.mjs +0 -0
- package/dist/chunk-Q5UMLFN3.mjs +10 -0
- package/dist/chunk-QAUEG3EX.mjs +0 -0
- package/dist/chunk-QBJDGBTU.mjs +0 -0
- package/dist/chunk-QMDDCVAF.mjs +10 -0
- package/dist/chunk-QNBBJ5HC.mjs +11 -0
- package/dist/chunk-R32OJDN2.mjs +10 -0
- package/dist/chunk-RC7QITNV.mjs +10 -0
- package/dist/chunk-RCBUNCHV.mjs +10 -0
- package/dist/chunk-RFTDIXEG.mjs +10 -0
- package/dist/chunk-RJC3HQDZ.mjs +10 -0
- package/dist/chunk-RJWPSJX2.mjs +10 -0
- package/dist/chunk-RMUV6NJJ.mjs +10 -0
- package/dist/chunk-ROHLZINC.mjs +10 -0
- package/dist/chunk-RSKKEGJZ.mjs +10 -0
- package/dist/chunk-RT4LMB6X.mjs +10 -0
- package/dist/chunk-RXSYDMT6.mjs +10 -0
- package/dist/chunk-S3V4OOC3.mjs +10 -0
- package/dist/chunk-SAZLJ66W.mjs +10 -0
- package/dist/chunk-SMAYNDQQ.mjs +10 -0
- package/dist/chunk-TAROK7TO.mjs +10 -0
- package/dist/chunk-TAYP2OGC.mjs +10 -0
- package/dist/chunk-TBSQUJ67.mjs +10 -0
- package/dist/chunk-TDXALNX3.mjs +10 -0
- package/dist/chunk-TEQE6WCH.mjs +10 -0
- package/dist/chunk-THRAJMLX.mjs +10 -0
- package/dist/chunk-TI5RR7KX.mjs +10 -0
- package/dist/chunk-TIHKHXTS.mjs +10 -0
- package/dist/chunk-TJEK54BW.mjs +10 -0
- package/dist/chunk-TK4QXU3W.mjs +10 -0
- package/dist/chunk-TKQOQVZD.mjs +10 -0
- package/dist/chunk-TO2TQ2LE.mjs +10 -0
- package/dist/chunk-TO6OQF2Y.mjs +10 -0
- package/dist/chunk-TZ4MVY4E.mjs +10 -0
- package/dist/chunk-U2ODAIZG.mjs +10 -0
- package/dist/chunk-U4K44ZHN.mjs +10 -0
- package/dist/chunk-UCNHDT36.mjs +10 -0
- package/dist/chunk-UCZZLAPB.mjs +10 -0
- package/dist/chunk-UQJGSVXP.mjs +10 -0
- package/dist/chunk-USMC34OO.mjs +10 -0
- package/dist/chunk-UTQ7AIPM.mjs +0 -0
- package/dist/chunk-UUBOEBYZ.mjs +10 -0
- package/dist/chunk-V3L4SVVF.mjs +10 -0
- package/dist/chunk-VCIX4HG7.mjs +0 -0
- package/dist/chunk-VDUFLHKK.mjs +10 -0
- package/dist/chunk-VG7J427T.mjs +10 -0
- package/dist/chunk-VHDXSFQC.mjs +10 -0
- package/dist/chunk-VLQ4S7XC.mjs +10 -0
- package/dist/chunk-VTX6R6KM.mjs +10 -0
- package/dist/chunk-VXB5SVQC.mjs +10 -0
- package/dist/chunk-W6QO7FPZ.mjs +10 -0
- package/dist/chunk-WAFYFWH4.mjs +0 -0
- package/dist/chunk-WAOWR7MR.mjs +10 -0
- package/dist/chunk-WL27JGVG.mjs +10 -0
- package/dist/chunk-WOVAT6U4.mjs +10 -0
- package/dist/chunk-WSCZ34XO.mjs +10 -0
- package/dist/chunk-WSQGB4ZE.mjs +0 -0
- package/dist/chunk-WWSGOGLA.mjs +10 -0
- package/dist/chunk-X3AXUU3H.mjs +10 -0
- package/dist/chunk-X3OCHEQM.mjs +12 -0
- package/dist/chunk-X7DI4I2U.mjs +10 -0
- package/dist/chunk-XB657BXX.mjs +10 -0
- package/dist/chunk-XBBPWSJI.mjs +0 -0
- package/dist/chunk-XJGQXVMR.mjs +10 -0
- package/dist/chunk-XPISSX5R.mjs +10 -0
- package/dist/chunk-XTH6B5FE.mjs +10 -0
- package/dist/chunk-XVBOKL6D.mjs +10 -0
- package/dist/chunk-XWLESSHN.mjs +10 -0
- package/dist/chunk-XXANV3FM.mjs +10 -0
- package/dist/chunk-XZ2VSOJD.mjs +29 -0
- package/dist/chunk-Y4DRSGEJ.mjs +10 -0
- package/dist/chunk-Y6XQJ4X2.mjs +10 -0
- package/dist/chunk-YB3KW7JC.mjs +10 -0
- package/dist/chunk-YCI6BEXQ.mjs +10 -0
- package/dist/chunk-YGSCHWU3.mjs +10 -0
- package/dist/chunk-YIGT3OP2.mjs +10 -0
- package/dist/chunk-YOBESAXG.mjs +10 -0
- package/dist/chunk-YS3Y5KGV.mjs +10 -0
- package/dist/chunk-YT36W3OS.mjs +10 -0
- package/dist/chunk-YV3WI6OV.mjs +10 -0
- package/dist/chunk-YV5CNDCW.mjs +0 -0
- package/dist/chunk-YVYMYKYN.mjs +10 -0
- package/dist/chunk-ZANUFNOL.mjs +0 -0
- package/dist/chunk-ZGRRD3TU.mjs +10 -0
- package/dist/chunk-ZLAY7NNY.mjs +10 -0
- package/dist/chunk-ZLDT2KDZ.mjs +10 -0
- package/dist/chunk-ZNN43VZV.mjs +10 -0
- package/dist/chunk-ZREX7XOO.mjs +10 -0
- package/dist/chunk-ZRWDMNNY.mjs +10 -0
- package/dist/chunk-ZVODDLGL.mjs +10 -0
- package/dist/hooks/useDevice.mjs +1 -0
- package/dist/hooks/useI18n.mjs +1 -0
- package/dist/hooks/useImage.mjs +1 -0
- package/dist/hooks/useIntersectionObserver.mjs +1 -0
- package/dist/hooks/useIsFirstRender.mjs +1 -0
- package/dist/hooks/useIsTouchDevice.mjs +1 -0
- package/dist/hooks/useLiveInteractionModality.mjs +1 -0
- package/dist/hooks/useLocalStorage.mjs +1 -0
- package/dist/hooks/useMedia.mjs +1 -0
- package/dist/hooks/useMutationObserver.mjs +1 -0
- package/dist/hooks/usePortalContainer.mjs +1 -0
- package/dist/hooks/usePreventFocus.mjs +1 -0
- package/dist/hooks/useResizeObserver.mjs +1 -0
- package/dist/hooks/useTextSelection.mjs +1 -0
- package/dist/hooks/useUndoRedo.mjs +1 -0
- package/dist/index.d.ts +811 -70
- package/dist/index.js +21 -21
- package/dist/index.mjs +1 -43
- package/dist/messageIds.mjs +1 -0
- package/dist/react-aria.d.ts +133 -133
- package/dist/react-aria.mjs +1 -0
- package/dist/react-stately.d.ts +82 -82
- package/dist/react-stately.mjs +1 -0
- package/dist/utils/a11y.mjs +1 -0
- package/dist/utils/classNames.mjs +1 -0
- package/dist/utils/colors.mjs +1 -0
- package/dist/utils/constants.mjs +10 -0
- package/dist/utils/devWarn.mjs +1 -0
- package/dist/utils/dom.mjs +1 -0
- package/dist/utils/invariant.mjs +1 -0
- package/dist/utils/isInIframe.mjs +1 -0
- package/dist/utils/isInShadowDOM.mjs +1 -0
- package/dist/utils/isRect.mjs +1 -0
- package/dist/utils/keyboards.mjs +1 -0
- package/dist/utils/math.mjs +1 -0
- package/dist/utils/objects.mjs +1 -0
- package/dist/utils/onDropOrPaste.mjs +1 -0
- package/dist/utils/overlays.mjs +1 -0
- package/dist/utils/reactAriaCompat.mjs +1 -0
- package/dist/utils/reactAriaComponentsCompat.mjs +1 -0
- package/dist/utils/resolveAriaLabelAttrs.mjs +1 -0
- package/dist/utils/resolvePublicUrl.mjs +10 -0
- package/dist/utils/strings.mjs +1 -0
- package/dist/utils/style.mjs +1 -0
- package/dist/utils/svgs.mjs +1 -0
- package/dist/utils/validations.mjs +1 -0
- package/intl/ar.json +2 -2
- package/intl/cs.json +2 -2
- package/intl/cy.json +4 -4
- package/intl/da.json +3 -3
- package/intl/de.json +3 -3
- package/intl/el.json +2 -2
- package/intl/en-GB.json +2 -2
- package/intl/en.json +2 -2
- package/intl/fi.json +3 -3
- package/intl/fr-CA.json +1 -1
- package/intl/fr.json +2 -2
- package/intl/he.json +3 -3
- package/intl/hr.json +3 -3
- package/intl/id.json +3 -3
- package/intl/ja.json +2 -2
- package/intl/ko.json +1 -1
- package/intl/ms.json +2 -2
- package/intl/nb-NO.json +3 -3
- package/intl/nl.json +4 -4
- package/intl/pt-PT.json +1 -1
- package/intl/pt.json +3 -3
- package/intl/ru.json +2 -2
- package/intl/sk.json +2 -2
- package/intl/sl.json +4 -4
- package/intl/sv.json +3 -3
- package/intl/th.json +1 -1
- package/intl/tr.json +3 -3
- package/intl/uk.json +1 -1
- package/intl/zh-Hant.json +2 -2
- package/messages.json +2 -2
- package/package.json +8 -5
- package/sbom.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1507,6 +1507,21 @@ interface AutocompleteProps<T = object> extends AriaAutocompleteProps<T>, SlotPr
|
|
|
1507
1507
|
*/
|
|
1508
1508
|
declare function Autocomplete<T>(props: AutocompleteProps<T>): JSX.Element;
|
|
1509
1509
|
|
|
1510
|
+
interface Filter {
|
|
1511
|
+
/** Returns whether a string starts with a given substring. */
|
|
1512
|
+
startsWith: (string: string, substring: string) => boolean;
|
|
1513
|
+
/** Returns whether a string ends with a given substring. */
|
|
1514
|
+
endsWith: (string: string, substring: string) => boolean;
|
|
1515
|
+
/** Returns whether a string contains a given substring. */
|
|
1516
|
+
contains: (string: string, substring: string) => boolean;
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Provides localized string search functionality that is useful for filtering or matching items in
|
|
1520
|
+
* a list. Options can be provided to adjust the sensitivity to case, diacritics, and other
|
|
1521
|
+
* parameters.
|
|
1522
|
+
*/
|
|
1523
|
+
declare function useFilter(options?: Intl.CollatorOptions): Filter;
|
|
1524
|
+
|
|
1510
1525
|
interface LinkProps$1 extends PressEvents, FocusableProps$1 {
|
|
1511
1526
|
}
|
|
1512
1527
|
interface AriaLinkProps extends LinkProps$1, LinkDOMProps, AriaLabelingProps {
|
|
@@ -5544,21 +5559,6 @@ interface I18nProviderProps$1 {
|
|
|
5544
5559
|
*/
|
|
5545
5560
|
declare function useLocale(): Locale;
|
|
5546
5561
|
|
|
5547
|
-
interface Filter {
|
|
5548
|
-
/** Returns whether a string starts with a given substring. */
|
|
5549
|
-
startsWith: (string: string, substring: string) => boolean;
|
|
5550
|
-
/** Returns whether a string ends with a given substring. */
|
|
5551
|
-
endsWith: (string: string, substring: string) => boolean;
|
|
5552
|
-
/** Returns whether a string contains a given substring. */
|
|
5553
|
-
contains: (string: string, substring: string) => boolean;
|
|
5554
|
-
}
|
|
5555
|
-
/**
|
|
5556
|
-
* Provides localized string search functionality that is useful for filtering or matching items in
|
|
5557
|
-
* a list. Options can be provided to adjust the sensitivity to case, diacritics, and other
|
|
5558
|
-
* parameters.
|
|
5559
|
-
*/
|
|
5560
|
-
declare function useFilter(options?: Intl.CollatorOptions): Filter;
|
|
5561
|
-
|
|
5562
5562
|
interface PressProps extends PressEvents {
|
|
5563
5563
|
/** Whether the target is in a controlled press state (e.g. an overlay it triggers is open). */
|
|
5564
5564
|
isPressed?: boolean;
|
|
@@ -7020,6 +7020,13 @@ interface ColorSwatchProps extends Omit<AriaColorSwatchProps, "colorName">, Styl
|
|
|
7020
7020
|
* @default HelpIcon
|
|
7021
7021
|
*/
|
|
7022
7022
|
indeterminateIcon?: React__default.FC<IconProps> | null;
|
|
7023
|
+
/**
|
|
7024
|
+
* Overrides the accessible label used when the swatch has no colour
|
|
7025
|
+
* applied.
|
|
7026
|
+
*
|
|
7027
|
+
* Message id: `bui.colorSwatch.none`. Defaults to `"None"`.
|
|
7028
|
+
*/
|
|
7029
|
+
noneLabel?: string;
|
|
7023
7030
|
}
|
|
7024
7031
|
|
|
7025
7032
|
declare const ColorSwatch: React__default.ForwardRefExoticComponent<ColorSwatchProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -7170,7 +7177,9 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7170
7177
|
*/
|
|
7171
7178
|
storePickedColorKey?: string;
|
|
7172
7179
|
/**
|
|
7173
|
-
* The label to show on the add color button
|
|
7180
|
+
* The label to show on the add color button that opens the color picker
|
|
7181
|
+
* for defining a new custom color. Not to be confused with `addLabel`,
|
|
7182
|
+
* which labels the "Add" confirmation button inside that picker.
|
|
7174
7183
|
*
|
|
7175
7184
|
* @default Add Color
|
|
7176
7185
|
*/
|
|
@@ -7187,6 +7196,52 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7187
7196
|
* @default Custom Colors
|
|
7188
7197
|
*/
|
|
7189
7198
|
customColorsLabel?: string;
|
|
7199
|
+
/**
|
|
7200
|
+
* Overrides the label of the button that saves the custom color being
|
|
7201
|
+
* defined into the palette (shown inside the new-color picker in
|
|
7202
|
+
* `pickerMode="lazy"`). Not to be confused with `addColorButtonLabel`,
|
|
7203
|
+
* which labels the button that opens that picker.
|
|
7204
|
+
*
|
|
7205
|
+
* Message id: `bui.colorInput.add`. Defaults to `"Add"`.
|
|
7206
|
+
*/
|
|
7207
|
+
addLabel?: string;
|
|
7208
|
+
/**
|
|
7209
|
+
* Overrides the label of the button that abandons the custom color being
|
|
7210
|
+
* defined (shown inside the new-color picker in `pickerMode="lazy"`).
|
|
7211
|
+
*
|
|
7212
|
+
* Message id: `bui.colorInput.cancel`. Defaults to `"Cancel"`.
|
|
7213
|
+
*/
|
|
7214
|
+
cancelLabel?: string;
|
|
7215
|
+
/**
|
|
7216
|
+
* Overrides the accessible name of the dialog holding the color picker
|
|
7217
|
+
* used to define a new custom color, in `pickerMode="lazy"`.
|
|
7218
|
+
*
|
|
7219
|
+
* Message id: `bui.colorInput.newColor`. Defaults to `"New Custom Color"`.
|
|
7220
|
+
*/
|
|
7221
|
+
newColorLabel?: string;
|
|
7222
|
+
/**
|
|
7223
|
+
* Overrides the accessible name of the control that switches the notation
|
|
7224
|
+
* a color is entered in (HEX, RGB).
|
|
7225
|
+
*
|
|
7226
|
+
* Message id: `bui.colorInput.colorFormat`. Defaults to `"Color Format"`.
|
|
7227
|
+
*/
|
|
7228
|
+
colorFormatLabel?: string;
|
|
7229
|
+
/**
|
|
7230
|
+
* Overrides the accessible name of the group of predefined color swatches.
|
|
7231
|
+
*
|
|
7232
|
+
* Message id: `bui.colorInput.colorPresets`. Defaults to `"Color Presets"`.
|
|
7233
|
+
*/
|
|
7234
|
+
colorPresetsLabel?: string;
|
|
7235
|
+
/**
|
|
7236
|
+
* Overrides the label of the swatch that clears the color selection, and the
|
|
7237
|
+
* accessible name of the trigger swatch while no color is set. Triggers that
|
|
7238
|
+
* render no swatch are unaffected; a custom `renderTriggerButton` must
|
|
7239
|
+
* forward the `noneLabel` it receives.
|
|
7240
|
+
*
|
|
7241
|
+
* Message ids: `bui.colorInput.noColor` (preset swatch),
|
|
7242
|
+
* `bui.colorSwatch.none` (trigger swatch). Both default to `"None"`.
|
|
7243
|
+
*/
|
|
7244
|
+
noColorLabel?: string;
|
|
7190
7245
|
/**
|
|
7191
7246
|
* An optional function to render the custom trigger button.
|
|
7192
7247
|
*
|
|
@@ -7199,7 +7254,7 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7199
7254
|
colorName?: string | boolean;
|
|
7200
7255
|
triggerProps: AriaButtonProps<"button">;
|
|
7201
7256
|
labelId?: string;
|
|
7202
|
-
} & Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon">) => React__default.JSX.Element;
|
|
7257
|
+
} & Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon" | "noneLabel">) => React__default.JSX.Element;
|
|
7203
7258
|
/**
|
|
7204
7259
|
* Handler that is called when the user stops dragging or clicking on the
|
|
7205
7260
|
* color picker. In case of presets, this is called when the user clicks on a
|
|
@@ -7212,6 +7267,20 @@ interface ColorInputProps extends OverlayTriggerProps$1, StylingProps, Pick<Colo
|
|
|
7212
7267
|
* @default false
|
|
7213
7268
|
*/
|
|
7214
7269
|
isIndeterminate?: boolean;
|
|
7270
|
+
/**
|
|
7271
|
+
* Overrides the accessible name of the color trigger when the current
|
|
7272
|
+
* selection spans several different colors (`isIndeterminate` is `true`).
|
|
7273
|
+
*
|
|
7274
|
+
* Message id: `bui.colorInput.indeterminate`. Defaults to `"Indeterminate"`.
|
|
7275
|
+
*/
|
|
7276
|
+
indeterminateLabel?: string;
|
|
7277
|
+
/**
|
|
7278
|
+
* Overrides the label of the swatch representing a fully transparent
|
|
7279
|
+
* color.
|
|
7280
|
+
*
|
|
7281
|
+
* Message id: `bui.colorInput.transparent`. Defaults to `"Transparent"`.
|
|
7282
|
+
*/
|
|
7283
|
+
transparentLabel?: string;
|
|
7215
7284
|
/**
|
|
7216
7285
|
* Handler that is called when the user presses the trigger button. This can
|
|
7217
7286
|
* be used to track events like clicks on the trigger button.
|
|
@@ -7229,11 +7298,11 @@ interface IconColorInputProps extends StylingProps, Omit<ColorInputProps, "rende
|
|
|
7229
7298
|
|
|
7230
7299
|
declare const ColorInput: React__default.ForwardRefExoticComponent<ColorInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
7231
7300
|
|
|
7232
|
-
declare const IconColorInputButton: React__default.ForwardRefExoticComponent<Omit<ColorInputButtonProps, "color" | "children" | "labelPosition"> & {
|
|
7301
|
+
declare const IconColorInputButton: React__default.ForwardRefExoticComponent<Omit<ColorInputButtonProps, "color" | "children" | "labelPosition" | "noneLabel"> & {
|
|
7233
7302
|
icon: React__default.FC<IconProps>;
|
|
7234
7303
|
color?: string | null;
|
|
7235
7304
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
7236
|
-
interface ColorInputButtonProps extends Omit<ActionButtonProps, "label" | "className" | "style">, StylingProps, Pick<ColorInputProps, "colorLabel">, Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon"> {
|
|
7305
|
+
interface ColorInputButtonProps extends Omit<ActionButtonProps, "label" | "className" | "style">, StylingProps, Pick<ColorInputProps, "colorLabel">, Pick<ColorSwatchProps, "isIndeterminate" | "indeterminateIcon" | "noneLabel"> {
|
|
7237
7306
|
isOpen: boolean;
|
|
7238
7307
|
"aria-label"?: string;
|
|
7239
7308
|
labelPosition?: "top" | "start";
|
|
@@ -7672,6 +7741,42 @@ interface CalendarBaseProps {
|
|
|
7672
7741
|
* @default "title"
|
|
7673
7742
|
*/
|
|
7674
7743
|
headerVariant?: CalendarHeaderVariant;
|
|
7744
|
+
/**
|
|
7745
|
+
* Overrides the accessible label of the button that moves the calendar forward one month.
|
|
7746
|
+
*
|
|
7747
|
+
* Message id: `bui.calendar.nextMonth`. Defaults to `"Next month"`.
|
|
7748
|
+
*/
|
|
7749
|
+
nextMonthLabel?: string;
|
|
7750
|
+
/**
|
|
7751
|
+
* Overrides the accessible label of the button that moves the calendar back one month.
|
|
7752
|
+
*
|
|
7753
|
+
* Message id: `bui.calendar.previousMonth`. Defaults to `"Previous month"`.
|
|
7754
|
+
*/
|
|
7755
|
+
previousMonthLabel?: string;
|
|
7756
|
+
/**
|
|
7757
|
+
* Overrides the accessible label of the button that moves the calendar forward one year.
|
|
7758
|
+
*
|
|
7759
|
+
* Message id: `bui.calendar.nextYear`. Defaults to `"Next year"`.
|
|
7760
|
+
*/
|
|
7761
|
+
nextYearLabel?: string;
|
|
7762
|
+
/**
|
|
7763
|
+
* Overrides the accessible label of the button that moves the calendar back one year.
|
|
7764
|
+
*
|
|
7765
|
+
* Message id: `bui.calendar.previousYear`. Defaults to `"Previous year"`.
|
|
7766
|
+
*/
|
|
7767
|
+
previousYearLabel?: string;
|
|
7768
|
+
/**
|
|
7769
|
+
* Overrides the accessible label of the dropdown that jumps the calendar to a chosen month.
|
|
7770
|
+
*
|
|
7771
|
+
* Message id: `bui.calendar.selectMonth`. Defaults to `"Select month"`.
|
|
7772
|
+
*/
|
|
7773
|
+
selectMonthLabel?: string;
|
|
7774
|
+
/**
|
|
7775
|
+
* Overrides the accessible label of the dropdown that jumps the calendar to a chosen year.
|
|
7776
|
+
*
|
|
7777
|
+
* Message id: `bui.calendar.selectYear`. Defaults to `"Select year"`.
|
|
7778
|
+
*/
|
|
7779
|
+
selectYearLabel?: string;
|
|
7675
7780
|
}
|
|
7676
7781
|
type CalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<CalendarProps$1<T>, "visibleDuration"> & CalendarBaseProps;
|
|
7677
7782
|
type RangeCalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<RangeCalendarProps$1<T>, "visibleDuration"> & CalendarBaseProps;
|
|
@@ -7718,23 +7823,151 @@ interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<Num
|
|
|
7718
7823
|
size?: "xs" | "sm" | "md" | "lg";
|
|
7719
7824
|
/** Whether to hide the increment and decrement actions. */
|
|
7720
7825
|
hideActions?: boolean;
|
|
7826
|
+
/**
|
|
7827
|
+
* Overrides the accessible name announcing the current position in the
|
|
7828
|
+
* document.
|
|
7829
|
+
*
|
|
7830
|
+
* Message id: `bui.pagination.pageXofY`. Defaults to
|
|
7831
|
+
* `"Page {arg0} of {arg1}"`, where `arg0` is the current page and `arg1`
|
|
7832
|
+
* the total page count. A string is used as-is, with no placeholder
|
|
7833
|
+
* substitution. To include the numbers, pass a function — it receives
|
|
7834
|
+
* `{ page, totalPages }` and its return value is used verbatim.
|
|
7835
|
+
*/
|
|
7836
|
+
pageXofYLabel?: string | ((values: {
|
|
7837
|
+
page: number;
|
|
7838
|
+
totalPages: number;
|
|
7839
|
+
}) => string);
|
|
7721
7840
|
}
|
|
7722
7841
|
|
|
7723
7842
|
declare const Pagination: React__default.ForwardRefExoticComponent<PaginationProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
7724
7843
|
|
|
7844
|
+
interface MessageIssueBase {
|
|
7845
|
+
/**
|
|
7846
|
+
* The active locale, except for `locale-alias-collision` — there it is the
|
|
7847
|
+
* hyphenated catalog key that won. For a malformed `defaultMessage` it is
|
|
7848
|
+
* still the active locale, though that template is locale-independent.
|
|
7849
|
+
*/
|
|
7850
|
+
locale: string;
|
|
7851
|
+
/**
|
|
7852
|
+
* Human-readable description of the failure. Some issues name detail no field
|
|
7853
|
+
* carries, so this is what the console channel prints — but its **wording is
|
|
7854
|
+
* not part of the public contract**: branch on `code` and the fields beside
|
|
7855
|
+
* it rather than parsing this.
|
|
7856
|
+
*/
|
|
7857
|
+
message: string;
|
|
7858
|
+
}
|
|
7859
|
+
/**
|
|
7860
|
+
* A single message-resolution failure, as reported to `onMessageIssue`.
|
|
7861
|
+
* Discriminated on `code`, so `id` is guaranteed on the issues that name one
|
|
7862
|
+
* and `error` is reachable only where something actually threw.
|
|
7863
|
+
*
|
|
7864
|
+
* The `?: undefined` members are what let a consumer read `issue.id` before
|
|
7865
|
+
* narrowing on `code`; declaring them absent instead would make that a type
|
|
7866
|
+
* error on the codes that carry no id.
|
|
7867
|
+
*/
|
|
7868
|
+
type MessageIssue = (MessageIssueBase & {
|
|
7869
|
+
code: "missing-message" | "deprecated-message-id";
|
|
7870
|
+
id: string;
|
|
7871
|
+
source?: undefined;
|
|
7872
|
+
error?: undefined;
|
|
7873
|
+
}) | (MessageIssueBase & {
|
|
7874
|
+
code: "malformed-message";
|
|
7875
|
+
id: string;
|
|
7876
|
+
/**
|
|
7877
|
+
* Which template would not format: `"catalog"` is an entry from the
|
|
7878
|
+
* `messages` you supplied, `"defaultMessage"` the English fallback the
|
|
7879
|
+
* component (or your own `defineMessages` call) declares. They route
|
|
7880
|
+
* differently — one is a translation to fix, the other a defect in the
|
|
7881
|
+
* declaring code.
|
|
7882
|
+
*/
|
|
7883
|
+
source: "catalog" | "defaultMessage";
|
|
7884
|
+
/**
|
|
7885
|
+
* Whatever the formatter threw. Untyped because nothing guarantees an
|
|
7886
|
+
* `Error` — narrow with `error instanceof Error ? error.message :
|
|
7887
|
+
* String(error)`.
|
|
7888
|
+
*/
|
|
7889
|
+
error: unknown;
|
|
7890
|
+
}) | (MessageIssueBase & {
|
|
7891
|
+
code: "no-catalog-for-locale" | "locale-alias-collision";
|
|
7892
|
+
id?: undefined;
|
|
7893
|
+
source?: undefined;
|
|
7894
|
+
error?: undefined;
|
|
7895
|
+
});
|
|
7896
|
+
/**
|
|
7897
|
+
* The kinds of message-resolution failure `I18nProvider` reports.
|
|
7898
|
+
*
|
|
7899
|
+
* - `missing-message` — no supplied catalog answers for the id, so its
|
|
7900
|
+
* `defaultMessage` renders instead (or the id itself, when it declares none).
|
|
7901
|
+
* Reported for Baseline UI's own `bui.*` ids only: an app routing its own
|
|
7902
|
+
* strings through `useI18n` is missing no translation we can tell it how to
|
|
7903
|
+
* add.
|
|
7904
|
+
* - `malformed-message` — a catalog entry (or a `defaultMessage`) could not be
|
|
7905
|
+
* parsed or formatted as an ICU template; `source` says which. Covers a
|
|
7906
|
+
* template that will not parse and a placeholder value the caller did not
|
|
7907
|
+
* supply, and — unlike `missing-message` — is reported for any id, since
|
|
7908
|
+
* whoever wrote the template can act on it.
|
|
7909
|
+
* - `deprecated-message-id` — the id resolved only through the deprecated
|
|
7910
|
+
* bare-id fallback (`bui.editor.bold` answered by `bold`). In development,
|
|
7911
|
+
* `message` also names the other ids that bare id answers for; production
|
|
7912
|
+
* builds drop that detail to keep the id map out of the bundle.
|
|
7913
|
+
* - `no-catalog-for-locale` — catalogs were supplied, but none of them covers
|
|
7914
|
+
* the active locale, so every message falls back to English. Not reported
|
|
7915
|
+
* when the active locale is itself English, where that is the intended
|
|
7916
|
+
* result.
|
|
7917
|
+
* - `locale-alias-collision` — the same locale was supplied under two ID
|
|
7918
|
+
* formats (`pt_BR` and `pt-BR`); the hyphenated entry wins.
|
|
7919
|
+
*
|
|
7920
|
+
* Further codes may be added in a minor release. Handle the ones you care
|
|
7921
|
+
* about and let the rest fall through to a default branch.
|
|
7922
|
+
*/
|
|
7923
|
+
type MessageIssueCode = MessageIssue["code"];
|
|
7725
7924
|
interface I18nProviderProps extends I18nProviderProps$1 {
|
|
7726
7925
|
messages?: LocalizedStrings;
|
|
7727
7926
|
children: React__default.ReactNode;
|
|
7728
7927
|
locale?: string;
|
|
7729
7928
|
/**
|
|
7730
|
-
* Whether to `console.warn` about message
|
|
7731
|
-
*
|
|
7732
|
-
*
|
|
7733
|
-
* in
|
|
7929
|
+
* Whether to `console.warn` about message-resolution failures — see
|
|
7930
|
+
* {@link MessageIssueCode} for the kinds. These warnings are development
|
|
7931
|
+
* guidance, so they are off in production builds — pass `true` to opt back
|
|
7932
|
+
* in. Ignored when `onMessageIssue` is supplied.
|
|
7734
7933
|
*
|
|
7735
7934
|
* @default process.env.NODE_ENV !== "production"
|
|
7736
7935
|
*/
|
|
7737
7936
|
shouldLogMissingMessages?: boolean;
|
|
7937
|
+
/**
|
|
7938
|
+
* Called for every message-resolution failure, with enough detail to tell an
|
|
7939
|
+
* unresolved id from a malformed message and route either into your own
|
|
7940
|
+
* diagnostics.
|
|
7941
|
+
*
|
|
7942
|
+
* Supplying a handler takes ownership of these failures: Baseline UI reports
|
|
7943
|
+
* to it instead of writing to the console, so `shouldLogMissingMessages` no
|
|
7944
|
+
* longer applies. Unlike the console warnings, the handler is also called in
|
|
7945
|
+
* production builds.
|
|
7946
|
+
*
|
|
7947
|
+
* Issues are deduplicated: after mount, each distinct failure is reported
|
|
7948
|
+
* once per locale rather than once per render, and changing the locale starts
|
|
7949
|
+
* a fresh set.
|
|
7950
|
+
*
|
|
7951
|
+
* Called **during render** — except `locale-alias-collision`, which is
|
|
7952
|
+
* reported from an effect — so it must not set state synchronously. Collect
|
|
7953
|
+
* into a ref, or defer with `queueMicrotask`, if a failure needs to reach the
|
|
7954
|
+
* UI. A handler that throws is caught and its own error logged, so a broken
|
|
7955
|
+
* handler cannot take the tree down.
|
|
7956
|
+
*
|
|
7957
|
+
* @example
|
|
7958
|
+
* ```tsx
|
|
7959
|
+
* <I18nProvider
|
|
7960
|
+
* messages={messages}
|
|
7961
|
+
* onMessageIssue={(issue) => {
|
|
7962
|
+
* if (issue.code === "missing-message") return;
|
|
7963
|
+
* telemetry.report(issue.code, { id: issue.id, locale: issue.locale });
|
|
7964
|
+
* }}
|
|
7965
|
+
* >
|
|
7966
|
+
* {children}
|
|
7967
|
+
* </I18nProvider>
|
|
7968
|
+
* ```;
|
|
7969
|
+
*/
|
|
7970
|
+
onMessageIssue?: (issue: MessageIssue) => void;
|
|
7738
7971
|
}
|
|
7739
7972
|
|
|
7740
7973
|
declare const I18nProvider: React__default.FC<I18nProviderProps>;
|
|
@@ -8077,6 +8310,38 @@ interface SelectProps<M extends SelectionMode = SelectionMode> extends Omit<Aria
|
|
|
8077
8310
|
* @default false
|
|
8078
8311
|
*/
|
|
8079
8312
|
hideClear?: boolean;
|
|
8313
|
+
/**
|
|
8314
|
+
* Overrides the label of the button that unticks every selected option.
|
|
8315
|
+
*
|
|
8316
|
+
* Message id: `bui.select.clear`. Defaults to `"Clear"`.
|
|
8317
|
+
*/
|
|
8318
|
+
clearLabel?: string;
|
|
8319
|
+
/**
|
|
8320
|
+
* Overrides the placeholder and accessible name of the input that filters
|
|
8321
|
+
* the option list.
|
|
8322
|
+
*
|
|
8323
|
+
* Message id: `bui.select.search`. Defaults to `"Search"`.
|
|
8324
|
+
*/
|
|
8325
|
+
searchLabel?: string;
|
|
8326
|
+
/**
|
|
8327
|
+
* Overrides the label of the button that ticks every option in a
|
|
8328
|
+
* multi-select list.
|
|
8329
|
+
*
|
|
8330
|
+
* Message id: `bui.select.selectAll`. Defaults to `"Select All"`.
|
|
8331
|
+
*/
|
|
8332
|
+
selectAllLabel?: string;
|
|
8333
|
+
/**
|
|
8334
|
+
* Overrides the tag shown on the select trigger standing in for the
|
|
8335
|
+
* selected options that did not fit.
|
|
8336
|
+
*
|
|
8337
|
+
* Message id: `bui.select.more`. Defaults to `"+{count} more"`, where
|
|
8338
|
+
* `count` is the number of hidden options. A string is used as-is, with
|
|
8339
|
+
* no placeholder substitution. To include `count`, pass a function — it
|
|
8340
|
+
* receives `{ count }` and its return value is used verbatim.
|
|
8341
|
+
*/
|
|
8342
|
+
moreLabel?: string | ((values: {
|
|
8343
|
+
count: number;
|
|
8344
|
+
}) => string);
|
|
8080
8345
|
}
|
|
8081
8346
|
interface IconSelectProps extends Omit<SelectProps, "renderTrigger" | "aria-label" | "selectionMode">, IconComponentProps {
|
|
8082
8347
|
}
|
|
@@ -8203,6 +8468,12 @@ interface InlineAlertProps extends StylingProps {
|
|
|
8203
8468
|
* close button will be rendered.
|
|
8204
8469
|
*/
|
|
8205
8470
|
onClose?: () => void;
|
|
8471
|
+
/**
|
|
8472
|
+
* Overrides the accessible label of the close button.
|
|
8473
|
+
*
|
|
8474
|
+
* Message id: `bui.inlineAlert.close`. Defaults to `"Close"`.
|
|
8475
|
+
*/
|
|
8476
|
+
closeLabel?: string;
|
|
8206
8477
|
/**
|
|
8207
8478
|
* The arrangement of the variable.
|
|
8208
8479
|
*
|
|
@@ -8239,6 +8510,12 @@ interface DrawerProps extends StylingProps, AriaDialogProps {
|
|
|
8239
8510
|
contentStyle?: React__default.CSSProperties;
|
|
8240
8511
|
/** The class name of the content container. */
|
|
8241
8512
|
contentClassName?: string;
|
|
8513
|
+
/**
|
|
8514
|
+
* Overrides the accessible label of the close button.
|
|
8515
|
+
*
|
|
8516
|
+
* Message id: `bui.drawer.close`. Defaults to `"Close"`.
|
|
8517
|
+
*/
|
|
8518
|
+
closeLabel?: string;
|
|
8242
8519
|
}
|
|
8243
8520
|
|
|
8244
8521
|
declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -8643,6 +8920,11 @@ interface MessageFormatProps {
|
|
|
8643
8920
|
id: string;
|
|
8644
8921
|
/** The default message to use if the message id is not found. */
|
|
8645
8922
|
defaultMessage?: string;
|
|
8923
|
+
/**
|
|
8924
|
+
* Values for the message's ICU placeholders, e.g. `{ arg0: 2, arg1: 10 }` for
|
|
8925
|
+
* `"Page {arg0} of {arg1}"`.
|
|
8926
|
+
*/
|
|
8927
|
+
values?: Record<string, any>;
|
|
8646
8928
|
}
|
|
8647
8929
|
|
|
8648
8930
|
declare const MessageFormat: React__default.FC<MessageFormatProps>;
|
|
@@ -8718,6 +9000,14 @@ interface ToolbarProps extends StylingProps, AriaToolbarProps {
|
|
|
8718
9000
|
* @default true
|
|
8719
9001
|
*/
|
|
8720
9002
|
isSingleTabStop?: boolean;
|
|
9003
|
+
/**
|
|
9004
|
+
* Overrides the accessible label of the overflow button that reveals the
|
|
9005
|
+
* toolbar items which did not fit in the available width. This prop is
|
|
9006
|
+
* only relevant when `isCollapsible` is true.
|
|
9007
|
+
*
|
|
9008
|
+
* Message id: `bui.toolbar.more`. Defaults to `"More"`.
|
|
9009
|
+
*/
|
|
9010
|
+
moreLabel?: string;
|
|
8721
9011
|
}
|
|
8722
9012
|
|
|
8723
9013
|
declare const Toolbar: React__default.ForwardRefExoticComponent<ToolbarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -8918,6 +9208,182 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
|
|
|
8918
9208
|
* @default true
|
|
8919
9209
|
*/
|
|
8920
9210
|
autoLink?: boolean;
|
|
9211
|
+
/**
|
|
9212
|
+
* Overrides the accessible name of the toolbar button that inserts an
|
|
9213
|
+
* @-mention, and the accessible name of the mention combobox it opens.
|
|
9214
|
+
*
|
|
9215
|
+
* Message id: `bui.editor.mention`. Defaults to `"Mention"`.
|
|
9216
|
+
*/
|
|
9217
|
+
mentionLabel?: string;
|
|
9218
|
+
/**
|
|
9219
|
+
* Overrides the accessible name of the rich text toolbar's Bold toggle, and
|
|
9220
|
+
* the matching row in the keyboard shortcut dialog.
|
|
9221
|
+
*
|
|
9222
|
+
* Message id: `bui.editor.bold`. Defaults to `"Bold"`.
|
|
9223
|
+
*/
|
|
9224
|
+
boldLabel?: string;
|
|
9225
|
+
/**
|
|
9226
|
+
* Overrides the accessible name of the rich text toolbar's Italic toggle,
|
|
9227
|
+
* and the matching row in the keyboard shortcut dialog.
|
|
9228
|
+
*
|
|
9229
|
+
* Message id: `bui.editor.italic`. Defaults to `"Italic"`.
|
|
9230
|
+
*/
|
|
9231
|
+
italicLabel?: string;
|
|
9232
|
+
/**
|
|
9233
|
+
* Overrides the accessible name of the rich text toolbar's Underline
|
|
9234
|
+
* toggle, and the matching row in the keyboard shortcut dialog.
|
|
9235
|
+
*
|
|
9236
|
+
* Message id: `bui.editor.underline`. Defaults to `"Underline"`.
|
|
9237
|
+
*/
|
|
9238
|
+
underlineLabel?: string;
|
|
9239
|
+
/**
|
|
9240
|
+
* Overrides the accessible name of the toolbar control that sets the
|
|
9241
|
+
* colour of the selected text.
|
|
9242
|
+
*
|
|
9243
|
+
* Message id: `bui.editor.fontColor`. Defaults to `"Font color"`.
|
|
9244
|
+
*/
|
|
9245
|
+
fontColorLabel?: string;
|
|
9246
|
+
/**
|
|
9247
|
+
* Overrides the accessible name of the toolbar control that sets the
|
|
9248
|
+
* highlight colour drawn behind the selected text.
|
|
9249
|
+
*
|
|
9250
|
+
* Message id: `bui.editor.backgroundColor`. Defaults to `"Background color"`.
|
|
9251
|
+
*/
|
|
9252
|
+
backgroundColorLabel?: string;
|
|
9253
|
+
/**
|
|
9254
|
+
* Overrides the title of the keyboard shortcut dialog, and the accessible
|
|
9255
|
+
* name of the toolbar button that opens it.
|
|
9256
|
+
*
|
|
9257
|
+
* Message id: `bui.editor.help`. Defaults to `"Help"`.
|
|
9258
|
+
*/
|
|
9259
|
+
helpLabel?: string;
|
|
9260
|
+
/**
|
|
9261
|
+
* Overrides the accessible name of the icon button that dismisses the
|
|
9262
|
+
* keyboard shortcut dialog.
|
|
9263
|
+
*
|
|
9264
|
+
* Message id: `bui.editor.close`. Defaults to `"Close"`.
|
|
9265
|
+
*/
|
|
9266
|
+
closeLabel?: string;
|
|
9267
|
+
/**
|
|
9268
|
+
* Overrides the "Action" column header of the keyboard shortcut dialog's
|
|
9269
|
+
* table.
|
|
9270
|
+
*
|
|
9271
|
+
* Message id: `bui.editor.action`. Defaults to `"Action"`.
|
|
9272
|
+
*/
|
|
9273
|
+
actionLabel?: string;
|
|
9274
|
+
/**
|
|
9275
|
+
* Overrides the "Shortcut" column header of the keyboard shortcut dialog's
|
|
9276
|
+
* table.
|
|
9277
|
+
*
|
|
9278
|
+
* Message id: `bui.editor.shortcut`. Defaults to `"Shortcut"`.
|
|
9279
|
+
*/
|
|
9280
|
+
shortcutLabel?: string;
|
|
9281
|
+
/**
|
|
9282
|
+
* Overrides the row label for the "move focus to the toolbar" command in
|
|
9283
|
+
* the keyboard shortcut dialog.
|
|
9284
|
+
*
|
|
9285
|
+
* Message id: `bui.editor.toolbarFocus`. Defaults to `"Toolbar Focus"`.
|
|
9286
|
+
*/
|
|
9287
|
+
toolbarFocusLabel?: string;
|
|
9288
|
+
/**
|
|
9289
|
+
* Overrides the row label for the "select all" command in the keyboard
|
|
9290
|
+
* shortcut dialog.
|
|
9291
|
+
*
|
|
9292
|
+
* Message id: `bui.editor.selectAll`. Defaults to `"Select All"`.
|
|
9293
|
+
*/
|
|
9294
|
+
selectAllLabel?: string;
|
|
9295
|
+
/**
|
|
9296
|
+
* Overrides the row label for the "cut" command in the keyboard shortcut
|
|
9297
|
+
* dialog.
|
|
9298
|
+
*
|
|
9299
|
+
* Message id: `bui.editor.cut`. Defaults to `"Cut"`.
|
|
9300
|
+
*/
|
|
9301
|
+
cutLabel?: string;
|
|
9302
|
+
/**
|
|
9303
|
+
* Overrides the row label for the "copy" command in the keyboard shortcut
|
|
9304
|
+
* dialog.
|
|
9305
|
+
*
|
|
9306
|
+
* Message id: `bui.editor.copy`. Defaults to `"Copy"`.
|
|
9307
|
+
*/
|
|
9308
|
+
copyLabel?: string;
|
|
9309
|
+
/**
|
|
9310
|
+
* Overrides the row label for the "paste" command in the keyboard shortcut
|
|
9311
|
+
* dialog.
|
|
9312
|
+
*
|
|
9313
|
+
* Message id: `bui.editor.paste`. Defaults to `"Paste"`.
|
|
9314
|
+
*/
|
|
9315
|
+
pasteLabel?: string;
|
|
9316
|
+
/**
|
|
9317
|
+
* Overrides the row label for the "undo" command in the keyboard shortcut
|
|
9318
|
+
* dialog.
|
|
9319
|
+
*
|
|
9320
|
+
* Message id: `bui.editor.undo`. Defaults to `"Undo"`.
|
|
9321
|
+
*/
|
|
9322
|
+
undoLabel?: string;
|
|
9323
|
+
/**
|
|
9324
|
+
* Overrides the row label for the "redo" command in the keyboard shortcut
|
|
9325
|
+
* dialog.
|
|
9326
|
+
*
|
|
9327
|
+
* Message id: `bui.editor.redo`. Defaults to `"Redo"`.
|
|
9328
|
+
*/
|
|
9329
|
+
redoLabel?: string;
|
|
9330
|
+
/**
|
|
9331
|
+
* Overrides the row label for the "open help dialog" command in the
|
|
9332
|
+
* keyboard shortcut dialog.
|
|
9333
|
+
*
|
|
9334
|
+
* Message id: `bui.editor.openHelpDialog`. Defaults to `"Open Help Dialog"`.
|
|
9335
|
+
*/
|
|
9336
|
+
openHelpDialogLabel?: string;
|
|
9337
|
+
/**
|
|
9338
|
+
* Overrides the row label for the "submit" command in the keyboard
|
|
9339
|
+
* shortcut dialog.
|
|
9340
|
+
*
|
|
9341
|
+
* Message id: `bui.editor.submit`. Defaults to `"Submit"`.
|
|
9342
|
+
*/
|
|
9343
|
+
submitLabel?: string;
|
|
9344
|
+
/**
|
|
9345
|
+
* Overrides the accessible name of the link popover's toolbar trigger
|
|
9346
|
+
* button.
|
|
9347
|
+
*
|
|
9348
|
+
* Message id: `bui.editor.addLink`. Defaults to `"Add Link"`.
|
|
9349
|
+
*/
|
|
9350
|
+
addLinkLabel?: string;
|
|
9351
|
+
/**
|
|
9352
|
+
* Overrides the label of the button that changes the URL of an existing
|
|
9353
|
+
* link, shown in the link popover.
|
|
9354
|
+
*
|
|
9355
|
+
* Message id: `bui.editor.editLink`. Defaults to `"Edit Link"`.
|
|
9356
|
+
*/
|
|
9357
|
+
editLinkLabel?: string;
|
|
9358
|
+
/**
|
|
9359
|
+
* Overrides the label of the button that unlinks the selected text, shown
|
|
9360
|
+
* in the link popover.
|
|
9361
|
+
*
|
|
9362
|
+
* Message id: `bui.editor.removeLink`. Defaults to `"Remove Link"`.
|
|
9363
|
+
*/
|
|
9364
|
+
removeLinkLabel?: string;
|
|
9365
|
+
/**
|
|
9366
|
+
* Overrides the label of the URL field in the link popover.
|
|
9367
|
+
*
|
|
9368
|
+
* Message id: `bui.editor.linkAnnotation`. Defaults to `"Link"`.
|
|
9369
|
+
*/
|
|
9370
|
+
linkAnnotationLabel?: string;
|
|
9371
|
+
/**
|
|
9372
|
+
* Overrides the label of the Cancel button in the link popover's edit mode.
|
|
9373
|
+
* Distinct from `cancelButtonAriaLabel`, which labels the editor footer's
|
|
9374
|
+
* Cancel button.
|
|
9375
|
+
*
|
|
9376
|
+
* Message id: `bui.editor.cancel`. Defaults to `"Cancel"`.
|
|
9377
|
+
*/
|
|
9378
|
+
linkCancelLabel?: string;
|
|
9379
|
+
/**
|
|
9380
|
+
* Overrides the label of the Save button in the link popover's edit mode.
|
|
9381
|
+
* Distinct from `submitButtonAriaLabel`, which labels the editor footer's
|
|
9382
|
+
* Save button.
|
|
9383
|
+
*
|
|
9384
|
+
* Message id: `bui.editor.save`. Defaults to `"Save"`.
|
|
9385
|
+
*/
|
|
9386
|
+
linkSaveLabel?: string;
|
|
8921
9387
|
}
|
|
8922
9388
|
|
|
8923
9389
|
declare const Editor: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<EditorProps & React__default.RefAttributes<HTMLDivElement>>>;
|
|
@@ -9068,7 +9534,18 @@ declare class EditorCore {
|
|
|
9068
9534
|
private doc;
|
|
9069
9535
|
/** The last serialized HTML known to us (including setValue calls). */
|
|
9070
9536
|
private lastKnownHtml;
|
|
9537
|
+
/**
|
|
9538
|
+
* Raw string last applied by {@link setValue}; `lastKnownHtml` holds only the
|
|
9539
|
+
* canonical form, which a non-canonical `value` never matches. Cleared on the
|
|
9540
|
+
* editor's own edits, so re-sending an unchanged `value` still reverts it.
|
|
9541
|
+
*/
|
|
9542
|
+
private lastAppliedValue;
|
|
9071
9543
|
private cachedRange;
|
|
9544
|
+
/**
|
|
9545
|
+
* A doc replacement landed while the editor was unfocused, so `cachedRange`
|
|
9546
|
+
* was never written to the DOM. Replayed by the focus handler.
|
|
9547
|
+
*/
|
|
9548
|
+
private needsSelectionRestore;
|
|
9072
9549
|
private composing;
|
|
9073
9550
|
private pending;
|
|
9074
9551
|
/**
|
|
@@ -9111,6 +9588,7 @@ declare class EditorCore {
|
|
|
9111
9588
|
private readonly handleInputBound;
|
|
9112
9589
|
private readonly handlePasteBound;
|
|
9113
9590
|
private readonly handlePointerDownBound;
|
|
9591
|
+
private readonly handleFocusBound;
|
|
9114
9592
|
private readonly handleCompositionStartBound;
|
|
9115
9593
|
private readonly handleCompositionEndBound;
|
|
9116
9594
|
private readonly handleSelectionChangeBound;
|
|
@@ -9147,6 +9625,7 @@ declare class EditorCore {
|
|
|
9147
9625
|
canUndo(): boolean;
|
|
9148
9626
|
canRedo(): boolean;
|
|
9149
9627
|
focus(): void;
|
|
9628
|
+
private hasFocus;
|
|
9150
9629
|
setCaretPosition(absoluteOffset: number): void;
|
|
9151
9630
|
/**
|
|
9152
9631
|
* Restores a model selection: focuses the editor and writes the range to
|
|
@@ -9490,6 +9969,14 @@ interface AlertDialogProps extends StylingProps, AriaLabelingProps {
|
|
|
9490
9969
|
contentClassName?: string;
|
|
9491
9970
|
/** The class name for the close button. */
|
|
9492
9971
|
closeButtonClassName?: string;
|
|
9972
|
+
/**
|
|
9973
|
+
* Overrides the accessible label of the close button (X) that dismisses
|
|
9974
|
+
* the dialog. This is distinct from `cancelLabel`, which is the visible
|
|
9975
|
+
* text of the footer cancel button.
|
|
9976
|
+
*
|
|
9977
|
+
* Message id: `bui.alertDialog.close`. Defaults to `"Close"`.
|
|
9978
|
+
*/
|
|
9979
|
+
closeLabel?: string;
|
|
9493
9980
|
/** The class name for the button group wrapper. */
|
|
9494
9981
|
buttonsClassName?: string;
|
|
9495
9982
|
/**
|
|
@@ -9537,6 +10024,40 @@ interface AudioPlayerProps extends StylingProps, AriaLabelingProps {
|
|
|
9537
10024
|
* @default "lg"
|
|
9538
10025
|
*/
|
|
9539
10026
|
size?: "sm" | "lg";
|
|
10027
|
+
/**
|
|
10028
|
+
* Overrides the accessible name of the button that starts audio playback.
|
|
10029
|
+
*
|
|
10030
|
+
* Message id: `bui.audioPlayer.play`. Defaults to `"Play"`.
|
|
10031
|
+
*/
|
|
10032
|
+
playLabel?: string;
|
|
10033
|
+
/**
|
|
10034
|
+
* Overrides the accessible name of the button that pauses audio playback.
|
|
10035
|
+
*
|
|
10036
|
+
* Message id: `bui.audioPlayer.pause`. Defaults to `"Pause"`.
|
|
10037
|
+
*/
|
|
10038
|
+
pauseLabel?: string;
|
|
10039
|
+
/**
|
|
10040
|
+
* Overrides the accessible name of the slider used to seek through the
|
|
10041
|
+
* audio track.
|
|
10042
|
+
*
|
|
10043
|
+
* Message id: `bui.audioPlayer.audioTimeline`. Defaults to
|
|
10044
|
+
* `"Audio timeline"`.
|
|
10045
|
+
*/
|
|
10046
|
+
audioTimelineLabel?: string;
|
|
10047
|
+
/**
|
|
10048
|
+
* Overrides the screen reader announcement made when audio playback
|
|
10049
|
+
* starts.
|
|
10050
|
+
*
|
|
10051
|
+
* Message id: `bui.useMedia.playing`. Defaults to `"Playing"`.
|
|
10052
|
+
*/
|
|
10053
|
+
playingLabel?: string;
|
|
10054
|
+
/**
|
|
10055
|
+
* Overrides the screen reader announcement made when audio playback is
|
|
10056
|
+
* paused.
|
|
10057
|
+
*
|
|
10058
|
+
* Message id: `bui.useMedia.paused`. Defaults to `"Paused"`.
|
|
10059
|
+
*/
|
|
10060
|
+
pausedLabel?: string;
|
|
9540
10061
|
}
|
|
9541
10062
|
|
|
9542
10063
|
declare const AudioPlayer: React__default.ForwardRefExoticComponent<AudioPlayerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -9656,6 +10177,28 @@ interface ImageGalleryProps extends StylingProps, Omit<UNSAFE_ListBoxProps, "ite
|
|
|
9656
10177
|
* @default "Are you sure you want to delete this item?"
|
|
9657
10178
|
*/
|
|
9658
10179
|
deleteConfirmationTitle?: string | ((selectedKeys: Selection$1) => string);
|
|
10180
|
+
/**
|
|
10181
|
+
* Overrides the label of the button that permanently deletes the selected
|
|
10182
|
+
* image(s), and the accessible label of each image's individual delete
|
|
10183
|
+
* button.
|
|
10184
|
+
*
|
|
10185
|
+
* Message id: `bui.imageGallery.delete`. Defaults to `"Delete"`.
|
|
10186
|
+
*/
|
|
10187
|
+
deleteLabel?: string;
|
|
10188
|
+
/**
|
|
10189
|
+
* Overrides the label of the button that dismisses the delete confirmation
|
|
10190
|
+
* modal without deleting anything.
|
|
10191
|
+
*
|
|
10192
|
+
* Message id: `bui.imageGallery.cancel`. Defaults to `"Cancel"`.
|
|
10193
|
+
*/
|
|
10194
|
+
cancelLabel?: string;
|
|
10195
|
+
/**
|
|
10196
|
+
* Overrides the accessible label announced while an image is still
|
|
10197
|
+
* loading.
|
|
10198
|
+
*
|
|
10199
|
+
* Message id: `bui.imageGallery.loading`. Defaults to `"Loading"`.
|
|
10200
|
+
*/
|
|
10201
|
+
loadingLabel?: string;
|
|
9659
10202
|
}
|
|
9660
10203
|
|
|
9661
10204
|
declare const ImageGallery: React__default.ForwardRefExoticComponent<ImageGalleryProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -10012,7 +10555,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
|
|
|
10012
10555
|
|
|
10013
10556
|
declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
10014
10557
|
|
|
10015
|
-
declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "
|
|
10558
|
+
declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isRequired" | "validate" | "isInvalid"> & Pick<SharedInputProps, "label" | "validationState" | "variant" | "labelPosition"> & InputMessage & React__default.RefAttributes<HTMLDivElement>>;
|
|
10016
10559
|
|
|
10017
10560
|
type TimeFieldProps = StylingProps & Omit<Omit<TimeFieldStateOptions, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isInvalid" | "isRequired" | "validate"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
|
|
10018
10561
|
|
|
@@ -10088,6 +10631,20 @@ interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-desc
|
|
|
10088
10631
|
* @default "start"
|
|
10089
10632
|
*/
|
|
10090
10633
|
actionsPosition?: "start" | "end";
|
|
10634
|
+
/**
|
|
10635
|
+
* Overrides the accessible label of the button that expands a tree item to
|
|
10636
|
+
* reveal its children.
|
|
10637
|
+
*
|
|
10638
|
+
* Message id: `bui.treeView.expand`. Defaults to `"Expand"`.
|
|
10639
|
+
*/
|
|
10640
|
+
expandLabel?: string;
|
|
10641
|
+
/**
|
|
10642
|
+
* Overrides the accessible label of the button that collapses a tree item
|
|
10643
|
+
* to hide its children.
|
|
10644
|
+
*
|
|
10645
|
+
* Message id: `bui.treeView.collapse`. Defaults to `"Collapse"`.
|
|
10646
|
+
*/
|
|
10647
|
+
collapseLabel?: string;
|
|
10091
10648
|
/**
|
|
10092
10649
|
* The callback function that is called when the item is renamed. The rename
|
|
10093
10650
|
* functionality is disabled if not provided.
|
|
@@ -10096,6 +10653,13 @@ interface TreeViewProps extends StylingProps, Omit<AriaLabelingProps, "aria-desc
|
|
|
10096
10653
|
key: Key$1;
|
|
10097
10654
|
value: string;
|
|
10098
10655
|
}) => void;
|
|
10656
|
+
/**
|
|
10657
|
+
* Overrides the accessible label of the input shown while an item is being
|
|
10658
|
+
* renamed.
|
|
10659
|
+
*
|
|
10660
|
+
* Message id: `bui.treeView.rename`. Defaults to `"Rename"`.
|
|
10661
|
+
*/
|
|
10662
|
+
renameLabel?: string;
|
|
10099
10663
|
/** The callback function that is called when the item is clicked. */
|
|
10100
10664
|
onAction?: (key: Key$1) => void;
|
|
10101
10665
|
/**
|
|
@@ -10261,10 +10825,18 @@ type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale">
|
|
|
10261
10825
|
* @default "none"
|
|
10262
10826
|
*/
|
|
10263
10827
|
pickerType?: DateFieldPickerType;
|
|
10828
|
+
/**
|
|
10829
|
+
* Overrides the accessible label of the button that opens the calendar
|
|
10830
|
+
* picker popover.
|
|
10831
|
+
*
|
|
10832
|
+
* Message id: `bui.dateField.openCalendar`. Defaults to `"Open calendar"`.
|
|
10833
|
+
*/
|
|
10834
|
+
openCalendarLabel?: string;
|
|
10264
10835
|
};
|
|
10265
10836
|
|
|
10266
|
-
declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "
|
|
10837
|
+
declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "validationState" | "isRequired" | "validate" | "isInvalid" | "createCalendar"> & Pick<SharedInputProps, "label" | "validationState" | "variant" | "labelPosition"> & InputMessage & {
|
|
10267
10838
|
pickerType?: DateFieldPickerType;
|
|
10839
|
+
openCalendarLabel?: string;
|
|
10268
10840
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
10269
10841
|
|
|
10270
10842
|
interface Breakpoints {
|
|
@@ -10642,7 +11214,15 @@ type LoadMoreProps = {
|
|
|
10642
11214
|
isLoading?: never;
|
|
10643
11215
|
scrollOffset?: never;
|
|
10644
11216
|
};
|
|
10645
|
-
type TableBodyProps<T extends object = object> = TableBodyProps$1<T> & LoadMoreProps
|
|
11217
|
+
type TableBodyProps<T extends object = object> = TableBodyProps$1<T> & LoadMoreProps & {
|
|
11218
|
+
/**
|
|
11219
|
+
* Overrides the accessible label of the loading spinner shown while more
|
|
11220
|
+
* rows are being fetched.
|
|
11221
|
+
*
|
|
11222
|
+
* Message id: `bui.table.loading`. Defaults to `"Loading"`.
|
|
11223
|
+
*/
|
|
11224
|
+
loadingLabel?: string;
|
|
11225
|
+
};
|
|
10646
11226
|
type ColumnProps = Omit<ColumnProps$1, "width" | "defaultWidth" | "minWidth" | "maxWidth">;
|
|
10647
11227
|
type RowProps<T extends object = object> = RowProps$1<T>;
|
|
10648
11228
|
type CellProps = CellProps$1;
|
|
@@ -10726,6 +11306,25 @@ interface StepperProps extends StylingProps {
|
|
|
10726
11306
|
* (e.g. "Checkout").
|
|
10727
11307
|
*/
|
|
10728
11308
|
"aria-label"?: string;
|
|
11309
|
+
/**
|
|
11310
|
+
* Overrides the fallback accessible name of a step when the application
|
|
11311
|
+
* supplies no title.
|
|
11312
|
+
*
|
|
11313
|
+
* Message id: `bui.stepper.step`. Defaults to `"Step {index}"`, where
|
|
11314
|
+
* `index` is the step's 1-based position. A string is used as-is, with
|
|
11315
|
+
* no placeholder substitution. To include `index`, pass a function — it
|
|
11316
|
+
* receives `{ index }` and its return value is used verbatim.
|
|
11317
|
+
*/
|
|
11318
|
+
stepLabel?: string | ((values: {
|
|
11319
|
+
index: number;
|
|
11320
|
+
}) => string);
|
|
11321
|
+
/**
|
|
11322
|
+
* Overrides the screen-reader-only suffix marking a step the reader has
|
|
11323
|
+
* finished.
|
|
11324
|
+
*
|
|
11325
|
+
* Message id: `bui.stepper.completed`. Defaults to `"Completed"`.
|
|
11326
|
+
*/
|
|
11327
|
+
completedLabel?: string;
|
|
10729
11328
|
}
|
|
10730
11329
|
|
|
10731
11330
|
declare const Stepper: React__default.ForwardRefExoticComponent<StepperProps & React__default.RefAttributes<HTMLOListElement>>;
|
|
@@ -10770,6 +11369,31 @@ interface FileListProps extends AriaLabelingProps {
|
|
|
10770
11369
|
* button or keyboard.
|
|
10771
11370
|
*/
|
|
10772
11371
|
disabledKeys?: Iterable<string> | "all";
|
|
11372
|
+
/**
|
|
11373
|
+
* Overrides the accessible name of a file row while it is loading, and of
|
|
11374
|
+
* its spinner.
|
|
11375
|
+
*
|
|
11376
|
+
* Message id: `bui.fileList.loading`. Defaults to `"Loading {fileName}"`.
|
|
11377
|
+
* A string is used as-is, with no placeholder substitution. To include
|
|
11378
|
+
* `fileName`, pass a function — it receives `{ fileName }` and its return
|
|
11379
|
+
* value is used verbatim.
|
|
11380
|
+
*/
|
|
11381
|
+
loadingLabel?: string | ((values: {
|
|
11382
|
+
fileName: string;
|
|
11383
|
+
}) => string);
|
|
11384
|
+
/**
|
|
11385
|
+
* Overrides the accessible name of a removable file row, telling keyboard
|
|
11386
|
+
* users how to delete it.
|
|
11387
|
+
*
|
|
11388
|
+
* Message id: `bui.fileList.removeHint`. Defaults to
|
|
11389
|
+
* `"{fileName}, press Delete or Backspace to remove"`. A string is used
|
|
11390
|
+
* as-is, with no placeholder substitution. To include `fileName`, pass a
|
|
11391
|
+
* function — it receives `{ fileName }` and its return value is used
|
|
11392
|
+
* verbatim.
|
|
11393
|
+
*/
|
|
11394
|
+
removeHintLabel?: string | ((values: {
|
|
11395
|
+
fileName: string;
|
|
11396
|
+
}) => string);
|
|
10773
11397
|
}
|
|
10774
11398
|
|
|
10775
11399
|
declare const FileList$1: React__default.ForwardRefExoticComponent<FileListProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -11012,6 +11636,123 @@ declare const useUndoRedo: <T>(initialState: T | undefined, { isDisabled, onActi
|
|
|
11012
11636
|
*/
|
|
11013
11637
|
declare function useIsFirstRender(): boolean;
|
|
11014
11638
|
|
|
11639
|
+
/**
|
|
11640
|
+
* Every message id Baseline UI can ask an `I18nProvider` to resolve.
|
|
11641
|
+
*
|
|
11642
|
+
* Use it to derive translation coverage instead of maintaining a hand-written
|
|
11643
|
+
* copy that goes stale on each upgrade:
|
|
11644
|
+
*
|
|
11645
|
+
* @example
|
|
11646
|
+
* ```ts
|
|
11647
|
+
* import { messageIds } from "@baseline-ui/core";
|
|
11648
|
+
*
|
|
11649
|
+
* const uncovered = messageIds.filter((id) => !(id in ourCatalog.en));
|
|
11650
|
+
* ```;
|
|
11651
|
+
*/
|
|
11652
|
+
declare const messageIds: readonly ["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.toolbar.more", "bui.treeView.collapse", "bui.treeView.expand", "bui.treeView.rename", "bui.useMedia.paused", "bui.useMedia.playing"];
|
|
11653
|
+
type MessageId = (typeof messageIds)[number];
|
|
11654
|
+
/**
|
|
11655
|
+
* Maps each deprecated bare id — the last dot-segment of a namespaced id — to
|
|
11656
|
+
* every id that claims it, so a catalog keyed the old way can be re-keyed
|
|
11657
|
+
* mechanically. Each key is kept alongside the ids it maps to: a bare key may
|
|
11658
|
+
* also be one your own app looks up, and the namespaced entry is what Baseline
|
|
11659
|
+
* UI resolves against either way.
|
|
11660
|
+
*
|
|
11661
|
+
* @example
|
|
11662
|
+
* ```ts
|
|
11663
|
+
* import { legacyMessageIdMap } from "@baseline-ui/core";
|
|
11664
|
+
*
|
|
11665
|
+
* const migrated = Object.fromEntries(
|
|
11666
|
+
* Object.entries(oldCatalog).flatMap(([key, value]) => [
|
|
11667
|
+
* [key, value],
|
|
11668
|
+
* ...(legacyMessageIdMap[key] ?? []).map((id) => [id, value]),
|
|
11669
|
+
* ]),
|
|
11670
|
+
* );
|
|
11671
|
+
* ```;
|
|
11672
|
+
*
|
|
11673
|
+
* @remarks An entry with more than one id is ambiguous: overriding that bare id
|
|
11674
|
+
* overrides every component listed, which forecloses any language where the
|
|
11675
|
+
* word inflects differently per context. Those need a per-id translation.
|
|
11676
|
+
* The bare-id fallback is deprecated and will be removed in a future major.
|
|
11677
|
+
*/
|
|
11678
|
+
declare const legacyMessageIdMap: Readonly<Partial<Record<string, readonly MessageId[]>>>;
|
|
11679
|
+
|
|
11680
|
+
/**
|
|
11681
|
+
* Builds a message formatter outside of a React render.
|
|
11682
|
+
*
|
|
11683
|
+
* The returned function is the same engine `useI18n` runs on, so for a given
|
|
11684
|
+
* locale, catalog and set of values it produces exactly the string a component
|
|
11685
|
+
* would render — including the `defaultMessage` fallback for ids a catalog
|
|
11686
|
+
* omits, and the deprecated bare-id fallback for older catalogs.
|
|
11687
|
+
*
|
|
11688
|
+
* Use it wherever no component is rendering: an alert raised from an async
|
|
11689
|
+
* task, a label composed in a plain utility module, a string handed to a
|
|
11690
|
+
* non-React API. Inside a component, use `useI18n` instead so the message
|
|
11691
|
+
* follows the locale of the surrounding `I18nProvider`.
|
|
11692
|
+
*
|
|
11693
|
+
* @example
|
|
11694
|
+
* ```ts
|
|
11695
|
+
* import { createMessageFormatter } from "@baseline-ui/core";
|
|
11696
|
+
* import de from "@baseline-ui/core/intl/de.json";
|
|
11697
|
+
*
|
|
11698
|
+
* const formatMessage = createMessageFormatter({
|
|
11699
|
+
* locale: "de-DE",
|
|
11700
|
+
* messages: { de },
|
|
11701
|
+
* });
|
|
11702
|
+
*
|
|
11703
|
+
* window.alert(formatMessage("bui.fileList.removeHint"));
|
|
11704
|
+
* ```;
|
|
11705
|
+
*
|
|
11706
|
+
* @template T - The shape of one locale's messages, when you want the returned
|
|
11707
|
+
* function to accept only that catalog's ids. Pass it explicitly — it is not
|
|
11708
|
+
* inferred from `messages`, since a partial catalog would then reject the
|
|
11709
|
+
* `bui.*` ids it does not itself translate. Defaults to any string id.
|
|
11710
|
+
* @param options.locale - The BCP 47 locale to format in. Unlike `useI18n`
|
|
11711
|
+
* there is no surrounding provider to read it from, so it is required.
|
|
11712
|
+
* @param options.messages - Locale-keyed catalogs, in the same shape
|
|
11713
|
+
* `I18nProvider` takes, plus keys that came straight from an `import.meta.glob`
|
|
11714
|
+
* (`./intl/de.json`) which are reduced to their locale. Omit them to format
|
|
11715
|
+
* every message from its English `defaultMessage`. There is no provider here
|
|
11716
|
+
* to merge with — these catalogs are the only ones consulted.
|
|
11717
|
+
* @param options.shouldLogMissingMessages - Whether to report missing
|
|
11718
|
+
* translations to the console. Defaults to off in production builds, on
|
|
11719
|
+
* everywhere else, matching `I18nProvider`. Ignored when `onMessageIssue` is
|
|
11720
|
+
* supplied.
|
|
11721
|
+
* @param options.onMessageIssue - Called for every message-resolution failure
|
|
11722
|
+
* instead of writing to the console, exactly as the `I18nProvider` prop of the
|
|
11723
|
+
* same name.
|
|
11724
|
+
* @returns A `formatMessage` function bound to that locale and those messages.
|
|
11725
|
+
* @throws If `locale` is not a valid BCP 47 language tag.
|
|
11726
|
+
*/
|
|
11727
|
+
declare function createMessageFormatter<T extends Record<string, string> = Record<string, string>>({ locale, messages, shouldLogMissingMessages, onMessageIssue, }: CreateMessageFormatterOptions): MessageFormatter<T>;
|
|
11728
|
+
/**
|
|
11729
|
+
* A hook that provides internationalization functionality, reading its messages
|
|
11730
|
+
* entirely from the surrounding `I18nProvider`. It returns a function to format
|
|
11731
|
+
* messages and the current locale.
|
|
11732
|
+
*
|
|
11733
|
+
* With no catalog of your own, `formatMessage` takes a built-in `MessageId` or
|
|
11734
|
+
* a `MessageDescriptor`, so a misspelled or unregistered id is a compile error
|
|
11735
|
+
* rather than an id that renders as itself. To put your application's own
|
|
11736
|
+
* string ids through the hook, pass their catalog or name it —
|
|
11737
|
+
* `useI18n<MyMessages>()`.
|
|
11738
|
+
*
|
|
11739
|
+
* To format a message outside of a render, use `createMessageFormatter`.
|
|
11740
|
+
*
|
|
11741
|
+
* @example
|
|
11742
|
+
* ```tsx
|
|
11743
|
+
* import { useI18n } from "@baseline-ui/core";
|
|
11744
|
+
*
|
|
11745
|
+
* const MyComponent = () => {
|
|
11746
|
+
* const { formatMessage } = useI18n();
|
|
11747
|
+
*
|
|
11748
|
+
* return <p>{formatMessage("bui.editor.bold")}</p>;
|
|
11749
|
+
* };
|
|
11750
|
+
* ```;
|
|
11751
|
+
*
|
|
11752
|
+
* @returns An object containing a function to format messages and the current
|
|
11753
|
+
* locale.
|
|
11754
|
+
*/
|
|
11755
|
+
declare function useI18n(messages?: undefined): I18nResult<Record<MessageId, string>>;
|
|
11015
11756
|
/**
|
|
11016
11757
|
* A hook that provides internationalization functionality. It returns a
|
|
11017
11758
|
* function to format messages and the current locale.
|
|
@@ -11021,6 +11762,8 @@ declare function useIsFirstRender(): boolean;
|
|
|
11021
11762
|
* win on key conflicts, while unmatched local keys are preserved. When only one
|
|
11022
11763
|
* source is present the behavior is unchanged (backwards compatible).
|
|
11023
11764
|
*
|
|
11765
|
+
* To format a message outside of a render, use `createMessageFormatter`.
|
|
11766
|
+
*
|
|
11024
11767
|
* @example
|
|
11025
11768
|
* ```tsx
|
|
11026
11769
|
* import { useI18n } from "@baseline-ui/core";
|
|
@@ -11042,16 +11785,55 @@ declare function useIsFirstRender(): boolean;
|
|
|
11042
11785
|
* ```;
|
|
11043
11786
|
*
|
|
11044
11787
|
* @template T - A type that represents the shape of the translation messages.
|
|
11788
|
+
* Naming it — `useI18n<MyMessages>()` — is also how an application declares
|
|
11789
|
+
* its own ids when it registers them through `I18nProvider` and passes no
|
|
11790
|
+
* catalog here.
|
|
11045
11791
|
* @param messages - An optional object containing translation messages for
|
|
11046
11792
|
* different locales. When provider messages (from `I18nProvider`) are also
|
|
11047
11793
|
* present, local and provider messages are merged per locale — provider
|
|
11048
11794
|
* values take precedence on key conflicts. If omitted, the hook reads
|
|
11049
|
-
* entirely from the provider
|
|
11795
|
+
* entirely from the provider, and `formatMessage` still takes the ids of
|
|
11796
|
+
* `T`. Omitting it *without* naming `T` selects the overload above, whose
|
|
11797
|
+
* ids are the built-in `MessageId` union.
|
|
11050
11798
|
* @returns {I18nResult<T>} An object containing a function to format messages
|
|
11051
11799
|
* and the current locale.
|
|
11052
11800
|
*/
|
|
11053
11801
|
declare function useI18n<T extends Record<string, string>>(messages?: Record<string, T>): I18nResult<T>;
|
|
11054
11802
|
type MessageFormatter<T> = (id: keyof T | MessageDescriptor, values?: Record<string, any>) => string;
|
|
11803
|
+
/** The `I18nProvider` props that apply outside a render, as a plain object. */
|
|
11804
|
+
interface CreateMessageFormatterOptions {
|
|
11805
|
+
/**
|
|
11806
|
+
* The BCP 47 locale to format in. Required — there is no surrounding
|
|
11807
|
+
* `I18nProvider` to inherit it from.
|
|
11808
|
+
*/
|
|
11809
|
+
locale: string;
|
|
11810
|
+
/**
|
|
11811
|
+
* Locale-keyed catalogs, in the shape `I18nProvider` takes. These are the only
|
|
11812
|
+
* catalogs consulted; nothing is merged in from a provider. Omit them to
|
|
11813
|
+
* format every message from its English `defaultMessage`.
|
|
11814
|
+
*/
|
|
11815
|
+
messages?: LocalizedStrings;
|
|
11816
|
+
/**
|
|
11817
|
+
* Whether to report missing translations to the console. Defaults to off in
|
|
11818
|
+
* production builds and on everywhere else, matching `I18nProvider`. Ignored
|
|
11819
|
+
* when `onMessageIssue` is supplied.
|
|
11820
|
+
*/
|
|
11821
|
+
shouldLogMissingMessages?: boolean;
|
|
11822
|
+
/**
|
|
11823
|
+
* Called for every message-resolution failure, the standalone counterpart of
|
|
11824
|
+
* the `I18nProvider` prop — see `MessageIssueCode` for the kinds.
|
|
11825
|
+
*
|
|
11826
|
+
* The ownership rule is the same: supplying a handler routes failures to it
|
|
11827
|
+
* instead of the console, in production builds too, and
|
|
11828
|
+
* `shouldLogMissingMessages` no longer applies. A handler that throws is
|
|
11829
|
+
* caught and its own error logged.
|
|
11830
|
+
*
|
|
11831
|
+
* Deduplication is per formatter rather than per provider: each distinct
|
|
11832
|
+
* failure reaches the handler once for the life of this `formatMessage`.
|
|
11833
|
+
* Build a second formatter to hear them again.
|
|
11834
|
+
*/
|
|
11835
|
+
onMessageIssue?: (issue: MessageIssue) => void;
|
|
11836
|
+
}
|
|
11055
11837
|
interface I18nResult<T extends LocalizedStrings[keyof LocalizedStrings]> {
|
|
11056
11838
|
formatMessage: MessageFormatter<T>;
|
|
11057
11839
|
locale: Locale;
|
|
@@ -11217,47 +11999,6 @@ declare function usePreventFocus({ ref, isDisabled, }: {
|
|
|
11217
11999
|
isDisabled?: boolean;
|
|
11218
12000
|
}): void;
|
|
11219
12001
|
|
|
11220
|
-
/**
|
|
11221
|
-
* Every message id Baseline UI can ask an `I18nProvider` to resolve.
|
|
11222
|
-
*
|
|
11223
|
-
* Use it to derive translation coverage instead of maintaining a hand-written
|
|
11224
|
-
* copy that goes stale on each upgrade:
|
|
11225
|
-
*
|
|
11226
|
-
* @example
|
|
11227
|
-
* ```ts
|
|
11228
|
-
* import { messageIds } from "@baseline-ui/core";
|
|
11229
|
-
*
|
|
11230
|
-
* const uncovered = messageIds.filter((id) => !(id in ourCatalog.en));
|
|
11231
|
-
* ```;
|
|
11232
|
-
*/
|
|
11233
|
-
declare const messageIds: readonly ["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.toolbar.more", "bui.treeView.collapse", "bui.treeView.expand", "bui.treeView.rename", "bui.useMedia.paused", "bui.useMedia.playing"];
|
|
11234
|
-
type MessageId = (typeof messageIds)[number];
|
|
11235
|
-
/**
|
|
11236
|
-
* Maps each deprecated bare id — the last dot-segment of a namespaced id — to
|
|
11237
|
-
* every id that claims it, so a catalog keyed the old way can be re-keyed
|
|
11238
|
-
* mechanically. Each key is kept alongside the ids it maps to: a bare key may
|
|
11239
|
-
* also be one your own app looks up, and the namespaced entry is what Baseline
|
|
11240
|
-
* UI resolves against either way.
|
|
11241
|
-
*
|
|
11242
|
-
* @example
|
|
11243
|
-
* ```ts
|
|
11244
|
-
* import { legacyMessageIdMap } from "@baseline-ui/core";
|
|
11245
|
-
*
|
|
11246
|
-
* const migrated = Object.fromEntries(
|
|
11247
|
-
* Object.entries(oldCatalog).flatMap(([key, value]) => [
|
|
11248
|
-
* [key, value],
|
|
11249
|
-
* ...(legacyMessageIdMap[key] ?? []).map((id) => [id, value]),
|
|
11250
|
-
* ]),
|
|
11251
|
-
* );
|
|
11252
|
-
* ```;
|
|
11253
|
-
*
|
|
11254
|
-
* @remarks An entry with more than one id is ambiguous: overriding that bare id
|
|
11255
|
-
* overrides every component listed, which forecloses any language where the
|
|
11256
|
-
* word inflects differently per context. Those need a per-id translation.
|
|
11257
|
-
* The bare-id fallback is deprecated and will be removed in a future major.
|
|
11258
|
-
*/
|
|
11259
|
-
declare const legacyMessageIdMap: Readonly<Partial<Record<string, readonly MessageId[]>>>;
|
|
11260
|
-
|
|
11261
12002
|
type Assertiveness = 'assertive' | 'polite';
|
|
11262
12003
|
type Message = string | {
|
|
11263
12004
|
'aria-labelledby': string;
|
|
@@ -11324,5 +12065,5 @@ declare namespace reactStately {
|
|
|
11324
12065
|
export type { reactStately_Color as Color, reactStately_ListData as ListData, reactStately_TreeData as TreeData };
|
|
11325
12066
|
}
|
|
11326
12067
|
|
|
11327
|
-
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, Actionable, AlertDialog, AudioPlayer, Autocomplete, Avatar, Box, ButtonSelect, Calendar, Cell, Checkbox, Code, ColorInput, ColorSwatch, ColorSwatchPicker, Column, ComboBox, DateField, DateFormat, DefaultListOption, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, Disclosure, DomNodeRenderer, Drawer, EMPTY_SELECTION_STATE, Editor, EditorCore, EditorProvider, FileInput, FileList$1 as FileList, FileUploader, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridLayout, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Kbd, Link, ListBox, ListLayout, LocaleAwareGridLayout, Markdown, Menu, MessageFormat, Modal, ModalClose, ModalContent, ModalTrigger, NumberFormat, NumberInput, Pagination, Panel, PanelGroup, PanelResizeHandle, PointPicker, PointPickerContent, PointPickerDisplay, Popover, PopoverContent, PopoverTrigger, Portal, PortalContainerProvider, Pressable, Preview, ProgressBar, ProgressSpinner, REACT_ARIA_INCOMPATIBLE_KEYS, RadioGroup, RangeCalendar, Reaction, Row, ScrollControlButton, SearchInput, Select, Separator, Size, Skeleton, Slider, StatusCard, Stepper, Switch, TabItem, Table, TableBody, TableHeader, TableLayout, Tabs, Tag, TagGroup, TaggedPagination, Text, TextInput, ThemeProvider, TimeField, ToastQueue, ToggleButton, ToggleIconButton, Toolbar, Tooltip, TreeView, UNSAFE_ListBox, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, VisuallyHidden, WaterfallLayout, announce, areColorsEqual, booleanOrObjectToConfig, calculateFontSizeToFitWidth, capitalize, clamp, classNames, cleanKeyFromGlobImport, clearAnnouncer, defineMessages, destroyAnnouncer, devWarnOnce, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, handleEditorShortcut, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, legacyMessageIdMap, lightenColor, mergeProps, mergeRefs, messageIds, onDropOrPaste, parseColor, safeSpreadProps, useCollator, useDateFormatter, useDevice, useDragAndDrop, useEditable, useEditor, useEditorContext, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTableDragAndDrop, useTextSelection, useUndoRedo, useUserPreferences };
|
|
11328
|
-
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, ActionableProps, ActiveMarks, AlertDialogProps, AudioPlayerProps, AutocompleteProps, AvatarProps, BlockProps, BoundaryAxis, BoxProps, ButtonSelectProps, CalendarHeaderVariant, CalendarProps, CalendarSize, CellProps, CheckboxProps, CodeProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ColumnProps, ComboBoxProps, CommandArgs, CommandName, DateFieldPickerType, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DisclosureProps, DomNodeRendererProps, DrawerProps, EditableProps, EditorCoreOptions, EditorHandle, EditorProps, EditorProviderProps, EditorState, FileInputProps, FileListItem, FileListProps, FileUploaderProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, HorizontalBoundaryBehavior, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, IntersectionObserverOptions, KbdProps, Key, LinkProps, ListBoxProps, ListHandle$1 as ListHandle, ListOption, MarkName, MarkdownProps, MenuItem, MenuProps, MessageDescriptor, MessageFormatProps, MessageFormatter, MessageId, ModalContentProps, ModalProps, ModelPoint, ModelRange, NumberFormatProps, NumberInputProps, PaginationProps, PanelGroupProps, PanelProps, PanelResizeHandleProps, PointPickerContentProps, PointPickerDisplayProps, PointPickerProps, PopoverContentHandle, PopoverContentProps, PopoverProps, PopoverTriggerProps, PortalProps, PressEvent, PreviewProps, ProgressBarProps, ProgressSpinnerProps, RadioGroupProps, RangeCalendarProps, ReactAriaIncompatibleKey, ReactionProps, Rect, ResizeObserverOptions, RichTextEditorDoc, RichTextEditorInline, RichTextEditorLink, RichTextEditorMention, RichTextEditorMentionInput, RichTextEditorParagraph, RichTextEditorText, RowProps, SVGRProps, SafeDOMAttributes, ScrollControlButtonProps, SearchInputProps, SelectProps, SelectionState, SeparatorProps, SetValue, SkeletonProps, SliderProps, StatusCardProps, StepperItem, StepperProps, StylingProps, SwitchProps, TabItemProps, TableBodyProps, TableHeaderProps, TableProps, TabsProps, TagGroupProps, TagProps, TagVariant, TaggedPaginationProps, TextInputProps, TextProps, TextSelectionProps, ThemeProviderProps, TimeFieldProps, ToastProps, ToggleButtonProps, ToggleIconButtonProps, ToolbarProps, TooltipProps, TreeListItem, TreeViewProps, UNSAFE_ListBoxProps, UseEditableOptions, UseEditorOptions, UseTableDragAndDropOptions, VirtualizerProps };
|
|
12068
|
+
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, Actionable, AlertDialog, AudioPlayer, Autocomplete, Avatar, Box, ButtonSelect, Calendar, Cell, Checkbox, Code, ColorInput, ColorSwatch, ColorSwatchPicker, Column, ComboBox, DateField, DateFormat, DefaultListOption, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, Disclosure, DomNodeRenderer, Drawer, EMPTY_SELECTION_STATE, Editor, EditorCore, EditorProvider, FileInput, FileList$1 as FileList, FileUploader, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridLayout, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Kbd, Link, ListBox, ListLayout, LocaleAwareGridLayout, Markdown, Menu, MessageFormat, Modal, ModalClose, ModalContent, ModalTrigger, NumberFormat, NumberInput, Pagination, Panel, PanelGroup, PanelResizeHandle, PointPicker, PointPickerContent, PointPickerDisplay, Popover, PopoverContent, PopoverTrigger, Portal, PortalContainerProvider, Pressable, Preview, ProgressBar, ProgressSpinner, REACT_ARIA_INCOMPATIBLE_KEYS, RadioGroup, RangeCalendar, Reaction, Row, ScrollControlButton, SearchInput, Select, Separator, Size, Skeleton, Slider, StatusCard, Stepper, Switch, TabItem, Table, TableBody, TableHeader, TableLayout, Tabs, Tag, TagGroup, TaggedPagination, Text, TextInput, ThemeProvider, TimeField, ToastQueue, ToggleButton, ToggleIconButton, Toolbar, Tooltip, TreeView, UNSAFE_ListBox, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, VisuallyHidden, WaterfallLayout, announce, areColorsEqual, booleanOrObjectToConfig, calculateFontSizeToFitWidth, capitalize, clamp, classNames, cleanKeyFromGlobImport, clearAnnouncer, createMessageFormatter, defineMessages, destroyAnnouncer, devWarnOnce, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, handleEditorShortcut, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, legacyMessageIdMap, lightenColor, mergeProps, mergeRefs, messageIds, onDropOrPaste, parseColor, safeSpreadProps, useCollator, useDateFormatter, useDevice, useDragAndDrop, useEditable, useEditor, useEditorContext, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTableDragAndDrop, useTextSelection, useUndoRedo, useUserPreferences };
|
|
12069
|
+
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, ActionableProps, ActiveMarks, AlertDialogProps, AudioPlayerProps, AutocompleteProps, AvatarProps, BlockProps, BoundaryAxis, BoxProps, ButtonSelectProps, CalendarHeaderVariant, CalendarProps, CalendarSize, CellProps, CheckboxProps, CodeProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ColumnProps, ComboBoxProps, CommandArgs, CommandName, CreateMessageFormatterOptions, DateFieldPickerType, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DisclosureProps, DomNodeRendererProps, DrawerProps, EditableProps, EditorCoreOptions, EditorHandle, EditorProps, EditorProviderProps, EditorState, FileInputProps, FileListItem, FileListProps, FileUploaderProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, HorizontalBoundaryBehavior, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, IntersectionObserverOptions, KbdProps, Key, LinkProps, ListBoxProps, ListHandle$1 as ListHandle, ListOption, MarkName, MarkdownProps, MenuItem, MenuProps, MessageDescriptor, MessageFormatProps, MessageFormatter, MessageId, MessageIssue, MessageIssueCode, ModalContentProps, ModalProps, ModelPoint, ModelRange, NumberFormatProps, NumberInputProps, PaginationProps, PanelGroupProps, PanelProps, PanelResizeHandleProps, PointPickerContentProps, PointPickerDisplayProps, PointPickerProps, PopoverContentHandle, PopoverContentProps, PopoverProps, PopoverTriggerProps, PortalProps, PressEvent, PreviewProps, ProgressBarProps, ProgressSpinnerProps, RadioGroupProps, RangeCalendarProps, ReactAriaIncompatibleKey, ReactionProps, Rect, ResizeObserverOptions, RichTextEditorDoc, RichTextEditorInline, RichTextEditorLink, RichTextEditorMention, RichTextEditorMentionInput, RichTextEditorParagraph, RichTextEditorText, RowProps, SVGRProps, SafeDOMAttributes, ScrollControlButtonProps, SearchInputProps, SelectProps, SelectionState, SeparatorProps, SetValue, SkeletonProps, SliderProps, StatusCardProps, StepperItem, StepperProps, StylingProps, SwitchProps, TabItemProps, TableBodyProps, TableHeaderProps, TableProps, TabsProps, TagGroupProps, TagProps, TagVariant, TaggedPaginationProps, TextInputProps, TextProps, TextSelectionProps, ThemeProviderProps, TimeFieldProps, ToastProps, ToggleButtonProps, ToggleIconButtonProps, ToolbarProps, TooltipProps, TreeListItem, TreeViewProps, UNSAFE_ListBoxProps, UseEditableOptions, UseEditorOptions, UseTableDragAndDropOptions, VirtualizerProps };
|