@trackunit/react-table-base-components 0.0.115 → 0.0.116

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
@@ -79,7 +79,7 @@ function __rest(s, e) {
79
79
  /**
80
80
  * The `<ImageCell>` component is used for displaying images in a table cell.
81
81
  *
82
- * @param {object} props - The props for the Image component.
82
+ * @param {ImageCellProps} props - The props for the Image component.
83
83
  * @returns {JSX.Element} The Image component.
84
84
  */
85
85
  const ImageCell = (_a) => {
@@ -125,7 +125,7 @@ const cvaNumberCell = cssClassVarianceUtilities.cvaMerge([
125
125
  /**
126
126
  * The `<NumberCell>` component is used for displaying numbers with units in a table cell.
127
127
  *
128
- * @param props - The props for the NumberCell component.
128
+ * @param {NumberCellProps} props - The props for the NumberCell component.
129
129
  * @returns {JSX.Element} A React JSX element representing the NumberCell component.
130
130
  */
131
131
  const NumberCell = ({ value = "", unit, className, dataTestId }) => {
@@ -135,7 +135,7 @@ const NumberCell = ({ value = "", unit, className, dataTestId }) => {
135
135
  /**
136
136
  * Component for a resizable handle element.
137
137
  *
138
- * @param {object} props - Props for the resizable handle.
138
+ * @param {ResizeHandelProps} props - Props for the resizable handle.
139
139
  * @param {boolean} [props.isResizing=false] - Indicates whether the handle is in a resizing state.
140
140
  * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
141
141
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.
package/index.esm.js CHANGED
@@ -75,7 +75,7 @@ function __rest(s, e) {
75
75
  /**
76
76
  * The `<ImageCell>` component is used for displaying images in a table cell.
77
77
  *
78
- * @param {object} props - The props for the Image component.
78
+ * @param {ImageCellProps} props - The props for the Image component.
79
79
  * @returns {JSX.Element} The Image component.
80
80
  */
81
81
  const ImageCell = (_a) => {
@@ -121,7 +121,7 @@ const cvaNumberCell = cvaMerge([
121
121
  /**
122
122
  * The `<NumberCell>` component is used for displaying numbers with units in a table cell.
123
123
  *
124
- * @param props - The props for the NumberCell component.
124
+ * @param {NumberCellProps} props - The props for the NumberCell component.
125
125
  * @returns {JSX.Element} A React JSX element representing the NumberCell component.
126
126
  */
127
127
  const NumberCell = ({ value = "", unit, className, dataTestId }) => {
@@ -131,7 +131,7 @@ const NumberCell = ({ value = "", unit, className, dataTestId }) => {
131
131
  /**
132
132
  * Component for a resizable handle element.
133
133
  *
134
- * @param {object} props - Props for the resizable handle.
134
+ * @param {ResizeHandelProps} props - Props for the resizable handle.
135
135
  * @param {boolean} [props.isResizing=false] - Indicates whether the handle is in a resizing state.
136
136
  * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
137
137
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table-base-components",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,7 +11,6 @@
11
11
  "@trackunit/react-form-components": "*",
12
12
  "@trackunit/css-class-variance-utilities": "*",
13
13
  "@trackunit/date-and-time-utils": "*",
14
- "@trackunit/ui-design-tokens": "*",
15
14
  "@trackunit/iris-app-api": "*",
16
15
  "react": "^18.2.0"
17
16
  },
@@ -25,7 +25,7 @@ export interface ImageCellProps extends CommonProps {
25
25
  /**
26
26
  * The `<ImageCell>` component is used for displaying images in a table cell.
27
27
  *
28
- * @param {object} props - The props for the Image component.
28
+ * @param {ImageCellProps} props - The props for the Image component.
29
29
  * @returns {JSX.Element} The Image component.
30
30
  */
31
31
  export declare const ImageCell: ({ imageUrl, alt, width, height, dataTestId, ...rest }: ImageCellProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { IndicatorProps } from "@trackunit/react-components";
3
- import { ThemeColors } from "@trackunit/ui-design-tokens";
4
3
  export interface IndicatorCellProps extends IndicatorProps, React.HTMLAttributes<HTMLTableSectionElement> {
5
4
  /**
6
5
  * The icon to be rendered inside the indicator component
@@ -9,7 +8,7 @@ export interface IndicatorCellProps extends IndicatorProps, React.HTMLAttributes
9
8
  /**
10
9
  * A color token used to style the icon and the icon background
11
10
  */
12
- color?: ThemeColors;
11
+ color?: IndicatorProps["color"];
13
12
  /**
14
13
  * A text label to be displayed next to the indicator
15
14
  */
@@ -23,7 +23,7 @@ export interface NumberCellProps extends CommonProps {
23
23
  /**
24
24
  * The `<NumberCell>` component is used for displaying numbers with units in a table cell.
25
25
  *
26
- * @param props - The props for the NumberCell component.
26
+ * @param {NumberCellProps} props - The props for the NumberCell component.
27
27
  * @returns {JSX.Element} A React JSX element representing the NumberCell component.
28
28
  */
29
29
  export declare const NumberCell: ({ value, unit, className, dataTestId }: NumberCellProps) => JSX.Element;
@@ -6,7 +6,7 @@ export interface ResizeHandelProps extends CommonProps, React.HTMLAttributes<HTM
6
6
  /**
7
7
  * Component for a resizable handle element.
8
8
  *
9
- * @param {object} props - Props for the resizable handle.
9
+ * @param {ResizeHandelProps} props - Props for the resizable handle.
10
10
  * @param {boolean} [props.isResizing=false] - Indicates whether the handle is in a resizing state.
11
11
  * @param {string} [props.dataTestId] - A data-testid attribute for testing purposes.
12
12
  * @param {string} [props.className] - Additional CSS classes to apply to the handle.