@thecb/components 7.13.4-beta.5 → 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 +8 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -11
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +4 -7
package/dist/index.esm.js
CHANGED
|
@@ -37967,10 +37967,8 @@ 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$boxStyles = _ref.boxStyles,
|
|
37973
|
-
boxStyles = _ref$boxStyles === void 0 ? "" : _ref$boxStyles,
|
|
37970
|
+
_ref$direction = _ref.direction,
|
|
37971
|
+
direction = _ref$direction === void 0 ? "column" : _ref$direction,
|
|
37974
37972
|
children = _ref.children;
|
|
37975
37973
|
var hasImage = Image || imgSrc;
|
|
37976
37974
|
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
|
|
@@ -37984,14 +37982,12 @@ var Card = function Card(_ref) {
|
|
|
37984
37982
|
extraStyles: extraStyles
|
|
37985
37983
|
}, /*#__PURE__*/React.createElement(Cover, {
|
|
37986
37984
|
singleChild: true,
|
|
37987
|
-
fillCenter: true
|
|
37988
|
-
extraStyles: coverStyles
|
|
37985
|
+
fillCenter: true
|
|
37989
37986
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
37990
37987
|
fullHeight: true,
|
|
37991
37988
|
childGap: "0",
|
|
37992
37989
|
bottomItem: numberOfChildren,
|
|
37993
|
-
|
|
37994
|
-
direction: stackDirection
|
|
37990
|
+
direction: direction
|
|
37995
37991
|
}, headerText && /*#__PURE__*/React.createElement(CardHeader, {
|
|
37996
37992
|
headerText: headerText,
|
|
37997
37993
|
headerColor: themeValues.headerColor,
|
|
@@ -38003,8 +37999,7 @@ var Card = function Card(_ref) {
|
|
|
38003
37999
|
}), Image && !imgSrc && /*#__PURE__*/React.createElement(Box, {
|
|
38004
38000
|
minHeight: imgHeight,
|
|
38005
38001
|
padding: "0",
|
|
38006
|
-
background: themeValues.imageBackgroundColor
|
|
38007
|
-
extraStyles: boxStyles
|
|
38002
|
+
background: themeValues.imageBackgroundColor
|
|
38008
38003
|
}, /*#__PURE__*/React.createElement(Cover, {
|
|
38009
38004
|
minHeight: imgHeight,
|
|
38010
38005
|
singleChild: true
|
|
@@ -38018,7 +38013,9 @@ var Card = function Card(_ref) {
|
|
|
38018
38013
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
38019
38014
|
src: imgSrc,
|
|
38020
38015
|
alt: imgAltText
|
|
38021
|
-
}), /*#__PURE__*/React.createElement(Box,
|
|
38016
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
38017
|
+
padding: "0"
|
|
38018
|
+
}, text && /*#__PURE__*/React.createElement(CardText$1, {
|
|
38022
38019
|
padding: padding,
|
|
38023
38020
|
titleText: titleText,
|
|
38024
38021
|
text: text,
|