@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.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -37967,10 +37967,10 @@ var Card = function Card(_ref) {
|
|
|
37967
37967
|
themeValues = _ref.themeValues,
|
|
37968
37968
|
_ref$width = _ref.width,
|
|
37969
37969
|
width = _ref$width === void 0 ? "276px" : _ref$width,
|
|
37970
|
-
_ref$
|
|
37971
|
-
|
|
37972
|
-
_ref$
|
|
37973
|
-
|
|
37970
|
+
_ref$stackDirection = _ref.stackDirection,
|
|
37971
|
+
stackDirection = _ref$stackDirection === void 0 ? "column" : _ref$stackDirection,
|
|
37972
|
+
_ref$boxStyles = _ref.boxStyles,
|
|
37973
|
+
boxStyles = _ref$boxStyles === void 0 ? "" : _ref$boxStyles,
|
|
37974
37974
|
children = _ref.children;
|
|
37975
37975
|
var hasImage = Image || imgSrc;
|
|
37976
37976
|
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
|
|
@@ -37990,7 +37990,8 @@ var Card = function Card(_ref) {
|
|
|
37990
37990
|
fullHeight: true,
|
|
37991
37991
|
childGap: "0",
|
|
37992
37992
|
bottomItem: numberOfChildren,
|
|
37993
|
-
extraStyles: stackStyles
|
|
37993
|
+
extraStyles: stackStyles,
|
|
37994
|
+
direction: stackDirection
|
|
37994
37995
|
}, headerText && /*#__PURE__*/React.createElement(CardHeader, {
|
|
37995
37996
|
headerText: headerText,
|
|
37996
37997
|
headerColor: themeValues.headerColor,
|
|
@@ -38002,7 +38003,8 @@ var Card = function Card(_ref) {
|
|
|
38002
38003
|
}), Image && !imgSrc && /*#__PURE__*/React.createElement(Box, {
|
|
38003
38004
|
minHeight: imgHeight,
|
|
38004
38005
|
padding: "0",
|
|
38005
|
-
background: themeValues.imageBackgroundColor
|
|
38006
|
+
background: themeValues.imageBackgroundColor,
|
|
38007
|
+
extraStyles: boxStyles
|
|
38006
38008
|
}, /*#__PURE__*/React.createElement(Cover, {
|
|
38007
38009
|
minHeight: imgHeight,
|
|
38008
38010
|
singleChild: true
|
|
@@ -38016,12 +38018,12 @@ var Card = function Card(_ref) {
|
|
|
38016
38018
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
38017
38019
|
src: imgSrc,
|
|
38018
38020
|
alt: imgAltText
|
|
38019
|
-
}), text && /*#__PURE__*/React.createElement(CardText$1, {
|
|
38021
|
+
}), /*#__PURE__*/React.createElement(Box, null, text && /*#__PURE__*/React.createElement(CardText$1, {
|
|
38020
38022
|
padding: padding,
|
|
38021
38023
|
titleText: titleText,
|
|
38022
38024
|
text: text,
|
|
38023
38025
|
titleVariant: titleVariant
|
|
38024
|
-
}), children)));
|
|
38026
|
+
}), children))));
|
|
38025
38027
|
};
|
|
38026
38028
|
|
|
38027
38029
|
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
|