@thecb/components 9.5.0-beta.1 → 9.5.0-beta.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.
package/dist/index.esm.js CHANGED
@@ -48860,14 +48860,13 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48860
48860
  "aria-required": section.required,
48861
48861
  "aria-labelledby": ariaLabelledBy,
48862
48862
  "aria-describedby": ariaDescribedBy,
48863
- onClick:
48864
- // This needs to be associated with the same component that has the aria-checked property
48865
- isMobile && supportsTouch || section.disabled ? noop : function () {
48863
+ onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
48866
48864
  return toggleOpenSection(section.id);
48867
48865
  },
48868
48866
  onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
48869
48867
  return toggleOpenSection(section.id);
48870
- } : noop
48868
+ } : noop,
48869
+ dataQa: section.dataQa ? section.dataQa : section.id
48871
48870
  }, /*#__PURE__*/React.createElement(Stack, {
48872
48871
  childGap: "0"
48873
48872
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48877,8 +48876,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48877
48876
  borderSize: "0px",
48878
48877
  borderColor: themeValues.borderColor,
48879
48878
  borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
48880
- extraStyles: !section.disabled ? "cursor: pointer;" : "",
48881
- dataQa: section.dataQa ? section.dataQa : section.id
48879
+ extraStyles: !section.disabled ? "cursor: pointer;" : ""
48882
48880
  }, /*#__PURE__*/React.createElement(Cluster, {
48883
48881
  justify: "space-between",
48884
48882
  align: "center",
@@ -49023,9 +49021,9 @@ var RadioSection = function RadioSection(_ref) {
49023
49021
  extraStyles: containerStyles,
49024
49022
  role: "radiogroup",
49025
49023
  "aria-required": isSectionRequired
49026
- }, rest), /*#__PURE__*/React.createElement(Stack, _extends({
49024
+ }, rest), /*#__PURE__*/React.createElement(Stack, {
49027
49025
  childGap: "0"
49028
- }, rest), !!sections && sections.filter(function (section) {
49026
+ }, !!sections && sections.filter(function (section) {
49029
49027
  return !section.hidden;
49030
49028
  }).map(function (section, i) {
49031
49029
  return /*#__PURE__*/React.createElement(Fragment$1, {