@trackunit/react-components 0.1.9 → 0.1.10
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/index.js +6 -3
- package/package.json +1 -1
- package/src/components/Card/CardHeader.d.ts +5 -1
package/index.js
CHANGED
|
@@ -1187,7 +1187,8 @@ const CardHeader = ({
|
|
|
1187
1187
|
className,
|
|
1188
1188
|
children,
|
|
1189
1189
|
accessories,
|
|
1190
|
-
density
|
|
1190
|
+
density,
|
|
1191
|
+
extraClassName
|
|
1191
1192
|
}) => {
|
|
1192
1193
|
return jsx(BottomBorderedDensityContainer, Object.assign({
|
|
1193
1194
|
dataTestId: dataTestId,
|
|
@@ -1195,7 +1196,9 @@ const CardHeader = ({
|
|
|
1195
1196
|
"$density": density
|
|
1196
1197
|
}, {
|
|
1197
1198
|
children: jsxs(Container$6, {
|
|
1198
|
-
children: [jsxs("div", {
|
|
1199
|
+
children: [jsxs("div", Object.assign({
|
|
1200
|
+
className: extraClassName
|
|
1201
|
+
}, {
|
|
1199
1202
|
children: [jsxs(HeadingContainer$1, {
|
|
1200
1203
|
children: [jsx(Heading$1, Object.assign({
|
|
1201
1204
|
variant: headingVariant
|
|
@@ -1208,7 +1211,7 @@ const CardHeader = ({
|
|
|
1208
1211
|
}, {
|
|
1209
1212
|
children: subHeading
|
|
1210
1213
|
})), children]
|
|
1211
|
-
}), onClose && jsx(IconButton, {
|
|
1214
|
+
})), onClose && jsx(IconButton, {
|
|
1212
1215
|
dataTestId: "card-header-close-button",
|
|
1213
1216
|
variant: "transparent",
|
|
1214
1217
|
color: "secondary",
|
package/package.json
CHANGED
|
@@ -33,6 +33,10 @@ export interface CardHeaderProps extends CommonProps {
|
|
|
33
33
|
* Children to render in the header
|
|
34
34
|
*/
|
|
35
35
|
children?: React.ReactNode | null;
|
|
36
|
+
/**
|
|
37
|
+
* Extra className for div container
|
|
38
|
+
*/
|
|
39
|
+
extraClassName?: string | undefined;
|
|
36
40
|
}
|
|
37
41
|
/**
|
|
38
42
|
* Header for Cards and Modals.
|
|
@@ -40,4 +44,4 @@ export interface CardHeaderProps extends CommonProps {
|
|
|
40
44
|
* @param {CardHeaderProps} props - The props for the CardHeader component
|
|
41
45
|
* @returns {JSX.Element} CardHeader component
|
|
42
46
|
*/
|
|
43
|
-
export declare const CardHeader: ({ heading, headingVariant, subHeading, onClose, dataTestId, className, children, accessories, density, }: CardHeaderProps) => JSX.Element;
|
|
47
|
+
export declare const CardHeader: ({ heading, headingVariant, subHeading, onClose, dataTestId, className, children, accessories, density, extraClassName, }: CardHeaderProps) => JSX.Element;
|