@thecb/components 7.13.4-beta.6 → 7.13.4-beta.7
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
|
@@ -37977,8 +37977,6 @@ var Card = function Card(_ref) {
|
|
|
37977
37977
|
width = _ref$width === void 0 ? "276px" : _ref$width,
|
|
37978
37978
|
_ref$direction = _ref.direction,
|
|
37979
37979
|
direction = _ref$direction === void 0 ? "column" : _ref$direction,
|
|
37980
|
-
_ref$boxStyles = _ref.boxStyles,
|
|
37981
|
-
boxStyles = _ref$boxStyles === void 0 ? "" : _ref$boxStyles,
|
|
37982
37980
|
children = _ref.children;
|
|
37983
37981
|
var hasImage = Image || imgSrc;
|
|
37984
37982
|
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
|
|
@@ -38009,8 +38007,7 @@ var Card = function Card(_ref) {
|
|
|
38009
38007
|
}), Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
|
|
38010
38008
|
minHeight: imgHeight,
|
|
38011
38009
|
padding: "0",
|
|
38012
|
-
background: themeValues.imageBackgroundColor
|
|
38013
|
-
extraStyles: boxStyles
|
|
38010
|
+
background: themeValues.imageBackgroundColor
|
|
38014
38011
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
38015
38012
|
minHeight: imgHeight,
|
|
38016
38013
|
singleChild: true
|
|
@@ -38024,7 +38021,9 @@ var Card = function Card(_ref) {
|
|
|
38024
38021
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
38025
38022
|
src: imgSrc,
|
|
38026
38023
|
alt: imgAltText
|
|
38027
|
-
}), /*#__PURE__*/React__default.createElement(Box,
|
|
38024
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
38025
|
+
padding: "0"
|
|
38026
|
+
}, text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38028
38027
|
padding: padding,
|
|
38029
38028
|
titleText: titleText,
|
|
38030
38029
|
text: text,
|