@thecb/components 9.2.5-beta.0 → 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 +95 -44
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +95 -44
- package/dist/index.esm.js.map +1 -1
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -0
- package/src/components/atoms/dropdown/Dropdown.js +3 -2
- package/src/components/atoms/form-layouts/FormInput.js +3 -0
- package/src/components/atoms/form-select/FormSelect.js +3 -1
- package/src/components/atoms/icons/.DS_Store +0 -0
- 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 +6 -2
- 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 +9 -2
- package/src/components/molecules/radio-section/RadioSection.stories.js +4 -2
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +3 -1
- 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),
|
|
@@ -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",
|
|
@@ -27363,7 +27375,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27363
27375
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27364
27376
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27365
27377
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27366
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel
|
|
27378
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27379
|
+
_ref2$isRequired = _ref2.isRequired,
|
|
27380
|
+
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
|
|
27367
27381
|
var buttonBorder = {
|
|
27368
27382
|
onFocused: {
|
|
27369
27383
|
borderColor: themeValues.activeColor,
|
|
@@ -27425,7 +27439,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27425
27439
|
disabled: disabled,
|
|
27426
27440
|
onClick: toggleRadio,
|
|
27427
27441
|
"aria-describedby": ariaDescribedBy,
|
|
27428
|
-
tabIndex: "-1"
|
|
27442
|
+
tabIndex: "-1",
|
|
27443
|
+
required: isRequired
|
|
27429
27444
|
}, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
|
|
27430
27445
|
borderWidth: "1px",
|
|
27431
27446
|
borderStyle: "solid",
|
|
@@ -38115,7 +38130,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38115
38130
|
field = _ref.field,
|
|
38116
38131
|
fieldActions = _ref.fieldActions,
|
|
38117
38132
|
showErrors = _ref.showErrors,
|
|
38118
|
-
countryCode = _ref.countryCode
|
|
38133
|
+
countryCode = _ref.countryCode,
|
|
38134
|
+
_ref$isRequired = _ref.isRequired,
|
|
38135
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
38119
38136
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
38120
38137
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
38121
38138
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -38125,7 +38142,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38125
38142
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
38126
38143
|
errorMessages: errorMessages,
|
|
38127
38144
|
showErrors: showErrors,
|
|
38128
|
-
autocompleteValue: "address-level1"
|
|
38145
|
+
autocompleteValue: "address-level1",
|
|
38146
|
+
isRequired: isRequired
|
|
38129
38147
|
});
|
|
38130
38148
|
};
|
|
38131
38149
|
|
|
@@ -39464,7 +39482,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39464
39482
|
}
|
|
39465
39483
|
},
|
|
39466
39484
|
showErrors: showErrors,
|
|
39467
|
-
dataQa: "Country"
|
|
39485
|
+
dataQa: "Country",
|
|
39486
|
+
isRequired: true
|
|
39468
39487
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39469
39488
|
labelTextWhenNoError: "Address",
|
|
39470
39489
|
errorMessages: street1ErrorMessages,
|
|
@@ -39475,7 +39494,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39475
39494
|
return e.key === "Enter" && handleSubmit(e);
|
|
39476
39495
|
},
|
|
39477
39496
|
autocompleteValue: "address-line1",
|
|
39478
|
-
dataQa: "Address"
|
|
39497
|
+
dataQa: "Address",
|
|
39498
|
+
isRequired: true
|
|
39479
39499
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39480
39500
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
39481
39501
|
field: fields.street2,
|
|
@@ -39496,7 +39516,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39496
39516
|
return e.key === "Enter" && handleSubmit(e);
|
|
39497
39517
|
},
|
|
39498
39518
|
autocompleteValue: "address-level2",
|
|
39499
|
-
dataQa: "City"
|
|
39519
|
+
dataQa: "City",
|
|
39520
|
+
isRequired: true
|
|
39500
39521
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
39501
39522
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
39502
39523
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -39507,7 +39528,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39507
39528
|
onKeyDown: function onKeyDown(e) {
|
|
39508
39529
|
return e.key === "Enter" && handleSubmit(e);
|
|
39509
39530
|
},
|
|
39510
|
-
dataQa: "State or Province"
|
|
39531
|
+
dataQa: "State or Province",
|
|
39532
|
+
isRequired: true
|
|
39511
39533
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39512
39534
|
isNum: isUS,
|
|
39513
39535
|
formatter: isUS ? zipFormat : null,
|
|
@@ -39520,7 +39542,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39520
39542
|
return e.key === "Enter" && handleSubmit(e);
|
|
39521
39543
|
},
|
|
39522
39544
|
autocompleteValue: "postal-code",
|
|
39523
|
-
dataQa: "Zip code"
|
|
39545
|
+
dataQa: "Zip code",
|
|
39546
|
+
isRequired: true
|
|
39524
39547
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
39525
39548
|
name: "address checkbox",
|
|
39526
39549
|
title: "Save address to wallet",
|
|
@@ -40423,7 +40446,9 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40423
40446
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40424
40447
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40425
40448
|
saveToWallet = _ref.saveToWallet,
|
|
40426
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
40449
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
40450
|
+
_ref$isRequired = _ref.isRequired,
|
|
40451
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
40427
40452
|
|
|
40428
40453
|
if (clearOnDismount) {
|
|
40429
40454
|
React.useEffect(function () {
|
|
@@ -40452,7 +40477,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40452
40477
|
},
|
|
40453
40478
|
isEmail: true,
|
|
40454
40479
|
autocompleteValue: "email",
|
|
40455
|
-
dataQa: "Email address"
|
|
40480
|
+
dataQa: "Email address",
|
|
40481
|
+
isRequired: isRequired
|
|
40456
40482
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40457
40483
|
name: "email checkbox",
|
|
40458
40484
|
title: "Save email address to wallet",
|
|
@@ -45749,10 +45775,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45749
45775
|
alignItems: "center"
|
|
45750
45776
|
},
|
|
45751
45777
|
dialogStyle: {
|
|
45752
|
-
width: customWidth || "615px"
|
|
45753
|
-
overflow: "auto"
|
|
45778
|
+
width: customWidth || "615px"
|
|
45754
45779
|
},
|
|
45755
|
-
underlayClickExits: underlayClickExits
|
|
45780
|
+
underlayClickExits: underlayClickExits,
|
|
45781
|
+
"aria-modal": true
|
|
45756
45782
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45757
45783
|
padding: "0",
|
|
45758
45784
|
borderRadius: "2px",
|
|
@@ -45811,7 +45837,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45811
45837
|
isLoading: isLoading,
|
|
45812
45838
|
disabled: isContinueActionDisabled,
|
|
45813
45839
|
extraStyles: buttonExtraStyles,
|
|
45814
|
-
className: "modal-continue-button"
|
|
45840
|
+
className: "modal-continue-button",
|
|
45841
|
+
role: "button"
|
|
45815
45842
|
}))) : /*#__PURE__*/React__default.createElement(Stack, {
|
|
45816
45843
|
childGap: "1rem",
|
|
45817
45844
|
direction: "row",
|
|
@@ -45822,7 +45849,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45822
45849
|
text: cancelButtonText,
|
|
45823
45850
|
dataQa: cancelButtonText,
|
|
45824
45851
|
extraStyles: buttonExtraStyles,
|
|
45825
|
-
className: "modal-cancel-button"
|
|
45852
|
+
className: "modal-cancel-button",
|
|
45853
|
+
role: "button"
|
|
45826
45854
|
}), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
45827
45855
|
variant: useDangerButton ? "danger" : "primary",
|
|
45828
45856
|
action: continueAction,
|
|
@@ -45831,7 +45859,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45831
45859
|
isLoading: isLoading,
|
|
45832
45860
|
disabled: isContinueActionDisabled,
|
|
45833
45861
|
extraStyles: buttonExtraStyles,
|
|
45834
|
-
className: "modal-continue-button"
|
|
45862
|
+
className: "modal-continue-button",
|
|
45863
|
+
role: "button"
|
|
45835
45864
|
}))) : /*#__PURE__*/React__default.createElement(Box, {
|
|
45836
45865
|
padding: "0.5rem"
|
|
45837
45866
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -45840,7 +45869,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45840
45869
|
text: closeButtonText,
|
|
45841
45870
|
dataQa: closeButtonText,
|
|
45842
45871
|
extraStyles: buttonExtraStyles,
|
|
45843
|
-
className: "modal-close-button"
|
|
45872
|
+
className: "modal-close-button",
|
|
45873
|
+
role: "button"
|
|
45844
45874
|
}))))))))), children);
|
|
45845
45875
|
};
|
|
45846
45876
|
|
|
@@ -47685,7 +47715,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47685
47715
|
color: themeValues.linkColor,
|
|
47686
47716
|
weight: themeValues.fontWeight,
|
|
47687
47717
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47688
|
-
extraStyles: "cursor: pointer;"
|
|
47718
|
+
extraStyles: "cursor: pointer;",
|
|
47719
|
+
role: "button"
|
|
47689
47720
|
}, link));
|
|
47690
47721
|
};
|
|
47691
47722
|
|
|
@@ -47781,7 +47812,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47781
47812
|
color: themeValues.linkColor,
|
|
47782
47813
|
weight: themeValues.fontWeight,
|
|
47783
47814
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47784
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47815
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
|
|
47816
|
+
role: "button"
|
|
47785
47817
|
}, link));
|
|
47786
47818
|
};
|
|
47787
47819
|
|
|
@@ -47988,7 +48020,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47988
48020
|
onKeyDown: function onKeyDown(e) {
|
|
47989
48021
|
return e.key === "Enter" && handleSubmit(e);
|
|
47990
48022
|
},
|
|
47991
|
-
autocompleteValue: "name"
|
|
48023
|
+
autocompleteValue: "name",
|
|
48024
|
+
isRequired: true
|
|
47992
48025
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
47993
48026
|
labelTextWhenNoError: "Routing number",
|
|
47994
48027
|
dataQa: "Routing number",
|
|
@@ -48010,7 +48043,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48010
48043
|
},
|
|
48011
48044
|
onKeyDown: function onKeyDown(e) {
|
|
48012
48045
|
return e.key === "Enter" && handleSubmit(e);
|
|
48013
|
-
}
|
|
48046
|
+
},
|
|
48047
|
+
isRequired: true
|
|
48014
48048
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48015
48049
|
labelTextWhenNoError: "Confirm routing number",
|
|
48016
48050
|
dataQa: "Confirm routing number",
|
|
@@ -48021,7 +48055,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48021
48055
|
onKeyDown: function onKeyDown(e) {
|
|
48022
48056
|
return e.key === "Enter" && handleSubmit(e);
|
|
48023
48057
|
},
|
|
48024
|
-
isNum: true
|
|
48058
|
+
isNum: true,
|
|
48059
|
+
isRequired: true
|
|
48025
48060
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48026
48061
|
labelTextWhenNoError: "Account number",
|
|
48027
48062
|
dataQa: "Account number",
|
|
@@ -48043,7 +48078,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48043
48078
|
},
|
|
48044
48079
|
onKeyDown: function onKeyDown(e) {
|
|
48045
48080
|
return e.key === "Enter" && handleSubmit(e);
|
|
48046
|
-
}
|
|
48081
|
+
},
|
|
48082
|
+
isRequired: true
|
|
48047
48083
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48048
48084
|
labelTextWhenNoError: "Confirm account number",
|
|
48049
48085
|
dataQa: "Confirm account number",
|
|
@@ -48054,6 +48090,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48054
48090
|
onKeyDown: function onKeyDown(e) {
|
|
48055
48091
|
return e.key === "Enter" && handleSubmit(e);
|
|
48056
48092
|
},
|
|
48093
|
+
isRequired: true,
|
|
48057
48094
|
isNum: true
|
|
48058
48095
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48059
48096
|
labelTextWhenNoError: "Account type",
|
|
@@ -48071,7 +48108,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48071
48108
|
fieldActions: actions.fields.accountType,
|
|
48072
48109
|
showErrors: showErrors,
|
|
48073
48110
|
errorMessages: accountTypeErrors,
|
|
48074
|
-
field: fields.accountType
|
|
48111
|
+
field: fields.accountType,
|
|
48112
|
+
isRequired: true
|
|
48075
48113
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48076
48114
|
title: "Save as Default Payment Method",
|
|
48077
48115
|
dataQa: "default-payment-ach",
|
|
@@ -48209,7 +48247,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48209
48247
|
onKeyDown: function onKeyDown(e) {
|
|
48210
48248
|
return e.key === "Enter" && handleSubmit(e);
|
|
48211
48249
|
},
|
|
48212
|
-
autocompleteValue: "cc-name"
|
|
48250
|
+
autocompleteValue: "cc-name",
|
|
48251
|
+
isRequired: true
|
|
48213
48252
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48214
48253
|
labelTextWhenNoError: "Credit card number",
|
|
48215
48254
|
dataQa: "Credit card number",
|
|
@@ -48222,7 +48261,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48222
48261
|
return e.key === "Enter" && handleSubmit(e);
|
|
48223
48262
|
},
|
|
48224
48263
|
isNum: true,
|
|
48225
|
-
autocompleteValue: "cc-number"
|
|
48264
|
+
autocompleteValue: "cc-number",
|
|
48265
|
+
isRequired: true
|
|
48226
48266
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
48227
48267
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48228
48268
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48240,7 +48280,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48240
48280
|
isNum: true,
|
|
48241
48281
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48242
48282
|
,
|
|
48243
|
-
autocompleteValue: "cc-exp"
|
|
48283
|
+
autocompleteValue: "cc-exp",
|
|
48284
|
+
isRequired: true
|
|
48244
48285
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48245
48286
|
labelTextWhenNoError: "CVV",
|
|
48246
48287
|
dataQa: "CVV",
|
|
@@ -48253,7 +48294,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48253
48294
|
onKeyDown: function onKeyDown(e) {
|
|
48254
48295
|
return e.key === "Enter" && handleSubmit(e);
|
|
48255
48296
|
},
|
|
48256
|
-
autocompleteValue: "cc-csc"
|
|
48297
|
+
autocompleteValue: "cc-csc",
|
|
48298
|
+
isRequired: true
|
|
48257
48299
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48258
48300
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48259
48301
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48269,7 +48311,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48269
48311
|
onKeyDown: function onKeyDown(e) {
|
|
48270
48312
|
return e.key === "Enter" && handleSubmit(e);
|
|
48271
48313
|
},
|
|
48272
|
-
autocompleteValue: "billing postal-code"
|
|
48314
|
+
autocompleteValue: "billing postal-code",
|
|
48315
|
+
isRequired: true
|
|
48273
48316
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48274
48317
|
childGap: "4px",
|
|
48275
48318
|
align: "center"
|
|
@@ -48462,7 +48505,9 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48462
48505
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48463
48506
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48464
48507
|
saveToWallet = _ref.saveToWallet,
|
|
48465
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
48508
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
48509
|
+
_ref$isRequired = _ref.isRequired,
|
|
48510
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
48466
48511
|
|
|
48467
48512
|
if (clearOnDismount) {
|
|
48468
48513
|
React.useEffect(function () {
|
|
@@ -48489,7 +48534,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48489
48534
|
},
|
|
48490
48535
|
autocompleteValue: "tel-national",
|
|
48491
48536
|
dataQa: "Phone number",
|
|
48492
|
-
isNum: true
|
|
48537
|
+
isNum: true,
|
|
48538
|
+
isRequired: isRequired
|
|
48493
48539
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48494
48540
|
name: "phone checkbox",
|
|
48495
48541
|
title: "Save phone number to wallet",
|
|
@@ -48622,7 +48668,9 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48622
48668
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48623
48669
|
_ref$containerStyles = _ref.containerStyles,
|
|
48624
48670
|
containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
|
|
48625
|
-
ariaDescribedBy = _ref.ariaDescribedBy
|
|
48671
|
+
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48672
|
+
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48673
|
+
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire;
|
|
48626
48674
|
|
|
48627
48675
|
var handleKeyDown = function handleKeyDown(id, e) {
|
|
48628
48676
|
if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
|
|
@@ -48678,7 +48726,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48678
48726
|
extraStyles: containerStyles
|
|
48679
48727
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48680
48728
|
childGap: "0",
|
|
48681
|
-
role: "radiogroup"
|
|
48729
|
+
"aria-role": "radiogroup",
|
|
48730
|
+
"aria-required": isSectionRequired
|
|
48682
48731
|
}, sections.filter(function (section) {
|
|
48683
48732
|
return !section.hidden;
|
|
48684
48733
|
}).map(function (section) {
|
|
@@ -48700,7 +48749,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48700
48749
|
extraStyles: borderStyles,
|
|
48701
48750
|
role: "radio",
|
|
48702
48751
|
"aria-checked": openSection === section.id,
|
|
48703
|
-
"aria-disabled": section.disabled
|
|
48752
|
+
"aria-disabled": section.disabled,
|
|
48753
|
+
"aria-required": section === null || section === void 0 ? void 0 : section.required
|
|
48704
48754
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48705
48755
|
childGap: "0"
|
|
48706
48756
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48738,7 +48788,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48738
48788
|
toggleRadio: section.disabled ? noop : function () {
|
|
48739
48789
|
return toggleOpenSection(section.id);
|
|
48740
48790
|
},
|
|
48741
|
-
tabIndex: "-1"
|
|
48791
|
+
tabIndex: "-1",
|
|
48792
|
+
isRequired: section === null || section === void 0 ? void 0 : section.required
|
|
48742
48793
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48743
48794
|
align: "center"
|
|
48744
48795
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|