@thecb/components 9.2.4-beta.8 → 9.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -23799,7 +23799,9 @@ var Dropdown = function Dropdown(_ref13) {
23799
23799
  _ref13$smoothScroll = _ref13.smoothScroll,
23800
23800
  smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23801
23801
  _ref13$ariaInvalid = _ref13.ariaInvalid,
23802
- ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid;
23802
+ ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
23803
+ _ref13$isRequired = _ref13.isRequired,
23804
+ isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
23803
23805
 
23804
23806
  var _useState = React.useState(""),
23805
23807
  _useState2 = _slicedToArray(_useState, 2),
@@ -23992,11 +23994,13 @@ var Dropdown = function Dropdown(_ref13) {
23992
23994
  clearTimeout(timer);
23993
23995
  setTimer(setTimeout(function () {
23994
23996
  return setInputValue("");
23995
- }, 3000));
23997
+ }, 20000));
23996
23998
  }
23997
23999
 
23998
24000
  setFilteredOptions(options.filter(function (option) {
23999
- return option.value.toLowerCase().startsWith(inputValue.toLowerCase()) || option.text.toLowerCase().startsWith(inputValue.toLowerCase());
24001
+ var _option$value, _option$value$toLower, _option$text, _option$text$toLowerC;
24002
+
24003
+ return (option === null || option === void 0 ? void 0 : (_option$value = option.value) === null || _option$value === void 0 ? void 0 : (_option$value$toLower = _option$value.toLowerCase()) === null || _option$value$toLower === void 0 ? void 0 : _option$value$toLower.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0 || ((_option$text = option.text) === null || _option$text === void 0 ? void 0 : (_option$text$toLowerC = _option$text.toLowerCase()) === null || _option$text$toLowerC === void 0 ? void 0 : _option$text$toLowerC.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0;
24000
24004
  }));
24001
24005
  }, [inputValue]);
24002
24006
  React.useEffect(function () {
@@ -24070,7 +24074,7 @@ var Dropdown = function Dropdown(_ref13) {
24070
24074
  },
24071
24075
  padding: "12px",
24072
24076
  placeholder: getSelection(),
24073
- required: options.required,
24077
+ required: options.required || isRequired,
24074
24078
  role: "combobox",
24075
24079
  themeValues: themeValues,
24076
24080
  title: hasTitles ? getSelection() : null,
@@ -24238,7 +24242,9 @@ var FormSelect = function FormSelect(_ref) {
24238
24242
  _ref$dataQa = _ref.dataQa,
24239
24243
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24240
24244
  _ref$widthFitOptions = _ref.widthFitOptions,
24241
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24245
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24246
+ _ref$isRequired = _ref.isRequired,
24247
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24242
24248
 
24243
24249
  var _useState = React.useState(false),
24244
24250
  _useState2 = _slicedToArray(_useState, 2),
@@ -24300,7 +24306,8 @@ var FormSelect = function FormSelect(_ref) {
24300
24306
  },
24301
24307
  disabled: disabled,
24302
24308
  autocompleteValue: autocompleteValue,
24303
- smoothScroll: smoothScroll
24309
+ smoothScroll: smoothScroll,
24310
+ isRequired: isRequired
24304
24311
  }), /*#__PURE__*/React__default.createElement(Stack, {
24305
24312
  direction: "row",
24306
24313
  justify: "space-between"
@@ -25071,6 +25078,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25071
25078
  fieldActions = _ref.fieldActions,
25072
25079
  showErrors = _ref.showErrors,
25073
25080
  onChange = _ref.onChange,
25081
+ _ref$isRequired = _ref.isRequired,
25082
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
25074
25083
  _ref$dataQa = _ref.dataQa,
25075
25084
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25076
25085
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -25082,7 +25091,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25082
25091
  errorMessages: errorMessages,
25083
25092
  showErrors: showErrors,
25084
25093
  onChange: onChange,
25085
- autocompleteValue: "country-name"
25094
+ autocompleteValue: "country-name",
25095
+ isRequired: isRequired
25086
25096
  });
25087
25097
  };
25088
25098
 
@@ -25929,7 +25939,7 @@ var fallbackValues$k = {
25929
25939
  };
25930
25940
 
25931
25941
  var _excluded$p = ["showErrors", "themeValues"],
