@thecb/components 7.13.3-beta.12 → 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.12",
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",
@@ -52,12 +52,7 @@ const Card = ({
52
52
  extraStyles={extraStyles}
53
53
  >
54
54
  <Cover singleChild fillCenter>
55
- <Stack
56
- fullHeight
57
- childGap="0"
58
- bottomItem={numberOfChildren}
59
- direction="row"
60
- >
55
+ <Stack fullHeight childGap="0" bottomItem={numberOfChildren}>
61
56
  {headerText && (
62
57
  <CardHeader
63
58
  headerText={headerText}
@@ -69,37 +64,39 @@ const Card = ({
69
64
  as={headerAs}
70
65
  ></CardHeader>
71
66
  )}
72
- {Image && !imgSrc && (
73
- <Box
74
- minHeight={imgHeight}
75
- padding="0"
76
- background={themeValues.imageBackgroundColor}
77
- >
78
- <Cover minHeight={imgHeight} singleChild>
79
- <Center intrinsic>
80
- <Image alt={imgAltText} />
81
- </Center>
82
- </Cover>
83
- </Box>
84
- )}
85
- {imgSrc && (
86
- <CardImage
87
- height={imgHeight}
88
- objectFit={imgObjectFit}
89
- backgroundColor={themeValues.imageBackgroundColor}
90
- src={imgSrc}
91
- alt={imgAltText}
92
- />
93
- )}
94
- {text && (
95
- <CardText
96
- padding={padding}
97
- titleText={titleText}
98
- text={text}
99
- titleVariant={titleVariant}
100
- />
101
- )}
102
- {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>
103
100
  </Stack>
104
101
  </Cover>
105
102
  </BoxWithShadow>