@thecb/components 7.13.4-beta.3 → 7.13.4-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 +10 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +10 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +15 -11
- package/src/components/atoms/card/index.d.ts +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -37975,10 +37975,10 @@ var Card = function Card(_ref) {
|
|
|
37975
37975
|
themeValues = _ref.themeValues,
|
|
37976
37976
|
_ref$width = _ref.width,
|
|
37977
37977
|
width = _ref$width === void 0 ? "276px" : _ref$width,
|
|
37978
|
-
_ref$
|
|
37979
|
-
|
|
37980
|
-
_ref$
|
|
37981
|
-
|
|
37978
|
+
_ref$stackDirection = _ref.stackDirection,
|
|
37979
|
+
stackDirection = _ref$stackDirection === void 0 ? "column" : _ref$stackDirection,
|
|
37980
|
+
_ref$boxStyles = _ref.boxStyles,
|
|
37981
|
+
boxStyles = _ref$boxStyles === void 0 ? "" : _ref$boxStyles,
|
|
37982
37982
|
children = _ref.children;
|
|
37983
37983
|
var hasImage = Image || imgSrc;
|
|
37984
37984
|
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
|
|
@@ -37998,7 +37998,8 @@ var Card = function Card(_ref) {
|
|
|
37998
37998
|
fullHeight: true,
|
|
37999
37999
|
childGap: "0",
|
|
38000
38000
|
bottomItem: numberOfChildren,
|
|
38001
|
-
extraStyles: stackStyles
|
|
38001
|
+
extraStyles: stackStyles,
|
|
38002
|
+
direction: stackDirection
|
|
38002
38003
|
}, headerText && /*#__PURE__*/React__default.createElement(CardHeader, {
|
|
38003
38004
|
headerText: headerText,
|
|
38004
38005
|
headerColor: themeValues.headerColor,
|
|
@@ -38010,7 +38011,8 @@ var Card = function Card(_ref) {
|
|
|
38010
38011
|
}), Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
|
|
38011
38012
|
minHeight: imgHeight,
|
|
38012
38013
|
padding: "0",
|
|
38013
|
-
background: themeValues.imageBackgroundColor
|
|
38014
|
+
background: themeValues.imageBackgroundColor,
|
|
38015
|
+
extraStyles: boxStyles
|
|
38014
38016
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
38015
38017
|
minHeight: imgHeight,
|
|
38016
38018
|
singleChild: true
|
|
@@ -38024,12 +38026,12 @@ var Card = function Card(_ref) {
|
|
|
38024
38026
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
38025
38027
|
src: imgSrc,
|
|
38026
38028
|
alt: imgAltText
|
|
38027
|
-
}), text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38029
|
+
}), /*#__PURE__*/React__default.createElement(Box, null, text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38028
38030
|
padding: padding,
|
|
38029
38031
|
titleText: titleText,
|
|
38030
38032
|
text: text,
|
|
38031
38033
|
titleVariant: titleVariant
|
|
38032
|
-
}), children)));
|
|
38034
|
+
}), children))));
|
|
38033
38035
|
};
|
|
38034
38036
|
|
|
38035
38037
|
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
|