@arc-ui/components 11.24.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/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/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 +6 -6
- package/dist/TextArea/TextArea.esm.js +6 -6
- 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/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/index.es.js +48 -26
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +48 -26
- 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/package.json +1 -1
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 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,11 +20,11 @@ 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
30
|
require('../_shared/cjs/TextInput-8d139489.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');
|
|
@@ -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,11 +16,11 @@ 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
26
|
import '../_shared/esm/TextInput-c0388103.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';
|
|
@@ -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;
|
|
@@ -39,7 +39,11 @@ var useInteractionMode = function () {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
|
|
42
|
+
#### Deprecation Notice
|
|
43
|
+
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
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.
|
|
43
47
|
*/
|
|
44
48
|
var Card = function (_a) {
|
|
45
49
|
var _b;
|
|
@@ -6,7 +6,7 @@ import { s as suffixModifier } from './suffix-modifier-3d548e45.js';
|
|
|
6
6
|
/**
|
|
7
7
|
#### Deprecation Notice
|
|
8
8
|
|
|
9
|
-
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.
|
|
9
|
+
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.
|
|
10
10
|
|
|
11
11
|
`Curve` will be removed from Arc in a subsequent release
|
|
12
12
|
*/
|
|
@@ -6,35 +6,35 @@ import { C as Context } from './Surface-0ca6817d.js';
|
|
|
6
6
|
import { V as VisuallyHidden } from './VisuallyHidden-06692fd3.js';
|
|
7
7
|
|
|
8
8
|
var Error = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
9
|
-
React__default.createElement("g", {
|
|
9
|
+
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
10
10
|
React__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" })),
|
|
11
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
11
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
12
12
|
React__default.createElement("defs", null,
|
|
13
13
|
React__default.createElement("clipPath", { id: "a" },
|
|
14
14
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
15
15
|
|
|
16
16
|
var Warning = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
17
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
18
|
-
React__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",
|
|
17
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
18
|
+
React__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" }))); };
|
|
19
19
|
|
|
20
20
|
var Complete = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
21
|
-
React__default.createElement("g", {
|
|
21
|
+
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
22
22
|
React__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" })),
|
|
23
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
23
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
24
24
|
React__default.createElement("defs", null,
|
|
25
25
|
React__default.createElement("clipPath", { id: "a" },
|
|
26
26
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
27
27
|
|
|
28
28
|
var Current = function () { return (React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
29
|
-
React__default.createElement("rect", { x: "0.666667", y: "0.666667", width: "22.6667", height: "22.6667", rx: "11.3333", stroke: "url(#paint0_linear_1_1050)",
|
|
29
|
+
React__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" }),
|
|
30
30
|
React__default.createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
|
|
31
31
|
React__default.createElement("defs", null,
|
|
32
32
|
React__default.createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
|
|
33
|
-
React__default.createElement("stop", {
|
|
34
|
-
React__default.createElement("stop", { offset: "1",
|
|
33
|
+
React__default.createElement("stop", { stopColor: "#F200F5" }),
|
|
34
|
+
React__default.createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
|
|
35
35
|
|
|
36
36
|
var Todo = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
37
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
37
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }))); };
|
|
38
38
|
|
|
39
39
|
// export current step as an icon
|
|
40
40
|
var ProgressStepperItem = function (_a) {
|
|
@@ -3,6 +3,7 @@ import React__default, { createContext, useContext, forwardRef, useEffect } from
|
|
|
3
3
|
import { F as FormControl } from './FormControl-8e836656.js';
|
|
4
4
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
5
5
|
import { C as Context } from './Surface-0ca6817d.js';
|
|
6
|
+
import { V as VisuallyHidden } from './VisuallyHidden-06692fd3.js';
|
|
6
7
|
|
|
7
8
|
var RadioContext = createContext({});
|
|
8
9
|
var Provider = RadioContext.Provider;
|
|
@@ -11,18 +12,15 @@ var useRadioContext = function () {
|
|
|
11
12
|
return context;
|
|
12
13
|
};
|
|
13
14
|
|
|
14
|
-
/**
|
|
15
|
-
* Radio Button component.
|
|
16
|
-
*/
|
|
17
15
|
var RadioButton = forwardRef(function (_a, ref) {
|
|
18
|
-
var
|
|
19
|
-
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
|
|
16
|
+
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 = __rest(_a, ["id", "changeEvent", "isDisabled", "size", "labelSize", "checked", "defaultChecked", "radioButtonAlignment", "name", "blurEvent", "value", "label", "helper", "hideLabel", "withMargin"]);
|
|
20
17
|
var surface = useContext(Context).surface;
|
|
21
18
|
var idLabel = "".concat(id, "-label");
|
|
22
|
-
var checked = checkedValue === value ? true : false;
|
|
23
19
|
return (React__default.createElement("div", __assign({ className: classNames({
|
|
24
20
|
"arc-RadioButton": true,
|
|
25
|
-
"arc-RadioButton--
|
|
21
|
+
"arc-RadioButton--withMargin": withMargin,
|
|
22
|
+
"arc-RadioButton--withMarginSmall": withMargin && size === "s",
|
|
23
|
+
"arc-RadioButton--disabled": isDisabled,
|
|
26
24
|
"arc-RadioButton--small": size === "s",
|
|
27
25
|
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
28
26
|
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
@@ -30,14 +28,26 @@ var RadioButton = forwardRef(function (_a, ref) {
|
|
|
30
28
|
React__default.createElement("label", { className: classNames("arc-RadioButton-label", {
|
|
31
29
|
"arc-RadioButton-label--alignTop": radioButtonAlignment === "top"
|
|
32
30
|
}), htmlFor: id, id: idLabel },
|
|
33
|
-
React__default.createElement("input", { className: "arc-RadioButton-input", checked:
|
|
31
|
+
React__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 }),
|
|
34
32
|
React__default.createElement("span", { className: classNames({
|
|
35
33
|
"arc-RadioButton-label--marginTop": radioButtonAlignment === "top"
|
|
36
34
|
}) },
|
|
37
|
-
label,
|
|
35
|
+
hideLabel ? React__default.createElement(VisuallyHidden, null, label) : label,
|
|
38
36
|
helper && React__default.createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
39
37
|
});
|
|
40
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Radio Button component.
|
|
41
|
+
*/
|
|
42
|
+
var RadioButtonGroupInput = forwardRef(function (_a, ref) {
|
|
43
|
+
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 = __rest(_a, ["helper", "id", "isDisabled", "label", "radioButtonAlignment", "value"]);
|
|
44
|
+
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
|
|
45
|
+
var isChecked = checkedValue === value ? true : false;
|
|
46
|
+
var checked = typeof changeEvent !== "function" ? undefined : isChecked;
|
|
47
|
+
var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
|
|
48
|
+
return (React__default.createElement(RadioButton, __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)));
|
|
49
|
+
});
|
|
50
|
+
|
|
41
51
|
/**
|
|
42
52
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
43
53
|
*/
|
|
@@ -45,7 +55,7 @@ var RadioGroup = function (_a) {
|
|
|
45
55
|
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 = __rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
46
56
|
useEffect(function () {
|
|
47
57
|
React__default.Children.map(children, function (item) {
|
|
48
|
-
if (item && item.type !==
|
|
58
|
+
if (item && item.type !== RadioButtonGroupInput) {
|
|
49
59
|
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
50
60
|
}
|
|
51
61
|
});
|
|
@@ -63,6 +73,6 @@ var RadioGroup = function (_a) {
|
|
|
63
73
|
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
64
74
|
React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
65
75
|
};
|
|
66
|
-
RadioGroup.RadioButton =
|
|
76
|
+
RadioGroup.RadioButton = RadioButtonGroupInput;
|
|
67
77
|
|
|
68
|
-
export { RadioGroup as R };
|
|
78
|
+
export { RadioGroup as R, RadioButton as a };
|
|
@@ -3,7 +3,7 @@ import { u as useMediaQuery, A as ArcBreakpointM } from './use-media-query-4c807
|
|
|
3
3
|
import { B as BtIconChevronDown2Px } from './BtIconChevronDown2Px.esm-217276c2.js';
|
|
4
4
|
import React__default, { useEffect, Fragment } from 'react';
|
|
5
5
|
import { B as BrandLogo } from './BrandLogo-1af78f76.js';
|
|
6
|
-
import { C as Curve } from './Curve-
|
|
6
|
+
import { C as Curve } from './Curve-e05b3c3f.js';
|
|
7
7
|
import { S as Section } from './Section-73781b56.js';
|
|
8
8
|
import { S as Surface } from './Surface-0ca6817d.js';
|
|
9
9
|
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
package/dist/_shared/esm/{SiteHeader.rehydrator-8ad7651b.js → SiteHeader.rehydrator-2ec02ee7.js}
RENAMED
|
@@ -511,7 +511,11 @@ var defaultContext = { transparent: false };
|
|
|
511
511
|
var Context = createContext(defaultContext);
|
|
512
512
|
var Provider = Context.Provider;
|
|
513
513
|
/**
|
|
514
|
-
|
|
514
|
+
#### Deprecation Notice
|
|
515
|
+
|
|
516
|
+
The `SiteHeader` component has been superseded by `SiteHeaderV2` and therefore is being deprecated from Arc and will be removed in a future release.
|
|
517
|
+
|
|
518
|
+
Do not use `SiteHeader` for any new work, and prepare to update any design that features it to replace it with `SiteHeaderV2`.
|
|
515
519
|
*/
|
|
516
520
|
var SiteHeader = function (_a) {
|
|
517
521
|
var _b;
|