@thecb/components 7.13.4-beta.8 → 8.0.0-beta.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 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.esm.js +11 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +36 -41
- package/src/components/atoms/card/index.d.ts +0 -2
- package/src/components/atoms/cardAlt/CardAlt.js +0 -113
- package/src/components/atoms/cardAlt/index.js +0 -3
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -37967,10 +37967,6 @@ 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$direction = _ref.direction,
|
|
37971
|
-
direction = _ref$direction === void 0 ? "column" : _ref$direction,
|
|
37972
|
-
_ref$boxStyles = _ref.boxStyles,
|
|
37973
|
-
boxStyles = _ref$boxStyles === void 0 ? "" : _ref$boxStyles,
|
|
37974
37970
|
children = _ref.children;
|
|
37975
37971
|
var hasImage = Image || imgSrc;
|
|
37976
37972
|
var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
|
|
@@ -37983,13 +37979,11 @@ var Card = function Card(_ref) {
|
|
|
37983
37979
|
minWidth: width,
|
|
37984
37980
|
extraStyles: extraStyles
|
|
37985
37981
|
}, /*#__PURE__*/React.createElement(Cover, {
|
|
37986
|
-
singleChild: true
|
|
37987
|
-
fillCenter: true
|
|
37982
|
+
singleChild: true
|
|
37988
37983
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
37989
37984
|
fullHeight: true,
|
|
37990
|
-
childGap: "
|
|
37991
|
-
bottomItem: numberOfChildren
|
|
37992
|
-
direction: direction
|
|
37985
|
+
childGap: "1.5rem",
|
|
37986
|
+
bottomItem: numberOfChildren
|
|
37993
37987
|
}, headerText && /*#__PURE__*/React.createElement(CardHeader, {
|
|
37994
37988
|
headerText: headerText,
|
|
37995
37989
|
headerColor: themeValues.headerColor,
|
|
@@ -37998,7 +37992,10 @@ var Card = function Card(_ref) {
|
|
|
37998
37992
|
borderRadius: borderRadius,
|
|
37999
37993
|
padding: padding,
|
|
38000
37994
|
as: headerAs
|
|
38001
|
-
}),
|
|
37995
|
+
}), /*#__PURE__*/React.createElement(Stack, {
|
|
37996
|
+
direction: "row",
|
|
37997
|
+
childGap: "0"
|
|
37998
|
+
}, Image && !imgSrc && /*#__PURE__*/React.createElement(Box, {
|
|
38002
37999
|
minHeight: imgHeight,
|
|
38003
38000
|
padding: "0",
|
|
38004
38001
|
background: themeValues.imageBackgroundColor
|
|
@@ -38016,13 +38013,15 @@ var Card = function Card(_ref) {
|
|
|
38016
38013
|
src: imgSrc,
|
|
38017
38014
|
alt: imgAltText
|
|
38018
38015
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
38019
|
-
|
|
38016
|
+
padding: "0",
|
|
38017
|
+
width: "100%",
|
|
38018
|
+
extraStyles: "flex-basis: 100%;"
|
|
38020
38019
|
}, text && /*#__PURE__*/React.createElement(CardText$1, {
|
|
38021
38020
|
padding: padding,
|
|
38022
38021
|
titleText: titleText,
|
|
38023
38022
|
text: text,
|
|
38024
38023
|
titleVariant: titleVariant
|
|
38025
|
-
}), children))));
|
|
38024
|
+
}), children)))));
|
|
38026
38025
|
};
|
|
38027
38026
|
|
|
38028
38027
|
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
|