@trackunit/react-components 0.1.257 → 0.1.259

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.cjs.js CHANGED
@@ -946,8 +946,8 @@ const Card = (_a) => {
946
946
  * @param {CardBodyProps} props - The props for the CardBody component
947
947
  * @returns {JSX.Element} CardBody component
948
948
  */
949
- const CardBody = ({ density = "auto", children, dataTestId, className, disableGap }) => {
950
- return (jsxRuntime.jsx("div", { "data-testid": dataTestId, className: cvaCardBodyDensityContainer({ density, disableGap, className }), children: children }));
949
+ const CardBody = ({ density = "auto", children, dataTestId, className, disableGap, id }) => {
950
+ return (jsxRuntime.jsx("div", { "data-testid": dataTestId, id: id, className: cvaCardBodyDensityContainer({ density, disableGap, className }), children: children }));
951
951
  };
952
952
 
953
953
  /**
package/index.esm.js CHANGED
@@ -915,8 +915,8 @@ const Card = (_a) => {
915
915
  * @param {CardBodyProps} props - The props for the CardBody component
916
916
  * @returns {JSX.Element} CardBody component
917
917
  */
918
- const CardBody = ({ density = "auto", children, dataTestId, className, disableGap }) => {
919
- return (jsx("div", { "data-testid": dataTestId, className: cvaCardBodyDensityContainer({ density, disableGap, className }), children: children }));
918
+ const CardBody = ({ density = "auto", children, dataTestId, className, disableGap, id }) => {
919
+ return (jsx("div", { "data-testid": dataTestId, id: id, className: cvaCardBodyDensityContainer({ density, disableGap, className }), children: children }));
920
920
  };
921
921
 
922
922
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.1.257",
3
+ "version": "0.1.259",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,6 +13,10 @@ export interface CardBodyProps extends CommonProps {
13
13
  * Child elements to render in the body
14
14
  */
15
15
  children: React.ReactNode | null;
16
+ /**
17
+ * The id of the element.
18
+ */
19
+ id?: string;
16
20
  }
17
21
  /**
18
22
  * The CardBody component should be used to inform the user of important information.
@@ -22,4 +26,4 @@ export interface CardBodyProps extends CommonProps {
22
26
  * @param {CardBodyProps} props - The props for the CardBody component
23
27
  * @returns {JSX.Element} CardBody component
24
28
  */
25
- export declare const CardBody: ({ density, children, dataTestId, className, disableGap }: CardBodyProps) => JSX.Element;
29
+ export declare const CardBody: ({ density, children, dataTestId, className, disableGap, id }: CardBodyProps) => JSX.Element;