path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/material-ui-icons/src/DiscFullTwoTone.js
Kagami/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 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" opacity=".3" /><path d="M20 14h2v2h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM20 7h2v5h-2z" /><path d="M10 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" /></g></React.Fragment> , 'DiscFullTwoTone');
packages/material-ui/src/Tabs/Tabs.js
Kagami/material-ui
/* eslint-disable no-restricted-globals */ import React from 'react'; import PropTypes from 'prop-types'; import warning from 'warning'; import classNames from 'classnames'; import EventListener from 'react-event-listener'; import debounce from 'debounce'; // < 1kb payload overhead when lodash/debounce is > 3kb. import { getNormalizedScrollLeft, detectScrollType } from 'normalize-scroll-left'; import { componentPropType } from '@material-ui/utils'; import animate from '../internal/animate'; import ScrollbarSize from './ScrollbarSize'; import withStyles from '../styles/withStyles'; import TabIndicator from './TabIndicator'; import TabScrollButton from './TabScrollButton'; import deprecatedPropType from '../utils/deprecatedPropType'; export const styles = theme => ({ /* Styles applied to the root element. */ root: { overflow: 'hidden', minHeight: 48, WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling. }, /* Styles applied to the flex container element. */ flexContainer: { display: 'flex', }, /* Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */ centered: { justifyContent: 'center', }, /* Styles applied to the tablist element. */ scroller: { position: 'relative', display: 'inline-block', flex: '1 1 auto', whiteSpace: 'nowrap', }, /* Styles applied to the tablist element if `!variant="scrollable"`. */ fixed: { overflowX: 'hidden', width: '100%', }, /* Styles applied to the tablist element if `variant="scrollable"`. */ scrollable: { overflowX: 'scroll', }, /* Styles applied to the `ScrollButtonComponent` component. */ scrollButtons: {}, /* Styles applied to the `ScrollButtonComponent` component if `scrollButtons="auto"`. */ scrollButtonsAuto: { [theme.breakpoints.down('xs')]: { display: 'none', }, }, /* Styles applied to the `TabIndicator` component. */ indicator: {}, }); class Tabs extends React.Component { constructor() { super(); if (typeof window !== 'undefined') { this.handleResize = debounce(() => { this.updateIndicatorState(this.props); this.updateScrollButtonState(); }, 166); // Corresponds to 10 frames at 60 Hz. this.handleTabsScroll = debounce(() => { this.updateScrollButtonState(); }, 166); // Corresponds to 10 frames at 60 Hz. } } state = { indicatorStyle: {}, scrollerStyle: { marginBottom: 0, }, showLeftScroll: false, showRightScroll: false, mounted: false, }; componentDidMount() { this.setState({ mounted: true }); this.updateIndicatorState(this.props); this.updateScrollButtonState(); if (this.props.action) { this.props.action({ updateIndicator: this.handleResize, }); } } componentDidUpdate(prevProps, prevState) { // The index might have changed at the same time. // We need to check again the right indicator position. this.updateIndicatorState(this.props); this.updateScrollButtonState(); if (this.state.indicatorStyle !== prevState.indicatorStyle) { this.scrollSelectedIntoView(); } } componentWillUnmount() { this.handleResize.clear(); this.handleTabsScroll.clear(); } getConditionalElements = () => { const { classes, scrollable: deprecatedScrollable, ScrollButtonComponent, scrollButtons, theme, variant, } = this.props; const conditionalElements = {}; const scrollable = variant === 'scrollable' || deprecatedScrollable; conditionalElements.scrollbarSizeListener = scrollable ? ( <ScrollbarSize onChange={this.handleScrollbarSizeChange} /> ) : null; const showScrollButtons = scrollable && (scrollButtons === 'auto' || scrollButtons === 'on'); conditionalElements.scrollButtonLeft = showScrollButtons ? ( <ScrollButtonComponent direction={theme && theme.direction === 'rtl' ? 'right' : 'left'} onClick={this.handleLeftScrollClick} visible={this.state.showLeftScroll} className={classNames(classes.scrollButtons, { [classes.scrollButtonsAuto]: scrollButtons === 'auto', })} /> ) : null; conditionalElements.scrollButtonRight = showScrollButtons ? ( <ScrollButtonComponent direction={theme && theme.direction === 'rtl' ? 'left' : 'right'} onClick={this.handleRightScrollClick} visible={this.state.showRightScroll} className={classNames(classes.scrollButtons, { [classes.scrollButtonsAuto]: scrollButtons === 'auto', })} /> ) : null; return conditionalElements; }; getTabsMeta = (value, direction) => { let tabsMeta; if (this.tabsRef) { const rect = this.tabsRef.getBoundingClientRect(); // create a new object with ClientRect class props + scrollLeft tabsMeta = { clientWidth: this.tabsRef.clientWidth, scrollLeft: this.tabsRef.scrollLeft, scrollLeftNormalized: getNormalizedScrollLeft(this.tabsRef, direction), scrollWidth: this.tabsRef.scrollWidth, left: rect.left, right: rect.right, }; } let tabMeta; if (this.tabsRef && value !== false) { const children = this.tabsRef.children[0].children; if (children.length > 0) { const tab = children[this.valueToIndex.get(value)]; warning( tab, [ `Material-UI: the value provided \`${value}\` to the Tabs component is invalid.`, 'None of the Tabs children have this value.', this.valueToIndex.keys ? `You can provide one of the following values: ${Array.from( this.valueToIndex.keys(), ).join(', ')}.` : null, ].join('\n'), ); tabMeta = tab ? tab.getBoundingClientRect() : null; } } return { tabsMeta, tabMeta }; }; handleLeftScrollClick = () => { this.moveTabsScroll(-this.tabsRef.clientWidth); }; handleRightScrollClick = () => { this.moveTabsScroll(this.tabsRef.clientWidth); }; handleScrollbarSizeChange = scrollbarHeight => { this.setState({ scrollerStyle: { marginBottom: -scrollbarHeight, }, }); }; moveTabsScroll = delta => { const { theme } = this.props; const multiplier = theme.direction === 'rtl' ? -1 : 1; const nextScrollLeft = this.tabsRef.scrollLeft + delta * multiplier; // Fix for Edge const invert = theme.direction === 'rtl' && detectScrollType() === 'reverse' ? -1 : 1; this.scroll(invert * nextScrollLeft); }; scrollSelectedIntoView = () => { const { theme, value } = this.props; const { tabsMeta, tabMeta } = this.getTabsMeta(value, theme.direction); if (!tabMeta || !tabsMeta) { return; } if (tabMeta.left < tabsMeta.left) { // left side of button is out of view const nextScrollLeft = tabsMeta.scrollLeft + (tabMeta.left - tabsMeta.left); this.scroll(nextScrollLeft); } else if (tabMeta.right > tabsMeta.right) { // right side of button is out of view const nextScrollLeft = tabsMeta.scrollLeft + (tabMeta.right - tabsMeta.right); this.scroll(nextScrollLeft); } }; scroll = value => { animate('scrollLeft', this.tabsRef, value); }; updateScrollButtonState = () => { const { scrollable: deprecatedScrollable, scrollButtons, theme, variant } = this.props; const scrollable = variant === 'scrollable' || deprecatedScrollable; if (scrollable && scrollButtons !== 'off') { const { scrollWidth, clientWidth } = this.tabsRef; const scrollLeft = getNormalizedScrollLeft(this.tabsRef, theme.direction); const showLeftScroll = theme.direction === 'rtl' ? scrollWidth > clientWidth + scrollLeft : scrollLeft > 0; const showRightScroll = theme.direction === 'rtl' ? scrollLeft > 0 : scrollWidth > clientWidth + scrollLeft; if ( showLeftScroll !== this.state.showLeftScroll || showRightScroll !== this.state.showRightScroll ) { this.setState({ showLeftScroll, showRightScroll }); } } }; updateIndicatorState(props) { const { theme, value } = props; const { tabsMeta, tabMeta } = this.getTabsMeta(value, theme.direction); let left = 0; if (tabMeta && tabsMeta) { const correction = theme.direction === 'rtl' ? tabsMeta.scrollLeftNormalized + tabsMeta.clientWidth - tabsMeta.scrollWidth : tabsMeta.scrollLeft; left = Math.round(tabMeta.left - tabsMeta.left + correction); } const indicatorStyle = { left, // May be wrong until the font is loaded. width: tabMeta ? Math.round(tabMeta.width) : 0, }; if ( (indicatorStyle.left !== this.state.indicatorStyle.left || indicatorStyle.width !== this.state.indicatorStyle.width) && !isNaN(indicatorStyle.left) && !isNaN(indicatorStyle.width) ) { this.setState({ indicatorStyle }); } } render() { const { action, centered, children: childrenProp, classes, className: classNameProp, component: Component, fullWidth = false, indicatorColor, onChange, scrollable: deprecatedScrollable = false, ScrollButtonComponent, scrollButtons, TabIndicatorProps = {}, textColor, theme, value, variant, ...other } = this.props; const scrollable = variant === 'scrollable' || deprecatedScrollable; warning( !centered || !scrollable, 'Material-UI: you can not use the `centered={true}` and `variant="scrollable"` properties ' + 'at the same time on a `Tabs` component.', ); const className = classNames(classes.root, classNameProp); const flexContainerClassName = classNames(classes.flexContainer, { [classes.centered]: centered && !scrollable, }); const scrollerClassName = classNames(classes.scroller, { [classes.fixed]: !scrollable, [classes.scrollable]: scrollable, }); const indicator = ( <TabIndicator className={classes.indicator} color={indicatorColor} {...TabIndicatorProps} style={{ ...this.state.indicatorStyle, ...TabIndicatorProps.style, }} /> ); this.valueToIndex = new Map(); let childIndex = 0; const children = React.Children.map(childrenProp, child => { if (!React.isValidElement(child)) { return null; } warning( child.type !== React.Fragment, [ "Material-UI: the Tabs component doesn't accept a Fragment as a child.", 'Consider providing an array instead.', ].join('\n'), ); const childValue = child.props.value === undefined ? childIndex : child.props.value; this.valueToIndex.set(childValue, childIndex); const selected = childValue === value; childIndex += 1; return React.cloneElement(child, { fullWidth: variant === 'fullWidth' || fullWidth, indicator: selected && !this.state.mounted && indicator, selected, onChange, textColor, value: childValue, }); }); const conditionalElements = this.getConditionalElements(); return ( <Component className={className} {...other}> <EventListener target="window" onResize={this.handleResize} /> {conditionalElements.scrollbarSizeListener} <div className={classes.flexContainer}> {conditionalElements.scrollButtonLeft} <div className={scrollerClassName} style={this.state.scrollerStyle} ref={ref => { this.tabsRef = ref; }} role="tablist" onScroll={this.handleTabsScroll} > <div className={flexContainerClassName}>{children}</div> {this.state.mounted && indicator} </div> {conditionalElements.scrollButtonRight} </div> </Component> ); } } Tabs.propTypes = { /** * Callback fired when the component mounts. * This is useful when you want to trigger an action programmatically. * It currently only supports `updateIndicator()` action. * * @param {object} actions This object contains all possible actions * that can be triggered programmatically. */ action: PropTypes.func, /** * If `true`, the tabs will be centered. * This property is intended for large views. */ centered: PropTypes.bool, /** * The content of the component. */ children: PropTypes.node, /** * Override or extend the styles applied to the component. * See [CSS API](#css-api) below for more details. */ classes: PropTypes.object.isRequired, /** * @ignore */ className: PropTypes.string, /** * The component used for the root node. * Either a string to use a DOM element or a component. */ component: componentPropType, /** * If `true`, the tabs will grow to use all the available space. * This property is intended for small views, like on mobile. */ fullWidth: deprecatedPropType(PropTypes.bool, 'Instead, use the `variant="fullWidth"` property.'), /** * Determines the color of the indicator. */ indicatorColor: PropTypes.oneOf(['secondary', 'primary']), /** * Callback fired when the value changes. * * @param {object} event The event source of the callback * @param {number} value We default to the index of the child */ onChange: PropTypes.func, /** * If `true`, it will invoke scrolling properties and allow for horizontally * scrolling (or swiping) of the tab bar. */ scrollable: deprecatedPropType( PropTypes.bool, 'Instead, use the `variant="scrollable"` property.', ), /** * The component used to render the scroll buttons. */ ScrollButtonComponent: componentPropType, /** * Determine behavior of scroll buttons when tabs are set to scroll * `auto` will only present them on medium and larger viewports * `on` will always present them * `off` will never present them */ scrollButtons: PropTypes.oneOf(['auto', 'on', 'off']), /** * Properties applied to the `TabIndicator` element. */ TabIndicatorProps: PropTypes.object, /** * Determines the color of the `Tab`. */ textColor: PropTypes.oneOf(['secondary', 'primary', 'inherit']), /** * @ignore */ theme: PropTypes.object.isRequired, /** * The value of the currently selected `Tab`. * If you don't want any selected `Tab`, you can set this property to `false`. */ value: PropTypes.any, /** * Determines additional display behavior of the tabs: * - `scrollable` will invoke scrolling properties and allow for horizontally * scrolling (or swiping) of the tab bar. * -`fullWidth` will make the tabs grow to use all the available space, * which should be used for small views, like on mobile. * - `standard` will render the default state. */ variant: PropTypes.oneOf(['standard', 'scrollable', 'fullWidth']), }; Tabs.defaultProps = { centered: false, component: 'div', indicatorColor: 'secondary', ScrollButtonComponent: TabScrollButton, scrollButtons: 'auto', textColor: 'inherit', variant: 'standard', }; export default withStyles(styles, { name: 'MuiTabs', withTheme: true })(Tabs);
packages/material-ui/src/TableFooter/TableFooter.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { componentPropType } from '@material-ui/utils'; import withStyles from '../styles/withStyles'; import Tablelvl2Context from '../Table/Tablelvl2Context'; export const styles = { /* Styles applied to the root element. */ root: { display: 'table-footer-group', }, }; const contextValue = { variant: 'footer' }; function TableFooter(props) { const { classes, className, component: Component, ...other } = props; return ( <Tablelvl2Context.Provider value={contextValue}> <Component className={classNames(classes.root, className)} {...other} /> </Tablelvl2Context.Provider> ); } TableFooter.propTypes = { /** * The content of the component, normally `TableRow`. */ children: PropTypes.node, /** * Override or extend the styles applied to the component. * See [CSS API](#css-api) below for more details. */ classes: PropTypes.object.isRequired, /** * @ignore */ className: PropTypes.string, /** * The component used for the root node. * Either a string to use a DOM element or a component. */ component: componentPropType, }; TableFooter.defaultProps = { component: 'tfoot', }; export default withStyles(styles, { name: 'MuiTableFooter' })(TableFooter);
packages/material-ui-icons/src/RoomSharp.js
Kagami/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 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.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" /></React.Fragment> , 'RoomSharp');
packages/material-ui-icons/src/AudiotrackSharp.js
Kagami/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 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z" /></g></React.Fragment> , 'AudiotrackSharp');
packages/material-ui-icons/src/SignalCellular3BarTwoTone.js
Kagami/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="M2 22h20V2L2 22z" /><path d="M17 7L2 22h15V7z" /></g></React.Fragment> , 'SignalCellular3BarTwoTone');
packages/material-ui-icons/src/InsertLinkRounded.js
Kagami/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="M3.96 11.38C4.24 9.91 5.62 8.9 7.12 8.9h2.93c.52 0 .95-.43.95-.95S10.57 7 10.05 7H7.22c-2.61 0-4.94 1.91-5.19 4.51C1.74 14.49 4.08 17 7 17h3.05c.52 0 .95-.43.95-.95s-.43-.95-.95-.95H7c-1.91 0-3.42-1.74-3.04-3.72zM9 13h6c.55 0 1-.45 1-1s-.45-1-1-1H9c-.55 0-1 .45-1 1s.45 1 1 1zm7.78-6h-2.83c-.52 0-.95.43-.95.95s.43.95.95.95h2.93c1.5 0 2.88 1.01 3.16 2.48.38 1.98-1.13 3.72-3.04 3.72h-3.05c-.52 0-.95.43-.95.95s.43.95.95.95H17c2.92 0 5.26-2.51 4.98-5.49-.25-2.6-2.59-4.51-5.2-4.51z" /></g></React.Fragment> , 'InsertLinkRounded');
packages/material-ui-icons/src/WallpaperSharp.js
Kagami/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="M4 4h7V2H2v9h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM22 2h-9v2h7v7h2V2zm-2 18h-7v2h9v-9h-2v7zM4 13H2v9h9v-2H4v-7z" /></g></React.Fragment> , 'WallpaperSharp');
packages/material-ui-icons/src/MarkunreadOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z" /></React.Fragment> , 'MarkunreadOutlined');
packages/material-ui-icons/src/RowingTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z" /></React.Fragment> , 'RowingTwoTone');
packages/material-ui-icons/src/LocationOffTwoTone.js
Kagami/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 9c0 1.06-.39 2.32-1 3.62l1.49 1.49C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7-1.84 0-3.5.71-4.75 1.86l1.43 1.43C9.56 4.5 10.72 4 12 4c2.76 0 5 2.24 5 5z" /><path d="M12 6.5c-.59 0-1.13.21-1.56.56l3.5 3.5c.35-.43.56-.97.56-1.56 0-1.38-1.12-2.5-2.5-2.5zM3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 18.88c-2.01-2.58-4.8-6.74-4.98-9.59l6.92 6.92c-.65.98-1.33 1.89-1.94 2.67z" /></g></React.Fragment> , 'LocationOffTwoTone');
packages/material-ui-icons/src/CreditCardSharp.js
Kagami/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 4H2.01L2 20h20V4zm-2 14H4v-6h16v6zm0-10H4V6h16v2z" /></g></React.Fragment> , 'CreditCardSharp');
packages/material-ui-icons/src/PhotoSizeSelectActualRounded.js
Kagami/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 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5.63 16.19l2.49-3.2c.2-.25.58-.26.78-.01l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.41-.01-.65-.49-.39-.82z" /></g></React.Fragment> , 'PhotoSizeSelectActualRounded');
packages/material-ui-icons/src/SignalCellularAltOutlined.js
Kagami/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 4h3v16h-3V4zM5 14h3v6H5v-6zm6-5h3v11h-3V9z" /></g></React.Fragment> , 'SignalCellularAltOutlined');
packages/material-ui-icons/src/LayersOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27z" /><path d="M12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z" /></React.Fragment> , 'LayersOutlined');
packages/material-ui-icons/src/Poll.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'Poll');
packages/material-ui-icons/src/LocationCity.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'LocationCity');
packages/material-ui-icons/src/WifiOffRounded.js
Kagami/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.06 10.14c.56.46 1.38.42 1.89-.09.59-.59.55-1.57-.1-2.1-3.59-2.94-8.2-4.03-12.55-3.26l2.59 2.59c2.89-.03 5.8.92 8.17 2.86zM17.79 11.97c-.78-.57-1.63-1-2.52-1.3l2.95 2.95c.24-.58.1-1.27-.43-1.65zM13.95 16.23c-1.22-.63-2.68-.63-3.91 0-.59.31-.7 1.12-.23 1.59l1.47 1.47c.39.39 1.02.39 1.41 0l1.47-1.47c.49-.47.39-1.28-.21-1.59z" /><path d="M19.68 17.9L4.12 2.34a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L5.05 6.1c-1.01.5-1.99 1.11-2.89 1.85-.65.53-.69 1.51-.1 2.1.51.51 1.32.56 1.87.1 1-.82 2.1-1.46 3.25-1.93l2.23 2.23c-1.13.3-2.21.8-3.19 1.51-.69.5-.73 1.51-.13 2.11l.01.01c.49.49 1.26.54 1.83.13 1.19-.84 2.58-1.26 3.97-1.29l6.37 6.37c.39.39 1.02.39 1.41 0 .39-.37.39-1 0-1.39z" /></g></React.Fragment> , 'WifiOffRounded');
packages/material-ui-icons/src/SettingsRemote.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z" /></React.Fragment> , 'SettingsRemote');
packages/material-ui-icons/src/PausePresentationRounded.js
Kagami/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 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 15c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v12z" /><path d="M10 8c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1s1-.45 1-1V9c0-.55-.45-1-1-1zM14 8c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1s1-.45 1-1V9c0-.55-.45-1-1-1z" /></g></React.Fragment> , 'PausePresentationRounded');
packages/material-ui-icons/src/AssistantRounded.js
Kagami/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 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l2.29 2.29c.39.39 1.02.39 1.41 0L15 20h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11l-4.12 1.88z" /></g></React.Fragment> , 'AssistantRounded');
packages/material-ui-icons/src/AlarmOnOutlined.js
Kagami/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.54 14.53L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06zM17.3365 1.811l4.6074 3.8436-1.2812 1.5358-4.6074-3.8436zM6.6633 1.8104l1.2812 1.5358-4.6074 3.8436L2.056 5.654z" /><path d="M12 4c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm0 16c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7z" /></g></React.Fragment> , 'AlarmOnOutlined');
packages/material-ui-icons/src/GradientTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M13 11h2v2h-2z" /><path d="M19 21c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zM5 13h2v-2H5V5h14v6h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2z" /><path d="M7 9h2v2H7zM15 9h2v2h-2zM11 9h2v2h-2zM9 11h2v2H9z" /></React.Fragment> , 'GradientTwoTone');
packages/material-ui-icons/src/ImageAspectRatio.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z" /></React.Fragment> , 'ImageAspectRatio');
packages/material-ui-icons/src/PhoneForwardedSharp.js
Kagami/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 11l5-5-5-5v3h-4v4h4zM13.21 17.37c-2.83-1.44-5.15-3.75-6.59-6.59l2.53-2.53L8.54 3H3.03C2.45 13.18 10.82 21.55 21 20.97v-5.51l-5.27-.61-2.52 2.52z" /></g></React.Fragment> , 'PhoneForwardedSharp');
packages/material-ui-icons/src/ImageSearchSharp.js
Kagami/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 13v7H4V6h5.02c.05-.71.22-1.38.48-2H2v18h18v-7l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z" /></g></React.Fragment> , 'ImageSearchSharp');
packages/material-ui-icons/src/BatteryUnknown.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-2.72 13.95h-1.9v-1.9h1.9v1.9zm1.35-5.26s-.38.42-.67.71c-.48.48-.83 1.15-.83 1.6h-1.6c0-.83.46-1.52.93-2l.93-.94c.27-.27.44-.65.44-1.06 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5H9c0-1.66 1.34-3 3-3s3 1.34 3 3c0 .66-.27 1.26-.7 1.69z" /></React.Fragment> , 'BatteryUnknown');
packages/material-ui-icons/src/OpacityOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M24 0H0v24h24V0zm0 0H0v24h24V0zM0 24h24V0H0v24z" /><path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z" /></React.Fragment> , 'OpacityOutlined');
packages/material-ui-icons/src/LocalFlorist.js
Kagami/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 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25zM12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5zM3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9z" /></React.Fragment> , 'LocalFlorist');
packages/material-ui-icons/src/AlarmOutlined.js
Kagami/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.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM17.3365 1.811l4.6074 3.8436-1.2812 1.5358-4.6074-3.8436zM6.6633 1.8104l1.2812 1.5358-4.6074 3.8436L2.056 5.654z" /><path d="M12 4c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm0 16c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7z" /></g></React.Fragment> , 'AlarmOutlined');
packages/material-ui-icons/src/WifiLockRounded.js
Kagami/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.31 9.58L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l10.4 13.87c.8 1.07 2.4 1.07 3.2 0l1.9-2.53V14.5c0-2.76 2.24-5 5-5 .28 0 .55.04.81.08z" /><path d="M23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13.12 18 14.5V16c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1zm-1 0h-3v-1.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V16z" /></g></React.Fragment> , 'WifiLockRounded');
docs/src/pages/demos/steppers/HorizontalNonLinearStepper.hooks.js
Kagami/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/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.unit, }, completed: { display: 'inline-block', }, instructions: { marginTop: theme.spacing.unit, marginBottom: theme.spacing.unit, }, })); 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() { let newActiveStep; if (isLastStep() && !allStepsCompleted()) { // It's the last step, but not all steps have been completed, // find the first step that has been completed newActiveStep = steps.findIndex((step, i) => !(i in completed)); } else { newActiveStep = 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) => { return ( <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/MoodTwoTone.js
Kagami/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 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm3.5 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 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8zm3.5 9.5c-2.33 0-4.31-1.46-5.11-3.5h10.22c-.8 2.04-2.78 3.5-5.11 3.5z" opacity=".3" /><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" /><circle cx="15.5" cy="9.5" r="1.5" /><path d="M12 17.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z" /></g></React.Fragment> , 'MoodTwoTone');
packages/material-ui-icons/src/FastForwardOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M15 9.86L18.03 12 15 14.14V9.86m-9 0L9.03 12 6 14.14V9.86M13 6v12l8.5-6L13 6zM4 6v12l8.5-6L4 6z" /></React.Fragment> , 'FastForwardOutlined');
packages/material-ui-icons/src/DeveloperBoard.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4v3h-4zM6 7h5v5H6zm6 4h4v6h-4z" /><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0z" /></React.Fragment> , 'DeveloperBoard');
packages/material-ui-icons/src/AllInboxOutlined.js
Kagami/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 3H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 10h3.13c.21.78.67 1.47 1.27 2H5v-2zm14 2h-4.4c.6-.53 1.06-1.22 1.27-2H19v2zm0-4h-5v1c0 1.07-.93 2-2 2s-2-.93-2-2V8H5V5h14v3zM17 15h-3v1c0 .47-.19.9-.48 1.25-.37.45-.92.75-1.52.75s-1.15-.3-1.52-.75c-.29-.35-.48-.78-.48-1.25v-1H3v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4h-4zM5 17h3.13c.02.09.06.17.09.25.24.68.65 1.28 1.18 1.75H5v-2zm14 2h-4.4c.54-.47.95-1.07 1.18-1.75.03-.08.07-.16.09-.25H19v2z" /></g></React.Fragment> , 'AllInboxOutlined');
docs/src/pages/demos/dialogs/SimpleDialog.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Avatar from '@material-ui/core/Avatar'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemAvatar from '@material-ui/core/ListItemAvatar'; import ListItemText from '@material-ui/core/ListItemText'; import DialogTitle from '@material-ui/core/DialogTitle'; import Dialog from '@material-ui/core/Dialog'; import PersonIcon from '@material-ui/icons/Person'; import AddIcon from '@material-ui/icons/Add'; import Typography from '@material-ui/core/Typography'; import blue from '@material-ui/core/colors/blue'; const emails = ['[email protected]', '[email protected]']; const styles = { avatar: { backgroundColor: blue[100], color: blue[600], }, }; class SimpleDialog extends React.Component { handleClose = () => { this.props.onClose(this.props.selectedValue); }; handleListItemClick = value => { this.props.onClose(value); }; render() { const { classes, onClose, selectedValue, ...other } = this.props; return ( <Dialog onClose={this.handleClose} aria-labelledby="simple-dialog-title" {...other}> <DialogTitle id="simple-dialog-title">Set backup account</DialogTitle> <div> <List> {emails.map(email => ( <ListItem button onClick={() => this.handleListItemClick(email)} key={email}> <ListItemAvatar> <Avatar className={classes.avatar}> <PersonIcon /> </Avatar> </ListItemAvatar> <ListItemText primary={email} /> </ListItem> ))} <ListItem button onClick={() => this.handleListItemClick('addAccount')}> <ListItemAvatar> <Avatar> <AddIcon /> </Avatar> </ListItemAvatar> <ListItemText primary="add account" /> </ListItem> </List> </div> </Dialog> ); } } SimpleDialog.propTypes = { classes: PropTypes.object.isRequired, onClose: PropTypes.func, selectedValue: PropTypes.string, }; const SimpleDialogWrapped = withStyles(styles)(SimpleDialog); class SimpleDialogDemo extends React.Component { state = { open: false, selectedValue: emails[1], }; handleClickOpen = () => { this.setState({ open: true, }); }; handleClose = value => { this.setState({ selectedValue: value, open: false }); }; render() { return ( <div> <Typography variant="subtitle1">Selected: {this.state.selectedValue}</Typography> <br /> <Button variant="outlined" color="primary" onClick={this.handleClickOpen}> Open simple dialog </Button> <SimpleDialogWrapped selectedValue={this.state.selectedValue} open={this.state.open} onClose={this.handleClose} /> </div> ); } } export default SimpleDialogDemo;
packages/material-ui-icons/src/TouchAppRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><g><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm5.5 2.47c-.28-.14-.58-.21-.89-.21H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.44-.72c-.37-.08-.76.04-1.03.31-.43.44-.43 1.14 0 1.58l4.01 4.01c.38.37.89.58 1.42.58h6.1c1 0 1.84-.73 1.98-1.72l.63-4.47c.12-.85-.32-1.69-1.09-2.07l-4.08-2.03z" /></g></React.Fragment> , 'TouchAppRounded');
packages/material-ui-icons/src/SwapHorizOutlined.js
Kagami/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/ShoppingBasket.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1h-4.79zM9 9l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" /></React.Fragment> , 'ShoppingBasket');
pages/demos/buttons.js
Kagami/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/demos/buttons', false, /\.md|\.js$/); const reqSource = require.context('!raw-loader!../../docs/src/pages/demos/buttons', false, /\.js$/); const reqPrefix = 'pages/demos/buttons'; function Page() { return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />; } export default Page;
packages/material-ui-icons/src/Backup.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" /></React.Fragment> , 'Backup');
packages/material-ui-icons/src/InsertDriveFileOutlined.js
Kagami/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="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" /></g></React.Fragment> , 'InsertDriveFileOutlined');
packages/material-ui-icons/src/InsertCommentRounded.js
Kagami/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 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-3 12H7c-.55 0-1-.45-1-1s.45-1 1-1h10c.55 0 1 .45 1 1s-.45 1-1 1zm0-3H7c-.55 0-1-.45-1-1s.45-1 1-1h10c.55 0 1 .45 1 1s-.45 1-1 1zm0-3H7c-.55 0-1-.45-1-1s.45-1 1-1h10c.55 0 1 .45 1 1s-.45 1-1 1z" /></g></React.Fragment> , 'InsertCommentRounded');
docs/src/pages/getting-started/page-layout-examples/pricing/Pricing.js
Kagami/material-ui
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import AppBar from '@material-ui/core/AppBar'; import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import CardHeader from '@material-ui/core/CardHeader'; import CssBaseline from '@material-ui/core/CssBaseline'; import Grid from '@material-ui/core/Grid'; import StarIcon from '@material-ui/icons/StarBorder'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; const styles = theme => ({ '@global': { body: { backgroundColor: theme.palette.common.white, }, }, appBar: { position: 'relative', }, toolbarTitle: { flex: 1, }, layout: { width: 'auto', marginLeft: theme.spacing.unit * 3, marginRight: theme.spacing.unit * 3, [theme.breakpoints.up(900 + theme.spacing.unit * 3 * 2)]: { width: 900, marginLeft: 'auto', marginRight: 'auto', }, }, heroContent: { maxWidth: 600, margin: '0 auto', padding: `${theme.spacing.unit * 8}px 0 ${theme.spacing.unit * 6}px`, }, cardHeader: { backgroundColor: theme.palette.grey[200], }, cardPricing: { display: 'flex', justifyContent: 'center', alignItems: 'baseline', marginBottom: theme.spacing.unit * 2, }, cardActions: { [theme.breakpoints.up('sm')]: { paddingBottom: theme.spacing.unit * 2, }, }, footer: { marginTop: theme.spacing.unit * 8, borderTop: `1px solid ${theme.palette.divider}`, padding: `${theme.spacing.unit * 6}px 0`, }, }); const tiers = [ { title: 'Free', price: '0', description: ['10 users included', '2 GB of storage', 'Help center access', 'Email support'], buttonText: 'Sign up for free', buttonVariant: 'outlined', }, { title: 'Pro', subheader: 'Most popular', price: '15', description: [ '20 users included', '10 GB of storage', 'Help center access', 'Priority email support', ], buttonText: 'Get started', buttonVariant: 'contained', }, { title: 'Enterprise', price: '30', description: [ '50 users included', '30 GB of storage', 'Help center access', 'Phone & email support', ], buttonText: 'Contact us', buttonVariant: 'outlined', }, ]; const footers = [ { title: 'Company', description: ['Team', 'History', 'Contact us', 'Locations'], }, { title: 'Features', description: ['Cool stuff', 'Random feature', 'Team feature', 'Developer stuff', 'Another one'], }, { title: 'Resources', description: ['Resource', 'Resource name', 'Another resource', 'Final resource'], }, { title: 'Legal', description: ['Privacy policy', 'Terms of use'], }, ]; function Pricing(props) { const { classes } = props; return ( <React.Fragment> <CssBaseline /> <AppBar position="static" color="default" className={classes.appBar}> <Toolbar> <Typography variant="h6" color="inherit" noWrap className={classes.toolbarTitle}> Company name </Typography> <Button>Features</Button> <Button>Enterprise</Button> <Button>Support</Button> <Button color="primary" variant="outlined"> Login </Button> </Toolbar> </AppBar> <main className={classes.layout}> {/* Hero unit */} <div className={classes.heroContent}> <Typography component="h1" variant="h2" align="center" color="textPrimary" gutterBottom> Pricing </Typography> <Typography variant="h6" align="center" color="textSecondary" component="p"> Quickly build an effective pricing table for your potential customers with this layout. It&apos;s built with default Material-UI components with little customization. </Typography> </div> {/* End hero unit */} <Grid container spacing={40} alignItems="flex-end"> {tiers.map(tier => ( // Enterprise card is full width at sm breakpoint <Grid item key={tier.title} xs={12} sm={tier.title === 'Enterprise' ? 12 : 6} md={4}> <Card> <CardHeader title={tier.title} subheader={tier.subheader} titleTypographyProps={{ align: 'center' }} subheaderTypographyProps={{ align: 'center' }} action={tier.title === 'Pro' ? <StarIcon /> : null} className={classes.cardHeader} /> <CardContent> <div className={classes.cardPricing}> <Typography component="h2" variant="h3" color="textPrimary"> ${tier.price} </Typography> <Typography variant="h6" color="textSecondary"> /mo </Typography> </div> {tier.description.map(line => ( <Typography variant="subtitle1" align="center" key={line}> {line} </Typography> ))} </CardContent> <CardActions className={classes.cardActions}> <Button fullWidth variant={tier.buttonVariant} color="primary"> {tier.buttonText} </Button> </CardActions> </Card> </Grid> ))} </Grid> </main> {/* Footer */} <footer className={classNames(classes.footer, classes.layout)}> <Grid container spacing={32} justify="space-evenly"> {footers.map(footer => ( <Grid item xs key={footer.title}> <Typography variant="h6" color="textPrimary" gutterBottom> {footer.title} </Typography> {footer.description.map(item => ( <Typography key={item} variant="subtitle1" color="textSecondary"> {item} </Typography> ))} </Grid> ))} </Grid> </footer> {/* End footer */} </React.Fragment> ); } Pricing.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(Pricing);
packages/material-ui-icons/src/DeleteForever.js
Kagami/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 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'DeleteForever');
packages/material-ui-icons/src/ControlPointTwoTone.js
Kagami/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 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm5 9h-4v4h-2v-4H7v-2h4V7h2v4h4v2z" opacity=".3" /><path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4z" /></g></React.Fragment> , 'ControlPointTwoTone');
docs/src/pages/demos/progress/LinearQuery.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import LinearProgress from '@material-ui/core/LinearProgress'; const styles = { root: { flexGrow: 1, }, }; function LinearQuery(props) { const { classes } = props; return ( <div className={classes.root}> <LinearProgress variant="query" /> <br /> <LinearProgress color="secondary" variant="query" /> </div> ); } LinearQuery.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(LinearQuery);
packages/material-ui-docs/src/svgIcons/LightbulbOutline.js
Kagami/material-ui
/* eslint-disable max-len */ import React from 'react'; import SvgIcon from '@material-ui/core/SvgIcon'; function LightbulbOutline(props) { return ( <SvgIcon {...props}> <path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z" /> </SvgIcon> ); } LightbulbOutline.muiName = 'SvgIcon'; export default LightbulbOutline;
packages/material-ui-icons/src/CodeTwoTone.js
Kagami/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.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" /></g></React.Fragment> , 'CodeTwoTone');
packages/material-ui-icons/src/PanToolRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M21.5 4c-.83 0-1.5.67-1.5 1.5v5c0 .28-.22.5-.5.5s-.5-.22-.5-.5v-8c0-.83-.67-1.5-1.5-1.5S16 1.67 16 2.5v8c0 .28-.22.5-.5.5s-.5-.22-.5-.5v-9c0-.83-.67-1.5-1.5-1.5S12 .67 12 1.5v8.99c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.5c0-.83-.67-1.5-1.5-1.5S8 3.67 8 4.5v11.41l-4.12-2.35c-.58-.33-1.3-.24-1.78.22-.6.58-.62 1.54-.03 2.13l6.78 6.89c.75.77 1.77 1.2 2.85 1.2H19c2.21 0 4-1.79 4-4V5.5c0-.83-.67-1.5-1.5-1.5z" /></React.Fragment> , 'PanToolRounded');
packages/material-ui-icons/src/SignalWifi4BarLockRounded.js
Kagami/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.55 9.61L23.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 0l1.94-2.42V14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11z" /><path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5V16z" /></g></React.Fragment> , 'SignalWifi4BarLockRounded');
pages/api/tab.js
Kagami/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './tab.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default Page;
packages/material-ui-icons/src/ExploreOff.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M14.19 14.19l-1.41-1.41-1.56-1.56L11 11 9.81 9.81 4.93 4.93 2.27 2.27 1 3.54l2.78 2.78c-.11.16-.21.32-.31.48-.04.07-.09.14-.13.21-.09.15-.17.31-.25.47-.05.1-.1.21-.16.32-.06.14-.13.28-.19.43-.1.24-.19.48-.27.73l-.09.3c-.05.2-.1.39-.14.59-.02.11-.04.22-.07.33-.04.2-.07.4-.09.61-.01.1-.03.2-.03.3-.03.29-.05.6-.05.91 0 5.52 4.48 10 10 10 .31 0 .62-.02.92-.05l.3-.03c.2-.02.41-.06.61-.09.11-.02.22-.04.33-.07.2-.04.39-.09.58-.15.1-.03.2-.05.3-.09.25-.08.49-.17.73-.27.15-.06.29-.13.43-.19.11-.05.22-.1.33-.16.16-.08.31-.16.46-.25.07-.04.14-.09.21-.13.16-.1.32-.2.48-.31L20.46 23l1.27-1.27-2.66-2.66-4.88-4.88zM6 18l3-6.46L12.46 15 6 18zm16-6c0 .31-.02.62-.05.92l-.03.3c-.02.2-.06.41-.09.61-.02.11-.04.22-.07.33-.04.2-.09.39-.15.58-.03.1-.05.21-.09.31-.08.25-.17.49-.27.73-.06.15-.13.29-.19.43-.05.11-.1.22-.16.33-.08.16-.16.31-.25.46-.04.07-.09.14-.13.21-.1.16-.2.32-.31.48L15 12.46 18 6l-6.46 3-5.22-5.22c.16-.11.32-.21.48-.31.07-.04.14-.09.21-.13.15-.09.31-.17.46-.25.11-.05.22-.1.33-.16.14-.06.28-.13.43-.19.24-.1.48-.19.73-.27l.31-.09c.19-.05.38-.11.58-.15.11-.02.22-.04.33-.07.2-.04.4-.07.61-.09.1-.01.2-.03.3-.03.29-.02.6-.04.91-.04 5.52 0 10 4.48 10 10z" /><path fill="none" d="M0 0h24v24H0V0z" /></React.Fragment> , 'ExploreOff');
packages/material-ui-icons/src/SignalCellularNoSimTwoTone.js
Kagami/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.83 5L9.36 6.47 17 14.11V5zM7 9.79V19h9.23z" opacity=".3" /><path d="M10.83 5H17v9.11l2 2V5c0-1.1-.9-2-2-2h-7L7.94 5.06l1.42 1.42L10.83 5zM21.26 21.21L3.79 3.74 2.38 5.15 5 7.77V19c0 1.11.9 2 2 2h11.23l1.62 1.62 1.41-1.41zM7 19V9.79L16.23 19H7z" /></g></React.Fragment> , 'SignalCellularNoSimTwoTone');
packages/material-ui-icons/src/SnoozeSharp.js
Kagami/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 11h3.63L9 15.2V17h6v-2h-3.63L15 10.8V9H9v2zM16.0564 3.3465l1.2812-1.5358 4.6074 3.8436-1.2812 1.5358zM3.3367 7.1896L2.0555 5.6538l4.6074-3.8436L7.944 3.346z" /><path d="M12 6c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-2c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9z" /></React.Fragment> , 'SnoozeSharp');
packages/material-ui-icons/src/WifiOffTwoTone.js
Kagami/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 11l2-2c-3.73-3.73-8.87-5.15-13.7-4.31l2.58 2.58c3.3-.02 6.61 1.22 9.12 3.73zM19 13c-1.08-1.08-2.36-1.85-3.72-2.33l3.02 3.02.7-.69zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0z" /><path d="M3.41 1.64L2 3.05 5.05 6.1C3.59 6.83 2.22 7.79 1 9l2 2c1.23-1.23 2.65-2.16 4.17-2.78l2.24 2.24C7.79 10.89 6.27 11.74 5 13l2 2c1.35-1.35 3.11-2.04 4.89-2.06l7.08 7.08 1.41-1.41L3.41 1.64z" /></g></React.Fragment> , 'WifiOffTwoTone');
packages/material-ui-icons/src/SignalWifi2BarLockRounded.js
Kagami/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="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.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 0l1.94-2.42V14.5z" /><path d="M15.5 14.5c0-1.34.51-2.53 1.34-3.42C15.62 10.51 13.98 10 12 10c-4.1 0-6.8 2.2-7.2 2.5l5.64 7.05c.8 1 2.32 1 3.12 0l1.94-2.42V14.5zM23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5V16z" /></g></React.Fragment> , 'SignalWifi2BarLockRounded');
packages/material-ui-icons/src/VisibilitySharp.js
Kagami/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 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" /></g></React.Fragment> , 'VisibilitySharp');
packages/material-ui-icons/src/SmartphoneTwoTone.js
Kagami/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 5h10v14H7z" opacity=".3" /><path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z" /></g></React.Fragment> , 'SmartphoneTwoTone');
docs/src/pages/premium-themes/tweeper/components/molecules/CardActions.js
Kagami/material-ui
import React from 'react'; import cx from 'classnames'; import MuiCardActions from '@material-ui/core/CardActions'; import { CARD_ACTIONS } from '../../theme/core'; const CardActions = ({ className, contained, ...props }) => ( <MuiCardActions className={cx(CARD_ACTIONS.root, className, contained && CARD_ACTIONS.contained)} classes={{ action: CARD_ACTIONS.action, }} {...props} /> ); export default CardActions;
packages/material-ui-icons/src/HistorySharp.js
Kagami/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 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.25 2.52.77-1.29-3.52-2.09V8H12z" /></g></React.Fragment> , 'HistorySharp');
packages/material-ui-icons/src/PeopleOutlineTwoTone.js
Kagami/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="9" cy="8.5" r="1.5" opacity=".3" /><path d="M4.34 17h9.32c-.84-.58-2.87-1.25-4.66-1.25s-3.82.67-4.66 1.25z" opacity=".3" /><path d="M9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12zm0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7zM9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5zM4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25H4.34zM16.04 13.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44zM15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35z" /></g></React.Fragment> , 'PeopleOutlineTwoTone');
packages/material-ui-icons/src/CallMissedOutgoingTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M19 10.41V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41l9 9z" /></React.Fragment> , 'CallMissedOutgoingTwoTone');
packages/material-ui-icons/src/RemoveFromQueueRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1zm-4-6c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1z" /></React.Fragment> , 'RemoveFromQueueRounded');
docs/src/pages/discover-more/team/Team.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import CardMedia from '@material-ui/core/CardMedia'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; import Github from '@material-ui/docs/svgIcons/GitHub'; import Twitter from '@material-ui/docs/svgIcons/Twitter'; const members = [ { name: 'Hai Nguyen', github: 'hai-cea', twitter: 'haicea', flag: 'v0.x creator', city: 'Dallas, Texas, US', }, { name: 'Olivier Tassinari', github: 'oliviertassinari', twitter: 'olivtassinari', flag: 'v1.x co-creator', city: 'Paris, France', }, { name: 'Matt Brookes', github: 'mbrookes', twitter: 'randomtechdude', flag: 'Core team', city: 'London, UK', }, { name: 'Kevin Ross', github: 'rosskevin', twitter: 'rosskevin', flag: 'Core team', city: 'Franklin, Tennessee, US', }, { name: 'Sebastian Silbermann', github: 'eps1lon', twitter: 'sebsilbermann', flag: 'Core team', city: 'Dresden, Germany', }, { name: 'Nathan Marks', github: 'nathanmarks', flag: 'v1.x co-creator', city: 'Toronto, ON', }, { name: 'Sebastian Sebald', github: 'sebald', twitter: 'sebastiansebald', flag: 'Community partner, TypeScript', city: 'Freiburg, Germany', }, { name: 'Maik Marschner', github: 'leMaik', twitter: 'leMaikOfficial', flag: 'Community partner', city: 'Hannover, Germany', }, { name: 'Oleg Slobodskoi', github: 'kof', twitter: 'oleg008', flag: 'Community partner, JSS', city: 'Berlin, Germany', }, { name: 'Ken Gregory', github: 'kgregory', flag: 'Community partner', city: 'New Jersey, US', }, { name: 'Tom Crockett', github: 'pelotom', twitter: 'pelotom', flag: 'Community partner', city: 'Los Angeles, California, US', }, ]; const styles = theme => ({ details: { margin: `${theme.spacing.unit}px ${theme.spacing.unit}px ${theme.spacing.unit}px 0`, }, cover: { width: theme.spacing.unit * 10, height: theme.spacing.unit * 10, margin: theme.spacing.unit * 2, borderRadius: '50%', flexShrink: 0, backgroundColor: theme.palette.background.default, }, icon: { fontSize: 18, padding: theme.spacing.unit, }, }); function Team(props) { const { classes } = props; return ( <Grid container spacing={16}> {members.map(member => ( <Grid key={member.name} item xs={12} md={6}> <Paper> <Grid container wrap="nowrap"> <Grid item> <CardMedia className={classes.cover} image={`https://github.com/${member.github}.png`} title="Picture" /> </Grid> <Grid item> <div className={classes.details}> <Typography component="h2" variant="h5"> {member.name} </Typography> <Typography variant="subtitle1" color="textSecondary"> {member.flag} </Typography> <Typography color="textSecondary">{member.city}</Typography> <Grid container> {member.github && ( <IconButton aria-label="GitHub" component="a" href={`https://github.com/${member.github}`} className={classes.icon} > <Github fontSize="inherit" /> </IconButton> )} {member.twitter && ( <IconButton aria-label="Twitter" component="a" href={`https://twitter.com/${member.twitter}`} className={classes.icon} > <Twitter fontSize="inherit" /> </IconButton> )} </Grid> </div> </Grid> </Grid> </Paper> </Grid> ))} </Grid> ); } Team.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(Team);
test/regressions/tests/TextField/TextFieldError.js
Kagami/material-ui
import React from 'react'; import TextField from '@material-ui/core/TextField'; export default function TextFieldError() { return ( <div> <TextField error label="Foo" /> <TextField error label="Foo" value="Hello world" /> </div> ); }
packages/material-ui-icons/src/DepartureBoardTwoTone.js
Kagami/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 6H9c-3.69 0-5.11.46-5.66.99h5.74c.05-.33.12-.67.21-.99zM3 14v4c0 .37.21.62.34.73l.29.27H14.37l.29-.27c.13-.11.34-.36.34-.73v-3.08c-.94-.13-1.81-.45-2.59-.92H3zm2.5 4c-.83 0-1.5-.67-1.5-1.5S4.67 15 5.5 15s1.5.67 1.5 1.5S6.33 18 5.5 18zm8.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5z" opacity=".3" /><circle cx="5.5" cy="16.5" r="1.5" /><circle cx="12.5" cy="16.5" r="1.5" /><path d="M16 1c-2.39 0-4.49 1.2-5.75 3.02C9.84 4.01 9.43 4 9 4c-4.42 0-8 .5-8 4v10c0 .88.39 1.67 1 2.22V22c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22v-3.08c3.39-.49 6-3.39 6-6.92 0-3.87-3.13-7-7-7zM9 6h.29c-.09.32-.16.66-.21.99H3.34C3.89 6.46 5.31 6 9 6zM3 8.99h6.08c.16 1.11.57 2.13 1.18 3.01H3V8.99zM15 18c0 .37-.21.62-.34.73l-.29.27H3.63l-.29-.27C3.21 18.62 3 18.37 3 18v-4h9.41c.78.47 1.65.79 2.59.92V18zm1-5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z" /><path d="M16.5 4H15v5l3.62 2.16.75-1.23-2.87-1.68z" /></React.Fragment> , 'DepartureBoardTwoTone');
packages/material-ui-icons/src/OfflinePinOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /><path d="M7 15h10v2H7zM10.3 11.2L8.4 9.3 7 10.7l3.3 3.3L17 7.3l-1.4-1.4z" /></React.Fragment> , 'OfflinePinOutlined');
packages/material-ui-icons/src/LinkSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zM11 15H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2z" /><path d="M8 11h8v2H8z" /><g><path d="M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zM11 15H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2z" /><path d="M8 11h8v2H8z" /></g></React.Fragment> , 'LinkSharp');
packages/material-ui-icons/src/PanoramaFishEye.js
Kagami/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 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /></React.Fragment> , 'PanoramaFishEye');
packages/material-ui-icons/src/SupervisorAccountSharp.js
Kagami/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.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z" /></React.Fragment> , 'SupervisorAccountSharp');
packages/material-ui-icons/src/MissedVideoCallRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l2.29 2.29c.63.63 1.71.18 1.71-.71V8.91c0-.89-1.08-1.34-1.71-.71L17 10.5zm-6.29 3.79c-.39.39-1.02.39-1.41 0l-3.18-3.18v2.55H5V9.72c0-.28.22-.5.5-.5h3.94v1.11H6.89l3.11 3.1 4.22-4.22.78.79-4.29 4.29z" /></React.Fragment> , 'MissedVideoCallRounded');
packages/material-ui-icons/src/MonetizationOn.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2.65 1.87 1.96 0 2.4-.98 2.4-1.59 0-.83-.44-1.61-2.67-2.14-2.48-.6-4.18-1.62-4.18-3.67 0-1.72 1.39-2.84 3.11-3.21V4h2.67v1.95c1.86.45 2.79 1.86 2.85 3.39H14.3c-.05-1.11-.64-1.87-2.22-1.87-1.5 0-2.4.68-2.4 1.64 0 .84.65 1.39 2.67 1.91s4.18 1.39 4.18 3.91c-.01 1.83-1.38 2.83-3.12 3.16z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'MonetizationOn');
packages/material-ui-icons/src/AirlineSeatReclineExtraOutlined.js
Kagami/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 19H8.93c-1.48 0-2.74-1.08-2.96-2.54L4 7H2l1.99 9.76C4.37 19.2 6.47 21 8.94 21H16v-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.61l1.35 5.92C7.16 16.98 8.39 18 9.83 18h6.85l3.82 3 1.5-1.5-5.77-4.5z" /></g></React.Fragment> , 'AirlineSeatReclineExtraOutlined');
packages/material-ui-icons/src/ScatterPlotRounded.js
Kagami/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="7" cy="14" r="3" /><circle cx="11" cy="6" r="3" /><circle cx="16.6" cy="17.6" r="3" /></g></React.Fragment> , 'ScatterPlotRounded');
packages/material-ui-icons/src/VoiceOverOffOutlined.js
Kagami/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/SignalWifi2BarRounded.js
Kagami/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="M4.79 12.52l5.65 7.04c.8 1 2.32 1 3.12 0l5.65-7.05C18.85 12.24 16.1 10 12 10s-6.85 2.24-7.21 2.52z" /></g></React.Fragment> , 'SignalWifi2BarRounded');
packages/material-ui-icons/src/LooksTwoSharp.js
Kagami/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 3H3v18h18V3zm-6 10h-4v2h4v2H9v-6h4V9H9V7h6v6z" /></g></React.Fragment> , 'LooksTwoSharp');
packages/material-ui-icons/src/StarHalfTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" /></React.Fragment> , 'StarHalfTwoTone');
packages/material-ui-icons/src/EuroSymbolTwoTone.js
Kagami/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="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06c-.04.33-.06.66-.06 1s.02.67.06 1H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z" /></g></React.Fragment> , 'EuroSymbolTwoTone');
packages/material-ui-icons/src/BatteryStdSharp.js
Kagami/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 4h-3V2h-4v2H7v18h10V4z" /></g></React.Fragment> , 'BatteryStdSharp');
packages/material-ui-icons/src/RvHookupRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 17h-1v-6c0-1.1-.9-2-2-2H7v-.74c0-.46-.56-.7-.89-.37L4.37 9.63c-.2.2-.2.53 0 .74l1.74 1.74c.33.33.89.1.89-.37V11h4v3H5c-.55 0-1 .45-1 1v2c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h7c.55 0 1-.45 1-1s-.45-1-1-1zm-10 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm7-6h-4v-3h3c.55 0 1 .45 1 1v2zM10 6h7v.74c0 .46.56.7.89.37l1.74-1.74c.2-.2.2-.53 0-.74l-1.74-1.74c-.33-.33-.89-.1-.89.37V4h-7c-.55 0-1 .45-1 1s.45 1 1 1z" /></React.Fragment> , 'RvHookupRounded');
packages/material-ui-icons/src/PlaylistAddCheck.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><defs><path id="a" d="M0 0h24v24H0V0z" /></defs><path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z" /></React.Fragment> , 'PlaylistAddCheck');
packages/material-ui-icons/src/WorkOffOutlined.js
Kagami/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 4h4v2h-3.6l2 2H20v7.6l2 2V8c0-1.11-.89-2-2-2h-4V4c0-1.11-.89-2-2-2h-4c-.99 0-1.8.7-1.96 1.64L10 5.6V4zM3.4 1.84L1.99 3.25 4.74 6H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h15.74l2 2 1.41-1.41L3.4 1.84zM4 19V8h2.74l11 11H4z" /></g></React.Fragment> , 'WorkOffOutlined');
packages/material-ui-icons/src/PlayCircleFilledWhiteRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><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 13.5v-7c0-.41.47-.65.8-.4l4.67 3.5c.27.2.27.6 0 .8l-4.67 3.5c-.33.25-.8.01-.8-.4z" /></React.Fragment> , 'PlayCircleFilledWhiteRounded');
packages/material-ui-icons/src/Battery60Outlined.js
Kagami/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="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z" /><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V11H7z" /></g></React.Fragment> , 'Battery60Outlined');
packages/material-ui-icons/src/SkipNextOutlined.js
Kagami/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 18l8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z" /></React.Fragment> , 'SkipNextOutlined');
packages/material-ui-icons/src/UnarchiveRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zm-8.2 4.63L17.5 15H14v2h-4v-2H6.5l5.15-5.15c.19-.19.51-.19.7 0zM5.12 5l.82-1h12l.93 1H5.12z" /></React.Fragment> , 'UnarchiveRounded');
packages/material-ui-icons/src/ToggleOnTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M17 8H7c-2.21 0-4 1.79-4 4s1.79 4 4 4h10c2.21 0 4-1.79 4-4s-1.79-4-4-4zm0 7c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z" opacity=".3" /><path d="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4z" /><path d="M17 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" /></React.Fragment> , 'ToggleOnTwoTone');
packages/material-ui-icons/src/ExpandMoreTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M24 24H0V0h24v24z" opacity=".87" /><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z" /></React.Fragment> , 'ExpandMoreTwoTone');
packages/material-ui-icons/src/DonutLarge.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z" /></React.Fragment> , 'DonutLarge');
docs/src/pages/demos/tabs/NavTabs.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import NoSsr from '@material-ui/core/NoSsr'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; function TabContainer(props) { return ( <Typography component="div" style={{ padding: 8 * 3 }}> {props.children} </Typography> ); } TabContainer.propTypes = { children: PropTypes.node.isRequired, }; function LinkTab(props) { return <Tab component="a" onClick={event => event.preventDefault()} {...props} />; } const styles = theme => ({ root: { flexGrow: 1, backgroundColor: theme.palette.background.paper, }, }); class NavTabs extends React.Component { state = { value: 0, }; handleChange = (event, value) => { this.setState({ value }); }; render() { const { classes } = this.props; const { value } = this.state; return ( <NoSsr> <div className={classes.root}> <AppBar position="static"> <Tabs variant="fullWidth" value={value} onChange={this.handleChange}> <LinkTab label="Page One" href="page1" /> <LinkTab label="Page Two" href="page2" /> <LinkTab label="Page Three" href="page3" /> </Tabs> </AppBar> {value === 0 && <TabContainer>Page One</TabContainer>} {value === 1 && <TabContainer>Page Two</TabContainer>} {value === 2 && <TabContainer>Page Three</TabContainer>} </div> </NoSsr> ); } } NavTabs.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(NavTabs);
packages/material-ui-icons/src/AddBox.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'AddBox');
packages/material-ui-icons/src/VerticalSplitSharp.js
Kagami/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="M3 15h8v-2H3v2zm0 4h8v-2H3v2zm0-8h8V9H3v2zm0-6v2h8V5H3zm10 0h8v14h-8V5z" /></g></React.Fragment> , 'VerticalSplitSharp');
packages/material-ui-icons/src/DeveloperModeOutlined.js
Kagami/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 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 10 8.83 8.59 7.41 4 12l4.59 4.59L10 15.17zM17 19H7v-2H5v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2v2z" /></g></React.Fragment> , 'DeveloperModeOutlined');
packages/material-ui-lab/src/SpeedDial/SpeedDial.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import keycode from 'keycode'; import warning from 'warning'; import { componentPropType } from '@material-ui/utils'; import { withStyles } from '@material-ui/core/styles'; import Zoom from '@material-ui/core/Zoom'; import { duration } from '@material-ui/core/styles/transitions'; import Fab from '@material-ui/core/Fab'; import { isMuiElement, setRef } from '@material-ui/core/utils/reactHelpers'; import * as utils from './utils'; import clamp from '../utils/clamp'; const dialRadius = 32; const spacingActions = 16; export const styles = { /* Styles applied to the root element. */ root: { zIndex: 1050, display: 'flex', pointerEvents: 'none', }, /* Styles applied to the Button component. */ fab: { pointerEvents: 'auto', }, /* Styles applied to the root and action container elements when direction="up" */ directionUp: { flexDirection: 'column-reverse', }, /* Styles applied to the root and action container elements when direction="down" */ directionDown: { flexDirection: 'column', }, /* Styles applied to the root and action container elements when direction="left" */ directionLeft: { flexDirection: 'row-reverse', }, /* Styles applied to the root and action container elements when direction="right" */ directionRight: { flexDirection: 'row', }, /* Styles applied to the actions (`children` wrapper) element. */ actions: { display: 'flex', pointerEvents: 'auto', '&$directionUp': { marginBottom: -dialRadius, paddingBottom: spacingActions + dialRadius, }, '&$directionRight': { marginLeft: -dialRadius, paddingLeft: spacingActions + dialRadius, }, '&$directionDown': { marginTop: -dialRadius, paddingTop: spacingActions + dialRadius, }, '&$directionLeft': { marginRight: -dialRadius, paddingRight: spacingActions + dialRadius, }, }, /* Styles applied to the actions (`children` wrapper) element if `open={false}`. */ actionsClosed: { transition: 'top 0s linear 0.2s', pointerEvents: 'none', }, }; class SpeedDial extends React.Component { static initialNavigationState = { /** * an index in this.actions */ focusedAction: 0, /** * pressing this key while the focus is on a child SpeedDialAction focuses * the next SpeedDialAction. * It is equal to the first arrow key pressed while focus is on the SpeedDial * that is not orthogonal to the direction. * @type {utils.ArrowKey?} */ nextItemArrowKey: undefined, }; static getDerivedStateFromProps(props, state) { // actions were closed while navigation state was not reset if (!props.open && state.nextItemArrowKey !== undefined) { return SpeedDial.initialNavigationState; } return null; } /** * refs to the Button that have an action associated to them in this SpeedDial * [Fab, ...(SpeedDialActions > Button)] * @type {HTMLButtonElement[]} */ actions = []; state = SpeedDial.initialNavigationState; handleKeyboardNavigation = event => { const key = keycode(event); const { direction, onKeyDown } = this.props; const { focusedAction, nextItemArrowKey = key } = this.state; if (key === 'esc') { this.closeActions(event, key); } else if (utils.sameOrientation(key, direction)) { event.preventDefault(); const actionStep = key === nextItemArrowKey ? 1 : -1; // stay within array indices const nextAction = clamp(focusedAction + actionStep, 0, this.actions.length - 1); const nextActionRef = this.actions[nextAction]; nextActionRef.focus(); this.setState({ focusedAction: nextAction, nextItemArrowKey }); } if (onKeyDown) { onKeyDown(event, key); } }; /** * creates a ref callback for the Button in a SpeedDialAction * Is called before the original ref callback for Button that was set in buttonProps * * @param dialActionIndex {number} * @param origButtonRef {React.RefObject?} */ createHandleSpeedDialActionButtonRef(dialActionIndex, origButtonRef) { return ref => { this.actions[dialActionIndex + 1] = ref; if (origButtonRef) { origButtonRef(ref); } }; } closeActions(event, key) { const { onClose } = this.props; this.actions[0].focus(); this.setState(SpeedDial.initialNavigationState); if (onClose) { onClose(event, key); } } render() { const { ariaLabel, ButtonProps: { buttonRef: origDialButtonRef, ...ButtonProps } = {}, children: childrenProp, classes, className: classNameProp, hidden, icon: iconProp, onClick, onClose, onKeyDown, open, direction, openIcon, TransitionComponent, transitionDuration, TransitionProps, ...other } = this.props; // Filter the label for valid id characters. const id = ariaLabel.replace(/^[^a-z]+|[^\w:.-]+/gi, ''); const orientation = utils.getOrientation(direction); let totalValidChildren = 0; React.Children.forEach(childrenProp, child => { if (React.isValidElement(child)) totalValidChildren += 1; }); this.actions = []; let validChildCount = 0; const children = React.Children.map(childrenProp, child => { if (!React.isValidElement(child)) { return null; } warning( child.type !== React.Fragment, [ "Material-UI: the SpeedDial component doesn't accept a Fragment as a child.", 'Consider providing an array instead.', ].join('\n'), ); const delay = 30 * (open ? validChildCount : totalValidChildren - validChildCount); validChildCount += 1; const { ButtonProps: { buttonRef: origButtonRef, ...ChildButtonProps } = {} } = child.props; const NewChildButtonProps = { ...ChildButtonProps, buttonRef: this.createHandleSpeedDialActionButtonRef(validChildCount - 1, origButtonRef), }; return React.cloneElement(child, { ButtonProps: NewChildButtonProps, delay, onKeyDown: this.handleKeyboardNavigation, open, id: `${id}-item-${validChildCount}`, }); }); const icon = () => { if (React.isValidElement(iconProp) && isMuiElement(iconProp, ['SpeedDialIcon'])) { return React.cloneElement(iconProp, { open }); } return iconProp; }; const actionsPlacementClass = { [classes.directionUp]: direction === 'up', [classes.directionDown]: direction === 'down', [classes.directionLeft]: direction === 'left', [classes.directionRight]: direction === 'right', }; let clickProp = { onClick }; if (typeof document !== 'undefined' && 'ontouchstart' in document.documentElement) { clickProp = { onTouchEnd: onClick }; } return ( <div className={classNames(classes.root, actionsPlacementClass, classNameProp)} {...other}> <TransitionComponent in={!hidden} timeout={transitionDuration} unmountOnExit {...TransitionProps} > <Fab color="primary" onKeyDown={this.handleKeyboardNavigation} aria-label={ariaLabel} aria-haspopup="true" aria-expanded={open ? 'true' : 'false'} aria-controls={`${id}-actions`} className={classes.fab} {...clickProp} {...ButtonProps} buttonRef={ref => { this.actions[0] = ref; setRef(origDialButtonRef, ref); }} > {icon()} </Fab> </TransitionComponent> <div id={`${id}-actions`} role="menu" aria-orientation={orientation} className={classNames( classes.actions, { [classes.actionsClosed]: !open }, actionsPlacementClass, )} > {children} </div> </div> ); } } SpeedDial.propTypes = { /** * The aria-label of the `Button` element. * Also used to provide the `id` for the `SpeedDial` element and its children. */ ariaLabel: PropTypes.string.isRequired, /** * Properties applied to the [`Button`](/api/button/) element. */ ButtonProps: PropTypes.object, /** * SpeedDialActions to display when the SpeedDial is `open`. */ children: PropTypes.node.isRequired, /** * Override or extend the styles applied to the component. * See [CSS API](#css-api) below for more details. */ classes: PropTypes.object.isRequired, /** * @ignore */ className: PropTypes.string, /** * The direction the actions open relative to the floating action button. */ direction: PropTypes.oneOf(['up', 'down', 'left', 'right']), /** * If `true`, the SpeedDial will be hidden. */ hidden: PropTypes.bool, /** * The icon to display in the SpeedDial Floating Action Button. The `SpeedDialIcon` component * provides a default Icon with animation. */ icon: PropTypes.element.isRequired, /** * @ignore */ onClick: PropTypes.func, /** * Callback fired when the component requests to be closed. * * @param {object} event The event source of the callback * @param {string} key The key pressed */ onClose: PropTypes.func, /** * @ignore */ onKeyDown: PropTypes.func, /** * If `true`, the SpeedDial is open. */ open: PropTypes.bool.isRequired, /** * The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open. */ openIcon: PropTypes.node, /** * The component used for the transition. */ TransitionComponent: componentPropType, /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. */ transitionDuration: PropTypes.oneOfType([ PropTypes.number, PropTypes.shape({ enter: PropTypes.number, exit: PropTypes.number }), ]), /** * Properties applied to the `Transition` element. */ TransitionProps: PropTypes.object, }; SpeedDial.defaultProps = { hidden: false, direction: 'up', TransitionComponent: Zoom, transitionDuration: { enter: duration.enteringScreen, exit: duration.leavingScreen, }, }; export default withStyles(styles, { name: 'MuiSpeedDial' })(SpeedDial);
docs/src/pages/system/spacing/HorizontalCentering.js
Kagami/material-ui
import React from 'react'; import { unstable_Box as Box } from '@material-ui/core/Box'; function HorizontalCentering() { return ( <div> <Box mx="auto" bgcolor="background.paper" p={1}> Centered element </Box> </div> ); } export default HorizontalCentering;
docs/src/pages/demos/tabs/ScrollableTabsButtonForce.hooks.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import PhoneIcon from '@material-ui/icons/Phone'; import FavoriteIcon from '@material-ui/icons/Favorite'; import PersonPinIcon from '@material-ui/icons/PersonPin'; import HelpIcon from '@material-ui/icons/Help'; import ShoppingBasket from '@material-ui/icons/ShoppingBasket'; import ThumbDown from '@material-ui/icons/ThumbDown'; import ThumbUp from '@material-ui/icons/ThumbUp'; import Typography from '@material-ui/core/Typography'; function TabContainer(props) { return ( <Typography component="div" style={{ padding: 8 * 3 }}> {props.children} </Typography> ); } TabContainer.propTypes = { children: PropTypes.node.isRequired, }; const useStyles = makeStyles(theme => ({ root: { flexGrow: 1, width: '100%', backgroundColor: theme.palette.background.paper, }, })); function ScrollableTabsButtonForce() { const classes = useStyles(); const [value, setValue] = React.useState(0); function handleChange(event, newValue) { setValue(newValue); } return ( <div className={classes.root}> <AppBar position="static" color="default"> <Tabs value={value} onChange={handleChange} variant="scrollable" scrollButtons="on" indicatorColor="primary" textColor="primary" > <Tab label="Item One" icon={<PhoneIcon />} /> <Tab label="Item Two" icon={<FavoriteIcon />} /> <Tab label="Item Three" icon={<PersonPinIcon />} /> <Tab label="Item Four" icon={<HelpIcon />} /> <Tab label="Item Five" icon={<ShoppingBasket />} /> <Tab label="Item Six" icon={<ThumbDown />} /> <Tab label="Item Seven" icon={<ThumbUp />} /> </Tabs> </AppBar> {value === 0 && <TabContainer>Item One</TabContainer>} {value === 1 && <TabContainer>Item Two</TabContainer>} {value === 2 && <TabContainer>Item Three</TabContainer>} {value === 3 && <TabContainer>Item Four</TabContainer>} {value === 4 && <TabContainer>Item Five</TabContainer>} {value === 5 && <TabContainer>Item Six</TabContainer>} {value === 6 && <TabContainer>Item Seven</TabContainer>} </div> ); } export default ScrollableTabsButtonForce;
packages/material-ui-icons/src/VideocamOffOutlined.js
Kagami/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.56 8l-2-2-4.15-4.14L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.55-.18L19.73 21l1.41-1.41-8.86-8.86L9.56 8zM5 16V8h1.73l8 8H5zM15 8v2.61l6 6V6.5l-4 4V7c0-.55-.45-1-1-1h-5.61l2 2H15z" /></React.Fragment> , 'VideocamOffOutlined');