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
  }
@@ -5,7 +5,6 @@ import { rankItem, rankings, compareItems } from '@tanstack/match-sorter-utils';
5
5
  import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
6
6
  import ArrowRightIcon from '@mui/icons-material/ArrowRight';
7
7
  import CancelIcon from '@mui/icons-material/Cancel';
8
- import CheckBoxIcon from '@mui/icons-material/CheckBox';
9
8
  import ClearAllIcon from '@mui/icons-material/ClearAll';
10
9
  import CloseIcon from '@mui/icons-material/Close';
11
10
  import DensityLargeIcon from '@mui/icons-material/DensityLarge';
@@ -17,7 +16,6 @@ import EditIcon from '@mui/icons-material/Edit';
17
16
  import ExpandLessIcon from '@mui/icons-material/ExpandLess';
18
17
  import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
19
18
  import FilterAltIcon from '@mui/icons-material/FilterAlt';
20
- import FilterAltOffIcon from '@mui/icons-material/FilterAltOff';
21
19
  import FilterListIcon from '@mui/icons-material/FilterList';
22
20
  import FilterListOffIcon from '@mui/icons-material/FilterListOff';
23
21
  import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
@@ -371,7 +369,6 @@ const MRT_Default_Icons = {
371
369
  ArrowDownwardIcon,
372
370
  ArrowRightIcon,
373
371
  CancelIcon,
374
- CheckBoxIcon,
375
372
  ClearAllIcon,
376
373
  CloseIcon,
377
374
  DensityLargeIcon,
@@ -383,7 +380,6 @@ const MRT_Default_Icons = {
383
380
  ExpandLessIcon,
384
381
  ExpandMoreIcon,
385
382
  FilterAltIcon,
386
- FilterAltOffIcon,
387
383
  FilterListIcon,
388
384
  FilterListOffIcon,
389
385
  FullscreenExitIcon,
@@ -1559,7 +1555,10 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1559
1555
  const handleClearEmptyFilterChip = () => {
1560
1556
  setFilterValue('');
1561
1557
  column.setFilterValue(undefined);
1562
- setColumnFilterFns((prev) => (Object.assign(Object.assign({}, prev), { [header.id]: 'fuzzy' })));
1558
+ setColumnFilterFns((prev) => {
1559
+ var _a, _b, _c;
1560
+ return (Object.assign(Object.assign({}, prev), { [header.id]: (_c = (_b = (_a = columnDef.columnFilterModeOptions) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : columnFilterModeOptions === null || columnFilterModeOptions === void 0 ? void 0 : columnFilterModeOptions[0]) !== null && _c !== void 0 ? _c : 'fuzzy' }));
1561
+ });
1563
1562
  };
1564
1563
  const handleFilterMenuOpen = (event) => {
1565
1564
  setAnchorEl(event.currentTarget);