@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,152 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
|
+
var React$3 = require('react');
|
|
7
|
+
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
8
|
+
var BtIconAlert = require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
9
|
+
var Icon = require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
10
|
+
var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
11
|
+
var VerticalSpace = require('../_shared/cjs/VerticalSpace-86f697e7.js');
|
|
12
|
+
var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-e2c8b291.js');
|
|
13
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$3);
|
|
18
|
+
|
|
19
|
+
const React$2 = React__default["default"];
|
|
20
|
+
const BtIconTickVariant = props =>
|
|
21
|
+
/*#__PURE__*/ React$2.createElement(
|
|
22
|
+
"svg",
|
|
23
|
+
Object.assign(
|
|
24
|
+
{
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
viewBox: "0 0 32 32"
|
|
27
|
+
},
|
|
28
|
+
props
|
|
29
|
+
),
|
|
30
|
+
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
31
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
32
|
+
d:
|
|
33
|
+
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
34
|
+
fill: "currentColor"
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
38
|
+
|
|
39
|
+
const React$1 = React__default["default"];
|
|
40
|
+
const BtIconCrossAlt = props =>
|
|
41
|
+
/*#__PURE__*/ React$1.createElement(
|
|
42
|
+
"svg",
|
|
43
|
+
Object.assign(
|
|
44
|
+
{
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
viewBox: "0 0 32 32"
|
|
47
|
+
},
|
|
48
|
+
props
|
|
49
|
+
),
|
|
50
|
+
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
51
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
52
|
+
d:
|
|
53
|
+
"M16.70709,16.02l4.48236-4.49365a.4996.4996,0,1,0-.707-.70606l-4.481,4.49225-4.481-4.49225a.4996.4996,0,1,0-.707.70606L15.29584,16.02l-4.48236,4.49365a.4996.4996,0,1,0,.707.70606l4.481-4.49225,4.481,4.49225a.4996.4996,0,1,0,.707-.70606Z",
|
|
54
|
+
fill: "currentColor"
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
var BtIconCrossAlt_2 = BtIconCrossAlt;
|
|
58
|
+
|
|
59
|
+
const React = React__default["default"];
|
|
60
|
+
const BtIconCircle = props =>
|
|
61
|
+
/*#__PURE__*/ React.createElement(
|
|
62
|
+
"svg",
|
|
63
|
+
Object.assign(
|
|
64
|
+
{
|
|
65
|
+
viewBox: "0 0 32 32",
|
|
66
|
+
fill: "none",
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
68
|
+
},
|
|
69
|
+
props
|
|
70
|
+
),
|
|
71
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
72
|
+
fillRule: "evenodd",
|
|
73
|
+
clipRule: "evenodd",
|
|
74
|
+
d:
|
|
75
|
+
"M9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9C12.13 9 9 12.13 9 16ZM16 7C11.03 7 7 11.03 7 16C7 20.97 11.03 25 16 25C20.97 25 25 20.97 25 16C25 11.03 20.97 7 16 7Z",
|
|
76
|
+
fill: "currentColor"
|
|
77
|
+
})
|
|
78
|
+
);
|
|
79
|
+
var BtIconCircle_2 = BtIconCircle;
|
|
80
|
+
|
|
81
|
+
var ProgressStepperItem = function (_a) {
|
|
82
|
+
var _b, _c;
|
|
83
|
+
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _d = _a.direction, direction = _d === void 0 ? "horizontal" : _d, _e = _a.status, status = _e === void 0 ? "todo" : _e, _f = _a.size, size = _f === void 0 ? "large" : _f, _g = _a.position, position = _g === void 0 ? "middle" : _g, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, isExpandable = _a.isExpandable, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = filterDataAttrs.__rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "position", "isFluid", "ariaLabel", "onClick", "previousStep", "isExpandable", "stepContent", "isStepContentHidden"]);
|
|
84
|
+
var surface = React$3.useContext(Surface.Context).surface;
|
|
85
|
+
var statusIcons = {
|
|
86
|
+
completed: BtIconTickVariant_2,
|
|
87
|
+
current: BtIconCircle_2,
|
|
88
|
+
warning: BtIconAlert.BtIconAlert_2,
|
|
89
|
+
error: BtIconCrossAlt_2
|
|
90
|
+
};
|
|
91
|
+
var onClickHandler = function (event) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
onClick && onClick();
|
|
94
|
+
};
|
|
95
|
+
var capitaliseFirstLetter = function (word) {
|
|
96
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
97
|
+
};
|
|
98
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepperItem", (_b = {
|
|
99
|
+
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
100
|
+
"arc-ProgressStepperItem--isFluid": isFluid,
|
|
101
|
+
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
102
|
+
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
103
|
+
},
|
|
104
|
+
_b["arc-ProgressStepperItem--".concat(status)] = status !== "todo",
|
|
105
|
+
_b["arc-ProgressStepperItem--".concat(size)] = size === "small",
|
|
106
|
+
_b)) }, filterDataAttrs.filterDataAttrs(props)),
|
|
107
|
+
React__default["default"].createElement("div", { className: index.classNames("arc-ProgressStepperItem-iconSection", (_c = {},
|
|
108
|
+
_c["arc-ProgressStepperItem-iconSection--".concat(position)] = position !== "middle",
|
|
109
|
+
_c)) },
|
|
110
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailBefore" }),
|
|
111
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconWrapper" }, statusIcons[status] === undefined ? (React__default["default"].createElement("div", { style: {
|
|
112
|
+
width: size === "small" ? "16px" : "32px",
|
|
113
|
+
height: size === "small" ? "16px" : "32px"
|
|
114
|
+
} })) : (React__default["default"].createElement(Icon.Icon, { size: size === "small" ? 16 : 32, icon: statusIcons[status] }))),
|
|
115
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailAfter" })),
|
|
116
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
117
|
+
status !== "todo" && (React__default["default"].createElement(VisuallyHidden.VisuallyHidden, null,
|
|
118
|
+
capitaliseFirstLetter(status),
|
|
119
|
+
":")),
|
|
120
|
+
titleHref ? (React__default["default"].createElement("a", { href: titleHref, "aria-label": ariaLabel, className: "arc-ProgressStepperItem-title", onClick: onClickHandler }, title)) : (React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
|
|
121
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
122
|
+
isExpandable && direction === "vertical" && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
123
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-nodeItem" },
|
|
124
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-keyline" }),
|
|
125
|
+
stepContent && !isStepContentHidden && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
126
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
127
|
+
stepContent))))))));
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/** 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. */
|
|
131
|
+
var ProgressStepper = function (_a) {
|
|
132
|
+
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, props = filterDataAttrs.__rest(_a, ["children", "size", "isFluid", "direction", "isExpandable"]);
|
|
133
|
+
var items = React__default["default"].Children.toArray(children);
|
|
134
|
+
var getStepStatus = function (item) {
|
|
135
|
+
var _a;
|
|
136
|
+
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
137
|
+
};
|
|
138
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepper", {
|
|
139
|
+
"arc-ProgressStepper--vertical": direction === "vertical"
|
|
140
|
+
}) }, filterDataAttrs.filterDataAttrs(props)), items.map(function (item, index) {
|
|
141
|
+
var currentPosition = index === 0
|
|
142
|
+
? "first"
|
|
143
|
+
: index === React__default["default"].Children.count(children) - 1
|
|
144
|
+
? "last"
|
|
145
|
+
: undefined;
|
|
146
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, { key: "StepperItem-".concat(index) },
|
|
147
|
+
React__default["default"].createElement(ProgressStepperItem, filterDataAttrs.__assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, direction: direction, isExpandable: isExpandable, size: size, position: currentPosition, previousStep: getStepStatus(items[index - 1]) }, filterDataAttrs.filterDataAttrs(item.props)))));
|
|
148
|
+
})));
|
|
149
|
+
};
|
|
150
|
+
ProgressStepper.Item = ProgressStepperItem;
|
|
151
|
+
|
|
152
|
+
exports.ProgressStepper = ProgressStepper;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
3
|
+
declare const ProgressStepperItem: FC<ProgressStepperItemProps>;
|
|
4
|
+
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
|
+
}
|
|
63
|
+
/** 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. */
|
|
64
|
+
declare const ProgressStepper: FC<ProgressStepperProps> & {
|
|
65
|
+
Item: typeof ProgressStepperItem;
|
|
66
|
+
};
|
|
67
|
+
interface ProgressStepperProps {
|
|
68
|
+
/**
|
|
69
|
+
* Children of `<ProgressStepper />` should only contain `<ProgressStepper.Item />`
|
|
70
|
+
*/
|
|
71
|
+
children?: ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
74
|
+
*/
|
|
75
|
+
direction?: "horizontal" | "vertical";
|
|
76
|
+
/**
|
|
77
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
78
|
+
*/
|
|
79
|
+
size?: "small" | "large";
|
|
80
|
+
/**
|
|
81
|
+
* Determine if `<ProgressStepper.Item />` should be Fluid. Only appliciable for `horizontal direction.`
|
|
82
|
+
*/
|
|
83
|
+
isFluid?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Determine if `<ProgressStepper.Item />` should be able to expand. This only is appliciable when direction is set to vertical
|
|
86
|
+
*/
|
|
87
|
+
isExpandable?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export { ProgressStepper };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
|
+
import React__default, { useContext } from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
4
|
+
import { B as BtIconAlert_2 } from '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
5
|
+
import { I as Icon } from '../_shared/esm/Icon-c1af47bc.js';
|
|
6
|
+
import { C as Context } from '../_shared/esm/Surface-dde51789.js';
|
|
7
|
+
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-93980c9c.js';
|
|
8
|
+
import { V as VisuallyHidden } from '../_shared/esm/VisuallyHidden-b9eebf71.js';
|
|
9
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
10
|
+
|
|
11
|
+
const React$2 = React__default;
|
|
12
|
+
const BtIconTickVariant = props =>
|
|
13
|
+
/*#__PURE__*/ React$2.createElement(
|
|
14
|
+
"svg",
|
|
15
|
+
Object.assign(
|
|
16
|
+
{
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
viewBox: "0 0 32 32"
|
|
19
|
+
},
|
|
20
|
+
props
|
|
21
|
+
),
|
|
22
|
+
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
23
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
24
|
+
d:
|
|
25
|
+
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
26
|
+
fill: "currentColor"
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
30
|
+
|
|
31
|
+
const React$1 = React__default;
|
|
32
|
+
const BtIconCrossAlt = props =>
|
|
33
|
+
/*#__PURE__*/ React$1.createElement(
|
|
34
|
+
"svg",
|
|
35
|
+
Object.assign(
|
|
36
|
+
{
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
viewBox: "0 0 32 32"
|
|
39
|
+
},
|
|
40
|
+
props
|
|
41
|
+
),
|
|
42
|
+
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
43
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
44
|
+
d:
|
|
45
|
+
"M16.70709,16.02l4.48236-4.49365a.4996.4996,0,1,0-.707-.70606l-4.481,4.49225-4.481-4.49225a.4996.4996,0,1,0-.707.70606L15.29584,16.02l-4.48236,4.49365a.4996.4996,0,1,0,.707.70606l4.481-4.49225,4.481,4.49225a.4996.4996,0,1,0,.707-.70606Z",
|
|
46
|
+
fill: "currentColor"
|
|
47
|
+
})
|
|
48
|
+
);
|
|
49
|
+
var BtIconCrossAlt_2 = BtIconCrossAlt;
|
|
50
|
+
|
|
51
|
+
const React = React__default;
|
|
52
|
+
const BtIconCircle = props =>
|
|
53
|
+
/*#__PURE__*/ React.createElement(
|
|
54
|
+
"svg",
|
|
55
|
+
Object.assign(
|
|
56
|
+
{
|
|
57
|
+
viewBox: "0 0 32 32",
|
|
58
|
+
fill: "none",
|
|
59
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
60
|
+
},
|
|
61
|
+
props
|
|
62
|
+
),
|
|
63
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
64
|
+
fillRule: "evenodd",
|
|
65
|
+
clipRule: "evenodd",
|
|
66
|
+
d:
|
|
67
|
+
"M9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9C12.13 9 9 12.13 9 16ZM16 7C11.03 7 7 11.03 7 16C7 20.97 11.03 25 16 25C20.97 25 25 20.97 25 16C25 11.03 20.97 7 16 7Z",
|
|
68
|
+
fill: "currentColor"
|
|
69
|
+
})
|
|
70
|
+
);
|
|
71
|
+
var BtIconCircle_2 = BtIconCircle;
|
|
72
|
+
|
|
73
|
+
var ProgressStepperItem = function (_a) {
|
|
74
|
+
var _b, _c;
|
|
75
|
+
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _d = _a.direction, direction = _d === void 0 ? "horizontal" : _d, _e = _a.status, status = _e === void 0 ? "todo" : _e, _f = _a.size, size = _f === void 0 ? "large" : _f, _g = _a.position, position = _g === void 0 ? "middle" : _g, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, isExpandable = _a.isExpandable, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "position", "isFluid", "ariaLabel", "onClick", "previousStep", "isExpandable", "stepContent", "isStepContentHidden"]);
|
|
76
|
+
var surface = useContext(Context).surface;
|
|
77
|
+
var statusIcons = {
|
|
78
|
+
completed: BtIconTickVariant_2,
|
|
79
|
+
current: BtIconCircle_2,
|
|
80
|
+
warning: BtIconAlert_2,
|
|
81
|
+
error: BtIconCrossAlt_2
|
|
82
|
+
};
|
|
83
|
+
var onClickHandler = function (event) {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
onClick && onClick();
|
|
86
|
+
};
|
|
87
|
+
var capitaliseFirstLetter = function (word) {
|
|
88
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
89
|
+
};
|
|
90
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", (_b = {
|
|
91
|
+
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
92
|
+
"arc-ProgressStepperItem--isFluid": isFluid,
|
|
93
|
+
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
94
|
+
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
95
|
+
},
|
|
96
|
+
_b["arc-ProgressStepperItem--".concat(status)] = status !== "todo",
|
|
97
|
+
_b["arc-ProgressStepperItem--".concat(size)] = size === "small",
|
|
98
|
+
_b)) }, filterDataAttrs(props)),
|
|
99
|
+
React__default.createElement("div", { className: classNames("arc-ProgressStepperItem-iconSection", (_c = {},
|
|
100
|
+
_c["arc-ProgressStepperItem-iconSection--".concat(position)] = position !== "middle",
|
|
101
|
+
_c)) },
|
|
102
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailBefore" }),
|
|
103
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper" }, statusIcons[status] === undefined ? (React__default.createElement("div", { style: {
|
|
104
|
+
width: size === "small" ? "16px" : "32px",
|
|
105
|
+
height: size === "small" ? "16px" : "32px"
|
|
106
|
+
} })) : (React__default.createElement(Icon, { size: size === "small" ? 16 : 32, icon: statusIcons[status] }))),
|
|
107
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailAfter" })),
|
|
108
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
109
|
+
status !== "todo" && (React__default.createElement(VisuallyHidden, null,
|
|
110
|
+
capitaliseFirstLetter(status),
|
|
111
|
+
":")),
|
|
112
|
+
titleHref ? (React__default.createElement("a", { href: titleHref, "aria-label": ariaLabel, className: "arc-ProgressStepperItem-title", onClick: onClickHandler }, title)) : (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
|
|
113
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
114
|
+
isExpandable && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
|
|
115
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" },
|
|
116
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-keyline" }),
|
|
117
|
+
stepContent && !isStepContentHidden && (React__default.createElement(React__default.Fragment, null,
|
|
118
|
+
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
119
|
+
stepContent))))))));
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** 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. */
|
|
123
|
+
var ProgressStepper = function (_a) {
|
|
124
|
+
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable"]);
|
|
125
|
+
var items = React__default.Children.toArray(children);
|
|
126
|
+
var getStepStatus = function (item) {
|
|
127
|
+
var _a;
|
|
128
|
+
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
129
|
+
};
|
|
130
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepper", {
|
|
131
|
+
"arc-ProgressStepper--vertical": direction === "vertical"
|
|
132
|
+
}) }, filterDataAttrs(props)), items.map(function (item, index) {
|
|
133
|
+
var currentPosition = index === 0
|
|
134
|
+
? "first"
|
|
135
|
+
: index === React__default.Children.count(children) - 1
|
|
136
|
+
? "last"
|
|
137
|
+
: undefined;
|
|
138
|
+
return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
|
|
139
|
+
React__default.createElement(ProgressStepperItem, __assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, direction: direction, isExpandable: isExpandable, size: size, position: currentPosition, previousStep: getStepStatus(items[index - 1]) }, filterDataAttrs(item.props)))));
|
|
140
|
+
})));
|
|
141
|
+
};
|
|
142
|
+
ProgressStepper.Item = ProgressStepperItem;
|
|
143
|
+
|
|
144
|
+
export { ProgressStepper };
|
|
@@ -1,85 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC } from "react";
|
|
4
|
-
import { FormControlProps } from "../_shared/cjs/FormControl-42360ae8";
|
|
5
|
-
/**
|
|
6
|
-
* Radio Button component.
|
|
7
|
-
*/
|
|
8
|
-
declare const RadioButton: FC<RadioButtonProps>;
|
|
9
|
-
interface RadioButtonProps {
|
|
10
|
-
/**
|
|
11
|
-
* ID for the Radio Button.
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* Should the RadioButton be disabled?
|
|
16
|
-
*/
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Helper text for the RadioButton, shown below the label.
|
|
20
|
-
*/
|
|
21
|
-
helper?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Label for the RadioButton.
|
|
24
|
-
*/
|
|
25
|
-
label: string;
|
|
26
|
-
/**
|
|
27
|
-
* Current value (controlled).
|
|
28
|
-
*/
|
|
29
|
-
value: string;
|
|
30
|
-
}
|
|
31
|
-
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
32
|
-
/**
|
|
33
|
-
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
34
|
-
*/
|
|
35
|
-
declare const RadioGroup: FC<RadioGroupProps> & {
|
|
36
|
-
RadioButton: typeof RadioButton;
|
|
37
|
-
};
|
|
38
|
-
interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel"> {
|
|
39
|
-
/**
|
|
40
|
-
* Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
|
|
41
|
-
*/
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* Value of the RadioButton that should be checked by default.
|
|
45
|
-
*/
|
|
46
|
-
checkedValue: string;
|
|
47
|
-
/**
|
|
48
|
-
* Should all controls be disabled?
|
|
49
|
-
*/
|
|
50
|
-
isDisabled?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Helper message for the RadioGroup.
|
|
53
|
-
*/
|
|
54
|
-
helper?: string;
|
|
55
|
-
/**
|
|
56
|
-
* ID for the RadioGroup.
|
|
57
|
-
*/
|
|
58
|
-
id: string;
|
|
59
|
-
/**
|
|
60
|
-
* Label for the RadioGroup.
|
|
61
|
-
*/
|
|
62
|
-
label: string;
|
|
63
|
-
/**
|
|
64
|
-
* Label size for the RadioGroup
|
|
65
|
-
*/
|
|
66
|
-
labelSize?: "s" | "l";
|
|
67
|
-
/**
|
|
68
|
-
* Name for the RadioGroup.
|
|
69
|
-
*/
|
|
70
|
-
name: string;
|
|
71
|
-
/**
|
|
72
|
-
* Function to call when the RadioGroup loses focus.
|
|
73
|
-
*/
|
|
74
|
-
onBlur?: (e: EventType) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Callback function to update the RadioGroup's controlled `checkedValue` prop,
|
|
77
|
-
* for example `e => setCheckedValue(e.target.value)`.
|
|
78
|
-
*/
|
|
79
|
-
onChange?: (event: EventType) => void;
|
|
80
|
-
/**
|
|
81
|
-
* Size of the RadioGroup.
|
|
82
|
-
*/
|
|
83
|
-
size?: "s" | "l";
|
|
84
|
-
}
|
|
85
|
-
export { RadioGroup };
|
|
1
|
+
export { RadioGroup } from "../_shared/cjs/RadioGroup-8e17de70";
|
|
@@ -2,77 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
var RadioGroup = require('../_shared/cjs/RadioGroup-8e17de70.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/FormControl-78b007b7.js');
|
|
9
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
10
10
|
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
11
|
-
require('../_shared/cjs/
|
|
11
|
+
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
12
|
+
require('../_shared/cjs/DisclosureMini-2a10006e.js');
|
|
12
13
|
require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
13
|
-
require('../_shared/cjs/Text-
|
|
14
|
+
require('../_shared/cjs/Text-555a29a4.js');
|
|
14
15
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
15
|
-
require('../_shared/cjs/VerticalSpace-86f697e7.js');
|
|
16
16
|
|
|
17
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
17
|
|
|
19
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
var Provider = RadioContext.Provider;
|
|
23
|
-
var useRadioContext = function () {
|
|
24
|
-
var context = React.useContext(RadioContext);
|
|
25
|
-
return context;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Radio Button component.
|
|
30
|
-
*/
|
|
31
|
-
var RadioButton = React.forwardRef(function (_a, ref) {
|
|
32
|
-
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = filterDataAttrs.__rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
|
|
33
|
-
var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
|
|
34
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
35
|
-
var idLabel = "".concat(id, "-label");
|
|
36
|
-
var checked = checkedValue === value ? true : false;
|
|
37
|
-
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames({
|
|
38
|
-
"arc-RadioButton": true,
|
|
39
|
-
"arc-RadioButton--disabled": isDisabled || groupDisabled,
|
|
40
|
-
"arc-RadioButton--small": size === "s",
|
|
41
|
-
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
42
|
-
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
43
|
-
}) }, filterDataAttrs.filterDataAttrs(props)),
|
|
44
|
-
React__default["default"].createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
|
|
45
|
-
React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value }),
|
|
46
|
-
React__default["default"].createElement("span", null,
|
|
47
|
-
label,
|
|
48
|
-
helper && React__default["default"].createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
53
|
-
*/
|
|
54
|
-
var RadioGroup = function (_a) {
|
|
55
|
-
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? "l" : _d, props = filterDataAttrs.__rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
56
|
-
React.useEffect(function () {
|
|
57
|
-
React__default["default"].Children.map(children, function (item) {
|
|
58
|
-
if (item && item.type !== RadioButton) {
|
|
59
|
-
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}, [children]);
|
|
63
|
-
return (React__default["default"].createElement(Provider, { value: {
|
|
64
|
-
blurEvent: onBlur,
|
|
65
|
-
changeEvent: onChange,
|
|
66
|
-
groupDisabled: isDisabled,
|
|
67
|
-
checkedValue: checkedValue,
|
|
68
|
-
labelSize: labelSize,
|
|
69
|
-
name: name,
|
|
70
|
-
size: size
|
|
71
|
-
} },
|
|
72
|
-
React__default["default"].createElement("div", filterDataAttrs.__assign({ className: "arc-RadioGroup" }, filterDataAttrs.filterDataAttrs(props)),
|
|
73
|
-
React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
|
|
74
|
-
};
|
|
75
|
-
RadioButton.displayName = "RadioGroup.RadioButton";
|
|
76
|
-
RadioGroup.RadioButton = RadioButton;
|
|
77
|
-
|
|
78
|
-
exports.RadioGroup = RadioGroup;
|
|
19
|
+
exports.RadioGroup = RadioGroup.RadioGroup;
|
|
@@ -1,85 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC } from "react";
|
|
4
|
-
import { FormControlProps } from "../_shared/esm/FormControl-0744f93f";
|
|
5
|
-
/**
|
|
6
|
-
* Radio Button component.
|
|
7
|
-
*/
|
|
8
|
-
declare const RadioButton: FC<RadioButtonProps>;
|
|
9
|
-
interface RadioButtonProps {
|
|
10
|
-
/**
|
|
11
|
-
* ID for the Radio Button.
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
/**
|
|
15
|
-
* Should the RadioButton be disabled?
|
|
16
|
-
*/
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Helper text for the RadioButton, shown below the label.
|
|
20
|
-
*/
|
|
21
|
-
helper?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Label for the RadioButton.
|
|
24
|
-
*/
|
|
25
|
-
label: string;
|
|
26
|
-
/**
|
|
27
|
-
* Current value (controlled).
|
|
28
|
-
*/
|
|
29
|
-
value: string;
|
|
30
|
-
}
|
|
31
|
-
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
32
|
-
/**
|
|
33
|
-
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
34
|
-
*/
|
|
35
|
-
declare const RadioGroup: FC<RadioGroupProps> & {
|
|
36
|
-
RadioButton: typeof RadioButton;
|
|
37
|
-
};
|
|
38
|
-
interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel"> {
|
|
39
|
-
/**
|
|
40
|
-
* Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
|
|
41
|
-
*/
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* Value of the RadioButton that should be checked by default.
|
|
45
|
-
*/
|
|
46
|
-
checkedValue: string;
|
|
47
|
-
/**
|
|
48
|
-
* Should all controls be disabled?
|
|
49
|
-
*/
|
|
50
|
-
isDisabled?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Helper message for the RadioGroup.
|
|
53
|
-
*/
|
|
54
|
-
helper?: string;
|
|
55
|
-
/**
|
|
56
|
-
* ID for the RadioGroup.
|
|
57
|
-
*/
|
|
58
|
-
id: string;
|
|
59
|
-
/**
|
|
60
|
-
* Label for the RadioGroup.
|
|
61
|
-
*/
|
|
62
|
-
label: string;
|
|
63
|
-
/**
|
|
64
|
-
* Label size for the RadioGroup
|
|
65
|
-
*/
|
|
66
|
-
labelSize?: "s" | "l";
|
|
67
|
-
/**
|
|
68
|
-
* Name for the RadioGroup.
|
|
69
|
-
*/
|
|
70
|
-
name: string;
|
|
71
|
-
/**
|
|
72
|
-
* Function to call when the RadioGroup loses focus.
|
|
73
|
-
*/
|
|
74
|
-
onBlur?: (e: EventType) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Callback function to update the RadioGroup's controlled `checkedValue` prop,
|
|
77
|
-
* for example `e => setCheckedValue(e.target.value)`.
|
|
78
|
-
*/
|
|
79
|
-
onChange?: (event: EventType) => void;
|
|
80
|
-
/**
|
|
81
|
-
* Size of the RadioGroup.
|
|
82
|
-
*/
|
|
83
|
-
size?: "s" | "l";
|
|
84
|
-
}
|
|
85
|
-
export { RadioGroup };
|
|
1
|
+
export { RadioGroup } from "../_shared/esm/RadioGroup-65b8c8bf";
|