@thecb/components 9.3.1-beta.4 → 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 +16 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/solid-divider/SolidDivider.js +7 -1
- package/src/components/molecules/radio-section/RadioSection.js +11 -13
- package/src/components/molecules/radio-section/RadioSection.stories.js +14 -0
package/dist/index.esm.js
CHANGED
|
@@ -27569,14 +27569,17 @@ var fallbackValues$x = {
|
|
|
27569
27569
|
var SolidDivider = function SolidDivider(_ref) {
|
|
27570
27570
|
var borderColor = _ref.borderColor,
|
|
27571
27571
|
borderSize = _ref.borderSize,
|
|
27572
|
-
themeValues = _ref.themeValues
|
|
27572
|
+
themeValues = _ref.themeValues,
|
|
27573
|
+
_ref$extraStyles = _ref.extraStyles,
|
|
27574
|
+
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
|
|
27573
27575
|
return /*#__PURE__*/React.createElement(Box, {
|
|
27574
27576
|
padding: "0",
|
|
27575
27577
|
minWidth: "100%",
|
|
27576
27578
|
minHeight: "1px",
|
|
27577
27579
|
borderColor: borderColor || themeValues.borderColor,
|
|
27578
27580
|
borderSize: borderSize || themeValues.borderSize,
|
|
27579
|
-
borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
|
|
27581
|
+
borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px"),
|
|
27582
|
+
extraStyles: extraStyles
|
|
27580
27583
|
});
|
|
27581
27584
|
};
|
|
27582
27585
|
|
|
@@ -48681,7 +48684,6 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48681
48684
|
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48682
48685
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48683
48686
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48684
|
-
_ref$legendText = _ref.legendText,
|
|
48685
48687
|
_ref$sectionGroups = _ref.sectionGroups,
|
|
48686
48688
|
sectionGroups = _ref$sectionGroups === void 0 ? null : _ref$sectionGroups;
|
|
48687
48689
|
|
|
@@ -48736,12 +48738,14 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48736
48738
|
var themeValues = _ref5.themeValues;
|
|
48737
48739
|
return /*#__PURE__*/React.createElement(SolidDivider$1, {
|
|
48738
48740
|
borderSize: "2px",
|
|
48739
|
-
|
|
48741
|
+
borderRadius: "0 0 0 0",
|
|
48742
|
+
color: themeValues.borderColor,
|
|
48743
|
+
extraStyles: "margin-left: -1px; margin-right: -1px; width: cacl(100% + 2px);"
|
|
48740
48744
|
});
|
|
48741
48745
|
};
|
|
48742
48746
|
|
|
48743
48747
|
return /*#__PURE__*/React.createElement(Box, {
|
|
48744
|
-
padding: "
|
|
48748
|
+
padding: "1px",
|
|
48745
48749
|
border: "1px solid ".concat(themeValues.borderColor),
|
|
48746
48750
|
borderRadius: "4px",
|
|
48747
48751
|
extraStyles: containerStyles
|
|
@@ -48753,7 +48757,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48753
48757
|
}, sectionGroups && sectionGroups.map(function (sectionGroup) {
|
|
48754
48758
|
return /*#__PURE__*/React.createElement(Fragment$1, {
|
|
48755
48759
|
key: "sectiongroup-".concat(sectionGroups.indexOf(sectionGroup))
|
|
48756
|
-
}, sectionGroups.indexOf(sectionGroup)
|
|
48760
|
+
}, sectionGroups.indexOf(sectionGroup) !== 0 ? /*#__PURE__*/React.createElement(PrependedItem, {
|
|
48757
48761
|
themeValues: themeValues
|
|
48758
48762
|
}) : "", sectionGroup.filter(function (unfilteredSection) {
|
|
48759
48763
|
return !unfilteredSection.hidden;
|
|
@@ -48774,6 +48778,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48774
48778
|
initial: initiallyOpen ? "open" : "closed",
|
|
48775
48779
|
key: "item-".concat(section.id),
|
|
48776
48780
|
extraStyles: borderStyles,
|
|
48781
|
+
dataQa: section.dataQa,
|
|
48777
48782
|
role: "radio",
|
|
48778
48783
|
"aria-checked": openSection === section.id,
|
|
48779
48784
|
"aria-disabled": section.disabled,
|
|
@@ -48793,8 +48798,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48793
48798
|
borderSize: "0px",
|
|
48794
48799
|
borderColor: themeValues.borderColor,
|
|
48795
48800
|
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
48796
|
-
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48797
|
-
dataQa: section.dataQa ? section.dataQa : section.id
|
|
48801
|
+
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48798
48802
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
48799
48803
|
justify: "space-between",
|
|
48800
48804
|
align: "center",
|
|
@@ -48851,8 +48855,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48851
48855
|
extraStyles: "transform-origin: 100% 0;"
|
|
48852
48856
|
}, section.content))));
|
|
48853
48857
|
}));
|
|
48854
|
-
}), sections && sections.filter(function (
|
|
48855
|
-
return !
|
|
48858
|
+
}), sections && sections.filter(function (unfilteredSection) {
|
|
48859
|
+
return !unfilteredSection.hidden;
|
|
48856
48860
|
}).map(function (section) {
|
|
48857
48861
|
return /*#__PURE__*/React.createElement(Motion, {
|
|
48858
48862
|
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
@@ -48870,6 +48874,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48870
48874
|
initial: initiallyOpen ? "open" : "closed",
|
|
48871
48875
|
key: "item-".concat(section.id),
|
|
48872
48876
|
extraStyles: borderStyles,
|
|
48877
|
+
dataQa: section.dataQa ? section.dataQa : section.id,
|
|
48873
48878
|
role: "radio",
|
|
48874
48879
|
"aria-checked": openSection === section.id,
|
|
48875
48880
|
"aria-disabled": section.disabled,
|
|
@@ -48889,13 +48894,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48889
48894
|
borderSize: "0px",
|
|
48890
48895
|
borderColor: themeValues.borderColor,
|
|
48891
48896
|
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
48892
|
-
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48893
|
-
dataQa: section.dataQa ? section.dataQa : section.id,
|
|
48894
|
-
role: "radio",
|
|
48895
|
-
"aria-checked": openSection === section.id,
|
|
48896
|
-
"aria-disabled": section.disabled,
|
|
48897
|
-
"aria-required": section === null || section === void 0 ? void 0 : section.required,
|
|
48898
|
-
tabIndex: "0"
|
|
48897
|
+
extraStyles: !section.disabled ? "cursor: pointer;" : ""
|
|
48899
48898
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
48900
48899
|
justify: "space-between",
|
|
48901
48900
|
align: "center",
|