material-react-table 1.2.8 → 1.2.9

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.
@@ -1,4 +1,5 @@
1
1
  export interface MRT_Icons {
2
+ ArrowDownwardIcon: any;
2
3
  ArrowRightIcon: any;
3
4
  CancelIcon: any;
4
5
  CheckBoxIcon: any;
@@ -2,6 +2,7 @@ import React, { useMemo, useRef, useState, useCallback, useEffect, Fragment, mem
2
2
  import { aggregationFns, filterFns, sortingFns, useReactTable, getCoreRowModel, getExpandedRowModel, getFacetedRowModel, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel } from '@tanstack/react-table';
3
3
  import { alpha, lighten, useTheme, darken } from '@mui/material/styles';
4
4
  import { rankItem, rankings, compareItems } from '@tanstack/match-sorter-utils';
5
+ import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
5
6
  import ArrowRightIcon from '@mui/icons-material/ArrowRight';
6
7
  import CancelIcon from '@mui/icons-material/Cancel';
7
8
  import CheckBoxIcon from '@mui/icons-material/CheckBox';
@@ -346,6 +347,7 @@ const MRT_FilterFns = Object.assign(Object.assign({}, filterFns), { between,
346
347
  startsWith });
347
348
 
348
349
  const MRT_Default_Icons = {
350
+ ArrowDownwardIcon,
349
351
  ArrowRightIcon,
350
352
  CancelIcon,
351
353
  CheckBoxIcon,
@@ -1791,7 +1793,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1791
1793
  };
1792
1794
 
1793
1795
  const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1794
- const { options: { localization }, } = table;
1796
+ const { options: { icons: { ArrowDownwardIcon }, localization, }, } = table;
1795
1797
  const { column } = header;
1796
1798
  const { columnDef } = column;
1797
1799
  const sortTooltip = column.getIsSorted()
@@ -1808,7 +1810,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1808
1810
  transform: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) !== 'right'
1809
1811
  ? 'translateX(-0.5ch)'
1810
1812
  : undefined,
1811
- } })));
1813
+ }, IconComponent: ArrowDownwardIcon })));
1812
1814
  };
1813
1815
 
1814
1816
  const MRT_TableHeadCell = ({ header, table }) => {