@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
|
@@ -0,0 +1,1294 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var index = require('./index-DXNM3D1d.cjs');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var ReactDOM = require('react-dom');
|
|
7
|
+
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
8
|
+
var index$1 = require('./index-DM20WK5o.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
28
|
+
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
29
|
+
|
|
30
|
+
// packages/core/primitive/src/primitive.tsx
|
|
31
|
+
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
32
|
+
return function handleEvent(event) {
|
|
33
|
+
originalEventHandler?.(event);
|
|
34
|
+
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
|
|
35
|
+
return ourEventHandler?.(event);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// packages/react/compose-refs/src/composeRefs.tsx
|
|
41
|
+
function setRef(ref, value) {
|
|
42
|
+
if (typeof ref === "function") {
|
|
43
|
+
return ref(value);
|
|
44
|
+
} else if (ref !== null && ref !== void 0) {
|
|
45
|
+
ref.current = value;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function composeRefs(...refs) {
|
|
49
|
+
return (node) => {
|
|
50
|
+
let hasCleanup = false;
|
|
51
|
+
const cleanups = refs.map((ref) => {
|
|
52
|
+
const cleanup = setRef(ref, node);
|
|
53
|
+
if (!hasCleanup && typeof cleanup == "function") {
|
|
54
|
+
hasCleanup = true;
|
|
55
|
+
}
|
|
56
|
+
return cleanup;
|
|
57
|
+
});
|
|
58
|
+
if (hasCleanup) {
|
|
59
|
+
return () => {
|
|
60
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
61
|
+
const cleanup = cleanups[i];
|
|
62
|
+
if (typeof cleanup == "function") {
|
|
63
|
+
cleanup();
|
|
64
|
+
} else {
|
|
65
|
+
setRef(refs[i], null);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function useComposedRefs(...refs) {
|
|
73
|
+
return React__namespace.useCallback(composeRefs(...refs), refs);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// packages/react/slot/src/slot.tsx
|
|
77
|
+
var Slot = React__namespace.forwardRef((props, forwardedRef) => {
|
|
78
|
+
const { children, ...slotProps } = props;
|
|
79
|
+
const childrenArray = React__namespace.Children.toArray(children);
|
|
80
|
+
const slottable = childrenArray.find(isSlottable);
|
|
81
|
+
if (slottable) {
|
|
82
|
+
const newElement = slottable.props.children;
|
|
83
|
+
const newChildren = childrenArray.map((child) => {
|
|
84
|
+
if (child === slottable) {
|
|
85
|
+
if (React__namespace.Children.count(newElement) > 1) return React__namespace.Children.only(null);
|
|
86
|
+
return React__namespace.isValidElement(newElement) ? newElement.props.children : null;
|
|
87
|
+
} else {
|
|
88
|
+
return child;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React__namespace.isValidElement(newElement) ? React__namespace.cloneElement(newElement, void 0, newChildren) : null });
|
|
92
|
+
}
|
|
93
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
94
|
+
});
|
|
95
|
+
Slot.displayName = "Slot";
|
|
96
|
+
var SlotClone = React__namespace.forwardRef((props, forwardedRef) => {
|
|
97
|
+
const { children, ...slotProps } = props;
|
|
98
|
+
if (React__namespace.isValidElement(children)) {
|
|
99
|
+
const childrenRef = getElementRef(children);
|
|
100
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
101
|
+
if (children.type !== React__namespace.Fragment) {
|
|
102
|
+
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
103
|
+
}
|
|
104
|
+
return React__namespace.cloneElement(children, props2);
|
|
105
|
+
}
|
|
106
|
+
return React__namespace.Children.count(children) > 1 ? React__namespace.Children.only(null) : null;
|
|
107
|
+
});
|
|
108
|
+
SlotClone.displayName = "SlotClone";
|
|
109
|
+
var Slottable = ({ children }) => {
|
|
110
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
111
|
+
};
|
|
112
|
+
function isSlottable(child) {
|
|
113
|
+
return React__namespace.isValidElement(child) && child.type === Slottable;
|
|
114
|
+
}
|
|
115
|
+
function mergeProps(slotProps, childProps) {
|
|
116
|
+
const overrideProps = { ...childProps };
|
|
117
|
+
for (const propName in childProps) {
|
|
118
|
+
const slotPropValue = slotProps[propName];
|
|
119
|
+
const childPropValue = childProps[propName];
|
|
120
|
+
const isHandler = /^on[A-Z]/.test(propName);
|
|
121
|
+
if (isHandler) {
|
|
122
|
+
if (slotPropValue && childPropValue) {
|
|
123
|
+
overrideProps[propName] = (...args) => {
|
|
124
|
+
childPropValue(...args);
|
|
125
|
+
slotPropValue(...args);
|
|
126
|
+
};
|
|
127
|
+
} else if (slotPropValue) {
|
|
128
|
+
overrideProps[propName] = slotPropValue;
|
|
129
|
+
}
|
|
130
|
+
} else if (propName === "style") {
|
|
131
|
+
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
132
|
+
} else if (propName === "className") {
|
|
133
|
+
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return { ...slotProps, ...overrideProps };
|
|
137
|
+
}
|
|
138
|
+
function getElementRef(element) {
|
|
139
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
140
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
141
|
+
if (mayWarn) {
|
|
142
|
+
return element.ref;
|
|
143
|
+
}
|
|
144
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
145
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
146
|
+
if (mayWarn) {
|
|
147
|
+
return element.props.ref;
|
|
148
|
+
}
|
|
149
|
+
return element.props.ref || element.ref;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// packages/react/primitive/src/primitive.tsx
|
|
153
|
+
var NODES = [
|
|
154
|
+
"a",
|
|
155
|
+
"button",
|
|
156
|
+
"div",
|
|
157
|
+
"form",
|
|
158
|
+
"h2",
|
|
159
|
+
"h3",
|
|
160
|
+
"img",
|
|
161
|
+
"input",
|
|
162
|
+
"label",
|
|
163
|
+
"li",
|
|
164
|
+
"nav",
|
|
165
|
+
"ol",
|
|
166
|
+
"p",
|
|
167
|
+
"span",
|
|
168
|
+
"svg",
|
|
169
|
+
"ul"
|
|
170
|
+
];
|
|
171
|
+
var Primitive = NODES.reduce((primitive, node) => {
|
|
172
|
+
const Node = React__namespace.forwardRef((props, forwardedRef) => {
|
|
173
|
+
const { asChild, ...primitiveProps } = props;
|
|
174
|
+
const Comp = asChild ? Slot : node;
|
|
175
|
+
if (typeof window !== "undefined") {
|
|
176
|
+
window[Symbol.for("radix-ui")] = true;
|
|
177
|
+
}
|
|
178
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
179
|
+
});
|
|
180
|
+
Node.displayName = `Primitive.${node}`;
|
|
181
|
+
return { ...primitive, [node]: Node };
|
|
182
|
+
}, {});
|
|
183
|
+
function dispatchDiscreteCustomEvent(target, event) {
|
|
184
|
+
if (target) ReactDOM__namespace.flushSync(() => target.dispatchEvent(event));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
188
|
+
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
189
|
+
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
190
|
+
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
191
|
+
var originalBodyPointerEvents;
|
|
192
|
+
var DismissableLayerContext = React__namespace.createContext({
|
|
193
|
+
layers: /* @__PURE__ */ new Set(),
|
|
194
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
195
|
+
branches: /* @__PURE__ */ new Set()
|
|
196
|
+
});
|
|
197
|
+
var DismissableLayer = React__namespace.forwardRef(
|
|
198
|
+
(props, forwardedRef) => {
|
|
199
|
+
const {
|
|
200
|
+
disableOutsidePointerEvents = false,
|
|
201
|
+
onEscapeKeyDown,
|
|
202
|
+
onPointerDownOutside,
|
|
203
|
+
onFocusOutside,
|
|
204
|
+
onInteractOutside,
|
|
205
|
+
onDismiss,
|
|
206
|
+
...layerProps
|
|
207
|
+
} = props;
|
|
208
|
+
const context = React__namespace.useContext(DismissableLayerContext);
|
|
209
|
+
const [node, setNode] = React__namespace.useState(null);
|
|
210
|
+
const ownerDocument = node?.ownerDocument ?? globalThis?.document;
|
|
211
|
+
const [, force] = React__namespace.useState({});
|
|
212
|
+
const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
|
|
213
|
+
const layers = Array.from(context.layers);
|
|
214
|
+
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
215
|
+
const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
|
|
216
|
+
const index$1 = node ? layers.indexOf(node) : -1;
|
|
217
|
+
const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
218
|
+
const isPointerEventsEnabled = index$1 >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
219
|
+
const pointerDownOutside = usePointerDownOutside((event) => {
|
|
220
|
+
const target = event.target;
|
|
221
|
+
const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
|
|
222
|
+
if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
|
|
223
|
+
onPointerDownOutside?.(event);
|
|
224
|
+
onInteractOutside?.(event);
|
|
225
|
+
if (!event.defaultPrevented) onDismiss?.();
|
|
226
|
+
}, ownerDocument);
|
|
227
|
+
const focusOutside = useFocusOutside((event) => {
|
|
228
|
+
const target = event.target;
|
|
229
|
+
const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));
|
|
230
|
+
if (isFocusInBranch) return;
|
|
231
|
+
onFocusOutside?.(event);
|
|
232
|
+
onInteractOutside?.(event);
|
|
233
|
+
if (!event.defaultPrevented) onDismiss?.();
|
|
234
|
+
}, ownerDocument);
|
|
235
|
+
index.useEscapeKeydown((event) => {
|
|
236
|
+
const isHighestLayer = index$1 === context.layers.size - 1;
|
|
237
|
+
if (!isHighestLayer) return;
|
|
238
|
+
onEscapeKeyDown?.(event);
|
|
239
|
+
if (!event.defaultPrevented && onDismiss) {
|
|
240
|
+
event.preventDefault();
|
|
241
|
+
onDismiss();
|
|
242
|
+
}
|
|
243
|
+
}, ownerDocument);
|
|
244
|
+
React__namespace.useEffect(() => {
|
|
245
|
+
if (!node) return;
|
|
246
|
+
if (disableOutsidePointerEvents) {
|
|
247
|
+
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
248
|
+
originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
|
|
249
|
+
ownerDocument.body.style.pointerEvents = "none";
|
|
250
|
+
}
|
|
251
|
+
context.layersWithOutsidePointerEventsDisabled.add(node);
|
|
252
|
+
}
|
|
253
|
+
context.layers.add(node);
|
|
254
|
+
dispatchUpdate();
|
|
255
|
+
return () => {
|
|
256
|
+
if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {
|
|
257
|
+
ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}, [node, ownerDocument, disableOutsidePointerEvents, context]);
|
|
261
|
+
React__namespace.useEffect(() => {
|
|
262
|
+
return () => {
|
|
263
|
+
if (!node) return;
|
|
264
|
+
context.layers.delete(node);
|
|
265
|
+
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
|
266
|
+
dispatchUpdate();
|
|
267
|
+
};
|
|
268
|
+
}, [node, context]);
|
|
269
|
+
React__namespace.useEffect(() => {
|
|
270
|
+
const handleUpdate = () => force({});
|
|
271
|
+
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
272
|
+
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
273
|
+
}, []);
|
|
274
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
275
|
+
Primitive.div,
|
|
276
|
+
{
|
|
277
|
+
...layerProps,
|
|
278
|
+
ref: composedRefs,
|
|
279
|
+
style: {
|
|
280
|
+
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
|
|
281
|
+
...props.style
|
|
282
|
+
},
|
|
283
|
+
onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
|
|
284
|
+
onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
|
|
285
|
+
onPointerDownCapture: composeEventHandlers(
|
|
286
|
+
props.onPointerDownCapture,
|
|
287
|
+
pointerDownOutside.onPointerDownCapture
|
|
288
|
+
)
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
|
|
294
|
+
var BRANCH_NAME = "DismissableLayerBranch";
|
|
295
|
+
var DismissableLayerBranch = React__namespace.forwardRef((props, forwardedRef) => {
|
|
296
|
+
const context = React__namespace.useContext(DismissableLayerContext);
|
|
297
|
+
const ref = React__namespace.useRef(null);
|
|
298
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
299
|
+
React__namespace.useEffect(() => {
|
|
300
|
+
const node = ref.current;
|
|
301
|
+
if (node) {
|
|
302
|
+
context.branches.add(node);
|
|
303
|
+
return () => {
|
|
304
|
+
context.branches.delete(node);
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
}, [context.branches]);
|
|
308
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...props, ref: composedRefs });
|
|
309
|
+
});
|
|
310
|
+
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
311
|
+
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
312
|
+
const handlePointerDownOutside = index.useCallbackRef(onPointerDownOutside);
|
|
313
|
+
const isPointerInsideReactTreeRef = React__namespace.useRef(false);
|
|
314
|
+
const handleClickRef = React__namespace.useRef(() => {
|
|
315
|
+
});
|
|
316
|
+
React__namespace.useEffect(() => {
|
|
317
|
+
const handlePointerDown = (event) => {
|
|
318
|
+
if (event.target && !isPointerInsideReactTreeRef.current) {
|
|
319
|
+
let handleAndDispatchPointerDownOutsideEvent2 = function() {
|
|
320
|
+
handleAndDispatchCustomEvent(
|
|
321
|
+
POINTER_DOWN_OUTSIDE,
|
|
322
|
+
handlePointerDownOutside,
|
|
323
|
+
eventDetail,
|
|
324
|
+
{ discrete: true }
|
|
325
|
+
);
|
|
326
|
+
};
|
|
327
|
+
const eventDetail = { originalEvent: event };
|
|
328
|
+
if (event.pointerType === "touch") {
|
|
329
|
+
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
330
|
+
handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
|
|
331
|
+
ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
|
|
332
|
+
} else {
|
|
333
|
+
handleAndDispatchPointerDownOutsideEvent2();
|
|
334
|
+
}
|
|
335
|
+
} else {
|
|
336
|
+
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
337
|
+
}
|
|
338
|
+
isPointerInsideReactTreeRef.current = false;
|
|
339
|
+
};
|
|
340
|
+
const timerId = window.setTimeout(() => {
|
|
341
|
+
ownerDocument.addEventListener("pointerdown", handlePointerDown);
|
|
342
|
+
}, 0);
|
|
343
|
+
return () => {
|
|
344
|
+
window.clearTimeout(timerId);
|
|
345
|
+
ownerDocument.removeEventListener("pointerdown", handlePointerDown);
|
|
346
|
+
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
347
|
+
};
|
|
348
|
+
}, [ownerDocument, handlePointerDownOutside]);
|
|
349
|
+
return {
|
|
350
|
+
// ensures we check React component tree (not just DOM tree)
|
|
351
|
+
onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
|
|
355
|
+
const handleFocusOutside = index.useCallbackRef(onFocusOutside);
|
|
356
|
+
const isFocusInsideReactTreeRef = React__namespace.useRef(false);
|
|
357
|
+
React__namespace.useEffect(() => {
|
|
358
|
+
const handleFocus = (event) => {
|
|
359
|
+
if (event.target && !isFocusInsideReactTreeRef.current) {
|
|
360
|
+
const eventDetail = { originalEvent: event };
|
|
361
|
+
handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
|
|
362
|
+
discrete: false
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
ownerDocument.addEventListener("focusin", handleFocus);
|
|
367
|
+
return () => ownerDocument.removeEventListener("focusin", handleFocus);
|
|
368
|
+
}, [ownerDocument, handleFocusOutside]);
|
|
369
|
+
return {
|
|
370
|
+
onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
|
|
371
|
+
onBlurCapture: () => isFocusInsideReactTreeRef.current = false
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function dispatchUpdate() {
|
|
375
|
+
const event = new CustomEvent(CONTEXT_UPDATE);
|
|
376
|
+
document.dispatchEvent(event);
|
|
377
|
+
}
|
|
378
|
+
function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
379
|
+
const target = detail.originalEvent.target;
|
|
380
|
+
const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });
|
|
381
|
+
if (handler) target.addEventListener(name, handler, { once: true });
|
|
382
|
+
if (discrete) {
|
|
383
|
+
dispatchDiscreteCustomEvent(target, event);
|
|
384
|
+
} else {
|
|
385
|
+
target.dispatchEvent(event);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
390
|
+
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
391
|
+
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
392
|
+
var FOCUS_SCOPE_NAME = "FocusScope";
|
|
393
|
+
var FocusScope = React__namespace.forwardRef((props, forwardedRef) => {
|
|
394
|
+
const {
|
|
395
|
+
loop = false,
|
|
396
|
+
trapped = false,
|
|
397
|
+
onMountAutoFocus: onMountAutoFocusProp,
|
|
398
|
+
onUnmountAutoFocus: onUnmountAutoFocusProp,
|
|
399
|
+
...scopeProps
|
|
400
|
+
} = props;
|
|
401
|
+
const [container, setContainer] = React__namespace.useState(null);
|
|
402
|
+
const onMountAutoFocus = index.useCallbackRef(onMountAutoFocusProp);
|
|
403
|
+
const onUnmountAutoFocus = index.useCallbackRef(onUnmountAutoFocusProp);
|
|
404
|
+
const lastFocusedElementRef = React__namespace.useRef(null);
|
|
405
|
+
const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
|
|
406
|
+
const focusScope = React__namespace.useRef({
|
|
407
|
+
paused: false,
|
|
408
|
+
pause() {
|
|
409
|
+
this.paused = true;
|
|
410
|
+
},
|
|
411
|
+
resume() {
|
|
412
|
+
this.paused = false;
|
|
413
|
+
}
|
|
414
|
+
}).current;
|
|
415
|
+
React__namespace.useEffect(() => {
|
|
416
|
+
if (trapped) {
|
|
417
|
+
let handleFocusIn2 = function(event) {
|
|
418
|
+
if (focusScope.paused || !container) return;
|
|
419
|
+
const target = event.target;
|
|
420
|
+
if (container.contains(target)) {
|
|
421
|
+
lastFocusedElementRef.current = target;
|
|
422
|
+
} else {
|
|
423
|
+
focus(lastFocusedElementRef.current, { select: true });
|
|
424
|
+
}
|
|
425
|
+
}, handleFocusOut2 = function(event) {
|
|
426
|
+
if (focusScope.paused || !container) return;
|
|
427
|
+
const relatedTarget = event.relatedTarget;
|
|
428
|
+
if (relatedTarget === null) return;
|
|
429
|
+
if (!container.contains(relatedTarget)) {
|
|
430
|
+
focus(lastFocusedElementRef.current, { select: true });
|
|
431
|
+
}
|
|
432
|
+
}, handleMutations2 = function(mutations) {
|
|
433
|
+
const focusedElement = document.activeElement;
|
|
434
|
+
if (focusedElement !== document.body) return;
|
|
435
|
+
for (const mutation of mutations) {
|
|
436
|
+
if (mutation.removedNodes.length > 0) focus(container);
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
document.addEventListener("focusin", handleFocusIn2);
|
|
440
|
+
document.addEventListener("focusout", handleFocusOut2);
|
|
441
|
+
const mutationObserver = new MutationObserver(handleMutations2);
|
|
442
|
+
if (container) mutationObserver.observe(container, { childList: true, subtree: true });
|
|
443
|
+
return () => {
|
|
444
|
+
document.removeEventListener("focusin", handleFocusIn2);
|
|
445
|
+
document.removeEventListener("focusout", handleFocusOut2);
|
|
446
|
+
mutationObserver.disconnect();
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
}, [trapped, container, focusScope.paused]);
|
|
450
|
+
React__namespace.useEffect(() => {
|
|
451
|
+
if (container) {
|
|
452
|
+
focusScopesStack.add(focusScope);
|
|
453
|
+
const previouslyFocusedElement = document.activeElement;
|
|
454
|
+
const hasFocusedCandidate = container.contains(previouslyFocusedElement);
|
|
455
|
+
if (!hasFocusedCandidate) {
|
|
456
|
+
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
|
|
457
|
+
container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
458
|
+
container.dispatchEvent(mountEvent);
|
|
459
|
+
if (!mountEvent.defaultPrevented) {
|
|
460
|
+
focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
|
|
461
|
+
if (document.activeElement === previouslyFocusedElement) {
|
|
462
|
+
focus(container);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return () => {
|
|
467
|
+
container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
468
|
+
setTimeout(() => {
|
|
469
|
+
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
470
|
+
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
471
|
+
container.dispatchEvent(unmountEvent);
|
|
472
|
+
if (!unmountEvent.defaultPrevented) {
|
|
473
|
+
focus(previouslyFocusedElement ?? document.body, { select: true });
|
|
474
|
+
}
|
|
475
|
+
container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
476
|
+
focusScopesStack.remove(focusScope);
|
|
477
|
+
}, 0);
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
}, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
|
|
481
|
+
const handleKeyDown = React__namespace.useCallback(
|
|
482
|
+
(event) => {
|
|
483
|
+
if (!loop && !trapped) return;
|
|
484
|
+
if (focusScope.paused) return;
|
|
485
|
+
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
486
|
+
const focusedElement = document.activeElement;
|
|
487
|
+
if (isTabKey && focusedElement) {
|
|
488
|
+
const container2 = event.currentTarget;
|
|
489
|
+
const [first, last] = getTabbableEdges(container2);
|
|
490
|
+
const hasTabbableElementsInside = first && last;
|
|
491
|
+
if (!hasTabbableElementsInside) {
|
|
492
|
+
if (focusedElement === container2) event.preventDefault();
|
|
493
|
+
} else {
|
|
494
|
+
if (!event.shiftKey && focusedElement === last) {
|
|
495
|
+
event.preventDefault();
|
|
496
|
+
if (loop) focus(first, { select: true });
|
|
497
|
+
} else if (event.shiftKey && focusedElement === first) {
|
|
498
|
+
event.preventDefault();
|
|
499
|
+
if (loop) focus(last, { select: true });
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
[loop, trapped, focusScope.paused]
|
|
505
|
+
);
|
|
506
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
507
|
+
});
|
|
508
|
+
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
509
|
+
function focusFirst(candidates, { select = false } = {}) {
|
|
510
|
+
const previouslyFocusedElement = document.activeElement;
|
|
511
|
+
for (const candidate of candidates) {
|
|
512
|
+
focus(candidate, { select });
|
|
513
|
+
if (document.activeElement !== previouslyFocusedElement) return;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
function getTabbableEdges(container) {
|
|
517
|
+
const candidates = getTabbableCandidates(container);
|
|
518
|
+
const first = findVisible(candidates, container);
|
|
519
|
+
const last = findVisible(candidates.reverse(), container);
|
|
520
|
+
return [first, last];
|
|
521
|
+
}
|
|
522
|
+
function getTabbableCandidates(container) {
|
|
523
|
+
const nodes = [];
|
|
524
|
+
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
525
|
+
acceptNode: (node) => {
|
|
526
|
+
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
527
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
528
|
+
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
532
|
+
return nodes;
|
|
533
|
+
}
|
|
534
|
+
function findVisible(elements, container) {
|
|
535
|
+
for (const element of elements) {
|
|
536
|
+
if (!isHidden(element, { upTo: container })) return element;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
function isHidden(node, { upTo }) {
|
|
540
|
+
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
541
|
+
while (node) {
|
|
542
|
+
if (upTo !== void 0 && node === upTo) return false;
|
|
543
|
+
if (getComputedStyle(node).display === "none") return true;
|
|
544
|
+
node = node.parentElement;
|
|
545
|
+
}
|
|
546
|
+
return false;
|
|
547
|
+
}
|
|
548
|
+
function isSelectableInput(element) {
|
|
549
|
+
return element instanceof HTMLInputElement && "select" in element;
|
|
550
|
+
}
|
|
551
|
+
function focus(element, { select = false } = {}) {
|
|
552
|
+
if (element && element.focus) {
|
|
553
|
+
const previouslyFocusedElement = document.activeElement;
|
|
554
|
+
element.focus({ preventScroll: true });
|
|
555
|
+
if (element !== previouslyFocusedElement && isSelectableInput(element) && select)
|
|
556
|
+
element.select();
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
var focusScopesStack = createFocusScopesStack();
|
|
560
|
+
function createFocusScopesStack() {
|
|
561
|
+
let stack = [];
|
|
562
|
+
return {
|
|
563
|
+
add(focusScope) {
|
|
564
|
+
const activeFocusScope = stack[0];
|
|
565
|
+
if (focusScope !== activeFocusScope) {
|
|
566
|
+
activeFocusScope?.pause();
|
|
567
|
+
}
|
|
568
|
+
stack = arrayRemove(stack, focusScope);
|
|
569
|
+
stack.unshift(focusScope);
|
|
570
|
+
},
|
|
571
|
+
remove(focusScope) {
|
|
572
|
+
stack = arrayRemove(stack, focusScope);
|
|
573
|
+
stack[0]?.resume();
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
function arrayRemove(array, item) {
|
|
578
|
+
const updatedArray = [...array];
|
|
579
|
+
const index = updatedArray.indexOf(item);
|
|
580
|
+
if (index !== -1) {
|
|
581
|
+
updatedArray.splice(index, 1);
|
|
582
|
+
}
|
|
583
|
+
return updatedArray;
|
|
584
|
+
}
|
|
585
|
+
function removeLinks(items) {
|
|
586
|
+
return items.filter((item) => item.tagName !== "A");
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
var PORTAL_NAME = "Portal";
|
|
590
|
+
var Portal = React__namespace.forwardRef((props, forwardedRef) => {
|
|
591
|
+
const { container: containerProp, ...portalProps } = props;
|
|
592
|
+
const [mounted, setMounted] = React__namespace.useState(false);
|
|
593
|
+
index.useLayoutEffect2(() => setMounted(true), []);
|
|
594
|
+
const container = containerProp || mounted && globalThis?.document?.body;
|
|
595
|
+
return container ? ReactDOM.createPortal(/* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
596
|
+
});
|
|
597
|
+
Portal.displayName = PORTAL_NAME;
|
|
598
|
+
|
|
599
|
+
var zeroRightClassName = 'right-scroll-bar-position';
|
|
600
|
+
var fullWidthClassName = 'width-before-scroll-bar';
|
|
601
|
+
var noScrollbarsClassName = 'with-scroll-bars-hidden';
|
|
602
|
+
/**
|
|
603
|
+
* Name of a CSS variable containing the amount of "hidden" scrollbar
|
|
604
|
+
* ! might be undefined ! use will fallback!
|
|
605
|
+
*/
|
|
606
|
+
var removedBarSizeVariable = '--removed-body-scroll-bar-size';
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Assigns a value for a given ref, no matter of the ref format
|
|
610
|
+
* @param {RefObject} ref - a callback function or ref object
|
|
611
|
+
* @param value - a new value
|
|
612
|
+
*
|
|
613
|
+
* @see https://github.com/theKashey/use-callback-ref#assignref
|
|
614
|
+
* @example
|
|
615
|
+
* const refObject = useRef();
|
|
616
|
+
* const refFn = (ref) => {....}
|
|
617
|
+
*
|
|
618
|
+
* assignRef(refObject, "refValue");
|
|
619
|
+
* assignRef(refFn, "refValue");
|
|
620
|
+
*/
|
|
621
|
+
function assignRef(ref, value) {
|
|
622
|
+
if (typeof ref === 'function') {
|
|
623
|
+
ref(value);
|
|
624
|
+
}
|
|
625
|
+
else if (ref) {
|
|
626
|
+
ref.current = value;
|
|
627
|
+
}
|
|
628
|
+
return ref;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* creates a MutableRef with ref change callback
|
|
633
|
+
* @param initialValue - initial ref value
|
|
634
|
+
* @param {Function} callback - a callback to run when value changes
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
|
|
638
|
+
* ref.current = 1;
|
|
639
|
+
* // prints 0 -> 1
|
|
640
|
+
*
|
|
641
|
+
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
|
642
|
+
* @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
|
|
643
|
+
* @returns {MutableRefObject}
|
|
644
|
+
*/
|
|
645
|
+
function useCallbackRef(initialValue, callback) {
|
|
646
|
+
var ref = React.useState(function () { return ({
|
|
647
|
+
// value
|
|
648
|
+
value: initialValue,
|
|
649
|
+
// last callback
|
|
650
|
+
callback: callback,
|
|
651
|
+
// "memoized" public interface
|
|
652
|
+
facade: {
|
|
653
|
+
get current() {
|
|
654
|
+
return ref.value;
|
|
655
|
+
},
|
|
656
|
+
set current(value) {
|
|
657
|
+
var last = ref.value;
|
|
658
|
+
if (last !== value) {
|
|
659
|
+
ref.value = value;
|
|
660
|
+
ref.callback(value, last);
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
}); })[0];
|
|
665
|
+
// update callback
|
|
666
|
+
ref.callback = callback;
|
|
667
|
+
return ref.facade;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React__namespace.useLayoutEffect : React__namespace.useEffect;
|
|
671
|
+
var currentValues = new WeakMap();
|
|
672
|
+
/**
|
|
673
|
+
* Merges two or more refs together providing a single interface to set their value
|
|
674
|
+
* @param {RefObject|Ref} refs
|
|
675
|
+
* @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
|
|
676
|
+
*
|
|
677
|
+
* @see {@link mergeRefs} a version without buit-in memoization
|
|
678
|
+
* @see https://github.com/theKashey/use-callback-ref#usemergerefs
|
|
679
|
+
* @example
|
|
680
|
+
* const Component = React.forwardRef((props, ref) => {
|
|
681
|
+
* const ownRef = useRef();
|
|
682
|
+
* const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
|
|
683
|
+
* return <div ref={domRef}>...</div>
|
|
684
|
+
* }
|
|
685
|
+
*/
|
|
686
|
+
function useMergeRefs(refs, defaultValue) {
|
|
687
|
+
var callbackRef = useCallbackRef(null, function (newValue) {
|
|
688
|
+
return refs.forEach(function (ref) { return assignRef(ref, newValue); });
|
|
689
|
+
});
|
|
690
|
+
// handle refs changes - added or removed
|
|
691
|
+
useIsomorphicLayoutEffect(function () {
|
|
692
|
+
var oldValue = currentValues.get(callbackRef);
|
|
693
|
+
if (oldValue) {
|
|
694
|
+
var prevRefs_1 = new Set(oldValue);
|
|
695
|
+
var nextRefs_1 = new Set(refs);
|
|
696
|
+
var current_1 = callbackRef.current;
|
|
697
|
+
prevRefs_1.forEach(function (ref) {
|
|
698
|
+
if (!nextRefs_1.has(ref)) {
|
|
699
|
+
assignRef(ref, null);
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
nextRefs_1.forEach(function (ref) {
|
|
703
|
+
if (!prevRefs_1.has(ref)) {
|
|
704
|
+
assignRef(ref, current_1);
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
currentValues.set(callbackRef, refs);
|
|
709
|
+
}, [refs]);
|
|
710
|
+
return callbackRef;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
function ItoI(a) {
|
|
714
|
+
return a;
|
|
715
|
+
}
|
|
716
|
+
function innerCreateMedium(defaults, middleware) {
|
|
717
|
+
if (middleware === void 0) { middleware = ItoI; }
|
|
718
|
+
var buffer = [];
|
|
719
|
+
var assigned = false;
|
|
720
|
+
var medium = {
|
|
721
|
+
read: function () {
|
|
722
|
+
if (assigned) {
|
|
723
|
+
throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
|
|
724
|
+
}
|
|
725
|
+
if (buffer.length) {
|
|
726
|
+
return buffer[buffer.length - 1];
|
|
727
|
+
}
|
|
728
|
+
return defaults;
|
|
729
|
+
},
|
|
730
|
+
useMedium: function (data) {
|
|
731
|
+
var item = middleware(data, assigned);
|
|
732
|
+
buffer.push(item);
|
|
733
|
+
return function () {
|
|
734
|
+
buffer = buffer.filter(function (x) { return x !== item; });
|
|
735
|
+
};
|
|
736
|
+
},
|
|
737
|
+
assignSyncMedium: function (cb) {
|
|
738
|
+
assigned = true;
|
|
739
|
+
while (buffer.length) {
|
|
740
|
+
var cbs = buffer;
|
|
741
|
+
buffer = [];
|
|
742
|
+
cbs.forEach(cb);
|
|
743
|
+
}
|
|
744
|
+
buffer = {
|
|
745
|
+
push: function (x) { return cb(x); },
|
|
746
|
+
filter: function () { return buffer; },
|
|
747
|
+
};
|
|
748
|
+
},
|
|
749
|
+
assignMedium: function (cb) {
|
|
750
|
+
assigned = true;
|
|
751
|
+
var pendingQueue = [];
|
|
752
|
+
if (buffer.length) {
|
|
753
|
+
var cbs = buffer;
|
|
754
|
+
buffer = [];
|
|
755
|
+
cbs.forEach(cb);
|
|
756
|
+
pendingQueue = buffer;
|
|
757
|
+
}
|
|
758
|
+
var executeQueue = function () {
|
|
759
|
+
var cbs = pendingQueue;
|
|
760
|
+
pendingQueue = [];
|
|
761
|
+
cbs.forEach(cb);
|
|
762
|
+
};
|
|
763
|
+
var cycle = function () { return Promise.resolve().then(executeQueue); };
|
|
764
|
+
cycle();
|
|
765
|
+
buffer = {
|
|
766
|
+
push: function (x) {
|
|
767
|
+
pendingQueue.push(x);
|
|
768
|
+
cycle();
|
|
769
|
+
},
|
|
770
|
+
filter: function (filter) {
|
|
771
|
+
pendingQueue = pendingQueue.filter(filter);
|
|
772
|
+
return buffer;
|
|
773
|
+
},
|
|
774
|
+
};
|
|
775
|
+
},
|
|
776
|
+
};
|
|
777
|
+
return medium;
|
|
778
|
+
}
|
|
779
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
780
|
+
function createSidecarMedium(options) {
|
|
781
|
+
if (options === void 0) { options = {}; }
|
|
782
|
+
var medium = innerCreateMedium(null);
|
|
783
|
+
medium.options = filterAttrs.__assign({ async: true, ssr: false }, options);
|
|
784
|
+
return medium;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
var SideCar$1 = function (_a) {
|
|
788
|
+
var sideCar = _a.sideCar, rest = filterAttrs.__rest(_a, ["sideCar"]);
|
|
789
|
+
if (!sideCar) {
|
|
790
|
+
throw new Error('Sidecar: please provide `sideCar` property to import the right car');
|
|
791
|
+
}
|
|
792
|
+
var Target = sideCar.read();
|
|
793
|
+
if (!Target) {
|
|
794
|
+
throw new Error('Sidecar medium not found');
|
|
795
|
+
}
|
|
796
|
+
return React__namespace.createElement(Target, filterAttrs.__assign({}, rest));
|
|
797
|
+
};
|
|
798
|
+
SideCar$1.isSideCarExport = true;
|
|
799
|
+
function exportSidecar(medium, exported) {
|
|
800
|
+
medium.useMedium(exported);
|
|
801
|
+
return SideCar$1;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
var effectCar = createSidecarMedium();
|
|
805
|
+
|
|
806
|
+
var nothing = function () {
|
|
807
|
+
return;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* Removes scrollbar from the page and contain the scroll within the Lock
|
|
811
|
+
*/
|
|
812
|
+
var RemoveScroll = React__namespace.forwardRef(function (props, parentRef) {
|
|
813
|
+
var ref = React__namespace.useRef(null);
|
|
814
|
+
var _a = React__namespace.useState({
|
|
815
|
+
onScrollCapture: nothing,
|
|
816
|
+
onWheelCapture: nothing,
|
|
817
|
+
onTouchMoveCapture: nothing,
|
|
818
|
+
}), callbacks = _a[0], setCallbacks = _a[1];
|
|
819
|
+
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = filterAttrs.__rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
820
|
+
var SideCar = sideCar;
|
|
821
|
+
var containerRef = useMergeRefs([ref, parentRef]);
|
|
822
|
+
var containerProps = filterAttrs.__assign(filterAttrs.__assign({}, rest), callbacks);
|
|
823
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
824
|
+
enabled && (React__namespace.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
|
|
825
|
+
forwardProps ? (React__namespace.cloneElement(React__namespace.Children.only(children), filterAttrs.__assign(filterAttrs.__assign({}, containerProps), { ref: containerRef }))) : (React__namespace.createElement(Container, filterAttrs.__assign({}, containerProps, { className: className, ref: containerRef }), children))));
|
|
826
|
+
});
|
|
827
|
+
RemoveScroll.defaultProps = {
|
|
828
|
+
enabled: true,
|
|
829
|
+
removeScrollBar: true,
|
|
830
|
+
inert: false,
|
|
831
|
+
};
|
|
832
|
+
RemoveScroll.classNames = {
|
|
833
|
+
fullWidth: fullWidthClassName,
|
|
834
|
+
zeroRight: zeroRightClassName,
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
function makeStyleTag() {
|
|
838
|
+
if (!document)
|
|
839
|
+
return null;
|
|
840
|
+
var tag = document.createElement('style');
|
|
841
|
+
tag.type = 'text/css';
|
|
842
|
+
var nonce = index$1.getNonce();
|
|
843
|
+
if (nonce) {
|
|
844
|
+
tag.setAttribute('nonce', nonce);
|
|
845
|
+
}
|
|
846
|
+
return tag;
|
|
847
|
+
}
|
|
848
|
+
function injectStyles(tag, css) {
|
|
849
|
+
// @ts-ignore
|
|
850
|
+
if (tag.styleSheet) {
|
|
851
|
+
// @ts-ignore
|
|
852
|
+
tag.styleSheet.cssText = css;
|
|
853
|
+
}
|
|
854
|
+
else {
|
|
855
|
+
tag.appendChild(document.createTextNode(css));
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
function insertStyleTag(tag) {
|
|
859
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
860
|
+
head.appendChild(tag);
|
|
861
|
+
}
|
|
862
|
+
var stylesheetSingleton = function () {
|
|
863
|
+
var counter = 0;
|
|
864
|
+
var stylesheet = null;
|
|
865
|
+
return {
|
|
866
|
+
add: function (style) {
|
|
867
|
+
if (counter == 0) {
|
|
868
|
+
if ((stylesheet = makeStyleTag())) {
|
|
869
|
+
injectStyles(stylesheet, style);
|
|
870
|
+
insertStyleTag(stylesheet);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
counter++;
|
|
874
|
+
},
|
|
875
|
+
remove: function () {
|
|
876
|
+
counter--;
|
|
877
|
+
if (!counter && stylesheet) {
|
|
878
|
+
stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
|
|
879
|
+
stylesheet = null;
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* creates a hook to control style singleton
|
|
887
|
+
* @see {@link styleSingleton} for a safer component version
|
|
888
|
+
* @example
|
|
889
|
+
* ```tsx
|
|
890
|
+
* const useStyle = styleHookSingleton();
|
|
891
|
+
* ///
|
|
892
|
+
* useStyle('body { overflow: hidden}');
|
|
893
|
+
*/
|
|
894
|
+
var styleHookSingleton = function () {
|
|
895
|
+
var sheet = stylesheetSingleton();
|
|
896
|
+
return function (styles, isDynamic) {
|
|
897
|
+
React__namespace.useEffect(function () {
|
|
898
|
+
sheet.add(styles);
|
|
899
|
+
return function () {
|
|
900
|
+
sheet.remove();
|
|
901
|
+
};
|
|
902
|
+
}, [styles && isDynamic]);
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* create a Component to add styles on demand
|
|
908
|
+
* - styles are added when first instance is mounted
|
|
909
|
+
* - styles are removed when the last instance is unmounted
|
|
910
|
+
* - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
|
|
911
|
+
*/
|
|
912
|
+
var styleSingleton = function () {
|
|
913
|
+
var useStyle = styleHookSingleton();
|
|
914
|
+
var Sheet = function (_a) {
|
|
915
|
+
var styles = _a.styles, dynamic = _a.dynamic;
|
|
916
|
+
useStyle(styles, dynamic);
|
|
917
|
+
return null;
|
|
918
|
+
};
|
|
919
|
+
return Sheet;
|
|
920
|
+
};
|
|
921
|
+
|
|
922
|
+
var zeroGap = {
|
|
923
|
+
left: 0,
|
|
924
|
+
top: 0,
|
|
925
|
+
right: 0,
|
|
926
|
+
gap: 0,
|
|
927
|
+
};
|
|
928
|
+
var parse = function (x) { return parseInt(x || '', 10) || 0; };
|
|
929
|
+
var getOffset = function (gapMode) {
|
|
930
|
+
var cs = window.getComputedStyle(document.body);
|
|
931
|
+
var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
|
|
932
|
+
var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
|
|
933
|
+
var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
|
|
934
|
+
return [parse(left), parse(top), parse(right)];
|
|
935
|
+
};
|
|
936
|
+
var getGapWidth = function (gapMode) {
|
|
937
|
+
if (gapMode === void 0) { gapMode = 'margin'; }
|
|
938
|
+
if (typeof window === 'undefined') {
|
|
939
|
+
return zeroGap;
|
|
940
|
+
}
|
|
941
|
+
var offsets = getOffset(gapMode);
|
|
942
|
+
var documentWidth = document.documentElement.clientWidth;
|
|
943
|
+
var windowWidth = window.innerWidth;
|
|
944
|
+
return {
|
|
945
|
+
left: offsets[0],
|
|
946
|
+
top: offsets[1],
|
|
947
|
+
right: offsets[2],
|
|
948
|
+
gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
var Style = styleSingleton();
|
|
953
|
+
var lockAttribute = 'data-scroll-locked';
|
|
954
|
+
// important tip - once we measure scrollBar width and remove them
|
|
955
|
+
// we could not repeat this operation
|
|
956
|
+
// thus we are using style-singleton - only the first "yet correct" style will be applied.
|
|
957
|
+
var getStyles = function (_a, allowRelative, gapMode, important) {
|
|
958
|
+
var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
|
|
959
|
+
if (gapMode === void 0) { gapMode = 'margin'; }
|
|
960
|
+
return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
|
|
961
|
+
allowRelative && "position: relative ".concat(important, ";"),
|
|
962
|
+
gapMode === 'margin' &&
|
|
963
|
+
"\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
|
|
964
|
+
gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
|
|
965
|
+
]
|
|
966
|
+
.filter(Boolean)
|
|
967
|
+
.join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
|
|
968
|
+
};
|
|
969
|
+
var getCurrentUseCounter = function () {
|
|
970
|
+
var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
|
|
971
|
+
return isFinite(counter) ? counter : 0;
|
|
972
|
+
};
|
|
973
|
+
var useLockAttribute = function () {
|
|
974
|
+
React__namespace.useEffect(function () {
|
|
975
|
+
document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
|
|
976
|
+
return function () {
|
|
977
|
+
var newCounter = getCurrentUseCounter() - 1;
|
|
978
|
+
if (newCounter <= 0) {
|
|
979
|
+
document.body.removeAttribute(lockAttribute);
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
document.body.setAttribute(lockAttribute, newCounter.toString());
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
}, []);
|
|
986
|
+
};
|
|
987
|
+
/**
|
|
988
|
+
* Removes page scrollbar and blocks page scroll when mounted
|
|
989
|
+
*/
|
|
990
|
+
var RemoveScrollBar = function (_a) {
|
|
991
|
+
var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
|
|
992
|
+
useLockAttribute();
|
|
993
|
+
/*
|
|
994
|
+
gap will be measured on every component mount
|
|
995
|
+
however it will be used only by the "first" invocation
|
|
996
|
+
due to singleton nature of <Style
|
|
997
|
+
*/
|
|
998
|
+
var gap = React__namespace.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
|
|
999
|
+
return React__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
var passiveSupported = false;
|
|
1003
|
+
if (typeof window !== 'undefined') {
|
|
1004
|
+
try {
|
|
1005
|
+
var options = Object.defineProperty({}, 'passive', {
|
|
1006
|
+
get: function () {
|
|
1007
|
+
passiveSupported = true;
|
|
1008
|
+
return true;
|
|
1009
|
+
},
|
|
1010
|
+
});
|
|
1011
|
+
// @ts-ignore
|
|
1012
|
+
window.addEventListener('test', options, options);
|
|
1013
|
+
// @ts-ignore
|
|
1014
|
+
window.removeEventListener('test', options, options);
|
|
1015
|
+
}
|
|
1016
|
+
catch (err) {
|
|
1017
|
+
passiveSupported = false;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
1021
|
+
|
|
1022
|
+
var alwaysContainsScroll = function (node) {
|
|
1023
|
+
// textarea will always _contain_ scroll inside self. It only can be hidden
|
|
1024
|
+
return node.tagName === 'TEXTAREA';
|
|
1025
|
+
};
|
|
1026
|
+
var elementCanBeScrolled = function (node, overflow) {
|
|
1027
|
+
if (!(node instanceof Element)) {
|
|
1028
|
+
return false;
|
|
1029
|
+
}
|
|
1030
|
+
var styles = window.getComputedStyle(node);
|
|
1031
|
+
return (
|
|
1032
|
+
// not-not-scrollable
|
|
1033
|
+
styles[overflow] !== 'hidden' &&
|
|
1034
|
+
// contains scroll inside self
|
|
1035
|
+
!(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
|
|
1036
|
+
};
|
|
1037
|
+
var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
|
|
1038
|
+
var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
|
|
1039
|
+
var locationCouldBeScrolled = function (axis, node) {
|
|
1040
|
+
var ownerDocument = node.ownerDocument;
|
|
1041
|
+
var current = node;
|
|
1042
|
+
do {
|
|
1043
|
+
// Skip over shadow root
|
|
1044
|
+
if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
|
|
1045
|
+
current = current.host;
|
|
1046
|
+
}
|
|
1047
|
+
var isScrollable = elementCouldBeScrolled(axis, current);
|
|
1048
|
+
if (isScrollable) {
|
|
1049
|
+
var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
|
|
1050
|
+
if (scrollHeight > clientHeight) {
|
|
1051
|
+
return true;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
current = current.parentNode;
|
|
1055
|
+
} while (current && current !== ownerDocument.body);
|
|
1056
|
+
return false;
|
|
1057
|
+
};
|
|
1058
|
+
var getVScrollVariables = function (_a) {
|
|
1059
|
+
var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
|
|
1060
|
+
return [
|
|
1061
|
+
scrollTop,
|
|
1062
|
+
scrollHeight,
|
|
1063
|
+
clientHeight,
|
|
1064
|
+
];
|
|
1065
|
+
};
|
|
1066
|
+
var getHScrollVariables = function (_a) {
|
|
1067
|
+
var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
|
|
1068
|
+
return [
|
|
1069
|
+
scrollLeft,
|
|
1070
|
+
scrollWidth,
|
|
1071
|
+
clientWidth,
|
|
1072
|
+
];
|
|
1073
|
+
};
|
|
1074
|
+
var elementCouldBeScrolled = function (axis, node) {
|
|
1075
|
+
return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
|
|
1076
|
+
};
|
|
1077
|
+
var getScrollVariables = function (axis, node) {
|
|
1078
|
+
return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
|
|
1079
|
+
};
|
|
1080
|
+
var getDirectionFactor = function (axis, direction) {
|
|
1081
|
+
/**
|
|
1082
|
+
* If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
|
|
1083
|
+
* and then increasingly negative as you scroll towards the end of the content.
|
|
1084
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
|
|
1085
|
+
*/
|
|
1086
|
+
return axis === 'h' && direction === 'rtl' ? -1 : 1;
|
|
1087
|
+
};
|
|
1088
|
+
var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
1089
|
+
var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
|
|
1090
|
+
var delta = directionFactor * sourceDelta;
|
|
1091
|
+
// find scrollable target
|
|
1092
|
+
var target = event.target;
|
|
1093
|
+
var targetInLock = endTarget.contains(target);
|
|
1094
|
+
var shouldCancelScroll = false;
|
|
1095
|
+
var isDeltaPositive = delta > 0;
|
|
1096
|
+
var availableScroll = 0;
|
|
1097
|
+
var availableScrollTop = 0;
|
|
1098
|
+
do {
|
|
1099
|
+
var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
|
|
1100
|
+
var elementScroll = scroll_1 - capacity - directionFactor * position;
|
|
1101
|
+
if (position || elementScroll) {
|
|
1102
|
+
if (elementCouldBeScrolled(axis, target)) {
|
|
1103
|
+
availableScroll += elementScroll;
|
|
1104
|
+
availableScrollTop += position;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
if (target instanceof ShadowRoot) {
|
|
1108
|
+
target = target.host;
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1111
|
+
target = target.parentNode;
|
|
1112
|
+
}
|
|
1113
|
+
} while (
|
|
1114
|
+
// portaled content
|
|
1115
|
+
(!targetInLock && target !== document.body) ||
|
|
1116
|
+
// self content
|
|
1117
|
+
(targetInLock && (endTarget.contains(target) || endTarget === target)));
|
|
1118
|
+
// handle epsilon around 0 (non standard zoom levels)
|
|
1119
|
+
if (isDeltaPositive &&
|
|
1120
|
+
((Math.abs(availableScroll) < 1) || (!noOverscroll))) {
|
|
1121
|
+
shouldCancelScroll = true;
|
|
1122
|
+
}
|
|
1123
|
+
else if (!isDeltaPositive &&
|
|
1124
|
+
((Math.abs(availableScrollTop) < 1) || (!noOverscroll))) {
|
|
1125
|
+
shouldCancelScroll = true;
|
|
1126
|
+
}
|
|
1127
|
+
return shouldCancelScroll;
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
var getTouchXY = function (event) {
|
|
1131
|
+
return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
1132
|
+
};
|
|
1133
|
+
var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
|
|
1134
|
+
var extractRef = function (ref) {
|
|
1135
|
+
return ref && 'current' in ref ? ref.current : ref;
|
|
1136
|
+
};
|
|
1137
|
+
var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
|
|
1138
|
+
var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
|
|
1139
|
+
var idCounter = 0;
|
|
1140
|
+
var lockStack = [];
|
|
1141
|
+
function RemoveScrollSideCar(props) {
|
|
1142
|
+
var shouldPreventQueue = React__namespace.useRef([]);
|
|
1143
|
+
var touchStartRef = React__namespace.useRef([0, 0]);
|
|
1144
|
+
var activeAxis = React__namespace.useRef();
|
|
1145
|
+
var id = React__namespace.useState(idCounter++)[0];
|
|
1146
|
+
var Style = React__namespace.useState(styleSingleton)[0];
|
|
1147
|
+
var lastProps = React__namespace.useRef(props);
|
|
1148
|
+
React__namespace.useEffect(function () {
|
|
1149
|
+
lastProps.current = props;
|
|
1150
|
+
}, [props]);
|
|
1151
|
+
React__namespace.useEffect(function () {
|
|
1152
|
+
if (props.inert) {
|
|
1153
|
+
document.body.classList.add("block-interactivity-".concat(id));
|
|
1154
|
+
var allow_1 = filterAttrs.__spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
1155
|
+
allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
|
|
1156
|
+
return function () {
|
|
1157
|
+
document.body.classList.remove("block-interactivity-".concat(id));
|
|
1158
|
+
allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
return;
|
|
1162
|
+
}, [props.inert, props.lockRef.current, props.shards]);
|
|
1163
|
+
var shouldCancelEvent = React__namespace.useCallback(function (event, parent) {
|
|
1164
|
+
if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {
|
|
1165
|
+
return !lastProps.current.allowPinchZoom;
|
|
1166
|
+
}
|
|
1167
|
+
var touch = getTouchXY(event);
|
|
1168
|
+
var touchStart = touchStartRef.current;
|
|
1169
|
+
var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
|
|
1170
|
+
var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
|
|
1171
|
+
var currentAxis;
|
|
1172
|
+
var target = event.target;
|
|
1173
|
+
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
|
|
1174
|
+
// allow horizontal touch move on Range inputs. They will not cause any scroll
|
|
1175
|
+
if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
|
|
1176
|
+
return false;
|
|
1177
|
+
}
|
|
1178
|
+
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
1179
|
+
if (!canBeScrolledInMainDirection) {
|
|
1180
|
+
return true;
|
|
1181
|
+
}
|
|
1182
|
+
if (canBeScrolledInMainDirection) {
|
|
1183
|
+
currentAxis = moveDirection;
|
|
1184
|
+
}
|
|
1185
|
+
else {
|
|
1186
|
+
currentAxis = moveDirection === 'v' ? 'h' : 'v';
|
|
1187
|
+
canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
1188
|
+
// other axis might be not scrollable
|
|
1189
|
+
}
|
|
1190
|
+
if (!canBeScrolledInMainDirection) {
|
|
1191
|
+
return false;
|
|
1192
|
+
}
|
|
1193
|
+
if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
|
|
1194
|
+
activeAxis.current = currentAxis;
|
|
1195
|
+
}
|
|
1196
|
+
if (!currentAxis) {
|
|
1197
|
+
return true;
|
|
1198
|
+
}
|
|
1199
|
+
var cancelingAxis = activeAxis.current || currentAxis;
|
|
1200
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
|
|
1201
|
+
}, []);
|
|
1202
|
+
var shouldPrevent = React__namespace.useCallback(function (_event) {
|
|
1203
|
+
var event = _event;
|
|
1204
|
+
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
|
|
1205
|
+
// not the last active
|
|
1206
|
+
return;
|
|
1207
|
+
}
|
|
1208
|
+
var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
|
|
1209
|
+
var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];
|
|
1210
|
+
// self event, and should be canceled
|
|
1211
|
+
if (sourceEvent && sourceEvent.should) {
|
|
1212
|
+
if (event.cancelable) {
|
|
1213
|
+
event.preventDefault();
|
|
1214
|
+
}
|
|
1215
|
+
return;
|
|
1216
|
+
}
|
|
1217
|
+
// outside or shard event
|
|
1218
|
+
if (!sourceEvent) {
|
|
1219
|
+
var shardNodes = (lastProps.current.shards || [])
|
|
1220
|
+
.map(extractRef)
|
|
1221
|
+
.filter(Boolean)
|
|
1222
|
+
.filter(function (node) { return node.contains(event.target); });
|
|
1223
|
+
var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
|
|
1224
|
+
if (shouldStop) {
|
|
1225
|
+
if (event.cancelable) {
|
|
1226
|
+
event.preventDefault();
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}, []);
|
|
1231
|
+
var shouldCancel = React__namespace.useCallback(function (name, delta, target, should) {
|
|
1232
|
+
var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };
|
|
1233
|
+
shouldPreventQueue.current.push(event);
|
|
1234
|
+
setTimeout(function () {
|
|
1235
|
+
shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
|
|
1236
|
+
}, 1);
|
|
1237
|
+
}, []);
|
|
1238
|
+
var scrollTouchStart = React__namespace.useCallback(function (event) {
|
|
1239
|
+
touchStartRef.current = getTouchXY(event);
|
|
1240
|
+
activeAxis.current = undefined;
|
|
1241
|
+
}, []);
|
|
1242
|
+
var scrollWheel = React__namespace.useCallback(function (event) {
|
|
1243
|
+
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
1244
|
+
}, []);
|
|
1245
|
+
var scrollTouchMove = React__namespace.useCallback(function (event) {
|
|
1246
|
+
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
1247
|
+
}, []);
|
|
1248
|
+
React__namespace.useEffect(function () {
|
|
1249
|
+
lockStack.push(Style);
|
|
1250
|
+
props.setCallbacks({
|
|
1251
|
+
onScrollCapture: scrollWheel,
|
|
1252
|
+
onWheelCapture: scrollWheel,
|
|
1253
|
+
onTouchMoveCapture: scrollTouchMove,
|
|
1254
|
+
});
|
|
1255
|
+
document.addEventListener('wheel', shouldPrevent, nonPassive);
|
|
1256
|
+
document.addEventListener('touchmove', shouldPrevent, nonPassive);
|
|
1257
|
+
document.addEventListener('touchstart', scrollTouchStart, nonPassive);
|
|
1258
|
+
return function () {
|
|
1259
|
+
lockStack = lockStack.filter(function (inst) { return inst !== Style; });
|
|
1260
|
+
document.removeEventListener('wheel', shouldPrevent, nonPassive);
|
|
1261
|
+
document.removeEventListener('touchmove', shouldPrevent, nonPassive);
|
|
1262
|
+
document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
|
|
1263
|
+
};
|
|
1264
|
+
}, []);
|
|
1265
|
+
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
1266
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1267
|
+
inert ? React__namespace.createElement(Style, { styles: generateStyle(id) }) : null,
|
|
1268
|
+
removeScrollBar ? React__namespace.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));
|
|
1269
|
+
}
|
|
1270
|
+
function getOutermostShadowParent(node) {
|
|
1271
|
+
var shadowParent = null;
|
|
1272
|
+
while (node !== null) {
|
|
1273
|
+
if (node instanceof ShadowRoot) {
|
|
1274
|
+
shadowParent = node.host;
|
|
1275
|
+
node = node.host;
|
|
1276
|
+
}
|
|
1277
|
+
node = node.parentNode;
|
|
1278
|
+
}
|
|
1279
|
+
return shadowParent;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
1283
|
+
|
|
1284
|
+
var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(RemoveScroll, filterAttrs.__assign({}, props, { ref: ref, sideCar: SideCar }))); });
|
|
1285
|
+
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
1286
|
+
|
|
1287
|
+
exports.DismissableLayer = DismissableLayer;
|
|
1288
|
+
exports.FocusScope = FocusScope;
|
|
1289
|
+
exports.Portal = Portal;
|
|
1290
|
+
exports.Primitive = Primitive;
|
|
1291
|
+
exports.ReactRemoveScroll = ReactRemoveScroll;
|
|
1292
|
+
exports.Slot = Slot;
|
|
1293
|
+
exports.composeEventHandlers = composeEventHandlers;
|
|
1294
|
+
exports.useComposedRefs = useComposedRefs;
|