@thecb/components 9.2.4-beta.9 → 9.2.4
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 +81 -45
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +81 -45
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -0
- package/src/components/atoms/dropdown/Dropdown.js +8 -5
- package/src/components/atoms/form-layouts/FormInput.js +3 -0
- package/src/components/atoms/form-select/FormSelect.js +3 -1
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +3 -1
- package/src/components/molecules/address-form/AddressForm.js +5 -0
- package/src/components/molecules/email-form/EmailForm.js +3 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +6 -0
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +5 -0
- package/src/components/molecules/phone-form/PhoneForm.js +3 -1
- package/src/components/molecules/radio-section/RadioSection.js +7 -3
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +2 -3
package/dist/index.cjs.js
CHANGED
|
@@ -23799,7 +23799,9 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
23799
23799
|
_ref13$smoothScroll = _ref13.smoothScroll,
|
|
23800
23800
|
smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
|
|
23801
23801
|
_ref13$ariaInvalid = _ref13.ariaInvalid,
|
|
23802
|
-
ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid
|
|
23802
|
+
ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
|
|
23803
|
+
_ref13$isRequired = _ref13.isRequired,
|
|
23804
|
+
isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
|
|
23803
23805
|
|
|
23804
23806
|
var _useState = React.useState(""),
|
|
23805
23807
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -23992,11 +23994,13 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
23992
23994
|
clearTimeout(timer);
|
|
23993
23995
|
setTimer(setTimeout(function () {
|
|
23994
23996
|
return setInputValue("");
|
|
23995
|
-
},
|
|
23997
|
+
}, 20000));
|
|
23996
23998
|
}
|
|
23997
23999
|
|
|
23998
24000
|
setFilteredOptions(options.filter(function (option) {
|
|
23999
|
-
|
|
24001
|
+
var _option$value, _option$value$toLower, _option$text, _option$text$toLowerC;
|
|
24002
|
+
|
|
24003
|
+
return (option === null || option === void 0 ? void 0 : (_option$value = option.value) === null || _option$value === void 0 ? void 0 : (_option$value$toLower = _option$value.toLowerCase()) === null || _option$value$toLower === void 0 ? void 0 : _option$value$toLower.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0 || ((_option$text = option.text) === null || _option$text === void 0 ? void 0 : (_option$text$toLowerC = _option$text.toLowerCase()) === null || _option$text$toLowerC === void 0 ? void 0 : _option$text$toLowerC.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0;
|
|
24000
24004
|
}));
|
|
24001
24005
|
}, [inputValue]);
|
|
24002
24006
|
React.useEffect(function () {
|
|
@@ -24070,7 +24074,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24070
24074
|
},
|
|
24071
24075
|
padding: "12px",
|
|
24072
24076
|
placeholder: getSelection(),
|
|
24073
|
-
required: options.required,
|
|
24077
|
+
required: options.required || isRequired,
|
|
24074
24078
|
role: "combobox",
|
|
24075
24079
|
themeValues: themeValues,
|
|
24076
24080
|
title: hasTitles ? getSelection() : null,
|
|
@@ -24238,7 +24242,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24238
24242
|
_ref$dataQa = _ref.dataQa,
|
|
24239
24243
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
24240
24244
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
24241
|
-
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions
|
|
24245
|
+
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
|
|
24246
|
+
_ref$isRequired = _ref.isRequired,
|
|
24247
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
24242
24248
|
|
|
24243
24249
|
var _useState = React.useState(false),
|
|
24244
24250
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24300,7 +24306,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24300
24306
|
},
|
|
24301
24307
|
disabled: disabled,
|
|
24302
24308
|
autocompleteValue: autocompleteValue,
|
|
24303
|
-
smoothScroll: smoothScroll
|
|
24309
|
+
smoothScroll: smoothScroll,
|
|
24310
|
+
isRequired: isRequired
|
|
24304
24311
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24305
24312
|
direction: "row",
|
|
24306
24313
|
justify: "space-between"
|
|
@@ -25071,6 +25078,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25071
25078
|
fieldActions = _ref.fieldActions,
|
|
25072
25079
|
showErrors = _ref.showErrors,
|
|
25073
25080
|
onChange = _ref.onChange,
|
|
25081
|
+
_ref$isRequired = _ref.isRequired,
|
|
25082
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
|
|
25074
25083
|
_ref$dataQa = _ref.dataQa,
|
|
25075
25084
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
25076
25085
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -25082,7 +25091,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25082
25091
|
errorMessages: errorMessages,
|
|
25083
25092
|
showErrors: showErrors,
|
|
25084
25093
|
onChange: onChange,
|
|
25085
|
-
autocompleteValue: "country-name"
|
|
25094
|
+
autocompleteValue: "country-name",
|
|
25095
|
+
isRequired: isRequired
|
|
25086
25096
|
});
|
|
25087
25097
|
};
|
|
25088
25098
|
|
|
@@ -25929,7 +25939,7 @@ var fallbackValues$k = {
|
|
|
25929
25939
|
};
|
|
25930
25940
|
|
|
25931
25941
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
25932
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
|
|
25942
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
25933
25943
|
var InputField = styled__default.input.withConfig({
|
|
25934
25944
|
displayName: "FormInput__InputField",
|
|
25935
25945
|
componentId: "sc-l094r1-0"
|
|
@@ -26016,6 +26026,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26016
26026
|
removeFromValue = _ref15.removeFromValue,
|
|
26017
26027
|
_ref15$dataQa = _ref15.dataQa,
|
|
26018
26028
|
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
26029
|
+
_ref15$isRequired = _ref15.isRequired,
|
|
26030
|
+
isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
|
|
26019
26031
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
26020
26032
|
|
|
26021
26033
|
var _useState = React.useState(false),
|
|
@@ -26102,7 +26114,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26102
26114
|
$customHeight: customHeight,
|
|
26103
26115
|
$extraStyles: extraStyles,
|
|
26104
26116
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26105
|
-
autoComplete: autocompleteValue
|
|
26117
|
+
autoComplete: autocompleteValue,
|
|
26118
|
+
required: isRequired
|
|
26106
26119
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26107
26120
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26108
26121
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26121,7 +26134,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26121
26134
|
$customHeight: customHeight,
|
|
26122
26135
|
$extraStyles: extraStyles,
|
|
26123
26136
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26124
|
-
autoComplete: autocompleteValue
|
|
26137
|
+
autoComplete: autocompleteValue,
|
|
26138
|
+
required: isRequired
|
|
26125
26139
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26126
26140
|
direction: "row",
|
|
26127
26141
|
justify: "space-between",
|
|
@@ -27340,7 +27354,6 @@ var fallbackValues$v = {
|
|
|
27340
27354
|
inactiveColor: inactiveColor
|
|
27341
27355
|
};
|
|
27342
27356
|
|
|
27343
|
-
var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel", "isRequired"];
|
|
27344
27357
|
var HiddenRadioButton = styled__default.input.withConfig({
|
|
27345
27358
|
displayName: "RadioButton__HiddenRadioButton",
|
|
27346
27359
|
componentId: "sc-1jed2i-0"
|
|
@@ -27366,9 +27379,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27366
27379
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27367
27380
|
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27368
27381
|
_ref2$isRequired = _ref2.isRequired,
|
|
27369
|
-
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired
|
|
27370
|
-
rest = _objectWithoutProperties(_ref2, _excluded$w);
|
|
27371
|
-
|
|
27382
|
+
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
|
|
27372
27383
|
var buttonBorder = {
|
|
27373
27384
|
onFocused: {
|
|
27374
27385
|
borderColor: themeValues.activeColor,
|
|
@@ -27411,7 +27422,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27411
27422
|
width: "0px"
|
|
27412
27423
|
}
|
|
27413
27424
|
};
|
|
27414
|
-
var extraProps =
|
|
27425
|
+
var extraProps = {};
|
|
27415
27426
|
|
|
27416
27427
|
if (ariaLabelledBy && ariaLabelledBy.length) {
|
|
27417
27428
|
extraProps["aria-labelledby"] = ariaLabelledBy;
|
|
@@ -38121,7 +38132,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38121
38132
|
field = _ref.field,
|
|
38122
38133
|
fieldActions = _ref.fieldActions,
|
|
38123
38134
|
showErrors = _ref.showErrors,
|
|
38124
|
-
countryCode = _ref.countryCode
|
|
38135
|
+
countryCode = _ref.countryCode,
|
|
38136
|
+
_ref$isRequired = _ref.isRequired,
|
|
38137
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
38125
38138
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
38126
38139
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
38127
38140
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -38131,7 +38144,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38131
38144
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
38132
38145
|
errorMessages: errorMessages,
|
|
38133
38146
|
showErrors: showErrors,
|
|
38134
|
-
autocompleteValue: "address-level1"
|
|
38147
|
+
autocompleteValue: "address-level1",
|
|
38148
|
+
isRequired: isRequired
|
|
38135
38149
|
});
|
|
38136
38150
|
};
|
|
38137
38151
|
|
|
@@ -38700,7 +38714,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38700
38714
|
return extraStyles;
|
|
38701
38715
|
});
|
|
38702
38716
|
|
|
38703
|
-
var _excluded$
|
|
38717
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38704
38718
|
|
|
38705
38719
|
var TableRow = function TableRow(_ref) {
|
|
38706
38720
|
var children = _ref.children,
|
|
@@ -38710,7 +38724,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38710
38724
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38711
38725
|
onClick = _ref.onClick,
|
|
38712
38726
|
themeValues = _ref.themeValues,
|
|
38713
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38727
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38714
38728
|
|
|
38715
38729
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38716
38730
|
onClick: onClick,
|
|
@@ -39470,7 +39484,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39470
39484
|
}
|
|
39471
39485
|
},
|
|
39472
39486
|
showErrors: showErrors,
|
|
39473
|
-
dataQa: "Country"
|
|
39487
|
+
dataQa: "Country",
|
|
39488
|
+
isRequired: true
|
|
39474
39489
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39475
39490
|
labelTextWhenNoError: "Address",
|
|
39476
39491
|
errorMessages: street1ErrorMessages,
|
|
@@ -39481,7 +39496,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39481
39496
|
return e.key === "Enter" && handleSubmit(e);
|
|
39482
39497
|
},
|
|
39483
39498
|
autocompleteValue: "address-line1",
|
|
39484
|
-
dataQa: "Address"
|
|
39499
|
+
dataQa: "Address",
|
|
39500
|
+
isRequired: true
|
|
39485
39501
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39486
39502
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
39487
39503
|
field: fields.street2,
|
|
@@ -39502,7 +39518,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39502
39518
|
return e.key === "Enter" && handleSubmit(e);
|
|
39503
39519
|
},
|
|
39504
39520
|
autocompleteValue: "address-level2",
|
|
39505
|
-
dataQa: "City"
|
|
39521
|
+
dataQa: "City",
|
|
39522
|
+
isRequired: true
|
|
39506
39523
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
39507
39524
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
39508
39525
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -39513,7 +39530,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39513
39530
|
onKeyDown: function onKeyDown(e) {
|
|
39514
39531
|
return e.key === "Enter" && handleSubmit(e);
|
|
39515
39532
|
},
|
|
39516
|
-
dataQa: "State or Province"
|
|
39533
|
+
dataQa: "State or Province",
|
|
39534
|
+
isRequired: true
|
|
39517
39535
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39518
39536
|
isNum: isUS,
|
|
39519
39537
|
formatter: isUS ? zipFormat : null,
|
|
@@ -39526,7 +39544,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39526
39544
|
return e.key === "Enter" && handleSubmit(e);
|
|
39527
39545
|
},
|
|
39528
39546
|
autocompleteValue: "postal-code",
|
|
39529
|
-
dataQa: "Zip code"
|
|
39547
|
+
dataQa: "Zip code",
|
|
39548
|
+
isRequired: true
|
|
39530
39549
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
39531
39550
|
name: "address checkbox",
|
|
39532
39551
|
title: "Save address to wallet",
|
|
@@ -40429,7 +40448,9 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40429
40448
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40430
40449
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40431
40450
|
saveToWallet = _ref.saveToWallet,
|
|
40432
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
40451
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
40452
|
+
_ref$isRequired = _ref.isRequired,
|
|
40453
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
40433
40454
|
|
|
40434
40455
|
if (clearOnDismount) {
|
|
40435
40456
|
React.useEffect(function () {
|
|
@@ -40458,7 +40479,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40458
40479
|
},
|
|
40459
40480
|
isEmail: true,
|
|
40460
40481
|
autocompleteValue: "email",
|
|
40461
|
-
dataQa: "Email address"
|
|
40482
|
+
dataQa: "Email address",
|
|
40483
|
+
isRequired: isRequired
|
|
40462
40484
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40463
40485
|
name: "email checkbox",
|
|
40464
40486
|
title: "Save email address to wallet",
|
|
@@ -47267,7 +47289,7 @@ var fallbackValues$N = {
|
|
|
47267
47289
|
labeledAmountTotal: labeledAmountTotal
|
|
47268
47290
|
};
|
|
47269
47291
|
|
|
47270
|
-
var _excluded$
|
|
47292
|
+
var _excluded$x = ["amount"],
|
|
47271
47293
|
_excluded2$1 = ["amount"];
|
|
47272
47294
|
|
|
47273
47295
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -47512,7 +47534,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47512
47534
|
return fee.amount > 0;
|
|
47513
47535
|
}).map(function (_ref5) {
|
|
47514
47536
|
var amount = _ref5.amount,
|
|
47515
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47537
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
47516
47538
|
|
|
47517
47539
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47518
47540
|
amount: displayCurrency(amount)
|
|
@@ -47915,12 +47937,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47915
47937
|
}, errorMessage))))));
|
|
47916
47938
|
};
|
|
47917
47939
|
|
|
47918
|
-
var _excluded$
|
|
47940
|
+
var _excluded$y = ["version"];
|
|
47919
47941
|
|
|
47920
47942
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
47921
47943
|
var _ref$version = _ref.version,
|
|
47922
47944
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
47923
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47945
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
47924
47946
|
|
|
47925
47947
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
47926
47948
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -47993,7 +48015,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47993
48015
|
onKeyDown: function onKeyDown(e) {
|
|
47994
48016
|
return e.key === "Enter" && handleSubmit(e);
|
|
47995
48017
|
},
|
|
47996
|
-
autocompleteValue: "name"
|
|
48018
|
+
autocompleteValue: "name",
|
|
48019
|
+
isRequired: true
|
|
47997
48020
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
47998
48021
|
labelTextWhenNoError: "Routing number",
|
|
47999
48022
|
dataQa: "Routing number",
|
|
@@ -48015,7 +48038,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48015
48038
|
},
|
|
48016
48039
|
onKeyDown: function onKeyDown(e) {
|
|
48017
48040
|
return e.key === "Enter" && handleSubmit(e);
|
|
48018
|
-
}
|
|
48041
|
+
},
|
|
48042
|
+
isRequired: true
|
|
48019
48043
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48020
48044
|
labelTextWhenNoError: "Confirm routing number",
|
|
48021
48045
|
dataQa: "Confirm routing number",
|
|
@@ -48026,7 +48050,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48026
48050
|
onKeyDown: function onKeyDown(e) {
|
|
48027
48051
|
return e.key === "Enter" && handleSubmit(e);
|
|
48028
48052
|
},
|
|
48029
|
-
isNum: true
|
|
48053
|
+
isNum: true,
|
|
48054
|
+
isRequired: true
|
|
48030
48055
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48031
48056
|
labelTextWhenNoError: "Account number",
|
|
48032
48057
|
dataQa: "Account number",
|
|
@@ -48048,7 +48073,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48048
48073
|
},
|
|
48049
48074
|
onKeyDown: function onKeyDown(e) {
|
|
48050
48075
|
return e.key === "Enter" && handleSubmit(e);
|
|
48051
|
-
}
|
|
48076
|
+
},
|
|
48077
|
+
isRequired: true
|
|
48052
48078
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48053
48079
|
labelTextWhenNoError: "Confirm account number",
|
|
48054
48080
|
dataQa: "Confirm account number",
|
|
@@ -48059,6 +48085,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48059
48085
|
onKeyDown: function onKeyDown(e) {
|
|
48060
48086
|
return e.key === "Enter" && handleSubmit(e);
|
|
48061
48087
|
},
|
|
48088
|
+
isRequired: true,
|
|
48062
48089
|
isNum: true
|
|
48063
48090
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48064
48091
|
labelTextWhenNoError: "Account type",
|
|
@@ -48076,7 +48103,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48076
48103
|
fieldActions: actions.fields.accountType,
|
|
48077
48104
|
showErrors: showErrors,
|
|
48078
48105
|
errorMessages: accountTypeErrors,
|
|
48079
|
-
field: fields.accountType
|
|
48106
|
+
field: fields.accountType,
|
|
48107
|
+
isRequired: true
|
|
48080
48108
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48081
48109
|
title: "Save as Default Payment Method",
|
|
48082
48110
|
dataQa: "default-payment-ach",
|
|
@@ -48214,7 +48242,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48214
48242
|
onKeyDown: function onKeyDown(e) {
|
|
48215
48243
|
return e.key === "Enter" && handleSubmit(e);
|
|
48216
48244
|
},
|
|
48217
|
-
autocompleteValue: "cc-name"
|
|
48245
|
+
autocompleteValue: "cc-name",
|
|
48246
|
+
isRequired: true
|
|
48218
48247
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48219
48248
|
labelTextWhenNoError: "Credit card number",
|
|
48220
48249
|
dataQa: "Credit card number",
|
|
@@ -48227,7 +48256,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48227
48256
|
return e.key === "Enter" && handleSubmit(e);
|
|
48228
48257
|
},
|
|
48229
48258
|
isNum: true,
|
|
48230
|
-
autocompleteValue: "cc-number"
|
|
48259
|
+
autocompleteValue: "cc-number",
|
|
48260
|
+
isRequired: true
|
|
48231
48261
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
48232
48262
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48233
48263
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48245,7 +48275,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48245
48275
|
isNum: true,
|
|
48246
48276
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48247
48277
|
,
|
|
48248
|
-
autocompleteValue: "cc-exp"
|
|
48278
|
+
autocompleteValue: "cc-exp",
|
|
48279
|
+
isRequired: true
|
|
48249
48280
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48250
48281
|
labelTextWhenNoError: "CVV",
|
|
48251
48282
|
dataQa: "CVV",
|
|
@@ -48258,7 +48289,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48258
48289
|
onKeyDown: function onKeyDown(e) {
|
|
48259
48290
|
return e.key === "Enter" && handleSubmit(e);
|
|
48260
48291
|
},
|
|
48261
|
-
autocompleteValue: "cc-csc"
|
|
48292
|
+
autocompleteValue: "cc-csc",
|
|
48293
|
+
isRequired: true
|
|
48262
48294
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48263
48295
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48264
48296
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48274,7 +48306,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48274
48306
|
onKeyDown: function onKeyDown(e) {
|
|
48275
48307
|
return e.key === "Enter" && handleSubmit(e);
|
|
48276
48308
|
},
|
|
48277
|
-
autocompleteValue: "billing postal-code"
|
|
48309
|
+
autocompleteValue: "billing postal-code",
|
|
48310
|
+
isRequired: true
|
|
48278
48311
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48279
48312
|
childGap: "4px",
|
|
48280
48313
|
align: "center"
|
|
@@ -48467,7 +48500,9 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48467
48500
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48468
48501
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48469
48502
|
saveToWallet = _ref.saveToWallet,
|
|
48470
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
48503
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
48504
|
+
_ref$isRequired = _ref.isRequired,
|
|
48505
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
48471
48506
|
|
|
48472
48507
|
if (clearOnDismount) {
|
|
48473
48508
|
React.useEffect(function () {
|
|
@@ -48494,7 +48529,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48494
48529
|
},
|
|
48495
48530
|
autocompleteValue: "tel-national",
|
|
48496
48531
|
dataQa: "Phone number",
|
|
48497
|
-
isNum: true
|
|
48532
|
+
isNum: true,
|
|
48533
|
+
isRequired: isRequired
|
|
48498
48534
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48499
48535
|
name: "phone checkbox",
|
|
48500
48536
|
title: "Save phone number to wallet",
|
|
@@ -48685,7 +48721,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48685
48721
|
extraStyles: containerStyles
|
|
48686
48722
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48687
48723
|
childGap: "0",
|
|
48688
|
-
role: "radiogroup",
|
|
48724
|
+
"aria-role": "radiogroup",
|
|
48689
48725
|
"aria-required": isSectionRequired
|
|
48690
48726
|
}, sections.filter(function (section) {
|
|
48691
48727
|
return !section.hidden;
|
|
@@ -48709,7 +48745,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48709
48745
|
role: "radio",
|
|
48710
48746
|
"aria-checked": openSection === section.id,
|
|
48711
48747
|
"aria-disabled": section.disabled,
|
|
48712
|
-
"aria-required":
|
|
48748
|
+
"aria-required": section === null || section === void 0 ? void 0 : section.required
|
|
48713
48749
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48714
48750
|
childGap: "0"
|
|
48715
48751
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48748,7 +48784,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48748
48784
|
return toggleOpenSection(section.id);
|
|
48749
48785
|
},
|
|
48750
48786
|
tabIndex: "-1",
|
|
48751
|
-
isRequired:
|
|
48787
|
+
isRequired: section === null || section === void 0 ? void 0 : section.required
|
|
48752
48788
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48753
48789
|
align: "center"
|
|
48754
48790
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|