@thecb/components 7.13.4-beta.9 → 8.0.0
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 +11 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +35 -38
package/dist/index.cjs.js
CHANGED
|
@@ -37987,13 +37987,11 @@ var Card = function Card(_ref) {
|
|
|
37987
37987
|
minWidth: width,
|
|
37988
37988
|
extraStyles: extraStyles
|
|
37989
37989
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
37990
|
-
singleChild: true
|
|
37991
|
-
fillCenter: true
|
|
37990
|
+
singleChild: true
|
|
37992
37991
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
37993
37992
|
fullHeight: true,
|
|
37994
|
-
childGap: "
|
|
37995
|
-
bottomItem: numberOfChildren
|
|
37996
|
-
direction: "row"
|
|
37993
|
+
childGap: "1.5rem",
|
|
37994
|
+
bottomItem: numberOfChildren
|
|
37997
37995
|
}, headerText && /*#__PURE__*/React__default.createElement(CardHeader, {
|
|
37998
37996
|
headerText: headerText,
|
|
37999
37997
|
headerColor: themeValues.headerColor,
|
|
@@ -38002,7 +38000,10 @@ var Card = function Card(_ref) {
|
|
|
38002
38000
|
borderRadius: borderRadius,
|
|
38003
38001
|
padding: padding,
|
|
38004
38002
|
as: headerAs
|
|
38005
|
-
}),
|
|
38003
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
38004
|
+
direction: "row",
|
|
38005
|
+
childGap: "0"
|
|
38006
|
+
}, Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
|
|
38006
38007
|
minHeight: imgHeight,
|
|
38007
38008
|
padding: "0",
|
|
38008
38009
|
background: themeValues.imageBackgroundColor
|
|
@@ -38020,13 +38021,15 @@ var Card = function Card(_ref) {
|
|
|
38020
38021
|
src: imgSrc,
|
|
38021
38022
|
alt: imgAltText
|
|
38022
38023
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
38023
|
-
padding: "0"
|
|
38024
|
+
padding: "0",
|
|
38025
|
+
width: "100%",
|
|
38026
|
+
extraStyles: "flex-basis: 100%;"
|
|
38024
38027
|
}, text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38025
38028
|
padding: padding,
|
|
38026
38029
|
titleText: titleText,
|
|
38027
38030
|
text: text,
|
|
38028
38031
|
titleVariant: titleVariant
|
|
38029
|
-
}), children))));
|
|
38032
|
+
}), children)))));
|
|
38030
38033
|
};
|
|
38031
38034
|
|
|
38032
38035
|
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
|