@thecb/components 7.13.4-beta.1 → 7.13.4-beta.3

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,6 +37975,10 @@ 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$stackStyles = _ref.stackStyles,
37979
+ stackStyles = _ref$stackStyles === void 0 ? "" : _ref$stackStyles,
37980
+ _ref$coverStyles = _ref.coverStyles,
37981
+ coverStyles = _ref$coverStyles === void 0 ? "" : _ref$coverStyles,
37978
37982
  children = _ref.children;
37979
37983
  var hasImage = Image || imgSrc;
37980
37984
  var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
@@ -37988,90 +37992,13 @@ var Card = function Card(_ref) {
37988
37992
  extraStyles: extraStyles
37989
37993
  }, /*#__PURE__*/React__default.createElement(Cover, {
37990
37994
  singleChild: true,
37991
- fillCenter: true
37992
- }, /*#__PURE__*/React__default.createElement(Stack, {
37993
- fullHeight: true,
37994
- childGap: "0",
37995
- bottomItem: numberOfChildren
37996
- }, headerText && /*#__PURE__*/React__default.createElement(CardHeader, {
37997
- headerText: headerText,
37998
- headerColor: themeValues.headerColor,
37999
- headerVariant: headerVariant,
38000
- backgroundColor: themeValues.headerBackgroundColor,
38001
- borderRadius: borderRadius,
38002
- padding: padding,
38003
- as: headerAs
38004
- }), Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
38005
- minHeight: imgHeight,
38006
- padding: "0",
38007
- background: themeValues.imageBackgroundColor
38008
- }, /*#__PURE__*/React__default.createElement(Cover, {
38009
- minHeight: imgHeight,
38010
- singleChild: true
38011
- }, /*#__PURE__*/React__default.createElement(Center, {
38012
- intrinsic: true
38013
- }, /*#__PURE__*/React__default.createElement(Image, {
38014
- alt: imgAltText
38015
- })))), imgSrc && /*#__PURE__*/React__default.createElement(CardImage, {
38016
- height: imgHeight,
38017
- objectFit: imgObjectFit,
38018
- backgroundColor: themeValues.imageBackgroundColor,
38019
- src: imgSrc,
38020
- alt: imgAltText
38021
- }), text && /*#__PURE__*/React__default.createElement(CardText$1, {
38022
- padding: padding,
38023
- titleText: titleText,
38024
- text: text,
38025
- titleVariant: titleVariant
38026
- }), children)));
38027
- };
38028
-
38029
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
38030
-
38031
- var CardAlt = function CardAlt(_ref) {
38032
- var _ref$borderRadius = _ref.borderRadius,
38033
- borderRadius = _ref$borderRadius === void 0 ? "4px" : _ref$borderRadius,
38034
- extraStyles = _ref.extraStyles,
38035
- _ref$headerAs = _ref.headerAs,
38036
- headerAs = _ref$headerAs === void 0 ? "h2" : _ref$headerAs,
38037
- headerText = _ref.headerText,
38038
- _ref$headerVariant = _ref.headerVariant,
38039
- headerVariant = _ref$headerVariant === void 0 ? "small" : _ref$headerVariant,
38040
- imgSrc = _ref.imgSrc,
38041
- Image = _ref.Image,
38042
- _ref$imgHeight = _ref.imgHeight,
38043
- imgHeight = _ref$imgHeight === void 0 ? "150px" : _ref$imgHeight,
38044
- _ref$imgObjectFit = _ref.imgObjectFit,
38045
- imgObjectFit = _ref$imgObjectFit === void 0 ? "none" : _ref$imgObjectFit,
38046
- imgAltText = _ref.imgAltText,
38047
- _ref$padding = _ref.padding,
38048
- padding = _ref$padding === void 0 ? "24px" : _ref$padding,
38049
- text = _ref.text,
38050
- titleText = _ref.titleText,
38051
- _ref$titleVariant = _ref.titleVariant,
38052
- titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
38053
- themeValues = _ref.themeValues,
38054
- _ref$width = _ref.width,
38055
- width = _ref$width === void 0 ? "276px" : _ref$width,
38056
- children = _ref.children;
38057
- var hasImage = Image || imgSrc;
38058
- var numberOfChildren = (Array.isArray(children) ? children.length : 1) + (text ? 1 : 0) + (hasImage ? 1 : 0) + (headerText ? 1 : 0);
38059
- return /*#__PURE__*/React__default.createElement(BoxWithShadow$1, {
38060
- variant: "baseStandard",
38061
- background: themeValues.backgroundColor,
38062
- borderRadius: borderRadius,
38063
- padding: "0",
38064
- margin: "0",
38065
- minWidth: width,
38066
- extraStyles: extraStyles
38067
- }, /*#__PURE__*/React__default.createElement(Cover, {
38068
- singleChild: true,
38069
- fillCenter: true
37995
+ fillCenter: true,
37996
+ extraStyles: coverStyles
38070
37997
  }, /*#__PURE__*/React__default.createElement(Stack, {
38071
37998
  fullHeight: true,
38072
37999
  childGap: "0",
38073
38000
  bottomItem: numberOfChildren,
38074
- direction: "row"
38001
+ extraStyles: stackStyles
38075
38002
  }, headerText && /*#__PURE__*/React__default.createElement(CardHeader, {
38076
38003
  headerText: headerText,
38077
38004
  headerColor: themeValues.headerColor,
@@ -38105,7 +38032,7 @@ var CardAlt = function CardAlt(_ref) {
38105
38032
  }), children)));
38106
38033
  };
38107
38034
 
38108
- var CardAlt$1 = themeComponent(withWindowSize(CardAlt), "CardAlt", fallbackValues$x);
38035
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
38109
38036
 
38110
38037
  var fontFamily$6 = "Public Sans, sans-serif";
38111
38038
  var activeColor$6 = MATISSE_BLUE;
@@ -50134,7 +50061,6 @@ exports.ButtonWithAction = ButtonWithAction;
50134
50061
  exports.ButtonWithLink = ButtonWithLink;
50135
50062
  exports.CalendarIcon = CalendarIcon;
50136
50063
  exports.Card = Card$1;
50137
- exports.CardAlt = CardAlt$1;
50138
50064
  exports.CarrotIcon = CarrotIcon$1;
50139
50065
  exports.CashIcon = CashIcon;
50140
50066
  exports.Center = Center;