@thecb/components 9.2.3-beta.3 → 9.2.3

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 (24) hide show
  1. package/dist/index.cjs.js +54 -66
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +54 -66
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/atoms/checkbox/Checkbox.js +1 -3
  7. package/src/components/atoms/checkbox/Checkbox.stories.js +2 -3
  8. package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -2
  9. package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +0 -1
  10. package/src/components/atoms/dropdown/Dropdown.js +5 -8
  11. package/src/components/atoms/form-select/FormSelect.js +9 -20
  12. package/src/components/atoms/form-select/FormSelect.stories.js +2 -2
  13. package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +6 -9
  14. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +0 -1
  15. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +0 -1
  16. package/src/components/molecules/address-form/AddressForm.js +1 -2
  17. package/src/components/molecules/email-form/EmailForm.js +3 -1
  18. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +4 -4
  19. package/src/components/molecules/payment-form-card/PaymentFormCard.js +1 -2
  20. package/src/components/molecules/phone-form/PhoneForm.js +3 -1
  21. package/src/components/molecules/radio-group/RadioGroup.js +1 -1
  22. package/src/components/molecules/radio-section/RadioSection.js +9 -3
  23. package/src/components/molecules/radio-section/RadioSection.stories.js +1 -0
  24. package/src/components/molecules/radio-section/radio-button/RadioButton.js +2 -3
package/dist/index.cjs.js CHANGED
@@ -22134,9 +22134,7 @@ var Checkbox = function Checkbox(_ref4) {
22134
22134
  extraStyles = _ref4.extraStyles,
22135
22135
  textExtraStyles = _ref4.textExtraStyles,
22136
22136
  _ref4$dataQa = _ref4.dataQa,
22137
- dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa,
22138
- _ref4$isRequired = _ref4.isRequired,
22139
- isRequired = _ref4$isRequired === void 0 ? false : _ref4$isRequired;
22137
+ dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
22140
22138
 
22141
22139
  var _useState = React.useState(false),
22142
22140
  _useState2 = _slicedToArray(_useState, 2),
@@ -22190,8 +22188,7 @@ var Checkbox = function Checkbox(_ref4) {
22190
22188
  errorStyles: themeValues.errorStyles,
22191
22189
  disabledStyles: themeValues.disabledStyles,
22192
22190
  disabledCheckedStyles: themeValues.disabledCheckedStyles,
22193
- focusedStyles: themeValues.focusedStyles,
22194
- "aria-required": isRequired
22191
+ focusedStyles: themeValues.focusedStyles
22195
22192
  }, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
22196
22193
  viewBox: "0 0 24 24",
22197
22194
  disabled: disabled,
@@ -23806,8 +23803,6 @@ var Dropdown = function Dropdown(_ref13) {
23806
23803
  _ref13$isRequired = _ref13.isRequired,
23807
23804
  isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
23808
23805
 
23809
- var required = options.required || isRequired;
23810
-
23811
23806
  var _useState = React.useState(""),
23812
23807
  _useState2 = _slicedToArray(_useState, 2),
23813
23808
  inputValue = _useState2[0],
@@ -23999,11 +23994,11 @@ var Dropdown = function Dropdown(_ref13) {
23999
23994
  clearTimeout(timer);
24000
23995
  setTimer(setTimeout(function () {
24001
23996
  return setInputValue("");
24002
- }, 3000));
23997
+ }, 20000));
24003
23998
  }
24004
23999
 
24005
24000
  setFilteredOptions(options.filter(function (option) {
24006
- return option.value.toLowerCase().startsWith(inputValue.toLowerCase()) || option.text.toLowerCase().startsWith(inputValue.toLowerCase());
24001
+ return option.value.toLowerCase().match(inputValue.toLowerCase()) || option.text.toLowerCase().match(inputValue.toLowerCase());
24007
24002
  }));
24008
24003
  }, [inputValue]);
