@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.esm.js CHANGED
@@ -23791,7 +23791,9 @@ var Dropdown = function Dropdown(_ref13) {
23791
23791
  _ref13$smoothScroll = _ref13.smoothScroll,
23792
23792
  smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23793
23793
  _ref13$ariaInvalid = _ref13.ariaInvalid,
23794
- ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid;
23794
+ ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
23795
+ _ref13$isRequired = _ref13.isRequired,
23796
+ isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
23795
23797
 
23796
23798
  var _useState = useState(""),
23797
23799
  _useState2 = _slicedToArray(_useState, 2),
@@ -23984,11 +23986,11 @@ var Dropdown = function Dropdown(_ref13) {
23984
23986
  clearTimeout(timer);
23985
23987
  setTimer(setTimeout(function () {
23986
23988
  return setInputValue("");
23987
- }, 3000));
23989
+ }, 20000));
23988
23990
  }
23989
23991
 
23990
23992
  setFilteredOptions(options.filter(function (option) {
23991
- return option.value.toLowerCase().startsWith(inputValue.toLowerCase()) || option.text.toLowerCase().startsWith(inputValue.toLowerCase());
23993
+ return option.value.toLowerCase().match(inputValue.toLowerCase()) || option.text.toLowerCase().match(inputValue.toLowerCase());
23992
23994
  }));
23993
23995
  }, [inputValue]);
23994
23996
  useEffect$1(function () {
@@ -24062,7 +24064,7 @@ var Dropdown = function Dropdown(_ref13) {
24062
24064
  },
24063
24065
  padding: "12px",
24064
24066
  placeholder: getSelection(),
24065
- required: options.required,
24067
+ required: options.required || isRequired,
24066
24068
  role: "combobox",
24067
24069
  themeValues: themeValues,
24068
24070
  title: hasTitles ? getSelection() : null,
@@ -24230,7 +24232,9 @@ var FormSelect = function FormSelect(_ref) {
24230
24232
  _ref$dataQa = _ref.dataQa,
24231
24233
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24232
24234
  _ref$widthFitOptions = _ref.widthFitOptions,
24233
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24235
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24236
+ _ref$isRequired = _ref.isRequired,
24237
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24234
24238
 
24235
24239
  var _useState = useState(false),
24236
24240
  _useState2 = _slicedToArray(_useState, 2),
@@ -24292,7 +24296,8 @@ var FormSelect = function FormSelect(_ref) {
24292
24296
  },
24293
24297
  disabled: disabled,
24294
24298
  autocompleteValue: autocompleteValue,
24295
- smoothScroll: smoothScroll
24299
+ smoothScroll: smoothScroll,
24300
+ isRequired: isRequired
24296
24301
  }), /*#__PURE__*/React.createElement(Stack, {
24297
24302
  direction: "row",
24298
24303
  justify: "space-between"
@@ -25063,6 +25068,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25063
25068
  fieldActions = _ref.fieldActions,
25064
25069
  showErrors = _ref.showErrors,
25065
25070
  onChange = _ref.onChange,
25071
+ _ref$isRequired = _ref.isRequired,
25072
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
25066
25073
  _ref$dataQa = _ref.dataQa,
25067
25074
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25068
25075
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -25074,7 +25081,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25074
25081
  errorMessages: errorMessages,
25075
25082
  showErrors: showErrors,
25076
25083
  onChange: onChange,
25077
- autocompleteValue: "country-name"
25084
+ autocompleteValue: "country-name",
25085
+ isRequired: isRequired
25078
25086
  });
25079
25087
  };
25080
25088
 
@@ -25921,7 +25929,7 @@ var fallbackValues$k = {
25921
25929
  };
25922
25930
 
25923
25931
  var _excluded$p = ["showErrors", "themeValues"],
