@thecb/components 7.13.4-beta.3 → 7.13.4-beta.4
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/package.json
CHANGED
|
@@ -34,6 +34,7 @@ const Card = ({
|
|
|
34
34
|
width = "276px",
|
|
35
35
|
stackStyles = "",
|
|
36
36
|
coverStyles = "",
|
|
37
|
+
boxStyles = "",
|
|
37
38
|
children
|
|
38
39
|
}) => {
|
|
39
40
|
const hasImage = Image || imgSrc;
|
|
@@ -76,6 +77,7 @@ const Card = ({
|
|
|
76
77
|
minHeight={imgHeight}
|
|
77
78
|
padding="0"
|
|
78
79
|
background={themeValues.imageBackgroundColor}
|
|
80
|
+
extraStyles={boxStyles}
|
|
79
81
|
>
|
|
80
82
|
<Cover minHeight={imgHeight} singleChild>
|
|
81
83
|
<Center intrinsic>
|
|
@@ -93,15 +95,17 @@ const Card = ({
|
|
|
93
95
|
alt={imgAltText}
|
|
94
96
|
/>
|
|
95
97
|
)}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
<Box>
|
|
99
|
+
{text && (
|
|
100
|
+
<CardText
|
|
101
|
+
padding={padding}
|
|
102
|
+
titleText={titleText}
|
|
103
|
+
text={text}
|
|
104
|
+
titleVariant={titleVariant}
|
|
105
|
+
/>
|
|
106
|
+
)}
|
|
107
|
+
{children}
|
|
108
|
+
</Box>
|
|
105
109
|
</Stack>
|
|
106
110
|
</Cover>
|
|
107
111
|
</BoxWithShadow>
|