@thecb/components 9.2.1-beta.0 → 9.2.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +39 -96
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +39 -96
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +1 -3
- package/src/components/atoms/checkbox/Checkbox.stories.js +2 -3
- package/src/components/atoms/country-dropdown/CountryDropdown.js +1 -3
- package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +0 -1
- package/src/components/atoms/dropdown/Dropdown.js +6 -12
- package/src/components/atoms/form-layouts/FormInput.js +0 -3
- package/src/components/atoms/form-select/FormSelect.js +9 -22
- package/src/components/atoms/form-select/FormSelect.stories.js +2 -2
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +6 -9
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +1 -4
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +0 -1
- package/src/components/molecules/address-form/AddressForm.js +0 -6
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +0 -6
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +0 -6
- package/src/components/molecules/radio-group/RadioGroup.js +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +0 -1
- package/src/components/molecules/radio-section/RadioSection.stories.js +2 -3
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -4
package/dist/index.cjs.js
CHANGED
|
@@ -22134,9 +22134,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22134
22134
|
extraStyles = _ref4.extraStyles,
|
|
22135
22135
|
textExtraStyles = _ref4.textExtraStyles,
|
|
22136
22136
|
_ref4$dataQa = _ref4.dataQa,
|
|
22137
|
-
dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa
|
|
22138
|
-
_ref4$isRequired = _ref4.isRequired,
|
|
22139
|
-
isRequired = _ref4$isRequired === void 0 ? false : _ref4$isRequired;
|
|
22137
|
+
dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
|
|
22140
22138
|
|
|
22141
22139
|
var _useState = React.useState(false),
|
|
22142
22140
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22190,8 +22188,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22190
22188
|
errorStyles: themeValues.errorStyles,
|
|
22191
22189
|
disabledStyles: themeValues.disabledStyles,
|
|
22192
22190
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
22193
|
-
focusedStyles: themeValues.focusedStyles
|
|
22194
|
-
"aria-required": isRequired
|
|
22191
|
+
focusedStyles: themeValues.focusedStyles
|
|
22195
22192
|
}, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
22196
22193
|
viewBox: "0 0 24 24",
|
|
22197
22194
|
disabled: disabled,
|
|
@@ -23802,11 +23799,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
23802
23799
|
_ref13$smoothScroll = _ref13.smoothScroll,
|
|
23803
23800
|
smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
|
|
23804
23801
|
_ref13$ariaInvalid = _ref13.ariaInvalid,
|
|
23805
|
-
ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid
|
|
23806
|
-
_ref13$isRequired = _ref13.isRequired,
|
|
23807
|
-
isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
|
|
23808
|
-
|
|
23809
|
-
var required = options.required || isRequired;
|
|
23802
|
+
ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid;
|
|
23810
23803
|
|
|
23811
23804
|
var _useState = React.useState(""),
|
|
23812
23805
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -23999,11 +23992,11 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
23999
23992
|
clearTimeout(timer);
|
|
24000
23993
|
setTimer(setTimeout(function () {
|
|
24001
23994
|
return setInputValue("");
|
|
24002
|
-
},
|
|
23995
|
+
}, 5000));
|
|
24003
23996
|
}
|
|
24004
23997
|
|
|
24005
23998
|
setFilteredOptions(options.filter(function (option) {
|
|
24006
|
-
return option.value.toLowerCase().
|
|
23999
|
+
return option.value.toLowerCase().match(inputValue.toLowerCase());
|
|
24007
24000
|
}));
|
|
24008
24001
|
}, [inputValue]);
|
|
24009
24002
|
React.useEffect(function () {
|
|
@@ -24055,7 +24048,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24055
24048
|
"aria-labelledby": ariaLabelledby,
|
|
24056
24049
|
"aria-describedby": ariaDescribedby,
|
|
24057
24050
|
"aria-expanded": isOpen,
|
|
24058
|
-
"aria-required": required,
|
|
24051
|
+
"aria-required": options.required,
|
|
24059
24052
|
"aria-invalid": ariaInvalid,
|
|
24060
24053
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
24061
24054
|
borderRadius: "2px",
|
|
@@ -24077,6 +24070,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24077
24070
|
},
|
|
24078
24071
|
padding: "12px",
|
|
24079
24072
|
placeholder: getSelection(),
|
|
24073
|
+
required: options.required,
|
|
24080
24074
|
role: "combobox",
|
|
24081
24075
|
themeValues: themeValues,
|
|
24082
24076
|
title: hasTitles ? getSelection() : null,
|
|
@@ -24084,9 +24078,6 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24084
24078
|
tabIndex: 0,
|
|
24085
24079
|
value: inputValue,
|
|
24086
24080
|
width: "100%"
|
|
24087
|
-
/* Non-semantic elements need the aria-* version of the attribute */
|
|
24088
|
-
,
|
|
24089
|
-
"aria-disabled": disabledValues.includes(inputValue)
|
|
24090
24081
|
}), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
24091
24082
|
open: isOpen,
|
|
24092
24083
|
onClick: _onClick
|
|
@@ -24097,8 +24088,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24097
24088
|
widthFitOptions: widthFitOptions,
|
|
24098
24089
|
tabIndex: 0,
|
|
24099
24090
|
role: "listbox",
|
|
24100
|
-
id: "".concat(ariaLabelledby, "_listbox")
|
|
24101
|
-
required: required
|
|
24091
|
+
id: "".concat(ariaLabelledby, "_listbox")
|
|
24102
24092
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
24103
24093
|
childGap: "0",
|
|
24104
24094
|
as: "ul"
|
|
@@ -24248,9 +24238,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24248
24238
|
_ref$dataQa = _ref.dataQa,
|
|
24249
24239
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
24250
24240
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
24251
|
-
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions
|
|
24252
|
-
_ref$isRequired = _ref.isRequired,
|
|
24253
|
-
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
24241
|
+
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
|
|
24254
24242
|
|
|
24255
24243
|
var _useState = React.useState(false),
|
|
24256
24244
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24258,17 +24246,6 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24258
24246
|
setOpen = _useState2[1];
|
|
24259
24247
|
|
|
24260
24248
|
var dropdownRef = React.useRef(null);
|
|
24261
|
-
var required = (options === null || options === void 0 ? void 0 : options.required) || isRequired;
|
|
24262
|
-
var labelId = React.useMemo(function () {
|
|
24263
|
-
return function (labelTextWhenNoError) {
|
|
24264
|
-
return createIdFromString(labelTextWhenNoError);
|
|
24265
|
-
};
|
|
24266
|
-
}, [labelTextWhenNoError]);
|
|
24267
|
-
var descriptionId = React.useMemo(function () {
|
|
24268
|
-
return function (field, labelTextWhenNoError) {
|
|
24269
|
-
return field.hasErrors && field.dirty ? labelId(labelTextWhenNoError) + "error-message" : "";
|
|
24270
|
-
};
|
|
24271
|
-
}, [field, labelTextWhenNoError]);
|
|
24272
24249
|
|
|
24273
24250
|
var handleClickAway = function handleClickAway(event) {
|
|
24274
24251
|
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
@@ -24284,8 +24261,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24284
24261
|
});
|
|
24285
24262
|
return /*#__PURE__*/React__default.createElement(SelectContainer, {
|
|
24286
24263
|
ref: dropdownRef,
|
|
24287
|
-
"aria-role": "group",
|
|
24288
24264
|
disabled: disabled,
|
|
24265
|
+
"aria-disabled": disabled,
|
|
24289
24266
|
"data-qa": dataQa
|
|
24290
24267
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
24291
24268
|
padding: "0",
|
|
@@ -24299,10 +24276,10 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24299
24276
|
color: themeValues.labelColor,
|
|
24300
24277
|
weight: themeValues.fontWeight,
|
|
24301
24278
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24302
|
-
id:
|
|
24279
|
+
id: createIdFromString(labelTextWhenNoError)
|
|
24303
24280
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
24304
|
-
ariaLabelledby:
|
|
24305
|
-
ariaDescribedby:
|
|
24281
|
+
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24282
|
+
ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24306
24283
|
maxHeight: dropdownMaxHeight,
|
|
24307
24284
|
widthFitOptions: widthFitOptions,
|
|
24308
24285
|
hasTitles: hasTitles,
|
|
@@ -24323,8 +24300,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24323
24300
|
},
|
|
24324
24301
|
disabled: disabled,
|
|
24325
24302
|
autocompleteValue: autocompleteValue,
|
|
24326
|
-
smoothScroll: smoothScroll
|
|
24327
|
-
isRequired: required
|
|
24303
|
+
smoothScroll: smoothScroll
|
|
24328
24304
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24329
24305
|
direction: "row",
|
|
24330
24306
|
justify: "space-between"
|
|
@@ -25094,9 +25070,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25094
25070
|
showErrors = _ref.showErrors,
|
|
25095
25071
|
onChange = _ref.onChange,
|
|
25096
25072
|
_ref$dataQa = _ref.dataQa,
|
|
25097
|
-
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa
|
|
25098
|
-
_ref$isRequired = _ref.isRequired,
|
|
25099
|
-
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
25073
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
25100
25074
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25101
25075
|
options: options,
|
|
25102
25076
|
field: field,
|
|
@@ -25106,8 +25080,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25106
25080
|
errorMessages: errorMessages,
|
|
25107
25081
|
showErrors: showErrors,
|
|
25108
25082
|
onChange: onChange,
|
|
25109
|
-
autocompleteValue: "country-name"
|
|
25110
|
-
isRequired: isRequired
|
|
25083
|
+
autocompleteValue: "country-name"
|
|
25111
25084
|
});
|
|
25112
25085
|
};
|
|
25113
25086
|
|
|
@@ -25954,7 +25927,7 @@ var fallbackValues$k = {
|
|
|
25954
25927
|
};
|
|
25955
25928
|
|
|
25956
25929
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
25957
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"
|
|
25930
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
|
|
25958
25931
|
var InputField = styled__default.input.withConfig({
|
|
25959
25932
|
displayName: "FormInput__InputField",
|
|
25960
25933
|
componentId: "sc-l094r1-0"
|
|
@@ -26041,8 +26014,6 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26041
26014
|
removeFromValue = _ref15.removeFromValue,
|
|
26042
26015
|
_ref15$dataQa = _ref15.dataQa,
|
|
26043
26016
|
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
26044
|
-
_ref15$isRequired = _ref15.isRequired,
|
|
26045
|
-
isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
|
|
26046
26017
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
26047
26018
|
|
|
26048
26019
|
var _useState = React.useState(false),
|
|
@@ -26129,8 +26100,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26129
26100
|
$customHeight: customHeight,
|
|
26130
26101
|
$extraStyles: extraStyles,
|
|
26131
26102
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26132
|
-
autoComplete: autocompleteValue
|
|
26133
|
-
required: isRequired
|
|
26103
|
+
autoComplete: autocompleteValue
|
|
26134
26104
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26135
26105
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26136
26106
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26149,8 +26119,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26149
26119
|
$customHeight: customHeight,
|
|
26150
26120
|
$extraStyles: extraStyles,
|
|
26151
26121
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26152
|
-
autoComplete: autocompleteValue
|
|
26153
|
-
required: isRequired
|
|
26122
|
+
autoComplete: autocompleteValue
|
|
26154
26123
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26155
26124
|
direction: "row",
|
|
26156
26125
|
justify: "space-between",
|
|
@@ -27283,7 +27252,7 @@ var HiddenRadioInput = styled__default.input.withConfig({
|
|
|
27283
27252
|
var Circle = styled__default.div.withConfig({
|
|
27284
27253
|
displayName: "RadioButtonWithLabel__Circle",
|
|
27285
27254
|
componentId: "sc-1m9whwg-1"
|
|
27286
|
-
})(["flex-shrink:0;margin-right:8px;width:1.5rem;height
|
|
27255
|
+
})(["flex-shrink:0;margin-right:8px;width:1.5rem;height 1.5rem;border:", ";border-radius:50%;box-sizing:border-box;padding:2px;:after{content:\"\";width:100%;height:100%;display:block;background:", ";border-radius:50%;transform:scale(0);}"], function (_ref) {
|
|
27287
27256
|
var inactiveBorderColor = _ref.inactiveBorderColor;
|
|
27288
27257
|
return "1px solid ".concat(inactiveBorderColor);
|
|
27289
27258
|
}, function (_ref2) {
|
|
@@ -27293,12 +27262,12 @@ var Circle = styled__default.div.withConfig({
|
|
|
27293
27262
|
var InputAndLabelContainer = styled__default(Cluster).withConfig({
|
|
27294
27263
|
displayName: "RadioButtonWithLabel__InputAndLabelContainer",
|
|
27295
27264
|
componentId: "sc-1m9whwg-2"
|
|
27296
|
-
})(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:", "
|
|
27265
|
+
})(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:", "}", ":focus + label ", "{{box-shadow:", "}"], HiddenRadioInput, Circle, HiddenRadioInput, Circle, function (_ref3) {
|
|
27297
27266
|
var activeColor = _ref3.activeColor;
|
|
27298
|
-
return "1px solid "
|
|
27267
|
+
return "1px solid ".concat(activeColor, ";");
|
|
27299
27268
|
}, HiddenRadioInput, Circle, function (_ref4) {
|
|
27300
27269
|
var activeColor = _ref4.activeColor;
|
|
27301
|
-
return "0px 0px 2px 1px "
|
|
27270
|
+
return "0px 0px 2px 1px ".concat(activeColor, ";");
|
|
27302
27271
|
});
|
|
27303
27272
|
|
|
27304
27273
|
var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
@@ -27392,9 +27361,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27392
27361
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27393
27362
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27394
27363
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27395
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel
|
|
27396
|
-
_ref2$required = _ref2.required,
|
|
27397
|
-
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
27364
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
|
|
27398
27365
|
var buttonBorder = {
|
|
27399
27366
|
onFocused: {
|
|
27400
27367
|
borderColor: themeValues.activeColor,
|
|
@@ -27454,8 +27421,6 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27454
27421
|
type: "radio",
|
|
27455
27422
|
id: "radio-".concat(name),
|
|
27456
27423
|
disabled: disabled,
|
|
27457
|
-
required: required,
|
|
27458
|
-
"aria-required": required,
|
|
27459
27424
|
onClick: toggleRadio,
|
|
27460
27425
|
"aria-describedby": ariaDescribedBy,
|
|
27461
27426
|
tabIndex: "-1"
|
|
@@ -38148,9 +38113,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38148
38113
|
field = _ref.field,
|
|
38149
38114
|
fieldActions = _ref.fieldActions,
|
|
38150
38115
|
showErrors = _ref.showErrors,
|
|
38151
|
-
countryCode = _ref.countryCode
|
|
38152
|
-
_ref$isRequired = _ref.isRequired,
|
|
38153
|
-
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
38116
|
+
countryCode = _ref.countryCode;
|
|
38154
38117
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
38155
38118
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
38156
38119
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -38160,8 +38123,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38160
38123
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
38161
38124
|
errorMessages: errorMessages,
|
|
38162
38125
|
showErrors: showErrors,
|
|
38163
|
-
autocompleteValue: "address-level1"
|
|
38164
|
-
isRequired: isRequired
|
|
38126
|
+
autocompleteValue: "address-level1"
|
|
38165
38127
|
});
|
|
38166
38128
|
};
|
|
38167
38129
|
|
|
@@ -39487,7 +39449,6 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39487
39449
|
labelTextWhenNoError: "Country",
|
|
39488
39450
|
errorMessages: countryErrorMessages,
|
|
39489
39451
|
field: fields.country,
|
|
39490
|
-
isRequired: true,
|
|
39491
39452
|
onChange: function onChange(value) {
|
|
39492
39453
|
actions.fields.country.set(value); // temporary measure to not dirty fields until
|
|
39493
39454
|
// we can write a reset function for fields
|
|
@@ -39512,8 +39473,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39512
39473
|
return e.key === "Enter" && handleSubmit(e);
|
|
39513
39474
|
},
|
|
39514
39475
|
autocompleteValue: "address-line1",
|
|
39515
|
-
dataQa: "Address"
|
|
39516
|
-
isRequired: true
|
|
39476
|
+
dataQa: "Address"
|
|
39517
39477
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39518
39478
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
39519
39479
|
field: fields.street2,
|
|
@@ -39523,8 +39483,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39523
39483
|
return e.key === "Enter" && handleSubmit(e);
|
|
39524
39484
|
},
|
|
39525
39485
|
autocompleteValue: "address-line2",
|
|
39526
|
-
dataQa: "Address Line 2"
|
|
39527
|
-
isRequired: false
|
|
39486
|
+
dataQa: "Address Line 2"
|
|
39528
39487
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39529
39488
|
labelTextWhenNoError: "City",
|
|
39530
39489
|
errorMessages: cityErrorMessages,
|
|
@@ -39535,8 +39494,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39535
39494
|
return e.key === "Enter" && handleSubmit(e);
|
|
39536
39495
|
},
|
|
39537
39496
|
autocompleteValue: "address-level2",
|
|
39538
|
-
dataQa: "City"
|
|
39539
|
-
isRequired: true
|
|
39497
|
+
dataQa: "City"
|
|
39540
39498
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
39541
39499
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
39542
39500
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -39547,8 +39505,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39547
39505
|
onKeyDown: function onKeyDown(e) {
|
|
39548
39506
|
return e.key === "Enter" && handleSubmit(e);
|
|
39549
39507
|
},
|
|
39550
|
-
dataQa: "State or Province"
|
|
39551
|
-
isRequired: true
|
|
39508
|
+
dataQa: "State or Province"
|
|
39552
39509
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39553
39510
|
isNum: isUS,
|
|
39554
39511
|
formatter: isUS ? zipFormat : null,
|
|
@@ -39561,8 +39518,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39561
39518
|
return e.key === "Enter" && handleSubmit(e);
|
|
39562
39519
|
},
|
|
39563
39520
|
autocompleteValue: "postal-code",
|
|
39564
|
-
dataQa: "Zip code"
|
|
39565
|
-
isRequired: true
|
|
39521
|
+
dataQa: "Zip code"
|
|
39566
39522
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
39567
39523
|
name: "address checkbox",
|
|
39568
39524
|
title: "Save address to wallet",
|
|
@@ -48029,8 +47985,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48029
47985
|
onKeyDown: function onKeyDown(e) {
|
|
48030
47986
|
return e.key === "Enter" && handleSubmit(e);
|
|
48031
47987
|
},
|
|
48032
|
-
autocompleteValue: "name"
|
|
48033
|
-
isRequired: true
|
|
47988
|
+
autocompleteValue: "name"
|
|
48034
47989
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48035
47990
|
labelTextWhenNoError: "Routing number",
|
|
48036
47991
|
dataQa: "Routing number",
|
|
@@ -48052,8 +48007,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48052
48007
|
},
|
|
48053
48008
|
onKeyDown: function onKeyDown(e) {
|
|
48054
48009
|
return e.key === "Enter" && handleSubmit(e);
|
|
48055
|
-
}
|
|
48056
|
-
isRequired: true
|
|
48010
|
+
}
|
|
48057
48011
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48058
48012
|
labelTextWhenNoError: "Confirm routing number",
|
|
48059
48013
|
dataQa: "Confirm routing number",
|
|
@@ -48064,7 +48018,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48064
48018
|
onKeyDown: function onKeyDown(e) {
|
|
48065
48019
|
return e.key === "Enter" && handleSubmit(e);
|
|
48066
48020
|
},
|
|
48067
|
-
isRequired: true,
|
|
48068
48021
|
isNum: true
|
|
48069
48022
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48070
48023
|
labelTextWhenNoError: "Account number",
|
|
@@ -48073,7 +48026,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48073
48026
|
field: fields.accountNumber,
|
|
48074
48027
|
fieldActions: actions.fields.accountNumber,
|
|
48075
48028
|
showErrors: showErrors,
|
|
48076
|
-
isRequired: true,
|
|
48077
48029
|
isNum: true,
|
|
48078
48030
|
helperModal: function helperModal() {
|
|
48079
48031
|
return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
|
|
@@ -48092,7 +48044,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48092
48044
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48093
48045
|
labelTextWhenNoError: "Confirm account number",
|
|
48094
48046
|
dataQa: "Confirm account number",
|
|
48095
|
-
isRequired: true,
|
|
48096
48047
|
errorMessages: confirmAccountNumberErrors,
|
|
48097
48048
|
field: fields.confirmAccountNumber,
|
|
48098
48049
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48103,7 +48054,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48103
48054
|
isNum: true
|
|
48104
48055
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48105
48056
|
labelTextWhenNoError: "Account type",
|
|
48106
|
-
isRequired: true,
|
|
48107
48057
|
dataQa: "Account type",
|
|
48108
48058
|
options: [{
|
|
48109
48059
|
text: "Select account type",
|
|
@@ -48234,7 +48184,6 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48234
48184
|
"aria-label": "Card payment"
|
|
48235
48185
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React__default.createElement(CountryDropdown, {
|
|
48236
48186
|
labelTextWhenNoError: "Country",
|
|
48237
|
-
isRequired: true,
|
|
48238
48187
|
errorMessages: countryErrorMessages,
|
|
48239
48188
|
field: fields.country,
|
|
48240
48189
|
onChange: function onChange(value) {
|
|
@@ -48257,10 +48206,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48257
48206
|
onKeyDown: function onKeyDown(e) {
|
|
48258
48207
|
return e.key === "Enter" && handleSubmit(e);
|
|
48259
48208
|
},
|
|
48260
|
-
autocompleteValue: "cc-name"
|
|
48261
|
-
isRequired: true
|
|
48209
|
+
autocompleteValue: "cc-name"
|
|
48262
48210
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48263
|
-
isRequired: true,
|
|
48264
48211
|
labelTextWhenNoError: "Credit card number",
|
|
48265
48212
|
dataQa: "Credit card number",
|
|
48266
48213
|
errorMessages: creditCardNumberErrors,
|
|
@@ -48290,8 +48237,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48290
48237
|
isNum: true,
|
|
48291
48238
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48292
48239
|
,
|
|
48293
|
-
autocompleteValue: "cc-exp"
|
|
48294
|
-
isRequired: true
|
|
48240
|
+
autocompleteValue: "cc-exp"
|
|
48295
48241
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48296
48242
|
labelTextWhenNoError: "CVV",
|
|
48297
48243
|
dataQa: "CVV",
|
|
@@ -48304,8 +48250,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48304
48250
|
onKeyDown: function onKeyDown(e) {
|
|
48305
48251
|
return e.key === "Enter" && handleSubmit(e);
|
|
48306
48252
|
},
|
|
48307
|
-
autocompleteValue: "cc-csc"
|
|
48308
|
-
isRequired: true
|
|
48253
|
+
autocompleteValue: "cc-csc"
|
|
48309
48254
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48310
48255
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48311
48256
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48321,8 +48266,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48321
48266
|
onKeyDown: function onKeyDown(e) {
|
|
48322
48267
|
return e.key === "Enter" && handleSubmit(e);
|
|
48323
48268
|
},
|
|
48324
|
-
autocompleteValue: "billing postal-code"
|
|
48325
|
-
isRequired: true
|
|
48269
|
+
autocompleteValue: "billing postal-code"
|
|
48326
48270
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48327
48271
|
childGap: "4px",
|
|
48328
48272
|
align: "center"
|
|
@@ -48570,7 +48514,7 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
|
|
|
48570
48514
|
var DefaultHeading = styled__default.div.withConfig({
|
|
48571
48515
|
displayName: "RadioGroup__DefaultHeading",
|
|
48572
48516
|
componentId: "sc-7lqrl8-0"
|
|
48573
|
-
})(["font-size:0.875rem;color:", "
|
|
48517
|
+
})(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
|
|
48574
48518
|
var StyledFieldset = styled__default.fieldset.withConfig({
|
|
48575
48519
|
displayName: "RadioGroup__StyledFieldset",
|
|
48576
48520
|
componentId: "sc-7lqrl8-1"
|
|
@@ -48791,8 +48735,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48791
48735
|
toggleRadio: section.disabled ? noop : function () {
|
|
48792
48736
|
return toggleOpenSection(section.id);
|
|
48793
48737
|
},
|
|
48794
|
-
tabIndex: "-1"
|
|
48795
|
-
required: section === null || section === void 0 ? void 0 : section.required
|
|
48738
|
+
tabIndex: "-1"
|
|
48796
48739
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48797
48740
|
align: "center"
|
|
48798
48741
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|