@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,23 +1,293 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '../_shared/esm/index-
|
|
6
|
-
import '../_shared/esm/
|
|
7
|
-
import '../_shared/esm/
|
|
2
|
+
import { b as __spreadArray, a as __assign, _ as __rest } from '../_shared/esm/tslib.es6-w7hdJ3oZ.mjs';
|
|
3
|
+
import React__default, { forwardRef, useId, useRef, useReducer } from 'react';
|
|
4
|
+
import { R as Root2, A as Anchor2, P as Portal, C as Content2 } from '../_shared/esm/index-Do2wfP-X.mjs';
|
|
5
|
+
import { c as classNames } from '../_shared/esm/index-5C0-U8cc.mjs';
|
|
6
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-v_SweZXP.mjs';
|
|
7
|
+
import { u as useAriaDescribedby, F as FormControl } from '../_shared/esm/FormControl-Pc1aHUNM.mjs';
|
|
8
|
+
import { e as useThemeElement } from '../_shared/esm/index-Bz2JQq34.mjs';
|
|
9
|
+
import { B as Box } from '../_shared/esm/Box-C8iK8x5c.mjs';
|
|
10
|
+
import { I as Icon } from '../_shared/esm/Icon-CCUbr_AO.mjs';
|
|
11
|
+
import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-B0SruPZC.mjs';
|
|
12
|
+
import '../_shared/esm/Combination-BQ4XBtF-.mjs';
|
|
8
13
|
import 'react/jsx-runtime';
|
|
9
14
|
import 'react-dom';
|
|
10
|
-
import '../_shared/esm/index-
|
|
15
|
+
import '../_shared/esm/index-BFKdmv_g.mjs';
|
|
11
16
|
import '../_shared/esm/index-CWHcEz3_.mjs';
|
|
12
|
-
import '../_shared/esm/index-
|
|
13
|
-
import '../_shared/esm/
|
|
14
|
-
import '../_shared/esm/FormControl-CWyrVi1u.mjs';
|
|
15
|
-
import '../_shared/esm/Surface-Colbp3Zx.mjs';
|
|
17
|
+
import '../_shared/esm/index-GCEHSsY8.mjs';
|
|
18
|
+
import '../_shared/esm/Surface-C69KVzkY.mjs';
|
|
16
19
|
import '../_shared/esm/index-Spae4j7j.mjs';
|
|
17
|
-
import '../_shared/esm/DisclosureMini-
|
|
18
|
-
import '../_shared/esm/Text-
|
|
20
|
+
import '../_shared/esm/DisclosureMini-ClSe9sSt.mjs';
|
|
21
|
+
import '../_shared/esm/Text-BAzOkkzN.mjs';
|
|
19
22
|
import '../_shared/esm/suffix-modifier-B_pO0UkF.mjs';
|
|
20
|
-
import '../_shared/esm/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
import '../_shared/esm/VisuallyHidden-aSQ4RA1o.mjs';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Do not edit directly
|
|
27
|
+
* Generated file
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const BtIconChevronDown2Px =
|
|
31
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M15.993 23.914 2.294 10.207a1 1 0 1 1 1.414-1.414l12.285 12.293L28.292 8.793a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
|
|
32
|
+
|
|
33
|
+
var filterOptions = function (options, value) {
|
|
34
|
+
return options.filter(function (option) {
|
|
35
|
+
return value ? option.toLowerCase().includes(value.toLowerCase()) : true;
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var getSelectedOptions = function (option, selectedOptions) {
|
|
39
|
+
return selectedOptions.indexOf(option) !== -1
|
|
40
|
+
? selectedOptions.filter(function (selectedOption) { return selectedOption !== option; })
|
|
41
|
+
: __spreadArray(__spreadArray([], selectedOptions, true), [option], false);
|
|
42
|
+
};
|
|
43
|
+
var findOptionIndex = function (options, searchOption) {
|
|
44
|
+
return options.findIndex(function (option) { return option === searchOption; });
|
|
45
|
+
};
|
|
46
|
+
var isSelected = function (option, selectedOptions) {
|
|
47
|
+
return selectedOptions.some(function (selectedOption) { return option === selectedOption; });
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var reducer = function (initialOptions) {
|
|
51
|
+
return function (state, action) {
|
|
52
|
+
switch (action.type) {
|
|
53
|
+
case "OPEN": {
|
|
54
|
+
var isMultiSelectable = action.payload.isMultiSelectable;
|
|
55
|
+
var selectedOptions = state.selectedOptions, options = state.options;
|
|
56
|
+
return __assign(__assign({}, state), { isExpanded: true, highlightedOptionIndex: isMultiSelectable && selectedOptions.length
|
|
57
|
+
? findOptionIndex(options, selectedOptions[selectedOptions.length - 1])
|
|
58
|
+
: 0 });
|
|
59
|
+
}
|
|
60
|
+
case "CLOSE": {
|
|
61
|
+
return __assign(__assign({}, state), { isExpanded: false, highlightedOptionIndex: 0 });
|
|
62
|
+
}
|
|
63
|
+
case "INPUT_CHANGE": {
|
|
64
|
+
var _a = action.payload, value = _a.value, isAutocomplete = _a.isAutocomplete;
|
|
65
|
+
return __assign(__assign({}, state), { value: value, options: isAutocomplete
|
|
66
|
+
? filterOptions(initialOptions, value)
|
|
67
|
+
: state.options, highlightedOptionIndex: 0, isExpanded: true });
|
|
68
|
+
}
|
|
69
|
+
case "SINGLE_SELECT": {
|
|
70
|
+
var _b = action.payload, selectedOption = _b.option, isAutocomplete = _b.isAutocomplete;
|
|
71
|
+
return __assign(__assign({}, state), { isExpanded: false, options: isAutocomplete
|
|
72
|
+
? filterOptions(initialOptions, selectedOption)
|
|
73
|
+
: state.options, value: selectedOption });
|
|
74
|
+
}
|
|
75
|
+
case "MULTI_SELECT": {
|
|
76
|
+
var selectedOption = action.payload.option;
|
|
77
|
+
var selectedOptions = state.selectedOptions, options = state.options;
|
|
78
|
+
var newSelectedOptions = getSelectedOptions(selectedOption, selectedOptions);
|
|
79
|
+
return __assign(__assign({}, state), { value: "", options: initialOptions, highlightedOptionIndex: findOptionIndex(options, selectedOption), selectedOptions: newSelectedOptions });
|
|
80
|
+
}
|
|
81
|
+
case "MULTI_SELECT_REMOVE": {
|
|
82
|
+
var option_1 = action.payload.option;
|
|
83
|
+
var selectedOptions = state.selectedOptions;
|
|
84
|
+
return __assign(__assign({}, state), { selectedOptions: selectedOptions.filter(function (selectedOption) { return option_1 !== selectedOption; }) });
|
|
85
|
+
}
|
|
86
|
+
case "KEYDOWN": {
|
|
87
|
+
var _c = action.payload, key = _c.key, isAutocomplete = _c.isAutocomplete, isMultiSelectable = _c.isMultiSelectable;
|
|
88
|
+
var isExpanded = state.isExpanded, highlightedOptionIndex = state.highlightedOptionIndex, options = state.options, selectedOptions = state.selectedOptions;
|
|
89
|
+
if (key === "Escape" && isExpanded) {
|
|
90
|
+
return __assign(__assign({}, state), { isExpanded: false, highlightedOptionIndex: 0 });
|
|
91
|
+
}
|
|
92
|
+
if (key === "ArrowDown" && isExpanded) {
|
|
93
|
+
return __assign(__assign({}, state), { highlightedOptionIndex: highlightedOptionIndex === options.length - 1
|
|
94
|
+
? 0
|
|
95
|
+
: highlightedOptionIndex + 1 });
|
|
96
|
+
}
|
|
97
|
+
if (key === "ArrowUp" && isExpanded) {
|
|
98
|
+
return __assign(__assign({}, state), { highlightedOptionIndex: highlightedOptionIndex === 0
|
|
99
|
+
? options.length - 1
|
|
100
|
+
: highlightedOptionIndex - 1 });
|
|
101
|
+
}
|
|
102
|
+
if (key === "ArrowDown" && !isExpanded) {
|
|
103
|
+
return __assign(__assign({}, state), { isExpanded: true, highlightedOptionIndex: isMultiSelectable && selectedOptions.length
|
|
104
|
+
? findOptionIndex(options, selectedOptions[selectedOptions.length - 1])
|
|
105
|
+
: 0 });
|
|
106
|
+
}
|
|
107
|
+
if (key === "ArrowUp" && !isExpanded) {
|
|
108
|
+
return __assign(__assign({}, state), { isExpanded: true, highlightedOptionIndex: isMultiSelectable && selectedOptions.length
|
|
109
|
+
? findOptionIndex(options, selectedOptions[selectedOptions.length - 1])
|
|
110
|
+
: options.length - 1 });
|
|
111
|
+
}
|
|
112
|
+
if (key === "Enter" && isExpanded) {
|
|
113
|
+
if (isMultiSelectable) {
|
|
114
|
+
var newSelectedOptionIds = getSelectedOptions(options[highlightedOptionIndex], selectedOptions);
|
|
115
|
+
return __assign(__assign({}, state), { value: "", options: initialOptions, selectedOptions: newSelectedOptionIds });
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return __assign(__assign({}, state), { isExpanded: false, options: isAutocomplete
|
|
119
|
+
? filterOptions(initialOptions, options[highlightedOptionIndex])
|
|
120
|
+
: options, value: options[highlightedOptionIndex] });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return state;
|
|
124
|
+
}
|
|
125
|
+
default:
|
|
126
|
+
return state;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
var ComboBox = forwardRef(function (_a, ref) {
|
|
132
|
+
var name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, label = _a.label, helper = _a.helper, id = _a.id, initialOptions = _a.options, hideLabel = _a.hideLabel, isFluid = _a.isFluid, errorMessage = _a.errorMessage, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, listBoxAriaLabel = _a.listBoxAriaLabel, _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.isMultiSelectable, isMultiSelectable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.isAutocomplete, isAutocomplete = _g === void 0 ? false : _g, props = __rest(_a, ["name", "onBlur", "onFocus", "label", "helper", "id", "options", "hideLabel", "isFluid", "errorMessage", "disclosureTitle", "disclosureText", "onClickDisclosure", "listBoxAriaLabel", "defaultValue", "labelSize", "isMultiSelectable", "isDisabled", "isRequired", "isAutocomplete"]);
|
|
133
|
+
var listBoxId = useId();
|
|
134
|
+
var listItemRefs = useRef([]);
|
|
135
|
+
var containerRef = useRef(null);
|
|
136
|
+
var inputRef = useRef(null);
|
|
137
|
+
var _h = useThemeElement(), themeElement = _h[0], setThemeElement = _h[1];
|
|
138
|
+
var _j = useReducer(reducer(initialOptions), {
|
|
139
|
+
isExpanded: false,
|
|
140
|
+
value: defaultValue,
|
|
141
|
+
options: initialOptions,
|
|
142
|
+
highlightedOptionIndex: 0,
|
|
143
|
+
selectedOptions: [],
|
|
144
|
+
}), _k = _j[0], isExpanded = _k.isExpanded, value = _k.value, options = _k.options, highlightedOptionIndex = _k.highlightedOptionIndex, selectedOptions = _k.selectedOptions, dispatch = _j[1];
|
|
145
|
+
var ariaDescribedby = useAriaDescribedby({
|
|
146
|
+
errorMessage: errorMessage,
|
|
147
|
+
id: id,
|
|
148
|
+
helper: helper,
|
|
149
|
+
disclosureText: disclosureText,
|
|
150
|
+
}).ariaDescribedby;
|
|
151
|
+
var getTextInputRef = function (elementRef) {
|
|
152
|
+
inputRef.current = elementRef;
|
|
153
|
+
if (ref && typeof ref === "object") {
|
|
154
|
+
ref.current = elementRef;
|
|
155
|
+
}
|
|
156
|
+
if (ref && typeof ref === "function") {
|
|
157
|
+
ref(elementRef);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
var setScrollPosition = function (listEl) {
|
|
161
|
+
var listItemEl = listItemRefs.current[highlightedOptionIndex];
|
|
162
|
+
if (listItemEl && listEl) {
|
|
163
|
+
var selectedOptionIsBelowOverFlow = listItemEl.offsetTop + listItemEl.offsetHeight >
|
|
164
|
+
listEl.offsetHeight + listEl.scrollTop;
|
|
165
|
+
var selectedOptionIsAboveOverFlow = listItemEl.offsetTop < listEl.scrollTop;
|
|
166
|
+
if (selectedOptionIsBelowOverFlow) {
|
|
167
|
+
listEl.scrollTop =
|
|
168
|
+
listItemEl.offsetTop +
|
|
169
|
+
listItemEl.offsetHeight -
|
|
170
|
+
listEl.offsetHeight;
|
|
171
|
+
}
|
|
172
|
+
if (selectedOptionIsAboveOverFlow) {
|
|
173
|
+
listEl.scrollTop = listItemEl.offsetTop;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var onItemClick = function (itemOption) {
|
|
178
|
+
return function (e) {
|
|
179
|
+
var _a;
|
|
180
|
+
e.preventDefault();
|
|
181
|
+
if (isMultiSelectable) {
|
|
182
|
+
dispatch({
|
|
183
|
+
type: "MULTI_SELECT",
|
|
184
|
+
payload: {
|
|
185
|
+
option: itemOption,
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
dispatch({
|
|
191
|
+
type: "SINGLE_SELECT",
|
|
192
|
+
payload: {
|
|
193
|
+
isAutocomplete: isAutocomplete,
|
|
194
|
+
option: itemOption,
|
|
195
|
+
},
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
var onInputChange = function (e) {
|
|
202
|
+
dispatch({
|
|
203
|
+
type: "INPUT_CHANGE",
|
|
204
|
+
payload: {
|
|
205
|
+
isAutocomplete: isAutocomplete,
|
|
206
|
+
value: e.target.value,
|
|
207
|
+
},
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
var onInputClick = function () {
|
|
211
|
+
isAutocomplete &&
|
|
212
|
+
dispatch({
|
|
213
|
+
type: "OPEN",
|
|
214
|
+
payload: {
|
|
215
|
+
isMultiSelectable: isMultiSelectable,
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
var onInteractOutside = function (e) {
|
|
220
|
+
if (containerRef.current &&
|
|
221
|
+
!containerRef.current.contains(e.currentTarget)) {
|
|
222
|
+
dispatch({
|
|
223
|
+
type: "CLOSE",
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
var onInputKeyDown = function (e) {
|
|
228
|
+
dispatch({
|
|
229
|
+
type: "KEYDOWN",
|
|
230
|
+
payload: {
|
|
231
|
+
key: e.key,
|
|
232
|
+
isAutocomplete: isAutocomplete,
|
|
233
|
+
isMultiSelectable: isMultiSelectable,
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
var onMultiSelectRemove = function (option) { return function (e) {
|
|
238
|
+
var _a;
|
|
239
|
+
e.preventDefault();
|
|
240
|
+
e.stopPropagation();
|
|
241
|
+
dispatch({
|
|
242
|
+
type: "MULTI_SELECT_REMOVE",
|
|
243
|
+
payload: {
|
|
244
|
+
option: option,
|
|
245
|
+
},
|
|
246
|
+
});
|
|
247
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
248
|
+
}; };
|
|
249
|
+
var onOpenAutoFocus = function (e) {
|
|
250
|
+
var _a;
|
|
251
|
+
e.preventDefault();
|
|
252
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
253
|
+
};
|
|
254
|
+
return (React__default.createElement("div", { ref: setThemeElement, className: classNames("arc-ComboBox", {
|
|
255
|
+
"arc-ComboBox--constrained": !isFluid,
|
|
256
|
+
}) },
|
|
257
|
+
React__default.createElement("div", { ref: containerRef },
|
|
258
|
+
React__default.createElement(Root2, { open: isExpanded },
|
|
259
|
+
React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure },
|
|
260
|
+
React__default.createElement("div", { onClick: onInputClick, className: classNames("arc-ComboBox-container", {
|
|
261
|
+
"arc-ComboBox-container--cursor": isAutocomplete,
|
|
262
|
+
}) },
|
|
263
|
+
React__default.createElement("div", { className: classNames("arc-ComboBox-inputWrapper", {
|
|
264
|
+
"arc-ComboBox-inputWrapper--multiSelect": isMultiSelectable,
|
|
265
|
+
}) },
|
|
266
|
+
selectedOptions.length > 0 &&
|
|
267
|
+
selectedOptions.map(function (option, i) { return (React__default.createElement("div", { className: "arc-ComboBox-tag", key: "".concat(listBoxId, "-selectedOption-").concat(i) },
|
|
268
|
+
React__default.createElement("span", null, option),
|
|
269
|
+
React__default.createElement("button", { className: "arc-ComboBox-tagButton", "aria-label": "".concat(option, ", press space or enter to remove"), onClick: onMultiSelectRemove(option) },
|
|
270
|
+
React__default.createElement(ThemeIcon, { icon: "tagRemove", color: "brand", size: 20 })))); }),
|
|
271
|
+
React__default.createElement("input", __assign({ className: "arc-ComboBox-input", ref: getTextInputRef, "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", type: "text", role: "combobox", autoComplete: "off", "aria-autocomplete": "list", "aria-controls": listBoxId, "aria-expanded": isExpanded, "aria-activedescendant": highlightedOptionIndex
|
|
272
|
+
? "".concat(listBoxId, "-").concat(highlightedOptionIndex)
|
|
273
|
+
: undefined, id: id, name: name, onFocus: onFocus, onBlur: onBlur, onChange: onInputChange, onKeyDown: onInputKeyDown, disabled: isDisabled, required: isRequired, value: value }, filterAttrs(props)))),
|
|
274
|
+
isAutocomplete && (React__default.createElement("div", { className: classNames("arc-ComboBox-inputIcon", {
|
|
275
|
+
"arc-ComboBox-inputIcon--expanded": isExpanded,
|
|
276
|
+
}) },
|
|
277
|
+
React__default.createElement(Icon, { icon: BtIconChevronDown2Px, size: 24 }))))),
|
|
278
|
+
React__default.createElement(Anchor2, null),
|
|
279
|
+
React__default.createElement(Portal, { container: themeElement },
|
|
280
|
+
React__default.createElement(Content2, { align: "start", sideOffset: 5, onInteractOutside: onInteractOutside, onOpenAutoFocus: onOpenAutoFocus },
|
|
281
|
+
React__default.createElement("div", { className: "arc-ComboBox-listboxContainer" },
|
|
282
|
+
React__default.createElement(Box, { elevationLevel: "1" },
|
|
283
|
+
React__default.createElement("ul", { ref: setScrollPosition, id: listBoxId, className: "arc-ComboBox-list", role: "listbox", "aria-label": listBoxAriaLabel, "aria-multiselectable": isMultiSelectable }, options.length ? (options.map(function (option, i) { return (React__default.createElement("li", { id: "".concat(listBoxId, "-").concat(i), ref: function (el) { return (listItemRefs.current[i] = el); }, key: option, className: classNames("arc-ComboBox-listItem", {
|
|
284
|
+
"arc-ComboBox-listItem--highlighted": i === highlightedOptionIndex,
|
|
285
|
+
}), onMouseDown: onItemClick(option), role: "option", "aria-selected": isSelected(option, selectedOptions) },
|
|
286
|
+
React__default.createElement("div", { className: "arc-ComboBox-listItemText" }, option),
|
|
287
|
+
React__default.createElement("div", { className: classNames("arc-ComboBox-listItemIcon", {
|
|
288
|
+
"arc-ComboBox-listItemIcon--visible": isSelected(option, selectedOptions),
|
|
289
|
+
}) },
|
|
290
|
+
React__default.createElement(ThemeIcon, { size: 20, icon: "selectIndicator" })))); })) : (React__default.createElement("li", { className: "arc-ComboBox-listItem", role: "option", "aria-selected": false, "aria-disabled": true }, "No matches found")))))))))));
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
export { ComboBox };
|
package/lib/ComboBox/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.arc-v12-0-0-beta-
|
|
1
|
+
.arc-v12-0-0-beta-24 .arc .arc-ComboBox-listboxContainer{animation:listbox-slide-in 0.2s ease-out;transform-origin:var(--radix-popover-content-transform-origin)}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-list{border:none;list-style:none;margin:0;max-height:400px;overflow-y:auto;padding:0}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-container{background-color:var(--textinput-colors-light-bg-default);border:var(--textinput-border-weight-s) solid var(--textinput-colors-light-border-default);border-radius:var(--textinput-border-radius-s);color:var(--textinput-colors-light-text-default);display:flex;margin-top:var(--textinput-gap-m);overflow:hidden}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;flex:1 1 auto;font:var(--sem-type-body-reg-m);height:var(--textinput-size-m);margin-bottom:0;padding:0 0 0 calc(var(--textinput-padding-m) - var(--textinput-border-weight-s))}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-container--cursor,.arc-v12-0-0-beta-24 .arc .arc-ComboBox-container--cursor .arc-ComboBox-input{cursor:pointer}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-inputWrapper{display:flex;flex:1 1 auto}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-input:focus{border:none;cursor:auto;outline:0}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-container[\:has\(\:focus-visible\,\%20\:active\)]{box-shadow:0 0 0 var(--focus-border-weight-s) var(--focus-colors-light-border-subtle);outline:var(--focus-border-weight-s) solid transparent}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-container[\:has\(\:focus-visible\,\:active\)]{box-shadow:0 0 0 var(--focus-border-weight-s) var(--focus-colors-light-border-subtle);outline:var(--focus-border-weight-s) solid transparent}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-container:has(:focus-visible,:active){box-shadow:0 0 0 var(--focus-border-weight-s) var(--focus-colors-light-border-subtle);outline:var(--focus-border-weight-s) solid transparent}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-inputIcon{align-items:center;display:flex;flex:0 0 auto;height:44px;justify-content:center;pointer-events:none;transition:0.2s ease-out transform;width:44px}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-inputIcon--expanded{transform:rotate(180deg)}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-listItem{align-items:center;cursor:pointer;display:flex;height:40px;line-height:1;padding:0 var(--sem-space-padding-60)}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-listItem--highlighted,.arc-v12-0-0-beta-24 .arc .arc-ComboBox-listItem:hover{background-color:var(--sem-color-bg-primary-light-minimal)}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-inputWrapper--multiSelect{flex-wrap:wrap}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-listItemText{flex:1 1 auto}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-listItemIcon{flex:0 1 auto;opacity:0;transition:0.2s ease-out opacity}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-listItemIcon--visible{opacity:1}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-tag{align-items:center;background:none;border-radius:var(--tag-border-radius-s);cursor:auto;display:flex;font:var(--sem-type-interface-semi-xs);height:24px;margin:8px 4px;outline:var(--tag-border-weight-s) solid var(--tag-colors-light-border-default-alt);padding:0 12px;white-space:nowrap}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-tagButton{background:none;border:none;cursor:pointer;margin:0 0 0 12px;outline:none;padding:0}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-tag[\:has\(\:focus-visible\)]{outline:2px solid var(--focus-colors-light-border-subtle)}.arc-v12-0-0-beta-24 .arc .arc-ComboBox-tag:has(:focus-visible){outline:2px solid var(--focus-colors-light-border-subtle)}@keyframes listbox-slide-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var ContentSwitcherList = require('../_shared/cjs/ContentSwitcherList-
|
|
5
|
-
|
|
6
|
-
require('../_shared/cjs/filter-attrs-eK6E_34o.cjs');
|
|
4
|
+
var ContentSwitcherList = require('../_shared/cjs/ContentSwitcherList-BgAW2IhJ.cjs');
|
|
5
|
+
require('../_shared/cjs/tslib.es6-CCZ3TN_7.cjs');
|
|
7
6
|
require('react');
|
|
8
7
|
require('../_shared/cjs/index-BCu-VH8y.cjs');
|
|
9
8
|
require('../_shared/cjs/index-CztwwwKE.cjs');
|
|
10
9
|
require('react-dom');
|
|
11
10
|
require('../_shared/cjs/index-DmvtEa22.cjs');
|
|
12
|
-
require('../_shared/cjs/
|
|
11
|
+
require('../_shared/cjs/filter-attrs-D19P2s1V.cjs');
|
|
12
|
+
require('../_shared/cjs/Text-jwsn80lQ.cjs');
|
|
13
13
|
require('../_shared/cjs/index-CTlXMLug.cjs');
|
|
14
|
-
require('../_shared/cjs/isSymbol-BGrHFUbV.cjs');
|
|
15
|
-
require('../_shared/cjs/Text-Cr5nmYmx.cjs');
|
|
16
14
|
require('../_shared/cjs/suffix-modifier-DLUGR-yG.cjs');
|
|
17
15
|
require('../_shared/cjs/index-DR8Rkav9.cjs');
|
|
18
|
-
require('../_shared/cjs/Surface-
|
|
16
|
+
require('../_shared/cjs/Surface-DIU5ciDT.cjs');
|
|
17
|
+
require('../_shared/cjs/debounce-uPMetQ6J.cjs');
|
|
18
|
+
require('../_shared/cjs/isSymbol-BGrHFUbV.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
exports.ContentSwitcher = ContentSwitcherList.ContentSwitcher;
|
|
23
23
|
exports.ContentSwitcherContent = ContentSwitcherList.ContentSwitcherContent;
|
|
24
24
|
exports.ContentSwitcherList = ContentSwitcherList.ContentSwitcherList;
|
|
25
|
-
exports.ContentSwitcherTab =
|
|
25
|
+
exports.ContentSwitcherTab = ContentSwitcherList.ContentSwitcherTab;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { C as ContentSwitcher,
|
|
3
|
-
|
|
4
|
-
import '../_shared/esm/filter-attrs-B6CM-NUr.mjs';
|
|
2
|
+
export { C as ContentSwitcher, b as ContentSwitcherContent, c as ContentSwitcherList, a as ContentSwitcherTab } from '../_shared/esm/ContentSwitcherList-i4m4nAzP.mjs';
|
|
3
|
+
import '../_shared/esm/tslib.es6-w7hdJ3oZ.mjs';
|
|
5
4
|
import 'react';
|
|
6
|
-
import '../_shared/esm/index-
|
|
5
|
+
import '../_shared/esm/index-BWkI4Dwz.mjs';
|
|
7
6
|
import '../_shared/esm/index-DXHprNQ6.mjs';
|
|
8
7
|
import 'react-dom';
|
|
9
8
|
import '../_shared/esm/index-6HtUz28p.mjs';
|
|
10
|
-
import '../_shared/esm/
|
|
9
|
+
import '../_shared/esm/filter-attrs-v_SweZXP.mjs';
|
|
10
|
+
import '../_shared/esm/Text-BAzOkkzN.mjs';
|
|
11
11
|
import '../_shared/esm/index-5C0-U8cc.mjs';
|
|
12
|
-
import '../_shared/esm/isSymbol-DgWNE2Tm.mjs';
|
|
13
|
-
import '../_shared/esm/Text-CBlnm5CT.mjs';
|
|
14
12
|
import '../_shared/esm/suffix-modifier-B_pO0UkF.mjs';
|
|
15
13
|
import '../_shared/esm/index-Spae4j7j.mjs';
|
|
16
|
-
import '../_shared/esm/Surface-
|
|
14
|
+
import '../_shared/esm/Surface-C69KVzkY.mjs';
|
|
15
|
+
import '../_shared/esm/debounce-D_Nx5go6.mjs';
|
|
16
|
+
import '../_shared/esm/isSymbol-DgWNE2Tm.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.arc-v12-0-0-beta-
|
|
1
|
+
.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherTab{align-items:center;background:var(--content-switcher-colors-light-bg-default);border:none;border-radius:var(--content-switcher-border-radius-pill);display:flex;height:48px;max-width:300px;padding:var(--content-switcher-padding-m) var(--content-switcher-padding-l);transition:background 0.3s ease;white-space:nowrap}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherTab>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherTab:hover{background:var(--content-switcher-colors-light-bg-hover);cursor:pointer}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherTab:focus-visible{outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:2px}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherTab[data-state="active"]{background:var(--content-switcher-colors-light-bg-default-alt);color:var(--content-switcher-colors-light-text-default-alt)}:root{--arc-content-switcher-height:48px;--arc-content-switcher-padding-s:10px;--arc-content-switcher-height-plus-padding:calc(var(--arc-content-switcher-height) + (var(--arc-content-switcher-padding-s) * 2))}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList{background:var(--content-switcher-colors-light-bg-default);border-radius:var(--sem-border-radius-xxl);box-shadow:var(--content-switcher-elevations-02,0 0 1px 0 rgba(0,0,0,0.25),0 4px 12px 0 rgba(0,0,0,0.1));margin-bottom:10px;overflow:scroll;-ms-overflow-style:none;position:relative;scrollbar-width:none;text-align:center;z-index:1}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList-wrapper--isInset .arc-ContentSwitcherList{margin-bottom:0}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList::-webkit-scrollbar{display:none}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList-overflowWrapper{height:calc(var(--arc-content-switcher-height) + (var(--content-switcher-padding-s) * 2));left:50%;pointer-events:none;position:absolute;top:0;transform:translateX(-50%);width:100%;z-index:2}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList-wrapper{display:flex;justify-content:center;margin:0 32px;position:relative}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList-inner{display:inline-flex;gap:var(--content-switcher-padding-s);padding:10px}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList--rightOverflow,.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList--leftOverflow{content:"";display:block;height:100%;pointer-events:none;position:absolute;top:0;width:96px}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList--rightOverflow{background:linear-gradient(90deg,rgba(255,255,255,0) 0.61%,#ffffff 75.15%);border-radius:0 var(--sem-border-radius-xxl) var(--sem-border-radius-xxl) 0;right:0}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList--leftOverflow{background:linear-gradient(270deg,rgba(255,255,255,0) 0.61%,#ffffff 75.15%);border-radius:var(--sem-border-radius-xxl) 0 0 var(--sem-border-radius-xxl);left:0}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherList-wrapper--isInset{margin-bottom:calc((var(--arc-content-switcher-height-plus-padding)/2) * -1)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherContent{animation:0.5s ease fade-in}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherContent[data-state="inactive"]{display:none}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherContent-wrapper{display:flex;justify-content:center}@keyframes fade-in{from{opacity:0}to{opacity:1}}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcher{margin:0 auto}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcher-root{position:relative}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var ContentSwitcherDropdown = require('../_shared/cjs/ContentSwitcherDropdown-
|
|
5
|
-
require('../_shared/cjs/
|
|
4
|
+
var ContentSwitcherDropdown = require('../_shared/cjs/ContentSwitcherDropdown-BtEnzdMw.cjs');
|
|
5
|
+
require('../_shared/cjs/tslib.es6-CCZ3TN_7.cjs');
|
|
6
6
|
require('react');
|
|
7
7
|
require('../_shared/cjs/index-CTlXMLug.cjs');
|
|
8
|
-
require('../_shared/cjs/index-
|
|
8
|
+
require('../_shared/cjs/index-CDVpHNP8.cjs');
|
|
9
9
|
require('react-dom');
|
|
10
|
-
require('../_shared/cjs/Combination-
|
|
10
|
+
require('../_shared/cjs/Combination-6m6aOXZq.cjs');
|
|
11
11
|
require('../_shared/cjs/index-DXNM3D1d.cjs');
|
|
12
12
|
require('react/jsx-runtime');
|
|
13
|
-
require('../_shared/cjs/index-
|
|
14
|
-
require('../_shared/cjs/index-
|
|
13
|
+
require('../_shared/cjs/index-CklPiHsS.cjs');
|
|
14
|
+
require('../_shared/cjs/index-KrMgv4q_.cjs');
|
|
15
15
|
require('../_shared/cjs/index-B11wQrRa.cjs');
|
|
16
|
-
require('../_shared/cjs/
|
|
16
|
+
require('../_shared/cjs/filter-attrs-D19P2s1V.cjs');
|
|
17
|
+
require('../_shared/cjs/ThemeIcon-Def4RZfK.cjs');
|
|
17
18
|
require('../_shared/cjs/suffix-modifier-DLUGR-yG.cjs');
|
|
18
19
|
require('../_shared/cjs/index-DR8Rkav9.cjs');
|
|
19
|
-
require('../_shared/cjs/Surface-
|
|
20
|
-
require('../_shared/cjs/VisuallyHidden-
|
|
20
|
+
require('../_shared/cjs/Surface-DIU5ciDT.cjs');
|
|
21
|
+
require('../_shared/cjs/VisuallyHidden-CQg3cOVK.cjs');
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { C as ContentSwitcherDropdown, a as ContentSwitcherDropdownContent } from '../_shared/esm/ContentSwitcherDropdown-
|
|
3
|
-
import '../_shared/esm/
|
|
2
|
+
export { C as ContentSwitcherDropdown, a as ContentSwitcherDropdownContent } from '../_shared/esm/ContentSwitcherDropdown-DgrN4Bdb.mjs';
|
|
3
|
+
import '../_shared/esm/tslib.es6-w7hdJ3oZ.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../_shared/esm/index-5C0-U8cc.mjs';
|
|
6
|
-
import '../_shared/esm/index-
|
|
6
|
+
import '../_shared/esm/index-vnVJe9rH.mjs';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import '../_shared/esm/Combination-
|
|
8
|
+
import '../_shared/esm/Combination-BQ4XBtF-.mjs';
|
|
9
9
|
import '../_shared/esm/index-Bz2JQq34.mjs';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
|
-
import '../_shared/esm/index-
|
|
12
|
-
import '../_shared/esm/index-
|
|
11
|
+
import '../_shared/esm/index-u47CK8Y0.mjs';
|
|
12
|
+
import '../_shared/esm/index-BFKdmv_g.mjs';
|
|
13
13
|
import '../_shared/esm/index-CWHcEz3_.mjs';
|
|
14
|
-
import '../_shared/esm/
|
|
14
|
+
import '../_shared/esm/filter-attrs-v_SweZXP.mjs';
|
|
15
|
+
import '../_shared/esm/ThemeIcon-B0SruPZC.mjs';
|
|
15
16
|
import '../_shared/esm/suffix-modifier-B_pO0UkF.mjs';
|
|
16
17
|
import '../_shared/esm/index-Spae4j7j.mjs';
|
|
17
|
-
import '../_shared/esm/Surface-
|
|
18
|
-
import '../_shared/esm/VisuallyHidden-
|
|
18
|
+
import '../_shared/esm/Surface-C69KVzkY.mjs';
|
|
19
|
+
import '../_shared/esm/VisuallyHidden-aSQ4RA1o.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.arc-v12-0-0-beta-
|
|
1
|
+
.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTrigger{align-items:center;background:var(--content-switcher-colors-light-bg-default-alt);border:none;border-radius:var(--content-switcher-border-radius-pill);color:var(--content-switcher-colors-light-text-default-alt);display:flex;font:var(--sem-type-body-reg-m);justify-content:space-between;padding:var(--content-switcher-padding-m) var(--content-switcher-padding-l);width:100%;z-index:1}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTrigger>span:first-child,.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectItem>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTriggerIcon{color:var(--content-switcher-colors-light-text-default-alt);margin-left:var(--content-switcher-gap-l)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTrigger:hover{background:var(--content-switcher-colors-light-bg-selected-hover);cursor:pointer}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTrigger[aria-expanded="true"]{background:var(--content-switcher-colors-light-bg-default);color:var(--content-switcher-colors-light-text-hover);outline:var(--content-switcher-border-weight-s) solid var(--content-switcher-colors-light-border-default);outline-offset:calc(var(--content-switcher-border-weight-s) * -1)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTrigger[aria-expanded="true"] .arc-ContentSwitcherDropdown-selectTriggerIcon{color:var(--content-switcher-colors-light-text-hover)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTrigger:focus-visible{outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:var(--focus-border-weight-s)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTriggerWrapper{align-items:center;background:var(--content-switcher-colors-light-bg-default);border-radius:var(--content-switcher-border-radius-pill);box-shadow:var(--elevation-02);display:block;margin-bottom:var(--content-switcher-gap-l);padding:10px;position:relative;width:-moz-fit-content;width:fit-content;z-index:1}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTriggerWrapper--isFluid{width:100%}@media (min-width:636px){.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTriggerWrapper--isInset{margin:0 32px;width:auto}}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTriggerWrapper--isInset{margin-bottom:calc((var(--arc-content-switcher-height-plus-padding)/2) * -1)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectTrigger[data-state="open"] .arc-ContentSwitcherDropdown-selectTriggerIcon{transform:rotate(180deg)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectContent{background:var(--content-switcher-colors-light-bg-default);border-radius:var(--content-switcher-border-radius-xl);box-shadow:var(--elevation-02);margin:var(--content-switcher-gap-l) 0 var(--content-switcher-gap-l) calc(var(--content-switcher-gap-l) * -1);padding:var(--content-switcher-padding-xs);position:relative;width:calc(var(--radix-select-trigger-width) + (var(--content-switcher-padding-xs) * 2))}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectItem{align-items:center;border-radius:var(--content-switcher-border-radius-pill);display:flex;justify-content:space-between;margin-bottom:var(--content-switcher-gap-l);padding:var(--content-switcher-padding-m) var(--content-switcher-padding-l)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectItem[data-highlighted]{background:var(--content-switcher-colors-light-bg-hover);cursor:pointer;outline:none}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectItem[data-state="checked"]{background:var(--content-switcher-colors-light-bg-active)}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-selectItem:last-of-type{margin-bottom:0}.arc-v12-0-0-beta-24 .arc .arc-ContentSwitcherDropdown-content[hidden]{display:none}
|