material-react-table 0.8.5 → 0.8.8
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/icons.d.ts +2 -2
- package/dist/material-react-table.cjs.development.js +6870 -70
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +34 -62
- package/dist/material-react-table.esm.js.map +1 -1
- package/package.json +5 -2
- package/src/buttons/MRT_ExpandAllButton.tsx +2 -2
- package/src/head/MRT_TableHeadCellFilterLabel.tsx +2 -2
- package/src/icons.ts +62 -60
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.8.
|
|
2
|
+
"version": "0.8.8",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "material-react-table",
|
|
5
5
|
"description": "A fully featured Material UI implementation of Tanstack react-table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@storybook/addon-links": "^6.5.5",
|
|
71
71
|
"@storybook/addons": "^6.5.5",
|
|
72
72
|
"@storybook/react": "^6.5.5",
|
|
73
|
-
"@types/react": "^18.0.
|
|
73
|
+
"@types/react": "^18.0.10",
|
|
74
74
|
"@types/react-dom": "^18.0.5",
|
|
75
75
|
"babel-loader": "^8.2.5",
|
|
76
76
|
"eslint": "^8.16.0",
|
|
@@ -80,6 +80,9 @@
|
|
|
80
80
|
"react": "^17.0.2",
|
|
81
81
|
"react-dom": "^17.0.2",
|
|
82
82
|
"react-is": "^18.1.0",
|
|
83
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
84
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
85
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
83
86
|
"size-limit": "^7.0.8",
|
|
84
87
|
"storybook-dark-mode": "^1.1.0",
|
|
85
88
|
"tsdx": "^0.14.1",
|
|
@@ -13,7 +13,7 @@ export const MRT_ExpandAllButton: FC<Props> = ({ tableInstance }) => {
|
|
|
13
13
|
getCanSomeRowsExpand,
|
|
14
14
|
getState,
|
|
15
15
|
options: {
|
|
16
|
-
icons: {
|
|
16
|
+
icons: { KeyboardDoubleArrowDownIcon },
|
|
17
17
|
localization,
|
|
18
18
|
renderDetailPanel,
|
|
19
19
|
},
|
|
@@ -38,7 +38,7 @@ export const MRT_ExpandAllButton: FC<Props> = ({ tableInstance }) => {
|
|
|
38
38
|
width: isDensePadding ? '1.75rem' : '2.25rem',
|
|
39
39
|
}}
|
|
40
40
|
>
|
|
41
|
-
<
|
|
41
|
+
<KeyboardDoubleArrowDownIcon
|
|
42
42
|
style={{
|
|
43
43
|
transform: `rotate(${
|
|
44
44
|
getIsAllRowsExpanded() ? -180 : getIsSomeRowsExpanded() ? -90 : 0
|
|
@@ -14,7 +14,7 @@ export const MRT_TableHeadCellFilterLabel: FC<Props> = ({
|
|
|
14
14
|
const {
|
|
15
15
|
getState,
|
|
16
16
|
options: {
|
|
17
|
-
icons: { FilterAltIcon,
|
|
17
|
+
icons: { FilterAltIcon, FilterAltOffIcon },
|
|
18
18
|
localization,
|
|
19
19
|
},
|
|
20
20
|
setShowFilters,
|
|
@@ -72,7 +72,7 @@ export const MRT_TableHeadCellFilterLabel: FC<Props> = ({
|
|
|
72
72
|
}}
|
|
73
73
|
>
|
|
74
74
|
{showFilters && !column.getFilterValue() ? (
|
|
75
|
-
<
|
|
75
|
+
<FilterAltOffIcon />
|
|
76
76
|
) : (
|
|
77
77
|
<FilterAltIcon />
|
|
78
78
|
)}
|
package/src/icons.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import {
|
|
2
|
+
ArrowRight,
|
|
3
|
+
Cancel,
|
|
4
|
+
CheckBox,
|
|
5
|
+
ClearAll,
|
|
6
|
+
Close,
|
|
7
|
+
DensityMedium,
|
|
8
|
+
DensitySmall,
|
|
9
|
+
KeyboardDoubleArrowDown,
|
|
10
|
+
DragHandle,
|
|
11
|
+
DynamicFeed,
|
|
12
|
+
Edit,
|
|
13
|
+
ExpandLess,
|
|
14
|
+
ExpandMore,
|
|
15
|
+
FilterAlt,
|
|
16
|
+
FilterAltOff,
|
|
17
|
+
FilterList,
|
|
18
|
+
FilterListOff,
|
|
19
|
+
FullscreenExit,
|
|
20
|
+
Fullscreen,
|
|
21
|
+
MoreHoriz,
|
|
22
|
+
MoreVert,
|
|
23
|
+
PushPin,
|
|
24
|
+
RestartAlt,
|
|
25
|
+
Save,
|
|
26
|
+
Search,
|
|
27
|
+
SearchOff,
|
|
28
|
+
Sort,
|
|
29
|
+
ViewColumn,
|
|
30
|
+
VisibilityOff,
|
|
31
|
+
} from '@mui/icons-material';
|
|
30
32
|
|
|
31
33
|
export interface MRT_Icons {
|
|
32
34
|
ArrowRightIcon: any;
|
|
@@ -36,14 +38,14 @@ export interface MRT_Icons {
|
|
|
36
38
|
CloseIcon: any;
|
|
37
39
|
DensityMediumIcon: any;
|
|
38
40
|
DensitySmallIcon: any;
|
|
39
|
-
|
|
41
|
+
KeyboardDoubleArrowDownIcon: any;
|
|
40
42
|
DragHandleIcon: any;
|
|
41
43
|
DynamicFeedIcon: any;
|
|
42
44
|
EditIcon: any;
|
|
43
45
|
ExpandLessIcon: any;
|
|
44
46
|
ExpandMoreIcon: any;
|
|
45
47
|
FilterAltIcon: any;
|
|
46
|
-
|
|
48
|
+
FilterAltOffIcon: any;
|
|
47
49
|
FilterListIcon: any;
|
|
48
50
|
FilterListOffIcon: any;
|
|
49
51
|
FullscreenExitIcon: any;
|
|
@@ -61,33 +63,33 @@ export interface MRT_Icons {
|
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
export const MRT_Default_Icons: MRT_Icons = {
|
|
64
|
-
ArrowRightIcon,
|
|
65
|
-
CancelIcon,
|
|
66
|
-
CheckBoxIcon,
|
|
67
|
-
ClearAllIcon,
|
|
68
|
-
CloseIcon,
|
|
69
|
-
DensityMediumIcon,
|
|
70
|
-
DensitySmallIcon,
|
|
71
|
-
|
|
72
|
-
DragHandleIcon,
|
|
73
|
-
DynamicFeedIcon,
|
|
74
|
-
EditIcon,
|
|
75
|
-
ExpandLessIcon,
|
|
76
|
-
ExpandMoreIcon,
|
|
77
|
-
FilterAltIcon,
|
|
78
|
-
FilterAltOff,
|
|
79
|
-
FilterListIcon,
|
|
80
|
-
FilterListOffIcon,
|
|
81
|
-
FullscreenExitIcon,
|
|
82
|
-
FullscreenIcon,
|
|
83
|
-
MoreHorizIcon,
|
|
84
|
-
MoreVertIcon,
|
|
85
|
-
PushPinIcon,
|
|
86
|
-
RestartAltIcon,
|
|
87
|
-
SaveIcon,
|
|
88
|
-
SearchIcon,
|
|
89
|
-
SearchOffIcon,
|
|
90
|
-
SortIcon,
|
|
91
|
-
ViewColumnIcon,
|
|
92
|
-
VisibilityOffIcon,
|
|
66
|
+
ArrowRightIcon: ArrowRight,
|
|
67
|
+
CancelIcon: Cancel,
|
|
68
|
+
CheckBoxIcon: CheckBox,
|
|
69
|
+
ClearAllIcon: ClearAll,
|
|
70
|
+
CloseIcon: Close,
|
|
71
|
+
DensityMediumIcon: DensityMedium,
|
|
72
|
+
DensitySmallIcon: DensitySmall,
|
|
73
|
+
KeyboardDoubleArrowDownIcon: KeyboardDoubleArrowDown,
|
|
74
|
+
DragHandleIcon: DragHandle,
|
|
75
|
+
DynamicFeedIcon: DynamicFeed,
|
|
76
|
+
EditIcon: Edit,
|
|
77
|
+
ExpandLessIcon: ExpandLess,
|
|
78
|
+
ExpandMoreIcon: ExpandMore,
|
|
79
|
+
FilterAltIcon: FilterAlt,
|
|
80
|
+
FilterAltOffIcon: FilterAltOff,
|
|
81
|
+
FilterListIcon: FilterList,
|
|
82
|
+
FilterListOffIcon: FilterListOff,
|
|
83
|
+
FullscreenExitIcon: FullscreenExit,
|
|
84
|
+
FullscreenIcon: Fullscreen,
|
|
85
|
+
MoreHorizIcon: MoreHoriz,
|
|
86
|
+
MoreVertIcon: MoreVert,
|
|
87
|
+
PushPinIcon: PushPin,
|
|
88
|
+
RestartAltIcon: RestartAlt,
|
|
89
|
+
SaveIcon: Save,
|
|
90
|
+
SearchIcon: Search,
|
|
91
|
+
SearchOffIcon: SearchOff,
|
|
92
|
+
SortIcon: Sort,
|
|
93
|
+
ViewColumnIcon: ViewColumn,
|
|
94
|
+
VisibilityOffIcon: VisibilityOff,
|
|
93
95
|
};
|