@arc-ui/components 12.0.0-alpha.0 → 12.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.cjs.js +11 -15
- package/dist/Alert/Alert.esm.js +9 -13
- package/dist/Align/Align.cjs.js +6 -6
- package/dist/Align/Align.esm.js +2 -2
- package/dist/AppButton/AppButton.cjs.js +73 -0
- package/dist/AppButton/AppButton.esm.js +65 -0
- package/dist/AppButton/package.json +7 -0
- package/dist/Avatar/Avatar.cjs.js +18 -0
- package/dist/Avatar/Avatar.esm.js +10 -0
- package/dist/Avatar/package.json +7 -0
- package/dist/AvatarGroup/AvatarGroup.cjs.js +38 -0
- package/dist/AvatarGroup/AvatarGroup.esm.js +30 -0
- package/dist/AvatarGroup/package.json +7 -0
- package/dist/Badge/Badge.cjs.js +6 -21
- package/dist/Badge/Badge.esm.js +6 -21
- package/dist/Box/Box.cjs.js +6 -7
- package/dist/Box/Box.esm.js +3 -4
- package/dist/BrandLogo/BrandLogo.cjs.js +4 -4
- package/dist/BrandLogo/BrandLogo.esm.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +7 -6
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +7 -6
- package/dist/Button/Button.cjs.js +6 -6
- package/dist/Button/Button.esm.js +6 -6
- package/dist/ButtonV2/ButtonV2.cjs.js +16 -0
- package/dist/ButtonV2/ButtonV2.esm.js +8 -0
- package/dist/ButtonV2/package.json +7 -0
- package/dist/Calendar/Calendar.cjs.js +22 -0
- package/dist/Calendar/Calendar.esm.js +14 -0
- package/dist/Calendar/package.json +7 -0
- package/dist/Checkbox/Checkbox.cjs.js +9 -8
- package/dist/Checkbox/Checkbox.esm.js +9 -8
- package/dist/Columns/Columns.cjs.js +3 -3
- package/dist/Columns/Columns.esm.js +3 -3
- package/dist/DatePicker/DatePicker.cjs.js +40 -0
- package/dist/DatePicker/DatePicker.esm.js +27 -0
- package/dist/DatePicker/package.json +7 -0
- package/dist/Disclosure/Disclosure.cjs.js +15 -12
- package/dist/Disclosure/Disclosure.esm.js +12 -9
- package/dist/DisclosureMini/DisclosureMini.cjs.js +6 -6
- package/dist/DisclosureMini/DisclosureMini.esm.js +6 -6
- package/dist/Elevation/Elevation.cjs.js +5 -5
- package/dist/Elevation/Elevation.esm.js +1 -1
- package/dist/Filter/Filter.cjs.js +4 -3
- package/dist/Filter/Filter.esm.js +4 -3
- package/dist/FormControl/FormControl.cjs.js +8 -7
- package/dist/FormControl/FormControl.esm.js +8 -7
- package/dist/Grid/Grid.cjs.js +13 -0
- package/dist/Grid/Grid.esm.js +5 -0
- package/dist/Grid/package.json +7 -0
- package/dist/Group/Group.cjs.js +3 -3
- package/dist/Group/Group.esm.js +3 -3
- package/dist/Heading/Heading.cjs.js +4 -4
- package/dist/Heading/Heading.esm.js +4 -4
- package/dist/HeroButton/HeroButton.cjs.js +16 -0
- package/dist/HeroButton/HeroButton.esm.js +8 -0
- package/dist/HeroButton/package.json +7 -0
- package/dist/Hidden/Hidden.cjs.js +24 -0
- package/dist/Hidden/Hidden.esm.js +16 -0
- package/dist/Hidden/package.json +7 -0
- package/dist/Icon/Icon.cjs.js +4 -4
- package/dist/Icon/Icon.esm.js +4 -4
- package/dist/Image/Image.cjs.js +3 -3
- package/dist/Image/Image.esm.js +3 -3
- package/dist/ImpactCard/ImpactCard.cjs.js +44 -0
- package/dist/ImpactCard/ImpactCard.esm.js +36 -0
- package/dist/ImpactCard/package.json +7 -0
- package/dist/InformationCard/InformationCard.cjs.js +74 -0
- package/dist/InformationCard/InformationCard.esm.js +66 -0
- package/dist/InformationCard/package.json +7 -0
- package/dist/Link/Link.cjs.js +76 -0
- package/dist/Link/Link.esm.js +68 -0
- package/dist/Link/package.json +7 -0
- package/dist/Markup/Markup.cjs.js +6 -6
- package/dist/Markup/Markup.esm.js +2 -2
- package/dist/MediaCard/MediaCard.cjs.js +26 -0
- package/dist/MediaCard/MediaCard.esm.js +18 -0
- package/dist/MediaCard/package.json +7 -0
- package/dist/Modal/Modal.cjs.js +1478 -527
- package/dist/Modal/Modal.esm.js +1455 -523
- package/dist/Pagination/Pagination.cjs.js +14 -17
- package/dist/Pagination/Pagination.esm.js +7 -10
- package/dist/PaginationSimple/PaginationSimple.cjs.js +24 -27
- package/dist/PaginationSimple/PaginationSimple.esm.js +22 -25
- package/dist/Poster/Poster.cjs.js +5 -5
- package/dist/Poster/Poster.esm.js +5 -5
- package/dist/ProgressBar/ProgressBar.cjs.js +21 -18
- package/dist/ProgressBar/ProgressBar.esm.js +17 -14
- package/dist/ProgressStepper/ProgressStepper.cjs.js +6 -7
- package/dist/ProgressStepper/ProgressStepper.esm.js +6 -7
- package/dist/RadioGroup/RadioGroup.cjs.js +10 -8
- package/dist/RadioGroup/RadioGroup.esm.js +9 -8
- package/dist/Rule/Rule.cjs.js +14 -4
- package/dist/Rule/Rule.esm.js +15 -5
- package/dist/ScrollToTop/ScrollToTop.cjs.js +12 -11
- package/dist/ScrollToTop/ScrollToTop.esm.js +7 -6
- package/dist/Section/Section.cjs.js +2 -2
- package/dist/Section/Section.esm.js +2 -2
- package/dist/Select/Select.cjs.js +358 -931
- package/dist/Select/Select.esm.js +304 -858
- package/dist/SiteFooter/SiteFooter.cjs.js +10 -33
- package/dist/SiteFooter/SiteFooter.esm.js +10 -33
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +25 -0
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +17 -0
- package/dist/SiteHeaderV2/package.json +7 -0
- package/dist/SkipLink/SkipLink.cjs.js +24 -0
- package/dist/SkipLink/SkipLink.esm.js +16 -0
- package/dist/SkipLink/package.json +7 -0
- package/dist/Surface/Surface.cjs.js +2 -2
- package/dist/Surface/Surface.esm.js +2 -2
- package/dist/Switch/Switch.cjs.js +28 -73
- package/dist/Switch/Switch.esm.js +16 -61
- package/dist/Tabs/Tabs.cjs.js +11 -10
- package/dist/Tabs/Tabs.esm.js +11 -10
- package/dist/Tag/Tag.cjs.js +9 -43
- package/dist/Tag/Tag.esm.js +8 -42
- package/dist/Text/Text.cjs.js +4 -4
- package/dist/Text/Text.esm.js +4 -4
- package/dist/TextArea/TextArea.cjs.js +66 -46
- package/dist/TextArea/TextArea.esm.js +64 -44
- package/dist/TextInput/TextInput.cjs.js +10 -9
- package/dist/TextInput/TextInput.esm.js +10 -9
- package/dist/Theme/Theme.cjs.js +15 -4
- package/dist/Theme/Theme.esm.js +15 -4
- package/dist/ThemeIcon/ThemeIcon.cjs.js +14 -0
- package/dist/ThemeIcon/ThemeIcon.esm.js +6 -0
- package/dist/ThemeIcon/package.json +7 -0
- package/dist/Toast/Toast.cjs.js +10 -9
- package/dist/Toast/Toast.esm.js +10 -9
- package/dist/Truncate/Truncate.cjs.js +3 -3
- package/dist/Truncate/Truncate.esm.js +1 -1
- package/dist/TypographyCard/TypographyCard.cjs.js +41 -0
- package/dist/TypographyCard/TypographyCard.esm.js +33 -0
- package/dist/TypographyCard/package.json +7 -0
- package/dist/UniversalHeader/UniversalHeader.cjs.js +3 -3
- package/dist/UniversalHeader/UniversalHeader.esm.js +3 -3
- package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
- package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
- package/dist/VideoPlayer/VideoPlayer.cjs.js +3013 -0
- package/dist/VideoPlayer/VideoPlayer.esm.js +3005 -0
- package/dist/VideoPlayer/package.json +7 -0
- package/dist/Visible/Visible.cjs.js +24 -0
- package/dist/Visible/Visible.esm.js +16 -0
- package/dist/Visible/package.json +7 -0
- package/dist/VisuallyHidden/VisuallyHidden.cjs.js +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.esm.js +1 -1
- package/dist/_shared/cjs/ArcIconEclipse.esm-ac777a76.js +28 -0
- package/dist/_shared/cjs/Avatar-fc0d9b8b.js +49 -0
- package/dist/_shared/cjs/{BrandLogo-aea340c8.js → BrandLogo-1d2ca2c7.js} +7 -7
- package/dist/_shared/cjs/{Breadcrumbs-f3385e2e.js → Breadcrumbs-7af0af2c.js} +16 -16
- package/dist/_shared/cjs/BtIconArrowRight.esm-5989f2ca.js +38 -0
- package/dist/_shared/cjs/BtIconChevronRightMid.esm-3e8d18a9.js +28 -0
- package/dist/_shared/cjs/BtIconPlayFill.esm-b8997cfc.js +30 -0
- package/dist/_shared/cjs/{Button-5c958ce9.js → Button-7d891a89.js} +12 -12
- package/dist/_shared/cjs/ButtonV2-b2db3f46.js +48 -0
- package/dist/_shared/cjs/Calendar-780bb071.js +1927 -0
- package/dist/_shared/cjs/CardFooter-5414bc4f.js +79 -0
- package/dist/_shared/cjs/{Checkbox-5f14bb0d.js → Checkbox-0e423653.js} +18 -14
- package/dist/_shared/cjs/{Columns-ae4f8cef.js → Columns-1224bdff.js} +9 -16
- package/dist/_shared/cjs/Combination-3a639f6d.js +2974 -0
- package/dist/_shared/cjs/ConditionalWrapper-be3b2625.js +14 -0
- package/dist/_shared/cjs/DatePicker-e27ea988.js +550 -0
- package/dist/_shared/cjs/{DisclosureMini-145105a4.js → DisclosureMini-c01ecce0.js} +12 -15
- package/dist/_shared/cjs/{Filter-1bde635c.js → Filter-3b897d92.js} +32 -24
- package/dist/_shared/cjs/{FormControl-30f2330f.js → FormControl-88d48f42.js} +32 -17
- package/dist/_shared/cjs/Grid-9e91fb3d.js +46 -0
- package/dist/_shared/cjs/{Group-0429741a.js → Group-3d5ea240.js} +9 -16
- package/dist/_shared/cjs/{Heading-27cba320.js → Heading-fb63844f.js} +7 -7
- package/dist/_shared/cjs/HeroButton-0586a7c4.js +126 -0
- package/dist/_shared/cjs/{Icon-a47b6c0a.js → Icon-0ec0c1fb.js} +12 -8
- package/dist/_shared/cjs/Image-e9a5a326.js +56 -0
- package/dist/_shared/cjs/MediaCard-e1648705.js +65 -0
- package/dist/_shared/cjs/{Poster-499b78da.js → Poster-b7242b37.js} +14 -14
- package/dist/_shared/cjs/Preview-0bf3f6e8.js +167 -0
- package/dist/_shared/cjs/ProgressStepper-fb8405c2.js +121 -0
- package/dist/_shared/cjs/RadioGroup-a4186267.js +85 -0
- package/dist/_shared/cjs/{Section-59804166.js → Section-ecfc659b.js} +5 -5
- package/dist/_shared/cjs/{SiteFooter-0638c27c.js → SiteFooter-b4247527.js} +13 -12
- package/dist/_shared/cjs/SiteHeaderV2-c2d651bc.js +689 -0
- package/dist/_shared/cjs/{Surface-038db6e1.js → Surface-8599dbe4.js} +23 -23
- package/dist/_shared/cjs/{Tabs-ade6d6b6.js → Tabs-75c34f43.js} +35 -39
- package/dist/_shared/cjs/Tag-452048f6.js +44 -0
- package/dist/_shared/cjs/{Text-606ca3a2.js → Text-1c1110a4.js} +7 -7
- package/dist/_shared/cjs/TextInput-762e2309.js +103 -0
- package/dist/_shared/cjs/{ThemeIcon-9534f091.js → ThemeIcon-ee814862.js} +8 -8
- package/dist/_shared/cjs/{Toast-6d4021d7.js → Toast-d06a89e0.js} +283 -44
- package/dist/_shared/cjs/UniversalHeader-f6d9c63a.js +29 -0
- package/dist/_shared/cjs/{VerticalSpace-dc53bb70.js → VerticalSpace-e128ec68.js} +5 -5
- package/dist/_shared/cjs/{VisuallyHidden-e2c8b291.js → VisuallyHidden-b0de4c7b.js} +1 -1
- package/dist/_shared/cjs/_commonjsHelpers-56412ec5.js +21 -0
- package/dist/_shared/cjs/{index-38d3848e.js → component-df82bc05.js} +154 -435
- package/dist/_shared/cjs/{debounce-123468fb.js → debounce-a74c28cf.js} +2 -2
- package/dist/_shared/cjs/index-039a9d35.js +23 -0
- package/dist/_shared/cjs/{index-23b4f49f.js → index-0c6319ec.js} +1 -1
- package/dist/_shared/cjs/index-28447df0.js +23 -0
- package/dist/_shared/cjs/index-3d629205.js +26 -0
- package/dist/_shared/cjs/{index.module-7d7228b3.js → index-3dd54df1.js} +47 -49
- package/dist/_shared/cjs/index-41b09e85.js +53 -0
- package/dist/_shared/cjs/{index-d75774a9.js → index-7aa7f96a.js} +1 -1
- package/dist/_shared/cjs/index-7e31a45b.js +2206 -0
- package/dist/_shared/cjs/index-996dec94.js +131 -0
- package/dist/_shared/cjs/index-dcfdd5da.js +11 -0
- package/dist/_shared/cjs/{filter-data-attrs-1c9a530c.js → index-df60851b.js} +17 -57
- package/dist/_shared/cjs/index.es-8b018b0d.js +13 -0
- package/dist/_shared/cjs/{suffix-modifier-64dcd338.js → suffix-modifier-c8a34402.js} +2 -2
- package/dist/_shared/cjs/{index.es-77def0c9.js → use-media-query-d34c83b9.js} +0 -9
- package/dist/_shared/esm/ArcIconEclipse.esm-bb48b82a.js +22 -0
- package/dist/_shared/esm/Avatar-38cc0595.js +43 -0
- package/dist/_shared/esm/{BrandLogo-1af78f76.js → BrandLogo-7ed8aeda.js} +3 -3
- package/dist/_shared/esm/{Breadcrumbs-c4b65cff.js → Breadcrumbs-9078b68e.js} +8 -8
- package/dist/_shared/esm/BtIconArrowRight.esm-6a17d0ce.js +31 -0
- package/dist/_shared/esm/BtIconChevronRightMid.esm-4764708f.js +22 -0
- package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +24 -0
- package/dist/_shared/esm/{Button-c3348ed8.js → Button-dde2b46a.js} +6 -6
- package/dist/_shared/esm/ButtonV2-49cd0615.js +42 -0
- package/dist/_shared/esm/Calendar-f81052f4.js +1918 -0
- package/dist/_shared/esm/CardFooter-c79fb2db.js +73 -0
- package/dist/_shared/esm/{Checkbox-2a623386.js → Checkbox-0baca464.js} +14 -10
- package/dist/_shared/esm/{Columns-d96b7425.js → Columns-6a8f6fbb.js} +3 -10
- package/dist/_shared/esm/Combination-ae3a3f08.js +2942 -0
- package/dist/_shared/esm/ConditionalWrapper-59be8f35.js +8 -0
- package/dist/_shared/esm/DatePicker-2260f260.js +539 -0
- package/dist/_shared/esm/{DisclosureMini-bf95a9db.js → DisclosureMini-38f4c459.js} +8 -11
- package/dist/_shared/esm/{Filter-58a42358.js → Filter-49dcf5ce.js} +24 -16
- package/dist/_shared/esm/{FormControl-433228f5.js → FormControl-d873f7fa.js} +29 -14
- package/dist/_shared/esm/Grid-fb9fc522.js +40 -0
- package/dist/_shared/esm/{Group-73fdb896.js → Group-66196f07.js} +3 -10
- package/dist/_shared/esm/{Heading-d16e0e53.js → Heading-906c7c7c.js} +3 -3
- package/dist/_shared/esm/HeroButton-7ea692bf.js +120 -0
- package/dist/_shared/esm/{Icon-9ecaaeab.js → Icon-512f834f.js} +9 -5
- package/dist/_shared/esm/{Image-12fbd327.js → Image-57d08939.js} +15 -5
- package/dist/_shared/esm/MediaCard-01250268.js +59 -0
- package/dist/_shared/esm/{Poster-699dc89b.js → Poster-e05a8b45.js} +6 -6
- package/dist/_shared/esm/Preview-43b2a75d.js +161 -0
- package/dist/_shared/esm/ProgressStepper-189ed0f9.js +115 -0
- package/dist/_shared/esm/RadioGroup-8ff17cbb.js +78 -0
- package/dist/_shared/esm/{Section-73781b56.js → Section-1acbc06a.js} +1 -1
- package/dist/_shared/esm/{SiteFooter-d21da7ab.js → SiteFooter-ef6f0cdc.js} +9 -8
- package/dist/_shared/esm/SiteHeaderV2-a041b889.js +683 -0
- package/dist/_shared/esm/{Surface-0ca6817d.js → Surface-71d21a9e.js} +17 -17
- package/dist/_shared/esm/{Tabs-39d24a7d.js → Tabs-21ac7dfe.js} +11 -15
- package/dist/_shared/esm/Tag-2513c185.js +38 -0
- package/dist/_shared/esm/{Text-14f586ac.js → Text-a46fb76b.js} +3 -3
- package/dist/_shared/esm/TextInput-94c7b1a4.js +96 -0
- package/dist/_shared/esm/{ThemeIcon-eab5a4d0.js → ThemeIcon-c2dc41a6.js} +3 -3
- package/dist/_shared/esm/{Toast-dce2d01e.js → Toast-de6ca2f3.js} +261 -23
- package/dist/_shared/esm/{UniversalHeader-b4c1577c.js → UniversalHeader-456ad60c.js} +8 -13
- package/dist/_shared/esm/{VerticalSpace-43cd9138.js → VerticalSpace-b07cd8e6.js} +1 -1
- package/dist/_shared/esm/{VisuallyHidden-b9eebf71.js → VisuallyHidden-06692fd3.js} +1 -1
- package/dist/_shared/esm/_commonjsHelpers-0109d574.js +18 -0
- package/dist/_shared/esm/{index-ffd720d0.js → component-d0a555cf.js} +144 -432
- package/dist/_shared/esm/{debounce-6fed6b84.js → debounce-c8e41002.js} +1 -1
- package/dist/_shared/esm/{filter-data-attrs-ea8f4ed4.js → index-288c66b5.js} +17 -55
- package/dist/_shared/esm/index-4e58de24.js +51 -0
- package/dist/_shared/esm/index-5113ed53.js +24 -0
- package/dist/_shared/esm/index-6028d797.js +21 -0
- package/dist/_shared/esm/index-605031ca.js +2197 -0
- package/dist/_shared/esm/index-69089474.js +21 -0
- package/dist/_shared/esm/{index-3147c5b0.js → index-7740883c.js} +1 -1
- package/dist/_shared/esm/index-a624de47.js +9 -0
- package/dist/_shared/esm/{index.module-50b2c98a.js → index-cace3545.js} +43 -45
- package/dist/_shared/esm/{index-65264b4e.js → index-f97466e9.js} +1 -1
- package/dist/_shared/esm/index-fa93ec97.js +129 -0
- package/dist/_shared/esm/index.es-3139cf9e.js +9 -0
- package/dist/_shared/esm/{suffix-modifier-3d548e45.js → suffix-modifier-1ce05abe.js} +2 -2
- package/dist/_shared/esm/{index.es-00cb3bcb.js → use-media-query-d3622da8.js} +1 -8
- package/dist/index.es.js +18330 -38186
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +18317 -38162
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -38
- package/dist/types/components/Alert/Alert.d.ts +1 -1
- package/dist/types/components/AppButton/AppButton.d.ts +9 -0
- package/dist/types/components/AppButton/icons/AppStore.d.ts +2 -0
- package/dist/types/components/AppButton/icons/GooglePlay.d.ts +2 -0
- package/dist/types/components/AppButton/index.d.ts +1 -0
- package/dist/types/components/Avatar/Avatar.d.ts +14 -0
- package/dist/types/components/Avatar/components/AvatarContent/AvatarContent.d.ts +9 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Avatar/types/avatar-icon-size.d.ts +1 -0
- package/dist/types/components/Avatar/types/avatar-image.d.ts +2 -0
- package/dist/types/components/Avatar/types/avatar-size.d.ts +1 -0
- package/dist/types/components/Avatar/types/avatar-text-size.d.ts +2 -0
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +14 -0
- package/dist/types/components/AvatarGroup/index.d.ts +1 -0
- package/dist/types/components/AvatarGroup/types/group-avatar.d.ts +2 -0
- package/dist/types/components/AvatarGroup/utils/get-avatars.d.ts +2 -0
- package/dist/types/components/Badge/Badge.d.ts +1 -9
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/ButtonV2/ButtonV2.d.ts +79 -0
- package/dist/types/components/ButtonV2/index.d.ts +1 -0
- package/dist/types/components/Calendar/Calendar.d.ts +50 -0
- package/dist/types/components/Calendar/Calendar.provider.d.ts +21 -0
- package/dist/types/components/Calendar/components/CalendarDateSelect/CalendarDateSelect.d.ts +15 -0
- package/dist/types/components/Calendar/components/CalendarDateSelect/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarDayGrid/CalendarDayGrid.d.ts +6 -0
- package/dist/types/components/Calendar/components/CalendarDayGrid/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarDayNumber/CalendarDayNumber.d.ts +8 -0
- package/dist/types/components/Calendar/components/CalendarDayNumber/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarDoubleMonthView/CalendarDoubleMonthView.d.ts +9 -0
- package/dist/types/components/Calendar/components/CalendarDoubleMonthView/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarFooter/CalendarFooter.d.ts +6 -0
- package/dist/types/components/Calendar/components/CalendarFooter/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarMonthView/CalendarMonthView.d.ts +9 -0
- package/dist/types/components/Calendar/components/CalendarMonthView/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarMonthYearView/CalendarMonthYearView.d.ts +11 -0
- package/dist/types/components/Calendar/components/CalendarMonthYearView/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarNavButton/CalendarNavButton.d.ts +10 -0
- package/dist/types/components/Calendar/components/CalendarNavButton/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/CalendarWrapper/CalendarWrapper.d.ts +5 -0
- package/dist/types/components/Calendar/components/CalendarWrapper/index.d.ts +1 -0
- package/dist/types/components/Calendar/components/index.d.ts +6 -0
- package/dist/types/components/Calendar/constants/day-names.d.ts +5 -0
- package/dist/types/components/Calendar/constants/index.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/contains-date.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/contains-date.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/date-without-time.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/date-without-time.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-calendar-type.d.ts +2 -0
- package/dist/types/components/Calendar/helpers/get-calendar-type.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-dates-in-month.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-dates-in-month.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-double-month-display-range.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-double-month-display-range.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-focus-date.d.ts +5 -0
- package/dist/types/components/Calendar/helpers/get-focus-date.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-highlighted-range.d.ts +6 -0
- package/dist/types/components/Calendar/helpers/get-highlighted-range.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/get-keydown-date.d.ts +6 -0
- package/dist/types/components/Calendar/helpers/get-keydown-date.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/index.d.ts +13 -0
- package/dist/types/components/Calendar/helpers/is-day.d.ts +2 -0
- package/dist/types/components/Calendar/helpers/is-day.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/is-disabled-date.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/is-disabled-date.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/is-month-after-max-date.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/is-month-after-max-date.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/is-month-before-min-date.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/is-month-before-min-date.test.d.ts +1 -0
- package/dist/types/components/Calendar/helpers/process-selected-range.d.ts +9 -0
- package/dist/types/components/Calendar/helpers/process-selected-range.test.d.ts +1 -0
- package/dist/types/components/Calendar/index.d.ts +2 -0
- package/dist/types/components/Calendar/state/handlers/calendar-keydown-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/day-grid-leave-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/day-number-select-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/default-handler.d.ts +2 -0
- package/dist/types/components/Calendar/state/handlers/dropdown-change-month-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/dropdown-change-year-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/highlight-range-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/index.d.ts +12 -0
- package/dist/types/components/Calendar/state/handlers/range-select-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/show-next-double-month-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/show-next-month-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/show-previous-double-month-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/handlers/show-previous-month-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/index.d.ts +2 -0
- package/dist/types/components/Calendar/state/reducer.d.ts +3 -0
- package/dist/types/components/Calendar/state/reducer.test.d.ts +1 -0
- package/dist/types/components/Calendar/state/types/actions.d.ts +81 -0
- package/dist/types/components/Calendar/state/types/state-handler.d.ts +3 -0
- package/dist/types/components/Calendar/state/types/state.d.ts +5 -0
- package/dist/types/components/Calendar/types/calendar-type.d.ts +1 -0
- package/dist/types/components/Calendar/types/date-select-value.d.ts +2 -0
- package/dist/types/components/Calendar/types/index.d.ts +6 -0
- package/dist/types/components/Calendar/types/key-names.d.ts +13 -0
- package/dist/types/components/Calendar/types/range-selection.d.ts +10 -0
- package/dist/types/components/Calendar/types/selection-type.d.ts +1 -0
- package/dist/types/components/Calendar/types/week-days.d.ts +18 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +7 -4
- package/dist/types/components/DatePicker/DatePicker.d.ts +20 -0
- package/dist/types/components/DatePicker/constants/date-format.d.ts +1 -0
- package/dist/types/components/DatePicker/constants/index.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.test.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.test.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/format-date.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/format-date.test.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/index.d.ts +8 -0
- package/dist/types/components/DatePicker/helpers/is-date-valid.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/is-date-valid.test.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/is-disabled-date.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/is-disabled-date.test.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/is-range-valid.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/is-range-valid.test.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/parse-date-string.d.ts +5 -0
- package/dist/types/components/DatePicker/helpers/parse-date-string.test.d.ts +1 -0
- package/dist/types/components/DatePicker/helpers/parse-range-string.d.ts +14 -0
- package/dist/types/components/DatePicker/helpers/parse-range-string.test.d.ts +1 -0
- package/dist/types/components/DatePicker/index.d.ts +6 -0
- package/dist/types/components/Disclosure/Disclosure.d.ts +1 -2
- package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +1 -2
- package/dist/types/components/Filter/Filter.d.ts +1 -1
- package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +4 -0
- package/dist/types/components/FormControl/FormControl.d.ts +5 -1
- package/dist/types/components/Grid/Grid.constants.d.ts +1 -0
- package/dist/types/components/Grid/Grid.d.ts +28 -0
- package/dist/types/components/Grid/Grid.types.d.ts +10 -0
- package/dist/types/components/Grid/components/Col/Col.d.ts +10 -0
- package/dist/types/components/Grid/components/Col/index.d.ts +1 -0
- package/dist/types/components/Grid/components/Row/Row.d.ts +10 -0
- package/dist/types/components/Grid/components/Row/index.d.ts +1 -0
- package/dist/types/components/Grid/index.d.ts +2 -0
- package/dist/types/components/HeroButton/HeroButton.d.ts +66 -0
- package/dist/types/components/HeroButton/index.d.ts +1 -0
- package/dist/types/components/Hidden/Hidden.d.ts +11 -0
- package/dist/types/components/Hidden/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +4 -0
- package/dist/types/components/Image/Image.d.ts +4 -0
- package/dist/types/components/ImpactCard/ImpactCard.d.ts +58 -0
- package/dist/types/components/ImpactCard/index.d.ts +1 -0
- package/dist/types/components/InformationCard/InformationCard.d.ts +62 -0
- package/dist/types/components/InformationCard/index.d.ts +1 -0
- package/dist/types/components/Link/Link.d.ts +52 -0
- package/dist/types/components/Link/index.d.ts +1 -0
- package/dist/types/components/MediaCard/MediaCard.d.ts +27 -28
- package/dist/types/components/MediaCard/types/index.d.ts +2 -0
- package/dist/types/components/MediaCard/types/media-card-image.d.ts +4 -0
- package/dist/types/components/MediaCard/types/media-card-video.d.ts +4 -0
- package/dist/types/components/Modal/Modal.d.ts +3 -3
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +12 -4
- package/dist/types/components/Poster/Poster.d.ts +1 -1
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +2 -2
- package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +3 -7
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Complete.d.ts +2 -0
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Current.d.ts +2 -0
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Error.d.ts +2 -0
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Todo.d.ts +2 -0
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Warning.d.ts +2 -0
- package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +17 -23
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +36 -0
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +11 -3
- package/dist/types/components/RadioGroup/context.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/Rule/Rule.d.ts +2 -1
- package/dist/types/components/Select/Select.d.ts +53 -0
- package/dist/types/components/SiteFooter/index.d.ts +0 -1
- package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +82 -0
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/BackButton/BackButton.d.ts +1 -0
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Column/Column.d.ts +1 -1
- package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/HorizontalPanel.d.ts +13 -0
- package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/index.d.ts +1 -0
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/ItemGroup/ItemGroup.d.ts +1 -0
- package/dist/types/components/SiteHeaderV2/components/ItemGroup/index.d.ts +1 -0
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/NavItem/NavItem.d.ts +5 -6
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/NavItem/NavItemWithSubNav.d.ts +13 -4
- package/dist/types/components/SiteHeaderV2/components/NavItem/index.d.ts +2 -0
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/NodeItem/NodeItem.d.ts +1 -1
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Panel/Panel.d.ts +8 -2
- package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/SubNavItem/SubNavItem.d.ts +5 -7
- package/dist/types/components/SiteHeaderV2/components/SubNavItem/index.d.ts +1 -0
- package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +2 -0
- package/dist/types/components/SiteHeaderV2/components/VerticalDivider/index.d.ts +1 -0
- package/dist/types/components/SiteHeaderV2/index.d.ts +1 -0
- package/dist/types/components/SkipLink/SkipLink.d.ts +12 -0
- package/dist/types/components/SkipLink/SkipLinkItem/SkipLinkItem.d.ts +16 -0
- package/dist/types/components/SkipLink/index.d.ts +1 -0
- package/dist/types/components/Surface/Surface.d.ts +3 -3
- package/dist/types/components/Switch/Switch.d.ts +2 -2
- package/dist/types/components/Tabs/Tabs.d.ts +1 -0
- package/dist/types/components/Tag/Tag.d.ts +5 -1
- package/dist/types/components/TextArea/TextArea.d.ts +17 -0
- package/dist/types/components/TextInput/TextInput.d.ts +46 -6
- package/dist/types/components/Theme/Theme.d.ts +11 -3
- package/dist/types/components/Theme/index.d.ts +1 -1
- package/dist/types/components/ThemeIcon/icon-names.d.ts +1 -1
- package/dist/types/components/Toast/Toast.d.ts +1 -1
- package/dist/types/components/TypographyCard/TypographyCard.d.ts +58 -0
- package/dist/types/components/TypographyCard/index.d.ts +1 -0
- package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +4 -0
- package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +18 -0
- package/dist/types/components/VideoPlayer/index.d.ts +1 -0
- package/dist/types/components/Visible/Visible.d.ts +11 -0
- package/dist/types/components/Visible/index.d.ts +1 -0
- package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/components/index.d.ts +17 -5
- package/dist/types/helpers/get-theme-img.d.ts +6 -0
- package/dist/types/helpers/index.d.ts +1 -0
- package/dist/types/hooks/index.d.ts +2 -4
- package/dist/types/hooks/private/index.d.ts +5 -0
- package/dist/types/hooks/private/use-aria-describedby/index.d.ts +1 -0
- package/dist/types/hooks/private/use-interaction-mode/index.d.ts +1 -0
- package/dist/types/hooks/private/use-numeric-input/index.d.ts +1 -0
- package/dist/types/hooks/{use-numeric-input.d.ts → private/use-numeric-input/use-numeric-input.d.ts} +3 -3
- package/dist/types/hooks/private/use-pagination/index.d.ts +1 -0
- package/dist/types/hooks/private/use-theme-element/index.d.ts +1 -0
- package/dist/types/hooks/public/index.d.ts +1 -0
- package/dist/types/hooks/public/use-media-query/index.d.ts +1 -0
- package/dist/types/hooks/{use-media-query.d.ts → public/use-media-query/use-media-query.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/private-components/CardFooter/CardFooter.d.ts +11 -0
- package/dist/types/private-components/CardFooter/index.d.ts +1 -0
- package/dist/types/private-components/CardHeading/CardHeading.d.ts +19 -0
- package/dist/types/private-components/CardHeading/index.d.ts +1 -0
- package/dist/types/private-components/ConditionalWrapper/ConditionalWrapper.d.ts +7 -0
- package/dist/types/private-components/ConditionalWrapper/index.d.ts +1 -0
- package/dist/types/private-components/index.d.ts +3 -0
- package/dist/types/styles.d.ts +22 -5
- package/dist/types/types/auto-complete-types.d.ts +1 -0
- package/dist/use-media-query/package.json +7 -0
- package/dist/use-media-query/use-media-query.cjs.js +10 -0
- package/dist/use-media-query/use-media-query.esm.js +2 -0
- package/package.json +53 -37
- package/dist/Base/Base.cjs.js +0 -11
- package/dist/Base/Base.esm.js +0 -3
- package/dist/Base/package.json +0 -7
- package/dist/Card/Card.cjs.js +0 -18
- package/dist/Card/Card.esm.js +0 -10
- package/dist/Card/package.json +0 -7
- package/dist/Clock/Clock.cjs.js +0 -43
- package/dist/Clock/Clock.esm.js +0 -34
- package/dist/Clock/package.json +0 -7
- package/dist/SiteHeader/SiteHeader.cjs.js +0 -22
- package/dist/SiteHeader/SiteHeader.esm.js +0 -13
- package/dist/SiteHeader/package.json +0 -7
- package/dist/_shared/cjs/Base-f5a86eed.js +0 -22
- package/dist/_shared/cjs/Card-eb1c20c1.js +0 -121
- package/dist/_shared/cjs/Image-e873b8fc.js +0 -46
- package/dist/_shared/cjs/ProgressStepper-74ee1eec.js +0 -88
- package/dist/_shared/cjs/RadioGroup-9bc96f6a.js +0 -69
- package/dist/_shared/cjs/SiteHeader.rehydrator-42c4a0e0.js +0 -670
- package/dist/_shared/cjs/TextInput-a5f72f6f.js +0 -81
- package/dist/_shared/cjs/UniversalHeader-5e43d320.js +0 -34
- package/dist/_shared/cjs/extends-8c5e4b48.js +0 -18
- package/dist/_shared/cjs/index-4aa11039.js +0 -490
- package/dist/_shared/cjs/index-4dd46cbe.js +0 -289
- package/dist/_shared/esm/Base-f200653c.js +0 -15
- package/dist/_shared/esm/Card-45e8e10a.js +0 -115
- package/dist/_shared/esm/ProgressStepper-5de34269.js +0 -82
- package/dist/_shared/esm/RadioGroup-002a32ba.js +0 -63
- package/dist/_shared/esm/SiteHeader.rehydrator-97900e11.js +0 -663
- package/dist/_shared/esm/TextInput-28f18769.js +0 -75
- package/dist/_shared/esm/extends-8cc61aad.js +0 -16
- package/dist/_shared/esm/index-4f8d3888.js +0 -280
- package/dist/_shared/esm/index-87a828b8.js +0 -479
- package/dist/types/components/Base/Base.d.ts +0 -16
- package/dist/types/components/Base/index.d.ts +0 -1
- package/dist/types/components/Card/Card.d.ts +0 -128
- package/dist/types/components/Card/index.d.ts +0 -1
- package/dist/types/components/Clock/Clock.d.ts +0 -12
- package/dist/types/components/Clock/Clock.rehydrator.d.ts +0 -2
- package/dist/types/components/Clock/index.d.ts +0 -2
- package/dist/types/components/MediaCard/MediaCard.stories-wip.d.ts +0 -15
- package/dist/types/components/SiteFooter/SiteFooter.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +0 -75
- package/dist/types/components/SiteHeader/SiteHeader.rehydrator.d.ts +0 -8
- package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/ItemGroup/index.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/NavItem/NavItem.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/NavItem/index.d.ts +0 -4
- package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.rehydrator.d.ts +0 -2
- package/dist/types/components/SiteHeader/components/SubNavItem/index.d.ts +0 -2
- package/dist/types/components/SiteHeader/index.d.ts +0 -2
- /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/BackButton/index.d.ts +0 -0
- /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Column/index.d.ts +0 -0
- /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Item/Item.d.ts +0 -0
- /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Item/index.d.ts +0 -0
- /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/MenuButton/MenuButton.d.ts +0 -0
- /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/MenuButton/index.d.ts +0 -0
- /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Panel/index.d.ts +0 -0
- /package/dist/types/hooks/{use-aria-describedby.d.ts → private/use-aria-describedby/use-aria-describedby.d.ts} +0 -0
- /package/dist/types/hooks/{use-interaction-mode.d.ts → private/use-interaction-mode/use-interaction-mode.d.ts} +0 -0
- /package/dist/types/hooks/{use-pagination.d.ts → private/use-pagination/use-pagination.d.ts} +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var ReactDOM = require('react-dom');
|
|
5
|
+
var index = require('./index-3dd54df1.js');
|
|
6
|
+
|
|
7
|
+
function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
|
|
8
|
+
return React.useReducer((state, event)=>{
|
|
9
|
+
const nextState = machine[state][event];
|
|
10
|
+
return nextState !== null && nextState !== void 0 ? nextState : state;
|
|
11
|
+
}, initialState);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{
|
|
16
|
+
const { present: present , children: children } = props;
|
|
17
|
+
const presence = $921a889cee6df7e8$var$usePresence(present);
|
|
18
|
+
const child = typeof children === 'function' ? children({
|
|
19
|
+
present: presence.isPresent
|
|
20
|
+
}) : React.Children.only(children);
|
|
21
|
+
const ref = index.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref, child.ref);
|
|
22
|
+
const forceMount = typeof children === 'function';
|
|
23
|
+
return forceMount || presence.isPresent ? /*#__PURE__*/ React.cloneElement(child, {
|
|
24
|
+
ref: ref
|
|
25
|
+
}) : null;
|
|
26
|
+
};
|
|
27
|
+
$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';
|
|
28
|
+
/* -------------------------------------------------------------------------------------------------
|
|
29
|
+
* usePresence
|
|
30
|
+
* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {
|
|
31
|
+
const [node1, setNode] = React.useState();
|
|
32
|
+
const stylesRef = React.useRef({});
|
|
33
|
+
const prevPresentRef = React.useRef(present);
|
|
34
|
+
const prevAnimationNameRef = React.useRef('none');
|
|
35
|
+
const initialState = present ? 'mounted' : 'unmounted';
|
|
36
|
+
const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {
|
|
37
|
+
mounted: {
|
|
38
|
+
UNMOUNT: 'unmounted',
|
|
39
|
+
ANIMATION_OUT: 'unmountSuspended'
|
|
40
|
+
},
|
|
41
|
+
unmountSuspended: {
|
|
42
|
+
MOUNT: 'mounted',
|
|
43
|
+
ANIMATION_END: 'unmounted'
|
|
44
|
+
},
|
|
45
|
+
unmounted: {
|
|
46
|
+
MOUNT: 'mounted'
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
React.useEffect(()=>{
|
|
50
|
+
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
|
|
51
|
+
prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
|
|
52
|
+
}, [
|
|
53
|
+
state
|
|
54
|
+
]);
|
|
55
|
+
index.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
56
|
+
const styles = stylesRef.current;
|
|
57
|
+
const wasPresent = prevPresentRef.current;
|
|
58
|
+
const hasPresentChanged = wasPresent !== present;
|
|
59
|
+
if (hasPresentChanged) {
|
|
60
|
+
const prevAnimationName = prevAnimationNameRef.current;
|
|
61
|
+
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
|
|
62
|
+
if (present) send('MOUNT');
|
|
63
|
+
else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run
|
|
64
|
+
// so we unmount instantly
|
|
65
|
+
send('UNMOUNT');
|
|
66
|
+
else {
|
|
67
|
+
/**
|
|
68
|
+
* When `present` changes to `false`, we check changes to animation-name to
|
|
69
|
+
* determine whether an animation has started. We chose this approach (reading
|
|
70
|
+
* computed styles) because there is no `animationrun` event and `animationstart`
|
|
71
|
+
* fires after `animation-delay` has expired which would be too late.
|
|
72
|
+
*/ const isAnimating = prevAnimationName !== currentAnimationName;
|
|
73
|
+
if (wasPresent && isAnimating) send('ANIMATION_OUT');
|
|
74
|
+
else send('UNMOUNT');
|
|
75
|
+
}
|
|
76
|
+
prevPresentRef.current = present;
|
|
77
|
+
}
|
|
78
|
+
}, [
|
|
79
|
+
present,
|
|
80
|
+
send
|
|
81
|
+
]);
|
|
82
|
+
index.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
83
|
+
if (node1) {
|
|
84
|
+
/**
|
|
85
|
+
* Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`
|
|
86
|
+
* event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we
|
|
87
|
+
* make sure we only trigger ANIMATION_END for the currently active animation.
|
|
88
|
+
*/ const handleAnimationEnd = (event)=>{
|
|
89
|
+
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
|
|
90
|
+
const isCurrentAnimation = currentAnimationName.includes(event.animationName);
|
|
91
|
+
if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied
|
|
92
|
+
// a frame after the animation ends, creating a flash of visible content.
|
|
93
|
+
// By manually flushing we ensure they sync within a frame, removing the flash.
|
|
94
|
+
ReactDOM.flushSync(()=>send('ANIMATION_END')
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
const handleAnimationStart = (event)=>{
|
|
98
|
+
if (event.target === node1) // if animation occurred, store its name as the previous animation.
|
|
99
|
+
prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
|
|
100
|
+
};
|
|
101
|
+
node1.addEventListener('animationstart', handleAnimationStart);
|
|
102
|
+
node1.addEventListener('animationcancel', handleAnimationEnd);
|
|
103
|
+
node1.addEventListener('animationend', handleAnimationEnd);
|
|
104
|
+
return ()=>{
|
|
105
|
+
node1.removeEventListener('animationstart', handleAnimationStart);
|
|
106
|
+
node1.removeEventListener('animationcancel', handleAnimationEnd);
|
|
107
|
+
node1.removeEventListener('animationend', handleAnimationEnd);
|
|
108
|
+
};
|
|
109
|
+
} else // Transition to the unmounted state if the node is removed prematurely.
|
|
110
|
+
// We avoid doing so during cleanup as the node may change but still exist.
|
|
111
|
+
send('ANIMATION_END');
|
|
112
|
+
}, [
|
|
113
|
+
node1,
|
|
114
|
+
send
|
|
115
|
+
]);
|
|
116
|
+
return {
|
|
117
|
+
isPresent: [
|
|
118
|
+
'mounted',
|
|
119
|
+
'unmountSuspended'
|
|
120
|
+
].includes(state),
|
|
121
|
+
ref: React.useCallback((node)=>{
|
|
122
|
+
if (node) stylesRef.current = getComputedStyle(node);
|
|
123
|
+
setNode(node);
|
|
124
|
+
}, [])
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {
|
|
128
|
+
return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
exports.$921a889cee6df7e8$export$99c2b779aa4e8b8b = $921a889cee6df7e8$export$99c2b779aa4e8b8b;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ React.createContext(undefined);
|
|
6
|
+
/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
|
|
7
|
+
const globalDir = React.useContext($f631663db3294ace$var$DirectionContext);
|
|
8
|
+
return localDir || globalDir || 'ltr';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
exports.$f631663db3294ace$export$b39126d51d94e6f3 = $f631663db3294ace$export$b39126d51d94e6f3;
|
|
@@ -38,44 +38,6 @@ function __rest(s, e) {
|
|
|
38
38
|
return t;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function __generator(thisArg, body) {
|
|
52
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
53
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
54
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
55
|
-
function step(op) {
|
|
56
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
57
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
58
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
59
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
60
|
-
switch (op[0]) {
|
|
61
|
-
case 0: case 1: t = op; break;
|
|
62
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
63
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
64
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
65
|
-
default:
|
|
66
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
67
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
68
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
69
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
70
|
-
if (t[2]) _.ops.pop();
|
|
71
|
-
_.trys.pop(); continue;
|
|
72
|
-
}
|
|
73
|
-
op = body.call(thisArg, _);
|
|
74
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
75
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
41
|
function __spreadArray(to, from, pack) {
|
|
80
42
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
81
43
|
if (ar || !(i in from)) {
|
|
@@ -91,7 +53,19 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
91
53
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
92
54
|
};
|
|
93
55
|
|
|
94
|
-
var
|
|
56
|
+
var dataAttrRe = /^(data-.*)$/;
|
|
57
|
+
var filterDataAttrs = function (props) {
|
|
58
|
+
var filteredProps = {};
|
|
59
|
+
for (var prop in props) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(props, prop) &&
|
|
61
|
+
dataAttrRe.test(prop)) {
|
|
62
|
+
filteredProps[prop] = props[prop];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return filteredProps;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var camelcase$1 = {exports: {}};
|
|
95
69
|
|
|
96
70
|
const UPPERCASE = /[\p{Lu}]/u;
|
|
97
71
|
const LOWERCASE = /[\p{Ll}]/u;
|
|
@@ -201,27 +175,13 @@ const camelCase = (input, options) => {
|
|
|
201
175
|
return postProcess(input, toUpperCase);
|
|
202
176
|
};
|
|
203
177
|
|
|
204
|
-
camelcase.exports = camelCase;
|
|
178
|
+
camelcase$1.exports = camelCase;
|
|
205
179
|
// TODO: Remove this for the next major release
|
|
206
|
-
camelcase.exports.default = camelCase;
|
|
180
|
+
camelcase$1.exports.default = camelCase;
|
|
207
181
|
|
|
208
|
-
var
|
|
209
|
-
|
|
210
|
-
var dataAttrRe = /^(data-.*)$/;
|
|
211
|
-
var filterDataAttrs = function (props) {
|
|
212
|
-
var filteredProps = {};
|
|
213
|
-
for (var prop in props) {
|
|
214
|
-
if (Object.prototype.hasOwnProperty.call(props, prop) &&
|
|
215
|
-
dataAttrRe.test(prop)) {
|
|
216
|
-
filteredProps[prop] = props[prop];
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return filteredProps;
|
|
220
|
-
};
|
|
182
|
+
var camelcase = camelcase$1.exports;
|
|
221
183
|
|
|
222
|
-
exports.__awaiter = __awaiter;
|
|
223
|
-
exports.__generator = __generator;
|
|
224
184
|
exports.__rest = __rest;
|
|
225
185
|
exports.__spreadArray = __spreadArray;
|
|
226
|
-
exports.
|
|
186
|
+
exports.camelcase = camelcase;
|
|
227
187
|
exports.filterDataAttrs = filterDataAttrs;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Do not edit directly
|
|
5
|
+
* Generated on Fri, 23 Aug 2024 15:46:35 GMT
|
|
6
|
+
*/
|
|
7
|
+
var SemSizeBreakpointsS = "576px"; // Small (SM) - 576px to 767px: This is often used for smartphones in landscape mode and small tablets.
|
|
8
|
+
var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
|
|
9
|
+
var SemSizeBreakpointsL = "1024px"; // Large (LG) - 1024px - 1279px: This breakpoint is often applied to larger desktop screens and some laptops.
|
|
10
|
+
|
|
11
|
+
exports.SemSizeBreakpointsL = SemSizeBreakpointsL;
|
|
12
|
+
exports.SemSizeBreakpointsM = SemSizeBreakpointsM;
|
|
13
|
+
exports.SemSizeBreakpointsS = SemSizeBreakpointsS;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var index = require('./index-df60851b.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Suffixes a modifier value onto the end of a className, converting it to
|
|
@@ -11,7 +11,7 @@ var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
|
11
11
|
* @param suffix The suffix to convert into pascal case.
|
|
12
12
|
*/
|
|
13
13
|
var suffixModifier = function (rootClassName, suffix) {
|
|
14
|
-
return "".concat(rootClassName).concat(
|
|
14
|
+
return "".concat(rootClassName).concat(index.camelcase(suffix, {
|
|
15
15
|
pascalCase: true
|
|
16
16
|
}));
|
|
17
17
|
};
|
|
@@ -38,13 +38,4 @@ var useMediaQuery = function (mediaQuery) {
|
|
|
38
38
|
return matches;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* Do not edit directly
|
|
43
|
-
* Generated file
|
|
44
|
-
*/
|
|
45
|
-
var ArcBreakpointM = 768;
|
|
46
|
-
var ArcBreakpointL = 1024;
|
|
47
|
-
|
|
48
|
-
exports.ArcBreakpointL = ArcBreakpointL;
|
|
49
|
-
exports.ArcBreakpointM = ArcBreakpointM;
|
|
50
41
|
exports.useMediaQuery = useMediaQuery;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const ArcIconEclipse = (props) =>
|
|
4
|
+
/*#__PURE__*/ React__default.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
Object.assign(
|
|
7
|
+
{
|
|
8
|
+
viewBox: "0 0 28 28",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
},
|
|
12
|
+
props,
|
|
13
|
+
),
|
|
14
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
15
|
+
d: "M23.2 14C23.2 15.6967 22.7308 17.3603 21.8443 18.807C20.9578 20.2536 19.6885 21.427 18.1767 22.1973C16.665 22.9675 14.9696 23.3048 13.2782 23.1716C11.5867 23.0385 9.96502 22.4402 8.59238 21.443C7.21973 20.4457 6.1496 19.0882 5.50031 17.5207C4.85102 15.9532 4.64785 14.2366 4.91327 12.5608C5.17869 10.885 5.90236 9.31525 7.00426 8.02508C8.10617 6.73491 9.5434 5.77459 11.157 5.25028",
|
|
16
|
+
stroke: "currentColor",
|
|
17
|
+
strokeWidth: 1.6,
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
}),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export { ArcIconEclipse as A };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { a as __assign, _ as __rest, f as filterDataAttrs } from './index-288c66b5.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
|
+
import { H as Heading } from './Heading-906c7c7c.js';
|
|
5
|
+
import './Surface-71d21a9e.js';
|
|
6
|
+
import { C as ConditionalWrapper } from './ConditionalWrapper-59be8f35.js';
|
|
7
|
+
import { T as ThemeIcon } from './ThemeIcon-c2dc41a6.js';
|
|
8
|
+
import { I as Image } from './Image-57d08939.js';
|
|
9
|
+
|
|
10
|
+
var AvatarContent = function (_a) {
|
|
11
|
+
var img = _a.img, initials = _a.initials, _b = _a.size, size = _b === void 0 ? "xl" : _b;
|
|
12
|
+
var textSize = {
|
|
13
|
+
s: "xxxs",
|
|
14
|
+
m: "xxs",
|
|
15
|
+
l: "xs",
|
|
16
|
+
xl: "s"
|
|
17
|
+
};
|
|
18
|
+
var iconSize = {
|
|
19
|
+
s: 16,
|
|
20
|
+
m: 24,
|
|
21
|
+
l: 32,
|
|
22
|
+
xl: 40
|
|
23
|
+
};
|
|
24
|
+
if (img) {
|
|
25
|
+
return React__default.createElement(Image, __assign({ fit: "cover" }, img));
|
|
26
|
+
}
|
|
27
|
+
if (initials) {
|
|
28
|
+
return (React__default.createElement(Heading, { size: textSize[size] }, initials.substring(0, 3).toUpperCase()));
|
|
29
|
+
}
|
|
30
|
+
return React__default.createElement(ThemeIcon, { size: iconSize[size], icon: "avatarUser" });
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** Use `Avatar` to visually represent a user. */
|
|
34
|
+
var Avatar = function (_a) {
|
|
35
|
+
var img = _a.img, initials = _a.initials, href = _a.href, title = _a.title, ariaLabel = _a.ariaLabel, onClick = _a.onClick, _b = _a.size, size = _b === void 0 ? "xl" : _b, props = __rest(_a, ["img", "initials", "href", "title", "ariaLabel", "onClick", "size"]);
|
|
36
|
+
var wrapperAttrs = __assign({ className: classNames("arc-Avatar", "arc-Avatar--".concat(size), {
|
|
37
|
+
"arc-Avatar--img": Boolean(img)
|
|
38
|
+
}) }, filterDataAttrs(props));
|
|
39
|
+
return (React__default.createElement(ConditionalWrapper, { condition: Boolean(href), wrapper: function (children) { return (React__default.createElement("a", __assign({ href: href, "aria-label": ariaLabel, onClick: onClick, title: title }, wrapperAttrs), children)); }, fallback: function (children) { return React__default.createElement("div", __assign({}, wrapperAttrs), children); } },
|
|
40
|
+
React__default.createElement(AvatarContent, { size: size, img: img, initials: initials })));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { Avatar as A };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-288c66b5.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { s as suffixModifier } from './suffix-modifier-
|
|
5
|
-
import { C as Context } from './Surface-
|
|
4
|
+
import { s as suffixModifier } from './suffix-modifier-1ce05abe.js';
|
|
5
|
+
import { C as Context } from './Surface-71d21a9e.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Use `BrandLogo` to display the brand logo.
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-288c66b5.js';
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
|
-
import { d as debounce_1 } from './debounce-
|
|
4
|
-
import { T as ThemeIcon } from './ThemeIcon-
|
|
3
|
+
import { d as debounce_1 } from './debounce-c8e41002.js';
|
|
4
|
+
import { T as ThemeIcon } from './ThemeIcon-c2dc41a6.js';
|
|
5
5
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
6
6
|
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
7
7
|
|
|
8
8
|
var BreadcrumbsItem = function (_a) {
|
|
9
9
|
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children, props = __rest(_a, ["spacerIconAfter", "spacerIconBefore", "children"]);
|
|
10
10
|
return (React__default.createElement("li", __assign({ className: "arc-Breadcrumbs-item" }, filterDataAttrs(props)),
|
|
11
|
-
spacerIconBefore && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px" },
|
|
11
|
+
spacerIconBefore && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px", "aria-hidden": "true" },
|
|
12
12
|
React__default.createElement(ThemeIcon, { icon: "breadcrumbLeft" }))),
|
|
13
13
|
children,
|
|
14
|
-
spacerIconAfter && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon" },
|
|
14
|
+
spacerIconAfter && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "aria-hidden": "true" },
|
|
15
15
|
React__default.createElement(ThemeIcon, { icon: "breadcrumbRight" })))));
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
var BreadcrumbsLink = React__default.forwardRef(function (_a, ref) {
|
|
19
19
|
var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children, props = __rest(_a, ["onClick", "href", "isActive", "children"]);
|
|
20
|
-
return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", __assign({
|
|
20
|
+
return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", __assign({ onClick: onClick, className: classNames({
|
|
21
21
|
"arc-Breadcrumbs-text": true,
|
|
22
22
|
"arc-Breadcrumbs-text--active": isActive
|
|
23
23
|
}) }, filterDataAttrs(props)), children)) : (React__default.createElement("a", __assign({}, (onClick && ref
|
|
@@ -66,11 +66,11 @@ var Breadcrumbs = function (_a) {
|
|
|
66
66
|
// eslint-disable-next-line
|
|
67
67
|
}, []);
|
|
68
68
|
var items = React__default.Children.toArray(children);
|
|
69
|
-
return (React__default.createElement("nav", __assign({ "aria-label": "Breadcrumbs",
|
|
69
|
+
return (React__default.createElement("nav", __assign({ "aria-label": "Breadcrumbs", className: classNames({
|
|
70
70
|
"arc-Breadcrumbs": true,
|
|
71
71
|
"arc-Breadcrumbs--light": isLight
|
|
72
72
|
}) }, filterDataAttrs(props)),
|
|
73
|
-
React__default.createElement("
|
|
73
|
+
React__default.createElement("ol", { className: "arc-Breadcrumbs-list", ref: breadcrumbsList }, showBackTrail ? (React__default.createElement(React__default.Fragment, null, items.length < 3 ? (React__default.createElement(Breadcrumbs.Item, { spacerIconBefore: true }, items[0].props.children)) : (React__default.createElement(Breadcrumbs.Item, { spacerIconBefore: true }, items[items.length - 2].props.children)))) : (React__default.createElement(React__default.Fragment, null, isCompressed ? (React__default.createElement(React__default.Fragment, null,
|
|
74
74
|
React__default.createElement(Breadcrumbs.Item, { spacerIconAfter: true }, items[0].props.children),
|
|
75
75
|
React__default.createElement(Breadcrumbs.Item, { spacerIconAfter: true },
|
|
76
76
|
React__default.createElement("button", { className: "arc-Breadcrumbs-expand arc-Breadcrumbs-text", onClick: function () { return setIsCompressed(false); }, "aria-label": "Expand Breadcrumbs", type: "button", "data-testid": "expand-ellipsis" }, "...")),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { a as __assign, f as filterDataAttrs } from './index-288c66b5.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { H as Heading } from './Heading-906c7c7c.js';
|
|
4
|
+
|
|
5
|
+
var CardHeading = function (_a) {
|
|
6
|
+
var onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onBlur = _a.onBlur, onFocus = _a.onFocus, href = _a.href, heading = _a.heading, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d;
|
|
7
|
+
return (React__default.createElement(Heading, { level: headingLevel, size: size }, href ? (React__default.createElement("a", __assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterDataAttrs(linkData)), heading)) : (heading)));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const BtIconArrowRight = (props) =>
|
|
11
|
+
/*#__PURE__*/ React__default.createElement(
|
|
12
|
+
"svg",
|
|
13
|
+
Object.assign(
|
|
14
|
+
{
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
viewBox: "0 0 32 32",
|
|
17
|
+
},
|
|
18
|
+
props,
|
|
19
|
+
),
|
|
20
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
21
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
22
|
+
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
23
|
+
fill: "currentColor",
|
|
24
|
+
}),
|
|
25
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
26
|
+
d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export { BtIconArrowRight as B, CardHeading as C };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const BtIconChevronRightMid = (props) =>
|
|
4
|
+
/*#__PURE__*/ React__default.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
Object.assign(
|
|
7
|
+
{
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
},
|
|
12
|
+
props,
|
|
13
|
+
),
|
|
14
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
clipRule: "evenodd",
|
|
17
|
+
d: "M9.04543 8.0002L6.19676 5.1482C6.07077 5.02196 6 4.85089 6 4.67253C6 4.49418 6.07077 4.32311 6.19676 4.19687C6.25906 4.13446 6.33304 4.08495 6.41449 4.05117C6.49594 4.01739 6.58325 4 6.67143 4C6.75961 4 6.84692 4.01739 6.92837 4.05117C7.00982 4.08495 7.0838 4.13446 7.1461 4.19687L10.4701 7.52487C10.5959 7.65108 10.6665 7.82201 10.6665 8.0002C10.6665 8.1784 10.5959 8.34932 10.4701 8.47553L7.1461 11.8035C7.0838 11.8659 7.00982 11.9155 6.92837 11.9492C6.84692 11.983 6.75961 12.0004 6.67143 12.0004C6.58325 12.0004 6.49594 11.983 6.41449 11.9492C6.33304 11.9155 6.25906 11.8659 6.19676 11.8035C6.07077 11.6773 6 11.5062 6 11.3279C6 11.1495 6.07077 10.9784 6.19676 10.8522L9.04543 8.0002Z",
|
|
18
|
+
fill: "currentColor",
|
|
19
|
+
}),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export { BtIconChevronRightMid as B };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const BtIconPlayFill = (props) =>
|
|
4
|
+
/*#__PURE__*/ React__default.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
Object.assign(
|
|
7
|
+
{
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 32 32",
|
|
10
|
+
},
|
|
11
|
+
props,
|
|
12
|
+
),
|
|
13
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
14
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
15
|
+
d: "M13.16113,11.76172a.10284.10284,0,0,0-.10742,0A.10229.10229,0,0,0,13,11.85449v8.2876a.10314.10314,0,0,0,.05371.09326.10451.10451,0,0,0,.10742.00049l7.17774-4.14453a.10285.10285,0,0,0,.05371-.09277.10421.10421,0,0,0-.05371-.09375Z",
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
}),
|
|
18
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
19
|
+
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.83887,14.957-7.17774,4.14453A1.10791,1.10791,0,0,1,12,20.14209v-8.2876a1.107,1.107,0,0,1,1.66113-.95849l7.17774,4.14355a1.10688,1.10688,0,0,1,0,1.91748Z",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
export { BtIconPlayFill as B };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-288c66b5.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default, { forwardRef, useContext } from 'react';
|
|
4
|
-
import { s as suffixModifier } from './suffix-modifier-
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
6
|
-
import { C as Context } from './Surface-
|
|
7
|
-
import { T as ThemeIcon } from './ThemeIcon-
|
|
4
|
+
import { s as suffixModifier } from './suffix-modifier-1ce05abe.js';
|
|
5
|
+
import { I as Icon } from './Icon-512f834f.js';
|
|
6
|
+
import { C as Context } from './Surface-71d21a9e.js';
|
|
7
|
+
import { T as ThemeIcon } from './ThemeIcon-c2dc41a6.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Use `Button` to
|
|
10
|
+
* Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
|
|
11
11
|
*/
|
|
12
12
|
var Button = forwardRef(function (_a, ref) {
|
|
13
13
|
var _b;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-288c66b5.js';
|
|
2
|
+
import React__default, { forwardRef, useContext } from 'react';
|
|
3
|
+
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
|
+
import { I as Icon } from './Icon-512f834f.js';
|
|
5
|
+
import { C as Context } from './Surface-71d21a9e.js';
|
|
6
|
+
import { A as ArcIconEclipse } from './ArcIconEclipse.esm-bb48b82a.js';
|
|
7
|
+
|
|
8
|
+
var ButtonV2 = forwardRef(function (_a, ref) {
|
|
9
|
+
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, _c = _a.iconPosition, iconPosition = _c === void 0 ? "beforeText" : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, ariaLabel = _a.ariaLabel, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["label", "buttonStyle", "icon", "iconPosition", "size", "ariaLabel", "isFullWidth", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form"]);
|
|
10
|
+
var surface = useContext(Context).surface;
|
|
11
|
+
var ButtonV2Classes = classNames("arc-ButtonV2", ["arc-ButtonV2--".concat(buttonStyle)], ["arc-ButtonV2--".concat(size)], {
|
|
12
|
+
"arc-ButtonV2--onDarkSurface": surface === "dark",
|
|
13
|
+
"arc-ButtonV2--emptyLabel": !label,
|
|
14
|
+
"arc-ButtonV2--isLoading": isLoading,
|
|
15
|
+
"arc-ButtonV2--isFullWidth": isFullWidth,
|
|
16
|
+
"arc-ButtonV2--withIcon": icon || isLoading,
|
|
17
|
+
"arc-ButtonV2--withIconBeforeText": iconPosition === "beforeText" && (icon || isLoading)
|
|
18
|
+
});
|
|
19
|
+
var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, filterDataAttrs(props));
|
|
20
|
+
if (href && !isLoading) {
|
|
21
|
+
return (React__default.createElement("a", __assign({}, commonProps, { className: ButtonV2Classes, href: href, rel: rel, "aria-label": ariaLabel, target: target }),
|
|
22
|
+
React__default.createElement("span", { className: classNames("arc-ButtonV2-inner", {
|
|
23
|
+
"arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText"
|
|
24
|
+
}) },
|
|
25
|
+
label && React__default.createElement("span", { className: "arc-ButtonV2-label" }, label),
|
|
26
|
+
isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
27
|
+
React__default.createElement(Icon, { size: size === "s" ? 16 : 32, icon: ArcIconEclipse }))),
|
|
28
|
+
icon && !isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
29
|
+
React__default.createElement(Icon, { size: size === "s" ? 16 : 32, icon: icon }))))));
|
|
30
|
+
}
|
|
31
|
+
return (React__default.createElement("button", __assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, disabled: isLoading, type: type, form: form }),
|
|
32
|
+
React__default.createElement("span", { className: classNames("arc-ButtonV2-inner", {
|
|
33
|
+
"arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText"
|
|
34
|
+
}) },
|
|
35
|
+
label && React__default.createElement("span", { className: "arc-ButtonV2-label" }, label),
|
|
36
|
+
icon && !isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
37
|
+
React__default.createElement(Icon, { size: size === "s" ? 16 : 32, icon: icon }))),
|
|
38
|
+
isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
39
|
+
React__default.createElement(Icon, { size: size === "s" ? 16 : 32, icon: ArcIconEclipse }))))));
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { ButtonV2 as B };
|