@trackunit/react-table-base-components 1.17.3 → 1.17.4
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -81,7 +81,7 @@ var sharedUtils = require('@trackunit/shared-utils');
|
|
|
81
81
|
* @param {ButtonCellProps} props - The props for the ButtonCell component
|
|
82
82
|
* @returns {ReactElement} ButtonCell component
|
|
83
83
|
*/
|
|
84
|
-
const ButtonCell = ({ children, className, "data-testid": dataTestId, iconColor = "primary", iconName, variant = "ghost-neutral", ...rest }) => {
|
|
84
|
+
const ButtonCell = ({ children, className, "data-testid": dataTestId, iconColor = "primary", iconName = undefined, variant = "ghost-neutral", ...rest }) => {
|
|
85
85
|
return (jsxRuntime.jsx(reactComponents.Button, { prefix: iconName ? jsxRuntime.jsx(reactComponents.Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, className: tailwindMerge.twMerge("px-2 text-sm font-normal text-black hover:text-black", className), "data-testid": `button-cell-${dataTestId}`, variant: variant, children: children }));
|
|
86
86
|
};
|
|
87
87
|
|
|
@@ -490,7 +490,7 @@ const MultiRowTableCell = ({ main, secondary, "data-testid": dataTestId, classNa
|
|
|
490
490
|
* @param {ListTooltipProps<TItem>} props Component props.
|
|
491
491
|
* @returns {ReactNode} Tooltip list markup.
|
|
492
492
|
*/
|
|
493
|
-
const ListTooltip = ({ items, "data-testid": dataTestId, getLabel, getKey, loading, }) => {
|
|
493
|
+
const ListTooltip = ({ items, "data-testid": dataTestId, getLabel, getKey, loading = false, }) => {
|
|
494
494
|
const toDisplay = (item, index) => {
|
|
495
495
|
if (getLabel) {
|
|
496
496
|
return getLabel(item, index);
|
package/index.esm.js
CHANGED
|
@@ -79,7 +79,7 @@ import { DateTimeFormat } from '@trackunit/shared-utils';
|
|
|
79
79
|
* @param {ButtonCellProps} props - The props for the ButtonCell component
|
|
80
80
|
* @returns {ReactElement} ButtonCell component
|
|
81
81
|
*/
|
|
82
|
-
const ButtonCell = ({ children, className, "data-testid": dataTestId, iconColor = "primary", iconName, variant = "ghost-neutral", ...rest }) => {
|
|
82
|
+
const ButtonCell = ({ children, className, "data-testid": dataTestId, iconColor = "primary", iconName = undefined, variant = "ghost-neutral", ...rest }) => {
|
|
83
83
|
return (jsx(Button, { prefix: iconName ? jsx(Icon, { color: iconColor, name: iconName, size: "small", type: "solid" }) : null, ...rest, className: twMerge("px-2 text-sm font-normal text-black hover:text-black", className), "data-testid": `button-cell-${dataTestId}`, variant: variant, children: children }));
|
|
84
84
|
};
|
|
85
85
|
|
|
@@ -488,7 +488,7 @@ const MultiRowTableCell = ({ main, secondary, "data-testid": dataTestId, classNa
|
|
|
488
488
|
* @param {ListTooltipProps<TItem>} props Component props.
|
|
489
489
|
* @returns {ReactNode} Tooltip list markup.
|
|
490
490
|
*/
|
|
491
|
-
const ListTooltip = ({ items, "data-testid": dataTestId, getLabel, getKey, loading, }) => {
|
|
491
|
+
const ListTooltip = ({ items, "data-testid": dataTestId, getLabel, getKey, loading = false, }) => {
|
|
492
492
|
const toDisplay = (item, index) => {
|
|
493
493
|
if (getLabel) {
|
|
494
494
|
return getLabel(item, index);
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table-base-components",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.4",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/react-components": "1.20.
|
|
10
|
+
"@trackunit/react-components": "1.20.4",
|
|
11
11
|
"@trackunit/ui-icons": "1.11.73",
|
|
12
|
-
"@trackunit/react-form-components": "1.18.
|
|
12
|
+
"@trackunit/react-form-components": "1.18.4",
|
|
13
13
|
"@trackunit/css-class-variance-utilities": "1.11.77",
|
|
14
14
|
"@trackunit/date-and-time-utils": "1.11.79",
|
|
15
15
|
"@trackunit/shared-utils": "1.13.77",
|