@thecb/components 7.2.0-beta.1 → 7.2.0-beta.3

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.2.0-beta.1",
3
+ "version": "7.2.0-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -12,9 +12,9 @@ const Banner = ({
12
12
  themeValues,
13
13
  heading,
14
14
  subHeading,
15
- image,
16
- padding = "1.5rem, 0.5rem",
17
- mobilePadding = "1rem, 0.5rem",
15
+ image: Image,
16
+ padding = "1.5rem 0.5rem",
17
+ mobilePadding = "1rem 0.5rem",
18
18
  minWidth = "100%",
19
19
  minHeight = "auto",
20
20
  contentSpacing = "3rem",
@@ -26,7 +26,7 @@ const Banner = ({
26
26
  <BoxWithShadow
27
27
  variant="baseStandard"
28
28
  borderRadius="4px"
29
- backgroundColor={themeValues.backgroundColor}
29
+ background={themeValues.backgroundColor}
30
30
  minWidth={minWidth}
31
31
  minHeight={minHeight}
32
32
  padding={isMobile ? mobilePadding : padding}
@@ -42,7 +42,9 @@ const Banner = ({
42
42
  </Title>
43
43
  <Paragraph>{subHeading}</Paragraph>
44
44
  </Stack>
45
- <Box padding="0">{image}</Box>
45
+ <Box padding="0">
46
+ <Image />
47
+ </Box>
46
48
  </Cluster>
47
49
  </BoxWithShadow>
48
50
  );