@thecb/components 9.3.1-beta.5 → 9.3.1-beta.6
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 +6 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +3 -9
- package/src/components/molecules/radio-section/RadioSection.stories.js +14 -0
package/dist/index.cjs.js
CHANGED
|
@@ -48692,7 +48692,6 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48692
48692
|
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48693
48693
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48694
48694
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48695
|
-
_ref$legendText = _ref.legendText,
|
|
48696
48695
|
_ref$sectionGroups = _ref.sectionGroups,
|
|
48697
48696
|
sectionGroups = _ref$sectionGroups === void 0 ? null : _ref$sectionGroups;
|
|
48698
48697
|
|
|
@@ -48787,6 +48786,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48787
48786
|
initial: initiallyOpen ? "open" : "closed",
|
|
48788
48787
|
key: "item-".concat(section.id),
|
|
48789
48788
|
extraStyles: borderStyles,
|
|
48789
|
+
dataQa: section.dataQa,
|
|
48790
48790
|
role: "radio",
|
|
48791
48791
|
"aria-checked": openSection === section.id,
|
|
48792
48792
|
"aria-disabled": section.disabled,
|
|
@@ -48806,8 +48806,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48806
48806
|
borderSize: "0px",
|
|
48807
48807
|
borderColor: themeValues.borderColor,
|
|
48808
48808
|
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
48809
|
-
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48810
|
-
dataQa: section.dataQa ? section.dataQa : section.id
|
|
48809
|
+
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48811
48810
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48812
48811
|
justify: "space-between",
|
|
48813
48812
|
align: "center",
|
|
@@ -48864,8 +48863,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48864
48863
|
extraStyles: "transform-origin: 100% 0;"
|
|
48865
48864
|
}, section.content))));
|
|
48866
48865
|
}));
|
|
48867
|
-
}), sections && sections.filter(function (
|
|
48868
|
-
return !
|
|
48866
|
+
}), sections && sections.filter(function (unfilteredSection) {
|
|
48867
|
+
return !unfilteredSection.hidden;
|
|
48869
48868
|
}).map(function (section) {
|
|
48870
48869
|
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
48871
48870
|
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
@@ -48883,6 +48882,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48883
48882
|
initial: initiallyOpen ? "open" : "closed",
|
|
48884
48883
|
key: "item-".concat(section.id),
|
|
48885
48884
|
extraStyles: borderStyles,
|
|
48885
|
+
dataQa: section.dataQa ? section.dataQa : section.id,
|
|
48886
48886
|
role: "radio",
|
|
48887
48887
|
"aria-checked": openSection === section.id,
|
|
48888
48888
|
"aria-disabled": section.disabled,
|
|
@@ -48902,13 +48902,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48902
48902
|
borderSize: "0px",
|
|
48903
48903
|
borderColor: themeValues.borderColor,
|
|
48904
48904
|
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
48905
|
-
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48906
|
-
dataQa: section.dataQa ? section.dataQa : section.id,
|
|
48907
|
-
role: "radio",
|
|
48908
|
-
"aria-checked": openSection === section.id,
|
|
48909
|
-
"aria-disabled": section.disabled,
|
|
48910
|
-
"aria-required": section === null || section === void 0 ? void 0 : section.required,
|
|
48911
|
-
tabIndex: "0"
|
|
48905
|
+
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48912
48906
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48913
48907
|
justify: "space-between",
|
|
48914
48908
|
align: "center",
|