@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
package/lib/Visible/Visible.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { V as Visible } from '../_shared/esm/Visible-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { V as Visible } from '../_shared/esm/Visible-B0d79VWZ.mjs';
|
|
2
|
+
import '../_shared/esm/tslib.es6-w7hdJ3oZ.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-5C0-U8cc.mjs';
|
|
5
|
+
import '../_shared/esm/filter-attrs-v_SweZXP.mjs';
|
package/lib/Visible/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.arc-v12-0-0-beta-
|
|
1
|
+
.arc-v12-0-0-beta-24 .arc .arc-Visible{display:none;min-height:inherit}.arc-v12-0-0-beta-24 .arc .arc-Visible--xs{display:block}@media (min-width:636px){.arc-v12-0-0-beta-24 .arc .arc-Visible--xs{display:none}.arc-v12-0-0-beta-24 .arc .arc-Visible--s{display:block}}@media (min-width:768px){.arc-v12-0-0-beta-24 .arc .arc-Visible--s{display:none}.arc-v12-0-0-beta-24 .arc .arc-Visible--m{display:block}}@media (min-width:1024px){.arc-v12-0-0-beta-24 .arc .arc-Visible--m{display:none}.arc-v12-0-0-beta-24 .arc .arc-Visible--l{display:block}}@media (min-width:1280px){.arc-v12-0-0-beta-24 .arc .arc-Visible--l{display:none}.arc-v12-0-0-beta-24 .arc .arc-Visible--xl{display:block}}@media (min-width:1440px){.arc-v12-0-0-beta-24 .arc .arc-Visible--xl{display:none}.arc-v12-0-0-beta-24 .arc .arc-Visible--xxl{display:block}}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-
|
|
4
|
-
require('../_shared/cjs/
|
|
3
|
+
var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-CQg3cOVK.cjs');
|
|
4
|
+
require('../_shared/cjs/tslib.es6-CCZ3TN_7.cjs');
|
|
5
5
|
require('react');
|
|
6
|
+
require('../_shared/cjs/filter-attrs-D19P2s1V.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { V as VisuallyHidden } from '../_shared/esm/VisuallyHidden-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { V as VisuallyHidden } from '../_shared/esm/VisuallyHidden-aSQ4RA1o.mjs';
|
|
2
|
+
import '../_shared/esm/tslib.es6-w7hdJ3oZ.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
+
import '../_shared/esm/filter-attrs-v_SweZXP.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.arc-v12-0-0-beta-
|
|
1
|
+
.arc-v12-0-0-beta-24 .arc .arc-VisuallyHidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;word-wrap:"normal"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
6
7
|
var ConditionalWrapper = require('./ConditionalWrapper-C09Kw6EG.cjs');
|
|
7
|
-
var VisuallyHidden = require('./VisuallyHidden-
|
|
8
|
-
var ThemeIcon = require('./ThemeIcon-
|
|
9
|
-
var Image = require('./Image-
|
|
10
|
-
var Heading = require('./Heading-
|
|
8
|
+
var VisuallyHidden = require('./VisuallyHidden-CQg3cOVK.cjs');
|
|
9
|
+
var ThemeIcon = require('./ThemeIcon-Def4RZfK.cjs');
|
|
10
|
+
var Image = require('./Image-CSe0KpDN.cjs');
|
|
11
|
+
var Heading = require('./Heading-CoiZ2EmD.cjs');
|
|
11
12
|
|
|
12
13
|
var AvatarContent = function (_a) {
|
|
13
14
|
var img = _a.img, initials = _a.initials, _b = _a.size, size = _b === void 0 ? "xl" : _b;
|
|
@@ -24,7 +25,7 @@ var AvatarContent = function (_a) {
|
|
|
24
25
|
xl: 40,
|
|
25
26
|
};
|
|
26
27
|
if (img) {
|
|
27
|
-
return React.createElement(Image.Image,
|
|
28
|
+
return React.createElement(Image.Image, tslib_es6.__assign({ fit: "cover" }, img));
|
|
28
29
|
}
|
|
29
30
|
if (initials) {
|
|
30
31
|
return (React.createElement(Heading.Heading, { size: textSize[size] }, initials.substring(0, 3).toUpperCase()));
|
|
@@ -34,12 +35,12 @@ var AvatarContent = function (_a) {
|
|
|
34
35
|
|
|
35
36
|
/** Use `Avatar` to visually represent a user. */
|
|
36
37
|
var Avatar = function (_a) {
|
|
37
|
-
var img = _a.img, initials = _a.initials, href = _a.href, title = _a.title, ariaLabel = _a.ariaLabel, onClick = _a.onClick, _b = _a.size, size = _b === void 0 ? "xl" : _b, props =
|
|
38
|
-
var wrapperAttrs =
|
|
38
|
+
var img = _a.img, initials = _a.initials, href = _a.href, title = _a.title, ariaLabel = _a.ariaLabel, onClick = _a.onClick, _b = _a.size, size = _b === void 0 ? "xl" : _b, props = tslib_es6.__rest(_a, ["img", "initials", "href", "title", "ariaLabel", "onClick", "size"]);
|
|
39
|
+
var wrapperAttrs = tslib_es6.__assign({ className: index.classNames("arc-Avatar", "arc-Avatar--".concat(size), {
|
|
39
40
|
"arc-Avatar--img": Boolean(img),
|
|
40
41
|
}) }, filterAttrs.filterAttrs(props));
|
|
41
|
-
return (React.createElement(ConditionalWrapper.ConditionalWrapper, { condition: Boolean(href), wrapper: function (children) { return (React.createElement("a",
|
|
42
|
-
React.createElement("div",
|
|
42
|
+
return (React.createElement(ConditionalWrapper.ConditionalWrapper, { condition: Boolean(href), wrapper: function (children) { return (React.createElement("a", tslib_es6.__assign({ href: href, "aria-label": ariaLabel, onClick: onClick, title: title }, wrapperAttrs), children)); }, fallback: function (children) { return (React.createElement(React.Fragment, null,
|
|
43
|
+
React.createElement("div", tslib_es6.__assign({}, wrapperAttrs), children),
|
|
43
44
|
ariaLabel && React.createElement(VisuallyHidden.VisuallyHidden, null, ariaLabel))); } },
|
|
44
45
|
React.createElement(AvatarContent, { size: size, img: img, initials: initials })));
|
|
45
46
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
+
var suffixModifier = require('./suffix-modifier-DLUGR-yG.cjs');
|
|
7
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
8
|
+
|
|
9
|
+
/** Use `Badge` as a static, non-interactive way to provide short updates. */
|
|
10
|
+
var Badge = function (_a) {
|
|
11
|
+
var children = _a.children, _b = _a.state, state = _b === void 0 ? "default" : _b, ariaLabel = _a.ariaLabel, ariaRole = _a.ariaRole, props = tslib_es6.__rest(_a, ["children", "state", "ariaLabel", "ariaRole"]);
|
|
12
|
+
return (React.createElement("div", tslib_es6.__assign({ className: index.classNames("arc-Badge", suffixModifier.suffixModifier("arc-Badge--state", state)) }, (ariaLabel && { "aria-label": ariaLabel }), (ariaRole && { role: ariaRole }), filterAttrs.filterAttrs(props)), children));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.Badge = Badge;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var Image = require('./Image-CSe0KpDN.cjs');
|
|
6
|
+
|
|
7
|
+
var BannerImage = function (_a) {
|
|
8
|
+
var sources = _a.sources, ariaHidden = _a.ariaHidden, props = tslib_es6.__rest(_a, ["sources", "ariaHidden"]);
|
|
9
|
+
return (React.createElement(Image.Image, tslib_es6.__assign({ "aria-hidden": ariaHidden, fadeOnLoad: true }, props), sources &&
|
|
10
|
+
sources.map(function (source) { return React.createElement("source", tslib_es6.__assign({ key: source.srcSet }, source)); })));
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
exports.BannerImage = BannerImage;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
-
var
|
|
6
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
7
|
+
var Surface = require('./Surface-DIU5ciDT.cjs');
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
10
11
|
*/
|
|
11
12
|
var Box = function (_a) {
|
|
12
13
|
var _b;
|
|
13
|
-
var children = _a.children, borderWidth = _a.borderWidth, elevationLevel = _a.elevationLevel, padding = _a.padding, _c = _a.isFullHeight, isFullHeight = _c === void 0 ? false : _c, _d = _a.isBorderRadius, isBorderRadius = _d === void 0 ? false : _d, _e = _a.surface, surface = _e === void 0 ? "light-white" : _e, isSurfaceTransparent = _a.isSurfaceTransparent, props =
|
|
14
|
-
return (React.createElement("div",
|
|
14
|
+
var children = _a.children, borderWidth = _a.borderWidth, elevationLevel = _a.elevationLevel, padding = _a.padding, _c = _a.isFullHeight, isFullHeight = _c === void 0 ? false : _c, _d = _a.isBorderRadius, isBorderRadius = _d === void 0 ? false : _d, _e = _a.surface, surface = _e === void 0 ? "light-white" : _e, isSurfaceTransparent = _a.isSurfaceTransparent, props = tslib_es6.__rest(_a, ["children", "borderWidth", "elevationLevel", "padding", "isFullHeight", "isBorderRadius", "surface", "isSurfaceTransparent"]);
|
|
15
|
+
return (React.createElement("div", tslib_es6.__assign({ className: index.classNames("arc-Box", (_b = {},
|
|
15
16
|
_b["arc-Box--fullHeight"] = isFullHeight,
|
|
16
17
|
_b["arc-Box--borderRadius"] = isBorderRadius,
|
|
17
18
|
_b["arc-Box--borderThin"] = borderWidth === "thin",
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-CTlXMLug.cjs');
|
|
6
6
|
var suffixModifier = require('./suffix-modifier-DLUGR-yG.cjs');
|
|
7
|
-
var
|
|
7
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
8
|
+
var Surface = require('./Surface-DIU5ciDT.cjs');
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Use `BrandLogo` to display the brand logo.
|
|
11
12
|
*/
|
|
12
13
|
var BrandLogo = function (_a) {
|
|
13
14
|
var _b;
|
|
14
|
-
var _c = _a.color, color = _c === void 0 ? "auto" : _c, label = _a.label, _d = _a.size, size = _d === void 0 ? 34 : _d, subBrand = _a.subBrand, props =
|
|
15
|
+
var _c = _a.color, color = _c === void 0 ? "auto" : _c, label = _a.label, _d = _a.size, size = _d === void 0 ? 34 : _d, subBrand = _a.subBrand, props = tslib_es6.__rest(_a, ["color", "label", "size", "subBrand"]);
|
|
15
16
|
var surface = React.useContext(Surface.Context).surface;
|
|
16
|
-
return (React.createElement("div",
|
|
17
|
+
return (React.createElement("div", tslib_es6.__assign({ className: index.classNames((_b = {
|
|
17
18
|
"arc-BrandLogo": true,
|
|
18
19
|
"arc-BrandLogo--colorBrand": color === "brand",
|
|
19
20
|
"arc-BrandLogo--onDarkSurface": surface === "dark"
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-CTlXMLug.cjs');
|
|
6
6
|
var suffixModifier = require('./suffix-modifier-DLUGR-yG.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
7
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
8
|
+
var Icon = require('./Icon-Dk2XHa7V.cjs');
|
|
9
|
+
var Surface = require('./Surface-DIU5ciDT.cjs');
|
|
10
|
+
var ThemeIcon = require('./ThemeIcon-Def4RZfK.cjs');
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
|
|
13
14
|
*/
|
|
14
15
|
var Button = React.forwardRef(function (_a, ref) {
|
|
15
16
|
var _b;
|
|
16
|
-
var ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, _h = _a.size, size = _h === void 0 ? "m" : _h, supportingText = _a.supportingText, target = _a.target, type = _a.type, form = _a.form, props =
|
|
17
|
+
var ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, _h = _a.size, size = _h === void 0 ? "m" : _h, supportingText = _a.supportingText, target = _a.target, type = _a.type, form = _a.form, props = tslib_es6.__rest(_a, ["ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "size", "supportingText", "target", "type", "form"]);
|
|
17
18
|
var surface = React.useContext(Surface.Context).surface;
|
|
18
19
|
var buttonClasses = index.classNames((_b = {
|
|
19
20
|
"arc-Button": true,
|
|
@@ -26,18 +27,18 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
26
27
|
_b["arc-Button--onDarkSurface"] = surface === "dark",
|
|
27
28
|
_b["arc-Button--size".concat(size && size.toUpperCase())] = size && size !== "m",
|
|
28
29
|
_b));
|
|
29
|
-
var commonProps =
|
|
30
|
+
var commonProps = tslib_es6.__assign({ id: id, onClick: onClick, ref: ref }, filterAttrs.filterAttrs(props));
|
|
30
31
|
var buttonText = supportingText ? (React.createElement("span", null,
|
|
31
32
|
React.createElement("span", { className: "arc-Button-text" }, label),
|
|
32
33
|
React.createElement("span", { className: "arc-Button-supportingText" }, supportingText))) : (React.createElement("span", { className: "arc-Button-text" }, label));
|
|
33
34
|
var buttonIcon = icon || fill === "flat" ? (React.createElement(ButtonIcon, { icon: icon, isChevron: !icon && fill === "flat", isBeforeText: iconPosition === "beforeText" })) : null;
|
|
34
35
|
if (href && !isDisabled) {
|
|
35
|
-
return (React.createElement("a",
|
|
36
|
+
return (React.createElement("a", tslib_es6.__assign({}, commonProps, { "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, className: buttonClasses, href: href, rel: rel, target: target }),
|
|
36
37
|
React.createElement("span", { className: "arc-Button-inner" },
|
|
37
38
|
buttonText,
|
|
38
39
|
buttonIcon)));
|
|
39
40
|
}
|
|
40
|
-
return (React.createElement("button",
|
|
41
|
+
return (React.createElement("button", tslib_es6.__assign({}, commonProps, { "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, className: buttonClasses, disabled: isDisabled, type: type, form: form }),
|
|
41
42
|
React.createElement("span", { className: "arc-Button-inner" },
|
|
42
43
|
buttonText,
|
|
43
44
|
buttonIcon)));
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
7
|
+
var Icon = require('./Icon-Dk2XHa7V.cjs');
|
|
8
|
+
var Surface = require('./Surface-DIU5ciDT.cjs');
|
|
9
|
+
var Spinner = require('./Spinner-427lpnHI.cjs');
|
|
10
|
+
|
|
11
|
+
var ButtonV2 = React.forwardRef(function (_a, ref) {
|
|
12
|
+
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, iconActive = _a.iconActive, _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 = tslib_es6.__rest(_a, ["label", "buttonStyle", "icon", "iconActive", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form"]);
|
|
13
|
+
var surface = React.useContext(Surface.Context).surface;
|
|
14
|
+
var ButtonElement = isSpan ? "span" : "button";
|
|
15
|
+
var iconSizes = {
|
|
16
|
+
s: 16,
|
|
17
|
+
m: 32,
|
|
18
|
+
l: 40,
|
|
19
|
+
};
|
|
20
|
+
var ButtonV2Classes = index.classNames("arc-ButtonV2", ["arc-ButtonV2--".concat(buttonStyle)], ["arc-ButtonV2--".concat(size)], {
|
|
21
|
+
"arc-ButtonV2--onDarkSurface": surface === "dark",
|
|
22
|
+
"arc-ButtonV2--emptyLabel": !label,
|
|
23
|
+
"arc-ButtonV2--isLoading": isLoading,
|
|
24
|
+
"arc-ButtonV2--isFullWidth": isFullWidth,
|
|
25
|
+
"arc-ButtonV2--withIcon": icon || isLoading,
|
|
26
|
+
"arc-ButtonV2--withIconBeforeText": iconPosition === "beforeText" && (icon || isLoading),
|
|
27
|
+
});
|
|
28
|
+
var commonProps = tslib_es6.__assign({ id: id, onClick: onClick, ref: ref }, filterAttrs.filterAttrs(props));
|
|
29
|
+
var getIconColor = function (buttonStyle) {
|
|
30
|
+
switch (buttonStyle) {
|
|
31
|
+
case "compact":
|
|
32
|
+
case "secondary":
|
|
33
|
+
case "tertiary":
|
|
34
|
+
return "brand-alt";
|
|
35
|
+
default:
|
|
36
|
+
return "auto";
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var renderButtonContent = function () { return (React.createElement("span", { className: index.classNames("arc-ButtonV2-inner", {
|
|
40
|
+
"arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
|
|
41
|
+
}) },
|
|
42
|
+
label && React.createElement("span", { className: "arc-ButtonV2-label" }, label),
|
|
43
|
+
isLoading && (React.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
44
|
+
React.createElement(Spinner.Spinner, { size: size }))),
|
|
45
|
+
icon && !isLoading && (React.createElement(React.Fragment, null,
|
|
46
|
+
React.createElement("span", { className: index.classNames("arc-ButtonV2-icon", {
|
|
47
|
+
"arc-ButtonV2-icon--hasActive": iconActive,
|
|
48
|
+
}) },
|
|
49
|
+
React.createElement(Icon.Icon, { color: getIconColor(buttonStyle), size: iconSizes[size], icon: icon })),
|
|
50
|
+
iconActive && (React.createElement("span", { className: "arc-ButtonV2-icon--active" },
|
|
51
|
+
React.createElement(Icon.Icon, { color: getIconColor(buttonStyle), size: iconSizes[size], icon: iconActive }))))))); };
|
|
52
|
+
if (href && !isLoading) {
|
|
53
|
+
return (React.createElement("a", tslib_es6.__assign({}, commonProps, { className: ButtonV2Classes, href: href, rel: rel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, target: target }), renderButtonContent()));
|
|
54
|
+
}
|
|
55
|
+
return (React.createElement(ButtonElement, tslib_es6.__assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }), renderButtonContent()));
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
exports.ButtonV2 = ButtonV2;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-BLRjGROQ.cjs');
|
|
6
|
-
var index_es = require('./index.es-
|
|
7
|
-
var
|
|
6
|
+
var index_es = require('./index.es-VcVPUNjD.cjs');
|
|
7
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
8
|
+
var useMediaQuery = require('./use-media-query-DqZqShGX.cjs');
|
|
8
9
|
var index$1 = require('./index-CTlXMLug.cjs');
|
|
9
|
-
var Text = require('./Text-
|
|
10
|
-
var VisuallyHidden = require('./VisuallyHidden-
|
|
10
|
+
var Text = require('./Text-jwsn80lQ.cjs');
|
|
11
|
+
var VisuallyHidden = require('./VisuallyHidden-CQg3cOVK.cjs');
|
|
11
12
|
require('./index-DR8Rkav9.cjs');
|
|
12
|
-
var Surface = require('./Surface-
|
|
13
|
-
var Heading = require('./Heading-
|
|
14
|
-
var
|
|
15
|
-
var Icon = require('./Icon-
|
|
13
|
+
var Surface = require('./Surface-DIU5ciDT.cjs');
|
|
14
|
+
var Heading = require('./Heading-CoiZ2EmD.cjs');
|
|
15
|
+
var ThemeIcon = require('./ThemeIcon-Def4RZfK.cjs');
|
|
16
|
+
var Icon = require('./Icon-Dk2XHa7V.cjs');
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* @name addMonths
|
|
@@ -558,7 +559,7 @@ function eachDayOfInterval(dirtyInterval, options) {
|
|
|
558
559
|
var processSelectedRange = function (_a) {
|
|
559
560
|
var range = _a.range, value = _a.value, disabledDates = _a.disabledDates;
|
|
560
561
|
var exisitingRange = range.filter(function (date) { return Boolean(date); });
|
|
561
|
-
var newRange =
|
|
562
|
+
var newRange = tslib_es6.__spreadArray(tslib_es6.__spreadArray([], (exisitingRange.length === 2 ? [] : exisitingRange), true), [
|
|
562
563
|
value,
|
|
563
564
|
], false).sort(compareAsc);
|
|
564
565
|
var isSelectionComplete = newRange.length === 2;
|
|
@@ -1120,7 +1121,7 @@ var CalendarDayNumber = React.forwardRef(function (_a, autoFocusRef) {
|
|
|
1120
1121
|
onClick: onDayNumberClick(date),
|
|
1121
1122
|
onMouseEnter: onDayNumberHover(date),
|
|
1122
1123
|
};
|
|
1123
|
-
return (React.createElement("td",
|
|
1124
|
+
return (React.createElement("td", tslib_es6.__assign({ ref: handleRefs, "data-date": date.getTime() }, (shouldRender ? tableCellProps : {}), { role: "gridcell" }), shouldRender && (React.createElement(React.Fragment, null,
|
|
1124
1125
|
React.createElement(VisuallyHidden.VisuallyHidden, null, index.format(date, "MMMM do, yyyy")),
|
|
1125
1126
|
React.createElement("div", { className: "arc-CalendarDayNumber-buttonOuter" },
|
|
1126
1127
|
React.createElement("div", { className: "arc-CalendarDayNumber-buttonInner" },
|
|
@@ -1328,25 +1329,18 @@ var CalendarDayGrid = function (_a) {
|
|
|
1328
1329
|
React.createElement("tbody", { onKeyDown: handleKeyDown }, getWeeksInMonth(month).map(function (week, i) { return (React.createElement("tr", { key: "".concat(month.getTime(), "-week-").concat(i) }, week.map(function (day) { return (React.createElement(CalendarDayNumber, { ref: autoFocusRef, shouldRender: isSameMonth(month, day), key: day.getTime(), date: day, isFocusWithinDayGrid: isFocusWithinDayGrid })); }))); }))))); })));
|
|
1329
1330
|
};
|
|
1330
1331
|
|
|
1331
|
-
/**
|
|
1332
|
-
* Do not edit directly
|
|
1333
|
-
* Generated file
|
|
1334
|
-
*/
|
|
1335
|
-
|
|
1336
|
-
const BtIconChevronLeftMid =
|
|
1337
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='m7.621 8 2.849 2.852a.673.673 0 0 1-.732 1.097.7.7 0 0 1-.218-.145L6.196 8.476a.673.673 0 0 1 0-.951L9.52 4.197a.67.67 0 0 1 1.146.476c0 .178-.07.349-.196.475z' clip-rule='evenodd'/%3e%3c/svg%3e";
|
|
1338
|
-
|
|
1339
1332
|
var CalendarNavButton = function (_a) {
|
|
1340
1333
|
var isDisabled = _a.isDisabled, onClick = _a.onClick, direction = _a.direction, ariaLabel = _a.ariaLabel;
|
|
1341
1334
|
var icons = {
|
|
1342
|
-
previous:
|
|
1343
|
-
next:
|
|
1335
|
+
previous: "calendarLeft",
|
|
1336
|
+
next: "calendarRight",
|
|
1344
1337
|
};
|
|
1345
1338
|
return (React.createElement("button", { "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick, type: "button", className: index$1.classNames("arc-CalendarNavButton", {
|
|
1346
1339
|
"arc-CalendarNavButton--previous": direction === "previous",
|
|
1347
1340
|
"arc-CalendarNavButton--next": direction === "next",
|
|
1348
1341
|
}) },
|
|
1349
|
-
React.createElement(
|
|
1342
|
+
React.createElement("div", { className: "arc-CalendarNavButton-icon" },
|
|
1343
|
+
React.createElement(ThemeIcon.ThemeIcon, { icon: icons[direction] }))));
|
|
1350
1344
|
};
|
|
1351
1345
|
|
|
1352
1346
|
var CalendarDoubleMonthView = function (_a) {
|
|
@@ -1455,39 +1449,39 @@ var CalendarMonthYearView = function (_a) {
|
|
|
1455
1449
|
};
|
|
1456
1450
|
|
|
1457
1451
|
var showPreviousMonthHandler = function (payload, state) {
|
|
1458
|
-
return
|
|
1452
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: getFocusDate({
|
|
1459
1453
|
date: subMonths(state.focusDate, 1),
|
|
1460
1454
|
minDate: payload.minDate,
|
|
1461
1455
|
}), displayDate: subMonths(state.displayDate, 1) });
|
|
1462
1456
|
};
|
|
1463
1457
|
|
|
1464
1458
|
var showNextMonthHandler = function (payload, state) {
|
|
1465
|
-
return
|
|
1459
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: getFocusDate({
|
|
1466
1460
|
date: addMonths(state.focusDate, 1),
|
|
1467
1461
|
maxDate: payload.maxDate,
|
|
1468
1462
|
}), displayDate: addMonths(state.displayDate, 1) });
|
|
1469
1463
|
};
|
|
1470
1464
|
|
|
1471
1465
|
var showPreviousDoubleMonthHandler = function (payload, state) {
|
|
1472
|
-
return
|
|
1466
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: getFocusDate({
|
|
1473
1467
|
date: subMonths(state.focusDate, 2),
|
|
1474
1468
|
minDate: payload.minDate,
|
|
1475
1469
|
}), displayDate: subMonths(state.displayDate, 2) });
|
|
1476
1470
|
};
|
|
1477
1471
|
|
|
1478
1472
|
var showNextDoubleMonthHandler = function (payload, state) {
|
|
1479
|
-
return
|
|
1473
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: getFocusDate({
|
|
1480
1474
|
date: addMonths(state.focusDate, 2),
|
|
1481
1475
|
maxDate: payload.maxDate,
|
|
1482
1476
|
}), displayDate: addMonths(state.displayDate, 2) });
|
|
1483
1477
|
};
|
|
1484
1478
|
|
|
1485
1479
|
var rangeSelectHandler = function (payload, state) {
|
|
1486
|
-
return
|
|
1480
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: payload.date, highlightedRange: payload.range });
|
|
1487
1481
|
};
|
|
1488
1482
|
|
|
1489
1483
|
var highlightRangeHandler = function (payload, state) {
|
|
1490
|
-
return
|
|
1484
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { highlightedRange: getHighlightRange({
|
|
1491
1485
|
date: payload.date,
|
|
1492
1486
|
range: payload.range,
|
|
1493
1487
|
minDate: payload.minDate,
|
|
@@ -1496,15 +1490,15 @@ var highlightRangeHandler = function (payload, state) {
|
|
|
1496
1490
|
};
|
|
1497
1491
|
|
|
1498
1492
|
var dayNumberSelectHandler = function (payload, state) {
|
|
1499
|
-
return
|
|
1493
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: payload });
|
|
1500
1494
|
};
|
|
1501
1495
|
|
|
1502
1496
|
var dayGridLeaveHandler = function (payload, state) {
|
|
1503
1497
|
if (payload.selectionType === "range" &&
|
|
1504
1498
|
payload.range.filter(function (date) { return Boolean(date); }).length === 1) {
|
|
1505
|
-
return
|
|
1499
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { highlightedRange: [] });
|
|
1506
1500
|
}
|
|
1507
|
-
return
|
|
1501
|
+
return tslib_es6.__assign({}, state);
|
|
1508
1502
|
};
|
|
1509
1503
|
|
|
1510
1504
|
var dropDownChangeYearHandler = function (payload, state) {
|
|
@@ -1517,16 +1511,16 @@ var dropDownChangeYearHandler = function (payload, state) {
|
|
|
1517
1511
|
maxDate: payload.maxDate,
|
|
1518
1512
|
});
|
|
1519
1513
|
if (minDate && isBefore(newDisplayDate, minDate)) {
|
|
1520
|
-
return
|
|
1514
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: focusDate, displayDate: minDate });
|
|
1521
1515
|
}
|
|
1522
1516
|
if (maxDate && isAfter(newDisplayDate, maxDate)) {
|
|
1523
|
-
return
|
|
1517
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: focusDate, displayDate: maxDate });
|
|
1524
1518
|
}
|
|
1525
|
-
return
|
|
1519
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: focusDate, displayDate: newDisplayDate });
|
|
1526
1520
|
};
|
|
1527
1521
|
|
|
1528
1522
|
var dropDownChangeMonthHandler = function (payload, state) {
|
|
1529
|
-
return
|
|
1523
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: getFocusDate({
|
|
1530
1524
|
date: setMonth(state.focusDate, payload.month),
|
|
1531
1525
|
minDate: payload.minDate,
|
|
1532
1526
|
maxDate: payload.maxDate,
|
|
@@ -1652,21 +1646,21 @@ var calendarKeydownHandler = function (payload, state) {
|
|
|
1652
1646
|
var isNewFocusDateVisible = isWithinInterval(newFocusDate, calendarType === "double"
|
|
1653
1647
|
? doubleMonthVisibleRange
|
|
1654
1648
|
: singleMonthVisibleRange);
|
|
1655
|
-
var commonState =
|
|
1649
|
+
var commonState = tslib_es6.__assign(tslib_es6.__assign({}, state), { focusDate: newFocusDate, highlightedRange: newHighlightedRange });
|
|
1656
1650
|
if (!isNewFocusDateVisible &&
|
|
1657
1651
|
!focusDateIsMinOrMax &&
|
|
1658
1652
|
isNavigatingByYear &&
|
|
1659
1653
|
calendarType === "double") {
|
|
1660
|
-
return
|
|
1654
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, commonState), { displayDate: setYear(displayDate, getYear(newFocusDate)) });
|
|
1661
1655
|
}
|
|
1662
1656
|
if (!isNewFocusDateVisible) {
|
|
1663
|
-
return
|
|
1657
|
+
return tslib_es6.__assign(tslib_es6.__assign({}, commonState), { displayDate: startOfMonth(newFocusDate) });
|
|
1664
1658
|
}
|
|
1665
1659
|
return commonState;
|
|
1666
1660
|
};
|
|
1667
1661
|
|
|
1668
1662
|
var defaultHandler = function (state) {
|
|
1669
|
-
return
|
|
1663
|
+
return tslib_es6.__assign({}, state);
|
|
1670
1664
|
};
|
|
1671
1665
|
|
|
1672
1666
|
var reducer = function (state, action) {
|
|
@@ -1713,7 +1707,7 @@ var CalendarWrapper = function (_a) {
|
|
|
1713
1707
|
|
|
1714
1708
|
/** Use `Calendar` to clearly present available dates and allowing users to choose a way to enter information. */
|
|
1715
1709
|
var Calendar = function (_a) {
|
|
1716
|
-
var _b = _a.type, type = _b === void 0 ? "month" : _b, _c = _a.selectionType, selectionType = _c === void 0 ? "single" : _c, _d = _a.autoFocusOnMount, autoFocusOnMount = _d === void 0 ? false : _d, _e = _a.selectedRange, rawSelectedRange = _e === void 0 ? [] : _e, _f = _a.selectedDate, rawSelectedDate = _f === void 0 ? new Date() : _f, rawDisabledDates = _a.disabledDates, rawMinDate = _a.minDate, rawMaxDate = _a.maxDate, onCancelClick = _a.onCancelClick, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, props =
|
|
1710
|
+
var _b = _a.type, type = _b === void 0 ? "month" : _b, _c = _a.selectionType, selectionType = _c === void 0 ? "single" : _c, _d = _a.autoFocusOnMount, autoFocusOnMount = _d === void 0 ? false : _d, _e = _a.selectedRange, rawSelectedRange = _e === void 0 ? [] : _e, _f = _a.selectedDate, rawSelectedDate = _f === void 0 ? new Date() : _f, rawDisabledDates = _a.disabledDates, rawMinDate = _a.minDate, rawMaxDate = _a.maxDate, onCancelClick = _a.onCancelClick, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, props = tslib_es6.__rest(_a, ["type", "selectionType", "autoFocusOnMount", "selectedRange", "selectedDate", "disabledDates", "minDate", "maxDate", "onCancelClick", "onDateSelect", "onRangeSelect"]);
|
|
1717
1711
|
var todayDate = dateWithoutTime(new Date());
|
|
1718
1712
|
var selectedDate = dateWithoutTime(rawSelectedDate);
|
|
1719
1713
|
var selectedRange = rawSelectedRange
|
|
@@ -1871,7 +1865,7 @@ var Calendar = function (_a) {
|
|
|
1871
1865
|
},
|
|
1872
1866
|
});
|
|
1873
1867
|
};
|
|
1874
|
-
return (React.createElement(ArcCalendarContext.Provider,
|
|
1868
|
+
return (React.createElement(ArcCalendarContext.Provider, tslib_es6.__assign({ value: {
|
|
1875
1869
|
minDate: minDate,
|
|
1876
1870
|
maxDate: maxDate,
|
|
1877
1871
|
focusDate: focusDate,
|
|
@@ -2,25 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var index = require('./index-CTlXMLug.cjs');
|
|
5
|
-
var
|
|
5
|
+
var ThemeIcon = require('./ThemeIcon-Def4RZfK.cjs');
|
|
6
6
|
var index$1 = require('./index-BLRjGROQ.cjs');
|
|
7
7
|
|
|
8
|
-
var ArrowRight = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M18.146 11.646a.5.5 0 0 0 0 .707l3.147 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16l-4.354-4.354a.5.5 0 0 0-.707 0'/%3e%3c/svg%3e";
|
|
9
|
-
var ArrowRightFill = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2 14 14 0 0 0 2 16m16.854-4.354L23.207 16l-4.354 4.354a.5.5 0 0 1-.707-.707l3.147-3.147H9.5a.5.5 0 0 1 0-1h11.793l-3.146-3.146a.5.5 0 0 1 .707-.707'/%3e%3c/svg%3e";
|
|
10
|
-
var Play = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='m20.839 15.04-7.178-4.144a1.107 1.107 0 0 0-1.661.958v8.288a1.105 1.105 0 0 0 1.661.96l7.178-4.145a1.107 1.107 0 0 0 0-1.917m-.5 1.051-7.178 4.145a.1.1 0 0 1-.107 0 .1.1 0 0 1-.054-.094v-8.288a.1.1 0 0 1 .054-.092.1.1 0 0 1 .107 0l7.178 4.143a.1.1 0 0 1 .054.094.1.1 0 0 1-.054.092'/%3e%3c/svg%3e";
|
|
11
|
-
var PlayFill = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m4.839 14.957-7.178 4.145a1.108 1.108 0 0 1-1.661-.96v-8.288a1.107 1.107 0 0 1 1.661-.958l7.178 4.144a1.107 1.107 0 0 1 0 1.917'/%3e%3c/svg%3e";
|
|
12
|
-
|
|
13
8
|
var CardFooter = function (_a) {
|
|
14
9
|
var metaText = _a.metaText, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.buttonSize, buttonSize = _c === void 0 ? "m" : _c, _d = _a.isDarkPathway, isDarkPathway = _d === void 0 ? false : _d, _e = _a.showButton, showButton = _e === void 0 ? true : _e, _f = _a.isHovered, isHovered = _f === void 0 ? false : _f;
|
|
15
10
|
var icons = {
|
|
16
|
-
arrow:
|
|
17
|
-
|
|
18
|
-
filled: ArrowRightFill,
|
|
19
|
-
},
|
|
20
|
-
play: {
|
|
21
|
-
regular: Play,
|
|
22
|
-
filled: PlayFill,
|
|
23
|
-
},
|
|
11
|
+
arrow: "cardRight",
|
|
12
|
+
play: "cardPlay",
|
|
24
13
|
};
|
|
25
14
|
return (React.createElement("div", { className: index.classNames("arc-CardFooter", {
|
|
26
15
|
"arc-CardFooter--darkPathway": isDarkPathway,
|
|
@@ -34,9 +23,9 @@ var CardFooter = function (_a) {
|
|
|
34
23
|
React.createElement("div", { className: index.classNames("arc-CardFooter-buttonIconRight", {
|
|
35
24
|
"arc-CardFooter-buttonIconRight--isHovered": isHovered,
|
|
36
25
|
}) },
|
|
37
|
-
React.createElement(
|
|
26
|
+
React.createElement(ThemeIcon.ThemeIcon, { icon: icons[buttonIcon] })),
|
|
38
27
|
React.createElement("div", { className: "arc-CardFooter-buttonIconLeft" },
|
|
39
|
-
React.createElement(
|
|
28
|
+
React.createElement(ThemeIcon.ThemeIcon, { icon: icons[buttonIcon] }))))))));
|
|
40
29
|
};
|
|
41
30
|
|
|
42
31
|
exports.CardFooter = CardFooter;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var filterAttrs = require('./filter-attrs-D19P2s1V.cjs');
|
|
6
|
+
var Heading = require('./Heading-CoiZ2EmD.cjs');
|
|
6
7
|
|
|
7
8
|
var CardHeading = function (_a) {
|
|
8
9
|
var onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onBlur = _a.onBlur, onFocus = _a.onFocus, href = _a.href, heading = _a.heading, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d;
|
|
9
|
-
return (React.createElement(Heading.Heading, { level: headingLevel, size: size }, href ? (React.createElement("a",
|
|
10
|
+
return (React.createElement(Heading.Heading, { level: headingLevel, size: size, isWordWrap: false }, href ? (React.createElement("a", tslib_es6.__assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterAttrs.filterAttrs(linkData)), heading)) : (heading)));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
exports.CardHeading = CardHeading;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
+
var ThemeIcon = require('./ThemeIcon-Def4RZfK.cjs');
|
|
7
|
+
var Surface = require('./Surface-DIU5ciDT.cjs');
|
|
8
|
+
var FormControl = require('./FormControl-DiERJpGW.cjs');
|
|
9
|
+
|
|
10
|
+
var CheckboxIcon = function (_a) {
|
|
11
|
+
var id = _a.id, name = _a.name, checked = _a.checked, _b = _a.indeterminate, indeterminate = _b === void 0 ? false : _b, isDisabled = _a.isDisabled, isRequired = _a.isRequired, _c = _a.size, size = _c === void 0 ? "m" : _c, value = _a.value, error = _a.error, ariaDescribedBy = _a.ariaDescribedBy, onBlur = _a.onBlur, onChange = _a.onChange, props = tslib_es6.__rest(_a, ["id", "name", "checked", "indeterminate", "isDisabled", "isRequired", "size", "value", "error", "ariaDescribedBy", "onBlur", "onChange"]);
|
|
12
|
+
var requirementStatus = React.useContext(FormControl.Context).requirementStatus;
|
|
13
|
+
var internalRef = React.useRef(null);
|
|
14
|
+
var surface = React.useContext(Surface.Context).surface;
|
|
15
|
+
React.useEffect(function () {
|
|
16
|
+
if (internalRef.current) {
|
|
17
|
+
internalRef.current.indeterminate = indeterminate;
|
|
18
|
+
}
|
|
19
|
+
}, [indeterminate, checked]);
|
|
20
|
+
var tickSize = {
|
|
21
|
+
s: 14,
|
|
22
|
+
m: 18,
|
|
23
|
+
};
|
|
24
|
+
var isControlled = typeof checked !== "undefined" && typeof onChange === "function";
|
|
25
|
+
var checkedProps = isControlled
|
|
26
|
+
? { checked: checked }
|
|
27
|
+
: checked
|
|
28
|
+
? { defaultChecked: true }
|
|
29
|
+
: {};
|
|
30
|
+
if (!checked && onChange) {
|
|
31
|
+
indeterminate = false;
|
|
32
|
+
}
|
|
33
|
+
if (requirementStatus === "required") {
|
|
34
|
+
isRequired = true;
|
|
35
|
+
}
|
|
36
|
+
return (React.createElement("label", { htmlFor: id, className: index.classNames({
|
|
37
|
+
"arc-CheckboxIcon": true,
|
|
38
|
+
"arc-CheckboxIcon--disabled": isDisabled,
|
|
39
|
+
"arc-CheckboxIcon--invalid": error,
|
|
40
|
+
"arc-CheckboxIcon--small": size === "s",
|
|
41
|
+
"arc-CheckboxIcon--onDarkSurface": surface === "dark",
|
|
42
|
+
}) },
|
|
43
|
+
React.createElement("input", tslib_es6.__assign({ "aria-describedby": ariaDescribedBy ? ariaDescribedBy : error ? "id-error" : undefined, "aria-invalid": error, "aria-checked": checked && !indeterminate
|
|
44
|
+
? true
|
|
45
|
+
: indeterminate && checked
|
|
46
|
+
? "mixed"
|
|
47
|
+
: false, className: index.classNames("arc-CheckboxIcon-input"), disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: internalRef, required: isRequired, type: "checkbox", value: value }, checkedProps, props)),
|
|
48
|
+
React.createElement("span", { className: index.classNames("arc-CheckboxIcon-box") }, indeterminate ? (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none" },
|
|
49
|
+
React.createElement("rect", { x: "4", y: "8", width: "7.51", height: "1", rx: "0.5", fill: "currentColor" }))) : (React.createElement(ThemeIcon.ThemeIcon, { icon: "checkboxChecked", size: tickSize[size] })))));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.CheckboxIcon = CheckboxIcon;
|