@thecb/components 10.12.3 → 10.12.5-beta.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": "10.12.3",
3
+ "version": "10.12.5-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -11,7 +11,6 @@ import Paragraph from "../paragraph";
11
11
  import Stack from "../layouts/Stack";
12
12
  import Title from "../title";
13
13
  import IconQuitLarge from "../../atoms/icons/IconQuitLarge";
14
- import { Cluster } from "../layouts";
15
14
 
16
15
  export const CardText = ({
17
16
  showQuitLink,
@@ -28,7 +27,7 @@ export const CardText = ({
28
27
  <Box padding={padding}>
29
28
  <Cover>
30
29
  <Stack>
31
- <Cluster justify="space-between" align="center" overflow={true}>
30
+ <Box padding="0">
32
31
  {titleText && (
33
32
  <Title
34
33
  as={titleAs}
@@ -47,12 +46,12 @@ export const CardText = ({
47
46
  role="button"
48
47
  tabIndex={0}
49
48
  aria-label={`Close Card: ${titleText}`}
50
- extraStyles="cursor: pointer;"
49
+ extraStyles="position: absolute; top: 0.5rem; right: 0.5rem; cursor: pointer;"
51
50
  >
52
51
  <IconQuitLarge />
53
52
  </Box>
54
53
  )}
55
- </Cluster>
54
+ </Box>
56
55
  <Paragraph as={textAs} color={themeValues.textColor}>
57
56
  {text}
58
57
  </Paragraph>