material-react-table 2.13.2 → 3.0.0-alpha.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.
- package/README.md +3 -3
- package/dist/index.d.ts +3 -11
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/types.ts +2 -13
- package/src/utils/utils.ts +1 -1
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"version": "
|
2
|
+
"version": "3.0.0-alpha.0",
|
3
3
|
"license": "MIT",
|
4
4
|
"name": "material-react-table",
|
5
|
-
"description": "A fully featured Material UI
|
5
|
+
"description": "A fully featured Material UI V6 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
|
6
6
|
"author": "KevinVandy",
|
7
7
|
"keywords": [
|
8
8
|
"react-table",
|
@@ -65,9 +65,9 @@
|
|
65
65
|
"@emotion/react": "^11.13.3",
|
66
66
|
"@emotion/styled": "^11.13.0",
|
67
67
|
"@faker-js/faker": "^8.4.1",
|
68
|
-
"@mui/icons-material": "^
|
69
|
-
"@mui/material": "^
|
70
|
-
"@mui/x-date-pickers": "^7.
|
68
|
+
"@mui/icons-material": "^6.0.1",
|
69
|
+
"@mui/material": "^6.0.1",
|
70
|
+
"@mui/x-date-pickers": "^7.15.0",
|
71
71
|
"@rollup/plugin-typescript": "^11.1.6",
|
72
72
|
"@size-limit/preset-small-lib": "^11.1.4",
|
73
73
|
"@storybook/addon-a11y": "^8.2.9",
|
@@ -105,11 +105,11 @@
|
|
105
105
|
"vite": "^5.4.2"
|
106
106
|
},
|
107
107
|
"peerDependencies": {
|
108
|
-
"@emotion/react": ">=11.
|
109
|
-
"@emotion/styled": ">=11.
|
110
|
-
"@mui/icons-material": ">=
|
111
|
-
"@mui/material": ">=
|
112
|
-
"@mui/x-date-pickers": ">=
|
108
|
+
"@emotion/react": ">=11.13",
|
109
|
+
"@emotion/styled": ">=11.13",
|
110
|
+
"@mui/icons-material": ">=6",
|
111
|
+
"@mui/material": ">=6",
|
112
|
+
"@mui/x-date-pickers": ">=7.15",
|
113
113
|
"react": ">=17.0",
|
114
114
|
"react-dom": ">=17.0"
|
115
115
|
},
|
package/src/types.ts
CHANGED
@@ -89,10 +89,6 @@ export type Xor<A, B> =
|
|
89
89
|
export type DropdownOption =
|
90
90
|
| {
|
91
91
|
label?: string;
|
92
|
-
/**
|
93
|
-
* @deprecated use `label` instead
|
94
|
-
*/
|
95
|
-
text?: string;
|
96
92
|
value: any;
|
97
93
|
}
|
98
94
|
| string;
|
@@ -138,13 +134,6 @@ export type MRT_RowVirtualizer<
|
|
138
134
|
virtualRows: MRT_VirtualItem[];
|
139
135
|
};
|
140
136
|
|
141
|
-
/**
|
142
|
-
* @deprecated use `MRT_ColumnVirtualizer` or `MRT_RowVirtualizer` instead
|
143
|
-
*/
|
144
|
-
export type MRT_Virtualizer<_TScrollElement = any, _TItemElement = any> =
|
145
|
-
| MRT_ColumnVirtualizer
|
146
|
-
| MRT_RowVirtualizer;
|
147
|
-
|
148
137
|
export type MRT_ColumnHelper<TData extends MRT_RowData> = {
|
149
138
|
accessor: <
|
150
139
|
TAccessor extends AccessorFn<TData> | DeepKeys<TData>,
|
@@ -822,7 +811,7 @@ export interface MRT_TableOptions<TData extends MRT_RowData>
|
|
822
811
|
LiteralUnion<string & MRT_FilterOption>
|
823
812
|
> | null;
|
824
813
|
columnVirtualizerInstanceRef?: MutableRefObject<
|
825
|
-
MRT_ColumnVirtualizer |
|
814
|
+
MRT_ColumnVirtualizer | null
|
826
815
|
>;
|
827
816
|
columnVirtualizerOptions?:
|
828
817
|
| ((props: {
|
@@ -1283,7 +1272,7 @@ export interface MRT_TableOptions<TData extends MRT_RowData>
|
|
1283
1272
|
| 'top'
|
1284
1273
|
| 'top-and-bottom';
|
1285
1274
|
rowVirtualizerInstanceRef?: MutableRefObject<
|
1286
|
-
MRT_RowVirtualizer |
|
1275
|
+
MRT_RowVirtualizer | null
|
1287
1276
|
>;
|
1288
1277
|
rowVirtualizerOptions?:
|
1289
1278
|
| ((props: {
|