@arc-ui/components 12.0.0-alpha.0 → 12.0.0-beta.4
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-4a63f28d.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-cd21e362.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-4ccbb3ee.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-e344da9f.js} +13 -12
- package/dist/_shared/cjs/SiteHeaderV2-cd793f59.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-1299e41d.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-4813cac2.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-fa18bb81.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-f4758794.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-299646d9.js} +9 -8
- package/dist/_shared/esm/SiteHeaderV2-8208ddb7.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-28a91edf.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
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
5
|
+
var index = require('../_shared/cjs/index-df60851b.js');
|
|
6
|
+
var index$1 = require('../_shared/cjs/index-9947ac13.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
require('../_shared/cjs/
|
|
8
|
+
var ThemeIcon = require('../_shared/cjs/ThemeIcon-ee814862.js');
|
|
9
|
+
require('../_shared/cjs/suffix-modifier-c8a34402.js');
|
|
10
|
+
require('../_shared/cjs/Surface-8599dbe4.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -20,14 +20,14 @@ var usePagination = function (pageCount, selectedPage) {
|
|
|
20
20
|
return React.useMemo(function () {
|
|
21
21
|
if (pageCount > 7 && selectedPage < 5) {
|
|
22
22
|
// show 1 - 5 the right dots are visible.
|
|
23
|
-
return formatValues(
|
|
23
|
+
return formatValues(index.__spreadArray(index.__spreadArray([], Array.from({ length: 5 }, function (_value, index) { return index + 1; }), true), [
|
|
24
24
|
"...",
|
|
25
25
|
pageCount,
|
|
26
26
|
], false));
|
|
27
27
|
}
|
|
28
28
|
if (pageCount > 7 && selectedPage >= pageCount - 3) {
|
|
29
29
|
// show numbers to the end but the left dots are visible
|
|
30
|
-
return formatValues(
|
|
30
|
+
return formatValues(index.__spreadArray([
|
|
31
31
|
1,
|
|
32
32
|
"..."
|
|
33
33
|
], Array.from({ length: 5 }, function (_value, index) { return pageCount - index; }).reverse(), true));
|
|
@@ -50,11 +50,10 @@ var usePagination = function (pageCount, selectedPage) {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Use `Pagination` to navigate multiple pages.
|
|
53
|
+
* Use `Pagination` to navigate through multiple pages of content.
|
|
54
54
|
*/
|
|
55
55
|
var Pagination = function (_a) {
|
|
56
|
-
var pageCount = _a.pageCount, onPageChange = _a.onPageChange, _b = _a.defaultSelectedPage, defaultSelectedPage = _b === void 0 ? 1 : _b, props =
|
|
57
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
56
|
+
var pageCount = _a.pageCount, onPageChange = _a.onPageChange, _b = _a.defaultSelectedPage, defaultSelectedPage = _b === void 0 ? 1 : _b, props = index.__rest(_a, ["pageCount", "onPageChange", "defaultSelectedPage"]);
|
|
58
57
|
var _c = React.useState(defaultSelectedPage), selectedPage = _c[0], setSelectedPage = _c[1];
|
|
59
58
|
var pageRange = usePagination(pageCount, selectedPage);
|
|
60
59
|
var handlePagechange = function (pageToSelect) { return function () {
|
|
@@ -62,20 +61,18 @@ var Pagination = function (_a) {
|
|
|
62
61
|
onPageChange(pageToSelect);
|
|
63
62
|
}; };
|
|
64
63
|
var isPageNumber = function (rangeValue) { return !isNaN(parseInt(rangeValue)); };
|
|
65
|
-
return (React__default["default"].createElement("nav",
|
|
66
|
-
|
|
67
|
-
}) }, filterDataAttrs.filterDataAttrs(props)),
|
|
68
|
-
React__default["default"].createElement("button", { "aria-label": "Go to previous page", className: index.classNames("arc-Pagination-navigationButton", {
|
|
64
|
+
return (React__default["default"].createElement("nav", index.__assign({ "aria-label": "pagination navigation", className: index$1.classNames("arc-Pagination") }, index.filterDataAttrs(props)),
|
|
65
|
+
React__default["default"].createElement("button", { "aria-label": "Go to previous page", className: index$1.classNames("arc-Pagination-navigationButton", {
|
|
69
66
|
"arc-Pagination-navigationButton--hidden": selectedPage === 1
|
|
70
67
|
}), onClick: handlePagechange(selectedPage - 1) },
|
|
71
68
|
React__default["default"].createElement("div", { className: "arc-Pagination-navigationButtonIcon arc-Pagination-navigationButtonIcon--left" },
|
|
72
69
|
React__default["default"].createElement(ThemeIcon.ThemeIcon, { size: 32, icon: "paginationPrevious" }))),
|
|
73
70
|
React__default["default"].createElement("div", { className: "arc-Pagination-pageNumberContainer" }, pageRange.map(function (rangeValue, i) {
|
|
74
|
-
return isPageNumber(rangeValue) ? (React__default["default"].createElement("button", { "aria-current": parseInt(rangeValue) === selectedPage, key: "pagination-range-value-".concat(rangeValue), "aria-label": "Go to page ".concat(rangeValue), className: index.classNames("arc-Pagination-value arc-Pagination-value--number", {
|
|
71
|
+
return isPageNumber(rangeValue) ? (React__default["default"].createElement("button", { "aria-current": parseInt(rangeValue) === selectedPage, key: "pagination-range-value-".concat(rangeValue), "aria-label": "Go to page ".concat(rangeValue), className: index$1.classNames("arc-Pagination-value arc-Pagination-value--number", {
|
|
75
72
|
"arc-Pagination-value--selected": parseInt(rangeValue) === selectedPage
|
|
76
|
-
}), onClick: handlePagechange(parseInt(rangeValue)) }, rangeValue)) : (React__default["default"].createElement("span", { key: "pagination-range-value-dot".concat(i), className: index.classNames("arc-Pagination-value arc-Pagination-value--dots") }, rangeValue));
|
|
73
|
+
}), onClick: handlePagechange(parseInt(rangeValue)) }, rangeValue)) : (React__default["default"].createElement("span", { key: "pagination-range-value-dot".concat(i), className: index$1.classNames("arc-Pagination-value arc-Pagination-value--dots") }, rangeValue));
|
|
77
74
|
})),
|
|
78
|
-
React__default["default"].createElement("button", { "aria-label": "Go to next page", className: index.classNames("arc-Pagination-navigationButton", {
|
|
75
|
+
React__default["default"].createElement("button", { "aria-label": "Go to next page", className: index$1.classNames("arc-Pagination-navigationButton", {
|
|
79
76
|
"arc-Pagination-navigationButton--hidden": selectedPage === pageCount
|
|
80
77
|
}), onClick: handlePagechange(selectedPage + 1) },
|
|
81
78
|
React__default["default"].createElement("div", { className: "arc-Pagination-navigationButtonIcon arc-Pagination-navigationButtonIcon--right" },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as __spreadArray, _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/
|
|
1
|
+
import { b as __spreadArray, _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-288c66b5.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
|
-
import React__default, { useMemo,
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import '../_shared/esm/
|
|
3
|
+
import React__default, { useMemo, useState } from 'react';
|
|
4
|
+
import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-c2dc41a6.js';
|
|
5
|
+
import '../_shared/esm/suffix-modifier-1ce05abe.js';
|
|
6
|
+
import '../_shared/esm/Surface-71d21a9e.js';
|
|
7
7
|
|
|
8
8
|
var usePagination = function (pageCount, selectedPage) {
|
|
9
9
|
var formatValues = function (range) {
|
|
@@ -42,11 +42,10 @@ var usePagination = function (pageCount, selectedPage) {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Use `Pagination` to navigate multiple pages.
|
|
45
|
+
* Use `Pagination` to navigate through multiple pages of content.
|
|
46
46
|
*/
|
|
47
47
|
var Pagination = function (_a) {
|
|
48
48
|
var pageCount = _a.pageCount, onPageChange = _a.onPageChange, _b = _a.defaultSelectedPage, defaultSelectedPage = _b === void 0 ? 1 : _b, props = __rest(_a, ["pageCount", "onPageChange", "defaultSelectedPage"]);
|
|
49
|
-
var surface = useContext(Context).surface;
|
|
50
49
|
var _c = useState(defaultSelectedPage), selectedPage = _c[0], setSelectedPage = _c[1];
|
|
51
50
|
var pageRange = usePagination(pageCount, selectedPage);
|
|
52
51
|
var handlePagechange = function (pageToSelect) { return function () {
|
|
@@ -54,9 +53,7 @@ var Pagination = function (_a) {
|
|
|
54
53
|
onPageChange(pageToSelect);
|
|
55
54
|
}; };
|
|
56
55
|
var isPageNumber = function (rangeValue) { return !isNaN(parseInt(rangeValue)); };
|
|
57
|
-
return (React__default.createElement("nav", __assign({ "aria-label": "pagination navigation", className: classNames("arc-Pagination",
|
|
58
|
-
"arc-Pagination--onDarkSurface": surface === "dark"
|
|
59
|
-
}) }, filterDataAttrs(props)),
|
|
56
|
+
return (React__default.createElement("nav", __assign({ "aria-label": "pagination navigation", className: classNames("arc-Pagination") }, filterDataAttrs(props)),
|
|
60
57
|
React__default.createElement("button", { "aria-label": "Go to previous page", className: classNames("arc-Pagination-navigationButton", {
|
|
61
58
|
"arc-Pagination-navigationButton--hidden": selectedPage === 1
|
|
62
59
|
}), onClick: handlePagechange(selectedPage - 1) },
|
|
@@ -2,44 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
5
|
+
var index = require('../_shared/cjs/index-df60851b.js');
|
|
6
|
+
var index$1 = require('../_shared/cjs/index-9947ac13.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
require('../_shared/cjs/
|
|
8
|
+
var ThemeIcon = require('../_shared/cjs/ThemeIcon-ee814862.js');
|
|
9
|
+
require('../_shared/cjs/suffix-modifier-c8a34402.js');
|
|
10
|
+
require('../_shared/cjs/Surface-8599dbe4.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Use `PaginationSimple` to navigate multiple pages.
|
|
17
|
+
* Use `PaginationSimple` to navigate through multiple pages of content.
|
|
18
18
|
*/
|
|
19
19
|
var PaginationSimple = function (_a) {
|
|
20
|
-
var hidePrev = _a.hidePrev, hideNext = _a.hideNext, onPrevPage = _a.onPrevPage, onNextPage = _a.onNextPage, isFluid = _a.isFluid, props =
|
|
21
|
-
|
|
22
|
-
return (React__default["default"].createElement("nav", filterDataAttrs.__assign({ className: index.classNames("arc-PaginationSimple", {
|
|
23
|
-
"arc-PaginationSimple--onDarkSurface": surface === "dark",
|
|
20
|
+
var hidePrev = _a.hidePrev, hideNext = _a.hideNext, prevHref = _a.prevHref, nextHref = _a.nextHref, onPrevPage = _a.onPrevPage, onNextPage = _a.onNextPage, isFluid = _a.isFluid, props = index.__rest(_a, ["hidePrev", "hideNext", "prevHref", "nextHref", "onPrevPage", "onNextPage", "isFluid"]);
|
|
21
|
+
return (React__default["default"].createElement("nav", index.__assign({ className: index$1.classNames("arc-PaginationSimple", {
|
|
24
22
|
"arc-PaginationSimple--fluid": isFluid,
|
|
25
23
|
"arc-PaginationSimple--centered": !isFluid
|
|
26
|
-
}) },
|
|
27
|
-
React__default["default"].createElement("
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"arc-PaginationSimple-navigationButton
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React__default["default"].createElement(ThemeIcon.ThemeIcon, { size: 32, icon: "paginationSimpleNext" })))));
|
|
24
|
+
}) }, index.filterDataAttrs(props)),
|
|
25
|
+
React__default["default"].createElement("ul", { className: "arc-PaginationSimple-list" },
|
|
26
|
+
React__default["default"].createElement("li", { className: "arc-PaginationSimple-listItem" },
|
|
27
|
+
React__default["default"].createElement("a", { tabIndex: 0, href: prevHref, role: !prevHref ? "button" : undefined, className: index$1.classNames("arc-PaginationSimple-navigationButton", {
|
|
28
|
+
"arc-PaginationSimple-navigationButton--hidden": hidePrev
|
|
29
|
+
}), onClick: onPrevPage },
|
|
30
|
+
React__default["default"].createElement("div", { className: "arc-PaginationSimple-iconContainer arc-PaginationSimple-iconContainer--left" },
|
|
31
|
+
React__default["default"].createElement(ThemeIcon.ThemeIcon, { size: 32, icon: "paginationSimplePrevious" })),
|
|
32
|
+
React__default["default"].createElement("span", { className: "arc-PaginationSimple-prevText" }, "Prev"))),
|
|
33
|
+
React__default["default"].createElement("li", { className: "arc-PaginationSimple-listItem" },
|
|
34
|
+
React__default["default"].createElement("a", { tabIndex: 0, href: nextHref, role: !nextHref ? "button" : undefined, className: index$1.classNames("arc-PaginationSimple-navigationButton", {
|
|
35
|
+
"arc-PaginationSimple-navigationButton--hidden": hideNext
|
|
36
|
+
}), onClick: onNextPage },
|
|
37
|
+
React__default["default"].createElement("span", { className: "arc-PaginationSimple-nextText" }, "Next"),
|
|
38
|
+
React__default["default"].createElement("div", { className: "arc-PaginationSimple-iconContainer arc-PaginationSimple-iconContainer--right" },
|
|
39
|
+
React__default["default"].createElement(ThemeIcon.ThemeIcon, { size: 32, icon: "paginationSimpleNext" })))))));
|
|
43
40
|
};
|
|
44
41
|
|
|
45
42
|
exports.PaginationSimple = PaginationSimple;
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-288c66b5.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
|
-
import React__default
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import '../_shared/esm/
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-c2dc41a6.js';
|
|
5
|
+
import '../_shared/esm/suffix-modifier-1ce05abe.js';
|
|
6
|
+
import '../_shared/esm/Surface-71d21a9e.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Use `PaginationSimple` to navigate multiple pages.
|
|
9
|
+
* Use `PaginationSimple` to navigate through multiple pages of content.
|
|
10
10
|
*/
|
|
11
11
|
var PaginationSimple = function (_a) {
|
|
12
|
-
var hidePrev = _a.hidePrev, hideNext = _a.hideNext, onPrevPage = _a.onPrevPage, onNextPage = _a.onNextPage, isFluid = _a.isFluid, props = __rest(_a, ["hidePrev", "hideNext", "onPrevPage", "onNextPage", "isFluid"]);
|
|
13
|
-
var surface = useContext(Context).surface;
|
|
12
|
+
var hidePrev = _a.hidePrev, hideNext = _a.hideNext, prevHref = _a.prevHref, nextHref = _a.nextHref, onPrevPage = _a.onPrevPage, onNextPage = _a.onNextPage, isFluid = _a.isFluid, props = __rest(_a, ["hidePrev", "hideNext", "prevHref", "nextHref", "onPrevPage", "onNextPage", "isFluid"]);
|
|
14
13
|
return (React__default.createElement("nav", __assign({ className: classNames("arc-PaginationSimple", {
|
|
15
|
-
"arc-PaginationSimple--onDarkSurface": surface === "dark",
|
|
16
14
|
"arc-PaginationSimple--fluid": isFluid,
|
|
17
15
|
"arc-PaginationSimple--centered": !isFluid
|
|
18
16
|
}) }, filterDataAttrs(props)),
|
|
19
|
-
React__default.createElement("
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"arc-PaginationSimple-navigationButton
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
React__default.createElement(ThemeIcon, { size: 32, icon: "paginationSimpleNext" })))));
|
|
17
|
+
React__default.createElement("ul", { className: "arc-PaginationSimple-list" },
|
|
18
|
+
React__default.createElement("li", { className: "arc-PaginationSimple-listItem" },
|
|
19
|
+
React__default.createElement("a", { tabIndex: 0, href: prevHref, role: !prevHref ? "button" : undefined, className: classNames("arc-PaginationSimple-navigationButton", {
|
|
20
|
+
"arc-PaginationSimple-navigationButton--hidden": hidePrev
|
|
21
|
+
}), onClick: onPrevPage },
|
|
22
|
+
React__default.createElement("div", { className: "arc-PaginationSimple-iconContainer arc-PaginationSimple-iconContainer--left" },
|
|
23
|
+
React__default.createElement(ThemeIcon, { size: 32, icon: "paginationSimplePrevious" })),
|
|
24
|
+
React__default.createElement("span", { className: "arc-PaginationSimple-prevText" }, "Prev"))),
|
|
25
|
+
React__default.createElement("li", { className: "arc-PaginationSimple-listItem" },
|
|
26
|
+
React__default.createElement("a", { tabIndex: 0, href: nextHref, role: !nextHref ? "button" : undefined, className: classNames("arc-PaginationSimple-navigationButton", {
|
|
27
|
+
"arc-PaginationSimple-navigationButton--hidden": hideNext
|
|
28
|
+
}), onClick: onNextPage },
|
|
29
|
+
React__default.createElement("span", { className: "arc-PaginationSimple-nextText" }, "Next"),
|
|
30
|
+
React__default.createElement("div", { className: "arc-PaginationSimple-iconContainer arc-PaginationSimple-iconContainer--right" },
|
|
31
|
+
React__default.createElement(ThemeIcon, { size: 32, icon: "paginationSimpleNext" })))))));
|
|
35
32
|
};
|
|
36
33
|
|
|
37
34
|
export { PaginationSimple };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Poster = require('../_shared/cjs/Poster-
|
|
6
|
-
require('../_shared/cjs/
|
|
5
|
+
var Poster = require('../_shared/cjs/Poster-b7242b37.js');
|
|
6
|
+
require('../_shared/cjs/index-df60851b.js');
|
|
7
7
|
require('../_shared/cjs/index-9947ac13.js');
|
|
8
8
|
require('react');
|
|
9
|
-
require('../_shared/cjs/Surface-
|
|
10
|
-
require('../_shared/cjs/Image-
|
|
11
|
-
require('../_shared/cjs/suffix-modifier-
|
|
9
|
+
require('../_shared/cjs/Surface-8599dbe4.js');
|
|
10
|
+
require('../_shared/cjs/Image-e9a5a326.js');
|
|
11
|
+
require('../_shared/cjs/suffix-modifier-c8a34402.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { P as Poster } from '../_shared/esm/Poster-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { P as Poster } from '../_shared/esm/Poster-e05a8b45.js';
|
|
2
|
+
import '../_shared/esm/index-288c66b5.js';
|
|
3
3
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../_shared/esm/Surface-
|
|
6
|
-
import '../_shared/esm/Image-
|
|
7
|
-
import '../_shared/esm/suffix-modifier-
|
|
5
|
+
import '../_shared/esm/Surface-71d21a9e.js';
|
|
6
|
+
import '../_shared/esm/Image-57d08939.js';
|
|
7
|
+
import '../_shared/esm/suffix-modifier-1ce05abe.js';
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
5
|
+
var index = require('../_shared/cjs/index-df60851b.js');
|
|
6
|
+
var index$1 = require('../_shared/cjs/index-9947ac13.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var Text = require('../_shared/cjs/Text-
|
|
9
|
-
var Heading = require('../_shared/cjs/Heading-
|
|
10
|
-
var VerticalSpace = require('../_shared/cjs/VerticalSpace-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
require('../_shared/cjs/
|
|
8
|
+
var Text = require('../_shared/cjs/Text-1c1110a4.js');
|
|
9
|
+
var Heading = require('../_shared/cjs/Heading-fb63844f.js');
|
|
10
|
+
var VerticalSpace = require('../_shared/cjs/VerticalSpace-e128ec68.js');
|
|
11
|
+
var ThemeIcon = require('../_shared/cjs/ThemeIcon-ee814862.js');
|
|
12
|
+
require('../_shared/cjs/suffix-modifier-c8a34402.js');
|
|
13
|
+
require('../_shared/cjs/Surface-8599dbe4.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
16
|
|
|
@@ -29,20 +29,23 @@ var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
|
|
|
29
29
|
"aria-label": ariaLabel,
|
|
30
30
|
tabIndex: 0
|
|
31
31
|
};
|
|
32
|
-
var indeterminateProps =
|
|
33
|
-
var determinateProps =
|
|
32
|
+
var indeterminateProps = index.__assign(index.__assign({}, commonProps), { className: index$1.classNames("arc-ProgressBar-bar", "arc-ProgressBar-bar--indeterminate") });
|
|
33
|
+
var determinateProps = index.__assign(index.__assign({}, commonProps), { className: "arc-ProgressBar-bar", "aria-valuenow": progressValue, style: {
|
|
34
34
|
transform: "translateX(".concat(-100 + progressValue, "%)")
|
|
35
35
|
} });
|
|
36
36
|
return isIndeterminate ? indeterminateProps : determinateProps;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Use `ProgressBar` to show the progress of a specific task within a page.
|
|
41
|
+
*/
|
|
39
42
|
var ProgressBar = function (_a) {
|
|
40
|
-
var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, props =
|
|
41
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
43
|
+
var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, props = index.__rest(_a, ["state", "value", "isIndeterminate", "headline", "ariaLabel", "action", "title", "description", "displayValue"]);
|
|
42
44
|
var progressValue = Math.min(100, Math.max(0, value));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
var autoFocusRef = function (canFocus) { return function (el) {
|
|
46
|
+
canFocus && el && el.focus();
|
|
47
|
+
}; };
|
|
48
|
+
return (React__default["default"].createElement("div", index.__assign({ "data-testid": "progress", className: index$1.classNames("arc-ProgressBar", "arc-ProgressBar--".concat(state)) }, index.filterDataAttrs(props)),
|
|
46
49
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-titleDisplayValueContainer" },
|
|
47
50
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-titleContainer" },
|
|
48
51
|
headline && React__default["default"].createElement(Heading.Heading, { size: "s" }, headline),
|
|
@@ -52,12 +55,12 @@ var ProgressBar = function (_a) {
|
|
|
52
55
|
React__default["default"].createElement(Text.Text, null, displayValue)))),
|
|
53
56
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-container" },
|
|
54
57
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-outerBar" },
|
|
55
|
-
React__default["default"].createElement("div",
|
|
56
|
-
description && (React__default["default"].createElement("div", { className: "arc-ProgressBar-description" },
|
|
58
|
+
React__default["default"].createElement("div", index.__assign({}, getProgressBarProps(isIndeterminate, progressValue, ariaLabel)))),
|
|
59
|
+
description && (React__default["default"].createElement("div", { className: "arc-ProgressBar-description", role: "status" },
|
|
57
60
|
React__default["default"].createElement(Text.Text, { tone: state !== "error" ? "supporting" : "default" }, description))),
|
|
58
61
|
action && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
59
62
|
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
60
|
-
React__default["default"].createElement("button", { className: "arc-ProgressBar-actionButton", onClick: action.action },
|
|
63
|
+
React__default["default"].createElement("button", { ref: autoFocusRef(action.autofocusOnMount), className: "arc-ProgressBar-actionButton", onClick: action.action },
|
|
61
64
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-actionContainer" },
|
|
62
65
|
React__default["default"].createElement(Text.Text, null, action.text),
|
|
63
66
|
action.icon && (React__default["default"].createElement("div", { className: "arc-ProgressBar-actionIcon" },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest, f as filterDataAttrs } from '../_shared/esm/
|
|
1
|
+
import { a as __assign, _ as __rest, f as filterDataAttrs } from '../_shared/esm/index-288c66b5.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
|
-
import React__default
|
|
4
|
-
import { T as Text } from '../_shared/esm/Text-
|
|
5
|
-
import { H as Heading } from '../_shared/esm/Heading-
|
|
6
|
-
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import '../_shared/esm/
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { T as Text } from '../_shared/esm/Text-a46fb76b.js';
|
|
5
|
+
import { H as Heading } from '../_shared/esm/Heading-906c7c7c.js';
|
|
6
|
+
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-b07cd8e6.js';
|
|
7
|
+
import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-c2dc41a6.js';
|
|
8
|
+
import '../_shared/esm/suffix-modifier-1ce05abe.js';
|
|
9
|
+
import '../_shared/esm/Surface-71d21a9e.js';
|
|
10
10
|
|
|
11
11
|
var PROGRESS_BAR_ICON_MAP = {
|
|
12
12
|
refresh: "progressBarRefresh",
|
|
@@ -28,13 +28,16 @@ var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
|
|
|
28
28
|
return isIndeterminate ? indeterminateProps : determinateProps;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Use `ProgressBar` to show the progress of a specific task within a page.
|
|
33
|
+
*/
|
|
31
34
|
var ProgressBar = function (_a) {
|
|
32
35
|
var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, props = __rest(_a, ["state", "value", "isIndeterminate", "headline", "ariaLabel", "action", "title", "description", "displayValue"]);
|
|
33
|
-
var surface = useContext(Context).surface;
|
|
34
36
|
var progressValue = Math.min(100, Math.max(0, value));
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
var autoFocusRef = function (canFocus) { return function (el) {
|
|
38
|
+
canFocus && el && el.focus();
|
|
39
|
+
}; };
|
|
40
|
+
return (React__default.createElement("div", __assign({ "data-testid": "progress", className: classNames("arc-ProgressBar", "arc-ProgressBar--".concat(state)) }, filterDataAttrs(props)),
|
|
38
41
|
React__default.createElement("div", { className: "arc-ProgressBar-titleDisplayValueContainer" },
|
|
39
42
|
React__default.createElement("div", { className: "arc-ProgressBar-titleContainer" },
|
|
40
43
|
headline && React__default.createElement(Heading, { size: "s" }, headline),
|
|
@@ -45,11 +48,11 @@ var ProgressBar = function (_a) {
|
|
|
45
48
|
React__default.createElement("div", { className: "arc-ProgressBar-container" },
|
|
46
49
|
React__default.createElement("div", { className: "arc-ProgressBar-outerBar" },
|
|
47
50
|
React__default.createElement("div", __assign({}, getProgressBarProps(isIndeterminate, progressValue, ariaLabel)))),
|
|
48
|
-
description && (React__default.createElement("div", { className: "arc-ProgressBar-description" },
|
|
51
|
+
description && (React__default.createElement("div", { className: "arc-ProgressBar-description", role: "status" },
|
|
49
52
|
React__default.createElement(Text, { tone: state !== "error" ? "supporting" : "default" }, description))),
|
|
50
53
|
action && (React__default.createElement(React__default.Fragment, null,
|
|
51
54
|
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
52
|
-
React__default.createElement("button", { className: "arc-ProgressBar-actionButton", onClick: action.action },
|
|
55
|
+
React__default.createElement("button", { ref: autoFocusRef(action.autofocusOnMount), className: "arc-ProgressBar-actionButton", onClick: action.action },
|
|
53
56
|
React__default.createElement("div", { className: "arc-ProgressBar-actionContainer" },
|
|
54
57
|
React__default.createElement(Text, null, action.text),
|
|
55
58
|
action.icon && (React__default.createElement("div", { className: "arc-ProgressBar-actionIcon" },
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ProgressStepper = require('../_shared/cjs/ProgressStepper-
|
|
6
|
-
require('../_shared/cjs/
|
|
5
|
+
var ProgressStepper = require('../_shared/cjs/ProgressStepper-fb8405c2.js');
|
|
6
|
+
require('../_shared/cjs/index-df60851b.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/index-9947ac13.js');
|
|
9
|
-
require('../_shared/cjs/
|
|
10
|
-
require('../_shared/cjs/
|
|
11
|
-
require('../_shared/cjs/
|
|
12
|
-
require('../_shared/cjs/
|
|
13
|
-
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
9
|
+
require('../_shared/cjs/VisuallyHidden-b0de4c7b.js');
|
|
10
|
+
require('../_shared/cjs/Icon-0ec0c1fb.js');
|
|
11
|
+
require('../_shared/cjs/suffix-modifier-c8a34402.js');
|
|
12
|
+
require('../_shared/cjs/Surface-8599dbe4.js');
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { P as ProgressStepper } from '../_shared/esm/ProgressStepper-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { P as ProgressStepper } from '../_shared/esm/ProgressStepper-189ed0f9.js';
|
|
2
|
+
import '../_shared/esm/index-288c66b5.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
5
|
-
import '../_shared/esm/
|
|
6
|
-
import '../_shared/esm/
|
|
7
|
-
import '../_shared/esm/
|
|
8
|
-
import '../_shared/esm/
|
|
9
|
-
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
5
|
+
import '../_shared/esm/VisuallyHidden-06692fd3.js';
|
|
6
|
+
import '../_shared/esm/Icon-512f834f.js';
|
|
7
|
+
import '../_shared/esm/suffix-modifier-1ce05abe.js';
|
|
8
|
+
import '../_shared/esm/Surface-71d21a9e.js';
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RadioGroup = require('../_shared/cjs/RadioGroup-
|
|
6
|
-
require('../_shared/cjs/
|
|
5
|
+
var RadioGroup = require('../_shared/cjs/RadioGroup-a4186267.js');
|
|
6
|
+
require('../_shared/cjs/index-df60851b.js');
|
|
7
7
|
require('react');
|
|
8
|
-
require('../_shared/cjs/FormControl-
|
|
8
|
+
require('../_shared/cjs/FormControl-88d48f42.js');
|
|
9
9
|
require('../_shared/cjs/index-9947ac13.js');
|
|
10
|
-
require('../_shared/cjs/Surface-
|
|
11
|
-
require('../_shared/cjs/DisclosureMini-
|
|
12
|
-
require('../_shared/cjs/Text-
|
|
13
|
-
require('../_shared/cjs/suffix-modifier-
|
|
14
|
-
require('../_shared/cjs/ThemeIcon-
|
|
10
|
+
require('../_shared/cjs/Surface-8599dbe4.js');
|
|
11
|
+
require('../_shared/cjs/DisclosureMini-c01ecce0.js');
|
|
12
|
+
require('../_shared/cjs/Text-1c1110a4.js');
|
|
13
|
+
require('../_shared/cjs/suffix-modifier-c8a34402.js');
|
|
14
|
+
require('../_shared/cjs/ThemeIcon-ee814862.js');
|
|
15
|
+
require('../_shared/cjs/VisuallyHidden-b0de4c7b.js');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
exports.RadioButton = RadioGroup.RadioButton;
|
|
18
20
|
exports.RadioGroup = RadioGroup.RadioGroup;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { R as RadioGroup } from '../_shared/esm/RadioGroup-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { a as RadioButton, R as RadioGroup } from '../_shared/esm/RadioGroup-8ff17cbb.js';
|
|
2
|
+
import '../_shared/esm/index-288c66b5.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../_shared/esm/FormControl-
|
|
4
|
+
import '../_shared/esm/FormControl-d873f7fa.js';
|
|
5
5
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
6
|
-
import '../_shared/esm/Surface-
|
|
7
|
-
import '../_shared/esm/DisclosureMini-
|
|
8
|
-
import '../_shared/esm/Text-
|
|
9
|
-
import '../_shared/esm/suffix-modifier-
|
|
10
|
-
import '../_shared/esm/ThemeIcon-
|
|
6
|
+
import '../_shared/esm/Surface-71d21a9e.js';
|
|
7
|
+
import '../_shared/esm/DisclosureMini-38f4c459.js';
|
|
8
|
+
import '../_shared/esm/Text-a46fb76b.js';
|
|
9
|
+
import '../_shared/esm/suffix-modifier-1ce05abe.js';
|
|
10
|
+
import '../_shared/esm/ThemeIcon-c2dc41a6.js';
|
|
11
|
+
import '../_shared/esm/VisuallyHidden-06692fd3.js';
|
package/dist/Rule/Rule.cjs.js
CHANGED
|
@@ -2,18 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var index = require('../_shared/cjs/index-df60851b.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var index$1 = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
+
var Surface = require('../_shared/cjs/Surface-8599dbe4.js');
|
|
7
9
|
|
|
8
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
11
|
|
|
10
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
|
-
* Use `Rule` to display a horizontal rule.
|
|
15
|
+
* Use `Rule` to display a horizontal or vertical rule.
|
|
14
16
|
*/
|
|
15
|
-
var Rule = function (props) {
|
|
16
|
-
|
|
17
|
+
var Rule = function (_a, props) {
|
|
18
|
+
var _b;
|
|
19
|
+
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
|
|
20
|
+
var surface = React.useContext(Surface.Context).surface;
|
|
21
|
+
return (React__default["default"].createElement("hr", index.__assign({ className: index$1.classNames((_b = {
|
|
22
|
+
"arc-Rule": true
|
|
23
|
+
},
|
|
24
|
+
_b["arc-Rule--".concat(orientation)] = true,
|
|
25
|
+
_b["arc-Rule--onDarkSurface"] = surface === "dark",
|
|
26
|
+
_b)) }, index.filterDataAttrs(props))));
|
|
17
27
|
};
|
|
18
28
|
|
|
19
29
|
exports.Rule = Rule;
|
package/dist/Rule/Rule.esm.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import { a as __assign, f as filterDataAttrs } from '../_shared/esm/
|
|
2
|
-
import React__default from 'react';
|
|
1
|
+
import { a as __assign, f as filterDataAttrs } from '../_shared/esm/index-288c66b5.js';
|
|
2
|
+
import React__default, { useContext } from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
+
import { C as Context } from '../_shared/esm/Surface-71d21a9e.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
|
-
* Use `Rule` to display a horizontal rule.
|
|
7
|
+
* Use `Rule` to display a horizontal or vertical rule.
|
|
6
8
|
*/
|
|
7
|
-
var Rule = function (props) {
|
|
8
|
-
|
|
9
|
+
var Rule = function (_a, props) {
|
|
10
|
+
var _b;
|
|
11
|
+
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
|
|
12
|
+
var surface = useContext(Context).surface;
|
|
13
|
+
return (React__default.createElement("hr", __assign({ className: classNames((_b = {
|
|
14
|
+
"arc-Rule": true
|
|
15
|
+
},
|
|
16
|
+
_b["arc-Rule--".concat(orientation)] = true,
|
|
17
|
+
_b["arc-Rule--onDarkSurface"] = surface === "dark",
|
|
18
|
+
_b)) }, filterDataAttrs(props))));
|
|
9
19
|
};
|
|
10
20
|
|
|
11
21
|
export { Rule };
|