@thecb/components 9.5.0-beta.4 → 9.5.0-beta.5
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 +5 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +8 -5
- package/src/components/molecules/radio-section/RadioSection.stories.js +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -48949,6 +48949,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
48949
48949
|
var InnerRadioSection$1 = themeComponent(InnerRadioSection, "InnerRadioSection", fallbackValues$R);
|
|
48950
48950
|
|
|
48951
48951
|
var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
48952
|
+
|
|
48952
48953
|
/**
|
|
48953
48954
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
48954
48955
|
prop) of section objects or a multidimensional array (via the 'groupedSections' prop) of section objects. Note that if using a multidimensional array, the nesting cannot exceed 2 levels deep.
|
|
@@ -49054,14 +49055,14 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49054
49055
|
ariaLabelledBy: section.id,
|
|
49055
49056
|
ariaDescribedBy: "right-icons-".concat(idString$1(section))
|
|
49056
49057
|
}));
|
|
49057
|
-
}), !!groupedSections && groupedSections.map(function (sectionGroup,
|
|
49058
|
+
}), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupIndex) {
|
|
49058
49059
|
return sectionGroup.filter(function (unfilteredSection) {
|
|
49059
49060
|
return !unfilteredSection.hidden;
|
|
49060
49061
|
}).map(function (section, sectionIndex) {
|
|
49061
49062
|
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49062
|
-
key: "key-".concat(
|
|
49063
|
+
key: "key-".concat(sectionGroupIndex, "-").concat(sectionIndex)
|
|
49063
49064
|
}, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
|
|
49064
|
-
sectionIndex: "
|
|
49065
|
+
sectionIndex: "".concat(sectionGroupIndex, "-").concat(sectionIndex),
|
|
49065
49066
|
section: section,
|
|
49066
49067
|
sectionRefs: sectionRefs,
|
|
49067
49068
|
focused: focused,
|
|
@@ -49073,7 +49074,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49073
49074
|
toggleOpenSection: toggleOpenSection
|
|
49074
49075
|
}), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React__default.createElement(SolidDivider$1, {
|
|
49075
49076
|
borderSize: "2px",
|
|
49076
|
-
color:
|
|
49077
|
+
color: themeValues.borderColor
|
|
49077
49078
|
}));
|
|
49078
49079
|
});
|
|
49079
49080
|
})));
|