@arc-ui/components 11.5.0 → 11.7.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 +1 -1
- package/dist/Alert/Alert.cjs.js +4 -4
- package/dist/Alert/Alert.esm.d.ts +1 -1
- package/dist/Alert/Alert.esm.js +4 -4
- package/dist/Badge/Badge.cjs.js +2 -2
- package/dist/Badge/Badge.esm.js +2 -2
- package/dist/Box/Box.cjs.d.ts +1 -0
- package/dist/Box/Box.cjs.js +13 -0
- package/dist/Box/Box.esm.d.ts +1 -0
- package/dist/Box/Box.esm.js +5 -0
- package/dist/Box/package.json +7 -0
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +2 -2
- package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.esm.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +10 -642
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +9 -641
- package/dist/Button/Button.cjs.d.ts +1 -1
- package/dist/Button/Button.cjs.js +4 -3
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +4 -3
- 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 -64
- package/dist/Checkbox/Checkbox.cjs.js +11 -60
- package/dist/Checkbox/Checkbox.esm.d.ts +1 -64
- package/dist/Checkbox/Checkbox.esm.js +10 -59
- 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/Disclosure/Disclosure.cjs.d.ts +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +2 -2
- package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
- package/dist/Disclosure/Disclosure.esm.js +2 -2
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +3 -3
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
- package/dist/DisclosureMini/DisclosureMini.esm.js +3 -3
- 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 +4 -5
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +4 -5
- 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 +2 -2
- package/dist/Heading/Heading.esm.d.ts +1 -1
- package/dist/Heading/Heading.esm.js +2 -2
- package/dist/Icon/Icon.cjs.d.ts +1 -1
- package/dist/Icon/Icon.cjs.js +2 -2
- package/dist/Icon/Icon.esm.d.ts +1 -1
- package/dist/Icon/Icon.esm.js +2 -2
- package/dist/Image/Image.cjs.d.ts +1 -1
- package/dist/Image/Image.cjs.js +2 -1
- package/dist/Image/Image.esm.d.ts +1 -1
- package/dist/Image/Image.esm.js +1 -1
- package/dist/Markup/Markup.cjs.js +1 -1
- package/dist/Markup/Markup.esm.js +1 -1
- package/dist/MediaCard/MediaCard.cjs.d.ts +61 -0
- package/dist/MediaCard/MediaCard.cjs.js +31 -0
- package/dist/MediaCard/MediaCard.esm.d.ts +61 -0
- package/dist/MediaCard/MediaCard.esm.js +23 -0
- package/dist/MediaCard/package.json +7 -0
- package/dist/Modal/Modal.cjs.d.ts +31 -0
- package/dist/Modal/Modal.cjs.js +388 -0
- package/dist/Modal/Modal.esm.d.ts +31 -0
- package/dist/Modal/Modal.esm.js +380 -0
- package/dist/Modal/package.json +7 -0
- 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 +4 -4
- package/dist/ProgressBar/ProgressBar.esm.js +4 -4
- package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +89 -0
- package/dist/ProgressStepper/ProgressStepper.cjs.js +152 -0
- package/dist/ProgressStepper/ProgressStepper.esm.d.ts +89 -0
- package/dist/ProgressStepper/ProgressStepper.esm.js +144 -0
- package/dist/ProgressStepper/package.json +7 -0
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
- package/dist/RadioGroup/RadioGroup.cjs.js +9 -68
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
- package/dist/RadioGroup/RadioGroup.esm.js +8 -67
- package/dist/Rule/Rule.cjs.js +1 -1
- package/dist/Rule/Rule.esm.js +1 -1
- 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/Select/Select.cjs.d.ts +2 -2
- package/dist/Select/Select.cjs.js +20 -1419
- package/dist/Select/Select.esm.d.ts +2 -2
- package/dist/Select/Select.esm.js +10 -1390
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
- package/dist/SiteFooter/SiteFooter.cjs.js +10 -65
- package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
- package/dist/SiteFooter/SiteFooter.esm.js +12 -66
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -260
- package/dist/SiteHeader/SiteHeader.cjs.js +17 -669
- package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -260
- package/dist/SiteHeader/SiteHeader.esm.js +15 -667
- package/dist/Surface/Surface.cjs.d.ts +1 -1
- package/dist/Surface/Surface.cjs.js +1 -1
- package/dist/Surface/Surface.esm.d.ts +1 -1
- package/dist/Surface/Surface.esm.js +1 -1
- package/dist/Switch/Switch.cjs.d.ts +2 -2
- package/dist/Switch/Switch.cjs.js +8 -7
- package/dist/Switch/Switch.esm.d.ts +2 -2
- package/dist/Switch/Switch.esm.js +7 -6
- package/dist/Tag/Tag.cjs.js +2 -2
- package/dist/Tag/Tag.esm.js +2 -2
- package/dist/Text/Text.cjs.d.ts +1 -1
- package/dist/Text/Text.cjs.js +2 -2
- package/dist/Text/Text.esm.d.ts +1 -1
- package/dist/Text/Text.esm.js +2 -2
- 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 +10 -76
- package/dist/TextInput/TextInput.esm.d.ts +1 -75
- package/dist/TextInput/TextInput.esm.js +9 -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/_shared/cjs/Box-ebe2b7be.d.ts +39 -0
- package/dist/_shared/cjs/Box-ebe2b7be.js +30 -0
- package/dist/_shared/cjs/{BrandLogo-8008f0c4.js → BrandLogo-8107d59f.js} +1 -1
- package/dist/_shared/cjs/Breadcrumbs-9f580f69.d.ts +61 -0
- package/dist/_shared/cjs/Breadcrumbs-9f580f69.js +106 -0
- package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
- package/dist/_shared/cjs/{Button-5dff284a.js → Button-b4d6ccc8.js} +8 -29
- package/dist/_shared/cjs/Card-f1108bfe.d.ts +136 -0
- package/dist/_shared/cjs/Card-f1108bfe.js +124 -0
- package/dist/_shared/cjs/Checkbox-c927b62f.d.ts +64 -0
- package/dist/_shared/cjs/Checkbox-c927b62f.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/{DisclosureMini-5af13d3c.js → DisclosureMini-2a10006e.js} +5 -3
- package/dist/_shared/cjs/Filter-a7574fe7.d.ts +83 -0
- package/dist/_shared/cjs/Filter-a7574fe7.js +121 -0
- package/dist/_shared/{esm/FormControl-0744f93f.d.ts → cjs/FormControl-78b007b7.d.ts} +4 -0
- package/dist/_shared/cjs/{FormControl-42360ae8.js → FormControl-78b007b7.js} +10 -10
- package/dist/_shared/cjs/Group-f85dd4c0.d.ts +46 -0
- package/dist/_shared/cjs/Group-f85dd4c0.js +48 -0
- package/dist/_shared/cjs/{Heading-d45f6a7f.js → Heading-ed1cb455.js} +1 -1
- package/dist/_shared/cjs/{Icon-9ae8dbe1.js → Icon-e1dd45eb.js} +1 -1
- package/dist/_shared/cjs/{Image-3bf4b4f3.js → Image-0e393cbf.js} +2 -0
- 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-faea1ad3.d.ts +81 -0
- package/dist/_shared/cjs/Poster-faea1ad3.js +50 -0
- package/dist/_shared/cjs/RadioGroup-8e17de70.d.ts +97 -0
- package/dist/_shared/cjs/RadioGroup-8e17de70.js +70 -0
- package/dist/_shared/cjs/SiteFooter-9f7f9c2d.d.ts +62 -0
- package/dist/_shared/cjs/SiteFooter-9f7f9c2d.js +73 -0
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
- package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.d.ts +78 -0
- package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.js +673 -0
- package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
- package/dist/_shared/cjs/{Surface-6da0a78e.d.ts → Surface-b7c51b2b.d.ts} +3 -2
- package/dist/_shared/cjs/{Surface-6da0a78e.js → Surface-b7c51b2b.js} +1 -1
- package/dist/_shared/cjs/{Text-6f2827e6.js → Text-555a29a4.js} +1 -1
- package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
- package/dist/_shared/cjs/TextInput-b768e346.d.ts +10 -0
- package/dist/_shared/cjs/TextInput-b768e346.js +78 -0
- package/dist/_shared/cjs/UniversalHeader-da622e1a.d.ts +26 -0
- package/dist/_shared/cjs/UniversalHeader-da622e1a.js +35 -0
- package/dist/_shared/cjs/debounce-506538c5.js +544 -0
- package/dist/_shared/cjs/index-31fbb076.js +1416 -0
- 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-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/index.module-5ea728f4.js +23 -0
- package/dist/_shared/cjs/{index.module-af7c85f2.js → index.module-9b87a34d.js} +84 -103
- package/dist/_shared/esm/Box-06d99d8a.d.ts +39 -0
- package/dist/_shared/esm/Box-06d99d8a.js +24 -0
- package/dist/_shared/esm/{BrandLogo-56699561.js → BrandLogo-9ec620e8.js} +1 -1
- package/dist/_shared/esm/Breadcrumbs-5dc0afa7.d.ts +61 -0
- package/dist/_shared/esm/Breadcrumbs-5dc0afa7.js +100 -0
- package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
- package/dist/_shared/esm/{Button-61241dd0.js → Button-9c3b0b11.js} +4 -25
- package/dist/_shared/esm/Card-79b6eae0.d.ts +136 -0
- package/dist/_shared/esm/Card-79b6eae0.js +118 -0
- package/dist/_shared/esm/Checkbox-2d144384.d.ts +64 -0
- package/dist/_shared/esm/Checkbox-2d144384.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/{DisclosureMini-322fccc0.js → DisclosureMini-78a8f392.js} +5 -3
- package/dist/_shared/esm/Filter-a01aed11.d.ts +83 -0
- package/dist/_shared/esm/Filter-a01aed11.js +115 -0
- package/dist/_shared/{cjs/FormControl-42360ae8.d.ts → esm/FormControl-2fa7aae5.d.ts} +4 -0
- package/dist/_shared/esm/{FormControl-0744f93f.js → FormControl-2fa7aae5.js} +10 -10
- package/dist/_shared/esm/Group-fb26fd32.d.ts +46 -0
- package/dist/_shared/esm/Group-fb26fd32.js +42 -0
- package/dist/_shared/esm/{Heading-b61432fb.js → Heading-ee6bec51.js} +1 -1
- package/dist/_shared/esm/{Icon-fd247973.js → Icon-c1af47bc.js} +1 -1
- package/dist/_shared/esm/{Image-3596ce55.js → Image-3ed3863c.js} +2 -1
- 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-a83ae770.d.ts +81 -0
- package/dist/_shared/esm/Poster-a83ae770.js +44 -0
- package/dist/_shared/esm/RadioGroup-65b8c8bf.d.ts +97 -0
- package/dist/_shared/esm/RadioGroup-65b8c8bf.js +64 -0
- package/dist/_shared/esm/SiteFooter-51bdc7df.d.ts +62 -0
- package/dist/_shared/esm/SiteFooter-51bdc7df.js +67 -0
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
- package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.d.ts +78 -0
- package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.js +666 -0
- package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
- package/dist/_shared/esm/{Surface-bb100ef8.d.ts → Surface-dde51789.d.ts} +3 -2
- package/dist/_shared/esm/{Surface-bb100ef8.js → Surface-dde51789.js} +1 -1
- package/dist/_shared/esm/{Text-00e9743b.js → Text-14deb70e.js} +1 -1
- package/dist/_shared/esm/TextInput-62bb7dee.d.ts +10 -0
- package/dist/_shared/esm/TextInput-62bb7dee.js +72 -0
- package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
- package/dist/_shared/esm/UniversalHeader-1c5a886d.d.ts +26 -0
- package/dist/_shared/esm/UniversalHeader-1c5a886d.js +29 -0
- package/dist/_shared/esm/debounce-e228705f.js +542 -0
- package/dist/_shared/esm/index-4fa635bd.js +1386 -0
- 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-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/{index.module-599b86dd.js → index.module-216016b5.js} +86 -104
- package/dist/_shared/esm/index.module-88179159.js +21 -0
- package/dist/index.es.js +179 -28
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +180 -27
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Box/Box.d.ts +36 -0
- package/dist/types/components/Box/index.d.ts +1 -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/Image/index.d.ts +1 -1
- package/dist/types/components/MediaCard/MediaCard.d.ts +57 -0
- package/dist/types/components/MediaCard/index.d.ts +1 -0
- package/dist/types/components/Modal/Modal.stories-wip.d.ts +9 -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/ProgressStepper/ProgressStepper.d.ts +28 -0
- package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +62 -0
- package/dist/types/components/ProgressStepper/index.d.ts +1 -0
- package/dist/types/components/ProgressStepper/progressStatus.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/Surface/Surface.d.ts +2 -1
- package/dist/types/components/Surface/index.d.ts +1 -1
- 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 -0
- package/package.json +4 -4
- /package/dist/_shared/cjs/{BrandLogo-8008f0c4.d.ts → BrandLogo-8107d59f.d.ts} +0 -0
- /package/dist/_shared/cjs/{Button-5dff284a.d.ts → Button-b4d6ccc8.d.ts} +0 -0
- /package/dist/_shared/cjs/{DisclosureMini-5af13d3c.d.ts → DisclosureMini-2a10006e.d.ts} +0 -0
- /package/dist/_shared/cjs/{Heading-d45f6a7f.d.ts → Heading-ed1cb455.d.ts} +0 -0
- /package/dist/_shared/cjs/{Icon-9ae8dbe1.d.ts → Icon-e1dd45eb.d.ts} +0 -0
- /package/dist/_shared/cjs/{Image-3bf4b4f3.d.ts → Image-0e393cbf.d.ts} +0 -0
- /package/dist/_shared/cjs/{Text-6f2827e6.d.ts → Text-555a29a4.d.ts} +0 -0
- /package/dist/_shared/esm/{BrandLogo-56699561.d.ts → BrandLogo-9ec620e8.d.ts} +0 -0
- /package/dist/_shared/esm/{Button-61241dd0.d.ts → Button-9c3b0b11.d.ts} +0 -0
- /package/dist/_shared/esm/{DisclosureMini-322fccc0.d.ts → DisclosureMini-78a8f392.d.ts} +0 -0
- /package/dist/_shared/esm/{Heading-b61432fb.d.ts → Heading-ee6bec51.d.ts} +0 -0
- /package/dist/_shared/esm/{Icon-fd247973.d.ts → Icon-c1af47bc.d.ts} +0 -0
- /package/dist/_shared/esm/{Image-3596ce55.d.ts → Image-3ed3863c.d.ts} +0 -0
- /package/dist/_shared/esm/{Text-00e9743b.d.ts → Text-14deb70e.d.ts} +0 -0
|
@@ -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-c1af47bc.js';
|
|
6
|
+
import { I as Image } from './Image-3ed3863c.js';
|
|
7
|
+
import { H as Heading } from './Heading-ee6bec51.js';
|
|
8
|
+
import { s as suffixModifier } from './suffix-modifier-7e640670.js';
|
|
9
|
+
import { C as Context, S as Surface } from './Surface-dde51789.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-2fa7aae5.js';
|
|
7
|
+
import { C as Context$1 } from './Surface-dde51789.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 };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `Columns` to compose layouts on a 12-column grid.
|
|
4
|
+
*/
|
|
5
|
+
declare const Columns: FC<ColumnsProps> & {
|
|
6
|
+
Col: typeof Col;
|
|
7
|
+
};
|
|
8
|
+
declare const Col: FC<ColProps>;
|
|
9
|
+
type Span = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
10
|
+
type Offset = "0" | "24" | "48" | "72" | "96" | "120" | "144" | "168" | "192" | "216" | "240" | "264" | "288" | "312" | "336" | "360" | "384";
|
|
11
|
+
interface ColProps {
|
|
12
|
+
/**
|
|
13
|
+
* Vertically align the Column.
|
|
14
|
+
*/
|
|
15
|
+
align?: "top" | "center" | "bottom";
|
|
16
|
+
/**
|
|
17
|
+
* Content to display in the Column.
|
|
18
|
+
*/
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Should the Column be visible for debugging and documentation
|
|
22
|
+
* purposes?
|
|
23
|
+
*/
|
|
24
|
+
isDebugVisible?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Overlay the column over the previous content on the default breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
27
|
+
*/
|
|
28
|
+
offset?: Offset;
|
|
29
|
+
/**
|
|
30
|
+
* Overlay the column over the previous content on the S breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
31
|
+
*/
|
|
32
|
+
offsetS?: Offset;
|
|
33
|
+
/**
|
|
34
|
+
* Overlay the column over the previous content on the M breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
35
|
+
*/
|
|
36
|
+
offsetM?: Offset;
|
|
37
|
+
/**
|
|
38
|
+
* Overlay the column over the previous content on the L breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
39
|
+
*/
|
|
40
|
+
offsetL?: Offset;
|
|
41
|
+
/**
|
|
42
|
+
* Overlay the column over the previous content on the XL breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
43
|
+
*/
|
|
44
|
+
offsetXL?: Offset;
|
|
45
|
+
/**
|
|
46
|
+
* The number of columns to span on the default breakpoint and above, from 1 to 12.
|
|
47
|
+
*/
|
|
48
|
+
span?: Span;
|
|
49
|
+
/**
|
|
50
|
+
* The number of columns to span on the S breakpoint and above, from 1 to 12.
|
|
51
|
+
*/
|
|
52
|
+
spanS?: Span;
|
|
53
|
+
/**
|
|
54
|
+
* The number of columns to span on the M breakpoint and above, from 1 to 12.
|
|
55
|
+
*/
|
|
56
|
+
spanM?: Span;
|
|
57
|
+
/**
|
|
58
|
+
* The number of columns to span on the L breakpoint and above, from 1 to 12.
|
|
59
|
+
*/
|
|
60
|
+
spanL?: Span;
|
|
61
|
+
/**
|
|
62
|
+
* The number of columns to span on the XL breakpoint and above, from 1 to 12.
|
|
63
|
+
*/
|
|
64
|
+
spanXL?: Span;
|
|
65
|
+
}
|
|
66
|
+
interface ColumnsProps {
|
|
67
|
+
/**
|
|
68
|
+
* Contents of the Columns. Should only contain `Columns.Col`.
|
|
69
|
+
*/
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
/**
|
|
72
|
+
* Should the Columns be gutterless?
|
|
73
|
+
*/
|
|
74
|
+
isGutterless?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export { Columns, Col, ColProps, ColumnsProps };
|
|
@@ -0,0 +1,51 @@
|
|
|
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, { useEffect } from 'react';
|
|
4
|
+
import { s as suffixModifier } from './suffix-modifier-7e640670.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Use `Columns` to compose layouts on a 12-column grid.
|
|
8
|
+
*/
|
|
9
|
+
var Columns = function (_a) {
|
|
10
|
+
var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isGutterless"]);
|
|
11
|
+
useEffect(function () {
|
|
12
|
+
React__default.Children.map(children, function (item) {
|
|
13
|
+
if (item && item.type !== Col) {
|
|
14
|
+
throw new Error("Illegal child passed to <Columns />. Ensure to only use <Columns.Col />.");
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}, [children]);
|
|
18
|
+
return (React__default.createElement("div", __assign({ className: classNames({
|
|
19
|
+
"arc-Columns": true,
|
|
20
|
+
"arc-Columns--gutterless": isGutterless
|
|
21
|
+
}) }, filterDataAttrs(props)),
|
|
22
|
+
React__default.createElement("div", { className: "arc-Columns-inner" }, children)));
|
|
23
|
+
};
|
|
24
|
+
var Col = function (_a) {
|
|
25
|
+
var _b;
|
|
26
|
+
var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
|
|
27
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
28
|
+
_b["arc-Columns-col"] = true,
|
|
29
|
+
_b[suffixModifier("arc-Columns-col--align", align || "")] = align,
|
|
30
|
+
_b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
|
|
31
|
+
_b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
|
|
32
|
+
_b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
|
|
33
|
+
_b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
|
|
34
|
+
_b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
|
|
35
|
+
_b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
|
|
36
|
+
typeof offsetS !== "undefined" ||
|
|
37
|
+
typeof offsetM !== "undefined" ||
|
|
38
|
+
typeof offsetL !== "undefined" ||
|
|
39
|
+
typeof offsetXL !== "undefined",
|
|
40
|
+
_b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
|
|
41
|
+
_b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
|
|
42
|
+
_b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
|
|
43
|
+
_b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
|
|
44
|
+
_b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
|
|
45
|
+
_b["arc-Columns-col--debugVisible"] = isDebugVisible,
|
|
46
|
+
_b)) }, filterDataAttrs(props)), children));
|
|
47
|
+
};
|
|
48
|
+
Col.displayName = "Columns.Col";
|
|
49
|
+
Columns.Col = Col;
|
|
50
|
+
|
|
51
|
+
export { Columns as C };
|
|
@@ -2,8 +2,8 @@ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-
|
|
|
2
2
|
import { c as classNames } from './index-2ae58626.js';
|
|
3
3
|
import React__default, { useContext, useState } from 'react';
|
|
4
4
|
import { B as BtIconChevronDown2Px_2 } from './BtIconChevronDown2Px-782876e2.js';
|
|
5
|
-
import { T as Text } from './Text-
|
|
6
|
-
import { C as Context } from './Surface-
|
|
5
|
+
import { T as Text } from './Text-14deb70e.js';
|
|
6
|
+
import { C as Context } from './Surface-dde51789.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Use `DisclosureMini` to display content that is only visible when toggled into
|
|
@@ -25,7 +25,9 @@ var DisclosureMini = function (_a) {
|
|
|
25
25
|
"arc-DisclosureMini-summary--icon-left": iconPosition === "left",
|
|
26
26
|
"arc-DisclosureMini-summary--icon-right": iconPosition === "right"
|
|
27
27
|
}), onClick: handleOnClick, "aria-expanded": disclousreState },
|
|
28
|
-
React__default.createElement("
|
|
28
|
+
React__default.createElement("div", { className: classNames("arc-DisclosureMini-summary-icon", {
|
|
29
|
+
"arc-DisclosureMini-summary-icon--small": size === "s"
|
|
30
|
+
}) },
|
|
29
31
|
React__default.createElement(BtIconChevronDown2Px_2, null)),
|
|
30
32
|
React__default.createElement(Text, { size: size === "l" ? "m" : "s" }, summary)),
|
|
31
33
|
React__default.createElement("div", { className: "arc-DisclosureMini-details" },
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
declare const FilterItems: FC<FilterItemsProps>;
|
|
3
|
+
interface FilterItemsProps {
|
|
4
|
+
/**
|
|
5
|
+
* Render children of `<Filter.Items />`. This should only use `<Filter.Item />`
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Determine the display style of `<Filter.Item />`
|
|
10
|
+
*/
|
|
11
|
+
displayType?: "grid" | "list";
|
|
12
|
+
}
|
|
13
|
+
declare const FilterItem: FC<FilterItemProps>;
|
|
14
|
+
interface FilterItemProps {
|
|
15
|
+
/**
|
|
16
|
+
* Content to display within `Filter.Item`
|
|
17
|
+
*/
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Attach Tags to content provided within `Filter.Item`
|
|
21
|
+
*/
|
|
22
|
+
tags: string[];
|
|
23
|
+
}
|
|
24
|
+
declare const FilterControls: FC<FilterControlsProps>;
|
|
25
|
+
interface FilterControlsProps {
|
|
26
|
+
/**
|
|
27
|
+
* Contents of the `<FilterControls />` Should contain `<FilterControl />`
|
|
28
|
+
*/
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Detmine how to align <FilterControl /> with in <FilterControls />. Default `center`
|
|
32
|
+
*/
|
|
33
|
+
controlsAlignment?: "left" | "right" | "center";
|
|
34
|
+
}
|
|
35
|
+
declare const FilterControl: FC<FilterControlProps>;
|
|
36
|
+
interface FilterControlProps {
|
|
37
|
+
/**
|
|
38
|
+
* Name of the `<FilterControl />`
|
|
39
|
+
*/
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Determine if the `<FilterControl />` is selected
|
|
43
|
+
*/
|
|
44
|
+
isSelected?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* onClick handler
|
|
47
|
+
*/
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
}
|
|
50
|
+
/** use `Filter` for interactive elements that filter and categorise page content. */
|
|
51
|
+
declare const Filter: FC<FilterProps> & {
|
|
52
|
+
Item: typeof FilterItem;
|
|
53
|
+
Items: typeof FilterItems;
|
|
54
|
+
Control: typeof FilterControl;
|
|
55
|
+
Controls: typeof FilterControls;
|
|
56
|
+
};
|
|
57
|
+
interface FilterProps {
|
|
58
|
+
/**
|
|
59
|
+
* Contents of the `<Filter />` Should contain `<Filter.Item />`
|
|
60
|
+
*/
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* onChange handler called everytime `<FilterControl />` is pressed
|
|
64
|
+
*/
|
|
65
|
+
onChange?: (selectedControls: string[]) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Detmine how to display the content within `<Filter.Items />`. Default is `grid`
|
|
68
|
+
*/
|
|
69
|
+
displayType?: FilterItemsProps["displayType"];
|
|
70
|
+
/**
|
|
71
|
+
* Detmine how to align <Filter.Controls />. Default `center`
|
|
72
|
+
*/
|
|
73
|
+
controlsAlignment?: FilterControlsProps["controlsAlignment"];
|
|
74
|
+
/**
|
|
75
|
+
* Detmine if the `<Filter.Control />` have to partially match or match all
|
|
76
|
+
*/
|
|
77
|
+
logicType?: "AND" | "OR";
|
|
78
|
+
/**
|
|
79
|
+
* Detmine what is display when no items match the filtering criteria
|
|
80
|
+
*/
|
|
81
|
+
error?: ReactNode;
|
|
82
|
+
}
|
|
83
|
+
export { FilterItems, FilterItemsProps, FilterItem, FilterItemProps, FilterControls, FilterControlsProps, FilterControl, FilterControlProps, Filter, FilterProps };
|