@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.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,9 @@ 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
|
-
|
|
24214
|
+
"data-qa": labelTextWhenNoError,
|
|
24215
|
+
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24216
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
24219
24217
|
maxHeight: dropdownMaxHeight,
|
|
24220
24218
|
hasTitles: hasTitles,
|
|
24221
24219
|
placeholder: options[0] ? options[0].text : "",
|
|
@@ -24224,6 +24222,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24224
24222
|
disabledValues: disabledValues,
|
|
24225
24223
|
isOpen: open,
|
|
24226
24224
|
isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24225
|
+
"aria-invalid": field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
24227
24226
|
onSelect: onChange ? function (value) {
|
|
24228
24227
|
return onChange(value);
|
|
24229
24228
|
} : function (value) {
|
|
@@ -24232,21 +24231,22 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24232
24231
|
onClick: function onClick() {
|
|
24233
24232
|
return setOpen(!open);
|
|
24234
24233
|
},
|
|
24234
|
+
disabled: disabled,
|
|
24235
24235
|
"aria-disabled": disabled,
|
|
24236
24236
|
autocompleteValue: autocompleteValue,
|
|
24237
24237
|
smoothScroll: smoothScroll,
|
|
24238
24238
|
required: options.required
|
|
24239
24239
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24240
24240
|
direction: "row",
|
|
24241
|
-
justify: "space-between"
|
|
24242
|
-
"aria-live": "assertive"
|
|
24241
|
+
justify: "space-between"
|
|
24243
24242
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24244
24243
|
color: ERROR_COLOR,
|
|
24245
24244
|
variant: "pXS",
|
|
24246
24245
|
weight: themeValues.fontWeight,
|
|
24247
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24246
|
+
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
24248
24247
|
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24249
|
-
"aria-live": "
|
|
24248
|
+
"aria-live": "polite",
|
|
24249
|
+
"data-qa": labelTextWhenNoError
|
|
24250
24250
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24251
24251
|
};
|
|
24252
24252
|
|
|
@@ -24995,28 +24995,24 @@ var options = [{
|
|
|
24995
24995
|
value: "ZW"
|
|
24996
24996
|
}];
|
|
24997
24997
|
|
|
24998
|
-
var _excluded$p = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
|
|
24999
|
-
|
|
25000
24998
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
25001
24999
|
var labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
25002
25000
|
errorMessages = _ref.errorMessages,
|
|
25003
25001
|
field = _ref.field,
|
|
25004
25002
|
fieldActions = _ref.fieldActions,
|
|
25005
25003
|
showErrors = _ref.showErrors,
|
|
25006
|
-
onChange = _ref.onChange
|
|
25007
|
-
|
|
25008
|
-
|
|
25009
|
-
return /*#__PURE__*/React__default.createElement(FormSelect$1, _extends({
|
|
25004
|
+
onChange = _ref.onChange;
|
|
25005
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25010
25006
|
options: options,
|
|
25011
25007
|
field: field,
|
|
25012
25008
|
fieldActions: fieldActions,
|
|
25013
25009
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
25010
|
+
dataQa: labelTextWhenNoError,
|
|
25014
25011
|
errorMessages: errorMessages,
|
|
25015
25012
|
showErrors: showErrors,
|
|
25016
25013
|
onChange: onChange,
|
|
25017
|
-
autocompleteValue: "country-name"
|
|
25018
|
-
|
|
25019
|
-
}, rest));
|
|
25014
|
+
autocompleteValue: "country-name"
|
|
25015
|
+
});
|
|
25020
25016
|
};
|
|
25021
25017
|
|
|
25022
25018
|
var DetailText = styled__default.p.withConfig({
|
|
@@ -25082,7 +25078,7 @@ var mobileFallbackValues$1 = {
|
|
|
25082
25078
|
};
|
|
25083
25079
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25084
25080
|
|
|
25085
|
-
var _excluded$
|
|
25081
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25086
25082
|
/*
|
|
25087
25083
|
New responsive text component for Detail elements
|
|
25088
25084
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -25132,7 +25128,7 @@ var Detail = function Detail(_ref) {
|
|
|
25132
25128
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25133
25129
|
dataQa = _ref.dataQa,
|
|
25134
25130
|
children = _ref.children,
|
|
25135
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25131
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
25136
25132
|
|
|
25137
25133
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25138
25134
|
variant: variant,
|
|
@@ -25856,7 +25852,7 @@ var fallbackValues$k = {
|
|
|
25856
25852
|
formFooterPanel: formFooterPanel
|
|
25857
25853
|
};
|
|
25858
25854
|
|
|
25859
|
-
var _excluded$
|
|
25855
|
+
var _excluded$p = ["showErrors", "themeValues"],
|
|
25860
25856
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
25861
25857
|
var InputField = styled__default.input.withConfig({
|
|
25862
25858
|
displayName: "FormInput__InputField",
|
|
@@ -25890,7 +25886,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
25890
25886
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
25891
25887
|
var showErrors = _ref8.showErrors,
|
|
25892
25888
|
themeValues = _ref8.themeValues,
|
|
25893
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25889
|
+
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
25894
25890
|
|
|
25895
25891
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
25896
25892
|
}).withConfig({
|
|
@@ -25989,7 +25985,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25989
25985
|
color: themeValues.labelColor,
|
|
25990
25986
|
variant: "pS",
|
|
25991
25987
|
fontWeight: themeValues.fontWeight,
|
|
25992
|
-
extraStyles: "word-break: break-word;\n
|
|
25988
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
25993
25989
|
id: createIdFromString(labelTextWhenNoError)
|
|
25994
25990
|
}, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25995
25991
|
variant: "pS",
|
|
@@ -26000,8 +25996,9 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26000
25996
|
onClick: function onClick() {
|
|
26001
25997
|
return setShowPassword(!showPassword);
|
|
26002
25998
|
},
|
|
26003
|
-
"aria-label": "Show password",
|
|
26004
25999
|
tabIndex: "0",
|
|
26000
|
+
"aria-label": showPassword ? "Hide Password" : "Show password",
|
|
26001
|
+
"aria-live": "polite",
|
|
26005
26002
|
onKeyPress: function onKeyPress(e) {
|
|
26006
26003
|
return e.key === "Enter" && setShowPassword(!showPassword);
|
|
26007
26004
|
}
|
|
@@ -26023,7 +26020,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26023
26020
|
field: field,
|
|
26024
26021
|
formatter: formatter,
|
|
26025
26022
|
showErrors: showErrors,
|
|
26026
|
-
|
|
26023
|
+
dataQa: labelTextWhenNoError,
|
|
26027
26024
|
themeValues: themeValues,
|
|
26028
26025
|
$customHeight: customHeight,
|
|
26029
26026
|
$extraStyles: extraStyles,
|
|
@@ -26041,16 +26038,17 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26041
26038
|
inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
|
|
26042
26039
|
field: field,
|
|
26043
26040
|
showErrors: showErrors,
|
|
26044
|
-
|
|
26041
|
+
dataQa: labelTextWhenNoError,
|
|
26045
26042
|
themeValues: themeValues,
|
|
26046
26043
|
background: background,
|
|
26047
26044
|
$customHeight: customHeight,
|
|
26048
26045
|
$extraStyles: extraStyles,
|
|
26049
|
-
|
|
26046
|
+
autocomplete: autocomplete
|
|
26050
26047
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26051
26048
|
direction: "row",
|
|
26052
26049
|
justify: "space-between",
|
|
26053
|
-
|
|
26050
|
+
"aria-live": "polite",
|
|
26051
|
+
"aria-atomic": true
|
|
26054
26052
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26055
26053
|
color: ERROR_COLOR,
|
|
26056
26054
|
variant: "pXS",
|
|
@@ -26066,7 +26064,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26066
26064
|
|
|
26067
26065
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26068
26066
|
|
|
26069
|
-
var _excluded$
|
|
26067
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26070
26068
|
|
|
26071
26069
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26072
26070
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26076,7 +26074,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26076
26074
|
largeChild = _ref.largeChild,
|
|
26077
26075
|
largeChildSize = _ref.largeChildSize,
|
|
26078
26076
|
children = _ref.children,
|
|
26079
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26077
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
26080
26078
|
|
|
26081
26079
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26082
26080
|
padding: "0"
|
|
@@ -26088,14 +26086,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26088
26086
|
}, children));
|
|
26089
26087
|
};
|
|
26090
26088
|
|
|
26091
|
-
var _excluded$
|
|
26089
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
26092
26090
|
|
|
26093
26091
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26094
26092
|
var _ref$childGap = _ref.childGap,
|
|
26095
26093
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26096
26094
|
bottomItem = _ref.bottomItem,
|
|
26097
26095
|
children = _ref.children,
|
|
26098
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26096
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26099
26097
|
|
|
26100
26098
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26101
26099
|
childGap: childGap,
|
|
@@ -26103,12 +26101,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26103
26101
|
}, rest), children);
|
|
26104
26102
|
};
|
|
26105
26103
|
|
|
26106
|
-
var _excluded$
|
|
26104
|
+
var _excluded$s = ["themeValues", "children"];
|
|
26107
26105
|
|
|
26108
26106
|
var FormContainer = function FormContainer(_ref) {
|
|
26109
26107
|
var themeValues = _ref.themeValues,
|
|
26110
26108
|
children = _ref.children,
|
|
26111
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26109
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26112
26110
|
|
|
26113
26111
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26114
26112
|
isMobile = _useContext.isMobile;
|
|
@@ -26373,7 +26371,7 @@ var fallbackValues$o = {
|
|
|
26373
26371
|
fontSize: fontSize$8
|
|
26374
26372
|
};
|
|
26375
26373
|
|
|
26376
|
-
var _excluded$
|
|
26374
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26377
26375
|
|
|
26378
26376
|
var Heading = function Heading(_ref) {
|
|
26379
26377
|
var themeValues = _ref.themeValues,
|
|
@@ -26393,7 +26391,7 @@ var Heading = function Heading(_ref) {
|
|
|
26393
26391
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26394
26392
|
dataQa = _ref.dataQa,
|
|
26395
26393
|
children = _ref.children,
|
|
26396
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26394
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26397
26395
|
|
|
26398
26396
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
26399
26397
|
variant: variant,
|
|
@@ -26684,7 +26682,7 @@ var Loading = function Loading() {
|
|
|
26684
26682
|
})))));
|
|
26685
26683
|
};
|
|
26686
26684
|
|
|
26687
|
-
var _excluded$
|
|
26685
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26688
26686
|
|
|
26689
26687
|
var NavFooter = function NavFooter(_ref) {
|
|
26690
26688
|
var leftContent = _ref.leftContent,
|
|
@@ -26700,7 +26698,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26700
26698
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26701
26699
|
isMobile = _ref.isMobile,
|
|
26702
26700
|
footerWidth = _ref.footerWidth,
|
|
26703
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26701
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26704
26702
|
|
|
26705
26703
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26706
26704
|
padding: footerPadding,
|
|
@@ -26732,7 +26730,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26732
26730
|
}, rightContent)))))));
|
|
26733
26731
|
};
|
|
26734
26732
|
|
|
26735
|
-
var _excluded$
|
|
26733
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26736
26734
|
|
|
26737
26735
|
var NavHeader = function NavHeader(_ref) {
|
|
26738
26736
|
var leftContent = _ref.leftContent,
|
|
@@ -26742,7 +26740,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26742
26740
|
isMobile = _ref.isMobile,
|
|
26743
26741
|
backgroundColor = _ref.backgroundColor,
|
|
26744
26742
|
headerWidth = _ref.headerWidth,
|
|
26745
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26743
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26746
26744
|
|
|
26747
26745
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26748
26746
|
padding: "0 16px 4px",
|
|
@@ -37942,12 +37940,15 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37942
37940
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
37943
37941
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
37944
37942
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
37943
|
+
"aria-live": "polite",
|
|
37944
|
+
"aria-atomic": true,
|
|
37945
37945
|
options: options,
|
|
37946
37946
|
field: field,
|
|
37947
37947
|
fieldActions: fieldActions,
|
|
37948
37948
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
37949
37949
|
errorMessages: errorMessages,
|
|
37950
37950
|
showErrors: showErrors,
|
|
37951
|
+
"aria-invalid": !!(errorMessages !== null && errorMessages !== void 0 && errorMessages.length),
|
|
37951
37952
|
autocompleteValue: autocomplete
|
|
37952
37953
|
});
|
|
37953
37954
|
};
|
|
@@ -38517,7 +38518,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38517
38518
|
return extraStyles;
|
|
38518
38519
|
});
|
|
38519
38520
|
|
|
38520
|
-
var _excluded$
|
|
38521
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38521
38522
|
|
|
38522
38523
|
var TableRow = function TableRow(_ref) {
|
|
38523
38524
|
var children = _ref.children,
|
|
@@ -38527,7 +38528,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38527
38528
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38528
38529
|
onClick = _ref.onClick,
|
|
38529
38530
|
themeValues = _ref.themeValues,
|
|
38530
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38531
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38531
38532
|
|
|
38532
38533
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38533
38534
|
onClick: onClick,
|
|
@@ -40350,7 +40351,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40350
40351
|
}, []);
|
|
40351
40352
|
}
|
|
40352
40353
|
|
|
40353
|
-
var street1ErrorMessages = _defineProperty({}, required.error, "Street is required");
|
|
40354
|
+
var street1ErrorMessages = _defineProperty({}, required.error, "Street address is required");
|
|
40354
40355
|
|
|
40355
40356
|
var cityErrorMessages = _defineProperty({}, required.error, "City is required");
|
|
40356
40357
|
|
|
@@ -40381,8 +40382,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40381
40382
|
actions.fields.zip.set("");
|
|
40382
40383
|
}
|
|
40383
40384
|
},
|
|
40384
|
-
showErrors: showErrors
|
|
40385
|
-
"aria-label": "country"
|
|
40385
|
+
showErrors: showErrors
|
|
40386
40386
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40387
40387
|
labelTextWhenNoError: "Address",
|
|
40388
40388
|
errorMessages: street1ErrorMessages,
|
|
@@ -40393,8 +40393,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40393
40393
|
onKeyDown: function onKeyDown(e) {
|
|
40394
40394
|
return e.key === "Enter" && handleSubmit(e);
|
|
40395
40395
|
},
|
|
40396
|
-
|
|
40397
|
-
"aria-label": "
|
|
40396
|
+
autocomplete: "address-line1",
|
|
40397
|
+
"aria-label": "Address Line 1"
|
|
40398
40398
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40399
40399
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40400
40400
|
field: fields.street2,
|
|
@@ -40403,8 +40403,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40403
40403
|
onKeyDown: function onKeyDown(e) {
|
|
40404
40404
|
return e.key === "Enter" && handleSubmit(e);
|
|
40405
40405
|
},
|
|
40406
|
-
|
|
40407
|
-
"aria-label": "
|
|
40406
|
+
autocomplete: "address-line2",
|
|
40407
|
+
"aria-label": "Address Line 2"
|
|
40408
40408
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40409
40409
|
labelTextWhenNoError: "City",
|
|
40410
40410
|
required: true,
|
|
@@ -40415,8 +40415,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40415
40415
|
onKeyDown: function onKeyDown(e) {
|
|
40416
40416
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40417
|
},
|
|
40418
|
-
|
|
40419
|
-
"aria-label": "
|
|
40418
|
+
autocomplete: "city",
|
|
40419
|
+
"aria-label": "City"
|
|
40420
40420
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40421
40421
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40422
40422
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40427,9 +40427,9 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40427
40427
|
onKeyDown: function onKeyDown(e) {
|
|
40428
40428
|
return e.key === "Enter" && handleSubmit(e);
|
|
40429
40429
|
},
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40430
|
+
"aria-label": isUS ? "State" : "State or Province",
|
|
40431
|
+
required: true,
|
|
40432
|
+
autocomplete: "administrative-area"
|
|
40433
40433
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40434
40434
|
isNum: isUS,
|
|
40435
40435
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40441,11 +40441,12 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40441
40441
|
onKeyDown: function onKeyDown(e) {
|
|
40442
40442
|
return e.key === "Enter" && handleSubmit(e);
|
|
40443
40443
|
},
|
|
40444
|
-
"aria-label": "
|
|
40445
|
-
|
|
40444
|
+
"aria-label": "Zip code",
|
|
40445
|
+
autocomplete: "postal-code",
|
|
40446
|
+
required: true
|
|
40446
40447
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40447
40448
|
name: "address checkbox",
|
|
40448
|
-
title: "Save address to
|
|
40449
|
+
title: "Save address to wallet",
|
|
40449
40450
|
checked: walletCheckboxMarked,
|
|
40450
40451
|
onChange: saveToWallet
|
|
40451
40452
|
})));
|
|
@@ -48161,7 +48162,7 @@ var fallbackValues$N = {
|
|
|
48161
48162
|
labeledAmountTotal: labeledAmountTotal
|
|
48162
48163
|
};
|
|
48163
48164
|
|
|
48164
|
-
var _excluded$
|
|
48165
|
+
var _excluded$x = ["amount"],
|
|
48165
48166
|
_excluded2$1 = ["amount"];
|
|
48166
48167
|
|
|
48167
48168
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48371,7 +48372,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48371
48372
|
return fee.amount > 0;
|
|
48372
48373
|
}).map(function (_ref5) {
|
|
48373
48374
|
var amount = _ref5.amount,
|
|
48374
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48375
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
48375
48376
|
|
|
48376
48377
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48377
48378
|
amount: displayCurrency(amount)
|
|
@@ -48535,6 +48536,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48535
48536
|
toggleOpen(false);
|
|
48536
48537
|
}
|
|
48537
48538
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48539
|
+
role: "button",
|
|
48538
48540
|
variant: "pS",
|
|
48539
48541
|
onClick: function onClick() {
|
|
48540
48542
|
return toggleOpen(true);
|
|
@@ -48665,6 +48667,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48665
48667
|
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48666
48668
|
name: "terms",
|
|
48667
48669
|
title: "Terms and Conditions",
|
|
48670
|
+
dataQa: "Terms and Conditions",
|
|
48668
48671
|
error: error,
|
|
48669
48672
|
checked: isChecked,
|
|
48670
48673
|
onChange: onCheck
|
|
@@ -48798,19 +48801,22 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48798
48801
|
toggleOpen: toggleTerms,
|
|
48799
48802
|
linkVariant: modalVariant,
|
|
48800
48803
|
title: modalTitle
|
|
48801
|
-
})),
|
|
48804
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
48805
|
+
"aria-live": "polite",
|
|
48806
|
+
"aria-atomic": true
|
|
48807
|
+
}, showCheckbox && hasError && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48802
48808
|
variant: "pXS",
|
|
48803
48809
|
color: ERROR_COLOR,
|
|
48804
48810
|
id: "".concat(id, "-error-message")
|
|
48805
|
-
}, errorMessage)))));
|
|
48811
|
+
}, errorMessage))))));
|
|
48806
48812
|
};
|
|
48807
48813
|
|
|
48808
|
-
var _excluded$
|
|
48814
|
+
var _excluded$y = ["version"];
|
|
48809
48815
|
|
|
48810
48816
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48811
48817
|
var _ref$version = _ref.version,
|
|
48812
48818
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48813
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48819
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48814
48820
|
|
|
48815
48821
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48816
48822
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48875,6 +48881,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48875
48881
|
"aria-label": "ACH Payment"
|
|
48876
48882
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48877
48883
|
labelTextWhenNoError: "Name on checking account",
|
|
48884
|
+
"data-qa": "Name on checking account",
|
|
48878
48885
|
errorMessages: nameErrors,
|
|
48879
48886
|
field: fields.name,
|
|
48880
48887
|
fieldActions: actions.fields.name,
|
|
@@ -48885,6 +48892,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48885
48892
|
autocomplete: "name"
|
|
48886
48893
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48887
48894
|
labelTextWhenNoError: "Routing number",
|
|
48895
|
+
"data-qa": "Routing number",
|
|
48888
48896
|
errorMessages: routingNumberErrors,
|
|
48889
48897
|
field: fields.routingNumber,
|
|
48890
48898
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48905,6 +48913,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48905
48913
|
}
|
|
48906
48914
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48907
48915
|
labelTextWhenNoError: "Confirm routing number",
|
|
48916
|
+
"data-qa": "Confirm routing number",
|
|
48908
48917
|
errorMessages: confirmRoutingNumberErrors,
|
|
48909
48918
|
field: fields.confirmRoutingNumber,
|
|
48910
48919
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48915,6 +48924,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48915
48924
|
isNum: true
|
|
48916
48925
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48917
48926
|
labelTextWhenNoError: "Account number",
|
|
48927
|
+
"data-qa": "Account number",
|
|
48918
48928
|
errorMessages: accountNumberErrors,
|
|
48919
48929
|
field: fields.accountNumber,
|
|
48920
48930
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48935,6 +48945,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48935
48945
|
}
|
|
48936
48946
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48937
48947
|
labelTextWhenNoError: "Confirm account number",
|
|
48948
|
+
"data-qa": "Confirm account number",
|
|
48938
48949
|
errorMessages: confirmAccountNumberErrors,
|
|
48939
48950
|
field: fields.confirmAccountNumber,
|
|
48940
48951
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48945,6 +48956,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48945
48956
|
isNum: true
|
|
48946
48957
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48947
48958
|
labelTextWhenNoError: "Account type",
|
|
48959
|
+
"data-qa": "Account type",
|
|
48948
48960
|
options: [{
|
|
48949
48961
|
text: "Select account type",
|
|
48950
48962
|
value: ""
|
|
@@ -48961,6 +48973,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48961
48973
|
field: fields.accountType
|
|
48962
48974
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48963
48975
|
title: "Save as Default Payment Method",
|
|
48976
|
+
"data-qa": "default-payment-ach",
|
|
48964
48977
|
name: "default-payment-ach",
|
|
48965
48978
|
onChange: toggleCheckbox,
|
|
48966
48979
|
checked: defaultMethod.value,
|
|
@@ -48970,6 +48983,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48970
48983
|
align: "center"
|
|
48971
48984
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48972
48985
|
name: "bank checkbox",
|
|
48986
|
+
"data-qa": "Save checking account to wallet",
|
|
48973
48987
|
title: "Save checking account to wallet.",
|
|
48974
48988
|
checked: walletCheckboxMarked,
|
|
48975
48989
|
onChange: saveToWallet
|
|
@@ -49085,6 +49099,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49085
49099
|
showErrors: showErrors
|
|
49086
49100
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49087
49101
|
labelTextWhenNoError: "Name on card",
|
|
49102
|
+
"data-qa": "Name on card",
|
|
49088
49103
|
errorMessages: nameOnCardErrors,
|
|
49089
49104
|
field: fields.nameOnCard,
|
|
49090
49105
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49095,6 +49110,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49095
49110
|
autocomplete: "cc-name"
|
|
49096
49111
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49097
49112
|
labelTextWhenNoError: "Credit card number",
|
|
49113
|
+
"data-qa": "Credit card number",
|
|
49098
49114
|
errorMessages: creditCardNumberErrors,
|
|
49099
49115
|
field: fields.creditCardNumber,
|
|
49100
49116
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49110,6 +49126,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49110
49126
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49111
49127
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49112
49128
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49129
|
+
"data-qa": "Expiration date",
|
|
49113
49130
|
errorMessages: expirationDateErrors,
|
|
49114
49131
|
field: fields.expirationDate,
|
|
49115
49132
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49124,6 +49141,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49124
49141
|
autocomplete: "cc-exp"
|
|
49125
49142
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49126
49143
|
labelTextWhenNoError: "CVV",
|
|
49144
|
+
"data-qa": "CVV",
|
|
49127
49145
|
errorMessages: cvvErrors,
|
|
49128
49146
|
field: fields.cvv,
|
|
49129
49147
|
fieldActions: actions.fields.cvv,
|
|
@@ -49141,6 +49159,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49141
49159
|
isNum: isUS,
|
|
49142
49160
|
formatter: isUS ? zipFormat : null,
|
|
49143
49161
|
labelTextWhenNoError: "Zip code",
|
|
49162
|
+
"data-qa": "Zip code",
|
|
49144
49163
|
errorMessages: zipCodeErrors,
|
|
49145
49164
|
field: fields.zipCode,
|
|
49146
49165
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49148,12 +49167,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49148
49167
|
onKeyDown: function onKeyDown(e) {
|
|
49149
49168
|
return e.key === "Enter" && handleSubmit(e);
|
|
49150
49169
|
},
|
|
49151
|
-
|
|
49170
|
+
autoComplete: "billing postal-code"
|
|
49152
49171
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
49153
49172
|
childGap: "4px",
|
|
49154
49173
|
align: "center"
|
|
49155
49174
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49156
49175
|
name: "credit card checkbox",
|
|
49176
|
+
"data-qa": "Save credit card to wallet",
|
|
49157
49177
|
title: "Save credit card to wallet.",
|
|
49158
49178
|
checked: walletCheckboxMarked,
|
|
49159
49179
|
onChange: saveToWallet
|
|
@@ -49365,8 +49385,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49365
49385
|
onKeyUp: function onKeyUp(e) {
|
|
49366
49386
|
return e.key === "Enter" && handleSubmit(e);
|
|
49367
49387
|
},
|
|
49368
|
-
|
|
49369
|
-
|
|
49388
|
+
autocomplete: "tel",
|
|
49389
|
+
isPhone: true
|
|
49370
49390
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49371
49391
|
name: "phone checkbox",
|
|
49372
49392
|
title: "Save phone number to wallet",
|