@arc-ui/components 12.0.0-beta.13 → 12.0.0-beta.14.1
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/lib/Alert/Alert.cjs +47 -0
- package/lib/Alert/Alert.mjs +45 -0
- package/lib/Alert/styles.css +1 -0
- package/lib/Align/Align.cjs +28 -0
- package/lib/Align/Align.mjs +26 -0
- package/lib/Align/styles.css +1 -0
- package/lib/AppButton/AppButton.cjs +68 -0
- package/lib/AppButton/AppButton.mjs +66 -0
- package/lib/AppButton/styles.css +1 -0
- package/lib/Avatar/Avatar.cjs +17 -0
- package/lib/Avatar/Avatar.mjs +11 -0
- package/lib/Avatar/styles.css +1 -0
- package/lib/AvatarGroup/AvatarGroup.cjs +33 -0
- package/lib/AvatarGroup/AvatarGroup.mjs +31 -0
- package/lib/AvatarGroup/styles.css +1 -0
- package/lib/Badge/Badge.cjs +12 -0
- package/lib/Badge/Badge.mjs +6 -0
- package/lib/Badge/styles.css +1 -0
- package/lib/Banner/Banner.cjs +24 -0
- package/lib/Banner/Banner.mjs +22 -0
- package/lib/Box/Box.cjs +12 -0
- package/lib/Box/Box.mjs +6 -0
- package/lib/Box/styles.css +1 -0
- package/lib/BrandLogo/BrandLogo.cjs +14 -0
- package/lib/BrandLogo/BrandLogo.mjs +7 -0
- package/lib/BrandLogo/styles.css +1 -0
- package/lib/Breadcrumbs/Breadcrumbs.cjs +17 -0
- package/lib/Breadcrumbs/Breadcrumbs.mjs +11 -0
- package/lib/Breadcrumbs/styles.css +1 -0
- package/lib/Button/Button.cjs +15 -0
- package/lib/Button/Button.mjs +9 -0
- package/lib/Button/styles.css +1 -0
- package/lib/ButtonGroup/ButtonGroup.cjs +33 -0
- package/lib/ButtonGroup/ButtonGroup.mjs +31 -0
- package/lib/ButtonGroup/styles.css +1 -0
- package/lib/ButtonV2/ButtonV2.cjs +15 -0
- package/lib/ButtonV2/ButtonV2.mjs +9 -0
- package/lib/ButtonV2/styles.css +1 -0
- package/lib/Calendar/Calendar.cjs +21 -0
- package/lib/Calendar/Calendar.mjs +15 -0
- package/lib/Calendar/styles.css +1 -0
- package/lib/CardFooter/CardFooter.cjs +17 -0
- package/lib/CardFooter/CardFooter.mjs +11 -0
- package/lib/CardFooter/styles.css +1 -0
- package/lib/CardHeading/CardHeading.cjs +14 -0
- package/lib/CardHeading/CardHeading.mjs +8 -0
- package/lib/CardHeading/styles.css +1 -0
- package/lib/Carousel/Carousel.cjs +1902 -0
- package/lib/Carousel/Carousel.mjs +1900 -0
- package/lib/Carousel/styles.css +1 -0
- package/lib/Checkbox/Checkbox.cjs +18 -0
- package/lib/Checkbox/Checkbox.mjs +12 -0
- package/lib/Checkbox/styles.css +1 -0
- package/lib/Columns/Columns.cjs +12 -0
- package/lib/Columns/Columns.mjs +6 -0
- package/lib/Columns/styles.css +1 -0
- package/lib/ComboBox/ComboBox.cjs +27 -0
- package/lib/ComboBox/ComboBox.mjs +21 -0
- package/lib/ComboBox/styles.css +1 -0
- package/lib/ConditionalWrapper/ConditionalWrapper.cjs +8 -0
- package/lib/ConditionalWrapper/ConditionalWrapper.mjs +2 -0
- package/lib/ContentSwitcher/ContentSwitcher.cjs +22 -0
- package/lib/ContentSwitcher/ContentSwitcher.mjs +13 -0
- package/lib/ContentSwitcher/styles.css +1 -0
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +21 -0
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +15 -0
- package/lib/ContentSwitcherDropdown/styles.css +1 -0
- package/lib/DatePicker/DatePicker.cjs +39 -0
- package/lib/DatePicker/DatePicker.mjs +28 -0
- package/lib/DatePicker/styles.css +1 -0
- package/lib/Disclosure/Disclosure.cjs +34 -0
- package/lib/Disclosure/Disclosure.mjs +32 -0
- package/lib/Disclosure/styles.css +1 -0
- package/lib/DisclosureMini/DisclosureMini.cjs +15 -0
- package/lib/DisclosureMini/DisclosureMini.mjs +9 -0
- package/lib/DisclosureMini/styles.css +1 -0
- package/lib/Download/Download.cjs +16 -0
- package/lib/Download/Download.mjs +10 -0
- package/lib/Download/styles.css +1 -0
- package/lib/Drawer/Drawer.cjs +374 -0
- package/lib/Drawer/Drawer.mjs +354 -0
- package/lib/Drawer/styles.css +1 -0
- package/lib/Elevation/Elevation.cjs +21 -0
- package/lib/Elevation/Elevation.mjs +19 -0
- package/lib/Elevation/styles.css +1 -0
- package/lib/Filter/Filter.cjs +13 -0
- package/lib/Filter/Filter.mjs +7 -0
- package/lib/Filter/styles.css +1 -0
- package/lib/FormControl/FormControl.cjs +18 -0
- package/lib/FormControl/FormControl.mjs +11 -0
- package/lib/FormControl/styles.css +1 -0
- package/lib/Grid/Grid.cjs +12 -0
- package/lib/Grid/Grid.mjs +6 -0
- package/lib/Grid/styles.css +1 -0
- package/lib/Group/Group.cjs +12 -0
- package/lib/Group/Group.mjs +6 -0
- package/lib/Group/styles.css +1 -0
- package/lib/Heading/Heading.cjs +14 -0
- package/lib/Heading/Heading.mjs +7 -0
- package/lib/Heading/styles.css +1 -0
- package/lib/HeroBanner/HeroBanner.cjs +28 -0
- package/lib/HeroBanner/HeroBanner.mjs +26 -0
- package/lib/HeroBanner/styles.css +1 -0
- package/lib/HeroButton/HeroButton.cjs +15 -0
- package/lib/HeroButton/HeroButton.mjs +9 -0
- package/lib/HeroButton/styles.css +1 -0
- package/lib/Hidden/Hidden.cjs +18 -0
- package/lib/Hidden/Hidden.mjs +16 -0
- package/lib/Hidden/styles.css +1 -0
- package/lib/Icon/Icon.cjs +14 -0
- package/lib/Icon/Icon.mjs +7 -0
- package/lib/Icon/styles.css +1 -0
- package/lib/Image/Image.cjs +15 -0
- package/lib/Image/Image.mjs +6 -0
- package/lib/Image/styles.css +1 -0
- package/lib/ImpactCard/ImpactCard.cjs +39 -0
- package/lib/ImpactCard/ImpactCard.mjs +37 -0
- package/lib/ImpactCard/styles.css +1 -0
- package/lib/InformationCard/InformationCard.cjs +94 -0
- package/lib/InformationCard/InformationCard.mjs +92 -0
- package/lib/InformationCard/styles.css +1 -0
- package/lib/Link/Link.cjs +71 -0
- package/lib/Link/Link.mjs +69 -0
- package/lib/Link/styles.css +1 -0
- package/lib/Markup/Markup.cjs +22 -0
- package/lib/Markup/Markup.mjs +20 -0
- package/lib/Markup/styles.css +1 -0
- package/lib/MediaCard/MediaCard.cjs +26 -0
- package/lib/MediaCard/MediaCard.mjs +20 -0
- package/lib/MediaCard/styles.css +1 -0
- package/lib/Modal/Modal.cjs +73 -0
- package/lib/Modal/Modal.mjs +71 -0
- package/lib/Modal/styles.css +1 -0
- package/lib/Pagination/Pagination.cjs +77 -0
- package/lib/Pagination/Pagination.mjs +75 -0
- package/lib/Pagination/styles.css +1 -0
- package/lib/PaginationSimple/PaginationSimple.cjs +106 -0
- package/lib/PaginationSimple/PaginationSimple.mjs +104 -0
- package/lib/PaginationSimple/styles.css +1 -0
- package/lib/Popover/Popover.cjs +36 -0
- package/lib/Popover/Popover.mjs +34 -0
- package/lib/Popover/styles.css +1 -0
- package/lib/Poster/Poster.cjs +14 -0
- package/lib/Poster/Poster.mjs +8 -0
- package/lib/Poster/styles.css +1 -0
- package/lib/ProgressBar/ProgressBar.cjs +65 -0
- package/lib/ProgressBar/ProgressBar.mjs +63 -0
- package/lib/ProgressBar/styles.css +1 -0
- package/lib/ProgressStepper/ProgressStepper.cjs +17 -0
- package/lib/ProgressStepper/ProgressStepper.mjs +10 -0
- package/lib/ProgressStepper/styles.css +1 -0
- package/lib/RadioCardGroup/RadioCardGroup.cjs +20 -0
- package/lib/RadioCardGroup/RadioCardGroup.mjs +14 -0
- package/lib/RadioCardGroup/styles.css +1 -0
- package/lib/RadioGroup/RadioGroup.cjs +19 -0
- package/lib/RadioGroup/RadioGroup.mjs +12 -0
- package/lib/RadioGroup/styles.css +1 -0
- package/lib/Rule/Rule.cjs +24 -0
- package/lib/Rule/Rule.mjs +22 -0
- package/lib/Rule/styles.css +1 -0
- package/lib/ScrollToTop/ScrollToTop.cjs +62 -0
- package/lib/ScrollToTop/ScrollToTop.mjs +60 -0
- package/lib/ScrollToTop/styles.css +1 -0
- package/lib/Section/Section.cjs +10 -0
- package/lib/Section/Section.mjs +4 -0
- package/lib/Section/styles.css +1 -0
- package/lib/Select/Select.cjs +82 -0
- package/lib/Select/Select.mjs +80 -0
- package/lib/Select/styles.css +1 -0
- package/lib/SiteFooter/SiteFooter.cjs +21 -0
- package/lib/SiteFooter/SiteFooter.mjs +13 -0
- package/lib/SiteFooter/styles.css +1 -0
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +24 -0
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +18 -0
- package/lib/SiteHeaderV2/styles.css +1 -0
- package/lib/Skeleton/Skeleton.cjs +20 -0
- package/lib/Skeleton/Skeleton.mjs +18 -0
- package/lib/Skeleton/styles.css +1 -0
- package/lib/SkipLink/SkipLink.cjs +9 -0
- package/lib/SkipLink/SkipLink.mjs +3 -0
- package/lib/SkipLink/styles.css +1 -0
- package/lib/Spinner/Spinner.cjs +10 -0
- package/lib/Spinner/Spinner.mjs +4 -0
- package/lib/Spinner/styles.css +1 -0
- package/lib/Surface/Surface.cjs +14 -0
- package/lib/Surface/Surface.mjs +5 -0
- package/lib/Surface/styles.css +1 -0
- package/lib/Switch/Switch.cjs +232 -0
- package/lib/Switch/Switch.mjs +230 -0
- package/lib/Switch/styles.css +1 -0
- package/lib/TabbedBanner/TabbedBanner.cjs +66 -0
- package/lib/TabbedBanner/TabbedBanner.mjs +64 -0
- package/lib/TabbedBanner/styles.css +1 -0
- package/lib/Tabs/Tabs.cjs +19 -0
- package/lib/Tabs/Tabs.mjs +12 -0
- package/lib/Tabs/styles.css +1 -0
- package/lib/Tag/Tag.cjs +80 -0
- package/lib/Tag/Tag.mjs +78 -0
- package/lib/Tag/styles.css +1 -0
- package/lib/TemplateBanner/TemplateBanner.cjs +21 -0
- package/lib/TemplateBanner/TemplateBanner.mjs +15 -0
- package/lib/TemplateBanner/styles.css +1 -0
- package/lib/Text/Text.cjs +13 -0
- package/lib/Text/Text.mjs +7 -0
- package/lib/Text/styles.css +1 -0
- package/lib/TextArea/TextArea.cjs +121 -0
- package/lib/TextArea/TextArea.mjs +119 -0
- package/lib/TextArea/styles.css +1 -0
- package/lib/TextInput/TextInput.cjs +19 -0
- package/lib/TextInput/TextInput.mjs +13 -0
- package/lib/TextInput/styles.css +1 -0
- package/lib/Theme/Theme.cjs +75 -0
- package/lib/Theme/Theme.mjs +72 -0
- package/lib/Theme/styles.css +1 -0
- package/lib/ThemeIcon/ThemeIcon.cjs +13 -0
- package/lib/ThemeIcon/ThemeIcon.mjs +7 -0
- package/lib/ThemeIcon/styles.css +1 -0
- package/lib/Toast/Toast.cjs +17 -0
- package/lib/Toast/Toast.mjs +11 -0
- package/lib/Toast/styles.css +1 -0
- package/lib/Tooltip/Tooltip.cjs +554 -0
- package/lib/Tooltip/Tooltip.mjs +534 -0
- package/lib/Tooltip/styles.css +1 -0
- package/lib/Truncate/Truncate.cjs +12 -0
- package/lib/Truncate/Truncate.mjs +10 -0
- package/lib/Truncate/styles.css +1 -0
- package/lib/TypographyCard/TypographyCard.cjs +36 -0
- package/lib/TypographyCard/TypographyCard.mjs +34 -0
- package/lib/TypographyCard/styles.css +1 -0
- package/lib/UniversalHeader/UniversalHeader.cjs +12 -0
- package/lib/UniversalHeader/UniversalHeader.mjs +6 -0
- package/lib/UniversalHeader/styles.css +1 -0
- package/lib/VerticalSpace/VerticalSpace.cjs +10 -0
- package/lib/VerticalSpace/VerticalSpace.mjs +4 -0
- package/lib/VerticalSpace/styles.css +1 -0
- package/lib/VideoPlayer/VideoPlayer.cjs +3203 -0
- package/lib/VideoPlayer/VideoPlayer.mjs +3201 -0
- package/lib/VideoPlayer/styles.css +1 -0
- package/lib/Visible/Visible.cjs +18 -0
- package/lib/Visible/Visible.mjs +16 -0
- package/lib/Visible/styles.css +1 -0
- package/lib/VisuallyHidden/VisuallyHidden.cjs +9 -0
- package/lib/VisuallyHidden/VisuallyHidden.mjs +3 -0
- package/lib/VisuallyHidden/styles.css +1 -0
- package/lib/_shared/cjs/Avatar-CO_KcWAu.cjs +44 -0
- package/lib/_shared/cjs/Badge-CQVEPH9v.cjs +14 -0
- package/lib/_shared/cjs/Box-COPXU1Jf.cjs +25 -0
- package/lib/_shared/cjs/BrandLogo-D5wlIFmm.cjs +29 -0
- package/lib/_shared/cjs/Breadcrumbs-Ct2tJs5-.cjs +101 -0
- package/lib/_shared/cjs/Button-b36K7-Cf.cjs +50 -0
- package/lib/_shared/cjs/ButtonV2-DitTW91Z.cjs +49 -0
- package/lib/_shared/cjs/Calendar-BC-wjsFG.cjs +1924 -0
- package/lib/_shared/cjs/CardFooter-BA8K3lsL.cjs +75 -0
- package/lib/_shared/cjs/CardHeading-DJHqAMXm.cjs +12 -0
- package/lib/_shared/cjs/Checkbox-D2UQsmiB.cjs +88 -0
- package/lib/_shared/cjs/Columns-vV_2g6iR.cjs +47 -0
- package/lib/_shared/cjs/Combination-C5xlVcaJ.cjs +1294 -0
- package/lib/_shared/cjs/ComboBox-BLV3qdpH.cjs +290 -0
- package/lib/_shared/cjs/ContentSwitcher-DN5eEyc3.cjs +108 -0
- package/lib/_shared/cjs/ContentSwitcherDropdown-3N9Hv-WU.cjs +71 -0
- package/lib/_shared/cjs/DatePicker-CmRbyMHi.cjs +316 -0
- package/lib/_shared/cjs/DisclosureMini-CtvDxVaG.cjs +37 -0
- package/lib/_shared/cjs/Download-CrIytI74.cjs +39 -0
- package/lib/_shared/cjs/Filter-qdfbndHd.cjs +120 -0
- package/lib/_shared/cjs/FormControl-D3-JbAVb.cjs +108 -0
- package/lib/_shared/cjs/Grid-D9hh5dMx.cjs +44 -0
- package/lib/_shared/cjs/Group-CXH1eTrP.cjs +38 -0
- package/lib/_shared/cjs/Heading-ByiXEHGj.cjs +38 -0
- package/lib/_shared/cjs/HeroButton-D0w6E67b.cjs +123 -0
- package/lib/_shared/cjs/Icon-DdqFr6bT.cjs +52 -0
- package/lib/_shared/cjs/Image-Bk-IOgez.cjs +56 -0
- package/lib/_shared/cjs/MediaCard-DEbY0pn4.cjs +61 -0
- package/lib/_shared/cjs/Poster-DD5EQ-X1.cjs +42 -0
- package/lib/_shared/cjs/Preview-BYuMaIh7.cjs +175 -0
- package/lib/_shared/cjs/ProgressStepper-SGsD7ZHy.cjs +93 -0
- package/lib/_shared/cjs/RadioCardGroup-BqDsRkMM.cjs +81 -0
- package/lib/_shared/cjs/RadioGroup-CTam1JqK.cjs +81 -0
- package/lib/_shared/cjs/Section-wUVdzmGA.cjs +21 -0
- package/lib/_shared/cjs/SiteFooter-KApsSEZz.cjs +68 -0
- package/lib/_shared/cjs/SiteHeaderV2-CYLoQkgz.cjs +645 -0
- package/lib/_shared/cjs/SkipLink-mJJv4-9E.cjs +18 -0
- package/lib/_shared/cjs/Spinner-bbrOwxv2.cjs +16 -0
- package/lib/_shared/cjs/Surface-BFx1yNsq.cjs +55 -0
- package/lib/_shared/cjs/Tabs-CsTC__0B.cjs +88 -0
- package/lib/_shared/cjs/TemplateBanner-DvwXqJMm.cjs +65 -0
- package/lib/_shared/cjs/Text-Cr5nmYmx.cjs +29 -0
- package/lib/_shared/cjs/TextInput-DT4hi02U.cjs +107 -0
- package/lib/_shared/cjs/ThemeIcon-BoxbjTaQ.cjs +23 -0
- package/lib/_shared/cjs/Toast-DLjxph76.cjs +995 -0
- package/lib/_shared/cjs/UniversalHeader-DUo1yR-g.cjs +29 -0
- package/lib/_shared/cjs/VerticalSpace-BJvST6WP.cjs +25 -0
- package/lib/_shared/cjs/VisuallyHidden-B4XCvPYP.cjs +14 -0
- package/lib/_shared/cjs/capitalise-first-letter-CdhexpSx.cjs +8 -0
- package/lib/_shared/cjs/debounce-BeIT3oyF.cjs +659 -0
- package/lib/_shared/cjs/filter-attrs-eK6E_34o.cjs +72 -0
- package/lib/_shared/cjs/index-B11wQrRa.cjs +2208 -0
- package/lib/_shared/cjs/index-BCsybVMl.cjs +1175 -0
- package/lib/_shared/cjs/index-BCu-VH8y.cjs +416 -0
- package/lib/_shared/cjs/index-BoR_yLsK.cjs +858 -0
- package/lib/_shared/cjs/index-CztwwwKE.cjs +375 -0
- package/lib/_shared/cjs/index-DCBkpeuX.cjs +457 -0
- package/lib/_shared/cjs/index-DM20WK5o.cjs +194 -0
- package/lib/_shared/cjs/index-DR8Rkav9.cjs +130 -0
- package/lib/_shared/cjs/index-DXNM3D1d.cjs +196 -0
- package/lib/_shared/cjs/index-DmvtEa22.cjs +219 -0
- package/lib/_shared/cjs/index-dEuvxpL3.cjs +1556 -0
- package/lib/_shared/cjs/index.es-gP1lKcqE.cjs +19 -0
- package/lib/_shared/cjs/suffix-modifier-DLUGR-yG.cjs +10 -0
- package/lib/_shared/esm/Avatar-RQ3Bn9NC.mjs +42 -0
- package/lib/_shared/esm/Badge-BZ7E0zcQ.mjs +12 -0
- package/lib/_shared/esm/Box-BYm_GTct.mjs +23 -0
- package/lib/_shared/esm/BrandLogo-_2Z_8I2Y.mjs +26 -0
- package/lib/_shared/esm/Breadcrumbs-Dvhyjy1c.mjs +99 -0
- package/lib/_shared/esm/Button-DtmI3xYm.mjs +48 -0
- package/lib/_shared/esm/ButtonV2-yixMtjeC.mjs +47 -0
- package/lib/_shared/esm/Calendar-BM7KALf9.mjs +1919 -0
- package/lib/_shared/esm/CardFooter-B1zkMZd9.mjs +73 -0
- package/lib/_shared/esm/CardHeading-C7ZPtnmj.mjs +10 -0
- package/lib/_shared/esm/Checkbox-NxnK40uZ.mjs +86 -0
- package/lib/_shared/esm/Columns-CxNZc7lV.mjs +45 -0
- package/lib/_shared/esm/Combination-BWqjRkSE.mjs +1267 -0
- package/lib/_shared/esm/ComboBox-Cww79__R.mjs +288 -0
- package/lib/_shared/esm/ContentSwitcher-CWxxoWTA.mjs +103 -0
- package/lib/_shared/esm/ContentSwitcherDropdown-CSsewSNR.mjs +69 -0
- package/lib/_shared/esm/DatePicker-DBX6wi3O.mjs +309 -0
- package/lib/_shared/esm/DisclosureMini-B9LzsQC2.mjs +35 -0
- package/lib/_shared/esm/Download-DFz_1HCG.mjs +37 -0
- package/lib/_shared/esm/Filter-C6tm6z36.mjs +118 -0
- package/lib/_shared/esm/FormControl-B9fp1ilz.mjs +104 -0
- package/lib/_shared/esm/Grid-YLHV9FOw.mjs +42 -0
- package/lib/_shared/esm/Group-IeAmNyQM.mjs +36 -0
- package/lib/_shared/esm/Heading-CtGuamJw.mjs +35 -0
- package/lib/_shared/esm/HeroButton-B1bJcYq3.mjs +121 -0
- package/lib/_shared/esm/Icon-B626JGP1.mjs +49 -0
- package/lib/_shared/esm/Image-Bx91_r2O.mjs +51 -0
- package/lib/_shared/esm/MediaCard-OZMQZjSh.mjs +59 -0
- package/lib/_shared/esm/Poster-B49pPgP_.mjs +40 -0
- package/lib/_shared/esm/Preview-AHYIJh9S.mjs +173 -0
- package/lib/_shared/esm/ProgressStepper-yMm9a5q7.mjs +90 -0
- package/lib/_shared/esm/RadioCardGroup-D2UZsecc.mjs +79 -0
- package/lib/_shared/esm/RadioGroup-Dt2GI6Ps.mjs +78 -0
- package/lib/_shared/esm/Section-DDygQ5Az.mjs +19 -0
- package/lib/_shared/esm/SiteFooter-C6OLx0Jn.mjs +64 -0
- package/lib/_shared/esm/SiteHeaderV2-BpTiemru.mjs +643 -0
- package/lib/_shared/esm/SkipLink-By4ViYhR.mjs +16 -0
- package/lib/_shared/esm/Spinner-Cd7LiPTy.mjs +14 -0
- package/lib/_shared/esm/Surface-Colbp3Zx.mjs +50 -0
- package/lib/_shared/esm/Tabs-DTxciSmI.mjs +85 -0
- package/lib/_shared/esm/TemplateBanner-mMKf6sDd.mjs +63 -0
- package/lib/_shared/esm/Text-CBlnm5CT.mjs +27 -0
- package/lib/_shared/esm/TextInput-Vp_cBbpQ.mjs +104 -0
- package/lib/_shared/esm/ThemeIcon-CN_Ed5b1.mjs +21 -0
- package/lib/_shared/esm/Toast-DjWsXi6n.mjs +993 -0
- package/lib/_shared/esm/UniversalHeader-4Qm-HxD7.mjs +27 -0
- package/lib/_shared/esm/VerticalSpace-Duhm0zXP.mjs +23 -0
- package/lib/_shared/esm/VisuallyHidden-DqAgoqJo.mjs +12 -0
- package/lib/_shared/esm/capitalise-first-letter-Cubg2CS1.mjs +6 -0
- package/lib/_shared/esm/debounce-mCD9-ufA.mjs +657 -0
- package/lib/_shared/esm/filter-attrs-B6CM-NUr.mjs +68 -0
- package/lib/_shared/esm/index-6HtUz28p.mjs +216 -0
- package/lib/_shared/esm/index-BYYnPaYO.mjs +431 -0
- package/lib/_shared/esm/index-CVbKsmi-.mjs +393 -0
- package/lib/_shared/esm/index-DAKCDHmP.mjs +171 -0
- package/lib/_shared/esm/index-DBBWLR4b.mjs +825 -0
- package/lib/_shared/esm/index-DKUZMeu5.mjs +169 -0
- package/lib/_shared/esm/index-DTF1_dbG.mjs +2178 -0
- package/lib/_shared/esm/index-DXHprNQ6.mjs +364 -0
- package/lib/_shared/esm/index-Spae4j7j.mjs +128 -0
- package/lib/_shared/esm/index-sjWSIoCo.mjs +1150 -0
- package/lib/_shared/esm/index-uZWnqtCw.mjs +1524 -0
- package/lib/_shared/esm/index.es-C7HkLzRN.mjs +12 -0
- package/lib/_shared/esm/suffix-modifier-B_pO0UkF.mjs +8 -0
- package/lib/index.cjs +25374 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +4040 -0
- package/lib/index.d.mts +4040 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +25251 -0
- package/lib/index.mjs.map +1 -0
- package/lib/styles.css +15 -0
- package/lib/use-media-query/use-media-query.cjs +8 -0
- package/lib/use-media-query/use-media-query.mjs +2 -0
- package/package.json +87 -82
- package/dist/Alert/Alert.cjs.js +0 -45
- package/dist/Alert/Alert.esm.js +0 -43
- package/dist/Alert/package.json +0 -7
- package/dist/Alert/styles.css +0 -1
- package/dist/Align/Align.cjs.js +0 -26
- package/dist/Align/Align.esm.js +0 -24
- package/dist/Align/package.json +0 -7
- package/dist/Align/styles.css +0 -1
- package/dist/AppButton/AppButton.cjs.js +0 -68
- package/dist/AppButton/AppButton.esm.js +0 -66
- package/dist/AppButton/package.json +0 -7
- package/dist/AppButton/styles.css +0 -1
- package/dist/Avatar/Avatar.cjs.js +0 -15
- package/dist/Avatar/Avatar.esm.js +0 -9
- package/dist/Avatar/package.json +0 -7
- package/dist/Avatar/styles.css +0 -1
- package/dist/AvatarGroup/AvatarGroup.cjs.js +0 -31
- package/dist/AvatarGroup/AvatarGroup.esm.js +0 -29
- package/dist/AvatarGroup/package.json +0 -7
- package/dist/AvatarGroup/styles.css +0 -1
- package/dist/Badge/Badge.cjs.js +0 -10
- package/dist/Badge/Badge.esm.js +0 -4
- package/dist/Badge/package.json +0 -7
- package/dist/Badge/styles.css +0 -1
- package/dist/Banner/Banner.cjs.js +0 -22
- package/dist/Banner/Banner.esm.js +0 -20
- package/dist/Banner/package.json +0 -7
- package/dist/Box/Box.cjs.js +0 -11
- package/dist/Box/Box.esm.js +0 -5
- package/dist/Box/package.json +0 -7
- package/dist/Box/styles.css +0 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +0 -11
- package/dist/BrandLogo/BrandLogo.esm.js +0 -5
- package/dist/BrandLogo/package.json +0 -7
- package/dist/BrandLogo/styles.css +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +0 -15
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +0 -9
- package/dist/Breadcrumbs/package.json +0 -7
- package/dist/Breadcrumbs/styles.css +0 -1
- package/dist/Button/Button.cjs.js +0 -13
- package/dist/Button/Button.esm.js +0 -7
- package/dist/Button/package.json +0 -7
- package/dist/Button/styles.css +0 -1
- package/dist/ButtonGroup/ButtonGroup.cjs.js +0 -31
- package/dist/ButtonGroup/ButtonGroup.esm.js +0 -29
- package/dist/ButtonGroup/package.json +0 -7
- package/dist/ButtonGroup/styles.css +0 -1
- package/dist/ButtonV2/ButtonV2.cjs.js +0 -13
- package/dist/ButtonV2/ButtonV2.esm.js +0 -7
- package/dist/ButtonV2/package.json +0 -7
- package/dist/ButtonV2/styles.css +0 -1
- package/dist/Calendar/Calendar.cjs.js +0 -19
- package/dist/Calendar/Calendar.esm.js +0 -13
- package/dist/Calendar/package.json +0 -7
- package/dist/Calendar/styles.css +0 -1
- package/dist/CardFooter/CardFooter.cjs.js +0 -15
- package/dist/CardFooter/CardFooter.esm.js +0 -9
- package/dist/CardFooter/package.json +0 -7
- package/dist/CardFooter/styles.css +0 -1
- package/dist/CardHeading/CardHeading.cjs.js +0 -12
- package/dist/CardHeading/CardHeading.esm.js +0 -6
- package/dist/CardHeading/package.json +0 -7
- package/dist/CardHeading/styles.css +0 -1
- package/dist/Carousel/Carousel.cjs.js +0 -1909
- package/dist/Carousel/Carousel.esm.js +0 -1907
- package/dist/Carousel/package.json +0 -7
- package/dist/Carousel/styles.css +0 -1
- package/dist/Checkbox/Checkbox.cjs.js +0 -16
- package/dist/Checkbox/Checkbox.esm.js +0 -10
- package/dist/Checkbox/package.json +0 -7
- package/dist/Checkbox/styles.css +0 -1
- package/dist/Columns/Columns.cjs.js +0 -10
- package/dist/Columns/Columns.esm.js +0 -4
- package/dist/Columns/package.json +0 -7
- package/dist/Columns/styles.css +0 -1
- package/dist/ComboBox/ComboBox.cjs.js +0 -27
- package/dist/ComboBox/ComboBox.esm.js +0 -21
- package/dist/ComboBox/package.json +0 -7
- package/dist/ComboBox/styles.css +0 -1
- package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +0 -8
- package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +0 -2
- package/dist/ConditionalWrapper/package.json +0 -7
- package/dist/ContentSwitcher/ContentSwitcher.cjs.js +0 -18
- package/dist/ContentSwitcher/ContentSwitcher.esm.js +0 -12
- package/dist/ContentSwitcher/package.json +0 -7
- package/dist/ContentSwitcher/styles.css +0 -1
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +0 -23
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +0 -17
- package/dist/ContentSwitcherDropdown/package.json +0 -7
- package/dist/ContentSwitcherDropdown/styles.css +0 -1
- package/dist/DatePicker/DatePicker.cjs.js +0 -39
- package/dist/DatePicker/DatePicker.esm.js +0 -28
- package/dist/DatePicker/package.json +0 -7
- package/dist/DatePicker/styles.css +0 -1
- package/dist/Disclosure/Disclosure.cjs.js +0 -32
- package/dist/Disclosure/Disclosure.esm.js +0 -30
- package/dist/Disclosure/package.json +0 -7
- package/dist/Disclosure/styles.css +0 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +0 -13
- package/dist/DisclosureMini/DisclosureMini.esm.js +0 -7
- package/dist/DisclosureMini/package.json +0 -7
- package/dist/DisclosureMini/styles.css +0 -1
- package/dist/Download/Download.cjs.js +0 -14
- package/dist/Download/Download.esm.js +0 -8
- package/dist/Download/package.json +0 -7
- package/dist/Download/styles.css +0 -1
- package/dist/Drawer/Drawer.cjs.js +0 -374
- package/dist/Drawer/Drawer.esm.js +0 -354
- package/dist/Drawer/package.json +0 -7
- package/dist/Drawer/styles.css +0 -1
- package/dist/Elevation/Elevation.cjs.js +0 -21
- package/dist/Elevation/Elevation.esm.js +0 -19
- package/dist/Elevation/package.json +0 -7
- package/dist/Elevation/styles.css +0 -1
- package/dist/Filter/Filter.cjs.js +0 -12
- package/dist/Filter/Filter.esm.js +0 -6
- package/dist/Filter/package.json +0 -7
- package/dist/Filter/styles.css +0 -1
- package/dist/FormControl/FormControl.cjs.js +0 -16
- package/dist/FormControl/FormControl.esm.js +0 -9
- package/dist/FormControl/package.json +0 -7
- package/dist/FormControl/styles.css +0 -1
- package/dist/Grid/Grid.cjs.js +0 -10
- package/dist/Grid/Grid.esm.js +0 -4
- package/dist/Grid/package.json +0 -7
- package/dist/Grid/styles.css +0 -1
- package/dist/Group/Group.cjs.js +0 -11
- package/dist/Group/Group.esm.js +0 -5
- package/dist/Group/package.json +0 -7
- package/dist/Group/styles.css +0 -1
- package/dist/Heading/Heading.cjs.js +0 -11
- package/dist/Heading/Heading.esm.js +0 -5
- package/dist/Heading/package.json +0 -7
- package/dist/Heading/styles.css +0 -1
- package/dist/HeroBanner/HeroBanner.cjs.js +0 -26
- package/dist/HeroBanner/HeroBanner.esm.js +0 -24
- package/dist/HeroBanner/package.json +0 -7
- package/dist/HeroBanner/styles.css +0 -1
- package/dist/HeroButton/HeroButton.cjs.js +0 -13
- package/dist/HeroButton/HeroButton.esm.js +0 -7
- package/dist/HeroButton/package.json +0 -7
- package/dist/HeroButton/styles.css +0 -1
- package/dist/Hidden/Hidden.cjs.js +0 -18
- package/dist/Hidden/Hidden.esm.js +0 -16
- package/dist/Hidden/package.json +0 -7
- package/dist/Hidden/styles.css +0 -1
- package/dist/Icon/Icon.cjs.js +0 -11
- package/dist/Icon/Icon.esm.js +0 -5
- package/dist/Icon/package.json +0 -7
- package/dist/Icon/styles.css +0 -1
- package/dist/Image/Image.cjs.js +0 -11
- package/dist/Image/Image.esm.js +0 -4
- package/dist/Image/package.json +0 -7
- package/dist/Image/styles.css +0 -1
- package/dist/ImpactCard/ImpactCard.cjs.js +0 -37
- package/dist/ImpactCard/ImpactCard.esm.js +0 -35
- package/dist/ImpactCard/package.json +0 -7
- package/dist/ImpactCard/styles.css +0 -1
- package/dist/InformationCard/InformationCard.cjs.js +0 -54
- package/dist/InformationCard/InformationCard.esm.js +0 -52
- package/dist/InformationCard/package.json +0 -7
- package/dist/InformationCard/styles.css +0 -1
- package/dist/Link/Link.cjs.js +0 -69
- package/dist/Link/Link.esm.js +0 -67
- package/dist/Link/package.json +0 -7
- package/dist/Link/styles.css +0 -1
- package/dist/Markup/Markup.cjs.js +0 -21
- package/dist/Markup/Markup.esm.js +0 -19
- package/dist/Markup/package.json +0 -7
- package/dist/Markup/styles.css +0 -1
- package/dist/MediaCard/MediaCard.cjs.js +0 -24
- package/dist/MediaCard/MediaCard.esm.js +0 -18
- package/dist/MediaCard/package.json +0 -7
- package/dist/MediaCard/styles.css +0 -1
- package/dist/Modal/Modal.cjs.js +0 -73
- package/dist/Modal/Modal.esm.js +0 -71
- package/dist/Modal/package.json +0 -7
- package/dist/Modal/styles.css +0 -1
- package/dist/Pagination/Pagination.cjs.js +0 -75
- package/dist/Pagination/Pagination.esm.js +0 -73
- package/dist/Pagination/package.json +0 -7
- package/dist/Pagination/styles.css +0 -1
- package/dist/PaginationSimple/PaginationSimple.cjs.js +0 -104
- package/dist/PaginationSimple/PaginationSimple.esm.js +0 -102
- package/dist/PaginationSimple/package.json +0 -7
- package/dist/PaginationSimple/styles.css +0 -1
- package/dist/Popover/Popover.cjs.js +0 -36
- package/dist/Popover/Popover.esm.js +0 -34
- package/dist/Popover/package.json +0 -7
- package/dist/Popover/styles.css +0 -1
- package/dist/Poster/Poster.cjs.js +0 -12
- package/dist/Poster/Poster.esm.js +0 -6
- package/dist/Poster/package.json +0 -7
- package/dist/Poster/styles.css +0 -1
- package/dist/ProgressBar/ProgressBar.cjs.js +0 -63
- package/dist/ProgressBar/ProgressBar.esm.js +0 -61
- package/dist/ProgressBar/package.json +0 -7
- package/dist/ProgressBar/styles.css +0 -1
- package/dist/ProgressStepper/ProgressStepper.cjs.js +0 -13
- package/dist/ProgressStepper/ProgressStepper.esm.js +0 -7
- package/dist/ProgressStepper/package.json +0 -7
- package/dist/ProgressStepper/styles.css +0 -1
- package/dist/RadioCardGroup/RadioCardGroup.cjs.js +0 -17
- package/dist/RadioCardGroup/RadioCardGroup.esm.js +0 -11
- package/dist/RadioCardGroup/package.json +0 -7
- package/dist/RadioCardGroup/styles.css +0 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +0 -17
- package/dist/RadioGroup/RadioGroup.esm.js +0 -10
- package/dist/RadioGroup/package.json +0 -7
- package/dist/RadioGroup/styles.css +0 -1
- package/dist/Rule/Rule.cjs.js +0 -23
- package/dist/Rule/Rule.esm.js +0 -21
- package/dist/Rule/package.json +0 -7
- package/dist/Rule/styles.css +0 -1
- package/dist/ScrollToTop/ScrollToTop.cjs.js +0 -60
- package/dist/ScrollToTop/ScrollToTop.esm.js +0 -58
- package/dist/ScrollToTop/package.json +0 -7
- package/dist/ScrollToTop/styles.css +0 -1
- package/dist/Section/Section.cjs.js +0 -10
- package/dist/Section/Section.esm.js +0 -4
- package/dist/Section/package.json +0 -7
- package/dist/Section/styles.css +0 -1
- package/dist/Select/Select.cjs.js +0 -84
- package/dist/Select/Select.esm.js +0 -82
- package/dist/Select/package.json +0 -7
- package/dist/Select/styles.css +0 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +0 -17
- package/dist/SiteFooter/SiteFooter.esm.js +0 -11
- package/dist/SiteFooter/package.json +0 -7
- package/dist/SiteFooter/styles.css +0 -1
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +0 -22
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +0 -16
- package/dist/SiteHeaderV2/package.json +0 -7
- package/dist/SiteHeaderV2/styles.css +0 -1
- package/dist/Skeleton/Skeleton.cjs.js +0 -20
- package/dist/Skeleton/Skeleton.esm.js +0 -18
- package/dist/Skeleton/package.json +0 -7
- package/dist/Skeleton/styles.css +0 -1
- package/dist/SkipLink/SkipLink.cjs.js +0 -9
- package/dist/SkipLink/SkipLink.esm.js +0 -3
- package/dist/SkipLink/package.json +0 -7
- package/dist/SkipLink/styles.css +0 -1
- package/dist/Spinner/Spinner.cjs.js +0 -10
- package/dist/Spinner/Spinner.esm.js +0 -4
- package/dist/Spinner/package.json +0 -7
- package/dist/Spinner/styles.css +0 -1
- package/dist/Surface/Surface.cjs.js +0 -13
- package/dist/Surface/Surface.esm.js +0 -4
- package/dist/Surface/package.json +0 -7
- package/dist/Surface/styles.css +0 -1
- package/dist/Switch/Switch.cjs.js +0 -162
- package/dist/Switch/Switch.esm.js +0 -160
- package/dist/Switch/package.json +0 -7
- package/dist/Switch/styles.css +0 -1
- package/dist/TabbedBanner/TabbedBanner.cjs.js +0 -66
- package/dist/TabbedBanner/TabbedBanner.esm.js +0 -64
- package/dist/TabbedBanner/package.json +0 -7
- package/dist/TabbedBanner/styles.css +0 -1
- package/dist/Tabs/Tabs.cjs.js +0 -18
- package/dist/Tabs/Tabs.esm.js +0 -12
- package/dist/Tabs/package.json +0 -7
- package/dist/Tabs/styles.css +0 -1
- package/dist/Tag/Tag.cjs.js +0 -78
- package/dist/Tag/Tag.esm.js +0 -76
- package/dist/Tag/package.json +0 -7
- package/dist/Tag/styles.css +0 -1
- package/dist/TemplateBanner/TemplateBanner.cjs.js +0 -19
- package/dist/TemplateBanner/TemplateBanner.esm.js +0 -13
- package/dist/TemplateBanner/package.json +0 -7
- package/dist/TemplateBanner/styles.css +0 -1
- package/dist/Text/Text.cjs.js +0 -11
- package/dist/Text/Text.esm.js +0 -5
- package/dist/Text/package.json +0 -7
- package/dist/Text/styles.css +0 -1
- package/dist/TextArea/TextArea.cjs.js +0 -124
- package/dist/TextArea/TextArea.esm.js +0 -122
- package/dist/TextArea/package.json +0 -7
- package/dist/TextArea/styles.css +0 -1
- package/dist/TextInput/TextInput.cjs.js +0 -17
- package/dist/TextInput/TextInput.esm.js +0 -11
- package/dist/TextInput/package.json +0 -7
- package/dist/TextInput/styles.css +0 -1
- package/dist/Theme/Theme.cjs.js +0 -25
- package/dist/Theme/Theme.esm.js +0 -22
- package/dist/Theme/package.json +0 -7
- package/dist/Theme/styles.css +0 -1
- package/dist/ThemeIcon/ThemeIcon.cjs.js +0 -11
- package/dist/ThemeIcon/ThemeIcon.esm.js +0 -5
- package/dist/ThemeIcon/package.json +0 -7
- package/dist/ThemeIcon/styles.css +0 -1
- package/dist/Toast/Toast.cjs.js +0 -17
- package/dist/Toast/Toast.esm.js +0 -11
- package/dist/Toast/package.json +0 -7
- package/dist/Toast/styles.css +0 -1
- package/dist/Tooltip/Tooltip.cjs.js +0 -553
- package/dist/Tooltip/Tooltip.esm.js +0 -533
- package/dist/Tooltip/package.json +0 -7
- package/dist/Tooltip/styles.css +0 -1
- package/dist/Truncate/Truncate.cjs.js +0 -12
- package/dist/Truncate/Truncate.esm.js +0 -10
- package/dist/Truncate/package.json +0 -7
- package/dist/Truncate/styles.css +0 -1
- package/dist/TypographyCard/TypographyCard.cjs.js +0 -34
- package/dist/TypographyCard/TypographyCard.esm.js +0 -32
- package/dist/TypographyCard/package.json +0 -7
- package/dist/TypographyCard/styles.css +0 -1
- package/dist/UniversalHeader/UniversalHeader.cjs.js +0 -11
- package/dist/UniversalHeader/UniversalHeader.esm.js +0 -5
- package/dist/UniversalHeader/package.json +0 -7
- package/dist/UniversalHeader/styles.css +0 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +0 -10
- package/dist/VerticalSpace/VerticalSpace.esm.js +0 -4
- package/dist/VerticalSpace/package.json +0 -7
- package/dist/VerticalSpace/styles.css +0 -1
- package/dist/VideoPlayer/VideoPlayer.cjs.js +0 -3201
- package/dist/VideoPlayer/VideoPlayer.esm.js +0 -3199
- package/dist/VideoPlayer/package.json +0 -7
- package/dist/VideoPlayer/styles.css +0 -1
- package/dist/Visible/Visible.cjs.js +0 -18
- package/dist/Visible/Visible.esm.js +0 -16
- package/dist/Visible/package.json +0 -7
- package/dist/Visible/styles.css +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.cjs.js +0 -9
- package/dist/VisuallyHidden/VisuallyHidden.esm.js +0 -3
- package/dist/VisuallyHidden/package.json +0 -7
- package/dist/VisuallyHidden/styles.css +0 -1
- package/dist/_shared/cjs/Avatar-Caj5Cj5M.js +0 -44
- package/dist/_shared/cjs/Badge-CKKpzGxD.js +0 -13
- package/dist/_shared/cjs/Box-DHEgsHNm.js +0 -25
- package/dist/_shared/cjs/BrandLogo-IAXn8lnd.js +0 -26
- package/dist/_shared/cjs/Breadcrumbs-BwuRMZM-.js +0 -101
- package/dist/_shared/cjs/Button-DOYW7cIj.js +0 -49
- package/dist/_shared/cjs/ButtonV2-BhtTYaGh.js +0 -49
- package/dist/_shared/cjs/Calendar-HHjRQCvi.js +0 -1923
- package/dist/_shared/cjs/CardFooter-Bbn1wEJI.js +0 -75
- package/dist/_shared/cjs/CardHeading-BjSIrQC8.js +0 -12
- package/dist/_shared/cjs/Checkbox-D2j1GIQ6.js +0 -88
- package/dist/_shared/cjs/Columns-BFi_S894.js +0 -44
- package/dist/_shared/cjs/ComboBox-DUQckLrZ.js +0 -290
- package/dist/_shared/cjs/ContentSwitcher-ro4BnJjR.js +0 -17315
- package/dist/_shared/cjs/ContentSwitcherDropdown-COdUSVHm.js +0 -60
- package/dist/_shared/cjs/DatePicker-3lHRIkai.js +0 -316
- package/dist/_shared/cjs/DisclosureMini-Bln2KdOz.js +0 -37
- package/dist/_shared/cjs/Download-DEiQTPc3.js +0 -39
- package/dist/_shared/cjs/Filter-BheSbUnA.js +0 -120
- package/dist/_shared/cjs/FormControl-x7kC-Srg.js +0 -108
- package/dist/_shared/cjs/Grid-Bfnjhc5b.js +0 -41
- package/dist/_shared/cjs/Group-DZ8hdyp4.js +0 -36
- package/dist/_shared/cjs/Heading-lzfM5f17.js +0 -36
- package/dist/_shared/cjs/HeroButton-CNJkSeLs.js +0 -122
- package/dist/_shared/cjs/Icon-C5peYhWn.js +0 -43
- package/dist/_shared/cjs/Image-55IzIW6l.js +0 -51
- package/dist/_shared/cjs/MediaCard-DcApbyvL.js +0 -61
- package/dist/_shared/cjs/Poster-DbbbiYa_.js +0 -41
- package/dist/_shared/cjs/Preview-B-4AqOxZ.js +0 -175
- package/dist/_shared/cjs/ProgressStepper-CE6FGMTC.js +0 -91
- package/dist/_shared/cjs/RadioCardGroup-DWZrK-Cs.js +0 -80
- package/dist/_shared/cjs/RadioGroup-BoSuMksh.js +0 -81
- package/dist/_shared/cjs/Section-DXB0XocO.js +0 -19
- package/dist/_shared/cjs/SiteFooter-D5IeZC_c.js +0 -66
- package/dist/_shared/cjs/SiteHeaderV2-BtJmB-dG.js +0 -644
- package/dist/_shared/cjs/SkipLink-D3i06ZIl.js +0 -18
- package/dist/_shared/cjs/Spinner-DmTvG4x-.js +0 -16
- package/dist/_shared/cjs/Surface-BCplA5V_.js +0 -180
- package/dist/_shared/cjs/Tabs-BMWK-vMy.js +0 -86
- package/dist/_shared/cjs/TemplateBanner-BTbeT-Yz.js +0 -65
- package/dist/_shared/cjs/Text-DIA-MbS2.js +0 -28
- package/dist/_shared/cjs/TextInput-DyZc-njK.js +0 -107
- package/dist/_shared/cjs/ThemeIcon-CHgtRxWu.js +0 -22
- package/dist/_shared/cjs/Toast-DNC06aD5.js +0 -960
- package/dist/_shared/cjs/UniversalHeader-Cbxk9QRM.js +0 -25
- package/dist/_shared/cjs/VerticalSpace-B-ZFqw2Y.js +0 -25
- package/dist/_shared/cjs/VisuallyHidden-BItgxu3C.js +0 -14
- package/dist/_shared/cjs/component-BGCX8GK6.js +0 -96
- package/dist/_shared/cjs/component-DpycPOA_.js +0 -422
- package/dist/_shared/cjs/debounce-8awAB-Hj.js +0 -659
- package/dist/_shared/cjs/floating-ui.react-dom-CJlNwMgv.js +0 -1907
- package/dist/_shared/cjs/index-B349W-g3.js +0 -93
- package/dist/_shared/cjs/index-BWForWNw.js +0 -746
- package/dist/_shared/cjs/index-BqJfkZWj.js +0 -380
- package/dist/_shared/cjs/index-Bsexyvjp.js +0 -379
- package/dist/_shared/cjs/index-BtclGxUt.js +0 -999
- package/dist/_shared/cjs/index-CH4TSNdS.js +0 -753
- package/dist/_shared/cjs/index-CUkcChbR.js +0 -226
- package/dist/_shared/cjs/index-CalDQPRt.js +0 -330
- package/dist/_shared/cjs/index-D6hGsItk.js +0 -367
- package/dist/_shared/cjs/index-DYP3_Qh-.js +0 -14
- package/dist/_shared/cjs/index-DiFGFQH4.js +0 -44
- package/dist/_shared/cjs/index-Ds3p1an5.js +0 -131
- package/dist/_shared/cjs/index-Dvj8rZCZ.js +0 -46
- package/dist/_shared/cjs/index-Dx8AlCbY.js +0 -72
- package/dist/_shared/cjs/index-io8xALL_.js +0 -2264
- package/dist/_shared/cjs/index.es-y9hyGBEL.js +0 -13
- package/dist/_shared/esm/Avatar-Cnu84iB4.js +0 -42
- package/dist/_shared/esm/Badge-BCVel0Om.js +0 -11
- package/dist/_shared/esm/Box-DTTKhpiV.js +0 -23
- package/dist/_shared/esm/BrandLogo-DP-pw2qU.js +0 -24
- package/dist/_shared/esm/Breadcrumbs-CCK8JbEL.js +0 -99
- package/dist/_shared/esm/Button-i6svvyLV.js +0 -47
- package/dist/_shared/esm/ButtonV2-qvYPdE3y.js +0 -47
- package/dist/_shared/esm/Calendar-BheqKbaS.js +0 -1918
- package/dist/_shared/esm/CardFooter-Dor2jbTF.js +0 -73
- package/dist/_shared/esm/CardHeading-DnkJg4cS.js +0 -10
- package/dist/_shared/esm/Checkbox-BsVIoYs3.js +0 -86
- package/dist/_shared/esm/Columns-3lnyGVbo.js +0 -42
- package/dist/_shared/esm/ComboBox-BoNNJ010.js +0 -288
- package/dist/_shared/esm/ContentSwitcher-CsFy2wkg.js +0 -17313
- package/dist/_shared/esm/ContentSwitcherDropdown-Dsl0lVob.js +0 -58
- package/dist/_shared/esm/DatePicker-DxP3x_PU.js +0 -309
- package/dist/_shared/esm/DisclosureMini-C21SM9kp.js +0 -35
- package/dist/_shared/esm/Download-QSXeopnf.js +0 -37
- package/dist/_shared/esm/Filter-BWvcdo3D.js +0 -118
- package/dist/_shared/esm/FormControl-Dx4vj08j.js +0 -104
- package/dist/_shared/esm/Grid-3ulOWrk_.js +0 -39
- package/dist/_shared/esm/Group-CemLONoC.js +0 -34
- package/dist/_shared/esm/Heading-B4CveN1U.js +0 -34
- package/dist/_shared/esm/HeroButton-CCdiNf0U.js +0 -120
- package/dist/_shared/esm/Icon-PQa1SRbJ.js +0 -41
- package/dist/_shared/esm/Image-ByvKaYWN.js +0 -48
- package/dist/_shared/esm/MediaCard-BXs0Bn_k.js +0 -59
- package/dist/_shared/esm/Poster-BDAll4Is.js +0 -39
- package/dist/_shared/esm/Preview-C4XOmSrc.js +0 -173
- package/dist/_shared/esm/ProgressStepper-CzfbHcdz.js +0 -89
- package/dist/_shared/esm/RadioCardGroup-zNPknE5D.js +0 -78
- package/dist/_shared/esm/RadioGroup-DCQshSdc.js +0 -78
- package/dist/_shared/esm/Section-D_oywLIw.js +0 -17
- package/dist/_shared/esm/SiteFooter-DAJmYrdZ.js +0 -64
- package/dist/_shared/esm/SiteHeaderV2-X0qnDr53.js +0 -642
- package/dist/_shared/esm/SkipLink-U1oEgZ_e.js +0 -16
- package/dist/_shared/esm/Spinner-5EXh-1JS.js +0 -14
- package/dist/_shared/esm/Surface-DnIdJOp5.js +0 -174
- package/dist/_shared/esm/Tabs-CthwgnE8.js +0 -84
- package/dist/_shared/esm/TemplateBanner-C0WAd6x-.js +0 -63
- package/dist/_shared/esm/Text-pH7Fi5ml.js +0 -26
- package/dist/_shared/esm/TextInput-qy9_xgAX.js +0 -104
- package/dist/_shared/esm/ThemeIcon-a0WvZRNE.js +0 -20
- package/dist/_shared/esm/Toast-BW9P2Bsb.js +0 -958
- package/dist/_shared/esm/UniversalHeader-CKwbQWiu.js +0 -23
- package/dist/_shared/esm/VerticalSpace-CYle3p59.js +0 -23
- package/dist/_shared/esm/VisuallyHidden-DhtgCXQL.js +0 -12
- package/dist/_shared/esm/component-CyFG7PdP.js +0 -73
- package/dist/_shared/esm/component-SwsHiZS0.js +0 -398
- package/dist/_shared/esm/debounce-BpHLpQ2o.js +0 -657
- package/dist/_shared/esm/floating-ui.react-dom-RgnG-641.js +0 -1878
- package/dist/_shared/esm/index-2c7jWqIG.js +0 -25
- package/dist/_shared/esm/index-65dylwyZ.js +0 -720
- package/dist/_shared/esm/index-9kqlGfMG.js +0 -973
- package/dist/_shared/esm/index-Bnj2U8kS.js +0 -374
- package/dist/_shared/esm/index-C1FjNiZC.js +0 -296
- package/dist/_shared/esm/index-CXSorLUc.js +0 -41
- package/dist/_shared/esm/index-CXzJEJNs.js +0 -2233
- package/dist/_shared/esm/index-CbKHA_yL.js +0 -724
- package/dist/_shared/esm/index-Cf_Ki--9.js +0 -129
- package/dist/_shared/esm/index-CxovAi9d.js +0 -69
- package/dist/_shared/esm/index-DMMRfg3O.js +0 -359
- package/dist/_shared/esm/index-D_GX6ppB.js +0 -91
- package/dist/_shared/esm/index-UaaG1irA.js +0 -205
- package/dist/_shared/esm/index-_nBH8-GT.js +0 -12
- package/dist/_shared/esm/index-g5oDHuf6.js +0 -369
- package/dist/_shared/esm/index.es-DZ7a2pSw.js +0 -9
- package/dist/index.es.js +0 -42081
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -42178
- package/dist/index.js.map +0 -1
- package/dist/styles.css +0 -15
- package/dist/types/components/Alert/Alert.d.ts +0 -49
- package/dist/types/components/Alert/index.d.ts +0 -1
- package/dist/types/components/Align/Align.d.ts +0 -30
- package/dist/types/components/Align/index.d.ts +0 -1
- package/dist/types/components/AppButton/AppButton.d.ts +0 -9
- package/dist/types/components/AppButton/icons/AppStore.d.ts +0 -2
- package/dist/types/components/AppButton/icons/GooglePlay.d.ts +0 -2
- package/dist/types/components/AppButton/index.d.ts +0 -1
- package/dist/types/components/Avatar/Avatar.d.ts +0 -14
- package/dist/types/components/Avatar/components/AvatarContent/AvatarContent.d.ts +0 -9
- package/dist/types/components/Avatar/index.d.ts +0 -1
- package/dist/types/components/Avatar/types/avatar-icon-size.d.ts +0 -1
- package/dist/types/components/Avatar/types/avatar-image.d.ts +0 -2
- package/dist/types/components/Avatar/types/avatar-size.d.ts +0 -1
- package/dist/types/components/Avatar/types/avatar-text-size.d.ts +0 -2
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -14
- package/dist/types/components/AvatarGroup/index.d.ts +0 -1
- package/dist/types/components/AvatarGroup/types/group-avatar.d.ts +0 -2
- package/dist/types/components/AvatarGroup/utils/get-avatars.d.ts +0 -2
- package/dist/types/components/Badge/Badge.d.ts +0 -21
- package/dist/types/components/Badge/index.d.ts +0 -1
- package/dist/types/components/Banner/Banner.d.ts +0 -4
- package/dist/types/components/Banner/index.d.ts +0 -1
- package/dist/types/components/Box/Box.d.ts +0 -40
- package/dist/types/components/Box/index.d.ts +0 -1
- package/dist/types/components/BrandLogo/BrandLogo.d.ts +0 -25
- package/dist/types/components/BrandLogo/index.d.ts +0 -1
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -18
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/BreadcrumbsLink/BreadcrumbsLink.d.ts +0 -29
- package/dist/types/components/Breadcrumbs/index.d.ts +0 -1
- package/dist/types/components/Button/Button.d.ts +0 -116
- package/dist/types/components/Button/index.d.ts +0 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +0 -34
- package/dist/types/components/ButtonGroup/index.d.ts +0 -1
- package/dist/types/components/ButtonV2/ButtonV2.d.ts +0 -91
- package/dist/types/components/ButtonV2/index.d.ts +0 -1
- package/dist/types/components/Calendar/Calendar.d.ts +0 -50
- package/dist/types/components/Calendar/Calendar.provider.d.ts +0 -21
- package/dist/types/components/Calendar/components/CalendarDateSelect/CalendarDateSelect.d.ts +0 -15
- package/dist/types/components/Calendar/components/CalendarDateSelect/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarDayGrid/CalendarDayGrid.d.ts +0 -6
- package/dist/types/components/Calendar/components/CalendarDayGrid/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarDayNumber/CalendarDayNumber.d.ts +0 -8
- package/dist/types/components/Calendar/components/CalendarDayNumber/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarDoubleMonthView/CalendarDoubleMonthView.d.ts +0 -9
- package/dist/types/components/Calendar/components/CalendarDoubleMonthView/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarFooter/CalendarFooter.d.ts +0 -6
- package/dist/types/components/Calendar/components/CalendarFooter/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarMonthView/CalendarMonthView.d.ts +0 -9
- package/dist/types/components/Calendar/components/CalendarMonthView/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarMonthYearView/CalendarMonthYearView.d.ts +0 -11
- package/dist/types/components/Calendar/components/CalendarMonthYearView/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarNavButton/CalendarNavButton.d.ts +0 -10
- package/dist/types/components/Calendar/components/CalendarNavButton/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/CalendarWrapper/CalendarWrapper.d.ts +0 -5
- package/dist/types/components/Calendar/components/CalendarWrapper/index.d.ts +0 -1
- package/dist/types/components/Calendar/components/index.d.ts +0 -6
- package/dist/types/components/Calendar/constants/day-names.d.ts +0 -5
- package/dist/types/components/Calendar/constants/index.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/contains-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/contains-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/date-without-time.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/date-without-time.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-calendar-type.d.ts +0 -2
- package/dist/types/components/Calendar/helpers/get-calendar-type.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-dates-in-month.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-dates-in-month.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-double-month-display-range.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-double-month-display-range.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-focus-date.d.ts +0 -5
- package/dist/types/components/Calendar/helpers/get-focus-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-highlighted-range.d.ts +0 -6
- package/dist/types/components/Calendar/helpers/get-highlighted-range.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/get-keydown-date.d.ts +0 -6
- package/dist/types/components/Calendar/helpers/get-keydown-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/index.d.ts +0 -13
- package/dist/types/components/Calendar/helpers/is-day.d.ts +0 -2
- package/dist/types/components/Calendar/helpers/is-day.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-disabled-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-disabled-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-after-max-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-after-max-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-before-min-date.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/is-month-before-min-date.test.d.ts +0 -1
- package/dist/types/components/Calendar/helpers/process-selected-range.d.ts +0 -9
- package/dist/types/components/Calendar/helpers/process-selected-range.test.d.ts +0 -1
- package/dist/types/components/Calendar/index.d.ts +0 -2
- package/dist/types/components/Calendar/state/handlers/calendar-keydown-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/day-grid-leave-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/day-number-select-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/default-handler.d.ts +0 -2
- package/dist/types/components/Calendar/state/handlers/dropdown-change-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/dropdown-change-year-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/highlight-range-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/index.d.ts +0 -12
- package/dist/types/components/Calendar/state/handlers/range-select-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-next-double-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-next-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-previous-double-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/handlers/show-previous-month-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/index.d.ts +0 -2
- package/dist/types/components/Calendar/state/reducer.d.ts +0 -3
- package/dist/types/components/Calendar/state/reducer.test.d.ts +0 -1
- package/dist/types/components/Calendar/state/types/actions.d.ts +0 -81
- package/dist/types/components/Calendar/state/types/state-handler.d.ts +0 -3
- package/dist/types/components/Calendar/state/types/state.d.ts +0 -5
- package/dist/types/components/Calendar/types/calendar-type.d.ts +0 -1
- package/dist/types/components/Calendar/types/date-select-value.d.ts +0 -2
- package/dist/types/components/Calendar/types/index.d.ts +0 -6
- package/dist/types/components/Calendar/types/key-names.d.ts +0 -13
- package/dist/types/components/Calendar/types/range-selection.d.ts +0 -10
- package/dist/types/components/Calendar/types/selection-type.d.ts +0 -1
- package/dist/types/components/Calendar/types/week-days.d.ts +0 -18
- package/dist/types/components/CardFooter/CardFooter.d.ts +0 -11
- package/dist/types/components/CardFooter/index.d.ts +0 -1
- package/dist/types/components/CardHeading/CardHeading.d.ts +0 -19
- package/dist/types/components/CardHeading/index.d.ts +0 -1
- package/dist/types/components/Carousel/Carousel.d.ts +0 -34
- package/dist/types/components/Carousel/components/DotButton.d.ts +0 -10
- package/dist/types/components/Carousel/constants/breakpoints.d.ts +0 -5
- package/dist/types/components/Carousel/helpers/get-options.d.ts +0 -3
- package/dist/types/components/Carousel/helpers/get-slide-width.d.ts +0 -12
- package/dist/types/components/Carousel/index.d.ts +0 -1
- package/dist/types/components/Carousel/types/breakpoints.d.ts +0 -1
- package/dist/types/components/Carousel/types/keynames.d.ts +0 -5
- package/dist/types/components/Carousel/types/responsive.d.ts +0 -3
- package/dist/types/components/Carousel/types/screen-sizes.d.ts +0 -2
- package/dist/types/components/Carousel/types/slide-config.d.ts +0 -5
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -75
- package/dist/types/components/Checkbox/index.d.ts +0 -1
- package/dist/types/components/Columns/Columns.d.ts +0 -76
- package/dist/types/components/Columns/index.d.ts +0 -1
- package/dist/types/components/ComboBox/ComboBox.d.ts +0 -17
- package/dist/types/components/ComboBox/index.d.ts +0 -1
- package/dist/types/components/ComboBox/reducer.d.ts +0 -2
- package/dist/types/components/ComboBox/types/actions.d.ts +0 -45
- package/dist/types/components/ComboBox/types/index.d.ts +0 -3
- package/dist/types/components/ComboBox/types/keynames.d.ts +0 -7
- package/dist/types/components/ComboBox/types/state.d.ts +0 -7
- package/dist/types/components/ComboBox/utils.d.ts +0 -4
- package/dist/types/components/ConditionalWrapper/ConditionalWrapper.d.ts +0 -7
- package/dist/types/components/ConditionalWrapper/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +0 -32
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +0 -12
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +0 -24
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +0 -17
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcher/index.d.ts +0 -1
- package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +0 -57
- package/dist/types/components/ContentSwitcherDropdown/index.d.ts +0 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -20
- package/dist/types/components/DatePicker/constants/date-format.d.ts +0 -1
- package/dist/types/components/DatePicker/constants/index.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/format-date.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/format-date.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/index.d.ts +0 -8
- package/dist/types/components/DatePicker/helpers/is-date-valid.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-date-valid.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-disabled-date.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-disabled-date.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-range-valid.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/is-range-valid.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/parse-date-string.d.ts +0 -5
- package/dist/types/components/DatePicker/helpers/parse-date-string.test.d.ts +0 -1
- package/dist/types/components/DatePicker/helpers/parse-range-string.d.ts +0 -14
- package/dist/types/components/DatePicker/helpers/parse-range-string.test.d.ts +0 -1
- package/dist/types/components/DatePicker/index.d.ts +0 -6
- package/dist/types/components/Disclosure/Disclosure.d.ts +0 -29
- package/dist/types/components/Disclosure/index.d.ts +0 -1
- package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +0 -35
- package/dist/types/components/DisclosureMini/index.d.ts +0 -1
- package/dist/types/components/Download/Download.d.ts +0 -41
- package/dist/types/components/Download/index.d.ts +0 -1
- package/dist/types/components/Drawer/Drawer.d.ts +0 -40
- package/dist/types/components/Drawer/index.d.ts +0 -1
- package/dist/types/components/Elevation/Elevation.d.ts +0 -19
- package/dist/types/components/Elevation/index.d.ts +0 -1
- package/dist/types/components/Filter/Filter.d.ts +0 -38
- package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +0 -16
- package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +0 -12
- package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +0 -12
- package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +0 -16
- package/dist/types/components/Filter/index.d.ts +0 -1
- package/dist/types/components/FormControl/FormControl.d.ts +0 -83
- package/dist/types/components/FormControl/index.d.ts +0 -1
- package/dist/types/components/Grid/Grid.constants.d.ts +0 -1
- package/dist/types/components/Grid/Grid.d.ts +0 -28
- package/dist/types/components/Grid/Grid.types.d.ts +0 -10
- package/dist/types/components/Grid/components/Col/Col.d.ts +0 -10
- package/dist/types/components/Grid/components/Col/index.d.ts +0 -1
- package/dist/types/components/Grid/components/Row/Row.d.ts +0 -10
- package/dist/types/components/Grid/components/Row/index.d.ts +0 -1
- package/dist/types/components/Grid/index.d.ts +0 -2
- package/dist/types/components/Group/Group.d.ts +0 -45
- package/dist/types/components/Group/GroupItem/GroupItem.d.ts +0 -17
- package/dist/types/components/Group/index.d.ts +0 -1
- package/dist/types/components/Heading/Heading.d.ts +0 -53
- package/dist/types/components/Heading/index.d.ts +0 -1
- package/dist/types/components/HeroBanner/HeroBanner.d.ts +0 -9
- package/dist/types/components/HeroBanner/index.d.ts +0 -1
- package/dist/types/components/HeroButton/HeroButton.d.ts +0 -66
- package/dist/types/components/HeroButton/index.d.ts +0 -1
- package/dist/types/components/Hidden/Hidden.d.ts +0 -11
- package/dist/types/components/Hidden/index.d.ts +0 -1
- package/dist/types/components/Icon/Icon.d.ts +0 -37
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/Image/Image.d.ts +0 -97
- package/dist/types/components/Image/index.d.ts +0 -1
- package/dist/types/components/ImpactCard/ImpactCard.d.ts +0 -58
- package/dist/types/components/ImpactCard/index.d.ts +0 -1
- package/dist/types/components/InformationCard/InformationCard.d.ts +0 -62
- package/dist/types/components/InformationCard/index.d.ts +0 -1
- package/dist/types/components/Link/Link.d.ts +0 -52
- package/dist/types/components/Link/index.d.ts +0 -1
- package/dist/types/components/Markup/Markup.d.ts +0 -15
- package/dist/types/components/Markup/index.d.ts +0 -1
- package/dist/types/components/MediaCard/MediaCard.d.ts +0 -56
- package/dist/types/components/MediaCard/index.d.ts +0 -1
- package/dist/types/components/MediaCard/types/index.d.ts +0 -2
- package/dist/types/components/MediaCard/types/media-card-image.d.ts +0 -4
- package/dist/types/components/MediaCard/types/media-card-video.d.ts +0 -4
- package/dist/types/components/Modal/Modal.d.ts +0 -50
- package/dist/types/components/Modal/index.d.ts +0 -1
- package/dist/types/components/Pagination/Pagination.d.ts +0 -19
- package/dist/types/components/Pagination/index.d.ts +0 -1
- package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +0 -43
- package/dist/types/components/PaginationSimple/index.d.ts +0 -1
- package/dist/types/components/Popover/Popover.d.ts +0 -73
- package/dist/types/components/Popover/index.d.ts +0 -1
- package/dist/types/components/Poster/Poster.d.ts +0 -29
- package/dist/types/components/Poster/PosterImage.d.ts +0 -34
- package/dist/types/components/Poster/PosterVideo.d.ts +0 -21
- package/dist/types/components/Poster/index.d.ts +0 -1
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +0 -50
- package/dist/types/components/ProgressBar/constants/progress-bar-icon-map.d.ts +0 -3
- package/dist/types/components/ProgressBar/index.d.ts +0 -1
- package/dist/types/components/ProgressBar/types/progress-bar-icons.d.ts +0 -1
- package/dist/types/components/ProgressBar/types/progress-bar-state.d.ts +0 -1
- package/dist/types/components/ProgressBar/utils/get-progress-bar-props.d.ts +0 -1
- package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +0 -32
- package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +0 -62
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Complete.d.ts +0 -2
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Current.d.ts +0 -2
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Error.d.ts +0 -2
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Warning.d.ts +0 -2
- package/dist/types/components/ProgressStepper/index.d.ts +0 -1
- package/dist/types/components/ProgressStepper/progressStatus.d.ts +0 -1
- package/dist/types/components/RadioCardGroup/RadioCard/RadioCard.d.ts +0 -59
- package/dist/types/components/RadioCardGroup/RadioCard/index.d.ts +0 -1
- package/dist/types/components/RadioCardGroup/RadioCardGroup.d.ts +0 -74
- package/dist/types/components/RadioCardGroup/RadioCardGroupInput/RadioCardGroupInput.d.ts +0 -37
- package/dist/types/components/RadioCardGroup/RadioCardGroupInput/index.d.ts +0 -1
- package/dist/types/components/RadioCardGroup/context.d.ts +0 -12
- package/dist/types/components/RadioCardGroup/index.d.ts +0 -1
- package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +0 -21
- package/dist/types/components/RadioGroup/RadioButton/index.d.ts +0 -1
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +0 -36
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +0 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -66
- package/dist/types/components/RadioGroup/context.d.ts +0 -14
- package/dist/types/components/RadioGroup/index.d.ts +0 -2
- package/dist/types/components/Rule/Rule.d.ts +0 -8
- package/dist/types/components/Rule/index.d.ts +0 -1
- package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +0 -24
- package/dist/types/components/ScrollToTop/index.d.ts +0 -1
- package/dist/types/components/Section/Section.d.ts +0 -20
- package/dist/types/components/Section/index.d.ts +0 -1
- package/dist/types/components/Select/Select.d.ts +0 -85
- package/dist/types/components/Select/index.d.ts +0 -1
- package/dist/types/components/SiteFooter/SiteFooter.d.ts +0 -57
- package/dist/types/components/SiteFooter/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +0 -82
- package/dist/types/components/SiteHeaderV2/components/BackButton/BackButton.d.ts +0 -6
- package/dist/types/components/SiteHeaderV2/components/BackButton/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/Column/Column.d.ts +0 -8
- package/dist/types/components/SiteHeaderV2/components/Column/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/HorizontalPanel.d.ts +0 -12
- package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/Item/Item.d.ts +0 -16
- package/dist/types/components/SiteHeaderV2/components/Item/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/ItemGroup/ItemGroup.d.ts +0 -27
- package/dist/types/components/SiteHeaderV2/components/ItemGroup/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/MenuButton/MenuButton.d.ts +0 -6
- package/dist/types/components/SiteHeaderV2/components/MenuButton/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/NavItem/NavItem.d.ts +0 -35
- package/dist/types/components/SiteHeaderV2/components/NavItem/NavItemWithSubNav.d.ts +0 -56
- package/dist/types/components/SiteHeaderV2/components/NavItem/index.d.ts +0 -2
- package/dist/types/components/SiteHeaderV2/components/NodeItem/NodeItem.d.ts +0 -8
- package/dist/types/components/SiteHeaderV2/components/Panel/Panel.d.ts +0 -26
- package/dist/types/components/SiteHeaderV2/components/Panel/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/SubNavItem/SubNavItem.d.ts +0 -45
- package/dist/types/components/SiteHeaderV2/components/SubNavItem/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +0 -2
- package/dist/types/components/SiteHeaderV2/components/VerticalDivider/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/index.d.ts +0 -1
- package/dist/types/components/Skeleton/Skeleton.d.ts +0 -23
- package/dist/types/components/Skeleton/index.d.ts +0 -1
- package/dist/types/components/SkipLink/SkipLink.d.ts +0 -12
- package/dist/types/components/SkipLink/SkipLinkItem/SkipLinkItem.d.ts +0 -16
- package/dist/types/components/SkipLink/index.d.ts +0 -1
- package/dist/types/components/Spinner/Spinner.d.ts +0 -16
- package/dist/types/components/Spinner/index.d.ts +0 -1
- package/dist/types/components/Surface/Surface.d.ts +0 -53
- package/dist/types/components/Surface/index.d.ts +0 -1
- package/dist/types/components/Switch/Switch.d.ts +0 -47
- package/dist/types/components/Switch/index.d.ts +0 -1
- package/dist/types/components/TabbedBanner/TabbedBanner.d.ts +0 -26
- package/dist/types/components/TabbedBanner/index.d.ts +0 -1
- package/dist/types/components/Tabs/Tab/Tab.d.ts +0 -22
- package/dist/types/components/Tabs/Tab/index.d.ts +0 -1
- package/dist/types/components/Tabs/TabContent/TabContent.d.ts +0 -12
- package/dist/types/components/Tabs/TabContent/index.d.ts +0 -1
- package/dist/types/components/Tabs/Tabs.d.ts +0 -28
- package/dist/types/components/Tabs/TabsList/TabsList.d.ts +0 -20
- package/dist/types/components/Tabs/TabsList/index.d.ts +0 -1
- package/dist/types/components/Tabs/index.d.ts +0 -1
- package/dist/types/components/Tag/Tag.d.ts +0 -36
- package/dist/types/components/Tag/index.d.ts +0 -1
- package/dist/types/components/TemplateBanner/TemplateBanner.d.ts +0 -68
- package/dist/types/components/TemplateBanner/index.d.ts +0 -1
- package/dist/types/components/Text/Text.d.ts +0 -41
- package/dist/types/components/Text/index.d.ts +0 -1
- package/dist/types/components/TextArea/TextArea.d.ts +0 -82
- package/dist/types/components/TextArea/index.d.ts +0 -1
- package/dist/types/components/TextInput/TextInput.d.ts +0 -129
- package/dist/types/components/TextInput/index.d.ts +0 -1
- package/dist/types/components/Theme/Theme.d.ts +0 -21
- package/dist/types/components/Theme/index.d.ts +0 -1
- package/dist/types/components/ThemeIcon/ThemeIcon.d.ts +0 -18
- package/dist/types/components/ThemeIcon/icon-names.d.ts +0 -1
- package/dist/types/components/ThemeIcon/index.d.ts +0 -1
- package/dist/types/components/Toast/Toast.d.ts +0 -17
- package/dist/types/components/Toast/ToastNotification.d.ts +0 -39
- package/dist/types/components/Toast/index.d.ts +0 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -54
- package/dist/types/components/Tooltip/index.d.ts +0 -1
- package/dist/types/components/Truncate/Truncate.d.ts +0 -17
- package/dist/types/components/Truncate/index.d.ts +0 -1
- package/dist/types/components/TypographyCard/TypographyCard.d.ts +0 -58
- package/dist/types/components/TypographyCard/index.d.ts +0 -1
- package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +0 -29
- package/dist/types/components/UniversalHeader/index.d.ts +0 -1
- package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +0 -33
- package/dist/types/components/VerticalSpace/index.d.ts +0 -1
- package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +0 -27
- package/dist/types/components/VideoPlayer/index.d.ts +0 -1
- package/dist/types/components/Visible/Visible.d.ts +0 -11
- package/dist/types/components/Visible/index.d.ts +0 -1
- package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +0 -11
- package/dist/types/components/VisuallyHidden/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +0 -76
- package/dist/types/helpers/anchor-points.d.ts +0 -1
- package/dist/types/helpers/get-theme-img.d.ts +0 -6
- package/dist/types/helpers/handle-link-click.d.ts +0 -7
- package/dist/types/helpers/index.d.ts +0 -2
- package/dist/types/hooks/__tests__/use-aria-describedby.test.d.ts +0 -1
- package/dist/types/hooks/__tests__/use-numeric-input.test.d.ts +0 -1
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/private/index.d.ts +0 -5
- package/dist/types/hooks/private/use-aria-describedby/index.d.ts +0 -1
- package/dist/types/hooks/private/use-aria-describedby/use-aria-describedby.d.ts +0 -22
- package/dist/types/hooks/private/use-interaction-mode/index.d.ts +0 -1
- package/dist/types/hooks/private/use-interaction-mode/use-interaction-mode.d.ts +0 -6
- package/dist/types/hooks/private/use-numeric-input/index.d.ts +0 -1
- package/dist/types/hooks/private/use-numeric-input/use-numeric-input.d.ts +0 -9
- package/dist/types/hooks/private/use-pagination/index.d.ts +0 -1
- package/dist/types/hooks/private/use-pagination/use-pagination.d.ts +0 -1
- package/dist/types/hooks/private/use-theme-element/index.d.ts +0 -1
- package/dist/types/hooks/public/index.d.ts +0 -1
- package/dist/types/hooks/public/use-media-query/index.d.ts +0 -1
- package/dist/types/hooks/public/use-media-query/use-media-query.d.ts +0 -19
- package/dist/types/index.d.ts +0 -2
- package/dist/types/styles.d.ts +0 -81
- package/dist/types/types/arc-icon.d.ts +0 -2
- package/dist/types/types/auto-complete-types.d.ts +0 -1
- package/dist/use-media-query/package.json +0 -7
- package/dist/use-media-query/use-media-query.cjs.js +0 -8
- package/dist/use-media-query/use-media-query.esm.js +0 -2
- /package/{dist/_shared/cjs/BtIconArrowRight.esm-tlOxlRcu.js → lib/_shared/cjs/BtIconArrowRight-tlOxlRcu.cjs} +0 -0
- /package/{dist/_shared/cjs/BtIconChevronRight2Px.esm-Bi9czTg8.js → lib/_shared/cjs/BtIconChevronRight2Px-Bi9czTg8.cjs} +0 -0
- /package/{dist/_shared/cjs/BtIconChevronRightMid.esm-Dol_sskt.js → lib/_shared/cjs/BtIconChevronRightMid-Dol_sskt.cjs} +0 -0
- /package/{dist/_shared/cjs/BtIconPlayFill.esm-1FkY9-lL.js → lib/_shared/cjs/BtIconPlayFill-1FkY9-lL.cjs} +0 -0
- /package/{dist/_shared/cjs/ConditionalWrapper-C09Kw6EG.js → lib/_shared/cjs/ConditionalWrapper-C09Kw6EG.cjs} +0 -0
- /package/{dist/_shared/cjs/handle-link-click-C7BvOIYa.js → lib/_shared/cjs/handle-link-click-C7BvOIYa.cjs} +0 -0
- /package/{dist/_shared/cjs/index-BLRjGROQ.js → lib/_shared/cjs/index-BLRjGROQ.cjs} +0 -0
- /package/{dist/_shared/cjs/index-CTlXMLug.js → lib/_shared/cjs/index-CTlXMLug.cjs} +0 -0
- /package/{dist/_shared/cjs/keynames-Cx13-hWr.js → lib/_shared/cjs/keynames-Cx13-hWr.cjs} +0 -0
- /package/{dist/_shared/cjs/use-media-query-BsUfHjPZ.js → lib/_shared/cjs/use-media-query-BsUfHjPZ.cjs} +0 -0
- /package/{dist/_shared/esm/BtIconArrowRight.esm-26CZetOo.js → lib/_shared/esm/BtIconArrowRight-26CZetOo.mjs} +0 -0
- /package/{dist/_shared/esm/BtIconChevronRight2Px.esm-DXhBZyIV.js → lib/_shared/esm/BtIconChevronRight2Px-DXhBZyIV.mjs} +0 -0
- /package/{dist/_shared/esm/BtIconChevronRightMid.esm-CbaH-o1_.js → lib/_shared/esm/BtIconChevronRightMid-CbaH-o1_.mjs} +0 -0
- /package/{dist/_shared/esm/BtIconPlayFill.esm-Bi65YfLF.js → lib/_shared/esm/BtIconPlayFill-Bi65YfLF.mjs} +0 -0
- /package/{dist/_shared/esm/ConditionalWrapper-WoJxFYwS.js → lib/_shared/esm/ConditionalWrapper-WoJxFYwS.mjs} +0 -0
- /package/{dist/_shared/esm/handle-link-click-CIgZ7pa0.js → lib/_shared/esm/handle-link-click-CIgZ7pa0.mjs} +0 -0
- /package/{dist/_shared/esm/index-5C0-U8cc.js → lib/_shared/esm/index-5C0-U8cc.mjs} +0 -0
- /package/{dist/_shared/esm/index-Cr6KeQLU.js → lib/_shared/esm/index-Cr6KeQLU.mjs} +0 -0
- /package/{dist/_shared/esm/keynames-B5whqsjh.js → lib/_shared/esm/keynames-B5whqsjh.mjs} +0 -0
- /package/{dist/_shared/esm/use-media-query-DmKuIDEM.js → lib/_shared/esm/use-media-query-DmKuIDEM.mjs} +0 -0
package/lib/index.d.mts
ADDED
|
@@ -0,0 +1,4040 @@
|
|
|
1
|
+
import React$1, { FC, ReactNode, SVGProps, HTMLAttributes, MouseEvent as MouseEvent$1, ChangeEvent, ReactElement } from 'react';
|
|
2
|
+
import { ImageProps as ImageProps$1 } from 'src/components/Image/Image';
|
|
3
|
+
import { VideoPlayerProps as VideoPlayerProps$1 } from 'src/components/VideoPlayer';
|
|
4
|
+
import { SwitchProps as SwitchProps$1 } from '@radix-ui/react-switch';
|
|
5
|
+
import { ArcIcon as ArcIcon$1 } from 'src/types/arc-icon';
|
|
6
|
+
import { ReactPlayerProps } from 'react-player';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Use `Align` to align items horizontally or vertically.
|
|
10
|
+
*/
|
|
11
|
+
declare const Align: FC<AlignProps>;
|
|
12
|
+
interface AlignProps {
|
|
13
|
+
/**
|
|
14
|
+
* Contents of the Align. Each item will be wrapped in an AlignItem component.
|
|
15
|
+
*/
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Horizontal alignment of the Align children.
|
|
19
|
+
*/
|
|
20
|
+
horizontal?: "left" | "center" | "right";
|
|
21
|
+
/**
|
|
22
|
+
* Should the Align child wrappers be visible for debugging and documentation
|
|
23
|
+
* purposes?
|
|
24
|
+
*/
|
|
25
|
+
isDebugVisible?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Vertical alignment of the Align children.
|
|
28
|
+
*/
|
|
29
|
+
vertical?: "top" | "center" | "bottom";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type ArcIcon = React.FC<SVGProps<SVGSVGElement>>;
|
|
33
|
+
|
|
34
|
+
/** Use `Alert` to inform the user of important changes or actions. */
|
|
35
|
+
declare const Alert: FC<AlertProps>;
|
|
36
|
+
interface AlertProps {
|
|
37
|
+
/**
|
|
38
|
+
* Determine a heading for `<Alert />`
|
|
39
|
+
*/
|
|
40
|
+
heading: string;
|
|
41
|
+
/**
|
|
42
|
+
* Determine a description for `<Alert />`
|
|
43
|
+
*/
|
|
44
|
+
description?: string | ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Determine a link for `<Alert />`
|
|
47
|
+
*/
|
|
48
|
+
link?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Determine the text to link
|
|
51
|
+
*/
|
|
52
|
+
linkText?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Determine a icon to display within `<Alert />`. This overrides the default icons.
|
|
55
|
+
*/
|
|
56
|
+
icon?: ArcIcon;
|
|
57
|
+
/**
|
|
58
|
+
* Determine the type of alert
|
|
59
|
+
*/
|
|
60
|
+
status?: AlertStatus;
|
|
61
|
+
/**
|
|
62
|
+
* Determine showing a dismiss icon within `<Alert />`
|
|
63
|
+
*/
|
|
64
|
+
isDismissable?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Execute a function when dismiss is envoked
|
|
67
|
+
*/
|
|
68
|
+
onDismiss?: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Execute a function when link is envoked. This prevents the default behaviour for `<a >` Tag
|
|
71
|
+
*/
|
|
72
|
+
onLinkClick?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Text to override `linkText` with additional, more precise information
|
|
75
|
+
* specifically for screen reader users.
|
|
76
|
+
*/
|
|
77
|
+
linkAriaLabel?: string;
|
|
78
|
+
}
|
|
79
|
+
type AlertStatus = "general" | "error" | "warning" | "success";
|
|
80
|
+
|
|
81
|
+
declare const AppButton: React$1.FC<AppButtonProps>;
|
|
82
|
+
type AppButtonType = "google-play" | "apple-app-store";
|
|
83
|
+
interface AppButtonProps {
|
|
84
|
+
type: AppButtonType;
|
|
85
|
+
screenReaderText: string;
|
|
86
|
+
url: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare const anchorPoints: readonly ["N", "NE", "E", "SE", "S", "SW", "W", "NW", "C"];
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Use `Image` to render a single image, or set of images, with support for
|
|
93
|
+
* image fitting and art direction.
|
|
94
|
+
*/
|
|
95
|
+
declare const Image: FC<ImageProps> & {
|
|
96
|
+
Source: typeof ImageSource;
|
|
97
|
+
};
|
|
98
|
+
declare const ImageSource: FC<ImageSourceProps>;
|
|
99
|
+
interface ImageSourceProps {
|
|
100
|
+
/**
|
|
101
|
+
* The intrinsic height of the ImageSource, in pixels
|
|
102
|
+
*/
|
|
103
|
+
height?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Media condition (similar to a media query) that the user agent will evaluate for each ImageSource element. Same format as [media](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-media), i.e. `(min-width: 600px)`
|
|
106
|
+
*/
|
|
107
|
+
media?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-sizes) attribute. Only required if srcSet is switching widths.
|
|
110
|
+
*/
|
|
111
|
+
sizes?: string;
|
|
112
|
+
/**
|
|
113
|
+
* A comma-separated list indicating a set of possible sources for the user agent to use for different screen sizes for the ImageSource element. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
|
|
114
|
+
*/
|
|
115
|
+
srcSet: string;
|
|
116
|
+
/**
|
|
117
|
+
* MIME type for the resource URL(s) in the ImageSource element's srcset attribute. If the user agent does not support the given type, the element is skipped. Same format as [type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-type), i.e. `image/jpeg`.
|
|
118
|
+
*/
|
|
119
|
+
type?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The intrinsic width of the ImageSource, in pixels
|
|
122
|
+
*/
|
|
123
|
+
width?: number;
|
|
124
|
+
}
|
|
125
|
+
declare const fitOptions: readonly ["cover"];
|
|
126
|
+
declare const loadingOptions: readonly ["eager", "lazy"];
|
|
127
|
+
declare const overlayOptions: readonly ["scrimBottomDark"];
|
|
128
|
+
interface ImageProps extends HTMLAttributes<HTMLElement> {
|
|
129
|
+
/**
|
|
130
|
+
* Alternative text for the Image, shown if the image cannot be displayed.
|
|
131
|
+
*/
|
|
132
|
+
alt?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Anchor point for the Image if using fit="cover".
|
|
135
|
+
*/
|
|
136
|
+
anchor?: (typeof anchorPoints)[number];
|
|
137
|
+
/**
|
|
138
|
+
* Optionally enable HTML <picture> functionality by passing `Image.Source`
|
|
139
|
+
* components as children.
|
|
140
|
+
*/
|
|
141
|
+
children?: ReactNode;
|
|
142
|
+
/**
|
|
143
|
+
* Fallback hexadecimal fill color. The intent is to increase perceived loading speed. Do not use on images with transparency. Requires that an explicit width and height be set for the image.
|
|
144
|
+
*/
|
|
145
|
+
fillColor?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Fit of the Image.
|
|
148
|
+
*/
|
|
149
|
+
fit?: (typeof fitOptions)[number];
|
|
150
|
+
/**
|
|
151
|
+
* Height dimension of the Image, in pixels. If fit="cover", the height in which
|
|
152
|
+
* to fit the Image. Otherwise, the intrinsic height of the Image element.
|
|
153
|
+
*/
|
|
154
|
+
height?: number;
|
|
155
|
+
/**
|
|
156
|
+
* If true the image will fade in when its loaded, resulting in a smooth user experience.
|
|
157
|
+
*/
|
|
158
|
+
fadeOnLoad?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Loading behaviour of the Image.
|
|
161
|
+
*/
|
|
162
|
+
loading?: (typeof loadingOptions)[number];
|
|
163
|
+
/**
|
|
164
|
+
* Apply an overlay to the Image, e.g. a scrim gradient for text legibility.
|
|
165
|
+
* Should not be used if the image has a rasterized overlay.
|
|
166
|
+
*/
|
|
167
|
+
overlay?: (typeof overlayOptions)[number];
|
|
168
|
+
/**
|
|
169
|
+
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Only required if srcSet is switching widths. Ignored if `children` (<source> elements) are present.
|
|
170
|
+
*/
|
|
171
|
+
sizes?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Image `src`. Used if srcSet is not defined, or as a fallback.
|
|
174
|
+
*/
|
|
175
|
+
src: string;
|
|
176
|
+
/**
|
|
177
|
+
* A comma-separated list indicating a set of possible sources for the user agent to use for different screen sizes for the Image. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`. Ignored if `children` (<source> elements) are present.
|
|
178
|
+
*/
|
|
179
|
+
srcSet?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Width dimension of the Image, in pixels. If fit="cover", the width in which
|
|
182
|
+
* to fit the Image. Otherwise, the intrinsic width of the Image element.
|
|
183
|
+
*/
|
|
184
|
+
width?: number;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
type AvatarImage = Pick<ImageProps, "src" | "loading" | "sizes" | "srcSet" | "width" | "height" | "alt" | "fadeOnLoad">;
|
|
188
|
+
|
|
189
|
+
type AvatarSize = "s" | "m" | "l" | "xl";
|
|
190
|
+
|
|
191
|
+
/** Use `Avatar` to visually represent a user. */
|
|
192
|
+
declare const Avatar: React$1.FC<AvatarProps>;
|
|
193
|
+
interface AvatarProps {
|
|
194
|
+
initials?: string;
|
|
195
|
+
href?: string;
|
|
196
|
+
title?: string;
|
|
197
|
+
ariaLabel?: string;
|
|
198
|
+
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
199
|
+
img?: AvatarImage;
|
|
200
|
+
size?: AvatarSize;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
type GroupAvatar = Omit<AvatarProps, "size" | "title" | "href" | "onClick">;
|
|
204
|
+
|
|
205
|
+
/** Use `AvatarGroup` to visually represent a group of users. */
|
|
206
|
+
declare const AvatarGroup: React$1.FC<AvatarGroupProps>;
|
|
207
|
+
interface AvatarGroupProps {
|
|
208
|
+
avatars: GroupAvatar[];
|
|
209
|
+
size?: AvatarSize;
|
|
210
|
+
max?: number;
|
|
211
|
+
title?: string;
|
|
212
|
+
ariaLabel?: string;
|
|
213
|
+
href?: string;
|
|
214
|
+
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/** Use `Badge` as a static, non-interactive way to provide short updates. */
|
|
218
|
+
declare const Badge: FC<BadgeProps>;
|
|
219
|
+
interface BadgeProps {
|
|
220
|
+
/**
|
|
221
|
+
* Text to display within Badge
|
|
222
|
+
*/
|
|
223
|
+
children: ReactNode;
|
|
224
|
+
/**
|
|
225
|
+
* State of the Badge
|
|
226
|
+
*/
|
|
227
|
+
state?: "default" | "error" | "warning" | "success";
|
|
228
|
+
/**
|
|
229
|
+
* Aria label for accessibility
|
|
230
|
+
*/
|
|
231
|
+
ariaLabel?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Aria Role for accessibility
|
|
234
|
+
*/
|
|
235
|
+
ariaRole?: "status" | "alert";
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Use `Heading` to display heading text.
|
|
240
|
+
*/
|
|
241
|
+
declare const Heading: FC<HeadingProps> & {
|
|
242
|
+
Proposition: typeof HeadingProposition;
|
|
243
|
+
};
|
|
244
|
+
declare const HeadingProposition: FC<HeadingPropositionProps>;
|
|
245
|
+
interface HeadingPropositionProps {
|
|
246
|
+
/**
|
|
247
|
+
* Text to display in the Proposition.
|
|
248
|
+
*/
|
|
249
|
+
children: ReactNode;
|
|
250
|
+
}
|
|
251
|
+
type HeadingCasing = "auto" | "none";
|
|
252
|
+
type HeadingColor = "auto" | "brand";
|
|
253
|
+
type HeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
|
|
254
|
+
type HeadingSize = "xxxs" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
|
|
255
|
+
interface HeadingProps {
|
|
256
|
+
/**
|
|
257
|
+
* Text alignment of the Heading.
|
|
258
|
+
*/
|
|
259
|
+
align?: "left" | "center" | "right";
|
|
260
|
+
/**
|
|
261
|
+
* Typographic casing of the Heading.
|
|
262
|
+
*/
|
|
263
|
+
casing?: HeadingCasing;
|
|
264
|
+
/**
|
|
265
|
+
* Text and inline markup to display in the Heading.
|
|
266
|
+
*/
|
|
267
|
+
children: ReactNode;
|
|
268
|
+
/**
|
|
269
|
+
* The color of the Heading.
|
|
270
|
+
*/
|
|
271
|
+
color?: HeadingColor;
|
|
272
|
+
/**
|
|
273
|
+
* Id for the Heading.
|
|
274
|
+
*/
|
|
275
|
+
id?: string;
|
|
276
|
+
/**
|
|
277
|
+
* HTML section heading level. If not provided, the Heading will render as
|
|
278
|
+
* a span.
|
|
279
|
+
*/
|
|
280
|
+
level?: HeadingLevel;
|
|
281
|
+
/**
|
|
282
|
+
* Typographic size of the Heading.
|
|
283
|
+
*/
|
|
284
|
+
size?: HeadingSize;
|
|
285
|
+
/**
|
|
286
|
+
* Should the Heading component be styled as an inline element?
|
|
287
|
+
*/
|
|
288
|
+
isInline?: boolean;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare const TemplateBanner: React$1.FC<TemplateBannerProps>;
|
|
292
|
+
type TemplateBannerStyle = "light" | "dark" | "contained";
|
|
293
|
+
type TemplateBannerAlignment = "top" | "bottom" | "center";
|
|
294
|
+
interface TemplateBannerImage extends Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "anchor" | "fadeOnLoad" | "fit"> {
|
|
295
|
+
alignment?: TemplateBannerAlignment;
|
|
296
|
+
}
|
|
297
|
+
interface TemplateBannerProps {
|
|
298
|
+
/**
|
|
299
|
+
* Align content for TemplateBanner
|
|
300
|
+
*/
|
|
301
|
+
alignment?: "start" | "center";
|
|
302
|
+
/**
|
|
303
|
+
* Heading for the TemplateBanner.
|
|
304
|
+
*/
|
|
305
|
+
heading: string;
|
|
306
|
+
/**
|
|
307
|
+
* Image props for the TemplateBanner. Consider avoiding alt if the image is for decorative purposes only.
|
|
308
|
+
*/
|
|
309
|
+
img?: TemplateBannerImage;
|
|
310
|
+
/**
|
|
311
|
+
* Provides a min height for the TemplateBanner.
|
|
312
|
+
*/
|
|
313
|
+
minHeight?: string | number;
|
|
314
|
+
/**
|
|
315
|
+
* If true the image will appear on the left and the content will be on the right. Doesn't apply to mobile devices.
|
|
316
|
+
*/
|
|
317
|
+
isReversed?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Adds a gradient box shadow to the TemplateBanner.
|
|
320
|
+
*/
|
|
321
|
+
isElevated?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Content for the TemplateBanner.
|
|
324
|
+
*/
|
|
325
|
+
children?: React$1.ReactNode;
|
|
326
|
+
/**
|
|
327
|
+
* Heading level for the ImpactCard heading.
|
|
328
|
+
*/
|
|
329
|
+
headingLevel?: HeadingLevel;
|
|
330
|
+
/**
|
|
331
|
+
* Heading size for the ImpactCard heading.
|
|
332
|
+
*/
|
|
333
|
+
headingSize?: Extract<HeadingSize, "m" | "xl">;
|
|
334
|
+
/**
|
|
335
|
+
* Uppercase label for the TemplateBanner.
|
|
336
|
+
*/
|
|
337
|
+
label?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Text content for the TemplateBanner.
|
|
340
|
+
*/
|
|
341
|
+
text?: ReactNode;
|
|
342
|
+
/**
|
|
343
|
+
* Sets a dark or light background for the TemplateBanner.
|
|
344
|
+
*/
|
|
345
|
+
type?: TemplateBannerStyle;
|
|
346
|
+
/**
|
|
347
|
+
* Defines the ratio of the content area within the banner layout.
|
|
348
|
+
*/
|
|
349
|
+
contentRatio?: "2/3" | "1/1" | "1/0";
|
|
350
|
+
/**
|
|
351
|
+
* Add Additional top margin to banner
|
|
352
|
+
*/
|
|
353
|
+
additionalTopMargin?: boolean;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare const Banner: FC<BannerProps>;
|
|
357
|
+
type BannerProps = Omit<TemplateBannerProps, "headingSize" | "additionalTopMargin">;
|
|
358
|
+
|
|
359
|
+
type SurfaceBackground = "light" | "dark";
|
|
360
|
+
declare const Context$1: React$1.Context<{
|
|
361
|
+
surface: SurfaceBackground;
|
|
362
|
+
}>;
|
|
363
|
+
/**
|
|
364
|
+
* Use `Surface` to compose content using the Arc system.
|
|
365
|
+
*/
|
|
366
|
+
declare const Surface: FC<SurfaceProps>;
|
|
367
|
+
declare const backgrounds: readonly ["dark-black", "dark-brand-01", "dark-brand-02", "dark-neutral-01", "dark-neutral-02", "light-brand-01", "light-brand-02", "light-neutral-01", "light-neutral-02", "light-white"];
|
|
368
|
+
declare const backgroundsBT: readonly ["dark-black", "dark-brand-01", "dark-brand-02", "dark-neutral-01", "dark-neutral-02", "light-brand-01", "light-brand-02", "light-neutral-01", "light-neutral-02", "light-white"];
|
|
369
|
+
type SurfacePadding = "8" | "12" | "16" | "24" | "32" | "48" | "64";
|
|
370
|
+
type SurfaceBackgroundColor = "dark-black" | "dark-brand-01" | "dark-brand-02" | "dark-neutral-01" | "dark-neutral-02" | "light-brand-01" | "light-brand-02" | "light-neutral-01" | "light-neutral-02" | "light-white";
|
|
371
|
+
interface SurfaceProps extends HTMLAttributes<HTMLElement> {
|
|
372
|
+
/**
|
|
373
|
+
* Background colour of the Surface. Contents will change colour to meet
|
|
374
|
+
* accessibility requirements.
|
|
375
|
+
*/
|
|
376
|
+
background?: SurfaceBackgroundColor;
|
|
377
|
+
/**
|
|
378
|
+
* Should the Surface be transparent? When true, no background colour will be applied.
|
|
379
|
+
*/
|
|
380
|
+
isTransparent?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Content to display on the Surface.
|
|
383
|
+
*/
|
|
384
|
+
children?: any;
|
|
385
|
+
/**
|
|
386
|
+
* Should the Surface grow to take up all the available vertical space? Most
|
|
387
|
+
* of the time this should not be required, but useful to fix issues in
|
|
388
|
+
* certain layout combinations.
|
|
389
|
+
*/
|
|
390
|
+
growVertically?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* _Caution: This is an experimental property and may be removed at any time._
|
|
393
|
+
*
|
|
394
|
+
* Size of the padding applied to all sides of the Surface. Use to prevent margin collapsing issues.
|
|
395
|
+
*/
|
|
396
|
+
padding?: SurfacePadding;
|
|
397
|
+
/**
|
|
398
|
+
* _Caution: This is an experimental property and may be removed at any time._
|
|
399
|
+
*
|
|
400
|
+
* Size of the horizontal padding applied to the left and right of the Surface.
|
|
401
|
+
*/
|
|
402
|
+
paddingHorizontal?: SurfacePadding;
|
|
403
|
+
/**
|
|
404
|
+
* _Caution: This is an experimental property and may be removed at any time._
|
|
405
|
+
*
|
|
406
|
+
* Size of the vertical padding applied to the top and bottom of the Surface.
|
|
407
|
+
*/
|
|
408
|
+
paddingVertical?: SurfacePadding;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
413
|
+
*/
|
|
414
|
+
declare const Box: FC<BoxProps>;
|
|
415
|
+
interface BoxProps {
|
|
416
|
+
/**
|
|
417
|
+
* Contents of the Box.
|
|
418
|
+
*/
|
|
419
|
+
children: React$1.ReactNode;
|
|
420
|
+
/**
|
|
421
|
+
* Set Box to fill parent element.
|
|
422
|
+
*/
|
|
423
|
+
isFullHeight?: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* Add rounded corners to the box.
|
|
426
|
+
*/
|
|
427
|
+
isBorderRadius?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* The border width of the box.
|
|
430
|
+
*/
|
|
431
|
+
borderWidth?: "thin" | "medium";
|
|
432
|
+
/**
|
|
433
|
+
* Box shadow for the box.
|
|
434
|
+
*/
|
|
435
|
+
elevationLevel?: "1" | "2";
|
|
436
|
+
/**
|
|
437
|
+
* Padding for the box.
|
|
438
|
+
*/
|
|
439
|
+
padding?: SurfacePadding;
|
|
440
|
+
/**
|
|
441
|
+
* Background color for the box.
|
|
442
|
+
*/
|
|
443
|
+
surface?: SurfaceBackgroundColor;
|
|
444
|
+
/**
|
|
445
|
+
* Determine if the background color is transparent.
|
|
446
|
+
*/
|
|
447
|
+
isSurfaceTransparent?: boolean;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Use `BrandLogo` to display the brand logo.
|
|
452
|
+
*/
|
|
453
|
+
declare const BrandLogo: FC<BrandLogoProps>;
|
|
454
|
+
declare const colors$1: readonly ["auto", "brand"];
|
|
455
|
+
declare const subBrands: readonly ["redcare", "wholesale", "ee"];
|
|
456
|
+
interface BrandLogoProps {
|
|
457
|
+
/**
|
|
458
|
+
* Color of the BrandLogo. The `brand` color only shows on light surfaces.
|
|
459
|
+
*/
|
|
460
|
+
color?: (typeof colors$1)[number];
|
|
461
|
+
/**
|
|
462
|
+
* Accessible text for the BrandLogo.
|
|
463
|
+
*/
|
|
464
|
+
label?: string;
|
|
465
|
+
/**
|
|
466
|
+
* Size of the BrandLogo, in pixels.
|
|
467
|
+
*/
|
|
468
|
+
size?: number;
|
|
469
|
+
/**
|
|
470
|
+
* Optional sub-brand variant.
|
|
471
|
+
*/
|
|
472
|
+
subBrand?: (typeof subBrands)[number];
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
declare const BreadcrumbsItem: FC<ItemProps$2>;
|
|
476
|
+
interface ItemProps$2 {
|
|
477
|
+
/**
|
|
478
|
+
* Render child elements within `Breadcrumbs.Item`
|
|
479
|
+
*/
|
|
480
|
+
children?: ReactNode;
|
|
481
|
+
/**
|
|
482
|
+
* Use icon as a spacer that will be positioned after `Breadcrumbs.Item`.
|
|
483
|
+
*/
|
|
484
|
+
spacerIconAfter?: boolean;
|
|
485
|
+
/**
|
|
486
|
+
* Use icon as a spacer that will be positioned before `Breadcrumbs.Item`.
|
|
487
|
+
*/
|
|
488
|
+
spacerIconBefore?: boolean;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
declare const BreadcrumbsLink: FC<LinkProps$1>;
|
|
492
|
+
interface LinkProps$1 {
|
|
493
|
+
/**
|
|
494
|
+
* Render children of `breadcrumbs.link`
|
|
495
|
+
*/
|
|
496
|
+
children?: ReactNode;
|
|
497
|
+
/**
|
|
498
|
+
* Where breadcrumb linkshould lead too
|
|
499
|
+
*/
|
|
500
|
+
href?: string;
|
|
501
|
+
/**
|
|
502
|
+
* Pass a function to the breadcrumb item
|
|
503
|
+
*/
|
|
504
|
+
onClick?: () => void;
|
|
505
|
+
/**
|
|
506
|
+
* Highlights item in breadcrumb (This also removes the a tag and any links)
|
|
507
|
+
*/
|
|
508
|
+
isActive?: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* Ref to `<a>` tag
|
|
511
|
+
*/
|
|
512
|
+
ref?: React$1.Ref<HTMLAnchorElement>;
|
|
513
|
+
/**
|
|
514
|
+
* React router property
|
|
515
|
+
*/
|
|
516
|
+
navigate?: () => void;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/** Use `Breadcrumbs` to add a secondary navigation scheme that reveals the user’s location. Each item should be wrapped with `Breadcrumbs.Item` */
|
|
520
|
+
declare const Breadcrumbs: FC<BreadcrumbsProps> & {
|
|
521
|
+
Item: typeof BreadcrumbsItem;
|
|
522
|
+
Link: typeof BreadcrumbsLink;
|
|
523
|
+
};
|
|
524
|
+
interface BreadcrumbsProps {
|
|
525
|
+
/**
|
|
526
|
+
* Contents of the Breadcrumbs. Should only contain `Breadcrumb.Item`.
|
|
527
|
+
*/
|
|
528
|
+
children: ReactNode;
|
|
529
|
+
/**
|
|
530
|
+
* Select if you want the Nav items to be Light
|
|
531
|
+
*/
|
|
532
|
+
isLight?: boolean;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
type ElementUnion$2 = HTMLButtonElement | HTMLAnchorElement;
|
|
536
|
+
type Ref$2 = React$1.Ref<ElementUnion$2> | null;
|
|
537
|
+
/**
|
|
538
|
+
* Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
|
|
539
|
+
*/
|
|
540
|
+
declare const Button: FC<ButtonProps>;
|
|
541
|
+
interface ButtonElementProps {
|
|
542
|
+
/**
|
|
543
|
+
* Default behavior of the Button element. If not provided, 'submit' will
|
|
544
|
+
* be inferred. Type 'reset' deliberately excluded.
|
|
545
|
+
*/
|
|
546
|
+
type?: "button" | "submit";
|
|
547
|
+
/**
|
|
548
|
+
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
549
|
+
*/
|
|
550
|
+
form?: string;
|
|
551
|
+
}
|
|
552
|
+
interface LinkElementProps$2 {
|
|
553
|
+
/**
|
|
554
|
+
* URL to link to if Button elementType is 'a'.
|
|
555
|
+
*/
|
|
556
|
+
href?: string;
|
|
557
|
+
/**
|
|
558
|
+
* Target window for the Button href URL.
|
|
559
|
+
*/
|
|
560
|
+
target?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Relationship between the Button href URL and the current page. See
|
|
563
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
564
|
+
*/
|
|
565
|
+
rel?: string;
|
|
566
|
+
}
|
|
567
|
+
interface ButtonProps extends ButtonElementProps, LinkElementProps$2 {
|
|
568
|
+
/**
|
|
569
|
+
* Text to override `label` with additional, more precise information
|
|
570
|
+
* specifically for screen reader users.
|
|
571
|
+
*/
|
|
572
|
+
ariaLabel?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Button fill.
|
|
575
|
+
*/
|
|
576
|
+
fill?: "solid" | "outlined" | "flat";
|
|
577
|
+
/**
|
|
578
|
+
* Button icon variant.
|
|
579
|
+
*/
|
|
580
|
+
icon?: ArcIcon;
|
|
581
|
+
/**
|
|
582
|
+
* How should a Button icon be displayed?
|
|
583
|
+
*/
|
|
584
|
+
iconPosition?: "afterText" | "beforeText" | "iconOnly";
|
|
585
|
+
/**
|
|
586
|
+
* HTML ID for the Button
|
|
587
|
+
*/
|
|
588
|
+
id?: string;
|
|
589
|
+
/**
|
|
590
|
+
* Should the Button be disabled?
|
|
591
|
+
*/
|
|
592
|
+
isDisabled?: boolean;
|
|
593
|
+
/**
|
|
594
|
+
* Should the Button’s CSS display property be set to block?
|
|
595
|
+
*/
|
|
596
|
+
isDisplayBlock?: boolean;
|
|
597
|
+
/**
|
|
598
|
+
* Should the Button take up the full width of its container?
|
|
599
|
+
*/
|
|
600
|
+
isFullWidth?: boolean;
|
|
601
|
+
/**
|
|
602
|
+
* Button text.
|
|
603
|
+
*/
|
|
604
|
+
label: string;
|
|
605
|
+
/**
|
|
606
|
+
* Optional click handler for the Button.
|
|
607
|
+
*/
|
|
608
|
+
onClick?: () => void;
|
|
609
|
+
/**
|
|
610
|
+
* Optional property to provide component Ref
|
|
611
|
+
*/
|
|
612
|
+
ref?: Ref$2;
|
|
613
|
+
/**
|
|
614
|
+
* How should a Button icon be displayed?
|
|
615
|
+
*/
|
|
616
|
+
size?: "s" | "m" | "l";
|
|
617
|
+
/**
|
|
618
|
+
* Optional supporting text for the Button.
|
|
619
|
+
*/
|
|
620
|
+
supportingText?: string;
|
|
621
|
+
/**
|
|
622
|
+
* Indicates the availability and type of a popup triggered by the button.
|
|
623
|
+
*/
|
|
624
|
+
ariaHasPopup?: false | true | "menu" | "listbox" | "dialog" | "grid" | "tree";
|
|
625
|
+
/**
|
|
626
|
+
* Indicates whether the popup controlled by the button is expanded or collapsed.
|
|
627
|
+
*/
|
|
628
|
+
ariaExpanded?: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* Defines the ID of the element controlled by the button.
|
|
631
|
+
*/
|
|
632
|
+
ariaControls?: string;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
declare const ButtonGroup: FC<ButtonGroupProps>;
|
|
636
|
+
interface ButtonGroupProps {
|
|
637
|
+
/**
|
|
638
|
+
* Components to appear within the ButtonGroup.
|
|
639
|
+
* Can be Button, ButtonV2 only.
|
|
640
|
+
*/
|
|
641
|
+
children: React$1.ReactNode;
|
|
642
|
+
/**
|
|
643
|
+
* Size of the buttons in the ButtonGroup. This will override the size prop for each individual button.
|
|
644
|
+
*/
|
|
645
|
+
size?: ButtonProps["size"];
|
|
646
|
+
/**
|
|
647
|
+
* Determines the alignment of the buttons within the ButtonGroup.
|
|
648
|
+
*/
|
|
649
|
+
align?: "flex-start" | "center" | "flex-end";
|
|
650
|
+
/**
|
|
651
|
+
* Orientation of the ButtonGroup. Defaults to 'horizontal'. 'vertical' Persists on mobile.
|
|
652
|
+
*/
|
|
653
|
+
orientation?: "horizontal" | "vertical";
|
|
654
|
+
/**
|
|
655
|
+
* Spacing between buttons in the group.
|
|
656
|
+
*/
|
|
657
|
+
gap?: 4 | 8 | 12 | 16;
|
|
658
|
+
/**
|
|
659
|
+
* Accessible label for the ButtonGroup, improving screen reader support.
|
|
660
|
+
*/
|
|
661
|
+
ariaLabel?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Should the buttons within `ButtonGroup` take up the full width of its container?
|
|
664
|
+
*/
|
|
665
|
+
isFullWidth?: boolean;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
type ElementUnion$1 = HTMLButtonElement | HTMLAnchorElement;
|
|
669
|
+
type Ref$1 = React$1.Ref<ElementUnion$1> | null;
|
|
670
|
+
declare const ButtonV2: FC<ButtonV2Props>;
|
|
671
|
+
interface LinkElementProps$1 {
|
|
672
|
+
/**
|
|
673
|
+
* URL to link to if `ButtonV2` elementType is 'a'.
|
|
674
|
+
*/
|
|
675
|
+
href?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Target window for the `ButtonV2` href URL.
|
|
678
|
+
*/
|
|
679
|
+
target?: string;
|
|
680
|
+
/**
|
|
681
|
+
* Relationship between the Button href URL and the current page. See
|
|
682
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
683
|
+
*/
|
|
684
|
+
rel?: string;
|
|
685
|
+
}
|
|
686
|
+
interface ButtonV2ElementProps {
|
|
687
|
+
/**
|
|
688
|
+
* Default behavior of the Button element. If not provided, 'submit' will
|
|
689
|
+
* be inferred. Type 'reset' deliberately excluded.
|
|
690
|
+
*/
|
|
691
|
+
type?: "button" | "submit";
|
|
692
|
+
/**
|
|
693
|
+
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
694
|
+
*/
|
|
695
|
+
form?: string;
|
|
696
|
+
}
|
|
697
|
+
interface ButtonV2Props extends ButtonV2ElementProps, LinkElementProps$1 {
|
|
698
|
+
/**
|
|
699
|
+
* Label for `ButtonV2`
|
|
700
|
+
*/
|
|
701
|
+
label?: string;
|
|
702
|
+
/**
|
|
703
|
+
* Determine the buttonStyle for `ButtonV2`. Default style is `primary`
|
|
704
|
+
*/
|
|
705
|
+
buttonStyle?: "primary" | "secondary" | "tertiary" | "warning" | "compact";
|
|
706
|
+
/**
|
|
707
|
+
* Render icon within `ButtonV2`
|
|
708
|
+
*/
|
|
709
|
+
icon?: ArcIcon;
|
|
710
|
+
/**
|
|
711
|
+
* Determine the style position for the icon. Default is `afterText`
|
|
712
|
+
*/
|
|
713
|
+
iconPosition?: "beforeText" | "afterText";
|
|
714
|
+
/**
|
|
715
|
+
* Optional click handler for the `ButtonV2`.
|
|
716
|
+
*/
|
|
717
|
+
onClick?: () => void;
|
|
718
|
+
/**
|
|
719
|
+
* Optional property to provide component Ref
|
|
720
|
+
*/
|
|
721
|
+
ref?: Ref$1;
|
|
722
|
+
/**
|
|
723
|
+
* Should the `ButtonV2` take up the full width of its container?
|
|
724
|
+
*/
|
|
725
|
+
isFullWidth?: boolean;
|
|
726
|
+
/**
|
|
727
|
+
* Text to override `label` with additional, more precise information
|
|
728
|
+
* specifically for screen reader users.
|
|
729
|
+
*/
|
|
730
|
+
ariaLabel?: string;
|
|
731
|
+
/**
|
|
732
|
+
* Size of `ButtonV2`
|
|
733
|
+
*/
|
|
734
|
+
size?: "s" | "m" | "l";
|
|
735
|
+
/**
|
|
736
|
+
* HTML ID for the `ButtonV2`
|
|
737
|
+
*/
|
|
738
|
+
id?: string;
|
|
739
|
+
/**
|
|
740
|
+
* `ButtonV2` will be in a loading state. This will override / add a loading icon to the button in it's respective style
|
|
741
|
+
*/
|
|
742
|
+
isLoading?: boolean;
|
|
743
|
+
/**
|
|
744
|
+
* Indicates the availability and type of a popup triggered by the button.
|
|
745
|
+
*/
|
|
746
|
+
ariaHasPopup?: false | true | "menu" | "listbox" | "dialog" | "grid" | "tree";
|
|
747
|
+
/**
|
|
748
|
+
* Indicates whether the popup controlled by the button is expanded or collapsed.
|
|
749
|
+
*/
|
|
750
|
+
ariaExpanded?: boolean;
|
|
751
|
+
/**
|
|
752
|
+
* Defines the ID of the element controlled by the button.
|
|
753
|
+
*/
|
|
754
|
+
ariaControls?: string;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
interface RangeSelection {
|
|
758
|
+
dates: {
|
|
759
|
+
disabled: boolean;
|
|
760
|
+
value: Date;
|
|
761
|
+
}[];
|
|
762
|
+
selectedDate: Date;
|
|
763
|
+
isSelectionComplete: boolean;
|
|
764
|
+
start: Date;
|
|
765
|
+
end: Date;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
type SelectionType = "single" | "range";
|
|
769
|
+
|
|
770
|
+
type CalendarType = "month" | "year" | "double";
|
|
771
|
+
|
|
772
|
+
/** Use `Calendar` to clearly present available dates and allowing users to choose a way to enter information. */
|
|
773
|
+
declare const Calendar: FC<CalendarProps>;
|
|
774
|
+
interface CalendarProps {
|
|
775
|
+
/**
|
|
776
|
+
* Select single date or range
|
|
777
|
+
*/
|
|
778
|
+
selectionType?: SelectionType;
|
|
779
|
+
/**
|
|
780
|
+
* Dates before this will be disabled.
|
|
781
|
+
*/
|
|
782
|
+
minDate?: Date;
|
|
783
|
+
/**
|
|
784
|
+
* Dates after this will be disabled.
|
|
785
|
+
*/
|
|
786
|
+
maxDate?: Date;
|
|
787
|
+
/**
|
|
788
|
+
* Selected Date for Calendar
|
|
789
|
+
*/
|
|
790
|
+
selectedDate?: Date;
|
|
791
|
+
/**
|
|
792
|
+
* Selected range for Calendar
|
|
793
|
+
*/
|
|
794
|
+
selectedRange?: Date[];
|
|
795
|
+
/**
|
|
796
|
+
* Called when cancel button is clicked.
|
|
797
|
+
*/
|
|
798
|
+
onCancelClick?: () => void;
|
|
799
|
+
/**
|
|
800
|
+
* Called when a range is selected.
|
|
801
|
+
*/
|
|
802
|
+
onRangeSelect?: (range: RangeSelection) => void;
|
|
803
|
+
/**
|
|
804
|
+
* Called when a date is selected.
|
|
805
|
+
*/
|
|
806
|
+
onDateSelect?: (date: Date) => void;
|
|
807
|
+
/**
|
|
808
|
+
* Array of disabled dates
|
|
809
|
+
*/
|
|
810
|
+
disabledDates?: Date[];
|
|
811
|
+
/**
|
|
812
|
+
* Calendar type.
|
|
813
|
+
*/
|
|
814
|
+
type?: CalendarType;
|
|
815
|
+
/**
|
|
816
|
+
* Focus will be set on the selected day when the component mounts, defaults to false.
|
|
817
|
+
*/
|
|
818
|
+
autoFocusOnMount?: boolean;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
type BreakPoints = "xs" | "s" | "m" | "l" | "xl";
|
|
822
|
+
|
|
823
|
+
interface SlideConfig {
|
|
824
|
+
itemsToScroll?: number;
|
|
825
|
+
itemsPerSlide?: number;
|
|
826
|
+
isPartialVisible?: boolean;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
type Responsive = Partial<Record<BreakPoints, SlideConfig>>;
|
|
830
|
+
|
|
831
|
+
declare const Carousel: React$1.FC<CarouselProps>;
|
|
832
|
+
interface CarouselProps {
|
|
833
|
+
/**
|
|
834
|
+
* Adds a gap between the slides.
|
|
835
|
+
*/
|
|
836
|
+
withGutter?: boolean;
|
|
837
|
+
/**
|
|
838
|
+
* How many slides to scroll on each navigation.
|
|
839
|
+
*/
|
|
840
|
+
itemsToScroll?: number;
|
|
841
|
+
/**
|
|
842
|
+
* How many items to show for each slide.
|
|
843
|
+
*/
|
|
844
|
+
itemsPerSlide?: number;
|
|
845
|
+
/**
|
|
846
|
+
* Shows some of the first item in the next slide if true.
|
|
847
|
+
*/
|
|
848
|
+
isPartialVisible?: boolean;
|
|
849
|
+
/**
|
|
850
|
+
* Allows the carousel to scroll infinitely.
|
|
851
|
+
*/
|
|
852
|
+
loop?: boolean;
|
|
853
|
+
/**
|
|
854
|
+
* Configure the carousel options for different breakpoints.
|
|
855
|
+
*/
|
|
856
|
+
responsive?: Responsive;
|
|
857
|
+
/**
|
|
858
|
+
* items for the carousel.
|
|
859
|
+
*/
|
|
860
|
+
children: React$1.ReactNode;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Use `Checkbox` to allow users to select individual options.
|
|
865
|
+
*/
|
|
866
|
+
declare const Checkbox: FC<CheckboxProps>;
|
|
867
|
+
type CheckedProps = {
|
|
868
|
+
/**
|
|
869
|
+
* Is the input checked?
|
|
870
|
+
*/
|
|
871
|
+
checked?: boolean;
|
|
872
|
+
/**
|
|
873
|
+
* The initial checked state of the Checkbox.
|
|
874
|
+
*/
|
|
875
|
+
defaultChecked?: boolean;
|
|
876
|
+
/**
|
|
877
|
+
* sets the state of the Checkbox to be indeterminate
|
|
878
|
+
*/
|
|
879
|
+
indeterminate?: boolean;
|
|
880
|
+
};
|
|
881
|
+
interface CheckboxProps extends Omit<CheckedProps, "defaultChecked"> {
|
|
882
|
+
/**
|
|
883
|
+
* Error message for the Checkbox.
|
|
884
|
+
*/
|
|
885
|
+
errorMessage?: string;
|
|
886
|
+
/**
|
|
887
|
+
* Helper text for the Checkbox, shown below the label.
|
|
888
|
+
*/
|
|
889
|
+
helper?: React$1.ReactNode;
|
|
890
|
+
/**
|
|
891
|
+
* Determine the alignment of the Checkbox.
|
|
892
|
+
*/
|
|
893
|
+
checkboxAlignment?: "top" | "center";
|
|
894
|
+
/**
|
|
895
|
+
* ID for the Checkbox.
|
|
896
|
+
*/
|
|
897
|
+
id: string;
|
|
898
|
+
/**
|
|
899
|
+
* `isDisabled` is a legacy property and not recommended from a UX usability best practice perspective.
|
|
900
|
+
*/
|
|
901
|
+
isDisabled?: boolean;
|
|
902
|
+
/**
|
|
903
|
+
* Is the Checkbox required?
|
|
904
|
+
*/
|
|
905
|
+
isRequired?: boolean;
|
|
906
|
+
/**
|
|
907
|
+
* Label for the Checkbox.
|
|
908
|
+
*/
|
|
909
|
+
label: React$1.ReactNode;
|
|
910
|
+
/**
|
|
911
|
+
* Use `hideLabel` to visually hide the `Checkbox` label. This still allows screen readers to have access to labels. This is set to `false` by default.
|
|
912
|
+
*/
|
|
913
|
+
hideLabel?: boolean;
|
|
914
|
+
/**
|
|
915
|
+
* Name for the Checkbox.
|
|
916
|
+
*/
|
|
917
|
+
name?: string;
|
|
918
|
+
/**
|
|
919
|
+
* Function to call when the Checkbox loses focus.
|
|
920
|
+
*/
|
|
921
|
+
onBlur?: (e: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
922
|
+
/**
|
|
923
|
+
* Callback function to update the Checkbox's controlled `checked` prop, for
|
|
924
|
+
* example `e => setChecked(e.target.checked)`.
|
|
925
|
+
*/
|
|
926
|
+
onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
927
|
+
/**
|
|
928
|
+
* Size of the Checkbox.
|
|
929
|
+
*/
|
|
930
|
+
size?: "s" | "m";
|
|
931
|
+
/**
|
|
932
|
+
* Value for the Checkbox.
|
|
933
|
+
*/
|
|
934
|
+
value?: string;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
type RequirementStatus = "required" | "optional" | "not-applicable";
|
|
938
|
+
declare const Context: React$1.Context<{
|
|
939
|
+
requirementStatus: RequirementStatus | null;
|
|
940
|
+
}>;
|
|
941
|
+
/**
|
|
942
|
+
* Use `FormControl` to provide inputs with labels, helper text and error messages
|
|
943
|
+
*/
|
|
944
|
+
declare const FormControl: FC<FormControlProps>;
|
|
945
|
+
interface FormControlProps {
|
|
946
|
+
/**
|
|
947
|
+
* Render the input or series of inputs
|
|
948
|
+
*/
|
|
949
|
+
children: React$1.ReactNode;
|
|
950
|
+
/**
|
|
951
|
+
* HTML Element type for the FormControl.
|
|
952
|
+
* @default 'div'
|
|
953
|
+
*/
|
|
954
|
+
elementType?: "div" | "fieldset";
|
|
955
|
+
/**
|
|
956
|
+
* Error message for the FormControl. Replaces helper when helperUnderLabel is false.
|
|
957
|
+
*/
|
|
958
|
+
errorMessage?: string;
|
|
959
|
+
/**
|
|
960
|
+
* Helper text for the FormControl, shown below the label.
|
|
961
|
+
*/
|
|
962
|
+
helper?: React$1.ReactNode;
|
|
963
|
+
/**
|
|
964
|
+
* ID for the input that the FormControl points towards.
|
|
965
|
+
*/
|
|
966
|
+
htmlFor?: string;
|
|
967
|
+
/**
|
|
968
|
+
* ID for the FormControl. Used for helper and errorMessage if `htmlFor` is undefined.
|
|
969
|
+
*/
|
|
970
|
+
id?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Are all of the inputs in the FormControl required, optional, or is a
|
|
973
|
+
* uniform requirement status for all inputs not applicable?
|
|
974
|
+
*/
|
|
975
|
+
requirementStatus?: RequirementStatus;
|
|
976
|
+
/**
|
|
977
|
+
* Label for the FormControl.
|
|
978
|
+
*/
|
|
979
|
+
label: string;
|
|
980
|
+
/**
|
|
981
|
+
* Determins if the Label should be in a disabled state
|
|
982
|
+
*/
|
|
983
|
+
isDisabled?: boolean;
|
|
984
|
+
/**
|
|
985
|
+
* Label size.
|
|
986
|
+
*/
|
|
987
|
+
labelSize?: "s" | "l";
|
|
988
|
+
/**
|
|
989
|
+
* Position of Label (Switch component only)
|
|
990
|
+
*/
|
|
991
|
+
labelPosition?: "top" | "left";
|
|
992
|
+
/**
|
|
993
|
+
* Use `DisclosureTitle` to display content that is only visible when toggled into
|
|
994
|
+
* an "open" state. This overrides helper text.
|
|
995
|
+
*/
|
|
996
|
+
disclosureTitle?: string;
|
|
997
|
+
/**
|
|
998
|
+
* Text to display within the disclosure
|
|
999
|
+
*/
|
|
1000
|
+
disclosureText?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* onClick handler for FormControlDisclosure
|
|
1003
|
+
*/
|
|
1004
|
+
onClickDisclosure?: () => void;
|
|
1005
|
+
/**
|
|
1006
|
+
* Optional additional information for the FormControl.
|
|
1007
|
+
*/
|
|
1008
|
+
supplementaryInfo?: React$1.ReactNode;
|
|
1009
|
+
/**
|
|
1010
|
+
* Position helper text under label. This is set to `false` by default.
|
|
1011
|
+
*/
|
|
1012
|
+
helperUnderLabel?: boolean;
|
|
1013
|
+
/**
|
|
1014
|
+
* Use `hideLabel` to visually hide the `FormControl` label. This still allows screen readers to have access to labels. This is set to `false` by default.
|
|
1015
|
+
*/
|
|
1016
|
+
hideLabel?: boolean;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
declare const ComboBox: React$1.ForwardRefExoticComponent<ComboBoxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1020
|
+
interface ComboBoxProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelPosition"> {
|
|
1021
|
+
listBoxAriaLabel: string;
|
|
1022
|
+
options: string[];
|
|
1023
|
+
name?: string;
|
|
1024
|
+
isRequired?: boolean;
|
|
1025
|
+
defaultValue?: string;
|
|
1026
|
+
onBlur?: (e: React$1.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1027
|
+
onFocus?: (e: React$1.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1028
|
+
isMultiSelectable?: boolean;
|
|
1029
|
+
isAutocomplete?: boolean;
|
|
1030
|
+
isReadOnly?: boolean;
|
|
1031
|
+
isFluid?: boolean;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
interface ExtentableContainer {
|
|
1035
|
+
/**
|
|
1036
|
+
* Allows the component to use extended grid values when set to true.
|
|
1037
|
+
*/
|
|
1038
|
+
isExtended?: boolean;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Use `Columns` to compose layouts on a 12-column grid.
|
|
1043
|
+
*/
|
|
1044
|
+
declare const Columns: FC<ColumnsProps> & {
|
|
1045
|
+
Col: typeof Col$1;
|
|
1046
|
+
};
|
|
1047
|
+
declare const Col$1: FC<ColProps$1>;
|
|
1048
|
+
type Span = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1049
|
+
type Offset = "0" | "24" | "48" | "72" | "96" | "120" | "144" | "168" | "192" | "216" | "240" | "264" | "288" | "312" | "336" | "360" | "384";
|
|
1050
|
+
interface ColProps$1 {
|
|
1051
|
+
/**
|
|
1052
|
+
* Vertically align the Column.
|
|
1053
|
+
*/
|
|
1054
|
+
align?: "top" | "center" | "bottom";
|
|
1055
|
+
/**
|
|
1056
|
+
* Content to display in the Column.
|
|
1057
|
+
*/
|
|
1058
|
+
children?: ReactNode;
|
|
1059
|
+
/**
|
|
1060
|
+
* Should the Column be visible for debugging and documentation
|
|
1061
|
+
* purposes?
|
|
1062
|
+
*/
|
|
1063
|
+
isDebugVisible?: boolean;
|
|
1064
|
+
/**
|
|
1065
|
+
* Overlay the column over the previous content on the default breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
1066
|
+
*/
|
|
1067
|
+
offset?: Offset;
|
|
1068
|
+
/**
|
|
1069
|
+
* Overlay the column over the previous content on the S breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
1070
|
+
*/
|
|
1071
|
+
offsetS?: Offset;
|
|
1072
|
+
/**
|
|
1073
|
+
* Overlay the column over the previous content on the M breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
1074
|
+
*/
|
|
1075
|
+
offsetM?: Offset;
|
|
1076
|
+
/**
|
|
1077
|
+
* Overlay the column over the previous content on the L breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
1078
|
+
*/
|
|
1079
|
+
offsetL?: Offset;
|
|
1080
|
+
/**
|
|
1081
|
+
* Overlay the column over the previous content on the XL breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
1082
|
+
*/
|
|
1083
|
+
offsetXL?: Offset;
|
|
1084
|
+
/**
|
|
1085
|
+
* The number of columns to span on the default breakpoint and above, from 1 to 12.
|
|
1086
|
+
*/
|
|
1087
|
+
span?: Span;
|
|
1088
|
+
/**
|
|
1089
|
+
* The number of columns to span on the S breakpoint and above, from 1 to 12.
|
|
1090
|
+
*/
|
|
1091
|
+
spanS?: Span;
|
|
1092
|
+
/**
|
|
1093
|
+
* The number of columns to span on the M breakpoint and above, from 1 to 12.
|
|
1094
|
+
*/
|
|
1095
|
+
spanM?: Span;
|
|
1096
|
+
/**
|
|
1097
|
+
* The number of columns to span on the L breakpoint and above, from 1 to 12.
|
|
1098
|
+
*/
|
|
1099
|
+
spanL?: Span;
|
|
1100
|
+
/**
|
|
1101
|
+
* The number of columns to span on the XL breakpoint and above, from 1 to 12.
|
|
1102
|
+
*/
|
|
1103
|
+
spanXL?: Span;
|
|
1104
|
+
}
|
|
1105
|
+
interface ColumnsProps extends ExtentableContainer {
|
|
1106
|
+
/**
|
|
1107
|
+
* Contents of the Columns. Should only contain `Columns.Col`.
|
|
1108
|
+
*/
|
|
1109
|
+
children: ReactNode;
|
|
1110
|
+
/**
|
|
1111
|
+
* Should the Columns be gutterless?
|
|
1112
|
+
*/
|
|
1113
|
+
isGutterless?: boolean;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
declare const ContentSwitcherTab: FC<ContentSwitcherTabProps>;
|
|
1117
|
+
interface ContentSwitcherTabProps {
|
|
1118
|
+
/**
|
|
1119
|
+
* Label to display on the ContentSwitcherTab
|
|
1120
|
+
*/
|
|
1121
|
+
label: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* Value to link `ContentSwitcherTab` to `ContentSwitcherTabContent`
|
|
1124
|
+
*/
|
|
1125
|
+
value: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Pass a function to `ContentSwitcherTab`
|
|
1128
|
+
*/
|
|
1129
|
+
onClick?: () => void;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
declare const ContentSwitcherContent: FC<ContentSwitcherContentProps>;
|
|
1133
|
+
interface ContentSwitcherContentProps {
|
|
1134
|
+
/**
|
|
1135
|
+
* Content to display
|
|
1136
|
+
*/
|
|
1137
|
+
children: ReactNode;
|
|
1138
|
+
/**
|
|
1139
|
+
* This value links the `ContentSwitcherContent` with `ContentSwitcherTab`
|
|
1140
|
+
*/
|
|
1141
|
+
value: string;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
declare const ContentSwitcherList: FC<ContentSwitcherListProps>;
|
|
1145
|
+
interface ContentSwitcherListProps {
|
|
1146
|
+
/**
|
|
1147
|
+
* Contents of the `ContentSwitcherList` Should contain `Tab`
|
|
1148
|
+
*/
|
|
1149
|
+
children: ReactNode;
|
|
1150
|
+
/**
|
|
1151
|
+
* Determine if `ContentSwitcherList` should be justified
|
|
1152
|
+
*/
|
|
1153
|
+
isJustified?: boolean;
|
|
1154
|
+
/**
|
|
1155
|
+
* Determine the type of `ContentSwitcherList`. Default is standard
|
|
1156
|
+
*/
|
|
1157
|
+
type?: "standard" | "contained";
|
|
1158
|
+
/**
|
|
1159
|
+
* Determine a accessible label for `ContentSwitcherList`
|
|
1160
|
+
*/
|
|
1161
|
+
ariaLabel?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Determines if the `ContentSwitcherList` should be inset within the content panel.
|
|
1164
|
+
*/
|
|
1165
|
+
isInset?: boolean;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/** Use `ContentSwitcher` to allow users to navigate between different sections of relevant content. */
|
|
1169
|
+
declare const ContentSwitcher: FC<ContentSwitcherProps> & {
|
|
1170
|
+
Tab: typeof ContentSwitcherTab;
|
|
1171
|
+
Content: typeof ContentSwitcherContent;
|
|
1172
|
+
List: typeof ContentSwitcherList;
|
|
1173
|
+
};
|
|
1174
|
+
interface ContentSwitcherProps {
|
|
1175
|
+
/**
|
|
1176
|
+
* Render children
|
|
1177
|
+
*/
|
|
1178
|
+
children: ReactNode;
|
|
1179
|
+
/**
|
|
1180
|
+
* Default to an inital value of a tab. If this is left blank it is possible for there to be no active tabs
|
|
1181
|
+
*/
|
|
1182
|
+
defaultValue?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* Event handler called when the value changes.
|
|
1185
|
+
*/
|
|
1186
|
+
onValueChange?: (value: string) => void;
|
|
1187
|
+
/**
|
|
1188
|
+
* When automatic, tabs are activated when receiving focus. When manual, tabs are activated when clicked.
|
|
1189
|
+
*/
|
|
1190
|
+
activationMode?: "automatic" | "manual";
|
|
1191
|
+
/**
|
|
1192
|
+
* value for the `ContentSwitcher`. Passing a value makes the Select a controlled component.
|
|
1193
|
+
*/
|
|
1194
|
+
value?: string;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
declare const ContentSwitcherDropdown: FC<ContentSwitcherDropdownProps> & {
|
|
1198
|
+
Content: typeof ContentSwitcherDropdownContent;
|
|
1199
|
+
};
|
|
1200
|
+
declare const ContentSwitcherDropdownContent: FC<ContentSwitcherDropdownContentProps>;
|
|
1201
|
+
interface ContentSwitcherDropdownContentProps {
|
|
1202
|
+
/**
|
|
1203
|
+
* Content to display
|
|
1204
|
+
*/
|
|
1205
|
+
children: ReactNode;
|
|
1206
|
+
/**
|
|
1207
|
+
* This value links the `ContentSwitcherDropdown.Content` with `ContentSwitcherDropdown` property `Tabs`
|
|
1208
|
+
*/
|
|
1209
|
+
value: string;
|
|
1210
|
+
}
|
|
1211
|
+
interface ContentSwitcherDropdownProps {
|
|
1212
|
+
/**
|
|
1213
|
+
* Render children
|
|
1214
|
+
*/
|
|
1215
|
+
children?: ReactNode;
|
|
1216
|
+
/**
|
|
1217
|
+
* Default to an inital value of a tab. If this is not set default to first tab.
|
|
1218
|
+
*/
|
|
1219
|
+
defaultValue?: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* Event handler called when the value changes. This can only be active when child elements are not present
|
|
1222
|
+
*/
|
|
1223
|
+
onValueChange?: (value: string) => void;
|
|
1224
|
+
/**
|
|
1225
|
+
* Determine what tabs to render. They need both a `value` and `label` prop
|
|
1226
|
+
*/
|
|
1227
|
+
tabs: {
|
|
1228
|
+
value: string;
|
|
1229
|
+
label: string;
|
|
1230
|
+
}[];
|
|
1231
|
+
/**
|
|
1232
|
+
* Determines if the `ContentSwitcherDropdown` should be inset within the content panel.
|
|
1233
|
+
*/
|
|
1234
|
+
isInset?: boolean;
|
|
1235
|
+
/**
|
|
1236
|
+
* value for the `ContentSwitcherDropdown`. Passing a value makes the Select a controlled component.
|
|
1237
|
+
*/
|
|
1238
|
+
value?: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* Aria label for the `ContentSwitcherDropdown`.
|
|
1241
|
+
*/
|
|
1242
|
+
ariaLabel?: string;
|
|
1243
|
+
/**
|
|
1244
|
+
* Sets the `ContentSwitcherDropdown` to 100% width.
|
|
1245
|
+
*/
|
|
1246
|
+
isFluid?: boolean;
|
|
1247
|
+
/**
|
|
1248
|
+
* Sets the width of the `ContentSwitcherDropdown`.
|
|
1249
|
+
*/
|
|
1250
|
+
width?: string;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
declare const parseRangeString: (value?: string) => {
|
|
1254
|
+
start: {
|
|
1255
|
+
date: string;
|
|
1256
|
+
day: string;
|
|
1257
|
+
month: string;
|
|
1258
|
+
year: string;
|
|
1259
|
+
};
|
|
1260
|
+
end: {
|
|
1261
|
+
date: string;
|
|
1262
|
+
day: string;
|
|
1263
|
+
month: string;
|
|
1264
|
+
year: string;
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
declare const parseDateString: (value: string) => {
|
|
1269
|
+
day: string;
|
|
1270
|
+
month: string;
|
|
1271
|
+
year: string;
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
declare const isRangeValid: (value?: string) => boolean;
|
|
1275
|
+
|
|
1276
|
+
declare const isDateValid: (value?: string) => boolean;
|
|
1277
|
+
|
|
1278
|
+
declare const DATE_FORMAT = "dd/MM/yyyy";
|
|
1279
|
+
|
|
1280
|
+
type AutoCompleteTypes = "on" | "off" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "country" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "email" | "impp" | "url" | "photo" | "organization-unit";
|
|
1281
|
+
|
|
1282
|
+
declare const iconNames: readonly ["alertDismiss", "alertError", "alertGeneral", "alertSuccess", "alertWarning", "avatarUser", "breadcrumbLeft", "breadcrumbRight", "buttonLeft", "buttonRight", "cardButton", "carouselRight", "carouselLeft", "checkboxChecked", "checkboxError", "datePickerCalendar", "disclosureExpand", "disclosureMiniExpand", "downloadFile", "downloadAccessibility", "drawerClose", "formControlAlert", "modalClose", "paginationPrevious", "paginationNext", "paginationSimplePrevious", "paginationSimpleNext", "progressBarSuccess", "progressBarError", "progressBarRefresh", "progressStepperComplete", "progressStepperCurrent", "progressStepperWarning", "progressStepperError", "scrollToTop", "selectTrigger", "selectScrollUp", "selectScrollDown", "selectIndicator", "siteFooterExpand", "siteHeaderBack", "siteHeaderLink", "siteHeaderItemGroupExpand", "siteHeaderNavItemExpand", "siteHeaderNavItemExpandAlt", "siteHeaderViewAll", "siteHeaderSubNavOpen", "switchToggle", "tabsNext", "tabsPrevious", "tagRemove", "toastGeneral", "toastSuccess", "toastWarning", "toastError", "toastDismiss", "videoPlayerTranscript"];
|
|
1283
|
+
|
|
1284
|
+
declare const ThemeIcon: FC<ThemeIconProps>;
|
|
1285
|
+
interface ThemeIconProps {
|
|
1286
|
+
/**
|
|
1287
|
+
* Size of the Icon, in pixels.
|
|
1288
|
+
*/
|
|
1289
|
+
size?: number;
|
|
1290
|
+
/**
|
|
1291
|
+
* Icon color
|
|
1292
|
+
*/
|
|
1293
|
+
color?: "auto" | "brand" | "statusRed" | "statusAmber" | "statusGreen";
|
|
1294
|
+
/**
|
|
1295
|
+
* Icon
|
|
1296
|
+
*/
|
|
1297
|
+
icon?: ThemeIconNames;
|
|
1298
|
+
}
|
|
1299
|
+
type ThemeIconNames = (typeof iconNames)[number];
|
|
1300
|
+
|
|
1301
|
+
type EventType$4 = React$1.ChangeEvent<HTMLInputElement>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Use `TextInput` to allow users to enter short form text.
|
|
1304
|
+
*/
|
|
1305
|
+
declare const TextInput: React$1.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1306
|
+
interface TextInputComponentProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo" | "labelPosition"> {
|
|
1307
|
+
/**
|
|
1308
|
+
* Uncontrolled default value of the TextInput. If the TextInput is controlled
|
|
1309
|
+
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
1310
|
+
*
|
|
1311
|
+
* `defaultValue` is not to be used instead of helper text.
|
|
1312
|
+
*/
|
|
1313
|
+
defaultValue?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* ID for the TextInput.
|
|
1316
|
+
*/
|
|
1317
|
+
id: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* Mode for the input. If not defined, inferred by type.
|
|
1320
|
+
*/
|
|
1321
|
+
inputMode?: "email" | "numeric" | "tel" | "url";
|
|
1322
|
+
/**
|
|
1323
|
+
* Should the control be disabled?
|
|
1324
|
+
*/
|
|
1325
|
+
isDisabled?: boolean;
|
|
1326
|
+
/**
|
|
1327
|
+
* Should the control be read-only?
|
|
1328
|
+
*/
|
|
1329
|
+
isReadOnly?: boolean;
|
|
1330
|
+
/**
|
|
1331
|
+
* Should the control be required?
|
|
1332
|
+
*/
|
|
1333
|
+
isRequired?: boolean;
|
|
1334
|
+
/**
|
|
1335
|
+
* Maximum number of characters.
|
|
1336
|
+
*/
|
|
1337
|
+
maxLength?: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* Minimum number of characters.
|
|
1340
|
+
*/
|
|
1341
|
+
minLength?: number;
|
|
1342
|
+
/**
|
|
1343
|
+
* Name of the input.
|
|
1344
|
+
*/
|
|
1345
|
+
name?: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* Function to call when the TextInput loses focus.
|
|
1348
|
+
*/
|
|
1349
|
+
onBlur?: (e: React$1.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1350
|
+
/**
|
|
1351
|
+
* Function to call when the TextInput is focused.
|
|
1352
|
+
*/
|
|
1353
|
+
onFocus?: (e: React$1.FocusEvent<HTMLInputElement, Element>) => void;
|
|
1354
|
+
/**
|
|
1355
|
+
* Callback function commonly used to update the TextInput's controlled
|
|
1356
|
+
* `value`, for example `e => setValue(e.target.value)`.
|
|
1357
|
+
*/
|
|
1358
|
+
onChange?: (e: EventType$4) => void;
|
|
1359
|
+
/**
|
|
1360
|
+
* Validation regex pattern.
|
|
1361
|
+
*/
|
|
1362
|
+
pattern?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* Size of the input.
|
|
1365
|
+
*/
|
|
1366
|
+
inputSize?: "s" | "m" | "l";
|
|
1367
|
+
/**
|
|
1368
|
+
* Determine the alignment of the text within the input
|
|
1369
|
+
*/
|
|
1370
|
+
inputAlignment?: "left" | "right";
|
|
1371
|
+
/**
|
|
1372
|
+
* Enable button to toggle TextInput type from `Selected Type` to `Text`. This will override any `suffix` elements
|
|
1373
|
+
*/
|
|
1374
|
+
showPassword?: boolean;
|
|
1375
|
+
/**
|
|
1376
|
+
* Add a prefixed value within `TextInput`
|
|
1377
|
+
*/
|
|
1378
|
+
prefix?: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* Add a suffixed value within `TextInput`. If `showPassword` is true, suffix will not be displayed */
|
|
1381
|
+
suffix?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* Type for the input. `number` will be changed to `text` and set the `numeric` inputMode.
|
|
1384
|
+
*/
|
|
1385
|
+
type?: "email" | "number" | "password" | "tel" | "text" | "url";
|
|
1386
|
+
/**
|
|
1387
|
+
* Current value of the TextInput. Must be controlled via an
|
|
1388
|
+
* `onChange` callback function. Otherwise, use `defaultValue` (or `isReadOnly`).
|
|
1389
|
+
*/
|
|
1390
|
+
value?: string;
|
|
1391
|
+
/**
|
|
1392
|
+
* Placeholder for the input
|
|
1393
|
+
*/
|
|
1394
|
+
placeholder?: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* Icon button to show at the end of the input
|
|
1397
|
+
*/
|
|
1398
|
+
iconButton?: {
|
|
1399
|
+
ref?: React$1.Ref<HTMLButtonElement>;
|
|
1400
|
+
onFocus?: React$1.FocusEventHandler<HTMLButtonElement>;
|
|
1401
|
+
onClick: () => void;
|
|
1402
|
+
label: string;
|
|
1403
|
+
icon: ThemeIconNames;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* Sets the width of the TextInput.
|
|
1407
|
+
*/
|
|
1408
|
+
width?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* Sets autoComplete value for TextInput.
|
|
1411
|
+
*/
|
|
1412
|
+
autoComplete?: AutoCompleteTypes;
|
|
1413
|
+
/**
|
|
1414
|
+
* A reference to TextInput
|
|
1415
|
+
*/
|
|
1416
|
+
ref?: React$1.Ref<HTMLInputElement>;
|
|
1417
|
+
/**
|
|
1418
|
+
* Indicates whether the TextInput is in a loading state
|
|
1419
|
+
*/
|
|
1420
|
+
isLoading?: boolean;
|
|
1421
|
+
}
|
|
1422
|
+
type TextInputProps = Omit<TextInputComponentProps, "placeholder">;
|
|
1423
|
+
type TextInputWithPlaceholderProps = TextInputComponentProps;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
|
|
1427
|
+
*/
|
|
1428
|
+
declare const DatePicker: React$1.ForwardRefExoticComponent<Omit<DatePickerProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1429
|
+
interface DatePickerRangeSelection extends RangeSelection {
|
|
1430
|
+
formattedRange: string;
|
|
1431
|
+
}
|
|
1432
|
+
interface DatePickerProps extends Omit<TextInputWithPlaceholderProps, "defaultValue" | "inputMode" | "minLength" | "maxLength" | "pattern" | "type" | "showPassword" | "placeholder" | "iconButton" | "prefix" | "suffix">, Omit<CalendarProps, "onDateSelect" | "onRangeSelect" | "selectedDate" | "selectedRange"> {
|
|
1433
|
+
isFluid?: boolean;
|
|
1434
|
+
onDateSelect?: (value: {
|
|
1435
|
+
date: Date;
|
|
1436
|
+
formattedDate: string;
|
|
1437
|
+
}) => void;
|
|
1438
|
+
onRangeSelect?: (value: DatePickerRangeSelection) => void;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Use `Disclosure` to show and hide sections of content.
|
|
1443
|
+
*/
|
|
1444
|
+
declare const Disclosure: FC<DisclosureProps>;
|
|
1445
|
+
interface DisclosureProps {
|
|
1446
|
+
/**
|
|
1447
|
+
* Content to display in the Disclosure.
|
|
1448
|
+
*/
|
|
1449
|
+
children: ReactNode;
|
|
1450
|
+
/**
|
|
1451
|
+
* HTML section heading level of the Disclosure summary. If not provided, will
|
|
1452
|
+
* render as a span.
|
|
1453
|
+
*/
|
|
1454
|
+
headingLevel?: HeadingLevel;
|
|
1455
|
+
/**
|
|
1456
|
+
* Should Disclosure details be indented to line-up with summary text?
|
|
1457
|
+
*/
|
|
1458
|
+
indentDetails?: boolean;
|
|
1459
|
+
/**
|
|
1460
|
+
* Should the Disclosure content be open by default?
|
|
1461
|
+
*/
|
|
1462
|
+
isOpen?: boolean;
|
|
1463
|
+
/**
|
|
1464
|
+
* The Disclosure summary text.
|
|
1465
|
+
*/
|
|
1466
|
+
summary: string;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* Use `DisclosureMini` to show and hide sections of content.
|
|
1471
|
+
*/
|
|
1472
|
+
declare const DisclosureMini: FC<DisclosureMiniProps>;
|
|
1473
|
+
interface DisclosureMiniProps {
|
|
1474
|
+
/**
|
|
1475
|
+
* Content to display in the DisclosureMini.
|
|
1476
|
+
*/
|
|
1477
|
+
children: ReactNode;
|
|
1478
|
+
/**
|
|
1479
|
+
* DisclosureMini ID.
|
|
1480
|
+
*/
|
|
1481
|
+
id?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* The DisclosureMini summary text.
|
|
1484
|
+
*/
|
|
1485
|
+
summary: string;
|
|
1486
|
+
/**
|
|
1487
|
+
* Should the Disclosure content be open by default?
|
|
1488
|
+
*/
|
|
1489
|
+
isOpen?: boolean;
|
|
1490
|
+
/**
|
|
1491
|
+
* Position of the DisclosureMini icon?
|
|
1492
|
+
*/
|
|
1493
|
+
iconPosition?: "left" | "right";
|
|
1494
|
+
/**
|
|
1495
|
+
* On Click handler for DisclosureMini summary disclosure.
|
|
1496
|
+
*/
|
|
1497
|
+
onClick?: () => void;
|
|
1498
|
+
/**
|
|
1499
|
+
* Disclosure size.
|
|
1500
|
+
*/
|
|
1501
|
+
size?: "s" | "l";
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
declare const Drawer: React$1.FC<DrawerProps>;
|
|
1505
|
+
interface DrawerProps {
|
|
1506
|
+
/**
|
|
1507
|
+
* Title for the drawer. This will be announced by screen readers when the drawer opens.
|
|
1508
|
+
*/
|
|
1509
|
+
title: string;
|
|
1510
|
+
/**
|
|
1511
|
+
* The position on the screen the drawer should render.
|
|
1512
|
+
*/
|
|
1513
|
+
position?: "top" | "right" | "bottom" | "left";
|
|
1514
|
+
/**
|
|
1515
|
+
* Show or hide page overlay.
|
|
1516
|
+
*/
|
|
1517
|
+
isOverlayVisible?: boolean;
|
|
1518
|
+
/**
|
|
1519
|
+
* Footer content for the drawer.
|
|
1520
|
+
*/
|
|
1521
|
+
footer?: React$1.ReactNode;
|
|
1522
|
+
/**
|
|
1523
|
+
* Function to be called when the Drawer has been requested to close by either the esc key being pressed, outside the dialog being clicked or the close button being clicked. The callback must set the open state of the Drawer to false.
|
|
1524
|
+
*/
|
|
1525
|
+
onRequestClose: () => void;
|
|
1526
|
+
/**
|
|
1527
|
+
* Whether to return focus to the element that was focused before the Drawer opened. True by default.
|
|
1528
|
+
*/
|
|
1529
|
+
shouldReturnFocus?: boolean;
|
|
1530
|
+
/**
|
|
1531
|
+
* Size of the Drawer dialog.
|
|
1532
|
+
*/
|
|
1533
|
+
size?: "s" | "l";
|
|
1534
|
+
/**
|
|
1535
|
+
* Set Drawer open or closed.
|
|
1536
|
+
*/
|
|
1537
|
+
isOpen?: boolean;
|
|
1538
|
+
/**
|
|
1539
|
+
* Custom content for `Modal`.
|
|
1540
|
+
*/
|
|
1541
|
+
children?: React$1.ReactNode;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
declare const Download: React$1.FC<DownloadProps>;
|
|
1545
|
+
interface DownloadProps {
|
|
1546
|
+
/**
|
|
1547
|
+
* Name for `<Download />`
|
|
1548
|
+
*/
|
|
1549
|
+
name: string;
|
|
1550
|
+
/**
|
|
1551
|
+
* File type for `<Download />`
|
|
1552
|
+
*/
|
|
1553
|
+
type: string;
|
|
1554
|
+
/**
|
|
1555
|
+
* File url for `<Download />`
|
|
1556
|
+
*/
|
|
1557
|
+
href?: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* If true, the spacing will be reduced resulting in a tighter look and feel.
|
|
1560
|
+
*/
|
|
1561
|
+
isCompact?: boolean;
|
|
1562
|
+
/**
|
|
1563
|
+
* If false the width will be the same as the inner content
|
|
1564
|
+
*/
|
|
1565
|
+
isFullWidth?: boolean;
|
|
1566
|
+
/**
|
|
1567
|
+
* Description for `<Download />`
|
|
1568
|
+
*/
|
|
1569
|
+
description?: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* File size for `<Download />`
|
|
1572
|
+
*/
|
|
1573
|
+
size?: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* Icon for `<Download />`
|
|
1576
|
+
*/
|
|
1577
|
+
icon?: Extract<ThemeIconNames, "downloadFile" | "downloadAccessibility">;
|
|
1578
|
+
/**
|
|
1579
|
+
* Click handler for `<Download />`
|
|
1580
|
+
*/
|
|
1581
|
+
onClick?: (e: MouseEvent$1<HTMLAnchorElement>) => void;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Use `Elevation` to elevate what matters.
|
|
1586
|
+
*/
|
|
1587
|
+
declare const Elevation: FC<ElevationProps>;
|
|
1588
|
+
interface ElevationProps {
|
|
1589
|
+
/**
|
|
1590
|
+
* Contents to Elevate.
|
|
1591
|
+
*/
|
|
1592
|
+
children: ReactNode;
|
|
1593
|
+
/**
|
|
1594
|
+
* Shadow Elevation level.
|
|
1595
|
+
*/
|
|
1596
|
+
elevationLevel?: "1" | "2";
|
|
1597
|
+
/**
|
|
1598
|
+
* Should the Elevation be full width?
|
|
1599
|
+
*/
|
|
1600
|
+
isFullWidth?: boolean;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
declare const FilterControl: FC<FilterControlProps>;
|
|
1604
|
+
interface FilterControlProps {
|
|
1605
|
+
/**
|
|
1606
|
+
* Name of the `<FilterControl />`
|
|
1607
|
+
*/
|
|
1608
|
+
children: ReactNode;
|
|
1609
|
+
/**
|
|
1610
|
+
* Determine if the `<FilterControl />` is selected
|
|
1611
|
+
*/
|
|
1612
|
+
isSelected?: boolean;
|
|
1613
|
+
/**
|
|
1614
|
+
* onClick handler
|
|
1615
|
+
*/
|
|
1616
|
+
onClick?: () => void;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
declare const FilterControls: FC<FilterControlsProps>;
|
|
1620
|
+
interface FilterControlsProps {
|
|
1621
|
+
/**
|
|
1622
|
+
* Contents of the `<FilterControls />` Should contain `<FilterControl />`
|
|
1623
|
+
*/
|
|
1624
|
+
children: ReactNode;
|
|
1625
|
+
/**
|
|
1626
|
+
* Detmine how to align <FilterControl /> with in <FilterControls />. Default `center`
|
|
1627
|
+
*/
|
|
1628
|
+
controlsAlignment?: "left" | "right" | "center";
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
declare const FilterItem: FC<FilterItemProps>;
|
|
1632
|
+
interface FilterItemProps {
|
|
1633
|
+
/**
|
|
1634
|
+
* Content to display within `Filter.Item`
|
|
1635
|
+
*/
|
|
1636
|
+
children: ReactNode;
|
|
1637
|
+
/**
|
|
1638
|
+
* Attach Tags to content provided within `Filter.Item`
|
|
1639
|
+
*/
|
|
1640
|
+
tags: string[];
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
declare const FilterItems: FC<FilterItemsProps>;
|
|
1644
|
+
interface FilterItemsProps {
|
|
1645
|
+
/**
|
|
1646
|
+
* Render children of `<Filter.Items />`. This should only use `<Filter.Item />`
|
|
1647
|
+
*/
|
|
1648
|
+
children: ReactNode;
|
|
1649
|
+
/**
|
|
1650
|
+
* Error to display for `<Filter.Item />`
|
|
1651
|
+
*/
|
|
1652
|
+
error?: ReactNode;
|
|
1653
|
+
/**
|
|
1654
|
+
* Determine the display style of `<Filter.Item />`
|
|
1655
|
+
*/
|
|
1656
|
+
displayType?: "grid" | "list";
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/** Use `Filter` to filter and categorise page content. */
|
|
1660
|
+
declare const Filter: FC<FilterProps> & {
|
|
1661
|
+
Item: typeof FilterItem;
|
|
1662
|
+
Items: typeof FilterItems;
|
|
1663
|
+
Control: typeof FilterControl;
|
|
1664
|
+
Controls: typeof FilterControls;
|
|
1665
|
+
};
|
|
1666
|
+
interface FilterProps {
|
|
1667
|
+
/**
|
|
1668
|
+
* Contents of the `<Filter />` Should contain `<Filter.Item />`
|
|
1669
|
+
*/
|
|
1670
|
+
children?: ReactNode;
|
|
1671
|
+
/**
|
|
1672
|
+
* onChange handler called everytime `<FilterControl />` is pressed
|
|
1673
|
+
*/
|
|
1674
|
+
onChange?: (selectedControls: string[]) => void;
|
|
1675
|
+
/**
|
|
1676
|
+
* Detmine how to display the content within `<Filter.Items />`. Default is `grid`
|
|
1677
|
+
*/
|
|
1678
|
+
displayType?: FilterItemsProps["displayType"];
|
|
1679
|
+
/**
|
|
1680
|
+
* Detmine how to align <Filter.Controls />. Default `center`
|
|
1681
|
+
*/
|
|
1682
|
+
controlsAlignment?: FilterControlsProps["controlsAlignment"];
|
|
1683
|
+
/**
|
|
1684
|
+
* Detmine if the `<Filter.Control />` have to partially match or match all
|
|
1685
|
+
*/
|
|
1686
|
+
logicType?: "AND" | "OR";
|
|
1687
|
+
/**
|
|
1688
|
+
* Detmine what is display when no items match the filtering criteria
|
|
1689
|
+
*/
|
|
1690
|
+
error?: ReactNode;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
declare const BREAKPOINTS: readonly ["xs", "s", "m", "l", "xl", "xxl", "xxxl"];
|
|
1694
|
+
|
|
1695
|
+
type Breakpoints = (typeof BREAKPOINTS)[number];
|
|
1696
|
+
type ColumnConfig<T> = Partial<Record<Breakpoints, T>>;
|
|
1697
|
+
type GridValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1698
|
+
type AlignmentValue = "normal" | "start" | "center" | "end" | "stretch" | "baseline";
|
|
1699
|
+
type ColumnValue = GridValue | "auto" | "equal";
|
|
1700
|
+
type Column$1 = ColumnConfig<ColumnValue>;
|
|
1701
|
+
type Arrangement = ColumnConfig<GridValue>;
|
|
1702
|
+
type Alignment = ColumnConfig<AlignmentValue>;
|
|
1703
|
+
|
|
1704
|
+
declare const Col: React$1.FC<ColProps>;
|
|
1705
|
+
interface ColProps extends Column$1 {
|
|
1706
|
+
offset?: Arrangement;
|
|
1707
|
+
order?: Arrangement;
|
|
1708
|
+
align?: Alignment;
|
|
1709
|
+
children: React$1.ReactNode;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
declare const Row: React$1.FC<RowProps>;
|
|
1713
|
+
interface RowProps {
|
|
1714
|
+
align?: AlignmentValue;
|
|
1715
|
+
direction?: "column" | "row" | "column-reverse" | "row-reverse";
|
|
1716
|
+
justify?: "start" | "center" | "end" | "between" | "around" | "normal";
|
|
1717
|
+
children: React$1.ReactNode;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Use `Grid` to compose layouts on a 12-column grid.
|
|
1722
|
+
*/
|
|
1723
|
+
declare const Grid: React$1.FC<GridProps> & {
|
|
1724
|
+
Col: typeof Col;
|
|
1725
|
+
Row: typeof Row;
|
|
1726
|
+
};
|
|
1727
|
+
interface GridProps extends ExtentableContainer {
|
|
1728
|
+
/**
|
|
1729
|
+
* `Grid` is set to 100% width if true.
|
|
1730
|
+
*/
|
|
1731
|
+
isFluid?: boolean;
|
|
1732
|
+
/**
|
|
1733
|
+
* Removes gap between columns for an edge to edge layout if true.
|
|
1734
|
+
*/
|
|
1735
|
+
isGutterless?: boolean;
|
|
1736
|
+
/**
|
|
1737
|
+
* Allows the rows and columns be visible for debugging.
|
|
1738
|
+
*/
|
|
1739
|
+
isDebugVisible?: boolean;
|
|
1740
|
+
/**
|
|
1741
|
+
* Contents of the Grid. Should only contain `Grid.Row`.
|
|
1742
|
+
*/
|
|
1743
|
+
children: React$1.ReactNode;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Use `Group` to arrange flexible items in a row.
|
|
1748
|
+
*/
|
|
1749
|
+
declare const Group: FC<GroupProps> & {
|
|
1750
|
+
Item: typeof GroupItem;
|
|
1751
|
+
};
|
|
1752
|
+
declare const GroupItem: FC<ItemProps$1>;
|
|
1753
|
+
interface ItemProps$1 {
|
|
1754
|
+
/**
|
|
1755
|
+
* Content to display in the Group.Item.
|
|
1756
|
+
*/
|
|
1757
|
+
children?: ReactNode;
|
|
1758
|
+
/**
|
|
1759
|
+
* Should the Group.Item be visible for debugging and documentation
|
|
1760
|
+
* purposes?
|
|
1761
|
+
*/
|
|
1762
|
+
isDebugVisible?: boolean;
|
|
1763
|
+
/**
|
|
1764
|
+
* Should the Group.Item stretch to fill the available space?
|
|
1765
|
+
*/
|
|
1766
|
+
grow?: boolean;
|
|
1767
|
+
}
|
|
1768
|
+
interface GroupProps extends ExtentableContainer {
|
|
1769
|
+
/**
|
|
1770
|
+
* Contents of the Group. Should only contain `Group.Item`.
|
|
1771
|
+
*/
|
|
1772
|
+
children: ReactNode;
|
|
1773
|
+
/**
|
|
1774
|
+
* Should all Group.Items in the Group stretch to fill the available space?
|
|
1775
|
+
*/
|
|
1776
|
+
grow?: boolean;
|
|
1777
|
+
/**
|
|
1778
|
+
* Should all Group.Items in the Group stretch to fill the available space with equal widths?
|
|
1779
|
+
*/
|
|
1780
|
+
growEqual?: boolean;
|
|
1781
|
+
/**
|
|
1782
|
+
* Should a border be shown between Group.Items? **Warning: Sets CSS property `overflow:hidden`.**
|
|
1783
|
+
*/
|
|
1784
|
+
gutterBorder?: boolean;
|
|
1785
|
+
/**
|
|
1786
|
+
* Should wrapping of Group.Items in the Group be disabled?
|
|
1787
|
+
*/
|
|
1788
|
+
noWrap?: boolean;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
declare const HeroBanner: FC<HeroBannerProps>;
|
|
1792
|
+
interface HeroBannerProps extends Omit<TemplateBannerProps, "headingSize" | "alignment" | "additionalTopMargin"> {
|
|
1793
|
+
/**
|
|
1794
|
+
* Extend HeroBanner 56px beyond its container on both sides at larger breakpoints (e.g., 1440px and above).
|
|
1795
|
+
*/
|
|
1796
|
+
extendBeyondContainer?: boolean;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
1800
|
+
type Ref = React$1.Ref<ElementUnion> | null;
|
|
1801
|
+
declare const HeroButton: FC<HeroButtonProps>;
|
|
1802
|
+
interface LinkElementProps {
|
|
1803
|
+
/**
|
|
1804
|
+
* URL to link to if `HeroButton` elementType is 'a'.
|
|
1805
|
+
*/
|
|
1806
|
+
href?: string;
|
|
1807
|
+
/**
|
|
1808
|
+
* Target window for the `HeroButton` href URL.
|
|
1809
|
+
*/
|
|
1810
|
+
target?: string;
|
|
1811
|
+
/**
|
|
1812
|
+
* Relationship between the Button href URL and the current page. See
|
|
1813
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
1814
|
+
*/
|
|
1815
|
+
rel?: string;
|
|
1816
|
+
}
|
|
1817
|
+
interface HeroButtonElementProps {
|
|
1818
|
+
/**
|
|
1819
|
+
* Default behavior of the Button element. If not provided, 'submit' will
|
|
1820
|
+
* be inferred. Type 'reset' deliberately excluded.
|
|
1821
|
+
*/
|
|
1822
|
+
type?: "button" | "submit";
|
|
1823
|
+
/**
|
|
1824
|
+
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
1825
|
+
*/
|
|
1826
|
+
form?: string;
|
|
1827
|
+
}
|
|
1828
|
+
interface HeroButtonProps extends HeroButtonElementProps, LinkElementProps {
|
|
1829
|
+
/**
|
|
1830
|
+
* Label for `HeroButton`
|
|
1831
|
+
*/
|
|
1832
|
+
label?: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* Determine the buttonStyle for `HeroButton`. Default style is `primary`
|
|
1835
|
+
*/
|
|
1836
|
+
buttonStyle?: "primary" | "primary-gradient" | "secondary" | "secondary-gradient" | "warning";
|
|
1837
|
+
/**
|
|
1838
|
+
* Render icon within `HeroButton`. Warning icon will only render when buttonStyle = 'warning'
|
|
1839
|
+
*/
|
|
1840
|
+
icon?: "arrow-right" | "arrow-down" | "play" | "warning";
|
|
1841
|
+
/**
|
|
1842
|
+
* Optional click handler for the `HeroButton`.
|
|
1843
|
+
*/
|
|
1844
|
+
onClick?: () => void;
|
|
1845
|
+
/**
|
|
1846
|
+
* Optional property to provide component Ref
|
|
1847
|
+
*/
|
|
1848
|
+
ref?: Ref;
|
|
1849
|
+
/**
|
|
1850
|
+
* Text to override `label` with additional, more precise information
|
|
1851
|
+
* specifically for screen reader users.
|
|
1852
|
+
*/
|
|
1853
|
+
ariaLabel?: string;
|
|
1854
|
+
/**
|
|
1855
|
+
* HTML ID for the `HeroButton`
|
|
1856
|
+
*/
|
|
1857
|
+
id?: string;
|
|
1858
|
+
/**
|
|
1859
|
+
* `HeroButton` will be in a loading state. This will override / add a loading icon to the button in it's respective style
|
|
1860
|
+
*/
|
|
1861
|
+
isLoading?: boolean;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
declare const Hidden: React$1.FC<HiddenProps>;
|
|
1865
|
+
interface HiddenProps {
|
|
1866
|
+
xs?: boolean;
|
|
1867
|
+
s?: boolean;
|
|
1868
|
+
m?: boolean;
|
|
1869
|
+
l?: boolean;
|
|
1870
|
+
xl?: boolean;
|
|
1871
|
+
children: React$1.ReactNode;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* Use `Icon` to display brand iconography.
|
|
1876
|
+
*/
|
|
1877
|
+
declare const Icon: FC<IconProps>;
|
|
1878
|
+
declare const colors: readonly ["auto", "brand", "statusRed", "statusAmber", "statusGreen"];
|
|
1879
|
+
interface IconProps {
|
|
1880
|
+
/**
|
|
1881
|
+
* Color of the Icon.
|
|
1882
|
+
*/
|
|
1883
|
+
color?: (typeof colors)[number];
|
|
1884
|
+
/**
|
|
1885
|
+
* Should the Icon component be styled as an inline element?
|
|
1886
|
+
*/
|
|
1887
|
+
isInline?: boolean;
|
|
1888
|
+
/**
|
|
1889
|
+
* Icon variant.
|
|
1890
|
+
*/
|
|
1891
|
+
icon?: ArcIcon | React$1.ReactElement<SVGElement>;
|
|
1892
|
+
/**
|
|
1893
|
+
* Alternative text label for the Icon.
|
|
1894
|
+
*/
|
|
1895
|
+
label?: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* Size of the Icon, in pixels.
|
|
1898
|
+
*/
|
|
1899
|
+
size?: number;
|
|
1900
|
+
/**
|
|
1901
|
+
* value for data-testid
|
|
1902
|
+
*/
|
|
1903
|
+
testId?: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* hides the icon from screenreaders
|
|
1906
|
+
*/
|
|
1907
|
+
isPresentationIcon?: boolean;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
type CardFooterIcon = "play" | "arrow";
|
|
1911
|
+
interface CardFooterProps {
|
|
1912
|
+
metaText?: string | Date;
|
|
1913
|
+
isDarkPathway?: boolean;
|
|
1914
|
+
buttonIcon?: CardFooterIcon;
|
|
1915
|
+
showButton?: boolean;
|
|
1916
|
+
isHovered?: boolean;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
type CardHeadingSize = Extract<HeadingSize, "m" | "l">;
|
|
1920
|
+
|
|
1921
|
+
/** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
|
|
1922
|
+
declare const ImpactCard: FC<ImpactCardProps>;
|
|
1923
|
+
type ImpactCardPathway = "light" | "dark";
|
|
1924
|
+
interface ImpactCardProps {
|
|
1925
|
+
/**
|
|
1926
|
+
* Heading for the ImpactCard.
|
|
1927
|
+
*/
|
|
1928
|
+
heading: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* Heading size for the ImpactCard.
|
|
1931
|
+
*/
|
|
1932
|
+
headingSize?: CardHeadingSize;
|
|
1933
|
+
/**
|
|
1934
|
+
* Url for the ImpactCard. Makes the whole card a link
|
|
1935
|
+
*/
|
|
1936
|
+
url: string;
|
|
1937
|
+
/**
|
|
1938
|
+
* Sets a dark or light background for the ImpactCard.
|
|
1939
|
+
*/
|
|
1940
|
+
pathway?: ImpactCardPathway;
|
|
1941
|
+
/**
|
|
1942
|
+
* Heading level for the ImpactCard heading.
|
|
1943
|
+
*/
|
|
1944
|
+
headingLevel?: HeadingLevel;
|
|
1945
|
+
/**
|
|
1946
|
+
* Uppercase label for the ImpactCard.
|
|
1947
|
+
*/
|
|
1948
|
+
label?: string;
|
|
1949
|
+
/**
|
|
1950
|
+
* Sets a minimum height for the ImpactCard.
|
|
1951
|
+
*/
|
|
1952
|
+
minHeight?: number;
|
|
1953
|
+
/**
|
|
1954
|
+
* Click handler for the ImpactCard.
|
|
1955
|
+
*/
|
|
1956
|
+
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement>) => void;
|
|
1957
|
+
/**
|
|
1958
|
+
* Object of `data-` attributes to render on internal anchor element, e.g.
|
|
1959
|
+
* `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
|
|
1960
|
+
*/
|
|
1961
|
+
linkData?: {
|
|
1962
|
+
[key: string]: string;
|
|
1963
|
+
};
|
|
1964
|
+
/**
|
|
1965
|
+
* Image props for the ImpactCard. Consider avoiding alt if the image is for decorative purposes only.
|
|
1966
|
+
*/
|
|
1967
|
+
img: Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "anchor" | "fadeOnLoad">;
|
|
1968
|
+
/**
|
|
1969
|
+
* Icon for the ImpactCard CTA button
|
|
1970
|
+
*/
|
|
1971
|
+
buttonIcon?: CardFooterProps["buttonIcon"];
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
/** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
|
|
1975
|
+
declare const InformationCard: FC<InformationCardProps>;
|
|
1976
|
+
type InformationCardImage = Pick<ImageProps, "alt" | "loading" | "width" | "height" | "src" | "fadeOnLoad">;
|
|
1977
|
+
type InformationCardButtonProps = Pick<ButtonV2Props, "label" | "onClick" | "href">;
|
|
1978
|
+
interface minHeightsProps {
|
|
1979
|
+
xs?: number;
|
|
1980
|
+
s?: number;
|
|
1981
|
+
m?: number;
|
|
1982
|
+
l?: number;
|
|
1983
|
+
xl?: number;
|
|
1984
|
+
xxl?: number;
|
|
1985
|
+
xxxl?: number;
|
|
1986
|
+
}
|
|
1987
|
+
interface InformationCardProps {
|
|
1988
|
+
/**
|
|
1989
|
+
* Heading for the InformationCard.
|
|
1990
|
+
*/
|
|
1991
|
+
heading: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* Heading level for the InformationCard heading.
|
|
1994
|
+
*/
|
|
1995
|
+
headingLevel?: HeadingLevel;
|
|
1996
|
+
/**
|
|
1997
|
+
* Text content for the InformationCard
|
|
1998
|
+
*/
|
|
1999
|
+
text?: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* Uppercase label for the InformationCard.
|
|
2002
|
+
*/
|
|
2003
|
+
label?: string;
|
|
2004
|
+
/**
|
|
2005
|
+
* Url for the InformationCard. Makes the whole card a link and hides `button` if provided.
|
|
2006
|
+
*/
|
|
2007
|
+
cardUrl?: string;
|
|
2008
|
+
/**
|
|
2009
|
+
* Click handler for the InformationCard. Only applied when a card url is provided.
|
|
2010
|
+
*/
|
|
2011
|
+
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement>) => void;
|
|
2012
|
+
/**
|
|
2013
|
+
* Footer logo for the InformationCard.
|
|
2014
|
+
*/
|
|
2015
|
+
footerLogo?: InformationCardImage;
|
|
2016
|
+
/**
|
|
2017
|
+
* Header image for the InformationCard.
|
|
2018
|
+
*/
|
|
2019
|
+
image?: InformationCardImage;
|
|
2020
|
+
/**
|
|
2021
|
+
* Header icon for the InformationCard.
|
|
2022
|
+
*/
|
|
2023
|
+
icon?: ArcIcon;
|
|
2024
|
+
/**
|
|
2025
|
+
* Sets a minimum height for the InformationCard. Overrules minHeights values.
|
|
2026
|
+
*/
|
|
2027
|
+
minHeight?: number;
|
|
2028
|
+
/**
|
|
2029
|
+
* Badges for the InformationCard.
|
|
2030
|
+
*/
|
|
2031
|
+
badges?: {
|
|
2032
|
+
text: string;
|
|
2033
|
+
}[];
|
|
2034
|
+
/**
|
|
2035
|
+
* Cta button for the InformationCard. Hidden if there is a card url.
|
|
2036
|
+
*/
|
|
2037
|
+
button?: InformationCardButtonProps;
|
|
2038
|
+
/**
|
|
2039
|
+
* Sets a minimum height for the InformationCard at each breakpoint (xs, s, m, l, xl, xxl). inherits from smaller breakpoints
|
|
2040
|
+
*/
|
|
2041
|
+
minHeights?: minHeightsProps;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
/**
|
|
2045
|
+
* Use `Link` to direct users to a new page or piece of information.
|
|
2046
|
+
*/
|
|
2047
|
+
declare const Link: React$1.FC<LinkProps>;
|
|
2048
|
+
interface LinkProps {
|
|
2049
|
+
/**
|
|
2050
|
+
* Id attribute for `Link`.
|
|
2051
|
+
*/
|
|
2052
|
+
id?: string;
|
|
2053
|
+
/**
|
|
2054
|
+
* href attribute for `Link`.
|
|
2055
|
+
*/
|
|
2056
|
+
href?: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* Screen reader text for `Link`, which is visually hidden.
|
|
2059
|
+
*/
|
|
2060
|
+
screenReaderText?: string;
|
|
2061
|
+
/**
|
|
2062
|
+
* title attribute for `Link`.
|
|
2063
|
+
*/
|
|
2064
|
+
title?: string;
|
|
2065
|
+
/**
|
|
2066
|
+
* Rel attribute for `Link`.
|
|
2067
|
+
*/
|
|
2068
|
+
rel?: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* Configures the size of `Link`.
|
|
2071
|
+
*/
|
|
2072
|
+
size?: "s" | "m" | "l";
|
|
2073
|
+
/**
|
|
2074
|
+
* Removes underline if true.
|
|
2075
|
+
*/
|
|
2076
|
+
isImplied?: boolean;
|
|
2077
|
+
/**
|
|
2078
|
+
* Renders as a button element if true.
|
|
2079
|
+
*/
|
|
2080
|
+
isButton?: boolean;
|
|
2081
|
+
/**
|
|
2082
|
+
* Click handler for `Link`.
|
|
2083
|
+
*/
|
|
2084
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
2085
|
+
/**
|
|
2086
|
+
* Target for `Link`.
|
|
2087
|
+
*/
|
|
2088
|
+
target?: "_self" | "_blank" | "_parent" | "_top";
|
|
2089
|
+
/**
|
|
2090
|
+
* Content for `Link`.
|
|
2091
|
+
*/
|
|
2092
|
+
children: string;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
* Use `Markup` to display HTML-formatted text.
|
|
2097
|
+
*/
|
|
2098
|
+
declare const Markup: FC<MarkupProps>;
|
|
2099
|
+
interface MarkupProps {
|
|
2100
|
+
/**
|
|
2101
|
+
* HTML-formatted text to display in Markup.
|
|
2102
|
+
*/
|
|
2103
|
+
children: ReactNode;
|
|
2104
|
+
/**
|
|
2105
|
+
* Should the Markup width be constrained to a typographic measure?
|
|
2106
|
+
*/
|
|
2107
|
+
isMeasured?: boolean;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
interface MediaCardImage extends Partial<Pick<ImageProps$1, "alt" | "loading" | "sizes" | "srcSet" | "width" | "height" | "fadeOnLoad">>, Pick<ImageProps$1, "src"> {
|
|
2111
|
+
type: "img";
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
interface MediaCardVideo extends Partial<Omit<VideoPlayerProps$1, "url" | "title" | "description" | "transcriptLink" | "isSupportingTextHidden">>, Pick<VideoPlayerProps$1, "title" | "url" | "description"> {
|
|
2115
|
+
type: "video";
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* Use `MediaCard` to contain content and an image about a single subject.
|
|
2120
|
+
*/
|
|
2121
|
+
declare const MediaCard: FC<MediaCardProps>;
|
|
2122
|
+
type MediaCardIcon = "play" | "arrow";
|
|
2123
|
+
interface MediaCardProps {
|
|
2124
|
+
/**
|
|
2125
|
+
* Heading for the MediaCard.
|
|
2126
|
+
*/
|
|
2127
|
+
heading: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* Heading level for the MediaCard heading.
|
|
2130
|
+
*/
|
|
2131
|
+
headingLevel?: HeadingLevel;
|
|
2132
|
+
/**
|
|
2133
|
+
* Text content for the MediaCard
|
|
2134
|
+
*/
|
|
2135
|
+
text?: string;
|
|
2136
|
+
/**
|
|
2137
|
+
* Uppercase label for the MediaCard.
|
|
2138
|
+
*/
|
|
2139
|
+
label?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Url for the MediaCard. Makes the whole card a link.
|
|
2142
|
+
*/
|
|
2143
|
+
url?: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* Text to show adjacent to the cta, can be either a date or text. Its recommended to pass dates as Date objects so the component can render them correctly.
|
|
2146
|
+
*/
|
|
2147
|
+
metaText?: CardFooterProps["metaText"];
|
|
2148
|
+
/**
|
|
2149
|
+
* MediaCard will have a contained look and feel with a white background if set to true.
|
|
2150
|
+
*/
|
|
2151
|
+
isContained?: boolean;
|
|
2152
|
+
/**
|
|
2153
|
+
* Image for video embed for the MediaCard. Supported video platforms are YouTube and Vimeo.
|
|
2154
|
+
*/
|
|
2155
|
+
media: MediaCardImage | MediaCardVideo;
|
|
2156
|
+
/**
|
|
2157
|
+
* Icon for the MediaCard Cta button
|
|
2158
|
+
*/
|
|
2159
|
+
buttonIcon?: MediaCardIcon;
|
|
2160
|
+
/**
|
|
2161
|
+
* Sets a minimum height for the MediaCard.
|
|
2162
|
+
*/
|
|
2163
|
+
minHeight?: number;
|
|
2164
|
+
/**
|
|
2165
|
+
* Click handler for the MediaCard. Only applied when a url is provided.
|
|
2166
|
+
*/
|
|
2167
|
+
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement>) => void;
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
/** Use `Modal` to display information that needs immediate action from a user. */
|
|
2171
|
+
declare const Modal: FC<ModalProps>;
|
|
2172
|
+
interface ModalProps {
|
|
2173
|
+
/**
|
|
2174
|
+
* Title for the modal. This will be announced by screen readers when the modal opens.
|
|
2175
|
+
*/
|
|
2176
|
+
title: string;
|
|
2177
|
+
/**
|
|
2178
|
+
* Role for the modal. use alertdialog if explicit user input is required e.g deleting an account. role alertdialog will remove the ability to close the modal by either the esc key being pressed, clicking the cross icon or clicking outside.
|
|
2179
|
+
*/
|
|
2180
|
+
role?: "dialog" | "alertdialog";
|
|
2181
|
+
/**
|
|
2182
|
+
* Whether to return focus to the element that was focused before the modal opened. True by default.
|
|
2183
|
+
*/
|
|
2184
|
+
shouldReturnFocus?: boolean;
|
|
2185
|
+
/**
|
|
2186
|
+
* Description for the modal. This will be announced by screen readers when the modal opens.
|
|
2187
|
+
*/
|
|
2188
|
+
description?: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* ID for the element description to be announced by screenreaders in addition to the title.
|
|
2191
|
+
*/
|
|
2192
|
+
ariaDescribedBy?: string;
|
|
2193
|
+
/**
|
|
2194
|
+
* Configurable actions for the modal.
|
|
2195
|
+
*/
|
|
2196
|
+
actions?: Pick<ButtonV2Props, "form" | "type" | "buttonStyle" | "icon" | "iconPosition" | "href" | "id" | "label" | "onClick" | "isLoading" | "ariaLabel" | "rel">[];
|
|
2197
|
+
/**
|
|
2198
|
+
* Function to be called when the modal has been requested to close by either the esc key being pressed, outside the dialog being clicked or the close button being clicked. The callback must set the open state of the modal to false. This function is ignored if the `role` prop is set to `alertdialog`. You can prevent this behavior with the `dialog` role by ommitting this prop.
|
|
2199
|
+
*/
|
|
2200
|
+
onRequestClose?: () => void;
|
|
2201
|
+
/**
|
|
2202
|
+
* Size of the modal dialog.
|
|
2203
|
+
*/
|
|
2204
|
+
size?: "s" | "m" | "l";
|
|
2205
|
+
/**
|
|
2206
|
+
* Set modal open or closed.
|
|
2207
|
+
*/
|
|
2208
|
+
isOpen?: boolean;
|
|
2209
|
+
/**
|
|
2210
|
+
* Enables the dialog content to be scrolled internally.
|
|
2211
|
+
*/
|
|
2212
|
+
isContentScrollable?: boolean;
|
|
2213
|
+
/**
|
|
2214
|
+
* Custom content for `Modal`.
|
|
2215
|
+
*/
|
|
2216
|
+
children?: React$1.ReactNode;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* Use `Pagination` to navigate through multiple pages of content.
|
|
2221
|
+
*/
|
|
2222
|
+
declare const Pagination: FC<PaginationProps>;
|
|
2223
|
+
interface PaginationProps {
|
|
2224
|
+
/**
|
|
2225
|
+
* Number of pages for the pagination
|
|
2226
|
+
*/
|
|
2227
|
+
pageCount: number;
|
|
2228
|
+
/**
|
|
2229
|
+
* Default page to be selected on render. If not provided defaults to 1.
|
|
2230
|
+
*/
|
|
2231
|
+
defaultSelectedPage?: number;
|
|
2232
|
+
/**
|
|
2233
|
+
* Function to call when the page changes
|
|
2234
|
+
*/
|
|
2235
|
+
onPageChange: (selectedPage: number) => void;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* TODO! Revise method of aligning svg's
|
|
2240
|
+
*/
|
|
2241
|
+
/**
|
|
2242
|
+
* Use `PaginationSimple` to navigate through multiple pages of content.
|
|
2243
|
+
*/
|
|
2244
|
+
declare const PaginationSimple: FC<PaginationSimpleProps>;
|
|
2245
|
+
interface PaginationSimpleProps {
|
|
2246
|
+
/**
|
|
2247
|
+
* hide buttons if true.
|
|
2248
|
+
*/
|
|
2249
|
+
hide?: {
|
|
2250
|
+
first?: boolean;
|
|
2251
|
+
prev?: boolean;
|
|
2252
|
+
next?: boolean;
|
|
2253
|
+
last?: boolean;
|
|
2254
|
+
};
|
|
2255
|
+
/**
|
|
2256
|
+
* makes each button a link
|
|
2257
|
+
*/
|
|
2258
|
+
hrefs?: {
|
|
2259
|
+
first?: string;
|
|
2260
|
+
prev?: string;
|
|
2261
|
+
next?: string;
|
|
2262
|
+
last?: string;
|
|
2263
|
+
};
|
|
2264
|
+
/**
|
|
2265
|
+
* if true buttons will hug either edge of the parent element
|
|
2266
|
+
*/
|
|
2267
|
+
isFluid?: boolean;
|
|
2268
|
+
/**
|
|
2269
|
+
* if true ellipsis will show in-between previous and next
|
|
2270
|
+
*/
|
|
2271
|
+
/**
|
|
2272
|
+
* Function to call when page is changed. This is called with type and event
|
|
2273
|
+
*/
|
|
2274
|
+
showEllipsis?: boolean;
|
|
2275
|
+
/**
|
|
2276
|
+
* Function to call when page is changed. This is called with type and event
|
|
2277
|
+
*/
|
|
2278
|
+
onPageChange?: (e: React$1.MouseEvent, type?: "prev" | "next" | "first" | "last") => void;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
/** Use `Popover` to display content in a portal, triggered by a button. */
|
|
2282
|
+
declare const Popover: FC<PopoverProps>;
|
|
2283
|
+
interface PopoverProps {
|
|
2284
|
+
/**
|
|
2285
|
+
* Content to render within Popover Trigger
|
|
2286
|
+
*/
|
|
2287
|
+
children?: React$1.ReactNode;
|
|
2288
|
+
/**
|
|
2289
|
+
* The preferred side of the anchor to render against when open
|
|
2290
|
+
*/
|
|
2291
|
+
side?: "left" | "right" | "bottom" | "top";
|
|
2292
|
+
/**
|
|
2293
|
+
* The distance in pixels from the anchor
|
|
2294
|
+
*/
|
|
2295
|
+
sideOffset?: 0 | 4 | 8 | 12 | 16 | 32;
|
|
2296
|
+
/**
|
|
2297
|
+
* The arrow connecting the `Popover` content to the trigger
|
|
2298
|
+
*/
|
|
2299
|
+
arrow?: boolean;
|
|
2300
|
+
/**
|
|
2301
|
+
* The preferred alignment against the anchor. May change when collisions occur.
|
|
2302
|
+
*/
|
|
2303
|
+
align?: "start" | "center" | "end";
|
|
2304
|
+
/**
|
|
2305
|
+
* An offset in pixels from the "start" or "end" alignment options.
|
|
2306
|
+
*/
|
|
2307
|
+
alignOffset?: number;
|
|
2308
|
+
/**
|
|
2309
|
+
* Content inside the Popover
|
|
2310
|
+
*/
|
|
2311
|
+
content?: ReactNode;
|
|
2312
|
+
/**
|
|
2313
|
+
* Determine if the popover is open
|
|
2314
|
+
*/
|
|
2315
|
+
open?: boolean;
|
|
2316
|
+
/**
|
|
2317
|
+
* Maximum width of the Popover
|
|
2318
|
+
*/
|
|
2319
|
+
maxWidth?: number;
|
|
2320
|
+
/**
|
|
2321
|
+
* Background theme of the Popover
|
|
2322
|
+
*/
|
|
2323
|
+
background?: "dark" | "light" | "brand";
|
|
2324
|
+
/**
|
|
2325
|
+
* Called when focus moves into the popover
|
|
2326
|
+
*/
|
|
2327
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2328
|
+
/**
|
|
2329
|
+
* Called when focus moves out of the popover
|
|
2330
|
+
*/
|
|
2331
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2332
|
+
/**
|
|
2333
|
+
* Called when the Escape key is pressed
|
|
2334
|
+
*/
|
|
2335
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2336
|
+
/**
|
|
2337
|
+
* Called when a pointer down event occurs outside the popover
|
|
2338
|
+
*/
|
|
2339
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
2340
|
+
/**
|
|
2341
|
+
* Called when focus moves outside the popover
|
|
2342
|
+
*/
|
|
2343
|
+
onFocusOutside?: (event: Event) => void;
|
|
2344
|
+
/**
|
|
2345
|
+
* Called when any interaction happens outside the popover
|
|
2346
|
+
*/
|
|
2347
|
+
onInteractOutside?: (event: Event) => void;
|
|
2348
|
+
/**
|
|
2349
|
+
* Called when the open state of the popover changes.
|
|
2350
|
+
*/
|
|
2351
|
+
onOpenChange?: (open: boolean) => void;
|
|
2352
|
+
/**
|
|
2353
|
+
* Z-index for the `Popover`. Used to fine tune the overlapping of other page elements.
|
|
2354
|
+
*/
|
|
2355
|
+
zIndex?: number;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
declare const PosterImage: FC<PosterImageProps>;
|
|
2359
|
+
interface PosterImageProps {
|
|
2360
|
+
/**
|
|
2361
|
+
* Alternative text for the Poster.Image, shown if the image cannot be displayed. Consider avoiding this prop if the image is for decorative purposes only.
|
|
2362
|
+
*/
|
|
2363
|
+
alt?: string;
|
|
2364
|
+
/**
|
|
2365
|
+
* Anchor point for the Poster.Image.
|
|
2366
|
+
*/
|
|
2367
|
+
anchor?: (typeof anchorPoints)[number];
|
|
2368
|
+
/**
|
|
2369
|
+
* Loading behaviour of the Poster.Image.
|
|
2370
|
+
*/
|
|
2371
|
+
loading?: (typeof loadingOptions)[number];
|
|
2372
|
+
/**
|
|
2373
|
+
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute for the Poster.Image. Required if `srcSet` is defined.
|
|
2374
|
+
*/
|
|
2375
|
+
sizes?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* The `src` for the Poster.Image. Used if srcSet is not defined, or as a fallback.
|
|
2378
|
+
*/
|
|
2379
|
+
src: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* A comma-separated list indicating a set of possible sources for the user agent to use for different screen sizes for the Poster.Image. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
|
|
2382
|
+
*/
|
|
2383
|
+
srcSet?: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* Contents of the PosterImage.
|
|
2386
|
+
*/
|
|
2387
|
+
children?: React$1.ReactNode;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
declare const PosterVideo: FC<PosterVideoProps>;
|
|
2391
|
+
interface PosterVideoProps {
|
|
2392
|
+
/**
|
|
2393
|
+
* Anchor point for the Poster.Video,
|
|
2394
|
+
*/
|
|
2395
|
+
anchor?: (typeof anchorPoints)[number];
|
|
2396
|
+
/**
|
|
2397
|
+
* Should the Poster.Video autoplay?
|
|
2398
|
+
*/
|
|
2399
|
+
autoPlay?: boolean;
|
|
2400
|
+
/**
|
|
2401
|
+
* HTML video sources for the Poster.Video. [See MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video).
|
|
2402
|
+
*/
|
|
2403
|
+
children: ReactNode;
|
|
2404
|
+
/**
|
|
2405
|
+
* Should the Poster.Video loop?
|
|
2406
|
+
*/
|
|
2407
|
+
loop?: boolean;
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* Use `Poster` to compose content on an image or video background. BT Brand Only.
|
|
2412
|
+
*/
|
|
2413
|
+
declare const Poster: FC<PosterProps> & {
|
|
2414
|
+
Image: typeof PosterImage;
|
|
2415
|
+
Video: typeof PosterVideo;
|
|
2416
|
+
};
|
|
2417
|
+
interface PosterProps {
|
|
2418
|
+
/**
|
|
2419
|
+
* Poster background to overlay content on top of. Must be one of Poster.Image or Poster.Video.
|
|
2420
|
+
*/
|
|
2421
|
+
background: ReactNode;
|
|
2422
|
+
/**
|
|
2423
|
+
* Contents of the Poster. Each item will be wrapped in an PosterItem component.
|
|
2424
|
+
*/
|
|
2425
|
+
children: ReactNode;
|
|
2426
|
+
/**
|
|
2427
|
+
* Apply an overlay to the Poster background, e.g. a scrim gradient for text legibility.
|
|
2428
|
+
*/
|
|
2429
|
+
overlay?: boolean;
|
|
2430
|
+
/**
|
|
2431
|
+
* The background surface colour to show behind the Poster content before it loads.
|
|
2432
|
+
* If using `overlay`, the gradient will match the surface.
|
|
2433
|
+
*/
|
|
2434
|
+
surface?: "dark-neutral-02" | "light-neutral-01";
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
type ProgressBarState = "loading" | "error" | "success";
|
|
2438
|
+
|
|
2439
|
+
type ProgressBarIcons = "refresh" | "cross" | "tick";
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* Use `ProgressBar` to show the progress of a specific task within a page.
|
|
2443
|
+
*/
|
|
2444
|
+
declare const ProgressBar: FC<ProgressBarProps>;
|
|
2445
|
+
interface ProgressBarProps {
|
|
2446
|
+
/**
|
|
2447
|
+
* Label for screen readers.
|
|
2448
|
+
*/
|
|
2449
|
+
ariaLabel: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* Headline for the progress bar.
|
|
2452
|
+
*/
|
|
2453
|
+
headline?: string;
|
|
2454
|
+
/**
|
|
2455
|
+
* Title for the progress bar, (e.g. an uploading file's name).
|
|
2456
|
+
*/
|
|
2457
|
+
title?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* Percentage value for the progress bar (negative numbers are rounded to 0, numbers over 100 are rounded to 100).
|
|
2460
|
+
*/
|
|
2461
|
+
value?: number;
|
|
2462
|
+
/**
|
|
2463
|
+
* Provide an additional informative description for the progress bar, or brand building slot for secondary messaging which can change over time with progress.
|
|
2464
|
+
*/
|
|
2465
|
+
description?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* Value to display for the progress bar. This is fully customisable, and can be a percentage (15%) Time remaining (1m 15s remaining), proportion of data uploaded/to upload (100KB out of 256KB).
|
|
2468
|
+
*/
|
|
2469
|
+
displayValue?: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* State of the progress bar.
|
|
2472
|
+
*/
|
|
2473
|
+
state?: ProgressBarState;
|
|
2474
|
+
/**
|
|
2475
|
+
* Sets progress bar to infinitely animate. Use if the progress of a given task cannot be known. The value prop will have no effect if this prop is set to true.
|
|
2476
|
+
*/
|
|
2477
|
+
isIndeterminate?: boolean;
|
|
2478
|
+
/**
|
|
2479
|
+
* Action for the progress bar.
|
|
2480
|
+
*/
|
|
2481
|
+
action?: {
|
|
2482
|
+
autofocusOnMount?: boolean;
|
|
2483
|
+
text: string;
|
|
2484
|
+
action: () => void;
|
|
2485
|
+
icon?: ProgressBarIcons;
|
|
2486
|
+
};
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
2490
|
+
|
|
2491
|
+
declare const ProgressStepperItem: FC<ProgressStepperItemProps>;
|
|
2492
|
+
interface ProgressStepperItemProps {
|
|
2493
|
+
/**
|
|
2494
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
2495
|
+
*/
|
|
2496
|
+
title: string;
|
|
2497
|
+
/**
|
|
2498
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
2499
|
+
*/
|
|
2500
|
+
titleHref?: string;
|
|
2501
|
+
/**
|
|
2502
|
+
* Text to override `linkTitle` with additional, more precise information
|
|
2503
|
+
* specifically for screen reader users.
|
|
2504
|
+
*/
|
|
2505
|
+
ariaLabel?: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* Execute a function on title click `<ProgressStepper.Item />`
|
|
2508
|
+
*/
|
|
2509
|
+
onClick?: () => void;
|
|
2510
|
+
/**
|
|
2511
|
+
* Determine a sub title for `<ProgressStepper.Item />`
|
|
2512
|
+
*/
|
|
2513
|
+
subTitle?: string;
|
|
2514
|
+
/**
|
|
2515
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
2516
|
+
*/
|
|
2517
|
+
direction?: "horizontal" | "vertical";
|
|
2518
|
+
/**
|
|
2519
|
+
* Determine a status for `<ProgressStepper.Item />`
|
|
2520
|
+
*/
|
|
2521
|
+
status?: ProgressStatus;
|
|
2522
|
+
/**
|
|
2523
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
2524
|
+
*/
|
|
2525
|
+
size?: "small" | "large";
|
|
2526
|
+
/**
|
|
2527
|
+
* Determine if `<ProgressStepper.Item /> should be Fluid`
|
|
2528
|
+
*/
|
|
2529
|
+
isFluid?: boolean;
|
|
2530
|
+
/**
|
|
2531
|
+
* Determine the context `<ProgressStepper.Item /> should be`
|
|
2532
|
+
*/
|
|
2533
|
+
previousStep?: ProgressStatus;
|
|
2534
|
+
/**
|
|
2535
|
+
* DEPRECATED: Determine if `<ProgressStepper.Item /> should have expandable content`
|
|
2536
|
+
*/
|
|
2537
|
+
isExpandable?: boolean;
|
|
2538
|
+
/**
|
|
2539
|
+
* Invert `<ProgressStepper.Item />` labels. Only appliciable for `horizontal direction.`
|
|
2540
|
+
*/
|
|
2541
|
+
invertLabelPosition?: boolean;
|
|
2542
|
+
/**
|
|
2543
|
+
* Determine what content to display in `<ProgressStepper.Item />. To use this option isExpandable must be `true``
|
|
2544
|
+
*/
|
|
2545
|
+
stepContent?: ReactNode;
|
|
2546
|
+
/**
|
|
2547
|
+
* Determine if `stepContent` is hidden
|
|
2548
|
+
*/
|
|
2549
|
+
isStepContentHidden?: boolean;
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
/** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
|
|
2553
|
+
declare const ProgressStepper: FC<ProgressStepperProps> & {
|
|
2554
|
+
Item: typeof ProgressStepperItem;
|
|
2555
|
+
};
|
|
2556
|
+
interface ProgressStepperProps {
|
|
2557
|
+
/**
|
|
2558
|
+
* Children of `<ProgressStepper />` should only contain `<ProgressStepper.Item />`
|
|
2559
|
+
*/
|
|
2560
|
+
children?: ReactNode;
|
|
2561
|
+
/**
|
|
2562
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
2563
|
+
*/
|
|
2564
|
+
direction?: "horizontal" | "vertical";
|
|
2565
|
+
/**
|
|
2566
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
2567
|
+
*/
|
|
2568
|
+
size?: "small" | "large";
|
|
2569
|
+
/**
|
|
2570
|
+
* Determine if `<ProgressStepper.Item />` should be Fluid. Only appliciable for `horizontal direction.`
|
|
2571
|
+
*/
|
|
2572
|
+
isFluid?: boolean;
|
|
2573
|
+
/**
|
|
2574
|
+
* Invert all labels in `<ProgressStepper.Item />`. Only appliciable for `horizontal direction.`
|
|
2575
|
+
*/
|
|
2576
|
+
invertLabelPosition?: boolean;
|
|
2577
|
+
/**
|
|
2578
|
+
* <b>DEPRECATED</b>: This will be removed in a future release.
|
|
2579
|
+
*/
|
|
2580
|
+
isExpandable?: boolean;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
type EventType$3 = ChangeEvent<HTMLInputElement>;
|
|
2584
|
+
type ContextProps$1 = {
|
|
2585
|
+
blurEvent: (event: EventType$3) => void;
|
|
2586
|
+
changeEvent: (event: EventType$3) => void;
|
|
2587
|
+
groupDisabled: boolean;
|
|
2588
|
+
checkedValue: string;
|
|
2589
|
+
name: string;
|
|
2590
|
+
};
|
|
2591
|
+
|
|
2592
|
+
interface RadioCardProps {
|
|
2593
|
+
children?: ReactElement;
|
|
2594
|
+
/**
|
|
2595
|
+
* ID for the`RadioCard`.
|
|
2596
|
+
*/
|
|
2597
|
+
id: string;
|
|
2598
|
+
/**
|
|
2599
|
+
* Should the `RadioCard` be disabled?
|
|
2600
|
+
*/
|
|
2601
|
+
isDisabled?: boolean;
|
|
2602
|
+
/**
|
|
2603
|
+
* Helper text for the `RadioCard`, shown below the label.
|
|
2604
|
+
*/
|
|
2605
|
+
support?: string;
|
|
2606
|
+
/**
|
|
2607
|
+
* Label for the `RadioCard`.
|
|
2608
|
+
*/
|
|
2609
|
+
label: string;
|
|
2610
|
+
/**
|
|
2611
|
+
* Current value (controlled).
|
|
2612
|
+
*/
|
|
2613
|
+
value: string;
|
|
2614
|
+
/**
|
|
2615
|
+
* Render icon within `RadioCard`
|
|
2616
|
+
*/
|
|
2617
|
+
icon?: ArcIcon | React$1.ReactElement<SVGElement>;
|
|
2618
|
+
/**
|
|
2619
|
+
* Set control location within `RadioCard`.
|
|
2620
|
+
*/
|
|
2621
|
+
controlLocation?: "left" | "right" | "bottom";
|
|
2622
|
+
/**
|
|
2623
|
+
* Hide the radio button icon from the `RadioCard`.
|
|
2624
|
+
*/
|
|
2625
|
+
hideButton?: boolean;
|
|
2626
|
+
/**
|
|
2627
|
+
* Should the `RadioCard` be checked by default?
|
|
2628
|
+
*/
|
|
2629
|
+
defaultChecked?: boolean;
|
|
2630
|
+
/**
|
|
2631
|
+
* State of the checked prop.
|
|
2632
|
+
*/
|
|
2633
|
+
checked?: boolean;
|
|
2634
|
+
/**
|
|
2635
|
+
* Function called when the RadioCard's value changes.
|
|
2636
|
+
*/
|
|
2637
|
+
changeEvent?: ContextProps$1["changeEvent"];
|
|
2638
|
+
/**
|
|
2639
|
+
* Function called when the RadioCard loses focus.
|
|
2640
|
+
*/
|
|
2641
|
+
blurEvent?: ContextProps$1["blurEvent"];
|
|
2642
|
+
/**
|
|
2643
|
+
* Reference to radio group name property.
|
|
2644
|
+
*/
|
|
2645
|
+
name: ContextProps$1["name"];
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* Radio Card component.
|
|
2650
|
+
*/
|
|
2651
|
+
declare const RadioCardGroupInput: React$1.ForwardRefExoticComponent<RadioCardGroupInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
2652
|
+
interface RadioCardGroupInputProps extends Omit<RadioCardProps, "name"> {
|
|
2653
|
+
/**
|
|
2654
|
+
* Determine the alignment the RadioButton.
|
|
2655
|
+
*
|
|
2656
|
+
*/
|
|
2657
|
+
radioButtonAlignment?: "top" | "center";
|
|
2658
|
+
/**
|
|
2659
|
+
* ID for the Radio Button.
|
|
2660
|
+
*/
|
|
2661
|
+
id: string;
|
|
2662
|
+
/**
|
|
2663
|
+
* Should the RadioButton label be visually hidden? (it will still be announced by screen readers)
|
|
2664
|
+
*/
|
|
2665
|
+
hideLabel?: boolean;
|
|
2666
|
+
/**
|
|
2667
|
+
* Should the RadioButton be disabled?
|
|
2668
|
+
*/
|
|
2669
|
+
isDisabled?: boolean;
|
|
2670
|
+
/**
|
|
2671
|
+
* Helper text for the RadioButton, shown below the label.
|
|
2672
|
+
*/
|
|
2673
|
+
helper?: string;
|
|
2674
|
+
/**
|
|
2675
|
+
* Label for the RadioButton.
|
|
2676
|
+
*/
|
|
2677
|
+
label: string;
|
|
2678
|
+
/**
|
|
2679
|
+
* Current value (controlled).
|
|
2680
|
+
*/
|
|
2681
|
+
value: string;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
type EventType$2 = React$1.ChangeEvent<HTMLInputElement>;
|
|
2685
|
+
/**
|
|
2686
|
+
* Use `RadioCardGroup` to wrap and control `RadioCard` buttons and apply default values
|
|
2687
|
+
*/
|
|
2688
|
+
declare const RadioCardGroup: FC<RadioCardGroupProps> & {
|
|
2689
|
+
RadioCard: typeof RadioCardGroupInput;
|
|
2690
|
+
};
|
|
2691
|
+
interface RadioCardGroupProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "supplementaryInfo" | "labelPosition"> {
|
|
2692
|
+
/**
|
|
2693
|
+
* Contents of the `RadioCardGroup`. Should only contain `RadioCardGroup.RadioCard`
|
|
2694
|
+
*/
|
|
2695
|
+
children: React$1.ReactNode;
|
|
2696
|
+
/**
|
|
2697
|
+
* Value of the `RadioCard` that should be checked by default.
|
|
2698
|
+
*/
|
|
2699
|
+
checkedValue: string;
|
|
2700
|
+
/**
|
|
2701
|
+
* Should all `RadioCard` components be disabled?
|
|
2702
|
+
*/
|
|
2703
|
+
isDisabled?: boolean;
|
|
2704
|
+
/**
|
|
2705
|
+
* Helper message for the `RadioCardGroup`.
|
|
2706
|
+
*/
|
|
2707
|
+
helper?: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* ID for the `RadioCardGroup`.
|
|
2710
|
+
*/
|
|
2711
|
+
id: string;
|
|
2712
|
+
/**
|
|
2713
|
+
* Label for the `RadioCardGroup`.
|
|
2714
|
+
*/
|
|
2715
|
+
label: string;
|
|
2716
|
+
/**
|
|
2717
|
+
* Label Size for the `RadioCardGroup`.
|
|
2718
|
+
*/
|
|
2719
|
+
labelSize?: "l" | "s";
|
|
2720
|
+
/**
|
|
2721
|
+
* Name for the `RadioCardGroup`.
|
|
2722
|
+
*/
|
|
2723
|
+
name: string;
|
|
2724
|
+
/**
|
|
2725
|
+
* Sets the `RadioCardGroup` to 100% width.
|
|
2726
|
+
*/
|
|
2727
|
+
isFluid?: boolean;
|
|
2728
|
+
/**
|
|
2729
|
+
* Sets the `RadioCardGroup` width.
|
|
2730
|
+
*/
|
|
2731
|
+
width?: number;
|
|
2732
|
+
/**
|
|
2733
|
+
* Function to call when the `RadioCardGroup` loses focus.
|
|
2734
|
+
*/
|
|
2735
|
+
onBlur?: (e: EventType$2) => void;
|
|
2736
|
+
/**
|
|
2737
|
+
* Callback function to update the `RadioCardGroup`'s controlled `checkedValue` prop,
|
|
2738
|
+
* for example `e => setCheckedValue(e.target.value)`.
|
|
2739
|
+
*/
|
|
2740
|
+
onChange?: (event: EventType$2) => void;
|
|
2741
|
+
/**
|
|
2742
|
+
* Error message for the `RadioCardGroup`.
|
|
2743
|
+
*/
|
|
2744
|
+
errorMessage?: string;
|
|
2745
|
+
/**
|
|
2746
|
+
* Is `RadioCardGroup` required?
|
|
2747
|
+
*/
|
|
2748
|
+
isRequired?: boolean;
|
|
2749
|
+
/**
|
|
2750
|
+
* Is `RadioCardGroup` layout orientation?
|
|
2751
|
+
*/
|
|
2752
|
+
layout?: "column" | "row";
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* Radio Button component.
|
|
2757
|
+
*/
|
|
2758
|
+
declare const RadioButtonGroupInput: React$1.ForwardRefExoticComponent<RadioButtonGroupInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
2759
|
+
interface RadioButtonGroupInputProps {
|
|
2760
|
+
/**
|
|
2761
|
+
* Determine the alignment the RadioButton.
|
|
2762
|
+
*
|
|
2763
|
+
*/
|
|
2764
|
+
radioButtonAlignment?: "top" | "center";
|
|
2765
|
+
/**
|
|
2766
|
+
* ID for the Radio Button.
|
|
2767
|
+
*/
|
|
2768
|
+
id: string;
|
|
2769
|
+
/**
|
|
2770
|
+
* Should the RadioButton label be visually hidden? (it will still be announced by screen readers)
|
|
2771
|
+
*/
|
|
2772
|
+
hideLabel?: boolean;
|
|
2773
|
+
/**
|
|
2774
|
+
* Should the RadioButton be disabled?
|
|
2775
|
+
*/
|
|
2776
|
+
isDisabled?: boolean;
|
|
2777
|
+
/**
|
|
2778
|
+
* Helper text for the RadioButton, shown below the label.
|
|
2779
|
+
*/
|
|
2780
|
+
helper?: string;
|
|
2781
|
+
/**
|
|
2782
|
+
* Label for the RadioButton.
|
|
2783
|
+
*/
|
|
2784
|
+
label: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* Current value (controlled).
|
|
2787
|
+
*/
|
|
2788
|
+
value: string;
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
type EventType$1 = React$1.ChangeEvent<HTMLInputElement>;
|
|
2792
|
+
/**
|
|
2793
|
+
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
2794
|
+
*/
|
|
2795
|
+
declare const RadioGroup: FC<RadioGroupProps> & {
|
|
2796
|
+
RadioButton: typeof RadioButtonGroupInput;
|
|
2797
|
+
};
|
|
2798
|
+
interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "supplementaryInfo" | "hideLabel" | "labelPosition"> {
|
|
2799
|
+
/**
|
|
2800
|
+
* Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
|
|
2801
|
+
*/
|
|
2802
|
+
children?: React$1.ReactNode;
|
|
2803
|
+
/**
|
|
2804
|
+
* Value of the RadioButton that should be checked by default.
|
|
2805
|
+
*/
|
|
2806
|
+
checkedValue: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* Should all controls be disabled?
|
|
2809
|
+
*/
|
|
2810
|
+
isDisabled?: boolean;
|
|
2811
|
+
/**
|
|
2812
|
+
* Helper message for the RadioGroup.
|
|
2813
|
+
*/
|
|
2814
|
+
helper?: string;
|
|
2815
|
+
/**
|
|
2816
|
+
* ID for the RadioGroup.
|
|
2817
|
+
*/
|
|
2818
|
+
id: string;
|
|
2819
|
+
/**
|
|
2820
|
+
* Label for the RadioGroup.
|
|
2821
|
+
*/
|
|
2822
|
+
label: string;
|
|
2823
|
+
/**
|
|
2824
|
+
* Label size for the RadioGroup
|
|
2825
|
+
*/
|
|
2826
|
+
labelSize?: "s" | "l";
|
|
2827
|
+
/**
|
|
2828
|
+
* Name for the RadioGroup.
|
|
2829
|
+
*/
|
|
2830
|
+
name: string;
|
|
2831
|
+
/**
|
|
2832
|
+
* Function to call when the RadioGroup loses focus.
|
|
2833
|
+
*/
|
|
2834
|
+
onBlur?: (e: EventType$1) => void;
|
|
2835
|
+
/**
|
|
2836
|
+
* Callback function to update the RadioGroup's controlled `checkedValue` prop,
|
|
2837
|
+
* for example `e => setCheckedValue(e.target.value)`.
|
|
2838
|
+
*/
|
|
2839
|
+
onChange?: (event: EventType$1) => void;
|
|
2840
|
+
/**
|
|
2841
|
+
* Size of the RadioGroup.
|
|
2842
|
+
*/
|
|
2843
|
+
size?: "s" | "l";
|
|
2844
|
+
/**
|
|
2845
|
+
* Error message for the RadioGroup.
|
|
2846
|
+
*/
|
|
2847
|
+
errorMessage?: string;
|
|
2848
|
+
/**
|
|
2849
|
+
* Is RadioGroup required?
|
|
2850
|
+
*/
|
|
2851
|
+
isRequired?: boolean;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
type EventType = ChangeEvent<HTMLInputElement>;
|
|
2855
|
+
type ContextProps = {
|
|
2856
|
+
blurEvent: (event: EventType) => void;
|
|
2857
|
+
changeEvent: (event: EventType) => void;
|
|
2858
|
+
groupDisabled: boolean;
|
|
2859
|
+
checkedValue: string;
|
|
2860
|
+
labelSize: "s" | "l";
|
|
2861
|
+
name: string;
|
|
2862
|
+
size: "s" | "l";
|
|
2863
|
+
};
|
|
2864
|
+
|
|
2865
|
+
declare const RadioButton: React$1.ForwardRefExoticComponent<RadioButtonProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
2866
|
+
interface RadioButtonProps {
|
|
2867
|
+
id: string;
|
|
2868
|
+
label: string;
|
|
2869
|
+
hideLabel?: boolean;
|
|
2870
|
+
name: ContextProps["name"];
|
|
2871
|
+
withMargin?: boolean;
|
|
2872
|
+
defaultChecked?: boolean;
|
|
2873
|
+
checked?: boolean;
|
|
2874
|
+
value?: string;
|
|
2875
|
+
isDisabled?: boolean;
|
|
2876
|
+
helper?: string;
|
|
2877
|
+
labelSize?: ContextProps["labelSize"];
|
|
2878
|
+
size?: ContextProps["size"];
|
|
2879
|
+
radioButtonAlignment?: "top" | "center";
|
|
2880
|
+
changeEvent?: ContextProps["changeEvent"];
|
|
2881
|
+
blurEvent?: ContextProps["blurEvent"];
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
/**
|
|
2885
|
+
* Use `Rule` to display a horizontal or vertical rule.
|
|
2886
|
+
*/
|
|
2887
|
+
declare const Rule: FC<RuleProps>;
|
|
2888
|
+
interface RuleProps {
|
|
2889
|
+
orientation?: "horizontal" | "vertical";
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
/**
|
|
2893
|
+
* Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
|
|
2894
|
+
*/
|
|
2895
|
+
declare const ScrollToTop: FC<ScrollToTopProps>;
|
|
2896
|
+
interface ScrollToTopProps {
|
|
2897
|
+
/**
|
|
2898
|
+
* If true, the button will stick to the bottom right corner of the screen.
|
|
2899
|
+
*/
|
|
2900
|
+
isFixed?: boolean;
|
|
2901
|
+
/**
|
|
2902
|
+
* Sets when the scroll button should appear. `always` will show the button all the time.
|
|
2903
|
+
* `afterScroll` will show the button when the user has stopped scrolling and have passed the fold.
|
|
2904
|
+
*/
|
|
2905
|
+
appear?: "always" | "afterScroll";
|
|
2906
|
+
/**
|
|
2907
|
+
* Z-index for the button. Used to fine tune the overlapping of other page elements.
|
|
2908
|
+
*/
|
|
2909
|
+
zIndex?: number;
|
|
2910
|
+
/**
|
|
2911
|
+
* Button fill.
|
|
2912
|
+
*/
|
|
2913
|
+
fill?: "solid" | "outlined";
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* Use `Section` to compose content into vertical page layouts.
|
|
2918
|
+
*/
|
|
2919
|
+
declare const Section: FC<SectionProps>;
|
|
2920
|
+
interface SectionProps extends ExtentableContainer {
|
|
2921
|
+
/**
|
|
2922
|
+
* Content to display in the Section.
|
|
2923
|
+
*/
|
|
2924
|
+
children: ReactNode;
|
|
2925
|
+
/**
|
|
2926
|
+
* Should the Section be visible for debugging and documentation
|
|
2927
|
+
* purposes?
|
|
2928
|
+
*/
|
|
2929
|
+
isDebugVisible?: boolean;
|
|
2930
|
+
/**
|
|
2931
|
+
* Should the width of this Section be unconstrained (filling the viewport)?
|
|
2932
|
+
*/
|
|
2933
|
+
isFullWidth?: boolean;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
/** Use `Select` to choose from a dropdown list of options. */
|
|
2937
|
+
declare const Select: React$1.FC<SelectProps>;
|
|
2938
|
+
interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "id" | "helperUnderLabel" | "supplementaryInfo"> {
|
|
2939
|
+
/**
|
|
2940
|
+
* Name for the Select.
|
|
2941
|
+
*/
|
|
2942
|
+
name: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* Label for the Select.
|
|
2945
|
+
*/
|
|
2946
|
+
label: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* Aria label for the Select.
|
|
2949
|
+
*/
|
|
2950
|
+
ariaLabel?: string;
|
|
2951
|
+
/**
|
|
2952
|
+
* Placeholder text for the Select.
|
|
2953
|
+
*/
|
|
2954
|
+
placeholder: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* Options for the Select.
|
|
2957
|
+
*/
|
|
2958
|
+
options: {
|
|
2959
|
+
name: string;
|
|
2960
|
+
value: string;
|
|
2961
|
+
}[];
|
|
2962
|
+
/**
|
|
2963
|
+
* value for the Select. Passing a value makes the Select a controlled component.
|
|
2964
|
+
*/
|
|
2965
|
+
value?: string;
|
|
2966
|
+
/**
|
|
2967
|
+
* error message for the Select.
|
|
2968
|
+
*/
|
|
2969
|
+
errorMessage?: string;
|
|
2970
|
+
/**
|
|
2971
|
+
* Default value for the Select.
|
|
2972
|
+
*/
|
|
2973
|
+
defaultValue?: string;
|
|
2974
|
+
/**
|
|
2975
|
+
* onChange handler for the Select.
|
|
2976
|
+
*/
|
|
2977
|
+
onChange?: (value: string) => void;
|
|
2978
|
+
/**
|
|
2979
|
+
* onBlur handler for the Select.
|
|
2980
|
+
*/
|
|
2981
|
+
onBlur?: (e: React$1.FocusEvent<HTMLButtonElement>) => void;
|
|
2982
|
+
/**
|
|
2983
|
+
* onFocus handler for the Select.
|
|
2984
|
+
*/
|
|
2985
|
+
onFocus?: (e: React$1.FocusEvent<HTMLButtonElement>) => void;
|
|
2986
|
+
/**
|
|
2987
|
+
* onOpenChange handler for the Select.
|
|
2988
|
+
*/
|
|
2989
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
2990
|
+
/**
|
|
2991
|
+
* The controlled open state of the select. Must be used in conjunction with onOpenChange.
|
|
2992
|
+
*/
|
|
2993
|
+
open?: boolean;
|
|
2994
|
+
/**
|
|
2995
|
+
* select handler for the Select.
|
|
2996
|
+
*/
|
|
2997
|
+
selectSize?: "s" | "m" | "l";
|
|
2998
|
+
/**
|
|
2999
|
+
* Sets the Select to 100% width.
|
|
3000
|
+
*/
|
|
3001
|
+
isFluid?: boolean;
|
|
3002
|
+
/**
|
|
3003
|
+
* Sets the width of the Select.
|
|
3004
|
+
*/
|
|
3005
|
+
width?: string;
|
|
3006
|
+
/**
|
|
3007
|
+
* Disables the Select.
|
|
3008
|
+
*/
|
|
3009
|
+
isDisabled?: boolean;
|
|
3010
|
+
/**
|
|
3011
|
+
* Sets the Select to be open by default.
|
|
3012
|
+
*/
|
|
3013
|
+
isDefaultOpen?: boolean;
|
|
3014
|
+
/**
|
|
3015
|
+
* Sets the Select to be open by default.
|
|
3016
|
+
*/
|
|
3017
|
+
isRequired?: boolean;
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
/**
|
|
3021
|
+
* Use `SiteFooter` to display information at the bottom of a page.
|
|
3022
|
+
*/
|
|
3023
|
+
declare const SiteFooter: FC<SiteFooterProps> & {
|
|
3024
|
+
Item: typeof SiteFooterItem;
|
|
3025
|
+
ItemGroup: typeof SiteFooterItemGroup;
|
|
3026
|
+
};
|
|
3027
|
+
declare const SiteFooterItemGroup: FC<SiteFooterItemGroupProps>;
|
|
3028
|
+
declare const SiteFooterItem: FC<SiteFooterItemProps>;
|
|
3029
|
+
interface SiteFooterItemGroupProps {
|
|
3030
|
+
/**
|
|
3031
|
+
* Contents of the SiteFooterItemGroup. Must be SiteFooter.Item components.
|
|
3032
|
+
*/
|
|
3033
|
+
children: ReactNode;
|
|
3034
|
+
/**
|
|
3035
|
+
* Title text for the SiteFooterItemGroup.
|
|
3036
|
+
*/
|
|
3037
|
+
title: string;
|
|
3038
|
+
}
|
|
3039
|
+
interface SiteFooterItemProps {
|
|
3040
|
+
/**
|
|
3041
|
+
* Contents of the SiteFooterItem.
|
|
3042
|
+
*/
|
|
3043
|
+
children: ReactNode;
|
|
3044
|
+
/**
|
|
3045
|
+
* A URL to link to when the Item is clicked or touched.
|
|
3046
|
+
*/
|
|
3047
|
+
href: string;
|
|
3048
|
+
/**
|
|
3049
|
+
* On click handler.
|
|
3050
|
+
*/
|
|
3051
|
+
onClick?: () => void;
|
|
3052
|
+
}
|
|
3053
|
+
interface SiteFooterProps {
|
|
3054
|
+
/**
|
|
3055
|
+
* Secondary content of the SiteFooter. Must be SiteFooter.Item components.
|
|
3056
|
+
*/
|
|
3057
|
+
children?: ReactNode;
|
|
3058
|
+
/**
|
|
3059
|
+
* Copyright year.
|
|
3060
|
+
*/
|
|
3061
|
+
currentYear?: string;
|
|
3062
|
+
/**
|
|
3063
|
+
* Accessible text for the SiteFooter logo.
|
|
3064
|
+
*/
|
|
3065
|
+
logoLabel?: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Main content of the SiteFooter. Must be SiteFooter.ItemGroup components.
|
|
3068
|
+
*/
|
|
3069
|
+
main?: ReactNode;
|
|
3070
|
+
/**
|
|
3071
|
+
* Text that appears at the top of the footer. Can be the name of the site, a
|
|
3072
|
+
* brand strapline, or similar.
|
|
3073
|
+
*/
|
|
3074
|
+
siteName?: string;
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
declare const Column: FC<ColumnProps>;
|
|
3078
|
+
interface ColumnProps {
|
|
3079
|
+
/**
|
|
3080
|
+
* Contents of the Column. Must be SiteHeaderV2.ItemGroup components.
|
|
3081
|
+
*/
|
|
3082
|
+
children: ReactNode;
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
declare const Item: FC<ItemProps>;
|
|
3086
|
+
interface ItemProps {
|
|
3087
|
+
/**
|
|
3088
|
+
* Contents of the Item. Usually text to be displayed in the Item link.
|
|
3089
|
+
*/
|
|
3090
|
+
children: ReactNode;
|
|
3091
|
+
/**
|
|
3092
|
+
* A URL to link to when the Item is clicked or touched.
|
|
3093
|
+
*/
|
|
3094
|
+
href: string;
|
|
3095
|
+
/**
|
|
3096
|
+
* On click handler.
|
|
3097
|
+
*/
|
|
3098
|
+
onClick?: () => void;
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
declare const ItemGroup: FC<ItemGroupProps>;
|
|
3102
|
+
interface ItemGroupProps {
|
|
3103
|
+
/**
|
|
3104
|
+
* Contents of the ItemGroup. Must be Item components.
|
|
3105
|
+
*/
|
|
3106
|
+
children: ReactNode;
|
|
3107
|
+
subtitle?: string;
|
|
3108
|
+
/**
|
|
3109
|
+
* A top-level URL for the ItemGroup to link to.
|
|
3110
|
+
*/
|
|
3111
|
+
href?: string;
|
|
3112
|
+
/**
|
|
3113
|
+
* Title text to be displayed in the ItemGroup summary.
|
|
3114
|
+
*/
|
|
3115
|
+
title?: string;
|
|
3116
|
+
/**
|
|
3117
|
+
* Text to display in top-level link inside the ItemGroup in narrow viewports.
|
|
3118
|
+
* Only applies if `href` is present. If not provided, top-level link text
|
|
3119
|
+
* will be automatically generated from `title`.
|
|
3120
|
+
*/
|
|
3121
|
+
viewAllTitle?: string;
|
|
3122
|
+
/**
|
|
3123
|
+
* On click handler.
|
|
3124
|
+
*/
|
|
3125
|
+
onClick?: () => void;
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
declare const NavItem: FC<NavItemProps>;
|
|
3129
|
+
interface NavItemProps {
|
|
3130
|
+
/**
|
|
3131
|
+
* Contents of the NavItem. Must be SiteHeaderV2.ItemGroup or
|
|
3132
|
+
* SiteHeaderV2.Column components.
|
|
3133
|
+
*/
|
|
3134
|
+
children?: ReactNode;
|
|
3135
|
+
/**
|
|
3136
|
+
* A top-level URL for the NavItem to link to.
|
|
3137
|
+
*
|
|
3138
|
+
* When `children` are not present, the URL to link to when the NavItem is
|
|
3139
|
+
* clicked or touched.
|
|
3140
|
+
*
|
|
3141
|
+
* When `children` are present, the URL to link to when a top-level link
|
|
3142
|
+
* inside the NavItem panel is clicked or touched.
|
|
3143
|
+
*/
|
|
3144
|
+
href?: string;
|
|
3145
|
+
/**
|
|
3146
|
+
* Should the NavItem be highlighted as the current item/page? Only applies if
|
|
3147
|
+
* `children` are not present (and `href` is present).
|
|
3148
|
+
*/
|
|
3149
|
+
isCurrent?: boolean;
|
|
3150
|
+
/**
|
|
3151
|
+
* Top-level text to display in the NavItem.
|
|
3152
|
+
*/
|
|
3153
|
+
title: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* On click handler.
|
|
3156
|
+
*/
|
|
3157
|
+
onClick?: () => void;
|
|
3158
|
+
isPrimary?: boolean;
|
|
3159
|
+
opensFirstWithPanel?: boolean;
|
|
3160
|
+
subTitle?: string;
|
|
3161
|
+
}
|
|
3162
|
+
|
|
3163
|
+
declare const NavItemWithSubNav: FC<NavItemWithSubNavProps>;
|
|
3164
|
+
interface NavItemWithSubNavProps {
|
|
3165
|
+
/**
|
|
3166
|
+
* The URL to link to when a top-level link inside the NavItemWithSubNav panel
|
|
3167
|
+
* is clicked or touched.
|
|
3168
|
+
*/
|
|
3169
|
+
href?: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* Content to be displayed in the first slot of the NavItemWithSubNav. Must be
|
|
3172
|
+
* a single SiteHeaderV2.SubNavItem component.
|
|
3173
|
+
*/
|
|
3174
|
+
slot1: ReactElement;
|
|
3175
|
+
/**
|
|
3176
|
+
* Content to be displayed in the second slot of the NavItemWithSubNav. Must
|
|
3177
|
+
* be a single SiteHeaderV2.SubNavItem component.
|
|
3178
|
+
*/
|
|
3179
|
+
slot2?: ReactNode;
|
|
3180
|
+
/**
|
|
3181
|
+
* Content to be displayed in the third slot of the NavItemWithSubNav. Must be
|
|
3182
|
+
* a single SiteHeaderV2.SubNavItem component.
|
|
3183
|
+
*/
|
|
3184
|
+
slot3?: ReactNode;
|
|
3185
|
+
/**
|
|
3186
|
+
* Content to be displayed in the fourth slot of the NavItemWithSubNav. Must be
|
|
3187
|
+
* a single SiteHeaderV2.SubNavItem component.
|
|
3188
|
+
*/
|
|
3189
|
+
slot4?: ReactNode;
|
|
3190
|
+
slot5?: ReactNode;
|
|
3191
|
+
slot6?: ReactNode;
|
|
3192
|
+
/**
|
|
3193
|
+
* Title text to display inside the NavItemWithSubNav panel.
|
|
3194
|
+
*/
|
|
3195
|
+
subTitle?: string;
|
|
3196
|
+
/**
|
|
3197
|
+
* Top-level text to display in the NavItemWithSubNav.
|
|
3198
|
+
*/
|
|
3199
|
+
title: string;
|
|
3200
|
+
/**
|
|
3201
|
+
* Text to display in top-level link inside the NavItemWithSubNav panel. Only
|
|
3202
|
+
* applies if `href` is true. If not provided, text will be automatically
|
|
3203
|
+
* generated from `title`.
|
|
3204
|
+
*/
|
|
3205
|
+
viewAllTitle?: string;
|
|
3206
|
+
/**
|
|
3207
|
+
* view all click handler.
|
|
3208
|
+
*/
|
|
3209
|
+
onViewAllClick?: () => void;
|
|
3210
|
+
isPrimary?: boolean;
|
|
3211
|
+
opensFirstWithPanel?: boolean;
|
|
3212
|
+
}
|
|
3213
|
+
|
|
3214
|
+
declare const NodeItem: FC<NodeItemProps>;
|
|
3215
|
+
interface NodeItemProps {
|
|
3216
|
+
/**
|
|
3217
|
+
* Content to display with `SiteHeaderV2.NodeItem`
|
|
3218
|
+
*/
|
|
3219
|
+
children?: ReactNode;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
declare const SubNavItem: FC<SubNavItemProps>;
|
|
3223
|
+
interface SubNavItemProps {
|
|
3224
|
+
/**
|
|
3225
|
+
* Contents of the SubNavItem. Must be SiteHeaderV2.ItemGroup or
|
|
3226
|
+
* SiteHeaderV2.Column components.
|
|
3227
|
+
*/
|
|
3228
|
+
children?: ReactNode;
|
|
3229
|
+
/**
|
|
3230
|
+
* Should the SubNavItem be the default open item in a
|
|
3231
|
+
* SiteHeaderV2.NavItemWithSubNav? If not specified, the default open item will
|
|
3232
|
+
* be set automatically.
|
|
3233
|
+
*/
|
|
3234
|
+
isDefaultItem?: boolean;
|
|
3235
|
+
/**
|
|
3236
|
+
* Optionally shift the SubNavItem-link upwards (in "desktop" viewports only)
|
|
3237
|
+
* to close off any empty space between items due to content size.
|
|
3238
|
+
*/
|
|
3239
|
+
offsetXL?: "24" | "48";
|
|
3240
|
+
/**
|
|
3241
|
+
* A URL to link to when the SubNavItem is clicked or touched. Only applies if
|
|
3242
|
+
* `children` are not present.
|
|
3243
|
+
*/
|
|
3244
|
+
href?: string;
|
|
3245
|
+
/**
|
|
3246
|
+
* Optional subtitle text for the SubNavItem.
|
|
3247
|
+
*/
|
|
3248
|
+
subTitle?: string;
|
|
3249
|
+
/**
|
|
3250
|
+
* Title text for the SubNavItem.
|
|
3251
|
+
*/
|
|
3252
|
+
title: string;
|
|
3253
|
+
/**
|
|
3254
|
+
* Text to display in top-level link inside the SubNavItem panel. Only
|
|
3255
|
+
* applies if both `children` are present and `href` is true. If not
|
|
3256
|
+
* provided, top-level link text will be automatically generated from `title`.
|
|
3257
|
+
*/
|
|
3258
|
+
viewAllTitle?: string;
|
|
3259
|
+
icon?: ArcIcon;
|
|
3260
|
+
/**
|
|
3261
|
+
* On click handler.
|
|
3262
|
+
*/
|
|
3263
|
+
onClick?: () => void;
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
declare const VerticalDivider: () => JSX.Element;
|
|
3267
|
+
|
|
3268
|
+
/**
|
|
3269
|
+
* Use `SiteHeaderV2` to display brand logo and navigation at the top of a page.
|
|
3270
|
+
*/
|
|
3271
|
+
declare const SiteHeaderV2: FC<SiteHeaderV2Props> & {
|
|
3272
|
+
Column: typeof Column;
|
|
3273
|
+
Item: typeof Item;
|
|
3274
|
+
ItemGroup: typeof ItemGroup;
|
|
3275
|
+
NavItem: typeof NavItem;
|
|
3276
|
+
NodeItem: typeof NodeItem;
|
|
3277
|
+
NavItemWithSubNav: typeof NavItemWithSubNav;
|
|
3278
|
+
SubNavItem: typeof SubNavItem;
|
|
3279
|
+
VerticalDivider: typeof VerticalDivider;
|
|
3280
|
+
};
|
|
3281
|
+
interface SiteHeaderV2Props {
|
|
3282
|
+
/**
|
|
3283
|
+
* Contents of the SiteHeaderV2. Must be SiteHeaderV2.NavItem or
|
|
3284
|
+
* SiteHeaderV2.NavItemWithSubNav components.
|
|
3285
|
+
*/
|
|
3286
|
+
children?: ReactNode;
|
|
3287
|
+
/**
|
|
3288
|
+
* Basket component for the SiteHeaderV2.
|
|
3289
|
+
*/
|
|
3290
|
+
basket?: ReactNode;
|
|
3291
|
+
/**
|
|
3292
|
+
* Should account login links be included in the SiteHeaderV2?
|
|
3293
|
+
*/
|
|
3294
|
+
hasLogin?: boolean;
|
|
3295
|
+
/**
|
|
3296
|
+
* Should the SiteHeaderV2 have a transparent background?
|
|
3297
|
+
*/
|
|
3298
|
+
isTransparent?: boolean;
|
|
3299
|
+
/**
|
|
3300
|
+
* A URL to link to when SiteHeaderV2 logo is clicked or touched.
|
|
3301
|
+
*/
|
|
3302
|
+
loginHref?: string;
|
|
3303
|
+
/**
|
|
3304
|
+
* A Function to run to when SiteHeaderV2 logo is clicked or touched.
|
|
3305
|
+
*/
|
|
3306
|
+
logoOnClick?: () => void;
|
|
3307
|
+
/**
|
|
3308
|
+
* A Function to run to when SiteHeaderV2 login links are clicked or touched.
|
|
3309
|
+
*/
|
|
3310
|
+
loginOnClick?: () => void;
|
|
3311
|
+
/**
|
|
3312
|
+
* Text to display in SiteHeaderV2 login links.
|
|
3313
|
+
*/
|
|
3314
|
+
loginTitle?: string;
|
|
3315
|
+
/**
|
|
3316
|
+
* A URL to link to when the SiteHeaderV2 brand logo link is clicked or touched.
|
|
3317
|
+
*/
|
|
3318
|
+
logoHref?: string;
|
|
3319
|
+
/**
|
|
3320
|
+
* Accessible text for the SiteHeaderV2 brand logo link.
|
|
3321
|
+
*/
|
|
3322
|
+
logoLabel?: string;
|
|
3323
|
+
/**
|
|
3324
|
+
* Search component for the SiteHeaderV2.
|
|
3325
|
+
*/
|
|
3326
|
+
search?: ReactNode;
|
|
3327
|
+
/**
|
|
3328
|
+
* Optional sub-brand variant. Only applies to BT.
|
|
3329
|
+
*/
|
|
3330
|
+
subBrand?: (typeof subBrands)[number];
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* Use `Skeleton` to display a placeholder preview of your page before the data gets loaded to reduce load-time frustration.
|
|
3335
|
+
*/
|
|
3336
|
+
declare const Skeleton: FC<SkeletonProps>;
|
|
3337
|
+
interface SkeletonProps {
|
|
3338
|
+
/**
|
|
3339
|
+
* Animation for `Skeleton`.
|
|
3340
|
+
*/
|
|
3341
|
+
animation?: "pulse" | "shimmer" | "none";
|
|
3342
|
+
/**
|
|
3343
|
+
* Make `Skeleton` a circle.
|
|
3344
|
+
*/
|
|
3345
|
+
isCircle?: boolean;
|
|
3346
|
+
/**
|
|
3347
|
+
* Width of `Skeleton`.
|
|
3348
|
+
*/
|
|
3349
|
+
width?: string | number;
|
|
3350
|
+
/**
|
|
3351
|
+
* Height of `Skeleton`.
|
|
3352
|
+
*/
|
|
3353
|
+
height?: string | number;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
declare const SkipLinkItem: FC<SkipLinkItemProps>;
|
|
3357
|
+
interface SkipLinkItemProps {
|
|
3358
|
+
/**
|
|
3359
|
+
* The label to display for SkipLink.Item.
|
|
3360
|
+
*/
|
|
3361
|
+
label: string;
|
|
3362
|
+
/**
|
|
3363
|
+
* The URL the skip link navigates to.
|
|
3364
|
+
*/
|
|
3365
|
+
href?: string;
|
|
3366
|
+
/**
|
|
3367
|
+
* The ID attribute of the target element the skip link navigates to.
|
|
3368
|
+
*/
|
|
3369
|
+
id?: string;
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
/** Use `SkipLink` to help keyboard-only users skip to the main content on a page. */
|
|
3373
|
+
declare const SkipLink: FC<SkipLinkProps> & {
|
|
3374
|
+
Item: typeof SkipLinkItem;
|
|
3375
|
+
};
|
|
3376
|
+
interface SkipLinkProps {
|
|
3377
|
+
/**
|
|
3378
|
+
* Links to display in the SkipLink.Item.
|
|
3379
|
+
*/
|
|
3380
|
+
children?: ReactNode;
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
/**
|
|
3384
|
+
* Use `Spinner` to display a loading state.
|
|
3385
|
+
*/
|
|
3386
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
3387
|
+
type SpinnerSize = "s" | "m" | "l" | "xl" | "xxl";
|
|
3388
|
+
interface SpinnerProps {
|
|
3389
|
+
/**
|
|
3390
|
+
* Colour options. If no `color` option defined, the colour will use currentColor.
|
|
3391
|
+
*/
|
|
3392
|
+
color?: "light" | "dark" | undefined;
|
|
3393
|
+
/**
|
|
3394
|
+
* Set sizes of spinner `s`, `m`, `l`, `xl`, `xxl` or a custom number value e.g. `100`px.
|
|
3395
|
+
*/
|
|
3396
|
+
size?: SpinnerSize | number | null;
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
/** Use `Switch` to allow users to immediately toggle between two states. */
|
|
3400
|
+
declare const Switch: FC<SwitchProps>;
|
|
3401
|
+
interface SwitchProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helper" | "helpUnderLabel" | "supplementaryInfo"> {
|
|
3402
|
+
/**
|
|
3403
|
+
* Hide Label above toggle?
|
|
3404
|
+
*/
|
|
3405
|
+
hideLabel?: boolean;
|
|
3406
|
+
/**
|
|
3407
|
+
* Position of Label
|
|
3408
|
+
*/
|
|
3409
|
+
labelPosition?: "top" | "left";
|
|
3410
|
+
/**
|
|
3411
|
+
* Text to display next to `Switch` when checked. If no value is provided onStatusText will equal offStatusText.
|
|
3412
|
+
*/
|
|
3413
|
+
onStatusText?: string;
|
|
3414
|
+
/**
|
|
3415
|
+
* Text to display next to `Switch` when unchecked. If no value is provided offStatusText will equal onStatusText.
|
|
3416
|
+
*/
|
|
3417
|
+
offStatusText?: string;
|
|
3418
|
+
/**
|
|
3419
|
+
* Should the `Switch` be disabled?
|
|
3420
|
+
*/
|
|
3421
|
+
isDisabled?: FormControlProps["isDisabled"];
|
|
3422
|
+
/**
|
|
3423
|
+
* handler for blur
|
|
3424
|
+
*/
|
|
3425
|
+
onBlur?: SwitchProps$1["onBlur"];
|
|
3426
|
+
/**
|
|
3427
|
+
* set the switch to be checked by default
|
|
3428
|
+
*/
|
|
3429
|
+
defaultChecked?: SwitchProps$1["defaultChecked"];
|
|
3430
|
+
/**
|
|
3431
|
+
* value for the switch, is applied to a hidden checkbox if within a form
|
|
3432
|
+
*/
|
|
3433
|
+
value?: SwitchProps$1["value"];
|
|
3434
|
+
/**
|
|
3435
|
+
* name for the hidden checkbox if within a form
|
|
3436
|
+
*/
|
|
3437
|
+
name?: SwitchProps$1["name"];
|
|
3438
|
+
/**
|
|
3439
|
+
* Aria label to add a description to the switch button
|
|
3440
|
+
*/
|
|
3441
|
+
ariaLabel?: string;
|
|
3442
|
+
/**
|
|
3443
|
+
* callback for when the switch is toggled
|
|
3444
|
+
*/
|
|
3445
|
+
onCheckedChange?: SwitchProps$1["onCheckedChange"];
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
declare const Tab: FC<TabProps>;
|
|
3449
|
+
interface TabProps {
|
|
3450
|
+
/**
|
|
3451
|
+
* Label to display on the Tab
|
|
3452
|
+
*/
|
|
3453
|
+
label: string;
|
|
3454
|
+
/**
|
|
3455
|
+
* Value to link `Tab` to `TabContent`
|
|
3456
|
+
*/
|
|
3457
|
+
value: string;
|
|
3458
|
+
/**
|
|
3459
|
+
* Determine what icon to display within the Tab.
|
|
3460
|
+
*/
|
|
3461
|
+
icon?: ArcIcon;
|
|
3462
|
+
/**
|
|
3463
|
+
* Determine what to display when `Tab` is active
|
|
3464
|
+
*/
|
|
3465
|
+
iconActive?: ArcIcon;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
declare const TabContent: FC<TabContentProps>;
|
|
3469
|
+
interface TabContentProps {
|
|
3470
|
+
/**
|
|
3471
|
+
* Content to display
|
|
3472
|
+
*/
|
|
3473
|
+
children: ReactNode;
|
|
3474
|
+
/**
|
|
3475
|
+
* This value links the `TabContent` with `Tab`
|
|
3476
|
+
*/
|
|
3477
|
+
value: string;
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
declare const TabsList: FC<TabsListProps>;
|
|
3481
|
+
interface TabsListProps {
|
|
3482
|
+
/**
|
|
3483
|
+
* Contents of the `Tabs` Should contain `Tab`
|
|
3484
|
+
*/
|
|
3485
|
+
children: ReactNode;
|
|
3486
|
+
/**
|
|
3487
|
+
* Determine if `Tabs` should be justified
|
|
3488
|
+
*/
|
|
3489
|
+
isJustified?: boolean;
|
|
3490
|
+
/**
|
|
3491
|
+
* Determine the type of `Tabs`. Default is standard
|
|
3492
|
+
*/
|
|
3493
|
+
type?: "standard" | "contained";
|
|
3494
|
+
/**
|
|
3495
|
+
* Determine a accessible label for `Tabs`
|
|
3496
|
+
*/
|
|
3497
|
+
ariaLabel?: string;
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
/** Use `Tabs` to allow users to navigate between different sections of relevant content. */
|
|
3501
|
+
declare const Tabs: FC<TabsProps> & {
|
|
3502
|
+
Tab: typeof Tab;
|
|
3503
|
+
Content: typeof TabContent;
|
|
3504
|
+
List: typeof TabsList;
|
|
3505
|
+
};
|
|
3506
|
+
interface TabsProps {
|
|
3507
|
+
/**
|
|
3508
|
+
* Render children
|
|
3509
|
+
*/
|
|
3510
|
+
children: ReactNode;
|
|
3511
|
+
/**
|
|
3512
|
+
* Default to an inital value of a tab. If this is left blank it is possible for there to be no active tabs
|
|
3513
|
+
*/
|
|
3514
|
+
defaultValue?: string;
|
|
3515
|
+
/**
|
|
3516
|
+
* Event handler called when the value changes.
|
|
3517
|
+
*/
|
|
3518
|
+
onValueChange?: (value: string) => void;
|
|
3519
|
+
/**
|
|
3520
|
+
* When automatic, tabs are activated when receiving focus. When manual, tabs are activated when clicked.
|
|
3521
|
+
*/
|
|
3522
|
+
activationMode?: "automatic" | "manual";
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
declare const TabbedBanner: FC<TabbedBannerProps>;
|
|
3526
|
+
interface TabbedBannerProps {
|
|
3527
|
+
/**
|
|
3528
|
+
* Determine what tabs to render. They need both a `value` and `label` prop
|
|
3529
|
+
*/
|
|
3530
|
+
tabs: {
|
|
3531
|
+
value: string;
|
|
3532
|
+
label: string;
|
|
3533
|
+
content: TemplateBannerProps;
|
|
3534
|
+
}[];
|
|
3535
|
+
/**
|
|
3536
|
+
* Default to an inital value of a tab. If this is left blank it will default to first tab.
|
|
3537
|
+
*/
|
|
3538
|
+
defaultValue?: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* The minimum height of the all banners M and above`.
|
|
3541
|
+
*/
|
|
3542
|
+
minHeight?: TemplateBannerProps["minHeight"];
|
|
3543
|
+
/**
|
|
3544
|
+
* The minimum height of the banner for the M breakpoint.
|
|
3545
|
+
* This will be active when the TabbedBanner switches to the mobile layout at the medium breakpoint.
|
|
3546
|
+
*/
|
|
3547
|
+
minHeightM?: TemplateBannerProps["minHeight"];
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
* Use `Tag` to promote features and manage filtering.
|
|
3552
|
+
*/
|
|
3553
|
+
declare const Tag: FC<TagProps>;
|
|
3554
|
+
interface TagProps {
|
|
3555
|
+
/**
|
|
3556
|
+
* Content to render within the Tag
|
|
3557
|
+
*/
|
|
3558
|
+
children: ReactNode;
|
|
3559
|
+
/**
|
|
3560
|
+
* Determine if the Tag is removable.
|
|
3561
|
+
*/
|
|
3562
|
+
isRemovable?: boolean;
|
|
3563
|
+
/**
|
|
3564
|
+
* Provide a link for the tag
|
|
3565
|
+
*/
|
|
3566
|
+
link?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Determine a icon to display within the tag.
|
|
3569
|
+
*/
|
|
3570
|
+
icon?: ArcIcon;
|
|
3571
|
+
/**
|
|
3572
|
+
* onClick Handler for Tag
|
|
3573
|
+
*/
|
|
3574
|
+
onClick?: () => void;
|
|
3575
|
+
/**
|
|
3576
|
+
* Execute function on remove
|
|
3577
|
+
*/
|
|
3578
|
+
onRemove?: () => void;
|
|
3579
|
+
/**
|
|
3580
|
+
* Specify extra information about the Tag.
|
|
3581
|
+
*/
|
|
3582
|
+
title?: string;
|
|
3583
|
+
}
|
|
3584
|
+
|
|
3585
|
+
/**
|
|
3586
|
+
* Use `Text` to display text.
|
|
3587
|
+
*/
|
|
3588
|
+
declare const Text: FC<TextProps>;
|
|
3589
|
+
type Tone = "default" | "supporting" | "muted";
|
|
3590
|
+
type TextSize = "xs" | "s" | "m" | "l";
|
|
3591
|
+
interface TextProps {
|
|
3592
|
+
/**
|
|
3593
|
+
* Alignment of the Text.
|
|
3594
|
+
*/
|
|
3595
|
+
align?: "left" | "center" | "right";
|
|
3596
|
+
/**
|
|
3597
|
+
* Text and inline markup to display.
|
|
3598
|
+
*/
|
|
3599
|
+
children: ReactNode;
|
|
3600
|
+
/**
|
|
3601
|
+
* Should the Text component be styled as an inline element?
|
|
3602
|
+
*/
|
|
3603
|
+
isInline?: boolean;
|
|
3604
|
+
/**
|
|
3605
|
+
* Should the Text width be constrained to a typographic measure?
|
|
3606
|
+
*/
|
|
3607
|
+
isMeasured?: boolean;
|
|
3608
|
+
/**
|
|
3609
|
+
* Typographic Text size.
|
|
3610
|
+
*/
|
|
3611
|
+
size?: TextSize;
|
|
3612
|
+
/**
|
|
3613
|
+
* Visual emphasis of the Text.
|
|
3614
|
+
*/
|
|
3615
|
+
tone?: Tone;
|
|
3616
|
+
/**
|
|
3617
|
+
* Id for the Text.
|
|
3618
|
+
*/
|
|
3619
|
+
id?: string;
|
|
3620
|
+
/**
|
|
3621
|
+
* Element type for text component. Default value is span
|
|
3622
|
+
*/
|
|
3623
|
+
elementType?: "span" | "p";
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
|
+
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
3627
|
+
declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
3628
|
+
interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "labelPosition"> {
|
|
3629
|
+
/**
|
|
3630
|
+
* Uncontrolled default value of the TextArea. If the TextArea is controlled
|
|
3631
|
+
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
3632
|
+
*
|
|
3633
|
+
* `defaultValue` is not to be used instead of helper text.
|
|
3634
|
+
*/
|
|
3635
|
+
defaultValue?: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* ID for the TextArea.
|
|
3638
|
+
*/
|
|
3639
|
+
id: string;
|
|
3640
|
+
/**
|
|
3641
|
+
* Should the control be disabled?
|
|
3642
|
+
*/
|
|
3643
|
+
isDisabled?: boolean;
|
|
3644
|
+
/**
|
|
3645
|
+
* Should the control be read-only?
|
|
3646
|
+
*/
|
|
3647
|
+
isReadOnly?: boolean;
|
|
3648
|
+
/**
|
|
3649
|
+
* Should the control be required?
|
|
3650
|
+
*/
|
|
3651
|
+
isRequired?: boolean;
|
|
3652
|
+
/**
|
|
3653
|
+
* Maximum number of characters.
|
|
3654
|
+
*/
|
|
3655
|
+
maxLength?: number;
|
|
3656
|
+
/**
|
|
3657
|
+
* Shows the current character count and maxLength. Ignored if maxLength is undefined.
|
|
3658
|
+
*/
|
|
3659
|
+
showCharacterCount?: boolean;
|
|
3660
|
+
/**
|
|
3661
|
+
* Name of the input.
|
|
3662
|
+
*/
|
|
3663
|
+
name?: string;
|
|
3664
|
+
/**
|
|
3665
|
+
* `none` will prevent any resizing.
|
|
3666
|
+
* `manual` will allow the user to resize the TextArea.
|
|
3667
|
+
* `auto` will resize the text area as needed when the user types.
|
|
3668
|
+
*/
|
|
3669
|
+
resize?: "none" | "manual" | "auto";
|
|
3670
|
+
/**
|
|
3671
|
+
* Function to call when the TextArea loses focus.
|
|
3672
|
+
*/
|
|
3673
|
+
onBlur?: (e: React$1.FocusEvent<HTMLTextAreaElement>) => void;
|
|
3674
|
+
/**
|
|
3675
|
+
* Function to call when the TextArea is focused.
|
|
3676
|
+
*/
|
|
3677
|
+
onFocus?: (e: React$1.FocusEvent<HTMLTextAreaElement>) => void;
|
|
3678
|
+
/**
|
|
3679
|
+
* Callback function commonly used to update the TextArea's controlled
|
|
3680
|
+
* `value`, for example `e => setValue(e.target.value)`.
|
|
3681
|
+
*/
|
|
3682
|
+
onChange?: (e: React$1.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
3683
|
+
/**
|
|
3684
|
+
* Current value of the TextArea. Must be controlled via an
|
|
3685
|
+
* `onChange` callback function. Otherwise, use `defaultValue` (or `isReadOnly`).
|
|
3686
|
+
*/
|
|
3687
|
+
value?: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* Sets the width of the TextArea.
|
|
3690
|
+
*/
|
|
3691
|
+
width?: string;
|
|
3692
|
+
/**
|
|
3693
|
+
* Sets autoComplete value for TextArea.
|
|
3694
|
+
*/
|
|
3695
|
+
autoComplete?: AutoCompleteTypes;
|
|
3696
|
+
/**
|
|
3697
|
+
* Sets minimum height value for TextArea.
|
|
3698
|
+
*/
|
|
3699
|
+
minHeight?: string;
|
|
3700
|
+
/**
|
|
3701
|
+
* Sets max-height value for TextArea.
|
|
3702
|
+
*/
|
|
3703
|
+
maxHeight?: string;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* Use `Theme` component to apply a specific theme to its children.
|
|
3708
|
+
*/
|
|
3709
|
+
declare const Theme: FC<ThemeProps>;
|
|
3710
|
+
declare const themes: readonly ["bt-enterprise", "bt-business", "ee"];
|
|
3711
|
+
type ThemeType = "bt-enterprise" | "bt-business" | "ee";
|
|
3712
|
+
interface ThemeProps {
|
|
3713
|
+
/**
|
|
3714
|
+
* Theme to apply to all children. Should be one of "bt-enterprise"
|
|
3715
|
+
*/
|
|
3716
|
+
theme?: ThemeType;
|
|
3717
|
+
/**
|
|
3718
|
+
* Applies a style reset to everything within theme component, defaults to true.
|
|
3719
|
+
*/
|
|
3720
|
+
resetCssStyles?: boolean;
|
|
3721
|
+
/**
|
|
3722
|
+
* Content to display inside Theme.
|
|
3723
|
+
*/
|
|
3724
|
+
children: any;
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
declare const ToastNotification: FC<ToastNotificationProps>;
|
|
3728
|
+
type ToastStatus = "general" | "error" | "warning" | "success";
|
|
3729
|
+
interface ToastNotificationProps {
|
|
3730
|
+
/**
|
|
3731
|
+
* Title for `<Toast />`
|
|
3732
|
+
*/
|
|
3733
|
+
title: string;
|
|
3734
|
+
/**
|
|
3735
|
+
* Set open state for `<Toast />`
|
|
3736
|
+
*/
|
|
3737
|
+
isOpen: boolean;
|
|
3738
|
+
/**
|
|
3739
|
+
* Function to call when the open state of `<Toast />` changes. This needs to be supplied in order for the auto dismiss and the close button to work.
|
|
3740
|
+
*/
|
|
3741
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
3742
|
+
/**
|
|
3743
|
+
* Set whether close button shows
|
|
3744
|
+
*/
|
|
3745
|
+
isCloseButtonVisible?: boolean;
|
|
3746
|
+
/**
|
|
3747
|
+
* Set whether to include a status icon
|
|
3748
|
+
*/
|
|
3749
|
+
isStatusIconVisible?: boolean;
|
|
3750
|
+
/**
|
|
3751
|
+
* Link for `<Toast />`
|
|
3752
|
+
*/
|
|
3753
|
+
link?: {
|
|
3754
|
+
text: string;
|
|
3755
|
+
ariaLabel?: string;
|
|
3756
|
+
href?: string;
|
|
3757
|
+
onClick?: () => void;
|
|
3758
|
+
};
|
|
3759
|
+
/**
|
|
3760
|
+
* Status of `<Toast />`
|
|
3761
|
+
*/
|
|
3762
|
+
status?: ToastStatus;
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
/** Use `Toast` to display temporary messages at the bottom of the screen. */
|
|
3766
|
+
declare const Toast: FC<ToastProps> & {
|
|
3767
|
+
Notification: typeof ToastNotification;
|
|
3768
|
+
};
|
|
3769
|
+
interface ToastProps {
|
|
3770
|
+
/**
|
|
3771
|
+
* Content to display within `Toast`
|
|
3772
|
+
*/
|
|
3773
|
+
children: React$1.ReactNode;
|
|
3774
|
+
/**
|
|
3775
|
+
* Colour scheme for `Toast` - Use 'default' in almost all cases.
|
|
3776
|
+
*/
|
|
3777
|
+
colorScheme?: "default" | "alternative";
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
/** Use `Tooltip` to display information related to an element when the element receives keyboard focus or the mouse hovers over it */
|
|
3781
|
+
declare const Tooltip: FC<TooltipProps>;
|
|
3782
|
+
interface TooltipProps {
|
|
3783
|
+
/**
|
|
3784
|
+
* Content to render within Tooltip
|
|
3785
|
+
*/
|
|
3786
|
+
children?: React$1.ReactNode;
|
|
3787
|
+
/**
|
|
3788
|
+
* The preferred side of the anchor to render against when open
|
|
3789
|
+
*/
|
|
3790
|
+
side?: "left" | "right" | "bottom" | "top";
|
|
3791
|
+
/**
|
|
3792
|
+
* The distance in pixels from the anchor
|
|
3793
|
+
*/
|
|
3794
|
+
sideOffset?: 8 | 16 | 32;
|
|
3795
|
+
/**
|
|
3796
|
+
* The preferred alignment against the anchor. May change when collisions occur.
|
|
3797
|
+
*/
|
|
3798
|
+
align?: "start" | "center" | "end";
|
|
3799
|
+
/**
|
|
3800
|
+
* Alignment for content within the tooltip
|
|
3801
|
+
*/
|
|
3802
|
+
alignContent?: "start" | "center" | "end";
|
|
3803
|
+
/**
|
|
3804
|
+
* The main title text displayed within the tooltip.
|
|
3805
|
+
*/
|
|
3806
|
+
title: string;
|
|
3807
|
+
/**
|
|
3808
|
+
* Additional supporting text displayed below the title, if provided.
|
|
3809
|
+
*/
|
|
3810
|
+
supportingCopy?: string;
|
|
3811
|
+
/**
|
|
3812
|
+
* Icon displayed next to the tooltip title or content.
|
|
3813
|
+
*/
|
|
3814
|
+
icon?: React$1.ReactElement<SVGElement> | ArcIcon$1;
|
|
3815
|
+
/**
|
|
3816
|
+
* Delay in milliseconds before the tooltip appears.
|
|
3817
|
+
*/
|
|
3818
|
+
delayDuration?: number;
|
|
3819
|
+
/**
|
|
3820
|
+
* Maximum width for the tooltip container.
|
|
3821
|
+
*/
|
|
3822
|
+
maxWidth?: string;
|
|
3823
|
+
/**
|
|
3824
|
+
* The controlled open state of the tooltip. Must be used in conjunction with `onOpenChange`.
|
|
3825
|
+
*/
|
|
3826
|
+
open?: boolean;
|
|
3827
|
+
/**
|
|
3828
|
+
* Event handler called when the open state of the tooltip changes.
|
|
3829
|
+
*/
|
|
3830
|
+
onOpenChange?: (open: boolean) => void;
|
|
3831
|
+
/**
|
|
3832
|
+
* Z-index for the `Tooltip`. Used to fine tune the overlapping of other page elements.
|
|
3833
|
+
*/
|
|
3834
|
+
zIndex?: number;
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3837
|
+
/** Use `Truncate` component to shorten text with an ellipsis. Add a `title` attribute to the truncated element so the full text remains accessible. */
|
|
3838
|
+
declare const Truncate: FC<TruncateProps>;
|
|
3839
|
+
interface TruncateProps {
|
|
3840
|
+
/**
|
|
3841
|
+
* Content to truncate.
|
|
3842
|
+
*/
|
|
3843
|
+
children: ReactNode;
|
|
3844
|
+
/**
|
|
3845
|
+
* Use title to provide extra information about text that is truncated.
|
|
3846
|
+
*/
|
|
3847
|
+
title: string;
|
|
3848
|
+
/**
|
|
3849
|
+
* Set max width of visible content within `Truncate`. Default is `100%`.
|
|
3850
|
+
*/
|
|
3851
|
+
maxWidth?: string;
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
/** Use `TypographyCard` for content that benefits from larger and energetic typography. */
|
|
3855
|
+
declare const TypographyCard: FC<TypographyCardProps>;
|
|
3856
|
+
type TypographyCardIcon = "play" | "arrow";
|
|
3857
|
+
type TypographyCardPathway = "light" | "dark";
|
|
3858
|
+
interface TypographyCardProps {
|
|
3859
|
+
/**
|
|
3860
|
+
* Heading for the TypographyCard.
|
|
3861
|
+
*/
|
|
3862
|
+
heading: string;
|
|
3863
|
+
/**
|
|
3864
|
+
* Heading size for the ImpactCard.
|
|
3865
|
+
*/
|
|
3866
|
+
headingSize?: CardHeadingSize;
|
|
3867
|
+
/**
|
|
3868
|
+
* Url for the TypographyCard.
|
|
3869
|
+
*/
|
|
3870
|
+
url: string;
|
|
3871
|
+
/**
|
|
3872
|
+
* Sets a dark or light background for the TypographyCard.
|
|
3873
|
+
*/
|
|
3874
|
+
pathway?: TypographyCardPathway;
|
|
3875
|
+
/**
|
|
3876
|
+
* Icon for the TypographyCard Cta button.
|
|
3877
|
+
*/
|
|
3878
|
+
buttonIcon?: TypographyCardIcon;
|
|
3879
|
+
/**
|
|
3880
|
+
* Heading level for the TypographyCard heading.
|
|
3881
|
+
*/
|
|
3882
|
+
headingLevel?: HeadingLevel;
|
|
3883
|
+
/**
|
|
3884
|
+
* Uppercase label for the TypographyCard.
|
|
3885
|
+
*/
|
|
3886
|
+
label?: string;
|
|
3887
|
+
/**
|
|
3888
|
+
* Click handler for the TypographyCard.
|
|
3889
|
+
*/
|
|
3890
|
+
onClick?: (e: React$1.MouseEvent<HTMLAnchorElement>) => void;
|
|
3891
|
+
/**
|
|
3892
|
+
* Text to show adjacent to the cta, can be either a date or text. Its recommended to pass dates as Date objects so the component can render them correctly.
|
|
3893
|
+
*/
|
|
3894
|
+
metaText?: CardFooterProps["metaText"];
|
|
3895
|
+
/**
|
|
3896
|
+
* Sets a minimum height for the TypographyCard.
|
|
3897
|
+
*/
|
|
3898
|
+
minHeight?: number;
|
|
3899
|
+
/**
|
|
3900
|
+
* Object of `data-` attributes to render on internal anchor element, e.g.
|
|
3901
|
+
* `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
|
|
3902
|
+
*/
|
|
3903
|
+
linkData?: {
|
|
3904
|
+
[key: string]: string;
|
|
3905
|
+
};
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
/**
|
|
3909
|
+
* Use `UniversalHeader` to display a group-level page header.
|
|
3910
|
+
*/
|
|
3911
|
+
declare const UniversalHeader: FC<UniversalHeaderProps> & {
|
|
3912
|
+
Item: typeof UniversalHeaderItem;
|
|
3913
|
+
};
|
|
3914
|
+
declare const UniversalHeaderItem: FC<UniversalHeaderItemProps>;
|
|
3915
|
+
interface UniversalHeaderItemProps {
|
|
3916
|
+
/**
|
|
3917
|
+
* Contents of the UniversalHeaderItem.
|
|
3918
|
+
*/
|
|
3919
|
+
children: ReactNode;
|
|
3920
|
+
/**
|
|
3921
|
+
* A URL to link to when the Item is clicked or touched.
|
|
3922
|
+
*/
|
|
3923
|
+
href: string;
|
|
3924
|
+
/**
|
|
3925
|
+
* An isActive prop state if the current link is active.
|
|
3926
|
+
*/
|
|
3927
|
+
isActive?: boolean;
|
|
3928
|
+
}
|
|
3929
|
+
interface UniversalHeaderProps {
|
|
3930
|
+
/**
|
|
3931
|
+
* Contents of the UniversalHeader. Must be
|
|
3932
|
+
* UniversalHeader.Item components.
|
|
3933
|
+
*/
|
|
3934
|
+
children: ReactNode;
|
|
3935
|
+
/**
|
|
3936
|
+
* A Slot to accept react node. Any content with this slot will be aligned right.
|
|
3937
|
+
*/
|
|
3938
|
+
ContentSlot?: ReactNode;
|
|
3939
|
+
}
|
|
3940
|
+
|
|
3941
|
+
/**
|
|
3942
|
+
* Use `VerticalSpace` to create vertical space between components.
|
|
3943
|
+
*/
|
|
3944
|
+
declare const VerticalSpace: FC<VerticalSpaceProps>;
|
|
3945
|
+
type VerticalSpaceSize = "4" | "8" | "12" | "16" | "20" | "24" | "28" | "32" | "40" | "48" | "64" | "96" | "128";
|
|
3946
|
+
interface VerticalSpaceProps {
|
|
3947
|
+
/**
|
|
3948
|
+
* Should the VerticalSpace be visible for debugging and documentation
|
|
3949
|
+
* purposes?
|
|
3950
|
+
*/
|
|
3951
|
+
isDebugVisible?: boolean;
|
|
3952
|
+
/**
|
|
3953
|
+
* Size of the VerticalSpace.
|
|
3954
|
+
*/
|
|
3955
|
+
size?: VerticalSpaceSize;
|
|
3956
|
+
/**
|
|
3957
|
+
* Size of the VerticalSpace from the small breakpoint upwards.
|
|
3958
|
+
*/
|
|
3959
|
+
sizeS?: VerticalSpaceSize;
|
|
3960
|
+
/**
|
|
3961
|
+
* Size of the VerticalSpace from the medium breakpoint upwards.
|
|
3962
|
+
*/
|
|
3963
|
+
sizeM?: VerticalSpaceSize;
|
|
3964
|
+
/**
|
|
3965
|
+
* Size of the VerticalSpace from the large breakpoint upwards.
|
|
3966
|
+
*/
|
|
3967
|
+
sizeL?: VerticalSpaceSize;
|
|
3968
|
+
/**
|
|
3969
|
+
* Size of the VerticalSpace from the extra large breakpoint upwards.
|
|
3970
|
+
*/
|
|
3971
|
+
sizeXL?: VerticalSpaceSize;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
/**
|
|
3975
|
+
* Use `VideoPlayer` to embed videos from YouTube or Vimeo.
|
|
3976
|
+
*/
|
|
3977
|
+
declare const VideoPlayer: React$1.FC<VideoPlayerProps>;
|
|
3978
|
+
interface VideoPlayerProps extends Pick<ReactPlayerProps, "onReady" | "onPlay" | "onStart" | "onPause" | "onEnded" | "onError" | "light"> {
|
|
3979
|
+
url: string;
|
|
3980
|
+
title: string;
|
|
3981
|
+
description: string;
|
|
3982
|
+
isBorderRadius?: boolean;
|
|
3983
|
+
transcriptLink?: {
|
|
3984
|
+
url: string;
|
|
3985
|
+
text: string;
|
|
3986
|
+
fileSize: string;
|
|
3987
|
+
format: string;
|
|
3988
|
+
};
|
|
3989
|
+
transcriptContent?: {
|
|
3990
|
+
heading: string;
|
|
3991
|
+
description: string;
|
|
3992
|
+
content: {
|
|
3993
|
+
heading?: string;
|
|
3994
|
+
text?: string;
|
|
3995
|
+
}[];
|
|
3996
|
+
};
|
|
3997
|
+
isSupportingTextHidden?: boolean;
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
declare const Visible: React$1.FC<VisibleProps>;
|
|
4001
|
+
interface VisibleProps {
|
|
4002
|
+
xs?: boolean;
|
|
4003
|
+
s?: boolean;
|
|
4004
|
+
m?: boolean;
|
|
4005
|
+
l?: boolean;
|
|
4006
|
+
xl?: boolean;
|
|
4007
|
+
children: React$1.ReactNode;
|
|
4008
|
+
}
|
|
4009
|
+
|
|
4010
|
+
/**
|
|
4011
|
+
* Use `VisuallyHidden` to provide text for screen readers that is visually hidden on screen.
|
|
4012
|
+
*/
|
|
4013
|
+
declare const VisuallyHidden: FC<VisuallyHiddenProps>;
|
|
4014
|
+
interface VisuallyHiddenProps {
|
|
4015
|
+
/**
|
|
4016
|
+
* Content to be Visually Hidden.
|
|
4017
|
+
*/
|
|
4018
|
+
children?: ReactNode;
|
|
4019
|
+
}
|
|
4020
|
+
|
|
4021
|
+
/**
|
|
4022
|
+
* @typedef MediaQueryOutputs
|
|
4023
|
+
* @param {boolean} matches - does the document match the media query?
|
|
4024
|
+
*/
|
|
4025
|
+
/**
|
|
4026
|
+
* Handle with care!
|
|
4027
|
+
*
|
|
4028
|
+
* If you need to change something in the browser based on @media query, you
|
|
4029
|
+
* probably don’t need this hook. Use CSS media queries instead.
|
|
4030
|
+
*
|
|
4031
|
+
* Sometimes UI requirements are not achievable with CSS media queries alone. In
|
|
4032
|
+
* these rare cases, use this hook to make media query matches available
|
|
4033
|
+
* to React JavaScript code.
|
|
4034
|
+
*
|
|
4035
|
+
* @param {string} mediaQuery - the media query to parse
|
|
4036
|
+
* @returns {MediaQueryOutputs}
|
|
4037
|
+
*/
|
|
4038
|
+
declare const useMediaQuery: (mediaQuery: string) => boolean;
|
|
4039
|
+
|
|
4040
|
+
export { Alert, type AlertProps, Align, type AlignProps, type AlignmentValue, AppButton, type AppButtonProps, type RangeSelection as ArcCalendarRangeSelection, type SelectionType as ArcCalendarSelectionType, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, BrandLogo, colors$1 as BrandLogoColors, type BrandLogoProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, ButtonV2, type ButtonV2Props, Calendar, type CalendarProps, Carousel, type CarouselProps, Checkbox, type CheckboxProps, type ColumnValue, Columns, ComboBox, type ComboBoxProps, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, type ContentSwitcherDropdownProps, ContentSwitcherList, type ContentSwitcherProps, ContentSwitcherTab, DATE_FORMAT, DatePicker, type DatePickerProps, Disclosure, DisclosureMini, type DisclosureMiniProps, type DisclosureProps, Download, type DownloadProps, Drawer, type DrawerProps, Elevation, type ElevationProps, Filter, type FilterProps, FormControl, Context as FormControlContext, type FormControlProps, Grid, type GridProps, type GridValue, Group, type GroupProps, Heading, type HeadingLevel, HeadingProposition, type HeadingProps, HeroBanner, type HeroBannerProps, HeroButton, type HeroButtonProps, Hidden, type HiddenProps, Icon, colors as IconColors, type IconProps, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, type ImageProps, type ImageSourceProps, ImpactCard, type ImpactCardProps, InformationCard, type InformationCardProps, Link, type LinkProps, Markup, type MarkupProps, MediaCard, type MediaCardProps, Modal, type ModalProps, Pagination, type PaginationProps, PaginationSimple, type PaginationSimpleProps, Popover, type PopoverProps, Poster, type PosterProps, ProgressBar, type ProgressBarProps, type ProgressBarState, ProgressStepper, ProgressStepperItem, type ProgressStepperItemProps, type ProgressStepperProps, RadioButton, type RadioButtonProps, RadioCardGroup, RadioGroup, type RadioGroupProps, Rule, type RuleProps, ScrollToTop, type ScrollToTopProps, Section, type SectionProps, Select, type SelectProps, SiteFooter, SiteFooterItem, SiteFooterItemGroup, type SiteFooterProps, SiteHeaderV2, type SiteHeaderV2Props, Skeleton, type SkeletonProps, SkipLink, type SkipLinkProps, type Span, Spinner, type SpinnerProps, Surface, type SurfaceBackgroundColor, Context$1 as SurfaceContext, type SurfacePadding, type SurfaceProps, Switch, type SwitchProps, TabbedBanner, type TabbedBannerProps, Tabs, TabsList, type TabsProps, Tag, type TagProps, TemplateBanner, type TemplateBannerProps, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Theme, ThemeIcon, type ThemeIconNames, type ThemeIconProps, type ThemeProps, type ThemeType, Toast, type ToastProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, TypographyCard, type TypographyCardProps, UniversalHeader, type UniversalHeaderProps, VerticalSpace, type VerticalSpaceProps, VideoPlayer, type VideoPlayerProps, Visible, type VisibleProps, VisuallyHidden, type VisuallyHiddenProps, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery };
|