material-react-table 1.2.2 → 1.2.3

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,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { MRT_Cell, MRT_Column, MRT_ColumnDef, MRT_FilterOption, MRT_Row, MRT_TableInstance, MRT_TableState, MaterialReactTableProps, MRT_Localization } from '..';
3
- export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/table-core").TableOptions<TData>>, "initialState" | "state" | "onStateChange" | "data" | "columns" | "defaultColumn" | "enableRowSelection" | "expandRowsFn"> & {
3
+ export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/table-core").TableOptions<TData>>, "state" | "data" | "onStateChange" | "initialState" | "columns" | "defaultColumn" | "enableRowSelection" | "expandRowsFn"> & {
4
4
  columnFilterModeOptions?: (string | (string & Record<never, never>))[] | null | undefined;
5
5
  columns: MRT_ColumnDef<TData>[];
6
6
  data: TData[];
@@ -13,7 +13,7 @@ export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(pro
13
13
  "mrt-row-select": Partial<MRT_ColumnDef<{}>>;
14
14
  "mrt-row-numbers": Partial<MRT_ColumnDef<{}>>;
15
15
  }> | undefined;
16
- editingMode?: "row" | "cell" | "table" | "modal" | undefined;
16
+ editingMode?: "cell" | "row" | "table" | "modal" | undefined;
17
17
  enableBottomToolbar?: boolean | undefined;
18
18
  enableClickToCopy?: boolean | undefined;
19
19
  enableColumnActions?: boolean | undefined;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.2",
2
+ "version": "1.2.3",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
@@ -1,6 +1,8 @@
1
1
  import { ColumnOrderState, GroupingState } from '@tanstack/react-table';
2
2
  import { alpha, lighten, TableCellProps, Theme } from '@mui/material';