25924
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25932
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25925
25933
  var InputField = styled.input.withConfig({
25926
25934
  displayName: "FormInput__InputField",
25927
25935
  componentId: "sc-l094r1-0"
@@ -26008,6 +26016,8 @@ var FormInput = function FormInput(_ref15) {
26008
26016
  removeFromValue = _ref15.removeFromValue,
26009
26017
  _ref15$dataQa = _ref15.dataQa,
26010
26018
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26019
+ _ref15$isRequired = _ref15.isRequired,
26020
+ isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26011
26021
  props = _objectWithoutProperties(_ref15, _excluded2);
26012
26022
 
26013
26023
  var _useState = useState(false),
@@ -26094,7 +26104,8 @@ var FormInput = function FormInput(_ref15) {
26094
26104
  $customHeight: customHeight,
26095
26105
  $extraStyles: extraStyles,
26096
26106
  "data-qa": dataQa || labelTextWhenNoError,
26097
- autoComplete: autocompleteValue
26107
+ autoComplete: autocompleteValue,
26108
+ required: isRequired
26098
26109
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26099
26110
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26100
26111
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26113,7 +26124,8 @@ var FormInput = function FormInput(_ref15) {
26113
26124
  $customHeight: customHeight,
26114
26125
  $extraStyles: extraStyles,
26115
26126
  "data-qa": dataQa || labelTextWhenNoError,
26116
- autoComplete: autocompleteValue
26127
+ autoComplete: autocompleteValue,
26128
+ required: isRequired
26117
26129
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26118
26130
  direction: "row",
26119
26131
  justify: "space-between",
@@ -27332,7 +27344,6 @@ var fallbackValues$v = {
27332
27344
  inactiveColor: inactiveColor
27333
27345
  };
27334
27346
 
27335
- var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel", "isRequired"];
27336
27347
  var HiddenRadioButton = styled.input.withConfig({
27337
27348
  displayName: "RadioButton__HiddenRadioButton",
27338
27349
  componentId: "sc-1jed2i-0"
@@ -27358,9 +27369,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27358
27369
  _ref2$ariaLabel = _ref2.ariaLabel,
27359
27370
  ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27360
27371
  _ref2$isRequired = _ref2.isRequired,
27361
- isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired,
27362
- rest = _objectWithoutProperties(_ref2, _excluded$w);
27363
-
27372
+ isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27364
27373
  var buttonBorder = {
27365
27374
  onFocused: {
27366
27375
  borderColor: themeValues.activeColor,
@@ -27403,7 +27412,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27403
27412
  width: "0px"
27404
27413
  }
27405
27414
  };
27406
- var extraProps = rest !== null && rest !== void 0 && rest.length ? rest : {};
27415
+ var extraProps = {};
27407
27416
 
27408
27417
  if (ariaLabelledBy && ariaLabelledBy.length) {
27409
27418
  extraProps["aria-labelledby"] = ariaLabelledBy;
@@ -38113,7 +38122,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38113
38122
  field = _ref.field,
38114
38123
  fieldActions = _ref.fieldActions,
38115
38124
  showErrors = _ref.showErrors,
38116
- countryCode = _ref.countryCode;
38125
+ countryCode = _ref.countryCode,
38126
+ _ref$isRequired = _ref.isRequired,
38127
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38117
38128
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38118
38129
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38119
38130
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38123,7 +38134,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38123
38134
  labelTextWhenNoError: labelTextWhenNoError,
38124
38135
  errorMessages: errorMessages,
38125
38136
  showErrors: showErrors,
38126
- autocompleteValue: "address-level1"
38137
+ autocompleteValue: "address-level1",
38138
+ isRequired: isRequired
38127
38139
  });
38128
38140
  };
38129
38141
 
@@ -38692,7 +38704,7 @@ var TableRowWrapper = styled.tr.withConfig({
38692
38704
  return extraStyles;
38693
38705
  });
38694
38706
 
38695
- var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38707
+ var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38696
38708
 
38697
38709
  var TableRow = function TableRow(_ref) {
38698
38710
  var children = _ref.children,
@@ -38702,7 +38714,7 @@ var TableRow = function TableRow(_ref) {
38702
38714
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
38703
38715
  onClick = _ref.onClick,
38704
38716
  themeValues = _ref.themeValues,
38705
- props = _objectWithoutProperties(_ref, _excluded$x);
38717
+ props = _objectWithoutProperties(_ref, _excluded$w);
38706
38718
 
38707
38719
  return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
38708
38720
  onClick: onClick,
@@ -39462,7 +39474,8 @@ var AddressForm = function AddressForm(_ref) {
39462
39474
  }
39463
39475
  },
39464
39476
  showErrors: showErrors,
39465
- dataQa: "Country"
39477
+ dataQa: "Country",
39478
+ isRequired: true
39466
39479
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39467
39480
  labelTextWhenNoError: "Address",
39468
39481
  errorMessages: street1ErrorMessages,
@@ -39473,7 +39486,8 @@ var AddressForm = function AddressForm(_ref) {
39473
39486
  return e.key === "Enter" && handleSubmit(e);
39474
39487
  },
39475
39488
  autocompleteValue: "address-line1",
39476
- dataQa: "Address"
39489
+ dataQa: "Address",
39490
+ isRequired: true
39477
39491
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39478
39492
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39479
39493
  field: fields.street2,
@@ -39494,7 +39508,8 @@ var AddressForm = function AddressForm(_ref) {
39494
39508
  return e.key === "Enter" && handleSubmit(e);
39495
39509
  },
39496
39510
  autocompleteValue: "address-level2",
39497
- dataQa: "City"
39511
+ dataQa: "City",
39512
+ isRequired: true
39498
39513
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39499
39514
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39500
39515
  errorMessages: stateProvinceErrorMessages,
@@ -39505,7 +39520,8 @@ var AddressForm = function AddressForm(_ref) {
39505
39520
  onKeyDown: function onKeyDown(e) {
39506
39521
  return e.key === "Enter" && handleSubmit(e);
39507
39522
  },
39508
- dataQa: "State or Province"
39523
+ dataQa: "State or Province",
39524
+ isRequired: true
39509
39525
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39510
39526
  isNum: isUS,
39511
39527
  formatter: isUS ? zipFormat : null,
@@ -39518,7 +39534,8 @@ var AddressForm = function AddressForm(_ref) {
39518
39534
  return e.key === "Enter" && handleSubmit(e);
39519
39535
  },
39520
39536
  autocompleteValue: "postal-code",
39521
- dataQa: "Zip code"
39537
+ dataQa: "Zip code",
39538
+ isRequired: true
39522
39539
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39523
39540
  name: "address checkbox",
39524
39541
  title: "Save address to wallet",
@@ -40421,7 +40438,9 @@ var EmailForm = function EmailForm(_ref) {
40421
40438
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40422
40439
  showWalletCheckbox = _ref.showWalletCheckbox,
40423
40440
  saveToWallet = _ref.saveToWallet,
40424
- walletCheckboxMarked = _ref.walletCheckboxMarked;
40441
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
40442
+ _ref$isRequired = _ref.isRequired,
40443
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
40425
40444
 
40426
40445
  if (clearOnDismount) {
40427
40446
  useEffect$1(function () {
@@ -40450,7 +40469,8 @@ var EmailForm = function EmailForm(_ref) {
40450
40469
  },
40451
40470
  isEmail: true,
40452
40471
  autocompleteValue: "email",
40453
- dataQa: "Email address"
40472
+ dataQa: "Email address",
40473
+ isRequired: isRequired
40454
40474
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
40455
40475
  name: "email checkbox",
40456
40476
  title: "Save email address to wallet",
@@ -45749,7 +45769,8 @@ var Modal$1 = function Modal(_ref) {
45749
45769
  dialogStyle: {
45750
45770
  width: customWidth || "615px"
45751
45771
  },
45752
- underlayClickExits: underlayClickExits
45772
+ underlayClickExits: underlayClickExits,
45773
+ "aria-modal": true
45753
45774
  }, /*#__PURE__*/React.createElement(Box, {
45754
45775
  padding: "0",
45755
45776
  borderRadius: "2px",
@@ -45808,7 +45829,8 @@ var Modal$1 = function Modal(_ref) {
45808
45829
  isLoading: isLoading,
45809
45830
  disabled: isContinueActionDisabled,
45810
45831
  extraStyles: buttonExtraStyles,
45811
- className: "modal-continue-button"
45832
+ className: "modal-continue-button",
45833
+ role: "button"
45812
45834
  }))) : /*#__PURE__*/React.createElement(Stack, {
45813
45835
  childGap: "1rem",
45814
45836
  direction: "row",
@@ -45819,7 +45841,8 @@ var Modal$1 = function Modal(_ref) {
45819
45841
  text: cancelButtonText,
45820
45842
  dataQa: cancelButtonText,
45821
45843
  extraStyles: buttonExtraStyles,
45822
- className: "modal-cancel-button"
45844
+ className: "modal-cancel-button",
45845
+ role: "button"
45823
45846
  }), /*#__PURE__*/React.createElement(ButtonWithAction, {
45824
45847
  variant: useDangerButton ? "danger" : "primary",
45825
45848
  action: continueAction,
@@ -45828,7 +45851,8 @@ var Modal$1 = function Modal(_ref) {
45828
45851
  isLoading: isLoading,
45829
45852
  disabled: isContinueActionDisabled,
45830
45853
  extraStyles: buttonExtraStyles,
45831
- className: "modal-continue-button"
45854
+ className: "modal-continue-button",
45855
+ role: "button"
45832
45856
  }))) : /*#__PURE__*/React.createElement(Box, {
45833
45857
  padding: "0.5rem"
45834
45858
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
@@ -45837,7 +45861,8 @@ var Modal$1 = function Modal(_ref) {
45837
45861
  text: closeButtonText,
45838
45862
  dataQa: closeButtonText,
45839
45863
  extraStyles: buttonExtraStyles,
45840
- className: "modal-close-button"
45864
+ className: "modal-close-button",
45865
+ role: "button"
45841
45866
  }))))))))), children);
45842
45867
  };
45843
45868
 
@@ -47259,7 +47284,7 @@ var fallbackValues$N = {
47259
47284
  labeledAmountTotal: labeledAmountTotal
47260
47285
  };
47261
47286
 
47262
- var _excluded$y = ["amount"],
47287
+ var _excluded$x = ["amount"],
47263
47288
  _excluded2$1 = ["amount"];
47264
47289
 
47265
47290
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
@@ -47504,7 +47529,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47504
47529
  return fee.amount > 0;
47505
47530
  }).map(function (_ref5) {
47506
47531
  var amount = _ref5.amount,
47507
- rest = _objectWithoutProperties(_ref5, _excluded$y);
47532
+ rest = _objectWithoutProperties(_ref5, _excluded$x);
47508
47533
 
47509
47534
  return _objectSpread2(_objectSpread2({}, rest), {}, {
47510
47535
  amount: displayCurrency(amount)
@@ -47682,7 +47707,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47682
47707
  color: themeValues.linkColor,
47683
47708
  weight: themeValues.fontWeight,
47684
47709
  hoverStyles: themeValues.modalLinkHoverFocus,
47685
- extraStyles: "cursor: pointer;"
47710
+ extraStyles: "cursor: pointer;",
47711
+ role: "button"
47686
47712
  }, link));
47687
47713
  };
