@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.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,13 @@ 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
+ var _option$value, _option$value$toLower, _option$text, _option$text$toLowerC;
23994
+
23995
+ 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;
23992
23996
  }));
23993
23997
  }, [inputValue]);
23994
23998
  useEffect$1(function () {
@@ -24062,7 +24066,7 @@ var Dropdown = function Dropdown(_ref13) {
24062
24066
  },
24063
24067
  padding: "12px",
24064
24068
  placeholder: getSelection(),
24065
- required: options.required,
24069
+ required: options.required || isRequired,
24066
24070
  role: "combobox",
24067
24071
  themeValues: themeValues,
24068
24072
  title: hasTitles ? getSelection() : null,
@@ -24230,7 +24234,9 @@ var FormSelect = function FormSelect(_ref) {
24230
24234
  _ref$dataQa = _ref.dataQa,
24231
24235
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24232
24236
  _ref$widthFitOptions = _ref.widthFitOptions,
24233
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24237
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24238
+ _ref$isRequired = _ref.isRequired,
24239
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24234
24240
 
24235
24241
  var _useState = useState(false),
24236
24242
  _useState2 = _slicedToArray(_useState, 2),
@@ -24292,7 +24298,8 @@ var FormSelect = function FormSelect(_ref) {
24292
24298
  },
24293
24299
  disabled: disabled,
24294
24300
  autocompleteValue: autocompleteValue,
24295
- smoothScroll: smoothScroll
24301
+ smoothScroll: smoothScroll,
24302
+ isRequired: isRequired
24296
24303
  }), /*#__PURE__*/React.createElement(Stack, {
24297
24304
  direction: "row",
24298
24305
  justify: "space-between"
@@ -25063,6 +25070,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25063
25070
  fieldActions = _ref.fieldActions,
25064
25071
  showErrors = _ref.showErrors,
25065
25072
  onChange = _ref.onChange,
25073
+ _ref$isRequired = _ref.isRequired,
25074
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
25066
25075
  _ref$dataQa = _ref.dataQa,
25067
25076
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25068
25077
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -25074,7 +25083,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25074
25083
  errorMessages: errorMessages,
25075
25084
  showErrors: showErrors,
25076
25085
  onChange: onChange,
25077
- autocompleteValue: "country-name"
25086
+ autocompleteValue: "country-name",
25087
+ isRequired: isRequired
25078
25088
  });
25079
25089
  };
25080
25090
 
@@ -25921,7 +25931,7 @@ var fallbackValues$k = {
25921
25931
  };
25922
25932
 
25923
25933
  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"];
