-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into modal-event-handlers
- Loading branch information
Showing
54 changed files
with
320 additions
and
129 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
51 changes: 51 additions & 0 deletions
51
docs/data/material/components/breadcrumbs/CondensedWithMenu.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,51 @@ | ||
import * as React from 'react'; | ||
import Breadcrumbs from '@mui/material/Breadcrumbs'; | ||
import Link from '@mui/material/Link'; | ||
import Menu from '@mui/material/Menu'; | ||
import MenuItem from '@mui/material/MenuItem'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import MoreHorizIcon from '@mui/icons-material/MoreHoriz'; | ||
|
||
export default function CondensedWithMenu() { | ||
const [anchorEl, setAnchorEl] = React.useState(null); | ||
const open = Boolean(anchorEl); | ||
|
||
const handleClick = (event) => { | ||
if (event) { | ||
setAnchorEl(event.currentTarget); | ||
} | ||
}; | ||
|
||
const handleClose = () => { | ||
setAnchorEl(null); | ||
}; | ||
|
||
return ( | ||
<React.Fragment> | ||
<Menu | ||
anchorEl={anchorEl} | ||
open={open} | ||
onClose={handleClose} | ||
aria-labelledby="with-menu-demo-breadcrumbs" | ||
> | ||
<MenuItem onClick={handleClose}>Breadcrumb 2</MenuItem> | ||
<MenuItem onClick={handleClose}>Breadcrumb 3</MenuItem> | ||
<MenuItem onClick={handleClose}>Breadcrumb 4</MenuItem> | ||
</Menu> | ||
<Breadcrumbs aria-label="breadcrumbs"> | ||
<Link color="primary" href="#condensed-with-menu"> | ||
Breadcrumb 1 | ||
</Link> | ||
<IconButton color="primary" size="small" onClick={handleClick}> | ||
<MoreHorizIcon /> | ||
</IconButton> | ||
<Link color="primary" href="#condensed-with-menu"> | ||
Breadcrumb 5 | ||
</Link> | ||
<Link color="primary" href="#condensed-with-menu"> | ||
Breadcrumb 6 | ||
</Link> | ||
</Breadcrumbs> | ||
</React.Fragment> | ||
); | ||
} |
51 changes: 51 additions & 0 deletions
51
docs/data/material/components/breadcrumbs/CondensedWithMenu.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,51 @@ | ||
import * as React from 'react'; | ||
import Breadcrumbs from '@mui/material/Breadcrumbs'; | ||
import Link from '@mui/material/Link'; | ||
import Menu from '@mui/material/Menu'; | ||
import MenuItem from '@mui/material/MenuItem'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import MoreHorizIcon from '@mui/icons-material/MoreHoriz'; | ||
|
||
export default function CondensedWithMenu() { | ||
const [anchorEl, setAnchorEl] = React.useState<HTMLButtonElement | null>(null); | ||
const open = Boolean(anchorEl); | ||
|
||
const handleClick = (event: React.MouseEvent<HTMLButtonElement> | null) => { | ||
if (event) { | ||
setAnchorEl(event.currentTarget); | ||
} | ||
}; | ||
|
||
const handleClose = () => { | ||
setAnchorEl(null); | ||
}; | ||
|
||
return ( | ||
<React.Fragment> | ||
<Menu | ||
anchorEl={anchorEl} | ||
open={open} | ||
onClose={handleClose} | ||
aria-labelledby="with-menu-demo-breadcrumbs" | ||
> | ||
<MenuItem onClick={handleClose}>Breadcrumb 2</MenuItem> | ||
<MenuItem onClick={handleClose}>Breadcrumb 3</MenuItem> | ||
<MenuItem onClick={handleClose}>Breadcrumb 4</MenuItem> | ||
</Menu> | ||
<Breadcrumbs aria-label="breadcrumbs"> | ||
<Link color="primary" href="#condensed-with-menu"> | ||
Breadcrumb 1 | ||
</Link> | ||
<IconButton color="primary" size="small" onClick={handleClick}> | ||
<MoreHorizIcon /> | ||
</IconButton> | ||
<Link color="primary" href="#condensed-with-menu"> | ||
Breadcrumb 5 | ||
</Link> | ||
<Link color="primary" href="#condensed-with-menu"> | ||
Breadcrumb 6 | ||
</Link> | ||
</Breadcrumbs> | ||
</React.Fragment> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as React from 'react'; | ||
import Stack from '@mui/material/Stack'; | ||
import CircularProgress from '@mui/material/CircularProgress'; | ||
|
||
export default function CircularSize() { | ||
return ( | ||
<Stack spacing={2} direction="row" alignItems="center"> | ||
<CircularProgress size="30px" /> | ||
<CircularProgress size={40} /> | ||
<CircularProgress size="3rem" /> | ||
</Stack> | ||
); | ||
} |
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,13 @@ | ||
import * as React from 'react'; | ||
import Stack from '@mui/material/Stack'; | ||
import CircularProgress from '@mui/material/CircularProgress'; | ||
|
||
export default function CircularSize() { | ||
return ( | ||
<Stack spacing={2} direction="row" alignItems="center"> | ||
<CircularProgress size="30px" /> | ||
<CircularProgress size={40} /> | ||
<CircularProgress size="3rem" /> | ||
</Stack> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
docs/data/material/components/progress/CircularSize.tsx.preview
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,3 @@ | ||
<CircularProgress size="30px" /> | ||
<CircularProgress size={40} /> | ||
<CircularProgress size="3rem" /> |
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
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
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.