@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,61 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
require('../_shared/cjs/
|
|
12
|
-
require('../_shared/cjs/
|
|
13
|
-
require('../_shared/cjs/
|
|
5
|
+
var Checkbox = require('../_shared/cjs/Checkbox-21d3c4f6.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/BtIconTickAlt2Px-bdf06f8c.js');
|
|
9
|
+
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
10
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
11
|
+
require('../_shared/cjs/FormControl-9aaddd54.js');
|
|
12
|
+
require('../_shared/cjs/Surface-6da0a78e.js');
|
|
13
|
+
require('../_shared/cjs/DisclosureMini-067e0319.js');
|
|
14
|
+
require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
15
|
+
require('../_shared/cjs/Text-6f2827e6.js');
|
|
16
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
14
17
|
|
|
15
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
18
|
|
|
17
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
* Use `Checkbox` to allow users to select individual options.
|
|
21
|
-
*/
|
|
22
|
-
var Checkbox = React.forwardRef(function (_a, ref) {
|
|
23
|
-
var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _e = _a.size, size = _e === void 0 ? "l" : _e, value = _a.value, props = index.__rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "name", "onBlur", "onChange", "size", "value"]);
|
|
24
|
-
var requirementStatus = React.useContext(FormControl.Context).requirementStatus;
|
|
25
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
26
|
-
var _f = FormControl.useAriaDescribedby({
|
|
27
|
-
id: id,
|
|
28
|
-
errorMessage: errorMessage
|
|
29
|
-
}), ariaDescribedby = _f.ariaDescribedby, idError = _f.idError;
|
|
30
|
-
var idLabel = "".concat(id, "-label");
|
|
31
|
-
var checkedProps = {};
|
|
32
|
-
if (typeof onChange === "function") {
|
|
33
|
-
checkedProps.checked = checked;
|
|
34
|
-
}
|
|
35
|
-
else if (checked && !onChange) {
|
|
36
|
-
checkedProps.defaultChecked = true;
|
|
37
|
-
}
|
|
38
|
-
if (requirementStatus === "required") {
|
|
39
|
-
isRequired = true;
|
|
40
|
-
}
|
|
41
|
-
return (React__default["default"].createElement("div", { className: index$1.classNames({
|
|
42
|
-
"arc-Checkbox": true,
|
|
43
|
-
"arc-Checkbox--disabled": isDisabled,
|
|
44
|
-
"arc-Checkbox--invalid": errorMessage,
|
|
45
|
-
"arc-Checkbox--small": size === "s",
|
|
46
|
-
"arc-Checkbox--onDarkSurface": surface === "dark"
|
|
47
|
-
}) },
|
|
48
|
-
React__default["default"].createElement("label", { id: idLabel, htmlFor: id, className: "arc-Checkbox-label" },
|
|
49
|
-
React__default["default"].createElement("input", index.__assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, index.filterDataAttrs(props))),
|
|
50
|
-
React__default["default"].createElement("span", { className: "arc-Checkbox-box" },
|
|
51
|
-
React__default["default"].createElement(BtIconTickAlt2Px.BtIconTickAlt2Px_2, null)),
|
|
52
|
-
React__default["default"].createElement("span", null,
|
|
53
|
-
label,
|
|
54
|
-
!isRequired && requirementStatus !== "optional" ? (React__default["default"].createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
55
|
-
helper && React__default["default"].createElement("span", { className: "arc-Checkbox-helper" }, helper))),
|
|
56
|
-
errorMessage && (React__default["default"].createElement("div", { id: idError, className: "arc-Checkbox-error" },
|
|
57
|
-
React__default["default"].createElement("span", { className: "arc-Checkbox-error--icon" },
|
|
58
|
-
React__default["default"].createElement(FormControl.BtIconAlert_2, null)),
|
|
59
|
-
errorMessage))));
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
exports.Checkbox = Checkbox;
|
|
20
|
+
exports.Checkbox = Checkbox.Checkbox;
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
3
|
-
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
4
|
-
/**
|
|
5
|
-
* Use `Checkbox` to allow users to select individual options.
|
|
6
|
-
*/
|
|
7
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
-
interface CheckboxProps {
|
|
9
|
-
/**
|
|
10
|
-
* Error message for the Checkbox.
|
|
11
|
-
*/
|
|
12
|
-
errorMessage?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Helper text for the Checkbox, shown below the label.
|
|
15
|
-
*/
|
|
16
|
-
helper?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* ID for the Checkbox.
|
|
19
|
-
*/
|
|
20
|
-
id: string;
|
|
21
|
-
/**
|
|
22
|
-
* Is the input checked?
|
|
23
|
-
*/
|
|
24
|
-
checked?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Should the Checkbox be disabled?
|
|
27
|
-
*/
|
|
28
|
-
isDisabled?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Is the Checkbox required?
|
|
31
|
-
*/
|
|
32
|
-
isRequired?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Label for the Checkbox.
|
|
35
|
-
*/
|
|
36
|
-
label: React.ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* Name for the Checkbox.
|
|
39
|
-
*/
|
|
40
|
-
name?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Function to call when the Checkbox loses focus.
|
|
43
|
-
*/
|
|
44
|
-
onBlur?: (e: EventType) => void;
|
|
45
|
-
/**
|
|
46
|
-
* Callback function to update the Checkbox's controlled `checked` prop, for
|
|
47
|
-
* example `e => setChecked(e.target.checked)`.
|
|
48
|
-
*/
|
|
49
|
-
onChange?: (event: EventType) => void;
|
|
50
|
-
/**
|
|
51
|
-
* Size of the Checkbox.
|
|
52
|
-
*/
|
|
53
|
-
size?: "s" | "l";
|
|
54
|
-
/**
|
|
55
|
-
* Value for the Checkbox.
|
|
56
|
-
*/
|
|
57
|
-
value?: string;
|
|
58
|
-
}
|
|
59
|
-
export { Checkbox };
|
|
1
|
+
export { Checkbox } from "../_shared/esm/Checkbox-94300d8c";
|
|
@@ -1,54 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import '../_shared/esm/
|
|
8
|
-
import '../_shared/esm/
|
|
9
|
-
import '../_shared/esm/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
var Checkbox = forwardRef(function (_a, ref) {
|
|
15
|
-
var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _e = _a.size, size = _e === void 0 ? "l" : _e, value = _a.value, props = __rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "name", "onBlur", "onChange", "size", "value"]);
|
|
16
|
-
var requirementStatus = useContext(Context).requirementStatus;
|
|
17
|
-
var surface = useContext(Context$1).surface;
|
|
18
|
-
var _f = useAriaDescribedby({
|
|
19
|
-
id: id,
|
|
20
|
-
errorMessage: errorMessage
|
|
21
|
-
}), ariaDescribedby = _f.ariaDescribedby, idError = _f.idError;
|
|
22
|
-
var idLabel = "".concat(id, "-label");
|
|
23
|
-
var checkedProps = {};
|
|
24
|
-
if (typeof onChange === "function") {
|
|
25
|
-
checkedProps.checked = checked;
|
|
26
|
-
}
|
|
27
|
-
else if (checked && !onChange) {
|
|
28
|
-
checkedProps.defaultChecked = true;
|
|
29
|
-
}
|
|
30
|
-
if (requirementStatus === "required") {
|
|
31
|
-
isRequired = true;
|
|
32
|
-
}
|
|
33
|
-
return (React__default.createElement("div", { className: classNames({
|
|
34
|
-
"arc-Checkbox": true,
|
|
35
|
-
"arc-Checkbox--disabled": isDisabled,
|
|
36
|
-
"arc-Checkbox--invalid": errorMessage,
|
|
37
|
-
"arc-Checkbox--small": size === "s",
|
|
38
|
-
"arc-Checkbox--onDarkSurface": surface === "dark"
|
|
39
|
-
}) },
|
|
40
|
-
React__default.createElement("label", { id: idLabel, htmlFor: id, className: "arc-Checkbox-label" },
|
|
41
|
-
React__default.createElement("input", __assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs(props))),
|
|
42
|
-
React__default.createElement("span", { className: "arc-Checkbox-box" },
|
|
43
|
-
React__default.createElement(BtIconTickAlt2Px_2, null)),
|
|
44
|
-
React__default.createElement("span", null,
|
|
45
|
-
label,
|
|
46
|
-
!isRequired && requirementStatus !== "optional" ? (React__default.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
47
|
-
helper && React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper))),
|
|
48
|
-
errorMessage && (React__default.createElement("div", { id: idError, className: "arc-Checkbox-error" },
|
|
49
|
-
React__default.createElement("span", { className: "arc-Checkbox-error--icon" },
|
|
50
|
-
React__default.createElement(BtIconAlert_2, null)),
|
|
51
|
-
errorMessage))));
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export { Checkbox };
|
|
1
|
+
export { C as Checkbox } from '../_shared/esm/Checkbox-94300d8c.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/BtIconTickAlt2Px-da97e9ae.js';
|
|
5
|
+
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
6
|
+
import '../_shared/esm/index-2ae58626.js';
|
|
7
|
+
import '../_shared/esm/FormControl-5e3fdca3.js';
|
|
8
|
+
import '../_shared/esm/Surface-bb100ef8.js';
|
|
9
|
+
import '../_shared/esm/DisclosureMini-022beae3.js';
|
|
10
|
+
import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
11
|
+
import '../_shared/esm/Text-00e9743b.js';
|
|
12
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
package/dist/Clock/Clock.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -13,7 +13,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
13
13
|
* `Clock` is a demo component that shows the current time.
|
|
14
14
|
*/
|
|
15
15
|
var Clock = function (_a) {
|
|
16
|
-
var _b = _a.locale, locale = _b === void 0 ? "en-GB" : _b, props =
|
|
16
|
+
var _b = _a.locale, locale = _b === void 0 ? "en-GB" : _b, props = filterDataAttrs.__rest(_a, ["locale"]);
|
|
17
17
|
var _c = React.useState(new Date()), time = _c[0], setTime = _c[1];
|
|
18
18
|
var _d = React.useState(time.toLocaleTimeString(locale)), humanTime = _d[0], setHumanTime = _d[1];
|
|
19
19
|
React.useEffect(function () {
|
|
@@ -26,16 +26,16 @@ var Clock = function (_a) {
|
|
|
26
26
|
var interval = setInterval(tick, 1000);
|
|
27
27
|
return function () { return clearInterval(interval); };
|
|
28
28
|
}, [locale]);
|
|
29
|
-
return (React__default["default"].createElement("time",
|
|
29
|
+
return (React__default["default"].createElement("time", filterDataAttrs.__assign({ className: "arc-Clock", dateTime: time.toISOString() }, filterDataAttrs.filterDataAttrs(props), { "data-locale": locale }), humanTime));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var Clock_rehydrator = (function (el) { return
|
|
32
|
+
var Clock_rehydrator = (function (el) { return filterDataAttrs.__awaiter(void 0, void 0, void 0, function () {
|
|
33
33
|
var props;
|
|
34
|
-
return
|
|
34
|
+
return filterDataAttrs.__generator(this, function (_a) {
|
|
35
35
|
props = {
|
|
36
36
|
locale: el.dataset.locale
|
|
37
37
|
};
|
|
38
|
-
return [2 /*return*/, React__default["default"].createElement(Clock,
|
|
38
|
+
return [2 /*return*/, React__default["default"].createElement(Clock, filterDataAttrs.__assign({}, props))];
|
|
39
39
|
});
|
|
40
40
|
}); });
|
|
41
41
|
|
package/dist/Clock/Clock.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs, d as __awaiter, e as __generator } from '../_shared/esm/
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs, d as __awaiter, e as __generator } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,76 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Use `Columns` to compose layouts on a 12-column grid.
|
|
4
|
-
*/
|
|
5
|
-
declare const Columns: FC<ColumnsProps> & {
|
|
6
|
-
Col: typeof Col;
|
|
7
|
-
};
|
|
8
|
-
declare const Col: FC<ColProps>;
|
|
9
|
-
type Span = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
10
|
-
type Offset = "0" | "24" | "48" | "72" | "96" | "120" | "144" | "168" | "192" | "216" | "240" | "264" | "288" | "312" | "336" | "360" | "384";
|
|
11
|
-
interface ColProps {
|
|
12
|
-
/**
|
|
13
|
-
* Vertically align the Column.
|
|
14
|
-
*/
|
|
15
|
-
align?: "top" | "center" | "bottom";
|
|
16
|
-
/**
|
|
17
|
-
* Content to display in the Column.
|
|
18
|
-
*/
|
|
19
|
-
children?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Should the Column be visible for debugging and documentation
|
|
22
|
-
* purposes?
|
|
23
|
-
*/
|
|
24
|
-
isDebugVisible?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Overlay the column over the previous content on the default breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
27
|
-
*/
|
|
28
|
-
offset?: Offset;
|
|
29
|
-
/**
|
|
30
|
-
* Overlay the column over the previous content on the S breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
31
|
-
*/
|
|
32
|
-
offsetS?: Offset;
|
|
33
|
-
/**
|
|
34
|
-
* Overlay the column over the previous content on the M breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
35
|
-
*/
|
|
36
|
-
offsetM?: Offset;
|
|
37
|
-
/**
|
|
38
|
-
* Overlay the column over the previous content on the L breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
39
|
-
*/
|
|
40
|
-
offsetL?: Offset;
|
|
41
|
-
/**
|
|
42
|
-
* Overlay the column over the previous content on the XL breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
43
|
-
*/
|
|
44
|
-
offsetXL?: Offset;
|
|
45
|
-
/**
|
|
46
|
-
* The number of columns to span on the default breakpoint and above, from 1 to 12.
|
|
47
|
-
*/
|
|
48
|
-
span?: Span;
|
|
49
|
-
/**
|
|
50
|
-
* The number of columns to span on the S breakpoint and above, from 1 to 12.
|
|
51
|
-
*/
|
|
52
|
-
spanS?: Span;
|
|
53
|
-
/**
|
|
54
|
-
* The number of columns to span on the M breakpoint and above, from 1 to 12.
|
|
55
|
-
*/
|
|
56
|
-
spanM?: Span;
|
|
57
|
-
/**
|
|
58
|
-
* The number of columns to span on the L breakpoint and above, from 1 to 12.
|
|
59
|
-
*/
|
|
60
|
-
spanL?: Span;
|
|
61
|
-
/**
|
|
62
|
-
* The number of columns to span on the XL breakpoint and above, from 1 to 12.
|
|
63
|
-
*/
|
|
64
|
-
spanXL?: Span;
|
|
65
|
-
}
|
|
66
|
-
interface ColumnsProps {
|
|
67
|
-
/**
|
|
68
|
-
* Contents of the Columns. Should only contain `Columns.Col`.
|
|
69
|
-
*/
|
|
70
|
-
children: ReactNode;
|
|
71
|
-
/**
|
|
72
|
-
* Should the Columns be gutterless?
|
|
73
|
-
*/
|
|
74
|
-
isGutterless?: boolean;
|
|
75
|
-
}
|
|
76
|
-
export { Columns };
|
|
1
|
+
export { Columns } from "../_shared/cjs/Columns-e90798f8";
|
|
@@ -2,58 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var Columns = require('../_shared/cjs/Columns-e90798f8.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
|
+
require('react');
|
|
9
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
9
10
|
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
* Use `Columns` to compose layouts on a 12-column grid.
|
|
16
|
-
*/
|
|
17
|
-
var Columns = function (_a) {
|
|
18
|
-
var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, props = index.__rest(_a, ["children", "isGutterless"]);
|
|
19
|
-
React.useEffect(function () {
|
|
20
|
-
React__default["default"].Children.map(children, function (item) {
|
|
21
|
-
if (item && item.type !== Col) {
|
|
22
|
-
throw new Error("Illegal child passed to <Columns />. Ensure to only use <Columns.Col />.");
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}, [children]);
|
|
26
|
-
return (React__default["default"].createElement("div", index.__assign({ className: index$1.classNames({
|
|
27
|
-
"arc-Columns": true,
|
|
28
|
-
"arc-Columns--gutterless": isGutterless
|
|
29
|
-
}) }, index.filterDataAttrs(props)),
|
|
30
|
-
React__default["default"].createElement("div", { className: "arc-Columns-inner" }, children)));
|
|
31
|
-
};
|
|
32
|
-
var Col = function (_a) {
|
|
33
|
-
var _b;
|
|
34
|
-
var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = index.__rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
|
|
35
|
-
return (React__default["default"].createElement("div", index.__assign({ className: index$1.classNames((_b = {},
|
|
36
|
-
_b["arc-Columns-col"] = true,
|
|
37
|
-
_b[suffixModifier.suffixModifier("arc-Columns-col--align", align || "")] = align,
|
|
38
|
-
_b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
|
|
39
|
-
_b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
|
|
40
|
-
_b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
|
|
41
|
-
_b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
|
|
42
|
-
_b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
|
|
43
|
-
_b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
|
|
44
|
-
typeof offsetS !== "undefined" ||
|
|
45
|
-
typeof offsetM !== "undefined" ||
|
|
46
|
-
typeof offsetL !== "undefined" ||
|
|
47
|
-
typeof offsetXL !== "undefined",
|
|
48
|
-
_b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
|
|
49
|
-
_b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
|
|
50
|
-
_b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
|
|
51
|
-
_b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
|
|
52
|
-
_b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
|
|
53
|
-
_b["arc-Columns-col--debugVisible"] = isDebugVisible,
|
|
54
|
-
_b)) }, index.filterDataAttrs(props)), children));
|
|
55
|
-
};
|
|
56
|
-
Col.displayName = "Columns.Col";
|
|
57
|
-
Columns.Col = Col;
|
|
58
|
-
|
|
59
|
-
exports.Columns = Columns;
|
|
13
|
+
exports.Columns = Columns.Columns;
|
|
@@ -1,76 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Use `Columns` to compose layouts on a 12-column grid.
|
|
4
|
-
*/
|
|
5
|
-
declare const Columns: FC<ColumnsProps> & {
|
|
6
|
-
Col: typeof Col;
|
|
7
|
-
};
|
|
8
|
-
declare const Col: FC<ColProps>;
|
|
9
|
-
type Span = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
10
|
-
type Offset = "0" | "24" | "48" | "72" | "96" | "120" | "144" | "168" | "192" | "216" | "240" | "264" | "288" | "312" | "336" | "360" | "384";
|
|
11
|
-
interface ColProps {
|
|
12
|
-
/**
|
|
13
|
-
* Vertically align the Column.
|
|
14
|
-
*/
|
|
15
|
-
align?: "top" | "center" | "bottom";
|
|
16
|
-
/**
|
|
17
|
-
* Content to display in the Column.
|
|
18
|
-
*/
|
|
19
|
-
children?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Should the Column be visible for debugging and documentation
|
|
22
|
-
* purposes?
|
|
23
|
-
*/
|
|
24
|
-
isDebugVisible?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Overlay the column over the previous content on the default breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
27
|
-
*/
|
|
28
|
-
offset?: Offset;
|
|
29
|
-
/**
|
|
30
|
-
* Overlay the column over the previous content on the S breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
31
|
-
*/
|
|
32
|
-
offsetS?: Offset;
|
|
33
|
-
/**
|
|
34
|
-
* Overlay the column over the previous content on the M breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
35
|
-
*/
|
|
36
|
-
offsetM?: Offset;
|
|
37
|
-
/**
|
|
38
|
-
* Overlay the column over the previous content on the L breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
39
|
-
*/
|
|
40
|
-
offsetL?: Offset;
|
|
41
|
-
/**
|
|
42
|
-
* Overlay the column over the previous content on the XL breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
|
|
43
|
-
*/
|
|
44
|
-
offsetXL?: Offset;
|
|
45
|
-
/**
|
|
46
|
-
* The number of columns to span on the default breakpoint and above, from 1 to 12.
|
|
47
|
-
*/
|
|
48
|
-
span?: Span;
|
|
49
|
-
/**
|
|
50
|
-
* The number of columns to span on the S breakpoint and above, from 1 to 12.
|
|
51
|
-
*/
|
|
52
|
-
spanS?: Span;
|
|
53
|
-
/**
|
|
54
|
-
* The number of columns to span on the M breakpoint and above, from 1 to 12.
|
|
55
|
-
*/
|
|
56
|
-
spanM?: Span;
|
|
57
|
-
/**
|
|
58
|
-
* The number of columns to span on the L breakpoint and above, from 1 to 12.
|
|
59
|
-
*/
|
|
60
|
-
spanL?: Span;
|
|
61
|
-
/**
|
|
62
|
-
* The number of columns to span on the XL breakpoint and above, from 1 to 12.
|
|
63
|
-
*/
|
|
64
|
-
spanXL?: Span;
|
|
65
|
-
}
|
|
66
|
-
interface ColumnsProps {
|
|
67
|
-
/**
|
|
68
|
-
* Contents of the Columns. Should only contain `Columns.Col`.
|
|
69
|
-
*/
|
|
70
|
-
children: ReactNode;
|
|
71
|
-
/**
|
|
72
|
-
* Should the Columns be gutterless?
|
|
73
|
-
*/
|
|
74
|
-
isGutterless?: boolean;
|
|
75
|
-
}
|
|
76
|
-
export { Columns };
|
|
1
|
+
export { Columns } from "../_shared/esm/Columns-8704515b";
|
|
@@ -1,51 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Use `Columns` to compose layouts on a 12-column grid.
|
|
8
|
-
*/
|
|
9
|
-
var Columns = function (_a) {
|
|
10
|
-
var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isGutterless"]);
|
|
11
|
-
useEffect(function () {
|
|
12
|
-
React__default.Children.map(children, function (item) {
|
|
13
|
-
if (item && item.type !== Col) {
|
|
14
|
-
throw new Error("Illegal child passed to <Columns />. Ensure to only use <Columns.Col />.");
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}, [children]);
|
|
18
|
-
return (React__default.createElement("div", __assign({ className: classNames({
|
|
19
|
-
"arc-Columns": true,
|
|
20
|
-
"arc-Columns--gutterless": isGutterless
|
|
21
|
-
}) }, filterDataAttrs(props)),
|
|
22
|
-
React__default.createElement("div", { className: "arc-Columns-inner" }, children)));
|
|
23
|
-
};
|
|
24
|
-
var Col = function (_a) {
|
|
25
|
-
var _b;
|
|
26
|
-
var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
|
|
27
|
-
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
28
|
-
_b["arc-Columns-col"] = true,
|
|
29
|
-
_b[suffixModifier("arc-Columns-col--align", align || "")] = align,
|
|
30
|
-
_b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
|
|
31
|
-
_b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
|
|
32
|
-
_b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
|
|
33
|
-
_b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
|
|
34
|
-
_b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
|
|
35
|
-
_b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
|
|
36
|
-
typeof offsetS !== "undefined" ||
|
|
37
|
-
typeof offsetM !== "undefined" ||
|
|
38
|
-
typeof offsetL !== "undefined" ||
|
|
39
|
-
typeof offsetXL !== "undefined",
|
|
40
|
-
_b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
|
|
41
|
-
_b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
|
|
42
|
-
_b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
|
|
43
|
-
_b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
|
|
44
|
-
_b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
|
|
45
|
-
_b["arc-Columns-col--debugVisible"] = isDebugVisible,
|
|
46
|
-
_b)) }, filterDataAttrs(props)), children));
|
|
47
|
-
};
|
|
48
|
-
Col.displayName = "Columns.Col";
|
|
49
|
-
Columns.Col = Col;
|
|
50
|
-
|
|
51
|
-
export { Columns };
|
|
1
|
+
export { C as Columns } from '../_shared/esm/Columns-8704515b.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
|
+
import '../_shared/esm/index-2ae58626.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Curve } from "../_shared/cjs/Curve-
|
|
1
|
+
export { Curve } from "../_shared/cjs/Curve-b05589d8";
|
package/dist/Curve/Curve.cjs.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Curve = require('../_shared/cjs/Curve-
|
|
6
|
-
require('../_shared/cjs/
|
|
5
|
+
var Curve = require('../_shared/cjs/Curve-b05589d8.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
7
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
require('react');
|
|
9
|
-
require('../_shared/cjs/suffix-modifier-
|
|
9
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Curve } from "../_shared/esm/Curve-
|
|
1
|
+
export { Curve } from "../_shared/esm/Curve-3e87b1bc";
|
package/dist/Curve/Curve.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as Curve } from '../_shared/esm/Curve-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { C as Curve } from '../_shared/esm/Curve-3e87b1bc.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
3
|
import '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../_shared/esm/suffix-modifier-
|
|
5
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
import { HeadingLevel } from "../_shared/cjs/Heading-
|
|
2
|
+
import { HeadingLevel } from "../_shared/cjs/Heading-d45f6a7f";
|
|
3
3
|
/**
|
|
4
4
|
* Use `Disclosure` to display content that is only visible when toggled into
|
|
5
5
|
* an "open" state.
|
|
@@ -2,13 +2,13 @@
|
|
|
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 Heading = require('../_shared/cjs/Heading-
|
|
8
|
+
var Heading = require('../_shared/cjs/Heading-d45f6a7f.js');
|
|
9
9
|
var BtIconChevronDown2Px = require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
10
|
-
var Surface = require('../_shared/cjs/Surface-
|
|
11
|
-
require('../_shared/cjs/suffix-modifier-
|
|
10
|
+
var Surface = require('../_shared/cjs/Surface-6da0a78e.js');
|
|
11
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
@@ -19,13 +19,13 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
19
19
|
* an "open" state.
|
|
20
20
|
*/
|
|
21
21
|
var Disclosure = function (_a) {
|
|
22
|
-
var children = _a.children, headingLevel = _a.headingLevel, _b = _a.indentDetails, indentDetails = _b === void 0 ? false : _b, _c = _a.isOpen, isOpen = _c === void 0 ? false : _c, summary = _a.summary, props =
|
|
22
|
+
var children = _a.children, headingLevel = _a.headingLevel, _b = _a.indentDetails, indentDetails = _b === void 0 ? false : _b, _c = _a.isOpen, isOpen = _c === void 0 ? false : _c, summary = _a.summary, props = filterDataAttrs.__rest(_a, ["children", "headingLevel", "indentDetails", "isOpen", "summary"]);
|
|
23
23
|
var surface = React.useContext(Surface.Context).surface;
|
|
24
|
-
return (React__default["default"].createElement("details",
|
|
24
|
+
return (React__default["default"].createElement("details", filterDataAttrs.__assign({ className: index.classNames({
|
|
25
25
|
"arc-Disclosure": true,
|
|
26
26
|
"arc-Disclosure--indentDetails": indentDetails,
|
|
27
27
|
"arc-Disclosure--onDarkSurface": surface === "dark"
|
|
28
|
-
}), open: isOpen },
|
|
28
|
+
}), open: isOpen }, filterDataAttrs.filterDataAttrs(props)),
|
|
29
29
|
React__default["default"].createElement("summary", { className: "arc-Disclosure-summary" },
|
|
30
30
|
React__default["default"].createElement("span", { className: "arc-Disclosure-summary-icon" },
|
|
31
31
|
React__default["default"].createElement(BtIconChevronDown2Px.BtIconChevronDown2Px_2, null)),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
import { HeadingLevel } from "../_shared/esm/Heading-
|
|
2
|
+
import { HeadingLevel } from "../_shared/esm/Heading-b61432fb";
|
|
3
3
|
/**
|
|
4
4
|
* Use `Disclosure` to display content that is only visible when toggled into
|
|
5
5
|
* an "open" state.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/
|
|
1
|
+
import { _ as __rest, 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 { H as Heading } from '../_shared/esm/Heading-
|
|
4
|
+
import { H as Heading } from '../_shared/esm/Heading-b61432fb.js';
|
|
5
5
|
import { B as BtIconChevronDown2Px_2 } from '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
6
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
7
|
-
import '../_shared/esm/suffix-modifier-
|
|
6
|
+
import { C as Context } from '../_shared/esm/Surface-bb100ef8.js';
|
|
7
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Use `Disclosure` to display content that is only visible when toggled into
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DisclosureMini } from "../_shared/cjs/DisclosureMini-067e0319";
|