@thecb/components 8.4.11-beta.2 → 8.4.11-beta.21
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 +104 -84
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +104 -84
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/alert/Alert.js +2 -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 +14 -15
- package/src/components/atoms/form-layouts/FormInput.js +16 -9
- package/src/components/atoms/form-select/FormSelect.js +20 -9
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +3 -0
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +1 -0
- package/src/components/molecules/address-form/AddressForm.js +13 -13
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +9 -2
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +7 -1
- package/src/components/molecules/phone-form/PhoneForm.js +1 -1
- 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.esm.js
CHANGED
|
@@ -18810,7 +18810,9 @@ var Alert = function Alert(_ref) {
|
|
|
18810
18810
|
borderColor: themeValues.border,
|
|
18811
18811
|
borderSize: noBorder ? "0px" : "1px",
|
|
18812
18812
|
boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
|
|
18813
|
-
extraStyles: extraStyles
|
|
18813
|
+
extraStyles: extraStyles,
|
|
18814
|
+
role: "alert",
|
|
18815
|
+
"aria-atomic": true
|
|
18814
18816
|
}, maxContentWidth ? /*#__PURE__*/React.createElement(Center, {
|
|
18815
18817
|
maxWidth: maxContentWidth
|
|
18816
18818
|
}, content) : content);
|
|
@@ -22140,9 +22142,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22140
22142
|
"aria-label": name,
|
|
22141
22143
|
checked: checked,
|
|
22142
22144
|
onChange: onChange,
|
|
22143
|
-
tabIndex: "-1"
|
|
22144
|
-
"aria-invalid": error,
|
|
22145
|
-
"aria-describedBy": error ? "".concat(name, "-error-message") : ""
|
|
22145
|
+
tabIndex: "-1"
|
|
22146
22146
|
}), /*#__PURE__*/React.createElement(StyledCheckbox, {
|
|
22147
22147
|
error: error,
|
|
22148
22148
|
disabled: disabled,
|
|
@@ -23976,7 +23976,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23976
23976
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
23977
23977
|
as: "input",
|
|
23978
23978
|
"aria-multiline": "false",
|
|
23979
|
-
|
|
23979
|
+
autoComplete: autocompleteValue,
|
|
23980
23980
|
"aria-controls": "".concat(ariaLabelledby, "_listbox"),
|
|
23981
23981
|
"aria-activedescendant": "focused_option",
|
|
23982
23982
|
"aria-owns": "".concat(ariaLabelledby, "_listbox"),
|
|
@@ -23984,10 +23984,6 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23984
23984
|
"aria-labelledby": ariaLabelledby,
|
|
23985
23985
|
"aria-describedby": ariaDescribedby,
|
|
23986
23986
|
"aria-expanded": isOpen,
|
|
23987
|
-
"aria-live": "assertive",
|
|
23988
|
-
role: "combobox",
|
|
23989
|
-
disabled: disabled,
|
|
23990
|
-
autoComplete: autocompleteValue,
|
|
23991
23987
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
23992
23988
|
borderRadius: "2px",
|
|
23993
23989
|
borderSize: "1px",
|
|
@@ -24007,13 +24003,15 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24007
24003
|
},
|
|
24008
24004
|
padding: "12px",
|
|
24009
24005
|
placeholder: getSelection(),
|
|
24006
|
+
role: "combobox",
|
|
24010
24007
|
themeValues: themeValues,
|
|
24011
24008
|
title: hasTitles ? getSelection() : null,
|
|
24012
24009
|
type: "text",
|
|
24013
24010
|
tabIndex: 0,
|
|
24014
24011
|
value: inputValue,
|
|
24015
24012
|
width: "100%",
|
|
24016
|
-
dataQa: placeholder
|
|
24013
|
+
dataQa: placeholder,
|
|
24014
|
+
required: options.required
|
|
24017
24015
|
}), /*#__PURE__*/React.createElement(IconWrapper, {
|
|
24018
24016
|
open: isOpen,
|
|
24019
24017
|
onClick: _onClick
|
|
@@ -24037,7 +24035,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24037
24035
|
id: focusedRef === optionRefs.current[i] ? "focused_option" : choice.value,
|
|
24038
24036
|
key: choice.value,
|
|
24039
24037
|
ref: optionRefs.current[i],
|
|
24040
|
-
tabIndex:
|
|
24038
|
+
tabIndex: -1,
|
|
24041
24039
|
onClick: function onClick(e) {
|
|
24042
24040
|
return handleItemSelection(e, choice, i);
|
|
24043
24041
|
},
|
|
@@ -24049,17 +24047,18 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24049
24047
|
selected: choice.value === value,
|
|
24050
24048
|
"aria-selected": choice.value === value,
|
|
24051
24049
|
disabled: disabledValues.includes(choice.value),
|
|
24050
|
+
"aria-disabled": disabledValues.includes(choice.value),
|
|
24052
24051
|
"data-qa": choice.text,
|
|
24053
24052
|
themeValues: themeValues,
|
|
24054
24053
|
title: hasTitles ? choice.text : null,
|
|
24055
|
-
role: "option",
|
|
24056
24054
|
onFocus: function onFocus() {
|
|
24057
24055
|
return setFocusedRef(optionRefs.current[i]);
|
|
24058
|
-
}
|
|
24056
|
+
},
|
|
24057
|
+
role: "option"
|
|
24059
24058
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
24060
24059
|
variant: "p",
|
|
24061
24060
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24062
|
-
extraStyles: "padding-left: 16px; \n
|
|
24061
|
+
extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
|
|
24063
24062
|
}, choice.text));
|
|
24064
24063
|
}))) : /*#__PURE__*/React.createElement(Fragment$1, null)));
|
|
24065
24064
|
};
|
|
@@ -24149,8 +24148,6 @@ var fallbackValues$g = {
|
|
|
24149
24148
|
hoverFocusStyles: hoverFocusStyles
|
|
24150
24149
|
};
|
|
24151
24150
|
|
|
24152
|
-
var _excluded$o = ["fieldActions", "labelTextWhenNoError", "errorMessages", "options", "field", "showErrors", "onChange", "dropdownMaxHeight", "disabledValues", "disabled", "themeValues", "hasTitles", "autocompleteValue", "smoothScroll"];
|
|
24153
|
-
|
|
24154
24151
|
var FormSelect = function FormSelect(_ref) {
|
|
24155
24152
|
var fieldActions = _ref.fieldActions,
|
|
24156
24153
|
labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
@@ -24167,8 +24164,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24167
24164
|
hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
|
|
24168
24165
|
autocompleteValue = _ref.autocompleteValue,
|
|
24169
24166
|
_ref$smoothScroll = _ref.smoothScroll,
|
|
24170
|
-
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll
|
|
24171
|
-
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
24167
|
+
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll;
|
|
24172
24168
|
|
|
24173
24169
|
var _useState = useState(false),
|
|
24174
24170
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24189,10 +24185,11 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24189
24185
|
document.removeEventListener("mousedown", handleClickAway);
|
|
24190
24186
|
};
|
|
24191
24187
|
});
|
|
24192
|
-
return /*#__PURE__*/React.createElement(SelectContainer,
|
|
24188
|
+
return /*#__PURE__*/React.createElement(SelectContainer, {
|
|
24193
24189
|
ref: dropdownRef,
|
|
24194
|
-
disabled: disabled
|
|
24195
|
-
|
|
24190
|
+
disabled: disabled,
|
|
24191
|
+
className: "form-select-component"
|
|
24192
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
24196
24193
|
padding: "0",
|
|
24197
24194
|
minWidth: "100%"
|
|
24198
24195
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -24206,8 +24203,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24206
24203
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24207
24204
|
id: createIdFromString(labelTextWhenNoError)
|
|
24208
24205
|
}, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
24209
|
-
"
|
|
24210
|
-
|
|
24206
|
+
"data-qa": labelTextWhenNoError,
|
|
24207
|
+
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24208
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
24211
24209
|
maxHeight: dropdownMaxHeight,
|
|
24212
24210
|
hasTitles: hasTitles,
|
|
24213
24211
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -24216,6 +24214,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24216
24214
|
disabledValues: disabledValues,
|
|
24217
24215
|
isOpen: open,
|
|
24218
24216
|
isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24217
|
+
"aria-invalid": field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24219
24218
|
onSelect: onChange ? function (value) {
|
|
24220
24219
|
return onChange(value);
|
|
24221
24220
|
} : function (value) {
|
|
@@ -24224,21 +24223,22 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24224
24223
|
onClick: function onClick() {
|
|
24225
24224
|
return setOpen(!open);
|
|
24226
24225
|
},
|
|
24226
|
+
disabled: disabled,
|
|
24227
24227
|
"aria-disabled": disabled,
|
|
24228
24228
|
autocompleteValue: autocompleteValue,
|
|
24229
24229
|
smoothScroll: smoothScroll,
|
|
24230
24230
|
required: options.required
|
|
24231
24231
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
24232
24232
|
direction: "row",
|
|
24233
|
-
justify: "space-between"
|
|
24234
|
-
"aria-live": "assertive"
|
|
24233
|
+
justify: "space-between"
|
|
24235
24234
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
24236
24235
|
color: ERROR_COLOR,
|
|
24237
24236
|
variant: "pXS",
|
|
24238
24237
|
weight: themeValues.fontWeight,
|
|
24239
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24238
|
+
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
24240
24239
|
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24241
|
-
"aria-live": "
|
|
24240
|
+
"aria-live": "polite",
|
|
24241
|
+
"data-qa": labelTextWhenNoError
|
|
24242
24242
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24243
24243
|
};
|
|
24244
24244
|
|
|
@@ -24987,28 +24987,24 @@ var options = [{
|
|
|
24987
24987
|
value: "ZW"
|
|
24988
24988
|
}];
|
|
24989
24989
|
|
|
24990
|
-
var _excluded$p = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
|
|
24991
|
-
|
|
24992
24990
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
24993
24991
|
var labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
24994
24992
|
errorMessages = _ref.errorMessages,
|
|
24995
24993
|
field = _ref.field,
|
|
24996
24994
|
fieldActions = _ref.fieldActions,
|
|
24997
24995
|
showErrors = _ref.showErrors,
|
|
24998
|
-
onChange = _ref.onChange
|
|
24999
|
-
|
|
25000
|
-
|
|
25001
|
-
return /*#__PURE__*/React.createElement(FormSelect$1, _extends({
|
|
24996
|
+
onChange = _ref.onChange;
|
|
24997
|
+
return /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
25002
24998
|
options: options,
|
|
25003
24999
|
field: field,
|
|
25004
25000
|
fieldActions: fieldActions,
|
|
25005
25001
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
25002
|
+
dataQa: labelTextWhenNoError,
|
|
25006
25003
|
errorMessages: errorMessages,
|
|
25007
25004
|
showErrors: showErrors,
|
|
25008
25005
|
onChange: onChange,
|
|
25009
|
-
autocompleteValue: "country-name"
|
|
25010
|
-
|
|
25011
|
-
}, rest));
|
|
25006
|
+
autocompleteValue: "country-name"
|
|
25007
|
+
});
|
|
25012
25008
|
};
|
|
25013
25009
|
|
|
25014
25010
|
var DetailText = styled.p.withConfig({
|
|
@@ -25074,7 +25070,7 @@ var mobileFallbackValues$1 = {
|
|
|
25074
25070
|
};
|
|
25075
25071
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25076
25072
|
|
|
25077
|
-
var _excluded$
|
|
25073
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25078
25074
|
/*
|
|
25079
25075
|
New responsive text component for Detail elements
|
|
25080
25076
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -25124,7 +25120,7 @@ var Detail = function Detail(_ref) {
|
|
|
25124
25120
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25125
25121
|
dataQa = _ref.dataQa,
|
|
25126
25122
|
children = _ref.children,
|
|
25127
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25123
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
25128
25124
|
|
|
25129
25125
|
return /*#__PURE__*/React.createElement(DetailText, _extends({
|
|
25130
25126
|
variant: variant,
|
|
@@ -25848,7 +25844,7 @@ var fallbackValues$k = {
|
|
|
25848
25844
|
formFooterPanel: formFooterPanel
|
|
25849
25845
|
};
|
|
25850
25846
|
|
|
25851
|
-
var _excluded$
|
|
25847
|
+
var _excluded$p = ["showErrors", "themeValues"],
|
|
25852
25848
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
25853
25849
|
var InputField = styled.input.withConfig({
|
|
25854
25850
|
displayName: "FormInput__InputField",
|
|
@@ -25882,7 +25878,7 @@ var InputField = styled.input.withConfig({
|
|
|
25882
25878
|
var FormattedInputField = styled(function (_ref8) {
|
|
25883
25879
|
var showErrors = _ref8.showErrors,
|
|
25884
25880
|
themeValues = _ref8.themeValues,
|
|
25885
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25881
|
+
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
25886
25882
|
|
|
25887
25883
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
25888
25884
|
}).withConfig({
|
|
@@ -25981,7 +25977,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25981
25977
|
color: themeValues.labelColor,
|
|
25982
25978
|
variant: "pS",
|
|
25983
25979
|
fontWeight: themeValues.fontWeight,
|
|
25984
|
-
extraStyles: "word-break: break-word;\n
|
|
25980
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
25985
25981
|
id: createIdFromString(labelTextWhenNoError)
|
|
25986
25982
|
}, labelTextWhenNoError), type === "password" && /*#__PURE__*/React.createElement(Text$1, {
|
|
25987
25983
|
variant: "pS",
|
|
@@ -25992,8 +25988,9 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25992
25988
|
onClick: function onClick() {
|
|
25993
25989
|
return setShowPassword(!showPassword);
|
|
25994
25990
|
},
|
|
25995
|
-
"aria-label": "Show password",
|
|
25996
25991
|
tabIndex: "0",
|
|
25992
|
+
"aria-label": showPassword ? "Hide Password" : "Show password",
|
|
25993
|
+
"aria-live": "polite",
|
|
25997
25994
|
onKeyPress: function onKeyPress(e) {
|
|
25998
25995
|
return e.key === "Enter" && setShowPassword(!showPassword);
|
|
25999
25996
|
}
|
|
@@ -26015,7 +26012,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26015
26012
|
field: field,
|
|
26016
26013
|
formatter: formatter,
|
|
26017
26014
|
showErrors: showErrors,
|
|
26018
|
-
|
|
26015
|
+
dataQa: labelTextWhenNoError,
|
|
26019
26016
|
themeValues: themeValues,
|
|
26020
26017
|
$customHeight: customHeight,
|
|
26021
26018
|
$extraStyles: extraStyles,
|
|
@@ -26033,16 +26030,17 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26033
26030
|
inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
|
|
26034
26031
|
field: field,
|
|
26035
26032
|
showErrors: showErrors,
|
|
26036
|
-
|
|
26033
|
+
dataQa: labelTextWhenNoError,
|
|
26037
26034
|
themeValues: themeValues,
|
|
26038
26035
|
background: background,
|
|
26039
26036
|
$customHeight: customHeight,
|
|
26040
26037
|
$extraStyles: extraStyles,
|
|
26041
|
-
|
|
26038
|
+
autocomplete: autocomplete
|
|
26042
26039
|
}, props))), /*#__PURE__*/React.createElement(Stack, {
|
|
26043
26040
|
direction: "row",
|
|
26044
26041
|
justify: "space-between",
|
|
26045
|
-
|
|
26042
|
+
"aria-live": "polite",
|
|
26043
|
+
"aria-atomic": true
|
|
26046
26044
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
|
|
26047
26045
|
color: ERROR_COLOR,
|
|
26048
26046
|
variant: "pXS",
|
|
@@ -26058,7 +26056,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26058
26056
|
|
|
26059
26057
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26060
26058
|
|
|
26061
|
-
var _excluded$
|
|
26059
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26062
26060
|
|
|
26063
26061
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26064
26062
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26068,7 +26066,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26068
26066
|
largeChild = _ref.largeChild,
|
|
26069
26067
|
largeChildSize = _ref.largeChildSize,
|
|
26070
26068
|
children = _ref.children,
|
|
26071
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26069
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
26072
26070
|
|
|
26073
26071
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26074
26072
|
padding: "0"
|
|
@@ -26080,14 +26078,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26080
26078
|
}, children));
|
|
26081
26079
|
};
|
|
26082
26080
|
|
|
26083
|
-
var _excluded$
|
|
26081
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
26084
26082
|
|
|
26085
26083
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26086
26084
|
var _ref$childGap = _ref.childGap,
|
|
26087
26085
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26088
26086
|
bottomItem = _ref.bottomItem,
|
|
26089
26087
|
children = _ref.children,
|
|
26090
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26088
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26091
26089
|
|
|
26092
26090
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
26093
26091
|
childGap: childGap,
|
|
@@ -26095,12 +26093,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26095
26093
|
}, rest), children);
|
|
26096
26094
|
};
|
|
26097
26095
|
|
|
26098
|
-
var _excluded$
|
|
26096
|
+
var _excluded$s = ["themeValues", "children"];
|
|
26099
26097
|
|
|
26100
26098
|
var FormContainer = function FormContainer(_ref) {
|
|
26101
26099
|
var themeValues = _ref.themeValues,
|
|
26102
26100
|
children = _ref.children,
|
|
26103
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26101
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26104
26102
|
|
|
26105
26103
|
var _useContext = useContext(ThemeContext),
|
|
26106
26104
|
isMobile = _useContext.isMobile;
|
|
@@ -26365,7 +26363,7 @@ var fallbackValues$o = {
|
|
|
26365
26363
|
fontSize: fontSize$8
|
|
26366
26364
|
};
|
|
26367
26365
|
|
|
26368
|
-
var _excluded$
|
|
26366
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26369
26367
|
|
|
26370
26368
|
var Heading = function Heading(_ref) {
|
|
26371
26369
|
var themeValues = _ref.themeValues,
|
|
@@ -26385,7 +26383,7 @@ var Heading = function Heading(_ref) {
|
|
|
26385
26383
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26386
26384
|
dataQa = _ref.dataQa,
|
|
26387
26385
|
children = _ref.children,
|
|
26388
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26386
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26389
26387
|
|
|
26390
26388
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
26391
26389
|
variant: variant,
|
|
@@ -26676,7 +26674,7 @@ var Loading = function Loading() {
|
|
|
26676
26674
|
})))));
|
|
26677
26675
|
};
|
|
26678
26676
|
|
|
26679
|
-
var _excluded$
|
|
26677
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26680
26678
|
|
|
26681
26679
|
var NavFooter = function NavFooter(_ref) {
|
|
26682
26680
|
var leftContent = _ref.leftContent,
|
|
@@ -26692,7 +26690,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26692
26690
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26693
26691
|
isMobile = _ref.isMobile,
|
|
26694
26692
|
footerWidth = _ref.footerWidth,
|
|
26695
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26693
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26696
26694
|
|
|
26697
26695
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26698
26696
|
padding: footerPadding,
|
|
@@ -26724,7 +26722,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26724
26722
|
}, rightContent)))))));
|
|
26725
26723
|
};
|
|
26726
26724
|
|
|
26727
|
-
var _excluded$
|
|
26725
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26728
26726
|
|
|
26729
26727
|
var NavHeader = function NavHeader(_ref) {
|
|
26730
26728
|
var leftContent = _ref.leftContent,
|
|
@@ -26734,7 +26732,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26734
26732
|
isMobile = _ref.isMobile,
|
|
26735
26733
|
backgroundColor = _ref.backgroundColor,
|
|
26736
26734
|
headerWidth = _ref.headerWidth,
|
|
26737
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26735
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26738
26736
|
|
|
26739
26737
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26740
26738
|
padding: "0 16px 4px",
|
|
@@ -37934,12 +37932,15 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37934
37932
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
37935
37933
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
37936
37934
|
return /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
37935
|
+
"aria-live": "polite",
|
|
37936
|
+
"aria-atomic": true,
|
|
37937
37937
|
options: options,
|
|
37938
37938
|
field: field,
|
|
37939
37939
|
fieldActions: fieldActions,
|
|
37940
37940
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
37941
37941
|
errorMessages: errorMessages,
|
|
37942
37942
|
showErrors: showErrors,
|
|
37943
|
+
"aria-invalid": !!(errorMessages !== null && errorMessages !== void 0 && errorMessages.length),
|
|
37943
37944
|
autocompleteValue: autocomplete
|
|
37944
37945
|
});
|
|
37945
37946
|
};
|
|
@@ -38509,7 +38510,7 @@ var TableRowWrapper = styled.tr.withConfig({
|
|
|
38509
38510
|
return extraStyles;
|
|
38510
38511
|
});
|
|
38511
38512
|
|
|
38512
|
-
var _excluded$
|
|
38513
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38513
38514
|
|
|
38514
38515
|
var TableRow = function TableRow(_ref) {
|
|
38515
38516
|
var children = _ref.children,
|
|
@@ -38519,7 +38520,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38519
38520
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38520
38521
|
onClick = _ref.onClick,
|
|
38521
38522
|
themeValues = _ref.themeValues,
|
|
38522
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38523
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38523
38524
|
|
|
38524
38525
|
return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
|
|
38525
38526
|
onClick: onClick,
|
|
@@ -40342,7 +40343,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40342
40343
|
}, []);
|
|
40343
40344
|
}
|
|
40344
40345
|
|
|
40345
|
-
var street1ErrorMessages = _defineProperty({}, required.error, "Street is required");
|
|
40346
|
+
var street1ErrorMessages = _defineProperty({}, required.error, "Street address is required");
|
|
40346
40347
|
|
|
40347
40348
|
var cityErrorMessages = _defineProperty({}, required.error, "City is required");
|
|
40348
40349
|
|
|
@@ -40373,8 +40374,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40373
40374
|
actions.fields.zip.set("");
|
|
40374
40375
|
}
|
|
40375
40376
|
},
|
|
40376
|
-
showErrors: showErrors
|
|
40377
|
-
"aria-label": "country"
|
|
40377
|
+
showErrors: showErrors
|
|
40378
40378
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40379
40379
|
labelTextWhenNoError: "Address",
|
|
40380
40380
|
errorMessages: street1ErrorMessages,
|
|
@@ -40385,8 +40385,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40385
40385
|
onKeyDown: function onKeyDown(e) {
|
|
40386
40386
|
return e.key === "Enter" && handleSubmit(e);
|
|
40387
40387
|
},
|
|
40388
|
-
|
|
40389
|
-
"aria-label": "
|
|
40388
|
+
autocomplete: "address-line1",
|
|
40389
|
+
"aria-label": "Address Line 1"
|
|
40390
40390
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40391
40391
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40392
40392
|
field: fields.street2,
|
|
@@ -40395,8 +40395,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40395
40395
|
onKeyDown: function onKeyDown(e) {
|
|
40396
40396
|
return e.key === "Enter" && handleSubmit(e);
|
|
40397
40397
|
},
|
|
40398
|
-
|
|
40399
|
-
"aria-label": "
|
|
40398
|
+
autocomplete: "address-line2",
|
|
40399
|
+
"aria-label": "Address Line 2"
|
|
40400
40400
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40401
40401
|
labelTextWhenNoError: "City",
|
|
40402
40402
|
required: true,
|
|
@@ -40407,8 +40407,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40407
40407
|
onKeyDown: function onKeyDown(e) {
|
|
40408
40408
|
return e.key === "Enter" && handleSubmit(e);
|
|
40409
40409
|
},
|
|
40410
|
-
|
|
40411
|
-
"aria-label": "
|
|
40410
|
+
autocomplete: "city",
|
|
40411
|
+
"aria-label": "City"
|
|
40412
40412
|
}), /*#__PURE__*/React.createElement(FormStateDropdown, {
|
|
40413
40413
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40414
40414
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40419,9 +40419,9 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40419
40419
|
onKeyDown: function onKeyDown(e) {
|
|
40420
40420
|
return e.key === "Enter" && handleSubmit(e);
|
|
40421
40421
|
},
|
|
40422
|
-
|
|
40423
|
-
|
|
40424
|
-
|
|
40422
|
+
"aria-label": isUS ? "State" : "State or Province",
|
|
40423
|
+
required: true,
|
|
40424
|
+
autocomplete: "administrative-area"
|
|
40425
40425
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40426
40426
|
isNum: isUS,
|
|
40427
40427
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40433,11 +40433,12 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40433
40433
|
onKeyDown: function onKeyDown(e) {
|
|
40434
40434
|
return e.key === "Enter" && handleSubmit(e);
|
|
40435
40435
|
},
|
|
40436
|
-
"aria-label": "
|
|
40437
|
-
|
|
40436
|
+
"aria-label": "Zip code",
|
|
40437
|
+
autocomplete: "postal-code",
|
|
40438
|
+
required: true
|
|
40438
40439
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
40439
40440
|
name: "address checkbox",
|
|
40440
|
-
title: "Save address to
|
|
40441
|
+
title: "Save address to wallet",
|
|
40441
40442
|
checked: walletCheckboxMarked,
|
|
40442
40443
|
onChange: saveToWallet
|
|
40443
40444
|
})));
|
|
@@ -48153,7 +48154,7 @@ var fallbackValues$N = {
|
|
|
48153
48154
|
labeledAmountTotal: labeledAmountTotal
|
|
48154
48155
|
};
|
|
48155
48156
|
|
|
48156
|
-
var _excluded$
|
|
48157
|
+
var _excluded$x = ["amount"],
|
|
48157
48158
|
_excluded2$1 = ["amount"];
|
|
48158
48159
|
|
|
48159
48160
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48363,7 +48364,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48363
48364
|
return fee.amount > 0;
|
|
48364
48365
|
}).map(function (_ref5) {
|
|
48365
48366
|
var amount = _ref5.amount,
|
|
48366
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48367
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
48367
48368
|
|
|
48368
48369
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48369
48370
|
amount: displayCurrency(amount)
|
|
@@ -48527,6 +48528,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48527
48528
|
toggleOpen(false);
|
|
48528
48529
|
}
|
|
48529
48530
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
48531
|
+
role: "button",
|
|
48530
48532
|
variant: "pS",
|
|
48531
48533
|
onClick: function onClick() {
|
|
48532
48534
|
return toggleOpen(true);
|
|
@@ -48657,6 +48659,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48657
48659
|
return /*#__PURE__*/React.createElement(DisplayBox$1, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48658
48660
|
name: "terms",
|
|
48659
48661
|
title: "Terms and Conditions",
|
|
48662
|
+
dataQa: "Terms and Conditions",
|
|
48660
48663
|
error: error,
|
|
48661
48664
|
checked: isChecked,
|
|
48662
48665
|
onChange: onCheck
|
|
@@ -48790,19 +48793,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48790
48793
|
toggleOpen: toggleTerms,
|
|
48791
48794
|
linkVariant: modalVariant,
|
|
48792
48795
|
title: modalTitle
|
|
48793
|
-
})),
|
|
48796
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
48797
|
+
"aria-live": "polite",
|
|
48798
|
+
"aria-atomic": true
|
|
48799
|
+
}, showCheckbox && hasError && /*#__PURE__*/React.createElement(Text$1, {
|
|
48794
48800
|
variant: "pXS",
|
|
48795
48801
|
color: ERROR_COLOR,
|
|
48796
48802
|
id: "".concat(id, "-error-message")
|
|
48797
|
-
}, errorMessage)))));
|
|
48803
|
+
}, errorMessage))))));
|
|
48798
48804
|
};
|
|
48799
48805
|
|
|
48800
|
-
var _excluded$
|
|
48806
|
+
var _excluded$y = ["version"];
|
|
48801
48807
|
|
|
48802
48808
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48803
48809
|
var _ref$version = _ref.version,
|
|
48804
48810
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48805
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48811
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48806
48812
|
|
|
48807
48813
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48808
48814
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48867,6 +48873,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48867
48873
|
"aria-label": "ACH Payment"
|
|
48868
48874
|
}, /*#__PURE__*/React.createElement(FormInputColumn, null, /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48869
48875
|
labelTextWhenNoError: "Name on checking account",
|
|
48876
|
+
"data-qa": "Name on checking account",
|
|
48870
48877
|
errorMessages: nameErrors,
|
|
48871
48878
|
field: fields.name,
|
|
48872
48879
|
fieldActions: actions.fields.name,
|
|
@@ -48877,6 +48884,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48877
48884
|
autocomplete: "name"
|
|
48878
48885
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48879
48886
|
labelTextWhenNoError: "Routing number",
|
|
48887
|
+
"data-qa": "Routing number",
|
|
48880
48888
|
errorMessages: routingNumberErrors,
|
|
48881
48889
|
field: fields.routingNumber,
|
|
48882
48890
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48897,6 +48905,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48897
48905
|
}
|
|
48898
48906
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48899
48907
|
labelTextWhenNoError: "Confirm routing number",
|
|
48908
|
+
"data-qa": "Confirm routing number",
|
|
48900
48909
|
errorMessages: confirmRoutingNumberErrors,
|
|
48901
48910
|
field: fields.confirmRoutingNumber,
|
|
48902
48911
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48907,6 +48916,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48907
48916
|
isNum: true
|
|
48908
48917
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48909
48918
|
labelTextWhenNoError: "Account number",
|
|
48919
|
+
"data-qa": "Account number",
|
|
48910
48920
|
errorMessages: accountNumberErrors,
|
|
48911
48921
|
field: fields.accountNumber,
|
|
48912
48922
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48927,6 +48937,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48927
48937
|
}
|
|
48928
48938
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48929
48939
|
labelTextWhenNoError: "Confirm account number",
|
|
48940
|
+
"data-qa": "Confirm account number",
|
|
48930
48941
|
errorMessages: confirmAccountNumberErrors,
|
|
48931
48942
|
field: fields.confirmAccountNumber,
|
|
48932
48943
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48937,6 +48948,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48937
48948
|
isNum: true
|
|
48938
48949
|
}), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
48939
48950
|
labelTextWhenNoError: "Account type",
|
|
48951
|
+
"data-qa": "Account type",
|
|
48940
48952
|
options: [{
|
|
48941
48953
|
text: "Select account type",
|
|
48942
48954
|
value: ""
|
|
@@ -48953,6 +48965,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48953
48965
|
field: fields.accountType
|
|
48954
48966
|
}), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48955
48967
|
title: "Save as Default Payment Method",
|
|
48968
|
+
"data-qa": "default-payment-ach",
|
|
48956
48969
|
name: "default-payment-ach",
|
|
48957
48970
|
onChange: toggleCheckbox,
|
|
48958
48971
|
checked: defaultMethod.value,
|
|
@@ -48962,6 +48975,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48962
48975
|
align: "center"
|
|
48963
48976
|
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48964
48977
|
name: "bank checkbox",
|
|
48978
|
+
"data-qa": "Save checking account to wallet",
|
|
48965
48979
|
title: "Save checking account to wallet.",
|
|
48966
48980
|
checked: walletCheckboxMarked,
|
|
48967
48981
|
onChange: saveToWallet
|
|
@@ -49077,6 +49091,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49077
49091
|
showErrors: showErrors
|
|
49078
49092
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49079
49093
|
labelTextWhenNoError: "Name on card",
|
|
49094
|
+
"data-qa": "Name on card",
|
|
49080
49095
|
errorMessages: nameOnCardErrors,
|
|
49081
49096
|
field: fields.nameOnCard,
|
|
49082
49097
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49087,6 +49102,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49087
49102
|
autocomplete: "cc-name"
|
|
49088
49103
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49089
49104
|
labelTextWhenNoError: "Credit card number",
|
|
49105
|
+
"data-qa": "Credit card number",
|
|
49090
49106
|
errorMessages: creditCardNumberErrors,
|
|
49091
49107
|
field: fields.creditCardNumber,
|
|
49092
49108
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49102,6 +49118,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49102
49118
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49103
49119
|
}, /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49104
49120
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49121
|
+
"data-qa": "Expiration date",
|
|
49105
49122
|
errorMessages: expirationDateErrors,
|
|
49106
49123
|
field: fields.expirationDate,
|
|
49107
49124
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49116,6 +49133,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49116
49133
|
autocomplete: "cc-exp"
|
|
49117
49134
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49118
49135
|
labelTextWhenNoError: "CVV",
|
|
49136
|
+
"data-qa": "CVV",
|
|
49119
49137
|
errorMessages: cvvErrors,
|
|
49120
49138
|
field: fields.cvv,
|
|
49121
49139
|
fieldActions: actions.fields.cvv,
|
|
@@ -49133,6 +49151,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49133
49151
|
isNum: isUS,
|
|
49134
49152
|
formatter: isUS ? zipFormat : null,
|
|
49135
49153
|
labelTextWhenNoError: "Zip code",
|
|
49154
|
+
"data-qa": "Zip code",
|
|
49136
49155
|
errorMessages: zipCodeErrors,
|
|
49137
49156
|
field: fields.zipCode,
|
|
49138
49157
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49140,12 +49159,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49140
49159
|
onKeyDown: function onKeyDown(e) {
|
|
49141
49160
|
return e.key === "Enter" && handleSubmit(e);
|
|
49142
49161
|
},
|
|
49143
|
-
|
|
49162
|
+
autoComplete: "billing postal-code"
|
|
49144
49163
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
49145
49164
|
childGap: "4px",
|
|
49146
49165
|
align: "center"
|
|
49147
49166
|
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
49148
49167
|
name: "credit card checkbox",
|
|
49168
|
+
"data-qa": "Save credit card to wallet",
|
|
49149
49169
|
title: "Save credit card to wallet.",
|
|
49150
49170
|
checked: walletCheckboxMarked,
|
|
49151
49171
|
onChange: saveToWallet
|
|
@@ -49357,8 +49377,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49357
49377
|
onKeyUp: function onKeyUp(e) {
|
|
49358
49378
|
return e.key === "Enter" && handleSubmit(e);
|
|
49359
49379
|
},
|
|
49360
|
-
|
|
49361
|
-
|
|
49380
|
+
autocomplete: "tel",
|
|
49381
|
+
isPhone: true
|
|
49362
49382
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
49363
49383
|
name: "phone checkbox",
|
|
49364
49384
|
title: "Save phone number to wallet",
|