@trackunit/react-table-base-components 0.0.83 → 0.0.87

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
@@ -129,7 +129,7 @@ const cvaNumberCell = cssClassVarianceUtilities.cvaMerge([
129
129
  * @returns {JSX.Element} A React JSX element representing the NumberCell component.
130
130
  */
131
131
  const NumberCell = ({ value = "", unit, className, dataTestId }) => {
132
- return (jsxRuntime.jsxs("div", { "data-testid": dataTestId, className: cvaNumberCell({ className }), children: [jsxRuntime.jsx("span", { children: value }), unit ? jsxRuntime.jsx("span", { children: unit }) : null] }));
132
+ return (jsxRuntime.jsxs("div", { "data-testid": dataTestId, className: cvaNumberCell({ className }), children: [jsxRuntime.jsx("span", { children: value }), value && unit ? jsxRuntime.jsx("span", { children: unit }) : null] }));
133
133
  };
134
134
 
135
135
  /**
package/index.esm.js CHANGED
@@ -125,7 +125,7 @@ const cvaNumberCell = cvaMerge([
125
125
  * @returns {JSX.Element} A React JSX element representing the NumberCell component.
126
126
  */
127
127
  const NumberCell = ({ value = "", unit, className, dataTestId }) => {
128
- return (jsxs("div", { "data-testid": dataTestId, className: cvaNumberCell({ className }), children: [jsx("span", { children: value }), unit ? jsx("span", { children: unit }) : null] }));
128
+ return (jsxs("div", { "data-testid": dataTestId, className: cvaNumberCell({ className }), children: [jsx("span", { children: value }), value && unit ? jsx("span", { children: unit }) : null] }));
129
129
  };
130
130
 
131
131
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-base-components",
3
- "version": "0.0.83",
3
+ "version": "0.0.87",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { UnitSi, UnitUs } from "@trackunit/iris-app-api";
2
+ import { UnitSiType, UnitUsType } from "@trackunit/iris-app-api";
3
3
  import { CommonProps } from "@trackunit/react-components";
4
4
  export interface NumberCellProps extends CommonProps {
5
5
  /**
@@ -10,7 +10,7 @@ export interface NumberCellProps extends CommonProps {
10
10
  /**
11
11
  * An optional unit to display alongside the numeric value.
12
12
  */
13
- unit?: UnitSi | UnitUs | null;
13
+ unit?: UnitSiType | UnitUsType | null;
14
14
  /**
15
15
  * An optional CSS class name to apply to the NumberCell component.
16
16
  */