material-react-table 0.5.4 → 0.5.7

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,5 +1,5 @@
1
1
  import { ChangeEvent, FC, MouseEvent, ReactNode } from 'react';
2
- import { AlertProps, IconButtonProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TextFieldProps, ToolbarProps } from '@mui/material';
2
+ import { AlertProps, IconButtonProps, LinearProgressProps, SkeletonProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TextFieldProps, ToolbarProps } from '@mui/material';
3
3
  import { Cell, Column, ColumnInstance, HeaderGroup, Row, TableInstance, TableOptions, TableState, UseColumnOrderInstanceProps, UseColumnOrderState, UseExpandedInstanceProps, UseExpandedOptions, UseExpandedRowProps, UseExpandedState, UseFiltersColumnOptions, UseFiltersColumnProps, UseFiltersInstanceProps, UseFiltersOptions, UseFiltersState, UseGlobalFiltersColumnOptions, UseGlobalFiltersInstanceProps, UseGlobalFiltersOptions, UseGlobalFiltersState, UseGroupByCellProps, UseGroupByColumnOptions, UseGroupByColumnProps, UseGroupByInstanceProps, UseGroupByOptions, UseGroupByRowProps, UseGroupByState, UsePaginationInstanceProps, UsePaginationOptions, UsePaginationState, UseResizeColumnsColumnOptions, UseResizeColumnsColumnProps, UseResizeColumnsOptions, UseResizeColumnsState, UseRowSelectInstanceProps, UseRowSelectOptions, UseRowSelectRowProps, UseRowSelectState, UseRowStateCellProps, UseRowStateInstanceProps, UseRowStateOptions, UseRowStateRowProps, UseRowStateState, UseSortByColumnOptions, UseSortByColumnProps, UseSortByInstanceProps, UseSortByOptions, UseSortByState, UseTableHeaderGroupProps, UseTableInstanceProps, UseTableOptions } from 'react-table';
4
4
  import { MRT_Localization } from './localization';
5
5
  import { MRT_Icons } from './icons';
@@ -83,9 +83,11 @@ export declare type MaterialReactTableProps<D extends {} = {}> = UseTableOptions
83
83
  isFetching?: boolean;
84
84
  isLoading?: boolean;
85
85
  localization?: Partial<MRT_Localization>;
86
+ muiLinearProgressProps?: LinearProgressProps | ((tableInstance: MRT_TableInstance) => LinearProgressProps);
86
87
  muiSearchTextFieldProps?: TextFieldProps;
87
88
  muiTableBodyCellEditTextFieldProps?: TextFieldProps | ((cell?: MRT_Cell<D>) => TextFieldProps);
88
89
  muiTableBodyCellProps?: TableCellProps | ((cell?: MRT_Cell<D>) => TableCellProps);
90
+ muiTableBodyCellSkeletonProps?: SkeletonProps | ((cell?: MRT_Cell<D>) => SkeletonProps);
89
91
  muiTableBodyProps?: TableBodyProps | ((tableInstance: MRT_TableInstance<D>) => TableBodyProps);
90
92
  muiTableBodyRowProps?: TableRowProps | ((row: Row<D>) => TableRowProps);
91
93
  muiTableContainerProps?: TableContainerProps | ((tableInstance: MRT_TableInstance<D>) => TableContainerProps);
package/dist/icons.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export interface MRT_Icons {
2
+ ArrowRightIcon: any;
2
3
  CancelIcon: any;
3
4
  ClearAllIcon: any;
4
5
  CloseIcon: any;
@@ -9,6 +10,8 @@ export interface MRT_Icons {
9
10
  EditIcon: any;
10
11
  ExpandLessIcon: any;
11
12
  ExpandMoreIcon: any;
13
+ FilterAltIcon: any;
14
+ FilterAltOff: any;
12
15
  FilterListIcon: any;
13
16
  FilterListOffIcon: any;
14
17
  FullscreenExitIcon: any;
@@ -11,6 +11,7 @@ export interface MRT_Localization {
11
11
  columnShowHideMenuShowAll: string;
12
12
  expandAllButtonTitle: string;
13
13
  expandButtonTitle: string;
14
+ filterApplied: string;
14
15
  filterMenuItemContains: string;
15
16
  filterMenuItemEmpty: string;
16
17
  filterMenuItemEndsWith: string;
@@ -20,6 +21,9 @@ export interface MRT_Localization {
20
21
  filterMenuItemNotEquals: string;
21
22
  filterMenuItemStartsWith: string;
22
23
  filterMenuTitle: string;
24
+ filterTextFieldChangeFilterButtonTitle: string;
25
+ filterTextFieldChipLabelEmpty: string;
26
+ filterTextFieldChipLabelNotEmpty: string;
23
27
  filterTextFieldClearButtonTitle: string;
24
28
  filterTextFieldPlaceholder: string;
25
29
  rowActionButtonCancel: string;