Skip to content

Commit 254517b

Browse files
committed
release v3.1.0
1 parent 126f236 commit 254517b

File tree

4 files changed

+23
-45
lines changed

4 files changed

+23
-45
lines changed

apps/material-react-table-docs/pages/changelog.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ import Head from 'next/head';
77

88
## MRT V3 Changelog
99

10+
### Version 3.1.0 - 2024-12-22
11+
12+
- Un-deprecated several `mui*Props` that were initially marked as deprecated in V3.0.0. They will be sticking around longer than expected until TanStack Table itself handles merging `defaultColumn` options better
13+
- Updated Types for React 19 (Fixed some JSX namespace issues)
14+
- MRT_FilterTextField improvements:
15+
- Refactored to better use the slotProps API internally, but still accept custom props from `muiFilterTextFieldProps` and the like
16+
- Set the visibility of the "Clear" filter text field button to be hidden unless the filter text field has a value
17+
- Fixed overlapping input label in select filters
18+
- Fixed Range Slider filter keyboard navigation to not move the focus to the next cell when using the arrow keys on the slider
19+
- Fixed "Clear Sorting" Menu Item not being disabled if there was no sorting applied to that column
20+
- Fixed bug where "Reset Column Size" Menu Item was disabled when a column had a size of 0
21+
- Fixed issue with Select Edit inputs not blurring correctly
22+
- Fixed total selected row count when grouping by columns
23+
1024
### Version 3.0.3 - 2024-12-13
1125

1226
- Fixed filter text field value
@@ -16,7 +30,7 @@ import Head from 'next/head';
1630
- Fixed rendering of multi-select filter when filter value is an empty array
1731
- Rearranged execution of `muiTableBodyCellProps?.onKeyDown` internally to allow these events to be overridden or even skipped
1832
- Fixed MRT_RowActionMenu key prop internally
19-
- Corrected Sweedish `sv` locale translations
33+
- Corrected Swedish `sv` locale translations
2034
- Removed 'new-password' from autocomplete in text fields and just use 'off'
2135

2236
### Version 3.0.1 - 2024-09-05

apps/material-react-table-docs/pages/docs/getting-started/migrating-to-v3.mdx

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -59,49 +59,8 @@ You should now be on Material React Table V3! Look for any code or type errors i
5959
- Keyboard navigation for table cells in now enabled by default. If you had added your own custom keyboard shortcuts, you may want to set `enableKeyboardShortcuts` to `false` or remove your custom shortcuts.
6060
- Removed deprecated `MRT_Virtualizer` type in favor of separate `MRT_RowVirtualizer` and `MRT_ColumnVirtualizer` types
6161
- Removed deprecated `text` in favor of the more consistent `label` type in dropdown/autocomplete/select option types.
62-
- Deprecated several `mui*Props` table options that were column-specific. These table options should either be specified in column defs or in the `defaultColumn` table option.
63-
- `muiColumnActionsButtonProps`
64-
- `muiColumnDragHandleProps`
65-
- `muiCopyButtonProps`
66-
- `muiEditTextFieldProps`
67-
- `muiFilterAutocompleteProps`
68-
- `muiFilterCheckboxProps`
69-
- `muiFilterDatePickerProps`
70-
- `muiFilterDateTimePickerProps`
71-
- `muiFilterSliderProps`
72-
- `muiFilterTextFieldProps`
73-
- `muiFilterTimePickerProps`
74-
- `muiTableBodyCellProps`
75-
- `muiTableHeadCellProps`
76-
- `muiTableFooterCellProps`
77-
- `renderCellActionMenuItems`
78-
- `renderColumnActionsMenuItems`
79-
- `renderColumnFilterModeMenuItems`
80-
81-
```diff
82-
const table = useTable({
83-
columns,
84-
data,
85-
// Recommended to specify these table options in the defaultColumn instead
86-
+ defaultColumn: { // applies to all columns
87-
+ muiTableBodyCellProps: {
88-
+ align: 'center',
89-
+ },
90-
+ muiFilterAutocompleteProps: {
91-
+ sx: { my: 2 },
92-
+ },
93-
+ },
94-
// these table options will be removed in MRT V4
95-
- muiTableBodyCellProps: {
96-
- align: 'center',
97-
- },
98-
- muiFilterAutocompleteProps: {
99-
- sx: { my: 2 },
100-
- },
101-
)};
102-
```
10362

104-
You can be lazy with these changes. These table options are just marked as deprecated, but they will still work until MRT V4.
63+
> Note: As of MRT V3.1.0, some muiProps that were initially marked as deprecated in V3.0.0 are no longer deprecated until a future version of TanStack Table comes out that handles `defaultColumn` options merging better.
10564
10665
> Can I uninstall Emotion Yet? No, Emotion is still required for Material React Table V3, but it won't be for long. MRT V4 will remove the Emotion dependency in favor of [Pigment CSS](https://mui.com/blog/introducing-pigment-css/).
10766

packages/material-react-table/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.0.3",
2+
"version": "3.1.0",
33
"license": "MIT",
44
"name": "material-react-table",
55
"description": "A fully featured Material UI V6 implementation of TanStack React Table V8, written from the ground up in TypeScript.",

packages/material-react-table/stories/features/ColumnGrouping.stories.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ const data = [...Array(300)].map(() => ({
5353
}));
5454

5555
export const ColumnGroupingEnabled = () => (
56-
<MaterialReactTable columns={columns} data={data} enableGrouping />
56+
<MaterialReactTable
57+
columns={columns}
58+
data={data}
59+
enableGrouping
60+
enableRowSelection
61+
/>
5762
);
5863

5964
export const ColumnGroupingEnabledReorder = () => (

0 commit comments

Comments
 (0)