material-react-table 1.5.2 → 1.5.3

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.
@@ -2,7 +2,6 @@ export interface MRT_Icons {
2
2
  ArrowDownwardIcon: any;
3
3
  ArrowRightIcon: any;
4
4
  CancelIcon: any;
5
- CheckBoxIcon: any;
6
5
  ClearAllIcon: any;
7
6
  CloseIcon: any;
8
7
  DensityLargeIcon: any;
@@ -15,7 +14,6 @@ export interface MRT_Icons {
15
14
  ExpandLessIcon: any;
16
15
  ExpandMoreIcon: any;
17
16
  FilterAltIcon: any;
18
- FilterAltOffIcon: any;
19
17
  FilterListIcon: any;
20
18
  FilterListOffIcon: any;
21
19
  FullscreenExitIcon: any;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { MRT_TableInstance } from '..';
2
+ import type { MRT_TableInstance } from '..';
3
3
  interface Props {
4
4
  table: MRT_TableInstance;
5
5
  }
package/dist/index.d.ts CHANGED
@@ -107,7 +107,6 @@ interface MRT_Icons {
107
107
  ArrowDownwardIcon: any;
108
108
  ArrowRightIcon: any;
109
109
  CancelIcon: any;
110
- CheckBoxIcon: any;
111
110
  ClearAllIcon: any;
112
111
  CloseIcon: any;
113
112
  DensityLargeIcon: any;
@@ -120,7 +119,6 @@ interface MRT_Icons {
120
119
  ExpandLessIcon: any;
121
120
  ExpandMoreIcon: any;
122
121
  FilterAltIcon: any;
123
- FilterAltOffIcon: any;
124
122
  FilterListIcon: any;
125
123
  FilterListOffIcon: any;
126
124
  FullscreenExitIcon: any;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.2",
2
+ "version": "1.5.3",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
package/src/icons.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
2
2
  import ArrowRightIcon from '@mui/icons-material/ArrowRight';
3
3
  import CancelIcon from '@mui/icons-material/Cancel';
4
- import CheckBoxIcon from '@mui/icons-material/CheckBox';
5
4
  import ClearAllIcon from '@mui/icons-material/ClearAll';
6
5
  import CloseIcon from '@mui/icons-material/Close';
7
6
  import DensityLargeIcon from '@mui/icons-material/DensityLarge';
@@ -13,7 +12,6 @@ import EditIcon from '@mui/icons-material/Edit';
13
12
  import ExpandLessIcon from '@mui/icons-material/ExpandLess';
14
13
  import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
15
14
  import FilterAltIcon from '@mui/icons-material/FilterAlt';
16
- import FilterAltOffIcon from '@mui/icons-material/FilterAltOff';
17
15
  import FilterListIcon from '@mui/icons-material/FilterList';
18
16
  import FilterListOffIcon from '@mui/icons-material/FilterListOff';
19
17
  import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
@@ -34,7 +32,6 @@ export interface MRT_Icons {
34
32
  ArrowDownwardIcon: any;
35
33
  ArrowRightIcon: any;
36
34
  CancelIcon: any;
37
- CheckBoxIcon: any;
38
35
  ClearAllIcon: any;
39
36
  CloseIcon: any;
40
37
  DensityLargeIcon: any;
@@ -47,7 +44,6 @@ export interface MRT_Icons {
47
44
  ExpandLessIcon: any;
48
45
  ExpandMoreIcon: any;
49
46
  FilterAltIcon: any;
50
- FilterAltOffIcon: any;
51
47
  FilterListIcon: any;
52
48
  FilterListOffIcon: any;
53
49
  FullscreenExitIcon: any;
@@ -68,7 +64,6 @@ export const MRT_Default_Icons: MRT_Icons = {
68
64
  ArrowDownwardIcon,
69
65
  ArrowRightIcon,
70
66
  CancelIcon,
71
- CheckBoxIcon,
72
67
  ClearAllIcon,
73
68
  CloseIcon,
74
69
  DensityLargeIcon,
@@ -80,7 +75,6 @@ export const MRT_Default_Icons: MRT_Icons = {
80
75
  ExpandLessIcon,
81
76
  ExpandMoreIcon,
82
77
  FilterAltIcon,
83
- FilterAltOffIcon,
84
78
  FilterListIcon,
85
79
  FilterListOffIcon,
86
80
  FullscreenExitIcon,
@@ -165,7 +165,9 @@ export const MRT_FilterTextField: FC<Props> = ({
165
165
  column.setFilterValue(undefined);
166
166
  setColumnFilterFns((prev) => ({
167
167
  ...prev,
168
- [header.id]: 'fuzzy',
168
+ [header.id]: columnDef.columnFilterModeOptions?.[0]
169
+ ?? columnFilterModeOptions?.[0]
170
+ ?? 'fuzzy',
169
171
  }));
170
172
  };
171
173
 
@@ -5,10 +5,10 @@ import useMediaQuery from '@mui/material/useMediaQuery';
5
5
  import { alpha } from '@mui/material/styles';
6
6
  import { MRT_TablePagination } from './MRT_TablePagination';
7
7
  import { MRT_ToolbarAlertBanner } from './MRT_ToolbarAlertBanner';
8
+ import { MRT_ToolbarDropZone } from './MRT_ToolbarDropZone';
8
9
  import { MRT_LinearProgressBar } from './MRT_LinearProgressBar';
9
10
  import { commonToolbarStyles } from './MRT_TopToolbar';
10
- import { MRT_TableInstance } from '..';
11
- import { MRT_ToolbarDropZone } from './MRT_ToolbarDropZone';
11
+ import type { MRT_TableInstance } from '..';
12
12
 
13
13
  interface Props {
14
14
  table: MRT_TableInstance;