47688
47714
 
@@ -47778,7 +47804,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47778
47804
  color: themeValues.linkColor,
47779
47805
  weight: themeValues.fontWeight,
47780
47806
  hoverStyles: themeValues.modalLinkHoverFocus,
47781
- extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
47807
+ extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
47808
+ role: "button"
47782
47809
  }, link));
47783
47810
  };
47784
47811
 
@@ -47907,12 +47934,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47907
47934
  }, errorMessage))))));
47908
47935
  };
47909
47936
 
47910
- var _excluded$z = ["version"];
47937
+ var _excluded$y = ["version"];
47911
47938
 
47912
47939
  var TermsAndConditions = function TermsAndConditions(_ref) {
47913
47940
  var _ref$version = _ref.version,
47914
47941
  version = _ref$version === void 0 ? "v1" : _ref$version,
47915
- rest = _objectWithoutProperties(_ref, _excluded$z);
47942
+ rest = _objectWithoutProperties(_ref, _excluded$y);
47916
47943
 
47917
47944
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
47918
47945
  return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
@@ -47985,7 +48012,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47985
48012
  onKeyDown: function onKeyDown(e) {
47986
48013
  return e.key === "Enter" && handleSubmit(e);
47987
48014
  },
47988
- autocompleteValue: "name"
48015
+ autocompleteValue: "name",
48016
+ isRequired: true
47989
48017
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47990
48018
  labelTextWhenNoError: "Routing number",
47991
48019
  dataQa: "Routing number",
@@ -48007,7 +48035,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48007
48035
  },
