material-react-table 0.7.4 → 0.8.0-alpha.1

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.
Files changed (57) hide show
  1. package/dist/MaterialReactTable.d.ts +25 -31
  2. package/dist/body/MRT_TableBody.d.ts +0 -1
  3. package/dist/body/MRT_TableBodyCell.d.ts +1 -0
  4. package/dist/body/MRT_TableBodyRow.d.ts +0 -1
  5. package/dist/buttons/MRT_ColumnPinningButtons.d.ts +8 -0
  6. package/dist/buttons/MRT_CopyButton.d.ts +2 -1
  7. package/dist/enums.d.ts +3 -3
  8. package/dist/filtersFNs.d.ts +31 -30
  9. package/dist/footer/MRT_TableFooter.d.ts +0 -1
  10. package/dist/head/MRT_TableHead.d.ts +0 -1
  11. package/dist/inputs/MRT_FilterRangeFields.d.ts +8 -0
  12. package/dist/inputs/MRT_FilterTextField.d.ts +1 -0
  13. package/dist/localization.d.ts +7 -2
  14. package/dist/material-react-table.cjs.development.js +489 -448
  15. package/dist/material-react-table.cjs.development.js.map +1 -1
  16. package/dist/material-react-table.cjs.production.min.js +1 -1
  17. package/dist/material-react-table.cjs.production.min.js.map +1 -1
  18. package/dist/material-react-table.esm.js +492 -451
  19. package/dist/material-react-table.esm.js.map +1 -1
  20. package/dist/menus/{MRT_FilterTypeMenu.d.ts → MRT_FilterOptionMenu.d.ts} +1 -1
  21. package/dist/table/MRT_Table.d.ts +0 -1
  22. package/dist/toolbar/MRT_ToolbarTop.d.ts +1 -0
  23. package/dist/utils.d.ts +6 -6
  24. package/package.json +24 -24
  25. package/src/MaterialReactTable.tsx +39 -41
  26. package/src/body/MRT_TableBody.tsx +3 -11
  27. package/src/body/MRT_TableBodyCell.tsx +102 -51
  28. package/src/body/MRT_TableBodyRow.tsx +21 -30
  29. package/src/buttons/MRT_ColumnPinningButtons.tsx +57 -0
  30. package/src/buttons/MRT_CopyButton.tsx +3 -2
  31. package/src/buttons/MRT_EditActionButtons.tsx +1 -2
  32. package/src/buttons/MRT_ExpandAllButton.tsx +1 -2
  33. package/src/enums.ts +3 -3
  34. package/src/filtersFNs.ts +71 -81
  35. package/src/footer/MRT_TableFooter.tsx +6 -16
  36. package/src/footer/MRT_TableFooterCell.tsx +5 -7
  37. package/src/footer/MRT_TableFooterRow.tsx +5 -8
  38. package/src/head/MRT_TableHead.tsx +5 -16
  39. package/src/head/MRT_TableHeadCell.tsx +101 -44
  40. package/src/head/MRT_TableHeadRow.tsx +8 -15
  41. package/src/inputs/MRT_EditCellTextField.tsx +2 -2
  42. package/src/inputs/MRT_FilterRangeFields.tsx +41 -0
  43. package/src/inputs/MRT_FilterTextField.tsx +84 -52
  44. package/src/inputs/MRT_SearchTextField.tsx +2 -2
  45. package/src/inputs/MRT_SelectCheckbox.tsx +16 -17
  46. package/src/localization.ts +15 -5
  47. package/src/menus/MRT_ColumnActionMenu.tsx +9 -8
  48. package/src/menus/{MRT_FilterTypeMenu.tsx → MRT_FilterOptionMenu.tsx} +54 -49
  49. package/src/menus/MRT_ShowHideColumnsMenu.tsx +25 -11
  50. package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +15 -5
  51. package/src/table/MRT_Table.tsx +8 -19
  52. package/src/table/MRT_TableContainer.tsx +8 -69
  53. package/src/table/MRT_TableRoot.tsx +70 -70
  54. package/src/toolbar/MRT_LinearProgressBar.tsx +5 -2
  55. package/src/toolbar/MRT_ToolbarAlertBanner.tsx +3 -2
  56. package/src/toolbar/MRT_ToolbarTop.tsx +4 -6
  57. package/src/utils.ts +10 -10
@@ -1,15 +1,16 @@
1
1
  import { ChangeEvent, Dispatch, FC, FocusEvent, MouseEvent, ReactNode, SetStateAction } from 'react';
