@hyphen/hyphen-components 4.5.0 → 4.6.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/components/Card/components/CardHeader/CardHeader.d.ts +2 -2
- package/dist/hyphen-components.cjs.development.js +2 -2
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +2 -2
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Card/components/CardHeader/CardHeader.tsx +11 -5
|
@@ -6,8 +6,8 @@ export interface CardHeaderProps extends BoxProps {
|
|
|
6
6
|
*/
|
|
7
7
|
title?: ReactNode;
|
|
8
8
|
/**
|
|
9
|
-
* Description
|
|
9
|
+
* Description of the card, or element below the title
|
|
10
10
|
*/
|
|
11
|
-
description?:
|
|
11
|
+
description?: ReactNode;
|
|
12
12
|
}
|
|
13
13
|
export declare const CardHeader: FC<CardHeaderProps>;
|
|
@@ -888,13 +888,13 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
888
888
|
}, title && React.createElement(React.Fragment, null, typeof title === 'string' ? React.createElement(Heading, {
|
|
889
889
|
size: "sm",
|
|
890
890
|
as: "h4"
|
|
891
|
-
}, title) : title), description && React.createElement(Box, {
|
|
891
|
+
}, title) : title), description && React.createElement(React.Fragment, null, typeof description === 'string' ? React.createElement(Box, {
|
|
892
892
|
fontSize: {
|
|
893
893
|
base: 'xs',
|
|
894
894
|
tablet: 'sm'
|
|
895
895
|
},
|
|
896
896
|
color: "secondary"
|
|
897
|
-
}, description)), children);
|
|
897
|
+
}, description) : description)), children);
|
|
898
898
|
};
|
|
899
899
|
|
|
900
900
|
var styles$r = {"card-section-border":"Card-module_card-section-border__OefDX"};
|