@thecb/components 8.4.8-beta.1 → 8.4.8-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.cjs.js +11 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/solid-divider/SolidDivider.js +4 -4
- package/src/components/molecules/module/Module.js +2 -1
- package/src/components/molecules/radio-section/RadioSection.js +113 -121
package/dist/index.cjs.js
CHANGED
|
@@ -27350,14 +27350,16 @@ var fallbackValues$x = {
|
|
|
27350
27350
|
};
|
|
27351
27351
|
|
|
27352
27352
|
var SolidDivider = function SolidDivider(_ref) {
|
|
27353
|
-
var
|
|
27353
|
+
var borderColor = _ref.borderColor,
|
|
27354
|
+
borderSize = _ref.borderSize,
|
|
27355
|
+
themeValues = _ref.themeValues;
|
|
27354
27356
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
27355
27357
|
padding: "0",
|
|
27356
27358
|
minWidth: "100%",
|
|
27357
27359
|
minHeight: "1px",
|
|
27358
|
-
borderColor: themeValues.borderColor,
|
|
27359
|
-
borderSize: themeValues.borderSize,
|
|
27360
|
-
borderWidthOverride: "0px 0px ".concat(themeValues.borderSize, " 0px")
|
|
27360
|
+
borderColor: borderColor || themeValues.borderColor,
|
|
27361
|
+
borderSize: borderSize || themeValues.borderSize,
|
|
27362
|
+
borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
|
|
27361
27363
|
});
|
|
27362
27364
|
};
|
|
27363
27365
|
|
|
@@ -46818,6 +46820,8 @@ var Module = function Module(_ref) {
|
|
|
46818
46820
|
padding = _ref$padding === void 0 ? "0" : _ref$padding,
|
|
46819
46821
|
_ref$spacingBottom = _ref.spacingBottom,
|
|
46820
46822
|
spacingBottom = _ref$spacingBottom === void 0 ? "2.5rem" : _ref$spacingBottom,
|
|
46823
|
+
_ref$margin = _ref.margin,
|
|
46824
|
+
margin = _ref$margin === void 0 ? "0" : _ref$margin,
|
|
46821
46825
|
themeValues = _ref.themeValues,
|
|
46822
46826
|
_ref$variant = _ref.variant,
|
|
46823
46827
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
@@ -46845,7 +46849,8 @@ var Module = function Module(_ref) {
|
|
|
46845
46849
|
align: "center",
|
|
46846
46850
|
nowrap: true
|
|
46847
46851
|
}, headingText, rightTitleContent), /*#__PURE__*/React__default.createElement(Box, {
|
|
46848
|
-
padding: "0 0 ".concat(spacingBottom)
|
|
46852
|
+
padding: "0 0 ".concat(spacingBottom),
|
|
46853
|
+
margin: margin
|
|
46849
46854
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46850
46855
|
padding: padding,
|
|
46851
46856
|
background: themeValues.backgroundColor,
|
|
@@ -49431,8 +49436,6 @@ var fallbackValues$Q = {
|
|
|
49431
49436
|
dataQa: string,
|
|
49432
49437
|
content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work),
|
|
49433
49438
|
rightTitleContent: <React Component(s)> (rendered on the very right of the title section, use to supplement "rightIcons" with text, as in expired CC status, or render other custom content)
|
|
49434
|
-
contentOverride: <React Component(s)> (Replace the radio section and the containers with different content,
|
|
49435
|
-
intended for inserting a divider bar or other non-interactive css)
|
|
49436
49439
|
}
|
|
49437
49440
|
|
|
49438
49441
|
Also takes an "openSection" which should equal the id of the section that should be open
|
|
@@ -49521,7 +49524,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49521
49524
|
}, sections.filter(function (section) {
|
|
49522
49525
|
return !section.hidden;
|
|
49523
49526
|
}).map(function (section) {
|
|
49524
|
-
return
|
|
49527
|
+
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
49525
49528
|
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
49526
49529
|
onKeyDown: function onKeyDown(e) {
|
|
49527
49530
|
return !section.disabled && handleKeyDown(section.id, e);
|