@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.d.ts CHANGED
@@ -54,8 +54,6 @@ interface CardProps {
54
54
  borderRadius?: string;
55
55
  width?: string;
56
56
  padding?: string;
57
- boxStyles?: string;
58
- direction?: "column" | "row";
59
57
  }
60
58
 
61
59
  declare const Card: React.FC<Expand<CardProps> &
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: "0",
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
- }), Image && !imgSrc && /*#__PURE__*/React.createElement(Box, {
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
- extraStyles: boxStyles
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);