@thecb/components 8.4.11-beta.2 → 8.4.11-beta.20
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 +102 -84
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +102 -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 +18 -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.cjs.js
CHANGED
|
@@ -18818,7 +18818,9 @@ var Alert = function Alert(_ref) {
|
|
|
18818
18818
|
borderColor: themeValues.border,
|
|
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
|
-
extraStyles: extraStyles
|
|
18821
|
+
extraStyles: extraStyles,
|
|
18822
|
+
role: "alert",
|
|
18823
|
+
"aria-atomic": true
|
|
18822
18824
|
}, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
|
|
18823
18825
|
maxWidth: maxContentWidth
|
|
18824
18826
|
}, content) : content);
|
|
@@ -22148,9 +22150,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22148
22150
|
"aria-label": name,
|
|
22149
22151
|
checked: checked,
|
|
22150
22152
|
onChange: onChange,
|
|
22151
|
-
tabIndex: "-1"
|
|
22152
|
-
"aria-invalid": error,
|
|
22153
|
-
"aria-describedBy": error ? "".concat(name, "-error-message") : ""
|
|
22153
|
+
tabIndex: "-1"
|
|
22154
22154
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22155
22155
|
error: error,
|
|
22156
22156
|
disabled: disabled,
|
|
@@ -23984,7 +23984,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23984
23984
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
23985
23985
|
as: "input",
|
|
23986
23986
|
"aria-multiline": "false",
|
|
23987
|
-
|
|
23987
|
+
autoComplete: autocompleteValue,
|
|
23988
23988
|
"aria-controls": "".concat(ariaLabelledby, "_listbox"),
|
|
23989
23989
|
"aria-activedescendant": "focused_option",
|
|
23990
23990
|
"aria-owns": "".concat(ariaLabelledby, "_listbox"),
|
|
@@ -23992,10 +23992,6 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23992
23992
|
"aria-labelledby": ariaLabelledby,
|
|
23993
23993
|
"aria-describedby": ariaDescribedby,
|
|
23994
23994
|
"aria-expanded": isOpen,
|
|
23995
|
-
"aria-live": "assertive",
|
|
23996
|
-
role: "combobox",
|
|
23997
|
-
disabled: disabled,
|
|
23998
|
-
autoComplete: autocompleteValue,
|
|
23999
23995
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
24000
23996
|
borderRadius: "2px",
|
|
24001
23997
|
borderSize: "1px",
|
|
@@ -24015,13 +24011,15 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24015
24011
|
},
|
|
24016
24012
|
padding: "12px",
|
|
24017
24013
|
placeholder: getSelection(),
|
|
24014
|
+
role: "combobox",
|
|
24018
24015
|
themeValues: themeValues,
|
|
24019
24016
|
title: hasTitles ? getSelection() : null,
|
|
24020
24017
|
type: "text",
|
|
24021
24018
|
tabIndex: 0,
|
|
24022
24019
|
value: inputValue,
|
|
24023
24020
|
width: "100%",
|
|
24024
|
-
dataQa: placeholder
|
|
24021
|
+
dataQa: placeholder,
|
|
24022
|
+
required: options.required
|
|
24025
24023
|
}), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
24026
24024
|
open: isOpen,
|
|
24027
24025
|
onClick: _onClick
|
|
@@ -24045,7 +24043,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24045
24043
|
id: focusedRef === optionRefs.current[i] ? "focused_option" : choice.value,
|
|
24046
24044
|
key: choice.value,
|
|
24047
24045
|
ref: optionRefs.current[i],
|
|
24048
|
-
tabIndex:
|
|
24046
|
+
tabIndex: -1,
|
|
24049
24047
|
onClick: function onClick(e) {
|
|
24050
24048
|
return handleItemSelection(e, choice, i);
|
|
24051
24049
|
},
|
|
@@ -24057,17 +24055,18 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24057
24055
|
selected: choice.value === value,
|
|
24058
24056
|
"aria-selected": choice.value === value,
|
|
24059
24057
|
disabled: disabledValues.includes(choice.value),
|
|
24058
|
+
"aria-disabled": disabledValues.includes(choice.value),
|
|
24060
24059
|
"data-qa": choice.text,
|
|
24061
24060
|
themeValues: themeValues,
|
|
24062
24061
|
title: hasTitles ? choice.text : null,
|
|
24063
|
-
role: "option",
|
|
24064
24062
|
onFocus: function onFocus() {
|
|
24065
24063
|
return setFocusedRef(optionRefs.current[i]);
|
|
24066
|
-
}
|
|
24064
|
+
},
|
|
24065
|
+
role: "option"
|
|
24067
24066
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24068
24067
|
variant: "p",
|
|
24069
24068
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24070
|
-
extraStyles: "padding-left: 16px; \n
|
|
24069
|
+
extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
|
|
24071
24070
|
}, choice.text));
|
|
24072
24071
|
}))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
24073
24072
|
};
|
|
@@ -24157,8 +24156,6 @@ var fallbackValues$g = {
|
|
|
24157
24156
|
hoverFocusStyles: hoverFocusStyles
|
|
24158
24157
|
};
|
|
24159
24158
|
|
|
24160
|
-
var _excluded$o = ["fieldActions", "labelTextWhenNoError", "errorMessages", "options", "field", "showErrors", "onChange", "dropdownMaxHeight", "disabledValues", "disabled", "themeValues", "hasTitles", "autocompleteValue", "smoothScroll"];
|
|
24161
|
-
|
|
24162
24159
|
var FormSelect = function FormSelect(_ref) {
|
|
24163
24160
|
var fieldActions = _ref.fieldActions,
|
|
24164
24161
|
labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
@@ -24175,8 +24172,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24175
24172
|
hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
|
|
24176
24173
|
autocompleteValue = _ref.autocompleteValue,
|
|
24177
24174
|
_ref$smoothScroll = _ref.smoothScroll,
|
|
24178
|
-
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll
|
|
24179
|
-
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
24175
|
+
smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll;
|
|
24180
24176
|
|
|
24181
24177
|
var _useState = React.useState(false),
|
|
24182
24178
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24197,10 +24193,11 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24197
24193
|
document.removeEventListener("mousedown", handleClickAway);
|
|
24198
24194
|
};
|
|
24199
24195
|
});
|
|
24200
|
-
return /*#__PURE__*/React__default.createElement(SelectContainer,
|
|
24196
|
+
return /*#__PURE__*/React__default.createElement(SelectContainer, {
|
|
24201
24197
|
ref: dropdownRef,
|
|
24202
|
-
disabled: disabled
|
|
24203
|
-
|
|
24198
|
+
disabled: disabled,
|
|
24199
|
+
className: "form-select-component"
|
|
24200
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
24204
24201
|
padding: "0",
|
|
24205
24202
|
minWidth: "100%"
|
|
24206
24203
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -24214,8 +24211,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24214
24211
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24215
24212
|
id: createIdFromString(labelTextWhenNoError)
|
|
24216
24213
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
24217
|
-
|
|
24218
|
-
"aria-
|
|
24214
|
+
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24215
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
24219
24216
|
maxHeight: dropdownMaxHeight,
|
|
24220
24217
|
hasTitles: hasTitles,
|
|
24221
24218
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -24224,6 +24221,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24224
24221
|
disabledValues: disabledValues,
|
|
24225
24222
|
isOpen: open,
|
|
24226
24223
|
isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24224
|
+
"aria-invalid": field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24227
24225
|
onSelect: onChange ? function (value) {
|
|
24228
24226
|
return onChange(value);
|
|
24229
24227
|
} : function (value) {
|
|
@@ -24232,21 +24230,21 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24232
24230
|
onClick: function onClick() {
|
|
24233
24231
|
return setOpen(!open);
|
|
24234
24232
|
},
|
|
24233
|
+
disabled: disabled,
|
|
24235
24234
|
"aria-disabled": disabled,
|
|
24236
24235
|
autocompleteValue: autocompleteValue,
|
|
24237
24236
|
smoothScroll: smoothScroll,
|
|
24238
24237
|
required: options.required
|
|
24239
24238
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24240
24239
|
direction: "row",
|
|
24241
|
-
justify: "space-between"
|
|
24242
|
-
"aria-live": "assertive"
|
|
24240
|
+
justify: "space-between"
|
|
24243
24241
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24244
24242
|
color: ERROR_COLOR,
|
|
24245
24243
|
variant: "pXS",
|
|
24246
24244
|
weight: themeValues.fontWeight,
|
|
24247
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24245
|
+
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
24248
24246
|
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24249
|
-
"aria-live": "
|
|
24247
|
+
"aria-live": "polite"
|
|
24250
24248
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24251
24249
|
};
|
|
24252
24250
|
|
|
@@ -24995,28 +24993,24 @@ var options = [{
|
|
|
24995
24993
|
value: "ZW"
|
|
24996
24994
|
}];
|
|
24997
24995
|
|
|
24998
|
-
var _excluded$p = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
|
|
24999
|
-
|
|
25000
24996
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
25001
24997
|
var labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
25002
24998
|
errorMessages = _ref.errorMessages,
|
|
25003
24999
|
field = _ref.field,
|
|
25004
25000
|
fieldActions = _ref.fieldActions,
|
|
25005
25001
|
showErrors = _ref.showErrors,
|
|
25006
|
-
onChange = _ref.onChange
|
|
25007
|
-
|
|
25008
|
-
|
|
25009
|
-
return /*#__PURE__*/React__default.createElement(FormSelect$1, _extends({
|
|
25002
|
+
onChange = _ref.onChange;
|
|
25003
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25010
25004
|
options: options,
|
|
25011
25005
|
field: field,
|
|
25012
25006
|
fieldActions: fieldActions,
|
|
25013
25007
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
25008
|
+
dataQa: labelTextWhenNoError,
|
|
25014
25009
|
errorMessages: errorMessages,
|
|
25015
25010
|
showErrors: showErrors,
|
|
25016
25011
|
onChange: onChange,
|
|
25017
|
-
autocompleteValue: "country-name"
|
|
25018
|
-
|
|
25019
|
-
}, rest));
|
|
25012
|
+
autocompleteValue: "country-name"
|
|
25013
|
+
});
|
|
25020
25014
|
};
|
|
25021
25015
|
|
|
25022
25016
|
var DetailText = styled__default.p.withConfig({
|
|
@@ -25082,7 +25076,7 @@ var mobileFallbackValues$1 = {
|
|
|
25082
25076
|
};
|
|
25083
25077
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25084
25078
|
|
|
25085
|
-
var _excluded$
|
|
25079
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25086
25080
|
/*
|
|
25087
25081
|
New responsive text component for Detail elements
|
|
25088
25082
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -25132,7 +25126,7 @@ var Detail = function Detail(_ref) {
|
|
|
25132
25126
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25133
25127
|
dataQa = _ref.dataQa,
|
|
25134
25128
|
children = _ref.children,
|
|
25135
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25129
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
25136
25130
|
|
|
25137
25131
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25138
25132
|
variant: variant,
|
|
@@ -25856,7 +25850,7 @@ var fallbackValues$k = {
|
|
|
25856
25850
|
formFooterPanel: formFooterPanel
|
|
25857
25851
|
};
|
|
25858
25852
|
|
|
25859
|
-
var _excluded$
|
|
25853
|
+
var _excluded$p = ["showErrors", "themeValues"],
|
|
25860
25854
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
25861
25855
|
var InputField = styled__default.input.withConfig({
|
|
25862
25856
|
displayName: "FormInput__InputField",
|
|
@@ -25890,7 +25884,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
25890
25884
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
25891
25885
|
var showErrors = _ref8.showErrors,
|
|
25892
25886
|
themeValues = _ref8.themeValues,
|
|
25893
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25887
|
+
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
25894
25888
|
|
|
25895
25889
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
25896
25890
|
}).withConfig({
|
|
@@ -25989,7 +25983,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25989
25983
|
color: themeValues.labelColor,
|
|
25990
25984
|
variant: "pS",
|
|
25991
25985
|
fontWeight: themeValues.fontWeight,
|
|
25992
|
-
extraStyles: "word-break: break-word;\n
|
|
25986
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
25993
25987
|
id: createIdFromString(labelTextWhenNoError)
|
|
25994
25988
|
}, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25995
25989
|
variant: "pS",
|
|
@@ -26000,8 +25994,9 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26000
25994
|
onClick: function onClick() {
|
|
26001
25995
|
return setShowPassword(!showPassword);
|
|
26002
25996
|
},
|
|
26003
|
-
"aria-label": "Show password",
|
|
26004
25997
|
tabIndex: "0",
|
|
25998
|
+
"aria-label": showPassword ? "Hide Password" : "Show password",
|
|
25999
|
+
"aria-live": "polite",
|
|
26005
26000
|
onKeyPress: function onKeyPress(e) {
|
|
26006
26001
|
return e.key === "Enter" && setShowPassword(!showPassword);
|
|
26007
26002
|
}
|
|
@@ -26023,7 +26018,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26023
26018
|
field: field,
|
|
26024
26019
|
formatter: formatter,
|
|
26025
26020
|
showErrors: showErrors,
|
|
26026
|
-
|
|
26021
|
+
dataQa: labelTextWhenNoError,
|
|
26027
26022
|
themeValues: themeValues,
|
|
26028
26023
|
$customHeight: customHeight,
|
|
26029
26024
|
$extraStyles: extraStyles,
|
|
@@ -26041,16 +26036,17 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26041
26036
|
inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
|
|
26042
26037
|
field: field,
|
|
26043
26038
|
showErrors: showErrors,
|
|
26044
|
-
|
|
26039
|
+
dataQa: labelTextWhenNoError,
|
|
26045
26040
|
themeValues: themeValues,
|
|
26046
26041
|
background: background,
|
|
26047
26042
|
$customHeight: customHeight,
|
|
26048
26043
|
$extraStyles: extraStyles,
|
|
26049
|
-
|
|
26044
|
+
autocomplete: autocomplete
|
|
26050
26045
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26051
26046
|
direction: "row",
|
|
26052
26047
|
justify: "space-between",
|
|
26053
|
-
|
|
26048
|
+
"aria-live": "polite",
|
|
26049
|
+
"aria-atomic": true
|
|
26054
26050
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26055
26051
|
color: ERROR_COLOR,
|
|
26056
26052
|
variant: "pXS",
|
|
@@ -26066,7 +26062,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26066
26062
|
|
|
26067
26063
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26068
26064
|
|
|
26069
|
-
var _excluded$
|
|
26065
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26070
26066
|
|
|
26071
26067
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26072
26068
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26076,7 +26072,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26076
26072
|
largeChild = _ref.largeChild,
|
|
26077
26073
|
largeChildSize = _ref.largeChildSize,
|
|
26078
26074
|
children = _ref.children,
|
|
26079
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26075
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
26080
26076
|
|
|
26081
26077
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26082
26078
|
padding: "0"
|
|
@@ -26088,14 +26084,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26088
26084
|
}, children));
|
|
26089
26085
|
};
|
|
26090
26086
|
|
|
26091
|
-
var _excluded$
|
|
26087
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
26092
26088
|
|
|
26093
26089
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26094
26090
|
var _ref$childGap = _ref.childGap,
|
|
26095
26091
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26096
26092
|
bottomItem = _ref.bottomItem,
|
|
26097
26093
|
children = _ref.children,
|
|
26098
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26094
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26099
26095
|
|
|
26100
26096
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26101
26097
|
childGap: childGap,
|
|
@@ -26103,12 +26099,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26103
26099
|
}, rest), children);
|
|
26104
26100
|
};
|
|
26105
26101
|
|
|
26106
|
-
var _excluded$
|
|
26102
|
+
var _excluded$s = ["themeValues", "children"];
|
|
26107
26103
|
|
|
26108
26104
|
var FormContainer = function FormContainer(_ref) {
|
|
26109
26105
|
var themeValues = _ref.themeValues,
|
|
26110
26106
|
children = _ref.children,
|
|
26111
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26107
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26112
26108
|
|
|
26113
26109
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26114
26110
|
isMobile = _useContext.isMobile;
|
|
@@ -26373,7 +26369,7 @@ var fallbackValues$o = {
|
|
|
26373
26369
|
fontSize: fontSize$8
|
|
26374
26370
|
};
|
|
26375
26371
|
|
|
26376
|
-
var _excluded$
|
|
26372
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26377
26373
|
|
|
26378
26374
|
var Heading = function Heading(_ref) {
|
|
26379
26375
|
var themeValues = _ref.themeValues,
|
|
@@ -26393,7 +26389,7 @@ var Heading = function Heading(_ref) {
|
|
|
26393
26389
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26394
26390
|
dataQa = _ref.dataQa,
|
|
26395
26391
|
children = _ref.children,
|
|
26396
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26392
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26397
26393
|
|
|
26398
26394
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
26399
26395
|
variant: variant,
|
|
@@ -26684,7 +26680,7 @@ var Loading = function Loading() {
|
|
|
26684
26680
|
})))));
|
|
26685
26681
|
};
|
|
26686
26682
|
|
|
26687
|
-
var _excluded$
|
|
26683
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26688
26684
|
|
|
26689
26685
|
var NavFooter = function NavFooter(_ref) {
|
|
26690
26686
|
var leftContent = _ref.leftContent,
|
|
@@ -26700,7 +26696,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26700
26696
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26701
26697
|
isMobile = _ref.isMobile,
|
|
26702
26698
|
footerWidth = _ref.footerWidth,
|
|
26703
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26699
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26704
26700
|
|
|
26705
26701
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26706
26702
|
padding: footerPadding,
|
|
@@ -26732,7 +26728,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26732
26728
|
}, rightContent)))))));
|
|
26733
26729
|
};
|
|
26734
26730
|
|
|
26735
|
-
var _excluded$
|
|
26731
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26736
26732
|
|
|
26737
26733
|
var NavHeader = function NavHeader(_ref) {
|
|
26738
26734
|
var leftContent = _ref.leftContent,
|
|
@@ -26742,7 +26738,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26742
26738
|
isMobile = _ref.isMobile,
|
|
26743
26739
|
backgroundColor = _ref.backgroundColor,
|
|
26744
26740
|
headerWidth = _ref.headerWidth,
|
|
26745
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26741
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26746
26742
|
|
|
26747
26743
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26748
26744
|
padding: "0 16px 4px",
|
|
@@ -37942,12 +37938,15 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37942
37938
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
37943
37939
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
37944
37940
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
37941
|
+
"aria-live": "polite",
|
|
37942
|
+
"aria-atomic": true,
|
|
37945
37943
|
options: options,
|
|
37946
37944
|
field: field,
|
|
37947
37945
|
fieldActions: fieldActions,
|
|
37948
37946
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
37949
37947
|
errorMessages: errorMessages,
|
|
37950
37948
|
showErrors: showErrors,
|
|
37949
|
+
"aria-invalid": !!(errorMessages !== null && errorMessages !== void 0 && errorMessages.length),
|
|
37951
37950
|
autocompleteValue: autocomplete
|
|
37952
37951
|
});
|
|
37953
37952
|
};
|
|
@@ -38517,7 +38516,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38517
38516
|
return extraStyles;
|
|
38518
38517
|
});
|
|
38519
38518
|
|
|
38520
|
-
var _excluded$
|
|
38519
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38521
38520
|
|
|
38522
38521
|
var TableRow = function TableRow(_ref) {
|
|
38523
38522
|
var children = _ref.children,
|
|
@@ -38527,7 +38526,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38527
38526
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38528
38527
|
onClick = _ref.onClick,
|
|
38529
38528
|
themeValues = _ref.themeValues,
|
|
38530
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38529
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38531
38530
|
|
|
38532
38531
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38533
38532
|
onClick: onClick,
|
|
@@ -40350,7 +40349,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40350
40349
|
}, []);
|
|
40351
40350
|
}
|
|
40352
40351
|
|
|
40353
|
-
var street1ErrorMessages = _defineProperty({}, required.error, "Street is required");
|
|
40352
|
+
var street1ErrorMessages = _defineProperty({}, required.error, "Street address is required");
|
|
40354
40353
|
|
|
40355
40354
|
var cityErrorMessages = _defineProperty({}, required.error, "City is required");
|
|
40356
40355
|
|
|
@@ -40381,8 +40380,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40381
40380
|
actions.fields.zip.set("");
|
|
40382
40381
|
}
|
|
40383
40382
|
},
|
|
40384
|
-
showErrors: showErrors
|
|
40385
|
-
"aria-label": "country"
|
|
40383
|
+
showErrors: showErrors
|
|
40386
40384
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40387
40385
|
labelTextWhenNoError: "Address",
|
|
40388
40386
|
errorMessages: street1ErrorMessages,
|
|
@@ -40393,8 +40391,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40393
40391
|
onKeyDown: function onKeyDown(e) {
|
|
40394
40392
|
return e.key === "Enter" && handleSubmit(e);
|
|
40395
40393
|
},
|
|
40396
|
-
|
|
40397
|
-
"aria-label": "
|
|
40394
|
+
autocomplete: "address-line1",
|
|
40395
|
+
"aria-label": "Address Line 1"
|
|
40398
40396
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40399
40397
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40400
40398
|
field: fields.street2,
|
|
@@ -40403,8 +40401,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40403
40401
|
onKeyDown: function onKeyDown(e) {
|
|
40404
40402
|
return e.key === "Enter" && handleSubmit(e);
|
|
40405
40403
|
},
|
|
40406
|
-
|
|
40407
|
-
"aria-label": "
|
|
40404
|
+
autocomplete: "address-line2",
|
|
40405
|
+
"aria-label": "Address Line 2"
|
|
40408
40406
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40409
40407
|
labelTextWhenNoError: "City",
|
|
40410
40408
|
required: true,
|
|
@@ -40415,8 +40413,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40415
40413
|
onKeyDown: function onKeyDown(e) {
|
|
40416
40414
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40415
|
},
|
|
40418
|
-
|
|
40419
|
-
"aria-label": "
|
|
40416
|
+
autocomplete: "city",
|
|
40417
|
+
"aria-label": "City"
|
|
40420
40418
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40421
40419
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40422
40420
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40427,9 +40425,9 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40427
40425
|
onKeyDown: function onKeyDown(e) {
|
|
40428
40426
|
return e.key === "Enter" && handleSubmit(e);
|
|
40429
40427
|
},
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40428
|
+
"aria-label": isUS ? "State" : "State or Province",
|
|
40429
|
+
required: true,
|
|
40430
|
+
autocomplete: "administrative-area"
|
|
40433
40431
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40434
40432
|
isNum: isUS,
|
|
40435
40433
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40441,11 +40439,12 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40441
40439
|
onKeyDown: function onKeyDown(e) {
|
|
40442
40440
|
return e.key === "Enter" && handleSubmit(e);
|
|
40443
40441
|
},
|
|
40444
|
-
"aria-label": "
|
|
40445
|
-
|
|
40442
|
+
"aria-label": "Zip code",
|
|
40443
|
+
autocomplete: "postal-code",
|
|
40444
|
+
required: true
|
|
40446
40445
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40447
40446
|
name: "address checkbox",
|
|
40448
|
-
title: "Save address to
|
|
40447
|
+
title: "Save address to wallet",
|
|
40449
40448
|
checked: walletCheckboxMarked,
|
|
40450
40449
|
onChange: saveToWallet
|
|
40451
40450
|
})));
|
|
@@ -48161,7 +48160,7 @@ var fallbackValues$N = {
|
|
|
48161
48160
|
labeledAmountTotal: labeledAmountTotal
|
|
48162
48161
|
};
|
|
48163
48162
|
|
|
48164
|
-
var _excluded$
|
|
48163
|
+
var _excluded$x = ["amount"],
|
|
48165
48164
|
_excluded2$1 = ["amount"];
|
|
48166
48165
|
|
|
48167
48166
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48371,7 +48370,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48371
48370
|
return fee.amount > 0;
|
|
48372
48371
|
}).map(function (_ref5) {
|
|
48373
48372
|
var amount = _ref5.amount,
|
|
48374
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48373
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
48375
48374
|
|
|
48376
48375
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48377
48376
|
amount: displayCurrency(amount)
|
|
@@ -48535,6 +48534,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48535
48534
|
toggleOpen(false);
|
|
48536
48535
|
}
|
|
48537
48536
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48537
|
+
role: "button",
|
|
48538
48538
|
variant: "pS",
|
|
48539
48539
|
onClick: function onClick() {
|
|
48540
48540
|
return toggleOpen(true);
|
|
@@ -48665,6 +48665,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48665
48665
|
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48666
48666
|
name: "terms",
|
|
48667
48667
|
title: "Terms and Conditions",
|
|
48668
|
+
dataQa: "Terms and Conditions",
|
|
48668
48669
|
error: error,
|
|
48669
48670
|
checked: isChecked,
|
|
48670
48671
|
onChange: onCheck
|
|
@@ -48798,19 +48799,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48798
48799
|
toggleOpen: toggleTerms,
|
|
48799
48800
|
linkVariant: modalVariant,
|
|
48800
48801
|
title: modalTitle
|
|
48801
|
-
})),
|
|
48802
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
48803
|
+
"aria-live": "polite",
|
|
48804
|
+
"aria-atomic": true
|
|
48805
|
+
}, showCheckbox && hasError && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48802
48806
|
variant: "pXS",
|
|
48803
48807
|
color: ERROR_COLOR,
|
|
48804
48808
|
id: "".concat(id, "-error-message")
|
|
48805
|
-
}, errorMessage)))));
|
|
48809
|
+
}, errorMessage))))));
|
|
48806
48810
|
};
|
|
48807
48811
|
|
|
48808
|
-
var _excluded$
|
|
48812
|
+
var _excluded$y = ["version"];
|
|
48809
48813
|
|
|
48810
48814
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48811
48815
|
var _ref$version = _ref.version,
|
|
48812
48816
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48813
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48817
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48814
48818
|
|
|
48815
48819
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48816
48820
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48875,6 +48879,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48875
48879
|
"aria-label": "ACH Payment"
|
|
48876
48880
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48877
48881
|
labelTextWhenNoError: "Name on checking account",
|
|
48882
|
+
dataQa: "Name on checking account",
|
|
48878
48883
|
errorMessages: nameErrors,
|
|
48879
48884
|
field: fields.name,
|
|
48880
48885
|
fieldActions: actions.fields.name,
|
|
@@ -48885,6 +48890,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48885
48890
|
autocomplete: "name"
|
|
48886
48891
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48887
48892
|
labelTextWhenNoError: "Routing number",
|
|
48893
|
+
dataQa: "Routing number",
|
|
48888
48894
|
errorMessages: routingNumberErrors,
|
|
48889
48895
|
field: fields.routingNumber,
|
|
48890
48896
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48905,6 +48911,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48905
48911
|
}
|
|
48906
48912
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48907
48913
|
labelTextWhenNoError: "Confirm routing number",
|
|
48914
|
+
dataQa: "Confirm routing number",
|
|
48908
48915
|
errorMessages: confirmRoutingNumberErrors,
|
|
48909
48916
|
field: fields.confirmRoutingNumber,
|
|
48910
48917
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48915,6 +48922,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48915
48922
|
isNum: true
|
|
48916
48923
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48917
48924
|
labelTextWhenNoError: "Account number",
|
|
48925
|
+
dataQa: "Account number",
|
|
48918
48926
|
errorMessages: accountNumberErrors,
|
|
48919
48927
|
field: fields.accountNumber,
|
|
48920
48928
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48935,6 +48943,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48935
48943
|
}
|
|
48936
48944
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48937
48945
|
labelTextWhenNoError: "Confirm account number",
|
|
48946
|
+
dataQa: "Confirm account number",
|
|
48938
48947
|
errorMessages: confirmAccountNumberErrors,
|
|
48939
48948
|
field: fields.confirmAccountNumber,
|
|
48940
48949
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48945,6 +48954,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48945
48954
|
isNum: true
|
|
48946
48955
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48947
48956
|
labelTextWhenNoError: "Account type",
|
|
48957
|
+
dataQa: "Account type",
|
|
48948
48958
|
options: [{
|
|
48949
48959
|
text: "Select account type",
|
|
48950
48960
|
value: ""
|
|
@@ -48961,6 +48971,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48961
48971
|
field: fields.accountType
|
|
48962
48972
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48963
48973
|
title: "Save as Default Payment Method",
|
|
48974
|
+
dataQa: "default-payment-ach",
|
|
48964
48975
|
name: "default-payment-ach",
|
|
48965
48976
|
onChange: toggleCheckbox,
|
|
48966
48977
|
checked: defaultMethod.value,
|
|
@@ -48970,6 +48981,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48970
48981
|
align: "center"
|
|
48971
48982
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48972
48983
|
name: "bank checkbox",
|
|
48984
|
+
dataQa: "Save checking account to wallet",
|
|
48973
48985
|
title: "Save checking account to wallet.",
|
|
48974
48986
|
checked: walletCheckboxMarked,
|
|
48975
48987
|
onChange: saveToWallet
|
|
@@ -49085,6 +49097,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49085
49097
|
showErrors: showErrors
|
|
49086
49098
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49087
49099
|
labelTextWhenNoError: "Name on card",
|
|
49100
|
+
dataQa: "Name on card",
|
|
49088
49101
|
errorMessages: nameOnCardErrors,
|
|
49089
49102
|
field: fields.nameOnCard,
|
|
49090
49103
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49095,6 +49108,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49095
49108
|
autocomplete: "cc-name"
|
|
49096
49109
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49097
49110
|
labelTextWhenNoError: "Credit card number",
|
|
49111
|
+
dataQa: "Credit card number",
|
|
49098
49112
|
errorMessages: creditCardNumberErrors,
|
|
49099
49113
|
field: fields.creditCardNumber,
|
|
49100
49114
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49110,6 +49124,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49110
49124
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49111
49125
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49112
49126
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49127
|
+
dataQa: "Expiration date",
|
|
49113
49128
|
errorMessages: expirationDateErrors,
|
|
49114
49129
|
field: fields.expirationDate,
|
|
49115
49130
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49124,6 +49139,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49124
49139
|
autocomplete: "cc-exp"
|
|
49125
49140
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49126
49141
|
labelTextWhenNoError: "CVV",
|
|
49142
|
+
dataQa: "CVV",
|
|
49127
49143
|
errorMessages: cvvErrors,
|
|
49128
49144
|
field: fields.cvv,
|
|
49129
49145
|
fieldActions: actions.fields.cvv,
|
|
@@ -49141,6 +49157,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49141
49157
|
isNum: isUS,
|
|
49142
49158
|
formatter: isUS ? zipFormat : null,
|
|
49143
49159
|
labelTextWhenNoError: "Zip code",
|
|
49160
|
+
dataQa: "Zip code",
|
|
49144
49161
|
errorMessages: zipCodeErrors,
|
|
49145
49162
|
field: fields.zipCode,
|
|
49146
49163
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49148,12 +49165,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49148
49165
|
onKeyDown: function onKeyDown(e) {
|
|
49149
49166
|
return e.key === "Enter" && handleSubmit(e);
|
|
49150
49167
|
},
|
|
49151
|
-
|
|
49168
|
+
autoComplete: "billing postal-code"
|
|
49152
49169
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
49153
49170
|
childGap: "4px",
|
|
49154
49171
|
align: "center"
|
|
49155
49172
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49156
49173
|
name: "credit card checkbox",
|
|
49174
|
+
dataQa: "Save credit card to wallet",
|
|
49157
49175
|
title: "Save credit card to wallet.",
|
|
49158
49176
|
checked: walletCheckboxMarked,
|
|
49159
49177
|
onChange: saveToWallet
|
|
@@ -49365,8 +49383,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49365
49383
|
onKeyUp: function onKeyUp(e) {
|
|
49366
49384
|
return e.key === "Enter" && handleSubmit(e);
|
|
49367
49385
|
},
|
|
49368
|
-
|
|
49369
|
-
|
|
49386
|
+
autocomplete: "tel",
|
|
49387
|
+
isPhone: true
|
|
49370
49388
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49371
49389
|
name: "phone checkbox",
|
|
49372
49390
|
title: "Save phone number to wallet",
|