@arc-ui/components 11.9.0 → 11.11.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.js +16 -16
- package/dist/Alert/Alert.esm.js +16 -16
- package/dist/Alert/package.json +1 -1
- package/dist/Align/Align.cjs.js +3 -3
- package/dist/Align/Align.esm.js +3 -3
- package/dist/Align/package.json +1 -1
- package/dist/Badge/Badge.cjs.js +5 -5
- package/dist/Badge/Badge.esm.js +5 -5
- package/dist/Badge/package.json +1 -1
- package/dist/Base/Base.cjs.js +2 -2
- package/dist/Base/Base.esm.js +2 -2
- package/dist/Base/package.json +1 -1
- package/dist/Box/Box.cjs.js +3 -3
- package/dist/Box/Box.esm.js +3 -3
- package/dist/Box/package.json +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +5 -5
- package/dist/BrandLogo/BrandLogo.esm.js +5 -5
- package/dist/BrandLogo/package.json +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +8 -8
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +8 -8
- package/dist/Breadcrumbs/package.json +1 -1
- package/dist/Button/Button.cjs.js +8 -8
- package/dist/Button/Button.esm.js +8 -8
- package/dist/Button/package.json +1 -1
- package/dist/Card/Card.cjs.js +9 -9
- package/dist/Card/Card.esm.js +9 -9
- package/dist/Card/package.json +1 -1
- package/dist/Checkbox/Checkbox.cjs.js +11 -11
- package/dist/Checkbox/Checkbox.esm.js +11 -11
- package/dist/Checkbox/package.json +1 -1
- package/dist/Clock/Clock.cjs.js +1 -1
- package/dist/Clock/Clock.esm.js +1 -1
- package/dist/Clock/package.json +1 -1
- package/dist/Columns/Columns.cjs.js +4 -4
- package/dist/Columns/Columns.esm.js +4 -4
- package/dist/Columns/package.json +1 -1
- package/dist/Curve/Curve.cjs.js +4 -4
- package/dist/Curve/Curve.esm.js +4 -4
- package/dist/Curve/package.json +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +7 -7
- package/dist/Disclosure/Disclosure.esm.js +7 -7
- package/dist/Disclosure/package.json +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +7 -7
- package/dist/DisclosureMini/DisclosureMini.esm.js +7 -7
- package/dist/DisclosureMini/package.json +1 -1
- package/dist/Elevation/Elevation.cjs.js +2 -2
- package/dist/Elevation/Elevation.esm.js +2 -2
- package/dist/Elevation/package.json +1 -1
- package/dist/Filter/Filter.cjs.js +4 -4
- package/dist/Filter/Filter.esm.js +4 -4
- package/dist/Filter/package.json +1 -1
- package/dist/FormControl/FormControl.cjs.js +9 -9
- package/dist/FormControl/FormControl.esm.js +9 -9
- package/dist/FormControl/package.json +1 -1
- package/dist/Group/Group.cjs.js +4 -4
- package/dist/Group/Group.esm.js +4 -4
- package/dist/Group/package.json +1 -1
- package/dist/Heading/Heading.cjs.js +5 -5
- package/dist/Heading/Heading.esm.js +5 -5
- package/dist/Heading/package.json +1 -1
- package/dist/Icon/Icon.cjs.js +5 -5
- package/dist/Icon/Icon.esm.js +5 -5
- package/dist/Icon/package.json +1 -1
- package/dist/Image/Image.cjs.js +4 -4
- package/dist/Image/Image.esm.js +4 -4
- package/dist/Image/package.json +1 -1
- package/dist/Markup/Markup.cjs.js +3 -3
- package/dist/Markup/Markup.esm.js +3 -3
- package/dist/Markup/package.json +1 -1
- package/dist/Modal/Modal.cjs.js +21 -97
- package/dist/Modal/Modal.esm.js +21 -97
- package/dist/Modal/package.json +1 -1
- package/dist/Pagination/Pagination.cjs.js +11 -11
- package/dist/Pagination/Pagination.esm.js +11 -11
- package/dist/Pagination/package.json +1 -1
- package/dist/PaginationSimple/PaginationSimple.cjs.js +9 -9
- package/dist/PaginationSimple/PaginationSimple.esm.js +9 -9
- package/dist/PaginationSimple/package.json +1 -1
- package/dist/Poster/Poster.cjs.js +6 -6
- package/dist/Poster/Poster.esm.js +6 -6
- package/dist/Poster/package.json +1 -1
- package/dist/ProgressBar/ProgressBar.cjs.js +28 -32
- package/dist/ProgressBar/ProgressBar.esm.js +25 -29
- package/dist/ProgressBar/package.json +1 -1
- package/dist/ProgressStepper/ProgressStepper.cjs.js +8 -8
- package/dist/ProgressStepper/ProgressStepper.esm.js +8 -8
- package/dist/ProgressStepper/package.json +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +10 -10
- package/dist/RadioGroup/RadioGroup.esm.js +10 -10
- package/dist/RadioGroup/package.json +1 -1
- package/dist/Rule/Rule.cjs.js +3 -3
- package/dist/Rule/Rule.esm.js +3 -3
- package/dist/Rule/package.json +1 -1
- package/dist/ScrollToTop/ScrollToTop.cjs.js +20 -23
- package/dist/ScrollToTop/ScrollToTop.esm.js +16 -19
- package/dist/ScrollToTop/package.json +1 -1
- package/dist/Section/Section.cjs.js +3 -3
- package/dist/Section/Section.esm.js +3 -3
- package/dist/Section/package.json +1 -1
- package/dist/Select/Select.cjs.js +198 -579
- package/dist/Select/Select.esm.js +61 -442
- package/dist/Select/package.json +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +9 -9
- package/dist/SiteFooter/SiteFooter.esm.js +10 -10
- package/dist/SiteFooter/package.json +1 -1
- package/dist/SiteHeader/SiteHeader.cjs.js +13 -13
- package/dist/SiteHeader/SiteHeader.esm.js +13 -13
- package/dist/SiteHeader/package.json +1 -1
- package/dist/Surface/Surface.cjs.js +3 -3
- package/dist/Surface/Surface.esm.js +3 -3
- package/dist/Surface/package.json +1 -1
- package/dist/Switch/Switch.cjs.js +21 -244
- package/dist/Switch/Switch.esm.js +16 -239
- package/dist/Switch/package.json +1 -1
- package/dist/Tabs/Tabs.cjs.js +10 -10
- package/dist/Tabs/Tabs.esm.js +10 -10
- package/dist/Tabs/package.json +1 -1
- package/dist/Tag/Tag.cjs.js +32 -39
- package/dist/Tag/Tag.esm.js +28 -35
- package/dist/Tag/package.json +1 -1
- package/dist/Text/Text.cjs.js +5 -5
- package/dist/Text/Text.esm.js +5 -5
- package/dist/Text/package.json +1 -1
- package/dist/TextArea/TextArea.cjs.js +46 -47
- package/dist/TextArea/TextArea.esm.js +46 -47
- package/dist/TextArea/package.json +1 -1
- package/dist/TextInput/TextInput.cjs.js +10 -10
- package/dist/TextInput/TextInput.esm.js +10 -10
- package/dist/TextInput/package.json +1 -1
- package/dist/Toast/Toast.cjs.js +13 -13
- package/dist/Toast/Toast.esm.js +13 -13
- package/dist/Toast/package.json +1 -1
- package/dist/Truncate/Truncate.cjs.js +1 -1
- package/dist/Truncate/Truncate.esm.js +1 -1
- package/dist/Truncate/package.json +1 -1
- package/dist/UniversalHeader/UniversalHeader.cjs.js +4 -4
- package/dist/UniversalHeader/UniversalHeader.esm.js +4 -4
- package/dist/UniversalHeader/package.json +1 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +3 -3
- package/dist/VerticalSpace/VerticalSpace.esm.js +3 -3
- package/dist/VerticalSpace/package.json +1 -1
- package/dist/VisuallyHidden/package.json +1 -1
- package/dist/_shared/cjs/{Base-569e4334.js → Base-f5a86eed.js} +1 -1
- package/dist/_shared/cjs/{BrandLogo-8107d59f.js → BrandLogo-aea340c8.js} +4 -4
- package/dist/_shared/cjs/{Breadcrumbs-0906dd10.js → Breadcrumbs-ed70e75a.js} +8 -10
- package/dist/_shared/cjs/BtIconAlert.esm-1a0ff9f0.js +34 -0
- package/dist/_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js +26 -0
- package/dist/_shared/cjs/BtIconChevronLeftMid.esm-0aaa6770.js +28 -0
- package/dist/_shared/cjs/BtIconChevronRight2Px.esm-dbf8cbee.js +44 -0
- package/dist/_shared/cjs/BtIconChevronRightMid.esm-d01ebbd4.js +28 -0
- package/dist/_shared/cjs/BtIconCrossAlt2Px.esm-1452b14b.js +26 -0
- package/dist/_shared/cjs/BtIconTick.esm-844eac6c.js +80 -0
- package/dist/_shared/cjs/BtIconTickAlt2Px.esm-57c89acc.js +26 -0
- package/dist/_shared/cjs/{Button-5aaa6776.js → Button-80781596.js} +8 -8
- package/dist/_shared/cjs/{Card-fd189ba8.js → Card-17dcc171.js} +9 -11
- package/dist/_shared/cjs/{Checkbox-02c546ca.js → Checkbox-b126194e.js} +8 -8
- package/dist/_shared/cjs/{Columns-e90798f8.js → Columns-ae4f8cef.js} +3 -4
- package/dist/_shared/cjs/{Curve-781ef633.js → Curve-d038052b.js} +3 -3
- package/dist/_shared/cjs/{DisclosureMini-52706ee6.js → DisclosureMini-d0eeb6bb.js} +6 -6
- package/dist/_shared/cjs/{Filter-a7574fe7.js → Filter-1bde635c.js} +3 -7
- package/dist/_shared/cjs/{FormControl-1e1bf2bf.js → FormControl-7daf8110.js} +7 -7
- package/dist/_shared/cjs/{Group-f85dd4c0.js → Group-0429741a.js} +4 -5
- package/dist/_shared/cjs/{Heading-e3332dcf.js → Heading-27cba320.js} +4 -5
- package/dist/_shared/cjs/{Icon-e1dd45eb.js → Icon-a9801f05.js} +15 -17
- package/dist/_shared/cjs/{Image-0e393cbf.js → Image-e873b8fc.js} +3 -4
- package/dist/_shared/cjs/{Poster-faea1ad3.js → Poster-9b48fd61.js} +5 -9
- package/dist/_shared/cjs/{ProgressStepper-f740d7bb.js → ProgressStepper-9cdc0afe.js} +44 -52
- package/dist/_shared/cjs/{RadioGroup-d7664b0c.js → RadioGroup-56e3b0e5.js} +4 -5
- package/dist/_shared/cjs/{Section-48aca5f5.js → Section-59804166.js} +2 -2
- package/dist/_shared/cjs/{SiteFooter-5da774e1.js → SiteFooter-6381ac4a.js} +7 -9
- package/dist/_shared/cjs/{SiteHeader.rehydrator-acc9d8c4.js → SiteHeader.rehydrator-0e2adbac.js} +19 -27
- package/dist/_shared/cjs/{Surface-b7c51b2b.js → Surface-038db6e1.js} +4 -5
- package/dist/_shared/cjs/{Tabs-fda49692.js → Tabs-2d2a517d.js} +72 -81
- package/dist/_shared/cjs/{Text-fa447e2d.js → Text-606ca3a2.js} +4 -4
- package/dist/_shared/cjs/{TextInput-f4549637.js → TextInput-539f9f30.js} +4 -4
- package/dist/_shared/cjs/{Toast-0cb23cae.js → Toast-69108261.js} +16 -25
- package/dist/_shared/cjs/{UniversalHeader-da622e1a.js → UniversalHeader-5e43d320.js} +2 -3
- package/dist/_shared/cjs/{VerticalSpace-86f697e7.js → VerticalSpace-dc53bb70.js} +2 -2
- package/dist/_shared/cjs/{extends-bb8ffacd.js → extends-8c5e4b48.js} +1 -4
- package/dist/_shared/cjs/filter-data-attrs-1c9a530c.js +227 -0
- package/dist/_shared/cjs/{index-ec260f5e.js → index-43458549.js} +13 -96
- package/dist/_shared/cjs/{index-96c4d581.js → index-6b2a9ac3.js} +2 -2
- package/dist/_shared/cjs/{index-45bfb67b.js → index-9947ac13.js} +11 -10
- package/dist/_shared/cjs/{index-fb4b8fda.js → index-adbb63da.js} +2 -9
- package/dist/_shared/cjs/{index-27b53d49.js → index-b2fd6338.js} +3 -80
- package/dist/_shared/cjs/{index-952918c9.js → index-c575a255.js} +11 -10
- package/dist/_shared/cjs/index.module-dd1d7d0b.js +382 -0
- package/dist/_shared/cjs/{suffix-modifier-1ee2da04.js → suffix-modifier-64dcd338.js} +1 -1
- package/dist/_shared/esm/{Base-6c01e0ec.js → Base-f200653c.js} +1 -1
- package/dist/_shared/esm/{BrandLogo-9ec620e8.js → BrandLogo-1af78f76.js} +4 -4
- package/dist/_shared/esm/{Breadcrumbs-dafa8dde.js → Breadcrumbs-87e2bd46.js} +8 -10
- package/dist/_shared/esm/BtIconAlert.esm-a4608d47.js +28 -0
- package/dist/_shared/esm/BtIconChevronDown2Px.esm-217276c2.js +20 -0
- package/dist/_shared/esm/BtIconChevronLeftMid.esm-1ed8330b.js +22 -0
- package/dist/_shared/esm/BtIconChevronRight2Px.esm-75e92636.js +37 -0
- package/dist/_shared/esm/BtIconChevronRightMid.esm-32268f1a.js +22 -0
- package/dist/_shared/esm/BtIconCrossAlt2Px.esm-7165ab1a.js +20 -0
- package/dist/_shared/esm/BtIconTick.esm-e265098f.js +72 -0
- package/dist/_shared/esm/BtIconTickAlt2Px.esm-0bc2ded0.js +20 -0
- package/dist/_shared/esm/{Button-d1dbcf79.js → Button-69073fb3.js} +8 -8
- package/dist/_shared/esm/{Card-e62c3ff6.js → Card-201e9f28.js} +9 -11
- package/dist/_shared/esm/{Checkbox-d8891198.js → Checkbox-d6ec5024.js} +8 -8
- package/dist/_shared/esm/{Columns-8704515b.js → Columns-d96b7425.js} +3 -4
- package/dist/_shared/esm/{Curve-bbc5589c.js → Curve-d8679dde.js} +3 -3
- package/dist/_shared/esm/{DisclosureMini-9b819941.js → DisclosureMini-ec17b008.js} +6 -6
- package/dist/_shared/esm/{Filter-a01aed11.js → Filter-58a42358.js} +3 -7
- package/dist/_shared/esm/{FormControl-f18e2f59.js → FormControl-351e5f1b.js} +7 -7
- package/dist/_shared/esm/{Group-fb26fd32.js → Group-73fdb896.js} +4 -5
- package/dist/_shared/esm/{Heading-0f629151.js → Heading-d16e0e53.js} +4 -5
- package/dist/_shared/esm/{Icon-c1af47bc.js → Icon-abd0d990.js} +12 -14
- package/dist/_shared/esm/{Image-3ed3863c.js → Image-12fbd327.js} +3 -4
- package/dist/_shared/esm/{Poster-a83ae770.js → Poster-4ec2f679.js} +5 -9
- package/dist/_shared/esm/{ProgressStepper-7ab88f4c.js → ProgressStepper-f51f86c3.js} +41 -49
- package/dist/_shared/esm/{RadioGroup-be16d5d3.js → RadioGroup-c838764c.js} +4 -5
- package/dist/_shared/esm/{Section-b8038d66.js → Section-73781b56.js} +2 -2
- package/dist/_shared/esm/{SiteFooter-a182cb18.js → SiteFooter-233bb926.js} +7 -9
- package/dist/_shared/esm/{SiteHeader.rehydrator-023b7b76.js → SiteHeader.rehydrator-bafcb166.js} +19 -27
- package/dist/_shared/esm/{Surface-dde51789.js → Surface-0ca6817d.js} +4 -5
- package/dist/_shared/esm/{Tabs-5af0b940.js → Tabs-f903187a.js} +28 -37
- package/dist/_shared/esm/{Text-40457811.js → Text-14f586ac.js} +4 -4
- package/dist/_shared/esm/{TextInput-4424c195.js → TextInput-ee68c88b.js} +4 -4
- package/dist/_shared/esm/{Toast-43795e91.js → Toast-37549e68.js} +16 -25
- package/dist/_shared/esm/{UniversalHeader-1c5a886d.js → UniversalHeader-b4c1577c.js} +2 -3
- package/dist/_shared/esm/{VerticalSpace-93980c9c.js → VerticalSpace-43cd9138.js} +2 -2
- package/dist/_shared/esm/{extends-4575346e.js → extends-8cc61aad.js} +1 -4
- package/dist/_shared/esm/filter-data-attrs-ea8f4ed4.js +220 -0
- package/dist/_shared/esm/{index-22aad354.js → index-13d575cc.js} +11 -11
- package/dist/_shared/esm/{index-2ae58626.js → index-2e73c2e9.js} +11 -10
- package/dist/_shared/esm/{index-94ecc5f8.js → index-3797d77e.js} +2 -2
- package/dist/_shared/esm/{index-369dce7f.js → index-41d7af2b.js} +9 -92
- package/dist/_shared/esm/{index-8000d9e3.js → index-a1d2d9b3.js} +2 -79
- package/dist/_shared/esm/{index-bed18a88.js → index-efd9ef1c.js} +1 -9
- package/dist/_shared/esm/index.module-44714d3f.js +371 -0
- package/dist/_shared/esm/{suffix-modifier-7e640670.js → suffix-modifier-3d548e45.js} +1 -1
- package/dist/index.es.js +831 -1527
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1260 -1956
- package/dist/index.js.map +1 -1
- package/dist/styles.css +11 -1
- package/dist/types/components/Alert/Alert.d.ts +2 -2
- package/dist/types/components/Box/index.d.ts +1 -1
- package/dist/types/components/BrandLogo/BrandLogo.d.ts +2 -2
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Card/Card.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Clock/Clock.d.ts +1 -1
- package/dist/types/components/Columns/Columns.d.ts +2 -2
- package/dist/types/components/Columns/index.d.ts +1 -1
- package/dist/types/components/Curve/Curve.d.ts +4 -4
- package/dist/types/components/FormControl/FormControl.d.ts +1 -1
- package/dist/types/components/Group/GroupItem/GroupItem.d.ts +17 -0
- package/dist/types/components/Heading/Heading.d.ts +4 -4
- package/dist/types/components/Icon/Icon.d.ts +1 -1
- package/dist/types/components/Image/Image.d.ts +4 -4
- package/dist/types/components/MediaCard/MediaCard.d.ts +1 -1
- package/dist/types/components/MediaCard/MediaCard.stories-wip.d.ts +15 -0
- package/dist/types/components/Poster/PosterImage.d.ts +2 -2
- package/dist/types/components/Poster/PosterVideo.d.ts +1 -1
- package/dist/types/components/ProgressBar/types/progress-bar-icons.d.ts +1 -1
- package/dist/types/components/ProgressBar/types/progress-bar-state.d.ts +1 -1
- package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/RadioGroup/context.d.ts +2 -2
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +1 -1
- package/dist/types/components/Surface/Surface.d.ts +3 -3
- package/dist/types/components/Surface/index.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/TextArea/TextArea.d.ts +1 -1
- package/dist/types/components/TextInput/TextInput.d.ts +1 -1
- package/dist/types/components/Toast/Toast.d.ts +3 -0
- package/dist/types/components/Toast/ToastNotification.d.ts +1 -1
- package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +1 -1
- package/dist/types/hooks/use-aria-describedby.d.ts +1 -1
- package/dist/types/types/arc-icon.d.ts +1 -1
- package/package.json +49 -19
- package/dist/Alert/Alert.cjs.d.ts +0 -57
- package/dist/Alert/Alert.esm.d.ts +0 -57
- package/dist/Align/Align.cjs.d.ts +0 -25
- package/dist/Align/Align.esm.d.ts +0 -25
- package/dist/Badge/Badge.cjs.d.ts +0 -30
- package/dist/Badge/Badge.esm.d.ts +0 -30
- package/dist/Base/Base.cjs.d.ts +0 -1
- package/dist/Base/Base.esm.d.ts +0 -1
- package/dist/Box/Box.cjs.d.ts +0 -40
- package/dist/Box/Box.esm.d.ts +0 -40
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +0 -1
- package/dist/BrandLogo/BrandLogo.esm.d.ts +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +0 -1
- package/dist/Button/Button.cjs.d.ts +0 -1
- package/dist/Button/Button.esm.d.ts +0 -1
- package/dist/Card/Card.cjs.d.ts +0 -1
- package/dist/Card/Card.esm.d.ts +0 -1
- package/dist/Checkbox/Checkbox.cjs.d.ts +0 -1
- package/dist/Checkbox/Checkbox.esm.d.ts +0 -1
- package/dist/Clock/Clock.cjs.d.ts +0 -15
- package/dist/Clock/Clock.esm.d.ts +0 -15
- package/dist/Columns/Columns.cjs.d.ts +0 -1
- package/dist/Columns/Columns.esm.d.ts +0 -1
- package/dist/Curve/Curve.cjs.d.ts +0 -1
- package/dist/Curve/Curve.esm.d.ts +0 -1
- package/dist/Disclosure/Disclosure.cjs.d.ts +0 -31
- package/dist/Disclosure/Disclosure.esm.d.ts +0 -31
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +0 -1
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +0 -1
- package/dist/Elevation/Elevation.cjs.d.ts +0 -20
- package/dist/Elevation/Elevation.esm.d.ts +0 -20
- package/dist/Filter/Filter.cjs.d.ts +0 -1
- package/dist/Filter/Filter.esm.d.ts +0 -1
- package/dist/FormControl/FormControl.cjs.d.ts +0 -1
- package/dist/FormControl/FormControl.esm.d.ts +0 -1
- package/dist/Group/Group.cjs.d.ts +0 -1
- package/dist/Group/Group.esm.d.ts +0 -1
- package/dist/Heading/Heading.cjs.d.ts +0 -1
- package/dist/Heading/Heading.esm.d.ts +0 -1
- package/dist/Icon/Icon.cjs.d.ts +0 -1
- package/dist/Icon/Icon.esm.d.ts +0 -1
- package/dist/Image/Image.cjs.d.ts +0 -1
- package/dist/Image/Image.esm.d.ts +0 -1
- package/dist/Markup/Markup.cjs.d.ts +0 -16
- package/dist/Markup/Markup.esm.d.ts +0 -16
- package/dist/Modal/Modal.cjs.d.ts +0 -53
- package/dist/Modal/Modal.esm.d.ts +0 -53
- package/dist/Pagination/Pagination.cjs.d.ts +0 -20
- package/dist/Pagination/Pagination.esm.d.ts +0 -20
- package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +0 -28
- package/dist/PaginationSimple/PaginationSimple.esm.d.ts +0 -28
- package/dist/Poster/Poster.cjs.d.ts +0 -1
- package/dist/Poster/Poster.esm.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.cjs.d.ts +0 -47
- package/dist/ProgressBar/ProgressBar.esm.d.ts +0 -47
- package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +0 -1
- package/dist/ProgressStepper/ProgressStepper.esm.d.ts +0 -1
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +0 -1
- package/dist/RadioGroup/RadioGroup.esm.d.ts +0 -1
- package/dist/Rule/Rule.cjs.d.ts +0 -8
- package/dist/Rule/Rule.esm.d.ts +0 -8
- package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +0 -25
- package/dist/ScrollToTop/ScrollToTop.esm.d.ts +0 -25
- package/dist/Section/Section.cjs.d.ts +0 -1
- package/dist/Section/Section.esm.d.ts +0 -1
- package/dist/Select/Select.cjs.d.ts +0 -25
- package/dist/Select/Select.esm.d.ts +0 -25
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +0 -4
- package/dist/SiteFooter/SiteFooter.esm.d.ts +0 -4
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +0 -2
- package/dist/SiteHeader/SiteHeader.esm.d.ts +0 -2
- package/dist/Surface/Surface.cjs.d.ts +0 -1
- package/dist/Surface/Surface.esm.d.ts +0 -1
- package/dist/Switch/Switch.cjs.d.ts +0 -40
- package/dist/Switch/Switch.esm.d.ts +0 -40
- package/dist/Tabs/Tabs.cjs.d.ts +0 -1
- package/dist/Tabs/Tabs.esm.d.ts +0 -1
- package/dist/Tag/Tag.cjs.d.ts +0 -33
- package/dist/Tag/Tag.esm.d.ts +0 -33
- package/dist/Text/Text.cjs.d.ts +0 -1
- package/dist/Text/Text.esm.d.ts +0 -1
- package/dist/TextArea/TextArea.cjs.d.ts +0 -64
- package/dist/TextArea/TextArea.esm.d.ts +0 -64
- package/dist/TextInput/TextInput.cjs.d.ts +0 -1
- package/dist/TextInput/TextInput.esm.d.ts +0 -1
- package/dist/Toast/Toast.cjs.d.ts +0 -1
- package/dist/Toast/Toast.esm.d.ts +0 -1
- package/dist/Truncate/Truncate.cjs.d.ts +0 -18
- package/dist/Truncate/Truncate.esm.d.ts +0 -18
- package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +0 -1
- package/dist/UniversalHeader/UniversalHeader.esm.d.ts +0 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +0 -1
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.cjs.d.ts +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.esm.d.ts +0 -1
- package/dist/_shared/cjs/Base-569e4334.d.ts +0 -19
- package/dist/_shared/cjs/BrandLogo-8107d59f.d.ts +0 -26
- package/dist/_shared/cjs/Breadcrumbs-0906dd10.d.ts +0 -61
- package/dist/_shared/cjs/BtIconAlert-637db790.js +0 -38
- package/dist/_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js +0 -29
- package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +0 -31
- package/dist/_shared/cjs/BtIconChevronRight2Px-a8e40136.js +0 -50
- package/dist/_shared/cjs/BtIconChevronRightMid-5a38d855.js +0 -31
- package/dist/_shared/cjs/BtIconCrossAlt2Px-30dc2688.js +0 -29
- package/dist/_shared/cjs/BtIconTick-42fcc5ec.js +0 -91
- package/dist/_shared/cjs/BtIconTickAlt2Px-bdf06f8c.js +0 -29
- package/dist/_shared/cjs/Button-5aaa6776.d.ts +0 -102
- package/dist/_shared/cjs/Card-fd189ba8.d.ts +0 -136
- package/dist/_shared/cjs/Checkbox-02c546ca.d.ts +0 -64
- package/dist/_shared/cjs/Columns-e90798f8.d.ts +0 -76
- package/dist/_shared/cjs/Curve-781ef633.d.ts +0 -35
- package/dist/_shared/cjs/DisclosureMini-52706ee6.d.ts +0 -37
- package/dist/_shared/cjs/Filter-a7574fe7.d.ts +0 -83
- package/dist/_shared/cjs/FormControl-1e1bf2bf.d.ts +0 -99
- package/dist/_shared/cjs/Group-f85dd4c0.d.ts +0 -46
- package/dist/_shared/cjs/Heading-e3332dcf.d.ts +0 -50
- package/dist/_shared/cjs/Icon-e1dd45eb.d.ts +0 -34
- package/dist/_shared/cjs/Image-0e393cbf.d.ts +0 -94
- package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +0 -27
- package/dist/_shared/cjs/MediaCard-9483ad5f.d.ts +0 -60
- package/dist/_shared/cjs/NavItem-df20237c.d.ts +0 -43
- package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +0 -49
- package/dist/_shared/cjs/Poster-faea1ad3.d.ts +0 -81
- package/dist/_shared/cjs/ProgressStepper-f740d7bb.d.ts +0 -89
- package/dist/_shared/cjs/RadioGroup-d7664b0c.d.ts +0 -97
- package/dist/_shared/cjs/Section-48aca5f5.d.ts +0 -21
- package/dist/_shared/cjs/SiteFooter-5da774e1.d.ts +0 -62
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +0 -78
- package/dist/_shared/cjs/SiteHeader.rehydrator-acc9d8c4.d.ts +0 -78
- package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +0 -48
- package/dist/_shared/cjs/Surface-b7c51b2b.d.ts +0 -51
- package/dist/_shared/cjs/Tabs-fda49692.d.ts +0 -75
- package/dist/_shared/cjs/Text-fa447e2d.d.ts +0 -38
- package/dist/_shared/cjs/TextInput-13050538.d.ts +0 -77
- package/dist/_shared/cjs/TextInput-f4549637.d.ts +0 -10
- package/dist/_shared/cjs/Toast-0cb23cae.d.ts +0 -52
- package/dist/_shared/cjs/UniversalHeader-da622e1a.d.ts +0 -26
- package/dist/_shared/cjs/VerticalSpace-86f697e7.d.ts +0 -34
- package/dist/_shared/cjs/VisuallyHidden-e2c8b291.d.ts +0 -12
- package/dist/_shared/cjs/arc-icon-17594b2f.d.ts +0 -4
- package/dist/_shared/cjs/filter-data-attrs-a30dcf5f.d.ts +0 -2
- package/dist/_shared/cjs/filter-data-attrs-a30dcf5f.js +0 -215
- package/dist/_shared/cjs/handle-link-click-17a44cf4.d.ts +0 -7
- package/dist/_shared/cjs/index-699086a7.d.ts +0 -2
- package/dist/_shared/cjs/index-74488a9f.d.ts +0 -2
- package/dist/_shared/cjs/index-9483ad5f.d.ts +0 -14
- package/dist/_shared/cjs/index-c81c9401.d.ts +0 -4
- package/dist/_shared/cjs/index-e340924e.d.ts +0 -2
- package/dist/_shared/cjs/index-e6d20018.d.ts +0 -3
- package/dist/_shared/cjs/index-eb06f640.d.ts +0 -2
- package/dist/_shared/cjs/index-f419cf04.d.ts +0 -2
- package/dist/_shared/cjs/index.es-77def0c9.d.ts +0 -19
- package/dist/_shared/cjs/index.module-bbcc4e18.js +0 -126
- package/dist/_shared/cjs/suffix-modifier-1ee2da04.d.ts +0 -10
- package/dist/_shared/esm/Base-6c01e0ec.d.ts +0 -19
- package/dist/_shared/esm/BrandLogo-9ec620e8.d.ts +0 -26
- package/dist/_shared/esm/Breadcrumbs-dafa8dde.d.ts +0 -61
- package/dist/_shared/esm/BtIconAlert-55a6ed5c.js +0 -32
- package/dist/_shared/esm/BtIconChevronDown2Px-782876e2.js +0 -23
- package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +0 -25
- package/dist/_shared/esm/BtIconChevronRight2Px-b8e7b4ad.js +0 -43
- package/dist/_shared/esm/BtIconChevronRightMid-d9b11761.js +0 -25
- package/dist/_shared/esm/BtIconCrossAlt2Px-a6a9f431.js +0 -23
- package/dist/_shared/esm/BtIconTick-5fe50cc7.js +0 -83
- package/dist/_shared/esm/BtIconTickAlt2Px-da97e9ae.js +0 -23
- package/dist/_shared/esm/Button-d1dbcf79.d.ts +0 -102
- package/dist/_shared/esm/Card-e62c3ff6.d.ts +0 -136
- package/dist/_shared/esm/Checkbox-d8891198.d.ts +0 -64
- package/dist/_shared/esm/Columns-8704515b.d.ts +0 -76
- package/dist/_shared/esm/Curve-bbc5589c.d.ts +0 -35
- package/dist/_shared/esm/DisclosureMini-9b819941.d.ts +0 -37
- package/dist/_shared/esm/Filter-a01aed11.d.ts +0 -83
- package/dist/_shared/esm/FormControl-f18e2f59.d.ts +0 -99
- package/dist/_shared/esm/Group-fb26fd32.d.ts +0 -46
- package/dist/_shared/esm/Heading-0f629151.d.ts +0 -50
- package/dist/_shared/esm/Icon-c1af47bc.d.ts +0 -34
- package/dist/_shared/esm/Image-3ed3863c.d.ts +0 -94
- package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +0 -27
- package/dist/_shared/esm/MediaCard-9483ad5f.d.ts +0 -60
- package/dist/_shared/esm/NavItem-df20237c.d.ts +0 -43
- package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +0 -49
- package/dist/_shared/esm/Poster-a83ae770.d.ts +0 -81
- package/dist/_shared/esm/ProgressStepper-7ab88f4c.d.ts +0 -89
- package/dist/_shared/esm/RadioGroup-be16d5d3.d.ts +0 -97
- package/dist/_shared/esm/Section-b8038d66.d.ts +0 -21
- package/dist/_shared/esm/SiteFooter-a182cb18.d.ts +0 -62
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +0 -78
- package/dist/_shared/esm/SiteHeader.rehydrator-023b7b76.d.ts +0 -78
- package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +0 -48
- package/dist/_shared/esm/Surface-dde51789.d.ts +0 -51
- package/dist/_shared/esm/Tabs-5af0b940.d.ts +0 -75
- package/dist/_shared/esm/Text-40457811.d.ts +0 -38
- package/dist/_shared/esm/TextInput-13050538.d.ts +0 -77
- package/dist/_shared/esm/TextInput-4424c195.d.ts +0 -10
- package/dist/_shared/esm/Toast-43795e91.d.ts +0 -52
- package/dist/_shared/esm/UniversalHeader-1c5a886d.d.ts +0 -26
- package/dist/_shared/esm/VerticalSpace-93980c9c.d.ts +0 -34
- package/dist/_shared/esm/VisuallyHidden-b9eebf71.d.ts +0 -12
- package/dist/_shared/esm/arc-icon-17594b2f.d.ts +0 -4
- package/dist/_shared/esm/filter-data-attrs-afdb7d32.d.ts +0 -2
- package/dist/_shared/esm/filter-data-attrs-afdb7d32.js +0 -208
- package/dist/_shared/esm/handle-link-click-f64f55a2.d.ts +0 -7
- package/dist/_shared/esm/index-699086a7.d.ts +0 -2
- package/dist/_shared/esm/index-74488a9f.d.ts +0 -2
- package/dist/_shared/esm/index-9483ad5f.d.ts +0 -14
- package/dist/_shared/esm/index-c81c9401.d.ts +0 -4
- package/dist/_shared/esm/index-e340924e.d.ts +0 -2
- package/dist/_shared/esm/index-e6d20018.d.ts +0 -3
- package/dist/_shared/esm/index-eb06f640.d.ts +0 -2
- package/dist/_shared/esm/index-f419cf04.d.ts +0 -2
- package/dist/_shared/esm/index.es-00cb3bcb.d.ts +0 -19
- package/dist/_shared/esm/index.module-5ed90b21.js +0 -122
- package/dist/_shared/esm/suffix-modifier-7e640670.d.ts +0 -10
- /package/dist/_shared/cjs/{debounce-506538c5.js → debounce-123468fb.js} +0 -0
- /package/dist/_shared/esm/{debounce-e228705f.js → debounce-6fed6b84.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { ReactNode, FC } from "react";
|
|
2
2
|
import { HeadingProps } from "../Heading/Heading";
|
|
3
3
|
import { ArcIcon } from "../../types/arc-icon";
|
|
4
4
|
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
@@ -15,7 +15,7 @@ export interface AlertProps {
|
|
|
15
15
|
/**
|
|
16
16
|
* Determine a description for `<Alert />`
|
|
17
17
|
*/
|
|
18
|
-
description?: string;
|
|
18
|
+
description?: string | ReactNode;
|
|
19
19
|
/**
|
|
20
20
|
* Determine a link for `<Alert />`
|
|
21
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Box, BoxProps } from "./Box";
|
|
1
|
+
export { Box, type BoxProps } from "./Box";
|
|
@@ -9,7 +9,7 @@ export interface BrandLogoProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Color of the BrandLogo. The `brand` color only shows on light surfaces.
|
|
11
11
|
*/
|
|
12
|
-
color?: typeof colors[number];
|
|
12
|
+
color?: (typeof colors)[number];
|
|
13
13
|
/**
|
|
14
14
|
* Accessible text for the BrandLogo.
|
|
15
15
|
*/
|
|
@@ -21,5 +21,5 @@ export interface BrandLogoProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* Optional sub-brand variant. Only applies to BT.
|
|
23
23
|
*/
|
|
24
|
-
subBrand?: typeof subBrands[number];
|
|
24
|
+
subBrand?: (typeof subBrands)[number];
|
|
25
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import { ArcIcon } from "../../types/arc-icon";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
4
|
+
export type Ref = React.Ref<ElementUnion> | null;
|
|
5
5
|
/**
|
|
6
6
|
* Use `Button` to allow users to take actions with clicks and taps.
|
|
7
7
|
*/
|
|
@@ -56,7 +56,7 @@ declare const CardImage: FC<{
|
|
|
56
56
|
*/
|
|
57
57
|
srcSet?: string;
|
|
58
58
|
}>;
|
|
59
|
-
export
|
|
59
|
+
export type TitleSize = "xs" | "s" | "m" | "l" | "xl";
|
|
60
60
|
export interface CardProps extends HTMLAttributes<HTMLElement> {
|
|
61
61
|
/**
|
|
62
62
|
* The HTML ID passed to the Card Button for aria- attributes.
|
|
@@ -3,7 +3,7 @@ import { FC } from "react";
|
|
|
3
3
|
* `Clock` is a demo component that shows the current time.
|
|
4
4
|
*/
|
|
5
5
|
export declare const Clock: FC<ClockProps>;
|
|
6
|
-
export
|
|
6
|
+
export type LocaleType = "en-GB" | "en-US" | "ar-EG";
|
|
7
7
|
export interface ClockProps {
|
|
8
8
|
/**
|
|
9
9
|
* Locale for the Clock.
|
|
@@ -6,8 +6,8 @@ export declare const Columns: FC<ColumnsProps> & {
|
|
|
6
6
|
Col: typeof Col;
|
|
7
7
|
};
|
|
8
8
|
export declare const Col: FC<ColProps>;
|
|
9
|
-
export
|
|
10
|
-
|
|
9
|
+
export 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
11
|
export interface ColProps {
|
|
12
12
|
/**
|
|
13
13
|
* Vertically align the Column.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Columns, Span } from "./Columns";
|
|
1
|
+
export { Columns, type Span } from "./Columns";
|
|
@@ -14,11 +14,11 @@ export interface CurveProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* Bottom color of the Curve. Shares values with Surface.
|
|
16
16
|
*/
|
|
17
|
-
bottomColor?: typeof backgroundsBT[number];
|
|
17
|
+
bottomColor?: (typeof backgroundsBT)[number];
|
|
18
18
|
/**
|
|
19
19
|
* Positional variants of the Curve.
|
|
20
20
|
*/
|
|
21
|
-
from?: typeof positions[number];
|
|
21
|
+
from?: (typeof positions)[number];
|
|
22
22
|
/**
|
|
23
23
|
* Should the Curve colors be flipped? Normally used at the top of Poster.
|
|
24
24
|
*/
|
|
@@ -26,9 +26,9 @@ export interface CurveProps {
|
|
|
26
26
|
/**
|
|
27
27
|
* Size of the Curve.
|
|
28
28
|
*/
|
|
29
|
-
size?: typeof sizes[number];
|
|
29
|
+
size?: (typeof sizes)[number];
|
|
30
30
|
/**
|
|
31
31
|
* Top color of the Curve. Shares values with Surface.
|
|
32
32
|
*/
|
|
33
|
-
topColor?: typeof backgroundsBT[number];
|
|
33
|
+
topColor?: (typeof backgroundsBT)[number];
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
|
-
|
|
2
|
+
type RequirementStatus = "required" | "optional" | "not-applicable";
|
|
3
3
|
declare const Context: React.Context<{
|
|
4
4
|
requirementStatus: RequirementStatus | null;
|
|
5
5
|
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
export declare const GroupItem: FC<ItemProps>;
|
|
3
|
+
export interface ItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* Content to display in the Group.Item.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Should the Group.Item be visible for debugging and documentation
|
|
10
|
+
* purposes?
|
|
11
|
+
*/
|
|
12
|
+
isDebugVisible?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Should the Group.Item stretch to fill the available space?
|
|
15
|
+
*/
|
|
16
|
+
grow?: boolean;
|
|
17
|
+
}
|
|
@@ -12,10 +12,10 @@ export interface HeadingPropositionProps {
|
|
|
12
12
|
*/
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
15
|
+
export type HeadingCasing = "auto" | "none";
|
|
16
|
+
export type HeadingColor = "auto" | "brand";
|
|
17
|
+
export type HeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
|
|
18
|
+
export type HeadingSize = "xxxs" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
|
|
19
19
|
export interface HeadingProps {
|
|
20
20
|
/**
|
|
21
21
|
* Text alignment of the Heading.
|
|
@@ -45,7 +45,7 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
|
|
|
45
45
|
/**
|
|
46
46
|
* Anchor point for the Image if using fit="cover".
|
|
47
47
|
*/
|
|
48
|
-
anchor?: typeof anchorPoints[number];
|
|
48
|
+
anchor?: (typeof anchorPoints)[number];
|
|
49
49
|
/**
|
|
50
50
|
* Optionally enable HTML <picture> functionality by passing `Image.Source`
|
|
51
51
|
* components as children.
|
|
@@ -58,7 +58,7 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
|
|
|
58
58
|
/**
|
|
59
59
|
* Fit of the Image.
|
|
60
60
|
*/
|
|
61
|
-
fit?: typeof fitOptions[number];
|
|
61
|
+
fit?: (typeof fitOptions)[number];
|
|
62
62
|
/**
|
|
63
63
|
* Height dimension of the Image, in pixels. If fit="cover", the height in which
|
|
64
64
|
* to fit the Image. Otherwise, the intrinsic height of the Image element.
|
|
@@ -67,12 +67,12 @@ export interface ImageProps extends HTMLAttributes<HTMLElement> {
|
|
|
67
67
|
/**
|
|
68
68
|
* Loading behaviour of the Image.
|
|
69
69
|
*/
|
|
70
|
-
loading?: typeof loadingOptions[number];
|
|
70
|
+
loading?: (typeof loadingOptions)[number];
|
|
71
71
|
/**
|
|
72
72
|
* Apply an overlay to the Image, e.g. a scrim gradient for text legibility.
|
|
73
73
|
* Should not be used if the image has a rasterized overlay.
|
|
74
74
|
*/
|
|
75
|
-
overlay?: typeof overlayOptions[number];
|
|
75
|
+
overlay?: (typeof overlayOptions)[number];
|
|
76
76
|
/**
|
|
77
77
|
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Only required if srcSet is switching widths. Ignored if `children` (<source> elements) are present.
|
|
78
78
|
*/
|
|
@@ -45,7 +45,7 @@ export interface MediaCardProps {
|
|
|
45
45
|
/**
|
|
46
46
|
* Loading behaviour of the MediaCard.
|
|
47
47
|
*/
|
|
48
|
-
imageLoading?: typeof loadingOptions[number];
|
|
48
|
+
imageLoading?: (typeof loadingOptions)[number];
|
|
49
49
|
/**
|
|
50
50
|
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Required if srcSet is defined.
|
|
51
51
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { MediaCard } from "./MediaCard";
|
|
3
|
+
declare const meta: Meta<typeof MediaCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MediaCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const SurfaceBackgroundColor: Story;
|
|
8
|
+
export declare const Border: Story;
|
|
9
|
+
export declare const RoundedCorners: Story;
|
|
10
|
+
export declare const DeepShadow: Story;
|
|
11
|
+
export declare const OptimisedImages: Story;
|
|
12
|
+
export declare const ColumnContent: Story;
|
|
13
|
+
export declare const InColumns: Story;
|
|
14
|
+
export declare const EqualHeightColumns: Story;
|
|
15
|
+
export declare const EqualHeightColumnsWithFooter: Story;
|
|
@@ -10,11 +10,11 @@ export interface PosterImageProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Anchor point for the Poster.Image.
|
|
12
12
|
*/
|
|
13
|
-
anchor?: typeof anchorPoints[number];
|
|
13
|
+
anchor?: (typeof anchorPoints)[number];
|
|
14
14
|
/**
|
|
15
15
|
* Loading behaviour of the Poster.Image.
|
|
16
16
|
*/
|
|
17
|
-
loading?: typeof loadingOptions[number];
|
|
17
|
+
loading?: (typeof loadingOptions)[number];
|
|
18
18
|
/**
|
|
19
19
|
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute for the Poster.Image. Required if `srcSet` is defined.
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ProgressBarIcons = "refresh" | "cross" | "tick";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ProgressBarState = "loading" | "error" | "success";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
3
|
import { RadioButton } from "./RadioButton";
|
|
4
|
-
|
|
4
|
+
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
5
5
|
/**
|
|
6
6
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
3
|
+
type ContextProps = {
|
|
4
4
|
blurEvent: (event: EventType) => void;
|
|
5
5
|
changeEvent: (event: EventType) => void;
|
|
6
6
|
groupDisabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC, HTMLAttributes } from "react";
|
|
2
|
-
|
|
2
|
+
type SurfaceBackground = "light" | "dark";
|
|
3
3
|
declare const Context: React.Context<{
|
|
4
4
|
surface: SurfaceBackground;
|
|
5
5
|
}>;
|
|
@@ -9,8 +9,8 @@ declare const Context: React.Context<{
|
|
|
9
9
|
export declare const Surface: FC<SurfaceProps>;
|
|
10
10
|
export declare const backgrounds: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
11
11
|
export declare const backgroundsBT: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
12
|
-
export
|
|
13
|
-
export
|
|
12
|
+
export type SurfacePadding = "8" | "12" | "16" | "24" | "32" | "48" | "64";
|
|
13
|
+
export type SurfaceBackgroundColor = "black" | "brand" | "brand-flat" | "dark" | "darker" | "coral" | "turquoise" | "light" | "lighter" | "white";
|
|
14
14
|
export interface SurfaceProps extends HTMLAttributes<HTMLElement> {
|
|
15
15
|
/**
|
|
16
16
|
* Background colour of the Surface. Contents will change colour to meet
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Surface, SurfaceContext, backgrounds, backgroundsBT, SurfacePadding, SurfaceBackgroundColor } from "./Surface";
|
|
1
|
+
export { Surface, SurfaceContext, backgrounds, backgroundsBT, type SurfacePadding, type SurfaceBackgroundColor, } from "./Surface";
|
|
@@ -3,8 +3,8 @@ import { FC, ReactNode } from "react";
|
|
|
3
3
|
* Use `Text` to display text.
|
|
4
4
|
*/
|
|
5
5
|
export declare const Text: FC<TextProps>;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type Tone = "default" | "supporting" | "muted";
|
|
7
|
+
export type TextSize = "xs" | "s" | "m" | "l";
|
|
8
8
|
export interface TextProps {
|
|
9
9
|
/**
|
|
10
10
|
* Alignment of the Text.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
|
-
|
|
3
|
+
type EventType = React.ChangeEvent<HTMLTextAreaElement>;
|
|
4
4
|
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
5
5
|
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
6
6
|
export interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel"> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
|
-
|
|
3
|
+
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
4
4
|
/**
|
|
5
5
|
* Use `TextInput` to allow custom user text entry with a keyboard.
|
|
6
6
|
*/
|
|
@@ -5,6 +5,9 @@ export declare const Toast: FC<ToastProps> & {
|
|
|
5
5
|
Notification: typeof ToastNotification;
|
|
6
6
|
};
|
|
7
7
|
interface ToastProps {
|
|
8
|
+
/**
|
|
9
|
+
* Content to display within `Toast`
|
|
10
|
+
*/
|
|
8
11
|
children: React.ReactNode;
|
|
9
12
|
/**
|
|
10
13
|
* Colour scheme for `Toast` - Use 'default' in almost all cases.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
export declare const ToastNotification: FC<ToastNotificationProps>;
|
|
3
|
-
|
|
3
|
+
type ToastStatus = "general" | "error" | "warning" | "success";
|
|
4
4
|
export interface ToastNotificationProps {
|
|
5
5
|
/**
|
|
6
6
|
* Title for `<Toast />`
|
|
@@ -3,7 +3,7 @@ import { FC } from "react";
|
|
|
3
3
|
* Use `VerticalSpace` to create vertical space between components.
|
|
4
4
|
*/
|
|
5
5
|
export declare const VerticalSpace: FC<VerticalSpaceProps>;
|
|
6
|
-
export
|
|
6
|
+
export type VerticalSpaceSize = "4" | "8" | "12" | "16" | "20" | "24" | "28" | "32" | "40" | "48" | "64" | "96" | "128";
|
|
7
7
|
export interface VerticalSpaceProps {
|
|
8
8
|
/**
|
|
9
9
|
* Should the VerticalSpace be visible for debugging and documentation
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Optionally define ariaDescribedBy if errorMessage or helper exist.
|
|
3
3
|
*/
|
|
4
|
-
export declare const useAriaDescribedby: ({ id, idError, idHelper, idDisclosure, errorMessage, helper, disclosureText }: {
|
|
4
|
+
export declare const useAriaDescribedby: ({ id, idError, idHelper, idDisclosure, errorMessage, helper, disclosureText, }: {
|
|
5
5
|
id?: string | undefined;
|
|
6
6
|
idError?: string | undefined;
|
|
7
7
|
idDisclosure?: string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type ArcIcon = React.FC<SVGProps<SVGSVGElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.11.0",
|
|
4
4
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
5
5
|
"author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
"types": "./dist/types/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "rimraf dist && rollup -c",
|
|
11
|
-
"storybook": "
|
|
12
|
-
"storybook:build": "
|
|
13
|
-
"storybook:quiet": "
|
|
14
|
-
"test": "
|
|
15
|
-
"test:
|
|
16
|
-
"test:watch": "yarn test --changedSince=origin/master --coverage --watch",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"storybook:build": "storybook build --quiet",
|
|
13
|
+
"storybook:quiet": "pnpm run storybook --quiet",
|
|
14
|
+
"test": "cypress open --component",
|
|
15
|
+
"test:ci": "cypress run --component --browser chrome",
|
|
17
16
|
"generate:component": "node ./generate-component $1"
|
|
18
17
|
},
|
|
19
18
|
"files": [
|
|
@@ -26,40 +25,71 @@
|
|
|
26
25
|
"react": "^18.0.0"
|
|
27
26
|
},
|
|
28
27
|
"dependencies": {
|
|
28
|
+
"@geometricpanda/storybook-addon-badges": "^2.0.0",
|
|
29
29
|
"@radix-ui/react-dialog": "1.0.4",
|
|
30
30
|
"@radix-ui/react-label": "2.0.0",
|
|
31
31
|
"@radix-ui/react-select": "1.1.2",
|
|
32
32
|
"@radix-ui/react-switch": "1.0.1",
|
|
33
33
|
"@radix-ui/react-tabs": "1.0.4",
|
|
34
|
-
"@radix-ui/react-toast": "1.1.4"
|
|
34
|
+
"@radix-ui/react-toast": "1.1.4",
|
|
35
|
+
"storybook": "^7.4.5"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@arc-ui/fonts": "
|
|
38
|
-
"@arc-ui/icons": "
|
|
39
|
-
"@arc-ui/tokens": "
|
|
38
|
+
"@arc-ui/fonts": "workspace:^",
|
|
39
|
+
"@arc-ui/icons": "workspace:^",
|
|
40
|
+
"@arc-ui/tokens": "workspace:^",
|
|
40
41
|
"@babel/core": "^7.14.3",
|
|
41
42
|
"@babel/helper-define-map": "^7.14.3",
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
43
|
+
"@babel/preset-env": "^7.20.2",
|
|
44
|
+
"@babel/preset-react": "^7.18.6",
|
|
45
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
46
|
+
"@rollup/plugin-commonjs": "^19.0.0",
|
|
47
|
+
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
48
|
+
"@rollup/plugin-typescript": "^8.2.1",
|
|
49
|
+
"@storybook/addon-docs": "^7.4.5",
|
|
50
|
+
"@storybook/addon-essentials": "^7.4.5",
|
|
51
|
+
"@storybook/addon-interactions": "^7.4.5",
|
|
52
|
+
"@storybook/addon-links": "^7.4.5",
|
|
53
|
+
"@storybook/addon-styling": "^1.3.7",
|
|
54
|
+
"@storybook/blocks": "^7.4.5",
|
|
55
|
+
"@storybook/manager-api": "^7.4.5",
|
|
56
|
+
"@storybook/preset-typescript": "^3.0.0",
|
|
57
|
+
"@storybook/react": "^7.4.5",
|
|
58
|
+
"@storybook/react-webpack5": "^7.4.5",
|
|
59
|
+
"@storybook/testing-library": "^0.2.1",
|
|
60
|
+
"@storybook/theming": "^7.4.5",
|
|
61
|
+
"@testing-library/cypress": "^10.0.1",
|
|
62
|
+
"@types/lodash": "^4.14.184",
|
|
63
|
+
"@types/node": "^12.20.55",
|
|
48
64
|
"@types/prop-types": "^15.7.3",
|
|
49
65
|
"@types/react": "^18.0.26",
|
|
50
66
|
"@types/react-dom": "^18.0.9",
|
|
67
|
+
"@whitespace/storybook-addon-html": "5.1.6",
|
|
51
68
|
"babel-loader": "^8.2.2",
|
|
52
69
|
"camelcase": "^6.2.1",
|
|
53
|
-
"cheerio": "^1.0.0-rc.3",
|
|
54
70
|
"classnames": "^2.2.6",
|
|
55
71
|
"countries-list": "^2.6.1",
|
|
72
|
+
"cypress": "^13.3.0",
|
|
56
73
|
"formik": "^2.2.9",
|
|
74
|
+
"lodash": "^4.17.21",
|
|
75
|
+
"postcss": "^8.0.0",
|
|
76
|
+
"postcss-import": "^13.0.0",
|
|
77
|
+
"postcss-preset-env": "^7.0.0",
|
|
57
78
|
"prop-types": "^15.7.2",
|
|
58
79
|
"react": "^18.0.0",
|
|
59
80
|
"react-dom": "^18.0.0",
|
|
60
81
|
"react-is": "^18.0.0",
|
|
82
|
+
"react-syntax-highlighter": "15.5.0",
|
|
83
|
+
"rimraf": "3.0.2",
|
|
84
|
+
"rollup": "^2.50.1",
|
|
85
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
86
|
+
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
87
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
88
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
89
|
+
"storybook": "^7.4.5",
|
|
61
90
|
"tslib": "^2.0.1",
|
|
62
|
-
"typescript": "^4.
|
|
91
|
+
"typescript": "^4.9.5",
|
|
92
|
+
"vite": "^4.4.5",
|
|
63
93
|
"yup": "^0.32.11"
|
|
64
94
|
}
|
|
65
95
|
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { HeadingProps } from "../_shared/cjs/Heading-e3332dcf";
|
|
3
|
-
import { ArcIcon } from "../_shared/cjs/arc-icon-17594b2f";
|
|
4
|
-
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
5
|
-
declare const Alert: FC<AlertProps>;
|
|
6
|
-
interface AlertProps {
|
|
7
|
-
/**
|
|
8
|
-
* Determine a heading for `<Alert />`
|
|
9
|
-
*/
|
|
10
|
-
heading: string;
|
|
11
|
-
/**
|
|
12
|
-
* Determine a heading for `<Alert />`
|
|
13
|
-
*/
|
|
14
|
-
headingLevel?: HeadingProps["level"];
|
|
15
|
-
/**
|
|
16
|
-
* Determine a description for `<Alert />`
|
|
17
|
-
*/
|
|
18
|
-
description?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Determine a link for `<Alert />`
|
|
21
|
-
*/
|
|
22
|
-
link?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Determine the text to link
|
|
25
|
-
*/
|
|
26
|
-
linkText?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Determine a icon to display within `<Alert />`. This overrides the default icons.
|
|
29
|
-
*/
|
|
30
|
-
icon?: ArcIcon;
|
|
31
|
-
/**
|
|
32
|
-
* Determine the type of alert
|
|
33
|
-
*/
|
|
34
|
-
type?: "primary" | "secondary";
|
|
35
|
-
/**
|
|
36
|
-
* Determine the type of alert
|
|
37
|
-
*/
|
|
38
|
-
status?: "general" | "error" | "warning" | "success";
|
|
39
|
-
/**
|
|
40
|
-
* Determine showing a dismiss icon within `<Alert />`
|
|
41
|
-
*/
|
|
42
|
-
isDismissable?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Execute a function when dismiss is envoked
|
|
45
|
-
*/
|
|
46
|
-
onDismiss?: () => void;
|
|
47
|
-
/**
|
|
48
|
-
* Execute a function when link is envoked. This prevents the default behaviour for `<a >` Tag
|
|
49
|
-
*/
|
|
50
|
-
onLinkClick?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Text to override `linkText` with additional, more precise information
|
|
53
|
-
* specifically for screen reader users.
|
|
54
|
-
*/
|
|
55
|
-
linkAriaLabel?: string;
|
|
56
|
-
}
|
|
57
|
-
export { Alert };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { HeadingProps } from "../_shared/esm/Heading-0f629151";
|
|
3
|
-
import { ArcIcon } from "../_shared/esm/arc-icon-17594b2f";
|
|
4
|
-
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
5
|
-
declare const Alert: FC<AlertProps>;
|
|
6
|
-
interface AlertProps {
|
|
7
|
-
/**
|
|
8
|
-
* Determine a heading for `<Alert />`
|
|
9
|
-
*/
|
|
10
|
-
heading: string;
|
|
11
|
-
/**
|
|
12
|
-
* Determine a heading for `<Alert />`
|
|
13
|
-
*/
|
|
14
|
-
headingLevel?: HeadingProps["level"];
|
|
15
|
-
/**
|
|
16
|
-
* Determine a description for `<Alert />`
|
|
17
|
-
*/
|
|
18
|
-
description?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Determine a link for `<Alert />`
|
|
21
|
-
*/
|
|
22
|
-
link?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Determine the text to link
|
|
25
|
-
*/
|
|
26
|
-
linkText?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Determine a icon to display within `<Alert />`. This overrides the default icons.
|
|
29
|
-
*/
|
|
30
|
-
icon?: ArcIcon;
|
|
31
|
-
/**
|
|
32
|
-
* Determine the type of alert
|
|
33
|
-
*/
|
|
34
|
-
type?: "primary" | "secondary";
|
|
35
|
-
/**
|
|
36
|
-
* Determine the type of alert
|
|
37
|
-
*/
|
|
38
|
-
status?: "general" | "error" | "warning" | "success";
|
|
39
|
-
/**
|
|
40
|
-
* Determine showing a dismiss icon within `<Alert />`
|
|
41
|
-
*/
|
|
42
|
-
isDismissable?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Execute a function when dismiss is envoked
|
|
45
|
-
*/
|
|
46
|
-
onDismiss?: () => void;
|
|
47
|
-
/**
|
|
48
|
-
* Execute a function when link is envoked. This prevents the default behaviour for `<a >` Tag
|
|
49
|
-
*/
|
|
50
|
-
onLinkClick?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Text to override `linkText` with additional, more precise information
|
|
53
|
-
* specifically for screen reader users.
|
|
54
|
-
*/
|
|
55
|
-
linkAriaLabel?: string;
|
|
56
|
-
}
|
|
57
|
-
export { Alert };
|