material-react-table 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/body/MRT_TableBody.d.ts +3 -2
- package/dist/body/MRT_TableBodyCell.d.ts +3 -2
- package/dist/body/MRT_TableBodyRow.d.ts +3 -2
- package/dist/buttons/MRT_GrabHandleButton.d.ts +3 -2
- package/dist/head/MRT_TableHead.d.ts +4 -2
- package/dist/head/MRT_TableHeadCell.d.ts +4 -6
- package/dist/head/MRT_TableHeadRow.d.ts +4 -2
- package/dist/material-react-table.cjs.development.js +177 -4409
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +141 -136
- package/dist/material-react-table.esm.js.map +1 -1
- package/dist/menus/MRT_ShowHideColumnsMenuItems.d.ts +3 -1
- package/package.json +1 -3
- package/src/body/MRT_TableBody.tsx +9 -3
- package/src/body/MRT_TableBodyCell.tsx +15 -17
- package/src/body/MRT_TableBodyRow.tsx +10 -3
- package/src/buttons/MRT_GrabHandleButton.tsx +12 -5
- package/src/head/MRT_TableHead.tsx +11 -3
- package/src/head/MRT_TableHeadCell.tsx +49 -20
- package/src/head/MRT_TableHeadRow.tsx +25 -20
- package/src/menus/MRT_ShowHideColumnsMenu.tsx +6 -1
- package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +54 -27
- package/src/table/MRT_Table.tsx +17 -4
- package/src/table/MRT_TableContainer.tsx +1 -1
- package/src/table/MRT_TablePaper.tsx +21 -25
- package/dist/head/MRT_DraggableTableHeadCell.d.ts +0 -8
- package/src/head/MRT_DraggableTableHeadCell.tsx +0 -43
@@ -1,7 +1,8 @@
|
|
1
|
-
import { FC, RefObject } from 'react';
|
2
|
-
import type { MRT_TableInstance } from '..';
|
1
|
+
import { Dispatch, FC, RefObject, SetStateAction } from 'react';
|
2
|
+
import type { MRT_Column, MRT_TableInstance } from '..';
|
3
3
|
interface Props {
|
4
4
|
table: MRT_TableInstance;
|
5
|
+
setCurrentHoveredColumn: Dispatch<SetStateAction<MRT_Column | null>>;
|
5
6
|
tableContainerRef: RefObject<HTMLDivElement>;
|
6
7
|
}
|
7
8
|
export declare const MRT_TableBody: FC<Props>;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
import type { MRT_Cell, MRT_TableInstance } from '..';
|
1
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
2
|
+
import type { MRT_Cell, MRT_Column, MRT_TableInstance } from '..';
|
3
3
|
interface Props {
|
4
4
|
cell: MRT_Cell;
|
5
5
|
enableHover?: boolean;
|
6
6
|
rowIndex: number;
|
7
|
+
setCurrentHoveredColumn: Dispatch<SetStateAction<MRT_Column | null>>;
|
7
8
|
table: MRT_TableInstance;
|
8
9
|
}
|
9
10
|
export declare const MRT_TableBodyCell: FC<Props>;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
import type { MRT_Row, MRT_TableInstance } from '..';
|
1
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
2
|
+
import type { MRT_Column, MRT_Row, MRT_TableInstance } from '..';
|
3
3
|
interface Props {
|
4
4
|
row: MRT_Row;
|
5
5
|
rowIndex: number;
|
6
|
+
setCurrentHoveredColumn: Dispatch<SetStateAction<MRT_Column | null>>;
|
6
7
|
table: MRT_TableInstance;
|
7
8
|
}
|
8
9
|
export declare const MRT_TableBodyRow: FC<Props>;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { DragEventHandler, FC } from 'react';
|
2
2
|
import { MRT_TableInstance } from '..';
|
3
3
|
interface Props {
|
4
|
-
|
4
|
+
handleDragStart: DragEventHandler<HTMLButtonElement>;
|
5
|
+
handleDragEnd: DragEventHandler<HTMLButtonElement>;
|
5
6
|
table: MRT_TableInstance;
|
6
7
|
}
|
7
8
|
export declare const MRT_GrabHandleButton: FC<Props>;
|
@@ -1,6 +1,8 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
import type { MRT_TableInstance } from '..';
|
1
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
2
|
+
import type { MRT_Column, MRT_TableInstance } from '..';
|
3
3
|
interface Props {
|
4
|
+
currentHoveredColumn: MRT_Column | null;
|
5
|
+
setCurrentHoveredColumn: Dispatch<SetStateAction<MRT_Column | null>>;
|
4
6
|
table: MRT_TableInstance;
|
5
7
|
}
|
6
8
|
export declare const MRT_TableHead: FC<Props>;
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { FC,
|
2
|
-
import type { MRT_Header, MRT_TableInstance } from '..';
|
1
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
2
|
+
import type { MRT_Column, MRT_Header, MRT_TableInstance } from '..';
|
3
3
|
interface Props {
|
4
|
-
|
5
|
-
|
4
|
+
currentHoveredColumn: MRT_Column | null;
|
5
|
+
setCurrentHoveredColumn: Dispatch<SetStateAction<MRT_Column | null>>;
|
6
6
|
header: MRT_Header;
|
7
7
|
table: MRT_TableInstance;
|
8
|
-
isDragging?: boolean;
|
9
|
-
previewRef?: Ref<HTMLTableCellElement>;
|
10
8
|
}
|
11
9
|
export declare const MRT_TableHeadCell: FC<Props>;
|
12
10
|
export {};
|
@@ -1,6 +1,8 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
import type { MRT_HeaderGroup, MRT_TableInstance } from '..';
|
1
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
2
|
+
import type { MRT_Column, MRT_HeaderGroup, MRT_TableInstance } from '..';
|
3
3
|
interface Props {
|
4
|
+
currentHoveredColumn: MRT_Column | null;
|
5
|
+
setCurrentHoveredColumn: Dispatch<SetStateAction<MRT_Column | null>>;
|
4
6
|
headerGroup: MRT_HeaderGroup;
|
5
7
|
table: MRT_TableInstance;
|
6
8
|
}
|