24009
24004
  React.useEffect(function () {
@@ -24055,7 +24050,7 @@ var Dropdown = function Dropdown(_ref13) {
24055
24050
  "aria-labelledby": ariaLabelledby,
24056
24051
  "aria-describedby": ariaDescribedby,
24057
24052
  "aria-expanded": isOpen,
24058
- "aria-required": required,
24053
+ "aria-required": options.required,
24059
24054
  "aria-invalid": ariaInvalid,
24060
24055
  background: isOpen ? themeValues.hoverColor : WHITE,
24061
24056
  borderRadius: "2px",
@@ -24077,6 +24072,7 @@ var Dropdown = function Dropdown(_ref13) {
24077
24072
  },
24078
24073
  padding: "12px",
24079
24074
  placeholder: getSelection(),
24075
+ required: options.required || isRequired,
24080
24076
  role: "combobox",
24081
24077
  themeValues: themeValues,
24082
24078
  title: hasTitles ? getSelection() : null,
@@ -24084,9 +24080,6 @@ var Dropdown = function Dropdown(_ref13) {
24084
24080
  tabIndex: 0,
24085
24081
  value: inputValue,
24086
24082
  width: "100%"
24087
- /* Non-semantic elements need the aria-* version of the attribute */
24088
- ,
24089
- "aria-disabled": disabledValues.includes(inputValue)
24090
24083
  }), /*#__PURE__*/React__default.createElement(IconWrapper, {
24091
24084
  open: isOpen,
24092
24085
  onClick: _onClick
@@ -24097,8 +24090,7 @@ var Dropdown = function Dropdown(_ref13) {
24097
24090
  widthFitOptions: widthFitOptions,
24098
24091
  tabIndex: 0,
24099
24092
  role: "listbox",
24100
- id: "".concat(ariaLabelledby, "_listbox"),
24101
- required: required
24093
+ id: "".concat(ariaLabelledby, "_listbox")
24102
24094
  }, /*#__PURE__*/React__default.createElement(Stack, {
24103
24095
  childGap: "0",
24104
24096
  as: "ul"
@@ -24258,17 +24250,6 @@ var FormSelect = function FormSelect(_ref) {
24258
24250
  setOpen = _useState2[1];
24259
24251
 
24260
24252
  var dropdownRef = React.useRef(null);
24261
- var required = (options === null || options === void 0 ? void 0 : options.required) || isRequired;
24262
- var labelId = React.useMemo(function () {
24263
- return function (labelTextWhenNoError) {
24264
- return createIdFromString(labelTextWhenNoError);
24265
- };
24266
- }, [labelTextWhenNoError]);
24267
- var descriptionId = React.useMemo(function () {
24268
- return function (field, labelTextWhenNoError) {
24269
- return field.hasErrors && field.dirty ? labelId(labelTextWhenNoError) + "error-message" : "";
24270
- };
24271
- }, [field, labelTextWhenNoError]);
24272
24253
 
24273
24254
  var handleClickAway = function handleClickAway(event) {
24274
24255
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
@@ -24284,8 +24265,8 @@ var FormSelect = function FormSelect(_ref) {
24284
24265
  });
24285
24266
  return /*#__PURE__*/React__default.createElement(SelectContainer, {
24286
24267
  ref: dropdownRef,
24287
- "aria-role": "group",
24288
24268
  disabled: disabled,
24269
+ "aria-disabled": disabled,
24289
24270
  "data-qa": dataQa
24290
24271
  }, /*#__PURE__*/React__default.createElement(Box, {
24291
24272
  padding: "0",
@@ -24299,10 +24280,10 @@ var FormSelect = function FormSelect(_ref) {
24299
24280
  color: themeValues.labelColor,
24300
24281
  weight: themeValues.fontWeight,
24301
24282
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24302
- id: labelId(labelTextWhenNoError)
24283
+ id: createIdFromString(labelTextWhenNoError)
24303
24284
  }, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
24304
- ariaLabelledby: labelId(labelTextWhenNoError),
24305
- ariaDescribedby: descriptionId(field, labelTextWhenNoError),
24285
+ ariaLabelledby: createIdFromString(labelTextWhenNoError),
24286
+ ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24306
24287
  maxHeight: dropdownMaxHeight,
24307
24288
  widthFitOptions: widthFitOptions,
24308
24289
  hasTitles: hasTitles,
@@ -24324,7 +24305,7 @@ var FormSelect = function FormSelect(_ref) {
24324
24305
  disabled: disabled,
24325
24306
  autocompleteValue: autocompleteValue,
24326
24307
  smoothScroll: smoothScroll,
24327
- isRequired: required
24308
+ isRequired: isRequired
24328
24309
  }), /*#__PURE__*/React__default.createElement(Stack, {
24329
24310
  direction: "row",
24330
24311
  justify: "space-between"
@@ -25095,10 +25076,10 @@ var CountryDropdown = function CountryDropdown(_ref) {
25095
25076
  fieldActions = _ref.fieldActions,
25096
25077
  showErrors = _ref.showErrors,
25097
25078
  onChange = _ref.onChange,
25098
- _ref$dataQa = _ref.dataQa,
25099
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25100
25079
  _ref$isRequired = _ref.isRequired,
25101
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25080
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
25081
+ _ref$dataQa = _ref.dataQa,
25082
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25102
25083
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
25103
25084
  options: options,
25104
25085
  field: field,
@@ -27285,7 +27266,7 @@ var HiddenRadioInput = styled__default.input.withConfig({
27285
27266
  var Circle = styled__default.div.withConfig({
27286
27267
  displayName: "RadioButtonWithLabel__Circle",
27287
27268
  componentId: "sc-1m9whwg-1"
27288
- })(["flex-shrink:0;margin-right:8px;width:1.5rem;height:1.5rem;border:", ";border-radius:50%;box-sizing:border-box;padding:2px;:after{content:\"\";width:100%;height:100%;display:block;background:", ";border-radius:50%;transform:scale(0);}"], function (_ref) {
27269
+ })(["flex-shrink:0;margin-right:8px;width:1.5rem;height 1.5rem;border:", ";border-radius:50%;box-sizing:border-box;padding:2px;:after{content:\"\";width:100%;height:100%;display:block;background:", ";border-radius:50%;transform:scale(0);}"], function (_ref) {
27289
27270
  var inactiveBorderColor = _ref.inactiveBorderColor;
27290
27271
  return "1px solid ".concat(inactiveBorderColor);
27291
27272
  }, function (_ref2) {
@@ -27295,12 +27276,12 @@ var Circle = styled__default.div.withConfig({
27295
27276
  var InputAndLabelContainer = styled__default(Cluster).withConfig({
27296
27277
  displayName: "RadioButtonWithLabel__InputAndLabelContainer",
27297
27278
  componentId: "sc-1m9whwg-2"
27298
- })(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:", ";}", ":focus + label ", "{box-shadow:", ";}"], HiddenRadioInput, Circle, HiddenRadioInput, Circle, function (_ref3) {
27279
+ })(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:", "}", ":focus + label ", "{{box-shadow:", "}"], HiddenRadioInput, Circle, HiddenRadioInput, Circle, function (_ref3) {
27299
27280
  var activeColor = _ref3.activeColor;
27300
- return "1px solid " + activeColor;
27281
+ return "1px solid ".concat(activeColor, ";");
27301
27282
  }, HiddenRadioInput, Circle, function (_ref4) {
27302
27283
  var activeColor = _ref4.activeColor;
27303
- return "0px 0px 2px 1px " + activeColor;
27284
+ return "0px 0px 2px 1px ".concat(activeColor, ";");
27304
27285
  });
27305
27286
 
27306
27287
  var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
@@ -27395,8 +27376,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27395
27376
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27396
27377
  _ref2$ariaLabel = _ref2.ariaLabel,
27397
27378
  ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27398
- _ref2$required = _ref2.required,
27399
- required = _ref2$required === void 0 ? false : _ref2$required;
27379
+ _ref2$isRequired = _ref2.isRequired,
27380
+ isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27400
27381
  var buttonBorder = {
27401
27382
  onFocused: {
27402
27383
  borderColor: themeValues.activeColor,
@@ -27456,11 +27437,10 @@ var RadioButton$1 = function RadioButton(_ref2) {
27456
27437
  type: "radio",
27457
27438
  id: "radio-".concat(name),
27458
27439
  disabled: disabled,
27459
- required: required,
27460
- "aria-required": required,
27461
27440
  onClick: toggleRadio,
27462
27441
  "aria-describedby": ariaDescribedBy,
27463
- tabIndex: "-1"
27442
+ tabIndex: "-1",
27443
+ required: isRequired
27464
27444
  }, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
27465
27445
  borderWidth: "1px",
27466
27446
  borderStyle: "solid",
@@ -39489,7 +39469,6 @@ var AddressForm = function AddressForm(_ref) {
39489
39469
  labelTextWhenNoError: "Country",
39490
39470
  errorMessages: countryErrorMessages,
39491
39471
  field: fields.country,
39492
- isRequired: true,
39493
39472
  onChange: function onChange(value) {
39494
39473
  actions.fields.country.set(value); // temporary measure to not dirty fields until
39495
39474
  // we can write a reset function for fields
@@ -39503,7 +39482,8 @@ var AddressForm = function AddressForm(_ref) {
39503
39482
  }
39504
39483
  },
39505
39484
  showErrors: showErrors,
39506
- dataQa: "Country"
39485
+ dataQa: "Country",
39486
+ isRequired: true
39507
39487
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39508
39488
  labelTextWhenNoError: "Address",
39509
39489
  errorMessages: street1ErrorMessages,
@@ -39525,8 +39505,7 @@ var AddressForm = function AddressForm(_ref) {
39525
39505
  return e.key === "Enter" && handleSubmit(e);
39526
39506
  },
39527
39507
  autocompleteValue: "address-line2",
39528
- dataQa: "Address Line 2",
39529
- isRequired: false
39508
+ dataQa: "Address Line 2"
39530
39509
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39531
39510
  labelTextWhenNoError: "City",
39532
39511
  errorMessages: cityErrorMessages,
@@ -40467,7 +40446,9 @@ var EmailForm = function EmailForm(_ref) {
40467
40446
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40468
40447
  showWalletCheckbox = _ref.showWalletCheckbox,
40469
40448
  saveToWallet = _ref.saveToWallet,
40470
- walletCheckboxMarked = _ref.walletCheckboxMarked;
40449
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
40450
+ _ref$isRequired = _ref.isRequired,
40451
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
40471
40452
 
40472
40453
  if (clearOnDismount) {
40473
40454
  React.useEffect(function () {
@@ -40496,7 +40477,8 @@ var EmailForm = function EmailForm(_ref) {
40496
40477
  },
40497
40478
  isEmail: true,
40498
40479
  autocompleteValue: "email",
40499
- dataQa: "Email address"
40480
+ dataQa: "Email address",
40481
+ isRequired: isRequired
40500
40482
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
40501
40483
  name: "email checkbox",
40502
40484
  title: "Save email address to wallet",
@@ -48066,8 +48048,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48066
48048
  onKeyDown: function onKeyDown(e) {
48067
48049
  return e.key === "Enter" && handleSubmit(e);
48068
48050
  },
48069
- isRequired: true,
48070
- isNum: true
48051
+ isNum: true,
48052
+ isRequired: true
48071
48053
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48072
48054
  labelTextWhenNoError: "Account number",
48073
48055
  dataQa: "Account number",
@@ -48075,7 +48057,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48075
48057
  field: fields.accountNumber,
48076
48058
  fieldActions: actions.fields.accountNumber,
48077
48059
  showErrors: showErrors,
48078
- isRequired: true,
48079
48060
  isNum: true,
48080
48061
  helperModal: function helperModal() {
48081
48062
  return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
@@ -48090,11 +48071,11 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48090
48071
  },
48091
48072
  onKeyDown: function onKeyDown(e) {
48092
48073
  return e.key === "Enter" && handleSubmit(e);
48093
- }
48074
+ },
48075
+ isRequired: true
48094
48076
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48095
48077
  labelTextWhenNoError: "Confirm account number",
48096
48078
  dataQa: "Confirm account number",
48097
- isRequired: true,
48098
48079
  errorMessages: confirmAccountNumberErrors,
48099
48080
  field: fields.confirmAccountNumber,
48100
48081
  fieldActions: actions.fields.confirmAccountNumber,
@@ -48102,10 +48083,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48102
48083
  onKeyDown: function onKeyDown(e) {
48103
48084
  return e.key === "Enter" && handleSubmit(e);
48104
48085
  },
48086
+ isRequired: true,
48105
48087
  isNum: true
48106
48088
  }), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
48107
48089
  labelTextWhenNoError: "Account type",
48108
- isRequired: true,
48109
48090
  dataQa: "Account type",
48110
48091
  options: [{
48111
48092
  text: "Select account type",
@@ -48120,7 +48101,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48120
48101
  fieldActions: actions.fields.accountType,
48121
48102
  showErrors: showErrors,
48122
48103
  errorMessages: accountTypeErrors,
48123
- field: fields.accountType
48104
+ field: fields.accountType,
48105
+ isRequired: true
48124
48106
  }), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48125
48107
  title: "Save as Default Payment Method",
48126
48108
  dataQa: "default-payment-ach",
@@ -48236,7 +48218,6 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48236
48218
  "aria-label": "Card payment"
48237
48219
  }, /*#__PURE__*/React__default.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React__default.createElement(CountryDropdown, {
48238
48220
  labelTextWhenNoError: "Country",
48239
- isRequired: true,
48240
48221
  errorMessages: countryErrorMessages,
48241
48222
  field: fields.country,
48242
48223
  onChange: function onChange(value) {
@@ -48262,7 +48243,6 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48262
48243
  autocompleteValue: "cc-name",
48263
48244
  isRequired: true
48264
48245
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48265
- isRequired: true,
48266
48246
  labelTextWhenNoError: "Credit card number",
48267
48247
  dataQa: "Credit card number",
48268
48248
  errorMessages: creditCardNumberErrors,
@@ -48274,7 +48254,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48274
48254
  return e.key === "Enter" && handleSubmit(e);
48275
48255
  },
48276
48256
  isNum: true,
48277
- autocompleteValue: "cc-number"
48257
+ autocompleteValue: "cc-number",
48258
+ isRequired: true
48278
48259
  }), /*#__PURE__*/React__default.createElement(FormInputRow, {
48279
48260
  breakpoint: isMobile ? "1000rem" : "21rem",
48280
48261
  childGap: isMobile ? "0rem" : "1rem"
@@ -48517,7 +48498,9 @@ var PhoneForm = function PhoneForm(_ref) {
48517
48498
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48518
48499
  showWalletCheckbox = _ref.showWalletCheckbox,
48519
48500
  saveToWallet = _ref.saveToWallet,
48520
- walletCheckboxMarked = _ref.walletCheckboxMarked;
48501
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
48502
+ _ref$isRequired = _ref.isRequired,
48503
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48521
48504
 
48522
48505
  if (clearOnDismount) {
48523
48506
  React.useEffect(function () {
@@ -48544,7 +48527,8 @@ var PhoneForm = function PhoneForm(_ref) {
48544
48527
  },
48545
48528
  autocompleteValue: "tel-national",
48546
48529
  dataQa: "Phone number",
48547
- isNum: true
48530
+ isNum: true,
48531
+ isRequired: isRequired
48548
48532
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48549
48533
  name: "phone checkbox",
48550
48534
  title: "Save phone number to wallet",
@@ -48572,7 +48556,7 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
48572
48556
  var DefaultHeading = styled__default.div.withConfig({
48573
48557
  displayName: "RadioGroup__DefaultHeading",
48574
48558
  componentId: "sc-7lqrl8-0"
48575
- })(["font-size:0.875rem;color:", ";margin:0;padding:8px 0px;"], CHARADE_GREY);
48559
+ })(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
48576
48560
  var StyledFieldset = styled__default.fieldset.withConfig({
48577
48561
  displayName: "RadioGroup__StyledFieldset",
48578
48562
  componentId: "sc-7lqrl8-1"
@@ -48677,7 +48661,9 @@ var RadioSection = function RadioSection(_ref) {
48677
48661
  openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
48678
48662
  _ref$containerStyles = _ref.containerStyles,
48679
48663
  containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
48680
- ariaDescribedBy = _ref.ariaDescribedBy;
48664
+ ariaDescribedBy = _ref.ariaDescribedBy,
48665
+ _ref$isSectionRequire = _ref.isSectionRequired,
48666
+ isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire;
48681
48667
 
48682
48668
  var handleKeyDown = function handleKeyDown(id, e) {
48683
48669
  if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
@@ -48733,7 +48719,8 @@ var RadioSection = function RadioSection(_ref) {
48733
48719
  extraStyles: containerStyles
48734
48720
  }, /*#__PURE__*/React__default.createElement(Stack, {
48735
48721
  childGap: "0",
48736
- role: "radiogroup"
48722
+ "aria-role": "radiogroup",
48723
+ "aria-required": isSectionRequired
48737
48724
  }, sections.filter(function (section) {
48738
48725
  return !section.hidden;
48739
48726
  }).map(function (section) {
@@ -48755,7 +48742,8 @@ var RadioSection = function RadioSection(_ref) {
48755
48742
  extraStyles: borderStyles,
48756
48743
  role: "radio",
48757
48744
  "aria-checked": openSection === section.id,
48758
- "aria-disabled": section.disabled
48745
+ "aria-disabled": section.disabled,
48746
+ "aria-required": section === null || section === void 0 ? void 0 : section.required
48759
48747
  }, /*#__PURE__*/React__default.createElement(Stack, {
48760
48748
  childGap: "0"
48761
48749
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -48794,7 +48782,7 @@ var RadioSection = function RadioSection(_ref) {
48794
48782
  return toggleOpenSection(section.id);
48795
48783
  },
48796
48784
  tabIndex: "-1",
48797
- required: section === null || section === void 0 ? void 0 : section.required
48785
+ isRequired: section === null || section === void 0 ? void 0 : section.required
48798
48786
  })), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
48799
48787
  align: "center"
48800
48788
  }, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {