@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 CHANGED
@@ -37975,10 +37975,8 @@ var Card = function Card(_ref) {
37975
37975
  themeValues = _ref.themeValues,
37976
37976
  _ref$width = _ref.width,
37977
37977
  width = _ref$width === void 0 ? "276px" : _ref$width,
37978
- _ref$stackDirection = _ref.stackDirection,
37979
- stackDirection = _ref$stackDirection === void 0 ? "column" : _ref$stackDirection,
37980
- _ref$boxStyles = _ref.boxStyles,
37981
- boxStyles = _ref$boxStyles === void 0 ? "" : _ref$boxStyles,
37978
+ _ref$direction = _ref.direction,
37979
+ direction = _ref$direction === void 0 ? "column" : _ref$direction,
37982
37980
  children = _ref.children;
37983
37981
  var hasImage = Image || imgSrc;
37984
37982
  var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
@@ -37992,14 +37990,12 @@ var Card = function Card(_ref) {
37992
37990
  extraStyles: extraStyles
37993
37991
  }, /*#__PURE__*/React__default.createElement(Cover, {
37994
37992
  singleChild: true,
37995
- fillCenter: true,
37996
- extraStyles: coverStyles
37993
+ fillCenter: true
37997
37994
  }, /*#__PURE__*/React__default.createElement(Stack, {
37998
37995
  fullHeight: true,
37999
37996
  childGap: "0",
38000
37997
  bottomItem: numberOfChildren,
38001
- extraStyles: stackStyles,
38002
- direction: stackDirection
37998
+ direction: direction
38003
37999
  }, headerText && /*#__PURE__*/React__default.createElement(CardHeader, {
38004
38000
  headerText: headerText,
38005
38001
  headerColor: themeValues.headerColor,
@@ -38011,8 +38007,7 @@ var Card = function Card(_ref) {
38011
38007
  }), Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
38012
38008
  minHeight: imgHeight,
38013
38009
  padding: "0",
38014
- background: themeValues.imageBackgroundColor,
38015
- extraStyles: boxStyles
38010
+ background: themeValues.imageBackgroundColor
38016
38011
  }, /*#__PURE__*/React__default.createElement(Cover, {
38017
38012
  minHeight: imgHeight,
38018
38013
  singleChild: true
@@ -38026,7 +38021,9 @@ var Card = function Card(_ref) {
38026
38021
  backgroundColor: themeValues.imageBackgroundColor,
38027
38022
  src: imgSrc,
38028
38023
  alt: imgAltText
38029
- }), /*#__PURE__*/React__default.createElement(Box, null, text && /*#__PURE__*/React__default.createElement(CardText$1, {
38024
+ }), /*#__PURE__*/React__default.createElement(Box, {
38025
+ padding: "0"
38026
+ }, text && /*#__PURE__*/React__default.createElement(CardText$1, {
38030
38027
  padding: padding,
38031
38028
  titleText: titleText,
38032
38029
  text: text,