@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,20 +1,205 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
|
+
import React__default, { useCallback, createContext, useMemo, createElement, useContext, useRef, useEffect, useState, forwardRef } from 'react';
|
|
2
3
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $010c2913dbd2fe3d$export$5cae361ad82dce8b } from '../_shared/esm/index.module-
|
|
4
|
+
import { _ as _extends } from '../_shared/esm/extends-4575346e.js';
|
|
5
|
+
import { a as $9f79659886946c16$export$e5c5a5f917a5871c, $ as $5e63c961fc1ce211$export$8c6ed5c666ac1360, b as $010c2913dbd2fe3d$export$5cae361ad82dce8b } from '../_shared/esm/index.module-5ed90b21.js';
|
|
6
|
+
import 'react-dom';
|
|
5
7
|
import { I as Icon } from '../_shared/esm/Icon-c1af47bc.js';
|
|
6
8
|
import { B as BtIconTickAlt2Px_2 } from '../_shared/esm/BtIconTickAlt2Px-da97e9ae.js';
|
|
7
9
|
import { C as Context } from '../_shared/esm/Surface-dde51789.js';
|
|
8
|
-
import { F as FormControl } from '../_shared/esm/FormControl-
|
|
10
|
+
import { F as FormControl } from '../_shared/esm/FormControl-f18e2f59.js';
|
|
9
11
|
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-93980c9c.js';
|
|
10
|
-
import { T as Text } from '../_shared/esm/Text-
|
|
11
|
-
import 'react-dom';
|
|
12
|
-
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
12
|
+
import { T as Text } from '../_shared/esm/Text-40457811.js';
|
|
13
13
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
14
14
|
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
15
|
-
import '../_shared/esm/DisclosureMini-
|
|
15
|
+
import '../_shared/esm/DisclosureMini-9b819941.js';
|
|
16
16
|
import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
17
17
|
|
|
18
|
+
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
|
|
19
|
+
return function handleEvent(event) {
|
|
20
|
+
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
21
|
+
if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Set a given ref to a given value
|
|
27
|
+
* This utility takes care of different types of refs: callback refs and RefObject(s)
|
|
28
|
+
*/ function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
29
|
+
if (typeof ref === 'function') ref(value);
|
|
30
|
+
else if (ref !== null && ref !== undefined) ref.current = value;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A utility to compose multiple refs together
|
|
34
|
+
* Accepts callback refs and RefObject(s)
|
|
35
|
+
*/ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
36
|
+
return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
|
|
37
|
+
)
|
|
38
|
+
;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A custom hook that composes multiple refs
|
|
42
|
+
* Accepts callback refs and RefObject(s)
|
|
43
|
+
*/ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
44
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
|
+
return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* -------------------------------------------------------------------------------------------------
|
|
49
|
+
* createContextScope
|
|
50
|
+
* -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
|
|
51
|
+
let defaultContexts = [];
|
|
52
|
+
/* -----------------------------------------------------------------------------------------------
|
|
53
|
+
* createContext
|
|
54
|
+
* ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
55
|
+
const BaseContext = /*#__PURE__*/ createContext(defaultContext);
|
|
56
|
+
const index = defaultContexts.length;
|
|
57
|
+
defaultContexts = [
|
|
58
|
+
...defaultContexts,
|
|
59
|
+
defaultContext
|
|
60
|
+
];
|
|
61
|
+
function Provider(props) {
|
|
62
|
+
const { scope: scope , children: children , ...context } = props;
|
|
63
|
+
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change
|
|
64
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
|
+
const value = useMemo(()=>context
|
|
66
|
+
, Object.values(context));
|
|
67
|
+
return /*#__PURE__*/ createElement(Context.Provider, {
|
|
68
|
+
value: value
|
|
69
|
+
}, children);
|
|
70
|
+
}
|
|
71
|
+
function useContext$1(consumerName, scope) {
|
|
72
|
+
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
|
|
73
|
+
const context = useContext(Context);
|
|
74
|
+
if (context) return context;
|
|
75
|
+
if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.
|
|
76
|
+
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
77
|
+
}
|
|
78
|
+
Provider.displayName = rootComponentName + 'Provider';
|
|
79
|
+
return [
|
|
80
|
+
Provider,
|
|
81
|
+
useContext$1
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
/* -----------------------------------------------------------------------------------------------
|
|
85
|
+
* createScope
|
|
86
|
+
* ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{
|
|
87
|
+
const scopeContexts = defaultContexts.map((defaultContext)=>{
|
|
88
|
+
return /*#__PURE__*/ createContext(defaultContext);
|
|
89
|
+
});
|
|
90
|
+
return function useScope(scope) {
|
|
91
|
+
const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
|
|
92
|
+
return useMemo(()=>({
|
|
93
|
+
[`__scope${scopeName}`]: {
|
|
94
|
+
...scope,
|
|
95
|
+
[scopeName]: contexts
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
, [
|
|
99
|
+
scope,
|
|
100
|
+
contexts
|
|
101
|
+
]);
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
createScope.scopeName = scopeName;
|
|
105
|
+
return [
|
|
106
|
+
$c512c27ab02ef895$export$fd42f52fd3ae1109,
|
|
107
|
+
$c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
/* -------------------------------------------------------------------------------------------------
|
|
111
|
+
* composeContextScopes
|
|
112
|
+
* -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
113
|
+
const baseScope = scopes[0];
|
|
114
|
+
if (scopes.length === 1) return baseScope;
|
|
115
|
+
const createScope1 = ()=>{
|
|
116
|
+
const scopeHooks = scopes.map((createScope)=>({
|
|
117
|
+
useScope: createScope(),
|
|
118
|
+
scopeName: createScope.scopeName
|
|
119
|
+
})
|
|
120
|
+
);
|
|
121
|
+
return function useComposedScopes(overrideScopes) {
|
|
122
|
+
const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{
|
|
123
|
+
// We are calling a hook inside a callback which React warns against to avoid inconsistent
|
|
124
|
+
// renders, however, scoping doesn't have render side effects so we ignore the rule.
|
|
125
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
126
|
+
const scopeProps = useScope(overrideScopes);
|
|
127
|
+
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
128
|
+
return {
|
|
129
|
+
...nextScopes,
|
|
130
|
+
...currentScope
|
|
131
|
+
};
|
|
132
|
+
}, {});
|
|
133
|
+
return useMemo(()=>({
|
|
134
|
+
[`__scope${baseScope.scopeName}`]: nextScopes1
|
|
135
|
+
})
|
|
136
|
+
, [
|
|
137
|
+
nextScopes1
|
|
138
|
+
]);
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
createScope1.scopeName = baseScope.scopeName;
|
|
142
|
+
return createScope1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
147
|
+
* prop or avoid re-executing effects when passed as a dependency
|
|
148
|
+
*/ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
149
|
+
const callbackRef = useRef(callback);
|
|
150
|
+
useEffect(()=>{
|
|
151
|
+
callbackRef.current = callback;
|
|
152
|
+
}); // https://github.com/facebook/react/issues/19240
|
|
153
|
+
return useMemo(()=>(...args)=>{
|
|
154
|
+
var _callbackRef$current;
|
|
155
|
+
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
|
|
156
|
+
}
|
|
157
|
+
, []);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
|
|
161
|
+
const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
|
|
162
|
+
defaultProp: defaultProp,
|
|
163
|
+
onChange: onChange
|
|
164
|
+
});
|
|
165
|
+
const isControlled = prop !== undefined;
|
|
166
|
+
const value1 = isControlled ? prop : uncontrolledProp;
|
|
167
|
+
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
|
|
168
|
+
const setValue = useCallback((nextValue)=>{
|
|
169
|
+
if (isControlled) {
|
|
170
|
+
const setter = nextValue;
|
|
171
|
+
const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
|
|
172
|
+
if (value !== prop) handleChange(value);
|
|
173
|
+
} else setUncontrolledProp(nextValue);
|
|
174
|
+
}, [
|
|
175
|
+
isControlled,
|
|
176
|
+
prop,
|
|
177
|
+
setUncontrolledProp,
|
|
178
|
+
handleChange
|
|
179
|
+
]);
|
|
180
|
+
return [
|
|
181
|
+
value1,
|
|
182
|
+
setValue
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
|
|
186
|
+
const uncontrolledState = useState(defaultProp);
|
|
187
|
+
const [value] = uncontrolledState;
|
|
188
|
+
const prevValueRef = useRef(value);
|
|
189
|
+
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onChange);
|
|
190
|
+
useEffect(()=>{
|
|
191
|
+
if (prevValueRef.current !== value) {
|
|
192
|
+
handleChange(value);
|
|
193
|
+
prevValueRef.current = value;
|
|
194
|
+
}
|
|
195
|
+
}, [
|
|
196
|
+
value,
|
|
197
|
+
prevValueRef,
|
|
198
|
+
handleChange
|
|
199
|
+
]);
|
|
200
|
+
return uncontrolledState;
|
|
201
|
+
}
|
|
202
|
+
|
|
18
203
|
function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
19
204
|
const [size, setSize] = useState(undefined);
|
|
20
205
|
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
@@ -62,6 +247,44 @@ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
|
62
247
|
return size;
|
|
63
248
|
}
|
|
64
249
|
|
|
250
|
+
const $8927f6f2acc4f386$var$NODES = [
|
|
251
|
+
'a',
|
|
252
|
+
'button',
|
|
253
|
+
'div',
|
|
254
|
+
'h2',
|
|
255
|
+
'h3',
|
|
256
|
+
'img',
|
|
257
|
+
'label',
|
|
258
|
+
'li',
|
|
259
|
+
'nav',
|
|
260
|
+
'ol',
|
|
261
|
+
'p',
|
|
262
|
+
'span',
|
|
263
|
+
'svg',
|
|
264
|
+
'ul'
|
|
265
|
+
]; // Temporary while we await merge of this fix:
|
|
266
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
|
|
267
|
+
// prettier-ignore
|
|
268
|
+
/* -------------------------------------------------------------------------------------------------
|
|
269
|
+
* Primitive
|
|
270
|
+
* -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{
|
|
271
|
+
const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
272
|
+
const { asChild: asChild , ...primitiveProps } = props;
|
|
273
|
+
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
274
|
+
useEffect(()=>{
|
|
275
|
+
window[Symbol.for('radix-ui')] = true;
|
|
276
|
+
}, []);
|
|
277
|
+
return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
|
|
278
|
+
ref: forwardedRef
|
|
279
|
+
}));
|
|
280
|
+
});
|
|
281
|
+
Node.displayName = `Primitive.${node}`;
|
|
282
|
+
return {
|
|
283
|
+
...primitive,
|
|
284
|
+
[node]: Node
|
|
285
|
+
};
|
|
286
|
+
}, {});
|
|
287
|
+
|
|
65
288
|
/* -------------------------------------------------------------------------------------------------
|
|
66
289
|
* Switch
|
|
67
290
|
* -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$SWITCH_NAME = 'Switch';
|
|
@@ -178,16 +401,16 @@ const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07b
|
|
|
178
401
|
|
|
179
402
|
/** Use `Switch` to toggle between checked and not checked. */
|
|
180
403
|
var Switch = function (_a) {
|
|
181
|
-
var defaultChecked = _a.defaultChecked, onCheckedChange = _a.onCheckedChange, label = _a.label, name = _a.name, onBlur = _a.onBlur, value = _a.value, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, id = _a.id, _c = _a.labelSize, labelSize = _c === void 0 ? "s" : _c, statusText = _a.statusText, _d = _a.hideLabel, hideLabel = _d === void 0 ? false : _d;
|
|
404
|
+
var defaultChecked = _a.defaultChecked, onCheckedChange = _a.onCheckedChange, label = _a.label, name = _a.name, onBlur = _a.onBlur, value = _a.value, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, id = _a.id, _c = _a.labelSize, labelSize = _c === void 0 ? "s" : _c, statusText = _a.statusText, _d = _a.hideLabel, hideLabel = _d === void 0 ? false : _d, props = __rest(_a, ["defaultChecked", "onCheckedChange", "label", "name", "onBlur", "value", "isDisabled", "errorMessage", "id", "labelSize", "statusText", "hideLabel"]);
|
|
182
405
|
var surface = useContext(Context).surface;
|
|
183
406
|
return (React__default.createElement(FormControl, { errorMessage: errorMessage, htmlFor: id, isDisabled: isDisabled, label: hideLabel ? "" : label, labelSize: labelSize, requirementStatus: "not-applicable" },
|
|
184
407
|
!hideLabel && React__default.createElement(VerticalSpace, { size: "8" }),
|
|
185
408
|
React__default.createElement("div", { className: "arc-Switch-container" },
|
|
186
|
-
React__default.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9, { id: id, "aria-label": label, defaultChecked: defaultChecked, name: name, value: value, onBlur: onBlur, onCheckedChange: onCheckedChange, disabled: isDisabled, className: classNames("arc-Switch", {
|
|
409
|
+
React__default.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9, __assign({ id: id, "aria-label": label, defaultChecked: defaultChecked, name: name, value: value, onBlur: onBlur, onCheckedChange: onCheckedChange, disabled: isDisabled, className: classNames("arc-Switch", {
|
|
187
410
|
"arc-Switch--large": labelSize === "l",
|
|
188
411
|
"arc-Switch--isDisabled": isDisabled,
|
|
189
412
|
"arc-Switch--onDarkSurface": surface === "dark"
|
|
190
|
-
}) },
|
|
413
|
+
}) }, filterDataAttrs(props)),
|
|
191
414
|
React__default.createElement("div", { className: "arc-Switch-wrapper" },
|
|
192
415
|
React__default.createElement($6be4966fd9bbc698$export$6521433ed15a34db, { className: "arc-Switch-thumb" },
|
|
193
416
|
React__default.createElement("div", { className: "arc-Switch-thumbIcon" },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from "../_shared/cjs/Tabs-fda49692";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Tabs = require('../_shared/cjs/Tabs-fda49692.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/extends-bb8ffacd.js');
|
|
9
|
+
require('../_shared/cjs/index-952918c9.js');
|
|
10
|
+
require('react-dom');
|
|
11
|
+
require('../_shared/cjs/index-27b53d49.js');
|
|
12
|
+
require('../_shared/cjs/index-fb4b8fda.js');
|
|
13
|
+
require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
14
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
15
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
16
|
+
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.Tabs = Tabs.Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from "../_shared/esm/Tabs-5af0b940";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { T as Tabs } from '../_shared/esm/Tabs-5af0b940.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/extends-4575346e.js';
|
|
5
|
+
import '../_shared/esm/index-22aad354.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
import '../_shared/esm/index-8000d9e3.js';
|
|
8
|
+
import '../_shared/esm/index-bed18a88.js';
|
|
9
|
+
import '../_shared/esm/Icon-c1af47bc.js';
|
|
10
|
+
import '../_shared/esm/index-2ae58626.js';
|
|
11
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
12
|
+
import '../_shared/esm/Surface-dde51789.js';
|
package/dist/Text/Text.cjs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Text } from "../_shared/cjs/Text-
|
|
1
|
+
export { Text } from "../_shared/cjs/Text-fa447e2d";
|
package/dist/Text/Text.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Text = require('../_shared/cjs/Text-
|
|
5
|
+
var Text = require('../_shared/cjs/Text-fa447e2d.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
7
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
require('react');
|
package/dist/Text/Text.esm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Text } from "../_shared/esm/Text-
|
|
1
|
+
export { Text } from "../_shared/esm/Text-40457811";
|
package/dist/Text/Text.esm.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FormControlProps } from "../_shared/cjs/FormControl-
|
|
3
|
+
import { FormControlProps } from "../_shared/cjs/FormControl-1e1bf2bf";
|
|
4
4
|
type EventType = React.ChangeEvent<HTMLTextAreaElement>;
|
|
5
|
+
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
5
6
|
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
6
7
|
interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel"> {
|
|
7
8
|
/**
|
|
8
9
|
* Uncontrolled default value of the TextArea. If the TextArea is controlled
|
|
9
10
|
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
11
|
+
*
|
|
12
|
+
* `defaultValue` is not to be used instead of helper text.
|
|
10
13
|
*/
|
|
11
14
|
defaultValue?: string;
|
|
12
15
|
/**
|
|
@@ -5,46 +5,59 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var index = require('../_shared/cjs/index-45bfb67b.js');
|
|
8
|
-
require('../_shared/cjs/Base-569e4334.js');
|
|
9
|
-
require('../_shared/cjs/Breadcrumbs-9f580f69.js');
|
|
10
8
|
var Surface = require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
11
|
-
require('../_shared/cjs/
|
|
12
|
-
require('../_shared/cjs/
|
|
13
|
-
require('../_shared/cjs/
|
|
9
|
+
require('../_shared/cjs/Heading-e3332dcf.js');
|
|
10
|
+
var Text = require('../_shared/cjs/Text-fa447e2d.js');
|
|
11
|
+
require('../_shared/cjs/Base-569e4334.js');
|
|
12
|
+
require('../_shared/cjs/Breadcrumbs-0906dd10.js');
|
|
13
|
+
require('../_shared/cjs/Button-5aaa6776.js');
|
|
14
|
+
require('../_shared/cjs/Card-fd189ba8.js');
|
|
15
|
+
require('../_shared/cjs/Checkbox-02c546ca.js');
|
|
14
16
|
require('../_shared/cjs/Columns-e90798f8.js');
|
|
15
|
-
require('../_shared/cjs/Heading-ed1cb455.js');
|
|
16
|
-
var FormControl = require('../_shared/cjs/FormControl-78b007b7.js');
|
|
17
17
|
require('../_shared/cjs/Filter-a7574fe7.js');
|
|
18
|
+
var FormControl = require('../_shared/cjs/FormControl-1e1bf2bf.js');
|
|
18
19
|
require('../_shared/cjs/Group-f85dd4c0.js');
|
|
19
20
|
require('../_shared/cjs/Image-0e393cbf.js');
|
|
20
|
-
require('../_shared/cjs/UniversalHeader-da622e1a.js');
|
|
21
21
|
require('../_shared/cjs/Poster-faea1ad3.js');
|
|
22
|
-
require('../_shared/cjs/
|
|
23
|
-
require('../_shared/cjs/
|
|
24
|
-
require('../_shared/cjs/SiteHeader.rehydrator-ccbebde6.js');
|
|
25
|
-
var Text = require('../_shared/cjs/Text-555a29a4.js');
|
|
26
|
-
require('../_shared/cjs/TextInput-b768e346.js');
|
|
22
|
+
require('../_shared/cjs/ProgressStepper-f740d7bb.js');
|
|
23
|
+
require('../_shared/cjs/RadioGroup-d7664b0c.js');
|
|
27
24
|
require('../_shared/cjs/debounce-506538c5.js');
|
|
25
|
+
require('../_shared/cjs/SiteFooter-5da774e1.js');
|
|
26
|
+
require('../_shared/cjs/SiteHeader.rehydrator-acc9d8c4.js');
|
|
27
|
+
require('../_shared/cjs/Tabs-fda49692.js');
|
|
28
|
+
require('../_shared/cjs/TextInput-f4549637.js');
|
|
29
|
+
require('../_shared/cjs/Toast-0cb23cae.js');
|
|
30
|
+
require('../_shared/cjs/UniversalHeader-da622e1a.js');
|
|
31
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
28
32
|
require('../_shared/cjs/BtIconChevronRight2Px-a8e40136.js');
|
|
29
33
|
require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
30
|
-
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
31
34
|
require('../_shared/cjs/handle-link-click-17a44cf4.js');
|
|
32
35
|
require('../_shared/cjs/BtIconChevronLeftMid-df952a3e.js');
|
|
33
36
|
require('../_shared/cjs/BtIconChevronRightMid-5a38d855.js');
|
|
34
37
|
require('../_shared/cjs/BtIconTickAlt2Px-bdf06f8c.js');
|
|
35
38
|
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
36
|
-
require('../_shared/cjs/DisclosureMini-
|
|
39
|
+
require('../_shared/cjs/DisclosureMini-52706ee6.js');
|
|
37
40
|
require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
41
|
+
require('../_shared/cjs/VerticalSpace-86f697e7.js');
|
|
42
|
+
require('../_shared/cjs/VisuallyHidden-e2c8b291.js');
|
|
38
43
|
require('../_shared/cjs/index.es-77def0c9.js');
|
|
39
44
|
require('../_shared/cjs/BrandLogo-8107d59f.js');
|
|
40
|
-
require('../_shared/cjs/Curve-
|
|
45
|
+
require('../_shared/cjs/Curve-781ef633.js');
|
|
41
46
|
require('../_shared/cjs/Section-48aca5f5.js');
|
|
42
|
-
require('../_shared/cjs/
|
|
47
|
+
require('../_shared/cjs/extends-bb8ffacd.js');
|
|
48
|
+
require('../_shared/cjs/index-952918c9.js');
|
|
49
|
+
require('react-dom');
|
|
50
|
+
require('../_shared/cjs/index-27b53d49.js');
|
|
51
|
+
require('../_shared/cjs/index-fb4b8fda.js');
|
|
52
|
+
require('../_shared/cjs/index-96c4d581.js');
|
|
53
|
+
require('../_shared/cjs/BtIconCrossAlt2Px-30dc2688.js');
|
|
54
|
+
require('../_shared/cjs/BtIconTick-42fcc5ec.js');
|
|
43
55
|
|
|
44
56
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
45
57
|
|
|
46
58
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
47
59
|
|
|
60
|
+
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
48
61
|
var TextArea = React.forwardRef(function (_a, ref) {
|
|
49
62
|
var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, props = filterDataAttrs.__rest(_a, ["defaultValue", "errorMessage", "helper", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText"]);
|
|
50
63
|
var surface = React.useContext(Surface.Context).surface;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FormControlProps } from "../_shared/esm/FormControl-
|
|
3
|
+
import { FormControlProps } from "../_shared/esm/FormControl-f18e2f59";
|
|
4
4
|
type EventType = React.ChangeEvent<HTMLTextAreaElement>;
|
|
5
|
+
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
5
6
|
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
6
7
|
interface TextAreaProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "helperUnderLabel"> {
|
|
7
8
|
/**
|
|
8
9
|
* Uncontrolled default value of the TextArea. If the TextArea is controlled
|
|
9
10
|
* via `value`/`onChange`, `defaultValue` will be ignored.
|
|
11
|
+
*
|
|
12
|
+
* `defaultValue` is not to be used instead of helper text.
|
|
10
13
|
*/
|
|
11
14
|
defaultValue?: string;
|
|
12
15
|
/**
|
|
@@ -1,42 +1,55 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
2
2
|
import React__default, { forwardRef, useContext, useRef, useState } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
4
|
-
import '../_shared/esm/Base-6c01e0ec.js';
|
|
5
|
-
import '../_shared/esm/Breadcrumbs-5dc0afa7.js';
|
|
6
4
|
import { C as Context } from '../_shared/esm/Surface-dde51789.js';
|
|
7
|
-
import '../_shared/esm/
|
|
8
|
-
import '../_shared/esm/
|
|
9
|
-
import '../_shared/esm/
|
|
5
|
+
import '../_shared/esm/Heading-0f629151.js';
|
|
6
|
+
import { T as Text } from '../_shared/esm/Text-40457811.js';
|
|
7
|
+
import '../_shared/esm/Base-6c01e0ec.js';
|
|
8
|
+
import '../_shared/esm/Breadcrumbs-dafa8dde.js';
|
|
9
|
+
import '../_shared/esm/Button-d1dbcf79.js';
|
|
10
|
+
import '../_shared/esm/Card-e62c3ff6.js';
|
|
11
|
+
import '../_shared/esm/Checkbox-d8891198.js';
|
|
10
12
|
import '../_shared/esm/Columns-8704515b.js';
|
|
11
|
-
import '../_shared/esm/Heading-ee6bec51.js';
|
|
12
|
-
import { F as FormControl } from '../_shared/esm/FormControl-2fa7aae5.js';
|
|
13
13
|
import '../_shared/esm/Filter-a01aed11.js';
|
|
14
|
+
import { F as FormControl } from '../_shared/esm/FormControl-f18e2f59.js';
|
|
14
15
|
import '../_shared/esm/Group-fb26fd32.js';
|
|
15
16
|
import '../_shared/esm/Image-3ed3863c.js';
|
|
16
|
-
import '../_shared/esm/UniversalHeader-1c5a886d.js';
|
|
17
17
|
import '../_shared/esm/Poster-a83ae770.js';
|
|
18
|
-
import '../_shared/esm/
|
|
19
|
-
import '../_shared/esm/
|
|
20
|
-
import '../_shared/esm/SiteHeader.rehydrator-382d1c03.js';
|
|
21
|
-
import { T as Text } from '../_shared/esm/Text-14deb70e.js';
|
|
22
|
-
import '../_shared/esm/TextInput-62bb7dee.js';
|
|
18
|
+
import '../_shared/esm/ProgressStepper-7ab88f4c.js';
|
|
19
|
+
import '../_shared/esm/RadioGroup-be16d5d3.js';
|
|
23
20
|
import '../_shared/esm/debounce-e228705f.js';
|
|
21
|
+
import '../_shared/esm/SiteFooter-a182cb18.js';
|
|
22
|
+
import '../_shared/esm/SiteHeader.rehydrator-023b7b76.js';
|
|
23
|
+
import '../_shared/esm/Tabs-5af0b940.js';
|
|
24
|
+
import '../_shared/esm/TextInput-4424c195.js';
|
|
25
|
+
import '../_shared/esm/Toast-43795e91.js';
|
|
26
|
+
import '../_shared/esm/UniversalHeader-1c5a886d.js';
|
|
27
|
+
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
24
28
|
import '../_shared/esm/BtIconChevronRight2Px-b8e7b4ad.js';
|
|
25
29
|
import '../_shared/esm/Icon-c1af47bc.js';
|
|
26
|
-
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
27
30
|
import '../_shared/esm/handle-link-click-f64f55a2.js';
|
|
28
31
|
import '../_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js';
|
|
29
32
|
import '../_shared/esm/BtIconChevronRightMid-d9b11761.js';
|
|
30
33
|
import '../_shared/esm/BtIconTickAlt2Px-da97e9ae.js';
|
|
31
34
|
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
32
|
-
import '../_shared/esm/DisclosureMini-
|
|
35
|
+
import '../_shared/esm/DisclosureMini-9b819941.js';
|
|
33
36
|
import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
37
|
+
import '../_shared/esm/VerticalSpace-93980c9c.js';
|
|
38
|
+
import '../_shared/esm/VisuallyHidden-b9eebf71.js';
|
|
34
39
|
import '../_shared/esm/index.es-00cb3bcb.js';
|
|
35
40
|
import '../_shared/esm/BrandLogo-9ec620e8.js';
|
|
36
|
-
import '../_shared/esm/Curve-
|
|
41
|
+
import '../_shared/esm/Curve-bbc5589c.js';
|
|
37
42
|
import '../_shared/esm/Section-b8038d66.js';
|
|
38
|
-
import '../_shared/esm/
|
|
43
|
+
import '../_shared/esm/extends-4575346e.js';
|
|
44
|
+
import '../_shared/esm/index-22aad354.js';
|
|
45
|
+
import 'react-dom';
|
|
46
|
+
import '../_shared/esm/index-8000d9e3.js';
|
|
47
|
+
import '../_shared/esm/index-bed18a88.js';
|
|
48
|
+
import '../_shared/esm/index-94ecc5f8.js';
|
|
49
|
+
import '../_shared/esm/BtIconCrossAlt2Px-a6a9f431.js';
|
|
50
|
+
import '../_shared/esm/BtIconTick-5fe50cc7.js';
|
|
39
51
|
|
|
52
|
+
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
40
53
|
var TextArea = forwardRef(function (_a, ref) {
|
|
41
54
|
var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText"]);
|
|
42
55
|
var surface = useContext(Context).surface;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TextInput } from "../_shared/cjs/TextInput-
|
|
1
|
+
export { TextInput } from "../_shared/cjs/TextInput-13050538";
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var TextInput = require('../_shared/cjs/TextInput-
|
|
5
|
+
var TextInput = require('../_shared/cjs/TextInput-f4549637.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
7
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
require('react');
|
|
9
|
-
require('../_shared/cjs/FormControl-
|
|
9
|
+
require('../_shared/cjs/FormControl-1e1bf2bf.js');
|
|
10
10
|
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
11
11
|
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
12
|
-
require('../_shared/cjs/DisclosureMini-
|
|
12
|
+
require('../_shared/cjs/DisclosureMini-52706ee6.js');
|
|
13
13
|
require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
14
|
-
require('../_shared/cjs/Text-
|
|
14
|
+
require('../_shared/cjs/Text-fa447e2d.js');
|
|
15
15
|
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
16
16
|
require('../_shared/cjs/VisuallyHidden-e2c8b291.js');
|
|
17
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TextInput } from "../_shared/esm/TextInput-
|
|
1
|
+
export { TextInput } from "../_shared/esm/TextInput-13050538";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { T as TextInput } from '../_shared/esm/TextInput-
|
|
1
|
+
export { T as TextInput } from '../_shared/esm/TextInput-4424c195.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-afdb7d32.js';
|
|
3
3
|
import '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../_shared/esm/FormControl-
|
|
5
|
+
import '../_shared/esm/FormControl-f18e2f59.js';
|
|
6
6
|
import '../_shared/esm/BtIconAlert-55a6ed5c.js';
|
|
7
7
|
import '../_shared/esm/Surface-dde51789.js';
|
|
8
|
-
import '../_shared/esm/DisclosureMini-
|
|
8
|
+
import '../_shared/esm/DisclosureMini-9b819941.js';
|
|
9
9
|
import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
10
|
-
import '../_shared/esm/Text-
|
|
10
|
+
import '../_shared/esm/Text-40457811.js';
|
|
11
11
|
import '../_shared/esm/suffix-modifier-7e640670.js';
|
|
12
12
|
import '../_shared/esm/VisuallyHidden-b9eebf71.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toast } from "../_shared/cjs/Toast-0cb23cae";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Toast = require('../_shared/cjs/Toast-0cb23cae.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/extends-bb8ffacd.js');
|
|
9
|
+
require('react-dom');
|
|
10
|
+
require('../_shared/cjs/index-952918c9.js');
|
|
11
|
+
require('../_shared/cjs/index-27b53d49.js');
|
|
12
|
+
require('../_shared/cjs/index-96c4d581.js');
|
|
13
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
14
|
+
require('../_shared/cjs/BtIconCrossAlt2Px-30dc2688.js');
|
|
15
|
+
require('../_shared/cjs/BtIconTick-42fcc5ec.js');
|
|
16
|
+
require('../_shared/cjs/BtIconAlert-637db790.js');
|
|
17
|
+
require('../_shared/cjs/Icon-e1dd45eb.js');
|
|
18
|
+
require('../_shared/cjs/suffix-modifier-1ee2da04.js');
|
|
19
|
+
require('../_shared/cjs/Surface-b7c51b2b.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.Toast = Toast.Toast;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toast } from "../_shared/esm/Toast-43795e91";
|