2
2
  import { AlertProps, ButtonProps, CheckboxProps, IconButtonProps, LinearProgressProps, PaperProps, SkeletonProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TextFieldProps, ToolbarProps } from '@mui/material';
3
- import { Cell, Column, ColumnDef, DefaultGenerics, FilterType, Header, HeaderGroup, Options, Overwrite, PaginationState, Row, TableInstance, TableState, VisibilityState } from '@tanstack/react-table';
3
+ import { Cell, Column, ColumnDef, FilterFn, FilterFnOption, Header, HeaderGroup, Overwrite, PaginationState, ReactTableGenerics, Row, TableGenerics, TableInstance, TableState, UseTableInstanceOptions, VisibilityState } from '@tanstack/react-table';
4
4
  import { MRT_Localization } from './localization';
5
5
  import { MRT_Icons } from './icons';
6
- import { MRT_FILTER_TYPE } from './enums';
7
- export declare type MRT_TableOptions<D extends Record<string, any> = {}> = Partial<Omit<Options<D>, 'columns' | 'data' | 'initialState' | 'state' | 'expandRowsFn'>> & {
6
+ import { MRT_FILTER_OPTION } from './enums';
7
+ export declare type MRT_TableOptions<D extends Record<string, any> = {}> = Partial<Omit<UseTableInstanceOptions<ReactTableGenerics>, 'columns' | 'data' | 'initialState' | 'state' | 'expandRowsFn' | 'filterFns'>> & {
8
8
  columns: MRT_ColumnDef<D>[];
9
9
  data: D[];
10
+ expandRowsFn?: (dataRow: D) => D[];
11
+ filterFns?: MRT_FILTER_OPTION | FilterFn<D> | string | number | symbol;
10
12
  initialState?: Partial<MRT_TableState<D>>;
11
13
  state?: Partial<MRT_TableState<D>>;
12
- expandRowsFn?: (dataRow: D) => D[];
13
14
  };
14
15
  export interface MRT_RowModel<D extends Record<string, any> = {}> {
15
16
  flatRows: MRT_Row<D>[];
@@ -18,7 +19,7 @@ export interface MRT_RowModel<D extends Record<string, any> = {}> {
18
19
  [key: string]: MRT_Row<D>;
19
20
  };
20
21
  }
21
- export declare type MRT_TableInstance<D extends Record<string, any> = {}> = Omit<TableInstance<Overwrite<Partial<DefaultGenerics>, {
22
+ export declare type MRT_TableInstance<D extends Record<string, any> = {}> = Omit<TableInstance<Overwrite<Partial<TableGenerics>, {
22
23
  Row: D;
23
24
  }>>, 'getAllColumns' | 'getAllLeafColumns' | 'getExpandedRowModel' | 'getPaginationRowModel' | 'getPrePaginationRowModel' | 'getRowModel' | 'getSelectedRowModel' | 'getState' | 'options'> & {
24
25
  getAllColumns: () => MRT_Column<D>[];
@@ -32,17 +33,14 @@ export declare type MRT_TableInstance<D extends Record<string, any> = {}> = Omit
32
33
  options: MaterialReactTableProps<D> & {
33
34
  icons: MRT_Icons;
34
35
  idPrefix: string;
35
- filterTypes: {
36
- [key in MRT_FILTER_TYPE]: any;
37
- };
38
36
  localization: MRT_Localization;
39
37
  };
40
- setCurrentEditingCell: Dispatch<SetStateAction<MRT_Cell<D> | null>>;
41
- setCurrentEditingRow: Dispatch<SetStateAction<MRT_Row<D> | null>>;
42
- setCurrentFilterTypes: Dispatch<SetStateAction<{
43
- [key: string]: MRT_FilterType;
38
+ setCurrentEditingCell: Dispatch<SetStateAction<MRT_Cell | null>>;
39
+ setCurrentEditingRow: Dispatch<SetStateAction<MRT_Row | null>>;
40
+ setCurrentFilterFns: Dispatch<SetStateAction<{
41
+ [key: string]: MRT_FilterFn;
44
42
  }>>;
45
- setCurrentGlobalFilterType: Dispatch<SetStateAction<MRT_FILTER_TYPE>>;
43
+ setCurrentGlobalFilterFn: Dispatch<SetStateAction<MRT_FilterFn<D>>>;
46
44
  setIsDensePadding: Dispatch<SetStateAction<boolean>>;
47
45
  setIsFullScreen: Dispatch<SetStateAction<boolean>>;
48
46
  setShowFilters: Dispatch<SetStateAction<boolean>>;
@@ -51,15 +49,18 @@ export declare type MRT_TableInstance<D extends Record<string, any> = {}> = Omit
51
49
  export declare type MRT_TableState<D extends Record<string, any> = {}> = Omit<TableState, 'pagination'> & {
52
50
  currentEditingCell: MRT_Cell<D> | null;
53
51
  currentEditingRow: MRT_Row<D> | null;
54
- currentFilterTypes: Record<string, string | Function>;
55
- currentGlobalFilterType: Record<string, string | Function>;
52
+ currentFilterFns: Record<string, string | Function>;
53
+ currentGlobalFilterFn: Record<string, string | Function>;
56
54
  isDensePadding: boolean;
55
+ isLoading: boolean;
57
56
  isFullScreen: boolean;
57
+ pagination: Partial<PaginationState>;
58
58
  showFilters: boolean;
59
59
  showGlobalFilter: boolean;
60
- pagination: Partial<PaginationState>;
60
+ showProgressBars: boolean;
61
+ showSkeletons: boolean;
61
62
  };
62
- export declare type MRT_ColumnDef<D extends Record<string, any> = {}> = Omit<ColumnDef<D>, 'header' | 'footer' | 'columns'> & {
63
+ export declare type MRT_ColumnDef<D extends Record<string, any> = {}> = Omit<ColumnDef<D>, 'header' | 'footer' | 'columns' | 'filterFn'> & {
63
64
  Edit?: ({ cell, tableInstance, }: {
64
65
  cell: MRT_Cell<D>;
65
66
  tableInstance: MRT_TableInstance<D>;
@@ -85,8 +86,8 @@ export declare type MRT_ColumnDef<D extends Record<string, any> = {}> = Omit<Col
85
86
  enableClickToCopy?: boolean;
86
87
  enableColumnActions?: boolean;
87
88
  enableEditing?: boolean;
88
- enabledColumnFilterTypes?: (MRT_FILTER_TYPE | string)[];
89
- filter?: MRT_FilterType | string | FilterType<D>;
89
+ enabledColumnFilterOptions?: (MRT_FILTER_OPTION | string)[];
90
+ filterFn?: MRT_FilterFn;
90
91
  filterSelectOptions?: (string | {
91
92
  text: string;
92
93
  value: string;
@@ -146,11 +147,8 @@ export declare type MRT_Header<D extends Record<string, any> = {}> = Omit<Header
146
147
  export declare type MRT_HeaderGroup<D extends Record<string, any> = {}> = Omit<HeaderGroup<D>, 'headers'> & {
147
148
  headers: MRT_Header<D>[];
148
149
  };
149
- export declare type MRT_Row<D extends Record<string, any> = {}> = Omit<Row<D>, 'getVisibleCells' | 'getAllCells' | 'subRows' | 'original' | 'getLeftVisibleCells' | 'getRightVisibleCells' | 'getCenterVisibleCells'> & {
150
+ export declare type MRT_Row<D extends Record<string, any> = {}> = Omit<Row<D>, 'getVisibleCells' | 'getAllCells' | 'subRows' | 'original'> & {
150
151
  getAllCells: () => MRT_Cell<D>[];
151
- getCenterVisibleCells: () => MRT_Cell<D>[];
152
- getLeftVisibleCells: () => MRT_Cell<D>[];
153
- getRightVisibleCells: () => MRT_Cell<D>[];
154
152
  getVisibleCells: () => MRT_Cell<D>[];
155
153
  subRows?: MRT_Row<D>[];
156
154
  original: D;
@@ -159,7 +157,7 @@ export declare type MRT_Cell<D extends Record<string, any> = {}> = Omit<Cell<D>,
159
157
  column: MRT_Column<D>;
160
158
  row: MRT_Row<D>;
161
159
  };
162
- export declare type MRT_FilterType = MRT_FILTER_TYPE | Function;
160
+ export declare type MRT_FilterFn<D extends Record<string, any> = {}> = FilterFn<TableGenerics> | FilterFnOption<D> | MRT_FILTER_OPTION | number | string | symbol;
163
161
  export declare type MaterialReactTableProps<D extends Record<string, any> = {}> = MRT_TableOptions<D> & {
164
162
  editingMode?: 'table' | 'row' | 'cell';
165
163
  enableClickToCopy?: boolean;
@@ -179,14 +177,10 @@ export declare type MaterialReactTableProps<D extends Record<string, any> = {}>
179
177
  enableToolbarBottom?: boolean;
180
178
  enableToolbarInternalActions?: boolean;
181
179
  enableToolbarTop?: boolean;
182
- enabledGlobalFilterTypes?: (MRT_FILTER_TYPE | string)[];
183
- filterTypes?: {
184
- [key in MRT_FILTER_TYPE]: any;
185
- };
180
+ enabledColumnFilterOptions?: (MRT_FILTER_OPTION | string)[];
181
+ enabledGlobalFilterOptions?: (MRT_FILTER_OPTION | string)[];
186
182
  icons?: Partial<MRT_Icons>;
187
183
  idPrefix?: string;
188
- isLoading?: boolean;
189
- isReloading?: boolean;
190
184
  localization?: Partial<MRT_Localization>;
191
185
  muiLinearProgressProps?: LinearProgressProps | (({ tableInstance, }: {
192
186
  tableInstance: MRT_TableInstance;
@@ -396,5 +390,5 @@ export declare type MaterialReactTableProps<D extends Record<string, any> = {}>
396
390
  }>;
397
391
  }) => ReactNode;
398
392
  };
399
- declare const _default: <D extends Record<string, any> = {}>({ autoResetExpanded, columnResizeMode, editingMode, enableColumnActions, enableColumnFilters, enableColumnResizing, enableDensePaddingToggle, enableExpandAll, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, enableMultiRowSelection, enablePagination, enableSelectAll, enableSorting, enableStickyHeader, enableTableFooter, enableTableHead, enableToolbarBottom, enableToolbarInternalActions, enableToolbarTop, icons, localization, persistentStateMode, positionActionsColumn, positionPagination, positionToolbarActions, positionToolbarAlertBanner, ...rest }: MaterialReactTableProps<D>) => JSX.Element;
393
+ declare const _default: <D extends Record<string, any> = {}>({ autoResetExpanded, columnResizeMode, editingMode, enableColumnActions, enableColumnFilters, enableColumnResizing, enableDensePaddingToggle, enableExpandAll, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, enableMultiRowSelection, enablePagination, enablePinning, enableSelectAll, enableSorting, enableStickyHeader, enableTableFooter, enableTableHead, enableToolbarBottom, enableToolbarInternalActions, enableToolbarTop, icons, localization, persistentStateMode, positionActionsColumn, positionPagination, positionToolbarActions, positionToolbarAlertBanner, ...rest }: MaterialReactTableProps<D>) => JSX.Element;
400
394
  export default _default;
@@ -1,7 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { MRT_TableInstance } from '..';
3
3
  interface Props {
4
- pinned: 'left' | 'center' | 'right' | 'none';
5
4
  tableInstance: MRT_TableInstance;
6
5
  }
7
6
  export declare const MRT_TableBody: FC<Props>;
@@ -2,6 +2,7 @@ import { FC } from 'react';
2
2
  import type { MRT_Cell, MRT_TableInstance } from '..';
3
3
  interface Props {
4
4
  cell: MRT_Cell;
5
+ enableHover?: boolean;
5
6
  tableInstance: MRT_TableInstance;
6
7
  }
7
8
  export declare const MRT_TableBodyCell: FC<Props>;
@@ -1,7 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import type { MRT_Row, MRT_TableInstance } from '..';
3
3
  interface Props {
4
- pinned: 'left' | 'center' | 'right' | 'none';
5
4
  row: MRT_Row;
6
5
  tableInstance: MRT_TableInstance;
7
6
  }
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import type { MRT_Column, MRT_TableInstance } from '..';
3
+ interface Props {
4
+ column: MRT_Column;
5
+ tableInstance: MRT_TableInstance;
6
+ }
7
+ export declare const MRT_ColumnPinningButtons: FC<Props>;
8
+ export {};
@@ -1,7 +1,8 @@
1
- import { FC } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  import { MRT_Cell, MRT_TableInstance } from '..';
3
3
  interface Props {
4
4
  cell: MRT_Cell;
5
+ children: ReactNode;
5
6
  tableInstance: MRT_TableInstance;
6
7
  }
7
8
  export declare const MRT_CopyButton: FC<Props>;
package/dist/enums.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export declare enum MRT_FILTER_TYPE {
2
- BEST_MATCH = "bestMatch",
3
- BEST_MATCH_FIRST = "bestMatchFirst",
1
+ export declare enum MRT_FILTER_OPTION {
2
+ BETWEEN = "between",
4
3
  CONTAINS = "contains",
5
4
  EMPTY = "empty",
6
5
  ENDS_WITH = "endsWith",
7
6
  EQUALS = "equals",
7
+ FUZZY = "fuzzy",
8
8
  GREATER_THAN = "greaterThan",
9
9
  LESS_THAN = "lessThan",
10
10
  NOT_EMPTY = "notEmpty",
@@ -1,91 +1,92 @@
1
+ import { RankingInfo } from '@tanstack/match-sorter-utils';
1
2
  import { MRT_Row } from '.';
2
- export declare const bestMatchFirst: {
3
- (rows: MRT_Row[], columnIds: string[] | string, filterValue: string | number): MRT_Row<{}>[];
4
- autoRemove(val: any): boolean;
5
- };
6
- export declare const bestMatch: {
7
- (rows: MRT_Row[], columnIds: string[] | string, filterValue: string | number): MRT_Row<{}>[];
3
+ export declare const fuzzy: {
4
+ (row: MRT_Row, columnId: string, value: string, addMeta: (item: RankingInfo) => void): boolean;
8
5
  autoRemove(val: any): boolean;
9
6
  };
10
7
  export declare const contains: {
11
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
8
+ (row: MRT_Row, id: string, filterValue: string | number): any;
12
9
  autoRemove(val: any): boolean;
13
10
  };
14
11
  export declare const startsWith: {
15
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
12
+ (row: MRT_Row, id: string, filterValue: string | number): any;
16
13
  autoRemove(val: any): boolean;
17
14
  };
18
15
  export declare const endsWith: {
19
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
16
+ (row: MRT_Row, id: string, filterValue: string | number): any;
20
17
  autoRemove(val: any): boolean;
21
18
  };
22
19
  export declare const equals: {
23
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
20
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
24
21
  autoRemove(val: any): boolean;
25
22
  };
26
23
  export declare const notEquals: {
27
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
24
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
28
25
  autoRemove(val: any): boolean;
29
26
  };
30
27
  export declare const greaterThan: {
31
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
28
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
32
29
  autoRemove(val: any): boolean;
33
30
  };
34
31
  export declare const lessThan: {
35
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
32
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
33
+ autoRemove(val: any): boolean;
34
+ };
35
+ export declare const between: {
36
+ (row: MRT_Row, id: string, filterValues: [string | number, string | number]): boolean;
36
37
  autoRemove(val: any): boolean;
37
38
  };
38
39
  export declare const empty: {
39
- (rows: MRT_Row[], id: string, _filterValue: string | number): MRT_Row<{}>[];
40
+ (row: MRT_Row, id: string, _filterValue: string | number): boolean;
40
41
  autoRemove(val: any): boolean;
41
42
  };
42
43
  export declare const notEmpty: {
43
- (rows: MRT_Row[], id: string, _filterValue: string | number): MRT_Row<{}>[];
44
+ (row: MRT_Row, id: string, _filterValue: string | number): boolean;
44
45
  autoRemove(val: any): boolean;
45
46
  };
46
47
  export declare const defaultFilterFNs: {
47
- bestMatch: {
48
- (rows: MRT_Row[], columnIds: string[] | string, filterValue: string | number): MRT_Row<{}>[];
49
- autoRemove(val: any): boolean;
50
- };
51
- bestMatchFirst: {
52
- (rows: MRT_Row[], columnIds: string[] | string, filterValue: string | number): MRT_Row<{}>[];
48
+ between: {
49
+ (row: MRT_Row, id: string, filterValues: [string | number, string | number]): boolean;
53
50
  autoRemove(val: any): boolean;
54
51
  };
55
52
  contains: {
56
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
53
+ (row: MRT_Row, id: string, filterValue: string | number): any;
57
54
  autoRemove(val: any): boolean;
58
55
  };
59
56
  empty: {
60
- (rows: MRT_Row[], id: string, _filterValue: string | number): MRT_Row<{}>[];
57
+ (row: MRT_Row, id: string, _filterValue: string | number): boolean;
61
58
  autoRemove(val: any): boolean;
62
59
  };
63
60
  endsWith: {
64
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
61
+ (row: MRT_Row, id: string, filterValue: string | number): any;
65
62
  autoRemove(val: any): boolean;
66
63
  };
67
64
  equals: {
68
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
65
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
66
+ autoRemove(val: any): boolean;
67
+ };
68
+ fuzzy: {
69
+ (row: MRT_Row, columnId: string, value: string, addMeta: (item: RankingInfo) => void): boolean;
69
70
  autoRemove(val: any): boolean;
70
71
  };
71
72
  greaterThan: {
72
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
73
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
73
74
  autoRemove(val: any): boolean;
74
75
  };
75
76
  lessThan: {
76
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
77
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
77
78
  autoRemove(val: any): boolean;
78
79
  };
79
80
  notEmpty: {
80
- (rows: MRT_Row[], id: string, _filterValue: string | number): MRT_Row<{}>[];
81
+ (row: MRT_Row, id: string, _filterValue: string | number): boolean;
81
82
  autoRemove(val: any): boolean;
82
83
  };
83
84
  notEquals: {
84
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
85
+ (row: MRT_Row, id: string, filterValue: string | number): boolean;
85
86
  autoRemove(val: any): boolean;
86
87
  };
87
88
  startsWith: {
88
- (rows: MRT_Row[], id: string, filterValue: string | number): MRT_Row<{}>[];
89
+ (row: MRT_Row, id: string, filterValue: string | number): any;
89
90
  autoRemove(val: any): boolean;
90
91
  };
91
92
  };
@@ -1,7 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import type { MRT_TableInstance } from '..';
3
3
  interface Props {
4
- pinned: 'left' | 'center' | 'right' | 'none';
5
4
  tableInstance: MRT_TableInstance;
6
5
  }
7
6
  export declare const MRT_TableFooter: FC<Props>;
@@ -1,7 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import type { MRT_TableInstance } from '..';
3
3
  interface Props {
4
- pinned: 'left' | 'center' | 'right' | 'none';
5
4
  tableInstance: MRT_TableInstance;
6
5
  }
7
6
  export declare const MRT_TableHead: FC<Props>;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { MRT_Header, MRT_TableInstance } from '..';
3
+ interface Props {
4
+ header: MRT_Header;
5
+ tableInstance: MRT_TableInstance;
6
+ }
7
+ declare const MRT_FilterRangeFields: FC<Props>;
8
+ export default MRT_FilterRangeFields;
@@ -2,6 +2,7 @@ import { FC } from 'react';
2
2
  import type { MRT_Header, MRT_TableInstance } from '..';
3
3
  interface Props {
4
4
  header: MRT_Header;
5
+ inputIndex?: number;
5
6
  tableInstance: MRT_TableInstance;
6
7
  }
7
8
  export declare const MRT_FilterTextField: FC<Props>;
@@ -1,5 +1,6 @@
1
1
  export interface MRT_Localization {
2
2
  actions: string;
3
+ and: string;
3
4
  cancel: string;
4
5
  changeFilterMode: string;
5
6
  changeSearchMode: string;
@@ -12,13 +13,13 @@ export interface MRT_Localization {
12
13
  edit: string;
13
14
  expand: string;
14
15
  expandAll: string;
15
- filterBestMatch: string;
16
- filterBestMatchFirst: string;
16
+ filterBetween: string;
17
17
  filterByColumn: string;
18
18
  filterContains: string;
19
19
  filterEmpty: string;
20
20
  filterEndsWith: string;
21
21
  filterEquals: string;
22
+ filterFuzzy: string;
22
23
  filterGreaterThan: string;
23
24
  filterLessThan: string;
24
25
  filterMode: string;
@@ -30,6 +31,8 @@ export interface MRT_Localization {
30
31
  groupedBy: string;
31
32
  hideAll: string;
32
33
  hideColumn: string;
34
+ max: string;
35
+ min: string;
33
36
  pinToLeft: string;
34
37
  pinToRight: string;
35
38
  resetColumnSize: string;
@@ -50,12 +53,14 @@ export interface MRT_Localization {
50
53
  sortedByColumnAsc: string;
51
54
  sortedByColumnDesc: string;
52
55
  thenBy: string;
56
+ to: string;
53
57
  toggleDensePadding: string;
54
58
  toggleFullScreen: string;
55
59
  toggleSelectAll: string;
56
60
  toggleSelectRow: string;
57
61
  ungroupByColumn: string;
58
62
  unpin: string;
63
+ unpinAll: string;
59
64
  unsorted: string;
60
65
  }
61
66
  export declare const MRT_DefaultLocalization_EN: MRT_Localization;