Skip to content

Commit 53acf39

Browse files
Bump @toolpad/core to ^0.11.0 (#44840)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pedro Ferreira <[email protected]>
1 parent c3f3642 commit 53acf39

File tree

4 files changed

+172
-171
lines changed

4 files changed

+172
-171
lines changed

docs/data/material/components/breadcrumbs/PageContainerBasic.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import * as React from 'react';
22
import { styled, useTheme } from '@mui/material/styles';
33
import DashboardIcon from '@mui/icons-material/Dashboard';
44
import { AppProvider } from '@toolpad/core/AppProvider';
5-
import { PageContainer, PageContainerToolbar } from '@toolpad/core/PageContainer';
5+
import {
6+
PageContainer,
7+
PageHeader,
8+
PageHeaderToolbar,
9+
} from '@toolpad/core/PageContainer';
610
import Grid from '@mui/material/Grid2';
711
import Paper from '@mui/material/Paper';
812
import Stack from '@mui/material/Stack';
@@ -39,9 +43,9 @@ const Skeleton = styled('div')(({ theme, height }) => ({
3943
content: '" "',
4044
}));
4145

42-
function PageToolbar() {
46+
function CustomPageToolbar() {
4347
return (
44-
<PageContainerToolbar>
48+
<PageHeaderToolbar>
4549
<Stack direction="row" spacing={1} alignItems="center">
4650
<Button
4751
variant="outlined"
@@ -60,10 +64,14 @@ function PageToolbar() {
6064
Print
6165
</Button>
6266
</Stack>
63-
</PageContainerToolbar>
67+
</PageHeaderToolbar>
6468
);
6569
}
6670

71+
function CustomPageHeader() {
72+
return <PageHeader slots={{ toolbar: CustomPageToolbar }} />;
73+
}
74+
6775
export default function PageContainerBasic(props) {
6876
const { window } = props;
6977
const router = useDemoRouter('/orders');
@@ -84,7 +92,7 @@ export default function PageContainerBasic(props) {
8492
<Paper sx={{ p: 2, width: '100%' }}>
8593
<PageContainer
8694
slots={{
87-
toolbar: PageToolbar,
95+
header: CustomPageHeader,
8896
}}
8997
>
9098
<Grid container spacing={1}>

docs/data/material/components/breadcrumbs/PageContainerBasic.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import * as React from 'react';
22
import { styled, useTheme } from '@mui/material/styles';
33
import DashboardIcon from '@mui/icons-material/Dashboard';
44
import { AppProvider, Navigation, Router } from '@toolpad/core/AppProvider';
5-
import { PageContainer, PageContainerToolbar } from '@toolpad/core/PageContainer';
5+
import {
6+
PageContainer,
7+
PageHeader,
8+
PageHeaderToolbar,
9+
} from '@toolpad/core/PageContainer';
610
import Grid from '@mui/material/Grid2';
711
import Paper from '@mui/material/Paper';
812
import Stack from '@mui/material/Stack';
@@ -39,9 +43,9 @@ const Skeleton = styled('div')<{ height: number }>(({ theme, height }) => ({
3943
content: '" "',
4044
}));
4145

42-
function PageToolbar() {
46+
function CustomPageToolbar() {
4347
return (
44-
<PageContainerToolbar>
48+
<PageHeaderToolbar>
4549
<Stack direction="row" spacing={1} alignItems="center">
4650
<Button
4751
variant="outlined"
@@ -60,10 +64,14 @@ function PageToolbar() {
6064
Print
6165
</Button>
6266
</Stack>
63-
</PageContainerToolbar>
67+
</PageHeaderToolbar>
6468
);
6569
}
6670

71+
function CustomPageHeader() {
72+
return <PageHeader slots={{ toolbar: CustomPageToolbar }} />;
73+
}
74+
6775
export default function PageContainerBasic(props: any) {
6876
const { window } = props;
6977
const router = useDemoRouter('/orders');
@@ -84,7 +92,7 @@ export default function PageContainerBasic(props: any) {
8492
<Paper sx={{ p: 2, width: '100%' }}>
8593
<PageContainer
8694
slots={{
87-
toolbar: PageToolbar,
95+
header: CustomPageHeader,
8896
}}
8997
>
9098
<Grid container spacing={1}>

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@mui/x-tree-view": "7.23.2",
5555
"@popperjs/core": "^2.11.8",
5656
"@react-spring/web": "^9.7.5",
57-
"@toolpad/core": "^0.10.0",
57+
"@toolpad/core": "^0.11.0",
5858
"autoprefixer": "^10.4.20",
5959
"autosuggest-highlight": "^3.3.4",
6060
"babel-plugin-module-resolver": "^5.0.2",

0 commit comments

Comments
 (0)