material-react-table 2.3.1 → 2.4.1

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/dist/index.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { CSSProperties, MutableRefObject, Dispatch, SetStateAction, ReactNode, RefObject, DragEventHandler, MouseEvent } from 'react';
3
3
  import * as _tanstack_react_table from '@tanstack/react-table';
4
- import { Row, AccessorFn, DeepKeys, DeepValue, Table, TableState, ColumnDef, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, TableOptions, OnChangeFn, RowPinningPosition, ColumnOrderState, GroupingState, Renderable } from '@tanstack/react-table';
5
- export { ColumnFiltersState as MRT_ColumnFiltersState, ColumnOrderState as MRT_ColumnOrderState, ColumnPinningState as MRT_ColumnPinningState, ColumnSizingInfoState as MRT_ColumnSizingInfoState, ColumnSizingState as MRT_ColumnSizingState, ExpandedState as MRT_ExpandedState, GroupingState as MRT_GroupingState, PaginationState as MRT_PaginationState, RowSelectionState as MRT_RowSelectionState, SortingState as MRT_SortingState, Updater as MRT_Updater, VisibilityState as MRT_VisibilityState } from '@tanstack/react-table';
6
- import { Virtualizer, VirtualizerOptions, VirtualItem, Range } from '@tanstack/react-virtual';
7
- export { VirtualItem as MRT_VirtualItem, Virtualizer as MRT_Virtualizer, VirtualizerOptions as MRT_VirtualizerOptions } from '@tanstack/react-virtual';
4
+ import { Row, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowSelectionState, SortingState, Updater, VisibilityState, AccessorFn, DeepKeys, DeepValue, Table, TableState, ColumnDef, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, TableOptions, OnChangeFn, RowPinningPosition, Renderable } from '@tanstack/react-table';
5
+ import { VirtualItem, VirtualizerOptions, Virtualizer, Range } from '@tanstack/react-virtual';
8
6
  import { AlertProps } from '@mui/material/Alert';
9
7
  import { AutocompleteProps } from '@mui/material/Autocomplete';
10
8
  import { BoxProps } from '@mui/material/Box';
@@ -30,7 +28,7 @@ import { TableHeadProps } from '@mui/material/TableHead';
30
28
  import { TableRowProps } from '@mui/material/TableRow';
31
29
  import { TextFieldProps } from '@mui/material/TextField';
32
30
  import { Theme } from '@mui/material/styles';
33
- import { DatePickerProps } from '@mui/x-date-pickers';
31
+ import { DatePickerProps, DateTimePickerProps, TimePickerProps } from '@mui/x-date-pickers';
34
32
  import * as _tanstack_match_sorter_utils from '@tanstack/match-sorter-utils';
35
33
  import { RankingInfo } from '@tanstack/match-sorter-utils';
36
34
  import { CollapseProps } from '@mui/material/Collapse';
@@ -177,7 +175,32 @@ type Xor<A, B> = Prettify<A & {
177
175
  type MRT_DensityState = 'comfortable' | 'compact' | 'spacious';
178
176
  type MRT_ColumnFilterFnsState = Record<string, MRT_FilterOption>;
179
177
  type MRT_RowData = Record<string, any>;
180
-
178
+ type MRT_ColumnFiltersState = ColumnFiltersState;
179
+ type MRT_ColumnOrderState = ColumnOrderState;
180
+ type MRT_ColumnPinningState = ColumnPinningState;
181
+ type MRT_ColumnSizingInfoState = ColumnSizingInfoState;
182
+ type MRT_ColumnSizingState = ColumnSizingState;
183
+ type MRT_ExpandedState = ExpandedState;
184
+ type MRT_GroupingState = GroupingState;
185
+ type MRT_PaginationState = PaginationState;
186
+ type MRT_RowSelectionState = RowSelectionState;
187
+ type MRT_SortingState = SortingState;
188
+ type MRT_Updater<T> = Updater<T>;
189
+ type MRT_VirtualItem = VirtualItem;
190
+ type MRT_VisibilityState = VisibilityState;
191
+ type MRT_VirtualizerOptions<TScrollElement extends Element | Window = Element | Window, TItemElement extends Element = Element> = VirtualizerOptions<TScrollElement, TItemElement>;
192
+ type MRT_ColumnVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement> = Virtualizer<TScrollElement, TItemElement> & {
193
+ virtualColumns: MRT_VirtualItem[];
194
+ virtualPaddingLeft?: number;
195
+ virtualPaddingRight?: number;
196
+ };
197
+ type MRT_RowVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement> = Virtualizer<TScrollElement, TItemElement> & {
198
+ virtualRows: MRT_VirtualItem[];
199
+ };
200
+ /**
201
+ * @deprecated use `MRT_ColumnVirtualizer` or `MRT_RowVirtualizer` instead
202
+ */
203
+ type MRT_Virtualizer<_TScrollElement = any, _TItemElement = any> = MRT_ColumnVirtualizer | MRT_RowVirtualizer;
181
204
  type MRT_ColumnHelper<TData extends MRT_RowData> = {
182
205
  accessor: <TAccessor extends AccessorFn<TData> | DeepKeys<TData>, TValue extends TAccessor extends AccessorFn<TData, infer TReturn> ? TReturn : TAccessor extends DeepKeys<TData> ? DeepValue<TData, TAccessor> : never>(accessor: TAccessor, column: MRT_DisplayColumnDef<TData, TValue>) => MRT_ColumnDef<TData, TValue>;
183
206
  display: (column: MRT_DisplayColumnDef<TData>) => MRT_ColumnDef<TData>;
@@ -466,7 +489,7 @@ type MRT_ColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<ColumnDef
466
489
  text?: string;
467
490
  value: any;
468
491
  } | string)[];
469
- filterVariant?: 'autocomplete' | 'checkbox' | 'date' | 'date-range' | 'multi-select' | 'range' | 'range-slider' | 'select' | 'text';
492
+ filterVariant?: 'autocomplete' | 'checkbox' | 'date' | 'date-range' | 'datetime' | 'datetime-range' | 'multi-select' | 'range' | 'range-slider' | 'select' | 'text' | 'time' | 'time-range';
470
493
  /**
471
494
  * footer must be a string. If you want custom JSX to render the footer, you can also specify a `Footer` option. (Capital F)
472
495
  */
@@ -518,6 +541,11 @@ type MRT_ColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<ColumnDef
518
541
  rangeFilterIndex?: number;
519
542
  table: MRT_TableInstance<TData>;
520
543
  }) => DatePickerProps<any>) | DatePickerProps<any>;
544
+ muiFilterDateTimePickerProps?: ((props: {
545
+ column: MRT_Column<TData>;
546
+ rangeFilterIndex?: number;
547
+ table: MRT_TableInstance<TData>;
548
+ }) => DateTimePickerProps<any>) | DateTimePickerProps<any>;
521
549
  muiFilterSliderProps?: ((props: {
522
550
  column: MRT_Column<TData>;
523
551
  table: MRT_TableInstance<TData>;
@@ -527,6 +555,11 @@ type MRT_ColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<ColumnDef
527
555
  rangeFilterIndex?: number;
528
556
  table: MRT_TableInstance<TData>;
529
557
  }) => TextFieldProps) | TextFieldProps;
558
+ muiFilterTimePickerProps?: ((props: {
559
+ column: MRT_Column<TData>;
560
+ rangeFilterIndex?: number;
561
+ table: MRT_TableInstance<TData>;
562
+ }) => TimePickerProps<any>) | TimePickerProps<any>;
530
563
  muiTableBodyCellProps?: ((props: {
531
564
  cell: MRT_Cell<TData, TValue>;
532
565
  column: MRT_Column<TData>;
@@ -613,7 +646,7 @@ type MRT_DisplayColumnIds = 'mrt-row-actions' | 'mrt-row-drag' | 'mrt-row-expand
613
646
  type MRT_TableOptions<TData extends MRT_RowData> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> & {
614
647
  columnFilterDisplayMode?: 'custom' | 'popover' | 'subheader';
615
648
  columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
616
- columnVirtualizerInstanceRef?: MutableRefObject<Virtualizer<HTMLDivElement, HTMLTableCellElement> | null>;
649
+ columnVirtualizerInstanceRef?: MutableRefObject<MRT_ColumnVirtualizer | MRT_Virtualizer | null>;
617
650
  columnVirtualizerOptions?: ((props: {
618
651
  table: MRT_TableInstance<TData>;
619
652
  }) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>;
@@ -760,6 +793,11 @@ type MRT_TableOptions<TData extends MRT_RowData> = Omit<Partial<TableOptions<TDa
760
793
  rangeFilterIndex?: number;
761
794
  table: MRT_TableInstance<TData>;
762
795
  }) => DatePickerProps<any>) | DatePickerProps<any>;
796
+ muiFilterDateTimePickerProps?: ((props: {
797
+ column: MRT_Column<TData>;
798
+ rangeFilterIndex?: number;
799
+ table: MRT_TableInstance<TData>;
800
+ }) => DateTimePickerProps<any>) | DateTimePickerProps<any>;
763
801
  muiFilterSliderProps?: ((props: {
764
802
  column: MRT_Column<TData>;
765
803
  table: MRT_TableInstance<TData>;
@@ -769,6 +807,11 @@ type MRT_TableOptions<TData extends MRT_RowData> = Omit<Partial<TableOptions<TDa
769
807
  rangeFilterIndex?: number;
770
808
  table: MRT_TableInstance<TData>;
771
809
  }) => TextFieldProps) | TextFieldProps;
810
+ muiFilterTimePickerProps?: ((props: {
811
+ column: MRT_Column<TData>;
812
+ rangeFilterIndex?: number;
813
+ table: MRT_TableInstance<TData>;
814
+ }) => TimePickerProps<any>) | TimePickerProps<any>;
772
815
  muiLinearProgressProps?: ((props: {
773
816
  isTopToolbar: boolean;
774
817
  table: MRT_TableInstance<TData>;
@@ -777,6 +820,7 @@ type MRT_TableOptions<TData extends MRT_RowData> = Omit<Partial<TableOptions<TDa
777
820
  table: MRT_TableInstance<TData>;
778
821
  }) => Partial<PaginationProps & {
779
822
  SelectProps?: Partial<SelectProps>;
823
+ disabled?: boolean;
780
824
  rowsPerPageOptions?: {
781
825
  label: string;
782
826
  value: number;
@@ -784,6 +828,7 @@ type MRT_TableOptions<TData extends MRT_RowData> = Omit<Partial<TableOptions<TDa
784
828
  showRowsPerPage?: boolean;
785
829
  }>) | Partial<PaginationProps & {
786
830
  SelectProps?: Partial<SelectProps>;
831
+ disabled?: boolean;
787
832
  rowsPerPageOptions?: {
788
833
  label: string;
789
834
  value: number;
@@ -976,7 +1021,7 @@ type MRT_TableOptions<TData extends MRT_RowData> = Omit<Partial<TableOptions<TDa
976
1021
  rowCount?: number;
977
1022
  rowNumberDisplayMode?: 'original' | 'static';
978
1023
  rowPinningDisplayMode?: 'bottom' | 'select-bottom' | 'select-sticky' | 'select-top' | 'sticky' | 'top' | 'top-and-bottom';
979
- rowVirtualizerInstanceRef?: MutableRefObject<Virtualizer<HTMLDivElement, HTMLTableRowElement> | null>;
1024
+ rowVirtualizerInstanceRef?: MutableRefObject<MRT_RowVirtualizer | MRT_Virtualizer | null>;
980
1025
  rowVirtualizerOptions?: ((props: {
981
1026
  table: MRT_TableInstance<TData>;
982
1027
  }) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>;
@@ -994,14 +1039,11 @@ type Props$U<TData extends MRT_RowData> = Xor<TableInstanceProp<TData>, MRT_Tabl
994
1039
  declare const MaterialReactTable: <TData extends MRT_RowData>(props: Props$U<TData>) => react_jsx_runtime.JSX.Element;
995
1040
 
996
1041
  interface Props$T<TData extends MRT_RowData> extends TableBodyProps {
997
- columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
1042
+ columnVirtualizer?: MRT_ColumnVirtualizer;
998
1043
  table: MRT_TableInstance<TData>;
999
- virtualColumns?: VirtualItem[];
1000
- virtualPaddingLeft?: number;
1001
- virtualPaddingRight?: number;
1002
1044
  }
1003
- declare const MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props$T<TData>) => react_jsx_runtime.JSX.Element;
1004
- declare const Memo_MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props$T<TData>) => react_jsx_runtime.JSX.Element;
1045
+ declare const MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: Props$T<TData>) => react_jsx_runtime.JSX.Element;
1046
+ declare const Memo_MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: Props$T<TData>) => react_jsx_runtime.JSX.Element;
1005
1047
 
1006
1048
  interface Props$S<TData extends MRT_RowData> extends TableCellProps {
1007
1049
  cell: MRT_Cell<TData>;
@@ -1022,20 +1064,17 @@ interface Props$R<TData extends MRT_RowData> {
1022
1064
  declare const MRT_TableBodyCellValue: <TData extends MRT_RowData>({ cell, table, }: Props$R<TData>) => ReactNode;
1023
1065
 
1024
1066
  interface Props$Q<TData extends MRT_RowData> {
1025
- columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
1067
+ columnVirtualizer?: MRT_ColumnVirtualizer;
1026
1068
  measureElement?: (element: HTMLTableRowElement) => void;
1027
1069
  numRows?: number;
1028
1070
  pinnedRowIds?: string[];
1029
1071
  row: MRT_Row<TData>;
1030
1072
  rowIndex: number;
1031
1073
  table: MRT_TableInstance<TData>;
1032
- virtualColumns?: VirtualItem[];
1033
- virtualPaddingLeft?: number;
1034
- virtualPaddingRight?: number;
1035
1074
  virtualRow?: VirtualItem;
1036
1075
  }
1037
- declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }: Props$Q<TData>) => react_jsx_runtime.JSX.Element;
1038
- declare const Memo_MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }: Props$Q<TData>) => react_jsx_runtime.JSX.Element;
1076
+ declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualRow, }: Props$Q<TData>) => react_jsx_runtime.JSX.Element;
1077
+ declare const Memo_MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualRow, }: Props$Q<TData>) => react_jsx_runtime.JSX.Element;
1039
1078
 
1040
1079
  interface Props$P<TData extends MRT_RowData> extends IconButtonProps {
1041
1080
  row: MRT_Row<TData>;
@@ -1232,8 +1271,8 @@ declare const prepareColumns: <TData extends MRT_RowData>({ aggregationFns, colu
1232
1271
  basic: _tanstack_react_table.SortingFn<any>;
1233
1272
  } & Record<string, _tanstack_react_table.SortingFn<any>>;
1234
1273
  }) => MRT_DefinedColumnDef<TData>[];
1235
- declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: ColumnOrderState) => ColumnOrderState;
1236
- declare const showExpandColumn: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>, grouping?: GroupingState) => boolean;
1274
+ declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: _tanstack_react_table.ColumnOrderState) => _tanstack_react_table.ColumnOrderState;
1275
+ declare const showExpandColumn: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>, grouping?: MRT_GroupingState) => boolean;
1237
1276
  declare const getLeadingDisplayColumnIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => MRT_DisplayColumnIds[];
1238
1277
  declare const getTrailingDisplayColumnIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => MRT_DisplayColumnIds[];
1239
1278
  declare const getDefaultColumnOrderIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => string[];
@@ -1247,7 +1286,7 @@ declare const getCanRankRows: <TData extends MRT_RowData>(table: MRT_TableInstan
1247
1286
  declare const parseFromValuesOrFunc: <T, U>(fn: T | ((arg: U) => T) | undefined, arg: U) => T | undefined;
1248
1287
  declare const flexRender: (Comp: Renderable<any>, props: any) => JSX.Element | ReactNode;
1249
1288
  declare const createRow: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, originalRow?: TData | undefined) => MRT_Row<TData>;
1250
- declare const extraIndexRangeExtractor: (range: Range, draggingIndex: number) => number[];
1289
+ declare const extraIndexRangeExtractor: (range: Range, draggingIndex?: number) => number[];
1251
1290
  declare function createMRTColumnHelper<TData extends MRT_RowData>(): MRT_ColumnHelper<TData>;
1252
1291
  declare const getValueAndLabel: (option: {
1253
1292
  label?: string;
@@ -1259,12 +1298,10 @@ declare const getValueAndLabel: (option: {
1259
1298
  };
1260
1299
 
1261
1300
  interface Props$z<TData extends MRT_RowData> extends TableFooterProps {
1301
+ columnVirtualizer?: MRT_ColumnVirtualizer;
1262
1302
  table: MRT_TableInstance<TData>;
1263
- virtualColumns?: VirtualItem[];
1264
- virtualPaddingLeft?: number;
1265
- virtualPaddingRight?: number;
1266
1303
  }
1267
- declare const MRT_TableFooter: <TData extends MRT_RowData>({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props$z<TData>) => react_jsx_runtime.JSX.Element;
1304
+ declare const MRT_TableFooter: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: Props$z<TData>) => react_jsx_runtime.JSX.Element;
1268
1305
 
1269
1306
  interface Props$y<TData extends MRT_RowData> extends TableCellProps {
1270
1307
  footer: MRT_Header<TData>;
@@ -1273,21 +1310,17 @@ interface Props$y<TData extends MRT_RowData> extends TableCellProps {
1273
1310
  declare const MRT_TableFooterCell: <TData extends MRT_RowData>({ footer, table, ...rest }: Props$y<TData>) => react_jsx_runtime.JSX.Element;
1274
1311
 
1275
1312
  interface Props$x<TData extends MRT_RowData> extends TableRowProps {
1313
+ columnVirtualizer?: MRT_ColumnVirtualizer;
1276
1314
  footerGroup: MRT_HeaderGroup<TData>;
1277
1315
  table: MRT_TableInstance<TData>;
1278
- virtualColumns?: VirtualItem[];
1279
- virtualPaddingLeft?: number;
1280
- virtualPaddingRight?: number;
1281
1316
  }
1282
- declare const MRT_TableFooterRow: <TData extends MRT_RowData>({ footerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props$x<TData>) => react_jsx_runtime.JSX.Element | null;
1317
+ declare const MRT_TableFooterRow: <TData extends MRT_RowData>({ columnVirtualizer, footerGroup, table, ...rest }: Props$x<TData>) => react_jsx_runtime.JSX.Element | null;
1283
1318
 
1284
1319
  interface Props$w<TData extends MRT_RowData> extends TableHeadProps {
1320
+ columnVirtualizer?: MRT_ColumnVirtualizer;
1285
1321
  table: MRT_TableInstance<TData>;
1286
- virtualColumns?: VirtualItem[];
1287
- virtualPaddingLeft?: number;
1288
- virtualPaddingRight?: number;
1289
1322
  }
1290
- declare const MRT_TableHead: <TData extends MRT_RowData>({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props$w<TData>) => react_jsx_runtime.JSX.Element;
1323
+ declare const MRT_TableHead: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: Props$w<TData>) => react_jsx_runtime.JSX.Element;
1291
1324
 
1292
1325
  interface Props$v<TData extends MRT_RowData> extends TableCellProps {
1293
1326
  header: MRT_Header<TData>;
@@ -1333,32 +1366,27 @@ interface Props$p<TData extends MRT_RowData> extends TableSortLabelProps {
1333
1366
  declare const MRT_TableHeadCellSortLabel: <TData extends MRT_RowData>({ header, table, ...rest }: Props$p<TData>) => react_jsx_runtime.JSX.Element;
1334
1367
 
1335
1368
  interface Props$o<TData extends MRT_RowData> extends TableRowProps {
1369
+ columnVirtualizer?: MRT_ColumnVirtualizer;
1336
1370
  headerGroup: MRT_HeaderGroup<TData>;
1337
1371
  table: MRT_TableInstance<TData>;
1338
- virtualColumns?: VirtualItem[];
1339
- virtualPaddingLeft?: number;
1340
- virtualPaddingRight?: number;
1341
1372
  }
1342
- declare const MRT_TableHeadRow: <TData extends MRT_RowData>({ headerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props$o<TData>) => react_jsx_runtime.JSX.Element;
1373
+ declare const MRT_TableHeadRow: <TData extends MRT_RowData>({ columnVirtualizer, headerGroup, table, ...rest }: Props$o<TData>) => react_jsx_runtime.JSX.Element;
1343
1374
 
1344
- declare const useMRT_ColumnVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement>(table: MRT_TableInstance<TData>) => (Virtualizer<TScrollElement, TItemElement> & {
1345
- virtualPaddingLeft?: number | undefined;
1346
- virtualPaddingRight?: number | undefined;
1347
- }) | undefined;
1375
+ declare const useMRT_ColumnVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement>(table: MRT_TableInstance<TData>) => MRT_ColumnVirtualizer | undefined;
1348
1376
 
1349
1377
  interface Params<TData extends MRT_RowData> {
1350
- columnOrder: ColumnOrderState;
1378
+ columnOrder: MRT_ColumnOrderState;
1351
1379
  creatingRow: MRT_Row<TData> | null;
1352
- grouping: GroupingState;
1380
+ grouping: MRT_GroupingState;
1353
1381
  tableOptions: MRT_DefinedTableOptions<TData>;
1354
1382
  }
1355
1383
  declare const useMRT_DisplayColumns: <TData extends MRT_RowData>(params: Params<TData>) => MRT_ColumnDef<TData>[];
1356
1384
 
1357
1385
  declare const useMRT_Effects: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => void;
1358
1386
 
1359
- declare const useMRT_RowVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement>(table: MRT_TableInstance<TData>) => Virtualizer<TScrollElement, TItemElement> | undefined;
1387
+ declare const useMRT_RowVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement>(table: MRT_TableInstance<TData>, rows?: MRT_Row<TData>[] | undefined) => MRT_RowVirtualizer<TScrollElement, TItemElement> | undefined;
1360
1388
 
1361
- declare const useMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => MRT_Row<TData>[];
1389
+ declare const useMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, pinnedRowIds?: string[]) => MRT_Row<TData>[];
1362
1390
 
1363
1391
  declare const useMRT_TableInstance: <TData extends MRT_RowData>(tableOptions: MRT_DefinedTableOptions<TData>) => MRT_TableInstance<TData>;
1364
1392
 
@@ -1550,6 +1578,7 @@ interface Props$5<TData extends MRT_RowData> extends LinearProgressProps {
1550
1578
  declare const MRT_LinearProgressBar: <TData extends MRT_RowData>({ isTopToolbar, table, ...rest }: Props$5<TData>) => react_jsx_runtime.JSX.Element;
1551
1579
 
1552
1580
  interface Props$4<TData extends MRT_RowData> extends Partial<PaginationProps & {
1581
+ SelectProps?: Partial<SelectProps>;
1553
1582
  disabled?: boolean;
1554
1583
  rowsPerPageOptions?: {
1555
1584
  label: string;
@@ -1585,4 +1614,4 @@ declare const MRT_TopToolbar: <TData extends MRT_RowData>({ table, }: Props<TDat
1585
1614
 
1586
1615
  declare const useMaterialReactTable: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_TableInstance<TData>;
1587
1616
 
1588
- export { type LiteralUnion, type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_Cell, type MRT_Column, MRT_ColumnActionMenu, type MRT_ColumnDef, type MRT_ColumnFilterFnsState, type MRT_ColumnHelper, MRT_ColumnPinningButtons, MRT_CopyButton, MRT_DefaultColumn, MRT_DefaultDisplayColumn, type MRT_DefinedColumnDef, type MRT_DefinedTableOptions, type MRT_DensityState, type MRT_DisplayColumnDef, type MRT_DisplayColumnIds, MRT_EditActionButtons, MRT_EditCellTextField, MRT_EditRowModal, MRT_ExpandAllButton, MRT_ExpandButton, MRT_FilterCheckbox, type MRT_FilterFn, MRT_FilterFns, type MRT_FilterOption, MRT_FilterOptionMenu, MRT_FilterRangeFields, MRT_FilterRangeSlider, MRT_FilterTextField, MRT_GlobalFilterTextField, MRT_GrabHandleButton, type MRT_GroupColumnDef, type MRT_Header, type MRT_HeaderGroup, type MRT_Icons, type MRT_InternalFilterOption, MRT_LinearProgressBar, type MRT_Localization, type MRT_Row, MRT_RowActionMenu, type MRT_RowData, type MRT_RowModel, MRT_RowPinButton, MRT_SelectCheckbox, MRT_ShowHideColumnsButton, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, type MRT_SortingFn, MRT_SortingFns, type MRT_SortingOption, MRT_Table, MRT_TableBody, MRT_TableBodyCell, MRT_TableBodyCellValue, MRT_TableBodyRow, MRT_TableBodyRowGrabHandle, MRT_TableBodyRowPinButton, MRT_TableContainer, MRT_TableDetailPanel, MRT_TableFooter, MRT_TableFooterCell, MRT_TableFooterRow, MRT_TableHead, MRT_TableHeadCell, MRT_TableHeadCellColumnActionsButton, MRT_TableHeadCellFilterContainer, MRT_TableHeadCellFilterLabel, MRT_TableHeadCellGrabHandle, MRT_TableHeadCellResizeHandle, MRT_TableHeadCellSortLabel, MRT_TableHeadRow, type MRT_TableInstance, MRT_TableLoadingOverlay, type MRT_TableOptions, MRT_TablePagination, MRT_TablePaper, type MRT_TableState, type MRT_Theme, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleFullScreenButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, MaterialReactTable, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, type Prettify, type Xor, commonListItemStyles, commonMenuItemStyles, createMRTColumnHelper, createRow, extraIndexRangeExtractor, flexRender, getAllLeafColumnDefs, getCanRankRows, getColumnId, getCommonMRTCellStyles, getCommonToolbarStyles, getDefaultColumnFilterFn, getDefaultColumnOrderIds, getIsFirstColumn, getIsFirstRightPinnedColumn, getIsLastColumn, getIsLastLeftPinnedColumn, getLeadingDisplayColumnIds, getMRTTheme, getTotalRight, getTrailingDisplayColumnIds, getValueAndLabel, mrtFilterOptions, parseCSSVarId, parseFromValuesOrFunc, prepareColumns, rankGlobalFuzzy, reorderColumn, showExpandColumn, useMRT_ColumnVirtualizer, useMRT_DisplayColumns, useMRT_Effects, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMaterialReactTable };
1617
+ export { type LiteralUnion, type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_Cell, type MRT_Column, MRT_ColumnActionMenu, type MRT_ColumnDef, type MRT_ColumnFilterFnsState, type MRT_ColumnFiltersState, type MRT_ColumnHelper, type MRT_ColumnOrderState, MRT_ColumnPinningButtons, type MRT_ColumnPinningState, type MRT_ColumnSizingInfoState, type MRT_ColumnSizingState, type MRT_ColumnVirtualizer, MRT_CopyButton, MRT_DefaultColumn, MRT_DefaultDisplayColumn, type MRT_DefinedColumnDef, type MRT_DefinedTableOptions, type MRT_DensityState, type MRT_DisplayColumnDef, type MRT_DisplayColumnIds, MRT_EditActionButtons, MRT_EditCellTextField, MRT_EditRowModal, MRT_ExpandAllButton, MRT_ExpandButton, type MRT_ExpandedState, MRT_FilterCheckbox, type MRT_FilterFn, MRT_FilterFns, type MRT_FilterOption, MRT_FilterOptionMenu, MRT_FilterRangeFields, MRT_FilterRangeSlider, MRT_FilterTextField, MRT_GlobalFilterTextField, MRT_GrabHandleButton, type MRT_GroupColumnDef, type MRT_GroupingState, type MRT_Header, type MRT_HeaderGroup, type MRT_Icons, type MRT_InternalFilterOption, MRT_LinearProgressBar, type MRT_Localization, type MRT_PaginationState, type MRT_Row, MRT_RowActionMenu, type MRT_RowData, type MRT_RowModel, MRT_RowPinButton, type MRT_RowSelectionState, type MRT_RowVirtualizer, MRT_SelectCheckbox, MRT_ShowHideColumnsButton, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, type MRT_SortingFn, MRT_SortingFns, type MRT_SortingOption, type MRT_SortingState, MRT_Table, MRT_TableBody, MRT_TableBodyCell, MRT_TableBodyCellValue, MRT_TableBodyRow, MRT_TableBodyRowGrabHandle, MRT_TableBodyRowPinButton, MRT_TableContainer, MRT_TableDetailPanel, MRT_TableFooter, MRT_TableFooterCell, MRT_TableFooterRow, MRT_TableHead, MRT_TableHeadCell, MRT_TableHeadCellColumnActionsButton, MRT_TableHeadCellFilterContainer, MRT_TableHeadCellFilterLabel, MRT_TableHeadCellGrabHandle, MRT_TableHeadCellResizeHandle, MRT_TableHeadCellSortLabel, MRT_TableHeadRow, type MRT_TableInstance, MRT_TableLoadingOverlay, type MRT_TableOptions, MRT_TablePagination, MRT_TablePaper, type MRT_TableState, type MRT_Theme, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleFullScreenButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, type MRT_Updater, type MRT_VirtualItem, type MRT_Virtualizer, type MRT_VirtualizerOptions, type MRT_VisibilityState, MaterialReactTable, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, type Prettify, type Xor, commonListItemStyles, commonMenuItemStyles, createMRTColumnHelper, createRow, extraIndexRangeExtractor, flexRender, getAllLeafColumnDefs, getCanRankRows, getColumnId, getCommonMRTCellStyles, getCommonToolbarStyles, getDefaultColumnFilterFn, getDefaultColumnOrderIds, getIsFirstColumn, getIsFirstRightPinnedColumn, getIsLastColumn, getIsLastLeftPinnedColumn, getLeadingDisplayColumnIds, getMRTTheme, getTotalRight, getTrailingDisplayColumnIds, getValueAndLabel, mrtFilterOptions, parseCSSVarId, parseFromValuesOrFunc, prepareColumns, rankGlobalFuzzy, reorderColumn, showExpandColumn, useMRT_ColumnVirtualizer, useMRT_DisplayColumns, useMRT_Effects, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMaterialReactTable };