@arc-ui/components 11.2.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Checkbox/Checkbox.cjs.js +8 -27
- package/dist/Checkbox/Checkbox.esm.js +3 -22
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +1 -1
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +2 -2
- package/dist/RadioGroup/RadioGroup.cjs.js +2 -2
- package/dist/RadioGroup/RadioGroup.esm.d.ts +2 -2
- package/dist/RadioGroup/RadioGroup.esm.js +2 -2
- package/dist/Select/Select.cjs.d.ts +2 -2
- package/dist/Select/Select.cjs.js +75 -74
- package/dist/Select/Select.esm.d.ts +2 -2
- package/dist/Select/Select.esm.js +3 -2
- package/dist/Switch/Switch.cjs.d.ts +1 -1
- package/dist/Switch/Switch.cjs.js +12 -11
- package/dist/Switch/Switch.esm.d.ts +1 -1
- package/dist/Switch/Switch.esm.js +3 -2
- package/dist/TextInput/TextInput.cjs.d.ts +2 -2
- package/dist/TextInput/TextInput.cjs.js +1 -1
- package/dist/TextInput/TextInput.esm.d.ts +2 -2
- package/dist/TextInput/TextInput.esm.js +1 -1
- package/dist/_shared/cjs/BtIconTickAlt2Px-bdf06f8c.js +29 -0
- package/dist/_shared/{esm/FormControl-84c9ace6.d.ts → cjs/FormControl-d4d9c665.d.ts} +4 -0
- package/dist/_shared/cjs/{FormControl-e6b7d7c5.js → FormControl-d4d9c665.js} +6 -5
- package/dist/_shared/cjs/VerticalSpace-65ad083c.d.ts +1 -1
- package/dist/_shared/cjs/index-c81c9401.d.ts +1 -1
- package/dist/_shared/cjs/{BtIconTickAlt2Px-b12ecc78.js → index.module-af7c85f2.js} +34 -59
- package/dist/_shared/esm/BtIconTickAlt2Px-da97e9ae.js +23 -0
- package/dist/_shared/{cjs/FormControl-e6b7d7c5.d.ts → esm/FormControl-2cb96de7.d.ts} +4 -0
- package/dist/_shared/esm/{FormControl-84c9ace6.js → FormControl-2cb96de7.js} +6 -5
- package/dist/_shared/esm/VerticalSpace-6b4f5e50.d.ts +1 -1
- package/dist/_shared/esm/index-c81c9401.d.ts +1 -1
- package/dist/_shared/esm/{BtIconTickAlt2Px-2c4ec3be.js → index.module-599b86dd.js} +2 -22
- package/dist/index.es.js +77 -96
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +305 -324
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/FormControl/FormControl.d.ts +4 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/Select/Select.d.ts +1 -1
- package/dist/types/components/TextInput/TextInput.d.ts +1 -1
- package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createContext, useMemo, createElement, useContext, useCallback, forwardRef, Children, isValidElement, cloneElement, Fragment, useEffect, useRef, useLayoutEffect, useState } from 'react';
|
|
2
2
|
import { flushSync } from 'react-dom';
|
|
3
3
|
|
|
4
4
|
function _extends() {
|
|
@@ -385,24 +385,4 @@ function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
|
|
|
385
385
|
]);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
|
|
389
|
-
const BtIconTickAlt2Px = props =>
|
|
390
|
-
/*#__PURE__*/ React.createElement(
|
|
391
|
-
"svg",
|
|
392
|
-
Object.assign(
|
|
393
|
-
{
|
|
394
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
395
|
-
viewBox: "0 0 32 32"
|
|
396
|
-
},
|
|
397
|
-
props
|
|
398
|
-
),
|
|
399
|
-
/*#__PURE__*/ React.createElement("defs", null),
|
|
400
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
401
|
-
d:
|
|
402
|
-
"M13.49963,21.91418l-4.707-4.707a1.0014,1.0014,0,0,1,0-1.41406,1.02353,1.02353,0,0,1,1.41406,0l3.293,3.293,8.293-8.293a.99989.99989,0,1,1,1.41406,1.41406Z",
|
|
403
|
-
fill: "currentColor"
|
|
404
|
-
})
|
|
405
|
-
);
|
|
406
|
-
var BtIconTickAlt2Px_2 = BtIconTickAlt2Px;
|
|
407
|
-
|
|
408
|
-
export { $c512c27ab02ef895$export$50c7b4e9d9f19c1 as $, BtIconTickAlt2Px_2 as B, _extends as _, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as a, $5e63c961fc1ce211$export$8c6ed5c666ac1360 as b, $b1b2314f5f9a1d84$export$25bec8c6f54ee79a as c, $8927f6f2acc4f386$export$250ffa63cdc0d034 as d, $e42e1063c40fb3ef$export$b9ecd428b558ff10 as e, $8927f6f2acc4f386$export$6d1a0317bde7de7f as f, $9f79659886946c16$export$e5c5a5f917a5871c as g, $71cd76cc60e0454e$export$6f32135080cb4c3 as h, $010c2913dbd2fe3d$export$5cae361ad82dce8b as i };
|
|
388
|
+
export { $c512c27ab02ef895$export$50c7b4e9d9f19c1 as $, _extends as _, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as a, $5e63c961fc1ce211$export$8c6ed5c666ac1360 as b, $b1b2314f5f9a1d84$export$25bec8c6f54ee79a as c, $8927f6f2acc4f386$export$250ffa63cdc0d034 as d, $e42e1063c40fb3ef$export$b9ecd428b558ff10 as e, $8927f6f2acc4f386$export$6d1a0317bde7de7f as f, $9f79659886946c16$export$e5c5a5f917a5871c as g, $71cd76cc60e0454e$export$6f32135080cb4c3 as h, $010c2913dbd2fe3d$export$5cae361ad82dce8b as i };
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React$
|
|
1
|
+
import * as React$9 from 'react';
|
|
2
2
|
import React__default, { createContext, useContext, useRef, useState, useEffect, forwardRef, useMemo, createElement, useCallback, Children, isValidElement, cloneElement, Fragment, useLayoutEffect, useId } from 'react';
|
|
3
3
|
|
|
4
4
|
/*! *****************************************************************************
|
|
@@ -853,9 +853,9 @@ function debounce(func, wait, options) {
|
|
|
853
853
|
|
|
854
854
|
var debounce_1 = debounce;
|
|
855
855
|
|
|
856
|
-
const React$
|
|
856
|
+
const React$8 = React__default;
|
|
857
857
|
const BtIconChevronLeft2Px = props =>
|
|
858
|
-
/*#__PURE__*/ React$
|
|
858
|
+
/*#__PURE__*/ React$8.createElement(
|
|
859
859
|
"svg",
|
|
860
860
|
Object.assign(
|
|
861
861
|
{
|
|
@@ -864,8 +864,8 @@ const BtIconChevronLeft2Px = props =>
|
|
|
864
864
|
},
|
|
865
865
|
props
|
|
866
866
|
),
|
|
867
|
-
/*#__PURE__*/ React$
|
|
868
|
-
/*#__PURE__*/ React$
|
|
867
|
+
/*#__PURE__*/ React$8.createElement("defs", null),
|
|
868
|
+
/*#__PURE__*/ React$8.createElement("path", {
|
|
869
869
|
d:
|
|
870
870
|
"M22.5,29.99854a.99676.99676,0,0,1-.707-.293L8.08594,15.99268,21.793,2.294A1.00023,1.00023,0,0,1,23.207,3.709l-12.293,12.28467L23.207,28.2915a1,1,0,0,1-.707,1.707Z",
|
|
871
871
|
fill: "currentColor"
|
|
@@ -873,9 +873,9 @@ const BtIconChevronLeft2Px = props =>
|
|
|
873
873
|
);
|
|
874
874
|
var BtIconChevronLeft2Px_2 = BtIconChevronLeft2Px;
|
|
875
875
|
|
|
876
|
-
const React$
|
|
876
|
+
const React$7 = React__default;
|
|
877
877
|
const BtIconChevronRight2Px = props =>
|
|
878
|
-
/*#__PURE__*/ React$
|
|
878
|
+
/*#__PURE__*/ React$7.createElement(
|
|
879
879
|
"svg",
|
|
880
880
|
Object.assign(
|
|
881
881
|
{
|
|
@@ -884,8 +884,8 @@ const BtIconChevronRight2Px = props =>
|
|
|
884
884
|
},
|
|
885
885
|
props
|
|
886
886
|
),
|
|
887
|
-
/*#__PURE__*/ React$
|
|
888
|
-
/*#__PURE__*/ React$
|
|
887
|
+
/*#__PURE__*/ React$7.createElement("defs", null),
|
|
888
|
+
/*#__PURE__*/ React$7.createElement("path", {
|
|
889
889
|
d:
|
|
890
890
|
"M9.5,29.99854A1.00025,1.00025,0,0,1,8.793,28.291l12.293-12.28467L8.793,3.7085A.99989.99989,0,0,1,10.207,2.29443l13.707,13.71289L10.207,29.70605A.99827.99827,0,0,1,9.5,29.99854Z",
|
|
891
891
|
fill: "currentColor"
|
|
@@ -893,9 +893,9 @@ const BtIconChevronRight2Px = props =>
|
|
|
893
893
|
);
|
|
894
894
|
var BtIconChevronRight2Px_2 = BtIconChevronRight2Px;
|
|
895
895
|
|
|
896
|
-
const React$
|
|
896
|
+
const React$6 = React__default;
|
|
897
897
|
const ArcIconArc = props =>
|
|
898
|
-
/*#__PURE__*/ React$
|
|
898
|
+
/*#__PURE__*/ React$6.createElement(
|
|
899
899
|
"svg",
|
|
900
900
|
Object.assign(
|
|
901
901
|
{
|
|
@@ -904,7 +904,7 @@ const ArcIconArc = props =>
|
|
|
904
904
|
},
|
|
905
905
|
props
|
|
906
906
|
),
|
|
907
|
-
/*#__PURE__*/ React$
|
|
907
|
+
/*#__PURE__*/ React$6.createElement("path", {
|
|
908
908
|
fill: "none",
|
|
909
909
|
d: "M3.472 11.69a6.5 6.5 0 012.321-6.839A6.5 6.5 0 0113 4.38",
|
|
910
910
|
stroke: "currentColor"
|
|
@@ -1097,9 +1097,9 @@ var BrandLogo = function (_a) {
|
|
|
1097
1097
|
} }, filterDataAttrs(props)), label ? React__default.createElement("span", { className: "arc-BrandLogo-text" }, label) : null));
|
|
1098
1098
|
};
|
|
1099
1099
|
|
|
1100
|
-
const React$
|
|
1100
|
+
const React$5 = React__default;
|
|
1101
1101
|
const BtIconChevronLeftMid = props =>
|
|
1102
|
-
/*#__PURE__*/ React$
|
|
1102
|
+
/*#__PURE__*/ React$5.createElement(
|
|
1103
1103
|
"svg",
|
|
1104
1104
|
Object.assign(
|
|
1105
1105
|
{
|
|
@@ -1109,7 +1109,7 @@ const BtIconChevronLeftMid = props =>
|
|
|
1109
1109
|
},
|
|
1110
1110
|
props
|
|
1111
1111
|
),
|
|
1112
|
-
/*#__PURE__*/ React$
|
|
1112
|
+
/*#__PURE__*/ React$5.createElement("path", {
|
|
1113
1113
|
fillRule: "evenodd",
|
|
1114
1114
|
clipRule: "evenodd",
|
|
1115
1115
|
d:
|
|
@@ -1119,9 +1119,9 @@ const BtIconChevronLeftMid = props =>
|
|
|
1119
1119
|
);
|
|
1120
1120
|
var BtIconChevronLeftMid_2 = BtIconChevronLeftMid;
|
|
1121
1121
|
|
|
1122
|
-
const React$
|
|
1122
|
+
const React$4 = React__default;
|
|
1123
1123
|
const BtIconChevronRightMid = props =>
|
|
1124
|
-
/*#__PURE__*/ React$
|
|
1124
|
+
/*#__PURE__*/ React$4.createElement(
|
|
1125
1125
|
"svg",
|
|
1126
1126
|
Object.assign(
|
|
1127
1127
|
{
|
|
@@ -1131,7 +1131,7 @@ const BtIconChevronRightMid = props =>
|
|
|
1131
1131
|
},
|
|
1132
1132
|
props
|
|
1133
1133
|
),
|
|
1134
|
-
/*#__PURE__*/ React$
|
|
1134
|
+
/*#__PURE__*/ React$4.createElement("path", {
|
|
1135
1135
|
fillRule: "evenodd",
|
|
1136
1136
|
clipRule: "evenodd",
|
|
1137
1137
|
d:
|
|
@@ -1441,9 +1441,9 @@ var CardLink = function (_a) {
|
|
|
1441
1441
|
React__default.createElement(Icon, { testId: "cardIcon", icon: BtIconChevronRightMid_2, size: 16 })))));
|
|
1442
1442
|
};
|
|
1443
1443
|
|
|
1444
|
-
const React$
|
|
1445
|
-
const
|
|
1446
|
-
/*#__PURE__*/ React$
|
|
1444
|
+
const React$3 = React__default;
|
|
1445
|
+
const BtIconTickAlt2Px = props =>
|
|
1446
|
+
/*#__PURE__*/ React$3.createElement(
|
|
1447
1447
|
"svg",
|
|
1448
1448
|
Object.assign(
|
|
1449
1449
|
{
|
|
@@ -1452,18 +1452,18 @@ const BtIconTickVariant = props =>
|
|
|
1452
1452
|
},
|
|
1453
1453
|
props
|
|
1454
1454
|
),
|
|
1455
|
-
/*#__PURE__*/ React$
|
|
1456
|
-
/*#__PURE__*/ React$
|
|
1455
|
+
/*#__PURE__*/ React$3.createElement("defs", null),
|
|
1456
|
+
/*#__PURE__*/ React$3.createElement("path", {
|
|
1457
1457
|
d:
|
|
1458
|
-
"M13.
|
|
1458
|
+
"M13.49963,21.91418l-4.707-4.707a1.0014,1.0014,0,0,1,0-1.41406,1.02353,1.02353,0,0,1,1.41406,0l3.293,3.293,8.293-8.293a.99989.99989,0,1,1,1.41406,1.41406Z",
|
|
1459
1459
|
fill: "currentColor"
|
|
1460
1460
|
})
|
|
1461
1461
|
);
|
|
1462
|
-
var
|
|
1462
|
+
var BtIconTickAlt2Px_2 = BtIconTickAlt2Px;
|
|
1463
1463
|
|
|
1464
|
-
const React$
|
|
1464
|
+
const React$2 = React__default;
|
|
1465
1465
|
const BtIconAlert = props =>
|
|
1466
|
-
/*#__PURE__*/ React$
|
|
1466
|
+
/*#__PURE__*/ React$2.createElement(
|
|
1467
1467
|
"svg",
|
|
1468
1468
|
Object.assign(
|
|
1469
1469
|
{
|
|
@@ -1472,17 +1472,17 @@ const BtIconAlert = props =>
|
|
|
1472
1472
|
},
|
|
1473
1473
|
props
|
|
1474
1474
|
),
|
|
1475
|
-
/*#__PURE__*/ React$
|
|
1476
|
-
/*#__PURE__*/ React$
|
|
1475
|
+
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
1476
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
1477
1477
|
d:
|
|
1478
1478
|
"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
1479
1479
|
fill: "currentColor"
|
|
1480
1480
|
}),
|
|
1481
|
-
/*#__PURE__*/ React$
|
|
1481
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
1482
1482
|
fill: "currentColor",
|
|
1483
1483
|
d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z"
|
|
1484
1484
|
}),
|
|
1485
|
-
/*#__PURE__*/ React$
|
|
1485
|
+
/*#__PURE__*/ React$2.createElement("path", {
|
|
1486
1486
|
d:
|
|
1487
1487
|
"M16.00488,19.00977a.49972.49972,0,0,0,.5-.5L16.50684,9.5a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,19.00977Z",
|
|
1488
1488
|
fill: "currentColor"
|
|
@@ -1543,14 +1543,14 @@ var Provider$3 = Context$2.Provider;
|
|
|
1543
1543
|
* Use `FormControl` to provide inputs with labels, helper text and error messages
|
|
1544
1544
|
*/
|
|
1545
1545
|
var FormControl = function (_a) {
|
|
1546
|
-
var children = _a.children, _b = _a.elementType, ElementType = _b === void 0 ? "div" : _b, errorMessage = _a.errorMessage, helper = _a.helper, htmlFor = _a.htmlFor, id = _a.id, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.requirementStatus, requirementStatus = _d === void 0 ? "optional" : _d, isDisabled = _a.isDisabled, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest$2(_a, ["children", "elementType", "errorMessage", "helper", "htmlFor", "id", "label", "labelSize", "requirementStatus", "isDisabled", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
|
|
1546
|
+
var children = _a.children, _b = _a.elementType, ElementType = _b === void 0 ? "div" : _b, errorMessage = _a.errorMessage, helper = _a.helper, htmlFor = _a.htmlFor, id = _a.id, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.requirementStatus, requirementStatus = _d === void 0 ? "optional" : _d, _e = _a.helperUnderLabel, helperUnderLabel = _e === void 0 ? false : _e, isDisabled = _a.isDisabled, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest$2(_a, ["children", "elementType", "errorMessage", "helper", "htmlFor", "id", "label", "labelSize", "requirementStatus", "helperUnderLabel", "isDisabled", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
|
|
1547
1547
|
var surface = useContext(Context$3).surface;
|
|
1548
|
-
var
|
|
1548
|
+
var _f = useAriaDescribedby({
|
|
1549
1549
|
disclosureText: disclosureText,
|
|
1550
1550
|
errorMessage: errorMessage,
|
|
1551
1551
|
helper: helper,
|
|
1552
1552
|
id: htmlFor || id // `htmlFor` is preference to keep this deterministic with TextInput
|
|
1553
|
-
}), ariaDescribedby =
|
|
1553
|
+
}), ariaDescribedby = _f.ariaDescribedby, idError = _f.idError, idHelper = _f.idHelper, idDisclosure = _f.idDisclosure;
|
|
1554
1554
|
var LabelType = ElementType === "div" ? "label" : "legend";
|
|
1555
1555
|
var elementProps = {};
|
|
1556
1556
|
var labelProps = {};
|
|
@@ -1576,11 +1576,12 @@ var FormControl = function (_a) {
|
|
|
1576
1576
|
React__default.createElement(LabelType, __assign$2({ className: "arc-FormControl-label" }, labelProps),
|
|
1577
1577
|
label,
|
|
1578
1578
|
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))),
|
|
1579
|
+
helperUnderLabel && (React__default.createElement(React__default.Fragment, null, helper && (React__default.createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)))),
|
|
1579
1580
|
children,
|
|
1580
|
-
errorMessage ? (React__default.createElement("div", { className: "arc-FormControl-error", id: idError },
|
|
1581
|
+
!helperUnderLabel && (React__default.createElement(React__default.Fragment, null, errorMessage ? (React__default.createElement("div", { className: "arc-FormControl-error", id: idError },
|
|
1581
1582
|
React__default.createElement("span", { className: "arc-FormControl-error--icon" },
|
|
1582
1583
|
React__default.createElement(BtIconAlert_2, null)),
|
|
1583
|
-
errorMessage)) : disclosureTitle ? (React__default.createElement(FormControlDisclosure, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize, id: idDisclosure }, disclosureText)) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))));
|
|
1584
|
+
errorMessage)) : disclosureTitle ? (React__default.createElement(FormControlDisclosure, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize, id: idDisclosure }, disclosureText)) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))))));
|
|
1584
1585
|
};
|
|
1585
1586
|
|
|
1586
1587
|
/**
|
|
@@ -1615,7 +1616,7 @@ var Checkbox = forwardRef(function (_a, ref) {
|
|
|
1615
1616
|
React__default.createElement("label", { id: idLabel, htmlFor: id, className: "arc-Checkbox-label" },
|
|
1616
1617
|
React__default.createElement("input", __assign$2({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs(props))),
|
|
1617
1618
|
React__default.createElement("span", { className: "arc-Checkbox-box" },
|
|
1618
|
-
React__default.createElement(
|
|
1619
|
+
React__default.createElement(BtIconTickAlt2Px_2, null)),
|
|
1619
1620
|
React__default.createElement("span", null,
|
|
1620
1621
|
label,
|
|
1621
1622
|
!isRequired && requirementStatus !== "optional" ? (React__default.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
@@ -1719,9 +1720,9 @@ var Curve = function (_a) {
|
|
|
1719
1720
|
_b)) }, filterDataAttrs(props))));
|
|
1720
1721
|
};
|
|
1721
1722
|
|
|
1722
|
-
const React$
|
|
1723
|
+
const React$1 = React__default;
|
|
1723
1724
|
const BtIconChevronDown2Px = props =>
|
|
1724
|
-
/*#__PURE__*/ React$
|
|
1725
|
+
/*#__PURE__*/ React$1.createElement(
|
|
1725
1726
|
"svg",
|
|
1726
1727
|
Object.assign(
|
|
1727
1728
|
{
|
|
@@ -1730,8 +1731,8 @@ const BtIconChevronDown2Px = props =>
|
|
|
1730
1731
|
},
|
|
1731
1732
|
props
|
|
1732
1733
|
),
|
|
1733
|
-
/*#__PURE__*/ React$
|
|
1734
|
-
/*#__PURE__*/ React$
|
|
1734
|
+
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
1735
|
+
/*#__PURE__*/ React$1.createElement("path", {
|
|
1735
1736
|
d:
|
|
1736
1737
|
"M15.99316,23.91406,2.294,10.207A.99989.99989,0,1,1,3.708,8.793l12.28515,12.293L28.292,8.793A.99989.99989,0,1,1,29.70605,10.207Z",
|
|
1737
1738
|
fill: "currentColor"
|
|
@@ -1931,7 +1932,7 @@ var RadioGroup = function (_a) {
|
|
|
1931
1932
|
size: size
|
|
1932
1933
|
} },
|
|
1933
1934
|
React__default.createElement("div", __assign$2({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
|
|
1934
|
-
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable" }, children))));
|
|
1935
|
+
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
|
|
1935
1936
|
};
|
|
1936
1937
|
RadioButton.displayName = "RadioGroup.RadioButton";
|
|
1937
1938
|
RadioGroup.RadioButton = RadioButton;
|
|
@@ -33755,11 +33756,11 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
|
33755
33756
|
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
33756
33757
|
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? useLayoutEffect : ()=>{};
|
|
33757
33758
|
|
|
33758
|
-
const $1746a345f3d73bb7$var$useReactId = React$
|
|
33759
|
+
const $1746a345f3d73bb7$var$useReactId = React$9['useId'.toString()] || (()=>undefined
|
|
33759
33760
|
);
|
|
33760
33761
|
let $1746a345f3d73bb7$var$count = 0;
|
|
33761
33762
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
33762
|
-
const [id, setId] = React$
|
|
33763
|
+
const [id, setId] = React$9.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
|
|
33763
33764
|
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
33764
33765
|
if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
33765
33766
|
);
|
|
@@ -34244,7 +34245,7 @@ var SideCar$1 = function (_a) {
|
|
|
34244
34245
|
if (!Target) {
|
|
34245
34246
|
throw new Error('Sidecar medium not found');
|
|
34246
34247
|
}
|
|
34247
|
-
return React$
|
|
34248
|
+
return React$9.createElement(Target, __assign({}, rest));
|
|
34248
34249
|
};
|
|
34249
34250
|
SideCar$1.isSideCarExport = true;
|
|
34250
34251
|
function exportSidecar(medium, exported) {
|
|
@@ -34260,9 +34261,9 @@ var nothing = function () {
|
|
|
34260
34261
|
/**
|
|
34261
34262
|
* Removes scrollbar from the page and contain the scroll within the Lock
|
|
34262
34263
|
*/
|
|
34263
|
-
var RemoveScroll = React$
|
|
34264
|
-
var ref = React$
|
|
34265
|
-
var _a = React$
|
|
34264
|
+
var RemoveScroll = React$9.forwardRef(function (props, parentRef) {
|
|
34265
|
+
var ref = React$9.useRef(null);
|
|
34266
|
+
var _a = React$9.useState({
|
|
34266
34267
|
onScrollCapture: nothing,
|
|
34267
34268
|
onWheelCapture: nothing,
|
|
34268
34269
|
onTouchMoveCapture: nothing,
|
|
@@ -34271,9 +34272,9 @@ var RemoveScroll = React$a.forwardRef(function (props, parentRef) {
|
|
|
34271
34272
|
var SideCar = sideCar;
|
|
34272
34273
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
34273
34274
|
var containerProps = __assign$1(__assign$1({}, rest), callbacks);
|
|
34274
|
-
return (React$
|
|
34275
|
-
enabled && (React$
|
|
34276
|
-
forwardProps ? (React$
|
|
34275
|
+
return (React$9.createElement(React$9.Fragment, null,
|
|
34276
|
+
enabled && (React$9.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),
|
|
34277
|
+
forwardProps ? (React$9.cloneElement(React$9.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef }))) : (React$9.createElement(Container, __assign$1({}, containerProps, { className: className, ref: containerRef }), children))));
|
|
34277
34278
|
});
|
|
34278
34279
|
RemoveScroll.defaultProps = {
|
|
34279
34280
|
enabled: true,
|
|
@@ -34352,7 +34353,7 @@ var stylesheetSingleton = function () {
|
|
|
34352
34353
|
var styleHookSingleton = function () {
|
|
34353
34354
|
var sheet = stylesheetSingleton();
|
|
34354
34355
|
return function (styles, isDynamic) {
|
|
34355
|
-
React$
|
|
34356
|
+
React$9.useEffect(function () {
|
|
34356
34357
|
sheet.add(styles);
|
|
34357
34358
|
return function () {
|
|
34358
34359
|
sheet.remove();
|
|
@@ -34433,8 +34434,8 @@ var RemoveScrollBar = function (props) {
|
|
|
34433
34434
|
however it will be used only by the "first" invocation
|
|
34434
34435
|
due to singleton nature of <Style
|
|
34435
34436
|
*/
|
|
34436
|
-
var gap = React$
|
|
34437
|
-
return React$
|
|
34437
|
+
var gap = React$9.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
|
|
34438
|
+
return React$9.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
|
|
34438
34439
|
};
|
|
34439
34440
|
|
|
34440
34441
|
var passiveSupported = false;
|
|
@@ -34566,16 +34567,16 @@ var generateStyle = function (id) { return "\n .block-interactivity-".concat(id
|
|
|
34566
34567
|
var idCounter = 0;
|
|
34567
34568
|
var lockStack = [];
|
|
34568
34569
|
function RemoveScrollSideCar(props) {
|
|
34569
|
-
var shouldPreventQueue = React$
|
|
34570
|
-
var touchStartRef = React$
|
|
34571
|
-
var activeAxis = React$
|
|
34572
|
-
var id = React$
|
|
34573
|
-
var Style = React$
|
|
34574
|
-
var lastProps = React$
|
|
34575
|
-
React$
|
|
34570
|
+
var shouldPreventQueue = React$9.useRef([]);
|
|
34571
|
+
var touchStartRef = React$9.useRef([0, 0]);
|
|
34572
|
+
var activeAxis = React$9.useRef();
|
|
34573
|
+
var id = React$9.useState(idCounter++)[0];
|
|
34574
|
+
var Style = React$9.useState(function () { return styleSingleton(); })[0];
|
|
34575
|
+
var lastProps = React$9.useRef(props);
|
|
34576
|
+
React$9.useEffect(function () {
|
|
34576
34577
|
lastProps.current = props;
|
|
34577
34578
|
}, [props]);
|
|
34578
|
-
React$
|
|
34579
|
+
React$9.useEffect(function () {
|
|
34579
34580
|
if (props.inert) {
|
|
34580
34581
|
document.body.classList.add("block-interactivity-".concat(id));
|
|
34581
34582
|
var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
@@ -34587,7 +34588,7 @@ function RemoveScrollSideCar(props) {
|
|
|
34587
34588
|
}
|
|
34588
34589
|
return;
|
|
34589
34590
|
}, [props.inert, props.lockRef.current, props.shards]);
|
|
34590
|
-
var shouldCancelEvent = React$
|
|
34591
|
+
var shouldCancelEvent = React$9.useCallback(function (event, parent) {
|
|
34591
34592
|
if ('touches' in event && event.touches.length === 2) {
|
|
34592
34593
|
return !lastProps.current.allowPinchZoom;
|
|
34593
34594
|
}
|
|
@@ -34626,7 +34627,7 @@ function RemoveScrollSideCar(props) {
|
|
|
34626
34627
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
34627
34628
|
return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
|
|
34628
34629
|
}, []);
|
|
34629
|
-
var shouldPrevent = React$
|
|
34630
|
+
var shouldPrevent = React$9.useCallback(function (_event) {
|
|
34630
34631
|
var event = _event;
|
|
34631
34632
|
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
|
|
34632
34633
|
// not the last active
|
|
@@ -34655,24 +34656,24 @@ function RemoveScrollSideCar(props) {
|
|
|
34655
34656
|
}
|
|
34656
34657
|
}
|
|
34657
34658
|
}, []);
|
|
34658
|
-
var shouldCancel = React$
|
|
34659
|
+
var shouldCancel = React$9.useCallback(function (name, delta, target, should) {
|
|
34659
34660
|
var event = { name: name, delta: delta, target: target, should: should };
|
|
34660
34661
|
shouldPreventQueue.current.push(event);
|
|
34661
34662
|
setTimeout(function () {
|
|
34662
34663
|
shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
|
|
34663
34664
|
}, 1);
|
|
34664
34665
|
}, []);
|
|
34665
|
-
var scrollTouchStart = React$
|
|
34666
|
+
var scrollTouchStart = React$9.useCallback(function (event) {
|
|
34666
34667
|
touchStartRef.current = getTouchXY(event);
|
|
34667
34668
|
activeAxis.current = undefined;
|
|
34668
34669
|
}, []);
|
|
34669
|
-
var scrollWheel = React$
|
|
34670
|
+
var scrollWheel = React$9.useCallback(function (event) {
|
|
34670
34671
|
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
34671
34672
|
}, []);
|
|
34672
|
-
var scrollTouchMove = React$
|
|
34673
|
+
var scrollTouchMove = React$9.useCallback(function (event) {
|
|
34673
34674
|
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
34674
34675
|
}, []);
|
|
34675
|
-
React$
|
|
34676
|
+
React$9.useEffect(function () {
|
|
34676
34677
|
lockStack.push(Style);
|
|
34677
34678
|
props.setCallbacks({
|
|
34678
34679
|
onScrollCapture: scrollWheel,
|
|
@@ -34690,14 +34691,14 @@ function RemoveScrollSideCar(props) {
|
|
|
34690
34691
|
};
|
|
34691
34692
|
}, []);
|
|
34692
34693
|
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
34693
|
-
return (React$
|
|
34694
|
-
inert ? React$
|
|
34695
|
-
removeScrollBar ? React$
|
|
34694
|
+
return (React$9.createElement(React$9.Fragment, null,
|
|
34695
|
+
inert ? React$9.createElement(Style, { styles: generateStyle(id) }) : null,
|
|
34696
|
+
removeScrollBar ? React$9.createElement(RemoveScrollBar, { gapMode: "margin" }) : null));
|
|
34696
34697
|
}
|
|
34697
34698
|
|
|
34698
34699
|
var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
34699
34700
|
|
|
34700
|
-
var ReactRemoveScroll = React$
|
|
34701
|
+
var ReactRemoveScroll = React$9.forwardRef(function (props, ref) { return (React$9.createElement(RemoveScroll, __assign$1({}, props, { ref: ref, sideCar: SideCar }))); });
|
|
34701
34702
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
34702
34703
|
var $01b9c$RemoveScroll = ReactRemoveScroll;
|
|
34703
34704
|
|
|
@@ -35708,28 +35709,8 @@ const $cc7e05a45900e73f$export$c3468e2714d175fa = $cc7e05a45900e73f$export$6b919
|
|
|
35708
35709
|
const $cc7e05a45900e73f$export$2f60d3ec9ad468f2 = $cc7e05a45900e73f$export$d8117927658af6d7;
|
|
35709
35710
|
const $cc7e05a45900e73f$export$bf1aedc3039c8d63 = $cc7e05a45900e73f$export$ff951e476c12189;
|
|
35710
35711
|
|
|
35711
|
-
const React$1 = React__default;
|
|
35712
|
-
const BtIconChevronUp2Px = props =>
|
|
35713
|
-
/*#__PURE__*/ React$1.createElement(
|
|
35714
|
-
"svg",
|
|
35715
|
-
Object.assign(
|
|
35716
|
-
{
|
|
35717
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
35718
|
-
viewBox: "0 0 32 32"
|
|
35719
|
-
},
|
|
35720
|
-
props
|
|
35721
|
-
),
|
|
35722
|
-
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
35723
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
35724
|
-
d:
|
|
35725
|
-
"M28.999,23.5a.99676.99676,0,0,1-.707-.293l-12.28515-12.293L3.708,23.207A.99989.99989,0,0,1,2.294,21.793l13.71289-13.707L29.70605,21.793a.99976.99976,0,0,1-.707,1.707Z",
|
|
35726
|
-
fill: "currentColor"
|
|
35727
|
-
})
|
|
35728
|
-
);
|
|
35729
|
-
var BtIconChevronUp2Px_2 = BtIconChevronUp2Px;
|
|
35730
|
-
|
|
35731
35712
|
const React = React__default;
|
|
35732
|
-
const
|
|
35713
|
+
const BtIconChevronUp2Px = props =>
|
|
35733
35714
|
/*#__PURE__*/ React.createElement(
|
|
35734
35715
|
"svg",
|
|
35735
35716
|
Object.assign(
|
|
@@ -35742,11 +35723,11 @@ const BtIconTickAlt2Px = props =>
|
|
|
35742
35723
|
/*#__PURE__*/ React.createElement("defs", null),
|
|
35743
35724
|
/*#__PURE__*/ React.createElement("path", {
|
|
35744
35725
|
d:
|
|
35745
|
-
"
|
|
35726
|
+
"M28.999,23.5a.99676.99676,0,0,1-.707-.293l-12.28515-12.293L3.708,23.207A.99989.99989,0,0,1,2.294,21.793l13.71289-13.707L29.70605,21.793a.99976.99976,0,0,1-.707,1.707Z",
|
|
35746
35727
|
fill: "currentColor"
|
|
35747
35728
|
})
|
|
35748
35729
|
);
|
|
35749
|
-
var
|
|
35730
|
+
var BtIconChevronUp2Px_2 = BtIconChevronUp2Px;
|
|
35750
35731
|
|
|
35751
35732
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
35752
35733
|
var Select = function (_a) {
|