material-react-table 1.2.8 → 1.2.10
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 +1 -1
- package/dist/cjs/_locales/it.d.ts +2 -0
- package/dist/cjs/icons.d.ts +1 -0
- package/dist/cjs/index.js +5 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/_locales/it.d.ts +2 -0
- package/dist/esm/icons.d.ts +1 -0
- package/dist/esm/material-react-table.esm.js +4 -2
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/locales/it.d.ts +2 -0
- package/locales/it.esm.d.ts +2 -0
- package/locales/it.esm.js +92 -0
- package/locales/it.esm.js.map +1 -0
- package/locales/it.js +96 -0
- package/locales/it.js.map +1 -0
- package/package.json +2 -2
- package/src/_locales/it.ts +92 -0
- package/src/head/MRT_TableHeadCellSortLabel.tsx +5 -1
- package/src/icons.ts +3 -0
package/dist/esm/icons.d.ts
CHANGED
|
@@ -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 }) => {
|