@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,97 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { FormControlProps } from "./FormControl-9aaddd54";
|
|
5
|
+
/**
|
|
6
|
+
* Radio Button component.
|
|
7
|
+
*/
|
|
8
|
+
declare const RadioButton: FC<RadioButtonProps>;
|
|
9
|
+
interface RadioButtonProps {
|
|
10
|
+
/**
|
|
11
|
+
* ID for the Radio Button.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Should the RadioButton be disabled?
|
|
16
|
+
*/
|
|
17
|
+
isDisabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Helper text for the RadioButton, shown below the label.
|
|
20
|
+
*/
|
|
21
|
+
helper?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Label for the RadioButton.
|
|
24
|
+
*/
|
|
25
|
+
label: string;
|
|
26
|
+
/**
|
|
27
|
+
* Current value (controlled).
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
32
|
+
type ContextProps = {
|
|
33
|
+
blurEvent: (event: EventType) => void;
|
|
34
|
+
changeEvent: (event: EventType) => void;
|
|
35
|
+
groupDisabled: boolean;
|
|
36
|
+
checkedValue: string;
|
|
37
|
+
labelSize: "s" | "l";
|
|
38
|
+
name: string;
|
|
39
|
+
size: "s" | "l";
|
|
40
|
+
};
|
|
41
|
+
declare const Provider: React.Provider<ContextProps>;
|
|
42
|
+
declare const useRadioContext: () => ContextProps;
|
|
43
|
+
type EventType$0 = React.ChangeEvent<HTMLInputElement>;
|
|
44
|
+
/**
|
|
45
|
+
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
46
|
+
*/
|
|
47
|
+
declare const RadioGroup: FC<RadioGroupProps> & {
|
|
48
|
+
RadioButton: typeof RadioButton;
|
|
49
|
+
};
|
|
50
|
+
interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel" | "supplementaryInfo"> {
|
|
51
|
+
/**
|
|
52
|
+
* Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
|
|
53
|
+
*/
|
|
54
|
+
children?: React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Value of the RadioButton that should be checked by default.
|
|
57
|
+
*/
|
|
58
|
+
checkedValue: string;
|
|
59
|
+
/**
|
|
60
|
+
* Should all controls be disabled?
|
|
61
|
+
*/
|
|
62
|
+
isDisabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Helper message for the RadioGroup.
|
|
65
|
+
*/
|
|
66
|
+
helper?: string;
|
|
67
|
+
/**
|
|
68
|
+
* ID for the RadioGroup.
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Label for the RadioGroup.
|
|
73
|
+
*/
|
|
74
|
+
label: string;
|
|
75
|
+
/**
|
|
76
|
+
* Label size for the RadioGroup
|
|
77
|
+
*/
|
|
78
|
+
labelSize?: "s" | "l";
|
|
79
|
+
/**
|
|
80
|
+
* Name for the RadioGroup.
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
/**
|
|
84
|
+
* Function to call when the RadioGroup loses focus.
|
|
85
|
+
*/
|
|
86
|
+
onBlur?: (e: EventType$0) => void;
|
|
87
|
+
/**
|
|
88
|
+
* Callback function to update the RadioGroup's controlled `checkedValue` prop,
|
|
89
|
+
* for example `e => setCheckedValue(e.target.value)`.
|
|
90
|
+
*/
|
|
91
|
+
onChange?: (event: EventType$0) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Size of the RadioGroup.
|
|
94
|
+
*/
|
|
95
|
+
size?: "s" | "l";
|
|
96
|
+
}
|
|
97
|
+
export { RadioButton, RadioButtonProps, Provider, useRadioContext, RadioGroup, RadioGroupProps };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var FormControl = require('./FormControl-9aaddd54.js');
|
|
6
|
+
var index = require('./index-45bfb67b.js');
|
|
7
|
+
var Surface = require('./Surface-6da0a78e.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
|
|
13
|
+
var RadioContext = React.createContext({});
|
|
14
|
+
var Provider = RadioContext.Provider;
|
|
15
|
+
var useRadioContext = function () {
|
|
16
|
+
var context = React.useContext(RadioContext);
|
|
17
|
+
return context;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Radio Button component.
|
|
22
|
+
*/
|
|
23
|
+
var RadioButton = React.forwardRef(function (_a, ref) {
|
|
24
|
+
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = filterDataAttrs.__rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
|
|
25
|
+
var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
|
|
26
|
+
var surface = React.useContext(Surface.Context).surface;
|
|
27
|
+
var idLabel = "".concat(id, "-label");
|
|
28
|
+
var checked = checkedValue === value ? true : false;
|
|
29
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames({
|
|
30
|
+
"arc-RadioButton": true,
|
|
31
|
+
"arc-RadioButton--disabled": isDisabled || groupDisabled,
|
|
32
|
+
"arc-RadioButton--small": size === "s",
|
|
33
|
+
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
34
|
+
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
35
|
+
}) }, filterDataAttrs.filterDataAttrs(props)),
|
|
36
|
+
React__default["default"].createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
|
|
37
|
+
React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value }),
|
|
38
|
+
React__default["default"].createElement("span", null,
|
|
39
|
+
label,
|
|
40
|
+
helper && React__default["default"].createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
45
|
+
*/
|
|
46
|
+
var RadioGroup = function (_a) {
|
|
47
|
+
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? "l" : _d, props = filterDataAttrs.__rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
48
|
+
React.useEffect(function () {
|
|
49
|
+
React__default["default"].Children.map(children, function (item) {
|
|
50
|
+
if (item && item.type !== RadioButton) {
|
|
51
|
+
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}, [children]);
|
|
55
|
+
return (React__default["default"].createElement(Provider, { value: {
|
|
56
|
+
blurEvent: onBlur,
|
|
57
|
+
changeEvent: onChange,
|
|
58
|
+
groupDisabled: isDisabled,
|
|
59
|
+
checkedValue: checkedValue,
|
|
60
|
+
labelSize: labelSize,
|
|
61
|
+
name: name,
|
|
62
|
+
size: size
|
|
63
|
+
} },
|
|
64
|
+
React__default["default"].createElement("div", filterDataAttrs.__assign({ className: "arc-RadioGroup" }, filterDataAttrs.filterDataAttrs(props)),
|
|
65
|
+
React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
|
|
66
|
+
};
|
|
67
|
+
RadioButton.displayName = "RadioGroup.RadioButton";
|
|
68
|
+
RadioGroup.RadioButton = RadioButton;
|
|
69
|
+
|
|
70
|
+
exports.RadioGroup = RadioGroup;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var index
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
4
|
+
var index = require('./index-45bfb67b.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -12,12 +12,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
* Use `Section` to compose content into vertical page layouts.
|
|
13
13
|
*/
|
|
14
14
|
var Section = function (_a) {
|
|
15
|
-
var children = _a.children, _b = _a.isFullWidth, isFullWidth = _b === void 0 ? false : _b, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, props =
|
|
16
|
-
return (React__default["default"].createElement("div",
|
|
15
|
+
var children = _a.children, _b = _a.isFullWidth, isFullWidth = _b === void 0 ? false : _b, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, props = filterDataAttrs.__rest(_a, ["children", "isFullWidth", "isDebugVisible"]);
|
|
16
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames({
|
|
17
17
|
"arc-Section": true,
|
|
18
18
|
"arc-Section--fullWidth": isFullWidth,
|
|
19
19
|
"arc-Section--debugVisible": isDebugVisible
|
|
20
|
-
}) },
|
|
20
|
+
}) }, filterDataAttrs.filterDataAttrs(props)), children));
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
exports.Section = Section;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `SiteFooter` to display information at the bottom of a page.
|
|
4
|
+
*/
|
|
5
|
+
declare const SiteFooter: FC<SiteFooterProps> & {
|
|
6
|
+
Item: typeof SiteFooterItem;
|
|
7
|
+
ItemGroup: typeof SiteFooterItemGroup;
|
|
8
|
+
};
|
|
9
|
+
declare const SiteFooterItemGroup: FC<SiteFooterItemGroupProps>;
|
|
10
|
+
declare const SiteFooterItem: FC<SiteFooterItemProps>;
|
|
11
|
+
interface SiteFooterItemGroupProps {
|
|
12
|
+
/**
|
|
13
|
+
* Contents of the SiteFooterItemGroup. Must be SiteFooter.Item components.
|
|
14
|
+
*/
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Title text for the SiteFooterItemGroup.
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
}
|
|
21
|
+
interface SiteFooterItemProps {
|
|
22
|
+
/**
|
|
23
|
+
* Contents of the SiteFooterItem.
|
|
24
|
+
*/
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* A URL to link to when the Item is clicked or touched.
|
|
28
|
+
*/
|
|
29
|
+
href: string;
|
|
30
|
+
/**
|
|
31
|
+
* On click handler.
|
|
32
|
+
*/
|
|
33
|
+
onClick?: () => void;
|
|
34
|
+
}
|
|
35
|
+
interface SiteFooterProps {
|
|
36
|
+
/**
|
|
37
|
+
* Secondary content of the SiteFooter. Must be SiteFooter.Item components.
|
|
38
|
+
*/
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Copyright year.
|
|
42
|
+
*/
|
|
43
|
+
currentYear?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Should the SiteFooter include a Curve?
|
|
46
|
+
*/
|
|
47
|
+
curve?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Accessible text for the SiteFooter logo.
|
|
50
|
+
*/
|
|
51
|
+
logoLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Main content of the SiteFooter. Must be SiteFooter.ItemGroup components.
|
|
54
|
+
*/
|
|
55
|
+
main?: ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Text that appears at the top of the footer. Can be the name of the site, a
|
|
58
|
+
* brand strapline, or similar.
|
|
59
|
+
*/
|
|
60
|
+
siteName?: string;
|
|
61
|
+
}
|
|
62
|
+
export { SiteFooter, SiteFooterItemGroup, SiteFooterItem, SiteFooterItemGroupProps, SiteFooterItemProps, SiteFooterProps };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
4
|
+
var index_es = require('./index.es-77def0c9.js');
|
|
5
|
+
var BtIconChevronDown2Px = require('./BtIconChevronDown2Px-8fb4e2eb.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var BrandLogo = require('./BrandLogo-8008f0c4.js');
|
|
8
|
+
var Curve = require('./Curve-b05589d8.js');
|
|
9
|
+
var Section = require('./Section-48aca5f5.js');
|
|
10
|
+
var Surface = require('./Surface-6da0a78e.js');
|
|
11
|
+
var handleLinkClick = require('./handle-link-click-17a44cf4.js');
|
|
12
|
+
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Use `SiteFooter` to display information at the bottom of a page.
|
|
19
|
+
*/
|
|
20
|
+
var SiteFooter = function (_a) {
|
|
21
|
+
var children = _a.children, currentYear = _a.currentYear, _b = _a.curve, curve = _b === void 0 ? true : _b, logoLabel = _a.logoLabel, main = _a.main, siteName = _a.siteName, props = filterDataAttrs.__rest(_a, ["children", "currentYear", "curve", "logoLabel", "main", "siteName"]);
|
|
22
|
+
React.useEffect(function () {
|
|
23
|
+
React__default["default"].Children.map(children, function (item) {
|
|
24
|
+
if (item && item.type !== SiteFooterItem) {
|
|
25
|
+
throw new Error("Illegal child passed to <SiteFooter />. Ensure to only use <SiteFooter.Item />.");
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}, [children]);
|
|
29
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
30
|
+
curve ? (React__default["default"].createElement(Curve.Curve, { bottomColor: "brand-flat", from: "topLeft", size: "s" })) : null,
|
|
31
|
+
React__default["default"].createElement("footer", filterDataAttrs.__assign({ className: "arc-SiteFooter" }, filterDataAttrs.filterDataAttrs(props)),
|
|
32
|
+
React__default["default"].createElement(Surface.Surface, { background: "brand-flat", paddingVertical: "24" },
|
|
33
|
+
(siteName || main) && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
34
|
+
React__default["default"].createElement(Section.Section, null,
|
|
35
|
+
siteName && (React__default["default"].createElement("div", { className: "arc-SiteFooter-name" }, siteName)),
|
|
36
|
+
main && React__default["default"].createElement("div", { className: "arc-SiteFooter-main" }, main)),
|
|
37
|
+
React__default["default"].createElement("hr", { className: "arc-SiteFooter-rule" }))),
|
|
38
|
+
React__default["default"].createElement(Section.Section, null,
|
|
39
|
+
React__default["default"].createElement("div", { className: "arc-SiteFooter-secondary" },
|
|
40
|
+
children && (React__default["default"].createElement("ul", { className: "arc-SiteFooter-secondaryItems" }, children)),
|
|
41
|
+
React__default["default"].createElement("div", { className: "arc-SiteFooter-brand" },
|
|
42
|
+
React__default["default"].createElement("div", { className: "arc-SiteFooter-copyright" },
|
|
43
|
+
React__default["default"].createElement("span", { className: "arc-SiteFooter-copyrightSymbol" }, "\u00A9"), " ".concat(currentYear || new Date().getFullYear())),
|
|
44
|
+
React__default["default"].createElement(BrandLogo.BrandLogo, { label: logoLabel }))))))));
|
|
45
|
+
};
|
|
46
|
+
var SiteFooterItemGroup = function (_a) {
|
|
47
|
+
var children = _a.children, title = _a.title;
|
|
48
|
+
var isMinWidthArcBreakpointM = index_es.useMediaQuery("(min-width: ".concat(index_es.ArcBreakpointM, "px)"));
|
|
49
|
+
React.useEffect(function () {
|
|
50
|
+
React__default["default"].Children.map(children, function (item) {
|
|
51
|
+
if (item && item.type !== SiteFooterItem && item.type !== React.Fragment) {
|
|
52
|
+
throw new Error("Illegal child passed to <SiteFooterItemGroup />. Ensure to only use <SiteFooter.Item />.");
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}, [children]);
|
|
56
|
+
return (React__default["default"].createElement("details", { className: "arc-SiteFooter-disclosure", open: isMinWidthArcBreakpointM },
|
|
57
|
+
React__default["default"].createElement("summary", { className: "arc-SiteFooter-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
|
|
58
|
+
React__default["default"].createElement("span", { className: "arc-SiteFooter-icon" },
|
|
59
|
+
React__default["default"].createElement(BtIconChevronDown2Px.BtIconChevronDown2Px_2, null)),
|
|
60
|
+
React__default["default"].createElement("h2", { className: "arc-SiteFooter-title" }, title)),
|
|
61
|
+
React__default["default"].createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
|
|
62
|
+
};
|
|
63
|
+
var SiteFooterItem = function (_a) {
|
|
64
|
+
var children = _a.children, href = _a.href, onClick = _a.onClick, props = filterDataAttrs.__rest(_a, ["children", "href", "onClick"]);
|
|
65
|
+
return (React__default["default"].createElement("li", filterDataAttrs.__assign({ className: "arc-SiteFooter-item" }, filterDataAttrs.filterDataAttrs(props)),
|
|
66
|
+
React__default["default"].createElement("a", { onClick: handleLinkClick.handleLinkClick({ handler: onClick }), className: "arc-SiteFooter-link", href: href }, children)));
|
|
67
|
+
};
|
|
68
|
+
SiteFooterItem.displayName = "SiteFooter.Item";
|
|
69
|
+
SiteFooter.Item = SiteFooterItem;
|
|
70
|
+
SiteFooterItemGroup.displayName = "SiteFooter.ItemGroup";
|
|
71
|
+
SiteFooter.ItemGroup = SiteFooterItemGroup;
|
|
72
|
+
|
|
73
|
+
exports.SiteFooter = SiteFooter;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ReactNode } from "react";
|
|
4
|
+
import { subBrands } from "./BrandLogo-8008f0c4";
|
|
5
|
+
import { Column } from "./index-f419cf04";
|
|
6
|
+
import { Item } from "./index-699086a7";
|
|
7
|
+
import { ItemGroup } from "./index-e340924e";
|
|
8
|
+
import { NavItem, NavItemWithSubNav } from "./index-e6d20018";
|
|
9
|
+
import { NodeItem } from "./SiteHeader.rehydrator-f7fa2efe";
|
|
10
|
+
import { SubNavItem } from "./index-74488a9f";
|
|
11
|
+
declare const Context: React.Context<{
|
|
12
|
+
transparent: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Use `SiteHeader` to display brand logo and navigation at the top of a page.
|
|
16
|
+
*/
|
|
17
|
+
declare const SiteHeader: FC<SiteHeaderProps> & {
|
|
18
|
+
Column: typeof Column;
|
|
19
|
+
Item: typeof Item;
|
|
20
|
+
ItemGroup: typeof ItemGroup;
|
|
21
|
+
NavItem: typeof NavItem;
|
|
22
|
+
NodeItem: typeof NodeItem;
|
|
23
|
+
NavItemWithSubNav: typeof NavItemWithSubNav;
|
|
24
|
+
SubNavItem: typeof SubNavItem;
|
|
25
|
+
};
|
|
26
|
+
interface SiteHeaderProps {
|
|
27
|
+
/**
|
|
28
|
+
* Contents of the SiteHeader. Must be SiteHeader.NavItem or
|
|
29
|
+
* SiteHeader.NavItemWithSubNav components.
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Basket component for the SiteHeader.
|
|
34
|
+
*/
|
|
35
|
+
basket?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Should account login links be included in the SiteHeader?
|
|
38
|
+
*/
|
|
39
|
+
hasLogin?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Should the SiteHeader have a transparent background?
|
|
42
|
+
*/
|
|
43
|
+
isTransparent?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* A URL to link to when SiteHeader logo is clicked or touched.
|
|
46
|
+
*/
|
|
47
|
+
loginHref?: string;
|
|
48
|
+
/**
|
|
49
|
+
* A Function to run to when SiteHeader logo is clicked or touched.
|
|
50
|
+
*/
|
|
51
|
+
logoOnClick?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* A Function to run to when SiteHeader login links are clicked or touched.
|
|
54
|
+
*/
|
|
55
|
+
loginOnClick?: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Text to display in SiteHeader login links.
|
|
58
|
+
*/
|
|
59
|
+
loginTitle?: string;
|
|
60
|
+
/**
|
|
61
|
+
* A URL to link to when the SiteHeader brand logo link is clicked or touched.
|
|
62
|
+
*/
|
|
63
|
+
logoHref?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Accessible text for the SiteHeader brand logo link.
|
|
66
|
+
*/
|
|
67
|
+
logoLabel?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Search component for the SiteHeader.
|
|
70
|
+
*/
|
|
71
|
+
search?: ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Optional sub-brand variant. Only applies to BT.
|
|
74
|
+
*/
|
|
75
|
+
subBrand?: typeof subBrands[number];
|
|
76
|
+
}
|
|
77
|
+
export { MenuButton } from "./SiteHeader.rehydrator-f7fa2efe";
|
|
78
|
+
export { SiteHeader, SiteHeaderProps, Context as SiteHeaderContext };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ReactNode, ReactElement } from "react";
|
|
4
|
+
declare const MenuButton: FC<MenuButtonProps>;
|
|
5
|
+
interface MenuButtonProps {
|
|
6
|
+
menuOpen: boolean;
|
|
7
|
+
setMenuOpen: (arg0: boolean) => any;
|
|
8
|
+
}
|
|
9
|
+
declare const NodeItem: FC<NodeItemProps>;
|
|
10
|
+
interface NodeItemProps {
|
|
11
|
+
/**
|
|
12
|
+
* Content to display with `SiteHeader.NodeItem`
|
|
13
|
+
*/
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
|
|
17
|
+
declare const _default: (el: HTMLDivElement, hydrate: any) => Promise<JSX.Element>;
|
|
18
|
+
declare const _default: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
|
|
19
|
+
declare const Panel: FC<PanelProps> & {
|
|
20
|
+
ViewAll: typeof ViewAll;
|
|
21
|
+
};
|
|
22
|
+
declare const ViewAll: FC<ViewAllProps>;
|
|
23
|
+
interface ViewAllProps {
|
|
24
|
+
href: string;
|
|
25
|
+
title: string;
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
}
|
|
28
|
+
interface PanelProps {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
navItemRef: React.MutableRefObject<HTMLElement> | null;
|
|
31
|
+
open: boolean;
|
|
32
|
+
promo?: ReactNode;
|
|
33
|
+
setOpen: (arg0: boolean) => any;
|
|
34
|
+
subNavItemRef?: React.MutableRefObject<HTMLElement>;
|
|
35
|
+
subNavLink?: string;
|
|
36
|
+
title?: ReactNode;
|
|
37
|
+
viewAll?: ReactElement;
|
|
38
|
+
withSubNav?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const BackButton: FC<BackButtonProps>;
|
|
41
|
+
interface BackButtonProps {
|
|
42
|
+
setOpen: (arg0: boolean) => any;
|
|
43
|
+
}
|
|
44
|
+
declare const Column: FC<ColumnProps>;
|
|
45
|
+
interface ColumnProps {
|
|
46
|
+
/**
|
|
47
|
+
* Contents of the Column. Must be SiteHeader.ItemGroup components.
|
|
48
|
+
*/
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
}
|
|
51
|
+
declare const _default: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
|
|
52
|
+
declare const Item: FC<ItemProps>;
|
|
53
|
+
interface ItemProps {
|
|
54
|
+
/**
|
|
55
|
+
* Contents of the Item. Usually text to be displayed in the Item link.
|
|
56
|
+
*/
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* A URL to link to when the Item is clicked or touched.
|
|
60
|
+
*/
|
|
61
|
+
href: string;
|
|
62
|
+
/**
|
|
63
|
+
* Should the Item be emphasised?
|
|
64
|
+
*/
|
|
65
|
+
isEmphasised?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* On click handler.
|
|
68
|
+
*/
|
|
69
|
+
onClick?: () => void;
|
|
70
|
+
}
|
|
71
|
+
declare const SiteHeaderRehydrator: {
|
|
72
|
+
(el: HTMLDivElement, hydrate: any): Promise<JSX.Element>;
|
|
73
|
+
ItemGroupRehydrator: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
|
|
74
|
+
NavItemRehydrator: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
|
|
75
|
+
NavItemWithSubNavRehydrator: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
|
|
76
|
+
SubNavItemRehydrator: (el: HTMLDivElement, hydrate: any) => Promise<JSX.Element>;
|
|
77
|
+
};
|
|
78
|
+
export { _default as default, MenuButton, MenuButtonProps, NodeItem, NodeItemProps, Panel, ViewAll, ViewAllProps, PanelProps, BackButton, BackButtonProps, Column, ColumnProps, Item, ItemProps };
|