Skip to content

Commit ac0e55c

Browse files
committed
release v3.0.0 - mui v6 and keyboard navigation features
1 parent 677f69d commit ac0e55c

File tree

8 files changed

+20
-8
lines changed

8 files changed

+20
-8
lines changed

apps/material-react-table-docs/components/navigation/TopBar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const TopBar = ({ navOpen, setNavOpen }: Props) => {
102102
sx={{
103103
display: 'flex',
104104
justifyContent: 'space-between',
105-
p: '2px 4px',
105+
p: '2px 8px',
106106
}}
107107
disableGutters
108108
variant="dense"

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

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import Head from 'next/head';
3333
- `renderCellActionMenuItems`
3434
- `renderColumnActionsMenuItems`
3535
- `renderColumnFilterModeMenuItems`
36+
- Fixed top pagination and searchbox sometimes overlapping
3637

3738
See the entire [v3 migration guide](/docs/getting-started/migrating-to-v3) for more details.
3839

apps/material-react-table-docs/pages/docs/guides/customize-components.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ Each `mui...Prop` has multiple options for you to add styling to the component.
134134

135135
#### The SX Prop
136136

137+
> NOTE: These docs are still written for the Emotion version of the `sx` prop. Pigment CSS docs will be added here later.
138+
137139
The recommended way to style Material UI components in Material React Table will be the [`sx` prop](https://mui.com/system/basics/#the-sx-prop) throughout this docs site, as it is both the most simple and the most powerful way to style Material UI components as of Material UI V6. They can work and be as simple as a `style` prop, but behind the scenes, they work more like emotion styled-components by using `mui/system`.
138140

139141
Don't worry, `className` and `style` props will still work, but let's show off some of the more elegant syntax you can use with the `sx` table option.

apps/material-react-table-docs/pages/index.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
Stack,
88
Typography,
99
Link as MuiLink,
10+
Alert,
11+
AlertTitle,
1012
} from '@mui/material';
1113
import { ArrowForwardIos } from '@mui/icons-material';
1214
import { HomeCards } from '../components/mdx/HomeCards';
@@ -24,6 +26,15 @@ const HomePage = () => {
2426
return (
2527
<>
2628
<Stack sx={{ maxWidth: '1200px', m: 'auto' }}>
29+
<Alert severity="success" variant="outlined" sx={{}}>
30+
<AlertTitle>
31+
Material React Table V3 was released September 5th, 2024!
32+
</AlertTitle>
33+
<Typography>Upgrade to MRT V3 and Material UI V6 Today!</Typography>
34+
<MuiLink href="/docs/getting-started/migrating-to-v3">
35+
View the V3 Migration Guide here.
36+
</MuiLink>
37+
</Alert>
2738
<Typography
2839
sx={{
2940
textAlign: 'center',

packages/material-react-table/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.0.0-rc.0",
2+
"version": "3.0.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/src/components/table/MRT_TablePaper.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const MRT_TablePaper = <TData extends MRT_RowData>({
3838
const theme = useTheme();
3939

4040
return (
41-
<FocusTrap open={isFullScreen}>
41+
<FocusTrap disableEnforceFocus open={isFullScreen}>
4242
<Paper
4343
elevation={2}
4444
onKeyDown={(e) => e.key === 'Escape' && table.setIsFullScreen(false)}

packages/material-react-table/src/components/toolbar/MRT_TablePagination.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
4949
} = table;
5050
const {
5151
pagination: { pageIndex = 0, pageSize = 10 },
52-
showGlobalFilter,
5352
} = getState();
5453

5554
const paginationProps = {
@@ -95,9 +94,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
9594
justifyContent: { md: 'space-between', sm: 'center' },
9695
justifySelf: 'flex-end',
9796
mt:
98-
position === 'top' &&
99-
enableToolbarInternalActions &&
100-
!showGlobalFilter
97+
position === 'top' && enableToolbarInternalActions
10198
? '3rem'
10299
: undefined,
103100
position: 'relative',

packages/material-react-table/src/locales/no.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@ export const MRT_Localization_NO: MRT_Localization = {
9393
unpinAll: 'Løsne alle',
9494

9595
ungroupByColumn: 'Oppgrupper etter {column}',
96-
selectedCountOfRowCountRowsSelected: '{selected} av {count} rader valgt',
96+
selectedCountOfRowCountRowsSelected:
97+
'{selectedCount} av {rowCount} rader valgt',
9798
};

0 commit comments

Comments
 (0)