25934
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25925
25935
  var InputField = styled.input.withConfig({
25926
25936
  displayName: "FormInput__InputField",
25927
25937
  componentId: "sc-l094r1-0"
@@ -26008,6 +26018,8 @@ var FormInput = function FormInput(_ref15) {
26008
26018
  removeFromValue = _ref15.removeFromValue,
26009
26019
  _ref15$dataQa = _ref15.dataQa,
26010
26020
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26021
+ _ref15$isRequired = _ref15.isRequired,
26022
+ isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26011
26023
  props = _objectWithoutProperties(_ref15, _excluded2);
26012
26024
 
26013
26025
  var _useState = useState(false),
@@ -26094,7 +26106,8 @@ var FormInput = function FormInput(_ref15) {
26094
26106
  $customHeight: customHeight,
26095
26107
  $extraStyles: extraStyles,
26096
26108
  "data-qa": dataQa || labelTextWhenNoError,
26097
- autoComplete: autocompleteValue
26109
+ autoComplete: autocompleteValue,
26110
+ required: isRequired
26098
26111
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26099
26112
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26100
26113
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26113,7 +26126,8 @@ var FormInput = function FormInput(_ref15) {
26113
26126
  $customHeight: customHeight,
26114
26127
  $extraStyles: extraStyles,
26115
26128
  "data-qa": dataQa || labelTextWhenNoError,
26116
- autoComplete: autocompleteValue
26129
+ autoComplete: autocompleteValue,
26130
+ required: isRequired
26117
26131
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26118
26132
  direction: "row",
26119
26133
  justify: "space-between",
@@ -27332,7 +27346,6 @@ var fallbackValues$v = {
27332
27346
  inactiveColor: inactiveColor
27333
27347
  };
27334
27348
 
27335
- var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel", "isRequired"];
27336
27349
  var HiddenRadioButton = styled.input.withConfig({
27337
27350
  displayName: "RadioButton__HiddenRadioButton",
27338
27351
  componentId: "sc-1jed2i-0"
@@ -27358,9 +27371,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27358
27371
  _ref2$ariaLabel = _ref2.ariaLabel,
27359
27372
  ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27360
27373
  _ref2$isRequired = _ref2.isRequired,
27361
- isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired,
27362
- rest = _objectWithoutProperties(_ref2, _excluded$w);
27363
-
27374
+ isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27364
27375
  var buttonBorder = {
27365
27376
  onFocused: {
27366
27377
  borderColor: themeValues.activeColor,
@@ -27403,7 +27414,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27403
27414
  width: "0px"
27404
27415
  }
27405
27416
  };
27406
- var extraProps = rest !== null && rest !== void 0 && rest.length ? rest : {};
27417
+ var extraProps = {};
27407
27418
 
27408
27419
  if (ariaLabelledBy && ariaLabelledBy.length) {
27409
27420
  extraProps["aria-labelledby"] = ariaLabelledBy;
@@ -38113,7 +38124,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38113
38124
  field = _ref.field,
38114
38125
  fieldActions = _ref.fieldActions,
38115
38126
  showErrors = _ref.showErrors,
38116
- countryCode = _ref.countryCode;
38127
+ countryCode = _ref.countryCode,
38128
+ _ref$isRequired = _ref.isRequired,
38129
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38117
38130
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38118
38131
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38119
38132
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38123,7 +38136,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38123
38136
  labelTextWhenNoError: labelTextWhenNoError,
38124
38137
  errorMessages: errorMessages,
38125
38138
  showErrors: showErrors,
38126
- autocompleteValue: "address-level1"
38139
+ autocompleteValue: "address-level1",
38140
+ isRequired: isRequired
38127
38141
  });
38128
38142
  };
38129
38143
 
@@ -38692,7 +38706,7 @@ var TableRowWrapper = styled.tr.withConfig({
38692
38706
  return extraStyles;
38693
38707
  });
38694
38708
 
38695
- var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38709
+ var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38696
38710
 
38697
38711
  var TableRow = function TableRow(_ref) {
38698
38712
  var children = _ref.children,
@@ -38702,7 +38716,7 @@ var TableRow = function TableRow(_ref) {
38702
38716
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
38703
38717
  onClick = _ref.onClick,
38704
38718
  themeValues = _ref.themeValues,
38705
- props = _objectWithoutProperties(_ref, _excluded$x);
38719
+ props = _objectWithoutProperties(_ref, _excluded$w);
38706
38720
 
38707
38721
  return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
38708
38722
  onClick: onClick,
@@ -39462,7 +39476,8 @@ var AddressForm = function AddressForm(_ref) {
39462
39476
  }
39463
39477
  },
39464
39478
  showErrors: showErrors,
39465
- dataQa: "Country"
39479
+ dataQa: "Country",
39480
+ isRequired: true
39466
39481
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39467
39482
  labelTextWhenNoError: "Address",
39468
39483
  errorMessages: street1ErrorMessages,
@@ -39473,7 +39488,8 @@ var AddressForm = function AddressForm(_ref) {
39473
39488
  return e.key === "Enter" && handleSubmit(e);
39474
39489
  },
39475
39490
  autocompleteValue: "address-line1",
39476
- dataQa: "Address"
39491
+ dataQa: "Address",
39492
+ isRequired: true
39477
39493
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39478
39494
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39479
39495
  field: fields.street2,
@@ -39494,7 +39510,8 @@ var AddressForm = function AddressForm(_ref) {
39494
39510
  return e.key === "Enter" && handleSubmit(e);
39495
39511
  },
39496
39512
  autocompleteValue: "address-level2",
39497
- dataQa: "City"
39513
+ dataQa: "City",
39514
+ isRequired: true
39498
39515
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39499
39516
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39500
39517
  errorMessages: stateProvinceErrorMessages,
@@ -39505,7 +39522,8 @@ var AddressForm = function AddressForm(_ref) {
39505
39522
  onKeyDown: function onKeyDown(e) {
39506
39523
  return e.key === "Enter" && handleSubmit(e);
39507
39524
  },
39508
- dataQa: "State or Province"
39525
+ dataQa: "State or Province",
39526
+ isRequired: true
39509
39527
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39510
39528
  isNum: isUS,
39511
39529
  formatter: isUS ? zipFormat : null,
@@ -39518,7 +39536,8 @@ var AddressForm = function AddressForm(_ref) {
39518
39536
  return e.key === "Enter" && handleSubmit(e);
39519
39537
  },
39520
39538
  autocompleteValue: "postal-code",
39521
- dataQa: "Zip code"
39539
+ dataQa: "Zip code",
39540
+ isRequired: true
39522
39541
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39523
39542
  name: "address checkbox",
39524
39543
  title: "Save address to wallet",
@@ -40421,7 +40440,9 @@ var EmailForm = function EmailForm(_ref) {
40421
40440
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40422
40441
  showWalletCheckbox = _ref.showWalletCheckbox,
40423
40442
  saveToWallet = _ref.saveToWallet,
40424
- walletCheckboxMarked = _ref.walletCheckboxMarked;
40443
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
40444
+ _ref$isRequired = _ref.isRequired,
40445
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
40425
40446
 
40426
40447
  if (clearOnDismount) {
40427
40448
  useEffect$1(function () {
@@ -40450,7 +40471,8 @@ var EmailForm = function EmailForm(_ref) {
40450
40471
  },
40451
40472
  isEmail: true,
40452
40473
  autocompleteValue: "email",
40453
- dataQa: "Email address"
40474
+ dataQa: "Email address",
40475
+ isRequired: isRequired
40454
40476
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
40455
40477
  name: "email checkbox",
40456
40478
  title: "Save email address to wallet",
@@ -47259,7 +47281,7 @@ var fallbackValues$N = {
47259
47281
  labeledAmountTotal: labeledAmountTotal
47260
47282
  };
47261
47283
 
47262
- var _excluded$y = ["amount"],
47284
+ var _excluded$x = ["amount"],
47263
47285
  _excluded2$1 = ["amount"];
47264
47286
 
47265
47287
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
@@ -47504,7 +47526,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47504
47526
  return fee.amount > 0;
47505
47527
  }).map(function (_ref5) {
47506
47528
  var amount = _ref5.amount,
47507
- rest = _objectWithoutProperties(_ref5, _excluded$y);
47529
+ rest = _objectWithoutProperties(_ref5, _excluded$x);
47508
47530
 
47509
47531
  return _objectSpread2(_objectSpread2({}, rest), {}, {
47510
47532
  amount: displayCurrency(amount)
@@ -47907,12 +47929,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47907
47929
  }, errorMessage))))));
47908
47930
  };
47909
47931
 
47910
- var _excluded$z = ["version"];
47932
+ var _excluded$y = ["version"];
47911
47933
 
47912
47934
  var TermsAndConditions = function TermsAndConditions(_ref) {
47913
47935
  var _ref$version = _ref.version,
47914
47936
  version = _ref$version === void 0 ? "v1" : _ref$version,
47915
- rest = _objectWithoutProperties(_ref, _excluded$z);
47937
+ rest = _objectWithoutProperties(_ref, _excluded$y);
47916
47938
 
47917
47939
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
47918
47940
  return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
@@ -47985,7 +48007,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47985
48007
  onKeyDown: function onKeyDown(e) {
47986
48008
  return e.key === "Enter" && handleSubmit(e);
47987
48009
  },
47988
- autocompleteValue: "name"
48010
+ autocompleteValue: "name",
48011
+ isRequired: true
47989
48012
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47990
48013
  labelTextWhenNoError: "Routing number",
47991
48014
  dataQa: "Routing number",
@@ -48007,7 +48030,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48007
48030
  },
48008
48031
  onKeyDown: function onKeyDown(e) {
48009
48032
  return e.key === "Enter" && handleSubmit(e);
48010
- }
48033
+ },
48034
+ isRequired: true
48011
48035
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48012
48036
  labelTextWhenNoError: "Confirm routing number",
48013
48037
  dataQa: "Confirm routing number",
@@ -48018,7 +48042,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48018
48042
  onKeyDown: function onKeyDown(e) {
48019
48043
  return e.key === "Enter" && handleSubmit(e);
48020
48044
  },
48021
- isNum: true
48045
+ isNum: true,
48046
+ isRequired: true
48022
48047
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48023
48048
  labelTextWhenNoError: "Account number",
48024
48049
  dataQa: "Account number",
@@ -48040,7 +48065,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48040
48065
  },
48041
48066
  onKeyDown: function onKeyDown(e) {
48042
48067
  return e.key === "Enter" && handleSubmit(e);
48043
- }
48068
+ },
48069
+ isRequired: true
48044
48070
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48045
48071
  labelTextWhenNoError: "Confirm account number",
48046
48072
  dataQa: "Confirm account number",
@@ -48051,6 +48077,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48051
48077
  onKeyDown: function onKeyDown(e) {
48052
48078
  return e.key === "Enter" && handleSubmit(e);
48053
48079
  },
48080
+ isRequired: true,
48054
48081
  isNum: true
48055
48082
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48056
48083
  labelTextWhenNoError: "Account type",
@@ -48068,7 +48095,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48068
48095
  fieldActions: actions.fields.accountType,
48069
48096
  showErrors: showErrors,
48070
48097
  errorMessages: accountTypeErrors,
48071
- field: fields.accountType
48098
+ field: fields.accountType,
48099
+ isRequired: true
48072
48100
  }), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
