@arc-ui/components 11.4.2 → 11.6.0
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.d.ts +57 -0
- package/dist/Alert/Alert.cjs.js +142 -0
- package/dist/Alert/Alert.esm.d.ts +57 -0
- package/dist/Alert/Alert.esm.js +134 -0
- package/dist/Alert/package.json +7 -0
- package/dist/Align/Align.cjs.js +6 -6
- package/dist/Align/Align.esm.js +2 -2
- package/dist/Badge/Badge.cjs.js +7 -7
- package/dist/Badge/Badge.esm.js +4 -4
- package/dist/Base/Base.cjs.d.ts +1 -1
- package/dist/Base/Base.cjs.js +2 -2
- package/dist/Base/Base.esm.d.ts +1 -1
- package/dist/Base/Base.esm.js +2 -2
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +4 -4
- package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.esm.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +11 -643
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +10 -642
- package/dist/Button/Button.cjs.d.ts +1 -1
- package/dist/Button/Button.cjs.js +6 -5
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +6 -5
- package/dist/Card/Card.cjs.d.ts +1 -130
- package/dist/Card/Card.cjs.js +12 -119
- package/dist/Card/Card.esm.d.ts +1 -130
- package/dist/Card/Card.esm.js +11 -118
- package/dist/Checkbox/Checkbox.cjs.d.ts +1 -59
- package/dist/Checkbox/Checkbox.cjs.js +13 -55
- package/dist/Checkbox/Checkbox.esm.d.ts +1 -59
- package/dist/Checkbox/Checkbox.esm.js +12 -54
- package/dist/Clock/Clock.cjs.js +6 -6
- package/dist/Clock/Clock.esm.js +1 -1
- package/dist/Columns/Columns.cjs.d.ts +1 -76
- package/dist/Columns/Columns.cjs.js +6 -52
- package/dist/Columns/Columns.esm.d.ts +1 -76
- package/dist/Columns/Columns.esm.js +5 -51
- package/dist/Curve/Curve.cjs.d.ts +1 -1
- package/dist/Curve/Curve.cjs.js +3 -3
- package/dist/Curve/Curve.esm.d.ts +1 -1
- package/dist/Curve/Curve.esm.js +3 -3
- package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +8 -8
- package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
- package/dist/Disclosure/Disclosure.esm.js +4 -4
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -0
- package/dist/DisclosureMini/DisclosureMini.cjs.js +16 -0
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -0
- package/dist/DisclosureMini/DisclosureMini.esm.js +8 -0
- package/dist/DisclosureMini/package.json +7 -0
- package/dist/Elevation/Elevation.cjs.d.ts +4 -0
- package/dist/Elevation/Elevation.cjs.js +7 -5
- package/dist/Elevation/Elevation.esm.d.ts +4 -0
- package/dist/Elevation/Elevation.esm.js +4 -2
- package/dist/Filter/Filter.cjs.d.ts +1 -0
- package/dist/Filter/Filter.cjs.js +13 -0
- package/dist/Filter/Filter.esm.d.ts +1 -0
- package/dist/Filter/Filter.esm.js +5 -0
- package/dist/Filter/package.json +7 -0
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +8 -6
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +8 -6
- package/dist/Group/Group.cjs.d.ts +1 -46
- package/dist/Group/Group.cjs.js +6 -43
- package/dist/Group/Group.esm.d.ts +1 -46
- package/dist/Group/Group.esm.js +5 -42
- package/dist/Heading/Heading.cjs.d.ts +1 -1
- package/dist/Heading/Heading.cjs.js +4 -4
- package/dist/Heading/Heading.esm.d.ts +1 -1
- package/dist/Heading/Heading.esm.js +4 -4
- package/dist/Icon/Icon.cjs.d.ts +1 -1
- package/dist/Icon/Icon.cjs.js +4 -4
- package/dist/Icon/Icon.esm.d.ts +1 -1
- package/dist/Icon/Icon.esm.js +4 -4
- package/dist/Image/Image.cjs.d.ts +1 -1
- package/dist/Image/Image.cjs.js +3 -3
- package/dist/Image/Image.esm.d.ts +1 -1
- package/dist/Image/Image.esm.js +3 -3
- package/dist/Markup/Markup.cjs.js +6 -6
- package/dist/Markup/Markup.esm.js +2 -2
- package/dist/Pagination/Pagination.cjs.d.ts +20 -0
- package/dist/Pagination/Pagination.cjs.js +87 -0
- package/dist/Pagination/Pagination.esm.d.ts +20 -0
- package/dist/Pagination/Pagination.esm.js +79 -0
- package/dist/Pagination/package.json +7 -0
- package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +28 -0
- package/dist/PaginationSimple/PaginationSimple.cjs.js +47 -0
- package/dist/PaginationSimple/PaginationSimple.esm.d.ts +28 -0
- package/dist/PaginationSimple/PaginationSimple.esm.js +39 -0
- package/dist/PaginationSimple/package.json +7 -0
- package/dist/Poster/Poster.cjs.d.ts +1 -81
- package/dist/Poster/Poster.cjs.js +8 -45
- package/dist/Poster/Poster.esm.d.ts +1 -81
- package/dist/Poster/Poster.esm.js +7 -44
- package/dist/ProgressBar/ProgressBar.cjs.js +22 -41
- package/dist/ProgressBar/ProgressBar.esm.js +13 -32
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
- package/dist/RadioGroup/RadioGroup.cjs.js +12 -68
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
- package/dist/RadioGroup/RadioGroup.esm.js +11 -67
- package/dist/Rule/Rule.cjs.js +5 -5
- package/dist/Rule/Rule.esm.js +2 -2
- package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +25 -0
- package/dist/ScrollToTop/ScrollToTop.cjs.js +68 -0
- package/dist/ScrollToTop/ScrollToTop.esm.d.ts +25 -0
- package/dist/ScrollToTop/ScrollToTop.esm.js +60 -0
- package/dist/ScrollToTop/package.json +7 -0
- package/dist/Section/Section.cjs.d.ts +1 -1
- package/dist/Section/Section.cjs.js +2 -2
- package/dist/Section/Section.esm.d.ts +1 -1
- package/dist/Section/Section.esm.js +2 -2
- package/dist/Select/Select.cjs.d.ts +2 -2
- package/dist/Select/Select.cjs.js +9 -8
- package/dist/Select/Select.esm.d.ts +2 -2
- package/dist/Select/Select.esm.js +9 -8
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
- package/dist/SiteFooter/SiteFooter.cjs.js +14 -69
- package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
- package/dist/SiteFooter/SiteFooter.esm.js +13 -67
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -252
- package/dist/SiteHeader/SiteHeader.cjs.js +17 -661
- package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -252
- package/dist/SiteHeader/SiteHeader.esm.js +15 -659
- package/dist/Surface/Surface.cjs.d.ts +1 -1
- package/dist/Surface/Surface.cjs.js +2 -2
- package/dist/Surface/Surface.esm.d.ts +1 -1
- package/dist/Surface/Surface.esm.js +2 -2
- package/dist/Switch/Switch.cjs.d.ts +2 -2
- package/dist/Switch/Switch.cjs.js +10 -8
- package/dist/Switch/Switch.esm.d.ts +2 -2
- package/dist/Switch/Switch.esm.js +10 -8
- package/dist/Tag/Tag.cjs.js +39 -18
- package/dist/Tag/Tag.esm.js +31 -10
- package/dist/Text/Text.cjs.d.ts +1 -1
- package/dist/Text/Text.cjs.js +4 -4
- package/dist/Text/Text.esm.d.ts +1 -1
- package/dist/Text/Text.esm.js +4 -4
- package/dist/TextArea/TextArea.cjs.d.ts +61 -0
- package/dist/TextArea/TextArea.cjs.js +87 -0
- package/dist/TextArea/TextArea.esm.d.ts +61 -0
- package/dist/TextArea/TextArea.esm.js +79 -0
- package/dist/TextArea/package.json +7 -0
- package/dist/TextInput/TextInput.cjs.d.ts +1 -75
- package/dist/TextInput/TextInput.cjs.js +13 -76
- package/dist/TextInput/TextInput.esm.d.ts +1 -75
- package/dist/TextInput/TextInput.esm.js +12 -75
- package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -26
- package/dist/UniversalHeader/UniversalHeader.cjs.js +5 -30
- package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -26
- package/dist/UniversalHeader/UniversalHeader.esm.js +4 -29
- package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +1 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +1 -1
- package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
- package/dist/_shared/cjs/{Base-e2b846fe.js → Base-569e4334.js} +3 -3
- package/dist/_shared/cjs/{BrandLogo-3c6102ef.js → BrandLogo-8008f0c4.js} +7 -7
- package/dist/_shared/cjs/Breadcrumbs-8b554370.d.ts +61 -0
- package/dist/_shared/cjs/Breadcrumbs-8b554370.js +106 -0
- package/dist/_shared/cjs/BtIconAlert-637db790.js +38 -0
- package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
- package/dist/_shared/cjs/BtIconCrossAlt2Px-30dc2688.js +29 -0
- package/dist/_shared/cjs/{Button-1af6868c.js → Button-27512fee.js} +16 -37
- package/dist/_shared/cjs/Card-804ab0e5.d.ts +136 -0
- package/dist/_shared/cjs/Card-804ab0e5.js +124 -0
- package/dist/_shared/cjs/Checkbox-21d3c4f6.d.ts +64 -0
- package/dist/_shared/cjs/Checkbox-21d3c4f6.js +62 -0
- package/dist/_shared/cjs/Columns-e90798f8.d.ts +76 -0
- package/dist/_shared/cjs/Columns-e90798f8.js +57 -0
- package/dist/_shared/cjs/{Curve-e72ce25b.js → Curve-b05589d8.js} +6 -6
- package/dist/_shared/cjs/DisclosureMini-067e0319.d.ts +37 -0
- package/dist/_shared/cjs/DisclosureMini-067e0319.js +44 -0
- package/dist/_shared/cjs/Filter-f7d2fbda.d.ts +83 -0
- package/dist/_shared/cjs/Filter-f7d2fbda.js +121 -0
- package/dist/_shared/cjs/{FormControl-d4d9c665.d.ts → FormControl-9aaddd54.d.ts} +6 -29
- package/dist/_shared/cjs/FormControl-9aaddd54.js +96 -0
- package/dist/_shared/cjs/Group-d83f8c2e.d.ts +46 -0
- package/dist/_shared/cjs/Group-d83f8c2e.js +48 -0
- package/dist/_shared/cjs/{Heading-cc38c3ec.js → Heading-d45f6a7f.js} +7 -7
- package/dist/_shared/cjs/{Icon-719d13d4.js → Icon-9ae8dbe1.js} +7 -7
- package/dist/_shared/cjs/{Image-fe760a06.js → Image-3bf4b4f3.js} +8 -8
- package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +27 -0
- package/dist/_shared/cjs/NavItem-df20237c.d.ts +43 -0
- package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +49 -0
- package/dist/_shared/cjs/Poster-e05bbe13.d.ts +81 -0
- package/dist/_shared/cjs/Poster-e05bbe13.js +50 -0
- package/dist/_shared/cjs/RadioGroup-81805ef9.d.ts +97 -0
- package/dist/_shared/cjs/RadioGroup-81805ef9.js +70 -0
- package/dist/_shared/cjs/{Section-780f2377.js → Section-48aca5f5.js} +5 -5
- package/dist/_shared/cjs/SiteFooter-c540b5f1.d.ts +62 -0
- package/dist/_shared/cjs/SiteFooter-c540b5f1.js +73 -0
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
- package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.d.ts +78 -0
- package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.js +673 -0
- package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
- package/dist/_shared/cjs/{Surface-d6b8010e.js → Surface-6da0a78e.js} +8 -8
- package/dist/_shared/cjs/{Text-1d3844be.js → Text-6f2827e6.js} +7 -7
- package/dist/_shared/cjs/TextInput-33314fc4.d.ts +10 -0
- package/dist/_shared/cjs/TextInput-33314fc4.js +78 -0
- package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
- package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.d.ts +26 -0
- package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.js +35 -0
- package/dist/_shared/cjs/{VerticalSpace-7aed88ab.js → VerticalSpace-86f697e7.js} +5 -5
- package/dist/_shared/cjs/debounce-506538c5.js +544 -0
- package/dist/_shared/cjs/{index-78b35bc1.js → filter-data-attrs-a30dcf5f.js} +12 -12
- package/dist/_shared/cjs/index-699086a7.d.ts +2 -0
- package/dist/_shared/cjs/index-74488a9f.d.ts +2 -0
- package/dist/_shared/cjs/index-9483ad5f.d.ts +2 -2
- package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
- package/dist/_shared/cjs/index-e340924e.d.ts +2 -0
- package/dist/_shared/cjs/index-e6d20018.d.ts +3 -0
- package/dist/_shared/cjs/index-eb06f640.d.ts +2 -0
- package/dist/_shared/cjs/index-f419cf04.d.ts +2 -0
- package/dist/_shared/cjs/{suffix-modifier-edf7851e.js → suffix-modifier-1ee2da04.js} +2 -2
- package/dist/_shared/esm/{Base-c235dc45.js → Base-6c01e0ec.js} +1 -1
- package/dist/_shared/esm/{BrandLogo-4f13fe85.js → BrandLogo-56699561.js} +3 -3
- package/dist/_shared/esm/Breadcrumbs-04590057.d.ts +61 -0
- package/dist/_shared/esm/Breadcrumbs-04590057.js +100 -0
- package/dist/_shared/esm/BtIconAlert-55a6ed5c.js +32 -0
- package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
- package/dist/_shared/esm/BtIconCrossAlt2Px-a6a9f431.js +23 -0
- package/dist/_shared/esm/{Button-10700df4.js → Button-d319fa11.js} +6 -27
- package/dist/_shared/esm/Card-e79eb6c8.d.ts +136 -0
- package/dist/_shared/esm/Card-e79eb6c8.js +118 -0
- package/dist/_shared/esm/Checkbox-94300d8c.d.ts +64 -0
- package/dist/_shared/esm/Checkbox-94300d8c.js +56 -0
- package/dist/_shared/esm/Columns-8704515b.d.ts +76 -0
- package/dist/_shared/esm/Columns-8704515b.js +51 -0
- package/dist/_shared/esm/{Curve-50697f7e.js → Curve-3e87b1bc.js} +2 -2
- package/dist/_shared/esm/DisclosureMini-022beae3.d.ts +37 -0
- package/dist/_shared/esm/DisclosureMini-022beae3.js +38 -0
- package/dist/_shared/esm/Filter-41b391e3.d.ts +83 -0
- package/dist/_shared/esm/Filter-41b391e3.js +115 -0
- package/dist/_shared/esm/{FormControl-2cb96de7.d.ts → FormControl-5e3fdca3.d.ts} +6 -29
- package/dist/_shared/esm/FormControl-5e3fdca3.js +88 -0
- package/dist/_shared/esm/Group-d62c3f56.d.ts +46 -0
- package/dist/_shared/esm/Group-d62c3f56.js +42 -0
- package/dist/_shared/esm/{Heading-eb1e42db.js → Heading-b61432fb.js} +3 -3
- package/dist/_shared/esm/{Icon-61f7237a.js → Icon-fd247973.js} +3 -3
- package/dist/_shared/esm/{Image-c0f3d42f.js → Image-3596ce55.js} +2 -2
- package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +27 -0
- package/dist/_shared/esm/NavItem-df20237c.d.ts +43 -0
- package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +49 -0
- package/dist/_shared/esm/Poster-107d6954.d.ts +81 -0
- package/dist/_shared/esm/Poster-107d6954.js +44 -0
- package/dist/_shared/esm/RadioGroup-1fd0f389.d.ts +97 -0
- package/dist/_shared/esm/RadioGroup-1fd0f389.js +64 -0
- package/dist/_shared/esm/{Section-7bc71e26.js → Section-b8038d66.js} +1 -1
- package/dist/_shared/esm/SiteFooter-8075a9bd.d.ts +62 -0
- package/dist/_shared/esm/SiteFooter-8075a9bd.js +67 -0
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
- package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.d.ts +78 -0
- package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.js +666 -0
- package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
- package/dist/_shared/esm/{Surface-bf201530.js → Surface-bb100ef8.js} +1 -1
- package/dist/_shared/esm/{Text-6b958ad8.js → Text-00e9743b.js} +3 -3
- package/dist/_shared/esm/TextInput-1631dbc4.d.ts +10 -0
- package/dist/_shared/esm/TextInput-1631dbc4.js +72 -0
- package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
- package/dist/_shared/esm/UniversalHeader-7926abde.d.ts +26 -0
- package/dist/_shared/esm/UniversalHeader-7926abde.js +29 -0
- package/dist/_shared/esm/{VerticalSpace-3579b20e.js → VerticalSpace-93980c9c.js} +1 -1
- package/dist/_shared/esm/debounce-e228705f.js +542 -0
- package/dist/_shared/esm/{index-229fc864.js → filter-data-attrs-afdb7d32.js} +12 -12
- package/dist/_shared/esm/index-699086a7.d.ts +2 -0
- package/dist/_shared/esm/index-74488a9f.d.ts +2 -0
- package/dist/_shared/esm/index-9483ad5f.d.ts +2 -2
- package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
- package/dist/_shared/esm/index-e340924e.d.ts +2 -0
- package/dist/_shared/esm/index-e6d20018.d.ts +3 -0
- package/dist/_shared/esm/index-eb06f640.d.ts +2 -0
- package/dist/_shared/esm/index-f419cf04.d.ts +2 -0
- package/dist/_shared/esm/{suffix-modifier-f5e28822.js → suffix-modifier-7e640670.js} +1 -1
- package/dist/index.es.js +304 -113
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +534 -341
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Alert/Alert.d.ts +56 -0
- package/dist/types/components/Alert/index.d.ts +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +6 -1
- package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +36 -0
- package/dist/types/components/DisclosureMini/index.d.ts +1 -0
- package/dist/types/components/Elevation/Elevation.d.ts +4 -0
- package/dist/types/components/Filter/Filter.d.ts +38 -0
- package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +16 -0
- package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +12 -0
- package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +12 -0
- package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +12 -0
- package/dist/types/components/Filter/index.d.ts +1 -0
- package/dist/types/components/FormControl/FormControl.d.ts +4 -0
- package/dist/types/components/Pagination/Pagination.d.ts +19 -0
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +27 -0
- package/dist/types/components/PaginationSimple/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +24 -0
- package/dist/types/components/ScrollToTop/index.d.ts +1 -0
- package/dist/types/components/Select/Select.d.ts +1 -1
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +2 -0
- package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +8 -0
- package/dist/types/components/Switch/Switch.d.ts +1 -1
- package/dist/types/components/TextArea/TextArea.d.ts +60 -0
- package/dist/types/components/TextArea/index.d.ts +1 -0
- package/dist/types/components/TextInput/TextInput.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/hooks/use-pagination.d.ts +1 -0
- package/dist/types/styles.d.ts +10 -4
- package/package.json +4 -4
- package/dist/_shared/cjs/FormControl-d4d9c665.js +0 -148
- package/dist/_shared/esm/FormControl-2cb96de7.js +0 -139
- package/dist/types/components/FormControl/FormControlDisclosure/FormControlDisclosure.d.ts +0 -28
- package/dist/types/components/FormControl/FormControlDisclosure/index.d.ts +0 -1
- /package/dist/_shared/cjs/{Base-e2b846fe.d.ts → Base-569e4334.d.ts} +0 -0
- /package/dist/_shared/cjs/{BrandLogo-3c6102ef.d.ts → BrandLogo-8008f0c4.d.ts} +0 -0
- /package/dist/_shared/cjs/{Button-1af6868c.d.ts → Button-27512fee.d.ts} +0 -0
- /package/dist/_shared/cjs/{Curve-e72ce25b.d.ts → Curve-b05589d8.d.ts} +0 -0
- /package/dist/_shared/cjs/{Heading-cc38c3ec.d.ts → Heading-d45f6a7f.d.ts} +0 -0
- /package/dist/_shared/cjs/{Icon-719d13d4.d.ts → Icon-9ae8dbe1.d.ts} +0 -0
- /package/dist/_shared/cjs/{Image-fe760a06.d.ts → Image-3bf4b4f3.d.ts} +0 -0
- /package/dist/_shared/cjs/{Section-780f2377.d.ts → Section-48aca5f5.d.ts} +0 -0
- /package/dist/_shared/cjs/{Surface-d6b8010e.d.ts → Surface-6da0a78e.d.ts} +0 -0
- /package/dist/_shared/cjs/{Text-1d3844be.d.ts → Text-6f2827e6.d.ts} +0 -0
- /package/dist/_shared/cjs/{VerticalSpace-7aed88ab.d.ts → VerticalSpace-86f697e7.d.ts} +0 -0
- /package/dist/_shared/cjs/{index-78b35bc1.d.ts → filter-data-attrs-a30dcf5f.d.ts} +0 -0
- /package/dist/_shared/cjs/{suffix-modifier-edf7851e.d.ts → suffix-modifier-1ee2da04.d.ts} +0 -0
- /package/dist/_shared/esm/{Base-c235dc45.d.ts → Base-6c01e0ec.d.ts} +0 -0
- /package/dist/_shared/esm/{BrandLogo-4f13fe85.d.ts → BrandLogo-56699561.d.ts} +0 -0
- /package/dist/_shared/esm/{Button-10700df4.d.ts → Button-d319fa11.d.ts} +0 -0
- /package/dist/_shared/esm/{Curve-50697f7e.d.ts → Curve-3e87b1bc.d.ts} +0 -0
- /package/dist/_shared/esm/{Heading-eb1e42db.d.ts → Heading-b61432fb.d.ts} +0 -0
- /package/dist/_shared/esm/{Icon-61f7237a.d.ts → Icon-fd247973.d.ts} +0 -0
- /package/dist/_shared/esm/{Image-c0f3d42f.d.ts → Image-3596ce55.d.ts} +0 -0
- /package/dist/_shared/esm/{Section-7bc71e26.d.ts → Section-b8038d66.d.ts} +0 -0
- /package/dist/_shared/esm/{Surface-bf201530.d.ts → Surface-bb100ef8.d.ts} +0 -0
- /package/dist/_shared/esm/{Text-6b958ad8.d.ts → Text-00e9743b.d.ts} +0 -0
- /package/dist/_shared/esm/{VerticalSpace-3579b20e.d.ts → VerticalSpace-93980c9c.d.ts} +0 -0
- /package/dist/_shared/esm/{index-229fc864.d.ts → filter-data-attrs-afdb7d32.d.ts} +0 -0
- /package/dist/_shared/esm/{suffix-modifier-f5e28822.d.ts → suffix-modifier-7e640670.d.ts} +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ReactNode } from "react";
|
|
4
|
+
declare const BreadcrumbsLink: FC<LinkProps>;
|
|
5
|
+
interface LinkProps {
|
|
6
|
+
/**
|
|
7
|
+
* Render children of `breadcrumbs.link`
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Where breadcrumb linkshould lead too
|
|
12
|
+
*/
|
|
13
|
+
href?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Pass a function to the breadcrumb item
|
|
16
|
+
*/
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Highlights item in breadcrumb (This also removes the a tag and any links)
|
|
20
|
+
*/
|
|
21
|
+
isActive?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Ref to `<a>` tag
|
|
24
|
+
*/
|
|
25
|
+
ref?: React.Ref<HTMLAnchorElement>;
|
|
26
|
+
/**
|
|
27
|
+
* React router property
|
|
28
|
+
*/
|
|
29
|
+
navigate?: () => void;
|
|
30
|
+
}
|
|
31
|
+
declare const BreadcrumbsItem: FC<ItemProps>;
|
|
32
|
+
interface ItemProps {
|
|
33
|
+
/**
|
|
34
|
+
* Render child elements within `Breadcrumbs.Item`
|
|
35
|
+
*/
|
|
36
|
+
children?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Use icon as a spacer that will be positioned after `Breadcrumbs.Item`.
|
|
39
|
+
*/
|
|
40
|
+
spacerIconAfter?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Use icon as a spacer that will be positioned before `Breadcrumbs.Item`.
|
|
43
|
+
*/
|
|
44
|
+
spacerIconBefore?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** Use `Breadcrumbs` to add a secondary navigation scheme that reveals the user’s location. Each item should be wrapped with `Breadcrumbs.Item` */
|
|
47
|
+
declare const Breadcrumbs: FC<BreadcrumbsProps> & {
|
|
48
|
+
Item: typeof BreadcrumbsItem;
|
|
49
|
+
Link: typeof BreadcrumbsLink;
|
|
50
|
+
};
|
|
51
|
+
interface BreadcrumbsProps {
|
|
52
|
+
/**
|
|
53
|
+
* Contents of the Breadcrumbs. Should only contain `Breadcrumb.Item`.
|
|
54
|
+
*/
|
|
55
|
+
children: ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Select if you want the Nav items to be Light
|
|
58
|
+
*/
|
|
59
|
+
isLight?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export { BreadcrumbsLink as default, LinkProps, ItemProps, Breadcrumbs, BreadcrumbsProps };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React__default, { useRef, useState, useEffect } from 'react';
|
|
2
|
+
import { d as debounce_1 } from './debounce-e228705f.js';
|
|
3
|
+
import { B as BtIconChevronLeft2Px_2, a as BtIconChevronRight2Px_2 } from './BtIconChevronRight2Px-b8e7b4ad.js';
|
|
4
|
+
import { I as Icon } from './Icon-fd247973.js';
|
|
5
|
+
import { a as __assign } from './filter-data-attrs-afdb7d32.js';
|
|
6
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
7
|
+
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
8
|
+
|
|
9
|
+
var BreadcrumbsItem = function (_a) {
|
|
10
|
+
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children;
|
|
11
|
+
return (React__default.createElement("li", { className: "arc-Breadcrumbs-item" },
|
|
12
|
+
spacerIconBefore && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px" },
|
|
13
|
+
React__default.createElement(Icon, { icon: BtIconChevronLeft2Px_2 }))),
|
|
14
|
+
children,
|
|
15
|
+
spacerIconAfter && (React__default.createElement("div", { className: "arc-Breadcrumbs-spacerIcon" },
|
|
16
|
+
React__default.createElement(Icon, { icon: BtIconChevronRight2Px_2 })))));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var BreadcrumbsLink = React__default.forwardRef(function (_a, ref) {
|
|
20
|
+
var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children;
|
|
21
|
+
return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", __assign({}, (isActive && { "aria-hidden": "true" }), { onClick: onClick, className: classNames({
|
|
22
|
+
"arc-Breadcrumbs-text": true,
|
|
23
|
+
"arc-Breadcrumbs-text--active": isActive
|
|
24
|
+
}) }), children)) : (React__default.createElement("a", __assign({}, (onClick && ref
|
|
25
|
+
? { onClick: onClick }
|
|
26
|
+
: { onClick: handleLinkClick({ handler: onClick }) }), { className: "arc-Breadcrumbs-text", ref: ref, href: href }), children))));
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** Use `Breadcrumbs` to add a secondary navigation scheme that reveals the user’s location. Each item should be wrapped with `Breadcrumbs.Item` */
|
|
30
|
+
var Breadcrumbs = function (_a) {
|
|
31
|
+
var isLight = _a.isLight, children = _a.children;
|
|
32
|
+
var breadcrumbsList = useRef(null);
|
|
33
|
+
var _b = useState(false), isCompressed = _b[0], setIsCompressed = _b[1];
|
|
34
|
+
var _c = useState(false), showBackTrail = _c[0], setShowBackTrail = _c[1];
|
|
35
|
+
useEffect(function () {
|
|
36
|
+
React__default.Children.map(children, function (item) {
|
|
37
|
+
if (item && item.type !== BreadcrumbsItem) {
|
|
38
|
+
throw new Error("Illegal child passed to <Breadcrumbs />. Ensure to only use <Breadcrumbs.Item />");
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}, [children]);
|
|
42
|
+
useEffect(function () {
|
|
43
|
+
var handleResize = debounce_1(function () {
|
|
44
|
+
var _a;
|
|
45
|
+
setShowBackTrail(false);
|
|
46
|
+
setIsCompressed(false);
|
|
47
|
+
if (window.innerWidth < 426) {
|
|
48
|
+
setShowBackTrail(true);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* TODO! Revise this if statement
|
|
52
|
+
*/
|
|
53
|
+
if (children != null &&
|
|
54
|
+
React__default.Children.count(children) > 2 &&
|
|
55
|
+
breadcrumbsList.current != null &&
|
|
56
|
+
(breadcrumbsList.current.offsetWidth ===
|
|
57
|
+
((_a = breadcrumbsList.current.parentElement) === null || _a === void 0 ? void 0 : _a.offsetWidth) ||
|
|
58
|
+
breadcrumbsList.current.offsetHeight > 24)) {
|
|
59
|
+
setIsCompressed(true);
|
|
60
|
+
}
|
|
61
|
+
}, 200);
|
|
62
|
+
handleResize();
|
|
63
|
+
window.addEventListener("resize", handleResize);
|
|
64
|
+
return function () {
|
|
65
|
+
window.removeEventListener("resize", handleResize);
|
|
66
|
+
};
|
|
67
|
+
// eslint-disable-next-line
|
|
68
|
+
}, []);
|
|
69
|
+
var items = React__default.Children.toArray(children);
|
|
70
|
+
return (React__default.createElement("nav", { "aria-label": "Breadcrumbs", role: "navigation", className: classNames({
|
|
71
|
+
"arc-Breadcrumbs": true,
|
|
72
|
+
"arc-Breadcrumbs--dark": isLight
|
|
73
|
+
}) },
|
|
74
|
+
React__default.createElement("ul", { 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,
|
|
75
|
+
React__default.createElement(Breadcrumbs.Item, { spacerIconAfter: true }, items[0].props.children),
|
|
76
|
+
React__default.createElement(Breadcrumbs.Item, { spacerIconAfter: true },
|
|
77
|
+
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" }, "...")),
|
|
78
|
+
React__default.createElement(Breadcrumbs.Item, null, items[items.length - 1].props &&
|
|
79
|
+
items[items.length - 1].props.children &&
|
|
80
|
+
React__default.cloneElement(items[items.length - 1].props.children, {
|
|
81
|
+
isActive: true
|
|
82
|
+
})))) : (React__default.createElement(React__default.Fragment, null,
|
|
83
|
+
items
|
|
84
|
+
.slice(0, items.length - 1)
|
|
85
|
+
.map(function (item, index) {
|
|
86
|
+
return (React__default.createElement(React__default.Fragment, { key: "listItem-".concat(index) },
|
|
87
|
+
React__default.createElement(Breadcrumbs.Item, { spacerIconAfter: true }, item.props.children)));
|
|
88
|
+
}),
|
|
89
|
+
React__default.createElement(Breadcrumbs.Item, null, items[items.length - 1].props &&
|
|
90
|
+
items[items.length - 1].props.children &&
|
|
91
|
+
React__default.cloneElement(items[items.length - 1].props.children, {
|
|
92
|
+
isActive: items.length > 1
|
|
93
|
+
})))))))));
|
|
94
|
+
};
|
|
95
|
+
BreadcrumbsItem.displayName = "Breadcrumbs.Item";
|
|
96
|
+
BreadcrumbsLink.displayName = "Breadcrumbs.Link";
|
|
97
|
+
Breadcrumbs.Item = BreadcrumbsItem;
|
|
98
|
+
Breadcrumbs.Link = BreadcrumbsLink;
|
|
99
|
+
|
|
100
|
+
export { Breadcrumbs as B };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const React = React__default;
|
|
4
|
+
const BtIconAlert = props =>
|
|
5
|
+
/*#__PURE__*/ React.createElement(
|
|
6
|
+
"svg",
|
|
7
|
+
Object.assign(
|
|
8
|
+
{
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
viewBox: "0 0 32 32"
|
|
11
|
+
},
|
|
12
|
+
props
|
|
13
|
+
),
|
|
14
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
15
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
16
|
+
d:
|
|
17
|
+
"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",
|
|
18
|
+
fill: "currentColor"
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z"
|
|
23
|
+
}),
|
|
24
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
25
|
+
d:
|
|
26
|
+
"M16.00488,19.00977a.49972.49972,0,0,0,.5-.5L16.50684,9.5a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,19.00977Z",
|
|
27
|
+
fill: "currentColor"
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
var BtIconAlert_2 = BtIconAlert;
|
|
31
|
+
|
|
32
|
+
export { BtIconAlert_2 as B };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const React = React__default;
|
|
4
|
+
const BtIconChevronLeftMid = props =>
|
|
5
|
+
/*#__PURE__*/ React.createElement(
|
|
6
|
+
"svg",
|
|
7
|
+
Object.assign(
|
|
8
|
+
{
|
|
9
|
+
viewBox: "0 0 16 16",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
},
|
|
13
|
+
props
|
|
14
|
+
),
|
|
15
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
clipRule: "evenodd",
|
|
18
|
+
d:
|
|
19
|
+
"M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
|
|
20
|
+
fill: "currentColor"
|
|
21
|
+
})
|
|
22
|
+
);
|
|
23
|
+
var BtIconChevronLeftMid_2 = BtIconChevronLeftMid;
|
|
24
|
+
|
|
25
|
+
export { BtIconChevronLeftMid_2 as B };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const React = React__default;
|
|
4
|
+
const BtIconCrossAlt2Px = props =>
|
|
5
|
+
/*#__PURE__*/ React.createElement(
|
|
6
|
+
"svg",
|
|
7
|
+
Object.assign(
|
|
8
|
+
{
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
viewBox: "0 0 32 32"
|
|
11
|
+
},
|
|
12
|
+
props
|
|
13
|
+
),
|
|
14
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
15
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
16
|
+
d:
|
|
17
|
+
"M17.41406,16l3.793-3.793A.99989.99989,0,0,0,19.793,10.793L16,14.58594l-3.793-3.793A.99989.99989,0,0,0,10.793,12.207L14.58594,16l-3.793,3.793A.99989.99989,0,1,0,12.207,21.207L16,17.41406l3.793,3.793A.99989.99989,0,0,0,21.207,19.793Z",
|
|
18
|
+
fill: "currentColor"
|
|
19
|
+
})
|
|
20
|
+
);
|
|
21
|
+
var BtIconCrossAlt2Px_2 = BtIconCrossAlt2Px;
|
|
22
|
+
|
|
23
|
+
export { BtIconCrossAlt2Px_2 as B };
|
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './
|
|
2
|
-
import
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
|
|
2
|
+
import { B as BtIconChevronLeftMid_2 } from './BtIconChevronLeftMid-9f4f3a3d.js';
|
|
3
3
|
import { B as BtIconChevronRightMid_2 } from './BtIconChevronRightMid-d9b11761.js';
|
|
4
4
|
import { c as classNames } from './index-2ae58626.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const React = React__default;
|
|
10
|
-
const BtIconChevronLeftMid = props =>
|
|
11
|
-
/*#__PURE__*/ React.createElement(
|
|
12
|
-
"svg",
|
|
13
|
-
Object.assign(
|
|
14
|
-
{
|
|
15
|
-
viewBox: "0 0 16 16",
|
|
16
|
-
fill: "none",
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
-
},
|
|
19
|
-
props
|
|
20
|
-
),
|
|
21
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
22
|
-
fillRule: "evenodd",
|
|
23
|
-
clipRule: "evenodd",
|
|
24
|
-
d:
|
|
25
|
-
"M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
|
|
26
|
-
fill: "currentColor"
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
var BtIconChevronLeftMid_2 = BtIconChevronLeftMid;
|
|
5
|
+
import React__default, { forwardRef, useContext } from 'react';
|
|
6
|
+
import { s as suffixModifier } from './suffix-modifier-7e640670.js';
|
|
7
|
+
import { I as Icon } from './Icon-fd247973.js';
|
|
8
|
+
import { C as Context } from './Surface-bb100ef8.js';
|
|
30
9
|
|
|
31
10
|
/**
|
|
32
11
|
* Use `Button` to allow users to take actions with clicks and taps.
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, HTMLAttributes } from "react";
|
|
4
|
+
/**
|
|
5
|
+
* Detect interaction mode
|
|
6
|
+
*/
|
|
7
|
+
declare const useInteractionMode: () => {
|
|
8
|
+
interactionMode: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Use `Card` to contain content and actions about a single subject.
|
|
12
|
+
*/
|
|
13
|
+
declare const Card: FC<CardProps> & {
|
|
14
|
+
Block: typeof CardBlock;
|
|
15
|
+
Image: typeof CardImage;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Internal `Card.Block` component to section blocks of content within a Card.
|
|
19
|
+
*/
|
|
20
|
+
declare const CardBlock: FC<{
|
|
21
|
+
/**
|
|
22
|
+
* Contents of the CardBlock.
|
|
23
|
+
*/
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* How should the content of the block be aligned?
|
|
27
|
+
*/
|
|
28
|
+
align?: "left" | "center" | "right";
|
|
29
|
+
/**
|
|
30
|
+
* Should the block stretch to the width of the Card?
|
|
31
|
+
*/
|
|
32
|
+
isFullWidth?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Should the block grow to the fill the available vertical space? Used when the Card appears in a column.
|
|
35
|
+
*/
|
|
36
|
+
grow?: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Internal `Card.Image` component to show an image within a Card.
|
|
40
|
+
*/
|
|
41
|
+
declare const CardImage: FC<{
|
|
42
|
+
/**
|
|
43
|
+
* Alternative text for the Card.Image, shown if the image cannot be displayed.
|
|
44
|
+
*/
|
|
45
|
+
alt?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Height of the Card.Image.
|
|
48
|
+
*/
|
|
49
|
+
height?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Loading behaviour of the Card.Image.
|
|
52
|
+
*/
|
|
53
|
+
loading?: "eager" | "lazy";
|
|
54
|
+
/**
|
|
55
|
+
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Required if srcSet is defined.
|
|
56
|
+
*/
|
|
57
|
+
sizes?: string;
|
|
58
|
+
/**
|
|
59
|
+
* HTML src for the Card.Image.
|
|
60
|
+
*/
|
|
61
|
+
src: string;
|
|
62
|
+
/**
|
|
63
|
+
* A comma-separated list indicating a set of possible image sources for the user agent to use for different screen sizes. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
|
|
64
|
+
*/
|
|
65
|
+
srcSet?: string;
|
|
66
|
+
}>;
|
|
67
|
+
type TitleSize = "xs" | "s" | "m" | "l" | "xl";
|
|
68
|
+
interface CardProps extends HTMLAttributes<HTMLElement> {
|
|
69
|
+
/**
|
|
70
|
+
* The HTML ID passed to the Card Button for aria- attributes.
|
|
71
|
+
*/
|
|
72
|
+
actionId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Label for the Card's Button. You should specify this if defining an href.
|
|
75
|
+
*/
|
|
76
|
+
actionLabel?: string;
|
|
77
|
+
/**
|
|
78
|
+
* A `Card.Image` to use for the cover image.
|
|
79
|
+
*/
|
|
80
|
+
coverImage?: React.ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* Card fill.
|
|
83
|
+
*/
|
|
84
|
+
fill?: "solid" | "outlined" | "neutral";
|
|
85
|
+
/**
|
|
86
|
+
* A URL to link to when the Card is clicked or touched.
|
|
87
|
+
*/
|
|
88
|
+
href: string;
|
|
89
|
+
/**
|
|
90
|
+
* Alternative text for the Card cover image, shown if the image cannot be displayed.
|
|
91
|
+
*/
|
|
92
|
+
imageAlt?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Height of the Card cover image.
|
|
95
|
+
*/
|
|
96
|
+
imageHeight?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Loading behaviour of the Card cover image.
|
|
99
|
+
*/
|
|
100
|
+
imageLoading?: "eager" | "lazy";
|
|
101
|
+
/**
|
|
102
|
+
* HTML src for the Card cover image.
|
|
103
|
+
*/
|
|
104
|
+
imageSrc?: string;
|
|
105
|
+
/**
|
|
106
|
+
* A comma-separated list indicating a set of possible image sources for the user agent to use for different screen sizes in the Card cover image. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
|
|
107
|
+
*/
|
|
108
|
+
imageSrcSet?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Object of `data-` attributes to render on internal anchor element, e.g.
|
|
111
|
+
* `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
|
|
112
|
+
*/
|
|
113
|
+
linkData?: {};
|
|
114
|
+
/**
|
|
115
|
+
* The minimum height of the card. Cards in a series of columns will match the
|
|
116
|
+
* height of the tallest Card.
|
|
117
|
+
*/
|
|
118
|
+
minHeight?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Link target attribute for the Card link.
|
|
121
|
+
*/
|
|
122
|
+
target?: "_blank" | "_parent" | "_self" | "_top";
|
|
123
|
+
/**
|
|
124
|
+
* The title for the Card, describing the content. This is required to provide good accessibility to screen readers.
|
|
125
|
+
*/
|
|
126
|
+
title: string;
|
|
127
|
+
/**
|
|
128
|
+
* The size for the Card title.
|
|
129
|
+
*/
|
|
130
|
+
titleSize?: TitleSize;
|
|
131
|
+
/**
|
|
132
|
+
* On click handler.
|
|
133
|
+
*/
|
|
134
|
+
onClick?: () => void;
|
|
135
|
+
}
|
|
136
|
+
export { useInteractionMode, Card, TitleSize, CardProps };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
|
|
2
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
3
|
+
import React__default, { useState, useEffect, useContext } from 'react';
|
|
4
|
+
import { B as BtIconChevronRightMid_2 } from './BtIconChevronRightMid-d9b11761.js';
|
|
5
|
+
import { I as Icon } from './Icon-fd247973.js';
|
|
6
|
+
import { I as Image } from './Image-3596ce55.js';
|
|
7
|
+
import { H as Heading } from './Heading-b61432fb.js';
|
|
8
|
+
import { s as suffixModifier } from './suffix-modifier-7e640670.js';
|
|
9
|
+
import { C as Context, S as Surface } from './Surface-bb100ef8.js';
|
|
10
|
+
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Detect interaction mode
|
|
14
|
+
*/
|
|
15
|
+
var useInteractionMode = function () {
|
|
16
|
+
var _a = useState("pointer"), interactionMode = _a[0], setInteractionMode = _a[1];
|
|
17
|
+
useEffect(function () {
|
|
18
|
+
var onKeyDown = function (event) {
|
|
19
|
+
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
setInteractionMode("keyboard");
|
|
23
|
+
};
|
|
24
|
+
var onPointerDown = function () {
|
|
25
|
+
setInteractionMode("pointer");
|
|
26
|
+
};
|
|
27
|
+
if (typeof window !== "undefined") {
|
|
28
|
+
document.addEventListener("keydown", onKeyDown, true);
|
|
29
|
+
document.addEventListener("click", onPointerDown, true);
|
|
30
|
+
}
|
|
31
|
+
return function () {
|
|
32
|
+
if (typeof window !== "undefined") {
|
|
33
|
+
document.removeEventListener("keydown", onKeyDown);
|
|
34
|
+
document.removeEventListener("click", onPointerDown);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}, []);
|
|
38
|
+
return { interactionMode: interactionMode };
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Use `Card` to contain content and actions about a single subject.
|
|
43
|
+
*/
|
|
44
|
+
var Card = function (_a) {
|
|
45
|
+
var _b;
|
|
46
|
+
var actionId = _a.actionId, _c = _a.actionLabel, actionLabel = _c === void 0 ? "Read more" : _c, children = _a.children, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, href = _a.href, imageAlt = _a.imageAlt, imageHeight = _a.imageHeight, imageLoading = _a.imageLoading, imageSrc = _a.imageSrc, imageSrcSet = _a.imageSrcSet, linkData = _a.linkData, minHeight = _a.minHeight, onClick = _a.onClick, target = _a.target, title = _a.title, _e = _a.titleSize, titleSize = _e === void 0 ? "s" : _e, props = __rest(_a, ["actionId", "actionLabel", "children", "fill", "href", "imageAlt", "imageHeight", "imageLoading", "imageSrc", "imageSrcSet", "linkData", "minHeight", "onClick", "target", "title", "titleSize"]);
|
|
47
|
+
var surface = useContext(Context).surface;
|
|
48
|
+
var interactionMode = useInteractionMode().interactionMode;
|
|
49
|
+
var Wrapper = function (_a) {
|
|
50
|
+
var children = _a.children;
|
|
51
|
+
return fill === "outlined" || fill === "neutral" ? (React__default.createElement("div", null, children)) : (React__default.createElement(Surface, { background: surface === "dark" ? "white" : "darker" }, children));
|
|
52
|
+
};
|
|
53
|
+
var coverImage = imageSrc && (React__default.createElement(CardImage, { alt: imageAlt, height: imageHeight, loading: imageLoading, src: imageSrc, srcSet: imageSrcSet }));
|
|
54
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {
|
|
55
|
+
"arc-Card": true,
|
|
56
|
+
"arc-Card--onDarkSurface": surface === "dark"
|
|
57
|
+
},
|
|
58
|
+
_b[suffixModifier("arc-Card--fill", fill)] = fill !== "solid",
|
|
59
|
+
_b["arc-is-".concat(interactionMode, "InteractionMode")] = interactionMode,
|
|
60
|
+
_b)) }, filterDataAttrs(props)),
|
|
61
|
+
React__default.createElement(Wrapper, null,
|
|
62
|
+
React__default.createElement("div", { className: "arc-Card-inner", style: { minHeight: minHeight } },
|
|
63
|
+
React__default.createElement("div", { className: "arc-Card-header" },
|
|
64
|
+
React__default.createElement("div", { className: "arc-Card-title" },
|
|
65
|
+
React__default.createElement(Heading, { size: titleSize },
|
|
66
|
+
React__default.createElement(CardLink, { stretch: true, onClick: onClick, actionId: actionId, fill: fill, href: href, linkData: linkData, target: target }, title))),
|
|
67
|
+
coverImage),
|
|
68
|
+
React__default.createElement("div", { className: "arc-Card-children" },
|
|
69
|
+
React__default.createElement(Card.Block, null, children)),
|
|
70
|
+
href && (React__default.createElement(CardBlock, null,
|
|
71
|
+
React__default.createElement(CardLink, { href: href, fill: fill, actionId: actionId, onClick: onClick, isButton: true }, actionLabel)))))));
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Internal `Card.Block` component to section blocks of content within a Card.
|
|
75
|
+
*/
|
|
76
|
+
var CardBlock = function (_a) {
|
|
77
|
+
var _b = _a.align, align = _b === void 0 ? "left" : _b, children = _a.children, _c = _a.isFullWidth, isFullWidth = _c === void 0 ? false : _c, _d = _a.grow, grow = _d === void 0 ? false : _d;
|
|
78
|
+
return (React__default.createElement("div", { className: classNames({
|
|
79
|
+
"arc-Card-block": true,
|
|
80
|
+
"arc-Card-block--alignCenter": align === "center",
|
|
81
|
+
"arc-Card-block--alignRight": align === "right",
|
|
82
|
+
"arc-Card-block--fullWidth": isFullWidth,
|
|
83
|
+
"arc-Card-block--grow": grow
|
|
84
|
+
}) },
|
|
85
|
+
React__default.createElement("div", { className: "arc-Card-blockInner" }, children)));
|
|
86
|
+
};
|
|
87
|
+
CardBlock.displayName = "Card.Block";
|
|
88
|
+
Card.Block = CardBlock;
|
|
89
|
+
/**
|
|
90
|
+
* Internal `Card.Image` component to show an image within a Card.
|
|
91
|
+
*/
|
|
92
|
+
var CardImage = function (_a) {
|
|
93
|
+
var _b = _a.alt, alt = _b === void 0 ? "" : _b, _c = _a.height, height = _c === void 0 ? 176 : _c, loading = _a.loading, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet;
|
|
94
|
+
return (React__default.createElement("div", { className: classNames({
|
|
95
|
+
"arc-Card-image": true
|
|
96
|
+
}) },
|
|
97
|
+
React__default.createElement(Image, { alt: alt, fit: "cover", height: height, loading: loading, sizes: sizes, src: src, srcSet: srcSet })));
|
|
98
|
+
};
|
|
99
|
+
CardImage.displayName = "Card.Image";
|
|
100
|
+
Card.Image = CardImage;
|
|
101
|
+
/**
|
|
102
|
+
* Internal `CardLink` component.
|
|
103
|
+
*/
|
|
104
|
+
var CardLink = function (_a) {
|
|
105
|
+
var actionId = _a.actionId, isButton = _a.isButton, children = _a.children, fill = _a.fill, href = _a.href, _b = _a.linkData, linkData = _b === void 0 ? {} : _b, onClick = _a.onClick, stretch = _a.stretch, target = _a.target;
|
|
106
|
+
var surface = useContext(Context).surface;
|
|
107
|
+
return (React__default.createElement("a", __assign({ onClick: handleLinkClick({ handler: onClick }), "aria-describedby": actionId, className: classNames({
|
|
108
|
+
"arc-Card-link": true,
|
|
109
|
+
"arc-Card-link--button": isButton,
|
|
110
|
+
"arc-Card-link--onDarkSurface": surface === "dark" && fill !== "neutral",
|
|
111
|
+
"arc-Card-link--stretch": stretch
|
|
112
|
+
}), href: href, rel: target === "_blank" ? "noopener noreferrer" : undefined, tabIndex: isButton ? -1 : undefined, target: target }, filterDataAttrs(linkData)),
|
|
113
|
+
React__default.createElement("span", { className: "arc-Card-linkText" }, children),
|
|
114
|
+
isButton && (React__default.createElement("span", { className: "arc-Card-linkIcon" },
|
|
115
|
+
React__default.createElement(Icon, { testId: "cardIcon", icon: BtIconChevronRightMid_2, size: 24 })))));
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export { Card as C };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
4
|
+
/**
|
|
5
|
+
* Use `Checkbox` to allow users to select individual options.
|
|
6
|
+
*/
|
|
7
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
interface CheckboxProps {
|
|
9
|
+
/**
|
|
10
|
+
* Error message for the Checkbox.
|
|
11
|
+
*/
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Helper text for the Checkbox, shown below the label.
|
|
15
|
+
*/
|
|
16
|
+
helper?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Determine the alignment the Checkbox.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
checkboxAlignment?: "top" | "center";
|
|
22
|
+
/**
|
|
23
|
+
* ID for the Checkbox.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Is the input checked?
|
|
28
|
+
*/
|
|
29
|
+
checked?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* `isDisabled` is a legacy property and not recommended from a UX usability best practice perspective.
|
|
32
|
+
*/
|
|
33
|
+
isDisabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Is the Checkbox required?
|
|
36
|
+
*/
|
|
37
|
+
isRequired?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Label for the Checkbox.
|
|
40
|
+
*/
|
|
41
|
+
label: React.ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Name for the Checkbox.
|
|
44
|
+
*/
|
|
45
|
+
name?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Function to call when the Checkbox loses focus.
|
|
48
|
+
*/
|
|
49
|
+
onBlur?: (e: EventType) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Callback function to update the Checkbox's controlled `checked` prop, for
|
|
52
|
+
* example `e => setChecked(e.target.checked)`.
|
|
53
|
+
*/
|
|
54
|
+
onChange?: (event: EventType) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Size of the Checkbox.
|
|
57
|
+
*/
|
|
58
|
+
size?: "s" | "l";
|
|
59
|
+
/**
|
|
60
|
+
* Value for the Checkbox.
|
|
61
|
+
*/
|
|
62
|
+
value?: string;
|
|
63
|
+
}
|
|
64
|
+
export { Checkbox, CheckboxProps };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
|
|
2
|
+
import React__default, { forwardRef, useContext } from 'react';
|
|
3
|
+
import { B as BtIconTickAlt2Px_2 } from './BtIconTickAlt2Px-da97e9ae.js';
|
|
4
|
+
import { B as BtIconAlert_2 } from './BtIconAlert-55a6ed5c.js';
|
|
5
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
6
|
+
import { C as Context, u as useAriaDescribedby } from './FormControl-5e3fdca3.js';
|
|
7
|
+
import { C as Context$1 } from './Surface-bb100ef8.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Use `Checkbox` to allow users to select individual options.
|
|
11
|
+
*/
|
|
12
|
+
var Checkbox = forwardRef(function (_a, ref) {
|
|
13
|
+
var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _e = _a.size, size = _e === void 0 ? "l" : _e, value = _a.value, _f = _a.checkboxAlignment, checkboxAlignment = _f === void 0 ? "center" : _f, props = __rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "name", "onBlur", "onChange", "size", "value", "checkboxAlignment"]);
|
|
14
|
+
var requirementStatus = useContext(Context).requirementStatus;
|
|
15
|
+
var surface = useContext(Context$1).surface;
|
|
16
|
+
var _g = useAriaDescribedby({
|
|
17
|
+
id: id,
|
|
18
|
+
errorMessage: errorMessage
|
|
19
|
+
}), ariaDescribedby = _g.ariaDescribedby, idError = _g.idError;
|
|
20
|
+
var idLabel = "".concat(id, "-label");
|
|
21
|
+
var checkedProps = {};
|
|
22
|
+
if (typeof onChange === "function") {
|
|
23
|
+
checkedProps.checked = checked;
|
|
24
|
+
}
|
|
25
|
+
else if (checked && !onChange) {
|
|
26
|
+
checkedProps.defaultChecked = true;
|
|
27
|
+
}
|
|
28
|
+
if (requirementStatus === "required") {
|
|
29
|
+
isRequired = true;
|
|
30
|
+
}
|
|
31
|
+
return (React__default.createElement("div", { className: classNames({
|
|
32
|
+
"arc-Checkbox": true,
|
|
33
|
+
"arc-Checkbox--disabled": isDisabled,
|
|
34
|
+
"arc-Checkbox--invalid": errorMessage,
|
|
35
|
+
"arc-Checkbox--small": size === "s",
|
|
36
|
+
"arc-Checkbox--onDarkSurface": surface === "dark"
|
|
37
|
+
}) },
|
|
38
|
+
React__default.createElement("label", { id: idLabel, htmlFor: id, className: classNames("arc-Checkbox-label", {
|
|
39
|
+
"arc-Checkbox-label--top": checkboxAlignment === "top"
|
|
40
|
+
}) },
|
|
41
|
+
React__default.createElement("input", __assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs(props))),
|
|
42
|
+
React__default.createElement("span", { className: "arc-Checkbox-box" },
|
|
43
|
+
React__default.createElement(BtIconTickAlt2Px_2, null)),
|
|
44
|
+
React__default.createElement("span", __assign({}, (checkboxAlignment === "top" && {
|
|
45
|
+
className: "arc-Checkbox-content--marginTop"
|
|
46
|
+
})),
|
|
47
|
+
label,
|
|
48
|
+
!isRequired && requirementStatus !== "optional" ? (React__default.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
49
|
+
helper && React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper))),
|
|
50
|
+
errorMessage && (React__default.createElement("div", { id: idError, className: "arc-Checkbox-error" },
|
|
51
|
+
React__default.createElement("span", { className: "arc-Checkbox-error--icon" },
|
|
52
|
+
React__default.createElement(BtIconAlert_2, null)),
|
|
53
|
+
errorMessage))));
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export { Checkbox as C };
|