@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/dist/index.cjs.js +11 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +35 -38
package/package.json
CHANGED
|
@@ -51,13 +51,8 @@ const Card = ({
|
|
|
51
51
|
minWidth={width}
|
|
52
52
|
extraStyles={extraStyles}
|
|
53
53
|
>
|
|
54
|
-
<Cover singleChild
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
104
|
-
|
|
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>
|