25932
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25942
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25933
25943
  var InputField = styled__default.input.withConfig({
25934
25944
  displayName: "FormInput__InputField",
25935
25945
  componentId: "sc-l094r1-0"
@@ -26016,6 +26026,8 @@ var FormInput = function FormInput(_ref15) {
26016
26026
  removeFromValue = _ref15.removeFromValue,
26017
26027
  _ref15$dataQa = _ref15.dataQa,
26018
26028
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26029
+ _ref15$isRequired = _ref15.isRequired,
26030
+ isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26019
26031
  props = _objectWithoutProperties(_ref15, _excluded2);
26020
26032
 
26021
26033
  var _useState = React.useState(false),
@@ -26102,7 +26114,8 @@ var FormInput = function FormInput(_ref15) {
26102
26114
  $customHeight: customHeight,
26103
26115
  $extraStyles: extraStyles,
26104
26116
  "data-qa": dataQa || labelTextWhenNoError,
26105
- autoComplete: autocompleteValue
26117
+ autoComplete: autocompleteValue,
26118
+ required: isRequired
26106
26119
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26107
26120
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26108
26121
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26121,7 +26134,8 @@ var FormInput = function FormInput(_ref15) {
26121
26134
  $customHeight: customHeight,
26122
26135
  $extraStyles: extraStyles,
26123
26136
  "data-qa": dataQa || labelTextWhenNoError,
26124
- autoComplete: autocompleteValue
26137
+ autoComplete: autocompleteValue,
26138
+ required: isRequired
26125
26139
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26126
26140
  direction: "row",
26127
26141
  justify: "space-between",
@@ -27340,7 +27354,6 @@ var fallbackValues$v = {
27340
27354
  inactiveColor: inactiveColor
27341
27355
  };
27342
27356
 
27343
- var _excluded$w = ["radioOn", "radioFocused", "toggleRadio", "name", "disabled", "ariaDescribedBy", "themeValues", "ariaLabelledBy", "ariaLabel"];
27344
27357
  var HiddenRadioButton = styled__default.input.withConfig({
27345
27358
  displayName: "RadioButton__HiddenRadioButton",
27346
27359
  componentId: "sc-1jed2i-0"
@@ -27365,8 +27378,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27365
27378
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27366
27379
  _ref2$ariaLabel = _ref2.ariaLabel,
27367
27380
  ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27368
- rest = _objectWithoutProperties(_ref2, _excluded$w);
27369
-
27381
+ _ref2$isRequired = _ref2.isRequired,
27382
+ isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27370
27383
  var buttonBorder = {
27371
27384
  onFocused: {
27372
27385
  borderColor: themeValues.activeColor,
@@ -27409,7 +27422,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27409
27422
  width: "0px"
27410
27423
  }
27411
27424
  };
27412
- var extraProps = rest !== null && rest !== void 0 && rest.length ? rest : {};
27425
+ var extraProps = {};
27413
27426
 
27414
27427
  if (ariaLabelledBy && ariaLabelledBy.length) {
27415
27428
  extraProps["aria-labelledby"] = ariaLabelledBy;
@@ -27428,7 +27441,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27428
27441
  disabled: disabled,
27429
27442
  onClick: toggleRadio,
27430
27443
  "aria-describedby": ariaDescribedBy,
27431
- tabIndex: "-1"
27444
+ tabIndex: "-1",
27445
+ required: isRequired
27432
27446
  }, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
27433
27447
  borderWidth: "1px",
27434
27448
  borderStyle: "solid",
@@ -38118,7 +38132,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38118
38132
  field = _ref.field,
38119
38133
  fieldActions = _ref.fieldActions,
38120
38134
  showErrors = _ref.showErrors,
38121
- countryCode = _ref.countryCode;
38135
+ countryCode = _ref.countryCode,
38136
+ _ref$isRequired = _ref.isRequired,
38137
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38122
38138
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38123
38139
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38124
38140
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -38128,7 +38144,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38128
38144
  labelTextWhenNoError: labelTextWhenNoError,
38129
38145
  errorMessages: errorMessages,
38130
38146
  showErrors: showErrors,
38131
- autocompleteValue: "address-level1"
38147
+ autocompleteValue: "address-level1",
38148
+ isRequired: isRequired
38132
38149
  });
38133
38150
  };
38134
38151
 
@@ -38697,7 +38714,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
38697
38714
  return extraStyles;
38698
38715
  });
38699
38716
 
38700
- var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38717
+ var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38701
38718
 
38702
38719
  var TableRow = function TableRow(_ref) {
38703
38720
  var children = _ref.children,
@@ -38707,7 +38724,7 @@ var TableRow = function TableRow(_ref) {
38707
38724
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
38708
38725
  onClick = _ref.onClick,
38709
38726
  themeValues = _ref.themeValues,
38710
- props = _objectWithoutProperties(_ref, _excluded$x);
38727
+ props = _objectWithoutProperties(_ref, _excluded$w);
38711
38728
 
38712
38729
  return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
38713
38730
  onClick: onClick,
@@ -39467,7 +39484,8 @@ var AddressForm = function AddressForm(_ref) {
39467
39484
  }
39468
39485
  },
39469
39486
  showErrors: showErrors,
39470
- dataQa: "Country"
39487
+ dataQa: "Country",
39488
+ isRequired: true
39471
39489
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39472
39490
  labelTextWhenNoError: "Address",
39473
39491
  errorMessages: street1ErrorMessages,
@@ -39478,7 +39496,8 @@ var AddressForm = function AddressForm(_ref) {
39478
39496
  return e.key === "Enter" && handleSubmit(e);
39479
39497
  },
39480
39498
  autocompleteValue: "address-line1",
39481
- dataQa: "Address"
39499
+ dataQa: "Address",
39500
+ isRequired: true
39482
39501
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39483
39502
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39484
39503
  field: fields.street2,
@@ -39499,7 +39518,8 @@ var AddressForm = function AddressForm(_ref) {
39499
39518
  return e.key === "Enter" && handleSubmit(e);
39500
39519
  },
39501
39520
  autocompleteValue: "address-level2",
39502
- dataQa: "City"
39521
+ dataQa: "City",
39522
+ isRequired: true
39503
39523
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
39504
39524
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39505
39525
  errorMessages: stateProvinceErrorMessages,
@@ -39510,7 +39530,8 @@ var AddressForm = function AddressForm(_ref) {
39510
39530
  onKeyDown: function onKeyDown(e) {
39511
39531
  return e.key === "Enter" && handleSubmit(e);
39512
39532
  },
39513
- dataQa: "State or Province"
39533
+ dataQa: "State or Province",
39534
+ isRequired: true
39514
39535
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39515
39536
  isNum: isUS,
39516
39537
  formatter: isUS ? zipFormat : null,
@@ -39523,7 +39544,8 @@ var AddressForm = function AddressForm(_ref) {
39523
39544
  return e.key === "Enter" && handleSubmit(e);
39524
39545
  },
39525
39546
  autocompleteValue: "postal-code",
39526
- dataQa: "Zip code"
39547
+ dataQa: "Zip code",
39548
+ isRequired: true
39527
39549
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
39528
39550
  name: "address checkbox",
39529
39551
  title: "Save address to wallet",
@@ -40426,7 +40448,9 @@ var EmailForm = function EmailForm(_ref) {
40426
40448
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40427
40449
  showWalletCheckbox = _ref.showWalletCheckbox,
40428
40450
  saveToWallet = _ref.saveToWallet,
40429
- walletCheckboxMarked = _ref.walletCheckboxMarked;
40451
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
40452
+ _ref$isRequired = _ref.isRequired,
40453
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
40430
40454
 
40431
40455
  if (clearOnDismount) {
40432
40456
  React.useEffect(function () {
@@ -40455,7 +40479,8 @@ var EmailForm = function EmailForm(_ref) {
40455
40479
  },
40456
40480
  isEmail: true,
40457
40481
  autocompleteValue: "email",
40458
- dataQa: "Email address"
40482
+ dataQa: "Email address",
40483
+ isRequired: isRequired
40459
40484
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
40460
40485
  name: "email checkbox",
40461
40486
  title: "Save email address to wallet",
@@ -47264,7 +47289,7 @@ var fallbackValues$N = {
47264
47289
  labeledAmountTotal: labeledAmountTotal
47265
47290
  };
47266
47291
 
47267
- var _excluded$y = ["amount"],
47292
+ var _excluded$x = ["amount"],
47268
47293
  _excluded2$1 = ["amount"];
47269
47294
 
47270
47295
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
@@ -47509,7 +47534,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47509
47534
  return fee.amount > 0;
47510
47535
  }).map(function (_ref5) {
47511
47536
  var amount = _ref5.amount,
47512
- rest = _objectWithoutProperties(_ref5, _excluded$y);
47537
+ rest = _objectWithoutProperties(_ref5, _excluded$x);
47513
47538
 
47514
47539
  return _objectSpread2(_objectSpread2({}, rest), {}, {
47515
47540
  amount: displayCurrency(amount)
@@ -47912,12 +47937,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47912
47937
  }, errorMessage))))));
47913
47938
  };
47914
47939
 
47915
- var _excluded$z = ["version"];
47940
+ var _excluded$y = ["version"];
47916
47941
 
47917
47942
  var TermsAndConditions = function TermsAndConditions(_ref) {
47918
47943
  var _ref$version = _ref.version,
47919
47944
  version = _ref$version === void 0 ? "v1" : _ref$version,
47920
- rest = _objectWithoutProperties(_ref, _excluded$z);
47945
+ rest = _objectWithoutProperties(_ref, _excluded$y);
47921
47946
 
47922
47947
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
47923
47948
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
@@ -47990,7 +48015,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47990
48015
  onKeyDown: function onKeyDown(e) {
47991
48016
  return e.key === "Enter" && handleSubmit(e);
47992
48017
  },
47993
- autocompleteValue: "name"
48018
+ autocompleteValue: "name",
48019
+ isRequired: true
47994
48020
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47995
48021
  labelTextWhenNoError: "Routing number",
47996
48022
  dataQa: "Routing number",
@@ -48012,7 +48038,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48012
48038
  },
48013
48039
  onKeyDown: function onKeyDown(e) {
48014
48040
  return e.key === "Enter" && handleSubmit(e);
48015
- }
48041
+ },
48042
+ isRequired: true
48016
48043
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48017
48044
  labelTextWhenNoError: "Confirm routing number",
48018
48045
  dataQa: "Confirm routing number",
@@ -48023,7 +48050,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48023
48050
  onKeyDown: function onKeyDown(e) {
48024
48051
  return e.key === "Enter" && handleSubmit(e);
48025
48052
  },
48026
- isNum: true
48053
+ isNum: true,
48054
+ isRequired: true
48027
48055
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48028
48056
  labelTextWhenNoError: "Account number",
48029
48057
  dataQa: "Account number",
@@ -48045,7 +48073,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48045
48073
  },
