@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.13.4-beta.3",
3
+ "version": "7.13.4-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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
- {text && (
97
- <CardText
98
- padding={padding}
99
- titleText={titleText}
100
- text={text}
101
- titleVariant={titleVariant}
102
- />
103
- )}
104
- {children}
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>