@thecb/components 8.4.11-beta.3 → 8.4.11-beta.30
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 +129 -91
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +129 -91
- 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 +0 -2
- package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -4
- package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +1 -0
- package/src/components/atoms/dropdown/Dropdown.js +15 -15
- package/src/components/atoms/form-layouts/FormInput.js +17 -9
- package/src/components/atoms/form-select/FormSelect.js +21 -9
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +5 -0
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +1 -0
- package/src/components/molecules/address-form/AddressForm.js +17 -11
- package/src/components/molecules/email-form/EmailForm.js +3 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +14 -5
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +10 -2
- package/src/components/molecules/phone-form/PhoneForm.js +4 -2
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +1 -0
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +11 -9
package/dist/index.cjs.js
CHANGED
|
@@ -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);
|
|
@@ -22149,9 +22150,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22149
22150
|
"aria-label": name,
|
|
22150
22151
|
checked: checked,
|
|
22151
22152
|
onChange: onChange,
|
|
22152
|
-
tabIndex: "-1"
|
|
22153
|
-
"aria-invalid": error,
|
|
22154
|
-
"aria-describedBy": error ? "".concat(name, "-error-message") : ""
|
|
22153
|
+
tabIndex: "-1"
|
|
22155
22154
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22156
22155
|
error: error,
|
|
22157
22156
|
disabled: disabled,
|
|
@@ -23985,7 +23984,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23985
23984
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
23986
23985
|
as: "input",
|
|
23987
23986
|
"aria-multiline": "false",
|
|
23988
|
-
|
|
23987
|
+
autoComplete: autocompleteValue,
|
|
23989
23988
|
"aria-controls": "".concat(ariaLabelledby, "_listbox"),
|
|
23990
23989
|
"aria-activedescendant": "focused_option",
|
|
23991
23990
|
"aria-owns": "".concat(ariaLabelledby, "_listbox"),
|
|
@@ -23993,10 +23992,6 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23993
23992
|
"aria-labelledby": ariaLabelledby,
|
|
23994
23993
|
"aria-describedby": ariaDescribedby,
|
|
23995
23994
|
"aria-expanded": isOpen,
|
|
23996
|
-
"aria-live": "assertive",
|
|
23997
|
-
role: "combobox",
|
|
23998
|
-
disabled: disabled,
|
|
23999
|
-
autoComplete: autocompleteValue,
|
|
24000
23995
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
24001
23996
|
borderRadius: "2px",
|
|
24002
23997
|
borderSize: "1px",
|
|
@@ -24016,13 +24011,16 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24016
24011
|
},
|
|
24017
24012
|
padding: "12px",
|
|
24018
24013
|
placeholder: getSelection(),
|
|
24014
|
+
role: "combobox",
|
|
24019
24015
|
themeValues: themeValues,
|
|
24020
24016
|
title: hasTitles ? getSelection() : null,
|
|
24021
24017
|
type: "text",
|
|
24022
24018
|
tabIndex: 0,
|
|
24023
24019
|
value: inputValue,
|
|
24024
24020
|
width: "100%",
|
|
24025
|
-
dataQa: placeholder
|
|
24021
|
+
dataQa: placeholder,
|
|
24022
|
+
"data-qa": placeholder,
|
|
24023
|
+
required: options.required
|
|
24026
24024
|
}), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
24027
24025
|
open: isOpen,
|
|
24028
24026
|
onClick: _onClick
|
|
@@ -24046,7 +24044,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24046
24044
|
id: focusedRef === optionRefs.current[i] ? "focused_option" : choice.value,
|
|
24047
24045
|
key: choice.value,
|
|
24048
24046
|
ref: optionRefs.current[i],
|
|
24049
|
-
tabIndex:
|
|
24047
|
+
tabIndex: -1,
|
|
24050
24048
|
onClick: function onClick(e) {
|
|
24051
24049
|
return handleItemSelection(e, choice, i);
|
|
24052
24050
|
},
|
|
@@ -24058,17 +24056,18 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24058
24056
|
selected: choice.value === value,
|
|
24059
24057
|
"aria-selected": choice.value === value,
|
|
24060
24058
|
disabled: disabledValues.includes(choice.value),
|
|
24059
|
+
"aria-disabled": disabledValues.includes(choice.value),
|
|
24061
24060
|
"data-qa": choice.text,
|
|
24062
24061
|
themeValues: themeValues,
|
|
24063
24062
|
title: hasTitles ? choice.text : null,
|
|
24064
|
-
role: "option",
|
|
24065
24063
|
onFocus: function onFocus() {
|
|
24066
24064
|
return setFocusedRef(optionRefs.current[i]);
|
|
24067
|
-
}
|
|
24065
|
+
},
|
|
24066
|
+
role: "option"
|
|
24068
24067
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24069
24068
|
variant: "p",
|
|
24070
24069
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24071
|
-
extraStyles: "padding-left: 16px; \n
|
|
24070
|
+
extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
|
|
24072
24071
|
}, choice.text));
|
|
24073
24072
|
}))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
24074
24073
|
};
|
|
@@ -24158,8 +24157,6 @@ var fallbackValues$g = {
|
|
|
24158
24157
|
hoverFocusStyles: hoverFocusStyles
|
|
24159
24158
|
};
|
|
24160
24159
|
|
|
24161
|
-
var _excluded$o = ["fieldActions", "labelTextWhenNoError", "errorMessages", "options", "field", "showErrors", "onChange", "dropdownMaxHeight", "disabledValues", "disabled", "themeValues", "hasTitles", "autocompleteValue", "smoothScroll"];
|
|
24162
|
-
|
|
24163
24160
|
var FormSelect = function FormSelect(_ref) {
|
|
24164
24161
|
var fieldActions = _ref.fieldActions,
|
|
24165
24162
|
labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
@@ -24176,8 +24173,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24176
24173
|
hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
|
|
24177
24174
|
autocompleteValue = _ref.autocompleteValue,
|
|
24178
24175
|
_ref$smoothScroll = _ref.smoothScroll,
|
|
24179
|
-
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll
|
|
24180
|
-
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
24176
|
+
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll;
|
|
24181
24177
|
|
|
24182
24178
|
var _useState = React.useState(false),
|
|
24183
24179
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24198,10 +24194,11 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24198
24194
|
document.removeEventListener("mousedown", handleClickAway);
|
|
24199
24195
|
};
|
|
24200
24196
|
});
|
|
24201
|
-
return /*#__PURE__*/React__default.createElement(SelectContainer,
|
|
24197
|
+
return /*#__PURE__*/React__default.createElement(SelectContainer, {
|
|
24202
24198
|
ref: dropdownRef,
|
|
24203
|
-
disabled: disabled
|
|
24204
|
-
|
|
24199
|
+
disabled: disabled,
|
|
24200
|
+
className: "form-select-component"
|
|
24201
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
24205
24202
|
padding: "0",
|
|
24206
24203
|
minWidth: "100%"
|
|
24207
24204
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -24215,8 +24212,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24215
24212
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24216
24213
|
id: createIdFromString(labelTextWhenNoError)
|
|
24217
24214
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
24218
|
-
|
|
24219
|
-
"aria-
|
|
24215
|
+
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24216
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
24220
24217
|
maxHeight: dropdownMaxHeight,
|
|
24221
24218
|
hasTitles: hasTitles,
|
|
24222
24219
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -24225,6 +24222,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24225
24222
|
disabledValues: disabledValues,
|
|
24226
24223
|
isOpen: open,
|
|
24227
24224
|
isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24225
|
+
"aria-invalid": field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24228
24226
|
onSelect: onChange ? function (value) {
|
|
24229
24227
|
return onChange(value);
|
|
24230
24228
|
} : function (value) {
|
|
@@ -24233,21 +24231,24 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24233
24231
|
onClick: function onClick() {
|
|
24234
24232
|
return setOpen(!open);
|
|
24235
24233
|
},
|
|
24234
|
+
disabled: disabled,
|
|
24236
24235
|
"aria-disabled": disabled,
|
|
24237
24236
|
autocompleteValue: autocompleteValue,
|
|
24238
24237
|
smoothScroll: smoothScroll,
|
|
24239
|
-
required: options.required
|
|
24238
|
+
required: options.required,
|
|
24239
|
+
"data-qa": "".concat(createIdFromString(labelTextWhenNoError), "-dropdown")
|
|
24240
24240
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24241
24241
|
direction: "row",
|
|
24242
|
-
justify: "space-between"
|
|
24243
|
-
"aria-live": "assertive"
|
|
24242
|
+
justify: "space-between"
|
|
24244
24243
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24245
24244
|
color: ERROR_COLOR,
|
|
24246
24245
|
variant: "pXS",
|
|
24247
24246
|
weight: themeValues.fontWeight,
|
|
24248
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24247
|
+
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
24249
24248
|
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24250
|
-
"aria-live": "
|
|
24249
|
+
"aria-live": "polite",
|
|
24250
|
+
"aria-atomic": true,
|
|
24251
|
+
"data-qa": createIdFromString(labelTextWhenNoError, "error message")
|
|
24251
24252
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24252
24253
|
};
|
|
24253
24254
|
|
|
@@ -24996,28 +24997,24 @@ var options = [{
|
|
|
24996
24997
|
value: "ZW"
|
|
24997
24998
|
}];
|
|
24998
24999
|
|
|
24999
|
-
var _excluded$p = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
|
|
25000
|
-
|
|
25001
25000
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
25002
25001
|
var labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
25003
25002
|
errorMessages = _ref.errorMessages,
|
|
25004
25003
|
field = _ref.field,
|
|
25005
25004
|
fieldActions = _ref.fieldActions,
|
|
25006
25005
|
showErrors = _ref.showErrors,
|
|
25007
|
-
onChange = _ref.onChange
|
|
25008
|
-
|
|
25009
|
-
|
|
25010
|
-
return /*#__PURE__*/React__default.createElement(FormSelect$1, _extends({
|
|
25006
|
+
onChange = _ref.onChange;
|
|
25007
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25011
25008
|
options: options,
|
|
25012
25009
|
field: field,
|
|
25013
25010
|
fieldActions: fieldActions,
|
|
25014
25011
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
25012
|
+
dataQa: labelTextWhenNoError,
|
|
25015
25013
|
errorMessages: errorMessages,
|
|
25016
25014
|
showErrors: showErrors,
|
|
25017
25015
|
onChange: onChange,
|
|
25018
|
-
autocompleteValue: "country-name"
|
|
25019
|
-
|
|
25020
|
-
}, rest));
|
|
25016
|
+
autocompleteValue: "country-name"
|
|
25017
|
+
});
|
|
25021
25018
|
};
|
|
25022
25019
|
|
|
25023
25020
|
var DetailText = styled__default.p.withConfig({
|
|
@@ -25083,7 +25080,7 @@ var mobileFallbackValues$1 = {
|
|
|
25083
25080
|
};
|
|
25084
25081
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25085
25082
|
|
|
25086
|
-
var _excluded$
|
|
25083
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25087
25084
|
/*
|
|
25088
25085
|
New responsive text component for Detail elements
|
|
25089
25086
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -25133,7 +25130,7 @@ var Detail = function Detail(_ref) {
|
|
|
25133
25130
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25134
25131
|
dataQa = _ref.dataQa,
|
|
25135
25132
|
children = _ref.children,
|
|
25136
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25133
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
25137
25134
|
|
|
25138
25135
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25139
25136
|
variant: variant,
|
|
@@ -25857,7 +25854,7 @@ var fallbackValues$k = {
|
|
|
25857
25854
|
formFooterPanel: formFooterPanel
|
|
25858
25855
|
};
|
|
25859
25856
|
|
|
25860
|
-
var _excluded$
|
|
25857
|
+
var _excluded$p = ["showErrors", "themeValues"],
|
|
25861
25858
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
25862
25859
|
var InputField = styled__default.input.withConfig({
|
|
25863
25860
|
displayName: "FormInput__InputField",
|
|
@@ -25891,7 +25888,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
25891
25888
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
25892
25889
|
var showErrors = _ref8.showErrors,
|
|
25893
25890
|
themeValues = _ref8.themeValues,
|
|
25894
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25891
|
+
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
25895
25892
|
|
|
25896
25893
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
25897
25894
|
}).withConfig({
|
|
@@ -25990,7 +25987,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25990
25987
|
color: themeValues.labelColor,
|
|
25991
25988
|
variant: "pS",
|
|
25992
25989
|
fontWeight: themeValues.fontWeight,
|
|
25993
|
-
extraStyles: "word-break: break-word;\n
|
|
25990
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
25994
25991
|
id: createIdFromString(labelTextWhenNoError)
|
|
25995
25992
|
}, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25996
25993
|
variant: "pS",
|
|
@@ -26001,8 +25998,9 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26001
25998
|
onClick: function onClick() {
|
|
26002
25999
|
return setShowPassword(!showPassword);
|
|
26003
26000
|
},
|
|
26004
|
-
"aria-label": "Show password",
|
|
26005
26001
|
tabIndex: "0",
|
|
26002
|
+
"aria-label": showPassword ? "Hide Password" : "Show password",
|
|
26003
|
+
"aria-live": "polite",
|
|
26006
26004
|
onKeyPress: function onKeyPress(e) {
|
|
26007
26005
|
return e.key === "Enter" && setShowPassword(!showPassword);
|
|
26008
26006
|
}
|
|
@@ -26024,7 +26022,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26024
26022
|
field: field,
|
|
26025
26023
|
formatter: formatter,
|
|
26026
26024
|
showErrors: showErrors,
|
|
26027
|
-
"data-qa": labelTextWhenNoError,
|
|
26025
|
+
"data-qa": "".concat(createIdFromString(labelTextWhenNoError), "-input"),
|
|
26028
26026
|
themeValues: themeValues,
|
|
26029
26027
|
$customHeight: customHeight,
|
|
26030
26028
|
$extraStyles: extraStyles,
|
|
@@ -26042,16 +26040,18 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26042
26040
|
inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
|
|
26043
26041
|
field: field,
|
|
26044
26042
|
showErrors: showErrors,
|
|
26045
|
-
"data-qa": labelTextWhenNoError,
|
|
26043
|
+
"data-qa": "".concat(createIdFromString(labelTextWhenNoError), "-input"),
|
|
26046
26044
|
themeValues: themeValues,
|
|
26047
26045
|
background: background,
|
|
26048
26046
|
$customHeight: customHeight,
|
|
26049
26047
|
$extraStyles: extraStyles,
|
|
26050
|
-
|
|
26048
|
+
autocomplete: autocomplete
|
|
26051
26049
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26052
26050
|
direction: "row",
|
|
26053
26051
|
justify: "space-between",
|
|
26054
|
-
|
|
26052
|
+
"aria-live": "polite",
|
|
26053
|
+
"aria-atomic": true,
|
|
26054
|
+
"data-qa": createIdFromString("FormInput errors")
|
|
26055
26055
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26056
26056
|
color: ERROR_COLOR,
|
|
26057
26057
|
variant: "pXS",
|
|
@@ -26067,7 +26067,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26067
26067
|
|
|
26068
26068
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26069
26069
|
|
|
26070
|
-
var _excluded$
|
|
26070
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26071
26071
|
|
|
26072
26072
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26073
26073
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26077,7 +26077,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26077
26077
|
largeChild = _ref.largeChild,
|
|
26078
26078
|
largeChildSize = _ref.largeChildSize,
|
|
26079
26079
|
children = _ref.children,
|
|
26080
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26080
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
26081
26081
|
|
|
26082
26082
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26083
26083
|
padding: "0"
|
|
@@ -26089,14 +26089,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26089
26089
|
}, children));
|
|
26090
26090
|
};
|
|
26091
26091
|
|
|
26092
|
-
var _excluded$
|
|
26092
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
26093
26093
|
|
|
26094
26094
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26095
26095
|
var _ref$childGap = _ref.childGap,
|
|
26096
26096
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26097
26097
|
bottomItem = _ref.bottomItem,
|
|
26098
26098
|
children = _ref.children,
|
|
26099
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26099
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26100
26100
|
|
|
26101
26101
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26102
26102
|
childGap: childGap,
|
|
@@ -26104,12 +26104,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26104
26104
|
}, rest), children);
|
|
26105
26105
|
};
|
|
26106
26106
|
|
|
26107
|
-
var _excluded$
|
|
26107
|
+
var _excluded$s = ["themeValues", "children"];
|
|
26108
26108
|
|
|
26109
26109
|
var FormContainer = function FormContainer(_ref) {
|
|
26110
26110
|
var themeValues = _ref.themeValues,
|
|
26111
26111
|
children = _ref.children,
|
|
26112
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26112
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26113
26113
|
|
|
26114
26114
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26115
26115
|
isMobile = _useContext.isMobile;
|
|
@@ -26374,7 +26374,7 @@ var fallbackValues$o = {
|
|
|
26374
26374
|
fontSize: fontSize$8
|
|
26375
26375
|
};
|
|
26376
26376
|
|
|
26377
|
-
var _excluded$
|
|
26377
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26378
26378
|
|
|
26379
26379
|
var Heading = function Heading(_ref) {
|
|
26380
26380
|
var themeValues = _ref.themeValues,
|
|
@@ -26394,7 +26394,7 @@ var Heading = function Heading(_ref) {
|
|
|
26394
26394
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26395
26395
|
dataQa = _ref.dataQa,
|
|
26396
26396
|
children = _ref.children,
|
|
26397
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26397
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26398
26398
|
|
|
26399
26399
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
26400
26400
|
variant: variant,
|
|
@@ -26685,7 +26685,7 @@ var Loading = function Loading() {
|
|
|
26685
26685
|
})))));
|
|
26686
26686
|
};
|
|
26687
26687
|
|
|
26688
|
-
var _excluded$
|
|
26688
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26689
26689
|
|
|
26690
26690
|
var NavFooter = function NavFooter(_ref) {
|
|
26691
26691
|
var leftContent = _ref.leftContent,
|
|
@@ -26701,7 +26701,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26701
26701
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26702
26702
|
isMobile = _ref.isMobile,
|
|
26703
26703
|
footerWidth = _ref.footerWidth,
|
|
26704
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26704
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26705
26705
|
|
|
26706
26706
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26707
26707
|
padding: footerPadding,
|
|
@@ -26733,7 +26733,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26733
26733
|
}, rightContent)))))));
|
|
26734
26734
|
};
|
|
26735
26735
|
|
|
26736
|
-
var _excluded$
|
|
26736
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26737
26737
|
|
|
26738
26738
|
var NavHeader = function NavHeader(_ref) {
|
|
26739
26739
|
var leftContent = _ref.leftContent,
|
|
@@ -26743,7 +26743,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26743
26743
|
isMobile = _ref.isMobile,
|
|
26744
26744
|
backgroundColor = _ref.backgroundColor,
|
|
26745
26745
|
headerWidth = _ref.headerWidth,
|
|
26746
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26746
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26747
26747
|
|
|
26748
26748
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26749
26749
|
padding: "0 16px 4px",
|
|
@@ -37943,13 +37943,18 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37943
37943
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
37944
37944
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
37945
37945
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
37946
|
+
"aria-live": "polite",
|
|
37947
|
+
"aria-atomic": true,
|
|
37946
37948
|
options: options,
|
|
37947
37949
|
field: field,
|
|
37948
37950
|
fieldActions: fieldActions,
|
|
37949
37951
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
37950
37952
|
errorMessages: errorMessages,
|
|
37951
37953
|
showErrors: showErrors,
|
|
37952
|
-
|
|
37954
|
+
"aria-invalid": !!(errorMessages !== null && errorMessages !== void 0 && errorMessages.length),
|
|
37955
|
+
autocompleteValue: autocomplete,
|
|
37956
|
+
"data-qa": labelTextWhenNoError,
|
|
37957
|
+
dataQa: labelTextWhenNoError
|
|
37953
37958
|
});
|
|
37954
37959
|
};
|
|
37955
37960
|
|
|
@@ -38518,7 +38523,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38518
38523
|
return extraStyles;
|
|
38519
38524
|
});
|
|
38520
38525
|
|
|
38521
|
-
var _excluded$
|
|
38526
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38522
38527
|
|
|
38523
38528
|
var TableRow = function TableRow(_ref) {
|
|
38524
38529
|
var children = _ref.children,
|
|
@@ -38528,7 +38533,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38528
38533
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38529
38534
|
onClick = _ref.onClick,
|
|
38530
38535
|
themeValues = _ref.themeValues,
|
|
38531
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38536
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38532
38537
|
|
|
38533
38538
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38534
38539
|
onClick: onClick,
|
|
@@ -40351,7 +40356,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40351
40356
|
}, []);
|
|
40352
40357
|
}
|
|
40353
40358
|
|
|
40354
|
-
var street1ErrorMessages = _defineProperty({}, required.error, "Street is required");
|
|
40359
|
+
var street1ErrorMessages = _defineProperty({}, required.error, "Street address is required");
|
|
40355
40360
|
|
|
40356
40361
|
var cityErrorMessages = _defineProperty({}, required.error, "City is required");
|
|
40357
40362
|
|
|
@@ -40383,8 +40388,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40383
40388
|
}
|
|
40384
40389
|
},
|
|
40385
40390
|
showErrors: showErrors,
|
|
40386
|
-
"
|
|
40387
|
-
"aria-role": "listbox"
|
|
40391
|
+
"data-qa": "Country"
|
|
40388
40392
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40389
40393
|
labelTextWhenNoError: "Address",
|
|
40390
40394
|
errorMessages: street1ErrorMessages,
|
|
@@ -40396,7 +40400,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40396
40400
|
return e.key === "Enter" && handleSubmit(e);
|
|
40397
40401
|
},
|
|
40398
40402
|
autocomplete: "address-line1",
|
|
40399
|
-
"aria-label": "
|
|
40403
|
+
"aria-label": "Address Line 1",
|
|
40404
|
+
"data-qa": createIdFromString("Address Line 1")
|
|
40400
40405
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40401
40406
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40402
40407
|
field: fields.street2,
|
|
@@ -40406,7 +40411,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40406
40411
|
return e.key === "Enter" && handleSubmit(e);
|
|
40407
40412
|
},
|
|
40408
40413
|
autocomplete: "address-line2",
|
|
40409
|
-
"aria-label": "
|
|
40414
|
+
"aria-label": "Address Line 2",
|
|
40415
|
+
"data-qa": createIdFromString("Address Line 2")
|
|
40410
40416
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40411
40417
|
labelTextWhenNoError: "City",
|
|
40412
40418
|
required: true,
|
|
@@ -40418,7 +40424,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40418
40424
|
return e.key === "Enter" && handleSubmit(e);
|
|
40419
40425
|
},
|
|
40420
40426
|
autocomplete: "city",
|
|
40421
|
-
"aria-label": "
|
|
40427
|
+
"aria-label": "City",
|
|
40428
|
+
"data-qa": "City"
|
|
40422
40429
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40423
40430
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40424
40431
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40429,9 +40436,10 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40429
40436
|
onKeyDown: function onKeyDown(e) {
|
|
40430
40437
|
return e.key === "Enter" && handleSubmit(e);
|
|
40431
40438
|
},
|
|
40432
|
-
|
|
40433
|
-
|
|
40434
|
-
|
|
40439
|
+
"aria-label": isUS ? "State" : "State or Province",
|
|
40440
|
+
required: true,
|
|
40441
|
+
autocomplete: "administrative-area",
|
|
40442
|
+
"data-qa": createIdFromString("State or Province")
|
|
40435
40443
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40436
40444
|
isNum: isUS,
|
|
40437
40445
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40443,13 +40451,16 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40443
40451
|
onKeyDown: function onKeyDown(e) {
|
|
40444
40452
|
return e.key === "Enter" && handleSubmit(e);
|
|
40445
40453
|
},
|
|
40446
|
-
"aria-label": "
|
|
40447
|
-
autocomplete: "postal-code"
|
|
40454
|
+
"aria-label": "Zip code",
|
|
40455
|
+
autocomplete: "postal-code",
|
|
40456
|
+
required: true,
|
|
40457
|
+
"data-qa": createIdFromString("Zip code")
|
|
40448
40458
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40449
40459
|
name: "address checkbox",
|
|
40450
|
-
title: "Save address to
|
|
40460
|
+
title: "Save address to wallet",
|
|
40451
40461
|
checked: walletCheckboxMarked,
|
|
40452
|
-
onChange: saveToWallet
|
|
40462
|
+
onChange: saveToWallet,
|
|
40463
|
+
"data-qa": createIdFromString("Save address to wallet")
|
|
40453
40464
|
})));
|
|
40454
40465
|
};
|
|
40455
40466
|
|
|
@@ -41373,12 +41384,14 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41373
41384
|
return e.key === "Enter" && handleSubmit(e);
|
|
41374
41385
|
},
|
|
41375
41386
|
isEmail: true,
|
|
41376
|
-
autoComplete: "email"
|
|
41387
|
+
autoComplete: "email",
|
|
41388
|
+
"data-qa": createIdFromString("Email address")
|
|
41377
41389
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
41378
41390
|
name: "email checkbox",
|
|
41379
41391
|
title: "Save email address to wallet",
|
|
41380
41392
|
checked: walletCheckboxMarked,
|
|
41381
|
-
onChange: saveToWallet
|
|
41393
|
+
onChange: saveToWallet,
|
|
41394
|
+
"data-qa": createIdFromString("Save email address to wallet")
|
|
41382
41395
|
})));
|
|
41383
41396
|
};
|
|
41384
41397
|
|
|
@@ -48163,7 +48176,7 @@ var fallbackValues$N = {
|
|
|
48163
48176
|
labeledAmountTotal: labeledAmountTotal
|
|
48164
48177
|
};
|
|
48165
48178
|
|
|
48166
|
-
var _excluded$
|
|
48179
|
+
var _excluded$x = ["amount"],
|
|
48167
48180
|
_excluded2$1 = ["amount"];
|
|
48168
48181
|
|
|
48169
48182
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48373,7 +48386,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48373
48386
|
return fee.amount > 0;
|
|
48374
48387
|
}).map(function (_ref5) {
|
|
48375
48388
|
var amount = _ref5.amount,
|
|
48376
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48389
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
48377
48390
|
|
|
48378
48391
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48379
48392
|
amount: displayCurrency(amount)
|
|
@@ -48537,6 +48550,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48537
48550
|
toggleOpen(false);
|
|
48538
48551
|
}
|
|
48539
48552
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48553
|
+
role: "button",
|
|
48540
48554
|
variant: "pS",
|
|
48541
48555
|
onClick: function onClick() {
|
|
48542
48556
|
return toggleOpen(true);
|
|
@@ -48667,6 +48681,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48667
48681
|
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48668
48682
|
name: "terms",
|
|
48669
48683
|
title: "Terms and Conditions",
|
|
48684
|
+
dataQa: "Terms and Conditions",
|
|
48670
48685
|
error: error,
|
|
48671
48686
|
checked: isChecked,
|
|
48672
48687
|
onChange: onCheck
|
|
@@ -48800,19 +48815,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48800
48815
|
toggleOpen: toggleTerms,
|
|
48801
48816
|
linkVariant: modalVariant,
|
|
48802
48817
|
title: modalTitle
|
|
48803
|
-
})),
|
|
48818
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
48819
|
+
"aria-live": "polite",
|
|
48820
|
+
"aria-atomic": true
|
|
48821
|
+
}, showCheckbox && hasError && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48804
48822
|
variant: "pXS",
|
|
48805
48823
|
color: ERROR_COLOR,
|
|
48806
48824
|
id: "".concat(id, "-error-message")
|
|
48807
|
-
}, errorMessage)))));
|
|
48825
|
+
}, errorMessage))))));
|
|
48808
48826
|
};
|
|
48809
48827
|
|
|
48810
|
-
var _excluded$
|
|
48828
|
+
var _excluded$y = ["version"];
|
|
48811
48829
|
|
|
48812
48830
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48813
48831
|
var _ref$version = _ref.version,
|
|
48814
48832
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48815
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48833
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48816
48834
|
|
|
48817
48835
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48818
48836
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48877,6 +48895,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48877
48895
|
"aria-label": "ACH Payment"
|
|
48878
48896
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48879
48897
|
labelTextWhenNoError: "Name on checking account",
|
|
48898
|
+
"data-qa": createIdFromString("Name on checking account"),
|
|
48880
48899
|
errorMessages: nameErrors,
|
|
48881
48900
|
field: fields.name,
|
|
48882
48901
|
fieldActions: actions.fields.name,
|
|
@@ -48887,6 +48906,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48887
48906
|
autocomplete: "name"
|
|
48888
48907
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48889
48908
|
labelTextWhenNoError: "Routing number",
|
|
48909
|
+
"data-qa": createIdFromString("Routing number"),
|
|
48890
48910
|
errorMessages: routingNumberErrors,
|
|
48891
48911
|
field: fields.routingNumber,
|
|
48892
48912
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48899,7 +48919,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48899
48919
|
content: "Your routing number is the 9-digit number in the bottom left corner of your check.",
|
|
48900
48920
|
imageType: "Routing",
|
|
48901
48921
|
isOpen: showRouting,
|
|
48902
|
-
toggleOpen: toggleShowRouting
|
|
48922
|
+
toggleOpen: toggleShowRouting,
|
|
48923
|
+
"data-qa": createIdFromString("What is my routing number")
|
|
48903
48924
|
});
|
|
48904
48925
|
},
|
|
48905
48926
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -48907,6 +48928,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48907
48928
|
}
|
|
48908
48929
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48909
48930
|
labelTextWhenNoError: "Confirm routing number",
|
|
48931
|
+
"data-qa": createIdFromString("Confirm routing number"),
|
|
48910
48932
|
errorMessages: confirmRoutingNumberErrors,
|
|
48911
48933
|
field: fields.confirmRoutingNumber,
|
|
48912
48934
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48917,6 +48939,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48917
48939
|
isNum: true
|
|
48918
48940
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48919
48941
|
labelTextWhenNoError: "Account number",
|
|
48942
|
+
"data-qa": createIdFromString("Account number"),
|
|
48920
48943
|
errorMessages: accountNumberErrors,
|
|
48921
48944
|
field: fields.accountNumber,
|
|
48922
48945
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48929,7 +48952,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48929
48952
|
content: "Your account number is usually the 10-digit number in the bottom of your check to the right of the routing number.",
|
|
48930
48953
|
imageType: "Account",
|
|
48931
48954
|
isOpen: showAccount,
|
|
48932
|
-
toggleOpen: toggleShowAccount
|
|
48955
|
+
toggleOpen: toggleShowAccount,
|
|
48956
|
+
"data-qa": createIdFromString("What is my account number")
|
|
48933
48957
|
});
|
|
48934
48958
|
},
|
|
48935
48959
|
onKeyDown: function onKeyDown(e) {
|
|
@@ -48937,6 +48961,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48937
48961
|
}
|
|
48938
48962
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48939
48963
|
labelTextWhenNoError: "Confirm account number",
|
|
48964
|
+
"data-qa": createIdFromString("Confirm account number"),
|
|
48940
48965
|
errorMessages: confirmAccountNumberErrors,
|
|
48941
48966
|
field: fields.confirmAccountNumber,
|
|
48942
48967
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48947,6 +48972,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48947
48972
|
isNum: true
|
|
48948
48973
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48949
48974
|
labelTextWhenNoError: "Account type",
|
|
48975
|
+
"data-qa": createIdFromString("Account type"),
|
|
48950
48976
|
options: [{
|
|
48951
48977
|
text: "Select account type",
|
|
48952
48978
|
value: ""
|
|
@@ -48963,6 +48989,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48963
48989
|
field: fields.accountType
|
|
48964
48990
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48965
48991
|
title: "Save as Default Payment Method",
|
|
48992
|
+
"data-qa": "default-payment-ach",
|
|
48966
48993
|
name: "default-payment-ach",
|
|
48967
48994
|
onChange: toggleCheckbox,
|
|
48968
48995
|
checked: defaultMethod.value,
|
|
@@ -48972,6 +48999,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48972
48999
|
align: "center"
|
|
48973
49000
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48974
49001
|
name: "bank checkbox",
|
|
49002
|
+
"data-qa": createIdFromString("Save checking account to wallet"),
|
|
48975
49003
|
title: "Save checking account to wallet.",
|
|
48976
49004
|
checked: walletCheckboxMarked,
|
|
48977
49005
|
onChange: saveToWallet
|
|
@@ -48981,7 +49009,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48981
49009
|
version: "v2",
|
|
48982
49010
|
showCheckbox: false,
|
|
48983
49011
|
description: "View",
|
|
48984
|
-
terms: termsContent
|
|
49012
|
+
terms: termsContent,
|
|
49013
|
+
"data-qa": createIdFromString("Terms and Conditions")
|
|
48985
49014
|
})))));
|
|
48986
49015
|
};
|
|
48987
49016
|
|
|
@@ -49084,9 +49113,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49084
49113
|
actions.fields.zipCode.set("");
|
|
49085
49114
|
}
|
|
49086
49115
|
},
|
|
49087
|
-
showErrors: showErrors
|
|
49116
|
+
showErrors: showErrors,
|
|
49117
|
+
"data-qa": "Country"
|
|
49088
49118
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49089
49119
|
labelTextWhenNoError: "Name on card",
|
|
49120
|
+
"data-qa": createIdFromString("Name on card"),
|
|
49090
49121
|
errorMessages: nameOnCardErrors,
|
|
49091
49122
|
field: fields.nameOnCard,
|
|
49092
49123
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49097,6 +49128,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49097
49128
|
autocomplete: "cc-name"
|
|
49098
49129
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49099
49130
|
labelTextWhenNoError: "Credit card number",
|
|
49131
|
+
"data-qa": createIdFromString("Credit card number"),
|
|
49100
49132
|
errorMessages: creditCardNumberErrors,
|
|
49101
49133
|
field: fields.creditCardNumber,
|
|
49102
49134
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49112,6 +49144,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49112
49144
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49113
49145
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49114
49146
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49147
|
+
"data-qa": createIdFromString("Expiration date"),
|
|
49115
49148
|
errorMessages: expirationDateErrors,
|
|
49116
49149
|
field: fields.expirationDate,
|
|
49117
49150
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49126,6 +49159,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49126
49159
|
autocomplete: "cc-exp"
|
|
49127
49160
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49128
49161
|
labelTextWhenNoError: "CVV",
|
|
49162
|
+
"data-qa": createIdFromString("CVV"),
|
|
49129
49163
|
errorMessages: cvvErrors,
|
|
49130
49164
|
field: fields.cvv,
|
|
49131
49165
|
fieldActions: actions.fields.cvv,
|
|
@@ -49143,6 +49177,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49143
49177
|
isNum: isUS,
|
|
49144
49178
|
formatter: isUS ? zipFormat : null,
|
|
49145
49179
|
labelTextWhenNoError: "Zip code",
|
|
49180
|
+
"data-qa": createIdFromString("Zip code"),
|
|
49146
49181
|
errorMessages: zipCodeErrors,
|
|
49147
49182
|
field: fields.zipCode,
|
|
49148
49183
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49150,12 +49185,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49150
49185
|
onKeyDown: function onKeyDown(e) {
|
|
49151
49186
|
return e.key === "Enter" && handleSubmit(e);
|
|
49152
49187
|
},
|
|
49153
|
-
|
|
49188
|
+
autoComplete: "billing postal-code"
|
|
49154
49189
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
49155
49190
|
childGap: "4px",
|
|
49156
49191
|
align: "center"
|
|
49157
49192
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49158
49193
|
name: "credit card checkbox",
|
|
49194
|
+
"data-qa": createIdFromString("Save credit card to wallet"),
|
|
49159
49195
|
title: "Save credit card to wallet.",
|
|
49160
49196
|
checked: walletCheckboxMarked,
|
|
49161
49197
|
onChange: saveToWallet
|
|
@@ -49367,13 +49403,15 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49367
49403
|
onKeyUp: function onKeyUp(e) {
|
|
49368
49404
|
return e.key === "Enter" && handleSubmit(e);
|
|
49369
49405
|
},
|
|
49370
|
-
|
|
49371
|
-
|
|
49406
|
+
autocomplete: "tel",
|
|
49407
|
+
isPhone: true,
|
|
49408
|
+
"data-qa": createIdFromString("Phone number")
|
|
49372
49409
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49373
49410
|
name: "phone checkbox",
|
|
49374
49411
|
title: "Save phone number to wallet",
|
|
49375
49412
|
checked: walletCheckboxMarked,
|
|
49376
|
-
onChange: saveToWallet
|
|
49413
|
+
onChange: saveToWallet,
|
|
49414
|
+
"data-qa": createIdFromString("Save phone number to wallet")
|
|
49377
49415
|
})));
|
|
49378
49416
|
};
|
|
49379
49417
|
|