@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.
Files changed (26) hide show
  1. package/dist/index.cjs.js +95 -44
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +95 -44
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
  6. package/package.json +1 -1
  7. package/src/.DS_Store +0 -0
  8. package/src/components/.DS_Store +0 -0
  9. package/src/components/atoms/.DS_Store +0 -0
  10. package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -0
  11. package/src/components/atoms/dropdown/Dropdown.js +3 -2
  12. package/src/components/atoms/form-layouts/FormInput.js +3 -0
  13. package/src/components/atoms/form-select/FormSelect.js +3 -1
  14. package/src/components/atoms/icons/.DS_Store +0 -0
  15. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +3 -1
  16. package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +1 -0
  17. package/src/components/molecules/address-form/AddressForm.js +5 -0
  18. package/src/components/molecules/email-form/EmailForm.js +3 -1
  19. package/src/components/molecules/modal/Modal.js +6 -2
  20. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +6 -0
  21. package/src/components/molecules/payment-form-card/PaymentFormCard.js +5 -0
  22. package/src/components/molecules/phone-form/PhoneForm.js +3 -1
  23. package/src/components/molecules/radio-section/RadioSection.js +9 -2
  24. package/src/components/molecules/radio-section/RadioSection.stories.js +4 -2
  25. package/src/components/molecules/radio-section/radio-button/RadioButton.js +3 -1
  26. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +1 -0
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),
@@ -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",
@@ -27355,7 +27367,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
27355
27367
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27356
27368
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27357
27369
  _ref2$ariaLabel = _ref2.ariaLabel,
27358
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27370
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27371
+ _ref2$isRequired = _ref2.isRequired,
27372
+ isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27359
27373
  var buttonBorder = {
27360
27374
  onFocused: {
27361
27375
  borderColor: themeValues.activeColor,
@@ -27417,7 +27431,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27417
27431
  disabled: disabled,
27418
27432
  onClick: toggleRadio,
27419
27433
  "aria-describedby": ariaDescribedBy,
27420
- tabIndex: "-1"
27434
+ tabIndex: "-1",
27435
+ required: isRequired
27421
27436
  }, extraProps)), /*#__PURE__*/React.createElement(Motion, {
27422
27437
  borderWidth: "1px",
27423
27438
  borderStyle: "solid",
@@ -38107,7 +38122,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38107
38122
  field = _ref.field,
38108
38123
  fieldActions = _ref.fieldActions,
38109
38124
  showErrors = _ref.showErrors,
38110
- countryCode = _ref.countryCode;
38125
+ countryCode = _ref.countryCode,
38126
+ _ref$isRequired = _ref.isRequired,
38127
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38111
38128
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38112
38129
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38113
38130
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38117,7 +38134,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38117
38134
  labelTextWhenNoError: labelTextWhenNoError,
38118
38135
  errorMessages: errorMessages,
38119
38136
  showErrors: showErrors,
38120
- autocompleteValue: "address-level1"
38137
+ autocompleteValue: "address-level1",
38138
+ isRequired: isRequired
38121
38139
  });
38122
38140
  };
38123
38141
 
@@ -39456,7 +39474,8 @@ var AddressForm = function AddressForm(_ref) {
39456
39474
  }
39457
39475
  },
39458
39476
  showErrors: showErrors,
39459
- dataQa: "Country"
39477
+ dataQa: "Country",
39478
+ isRequired: true
39460
39479
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39461
39480
  labelTextWhenNoError: "Address",
39462
39481
  errorMessages: street1ErrorMessages,
@@ -39467,7 +39486,8 @@ var AddressForm = function AddressForm(_ref) {
39467
39486
  return e.key === "Enter" && handleSubmit(e);
39468
39487
  },
39469
39488
  autocompleteValue: "address-line1",
39470
- dataQa: "Address"
39489
+ dataQa: "Address",
39490
+ isRequired: true
39471
39491
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39472
39492
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39473
39493
  field: fields.street2,
@@ -39488,7 +39508,8 @@ var AddressForm = function AddressForm(_ref) {
39488
39508
  return e.key === "Enter" && handleSubmit(e);
39489
39509
  },
39490
39510
  autocompleteValue: "address-level2",
39491
- dataQa: "City"
39511
+ dataQa: "City",
39512
+ isRequired: true
39492
39513
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39493
39514
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39494
39515
  errorMessages: stateProvinceErrorMessages,
