@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,152 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
|
+
var React$3 = require('react');
|
|
7
|
+
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
8
|
+
var BtIconAlert = require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
9
|
+
var Icon = require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
10
|
+
var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
11
|
+
var VerticalSpace = require('../_shared/cjs/VerticalSpace-86f697e7.js');
|
|
12
|
+
var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-e2c8b291.js');
|
|
13
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$3);
|
|
18
|
+
|
|
19
|
+
const React$2 = React__default["default"];
|
|
20
|
+
const BtIconTickVariant = props =>
|
|
21
|
+
/*#__PURE__*/ React$2.createElement(
|
|
22
|
+
"svg",
|
|
23
|
+
Object.assign(
|
|
24
|
+
{
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
viewBox: "0 0 32 32"
|
|
27
|
+
},
|
|
28
|
+
props
|
|
29
|
+
),
|
|
30
|
+
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
31
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
32
|
+
d:
|
|
33
|
+
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
34
|
+
fill: "currentColor"
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
38
|
+
|
|
39
|
+
const React$1 = React__default["default"];
|
|
40
|
+
const BtIconCrossAlt = props =>
|
|
41
|
+
/*#__PURE__*/ React$1.createElement(
|
|
42
|
+
"svg",
|
|
43
|
+
Object.assign(
|
|
44
|
+
{
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
viewBox: "0 0 32 32"
|
|
47
|
+
},
|
|
48
|
+
props
|
|
49
|
+
),
|
|
50
|
+
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
51
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
52
|
+
d:
|
|
53
|
+
"M16.70709,16.02l4.48236-4.49365a.4996.4996,0,1,0-.707-.70606l-4.481,4.49225-4.481-4.49225a.4996.4996,0,1,0-.707.70606L15.29584,16.02l-4.48236,4.49365a.4996.4996,0,1,0,.707.70606l4.481-4.49225,4.481,4.49225a.4996.4996,0,1,0,.707-.70606Z",
|
|
54
|
+
fill: "currentColor"
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
var BtIconCrossAlt_2 = BtIconCrossAlt;
|
|
58
|
+
|
|
59
|
+
const React = React__default["default"];
|
|
60
|
+
const BtIconCircle = props =>
|
|
61
|
+
/*#__PURE__*/ React.createElement(
|
|
62
|
+
"svg",
|
|
63
|
+
Object.assign(
|
|
64
|
+
{
|
|
65
|
+
viewBox: "0 0 32 32",
|
|
66
|
+
fill: "none",
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
68
|
+
},
|
|
69
|
+
props
|
|
70
|
+
),
|
|
71
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
72
|
+
fillRule: "evenodd",
|
|
73
|
+
clipRule: "evenodd",
|
|
74
|
+
d:
|
|
75
|
+
"M9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9C12.13 9 9 12.13 9 16ZM16 7C11.03 7 7 11.03 7 16C7 20.97 11.03 25 16 25C20.97 25 25 20.97 25 16C25 11.03 20.97 7 16 7Z",
|
|
76
|
+
fill: "currentColor"
|
|
77
|
+
})
|
|
78
|
+
);
|
|
79
|
+
var BtIconCircle_2 = BtIconCircle;
|
|
80
|
+
|
|
81
|
+
var ProgressStepperItem = function (_a) {
|
|
82
|
+
var _b, _c;
|
|
83
|
+
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _d = _a.direction, direction = _d === void 0 ? "horizontal" : _d, _e = _a.status, status = _e === void 0 ? "todo" : _e, _f = _a.size, size = _f === void 0 ? "large" : _f, _g = _a.position, position = _g === void 0 ? "middle" : _g, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, isExpandable = _a.isExpandable, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = filterDataAttrs.__rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "position", "isFluid", "ariaLabel", "onClick", "previousStep", "isExpandable", "stepContent", "isStepContentHidden"]);
|
|
84
|
+
var surface = React$3.useContext(Surface.Context).surface;
|
|
85
|
+
var statusIcons = {
|
|
86
|
+
completed: BtIconTickVariant_2,
|
|
87
|
+
current: BtIconCircle_2,
|
|
88
|
+
warning: BtIconAlert.BtIconAlert_2,
|
|
89
|
+
error: BtIconCrossAlt_2
|
|
90
|
+
};
|
|
91
|
+
var onClickHandler = function (event) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
onClick && onClick();
|
|
94
|
+
};
|
|
95
|
+
var capitaliseFirstLetter = function (word) {
|
|
96
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
97
|
+
};
|
|
98
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepperItem", (_b = {
|
|
99
|
+
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
100
|
+
"arc-ProgressStepperItem--isFluid": isFluid,
|
|
101
|
+
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
102
|
+
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
103
|
+
},
|
|
104
|
+
_b["arc-ProgressStepperItem--".concat(status)] = status !== "todo",
|
|
105
|
+
_b["arc-ProgressStepperItem--".concat(size)] = size === "small",
|
|
106
|
+
_b)) }, filterDataAttrs.filterDataAttrs(props)),
|
|
107
|
+
React__default["default"].createElement("div", { className: index.classNames("arc-ProgressStepperItem-iconSection", (_c = {},
|
|
108
|
+
_c["arc-ProgressStepperItem-iconSection--".concat(position)] = position !== "middle",
|
|
109
|
+
_c)) },
|
|
110
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailBefore" }),
|
|
111
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconWrapper" }, statusIcons[status] === undefined ? (React__default["default"].createElement("div", { style: {
|
|
112
|
+
width: size === "small" ? "16px" : "32px",
|
|
113
|
+
height: size === "small" ? "16px" : "32px"
|
|
114
|
+
} })) : (React__default["default"].createElement(Icon.Icon, { size: size === "small" ? 16 : 32, icon: statusIcons[status] }))),
|
|
115
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailAfter" })),
|
|
116
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
117
|
+
status !== "todo" && (React__default["default"].createElement(VisuallyHidden.VisuallyHidden, null,
|
|
118
|
+
capitaliseFirstLetter(status),
|
|
119
|
+
":")),
|
|
120
|
+
titleHref ? (React__default["default"].createElement("a", { href: titleHref, "aria-label": ariaLabel, className: "arc-ProgressStepperItem-title", onClick: onClickHandler }, title)) : (React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
|
|
121
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
122
|
+
isExpandable && direction === "vertical" && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
123
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-nodeItem" },
|
|
124
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-keyline" }),
|
|
125
|
+
stepContent && !isStepContentHidden && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
126
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
127
|
+
stepContent))))))));
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
|
|
131
|
+
var ProgressStepper = function (_a) {
|
|
132
|
+
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, props = filterDataAttrs.__rest(_a, ["children", "size", "isFluid", "direction", "isExpandable"]);
|
|
133
|
+
var items = React__default["default"].Children.toArray(children);
|
|
134
|
+
var getStepStatus = function (item) {
|
|
135
|
+
var _a;
|
|
136
|
+
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
137
|
+
};
|
|
138
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepper", {
|
|
139
|
+
"arc-ProgressStepper--vertical": direction === "vertical"
|
|
140
|
+
}) }, filterDataAttrs.filterDataAttrs(props)), items.map(function (item, index) {
|
|
141
|
+
var currentPosition = index === 0
|
|
142
|
+
? "first"
|
|
143
|
+
: index === React__default["default"].Children.count(children) - 1
|
|
144
|
+
? "last"
|
|
145
|
+
: undefined;
|
|
146
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, { key: "StepperItem-".concat(index) },
|
|
147
|
+
React__default["default"].createElement(ProgressStepperItem, filterDataAttrs.__assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, direction: direction, isExpandable: isExpandable, size: size, position: currentPosition, previousStep: getStepStatus(items[index - 1]) }, filterDataAttrs.filterDataAttrs(item.props)))));
|
|
148
|
+
})));
|
|
149
|
+
};
|
|
150
|
+
ProgressStepper.Item = ProgressStepperItem;
|
|
151
|
+
|
|
152
|
+
exports.ProgressStepper = ProgressStepper;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
type ProgressStatus = "completed" | "current" | "warning" | "error" | "todo";
|
|
3
|
+
declare const ProgressStepperItem: FC<ProgressStepperItemProps>;
|
|
4
|
+
interface ProgressStepperItemProps {
|
|
5
|
+
/**
|
|
6
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* Determine a title for `<ProgressStepper.Item />`
|
|
11
|
+
*/
|
|
12
|
+
titleHref?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Text to override `linkTitle` with additional, more precise information
|
|
15
|
+
* specifically for screen reader users.
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Execute a function on title click `<ProgressStepper.Item />`
|
|
20
|
+
*/
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Determine a sub title for `<ProgressStepper.Item />`
|
|
24
|
+
*/
|
|
25
|
+
subTitle?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
28
|
+
*/
|
|
29
|
+
direction?: "horizontal" | "vertical";
|
|
30
|
+
/**
|
|
31
|
+
* Determine the position of the step `<ProgressStepper.Item />`
|
|
32
|
+
*/
|
|
33
|
+
position?: "first" | "middle" | "last";
|
|
34
|
+
/**
|
|
35
|
+
* Determine a status for `<ProgressStepper.Item />`
|
|
36
|
+
*/
|
|
37
|
+
status?: ProgressStatus;
|
|
38
|
+
/**
|
|
39
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
40
|
+
*/
|
|
41
|
+
size?: "small" | "large";
|
|
42
|
+
/**
|
|
43
|
+
* Determine if `<ProgressStepper.Item /> should be Fluid`
|
|
44
|
+
*/
|
|
45
|
+
isFluid?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Determine the context `<ProgressStepper.Item /> should b`
|
|
48
|
+
*/
|
|
49
|
+
previousStep?: ProgressStatus;
|
|
50
|
+
/**
|
|
51
|
+
* Determine if `<ProgressStepper.Item /> should have expandable content`
|
|
52
|
+
*/
|
|
53
|
+
isExpandable?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Determine what content to display in `<ProgressStepper.Item />. To use this option isExpandable must be `true``
|
|
56
|
+
*/
|
|
57
|
+
stepContent?: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Determine if `stepContent` is hidden
|
|
60
|
+
*/
|
|
61
|
+
isStepContentHidden?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
|
|
64
|
+
declare const ProgressStepper: FC<ProgressStepperProps> & {
|
|
65
|
+
Item: typeof ProgressStepperItem;
|
|
66
|
+
};
|
|
67
|
+
interface ProgressStepperProps {
|
|
68
|
+
/**
|
|
69
|
+
* Children of `<ProgressStepper />` should only contain `<ProgressStepper.Item />`
|
|
70
|
+
*/
|
|
71
|
+
children?: ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Determine a direction for `<ProgressStepper.Item />`
|
|
74
|
+
*/
|
|
75
|
+
direction?: "horizontal" | "vertical";
|
|
76
|
+
/**
|
|
77
|
+
* Determine the size for `<ProgressStepper.Item />`
|
|
78
|
+
*/
|
|
79
|
+
size?: "small" | "large";
|
|
80
|
+
/**
|
|
81
|
+
* Determine if `<ProgressStepper.Item />` should be Fluid. Only appliciable for `horizontal direction.`
|
|
82
|
+
*/
|
|
83
|
+
isFluid?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Determine if `<ProgressStepper.Item />` should be able to expand. This only is appliciable when direction is set to vertical
|
|
86
|
+
*/
|
|
87
|
+
isExpandable?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export { ProgressStepper };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
|
+
import React__default, { useContext } from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
4
|
+
import { B as BtIconAlert_2 } from '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
5
|
+
import { I as Icon } from '../_shared/esm/Icon-c1af47bc.js';
|
|
6
|
+
import { C as Context } from '../_shared/esm/Surface-dde51789.js';
|
|
7
|
+
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-93980c9c.js';
|
|
8
|
+
import { V as VisuallyHidden } from '../_shared/esm/VisuallyHidden-b9eebf71.js';
|
|
9
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
10
|
+
|
|
11
|
+
const React$2 = React__default;
|
|
12
|
+
const BtIconTickVariant = props =>
|
|
13
|
+
/*#__PURE__*/ React$2.createElement(
|
|
14
|
+
"svg",
|
|
15
|
+
Object.assign(
|
|
16
|
+
{
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
viewBox: "0 0 32 32"
|
|
19
|
+
},
|
|
20
|
+
props
|
|
21
|
+
),
|
|
22
|
+
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
23
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
24
|
+
d:
|
|
25
|
+
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
26
|
+
fill: "currentColor"
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
30
|
+
|
|
31
|
+
const React$1 = React__default;
|
|
32
|
+
const BtIconCrossAlt = props =>
|
|
33
|
+
/*#__PURE__*/ React$1.createElement(
|
|
34
|
+
"svg",
|
|
35
|
+
Object.assign(
|
|
36
|
+
{
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
viewBox: "0 0 32 32"
|
|
39
|
+
},
|
|
40
|
+
props
|
|
41
|
+
),
|
|
42
|
+
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
43
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
44
|
+
d:
|
|
45
|
+
"M16.70709,16.02l4.48236-4.49365a.4996.4996,0,1,0-.707-.70606l-4.481,4.49225-4.481-4.49225a.4996.4996,0,1,0-.707.70606L15.29584,16.02l-4.48236,4.49365a.4996.4996,0,1,0,.707.70606l4.481-4.49225,4.481,4.49225a.4996.4996,0,1,0,.707-.70606Z",
|
|
46
|
+
fill: "currentColor"
|
|
47
|
+
})
|
|
48
|
+
);
|
|
49
|
+
var BtIconCrossAlt_2 = BtIconCrossAlt;
|
|
50
|
+
|
|
51
|
+
const React = React__default;
|
|
52
|
+
const BtIconCircle = props =>
|
|
53
|
+
/*#__PURE__*/ React.createElement(
|
|
54
|
+
"svg",
|
|
55
|
+
Object.assign(
|
|
56
|
+
{
|
|
57
|
+
viewBox: "0 0 32 32",
|
|
58
|
+
fill: "none",
|
|
59
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
60
|
+
},
|
|
61
|
+
props
|
|
62
|
+
),
|
|
63
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
64
|
+
fillRule: "evenodd",
|
|
65
|
+
clipRule: "evenodd",
|
|
66
|
+
d:
|
|
67
|
+
"M9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9C12.13 9 9 12.13 9 16ZM16 7C11.03 7 7 11.03 7 16C7 20.97 11.03 25 16 25C20.97 25 25 20.97 25 16C25 11.03 20.97 7 16 7Z",
|
|
68
|
+
fill: "currentColor"
|
|
69
|
+
})
|
|
70
|
+
);
|
|
71
|
+
var BtIconCircle_2 = BtIconCircle;
|
|
72
|
+
|
|
73
|
+
var ProgressStepperItem = function (_a) {
|
|
74
|
+
var _b, _c;
|
|
75
|
+
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _d = _a.direction, direction = _d === void 0 ? "horizontal" : _d, _e = _a.status, status = _e === void 0 ? "todo" : _e, _f = _a.size, size = _f === void 0 ? "large" : _f, _g = _a.position, position = _g === void 0 ? "middle" : _g, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, isExpandable = _a.isExpandable, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "position", "isFluid", "ariaLabel", "onClick", "previousStep", "isExpandable", "stepContent", "isStepContentHidden"]);
|
|
76
|
+
var surface = useContext(Context).surface;
|
|
77
|
+
var statusIcons = {
|
|
78
|
+
completed: BtIconTickVariant_2,
|
|
79
|
+
current: BtIconCircle_2,
|
|
80
|
+
warning: BtIconAlert_2,
|
|
81
|
+
error: BtIconCrossAlt_2
|
|
82
|
+
};
|
|
83
|
+
var onClickHandler = function (event) {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
onClick && onClick();
|
|
86
|
+
};
|
|
87
|
+
var capitaliseFirstLetter = function (word) {
|
|
88
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
89
|
+
};
|
|
90
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", (_b = {
|
|
91
|
+
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
92
|
+
"arc-ProgressStepperItem--isFluid": isFluid,
|
|
93
|
+
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
94
|
+
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
95
|
+
},
|
|
96
|
+
_b["arc-ProgressStepperItem--".concat(status)] = status !== "todo",
|
|
97
|
+
_b["arc-ProgressStepperItem--".concat(size)] = size === "small",
|
|
98
|
+
_b)) }, filterDataAttrs(props)),
|
|
99
|
+
React__default.createElement("div", { className: classNames("arc-ProgressStepperItem-iconSection", (_c = {},
|
|
100
|
+
_c["arc-ProgressStepperItem-iconSection--".concat(position)] = position !== "middle",
|
|
101
|
+
_c)) },
|
|
102
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailBefore" }),
|
|
103
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper" }, statusIcons[status] === undefined ? (React__default.createElement("div", { style: {
|
|
104
|
+
width: size === "small" ? "16px" : "32px",
|
|
105
|
+
height: size === "small" ? "16px" : "32px"
|
|
106
|
+
} })) : (React__default.createElement(Icon, { size: size === "small" ? 16 : 32, icon: statusIcons[status] }))),
|
|
107
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailAfter" })),
|
|
108
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
109
|
+
status !== "todo" && (React__default.createElement(VisuallyHidden, null,
|
|
110
|
+
capitaliseFirstLetter(status),
|
|
111
|
+
":")),
|
|
112
|
+
titleHref ? (React__default.createElement("a", { href: titleHref, "aria-label": ariaLabel, className: "arc-ProgressStepperItem-title", onClick: onClickHandler }, title)) : (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
|
|
113
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
114
|
+
isExpandable && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
|
|
115
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" },
|
|
116
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-keyline" }),
|
|
117
|
+
stepContent && !isStepContentHidden && (React__default.createElement(React__default.Fragment, null,
|
|
118
|
+
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
119
|
+
stepContent))))))));
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
|
|
123
|
+
var ProgressStepper = function (_a) {
|
|
124
|
+
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable"]);
|
|
125
|
+
var items = React__default.Children.toArray(children);
|
|
126
|
+
var getStepStatus = function (item) {
|
|
127
|
+
var _a;
|
|
128
|
+
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
129
|
+
};
|
|
130
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepper", {
|
|
131
|
+
"arc-ProgressStepper--vertical": direction === "vertical"
|
|
132
|
+
}) }, filterDataAttrs(props)), items.map(function (item, index) {
|
|
133
|
+
var currentPosition = index === 0
|
|
134
|
+
? "first"
|
|
135
|
+
: index === React__default.Children.count(children) - 1
|
|
136
|
+
? "last"
|
|
137
|
+
: undefined;
|
|
138
|
+
return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
|
|
139
|
+
React__default.createElement(ProgressStepperItem, __assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, direction: direction, isExpandable: isExpandable, size: size, position: currentPosition, previousStep: getStepStatus(items[index - 1]) }, filterDataAttrs(item.props)))));
|
|
140
|
+
})));
|
|
141
|
+
};
|
|
142
|
+
ProgressStepper.Item = ProgressStepperItem;
|
|
143
|
+
|
|
144
|
+
export { ProgressStepper };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RadioGroup } from "../_shared/cjs/RadioGroup-
|
|
1
|
+
export { RadioGroup } from "../_shared/cjs/RadioGroup-8e17de70";
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RadioGroup = require('../_shared/cjs/RadioGroup-
|
|
5
|
+
var RadioGroup = require('../_shared/cjs/RadioGroup-8e17de70.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
7
|
require('react');
|
|
8
|
-
require('../_shared/cjs/FormControl-
|
|
8
|
+
require('../_shared/cjs/FormControl-78b007b7.js');
|
|
9
9
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
10
10
|
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
11
|
-
require('../_shared/cjs/Surface-
|
|
12
|
-
require('../_shared/cjs/DisclosureMini-
|
|
11
|
+
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
12
|
+
require('../_shared/cjs/DisclosureMini-2a10006e.js');
|
|
13
13
|
require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
14
|
-
require('../_shared/cjs/Text-
|
|
14
|
+
require('../_shared/cjs/Text-555a29a4.js');
|
|
15
15
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
16
16
|
|
|
17
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RadioGroup } from "../_shared/esm/RadioGroup-
|
|
1
|
+
export { RadioGroup } from "../_shared/esm/RadioGroup-65b8c8bf";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { R as RadioGroup } from '../_shared/esm/RadioGroup-
|
|
1
|
+
export { R as RadioGroup } from '../_shared/esm/RadioGroup-65b8c8bf.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../_shared/esm/FormControl-
|
|
4
|
+
import '../_shared/esm/FormControl-2fa7aae5.js';
|
|
5
5
|
import '../_shared/esm/index-2ae58626.js';
|
|
6
6
|
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
7
|
-
import '../_shared/esm/Surface-
|
|
8
|
-
import '../_shared/esm/DisclosureMini-
|
|
7
|
+
import '../_shared/esm/Surface-dde51789.js';
|
|
8
|
+
import '../_shared/esm/DisclosureMini-78a8f392.js';
|
|
9
9
|
import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
10
|
-
import '../_shared/esm/Text-
|
|
10
|
+
import '../_shared/esm/Text-14deb70e.js';
|
|
11
11
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
package/dist/Rule/Rule.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
6
|
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var Surface = require('../_shared/cjs/Surface-
|
|
8
|
+
var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
package/dist/Rule/Rule.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
4
|
+
import { C as Context } from '../_shared/esm/Surface-dde51789.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Rule` to display a horizontal rule.
|
|
@@ -6,9 +6,9 @@ var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
|
6
6
|
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
7
7
|
var React$1 = require('react');
|
|
8
8
|
var debounce = require('../_shared/cjs/debounce-506538c5.js');
|
|
9
|
-
var Icon = require('../_shared/cjs/Icon-
|
|
9
|
+
var Icon = require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
10
10
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
11
|
-
require('../_shared/cjs/Surface-
|
|
11
|
+
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
@@ -2,9 +2,9 @@ import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm
|
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { d as debounce_1 } from '../_shared/esm/debounce-e228705f.js';
|
|
5
|
-
import { I as Icon } from '../_shared/esm/Icon-
|
|
5
|
+
import { I as Icon } from '../_shared/esm/Icon-c1af47bc.js';
|
|
6
6
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
7
|
-
import '../_shared/esm/Surface-
|
|
7
|
+
import '../_shared/esm/Surface-dde51789.js';
|
|
8
8
|
|
|
9
9
|
const React = React__default;
|
|
10
10
|
const BtIconArrowAltUp = props =>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FocusEvent } from "react";
|
|
4
|
-
import { FormControlProps } from "../_shared/cjs/FormControl-
|
|
4
|
+
import { FormControlProps } from "../_shared/cjs/FormControl-78b007b7";
|
|
5
5
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
6
6
|
declare const Select: React.FC<SelectProps>;
|
|
7
7
|
interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "id" | "helperUnderLabel" | "supplementaryInfo"> {
|