@umami/react-zen 0.162.0 → 0.164.0
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -347,7 +347,7 @@ interface DataColumnProps extends Omit<HTMLAttributes<any>, 'children'> {
|
|
|
347
347
|
width?: string;
|
|
348
348
|
as?: string;
|
|
349
349
|
hidden?: boolean;
|
|
350
|
-
children?: ReactNode | ((
|
|
350
|
+
children?: ReactNode | ((row: any, index: number) => void);
|
|
351
351
|
}
|
|
352
352
|
declare function DataColumn(props: DataColumnProps): null;
|
|
353
353
|
|
package/dist/index.d.ts
CHANGED
|
@@ -347,7 +347,7 @@ interface DataColumnProps extends Omit<HTMLAttributes<any>, 'children'> {
|
|
|
347
347
|
width?: string;
|
|
348
348
|
as?: string;
|
|
349
349
|
hidden?: boolean;
|
|
350
|
-
children?: ReactNode | ((
|
|
350
|
+
children?: ReactNode | ((row: any, index: number) => void);
|
|
351
351
|
}
|
|
352
352
|
declare function DataColumn(props: DataColumnProps): null;
|
|
353
353
|
|
package/dist/index.js
CHANGED
|
@@ -30872,7 +30872,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30872
30872
|
if (hidden) {
|
|
30873
30873
|
return null;
|
|
30874
30874
|
}
|
|
30875
|
-
const value = typeof children2 === "function" ? children2(row) : children2 || row[id];
|
|
30875
|
+
const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
|
|
30876
30876
|
return /* @__PURE__ */ (0, import_react179.createElement)(
|
|
30877
30877
|
TableCell,
|
|
30878
30878
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -30756,7 +30756,7 @@ function DataTable({ data = [], className, children, ...props }) {
|
|
|
30756
30756
|
if (hidden) {
|
|
30757
30757
|
return null;
|
|
30758
30758
|
}
|
|
30759
|
-
const value = typeof children2 === "function" ? children2(row) : children2 || row[id];
|
|
30759
|
+
const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
|
|
30760
30760
|
return /* @__PURE__ */ createElement8(
|
|
30761
30761
|
TableCell,
|
|
30762
30762
|
{
|