@thecb/components 7.13.3-beta.11 → 7.13.3-beta.13

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.3-beta.11",
3
+ "version": "7.13.3-beta.13",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -64,37 +64,39 @@ const Card = ({
64
64
  as={headerAs}
65
65
  ></CardHeader>
66
66
  )}
67
- {Image && !imgSrc && (
68
- <Box
69
- minHeight={imgHeight}
70
- padding="0"
71
- background={themeValues.imageBackgroundColor}
72
- >
73
- <Cover minHeight={imgHeight} singleChild>
74
- <Center intrinsic>
75
- <Image alt={imgAltText} />
76
- </Center>
77
- </Cover>
78
- </Box>
79
- )}
80
- {imgSrc && (
81
- <CardImage
82
- height={imgHeight}
83
- objectFit={imgObjectFit}
84
- backgroundColor={themeValues.imageBackgroundColor}
85
- src={imgSrc}
86
- alt={imgAltText}
87
- />
88
- )}
89
- {text && (
90
- <CardText
91
- padding={padding}
92
- titleText={titleText}
93
- text={text}
94
- titleVariant={titleVariant}
95
- />
96
- )}
97
- {children}
67
+ <Stack>
68
+ {Image && !imgSrc && (
69
+ <Box
70
+ minHeight={imgHeight}
71
+ padding="0"
72
+ background={themeValues.imageBackgroundColor}
73
+ >
74
+ <Cover minHeight={imgHeight} singleChild>
75
+ <Center intrinsic>
76
+ <Image alt={imgAltText} />
77
+ </Center>
78
+ </Cover>
79
+ </Box>
80
+ )}
81
+ {imgSrc && (
82
+ <CardImage
83
+ height={imgHeight}
84
+ objectFit={imgObjectFit}
85
+ backgroundColor={themeValues.imageBackgroundColor}
86
+ src={imgSrc}
87
+ alt={imgAltText}
88
+ />
89
+ )}
90
+ {text && (
91
+ <CardText
92
+ padding={padding}
93
+ titleText={titleText}
94
+ text={text}
95
+ titleVariant={titleVariant}
96
+ />
97
+ )}
98
+ {children}
99
+ </Stack>
98
100
  </Stack>
99
101
  </Cover>
100
102
  </BoxWithShadow>