@thecb/components 9.2.4-beta.9 → 9.2.7-beta.0
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 +93 -52
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +93 -52
- 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 +6 -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/account-and-routing-modal/AccountAndRoutingModal.js +1 -0
- package/src/components/molecules/address-form/AddressForm.js +5 -0
- package/src/components/molecules/email-form/EmailForm.js +3 -1
- package/src/components/molecules/modal/Modal.js +5 -0
- 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/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +1 -0
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,11 @@ 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
|
-
return option.value.toLowerCase().
|
|
24001
|
+
return option.value.toLowerCase().match(inputValue.toLowerCase()) || option.text.toLowerCase().match(inputValue.toLowerCase());
|
|
24000
24002
|
}));
|
|
24001
24003
|
}, [inputValue]);
|
|
24002
24004
|
React.useEffect(function () {
|
|
@@ -24070,7 +24072,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24070
24072
|
},
|
|
24071
24073
|
padding: "12px",
|
|
24072
24074
|
placeholder: getSelection(),
|
|
24073
|
-
required: options.required,
|
|
24075
|
+
required: options.required || isRequired,
|
|
24074
24076
|
role: "combobox",
|
|
24075
24077
|
themeValues: themeValues,
|
|
24076
24078
|
title: hasTitles ? getSelection() : null,
|
|
@@ -24238,7 +24240,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24238
24240
|
_ref$dataQa = _ref.dataQa,
|
|
24239
24241
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
24240
24242
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
24241
|
-
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions
|
|
24243
|
+
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
|
|
24244
|
+
_ref$isRequired = _ref.isRequired,
|
|
24245
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
24242
24246
|
|
|
24243
24247
|
var _useState = React.useState(false),
|
|
24244
24248
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24300,7 +24304,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24300
24304
|
},
|
|
24301
24305
|
disabled: disabled,
|
|
24302
24306
|
autocompleteValue: autocompleteValue,
|
|
24303
|
-
smoothScroll: smoothScroll
|
|
24307
|
+
smoothScroll: smoothScroll,
|
|
24308
|
+
isRequired: isRequired
|
|
24304
24309
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24305
24310
|
direction: "row",
|
|
24306
24311
|
justify: "space-between"
|
|
@@ -25071,6 +25076,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25071
25076
|
fieldActions = _ref.fieldActions,
|
|
25072
25077
|
showErrors = _ref.showErrors,
|
|
25073
25078
|
onChange = _ref.onChange,
|
|
25079
|
+
_ref$isRequired = _ref.isRequired,
|
|
25080
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
|
|
25074
25081
|
_ref$dataQa = _ref.dataQa,
|
|
25075
25082
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
25076
25083
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -25082,7 +25089,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25082
25089
|
errorMessages: errorMessages,
|
|
25083
25090
|
showErrors: showErrors,
|
|
25084
25091
|
onChange: onChange,
|
|
25085
|
-
autocompleteValue: "country-name"
|
|
25092
|
+
autocompleteValue: "country-name",
|
|
25093
|
+
isRequired: isRequired
|
|
25086
25094
|
});
|
|
25087
25095
|
};
|
|
25088
25096
|
|
|
@@ -25929,7 +25937,7 @@ var fallbackValues$k = {
|
|
|
25929
25937
|
};
|
|
25930
25938
|
|
|
25931
25939
|
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"];
|
|
25940
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
25933
25941
|
var InputField = styled__default.input.withConfig({
|
|
25934
25942
|
displayName: "FormInput__InputField",
|
|
25935
25943
|
componentId: "sc-l094r1-0"
|
|
@@ -26016,6 +26024,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26016
26024
|
removeFromValue = _ref15.removeFromValue,
|
|
26017
26025
|
_ref15$dataQa = _ref15.dataQa,
|
|
26018
26026
|
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
26027
|
+
_ref15$isRequired = _ref15.isRequired,
|
|
26028
|
+
isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
|
|
26019
26029
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
26020
26030
|
|
|
26021
26031
|
var _useState = React.useState(false),
|
|
@@ -26102,7 +26112,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26102
26112
|
$customHeight: customHeight,
|
|
26103
26113
|
$extraStyles: extraStyles,
|
|
26104
26114
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26105
|
-
autoComplete: autocompleteValue
|
|
26115
|
+
autoComplete: autocompleteValue,
|
|
26116
|
+
required: isRequired
|
|
26106
26117
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26107
26118
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26108
26119
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26121,7 +26132,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26121
26132
|
$customHeight: customHeight,
|
|
26122
26133
|
$extraStyles: extraStyles,
|
|
26123
26134
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26124
|
-
autoComplete: autocompleteValue
|
|
26135
|
+
autoComplete: autocompleteValue,
|
|
26136
|
+
required: isRequired
|
|
26125
26137
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26126
26138
|
direction: "row",
|
|
26127
26139
|
justify: "space-between",
|
|
@@ -27340,7 +27352,6 @@ var fallbackValues$v = {
|
|
|
27340
27352
|
inactiveColor: inactiveColor
|
|
27341
27353
|
};
|
|
27342
27354
|
|
|
27343
|
-
var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel", "isRequired"];
|
|
27344
27355
|
var HiddenRadioButton = styled__default.input.withConfig({
|
|
27345
27356
|
displayName: "RadioButton__HiddenRadioButton",
|
|
27346
27357
|
componentId: "sc-1jed2i-0"
|
|
@@ -27366,9 +27377,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27366
27377
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27367
27378
|
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27368
27379
|
_ref2$isRequired = _ref2.isRequired,
|
|
27369
|
-
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired
|
|
27370
|
-
rest = _objectWithoutProperties(_ref2, _excluded$w);
|
|
27371
|
-
|
|
27380
|
+
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
|
|
27372
27381
|
var buttonBorder = {
|
|
27373
27382
|
onFocused: {
|
|
27374
27383
|
borderColor: themeValues.activeColor,
|
|
@@ -27411,7 +27420,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27411
27420
|
width: "0px"
|
|
27412
27421
|
}
|
|
27413
27422
|
};
|
|
27414
|
-
var extraProps =
|
|
27423
|
+
var extraProps = {};
|
|
27415
27424
|
|
|
27416
27425
|
if (ariaLabelledBy && ariaLabelledBy.length) {
|
|
27417
27426
|
extraProps["aria-labelledby"] = ariaLabelledBy;
|
|
@@ -38121,7 +38130,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38121
38130
|
field = _ref.field,
|
|
38122
38131
|
fieldActions = _ref.fieldActions,
|
|
38123
38132
|
showErrors = _ref.showErrors,
|
|
38124
|
-
countryCode = _ref.countryCode
|
|
38133
|
+
countryCode = _ref.countryCode,
|
|
38134
|
+
_ref$isRequired = _ref.isRequired,
|
|
38135
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
38125
38136
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
38126
38137
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
38127
38138
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -38131,7 +38142,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38131
38142
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
38132
38143
|
errorMessages: errorMessages,
|
|
38133
38144
|
showErrors: showErrors,
|
|
38134
|
-
autocompleteValue: "address-level1"
|
|
38145
|
+
autocompleteValue: "address-level1",
|
|
38146
|
+
isRequired: isRequired
|
|
38135
38147
|
});
|
|
38136
38148
|
};
|
|
38137
38149
|
|
|
@@ -38700,7 +38712,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38700
38712
|
return extraStyles;
|
|
38701
38713
|
});
|
|
38702
38714
|
|
|
38703
|
-
var _excluded$
|
|
38715
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38704
38716
|
|
|
38705
38717
|
var TableRow = function TableRow(_ref) {
|
|
38706
38718
|
var children = _ref.children,
|
|
@@ -38710,7 +38722,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38710
38722
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38711
38723
|
onClick = _ref.onClick,
|
|
38712
38724
|
themeValues = _ref.themeValues,
|
|
38713
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38725
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38714
38726
|
|
|
38715
38727
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38716
38728
|
onClick: onClick,
|
|
@@ -39470,7 +39482,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39470
39482
|
}
|
|
39471
39483
|
},
|
|
39472
39484
|
showErrors: showErrors,
|
|
39473
|
-
dataQa: "Country"
|
|
39485
|
+
dataQa: "Country",
|
|
39486
|
+
isRequired: true
|
|
39474
39487
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39475
39488
|
labelTextWhenNoError: "Address",
|
|
39476
39489
|
errorMessages: street1ErrorMessages,
|
|
@@ -39481,7 +39494,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39481
39494
|
return e.key === "Enter" && handleSubmit(e);
|
|
39482
39495
|
},
|
|
39483
39496
|
autocompleteValue: "address-line1",
|
|
39484
|
-
dataQa: "Address"
|
|
39497
|
+
dataQa: "Address",
|
|
39498
|
+
isRequired: true
|
|
39485
39499
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39486
39500
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
39487
39501
|
field: fields.street2,
|
|
@@ -39502,7 +39516,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39502
39516
|
return e.key === "Enter" && handleSubmit(e);
|
|
39503
39517
|
},
|
|
39504
39518
|
autocompleteValue: "address-level2",
|
|
39505
|
-
dataQa: "City"
|
|
39519
|
+
dataQa: "City",
|
|
39520
|
+
isRequired: true
|
|
39506
39521
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
39507
39522
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
39508
39523
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -39513,7 +39528,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39513
39528
|
onKeyDown: function onKeyDown(e) {
|
|
39514
39529
|
return e.key === "Enter" && handleSubmit(e);
|
|
39515
39530
|
},
|
|
39516
|
-
dataQa: "State or Province"
|
|
39531
|
+
dataQa: "State or Province",
|
|
39532
|
+
isRequired: true
|
|
39517
39533
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39518
39534
|
isNum: isUS,
|
|
39519
39535
|
formatter: isUS ? zipFormat : null,
|
|
@@ -39526,7 +39542,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39526
39542
|
return e.key === "Enter" && handleSubmit(e);
|
|
39527
39543
|
},
|
|
39528
39544
|
autocompleteValue: "postal-code",
|
|
39529
|
-
dataQa: "Zip code"
|
|
39545
|
+
dataQa: "Zip code",
|
|
39546
|
+
isRequired: true
|
|
39530
39547
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
39531
39548
|
name: "address checkbox",
|
|
39532
39549
|
title: "Save address to wallet",
|
|
@@ -40429,7 +40446,9 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40429
40446
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40430
40447
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40431
40448
|
saveToWallet = _ref.saveToWallet,
|
|
40432
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
40449
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
40450
|
+
_ref$isRequired = _ref.isRequired,
|
|
40451
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
40433
40452
|
|
|
40434
40453
|
if (clearOnDismount) {
|
|
40435
40454
|
React.useEffect(function () {
|
|
@@ -40458,7 +40477,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40458
40477
|
},
|
|
40459
40478
|
isEmail: true,
|
|
40460
40479
|
autocompleteValue: "email",
|
|
40461
|
-
dataQa: "Email address"
|
|
40480
|
+
dataQa: "Email address",
|
|
40481
|
+
isRequired: isRequired
|
|
40462
40482
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40463
40483
|
name: "email checkbox",
|
|
40464
40484
|
title: "Save email address to wallet",
|
|
@@ -45757,7 +45777,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45757
45777
|
dialogStyle: {
|
|
45758
45778
|
width: customWidth || "615px"
|
|
45759
45779
|
},
|
|
45760
|
-
underlayClickExits: underlayClickExits
|
|
45780
|
+
underlayClickExits: underlayClickExits,
|
|
45781
|
+
"aria-modal": true
|
|
45761
45782
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45762
45783
|
padding: "0",
|
|
45763
45784
|
borderRadius: "2px",
|
|
@@ -45816,7 +45837,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45816
45837
|
isLoading: isLoading,
|
|
45817
45838
|
disabled: isContinueActionDisabled,
|
|
45818
45839
|
extraStyles: buttonExtraStyles,
|
|
45819
|
-
className: "modal-continue-button"
|
|
45840
|
+
className: "modal-continue-button",
|
|
45841
|
+
role: "button"
|
|
45820
45842
|
}))) : /*#__PURE__*/React__default.createElement(Stack, {
|
|
45821
45843
|
childGap: "1rem",
|
|
45822
45844
|
direction: "row",
|
|
@@ -45827,7 +45849,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45827
45849
|
text: cancelButtonText,
|
|
45828
45850
|
dataQa: cancelButtonText,
|
|
45829
45851
|
extraStyles: buttonExtraStyles,
|
|
45830
|
-
className: "modal-cancel-button"
|
|
45852
|
+
className: "modal-cancel-button",
|
|
45853
|
+
role: "button"
|
|
45831
45854
|
}), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
45832
45855
|
variant: useDangerButton ? "danger" : "primary",
|
|
45833
45856
|
action: continueAction,
|
|
@@ -45836,7 +45859,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45836
45859
|
isLoading: isLoading,
|
|
45837
45860
|
disabled: isContinueActionDisabled,
|
|
45838
45861
|
extraStyles: buttonExtraStyles,
|
|
45839
|
-
className: "modal-continue-button"
|
|
45862
|
+
className: "modal-continue-button",
|
|
45863
|
+
role: "button"
|
|
45840
45864
|
}))) : /*#__PURE__*/React__default.createElement(Box, {
|
|
45841
45865
|
padding: "0.5rem"
|
|
45842
45866
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -45845,7 +45869,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45845
45869
|
text: closeButtonText,
|
|
45846
45870
|
dataQa: closeButtonText,
|
|
45847
45871
|
extraStyles: buttonExtraStyles,
|
|
45848
|
-
className: "modal-close-button"
|
|
45872
|
+
className: "modal-close-button",
|
|
45873
|
+
role: "button"
|
|
45849
45874
|
}))))))))), children);
|
|
45850
45875
|
};
|
|
45851
45876
|
|
|
@@ -47267,7 +47292,7 @@ var fallbackValues$N = {
|
|
|
47267
47292
|
labeledAmountTotal: labeledAmountTotal
|
|
47268
47293
|
};
|
|
47269
47294
|
|
|
47270
|
-
var _excluded$
|
|
47295
|
+
var _excluded$x = ["amount"],
|
|
47271
47296
|
_excluded2$1 = ["amount"];
|
|
47272
47297
|
|
|
47273
47298
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -47512,7 +47537,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47512
47537
|
return fee.amount > 0;
|
|
47513
47538
|
}).map(function (_ref5) {
|
|
47514
47539
|
var amount = _ref5.amount,
|
|
47515
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47540
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
47516
47541
|
|
|
47517
47542
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47518
47543
|
amount: displayCurrency(amount)
|
|
@@ -47690,7 +47715,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47690
47715
|
color: themeValues.linkColor,
|
|
47691
47716
|
weight: themeValues.fontWeight,
|
|
47692
47717
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47693
|
-
extraStyles: "cursor: pointer;"
|
|
47718
|
+
extraStyles: "cursor: pointer;",
|
|
47719
|
+
role: "button"
|
|
47694
47720
|
}, link));
|
|
47695
47721
|
};
|
|
47696
47722
|
|
|
@@ -47786,7 +47812,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47786
47812
|
color: themeValues.linkColor,
|
|
47787
47813
|
weight: themeValues.fontWeight,
|
|
47788
47814
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47789
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47815
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
|
|
47816
|
+
role: "button"
|
|
47790
47817
|
}, link));
|
|
47791
47818
|
};
|
|
47792
47819
|
|
|
@@ -47915,12 +47942,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47915
47942
|
}, errorMessage))))));
|
|
47916
47943
|
};
|
|
47917
47944
|
|
|
47918
|
-
var _excluded$
|
|
47945
|
+
var _excluded$y = ["version"];
|
|
47919
47946
|
|
|
47920
47947
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
47921
47948
|
var _ref$version = _ref.version,
|
|
47922
47949
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
47923
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47950
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
47924
47951
|
|
|
47925
47952
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
47926
47953
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -47993,7 +48020,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47993
48020
|
onKeyDown: function onKeyDown(e) {
|
|
47994
48021
|
return e.key === "Enter" && handleSubmit(e);
|
|
47995
48022
|
},
|
|
47996
|
-
autocompleteValue: "name"
|
|
48023
|
+
autocompleteValue: "name",
|
|
48024
|
+
isRequired: true
|
|
47997
48025
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
47998
48026
|
labelTextWhenNoError: "Routing number",
|
|
47999
48027
|
dataQa: "Routing number",
|
|
@@ -48015,7 +48043,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48015
48043
|
},
|
|
48016
48044
|
onKeyDown: function onKeyDown(e) {
|
|
48017
48045
|
return e.key === "Enter" && handleSubmit(e);
|
|
48018
|
-
}
|
|
48046
|
+
},
|
|
48047
|
+
isRequired: true
|
|
48019
48048
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48020
48049
|
labelTextWhenNoError: "Confirm routing number",
|
|
48021
48050
|
dataQa: "Confirm routing number",
|
|
@@ -48026,7 +48055,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48026
48055
|
onKeyDown: function onKeyDown(e) {
|
|
48027
48056
|
return e.key === "Enter" && handleSubmit(e);
|
|
48028
48057
|
},
|
|
48029
|
-
isNum: true
|
|
48058
|
+
isNum: true,
|
|
48059
|
+
isRequired: true
|
|
48030
48060
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48031
48061
|
labelTextWhenNoError: "Account number",
|
|
48032
48062
|
dataQa: "Account number",
|
|
@@ -48048,7 +48078,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48048
48078
|
},
|
|
48049
48079
|
onKeyDown: function onKeyDown(e) {
|
|
48050
48080
|
return e.key === "Enter" && handleSubmit(e);
|
|
48051
|
-
}
|
|
48081
|
+
},
|
|
48082
|
+
isRequired: true
|
|
48052
48083
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48053
48084
|
labelTextWhenNoError: "Confirm account number",
|
|
48054
48085
|
dataQa: "Confirm account number",
|
|
@@ -48059,6 +48090,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48059
48090
|
onKeyDown: function onKeyDown(e) {
|
|
48060
48091
|
return e.key === "Enter" && handleSubmit(e);
|
|
48061
48092
|
},
|
|
48093
|
+
isRequired: true,
|
|
48062
48094
|
isNum: true
|
|
48063
48095
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48064
48096
|
labelTextWhenNoError: "Account type",
|
|
@@ -48076,7 +48108,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48076
48108
|
fieldActions: actions.fields.accountType,
|
|
48077
48109
|
showErrors: showErrors,
|
|
48078
48110
|
errorMessages: accountTypeErrors,
|
|
48079
|
-
field: fields.accountType
|
|
48111
|
+
field: fields.accountType,
|
|
48112
|
+
isRequired: true
|
|
48080
48113
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48081
48114
|
title: "Save as Default Payment Method",
|
|
48082
48115
|
dataQa: "default-payment-ach",
|
|
@@ -48214,7 +48247,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48214
48247
|
onKeyDown: function onKeyDown(e) {
|
|
48215
48248
|
return e.key === "Enter" && handleSubmit(e);
|
|
48216
48249
|
},
|
|
48217
|
-
autocompleteValue: "cc-name"
|
|
48250
|
+
autocompleteValue: "cc-name",
|
|
48251
|
+
isRequired: true
|
|
48218
48252
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48219
48253
|
labelTextWhenNoError: "Credit card number",
|
|
48220
48254
|
dataQa: "Credit card number",
|
|
@@ -48227,7 +48261,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48227
48261
|
return e.key === "Enter" && handleSubmit(e);
|
|
48228
48262
|
},
|
|
48229
48263
|
isNum: true,
|
|
48230
|
-
autocompleteValue: "cc-number"
|
|
48264
|
+
autocompleteValue: "cc-number",
|
|
48265
|
+
isRequired: true
|
|
48231
48266
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
48232
48267
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48233
48268
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48245,7 +48280,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48245
48280
|
isNum: true,
|
|
48246
48281
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48247
48282
|
,
|
|
48248
|
-
autocompleteValue: "cc-exp"
|
|
48283
|
+
autocompleteValue: "cc-exp",
|
|
48284
|
+
isRequired: true
|
|
48249
48285
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48250
48286
|
labelTextWhenNoError: "CVV",
|
|
48251
48287
|
dataQa: "CVV",
|
|
@@ -48258,7 +48294,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48258
48294
|
onKeyDown: function onKeyDown(e) {
|
|
48259
48295
|
return e.key === "Enter" && handleSubmit(e);
|
|
48260
48296
|
},
|
|
48261
|
-
autocompleteValue: "cc-csc"
|
|
48297
|
+
autocompleteValue: "cc-csc",
|
|
48298
|
+
isRequired: true
|
|
48262
48299
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48263
48300
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48264
48301
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48274,7 +48311,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48274
48311
|
onKeyDown: function onKeyDown(e) {
|
|
48275
48312
|
return e.key === "Enter" && handleSubmit(e);
|
|
48276
48313
|
},
|
|
48277
|
-
autocompleteValue: "billing postal-code"
|
|
48314
|
+
autocompleteValue: "billing postal-code",
|
|
48315
|
+
isRequired: true
|
|
48278
48316
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48279
48317
|
childGap: "4px",
|
|
48280
48318
|
align: "center"
|
|
@@ -48467,7 +48505,9 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48467
48505
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48468
48506
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48469
48507
|
saveToWallet = _ref.saveToWallet,
|
|
48470
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
48508
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
48509
|
+
_ref$isRequired = _ref.isRequired,
|
|
48510
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
48471
48511
|
|
|
48472
48512
|
if (clearOnDismount) {
|
|
48473
48513
|
React.useEffect(function () {
|
|
@@ -48494,7 +48534,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48494
48534
|
},
|
|
48495
48535
|
autocompleteValue: "tel-national",
|
|
48496
48536
|
dataQa: "Phone number",
|
|
48497
|
-
isNum: true
|
|
48537
|
+
isNum: true,
|
|
48538
|
+
isRequired: isRequired
|
|
48498
48539
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48499
48540
|
name: "phone checkbox",
|
|
48500
48541
|
title: "Save phone number to wallet",
|
|
@@ -48685,7 +48726,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48685
48726
|
extraStyles: containerStyles
|
|
48686
48727
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48687
48728
|
childGap: "0",
|
|
48688
|
-
role: "radiogroup",
|
|
48729
|
+
"aria-role": "radiogroup",
|
|
48689
48730
|
"aria-required": isSectionRequired
|
|
48690
48731
|
}, sections.filter(function (section) {
|
|
48691
48732
|
return !section.hidden;
|
|
@@ -48709,7 +48750,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48709
48750
|
role: "radio",
|
|
48710
48751
|
"aria-checked": openSection === section.id,
|
|
48711
48752
|
"aria-disabled": section.disabled,
|
|
48712
|
-
"aria-required":
|
|
48753
|
+
"aria-required": section === null || section === void 0 ? void 0 : section.required
|
|
48713
48754
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48714
48755
|
childGap: "0"
|
|
48715
48756
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48748,7 +48789,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48748
48789
|
return toggleOpenSection(section.id);
|
|
48749
48790
|
},
|
|
48750
48791
|
tabIndex: "-1",
|
|
48751
|
-
isRequired:
|
|
48792
|
+
isRequired: section === null || section === void 0 ? void 0 : section.required
|
|
48752
48793
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48753
48794
|
align: "center"
|
|
48754
48795
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|