-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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' of https://github.com/mui/material-ui into codemo…
…d/pigment-styled
- Loading branch information
Showing
23 changed files
with
609 additions
and
10 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
88 changes: 88 additions & 0 deletions
88
docs/data/system/getting-started/usage/ContainerQueries.js
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,88 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
|
||
export default function ContainerQueries() { | ||
return ( | ||
<Box | ||
sx={{ | ||
overflow: 'auto', | ||
resize: 'horizontal', | ||
width: 400, | ||
maxWidth: '80%', | ||
containerType: 'inline-size', | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
flexDirection: { xs: 'column', '@350': 'row' }, | ||
bgcolor: 'background.default', | ||
border: '1px solid', | ||
borderColor: 'divider', | ||
borderRadius: 2, | ||
overflow: 'clip', | ||
}} | ||
> | ||
<Box | ||
component="img" | ||
sx={{ | ||
alignSelf: 'stretch', | ||
aspectRatio: '16 / 9', | ||
objectFit: 'cover', | ||
width: '100%', | ||
maxWidth: { '@350': '36%', '@500': 240 }, | ||
}} | ||
alt="The house from the offer." | ||
src="https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&w=350&dpr=2" | ||
/> | ||
<Box | ||
sx={{ | ||
p: { xs: 2, '@500': 3 }, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 1, | ||
}} | ||
> | ||
<div> | ||
<Box | ||
component="span" | ||
sx={{ fontSize: '0.875rem', color: 'text.secondary' }} | ||
> | ||
123 Main St, Phoenix AZ | ||
</Box> | ||
<Box | ||
sx={{ | ||
color: 'primary.main', | ||
fontSize: '1.125rem', | ||
fontWeight: 'bold', | ||
}} | ||
> | ||
$280,000 — $310,000 | ||
</Box> | ||
</div> | ||
<Box | ||
sx={{ | ||
width: 'fit-content', | ||
py: 0.5, | ||
px: 1, | ||
backgroundColor: 'rgba(46, 125, 50, 0.1)', | ||
borderRadius: 10, | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: 0.5, | ||
border: '1px solid', | ||
borderColor: 'rgba(46, 125, 50, 0.1)', | ||
fontSize: '0.7rem', | ||
fontWeight: 'bold', | ||
letterSpacing: '.05rem', | ||
textTransform: 'uppercase', | ||
color: 'success.main', | ||
}} | ||
> | ||
Confidence score: 85% | ||
</Box> | ||
</Box> | ||
</Box> | ||
</Box> | ||
); | ||
} |
88 changes: 88 additions & 0 deletions
88
docs/data/system/getting-started/usage/ContainerQueries.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,88 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
|
||
export default function ContainerQueries() { | ||
return ( | ||
<Box | ||
sx={{ | ||
overflow: 'auto', | ||
resize: 'horizontal', | ||
width: 400, | ||
maxWidth: '80%', | ||
containerType: 'inline-size', | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
flexDirection: { xs: 'column', '@350': 'row' }, | ||
bgcolor: 'background.default', | ||
border: '1px solid', | ||
borderColor: 'divider', | ||
borderRadius: 2, | ||
overflow: 'clip', | ||
}} | ||
> | ||
<Box | ||
component="img" | ||
sx={{ | ||
alignSelf: 'stretch', | ||
aspectRatio: '16 / 9', | ||
objectFit: 'cover', | ||
width: '100%', | ||
maxWidth: { '@350': '36%', '@500': 240 }, | ||
}} | ||
alt="The house from the offer." | ||
src="https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&w=350&dpr=2" | ||
/> | ||
<Box | ||
sx={{ | ||
p: { xs: 2, '@500': 3 }, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 1, | ||
}} | ||
> | ||
<div> | ||
<Box | ||
component="span" | ||
sx={{ fontSize: '0.875rem', color: 'text.secondary' }} | ||
> | ||
123 Main St, Phoenix AZ | ||
</Box> | ||
<Box | ||
sx={{ | ||
color: 'primary.main', | ||
fontSize: '1.125rem', | ||
fontWeight: 'bold', | ||
}} | ||
> | ||
$280,000 — $310,000 | ||
</Box> | ||
</div> | ||
<Box | ||
sx={{ | ||
width: 'fit-content', | ||
py: 0.5, | ||
px: 1, | ||
backgroundColor: 'rgba(46, 125, 50, 0.1)', | ||
borderRadius: 10, | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: 0.5, | ||
border: '1px solid', | ||
borderColor: 'rgba(46, 125, 50, 0.1)', | ||
fontSize: '0.7rem', | ||
fontWeight: 'bold', | ||
letterSpacing: '.05rem', | ||
textTransform: 'uppercase', | ||
color: 'success.main', | ||
}} | ||
> | ||
Confidence score: 85% | ||
</Box> | ||
</Box> | ||
</Box> | ||
</Box> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default class MuiError { | ||
constructor(message: string); | ||
constructor(message: string, ...args: string[]); | ||
} |
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
Oops, something went wrong.