material-react-table 0.32.0-alpha.1 → 0.32.2
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/cjs/MaterialReactTable.d.ts +3 -3
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/MaterialReactTable.d.ts +3 -3
- package/dist/esm/material-react-table.esm.min.js +1 -1
- package/dist/esm/material-react-table.esm.min.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/package.json +9 -9
- package/src/MaterialReactTable.tsx +3 -3
- package/dist/cjs/index.js +0 -7467
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/material-react-table.esm.js +0 -7443
- package/dist/esm/material-react-table.esm.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction, ReactNode, FocusEvent, ChangeEvent, DragEvent, FC } from 'react';
|
|
2
2
|
import { ButtonProps, TextFieldProps, TableCellProps, IconButtonProps, LinearProgressProps, CheckboxProps, SkeletonProps, TableBodyProps, TableRowProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, PaperProps, TableProps, AlertProps, ToolbarProps } from '@mui/material';
|
|
3
|
-
import { Row, Table, TableState, ColumnDef,
|
|
3
|
+
import { Row, Table, TableState, ColumnDef, DeepKeys, Column, Header, HeaderGroup, Cell, SortingFn, FilterFn, TableOptions, OnChangeFn } from '@tanstack/react-table';
|
|
4
4
|
import { VirtualizerOptions } from '@tanstack/react-virtual';
|
|
5
5
|
import * as _tanstack_table_core from '@tanstack/table-core';
|
|
6
6
|
import { RankingInfo } from '@tanstack/match-sorter-utils';
|
|
@@ -314,7 +314,7 @@ declare type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<Column
|
|
|
314
314
|
* @example accessorKey: 'username' //simple
|
|
315
315
|
* @example accessorKey: 'name.firstName' //deep key dot notation
|
|
316
316
|
*/
|
|
317
|
-
accessorKey?:
|
|
317
|
+
accessorKey?: DeepKeys<TData>;
|
|
318
318
|
/**
|
|
319
319
|
* Specify what type of column this is. Either `data`, `display`, or `group`. Defaults to `data`.
|
|
320
320
|
* Leave this blank if you are just creating a normal data column.
|
|
@@ -437,7 +437,7 @@ declare type MRT_DisplayColumnIds = 'mrt-row-drag' | 'mrt-row-actions' | 'mrt-ro
|
|
|
437
437
|
* `columns` and `data` props are the only required props, but there are over 150 other optional props.
|
|
438
438
|
*
|
|
439
439
|
* See more info on creating columns and data on the official docs site:
|
|
440
|
-
* @link https://www.material-react-table.com/docs/usage
|
|
440
|
+
* @link https://www.material-react-table.com/docs/getting-started/usage
|
|
441
441
|
*
|
|
442
442
|
* See the full props list on the official docs site:
|
|
443
443
|
* @link https://www.material-react-table.com/docs/api/props
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.32.
|
|
2
|
+
"version": "0.32.2",
|
|
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.",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"storybook": "start-storybook -p 6006"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@babel/core": "^7.18.
|
|
52
|
+
"@babel/core": "^7.18.10",
|
|
53
53
|
"@babel/preset-react": "^7.18.6",
|
|
54
|
-
"@emotion/react": "^11.
|
|
55
|
-
"@emotion/styled": "^11.
|
|
54
|
+
"@emotion/react": "^11.10.0",
|
|
55
|
+
"@emotion/styled": "^11.10.0",
|
|
56
56
|
"@faker-js/faker": "^7.3.0",
|
|
57
57
|
"@mui/icons-material": "^5.8.4",
|
|
58
|
-
"@mui/material": "^5.9.
|
|
58
|
+
"@mui/material": "^5.9.3",
|
|
59
59
|
"@rollup/plugin-babel": "^5.3.1",
|
|
60
60
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
61
61
|
"@rollup/plugin-typescript": "^8.3.4",
|
|
62
|
-
"@size-limit/preset-small-lib": "^
|
|
62
|
+
"@size-limit/preset-small-lib": "^8.0.0",
|
|
63
63
|
"@storybook/addon-a11y": "^6.5.9",
|
|
64
64
|
"@storybook/addon-actions": "^6.5.9",
|
|
65
65
|
"@storybook/addon-essentials": "^6.5.9",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@types/react": "^18.0.15",
|
|
72
72
|
"@types/react-dom": "^18.0.6",
|
|
73
73
|
"babel-loader": "^8.2.5",
|
|
74
|
-
"eslint": "^8.
|
|
74
|
+
"eslint": "^8.21.0",
|
|
75
75
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
76
76
|
"husky": "^8.0.1",
|
|
77
77
|
"prettier": "^2.7.1",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"rollup-plugin-dts": "^4.2.2",
|
|
83
83
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
84
84
|
"rollup-plugin-terser": "^7.0.2",
|
|
85
|
-
"size-limit": "^
|
|
85
|
+
"size-limit": "^8.0.0",
|
|
86
86
|
"storybook-dark-mode": "^1.1.0",
|
|
87
87
|
"tslib": "^2.4.0",
|
|
88
88
|
"typescript": "^4.7.4"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@tanstack/match-sorter-utils": "8.1.1",
|
|
99
|
-
"@tanstack/react-table": "8.5.
|
|
99
|
+
"@tanstack/react-table": "8.5.5",
|
|
100
100
|
"@tanstack/react-virtual": "^3.0.0-beta.14"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
Cell,
|
|
31
31
|
Column,
|
|
32
32
|
ColumnDef,
|
|
33
|
-
|
|
33
|
+
DeepKeys,
|
|
34
34
|
FilterFn,
|
|
35
35
|
Header,
|
|
36
36
|
HeaderGroup,
|
|
@@ -222,7 +222,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
|
|
|
222
222
|
* @example accessorKey: 'username' //simple
|
|
223
223
|
* @example accessorKey: 'name.firstName' //deep key dot notation
|
|
224
224
|
*/
|
|
225
|
-
accessorKey?:
|
|
225
|
+
accessorKey?: DeepKeys<TData>;
|
|
226
226
|
/**
|
|
227
227
|
* Specify what type of column this is. Either `data`, `display`, or `group`. Defaults to `data`.
|
|
228
228
|
* Leave this blank if you are just creating a normal data column.
|
|
@@ -434,7 +434,7 @@ export type MRT_DisplayColumnIds =
|
|
|
434
434
|
* `columns` and `data` props are the only required props, but there are over 150 other optional props.
|
|
435
435
|
*
|
|
436
436
|
* See more info on creating columns and data on the official docs site:
|
|
437
|
-
* @link https://www.material-react-table.com/docs/usage
|
|
437
|
+
* @link https://www.material-react-table.com/docs/getting-started/usage
|
|
438
438
|
*
|
|
439
439
|
* See the full props list on the official docs site:
|
|
440
440
|
* @link https://www.material-react-table.com/docs/api/props
|