@arc-ui/components 11.25.0 → 12.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.cjs.js +16 -28
- package/dist/Alert/Alert.esm.js +16 -28
- package/dist/Alert/styles.css +1 -0
- package/dist/Align/Align.cjs.js +6 -7
- package/dist/Align/Align.esm.js +1 -2
- package/dist/Align/styles.css +1 -0
- package/dist/AppButton/AppButton.cjs.js +74 -0
- package/dist/AppButton/AppButton.esm.js +66 -0
- package/dist/AppButton/package.json +7 -0
- package/dist/AppButton/styles.css +1 -0
- package/dist/Avatar/Avatar.cjs.js +7 -8
- package/dist/Avatar/Avatar.esm.js +7 -8
- package/dist/Avatar/styles.css +1 -0
- package/dist/AvatarGroup/AvatarGroup.cjs.js +12 -13
- package/dist/AvatarGroup/AvatarGroup.esm.js +7 -8
- package/dist/AvatarGroup/styles.css +1 -0
- package/dist/Badge/Badge.cjs.js +5 -30
- package/dist/Badge/Badge.esm.js +4 -29
- package/dist/Badge/styles.css +1 -0
- package/dist/Banner/Banner.cjs.js +21 -0
- package/dist/Banner/Banner.esm.js +13 -0
- package/dist/Banner/package.json +7 -0
- package/dist/Banner/styles.css +1 -0
- package/dist/BannerWithTabs/BannerWithTabs.cjs.js +62 -0
- package/dist/BannerWithTabs/BannerWithTabs.esm.js +54 -0
- package/dist/BannerWithTabs/package.json +7 -0
- package/dist/BannerWithTabs/styles.css +1 -0
- package/dist/Box/Box.cjs.js +6 -24
- package/dist/Box/Box.esm.js +5 -23
- package/dist/Box/styles.css +1 -0
- package/dist/BrandLogo/BrandLogo.cjs.js +3 -4
- package/dist/BrandLogo/BrandLogo.esm.js +3 -4
- package/dist/BrandLogo/styles.css +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +7 -7
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +7 -7
- package/dist/Breadcrumbs/styles.css +1 -0
- package/dist/Button/Button.cjs.js +6 -8
- package/dist/Button/Button.esm.js +6 -8
- package/dist/Button/styles.css +1 -0
- package/dist/ButtonV2/ButtonV2.cjs.js +15 -0
- package/dist/ButtonV2/ButtonV2.esm.js +7 -0
- package/dist/ButtonV2/package.json +7 -0
- package/dist/ButtonV2/styles.css +1 -0
- package/dist/Calendar/Calendar.cjs.js +11 -11
- package/dist/Calendar/Calendar.esm.js +11 -11
- package/dist/Calendar/styles.css +1 -0
- package/dist/CardFooter/CardFooter.cjs.js +17 -0
- package/dist/CardFooter/CardFooter.esm.js +9 -0
- package/dist/CardFooter/package.json +7 -0
- package/dist/CardFooter/styles.css +1 -0
- package/dist/CardHeading/CardHeading.cjs.js +14 -0
- package/dist/CardHeading/CardHeading.esm.js +6 -0
- package/dist/CardHeading/package.json +7 -0
- package/dist/CardHeading/styles.css +1 -0
- package/dist/Carousel/Carousel.cjs.js +1921 -0
- package/dist/Carousel/Carousel.esm.js +1913 -0
- package/dist/Carousel/package.json +7 -0
- package/dist/Carousel/styles.css +1 -0
- package/dist/Checkbox/Checkbox.cjs.js +8 -11
- package/dist/Checkbox/Checkbox.esm.js +8 -11
- package/dist/Checkbox/styles.css +1 -0
- package/dist/Columns/Columns.cjs.js +2 -3
- package/dist/Columns/Columns.esm.js +2 -3
- package/dist/Columns/styles.css +1 -0
- package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +10 -0
- package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +2 -0
- package/dist/ConditionalWrapper/package.json +7 -0
- package/dist/ContentSwitcher/ContentSwitcher.cjs.js +20 -0
- package/dist/ContentSwitcher/ContentSwitcher.esm.js +12 -0
- package/dist/ContentSwitcher/package.json +7 -0
- package/dist/ContentSwitcher/styles.css +1 -0
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +23 -0
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +15 -0
- package/dist/ContentSwitcherDropdown/package.json +7 -0
- package/dist/ContentSwitcherDropdown/styles.css +1 -0
- package/dist/DatePicker/DatePicker.cjs.js +31 -563
- package/dist/DatePicker/DatePicker.esm.js +22 -554
- package/dist/DatePicker/styles.css +1 -0
- package/dist/Disclosure/Disclosure.cjs.js +8 -9
- package/dist/Disclosure/Disclosure.esm.js +5 -6
- package/dist/Disclosure/styles.css +1 -0
- package/dist/DisclosureMini/DisclosureMini.cjs.js +5 -6
- package/dist/DisclosureMini/DisclosureMini.esm.js +5 -6
- package/dist/DisclosureMini/styles.css +1 -0
- package/dist/Download/Download.cjs.js +16 -0
- package/dist/Download/Download.esm.js +8 -0
- package/dist/Download/package.json +7 -0
- package/dist/Download/styles.css +1 -0
- package/dist/Elevation/Elevation.cjs.js +4 -4
- package/dist/Elevation/Elevation.esm.js +1 -1
- package/dist/Elevation/styles.css +1 -0
- package/dist/Filter/Filter.cjs.js +4 -4
- package/dist/Filter/Filter.esm.js +4 -4
- package/dist/Filter/styles.css +1 -0
- package/dist/FormControl/FormControl.cjs.js +7 -9
- package/dist/FormControl/FormControl.esm.js +7 -9
- package/dist/FormControl/styles.css +1 -0
- package/dist/Grid/Grid.cjs.js +2 -3
- package/dist/Grid/Grid.esm.js +2 -3
- package/dist/Grid/styles.css +1 -0
- package/dist/Group/Group.cjs.js +3 -3
- package/dist/Group/Group.esm.js +3 -3
- package/dist/Group/styles.css +1 -0
- package/dist/Heading/Heading.cjs.js +3 -4
- package/dist/Heading/Heading.esm.js +3 -4
- package/dist/Heading/styles.css +1 -0
- package/dist/HeroBanner/HeroBanner.cjs.js +28 -0
- package/dist/HeroBanner/HeroBanner.esm.js +20 -0
- package/dist/HeroBanner/package.json +7 -0
- package/dist/HeroButton/HeroButton.cjs.js +15 -0
- package/dist/HeroButton/HeroButton.esm.js +7 -0
- package/dist/HeroButton/package.json +7 -0
- package/dist/HeroButton/styles.css +1 -0
- package/dist/Hidden/Hidden.cjs.js +4 -4
- package/dist/Hidden/Hidden.esm.js +1 -1
- package/dist/Hidden/styles.css +1 -0
- package/dist/Icon/Icon.cjs.js +4 -5
- package/dist/Icon/Icon.esm.js +4 -5
- package/dist/Icon/styles.css +1 -0
- package/dist/Image/Image.cjs.js +2 -3
- package/dist/Image/Image.esm.js +2 -3
- package/dist/Image/styles.css +1 -0
- package/dist/ImpactCard/ImpactCard.cjs.js +17 -16
- package/dist/ImpactCard/ImpactCard.esm.js +14 -13
- package/dist/ImpactCard/styles.css +1 -0
- package/dist/InformationCard/InformationCard.cjs.js +36 -48
- package/dist/InformationCard/InformationCard.esm.js +34 -46
- package/dist/InformationCard/styles.css +1 -0
- package/dist/Link/Link.cjs.js +11 -12
- package/dist/Link/Link.esm.js +6 -7
- package/dist/Link/styles.css +1 -0
- package/dist/Markup/Markup.cjs.js +5 -5
- package/dist/Markup/Markup.esm.js +2 -2
- package/dist/Markup/styles.css +1 -0
- package/dist/MediaCard/MediaCard.cjs.js +19 -47
- package/dist/MediaCard/MediaCard.esm.js +18 -46
- package/dist/MediaCard/styles.css +1 -0
- package/dist/Modal/Modal.cjs.js +343 -254
- package/dist/Modal/Modal.esm.js +323 -252
- package/dist/Modal/styles.css +1 -0
- package/dist/PageBanner/PageBanner.cjs.js +28 -0
- package/dist/PageBanner/PageBanner.esm.js +20 -0
- package/dist/PageBanner/package.json +7 -0
- package/dist/Pagination/Pagination.cjs.js +9 -15
- package/dist/Pagination/Pagination.esm.js +7 -13
- package/dist/Pagination/styles.css +1 -0
- package/dist/PaginationSimple/PaginationSimple.cjs.js +78 -35
- package/dist/PaginationSimple/PaginationSimple.esm.js +77 -34
- package/dist/PaginationSimple/styles.css +1 -0
- package/dist/Poster/Poster.cjs.js +4 -5
- package/dist/Poster/Poster.esm.js +4 -5
- package/dist/Poster/styles.css +1 -0
- package/dist/ProgressBar/ProgressBar.cjs.js +15 -42
- package/dist/ProgressBar/ProgressBar.esm.js +12 -39
- package/dist/ProgressBar/styles.css +1 -0
- package/dist/ProgressStepper/ProgressStepper.cjs.js +5 -6
- package/dist/ProgressStepper/ProgressStepper.esm.js +5 -6
- package/dist/ProgressStepper/styles.css +1 -0
- package/dist/RadioGroup/RadioGroup.cjs.js +8 -10
- package/dist/RadioGroup/RadioGroup.esm.js +8 -10
- package/dist/RadioGroup/styles.css +1 -0
- package/dist/Rule/Rule.cjs.js +4 -4
- package/dist/Rule/Rule.esm.js +2 -2
- package/dist/Rule/styles.css +1 -0
- package/dist/ScrollToTop/ScrollToTop.cjs.js +11 -9
- package/dist/ScrollToTop/ScrollToTop.esm.js +9 -7
- package/dist/ScrollToTop/styles.css +1 -0
- package/dist/Section/Section.cjs.js +2 -2
- package/dist/Section/Section.esm.js +2 -2
- package/dist/Section/styles.css +1 -0
- package/dist/Select/Select.cjs.js +38 -1177
- package/dist/Select/Select.esm.js +26 -1165
- package/dist/Select/styles.css +1 -0
- package/dist/SiteFooter/SiteFooter.cjs.js +9 -34
- package/dist/SiteFooter/SiteFooter.esm.js +9 -34
- package/dist/SiteFooter/styles.css +1 -0
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +14 -14
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +14 -14
- package/dist/SiteHeaderV2/styles.css +1 -0
- package/dist/SkipLink/SkipLink.cjs.js +4 -4
- package/dist/SkipLink/SkipLink.esm.js +3 -3
- package/dist/SkipLink/styles.css +1 -0
- package/dist/{Base/Base.cjs.js → Spinner/Spinner.cjs.js} +3 -3
- package/dist/Spinner/Spinner.esm.js +4 -0
- package/dist/Spinner/package.json +7 -0
- package/dist/Spinner/styles.css +1 -0
- package/dist/Surface/Surface.cjs.js +2 -2
- package/dist/Surface/Surface.esm.js +2 -2
- package/dist/Surface/styles.css +1 -0
- package/dist/Switch/Switch.cjs.js +25 -400
- package/dist/Switch/Switch.esm.js +14 -389
- package/dist/Switch/styles.css +1 -0
- package/dist/Tabs/Tabs.cjs.js +9 -12
- package/dist/Tabs/Tabs.esm.js +9 -12
- package/dist/Tabs/styles.css +1 -0
- package/dist/Tag/Tag.cjs.js +77 -8
- package/dist/Tag/Tag.esm.js +76 -7
- package/dist/Tag/styles.css +1 -0
- package/dist/Text/Text.cjs.js +3 -4
- package/dist/Text/Text.esm.js +3 -4
- package/dist/Text/styles.css +1 -0
- package/dist/TextArea/TextArea.cjs.js +68 -58
- package/dist/TextArea/TextArea.esm.js +66 -56
- package/dist/TextArea/styles.css +1 -0
- package/dist/TextInput/TextInput.cjs.js +8 -11
- package/dist/TextInput/TextInput.esm.js +8 -11
- package/dist/TextInput/styles.css +1 -0
- package/dist/Theme/Theme.cjs.js +31 -0
- package/dist/Theme/Theme.esm.js +22 -0
- package/dist/Theme/package.json +7 -0
- package/dist/Theme/styles.css +1 -0
- package/dist/ThemeIcon/ThemeIcon.cjs.js +13 -0
- package/dist/ThemeIcon/ThemeIcon.esm.js +5 -0
- package/dist/ThemeIcon/package.json +7 -0
- package/dist/ThemeIcon/styles.css +1 -0
- package/dist/Toast/Toast.cjs.js +8 -14
- package/dist/Toast/Toast.esm.js +8 -14
- package/dist/Toast/styles.css +1 -0
- package/dist/Truncate/Truncate.cjs.js +3 -3
- package/dist/Truncate/Truncate.esm.js +3 -3
- package/dist/Truncate/styles.css +1 -0
- package/dist/TypographyCard/TypographyCard.cjs.js +15 -14
- package/dist/TypographyCard/TypographyCard.esm.js +13 -12
- package/dist/TypographyCard/styles.css +1 -0
- package/dist/UniversalHeader/UniversalHeader.cjs.js +3 -3
- package/dist/UniversalHeader/UniversalHeader.esm.js +3 -3
- package/dist/UniversalHeader/styles.css +1 -0
- package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
- package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
- package/dist/VerticalSpace/styles.css +1 -0
- package/dist/VideoPlayer/VideoPlayer.cjs.js +3025 -0
- package/dist/VideoPlayer/VideoPlayer.esm.js +3017 -0
- package/dist/VideoPlayer/package.json +7 -0
- package/dist/VideoPlayer/styles.css +1 -0
- package/dist/Visible/Visible.cjs.js +4 -4
- package/dist/Visible/Visible.esm.js +1 -1
- package/dist/Visible/styles.css +1 -0
- package/dist/VisuallyHidden/VisuallyHidden.cjs.js +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.esm.js +2 -1
- package/dist/VisuallyHidden/styles.css +1 -0
- package/dist/_shared/cjs/Avatar-d37e7dee.js +48 -0
- package/dist/_shared/cjs/Badge-e5e57c0d.js +17 -0
- package/dist/_shared/cjs/Banner-a28364b4.js +66 -0
- package/dist/_shared/cjs/Box-a8f42d4f.js +29 -0
- package/dist/_shared/cjs/{BrandLogo-aea340c8.js → BrandLogo-5aef900a.js} +6 -7
- package/dist/_shared/cjs/{Breadcrumbs-c6eaf5c4.js → Breadcrumbs-edf76698.js} +13 -13
- package/dist/_shared/cjs/{BtIconAlert.esm-1a0ff9f0.js → BtIconArrowRight.esm-6053bb79.js} +3 -7
- package/dist/_shared/cjs/BtIconPlayFill.esm-b8997cfc.js +30 -0
- package/dist/_shared/cjs/{Button-6ba21d3b.js → Button-82df14c9.js} +11 -15
- package/dist/_shared/cjs/ButtonV2-0679b44b.js +53 -0
- package/dist/_shared/cjs/Calendar-d2511ee9.js +1927 -0
- package/dist/_shared/cjs/{CardFooter-ff015d7d.js → CardFooter-facb09e6.js} +11 -14
- package/dist/_shared/cjs/CardHeading-a7d8d472.js +16 -0
- package/dist/_shared/cjs/Checkbox-d34c19c4.js +70 -0
- package/dist/_shared/cjs/{Columns-ae4f8cef.js → Columns-e5f9406b.js} +8 -16
- package/dist/_shared/cjs/Combination-06cc56d0.js +1203 -0
- package/dist/_shared/cjs/ContentSwitcher-df2381c9.js +99 -0
- package/dist/_shared/cjs/ContentSwitcherDropdown-91856b98.js +64 -0
- package/dist/_shared/cjs/DatePicker-3abcf361.js +939 -0
- package/dist/_shared/cjs/{DisclosureMini-09c749e5.js → DisclosureMini-64a1c682.js} +10 -12
- package/dist/_shared/cjs/Download-45dc0d20.js +43 -0
- package/dist/_shared/cjs/{Filter-f9506dfa.js → Filter-c93d809e.js} +14 -14
- package/dist/_shared/cjs/{FormControl-68258ce1.js → FormControl-09c28bbb.js} +20 -17
- package/dist/_shared/cjs/Grid-102905c8.js +45 -0
- package/dist/_shared/cjs/{Group-0429741a.js → Group-33f84a2f.js} +8 -15
- package/dist/_shared/cjs/{Heading-27cba320.js → Heading-b4b65724.js} +8 -8
- package/dist/_shared/cjs/HeroButton-db55ff2a.js +126 -0
- package/dist/_shared/cjs/Icon-5dd78f2b.js +47 -0
- package/dist/_shared/cjs/Image-bb696c61.js +55 -0
- package/dist/_shared/cjs/MediaCard-158890b3.js +65 -0
- package/dist/_shared/cjs/{Poster-9b48fd61.js → Poster-11d2f8af.js} +14 -15
- package/dist/_shared/cjs/Preview-0bf3f6e8.js +167 -0
- package/dist/_shared/cjs/{ProgressStepper-491f0286.js → ProgressStepper-65294193.js} +24 -27
- package/dist/_shared/cjs/{RadioGroup-26dc00fc.js → RadioGroup-4fe1c546.js} +12 -12
- package/dist/_shared/cjs/{Section-59804166.js → Section-4415d756.js} +4 -4
- package/dist/_shared/cjs/{SiteFooter-20d5a9fa.js → SiteFooter-e741eb87.js} +14 -15
- package/dist/_shared/cjs/{SiteHeaderV2-ce1c8737.js → SiteHeaderV2-e0ae0718.js} +58 -61
- package/dist/_shared/cjs/Spinner-0f578e7f.js +24 -0
- package/dist/_shared/cjs/Surface-ca708a8c.js +175 -0
- package/dist/_shared/cjs/Tabs-a587b50f.js +90 -0
- package/dist/_shared/cjs/{Text-606ca3a2.js → Text-1b3e4fb6.js} +7 -7
- package/dist/_shared/cjs/{TextInput-8d139489.js → TextInput-5e533805.js} +12 -12
- package/dist/_shared/cjs/ThemeIcon-cf6ddb34.js +26 -0
- package/dist/_shared/cjs/{Toast-26207fef.js → Toast-e088fa5d.js} +35 -40
- package/dist/_shared/cjs/{UniversalHeader-b8389447.js → UniversalHeader-de415648.js} +7 -14
- package/dist/_shared/cjs/{VerticalSpace-dc53bb70.js → VerticalSpace-a5cf4d4e.js} +8 -8
- package/dist/_shared/cjs/{VisuallyHidden-b0de4c7b.js → VisuallyHidden-c691ea4d.js} +3 -2
- package/dist/_shared/cjs/_commonjsHelpers-56412ec5.js +21 -0
- package/dist/_shared/cjs/component-aa9fcdbb.js +505 -0
- package/dist/_shared/cjs/{debounce-123468fb.js → debounce-a74c28cf.js} +2 -2
- package/dist/_shared/cjs/{index-77ab5c6a.js → floating-ui.react-dom-08b8b87c.js} +12 -284
- package/dist/_shared/cjs/{Tabs-bc9fac46.js → index-1e7a1fce.js} +20 -123
- package/dist/_shared/{esm/Calendar-ea232839.js → cjs/index-28fbfd5b.js} +12 -1900
- package/dist/_shared/cjs/index-2bf59363.js +44 -0
- package/dist/_shared/cjs/{index-d38f1bd0.js → index-527f962b.js} +3 -3
- package/dist/_shared/cjs/index-568ebc78.js +2204 -0
- package/dist/_shared/cjs/{index-dd1d18ea.js → index-76f7dd53.js} +52 -37
- package/dist/_shared/cjs/{index-6eb396a3.js → index-879e71ee.js} +8 -1
- package/dist/_shared/cjs/index-ba3141f5.js +72 -0
- package/dist/_shared/cjs/{index-9f99d686.js → index-dbc843d3.js} +1 -1
- package/dist/_shared/cjs/index.es-0c2c97f4.js +355 -0
- package/dist/_shared/cjs/index.es-0f681622.js +13 -0
- package/dist/_shared/cjs/{use-media-query-e61881d8.js → use-media-query-d34c83b9.js} +0 -11
- package/dist/_shared/esm/{Avatar-320313f0.js → Avatar-f9df2686.js} +6 -24
- package/dist/_shared/esm/Badge-ec093004.js +11 -0
- package/dist/_shared/esm/Banner-1b709fc7.js +60 -0
- package/dist/_shared/esm/Box-0516cf8c.js +23 -0
- package/dist/_shared/esm/{BrandLogo-1af78f76.js → BrandLogo-640e58ed.js} +2 -3
- package/dist/_shared/esm/{Breadcrumbs-7d55e1a6.js → Breadcrumbs-58ab8ba0.js} +10 -10
- package/dist/_shared/esm/{BtIconAlert.esm-a4608d47.js → BtIconArrowRight.esm-93da96bb.js} +3 -7
- package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +24 -0
- package/dist/_shared/esm/{Button-a7d134c6.js → Button-6d09ead2.js} +6 -10
- package/dist/_shared/esm/ButtonV2-b35cea64.js +47 -0
- package/dist/_shared/esm/Calendar-d56cdead.js +1918 -0
- package/dist/_shared/esm/{CardFooter-e13f77b0.js → CardFooter-97261b1c.js} +9 -12
- package/dist/_shared/esm/CardHeading-4e020d2e.js +10 -0
- package/dist/_shared/esm/{Checkbox-588619c7.js → Checkbox-a687c6cd.js} +20 -12
- package/dist/_shared/esm/{Columns-d96b7425.js → Columns-767e7860.js} +2 -10
- package/dist/_shared/esm/Combination-71be1a15.js +1163 -0
- package/dist/_shared/esm/ContentSwitcher-bc952e2f.js +93 -0
- package/dist/_shared/esm/ContentSwitcherDropdown-1675387e.js +58 -0
- package/dist/_shared/esm/DatePicker-dd060b1c.js +910 -0
- package/dist/_shared/esm/{DisclosureMini-56719716.js → DisclosureMini-9caa350c.js} +8 -10
- package/dist/_shared/esm/Download-07f5e3dd.js +37 -0
- package/dist/_shared/esm/{Filter-258ba675.js → Filter-284297be.js} +11 -11
- package/dist/_shared/esm/{FormControl-8e836656.js → FormControl-350bb1c8.js} +15 -12
- package/dist/_shared/esm/{Grid-07dbf4bd.js → Grid-5d1afe1a.js} +4 -4
- package/dist/_shared/esm/{Group-73fdb896.js → Group-64dee285.js} +3 -10
- package/dist/_shared/esm/{Heading-d16e0e53.js → Heading-e83f0d49.js} +5 -5
- package/dist/_shared/esm/HeroButton-32fec849.js +120 -0
- package/dist/_shared/esm/Icon-6fef56b3.js +41 -0
- package/dist/_shared/esm/{Image-12fbd327.js → Image-45c7760b.js} +14 -5
- package/dist/_shared/esm/MediaCard-38c7a943.js +59 -0
- package/dist/_shared/esm/{Poster-4ec2f679.js → Poster-f248e28b.js} +7 -8
- package/dist/_shared/esm/Preview-43b2a75d.js +161 -0
- package/dist/_shared/esm/{ProgressStepper-7eba3a6a.js → ProgressStepper-9bb4706f.js} +18 -21
- package/dist/_shared/esm/{RadioGroup-427652ac.js → RadioGroup-84c7ca35.js} +9 -9
- package/dist/_shared/esm/{Section-73781b56.js → Section-3ab74edb.js} +1 -1
- package/dist/_shared/esm/{SiteFooter-86f910b4.js → SiteFooter-7317b40e.js} +11 -12
- package/dist/_shared/esm/{SiteHeaderV2-a7c1b1cb.js → SiteHeaderV2-6d4af7e5.js} +30 -33
- package/dist/_shared/esm/Spinner-7c6f320f.js +18 -0
- package/dist/_shared/esm/Surface-201aa0d6.js +165 -0
- package/dist/_shared/esm/Tabs-ab8e189d.js +84 -0
- package/dist/_shared/esm/{Text-14f586ac.js → Text-dc3f9cb5.js} +5 -5
- package/dist/_shared/esm/{TextInput-c0388103.js → TextInput-0707edc3.js} +6 -6
- package/dist/_shared/esm/ThemeIcon-69de5351.js +20 -0
- package/dist/_shared/esm/{Toast-fcbfc194.js → Toast-e3ab54f9.js} +14 -19
- package/dist/_shared/esm/{UniversalHeader-80c7313f.js → UniversalHeader-15169a0d.js} +5 -12
- package/dist/_shared/esm/{VerticalSpace-43cd9138.js → VerticalSpace-4b6b7468.js} +5 -5
- package/dist/_shared/esm/VisuallyHidden-59f004f5.js +12 -0
- package/dist/_shared/esm/_commonjsHelpers-0109d574.js +18 -0
- package/dist/_shared/esm/component-4448135f.js +476 -0
- package/dist/_shared/esm/{debounce-6fed6b84.js → debounce-c8e41002.js} +1 -1
- package/dist/_shared/esm/{index-b84a20c6.js → floating-ui.react-dom-1bb71aae.js} +4 -281
- package/dist/_shared/esm/index-0ae42785.js +2169 -0
- package/dist/_shared/esm/{index-efa9be1a.js → index-13458236.js} +9 -2
- package/dist/_shared/esm/{index-044da8d0.js → index-2403936c.js} +1 -1
- package/dist/_shared/esm/index-6bdce6c5.js +69 -0
- package/dist/_shared/esm/{index-ca72c9d5.js → index-7868cc59.js} +1 -1
- package/dist/_shared/esm/{index-7b531fa7.js → index-7f23bb37.js} +48 -34
- package/dist/_shared/esm/index-a41a5e50.js +41 -0
- package/dist/_shared/esm/{Tabs-9485cab6.js → index-b051f161.js} +6 -108
- package/dist/_shared/{cjs/Calendar-b022545c.js → esm/index-ce6dee84.js} +44 -1954
- package/dist/_shared/esm/index.es-be971b8d.js +9 -0
- package/dist/_shared/esm/index.es-fc59ba8f.js +348 -0
- package/dist/_shared/esm/{use-media-query-4c807227.js → use-media-query-d3622da8.js} +1 -9
- package/dist/index.es.js +18198 -40375
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +18249 -40418
- package/dist/index.js.map +1 -1
- package/dist/styles.css +15 -11
- package/dist/types/components/Alert/Alert.d.ts +3 -5
- package/dist/types/components/AppButton/AppButton.d.ts +9 -0
- package/dist/types/components/AppButton/icons/AppStore.d.ts +2 -0
- package/dist/types/components/AppButton/icons/GooglePlay.d.ts +2 -0
- package/dist/types/components/AppButton/index.d.ts +1 -0
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Avatar/types/avatar-image.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts +0 -8
- package/dist/types/components/Banner/Banner.d.ts +68 -0
- package/dist/types/components/Banner/index.d.ts +1 -0
- package/dist/types/components/BannerWithTabs/BannerWithTabs.d.ts +17 -0
- package/dist/types/components/BannerWithTabs/index.d.ts +1 -0
- package/dist/types/components/Box/Box.d.ts +4 -0
- package/dist/types/components/BrandLogo/BrandLogo.d.ts +2 -2
- package/dist/types/components/ButtonV2/ButtonV2.d.ts +79 -0
- package/dist/types/components/ButtonV2/index.d.ts +1 -0
- package/dist/types/{private-components → components}/CardFooter/CardFooter.d.ts +1 -1
- package/dist/types/components/CardFooter/index.d.ts +1 -0
- package/dist/types/{private-components → components}/CardHeading/CardHeading.d.ts +3 -3
- package/dist/types/components/CardHeading/index.d.ts +1 -0
- package/dist/types/components/Carousel/Carousel.d.ts +34 -0
- package/dist/types/components/Carousel/components/DotButton.d.ts +10 -0
- package/dist/types/components/Carousel/constants/breakpoints.d.ts +5 -0
- package/dist/types/components/Carousel/helpers/get-options.d.ts +3 -0
- package/dist/types/components/Carousel/helpers/get-slide-width.d.ts +12 -0
- package/dist/types/components/Carousel/index.d.ts +1 -0
- package/dist/types/components/Carousel/types/breakpoints.d.ts +1 -0
- package/dist/types/components/Carousel/types/keynames.d.ts +5 -0
- package/dist/types/components/Carousel/types/responsive.d.ts +3 -0
- package/dist/types/components/Carousel/types/screen-sizes.d.ts +2 -0
- package/dist/types/components/Carousel/types/slide-config.d.ts +5 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +8 -5
- package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +32 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +12 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +24 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +17 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcher/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +57 -0
- package/dist/types/components/ContentSwitcherDropdown/index.d.ts +1 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/components/Disclosure/index.d.ts +1 -1
- package/dist/types/components/Download/Download.d.ts +41 -0
- package/dist/types/components/Download/index.d.ts +1 -0
- package/dist/types/components/FormControl/FormControl.d.ts +1 -1
- package/dist/types/components/Grid/Grid.types.d.ts +2 -0
- package/dist/types/components/Grid/components/Col/Col.d.ts +2 -1
- package/dist/types/components/Grid/components/Row/Row.d.ts +2 -1
- package/dist/types/components/Grid/index.d.ts +1 -1
- package/dist/types/components/Heading/Heading.d.ts +4 -0
- package/dist/types/components/Heading/index.d.ts +1 -1
- package/dist/types/components/HeroBanner/HeroBanner.d.ts +5 -0
- package/dist/types/components/HeroBanner/index.d.ts +1 -0
- package/dist/types/components/HeroButton/HeroButton.d.ts +66 -0
- package/dist/types/components/HeroButton/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +2 -2
- package/dist/types/components/Image/Image.d.ts +4 -0
- package/dist/types/components/ImpactCard/ImpactCard.d.ts +9 -4
- package/dist/types/components/ImpactCard/index.d.ts +1 -1
- package/dist/types/components/InformationCard/InformationCard.d.ts +7 -7
- package/dist/types/components/InformationCard/index.d.ts +1 -1
- package/dist/types/components/MediaCard/MediaCard.d.ts +7 -6
- package/dist/types/components/MediaCard/index.d.ts +1 -1
- package/dist/types/components/MediaCard/types/index.d.ts +2 -0
- package/dist/types/components/MediaCard/types/media-card-image.d.ts +4 -0
- package/dist/types/components/MediaCard/types/media-card-video.d.ts +4 -0
- package/dist/types/components/Modal/Modal.d.ts +2 -2
- package/dist/types/components/PageBanner/PageBanner.d.ts +5 -0
- package/dist/types/components/PageBanner/index.d.ts +1 -0
- package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +21 -41
- package/dist/types/components/Poster/Poster.d.ts +2 -2
- package/dist/types/components/ProgressBar/constants/progress-bar-icon-map.d.ts +2 -2
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +9 -1
- package/dist/types/components/SiteFooter/SiteFooter.d.ts +0 -4
- package/dist/types/components/SiteFooter/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/components/Panel/Panel.d.ts +1 -1
- package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +1 -0
- package/dist/types/components/Spinner/Spinner.d.ts +16 -0
- package/dist/types/components/Spinner/index.d.ts +1 -0
- package/dist/types/components/Surface/Surface.d.ts +7 -3
- package/dist/types/components/Switch/Switch.d.ts +5 -1
- package/dist/types/components/Tabs/TabsList/TabsList.d.ts +5 -0
- package/dist/types/components/Text/Text.d.ts +4 -0
- package/dist/types/components/TextArea/TextArea.d.ts +8 -0
- package/dist/types/components/TextInput/TextInput.d.ts +6 -4
- package/dist/types/components/Theme/Theme.d.ts +21 -0
- package/dist/types/components/Theme/index.d.ts +1 -0
- package/dist/types/components/ThemeIcon/ThemeIcon.d.ts +18 -0
- package/dist/types/components/ThemeIcon/icon-names.d.ts +1 -0
- package/dist/types/components/ThemeIcon/index.d.ts +1 -0
- package/dist/types/components/Truncate/Truncate.d.ts +1 -1
- package/dist/types/components/TypographyCard/TypographyCard.d.ts +9 -4
- package/dist/types/components/TypographyCard/index.d.ts +1 -1
- package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +27 -0
- package/dist/types/components/VideoPlayer/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +15 -6
- package/dist/types/helpers/get-theme-img.d.ts +6 -0
- package/dist/types/helpers/index.d.ts +1 -2
- package/dist/types/hooks/index.d.ts +2 -4
- package/dist/types/hooks/private/index.d.ts +5 -0
- package/dist/types/hooks/private/use-aria-describedby/index.d.ts +1 -0
- package/dist/types/hooks/private/use-interaction-mode/index.d.ts +1 -0
- package/dist/types/hooks/private/use-numeric-input/index.d.ts +1 -0
- package/dist/types/hooks/{use-numeric-input.d.ts → private/use-numeric-input/use-numeric-input.d.ts} +3 -3
- package/dist/types/hooks/private/use-pagination/index.d.ts +1 -0
- package/dist/types/hooks/private/use-theme-element/index.d.ts +1 -0
- package/dist/types/hooks/public/index.d.ts +1 -0
- package/dist/types/hooks/public/use-media-query/index.d.ts +1 -0
- package/dist/types/hooks/{use-media-query.d.ts → public/use-media-query/use-media-query.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/styles.d.ts +16 -33
- package/dist/use-media-query/package.json +7 -0
- package/dist/use-media-query/use-media-query.cjs.js +10 -0
- package/dist/use-media-query/use-media-query.esm.js +2 -0
- package/package.json +59 -41
- package/dist/Base/Base.esm.js +0 -4
- package/dist/Base/package.json +0 -7
- package/dist/Card/Card.cjs.js +0 -19
- package/dist/Card/Card.esm.js +0 -11
- package/dist/Card/package.json +0 -7
- package/dist/Clock/Clock.cjs.js +0 -48
- package/dist/Clock/Clock.esm.js +0 -39
- package/dist/Clock/package.json +0 -7
- package/dist/Curve/Curve.cjs.js +0 -13
- package/dist/Curve/Curve.esm.js +0 -5
- package/dist/Curve/package.json +0 -7
- package/dist/SiteHeader/SiteHeader.cjs.js +0 -25
- package/dist/SiteHeader/SiteHeader.esm.js +0 -16
- package/dist/SiteHeader/package.json +0 -7
- package/dist/_shared/cjs/Avatar-f1b1c129.js +0 -66
- package/dist/_shared/cjs/Base-4676f12e.js +0 -25
- package/dist/_shared/cjs/BtIconArrowRight.esm-50d96943.js +0 -54
- package/dist/_shared/cjs/BtIconArrowRightFill.esm-435cf4bd.js +0 -26
- package/dist/_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js +0 -26
- package/dist/_shared/cjs/BtIconChevronLeftMid.esm-0aaa6770.js +0 -28
- package/dist/_shared/cjs/BtIconCrossAlt2Px.esm-1452b14b.js +0 -26
- package/dist/_shared/cjs/BtIconTick.esm-844eac6c.js +0 -80
- package/dist/_shared/cjs/BtIconTickAlt2Px.esm-57c89acc.js +0 -26
- package/dist/_shared/cjs/Card-78a70e63.js +0 -126
- package/dist/_shared/cjs/Checkbox-0253327b.js +0 -62
- package/dist/_shared/cjs/Combination-9974f2e2.js +0 -1330
- package/dist/_shared/cjs/Curve-b5117889.js +0 -33
- package/dist/_shared/cjs/Grid-da776e77.js +0 -45
- package/dist/_shared/cjs/Icon-b46897a3.js +0 -54
- package/dist/_shared/cjs/Image-e873b8fc.js +0 -46
- package/dist/_shared/cjs/SiteHeader.rehydrator-9d8f3dad.js +0 -669
- package/dist/_shared/cjs/Surface-038db6e1.js +0 -57
- package/dist/_shared/cjs/Tag-73a59171.js +0 -84
- package/dist/_shared/cjs/extends-8c5e4b48.js +0 -18
- package/dist/_shared/cjs/filter-data-attrs-1c9a530c.js +0 -227
- package/dist/_shared/cjs/index-74004a9c.js +0 -23
- package/dist/_shared/cjs/index-a31e64a9.js +0 -27
- package/dist/_shared/cjs/index-dcfdd5da.js +0 -11
- package/dist/_shared/cjs/suffix-modifier-64dcd338.js +0 -19
- package/dist/_shared/esm/Base-211ca3a4.js +0 -18
- package/dist/_shared/esm/BtIconArrowRight.esm-9b181878.js +0 -46
- package/dist/_shared/esm/BtIconArrowRightFill.esm-99019d1a.js +0 -20
- package/dist/_shared/esm/BtIconChevronDown2Px.esm-217276c2.js +0 -20
- package/dist/_shared/esm/BtIconChevronLeftMid.esm-1ed8330b.js +0 -22
- package/dist/_shared/esm/BtIconCrossAlt2Px.esm-7165ab1a.js +0 -20
- package/dist/_shared/esm/BtIconTick.esm-e265098f.js +0 -72
- package/dist/_shared/esm/BtIconTickAlt2Px.esm-0bc2ded0.js +0 -20
- package/dist/_shared/esm/Card-a4b78406.js +0 -120
- package/dist/_shared/esm/Combination-e9f7e64e.js +0 -1301
- package/dist/_shared/esm/Curve-e05b3c3f.js +0 -27
- package/dist/_shared/esm/Icon-15799695.js +0 -48
- package/dist/_shared/esm/SiteHeader.rehydrator-2ec02ee7.js +0 -662
- package/dist/_shared/esm/Surface-0ca6817d.js +0 -48
- package/dist/_shared/esm/Tag-cb35d57b.js +0 -78
- package/dist/_shared/esm/VisuallyHidden-06692fd3.js +0 -11
- package/dist/_shared/esm/extends-8cc61aad.js +0 -16
- package/dist/_shared/esm/filter-data-attrs-ea8f4ed4.js +0 -220
- package/dist/_shared/esm/index-25a5b393.js +0 -25
- package/dist/_shared/esm/index-2cfab9f2.js +0 -21
- package/dist/_shared/esm/index-a624de47.js +0 -9
- package/dist/_shared/esm/suffix-modifier-3d548e45.js +0 -17
- package/dist/types/components/Base/Base.d.ts +0 -20
- package/dist/types/components/Base/index.d.ts +0 -1
- package/dist/types/components/Card/Card.d.ts +0 -132
- package/dist/types/components/Card/index.d.ts +0 -1
- package/dist/types/components/Clock/Clock.d.ts +0 -17
- package/dist/types/components/Clock/Clock.rehydrator.d.ts +0 -2
- package/dist/types/components/Clock/index.d.ts +0 -2
- package/dist/types/components/Curve/Curve.d.ts +0 -34
- package/dist/types/components/Curve/index.d.ts +0 -1
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Todo.d.ts +0 -2
- package/dist/types/components/SiteFooter/SiteFooter.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +0 -79
- package/dist/types/components/SiteHeader/SiteHeader.rehydrator.d.ts +0 -8
- package/dist/types/components/SiteHeader/components/BackButton/BackButton.d.ts +0 -5
- package/dist/types/components/SiteHeader/components/BackButton/index.d.ts +0 -1
- package/dist/types/components/SiteHeader/components/Column/Column.d.ts +0 -8
- package/dist/types/components/SiteHeader/components/Column/index.d.ts +0 -1
- package/dist/types/components/SiteHeader/components/Item/Item.d.ts +0 -20
- package/dist/types/components/SiteHeader/components/Item/index.d.ts +0 -1
- package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.d.ts +0 -26
- package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/ItemGroup/index.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/MenuButton/MenuButton.d.ts +0 -6
- package/dist/types/components/SiteHeader/components/MenuButton/index.d.ts +0 -1
- package/dist/types/components/SiteHeader/components/NavItem/NavItem.d.ts +0 -42
- package/dist/types/components/SiteHeader/components/NavItem/NavItem.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.d.ts +0 -47
- package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/NavItem/index.d.ts +0 -4
- package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +0 -8
- package/dist/types/components/SiteHeader/components/Panel/Panel.d.ts +0 -22
- package/dist/types/components/SiteHeader/components/Panel/index.d.ts +0 -1
- package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.d.ts +0 -47
- package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/SubNavItem/index.d.ts +0 -2
- package/dist/types/components/SiteHeader/index.d.ts +0 -2
- package/dist/types/helpers/filter-data-attrs.d.ts +0 -1
- package/dist/types/helpers/suffix-modifier.d.ts +0 -9
- package/dist/types/private-components/CardFooter/index.d.ts +0 -1
- package/dist/types/private-components/CardHeading/index.d.ts +0 -1
- package/dist/types/private-components/CardLabel/CardLabel.d.ts +0 -10
- package/dist/types/private-components/CardLabel/index.d.ts +0 -1
- package/dist/types/private-components/index.d.ts +0 -4
- /package/dist/_shared/cjs/{BtIconChevronRight2Px.esm-dbf8cbee.js → BtIconChevronRight2Px.esm-2e4d117e.js} +0 -0
- /package/dist/_shared/cjs/{BtIconChevronRightMid.esm-d01ebbd4.js → BtIconChevronRightMid.esm-3e8d18a9.js} +0 -0
- /package/dist/_shared/cjs/{ConditionalWrapper-be3b2625.js → ConditionalWrapper-bf944594.js} +0 -0
- /package/dist/_shared/esm/{BtIconChevronRight2Px.esm-75e92636.js → BtIconChevronRight2Px.esm-c939e317.js} +0 -0
- /package/dist/_shared/esm/{BtIconChevronRightMid.esm-32268f1a.js → BtIconChevronRightMid.esm-4764708f.js} +0 -0
- /package/dist/_shared/esm/{ConditionalWrapper-59be8f35.js → ConditionalWrapper-b85979de.js} +0 -0
- /package/dist/types/{private-components → components}/ConditionalWrapper/ConditionalWrapper.d.ts +0 -0
- /package/dist/types/{private-components → components}/ConditionalWrapper/index.d.ts +0 -0
- /package/dist/types/hooks/{use-aria-describedby.d.ts → private/use-aria-describedby/use-aria-describedby.d.ts} +0 -0
- /package/dist/types/hooks/{use-interaction-mode.d.ts → private/use-interaction-mode/use-interaction-mode.d.ts} +0 -0
- /package/dist/types/hooks/{use-pagination.d.ts → private/use-pagination/use-pagination.d.ts} +0 -0
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var index_es = require('./index.es-0c2c97f4.js');
|
|
5
|
+
|
|
6
|
+
function _interopNamespace(e) {
|
|
7
|
+
if (e && e.__esModule) return e;
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n["default"] = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
25
|
+
|
|
26
|
+
var useThemeElement = function () {
|
|
27
|
+
var _a = React.useState(undefined), themeElement = _a[0], setElement = _a[1];
|
|
28
|
+
var setThemeElement = function (el) {
|
|
29
|
+
el &&
|
|
30
|
+
setElement(el.closest(".arc-ds-sys-theme") || undefined);
|
|
31
|
+
};
|
|
32
|
+
return [themeElement, setThemeElement];
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var getDefaultParent = function (originalTarget) {
|
|
36
|
+
if (typeof document === 'undefined') {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
|
|
40
|
+
return sampleTarget.ownerDocument.body;
|
|
41
|
+
};
|
|
42
|
+
var counterMap = new WeakMap();
|
|
43
|
+
var uncontrolledNodes = new WeakMap();
|
|
44
|
+
var markerMap = {};
|
|
45
|
+
var lockCount = 0;
|
|
46
|
+
var unwrapHost = function (node) {
|
|
47
|
+
return node && (node.host || unwrapHost(node.parentNode));
|
|
48
|
+
};
|
|
49
|
+
var correctTargets = function (parent, targets) {
|
|
50
|
+
return targets
|
|
51
|
+
.map(function (target) {
|
|
52
|
+
if (parent.contains(target)) {
|
|
53
|
+
return target;
|
|
54
|
+
}
|
|
55
|
+
var correctedTarget = unwrapHost(target);
|
|
56
|
+
if (correctedTarget && parent.contains(correctedTarget)) {
|
|
57
|
+
return correctedTarget;
|
|
58
|
+
}
|
|
59
|
+
console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');
|
|
60
|
+
return null;
|
|
61
|
+
})
|
|
62
|
+
.filter(function (x) { return Boolean(x); });
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Marks everything except given node(or nodes) as aria-hidden
|
|
66
|
+
* @param {Element | Element[]} originalTarget - elements to keep on the page
|
|
67
|
+
* @param [parentNode] - top element, defaults to document.body
|
|
68
|
+
* @param {String} [markerName] - a special attribute to mark every node
|
|
69
|
+
* @param {String} [controlAttribute] - html Attribute to control
|
|
70
|
+
* @return {Undo} undo command
|
|
71
|
+
*/
|
|
72
|
+
var applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {
|
|
73
|
+
var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
74
|
+
if (!markerMap[markerName]) {
|
|
75
|
+
markerMap[markerName] = new WeakMap();
|
|
76
|
+
}
|
|
77
|
+
var markerCounter = markerMap[markerName];
|
|
78
|
+
var hiddenNodes = [];
|
|
79
|
+
var elementsToKeep = new Set();
|
|
80
|
+
var elementsToStop = new Set(targets);
|
|
81
|
+
var keep = function (el) {
|
|
82
|
+
if (!el || elementsToKeep.has(el)) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
elementsToKeep.add(el);
|
|
86
|
+
keep(el.parentNode);
|
|
87
|
+
};
|
|
88
|
+
targets.forEach(keep);
|
|
89
|
+
var deep = function (parent) {
|
|
90
|
+
if (!parent || elementsToStop.has(parent)) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
Array.prototype.forEach.call(parent.children, function (node) {
|
|
94
|
+
if (elementsToKeep.has(node)) {
|
|
95
|
+
deep(node);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
var attr = node.getAttribute(controlAttribute);
|
|
99
|
+
var alreadyHidden = attr !== null && attr !== 'false';
|
|
100
|
+
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
101
|
+
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
102
|
+
counterMap.set(node, counterValue);
|
|
103
|
+
markerCounter.set(node, markerValue);
|
|
104
|
+
hiddenNodes.push(node);
|
|
105
|
+
if (counterValue === 1 && alreadyHidden) {
|
|
106
|
+
uncontrolledNodes.set(node, true);
|
|
107
|
+
}
|
|
108
|
+
if (markerValue === 1) {
|
|
109
|
+
node.setAttribute(markerName, 'true');
|
|
110
|
+
}
|
|
111
|
+
if (!alreadyHidden) {
|
|
112
|
+
node.setAttribute(controlAttribute, 'true');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
deep(parentNode);
|
|
118
|
+
elementsToKeep.clear();
|
|
119
|
+
lockCount++;
|
|
120
|
+
return function () {
|
|
121
|
+
hiddenNodes.forEach(function (node) {
|
|
122
|
+
var counterValue = counterMap.get(node) - 1;
|
|
123
|
+
var markerValue = markerCounter.get(node) - 1;
|
|
124
|
+
counterMap.set(node, counterValue);
|
|
125
|
+
markerCounter.set(node, markerValue);
|
|
126
|
+
if (!counterValue) {
|
|
127
|
+
if (!uncontrolledNodes.has(node)) {
|
|
128
|
+
node.removeAttribute(controlAttribute);
|
|
129
|
+
}
|
|
130
|
+
uncontrolledNodes.delete(node);
|
|
131
|
+
}
|
|
132
|
+
if (!markerValue) {
|
|
133
|
+
node.removeAttribute(markerName);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
lockCount--;
|
|
137
|
+
if (!lockCount) {
|
|
138
|
+
// clear
|
|
139
|
+
counterMap = new WeakMap();
|
|
140
|
+
counterMap = new WeakMap();
|
|
141
|
+
uncontrolledNodes = new WeakMap();
|
|
142
|
+
markerMap = {};
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Marks everything except given node(or nodes) as aria-hidden
|
|
148
|
+
* @param {Element | Element[]} originalTarget - elements to keep on the page
|
|
149
|
+
* @param [parentNode] - top element, defaults to document.body
|
|
150
|
+
* @param {String} [markerName] - a special attribute to mark every node
|
|
151
|
+
* @return {Undo} undo command
|
|
152
|
+
*/
|
|
153
|
+
var hideOthers = function (originalTarget, parentNode, markerName) {
|
|
154
|
+
if (markerName === void 0) { markerName = 'data-aria-hidden'; }
|
|
155
|
+
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
156
|
+
var activeParentNode = parentNode || getDefaultParent(originalTarget);
|
|
157
|
+
if (!activeParentNode) {
|
|
158
|
+
return function () { return null; };
|
|
159
|
+
}
|
|
160
|
+
// we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10
|
|
161
|
+
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));
|
|
162
|
+
return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
var zeroRightClassName = 'right-scroll-bar-position';
|
|
166
|
+
var fullWidthClassName = 'width-before-scroll-bar';
|
|
167
|
+
var noScrollbarsClassName = 'with-scroll-bars-hidden';
|
|
168
|
+
/**
|
|
169
|
+
* Name of a CSS variable containing the amount of "hidden" scrollbar
|
|
170
|
+
* ! might be undefined ! use will fallback!
|
|
171
|
+
*/
|
|
172
|
+
var removedBarSizeVariable = '--removed-body-scroll-bar-size';
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Assigns a value for a given ref, no matter of the ref format
|
|
176
|
+
* @param {RefObject} ref - a callback function or ref object
|
|
177
|
+
* @param value - a new value
|
|
178
|
+
*
|
|
179
|
+
* @see https://github.com/theKashey/use-callback-ref#assignref
|
|
180
|
+
* @example
|
|
181
|
+
* const refObject = useRef();
|
|
182
|
+
* const refFn = (ref) => {....}
|
|
183
|
+
*
|
|
184
|
+
* assignRef(refObject, "refValue");
|
|
185
|
+
* assignRef(refFn, "refValue");
|
|
186
|
+
*/
|
|
187
|
+
function assignRef(ref, value) {
|
|
188
|
+
if (typeof ref === 'function') {
|
|
189
|
+
ref(value);
|
|
190
|
+
}
|
|
191
|
+
else if (ref) {
|
|
192
|
+
ref.current = value;
|
|
193
|
+
}
|
|
194
|
+
return ref;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* creates a MutableRef with ref change callback
|
|
199
|
+
* @param initialValue - initial ref value
|
|
200
|
+
* @param {Function} callback - a callback to run when value changes
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
|
|
204
|
+
* ref.current = 1;
|
|
205
|
+
* // prints 0 -> 1
|
|
206
|
+
*
|
|
207
|
+
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
|
208
|
+
* @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
|
|
209
|
+
* @returns {MutableRefObject}
|
|
210
|
+
*/
|
|
211
|
+
function useCallbackRef(initialValue, callback) {
|
|
212
|
+
var ref = React.useState(function () { return ({
|
|
213
|
+
// value
|
|
214
|
+
value: initialValue,
|
|
215
|
+
// last callback
|
|
216
|
+
callback: callback,
|
|
217
|
+
// "memoized" public interface
|
|
218
|
+
facade: {
|
|
219
|
+
get current() {
|
|
220
|
+
return ref.value;
|
|
221
|
+
},
|
|
222
|
+
set current(value) {
|
|
223
|
+
var last = ref.value;
|
|
224
|
+
if (last !== value) {
|
|
225
|
+
ref.value = value;
|
|
226
|
+
ref.callback(value, last);
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
}); })[0];
|
|
231
|
+
// update callback
|
|
232
|
+
ref.callback = callback;
|
|
233
|
+
return ref.facade;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Merges two or more refs together providing a single interface to set their value
|
|
238
|
+
* @param {RefObject|Ref} refs
|
|
239
|
+
* @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
|
|
240
|
+
*
|
|
241
|
+
* @see {@link mergeRefs} a version without buit-in memoization
|
|
242
|
+
* @see https://github.com/theKashey/use-callback-ref#usemergerefs
|
|
243
|
+
* @example
|
|
244
|
+
* const Component = React.forwardRef((props, ref) => {
|
|
245
|
+
* const ownRef = useRef();
|
|
246
|
+
* const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
|
|
247
|
+
* return <div ref={domRef}>...</div>
|
|
248
|
+
* }
|
|
249
|
+
*/
|
|
250
|
+
function useMergeRefs(refs, defaultValue) {
|
|
251
|
+
return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function ItoI(a) {
|
|
255
|
+
return a;
|
|
256
|
+
}
|
|
257
|
+
function innerCreateMedium(defaults, middleware) {
|
|
258
|
+
if (middleware === void 0) { middleware = ItoI; }
|
|
259
|
+
var buffer = [];
|
|
260
|
+
var assigned = false;
|
|
261
|
+
var medium = {
|
|
262
|
+
read: function () {
|
|
263
|
+
if (assigned) {
|
|
264
|
+
throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
|
|
265
|
+
}
|
|
266
|
+
if (buffer.length) {
|
|
267
|
+
return buffer[buffer.length - 1];
|
|
268
|
+
}
|
|
269
|
+
return defaults;
|
|
270
|
+
},
|
|
271
|
+
useMedium: function (data) {
|
|
272
|
+
var item = middleware(data, assigned);
|
|
273
|
+
buffer.push(item);
|
|
274
|
+
return function () {
|
|
275
|
+
buffer = buffer.filter(function (x) { return x !== item; });
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
assignSyncMedium: function (cb) {
|
|
279
|
+
assigned = true;
|
|
280
|
+
while (buffer.length) {
|
|
281
|
+
var cbs = buffer;
|
|
282
|
+
buffer = [];
|
|
283
|
+
cbs.forEach(cb);
|
|
284
|
+
}
|
|
285
|
+
buffer = {
|
|
286
|
+
push: function (x) { return cb(x); },
|
|
287
|
+
filter: function () { return buffer; },
|
|
288
|
+
};
|
|
289
|
+
},
|
|
290
|
+
assignMedium: function (cb) {
|
|
291
|
+
assigned = true;
|
|
292
|
+
var pendingQueue = [];
|
|
293
|
+
if (buffer.length) {
|
|
294
|
+
var cbs = buffer;
|
|
295
|
+
buffer = [];
|
|
296
|
+
cbs.forEach(cb);
|
|
297
|
+
pendingQueue = buffer;
|
|
298
|
+
}
|
|
299
|
+
var executeQueue = function () {
|
|
300
|
+
var cbs = pendingQueue;
|
|
301
|
+
pendingQueue = [];
|
|
302
|
+
cbs.forEach(cb);
|
|
303
|
+
};
|
|
304
|
+
var cycle = function () { return Promise.resolve().then(executeQueue); };
|
|
305
|
+
cycle();
|
|
306
|
+
buffer = {
|
|
307
|
+
push: function (x) {
|
|
308
|
+
pendingQueue.push(x);
|
|
309
|
+
cycle();
|
|
310
|
+
},
|
|
311
|
+
filter: function (filter) {
|
|
312
|
+
pendingQueue = pendingQueue.filter(filter);
|
|
313
|
+
return buffer;
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
},
|
|
317
|
+
};
|
|
318
|
+
return medium;
|
|
319
|
+
}
|
|
320
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
321
|
+
function createSidecarMedium(options) {
|
|
322
|
+
if (options === void 0) { options = {}; }
|
|
323
|
+
var medium = innerCreateMedium(null);
|
|
324
|
+
medium.options = index_es.__assign({ async: true, ssr: false }, options);
|
|
325
|
+
return medium;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
var SideCar = function (_a) {
|
|
329
|
+
var sideCar = _a.sideCar, rest = index_es.__rest(_a, ["sideCar"]);
|
|
330
|
+
if (!sideCar) {
|
|
331
|
+
throw new Error('Sidecar: please provide `sideCar` property to import the right car');
|
|
332
|
+
}
|
|
333
|
+
var Target = sideCar.read();
|
|
334
|
+
if (!Target) {
|
|
335
|
+
throw new Error('Sidecar medium not found');
|
|
336
|
+
}
|
|
337
|
+
return React__namespace.createElement(Target, index_es.__assign({}, rest));
|
|
338
|
+
};
|
|
339
|
+
SideCar.isSideCarExport = true;
|
|
340
|
+
function exportSidecar(medium, exported) {
|
|
341
|
+
medium.useMedium(exported);
|
|
342
|
+
return SideCar;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
var getNonce = function () {
|
|
346
|
+
if (typeof __webpack_nonce__ !== 'undefined') {
|
|
347
|
+
return __webpack_nonce__;
|
|
348
|
+
}
|
|
349
|
+
return undefined;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
function makeStyleTag() {
|
|
353
|
+
if (!document)
|
|
354
|
+
return null;
|
|
355
|
+
var tag = document.createElement('style');
|
|
356
|
+
tag.type = 'text/css';
|
|
357
|
+
var nonce = getNonce();
|
|
358
|
+
if (nonce) {
|
|
359
|
+
tag.setAttribute('nonce', nonce);
|
|
360
|
+
}
|
|
361
|
+
return tag;
|
|
362
|
+
}
|
|
363
|
+
function injectStyles(tag, css) {
|
|
364
|
+
// @ts-ignore
|
|
365
|
+
if (tag.styleSheet) {
|
|
366
|
+
// @ts-ignore
|
|
367
|
+
tag.styleSheet.cssText = css;
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
tag.appendChild(document.createTextNode(css));
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
function insertStyleTag(tag) {
|
|
374
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
375
|
+
head.appendChild(tag);
|
|
376
|
+
}
|
|
377
|
+
var stylesheetSingleton = function () {
|
|
378
|
+
var counter = 0;
|
|
379
|
+
var stylesheet = null;
|
|
380
|
+
return {
|
|
381
|
+
add: function (style) {
|
|
382
|
+
if (counter == 0) {
|
|
383
|
+
if ((stylesheet = makeStyleTag())) {
|
|
384
|
+
injectStyles(stylesheet, style);
|
|
385
|
+
insertStyleTag(stylesheet);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
counter++;
|
|
389
|
+
},
|
|
390
|
+
remove: function () {
|
|
391
|
+
counter--;
|
|
392
|
+
if (!counter && stylesheet) {
|
|
393
|
+
stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
|
|
394
|
+
stylesheet = null;
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* creates a hook to control style singleton
|
|
402
|
+
* @see {@link styleSingleton} for a safer component version
|
|
403
|
+
* @example
|
|
404
|
+
* ```tsx
|
|
405
|
+
* const useStyle = styleHookSingleton();
|
|
406
|
+
* ///
|
|
407
|
+
* useStyle('body { overflow: hidden}');
|
|
408
|
+
*/
|
|
409
|
+
var styleHookSingleton = function () {
|
|
410
|
+
var sheet = stylesheetSingleton();
|
|
411
|
+
return function (styles, isDynamic) {
|
|
412
|
+
React__namespace.useEffect(function () {
|
|
413
|
+
sheet.add(styles);
|
|
414
|
+
return function () {
|
|
415
|
+
sheet.remove();
|
|
416
|
+
};
|
|
417
|
+
}, [styles && isDynamic]);
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* create a Component to add styles on demand
|
|
423
|
+
* - styles are added when first instance is mounted
|
|
424
|
+
* - styles are removed when the last instance is unmounted
|
|
425
|
+
* - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
|
|
426
|
+
*/
|
|
427
|
+
var styleSingleton = function () {
|
|
428
|
+
var useStyle = styleHookSingleton();
|
|
429
|
+
var Sheet = function (_a) {
|
|
430
|
+
var styles = _a.styles, dynamic = _a.dynamic;
|
|
431
|
+
useStyle(styles, dynamic);
|
|
432
|
+
return null;
|
|
433
|
+
};
|
|
434
|
+
return Sheet;
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
var zeroGap = {
|
|
438
|
+
left: 0,
|
|
439
|
+
top: 0,
|
|
440
|
+
right: 0,
|
|
441
|
+
gap: 0,
|
|
442
|
+
};
|
|
443
|
+
var parse = function (x) { return parseInt(x || '', 10) || 0; };
|
|
444
|
+
var getOffset = function (gapMode) {
|
|
445
|
+
var cs = window.getComputedStyle(document.body);
|
|
446
|
+
var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
|
|
447
|
+
var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
|
|
448
|
+
var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
|
|
449
|
+
return [parse(left), parse(top), parse(right)];
|
|
450
|
+
};
|
|
451
|
+
var getGapWidth = function (gapMode) {
|
|
452
|
+
if (gapMode === void 0) { gapMode = 'margin'; }
|
|
453
|
+
if (typeof window === 'undefined') {
|
|
454
|
+
return zeroGap;
|
|
455
|
+
}
|
|
456
|
+
var offsets = getOffset(gapMode);
|
|
457
|
+
var documentWidth = document.documentElement.clientWidth;
|
|
458
|
+
var windowWidth = window.innerWidth;
|
|
459
|
+
return {
|
|
460
|
+
left: offsets[0],
|
|
461
|
+
top: offsets[1],
|
|
462
|
+
right: offsets[2],
|
|
463
|
+
gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
var Style = styleSingleton();
|
|
468
|
+
// important tip - once we measure scrollBar width and remove them
|
|
469
|
+
// we could not repeat this operation
|
|
470
|
+
// thus we are using style-singleton - only the first "yet correct" style will be applied.
|
|
471
|
+
var getStyles = function (_a, allowRelative, gapMode, important) {
|
|
472
|
+
var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
|
|
473
|
+
if (gapMode === void 0) { gapMode = 'margin'; }
|
|
474
|
+
return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
|
|
475
|
+
allowRelative && "position: relative ".concat(important, ";"),
|
|
476
|
+
gapMode === 'margin' &&
|
|
477
|
+
"\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
|
|
478
|
+
gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
|
|
479
|
+
]
|
|
480
|
+
.filter(Boolean)
|
|
481
|
+
.join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* Removes page scrollbar and blocks page scroll when mounted
|
|
485
|
+
*/
|
|
486
|
+
var RemoveScrollBar = function (props) {
|
|
487
|
+
var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;
|
|
488
|
+
/*
|
|
489
|
+
gap will be measured on every component mount
|
|
490
|
+
however it will be used only by the "first" invocation
|
|
491
|
+
due to singleton nature of <Style
|
|
492
|
+
*/
|
|
493
|
+
var gap = React__namespace.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
|
|
494
|
+
return React__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
exports.RemoveScrollBar = RemoveScrollBar;
|
|
498
|
+
exports.createSidecarMedium = createSidecarMedium;
|
|
499
|
+
exports.exportSidecar = exportSidecar;
|
|
500
|
+
exports.fullWidthClassName = fullWidthClassName;
|
|
501
|
+
exports.hideOthers = hideOthers;
|
|
502
|
+
exports.styleSingleton = styleSingleton;
|
|
503
|
+
exports.useMergeRefs = useMergeRefs;
|
|
504
|
+
exports.useThemeElement = useThemeElement;
|
|
505
|
+
exports.zeroRightClassName = zeroRightClassName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers-56412ec5.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Checks if `value` is the
|
|
@@ -37,7 +37,7 @@ var isObject_1 = isObject$2;
|
|
|
37
37
|
|
|
38
38
|
/** Detect free variable `global` from Node.js. */
|
|
39
39
|
|
|
40
|
-
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
40
|
+
var freeGlobal$1 = typeof _commonjsHelpers.commonjsGlobal == 'object' && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
|
|
41
41
|
|
|
42
42
|
var _freeGlobal = freeGlobal$1;
|
|
43
43
|
|