-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into mui-utils-ie-11-removal
- Loading branch information
Showing
350 changed files
with
5,996 additions
and
3,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
apps/pigment-css-next-app/src/app/material-ui/react-container/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import Container from '@mui/material/PigmentContainer'; | ||
|
||
export default function ContainerPage() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Fixed Container</h2> | ||
<div className="demo-container"> | ||
<Container fixed> | ||
<Box sx={{ bgcolor: '#cfe8fc', height: '30vh' }} /> | ||
</Container> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Simple Container</h2> | ||
<div className="demo-container"> | ||
<Container maxWidth="sm"> | ||
<Box sx={{ bgcolor: '#cfe8fc', height: '30vh' }} /> | ||
</Container> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
24 changes: 24 additions & 0 deletions
24
apps/pigment-css-next-app/src/app/material-ui/react-css-baseline/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import CssBaseline from '@mui/material/CssBaseline'; | ||
import ScopedCssBaseline from '@mui/material/ScopedCssBaseline'; | ||
|
||
export default function CssBaselinePage() { | ||
return ( | ||
<React.Fragment> | ||
<CssBaseline /> | ||
<section> | ||
<h2> CSS Baseline</h2> | ||
<div className="demo-container"> | ||
<p>Hello world</p> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Positioned Popper</h2> | ||
<div className="demo-container"> | ||
<ScopedCssBaseline>Hello world</ScopedCssBaseline> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
73 changes: 73 additions & 0 deletions
73
apps/pigment-css-next-app/src/app/material-ui/react-grid/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import Paper from '@mui/material/Paper'; | ||
import Grid from '@mui/material/PigmentGrid'; | ||
import { styled } from '@pigment-css/react'; | ||
|
||
const Item = styled(Paper)(({ theme }) => ({ | ||
backgroundColor: '#fff', | ||
...theme.typography.body2, | ||
padding: theme.spacing(1), | ||
textAlign: 'center', | ||
color: theme.palette.text.secondary, | ||
...theme.applyStyles('dark', { | ||
backgroundColor: '#1A2027', | ||
}), | ||
})); | ||
|
||
export default function GridPage() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Basic Grid</h2> | ||
<div className="demo-container"> | ||
<Box sx={{ flexGrow: 1 }}> | ||
<Grid container spacing={2}> | ||
<Grid size={{ xs: 8 }}> | ||
<Item>xs=8</Item> | ||
</Grid> | ||
<Grid size={{ xs: 4 }}> | ||
<Item>xs=4</Item> | ||
</Grid> | ||
<Grid size={{ xs: 4 }}> | ||
<Item>xs=4</Item> | ||
</Grid> | ||
<Grid size={{ xs: 8 }}> | ||
<Item>xs=8</Item> | ||
</Grid> | ||
</Grid> | ||
</Box> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Columns Grid</h2> | ||
<div className="demo-container"> | ||
<Box sx={{ flexGrow: 1 }}> | ||
<Grid container spacing={2} columns={16}> | ||
<Grid size={{ xs: 8 }}> | ||
<Item>xs=8</Item> | ||
</Grid> | ||
<Grid size={{ xs: 8 }}> | ||
<Item>xs=8</Item> | ||
</Grid> | ||
</Grid> | ||
</Box> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Responsive Grid</h2> | ||
<div className="demo-container"> | ||
<Box sx={{ flexGrow: 1 }}> | ||
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}> | ||
{Array.from(Array(6)).map((_, index) => ( | ||
<Grid size={{ xs: 2, sm: 4, md: 4, lg: 3 }} key={index}> | ||
<Item>xs=2</Item> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Box> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
Oops, something went wrong.