3
- import {
3
+ import { MRT_FilterFns } from './filterFns';
4
+ import { MRT_SortingFns } from './sortingFns';
5
+ import type {
4
6
  MaterialReactTableProps,
5
7
  MRT_Column,
6
8
  MRT_ColumnDef,
@@ -10,8 +12,6 @@ import {
10
12
  MRT_Header,
11
13
  MRT_TableInstance,
12
14
  } from '.';
13
- import { MRT_FilterFns } from './filterFns';
14
- import { MRT_SortingFns } from './sortingFns';
15
15
 
16
16
  export const getColumnId = <TData extends Record<string, any> = {}>(
17
17
  columnDef: MRT_ColumnDef<TData>,
package/src/icons.ts CHANGED
@@ -1,35 +1,33 @@
1
- import {
2
- ArrowRight,
3
- Cancel,
4
- CheckBox,
5
- ClearAll,
6
- Close,
7
- DensityLarge,
8
- DensityMedium,
9
- DensitySmall,
10
- DragHandle,
11
- DynamicFeed,
12
- Edit,
13
- ExpandLess,
14
- ExpandMore,
15
- FilterAlt,
16
- FilterAltOff,
17
- FilterList,
18
- FilterListOff,
19
- Fullscreen,
20
- FullscreenExit,
21
- KeyboardDoubleArrowDown,
22
- MoreHoriz,
23
- MoreVert,
24
- PushPin,
25
- RestartAlt,
26
- Save,
27
- Search,
28
- SearchOff,
29
- Sort,
30
- ViewColumn,
31
- VisibilityOff,
32
- } from '@mui/icons-material';
1
+ import ArrowRightIcon from '@mui/icons-material/ArrowRight';
2
+ import CancelIcon from '@mui/icons-material/Cancel';
3
+ import CheckBoxIcon from '@mui/icons-material/CheckBox';
4
+ import ClearAllIcon from '@mui/icons-material/ClearAll';
5
+ import CloseIcon from '@mui/icons-material/Close';
6
+ import DensityLargeIcon from '@mui/icons-material/DensityLarge';
7
+ import DensityMediumIcon from '@mui/icons-material/DensityMedium';
8
+ import DensitySmallIcon from '@mui/icons-material/DensitySmall';
9
+ import DragHandleIcon from '@mui/icons-material/DragHandle';
10
+ import DynamicFeedIcon from '@mui/icons-material/DynamicFeed';
11
+ import EditIcon from '@mui/icons-material/Edit';
12
+ import ExpandLessIcon from '@mui/icons-material/ExpandLess';
13
+ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
14
+ import FilterAltIcon from '@mui/icons-material/FilterAlt';
15
+ import FilterAltOffIcon from '@mui/icons-material/FilterAltOff';
16
+ import FilterListIcon from '@mui/icons-material/FilterList';
17
+ import FilterListOffIcon from '@mui/icons-material/FilterListOff';
18
+ import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
19
+ import FullscreenIcon from '@mui/icons-material/Fullscreen';
20
+ import KeyboardDoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';
21
+ import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
22
+ import MoreVertIcon from '@mui/icons-material/MoreVert';
23
+ import PushPinIcon from '@mui/icons-material/PushPin';
24
+ import RestartAltIcon from '@mui/icons-material/RestartAlt';
25
+ import SaveIcon from '@mui/icons-material/Save';
26
+ import SearchIcon from '@mui/icons-material/Search';
27
+ import SearchOffIcon from '@mui/icons-material/SearchOff';
28
+ import SortIcon from '@mui/icons-material/Sort';
29
+ import ViewColumnIcon from '@mui/icons-material/ViewColumn';
30
+ import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
33
31
 
34
32
  export interface MRT_Icons {
35
33
  ArrowRightIcon: any;
@@ -65,34 +63,34 @@ export interface MRT_Icons {
65
63
  }
66
64
 
67
65
  export const MRT_Default_Icons: MRT_Icons = {
68
- ArrowRightIcon: ArrowRight,
69
- CancelIcon: Cancel,
70
- CheckBoxIcon: CheckBox,
71
- ClearAllIcon: ClearAll,
72
- CloseIcon: Close,
73
- DensityLargeIcon: DensityLarge,
74
- DensityMediumIcon: DensityMedium,
75
- DensitySmallIcon: DensitySmall,
76
- DragHandleIcon: DragHandle,
77
- DynamicFeedIcon: DynamicFeed,
78
- EditIcon: Edit,
79
- ExpandLessIcon: ExpandLess,
80
- ExpandMoreIcon: ExpandMore,
81
- FilterAltIcon: FilterAlt,
82
- FilterAltOffIcon: FilterAltOff,
83
- FilterListIcon: FilterList,
84
- FilterListOffIcon: FilterListOff,
85
- FullscreenExitIcon: FullscreenExit,
86
- FullscreenIcon: Fullscreen,
87
- KeyboardDoubleArrowDownIcon: KeyboardDoubleArrowDown,
88
- MoreHorizIcon: MoreHoriz,
89
- MoreVertIcon: MoreVert,
90
- PushPinIcon: PushPin,
91
- RestartAltIcon: RestartAlt,
92
- SaveIcon: Save,
93
- SearchIcon: Search,
94
- SearchOffIcon: SearchOff,
95
- SortIcon: Sort,
96
- ViewColumnIcon: ViewColumn,
97
- VisibilityOffIcon: VisibilityOff,
66
+ ArrowRightIcon,
67
+ CancelIcon,
68
+ CheckBoxIcon,
69
+ ClearAllIcon,
70
+ CloseIcon,
71
+ DensityLargeIcon,
72
+ DensityMediumIcon,
73
+ DensitySmallIcon,
74
+ DragHandleIcon,
75
+ DynamicFeedIcon,
76
+ EditIcon,
77
+ ExpandLessIcon,
78
+ ExpandMoreIcon,
79
+ FilterAltIcon,
80
+ FilterAltOffIcon,
81
+ FilterListIcon,
82
+ FilterListOffIcon,
83
+ FullscreenExitIcon,
84
+ FullscreenIcon,
85
+ KeyboardDoubleArrowDownIcon,
86
+ MoreHorizIcon,
87
+ MoreVertIcon,
88
+ PushPinIcon,
89
+ RestartAltIcon,
90
+ SaveIcon,
91
+ SearchIcon,
92
+ SearchOffIcon,
93
+ SortIcon,
94
+ ViewColumnIcon,
95
+ VisibilityOffIcon,
98
96
  };