material-react-table 0.4.5 → 0.4.8
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/README.md +3 -2
- package/dist/MaterialReactTable.d.ts +71 -25
- package/dist/body/MRT_TableBodyCell.d.ts +2 -2
- package/dist/body/MRT_TableBodyRow.d.ts +2 -2
- package/dist/body/MRT_TableDetailPanel.d.ts +2 -2
- package/dist/buttons/MRT_EditActionButtons.d.ts +2 -2
- package/dist/buttons/MRT_ExpandButton.d.ts +2 -2
- package/dist/buttons/MRT_ToggleColumnActionMenuButton.d.ts +2 -2
- package/dist/buttons/MRT_ToggleRowActionMenuButton.d.ts +2 -2
- package/dist/footer/MRT_TableFooterCell.d.ts +2 -2
- package/dist/footer/MRT_TableFooterRow.d.ts +2 -2
- package/dist/head/MRT_TableHeadCell.d.ts +2 -2
- package/dist/head/MRT_TableHeadRow.d.ts +2 -2
- package/dist/icons.d.ts +25 -0
- package/dist/inputs/MRT_EditCellTextField.d.ts +2 -2
- package/dist/inputs/MRT_FilterTextField.d.ts +2 -2
- package/dist/inputs/MRT_SelectCheckbox.d.ts +2 -2
- package/dist/{utils/localization.d.ts → localization.d.ts} +1 -1
- package/dist/material-react-table.cjs.development.js +197 -155
- 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 +198 -156
- package/dist/material-react-table.esm.js.map +1 -1
- package/dist/menus/MRT_ColumnActionMenu.d.ts +2 -2
- package/dist/menus/MRT_RowActionMenu.d.ts +2 -2
- package/dist/menus/MRT_ShowHideColumnsMenu.d.ts +2 -2
- package/dist/useMRT.d.ts +10 -6
- package/package.json +1 -1
- package/src/@types/react-table-config.d.ts +18 -121
- package/src/MaterialReactTable.tsx +188 -25
- package/src/body/MRT_TableBody.tsx +2 -1
- package/src/body/MRT_TableBodyCell.tsx +2 -2
- package/src/body/MRT_TableBodyRow.tsx +11 -9
- package/src/body/MRT_TableDetailPanel.tsx +9 -16
- package/src/buttons/MRT_EditActionButtons.tsx +7 -8
- package/src/buttons/MRT_ExpandAllButton.tsx +17 -18
- package/src/buttons/MRT_ExpandButton.tsx +20 -21
- package/src/buttons/MRT_FullScreenToggleButton.tsx +9 -6
- package/src/buttons/MRT_ShowHideColumnsButton.tsx +11 -7
- package/src/buttons/MRT_ToggleColumnActionMenuButton.tsx +8 -6
- package/src/buttons/MRT_ToggleDensePaddingButton.tsx +8 -5
- package/src/buttons/MRT_ToggleFiltersButton.tsx +8 -5
- package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +8 -9
- package/src/buttons/MRT_ToggleSearchButton.tsx +8 -5
- package/src/footer/MRT_TableFooter.tsx +2 -1
- package/src/footer/MRT_TableFooterCell.tsx +2 -2
- package/src/footer/MRT_TableFooterRow.tsx +3 -3
- package/src/head/MRT_TableHead.tsx +2 -1
- package/src/head/MRT_TableHeadCell.tsx +7 -7
- package/src/head/MRT_TableHeadCellActions.tsx +1 -1
- package/src/head/MRT_TableHeadRow.tsx +3 -3
- package/src/icons.tsx +72 -0
- package/src/index.tsx +2 -0
- package/src/inputs/MRT_EditCellTextField.tsx +2 -2
- package/src/inputs/MRT_FilterTextField.tsx +15 -15
- package/src/inputs/MRT_SearchTextField.tsx +4 -5
- package/src/inputs/MRT_SelectCheckbox.tsx +7 -7
- package/src/{utils/localization.ts → localization.ts} +1 -1
- package/src/menus/MRT_ColumnActionMenu.tsx +16 -14
- package/src/menus/MRT_RowActionMenu.tsx +4 -4
- package/src/menus/MRT_ShowHideColumnsMenu.tsx +3 -2
- package/src/table/MRT_TableContainer.tsx +19 -1
- package/src/toolbar/MRT_ToolbarAlertBanner.tsx +3 -3
- package/src/useMRT.tsx +24 -17
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ View additional storybook examples at https://www.material-react-table.dev/
|
|
|
12
12
|
|
|
13
13
|
View the source code and open issues at https://github.com/KevinVandy/material-react-table
|
|
14
14
|
|
|
15
|
-
Join the discord development discussion at https://discord.gg/
|
|
15
|
+
Join the discord development discussion at https://discord.gg/5wqyRx6fnm
|
|
16
16
|
|
|
17
17
|
<br />
|
|
18
18
|
|
|
@@ -25,6 +25,7 @@ Join the discord development discussion at https://discord.gg/Gjm62HGw
|
|
|
25
25
|
- [x] Column Hiding
|
|
26
26
|
- [x] Custom Styling
|
|
27
27
|
- [x] Dense Padding Toggle
|
|
28
|
+
- [x] Localization
|
|
28
29
|
- [x] Filtering
|
|
29
30
|
- [x] Global Search
|
|
30
31
|
- [x] HeaderGroups
|
|
@@ -40,7 +41,7 @@ Join the discord development discussion at https://discord.gg/Gjm62HGw
|
|
|
40
41
|
1. Install Peer Dependencies (material-ui v5 and react table v7)
|
|
41
42
|
|
|
42
43
|
```bash
|
|
43
|
-
npm install @mui/material @mui/icons-material @emotion/react react-table
|
|
44
|
+
npm install @mui/material @mui/icons-material @emotion/react @emotion/styled react-table
|
|
44
45
|
```
|
|
45
46
|
|
|
46
47
|
2. Install material-react-table
|
|
@@ -1,14 +1,58 @@
|
|
|
1
1
|
import { ChangeEvent, FC, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { AlertProps, IconButtonProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TextFieldProps, ToolbarProps } from '@mui/material';
|
|
3
|
-
import { Cell, Column, HeaderGroup, Row, TableInstance, TableOptions, UseExpandedOptions, UseFiltersOptions, UseGlobalFiltersOptions, UseGroupByOptions, UsePaginationOptions, UseResizeColumnsOptions, UseRowSelectOptions, UseRowStateOptions, UseSortByOptions, UseTableOptions } from 'react-table';
|
|
4
|
-
import { MRT_Localization } from './
|
|
5
|
-
import {
|
|
6
|
-
export declare type
|
|
3
|
+
import { Cell, Column, ColumnInstance, HeaderGroup, Row, TableInstance, TableOptions, TableState, UseColumnOrderInstanceProps, UseColumnOrderState, UseExpandedInstanceProps, UseExpandedOptions, UseExpandedRowProps, UseExpandedState, UseFiltersColumnOptions, UseFiltersColumnProps, UseFiltersInstanceProps, UseFiltersOptions, UseFiltersState, UseGlobalFiltersColumnOptions, UseGlobalFiltersInstanceProps, UseGlobalFiltersOptions, UseGlobalFiltersState, UseGroupByCellProps, UseGroupByColumnOptions, UseGroupByColumnProps, UseGroupByInstanceProps, UseGroupByOptions, UseGroupByRowProps, UseGroupByState, UsePaginationInstanceProps, UsePaginationOptions, UsePaginationState, UseResizeColumnsColumnOptions, UseResizeColumnsColumnProps, UseResizeColumnsOptions, UseResizeColumnsState, UseRowSelectInstanceProps, UseRowSelectOptions, UseRowSelectRowProps, UseRowSelectState, UseRowStateCellProps, UseRowStateInstanceProps, UseRowStateOptions, UseRowStateRowProps, UseRowStateState, UseSortByColumnOptions, UseSortByColumnProps, UseSortByInstanceProps, UseSortByOptions, UseSortByState, UseTableHeaderGroupProps, UseTableInstanceProps, UseTableOptions } from 'react-table';
|
|
4
|
+
import { MRT_Localization } from './localization';
|
|
5
|
+
import { MRT_Icons } from './icons';
|
|
6
|
+
export declare type MRT_TableOptions<D extends {} = {}> = TableOptions<D> & UseExpandedOptions<D> & UseFiltersOptions<D> & UseGlobalFiltersOptions<D> & UseGroupByOptions<D> & UsePaginationOptions<D> & UseResizeColumnsOptions<D> & UseRowSelectOptions<D> & UseRowStateOptions<D> & UseSortByOptions<D> & {};
|
|
7
|
+
export declare type MRT_TableInstance<D extends {} = {}> = TableInstance<D> & UseTableInstanceProps<D> & UseColumnOrderInstanceProps<D> & UseExpandedInstanceProps<D> & UseFiltersInstanceProps<D> & UseGlobalFiltersInstanceProps<D> & UseGroupByInstanceProps<D> & UsePaginationInstanceProps<D> & UseRowSelectInstanceProps<D> & UseRowStateInstanceProps<D> & UseSortByInstanceProps<D> & {
|
|
8
|
+
columns: (Column<D> & MRT_ColumnInstance<D>)[];
|
|
9
|
+
headerGroups: MRT_HeaderGroup<D>[];
|
|
10
|
+
footerGroups: MRT_HeaderGroup<D>[];
|
|
11
|
+
state: MRT_TableState<D>;
|
|
12
|
+
rows: MRT_Row<D>[];
|
|
13
|
+
page: MRT_Row<D>[];
|
|
14
|
+
resetResizing: () => void;
|
|
15
|
+
getToggleAllRowsExpandedProps: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare type MRT_ColumnInterface<D extends {} = {}> = UseFiltersColumnOptions<D> & UseGlobalFiltersColumnOptions<D> & UseGroupByColumnOptions<D> & UseResizeColumnsColumnOptions<D> & UseSortByColumnOptions<D> & {
|
|
18
|
+
Edit?: ({ cell, onChange, }: {
|
|
19
|
+
cell: MRT_Cell<D>;
|
|
20
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
+
}) => ReactNode;
|
|
22
|
+
Filter?: ({ column }: {
|
|
23
|
+
column: MRT_HeaderGroup<D>;
|
|
24
|
+
}) => ReactNode;
|
|
25
|
+
Footer?: string;
|
|
26
|
+
Header?: string;
|
|
27
|
+
disableFilters?: boolean;
|
|
28
|
+
editable?: boolean;
|
|
29
|
+
muiTableBodyCellEditTextFieldProps?: TextFieldProps | ((cell: MRT_Cell<D>) => TextFieldProps);
|
|
30
|
+
muiTableBodyCellProps?: TableCellProps | ((cell: MRT_Cell<D>) => TableCellProps);
|
|
31
|
+
muiTableFooterCellProps?: TableCellProps | ((column: Column<D>) => TableCellProps);
|
|
32
|
+
muiTableHeadCellFilterTextFieldProps?: TextFieldProps | ((column: Column<D>) => TextFieldProps);
|
|
33
|
+
muiTableHeadCellProps?: TableCellProps | ((column: Column<D>) => TableCellProps);
|
|
34
|
+
onCellEditChange?: (event: ChangeEvent<HTMLInputElement>, cell: MRT_Cell<D>) => void;
|
|
35
|
+
onFilterChange?: (event: ChangeEvent<HTMLInputElement>, filterValue: any) => void;
|
|
36
|
+
};
|
|
37
|
+
export declare type MRT_ColumnInstance<D extends {} = {}> = ColumnInstance<D> & UseFiltersColumnProps<D> & UseGroupByColumnProps<D> & UseResizeColumnsColumnProps<D> & UseSortByColumnProps<D> & {
|
|
38
|
+
columns?: MRT_ColumnInstance<D>[];
|
|
39
|
+
};
|
|
40
|
+
export declare type MRT_HeaderGroup<D extends {} = {}> = HeaderGroup<D> & MRT_ColumnInstance<D> & UseTableHeaderGroupProps<D> & {
|
|
41
|
+
headers: MRT_HeaderGroup<D>[];
|
|
42
|
+
};
|
|
43
|
+
export declare type MRT_Row<D extends {} = {}> = Row<D> & UseExpandedRowProps<D> & UseGroupByRowProps<D> & UseRowSelectRowProps<D> & UseRowStateRowProps<D> & {
|
|
44
|
+
cells: MRT_Cell<D>[];
|
|
45
|
+
};
|
|
46
|
+
export declare type MRT_Cell<D extends {} = {}, _V = any> = Cell<D> & UseGroupByCellProps<D> & UseRowStateCellProps<D> & {};
|
|
47
|
+
export declare type MRT_TableState<D extends {} = {}> = TableState<D> & UseColumnOrderState<D> & UseExpandedState<D> & UseFiltersState<D> & UseGlobalFiltersState<D> & UseGroupByState<D> & UsePaginationState<D> & UseResizeColumnsState<D> & UseRowSelectState<D> & UseRowStateState<D> & UseSortByState<D> & {
|
|
48
|
+
densePadding?: boolean;
|
|
49
|
+
fullScreen?: boolean;
|
|
50
|
+
showFilters?: boolean;
|
|
51
|
+
showSearchTextField?: boolean;
|
|
52
|
+
};
|
|
53
|
+
export declare type MaterialReactTableProps<D extends {} = {}> = MRT_TableOptions<D> & UseTableOptions<D> & UseExpandedOptions<D> & UseFiltersOptions<D> & UseGlobalFiltersOptions<D> & UseGroupByOptions<D> & UsePaginationOptions<D> & UseResizeColumnsOptions<D> & UseRowSelectOptions<D> & UseRowStateOptions<D> & UseSortByOptions<D> & {
|
|
7
54
|
columns: (Column<D> & MRT_ColumnInterface)[];
|
|
8
|
-
|
|
9
|
-
defaultFullScreen?: boolean;
|
|
10
|
-
defaultShowFilters?: boolean;
|
|
11
|
-
defaultShowSearchTextField?: boolean;
|
|
55
|
+
data: D[];
|
|
12
56
|
disableColumnActions?: boolean;
|
|
13
57
|
disableColumnHiding?: boolean;
|
|
14
58
|
disableDensePaddingToggle?: boolean;
|
|
@@ -16,40 +60,42 @@ export declare type MaterialReactTableProps<D extends {} = {}> = TableOptions<D>
|
|
|
16
60
|
disableFullScreenToggle?: boolean;
|
|
17
61
|
disableSelectAll?: boolean;
|
|
18
62
|
disableSubRowTree?: boolean;
|
|
19
|
-
enableRowNumbers?: boolean;
|
|
20
63
|
enableColumnGrouping?: boolean;
|
|
21
64
|
enableColumnResizing?: boolean;
|
|
22
65
|
enableRowActions?: boolean;
|
|
23
66
|
enableRowEditing?: boolean;
|
|
67
|
+
enableRowNumbers?: boolean;
|
|
24
68
|
enableSelection?: boolean;
|
|
25
69
|
hideTableFooter?: boolean;
|
|
26
70
|
hideTableHead?: boolean;
|
|
27
|
-
hideToolbarInternalActions?: boolean;
|
|
28
71
|
hideToolbarBottom?: boolean;
|
|
72
|
+
hideToolbarInternalActions?: boolean;
|
|
29
73
|
hideToolbarTop?: boolean;
|
|
74
|
+
icons?: Partial<MRT_Icons>;
|
|
75
|
+
initialState?: Partial<MRT_TableState>;
|
|
30
76
|
isFetching?: boolean;
|
|
31
77
|
isLoading?: boolean;
|
|
32
78
|
localization?: Partial<MRT_Localization>;
|
|
33
79
|
muiSearchTextFieldProps?: TextFieldProps;
|
|
34
|
-
muiTableBodyCellEditTextFieldProps?: TextFieldProps | ((cell?:
|
|
35
|
-
muiTableBodyCellProps?: TableCellProps | ((cell?:
|
|
80
|
+
muiTableBodyCellEditTextFieldProps?: TextFieldProps | ((cell?: MRT_Cell<D>) => TextFieldProps);
|
|
81
|
+
muiTableBodyCellProps?: TableCellProps | ((cell?: MRT_Cell<D>) => TableCellProps);
|
|
36
82
|
muiTableBodyProps?: TableBodyProps;
|
|
37
83
|
muiTableBodyRowProps?: TableRowProps | ((row: Row<D>) => TableRowProps);
|
|
38
|
-
muiTableContainerProps?: TableContainerProps | ((table:
|
|
84
|
+
muiTableContainerProps?: TableContainerProps | ((table: MRT_TableInstance<D>) => TableContainerProps);
|
|
39
85
|
muiTableDetailPanelProps?: TableCellProps | ((row: Row<D>) => TableCellProps);
|
|
40
86
|
muiTableFooterCellProps?: TableCellProps | ((column: Column<D>) => TableCellProps);
|
|
41
87
|
muiTableFooterProps?: TableFooterProps;
|
|
42
|
-
muiTableFooterRowProps?: TableRowProps | ((footerGroup:
|
|
88
|
+
muiTableFooterRowProps?: TableRowProps | ((footerGroup: MRT_HeaderGroup<D>) => TableRowProps);
|
|
43
89
|
muiTableHeadCellFilterTextFieldProps?: TextFieldProps | ((column: Column<D>) => TextFieldProps);
|
|
44
90
|
muiTableHeadCellProps?: TableCellProps | ((column: Column<D>) => TableCellProps);
|
|
45
91
|
muiTableHeadProps?: TableHeadProps;
|
|
46
|
-
muiTableHeadRowProps?: TableRowProps | ((row:
|
|
47
|
-
muiTablePaginationProps?: Partial<TablePaginationProps> | ((tableInstance:
|
|
92
|
+
muiTableHeadRowProps?: TableRowProps | ((row: MRT_HeaderGroup<D>) => TableRowProps);
|
|
93
|
+
muiTablePaginationProps?: Partial<TablePaginationProps> | ((tableInstance: MRT_TableInstance<D>) => Partial<TablePaginationProps>);
|
|
48
94
|
muiTableProps?: TableProps;
|
|
49
|
-
muiTableToolbarAlertBannerProps?: AlertProps | ((tableInstance:
|
|
50
|
-
muiTableToolbarBottomProps?: ToolbarProps | ((tableInstance:
|
|
51
|
-
muiTableToolbarTopProps?: ToolbarProps | ((tableInstance:
|
|
52
|
-
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, cell:
|
|
95
|
+
muiTableToolbarAlertBannerProps?: AlertProps | ((tableInstance: MRT_TableInstance<D>) => AlertProps);
|
|
96
|
+
muiTableToolbarBottomProps?: ToolbarProps | ((tableInstance: MRT_TableInstance<D>) => ToolbarProps);
|
|
97
|
+
muiTableToolbarTopProps?: ToolbarProps | ((tableInstance: MRT_TableInstance<D>) => ToolbarProps);
|
|
98
|
+
onCellClick?: (event: MouseEvent<HTMLTableCellElement>, cell: MRT_Cell<D>) => void;
|
|
53
99
|
onColumnHide?: (column: Column<D>, visibleColumns: Column<D>[]) => void;
|
|
54
100
|
onDetailPanelClick?: (event: MouseEvent<HTMLTableCellElement>, row: Row<D>) => void;
|
|
55
101
|
onGlobalFilterChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -63,10 +109,10 @@ export declare type MaterialReactTableProps<D extends {} = {}> = TableOptions<D>
|
|
|
63
109
|
positionToolbarActions?: 'bottom' | 'top';
|
|
64
110
|
positionToolbarAlertBanner?: 'bottom' | 'top';
|
|
65
111
|
renderDetailPanel?: (row: Row<D>) => ReactNode;
|
|
66
|
-
renderRowActionMenuItems?: (rowData: Row<D>, tableInstance:
|
|
67
|
-
renderRowActions?: (row: Row<D>, tableInstance:
|
|
68
|
-
renderToolbarCustomActions?: (tableInstance:
|
|
69
|
-
renderToolbarInternalActions?: (tableInstance:
|
|
112
|
+
renderRowActionMenuItems?: (rowData: Row<D>, tableInstance: MRT_TableInstance<D>, closeMenu: () => void) => ReactNode[];
|
|
113
|
+
renderRowActions?: (row: Row<D>, tableInstance: MRT_TableInstance<D>) => ReactNode;
|
|
114
|
+
renderToolbarCustomActions?: (tableInstance: MRT_TableInstance<D>) => ReactNode;
|
|
115
|
+
renderToolbarInternalActions?: (tableInstance: MRT_TableInstance<D>, { MRT_ToggleSearchButton, MRT_ToggleFiltersButton, MRT_ShowHideColumnsButton, MRT_ToggleDensePaddingButton, MRT_FullScreenToggleButton, }: {
|
|
70
116
|
MRT_ToggleSearchButton: FC<IconButtonProps>;
|
|
71
117
|
MRT_ToggleFiltersButton: FC<IconButtonProps>;
|
|
72
118
|
MRT_ShowHideColumnsButton: FC<IconButtonProps>;
|
|
@@ -74,5 +120,5 @@ export declare type MaterialReactTableProps<D extends {} = {}> = TableOptions<D>
|
|
|
74
120
|
MRT_FullScreenToggleButton: FC<IconButtonProps>;
|
|
75
121
|
}) => ReactNode;
|
|
76
122
|
};
|
|
77
|
-
declare const _default: <D extends {}>({ defaultColumn, localization, positionActionsColumn, positionPagination, positionToolbarActions, positionToolbarAlertBanner, ...rest }: MaterialReactTableProps<D>) => JSX.Element;
|
|
123
|
+
declare const _default: <D extends {}>({ defaultColumn, icons, localization, positionActionsColumn, positionPagination, positionToolbarActions, positionToolbarAlertBanner, ...rest }: MaterialReactTableProps<D>) => JSX.Element;
|
|
78
124
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MRT_Cell } from '..';
|
|
3
3
|
export declare const MRT_StyledTableBodyCell: import("@emotion/styled").StyledComponent<import("@mui/material").TableCellProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
4
|
densePadding?: boolean | undefined;
|
|
5
5
|
}, {}, {}>;
|
|
6
6
|
interface Props {
|
|
7
|
-
cell:
|
|
7
|
+
cell: MRT_Cell;
|
|
8
8
|
}
|
|
9
9
|
export declare const MRT_TableBodyCell: FC<Props>;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MRT_Row } from '..';
|
|
3
3
|
export declare const TableRow: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
classes?: Partial<import("@mui/material").TableRowClasses> | undefined;
|
|
@@ -16,7 +16,7 @@ export declare const TableRow: import("@emotion/styled").StyledComponent<{
|
|
|
16
16
|
isSelected?: boolean | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
18
18
|
interface Props {
|
|
19
|
-
row:
|
|
19
|
+
row: MRT_Row;
|
|
20
20
|
}
|
|
21
21
|
export declare const MRT_TableBodyRow: FC<Props>;
|
|
22
22
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MRT_HeaderGroup } from '..';
|
|
3
3
|
interface Props {
|
|
4
|
-
column:
|
|
4
|
+
column: MRT_HeaderGroup;
|
|
5
5
|
}
|
|
6
6
|
export declare const MRT_ToggleColumnActionMenuButton: FC<Props>;
|
|
7
7
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MRT_HeaderGroup } from '..';
|
|
3
3
|
export declare const MRT_StyledTableHeadCell: import("@emotion/styled").StyledComponent<import("@mui/material").TableCellProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
4
|
densePadding?: boolean | undefined;
|
|
5
5
|
enableColumnResizing?: boolean | undefined;
|
|
6
6
|
}, {}, {}>;
|
|
7
7
|
interface Props {
|
|
8
|
-
column:
|
|
8
|
+
column: MRT_HeaderGroup;
|
|
9
9
|
}
|
|
10
10
|
export declare const MRT_TableHeadCell: FC<Props>;
|
|
11
11
|
export {};
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface MRT_Icons {
|
|
2
|
+
CancelIcon: any;
|
|
3
|
+
ClearAllIcon: any;
|
|
4
|
+
CloseIcon: any;
|
|
5
|
+
DensityMediumIcon: any;
|
|
6
|
+
DensitySmallIcon: any;
|
|
7
|
+
DoubleArrowDownIcon: any;
|
|
8
|
+
DynamicFeedIcon: any;
|
|
9
|
+
EditIcon: any;
|
|
10
|
+
ExpandLessIcon: any;
|
|
11
|
+
ExpandMoreIcon: any;
|
|
12
|
+
FilterListIcon: any;
|
|
13
|
+
FilterListOffIcon: any;
|
|
14
|
+
FullscreenExitIcon: any;
|
|
15
|
+
FullscreenIcon: any;
|
|
16
|
+
MoreHorizIcon: any;
|
|
17
|
+
MoreVertIcon: any;
|
|
18
|
+
SaveIcon: any;
|
|
19
|
+
SearchIcon: any;
|
|
20
|
+
SearchOffIcon: any;
|
|
21
|
+
SortIcon: any;
|
|
22
|
+
ViewColumnIcon: any;
|
|
23
|
+
VisibilityOffIcon: any;
|
|
24
|
+
}
|
|
25
|
+
export declare const MRT_Default_Icons: MRT_Icons;
|