@thecb/components 9.0.0-beta.1 → 9.0.0-beta.11
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/index.cjs.js +132 -97
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +132 -97
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +3 -1
- package/src/components/atoms/country-dropdown/CountryDropdown.js +3 -3
- package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +0 -1
- package/src/components/atoms/display-box/DisplayBox.js +1 -6
- package/src/components/atoms/dropdown/Dropdown.js +14 -15
- package/src/components/atoms/form-layouts/FormInput.js +2 -3
- package/src/components/atoms/form-layouts/index.d.ts +2 -2
- package/src/components/atoms/form-select/FormSelect.js +10 -5
- package/src/components/atoms/form-select/index.d.ts +2 -2
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +1 -4
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +1 -2
- package/src/components/molecules/address-form/AddressForm.js +10 -3
- package/src/components/molecules/modal/Modal.js +1 -1
- package/src/components/molecules/payment-details/PaymentDetails.js +36 -16
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +1 -1
- package/src/components/molecules/phone-form/PhoneForm.js +2 -0
- package/src/components/molecules/registration-form/RegistrationForm.js +5 -0
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +2 -4
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +1 -3
- package/src/components/atoms/dropdown/index.d.ts +0 -32
- package/src/components/atoms/state-province-dropdown/index.d.ts +0 -26
package/dist/index.cjs.js
CHANGED
|
@@ -6231,7 +6231,7 @@ return numeral;
|
|
|
6231
6231
|
}));
|
|
6232
6232
|
});
|
|
6233
6233
|
|
|
6234
|
-
var noop
|
|
6234
|
+
var noop = function noop() {};
|
|
6235
6235
|
|
|
6236
6236
|
var formatMoneyString = function formatMoneyString(s) {
|
|
6237
6237
|
return numeral(s).format("$0,0.00");
|
|
@@ -6367,7 +6367,7 @@ var titleCaseString = function titleCaseString(string) {
|
|
|
6367
6367
|
|
|
6368
6368
|
var general = /*#__PURE__*/Object.freeze({
|
|
6369
6369
|
__proto__: null,
|
|
6370
|
-
noop: noop
|
|
6370
|
+
noop: noop,
|
|
6371
6371
|
displayCurrency: displayCurrency,
|
|
6372
6372
|
convertCentsToMoneyInt: convertCentsToMoneyInt,
|
|
6373
6373
|
formatPercent: formatPercent,
|
|
@@ -10557,7 +10557,7 @@ var isRefObject = function (ref) {
|
|
|
10557
10557
|
return typeof ref === "object" && ref.hasOwnProperty("current");
|
|
10558
10558
|
};
|
|
10559
10559
|
|
|
10560
|
-
var noop$
|
|
10560
|
+
var noop$1 = function (v) { return v; };
|
|
10561
10561
|
var ComponentDragControls = /** @class */ (function () {
|
|
10562
10562
|
function ComponentDragControls(_a) {
|
|
10563
10563
|
var ref = _a.ref, values = _a.values, controls = _a.controls;
|
|
@@ -10585,7 +10585,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10585
10585
|
* @internal
|
|
10586
10586
|
*/
|
|
10587
10587
|
this.props = {
|
|
10588
|
-
transformPagePoint: noop$
|
|
10588
|
+
transformPagePoint: noop$1,
|
|
10589
10589
|
};
|
|
10590
10590
|
/**
|
|
10591
10591
|
* References to the MotionValues used for tracking the current dragged point.
|
|
@@ -12918,7 +12918,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
12918
12918
|
|
|
12919
12919
|
var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
12920
12920
|
var _ref2$action = _ref2.action,
|
|
12921
|
-
action = _ref2$action === void 0 ? noop
|
|
12921
|
+
action = _ref2$action === void 0 ? noop : _ref2$action,
|
|
12922
12922
|
_ref2$variant = _ref2.variant,
|
|
12923
12923
|
variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
|
|
12924
12924
|
text = _ref2.text,
|
|
@@ -22102,7 +22102,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22102
22102
|
name = _ref4.name,
|
|
22103
22103
|
checked = _ref4.checked,
|
|
22104
22104
|
_ref4$onChange = _ref4.onChange,
|
|
22105
|
-
onChange = _ref4$onChange === void 0 ? noop
|
|
22105
|
+
onChange = _ref4$onChange === void 0 ? noop : _ref4$onChange,
|
|
22106
22106
|
_ref4$disabled = _ref4.disabled,
|
|
22107
22107
|
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
22108
22108
|
themeValues = _ref4.themeValues,
|
|
@@ -22115,7 +22115,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22115
22115
|
extraStyles = _ref4.extraStyles,
|
|
22116
22116
|
textExtraStyles = _ref4.textExtraStyles,
|
|
22117
22117
|
_ref4$dataQa = _ref4.dataQa,
|
|
22118
|
-
dataQa = _ref4$dataQa === void 0 ?
|
|
22118
|
+
dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
|
|
22119
22119
|
|
|
22120
22120
|
var _useState = React.useState(false),
|
|
22121
22121
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22158,9 +22158,11 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22158
22158
|
"aria-invalid": error,
|
|
22159
22159
|
"aria-describedby": error ? "".concat(name, "-error-message") : ""
|
|
22160
22160
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22161
|
+
role: "checkbox",
|
|
22161
22162
|
error: error,
|
|
22162
22163
|
disabled: disabled,
|
|
22163
22164
|
checked: checked,
|
|
22165
|
+
"aria-checked": checked,
|
|
22164
22166
|
focused: focused,
|
|
22165
22167
|
defaultStyles: themeValues.defaultStyles,
|
|
22166
22168
|
checkedStyles: themeValues.checkedStyles,
|
|
@@ -22295,7 +22297,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
22295
22297
|
padding: "0.875rem",
|
|
22296
22298
|
borderRadius: "4px",
|
|
22297
22299
|
minWidth: "30%",
|
|
22298
|
-
onClick: disabled ? noop
|
|
22300
|
+
onClick: disabled ? noop : onSelect,
|
|
22299
22301
|
borderColor: borderColor,
|
|
22300
22302
|
borderSize: "1px",
|
|
22301
22303
|
color: color,
|
|
@@ -22310,8 +22312,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
22310
22312
|
name: name,
|
|
22311
22313
|
"aria-label": name,
|
|
22312
22314
|
htmlFor: "checkbox-".concat(name, "-").concat(index),
|
|
22313
|
-
onClick: disabled ? noop
|
|
22314
|
-
onKeyDown: disabled ? noop
|
|
22315
|
+
onClick: disabled ? noop : onSelect,
|
|
22316
|
+
onKeyDown: disabled ? noop : onSelect,
|
|
22315
22317
|
tabIndex: 0
|
|
22316
22318
|
}, /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
22317
22319
|
theme: {
|
|
@@ -23735,7 +23737,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23735
23737
|
_ref8$disabledValues = _ref8.disabledValues,
|
|
23736
23738
|
disabledValues = _ref8$disabledValues === void 0 ? [] : _ref8$disabledValues,
|
|
23737
23739
|
_ref8$onClick = _ref8.onClick,
|
|
23738
|
-
_onClick = _ref8$onClick === void 0 ? noop
|
|
23740
|
+
_onClick = _ref8$onClick === void 0 ? noop : _ref8$onClick,
|
|
23739
23741
|
themeValues = _ref8.themeValues,
|
|
23740
23742
|
maxHeight = _ref8.maxHeight,
|
|
23741
23743
|
_ref8$widthFitOptions = _ref8.widthFitOptions,
|
|
@@ -23994,17 +23996,20 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23994
23996
|
as: "input",
|
|
23995
23997
|
"aria-multiline": "false",
|
|
23996
23998
|
autoComplete: autocompleteValue,
|
|
23997
|
-
"aria-controls": "".concat(
|
|
23999
|
+
"aria-controls": "".concat(ariaLabelledby, "_listbox"),
|
|
23998
24000
|
"aria-activedescendant": "focused_option",
|
|
23999
24001
|
"aria-owns": "".concat(ariaLabelledby, "_listbox"),
|
|
24000
24002
|
"aria-haspopup": "listbox",
|
|
24001
24003
|
"aria-labelledby": ariaLabelledby,
|
|
24002
24004
|
"aria-describedby": ariaDescribedby,
|
|
24003
24005
|
"aria-expanded": isOpen,
|
|
24006
|
+
"aria-required": options.required,
|
|
24007
|
+
"aria-invalid": ariaInvalid,
|
|
24004
24008
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
24005
24009
|
borderRadius: "2px",
|
|
24006
24010
|
borderSize: "1px",
|
|
24007
24011
|
borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
|
|
24012
|
+
dataQa: placeholder,
|
|
24008
24013
|
extraStyles: disabled ? "".concat(inputPlaceholderTextStyle).concat(inputDisabledStyle) : inputPlaceholderTextStyle,
|
|
24009
24014
|
hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
24010
24015
|
isOpen: isOpen,
|
|
@@ -24020,17 +24025,14 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24020
24025
|
},
|
|
24021
24026
|
padding: "12px",
|
|
24022
24027
|
placeholder: getSelection(),
|
|
24028
|
+
required: options.required,
|
|
24023
24029
|
role: "combobox",
|
|
24024
24030
|
themeValues: themeValues,
|
|
24025
24031
|
title: hasTitles ? getSelection() : null,
|
|
24026
24032
|
type: "text",
|
|
24027
24033
|
tabIndex: 0,
|
|
24028
24034
|
value: inputValue,
|
|
24029
|
-
width: "100%"
|
|
24030
|
-
dataQa: placeholder,
|
|
24031
|
-
required: options.required,
|
|
24032
|
-
"aria-required": options.required,
|
|
24033
|
-
"aria-invalid": ariaInvalid
|
|
24035
|
+
width: "100%"
|
|
24034
24036
|
}), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
24035
24037
|
open: isOpen,
|
|
24036
24038
|
onClick: _onClick
|
|
@@ -24070,14 +24072,14 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24070
24072
|
"data-qa": choice.text,
|
|
24071
24073
|
themeValues: themeValues,
|
|
24072
24074
|
title: hasTitles ? choice.text : null,
|
|
24075
|
+
role: "option",
|
|
24073
24076
|
onFocus: function onFocus() {
|
|
24074
24077
|
return setFocusedRef(optionRefs.current[i]);
|
|
24075
|
-
}
|
|
24076
|
-
role: "option"
|
|
24078
|
+
}
|
|
24077
24079
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24078
24080
|
variant: "p",
|
|
24079
24081
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24080
|
-
extraStyles: "padding-left: 16px; \n
|
|
24082
|
+
extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
|
|
24081
24083
|
}, choice.text));
|
|
24082
24084
|
}))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
24083
24085
|
};
|
|
@@ -24182,11 +24184,11 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24182
24184
|
_ref$hasTitles = _ref.hasTitles,
|
|
24183
24185
|
hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
|
|
24184
24186
|
_ref$autocompleteValu = _ref.autocompleteValue,
|
|
24185
|
-
autocompleteValue = _ref$autocompleteValu === void 0 ?
|
|
24187
|
+
autocompleteValue = _ref$autocompleteValu === void 0 ? null : _ref$autocompleteValu,
|
|
24186
24188
|
_ref$smoothScroll = _ref.smoothScroll,
|
|
24187
24189
|
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll,
|
|
24188
24190
|
_ref$dataQa = _ref.dataQa,
|
|
24189
|
-
dataQa = _ref$dataQa === void 0 ?
|
|
24191
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
24190
24192
|
|
|
24191
24193
|
var _useState = React.useState(false),
|
|
24192
24194
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24210,6 +24212,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24210
24212
|
return /*#__PURE__*/React__default.createElement(SelectContainer, {
|
|
24211
24213
|
ref: dropdownRef,
|
|
24212
24214
|
disabled: disabled,
|
|
24215
|
+
"aria-disabled": disabled,
|
|
24213
24216
|
"data-qa": dataQa
|
|
24214
24217
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
24215
24218
|
padding: "0",
|
|
@@ -24225,8 +24228,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24225
24228
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24226
24229
|
id: createIdFromString(labelTextWhenNoError)
|
|
24227
24230
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
24228
|
-
ariaLabelledby: labelTextWhenNoError,
|
|
24229
|
-
|
|
24231
|
+
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24232
|
+
ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24230
24233
|
maxHeight: dropdownMaxHeight,
|
|
24231
24234
|
hasTitles: hasTitles,
|
|
24232
24235
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -25008,20 +25011,21 @@ var options = [{
|
|
|
25008
25011
|
}];
|
|
25009
25012
|
|
|
25010
25013
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
25011
|
-
var
|
|
25014
|
+
var _ref$labelTextWhenNoE = _ref.labelTextWhenNoError,
|
|
25015
|
+
labelTextWhenNoError = _ref$labelTextWhenNoE === void 0 ? "Country" : _ref$labelTextWhenNoE,
|
|
25012
25016
|
errorMessages = _ref.errorMessages,
|
|
25013
25017
|
field = _ref.field,
|
|
25014
25018
|
fieldActions = _ref.fieldActions,
|
|
25015
25019
|
showErrors = _ref.showErrors,
|
|
25016
25020
|
onChange = _ref.onChange,
|
|
25017
25021
|
_ref$dataQa = _ref.dataQa,
|
|
25018
|
-
dataQa = _ref$dataQa === void 0 ?
|
|
25022
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
25019
25023
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25020
25024
|
options: options,
|
|
25021
25025
|
field: field,
|
|
25022
25026
|
fieldActions: fieldActions,
|
|
25023
25027
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
25024
|
-
dataQa: dataQa,
|
|
25028
|
+
dataQa: dataQa || "CountryDropdown",
|
|
25025
25029
|
errorMessages: errorMessages,
|
|
25026
25030
|
showErrors: showErrors,
|
|
25027
25031
|
onChange: onChange,
|
|
@@ -25173,7 +25177,7 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
25173
25177
|
themeValues = _ref.themeValues,
|
|
25174
25178
|
showError = _ref.showError,
|
|
25175
25179
|
_ref$dataQa = _ref.dataQa,
|
|
25176
|
-
dataQa = _ref$dataQa === void 0 ?
|
|
25180
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
25177
25181
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
25178
25182
|
padding: "0.5rem 0 1.5rem 0"
|
|
25179
25183
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -25676,7 +25680,7 @@ var Popover = function Popover(_ref) {
|
|
|
25676
25680
|
extraStyles: "position: relative; ".concat(extraStyles)
|
|
25677
25681
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
25678
25682
|
action: function action() {
|
|
25679
|
-
return noop
|
|
25683
|
+
return noop;
|
|
25680
25684
|
},
|
|
25681
25685
|
onFocus: function onFocus() {
|
|
25682
25686
|
handleTogglePopover(true);
|
|
@@ -25953,10 +25957,11 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25953
25957
|
background = _ref15.background,
|
|
25954
25958
|
customHeight = _ref15.customHeight,
|
|
25955
25959
|
_ref15$autocompleteVa = _ref15.autocompleteValue,
|
|
25956
|
-
autocompleteValue = _ref15$autocompleteVa === void 0 ?
|
|
25960
|
+
autocompleteValue = _ref15$autocompleteVa === void 0 ? null : _ref15$autocompleteVa,
|
|
25957
25961
|
extraStyles = _ref15.extraStyles,
|
|
25958
25962
|
removeFromValue = _ref15.removeFromValue,
|
|
25959
|
-
dataQa = _ref15.dataQa,
|
|
25963
|
+
_ref15$dataQa = _ref15.dataQa,
|
|
25964
|
+
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
25960
25965
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
25961
25966
|
|
|
25962
25967
|
var _useState = React.useState(false),
|
|
@@ -26067,8 +26072,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26067
26072
|
direction: "row",
|
|
26068
26073
|
justify: "space-between",
|
|
26069
26074
|
"aria-live": "polite",
|
|
26070
|
-
"aria-atomic": true
|
|
26071
|
-
"data-qa": "".concat(labelTextWhenNoError, " error message")
|
|
26075
|
+
"aria-atomic": true
|
|
26072
26076
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26073
26077
|
color: ERROR_COLOR,
|
|
26074
26078
|
variant: "pXS",
|
|
@@ -26333,7 +26337,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
26333
26337
|
inactiveColor = _ref4.inactiveColor,
|
|
26334
26338
|
isActive = _ref4.isActive,
|
|
26335
26339
|
_ref4$onClick = _ref4.onClick,
|
|
26336
|
-
onClick = _ref4$onClick === void 0 ? noop
|
|
26340
|
+
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
26337
26341
|
controls = _ref4.controls;
|
|
26338
26342
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
26339
26343
|
className: isActive === true ? "active" : "",
|
|
@@ -27141,7 +27145,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27141
27145
|
themeValues = _ref5.themeValues,
|
|
27142
27146
|
index = _ref5.index,
|
|
27143
27147
|
_ref5$handleChange = _ref5.handleChange,
|
|
27144
|
-
handleChange = _ref5$handleChange === void 0 ? noop
|
|
27148
|
+
handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
|
|
27145
27149
|
field = _ref5.field,
|
|
27146
27150
|
config = _ref5.config;
|
|
27147
27151
|
|
|
@@ -37957,9 +37961,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37957
37961
|
showErrors = _ref.showErrors,
|
|
37958
37962
|
countryCode = _ref.countryCode,
|
|
37959
37963
|
_ref$autocompleteValu = _ref.autocompleteValue,
|
|
37960
|
-
autocompleteValue = _ref$autocompleteValu === void 0 ?
|
|
37961
|
-
_ref$dataQa = _ref.dataQa,
|
|
37962
|
-
dataQa = _ref$dataQa === void 0 ? "StateProvinceDropdown" : _ref$dataQa;
|
|
37964
|
+
autocompleteValue = _ref$autocompleteValu === void 0 ? null : _ref$autocompleteValu;
|
|
37963
37965
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
37964
37966
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
37965
37967
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -37969,9 +37971,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37969
37971
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
37970
37972
|
errorMessages: errorMessages,
|
|
37971
37973
|
showErrors: showErrors,
|
|
37972
|
-
|
|
37973
|
-
autocompleteValue: autocompleteValue,
|
|
37974
|
-
dataQa: dataQa
|
|
37974
|
+
autocompleteValue: autocompleteValue
|
|
37975
37975
|
});
|
|
37976
37976
|
};
|
|
37977
37977
|
|
|
@@ -38027,7 +38027,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38027
38027
|
var _ref6$isOn = _ref6.isOn,
|
|
38028
38028
|
isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
|
|
38029
38029
|
_ref6$onToggle = _ref6.onToggle,
|
|
38030
|
-
onToggle = _ref6$onToggle === void 0 ? noop
|
|
38030
|
+
onToggle = _ref6$onToggle === void 0 ? noop : _ref6$onToggle,
|
|
38031
38031
|
_ref6$disabled = _ref6.disabled,
|
|
38032
38032
|
disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
|
|
38033
38033
|
_ref6$name = _ref6.name,
|
|
@@ -38137,15 +38137,15 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38137
38137
|
}, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
|
|
38138
38138
|
"aria-label": name,
|
|
38139
38139
|
checked: isOn,
|
|
38140
|
-
onChange: disabled ? noop
|
|
38140
|
+
onChange: disabled ? noop : onToggle,
|
|
38141
38141
|
disabled: disabled,
|
|
38142
38142
|
id: "#toggle-".concat(name),
|
|
38143
38143
|
isMobile: isMobile
|
|
38144
38144
|
}), /*#__PURE__*/React__default.createElement(VisibleSwitch, {
|
|
38145
38145
|
name: name,
|
|
38146
38146
|
htmlFor: "#toggle-".concat(name),
|
|
38147
|
-
onClick: disabled ? noop
|
|
38148
|
-
onKeyDown: disabled ? noop
|
|
38147
|
+
onClick: disabled ? noop : onToggle,
|
|
38148
|
+
onKeyDown: disabled ? noop : handleKeyDown,
|
|
38149
38149
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
38150
38150
|
tabIndex: disabled ? -1 : 0,
|
|
38151
38151
|
disabled: disabled,
|
|
@@ -40363,7 +40363,9 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40363
40363
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40364
40364
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40365
40365
|
saveToWallet = _ref.saveToWallet,
|
|
40366
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
40366
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
40367
|
+
_ref$dataQa = _ref.dataQa,
|
|
40368
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
40367
40369
|
|
|
40368
40370
|
if (clearOnDismount) {
|
|
40369
40371
|
React.useEffect(function () {
|
|
@@ -40387,7 +40389,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40387
40389
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
40388
40390
|
variant: variant,
|
|
40389
40391
|
role: "form",
|
|
40390
|
-
"aria-label": "Address"
|
|
40392
|
+
"aria-label": "Address",
|
|
40393
|
+
dataQa: dataQa
|
|
40391
40394
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(CountryDropdown, {
|
|
40392
40395
|
labelTextWhenNoError: "Country",
|
|
40393
40396
|
errorMessages: countryErrorMessages,
|
|
@@ -40416,7 +40419,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40416
40419
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40420
|
},
|
|
40418
40421
|
autocompleteValue: "address-line1",
|
|
40419
|
-
dataQa: "Address
|
|
40422
|
+
dataQa: "Address"
|
|
40420
40423
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40421
40424
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40422
40425
|
field: fields.street2,
|
|
@@ -40565,7 +40568,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40565
40568
|
fields = _ref.fields,
|
|
40566
40569
|
actions = _ref.actions,
|
|
40567
40570
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40568
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40571
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40569
40572
|
showErrors = _ref.showErrors,
|
|
40570
40573
|
isMobile = _ref.isMobile,
|
|
40571
40574
|
revenueManagement = _ref.revenueManagement,
|
|
@@ -40785,8 +40788,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40785
40788
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40786
40789
|
padding: customPadding ? customPadding : "0",
|
|
40787
40790
|
background: themeValues.headingBackgroundColor,
|
|
40788
|
-
onClick: isMobile && supportsTouch ? noop
|
|
40789
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop
|
|
40791
|
+
onClick: isMobile && supportsTouch ? noop : toggleSection,
|
|
40792
|
+
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
|
|
40790
40793
|
key: "header",
|
|
40791
40794
|
hoverStyles: "cursor: pointer;",
|
|
40792
40795
|
tabIndex: "0",
|
|
@@ -41015,7 +41018,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
41015
41018
|
clearOnDismount = _ref.clearOnDismount,
|
|
41016
41019
|
showErrors = _ref.showErrors,
|
|
41017
41020
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41018
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
41021
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41019
41022
|
|
|
41020
41023
|
if (clearOnDismount) {
|
|
41021
41024
|
React.useEffect(function () {
|
|
@@ -41362,7 +41365,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41362
41365
|
showErrors = _ref.showErrors,
|
|
41363
41366
|
guestCheckout = _ref.guestCheckout,
|
|
41364
41367
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41365
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
41368
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
41366
41369
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
41367
41370
|
saveToWallet = _ref.saveToWallet,
|
|
41368
41371
|
walletCheckboxMarked = _ref.walletCheckboxMarked;
|
|
@@ -41462,7 +41465,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41462
41465
|
clearOnDismount = _ref.clearOnDismount,
|
|
41463
41466
|
showErrors = _ref.showErrors,
|
|
41464
41467
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41465
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
41468
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41466
41469
|
|
|
41467
41470
|
if (clearOnDismount) {
|
|
41468
41471
|
React.useEffect(function () {
|
|
@@ -43141,7 +43144,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
43141
43144
|
actions = _ref.actions,
|
|
43142
43145
|
showErrors = _ref.showErrors,
|
|
43143
43146
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
43144
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
43147
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
43145
43148
|
|
|
43146
43149
|
if (clearOnDismount) {
|
|
43147
43150
|
React.useEffect(function () {
|
|
@@ -46667,7 +46670,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46667
46670
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
46668
46671
|
children = _ref.children,
|
|
46669
46672
|
_ref$dataQa = _ref.dataQa,
|
|
46670
|
-
dataQa = _ref$dataQa === void 0 ?
|
|
46673
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
46671
46674
|
|
|
46672
46675
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46673
46676
|
isMobile = _useContext.isMobile;
|
|
@@ -48065,7 +48068,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
48065
48068
|
return setCurrentPage({
|
|
48066
48069
|
pageNumber: item.index
|
|
48067
48070
|
});
|
|
48068
|
-
} : noop
|
|
48071
|
+
} : noop,
|
|
48069
48072
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
48070
48073
|
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
48071
48074
|
dataQa: index
|
|
@@ -48260,22 +48263,57 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
48260
48263
|
var LoadingDetails = function LoadingDetails() {
|
|
48261
48264
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
48262
48265
|
padding: "0",
|
|
48263
|
-
background: GRECIAN_GREY,
|
|
48264
|
-
borderRadius: "4px",
|
|
48265
48266
|
minHeight: "196px"
|
|
48266
|
-
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
48267
|
-
minHeight: "196px",
|
|
48268
|
-
singleChild: true,
|
|
48269
|
-
fillCenter: true
|
|
48270
|
-
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
48271
|
-
intrinsic: true
|
|
48272
48267
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
48273
48268
|
padding: "0",
|
|
48274
|
-
extraStyles: "
|
|
48269
|
+
extraStyles: "position: absolute;\n height: 200px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;"
|
|
48275
48270
|
}, /*#__PURE__*/React__default.createElement(Spinner$2, {
|
|
48276
48271
|
size: "100",
|
|
48277
48272
|
centerSpinner: true
|
|
48278
|
-
}))
|
|
48273
|
+
})), /*#__PURE__*/React__default.createElement(Stack, {
|
|
48274
|
+
childGap: "16px"
|
|
48275
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48276
|
+
nowrap: true,
|
|
48277
|
+
justify: "space-between",
|
|
48278
|
+
align: "start"
|
|
48279
|
+
}, /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48280
|
+
exactWidth: "110",
|
|
48281
|
+
height: "27px"
|
|
48282
|
+
}), /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48283
|
+
exactWidth: "60",
|
|
48284
|
+
height: "27px"
|
|
48285
|
+
})), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(Box, {
|
|
48286
|
+
padding: "0.5rem 0"
|
|
48287
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48288
|
+
justify: "space-between",
|
|
48289
|
+
align: "start"
|
|
48290
|
+
}, /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48291
|
+
exactWidth: "80",
|
|
48292
|
+
height: "27px"
|
|
48293
|
+
}), /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48294
|
+
exactWidth: "60",
|
|
48295
|
+
height: "27px"
|
|
48296
|
+
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
48297
|
+
padding: "4px 0"
|
|
48298
|
+
}), /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48299
|
+
justify: "space-between",
|
|
48300
|
+
align: "start"
|
|
48301
|
+
}, /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48302
|
+
exactWidth: "100",
|
|
48303
|
+
height: "27px"
|
|
48304
|
+
}), /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48305
|
+
exactWidth: "50",
|
|
48306
|
+
height: "27px"
|
|
48307
|
+
}))), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(Stack, {
|
|
48308
|
+
justify: "space-between",
|
|
48309
|
+
direction: "row"
|
|
48310
|
+
}, /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48311
|
+
exactWidth: "55",
|
|
48312
|
+
height: "30px"
|
|
48313
|
+
}), /*#__PURE__*/React__default.createElement(LoadingLine, {
|
|
48314
|
+
exactWidth: "70",
|
|
48315
|
+
height: "30px"
|
|
48316
|
+
}))));
|
|
48279
48317
|
};
|
|
48280
48318
|
|
|
48281
48319
|
var ErrorDetails = function ErrorDetails() {
|
|
@@ -48378,7 +48416,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48378
48416
|
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
48379
48417
|
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
48380
48418
|
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
48381
|
-
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop
|
|
48419
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
48382
48420
|
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
48383
48421
|
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
|
|
48384
48422
|
_ref4$remainingBalanc = _ref4.remainingBalance,
|
|
@@ -48536,7 +48574,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48536
48574
|
imageType = _ref.imageType,
|
|
48537
48575
|
themeValues = _ref.themeValues,
|
|
48538
48576
|
_ref$dataQa = _ref.dataQa,
|
|
48539
|
-
dataQa = _ref$dataQa === void 0 ?
|
|
48577
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
48540
48578
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
48541
48579
|
modalOpen: isOpen,
|
|
48542
48580
|
hideModal: function hideModal() {
|
|
@@ -48564,7 +48602,6 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48564
48602
|
toggleOpen(false);
|
|
48565
48603
|
}
|
|
48566
48604
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48567
|
-
role: "button",
|
|
48568
48605
|
variant: "pS",
|
|
48569
48606
|
onClick: function onClick() {
|
|
48570
48607
|
return toggleOpen(true);
|
|
@@ -48685,21 +48722,16 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48685
48722
|
terms = _ref.terms,
|
|
48686
48723
|
_ref$error = _ref.error,
|
|
48687
48724
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
48688
|
-
linkVariant = _ref.linkVariant
|
|
48689
|
-
_ref$dataQa = _ref.dataQa,
|
|
48690
|
-
dataQa = _ref$dataQa === void 0 ? "TermsAndConditionsControlV1" : _ref$dataQa;
|
|
48725
|
+
linkVariant = _ref.linkVariant;
|
|
48691
48726
|
|
|
48692
48727
|
var _useState = React.useState(false),
|
|
48693
48728
|
_useState2 = _slicedToArray(_useState, 2),
|
|
48694
48729
|
showTerms = _useState2[0],
|
|
48695
48730
|
toggleShowTerms = _useState2[1];
|
|
48696
48731
|
|
|
48697
|
-
return /*#__PURE__*/React__default.createElement(DisplayBox$1, {
|
|
48698
|
-
dataQ: dataQa
|
|
48699
|
-
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48732
|
+
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48700
48733
|
name: "terms",
|
|
48701
48734
|
title: "Terms and Conditions",
|
|
48702
|
-
dataQa: "Terms and Conditions",
|
|
48703
48735
|
error: error,
|
|
48704
48736
|
checked: isChecked,
|
|
48705
48737
|
onChange: onCheck
|
|
@@ -48778,9 +48810,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48778
48810
|
_ref$checkboxMargin = _ref.checkboxMargin,
|
|
48779
48811
|
checkboxMargin = _ref$checkboxMargin === void 0 ? "4px 8px 4px 4px" : _ref$checkboxMargin,
|
|
48780
48812
|
_ref$modalTitle = _ref.modalTitle,
|
|
48781
|
-
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle
|
|
48782
|
-
_ref$dataQa = _ref.dataQa,
|
|
48783
|
-
dataQa = _ref$dataQa === void 0 ? "TermsAndConditionsControlV2" : _ref$dataQa;
|
|
48813
|
+
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle;
|
|
48784
48814
|
|
|
48785
48815
|
var _useState = React.useState(false),
|
|
48786
48816
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48802,8 +48832,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48802
48832
|
minWidth: displayInline ? "0" : "100%",
|
|
48803
48833
|
background: displayInline ? "transparent" : containerBackground,
|
|
48804
48834
|
boxShadow: displayInline ? "none" : standardBoxShadow,
|
|
48805
|
-
borderRadius: displayInline ? "0" : "4px"
|
|
48806
|
-
dataQa: dataQa
|
|
48835
|
+
borderRadius: displayInline ? "0" : "4px"
|
|
48807
48836
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48808
48837
|
childGap: "0"
|
|
48809
48838
|
}, html && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48872,7 +48901,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48872
48901
|
actions = _ref.actions,
|
|
48873
48902
|
showErrors = _ref.showErrors,
|
|
48874
48903
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48875
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
48904
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48876
48905
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48877
48906
|
saveToWallet = _ref.saveToWallet,
|
|
48878
48907
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49081,7 +49110,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49081
49110
|
actions = _ref.actions,
|
|
49082
49111
|
showErrors = _ref.showErrors,
|
|
49083
49112
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49084
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49113
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49085
49114
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
49086
49115
|
saveToWallet = _ref.saveToWallet,
|
|
49087
49116
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49164,7 +49193,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49164
49193
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49165
49194
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49166
49195
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49167
|
-
dataQa: "Expiration date",
|
|
49196
|
+
dataQa: "Expiration date (MM/YY)",
|
|
49168
49197
|
errorMessages: expirationDateErrors,
|
|
49169
49198
|
field: fields.expirationDate,
|
|
49170
49199
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49424,7 +49453,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49424
49453
|
return e.key === "Enter" && handleSubmit(e);
|
|
49425
49454
|
},
|
|
49426
49455
|
autocompleteValue: "tel",
|
|
49427
|
-
dataQa: "Phone number"
|
|
49456
|
+
dataQa: "Phone number",
|
|
49457
|
+
isNum: true
|
|
49428
49458
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49429
49459
|
name: "phone checkbox",
|
|
49430
49460
|
title: "Save phone number to wallet",
|
|
@@ -49471,7 +49501,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
49471
49501
|
config = _ref.config,
|
|
49472
49502
|
extraStyles = _ref.extraStyles,
|
|
49473
49503
|
_ref$handleChange = _ref.handleChange,
|
|
49474
|
-
handleChange = _ref$handleChange === void 0 ? noop
|
|
49504
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
49475
49505
|
field = _ref.field,
|
|
49476
49506
|
fieldActions = _ref.fieldActions;
|
|
49477
49507
|
|
|
@@ -49633,12 +49663,12 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49633
49663
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
49634
49664
|
padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem",
|
|
49635
49665
|
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
49636
|
-
onClick: isMobile && supportsTouch || section.disabled ? noop
|
|
49666
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
49637
49667
|
return toggleOpenSection(section.id);
|
|
49638
49668
|
},
|
|
49639
49669
|
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
49640
49670
|
return toggleOpenSection(section.id);
|
|
49641
|
-
} : noop
|
|
49671
|
+
} : noop,
|
|
49642
49672
|
key: "header-".concat(section.id),
|
|
49643
49673
|
borderSize: "0px",
|
|
49644
49674
|
borderColor: themeValues.borderColor,
|
|
@@ -49661,7 +49691,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49661
49691
|
ariaDescribedBy: ariaDescribedBy,
|
|
49662
49692
|
radioOn: openSection === section.id,
|
|
49663
49693
|
radioFocused: focused === section.id,
|
|
49664
|
-
toggleRadio: section.disabled ? noop
|
|
49694
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
49665
49695
|
return toggleOpenSection(section.id);
|
|
49666
49696
|
},
|
|
49667
49697
|
tabIndex: "-1"
|
|
@@ -49707,7 +49737,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49707
49737
|
fields = _ref.fields,
|
|
49708
49738
|
actions = _ref.actions,
|
|
49709
49739
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49710
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49740
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49711
49741
|
showErrors = _ref.showErrors,
|
|
49712
49742
|
isMobile = _ref.isMobile;
|
|
49713
49743
|
|
|
@@ -49740,7 +49770,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49740
49770
|
onKeyDown: function onKeyDown(e) {
|
|
49741
49771
|
return e.key === "Enter" && handleSubmit(e);
|
|
49742
49772
|
},
|
|
49743
|
-
autocompleteValue: "given-name"
|
|
49773
|
+
autocompleteValue: "given-name",
|
|
49774
|
+
dataQa: "First name"
|
|
49744
49775
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49745
49776
|
labelTextWhenNoError: "Last name",
|
|
49746
49777
|
errorMessages: lastNameErrorMessages,
|
|
@@ -49750,7 +49781,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49750
49781
|
onKeyDown: function onKeyDown(e) {
|
|
49751
49782
|
return e.key === "Enter" && handleSubmit(e);
|
|
49752
49783
|
},
|
|
49753
|
-
autocompleteValue: "family-name"
|
|
49784
|
+
autocompleteValue: "family-name",
|
|
49785
|
+
dataQa: "Last name"
|
|
49754
49786
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49755
49787
|
labelTextWhenNoError: "Email address",
|
|
49756
49788
|
errorMessages: emailErrorMessages,
|
|
@@ -49762,7 +49794,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49762
49794
|
},
|
|
49763
49795
|
type: "email",
|
|
49764
49796
|
isEmail: true,
|
|
49765
|
-
autocompleteValue: "email"
|
|
49797
|
+
autocompleteValue: "email",
|
|
49798
|
+
dataQa: "Email address"
|
|
49766
49799
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49767
49800
|
labelTextWhenNoError: "Password",
|
|
49768
49801
|
errorMessages: passwordErrorMessages,
|
|
@@ -49773,7 +49806,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49773
49806
|
return e.key === "Enter" && handleSubmit(e);
|
|
49774
49807
|
},
|
|
49775
49808
|
type: "password",
|
|
49776
|
-
autocompleteValue: "new-password"
|
|
49809
|
+
autocompleteValue: "new-password",
|
|
49810
|
+
dataQa: "Password"
|
|
49777
49811
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49778
49812
|
labelTextWhenNoError: "Confirm password",
|
|
49779
49813
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49784,7 +49818,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49784
49818
|
return e.key === "Enter" && handleSubmit(e);
|
|
49785
49819
|
},
|
|
49786
49820
|
type: "password",
|
|
49787
|
-
autocompleteValue: "new-password"
|
|
49821
|
+
autocompleteValue: "new-password",
|
|
49822
|
+
dataQa: "Confirm password"
|
|
49788
49823
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
49789
49824
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
49790
49825
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
@@ -49873,7 +49908,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
49873
49908
|
var _passwordErrorMessage;
|
|
49874
49909
|
|
|
49875
49910
|
var _ref$handleSubmit = _ref.handleSubmit,
|
|
49876
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49911
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49877
49912
|
clearOnDismount = _ref.clearOnDismount,
|
|
49878
49913
|
fields = _ref.fields,
|
|
49879
49914
|
actions = _ref.actions,
|