@thecb/components 8.4.8-beta.3 → 8.4.8-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 CHANGED
@@ -46813,28 +46813,30 @@ var fallbackValues$J = {
46813
46813
  */
46814
46814
 
46815
46815
  var Module = function Module(_ref) {
46816
- var heading = _ref.heading,
46816
+ var _ref$variant = _ref.variant,
46817
+ variant = _ref$variant === void 0 ? "default" : _ref$variant,
46818
+ as = _ref.as,
46819
+ disabled = _ref.disabled,
46820
+ heading = _ref.heading,
46821
+ rightTitleContent = _ref.rightTitleContent,
46822
+ _ref$titleID = _ref.titleID,
46823
+ titleID = _ref$titleID === void 0 ? "" : _ref$titleID,
46817
46824
  _ref$spacing = _ref.spacing,
46818
46825
  spacing = _ref$spacing === void 0 ? "1rem" : _ref$spacing,
46819
46826
  _ref$padding = _ref.padding,
46820
46827
  padding = _ref$padding === void 0 ? "0" : _ref$padding,
46821
- _ref$spacingBottom = _ref.spacingBottom,
46822
- spacingBottom = _ref$spacingBottom === void 0 ? "2.5rem" : _ref$spacingBottom,
46823
46828
  _ref$margin = _ref.margin,
46824
46829
  margin = _ref$margin === void 0 ? "0" : _ref$margin,
46825
- themeValues = _ref.themeValues,
46826
- _ref$variant = _ref.variant,
46827
- variant = _ref$variant === void 0 ? "default" : _ref$variant,
46830
+ _ref$spacingBottom = _ref.spacingBottom,
46831
+ spacingBottom = _ref$spacingBottom === void 0 ? "2.5rem" : _ref$spacingBottom,
46828
46832
  fontSize = _ref.fontSize,
46829
- as = _ref.as,
46830
- _ref$titleID = _ref.titleID,
46831
- titleID = _ref$titleID === void 0 ? "" : _ref$titleID,
46832
- rightTitleContent = _ref.rightTitleContent,
46833
+ themeValues = _ref.themeValues,
46833
46834
  children = _ref.children;
46834
46835
  var themedFontSize = variant === "small" ? "1.25rem" : variant === "default" ? "1.375rem" : "2rem";
46835
46836
  var computedFontSize = fontSize || themedFontSize;
46836
46837
  var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
46837
46838
  var computedElemType = as || themedElemType;
46839
+ var disabledStyles = "opacity: 0.40;";
46838
46840
  var headingText = /*#__PURE__*/React__default.createElement(Title$1, {
46839
46841
  weight: themeValues.fontWeight,
46840
46842
  color: themeValues.fontColor,
@@ -46844,13 +46846,16 @@ var Module = function Module(_ref) {
46844
46846
  extraStyles: "font-size: ".concat(computedFontSize, ";"),
46845
46847
  id: titleID
46846
46848
  }, heading);
46847
- return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && !rightTitleContent && headingText, heading && rightTitleContent && /*#__PURE__*/React__default.createElement(Cluster, {
46849
+ return /*#__PURE__*/React__default.createElement(Box, {
46850
+ padding: "0",
46851
+ extraStyles: disabled && disabledStyles
46852
+ }, heading && !rightTitleContent && headingText, heading && rightTitleContent && /*#__PURE__*/React__default.createElement(Cluster, {
46848
46853
  justify: "space-between",
46849
46854
  align: "center",
46850
46855
  nowrap: true
46851
46856
  }, headingText, rightTitleContent), /*#__PURE__*/React__default.createElement(Box, {
46852
46857
  padding: "0 0 ".concat(spacingBottom),
46853
- margin: margin
46858
+ extraStyles: "margin: ".concat(margin)
46854
46859
  }, /*#__PURE__*/React__default.createElement(Box, {
46855
46860
  padding: padding,
46856
46861
  background: themeValues.backgroundColor,