@@ -39499,7 +39520,8 @@ var AddressForm = function AddressForm(_ref) {
39499
39520
  onKeyDown: function onKeyDown(e) {
39500
39521
  return e.key === "Enter" && handleSubmit(e);
39501
39522
  },
39502
- dataQa: "State or Province"
39523
+ dataQa: "State or Province",
39524
+ isRequired: true
39503
39525
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39504
39526
  isNum: isUS,
39505
39527
  formatter: isUS ? zipFormat : null,
@@ -39512,7 +39534,8 @@ var AddressForm = function AddressForm(_ref) {
39512
39534
  return e.key === "Enter" && handleSubmit(e);
39513
39535
  },
39514
39536
  autocompleteValue: "postal-code",
39515
- dataQa: "Zip code"
39537
+ dataQa: "Zip code",
39538
+ isRequired: true
39516
39539
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39517
39540
  name: "address checkbox",
39518
39541
  title: "Save address to wallet",
@@ -40415,7 +40438,9 @@ var EmailForm = function EmailForm(_ref) {
40415
40438
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40416
40439
  showWalletCheckbox = _ref.showWalletCheckbox,
40417
40440
  saveToWallet = _ref.saveToWallet,
40418
- walletCheckboxMarked = _ref.walletCheckboxMarked;
40441
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
40442
+ _ref$isRequired = _ref.isRequired,
40443
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
40419
40444
 
40420
40445
  if (clearOnDismount) {
40421
40446
  useEffect$1(function () {
@@ -40444,7 +40469,8 @@ var EmailForm = function EmailForm(_ref) {
40444
40469
  },
40445
40470
  isEmail: true,
40446
40471
  autocompleteValue: "email",
40447
- dataQa: "Email address"
40472
+ dataQa: "Email address",
40473
+ isRequired: isRequired
40448
40474
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
40449
40475
  name: "email checkbox",
40450
40476
  title: "Save email address to wallet",
@@ -45741,10 +45767,10 @@ var Modal$1 = function Modal(_ref) {
45741
45767
  alignItems: "center"
45742
45768
  },
45743
45769
  dialogStyle: {
45744
- width: customWidth || "615px",
45745
- overflow: "auto"
45770
+ width: customWidth || "615px"
45746
45771
  },
45747
- underlayClickExits: underlayClickExits
45772
+ underlayClickExits: underlayClickExits,
45773
+ "aria-modal": true
45748
45774
  }, /*#__PURE__*/React.createElement(Box, {
45749
45775
  padding: "0",
45750
45776
  borderRadius: "2px",
@@ -45803,7 +45829,8 @@ var Modal$1 = function Modal(_ref) {
45803
45829
  isLoading: isLoading,
45804
45830
  disabled: isContinueActionDisabled,
45805
45831
  extraStyles: buttonExtraStyles,
45806
- className: "modal-continue-button"
45832
+ className: "modal-continue-button",
45833
+ role: "button"
45807
45834
  }))) : /*#__PURE__*/React.createElement(Stack, {
45808
45835
  childGap: "1rem",
45809
45836
  direction: "row",
@@ -45814,7 +45841,8 @@ var Modal$1 = function Modal(_ref) {
45814
45841
  text: cancelButtonText,
45815
45842
  dataQa: cancelButtonText,
45816
45843
  extraStyles: buttonExtraStyles,
45817
- className: "modal-cancel-button"
45844
+ className: "modal-cancel-button",
45845
+ role: "button"
45818
45846
  }), /*#__PURE__*/React.createElement(ButtonWithAction, {
45819
45847
  variant: useDangerButton ? "danger" : "primary",
45820
45848
  action: continueAction,
@@ -45823,7 +45851,8 @@ var Modal$1 = function Modal(_ref) {
45823
45851
  isLoading: isLoading,
45824
45852
  disabled: isContinueActionDisabled,
45825
45853
  extraStyles: buttonExtraStyles,
45826
- className: "modal-continue-button"
45854
+ className: "modal-continue-button",
45855
+ role: "button"
45827
45856
  }))) : /*#__PURE__*/React.createElement(Box, {
45828
45857
  padding: "0.5rem"
45829
45858
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
@@ -45832,7 +45861,8 @@ var Modal$1 = function Modal(_ref) {
45832
45861
  text: closeButtonText,
45833
45862
  dataQa: closeButtonText,
45834
45863
  extraStyles: buttonExtraStyles,
45835
- className: "modal-close-button"
45864
+ className: "modal-close-button",
45865
+ role: "button"
45836
45866
  }))))))))), children);