48046
48074
  onKeyDown: function onKeyDown(e) {
48047
48075
  return e.key === "Enter" && handleSubmit(e);
48048
- }
48076
+ },
48077
+ isRequired: true
48049
48078
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48050
48079
  labelTextWhenNoError: "Confirm account number",
48051
48080
  dataQa: "Confirm account number",
@@ -48056,6 +48085,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48056
48085
  onKeyDown: function onKeyDown(e) {
48057
48086
  return e.key === "Enter" && handleSubmit(e);
48058
48087
  },
48088
+ isRequired: true,
48059
48089
  isNum: true
48060
48090
  }), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
48061
48091
  labelTextWhenNoError: "Account type",
@@ -48073,7 +48103,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48073
48103
  fieldActions: actions.fields.accountType,
48074
48104
  showErrors: showErrors,
48075
48105
  errorMessages: accountTypeErrors,
48076
- field: fields.accountType
48106
+ field: fields.accountType,
48107
+ isRequired: true
48077
48108
  }), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48078
48109
  title: "Save as Default Payment Method",
48079
48110
  dataQa: "default-payment-ach",
@@ -48211,7 +48242,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48211
48242
  onKeyDown: function onKeyDown(e) {
48212
48243
  return e.key === "Enter" && handleSubmit(e);
48213
48244
  },
