@thecb/components 9.0.3-beta.5 → 9.0.3-beta.7
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
|
@@ -48507,7 +48507,10 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48507
48507
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48508
48508
|
_ref$containerStyles = _ref.containerStyles,
|
|
48509
48509
|
containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
|
|
48510
|
-
ariaDescribedBy = _ref.ariaDescribedBy
|
|
48510
|
+
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48511
|
+
_ref$rightContentRole = _ref.rightContentRole,
|
|
48512
|
+
rightContentRole = _ref$rightContentRole === void 0 ? null : _ref$rightContentRole,
|
|
48513
|
+
_ref$ariaLabel = _ref.ariaLabel;
|
|
48511
48514
|
|
|
48512
48515
|
var handleKeyDown = function handleKeyDown(id, e) {
|
|
48513
48516
|
if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
|
|
@@ -48633,15 +48636,18 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48633
48636
|
color: CHARADE_GREY,
|
|
48634
48637
|
htmlFor: "radio-input-".concat(computeSectionId(section))
|
|
48635
48638
|
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48636
|
-
childGap: "0.5rem"
|
|
48639
|
+
childGap: "0.5rem",
|
|
48640
|
+
"aria-label": rightIconsLabel
|
|
48637
48641
|
}, section.rightIcons.map(function (icon) {
|
|
48638
|
-
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
48642
|
+
return /*#__PURE__*/React__default.createElement(RightIcon, _extends({
|
|
48639
48643
|
src: icon.img,
|
|
48640
48644
|
key: icon.img,
|
|
48641
48645
|
fade: !icon.enabled,
|
|
48642
48646
|
isMobile: isMobile,
|
|
48643
48647
|
alt: icon.altText
|
|
48644
|
-
}
|
|
48648
|
+
}, rightContentRole !== null ? {
|
|
48649
|
+
role: rightContentRole || "presentation"
|
|
48650
|
+
} : {}));
|
|
48645
48651
|
})), section.rightTitleContent && /*#__PURE__*/React__default.createElement(React.Fragment, null, section.rightTitleContent))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
48646
48652
|
initial: false
|
|
48647
48653
|
}, openSection === section.id && /*#__PURE__*/React__default.createElement(Motion, {
|