@arc-ui/components 12.0.0-beta.22 → 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 +38 -37
- package/lib/Alert/Alert.mjs +38 -37
- 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 +18 -8
- package/lib/Breadcrumbs/Breadcrumbs.mjs +16 -6
- 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 +17 -10
- package/lib/Carousel/Carousel.mjs +13 -6
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/Checkbox.cjs +54 -13
- package/lib/Checkbox/Checkbox.mjs +56 -11
- 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 +284 -18
- package/lib/ComboBox/ComboBox.mjs +287 -17
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +8 -8
- package/lib/ContentSwitcher/ContentSwitcher.mjs +8 -8
- 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 +365 -51
- package/lib/DatePicker/DatePicker.mjs +339 -26
- 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 -197
- package/lib/GradientPageBackground/GradientPageBackground.mjs +96 -197
- 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 +78 -9
- package/lib/HeroButton/HeroButton.mjs +81 -8
- 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 +15 -13
- package/lib/ImpactCard/ImpactCard.mjs +13 -11
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +32 -22
- package/lib/InformationCard/InformationCard.mjs +27 -17
- 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 +56 -15
- package/lib/MediaCard/MediaCard.mjs +58 -13
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +1513 -73
- package/lib/Menu/Menu.mjs +1480 -59
- 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 +859 -114
- package/lib/NavigationHeader/NavigationHeader.mjs +836 -91
- 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 +142 -11
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +144 -9
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +57 -15
- package/lib/RadioCardGroup/RadioCardGroup.mjs +55 -14
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/RadioGroup.cjs +59 -15
- package/lib/RadioGroup/RadioGroup.mjs +56 -13
- 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 +28 -26
- package/lib/SiteFooterV2/SiteFooterV2.mjs +15 -13
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +457 -31
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +440 -15
- 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 +27 -26
- package/lib/TabbedBanner/TabbedBanner.mjs +23 -22
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.cjs +12 -11
- package/lib/Tabs/Tabs.mjs +6 -5
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/Tag.cjs +18 -15
- package/lib/Tag/Tag.mjs +17 -14
- 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 +12 -62
- package/lib/TextArea/TextArea.mjs +10 -60
- 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 +13 -11
- package/lib/TypographyCard/TypographyCard.mjs +12 -10
- 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-B-va25n2.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-bCEzIPN2.cjs → ContentSwitcherList-BgAW2IhJ.cjs} +19 -7
- 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-7xUgVf1I.cjs → Link-PWpx-rRO.cjs} +13 -10
- 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-wUVdzmGA.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-CImrJ9ON.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-DWUgmeLA.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-DlNskPlN.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-Bd2_eT1Y.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-bCQz0qkU.mjs → ContentSwitcherList-i4m4nAzP.mjs} +15 -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-Biyg9qBH.mjs → Link-ogbR4K3O.mjs} +8 -5
- 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-DDygQ5Az.mjs → Section-COc1l3mp.mjs} +4 -3
- 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-DeHjliNP.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-Bs-at7wk.mjs +26 -0
- 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-BDWwJ5x2.mjs → index-BWkI4Dwz.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-C3WqfFKH.mjs → index.es-tyrXzvpp.mjs} +2 -2
- 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 +1244 -999
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +349 -142
- package/lib/index.d.mts +349 -142
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1244 -1001
- 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/BreadcrumbsLink-CDmk3Y3m.cjs +0 -18
- package/lib/_shared/cjs/ButtonV2-Bta5SVVY.cjs +0 -55
- package/lib/_shared/cjs/Checkbox-DfZMjO1Y.cjs +0 -88
- package/lib/_shared/cjs/ComboBox-BGUhlqx1.cjs +0 -281
- package/lib/_shared/cjs/ContentSwitcherTab-B387Qs3I.cjs +0 -14
- package/lib/_shared/cjs/DatePicker-Dt4faA_N.cjs +0 -334
- package/lib/_shared/cjs/GridRow-BW2ZGtND.cjs +0 -44
- package/lib/_shared/cjs/HeroButton-CrzkTUwP.cjs +0 -82
- package/lib/_shared/cjs/MediaCard-BEZFbiYO.cjs +0 -57
- package/lib/_shared/cjs/MenuItemMultiLevelContent-vLr6hSBm.cjs +0 -1328
- package/lib/_shared/cjs/ProgressStepperOverflow-BAGZNC26.cjs +0 -142
- package/lib/_shared/cjs/RadioCardGroupInput-CeUM3yPS.cjs +0 -53
- package/lib/_shared/cjs/RadioGroupInput-w2qkfsnG.cjs +0 -54
- package/lib/_shared/cjs/SiteHeaderV2NavItemWithSubNav-CagFKPEa.cjs +0 -445
- 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/kebabCase-D5yA6u-V.cjs +0 -743
- package/lib/_shared/cjs/keynames-Cx13-hWr.cjs +0 -8
- package/lib/_shared/cjs/use-media-query-BsUfHjPZ.cjs +0 -41
- package/lib/_shared/esm/BreadcrumbsLink-BxTurGNa.mjs +0 -16
- package/lib/_shared/esm/Checkbox-CwOHzlQF.mjs +0 -86
- package/lib/_shared/esm/ComboBox-CRlJjeev.mjs +0 -279
- package/lib/_shared/esm/ContentSwitcherTab-CfC3PGeZ.mjs +0 -12
- package/lib/_shared/esm/DatePicker-DT4OEzxP.mjs +0 -324
- package/lib/_shared/esm/HeroButton-jdjjV_Gf.mjs +0 -80
- package/lib/_shared/esm/MediaCard-DqMaNWsE.mjs +0 -55
- package/lib/_shared/esm/MenuItemMultiLevelContent-JTOHqpzg.mjs +0 -1296
- package/lib/_shared/esm/ProgressStepperOverflow-fPkLltVO.mjs +0 -140
- package/lib/_shared/esm/RadioCardGroupInput-D7W28geB.mjs +0 -50
- package/lib/_shared/esm/RadioGroupInput-zAWSV29m.mjs +0 -50
- package/lib/_shared/esm/SiteHeaderV2NavItemWithSubNav-CxGwdV6u.mjs +0 -439
- package/lib/_shared/esm/arc-breakpoints-D5hR5m3t.mjs +0 -21
- package/lib/_shared/esm/index-CL6dwOYV.mjs +0 -135
- package/lib/_shared/esm/kebabCase-CCEMRBfd.mjs +0 -737
- package/lib/_shared/esm/keynames-B5whqsjh.mjs +0 -8
- package/lib/_shared/esm/use-media-query-DmKuIDEM.mjs +0 -39
|
@@ -1,49 +1,363 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var index = require('../_shared/cjs/index-BLRjGROQ.cjs');
|
|
5
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-CCZ3TN_7.cjs');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var index$
|
|
8
|
-
var index$
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var index = require('../_shared/cjs/index-DXNM3D1d.cjs');
|
|
12
|
-
require('../_shared/cjs/
|
|
13
|
-
require('../_shared/cjs/Combination-
|
|
7
|
+
var index$2 = require('../_shared/cjs/index-CTlXMLug.cjs');
|
|
8
|
+
var index$3 = require('../_shared/cjs/index-BWfgSvRQ.cjs');
|
|
9
|
+
var Calendar = require('../_shared/cjs/Calendar-CFUNKEyb.cjs');
|
|
10
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-D19P2s1V.cjs');
|
|
11
|
+
var index$1 = require('../_shared/cjs/index-DXNM3D1d.cjs');
|
|
12
|
+
var TextInput = require('../_shared/cjs/TextInput-B0JrZhOo.cjs');
|
|
13
|
+
require('../_shared/cjs/Combination-6m6aOXZq.cjs');
|
|
14
14
|
require('react/jsx-runtime');
|
|
15
15
|
require('react-dom');
|
|
16
|
-
require('../_shared/cjs/index-
|
|
16
|
+
require('../_shared/cjs/index-KrMgv4q_.cjs');
|
|
17
17
|
require('../_shared/cjs/index-B11wQrRa.cjs');
|
|
18
|
-
require('../_shared/cjs/index-
|
|
19
|
-
require('../_shared/cjs/
|
|
20
|
-
require('../_shared/cjs/
|
|
21
|
-
require('../_shared/cjs/
|
|
22
|
-
require('../_shared/cjs/DisclosureMini-CtvDxVaG.cjs');
|
|
23
|
-
require('../_shared/cjs/Text-Cr5nmYmx.cjs');
|
|
18
|
+
require('../_shared/cjs/index-BGGFOAAx.cjs');
|
|
19
|
+
require('../_shared/cjs/index.es-VcVPUNjD.cjs');
|
|
20
|
+
require('../_shared/cjs/use-media-query-DqZqShGX.cjs');
|
|
21
|
+
require('../_shared/cjs/Text-jwsn80lQ.cjs');
|
|
24
22
|
require('../_shared/cjs/suffix-modifier-DLUGR-yG.cjs');
|
|
25
|
-
require('../_shared/cjs/
|
|
26
|
-
require('../_shared/cjs/
|
|
27
|
-
require('../_shared/cjs/
|
|
28
|
-
require('../_shared/cjs/
|
|
29
|
-
require('../_shared/cjs/
|
|
30
|
-
require('../_shared/cjs/
|
|
31
|
-
require('../_shared/cjs/
|
|
32
|
-
require('../_shared/cjs/
|
|
23
|
+
require('../_shared/cjs/index-DR8Rkav9.cjs');
|
|
24
|
+
require('../_shared/cjs/Surface-DIU5ciDT.cjs');
|
|
25
|
+
require('../_shared/cjs/VisuallyHidden-CQg3cOVK.cjs');
|
|
26
|
+
require('../_shared/cjs/Heading-CoiZ2EmD.cjs');
|
|
27
|
+
require('../_shared/cjs/SemanticHeading-BPXN_z49.cjs');
|
|
28
|
+
require('../_shared/cjs/ThemeIcon-Def4RZfK.cjs');
|
|
29
|
+
require('../_shared/cjs/Icon-Dk2XHa7V.cjs');
|
|
30
|
+
require('../_shared/cjs/FormControl-DiERJpGW.cjs');
|
|
31
|
+
require('../_shared/cjs/DisclosureMini-KEuIc8tE.cjs');
|
|
32
|
+
require('../_shared/cjs/Spinner-427lpnHI.cjs');
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @name startOfDay
|
|
36
|
+
* @category Day Helpers
|
|
37
|
+
* @summary Return the start of a day for the given date.
|
|
38
|
+
*
|
|
39
|
+
* @description
|
|
40
|
+
* Return the start of a day for the given date.
|
|
41
|
+
* The result will be in the local timezone.
|
|
42
|
+
*
|
|
43
|
+
* @param {Date|Number} date - the original date
|
|
44
|
+
* @returns {Date} the start of a day
|
|
45
|
+
* @throws {TypeError} 1 argument required
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* // The start of a day for 2 September 2014 11:55:00:
|
|
49
|
+
* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
|
|
50
|
+
* //=> Tue Sep 02 2014 00:00:00
|
|
51
|
+
*/
|
|
52
|
+
function startOfDay(dirtyDate) {
|
|
53
|
+
index.requiredArgs(1, arguments);
|
|
54
|
+
var date = index.toDate(dirtyDate);
|
|
55
|
+
date.setHours(0, 0, 0, 0);
|
|
56
|
+
return date;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @name isSameDay
|
|
61
|
+
* @category Day Helpers
|
|
62
|
+
* @summary Are the given dates in the same day (and year and month)?
|
|
63
|
+
*
|
|
64
|
+
* @description
|
|
65
|
+
* Are the given dates in the same day (and year and month)?
|
|
66
|
+
*
|
|
67
|
+
* @param {Date|Number} dateLeft - the first date to check
|
|
68
|
+
* @param {Date|Number} dateRight - the second date to check
|
|
69
|
+
* @returns {Boolean} the dates are in the same day (and year and month)
|
|
70
|
+
* @throws {TypeError} 2 arguments required
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
|
|
74
|
+
* const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
|
|
75
|
+
* //=> true
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* // Are 4 September and 4 October in the same day?
|
|
79
|
+
* const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
|
|
80
|
+
* //=> false
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
|
|
84
|
+
* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
|
|
85
|
+
* //=> false
|
|
86
|
+
*/
|
|
87
|
+
function isSameDay(dirtyDateLeft, dirtyDateRight) {
|
|
88
|
+
index.requiredArgs(2, arguments);
|
|
89
|
+
var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
|
|
90
|
+
var dateRightStartOfDay = startOfDay(dirtyDateRight);
|
|
91
|
+
return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
var parseRangeString = function (value) {
|
|
95
|
+
if (value === void 0) { value = ""; }
|
|
96
|
+
var _a = value.replace(/\s/g, "").split("-"), _b = _a[0], start = _b === void 0 ? "" : _b, _c = _a[1], end = _c === void 0 ? "" : _c;
|
|
97
|
+
var _d = start.split("/"), startDay = _d[0], startMonth = _d[1], startYear = _d[2];
|
|
98
|
+
var _e = end.split("/"), endDay = _e[0], endMonth = _e[1], endYear = _e[2];
|
|
99
|
+
return {
|
|
100
|
+
start: {
|
|
101
|
+
date: start,
|
|
102
|
+
day: startDay,
|
|
103
|
+
month: startMonth,
|
|
104
|
+
year: startYear,
|
|
105
|
+
},
|
|
106
|
+
end: {
|
|
107
|
+
date: end,
|
|
108
|
+
day: endDay,
|
|
109
|
+
month: endMonth,
|
|
110
|
+
year: endYear,
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
var parseDateString = function (value) {
|
|
116
|
+
var _a = value.split("/"), day = _a[0], month = _a[1], year = _a[2];
|
|
117
|
+
return {
|
|
118
|
+
day: day,
|
|
119
|
+
month: month,
|
|
120
|
+
year: year,
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var isDateValid = function (value) {
|
|
125
|
+
if (value === void 0) { value = ""; }
|
|
126
|
+
var _a = value.split("/"), day = _a[0], month = _a[1], year = _a[2];
|
|
127
|
+
return (/^\d{2}\/\d{2}\/\d{4}$/.test(value) &&
|
|
128
|
+
index.isValid(new Date("".concat(year, "-").concat(month, "-").concat(day))));
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
var isRangeValid = function (value) {
|
|
132
|
+
if (value === void 0) { value = ""; }
|
|
133
|
+
var _a = value.replace(/\s/g, "").split("-"), _b = _a[0], start = _b === void 0 ? "" : _b, _c = _a[1], end = _c === void 0 ? "" : _c;
|
|
134
|
+
return isDateValid(start) && isDateValid(end);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
var DATE_FORMAT = "dd/MM/yyyy";
|
|
138
|
+
|
|
139
|
+
var formatDate = function (value) {
|
|
140
|
+
return index.format(value, DATE_FORMAT);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
var isDisabledDate = function (disabledDates, date) {
|
|
144
|
+
return Boolean(disabledDates &&
|
|
145
|
+
disabledDates.find(function (disabledDate) { return isSameDay(date, disabledDate); }));
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
var convertDateStringToDate = function (value) {
|
|
149
|
+
if (value === void 0) { value = ""; }
|
|
150
|
+
var _a = parseDateString(value), day = _a.day, month = _a.month, year = _a.year;
|
|
151
|
+
var isValidDate = isDateValid(value);
|
|
152
|
+
return isValidDate ? new Date("".concat(year, "-").concat(month, "-").concat(day)) : new Date();
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
var convertRangeStringToDates = function (value) {
|
|
156
|
+
if (value === void 0) { value = ""; }
|
|
157
|
+
var _a = parseRangeString(value), start = _a.start, end = _a.end;
|
|
158
|
+
return tslib_es6.__spreadArray(tslib_es6.__spreadArray([], (isDateValid(start.date)
|
|
159
|
+
? [new Date("".concat(start.year, "-").concat(start.month, "-").concat(start.day))]
|
|
160
|
+
: []), true), (isDateValid(end.date)
|
|
161
|
+
? [new Date("".concat(end.year, "-").concat(end.month, "-").concat(end.day))]
|
|
162
|
+
: []), true);
|
|
163
|
+
};
|
|
33
164
|
|
|
34
165
|
var convertRangeStringToDateTuple = function (value) {
|
|
35
166
|
if (value === void 0) { value = ""; }
|
|
36
|
-
var _a =
|
|
37
|
-
var startDate =
|
|
167
|
+
var _a = parseRangeString(value), start = _a.start, end = _a.end;
|
|
168
|
+
var startDate = isDateValid(start.date)
|
|
38
169
|
? new Date("".concat(start.year, "-").concat(start.month, "-").concat(start.day))
|
|
39
170
|
: undefined;
|
|
40
|
-
var endDate =
|
|
171
|
+
var endDate = isDateValid(end.date)
|
|
41
172
|
? new Date("".concat(end.year, "-").concat(end.month, "-").concat(end.day))
|
|
42
173
|
: undefined;
|
|
43
174
|
return [startDate, endDate];
|
|
44
175
|
};
|
|
45
176
|
|
|
46
|
-
|
|
177
|
+
function validateRangeOnBlur(_a) {
|
|
178
|
+
var value = _a.value, minDate = _a.minDate, maxDate = _a.maxDate, disabledDates = _a.disabledDates, previousValidValue = _a.previousValidValue, dispatchChangeEvent = _a.dispatchChangeEvent, blurEvent = _a.blurEvent;
|
|
179
|
+
if (!isRangeValid(value))
|
|
180
|
+
return;
|
|
181
|
+
var _b = convertRangeStringToDates(value), start = _b[0], end = _b[1];
|
|
182
|
+
var isStartBeforeMin = minDate && Calendar.isBefore(start, minDate);
|
|
183
|
+
var isEndAfterMax = maxDate && Calendar.isAfter(end, maxDate);
|
|
184
|
+
var isStartDisabled = isDisabledDate(disabledDates, start);
|
|
185
|
+
var isEndDisabled = isDisabledDate(disabledDates, end);
|
|
186
|
+
if (isStartBeforeMin && isEndAfterMax) {
|
|
187
|
+
return dispatchChangeEvent(blurEvent, "".concat(formatDate(minDate), " - ").concat(formatDate(maxDate)));
|
|
188
|
+
}
|
|
189
|
+
if (isStartBeforeMin) {
|
|
190
|
+
return dispatchChangeEvent(blurEvent, "".concat(formatDate(minDate), " - ").concat(formatDate(end)));
|
|
191
|
+
}
|
|
192
|
+
if (isEndAfterMax) {
|
|
193
|
+
return dispatchChangeEvent(blurEvent, "".concat(formatDate(start), " - ").concat(formatDate(maxDate)));
|
|
194
|
+
}
|
|
195
|
+
if (isStartDisabled || isEndDisabled) {
|
|
196
|
+
var _c = previousValidValue
|
|
197
|
+
? convertRangeStringToDates(previousValidValue)
|
|
198
|
+
: [], prevStart = _c[0], prevEnd = _c[1];
|
|
199
|
+
return dispatchChangeEvent(blurEvent, prevStart && prevEnd
|
|
200
|
+
? "".concat(formatDate(prevStart), " - ").concat(formatDate(prevEnd))
|
|
201
|
+
: "");
|
|
202
|
+
}
|
|
203
|
+
if (Calendar.isAfter(start, end)) {
|
|
204
|
+
var _d = [start, end].sort(Calendar.compareAsc), orderedStart = _d[0], orderedEnd = _d[1];
|
|
205
|
+
return dispatchChangeEvent(blurEvent, "".concat(formatDate(orderedStart), " - ").concat(formatDate(orderedEnd)));
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
|
|
211
|
+
*/
|
|
212
|
+
var DatePicker = React.forwardRef(function (_a, ref) {
|
|
213
|
+
var errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, label = _a.label, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, size = _a.size, _b = _a.value, value = _b === void 0 ? "" : _b, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, onClickDisclosure = _a.onClickDisclosure, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, type = _a.type, _c = _a.isFluid, isFluid = _c === void 0 ? false : _c, _d = _a.selectionType, selectionType = _d === void 0 ? "single" : _d, disabledDates = _a.disabledDates, minDate = _a.minDate, maxDate = _a.maxDate, props = tslib_es6.__rest(_a, ["errorMessage", "helper", "id", "label", "isDisabled", "isReadOnly", "isRequired", "size", "value", "name", "onBlur", "onChange", "onDateSelect", "onRangeSelect", "onClickDisclosure", "disclosureTitle", "disclosureText", "type", "isFluid", "selectionType", "disabledDates", "minDate", "maxDate"]);
|
|
214
|
+
var _e = index$1.useThemeElement(), themeElement = _e[0], setThemeElement = _e[1];
|
|
215
|
+
var _f = React.useState("Choose date"), ariaLabel = _f[0], setAriaLabel = _f[1];
|
|
216
|
+
var _g = React.useState(false), showCalendar = _g[0], setShowCalendar = _g[1];
|
|
217
|
+
var buttonRef = React.useRef(null);
|
|
218
|
+
var ourRef = React.useRef(null);
|
|
219
|
+
var previousValidValue = React.useRef(value);
|
|
220
|
+
var lowerCaseDateFormat = DATE_FORMAT.toLowerCase();
|
|
221
|
+
var placeHolder = selectionType === "range"
|
|
222
|
+
? "".concat(lowerCaseDateFormat, " - ").concat(lowerCaseDateFormat)
|
|
223
|
+
: lowerCaseDateFormat;
|
|
224
|
+
React.useEffect(function () {
|
|
225
|
+
if (selectionType === "single" &&
|
|
226
|
+
isDateValid(value) &&
|
|
227
|
+
!isDisabledDate(disabledDates, convertDateStringToDate(value))) {
|
|
228
|
+
previousValidValue.current = value;
|
|
229
|
+
}
|
|
230
|
+
if (selectionType === "range" && isRangeValid(value)) {
|
|
231
|
+
var rangeHasDisabledDates = convertRangeStringToDates(value).some(function (rangeValue) { return isDisabledDate(disabledDates, rangeValue); });
|
|
232
|
+
if (!rangeHasDisabledDates) {
|
|
233
|
+
previousValidValue.current = value;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}, [value, disabledDates, selectionType]);
|
|
237
|
+
var getDatePickerRef = function (elementRef) {
|
|
238
|
+
ourRef.current = elementRef;
|
|
239
|
+
if (ref && typeof ref === "object") {
|
|
240
|
+
ref.current = elementRef;
|
|
241
|
+
}
|
|
242
|
+
if (ref && typeof ref === "function") {
|
|
243
|
+
ref(elementRef);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
var dispatchChangeEvent = function (e, value) {
|
|
247
|
+
onChange &&
|
|
248
|
+
onChange(tslib_es6.__assign(tslib_es6.__assign({}, e), { target: tslib_es6.__assign(tslib_es6.__assign({}, e.target), { value: value }) }));
|
|
249
|
+
};
|
|
250
|
+
var handleRangeSelect = function (rangeSelection) {
|
|
251
|
+
var start = formatDate(rangeSelection.start);
|
|
252
|
+
var end = rangeSelection.end ? formatDate(rangeSelection.end) : null;
|
|
253
|
+
onRangeSelect &&
|
|
254
|
+
onRangeSelect(tslib_es6.__assign(tslib_es6.__assign({}, rangeSelection), { formattedRange: "".concat(start).concat(end ? " - ".concat(end) : "") }));
|
|
255
|
+
rangeSelection.isSelectionComplete && setShowCalendar(false);
|
|
256
|
+
};
|
|
257
|
+
var handleDateSelect = function (value) {
|
|
258
|
+
onDateSelect &&
|
|
259
|
+
onDateSelect({
|
|
260
|
+
date: value,
|
|
261
|
+
formattedDate: formatDate(value),
|
|
262
|
+
});
|
|
263
|
+
setShowCalendar(false);
|
|
264
|
+
};
|
|
265
|
+
var handleSingleSelectionBlur = function (e) {
|
|
266
|
+
if (value && isDateValid(value) && selectionType === "single") {
|
|
267
|
+
var _a = parseDateString(value), day = _a.day, month = _a.month, year = _a.year;
|
|
268
|
+
var date = new Date("".concat(year, "-").concat(month, "-").concat(day));
|
|
269
|
+
var isDateBeforeMinDate = minDate && Calendar.isBefore(date, minDate);
|
|
270
|
+
var isDateAfterMaxDate = maxDate && Calendar.isAfter(date, maxDate);
|
|
271
|
+
var isDisabledValue = isDisabledDate(disabledDates, date);
|
|
272
|
+
if (isDateBeforeMinDate) {
|
|
273
|
+
return dispatchChangeEvent(e, "".concat(formatDate(minDate)));
|
|
274
|
+
}
|
|
275
|
+
if (isDateAfterMaxDate) {
|
|
276
|
+
return dispatchChangeEvent(e, "".concat(formatDate(maxDate)));
|
|
277
|
+
}
|
|
278
|
+
if (isDisabledValue) {
|
|
279
|
+
var date_1 = previousValidValue.current
|
|
280
|
+
? convertDateStringToDate(previousValidValue.current)
|
|
281
|
+
: new Date();
|
|
282
|
+
return dispatchChangeEvent(e, "".concat(formatDate(date_1)));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
var handleRangeSelectionBlur = function (e) {
|
|
287
|
+
validateRangeOnBlur({
|
|
288
|
+
value: value,
|
|
289
|
+
minDate: minDate,
|
|
290
|
+
maxDate: maxDate,
|
|
291
|
+
disabledDates: disabledDates,
|
|
292
|
+
previousValidValue: previousValidValue.current,
|
|
293
|
+
dispatchChangeEvent: dispatchChangeEvent,
|
|
294
|
+
blurEvent: e,
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
var handleBlur = function (e) {
|
|
298
|
+
onBlur && onBlur(e);
|
|
299
|
+
if (selectionType === "single") {
|
|
300
|
+
handleSingleSelectionBlur(e);
|
|
301
|
+
}
|
|
302
|
+
if (selectionType === "range") {
|
|
303
|
+
handleRangeSelectionBlur(e);
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
var handleChange = function (e) {
|
|
307
|
+
onChange && onChange(e);
|
|
308
|
+
};
|
|
309
|
+
var handleCalendarOpenChange = function (isOpen) {
|
|
310
|
+
if (document.activeElement)
|
|
311
|
+
setShowCalendar(isOpen);
|
|
312
|
+
};
|
|
313
|
+
var handleIconClick = function () {
|
|
314
|
+
var _a;
|
|
315
|
+
!((_a = ourRef.current) === null || _a === void 0 ? void 0 : _a.contains(document.activeElement)) &&
|
|
316
|
+
!isDisabled &&
|
|
317
|
+
!isReadOnly &&
|
|
318
|
+
setShowCalendar(true);
|
|
319
|
+
};
|
|
320
|
+
var handleIconFocus = function () {
|
|
321
|
+
if (selectionType === "range" && isRangeValid(value)) {
|
|
322
|
+
var _a = convertRangeStringToDates(value), start = _a[0], end = _a[1];
|
|
323
|
+
return setAriaLabel("Change dates, currently selected dates are ".concat(index.format(start, "EEEE do MMMM, yyyy"), " to ").concat(index.format(end, "EEEE do MMMM, yyyy")));
|
|
324
|
+
}
|
|
325
|
+
if (selectionType === "single" && isDateValid(value)) {
|
|
326
|
+
var date = convertDateStringToDate(value);
|
|
327
|
+
return setAriaLabel("Change date, currently selected date is ".concat(index.format(date, "EEEE do MMMM, yyyy")));
|
|
328
|
+
}
|
|
329
|
+
setAriaLabel("Choose Date");
|
|
330
|
+
};
|
|
331
|
+
var handleCalendarClose = function () {
|
|
332
|
+
var _a, _b;
|
|
333
|
+
if (((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.tagName) === "BODY") {
|
|
334
|
+
(_b = buttonRef.current) === null || _b === void 0 ? void 0 : _b.focus();
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
var onCancelClick = function () {
|
|
338
|
+
setShowCalendar(false);
|
|
339
|
+
};
|
|
340
|
+
var handleAutoFocus = function (e) {
|
|
341
|
+
e.preventDefault();
|
|
342
|
+
};
|
|
343
|
+
return (React.createElement("div", { ref: setThemeElement, className: index$2.classNames({
|
|
344
|
+
"arc-DatePicker--constrained": !isFluid,
|
|
345
|
+
}) },
|
|
346
|
+
React.createElement(TextInput.TextInputWithPlaceHolder, tslib_es6.__assign({ ref: getDatePickerRef, iconButton: {
|
|
347
|
+
onClick: handleIconClick,
|
|
348
|
+
onFocus: handleIconFocus,
|
|
349
|
+
icon: "datePickerCalendar",
|
|
350
|
+
label: ariaLabel,
|
|
351
|
+
ref: buttonRef,
|
|
352
|
+
}, placeholder: placeHolder, errorMessage: errorMessage, helper: helper, id: id, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, label: label, maxLength: selectionType === "range" ? 23 : 10, name: name, onBlur: handleBlur, onChange: handleChange, onClickDisclosure: onClickDisclosure, type: "text", value: value, disclosureTitle: disclosureTitle, disclosureText: disclosureText, size: size }, props, filterAttrs.filterAttrs(props))),
|
|
353
|
+
React.createElement(index$3.Root2, tslib_es6.__assign({ open: showCalendar, onOpenChange: handleCalendarOpenChange }, filterAttrs.filterAttrs(props)),
|
|
354
|
+
React.createElement(index$3.Anchor2, null),
|
|
355
|
+
React.createElement(index$3.Portal, { container: themeElement },
|
|
356
|
+
React.createElement(index$3.Content2, { align: "start", "aria-modal": "true", "aria-label": "Choose Date", className: "arc-DatePicker-modal", onOpenAutoFocus: handleAutoFocus, onCloseAutoFocus: handleCalendarClose },
|
|
357
|
+
React.createElement(Calendar.Calendar, { autoFocusOnMount: true, type: type, onCancelClick: onCancelClick, selectionType: selectionType, selectedDate: convertDateStringToDate(value), selectedRange: convertRangeStringToDates(value), disabledDates: disabledDates, minDate: minDate, maxDate: maxDate, onDateSelect: handleDateSelect, onRangeSelect: handleRangeSelect }))))));
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
var lowerCaseDateFormat = DATE_FORMAT.toLowerCase();
|
|
47
361
|
var DatePickerRange = function (_a) {
|
|
48
362
|
var _b, _c;
|
|
49
363
|
var inputStart = _a.inputStart, inputEnd = _a.inputEnd, _d = _a.type, type = _d === void 0 ? "month" : _d, minDate = _a.minDate, maxDate = _a.maxDate, disabledDates = _a.disabledDates, onRangeSelect = _a.onRangeSelect;
|
|
@@ -58,7 +372,7 @@ var DatePickerRange = function (_a) {
|
|
|
58
372
|
var endButtonRef = React.useRef(null);
|
|
59
373
|
var endInputRef = React.useRef(null);
|
|
60
374
|
var previousValidValue = React.useRef("");
|
|
61
|
-
var _j = index.useThemeElement(), themeElement = _j[0], setThemeElement = _j[1];
|
|
375
|
+
var _j = index$1.useThemeElement(), themeElement = _j[0], setThemeElement = _j[1];
|
|
62
376
|
var _k = React.useState(false), showCalendar = _k[0], setShowCalendar = _k[1];
|
|
63
377
|
var _l = React.useState(null), activeInput = _l[0], setActiveInput = _l[1];
|
|
64
378
|
var getIsRequired = function (input) { var _a; return (_a = input.isRequired) !== null && _a !== void 0 ? _a : true; };
|
|
@@ -84,9 +398,9 @@ var DatePickerRange = function (_a) {
|
|
|
84
398
|
};
|
|
85
399
|
var handleRangeSelect = function (rangeSelection) {
|
|
86
400
|
var start = rangeSelection.start, end = rangeSelection.end, isSelectionComplete = rangeSelection.isSelectionComplete;
|
|
87
|
-
var formattedStart = index
|
|
88
|
-
var formattedEnd = end ? index
|
|
89
|
-
onRangeSelect === null || onRangeSelect === void 0 ? void 0 : onRangeSelect(
|
|
401
|
+
var formattedStart = index.format(start, "dd/MM/yyyy");
|
|
402
|
+
var formattedEnd = end ? index.format(end, "dd/MM/yyyy") : "";
|
|
403
|
+
onRangeSelect === null || onRangeSelect === void 0 ? void 0 : onRangeSelect(tslib_es6.__assign(tslib_es6.__assign({}, rangeSelection), { formattedStart: formattedStart, formattedEnd: formattedEnd }));
|
|
90
404
|
if (isSelectionComplete) {
|
|
91
405
|
var fullRange = "".concat(formattedStart, " - ").concat(formattedEnd);
|
|
92
406
|
previousValidValue.current = fullRange;
|
|
@@ -102,9 +416,9 @@ var DatePickerRange = function (_a) {
|
|
|
102
416
|
};
|
|
103
417
|
var handleIconFocus = function (_a) {
|
|
104
418
|
var input = _a.input;
|
|
105
|
-
if (
|
|
106
|
-
var _b =
|
|
107
|
-
var label = "Change dates, currently selected dates are ".concat(index
|
|
419
|
+
if (isRangeValid("".concat(startValue, " - ").concat(endValue))) {
|
|
420
|
+
var _b = convertRangeStringToDates("".concat(startValue, " - ").concat(endValue)), start = _b[0], end = _b[1];
|
|
421
|
+
var label = "Change dates, currently selected dates are ".concat(index.format(start, "EEEE do MMMM, yyyy"), " to ").concat(index.format(end, "EEEE do MMMM, yyyy"));
|
|
108
422
|
input === "start" ? setStartAriaLabel(label) : setEndAriaLabel(label);
|
|
109
423
|
return;
|
|
110
424
|
}
|
|
@@ -129,7 +443,7 @@ var DatePickerRange = function (_a) {
|
|
|
129
443
|
if (input === "end") {
|
|
130
444
|
inputEnd.onBlur && inputEnd.onBlur(e);
|
|
131
445
|
}
|
|
132
|
-
|
|
446
|
+
validateRangeOnBlur({
|
|
133
447
|
value: value,
|
|
134
448
|
minDate: minDate,
|
|
135
449
|
maxDate: maxDate,
|
|
@@ -137,9 +451,9 @@ var DatePickerRange = function (_a) {
|
|
|
137
451
|
previousValidValue: previousValidValue.current,
|
|
138
452
|
dispatchChangeEvent: function (e, corrected) {
|
|
139
453
|
var _a, _b;
|
|
140
|
-
var _c =
|
|
141
|
-
(_a = inputStart.onChange) === null || _a === void 0 ? void 0 : _a.call(inputStart,
|
|
142
|
-
(_b = inputEnd.onChange) === null || _b === void 0 ? void 0 : _b.call(inputEnd,
|
|
454
|
+
var _c = convertRangeStringToDates(corrected), start = _c[0], end = _c[1];
|
|
455
|
+
(_a = inputStart.onChange) === null || _a === void 0 ? void 0 : _a.call(inputStart, tslib_es6.__assign(tslib_es6.__assign({}, e), { target: tslib_es6.__assign(tslib_es6.__assign({}, e.target), { value: formatDate(start) }) }));
|
|
456
|
+
(_b = inputEnd.onChange) === null || _b === void 0 ? void 0 : _b.call(inputEnd, tslib_es6.__assign(tslib_es6.__assign({}, e), { target: tslib_es6.__assign(tslib_es6.__assign({}, e.target), { value: formatDate(end) }) }));
|
|
143
457
|
previousValidValue.current = corrected;
|
|
144
458
|
},
|
|
145
459
|
blurEvent: e,
|
|
@@ -176,7 +490,7 @@ var DatePickerRange = function (_a) {
|
|
|
176
490
|
return [start, end].filter(function (d) { return d instanceof Date; });
|
|
177
491
|
};
|
|
178
492
|
return (React.createElement("div", { className: "arc-DatePickerRange", ref: setThemeElement },
|
|
179
|
-
React.createElement(TextInput.TextInputWithPlaceHolder,
|
|
493
|
+
React.createElement(TextInput.TextInputWithPlaceHolder, tslib_es6.__assign({ ref: setStartInputRef, type: "text", iconButton: {
|
|
180
494
|
onClick: function () {
|
|
181
495
|
return handleIconClick({
|
|
182
496
|
ref: startInputRef.current,
|
|
@@ -190,7 +504,7 @@ var DatePickerRange = function (_a) {
|
|
|
190
504
|
label: startAriaLabel,
|
|
191
505
|
ref: startButtonRef,
|
|
192
506
|
}, maxLength: 23, onBlur: function (e) { return handleBlur(e, "start"); }, errorMessage: inputStart.errorMessage, helper: inputStart.helper, id: inputStart.id, isDisabled: inputStart.isDisabled, isReadOnly: inputStart.isReadOnly, isRequired: getIsRequired(inputStart), label: getLabel(inputStart, "start"), hideLabel: inputStart.hideLabel, name: inputStart.name, onClickDisclosure: inputStart.onClickDisclosure, disclosureTitle: inputStart.disclosureTitle, disclosureText: inputStart.disclosureText, placeholder: lowerCaseDateFormat, value: startValue, onChange: function (e) { return handleChange(e, "start"); } }, filterAttrs.filterAttrs(inputStart))),
|
|
193
|
-
React.createElement(TextInput.TextInputWithPlaceHolder,
|
|
507
|
+
React.createElement(TextInput.TextInputWithPlaceHolder, tslib_es6.__assign({ ref: setEndInputRef, type: "text", iconButton: {
|
|
194
508
|
onClick: function () {
|
|
195
509
|
return handleIconClick({
|
|
196
510
|
ref: endInputRef.current,
|
|
@@ -204,17 +518,17 @@ var DatePickerRange = function (_a) {
|
|
|
204
518
|
label: endAriaLabel,
|
|
205
519
|
ref: endButtonRef,
|
|
206
520
|
}, maxLength: 23, onBlur: function (e) { return handleBlur(e, "end"); }, errorMessage: inputEnd.errorMessage, helper: inputEnd.helper, id: inputEnd.id, isDisabled: inputEnd.isDisabled, isReadOnly: inputEnd.isReadOnly, isRequired: getIsRequired(inputEnd), label: getLabel(inputEnd, "end"), hideLabel: inputStart.hideLabel, name: inputEnd.name, onClickDisclosure: inputEnd.onClickDisclosure, disclosureTitle: inputEnd.disclosureTitle, disclosureText: inputEnd.disclosureText, placeholder: lowerCaseDateFormat, value: endValue, onChange: function (e) { return handleChange(e, "end"); } }, filterAttrs.filterAttrs(inputEnd))),
|
|
207
|
-
React.createElement(index$
|
|
208
|
-
React.createElement(index$
|
|
209
|
-
React.createElement(index$
|
|
210
|
-
React.createElement(index$
|
|
521
|
+
React.createElement(index$3.Root2, { open: showCalendar, onOpenChange: handleCalendarOpenChange },
|
|
522
|
+
React.createElement(index$3.Anchor2, null),
|
|
523
|
+
React.createElement(index$3.Portal, { container: themeElement },
|
|
524
|
+
React.createElement(index$3.Content2, { align: "end", "aria-modal": "true", "aria-label": "Choose Date", className: "arc-DatePicker-modal", onOpenAutoFocus: handleAutoFocus, onCloseAutoFocus: handleCalendarClose },
|
|
211
525
|
React.createElement(Calendar.Calendar, { autoFocusOnMount: true, type: type, onCancelClick: onCancelClick, selectionType: "range", selectedRange: getCalendarRange(), disabledDates: disabledDates, minDate: minDate, maxDate: maxDate, onRangeSelect: handleRangeSelect }))))));
|
|
212
526
|
};
|
|
213
527
|
|
|
214
|
-
exports.DATE_FORMAT =
|
|
215
|
-
exports.DatePicker = DatePicker
|
|
216
|
-
exports.isDateValid = DatePicker.isDateValid;
|
|
217
|
-
exports.isRangeValid = DatePicker.isRangeValid;
|
|
218
|
-
exports.parseDateString = DatePicker.parseDateString;
|
|
219
|
-
exports.parseRangeString = DatePicker.parseRangeString;
|
|
528
|
+
exports.DATE_FORMAT = DATE_FORMAT;
|
|
529
|
+
exports.DatePicker = DatePicker;
|
|
220
530
|
exports.DatePickerRange = DatePickerRange;
|
|
531
|
+
exports.isDateValid = isDateValid;
|
|
532
|
+
exports.isRangeValid = isRangeValid;
|
|
533
|
+
exports.parseDateString = parseDateString;
|
|
534
|
+
exports.parseRangeString = parseRangeString;
|