48008
48036
  onKeyDown: function onKeyDown(e) {
48009
48037
  return e.key === "Enter" && handleSubmit(e);
48010
- }
48038
+ },
48039
+ isRequired: true
48011
48040
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48012
48041
  labelTextWhenNoError: "Confirm routing number",
48013
48042
  dataQa: "Confirm routing number",
@@ -48018,7 +48047,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48018
48047
  onKeyDown: function onKeyDown(e) {
48019
48048
  return e.key === "Enter" && handleSubmit(e);
48020
48049
  },
48021
- isNum: true
48050
+ isNum: true,
48051
+ isRequired: true
48022
48052
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48023
48053
  labelTextWhenNoError: "Account number",
48024
48054
  dataQa: "Account number",
@@ -48040,7 +48070,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48040
48070
  },
48041
48071
  onKeyDown: function onKeyDown(e) {
48042
48072
  return e.key === "Enter" && handleSubmit(e);
48043
- }
48073
+ },
48074
+ isRequired: true
48044
48075
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48045
48076
  labelTextWhenNoError: "Confirm account number",
48046
48077
  dataQa: "Confirm account number",
@@ -48051,6 +48082,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48051
48082
  onKeyDown: function onKeyDown(e) {
48052
48083
  return e.key === "Enter" && handleSubmit(e);
48053
48084
  },
