@arc-ui/components 11.24.0 → 11.24.2
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/Base/Base.cjs.js +2 -1
- package/dist/Base/Base.esm.js +2 -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 +1 -1
- package/dist/DatePicker/DatePicker.esm.js +1 -1
- package/dist/Modal/Modal.cjs.js +1 -1
- package/dist/Modal/Modal.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/Select/Select.cjs.js +1 -1
- package/dist/Select/Select.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 +7 -7
- package/dist/TextArea/TextArea.esm.js +7 -7
- package/dist/_shared/cjs/{Base-f5a86eed.js → Base-4676f12e.js} +6 -3
- 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/Base-211ca3a4.js +18 -0
- 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 +53 -29
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +53 -29
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/components/Base/Base.d.ts +4 -0
- 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/_shared/esm/Base-f200653c.js +0 -15
|
@@ -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;
|
package/dist/index.es.js
CHANGED
|
@@ -856,9 +856,11 @@ var ArcRootElementContext = createContext(null);
|
|
|
856
856
|
* Use `Base` as the root component of the arc system.
|
|
857
857
|
*/
|
|
858
858
|
var Base = function (_a) {
|
|
859
|
-
var _b = _a.brand, brand = _b === void 0 ? "bt" : _b, children = _a.children, props = __rest(_a, ["brand", "children"]);
|
|
860
|
-
var
|
|
861
|
-
return (React__default.createElement("div", __assign({ id: "arc-root", ref: setArcRoot, className: "arc".concat(brand ? " arc-".concat(brand) : "")
|
|
859
|
+
var _b = _a.brand, brand = _b === void 0 ? "bt" : _b, _c = _a.resetCssStyles, resetCssStyles = _c === void 0 ? true : _c, children = _a.children, props = __rest(_a, ["brand", "resetCssStyles", "children"]);
|
|
860
|
+
var _d = React__default.useState(null), arcRoot = _d[0], setArcRoot = _d[1];
|
|
861
|
+
return (React__default.createElement("div", __assign({ id: "arc-root", ref: setArcRoot, className: classNames("arc".concat(brand ? " arc-".concat(brand) : ""), {
|
|
862
|
+
"arc--reset": resetCssStyles
|
|
863
|
+
}) }, filterDataAttrs(props)),
|
|
862
864
|
React__default.createElement(ArcRootElementContext.Provider, { value: arcRoot }, children)));
|
|
863
865
|
};
|
|
864
866
|
|
|
@@ -1770,7 +1772,11 @@ var useNumericInput = function (props) {
|
|
|
1770
1772
|
};
|
|
1771
1773
|
|
|
1772
1774
|
/**
|
|
1773
|
-
|
|
1775
|
+
#### Deprecation Notice
|
|
1776
|
+
|
|
1777
|
+
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.
|
|
1778
|
+
|
|
1779
|
+
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.
|
|
1774
1780
|
*/
|
|
1775
1781
|
var Card = function (_a) {
|
|
1776
1782
|
var _b;
|
|
@@ -2027,8 +2033,13 @@ var Checkbox = forwardRef(function (_a, ref) {
|
|
|
2027
2033
|
});
|
|
2028
2034
|
|
|
2029
2035
|
/**
|
|
2030
|
-
|
|
2031
|
-
|
|
2036
|
+
#### Deprecation Notice
|
|
2037
|
+
|
|
2038
|
+
The `Clock` component is being deprecated from Arc and will be removed in a future release.
|
|
2039
|
+
|
|
2040
|
+
Do not use `Clock` for any new work, and prepare to update any design that features it to remove it.
|
|
2041
|
+
|
|
2042
|
+
*/
|
|
2032
2043
|
var Clock = function (_a) {
|
|
2033
2044
|
var _b = _a.locale, locale = _b === void 0 ? "en-GB" : _b, props = __rest(_a, ["locale"]);
|
|
2034
2045
|
var _c = useState(new Date()), time = _c[0], setTime = _c[1];
|
|
@@ -2103,7 +2114,7 @@ Columns.Col = Col$1;
|
|
|
2103
2114
|
/**
|
|
2104
2115
|
#### Deprecation Notice
|
|
2105
2116
|
|
|
2106
|
-
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.
|
|
2117
|
+
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.
|
|
2107
2118
|
|
|
2108
2119
|
`Curve` will be removed from Arc in a subsequent release
|
|
2109
2120
|
*/
|
|
@@ -35710,35 +35721,35 @@ var ProgressBar = function (_a) {
|
|
|
35710
35721
|
};
|
|
35711
35722
|
|
|
35712
35723
|
var Error$1 = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
35713
|
-
React__default.createElement("g", {
|
|
35724
|
+
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
35714
35725
|
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" })),
|
|
35715
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
35726
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
35716
35727
|
React__default.createElement("defs", null,
|
|
35717
35728
|
React__default.createElement("clipPath", { id: "a" },
|
|
35718
35729
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
35719
35730
|
|
|
35720
35731
|
var Warning = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
35721
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
35722
|
-
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",
|
|
35732
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
35733
|
+
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" }))); };
|
|
35723
35734
|
|
|
35724
35735
|
var Complete = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
35725
|
-
React__default.createElement("g", {
|
|
35736
|
+
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
35726
35737
|
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" })),
|
|
35727
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
35738
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
35728
35739
|
React__default.createElement("defs", null,
|
|
35729
35740
|
React__default.createElement("clipPath", { id: "a" },
|
|
35730
35741
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
35731
35742
|
|
|
35732
35743
|
var Current = function () { return (React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
35733
|
-
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)",
|
|
35744
|
+
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" }),
|
|
35734
35745
|
React__default.createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
|
|
35735
35746
|
React__default.createElement("defs", null,
|
|
35736
35747
|
React__default.createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
|
|
35737
|
-
React__default.createElement("stop", {
|
|
35738
|
-
React__default.createElement("stop", { offset: "1",
|
|
35748
|
+
React__default.createElement("stop", { stopColor: "#F200F5" }),
|
|
35749
|
+
React__default.createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
|
|
35739
35750
|
|
|
35740
35751
|
var Todo = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
35741
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor",
|
|
35752
|
+
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }))); };
|
|
35742
35753
|
|
|
35743
35754
|
// export current step as an icon
|
|
35744
35755
|
var ProgressStepperItem = function (_a) {
|
|
@@ -35802,18 +35813,15 @@ var useRadioContext = function () {
|
|
|
35802
35813
|
return context;
|
|
35803
35814
|
};
|
|
35804
35815
|
|
|
35805
|
-
/**
|
|
35806
|
-
* Radio Button component.
|
|
35807
|
-
*/
|
|
35808
35816
|
var RadioButton = forwardRef(function (_a, ref) {
|
|
35809
|
-
var
|
|
35810
|
-
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
|
|
35817
|
+
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"]);
|
|
35811
35818
|
var surface = useContext(Context$5).surface;
|
|
35812
35819
|
var idLabel = "".concat(id, "-label");
|
|
35813
|
-
var checked = checkedValue === value ? true : false;
|
|
35814
35820
|
return (React__default.createElement("div", __assign({ className: classNames({
|
|
35815
35821
|
"arc-RadioButton": true,
|
|
35816
|
-
"arc-RadioButton--
|
|
35822
|
+
"arc-RadioButton--withMargin": withMargin,
|
|
35823
|
+
"arc-RadioButton--withMarginSmall": withMargin && size === "s",
|
|
35824
|
+
"arc-RadioButton--disabled": isDisabled,
|
|
35817
35825
|
"arc-RadioButton--small": size === "s",
|
|
35818
35826
|
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
35819
35827
|
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
@@ -35821,14 +35829,26 @@ var RadioButton = forwardRef(function (_a, ref) {
|
|
|
35821
35829
|
React__default.createElement("label", { className: classNames("arc-RadioButton-label", {
|
|
35822
35830
|
"arc-RadioButton-label--alignTop": radioButtonAlignment === "top"
|
|
35823
35831
|
}), htmlFor: id, id: idLabel },
|
|
35824
|
-
React__default.createElement("input", { className: "arc-RadioButton-input", checked:
|
|
35832
|
+
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 }),
|
|
35825
35833
|
React__default.createElement("span", { className: classNames({
|
|
35826
35834
|
"arc-RadioButton-label--marginTop": radioButtonAlignment === "top"
|
|
35827
35835
|
}) },
|
|
35828
|
-
label,
|
|
35836
|
+
hideLabel ? React__default.createElement(VisuallyHidden, null, label) : label,
|
|
35829
35837
|
helper && React__default.createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
35830
35838
|
});
|
|
35831
35839
|
|
|
35840
|
+
/**
|
|
35841
|
+
* Radio Button component.
|
|
35842
|
+
*/
|
|
35843
|
+
var RadioButtonGroupInput = forwardRef(function (_a, ref) {
|
|
35844
|
+
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"]);
|
|
35845
|
+
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
|
|
35846
|
+
var isChecked = checkedValue === value ? true : false;
|
|
35847
|
+
var checked = typeof changeEvent !== "function" ? undefined : isChecked;
|
|
35848
|
+
var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
|
|
35849
|
+
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)));
|
|
35850
|
+
});
|
|
35851
|
+
|
|
35832
35852
|
/**
|
|
35833
35853
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
35834
35854
|
*/
|
|
@@ -35836,7 +35856,7 @@ var RadioGroup = function (_a) {
|
|
|
35836
35856
|
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"]);
|
|
35837
35857
|
useEffect(function () {
|
|
35838
35858
|
React__default.Children.map(children, function (item) {
|
|
35839
|
-
if (item && item.type !==
|
|
35859
|
+
if (item && item.type !== RadioButtonGroupInput) {
|
|
35840
35860
|
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
35841
35861
|
}
|
|
35842
35862
|
});
|
|
@@ -35854,7 +35874,7 @@ var RadioGroup = function (_a) {
|
|
|
35854
35874
|
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
35855
35875
|
React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
35856
35876
|
};
|
|
35857
|
-
RadioGroup.RadioButton =
|
|
35877
|
+
RadioGroup.RadioButton = RadioButtonGroupInput;
|
|
35858
35878
|
|
|
35859
35879
|
/**
|
|
35860
35880
|
* Use `Rule` to display a horizontal or vertical rule.
|
|
@@ -39960,7 +39980,11 @@ var defaultContext$2 = { transparent: false };
|
|
|
39960
39980
|
var Context$2 = createContext(defaultContext$2);
|
|
39961
39981
|
var Provider$2 = Context$2.Provider;
|
|
39962
39982
|
/**
|
|
39963
|
-
|
|
39983
|
+
#### Deprecation Notice
|
|
39984
|
+
|
|
39985
|
+
The `SiteHeader` component has been superseded by `SiteHeaderV2` and therefore is being deprecated from Arc and will be removed in a future release.
|
|
39986
|
+
|
|
39987
|
+
Do not use `SiteHeader` for any new work, and prepare to update any design that features it to replace it with `SiteHeaderV2`.
|
|
39964
39988
|
*/
|
|
39965
39989
|
var SiteHeader = function (_a) {
|
|
39966
39990
|
var _b;
|