@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.d.ts CHANGED
@@ -54,8 +54,8 @@ interface CardProps {
54
54
  borderRadius?: string;
55
55
  width?: string;
56
56
  padding?: string;
57
- stackStyles?: string;
58
- coverStyles?: string;
57
+ boxStyles?: string;
58
+ direction?: "column" | "row";
59
59
  }
60
60
 
61
61
  declare const Card: React.FC<Expand<CardProps> &
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$stackStyles = _ref.stackStyles,
37971
- stackStyles = _ref$stackStyles === void 0 ? "" : _ref$stackStyles,
37972
- _ref$coverStyles = _ref.coverStyles,
37973
- coverStyles = _ref$coverStyles === void 0 ? "" : _ref$coverStyles,
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);