@arc-ui/components 11.7.0 → 11.9.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 +10 -89
- package/dist/Alert/Alert.esm.d.ts +1 -1
- package/dist/Alert/Alert.esm.js +3 -82
- package/dist/Badge/Badge.cjs.d.ts +4 -0
- package/dist/Badge/Badge.cjs.js +4 -4
- package/dist/Badge/Badge.esm.d.ts +4 -0
- package/dist/Badge/Badge.esm.js +5 -5
- package/dist/Box/Box.cjs.d.ts +40 -1
- package/dist/Box/Box.cjs.js +25 -6
- package/dist/Box/Box.esm.d.ts +40 -1
- package/dist/Box/Box.esm.js +24 -5
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +2 -2
- package/dist/Button/Button.cjs.d.ts +1 -1
- package/dist/Button/Button.cjs.js +1 -1
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +1 -1
- package/dist/Card/Card.cjs.d.ts +1 -1
- package/dist/Card/Card.cjs.js +2 -2
- package/dist/Card/Card.esm.d.ts +1 -1
- package/dist/Card/Card.esm.js +2 -2
- package/dist/Checkbox/Checkbox.cjs.d.ts +1 -1
- package/dist/Checkbox/Checkbox.cjs.js +4 -4
- package/dist/Checkbox/Checkbox.esm.d.ts +1 -1
- package/dist/Checkbox/Checkbox.esm.js +4 -4
- package/dist/Columns/Columns.cjs.d.ts +1 -1
- package/dist/Columns/Columns.esm.d.ts +1 -1
- package/dist/Curve/Curve.cjs.d.ts +1 -1
- package/dist/Curve/Curve.cjs.js +1 -1
- package/dist/Curve/Curve.esm.d.ts +1 -1
- package/dist/Curve/Curve.esm.js +1 -1
- package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +1 -1
- package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
- package/dist/Disclosure/Disclosure.esm.js +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +2 -2
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
- package/dist/DisclosureMini/DisclosureMini.esm.js +2 -2
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +3 -3
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +3 -3
- package/dist/Heading/Heading.cjs.d.ts +1 -1
- package/dist/Heading/Heading.cjs.js +1 -1
- package/dist/Heading/Heading.esm.d.ts +1 -1
- package/dist/Heading/Heading.esm.js +1 -1
- package/dist/Modal/Modal.cjs.d.ts +31 -9
- package/dist/Modal/Modal.cjs.js +450 -161
- package/dist/Modal/Modal.esm.d.ts +31 -9
- package/dist/Modal/Modal.esm.js +423 -134
- package/dist/Pagination/Pagination.cjs.js +4 -4
- package/dist/Pagination/Pagination.esm.js +4 -4
- package/dist/PaginationSimple/PaginationSimple.cjs.js +4 -4
- package/dist/PaginationSimple/PaginationSimple.esm.js +4 -4
- package/dist/ProgressBar/ProgressBar.cjs.js +5 -5
- package/dist/ProgressBar/ProgressBar.esm.js +6 -6
- package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +1 -89
- package/dist/ProgressStepper/ProgressStepper.cjs.js +10 -144
- package/dist/ProgressStepper/ProgressStepper.esm.d.ts +1 -89
- package/dist/ProgressStepper/ProgressStepper.esm.js +9 -143
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +4 -4
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.esm.js +4 -4
- package/dist/Select/Select.cjs.d.ts +1 -1
- package/dist/Select/Select.cjs.js +995 -60
- package/dist/Select/Select.esm.d.ts +1 -1
- package/dist/Select/Select.esm.js +948 -32
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +2 -2
- package/dist/SiteFooter/SiteFooter.esm.d.ts +1 -1
- package/dist/SiteFooter/SiteFooter.esm.js +3 -3
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +1 -1
- package/dist/SiteHeader/SiteHeader.cjs.js +3 -3
- package/dist/SiteHeader/SiteHeader.esm.d.ts +1 -1
- package/dist/SiteHeader/SiteHeader.esm.js +3 -3
- package/dist/Switch/Switch.cjs.d.ts +1 -1
- package/dist/Switch/Switch.cjs.js +241 -18
- package/dist/Switch/Switch.esm.d.ts +1 -1
- package/dist/Switch/Switch.esm.js +234 -11
- package/dist/Tabs/Tabs.cjs.d.ts +1 -0
- package/dist/Tabs/Tabs.cjs.js +20 -0
- package/dist/Tabs/Tabs.esm.d.ts +1 -0
- package/dist/Tabs/Tabs.esm.js +12 -0
- package/dist/Tabs/package.json +7 -0
- package/dist/Text/Text.cjs.d.ts +1 -1
- package/dist/Text/Text.cjs.js +1 -1
- package/dist/Text/Text.esm.d.ts +1 -1
- package/dist/Text/Text.esm.js +1 -1
- package/dist/TextArea/TextArea.cjs.d.ts +4 -1
- package/dist/TextArea/TextArea.cjs.js +30 -17
- package/dist/TextArea/TextArea.esm.d.ts +4 -1
- package/dist/TextArea/TextArea.esm.js +30 -17
- package/dist/TextInput/TextInput.cjs.d.ts +1 -1
- package/dist/TextInput/TextInput.cjs.js +4 -4
- package/dist/TextInput/TextInput.esm.d.ts +1 -1
- package/dist/TextInput/TextInput.esm.js +4 -4
- package/dist/Toast/Toast.cjs.d.ts +1 -0
- package/dist/Toast/Toast.cjs.js +23 -0
- package/dist/Toast/Toast.esm.d.ts +1 -0
- package/dist/Toast/Toast.esm.js +15 -0
- package/dist/Toast/package.json +7 -0
- package/dist/Truncate/Truncate.cjs.js +3 -2
- package/dist/Truncate/Truncate.esm.js +3 -2
- package/dist/_shared/cjs/{Breadcrumbs-9f580f69.js → Breadcrumbs-0906dd10.js} +9 -9
- package/dist/_shared/cjs/BtIconTick-42fcc5ec.js +91 -0
- package/dist/_shared/{esm/Button-9c3b0b11.d.ts → cjs/Button-5aaa6776.d.ts} +4 -0
- package/dist/_shared/cjs/{Button-b4d6ccc8.js → Button-5aaa6776.js} +2 -2
- package/dist/_shared/cjs/{Card-f1108bfe.js → Card-fd189ba8.js} +1 -1
- package/dist/_shared/cjs/{Checkbox-c927b62f.js → Checkbox-02c546ca.js} +1 -1
- package/dist/_shared/cjs/Columns-e90798f8.d.ts +1 -1
- package/dist/_shared/cjs/{Curve-b05589d8.d.ts → Curve-781ef633.d.ts} +5 -2
- package/dist/_shared/cjs/{Curve-b05589d8.js → Curve-781ef633.js} +5 -2
- package/dist/_shared/cjs/{DisclosureMini-2a10006e.js → DisclosureMini-52706ee6.js} +1 -1
- package/dist/_shared/cjs/{FormControl-78b007b7.js → FormControl-1e1bf2bf.js} +1 -1
- package/dist/_shared/cjs/{Heading-ed1cb455.d.ts → Heading-e3332dcf.d.ts} +4 -0
- package/dist/_shared/cjs/{Heading-ed1cb455.js → Heading-e3332dcf.js} +2 -2
- package/dist/{MediaCard/MediaCard.cjs.d.ts → _shared/cjs/MediaCard-9483ad5f.d.ts} +3 -4
- package/dist/_shared/cjs/ProgressStepper-f740d7bb.d.ts +89 -0
- package/dist/_shared/cjs/ProgressStepper-f740d7bb.js +149 -0
- package/dist/_shared/{esm/RadioGroup-65b8c8bf.d.ts → cjs/RadioGroup-d7664b0c.d.ts} +1 -1
- package/dist/_shared/cjs/{RadioGroup-8e17de70.js → RadioGroup-d7664b0c.js} +1 -1
- package/dist/_shared/cjs/{SiteFooter-9f7f9c2d.js → SiteFooter-5da774e1.js} +1 -1
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +2 -2
- package/dist/_shared/cjs/{SiteHeader.rehydrator-ccbebde6.js → SiteHeader.rehydrator-acc9d8c4.js} +2 -2
- package/dist/_shared/cjs/Tabs-fda49692.d.ts +75 -0
- package/dist/_shared/cjs/Tabs-fda49692.js +510 -0
- package/dist/_shared/{esm/Text-14deb70e.d.ts → cjs/Text-fa447e2d.d.ts} +4 -0
- package/dist/_shared/cjs/{Text-555a29a4.js → Text-fa447e2d.js} +2 -2
- package/dist/_shared/cjs/{TextInput-7ed03a48.d.ts → TextInput-13050538.d.ts} +3 -1
- package/dist/_shared/{esm/TextInput-62bb7dee.d.ts → cjs/TextInput-f4549637.d.ts} +1 -1
- package/dist/_shared/cjs/{TextInput-b768e346.js → TextInput-f4549637.js} +1 -1
- package/dist/_shared/cjs/Toast-0cb23cae.d.ts +52 -0
- package/dist/_shared/cjs/Toast-0cb23cae.js +739 -0
- package/dist/_shared/cjs/extends-bb8ffacd.js +21 -0
- package/dist/_shared/cjs/index-27b53d49.js +174 -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.module-9b87a34d.js → index-952918c9.js} +141 -33
- package/dist/_shared/cjs/index-96c4d581.js +289 -0
- 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-31fbb076.js → index-ec260f5e.js} +0 -547
- package/dist/_shared/cjs/index-f419cf04.d.ts +1 -1
- package/dist/_shared/cjs/index-fb4b8fda.js +47 -0
- package/dist/_shared/cjs/index.module-bbcc4e18.js +126 -0
- package/dist/_shared/esm/{Breadcrumbs-5dc0afa7.js → Breadcrumbs-dafa8dde.js} +9 -9
- package/dist/_shared/esm/BtIconTick-5fe50cc7.js +83 -0
- package/dist/_shared/{cjs/Button-b4d6ccc8.d.ts → esm/Button-d1dbcf79.d.ts} +4 -0
- package/dist/_shared/esm/{Button-9c3b0b11.js → Button-d1dbcf79.js} +2 -2
- package/dist/_shared/esm/{Card-79b6eae0.js → Card-e62c3ff6.js} +1 -1
- package/dist/_shared/esm/{Checkbox-2d144384.js → Checkbox-d8891198.js} +1 -1
- package/dist/_shared/esm/Columns-8704515b.d.ts +1 -1
- package/dist/_shared/esm/{Curve-3e87b1bc.d.ts → Curve-bbc5589c.d.ts} +5 -2
- package/dist/_shared/esm/{Curve-3e87b1bc.js → Curve-bbc5589c.js} +5 -2
- package/dist/_shared/esm/{DisclosureMini-78a8f392.js → DisclosureMini-9b819941.js} +1 -1
- package/dist/_shared/esm/{FormControl-2fa7aae5.js → FormControl-f18e2f59.js} +1 -1
- package/dist/_shared/esm/{Heading-ee6bec51.d.ts → Heading-0f629151.d.ts} +4 -0
- package/dist/_shared/esm/{Heading-ee6bec51.js → Heading-0f629151.js} +2 -2
- package/dist/{MediaCard/MediaCard.esm.d.ts → _shared/esm/MediaCard-9483ad5f.d.ts} +3 -4
- package/dist/_shared/esm/ProgressStepper-7ab88f4c.d.ts +89 -0
- package/dist/_shared/esm/ProgressStepper-7ab88f4c.js +143 -0
- package/dist/_shared/{cjs/RadioGroup-8e17de70.d.ts → esm/RadioGroup-be16d5d3.d.ts} +1 -1
- package/dist/_shared/esm/{RadioGroup-65b8c8bf.js → RadioGroup-be16d5d3.js} +1 -1
- package/dist/_shared/esm/{SiteFooter-51bdc7df.js → SiteFooter-a182cb18.js} +1 -1
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +2 -2
- package/dist/_shared/esm/{SiteHeader.rehydrator-382d1c03.js → SiteHeader.rehydrator-023b7b76.js} +2 -2
- package/dist/_shared/esm/Tabs-5af0b940.d.ts +75 -0
- package/dist/_shared/esm/Tabs-5af0b940.js +504 -0
- package/dist/_shared/{cjs/Text-555a29a4.d.ts → esm/Text-40457811.d.ts} +4 -0
- package/dist/_shared/esm/{Text-14deb70e.js → Text-40457811.js} +2 -2
- package/dist/_shared/esm/{TextInput-7ed03a48.d.ts → TextInput-13050538.d.ts} +3 -1
- package/dist/_shared/{cjs/TextInput-b768e346.d.ts → esm/TextInput-4424c195.d.ts} +3 -3
- package/dist/_shared/esm/{TextInput-62bb7dee.js → TextInput-4424c195.js} +1 -1
- package/dist/_shared/esm/Toast-43795e91.d.ts +52 -0
- package/dist/_shared/esm/Toast-43795e91.js +733 -0
- package/dist/_shared/esm/extends-4575346e.js +19 -0
- package/dist/_shared/esm/{index.module-216016b5.js → index-22aad354.js} +138 -29
- package/dist/_shared/esm/{index-4fa635bd.js → index-369dce7f.js} +2 -541
- 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-8000d9e3.js +168 -0
- package/dist/_shared/esm/index-94ecc5f8.js +280 -0
- package/dist/_shared/esm/index-bed18a88.js +26 -0
- 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-5ed90b21.js +122 -0
- package/dist/index.es.js +5036 -1358
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5358 -1668
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Badge/Badge.d.ts +4 -0
- package/dist/types/components/Button/Button.d.ts +4 -0
- package/dist/types/components/Columns/Columns.d.ts +1 -1
- package/dist/types/components/Columns/index.d.ts +1 -1
- package/dist/types/components/Curve/Curve.d.ts +5 -2
- package/dist/types/components/Heading/Heading.d.ts +4 -0
- package/dist/types/components/Modal/Modal.d.ts +31 -9
- package/dist/types/components/Tabs/Tab/Tab.d.ts +22 -0
- package/dist/types/components/Tabs/Tab/index.d.ts +1 -0
- package/dist/types/components/Tabs/TabContent/TabContent.d.ts +12 -0
- package/dist/types/components/Tabs/TabContent/index.d.ts +1 -0
- package/dist/types/components/Tabs/Tabs.d.ts +27 -0
- package/dist/types/components/Tabs/TabsList/TabsList.d.ts +20 -0
- package/dist/types/components/Tabs/TabsList/index.d.ts +1 -0
- package/dist/types/components/Tabs/index.d.ts +1 -0
- package/dist/types/components/Text/Text.d.ts +4 -0
- package/dist/types/components/TextArea/TextArea.d.ts +3 -0
- package/dist/types/components/TextInput/TextInput.d.ts +2 -0
- package/dist/types/components/Toast/Toast.d.ts +14 -0
- package/dist/types/components/Toast/ToastNotification.d.ts +39 -0
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +18 -6
- package/dist/types/styles.d.ts +3 -2
- package/package.json +8 -6
- package/dist/MediaCard/MediaCard.cjs.js +0 -31
- package/dist/MediaCard/MediaCard.esm.js +0 -23
- package/dist/MediaCard/package.json +0 -7
- package/dist/_shared/cjs/Box-ebe2b7be.d.ts +0 -39
- package/dist/_shared/cjs/Box-ebe2b7be.js +0 -30
- package/dist/_shared/cjs/index.module-5ea728f4.js +0 -23
- package/dist/_shared/esm/Box-06d99d8a.d.ts +0 -39
- package/dist/_shared/esm/Box-06d99d8a.js +0 -24
- package/dist/_shared/esm/index.module-88179159.js +0 -21
- package/dist/types/components/Modal/Modal.stories-wip.d.ts +0 -9
- /package/dist/_shared/cjs/{Breadcrumbs-9f580f69.d.ts → Breadcrumbs-0906dd10.d.ts} +0 -0
- /package/dist/_shared/cjs/{Card-f1108bfe.d.ts → Card-fd189ba8.d.ts} +0 -0
- /package/dist/_shared/cjs/{Checkbox-c927b62f.d.ts → Checkbox-02c546ca.d.ts} +0 -0
- /package/dist/_shared/cjs/{DisclosureMini-2a10006e.d.ts → DisclosureMini-52706ee6.d.ts} +0 -0
- /package/dist/_shared/cjs/{FormControl-78b007b7.d.ts → FormControl-1e1bf2bf.d.ts} +0 -0
- /package/dist/_shared/cjs/{SiteFooter-9f7f9c2d.d.ts → SiteFooter-5da774e1.d.ts} +0 -0
- /package/dist/_shared/cjs/{SiteHeader.rehydrator-ccbebde6.d.ts → SiteHeader.rehydrator-acc9d8c4.d.ts} +0 -0
- /package/dist/_shared/esm/{Breadcrumbs-5dc0afa7.d.ts → Breadcrumbs-dafa8dde.d.ts} +0 -0
- /package/dist/_shared/esm/{Card-79b6eae0.d.ts → Card-e62c3ff6.d.ts} +0 -0
- /package/dist/_shared/esm/{Checkbox-2d144384.d.ts → Checkbox-d8891198.d.ts} +0 -0
- /package/dist/_shared/esm/{DisclosureMini-78a8f392.d.ts → DisclosureMini-9b819941.d.ts} +0 -0
- /package/dist/_shared/esm/{FormControl-2fa7aae5.d.ts → FormControl-f18e2f59.d.ts} +0 -0
- /package/dist/_shared/esm/{SiteFooter-51bdc7df.d.ts → SiteFooter-a182cb18.d.ts} +0 -0
- /package/dist/_shared/esm/{SiteHeader.rehydrator-382d1c03.d.ts → SiteHeader.rehydrator-023b7b76.d.ts} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { T as Toast } from '../_shared/esm/Toast-43795e91.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/extends-4575346e.js';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
import '../_shared/esm/index-22aad354.js';
|
|
7
|
+
import '../_shared/esm/index-8000d9e3.js';
|
|
8
|
+
import '../_shared/esm/index-94ecc5f8.js';
|
|
9
|
+
import '../_shared/esm/index-2ae58626.js';
|
|
10
|
+
import '../_shared/esm/BtIconCrossAlt2Px-a6a9f431.js';
|
|
11
|
+
import '../_shared/esm/BtIconTick-5fe50cc7.js';
|
|
12
|
+
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
13
|
+
import '../_shared/esm/Icon-c1af47bc.js';
|
|
14
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
15
|
+
import '../_shared/esm/Surface-dde51789.js';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -10,8 +11,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
10
11
|
|
|
11
12
|
/** Use `Truncate` component to shorten text with an ellipsis. Add a `title` attribute to the truncated element so the full text remains accessible. */
|
|
12
13
|
var Truncate = function (_a) {
|
|
13
|
-
var _b = _a.maxWidth, maxWidth = _b === void 0 ? 100 : _b, title = _a.title, children = _a.children;
|
|
14
|
-
return (React__default["default"].createElement("div", { className: "arc-Truncate", style: { maxWidth: "".concat(maxWidth, "%") }, title: title }, children));
|
|
14
|
+
var _b = _a.maxWidth, maxWidth = _b === void 0 ? 100 : _b, title = _a.title, children = _a.children, props = filterDataAttrs.__rest(_a, ["maxWidth", "title", "children"]);
|
|
15
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: "arc-Truncate", style: { maxWidth: "".concat(maxWidth, "%") }, title: title }, filterDataAttrs.filterDataAttrs(props)), children));
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
exports.Truncate = Truncate;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
1
2
|
import React__default from 'react';
|
|
2
3
|
|
|
3
4
|
/** Use `Truncate` component to shorten text with an ellipsis. Add a `title` attribute to the truncated element so the full text remains accessible. */
|
|
4
5
|
var Truncate = function (_a) {
|
|
5
|
-
var _b = _a.maxWidth, maxWidth = _b === void 0 ? 100 : _b, title = _a.title, children = _a.children;
|
|
6
|
-
return (React__default.createElement("div", { className: "arc-Truncate", style: { maxWidth: "".concat(maxWidth, "%") }, title: title }, children));
|
|
6
|
+
var _b = _a.maxWidth, maxWidth = _b === void 0 ? 100 : _b, title = _a.title, children = _a.children, props = __rest(_a, ["maxWidth", "title", "children"]);
|
|
7
|
+
return (React__default.createElement("div", __assign({ className: "arc-Truncate", style: { maxWidth: "".concat(maxWidth, "%") }, title: title }, filterDataAttrs(props)), children));
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
export { Truncate };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
var debounce = require('./debounce-506538c5.js');
|
|
5
6
|
var BtIconChevronRight2Px = require('./BtIconChevronRight2Px-a8e40136.js');
|
|
6
7
|
var Icon = require('./Icon-e1dd45eb.js');
|
|
7
|
-
var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
8
8
|
var index = require('./index-45bfb67b.js');
|
|
9
9
|
var handleLinkClick = require('./handle-link-click-17a44cf4.js');
|
|
10
10
|
|
|
@@ -13,8 +13,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
15
|
var BreadcrumbsItem = function (_a) {
|
|
16
|
-
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children;
|
|
17
|
-
return (React__default["default"].createElement("li", { className: "arc-Breadcrumbs-item" },
|
|
16
|
+
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children, props = filterDataAttrs.__rest(_a, ["spacerIconAfter", "spacerIconBefore", "children"]);
|
|
17
|
+
return (React__default["default"].createElement("li", filterDataAttrs.__assign({ className: "arc-Breadcrumbs-item" }, filterDataAttrs.filterDataAttrs(props)),
|
|
18
18
|
spacerIconBefore && (React__default["default"].createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px" },
|
|
19
19
|
React__default["default"].createElement(Icon.Icon, { icon: BtIconChevronRight2Px.BtIconChevronLeft2Px_2 }))),
|
|
20
20
|
children,
|
|
@@ -23,18 +23,18 @@ var BreadcrumbsItem = function (_a) {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
var BreadcrumbsLink = React__default["default"].forwardRef(function (_a, ref) {
|
|
26
|
-
var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children;
|
|
26
|
+
var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children, props = filterDataAttrs.__rest(_a, ["onClick", "href", "isActive", "children"]);
|
|
27
27
|
return (React__default["default"].createElement(React__default["default"].Fragment, null, isActive || href === undefined ? (React__default["default"].createElement("span", filterDataAttrs.__assign({}, (isActive && { "aria-hidden": "true" }), { onClick: onClick, className: index.classNames({
|
|
28
28
|
"arc-Breadcrumbs-text": true,
|
|
29
29
|
"arc-Breadcrumbs-text--active": isActive
|
|
30
|
-
}) }), children)) : (React__default["default"].createElement("a", filterDataAttrs.__assign({}, (onClick && ref
|
|
30
|
+
}) }, filterDataAttrs.filterDataAttrs(props)), children)) : (React__default["default"].createElement("a", filterDataAttrs.__assign({}, (onClick && ref
|
|
31
31
|
? { onClick: onClick }
|
|
32
|
-
: { onClick: handleLinkClick.handleLinkClick({ handler: onClick }) }), { className: "arc-Breadcrumbs-text", ref: ref, href: href }), children))));
|
|
32
|
+
: { onClick: handleLinkClick.handleLinkClick({ handler: onClick }) }), { className: "arc-Breadcrumbs-text", ref: ref, href: href }, filterDataAttrs.filterDataAttrs(props)), children))));
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
/** Use `Breadcrumbs` to add a secondary navigation scheme that reveals the user’s location. Each item should be wrapped with `Breadcrumbs.Item` */
|
|
36
36
|
var Breadcrumbs = function (_a) {
|
|
37
|
-
var isLight = _a.isLight, children = _a.children;
|
|
37
|
+
var isLight = _a.isLight, children = _a.children, props = filterDataAttrs.__rest(_a, ["isLight", "children"]);
|
|
38
38
|
var breadcrumbsList = React.useRef(null);
|
|
39
39
|
var _b = React.useState(false), isCompressed = _b[0], setIsCompressed = _b[1];
|
|
40
40
|
var _c = React.useState(false), showBackTrail = _c[0], setShowBackTrail = _c[1];
|
|
@@ -73,10 +73,10 @@ var Breadcrumbs = function (_a) {
|
|
|
73
73
|
// eslint-disable-next-line
|
|
74
74
|
}, []);
|
|
75
75
|
var items = React__default["default"].Children.toArray(children);
|
|
76
|
-
return (React__default["default"].createElement("nav", { "aria-label": "Breadcrumbs", role: "navigation", className: index.classNames({
|
|
76
|
+
return (React__default["default"].createElement("nav", filterDataAttrs.__assign({ "aria-label": "Breadcrumbs", role: "navigation", className: index.classNames({
|
|
77
77
|
"arc-Breadcrumbs": true,
|
|
78
78
|
"arc-Breadcrumbs--dark": isLight
|
|
79
|
-
}) },
|
|
79
|
+
}) }, filterDataAttrs.filterDataAttrs(props)),
|
|
80
80
|
React__default["default"].createElement("ul", { className: "arc-Breadcrumbs-list", ref: breadcrumbsList }, showBackTrail ? (React__default["default"].createElement(React__default["default"].Fragment, null, items.length < 3 ? (React__default["default"].createElement(Breadcrumbs.Item, { spacerIconBefore: true }, items[0].props.children)) : (React__default["default"].createElement(Breadcrumbs.Item, { spacerIconBefore: true }, items[items.length - 2].props.children)))) : (React__default["default"].createElement(React__default["default"].Fragment, null, isCompressed ? (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
81
81
|
React__default["default"].createElement(Breadcrumbs.Item, { spacerIconAfter: true }, items[0].props.children),
|
|
82
82
|
React__default["default"].createElement(Breadcrumbs.Item, { spacerIconAfter: true },
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React$3 = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
|
+
|
|
7
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$3);
|
|
8
|
+
|
|
9
|
+
const React$2 = React__default["default"];
|
|
10
|
+
const BtIconNotification = props =>
|
|
11
|
+
/*#__PURE__*/ React$2.createElement(
|
|
12
|
+
"svg",
|
|
13
|
+
Object.assign(
|
|
14
|
+
{
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
viewBox: "0 0 32 32"
|
|
17
|
+
},
|
|
18
|
+
props
|
|
19
|
+
),
|
|
20
|
+
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
21
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
22
|
+
d:
|
|
23
|
+
"M24.50977,21.98867,24,21.99014,23.99414,13.975a7.98466,7.98466,0,0,0-6.66046-7.86011,1.46733,1.46733,0,0,0,.15655-.65063,1.48633,1.48633,0,1,0-2.97265,0,1.46732,1.46732,0,0,0,.15826.65369,7.9849,7.9849,0,0,0-6.63971,7.857v8.0166l-.50781-.00293a1.50464,1.50464,0,1,0,0,3.00928h3.45679a1.997,1.997,0,0,0,3.99365,0h9.532a1.50464,1.50464,0,1,0-.001-3.00928ZM16.00391,4.97793a.48633.48633,0,1,1-.48633.48633A.48668.48668,0,0,1,16.00391,4.97793ZM12.98242,25.97158a.998.998,0,0,1-.99469-.97363h1.98841A.99785.99785,0,0,1,12.98242,25.97158ZM24.51074,23.998H7.52832a.50465.50465,0,0,1-.00488-1.00928l1.51269.00293V13.975a6.979,6.979,0,0,1,13.958.00049L23,22.99209l1.51074-.00342a.50464.50464,0,1,1,0,1.00928Z",
|
|
24
|
+
fill: "currentColor"
|
|
25
|
+
})
|
|
26
|
+
);
|
|
27
|
+
var BtIconNotification_2 = BtIconNotification;
|
|
28
|
+
|
|
29
|
+
const React$1 = React__default["default"];
|
|
30
|
+
const BtIconAlertTriangle = props =>
|
|
31
|
+
/*#__PURE__*/ React$1.createElement(
|
|
32
|
+
"svg",
|
|
33
|
+
Object.assign(
|
|
34
|
+
{
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
viewBox: "0 0 32 32"
|
|
37
|
+
},
|
|
38
|
+
props
|
|
39
|
+
),
|
|
40
|
+
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
41
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
42
|
+
fill: "currentColor",
|
|
43
|
+
d: "M16 21.99335A1 1 0 1 0 16 23.99335 1 1 0 1 0 16 21.99335z"
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
46
|
+
d:
|
|
47
|
+
"M16.00488,20.00977a.49972.49972,0,0,0,.5-.5l.002-9.00977a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,20.00977Z",
|
|
48
|
+
fill: "currentColor"
|
|
49
|
+
}),
|
|
50
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
51
|
+
d:
|
|
52
|
+
"M29.83691,26.21,17.041,4.5332A1.15617,1.15617,0,0,0,16.03711,3.959h-.001a1.159,1.159,0,0,0-1.00586.57373L2.23535,26.21045a1.16676,1.16676,0,0,0,1.00488,1.76074H28.83105A1.16843,1.16843,0,0,0,29.83691,26.21Zm-.86035.67725a.164.164,0,0,1-.14551.084H3.24023a.16737.16737,0,0,1-.14355-.25244L15.8916,5.0415a.167.167,0,0,1,.28809,0l12.7959,21.67627A.16531.16531,0,0,1,28.97656,26.88721Z",
|
|
53
|
+
fill: "currentColor"
|
|
54
|
+
})
|
|
55
|
+
);
|
|
56
|
+
var BtIconAlertTriangle_2 = BtIconAlertTriangle;
|
|
57
|
+
|
|
58
|
+
const React = React__default["default"];
|
|
59
|
+
const BtIconTick = props =>
|
|
60
|
+
/*#__PURE__*/ React.createElement(
|
|
61
|
+
"svg",
|
|
62
|
+
Object.assign(
|
|
63
|
+
{
|
|
64
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
65
|
+
viewBox: "0 0 32 32"
|
|
66
|
+
},
|
|
67
|
+
props
|
|
68
|
+
),
|
|
69
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
70
|
+
/*#__PURE__*/ React.createElement(
|
|
71
|
+
"g",
|
|
72
|
+
{
|
|
73
|
+
"data-name": "Icons"
|
|
74
|
+
},
|
|
75
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
76
|
+
d:
|
|
77
|
+
"M16,3A13,13,0,1,1,3,16,12.9741,12.9741,0,0,1,16,3m0-1A14,14,0,1,0,30,16,14.04116,14.04116,0,0,0,16,2Z",
|
|
78
|
+
fill: "currentColor"
|
|
79
|
+
}),
|
|
80
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
81
|
+
d:
|
|
82
|
+
"M13.5,21.2,9.1,16.8a.495.495,0,1,1,.7-.7l3.6,3.6L22,11.1a.495.495,0,1,1,.7.7Z",
|
|
83
|
+
fill: "currentColor"
|
|
84
|
+
})
|
|
85
|
+
)
|
|
86
|
+
);
|
|
87
|
+
var BtIconTick_2 = BtIconTick;
|
|
88
|
+
|
|
89
|
+
exports.BtIconAlertTriangle_2 = BtIconAlertTriangle_2;
|
|
90
|
+
exports.BtIconNotification_2 = BtIconNotification_2;
|
|
91
|
+
exports.BtIconTick_2 = BtIconTick_2;
|
|
@@ -28,6 +28,10 @@ interface ButtonElementProps {
|
|
|
28
28
|
* be inferred. Type 'reset' deliberately excluded.
|
|
29
29
|
*/
|
|
30
30
|
type?: "button" | "submit";
|
|
31
|
+
/**
|
|
32
|
+
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
33
|
+
*/
|
|
34
|
+
form?: string;
|
|
31
35
|
}
|
|
32
36
|
interface LinkElementProps {
|
|
33
37
|
/**
|
|
@@ -18,7 +18,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
18
18
|
*/
|
|
19
19
|
var Button = React.forwardRef(function (_a, ref) {
|
|
20
20
|
var _b;
|
|
21
|
-
var ariaLabel = _a.ariaLabel, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, supportingText = _a.supportingText, target = _a.target, type = _a.type, props = filterDataAttrs.__rest(_a, ["ariaLabel", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "supportingText", "target", "type"]);
|
|
21
|
+
var ariaLabel = _a.ariaLabel, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, supportingText = _a.supportingText, target = _a.target, type = _a.type, form = _a.form, props = filterDataAttrs.__rest(_a, ["ariaLabel", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "supportingText", "target", "type", "form"]);
|
|
22
22
|
var surface = React.useContext(Surface.Context).surface;
|
|
23
23
|
var buttonClasses = index.classNames((_b = {
|
|
24
24
|
"arc-Button": true,
|
|
@@ -43,7 +43,7 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
43
43
|
buttonText,
|
|
44
44
|
buttonIcon)));
|
|
45
45
|
}
|
|
46
|
-
return (React__default["default"].createElement("button", filterDataAttrs.__assign({}, commonProps, { "aria-label": ariaLabel, className: buttonClasses, disabled: isDisabled, type: type }),
|
|
46
|
+
return (React__default["default"].createElement("button", filterDataAttrs.__assign({}, commonProps, { "aria-label": ariaLabel, className: buttonClasses, disabled: isDisabled, type: type, form: form }),
|
|
47
47
|
React__default["default"].createElement("span", { className: "arc-Button-inner" },
|
|
48
48
|
buttonText,
|
|
49
49
|
buttonIcon)));
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var BtIconChevronRightMid = require('./BtIconChevronRightMid-5a38d855.js');
|
|
7
7
|
var Icon = require('./Icon-e1dd45eb.js');
|
|
8
8
|
var Image = require('./Image-0e393cbf.js');
|
|
9
|
-
var Heading = require('./Heading-
|
|
9
|
+
var Heading = require('./Heading-e3332dcf.js');
|
|
10
10
|
var suffixModifier = require('./suffix-modifier-1ee2da04.js');
|
|
11
11
|
var Surface = require('./Surface-b7c51b2b.js');
|
|
12
12
|
var handleLinkClick = require('./handle-link-click-17a44cf4.js');
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var BtIconTickAlt2Px = require('./BtIconTickAlt2Px-bdf06f8c.js');
|
|
6
6
|
var BtIconAlert = require('./BtIconAlert-637db790.js');
|
|
7
7
|
var index = require('./index-45bfb67b.js');
|
|
8
|
-
var FormControl = require('./FormControl-
|
|
8
|
+
var FormControl = require('./FormControl-1e1bf2bf.js');
|
|
9
9
|
var Surface = require('./Surface-b7c51b2b.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { backgroundsBT } from "../../Surface/Surface.cjs";
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
#### Deprecation Notice
|
|
5
|
+
|
|
6
|
+
The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use Curve for any new work, and prepare to update any design that features it to remove it.
|
|
7
|
+
|
|
8
|
+
`Curve` will be removed from Arc in a subsequent release
|
|
6
9
|
*/
|
|
7
10
|
declare const Curve: FC<CurveProps>;
|
|
8
11
|
declare const sizes: readonly ["s", "m", "l"];
|
|
@@ -10,8 +10,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
#### Deprecation Notice
|
|
14
|
+
|
|
15
|
+
The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use Curve for any new work, and prepare to update any design that features it to remove it.
|
|
16
|
+
|
|
17
|
+
`Curve` will be removed from Arc in a subsequent release
|
|
15
18
|
*/
|
|
16
19
|
var Curve = function (_a) {
|
|
17
20
|
var _b;
|
|
@@ -4,7 +4,7 @@ var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
|
4
4
|
var index = require('./index-45bfb67b.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BtIconChevronDown2Px = require('./BtIconChevronDown2Px-8fb4e2eb.js');
|
|
7
|
-
var Text = require('./Text-
|
|
7
|
+
var Text = require('./Text-fa447e2d.js');
|
|
8
8
|
var Surface = require('./Surface-b7c51b2b.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -5,7 +5,7 @@ var index = require('./index-45bfb67b.js');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BtIconAlert = require('./BtIconAlert-637db790.js');
|
|
7
7
|
var Surface = require('./Surface-b7c51b2b.js');
|
|
8
|
-
var DisclosureMini = require('./DisclosureMini-
|
|
8
|
+
var DisclosureMini = require('./DisclosureMini-52706ee6.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -15,13 +15,13 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
15
15
|
*/
|
|
16
16
|
var Heading = function (_a) {
|
|
17
17
|
var _b;
|
|
18
|
-
var _c = _a.align, align = _c === void 0 ? "left" : _c, _d = _a.casing, casing = _d === void 0 ? "auto" : _d, children = _a.children, _e = _a.color, color = _e === void 0 ? "auto" : _e, level = _a.level, size = _a.size, props = filterDataAttrs.__rest(_a, ["align", "casing", "children", "color", "level", "size"]);
|
|
18
|
+
var _c = _a.align, align = _c === void 0 ? "left" : _c, _d = _a.casing, casing = _d === void 0 ? "auto" : _d, children = _a.children, _e = _a.color, color = _e === void 0 ? "auto" : _e, level = _a.level, size = _a.size, id = _a.id, props = filterDataAttrs.__rest(_a, ["align", "casing", "children", "color", "level", "size", "id"]);
|
|
19
19
|
var surface = React.useContext(Surface.Context).surface;
|
|
20
20
|
var Element = "span";
|
|
21
21
|
if (level) {
|
|
22
22
|
Element = "h".concat(level);
|
|
23
23
|
}
|
|
24
|
-
return (React__default["default"].createElement(Element, filterDataAttrs.__assign({ className: index.classNames((_b = {
|
|
24
|
+
return (React__default["default"].createElement(Element, filterDataAttrs.__assign({ id: id, className: index.classNames((_b = {
|
|
25
25
|
"arc-Heading": true
|
|
26
26
|
},
|
|
27
27
|
_b[suffixModifier.suffixModifier("arc-Heading--align", align)] = align && align !== "left",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { loadingOptions } from "
|
|
2
|
+
import { loadingOptions } from "../../Image/Image.cjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { FC } from "react";
|
|
5
|
-
import { BoxProps } from "
|
|
6
|
-
// Update tests for box surface
|
|
5
|
+
import { BoxProps } from "../../Box/Box.cjs";
|
|
7
6
|
/**
|
|
8
7
|
* Use `MediaCard` to contain content and an image about a single subject.
|
|
9
8
|
*/
|
|
@@ -58,4 +57,4 @@ interface MediaCardProps {
|
|
|
58
57
|
*/
|
|
59
58
|
imageSrcSet?: string;
|
|
60
59
|
}
|
|
61
|
-
export { MediaCard };
|
|
60
|
+
export { MediaCard, MediaCardProps };
|
|
@@ -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 { ProgressStepperItem, ProgressStepperItemProps, ProgressStepper, ProgressStepperProps };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
4
|
+
var React$3 = require('react');
|
|
5
|
+
var index = require('./index-45bfb67b.js');
|
|
6
|
+
var BtIconAlert = require('./BtIconAlert-637db790.js');
|
|
7
|
+
var Icon = require('./Icon-e1dd45eb.js');
|
|
8
|
+
var Surface = require('./Surface-b7c51b2b.js');
|
|
9
|
+
var VerticalSpace = require('./VerticalSpace-86f697e7.js');
|
|
10
|
+
var VisuallyHidden = require('./VisuallyHidden-e2c8b291.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$3);
|
|
15
|
+
|
|
16
|
+
const React$2 = React__default["default"];
|
|
17
|
+
const BtIconTickVariant = props =>
|
|
18
|
+
/*#__PURE__*/ React$2.createElement(
|
|
19
|
+
"svg",
|
|
20
|
+
Object.assign(
|
|
21
|
+
{
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
viewBox: "0 0 32 32"
|
|
24
|
+
},
|
|
25
|
+
props
|
|
26
|
+
),
|
|
27
|
+
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
28
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
29
|
+
d:
|
|
30
|
+
"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",
|
|
31
|
+
fill: "currentColor"
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
35
|
+
|
|
36
|
+
const React$1 = React__default["default"];
|
|
37
|
+
const BtIconCrossAlt = props =>
|
|
38
|
+
/*#__PURE__*/ React$1.createElement(
|
|
39
|
+
"svg",
|
|
40
|
+
Object.assign(
|
|
41
|
+
{
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
+
viewBox: "0 0 32 32"
|
|
44
|
+
},
|
|
45
|
+
props
|
|
46
|
+
),
|
|
47
|
+
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
48
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
49
|
+
d:
|
|
50
|
+
"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",
|
|
51
|
+
fill: "currentColor"
|
|
52
|
+
})
|
|
53
|
+
);
|
|
54
|
+
var BtIconCrossAlt_2 = BtIconCrossAlt;
|
|
55
|
+
|
|
56
|
+
const React = React__default["default"];
|
|
57
|
+
const BtIconCircle = props =>
|
|
58
|
+
/*#__PURE__*/ React.createElement(
|
|
59
|
+
"svg",
|
|
60
|
+
Object.assign(
|
|
61
|
+
{
|
|
62
|
+
viewBox: "0 0 32 32",
|
|
63
|
+
fill: "none",
|
|
64
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
65
|
+
},
|
|
66
|
+
props
|
|
67
|
+
),
|
|
68
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
69
|
+
fillRule: "evenodd",
|
|
70
|
+
clipRule: "evenodd",
|
|
71
|
+
d:
|
|
72
|
+
"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",
|
|
73
|
+
fill: "currentColor"
|
|
74
|
+
})
|
|
75
|
+
);
|
|
76
|
+
var BtIconCircle_2 = BtIconCircle;
|
|
77
|
+
|
|
78
|
+
var ProgressStepperItem = function (_a) {
|
|
79
|
+
var _b, _c;
|
|
80
|
+
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"]);
|
|
81
|
+
var surface = React$3.useContext(Surface.Context).surface;
|
|
82
|
+
var statusIcons = {
|
|
83
|
+
completed: BtIconTickVariant_2,
|
|
84
|
+
current: BtIconCircle_2,
|
|
85
|
+
warning: BtIconAlert.BtIconAlert_2,
|
|
86
|
+
error: BtIconCrossAlt_2
|
|
87
|
+
};
|
|
88
|
+
var onClickHandler = function (event) {
|
|
89
|
+
event.preventDefault();
|
|
90
|
+
onClick && onClick();
|
|
91
|
+
};
|
|
92
|
+
var capitaliseFirstLetter = function (word) {
|
|
93
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
94
|
+
};
|
|
95
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepperItem", (_b = {
|
|
96
|
+
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
97
|
+
"arc-ProgressStepperItem--isFluid": isFluid,
|
|
98
|
+
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
99
|
+
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
100
|
+
},
|
|
101
|
+
_b["arc-ProgressStepperItem--".concat(status)] = status !== "todo",
|
|
102
|
+
_b["arc-ProgressStepperItem--".concat(size)] = size === "small",
|
|
103
|
+
_b)) }, filterDataAttrs.filterDataAttrs(props)),
|
|
104
|
+
React__default["default"].createElement("div", { className: index.classNames("arc-ProgressStepperItem-iconSection", (_c = {},
|
|
105
|
+
_c["arc-ProgressStepperItem-iconSection--".concat(position)] = position !== "middle",
|
|
106
|
+
_c)) },
|
|
107
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailBefore" }),
|
|
108
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconWrapper" }, statusIcons[status] === undefined ? (React__default["default"].createElement("div", { style: {
|
|
109
|
+
width: size === "small" ? "16px" : "32px",
|
|
110
|
+
height: size === "small" ? "16px" : "32px"
|
|
111
|
+
} })) : (React__default["default"].createElement(Icon.Icon, { size: size === "small" ? 16 : 32, icon: statusIcons[status] }))),
|
|
112
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailAfter" })),
|
|
113
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
114
|
+
status !== "todo" && (React__default["default"].createElement(VisuallyHidden.VisuallyHidden, null,
|
|
115
|
+
capitaliseFirstLetter(status),
|
|
116
|
+
":")),
|
|
117
|
+
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)),
|
|
118
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
119
|
+
isExpandable && direction === "vertical" && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
120
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-nodeItem" },
|
|
121
|
+
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-keyline" }),
|
|
122
|
+
stepContent && !isStepContentHidden && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
123
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
124
|
+
stepContent))))))));
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** 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. */
|
|
128
|
+
var ProgressStepper = function (_a) {
|
|
129
|
+
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"]);
|
|
130
|
+
var items = React__default["default"].Children.toArray(children);
|
|
131
|
+
var getStepStatus = function (item) {
|
|
132
|
+
var _a;
|
|
133
|
+
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
134
|
+
};
|
|
135
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepper", {
|
|
136
|
+
"arc-ProgressStepper--vertical": direction === "vertical"
|
|
137
|
+
}) }, filterDataAttrs.filterDataAttrs(props)), items.map(function (item, index) {
|
|
138
|
+
var currentPosition = index === 0
|
|
139
|
+
? "first"
|
|
140
|
+
: index === React__default["default"].Children.count(children) - 1
|
|
141
|
+
? "last"
|
|
142
|
+
: undefined;
|
|
143
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, { key: "StepperItem-".concat(index) },
|
|
144
|
+
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)))));
|
|
145
|
+
})));
|
|
146
|
+
};
|
|
147
|
+
ProgressStepper.Item = ProgressStepperItem;
|
|
148
|
+
|
|
149
|
+
exports.ProgressStepper = ProgressStepper;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var FormControl = require('./FormControl-
|
|
5
|
+
var FormControl = require('./FormControl-1e1bf2bf.js');
|
|
6
6
|
var index = require('./index-45bfb67b.js');
|
|
7
7
|
var Surface = require('./Surface-b7c51b2b.js');
|
|
8
8
|
|