48214
- autocompleteValue: "cc-name"
48245
+ autocompleteValue: "cc-name",
48246
+ isRequired: true
48215
48247
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48216
48248
  labelTextWhenNoError: "Credit card number",
48217
48249
  dataQa: "Credit card number",
@@ -48224,7 +48256,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48224
48256
  return e.key === "Enter" && handleSubmit(e);
48225
48257
  },
48226
48258
  isNum: true,
48227
- autocompleteValue: "cc-number"
48259
+ autocompleteValue: "cc-number",
48260
+ isRequired: true
48228
48261
  }), /*#__PURE__*/React__default.createElement(FormInputRow, {
48229
48262
  breakpoint: isMobile ? "1000rem" : "21rem",
48230
48263
  childGap: isMobile ? "0rem" : "1rem"
@@ -48242,7 +48275,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48242
48275
  isNum: true,
48243
48276
  removeFromValue: /\// // removes "/" from browser autofill
48244
48277
  ,
48245
- autocompleteValue: "cc-exp"
48278
+ autocompleteValue: "cc-exp",
48279
+ isRequired: true
48246
48280
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48247
48281
  labelTextWhenNoError: "CVV",
48248
48282
  dataQa: "CVV",
@@ -48255,7 +48289,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48255
48289
  onKeyDown: function onKeyDown(e) {
48256
48290
  return e.key === "Enter" && handleSubmit(e);
48257
48291
  },
48258
- autocompleteValue: "cc-csc"
48292
+ autocompleteValue: "cc-csc",
48293
+ isRequired: true
48259
48294
  })), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
