@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { HeadingProps } from "../_shared/cjs/Heading-
|
|
2
|
+
import { HeadingProps } from "../_shared/cjs/Heading-e3332dcf";
|
|
3
3
|
import { ArcIcon } from "../_shared/cjs/arc-icon-17594b2f";
|
|
4
4
|
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
5
5
|
declare const Alert: FC<AlertProps>;
|
package/dist/Alert/Alert.cjs.js
CHANGED
|
@@ -3,115 +3,36 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
|
-
var React
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
9
9
|
var Icon = require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
10
|
-
var Heading = require('../_shared/cjs/Heading-
|
|
11
|
-
var Text = require('../_shared/cjs/Text-
|
|
10
|
+
var Heading = require('../_shared/cjs/Heading-e3332dcf.js');
|
|
11
|
+
var Text = require('../_shared/cjs/Text-fa447e2d.js');
|
|
12
12
|
var BtIconCrossAlt2Px = require('../_shared/cjs/BtIconCrossAlt2Px-30dc2688.js');
|
|
13
|
+
var BtIconTick = require('../_shared/cjs/BtIconTick-42fcc5ec.js');
|
|
13
14
|
var BtIconAlert = require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
14
15
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
15
16
|
|
|
16
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
18
|
|
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React
|
|
19
|
-
|
|
20
|
-
const React$2 = React__default["default"];
|
|
21
|
-
const BtIconNotification = props =>
|
|
22
|
-
/*#__PURE__*/ React$2.createElement(
|
|
23
|
-
"svg",
|
|
24
|
-
Object.assign(
|
|
25
|
-
{
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
-
viewBox: "0 0 32 32"
|
|
28
|
-
},
|
|
29
|
-
props
|
|
30
|
-
),
|
|
31
|
-
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
32
|
-
/*#__PURE__*/ React$2.createElement("path", {
|
|
33
|
-
d:
|
|
34
|
-
"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",
|
|
35
|
-
fill: "currentColor"
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
var BtIconNotification_2 = BtIconNotification;
|
|
39
|
-
|
|
40
|
-
const React$1 = React__default["default"];
|
|
41
|
-
const BtIconAlertTriangle = props =>
|
|
42
|
-
/*#__PURE__*/ React$1.createElement(
|
|
43
|
-
"svg",
|
|
44
|
-
Object.assign(
|
|
45
|
-
{
|
|
46
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
-
viewBox: "0 0 32 32"
|
|
48
|
-
},
|
|
49
|
-
props
|
|
50
|
-
),
|
|
51
|
-
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
52
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
53
|
-
fill: "currentColor",
|
|
54
|
-
d: "M16 21.99335A1 1 0 1 0 16 23.99335 1 1 0 1 0 16 21.99335z"
|
|
55
|
-
}),
|
|
56
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
57
|
-
d:
|
|
58
|
-
"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",
|
|
59
|
-
fill: "currentColor"
|
|
60
|
-
}),
|
|
61
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
62
|
-
d:
|
|
63
|
-
"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",
|
|
64
|
-
fill: "currentColor"
|
|
65
|
-
})
|
|
66
|
-
);
|
|
67
|
-
var BtIconAlertTriangle_2 = BtIconAlertTriangle;
|
|
68
|
-
|
|
69
|
-
const React = React__default["default"];
|
|
70
|
-
const BtIconTick = props =>
|
|
71
|
-
/*#__PURE__*/ React.createElement(
|
|
72
|
-
"svg",
|
|
73
|
-
Object.assign(
|
|
74
|
-
{
|
|
75
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
76
|
-
viewBox: "0 0 32 32"
|
|
77
|
-
},
|
|
78
|
-
props
|
|
79
|
-
),
|
|
80
|
-
/*#__PURE__*/ React.createElement("defs", null),
|
|
81
|
-
/*#__PURE__*/ React.createElement(
|
|
82
|
-
"g",
|
|
83
|
-
{
|
|
84
|
-
"data-name": "Icons"
|
|
85
|
-
},
|
|
86
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
87
|
-
d:
|
|
88
|
-
"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",
|
|
89
|
-
fill: "currentColor"
|
|
90
|
-
}),
|
|
91
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
92
|
-
d:
|
|
93
|
-
"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",
|
|
94
|
-
fill: "currentColor"
|
|
95
|
-
})
|
|
96
|
-
)
|
|
97
|
-
);
|
|
98
|
-
var BtIconTick_2 = BtIconTick;
|
|
19
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
99
20
|
|
|
100
21
|
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
101
22
|
var Alert = function (_a) {
|
|
102
23
|
var _b;
|
|
103
24
|
var heading = _a.heading, description = _a.description, link = _a.link, linkText = _a.linkText, linkAriaLabel = _a.linkAriaLabel, type = _a.type, _c = _a.status, status = _c === void 0 ? "general" : _c, isDismissable = _a.isDismissable, headingLevel = _a.headingLevel, onDismiss = _a.onDismiss, onLinkClick = _a.onLinkClick, icon = _a.icon, props = filterDataAttrs.__rest(_a, ["heading", "description", "link", "linkText", "linkAriaLabel", "type", "status", "isDismissable", "headingLevel", "onDismiss", "onLinkClick", "icon"]);
|
|
104
|
-
var surface = React
|
|
105
|
-
var _d = React
|
|
25
|
+
var surface = React.useContext(Surface.Context).surface;
|
|
26
|
+
var _d = React.useState(false), isDismissed = _d[0], setIsDismissed = _d[1];
|
|
106
27
|
var onDismissHandler = function () {
|
|
107
28
|
setIsDismissed(true);
|
|
108
29
|
onDismiss && onDismiss();
|
|
109
30
|
};
|
|
110
31
|
var statusIcons = {
|
|
111
|
-
general: BtIconNotification_2,
|
|
32
|
+
general: BtIconTick.BtIconNotification_2,
|
|
112
33
|
error: BtIconAlert.BtIconAlert_2,
|
|
113
|
-
warning: BtIconAlertTriangle_2,
|
|
114
|
-
success: BtIconTick_2
|
|
34
|
+
warning: BtIconTick.BtIconAlertTriangle_2,
|
|
35
|
+
success: BtIconTick.BtIconTick_2
|
|
115
36
|
};
|
|
116
37
|
var handleLinkClick = function (event) {
|
|
117
38
|
event.preventDefault();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { HeadingProps } from "../_shared/esm/Heading-
|
|
2
|
+
import { HeadingProps } from "../_shared/esm/Heading-0f629151";
|
|
3
3
|
import { ArcIcon } from "../_shared/esm/arc-icon-17594b2f";
|
|
4
4
|
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
5
5
|
declare const Alert: FC<AlertProps>;
|
package/dist/Alert/Alert.esm.js
CHANGED
|
@@ -3,92 +3,13 @@ import React__default, { useContext, useState } from 'react';
|
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import { C as Context } from '../_shared/esm/Surface-dde51789.js';
|
|
5
5
|
import { I as Icon } from '../_shared/esm/Icon-c1af47bc.js';
|
|
6
|
-
import { H as Heading } from '../_shared/esm/Heading-
|
|
7
|
-
import { T as Text } from '../_shared/esm/Text-
|
|
6
|
+
import { H as Heading } from '../_shared/esm/Heading-0f629151.js';
|
|
7
|
+
import { T as Text } from '../_shared/esm/Text-40457811.js';
|
|
8
8
|
import { B as BtIconCrossAlt2Px_2 } from '../_shared/esm/BtIconCrossAlt2Px-a6a9f431.js';
|
|
9
|
+
import { B as BtIconNotification_2, a as BtIconAlertTriangle_2, b as BtIconTick_2 } from '../_shared/esm/BtIconTick-5fe50cc7.js';
|
|
9
10
|
import { B as BtIconAlert_2 } from '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
10
11
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
11
12
|
|
|
12
|
-
const React$2 = React__default;
|
|
13
|
-
const BtIconNotification = props =>
|
|
14
|
-
/*#__PURE__*/ React$2.createElement(
|
|
15
|
-
"svg",
|
|
16
|
-
Object.assign(
|
|
17
|
-
{
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
-
viewBox: "0 0 32 32"
|
|
20
|
-
},
|
|
21
|
-
props
|
|
22
|
-
),
|
|
23
|
-
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
24
|
-
/*#__PURE__*/ React$2.createElement("path", {
|
|
25
|
-
d:
|
|
26
|
-
"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",
|
|
27
|
-
fill: "currentColor"
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
var BtIconNotification_2 = BtIconNotification;
|
|
31
|
-
|
|
32
|
-
const React$1 = React__default;
|
|
33
|
-
const BtIconAlertTriangle = props =>
|
|
34
|
-
/*#__PURE__*/ React$1.createElement(
|
|
35
|
-
"svg",
|
|
36
|
-
Object.assign(
|
|
37
|
-
{
|
|
38
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
-
viewBox: "0 0 32 32"
|
|
40
|
-
},
|
|
41
|
-
props
|
|
42
|
-
),
|
|
43
|
-
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
44
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
45
|
-
fill: "currentColor",
|
|
46
|
-
d: "M16 21.99335A1 1 0 1 0 16 23.99335 1 1 0 1 0 16 21.99335z"
|
|
47
|
-
}),
|
|
48
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
49
|
-
d:
|
|
50
|
-
"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",
|
|
51
|
-
fill: "currentColor"
|
|
52
|
-
}),
|
|
53
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
54
|
-
d:
|
|
55
|
-
"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",
|
|
56
|
-
fill: "currentColor"
|
|
57
|
-
})
|
|
58
|
-
);
|
|
59
|
-
var BtIconAlertTriangle_2 = BtIconAlertTriangle;
|
|
60
|
-
|
|
61
|
-
const React = React__default;
|
|
62
|
-
const BtIconTick = props =>
|
|
63
|
-
/*#__PURE__*/ React.createElement(
|
|
64
|
-
"svg",
|
|
65
|
-
Object.assign(
|
|
66
|
-
{
|
|
67
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
-
viewBox: "0 0 32 32"
|
|
69
|
-
},
|
|
70
|
-
props
|
|
71
|
-
),
|
|
72
|
-
/*#__PURE__*/ React.createElement("defs", null),
|
|
73
|
-
/*#__PURE__*/ React.createElement(
|
|
74
|
-
"g",
|
|
75
|
-
{
|
|
76
|
-
"data-name": "Icons"
|
|
77
|
-
},
|
|
78
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
79
|
-
d:
|
|
80
|
-
"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",
|
|
81
|
-
fill: "currentColor"
|
|
82
|
-
}),
|
|
83
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
84
|
-
d:
|
|
85
|
-
"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",
|
|
86
|
-
fill: "currentColor"
|
|
87
|
-
})
|
|
88
|
-
)
|
|
89
|
-
);
|
|
90
|
-
var BtIconTick_2 = BtIconTick;
|
|
91
|
-
|
|
92
13
|
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
93
14
|
var Alert = function (_a) {
|
|
94
15
|
var _b;
|
package/dist/Badge/Badge.cjs.js
CHANGED
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
9
9
|
var suffixModifier = require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
10
|
-
var Text = require('../_shared/cjs/Text-
|
|
10
|
+
var Text = require('../_shared/cjs/Text-fa447e2d.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -16,16 +16,16 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
16
16
|
/** Use `Badge` component to visually display a small amount of information, such as notification counts or status indicators. */
|
|
17
17
|
var Badge = function (_a) {
|
|
18
18
|
var _b, _c;
|
|
19
|
-
var children = _a.children, _d = _a.state, state = _d === void 0 ? "default" : _d, _e = _a.size, size = _e === void 0 ? "default" : _e, _f = _a.fill, fill = _f === void 0 ? "solid" : _f, ariaLabel = _a.ariaLabel;
|
|
19
|
+
var children = _a.children, _d = _a.state, state = _d === void 0 ? "default" : _d, _e = _a.size, size = _e === void 0 ? "default" : _e, _f = _a.fill, fill = _f === void 0 ? "solid" : _f, ariaLabel = _a.ariaLabel, ariaRole = _a.ariaRole, props = filterDataAttrs.__rest(_a, ["children", "state", "size", "fill", "ariaLabel", "ariaRole"]);
|
|
20
20
|
var surface = React.useContext(Surface.Context).surface;
|
|
21
|
-
return (React__default["default"].createElement("div", filterDataAttrs.__assign({
|
|
21
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames((_b = {
|
|
22
22
|
"arc-Badge": true,
|
|
23
23
|
"arc-Badge--onDarkSurface": surface === "dark",
|
|
24
24
|
"arc-Badge--large": size === "large",
|
|
25
25
|
"arc-Badge--outline": fill === "outlined"
|
|
26
26
|
},
|
|
27
27
|
_b[suffixModifier.suffixModifier("arc-Badge--state", state)] = state !== "default",
|
|
28
|
-
_b)),
|
|
28
|
+
_b)) }, (ariaLabel && { "aria-label": ariaLabel }), (ariaRole && { role: ariaRole }), filterDataAttrs.filterDataAttrs(props)),
|
|
29
29
|
React__default["default"].createElement("div", { className: index.classNames((_c = {
|
|
30
30
|
"arc-Badge-text": true
|
|
31
31
|
},
|
package/dist/Badge/Badge.esm.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { a as __assign } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
2
|
import React__default, { useContext } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import { C as Context } from '../_shared/esm/Surface-dde51789.js';
|
|
5
5
|
import { s as suffixModifier } from '../_shared/esm/suffix-modifier-7e640670.js';
|
|
6
|
-
import { T as Text } from '../_shared/esm/Text-
|
|
6
|
+
import { T as Text } from '../_shared/esm/Text-40457811.js';
|
|
7
7
|
|
|
8
8
|
/** Use `Badge` component to visually display a small amount of information, such as notification counts or status indicators. */
|
|
9
9
|
var Badge = function (_a) {
|
|
10
10
|
var _b, _c;
|
|
11
|
-
var children = _a.children, _d = _a.state, state = _d === void 0 ? "default" : _d, _e = _a.size, size = _e === void 0 ? "default" : _e, _f = _a.fill, fill = _f === void 0 ? "solid" : _f, ariaLabel = _a.ariaLabel;
|
|
11
|
+
var children = _a.children, _d = _a.state, state = _d === void 0 ? "default" : _d, _e = _a.size, size = _e === void 0 ? "default" : _e, _f = _a.fill, fill = _f === void 0 ? "solid" : _f, ariaLabel = _a.ariaLabel, ariaRole = _a.ariaRole, props = __rest(_a, ["children", "state", "size", "fill", "ariaLabel", "ariaRole"]);
|
|
12
12
|
var surface = useContext(Context).surface;
|
|
13
|
-
return (React__default.createElement("div", __assign({
|
|
13
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {
|
|
14
14
|
"arc-Badge": true,
|
|
15
15
|
"arc-Badge--onDarkSurface": surface === "dark",
|
|
16
16
|
"arc-Badge--large": size === "large",
|
|
17
17
|
"arc-Badge--outline": fill === "outlined"
|
|
18
18
|
},
|
|
19
19
|
_b[suffixModifier("arc-Badge--state", state)] = state !== "default",
|
|
20
|
-
_b)),
|
|
20
|
+
_b)) }, (ariaLabel && { "aria-label": ariaLabel }), (ariaRole && { role: ariaRole }), filterDataAttrs(props)),
|
|
21
21
|
React__default.createElement("div", { className: classNames((_c = {
|
|
22
22
|
"arc-Badge-text": true
|
|
23
23
|
},
|
package/dist/Box/Box.cjs.d.ts
CHANGED
|
@@ -1 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { SurfaceBackgroundColor, SurfacePadding } from "../_shared/cjs/Surface-b7c51b2b";
|
|
5
|
+
// Do equal height boxes story
|
|
6
|
+
/**
|
|
7
|
+
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
8
|
+
*/
|
|
9
|
+
declare const Box: FC<BoxProps>;
|
|
10
|
+
interface BoxProps {
|
|
11
|
+
/**
|
|
12
|
+
* Contents of the Box.
|
|
13
|
+
*/
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Set Box to fill parent element.
|
|
17
|
+
*/
|
|
18
|
+
isFullHeight?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Add rounded corners to the box.
|
|
21
|
+
*/
|
|
22
|
+
isBorderRadius?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The border width of the box.
|
|
25
|
+
*/
|
|
26
|
+
borderWidth?: "thin" | "medium";
|
|
27
|
+
/**
|
|
28
|
+
* Box shadow for the box.
|
|
29
|
+
*/
|
|
30
|
+
elevationLevel?: "1" | "2";
|
|
31
|
+
/**
|
|
32
|
+
* Padding for the box.
|
|
33
|
+
*/
|
|
34
|
+
padding?: SurfacePadding;
|
|
35
|
+
/**
|
|
36
|
+
* Background color for the box.
|
|
37
|
+
*/
|
|
38
|
+
surface?: SurfaceBackgroundColor;
|
|
39
|
+
}
|
|
40
|
+
export { Box, BoxProps };
|
package/dist/Box/Box.cjs.js
CHANGED
|
@@ -2,12 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('
|
|
7
|
-
require('
|
|
8
|
-
require('../_shared/cjs/
|
|
9
|
-
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
8
|
+
var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
10
9
|
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
// Do equal height boxes story
|
|
15
|
+
/**
|
|
16
|
+
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
17
|
+
*/
|
|
18
|
+
var Box = function (_a) {
|
|
19
|
+
var _b;
|
|
20
|
+
var children = _a.children, borderWidth = _a.borderWidth, elevationLevel = _a.elevationLevel, padding = _a.padding, _c = _a.isFullHeight, isFullHeight = _c === void 0 ? false : _c, _d = _a.isBorderRadius, isBorderRadius = _d === void 0 ? false : _d, _e = _a.surface, surface = _e === void 0 ? "white" : _e, props = filterDataAttrs.__rest(_a, ["children", "borderWidth", "elevationLevel", "padding", "isFullHeight", "isBorderRadius", "surface"]);
|
|
21
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-Box", (_b = {},
|
|
22
|
+
_b["arc-Box--fullHeight"] = isFullHeight,
|
|
23
|
+
_b["arc-Box--borderRadius"] = isBorderRadius,
|
|
24
|
+
_b["arc-Box--borderThin"] = borderWidth === "thin",
|
|
25
|
+
_b["arc-Box--borderMedium"] = borderWidth === "medium",
|
|
26
|
+
_b["arc-Box--elevation1"] = elevationLevel === "1",
|
|
27
|
+
_b["arc-Box--elevation2"] = elevationLevel === "2",
|
|
28
|
+
_b)) }, filterDataAttrs.filterDataAttrs(props)),
|
|
29
|
+
React__default["default"].createElement(Surface.Surface, { padding: padding, background: surface }, children)));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.Box = Box;
|
package/dist/Box/Box.esm.d.ts
CHANGED
|
@@ -1 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { SurfaceBackgroundColor, SurfacePadding } from "../_shared/esm/Surface-dde51789";
|
|
5
|
+
// Do equal height boxes story
|
|
6
|
+
/**
|
|
7
|
+
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
8
|
+
*/
|
|
9
|
+
declare const Box: FC<BoxProps>;
|
|
10
|
+
interface BoxProps {
|
|
11
|
+
/**
|
|
12
|
+
* Contents of the Box.
|
|
13
|
+
*/
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Set Box to fill parent element.
|
|
17
|
+
*/
|
|
18
|
+
isFullHeight?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Add rounded corners to the box.
|
|
21
|
+
*/
|
|
22
|
+
isBorderRadius?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The border width of the box.
|
|
25
|
+
*/
|
|
26
|
+
borderWidth?: "thin" | "medium";
|
|
27
|
+
/**
|
|
28
|
+
* Box shadow for the box.
|
|
29
|
+
*/
|
|
30
|
+
elevationLevel?: "1" | "2";
|
|
31
|
+
/**
|
|
32
|
+
* Padding for the box.
|
|
33
|
+
*/
|
|
34
|
+
padding?: SurfacePadding;
|
|
35
|
+
/**
|
|
36
|
+
* Background color for the box.
|
|
37
|
+
*/
|
|
38
|
+
surface?: SurfaceBackgroundColor;
|
|
39
|
+
}
|
|
40
|
+
export { Box, BoxProps };
|
package/dist/Box/Box.esm.js
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
import '../_shared/esm/
|
|
5
|
-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
4
|
+
import { S as Surface } from '../_shared/esm/Surface-dde51789.js';
|
|
5
|
+
|
|
6
|
+
// Do equal height boxes story
|
|
7
|
+
/**
|
|
8
|
+
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
9
|
+
*/
|
|
10
|
+
var Box = function (_a) {
|
|
11
|
+
var _b;
|
|
12
|
+
var children = _a.children, borderWidth = _a.borderWidth, elevationLevel = _a.elevationLevel, padding = _a.padding, _c = _a.isFullHeight, isFullHeight = _c === void 0 ? false : _c, _d = _a.isBorderRadius, isBorderRadius = _d === void 0 ? false : _d, _e = _a.surface, surface = _e === void 0 ? "white" : _e, props = __rest(_a, ["children", "borderWidth", "elevationLevel", "padding", "isFullHeight", "isBorderRadius", "surface"]);
|
|
13
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-Box", (_b = {},
|
|
14
|
+
_b["arc-Box--fullHeight"] = isFullHeight,
|
|
15
|
+
_b["arc-Box--borderRadius"] = isBorderRadius,
|
|
16
|
+
_b["arc-Box--borderThin"] = borderWidth === "thin",
|
|
17
|
+
_b["arc-Box--borderMedium"] = borderWidth === "medium",
|
|
18
|
+
_b["arc-Box--elevation1"] = elevationLevel === "1",
|
|
19
|
+
_b["arc-Box--elevation2"] = elevationLevel === "2",
|
|
20
|
+
_b)) }, filterDataAttrs(props)),
|
|
21
|
+
React__default.createElement(Surface, { padding: padding, background: surface }, children)));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { Box };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Breadcrumbs } from "../_shared/cjs/Breadcrumbs-
|
|
1
|
+
export { Breadcrumbs } from "../_shared/cjs/Breadcrumbs-0906dd10";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Breadcrumbs = require('../_shared/cjs/Breadcrumbs-
|
|
5
|
+
var Breadcrumbs = require('../_shared/cjs/Breadcrumbs-0906dd10.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
7
|
require('react');
|
|
7
8
|
require('../_shared/cjs/debounce-506538c5.js');
|
|
8
9
|
require('../_shared/cjs/BtIconChevronRight2Px-a8e40136.js');
|
|
9
10
|
require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
10
|
-
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
11
11
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
12
12
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
13
13
|
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Breadcrumbs } from "../_shared/esm/Breadcrumbs-
|
|
1
|
+
export { Breadcrumbs } from "../_shared/esm/Breadcrumbs-dafa8dde";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as Breadcrumbs } from '../_shared/esm/Breadcrumbs-
|
|
1
|
+
export { B as Breadcrumbs } from '../_shared/esm/Breadcrumbs-dafa8dde.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import '../_shared/esm/debounce-e228705f.js';
|
|
4
5
|
import '../_shared/esm/BtIconChevronRight2Px-b8e7b4ad.js';
|
|
5
6
|
import '../_shared/esm/Icon-c1af47bc.js';
|
|
6
|
-
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
7
7
|
import '../_shared/esm/index-2ae58626.js';
|
|
8
8
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
9
9
|
import '../_shared/esm/Surface-dde51789.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Button } from "../_shared/cjs/Button-
|
|
1
|
+
export { Button } from "../_shared/cjs/Button-5aaa6776";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Button = require('../_shared/cjs/Button-
|
|
5
|
+
var Button = require('../_shared/cjs/Button-5aaa6776.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
7
|
require('../_shared/cjs/BtIconChevronLeftMid-df952a3e.js');
|
|
8
8
|
require('react');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Button } from "../_shared/esm/Button-
|
|
1
|
+
export { Button } from "../_shared/esm/Button-d1dbcf79";
|
package/dist/Card/Card.cjs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Card } from "../_shared/cjs/Card-
|
|
1
|
+
export { Card } from "../_shared/cjs/Card-fd189ba8";
|
package/dist/Card/Card.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Card = require('../_shared/cjs/Card-
|
|
5
|
+
var Card = require('../_shared/cjs/Card-fd189ba8.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
7
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
require('react');
|
|
@@ -11,7 +11,7 @@ require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
|
11
11
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
12
12
|
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
13
13
|
require('../_shared/cjs/Image-0e393cbf.js');
|
|
14
|
-
require('../_shared/cjs/Heading-
|
|
14
|
+
require('../_shared/cjs/Heading-e3332dcf.js');
|
|
15
15
|
require('../_shared/cjs/handle-link-click-17a44cf4.js');
|
|
16
16
|
|
|
17
17
|
|
package/dist/Card/Card.esm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Card } from "../_shared/esm/Card-
|
|
1
|
+
export { Card } from "../_shared/esm/Card-e62c3ff6";
|
package/dist/Card/Card.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Card } from '../_shared/esm/Card-
|
|
1
|
+
export { C as Card } from '../_shared/esm/Card-e62c3ff6.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
3
|
import '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import 'react';
|
|
@@ -7,5 +7,5 @@ import '../_shared/esm/Icon-c1af47bc.js';
|
|
|
7
7
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
8
8
|
import '../_shared/esm/Surface-dde51789.js';
|
|
9
9
|
import '../_shared/esm/Image-3ed3863c.js';
|
|
10
|
-
import '../_shared/esm/Heading-
|
|
10
|
+
import '../_shared/esm/Heading-0f629151.js';
|
|
11
11
|
import '../_shared/esm/handle-link-click-f64f55a2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Checkbox } from "../_shared/cjs/Checkbox-
|
|
1
|
+
export { Checkbox } from "../_shared/cjs/Checkbox-02c546ca";
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Checkbox = require('../_shared/cjs/Checkbox-
|
|
5
|
+
var Checkbox = require('../_shared/cjs/Checkbox-02c546ca.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/BtIconTickAlt2Px-bdf06f8c.js');
|
|
9
9
|
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
10
10
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
11
|
-
require('../_shared/cjs/FormControl-
|
|
11
|
+
require('../_shared/cjs/FormControl-1e1bf2bf.js');
|
|
12
12
|
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
13
|
-
require('../_shared/cjs/DisclosureMini-
|
|
13
|
+
require('../_shared/cjs/DisclosureMini-52706ee6.js');
|
|
14
14
|
require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
15
|
-
require('../_shared/cjs/Text-
|
|
15
|
+
require('../_shared/cjs/Text-fa447e2d.js');
|
|
16
16
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
17
17
|
|
|
18
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Checkbox } from "../_shared/esm/Checkbox-
|
|
1
|
+
export { Checkbox } from "../_shared/esm/Checkbox-d8891198";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { C as Checkbox } from '../_shared/esm/Checkbox-
|
|
1
|
+
export { C as Checkbox } from '../_shared/esm/Checkbox-d8891198.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/BtIconTickAlt2Px-da97e9ae.js';
|
|
5
5
|
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
6
6
|
import '../_shared/esm/index-2ae58626.js';
|
|
7
|
-
import '../_shared/esm/FormControl-
|
|
7
|
+
import '../_shared/esm/FormControl-f18e2f59.js';
|
|
8
8
|
import '../_shared/esm/Surface-dde51789.js';
|
|
9
|
-
import '../_shared/esm/DisclosureMini-
|
|
9
|
+
import '../_shared/esm/DisclosureMini-9b819941.js';
|
|
10
10
|
import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
11
|
-
import '../_shared/esm/Text-
|
|
11
|
+
import '../_shared/esm/Text-40457811.js';
|
|
12
12
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Columns } from "../_shared/cjs/Columns-e90798f8";
|
|
1
|
+
export { Columns, Span } from "../_shared/cjs/Columns-e90798f8";
|