48073
48101
  title: "Save as Default Payment Method",
48074
48102
  dataQa: "default-payment-ach",
@@ -48206,7 +48234,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48206
48234
  onKeyDown: function onKeyDown(e) {
48207
48235
  return e.key === "Enter" && handleSubmit(e);
48208
48236
  },
48209
- autocompleteValue: "cc-name"
48237
+ autocompleteValue: "cc-name",
48238
+ isRequired: true
48210
48239
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48211
48240
  labelTextWhenNoError: "Credit card number",
48212
48241
  dataQa: "Credit card number",
@@ -48219,7 +48248,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48219
48248
  return e.key === "Enter" && handleSubmit(e);
48220
48249
  },
48221
48250
  isNum: true,
48222
- autocompleteValue: "cc-number"
48251
+ autocompleteValue: "cc-number",
48252
+ isRequired: true
48223
48253
  }), /*#__PURE__*/React.createElement(FormInputRow, {
48224
48254
  breakpoint: isMobile ? "1000rem" : "21rem",
48225
48255
  childGap: isMobile ? "0rem" : "1rem"
@@ -48237,7 +48267,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48237
48267
  isNum: true,
48238
48268
  removeFromValue: /\// // removes "/" from browser autofill
48239
48269
  ,
48240
- autocompleteValue: "cc-exp"
48270
+ autocompleteValue: "cc-exp",
48271
+ isRequired: true
48241
48272
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48242
48273
  labelTextWhenNoError: "CVV",
48243
48274
  dataQa: "CVV",
@@ -48250,7 +48281,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48250
48281
  onKeyDown: function onKeyDown(e) {
48251
48282
  return e.key === "Enter" && handleSubmit(e);
48252
48283
  },
48253
- autocompleteValue: "cc-csc"
48284
+ autocompleteValue: "cc-csc",
48285
+ isRequired: true
48254
48286
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48255
48287
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48256
48288
  width: isMobile ? "100%" : "50%"
@@ -48266,7 +48298,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48266
48298
  onKeyDown: function onKeyDown(e) {
48267
48299
  return e.key === "Enter" && handleSubmit(e);
48268
48300
  },
48269
- autocompleteValue: "billing postal-code"
48301
+ autocompleteValue: "billing postal-code",
48302
+ isRequired: true
48270
48303
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48271
48304
  childGap: "4px",
48272
48305
  align: "center"
@@ -48459,7 +48492,9 @@ var PhoneForm = function PhoneForm(_ref) {
48459
48492
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48460
48493
  showWalletCheckbox = _ref.showWalletCheckbox,
48461
48494
  saveToWallet = _ref.saveToWallet,
48462
- walletCheckboxMarked = _ref.walletCheckboxMarked;
48495
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
48496
+ _ref$isRequired = _ref.isRequired,
48497
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48463
48498
 
48464
48499
  if (clearOnDismount) {
48465
48500
  useEffect$1(function () {
@@ -48486,7 +48521,8 @@ var PhoneForm = function PhoneForm(_ref) {
48486
48521
  },
48487
48522
  autocompleteValue: "tel-national",
48488
48523
  dataQa: "Phone number",
48489
- isNum: true
48524
+ isNum: true,
48525
+ isRequired: isRequired
48490
48526
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
48491
48527
  name: "phone checkbox",
48492
48528
  title: "Save phone number to wallet",
@@ -48677,7 +48713,7 @@ var RadioSection = function RadioSection(_ref) {
48677
48713
  extraStyles: containerStyles
48678
48714
  }, /*#__PURE__*/React.createElement(Stack, {
48679
48715
  childGap: "0",
48680
- role: "radiogroup",
48716
+ "aria-role": "radiogroup",
48681
48717
  "aria-required": isSectionRequired
48682
48718
  }, sections.filter(function (section) {
48683
48719
  return !section.hidden;
@@ -48701,7 +48737,7 @@ var RadioSection = function RadioSection(_ref) {
48701
48737
  role: "radio",
48702
48738
  "aria-checked": openSection === section.id,
48703
48739
  "aria-disabled": section.disabled,
48704
- "aria-required": !!(section !== null && section !== void 0 && section.required)
48740
+ "aria-required": section === null || section === void 0 ? void 0 : section.required
48705
48741
  }, /*#__PURE__*/React.createElement(Stack, {
48706
48742
  childGap: "0"
48707
48743
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48740,7 +48776,7 @@ var RadioSection = function RadioSection(_ref) {
48740
48776
  return toggleOpenSection(section.id);
48741
48777
  },
48742
48778
  tabIndex: "-1",
48743
- isRequired: !!(section !== null && section !== void 0 && section.required)
48779
+ isRequired: section === null || section === void 0 ? void 0 : section.required
48744
48780
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48745
48781
  align: "center"
48746
48782
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {