@thecb/components 8.4.11-beta.9 → 9.0.0-beta.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/index.cjs.js +224 -160
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.esm.js +224 -160
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/alert/Alert.js +1 -0
- package/src/components/atoms/checkbox/Checkbox.js +4 -3
- package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -2
- package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +0 -1
- package/src/components/atoms/display-box/DisplayBox.js +7 -1
- package/src/components/atoms/dropdown/Dropdown.js +25 -19
- package/src/components/atoms/dropdown/index.d.ts +32 -0
- package/src/components/atoms/form-layouts/FormInput.js +25 -11
- package/src/components/atoms/form-layouts/index.d.ts +8 -0
- package/src/components/atoms/form-select/FormSelect.js +20 -9
- package/src/components/atoms/form-select/index.d.ts +7 -0
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +5 -2
- package/src/components/atoms/state-province-dropdown/index.d.ts +26 -0
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +4 -1
- package/src/components/molecules/address-form/AddressForm.js +12 -16
- package/src/components/molecules/change-password-form/ChangePasswordForm.js +3 -3
- package/src/components/molecules/edit-name-form/EditNameForm.js +4 -2
- package/src/components/molecules/email-form/EmailForm.js +2 -1
- package/src/components/molecules/forgot-password-form/ForgotPasswordForm.js +1 -1
- package/src/components/molecules/login-form/LoginForm.js +2 -2
- package/src/components/molecules/modal/Modal.js +3 -2
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +13 -5
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +12 -5
- package/src/components/molecules/phone-form/PhoneForm.js +2 -3
- package/src/components/molecules/registration-form/RegistrationForm.js +5 -5
- package/src/components/molecules/reset-password-form/ResetPasswordForm.js +2 -2
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +4 -2
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +14 -10
package/dist/index.cjs.js
CHANGED
|
@@ -6231,7 +6231,7 @@ return numeral;
|
|
|
6231
6231
|
}));
|
|
6232
6232
|
});
|
|
6233
6233
|
|
|
6234
|
-
var noop = function noop() {};
|
|
6234
|
+
var noop$1 = 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$1,
|
|
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$2 = 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$2,
|
|
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 : _ref2$action,
|
|
12921
|
+
action = _ref2$action === void 0 ? noop$1 : _ref2$action,
|
|
12922
12922
|
_ref2$variant = _ref2.variant,
|
|
12923
12923
|
variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
|
|
12924
12924
|
text = _ref2.text,
|
|
@@ -18819,7 +18819,8 @@ var Alert = function Alert(_ref) {
|
|
|
18819
18819
|
borderSize: noBorder ? "0px" : "1px",
|
|
18820
18820
|
boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
|
|
18821
18821
|
extraStyles: extraStyles,
|
|
18822
|
-
role: "alert"
|
|
18822
|
+
role: "alert",
|
|
18823
|
+
"aria-atomic": true
|
|
18823
18824
|
}, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
|
|
18824
18825
|
maxWidth: maxContentWidth
|
|
18825
18826
|
}, content) : content);
|
|
@@ -22101,7 +22102,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22101
22102
|
name = _ref4.name,
|
|
22102
22103
|
checked = _ref4.checked,
|
|
22103
22104
|
_ref4$onChange = _ref4.onChange,
|
|
22104
|
-
onChange = _ref4$onChange === void 0 ? noop : _ref4$onChange,
|
|
22105
|
+
onChange = _ref4$onChange === void 0 ? noop$1 : _ref4$onChange,
|
|
22105
22106
|
_ref4$disabled = _ref4.disabled,
|
|
22106
22107
|
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
22107
22108
|
themeValues = _ref4.themeValues,
|
|
@@ -22112,7 +22113,9 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22112
22113
|
_ref4$checkboxMargin = _ref4.checkboxMargin,
|
|
22113
22114
|
checkboxMargin = _ref4$checkboxMargin === void 0 ? "0 16px 0 0" : _ref4$checkboxMargin,
|
|
22114
22115
|
extraStyles = _ref4.extraStyles,
|
|
22115
|
-
textExtraStyles = _ref4.textExtraStyles
|
|
22116
|
+
textExtraStyles = _ref4.textExtraStyles,
|
|
22117
|
+
_ref4$dataQa = _ref4.dataQa,
|
|
22118
|
+
dataQa = _ref4$dataQa === void 0 ? "Checkbox Label" : _ref4$dataQa;
|
|
22116
22119
|
|
|
22117
22120
|
var _useState = React.useState(false),
|
|
22118
22121
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22140,7 +22143,9 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22140
22143
|
hiddenStyles: hidden,
|
|
22141
22144
|
background: themeValues.backgroundColor,
|
|
22142
22145
|
extraStyles: "outline: none; ".concat(extraStyles, "; margin: ").concat(checkboxMargin, ";")
|
|
22143
|
-
}, /*#__PURE__*/React__default.createElement(CheckboxLabelContainer,
|
|
22146
|
+
}, /*#__PURE__*/React__default.createElement(CheckboxLabelContainer, {
|
|
22147
|
+
"data-qa": dataQa
|
|
22148
|
+
}, /*#__PURE__*/React__default.createElement(CheckboxContainer, {
|
|
22144
22149
|
"data-qa": "Checkbox"
|
|
22145
22150
|
}, /*#__PURE__*/React__default.createElement(HiddenCheckbox, {
|
|
22146
22151
|
id: "checkbox-".concat(name),
|
|
@@ -22151,7 +22156,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22151
22156
|
onChange: onChange,
|
|
22152
22157
|
tabIndex: "-1",
|
|
22153
22158
|
"aria-invalid": error,
|
|
22154
|
-
"aria-describedby": name
|
|
22159
|
+
"aria-describedby": error ? "".concat(name, "-error-message") : ""
|
|
22155
22160
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22156
22161
|
error: error,
|
|
22157
22162
|
disabled: disabled,
|
|
@@ -22290,7 +22295,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
22290
22295
|
padding: "0.875rem",
|
|
22291
22296
|
borderRadius: "4px",
|
|
22292
22297
|
minWidth: "30%",
|
|
22293
|
-
onClick: disabled ? noop : onSelect,
|
|
22298
|
+
onClick: disabled ? noop$1 : onSelect,
|
|
22294
22299
|
borderColor: borderColor,
|
|
22295
22300
|
borderSize: "1px",
|
|
22296
22301
|
color: color,
|
|
@@ -22305,8 +22310,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
22305
22310
|
name: name,
|
|
22306
22311
|
"aria-label": name,
|
|
22307
22312
|
htmlFor: "checkbox-".concat(name, "-").concat(index),
|
|
22308
|
-
onClick: disabled ? noop : onSelect,
|
|
22309
|
-
onKeyDown: disabled ? noop : onSelect,
|
|
22313
|
+
onClick: disabled ? noop$1 : onSelect,
|
|
22314
|
+
onKeyDown: disabled ? noop$1 : onSelect,
|
|
22310
22315
|
tabIndex: 0
|
|
22311
22316
|
}, /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
22312
22317
|
theme: {
|
|
@@ -23730,7 +23735,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23730
23735
|
_ref8$disabledValues = _ref8.disabledValues,
|
|
23731
23736
|
disabledValues = _ref8$disabledValues === void 0 ? [] : _ref8$disabledValues,
|
|
23732
23737
|
_ref8$onClick = _ref8.onClick,
|
|
23733
|
-
_onClick = _ref8$onClick === void 0 ? noop : _ref8$onClick,
|
|
23738
|
+
_onClick = _ref8$onClick === void 0 ? noop$1 : _ref8$onClick,
|
|
23734
23739
|
themeValues = _ref8.themeValues,
|
|
23735
23740
|
maxHeight = _ref8.maxHeight,
|
|
23736
23741
|
_ref8$widthFitOptions = _ref8.widthFitOptions,
|
|
@@ -23743,9 +23748,11 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23743
23748
|
ariaLabelledby = _ref8.ariaLabelledby,
|
|
23744
23749
|
ariaDescribedby = _ref8.ariaDescribedby,
|
|
23745
23750
|
_ref8$autocompleteVal = _ref8.autocompleteValue,
|
|
23746
|
-
autocompleteValue = _ref8$autocompleteVal === void 0 ?
|
|
23751
|
+
autocompleteValue = _ref8$autocompleteVal === void 0 ? null : _ref8$autocompleteVal,
|
|
23747
23752
|
_ref8$smoothScroll = _ref8.smoothScroll,
|
|
23748
|
-
smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll
|
|
23753
|
+
smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
|
|
23754
|
+
_ref8$ariaInvalid = _ref8.ariaInvalid,
|
|
23755
|
+
ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid;
|
|
23749
23756
|
|
|
23750
23757
|
var _useState = React.useState(""),
|
|
23751
23758
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -23981,18 +23988,19 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23981
23988
|
}
|
|
23982
23989
|
},
|
|
23983
23990
|
onKeyDown: onKeyDown,
|
|
23984
|
-
width: "100%"
|
|
23991
|
+
width: "100%",
|
|
23992
|
+
dataQa: "".concat(ariaLabelledby, "-dropdown")
|
|
23985
23993
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
23986
23994
|
as: "input",
|
|
23987
23995
|
"aria-multiline": "false",
|
|
23988
|
-
|
|
23989
|
-
|
|
23990
|
-
|
|
23991
|
-
,
|
|
23996
|
+
autoComplete: autocompleteValue,
|
|
23997
|
+
"aria-controls": "".concat(createIdFromString(ariaLabelledby), "_listbox"),
|
|
23998
|
+
"aria-activedescendant": "focused_option",
|
|
23999
|
+
"aria-owns": "".concat(ariaLabelledby, "_listbox"),
|
|
23992
24000
|
"aria-haspopup": "listbox",
|
|
23993
24001
|
"aria-labelledby": ariaLabelledby,
|
|
23994
24002
|
"aria-describedby": ariaDescribedby,
|
|
23995
|
-
|
|
24003
|
+
"aria-expanded": isOpen,
|
|
23996
24004
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
23997
24005
|
borderRadius: "2px",
|
|
23998
24006
|
borderSize: "1px",
|
|
@@ -24002,8 +24010,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24002
24010
|
isOpen: isOpen,
|
|
24003
24011
|
minHeight: "48px",
|
|
24004
24012
|
minWidth: "100%",
|
|
24005
|
-
name: autocompleteValue
|
|
24006
|
-
,
|
|
24013
|
+
name: autocompleteValue,
|
|
24007
24014
|
onChange: function onChange(e) {
|
|
24008
24015
|
// support autofill and copy/paste
|
|
24009
24016
|
if (e.target.value !== inputValue) {
|
|
@@ -24013,13 +24020,17 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24013
24020
|
},
|
|
24014
24021
|
padding: "12px",
|
|
24015
24022
|
placeholder: getSelection(),
|
|
24023
|
+
role: "combobox",
|
|
24016
24024
|
themeValues: themeValues,
|
|
24017
24025
|
title: hasTitles ? getSelection() : null,
|
|
24018
24026
|
type: "text",
|
|
24019
24027
|
tabIndex: 0,
|
|
24020
24028
|
value: inputValue,
|
|
24021
24029
|
width: "100%",
|
|
24022
|
-
dataQa: placeholder
|
|
24030
|
+
dataQa: placeholder,
|
|
24031
|
+
required: options.required,
|
|
24032
|
+
"aria-required": options.required,
|
|
24033
|
+
"aria-invalid": ariaInvalid
|
|
24023
24034
|
}), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
24024
24035
|
open: isOpen,
|
|
24025
24036
|
onClick: _onClick
|
|
@@ -24055,17 +24066,18 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24055
24066
|
selected: choice.value === value,
|
|
24056
24067
|
"aria-selected": choice.value === value,
|
|
24057
24068
|
disabled: disabledValues.includes(choice.value),
|
|
24069
|
+
"aria-disabled": disabledValues.includes(choice.value),
|
|
24058
24070
|
"data-qa": choice.text,
|
|
24059
24071
|
themeValues: themeValues,
|
|
24060
24072
|
title: hasTitles ? choice.text : null,
|
|
24061
|
-
role: "option",
|
|
24062
24073
|
onFocus: function onFocus() {
|
|
24063
24074
|
return setFocusedRef(optionRefs.current[i]);
|
|
24064
|
-
}
|
|
24075
|
+
},
|
|
24076
|
+
role: "option"
|
|
24065
24077
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24066
24078
|
variant: "p",
|
|
24067
24079
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24068
|
-
extraStyles: "padding-left: 16px; \n
|
|
24080
|
+
extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
|
|
24069
24081
|
}, choice.text));
|
|
24070
24082
|
}))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
24071
24083
|
};
|
|
@@ -24169,9 +24181,12 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24169
24181
|
themeValues = _ref.themeValues,
|
|
24170
24182
|
_ref$hasTitles = _ref.hasTitles,
|
|
24171
24183
|
hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
|
|
24172
|
-
|
|
24184
|
+
_ref$autocompleteValu = _ref.autocompleteValue,
|
|
24185
|
+
autocompleteValue = _ref$autocompleteValu === void 0 ? "" : _ref$autocompleteValu,
|
|
24173
24186
|
_ref$smoothScroll = _ref.smoothScroll,
|
|
24174
|
-
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll
|
|
24187
|
+
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll,
|
|
24188
|
+
_ref$dataQa = _ref.dataQa,
|
|
24189
|
+
dataQa = _ref$dataQa === void 0 ? "FormSelect" : _ref$dataQa;
|
|
24175
24190
|
|
|
24176
24191
|
var _useState = React.useState(false),
|
|
24177
24192
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24194,7 +24209,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24194
24209
|
});
|
|
24195
24210
|
return /*#__PURE__*/React__default.createElement(SelectContainer, {
|
|
24196
24211
|
ref: dropdownRef,
|
|
24197
|
-
disabled: disabled
|
|
24212
|
+
disabled: disabled,
|
|
24213
|
+
"data-qa": dataQa
|
|
24198
24214
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
24199
24215
|
padding: "0",
|
|
24200
24216
|
minWidth: "100%"
|
|
@@ -24209,8 +24225,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24209
24225
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24210
24226
|
id: createIdFromString(labelTextWhenNoError)
|
|
24211
24227
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
24212
|
-
ariaLabelledby:
|
|
24213
|
-
|
|
24228
|
+
ariaLabelledby: labelTextWhenNoError,
|
|
24229
|
+
ariaDescribedBy: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24214
24230
|
maxHeight: dropdownMaxHeight,
|
|
24215
24231
|
hasTitles: hasTitles,
|
|
24216
24232
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -24219,6 +24235,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24219
24235
|
disabledValues: disabledValues,
|
|
24220
24236
|
isOpen: open,
|
|
24221
24237
|
isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24238
|
+
ariaInvalid: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24222
24239
|
onSelect: onChange ? function (value) {
|
|
24223
24240
|
return onChange(value);
|
|
24224
24241
|
} : function (value) {
|
|
@@ -24229,18 +24246,19 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24229
24246
|
},
|
|
24230
24247
|
disabled: disabled,
|
|
24231
24248
|
autocompleteValue: autocompleteValue,
|
|
24232
|
-
smoothScroll: smoothScroll
|
|
24233
|
-
required: options.required
|
|
24249
|
+
smoothScroll: smoothScroll
|
|
24234
24250
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24235
24251
|
direction: "row",
|
|
24236
|
-
justify: "space-between"
|
|
24237
|
-
role: "alert"
|
|
24252
|
+
justify: "space-between"
|
|
24238
24253
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24239
24254
|
color: ERROR_COLOR,
|
|
24240
24255
|
variant: "pXS",
|
|
24241
24256
|
weight: themeValues.fontWeight,
|
|
24242
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24243
|
-
id: createIdFromString(labelTextWhenNoError, "error message")
|
|
24257
|
+
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
24258
|
+
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24259
|
+
"aria-live": "polite",
|
|
24260
|
+
"aria-atomic": true,
|
|
24261
|
+
"data-qa": createIdFromString(labelTextWhenNoError, "error message")
|
|
24244
24262
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24245
24263
|
};
|
|
24246
24264
|
|
|
@@ -24989,8 +25007,6 @@ var options = [{
|
|
|
24989
25007
|
value: "ZW"
|
|
24990
25008
|
}];
|
|
24991
25009
|
|
|
24992
|
-
var _excluded$o = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
|
|
24993
|
-
|
|
24994
25010
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
24995
25011
|
var labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
24996
25012
|
errorMessages = _ref.errorMessages,
|
|
@@ -24998,18 +25014,19 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
24998
25014
|
fieldActions = _ref.fieldActions,
|
|
24999
25015
|
showErrors = _ref.showErrors,
|
|
25000
25016
|
onChange = _ref.onChange,
|
|
25001
|
-
|
|
25002
|
-
|
|
25003
|
-
return /*#__PURE__*/React__default.createElement(FormSelect$1,
|
|
25017
|
+
_ref$dataQa = _ref.dataQa,
|
|
25018
|
+
dataQa = _ref$dataQa === void 0 ? "Country Dropdown" : _ref$dataQa;
|
|
25019
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25004
25020
|
options: options,
|
|
25005
25021
|
field: field,
|
|
25006
25022
|
fieldActions: fieldActions,
|
|
25007
25023
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
25024
|
+
dataQa: dataQa,
|
|
25008
25025
|
errorMessages: errorMessages,
|
|
25009
25026
|
showErrors: showErrors,
|
|
25010
25027
|
onChange: onChange,
|
|
25011
25028
|
autocompleteValue: "country-name"
|
|
25012
|
-
}
|
|
25029
|
+
});
|
|
25013
25030
|
};
|
|
25014
25031
|
|
|
25015
25032
|
var DetailText = styled__default.p.withConfig({
|
|
@@ -25075,7 +25092,7 @@ var mobileFallbackValues$1 = {
|
|
|
25075
25092
|
};
|
|
25076
25093
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25077
25094
|
|
|
25078
|
-
var _excluded$
|
|
25095
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25079
25096
|
/*
|
|
25080
25097
|
New responsive text component for Detail elements
|
|
25081
25098
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -25125,7 +25142,7 @@ var Detail = function Detail(_ref) {
|
|
|
25125
25142
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25126
25143
|
dataQa = _ref.dataQa,
|
|
25127
25144
|
children = _ref.children,
|
|
25128
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25145
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
25129
25146
|
|
|
25130
25147
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25131
25148
|
variant: variant,
|
|
@@ -25154,7 +25171,9 @@ var fallbackValues$i = {
|
|
|
25154
25171
|
var DisplayBox = function DisplayBox(_ref) {
|
|
25155
25172
|
var children = _ref.children,
|
|
25156
25173
|
themeValues = _ref.themeValues,
|
|
25157
|
-
showError = _ref.showError
|
|
25174
|
+
showError = _ref.showError,
|
|
25175
|
+
_ref$dataQa = _ref.dataQa,
|
|
25176
|
+
dataQa = _ref$dataQa === void 0 ? "DisplayBox" : _ref$dataQa;
|
|
25158
25177
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
25159
25178
|
padding: "0.5rem 0 1.5rem 0"
|
|
25160
25179
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -25163,7 +25182,8 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
25163
25182
|
borderSize: showError && "1px",
|
|
25164
25183
|
borderColor: showError && RED,
|
|
25165
25184
|
borderRadius: "4px",
|
|
25166
|
-
boxShadow: themeValues.boxShadow
|
|
25185
|
+
boxShadow: themeValues.boxShadow,
|
|
25186
|
+
dataQa: dataQa
|
|
25167
25187
|
}, children));
|
|
25168
25188
|
};
|
|
25169
25189
|
|
|
@@ -25656,7 +25676,7 @@ var Popover = function Popover(_ref) {
|
|
|
25656
25676
|
extraStyles: "position: relative; ".concat(extraStyles)
|
|
25657
25677
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
25658
25678
|
action: function action() {
|
|
25659
|
-
return noop;
|
|
25679
|
+
return noop$1;
|
|
25660
25680
|
},
|
|
25661
25681
|
onFocus: function onFocus() {
|
|
25662
25682
|
handleTogglePopover(true);
|
|
@@ -25849,8 +25869,8 @@ var fallbackValues$k = {
|
|
|
25849
25869
|
formFooterPanel: formFooterPanel
|
|
25850
25870
|
};
|
|
25851
25871
|
|
|
25852
|
-
var _excluded$
|
|
25853
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "
|
|
25872
|
+
var _excluded$p = ["showErrors", "themeValues"],
|
|
25873
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
|
|
25854
25874
|
var InputField = styled__default.input.withConfig({
|
|
25855
25875
|
displayName: "FormInput__InputField",
|
|
25856
25876
|
componentId: "sc-l094r1-0"
|
|
@@ -25883,7 +25903,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
25883
25903
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
25884
25904
|
var showErrors = _ref8.showErrors,
|
|
25885
25905
|
themeValues = _ref8.themeValues,
|
|
25886
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25906
|
+
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
25887
25907
|
|
|
25888
25908
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
25889
25909
|
}).withConfig({
|
|
@@ -25932,9 +25952,12 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25932
25952
|
themeValues = _ref15.themeValues,
|
|
25933
25953
|
background = _ref15.background,
|
|
25934
25954
|
customHeight = _ref15.customHeight,
|
|
25935
|
-
|
|
25955
|
+
_ref15$autocompleteVa = _ref15.autocompleteValue,
|
|
25956
|
+
autocompleteValue = _ref15$autocompleteVa === void 0 ? "" : _ref15$autocompleteVa,
|
|
25936
25957
|
extraStyles = _ref15.extraStyles,
|
|
25937
25958
|
removeFromValue = _ref15.removeFromValue,
|
|
25959
|
+
_ref15$dataQa = _ref15.dataQa,
|
|
25960
|
+
dataQa = _ref15$dataQa === void 0 ? "Form Input" : _ref15$dataQa,
|
|
25938
25961
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
25939
25962
|
|
|
25940
25963
|
var _useState = React.useState(false),
|
|
@@ -25954,8 +25977,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25954
25977
|
};
|
|
25955
25978
|
|
|
25956
25979
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
25957
|
-
childGap: "0.25rem"
|
|
25958
|
-
"aria-live": "assertive"
|
|
25980
|
+
childGap: "0.25rem"
|
|
25959
25981
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
25960
25982
|
padding: "0"
|
|
25961
25983
|
}, helperModal ? /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -25994,19 +26016,19 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25994
26016
|
onClick: function onClick() {
|
|
25995
26017
|
return setShowPassword(!showPassword);
|
|
25996
26018
|
},
|
|
25997
|
-
"aria-label": "Show password",
|
|
25998
26019
|
tabIndex: "0",
|
|
26020
|
+
"aria-label": showPassword ? "Hide Password" : "Show password",
|
|
26021
|
+
"aria-live": "polite",
|
|
25999
26022
|
onKeyPress: function onKeyPress(e) {
|
|
26000
26023
|
return e.key === "Enter" && setShowPassword(!showPassword);
|
|
26001
26024
|
}
|
|
26002
26025
|
}, showPassword ? "Hide" : "Show"), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
|
|
26003
26026
|
padding: "0 0 0 auto"
|
|
26004
26027
|
}, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
|
|
26005
|
-
padding: "0"
|
|
26006
|
-
"aria-live": "assertive"
|
|
26028
|
+
padding: "0"
|
|
26007
26029
|
}, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
|
|
26008
26030
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26009
|
-
"aria-describedby": createIdFromString(labelTextWhenNoError),
|
|
26031
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
26010
26032
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
|
|
26011
26033
|
onChange: function onChange(value) {
|
|
26012
26034
|
return setValue(value);
|
|
@@ -26018,14 +26040,14 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26018
26040
|
field: field,
|
|
26019
26041
|
formatter: formatter,
|
|
26020
26042
|
showErrors: showErrors,
|
|
26021
|
-
"data-qa": labelTextWhenNoError,
|
|
26022
26043
|
themeValues: themeValues,
|
|
26023
26044
|
$customHeight: customHeight,
|
|
26024
26045
|
$extraStyles: extraStyles,
|
|
26025
|
-
|
|
26046
|
+
"data-qa": dataQa,
|
|
26047
|
+
autoComplete: autocompleteValue
|
|
26026
26048
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26027
26049
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26028
|
-
"aria-describedby": createIdFromString(labelTextWhenNoError),
|
|
26050
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
26029
26051
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
|
|
26030
26052
|
onChange: function onChange(e) {
|
|
26031
26053
|
return setValue(e.target.value);
|
|
@@ -26036,16 +26058,18 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26036
26058
|
inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
|
|
26037
26059
|
field: field,
|
|
26038
26060
|
showErrors: showErrors,
|
|
26039
|
-
"data-qa": labelTextWhenNoError,
|
|
26040
26061
|
themeValues: themeValues,
|
|
26041
26062
|
background: background,
|
|
26042
26063
|
$customHeight: customHeight,
|
|
26043
26064
|
$extraStyles: extraStyles,
|
|
26044
|
-
|
|
26065
|
+
"data-qa": dataQa,
|
|
26066
|
+
autoComplete: autocompleteValue
|
|
26045
26067
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26046
26068
|
direction: "row",
|
|
26047
26069
|
justify: "space-between",
|
|
26048
|
-
|
|
26070
|
+
"aria-live": "polite",
|
|
26071
|
+
"aria-atomic": true,
|
|
26072
|
+
"data-qa": "".concat(labelTextWhenNoError, " errors")
|
|
26049
26073
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26050
26074
|
color: ERROR_COLOR,
|
|
26051
26075
|
variant: "pXS",
|
|
@@ -26061,7 +26085,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26061
26085
|
|
|
26062
26086
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26063
26087
|
|
|
26064
|
-
var _excluded$
|
|
26088
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26065
26089
|
|
|
26066
26090
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26067
26091
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26071,7 +26095,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26071
26095
|
largeChild = _ref.largeChild,
|
|
26072
26096
|
largeChildSize = _ref.largeChildSize,
|
|
26073
26097
|
children = _ref.children,
|
|
26074
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26098
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
26075
26099
|
|
|
26076
26100
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26077
26101
|
padding: "0"
|
|
@@ -26083,14 +26107,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26083
26107
|
}, children));
|
|
26084
26108
|
};
|
|
26085
26109
|
|
|
26086
|
-
var _excluded$
|
|
26110
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
26087
26111
|
|
|
26088
26112
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26089
26113
|
var _ref$childGap = _ref.childGap,
|
|
26090
26114
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26091
26115
|
bottomItem = _ref.bottomItem,
|
|
26092
26116
|
children = _ref.children,
|
|
26093
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26117
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26094
26118
|
|
|
26095
26119
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26096
26120
|
childGap: childGap,
|
|
@@ -26098,12 +26122,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26098
26122
|
}, rest), children);
|
|
26099
26123
|
};
|
|
26100
26124
|
|
|
26101
|
-
var _excluded$
|
|
26125
|
+
var _excluded$s = ["themeValues", "children"];
|
|
26102
26126
|
|
|
26103
26127
|
var FormContainer = function FormContainer(_ref) {
|
|
26104
26128
|
var themeValues = _ref.themeValues,
|
|
26105
26129
|
children = _ref.children,
|
|
26106
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26130
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26107
26131
|
|
|
26108
26132
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26109
26133
|
isMobile = _useContext.isMobile;
|
|
@@ -26310,7 +26334,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
26310
26334
|
inactiveColor = _ref4.inactiveColor,
|
|
26311
26335
|
isActive = _ref4.isActive,
|
|
26312
26336
|
_ref4$onClick = _ref4.onClick,
|
|
26313
|
-
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
26337
|
+
onClick = _ref4$onClick === void 0 ? noop$1 : _ref4$onClick,
|
|
26314
26338
|
controls = _ref4.controls;
|
|
26315
26339
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
26316
26340
|
className: isActive === true ? "active" : "",
|
|
@@ -26368,7 +26392,7 @@ var fallbackValues$o = {
|
|
|
26368
26392
|
fontSize: fontSize$8
|
|
26369
26393
|
};
|
|
26370
26394
|
|
|
26371
|
-
var _excluded$
|
|
26395
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26372
26396
|
|
|
26373
26397
|
var Heading = function Heading(_ref) {
|
|
26374
26398
|
var themeValues = _ref.themeValues,
|
|
@@ -26388,7 +26412,7 @@ var Heading = function Heading(_ref) {
|
|
|
26388
26412
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26389
26413
|
dataQa = _ref.dataQa,
|
|
26390
26414
|
children = _ref.children,
|
|
26391
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26415
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26392
26416
|
|
|
26393
26417
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
26394
26418
|
variant: variant,
|
|
@@ -26679,7 +26703,7 @@ var Loading = function Loading() {
|
|
|
26679
26703
|
})))));
|
|
26680
26704
|
};
|
|
26681
26705
|
|
|
26682
|
-
var _excluded$
|
|
26706
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26683
26707
|
|
|
26684
26708
|
var NavFooter = function NavFooter(_ref) {
|
|
26685
26709
|
var leftContent = _ref.leftContent,
|
|
@@ -26695,7 +26719,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26695
26719
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26696
26720
|
isMobile = _ref.isMobile,
|
|
26697
26721
|
footerWidth = _ref.footerWidth,
|
|
26698
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26722
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26699
26723
|
|
|
26700
26724
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26701
26725
|
padding: footerPadding,
|
|
@@ -26727,7 +26751,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26727
26751
|
}, rightContent)))))));
|
|
26728
26752
|
};
|
|
26729
26753
|
|
|
26730
|
-
var _excluded$
|
|
26754
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26731
26755
|
|
|
26732
26756
|
var NavHeader = function NavHeader(_ref) {
|
|
26733
26757
|
var leftContent = _ref.leftContent,
|
|
@@ -26737,7 +26761,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26737
26761
|
isMobile = _ref.isMobile,
|
|
26738
26762
|
backgroundColor = _ref.backgroundColor,
|
|
26739
26763
|
headerWidth = _ref.headerWidth,
|
|
26740
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26764
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26741
26765
|
|
|
26742
26766
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26743
26767
|
padding: "0 16px 4px",
|
|
@@ -27118,7 +27142,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27118
27142
|
themeValues = _ref5.themeValues,
|
|
27119
27143
|
index = _ref5.index,
|
|
27120
27144
|
_ref5$handleChange = _ref5.handleChange,
|
|
27121
|
-
handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
|
|
27145
|
+
handleChange = _ref5$handleChange === void 0 ? noop$1 : _ref5$handleChange,
|
|
27122
27146
|
field = _ref5.field,
|
|
27123
27147
|
config = _ref5.config;
|
|
27124
27148
|
|
|
@@ -37933,7 +37957,10 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37933
37957
|
fieldActions = _ref.fieldActions,
|
|
37934
37958
|
showErrors = _ref.showErrors,
|
|
37935
37959
|
countryCode = _ref.countryCode,
|
|
37936
|
-
|
|
37960
|
+
_ref$autocompleteValu = _ref.autocompleteValue,
|
|
37961
|
+
autocompleteValue = _ref$autocompleteValu === void 0 ? "administrative-area" : _ref$autocompleteValu,
|
|
37962
|
+
_ref$dataQa = _ref.dataQa,
|
|
37963
|
+
dataQa = _ref$dataQa === void 0 ? "StateProvinceDropdown" : _ref$dataQa;
|
|
37937
37964
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
37938
37965
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
37939
37966
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -37943,7 +37970,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37943
37970
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
37944
37971
|
errorMessages: errorMessages,
|
|
37945
37972
|
showErrors: showErrors,
|
|
37946
|
-
|
|
37973
|
+
"aria-invalid": !!(errorMessages !== null && errorMessages !== void 0 && errorMessages.length),
|
|
37974
|
+
autocompleteValue: autocompleteValue,
|
|
37975
|
+
dataQa: dataQa
|
|
37947
37976
|
});
|
|
37948
37977
|
};
|
|
37949
37978
|
|
|
@@ -37999,7 +38028,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
37999
38028
|
var _ref6$isOn = _ref6.isOn,
|
|
38000
38029
|
isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
|
|
38001
38030
|
_ref6$onToggle = _ref6.onToggle,
|
|
38002
|
-
onToggle = _ref6$onToggle === void 0 ? noop : _ref6$onToggle,
|
|
38031
|
+
onToggle = _ref6$onToggle === void 0 ? noop$1 : _ref6$onToggle,
|
|
38003
38032
|
_ref6$disabled = _ref6.disabled,
|
|
38004
38033
|
disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
|
|
38005
38034
|
_ref6$name = _ref6.name,
|
|
@@ -38109,15 +38138,15 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38109
38138
|
}, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
|
|
38110
38139
|
"aria-label": name,
|
|
38111
38140
|
checked: isOn,
|
|
38112
|
-
onChange: disabled ? noop : onToggle,
|
|
38141
|
+
onChange: disabled ? noop$1 : onToggle,
|
|
38113
38142
|
disabled: disabled,
|
|
38114
38143
|
id: "#toggle-".concat(name),
|
|
38115
38144
|
isMobile: isMobile
|
|
38116
38145
|
}), /*#__PURE__*/React__default.createElement(VisibleSwitch, {
|
|
38117
38146
|
name: name,
|
|
38118
38147
|
htmlFor: "#toggle-".concat(name),
|
|
38119
|
-
onClick: disabled ? noop : onToggle,
|
|
38120
|
-
onKeyDown: disabled ? noop : handleKeyDown,
|
|
38148
|
+
onClick: disabled ? noop$1 : onToggle,
|
|
38149
|
+
onKeyDown: disabled ? noop$1 : handleKeyDown,
|
|
38121
38150
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
38122
38151
|
tabIndex: disabled ? -1 : 0,
|
|
38123
38152
|
disabled: disabled,
|
|
@@ -38512,7 +38541,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38512
38541
|
return extraStyles;
|
|
38513
38542
|
});
|
|
38514
38543
|
|
|
38515
|
-
var _excluded$
|
|
38544
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38516
38545
|
|
|
38517
38546
|
var TableRow = function TableRow(_ref) {
|
|
38518
38547
|
var children = _ref.children,
|
|
@@ -38522,7 +38551,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38522
38551
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38523
38552
|
onClick = _ref.onClick,
|
|
38524
38553
|
themeValues = _ref.themeValues,
|
|
38525
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38554
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38526
38555
|
|
|
38527
38556
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38528
38557
|
onClick: onClick,
|
|
@@ -40377,19 +40406,18 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40377
40406
|
}
|
|
40378
40407
|
},
|
|
40379
40408
|
showErrors: showErrors,
|
|
40380
|
-
|
|
40409
|
+
dataQa: "Country"
|
|
40381
40410
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40382
40411
|
labelTextWhenNoError: "Address",
|
|
40383
40412
|
errorMessages: street1ErrorMessages,
|
|
40384
|
-
required: true,
|
|
40385
40413
|
field: fields.street1,
|
|
40386
40414
|
fieldActions: actions.fields.street1,
|
|
40387
40415
|
showErrors: showErrors,
|
|
40388
40416
|
onKeyDown: function onKeyDown(e) {
|
|
40389
40417
|
return e.key === "Enter" && handleSubmit(e);
|
|
40390
40418
|
},
|
|
40391
|
-
|
|
40392
|
-
|
|
40419
|
+
autocompleteValue: "address-line1",
|
|
40420
|
+
dataQa: "Address Line 1"
|
|
40393
40421
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40394
40422
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40395
40423
|
field: fields.street2,
|
|
@@ -40398,11 +40426,10 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40398
40426
|
onKeyDown: function onKeyDown(e) {
|
|
40399
40427
|
return e.key === "Enter" && handleSubmit(e);
|
|
40400
40428
|
},
|
|
40401
|
-
|
|
40402
|
-
|
|
40429
|
+
autocompleteValue: "address-line2",
|
|
40430
|
+
dataQa: "Address Line 2"
|
|
40403
40431
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40404
40432
|
labelTextWhenNoError: "City",
|
|
40405
|
-
required: true,
|
|
40406
40433
|
errorMessages: cityErrorMessages,
|
|
40407
40434
|
field: fields.city,
|
|
40408
40435
|
fieldActions: actions.fields.city,
|
|
@@ -40410,8 +40437,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40410
40437
|
onKeyDown: function onKeyDown(e) {
|
|
40411
40438
|
return e.key === "Enter" && handleSubmit(e);
|
|
40412
40439
|
},
|
|
40413
|
-
|
|
40414
|
-
|
|
40440
|
+
autocompleteValue: "city",
|
|
40441
|
+
dataQa: "City"
|
|
40415
40442
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40416
40443
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40417
40444
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40422,8 +40449,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40422
40449
|
onKeyDown: function onKeyDown(e) {
|
|
40423
40450
|
return e.key === "Enter" && handleSubmit(e);
|
|
40424
40451
|
},
|
|
40425
|
-
|
|
40426
|
-
|
|
40452
|
+
autocompleteValue: "administrative-area",
|
|
40453
|
+
dataQa: "State or Province"
|
|
40427
40454
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40428
40455
|
isNum: isUS,
|
|
40429
40456
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40435,12 +40462,11 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40435
40462
|
onKeyDown: function onKeyDown(e) {
|
|
40436
40463
|
return e.key === "Enter" && handleSubmit(e);
|
|
40437
40464
|
},
|
|
40438
|
-
|
|
40439
|
-
|
|
40440
|
-
required: true
|
|
40465
|
+
autocompleteValue: "postal-code",
|
|
40466
|
+
dataQa: "Zip code"
|
|
40441
40467
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40442
40468
|
name: "address checkbox",
|
|
40443
|
-
title: "Save address to
|
|
40469
|
+
title: "Save address to wallet",
|
|
40444
40470
|
checked: walletCheckboxMarked,
|
|
40445
40471
|
onChange: saveToWallet
|
|
40446
40472
|
})));
|
|
@@ -40540,7 +40566,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40540
40566
|
fields = _ref.fields,
|
|
40541
40567
|
actions = _ref.actions,
|
|
40542
40568
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40543
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40569
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
40544
40570
|
showErrors = _ref.showErrors,
|
|
40545
40571
|
isMobile = _ref.isMobile,
|
|
40546
40572
|
revenueManagement = _ref.revenueManagement,
|
|
@@ -40597,7 +40623,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40597
40623
|
return e.key === "Enter" && handleSubmit(e);
|
|
40598
40624
|
},
|
|
40599
40625
|
type: "password",
|
|
40600
|
-
|
|
40626
|
+
autocompleteValue: "current-password"
|
|
40601
40627
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40602
40628
|
labelTextWhenNoError: "New password",
|
|
40603
40629
|
errorMessages: newPasswordErrorMessages,
|
|
@@ -40608,7 +40634,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40608
40634
|
return e.key === "Enter" && handleSubmit(e);
|
|
40609
40635
|
},
|
|
40610
40636
|
type: "password",
|
|
40611
|
-
|
|
40637
|
+
autocompleteValue: "new-password"
|
|
40612
40638
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40613
40639
|
labelTextWhenNoError: "Confirm password",
|
|
40614
40640
|
errorMessages: confirmNewPasswordErrorMessages,
|
|
@@ -40619,7 +40645,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40619
40645
|
return e.key === "Enter" && handleSubmit(e);
|
|
40620
40646
|
},
|
|
40621
40647
|
type: "password",
|
|
40622
|
-
|
|
40648
|
+
autocompleteValue: "new-password"
|
|
40623
40649
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
40624
40650
|
padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
|
|
40625
40651
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -40760,8 +40786,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40760
40786
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40761
40787
|
padding: customPadding ? customPadding : "0",
|
|
40762
40788
|
background: themeValues.headingBackgroundColor,
|
|
40763
|
-
onClick: isMobile && supportsTouch ? noop : toggleSection,
|
|
40764
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
|
|
40789
|
+
onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
|
|
40790
|
+
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
|
|
40765
40791
|
key: "header",
|
|
40766
40792
|
hoverStyles: "cursor: pointer;",
|
|
40767
40793
|
tabIndex: "0",
|
|
@@ -40990,7 +41016,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
40990
41016
|
clearOnDismount = _ref.clearOnDismount,
|
|
40991
41017
|
showErrors = _ref.showErrors,
|
|
40992
41018
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40993
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41019
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
40994
41020
|
|
|
40995
41021
|
if (clearOnDismount) {
|
|
40996
41022
|
React.useEffect(function () {
|
|
@@ -41009,6 +41035,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
41009
41035
|
"aria-label": "Edit name"
|
|
41010
41036
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41011
41037
|
labelTextWhenNoError: "First Name",
|
|
41038
|
+
dataQa: "Edit First Name",
|
|
41012
41039
|
errorMessages: firstNameErrorMessages,
|
|
41013
41040
|
field: fields.firstName,
|
|
41014
41041
|
fieldActions: actions.fields.firstName,
|
|
@@ -41016,9 +41043,10 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
41016
41043
|
onKeyDown: function onKeyDown(e) {
|
|
41017
41044
|
return e.key === "Enter" && handleSubmit(e);
|
|
41018
41045
|
},
|
|
41019
|
-
|
|
41046
|
+
autocompleteValue: "given-name"
|
|
41020
41047
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41021
41048
|
labelTextWhenNoError: "Last Name",
|
|
41049
|
+
dataQa: "Edit Last Name",
|
|
41022
41050
|
errorMessages: lastNameErrorMessages,
|
|
41023
41051
|
field: fields.lastName,
|
|
41024
41052
|
fieldActions: actions.fields.lastName,
|
|
@@ -41026,7 +41054,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
41026
41054
|
onKeyDown: function onKeyDown(e) {
|
|
41027
41055
|
return e.key === "Enter" && handleSubmit(e);
|
|
41028
41056
|
},
|
|
41029
|
-
|
|
41057
|
+
autocompleteValue: "family-name"
|
|
41030
41058
|
})));
|
|
41031
41059
|
};
|
|
41032
41060
|
|
|
@@ -41335,7 +41363,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41335
41363
|
showErrors = _ref.showErrors,
|
|
41336
41364
|
guestCheckout = _ref.guestCheckout,
|
|
41337
41365
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41338
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
41366
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
41339
41367
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
41340
41368
|
saveToWallet = _ref.saveToWallet,
|
|
41341
41369
|
walletCheckboxMarked = _ref.walletCheckboxMarked;
|
|
@@ -41366,7 +41394,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41366
41394
|
return e.key === "Enter" && handleSubmit(e);
|
|
41367
41395
|
},
|
|
41368
41396
|
isEmail: true,
|
|
41369
|
-
|
|
41397
|
+
autocompleteValue: "email",
|
|
41398
|
+
dataQa: "Email address"
|
|
41370
41399
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
41371
41400
|
name: "email checkbox",
|
|
41372
41401
|
title: "Save email address to wallet",
|
|
@@ -41434,7 +41463,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41434
41463
|
clearOnDismount = _ref.clearOnDismount,
|
|
41435
41464
|
showErrors = _ref.showErrors,
|
|
41436
41465
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41437
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41466
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
41438
41467
|
|
|
41439
41468
|
if (clearOnDismount) {
|
|
41440
41469
|
React.useEffect(function () {
|
|
@@ -41455,7 +41484,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41455
41484
|
return e.key === "Enter" && handleSubmit(e);
|
|
41456
41485
|
},
|
|
41457
41486
|
isEmail: true,
|
|
41458
|
-
|
|
41487
|
+
autocompleteValue: "email"
|
|
41459
41488
|
});
|
|
41460
41489
|
};
|
|
41461
41490
|
|
|
@@ -43113,7 +43142,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
43113
43142
|
actions = _ref.actions,
|
|
43114
43143
|
showErrors = _ref.showErrors,
|
|
43115
43144
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
43116
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
43145
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
43117
43146
|
|
|
43118
43147
|
if (clearOnDismount) {
|
|
43119
43148
|
React.useEffect(function () {
|
|
@@ -43141,7 +43170,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
43141
43170
|
return e.key === "Enter" && handleSubmit(e);
|
|
43142
43171
|
},
|
|
43143
43172
|
isEmail: true,
|
|
43144
|
-
|
|
43173
|
+
autocompleteValue: "email"
|
|
43145
43174
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
43146
43175
|
labelTextWhenNoError: "Password",
|
|
43147
43176
|
errorMessages: passwordErrorMessages,
|
|
@@ -43152,7 +43181,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
43152
43181
|
onKeyDown: function onKeyDown(e) {
|
|
43153
43182
|
return e.key === "Enter" && handleSubmit(e);
|
|
43154
43183
|
},
|
|
43155
|
-
|
|
43184
|
+
autocompleteValue: "current-password"
|
|
43156
43185
|
}));
|
|
43157
43186
|
};
|
|
43158
43187
|
|
|
@@ -46637,14 +46666,17 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46637
46666
|
customWidth = _ref.customWidth,
|
|
46638
46667
|
isLoading = _ref.isLoading,
|
|
46639
46668
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
46640
|
-
children = _ref.children
|
|
46669
|
+
children = _ref.children,
|
|
46670
|
+
_ref$dataQa = _ref.dataQa,
|
|
46671
|
+
dataQa = _ref$dataQa === void 0 ? "" : _ref$dataQa;
|
|
46641
46672
|
|
|
46642
46673
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46643
46674
|
isMobile = _useContext.isMobile;
|
|
46644
46675
|
|
|
46645
46676
|
var modalContainerRef = React.useRef(null);
|
|
46646
46677
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
46647
|
-
ref: modalContainerRef
|
|
46678
|
+
ref: modalContainerRef,
|
|
46679
|
+
"data-qa": dataQa
|
|
46648
46680
|
}, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal // fallback to resolve Jest unit test errors when tabbable doesn't exist in jsdom https://github.com/focus-trap/focus-trap-react/issues/91
|
|
46649
46681
|
, {
|
|
46650
46682
|
focusTrapOptions: {
|
|
@@ -48034,7 +48066,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
48034
48066
|
return setCurrentPage({
|
|
48035
48067
|
pageNumber: item.index
|
|
48036
48068
|
});
|
|
48037
|
-
} : noop,
|
|
48069
|
+
} : noop$1,
|
|
48038
48070
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
48039
48071
|
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
48040
48072
|
dataQa: index
|
|
@@ -48156,7 +48188,7 @@ var fallbackValues$N = {
|
|
|
48156
48188
|
labeledAmountTotal: labeledAmountTotal
|
|
48157
48189
|
};
|
|
48158
48190
|
|
|
48159
|
-
var _excluded$
|
|
48191
|
+
var _excluded$x = ["amount"],
|
|
48160
48192
|
_excluded2$1 = ["amount"];
|
|
48161
48193
|
|
|
48162
48194
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48347,7 +48379,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48347
48379
|
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
48348
48380
|
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
48349
48381
|
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
48350
|
-
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
48382
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop$1 : _ref4$partialVoidActi,
|
|
48351
48383
|
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
48352
48384
|
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
|
|
48353
48385
|
_ref4$remainingBalanc = _ref4.remainingBalance,
|
|
@@ -48366,7 +48398,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48366
48398
|
return fee.amount > 0;
|
|
48367
48399
|
}).map(function (_ref5) {
|
|
48368
48400
|
var amount = _ref5.amount,
|
|
48369
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48401
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
48370
48402
|
|
|
48371
48403
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48372
48404
|
amount: displayCurrency(amount)
|
|
@@ -48503,7 +48535,9 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48503
48535
|
acceptText = _ref.acceptText,
|
|
48504
48536
|
content = _ref.content,
|
|
48505
48537
|
imageType = _ref.imageType,
|
|
48506
|
-
themeValues = _ref.themeValues
|
|
48538
|
+
themeValues = _ref.themeValues,
|
|
48539
|
+
_ref$dataQa = _ref.dataQa,
|
|
48540
|
+
dataQa = _ref$dataQa === void 0 ? "AccountAndRoutingModal" : _ref$dataQa;
|
|
48507
48541
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
48508
48542
|
modalOpen: isOpen,
|
|
48509
48543
|
hideModal: function hideModal() {
|
|
@@ -48513,6 +48547,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48513
48547
|
return toggleOpen(true);
|
|
48514
48548
|
},
|
|
48515
48549
|
modalHeaderText: title,
|
|
48550
|
+
dataQa: dataQa,
|
|
48516
48551
|
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
48517
48552
|
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48518
48553
|
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
@@ -48530,6 +48565,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48530
48565
|
toggleOpen(false);
|
|
48531
48566
|
}
|
|
48532
48567
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48568
|
+
role: "button",
|
|
48533
48569
|
variant: "pS",
|
|
48534
48570
|
onClick: function onClick() {
|
|
48535
48571
|
return toggleOpen(true);
|
|
@@ -48650,16 +48686,21 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48650
48686
|
terms = _ref.terms,
|
|
48651
48687
|
_ref$error = _ref.error,
|
|
48652
48688
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
48653
|
-
linkVariant = _ref.linkVariant
|
|
48689
|
+
linkVariant = _ref.linkVariant,
|
|
48690
|
+
_ref$dataQa = _ref.dataQa,
|
|
48691
|
+
dataQa = _ref$dataQa === void 0 ? "TermsAndConditionsControlV1" : _ref$dataQa;
|
|
48654
48692
|
|
|
48655
48693
|
var _useState = React.useState(false),
|
|
48656
48694
|
_useState2 = _slicedToArray(_useState, 2),
|
|
48657
48695
|
showTerms = _useState2[0],
|
|
48658
48696
|
toggleShowTerms = _useState2[1];
|
|
48659
48697
|
|
|
48660
|
-
return /*#__PURE__*/React__default.createElement(DisplayBox$1,
|
|
48698
|
+
return /*#__PURE__*/React__default.createElement(DisplayBox$1, {
|
|
48699
|
+
dataQ: dataQa
|
|
48700
|
+
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48661
48701
|
name: "terms",
|
|
48662
48702
|
title: "Terms and Conditions",
|
|
48703
|
+
dataQa: "Terms and Conditions",
|
|
48663
48704
|
error: error,
|
|
48664
48705
|
checked: isChecked,
|
|
48665
48706
|
onChange: onCheck
|
|
@@ -48738,7 +48779,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48738
48779
|
_ref$checkboxMargin = _ref.checkboxMargin,
|
|
48739
48780
|
checkboxMargin = _ref$checkboxMargin === void 0 ? "4px 8px 4px 4px" : _ref$checkboxMargin,
|
|
48740
48781
|
_ref$modalTitle = _ref.modalTitle,
|
|
48741
|
-
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle
|
|
48782
|
+
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle,
|
|
48783
|
+
_ref$dataQa = _ref.dataQa,
|
|
48784
|
+
dataQa = _ref$dataQa === void 0 ? "TermsAndConditionsControlV2" : _ref$dataQa;
|
|
48742
48785
|
|
|
48743
48786
|
var _useState = React.useState(false),
|
|
48744
48787
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48760,7 +48803,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48760
48803
|
minWidth: displayInline ? "0" : "100%",
|
|
48761
48804
|
background: displayInline ? "transparent" : containerBackground,
|
|
48762
48805
|
boxShadow: displayInline ? "none" : standardBoxShadow,
|
|
48763
|
-
borderRadius: displayInline ? "0" : "4px"
|
|
48806
|
+
borderRadius: displayInline ? "0" : "4px",
|
|
48807
|
+
dataQa: dataQa
|
|
48764
48808
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48765
48809
|
childGap: "0"
|
|
48766
48810
|
}, html && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48793,19 +48837,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48793
48837
|
toggleOpen: toggleTerms,
|
|
48794
48838
|
linkVariant: modalVariant,
|
|
48795
48839
|
title: modalTitle
|
|
48796
|
-
})),
|
|
48840
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
48841
|
+
"aria-live": "polite",
|
|
48842
|
+
"aria-atomic": true
|
|
48843
|
+
}, showCheckbox && hasError && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48797
48844
|
variant: "pXS",
|
|
48798
48845
|
color: ERROR_COLOR,
|
|
48799
48846
|
id: "".concat(id, "-error-message")
|
|
48800
|
-
}, errorMessage)))));
|
|
48847
|
+
}, errorMessage))))));
|
|
48801
48848
|
};
|
|
48802
48849
|
|
|
48803
|
-
var _excluded$
|
|
48850
|
+
var _excluded$y = ["version"];
|
|
48804
48851
|
|
|
48805
48852
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48806
48853
|
var _ref$version = _ref.version,
|
|
48807
48854
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48808
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48855
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48809
48856
|
|
|
48810
48857
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48811
48858
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48826,7 +48873,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48826
48873
|
actions = _ref.actions,
|
|
48827
48874
|
showErrors = _ref.showErrors,
|
|
48828
48875
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48829
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48876
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
48830
48877
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48831
48878
|
saveToWallet = _ref.saveToWallet,
|
|
48832
48879
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48870,6 +48917,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48870
48917
|
"aria-label": "ACH Payment"
|
|
48871
48918
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48872
48919
|
labelTextWhenNoError: "Name on checking account",
|
|
48920
|
+
dataQa: "Name on checking account",
|
|
48873
48921
|
errorMessages: nameErrors,
|
|
48874
48922
|
field: fields.name,
|
|
48875
48923
|
fieldActions: actions.fields.name,
|
|
@@ -48877,9 +48925,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48877
48925
|
onKeyDown: function onKeyDown(e) {
|
|
48878
48926
|
return e.key === "Enter" && handleSubmit(e);
|
|
48879
48927
|
},
|
|
48880
|
-
|
|
48928
|
+
autocompleteValue: "name"
|
|
48881
48929
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48882
48930
|
labelTextWhenNoError: "Routing number",
|
|
48931
|
+
dataQa: "Routing number",
|
|
48883
48932
|
errorMessages: routingNumberErrors,
|
|
48884
48933
|
field: fields.routingNumber,
|
|
48885
48934
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48892,7 +48941,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48892
48941
|
content: "Your routing number is the 9-digit number in the bottom left corner of your check.",
|
|
48893
48942
|
imageType: "Routing",
|
|
48894
48943
|
isOpen: showRouting,
|
|
48895
|
-
toggleOpen: toggleShowRouting
|
|
48944
|
+
toggleOpen: toggleShowRouting,
|
|
48945
|
+
"data-qa": "What is my routing number"
|
|
48896
48946
|
});
|
|
48897
48947
|
},
|
|
48898
48948
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -48900,6 +48950,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48900
48950
|
}
|
|
48901
48951
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48902
48952
|
labelTextWhenNoError: "Confirm routing number",
|
|
48953
|
+
dataQa: "Confirm routing number",
|
|
48903
48954
|
errorMessages: confirmRoutingNumberErrors,
|
|
48904
48955
|
field: fields.confirmRoutingNumber,
|
|
48905
48956
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48910,6 +48961,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48910
48961
|
isNum: true
|
|
48911
48962
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48912
48963
|
labelTextWhenNoError: "Account number",
|
|
48964
|
+
dataQa: "Account number",
|
|
48913
48965
|
errorMessages: accountNumberErrors,
|
|
48914
48966
|
field: fields.accountNumber,
|
|
48915
48967
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48922,7 +48974,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48922
48974
|
content: "Your account number is usually the 10-digit number in the bottom of your check to the right of the routing number.",
|
|
48923
48975
|
imageType: "Account",
|
|
48924
48976
|
isOpen: showAccount,
|
|
48925
|
-
toggleOpen: toggleShowAccount
|
|
48977
|
+
toggleOpen: toggleShowAccount,
|
|
48978
|
+
dataQa: "What is my account number"
|
|
48926
48979
|
});
|
|
48927
48980
|
},
|
|
48928
48981
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -48930,6 +48983,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48930
48983
|
}
|
|
48931
48984
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48932
48985
|
labelTextWhenNoError: "Confirm account number",
|
|
48986
|
+
dataQa: "Confirm account number",
|
|
48933
48987
|
errorMessages: confirmAccountNumberErrors,
|
|
48934
48988
|
field: fields.confirmAccountNumber,
|
|
48935
48989
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48940,6 +48994,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48940
48994
|
isNum: true
|
|
48941
48995
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48942
48996
|
labelTextWhenNoError: "Account type",
|
|
48997
|
+
dataQa: "Account type",
|
|
48943
48998
|
options: [{
|
|
48944
48999
|
text: "Select account type",
|
|
48945
49000
|
value: ""
|
|
@@ -48956,6 +49011,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48956
49011
|
field: fields.accountType
|
|
48957
49012
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48958
49013
|
title: "Save as Default Payment Method",
|
|
49014
|
+
dataQa: "default-payment-ach",
|
|
48959
49015
|
name: "default-payment-ach",
|
|
48960
49016
|
onChange: toggleCheckbox,
|
|
48961
49017
|
checked: defaultMethod.value,
|
|
@@ -48965,6 +49021,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48965
49021
|
align: "center"
|
|
48966
49022
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48967
49023
|
name: "bank checkbox",
|
|
49024
|
+
dataQa: "Save checking account to wallet",
|
|
48968
49025
|
title: "Save checking account to wallet.",
|
|
48969
49026
|
checked: walletCheckboxMarked,
|
|
48970
49027
|
onChange: saveToWallet
|
|
@@ -49025,7 +49082,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49025
49082
|
actions = _ref.actions,
|
|
49026
49083
|
showErrors = _ref.showErrors,
|
|
49027
49084
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49028
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49085
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49029
49086
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
49030
49087
|
saveToWallet = _ref.saveToWallet,
|
|
49031
49088
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49077,9 +49134,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49077
49134
|
actions.fields.zipCode.set("");
|
|
49078
49135
|
}
|
|
49079
49136
|
},
|
|
49080
|
-
showErrors: showErrors
|
|
49137
|
+
showErrors: showErrors,
|
|
49138
|
+
dataQa: "Country"
|
|
49081
49139
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49082
49140
|
labelTextWhenNoError: "Name on card",
|
|
49141
|
+
dataQa: "Name on card",
|
|
49083
49142
|
errorMessages: nameOnCardErrors,
|
|
49084
49143
|
field: fields.nameOnCard,
|
|
49085
49144
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49087,9 +49146,10 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49087
49146
|
onKeyDown: function onKeyDown(e) {
|
|
49088
49147
|
return e.key === "Enter" && handleSubmit(e);
|
|
49089
49148
|
},
|
|
49090
|
-
|
|
49149
|
+
autocompleteValue: "cc-name"
|
|
49091
49150
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49092
49151
|
labelTextWhenNoError: "Credit card number",
|
|
49152
|
+
dataQa: "Credit card number",
|
|
49093
49153
|
errorMessages: creditCardNumberErrors,
|
|
49094
49154
|
field: fields.creditCardNumber,
|
|
49095
49155
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49099,12 +49159,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49099
49159
|
return e.key === "Enter" && handleSubmit(e);
|
|
49100
49160
|
},
|
|
49101
49161
|
isNum: true,
|
|
49102
|
-
|
|
49162
|
+
autocompleteValue: "cc-number"
|
|
49103
49163
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
49104
49164
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
49105
49165
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49106
49166
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49107
49167
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49168
|
+
dataQa: "Expiration date",
|
|
49108
49169
|
errorMessages: expirationDateErrors,
|
|
49109
49170
|
field: fields.expirationDate,
|
|
49110
49171
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49116,9 +49177,10 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49116
49177
|
isNum: true,
|
|
49117
49178
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
49118
49179
|
,
|
|
49119
|
-
|
|
49180
|
+
autocompleteValue: "cc-exp"
|
|
49120
49181
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49121
49182
|
labelTextWhenNoError: "CVV",
|
|
49183
|
+
dataQa: "CVV",
|
|
49122
49184
|
errorMessages: cvvErrors,
|
|
49123
49185
|
field: fields.cvv,
|
|
49124
49186
|
fieldActions: actions.fields.cvv,
|
|
@@ -49128,7 +49190,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49128
49190
|
onKeyDown: function onKeyDown(e) {
|
|
49129
49191
|
return e.key === "Enter" && handleSubmit(e);
|
|
49130
49192
|
},
|
|
49131
|
-
|
|
49193
|
+
autocompleteValue: "cc-csc"
|
|
49132
49194
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
49133
49195
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
49134
49196
|
width: isMobile ? "100%" : "50%"
|
|
@@ -49136,6 +49198,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49136
49198
|
isNum: isUS,
|
|
49137
49199
|
formatter: isUS ? zipFormat : null,
|
|
49138
49200
|
labelTextWhenNoError: "Zip code",
|
|
49201
|
+
dataQa: "Zip code",
|
|
49139
49202
|
errorMessages: zipCodeErrors,
|
|
49140
49203
|
field: fields.zipCode,
|
|
49141
49204
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49143,12 +49206,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49143
49206
|
onKeyDown: function onKeyDown(e) {
|
|
49144
49207
|
return e.key === "Enter" && handleSubmit(e);
|
|
49145
49208
|
},
|
|
49146
|
-
|
|
49209
|
+
autocompleteValue: "billing postal-code"
|
|
49147
49210
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
49148
49211
|
childGap: "4px",
|
|
49149
49212
|
align: "center"
|
|
49150
49213
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49151
49214
|
name: "credit card checkbox",
|
|
49215
|
+
dataQa: "Save credit card to wallet",
|
|
49152
49216
|
title: "Save credit card to wallet.",
|
|
49153
49217
|
checked: walletCheckboxMarked,
|
|
49154
49218
|
onChange: saveToWallet
|
|
@@ -49360,8 +49424,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49360
49424
|
onKeyUp: function onKeyUp(e) {
|
|
49361
49425
|
return e.key === "Enter" && handleSubmit(e);
|
|
49362
49426
|
},
|
|
49363
|
-
|
|
49364
|
-
|
|
49427
|
+
autocompleteValue: "tel",
|
|
49428
|
+
dataQa: "Phone number"
|
|
49365
49429
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49366
49430
|
name: "phone checkbox",
|
|
49367
49431
|
title: "Save phone number to wallet",
|
|
@@ -49408,7 +49472,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
49408
49472
|
config = _ref.config,
|
|
49409
49473
|
extraStyles = _ref.extraStyles,
|
|
49410
49474
|
_ref$handleChange = _ref.handleChange,
|
|
49411
|
-
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
49475
|
+
handleChange = _ref$handleChange === void 0 ? noop$1 : _ref$handleChange,
|
|
49412
49476
|
field = _ref.field,
|
|
49413
49477
|
fieldActions = _ref.fieldActions;
|
|
49414
49478
|
|
|
@@ -49570,12 +49634,12 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49570
49634
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
49571
49635
|
padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem",
|
|
49572
49636
|
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
49573
|
-
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
49637
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop$1 : function () {
|
|
49574
49638
|
return toggleOpenSection(section.id);
|
|
49575
49639
|
},
|
|
49576
49640
|
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
49577
49641
|
return toggleOpenSection(section.id);
|
|
49578
|
-
} : noop,
|
|
49642
|
+
} : noop$1,
|
|
49579
49643
|
key: "header-".concat(section.id),
|
|
49580
49644
|
borderSize: "0px",
|
|
49581
49645
|
borderColor: themeValues.borderColor,
|
|
@@ -49598,7 +49662,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49598
49662
|
ariaDescribedBy: ariaDescribedBy,
|
|
49599
49663
|
radioOn: openSection === section.id,
|
|
49600
49664
|
radioFocused: focused === section.id,
|
|
49601
|
-
toggleRadio: section.disabled ? noop : function () {
|
|
49665
|
+
toggleRadio: section.disabled ? noop$1 : function () {
|
|
49602
49666
|
return toggleOpenSection(section.id);
|
|
49603
49667
|
},
|
|
49604
49668
|
tabIndex: "-1"
|
|
@@ -49644,7 +49708,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49644
49708
|
fields = _ref.fields,
|
|
49645
49709
|
actions = _ref.actions,
|
|
49646
49710
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49647
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49711
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49648
49712
|
showErrors = _ref.showErrors,
|
|
49649
49713
|
isMobile = _ref.isMobile;
|
|
49650
49714
|
|
|
@@ -49677,7 +49741,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49677
49741
|
onKeyDown: function onKeyDown(e) {
|
|
49678
49742
|
return e.key === "Enter" && handleSubmit(e);
|
|
49679
49743
|
},
|
|
49680
|
-
|
|
49744
|
+
autocompleteValue: "given-name"
|
|
49681
49745
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49682
49746
|
labelTextWhenNoError: "Last name",
|
|
49683
49747
|
errorMessages: lastNameErrorMessages,
|
|
@@ -49687,7 +49751,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49687
49751
|
onKeyDown: function onKeyDown(e) {
|
|
49688
49752
|
return e.key === "Enter" && handleSubmit(e);
|
|
49689
49753
|
},
|
|
49690
|
-
|
|
49754
|
+
autocompleteValue: "family-name"
|
|
49691
49755
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49692
49756
|
labelTextWhenNoError: "Email address",
|
|
49693
49757
|
errorMessages: emailErrorMessages,
|
|
@@ -49699,7 +49763,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49699
49763
|
},
|
|
49700
49764
|
type: "email",
|
|
49701
49765
|
isEmail: true,
|
|
49702
|
-
|
|
49766
|
+
autocompleteValue: "email"
|
|
49703
49767
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49704
49768
|
labelTextWhenNoError: "Password",
|
|
49705
49769
|
errorMessages: passwordErrorMessages,
|
|
@@ -49710,7 +49774,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49710
49774
|
return e.key === "Enter" && handleSubmit(e);
|
|
49711
49775
|
},
|
|
49712
49776
|
type: "password",
|
|
49713
|
-
|
|
49777
|
+
autocompleteValue: "new-password"
|
|
49714
49778
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49715
49779
|
labelTextWhenNoError: "Confirm password",
|
|
49716
49780
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49721,7 +49785,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49721
49785
|
return e.key === "Enter" && handleSubmit(e);
|
|
49722
49786
|
},
|
|
49723
49787
|
type: "password",
|
|
49724
|
-
|
|
49788
|
+
autocompleteValue: "new-password"
|
|
49725
49789
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
49726
49790
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
49727
49791
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
@@ -49810,7 +49874,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
49810
49874
|
var _passwordErrorMessage;
|
|
49811
49875
|
|
|
49812
49876
|
var _ref$handleSubmit = _ref.handleSubmit,
|
|
49813
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49877
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49814
49878
|
clearOnDismount = _ref.clearOnDismount,
|
|
49815
49879
|
fields = _ref.fields,
|
|
49816
49880
|
actions = _ref.actions,
|
|
@@ -49842,7 +49906,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
49842
49906
|
return e.key === "Enter" && handleSubmit(e);
|
|
49843
49907
|
},
|
|
49844
49908
|
type: "password",
|
|
49845
|
-
|
|
49909
|
+
autocompleteValue: "new-password"
|
|
49846
49910
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49847
49911
|
labelTextWhenNoError: "Confirm password",
|
|
49848
49912
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49853,7 +49917,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
49853
49917
|
return e.key === "Enter" && handleSubmit(e);
|
|
49854
49918
|
},
|
|
49855
49919
|
type: "password",
|
|
49856
|
-
|
|
49920
|
+
autocompleteValue: "new-password"
|
|
49857
49921
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
49858
49922
|
padding: "0"
|
|
49859
49923
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|