@thecb/components 7.13.4-beta.9 → 8.0.0

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.9",
3
+ "version": "8.0.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -51,13 +51,8 @@ const Card = ({
51
51
  minWidth={width}
52
52
  extraStyles={extraStyles}
53
53
  >
54
- <Cover singleChild fillCenter>
55
- <Stack
56
- fullHeight
57
- childGap="0"
58
- bottomItem={numberOfChildren}
59
- direction="row"
60
- >
54
+ <Cover singleChild>
55
+ <Stack fullHeight childGap="1.5rem" bottomItem={numberOfChildren}>
61
56
  {headerText && (
62
57
  <CardHeader
63
58
  headerText={headerText}
@@ -69,39 +64,41 @@ 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
- <Box padding="0">
95
- {text && (
96
- <CardText
97
- padding={padding}
98
- titleText={titleText}
99
- text={text}
100
- titleVariant={titleVariant}
67
+ <Stack direction="row" childGap="0">
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}
101
88
  />
102
89
  )}
103
- {children}
104
- </Box>
90
+ <Box padding="0" width="100%" extraStyles="flex-basis: 100%;">
91
+ {text && (
92
+ <CardText
93
+ padding={padding}
94
+ titleText={titleText}
95
+ text={text}
96
+ titleVariant={titleVariant}
97
+ />
98
+ )}
99
+ {children}
100
+ </Box>
101
+ </Stack>
105
102
  </Stack>
106
103
  </Cover>
107
104
  </BoxWithShadow>