@trackunit/react-table 0.0.73 → 0.0.74
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 +727 -481
- package/index.esm.js +730 -481
- package/package.json +10 -10
- package/src/Table.d.ts +2 -1
- package/src/useInfiniteScroll.d.ts +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@tanstack/react-table": "8.9.3",
|
|
11
|
-
"@tanstack/react-virtual": "3.0.0-
|
|
12
|
-
"@trackunit/css-class-variance-utilities": "0.0.
|
|
11
|
+
"@tanstack/react-virtual": "3.0.0-beta.66",
|
|
12
|
+
"@trackunit/css-class-variance-utilities": "0.0.15",
|
|
13
13
|
"@trackunit/css-core": "0.0.99",
|
|
14
|
-
"@trackunit/i18n-library-translation": "0.0.
|
|
14
|
+
"@trackunit/i18n-library-translation": "0.0.88",
|
|
15
15
|
"@trackunit/iris-app-api": "0.0.125",
|
|
16
|
-
"@trackunit/react-components": "0.1.
|
|
17
|
-
"@trackunit/react-core-contexts-api": "0.2.
|
|
18
|
-
"@trackunit/react-core-contexts-test": "0.1.
|
|
19
|
-
"@trackunit/react-form-components": "0.0.
|
|
20
|
-
"@trackunit/react-table-base-components": "0.0.
|
|
21
|
-
"@trackunit/shared-utils": "0.0.
|
|
16
|
+
"@trackunit/react-components": "0.1.184",
|
|
17
|
+
"@trackunit/react-core-contexts-api": "0.2.65",
|
|
18
|
+
"@trackunit/react-core-contexts-test": "0.1.122",
|
|
19
|
+
"@trackunit/react-form-components": "0.0.183",
|
|
20
|
+
"@trackunit/react-table-base-components": "0.0.59",
|
|
21
|
+
"@trackunit/shared-utils": "0.0.13",
|
|
22
22
|
"@trackunit/ui-icons": "0.0.78",
|
|
23
23
|
"immutability-helper": "3.1.1",
|
|
24
24
|
"react": "18.2.0",
|
package/src/Table.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface TableProps<TData extends object> extends ReactTable<TData>, Com
|
|
|
10
10
|
onRowClick?: (row: Row<TData>) => void;
|
|
11
11
|
noDataMessage?: JSX.Element | string;
|
|
12
12
|
loading?: boolean;
|
|
13
|
+
rowHeight?: number;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Table component for displaying large sets of data in tables with infinite scroll, sorting, filtering and others.
|
|
@@ -17,4 +18,4 @@ export interface TableProps<TData extends object> extends ReactTable<TData>, Com
|
|
|
17
18
|
* @param {ReactTable} props - The props for the Table component
|
|
18
19
|
* @returns {JSX.Element} Table component
|
|
19
20
|
*/
|
|
20
|
-
export declare const Table: <TData extends object>(props: TableProps<TData>) => JSX.Element;
|
|
21
|
+
export declare const Table: <TData extends object>({ rowHeight, ...props }: TableProps<TData>) => JSX.Element;
|
|
@@ -5,13 +5,12 @@ interface InfiniteScrollProps {
|
|
|
5
5
|
pagination: RelayPagination;
|
|
6
6
|
containerRef: RefObject<HTMLDivElement>;
|
|
7
7
|
rowSize: number;
|
|
8
|
+
rowHeight: number;
|
|
8
9
|
}
|
|
9
10
|
interface InfiniteScroll {
|
|
10
|
-
paddingTop: number;
|
|
11
|
-
paddingBottom: number;
|
|
12
11
|
fetchMoreOnBottomReached: (containerRefElement?: HTMLDivElement | null) => void;
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
getTotalSize: () => number;
|
|
13
|
+
getVirtualItems: () => VirtualItem[];
|
|
15
14
|
}
|
|
16
15
|
/**
|
|
17
16
|
* Custom hook for implementing infinite scrolling in a table.
|