path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/material-ui/src/test-utils/testRef.js
allanalexandre/material-ui
import React from 'react'; import { assert } from 'chai'; function assertDOMNode(node) { // duck typing a DOM node assert.ok(node.nodeName); } /** * Utility method to make assertions about the ref on an element * @param {React.ReactElement} element - The element should have a component wrapped * in withStyles as the root * @param {function} mount - Should be returnvalue of createMount * @param {function} onRef - Callback, first arg is the ref. * Assert that the ref is a DOM node by default */ export default function testRef(element, mount, onRef = assertDOMNode) { const ref = React.createRef(); const wrapper = mount(<React.Fragment>{React.cloneElement(element, { ref })}</React.Fragment>); onRef(ref.current, wrapper); }
packages/material-ui-icons/src/ClosedCaptionOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z" /><path d="M7 15h3c.55 0 1-.45 1-1v-1H9.5v.5h-2v-3h2v.5H11v-1c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zM14 15h3c.55 0 1-.45 1-1v-1h-1.5v.5h-2v-3h2v.5H18v-1c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1z" /></React.Fragment> , 'ClosedCaptionOutlined');
pages/components/switches.js
allanalexandre/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/components/switches', false, /\.(md|js|tsx)$/); const reqSource = require.context( '!raw-loader!../../docs/src/pages/components/switches', false, /\.(js|tsx)$/, ); const reqPrefix = 'pages/components/switches'; function Page() { return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />; } export default Page;
packages/material-ui-icons/src/SwapHorizOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z" /></React.Fragment> , 'SwapHorizOutlined');
packages/material-ui-icons/src/SignalCellular0BarRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M4.41 22H20c1.1 0 2-.9 2-2V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71z" /></g></React.Fragment> , 'SignalCellular0BarRounded');
packages/material-ui-icons/src/SentimentSatisfiedRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><circle cx="15.5" cy="9.5" r="1.5" /><circle cx="8.5" cy="9.5" r="1.5" /><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /><path d="M16.41 13.89c-.35-.22-.82-.11-1.03.24-.74 1.17-2 1.87-3.38 1.87s-2.64-.7-3.38-1.88c-.22-.35-.68-.46-1.03-.24-.35.22-.46.68-.24 1.03C8.37 16.54 10.1 17.5 12 17.5s3.63-.97 4.65-2.58c.22-.35.11-.81-.24-1.03z" /></g></React.Fragment> , 'SentimentSatisfiedRounded');
packages/material-ui-icons/src/FlareOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z" /></g></React.Fragment> , 'FlareOutlined');
packages/material-ui-icons/src/AppsSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z" /></React.Fragment> , 'AppsSharp');
docs/src/pages/premium-themes/tweeper/components/molecules/CardContent.js
allanalexandre/material-ui
import React from 'react'; import clsx from 'clsx'; import MuiCardContent from '@material-ui/core/CardContent'; import { CARD_CONTENT } from '../../theme/core'; const CardContent = ({ className, ...props }) => ( <MuiCardContent className={clsx(CARD_CONTENT.root, className)} {...props} /> ); export default CardContent;
test/regressions/tests/TextField/TextFieldMultiline.js
allanalexandre/material-ui
import React from 'react'; import TextField from '@material-ui/core/TextField'; export default function TextFieldMultiline() { return <TextField label="Foo" multiline rows={4} value="Default text" />; }
packages/material-ui-icons/src/GifTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M11.5 9H13v6h-1.5V9zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1h3z" opacity=".87" /></g></React.Fragment> , 'GifTwoTone');
packages/material-ui-icons/src/TrendingDownSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6h-6z" /></g></React.Fragment> , 'TrendingDownSharp');
packages/material-ui-icons/src/DialpadRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" /></g></React.Fragment> , 'DialpadRounded');
packages/material-ui-icons/src/FavoriteTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16.5 5c-1.54 0-3.04.99-3.56 2.36h-1.87C10.54 5.99 9.04 5 7.5 5 5.5 5 4 6.5 4 8.5c0 2.89 3.14 5.74 7.9 10.05l.1.1.1-.1C16.86 14.24 20 11.39 20 8.5c0-2-1.5-3.5-3.5-3.5z" opacity=".3" /><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z" /></g></React.Fragment> , 'FavoriteTwoTone');
packages/material-ui-icons/src/GradeRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 17.27l5.17 3.12c.38.23.85-.11.75-.54l-1.37-5.88 4.56-3.95c.33-.29.16-.84-.29-.88l-6.01-.51-2.35-5.54c-.17-.41-.75-.41-.92 0L9.19 8.63l-6.01.51c-.44.04-.62.59-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54L12 17.27z" /></g></React.Fragment> , 'GradeRounded');
pages/getting-started/page-layout-examples/sticky-footer.js
allanalexandre/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import AppTheme from 'docs/src/modules/components/AppTheme'; import StickyFooter from 'docs/src/pages/getting-started/page-layout-examples/sticky-footer/StickyFooter'; function Page(props) { return ( <AppTheme title="Sticky footer page layout example - Material-UI" description={props.t('stickyFooterDescr')} > <StickyFooter /> </AppTheme> ); } Page.propTypes = { t: PropTypes.func.isRequired, }; export default connect(state => ({ t: state.options.t }))(Page);
packages/material-ui-icons/src/BarChartRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M6.4 9.2h.2c.77 0 1.4.63 1.4 1.4v7c0 .77-.63 1.4-1.4 1.4h-.2c-.77 0-1.4-.63-1.4-1.4v-7c0-.77.63-1.4 1.4-1.4zM12 5c.77 0 1.4.63 1.4 1.4v11.2c0 .77-.63 1.4-1.4 1.4-.77 0-1.4-.63-1.4-1.4V6.4c0-.77.63-1.4 1.4-1.4zm5.6 8c.77 0 1.4.63 1.4 1.4v3.2c0 .77-.63 1.4-1.4 1.4-.77 0-1.4-.63-1.4-1.4v-3.2c0-.77.63-1.4 1.4-1.4z" /></g></React.Fragment> , 'BarChartRounded');
packages/material-ui-icons/src/Sms.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'Sms');
pages/guides/right-to-left.js
allanalexandre/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/guides/right-to-left', false, /\.(md|js|tsx)$/); const reqSource = require.context( '!raw-loader!../../docs/src/pages/guides/right-to-left', false, /\.(js|tsx)$/, ); const reqPrefix = 'pages/guides/right-to-left'; function Page() { return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />; } export default Page;
packages/material-ui-icons/src/ChangeHistory.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z" /><path fill="none" d="M0 0h24v24H0V0z" /></React.Fragment> , 'ChangeHistory');
packages/material-ui-icons/src/NetworkLockedSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z" /><g><path d="M22 16v-.36c0-1.31-.94-2.5-2.24-2.63-1.5-.15-2.76 1.02-2.76 2.49v.5h-1v6h7v-6h-1zm-1 0h-3v-.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v.5z" /><path d="M19.5 11c.15 0 .3.01.46.02.01 0 .03.01.04.01V1L1 20h13v-6h1.26c.22-.63.58-1.2 1.06-1.68.85-.85 1.98-1.32 3.18-1.32z" /></g></React.Fragment> , 'NetworkLockedSharp');
packages/material-ui-icons/src/VolumeOff.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'VolumeOff');
docs/src/pages/system/typography/FontSize.js
allanalexandre/material-ui
import React from 'react'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; function FontSize() { return ( <Typography component="div"> <Box fontSize="fontSize" m={1}> Default </Box> <Box fontSize="h6.fontSize" m={1}> h6.fontSize </Box> <Box fontSize={16} m={1}> 16px </Box> </Typography> ); } export default FontSize;
packages/material-ui/src/ExpansionPanelDetails/ExpansionPanelDetails.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; export const styles = { /* Styles applied to the root element. */ root: { display: 'flex', padding: '8px 24px 24px', }, }; const ExpansionPanelDetails = React.forwardRef(function ExpansionPanelDetails(props, ref) { const { classes, className, ...other } = props; return <div className={clsx(classes.root, className)} ref={ref} {...other} />; }); ExpansionPanelDetails.propTypes = { /** * The content of the expansion panel details. */ children: PropTypes.node.isRequired, /** * Override or extend the styles applied to the component. * See [CSS API](#css) below for more details. */ classes: PropTypes.object.isRequired, /** * @ignore */ className: PropTypes.string, }; export default withStyles(styles, { name: 'MuiExpansionPanelDetails' })(ExpansionPanelDetails);
packages/material-ui-icons/src/VerticalAlignCenterTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M11 1v4H8l4 4 4-4h-3V1zM4 11h16v2H4zM8 19h3v4h2v-4h3l-4-4z" /></g></React.Fragment> , 'VerticalAlignCenterTwoTone');
packages/material-ui-icons/src/AddAlarmOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z" /></g></React.Fragment> , 'AddAlarmOutlined');
packages/material-ui-styles/src/useTheme/ThemeContext.js
allanalexandre/material-ui
import React from 'react'; const ThemeContext = React.createContext(null); export default ThemeContext;
packages/material-ui-icons/src/Crop169Outlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z" /></g></React.Fragment> , 'Crop169Outlined');
packages/material-ui-icons/src/SyncOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M.01 0h24v24h-24V0z" /><g><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" /></g></React.Fragment> , 'SyncOutlined');
packages/material-ui-icons/src/Image.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" /></React.Fragment> , 'Image');
docs/src/pages/premium-themes/paperbase/Content.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import Tooltip from '@material-ui/core/Tooltip'; import IconButton from '@material-ui/core/IconButton'; import { withStyles } from '@material-ui/core/styles'; import SearchIcon from '@material-ui/icons/Search'; import RefreshIcon from '@material-ui/icons/Refresh'; const styles = theme => ({ paper: { maxWidth: 936, margin: 'auto', overflow: 'hidden', }, searchBar: { borderBottom: '1px solid rgba(0, 0, 0, 0.12)', }, searchInput: { fontSize: theme.typography.fontSize, }, block: { display: 'block', }, addUser: { marginRight: theme.spacing(1), }, contentWrapper: { margin: '40px 16px', }, }); function Content(props) { const { classes } = props; return ( <Paper className={classes.paper}> <AppBar className={classes.searchBar} position="static" color="default" elevation={0}> <Toolbar> <Grid container spacing={2} alignItems="center"> <Grid item> <SearchIcon className={classes.block} color="inherit" /> </Grid> <Grid item xs> <TextField fullWidth placeholder="Search by email address, phone number, or user UID" InputProps={{ disableUnderline: true, className: classes.searchInput, }} /> </Grid> <Grid item> <Button variant="contained" color="primary" className={classes.addUser}> Add user </Button> <Tooltip title="Reload"> <IconButton> <RefreshIcon className={classes.block} color="inherit" /> </IconButton> </Tooltip> </Grid> </Grid> </Toolbar> </AppBar> <div className={classes.contentWrapper}> <Typography color="textSecondary" align="center"> No users for this project yet </Typography> </div> </Paper> ); } Content.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(Content);
docs/src/pages/premium-themes/tweeper/components/tweeper/PopularNow.js
allanalexandre/material-ui
import React from 'react'; import Divider from '@material-ui/core/Divider/Divider'; import List from '@material-ui/core/List/List'; import ListItem from '@material-ui/core/ListItem/ListItem'; import ListItemText from '@material-ui/core/ListItemText/ListItemText'; import ListSubheader from '@material-ui/core/ListSubheader/ListSubheader'; import atoms from '../atoms'; const { Typography, Icon } = atoms; const twitterList2 = [ { primary: '#FromMateToMate', secondary: 'Huawei Mate 20 Series', tertiary: 'PR by Huawei Mobile TH', }, { primary: '#xx_mino_finance', secondary: '24.1K Tweet', }, { primary: '# MMA 2018', secondary: '357K Tweet', }, { primary: 'George HW Bush', secondary: '328K Tweet', }, ]; function PopularNow() { return ( <List subheader={<ListSubheader>Popular Now</ListSubheader>}> {twitterList2.map(({ primary, secondary, tertiary }) => ( <React.Fragment key={primary}> <ListItem button> <ListItemText> <Typography primary>{primary}</Typography> <Typography secondary light={!tertiary}> {secondary} </Typography> {tertiary && ( <Typography tertiary light> <Icon>call_made</Icon> {tertiary} </Typography> )} </ListItemText> </ListItem> <Divider /> </React.Fragment> ))} <ListItem button> <ListItemText> <Typography link>Show More</Typography> </ListItemText> </ListItem> </List> ); } export default PopularNow;
packages/material-ui-icons/src/Filter2Rounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M2 5c-.55 0-1 .45-1 1v15c0 1.1.9 2 2 2h15c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1-.45-1-1V6c0-.55-.45-1-1-1zm19-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-1 16H8c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1zm-4-4h-3v-2h2c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3c-.55 0-1 .45-1 1s.45 1 1 1h3v2h-2c-1.1 0-2 .9-2 2v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1s-.45-1-1-1z" /></g></React.Fragment> , 'Filter2Rounded');
packages/material-ui-icons/src/AirlineSeatReclineExtraSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H6.5L4 7H2l2.85 14H16v-2zm.23-4h-4.88l-1.03-4.1c1.58.89 3.28 1.54 5.15 1.22V9.99c-1.63.31-3.44-.27-4.69-1.25L9.14 7.47c-.23-.18-.49-.3-.76-.38-.32-.09-.66-.12-.99-.06h-.02c-1.23.22-2.05 1.39-1.84 2.61L7.44 18h9.24l3.82 3 1.5-1.5-5.77-4.5z" /></g></React.Fragment> , 'AirlineSeatReclineExtraSharp');
docs/src/pages/components/speed-dial/SpeedDials.js
allanalexandre/material-ui
import clsx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormLabel from '@material-ui/core/FormLabel'; import Radio from '@material-ui/core/Radio'; import RadioGroup from '@material-ui/core/RadioGroup'; import Switch from '@material-ui/core/Switch'; import { capitalize } from '@material-ui/core/utils/helpers'; import SpeedDial from '@material-ui/lab/SpeedDial'; import SpeedDialIcon from '@material-ui/lab/SpeedDialIcon'; import SpeedDialAction from '@material-ui/lab/SpeedDialAction'; import FileCopyIcon from '@material-ui/icons/FileCopyOutlined'; import SaveIcon from '@material-ui/icons/Save'; import PrintIcon from '@material-ui/icons/Print'; import ShareIcon from '@material-ui/icons/Share'; import DeleteIcon from '@material-ui/icons/Delete'; const styles = theme => ({ root: { width: '100%', }, controls: { margin: theme.spacing(3), }, exampleWrapper: { position: 'relative', height: 380, }, radioGroup: { margin: theme.spacing(1, 0), }, speedDial: { position: 'absolute', '&$directionUp, &$directionLeft': { bottom: theme.spacing(2), right: theme.spacing(3), }, '&$directionDown, &$directionRight': { top: theme.spacing(2), left: theme.spacing(3), }, }, directionUp: {}, directionRight: {}, directionDown: {}, directionLeft: {}, }); const actions = [ { icon: <FileCopyIcon />, name: 'Copy' }, { icon: <SaveIcon />, name: 'Save' }, { icon: <PrintIcon />, name: 'Print' }, { icon: <ShareIcon />, name: 'Share' }, { icon: <DeleteIcon />, name: 'Delete' }, ]; class SpeedDials extends React.Component { state = { direction: 'up', open: false, hidden: false, }; handleClick = () => { this.setState(state => ({ open: !state.open, })); }; handleDirectionChange = (event, value) => { this.setState({ direction: value, }); }; handleHiddenChange = (event, hidden) => { this.setState(state => ({ hidden, // hidden implies !open open: hidden ? false : state.open, })); }; handleClose = () => { this.setState({ open: false }); }; handleOpen = () => { this.setState({ open: true }); }; render() { const { classes } = this.props; const { direction, hidden, open } = this.state; const speedDialClassName = clsx( classes.speedDial, classes[`direction${capitalize(direction)}`], ); return ( <div className={classes.root}> <div className={classes.controls}> <FormControlLabel control={ <Switch checked={hidden} onChange={this.handleHiddenChange} value="hidden" color="primary" /> } label="Hidden" /> <FormLabel component="legend">Direction</FormLabel> <RadioGroup aria-label="Direction" name="direction" className={classes.radioGroup} value={direction} onChange={this.handleDirectionChange} row > <FormControlLabel value="up" control={<Radio />} label="Up" /> <FormControlLabel value="right" control={<Radio />} label="Right" /> <FormControlLabel value="down" control={<Radio />} label="Down" /> <FormControlLabel value="left" control={<Radio />} label="Left" /> </RadioGroup> </div> <div className={classes.exampleWrapper}> <SpeedDial ariaLabel="SpeedDial example" className={speedDialClassName} hidden={hidden} icon={<SpeedDialIcon />} onBlur={this.handleClose} onClick={this.handleClick} onClose={this.handleClose} onFocus={this.handleOpen} onMouseEnter={this.handleOpen} onMouseLeave={this.handleClose} open={open} direction={direction} > {actions.map(action => ( <SpeedDialAction key={action.name} icon={action.icon} tooltipTitle={action.name} onClick={this.handleClick} /> ))} </SpeedDial> </div> </div> ); } } SpeedDials.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(SpeedDials);
docs/src/pages/components/progress/CircularDeterminate.js
allanalexandre/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import CircularProgress from '@material-ui/core/CircularProgress'; const useStyles = makeStyles(theme => ({ progress: { margin: theme.spacing(2), }, })); function CircularDeterminate() { const classes = useStyles(); const [progress, setProgress] = React.useState(0); React.useEffect(() => { function tick() { // reset when reaching 100% setProgress(oldProgress => (oldProgress >= 100 ? 0 : oldProgress + 1)); } const timer = setInterval(tick, 20); return () => { clearInterval(timer); }; }, []); return ( <div> <CircularProgress className={classes.progress} variant="determinate" value={progress} /> <CircularProgress className={classes.progress} variant="determinate" value={progress} color="secondary" /> </div> ); } export default CircularDeterminate;
docs/src/pages/premium-themes/instapaper/components/molecules/List.js
allanalexandre/material-ui
import React from 'react'; import clsx from 'clsx'; import MuiList from '@material-ui/core/List'; import { LIST } from '../../theme/core'; const List = ({ className, ...props }) => ( <MuiList className={clsx(LIST.root, className)} {...props} /> ); export default List;
packages/material-ui-icons/src/ScreenLockRotationRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M22.3 13.77l-1.86-1.87a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l1.51 1.52-5.66 5.66L3.56 9.17l5.66-5.66 1.4 1.4c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-1.75-1.75c-.59-.59-1.54-.59-2.12 0L1.8 8.11c-.59.59-.59 1.54 0 2.12l12.02 12.02c.59.59 1.54.59 2.12 0l6.36-6.36c.59-.59.59-1.54 0-2.12zM15.05 10h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1v-.5c0-1.38-1.12-2.5-2.5-2.5s-2.5 1.12-2.5 2.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zm.8-6.5c0-.94.76-1.7 1.7-1.7s1.7.76 1.7 1.7V4h-3.4v-.5zM8.85 20.15l-1.33 1.33c-3.09-1.46-5.34-4.37-5.89-7.86-.06-.41-.44-.69-.86-.62-.41.06-.69.45-.62.86.6 3.81 2.96 7.01 6.24 8.75 1.57.83 3.55 1.43 5.8 1.38.18 0 .26-.22.14-.35l-3.48-3.49z" /></g></React.Fragment> , 'ScreenLockRotationRounded');
packages/material-ui-icons/src/Watch.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" opacity=".1" /><path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.69-6 6-6s6 2.69 6 6-2.69 6-6 6-6-2.69-6-6z" /></React.Fragment> , 'Watch');
packages/material-ui-icons/src/ChevronRightRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z" /></React.Fragment> , 'ChevronRightRounded');
packages/material-ui-icons/src/Looks.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-11z" /></React.Fragment> , 'Looks');
packages/material-ui-icons/src/VpnLockSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 13c0 2.08-.8 3.97-2.1 5.39V17H14v-4H7v-2h3V8h4V3.46c-.95-.3-1.95-.46-3-.46C5.48 3 1 7.48 1 13s4.48 10 10 10 10-4.48 10-10c0-.34-.02-.67-.05-1h-2.03c.04.33.08.66.08 1zm-9 7.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L8 16v3h2v1.93z" /><path d="M22 4v-.36c0-1.31-.94-2.5-2.24-2.63C18.26.86 17 2.03 17 3.5V4h-1v6h7V4h-1zm-1 0h-3v-.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V4z" /></g></React.Fragment> , 'VpnLockSharp');
docs/src/pages/premium-themes/tweeper/components/tweeper/AccordingWhom.js
allanalexandre/material-ui
import React from 'react'; import Button from '@material-ui/core/Button/Button'; import Divider from '@material-ui/core/Divider/Divider'; import List from '@material-ui/core/List/List'; import ListItem from '@material-ui/core/ListItem/ListItem'; import ListItemText from '@material-ui/core/ListItemText/ListItemText'; import ListSubheader from '@material-ui/core/ListSubheader/ListSubheader'; import atoms from '../atoms'; const { Avatar, Typography } = atoms; const twitterList = [ { image: 'https://randomuser.me/api/portraits/women/1.jpg', primary: 'Never stop thinking', secondary: '@never_stop', }, { image: 'https://randomuser.me/api/portraits/men/1.jpg', primary: 'React Geek', secondary: '@react', }, { image: 'https://randomuser.me/api/portraits/women/2.jpg', primary: 'Thailand', secondary: '@wonderful_th', }, ]; function AccordingWhom() { return ( <List subheader={<ListSubheader>According to whom</ListSubheader>}> {twitterList.map(({ image, primary, secondary }) => ( <React.Fragment key={primary}> <ListItem button> <Avatar alt="Avatar" link src={image} /> <ListItemText primary={primary} secondary={secondary} /> <Button variant="outlined" color="primary"> Follow </Button> </ListItem> <Divider /> </React.Fragment> ))} <ListItem button> <ListItemText> <Typography link>Show More</Typography> </ListItemText> </ListItem> </List> ); } export default AccordingWhom;
packages/material-ui-icons/src/ShowChartTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M13.5 13.48l-4-4L2 16.99l1.5 1.5 6-6.01 4 4L22 6.92l-1.41-1.41z" /></g></React.Fragment> , 'ShowChartTwoTone');
packages/material-ui-icons/src/PersonPin.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9zm0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'PersonPin');
packages/material-ui-icons/src/ExitToAppOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /></g></React.Fragment> , 'ExitToAppOutlined');
packages/material-ui-icons/src/BrightnessLowOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zm-2 5.79V18h-3.52L12 20.48 9.52 18H6v-3.52L3.52 12 6 9.52V6h3.52L12 3.52 14.48 6H18v3.52L20.48 12 18 14.48z" /><path d="M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z" /></g></React.Fragment> , 'BrightnessLowOutlined');
packages/material-ui-icons/src/LocalGroceryStoreTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M8.53 11h7.02l2.76-5H6.16z" opacity=".3" /><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM17 18c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zM15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6z" /></React.Fragment> , 'LocalGroceryStoreTwoTone');
docs/src/pages/components/use-media-query/ThemeHelper.js
allanalexandre/material-ui
import React from 'react'; import { createMuiTheme, useTheme } from '@material-ui/core/styles'; import { ThemeProvider } from '@material-ui/styles'; import useMediaQuery from '@material-ui/core/useMediaQuery'; function MyComponent() { const theme = useTheme(); const matches = useMediaQuery(theme.breakpoints.up('sm')); return <span>{`theme.breakpoints.up('sm') matches: ${matches}`}</span>; } const theme = createMuiTheme(); export default function ThemeHelper() { return ( <ThemeProvider theme={theme}> <MyComponent /> </ThemeProvider> ); }
docs/src/pages/components/steppers/HorizontalNonLinearStepper.js
allanalexandre/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepButton from '@material-ui/core/StepButton'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; const useStyles = makeStyles(theme => ({ root: { width: '90%', }, button: { marginRight: theme.spacing(1), }, completed: { display: 'inline-block', }, instructions: { marginTop: theme.spacing(1), marginBottom: theme.spacing(1), }, })); function getSteps() { return ['Select campaign settings', 'Create an ad group', 'Create an ad']; } function getStepContent(step) { switch (step) { case 0: return 'Step 1: Select campaign settings...'; case 1: return 'Step 2: What is an ad group anyways?'; case 2: return 'Step 3: This is the bit I really care about!'; default: return 'Unknown step'; } } function HorizontalNonLinearStepper() { const classes = useStyles(); const [activeStep, setActiveStep] = React.useState(0); const [completed, setCompleted] = React.useState({}); const steps = getSteps(); function totalSteps() { return steps.length; } function completedSteps() { return Object.keys(completed).length; } function isLastStep() { return activeStep === totalSteps() - 1; } function allStepsCompleted() { return completedSteps() === totalSteps(); } function handleNext() { const newActiveStep = isLastStep() && !allStepsCompleted() ? // It's the last step, but not all steps have been completed, // find the first step that has been completed steps.findIndex((step, i) => !(i in completed)) : activeStep + 1; setActiveStep(newActiveStep); } function handleBack() { setActiveStep(prevActiveStep => prevActiveStep - 1); } const handleStep = step => () => { setActiveStep(step); }; function handleComplete() { const newCompleted = completed; newCompleted[activeStep] = true; setCompleted(newCompleted); handleNext(); } function handleReset() { setActiveStep(0); setCompleted({}); } return ( <div className={classes.root}> <Stepper nonLinear activeStep={activeStep}> {steps.map((label, index) => ( <Step key={label}> <StepButton onClick={handleStep(index)} completed={completed[index]}> {label} </StepButton> </Step> ))} </Stepper> <div> {allStepsCompleted() ? ( <div> <Typography className={classes.instructions}> All steps completed - you&apos;re finished </Typography> <Button onClick={handleReset}>Reset</Button> </div> ) : ( <div> <Typography className={classes.instructions}>{getStepContent(activeStep)}</Typography> <div> <Button disabled={activeStep === 0} onClick={handleBack} className={classes.button}> Back </Button> <Button variant="contained" color="primary" onClick={handleNext} className={classes.button} > Next </Button> {activeStep !== steps.length && (completed[activeStep] ? ( <Typography variant="caption" className={classes.completed}> Step {activeStep + 1} already completed </Typography> ) : ( <Button variant="contained" color="primary" onClick={handleComplete}> {completedSteps() === totalSteps() - 1 ? 'Finish' : 'Complete Step'} </Button> ))} </div> </div> )} </div> </div> ); } export default HorizontalNonLinearStepper;
packages/material-ui-icons/src/HotTubTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><circle cx="7" cy="6" r="2" /><path d="M17.42 7.21c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71l-.07-.07c-.57-.62-.82-1.41-.67-2.2L18 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06zM11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12H2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-8H11.15zM7 20H5v-6h2v6zm4 0H9v-6h2v6zm4 0h-2v-6h2v6zm4 0h-2v-6h2v6zM13.42 7.21c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71l-.07-.07c-.57-.62-.82-1.41-.67-2.2L14 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06z" /></React.Fragment> , 'HotTubTwoTone');
packages/material-ui-icons/src/Battery20.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h10V5.33z" /></React.Fragment> , 'Battery20');
packages/material-ui-icons/src/StorageTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z" /></g></React.Fragment> , 'StorageTwoTone');
packages/material-ui-icons/src/AirlineSeatLegroomNormal.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5z" /></React.Fragment> , 'AirlineSeatLegroomNormal');
packages/material-ui-icons/src/PlayCircleFilledWhiteSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z" /></React.Fragment> , 'PlayCircleFilledWhiteSharp');
packages/material-ui-icons/src/LocationOnTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 4C9.24 4 7 6.24 7 9c0 2.85 2.92 7.21 5 9.88 2.11-2.69 5-7 5-9.88 0-2.76-2.24-5-5-5zm0 7.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" opacity=".3" /><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z" /><circle cx="12" cy="9" r="2.5" /></g></React.Fragment> , 'LocationOnTwoTone');
packages/material-ui-icons/src/RepeatOneSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z" /></React.Fragment> , 'RepeatOneSharp');
packages/material-ui-icons/src/Subscriptions.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4l-6-3.27v6.53L16 16z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'Subscriptions');
packages/material-ui-icons/src/FormatListNumberedSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z" /></React.Fragment> , 'FormatListNumberedSharp');
packages/material-ui-icons/src/NatureTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12.17 4.17c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.25-5-5-5z" opacity=".3" /><path d="M19.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88h-.03c3.49-.4 6.2-3.36 6.2-6.95zm-7 5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.25 5-5 5z" /></g></React.Fragment> , 'NatureTwoTone');
packages/material-ui-icons/src/PlaylistAddTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M2 14h8v2H2zM2 10h12v2H2zM2 6h12v2H2z" /><path d="M18 10h-2v4h-4v2h4v4h2v-4h4v-2h-4z" /></React.Fragment> , 'PlaylistAddTwoTone');
packages/material-ui-icons/src/RestaurantRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M16 6v6c0 1.1.9 2 2 2h1v7c0 .55.45 1 1 1s1-.45 1-1V3.13c0-.65-.61-1.13-1.24-.98C17.6 2.68 16 4.51 16 6zM11 9H9V3c0-.55-.45-1-1-1s-1 .45-1 1v6H5V3c0-.55-.45-1-1-1s-1 .45-1 1v6c0 2.21 1.79 4 4 4v8c0 .55.45 1 1 1s1-.45 1-1v-8c2.21 0 4-1.79 4-4V3c0-.55-.45-1-1-1s-1 .45-1 1v6z" /></React.Fragment> , 'RestaurantRounded');
pages/customization/themes.js
allanalexandre/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/customization/themes', false, /\.(md|js|tsx)$/); const reqSource = require.context( '!raw-loader!../../docs/src/pages/customization/themes', false, /\.(js|tsx)$/, ); const reqPrefix = 'pages/customization/themes'; function Page() { return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />; } export default Page;
packages/material-ui-icons/src/ThumbDownAltTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" opacity=".87" /><g><path d="M3 12v2h8.77l-1.11 5.34L15 15V5H6z" opacity=".3" /><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.58-6.59c.37-.36.59-.86.59-1.41V5c0-1.1-.9-2-2-2zm0 12l-4.34 4.34L11.77 14H3v-2l3-7h9v10zM19 3h4v12h-4z" /></g></React.Fragment> , 'ThumbDownAltTwoTone');
packages/material-ui-icons/src/CastForEducationOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm10 1.09v2L14.5 15l3.5-1.91v-2L14.5 13 11 11.09zM14.5 6L9 9l5.5 3L20 9l-5.5-3z" /></g></React.Fragment> , 'CastForEducationOutlined');
packages/material-ui-icons/src/ExposurePlus2Sharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17s.41-.78.54-1.17c.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46s-.44-.81-.78-1.11c-.34-.31-.77-.54-1.26-.71-.51-.16-1.08-.24-1.72-.24-.69 0-1.31.11-1.85.32-.54.21-1 .51-1.36.88-.37.37-.65.8-.84 1.3-.18.47-.27.97-.28 1.5h2.14c.01-.31.05-.6.13-.87.09-.29.23-.54.4-.75.18-.21.41-.37.68-.49s.6-.18.96-.18c.31 0 .58.05.81.15s.43.25.59.43.28.4.37.65c.08.25.13.52.13.81 0 .22-.03.43-.08.65-.06.22-.15.45-.29.7-.14.25-.32.53-.56.83-.23.3-.52.65-.88 1.03l-4.17 4.55V18H22v-1.71h-5.95zM8 7H6v4H2v2h4v4h2v-4h4v-2H8V7z" /></g></React.Fragment> , 'ExposurePlus2Sharp');
packages/material-ui-icons/src/NetworkWifiRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0L23.64 7z" /><path d="M3.53 10.94l6.91 8.61c.8 1 2.32 1 3.12 0l6.91-8.61c-.43-.33-3.66-2.95-8.47-2.95s-8.04 2.62-8.47 2.95z" /></g></React.Fragment> , 'NetworkWifiRounded');
packages/material-ui-icons/src/GpsOff.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5 1.5c.5-.96.84-2.02.97-3.15H23v-2h-2.06zM3 4.27l2.04 2.04C3.97 7.62 3.25 9.23 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c1.77-.2 3.38-.91 4.69-1.98L19.73 21 21 19.73 4.27 3 3 4.27zm13.27 13.27C15.09 18.45 13.61 19 12 19c-3.87 0-7-3.13-7-7 0-1.61.55-3.09 1.46-4.27l9.81 9.81z" /></React.Fragment> , 'GpsOff');
packages/material-ui-icons/src/SettingsInputComponentOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v10c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16V6H5V2zM4 17c-.55 0-1-.45-1-1v-2h2v2c0 .55-.45 1-1 1zm-1-5V8h2v4H3zM13 2c0-.55-.45-1-1-1s-1 .45-1 1v4H9v10c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.42 2-1.52 2-2.82V6h-2V2zm-1 15c-.55 0-1-.45-1-1v-2h2v2c0 .55-.45 1-1 1zm-1-5V8h2v4h-2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v10c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.42 2-1.52 2-2.82V6h-2zm-1 11c-.55 0-1-.45-1-1v-2h2v2c0 .55-.45 1-1 1zm-1-5V8h2v4h-2z" /></React.Fragment> , 'SettingsInputComponentOutlined');
packages/material-ui-icons/src/PersonAddDisabledTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M9 18h5.87L13 16.13l-1.1.3C9.89 16.99 9.08 17.76 9 18zM17 8c0-1.1-.9-2-2-2-.99 0-1.81.72-1.97 1.67l2.31 2.31C16.27 9.82 17 8.99 17 8z" opacity=".3" /><path d="M14.48 11.95c.17.02.34.05.52.05 2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4c0 .18.03.35.05.52l3.43 3.43zM15 6c1.1 0 2 .9 2 2 0 .99-.73 1.82-1.67 1.97l-2.31-2.31C13.19 6.72 14.01 6 15 6zM16.69 14.16L22.53 20H23v-2c0-2.14-3.56-3.5-6.31-3.84zM0 3.12l4 4V10H1v2h3v3h2v-3h2.88l2.51 2.51C9.19 15.11 7 16.3 7 18v2h9.88l4 4 1.41-1.41L1.41 1.71 0 3.12zm13.01 13.01L14.88 18H9c.08-.24.88-1.01 2.91-1.57l1.1-.3zM6 9.12l.88.88H6v-.88z" /></g></React.Fragment> , 'PersonAddDisabledTwoTone');
packages/material-ui-icons/src/SchoolOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z" /></g></React.Fragment> , 'SchoolOutlined');
packages/material-ui-icons/src/SignalCellularNullOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z" /></g></React.Fragment> , 'SignalCellularNullOutlined');
packages/material-ui-icons/src/NotListedLocationOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 1C7.59 1 4 4.59 4 9c0 5.57 6.96 13.34 7.26 13.67l.74.82.74-.82C13.04 22.34 20 14.57 20 9c0-4.41-3.59-8-8-8zm0 19.47C9.82 17.86 6 12.54 6 9c0-3.31 2.69-6 6-6s6 2.69 6 6c0 3.83-4.25 9.36-6 11.47z" /><path d="M11.13 14h1.75v1.75h-1.75zM12 5c-1.93 0-3.5 1.57-3.5 3.5h1.75c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75c0 1.76-2.62 1.54-2.62 4.38h1.75c0-1.97 2.62-2.19 2.62-4.38C15.5 6.57 13.93 5 12 5z" /></React.Fragment> , 'NotListedLocationOutlined');
packages/material-ui-icons/src/IsoSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M21 3H3v18h18V3zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z" /></g></React.Fragment> , 'IsoSharp');
test/regressions/tests/ListSubheader/InsetListSubheader.js
allanalexandre/material-ui
import React from 'react'; import ListSubheader from '@material-ui/core/ListSubheader'; export default function InsetListSubheader() { return <ListSubheader inset>Title</ListSubheader>; }
packages/material-ui-icons/src/MovieCreationRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 4l1.82 3.64c.08.16-.04.36-.22.36h-1.98c-.38 0-.73-.21-.89-.55L15 4h-2l1.82 3.64c.08.16-.04.36-.22.36h-1.98c-.38 0-.73-.21-.89-.55L10 4H8l1.82 3.64c.08.16-.04.36-.22.36H7.62c-.38 0-.73-.21-.9-.55L5 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-.55-.45-1-1-1h-3z" /></g></React.Fragment> , 'MovieCreationRounded');
pages/customization/spacing.js
allanalexandre/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/customization/spacing', false, /\.(md|js|tsx)$/); const reqSource = require.context( '!raw-loader!../../docs/src/pages/customization/spacing', false, /\.(js|tsx)$/, ); const reqPrefix = 'pages/customization/spacing'; function Page() { return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />; } export default Page;
packages/material-ui-icons/src/MotorcycleTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M9.7 12.31l.25.69h.77l2-2H8.98c.3.39.54.83.72 1.31z" opacity=".3" /><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.77-4.56-4.97zM7.82 15C7.4 16.15 6.28 17 5 17c-1.63 0-3-1.37-3-3s1.37-3 3-3c1.28 0 2.4.85 2.82 2H5v2h2.82zm2.9-2h-.77l-.25-.69c-.18-.48-.42-.92-.72-1.31h3.74l-2 2zM19 17c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z" /></React.Fragment> , 'MotorcycleTwoTone');
packages/material-ui-icons/src/Timer10Sharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M-.01 7.72V9.4l3-1V18h2V6h-.25L-.01 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-.16-.55-.25s-.23-.19-.28-.3c-.05-.11-.08-.24-.08-.39 0-.14.03-.28.09-.41s.15-.25.27-.34c.12-.1.27-.18.45-.24s.4-.09.64-.09c.25 0 .47.04.66.11s.35.17.48.29.22.26.29.42c.06.16.1.32.1.49h1.95c0-.39-.08-.75-.24-1.09s-.39-.63-.69-.88c-.3-.25-.66-.44-1.09-.59-.43-.15-.92-.22-1.46-.22-.51 0-.98.07-1.39.21s-.77.33-1.06.57c-.29.24-.51.52-.67.84-.16.32-.23.65-.23 1.01s.08.69.23.96c.15.28.36.52.64.73.27.21.6.38.98.53.38.14.81.26 1.27.36.39.08.71.17.95.26s.43.19.57.29c.13.1.22.22.27.34.05.12.07.25.07.39 0 .32-.13.57-.4.77s-.66.29-1.17.29c-.22 0-.43-.02-.64-.08-.21-.05-.4-.13-.56-.24-.17-.11-.3-.26-.41-.44-.11-.18-.17-.41-.18-.67h-1.89c0 .36.08.71.24 1.05s.39.65.7.93c.31.27.69.49 1.15.66s.98.25 1.58.25c.53 0 1.01-.06 1.44-.19.43-.13.8-.31 1.11-.54.31-.23.54-.51.71-.83.17-.32.25-.67.25-1.06-.02-.4-.09-.74-.24-1.02zm-9.96-7.32c-.34-.4-.75-.7-1.23-.88-.47-.18-1.01-.27-1.59-.27s-1.11.09-1.59.27c-.48.18-.89.47-1.23.88-.34.41-.6.93-.79 1.59-.18.65-.28 1.45-.28 2.39v1.92c0 .94.09 1.74.28 2.39.19.66.45 1.19.8 1.6.34.41.75.71 1.23.89s1.01.28 1.59.28c.59 0 1.12-.09 1.59-.28.48-.18.88-.48 1.22-.89s.6-.94.78-1.6c.18-.65.28-1.45.28-2.39v-1.92c0-.94-.09-1.74-.28-2.39-.18-.66-.44-1.19-.78-1.59zm-.92 6.17c0 .6-.04 1.11-.12 1.53s-.2.76-.36 1.02c-.16.26-.36.45-.59.57-.23.12-.51.18-.82.18-.3 0-.58-.06-.82-.18s-.44-.31-.6-.57c-.16-.26-.29-.6-.38-1.02s-.13-.93-.13-1.53v-2.5c0-.6.04-1.11.13-1.52s.21-.74.38-1c.16-.25.36-.43.6-.55.24-.11.51-.17.81-.17.31 0 .58.06.81.17.24.11.44.29.6.55.16.25.29.58.37.99s.13.92.13 1.52v2.51h-.01z" /></g></React.Fragment> , 'Timer10Sharp');
packages/material-ui-icons/src/ScreenLockLandscapeOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2v1h-2.4v-1z" /></g></React.Fragment> , 'ScreenLockLandscapeOutlined');
packages/material-ui-icons/src/HdrWeakOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm12-2c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z" /></g></React.Fragment> , 'HdrWeakOutlined');
packages/material-ui-icons/src/RemoveRedEyeTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 6.5c-3.79 0-7.17 2.13-8.82 5.5 1.65 3.37 5.02 5.5 8.82 5.5s7.17-2.13 8.82-5.5C19.17 8.63 15.79 6.5 12 6.5zm0 10c-2.48 0-4.5-2.02-4.5-4.5S9.52 7.5 12 7.5s4.5 2.02 4.5 4.5-2.02 4.5-4.5 4.5z" opacity=".3" /><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 13c-3.79 0-7.17-2.13-8.82-5.5C4.83 8.63 8.21 6.5 12 6.5s7.17 2.13 8.82 5.5c-1.65 3.37-5.03 5.5-8.82 5.5z" /><path d="M12 7.5c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /></g></React.Fragment> , 'RemoveRedEyeTwoTone');
packages/material-ui-icons/src/SpaceBarRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 10v3H6v-3c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1z" /></g></React.Fragment> , 'SpaceBarRounded');
packages/material-ui-icons/src/CameraEnhanceSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16.83 5L15 3H9L7.17 5H2v16h20V5h-5.17zM12 18c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z" /><path d="M12 9l-1.25 2.75L8 13l2.75 1.25L12 17l1.25-2.75L16 13l-2.75-1.25z" /></g></React.Fragment> , 'CameraEnhanceSharp');
packages/material-ui-icons/src/SelectAllTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" /></React.Fragment> , 'SelectAllTwoTone');
packages/material-ui-icons/src/PhoneMissedOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M23.71 16.67C20.66 13.78 16.54 12 12 12S3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2.66-1.85.33-.16.56-.5.56-.9v-3.1c1.45-.48 3-.73 4.6-.73s3.15.25 4.6.72v3.1c0 .39.23.74.56.9.98.49 1.87 1.12 2.67 1.85.18.18.43.28.7.28.28 0 .53-.11.71-.29l2.48-2.48c.18-.18.29-.43.29-.71 0-.28-.12-.52-.3-.7zm-18.31.56c-.66.37-1.29.8-1.87 1.27l-1.07-1.07c.91-.75 1.9-1.39 2.95-1.9v1.7zm15.08 1.26c-.6-.48-1.22-.9-1.88-1.27v-1.7c1.05.51 2.03 1.15 2.95 1.9l-1.07 1.07zM7 6.43l4.94 4.94 7.07-7.07-1.41-1.42-5.66 5.66L8.4 5H11V3H5v6h2z" /></g></React.Fragment> , 'PhoneMissedOutlined');
packages/material-ui-icons/src/FilterFrames.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12" /></React.Fragment> , 'FilterFrames');
packages/material-ui-icons/src/DirectionsTransitTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 4c-3.51 0-4.96.48-5.57 1h11.23c-.54-.54-1.95-1-5.66-1zM7.5 17h9c.83 0 1.5-.67 1.5-1.5V12H6v3.5c0 .83.67 1.5 1.5 1.5zm8-4c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-7 0c.83 0 1.5.67 1.5 1.5S9.33 16 8.5 16 7 15.33 7 14.5 7.67 13 8.5 13z" opacity=".3" /><path d="M4 6v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4-4 0-8 .5-8 4zm14 4h-5V7h5v3zm-6-6c3.71 0 5.12.46 5.66 1H6.43c.61-.52 2.06-1 5.57-1zM6 7h5v3H6V7zm0 5h12v3.5c0 .83-.67 1.5-1.5 1.5h-9c-.83 0-1.5-.67-1.5-1.5V12z" /><circle cx="8.5" cy="14.5" r="1.5" /><circle cx="15.5" cy="14.5" r="1.5" /></React.Fragment> , 'DirectionsTransitTwoTone');
packages/material-ui-icons/src/SentimentSatisfiedAlt.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><circle cx="15.5" cy="9.5" r="1.5" /><circle cx="8.5" cy="9.5" r="1.5" /><path fill="none" d="M0 0h24v24H0V0z" /><circle cx="15.5" cy="9.5" r="1.5" /><circle cx="8.5" cy="9.5" r="1.5" /><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5z" /></React.Fragment> , 'SentimentSatisfiedAlt');
docs/src/pages/components/hidden/BreakpointOnly.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import Hidden from '@material-ui/core/Hidden'; import withWidth from '@material-ui/core/withWidth'; import Typography from '@material-ui/core/Typography'; import compose from 'docs/src/modules/utils/compose'; const styles = theme => ({ root: { flexGrow: 1, }, container: { display: 'flex', }, paper: { padding: theme.spacing(2), textAlign: 'center', color: theme.palette.text.secondary, flex: '1 0 auto', margin: theme.spacing(1), }, }); function BreakpointOnly(props) { const { classes } = props; return ( <div className={classes.root}> <Typography variant="subtitle1">Current width: {props.width}</Typography> <div className={classes.container}> <Hidden only="lg"> <Paper className={classes.paper}>Hidden on lg</Paper> </Hidden> <Hidden only="sm"> <Paper className={classes.paper}>Hidden on sm</Paper> </Hidden> <Hidden only={['sm', 'lg']}> <Paper className={classes.paper}>Hidden on sm and lg</Paper> </Hidden> </div> </div> ); } BreakpointOnly.propTypes = { classes: PropTypes.object.isRequired, width: PropTypes.string.isRequired, }; export default compose( withStyles(styles), withWidth(), )(BreakpointOnly);
packages/material-ui-icons/src/FlashOffRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16.12 11.5c.39-.67-.09-1.5-.86-1.5h-1.87l2.28 2.28.45-.78zM16.28 3.45c.33-.67-.15-1.45-.9-1.45H8c-.55 0-1 .45-1 1v.61l6.13 6.13 3.15-6.29zM18.44 17.88L4.12 3.56a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L7 9.27V12c0 .55.45 1 1 1h2v7.15c0 .51.67.69.93.25l2.65-4.55 3.44 3.44c.39.39 1.02.39 1.41 0 .4-.39.4-1.02.01-1.41z" /></g></React.Fragment> , 'FlashOffRounded');
docs/src/pages/customization/color/Color.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import * as colors from '@material-ui/core/colors'; const mainColors = [ 'Red', 'Pink', 'Purple', 'Deep Purple', 'Indigo', 'Blue', 'Light Blue', 'Cyan', 'Teal', 'Green', 'Light Green', 'Lime', 'Yellow', 'Amber', 'Orange', 'Deep Orange', ]; const neutralColors = ['Brown', 'Grey', 'Blue Grey']; const mainPalette = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]; const altPalette = ['A100', 'A200', 'A400', 'A700']; export const styles = theme => ({ root: { display: 'flex', flexWrap: 'wrap', }, name: { marginBottom: 60, }, blockSpace: { height: 4, }, colorContainer: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', }, colorGroup: { padding: 0, margin: theme.spacing(0, 2, 2, 0), flexGrow: 1, [theme.breakpoints.up('sm')]: { flexGrow: 0, width: '30%', }, }, colorValue: { ...theme.typography.caption, color: 'inherit', fontWeight: 'inherit', }, body2: theme.typography.body2, }); function getColorBlock(classes, theme, colorName, colorValue, colorTitle) { const bgColor = colors[colorName][colorValue]; const fgColor = theme.palette.getContrastText(bgColor); let blockTitle; if (colorTitle) { blockTitle = <div className={classes.name}>{colorName}</div>; } let rowStyle = { backgroundColor: bgColor, color: fgColor, listStyle: 'none', padding: 15, }; if (colorValue.toString().indexOf('A1') === 0) { rowStyle = { ...rowStyle, marginTop: 4, }; } return ( <li style={rowStyle} key={colorValue} className={classes.body2}> {blockTitle} <div className={classes.colorContainer}> <span>{colorValue}</span> <span className={classes.colorValue}>{bgColor}</span> </div> </li> ); } function getColorGroup(options) { const { classes, theme, color, showAltPalette } = options; const cssColor = color.replace(' ', '').replace(color.charAt(0), color.charAt(0).toLowerCase()); let colorsList = []; colorsList = mainPalette.map(mainValue => getColorBlock(classes, theme, cssColor, mainValue)); if (showAltPalette) { altPalette.forEach(altValue => { colorsList.push(getColorBlock(classes, theme, cssColor, altValue)); }); } return ( <ul className={classes.colorGroup} key={cssColor}> {getColorBlock(classes, theme, cssColor, 500, true)} <div className={classes.blockSpace} /> {colorsList} </ul> ); } function Color(props) { const { classes, theme } = props; return ( <div className={classes.root}> {mainColors.map(mainColor => getColorGroup({ classes, theme, color: mainColor, showAltPalette: true, }), )} {neutralColors.map(neutralColor => getColorGroup({ classes, theme, color: neutralColor, showAltPalette: false, }), )} </div> ); } Color.propTypes = { classes: PropTypes.object.isRequired, theme: PropTypes.object.isRequired, }; export default withStyles(styles, { withTheme: true })(Color);
packages/material-ui-icons/src/SwapCallsSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8h3l-4-4z" /></g></React.Fragment> , 'SwapCallsSharp');
packages/material-ui/src/Radio/RadioButtonIcon.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import RadioButtonUncheckedIcon from '../internal/svg-icons/RadioButtonUnchecked'; import RadioButtonCheckedIcon from '../internal/svg-icons/RadioButtonChecked'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ root: { position: 'relative', display: 'flex', '&$checked $layer': { transform: 'scale(1)', transition: theme.transitions.create('transform', { easing: theme.transitions.easing.easeOut, duration: theme.transitions.duration.shortest, }), }, }, layer: { position: 'absolute', transform: 'scale(0)', transition: theme.transitions.create('transform', { easing: theme.transitions.easing.easeIn, duration: theme.transitions.duration.shortest, }), }, checked: {}, }); /** * @ignore - internal component. */ function RadioButtonIcon(props) { const { checked, classes, className, ...other } = props; return ( <div className={clsx(classes.root, { [classes.checked]: checked }, className)} {...other}> <RadioButtonUncheckedIcon /> <RadioButtonCheckedIcon className={classes.layer} /> </div> ); } RadioButtonIcon.propTypes = { /** * If `true`, the component is checked. */ checked: PropTypes.bool, /** * Override or extend the styles applied to the component. * See [CSS API](#css) below for more details. */ classes: PropTypes.object.isRequired, /** * @ignore */ className: PropTypes.string, }; export default withStyles(styles, { name: 'PrivateRadioButtonIcon' })(RadioButtonIcon);
packages/material-ui-icons/src/PolymerRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8L19 4z" /></React.Fragment> , 'PolymerRounded');
packages/material-ui-icons/src/Filter4.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" /></React.Fragment> , 'Filter4');
packages/material-ui-icons/src/TurnedInNotRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V6c0-.55.45-1 1-1h8c.55 0 1 .45 1 1v12z" /></g></React.Fragment> , 'TurnedInNotRounded');
packages/material-ui-icons/src/RadioButtonCheckedOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /><circle cx="12" cy="12" r="5" /></React.Fragment> , 'RadioButtonCheckedOutlined');
packages/material-ui-icons/src/VoiceOverOffOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16.76 5.36l-1.68 1.69c.8 1.13.83 2.58.09 3.74l1.7 1.7c1.9-2.02 1.87-4.98-.11-7.13z" /><path d="M20.07 2l-1.63 1.63c2.72 2.97 2.76 7.39.14 10.56l1.64 1.64c3.74-3.89 3.71-9.84-.15-13.83zM9.43 5.04l3.53 3.53c-.2-1.86-1.67-3.33-3.53-3.53zM4.41 2.86L3 4.27l2.62 2.62C5.23 7.5 5 8.22 5 9c0 2.21 1.79 4 4 4 .78 0 1.5-.23 2.11-.62l4.4 4.4C13.74 15.6 10.78 15 9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-.37-.11-.7-.29-1.02L19.73 21l1.41-1.41L4.41 2.86zM3 19c.22-.72 3.31-2 6-2 2.7 0 5.8 1.29 6 2H3zm6-8c-1.1 0-2-.9-2-2 0-.22.04-.42.11-.62l2.51 2.51c-.2.07-.4.11-.62.11z" /></g></React.Fragment> , 'VoiceOverOffOutlined');
packages/material-ui-icons/src/StrikethroughSSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 2.21.34.66.22 1.23.54 1.69.94.47.4.83.88 1.08 1.43s.38 1.15.38 1.81h-3.01c0-.31-.05-.59-.15-.85-.09-.27-.24-.49-.44-.68-.2-.19-.45-.33-.75-.44-.3-.1-.66-.16-1.06-.16-.39 0-.74.04-1.03.13s-.53.21-.72.36c-.19.16-.34.34-.44.55-.1.21-.15.43-.15.66 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.05-.08-.11-.17-.15-.25zM21 12v-2H3v2h9.62c.18.07.4.14.55.2.37.17.66.34.87.51s.35.36.43.57c.07.2.11.43.11.69 0 .23-.05.45-.14.66-.09.2-.23.38-.42.53-.19.15-.42.26-.71.35-.29.08-.63.13-1.01.13-.43 0-.83-.04-1.18-.13s-.66-.23-.91-.42c-.25-.19-.45-.44-.59-.75s-.25-.76-.25-1.21H6.4c0 .55.08 1.13.24 1.58s.37.85.65 1.21c.28.35.6.66.98.92.37.26.78.48 1.22.65.44.17.9.3 1.38.39.48.08.96.13 1.44.13.8 0 1.53-.09 2.18-.28s1.21-.45 1.67-.79c.46-.34.82-.77 1.07-1.27s.38-1.07.38-1.71c0-.6-.1-1.14-.31-1.61-.05-.11-.11-.23-.17-.33H21V12z" /></React.Fragment> , 'StrikethroughSSharp');