@thecb/components 8.4.11-beta.9 → 9.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +223 -160
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.esm.js +223 -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,11 @@ 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
|
+
dataQa = _ref15.dataQa,
|
|
25938
25960
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
25939
25961
|
|
|
25940
25962
|
var _useState = React.useState(false),
|
|
@@ -25954,8 +25976,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25954
25976
|
};
|
|
25955
25977
|
|
|
25956
25978
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
25957
|
-
childGap: "0.25rem"
|
|
25958
|
-
"aria-live": "assertive"
|
|
25979
|
+
childGap: "0.25rem"
|
|
25959
25980
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
25960
25981
|
padding: "0"
|
|
25961
25982
|
}, helperModal ? /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -25994,19 +26015,19 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25994
26015
|
onClick: function onClick() {
|
|
25995
26016
|
return setShowPassword(!showPassword);
|
|
25996
26017
|
},
|
|
25997
|
-
"aria-label": "Show password",
|
|
25998
26018
|
tabIndex: "0",
|
|
26019
|
+
"aria-label": showPassword ? "Hide Password" : "Show password",
|
|
26020
|
+
"aria-live": "polite",
|
|
25999
26021
|
onKeyPress: function onKeyPress(e) {
|
|
26000
26022
|
return e.key === "Enter" && setShowPassword(!showPassword);
|
|
26001
26023
|
}
|
|
26002
26024
|
}, showPassword ? "Hide" : "Show"), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
|
|
26003
26025
|
padding: "0 0 0 auto"
|
|
26004
26026
|
}, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
|
|
26005
|
-
padding: "0"
|
|
26006
|
-
"aria-live": "assertive"
|
|
26027
|
+
padding: "0"
|
|
26007
26028
|
}, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
|
|
26008
26029
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26009
|
-
"aria-describedby": createIdFromString(labelTextWhenNoError),
|
|
26030
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
26010
26031
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
|
|
26011
26032
|
onChange: function onChange(value) {
|
|
26012
26033
|
return setValue(value);
|
|
@@ -26018,14 +26039,14 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26018
26039
|
field: field,
|
|
26019
26040
|
formatter: formatter,
|
|
26020
26041
|
showErrors: showErrors,
|
|
26021
|
-
"data-qa": labelTextWhenNoError,
|
|
26022
26042
|
themeValues: themeValues,
|
|
26023
26043
|
$customHeight: customHeight,
|
|
26024
26044
|
$extraStyles: extraStyles,
|
|
26025
|
-
|
|
26045
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26046
|
+
autoComplete: autocompleteValue
|
|
26026
26047
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26027
26048
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26028
|
-
"aria-describedby": createIdFromString(labelTextWhenNoError),
|
|
26049
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
26029
26050
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
|
|
26030
26051
|
onChange: function onChange(e) {
|
|
26031
26052
|
return setValue(e.target.value);
|
|
@@ -26036,16 +26057,18 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26036
26057
|
inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
|
|
26037
26058
|
field: field,
|
|
26038
26059
|
showErrors: showErrors,
|
|
26039
|
-
"data-qa": labelTextWhenNoError,
|
|
26040
26060
|
themeValues: themeValues,
|
|
26041
26061
|
background: background,
|
|
26042
26062
|
$customHeight: customHeight,
|
|
26043
26063
|
$extraStyles: extraStyles,
|
|
26044
|
-
|
|
26064
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
26065
|
+
autoComplete: autocompleteValue
|
|
26045
26066
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26046
26067
|
direction: "row",
|
|
26047
26068
|
justify: "space-between",
|
|
26048
|
-
|
|
26069
|
+
"aria-live": "polite",
|
|
26070
|
+
"aria-atomic": true,
|
|
26071
|
+
"data-qa": "".concat(labelTextWhenNoError, " error message")
|
|
26049
26072
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26050
26073
|
color: ERROR_COLOR,
|
|
26051
26074
|
variant: "pXS",
|
|
@@ -26061,7 +26084,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26061
26084
|
|
|
26062
26085
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26063
26086
|
|
|
26064
|
-
var _excluded$
|
|
26087
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26065
26088
|
|
|
26066
26089
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26067
26090
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26071,7 +26094,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26071
26094
|
largeChild = _ref.largeChild,
|
|
26072
26095
|
largeChildSize = _ref.largeChildSize,
|
|
26073
26096
|
children = _ref.children,
|
|
26074
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26097
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
26075
26098
|
|
|
26076
26099
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26077
26100
|
padding: "0"
|
|
@@ -26083,14 +26106,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26083
26106
|
}, children));
|
|
26084
26107
|
};
|
|
26085
26108
|
|
|
26086
|
-
var _excluded$
|
|
26109
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
26087
26110
|
|
|
26088
26111
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26089
26112
|
var _ref$childGap = _ref.childGap,
|
|
26090
26113
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26091
26114
|
bottomItem = _ref.bottomItem,
|
|
26092
26115
|
children = _ref.children,
|
|
26093
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26116
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26094
26117
|
|
|
26095
26118
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26096
26119
|
childGap: childGap,
|
|
@@ -26098,12 +26121,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26098
26121
|
}, rest), children);
|
|
26099
26122
|
};
|
|
26100
26123
|
|
|
26101
|
-
var _excluded$
|
|
26124
|
+
var _excluded$s = ["themeValues", "children"];
|
|
26102
26125
|
|
|
26103
26126
|
var FormContainer = function FormContainer(_ref) {
|
|
26104
26127
|
var themeValues = _ref.themeValues,
|
|
26105
26128
|
children = _ref.children,
|
|
26106
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26129
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26107
26130
|
|
|
26108
26131
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26109
26132
|
isMobile = _useContext.isMobile;
|
|
@@ -26310,7 +26333,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
26310
26333
|
inactiveColor = _ref4.inactiveColor,
|
|
26311
26334
|
isActive = _ref4.isActive,
|
|
26312
26335
|
_ref4$onClick = _ref4.onClick,
|
|
26313
|
-
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
26336
|
+
onClick = _ref4$onClick === void 0 ? noop$1 : _ref4$onClick,
|
|
26314
26337
|
controls = _ref4.controls;
|
|
26315
26338
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
26316
26339
|
className: isActive === true ? "active" : "",
|
|
@@ -26368,7 +26391,7 @@ var fallbackValues$o = {
|
|
|
26368
26391
|
fontSize: fontSize$8
|
|
26369
26392
|
};
|
|
26370
26393
|
|
|
26371
|
-
var _excluded$
|
|
26394
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26372
26395
|
|
|
26373
26396
|
var Heading = function Heading(_ref) {
|
|
26374
26397
|
var themeValues = _ref.themeValues,
|
|
@@ -26388,7 +26411,7 @@ var Heading = function Heading(_ref) {
|
|
|
26388
26411
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26389
26412
|
dataQa = _ref.dataQa,
|
|
26390
26413
|
children = _ref.children,
|
|
26391
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26414
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26392
26415
|
|
|
26393
26416
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
26394
26417
|
variant: variant,
|
|
@@ -26679,7 +26702,7 @@ var Loading = function Loading() {
|
|
|
26679
26702
|
})))));
|
|
26680
26703
|
};
|
|
26681
26704
|
|
|
26682
|
-
var _excluded$
|
|
26705
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26683
26706
|
|
|
26684
26707
|
var NavFooter = function NavFooter(_ref) {
|
|
26685
26708
|
var leftContent = _ref.leftContent,
|
|
@@ -26695,7 +26718,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26695
26718
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26696
26719
|
isMobile = _ref.isMobile,
|
|
26697
26720
|
footerWidth = _ref.footerWidth,
|
|
26698
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26721
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26699
26722
|
|
|
26700
26723
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26701
26724
|
padding: footerPadding,
|
|
@@ -26727,7 +26750,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26727
26750
|
}, rightContent)))))));
|
|
26728
26751
|
};
|
|
26729
26752
|
|
|
26730
|
-
var _excluded$
|
|
26753
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26731
26754
|
|
|
26732
26755
|
var NavHeader = function NavHeader(_ref) {
|
|
26733
26756
|
var leftContent = _ref.leftContent,
|
|
@@ -26737,7 +26760,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26737
26760
|
isMobile = _ref.isMobile,
|
|
26738
26761
|
backgroundColor = _ref.backgroundColor,
|
|
26739
26762
|
headerWidth = _ref.headerWidth,
|
|
26740
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26763
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26741
26764
|
|
|
26742
26765
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26743
26766
|
padding: "0 16px 4px",
|
|
@@ -27118,7 +27141,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27118
27141
|
themeValues = _ref5.themeValues,
|
|
27119
27142
|
index = _ref5.index,
|
|
27120
27143
|
_ref5$handleChange = _ref5.handleChange,
|
|
27121
|
-
handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
|
|
27144
|
+
handleChange = _ref5$handleChange === void 0 ? noop$1 : _ref5$handleChange,
|
|
27122
27145
|
field = _ref5.field,
|
|
27123
27146
|
config = _ref5.config;
|
|
27124
27147
|
|
|
@@ -37933,7 +37956,10 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37933
37956
|
fieldActions = _ref.fieldActions,
|
|
37934
37957
|
showErrors = _ref.showErrors,
|
|
37935
37958
|
countryCode = _ref.countryCode,
|
|
37936
|
-
|
|
37959
|
+
_ref$autocompleteValu = _ref.autocompleteValue,
|
|
37960
|
+
autocompleteValue = _ref$autocompleteValu === void 0 ? "administrative-area" : _ref$autocompleteValu,
|
|
37961
|
+
_ref$dataQa = _ref.dataQa,
|
|
37962
|
+
dataQa = _ref$dataQa === void 0 ? "StateProvinceDropdown" : _ref$dataQa;
|
|
37937
37963
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
37938
37964
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
37939
37965
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -37943,7 +37969,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37943
37969
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
37944
37970
|
errorMessages: errorMessages,
|
|
37945
37971
|
showErrors: showErrors,
|
|
37946
|
-
|
|
37972
|
+
"aria-invalid": !!(errorMessages !== null && errorMessages !== void 0 && errorMessages.length),
|
|
37973
|
+
autocompleteValue: autocompleteValue,
|
|
37974
|
+
dataQa: dataQa
|
|
37947
37975
|
});
|
|
37948
37976
|
};
|
|
37949
37977
|
|
|
@@ -37999,7 +38027,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
37999
38027
|
var _ref6$isOn = _ref6.isOn,
|
|
38000
38028
|
isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
|
|
38001
38029
|
_ref6$onToggle = _ref6.onToggle,
|
|
38002
|
-
onToggle = _ref6$onToggle === void 0 ? noop : _ref6$onToggle,
|
|
38030
|
+
onToggle = _ref6$onToggle === void 0 ? noop$1 : _ref6$onToggle,
|
|
38003
38031
|
_ref6$disabled = _ref6.disabled,
|
|
38004
38032
|
disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
|
|
38005
38033
|
_ref6$name = _ref6.name,
|
|
@@ -38109,15 +38137,15 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38109
38137
|
}, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
|
|
38110
38138
|
"aria-label": name,
|
|
38111
38139
|
checked: isOn,
|
|
38112
|
-
onChange: disabled ? noop : onToggle,
|
|
38140
|
+
onChange: disabled ? noop$1 : onToggle,
|
|
38113
38141
|
disabled: disabled,
|
|
38114
38142
|
id: "#toggle-".concat(name),
|
|
38115
38143
|
isMobile: isMobile
|
|
38116
38144
|
}), /*#__PURE__*/React__default.createElement(VisibleSwitch, {
|
|
38117
38145
|
name: name,
|
|
38118
38146
|
htmlFor: "#toggle-".concat(name),
|
|
38119
|
-
onClick: disabled ? noop : onToggle,
|
|
38120
|
-
onKeyDown: disabled ? noop : handleKeyDown,
|
|
38147
|
+
onClick: disabled ? noop$1 : onToggle,
|
|
38148
|
+
onKeyDown: disabled ? noop$1 : handleKeyDown,
|
|
38121
38149
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
38122
38150
|
tabIndex: disabled ? -1 : 0,
|
|
38123
38151
|
disabled: disabled,
|
|
@@ -38512,7 +38540,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38512
38540
|
return extraStyles;
|
|
38513
38541
|
});
|
|
38514
38542
|
|
|
38515
|
-
var _excluded$
|
|
38543
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38516
38544
|
|
|
38517
38545
|
var TableRow = function TableRow(_ref) {
|
|
38518
38546
|
var children = _ref.children,
|
|
@@ -38522,7 +38550,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38522
38550
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38523
38551
|
onClick = _ref.onClick,
|
|
38524
38552
|
themeValues = _ref.themeValues,
|
|
38525
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38553
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38526
38554
|
|
|
38527
38555
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38528
38556
|
onClick: onClick,
|
|
@@ -40377,19 +40405,18 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40377
40405
|
}
|
|
40378
40406
|
},
|
|
40379
40407
|
showErrors: showErrors,
|
|
40380
|
-
|
|
40408
|
+
dataQa: "Country"
|
|
40381
40409
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40382
40410
|
labelTextWhenNoError: "Address",
|
|
40383
40411
|
errorMessages: street1ErrorMessages,
|
|
40384
|
-
required: true,
|
|
40385
40412
|
field: fields.street1,
|
|
40386
40413
|
fieldActions: actions.fields.street1,
|
|
40387
40414
|
showErrors: showErrors,
|
|
40388
40415
|
onKeyDown: function onKeyDown(e) {
|
|
40389
40416
|
return e.key === "Enter" && handleSubmit(e);
|
|
40390
40417
|
},
|
|
40391
|
-
|
|
40392
|
-
|
|
40418
|
+
autocompleteValue: "address-line1",
|
|
40419
|
+
dataQa: "Address Line 1"
|
|
40393
40420
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40394
40421
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40395
40422
|
field: fields.street2,
|
|
@@ -40398,11 +40425,10 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40398
40425
|
onKeyDown: function onKeyDown(e) {
|
|
40399
40426
|
return e.key === "Enter" && handleSubmit(e);
|
|
40400
40427
|
},
|
|
40401
|
-
|
|
40402
|
-
|
|
40428
|
+
autocompleteValue: "address-line2",
|
|
40429
|
+
dataQa: "Address Line 2"
|
|
40403
40430
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40404
40431
|
labelTextWhenNoError: "City",
|
|
40405
|
-
required: true,
|
|
40406
40432
|
errorMessages: cityErrorMessages,
|
|
40407
40433
|
field: fields.city,
|
|
40408
40434
|
fieldActions: actions.fields.city,
|
|
@@ -40410,8 +40436,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40410
40436
|
onKeyDown: function onKeyDown(e) {
|
|
40411
40437
|
return e.key === "Enter" && handleSubmit(e);
|
|
40412
40438
|
},
|
|
40413
|
-
|
|
40414
|
-
|
|
40439
|
+
autocompleteValue: "city",
|
|
40440
|
+
dataQa: "City"
|
|
40415
40441
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40416
40442
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40417
40443
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40422,8 +40448,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40422
40448
|
onKeyDown: function onKeyDown(e) {
|
|
40423
40449
|
return e.key === "Enter" && handleSubmit(e);
|
|
40424
40450
|
},
|
|
40425
|
-
|
|
40426
|
-
|
|
40451
|
+
autocompleteValue: "administrative-area",
|
|
40452
|
+
dataQa: "State or Province"
|
|
40427
40453
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40428
40454
|
isNum: isUS,
|
|
40429
40455
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40435,12 +40461,11 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40435
40461
|
onKeyDown: function onKeyDown(e) {
|
|
40436
40462
|
return e.key === "Enter" && handleSubmit(e);
|
|
40437
40463
|
},
|
|
40438
|
-
|
|
40439
|
-
|
|
40440
|
-
required: true
|
|
40464
|
+
autocompleteValue: "postal-code",
|
|
40465
|
+
dataQa: "Zip code"
|
|
40441
40466
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40442
40467
|
name: "address checkbox",
|
|
40443
|
-
title: "Save address to
|
|
40468
|
+
title: "Save address to wallet",
|
|
40444
40469
|
checked: walletCheckboxMarked,
|
|
40445
40470
|
onChange: saveToWallet
|
|
40446
40471
|
})));
|
|
@@ -40540,7 +40565,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40540
40565
|
fields = _ref.fields,
|
|
40541
40566
|
actions = _ref.actions,
|
|
40542
40567
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40543
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40568
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
40544
40569
|
showErrors = _ref.showErrors,
|
|
40545
40570
|
isMobile = _ref.isMobile,
|
|
40546
40571
|
revenueManagement = _ref.revenueManagement,
|
|
@@ -40597,7 +40622,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40597
40622
|
return e.key === "Enter" && handleSubmit(e);
|
|
40598
40623
|
},
|
|
40599
40624
|
type: "password",
|
|
40600
|
-
|
|
40625
|
+
autocompleteValue: "current-password"
|
|
40601
40626
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40602
40627
|
labelTextWhenNoError: "New password",
|
|
40603
40628
|
errorMessages: newPasswordErrorMessages,
|
|
@@ -40608,7 +40633,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40608
40633
|
return e.key === "Enter" && handleSubmit(e);
|
|
40609
40634
|
},
|
|
40610
40635
|
type: "password",
|
|
40611
|
-
|
|
40636
|
+
autocompleteValue: "new-password"
|
|
40612
40637
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40613
40638
|
labelTextWhenNoError: "Confirm password",
|
|
40614
40639
|
errorMessages: confirmNewPasswordErrorMessages,
|
|
@@ -40619,7 +40644,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40619
40644
|
return e.key === "Enter" && handleSubmit(e);
|
|
40620
40645
|
},
|
|
40621
40646
|
type: "password",
|
|
40622
|
-
|
|
40647
|
+
autocompleteValue: "new-password"
|
|
40623
40648
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
40624
40649
|
padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
|
|
40625
40650
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -40760,8 +40785,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40760
40785
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40761
40786
|
padding: customPadding ? customPadding : "0",
|
|
40762
40787
|
background: themeValues.headingBackgroundColor,
|
|
40763
|
-
onClick: isMobile && supportsTouch ? noop : toggleSection,
|
|
40764
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
|
|
40788
|
+
onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
|
|
40789
|
+
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
|
|
40765
40790
|
key: "header",
|
|
40766
40791
|
hoverStyles: "cursor: pointer;",
|
|
40767
40792
|
tabIndex: "0",
|
|
@@ -40990,7 +41015,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
40990
41015
|
clearOnDismount = _ref.clearOnDismount,
|
|
40991
41016
|
showErrors = _ref.showErrors,
|
|
40992
41017
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40993
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41018
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
40994
41019
|
|
|
40995
41020
|
if (clearOnDismount) {
|
|
40996
41021
|
React.useEffect(function () {
|
|
@@ -41009,6 +41034,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
41009
41034
|
"aria-label": "Edit name"
|
|
41010
41035
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41011
41036
|
labelTextWhenNoError: "First Name",
|
|
41037
|
+
dataQa: "Edit First Name",
|
|
41012
41038
|
errorMessages: firstNameErrorMessages,
|
|
41013
41039
|
field: fields.firstName,
|
|
41014
41040
|
fieldActions: actions.fields.firstName,
|
|
@@ -41016,9 +41042,10 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
41016
41042
|
onKeyDown: function onKeyDown(e) {
|
|
41017
41043
|
return e.key === "Enter" && handleSubmit(e);
|
|
41018
41044
|
},
|
|
41019
|
-
|
|
41045
|
+
autocompleteValue: "given-name"
|
|
41020
41046
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41021
41047
|
labelTextWhenNoError: "Last Name",
|
|
41048
|
+
dataQa: "Edit Last Name",
|
|
41022
41049
|
errorMessages: lastNameErrorMessages,
|
|
41023
41050
|
field: fields.lastName,
|
|
41024
41051
|
fieldActions: actions.fields.lastName,
|
|
@@ -41026,7 +41053,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
41026
41053
|
onKeyDown: function onKeyDown(e) {
|
|
41027
41054
|
return e.key === "Enter" && handleSubmit(e);
|
|
41028
41055
|
},
|
|
41029
|
-
|
|
41056
|
+
autocompleteValue: "family-name"
|
|
41030
41057
|
})));
|
|
41031
41058
|
};
|
|
41032
41059
|
|
|
@@ -41335,7 +41362,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41335
41362
|
showErrors = _ref.showErrors,
|
|
41336
41363
|
guestCheckout = _ref.guestCheckout,
|
|
41337
41364
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41338
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
41365
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
41339
41366
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
41340
41367
|
saveToWallet = _ref.saveToWallet,
|
|
41341
41368
|
walletCheckboxMarked = _ref.walletCheckboxMarked;
|
|
@@ -41366,7 +41393,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41366
41393
|
return e.key === "Enter" && handleSubmit(e);
|
|
41367
41394
|
},
|
|
41368
41395
|
isEmail: true,
|
|
41369
|
-
|
|
41396
|
+
autocompleteValue: "email",
|
|
41397
|
+
dataQa: "Email address"
|
|
41370
41398
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
41371
41399
|
name: "email checkbox",
|
|
41372
41400
|
title: "Save email address to wallet",
|
|
@@ -41434,7 +41462,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41434
41462
|
clearOnDismount = _ref.clearOnDismount,
|
|
41435
41463
|
showErrors = _ref.showErrors,
|
|
41436
41464
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41437
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41465
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
41438
41466
|
|
|
41439
41467
|
if (clearOnDismount) {
|
|
41440
41468
|
React.useEffect(function () {
|
|
@@ -41455,7 +41483,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41455
41483
|
return e.key === "Enter" && handleSubmit(e);
|
|
41456
41484
|
},
|
|
41457
41485
|
isEmail: true,
|
|
41458
|
-
|
|
41486
|
+
autocompleteValue: "email"
|
|
41459
41487
|
});
|
|
41460
41488
|
};
|
|
41461
41489
|
|
|
@@ -43113,7 +43141,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
43113
43141
|
actions = _ref.actions,
|
|
43114
43142
|
showErrors = _ref.showErrors,
|
|
43115
43143
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
43116
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
43144
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
43117
43145
|
|
|
43118
43146
|
if (clearOnDismount) {
|
|
43119
43147
|
React.useEffect(function () {
|
|
@@ -43141,7 +43169,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
43141
43169
|
return e.key === "Enter" && handleSubmit(e);
|
|
43142
43170
|
},
|
|
43143
43171
|
isEmail: true,
|
|
43144
|
-
|
|
43172
|
+
autocompleteValue: "email"
|
|
43145
43173
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
43146
43174
|
labelTextWhenNoError: "Password",
|
|
43147
43175
|
errorMessages: passwordErrorMessages,
|
|
@@ -43152,7 +43180,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
43152
43180
|
onKeyDown: function onKeyDown(e) {
|
|
43153
43181
|
return e.key === "Enter" && handleSubmit(e);
|
|
43154
43182
|
},
|
|
43155
|
-
|
|
43183
|
+
autocompleteValue: "current-password"
|
|
43156
43184
|
}));
|
|
43157
43185
|
};
|
|
43158
43186
|
|
|
@@ -46637,14 +46665,17 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46637
46665
|
customWidth = _ref.customWidth,
|
|
46638
46666
|
isLoading = _ref.isLoading,
|
|
46639
46667
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
46640
|
-
children = _ref.children
|
|
46668
|
+
children = _ref.children,
|
|
46669
|
+
_ref$dataQa = _ref.dataQa,
|
|
46670
|
+
dataQa = _ref$dataQa === void 0 ? "" : _ref$dataQa;
|
|
46641
46671
|
|
|
46642
46672
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46643
46673
|
isMobile = _useContext.isMobile;
|
|
46644
46674
|
|
|
46645
46675
|
var modalContainerRef = React.useRef(null);
|
|
46646
46676
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
46647
|
-
ref: modalContainerRef
|
|
46677
|
+
ref: modalContainerRef,
|
|
46678
|
+
"data-qa": dataQa
|
|
46648
46679
|
}, 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
46680
|
, {
|
|
46650
46681
|
focusTrapOptions: {
|
|
@@ -48034,7 +48065,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
48034
48065
|
return setCurrentPage({
|
|
48035
48066
|
pageNumber: item.index
|
|
48036
48067
|
});
|
|
48037
|
-
} : noop,
|
|
48068
|
+
} : noop$1,
|
|
48038
48069
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
48039
48070
|
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
48040
48071
|
dataQa: index
|
|
@@ -48156,7 +48187,7 @@ var fallbackValues$N = {
|
|
|
48156
48187
|
labeledAmountTotal: labeledAmountTotal
|
|
48157
48188
|
};
|
|
48158
48189
|
|
|
48159
|
-
var _excluded$
|
|
48190
|
+
var _excluded$x = ["amount"],
|
|
48160
48191
|
_excluded2$1 = ["amount"];
|
|
48161
48192
|
|
|
48162
48193
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48347,7 +48378,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48347
48378
|
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
48348
48379
|
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
48349
48380
|
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
48350
|
-
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
48381
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop$1 : _ref4$partialVoidActi,
|
|
48351
48382
|
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
48352
48383
|
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
|
|
48353
48384
|
_ref4$remainingBalanc = _ref4.remainingBalance,
|
|
@@ -48366,7 +48397,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48366
48397
|
return fee.amount > 0;
|
|
48367
48398
|
}).map(function (_ref5) {
|
|
48368
48399
|
var amount = _ref5.amount,
|
|
48369
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48400
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
48370
48401
|
|
|
48371
48402
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48372
48403
|
amount: displayCurrency(amount)
|
|
@@ -48503,7 +48534,9 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48503
48534
|
acceptText = _ref.acceptText,
|
|
48504
48535
|
content = _ref.content,
|
|
48505
48536
|
imageType = _ref.imageType,
|
|
48506
|
-
themeValues = _ref.themeValues
|
|
48537
|
+
themeValues = _ref.themeValues,
|
|
48538
|
+
_ref$dataQa = _ref.dataQa,
|
|
48539
|
+
dataQa = _ref$dataQa === void 0 ? "AccountAndRoutingModal" : _ref$dataQa;
|
|
48507
48540
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
48508
48541
|
modalOpen: isOpen,
|
|
48509
48542
|
hideModal: function hideModal() {
|
|
@@ -48513,6 +48546,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48513
48546
|
return toggleOpen(true);
|
|
48514
48547
|
},
|
|
48515
48548
|
modalHeaderText: title,
|
|
48549
|
+
dataQa: dataQa,
|
|
48516
48550
|
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
48517
48551
|
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48518
48552
|
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
@@ -48530,6 +48564,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48530
48564
|
toggleOpen(false);
|
|
48531
48565
|
}
|
|
48532
48566
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48567
|
+
role: "button",
|
|
48533
48568
|
variant: "pS",
|
|
48534
48569
|
onClick: function onClick() {
|
|
48535
48570
|
return toggleOpen(true);
|
|
@@ -48650,16 +48685,21 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48650
48685
|
terms = _ref.terms,
|
|
48651
48686
|
_ref$error = _ref.error,
|
|
48652
48687
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
48653
|
-
linkVariant = _ref.linkVariant
|
|
48688
|
+
linkVariant = _ref.linkVariant,
|
|
48689
|
+
_ref$dataQa = _ref.dataQa,
|
|
48690
|
+
dataQa = _ref$dataQa === void 0 ? "TermsAndConditionsControlV1" : _ref$dataQa;
|
|
48654
48691
|
|
|
48655
48692
|
var _useState = React.useState(false),
|
|
48656
48693
|
_useState2 = _slicedToArray(_useState, 2),
|
|
48657
48694
|
showTerms = _useState2[0],
|
|
48658
48695
|
toggleShowTerms = _useState2[1];
|
|
48659
48696
|
|
|
48660
|
-
return /*#__PURE__*/React__default.createElement(DisplayBox$1,
|
|
48697
|
+
return /*#__PURE__*/React__default.createElement(DisplayBox$1, {
|
|
48698
|
+
dataQ: dataQa
|
|
48699
|
+
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48661
48700
|
name: "terms",
|
|
48662
48701
|
title: "Terms and Conditions",
|
|
48702
|
+
dataQa: "Terms and Conditions",
|
|
48663
48703
|
error: error,
|
|
48664
48704
|
checked: isChecked,
|
|
48665
48705
|
onChange: onCheck
|
|
@@ -48738,7 +48778,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48738
48778
|
_ref$checkboxMargin = _ref.checkboxMargin,
|
|
48739
48779
|
checkboxMargin = _ref$checkboxMargin === void 0 ? "4px 8px 4px 4px" : _ref$checkboxMargin,
|
|
48740
48780
|
_ref$modalTitle = _ref.modalTitle,
|
|
48741
|
-
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _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;
|
|
48742
48784
|
|
|
48743
48785
|
var _useState = React.useState(false),
|
|
48744
48786
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48760,7 +48802,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48760
48802
|
minWidth: displayInline ? "0" : "100%",
|
|
48761
48803
|
background: displayInline ? "transparent" : containerBackground,
|
|
48762
48804
|
boxShadow: displayInline ? "none" : standardBoxShadow,
|
|
48763
|
-
borderRadius: displayInline ? "0" : "4px"
|
|
48805
|
+
borderRadius: displayInline ? "0" : "4px",
|
|
48806
|
+
dataQa: dataQa
|
|
48764
48807
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48765
48808
|
childGap: "0"
|
|
48766
48809
|
}, html && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48793,19 +48836,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48793
48836
|
toggleOpen: toggleTerms,
|
|
48794
48837
|
linkVariant: modalVariant,
|
|
48795
48838
|
title: modalTitle
|
|
48796
|
-
})),
|
|
48839
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
48840
|
+
"aria-live": "polite",
|
|
48841
|
+
"aria-atomic": true
|
|
48842
|
+
}, showCheckbox && hasError && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48797
48843
|
variant: "pXS",
|
|
48798
48844
|
color: ERROR_COLOR,
|
|
48799
48845
|
id: "".concat(id, "-error-message")
|
|
48800
|
-
}, errorMessage)))));
|
|
48846
|
+
}, errorMessage))))));
|
|
48801
48847
|
};
|
|
48802
48848
|
|
|
48803
|
-
var _excluded$
|
|
48849
|
+
var _excluded$y = ["version"];
|
|
48804
48850
|
|
|
48805
48851
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48806
48852
|
var _ref$version = _ref.version,
|
|
48807
48853
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48808
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48854
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48809
48855
|
|
|
48810
48856
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48811
48857
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48826,7 +48872,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48826
48872
|
actions = _ref.actions,
|
|
48827
48873
|
showErrors = _ref.showErrors,
|
|
48828
48874
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48829
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48875
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
48830
48876
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48831
48877
|
saveToWallet = _ref.saveToWallet,
|
|
48832
48878
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48870,6 +48916,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48870
48916
|
"aria-label": "ACH Payment"
|
|
48871
48917
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48872
48918
|
labelTextWhenNoError: "Name on checking account",
|
|
48919
|
+
dataQa: "Name on checking account",
|
|
48873
48920
|
errorMessages: nameErrors,
|
|
48874
48921
|
field: fields.name,
|
|
48875
48922
|
fieldActions: actions.fields.name,
|
|
@@ -48877,9 +48924,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48877
48924
|
onKeyDown: function onKeyDown(e) {
|
|
48878
48925
|
return e.key === "Enter" && handleSubmit(e);
|
|
48879
48926
|
},
|
|
48880
|
-
|
|
48927
|
+
autocompleteValue: "name"
|
|
48881
48928
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48882
48929
|
labelTextWhenNoError: "Routing number",
|
|
48930
|
+
dataQa: "Routing number",
|
|
48883
48931
|
errorMessages: routingNumberErrors,
|
|
48884
48932
|
field: fields.routingNumber,
|
|
48885
48933
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48892,7 +48940,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48892
48940
|
content: "Your routing number is the 9-digit number in the bottom left corner of your check.",
|
|
48893
48941
|
imageType: "Routing",
|
|
48894
48942
|
isOpen: showRouting,
|
|
48895
|
-
toggleOpen: toggleShowRouting
|
|
48943
|
+
toggleOpen: toggleShowRouting,
|
|
48944
|
+
"data-qa": "What is my routing number"
|
|
48896
48945
|
});
|
|
48897
48946
|
},
|
|
48898
48947
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -48900,6 +48949,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48900
48949
|
}
|
|
48901
48950
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48902
48951
|
labelTextWhenNoError: "Confirm routing number",
|
|
48952
|
+
dataQa: "Confirm routing number",
|
|
48903
48953
|
errorMessages: confirmRoutingNumberErrors,
|
|
48904
48954
|
field: fields.confirmRoutingNumber,
|
|
48905
48955
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48910,6 +48960,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48910
48960
|
isNum: true
|
|
48911
48961
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48912
48962
|
labelTextWhenNoError: "Account number",
|
|
48963
|
+
dataQa: "Account number",
|
|
48913
48964
|
errorMessages: accountNumberErrors,
|
|
48914
48965
|
field: fields.accountNumber,
|
|
48915
48966
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48922,7 +48973,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48922
48973
|
content: "Your account number is usually the 10-digit number in the bottom of your check to the right of the routing number.",
|
|
48923
48974
|
imageType: "Account",
|
|
48924
48975
|
isOpen: showAccount,
|
|
48925
|
-
toggleOpen: toggleShowAccount
|
|
48976
|
+
toggleOpen: toggleShowAccount,
|
|
48977
|
+
dataQa: "What is my account number"
|
|
48926
48978
|
});
|
|
48927
48979
|
},
|
|
48928
48980
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -48930,6 +48982,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48930
48982
|
}
|
|
48931
48983
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48932
48984
|
labelTextWhenNoError: "Confirm account number",
|
|
48985
|
+
dataQa: "Confirm account number",
|
|
48933
48986
|
errorMessages: confirmAccountNumberErrors,
|
|
48934
48987
|
field: fields.confirmAccountNumber,
|
|
48935
48988
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48940,6 +48993,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48940
48993
|
isNum: true
|
|
48941
48994
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48942
48995
|
labelTextWhenNoError: "Account type",
|
|
48996
|
+
dataQa: "Account type",
|
|
48943
48997
|
options: [{
|
|
48944
48998
|
text: "Select account type",
|
|
48945
48999
|
value: ""
|
|
@@ -48956,6 +49010,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48956
49010
|
field: fields.accountType
|
|
48957
49011
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48958
49012
|
title: "Save as Default Payment Method",
|
|
49013
|
+
dataQa: "default-payment-ach",
|
|
48959
49014
|
name: "default-payment-ach",
|
|
48960
49015
|
onChange: toggleCheckbox,
|
|
48961
49016
|
checked: defaultMethod.value,
|
|
@@ -48965,6 +49020,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48965
49020
|
align: "center"
|
|
48966
49021
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48967
49022
|
name: "bank checkbox",
|
|
49023
|
+
dataQa: "Save checking account to wallet",
|
|
48968
49024
|
title: "Save checking account to wallet.",
|
|
48969
49025
|
checked: walletCheckboxMarked,
|
|
48970
49026
|
onChange: saveToWallet
|
|
@@ -49025,7 +49081,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49025
49081
|
actions = _ref.actions,
|
|
49026
49082
|
showErrors = _ref.showErrors,
|
|
49027
49083
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49028
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49084
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49029
49085
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
49030
49086
|
saveToWallet = _ref.saveToWallet,
|
|
49031
49087
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49077,9 +49133,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49077
49133
|
actions.fields.zipCode.set("");
|
|
49078
49134
|
}
|
|
49079
49135
|
},
|
|
49080
|
-
showErrors: showErrors
|
|
49136
|
+
showErrors: showErrors,
|
|
49137
|
+
dataQa: "Country"
|
|
49081
49138
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49082
49139
|
labelTextWhenNoError: "Name on card",
|
|
49140
|
+
dataQa: "Name on card",
|
|
49083
49141
|
errorMessages: nameOnCardErrors,
|
|
49084
49142
|
field: fields.nameOnCard,
|
|
49085
49143
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49087,9 +49145,10 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49087
49145
|
onKeyDown: function onKeyDown(e) {
|
|
49088
49146
|
return e.key === "Enter" && handleSubmit(e);
|
|
49089
49147
|
},
|
|
49090
|
-
|
|
49148
|
+
autocompleteValue: "cc-name"
|
|
49091
49149
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49092
49150
|
labelTextWhenNoError: "Credit card number",
|
|
49151
|
+
dataQa: "Credit card number",
|
|
49093
49152
|
errorMessages: creditCardNumberErrors,
|
|
49094
49153
|
field: fields.creditCardNumber,
|
|
49095
49154
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49099,12 +49158,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49099
49158
|
return e.key === "Enter" && handleSubmit(e);
|
|
49100
49159
|
},
|
|
49101
49160
|
isNum: true,
|
|
49102
|
-
|
|
49161
|
+
autocompleteValue: "cc-number"
|
|
49103
49162
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
49104
49163
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
49105
49164
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49106
49165
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49107
49166
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49167
|
+
dataQa: "Expiration date",
|
|
49108
49168
|
errorMessages: expirationDateErrors,
|
|
49109
49169
|
field: fields.expirationDate,
|
|
49110
49170
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49116,9 +49176,10 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49116
49176
|
isNum: true,
|
|
49117
49177
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
49118
49178
|
,
|
|
49119
|
-
|
|
49179
|
+
autocompleteValue: "cc-exp"
|
|
49120
49180
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49121
49181
|
labelTextWhenNoError: "CVV",
|
|
49182
|
+
dataQa: "CVV",
|
|
49122
49183
|
errorMessages: cvvErrors,
|
|
49123
49184
|
field: fields.cvv,
|
|
49124
49185
|
fieldActions: actions.fields.cvv,
|
|
@@ -49128,7 +49189,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49128
49189
|
onKeyDown: function onKeyDown(e) {
|
|
49129
49190
|
return e.key === "Enter" && handleSubmit(e);
|
|
49130
49191
|
},
|
|
49131
|
-
|
|
49192
|
+
autocompleteValue: "cc-csc"
|
|
49132
49193
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
49133
49194
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
49134
49195
|
width: isMobile ? "100%" : "50%"
|
|
@@ -49136,6 +49197,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49136
49197
|
isNum: isUS,
|
|
49137
49198
|
formatter: isUS ? zipFormat : null,
|
|
49138
49199
|
labelTextWhenNoError: "Zip code",
|
|
49200
|
+
dataQa: "Zip code",
|
|
49139
49201
|
errorMessages: zipCodeErrors,
|
|
49140
49202
|
field: fields.zipCode,
|
|
49141
49203
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49143,12 +49205,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49143
49205
|
onKeyDown: function onKeyDown(e) {
|
|
49144
49206
|
return e.key === "Enter" && handleSubmit(e);
|
|
49145
49207
|
},
|
|
49146
|
-
|
|
49208
|
+
autocompleteValue: "billing postal-code"
|
|
49147
49209
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
49148
49210
|
childGap: "4px",
|
|
49149
49211
|
align: "center"
|
|
49150
49212
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49151
49213
|
name: "credit card checkbox",
|
|
49214
|
+
dataQa: "Save credit card to wallet",
|
|
49152
49215
|
title: "Save credit card to wallet.",
|
|
49153
49216
|
checked: walletCheckboxMarked,
|
|
49154
49217
|
onChange: saveToWallet
|
|
@@ -49360,8 +49423,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49360
49423
|
onKeyUp: function onKeyUp(e) {
|
|
49361
49424
|
return e.key === "Enter" && handleSubmit(e);
|
|
49362
49425
|
},
|
|
49363
|
-
|
|
49364
|
-
|
|
49426
|
+
autocompleteValue: "tel",
|
|
49427
|
+
dataQa: "Phone number"
|
|
49365
49428
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49366
49429
|
name: "phone checkbox",
|
|
49367
49430
|
title: "Save phone number to wallet",
|
|
@@ -49408,7 +49471,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
49408
49471
|
config = _ref.config,
|
|
49409
49472
|
extraStyles = _ref.extraStyles,
|
|
49410
49473
|
_ref$handleChange = _ref.handleChange,
|
|
49411
|
-
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
49474
|
+
handleChange = _ref$handleChange === void 0 ? noop$1 : _ref$handleChange,
|
|
49412
49475
|
field = _ref.field,
|
|
49413
49476
|
fieldActions = _ref.fieldActions;
|
|
49414
49477
|
|
|
@@ -49570,12 +49633,12 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49570
49633
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
49571
49634
|
padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem",
|
|
49572
49635
|
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
49573
|
-
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
49636
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop$1 : function () {
|
|
49574
49637
|
return toggleOpenSection(section.id);
|
|
49575
49638
|
},
|
|
49576
49639
|
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
49577
49640
|
return toggleOpenSection(section.id);
|
|
49578
|
-
} : noop,
|
|
49641
|
+
} : noop$1,
|
|
49579
49642
|
key: "header-".concat(section.id),
|
|
49580
49643
|
borderSize: "0px",
|
|
49581
49644
|
borderColor: themeValues.borderColor,
|
|
@@ -49598,7 +49661,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49598
49661
|
ariaDescribedBy: ariaDescribedBy,
|
|
49599
49662
|
radioOn: openSection === section.id,
|
|
49600
49663
|
radioFocused: focused === section.id,
|
|
49601
|
-
toggleRadio: section.disabled ? noop : function () {
|
|
49664
|
+
toggleRadio: section.disabled ? noop$1 : function () {
|
|
49602
49665
|
return toggleOpenSection(section.id);
|
|
49603
49666
|
},
|
|
49604
49667
|
tabIndex: "-1"
|
|
@@ -49644,7 +49707,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49644
49707
|
fields = _ref.fields,
|
|
49645
49708
|
actions = _ref.actions,
|
|
49646
49709
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49647
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49710
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49648
49711
|
showErrors = _ref.showErrors,
|
|
49649
49712
|
isMobile = _ref.isMobile;
|
|
49650
49713
|
|
|
@@ -49677,7 +49740,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49677
49740
|
onKeyDown: function onKeyDown(e) {
|
|
49678
49741
|
return e.key === "Enter" && handleSubmit(e);
|
|
49679
49742
|
},
|
|
49680
|
-
|
|
49743
|
+
autocompleteValue: "given-name"
|
|
49681
49744
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49682
49745
|
labelTextWhenNoError: "Last name",
|
|
49683
49746
|
errorMessages: lastNameErrorMessages,
|
|
@@ -49687,7 +49750,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49687
49750
|
onKeyDown: function onKeyDown(e) {
|
|
49688
49751
|
return e.key === "Enter" && handleSubmit(e);
|
|
49689
49752
|
},
|
|
49690
|
-
|
|
49753
|
+
autocompleteValue: "family-name"
|
|
49691
49754
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49692
49755
|
labelTextWhenNoError: "Email address",
|
|
49693
49756
|
errorMessages: emailErrorMessages,
|
|
@@ -49699,7 +49762,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49699
49762
|
},
|
|
49700
49763
|
type: "email",
|
|
49701
49764
|
isEmail: true,
|
|
49702
|
-
|
|
49765
|
+
autocompleteValue: "email"
|
|
49703
49766
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49704
49767
|
labelTextWhenNoError: "Password",
|
|
49705
49768
|
errorMessages: passwordErrorMessages,
|
|
@@ -49710,7 +49773,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49710
49773
|
return e.key === "Enter" && handleSubmit(e);
|
|
49711
49774
|
},
|
|
49712
49775
|
type: "password",
|
|
49713
|
-
|
|
49776
|
+
autocompleteValue: "new-password"
|
|
49714
49777
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49715
49778
|
labelTextWhenNoError: "Confirm password",
|
|
49716
49779
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49721,7 +49784,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49721
49784
|
return e.key === "Enter" && handleSubmit(e);
|
|
49722
49785
|
},
|
|
49723
49786
|
type: "password",
|
|
49724
|
-
|
|
49787
|
+
autocompleteValue: "new-password"
|
|
49725
49788
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
49726
49789
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
49727
49790
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
@@ -49810,7 +49873,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
49810
49873
|
var _passwordErrorMessage;
|
|
49811
49874
|
|
|
49812
49875
|
var _ref$handleSubmit = _ref.handleSubmit,
|
|
49813
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49876
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49814
49877
|
clearOnDismount = _ref.clearOnDismount,
|
|
49815
49878
|
fields = _ref.fields,
|
|
49816
49879
|
actions = _ref.actions,
|
|
@@ -49842,7 +49905,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
49842
49905
|
return e.key === "Enter" && handleSubmit(e);
|
|
49843
49906
|
},
|
|
49844
49907
|
type: "password",
|
|
49845
|
-
|
|
49908
|
+
autocompleteValue: "new-password"
|
|
49846
49909
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49847
49910
|
labelTextWhenNoError: "Confirm password",
|
|
49848
49911
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -49853,7 +49916,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
49853
49916
|
return e.key === "Enter" && handleSubmit(e);
|
|
49854
49917
|
},
|
|
49855
49918
|
type: "password",
|
|
49856
|
-
|
|
49919
|
+
autocompleteValue: "new-password"
|
|
49857
49920
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
49858
49921
|
padding: "0"
|
|
49859
49922
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|