48085
+ isRequired: true,
48054
48086
  isNum: true
48055
48087
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48056
48088
  labelTextWhenNoError: "Account type",
@@ -48068,7 +48100,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48068
48100
  fieldActions: actions.fields.accountType,
48069
48101
  showErrors: showErrors,
48070
48102
  errorMessages: accountTypeErrors,
48071
- field: fields.accountType
48103
+ field: fields.accountType,
48104
+ isRequired: true
48072
48105
  }), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
48073
48106
  title: "Save as Default Payment Method",
48074
48107
  dataQa: "default-payment-ach",
@@ -48206,7 +48239,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48206
48239
  onKeyDown: function onKeyDown(e) {
48207
48240
  return e.key === "Enter" && handleSubmit(e);
48208
48241
  },
48209
- autocompleteValue: "cc-name"
48242
+ autocompleteValue: "cc-name",
48243
+ isRequired: true
48210
48244
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48211
48245
  labelTextWhenNoError: "Credit card number",
48212
48246
  dataQa: "Credit card number",
@@ -48219,7 +48253,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48219
48253
  return e.key === "Enter" && handleSubmit(e);
48220
48254
  },
48221
48255
  isNum: true,
48222
- autocompleteValue: "cc-number"
48256
+ autocompleteValue: "cc-number",
48257
+ isRequired: true
48223
48258
  }), /*#__PURE__*/React.createElement(FormInputRow, {
48224
48259
  breakpoint: isMobile ? "1000rem" : "21rem",
48225
48260
  childGap: isMobile ? "0rem" : "1rem"
@@ -48237,7 +48272,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48237
48272
  isNum: true,
48238
48273
  removeFromValue: /\// // removes "/" from browser autofill
48239
48274
  ,
48240
- autocompleteValue: "cc-exp"
48275
+ autocompleteValue: "cc-exp",
48276
+ isRequired: true
48241
48277
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48242
48278
  labelTextWhenNoError: "CVV",
48243
48279
  dataQa: "CVV",
@@ -48250,7 +48286,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48250
48286
  onKeyDown: function onKeyDown(e) {
48251
48287
  return e.key === "Enter" && handleSubmit(e);
48252
48288
  },
48253
- autocompleteValue: "cc-csc"
48289
+ autocompleteValue: "cc-csc",
48290
+ isRequired: true
48254
48291
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48255
48292
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48256
48293
  width: isMobile ? "100%" : "50%"
@@ -48266,7 +48303,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48266
48303
  onKeyDown: function onKeyDown(e) {
48267
48304
  return e.key === "Enter" && handleSubmit(e);
48268
48305
  },
48269
- autocompleteValue: "billing postal-code"
48306
+ autocompleteValue: "billing postal-code",
48307
+ isRequired: true
48270
48308
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48271
48309
  childGap: "4px",
48272
48310
  align: "center"
@@ -48459,7 +48497,9 @@ var PhoneForm = function PhoneForm(_ref) {
48459
48497
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48460
48498
  showWalletCheckbox = _ref.showWalletCheckbox,
48461
48499
  saveToWallet = _ref.saveToWallet,
48462
- walletCheckboxMarked = _ref.walletCheckboxMarked;
48500
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
48501
+ _ref$isRequired = _ref.isRequired,
48502
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48463
48503
 
48464
48504
  if (clearOnDismount) {
48465
48505
  useEffect$1(function () {
@@ -48486,7 +48526,8 @@ var PhoneForm = function PhoneForm(_ref) {
48486
48526
  },
48487
48527
  autocompleteValue: "tel-national",
48488
48528
  dataQa: "Phone number",
48489
- isNum: true
48529
+ isNum: true,
48530
+ isRequired: isRequired
48490
48531
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
48491
48532
  name: "phone checkbox",
48492
48533
  title: "Save phone number to wallet",
@@ -48677,7 +48718,7 @@ var RadioSection = function RadioSection(_ref) {
48677
48718
  extraStyles: containerStyles
48678
48719
  }, /*#__PURE__*/React.createElement(Stack, {
48679
48720
  childGap: "0",
48680
- role: "radiogroup",
48721
+ "aria-role": "radiogroup",
48681
48722
  "aria-required": isSectionRequired
48682
48723
  }, sections.filter(function (section) {
48683
48724
  return !section.hidden;
@@ -48701,7 +48742,7 @@ var RadioSection = function RadioSection(_ref) {
48701
48742
  role: "radio",
48702
48743
  "aria-checked": openSection === section.id,
48703
48744
  "aria-disabled": section.disabled,
48704
- "aria-required": !!(section !== null && section !== void 0 && section.required)
48745
+ "aria-required": section === null || section === void 0 ? void 0 : section.required
48705
48746
  }, /*#__PURE__*/React.createElement(Stack, {
48706
48747
  childGap: "0"
48707
48748
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48740,7 +48781,7 @@ var RadioSection = function RadioSection(_ref) {
48740
48781
  return toggleOpenSection(section.id);
48741
48782
  },
48742
48783
  tabIndex: "-1",
48743
- isRequired: !!(section !== null && section !== void 0 && section.required)
48784
+ isRequired: section === null || section === void 0 ? void 0 : section.required
48744
48785
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48745
48786
  align: "center"
48746
48787
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {