@arc-ui/components 11.6.0 → 11.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.cjs.d.ts +1 -1
- package/dist/Alert/Alert.cjs.js +4 -4
- package/dist/Alert/Alert.esm.d.ts +1 -1
- package/dist/Alert/Alert.esm.js +4 -4
- package/dist/Badge/Badge.cjs.js +2 -2
- package/dist/Badge/Badge.esm.js +2 -2
- package/dist/Box/Box.cjs.d.ts +1 -0
- package/dist/Box/Box.cjs.js +13 -0
- package/dist/Box/Box.esm.d.ts +1 -0
- package/dist/Box/Box.esm.js +5 -0
- package/dist/Box/package.json +7 -0
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +2 -2
- package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.esm.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +3 -3
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +3 -3
- package/dist/Button/Button.cjs.d.ts +1 -1
- package/dist/Button/Button.cjs.js +3 -3
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +3 -3
- package/dist/Card/Card.cjs.d.ts +1 -1
- package/dist/Card/Card.cjs.js +5 -5
- package/dist/Card/Card.esm.d.ts +1 -1
- package/dist/Card/Card.esm.js +5 -5
- package/dist/Checkbox/Checkbox.cjs.d.ts +1 -1
- package/dist/Checkbox/Checkbox.cjs.js +5 -5
- package/dist/Checkbox/Checkbox.esm.d.ts +1 -1
- package/dist/Checkbox/Checkbox.esm.js +5 -5
- package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +2 -2
- package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
- package/dist/Disclosure/Disclosure.esm.js +2 -2
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +3 -3
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
- package/dist/DisclosureMini/DisclosureMini.esm.js +3 -3
- package/dist/Filter/Filter.cjs.d.ts +1 -1
- package/dist/Filter/Filter.cjs.js +2 -2
- package/dist/Filter/Filter.esm.d.ts +1 -1
- package/dist/Filter/Filter.esm.js +2 -2
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +4 -4
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +4 -4
- package/dist/Group/Group.cjs.d.ts +1 -1
- package/dist/Group/Group.cjs.js +2 -2
- package/dist/Group/Group.esm.d.ts +1 -1
- package/dist/Group/Group.esm.js +2 -2
- package/dist/Heading/Heading.cjs.d.ts +1 -1
- package/dist/Heading/Heading.cjs.js +2 -2
- package/dist/Heading/Heading.esm.d.ts +1 -1
- package/dist/Heading/Heading.esm.js +2 -2
- package/dist/Icon/Icon.cjs.d.ts +1 -1
- package/dist/Icon/Icon.cjs.js +2 -2
- package/dist/Icon/Icon.esm.d.ts +1 -1
- package/dist/Icon/Icon.esm.js +2 -2
- package/dist/Image/Image.cjs.d.ts +1 -1
- package/dist/Image/Image.cjs.js +2 -1
- package/dist/Image/Image.esm.d.ts +1 -1
- package/dist/Image/Image.esm.js +1 -1
- package/dist/Markup/Markup.cjs.js +1 -1
- package/dist/Markup/Markup.esm.js +1 -1
- package/dist/MediaCard/MediaCard.cjs.d.ts +61 -0
- package/dist/MediaCard/MediaCard.cjs.js +31 -0
- package/dist/MediaCard/MediaCard.esm.d.ts +61 -0
- package/dist/MediaCard/MediaCard.esm.js +23 -0
- package/dist/MediaCard/package.json +7 -0
- package/dist/Modal/Modal.cjs.d.ts +31 -0
- package/dist/Modal/Modal.cjs.js +388 -0
- package/dist/Modal/Modal.esm.d.ts +31 -0
- package/dist/Modal/Modal.esm.js +380 -0
- package/dist/Modal/package.json +7 -0
- package/dist/Pagination/Pagination.cjs.js +2 -2
- package/dist/Pagination/Pagination.esm.js +2 -2
- package/dist/PaginationSimple/PaginationSimple.cjs.js +2 -2
- package/dist/PaginationSimple/PaginationSimple.esm.js +2 -2
- package/dist/Poster/Poster.cjs.d.ts +1 -1
- package/dist/Poster/Poster.cjs.js +3 -3
- package/dist/Poster/Poster.esm.d.ts +1 -1
- package/dist/Poster/Poster.esm.js +3 -3
- package/dist/ProgressBar/ProgressBar.cjs.js +4 -4
- package/dist/ProgressBar/ProgressBar.esm.js +4 -4
- package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +89 -0
- package/dist/ProgressStepper/ProgressStepper.cjs.js +152 -0
- package/dist/ProgressStepper/ProgressStepper.esm.d.ts +89 -0
- package/dist/ProgressStepper/ProgressStepper.esm.js +144 -0
- package/dist/ProgressStepper/package.json +7 -0
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +5 -5
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.esm.js +5 -5
- package/dist/Rule/Rule.cjs.js +1 -1
- package/dist/Rule/Rule.esm.js +1 -1
- package/dist/ScrollToTop/ScrollToTop.cjs.js +2 -2
- package/dist/ScrollToTop/ScrollToTop.esm.js +2 -2
- package/dist/Select/Select.cjs.d.ts +1 -1
- package/dist/Select/Select.cjs.js +20 -1418
- package/dist/Select/Select.esm.d.ts +1 -1
- package/dist/Select/Select.esm.js +10 -1389
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +3 -3
- package/dist/SiteFooter/SiteFooter.esm.d.ts +1 -1
- package/dist/SiteFooter/SiteFooter.esm.js +4 -4
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +1 -1
- package/dist/SiteHeader/SiteHeader.cjs.js +6 -6
- package/dist/SiteHeader/SiteHeader.esm.d.ts +1 -1
- package/dist/SiteHeader/SiteHeader.esm.js +6 -6
- package/dist/Surface/Surface.cjs.d.ts +1 -1
- package/dist/Surface/Surface.cjs.js +1 -1
- package/dist/Surface/Surface.esm.d.ts +1 -1
- package/dist/Surface/Surface.esm.js +1 -1
- package/dist/Switch/Switch.cjs.d.ts +1 -1
- package/dist/Switch/Switch.cjs.js +8 -7
- package/dist/Switch/Switch.esm.d.ts +1 -1
- package/dist/Switch/Switch.esm.js +7 -6
- package/dist/Tag/Tag.cjs.js +2 -2
- package/dist/Tag/Tag.esm.js +2 -2
- package/dist/Text/Text.cjs.d.ts +1 -1
- package/dist/Text/Text.cjs.js +2 -2
- package/dist/Text/Text.esm.d.ts +1 -1
- package/dist/Text/Text.esm.js +2 -2
- package/dist/TextArea/TextArea.cjs.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs.js +20 -20
- package/dist/TextArea/TextArea.esm.d.ts +1 -1
- package/dist/TextArea/TextArea.esm.js +20 -20
- package/dist/TextInput/TextInput.cjs.js +5 -5
- package/dist/TextInput/TextInput.esm.js +5 -5
- package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -1
- package/dist/UniversalHeader/UniversalHeader.cjs.js +2 -2
- package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -1
- package/dist/UniversalHeader/UniversalHeader.esm.js +2 -2
- package/dist/_shared/cjs/Box-ebe2b7be.d.ts +39 -0
- package/dist/_shared/cjs/Box-ebe2b7be.js +30 -0
- package/dist/_shared/cjs/{BrandLogo-8008f0c4.js → BrandLogo-8107d59f.js} +1 -1
- package/dist/_shared/cjs/{Breadcrumbs-8b554370.js → Breadcrumbs-9f580f69.js} +1 -1
- package/dist/_shared/cjs/{Button-27512fee.js → Button-b4d6ccc8.js} +2 -2
- package/dist/_shared/cjs/{Card-804ab0e5.js → Card-f1108bfe.js} +4 -4
- package/dist/_shared/cjs/{Checkbox-21d3c4f6.js → Checkbox-c927b62f.js} +2 -2
- package/dist/_shared/cjs/{DisclosureMini-067e0319.js → DisclosureMini-2a10006e.js} +2 -2
- package/dist/_shared/cjs/{Filter-f7d2fbda.js → Filter-a7574fe7.js} +1 -1
- package/dist/_shared/cjs/{FormControl-9aaddd54.js → FormControl-78b007b7.js} +2 -2
- package/dist/_shared/cjs/{Group-d83f8c2e.js → Group-f85dd4c0.js} +1 -1
- package/dist/_shared/cjs/{Heading-d45f6a7f.js → Heading-ed1cb455.js} +1 -1
- package/dist/_shared/cjs/{Icon-9ae8dbe1.js → Icon-e1dd45eb.js} +1 -1
- package/dist/_shared/cjs/{Image-3bf4b4f3.js → Image-0e393cbf.js} +2 -0
- package/dist/_shared/cjs/{Poster-e05bbe13.d.ts → Poster-faea1ad3.d.ts} +1 -1
- package/dist/_shared/cjs/{Poster-e05bbe13.js → Poster-faea1ad3.js} +2 -2
- package/dist/_shared/{esm/RadioGroup-1fd0f389.d.ts → cjs/RadioGroup-8e17de70.d.ts} +1 -1
- package/dist/_shared/cjs/{RadioGroup-81805ef9.js → RadioGroup-8e17de70.js} +2 -2
- package/dist/_shared/cjs/{SiteFooter-c540b5f1.js → SiteFooter-9f7f9c2d.js} +2 -2
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +3 -3
- package/dist/_shared/cjs/{SiteHeader.rehydrator-f7fa2efe.js → SiteHeader.rehydrator-ccbebde6.js} +4 -4
- package/dist/_shared/cjs/{Surface-6da0a78e.d.ts → Surface-b7c51b2b.d.ts} +3 -2
- package/dist/_shared/cjs/{Surface-6da0a78e.js → Surface-b7c51b2b.js} +1 -1
- package/dist/_shared/cjs/{Text-6f2827e6.js → Text-555a29a4.js} +1 -1
- package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +1 -1
- package/dist/_shared/{esm/TextInput-1631dbc4.d.ts → cjs/TextInput-b768e346.d.ts} +2 -2
- package/dist/_shared/cjs/{TextInput-33314fc4.js → TextInput-b768e346.js} +2 -2
- package/dist/_shared/cjs/{UniversalHeader-cc1d9e5a.js → UniversalHeader-da622e1a.js} +1 -1
- package/dist/_shared/cjs/index-31fbb076.js +1416 -0
- package/dist/_shared/cjs/index-699086a7.d.ts +1 -1
- package/dist/_shared/cjs/index-74488a9f.d.ts +1 -1
- package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
- package/dist/_shared/cjs/index-e340924e.d.ts +1 -1
- package/dist/_shared/cjs/index-e6d20018.d.ts +1 -1
- package/dist/_shared/cjs/index-eb06f640.d.ts +1 -1
- package/dist/_shared/cjs/index-f419cf04.d.ts +1 -1
- package/dist/_shared/cjs/index.module-5ea728f4.js +23 -0
- package/dist/_shared/cjs/{index.module-af7c85f2.js → index.module-9b87a34d.js} +84 -103
- package/dist/_shared/esm/Box-06d99d8a.d.ts +39 -0
- package/dist/_shared/esm/Box-06d99d8a.js +24 -0
- package/dist/_shared/esm/{BrandLogo-56699561.js → BrandLogo-9ec620e8.js} +1 -1
- package/dist/_shared/esm/{Breadcrumbs-04590057.js → Breadcrumbs-5dc0afa7.js} +1 -1
- package/dist/_shared/esm/{Button-d319fa11.js → Button-9c3b0b11.js} +2 -2
- package/dist/_shared/esm/{Card-e79eb6c8.js → Card-79b6eae0.js} +4 -4
- package/dist/_shared/esm/{Checkbox-94300d8c.js → Checkbox-2d144384.js} +2 -2
- package/dist/_shared/esm/{DisclosureMini-022beae3.js → DisclosureMini-78a8f392.js} +2 -2
- package/dist/_shared/esm/{Filter-41b391e3.js → Filter-a01aed11.js} +1 -1
- package/dist/_shared/esm/{FormControl-5e3fdca3.js → FormControl-2fa7aae5.js} +2 -2
- package/dist/_shared/esm/{Group-d62c3f56.js → Group-fb26fd32.js} +1 -1
- package/dist/_shared/esm/{Heading-b61432fb.js → Heading-ee6bec51.js} +1 -1
- package/dist/_shared/esm/{Icon-fd247973.js → Icon-c1af47bc.js} +1 -1
- package/dist/_shared/esm/{Image-3596ce55.js → Image-3ed3863c.js} +2 -1
- package/dist/_shared/esm/{Poster-107d6954.d.ts → Poster-a83ae770.d.ts} +1 -1
- package/dist/_shared/esm/{Poster-107d6954.js → Poster-a83ae770.js} +2 -2
- package/dist/_shared/{cjs/RadioGroup-81805ef9.d.ts → esm/RadioGroup-65b8c8bf.d.ts} +1 -1
- package/dist/_shared/esm/{RadioGroup-1fd0f389.js → RadioGroup-65b8c8bf.js} +2 -2
- package/dist/_shared/esm/{SiteFooter-8075a9bd.js → SiteFooter-51bdc7df.js} +2 -2
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +3 -3
- package/dist/_shared/esm/{SiteHeader.rehydrator-4da8ac64.js → SiteHeader.rehydrator-382d1c03.js} +4 -4
- package/dist/_shared/esm/{Surface-bb100ef8.d.ts → Surface-dde51789.d.ts} +3 -2
- package/dist/_shared/esm/{Surface-bb100ef8.js → Surface-dde51789.js} +1 -1
- package/dist/_shared/esm/{Text-00e9743b.js → Text-14deb70e.js} +1 -1
- package/dist/_shared/esm/{TextInput-1631dbc4.js → TextInput-62bb7dee.js} +2 -2
- package/dist/_shared/esm/TextInput-7ed03a48.d.ts +1 -1
- package/dist/_shared/esm/{UniversalHeader-7926abde.js → UniversalHeader-1c5a886d.js} +1 -1
- package/dist/_shared/esm/index-4fa635bd.js +1386 -0
- package/dist/_shared/esm/index-699086a7.d.ts +1 -1
- package/dist/_shared/esm/index-74488a9f.d.ts +1 -1
- package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
- package/dist/_shared/esm/index-e340924e.d.ts +1 -1
- package/dist/_shared/esm/index-e6d20018.d.ts +1 -1
- package/dist/_shared/esm/index-eb06f640.d.ts +1 -1
- package/dist/_shared/esm/index-f419cf04.d.ts +1 -1
- package/dist/_shared/esm/{index.module-599b86dd.js → index.module-216016b5.js} +86 -104
- package/dist/_shared/esm/index.module-88179159.js +21 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Box/Box.d.ts +36 -0
- package/dist/types/components/Box/index.d.ts +1 -0
- package/dist/types/components/Image/index.d.ts +1 -1
- package/dist/types/components/MediaCard/MediaCard.d.ts +57 -0
- package/dist/types/components/MediaCard/index.d.ts +1 -0
- package/dist/types/components/Modal/Modal.stories-wip.d.ts +9 -0
- package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +28 -0
- package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +62 -0
- package/dist/types/components/ProgressStepper/index.d.ts +1 -0
- package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -0
- package/dist/types/components/Surface/Surface.d.ts +2 -1
- package/dist/types/components/Surface/index.d.ts +1 -1
- package/dist/types/styles.d.ts +5 -0
- package/package.json +4 -4
- /package/dist/_shared/cjs/{BrandLogo-8008f0c4.d.ts → BrandLogo-8107d59f.d.ts} +0 -0
- /package/dist/_shared/cjs/{Breadcrumbs-8b554370.d.ts → Breadcrumbs-9f580f69.d.ts} +0 -0
- /package/dist/_shared/cjs/{Button-27512fee.d.ts → Button-b4d6ccc8.d.ts} +0 -0
- /package/dist/_shared/cjs/{Card-804ab0e5.d.ts → Card-f1108bfe.d.ts} +0 -0
- /package/dist/_shared/cjs/{Checkbox-21d3c4f6.d.ts → Checkbox-c927b62f.d.ts} +0 -0
- /package/dist/_shared/cjs/{DisclosureMini-067e0319.d.ts → DisclosureMini-2a10006e.d.ts} +0 -0
- /package/dist/_shared/cjs/{Filter-f7d2fbda.d.ts → Filter-a7574fe7.d.ts} +0 -0
- /package/dist/_shared/cjs/{FormControl-9aaddd54.d.ts → FormControl-78b007b7.d.ts} +0 -0
- /package/dist/_shared/cjs/{Group-d83f8c2e.d.ts → Group-f85dd4c0.d.ts} +0 -0
- /package/dist/_shared/cjs/{Heading-d45f6a7f.d.ts → Heading-ed1cb455.d.ts} +0 -0
- /package/dist/_shared/cjs/{Icon-9ae8dbe1.d.ts → Icon-e1dd45eb.d.ts} +0 -0
- /package/dist/_shared/cjs/{Image-3bf4b4f3.d.ts → Image-0e393cbf.d.ts} +0 -0
- /package/dist/_shared/cjs/{SiteFooter-c540b5f1.d.ts → SiteFooter-9f7f9c2d.d.ts} +0 -0
- /package/dist/_shared/cjs/{SiteHeader.rehydrator-f7fa2efe.d.ts → SiteHeader.rehydrator-ccbebde6.d.ts} +0 -0
- /package/dist/_shared/cjs/{Text-6f2827e6.d.ts → Text-555a29a4.d.ts} +0 -0
- /package/dist/_shared/cjs/{UniversalHeader-cc1d9e5a.d.ts → UniversalHeader-da622e1a.d.ts} +0 -0
- /package/dist/_shared/esm/{BrandLogo-56699561.d.ts → BrandLogo-9ec620e8.d.ts} +0 -0
- /package/dist/_shared/esm/{Breadcrumbs-04590057.d.ts → Breadcrumbs-5dc0afa7.d.ts} +0 -0
- /package/dist/_shared/esm/{Button-d319fa11.d.ts → Button-9c3b0b11.d.ts} +0 -0
- /package/dist/_shared/esm/{Card-e79eb6c8.d.ts → Card-79b6eae0.d.ts} +0 -0
- /package/dist/_shared/esm/{Checkbox-94300d8c.d.ts → Checkbox-2d144384.d.ts} +0 -0
- /package/dist/_shared/esm/{DisclosureMini-022beae3.d.ts → DisclosureMini-78a8f392.d.ts} +0 -0
- /package/dist/_shared/esm/{Filter-41b391e3.d.ts → Filter-a01aed11.d.ts} +0 -0
- /package/dist/_shared/esm/{FormControl-5e3fdca3.d.ts → FormControl-2fa7aae5.d.ts} +0 -0
- /package/dist/_shared/esm/{Group-d62c3f56.d.ts → Group-fb26fd32.d.ts} +0 -0
- /package/dist/_shared/esm/{Heading-b61432fb.d.ts → Heading-ee6bec51.d.ts} +0 -0
- /package/dist/_shared/esm/{Icon-fd247973.d.ts → Icon-c1af47bc.d.ts} +0 -0
- /package/dist/_shared/esm/{Image-3596ce55.d.ts → Image-3ed3863c.d.ts} +0 -0
- /package/dist/_shared/esm/{SiteFooter-8075a9bd.d.ts → SiteFooter-51bdc7df.d.ts} +0 -0
- /package/dist/_shared/esm/{SiteHeader.rehydrator-4da8ac64.d.ts → SiteHeader.rehydrator-382d1c03.d.ts} +0 -0
- /package/dist/_shared/esm/{Text-00e9743b.d.ts → Text-14deb70e.d.ts} +0 -0
- /package/dist/_shared/{cjs/TextInput-33314fc4.d.ts → esm/TextInput-62bb7dee.d.ts} +0 -0
- /package/dist/_shared/esm/{UniversalHeader-7926abde.d.ts → UniversalHeader-1c5a886d.d.ts} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { SurfaceBackgroundColor, SurfacePadding } from "../Surface/Surface";
|
|
3
|
+
/**
|
|
4
|
+
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Box: FC<BoxProps>;
|
|
7
|
+
export interface BoxProps {
|
|
8
|
+
/**
|
|
9
|
+
* Contents of the Box.
|
|
10
|
+
*/
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Set Box to fill parent element.
|
|
14
|
+
*/
|
|
15
|
+
isFullHeight?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Add rounded corners to the box.
|
|
18
|
+
*/
|
|
19
|
+
isBorderRadius?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The border width of the box.
|
|
22
|
+
*/
|
|
23
|
+
borderWidth?: "thin" | "medium";
|
|
24
|
+
/**
|
|
25
|
+
* Box shadow for the box.
|
|
26
|
+
*/
|
|
27
|
+
elevationLevel?: "1" | "2";
|
|
28
|
+
/**
|
|
29
|
+
* Padding for the box.
|
|
30
|
+
*/
|
|
31
|
+
padding?: SurfacePadding;
|
|
32
|
+
/**
|
|
33
|
+
* Background color for the box.
|
|
34
|
+
*/
|
|
35
|
+
surface?: SurfaceBackgroundColor;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Box, BoxProps } from "./Box";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Image } from "./Image";
|
|
1
|
+
export { Image, loadingOptions } from "./Image";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { loadingOptions } from "../Image";
|
|
2
|
+
import React, { FC } from "react";
|
|
3
|
+
import { BoxProps } from "../Box";
|
|
4
|
+
/**
|
|
5
|
+
* Use `MediaCard` to contain content and an image about a single subject.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MediaCard: FC<MediaCardProps>;
|
|
8
|
+
export interface MediaCardProps {
|
|
9
|
+
/**
|
|
10
|
+
* Content of the MediaCard.
|
|
11
|
+
*/
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Footer Content of the MediaCard.
|
|
15
|
+
*/
|
|
16
|
+
cardFooter?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Add rounded corners to the MediaCard.
|
|
19
|
+
*/
|
|
20
|
+
isBorderRadius?: BoxProps["isBorderRadius"];
|
|
21
|
+
/**
|
|
22
|
+
* The border width of the MediaCard.
|
|
23
|
+
*/
|
|
24
|
+
borderWidth?: BoxProps["borderWidth"];
|
|
25
|
+
/**
|
|
26
|
+
* Box shadow for the MediaCard.
|
|
27
|
+
*/
|
|
28
|
+
elevationLevel?: BoxProps["elevationLevel"];
|
|
29
|
+
/**
|
|
30
|
+
* Set MediaCard to fill parent element.
|
|
31
|
+
*/
|
|
32
|
+
isFullHeight?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Background color for the MediaCard.
|
|
35
|
+
*/
|
|
36
|
+
surface?: BoxProps["surface"];
|
|
37
|
+
/**
|
|
38
|
+
* image src for the MediaCard.
|
|
39
|
+
*/
|
|
40
|
+
imageSrc: string;
|
|
41
|
+
/**
|
|
42
|
+
* image alt for the MediaCard.
|
|
43
|
+
*/
|
|
44
|
+
imageAlt?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Loading behaviour of the MediaCard.
|
|
47
|
+
*/
|
|
48
|
+
imageLoading?: typeof loadingOptions[number];
|
|
49
|
+
/**
|
|
50
|
+
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Required if srcSet is defined.
|
|
51
|
+
*/
|
|
52
|
+
imageSizes?: string;
|
|
53
|
+
/**
|
|
54
|
+
* A comma-separated list indicating a set of possible image sources for the user agent to use for different screen sizes. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
|
|
55
|
+
*/
|
|
56
|
+
imageSrcSet?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MediaCard } from "./MediaCard";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import { ModalProps } from "./Modal";
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<ModalProps>;
|
|
6
|
+
export declare const CloseProgrammatically: Story<ModalProps>;
|
|
7
|
+
export declare const OpenProgrammatically: Story<ModalProps>;
|
|
8
|
+
export declare const TallContent: Story<ModalProps>;
|
|
9
|
+
export declare const HiddenDescription: Story<ModalProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { ProgressStepperItem } from "./ProgressStepperItem/ProgressStepperItem";
|
|
3
|
+
/** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
|
|
4
|
+
export declare const ProgressStepper: FC<ProgressStepperProps> & {
|
|
5
|
+
Item: typeof ProgressStepperItem;
|
|
6
|
+
};
|
|
7
|
+
export interface ProgressStepperProps {
|
|
8
|
+
/**
|
|
9
|
+
* Children of `<ProgressStepper />` should only contain `<ProgressStepper.Item />`
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
14
|
+
*/
|
|
15
|
+
direction?: "horizontal" | "vertical";
|
|
16
|
+
/**
|
|
17
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
18
|
+
*/
|
|
19
|
+
size?: "small" | "large";
|
|
20
|
+
/**
|
|
21
|
+
* Determine if `<ProgressStepper.Item />` should be Fluid. Only appliciable for `horizontal direction.`
|
|
22
|
+
*/
|
|
23
|
+
isFluid?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Determine if `<ProgressStepper.Item />` should be able to expand. This only is appliciable when direction is set to vertical
|
|
26
|
+
*/
|
|
27
|
+
isExpandable?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { ProgressStatus } from "../progressStatus";
|
|
3
|
+
export declare const ProgressStepperItem: FC<ProgressStepperItemProps>;
|
|
4
|
+
export interface ProgressStepperItemProps {
|
|
5
|
+
/**
|
|
6
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
11
|
+
*/
|
|
12
|
+
titleHref?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Text to override `linkTitle` with additional, more precise information
|
|
15
|
+
* specifically for screen reader users.
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Execute a function on title click `<ProgressStepper.Item />`
|
|
20
|
+
*/
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Determine a sub title for `<ProgressStepper.Item />`
|
|
24
|
+
*/
|
|
25
|
+
subTitle?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
28
|
+
*/
|
|
29
|
+
direction?: "horizontal" | "vertical";
|
|
30
|
+
/**
|
|
31
|
+
* Determine the position of the step `<ProgressStepper.Item />`
|
|
32
|
+
*/
|
|
33
|
+
position?: "first" | "middle" | "last";
|
|
34
|
+
/**
|
|
35
|
+
* Determine a status for `<ProgressStepper.Item />`
|
|
36
|
+
*/
|
|
37
|
+
status?: ProgressStatus;
|
|
38
|
+
/**
|
|
39
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
40
|
+
*/
|
|
41
|
+
size?: "small" | "large";
|
|
42
|
+
/**
|
|
43
|
+
* Determine if `<ProgressStepper.Item /> should be Fluid`
|
|
44
|
+
*/
|
|
45
|
+
isFluid?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Determine the context `<ProgressStepper.Item /> should b`
|
|
48
|
+
*/
|
|
49
|
+
previousStep?: ProgressStatus;
|
|
50
|
+
/**
|
|
51
|
+
* Determine if `<ProgressStepper.Item /> should have expandable content`
|
|
52
|
+
*/
|
|
53
|
+
isExpandable?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Determine what content to display in `<ProgressStepper.Item />. To use this option isExpandable must be `true``
|
|
56
|
+
*/
|
|
57
|
+
stepContent?: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Determine if `stepContent` is hidden
|
|
60
|
+
*/
|
|
61
|
+
isStepContentHidden?: boolean;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressStepper } from "./ProgressStepper";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
@@ -10,12 +10,13 @@ export declare const Surface: FC<SurfaceProps>;
|
|
|
10
10
|
export declare const backgrounds: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
11
11
|
export declare const backgroundsBT: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
12
12
|
export declare type SurfacePadding = "8" | "12" | "16" | "24" | "32" | "48" | "64";
|
|
13
|
+
export declare type SurfaceBackgroundColor = "black" | "brand" | "brand-flat" | "dark" | "darker" | "coral" | "turquoise" | "light" | "lighter" | "white";
|
|
13
14
|
export interface SurfaceProps extends HTMLAttributes<HTMLElement> {
|
|
14
15
|
/**
|
|
15
16
|
* Background colour of the Surface. Contents will change colour to meet
|
|
16
17
|
* accessibility requirements.
|
|
17
18
|
*/
|
|
18
|
-
background?:
|
|
19
|
+
background?: SurfaceBackgroundColor;
|
|
19
20
|
/**
|
|
20
21
|
* Content to display on the Surface.
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Surface, SurfaceContext, backgrounds, backgroundsBT } from "./Surface";
|
|
1
|
+
export { Surface, SurfaceContext, backgrounds, backgroundsBT, SurfacePadding, SurfaceBackgroundColor } from "./Surface";
|
package/dist/types/styles.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import "./components/Base/Base.css";
|
|
|
5
5
|
import "./components/BrandLogo/BrandLogo.css";
|
|
6
6
|
import "./components/Breadcrumbs/Breadcrumbs.css";
|
|
7
7
|
import "./components/Card/Card.css";
|
|
8
|
+
import "./components/Box/Box.css";
|
|
8
9
|
import "./components/Button/Button.css";
|
|
9
10
|
import "./components/Checkbox/Checkbox.css";
|
|
10
11
|
import "./components/Clock/Clock.css";
|
|
@@ -20,6 +21,7 @@ import "./components/Heading/Heading.css";
|
|
|
20
21
|
import "./components/Icon/Icon.css";
|
|
21
22
|
import "./components/Image/Image.css";
|
|
22
23
|
import "./components/Markup/Markup.css";
|
|
24
|
+
import "./components/MediaCard/MediaCard.css";
|
|
23
25
|
import "./components/Modal/Modal.css";
|
|
24
26
|
import "./components/Pagination/Pagination.css";
|
|
25
27
|
import "./components/PaginationSimple/PaginationSimple.css";
|
|
@@ -67,3 +69,6 @@ import "./components/Text/Text.bt.css";
|
|
|
67
69
|
import "./components/TextInput/TextInput.bt.css";
|
|
68
70
|
import "./components/UniversalHeader/UniversalHeader.bt.css";
|
|
69
71
|
import "./components/Switch/Switch.bt.css";
|
|
72
|
+
import "./components/Modal/Modal.css";
|
|
73
|
+
import "./components/ProgressBar/ProgressBar.css";
|
|
74
|
+
import "./components/ProgressStepper/ProgressStepper.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.7.0",
|
|
4
4
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
5
5
|
"author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@radix-ui/react-switch": "^1.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@arc-ui/fonts": "^11.
|
|
36
|
-
"@arc-ui/icons": "^11.
|
|
37
|
-
"@arc-ui/tokens": "^11.
|
|
35
|
+
"@arc-ui/fonts": "^11.7.0",
|
|
36
|
+
"@arc-ui/icons": "^11.7.0",
|
|
37
|
+
"@arc-ui/tokens": "^11.7.0",
|
|
38
38
|
"@babel/core": "^7.14.3",
|
|
39
39
|
"@babel/helper-define-map": "^7.14.3",
|
|
40
40
|
"@storybook/addon-essentials": "^6.3.6",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|