@arc-ui/components 11.4.2 → 11.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.cjs.d.ts +57 -0
- package/dist/Alert/Alert.cjs.js +142 -0
- package/dist/Alert/Alert.esm.d.ts +57 -0
- package/dist/Alert/Alert.esm.js +134 -0
- package/dist/Alert/package.json +7 -0
- package/dist/Align/Align.cjs.js +6 -6
- package/dist/Align/Align.esm.js +2 -2
- package/dist/Badge/Badge.cjs.js +7 -7
- package/dist/Badge/Badge.esm.js +4 -4
- package/dist/Base/Base.cjs.d.ts +1 -1
- package/dist/Base/Base.cjs.js +2 -2
- package/dist/Base/Base.esm.d.ts +1 -1
- package/dist/Base/Base.esm.js +2 -2
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +4 -4
- package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.esm.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +11 -643
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +10 -642
- package/dist/Button/Button.cjs.d.ts +1 -1
- package/dist/Button/Button.cjs.js +6 -5
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +6 -5
- package/dist/Card/Card.cjs.d.ts +1 -130
- package/dist/Card/Card.cjs.js +12 -119
- package/dist/Card/Card.esm.d.ts +1 -130
- package/dist/Card/Card.esm.js +11 -118
- package/dist/Checkbox/Checkbox.cjs.d.ts +1 -59
- package/dist/Checkbox/Checkbox.cjs.js +13 -55
- package/dist/Checkbox/Checkbox.esm.d.ts +1 -59
- package/dist/Checkbox/Checkbox.esm.js +12 -54
- package/dist/Clock/Clock.cjs.js +6 -6
- package/dist/Clock/Clock.esm.js +1 -1
- package/dist/Columns/Columns.cjs.d.ts +1 -76
- package/dist/Columns/Columns.cjs.js +6 -52
- package/dist/Columns/Columns.esm.d.ts +1 -76
- package/dist/Columns/Columns.esm.js +5 -51
- package/dist/Curve/Curve.cjs.d.ts +1 -1
- package/dist/Curve/Curve.cjs.js +3 -3
- package/dist/Curve/Curve.esm.d.ts +1 -1
- package/dist/Curve/Curve.esm.js +3 -3
- package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +8 -8
- package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
- package/dist/Disclosure/Disclosure.esm.js +4 -4
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -0
- package/dist/DisclosureMini/DisclosureMini.cjs.js +16 -0
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -0
- package/dist/DisclosureMini/DisclosureMini.esm.js +8 -0
- package/dist/DisclosureMini/package.json +7 -0
- package/dist/Elevation/Elevation.cjs.d.ts +4 -0
- package/dist/Elevation/Elevation.cjs.js +7 -5
- package/dist/Elevation/Elevation.esm.d.ts +4 -0
- package/dist/Elevation/Elevation.esm.js +4 -2
- package/dist/Filter/Filter.cjs.d.ts +1 -0
- package/dist/Filter/Filter.cjs.js +13 -0
- package/dist/Filter/Filter.esm.d.ts +1 -0
- package/dist/Filter/Filter.esm.js +5 -0
- package/dist/Filter/package.json +7 -0
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +8 -6
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +8 -6
- package/dist/Group/Group.cjs.d.ts +1 -46
- package/dist/Group/Group.cjs.js +6 -43
- package/dist/Group/Group.esm.d.ts +1 -46
- package/dist/Group/Group.esm.js +5 -42
- package/dist/Heading/Heading.cjs.d.ts +1 -1
- package/dist/Heading/Heading.cjs.js +4 -4
- package/dist/Heading/Heading.esm.d.ts +1 -1
- package/dist/Heading/Heading.esm.js +4 -4
- package/dist/Icon/Icon.cjs.d.ts +1 -1
- package/dist/Icon/Icon.cjs.js +4 -4
- package/dist/Icon/Icon.esm.d.ts +1 -1
- package/dist/Icon/Icon.esm.js +4 -4
- package/dist/Image/Image.cjs.d.ts +1 -1
- package/dist/Image/Image.cjs.js +3 -3
- package/dist/Image/Image.esm.d.ts +1 -1
- package/dist/Image/Image.esm.js +3 -3
- package/dist/Markup/Markup.cjs.js +6 -6
- package/dist/Markup/Markup.esm.js +2 -2
- package/dist/Pagination/Pagination.cjs.d.ts +20 -0
- package/dist/Pagination/Pagination.cjs.js +87 -0
- package/dist/Pagination/Pagination.esm.d.ts +20 -0
- package/dist/Pagination/Pagination.esm.js +79 -0
- package/dist/Pagination/package.json +7 -0
- package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +28 -0
- package/dist/PaginationSimple/PaginationSimple.cjs.js +47 -0
- package/dist/PaginationSimple/PaginationSimple.esm.d.ts +28 -0
- package/dist/PaginationSimple/PaginationSimple.esm.js +39 -0
- package/dist/PaginationSimple/package.json +7 -0
- package/dist/Poster/Poster.cjs.d.ts +1 -81
- package/dist/Poster/Poster.cjs.js +8 -45
- package/dist/Poster/Poster.esm.d.ts +1 -81
- package/dist/Poster/Poster.esm.js +7 -44
- package/dist/ProgressBar/ProgressBar.cjs.js +22 -41
- package/dist/ProgressBar/ProgressBar.esm.js +13 -32
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
- package/dist/RadioGroup/RadioGroup.cjs.js +12 -68
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
- package/dist/RadioGroup/RadioGroup.esm.js +11 -67
- package/dist/Rule/Rule.cjs.js +5 -5
- package/dist/Rule/Rule.esm.js +2 -2
- package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +25 -0
- package/dist/ScrollToTop/ScrollToTop.cjs.js +68 -0
- package/dist/ScrollToTop/ScrollToTop.esm.d.ts +25 -0
- package/dist/ScrollToTop/ScrollToTop.esm.js +60 -0
- package/dist/ScrollToTop/package.json +7 -0
- package/dist/Section/Section.cjs.d.ts +1 -1
- package/dist/Section/Section.cjs.js +2 -2
- package/dist/Section/Section.esm.d.ts +1 -1
- package/dist/Section/Section.esm.js +2 -2
- package/dist/Select/Select.cjs.d.ts +2 -2
- package/dist/Select/Select.cjs.js +9 -8
- package/dist/Select/Select.esm.d.ts +2 -2
- package/dist/Select/Select.esm.js +9 -8
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
- package/dist/SiteFooter/SiteFooter.cjs.js +14 -69
- package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
- package/dist/SiteFooter/SiteFooter.esm.js +13 -67
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -252
- package/dist/SiteHeader/SiteHeader.cjs.js +17 -661
- package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -252
- package/dist/SiteHeader/SiteHeader.esm.js +15 -659
- package/dist/Surface/Surface.cjs.d.ts +1 -1
- package/dist/Surface/Surface.cjs.js +2 -2
- package/dist/Surface/Surface.esm.d.ts +1 -1
- package/dist/Surface/Surface.esm.js +2 -2
- package/dist/Switch/Switch.cjs.d.ts +2 -2
- package/dist/Switch/Switch.cjs.js +10 -8
- package/dist/Switch/Switch.esm.d.ts +2 -2
- package/dist/Switch/Switch.esm.js +10 -8
- package/dist/Tag/Tag.cjs.js +39 -18
- package/dist/Tag/Tag.esm.js +31 -10
- package/dist/Text/Text.cjs.d.ts +1 -1
- package/dist/Text/Text.cjs.js +4 -4
- package/dist/Text/Text.esm.d.ts +1 -1
- package/dist/Text/Text.esm.js +4 -4
- package/dist/TextArea/TextArea.cjs.d.ts +61 -0
- package/dist/TextArea/TextArea.cjs.js +87 -0
- package/dist/TextArea/TextArea.esm.d.ts +61 -0
- package/dist/TextArea/TextArea.esm.js +79 -0
- package/dist/TextArea/package.json +7 -0
- package/dist/TextInput/TextInput.cjs.d.ts +1 -75
- package/dist/TextInput/TextInput.cjs.js +13 -76
- package/dist/TextInput/TextInput.esm.d.ts +1 -75
- package/dist/TextInput/TextInput.esm.js +12 -75
- package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -26
- package/dist/UniversalHeader/UniversalHeader.cjs.js +5 -30
- package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -26
- package/dist/UniversalHeader/UniversalHeader.esm.js +4 -29
- package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +1 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +1 -1
- package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
- package/dist/_shared/cjs/{Base-e2b846fe.js → Base-569e4334.js} +3 -3
- package/dist/_shared/cjs/{BrandLogo-3c6102ef.js → BrandLogo-8008f0c4.js} +7 -7
- package/dist/_shared/cjs/Breadcrumbs-8b554370.d.ts +61 -0
- package/dist/_shared/cjs/Breadcrumbs-8b554370.js +106 -0
- package/dist/_shared/cjs/BtIconAlert-637db790.js +38 -0
- package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
- package/dist/_shared/cjs/BtIconCrossAlt2Px-30dc2688.js +29 -0
- package/dist/_shared/cjs/{Button-1af6868c.js → Button-27512fee.js} +16 -37
- package/dist/_shared/cjs/Card-804ab0e5.d.ts +136 -0
- package/dist/_shared/cjs/Card-804ab0e5.js +124 -0
- package/dist/_shared/cjs/Checkbox-21d3c4f6.d.ts +64 -0
- package/dist/_shared/cjs/Checkbox-21d3c4f6.js +62 -0
- package/dist/_shared/cjs/Columns-e90798f8.d.ts +76 -0
- package/dist/_shared/cjs/Columns-e90798f8.js +57 -0
- package/dist/_shared/cjs/{Curve-e72ce25b.js → Curve-b05589d8.js} +6 -6
- package/dist/_shared/cjs/DisclosureMini-067e0319.d.ts +37 -0
- package/dist/_shared/cjs/DisclosureMini-067e0319.js +44 -0
- package/dist/_shared/cjs/Filter-f7d2fbda.d.ts +83 -0
- package/dist/_shared/cjs/Filter-f7d2fbda.js +121 -0
- package/dist/_shared/cjs/{FormControl-d4d9c665.d.ts → FormControl-9aaddd54.d.ts} +6 -29
- package/dist/_shared/cjs/FormControl-9aaddd54.js +96 -0
- package/dist/_shared/cjs/Group-d83f8c2e.d.ts +46 -0
- package/dist/_shared/cjs/Group-d83f8c2e.js +48 -0
- package/dist/_shared/cjs/{Heading-cc38c3ec.js → Heading-d45f6a7f.js} +7 -7
- package/dist/_shared/cjs/{Icon-719d13d4.js → Icon-9ae8dbe1.js} +7 -7
- package/dist/_shared/cjs/{Image-fe760a06.js → Image-3bf4b4f3.js} +8 -8
- package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +27 -0
- package/dist/_shared/cjs/NavItem-df20237c.d.ts +43 -0
- package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +49 -0
- package/dist/_shared/cjs/Poster-e05bbe13.d.ts +81 -0
- package/dist/_shared/cjs/Poster-e05bbe13.js +50 -0
- package/dist/_shared/cjs/RadioGroup-81805ef9.d.ts +97 -0
- package/dist/_shared/cjs/RadioGroup-81805ef9.js +70 -0
- package/dist/_shared/cjs/{Section-780f2377.js → Section-48aca5f5.js} +5 -5
- package/dist/_shared/cjs/SiteFooter-c540b5f1.d.ts +62 -0
- package/dist/_shared/cjs/SiteFooter-c540b5f1.js +73 -0
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
- package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.d.ts +78 -0
- package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.js +673 -0
- package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
- package/dist/_shared/cjs/{Surface-d6b8010e.js → Surface-6da0a78e.js} +8 -8
- package/dist/_shared/cjs/{Text-1d3844be.js → Text-6f2827e6.js} +7 -7
- package/dist/_shared/cjs/TextInput-33314fc4.d.ts +10 -0
- package/dist/_shared/cjs/TextInput-33314fc4.js +78 -0
- package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
- package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.d.ts +26 -0
- package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.js +35 -0
- package/dist/_shared/cjs/{VerticalSpace-7aed88ab.js → VerticalSpace-86f697e7.js} +5 -5
- package/dist/_shared/cjs/debounce-506538c5.js +544 -0
- package/dist/_shared/cjs/{index-78b35bc1.js → filter-data-attrs-a30dcf5f.js} +12 -12
- package/dist/_shared/cjs/index-699086a7.d.ts +2 -0
- package/dist/_shared/cjs/index-74488a9f.d.ts +2 -0
- package/dist/_shared/cjs/index-9483ad5f.d.ts +2 -2
- package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
- package/dist/_shared/cjs/index-e340924e.d.ts +2 -0
- package/dist/_shared/cjs/index-e6d20018.d.ts +3 -0
- package/dist/_shared/cjs/index-eb06f640.d.ts +2 -0
- package/dist/_shared/cjs/index-f419cf04.d.ts +2 -0
- package/dist/_shared/cjs/{suffix-modifier-edf7851e.js → suffix-modifier-1ee2da04.js} +2 -2
- package/dist/_shared/esm/{Base-c235dc45.js → Base-6c01e0ec.js} +1 -1
- package/dist/_shared/esm/{BrandLogo-4f13fe85.js → BrandLogo-56699561.js} +3 -3
- package/dist/_shared/esm/Breadcrumbs-04590057.d.ts +61 -0
- package/dist/_shared/esm/Breadcrumbs-04590057.js +100 -0
- package/dist/_shared/esm/BtIconAlert-55a6ed5c.js +32 -0
- package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
- package/dist/_shared/esm/BtIconCrossAlt2Px-a6a9f431.js +23 -0
- package/dist/_shared/esm/{Button-10700df4.js → Button-d319fa11.js} +6 -27
- package/dist/_shared/esm/Card-e79eb6c8.d.ts +136 -0
- package/dist/_shared/esm/Card-e79eb6c8.js +118 -0
- package/dist/_shared/esm/Checkbox-94300d8c.d.ts +64 -0
- package/dist/_shared/esm/Checkbox-94300d8c.js +56 -0
- package/dist/_shared/esm/Columns-8704515b.d.ts +76 -0
- package/dist/_shared/esm/Columns-8704515b.js +51 -0
- package/dist/_shared/esm/{Curve-50697f7e.js → Curve-3e87b1bc.js} +2 -2
- package/dist/_shared/esm/DisclosureMini-022beae3.d.ts +37 -0
- package/dist/_shared/esm/DisclosureMini-022beae3.js +38 -0
- package/dist/_shared/esm/Filter-41b391e3.d.ts +83 -0
- package/dist/_shared/esm/Filter-41b391e3.js +115 -0
- package/dist/_shared/esm/{FormControl-2cb96de7.d.ts → FormControl-5e3fdca3.d.ts} +6 -29
- package/dist/_shared/esm/FormControl-5e3fdca3.js +88 -0
- package/dist/_shared/esm/Group-d62c3f56.d.ts +46 -0
- package/dist/_shared/esm/Group-d62c3f56.js +42 -0
- package/dist/_shared/esm/{Heading-eb1e42db.js → Heading-b61432fb.js} +3 -3
- package/dist/_shared/esm/{Icon-61f7237a.js → Icon-fd247973.js} +3 -3
- package/dist/_shared/esm/{Image-c0f3d42f.js → Image-3596ce55.js} +2 -2
- package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +27 -0
- package/dist/_shared/esm/NavItem-df20237c.d.ts +43 -0
- package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +49 -0
- package/dist/_shared/esm/Poster-107d6954.d.ts +81 -0
- package/dist/_shared/esm/Poster-107d6954.js +44 -0
- package/dist/_shared/esm/RadioGroup-1fd0f389.d.ts +97 -0
- package/dist/_shared/esm/RadioGroup-1fd0f389.js +64 -0
- package/dist/_shared/esm/{Section-7bc71e26.js → Section-b8038d66.js} +1 -1
- package/dist/_shared/esm/SiteFooter-8075a9bd.d.ts +62 -0
- package/dist/_shared/esm/SiteFooter-8075a9bd.js +67 -0
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
- package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.d.ts +78 -0
- package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.js +666 -0
- package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
- package/dist/_shared/esm/{Surface-bf201530.js → Surface-bb100ef8.js} +1 -1
- package/dist/_shared/esm/{Text-6b958ad8.js → Text-00e9743b.js} +3 -3
- package/dist/_shared/esm/TextInput-1631dbc4.d.ts +10 -0
- package/dist/_shared/esm/TextInput-1631dbc4.js +72 -0
- package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
- package/dist/_shared/esm/UniversalHeader-7926abde.d.ts +26 -0
- package/dist/_shared/esm/UniversalHeader-7926abde.js +29 -0
- package/dist/_shared/esm/{VerticalSpace-3579b20e.js → VerticalSpace-93980c9c.js} +1 -1
- package/dist/_shared/esm/debounce-e228705f.js +542 -0
- package/dist/_shared/esm/{index-229fc864.js → filter-data-attrs-afdb7d32.js} +12 -12
- package/dist/_shared/esm/index-699086a7.d.ts +2 -0
- package/dist/_shared/esm/index-74488a9f.d.ts +2 -0
- package/dist/_shared/esm/index-9483ad5f.d.ts +2 -2
- package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
- package/dist/_shared/esm/index-e340924e.d.ts +2 -0
- package/dist/_shared/esm/index-e6d20018.d.ts +3 -0
- package/dist/_shared/esm/index-eb06f640.d.ts +2 -0
- package/dist/_shared/esm/index-f419cf04.d.ts +2 -0
- package/dist/_shared/esm/{suffix-modifier-f5e28822.js → suffix-modifier-7e640670.js} +1 -1
- package/dist/index.es.js +304 -113
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +534 -341
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Alert/Alert.d.ts +56 -0
- package/dist/types/components/Alert/index.d.ts +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +6 -1
- package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +36 -0
- package/dist/types/components/DisclosureMini/index.d.ts +1 -0
- package/dist/types/components/Elevation/Elevation.d.ts +4 -0
- package/dist/types/components/Filter/Filter.d.ts +38 -0
- package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +16 -0
- package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +12 -0
- package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +12 -0
- package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +12 -0
- package/dist/types/components/Filter/index.d.ts +1 -0
- package/dist/types/components/FormControl/FormControl.d.ts +4 -0
- package/dist/types/components/Pagination/Pagination.d.ts +19 -0
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +27 -0
- package/dist/types/components/PaginationSimple/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +24 -0
- package/dist/types/components/ScrollToTop/index.d.ts +1 -0
- package/dist/types/components/Select/Select.d.ts +1 -1
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +2 -0
- package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +8 -0
- package/dist/types/components/Switch/Switch.d.ts +1 -1
- package/dist/types/components/TextArea/TextArea.d.ts +60 -0
- package/dist/types/components/TextArea/index.d.ts +1 -0
- package/dist/types/components/TextInput/TextInput.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/hooks/use-pagination.d.ts +1 -0
- package/dist/types/styles.d.ts +10 -4
- package/package.json +4 -4
- package/dist/_shared/cjs/FormControl-d4d9c665.js +0 -148
- package/dist/_shared/esm/FormControl-2cb96de7.js +0 -139
- package/dist/types/components/FormControl/FormControlDisclosure/FormControlDisclosure.d.ts +0 -28
- package/dist/types/components/FormControl/FormControlDisclosure/index.d.ts +0 -1
- /package/dist/_shared/cjs/{Base-e2b846fe.d.ts → Base-569e4334.d.ts} +0 -0
- /package/dist/_shared/cjs/{BrandLogo-3c6102ef.d.ts → BrandLogo-8008f0c4.d.ts} +0 -0
- /package/dist/_shared/cjs/{Button-1af6868c.d.ts → Button-27512fee.d.ts} +0 -0
- /package/dist/_shared/cjs/{Curve-e72ce25b.d.ts → Curve-b05589d8.d.ts} +0 -0
- /package/dist/_shared/cjs/{Heading-cc38c3ec.d.ts → Heading-d45f6a7f.d.ts} +0 -0
- /package/dist/_shared/cjs/{Icon-719d13d4.d.ts → Icon-9ae8dbe1.d.ts} +0 -0
- /package/dist/_shared/cjs/{Image-fe760a06.d.ts → Image-3bf4b4f3.d.ts} +0 -0
- /package/dist/_shared/cjs/{Section-780f2377.d.ts → Section-48aca5f5.d.ts} +0 -0
- /package/dist/_shared/cjs/{Surface-d6b8010e.d.ts → Surface-6da0a78e.d.ts} +0 -0
- /package/dist/_shared/cjs/{Text-1d3844be.d.ts → Text-6f2827e6.d.ts} +0 -0
- /package/dist/_shared/cjs/{VerticalSpace-7aed88ab.d.ts → VerticalSpace-86f697e7.d.ts} +0 -0
- /package/dist/_shared/cjs/{index-78b35bc1.d.ts → filter-data-attrs-a30dcf5f.d.ts} +0 -0
- /package/dist/_shared/cjs/{suffix-modifier-edf7851e.d.ts → suffix-modifier-1ee2da04.d.ts} +0 -0
- /package/dist/_shared/esm/{Base-c235dc45.d.ts → Base-6c01e0ec.d.ts} +0 -0
- /package/dist/_shared/esm/{BrandLogo-4f13fe85.d.ts → BrandLogo-56699561.d.ts} +0 -0
- /package/dist/_shared/esm/{Button-10700df4.d.ts → Button-d319fa11.d.ts} +0 -0
- /package/dist/_shared/esm/{Curve-50697f7e.d.ts → Curve-3e87b1bc.d.ts} +0 -0
- /package/dist/_shared/esm/{Heading-eb1e42db.d.ts → Heading-b61432fb.d.ts} +0 -0
- /package/dist/_shared/esm/{Icon-61f7237a.d.ts → Icon-fd247973.d.ts} +0 -0
- /package/dist/_shared/esm/{Image-c0f3d42f.d.ts → Image-3596ce55.d.ts} +0 -0
- /package/dist/_shared/esm/{Section-7bc71e26.d.ts → Section-b8038d66.d.ts} +0 -0
- /package/dist/_shared/esm/{Surface-bf201530.d.ts → Surface-bb100ef8.d.ts} +0 -0
- /package/dist/_shared/esm/{Text-6b958ad8.d.ts → Text-00e9743b.d.ts} +0 -0
- /package/dist/_shared/esm/{VerticalSpace-3579b20e.d.ts → VerticalSpace-93980c9c.d.ts} +0 -0
- /package/dist/_shared/esm/{index-229fc864.d.ts → filter-data-attrs-afdb7d32.d.ts} +0 -0
- /package/dist/_shared/esm/{suffix-modifier-f5e28822.d.ts → suffix-modifier-7e640670.d.ts} +0 -0
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var index
|
|
7
|
-
var React$
|
|
8
|
-
var Text = require('../_shared/cjs/Text-
|
|
9
|
-
var Heading = require('../_shared/cjs/Heading-
|
|
10
|
-
var VerticalSpace = require('../_shared/cjs/VerticalSpace-
|
|
11
|
-
var Icon = require('../_shared/cjs/Icon-
|
|
12
|
-
var Surface = require('../_shared/cjs/Surface-
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
|
+
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
7
|
+
var React$1 = require('react');
|
|
8
|
+
var Text = require('../_shared/cjs/Text-6f2827e6.js');
|
|
9
|
+
var Heading = require('../_shared/cjs/Heading-d45f6a7f.js');
|
|
10
|
+
var VerticalSpace = require('../_shared/cjs/VerticalSpace-86f697e7.js');
|
|
11
|
+
var Icon = require('../_shared/cjs/Icon-9ae8dbe1.js');
|
|
12
|
+
var Surface = require('../_shared/cjs/Surface-6da0a78e.js');
|
|
13
13
|
var BtIconTickAlt2Px = require('../_shared/cjs/BtIconTickAlt2Px-bdf06f8c.js');
|
|
14
|
-
require('../_shared/cjs/
|
|
14
|
+
var BtIconCrossAlt2Px = require('../_shared/cjs/BtIconCrossAlt2Px-30dc2688.js');
|
|
15
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
15
16
|
|
|
16
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
18
|
|
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$
|
|
19
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
19
20
|
|
|
20
|
-
const React
|
|
21
|
+
const React = React__default["default"];
|
|
21
22
|
const BtIconRefresh = props =>
|
|
22
|
-
/*#__PURE__*/ React
|
|
23
|
+
/*#__PURE__*/ React.createElement(
|
|
23
24
|
"svg",
|
|
24
25
|
Object.assign(
|
|
25
26
|
{
|
|
@@ -28,13 +29,13 @@ const BtIconRefresh = props =>
|
|
|
28
29
|
},
|
|
29
30
|
props
|
|
30
31
|
),
|
|
31
|
-
/*#__PURE__*/ React
|
|
32
|
-
/*#__PURE__*/ React
|
|
32
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
33
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
33
34
|
d:
|
|
34
35
|
"M13.41077,21.99951a.5005.5005,0,0,0-.35743.8501l2.04609,2.08716A8.98732,8.98732,0,0,1,13.15332,7.46631a.50028.50028,0,1,0-.31641-.94922A9.98437,9.98437,0,0,0,15.127,25.93823l.00159.02881c.0011.01.02008.00128.03015.002L13.026,28.16846a.50036.50036,0,0,0,.71875.69629l3.28418-3.38819-3.26074-3.32715A.50106.50106,0,0,0,13.41077,21.99951Z",
|
|
35
36
|
fill: "currentColor"
|
|
36
37
|
}),
|
|
37
|
-
/*#__PURE__*/ React
|
|
38
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
38
39
|
d:
|
|
39
40
|
"M16.79028,6.04633,16.79,6.04077c-.0011-.01-.02008-.00128-.03015-.00195l2.13275-2.19946a.50036.50036,0,0,0-.71875-.69629L14.88965,6.53125,18.15039,9.8584a.50106.50106,0,0,0,.35742.1499.5005.5005,0,0,0,.35742-.8501L16.7951,7.04657a8.98484,8.98484,0,0,1,2.05646,17.47589.49982.49982,0,1,0,.31641.94824A9.98244,9.98244,0,0,0,16.79028,6.04633Z",
|
|
40
41
|
fill: "currentColor"
|
|
@@ -42,30 +43,10 @@ const BtIconRefresh = props =>
|
|
|
42
43
|
);
|
|
43
44
|
var BtIconRefresh_2 = BtIconRefresh;
|
|
44
45
|
|
|
45
|
-
const React = React__default["default"];
|
|
46
|
-
const BtIconCrossAlt2Px = props =>
|
|
47
|
-
/*#__PURE__*/ React.createElement(
|
|
48
|
-
"svg",
|
|
49
|
-
Object.assign(
|
|
50
|
-
{
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
-
viewBox: "0 0 32 32"
|
|
53
|
-
},
|
|
54
|
-
props
|
|
55
|
-
),
|
|
56
|
-
/*#__PURE__*/ React.createElement("defs", null),
|
|
57
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
58
|
-
d:
|
|
59
|
-
"M17.41406,16l3.793-3.793A.99989.99989,0,0,0,19.793,10.793L16,14.58594l-3.793-3.793A.99989.99989,0,0,0,10.793,12.207L14.58594,16l-3.793,3.793A.99989.99989,0,1,0,12.207,21.207L16,17.41406l3.793,3.793A.99989.99989,0,0,0,21.207,19.793Z",
|
|
60
|
-
fill: "currentColor"
|
|
61
|
-
})
|
|
62
|
-
);
|
|
63
|
-
var BtIconCrossAlt2Px_2 = BtIconCrossAlt2Px;
|
|
64
|
-
|
|
65
46
|
var PROGRESS_BAR_ICON_MAP = {
|
|
66
47
|
refresh: BtIconRefresh_2,
|
|
67
48
|
tick: BtIconTickAlt2Px.BtIconTickAlt2Px_2,
|
|
68
|
-
cross: BtIconCrossAlt2Px_2
|
|
49
|
+
cross: BtIconCrossAlt2Px.BtIconCrossAlt2Px_2
|
|
69
50
|
};
|
|
70
51
|
|
|
71
52
|
var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
|
|
@@ -75,8 +56,8 @@ var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
|
|
|
75
56
|
"aria-label": ariaLabel,
|
|
76
57
|
tabIndex: 0
|
|
77
58
|
};
|
|
78
|
-
var indeterminateProps =
|
|
79
|
-
var determinateProps =
|
|
59
|
+
var indeterminateProps = filterDataAttrs.__assign(filterDataAttrs.__assign({}, commonProps), { className: index.classNames("arc-ProgressBar-bar", "arc-ProgressBar-bar--indeterminate") });
|
|
60
|
+
var determinateProps = filterDataAttrs.__assign(filterDataAttrs.__assign({}, commonProps), { className: "arc-ProgressBar-bar", "aria-valuenow": progressValue, style: {
|
|
80
61
|
transform: "translateX(".concat(-100 + progressValue, "%)")
|
|
81
62
|
} });
|
|
82
63
|
return isIndeterminate ? indeterminateProps : determinateProps;
|
|
@@ -84,9 +65,9 @@ var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
|
|
|
84
65
|
|
|
85
66
|
var ProgressBar = function (_a) {
|
|
86
67
|
var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue;
|
|
87
|
-
var surface = React$
|
|
68
|
+
var surface = React$1.useContext(Surface.Context).surface;
|
|
88
69
|
var progressValue = Math.min(100, Math.max(0, value));
|
|
89
|
-
return (React__default["default"].createElement("div", { "data-testid": "progress", className: index
|
|
70
|
+
return (React__default["default"].createElement("div", { "data-testid": "progress", className: index.classNames("arc-ProgressBar", "arc-ProgressBar--".concat(state), {
|
|
90
71
|
"arc-ProgressBar--onDarkSurface": surface === "dark"
|
|
91
72
|
}) },
|
|
92
73
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-titleDisplayValueContainer" },
|
|
@@ -98,7 +79,7 @@ var ProgressBar = function (_a) {
|
|
|
98
79
|
React__default["default"].createElement(Text.Text, null, displayValue)))),
|
|
99
80
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-container" },
|
|
100
81
|
React__default["default"].createElement("div", { className: "arc-ProgressBar-outerBar" },
|
|
101
|
-
React__default["default"].createElement("div",
|
|
82
|
+
React__default["default"].createElement("div", filterDataAttrs.__assign({}, getProgressBarProps(isIndeterminate, progressValue, ariaLabel)))),
|
|
102
83
|
description && (React__default["default"].createElement("div", { className: "arc-ProgressBar-description" },
|
|
103
84
|
React__default["default"].createElement(Text.Text, { tone: state !== "error" ? "supporting" : "default" }, description))),
|
|
104
85
|
action && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { a as __assign } from '../_shared/esm/
|
|
1
|
+
import { a as __assign } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { T as Text } from '../_shared/esm/Text-
|
|
5
|
-
import { H as Heading } from '../_shared/esm/Heading-
|
|
6
|
-
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-
|
|
7
|
-
import { I as Icon } from '../_shared/esm/Icon-
|
|
8
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
4
|
+
import { T as Text } from '../_shared/esm/Text-00e9743b.js';
|
|
5
|
+
import { H as Heading } from '../_shared/esm/Heading-b61432fb.js';
|
|
6
|
+
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-93980c9c.js';
|
|
7
|
+
import { I as Icon } from '../_shared/esm/Icon-fd247973.js';
|
|
8
|
+
import { C as Context } from '../_shared/esm/Surface-bb100ef8.js';
|
|
9
9
|
import { B as BtIconTickAlt2Px_2 } from '../_shared/esm/BtIconTickAlt2Px-da97e9ae.js';
|
|
10
|
-
import '../_shared/esm/
|
|
10
|
+
import { B as BtIconCrossAlt2Px_2 } from '../_shared/esm/BtIconCrossAlt2Px-a6a9f431.js';
|
|
11
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
11
12
|
|
|
12
|
-
const React
|
|
13
|
+
const React = React__default;
|
|
13
14
|
const BtIconRefresh = props =>
|
|
14
|
-
/*#__PURE__*/ React
|
|
15
|
+
/*#__PURE__*/ React.createElement(
|
|
15
16
|
"svg",
|
|
16
17
|
Object.assign(
|
|
17
18
|
{
|
|
@@ -20,13 +21,13 @@ const BtIconRefresh = props =>
|
|
|
20
21
|
},
|
|
21
22
|
props
|
|
22
23
|
),
|
|
23
|
-
/*#__PURE__*/ React
|
|
24
|
-
/*#__PURE__*/ React
|
|
24
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
25
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
25
26
|
d:
|
|
26
27
|
"M13.41077,21.99951a.5005.5005,0,0,0-.35743.8501l2.04609,2.08716A8.98732,8.98732,0,0,1,13.15332,7.46631a.50028.50028,0,1,0-.31641-.94922A9.98437,9.98437,0,0,0,15.127,25.93823l.00159.02881c.0011.01.02008.00128.03015.002L13.026,28.16846a.50036.50036,0,0,0,.71875.69629l3.28418-3.38819-3.26074-3.32715A.50106.50106,0,0,0,13.41077,21.99951Z",
|
|
27
28
|
fill: "currentColor"
|
|
28
29
|
}),
|
|
29
|
-
/*#__PURE__*/ React
|
|
30
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
30
31
|
d:
|
|
31
32
|
"M16.79028,6.04633,16.79,6.04077c-.0011-.01-.02008-.00128-.03015-.00195l2.13275-2.19946a.50036.50036,0,0,0-.71875-.69629L14.88965,6.53125,18.15039,9.8584a.50106.50106,0,0,0,.35742.1499.5005.5005,0,0,0,.35742-.8501L16.7951,7.04657a8.98484,8.98484,0,0,1,2.05646,17.47589.49982.49982,0,1,0,.31641.94824A9.98244,9.98244,0,0,0,16.79028,6.04633Z",
|
|
32
33
|
fill: "currentColor"
|
|
@@ -34,26 +35,6 @@ const BtIconRefresh = props =>
|
|
|
34
35
|
);
|
|
35
36
|
var BtIconRefresh_2 = BtIconRefresh;
|
|
36
37
|
|
|
37
|
-
const React = React__default;
|
|
38
|
-
const BtIconCrossAlt2Px = props =>
|
|
39
|
-
/*#__PURE__*/ React.createElement(
|
|
40
|
-
"svg",
|
|
41
|
-
Object.assign(
|
|
42
|
-
{
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
-
viewBox: "0 0 32 32"
|
|
45
|
-
},
|
|
46
|
-
props
|
|
47
|
-
),
|
|
48
|
-
/*#__PURE__*/ React.createElement("defs", null),
|
|
49
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
50
|
-
d:
|
|
51
|
-
"M17.41406,16l3.793-3.793A.99989.99989,0,0,0,19.793,10.793L16,14.58594l-3.793-3.793A.99989.99989,0,0,0,10.793,12.207L14.58594,16l-3.793,3.793A.99989.99989,0,1,0,12.207,21.207L16,17.41406l3.793,3.793A.99989.99989,0,0,0,21.207,19.793Z",
|
|
52
|
-
fill: "currentColor"
|
|
53
|
-
})
|
|
54
|
-
);
|
|
55
|
-
var BtIconCrossAlt2Px_2 = BtIconCrossAlt2Px;
|
|
56
|
-
|
|
57
38
|
var PROGRESS_BAR_ICON_MAP = {
|
|
58
39
|
refresh: BtIconRefresh_2,
|
|
59
40
|
tick: BtIconTickAlt2Px_2,
|
|
@@ -1,85 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC } from "react";
|
|
4
|
-
import { FormControlProps } from "../_shared/cjs/FormControl-d4d9c665";
|
|
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-81805ef9";
|
|
@@ -2,74 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
require('../_shared/cjs/
|
|
11
|
-
require('../_shared/cjs/
|
|
12
|
-
require('../_shared/cjs/
|
|
5
|
+
var RadioGroup = require('../_shared/cjs/RadioGroup-81805ef9.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/FormControl-9aaddd54.js');
|
|
9
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
10
|
+
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
11
|
+
require('../_shared/cjs/Surface-6da0a78e.js');
|
|
12
|
+
require('../_shared/cjs/DisclosureMini-067e0319.js');
|
|
13
|
+
require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
14
|
+
require('../_shared/cjs/Text-6f2827e6.js');
|
|
15
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
13
16
|
|
|
14
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
17
|
|
|
16
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
var Provider = RadioContext.Provider;
|
|
20
|
-
var useRadioContext = function () {
|
|
21
|
-
var context = React.useContext(RadioContext);
|
|
22
|
-
return context;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Radio Button component.
|
|
27
|
-
*/
|
|
28
|
-
var RadioButton = React.forwardRef(function (_a, ref) {
|
|
29
|
-
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = index.__rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
|
|
30
|
-
var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
|
|
31
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
32
|
-
var idLabel = "".concat(id, "-label");
|
|
33
|
-
var checked = checkedValue === value ? true : false;
|
|
34
|
-
return (React__default["default"].createElement("div", index.__assign({ className: index$1.classNames({
|
|
35
|
-
"arc-RadioButton": true,
|
|
36
|
-
"arc-RadioButton--disabled": isDisabled || groupDisabled,
|
|
37
|
-
"arc-RadioButton--small": size === "s",
|
|
38
|
-
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
39
|
-
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
40
|
-
}) }, index.filterDataAttrs(props)),
|
|
41
|
-
React__default["default"].createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
|
|
42
|
-
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 }),
|
|
43
|
-
React__default["default"].createElement("span", null,
|
|
44
|
-
label,
|
|
45
|
-
helper && React__default["default"].createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
50
|
-
*/
|
|
51
|
-
var RadioGroup = function (_a) {
|
|
52
|
-
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 = index.__rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
53
|
-
React.useEffect(function () {
|
|
54
|
-
React__default["default"].Children.map(children, function (item) {
|
|
55
|
-
if (item && item.type !== RadioButton) {
|
|
56
|
-
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}, [children]);
|
|
60
|
-
return (React__default["default"].createElement(Provider, { value: {
|
|
61
|
-
blurEvent: onBlur,
|
|
62
|
-
changeEvent: onChange,
|
|
63
|
-
groupDisabled: isDisabled,
|
|
64
|
-
checkedValue: checkedValue,
|
|
65
|
-
labelSize: labelSize,
|
|
66
|
-
name: name,
|
|
67
|
-
size: size
|
|
68
|
-
} },
|
|
69
|
-
React__default["default"].createElement("div", index.__assign({ className: "arc-RadioGroup" }, index.filterDataAttrs(props)),
|
|
70
|
-
React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
|
|
71
|
-
};
|
|
72
|
-
RadioButton.displayName = "RadioGroup.RadioButton";
|
|
73
|
-
RadioGroup.RadioButton = RadioButton;
|
|
74
|
-
|
|
75
|
-
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-2cb96de7";
|
|
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-1fd0f389";
|
|
@@ -1,67 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import '../_shared/esm/
|
|
7
|
-
import '../_shared/esm/
|
|
8
|
-
import '../_shared/esm/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var useRadioContext = function () {
|
|
13
|
-
var context = useContext(RadioContext);
|
|
14
|
-
return context;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Radio Button component.
|
|
19
|
-
*/
|
|
20
|
-
var RadioButton = forwardRef(function (_a, ref) {
|
|
21
|
-
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = __rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
|
|
22
|
-
var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
|
|
23
|
-
var surface = useContext(Context).surface;
|
|
24
|
-
var idLabel = "".concat(id, "-label");
|
|
25
|
-
var checked = checkedValue === value ? true : false;
|
|
26
|
-
return (React__default.createElement("div", __assign({ className: classNames({
|
|
27
|
-
"arc-RadioButton": true,
|
|
28
|
-
"arc-RadioButton--disabled": isDisabled || groupDisabled,
|
|
29
|
-
"arc-RadioButton--small": size === "s",
|
|
30
|
-
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
31
|
-
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
32
|
-
}) }, filterDataAttrs(props)),
|
|
33
|
-
React__default.createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
|
|
34
|
-
React__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 }),
|
|
35
|
-
React__default.createElement("span", null,
|
|
36
|
-
label,
|
|
37
|
-
helper && React__default.createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
42
|
-
*/
|
|
43
|
-
var RadioGroup = function (_a) {
|
|
44
|
-
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 = __rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
45
|
-
useEffect(function () {
|
|
46
|
-
React__default.Children.map(children, function (item) {
|
|
47
|
-
if (item && item.type !== RadioButton) {
|
|
48
|
-
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}, [children]);
|
|
52
|
-
return (React__default.createElement(Provider, { value: {
|
|
53
|
-
blurEvent: onBlur,
|
|
54
|
-
changeEvent: onChange,
|
|
55
|
-
groupDisabled: isDisabled,
|
|
56
|
-
checkedValue: checkedValue,
|
|
57
|
-
labelSize: labelSize,
|
|
58
|
-
name: name,
|
|
59
|
-
size: size
|
|
60
|
-
} },
|
|
61
|
-
React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
|
|
62
|
-
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
|
|
63
|
-
};
|
|
64
|
-
RadioButton.displayName = "RadioGroup.RadioButton";
|
|
65
|
-
RadioGroup.RadioButton = RadioButton;
|
|
66
|
-
|
|
67
|
-
export { RadioGroup };
|
|
1
|
+
export { R as RadioGroup } from '../_shared/esm/RadioGroup-1fd0f389.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/FormControl-5e3fdca3.js';
|
|
5
|
+
import '../_shared/esm/index-2ae58626.js';
|
|
6
|
+
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
7
|
+
import '../_shared/esm/Surface-bb100ef8.js';
|
|
8
|
+
import '../_shared/esm/DisclosureMini-022beae3.js';
|
|
9
|
+
import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
10
|
+
import '../_shared/esm/Text-00e9743b.js';
|
|
11
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
package/dist/Rule/Rule.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var index
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
|
+
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var Surface = require('../_shared/cjs/Surface-
|
|
8
|
+
var Surface = require('../_shared/cjs/Surface-6da0a78e.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -16,10 +16,10 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
16
16
|
*/
|
|
17
17
|
var Rule = function (props) {
|
|
18
18
|
var surface = React.useContext(Surface.Context).surface;
|
|
19
|
-
return (React__default["default"].createElement("hr",
|
|
19
|
+
return (React__default["default"].createElement("hr", filterDataAttrs.__assign({ className: index.classNames({
|
|
20
20
|
"arc-Rule": true,
|
|
21
21
|
"arc-Rule--onDarkSurface": surface === "dark"
|
|
22
|
-
}) },
|
|
22
|
+
}) }, filterDataAttrs.filterDataAttrs(props))));
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
exports.Rule = Rule;
|
package/dist/Rule/Rule.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __assign, f as filterDataAttrs } from '../_shared/esm/
|
|
1
|
+
import { a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
4
|
+
import { C as Context } from '../_shared/esm/Surface-bb100ef8.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Rule` to display a horizontal rule.
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
declare const ScrollToTop: FC<ScrollToTopProps>;
|
|
6
|
+
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
|
+
}
|
|
25
|
+
export { ScrollToTop };
|