@thecb/components 7.13.4-beta.3 → 7.13.4-beta.4
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
|
@@ -37979,6 +37979,8 @@ var Card = function Card(_ref) {
|
|
|
37979
37979
|
stackStyles = _ref$stackStyles === void 0 ? "" : _ref$stackStyles,
|
|
37980
37980
|
_ref$coverStyles = _ref.coverStyles,
|
|
37981
37981
|
coverStyles = _ref$coverStyles === void 0 ? "" : _ref$coverStyles,
|
|
37982
|
+
_ref$boxStyles = _ref.boxStyles,
|
|
37983
|
+
boxStyles = _ref$boxStyles === void 0 ? "" : _ref$boxStyles,
|
|
37982
37984
|
children = _ref.children;
|
|
37983
37985
|
var hasImage = Image || imgSrc;
|
|
37984
37986
|
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
|
|
@@ -38010,7 +38012,8 @@ var Card = function Card(_ref) {
|
|
|
38010
38012
|
}), Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
|
|
38011
38013
|
minHeight: imgHeight,
|
|
38012
38014
|
padding: "0",
|
|
38013
|
-
background: themeValues.imageBackgroundColor
|
|
38015
|
+
background: themeValues.imageBackgroundColor,
|
|
38016
|
+
extraStyles: boxStyles
|
|
38014
38017
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
38015
38018
|
minHeight: imgHeight,
|
|
38016
38019
|
singleChild: true
|
|
@@ -38024,12 +38027,12 @@ var Card = function Card(_ref) {
|
|
|
38024
38027
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
38025
38028
|
src: imgSrc,
|
|
38026
38029
|
alt: imgAltText
|
|
38027
|
-
}), text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38030
|
+
}), /*#__PURE__*/React__default.createElement(Box, null, text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38028
38031
|
padding: padding,
|
|
38029
38032
|
titleText: titleText,
|
|
38030
38033
|
text: text,
|
|
38031
38034
|
titleVariant: titleVariant
|
|
38032
|
-
}), children)));
|
|
38035
|
+
}), children))));
|
|
38033
38036
|
};
|
|
38034
38037
|
|
|
38035
38038
|
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
|