45837
45867
  };
45838
45868
 
@@ -47677,7 +47707,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47677
47707
  color: themeValues.linkColor,
47678
47708
  weight: themeValues.fontWeight,
47679
47709
  hoverStyles: themeValues.modalLinkHoverFocus,
47680
- extraStyles: "cursor: pointer;"
47710
+ extraStyles: "cursor: pointer;",
47711
+ role: "button"
47681
47712
  }, link));
47682
47713
  };
47683
47714
 
@@ -47773,7 +47804,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47773
47804
  color: themeValues.linkColor,
47774
47805
  weight: themeValues.fontWeight,
47775
47806
  hoverStyles: themeValues.modalLinkHoverFocus,
47776
- extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
47807
+ extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
47808
+ role: "button"
47777
47809
  }, link));
47778
47810
  };
47779
47811
 
@@ -47980,7 +48012,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47980
48012
  onKeyDown: function onKeyDown(e) {
47981
48013
  return e.key === "Enter" && handleSubmit(e);
47982
48014
  },
47983
- autocompleteValue: "name"
48015
+ autocompleteValue: "name",
48016
+ isRequired: true
47984
48017
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47985
48018
  labelTextWhenNoError: "Routing number",
47986
48019
  dataQa: "Routing number",
@@ -48002,7 +48035,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48002
48035
  },
48003
48036
  onKeyDown: function onKeyDown(e) {
48004
48037
  return e.key === "Enter" && handleSubmit(e);
48005
- }
48038
+ },
48039
+ isRequired: true
48006
48040
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48007
48041
  labelTextWhenNoError: "Confirm routing number",
48008
48042
  dataQa: "Confirm routing number",
@@ -48013,7 +48047,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48013
48047
  onKeyDown: function onKeyDown(e) {
48014
48048
  return e.key === "Enter" && handleSubmit(e);
48015
48049
  },
48016
- isNum: true
48050
+ isNum: true,
48051
+ isRequired: true
48017
48052
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48018
48053
  labelTextWhenNoError: "Account number",
48019
48054
  dataQa: "Account number",
@@ -48035,7 +48070,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48035
48070
  },
48036
48071
  onKeyDown: function onKeyDown(e) {
48037
48072
  return e.key === "Enter" && handleSubmit(e);
48038
- }
48073
+ },
48074
+ isRequired: true
48039
48075
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48040
48076
  labelTextWhenNoError: "Confirm account number",
48041
48077
  dataQa: "Confirm account number",
@@ -48046,6 +48082,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48046
48082
  onKeyDown: function onKeyDown(e) {
48047
48083
  return e.key === "Enter" && handleSubmit(e);
48048
48084
  },
48085
+ isRequired: true,
48049
48086
  isNum: true
48050
48087
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48051
48088
  labelTextWhenNoError: "Account type",
@@ -48063,7 +48100,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48063
48100
  fieldActions: actions.fields.accountType,
48064
48101
  showErrors: showErrors,
48065
48102
  errorMessages: accountTypeErrors,
48066
- field: fields.accountType
48103
+ field: fields.accountType,
48104
+ isRequired: true
48067
48105
  }), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
48068
48106
  title: "Save as Default Payment Method",
48069
48107
  dataQa: "default-payment-ach",
@@ -48201,7 +48239,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48201
48239
  onKeyDown: function onKeyDown(e) {
48202
48240
  return e.key === "Enter" && handleSubmit(e);
48203
48241
  },
48204
- autocompleteValue: "cc-name"
48242
+ autocompleteValue: "cc-name",
48243
+ isRequired: true
48205
48244
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48206
48245
  labelTextWhenNoError: "Credit card number",
48207
48246
  dataQa: "Credit card number",
@@ -48214,7 +48253,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48214
48253
  return e.key === "Enter" && handleSubmit(e);
48215
48254
  },
48216
48255
  isNum: true,
