material-react-table 1.1.0-beta.0 → 1.1.0

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,8 +2,8 @@ import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
2
  import type { AlertProps, ButtonProps, CheckboxProps, ChipProps, IconButtonProps, LinearProgressProps, PaperProps, RadioProps, SkeletonProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TextFieldProps, ToolbarProps } from '@mui/material';
3
3
  import type { Cell, Column, ColumnDef, DeepKeys, FilterFn, Header, HeaderGroup, OnChangeFn, Row, SortingFn, Table, TableOptions, TableState } from '@tanstack/react-table';
4
4
  import type { Options as VirtualizerOptions, VirtualItem } from 'react-virtual';
5
- import { MRT_Icons } from './icons';
6
5
  import { MRT_FilterFns } from './filterFns';
6
+ import { MRT_Icons } from './icons';
7
7
  import { MRT_SortingFns } from './sortingFns';
8
8
  /**
9
9
  * Most of this file is just TypeScript types
@@ -329,7 +329,7 @@ export declare type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit
329
329
  onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
330
330
  table: MRT_TableInstance<TData>;
331
331
  }) => ReactNode[];
332
- sortingFn?: MRT_SortingFn;
332
+ sortingFn?: MRT_SortingFn<TData>;
333
333
  };
334
334
  export declare type MRT_DefinedColumnDef<TData extends Record<string, any> = {}> = Omit<MRT_ColumnDef<TData>, 'id' | 'defaultDisplayColumn'> & {
335
335
  defaultDisplayColumn: Partial<MRT_ColumnDef<TData>>;
@@ -454,7 +454,7 @@ export declare type MaterialReactTableProps<TData extends Record<string, any> =
454
454
  * @warning This will break some dynamic rendering features. See the memoization guide for more info:
455
455
  * @link https://www.material-react-table.com/docs/guides/memoize-components
456
456
  */
457
- memoMode?: 'cell' | 'row' | 'table-body';
457
+ memoMode?: 'cells' | 'rows' | 'table-body';
458
458
  muiBottomToolbarProps?: ToolbarProps | (({ table }: {
459
459
  table: MRT_TableInstance<TData>;
460
460
  }) => ToolbarProps);
@@ -0,0 +1,2 @@
1
+ import { MRT_Localization } from '../MaterialReactTable';
2
+ export declare const MRT_Localization_JA: MRT_Localization;
@@ -3,6 +3,7 @@ import type { MRT_Cell, MRT_TableInstance } from '..';
3
3
  interface Props {
4
4
  cell: MRT_Cell;
5
5
  enableHover?: boolean;
6
+ numRows: number;
6
7
  rowIndex: number;
7
8
  rowRef: RefObject<HTMLTableRowElement>;
8
9
  table: MRT_TableInstance;
@@ -1,6 +1,7 @@
1
1
  import React, { FC } from 'react';
2
2
  import type { MRT_Row, MRT_TableInstance } from '..';
3
3
  interface Props {
4
+ numRows: number;
4
5
  row: MRT_Row;
5
6
  rowIndex: number;
6
7
  table: MRT_TableInstance;