@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,161 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
function _mergeNamespaces(n, m) {
|
|
4
|
+
m.forEach(function (e) {
|
|
5
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
+
if (k !== 'default' && !(k in n)) {
|
|
7
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return e[k]; }
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
return Object.freeze(n);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
var __create = Object.create;
|
|
19
|
+
var __defProp = Object.defineProperty;
|
|
20
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
21
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
22
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
23
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
24
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name in all)
|
|
27
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
43
|
+
mod
|
|
44
|
+
));
|
|
45
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
+
var __publicField = (obj, key, value) => {
|
|
47
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
48
|
+
return value;
|
|
49
|
+
};
|
|
50
|
+
var Preview_exports = {};
|
|
51
|
+
__export(Preview_exports, {
|
|
52
|
+
default: () => Preview
|
|
53
|
+
});
|
|
54
|
+
var Preview_1 = __toCommonJS(Preview_exports);
|
|
55
|
+
var import_react = __toESM(React__default);
|
|
56
|
+
const ICON_SIZE = "64px";
|
|
57
|
+
const cache = {};
|
|
58
|
+
class Preview extends import_react.Component {
|
|
59
|
+
constructor() {
|
|
60
|
+
super(...arguments);
|
|
61
|
+
__publicField(this, "mounted", false);
|
|
62
|
+
__publicField(this, "state", {
|
|
63
|
+
image: null
|
|
64
|
+
});
|
|
65
|
+
__publicField(this, "handleKeyPress", (e) => {
|
|
66
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
67
|
+
this.props.onClick();
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
componentDidMount() {
|
|
72
|
+
this.mounted = true;
|
|
73
|
+
this.fetchImage(this.props);
|
|
74
|
+
}
|
|
75
|
+
componentDidUpdate(prevProps) {
|
|
76
|
+
const { url, light } = this.props;
|
|
77
|
+
if (prevProps.url !== url || prevProps.light !== light) {
|
|
78
|
+
this.fetchImage(this.props);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
componentWillUnmount() {
|
|
82
|
+
this.mounted = false;
|
|
83
|
+
}
|
|
84
|
+
fetchImage({ url, light, oEmbedUrl }) {
|
|
85
|
+
if (import_react.default.isValidElement(light)) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (typeof light === "string") {
|
|
89
|
+
this.setState({ image: light });
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (cache[url]) {
|
|
93
|
+
this.setState({ image: cache[url] });
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
this.setState({ image: null });
|
|
97
|
+
return window.fetch(oEmbedUrl.replace("{url}", url)).then((response) => response.json()).then((data) => {
|
|
98
|
+
if (data.thumbnail_url && this.mounted) {
|
|
99
|
+
const image = data.thumbnail_url.replace("height=100", "height=480").replace("-d_295x166", "-d_640");
|
|
100
|
+
this.setState({ image });
|
|
101
|
+
cache[url] = image;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
const { light, onClick, playIcon, previewTabIndex, previewAriaLabel } = this.props;
|
|
107
|
+
const { image } = this.state;
|
|
108
|
+
const isElement = import_react.default.isValidElement(light);
|
|
109
|
+
const flexCenter = {
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
justifyContent: "center"
|
|
113
|
+
};
|
|
114
|
+
const styles = {
|
|
115
|
+
preview: {
|
|
116
|
+
width: "100%",
|
|
117
|
+
height: "100%",
|
|
118
|
+
backgroundImage: image && !isElement ? `url(${image})` : void 0,
|
|
119
|
+
backgroundSize: "cover",
|
|
120
|
+
backgroundPosition: "center",
|
|
121
|
+
cursor: "pointer",
|
|
122
|
+
...flexCenter
|
|
123
|
+
},
|
|
124
|
+
shadow: {
|
|
125
|
+
background: "radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",
|
|
126
|
+
borderRadius: ICON_SIZE,
|
|
127
|
+
width: ICON_SIZE,
|
|
128
|
+
height: ICON_SIZE,
|
|
129
|
+
position: isElement ? "absolute" : void 0,
|
|
130
|
+
...flexCenter
|
|
131
|
+
},
|
|
132
|
+
playIcon: {
|
|
133
|
+
borderStyle: "solid",
|
|
134
|
+
borderWidth: "16px 0 16px 26px",
|
|
135
|
+
borderColor: "transparent transparent transparent white",
|
|
136
|
+
marginLeft: "7px"
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
const defaultPlayIcon = /* @__PURE__ */ import_react.default.createElement("div", { style: styles.shadow, className: "react-player__shadow" }, /* @__PURE__ */ import_react.default.createElement("div", { style: styles.playIcon, className: "react-player__play-icon" }));
|
|
140
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
style: styles.preview,
|
|
144
|
+
className: "react-player__preview",
|
|
145
|
+
onClick,
|
|
146
|
+
tabIndex: previewTabIndex,
|
|
147
|
+
onKeyPress: this.handleKeyPress,
|
|
148
|
+
...previewAriaLabel ? { "aria-label": previewAriaLabel } : {}
|
|
149
|
+
},
|
|
150
|
+
isElement ? light : null,
|
|
151
|
+
playIcon || defaultPlayIcon
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
var Preview$1 = /*#__PURE__*/_mergeNamespaces({
|
|
157
|
+
__proto__: null,
|
|
158
|
+
'default': Preview_1
|
|
159
|
+
}, [Preview_1]);
|
|
160
|
+
|
|
161
|
+
export { Preview$1 as P };
|
|
@@ -1,48 +1,39 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
2
|
-
import React__default
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-fc59ba8f.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { V as VisuallyHidden } from './VisuallyHidden-06692fd3.js';
|
|
4
|
+
import { V as VisuallyHidden } from './VisuallyHidden-59f004f5.js';
|
|
5
|
+
import { I as Icon } from './Icon-6fef56b3.js';
|
|
7
6
|
|
|
8
7
|
var Error = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
9
8
|
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
10
9
|
React__default.createElement("path", { d: "m13.06 12 2.845-2.845a.75.75 0 0 0-1.06-1.06L12 10.94 9.155 8.095a.75.75 0 0 0-1.06 1.06L10.939 12l-2.844 2.845a.75.75 0 1 0 1.06 1.06L12 13.061l2.845 2.844a.75.75 0 0 0 1.06-1.06L13.06 12Z", fill: "currentColor" })),
|
|
11
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
12
10
|
React__default.createElement("defs", null,
|
|
13
11
|
React__default.createElement("clipPath", { id: "a" },
|
|
14
12
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
15
13
|
|
|
16
14
|
var Warning = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
17
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
18
15
|
React__default.createElement("path", { d: "M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z", fill: "currentColor", stroke: "currentColor", strokeWidth: ".3" }))); };
|
|
19
16
|
|
|
20
17
|
var Complete = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
21
18
|
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
22
19
|
React__default.createElement("path", { d: "m10.125 16.435-3.53-3.53a.75.75 0 0 1 0-1.06.768.768 0 0 1 1.06 0l2.47 2.47 6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.28 7.28Z", fill: "currentColor" })),
|
|
23
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
24
20
|
React__default.createElement("defs", null,
|
|
25
|
-
React__default.createElement("clipPath",
|
|
21
|
+
React__default.createElement("clipPath", null,
|
|
26
22
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
27
23
|
|
|
28
24
|
var Current = function () { return (React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
29
|
-
React__default.createElement("rect", { x: "0.666667", y: "0.666667", width: "22.6667", height: "22.6667", rx: "11.3333", stroke: "url(#paint0_linear_1_1050)", strokeWidth: "1.33333" }),
|
|
30
25
|
React__default.createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
|
|
31
26
|
React__default.createElement("defs", null,
|
|
32
27
|
React__default.createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
|
|
33
28
|
React__default.createElement("stop", { stopColor: "#F200F5" }),
|
|
34
29
|
React__default.createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
|
|
35
30
|
|
|
36
|
-
var Todo = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
37
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }))); };
|
|
38
|
-
|
|
39
31
|
// export current step as an icon
|
|
40
32
|
var ProgressStepperItem = function (_a) {
|
|
41
33
|
var _b;
|
|
42
34
|
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _c = _a.direction, direction = _c === void 0 ? "horizontal" : _c, _d = _a.status, status = _d === void 0 ? "todo" : _d, _e = _a.size, size = _e === void 0 ? "large" : _e, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "isFluid", "ariaLabel", "onClick", "previousStep", "stepContent", "isStepContentHidden"]);
|
|
43
|
-
var surface = useContext(Context).surface;
|
|
44
35
|
var statusIcons = {
|
|
45
|
-
todo:
|
|
36
|
+
todo: undefined,
|
|
46
37
|
completed: Complete,
|
|
47
38
|
current: Current,
|
|
48
39
|
warning: Warning,
|
|
@@ -58,19 +49,25 @@ var ProgressStepperItem = function (_a) {
|
|
|
58
49
|
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
|
|
59
50
|
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
60
51
|
"arc-ProgressStepperItem--isFluid": isFluid && direction !== "vertical",
|
|
61
|
-
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
62
52
|
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
63
53
|
},
|
|
64
54
|
_b["arc-ProgressStepperItem--hasInteractiveStatus"] = status !== "todo",
|
|
65
55
|
_b)) }, filterDataAttrs(props)),
|
|
66
56
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSection" },
|
|
67
57
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
|
|
68
|
-
React__default.createElement(
|
|
58
|
+
React__default.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
|
|
59
|
+
"arc-ProgressStepperItem-statusIcon--small": size === "small"
|
|
60
|
+
}) }, status === "todo" ? null : status === "current" ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React__default.createElement(Icon, { icon: statusIcons[status] }))))),
|
|
69
61
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
62
|
+
titleHref || onClick ? (React__default.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler },
|
|
63
|
+
title,
|
|
64
|
+
status !== "todo" ? (React__default.createElement(VisuallyHidden, null,
|
|
65
|
+
":",
|
|
66
|
+
capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden, null, ":To do")))) : (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" },
|
|
67
|
+
title,
|
|
68
|
+
status !== "todo" ? (React__default.createElement(VisuallyHidden, null,
|
|
69
|
+
":",
|
|
70
|
+
capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden, null, ":To do")))),
|
|
74
71
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
75
72
|
stepContent && !isStepContentHidden && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
|
|
76
73
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" }, stepContent))))));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-fc59ba8f.js';
|
|
2
2
|
import React__default, { createContext, useContext, forwardRef, useEffect } from 'react';
|
|
3
|
-
import { F as FormControl } from './FormControl-
|
|
3
|
+
import { F as FormControl } from './FormControl-350bb1c8.js';
|
|
4
4
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
5
|
-
import { C as Context } from './Surface-
|
|
6
|
-
import { V as VisuallyHidden } from './VisuallyHidden-
|
|
5
|
+
import { C as Context } from './Surface-201aa0d6.js';
|
|
6
|
+
import { V as VisuallyHidden } from './VisuallyHidden-59f004f5.js';
|
|
7
7
|
|
|
8
8
|
var RadioContext = createContext({});
|
|
9
9
|
var Provider = RadioContext.Provider;
|
|
@@ -13,10 +13,10 @@ var useRadioContext = function () {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
var RadioButton = forwardRef(function (_a, ref) {
|
|
16
|
-
var id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin
|
|
16
|
+
var id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin;
|
|
17
17
|
var surface = useContext(Context).surface;
|
|
18
18
|
var idLabel = "".concat(id, "-label");
|
|
19
|
-
return (React__default.createElement("div",
|
|
19
|
+
return (React__default.createElement("div", { className: classNames({
|
|
20
20
|
"arc-RadioButton": true,
|
|
21
21
|
"arc-RadioButton--withMargin": withMargin,
|
|
22
22
|
"arc-RadioButton--withMarginSmall": withMargin && size === "s",
|
|
@@ -24,7 +24,7 @@ var RadioButton = forwardRef(function (_a, ref) {
|
|
|
24
24
|
"arc-RadioButton--small": size === "s",
|
|
25
25
|
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
26
26
|
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
27
|
-
}) },
|
|
27
|
+
}) },
|
|
28
28
|
React__default.createElement("label", { className: classNames("arc-RadioButton-label", {
|
|
29
29
|
"arc-RadioButton-label--alignTop": radioButtonAlignment === "top"
|
|
30
30
|
}), htmlFor: id, id: idLabel },
|
|
@@ -52,7 +52,7 @@ var RadioButtonGroupInput = forwardRef(function (_a, ref) {
|
|
|
52
52
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
53
53
|
*/
|
|
54
54
|
var RadioGroup = function (_a) {
|
|
55
|
-
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label,
|
|
55
|
+
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, errorMessage = _a.errorMessage, _c = _a.isRequired, isRequired = _c === void 0 ? true : _c, helper = _a.helper, label = _a.label, _d = _a.labelSize, labelSize = _d === void 0 ? "l" : _d, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _e = _a.size, size = _e === void 0 ? "l" : _e, props = __rest(_a, ["children", "checkedValue", "isDisabled", "id", "errorMessage", "isRequired", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
56
56
|
useEffect(function () {
|
|
57
57
|
React__default.Children.map(children, function (item) {
|
|
58
58
|
if (item && item.type !== RadioButtonGroupInput) {
|
|
@@ -70,7 +70,7 @@ var RadioGroup = function (_a) {
|
|
|
70
70
|
size: size
|
|
71
71
|
} },
|
|
72
72
|
React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
|
|
73
|
-
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "
|
|
73
|
+
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: isRequired ? "required" : "optional", helperUnderLabel: true, errorMessage: isRequired && checkedValue === "" ? errorMessage : "" },
|
|
74
74
|
React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
75
75
|
};
|
|
76
76
|
RadioGroup.RadioButton = RadioButtonGroupInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-fc59ba8f.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
2
|
-
import {
|
|
3
|
-
import { B as BtIconChevronDown2Px } from './BtIconChevronDown2Px.esm-217276c2.js';
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-fc59ba8f.js';
|
|
2
|
+
import { S as SemSizeBreakpointsM } from './index.es-be971b8d.js';
|
|
4
3
|
import React__default, { useEffect, Fragment } from 'react';
|
|
5
|
-
import { B as BrandLogo } from './BrandLogo-
|
|
6
|
-
import {
|
|
7
|
-
import { S as Section } from './Section-
|
|
8
|
-
import { S as Surface } from './Surface-
|
|
4
|
+
import { B as BrandLogo } from './BrandLogo-640e58ed.js';
|
|
5
|
+
import { u as useMediaQuery } from './use-media-query-d3622da8.js';
|
|
6
|
+
import { S as Section } from './Section-3ab74edb.js';
|
|
7
|
+
import { S as Surface } from './Surface-201aa0d6.js';
|
|
9
8
|
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
9
|
+
import { T as ThemeIcon } from './ThemeIcon-69de5351.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Use `SiteFooter` to display information at the bottom of a page.
|
|
13
13
|
*/
|
|
14
14
|
var SiteFooter = function (_a) {
|
|
15
|
-
var children = _a.children, currentYear = _a.currentYear,
|
|
15
|
+
var children = _a.children, currentYear = _a.currentYear, logoLabel = _a.logoLabel, main = _a.main, siteName = _a.siteName, props = __rest(_a, ["children", "currentYear", "logoLabel", "main", "siteName"]);
|
|
16
16
|
useEffect(function () {
|
|
17
17
|
React__default.Children.map(children, function (item) {
|
|
18
18
|
if (item && item.type !== SiteFooterItem) {
|
|
@@ -21,9 +21,8 @@ var SiteFooter = function (_a) {
|
|
|
21
21
|
});
|
|
22
22
|
}, [children]);
|
|
23
23
|
return (React__default.createElement(React__default.Fragment, null,
|
|
24
|
-
curve ? (React__default.createElement(Curve, { bottomColor: "brand-flat", from: "topLeft", size: "s" })) : null,
|
|
25
24
|
React__default.createElement("footer", __assign({ className: "arc-SiteFooter" }, filterDataAttrs(props)),
|
|
26
|
-
React__default.createElement(Surface, { background: "brand-
|
|
25
|
+
React__default.createElement(Surface, { background: "dark-brand-01", paddingVertical: "24" },
|
|
27
26
|
(siteName || main) && (React__default.createElement(React__default.Fragment, null,
|
|
28
27
|
React__default.createElement(Section, null,
|
|
29
28
|
siteName && (React__default.createElement("div", { className: "arc-SiteFooter-name" }, siteName)),
|
|
@@ -39,7 +38,7 @@ var SiteFooter = function (_a) {
|
|
|
39
38
|
};
|
|
40
39
|
var SiteFooterItemGroup = function (_a) {
|
|
41
40
|
var children = _a.children, title = _a.title;
|
|
42
|
-
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(
|
|
41
|
+
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsM, ")"));
|
|
43
42
|
useEffect(function () {
|
|
44
43
|
React__default.Children.map(children, function (item) {
|
|
45
44
|
if (item && item.type !== SiteFooterItem && item.type !== Fragment) {
|
|
@@ -50,7 +49,7 @@ var SiteFooterItemGroup = function (_a) {
|
|
|
50
49
|
return (React__default.createElement("details", { className: "arc-SiteFooter-disclosure", open: isMinWidthArcBreakpointM },
|
|
51
50
|
React__default.createElement("summary", { className: "arc-SiteFooter-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
|
|
52
51
|
React__default.createElement("span", { className: "arc-SiteFooter-icon" },
|
|
53
|
-
React__default.createElement(
|
|
52
|
+
React__default.createElement(ThemeIcon, { icon: "siteFooterExpand" })),
|
|
54
53
|
React__default.createElement("h2", { className: "arc-SiteFooter-title" }, title)),
|
|
55
54
|
React__default.createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
|
|
56
55
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
2
|
-
import {
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs, s as suffixModifier } from './index.es-fc59ba8f.js';
|
|
2
|
+
import { b as SemSizeBreakpointsL } from './index.es-be971b8d.js';
|
|
3
3
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
4
|
import React__default, { useEffect, Fragment, useRef, useState, createContext, useContext } from 'react';
|
|
5
|
-
import { B as BrandLogo } from './BrandLogo-
|
|
6
|
-
import {
|
|
5
|
+
import { B as BrandLogo } from './BrandLogo-640e58ed.js';
|
|
6
|
+
import { u as useMediaQuery } from './use-media-query-d3622da8.js';
|
|
7
|
+
import { S as Surface } from './Surface-201aa0d6.js';
|
|
8
|
+
import { B as BtIconChevronRightMid } from './BtIconChevronRightMid.esm-4764708f.js';
|
|
9
|
+
import { C as ConditionalWrapper } from './ConditionalWrapper-b85979de.js';
|
|
7
10
|
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
8
|
-
import { B as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { s as suffixModifier } from './suffix-modifier-3d548e45.js';
|
|
13
|
-
import { T as Text } from './Text-14f586ac.js';
|
|
14
|
-
import { I as Icon } from './Icon-15799695.js';
|
|
11
|
+
import { B as BtIconChevronLeft2Px, a as BtIconChevronRight2Px } from './BtIconChevronRight2Px.esm-c939e317.js';
|
|
12
|
+
import { B as ButtonV2 } from './ButtonV2-b35cea64.js';
|
|
13
|
+
import { T as Text } from './Text-dc3f9cb5.js';
|
|
14
|
+
import { I as Icon } from './Icon-6fef56b3.js';
|
|
15
15
|
|
|
16
16
|
var Item = function (_a) {
|
|
17
17
|
var _b;
|
|
@@ -28,7 +28,7 @@ var Item = function (_a) {
|
|
|
28
28
|
|
|
29
29
|
var ItemGroup = function (_a) {
|
|
30
30
|
var children = _a.children, href = _a.href, title = _a.title, subtitle = _a.subtitle, onClick = _a.onClick, viewAllTitle = _a.viewAllTitle, props = __rest(_a, ["children", "href", "title", "subtitle", "onClick", "viewAllTitle"]);
|
|
31
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(
|
|
31
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsL, ")"));
|
|
32
32
|
useEffect(function () {
|
|
33
33
|
React__default.Children.map(children, function (item) {
|
|
34
34
|
if (item && item.type !== Item && item.type !== Fragment) {
|
|
@@ -82,7 +82,7 @@ var BackButton = function (_a) {
|
|
|
82
82
|
var Panel = function (_a) {
|
|
83
83
|
var _b, _c, _d, _e, _f;
|
|
84
84
|
var children = _a.children, navItemRef = _a.navItemRef, isNavItem = _a.isNavItem, open = _a.open, setOpen = _a.setOpen, setOpenPanelOnFirstClick = _a.setOpenPanelOnFirstClick, subNavItemRef = _a.subNavItemRef; _a.navLink; var _h = _a.subNavLink, subNavLink = _h === void 0 ? "" : _h, title = _a.title, subtitle = _a.subtitle, viewAll = _a.viewAll, withSubNav = _a.withSubNav; _a.fade; var isPrimary = _a.isPrimary, props = __rest(_a, ["children", "navItemRef", "isNavItem", "open", "setOpen", "setOpenPanelOnFirstClick", "subNavItemRef", "navLink", "subNavLink", "title", "subtitle", "viewAll", "withSubNav", "fade", "isPrimary"]);
|
|
85
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(
|
|
85
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsL, ")"));
|
|
86
86
|
var menubarRef = useHeaderV2Context().menubarRef;
|
|
87
87
|
useEffect(function () {
|
|
88
88
|
// Where appropriate, close the Panel when clicking outside of it,
|
|
@@ -155,7 +155,7 @@ var Panel = function (_a) {
|
|
|
155
155
|
var handleKeydown = function (e) {
|
|
156
156
|
var _a, _b;
|
|
157
157
|
// Check the viewport width at time of press
|
|
158
|
-
var isMinWidthArcBreakpointL = window.matchMedia("(min-width: ".concat(
|
|
158
|
+
var isMinWidthArcBreakpointL = window.matchMedia("(min-width: ".concat(SemSizeBreakpointsL, ")")).matches;
|
|
159
159
|
if (e.key === "Escape" || e.keyCode === 27) {
|
|
160
160
|
if (isMinWidthArcBreakpointL && subNavItemRef) {
|
|
161
161
|
// Don't close Panels inside SubNavItems when viewport width is above
|
|
@@ -180,7 +180,7 @@ var Panel = function (_a) {
|
|
|
180
180
|
_b["arc-SiteHeaderV2Panel--withSubNav"] = withSubNav,
|
|
181
181
|
_b["arc-SiteHeaderV2Panel-onlyPanel"] = isPrimary && isNavItem,
|
|
182
182
|
_b)) }, filterDataAttrs(props)),
|
|
183
|
-
React__default.createElement(Surface, { background: "white" },
|
|
183
|
+
React__default.createElement(Surface, { background: "light-white" },
|
|
184
184
|
React__default.createElement(BackButton, { setOpen: setOpen, setOpenPanelOnFirstClick: setOpenPanelOnFirstClick }),
|
|
185
185
|
React__default.createElement("div", { className: classNames((_c = {},
|
|
186
186
|
_c["arc-SiteHeaderV2Panel-inner"] = !isNavItem && withSubNav,
|
|
@@ -210,21 +210,18 @@ var Panel = function (_a) {
|
|
|
210
210
|
withSubNav && viewAll)))));
|
|
211
211
|
};
|
|
212
212
|
var ViewAll = function (_a) {
|
|
213
|
-
var href = _a.href, title = _a.title, onClick = _a.onClick,
|
|
214
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(
|
|
215
|
-
if (
|
|
213
|
+
var href = _a.href, title = _a.title, onClick = _a.onClick, buttonStyle = _a.buttonStyle;
|
|
214
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsL, ")"));
|
|
215
|
+
if (buttonStyle === "secondary") {
|
|
216
216
|
return isMinWidthArcBreakpointL ? (React__default.createElement("div", { className: "arc-SiteHeaderV2Panel-viewAllOutlined" },
|
|
217
|
-
React__default.createElement(
|
|
218
|
-
" ")) : (React__default.createElement("div", { className: "arc-SiteHeaderV2Panel-mobileViewAll arc-SiteHeaderV2Panel-mobileViewAllOutlined" },
|
|
217
|
+
React__default.createElement(ButtonV2, { buttonStyle: buttonStyle, label: title !== null && title !== void 0 ? title : "", href: href, onClick: onClick }))) : (React__default.createElement("div", { className: "arc-SiteHeaderV2Panel-mobileViewAll arc-SiteHeaderV2Panel-mobileViewAllOutlined" },
|
|
219
218
|
React__default.createElement("a", { className: "arc-SiteHeaderV2Item-link", onClick: handleLinkClick({
|
|
220
219
|
handler: onClick
|
|
221
220
|
}), href: href }, title)));
|
|
222
221
|
}
|
|
223
222
|
else {
|
|
224
223
|
return isMinWidthArcBreakpointL ? (React__default.createElement("div", { className: "arc-SiteHeaderV2Panel-viewAll" },
|
|
225
|
-
" ",
|
|
226
|
-
React__default.createElement(Button, { fill: fill, label: title !== null && title !== void 0 ? title : "", isFullWidth: true, href: href, onClick: onClick }),
|
|
227
|
-
" ")) : (React__default.createElement("div", { className: "arc-SiteHeaderV2Panel-mobileViewAll" },
|
|
224
|
+
React__default.createElement(ButtonV2, { buttonStyle: buttonStyle, label: title !== null && title !== void 0 ? title : "", isFullWidth: true, href: href, onClick: onClick }))) : (React__default.createElement("div", { className: "arc-SiteHeaderV2Panel-mobileViewAll" },
|
|
228
225
|
React__default.createElement("a", { className: "arc-SiteHeaderV2Item-link", onClick: handleLinkClick({
|
|
229
226
|
handler: onClick
|
|
230
227
|
}), href: href }, title)));
|
|
@@ -239,7 +236,7 @@ var NavItem = function (_a) {
|
|
|
239
236
|
var _g = useState(false), panelOpen = _g[0], setPanelOpen = _g[1];
|
|
240
237
|
var _h = useState(true), openSecondaryWithSubNav = _h[0], setOpenSecondaryWithSubNav = _h[1];
|
|
241
238
|
var _j = useState(false), animation = _j[0], setAnimation = _j[1];
|
|
242
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(
|
|
239
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsL, ")"));
|
|
243
240
|
useEffect(function () {
|
|
244
241
|
React__default.Children.map(children, function (item) {
|
|
245
242
|
if (item &&
|
|
@@ -293,7 +290,7 @@ var NavItem = function (_a) {
|
|
|
293
290
|
_f)) }))),
|
|
294
291
|
React__default.createElement(Panel, { navItemRef: navItem, isNavItem: true, isPrimary: isPrimary, open: opensFirstWithPanel && isMinWidthArcBreakpointL
|
|
295
292
|
? openSecondaryWithSubNav
|
|
296
|
-
: panelOpen, setOpenPanelOnFirstClick: setOpenSecondaryWithSubNav, setOpen: setPanelOpen, fade: animation, viewAll: href ? (React__default.createElement(Panel.ViewAll, { href: href, onClick: onClick, title: "See all solutions",
|
|
293
|
+
: panelOpen, setOpenPanelOnFirstClick: setOpenSecondaryWithSubNav, setOpen: setPanelOpen, fade: animation, viewAll: href ? (React__default.createElement(Panel.ViewAll, { href: href, onClick: onClick, title: "See all solutions", buttonStyle: "primary" })) : undefined }, children)))));
|
|
297
294
|
};
|
|
298
295
|
|
|
299
296
|
var HorizontalPanel = function (_a) {
|
|
@@ -321,7 +318,7 @@ var HorizontalPanel = function (_a) {
|
|
|
321
318
|
useEffect(function () {
|
|
322
319
|
var handleKeydown = function (e) {
|
|
323
320
|
// Check the viewport width at time of press
|
|
324
|
-
var isMinWidthArcBreakpointL = window.matchMedia("(min-width: ".concat(
|
|
321
|
+
var isMinWidthArcBreakpointL = window.matchMedia("(min-width: ".concat(SemSizeBreakpointsL, ")")).matches;
|
|
325
322
|
if (e.key === "Escape" || e.keyCode === 27) {
|
|
326
323
|
if (isMinWidthArcBreakpointL && subNavItemRef) {
|
|
327
324
|
// Don't close Panels inside SubNavItems when viewport width is above
|
|
@@ -341,7 +338,7 @@ var HorizontalPanel = function (_a) {
|
|
|
341
338
|
_b["arc-SiteHeaderV2HorizontalPanel--open"] = open,
|
|
342
339
|
_b["arc-SiteHeaderV2HorizontalPanel--withSubNav"] = withSubNav,
|
|
343
340
|
_b)) }, filterDataAttrs(props)),
|
|
344
|
-
React__default.createElement(Surface, { background: "light" },
|
|
341
|
+
React__default.createElement(Surface, { background: "light-neutral-02" },
|
|
345
342
|
React__default.createElement("div", { className: classNames((_c = {},
|
|
346
343
|
_c["arc-SiteHeaderV2HorizontalPanel-container"] = true,
|
|
347
344
|
_c)) },
|
|
@@ -364,7 +361,7 @@ var NavItemWithSubNav = function (_a) {
|
|
|
364
361
|
var _k = useState(false), horizontalPanelOpen = _k[0], setHorizontalPanelOpen = _k[1];
|
|
365
362
|
var _l = useState(false), animation = _l[0], setAnimation = _l[1];
|
|
366
363
|
var _m = useState(true), openSecondaryWithSubNav = _m[0], setOpenSecondaryWithSubNav = _m[1];
|
|
367
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(
|
|
364
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsL, ")"));
|
|
368
365
|
useEffect(function () {
|
|
369
366
|
React__default.Children.map(slot1, function (item) {
|
|
370
367
|
if (item.props.isDefaultItem) {
|
|
@@ -448,7 +445,7 @@ var NavItemWithSubNav = function (_a) {
|
|
|
448
445
|
slot5)),
|
|
449
446
|
React__default.createElement(Panel, { navItemRef: navItem, open: opensFirstWithPanel && isMinWidthArcBreakpointL
|
|
450
447
|
? openSecondaryWithSubNav
|
|
451
|
-
: panelOpen, fade: animation, setOpenPanelOnFirstClick: setOpenSecondaryWithSubNav, setOpen: setPanelOpen, title: !isMinWidthArcBreakpointL && title, subtitle: subTitle, navLink: "", viewAll: href ? (React__default.createElement(Panel.ViewAll, { href: href, onClick: onViewAllClick, title: viewAllTitle,
|
|
448
|
+
: panelOpen, fade: animation, setOpenPanelOnFirstClick: setOpenSecondaryWithSubNav, setOpen: setPanelOpen, title: !isMinWidthArcBreakpointL && title, subtitle: subTitle, navLink: "", viewAll: href ? (React__default.createElement(Panel.ViewAll, { href: href, onClick: onViewAllClick, title: viewAllTitle, buttonStyle: "primary" })) : undefined, withSubNav: true, isNavItem: false },
|
|
452
449
|
defaultItem
|
|
453
450
|
? React__default.cloneElement(slot1, { isDefaultItem: defaultItem })
|
|
454
451
|
: slot1,
|
|
@@ -485,7 +482,7 @@ var SubNavItem = function (_a) {
|
|
|
485
482
|
var subNavItem = useRef();
|
|
486
483
|
var _e = useState(false), panelOpen = _e[0], setPanelOpen = _e[1];
|
|
487
484
|
var _f = useState(false), fade = _f[0], setFade = _f[1];
|
|
488
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(
|
|
485
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsL, ")"));
|
|
489
486
|
useEffect(function () {
|
|
490
487
|
React__default.Children.map(children, function (item) {
|
|
491
488
|
if (item &&
|
|
@@ -531,7 +528,7 @@ var SubNavItem = function (_a) {
|
|
|
531
528
|
React__default.createElement("span", { "data-cy": "linkTitle", className: "arc-SiteHeaderV2SubNavItem-linkSlotTitle" }, linkTitle))),
|
|
532
529
|
React__default.createElement(Panel, { navItemRef: navItem, open: panelOpen, setOpen: setPanelOpen, subNavItemRef: subNavItem, setOpenPanelOnFirstClick: function () { }, subNavLink: "arc-SiteHeaderV2SubNavItem-link", title: React__default.createElement("span", null,
|
|
533
530
|
title,
|
|
534
|
-
subTitle && (React__default.createElement(Text, { size: "xs", tone: "supporting" }, subTitle))), viewAll: href ? (React__default.createElement(Panel.ViewAll, { href: href, onClick: onClick, title: viewAllTitle || "See all ".concat(title),
|
|
531
|
+
subTitle && (React__default.createElement(Text, { size: "xs", tone: "supporting" }, subTitle))), viewAll: href ? (React__default.createElement(Panel.ViewAll, { href: href, onClick: onClick, title: viewAllTitle || "See all ".concat(title), buttonStyle: "secondary" })) : undefined, isNavItem: false, fade: fade }, children)))));
|
|
535
532
|
};
|
|
536
533
|
|
|
537
534
|
var VerticalDivider = function () {
|
|
@@ -549,7 +546,7 @@ var SiteHeaderV2 = function (_a) {
|
|
|
549
546
|
var children = _a.children, basket = _a.basket, _c = _a.hasLogin, hasLogin = _c === void 0 ? true : _c, _d = _a.isTransparent, isTransparent = _d === void 0 ? false : _d, _e = _a.loginHref, loginHref = _e === void 0 ? "/login" : _e, logoOnClick = _a.logoOnClick, loginOnClick = _a.loginOnClick, _f = _a.loginTitle, loginTitle = _f === void 0 ? "Log in / Register" : _f, _g = _a.logoHref, logoHref = _g === void 0 ? "/" : _g, _h = _a.logoLabel, logoLabel = _h === void 0 ? "Home" : _h, search = _a.search, subBrand = _a.subBrand, props = __rest(_a, ["children", "basket", "hasLogin", "isTransparent", "loginHref", "logoOnClick", "loginOnClick", "loginTitle", "logoHref", "logoLabel", "search", "subBrand"]);
|
|
550
547
|
var _j = useState(false), hasClientSideJavaScript = _j[0], setHasClientSideJavaScript = _j[1];
|
|
551
548
|
var _k = useState(false), menuOpen = _k[0], setMenuOpen = _k[1];
|
|
552
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(
|
|
549
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsL, ")"));
|
|
553
550
|
var menubarRef = useRef();
|
|
554
551
|
useEffect(function () {
|
|
555
552
|
React__default.Children.map(children, function (item) {
|
|
@@ -610,7 +607,7 @@ var SiteHeaderV2 = function (_a) {
|
|
|
610
607
|
_b["arc-no-js"] = !hasClientSideJavaScript,
|
|
611
608
|
_b)) }, filterDataAttrs(props), { "data-transparent": isTransparent || null }),
|
|
612
609
|
React__default.createElement(Surface, { background: !isTransparent || (menuOpen && !isMinWidthArcBreakpointL)
|
|
613
|
-
? "brand-
|
|
610
|
+
? "dark-brand-01"
|
|
614
611
|
: undefined },
|
|
615
612
|
React__default.createElement("div", { className: "arc-SiteHeaderV2-inner" },
|
|
616
613
|
React__default.createElement("a", { className: "arc-SiteHeaderV2-brand", onClick: handleLinkClick({
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { a as __assign, f as filterDataAttrs } from './index.es-fc59ba8f.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Use `Spinner` to display a loading state.
|
|
7
|
+
*/
|
|
8
|
+
var Spinner = function (_a) {
|
|
9
|
+
var _b = _a.size, size = _b === void 0 ? "m" : _b, color = _a.color;
|
|
10
|
+
var props = [];
|
|
11
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
12
|
+
props[_i - 1] = arguments[_i];
|
|
13
|
+
}
|
|
14
|
+
return (React__default.createElement("svg", __assign({ className: classNames("arc-Spinner", "arc-Spinner-".concat(color), "arc-Spinner-size--".concat(size)), width: typeof size === "number" ? "".concat(size, "px") : undefined, "data-testid": "arc-Spinner", "aria-label": "loading", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" }, filterDataAttrs(props)),
|
|
15
|
+
React__default.createElement("circle", { cx: "24", cy: "24", fill: "none", r: "22", "stroke-width": "4", "stroke-linecap": "round" })));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { Spinner as S };
|