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 CHANGED
@@ -173,7 +173,7 @@ export default function App() {
173
173
  onRowSelectionChange={setRowSelection} //hoist internal state to your own state (optional)
174
174
  state={{ rowSelection }} //manage your own state, pass it back to the table (optional)
175
175
  tableInstanceRef={tableInstanceRef} //get a reference to the underlying table instance (optional)
176
- />
176
+ />
177
177
  );
178
178
  }
179
179
  ```
@@ -0,0 +1,2 @@
1
+ import { MRT_Localization } from '../MaterialReactTable';
2
+ export declare const MRT_Localization_IT: MRT_Localization;
@@ -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;
package/dist/cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var React = require('react');
6
6
  var reactTable = require('@tanstack/react-table');
7
7
  var styles = require('@mui/material/styles');
8
8
  var matchSorterUtils = require('@tanstack/match-sorter-utils');
9
+ var ArrowDownwardIcon = require('@mui/icons-material/ArrowDownward');
9
10
  var ArrowRightIcon = require('@mui/icons-material/ArrowRight');
10
11
  var CancelIcon = require('@mui/icons-material/Cancel');
11
12
  var CheckBoxIcon = require('@mui/icons-material/CheckBox');
@@ -82,6 +83,7 @@ var Stack = require('@mui/material/Stack');
82
83
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
83
84
 
84
85
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
86
+ var ArrowDownwardIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDownwardIcon);
85
87
  var ArrowRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowRightIcon);
86
88
  var CancelIcon__default = /*#__PURE__*/_interopDefaultLegacy(CancelIcon);
87
89
  var CheckBoxIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckBoxIcon);
@@ -425,6 +427,7 @@ const MRT_FilterFns = Object.assign(Object.assign({}, reactTable.filterFns), { b
425
427
  startsWith });
426
428
 
427
429
  const MRT_Default_Icons = {
430
+ ArrowDownwardIcon: ArrowDownwardIcon__default["default"],
428
431
  ArrowRightIcon: ArrowRightIcon__default["default"],
429
432
  CancelIcon: CancelIcon__default["default"],
430
433
  CheckBoxIcon: CheckBoxIcon__default["default"],
@@ -1870,7 +1873,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1870
1873
  };
1871
1874
 
1872
1875
  const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1873
- const { options: { localization }, } = table;
1876
+ const { options: { icons: { ArrowDownwardIcon }, localization, }, } = table;
1874
1877
  const { column } = header;
1875
1878
  const { columnDef } = column;
1876
1879
  const sortTooltip = column.getIsSorted()
@@ -1887,7 +1890,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1887
1890
  transform: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) !== 'right'
1888
1891
  ? 'translateX(-0.5ch)'
1889
1892
  : undefined,
1890
- } })));
1893
+ }, IconComponent: ArrowDownwardIcon })));
1891
1894
  };
1892
1895
 
1893
1896
  const MRT_TableHeadCell = ({ header, table }) => {