@thecb/components 7.13.4-beta.0 → 7.13.4-beta.2

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.0",
3
+ "version": "7.13.4-beta.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -32,6 +32,8 @@ const Card = ({
32
32
  titleVariant = "small",
33
33
  themeValues,
34
34
  width = "276px",
35
+ stackStyles = "",
36
+ coverStyles = "",
35
37
  children
36
38
  }) => {
37
39
  const hasImage = Image || imgSrc;
@@ -51,8 +53,13 @@ const Card = ({
51
53
  minWidth={width}
52
54
  extraStyles={extraStyles}
53
55
  >
54
- <Cover singleChild fillCenter>
55
- <Stack fullHeight childGap="0" bottomItem={numberOfChildren}>
56
+ <Cover singleChild fillCenter extraStyles={coverStyles}>
57
+ <Stack
58
+ fullHeight
59
+ childGap="0"
60
+ bottomItem={numberOfChildren}
61
+ extraStyles={stackStyles}
62
+ >
56
63
  {headerText && (
57
64
  <CardHeader
58
65
  headerText={headerText}
@@ -27,6 +27,8 @@ export interface CardProps {
27
27
  borderRadius?: string;
28
28
  width?: string;
29
29
  padding?: string;
30
+ stackStyles?: string;
31
+ coverStylse?: string;
30
32
  }
31
33
 
32
34
  export const Card: React.FC<Expand<CardProps> &