@thecb/components 7.13.4-beta.1 → 7.13.4-beta.10
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 +8 -83
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -83
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +35 -31
- package/src/components/atoms/index.js +0 -1
- package/src/components/atoms/cardAlt/CardAlt.js +0 -113
- package/src/components/atoms/cardAlt/index.js +0 -3
package/dist/index.cjs.js
CHANGED
|
@@ -38001,7 +38001,10 @@ var Card = function Card(_ref) {
|
|
|
38001
38001
|
borderRadius: borderRadius,
|
|
38002
38002
|
padding: padding,
|
|
38003
38003
|
as: headerAs
|
|
38004
|
-
}),
|
|
38004
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
38005
|
+
direction: "row",
|
|
38006
|
+
childGap: "0"
|
|
38007
|
+
}, Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
|
|
38005
38008
|
minHeight: imgHeight,
|
|
38006
38009
|
padding: "0",
|
|
38007
38010
|
background: themeValues.imageBackgroundColor
|
|
@@ -38018,95 +38021,18 @@ var Card = function Card(_ref) {
|
|
|
38018
38021
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
38019
38022
|
src: imgSrc,
|
|
38020
38023
|
alt: imgAltText
|
|
38021
|
-
}),
|
|
38024
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
38025
|
+
padding: "0"
|
|
38026
|
+
}, text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38022
38027
|
padding: padding,
|
|
38023
38028
|
titleText: titleText,
|
|
38024
38029
|
text: text,
|
|
38025
38030
|
titleVariant: titleVariant
|
|
38026
|
-
}), children)));
|
|
38031
|
+
}), children)))));
|
|
38027
38032
|
};
|
|
38028
38033
|
|
|
38029
38034
|
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
|
|
38030
38035
|
|
|
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
|
|
38070
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
38071
|
-
fullHeight: true,
|
|
38072
|
-
childGap: "0",
|
|
38073
|
-
bottomItem: numberOfChildren,
|
|
38074
|
-
direction: "row"
|
|
38075
|
-
}, headerText && /*#__PURE__*/React__default.createElement(CardHeader, {
|
|
38076
|
-
headerText: headerText,
|
|
38077
|
-
headerColor: themeValues.headerColor,
|
|
38078
|
-
headerVariant: headerVariant,
|
|
38079
|
-
backgroundColor: themeValues.headerBackgroundColor,
|
|
38080
|
-
borderRadius: borderRadius,
|
|
38081
|
-
padding: padding,
|
|
38082
|
-
as: headerAs
|
|
38083
|
-
}), Image && !imgSrc && /*#__PURE__*/React__default.createElement(Box, {
|
|
38084
|
-
minHeight: imgHeight,
|
|
38085
|
-
padding: "0",
|
|
38086
|
-
background: themeValues.imageBackgroundColor
|
|
38087
|
-
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
38088
|
-
minHeight: imgHeight,
|
|
38089
|
-
singleChild: true
|
|
38090
|
-
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
38091
|
-
intrinsic: true
|
|
38092
|
-
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
38093
|
-
alt: imgAltText
|
|
38094
|
-
})))), imgSrc && /*#__PURE__*/React__default.createElement(CardImage, {
|
|
38095
|
-
height: imgHeight,
|
|
38096
|
-
objectFit: imgObjectFit,
|
|
38097
|
-
backgroundColor: themeValues.imageBackgroundColor,
|
|
38098
|
-
src: imgSrc,
|
|
38099
|
-
alt: imgAltText
|
|
38100
|
-
}), text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
38101
|
-
padding: padding,
|
|
38102
|
-
titleText: titleText,
|
|
38103
|
-
text: text,
|
|
38104
|
-
titleVariant: titleVariant
|
|
38105
|
-
}), children)));
|
|
38106
|
-
};
|
|
38107
|
-
|
|
38108
|
-
var CardAlt$1 = themeComponent(withWindowSize(CardAlt), "CardAlt", fallbackValues$x);
|
|
38109
|
-
|
|
38110
38036
|
var fontFamily$6 = "Public Sans, sans-serif";
|
|
38111
38037
|
var activeColor$6 = MATISSE_BLUE;
|
|
38112
38038
|
var linkColor$3 = CHARADE_GREY;
|
|
@@ -50134,7 +50060,6 @@ exports.ButtonWithAction = ButtonWithAction;
|
|
|
50134
50060
|
exports.ButtonWithLink = ButtonWithLink;
|
|
50135
50061
|
exports.CalendarIcon = CalendarIcon;
|
|
50136
50062
|
exports.Card = Card$1;
|
|
50137
|
-
exports.CardAlt = CardAlt$1;
|
|
50138
50063
|
exports.CarrotIcon = CarrotIcon$1;
|
|
50139
50064
|
exports.CashIcon = CashIcon;
|
|
50140
50065
|
exports.Center = Center;
|