triafly-ui-kit 1.0.85 → 1.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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import l from "react";
2
+ import y from "react";
3
3
  import m from "../../../../_virtual/index.js";
4
- const g = l.memo(
4
+ const g = y.memo(
5
5
  ({
6
6
  record: _,
7
7
  columns: r,
@@ -25,7 +25,12 @@ const g = l.memo(
25
25
  "table-component__wrapper__table__tbody__td--sticky-left": b && p === 0
26
26
  }),
27
27
  align: t.align,
28
- children: t.render ? t.render(_[t.dataIndex], _) : String(_[t.dataIndex] ?? "")
28
+ children: t.render ? t.render(
29
+ _[t.dataIndex],
30
+ _,
31
+ `${t.key}-${p}`,
32
+ n
33
+ ) : String(_[t.dataIndex] ?? "")
29
34
  },
30
35
  `${t.key}-${p}`
31
36
  ))
package/dist/main.d.ts CHANGED
@@ -128,7 +128,7 @@ export declare type Column<T extends object = Record<string, unknown>> = {
128
128
  dataIndex?: keyof T | string;
129
129
  key: string;
130
130
  align?: "left" | "center" | "right";
131
- render?: (_: unknown, record: T) => default_2.ReactNode;
131
+ render?: (_: unknown, record: T, colIndex: string, rowIndex: string) => default_2.ReactNode;
132
132
  width?: number;
133
133
  className?: string;
134
134
  sorted?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triafly-ui-kit",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "description": "UI Kit from Triafly",
5
5
  "main": "./dist/main.js",
6
6
  "module": "./dist/main.js",