48260
48295
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48261
48296
  width: isMobile ? "100%" : "50%"
@@ -48271,7 +48306,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48271
48306
  onKeyDown: function onKeyDown(e) {
48272
48307
  return e.key === "Enter" && handleSubmit(e);
48273
48308
  },
48274
- autocompleteValue: "billing postal-code"
48309
+ autocompleteValue: "billing postal-code",
48310
+ isRequired: true
48275
48311
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
48276
48312
  childGap: "4px",
48277
48313
  align: "center"
@@ -48464,7 +48500,9 @@ var PhoneForm = function PhoneForm(_ref) {
48464
48500
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48465
48501
  showWalletCheckbox = _ref.showWalletCheckbox,
48466
48502
  saveToWallet = _ref.saveToWallet,
48467
- walletCheckboxMarked = _ref.walletCheckboxMarked;
48503
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
48504
+ _ref$isRequired = _ref.isRequired,
48505
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48468
48506
 
48469
48507
  if (clearOnDismount) {
48470
48508
  React.useEffect(function () {
@@ -48491,7 +48529,8 @@ var PhoneForm = function PhoneForm(_ref) {
48491
48529
  },
48492
48530
  autocompleteValue: "tel-national",
48493
48531
  dataQa: "Phone number",
48494
- isNum: true
48532
+ isNum: true,
48533
+ isRequired: isRequired
48495
48534
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48496
48535
  name: "phone checkbox",
48497
48536
  title: "Save phone number to wallet",
@@ -48682,7 +48721,7 @@ var RadioSection = function RadioSection(_ref) {
48682
48721
  extraStyles: containerStyles
48683
48722
  }, /*#__PURE__*/React__default.createElement(Stack, {
48684
48723
  childGap: "0",
48685
- role: "radiogroup",
48724
+ "aria-role": "radiogroup",
48686
48725
  "aria-required": isSectionRequired
48687
48726
  }, sections.filter(function (section) {
48688
48727
  return !section.hidden;
@@ -48706,7 +48745,7 @@ var RadioSection = function RadioSection(_ref) {
48706
48745
  role: "radio",
48707
48746
  "aria-checked": openSection === section.id,
48708
48747
  "aria-disabled": section.disabled,
48709
- "aria-required": !!(section !== null && section !== void 0 && section.required)
48748
+ "aria-required": section === null || section === void 0 ? void 0 : section.required
48710
48749
  }, /*#__PURE__*/React__default.createElement(Stack, {
48711
48750
  childGap: "0"
48712
48751
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -48745,7 +48784,7 @@ var RadioSection = function RadioSection(_ref) {
48745
48784
  return toggleOpenSection(section.id);
48746
48785
  },
48747
48786
  tabIndex: "-1",
48748
- "aria-required": !!(section !== null && section !== void 0 && section.required)
48787
+ isRequired: section === null || section === void 0 ? void 0 : section.required
48749
48788
  })), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
48750
48789
  align: "center"
48751
48790
  }, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {