material-react-table 1.5.11 → 1.6.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.
@@ -259,45 +259,26 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
259
259
  | 'id'
260
260
  | 'sortingFn'
261
261
  > & {
262
- AggregatedCell?: ({
263
- cell,
264
- column,
265
- row,
266
- table,
267
- }: {
262
+ AggregatedCell?: (props: {
268
263
  cell: MRT_Cell<TData>;
269
264
  column: MRT_Column<TData>;
270
265
  row: MRT_Row<TData>;
271
266
  table: MRT_TableInstance<TData>;
272
267
  }) => ReactNode;
273
- Cell?: ({
274
- cell,
275
- column,
276
- row,
277
- table,
278
- }: {
268
+ Cell?: (props: {
279
269
  cell: MRT_Cell<TData>;
270
+ renderedCellValue: number | string | ReactNode;
280
271
  column: MRT_Column<TData>;
281
272
  row: MRT_Row<TData>;
282
273
  table: MRT_TableInstance<TData>;
283
274
  }) => ReactNode;
284
- Edit?: ({
285
- cell,
286
- column,
287
- row,
288
- table,
289
- }: {
275
+ Edit?: (props: {
290
276
  cell: MRT_Cell<TData>;
291
277
  column: MRT_Column<TData>;
292
278
  row: MRT_Row<TData>;
293
279
  table: MRT_TableInstance<TData>;
294
280
  }) => ReactNode;
295
- Filter?: ({
296
- column,
297
- header,
298
- rangeFilterIndex,
299
- table,
300
- }: {
281
+ Filter?: (props: {
301
282
  column: MRT_Column<TData>;
302
283
  header: MRT_Header<TData>;
303
284
  rangeFilterIndex?: number;
@@ -305,21 +286,12 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
305
286
  }) => ReactNode;
306
287
  Footer?:
307
288
  | ReactNode
308
- | (({
309
- column,
310
- footer,
311
- table,
312
- }: {
289
+ | ((props: {
313
290
  column: MRT_Column<TData>;
314
291
  footer: MRT_Header<TData>;
315
292
  table: MRT_TableInstance<TData>;
316
293
  }) => ReactNode);
317
- GroupedCell?: ({
318
- cell,
319
- column,
320
- row,
321
- table,
322
- }: {
294
+ GroupedCell?: (props: {
323
295
  cell: MRT_Cell<TData>;
324
296
  column: MRT_Column<TData>;
325
297
  row: MRT_Row<TData>;
@@ -327,11 +299,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
327
299
  }) => ReactNode;
328
300
  Header?:
329
301
  | ReactNode
330
- | (({
331
- column,
332
- header,
333
- table,
334
- }: {
302
+ | ((props: {
335
303
  column: MRT_Column<TData>;
336
304
  header: MRT_Header<TData>;
337
305
  table: MRT_TableInstance<TData>;
@@ -395,12 +363,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
395
363
  id?: LiteralUnion<string & keyof TData>;
396
364
  muiTableBodyCellCopyButtonProps?:
397
365
  | ButtonProps
398
- | (({
399
- cell,
400
- column,
401
- row,
402
- table,
403
- }: {
366
+ | ((props: {
404
367
  cell: MRT_Cell<TData>;
405
368
  column: MRT_Column<TData>;
406
369
  row: MRT_Row<TData>;
@@ -408,12 +371,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
408
371
  }) => ButtonProps);
409
372
  muiTableBodyCellEditTextFieldProps?:
410
373
  | TextFieldProps
411
- | (({
412
- cell,
413
- column,
414
- row,
415
- table,
416
- }: {
374
+ | ((props: {
417
375
  cell: MRT_Cell<TData>;
418
376
  column: MRT_Column<TData>;
419
377
  row: MRT_Row<TData>;
@@ -421,12 +379,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
421
379
  }) => TextFieldProps);
422
380
  muiTableBodyCellProps?:
423
381
  | TableCellProps
424
- | (({
425
- cell,
426
- column,
427
- row,
428
- table,
429
- }: {
382
+ | ((props: {
430
383
  cell: MRT_Cell<TData>;
431
384
  column: MRT_Column<TData>;
432
385
  row: MRT_Row<TData>;
@@ -434,75 +387,47 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
434
387
  }) => TableCellProps);
435
388
  muiTableFooterCellProps?:
436
389
  | TableCellProps
437
- | (({
438
- table,
439
- column,
440
- }: {
390
+ | ((props: {
441
391
  table: MRT_TableInstance<TData>;
442
392
  column: MRT_Column<TData>;
443
393
  }) => TableCellProps);
444
394
  muiTableHeadCellColumnActionsButtonProps?:
445
395
  | IconButtonProps
446
- | (({
447
- table,
448
- column,
449
- }: {
396
+ | ((props: {
450
397
  table: MRT_TableInstance<TData>;
451
398
  column: MRT_Column<TData>;
452
399
  }) => IconButtonProps);
453
400
  muiTableHeadCellDragHandleProps?:
454
401
  | IconButtonProps
455
- | (({
456
- table,
457
- column,
458
- }: {
402
+ | ((props: {
459
403
  table: MRT_TableInstance<TData>;
460
404
  column: MRT_Column<TData>;
461
405
  }) => IconButtonProps);
462
406
  muiTableHeadCellFilterCheckboxProps?:
463
407
  | CheckboxProps
464
- | (({
465
- column,
466
- table,
467
- }: {
408
+ | ((props: {
468
409
  column: MRT_Column<TData>;
469
410
  table: MRT_TableInstance<TData>;
470
411
  }) => CheckboxProps);
471
412
  muiTableHeadCellFilterTextFieldProps?:
472
413
  | TextFieldProps
473
- | (({
474
- table,
475
- column,
476
- rangeFilterIndex,
477
- }: {
414
+ | ((props: {
478
415
  table: MRT_TableInstance<TData>;
479
416
  column: MRT_Column<TData>;
480
417
  rangeFilterIndex?: number;
481
418
  }) => TextFieldProps);
482
419
  muiTableHeadCellProps?:
483
420
  | TableCellProps
484
- | (({
485
- table,
486
- column,
487
- }: {
421
+ | ((props: {
488
422
  table: MRT_TableInstance<TData>;
489
423
  column: MRT_Column<TData>;
490
424
  }) => TableCellProps);
491
- renderColumnActionsMenuItems?: ({
492
- closeMenu,
493
- column,
494
- table,
495
- }: {
425
+ renderColumnActionsMenuItems?: (props: {
496
426
  closeMenu: () => void;
497
427
  column: MRT_Column<TData>;
498
428
  table: MRT_TableInstance<TData>;
499
429
  }) => ReactNode[];
500
- renderColumnFilterModeMenuItems?: ({
501
- column,
502
- internalFilterOptions,
503
- onSelectFilterMode,
504
- table,
505
- }: {
430
+ renderColumnFilterModeMenuItems?: (props: {
506
431
  column: MRT_Column<TData>;
507
432
  internalFilterOptions: MRT_InternalFilterOption[];
508
433
  onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
@@ -665,6 +590,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
665
590
  enableDensityToggle?: boolean;
666
591
  enableEditing?: boolean;
667
592
  enableExpandAll?: boolean;
593
+ enableFilterMatchHighlighting?: boolean;
668
594
  enableFullScreenToggle?: boolean;
669
595
  enableGlobalFilterModes?: boolean;
670
596
  enableGlobalFilterRankedResults?: boolean;
@@ -712,51 +638,37 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
712
638
  memoMode?: 'cells' | 'rows' | 'table-body';
713
639
  muiBottomToolbarProps?:
714
640
  | ToolbarProps
715
- | (({ table }: { table: MRT_TableInstance<TData> }) => ToolbarProps);
641
+ | ((props: { table: MRT_TableInstance<TData> }) => ToolbarProps);
716
642
  muiExpandAllButtonProps?:
717
643
  | IconButtonProps
718
- | (({ table }: { table: MRT_TableInstance<TData> }) => IconButtonProps);
644
+ | ((props: { table: MRT_TableInstance<TData> }) => IconButtonProps);
719
645
  muiExpandButtonProps?:
720
646
  | IconButtonProps
721
- | (({
722
- row,
723
- table,
724
- }: {
647
+ | ((props: {
725
648
  table: MRT_TableInstance<TData>;
726
649
  row: MRT_Row<TData>;
727
650
  }) => IconButtonProps);
728
651
  muiLinearProgressProps?:
729
652
  | LinearProgressProps
730
- | (({
731
- isTopToolbar,
732
- table,
733
- }: {
653
+ | ((props: {
734
654
  isTopToolbar: boolean;
735
655
  table: MRT_TableInstance<TData>;
736
656
  }) => LinearProgressProps);
737
657
  muiSearchTextFieldProps?:
738
658
  | TextFieldProps
739
- | (({ table }: { table: MRT_TableInstance<TData> }) => TextFieldProps);
659
+ | ((props: { table: MRT_TableInstance<TData> }) => TextFieldProps);
740
660
  muiSelectAllCheckboxProps?:
741
661
  | CheckboxProps
742
- | (({ table }: { table: MRT_TableInstance<TData> }) => CheckboxProps);
662
+ | ((props: { table: MRT_TableInstance<TData> }) => CheckboxProps);
743
663
  muiSelectCheckboxProps?:
744
664
  | (CheckboxProps | RadioProps)
745
- | (({
746
- table,
747
- row,
748
- }: {
665
+ | ((props: {
749
666
  table: MRT_TableInstance<TData>;
750
667
  row: MRT_Row<TData>;
751
668
  }) => CheckboxProps | RadioProps);
752
669
  muiTableBodyCellCopyButtonProps?:
753
670
  | ButtonProps
754
- | (({
755
- cell,
756
- column,
757
- row,
758
- table,
759
- }: {
671
+ | ((props: {
760
672
  cell: MRT_Cell<TData>;
761
673
  column: MRT_Column<TData>;
762
674
  row: MRT_Row<TData>;
@@ -764,12 +676,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
764
676
  }) => ButtonProps);
765
677
  muiTableBodyCellEditTextFieldProps?:
766
678
  | TextFieldProps
767
- | (({
768
- cell,
769
- column,
770
- row,
771
- table,
772
- }: {
679
+ | ((props: {
773
680
  cell: MRT_Cell<TData>;
774
681
  column: MRT_Column<TData>;
775
682
  row: MRT_Row<TData>;
@@ -777,12 +684,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
777
684
  }) => TextFieldProps);
778
685
  muiTableBodyCellProps?:
779
686
  | TableCellProps
780
- | (({
781
- cell,
782
- column,
783
- row,
784
- table,
785
- }: {
687
+ | ((props: {
786
688
  cell: MRT_Cell<TData>;
787
689
  column: MRT_Column<TData>;
788
690
  row: MRT_Row<TData>;
@@ -790,12 +692,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
790
692
  }) => TableCellProps);
791
693
  muiTableBodyCellSkeletonProps?:
792
694
  | SkeletonProps
793
- | (({
794
- cell,
795
- column,
796
- row,
797
- table,
798
- }: {
695
+ | ((props: {
799
696
  cell: MRT_Cell<TData>;
800
697
  column: MRT_Column<TData>;
801
698
  row: MRT_Row<TData>;
@@ -803,162 +700,113 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
803
700
  }) => SkeletonProps);
804
701
  muiTableBodyProps?:
805
702
  | TableBodyProps
806
- | (({ table }: { table: MRT_TableInstance<TData> }) => TableBodyProps);
703
+ | ((props: { table: MRT_TableInstance<TData> }) => TableBodyProps);
807
704
  muiTableBodyRowDragHandleProps?:
808
705
  | IconButtonProps
809
- | (({
810
- table,
811
- row,
812
- }: {
706
+ | ((props: {
813
707
  table: MRT_TableInstance<TData>;
814
708
  row: MRT_Row<TData>;
815
709
  }) => IconButtonProps);
816
710
  muiTableBodyRowProps?:
817
711
  | TableRowProps
818
- | (({
819
- isDetailPanel = false,
820
- row,
821
- table,
822
- }: {
712
+ | ((props: {
823
713
  isDetailPanel?: boolean;
824
714
  row: MRT_Row<TData>;
825
715
  table: MRT_TableInstance<TData>;
826
716
  }) => TableRowProps);
827
717
  muiTableContainerProps?:
828
718
  | TableContainerProps
829
- | (({
830
- table,
831
- }: {
832
- table: MRT_TableInstance<TData>;
833
- }) => TableContainerProps);
719
+ | ((props: { table: MRT_TableInstance<TData> }) => TableContainerProps);
834
720
  muiTableDetailPanelProps?:
835
721
  | TableCellProps
836
- | (({
837
- table,
838
- row,
839
- }: {
722
+ | ((props: {
840
723
  table: MRT_TableInstance<TData>;
841
724
  row: MRT_Row<TData>;
842
725
  }) => TableCellProps);
843
726
  muiTableFooterCellProps?:
844
727
  | TableCellProps
845
- | (({
846
- table,
847
- column,
848
- }: {
728
+ | ((props: {
849
729
  table: MRT_TableInstance<TData>;
850
730
  column: MRT_Column<TData>;
851
731
  }) => TableCellProps);
852
732
  muiTableFooterProps?:
853
733
  | TableFooterProps
854
- | (({ table }: { table: MRT_TableInstance<TData> }) => TableFooterProps);
734
+ | ((props: { table: MRT_TableInstance<TData> }) => TableFooterProps);
855
735
  muiTableFooterRowProps?:
856
736
  | TableRowProps
857
- | (({
858
- table,
859
- footerGroup,
860
- }: {
737
+ | ((props: {
861
738
  table: MRT_TableInstance<TData>;
862
739
  footerGroup: MRT_HeaderGroup<TData>;
863
740
  }) => TableRowProps);
864
741
  muiTableHeadCellColumnActionsButtonProps?:
865
742
  | IconButtonProps
866
- | (({
867
- table,
868
- column,
869
- }: {
743
+ | ((props: {
870
744
  table: MRT_TableInstance<TData>;
871
745
  column: MRT_Column<TData>;
872
746
  }) => IconButtonProps);
873
747
  muiTableHeadCellDragHandleProps?:
874
748
  | IconButtonProps
875
- | (({
876
- table,
877
- column,
878
- }: {
749
+ | ((props: {
879
750
  table: MRT_TableInstance<TData>;
880
751
  column: MRT_Column<TData>;
881
752
  }) => IconButtonProps);
882
753
  muiTableHeadCellFilterCheckboxProps?:
883
754
  | CheckboxProps
884
- | (({
885
- column,
886
- table,
887
- }: {
755
+ | ((props: {
888
756
  column: MRT_Column<TData>;
889
757
  table: MRT_TableInstance<TData>;
890
758
  }) => CheckboxProps);
891
759
  muiTableHeadCellFilterTextFieldProps?:
892
760
  | TextFieldProps
893
- | (({
894
- table,
895
- column,
896
- rangeFilterIndex,
897
- }: {
761
+ | ((props: {
898
762
  table: MRT_TableInstance<TData>;
899
763
  column: MRT_Column<TData>;
900
764
  rangeFilterIndex?: number;
901
765
  }) => TextFieldProps);
902
766
  muiTableHeadCellProps?:
903
767
  | TableCellProps
904
- | (({
905
- table,
906
- column,
907
- }: {
768
+ | ((props: {
908
769
  table: MRT_TableInstance<TData>;
909
770
  column: MRT_Column<TData>;
910
771
  }) => TableCellProps);
911
772
  muiTableHeadProps?:
912
773
  | TableHeadProps
913
- | (({ table }: { table: MRT_TableInstance<TData> }) => TableHeadProps);
774
+ | ((props: { table: MRT_TableInstance<TData> }) => TableHeadProps);
914
775
  muiTableHeadRowProps?:
915
776
  | TableRowProps
916
- | (({
917
- table,
918
- headerGroup,
919
- }: {
777
+ | ((props: {
920
778
  table: MRT_TableInstance<TData>;
921
779
  headerGroup: MRT_HeaderGroup<TData>;
922
780
  }) => TableRowProps);
923
781
  muiTablePaginationProps?:
924
782
  | Partial<TablePaginationProps>
925
- | (({
926
- table,
927
- }: {
783
+ | ((props: {
928
784
  table: MRT_TableInstance<TData>;
929
785
  }) => Partial<TablePaginationProps>);
930
786
  muiTablePaperProps?:
931
787
  | PaperProps
932
- | (({ table }: { table: MRT_TableInstance<TData> }) => PaperProps);
788
+ | ((props: { table: MRT_TableInstance<TData> }) => PaperProps);
933
789
  muiTableProps?:
934
790
  | TableProps
935
- | (({ table }: { table: MRT_TableInstance<TData> }) => TableProps);
791
+ | ((props: { table: MRT_TableInstance<TData> }) => TableProps);
936
792
  muiToolbarAlertBannerChipProps?:
937
793
  | ChipProps
938
- | (({ table }: { table: MRT_TableInstance<TData> }) => ChipProps);
794
+ | ((props: { table: MRT_TableInstance<TData> }) => ChipProps);
939
795
  muiToolbarAlertBannerProps?:
940
796
  | AlertProps
941
- | (({ table }: { table: MRT_TableInstance<TData> }) => AlertProps);
797
+ | ((props: { table: MRT_TableInstance<TData> }) => AlertProps);
942
798
  muiTopToolbarProps?:
943
799
  | ToolbarProps
944
- | (({ table }: { table: MRT_TableInstance<TData> }) => ToolbarProps);
800
+ | ((props: { table: MRT_TableInstance<TData> }) => ToolbarProps);
945
801
  onDensityChange?: OnChangeFn<DensityState>;
946
802
  onDraggingColumnChange?: OnChangeFn<MRT_Column<TData> | null>;
947
803
  onDraggingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
948
804
  onEditingCellChange?: OnChangeFn<MRT_Cell<TData> | null>;
949
- onEditingRowCancel?: ({
950
- row,
951
- table,
952
- }: {
805
+ onEditingRowCancel?: (props: {
953
806
  row: MRT_Row<TData>;
954
807
  table: MRT_TableInstance<TData>;
955
808
  }) => void;
956
- onEditingRowSave?: ({
957
- exitEditingMode,
958
- row,
959
- table,
960
- values,
961
- }: {
809
+ onEditingRowSave?: (props: {
962
810
  exitEditingMode: () => void;
963
811
  row: MRT_Row<TData>;
964
812
  table: MRT_TableInstance<TData>;
@@ -982,77 +830,47 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
982
830
  positionToolbarDropZone?: 'bottom' | 'top' | 'none' | 'both';
983
831
  renderBottomToolbar?:
984
832
  | ReactNode
985
- | (({ table }: { table: MRT_TableInstance<TData> }) => ReactNode);
986
- renderBottomToolbarCustomActions?: ({
987
- table,
988
- }: {
833
+ | ((props: { table: MRT_TableInstance<TData> }) => ReactNode);
834
+ renderBottomToolbarCustomActions?: (props: {
989
835
  table: MRT_TableInstance<TData>;
990
836
  }) => ReactNode;
991
- renderColumnActionsMenuItems?: ({
992
- column,
993
- closeMenu,
994
- table,
995
- }: {
837
+ renderColumnActionsMenuItems?: (props: {
996
838
  column: MRT_Column<TData>;
997
839
  closeMenu: () => void;
998
840
  table: MRT_TableInstance<TData>;
999
841
  }) => ReactNode[];
1000
- renderColumnFilterModeMenuItems?: ({
1001
- column,
1002
- internalFilterOptions,
1003
- onSelectFilterMode,
1004
- table,
1005
- }: {
842
+ renderColumnFilterModeMenuItems?: (props: {
1006
843
  column: MRT_Column<TData>;
1007
844
  internalFilterOptions: MRT_InternalFilterOption[];
1008
845
  onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
1009
846
  table: MRT_TableInstance<TData>;
1010
847
  }) => ReactNode[];
1011
- renderDetailPanel?: ({
1012
- row,
1013
- table,
1014
- }: {
848
+ renderDetailPanel?: (props: {
1015
849
  row: MRT_Row<TData>;
1016
850
  table: MRT_TableInstance<TData>;
1017
851
  }) => ReactNode;
1018
- renderGlobalFilterModeMenuItems?: ({
1019
- internalFilterOptions,
1020
- onSelectFilterMode,
1021
- table,
1022
- }: {
852
+ renderGlobalFilterModeMenuItems?: (props: {
1023
853
  internalFilterOptions: MRT_InternalFilterOption[];
1024
854
  onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
1025
855
  table: MRT_TableInstance<TData>;
1026
856
  }) => ReactNode[];
1027
- renderRowActionMenuItems?: ({
1028
- closeMenu,
1029
- row,
1030
- table,
1031
- }: {
857
+ renderRowActionMenuItems?: (props: {
1032
858
  closeMenu: () => void;
1033
859
  row: MRT_Row<TData>;
1034
860
  table: MRT_TableInstance<TData>;
1035
861
  }) => ReactNode[];
1036
- renderRowActions?: ({
1037
- cell,
1038
- row,
1039
- table,
1040
- }: {
862
+ renderRowActions?: (props: {
1041
863
  cell: MRT_Cell<TData>;
1042
864
  row: MRT_Row<TData>;
1043
865
  table: MRT_TableInstance<TData>;
1044
866
  }) => ReactNode;
1045
- renderToolbarInternalActions?: ({
1046
- table,
1047
- }: {
867
+ renderToolbarInternalActions?: (props: {
1048
868
  table: MRT_TableInstance<TData>;
1049
869
  }) => ReactNode;
1050
870
  renderTopToolbar?:
1051
871
  | ReactNode
1052
- | (({ table }: { table: MRT_TableInstance<TData> }) => ReactNode);
1053
- renderTopToolbarCustomActions?: ({
1054
- table,
1055
- }: {
872
+ | ((props: { table: MRT_TableInstance<TData> }) => ReactNode);
873
+ renderTopToolbarCustomActions?: (props: {
1056
874
  table: MRT_TableInstance<TData>;
1057
875
  }) => ReactNode;
1058
876
  rowCount?: number;
@@ -1065,9 +883,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
1065
883
  > | null>;
1066
884
  columnVirtualizerProps?:
1067
885
  | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>
1068
- | (({
1069
- table,
1070
- }: {
886
+ | ((props: {
1071
887
  table: MRT_TableInstance<TData>;
1072
888
  }) => Partial<
1073
889
  VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>
@@ -1078,9 +894,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
1078
894
  > | null>;
1079
895
  rowVirtualizerProps?:
1080
896
  | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>
1081
- | (({
1082
- table,
1083
- }: {
897
+ | ((props: {
1084
898
  table: MRT_TableInstance<TData>;
1085
899
  }) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>);
1086
900
  tableInstanceRef?: MutableRefObject<MRT_TableInstance<TData> | null>;
@@ -1108,6 +922,7 @@ const MaterialReactTable = <TData extends Record<string, any> = {}>({
1108
922
  enableColumnResizing = false,
1109
923
  enableDensityToggle = true,
1110
924
  enableExpandAll = true,
925
+ enableFilterMatchHighlighting = true,
1111
926
  enableFilters = true,
1112
927
  enableFullScreenToggle = true,
1113
928
  enableGlobalFilter = true,
@@ -1159,13 +974,13 @@ const MaterialReactTable = <TData extends Record<string, any> = {}>({
1159
974
  );
1160
975
  const _filterFns = useMemo(() => ({ ...MRT_FilterFns, ...filterFns }), []);
1161
976
  const _sortingFns = useMemo(() => ({ ...MRT_SortingFns, ...sortingFns }), []);
1162
- const _defaultColumn = useMemo<Partial<MRT_ColumnDef<TData>>>(
977
+ const _defaultColumn = useMemo(
1163
978
  () => ({ ...MRT_DefaultColumn, ...defaultColumn }),
1164
979
  [defaultColumn],
1165
980
  );
1166
- const _defaultDisplayColumn = useMemo<Partial<MRT_ColumnDef<TData>>>(
981
+ const _defaultDisplayColumn = useMemo(
1167
982
  () => ({
1168
- ...(MRT_DefaultDisplayColumn as Partial<MRT_ColumnDef<TData>>),
983
+ ...MRT_DefaultDisplayColumn,
1169
984
  ...defaultDisplayColumn,
1170
985
  }),
1171
986
  [defaultDisplayColumn],
@@ -1205,6 +1020,7 @@ const MaterialReactTable = <TData extends Record<string, any> = {}>({
1205
1020
  enableColumnResizing={enableColumnResizing}
1206
1021
  enableDensityToggle={enableDensityToggle}
1207
1022
  enableExpandAll={enableExpandAll}
1023
+ enableFilterMatchHighlighting={enableFilterMatchHighlighting}
1208
1024
  enableFilters={enableFilters}
1209
1025
  enableFullScreenToggle={enableFullScreenToggle}
1210
1026
  enableGlobalFilter={enableGlobalFilter}
@@ -186,6 +186,8 @@ export const MRT_TableBodyCell: FC<Props> = ({
186
186
  sx={(theme) => ({
187
187
  alignItems: layoutMode === 'grid' ? 'center' : undefined,
188
188
  cursor: isEditable && editingMode === 'cell' ? 'pointer' : 'inherit',
189
+ justifyContent:
190
+ layoutMode === 'grid' ? tableCellProps.align : undefined,
189
191
  overflow: 'hidden',
190
192
  p:
191
193
  density === 'compact'
@@ -256,7 +258,13 @@ export const MRT_TableBodyCell: FC<Props> = ({
256
258
  (column.id === 'mrt-row-select' ||
257
259
  column.id === 'mrt-row-expand' ||
258
260
  !row.getIsGrouped()) ? (
259
- columnDef.Cell?.({ cell, column, row, table })
261
+ columnDef.Cell?.({
262
+ cell,
263
+ renderedCellValue: cell.renderValue() as any,
264
+ column,
265
+ row,
266
+ table,
267
+ })
260
268
  ) : isEditing ? (
261
269
  <MRT_EditCellTextField cell={cell} table={table} />
262
270
  ) : (enableClickToCopy || columnDef.enableClickToCopy) &&