@arc-ui/components 11.23.0 → 11.24.1
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/Calendar/Calendar.cjs.js +1 -1
- package/dist/Calendar/Calendar.esm.js +1 -1
- package/dist/Card/Card.cjs.js +1 -1
- package/dist/Card/Card.esm.js +1 -1
- package/dist/Clock/Clock.cjs.js +7 -2
- package/dist/Clock/Clock.esm.js +7 -2
- package/dist/Curve/Curve.cjs.js +1 -1
- package/dist/Curve/Curve.esm.js +1 -1
- package/dist/DatePicker/DatePicker.cjs.js +2 -2
- package/dist/DatePicker/DatePicker.esm.js +2 -2
- package/dist/ProgressStepper/ProgressStepper.cjs.js +1 -1
- package/dist/ProgressStepper/ProgressStepper.esm.js +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +2 -1
- package/dist/RadioGroup/RadioGroup.esm.js +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +2 -2
- package/dist/SiteFooter/SiteFooter.esm.js +3 -3
- package/dist/SiteHeader/SiteHeader.cjs.js +1 -1
- package/dist/SiteHeader/SiteHeader.esm.js +1 -1
- package/dist/TextArea/TextArea.cjs.js +9 -9
- package/dist/TextArea/TextArea.esm.js +9 -9
- package/dist/TextInput/TextInput.cjs.js +1 -1
- package/dist/TextInput/TextInput.esm.js +1 -1
- package/dist/_shared/cjs/{Calendar-6ea75d05.js → Calendar-b022545c.js} +2 -2
- package/dist/_shared/cjs/{Card-5b19cabc.js → Card-78a70e63.js} +5 -1
- package/dist/_shared/cjs/{Curve-d038052b.js → Curve-b5117889.js} +1 -1
- package/dist/_shared/cjs/{ProgressStepper-57cfef1e.js → ProgressStepper-491f0286.js} +10 -10
- package/dist/_shared/cjs/{RadioGroup-85eda600.js → RadioGroup-26dc00fc.js} +22 -11
- package/dist/_shared/cjs/{SiteFooter-65b6360c.js → SiteFooter-20d5a9fa.js} +1 -1
- package/dist/_shared/cjs/{SiteHeader.rehydrator-b76b0889.js → SiteHeader.rehydrator-9d8f3dad.js} +5 -1
- package/dist/_shared/cjs/{TextInput-8912dd41.js → TextInput-8d139489.js} +2 -2
- package/dist/_shared/esm/{Calendar-fafaca6b.js → Calendar-ea232839.js} +2 -2
- package/dist/_shared/esm/{Card-7fc6c9b4.js → Card-a4b78406.js} +5 -1
- package/dist/_shared/esm/{Curve-d8679dde.js → Curve-e05b3c3f.js} +1 -1
- package/dist/_shared/esm/{ProgressStepper-6c811282.js → ProgressStepper-7eba3a6a.js} +10 -10
- package/dist/_shared/esm/{RadioGroup-6c8f8454.js → RadioGroup-427652ac.js} +22 -12
- package/dist/_shared/esm/{SiteFooter-38ee1536.js → SiteFooter-86f910b4.js} +1 -1
- package/dist/_shared/esm/{SiteHeader.rehydrator-8ad7651b.js → SiteHeader.rehydrator-2ec02ee7.js} +5 -1
- package/dist/_shared/esm/{TextInput-5ffa05da.js → TextInput-c0388103.js} +2 -2
- package/dist/index.es.js +52 -30
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +52 -30
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Card/Card.d.ts +5 -1
- package/dist/types/components/Clock/Clock.d.ts +7 -2
- package/dist/types/components/Curve/Curve.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +17 -28
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +36 -0
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/RadioGroup/context.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +5 -1
- package/dist/types/components/TextArea/TextArea.d.ts +5 -0
- package/dist/types/components/TextInput/TextInput.d.ts +5 -0
- package/dist/types/types/auto-complete-types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Calendar = require('../_shared/cjs/Calendar-
|
|
5
|
+
var Calendar = require('../_shared/cjs/Calendar-b022545c.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('../_shared/cjs/use-media-query-e61881d8.js');
|
|
8
8
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
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-78a70e63.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('../_shared/cjs/index-9947ac13.js');
|
|
8
8
|
require('react');
|
package/dist/Card/Card.esm.js
CHANGED
package/dist/Clock/Clock.cjs.js
CHANGED
|
@@ -10,8 +10,13 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
#### Deprecation Notice
|
|
14
|
+
|
|
15
|
+
The `Clock` component is being deprecated from Arc and will be removed in a future release.
|
|
16
|
+
|
|
17
|
+
Do not use `Clock` for any new work, and prepare to update any design that features it to remove it.
|
|
18
|
+
|
|
19
|
+
*/
|
|
15
20
|
var Clock = function (_a) {
|
|
16
21
|
var _b = _a.locale, locale = _b === void 0 ? "en-GB" : _b, props = filterDataAttrs.__rest(_a, ["locale"]);
|
|
17
22
|
var _c = React.useState(new Date()), time = _c[0], setTime = _c[1];
|
package/dist/Clock/Clock.esm.js
CHANGED
|
@@ -2,8 +2,13 @@ import { _ as __rest, a as __assign, f as filterDataAttrs, d as __awaiter, e as
|
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
#### Deprecation Notice
|
|
6
|
+
|
|
7
|
+
The `Clock` component is being deprecated from Arc and will be removed in a future release.
|
|
8
|
+
|
|
9
|
+
Do not use `Clock` for any new work, and prepare to update any design that features it to remove it.
|
|
10
|
+
|
|
11
|
+
*/
|
|
7
12
|
var Clock = function (_a) {
|
|
8
13
|
var _b = _a.locale, locale = _b === void 0 ? "en-GB" : _b, props = __rest(_a, ["locale"]);
|
|
9
14
|
var _c = useState(new Date()), time = _c[0], setTime = _c[1];
|
package/dist/Curve/Curve.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Curve = require('../_shared/cjs/Curve-
|
|
5
|
+
var Curve = require('../_shared/cjs/Curve-b5117889.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('../_shared/cjs/index-9947ac13.js');
|
|
8
8
|
require('react');
|
package/dist/Curve/Curve.esm.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Calendar = require('../_shared/cjs/Calendar-
|
|
5
|
+
var Calendar = require('../_shared/cjs/Calendar-b022545c.js');
|
|
6
6
|
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var index$4 = require('../_shared/cjs/index-9947ac13.js');
|
|
@@ -13,7 +13,7 @@ var index$2 = require('../_shared/cjs/index-6eb396a3.js');
|
|
|
13
13
|
var index$1 = require('../_shared/cjs/index-77ab5c6a.js');
|
|
14
14
|
var index$3 = require('../_shared/cjs/index-d38f1bd0.js');
|
|
15
15
|
var Base = require('../_shared/cjs/Base-f5a86eed.js');
|
|
16
|
-
var TextInput = require('../_shared/cjs/TextInput-
|
|
16
|
+
var TextInput = require('../_shared/cjs/TextInput-8d139489.js');
|
|
17
17
|
require('../_shared/cjs/use-media-query-e61881d8.js');
|
|
18
18
|
require('../_shared/cjs/Text-606ca3a2.js');
|
|
19
19
|
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as requiredArgs, t as toDate, i as isValid, f as format, C as Calendar, a as isBefore, b as isAfter, c as compareAsc } from '../_shared/esm/Calendar-
|
|
1
|
+
import { r as requiredArgs, t as toDate, i as isValid, f as format, C as Calendar, a as isBefore, b as isAfter, c as compareAsc } from '../_shared/esm/Calendar-ea232839.js';
|
|
2
2
|
import { b as __spreadArray, _ as __rest, a as __assign } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
3
|
import React__default, { useRef, useState, createElement, useCallback, forwardRef, useEffect, useContext } from 'react';
|
|
4
4
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
@@ -9,7 +9,7 @@ import { $ as $1746a345f3d73bb7$export$f680877a34711e37 } from '../_shared/esm/i
|
|
|
9
9
|
import { $ as $cf1ac5d9fe0e8206$export$722aac194ae923, a as $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9, b as $cf1ac5d9fe0e8206$export$b688253958b8dfe7, c as $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 } from '../_shared/esm/index-b84a20c6.js';
|
|
10
10
|
import { $ as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from '../_shared/esm/index-ca72c9d5.js';
|
|
11
11
|
import { A as ArcRootElementContext } from '../_shared/esm/Base-f200653c.js';
|
|
12
|
-
import { T as TextInputWithPlaceHolder } from '../_shared/esm/TextInput-
|
|
12
|
+
import { T as TextInputWithPlaceHolder } from '../_shared/esm/TextInput-c0388103.js';
|
|
13
13
|
import '../_shared/esm/use-media-query-4c807227.js';
|
|
14
14
|
import '../_shared/esm/Text-14f586ac.js';
|
|
15
15
|
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ProgressStepper = require('../_shared/cjs/ProgressStepper-
|
|
5
|
+
var ProgressStepper = require('../_shared/cjs/ProgressStepper-491f0286.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/index-9947ac13.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as ProgressStepper } from '../_shared/esm/ProgressStepper-
|
|
1
|
+
export { P as ProgressStepper } from '../_shared/esm/ProgressStepper-7eba3a6a.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RadioGroup = require('../_shared/cjs/RadioGroup-
|
|
5
|
+
var RadioGroup = require('../_shared/cjs/RadioGroup-26dc00fc.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/FormControl-68258ce1.js');
|
|
@@ -17,4 +17,5 @@ require('../_shared/cjs/VisuallyHidden-b0de4c7b.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
exports.RadioButton = RadioGroup.RadioButton;
|
|
20
21
|
exports.RadioGroup = RadioGroup.RadioGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { R as RadioGroup } from '../_shared/esm/RadioGroup-
|
|
1
|
+
export { a as RadioButton, R as RadioGroup } from '../_shared/esm/RadioGroup-427652ac.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/FormControl-8e836656.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var SiteFooter = require('../_shared/cjs/SiteFooter-
|
|
5
|
+
var SiteFooter = require('../_shared/cjs/SiteFooter-20d5a9fa.js');
|
|
6
6
|
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
require('../_shared/cjs/use-media-query-e61881d8.js');
|
|
@@ -11,7 +11,7 @@ require('../_shared/cjs/BrandLogo-aea340c8.js');
|
|
|
11
11
|
require('../_shared/cjs/index-9947ac13.js');
|
|
12
12
|
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
13
13
|
require('../_shared/cjs/Surface-038db6e1.js');
|
|
14
|
-
require('../_shared/cjs/Curve-
|
|
14
|
+
require('../_shared/cjs/Curve-b5117889.js');
|
|
15
15
|
require('../_shared/cjs/Section-59804166.js');
|
|
16
16
|
require('../_shared/cjs/handle-link-click-17a44cf4.js');
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SiteFooter } from '../_shared/esm/SiteFooter-
|
|
2
|
-
export { S as SiteFooter } from '../_shared/esm/SiteFooter-
|
|
1
|
+
import { S as SiteFooter } from '../_shared/esm/SiteFooter-86f910b4.js';
|
|
2
|
+
export { S as SiteFooter } from '../_shared/esm/SiteFooter-86f910b4.js';
|
|
3
3
|
import { d as __awaiter, e as __generator, a as __assign } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import '../_shared/esm/use-media-query-4c807227.js';
|
|
@@ -8,7 +8,7 @@ import '../_shared/esm/BrandLogo-1af78f76.js';
|
|
|
8
8
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
9
9
|
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
10
10
|
import '../_shared/esm/Surface-0ca6817d.js';
|
|
11
|
-
import '../_shared/esm/Curve-
|
|
11
|
+
import '../_shared/esm/Curve-e05b3c3f.js';
|
|
12
12
|
import '../_shared/esm/Section-73781b56.js';
|
|
13
13
|
import '../_shared/esm/handle-link-click-f64f55a2.js';
|
|
14
14
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var SiteHeader_rehydrator = require('../_shared/cjs/SiteHeader.rehydrator-
|
|
5
|
+
var SiteHeader_rehydrator = require('../_shared/cjs/SiteHeader.rehydrator-9d8f3dad.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/index-9947ac13.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SiteHeader, a as SiteHeaderRehydrator } from '../_shared/esm/SiteHeader.rehydrator-
|
|
1
|
+
export { S as SiteHeader, a as SiteHeaderRehydrator } from '../_shared/esm/SiteHeader.rehydrator-2ec02ee7.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
@@ -12,7 +12,7 @@ require('../_shared/cjs/Image-e873b8fc.js');
|
|
|
12
12
|
require('../_shared/cjs/Base-f5a86eed.js');
|
|
13
13
|
require('../_shared/cjs/Breadcrumbs-c6eaf5c4.js');
|
|
14
14
|
require('../_shared/cjs/Button-6ba21d3b.js');
|
|
15
|
-
require('../_shared/cjs/Card-
|
|
15
|
+
require('../_shared/cjs/Card-78a70e63.js');
|
|
16
16
|
require('../_shared/cjs/Checkbox-0253327b.js');
|
|
17
17
|
require('../_shared/cjs/Columns-ae4f8cef.js');
|
|
18
18
|
require('../_shared/cjs/Filter-f9506dfa.js');
|
|
@@ -20,14 +20,14 @@ var FormControl = require('../_shared/cjs/FormControl-68258ce1.js');
|
|
|
20
20
|
require('../_shared/cjs/Grid-da776e77.js');
|
|
21
21
|
require('../_shared/cjs/Group-0429741a.js');
|
|
22
22
|
require('../_shared/cjs/Poster-9b48fd61.js');
|
|
23
|
-
require('../_shared/cjs/ProgressStepper-
|
|
24
|
-
require('../_shared/cjs/RadioGroup-
|
|
23
|
+
require('../_shared/cjs/ProgressStepper-491f0286.js');
|
|
24
|
+
require('../_shared/cjs/RadioGroup-26dc00fc.js');
|
|
25
25
|
require('../_shared/cjs/debounce-123468fb.js');
|
|
26
|
-
require('../_shared/cjs/SiteFooter-
|
|
27
|
-
require('../_shared/cjs/SiteHeader.rehydrator-
|
|
26
|
+
require('../_shared/cjs/SiteFooter-20d5a9fa.js');
|
|
27
|
+
require('../_shared/cjs/SiteHeader.rehydrator-9d8f3dad.js');
|
|
28
28
|
require('../_shared/cjs/SiteHeaderV2-ce1c8737.js');
|
|
29
29
|
require('../_shared/cjs/Tabs-bc9fac46.js');
|
|
30
|
-
require('../_shared/cjs/TextInput-
|
|
30
|
+
require('../_shared/cjs/TextInput-8d139489.js');
|
|
31
31
|
require('../_shared/cjs/Toast-26207fef.js');
|
|
32
32
|
require('../_shared/cjs/UniversalHeader-b8389447.js');
|
|
33
33
|
var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-b0de4c7b.js');
|
|
@@ -43,7 +43,7 @@ require('../_shared/cjs/DisclosureMini-09c749e5.js');
|
|
|
43
43
|
require('../_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js');
|
|
44
44
|
require('../_shared/cjs/use-media-query-e61881d8.js');
|
|
45
45
|
require('../_shared/cjs/BrandLogo-aea340c8.js');
|
|
46
|
-
require('../_shared/cjs/Curve-
|
|
46
|
+
require('../_shared/cjs/Curve-b5117889.js');
|
|
47
47
|
require('../_shared/cjs/Section-59804166.js');
|
|
48
48
|
require('../_shared/cjs/ConditionalWrapper-be3b2625.js');
|
|
49
49
|
require('../_shared/cjs/extends-8c5e4b48.js');
|
|
@@ -65,7 +65,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
65
65
|
|
|
66
66
|
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
67
67
|
var TextArea = React.forwardRef(function (_a, ref) {
|
|
68
|
-
var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, 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, width = _a.width, props = filterDataAttrs.__rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width"]);
|
|
68
|
+
var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, 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, width = _a.width, autoComplete = _a.autoComplete, props = filterDataAttrs.__rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width", "autoComplete"]);
|
|
69
69
|
var surface = React.useContext(Surface.Context).surface;
|
|
70
70
|
var ourRef = React.useRef(null);
|
|
71
71
|
var _j = React.useState((value && value.length) || (defaultValue && defaultValue.length) || 0), characterCount = _j[0], setCharacterCount = _j[1];
|
|
@@ -100,7 +100,7 @@ var TextArea = React.forwardRef(function (_a, ref) {
|
|
|
100
100
|
"arc-TextArea--noResize": resize !== "manual",
|
|
101
101
|
"arc-TextArea--onDarkSurface": surface === "dark",
|
|
102
102
|
"arc-TextArea--invalid": errorMessage
|
|
103
|
-
}), defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, value: value, readOnly: isReadOnly, maxLength: maxLength, name: name, onChange: handleOnChange, onBlur: onBlur, ref: getTextAreaRef, style: { width: width }, "aria-describedby": "".concat(id, "-helper") })));
|
|
103
|
+
}), defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, value: value, readOnly: isReadOnly, maxLength: maxLength, name: name, onChange: handleOnChange, onBlur: onBlur, ref: getTextAreaRef, style: { width: width }, "aria-describedby": "".concat(id, "-helper"), autoComplete: autoComplete })));
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
exports.TextArea = TextArea;
|
|
@@ -8,7 +8,7 @@ import '../_shared/esm/Image-12fbd327.js';
|
|
|
8
8
|
import '../_shared/esm/Base-f200653c.js';
|
|
9
9
|
import '../_shared/esm/Breadcrumbs-7d55e1a6.js';
|
|
10
10
|
import '../_shared/esm/Button-a7d134c6.js';
|
|
11
|
-
import '../_shared/esm/Card-
|
|
11
|
+
import '../_shared/esm/Card-a4b78406.js';
|
|
12
12
|
import '../_shared/esm/Checkbox-588619c7.js';
|
|
13
13
|
import '../_shared/esm/Columns-d96b7425.js';
|
|
14
14
|
import '../_shared/esm/Filter-258ba675.js';
|
|
@@ -16,14 +16,14 @@ import { F as FormControl } from '../_shared/esm/FormControl-8e836656.js';
|
|
|
16
16
|
import '../_shared/esm/Grid-07dbf4bd.js';
|
|
17
17
|
import '../_shared/esm/Group-73fdb896.js';
|
|
18
18
|
import '../_shared/esm/Poster-4ec2f679.js';
|
|
19
|
-
import '../_shared/esm/ProgressStepper-
|
|
20
|
-
import '../_shared/esm/RadioGroup-
|
|
19
|
+
import '../_shared/esm/ProgressStepper-7eba3a6a.js';
|
|
20
|
+
import '../_shared/esm/RadioGroup-427652ac.js';
|
|
21
21
|
import '../_shared/esm/debounce-6fed6b84.js';
|
|
22
|
-
import '../_shared/esm/SiteFooter-
|
|
23
|
-
import '../_shared/esm/SiteHeader.rehydrator-
|
|
22
|
+
import '../_shared/esm/SiteFooter-86f910b4.js';
|
|
23
|
+
import '../_shared/esm/SiteHeader.rehydrator-2ec02ee7.js';
|
|
24
24
|
import '../_shared/esm/SiteHeaderV2-a7c1b1cb.js';
|
|
25
25
|
import '../_shared/esm/Tabs-9485cab6.js';
|
|
26
|
-
import '../_shared/esm/TextInput-
|
|
26
|
+
import '../_shared/esm/TextInput-c0388103.js';
|
|
27
27
|
import '../_shared/esm/Toast-fcbfc194.js';
|
|
28
28
|
import '../_shared/esm/UniversalHeader-80c7313f.js';
|
|
29
29
|
import { V as VisuallyHidden } from '../_shared/esm/VisuallyHidden-06692fd3.js';
|
|
@@ -39,7 +39,7 @@ import '../_shared/esm/DisclosureMini-56719716.js';
|
|
|
39
39
|
import '../_shared/esm/BtIconChevronDown2Px.esm-217276c2.js';
|
|
40
40
|
import '../_shared/esm/use-media-query-4c807227.js';
|
|
41
41
|
import '../_shared/esm/BrandLogo-1af78f76.js';
|
|
42
|
-
import '../_shared/esm/Curve-
|
|
42
|
+
import '../_shared/esm/Curve-e05b3c3f.js';
|
|
43
43
|
import '../_shared/esm/Section-73781b56.js';
|
|
44
44
|
import '../_shared/esm/ConditionalWrapper-59be8f35.js';
|
|
45
45
|
import '../_shared/esm/extends-8cc61aad.js';
|
|
@@ -57,7 +57,7 @@ import '../_shared/esm/BtIconTick.esm-e265098f.js';
|
|
|
57
57
|
|
|
58
58
|
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
59
59
|
var TextArea = forwardRef(function (_a, ref) {
|
|
60
|
-
var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, 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, width = _a.width, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width"]);
|
|
60
|
+
var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, 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, width = _a.width, autoComplete = _a.autoComplete, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width", "autoComplete"]);
|
|
61
61
|
var surface = useContext(Context).surface;
|
|
62
62
|
var ourRef = useRef(null);
|
|
63
63
|
var _j = useState((value && value.length) || (defaultValue && defaultValue.length) || 0), characterCount = _j[0], setCharacterCount = _j[1];
|
|
@@ -92,7 +92,7 @@ var TextArea = forwardRef(function (_a, ref) {
|
|
|
92
92
|
"arc-TextArea--noResize": resize !== "manual",
|
|
93
93
|
"arc-TextArea--onDarkSurface": surface === "dark",
|
|
94
94
|
"arc-TextArea--invalid": errorMessage
|
|
95
|
-
}), defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, value: value, readOnly: isReadOnly, maxLength: maxLength, name: name, onChange: handleOnChange, onBlur: onBlur, ref: getTextAreaRef, style: { width: width }, "aria-describedby": "".concat(id, "-helper") })));
|
|
95
|
+
}), defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, value: value, readOnly: isReadOnly, maxLength: maxLength, name: name, onChange: handleOnChange, onBlur: onBlur, ref: getTextAreaRef, style: { width: width }, "aria-describedby": "".concat(id, "-helper"), autoComplete: autoComplete })));
|
|
96
96
|
});
|
|
97
97
|
|
|
98
98
|
export { TextArea };
|
|
@@ -2,7 +2,7 @@
|
|
|
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-8d139489.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('../_shared/cjs/index-9947ac13.js');
|
|
8
8
|
require('react');
|
|
@@ -3626,7 +3626,7 @@ var CalendarNavButton = function (_a) {
|
|
|
3626
3626
|
previous: BtIconChevronLeftMid_esm.BtIconChevronLeftMid,
|
|
3627
3627
|
next: BtIconChevronRightMid_esm.BtIconChevronRightMid
|
|
3628
3628
|
};
|
|
3629
|
-
return (React__default["default"].createElement("button", { "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick, className: index.classNames("arc-CalendarNavButton", {
|
|
3629
|
+
return (React__default["default"].createElement("button", { "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick, type: "button", className: index.classNames("arc-CalendarNavButton", {
|
|
3630
3630
|
"arc-CalendarNavButton--previous": direction === "previous",
|
|
3631
3631
|
"arc-CalendarNavButton--next": direction === "next"
|
|
3632
3632
|
}) },
|
|
@@ -3902,7 +3902,7 @@ var reducer = function (state, action) {
|
|
|
3902
3902
|
var CalendarFooter = function (_a) {
|
|
3903
3903
|
var onCancelClick = _a.onCancelClick;
|
|
3904
3904
|
return (React__default["default"].createElement("div", { className: "arc-CalendarFooter" },
|
|
3905
|
-
React__default["default"].createElement("button", { className: "arc-CalendarFooter-button", onClick: onCancelClick }, "Cancel")));
|
|
3905
|
+
React__default["default"].createElement("button", { type: "button", className: "arc-CalendarFooter-button", onClick: onCancelClick }, "Cancel")));
|
|
3906
3906
|
};
|
|
3907
3907
|
|
|
3908
3908
|
var CalendarWrapper = function (_a) {
|
|
@@ -45,7 +45,11 @@ var useInteractionMode = function () {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
|
|
48
|
+
#### Deprecation Notice
|
|
49
|
+
|
|
50
|
+
The `Card` component has been superseded by a range of new `Card` options (`ImpactCard`, `InformationCard`, `MediaCard`, `TypographyCard`) and therefore is being deprecated from Arc and will be removed in a future release.
|
|
51
|
+
|
|
52
|
+
Do not use `Card` for any new work, and prepare to update any design that features it to replace it with our newer `Card` options.
|
|
49
53
|
*/
|
|
50
54
|
var Card = function (_a) {
|
|
51
55
|
var _b;
|
|
@@ -12,7 +12,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
/**
|
|
13
13
|
#### Deprecation Notice
|
|
14
14
|
|
|
15
|
-
The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use Curve for any new work, and prepare to update any design that features it to remove it.
|
|
15
|
+
The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use `Curve` for any new work, and prepare to update any design that features it to remove it.
|
|
16
16
|
|
|
17
17
|
`Curve` will be removed from Arc in a subsequent release
|
|
18
18
|
*/
|
|
@@ -12,35 +12,35 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
14
|
var Error = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
15
|
-
React__default["default"].createElement("g", {
|
|
15
|
+
React__default["default"].createElement("g", { clipPath: "url(#a)" },
|
|
16
16
|
React__default["default"].createElement("path", { d: "m13.06 12 2.845-2.845a.75.75 0 0 0-1.06-1.06L12 10.94 9.155 8.095a.75.75 0 0 0-1.06 1.06L10.939 12l-2.844 2.845a.75.75 0 1 0 1.06 1.06L12 13.061l2.845 2.844a.75.75 0 0 0 1.06-1.06L13.06 12Z", fill: "currentColor" })),
|
|
17
|
-
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
17
|
+
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
18
18
|
React__default["default"].createElement("defs", null,
|
|
19
19
|
React__default["default"].createElement("clipPath", { id: "a" },
|
|
20
20
|
React__default["default"].createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
21
21
|
|
|
22
22
|
var Warning = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
23
|
-
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
24
|
-
React__default["default"].createElement("path", { d: "M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z", fill: "currentColor", stroke: "currentColor",
|
|
23
|
+
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
24
|
+
React__default["default"].createElement("path", { d: "M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z", fill: "currentColor", stroke: "currentColor", strokeWidth: ".3" }))); };
|
|
25
25
|
|
|
26
26
|
var Complete = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
27
|
-
React__default["default"].createElement("g", {
|
|
27
|
+
React__default["default"].createElement("g", { clipPath: "url(#a)" },
|
|
28
28
|
React__default["default"].createElement("path", { d: "m10.125 16.435-3.53-3.53a.75.75 0 0 1 0-1.06.768.768 0 0 1 1.06 0l2.47 2.47 6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.28 7.28Z", fill: "currentColor" })),
|
|
29
|
-
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
29
|
+
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
30
30
|
React__default["default"].createElement("defs", null,
|
|
31
31
|
React__default["default"].createElement("clipPath", { id: "a" },
|
|
32
32
|
React__default["default"].createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
33
33
|
|
|
34
34
|
var Current = function () { return (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
35
|
-
React__default["default"].createElement("rect", { x: "0.666667", y: "0.666667", width: "22.6667", height: "22.6667", rx: "11.3333", stroke: "url(#paint0_linear_1_1050)",
|
|
35
|
+
React__default["default"].createElement("rect", { x: "0.666667", y: "0.666667", width: "22.6667", height: "22.6667", rx: "11.3333", stroke: "url(#paint0_linear_1_1050)", strokeWidth: "1.33333" }),
|
|
36
36
|
React__default["default"].createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
|
|
37
37
|
React__default["default"].createElement("defs", null,
|
|
38
38
|
React__default["default"].createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
|
|
39
|
-
React__default["default"].createElement("stop", {
|
|
40
|
-
React__default["default"].createElement("stop", { offset: "1",
|
|
39
|
+
React__default["default"].createElement("stop", { stopColor: "#F200F5" }),
|
|
40
|
+
React__default["default"].createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
|
|
41
41
|
|
|
42
42
|
var Todo = function () { return (React__default["default"].createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
43
|
-
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
43
|
+
React__default["default"].createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }))); };
|
|
44
44
|
|
|
45
45
|
// export current step as an icon
|
|
46
46
|
var ProgressStepperItem = function (_a) {
|
|
@@ -5,6 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var FormControl = require('./FormControl-68258ce1.js');
|
|
6
6
|
var index = require('./index-9947ac13.js');
|
|
7
7
|
var Surface = require('./Surface-038db6e1.js');
|
|
8
|
+
var VisuallyHidden = require('./VisuallyHidden-b0de4c7b.js');
|
|
8
9
|
|
|
9
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
11
|
|
|
@@ -17,18 +18,15 @@ var useRadioContext = function () {
|
|
|
17
18
|
return context;
|
|
18
19
|
};
|
|
19
20
|
|
|
20
|
-
/**
|
|
21
|
-
* Radio Button component.
|
|
22
|
-
*/
|
|
23
21
|
var RadioButton = React.forwardRef(function (_a, ref) {
|
|
24
|
-
var
|
|
25
|
-
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
|
|
22
|
+
var id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin, props = filterDataAttrs.__rest(_a, ["id", "changeEvent", "isDisabled", "size", "labelSize", "checked", "defaultChecked", "radioButtonAlignment", "name", "blurEvent", "value", "label", "helper", "hideLabel", "withMargin"]);
|
|
26
23
|
var surface = React.useContext(Surface.Context).surface;
|
|
27
24
|
var idLabel = "".concat(id, "-label");
|
|
28
|
-
var checked = checkedValue === value ? true : false;
|
|
29
25
|
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames({
|
|
30
26
|
"arc-RadioButton": true,
|
|
31
|
-
"arc-RadioButton--
|
|
27
|
+
"arc-RadioButton--withMargin": withMargin,
|
|
28
|
+
"arc-RadioButton--withMarginSmall": withMargin && size === "s",
|
|
29
|
+
"arc-RadioButton--disabled": isDisabled,
|
|
32
30
|
"arc-RadioButton--small": size === "s",
|
|
33
31
|
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
34
32
|
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
@@ -36,14 +34,26 @@ var RadioButton = React.forwardRef(function (_a, ref) {
|
|
|
36
34
|
React__default["default"].createElement("label", { className: index.classNames("arc-RadioButton-label", {
|
|
37
35
|
"arc-RadioButton-label--alignTop": radioButtonAlignment === "top"
|
|
38
36
|
}), htmlFor: id, id: idLabel },
|
|
39
|
-
React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked:
|
|
37
|
+
React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked: checked, defaultChecked: defaultChecked, disabled: isDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value, "aria-checked": checked }),
|
|
40
38
|
React__default["default"].createElement("span", { className: index.classNames({
|
|
41
39
|
"arc-RadioButton-label--marginTop": radioButtonAlignment === "top"
|
|
42
40
|
}) },
|
|
43
|
-
label,
|
|
41
|
+
hideLabel ? React__default["default"].createElement(VisuallyHidden.VisuallyHidden, null, label) : label,
|
|
44
42
|
helper && React__default["default"].createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
45
43
|
});
|
|
46
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Radio Button component.
|
|
47
|
+
*/
|
|
48
|
+
var RadioButtonGroupInput = React.forwardRef(function (_a, ref) {
|
|
49
|
+
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, _b = _a.radioButtonAlignment, radioButtonAlignment = _b === void 0 ? "center" : _b, value = _a.value, props = filterDataAttrs.__rest(_a, ["helper", "id", "isDisabled", "label", "radioButtonAlignment", "value"]);
|
|
50
|
+
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
|
|
51
|
+
var isChecked = checkedValue === value ? true : false;
|
|
52
|
+
var checked = typeof changeEvent !== "function" ? undefined : isChecked;
|
|
53
|
+
var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
|
|
54
|
+
return (React__default["default"].createElement(RadioButton, filterDataAttrs.__assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled, labelSize: labelSize, size: size, radioButtonAlignment: radioButtonAlignment, label: label, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, blurEvent: blurEvent, value: value }, props)));
|
|
55
|
+
});
|
|
56
|
+
|
|
47
57
|
/**
|
|
48
58
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
49
59
|
*/
|
|
@@ -51,7 +61,7 @@ var RadioGroup = function (_a) {
|
|
|
51
61
|
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? "l" : _d, props = filterDataAttrs.__rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
52
62
|
React.useEffect(function () {
|
|
53
63
|
React__default["default"].Children.map(children, function (item) {
|
|
54
|
-
if (item && item.type !==
|
|
64
|
+
if (item && item.type !== RadioButtonGroupInput) {
|
|
55
65
|
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
56
66
|
}
|
|
57
67
|
});
|
|
@@ -69,6 +79,7 @@ var RadioGroup = function (_a) {
|
|
|
69
79
|
React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
70
80
|
React__default["default"].createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
71
81
|
};
|
|
72
|
-
RadioGroup.RadioButton =
|
|
82
|
+
RadioGroup.RadioButton = RadioButtonGroupInput;
|
|
73
83
|
|
|
84
|
+
exports.RadioButton = RadioButton;
|
|
74
85
|
exports.RadioGroup = RadioGroup;
|
|
@@ -5,7 +5,7 @@ var useMediaQuery = require('./use-media-query-e61881d8.js');
|
|
|
5
5
|
var BtIconChevronDown2Px_esm = require('./BtIconChevronDown2Px.esm-39030ee0.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BrandLogo = require('./BrandLogo-aea340c8.js');
|
|
8
|
-
var Curve = require('./Curve-
|
|
8
|
+
var Curve = require('./Curve-b5117889.js');
|
|
9
9
|
var Section = require('./Section-59804166.js');
|
|
10
10
|
var Surface = require('./Surface-038db6e1.js');
|
|
11
11
|
var handleLinkClick = require('./handle-link-click-17a44cf4.js');
|
package/dist/_shared/cjs/{SiteHeader.rehydrator-b76b0889.js → SiteHeader.rehydrator-9d8f3dad.js}
RENAMED
|
@@ -517,7 +517,11 @@ var defaultContext = { transparent: false };
|
|
|
517
517
|
var Context = React.createContext(defaultContext);
|
|
518
518
|
var Provider = Context.Provider;
|
|
519
519
|
/**
|
|
520
|
-
|
|
520
|
+
#### Deprecation Notice
|
|
521
|
+
|
|
522
|
+
The `SiteHeader` component has been superseded by `SiteHeaderV2` and therefore is being deprecated from Arc and will be removed in a future release.
|
|
523
|
+
|
|
524
|
+
Do not use `SiteHeader` for any new work, and prepare to update any design that features it to replace it with `SiteHeaderV2`.
|
|
521
525
|
*/
|
|
522
526
|
var SiteHeader = function (_a) {
|
|
523
527
|
var _b;
|
|
@@ -41,7 +41,7 @@ var useNumericInput = function (props) {
|
|
|
41
41
|
|
|
42
42
|
var TextInputComponent = React.forwardRef(function (_a, ref) {
|
|
43
43
|
var _b;
|
|
44
|
-
var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _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, label = _a.label, _g = _a.labelSize, labelSize = _g === void 0 ? "l" : _g, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _h = _a.type, type = _h === void 0 ? "text" : _h, _j = _a.showPassword, showPassword = _j === void 0 ? false : _j, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _k = _a.inputSize, inputSize = _k === void 0 ? "m" : _k, iconButton = _a.iconButton, prefix = _a.prefix, suffix = _a.suffix, _l = _a.inputAlignment, inputAlignment = _l === void 0 ? "left" : _l, width = _a.width, props = filterDataAttrs.__rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize", "iconButton", "prefix", "suffix", "inputAlignment", "width"]);
|
|
44
|
+
var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _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, label = _a.label, _g = _a.labelSize, labelSize = _g === void 0 ? "l" : _g, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _h = _a.type, type = _h === void 0 ? "text" : _h, _j = _a.showPassword, showPassword = _j === void 0 ? false : _j, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _k = _a.inputSize, inputSize = _k === void 0 ? "m" : _k, iconButton = _a.iconButton, prefix = _a.prefix, suffix = _a.suffix, _l = _a.inputAlignment, inputAlignment = _l === void 0 ? "left" : _l, width = _a.width, autoComplete = _a.autoComplete, props = filterDataAttrs.__rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize", "iconButton", "prefix", "suffix", "inputAlignment", "width", "autoComplete"]);
|
|
45
45
|
var surface = React.useContext(Surface.Context).surface;
|
|
46
46
|
var _m = React.useState(false), showPasswordToggle = _m[0], setShowPasswordToggle = _m[1];
|
|
47
47
|
var inferredInputProps = useNumericInput({
|
|
@@ -77,7 +77,7 @@ var TextInputComponent = React.forwardRef(function (_a, ref) {
|
|
|
77
77
|
React__default["default"].createElement(FormControl.FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure },
|
|
78
78
|
React__default["default"].createElement("div", { className: "arc-TextInput-inputWrapper", style: { width: width } },
|
|
79
79
|
prefix && (React__default["default"].createElement("span", { className: "arc-TextInput-prefix", "aria-hidden": true }, prefix)),
|
|
80
|
-
React__default["default"].createElement("input", filterDataAttrs.__assign({ placeholder: placeholder, "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-TextInput-input", defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, readOnly: isReadOnly, ref: ref, required: isRequired, value: typeof value !== "undefined" ? value : undefined }, inferredInputProps)),
|
|
80
|
+
React__default["default"].createElement("input", filterDataAttrs.__assign({ placeholder: placeholder, "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-TextInput-input", defaultValue: typeof value !== "undefined" ? undefined : defaultValue, disabled: isDisabled, id: id, maxLength: maxLength, minLength: minLength, name: name, onChange: onChange, onBlur: onBlur, readOnly: isReadOnly, ref: ref, required: isRequired, value: typeof value !== "undefined" ? value : undefined, autoComplete: autoComplete }, inferredInputProps)),
|
|
81
81
|
iconButton && !showPassword && (React__default["default"].createElement("div", { className: "arc-TextInput-additionalControl" },
|
|
82
82
|
React__default["default"].createElement("button", { ref: iconButton.ref, className: "arc-TextInput-iconButton", disabled: isReadOnly || isDisabled, "aria-label": iconButton.label, onFocus: iconButton.onFocus, onClick: function (e) {
|
|
83
83
|
e.preventDefault();
|