material-react-table 0.30.0 → 0.30.1
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 +4 -4
- package/dist/index.d.ts +4 -0
- package/dist/material-react-table.cjs.development.js +6 -6
- 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 +6 -6
- package/dist/material-react-table.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +6 -0
- package/src/menus/MRT_ColumnActionMenu.tsx +3 -3
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import MaterialReactTable from './MaterialReactTable';
|
|
2
2
|
export default MaterialReactTable;
|
|
3
3
|
export * from './MaterialReactTable';
|
|
4
|
+
|
|
5
|
+
import type { MRT_Icons } from './icons';
|
|
6
|
+
export type { MRT_Icons };
|
|
7
|
+
|
|
8
|
+
import type { MRT_Localization } from './localization';
|
|
9
|
+
export type { MRT_Localization };
|
|
@@ -100,7 +100,7 @@ export const MRT_ColumnActionMenu: FC<Props> = ({
|
|
|
100
100
|
|
|
101
101
|
const handleGroupByColumn = () => {
|
|
102
102
|
column.toggleGrouping();
|
|
103
|
-
setColumnOrder((old) => ['mrt-row-expand', ...old]);
|
|
103
|
+
setColumnOrder((old: any) => ['mrt-row-expand', ...old]);
|
|
104
104
|
setAnchorEl(null);
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -186,7 +186,7 @@ export const MRT_ColumnActionMenu: FC<Props> = ({
|
|
|
186
186
|
>
|
|
187
187
|
<Box sx={commonListItemStyles}>
|
|
188
188
|
<ListItemIcon>
|
|
189
|
-
<SortIcon />
|
|
189
|
+
<SortIcon style={{ transform: 'rotate(180deg) scaleX(-1)' }} />
|
|
190
190
|
</ListItemIcon>
|
|
191
191
|
{localization.sortByColumnAsc?.replace(
|
|
192
192
|
'{column}',
|
|
@@ -203,7 +203,7 @@ export const MRT_ColumnActionMenu: FC<Props> = ({
|
|
|
203
203
|
>
|
|
204
204
|
<Box sx={commonListItemStyles}>
|
|
205
205
|
<ListItemIcon>
|
|
206
|
-
<SortIcon
|
|
206
|
+
<SortIcon />
|
|
207
207
|
</ListItemIcon>
|
|
208
208
|
{localization.sortByColumnDesc?.replace(
|
|
209
209
|
'{column}',
|