@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,1900 @@
|
|
|
1
|
+
import React__default, { useRef, useState, useCallback, useEffect, useId } from 'react';
|
|
2
|
+
import { c as classNames } from '../_shared/esm/index-5C0-U8cc.mjs';
|
|
3
|
+
import { a as __assign } from '../_shared/esm/filter-attrs-B6CM-NUr.mjs';
|
|
4
|
+
import { u as useMediaQuery } from '../_shared/esm/use-media-query-DmKuIDEM.mjs';
|
|
5
|
+
import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-CN_Ed5b1.mjs';
|
|
6
|
+
import { e as ArcSizeBreakpointsXs, a as ArcSizeBreakpointsS, A as ArcSizeBreakpointsM, d as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl } from '../_shared/esm/index.es-C7HkLzRN.mjs';
|
|
7
|
+
import { K as KeyNames } from '../_shared/esm/keynames-B5whqsjh.mjs';
|
|
8
|
+
import '../_shared/esm/suffix-modifier-B_pO0UkF.mjs';
|
|
9
|
+
import '../_shared/esm/index-Spae4j7j.mjs';
|
|
10
|
+
import '../_shared/esm/Surface-Colbp3Zx.mjs';
|
|
11
|
+
|
|
12
|
+
function isObject$1(subject) {
|
|
13
|
+
return Object.prototype.toString.call(subject) === '[object Object]';
|
|
14
|
+
}
|
|
15
|
+
function isRecord(subject) {
|
|
16
|
+
return isObject$1(subject) || Array.isArray(subject);
|
|
17
|
+
}
|
|
18
|
+
function canUseDOM() {
|
|
19
|
+
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
20
|
+
}
|
|
21
|
+
function areOptionsEqual(optionsA, optionsB) {
|
|
22
|
+
const optionsAKeys = Object.keys(optionsA);
|
|
23
|
+
const optionsBKeys = Object.keys(optionsB);
|
|
24
|
+
if (optionsAKeys.length !== optionsBKeys.length) return false;
|
|
25
|
+
const breakpointsA = JSON.stringify(Object.keys(optionsA.breakpoints || {}));
|
|
26
|
+
const breakpointsB = JSON.stringify(Object.keys(optionsB.breakpoints || {}));
|
|
27
|
+
if (breakpointsA !== breakpointsB) return false;
|
|
28
|
+
return optionsAKeys.every(key => {
|
|
29
|
+
const valueA = optionsA[key];
|
|
30
|
+
const valueB = optionsB[key];
|
|
31
|
+
if (typeof valueA === 'function') return `${valueA}` === `${valueB}`;
|
|
32
|
+
if (!isRecord(valueA) || !isRecord(valueB)) return valueA === valueB;
|
|
33
|
+
return areOptionsEqual(valueA, valueB);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function sortAndMapPluginToOptions(plugins) {
|
|
37
|
+
return plugins.concat().sort((a, b) => a.name > b.name ? 1 : -1).map(plugin => plugin.options);
|
|
38
|
+
}
|
|
39
|
+
function arePluginsEqual(pluginsA, pluginsB) {
|
|
40
|
+
if (pluginsA.length !== pluginsB.length) return false;
|
|
41
|
+
const optionsA = sortAndMapPluginToOptions(pluginsA);
|
|
42
|
+
const optionsB = sortAndMapPluginToOptions(pluginsB);
|
|
43
|
+
return optionsA.every((optionA, index) => {
|
|
44
|
+
const optionB = optionsB[index];
|
|
45
|
+
return areOptionsEqual(optionA, optionB);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function isNumber(subject) {
|
|
50
|
+
return typeof subject === 'number';
|
|
51
|
+
}
|
|
52
|
+
function isString(subject) {
|
|
53
|
+
return typeof subject === 'string';
|
|
54
|
+
}
|
|
55
|
+
function isBoolean(subject) {
|
|
56
|
+
return typeof subject === 'boolean';
|
|
57
|
+
}
|
|
58
|
+
function isObject(subject) {
|
|
59
|
+
return Object.prototype.toString.call(subject) === '[object Object]';
|
|
60
|
+
}
|
|
61
|
+
function mathAbs(n) {
|
|
62
|
+
return Math.abs(n);
|
|
63
|
+
}
|
|
64
|
+
function mathSign(n) {
|
|
65
|
+
return Math.sign(n);
|
|
66
|
+
}
|
|
67
|
+
function deltaAbs(valueB, valueA) {
|
|
68
|
+
return mathAbs(valueB - valueA);
|
|
69
|
+
}
|
|
70
|
+
function factorAbs(valueB, valueA) {
|
|
71
|
+
if (valueB === 0 || valueA === 0) return 0;
|
|
72
|
+
if (mathAbs(valueB) <= mathAbs(valueA)) return 0;
|
|
73
|
+
const diff = deltaAbs(mathAbs(valueB), mathAbs(valueA));
|
|
74
|
+
return mathAbs(diff / valueB);
|
|
75
|
+
}
|
|
76
|
+
function arrayKeys(array) {
|
|
77
|
+
return objectKeys(array).map(Number);
|
|
78
|
+
}
|
|
79
|
+
function arrayLast(array) {
|
|
80
|
+
return array[arrayLastIndex(array)];
|
|
81
|
+
}
|
|
82
|
+
function arrayLastIndex(array) {
|
|
83
|
+
return Math.max(0, array.length - 1);
|
|
84
|
+
}
|
|
85
|
+
function arrayIsLastIndex(array, index) {
|
|
86
|
+
return index === arrayLastIndex(array);
|
|
87
|
+
}
|
|
88
|
+
function arrayFromNumber(n, startAt = 0) {
|
|
89
|
+
return Array.from(Array(n), (_, i) => startAt + i);
|
|
90
|
+
}
|
|
91
|
+
function objectKeys(object) {
|
|
92
|
+
return Object.keys(object);
|
|
93
|
+
}
|
|
94
|
+
function objectsMergeDeep(objectA, objectB) {
|
|
95
|
+
return [objectA, objectB].reduce((mergedObjects, currentObject) => {
|
|
96
|
+
objectKeys(currentObject).forEach(key => {
|
|
97
|
+
const valueA = mergedObjects[key];
|
|
98
|
+
const valueB = currentObject[key];
|
|
99
|
+
const areObjects = isObject(valueA) && isObject(valueB);
|
|
100
|
+
mergedObjects[key] = areObjects ? objectsMergeDeep(valueA, valueB) : valueB;
|
|
101
|
+
});
|
|
102
|
+
return mergedObjects;
|
|
103
|
+
}, {});
|
|
104
|
+
}
|
|
105
|
+
function isMouseEvent(evt, ownerWindow) {
|
|
106
|
+
return typeof ownerWindow.MouseEvent !== 'undefined' && evt instanceof ownerWindow.MouseEvent;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function Alignment(align, viewSize) {
|
|
110
|
+
const predefined = {
|
|
111
|
+
start,
|
|
112
|
+
center,
|
|
113
|
+
end
|
|
114
|
+
};
|
|
115
|
+
function start() {
|
|
116
|
+
return 0;
|
|
117
|
+
}
|
|
118
|
+
function center(n) {
|
|
119
|
+
return end(n) / 2;
|
|
120
|
+
}
|
|
121
|
+
function end(n) {
|
|
122
|
+
return viewSize - n;
|
|
123
|
+
}
|
|
124
|
+
function measure(n, index) {
|
|
125
|
+
if (isString(align)) return predefined[align](n);
|
|
126
|
+
return align(viewSize, n, index);
|
|
127
|
+
}
|
|
128
|
+
const self = {
|
|
129
|
+
measure
|
|
130
|
+
};
|
|
131
|
+
return self;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function EventStore() {
|
|
135
|
+
let listeners = [];
|
|
136
|
+
function add(node, type, handler, options = {
|
|
137
|
+
passive: true
|
|
138
|
+
}) {
|
|
139
|
+
let removeListener;
|
|
140
|
+
if ('addEventListener' in node) {
|
|
141
|
+
node.addEventListener(type, handler, options);
|
|
142
|
+
removeListener = () => node.removeEventListener(type, handler, options);
|
|
143
|
+
} else {
|
|
144
|
+
const legacyMediaQueryList = node;
|
|
145
|
+
legacyMediaQueryList.addListener(handler);
|
|
146
|
+
removeListener = () => legacyMediaQueryList.removeListener(handler);
|
|
147
|
+
}
|
|
148
|
+
listeners.push(removeListener);
|
|
149
|
+
return self;
|
|
150
|
+
}
|
|
151
|
+
function clear() {
|
|
152
|
+
listeners = listeners.filter(remove => remove());
|
|
153
|
+
}
|
|
154
|
+
const self = {
|
|
155
|
+
add,
|
|
156
|
+
clear
|
|
157
|
+
};
|
|
158
|
+
return self;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function Animations(ownerDocument, ownerWindow, update, render) {
|
|
162
|
+
const documentVisibleHandler = EventStore();
|
|
163
|
+
const timeStep = 1000 / 60;
|
|
164
|
+
let lastTimeStamp = null;
|
|
165
|
+
let lag = 0;
|
|
166
|
+
let animationFrame = 0;
|
|
167
|
+
function init() {
|
|
168
|
+
documentVisibleHandler.add(ownerDocument, 'visibilitychange', () => {
|
|
169
|
+
if (ownerDocument.hidden) reset();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function destroy() {
|
|
173
|
+
stop();
|
|
174
|
+
documentVisibleHandler.clear();
|
|
175
|
+
}
|
|
176
|
+
function animate(timeStamp) {
|
|
177
|
+
if (!animationFrame) return;
|
|
178
|
+
if (!lastTimeStamp) lastTimeStamp = timeStamp;
|
|
179
|
+
const elapsed = timeStamp - lastTimeStamp;
|
|
180
|
+
lastTimeStamp = timeStamp;
|
|
181
|
+
lag += elapsed;
|
|
182
|
+
while (lag >= timeStep) {
|
|
183
|
+
update(timeStep);
|
|
184
|
+
lag -= timeStep;
|
|
185
|
+
}
|
|
186
|
+
const lagOffset = lag / timeStep;
|
|
187
|
+
render(lagOffset);
|
|
188
|
+
if (animationFrame) ownerWindow.requestAnimationFrame(animate);
|
|
189
|
+
}
|
|
190
|
+
function start() {
|
|
191
|
+
if (animationFrame) return;
|
|
192
|
+
animationFrame = ownerWindow.requestAnimationFrame(animate);
|
|
193
|
+
}
|
|
194
|
+
function stop() {
|
|
195
|
+
ownerWindow.cancelAnimationFrame(animationFrame);
|
|
196
|
+
lastTimeStamp = null;
|
|
197
|
+
lag = 0;
|
|
198
|
+
animationFrame = 0;
|
|
199
|
+
}
|
|
200
|
+
function reset() {
|
|
201
|
+
lastTimeStamp = null;
|
|
202
|
+
lag = 0;
|
|
203
|
+
}
|
|
204
|
+
const self = {
|
|
205
|
+
init,
|
|
206
|
+
destroy,
|
|
207
|
+
start,
|
|
208
|
+
stop,
|
|
209
|
+
update: () => update(timeStep),
|
|
210
|
+
render
|
|
211
|
+
};
|
|
212
|
+
return self;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function Axis(axis, contentDirection) {
|
|
216
|
+
const isRightToLeft = contentDirection === 'rtl';
|
|
217
|
+
const isVertical = axis === 'y';
|
|
218
|
+
const scroll = isVertical ? 'y' : 'x';
|
|
219
|
+
const cross = isVertical ? 'x' : 'y';
|
|
220
|
+
const sign = !isVertical && isRightToLeft ? -1 : 1;
|
|
221
|
+
const startEdge = getStartEdge();
|
|
222
|
+
const endEdge = getEndEdge();
|
|
223
|
+
function measureSize(nodeRect) {
|
|
224
|
+
const {
|
|
225
|
+
height,
|
|
226
|
+
width
|
|
227
|
+
} = nodeRect;
|
|
228
|
+
return isVertical ? height : width;
|
|
229
|
+
}
|
|
230
|
+
function getStartEdge() {
|
|
231
|
+
if (isVertical) return 'top';
|
|
232
|
+
return isRightToLeft ? 'right' : 'left';
|
|
233
|
+
}
|
|
234
|
+
function getEndEdge() {
|
|
235
|
+
if (isVertical) return 'bottom';
|
|
236
|
+
return isRightToLeft ? 'left' : 'right';
|
|
237
|
+
}
|
|
238
|
+
function direction(n) {
|
|
239
|
+
return n * sign;
|
|
240
|
+
}
|
|
241
|
+
const self = {
|
|
242
|
+
scroll,
|
|
243
|
+
cross,
|
|
244
|
+
startEdge,
|
|
245
|
+
endEdge,
|
|
246
|
+
measureSize,
|
|
247
|
+
direction
|
|
248
|
+
};
|
|
249
|
+
return self;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function Limit(min = 0, max = 0) {
|
|
253
|
+
const length = mathAbs(min - max);
|
|
254
|
+
function reachedMin(n) {
|
|
255
|
+
return n < min;
|
|
256
|
+
}
|
|
257
|
+
function reachedMax(n) {
|
|
258
|
+
return n > max;
|
|
259
|
+
}
|
|
260
|
+
function reachedAny(n) {
|
|
261
|
+
return reachedMin(n) || reachedMax(n);
|
|
262
|
+
}
|
|
263
|
+
function constrain(n) {
|
|
264
|
+
if (!reachedAny(n)) return n;
|
|
265
|
+
return reachedMin(n) ? min : max;
|
|
266
|
+
}
|
|
267
|
+
function removeOffset(n) {
|
|
268
|
+
if (!length) return n;
|
|
269
|
+
return n - length * Math.ceil((n - max) / length);
|
|
270
|
+
}
|
|
271
|
+
const self = {
|
|
272
|
+
length,
|
|
273
|
+
max,
|
|
274
|
+
min,
|
|
275
|
+
constrain,
|
|
276
|
+
reachedAny,
|
|
277
|
+
reachedMax,
|
|
278
|
+
reachedMin,
|
|
279
|
+
removeOffset
|
|
280
|
+
};
|
|
281
|
+
return self;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function Counter(max, start, loop) {
|
|
285
|
+
const {
|
|
286
|
+
constrain
|
|
287
|
+
} = Limit(0, max);
|
|
288
|
+
const loopEnd = max + 1;
|
|
289
|
+
let counter = withinLimit(start);
|
|
290
|
+
function withinLimit(n) {
|
|
291
|
+
return !loop ? constrain(n) : mathAbs((loopEnd + n) % loopEnd);
|
|
292
|
+
}
|
|
293
|
+
function get() {
|
|
294
|
+
return counter;
|
|
295
|
+
}
|
|
296
|
+
function set(n) {
|
|
297
|
+
counter = withinLimit(n);
|
|
298
|
+
return self;
|
|
299
|
+
}
|
|
300
|
+
function add(n) {
|
|
301
|
+
return clone().set(get() + n);
|
|
302
|
+
}
|
|
303
|
+
function clone() {
|
|
304
|
+
return Counter(max, get(), loop);
|
|
305
|
+
}
|
|
306
|
+
const self = {
|
|
307
|
+
get,
|
|
308
|
+
set,
|
|
309
|
+
add,
|
|
310
|
+
clone
|
|
311
|
+
};
|
|
312
|
+
return self;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function DragHandler(axis, rootNode, ownerDocument, ownerWindow, target, dragTracker, location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, baseFriction, watchDrag) {
|
|
316
|
+
const {
|
|
317
|
+
cross: crossAxis,
|
|
318
|
+
direction
|
|
319
|
+
} = axis;
|
|
320
|
+
const focusNodes = ['INPUT', 'SELECT', 'TEXTAREA'];
|
|
321
|
+
const nonPassiveEvent = {
|
|
322
|
+
passive: false
|
|
323
|
+
};
|
|
324
|
+
const initEvents = EventStore();
|
|
325
|
+
const dragEvents = EventStore();
|
|
326
|
+
const goToNextThreshold = Limit(50, 225).constrain(percentOfView.measure(20));
|
|
327
|
+
const snapForceBoost = {
|
|
328
|
+
mouse: 300,
|
|
329
|
+
touch: 400
|
|
330
|
+
};
|
|
331
|
+
const freeForceBoost = {
|
|
332
|
+
mouse: 500,
|
|
333
|
+
touch: 600
|
|
334
|
+
};
|
|
335
|
+
const baseSpeed = dragFree ? 43 : 25;
|
|
336
|
+
let isMoving = false;
|
|
337
|
+
let startScroll = 0;
|
|
338
|
+
let startCross = 0;
|
|
339
|
+
let pointerIsDown = false;
|
|
340
|
+
let preventScroll = false;
|
|
341
|
+
let preventClick = false;
|
|
342
|
+
let isMouse = false;
|
|
343
|
+
function init(emblaApi) {
|
|
344
|
+
if (!watchDrag) return;
|
|
345
|
+
function downIfAllowed(evt) {
|
|
346
|
+
if (isBoolean(watchDrag) || watchDrag(emblaApi, evt)) down(evt);
|
|
347
|
+
}
|
|
348
|
+
const node = rootNode;
|
|
349
|
+
initEvents.add(node, 'dragstart', evt => evt.preventDefault(), nonPassiveEvent).add(node, 'touchmove', () => undefined, nonPassiveEvent).add(node, 'touchend', () => undefined).add(node, 'touchstart', downIfAllowed).add(node, 'mousedown', downIfAllowed).add(node, 'touchcancel', up).add(node, 'contextmenu', up).add(node, 'click', click, true);
|
|
350
|
+
}
|
|
351
|
+
function destroy() {
|
|
352
|
+
initEvents.clear();
|
|
353
|
+
dragEvents.clear();
|
|
354
|
+
}
|
|
355
|
+
function addDragEvents() {
|
|
356
|
+
const node = isMouse ? ownerDocument : rootNode;
|
|
357
|
+
dragEvents.add(node, 'touchmove', move, nonPassiveEvent).add(node, 'touchend', up).add(node, 'mousemove', move, nonPassiveEvent).add(node, 'mouseup', up);
|
|
358
|
+
}
|
|
359
|
+
function isFocusNode(node) {
|
|
360
|
+
const nodeName = node.nodeName || '';
|
|
361
|
+
return focusNodes.includes(nodeName);
|
|
362
|
+
}
|
|
363
|
+
function forceBoost() {
|
|
364
|
+
const boost = dragFree ? freeForceBoost : snapForceBoost;
|
|
365
|
+
const type = isMouse ? 'mouse' : 'touch';
|
|
366
|
+
return boost[type];
|
|
367
|
+
}
|
|
368
|
+
function allowedForce(force, targetChanged) {
|
|
369
|
+
const next = index.add(mathSign(force) * -1);
|
|
370
|
+
const baseForce = scrollTarget.byDistance(force, !dragFree).distance;
|
|
371
|
+
if (dragFree || mathAbs(force) < goToNextThreshold) return baseForce;
|
|
372
|
+
if (skipSnaps && targetChanged) return baseForce * 0.5;
|
|
373
|
+
return scrollTarget.byIndex(next.get(), 0).distance;
|
|
374
|
+
}
|
|
375
|
+
function down(evt) {
|
|
376
|
+
const isMouseEvt = isMouseEvent(evt, ownerWindow);
|
|
377
|
+
isMouse = isMouseEvt;
|
|
378
|
+
preventClick = dragFree && isMouseEvt && !evt.buttons && isMoving;
|
|
379
|
+
isMoving = deltaAbs(target.get(), location.get()) >= 2;
|
|
380
|
+
if (isMouseEvt && evt.button !== 0) return;
|
|
381
|
+
if (isFocusNode(evt.target)) return;
|
|
382
|
+
pointerIsDown = true;
|
|
383
|
+
dragTracker.pointerDown(evt);
|
|
384
|
+
scrollBody.useFriction(0).useDuration(0);
|
|
385
|
+
target.set(location);
|
|
386
|
+
addDragEvents();
|
|
387
|
+
startScroll = dragTracker.readPoint(evt);
|
|
388
|
+
startCross = dragTracker.readPoint(evt, crossAxis);
|
|
389
|
+
eventHandler.emit('pointerDown');
|
|
390
|
+
}
|
|
391
|
+
function move(evt) {
|
|
392
|
+
const isTouchEvt = !isMouseEvent(evt, ownerWindow);
|
|
393
|
+
if (isTouchEvt && evt.touches.length >= 2) return up(evt);
|
|
394
|
+
const lastScroll = dragTracker.readPoint(evt);
|
|
395
|
+
const lastCross = dragTracker.readPoint(evt, crossAxis);
|
|
396
|
+
const diffScroll = deltaAbs(lastScroll, startScroll);
|
|
397
|
+
const diffCross = deltaAbs(lastCross, startCross);
|
|
398
|
+
if (!preventScroll && !isMouse) {
|
|
399
|
+
if (!evt.cancelable) return up(evt);
|
|
400
|
+
preventScroll = diffScroll > diffCross;
|
|
401
|
+
if (!preventScroll) return up(evt);
|
|
402
|
+
}
|
|
403
|
+
const diff = dragTracker.pointerMove(evt);
|
|
404
|
+
if (diffScroll > dragThreshold) preventClick = true;
|
|
405
|
+
scrollBody.useFriction(0.3).useDuration(0.75);
|
|
406
|
+
animation.start();
|
|
407
|
+
target.add(direction(diff));
|
|
408
|
+
evt.preventDefault();
|
|
409
|
+
}
|
|
410
|
+
function up(evt) {
|
|
411
|
+
const currentLocation = scrollTarget.byDistance(0, false);
|
|
412
|
+
const targetChanged = currentLocation.index !== index.get();
|
|
413
|
+
const rawForce = dragTracker.pointerUp(evt) * forceBoost();
|
|
414
|
+
const force = allowedForce(direction(rawForce), targetChanged);
|
|
415
|
+
const forceFactor = factorAbs(rawForce, force);
|
|
416
|
+
const speed = baseSpeed - 10 * forceFactor;
|
|
417
|
+
const friction = baseFriction + forceFactor / 50;
|
|
418
|
+
preventScroll = false;
|
|
419
|
+
pointerIsDown = false;
|
|
420
|
+
dragEvents.clear();
|
|
421
|
+
scrollBody.useDuration(speed).useFriction(friction);
|
|
422
|
+
scrollTo.distance(force, !dragFree);
|
|
423
|
+
isMouse = false;
|
|
424
|
+
eventHandler.emit('pointerUp');
|
|
425
|
+
}
|
|
426
|
+
function click(evt) {
|
|
427
|
+
if (preventClick) {
|
|
428
|
+
evt.stopPropagation();
|
|
429
|
+
evt.preventDefault();
|
|
430
|
+
preventClick = false;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
function pointerDown() {
|
|
434
|
+
return pointerIsDown;
|
|
435
|
+
}
|
|
436
|
+
const self = {
|
|
437
|
+
init,
|
|
438
|
+
destroy,
|
|
439
|
+
pointerDown
|
|
440
|
+
};
|
|
441
|
+
return self;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
function DragTracker(axis, ownerWindow) {
|
|
445
|
+
const logInterval = 170;
|
|
446
|
+
let startEvent;
|
|
447
|
+
let lastEvent;
|
|
448
|
+
function readTime(evt) {
|
|
449
|
+
return evt.timeStamp;
|
|
450
|
+
}
|
|
451
|
+
function readPoint(evt, evtAxis) {
|
|
452
|
+
const property = evtAxis || axis.scroll;
|
|
453
|
+
const coord = `client${property === 'x' ? 'X' : 'Y'}`;
|
|
454
|
+
return (isMouseEvent(evt, ownerWindow) ? evt : evt.touches[0])[coord];
|
|
455
|
+
}
|
|
456
|
+
function pointerDown(evt) {
|
|
457
|
+
startEvent = evt;
|
|
458
|
+
lastEvent = evt;
|
|
459
|
+
return readPoint(evt);
|
|
460
|
+
}
|
|
461
|
+
function pointerMove(evt) {
|
|
462
|
+
const diff = readPoint(evt) - readPoint(lastEvent);
|
|
463
|
+
const expired = readTime(evt) - readTime(startEvent) > logInterval;
|
|
464
|
+
lastEvent = evt;
|
|
465
|
+
if (expired) startEvent = evt;
|
|
466
|
+
return diff;
|
|
467
|
+
}
|
|
468
|
+
function pointerUp(evt) {
|
|
469
|
+
if (!startEvent || !lastEvent) return 0;
|
|
470
|
+
const diffDrag = readPoint(lastEvent) - readPoint(startEvent);
|
|
471
|
+
const diffTime = readTime(evt) - readTime(startEvent);
|
|
472
|
+
const expired = readTime(evt) - readTime(lastEvent) > logInterval;
|
|
473
|
+
const force = diffDrag / diffTime;
|
|
474
|
+
const isFlick = diffTime && !expired && mathAbs(force) > 0.1;
|
|
475
|
+
return isFlick ? force : 0;
|
|
476
|
+
}
|
|
477
|
+
const self = {
|
|
478
|
+
pointerDown,
|
|
479
|
+
pointerMove,
|
|
480
|
+
pointerUp,
|
|
481
|
+
readPoint
|
|
482
|
+
};
|
|
483
|
+
return self;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
function NodeRects() {
|
|
487
|
+
function measure(node) {
|
|
488
|
+
const {
|
|
489
|
+
offsetTop,
|
|
490
|
+
offsetLeft,
|
|
491
|
+
offsetWidth,
|
|
492
|
+
offsetHeight
|
|
493
|
+
} = node;
|
|
494
|
+
const offset = {
|
|
495
|
+
top: offsetTop,
|
|
496
|
+
right: offsetLeft + offsetWidth,
|
|
497
|
+
bottom: offsetTop + offsetHeight,
|
|
498
|
+
left: offsetLeft,
|
|
499
|
+
width: offsetWidth,
|
|
500
|
+
height: offsetHeight
|
|
501
|
+
};
|
|
502
|
+
return offset;
|
|
503
|
+
}
|
|
504
|
+
const self = {
|
|
505
|
+
measure
|
|
506
|
+
};
|
|
507
|
+
return self;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function PercentOfView(viewSize) {
|
|
511
|
+
function measure(n) {
|
|
512
|
+
return viewSize * (n / 100);
|
|
513
|
+
}
|
|
514
|
+
const self = {
|
|
515
|
+
measure
|
|
516
|
+
};
|
|
517
|
+
return self;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
function ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects) {
|
|
521
|
+
const observeNodes = [container].concat(slides);
|
|
522
|
+
let resizeObserver;
|
|
523
|
+
let containerSize;
|
|
524
|
+
let slideSizes = [];
|
|
525
|
+
let destroyed = false;
|
|
526
|
+
function readSize(node) {
|
|
527
|
+
return axis.measureSize(nodeRects.measure(node));
|
|
528
|
+
}
|
|
529
|
+
function init(emblaApi) {
|
|
530
|
+
if (!watchResize) return;
|
|
531
|
+
containerSize = readSize(container);
|
|
532
|
+
slideSizes = slides.map(readSize);
|
|
533
|
+
function defaultCallback(entries) {
|
|
534
|
+
for (const entry of entries) {
|
|
535
|
+
if (destroyed) return;
|
|
536
|
+
const isContainer = entry.target === container;
|
|
537
|
+
const slideIndex = slides.indexOf(entry.target);
|
|
538
|
+
const lastSize = isContainer ? containerSize : slideSizes[slideIndex];
|
|
539
|
+
const newSize = readSize(isContainer ? container : slides[slideIndex]);
|
|
540
|
+
const diffSize = mathAbs(newSize - lastSize);
|
|
541
|
+
if (diffSize >= 0.5) {
|
|
542
|
+
emblaApi.reInit();
|
|
543
|
+
eventHandler.emit('resize');
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
resizeObserver = new ResizeObserver(entries => {
|
|
549
|
+
if (isBoolean(watchResize) || watchResize(emblaApi, entries)) {
|
|
550
|
+
defaultCallback(entries);
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
ownerWindow.requestAnimationFrame(() => {
|
|
554
|
+
observeNodes.forEach(node => resizeObserver.observe(node));
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
function destroy() {
|
|
558
|
+
destroyed = true;
|
|
559
|
+
if (resizeObserver) resizeObserver.disconnect();
|
|
560
|
+
}
|
|
561
|
+
const self = {
|
|
562
|
+
init,
|
|
563
|
+
destroy
|
|
564
|
+
};
|
|
565
|
+
return self;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
function ScrollBody(location, offsetLocation, previousLocation, target, baseDuration, baseFriction) {
|
|
569
|
+
let bodyVelocity = 0;
|
|
570
|
+
let scrollDirection = 0;
|
|
571
|
+
let scrollDuration = baseDuration;
|
|
572
|
+
let scrollFriction = baseFriction;
|
|
573
|
+
let rawLocation = location.get();
|
|
574
|
+
let rawLocationPrevious = 0;
|
|
575
|
+
function seek(timeStep) {
|
|
576
|
+
const fixedDeltaTimeSeconds = timeStep / 1000;
|
|
577
|
+
const duration = scrollDuration * fixedDeltaTimeSeconds;
|
|
578
|
+
const diff = target.get() - location.get();
|
|
579
|
+
const isInstant = !scrollDuration;
|
|
580
|
+
let directionDiff = 0;
|
|
581
|
+
if (isInstant) {
|
|
582
|
+
bodyVelocity = 0;
|
|
583
|
+
previousLocation.set(target);
|
|
584
|
+
location.set(target);
|
|
585
|
+
directionDiff = diff;
|
|
586
|
+
} else {
|
|
587
|
+
previousLocation.set(location);
|
|
588
|
+
bodyVelocity += diff / duration;
|
|
589
|
+
bodyVelocity *= scrollFriction;
|
|
590
|
+
rawLocation += bodyVelocity;
|
|
591
|
+
location.add(bodyVelocity * fixedDeltaTimeSeconds);
|
|
592
|
+
directionDiff = rawLocation - rawLocationPrevious;
|
|
593
|
+
}
|
|
594
|
+
scrollDirection = mathSign(directionDiff);
|
|
595
|
+
rawLocationPrevious = rawLocation;
|
|
596
|
+
return self;
|
|
597
|
+
}
|
|
598
|
+
function settled() {
|
|
599
|
+
const diff = target.get() - offsetLocation.get();
|
|
600
|
+
return mathAbs(diff) < 0.001;
|
|
601
|
+
}
|
|
602
|
+
function duration() {
|
|
603
|
+
return scrollDuration;
|
|
604
|
+
}
|
|
605
|
+
function direction() {
|
|
606
|
+
return scrollDirection;
|
|
607
|
+
}
|
|
608
|
+
function velocity() {
|
|
609
|
+
return bodyVelocity;
|
|
610
|
+
}
|
|
611
|
+
function useBaseDuration() {
|
|
612
|
+
return useDuration(baseDuration);
|
|
613
|
+
}
|
|
614
|
+
function useBaseFriction() {
|
|
615
|
+
return useFriction(baseFriction);
|
|
616
|
+
}
|
|
617
|
+
function useDuration(n) {
|
|
618
|
+
scrollDuration = n;
|
|
619
|
+
return self;
|
|
620
|
+
}
|
|
621
|
+
function useFriction(n) {
|
|
622
|
+
scrollFriction = n;
|
|
623
|
+
return self;
|
|
624
|
+
}
|
|
625
|
+
const self = {
|
|
626
|
+
direction,
|
|
627
|
+
duration,
|
|
628
|
+
velocity,
|
|
629
|
+
seek,
|
|
630
|
+
settled,
|
|
631
|
+
useBaseFriction,
|
|
632
|
+
useBaseDuration,
|
|
633
|
+
useFriction,
|
|
634
|
+
useDuration
|
|
635
|
+
};
|
|
636
|
+
return self;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
function ScrollBounds(limit, location, target, scrollBody, percentOfView) {
|
|
640
|
+
const pullBackThreshold = percentOfView.measure(10);
|
|
641
|
+
const edgeOffsetTolerance = percentOfView.measure(50);
|
|
642
|
+
const frictionLimit = Limit(0.1, 0.99);
|
|
643
|
+
let disabled = false;
|
|
644
|
+
function shouldConstrain() {
|
|
645
|
+
if (disabled) return false;
|
|
646
|
+
if (!limit.reachedAny(target.get())) return false;
|
|
647
|
+
if (!limit.reachedAny(location.get())) return false;
|
|
648
|
+
return true;
|
|
649
|
+
}
|
|
650
|
+
function constrain(pointerDown) {
|
|
651
|
+
if (!shouldConstrain()) return;
|
|
652
|
+
const edge = limit.reachedMin(location.get()) ? 'min' : 'max';
|
|
653
|
+
const diffToEdge = mathAbs(limit[edge] - location.get());
|
|
654
|
+
const diffToTarget = target.get() - location.get();
|
|
655
|
+
const friction = frictionLimit.constrain(diffToEdge / edgeOffsetTolerance);
|
|
656
|
+
target.subtract(diffToTarget * friction);
|
|
657
|
+
if (!pointerDown && mathAbs(diffToTarget) < pullBackThreshold) {
|
|
658
|
+
target.set(limit.constrain(target.get()));
|
|
659
|
+
scrollBody.useDuration(25).useBaseFriction();
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
function toggleActive(active) {
|
|
663
|
+
disabled = !active;
|
|
664
|
+
}
|
|
665
|
+
const self = {
|
|
666
|
+
shouldConstrain,
|
|
667
|
+
constrain,
|
|
668
|
+
toggleActive
|
|
669
|
+
};
|
|
670
|
+
return self;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
function ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance) {
|
|
674
|
+
const scrollBounds = Limit(-contentSize + viewSize, 0);
|
|
675
|
+
const snapsBounded = measureBounded();
|
|
676
|
+
const scrollContainLimit = findScrollContainLimit();
|
|
677
|
+
const snapsContained = measureContained();
|
|
678
|
+
function usePixelTolerance(bound, snap) {
|
|
679
|
+
return deltaAbs(bound, snap) < 1;
|
|
680
|
+
}
|
|
681
|
+
function findScrollContainLimit() {
|
|
682
|
+
const startSnap = snapsBounded[0];
|
|
683
|
+
const endSnap = arrayLast(snapsBounded);
|
|
684
|
+
const min = snapsBounded.lastIndexOf(startSnap);
|
|
685
|
+
const max = snapsBounded.indexOf(endSnap) + 1;
|
|
686
|
+
return Limit(min, max);
|
|
687
|
+
}
|
|
688
|
+
function measureBounded() {
|
|
689
|
+
return snapsAligned.map((snapAligned, index) => {
|
|
690
|
+
const {
|
|
691
|
+
min,
|
|
692
|
+
max
|
|
693
|
+
} = scrollBounds;
|
|
694
|
+
const snap = scrollBounds.constrain(snapAligned);
|
|
695
|
+
const isFirst = !index;
|
|
696
|
+
const isLast = arrayIsLastIndex(snapsAligned, index);
|
|
697
|
+
if (isFirst) return max;
|
|
698
|
+
if (isLast) return min;
|
|
699
|
+
if (usePixelTolerance(min, snap)) return min;
|
|
700
|
+
if (usePixelTolerance(max, snap)) return max;
|
|
701
|
+
return snap;
|
|
702
|
+
}).map(scrollBound => parseFloat(scrollBound.toFixed(3)));
|
|
703
|
+
}
|
|
704
|
+
function measureContained() {
|
|
705
|
+
if (contentSize <= viewSize + pixelTolerance) return [scrollBounds.max];
|
|
706
|
+
if (containScroll === 'keepSnaps') return snapsBounded;
|
|
707
|
+
const {
|
|
708
|
+
min,
|
|
709
|
+
max
|
|
710
|
+
} = scrollContainLimit;
|
|
711
|
+
return snapsBounded.slice(min, max);
|
|
712
|
+
}
|
|
713
|
+
const self = {
|
|
714
|
+
snapsContained,
|
|
715
|
+
scrollContainLimit
|
|
716
|
+
};
|
|
717
|
+
return self;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
function ScrollLimit(contentSize, scrollSnaps, loop) {
|
|
721
|
+
const max = scrollSnaps[0];
|
|
722
|
+
const min = loop ? max - contentSize : arrayLast(scrollSnaps);
|
|
723
|
+
const limit = Limit(min, max);
|
|
724
|
+
const self = {
|
|
725
|
+
limit
|
|
726
|
+
};
|
|
727
|
+
return self;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
function ScrollLooper(contentSize, limit, location, vectors) {
|
|
731
|
+
const jointSafety = 0.1;
|
|
732
|
+
const min = limit.min + jointSafety;
|
|
733
|
+
const max = limit.max + jointSafety;
|
|
734
|
+
const {
|
|
735
|
+
reachedMin,
|
|
736
|
+
reachedMax
|
|
737
|
+
} = Limit(min, max);
|
|
738
|
+
function shouldLoop(direction) {
|
|
739
|
+
if (direction === 1) return reachedMax(location.get());
|
|
740
|
+
if (direction === -1) return reachedMin(location.get());
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
743
|
+
function loop(direction) {
|
|
744
|
+
if (!shouldLoop(direction)) return;
|
|
745
|
+
const loopDistance = contentSize * (direction * -1);
|
|
746
|
+
vectors.forEach(v => v.add(loopDistance));
|
|
747
|
+
}
|
|
748
|
+
const self = {
|
|
749
|
+
loop
|
|
750
|
+
};
|
|
751
|
+
return self;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
function ScrollProgress(limit) {
|
|
755
|
+
const {
|
|
756
|
+
max,
|
|
757
|
+
length
|
|
758
|
+
} = limit;
|
|
759
|
+
function get(n) {
|
|
760
|
+
const currentLocation = n - max;
|
|
761
|
+
return length ? currentLocation / -length : 0;
|
|
762
|
+
}
|
|
763
|
+
const self = {
|
|
764
|
+
get
|
|
765
|
+
};
|
|
766
|
+
return self;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
function ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll) {
|
|
770
|
+
const {
|
|
771
|
+
startEdge,
|
|
772
|
+
endEdge
|
|
773
|
+
} = axis;
|
|
774
|
+
const {
|
|
775
|
+
groupSlides
|
|
776
|
+
} = slidesToScroll;
|
|
777
|
+
const alignments = measureSizes().map(alignment.measure);
|
|
778
|
+
const snaps = measureUnaligned();
|
|
779
|
+
const snapsAligned = measureAligned();
|
|
780
|
+
function measureSizes() {
|
|
781
|
+
return groupSlides(slideRects).map(rects => arrayLast(rects)[endEdge] - rects[0][startEdge]).map(mathAbs);
|
|
782
|
+
}
|
|
783
|
+
function measureUnaligned() {
|
|
784
|
+
return slideRects.map(rect => containerRect[startEdge] - rect[startEdge]).map(snap => -mathAbs(snap));
|
|
785
|
+
}
|
|
786
|
+
function measureAligned() {
|
|
787
|
+
return groupSlides(snaps).map(g => g[0]).map((snap, index) => snap + alignments[index]);
|
|
788
|
+
}
|
|
789
|
+
const self = {
|
|
790
|
+
snaps,
|
|
791
|
+
snapsAligned
|
|
792
|
+
};
|
|
793
|
+
return self;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
function SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes) {
|
|
797
|
+
const {
|
|
798
|
+
groupSlides
|
|
799
|
+
} = slidesToScroll;
|
|
800
|
+
const {
|
|
801
|
+
min,
|
|
802
|
+
max
|
|
803
|
+
} = scrollContainLimit;
|
|
804
|
+
const slideRegistry = createSlideRegistry();
|
|
805
|
+
function createSlideRegistry() {
|
|
806
|
+
const groupedSlideIndexes = groupSlides(slideIndexes);
|
|
807
|
+
const doNotContain = !containSnaps || containScroll === 'keepSnaps';
|
|
808
|
+
if (scrollSnaps.length === 1) return [slideIndexes];
|
|
809
|
+
if (doNotContain) return groupedSlideIndexes;
|
|
810
|
+
return groupedSlideIndexes.slice(min, max).map((group, index, groups) => {
|
|
811
|
+
const isFirst = !index;
|
|
812
|
+
const isLast = arrayIsLastIndex(groups, index);
|
|
813
|
+
if (isFirst) {
|
|
814
|
+
const range = arrayLast(groups[0]) + 1;
|
|
815
|
+
return arrayFromNumber(range);
|
|
816
|
+
}
|
|
817
|
+
if (isLast) {
|
|
818
|
+
const range = arrayLastIndex(slideIndexes) - arrayLast(groups)[0] + 1;
|
|
819
|
+
return arrayFromNumber(range, arrayLast(groups)[0]);
|
|
820
|
+
}
|
|
821
|
+
return group;
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
const self = {
|
|
825
|
+
slideRegistry
|
|
826
|
+
};
|
|
827
|
+
return self;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
function ScrollTarget(loop, scrollSnaps, contentSize, limit, targetVector) {
|
|
831
|
+
const {
|
|
832
|
+
reachedAny,
|
|
833
|
+
removeOffset,
|
|
834
|
+
constrain
|
|
835
|
+
} = limit;
|
|
836
|
+
function minDistance(distances) {
|
|
837
|
+
return distances.concat().sort((a, b) => mathAbs(a) - mathAbs(b))[0];
|
|
838
|
+
}
|
|
839
|
+
function findTargetSnap(target) {
|
|
840
|
+
const distance = loop ? removeOffset(target) : constrain(target);
|
|
841
|
+
const ascDiffsToSnaps = scrollSnaps.map((snap, index) => ({
|
|
842
|
+
diff: shortcut(snap - distance, 0),
|
|
843
|
+
index
|
|
844
|
+
})).sort((d1, d2) => mathAbs(d1.diff) - mathAbs(d2.diff));
|
|
845
|
+
const {
|
|
846
|
+
index
|
|
847
|
+
} = ascDiffsToSnaps[0];
|
|
848
|
+
return {
|
|
849
|
+
index,
|
|
850
|
+
distance
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
function shortcut(target, direction) {
|
|
854
|
+
const targets = [target, target + contentSize, target - contentSize];
|
|
855
|
+
if (!loop) return target;
|
|
856
|
+
if (!direction) return minDistance(targets);
|
|
857
|
+
const matchingTargets = targets.filter(t => mathSign(t) === direction);
|
|
858
|
+
if (matchingTargets.length) return minDistance(matchingTargets);
|
|
859
|
+
return arrayLast(targets) - contentSize;
|
|
860
|
+
}
|
|
861
|
+
function byIndex(index, direction) {
|
|
862
|
+
const diffToSnap = scrollSnaps[index] - targetVector.get();
|
|
863
|
+
const distance = shortcut(diffToSnap, direction);
|
|
864
|
+
return {
|
|
865
|
+
index,
|
|
866
|
+
distance
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
function byDistance(distance, snap) {
|
|
870
|
+
const target = targetVector.get() + distance;
|
|
871
|
+
const {
|
|
872
|
+
index,
|
|
873
|
+
distance: targetSnapDistance
|
|
874
|
+
} = findTargetSnap(target);
|
|
875
|
+
const reachedBound = !loop && reachedAny(target);
|
|
876
|
+
if (!snap || reachedBound) return {
|
|
877
|
+
index,
|
|
878
|
+
distance
|
|
879
|
+
};
|
|
880
|
+
const diffToSnap = scrollSnaps[index] - targetSnapDistance;
|
|
881
|
+
const snapDistance = distance + shortcut(diffToSnap, 0);
|
|
882
|
+
return {
|
|
883
|
+
index,
|
|
884
|
+
distance: snapDistance
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
const self = {
|
|
888
|
+
byDistance,
|
|
889
|
+
byIndex,
|
|
890
|
+
shortcut
|
|
891
|
+
};
|
|
892
|
+
return self;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
function ScrollTo(animation, indexCurrent, indexPrevious, scrollBody, scrollTarget, targetVector, eventHandler) {
|
|
896
|
+
function scrollTo(target) {
|
|
897
|
+
const distanceDiff = target.distance;
|
|
898
|
+
const indexDiff = target.index !== indexCurrent.get();
|
|
899
|
+
targetVector.add(distanceDiff);
|
|
900
|
+
if (distanceDiff) {
|
|
901
|
+
if (scrollBody.duration()) {
|
|
902
|
+
animation.start();
|
|
903
|
+
} else {
|
|
904
|
+
animation.update();
|
|
905
|
+
animation.render(1);
|
|
906
|
+
animation.update();
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
if (indexDiff) {
|
|
910
|
+
indexPrevious.set(indexCurrent.get());
|
|
911
|
+
indexCurrent.set(target.index);
|
|
912
|
+
eventHandler.emit('select');
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
function distance(n, snap) {
|
|
916
|
+
const target = scrollTarget.byDistance(n, snap);
|
|
917
|
+
scrollTo(target);
|
|
918
|
+
}
|
|
919
|
+
function index(n, direction) {
|
|
920
|
+
const targetIndex = indexCurrent.clone().set(n);
|
|
921
|
+
const target = scrollTarget.byIndex(targetIndex.get(), direction);
|
|
922
|
+
scrollTo(target);
|
|
923
|
+
}
|
|
924
|
+
const self = {
|
|
925
|
+
distance,
|
|
926
|
+
index
|
|
927
|
+
};
|
|
928
|
+
return self;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
function SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus) {
|
|
932
|
+
const focusListenerOptions = {
|
|
933
|
+
passive: true,
|
|
934
|
+
capture: true
|
|
935
|
+
};
|
|
936
|
+
let lastTabPressTime = 0;
|
|
937
|
+
function init(emblaApi) {
|
|
938
|
+
if (!watchFocus) return;
|
|
939
|
+
function defaultCallback(index) {
|
|
940
|
+
const nowTime = new Date().getTime();
|
|
941
|
+
const diffTime = nowTime - lastTabPressTime;
|
|
942
|
+
if (diffTime > 10) return;
|
|
943
|
+
eventHandler.emit('slideFocusStart');
|
|
944
|
+
root.scrollLeft = 0;
|
|
945
|
+
const group = slideRegistry.findIndex(group => group.includes(index));
|
|
946
|
+
if (!isNumber(group)) return;
|
|
947
|
+
scrollBody.useDuration(0);
|
|
948
|
+
scrollTo.index(group, 0);
|
|
949
|
+
eventHandler.emit('slideFocus');
|
|
950
|
+
}
|
|
951
|
+
eventStore.add(document, 'keydown', registerTabPress, false);
|
|
952
|
+
slides.forEach((slide, slideIndex) => {
|
|
953
|
+
eventStore.add(slide, 'focus', evt => {
|
|
954
|
+
if (isBoolean(watchFocus) || watchFocus(emblaApi, evt)) {
|
|
955
|
+
defaultCallback(slideIndex);
|
|
956
|
+
}
|
|
957
|
+
}, focusListenerOptions);
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
function registerTabPress(event) {
|
|
961
|
+
if (event.code === 'Tab') lastTabPressTime = new Date().getTime();
|
|
962
|
+
}
|
|
963
|
+
const self = {
|
|
964
|
+
init
|
|
965
|
+
};
|
|
966
|
+
return self;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
function Vector1D(initialValue) {
|
|
970
|
+
let value = initialValue;
|
|
971
|
+
function get() {
|
|
972
|
+
return value;
|
|
973
|
+
}
|
|
974
|
+
function set(n) {
|
|
975
|
+
value = normalizeInput(n);
|
|
976
|
+
}
|
|
977
|
+
function add(n) {
|
|
978
|
+
value += normalizeInput(n);
|
|
979
|
+
}
|
|
980
|
+
function subtract(n) {
|
|
981
|
+
value -= normalizeInput(n);
|
|
982
|
+
}
|
|
983
|
+
function normalizeInput(n) {
|
|
984
|
+
return isNumber(n) ? n : n.get();
|
|
985
|
+
}
|
|
986
|
+
const self = {
|
|
987
|
+
get,
|
|
988
|
+
set,
|
|
989
|
+
add,
|
|
990
|
+
subtract
|
|
991
|
+
};
|
|
992
|
+
return self;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
function Translate(axis, container) {
|
|
996
|
+
const translate = axis.scroll === 'x' ? x : y;
|
|
997
|
+
const containerStyle = container.style;
|
|
998
|
+
let disabled = false;
|
|
999
|
+
function x(n) {
|
|
1000
|
+
return `translate3d(${n}px,0px,0px)`;
|
|
1001
|
+
}
|
|
1002
|
+
function y(n) {
|
|
1003
|
+
return `translate3d(0px,${n}px,0px)`;
|
|
1004
|
+
}
|
|
1005
|
+
function to(target) {
|
|
1006
|
+
if (disabled) return;
|
|
1007
|
+
containerStyle.transform = translate(axis.direction(target));
|
|
1008
|
+
}
|
|
1009
|
+
function toggleActive(active) {
|
|
1010
|
+
disabled = !active;
|
|
1011
|
+
}
|
|
1012
|
+
function clear() {
|
|
1013
|
+
if (disabled) return;
|
|
1014
|
+
containerStyle.transform = '';
|
|
1015
|
+
if (!container.getAttribute('style')) container.removeAttribute('style');
|
|
1016
|
+
}
|
|
1017
|
+
const self = {
|
|
1018
|
+
clear,
|
|
1019
|
+
to,
|
|
1020
|
+
toggleActive
|
|
1021
|
+
};
|
|
1022
|
+
return self;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
function SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, location, slides) {
|
|
1026
|
+
const roundingSafety = 0.5;
|
|
1027
|
+
const ascItems = arrayKeys(slideSizesWithGaps);
|
|
1028
|
+
const descItems = arrayKeys(slideSizesWithGaps).reverse();
|
|
1029
|
+
const loopPoints = startPoints().concat(endPoints());
|
|
1030
|
+
function removeSlideSizes(indexes, from) {
|
|
1031
|
+
return indexes.reduce((a, i) => {
|
|
1032
|
+
return a - slideSizesWithGaps[i];
|
|
1033
|
+
}, from);
|
|
1034
|
+
}
|
|
1035
|
+
function slidesInGap(indexes, gap) {
|
|
1036
|
+
return indexes.reduce((a, i) => {
|
|
1037
|
+
const remainingGap = removeSlideSizes(a, gap);
|
|
1038
|
+
return remainingGap > 0 ? a.concat([i]) : a;
|
|
1039
|
+
}, []);
|
|
1040
|
+
}
|
|
1041
|
+
function findSlideBounds(offset) {
|
|
1042
|
+
return snaps.map((snap, index) => ({
|
|
1043
|
+
start: snap - slideSizes[index] + roundingSafety + offset,
|
|
1044
|
+
end: snap + viewSize - roundingSafety + offset
|
|
1045
|
+
}));
|
|
1046
|
+
}
|
|
1047
|
+
function findLoopPoints(indexes, offset, isEndEdge) {
|
|
1048
|
+
const slideBounds = findSlideBounds(offset);
|
|
1049
|
+
return indexes.map(index => {
|
|
1050
|
+
const initial = isEndEdge ? 0 : -contentSize;
|
|
1051
|
+
const altered = isEndEdge ? contentSize : 0;
|
|
1052
|
+
const boundEdge = isEndEdge ? 'end' : 'start';
|
|
1053
|
+
const loopPoint = slideBounds[index][boundEdge];
|
|
1054
|
+
return {
|
|
1055
|
+
index,
|
|
1056
|
+
loopPoint,
|
|
1057
|
+
slideLocation: Vector1D(-1),
|
|
1058
|
+
translate: Translate(axis, slides[index]),
|
|
1059
|
+
target: () => location.get() > loopPoint ? initial : altered
|
|
1060
|
+
};
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
function startPoints() {
|
|
1064
|
+
const gap = scrollSnaps[0];
|
|
1065
|
+
const indexes = slidesInGap(descItems, gap);
|
|
1066
|
+
return findLoopPoints(indexes, contentSize, false);
|
|
1067
|
+
}
|
|
1068
|
+
function endPoints() {
|
|
1069
|
+
const gap = viewSize - scrollSnaps[0] - 1;
|
|
1070
|
+
const indexes = slidesInGap(ascItems, gap);
|
|
1071
|
+
return findLoopPoints(indexes, -contentSize, true);
|
|
1072
|
+
}
|
|
1073
|
+
function canLoop() {
|
|
1074
|
+
return loopPoints.every(({
|
|
1075
|
+
index
|
|
1076
|
+
}) => {
|
|
1077
|
+
const otherIndexes = ascItems.filter(i => i !== index);
|
|
1078
|
+
return removeSlideSizes(otherIndexes, viewSize) <= 0.1;
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
function loop() {
|
|
1082
|
+
loopPoints.forEach(loopPoint => {
|
|
1083
|
+
const {
|
|
1084
|
+
target,
|
|
1085
|
+
translate,
|
|
1086
|
+
slideLocation
|
|
1087
|
+
} = loopPoint;
|
|
1088
|
+
const shiftLocation = target();
|
|
1089
|
+
if (shiftLocation === slideLocation.get()) return;
|
|
1090
|
+
translate.to(shiftLocation);
|
|
1091
|
+
slideLocation.set(shiftLocation);
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
function clear() {
|
|
1095
|
+
loopPoints.forEach(loopPoint => loopPoint.translate.clear());
|
|
1096
|
+
}
|
|
1097
|
+
const self = {
|
|
1098
|
+
canLoop,
|
|
1099
|
+
clear,
|
|
1100
|
+
loop,
|
|
1101
|
+
loopPoints
|
|
1102
|
+
};
|
|
1103
|
+
return self;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
function SlidesHandler(container, eventHandler, watchSlides) {
|
|
1107
|
+
let mutationObserver;
|
|
1108
|
+
let destroyed = false;
|
|
1109
|
+
function init(emblaApi) {
|
|
1110
|
+
if (!watchSlides) return;
|
|
1111
|
+
function defaultCallback(mutations) {
|
|
1112
|
+
for (const mutation of mutations) {
|
|
1113
|
+
if (mutation.type === 'childList') {
|
|
1114
|
+
emblaApi.reInit();
|
|
1115
|
+
eventHandler.emit('slidesChanged');
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
mutationObserver = new MutationObserver(mutations => {
|
|
1121
|
+
if (destroyed) return;
|
|
1122
|
+
if (isBoolean(watchSlides) || watchSlides(emblaApi, mutations)) {
|
|
1123
|
+
defaultCallback(mutations);
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
mutationObserver.observe(container, {
|
|
1127
|
+
childList: true
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
function destroy() {
|
|
1131
|
+
if (mutationObserver) mutationObserver.disconnect();
|
|
1132
|
+
destroyed = true;
|
|
1133
|
+
}
|
|
1134
|
+
const self = {
|
|
1135
|
+
init,
|
|
1136
|
+
destroy
|
|
1137
|
+
};
|
|
1138
|
+
return self;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
function SlidesInView(container, slides, eventHandler, threshold) {
|
|
1142
|
+
const intersectionEntryMap = {};
|
|
1143
|
+
let inViewCache = null;
|
|
1144
|
+
let notInViewCache = null;
|
|
1145
|
+
let intersectionObserver;
|
|
1146
|
+
let destroyed = false;
|
|
1147
|
+
function init() {
|
|
1148
|
+
intersectionObserver = new IntersectionObserver(entries => {
|
|
1149
|
+
if (destroyed) return;
|
|
1150
|
+
entries.forEach(entry => {
|
|
1151
|
+
const index = slides.indexOf(entry.target);
|
|
1152
|
+
intersectionEntryMap[index] = entry;
|
|
1153
|
+
});
|
|
1154
|
+
inViewCache = null;
|
|
1155
|
+
notInViewCache = null;
|
|
1156
|
+
eventHandler.emit('slidesInView');
|
|
1157
|
+
}, {
|
|
1158
|
+
root: container.parentElement,
|
|
1159
|
+
threshold
|
|
1160
|
+
});
|
|
1161
|
+
slides.forEach(slide => intersectionObserver.observe(slide));
|
|
1162
|
+
}
|
|
1163
|
+
function destroy() {
|
|
1164
|
+
if (intersectionObserver) intersectionObserver.disconnect();
|
|
1165
|
+
destroyed = true;
|
|
1166
|
+
}
|
|
1167
|
+
function createInViewList(inView) {
|
|
1168
|
+
return objectKeys(intersectionEntryMap).reduce((list, slideIndex) => {
|
|
1169
|
+
const index = parseInt(slideIndex);
|
|
1170
|
+
const {
|
|
1171
|
+
isIntersecting
|
|
1172
|
+
} = intersectionEntryMap[index];
|
|
1173
|
+
const inViewMatch = inView && isIntersecting;
|
|
1174
|
+
const notInViewMatch = !inView && !isIntersecting;
|
|
1175
|
+
if (inViewMatch || notInViewMatch) list.push(index);
|
|
1176
|
+
return list;
|
|
1177
|
+
}, []);
|
|
1178
|
+
}
|
|
1179
|
+
function get(inView = true) {
|
|
1180
|
+
if (inView && inViewCache) return inViewCache;
|
|
1181
|
+
if (!inView && notInViewCache) return notInViewCache;
|
|
1182
|
+
const slideIndexes = createInViewList(inView);
|
|
1183
|
+
if (inView) inViewCache = slideIndexes;
|
|
1184
|
+
if (!inView) notInViewCache = slideIndexes;
|
|
1185
|
+
return slideIndexes;
|
|
1186
|
+
}
|
|
1187
|
+
const self = {
|
|
1188
|
+
init,
|
|
1189
|
+
destroy,
|
|
1190
|
+
get
|
|
1191
|
+
};
|
|
1192
|
+
return self;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
function SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow) {
|
|
1196
|
+
const {
|
|
1197
|
+
measureSize,
|
|
1198
|
+
startEdge,
|
|
1199
|
+
endEdge
|
|
1200
|
+
} = axis;
|
|
1201
|
+
const withEdgeGap = slideRects[0] && readEdgeGap;
|
|
1202
|
+
const startGap = measureStartGap();
|
|
1203
|
+
const endGap = measureEndGap();
|
|
1204
|
+
const slideSizes = slideRects.map(measureSize);
|
|
1205
|
+
const slideSizesWithGaps = measureWithGaps();
|
|
1206
|
+
function measureStartGap() {
|
|
1207
|
+
if (!withEdgeGap) return 0;
|
|
1208
|
+
const slideRect = slideRects[0];
|
|
1209
|
+
return mathAbs(containerRect[startEdge] - slideRect[startEdge]);
|
|
1210
|
+
}
|
|
1211
|
+
function measureEndGap() {
|
|
1212
|
+
if (!withEdgeGap) return 0;
|
|
1213
|
+
const style = ownerWindow.getComputedStyle(arrayLast(slides));
|
|
1214
|
+
return parseFloat(style.getPropertyValue(`margin-${endEdge}`));
|
|
1215
|
+
}
|
|
1216
|
+
function measureWithGaps() {
|
|
1217
|
+
return slideRects.map((rect, index, rects) => {
|
|
1218
|
+
const isFirst = !index;
|
|
1219
|
+
const isLast = arrayIsLastIndex(rects, index);
|
|
1220
|
+
if (isFirst) return slideSizes[index] + startGap;
|
|
1221
|
+
if (isLast) return slideSizes[index] + endGap;
|
|
1222
|
+
return rects[index + 1][startEdge] - rect[startEdge];
|
|
1223
|
+
}).map(mathAbs);
|
|
1224
|
+
}
|
|
1225
|
+
const self = {
|
|
1226
|
+
slideSizes,
|
|
1227
|
+
slideSizesWithGaps,
|
|
1228
|
+
startGap,
|
|
1229
|
+
endGap
|
|
1230
|
+
};
|
|
1231
|
+
return self;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
function SlidesToScroll(axis, viewSize, slidesToScroll, loop, containerRect, slideRects, startGap, endGap, pixelTolerance) {
|
|
1235
|
+
const {
|
|
1236
|
+
startEdge,
|
|
1237
|
+
endEdge,
|
|
1238
|
+
direction
|
|
1239
|
+
} = axis;
|
|
1240
|
+
const groupByNumber = isNumber(slidesToScroll);
|
|
1241
|
+
function byNumber(array, groupSize) {
|
|
1242
|
+
return arrayKeys(array).filter(i => i % groupSize === 0).map(i => array.slice(i, i + groupSize));
|
|
1243
|
+
}
|
|
1244
|
+
function bySize(array) {
|
|
1245
|
+
if (!array.length) return [];
|
|
1246
|
+
return arrayKeys(array).reduce((groups, rectB, index) => {
|
|
1247
|
+
const rectA = arrayLast(groups) || 0;
|
|
1248
|
+
const isFirst = rectA === 0;
|
|
1249
|
+
const isLast = rectB === arrayLastIndex(array);
|
|
1250
|
+
const edgeA = containerRect[startEdge] - slideRects[rectA][startEdge];
|
|
1251
|
+
const edgeB = containerRect[startEdge] - slideRects[rectB][endEdge];
|
|
1252
|
+
const gapA = !loop && isFirst ? direction(startGap) : 0;
|
|
1253
|
+
const gapB = !loop && isLast ? direction(endGap) : 0;
|
|
1254
|
+
const chunkSize = mathAbs(edgeB - gapB - (edgeA + gapA));
|
|
1255
|
+
if (index && chunkSize > viewSize + pixelTolerance) groups.push(rectB);
|
|
1256
|
+
if (isLast) groups.push(array.length);
|
|
1257
|
+
return groups;
|
|
1258
|
+
}, []).map((currentSize, index, groups) => {
|
|
1259
|
+
const previousSize = Math.max(groups[index - 1] || 0);
|
|
1260
|
+
return array.slice(previousSize, currentSize);
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
function groupSlides(array) {
|
|
1264
|
+
return groupByNumber ? byNumber(array, slidesToScroll) : bySize(array);
|
|
1265
|
+
}
|
|
1266
|
+
const self = {
|
|
1267
|
+
groupSlides
|
|
1268
|
+
};
|
|
1269
|
+
return self;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
function Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler) {
|
|
1273
|
+
// Options
|
|
1274
|
+
const {
|
|
1275
|
+
align,
|
|
1276
|
+
axis: scrollAxis,
|
|
1277
|
+
direction,
|
|
1278
|
+
startIndex,
|
|
1279
|
+
loop,
|
|
1280
|
+
duration,
|
|
1281
|
+
dragFree,
|
|
1282
|
+
dragThreshold,
|
|
1283
|
+
inViewThreshold,
|
|
1284
|
+
slidesToScroll: groupSlides,
|
|
1285
|
+
skipSnaps,
|
|
1286
|
+
containScroll,
|
|
1287
|
+
watchResize,
|
|
1288
|
+
watchSlides,
|
|
1289
|
+
watchDrag,
|
|
1290
|
+
watchFocus
|
|
1291
|
+
} = options;
|
|
1292
|
+
// Measurements
|
|
1293
|
+
const pixelTolerance = 2;
|
|
1294
|
+
const nodeRects = NodeRects();
|
|
1295
|
+
const containerRect = nodeRects.measure(container);
|
|
1296
|
+
const slideRects = slides.map(nodeRects.measure);
|
|
1297
|
+
const axis = Axis(scrollAxis, direction);
|
|
1298
|
+
const viewSize = axis.measureSize(containerRect);
|
|
1299
|
+
const percentOfView = PercentOfView(viewSize);
|
|
1300
|
+
const alignment = Alignment(align, viewSize);
|
|
1301
|
+
const containSnaps = !loop && !!containScroll;
|
|
1302
|
+
const readEdgeGap = loop || !!containScroll;
|
|
1303
|
+
const {
|
|
1304
|
+
slideSizes,
|
|
1305
|
+
slideSizesWithGaps,
|
|
1306
|
+
startGap,
|
|
1307
|
+
endGap
|
|
1308
|
+
} = SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow);
|
|
1309
|
+
const slidesToScroll = SlidesToScroll(axis, viewSize, groupSlides, loop, containerRect, slideRects, startGap, endGap, pixelTolerance);
|
|
1310
|
+
const {
|
|
1311
|
+
snaps,
|
|
1312
|
+
snapsAligned
|
|
1313
|
+
} = ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll);
|
|
1314
|
+
const contentSize = -arrayLast(snaps) + arrayLast(slideSizesWithGaps);
|
|
1315
|
+
const {
|
|
1316
|
+
snapsContained,
|
|
1317
|
+
scrollContainLimit
|
|
1318
|
+
} = ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance);
|
|
1319
|
+
const scrollSnaps = containSnaps ? snapsContained : snapsAligned;
|
|
1320
|
+
const {
|
|
1321
|
+
limit
|
|
1322
|
+
} = ScrollLimit(contentSize, scrollSnaps, loop);
|
|
1323
|
+
// Indexes
|
|
1324
|
+
const index = Counter(arrayLastIndex(scrollSnaps), startIndex, loop);
|
|
1325
|
+
const indexPrevious = index.clone();
|
|
1326
|
+
const slideIndexes = arrayKeys(slides);
|
|
1327
|
+
// Animation
|
|
1328
|
+
const update = ({
|
|
1329
|
+
dragHandler,
|
|
1330
|
+
scrollBody,
|
|
1331
|
+
scrollBounds,
|
|
1332
|
+
options: {
|
|
1333
|
+
loop
|
|
1334
|
+
}
|
|
1335
|
+
}, timeStep) => {
|
|
1336
|
+
if (!loop) scrollBounds.constrain(dragHandler.pointerDown());
|
|
1337
|
+
scrollBody.seek(timeStep);
|
|
1338
|
+
};
|
|
1339
|
+
const render = ({
|
|
1340
|
+
scrollBody,
|
|
1341
|
+
translate,
|
|
1342
|
+
location,
|
|
1343
|
+
offsetLocation,
|
|
1344
|
+
scrollLooper,
|
|
1345
|
+
slideLooper,
|
|
1346
|
+
dragHandler,
|
|
1347
|
+
animation,
|
|
1348
|
+
eventHandler,
|
|
1349
|
+
scrollBounds,
|
|
1350
|
+
options: {
|
|
1351
|
+
loop
|
|
1352
|
+
}
|
|
1353
|
+
}, lagOffset) => {
|
|
1354
|
+
const shouldSettle = scrollBody.settled();
|
|
1355
|
+
const withinBounds = !scrollBounds.shouldConstrain();
|
|
1356
|
+
const hasSettled = loop ? shouldSettle : shouldSettle && withinBounds;
|
|
1357
|
+
if (hasSettled && !dragHandler.pointerDown()) {
|
|
1358
|
+
animation.stop();
|
|
1359
|
+
eventHandler.emit('settle');
|
|
1360
|
+
}
|
|
1361
|
+
if (!hasSettled) eventHandler.emit('scroll');
|
|
1362
|
+
const interpolatedLocation = location.get() * lagOffset + previousLocation.get() * (1 - lagOffset);
|
|
1363
|
+
offsetLocation.set(interpolatedLocation);
|
|
1364
|
+
if (loop) {
|
|
1365
|
+
scrollLooper.loop(scrollBody.direction());
|
|
1366
|
+
slideLooper.loop();
|
|
1367
|
+
}
|
|
1368
|
+
translate.to(offsetLocation.get());
|
|
1369
|
+
};
|
|
1370
|
+
const animation = Animations(ownerDocument, ownerWindow, timeStep => update(engine, timeStep), lagOffset => render(engine, lagOffset));
|
|
1371
|
+
// Shared
|
|
1372
|
+
const friction = 0.68;
|
|
1373
|
+
const startLocation = scrollSnaps[index.get()];
|
|
1374
|
+
const location = Vector1D(startLocation);
|
|
1375
|
+
const previousLocation = Vector1D(startLocation);
|
|
1376
|
+
const offsetLocation = Vector1D(startLocation);
|
|
1377
|
+
const target = Vector1D(startLocation);
|
|
1378
|
+
const scrollBody = ScrollBody(location, offsetLocation, previousLocation, target, duration, friction);
|
|
1379
|
+
const scrollTarget = ScrollTarget(loop, scrollSnaps, contentSize, limit, target);
|
|
1380
|
+
const scrollTo = ScrollTo(animation, index, indexPrevious, scrollBody, scrollTarget, target, eventHandler);
|
|
1381
|
+
const scrollProgress = ScrollProgress(limit);
|
|
1382
|
+
const eventStore = EventStore();
|
|
1383
|
+
const slidesInView = SlidesInView(container, slides, eventHandler, inViewThreshold);
|
|
1384
|
+
const {
|
|
1385
|
+
slideRegistry
|
|
1386
|
+
} = SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes);
|
|
1387
|
+
const slideFocus = SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus);
|
|
1388
|
+
// Engine
|
|
1389
|
+
const engine = {
|
|
1390
|
+
ownerDocument,
|
|
1391
|
+
ownerWindow,
|
|
1392
|
+
eventHandler,
|
|
1393
|
+
containerRect,
|
|
1394
|
+
slideRects,
|
|
1395
|
+
animation,
|
|
1396
|
+
axis,
|
|
1397
|
+
dragHandler: DragHandler(axis, root, ownerDocument, ownerWindow, target, DragTracker(axis, ownerWindow), location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, friction, watchDrag),
|
|
1398
|
+
eventStore,
|
|
1399
|
+
percentOfView,
|
|
1400
|
+
index,
|
|
1401
|
+
indexPrevious,
|
|
1402
|
+
limit,
|
|
1403
|
+
location,
|
|
1404
|
+
offsetLocation,
|
|
1405
|
+
previousLocation,
|
|
1406
|
+
options,
|
|
1407
|
+
resizeHandler: ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects),
|
|
1408
|
+
scrollBody,
|
|
1409
|
+
scrollBounds: ScrollBounds(limit, offsetLocation, target, scrollBody, percentOfView),
|
|
1410
|
+
scrollLooper: ScrollLooper(contentSize, limit, offsetLocation, [location, offsetLocation, previousLocation, target]),
|
|
1411
|
+
scrollProgress,
|
|
1412
|
+
scrollSnapList: scrollSnaps.map(scrollProgress.get),
|
|
1413
|
+
scrollSnaps,
|
|
1414
|
+
scrollTarget,
|
|
1415
|
+
scrollTo,
|
|
1416
|
+
slideLooper: SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, offsetLocation, slides),
|
|
1417
|
+
slideFocus,
|
|
1418
|
+
slidesHandler: SlidesHandler(container, eventHandler, watchSlides),
|
|
1419
|
+
slidesInView,
|
|
1420
|
+
slideIndexes,
|
|
1421
|
+
slideRegistry,
|
|
1422
|
+
slidesToScroll,
|
|
1423
|
+
target,
|
|
1424
|
+
translate: Translate(axis, container)
|
|
1425
|
+
};
|
|
1426
|
+
return engine;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
function EventHandler() {
|
|
1430
|
+
let listeners = {};
|
|
1431
|
+
let api;
|
|
1432
|
+
function init(emblaApi) {
|
|
1433
|
+
api = emblaApi;
|
|
1434
|
+
}
|
|
1435
|
+
function getListeners(evt) {
|
|
1436
|
+
return listeners[evt] || [];
|
|
1437
|
+
}
|
|
1438
|
+
function emit(evt) {
|
|
1439
|
+
getListeners(evt).forEach(e => e(api, evt));
|
|
1440
|
+
return self;
|
|
1441
|
+
}
|
|
1442
|
+
function on(evt, cb) {
|
|
1443
|
+
listeners[evt] = getListeners(evt).concat([cb]);
|
|
1444
|
+
return self;
|
|
1445
|
+
}
|
|
1446
|
+
function off(evt, cb) {
|
|
1447
|
+
listeners[evt] = getListeners(evt).filter(e => e !== cb);
|
|
1448
|
+
return self;
|
|
1449
|
+
}
|
|
1450
|
+
function clear() {
|
|
1451
|
+
listeners = {};
|
|
1452
|
+
}
|
|
1453
|
+
const self = {
|
|
1454
|
+
init,
|
|
1455
|
+
emit,
|
|
1456
|
+
off,
|
|
1457
|
+
on,
|
|
1458
|
+
clear
|
|
1459
|
+
};
|
|
1460
|
+
return self;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
const defaultOptions = {
|
|
1464
|
+
align: 'center',
|
|
1465
|
+
axis: 'x',
|
|
1466
|
+
container: null,
|
|
1467
|
+
slides: null,
|
|
1468
|
+
containScroll: 'trimSnaps',
|
|
1469
|
+
direction: 'ltr',
|
|
1470
|
+
slidesToScroll: 1,
|
|
1471
|
+
inViewThreshold: 0,
|
|
1472
|
+
breakpoints: {},
|
|
1473
|
+
dragFree: false,
|
|
1474
|
+
dragThreshold: 10,
|
|
1475
|
+
loop: false,
|
|
1476
|
+
skipSnaps: false,
|
|
1477
|
+
duration: 25,
|
|
1478
|
+
startIndex: 0,
|
|
1479
|
+
active: true,
|
|
1480
|
+
watchDrag: true,
|
|
1481
|
+
watchResize: true,
|
|
1482
|
+
watchSlides: true,
|
|
1483
|
+
watchFocus: true
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
function OptionsHandler(ownerWindow) {
|
|
1487
|
+
function mergeOptions(optionsA, optionsB) {
|
|
1488
|
+
return objectsMergeDeep(optionsA, optionsB || {});
|
|
1489
|
+
}
|
|
1490
|
+
function optionsAtMedia(options) {
|
|
1491
|
+
const optionsAtMedia = options.breakpoints || {};
|
|
1492
|
+
const matchedMediaOptions = objectKeys(optionsAtMedia).filter(media => ownerWindow.matchMedia(media).matches).map(media => optionsAtMedia[media]).reduce((a, mediaOption) => mergeOptions(a, mediaOption), {});
|
|
1493
|
+
return mergeOptions(options, matchedMediaOptions);
|
|
1494
|
+
}
|
|
1495
|
+
function optionsMediaQueries(optionsList) {
|
|
1496
|
+
return optionsList.map(options => objectKeys(options.breakpoints || {})).reduce((acc, mediaQueries) => acc.concat(mediaQueries), []).map(ownerWindow.matchMedia);
|
|
1497
|
+
}
|
|
1498
|
+
const self = {
|
|
1499
|
+
mergeOptions,
|
|
1500
|
+
optionsAtMedia,
|
|
1501
|
+
optionsMediaQueries
|
|
1502
|
+
};
|
|
1503
|
+
return self;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
function PluginsHandler(optionsHandler) {
|
|
1507
|
+
let activePlugins = [];
|
|
1508
|
+
function init(emblaApi, plugins) {
|
|
1509
|
+
activePlugins = plugins.filter(({
|
|
1510
|
+
options
|
|
1511
|
+
}) => optionsHandler.optionsAtMedia(options).active !== false);
|
|
1512
|
+
activePlugins.forEach(plugin => plugin.init(emblaApi, optionsHandler));
|
|
1513
|
+
return plugins.reduce((map, plugin) => Object.assign(map, {
|
|
1514
|
+
[plugin.name]: plugin
|
|
1515
|
+
}), {});
|
|
1516
|
+
}
|
|
1517
|
+
function destroy() {
|
|
1518
|
+
activePlugins = activePlugins.filter(plugin => plugin.destroy());
|
|
1519
|
+
}
|
|
1520
|
+
const self = {
|
|
1521
|
+
init,
|
|
1522
|
+
destroy
|
|
1523
|
+
};
|
|
1524
|
+
return self;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
function EmblaCarousel(root, userOptions, userPlugins) {
|
|
1528
|
+
const ownerDocument = root.ownerDocument;
|
|
1529
|
+
const ownerWindow = ownerDocument.defaultView;
|
|
1530
|
+
const optionsHandler = OptionsHandler(ownerWindow);
|
|
1531
|
+
const pluginsHandler = PluginsHandler(optionsHandler);
|
|
1532
|
+
const mediaHandlers = EventStore();
|
|
1533
|
+
const eventHandler = EventHandler();
|
|
1534
|
+
const {
|
|
1535
|
+
mergeOptions,
|
|
1536
|
+
optionsAtMedia,
|
|
1537
|
+
optionsMediaQueries
|
|
1538
|
+
} = optionsHandler;
|
|
1539
|
+
const {
|
|
1540
|
+
on,
|
|
1541
|
+
off,
|
|
1542
|
+
emit
|
|
1543
|
+
} = eventHandler;
|
|
1544
|
+
const reInit = reActivate;
|
|
1545
|
+
let destroyed = false;
|
|
1546
|
+
let engine;
|
|
1547
|
+
let optionsBase = mergeOptions(defaultOptions, EmblaCarousel.globalOptions);
|
|
1548
|
+
let options = mergeOptions(optionsBase);
|
|
1549
|
+
let pluginList = [];
|
|
1550
|
+
let pluginApis;
|
|
1551
|
+
let container;
|
|
1552
|
+
let slides;
|
|
1553
|
+
function storeElements() {
|
|
1554
|
+
const {
|
|
1555
|
+
container: userContainer,
|
|
1556
|
+
slides: userSlides
|
|
1557
|
+
} = options;
|
|
1558
|
+
const customContainer = isString(userContainer) ? root.querySelector(userContainer) : userContainer;
|
|
1559
|
+
container = customContainer || root.children[0];
|
|
1560
|
+
const customSlides = isString(userSlides) ? container.querySelectorAll(userSlides) : userSlides;
|
|
1561
|
+
slides = [].slice.call(customSlides || container.children);
|
|
1562
|
+
}
|
|
1563
|
+
function createEngine(options) {
|
|
1564
|
+
const engine = Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler);
|
|
1565
|
+
if (options.loop && !engine.slideLooper.canLoop()) {
|
|
1566
|
+
const optionsWithoutLoop = Object.assign({}, options, {
|
|
1567
|
+
loop: false
|
|
1568
|
+
});
|
|
1569
|
+
return createEngine(optionsWithoutLoop);
|
|
1570
|
+
}
|
|
1571
|
+
return engine;
|
|
1572
|
+
}
|
|
1573
|
+
function activate(withOptions, withPlugins) {
|
|
1574
|
+
if (destroyed) return;
|
|
1575
|
+
optionsBase = mergeOptions(optionsBase, withOptions);
|
|
1576
|
+
options = optionsAtMedia(optionsBase);
|
|
1577
|
+
pluginList = withPlugins || pluginList;
|
|
1578
|
+
storeElements();
|
|
1579
|
+
engine = createEngine(options);
|
|
1580
|
+
optionsMediaQueries([optionsBase, ...pluginList.map(({
|
|
1581
|
+
options
|
|
1582
|
+
}) => options)]).forEach(query => mediaHandlers.add(query, 'change', reActivate));
|
|
1583
|
+
if (!options.active) return;
|
|
1584
|
+
engine.translate.to(engine.location.get());
|
|
1585
|
+
engine.animation.init();
|
|
1586
|
+
engine.slidesInView.init();
|
|
1587
|
+
engine.slideFocus.init(self);
|
|
1588
|
+
engine.eventHandler.init(self);
|
|
1589
|
+
engine.resizeHandler.init(self);
|
|
1590
|
+
engine.slidesHandler.init(self);
|
|
1591
|
+
if (engine.options.loop) engine.slideLooper.loop();
|
|
1592
|
+
if (container.offsetParent && slides.length) engine.dragHandler.init(self);
|
|
1593
|
+
pluginApis = pluginsHandler.init(self, pluginList);
|
|
1594
|
+
}
|
|
1595
|
+
function reActivate(withOptions, withPlugins) {
|
|
1596
|
+
const startIndex = selectedScrollSnap();
|
|
1597
|
+
deActivate();
|
|
1598
|
+
activate(mergeOptions({
|
|
1599
|
+
startIndex
|
|
1600
|
+
}, withOptions), withPlugins);
|
|
1601
|
+
eventHandler.emit('reInit');
|
|
1602
|
+
}
|
|
1603
|
+
function deActivate() {
|
|
1604
|
+
engine.dragHandler.destroy();
|
|
1605
|
+
engine.eventStore.clear();
|
|
1606
|
+
engine.translate.clear();
|
|
1607
|
+
engine.slideLooper.clear();
|
|
1608
|
+
engine.resizeHandler.destroy();
|
|
1609
|
+
engine.slidesHandler.destroy();
|
|
1610
|
+
engine.slidesInView.destroy();
|
|
1611
|
+
engine.animation.destroy();
|
|
1612
|
+
pluginsHandler.destroy();
|
|
1613
|
+
mediaHandlers.clear();
|
|
1614
|
+
}
|
|
1615
|
+
function destroy() {
|
|
1616
|
+
if (destroyed) return;
|
|
1617
|
+
destroyed = true;
|
|
1618
|
+
mediaHandlers.clear();
|
|
1619
|
+
deActivate();
|
|
1620
|
+
eventHandler.emit('destroy');
|
|
1621
|
+
eventHandler.clear();
|
|
1622
|
+
}
|
|
1623
|
+
function scrollTo(index, jump, direction) {
|
|
1624
|
+
if (!options.active || destroyed) return;
|
|
1625
|
+
engine.scrollBody.useBaseFriction().useDuration(jump === true ? 0 : options.duration);
|
|
1626
|
+
engine.scrollTo.index(index, direction || 0);
|
|
1627
|
+
}
|
|
1628
|
+
function scrollNext(jump) {
|
|
1629
|
+
const next = engine.index.add(1).get();
|
|
1630
|
+
scrollTo(next, jump, -1);
|
|
1631
|
+
}
|
|
1632
|
+
function scrollPrev(jump) {
|
|
1633
|
+
const prev = engine.index.add(-1).get();
|
|
1634
|
+
scrollTo(prev, jump, 1);
|
|
1635
|
+
}
|
|
1636
|
+
function canScrollNext() {
|
|
1637
|
+
const next = engine.index.add(1).get();
|
|
1638
|
+
return next !== selectedScrollSnap();
|
|
1639
|
+
}
|
|
1640
|
+
function canScrollPrev() {
|
|
1641
|
+
const prev = engine.index.add(-1).get();
|
|
1642
|
+
return prev !== selectedScrollSnap();
|
|
1643
|
+
}
|
|
1644
|
+
function scrollSnapList() {
|
|
1645
|
+
return engine.scrollSnapList;
|
|
1646
|
+
}
|
|
1647
|
+
function scrollProgress() {
|
|
1648
|
+
return engine.scrollProgress.get(engine.location.get());
|
|
1649
|
+
}
|
|
1650
|
+
function selectedScrollSnap() {
|
|
1651
|
+
return engine.index.get();
|
|
1652
|
+
}
|
|
1653
|
+
function previousScrollSnap() {
|
|
1654
|
+
return engine.indexPrevious.get();
|
|
1655
|
+
}
|
|
1656
|
+
function slidesInView() {
|
|
1657
|
+
return engine.slidesInView.get();
|
|
1658
|
+
}
|
|
1659
|
+
function slidesNotInView() {
|
|
1660
|
+
return engine.slidesInView.get(false);
|
|
1661
|
+
}
|
|
1662
|
+
function plugins() {
|
|
1663
|
+
return pluginApis;
|
|
1664
|
+
}
|
|
1665
|
+
function internalEngine() {
|
|
1666
|
+
return engine;
|
|
1667
|
+
}
|
|
1668
|
+
function rootNode() {
|
|
1669
|
+
return root;
|
|
1670
|
+
}
|
|
1671
|
+
function containerNode() {
|
|
1672
|
+
return container;
|
|
1673
|
+
}
|
|
1674
|
+
function slideNodes() {
|
|
1675
|
+
return slides;
|
|
1676
|
+
}
|
|
1677
|
+
const self = {
|
|
1678
|
+
canScrollNext,
|
|
1679
|
+
canScrollPrev,
|
|
1680
|
+
containerNode,
|
|
1681
|
+
internalEngine,
|
|
1682
|
+
destroy,
|
|
1683
|
+
off,
|
|
1684
|
+
on,
|
|
1685
|
+
emit,
|
|
1686
|
+
plugins,
|
|
1687
|
+
previousScrollSnap,
|
|
1688
|
+
reInit,
|
|
1689
|
+
rootNode,
|
|
1690
|
+
scrollNext,
|
|
1691
|
+
scrollPrev,
|
|
1692
|
+
scrollProgress,
|
|
1693
|
+
scrollSnapList,
|
|
1694
|
+
scrollTo,
|
|
1695
|
+
selectedScrollSnap,
|
|
1696
|
+
slideNodes,
|
|
1697
|
+
slidesInView,
|
|
1698
|
+
slidesNotInView
|
|
1699
|
+
};
|
|
1700
|
+
activate(userOptions, userPlugins);
|
|
1701
|
+
setTimeout(() => eventHandler.emit('init'), 0);
|
|
1702
|
+
return self;
|
|
1703
|
+
}
|
|
1704
|
+
EmblaCarousel.globalOptions = undefined;
|
|
1705
|
+
|
|
1706
|
+
function useEmblaCarousel(options = {}, plugins = []) {
|
|
1707
|
+
const storedOptions = useRef(options);
|
|
1708
|
+
const storedPlugins = useRef(plugins);
|
|
1709
|
+
const [emblaApi, setEmblaApi] = useState();
|
|
1710
|
+
const [viewport, setViewport] = useState();
|
|
1711
|
+
const reInit = useCallback(() => {
|
|
1712
|
+
if (emblaApi) emblaApi.reInit(storedOptions.current, storedPlugins.current);
|
|
1713
|
+
}, [emblaApi]);
|
|
1714
|
+
useEffect(() => {
|
|
1715
|
+
if (areOptionsEqual(storedOptions.current, options)) return;
|
|
1716
|
+
storedOptions.current = options;
|
|
1717
|
+
reInit();
|
|
1718
|
+
}, [options, reInit]);
|
|
1719
|
+
useEffect(() => {
|
|
1720
|
+
if (arePluginsEqual(storedPlugins.current, plugins)) return;
|
|
1721
|
+
storedPlugins.current = plugins;
|
|
1722
|
+
reInit();
|
|
1723
|
+
}, [plugins, reInit]);
|
|
1724
|
+
useEffect(() => {
|
|
1725
|
+
if (canUseDOM() && viewport) {
|
|
1726
|
+
EmblaCarousel.globalOptions = useEmblaCarousel.globalOptions;
|
|
1727
|
+
const newEmblaApi = EmblaCarousel(viewport, storedOptions.current, storedPlugins.current);
|
|
1728
|
+
setEmblaApi(newEmblaApi);
|
|
1729
|
+
return () => newEmblaApi.destroy();
|
|
1730
|
+
} else {
|
|
1731
|
+
setEmblaApi(undefined);
|
|
1732
|
+
}
|
|
1733
|
+
}, [viewport, setEmblaApi]);
|
|
1734
|
+
return [setViewport, emblaApi];
|
|
1735
|
+
}
|
|
1736
|
+
useEmblaCarousel.globalOptions = undefined;
|
|
1737
|
+
|
|
1738
|
+
var XS_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsXs, ")");
|
|
1739
|
+
var S_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsS, ")");
|
|
1740
|
+
var M_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsM, ")");
|
|
1741
|
+
var L_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsL, ")");
|
|
1742
|
+
var XL_BREAKPOINT = "(min-width: ".concat(ArcSizeBreakpointsXl, ")");
|
|
1743
|
+
|
|
1744
|
+
var getOptions = function (itemsToScroll, loop, responsive) {
|
|
1745
|
+
var breakpoints = [
|
|
1746
|
+
[XS_BREAKPOINT, "xs"],
|
|
1747
|
+
[S_BREAKPOINT, "s"],
|
|
1748
|
+
[M_BREAKPOINT, "m"],
|
|
1749
|
+
[L_BREAKPOINT, "l"],
|
|
1750
|
+
[XL_BREAKPOINT, "xl"],
|
|
1751
|
+
];
|
|
1752
|
+
var breakpointOptions = breakpoints.reduce(function (acc, _a) {
|
|
1753
|
+
var _b;
|
|
1754
|
+
var _c;
|
|
1755
|
+
var query = _a[0], breakpoint = _a[1];
|
|
1756
|
+
return __assign(__assign({}, acc), __assign({}, ((responsive === null || responsive === void 0 ? void 0 : responsive[breakpoint])
|
|
1757
|
+
? (_b = {},
|
|
1758
|
+
_b[query] = {
|
|
1759
|
+
slidesToScroll: (_c = responsive === null || responsive === void 0 ? void 0 : responsive[breakpoint]) === null || _c === void 0 ? void 0 : _c.itemsToScroll,
|
|
1760
|
+
},
|
|
1761
|
+
_b) : {})));
|
|
1762
|
+
}, {});
|
|
1763
|
+
return {
|
|
1764
|
+
loop: loop,
|
|
1765
|
+
skipSnaps: true,
|
|
1766
|
+
align: "start",
|
|
1767
|
+
slidesToScroll: itemsToScroll,
|
|
1768
|
+
breakpoints: breakpointOptions,
|
|
1769
|
+
};
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
var getSlideWidth = function (_a) {
|
|
1773
|
+
var screenSizes = _a.screenSizes, itemsPerSlide = _a.itemsPerSlide, isPartialVisible = _a.isPartialVisible, responsive = _a.responsive, children = _a.children;
|
|
1774
|
+
var responsiveConfig = responsive &&
|
|
1775
|
+
Object.keys(screenSizes).find(function (size) {
|
|
1776
|
+
return responsive && screenSizes[size] && responsive[size];
|
|
1777
|
+
});
|
|
1778
|
+
var slideConfig = responsiveConfig
|
|
1779
|
+
? responsive[responsiveConfig]
|
|
1780
|
+
: { itemsPerSlide: itemsPerSlide, isPartialVisible: isPartialVisible };
|
|
1781
|
+
var totalItems = React__default.Children.count(children);
|
|
1782
|
+
var itemsPerView = slideConfig.itemsPerSlide > totalItems
|
|
1783
|
+
? 1
|
|
1784
|
+
: Math.max(1, slideConfig.itemsPerSlide);
|
|
1785
|
+
var widthAdjustment = slideConfig.isPartialVisible ? 10 : 0;
|
|
1786
|
+
return (100 - widthAdjustment) / itemsPerView;
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
var DotButton = function (_a) {
|
|
1790
|
+
var visibleSlideIndex = _a.visibleSlideIndex, scrollSnapIndex = _a.scrollSnapIndex, focusIndex = _a.focusIndex, onKeyDown = _a.onKeyDown, onClick = _a.onClick;
|
|
1791
|
+
var ref = useRef(null);
|
|
1792
|
+
var isSelected = visibleSlideIndex === scrollSnapIndex;
|
|
1793
|
+
useEffect(function () {
|
|
1794
|
+
var _a;
|
|
1795
|
+
if (focusIndex === scrollSnapIndex) {
|
|
1796
|
+
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1797
|
+
}
|
|
1798
|
+
}, [focusIndex, scrollSnapIndex]);
|
|
1799
|
+
return (React__default.createElement("button", { ref: ref, tabIndex: scrollSnapIndex === 0 ? 0 : -1, className: classNames("arc-Carousel-dot", {
|
|
1800
|
+
"arc-Carousel-dot--selected": isSelected,
|
|
1801
|
+
}), onKeyDown: onKeyDown(scrollSnapIndex), onClick: function () { return onClick(scrollSnapIndex); }, "aria-selected": isSelected, role: "tab", "aria-label": "Show slide ".concat(scrollSnapIndex + 1) }));
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1804
|
+
var Carousel = function (_a) {
|
|
1805
|
+
var children = _a.children, responsive = _a.responsive, _b = _a.itemsToScroll, itemsToScroll = _b === void 0 ? 1 : _b, _c = _a.itemsPerSlide, itemsPerSlide = _c === void 0 ? 1 : _c, _d = _a.withGutter, withGutter = _d === void 0 ? true : _d, _e = _a.loop, loop = _e === void 0 ? false : _e, _f = _a.isPartialVisible, isPartialVisible = _f === void 0 ? false : _f;
|
|
1806
|
+
var id = useId();
|
|
1807
|
+
var _g = useEmblaCarousel(getOptions(itemsToScroll, loop, responsive)), emblaRef = _g[0], emblaApi = _g[1];
|
|
1808
|
+
var _h = useState(), dotButtonFocusIndex = _h[0], setDotButtonFocusIndex = _h[1];
|
|
1809
|
+
var prevButtonRef = useRef(null);
|
|
1810
|
+
var _j = useState(0), visibleSlideIndex = _j[0], setVisibleSlideIndex = _j[1];
|
|
1811
|
+
var _k = useState(true), prevButtonEnabled = _k[0], setPrevButtonEnabled = _k[1];
|
|
1812
|
+
var _l = useState(true), nextButtonEnabled = _l[0], setNextButtonEnabled = _l[1];
|
|
1813
|
+
var isMinWidthArcBreakpointXs = useMediaQuery(XS_BREAKPOINT);
|
|
1814
|
+
var isMinWidthArcBreakpointS = useMediaQuery(S_BREAKPOINT);
|
|
1815
|
+
var isMinWidthArcBreakpointM = useMediaQuery(M_BREAKPOINT);
|
|
1816
|
+
var isMinWidthArcBreakpointL = useMediaQuery(L_BREAKPOINT);
|
|
1817
|
+
var isMinWidthArcBreakpointXl = useMediaQuery(XL_BREAKPOINT);
|
|
1818
|
+
var slideWidth = getSlideWidth({
|
|
1819
|
+
screenSizes: {
|
|
1820
|
+
xl: isMinWidthArcBreakpointXl,
|
|
1821
|
+
l: isMinWidthArcBreakpointL,
|
|
1822
|
+
m: isMinWidthArcBreakpointM,
|
|
1823
|
+
s: isMinWidthArcBreakpointS,
|
|
1824
|
+
xs: isMinWidthArcBreakpointXs,
|
|
1825
|
+
},
|
|
1826
|
+
itemsPerSlide: itemsPerSlide,
|
|
1827
|
+
isPartialVisible: isPartialVisible,
|
|
1828
|
+
responsive: responsive,
|
|
1829
|
+
children: children,
|
|
1830
|
+
});
|
|
1831
|
+
var scrollSnaps = Array.from({
|
|
1832
|
+
length: (emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.scrollSnapList().length) || 0,
|
|
1833
|
+
}).map(function (_, i) { return i; });
|
|
1834
|
+
var scrollPrev = useCallback(function () { return emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.scrollPrev(); }, [emblaApi]);
|
|
1835
|
+
var scrollNext = useCallback(function () { return emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.scrollNext(); }, [emblaApi]);
|
|
1836
|
+
var onSelect = useCallback(function (emblaApi) {
|
|
1837
|
+
setVisibleSlideIndex(emblaApi.selectedScrollSnap());
|
|
1838
|
+
setPrevButtonEnabled(emblaApi.canScrollPrev());
|
|
1839
|
+
setNextButtonEnabled(emblaApi.canScrollNext());
|
|
1840
|
+
}, []);
|
|
1841
|
+
var onDotButtonClick = useCallback(function (index) {
|
|
1842
|
+
if (!emblaApi)
|
|
1843
|
+
return;
|
|
1844
|
+
emblaApi.scrollTo(index);
|
|
1845
|
+
}, [emblaApi]);
|
|
1846
|
+
var onSlideKeyDown = function (e) {
|
|
1847
|
+
var _a;
|
|
1848
|
+
if (e.key === KeyNames.Escape) {
|
|
1849
|
+
prevButtonEnabled
|
|
1850
|
+
? (_a = prevButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus()
|
|
1851
|
+
: setDotButtonFocusIndex(0);
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1854
|
+
var onDotButtonKeyDown = function (index) { return function (e) {
|
|
1855
|
+
if (e.key === KeyNames.ArrowLeft) {
|
|
1856
|
+
setDotButtonFocusIndex(index === 0 ? scrollSnaps.length - 1 : index - 1);
|
|
1857
|
+
}
|
|
1858
|
+
if (e.key === KeyNames.ArrowRight) {
|
|
1859
|
+
setDotButtonFocusIndex(index + 1 === scrollSnaps.length ? 0 : index + 1);
|
|
1860
|
+
}
|
|
1861
|
+
}; };
|
|
1862
|
+
useEffect(function () {
|
|
1863
|
+
if (!emblaApi)
|
|
1864
|
+
return;
|
|
1865
|
+
onSelect(emblaApi);
|
|
1866
|
+
emblaApi.on("reInit", onSelect).on("select", onSelect);
|
|
1867
|
+
}, [emblaApi, onSelect]);
|
|
1868
|
+
useEffect(function () {
|
|
1869
|
+
if (!emblaApi)
|
|
1870
|
+
return;
|
|
1871
|
+
emblaApi.scrollTo(0);
|
|
1872
|
+
}, [
|
|
1873
|
+
emblaApi,
|
|
1874
|
+
isMinWidthArcBreakpointXs,
|
|
1875
|
+
isMinWidthArcBreakpointS,
|
|
1876
|
+
isMinWidthArcBreakpointM,
|
|
1877
|
+
isMinWidthArcBreakpointL,
|
|
1878
|
+
isMinWidthArcBreakpointXl,
|
|
1879
|
+
]);
|
|
1880
|
+
return (React__default.createElement("div", { className: "arc-Carousel" },
|
|
1881
|
+
React__default.createElement("div", { className: "arc-Carousel-container" },
|
|
1882
|
+
React__default.createElement("div", { ref: emblaRef, className: classNames("arc-Carousel-viewport", {
|
|
1883
|
+
"arc-Carousel-viewport--gutter": withGutter,
|
|
1884
|
+
}) },
|
|
1885
|
+
React__default.createElement("div", { className: "arc-Carousel-slider", role: "region", "aria-roledescription": "carousel" }, React__default.Children.map(children, function (child, i) { return (React__default.createElement("div", { onKeyDown: onSlideKeyDown, style: { flex: "0 0 ".concat(slideWidth, "%"), width: "".concat(slideWidth, "%") }, className: "arc-Carousel-slide", key: "".concat(id, "-option-").concat(i), role: "group", "aria-roledescription": "slide" }, child)); })))),
|
|
1886
|
+
React__default.createElement("div", { className: "arc-Carousel-nav" },
|
|
1887
|
+
React__default.createElement("button", { "data-testid": "previous-button", ref: prevButtonRef, className: classNames("arc-Carousel-navButton", {
|
|
1888
|
+
"arc-Carousel-navButton--hidden": !prevButtonEnabled,
|
|
1889
|
+
}), onClick: scrollPrev, "aria-label": "Show slide ".concat(visibleSlideIndex) },
|
|
1890
|
+
React__default.createElement(ThemeIcon, { size: 32, icon: "carouselLeft" })),
|
|
1891
|
+
React__default.createElement("div", { className: "arc-Carousel-dotContainer", role: "tablist" }, scrollSnaps.map(function (scrollSnapIndex) { return (React__default.createElement(DotButton, { key: "".concat(id, "-dot-").concat(scrollSnapIndex), focusIndex: dotButtonFocusIndex, scrollSnapIndex: scrollSnapIndex, visibleSlideIndex: visibleSlideIndex, onKeyDown: onDotButtonKeyDown, onClick: function (index) { return onDotButtonClick(index); } })); })),
|
|
1892
|
+
React__default.createElement("button", { "data-testid": "next-button", className: classNames("arc-Carousel-navButton", {
|
|
1893
|
+
"arc-Carousel-navButton--hidden": !nextButtonEnabled,
|
|
1894
|
+
}), onClick: scrollNext, "aria-label": "Show slide ".concat(loop && visibleSlideIndex === scrollSnaps.length - 1
|
|
1895
|
+
? 1
|
|
1896
|
+
: visibleSlideIndex + 2) },
|
|
1897
|
+
React__default.createElement(ThemeIcon, { size: 32, icon: "carouselRight" })))));
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
export { Carousel };
|