@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,36 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { SurfaceBackgroundColor, SurfacePadding } from "../Surface/Surface";
|
|
3
|
+
/**
|
|
4
|
+
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Box: FC<BoxProps>;
|
|
7
|
+
export interface BoxProps {
|
|
8
|
+
/**
|
|
9
|
+
* Contents of the Box.
|
|
10
|
+
*/
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Set Box to fill parent element.
|
|
14
|
+
*/
|
|
15
|
+
isFullHeight?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Add rounded corners to the box.
|
|
18
|
+
*/
|
|
19
|
+
isBorderRadius?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The border width of the box.
|
|
22
|
+
*/
|
|
23
|
+
borderWidth?: "thin" | "medium";
|
|
24
|
+
/**
|
|
25
|
+
* Box shadow for the box.
|
|
26
|
+
*/
|
|
27
|
+
elevationLevel?: "1" | "2";
|
|
28
|
+
/**
|
|
29
|
+
* Padding for the box.
|
|
30
|
+
*/
|
|
31
|
+
padding?: SurfacePadding;
|
|
32
|
+
/**
|
|
33
|
+
* Background color for the box.
|
|
34
|
+
*/
|
|
35
|
+
surface?: SurfaceBackgroundColor;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Box, BoxProps } from "./Box";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { FilterControl } from "./FilterControls/FilterControl/FilterControl";
|
|
3
|
+
import { FilterControls, FilterControlsProps } from "./FilterControls/FilterControls";
|
|
4
|
+
import { FilterItem } from "./FilterItems/FilterItem/FilterItem";
|
|
5
|
+
import { FilterItems, FilterItemsProps } from "./FilterItems/FilterItems";
|
|
6
|
+
/** use `Filter` for interactive elements that filter and categorise page content. */
|
|
7
|
+
export declare const Filter: FC<FilterProps> & {
|
|
8
|
+
Item: typeof FilterItem;
|
|
9
|
+
Items: typeof FilterItems;
|
|
10
|
+
Control: typeof FilterControl;
|
|
11
|
+
Controls: typeof FilterControls;
|
|
12
|
+
};
|
|
13
|
+
export interface FilterProps {
|
|
14
|
+
/**
|
|
15
|
+
* Contents of the `<Filter />` Should contain `<Filter.Item />`
|
|
16
|
+
*/
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* onChange handler called everytime `<FilterControl />` is pressed
|
|
20
|
+
*/
|
|
21
|
+
onChange?: (selectedControls: string[]) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Detmine how to display the content within `<Filter.Items />`. Default is `grid`
|
|
24
|
+
*/
|
|
25
|
+
displayType?: FilterItemsProps["displayType"];
|
|
26
|
+
/**
|
|
27
|
+
* Detmine how to align <Filter.Controls />. Default `center`
|
|
28
|
+
*/
|
|
29
|
+
controlsAlignment?: FilterControlsProps["controlsAlignment"];
|
|
30
|
+
/**
|
|
31
|
+
* Detmine if the `<Filter.Control />` have to partially match or match all
|
|
32
|
+
*/
|
|
33
|
+
logicType?: "AND" | "OR";
|
|
34
|
+
/**
|
|
35
|
+
* Detmine what is display when no items match the filtering criteria
|
|
36
|
+
*/
|
|
37
|
+
error?: ReactNode;
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
export declare const FilterControl: FC<FilterControlProps>;
|
|
3
|
+
export interface FilterControlProps {
|
|
4
|
+
/**
|
|
5
|
+
* Name of the `<FilterControl />`
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Determine if the `<FilterControl />` is selected
|
|
10
|
+
*/
|
|
11
|
+
isSelected?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* onClick handler
|
|
14
|
+
*/
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
export declare const FilterControls: FC<FilterControlsProps>;
|
|
3
|
+
export interface FilterControlsProps {
|
|
4
|
+
/**
|
|
5
|
+
* Contents of the `<FilterControls />` Should contain `<FilterControl />`
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Detmine how to align <FilterControl /> with in <FilterControls />. Default `center`
|
|
10
|
+
*/
|
|
11
|
+
controlsAlignment?: "left" | "right" | "center";
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
export declare const FilterItem: FC<FilterItemProps>;
|
|
3
|
+
export interface FilterItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* Content to display within `Filter.Item`
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Attach Tags to content provided within `Filter.Item`
|
|
10
|
+
*/
|
|
11
|
+
tags: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
export declare const FilterItems: FC<FilterItemsProps>;
|
|
3
|
+
export 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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Filter } from "./Filter";
|
|
@@ -63,6 +63,10 @@ export interface FormControlProps {
|
|
|
63
63
|
* onClick handler for FormControlDisclosure
|
|
64
64
|
*/
|
|
65
65
|
onClickDisclosure?: () => void;
|
|
66
|
+
/**
|
|
67
|
+
* Optional additional information for the FormControl.
|
|
68
|
+
*/
|
|
69
|
+
supplementaryInfo?: React.ReactNode;
|
|
66
70
|
/**
|
|
67
71
|
* Position helper text under label. This is set to `false` by default.
|
|
68
72
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Image } from "./Image";
|
|
1
|
+
export { Image, loadingOptions } from "./Image";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { loadingOptions } from "../Image";
|
|
2
|
+
import React, { FC } from "react";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
/**
|
|
5
|
+
* Use `MediaCard` to contain content and an image about a single subject.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MediaCard: FC<MediaCardProps>;
|
|
8
|
+
export interface MediaCardProps {
|
|
9
|
+
/**
|
|
10
|
+
* Content of the MediaCard.
|
|
11
|
+
*/
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Footer Content of the MediaCard.
|
|
15
|
+
*/
|
|
16
|
+
cardFooter?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Add rounded corners to the MediaCard.
|
|
19
|
+
*/
|
|
20
|
+
isBorderRadius?: BoxProps["isBorderRadius"];
|
|
21
|
+
/**
|
|
22
|
+
* The border width of the MediaCard.
|
|
23
|
+
*/
|
|
24
|
+
borderWidth?: BoxProps["borderWidth"];
|
|
25
|
+
/**
|
|
26
|
+
* Box shadow for the MediaCard.
|
|
27
|
+
*/
|
|
28
|
+
elevationLevel?: BoxProps["elevationLevel"];
|
|
29
|
+
/**
|
|
30
|
+
* Set MediaCard to fill parent element.
|
|
31
|
+
*/
|
|
32
|
+
isFullHeight?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Background color for the MediaCard.
|
|
35
|
+
*/
|
|
36
|
+
surface?: BoxProps["surface"];
|
|
37
|
+
/**
|
|
38
|
+
* image src for the MediaCard.
|
|
39
|
+
*/
|
|
40
|
+
imageSrc: string;
|
|
41
|
+
/**
|
|
42
|
+
* image alt for the MediaCard.
|
|
43
|
+
*/
|
|
44
|
+
imageAlt?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Loading behaviour of the MediaCard.
|
|
47
|
+
*/
|
|
48
|
+
imageLoading?: typeof loadingOptions[number];
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
imageSizes?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 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`.
|
|
55
|
+
*/
|
|
56
|
+
imageSrcSet?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MediaCard } from "./MediaCard";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { ModalProps } from "./Modal";
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<ModalProps>;
|
|
6
|
+
export declare const CloseProgrammatically: Story<ModalProps>;
|
|
7
|
+
export declare const OpenProgrammatically: Story<ModalProps>;
|
|
8
|
+
export declare const TallContent: Story<ModalProps>;
|
|
9
|
+
export declare const HiddenDescription: Story<ModalProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `Pagination` to navigate multiple pages.
|
|
4
|
+
*/
|
|
5
|
+
export declare const Pagination: FC<PaginationProps>;
|
|
6
|
+
export interface PaginationProps {
|
|
7
|
+
/**
|
|
8
|
+
* Number of pages for the pagination
|
|
9
|
+
*/
|
|
10
|
+
pageCount: number;
|
|
11
|
+
/**
|
|
12
|
+
* Default page to be selected on render. If not provided defaults to 1.
|
|
13
|
+
*/
|
|
14
|
+
defaultSelectedPage?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Function to call when the page changes
|
|
17
|
+
*/
|
|
18
|
+
onPageChange: (selectedPage: number) => void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination } from "./Pagination";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `PaginationSimple` to navigate multiple pages.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PaginationSimple: FC<PaginationSimpleProps>;
|
|
6
|
+
export interface PaginationSimpleProps {
|
|
7
|
+
/**
|
|
8
|
+
* hides prev button if true.
|
|
9
|
+
*/
|
|
10
|
+
hidePrev?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* hides next button if true.
|
|
13
|
+
*/
|
|
14
|
+
hideNext?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* if true buttons will hug either edge of the parent element
|
|
17
|
+
*/
|
|
18
|
+
isFluid?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Function to call when previous page is selected
|
|
21
|
+
*/
|
|
22
|
+
onPrevPage: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Function to call when next page is selected
|
|
25
|
+
*/
|
|
26
|
+
onNextPage: () => void;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationSimple } from "./PaginationSimple";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { ProgressStepperItem } from "./ProgressStepperItem/ProgressStepperItem";
|
|
3
|
+
/** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
|
|
4
|
+
export declare const ProgressStepper: FC<ProgressStepperProps> & {
|
|
5
|
+
Item: typeof ProgressStepperItem;
|
|
6
|
+
};
|
|
7
|
+
export interface ProgressStepperProps {
|
|
8
|
+
/**
|
|
9
|
+
* Children of `<ProgressStepper />` should only contain `<ProgressStepper.Item />`
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
14
|
+
*/
|
|
15
|
+
direction?: "horizontal" | "vertical";
|
|
16
|
+
/**
|
|
17
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
18
|
+
*/
|
|
19
|
+
size?: "small" | "large";
|
|
20
|
+
/**
|
|
21
|
+
* Determine if `<ProgressStepper.Item />` should be Fluid. Only appliciable for `horizontal direction.`
|
|
22
|
+
*/
|
|
23
|
+
isFluid?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Determine if `<ProgressStepper.Item />` should be able to expand. This only is appliciable when direction is set to vertical
|
|
26
|
+
*/
|
|
27
|
+
isExpandable?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { ProgressStatus } from "../progressStatus";
|
|
3
|
+
export declare const ProgressStepperItem: FC<ProgressStepperItemProps>;
|
|
4
|
+
export interface ProgressStepperItemProps {
|
|
5
|
+
/**
|
|
6
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
11
|
+
*/
|
|
12
|
+
titleHref?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Text to override `linkTitle` with additional, more precise information
|
|
15
|
+
* specifically for screen reader users.
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Execute a function on title click `<ProgressStepper.Item />`
|
|
20
|
+
*/
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Determine a sub title for `<ProgressStepper.Item />`
|
|
24
|
+
*/
|
|
25
|
+
subTitle?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
28
|
+
*/
|
|
29
|
+
direction?: "horizontal" | "vertical";
|
|
30
|
+
/**
|
|
31
|
+
* Determine the position of the step `<ProgressStepper.Item />`
|
|
32
|
+
*/
|
|
33
|
+
position?: "first" | "middle" | "last";
|
|
34
|
+
/**
|
|
35
|
+
* Determine a status for `<ProgressStepper.Item />`
|
|
36
|
+
*/
|
|
37
|
+
status?: ProgressStatus;
|
|
38
|
+
/**
|
|
39
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
40
|
+
*/
|
|
41
|
+
size?: "small" | "large";
|
|
42
|
+
/**
|
|
43
|
+
* Determine if `<ProgressStepper.Item /> should be Fluid`
|
|
44
|
+
*/
|
|
45
|
+
isFluid?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Determine the context `<ProgressStepper.Item /> should b`
|
|
48
|
+
*/
|
|
49
|
+
previousStep?: ProgressStatus;
|
|
50
|
+
/**
|
|
51
|
+
* Determine if `<ProgressStepper.Item /> should have expandable content`
|
|
52
|
+
*/
|
|
53
|
+
isExpandable?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Determine what content to display in `<ProgressStepper.Item />. To use this option isExpandable must be `true``
|
|
56
|
+
*/
|
|
57
|
+
stepContent?: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Determine if `stepContent` is hidden
|
|
60
|
+
*/
|
|
61
|
+
isStepContentHidden?: boolean;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressStepper } from "./ProgressStepper";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
@@ -8,7 +8,7 @@ declare type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
|
8
8
|
export declare const RadioGroup: FC<RadioGroupProps> & {
|
|
9
9
|
RadioButton: typeof RadioButton;
|
|
10
10
|
};
|
|
11
|
-
export interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel"> {
|
|
11
|
+
export interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel" | "supplementaryInfo"> {
|
|
12
12
|
/**
|
|
13
13
|
* Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
|
|
14
14
|
*/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ScrollToTop: FC<ScrollToTopProps>;
|
|
6
|
+
export interface ScrollToTopProps {
|
|
7
|
+
/**
|
|
8
|
+
* If true, the button will stick to the bottom right corner of the screen.
|
|
9
|
+
*/
|
|
10
|
+
isFixed?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Sets when the scroll button should appear. `always` will show the button all the time.
|
|
13
|
+
* `afterScroll` will show the button when the user has stopped scrolling and have passed the fold.
|
|
14
|
+
*/
|
|
15
|
+
appear?: "always" | "afterScroll";
|
|
16
|
+
/**
|
|
17
|
+
* Z-index for the button. Used to fine tune the overlapping of other page elements.
|
|
18
|
+
*/
|
|
19
|
+
zIndex?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Button fill.
|
|
22
|
+
*/
|
|
23
|
+
fill?: "solid" | "outlined";
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScrollToTop } from "./ScrollToTop";
|
|
@@ -2,7 +2,7 @@ import React, { FocusEvent } from "react";
|
|
|
2
2
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
3
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
4
4
|
export declare const Select: React.FC<SelectProps>;
|
|
5
|
-
export interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "id" | "helperUnderLabel"> {
|
|
5
|
+
export interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "id" | "helperUnderLabel" | "supplementaryInfo"> {
|
|
6
6
|
name: string;
|
|
7
7
|
label: string;
|
|
8
8
|
placeholder: string;
|
|
@@ -10,12 +10,13 @@ export declare const Surface: FC<SurfaceProps>;
|
|
|
10
10
|
export declare const backgrounds: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
11
11
|
export declare const backgroundsBT: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
12
12
|
export declare type SurfacePadding = "8" | "12" | "16" | "24" | "32" | "48" | "64";
|
|
13
|
+
export declare type SurfaceBackgroundColor = "black" | "brand" | "brand-flat" | "dark" | "darker" | "coral" | "turquoise" | "light" | "lighter" | "white";
|
|
13
14
|
export interface SurfaceProps extends HTMLAttributes<HTMLElement> {
|
|
14
15
|
/**
|
|
15
16
|
* Background colour of the Surface. Contents will change colour to meet
|
|
16
17
|
* accessibility requirements.
|
|
17
18
|
*/
|
|
18
|
-
background?:
|
|
19
|
+
background?: SurfaceBackgroundColor;
|
|
19
20
|
/**
|
|
20
21
|
* Content to display on the Surface.
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Surface, SurfaceContext, backgrounds, backgroundsBT } from "./Surface";
|
|
1
|
+
export { Surface, SurfaceContext, backgrounds, backgroundsBT, SurfacePadding, SurfaceBackgroundColor } from "./Surface";
|
|
@@ -3,7 +3,7 @@ import { SwitchProps as RadixSwitchProps } from "@radix-ui/react-switch";
|
|
|
3
3
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
4
4
|
/** Use `Switch` to toggle between checked and not checked. */
|
|
5
5
|
export declare const Switch: FC<SwitchProps>;
|
|
6
|
-
export interface SwitchProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helper"> {
|
|
6
|
+
export interface SwitchProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helper" | "supplementaryInfo"> {
|
|
7
7
|
/**
|
|
8
8
|
* Hide Label above toggle?
|
|
9
9
|
*/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
|
+
declare type EventType = React.ChangeEvent<HTMLTextAreaElement>;
|
|
4
|
+
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
export interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel"> {
|
|
6
|
+
/**
|
|
7
|
+
* Uncontrolled default value of the TextArea. If the TextArea is controlled
|
|
8
|
+
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
9
|
+
*/
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ID for the TextArea.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Should the control be disabled?
|
|
17
|
+
*/
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Should the control be read-only?
|
|
21
|
+
*/
|
|
22
|
+
isReadOnly?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Should the control be required?
|
|
25
|
+
*/
|
|
26
|
+
isRequired?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum number of characters.
|
|
29
|
+
*/
|
|
30
|
+
maxLength?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Shows the current character count and maxLength. Ignored if maxLength is undefined.
|
|
33
|
+
*/
|
|
34
|
+
showCharacterCount?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Name of the input.
|
|
37
|
+
*/
|
|
38
|
+
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* `none` will prevent any resizing.
|
|
41
|
+
* `manual` will allow the user to resize the TextArea.
|
|
42
|
+
* `auto` will resize the text area as needed when the user types.
|
|
43
|
+
*/
|
|
44
|
+
resize?: "none" | "manual" | "auto";
|
|
45
|
+
/**
|
|
46
|
+
* Function to call when the TextArea loses focus.
|
|
47
|
+
*/
|
|
48
|
+
onBlur?: (e: EventType) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback function commonly used to update the TextArea's controlled
|
|
51
|
+
* `value`, for example `e => setValue(e.target.value)`.
|
|
52
|
+
*/
|
|
53
|
+
onChange?: (e: EventType) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Current value of the TextArea. Must be controlled via an
|
|
56
|
+
* `onChange` callback function. Otherwise, use `defaultValue` (or `isReadOnly`).
|
|
57
|
+
*/
|
|
58
|
+
value?: string;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextArea } from "./TextArea";
|
|
@@ -5,7 +5,7 @@ declare type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
|
5
5
|
* Use `TextInput` to allow custom user text entry with a keyboard.
|
|
6
6
|
*/
|
|
7
7
|
export declare const TextInput: FC<TextInputProps>;
|
|
8
|
-
export interface TextInputProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel"> {
|
|
8
|
+
export interface TextInputProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel" | "supplementaryInfo"> {
|
|
9
9
|
/**
|
|
10
10
|
* Uncontrolled default value of the TextInput. If the TextInput is controlled
|
|
11
11
|
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
@@ -11,6 +11,7 @@ export { Curve } from "./Curve";
|
|
|
11
11
|
export { Disclosure } from "./Disclosure";
|
|
12
12
|
export { Elevation } from "./Elevation";
|
|
13
13
|
export { FormControl } from "./FormControl";
|
|
14
|
+
export { Filter } from "./Filter";
|
|
14
15
|
export { Group } from "./Group";
|
|
15
16
|
export { Heading } from "./Heading";
|
|
16
17
|
export { Icon } from "./Icon";
|
|
@@ -30,6 +31,7 @@ export { Badge } from "./Badge";
|
|
|
30
31
|
export { Tag } from "./Tag";
|
|
31
32
|
export { Text } from "./Text";
|
|
32
33
|
export { TextInput } from "./TextInput";
|
|
34
|
+
export { TextArea } from "./TextArea";
|
|
33
35
|
export { Truncate } from "./Truncate";
|
|
34
36
|
export { VerticalSpace } from "./VerticalSpace";
|
|
35
37
|
export { VisuallyHidden } from "./VisuallyHidden";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePagination: (pageCount: number, selectedPage: number) => string[];
|
package/dist/types/styles.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import "./components/Base/Base.css";
|
|
|
5
5
|
import "./components/BrandLogo/BrandLogo.css";
|
|
6
6
|
import "./components/Breadcrumbs/Breadcrumbs.css";
|
|
7
7
|
import "./components/Card/Card.css";
|
|
8
|
+
import "./components/Box/Box.css";
|
|
8
9
|
import "./components/Button/Button.css";
|
|
9
10
|
import "./components/Checkbox/Checkbox.css";
|
|
10
11
|
import "./components/Clock/Clock.css";
|
|
@@ -13,15 +14,22 @@ import "./components/Columns/Columns.offsets.css";
|
|
|
13
14
|
import "./components/Disclosure/Disclosure.css";
|
|
14
15
|
import "./components/DisclosureMini/DisclosureMini.css";
|
|
15
16
|
import "./components/Elevation/Elevation.css";
|
|
17
|
+
import "./components/Filter/Filter.css";
|
|
16
18
|
import "./components/FormControl/FormControl.css";
|
|
17
19
|
import "./components/Group/Group.css";
|
|
18
20
|
import "./components/Heading/Heading.css";
|
|
19
21
|
import "./components/Icon/Icon.css";
|
|
20
22
|
import "./components/Image/Image.css";
|
|
21
23
|
import "./components/Markup/Markup.css";
|
|
24
|
+
import "./components/MediaCard/MediaCard.css";
|
|
25
|
+
import "./components/Modal/Modal.css";
|
|
26
|
+
import "./components/Pagination/Pagination.css";
|
|
27
|
+
import "./components/PaginationSimple/PaginationSimple.css";
|
|
22
28
|
import "./components/Poster/Poster.css";
|
|
29
|
+
import "./components/ProgressBar/ProgressBar.css";
|
|
23
30
|
import "./components/RadioGroup/RadioGroup.css";
|
|
24
31
|
import "./components/Rule/Rule.css";
|
|
32
|
+
import "./components/ScrollToTop/ScrollToTop.css";
|
|
25
33
|
import "./components/Section/Section.css";
|
|
26
34
|
import "./components/Select/Select.css";
|
|
27
35
|
import "./components/SiteFooter/SiteFooter.css";
|
|
@@ -29,6 +37,7 @@ import "./components/SiteHeader/SiteHeader.css";
|
|
|
29
37
|
import "./components/Surface/Surface.css";
|
|
30
38
|
import "./components/Tag/Tag.css";
|
|
31
39
|
import "./components/Text/Text.css";
|
|
40
|
+
import "./components/TextArea/TextArea.css";
|
|
32
41
|
import "./components/TextInput/TextInput.css";
|
|
33
42
|
import "./components/Truncate/Truncate.css";
|
|
34
43
|
import "./components/UniversalHeader/UniversalHeader.css";
|
|
@@ -62,3 +71,4 @@ import "./components/UniversalHeader/UniversalHeader.bt.css";
|
|
|
62
71
|
import "./components/Switch/Switch.bt.css";
|
|
63
72
|
import "./components/Modal/Modal.css";
|
|
64
73
|
import "./components/ProgressBar/ProgressBar.css";
|
|
74
|
+
import "./components/ProgressStepper/ProgressStepper.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.7.0",
|
|
4
4
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
5
5
|
"author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@radix-ui/react-switch": "^1.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@arc-ui/fonts": "^11.
|
|
36
|
-
"@arc-ui/icons": "^11.
|
|
37
|
-
"@arc-ui/tokens": "^11.
|
|
35
|
+
"@arc-ui/fonts": "^11.7.0",
|
|
36
|
+
"@arc-ui/icons": "^11.7.0",
|
|
37
|
+
"@arc-ui/tokens": "^11.7.0",
|
|
38
38
|
"@babel/core": "^7.14.3",
|
|
39
39
|
"@babel/helper-define-map": "^7.14.3",
|
|
40
40
|
"@storybook/addon-essentials": "^6.3.6",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|