@campxdev/react-blueprint 1.8.6 → 1.8.7
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
|
@@ -32,7 +32,7 @@ export interface CardProps {
|
|
|
32
32
|
};
|
|
33
33
|
fields?: {
|
|
34
34
|
title: string;
|
|
35
|
-
value: string;
|
|
35
|
+
value: ReactNode | string;
|
|
36
36
|
}[];
|
|
37
37
|
titleProps?: {
|
|
38
38
|
variant: Variant;
|
|
@@ -155,7 +155,11 @@ export const Card = ({
|
|
|
155
155
|
{index % 2 === 1 && <StyledDivider flexItem />}
|
|
156
156
|
<Stack gap="4px">
|
|
157
157
|
<Typography variant="caption">{field.title}</Typography>
|
|
158
|
-
|
|
158
|
+
{typeof field.value == 'string' ? (
|
|
159
|
+
<Typography variant="body2">{field.value}</Typography>
|
|
160
|
+
) : (
|
|
161
|
+
field.value
|
|
162
|
+
)}
|
|
159
163
|
</Stack>
|
|
160
164
|
</Stack>
|
|
161
165
|
))}
|