48217
- autocompleteValue: "cc-number"
48256
+ autocompleteValue: "cc-number",
48257
+ isRequired: true
48218
48258
  }), /*#__PURE__*/React.createElement(FormInputRow, {
48219
48259
  breakpoint: isMobile ? "1000rem" : "21rem",
48220
48260
  childGap: isMobile ? "0rem" : "1rem"
@@ -48232,7 +48272,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48232
48272
  isNum: true,
48233
48273
  removeFromValue: /\// // removes "/" from browser autofill
48234
48274
  ,
48235
- autocompleteValue: "cc-exp"
48275
+ autocompleteValue: "cc-exp",
48276
+ isRequired: true
48236
48277
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48237
48278
  labelTextWhenNoError: "CVV",
48238
48279
  dataQa: "CVV",
@@ -48245,7 +48286,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48245
48286
  onKeyDown: function onKeyDown(e) {
48246
48287
  return e.key === "Enter" && handleSubmit(e);
48247
48288
  },
48248
- autocompleteValue: "cc-csc"
48289
+ autocompleteValue: "cc-csc",
48290
+ isRequired: true
48249
48291
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48250
48292
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48251
48293
  width: isMobile ? "100%" : "50%"
@@ -48261,7 +48303,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48261
48303
  onKeyDown: function onKeyDown(e) {
48262
48304
  return e.key === "Enter" && handleSubmit(e);
48263
48305
  },
48264
- autocompleteValue: "billing postal-code"
48306
+ autocompleteValue: "billing postal-code",
48307
+ isRequired: true
48265
48308
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48266
48309
  childGap: "4px",
48267
48310
  align: "center"
@@ -48454,7 +48497,9 @@ var PhoneForm = function PhoneForm(_ref) {
48454
48497
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48455
48498
  showWalletCheckbox = _ref.showWalletCheckbox,
48456
48499
  saveToWallet = _ref.saveToWallet,
48457
- walletCheckboxMarked = _ref.walletCheckboxMarked;
48500
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
48501
+ _ref$isRequired = _ref.isRequired,
48502
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48458
48503
 
48459
48504
  if (clearOnDismount) {
48460
48505
  useEffect$1(function () {
@@ -48481,7 +48526,8 @@ var PhoneForm = function PhoneForm(_ref) {
48481
48526
  },
48482
48527
  autocompleteValue: "tel-national",
48483
48528
  dataQa: "Phone number",
48484
- isNum: true
48529
+ isNum: true,
48530
+ isRequired: isRequired
48485
48531
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
48486
48532
  name: "phone checkbox",
48487
48533
  title: "Save phone number to wallet",
@@ -48614,7 +48660,9 @@ var RadioSection = function RadioSection(_ref) {
48614
48660
  openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
48615
48661
  _ref$containerStyles = _ref.containerStyles,
48616
48662
  containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
48617
- ariaDescribedBy = _ref.ariaDescribedBy;
48663
+ ariaDescribedBy = _ref.ariaDescribedBy,
48664
+ _ref$isSectionRequire = _ref.isSectionRequired,
48665
+ isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire;
48618
48666
 
48619
48667
  var handleKeyDown = function handleKeyDown(id, e) {
48620
48668
  if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
@@ -48670,7 +48718,8 @@ var RadioSection = function RadioSection(_ref) {
48670
48718
  extraStyles: containerStyles
48671
48719
  }, /*#__PURE__*/React.createElement(Stack, {
48672
48720
  childGap: "0",
48673
- role: "radiogroup"
48721
+ "aria-role": "radiogroup",
48722
+ "aria-required": isSectionRequired
48674
48723
  }, sections.filter(function (section) {
48675
48724
  return !section.hidden;
48676
48725
  }).map(function (section) {
@@ -48692,7 +48741,8 @@ var RadioSection = function RadioSection(_ref) {
48692
48741
  extraStyles: borderStyles,
48693
48742
  role: "radio",
48694
48743
  "aria-checked": openSection === section.id,
48695
- "aria-disabled": section.disabled
48744
+ "aria-disabled": section.disabled,
48745
+ "aria-required": section === null || section === void 0 ? void 0 : section.required
48696
48746
  }, /*#__PURE__*/React.createElement(Stack, {
48697
48747
  childGap: "0"
48698
48748
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48730,7 +48780,8 @@ var RadioSection = function RadioSection(_ref) {
48730
48780
  toggleRadio: section.disabled ? noop : function () {
48731
48781
  return toggleOpenSection(section.id);
48732
48782
  },
48733
- tabIndex: "-1"
48783
+ tabIndex: "-1",
48784
+ isRequired: section === null || section === void 0 ? void 0 : section.required
48734
48785
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48735
48786
  align: "center"
48736
48787
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {