@thecb/components 7.13.4-beta.5 → 7.13.4-beta.7

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.5",
3
+ "version": "7.13.4-beta.7",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -32,8 +32,7 @@ const Card = ({
32
32
  titleVariant = "small",
33
33
  themeValues,
34
34
  width = "276px",
35
- stackDirection = "column",
36
- boxStyles = "",
35
+ direction = "column",
37
36
  children
38
37
  }) => {
39
38
  const hasImage = Image || imgSrc;
@@ -53,13 +52,12 @@ const Card = ({
53
52
  minWidth={width}
54
53
  extraStyles={extraStyles}
55
54
  >
56
- <Cover singleChild fillCenter extraStyles={coverStyles}>
55
+ <Cover singleChild fillCenter>
57
56
  <Stack
58
57
  fullHeight
59
58
  childGap="0"
60
59
  bottomItem={numberOfChildren}
61
- extraStyles={stackStyles}
62
- direction={stackDirection}
60
+ direction={direction}
63
61
  >
64
62
  {headerText && (
65
63
  <CardHeader
@@ -77,7 +75,6 @@ const Card = ({
77
75
  minHeight={imgHeight}
78
76
  padding="0"
79
77
  background={themeValues.imageBackgroundColor}
80
- extraStyles={boxStyles}
81
78
  >
82
79
  <Cover minHeight={imgHeight} singleChild>
83
80
  <Center intrinsic>
@@ -95,7 +92,7 @@ const Card = ({
95
92
  alt={imgAltText}
96
93
  />
97
94
  )}
98
- <Box>
95
+ <Box padding="0">
99
96
  {text && (
100
97
  <CardText
101
98
  padding={padding}