@arc-ui/components 12.0.0-beta.23 → 12.0.0-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Alert/Alert.cjs +39 -39
- package/lib/Alert/Alert.mjs +40 -40
- package/lib/Alert/styles.css +1 -1
- package/lib/Align/Align.cjs +4 -3
- package/lib/Align/Align.mjs +2 -1
- package/lib/Align/styles.css +1 -1
- package/lib/AppButton/AppButton.cjs +5 -4
- package/lib/AppButton/AppButton.mjs +3 -2
- package/lib/AppButton/styles.css +1 -1
- package/lib/Avatar/Avatar.cjs +9 -7
- package/lib/Avatar/Avatar.mjs +9 -7
- package/lib/Avatar/styles.css +1 -1
- package/lib/AvatarGroup/AvatarGroup.cjs +14 -12
- package/lib/AvatarGroup/AvatarGroup.mjs +9 -7
- package/lib/AvatarGroup/styles.css +1 -1
- package/lib/Badge/Badge.cjs +3 -2
- package/lib/Badge/Badge.mjs +3 -2
- package/lib/Badge/styles.css +1 -1
- package/lib/Banner/Banner.cjs +14 -12
- package/lib/Banner/Banner.mjs +12 -10
- package/lib/Box/Box.cjs +4 -3
- package/lib/Box/Box.mjs +4 -3
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/BrandLogo.cjs +4 -3
- package/lib/BrandLogo/BrandLogo.mjs +4 -3
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +7 -6
- package/lib/Breadcrumbs/Breadcrumbs.mjs +4 -3
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/Button.cjs +6 -5
- package/lib/Button/Button.mjs +6 -5
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/ButtonGroup.cjs +11 -10
- package/lib/ButtonGroup/ButtonGroup.mjs +8 -7
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/ButtonV2.cjs +6 -5
- package/lib/ButtonV2/ButtonV2.mjs +6 -5
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +12 -10
- package/lib/Calendar/Calendar.mjs +12 -10
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/CardFooter.cjs +5 -4
- package/lib/CardFooter/CardFooter.mjs +5 -4
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/CardHeading.cjs +6 -4
- package/lib/CardHeading/CardHeading.mjs +6 -4
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +7 -6
- package/lib/Carousel/Carousel.mjs +6 -5
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/Checkbox.cjs +22 -55
- package/lib/Checkbox/Checkbox.mjs +23 -56
- package/lib/Checkbox/styles.css +1 -1
- package/lib/CheckboxIcon/CheckboxIcon.cjs +19 -0
- package/lib/CheckboxIcon/CheckboxIcon.mjs +13 -0
- package/lib/CheckboxIcon/styles.css +1 -0
- package/lib/ClientSideVisible/ClientSideVisible.cjs +8 -0
- package/lib/ClientSideVisible/ClientSideVisible.mjs +2 -0
- package/lib/Columns/Columns.cjs +7 -6
- package/lib/Columns/Columns.mjs +3 -2
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +30 -29
- package/lib/ComboBox/ComboBox.mjs +14 -13
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +5 -4
- package/lib/ContentSwitcher/ContentSwitcher.mjs +5 -4
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +10 -9
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +10 -9
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +31 -30
- package/lib/DatePicker/DatePicker.mjs +20 -19
- package/lib/DatePicker/styles.css +1 -1
- package/lib/Disclosure/Disclosure.cjs +8 -6
- package/lib/Disclosure/Disclosure.mjs +6 -4
- package/lib/Disclosure/styles.css +1 -1
- package/lib/DisclosureMini/DisclosureMini.cjs +6 -5
- package/lib/DisclosureMini/DisclosureMini.mjs +6 -5
- package/lib/DisclosureMini/styles.css +1 -1
- package/lib/Download/Download.cjs +7 -6
- package/lib/Download/Download.mjs +7 -6
- package/lib/Download/styles.css +1 -1
- package/lib/Drawer/Drawer.cjs +154 -18
- package/lib/Drawer/Drawer.mjs +154 -18
- package/lib/Drawer/styles.css +1 -1
- package/lib/Elevation/Elevation.cjs +9 -5
- package/lib/Elevation/Elevation.mjs +8 -4
- package/lib/Elevation/styles.css +1 -1
- package/lib/Filter/Filter.cjs +7 -6
- package/lib/Filter/Filter.mjs +4 -3
- package/lib/Filter/styles.css +1 -1
- package/lib/FormControl/FormControl.cjs +8 -7
- package/lib/FormControl/FormControl.mjs +8 -7
- package/lib/FormControl/styles.css +1 -1
- package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +12 -10
- package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +10 -8
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +96 -209
- package/lib/GradientPageBackground/GradientPageBackground.mjs +97 -210
- package/lib/GradientPageBackground/styles.css +1 -1
- package/lib/Grid/Grid.cjs +3 -2
- package/lib/Grid/Grid.mjs +3 -2
- package/lib/Grid/styles.css +1 -1
- package/lib/Group/Group.cjs +7 -6
- package/lib/Group/Group.mjs +3 -2
- package/lib/Group/styles.css +1 -1
- package/lib/Heading/Heading.cjs +5 -3
- package/lib/Heading/Heading.mjs +5 -3
- package/lib/Heading/styles.css +1 -1
- package/lib/HeroBanner/HeroBanner.cjs +14 -12
- package/lib/HeroBanner/HeroBanner.mjs +14 -12
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/HeroButton.cjs +9 -8
- package/lib/HeroButton/HeroButton.mjs +5 -4
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/Hidden.cjs +3 -2
- package/lib/Hidden/Hidden.mjs +3 -2
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/HorizontalCard.cjs +14 -12
- package/lib/HorizontalCard/HorizontalCard.mjs +11 -9
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/Icon.cjs +4 -3
- package/lib/Icon/Icon.mjs +4 -3
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/Image.cjs +3 -2
- package/lib/Image/Image.mjs +3 -2
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/ImpactCard.cjs +13 -11
- package/lib/ImpactCard/ImpactCard.mjs +10 -8
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +29 -19
- package/lib/InformationCard/InformationCard.mjs +23 -13
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/Link.cjs +6 -5
- package/lib/Link/Link.mjs +6 -5
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/Markup.cjs +5 -4
- package/lib/Markup/Markup.mjs +3 -2
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +15 -13
- package/lib/MediaCard/MediaCard.mjs +11 -9
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +221 -83
- package/lib/Menu/Menu.mjs +206 -68
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/Modal.cjs +22 -20
- package/lib/Modal/Modal.mjs +18 -16
- package/lib/Modal/styles.css +1 -1
- package/lib/NavigationHeader/NavigationHeader.cjs +123 -105
- package/lib/NavigationHeader/NavigationHeader.mjs +107 -89
- package/lib/NavigationHeader/styles.css +1 -1
- package/lib/Pagination/Pagination.cjs +10 -9
- package/lib/Pagination/Pagination.mjs +6 -5
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/PaginationSimple.cjs +7 -6
- package/lib/PaginationSimple/PaginationSimple.mjs +5 -4
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/Popover.cjs +8 -7
- package/lib/Popover/Popover.mjs +8 -7
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/Poster.cjs +10 -9
- package/lib/Poster/Poster.mjs +4 -3
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/ProgressBar.cjs +15 -13
- package/lib/ProgressBar/ProgressBar.mjs +10 -8
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/ProgressStepper.cjs +6 -6
- package/lib/ProgressStepper/ProgressStepper.mjs +6 -6
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +8 -8
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +6 -6
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +13 -12
- package/lib/RadioCardGroup/RadioCardGroup.mjs +9 -8
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/RadioGroup.cjs +14 -12
- package/lib/RadioGroup/RadioGroup.mjs +12 -10
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/Rule.cjs +4 -3
- package/lib/Rule/Rule.mjs +4 -3
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +11 -18
- package/lib/ScrollToTop/ScrollToTop.mjs +11 -18
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/Section.cjs +3 -2
- package/lib/Section/Section.mjs +3 -2
- package/lib/Section/styles.css +1 -1
- package/lib/Select/Select.cjs +25 -17
- package/lib/Select/Select.mjs +25 -17
- package/lib/Select/styles.css +1 -1
- package/lib/SemanticHeading/SemanticHeading.cjs +10 -0
- package/lib/SemanticHeading/SemanticHeading.mjs +4 -0
- package/lib/SemanticHeading/styles.css +1 -0
- package/lib/SiteFooter/SiteFooter.cjs +13 -12
- package/lib/SiteFooter/SiteFooter.mjs +7 -6
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +23 -22
- package/lib/SiteFooterV2/SiteFooterV2.mjs +10 -9
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +30 -29
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +10 -9
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/Skeleton.cjs +4 -3
- package/lib/Skeleton/Skeleton.mjs +2 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/SkipLink.cjs +5 -4
- package/lib/SkipLink/SkipLink.mjs +4 -3
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/Spinner.cjs +3 -2
- package/lib/Spinner/Spinner.mjs +3 -2
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/Surface.cjs +3 -2
- package/lib/Surface/Surface.mjs +3 -2
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/Switch.cjs +14 -13
- package/lib/Switch/Switch.mjs +12 -11
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +26 -24
- package/lib/TabbedBanner/TabbedBanner.mjs +22 -20
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.cjs +12 -11
- package/lib/Tabs/Tabs.mjs +5 -4
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/Tag.cjs +9 -6
- package/lib/Tag/Tag.mjs +8 -5
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +12 -10
- package/lib/TemplateBanner/TemplateBanner.mjs +12 -10
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/Text.cjs +4 -3
- package/lib/Text/Text.mjs +4 -3
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +11 -10
- package/lib/TextArea/TextArea.mjs +9 -8
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/TextInput.cjs +10 -9
- package/lib/TextInput/TextInput.mjs +10 -9
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +5 -4
- package/lib/Theme/Theme.mjs +3 -2
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/ThemeIcon.cjs +4 -3
- package/lib/ThemeIcon/ThemeIcon.mjs +4 -3
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +12 -11
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +8 -7
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/Toast.cjs +12 -9
- package/lib/Toast/Toast.mjs +9 -6
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +6 -5
- package/lib/Tooltip/Tooltip.mjs +6 -5
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/Truncate.cjs +4 -3
- package/lib/Truncate/Truncate.mjs +2 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/TypographyCard.cjs +11 -9
- package/lib/TypographyCard/TypographyCard.mjs +9 -7
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/UniversalHeader.cjs +7 -6
- package/lib/UniversalHeader/UniversalHeader.mjs +3 -2
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/VerticalSpace.cjs +3 -2
- package/lib/VerticalSpace/VerticalSpace.mjs +3 -2
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/VideoPlayer.cjs +27 -26
- package/lib/VideoPlayer/VideoPlayer.mjs +26 -25
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/Visible.cjs +3 -2
- package/lib/Visible/Visible.mjs +3 -2
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/VisuallyHidden.cjs +3 -2
- package/lib/VisuallyHidden/VisuallyHidden.mjs +3 -2
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Avatar-CrUioj_6.cjs → Avatar-CecZTQdk.cjs} +11 -10
- package/lib/_shared/cjs/Badge-DX5PjtiZ.cjs +15 -0
- package/lib/_shared/cjs/BannerImage-qK8-w9rt.cjs +13 -0
- package/lib/_shared/cjs/{Box-COPXU1Jf.cjs → Box-Va2g7Gdp.cjs} +5 -4
- package/lib/_shared/cjs/{BrandLogo-D5wlIFmm.cjs → BrandLogo-coNfTwRv.cjs} +5 -4
- package/lib/_shared/cjs/{Button-uD9mR8w-.cjs → Button-MXE2zSmS.cjs} +9 -8
- package/lib/_shared/cjs/ButtonV2-BJlwsXlN.cjs +58 -0
- package/lib/_shared/cjs/{Calendar-Bfdgf5q1.cjs → Calendar-CFUNKEyb.cjs} +35 -41
- package/lib/_shared/cjs/{CardFooter-ChphRFHe.cjs → CardFooter-BPtRFaCy.cjs} +5 -16
- package/lib/_shared/cjs/{CardHeading-Cl0D1Khp.cjs → CardHeading-1-dcxBUr.cjs} +4 -3
- package/lib/_shared/cjs/CheckboxIcon-B94mtYCX.cjs +52 -0
- package/lib/_shared/cjs/ClientSideVisible-BhW-T6kb.cjs +16 -0
- package/lib/_shared/cjs/{Combination-B-rSVLfT.cjs → Combination-6m6aOXZq.cjs} +9 -9
- package/lib/_shared/cjs/{ContentSwitcherDropdown-U5ZTbJTe.cjs → ContentSwitcherDropdown-BtEnzdMw.cjs} +23 -12
- package/lib/_shared/cjs/{ContentSwitcherList-pcYtuT6L.cjs → ContentSwitcherList-BgAW2IhJ.cjs} +14 -10
- package/lib/_shared/cjs/{DisclosureMini-CtvDxVaG.cjs → DisclosureMini-KEuIc8tE.cjs} +7 -6
- package/lib/_shared/cjs/{Download-CrIytI74.cjs → Download-NY3tbv9Q.cjs} +8 -5
- package/lib/_shared/cjs/{FormControl-BPnKQrCm.cjs → FormControl-DiERJpGW.cjs} +16 -13
- package/lib/_shared/cjs/GridRow-l_SePUqV.cjs +45 -0
- package/lib/_shared/cjs/{Heading-BEMSkLYR.cjs → Heading-CoiZ2EmD.cjs} +7 -8
- package/lib/_shared/cjs/{Hidden-Vsv1-xWO.cjs → Hidden-BN0Q0NpZ.cjs} +4 -3
- package/lib/_shared/cjs/{Icon-CzhyKqMd.cjs → Icon-Dk2XHa7V.cjs} +5 -4
- package/lib/_shared/cjs/{Image-C1pcrfnN.cjs → Image-CSe0KpDN.cjs} +8 -7
- package/lib/_shared/cjs/{Link-C3OSQIIk.cjs → Link-PWpx-rRO.cjs} +10 -9
- package/lib/_shared/cjs/{Popover-C5mmMkYU.cjs → Popover-hpvmhKV8.cjs} +9 -7
- package/lib/_shared/cjs/{ProgressStepper-BL9Y5c4X.cjs → ProgressStepper-DTZQabiV.cjs} +142 -10
- package/lib/_shared/cjs/{Rule-DMQsi2L6.cjs → Rule-jmvOpci7.cjs} +4 -3
- package/lib/_shared/cjs/{Section-Bz2fwj8Z.cjs → Section-BorWFfNe.cjs} +4 -3
- package/lib/_shared/cjs/SemanticHeading-BPXN_z49.cjs +12 -0
- package/lib/_shared/cjs/Spinner-427lpnHI.cjs +17 -0
- package/lib/_shared/cjs/{Surface-BFx1yNsq.cjs → Surface-DIU5ciDT.cjs} +6 -5
- package/lib/_shared/cjs/{TemplateBanner-COymAI91.cjs → TemplateBanner-BlmWfDQD.cjs} +15 -14
- package/lib/_shared/cjs/{Text-Cr5nmYmx.cjs → Text-jwsn80lQ.cjs} +5 -4
- package/lib/_shared/cjs/{TextInput-ByySubi5.cjs → TextInput-B0JrZhOo.cjs} +13 -12
- package/lib/_shared/cjs/{ThemeIcon-BoxbjTaQ.cjs → ThemeIcon-Def4RZfK.cjs} +5 -4
- package/lib/_shared/cjs/{Tooltip-BPHL0ELI.cjs → Tooltip-CEb7YEP2.cjs} +10 -9
- package/lib/_shared/cjs/{VerticalSpace-BJvST6WP.cjs → VerticalSpace-DLQUYsvc.cjs} +5 -3
- package/lib/_shared/cjs/{Visible-vchtZSfm.cjs → Visible-DZWtZ5qG.cjs} +4 -3
- package/lib/_shared/cjs/VisuallyHidden-CQg3cOVK.cjs +15 -0
- package/lib/_shared/cjs/{arc-breakpoints-CS8JVk5T.cjs → arc-breakpoints-BDA1EnFK.cjs} +11 -1
- package/lib/_shared/cjs/filter-attrs-D19P2s1V.cjs +15 -0
- package/lib/_shared/cjs/{index-Dv1xvB_E.cjs → index-BGGFOAAx.cjs} +1 -1
- package/lib/_shared/cjs/{index-CaO6cOF0.cjs → index-BWfgSvRQ.cjs} +3 -3
- package/lib/_shared/cjs/{index-C_Rl7v2g.cjs → index-CDVpHNP8.cjs} +3 -3
- package/lib/_shared/cjs/{index-EFXw1jWg.cjs → index-CklPiHsS.cjs} +1 -1
- package/lib/_shared/cjs/{index-DAr_oO4-.cjs → index-D9onmVh5.cjs} +2 -2
- package/lib/_shared/cjs/{index-Bt7hfZBc.cjs → index-KrMgv4q_.cjs} +1 -1
- package/lib/_shared/cjs/{index.es-fkulh7qu.cjs → index.es-VcVPUNjD.cjs} +1 -1
- package/lib/_shared/cjs/{filter-attrs-eK6E_34o.cjs → tslib.es6-CCZ3TN_7.cjs} +0 -13
- package/lib/_shared/cjs/use-media-query-DqZqShGX.cjs +58 -0
- package/lib/_shared/esm/{Avatar-Fb1E5MA9.mjs → Avatar-Cyqjgj85.mjs} +6 -5
- package/lib/_shared/esm/{Badge-BZ7E0zcQ.mjs → Badge-C_3PBa0p.mjs} +2 -1
- package/lib/_shared/esm/{BannerImage-BTsixvUH.mjs → BannerImage-CgjgaYkJ.mjs} +2 -2
- package/lib/_shared/esm/{Box-BYm_GTct.mjs → Box-C8iK8x5c.mjs} +3 -2
- package/lib/_shared/esm/{BrandLogo-_2Z_8I2Y.mjs → BrandLogo-Dc-d_8ZN.mjs} +3 -2
- package/lib/_shared/esm/{Button-BxuM3_gz.mjs → Button-BpQQut8P.mjs} +5 -4
- package/lib/_shared/esm/{ButtonV2-DwYBAojW.mjs → ButtonV2-C4a_kkhh.mjs} +16 -13
- package/lib/_shared/esm/{Calendar-Drh_NJ9I.mjs → Calendar-CFdUlPXh.mjs} +14 -20
- package/lib/_shared/esm/{CardFooter-fsAY4cc6.mjs → CardFooter-BpVSztgE.mjs} +5 -16
- package/lib/_shared/esm/{CardHeading-_setRRjq.mjs → CardHeading-q6k7obu0.mjs} +4 -3
- package/lib/_shared/esm/CheckboxIcon-Bzto2Tke.mjs +50 -0
- package/lib/_shared/esm/ClientSideVisible-D_iBE-3U.mjs +14 -0
- package/lib/_shared/esm/{Combination-BpO6XTeS.mjs → Combination-BQ4XBtF-.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherDropdown-BCkuAfwC.mjs → ContentSwitcherDropdown-DgrN4Bdb.mjs} +21 -10
- package/lib/_shared/esm/{ContentSwitcherList-DwHfU3no.mjs → ContentSwitcherList-i4m4nAzP.mjs} +8 -4
- package/lib/_shared/esm/{DisclosureMini-B9LzsQC2.mjs → DisclosureMini-ClSe9sSt.mjs} +5 -4
- package/lib/_shared/esm/{Download-DFz_1HCG.mjs → Download-BD8Bigeq.mjs} +8 -5
- package/lib/_shared/esm/{FormControl-CWyrVi1u.mjs → FormControl-Pc1aHUNM.mjs} +13 -10
- package/lib/_shared/esm/{GridRow-Ddt5CtFn.mjs → GridRow-vjacXnq0.mjs} +3 -2
- package/lib/_shared/esm/{Heading-CxHWefi7.mjs → Heading-B9cbwfoz.mjs} +7 -8
- package/lib/_shared/esm/{Hidden-DsrAaC0z.mjs → Hidden-CGRhG3dU.mjs} +2 -1
- package/lib/_shared/esm/{Icon-CcPOJcQm.mjs → Icon-CCUbr_AO.mjs} +3 -2
- package/lib/_shared/esm/{Image-Dl8oH1Rn.mjs → Image-LemsonUX.mjs} +4 -3
- package/lib/_shared/esm/{Link-DxjGH_7f.mjs → Link-ogbR4K3O.mjs} +5 -4
- package/lib/_shared/esm/{Popover-8FfvgL4c.mjs → Popover-D0ePWPz_.mjs} +8 -6
- package/lib/_shared/esm/{ProgressStepper-CLBtBNy2.mjs → ProgressStepper-CujHLQsm.mjs} +137 -5
- package/lib/_shared/esm/{Rule-3gdMHH-R.mjs → Rule-I1w3EaZi.mjs} +3 -2
- package/lib/_shared/esm/{Section-7InCvzfh.mjs → Section-COc1l3mp.mjs} +2 -1
- package/lib/_shared/esm/SemanticHeading-1tLcSJYD.mjs +10 -0
- package/lib/_shared/esm/{Spinner-Cd7LiPTy.mjs → Spinner-DvngCIwx.mjs} +2 -1
- package/lib/_shared/esm/{Surface-Colbp3Zx.mjs → Surface-C69KVzkY.mjs} +2 -1
- package/lib/_shared/esm/{TemplateBanner-Dkgzu3A5.mjs → TemplateBanner-DEYOSosH.mjs} +12 -11
- package/lib/_shared/esm/{Text-CBlnm5CT.mjs → Text-BAzOkkzN.mjs} +3 -2
- package/lib/_shared/esm/{TextInput-Dk7qNGoh.mjs → TextInput-CjDG2cIX.mjs} +8 -7
- package/lib/_shared/esm/{ThemeIcon-CN_Ed5b1.mjs → ThemeIcon-B0SruPZC.mjs} +3 -2
- package/lib/_shared/esm/{Tooltip-Dc82Ht7G.mjs → Tooltip-BpSzN3Tx.mjs} +7 -6
- package/lib/_shared/esm/{VerticalSpace-Duhm0zXP.mjs → VerticalSpace-BLWB02I7.mjs} +4 -2
- package/lib/_shared/esm/{Visible-B13QJn7R.mjs → Visible-B0d79VWZ.mjs} +2 -1
- package/lib/_shared/esm/{VisuallyHidden-DqAgoqJo.mjs → VisuallyHidden-aSQ4RA1o.mjs} +2 -1
- package/lib/_shared/esm/{arc-breakpoints-D7Ie4kBt.mjs → arc-breakpoints-Bs-at7wk.mjs} +7 -2
- package/lib/_shared/esm/filter-attrs-v_SweZXP.mjs +13 -0
- package/lib/_shared/esm/{index-DLovItWo.mjs → index-BFKdmv_g.mjs} +1 -1
- package/lib/_shared/esm/{index-J5IHetgg.mjs → index-CN4hP3Wu.mjs} +2 -2
- package/lib/_shared/esm/{index-CxrL7jIX.mjs → index-Do2wfP-X.mjs} +3 -3
- package/lib/_shared/esm/{index-DXTwueLZ.mjs → index-GCEHSsY8.mjs} +1 -1
- package/lib/_shared/esm/{index-BbAu4d3T.mjs → index-u47CK8Y0.mjs} +1 -1
- package/lib/_shared/esm/{index-CYUcQl4W.mjs → index-vnVJe9rH.mjs} +3 -3
- package/lib/_shared/esm/{index.es-CtRkzfKP.mjs → index.es-tyrXzvpp.mjs} +1 -1
- package/lib/_shared/esm/{filter-attrs-B6CM-NUr.mjs → tslib.es6-w7hdJ3oZ.mjs} +1 -13
- package/lib/_shared/esm/use-media-query-BmsMeo2M.mjs +56 -0
- package/lib/index.cjs +1018 -790
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +324 -142
- package/lib/index.d.mts +324 -142
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1018 -792
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +6 -14
- package/lib/use-media-query/use-media-query.cjs +1 -1
- package/lib/use-media-query/use-media-query.mjs +1 -1
- package/package.json +9 -8
- package/lib/_shared/cjs/Badge-CQVEPH9v.cjs +0 -14
- package/lib/_shared/cjs/BannerImage-kdAKagG-.cjs +0 -13
- package/lib/_shared/cjs/ButtonV2-Bta5SVVY.cjs +0 -55
- package/lib/_shared/cjs/GridRow-BW2ZGtND.cjs +0 -44
- package/lib/_shared/cjs/Spinner-bbrOwxv2.cjs +0 -16
- package/lib/_shared/cjs/VisuallyHidden-B4XCvPYP.cjs +0 -14
- package/lib/_shared/cjs/index-CqYNiqix.cjs +0 -137
- package/lib/_shared/cjs/use-media-query-BsUfHjPZ.cjs +0 -41
- package/lib/_shared/esm/index-CL6dwOYV.mjs +0 -135
- package/lib/_shared/esm/use-media-query-DmKuIDEM.mjs +0 -39
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { u as useMediaQuery } from '../_shared/esm/use-media-query-
|
|
1
|
+
export { u as useMediaQuery } from '../_shared/esm/use-media-query-BmsMeo2M.mjs';
|
|
2
2
|
import 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/components",
|
|
3
|
-
"version": "12.0.0-beta.
|
|
3
|
+
"version": "12.0.0-beta.24",
|
|
4
4
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
5
5
|
"author": "BT Business Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
6
6
|
"main": "./lib/index.cjs",
|
|
@@ -95,13 +95,14 @@
|
|
|
95
95
|
"ts-jest": "^29.2.5",
|
|
96
96
|
"tslib": "^2.8.1",
|
|
97
97
|
"typescript": "5.6.3",
|
|
98
|
-
"@arc-ui/
|
|
99
|
-
"@arc-ui/
|
|
100
|
-
"@arc-ui/
|
|
101
|
-
"@arc-ui/
|
|
102
|
-
"@arc-ui/
|
|
103
|
-
"@arc-ui/
|
|
104
|
-
"@arc-ui/
|
|
98
|
+
"@arc-ui/eslint-config": "^11.24.1",
|
|
99
|
+
"@arc-ui/gradients": "^12.0.0-beta.24",
|
|
100
|
+
"@arc-ui/css-config": "^11.24.1",
|
|
101
|
+
"@arc-ui/helpers": "^12.0.0-beta.24",
|
|
102
|
+
"@arc-ui/icons": "^12.0.0-beta.24",
|
|
103
|
+
"@arc-ui/tokens-bt-enterprise": "^12.0.0-beta.24",
|
|
104
|
+
"@arc-ui/typescript-config": "^11.24.1",
|
|
105
|
+
"@arc-ui/tokens-arc": "^12.0.0-beta.24"
|
|
105
106
|
},
|
|
106
107
|
"browserslist": [
|
|
107
108
|
"defaults",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
-
var suffixModifier = require('./suffix-modifier-DLUGR-yG.cjs');
|
|
7
|
-
|
|
8
|
-
/** Use `Badge` as a static, non-interactive way to provide short updates. */
|
|
9
|
-
var Badge = function (_a) {
|
|
10
|
-
var children = _a.children, _b = _a.state, state = _b === void 0 ? "default" : _b, ariaLabel = _a.ariaLabel, ariaRole = _a.ariaRole, props = filterAttrs.__rest(_a, ["children", "state", "ariaLabel", "ariaRole"]);
|
|
11
|
-
return (React.createElement("div", filterAttrs.__assign({ className: index.classNames("arc-Badge", suffixModifier.suffixModifier("arc-Badge--state", state)) }, (ariaLabel && { "aria-label": ariaLabel }), (ariaRole && { role: ariaRole }), filterAttrs.filterAttrs(props)), children));
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.Badge = Badge;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('./Image-C1pcrfnN.cjs');
|
|
6
|
-
|
|
7
|
-
var BannerImage = function (_a) {
|
|
8
|
-
var sources = _a.sources, ariaHidden = _a.ariaHidden, props = filterAttrs.__rest(_a, ["sources", "ariaHidden"]);
|
|
9
|
-
return (React.createElement(Image.Image, filterAttrs.__assign({ "aria-hidden": ariaHidden, fadeOnLoad: true }, props), sources &&
|
|
10
|
-
sources.map(function (source) { return React.createElement("source", filterAttrs.__assign({ key: source.srcSet }, source)); })));
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
exports.BannerImage = BannerImage;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
-
var Icon = require('./Icon-CzhyKqMd.cjs');
|
|
7
|
-
var Surface = require('./Surface-BFx1yNsq.cjs');
|
|
8
|
-
var Spinner = require('./Spinner-bbrOwxv2.cjs');
|
|
9
|
-
|
|
10
|
-
var ButtonV2 = React.forwardRef(function (_a, ref) {
|
|
11
|
-
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, _c = _a.iconPosition, iconPosition = _c === void 0 ? "beforeText" : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, isSpan = _a.isSpan, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = filterAttrs.__rest(_a, ["label", "buttonStyle", "icon", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form"]);
|
|
12
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
13
|
-
var ButtonElement = isSpan ? "span" : "button";
|
|
14
|
-
var iconSizes = {
|
|
15
|
-
s: 16,
|
|
16
|
-
m: 32,
|
|
17
|
-
l: 40,
|
|
18
|
-
};
|
|
19
|
-
var ButtonV2Classes = index.classNames("arc-ButtonV2", ["arc-ButtonV2--".concat(buttonStyle)], ["arc-ButtonV2--".concat(size)], {
|
|
20
|
-
"arc-ButtonV2--onDarkSurface": surface === "dark",
|
|
21
|
-
"arc-ButtonV2--emptyLabel": !label,
|
|
22
|
-
"arc-ButtonV2--isLoading": isLoading,
|
|
23
|
-
"arc-ButtonV2--isFullWidth": isFullWidth,
|
|
24
|
-
"arc-ButtonV2--withIcon": icon || isLoading,
|
|
25
|
-
"arc-ButtonV2--withIconBeforeText": iconPosition === "beforeText" && (icon || isLoading),
|
|
26
|
-
});
|
|
27
|
-
var commonProps = filterAttrs.__assign({ id: id, onClick: onClick, ref: ref }, filterAttrs.filterAttrs(props));
|
|
28
|
-
var getIconColor = function (buttonStyle) {
|
|
29
|
-
switch (buttonStyle) {
|
|
30
|
-
case "compact":
|
|
31
|
-
case "secondary":
|
|
32
|
-
case "tertiary":
|
|
33
|
-
return "brand-alt";
|
|
34
|
-
default:
|
|
35
|
-
return "auto";
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var buttonContent = (React.createElement("span", { className: index.classNames("arc-ButtonV2-inner", {
|
|
39
|
-
"arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
|
|
40
|
-
}) },
|
|
41
|
-
label && React.createElement("span", { className: "arc-ButtonV2-label" }, label),
|
|
42
|
-
isLoading && (React.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
43
|
-
React.createElement(Spinner.Spinner, { size: size }))),
|
|
44
|
-
icon && !isLoading && (React.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
45
|
-
React.createElement(Icon.Icon, { color: getIconColor(buttonStyle), size: iconSizes[size], icon: icon })))));
|
|
46
|
-
if (href && !isLoading) {
|
|
47
|
-
return (React.createElement("a", filterAttrs.__assign({}, commonProps, { className: ButtonV2Classes, href: href, rel: rel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, target: target }), buttonContent));
|
|
48
|
-
}
|
|
49
|
-
return (React.createElement(ButtonElement, filterAttrs.__assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }),
|
|
50
|
-
React.createElement("span", { className: index.classNames("arc-ButtonV2-inner", {
|
|
51
|
-
"arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
|
|
52
|
-
}) }, buttonContent)));
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
exports.ButtonV2 = ButtonV2;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
-
var suffixModifier = require('./suffix-modifier-DLUGR-yG.cjs');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Use `Grid` to compose layouts on a 12-column grid.
|
|
10
|
-
*/
|
|
11
|
-
var Grid = function (_a) {
|
|
12
|
-
var children = _a.children, isFluid = _a.isFluid, isDebugVisible = _a.isDebugVisible, isGutterless = _a.isGutterless, _b = _a.isExtended, isExtended = _b === void 0 ? false : _b, props = filterAttrs.__rest(_a, ["children", "isFluid", "isDebugVisible", "isGutterless", "isExtended"]);
|
|
13
|
-
return (React.createElement("div", filterAttrs.__assign({ className: index.classNames("arc-Grid", {
|
|
14
|
-
"arc-Grid--regular": !isExtended,
|
|
15
|
-
"arc-Grid--extended": isExtended,
|
|
16
|
-
"arc-Grid--fluid": isFluid,
|
|
17
|
-
"arc-Grid--debugVisible": isDebugVisible,
|
|
18
|
-
"arc-Grid--gutterless": isGutterless,
|
|
19
|
-
}) }, filterAttrs.filterAttrs(props)),
|
|
20
|
-
React.createElement("div", { className: "arc-Grid-inner" }, children)));
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
var BREAKPOINTS = ["xs", "s", "m", "l", "xl", "xxl", "xxxl"];
|
|
24
|
-
|
|
25
|
-
var GridCol = function (_a) {
|
|
26
|
-
var order = _a.order, offset = _a.offset, align = _a.align, children = _a.children, props = filterAttrs.__rest(_a, ["order", "offset", "align", "children"]);
|
|
27
|
-
return (React.createElement("div", filterAttrs.__assign({ className: index.classNames("arc-Grid-col", BREAKPOINTS.reduce(function (acc, bp) {
|
|
28
|
-
var _a;
|
|
29
|
-
var sizeValue = props === null || props === void 0 ? void 0 : props[bp];
|
|
30
|
-
var orderValue = order === null || order === void 0 ? void 0 : order[bp];
|
|
31
|
-
var offsetValue = offset === null || offset === void 0 ? void 0 : offset[bp];
|
|
32
|
-
var alignValue = align === null || align === void 0 ? void 0 : align[bp];
|
|
33
|
-
return filterAttrs.__assign(filterAttrs.__assign({}, acc), (_a = {}, _a["arc-Grid-col--".concat(bp).concat(sizeValue)] = sizeValue !== undefined, _a["arc-Grid-order--".concat(bp).concat(orderValue)] = orderValue !== undefined, _a["arc-Grid-offset--".concat(bp).concat(offsetValue)] = offsetValue !== undefined, _a["arc-Grid-align--".concat(bp).concat(alignValue)] = alignValue !== undefined, _a));
|
|
34
|
-
}, {})) }, filterAttrs.filterAttrs(props)), children));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var GridRow = function (_a) {
|
|
38
|
-
var _b = _a.direction, direction = _b === void 0 ? "row" : _b, _c = _a.align, align = _c === void 0 ? "normal" : _c, _d = _a.justify, justify = _d === void 0 ? "normal" : _d, children = _a.children, props = filterAttrs.__rest(_a, ["direction", "align", "justify", "children"]);
|
|
39
|
-
return (React.createElement("div", filterAttrs.__assign({ className: index.classNames("arc-Grid-row", "".concat(suffixModifier.suffixModifier("arc-Grid-row--direction", direction)), "".concat(suffixModifier.suffixModifier("arc-Grid-row--justify", justify)), "".concat(suffixModifier.suffixModifier("arc-Grid-row--align", align))) }, filterAttrs.filterAttrs(props)), children));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
exports.Grid = Grid;
|
|
43
|
-
exports.GridCol = GridCol;
|
|
44
|
-
exports.GridRow = GridRow;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Use `Spinner` to display a loading state.
|
|
9
|
-
*/
|
|
10
|
-
var Spinner = function (_a) {
|
|
11
|
-
var _b = _a.size, size = _b === void 0 ? "m" : _b, color = _a.color, props = filterAttrs.__rest(_a, ["size", "color"]);
|
|
12
|
-
return (React.createElement("svg", filterAttrs.__assign({ className: index.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" }, filterAttrs.filterAttrs(props)),
|
|
13
|
-
React.createElement("circle", { cx: "24", cy: "24", fill: "none", r: "22", strokeWidth: "4", strokeLinecap: "round" })));
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.Spinner = Spinner;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Use `VisuallyHidden` to provide text for screen readers that is visually hidden on screen.
|
|
8
|
-
*/
|
|
9
|
-
var VisuallyHidden = function (_a) {
|
|
10
|
-
var children = _a.children, props = filterAttrs.__rest(_a, ["children"]);
|
|
11
|
-
return (React.createElement("span", filterAttrs.__assign({ "data-testid": "visually-hidden", className: "arc-VisuallyHidden" }, filterAttrs.filterAttrs(props)), children));
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.VisuallyHidden = VisuallyHidden;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-CTlXMLug.cjs');
|
|
4
|
-
|
|
5
|
-
var shorterCssColorNames;
|
|
6
|
-
var hasRequiredShorterCssColorNames;
|
|
7
|
-
|
|
8
|
-
function requireShorterCssColorNames () {
|
|
9
|
-
if (hasRequiredShorterCssColorNames) return shorterCssColorNames;
|
|
10
|
-
hasRequiredShorterCssColorNames = 1;
|
|
11
|
-
shorterCssColorNames = {
|
|
12
|
-
aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
13
|
-
azure: /#f0ffff(ff)?(?!\w)/gi,
|
|
14
|
-
beige: /#f5f5dc(ff)?(?!\w)/gi,
|
|
15
|
-
bisque: /#ffe4c4(ff)?(?!\w)/gi,
|
|
16
|
-
black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
|
|
17
|
-
blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
|
|
18
|
-
brown: /#a52a2a(ff)?(?!\w)/gi,
|
|
19
|
-
coral: /#ff7f50(ff)?(?!\w)/gi,
|
|
20
|
-
cornsilk: /#fff8dc(ff)?(?!\w)/gi,
|
|
21
|
-
crimson: /#dc143c(ff)?(?!\w)/gi,
|
|
22
|
-
cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
23
|
-
darkblue: /#00008b(ff)?(?!\w)/gi,
|
|
24
|
-
darkcyan: /#008b8b(ff)?(?!\w)/gi,
|
|
25
|
-
darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
|
|
26
|
-
darkred: /#8b0000(ff)?(?!\w)/gi,
|
|
27
|
-
deeppink: /#ff1493(ff)?(?!\w)/gi,
|
|
28
|
-
dimgrey: /#696969(ff)?(?!\w)/gi,
|
|
29
|
-
gold: /#ffd700(ff)?(?!\w)/gi,
|
|
30
|
-
green: /#008000(ff)?(?!\w)/gi,
|
|
31
|
-
grey: /#808080(ff)?(?!\w)/gi,
|
|
32
|
-
honeydew: /#f0fff0(ff)?(?!\w)/gi,
|
|
33
|
-
hotpink: /#ff69b4(ff)?(?!\w)/gi,
|
|
34
|
-
indigo: /#4b0082(ff)?(?!\w)/gi,
|
|
35
|
-
ivory: /#fffff0(ff)?(?!\w)/gi,
|
|
36
|
-
khaki: /#f0e68c(ff)?(?!\w)/gi,
|
|
37
|
-
lavender: /#e6e6fa(ff)?(?!\w)/gi,
|
|
38
|
-
lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
|
|
39
|
-
linen: /#faf0e6(ff)?(?!\w)/gi,
|
|
40
|
-
maroon: /#800000(ff)?(?!\w)/gi,
|
|
41
|
-
moccasin: /#ffe4b5(ff)?(?!\w)/gi,
|
|
42
|
-
navy: /#000080(ff)?(?!\w)/gi,
|
|
43
|
-
oldlace: /#fdf5e6(ff)?(?!\w)/gi,
|
|
44
|
-
olive: /#808000(ff)?(?!\w)/gi,
|
|
45
|
-
orange: /#ffa500(ff)?(?!\w)/gi,
|
|
46
|
-
orchid: /#da70d6(ff)?(?!\w)/gi,
|
|
47
|
-
peru: /#cd853f(ff)?(?!\w)/gi,
|
|
48
|
-
pink: /#ffc0cb(ff)?(?!\w)/gi,
|
|
49
|
-
plum: /#dda0dd(ff)?(?!\w)/gi,
|
|
50
|
-
purple: /#800080(ff)?(?!\w)/gi,
|
|
51
|
-
red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
|
|
52
|
-
salmon: /#fa8072(ff)?(?!\w)/gi,
|
|
53
|
-
seagreen: /#2e8b57(ff)?(?!\w)/gi,
|
|
54
|
-
seashell: /#fff5ee(ff)?(?!\w)/gi,
|
|
55
|
-
sienna: /#a0522d(ff)?(?!\w)/gi,
|
|
56
|
-
silver: /#c0c0c0(ff)?(?!\w)/gi,
|
|
57
|
-
skyblue: /#87ceeb(ff)?(?!\w)/gi,
|
|
58
|
-
snow: /#fffafa(ff)?(?!\w)/gi,
|
|
59
|
-
tan: /#d2b48c(ff)?(?!\w)/gi,
|
|
60
|
-
teal: /#008080(ff)?(?!\w)/gi,
|
|
61
|
-
thistle: /#d8bfd8(ff)?(?!\w)/gi,
|
|
62
|
-
tomato: /#ff6347(ff)?(?!\w)/gi,
|
|
63
|
-
violet: /#ee82ee(ff)?(?!\w)/gi,
|
|
64
|
-
wheat: /#f5deb3(ff)?(?!\w)/gi,
|
|
65
|
-
white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi,
|
|
66
|
-
};
|
|
67
|
-
return shorterCssColorNames;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
var miniSvgDataUri;
|
|
71
|
-
var hasRequiredMiniSvgDataUri;
|
|
72
|
-
|
|
73
|
-
function requireMiniSvgDataUri () {
|
|
74
|
-
if (hasRequiredMiniSvgDataUri) return miniSvgDataUri;
|
|
75
|
-
hasRequiredMiniSvgDataUri = 1;
|
|
76
|
-
var shorterNames = requireShorterCssColorNames();
|
|
77
|
-
var REGEX = {
|
|
78
|
-
whitespace: /\s+/g,
|
|
79
|
-
urlHexPairs: /%[\dA-F]{2}/g,
|
|
80
|
-
quotes: /"/g,
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
function collapseWhitespace(str) {
|
|
84
|
-
return str.trim().replace(REGEX.whitespace, ' ');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function dataURIPayload(string) {
|
|
88
|
-
return encodeURIComponent(string)
|
|
89
|
-
.replace(REGEX.urlHexPairs, specialHexEncode);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// `#` gets converted to `%23`, so quite a few CSS named colors are shorter than
|
|
93
|
-
// their equivalent URL-encoded hex codes.
|
|
94
|
-
function colorCodeToShorterNames(string) {
|
|
95
|
-
Object.keys(shorterNames).forEach(function(key) {
|
|
96
|
-
if (shorterNames[key].test(string)) {
|
|
97
|
-
string = string.replace(shorterNames[key], key);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
return string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function specialHexEncode(match) {
|
|
105
|
-
switch (match) { // Browsers tolerate these characters, and they're frequent
|
|
106
|
-
case '%20': return ' ';
|
|
107
|
-
case '%3D': return '=';
|
|
108
|
-
case '%3A': return ':';
|
|
109
|
-
case '%2F': return '/';
|
|
110
|
-
default: return match.toLowerCase(); // compresses better
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function svgToTinyDataUri(svgString) {
|
|
115
|
-
if (typeof svgString !== 'string') {
|
|
116
|
-
throw new TypeError('Expected a string, but received ' + typeof svgString);
|
|
117
|
-
}
|
|
118
|
-
// Strip the Byte-Order Mark if the SVG has one
|
|
119
|
-
if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1); }
|
|
120
|
-
|
|
121
|
-
var body = colorCodeToShorterNames(collapseWhitespace(svgString))
|
|
122
|
-
.replace(REGEX.quotes, "'");
|
|
123
|
-
return 'data:image/svg+xml,' + dataURIPayload(body);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
svgToTinyDataUri.toSrcset = function toSrcset(svgString) {
|
|
127
|
-
return svgToTinyDataUri(svgString).replace(/ /g, '%20');
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
miniSvgDataUri = svgToTinyDataUri;
|
|
131
|
-
return miniSvgDataUri;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
var miniSvgDataUriExports = requireMiniSvgDataUri();
|
|
135
|
-
var svgToMiniDataURI = /*@__PURE__*/index.getDefaultExportFromCjs(miniSvgDataUriExports);
|
|
136
|
-
|
|
137
|
-
exports.svgToMiniDataURI = svgToMiniDataURI;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef MediaQueryOutputs
|
|
7
|
-
* @param {boolean} matches - does the document match the media query?
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Handle with care!
|
|
11
|
-
*
|
|
12
|
-
* If you need to change something in the browser based on @media query, you
|
|
13
|
-
* probably don’t need this hook. Use CSS media queries instead.
|
|
14
|
-
*
|
|
15
|
-
* Sometimes UI requirements are not achievable with CSS media queries alone. In
|
|
16
|
-
* these rare cases, use this hook to make media query matches available
|
|
17
|
-
* to React JavaScript code.
|
|
18
|
-
*
|
|
19
|
-
* @param {string} mediaQuery - the media query to parse
|
|
20
|
-
* @returns {MediaQueryOutputs}
|
|
21
|
-
*/
|
|
22
|
-
var useMediaQuery = function (mediaQuery) {
|
|
23
|
-
var mediaQueryList = typeof window !== "undefined" ? window.matchMedia(mediaQuery) : undefined;
|
|
24
|
-
var _a = React.useState(false), matches = _a[0], setMatches = _a[1];
|
|
25
|
-
React.useEffect(function () {
|
|
26
|
-
setMatches(typeof window !== "undefined"
|
|
27
|
-
? window.matchMedia(mediaQuery).matches
|
|
28
|
-
: false);
|
|
29
|
-
}, [mediaQuery]);
|
|
30
|
-
React.useEffect(function () {
|
|
31
|
-
var onMatchMedia = function (event) { return setMatches(event.matches); };
|
|
32
|
-
// Using deprecated addListener methods here for IE & Safari 13 support
|
|
33
|
-
if (mediaQueryList) {
|
|
34
|
-
mediaQueryList.addListener(onMatchMedia);
|
|
35
|
-
}
|
|
36
|
-
return function () { return mediaQueryList && mediaQueryList.removeListener(onMatchMedia); };
|
|
37
|
-
}, [mediaQueryList]);
|
|
38
|
-
return matches;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
exports.useMediaQuery = useMediaQuery;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from './index-5C0-U8cc.mjs';
|
|
2
|
-
|
|
3
|
-
var shorterCssColorNames;
|
|
4
|
-
var hasRequiredShorterCssColorNames;
|
|
5
|
-
|
|
6
|
-
function requireShorterCssColorNames () {
|
|
7
|
-
if (hasRequiredShorterCssColorNames) return shorterCssColorNames;
|
|
8
|
-
hasRequiredShorterCssColorNames = 1;
|
|
9
|
-
shorterCssColorNames = {
|
|
10
|
-
aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
11
|
-
azure: /#f0ffff(ff)?(?!\w)/gi,
|
|
12
|
-
beige: /#f5f5dc(ff)?(?!\w)/gi,
|
|
13
|
-
bisque: /#ffe4c4(ff)?(?!\w)/gi,
|
|
14
|
-
black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
|
|
15
|
-
blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
|
|
16
|
-
brown: /#a52a2a(ff)?(?!\w)/gi,
|
|
17
|
-
coral: /#ff7f50(ff)?(?!\w)/gi,
|
|
18
|
-
cornsilk: /#fff8dc(ff)?(?!\w)/gi,
|
|
19
|
-
crimson: /#dc143c(ff)?(?!\w)/gi,
|
|
20
|
-
cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
21
|
-
darkblue: /#00008b(ff)?(?!\w)/gi,
|
|
22
|
-
darkcyan: /#008b8b(ff)?(?!\w)/gi,
|
|
23
|
-
darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
|
|
24
|
-
darkred: /#8b0000(ff)?(?!\w)/gi,
|
|
25
|
-
deeppink: /#ff1493(ff)?(?!\w)/gi,
|
|
26
|
-
dimgrey: /#696969(ff)?(?!\w)/gi,
|
|
27
|
-
gold: /#ffd700(ff)?(?!\w)/gi,
|
|
28
|
-
green: /#008000(ff)?(?!\w)/gi,
|
|
29
|
-
grey: /#808080(ff)?(?!\w)/gi,
|
|
30
|
-
honeydew: /#f0fff0(ff)?(?!\w)/gi,
|
|
31
|
-
hotpink: /#ff69b4(ff)?(?!\w)/gi,
|
|
32
|
-
indigo: /#4b0082(ff)?(?!\w)/gi,
|
|
33
|
-
ivory: /#fffff0(ff)?(?!\w)/gi,
|
|
34
|
-
khaki: /#f0e68c(ff)?(?!\w)/gi,
|
|
35
|
-
lavender: /#e6e6fa(ff)?(?!\w)/gi,
|
|
36
|
-
lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
|
|
37
|
-
linen: /#faf0e6(ff)?(?!\w)/gi,
|
|
38
|
-
maroon: /#800000(ff)?(?!\w)/gi,
|
|
39
|
-
moccasin: /#ffe4b5(ff)?(?!\w)/gi,
|
|
40
|
-
navy: /#000080(ff)?(?!\w)/gi,
|
|
41
|
-
oldlace: /#fdf5e6(ff)?(?!\w)/gi,
|
|
42
|
-
olive: /#808000(ff)?(?!\w)/gi,
|
|
43
|
-
orange: /#ffa500(ff)?(?!\w)/gi,
|
|
44
|
-
orchid: /#da70d6(ff)?(?!\w)/gi,
|
|
45
|
-
peru: /#cd853f(ff)?(?!\w)/gi,
|
|
46
|
-
pink: /#ffc0cb(ff)?(?!\w)/gi,
|
|
47
|
-
plum: /#dda0dd(ff)?(?!\w)/gi,
|
|
48
|
-
purple: /#800080(ff)?(?!\w)/gi,
|
|
49
|
-
red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
|
|
50
|
-
salmon: /#fa8072(ff)?(?!\w)/gi,
|
|
51
|
-
seagreen: /#2e8b57(ff)?(?!\w)/gi,
|
|
52
|
-
seashell: /#fff5ee(ff)?(?!\w)/gi,
|
|
53
|
-
sienna: /#a0522d(ff)?(?!\w)/gi,
|
|
54
|
-
silver: /#c0c0c0(ff)?(?!\w)/gi,
|
|
55
|
-
skyblue: /#87ceeb(ff)?(?!\w)/gi,
|
|
56
|
-
snow: /#fffafa(ff)?(?!\w)/gi,
|
|
57
|
-
tan: /#d2b48c(ff)?(?!\w)/gi,
|
|
58
|
-
teal: /#008080(ff)?(?!\w)/gi,
|
|
59
|
-
thistle: /#d8bfd8(ff)?(?!\w)/gi,
|
|
60
|
-
tomato: /#ff6347(ff)?(?!\w)/gi,
|
|
61
|
-
violet: /#ee82ee(ff)?(?!\w)/gi,
|
|
62
|
-
wheat: /#f5deb3(ff)?(?!\w)/gi,
|
|
63
|
-
white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi,
|
|
64
|
-
};
|
|
65
|
-
return shorterCssColorNames;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
var miniSvgDataUri;
|
|
69
|
-
var hasRequiredMiniSvgDataUri;
|
|
70
|
-
|
|
71
|
-
function requireMiniSvgDataUri () {
|
|
72
|
-
if (hasRequiredMiniSvgDataUri) return miniSvgDataUri;
|
|
73
|
-
hasRequiredMiniSvgDataUri = 1;
|
|
74
|
-
var shorterNames = requireShorterCssColorNames();
|
|
75
|
-
var REGEX = {
|
|
76
|
-
whitespace: /\s+/g,
|
|
77
|
-
urlHexPairs: /%[\dA-F]{2}/g,
|
|
78
|
-
quotes: /"/g,
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
function collapseWhitespace(str) {
|
|
82
|
-
return str.trim().replace(REGEX.whitespace, ' ');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function dataURIPayload(string) {
|
|
86
|
-
return encodeURIComponent(string)
|
|
87
|
-
.replace(REGEX.urlHexPairs, specialHexEncode);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// `#` gets converted to `%23`, so quite a few CSS named colors are shorter than
|
|
91
|
-
// their equivalent URL-encoded hex codes.
|
|
92
|
-
function colorCodeToShorterNames(string) {
|
|
93
|
-
Object.keys(shorterNames).forEach(function(key) {
|
|
94
|
-
if (shorterNames[key].test(string)) {
|
|
95
|
-
string = string.replace(shorterNames[key], key);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
return string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function specialHexEncode(match) {
|
|
103
|
-
switch (match) { // Browsers tolerate these characters, and they're frequent
|
|
104
|
-
case '%20': return ' ';
|
|
105
|
-
case '%3D': return '=';
|
|
106
|
-
case '%3A': return ':';
|
|
107
|
-
case '%2F': return '/';
|
|
108
|
-
default: return match.toLowerCase(); // compresses better
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function svgToTinyDataUri(svgString) {
|
|
113
|
-
if (typeof svgString !== 'string') {
|
|
114
|
-
throw new TypeError('Expected a string, but received ' + typeof svgString);
|
|
115
|
-
}
|
|
116
|
-
// Strip the Byte-Order Mark if the SVG has one
|
|
117
|
-
if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1); }
|
|
118
|
-
|
|
119
|
-
var body = colorCodeToShorterNames(collapseWhitespace(svgString))
|
|
120
|
-
.replace(REGEX.quotes, "'");
|
|
121
|
-
return 'data:image/svg+xml,' + dataURIPayload(body);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
svgToTinyDataUri.toSrcset = function toSrcset(svgString) {
|
|
125
|
-
return svgToTinyDataUri(svgString).replace(/ /g, '%20');
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
miniSvgDataUri = svgToTinyDataUri;
|
|
129
|
-
return miniSvgDataUri;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
var miniSvgDataUriExports = requireMiniSvgDataUri();
|
|
133
|
-
var svgToMiniDataURI = /*@__PURE__*/getDefaultExportFromCjs(miniSvgDataUriExports);
|
|
134
|
-
|
|
135
|
-
export { svgToMiniDataURI as s };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @typedef MediaQueryOutputs
|
|
5
|
-
* @param {boolean} matches - does the document match the media query?
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Handle with care!
|
|
9
|
-
*
|
|
10
|
-
* If you need to change something in the browser based on @media query, you
|
|
11
|
-
* probably don’t need this hook. Use CSS media queries instead.
|
|
12
|
-
*
|
|
13
|
-
* Sometimes UI requirements are not achievable with CSS media queries alone. In
|
|
14
|
-
* these rare cases, use this hook to make media query matches available
|
|
15
|
-
* to React JavaScript code.
|
|
16
|
-
*
|
|
17
|
-
* @param {string} mediaQuery - the media query to parse
|
|
18
|
-
* @returns {MediaQueryOutputs}
|
|
19
|
-
*/
|
|
20
|
-
var useMediaQuery = function (mediaQuery) {
|
|
21
|
-
var mediaQueryList = typeof window !== "undefined" ? window.matchMedia(mediaQuery) : undefined;
|
|
22
|
-
var _a = useState(false), matches = _a[0], setMatches = _a[1];
|
|
23
|
-
useEffect(function () {
|
|
24
|
-
setMatches(typeof window !== "undefined"
|
|
25
|
-
? window.matchMedia(mediaQuery).matches
|
|
26
|
-
: false);
|
|
27
|
-
}, [mediaQuery]);
|
|
28
|
-
useEffect(function () {
|
|
29
|
-
var onMatchMedia = function (event) { return setMatches(event.matches); };
|
|
30
|
-
// Using deprecated addListener methods here for IE & Safari 13 support
|
|
31
|
-
if (mediaQueryList) {
|
|
32
|
-
mediaQueryList.addListener(onMatchMedia);
|
|
33
|
-
}
|
|
34
|
-
return function () { return mediaQueryList && mediaQueryList.removeListener(onMatchMedia); };
|
|
35
|
-
}, [mediaQueryList]);
|
|
36
|
-
return matches;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export { useMediaQuery as u };
|