diff --git a/docs/src/app/app-routes.jsx b/docs/src/app/app-routes.jsx index 6571ed4c68c46f..2d42fdf341bfb7 100644 --- a/docs/src/app/app-routes.jsx +++ b/docs/src/app/app-routes.jsx @@ -114,4 +114,4 @@ const AppRoutes = ( ); -module.exports = AppRoutes; +export default AppRoutes; diff --git a/docs/src/app/components/app-left-nav.jsx b/docs/src/app/components/app-left-nav.jsx index 8ccd5c6919401c..d9cea0f970e62d 100644 --- a/docs/src/app/components/app-left-nav.jsx +++ b/docs/src/app/components/app-left-nav.jsx @@ -91,4 +91,4 @@ const AppLeftNav = React.createClass({ }); -module.exports = AppLeftNav; +export default AppLeftNav; diff --git a/docs/src/app/components/code-example/code-block.jsx b/docs/src/app/components/code-example/code-block.jsx index 8c6f7b379b1460..dd36ebeb8bbb80 100644 --- a/docs/src/app/components/code-example/code-block.jsx +++ b/docs/src/app/components/code-example/code-block.jsx @@ -57,4 +57,4 @@ const CodeBlock = React.createClass({ }, }); -module.exports = CodeBlock; +export default CodeBlock; diff --git a/docs/src/app/components/code-example/code-example.jsx b/docs/src/app/components/code-example/code-example.jsx index b4df8aeea11dc0..598c48cec7fb46 100644 --- a/docs/src/app/components/code-example/code-example.jsx +++ b/docs/src/app/components/code-example/code-example.jsx @@ -94,4 +94,4 @@ const CodeExample = React.createClass({ }, }); -module.exports = CodeExample; +export default CodeExample; diff --git a/docs/src/app/components/component-doc.jsx b/docs/src/app/components/component-doc.jsx index 51e252884772ef..8241654639ac6c 100644 --- a/docs/src/app/components/component-doc.jsx +++ b/docs/src/app/components/component-doc.jsx @@ -135,4 +135,4 @@ const ComponentDoc = React.createClass({ }); -module.exports = ComponentDoc; +export default ComponentDoc; diff --git a/docs/src/app/components/component-info.jsx b/docs/src/app/components/component-info.jsx index 103a9a5518f747..ce5b95f7474262 100644 --- a/docs/src/app/components/component-info.jsx +++ b/docs/src/app/components/component-info.jsx @@ -177,4 +177,4 @@ const ComponentInfo = React.createClass({ }, }); -module.exports = ComponentInfo; +export default ComponentInfo; diff --git a/docs/src/app/components/full-width-section.jsx b/docs/src/app/components/full-width-section.jsx index a9b5c42ed2eb4b..3b64fdd6c4a0c1 100644 --- a/docs/src/app/components/full-width-section.jsx +++ b/docs/src/app/components/full-width-section.jsx @@ -78,4 +78,4 @@ let FullWidthSection = React.createClass({ }, }); -module.exports = FullWidthSection; +export default FullWidthSection; diff --git a/docs/src/app/components/master.jsx b/docs/src/app/components/master.jsx index 5ba6299ba9b808..b66db99b5a2739 100644 --- a/docs/src/app/components/master.jsx +++ b/docs/src/app/components/master.jsx @@ -255,4 +255,4 @@ const Master = React.createClass({ }, }); -module.exports = Master; +export default Master; diff --git a/docs/src/app/components/mobile-tear-sheet.jsx b/docs/src/app/components/mobile-tear-sheet.jsx index b3db57feb0abbb..15fd53366a8490 100644 --- a/docs/src/app/components/mobile-tear-sheet.jsx +++ b/docs/src/app/components/mobile-tear-sheet.jsx @@ -57,4 +57,4 @@ const MobileTearSheet = React.createClass({ }); -module.exports = MobileTearSheet; +export default MobileTearSheet; diff --git a/docs/src/app/components/pages/components/app-bar.jsx b/docs/src/app/components/pages/components/app-bar.jsx index 956df22fe2bac5..baf6c975ec9f9e 100644 --- a/docs/src/app/components/pages/components/app-bar.jsx +++ b/docs/src/app/components/pages/components/app-bar.jsx @@ -1,7 +1,8 @@ import React from 'react'; -import {AppBar, Paper} from 'material-ui'; +import AppBar from 'material-ui/app-bar'; +import Paper from 'material-ui/paper'; import IconButton from 'icon-button'; -import NavigationClose from 'svg-icons/navigation/close'; +import NavigationClose from 'material-ui/svg-icons/navigation/close'; import FlatButton from 'flat-button'; import ComponentDoc from '../../component-doc'; import CodeExample from '../../code-example/code-example'; @@ -9,7 +10,7 @@ import CodeBlock from '../../code-example/code-block'; import Code from 'app-bar-code'; import IconMenu from 'menus/icon-menu'; import MenuItem from 'menus/menu-item'; -import MoreVertIcon from 'svg-icons/navigation/more-vert'; +import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; const styles = { title: { diff --git a/docs/src/app/components/pages/components/auto-complete.jsx b/docs/src/app/components/pages/components/auto-complete.jsx index f32d91619be6a6..0bf9f1ac97b10e 100644 --- a/docs/src/app/components/pages/components/auto-complete.jsx +++ b/docs/src/app/components/pages/components/auto-complete.jsx @@ -92,4 +92,4 @@ class AutoCompletePage extends React.Component { } -module.exports = AutoCompletePage; +export default AutoCompletePage; diff --git a/docs/src/app/components/pages/components/avatars.jsx b/docs/src/app/components/pages/components/avatars.jsx index f8be4a01012500..ca3740e873c54c 100644 --- a/docs/src/app/components/pages/components/avatars.jsx +++ b/docs/src/app/components/pages/components/avatars.jsx @@ -1,7 +1,14 @@ import React from 'react'; -import {Avatar, FontIcon, List, ListItem, Styles, Paper} from 'material-ui'; +import { + Avatar, + FontIcon, + List, + ListItem, + Styles, + Paper, +} from 'material-ui'; import ComponentDoc from '../../component-doc'; -import FileFolder from 'svg-icons/file/folder'; +import FileFolder from 'material-ui/svg-icons/file/folder'; const {Colors} = Styles; import Code from 'avatars-code'; import CodeExample from '../../code-example/code-example'; diff --git a/docs/src/app/components/pages/components/badge.jsx b/docs/src/app/components/pages/components/badge.jsx index d720491b169a2c..c9060502181d1e 100644 --- a/docs/src/app/components/pages/components/badge.jsx +++ b/docs/src/app/components/pages/components/badge.jsx @@ -1,12 +1,16 @@ import React from 'react'; -import {IconButton, Badge, Paper} from 'material-ui'; +import { + IconButton, + Badge, + Paper, +} from 'material-ui'; import ComponentDoc from '../../component-doc'; import Code from 'badge-code'; import CodeExample from '../../code-example/code-example'; -import NotificationsIcon from 'svg-icons/social/notifications'; -import ShoppingCartIcon from 'svg-icons/action/shopping-cart'; -import FolderIcon from 'svg-icons/file/folder-open'; -import UploadIcon from 'svg-icons/file/cloud-upload'; +import NotificationsIcon from 'material-ui/svg-icons/social/notifications'; +import ShoppingCartIcon from 'material-ui/svg-icons/action/shopping-cart'; +import FolderIcon from 'material-ui/svg-icons/file/folder-open'; +import UploadIcon from 'material-ui/svg-icons/file/cloud-upload'; import CodeBlock from '../../code-example/code-block'; export default class BadgePage extends React.Component { diff --git a/docs/src/app/components/pages/components/buttons.jsx b/docs/src/app/components/pages/components/buttons.jsx index e7462816cc355e..56cfc08b924117 100644 --- a/docs/src/app/components/pages/components/buttons.jsx +++ b/docs/src/app/components/pages/components/buttons.jsx @@ -1,9 +1,8 @@ import React from 'react'; import ComponentDoc from '../../component-doc'; -import mui from 'material-ui'; -import ToggleStar from 'svg-icons/toggle/star'; +import ToggleStar from 'material-ui/svg-icons/toggle/star'; -const { +import { FlatButton, FloatingActionButton, FontIcon, @@ -13,7 +12,7 @@ const { Tab, Tabs, Utils, -} = mui; +} from 'material-ui'; const extend = Utils.Extend; const {Colors, Typography} = Styles; import RaisedButtonCode from 'raised-button-code'; diff --git a/docs/src/app/components/pages/components/grid-list.jsx b/docs/src/app/components/pages/components/grid-list.jsx index 828a2e39d92862..b7e3ee45715651 100644 --- a/docs/src/app/components/pages/components/grid-list.jsx +++ b/docs/src/app/components/pages/components/grid-list.jsx @@ -1,7 +1,7 @@ import React from 'react'; import {GridList, GridTile, Paper} from 'material-ui'; -import StarBorder from 'svg-icons/toggle/star-border'; +import StarBorder from 'material-ui/svg-icons/toggle/star-border'; import IconButton from 'icon-button'; import ComponentDoc from '../../component-doc'; @@ -241,4 +241,4 @@ class GridListPage extends React.Component { } -module.exports = GridListPage; +export default GridListPage; diff --git a/docs/src/app/components/pages/components/icon-buttons.jsx b/docs/src/app/components/pages/components/icon-buttons.jsx index 7910a295d4a81b..f3de18fe3d42cd 100644 --- a/docs/src/app/components/pages/components/icon-buttons.jsx +++ b/docs/src/app/components/pages/components/icon-buttons.jsx @@ -1,7 +1,11 @@ import React from 'react'; -import {FontIcon, IconButton, Paper} from 'material-ui'; +import { + FontIcon, + IconButton, + Paper, +} from 'material-ui'; import ComponentDoc from '../../component-doc'; -import ActionGrade from 'svg-icons/action/grade'; +import ActionGrade from 'material-ui/svg-icons/action/grade'; import Code from 'icon-buttons-code'; import CodeExample from '../../code-example/code-example'; import CodeBlock from '../../code-example/code-block'; @@ -11,11 +15,12 @@ export default class IconButtonsPage extends React.Component { render() { let desc = ( -

- This component generates a button element and all props. - Also, focus styles will happen on tab but not on click. - There are three ways to add an icon: -
+

+

+ This component generates a button element and all props. + Also, focus styles will happen on tab but not on click. + There are three ways to add an icon: +

  1. For stylesheets: Set the prop "iconClassName" to the @@ -40,7 +45,7 @@ export default class IconButtonsPage extends React.Component { iconClassName prop.
-

+
); let componentInfo = [ diff --git a/docs/src/app/components/pages/components/icon-menus.jsx b/docs/src/app/components/pages/components/icon-menus.jsx index dbbff80cd629f4..0a788c8f47357f 100644 --- a/docs/src/app/components/pages/components/icon-menus.jsx +++ b/docs/src/app/components/pages/components/icon-menus.jsx @@ -3,17 +3,17 @@ import {IconButton, Paper} from 'material-ui'; import IconMenu from 'menus/icon-menu'; import MenuItem from 'menus/menu-item'; import MenuDivider from 'menus/menu-divider'; -import MoreVertIcon from 'svg-icons/navigation/more-vert'; +import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import ComponentDoc from '../../component-doc'; -import ContentCopy from 'svg-icons/content/content-copy'; -import ContentFilter from 'svg-icons/content/filter-list'; -import ContentLink from 'svg-icons/content/link'; -import Delete from 'svg-icons/action/delete'; -import Download from 'svg-icons/file/file-download'; -import MapsPlace from 'svg-icons/maps/place'; -import PersonAdd from 'svg-icons/social/person-add'; -import RemoveRedEye from 'svg-icons/image/remove-red-eye'; +import ContentCopy from 'material-ui/svg-icons/content/content-copy'; +import ContentFilter from 'material-ui/svg-icons/content/filter-list'; +import ContentLink from 'material-ui/svg-icons/content/link'; +import Delete from 'material-ui/svg-icons/action/delete'; +import Download from 'material-ui/svg-icons/file/file-download'; +import MapsPlace from 'material-ui/svg-icons/maps/place'; +import PersonAdd from 'material-ui/svg-icons/social/person-add'; +import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; import Code from 'icon-menus-code'; import CodeExample from '../../code-example/code-example'; import CodeBlock from '../../code-example/code-block'; diff --git a/docs/src/app/components/pages/components/icons.jsx b/docs/src/app/components/pages/components/icons.jsx index 46add44b947f71..b871edac021391 100644 --- a/docs/src/app/components/pages/components/icons.jsx +++ b/docs/src/app/components/pages/components/icons.jsx @@ -2,7 +2,7 @@ import React from 'react'; import {FontIcon, Styles, Paper} from 'material-ui'; import CodeBlock from '../../code-example/code-block'; import ComponentDoc from '../../component-doc'; -import ActionHome from 'svg-icons/action/home'; +import ActionHome from 'material-ui/svg-icons/action/home'; const {Colors, Typography} = Styles; import IconButtonCode from 'icons-code'; @@ -26,24 +26,26 @@ export default class FontIconPage extends React.Component { render() { - let fontIconDesc = ( -

- This component will render any icon defined in any style sheets included in your - project. We are using Google's Material Design - Icons for our documentation site along with some custom icons. You can use - sites like IcoMoon for - generating custom font files. To use FontIcons, add your stylesheet to your project - and reference the icon's className in the "className" prop.

- We also support Google's - Material Icons as seen in the third block of code. If you're using the material icons, be sure to include the link to the font icon file in your head section: + const fontIconDesc = ( +

+

+ This component will render any icon defined in any style sheets included in your + project. We are using Google's Material Design + Icons for our documentation site along with some custom icons. You can use + sites like IcoMoon for + generating custom font files. To use FontIcons, add your stylesheet to your project + and reference the icon's className in the "className" prop.

+ We also support Google's + Material Icons as seen in the third block of code. If you're using the material icons, be sure to include the link to the font icon file in your head section: +

{''} -

+
); let svgIconDesc = ( diff --git a/docs/src/app/components/pages/components/lists.jsx b/docs/src/app/components/pages/components/lists.jsx index b35d4f9bc7bb2b..86f709bf9244ba 100644 --- a/docs/src/app/components/pages/components/lists.jsx +++ b/docs/src/app/components/pages/components/lists.jsx @@ -2,18 +2,18 @@ import React from 'react'; import mui from 'material-ui'; import ComponentDoc from '../../component-doc'; import MobileTearSheet from '../../mobile-tear-sheet'; -import ActionAssignment from 'svg-icons/action/assignment'; -import ActionGrade from 'svg-icons/action/grade'; -import ActionInfo from 'svg-icons/action/info'; -import CommunicationCall from 'svg-icons/communication/call'; -import CommunicationChatBubble from 'svg-icons/communication/chat-bubble'; -import CommunicationEmail from 'svg-icons/communication/email'; -import ContentDrafts from 'svg-icons/content/drafts'; -import ContentInbox from 'svg-icons/content/inbox'; -import ContentSend from 'svg-icons/content/send'; -import EditorInsertChart from 'svg-icons/editor/insert-chart'; -import FileFolder from 'svg-icons/file/folder'; -import MoreVertIcon from 'svg-icons/navigation/more-vert'; +import ActionAssignment from 'material-ui/svg-icons/action/assignment'; +import ActionGrade from 'material-ui/svg-icons/action/grade'; +import ActionInfo from 'material-ui/svg-icons/action/info'; +import CommunicationCall from 'material-ui/svg-icons/communication/call'; +import CommunicationChatBubble from 'material-ui/svg-icons/communication/chat-bubble'; +import CommunicationEmail from 'material-ui/svg-icons/communication/email'; +import ContentDrafts from 'material-ui/svg-icons/content/drafts'; +import ContentInbox from 'material-ui/svg-icons/content/inbox'; +import ContentSend from 'material-ui/svg-icons/content/send'; +import EditorInsertChart from 'material-ui/svg-icons/editor/insert-chart'; +import FileFolder from 'material-ui/svg-icons/file/folder'; +import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import {SelectableContainerEnhance} from 'material-ui/hoc/selectable-enhance'; const { diff --git a/docs/src/app/components/pages/components/menus.jsx b/docs/src/app/components/pages/components/menus.jsx index 362a2f6454abde..10b713670a7c1a 100644 --- a/docs/src/app/components/pages/components/menus.jsx +++ b/docs/src/app/components/pages/components/menus.jsx @@ -5,13 +5,13 @@ import MenuItem from 'menus/menu-item'; import MenuDivider from 'menus/menu-divider'; import ComponentDoc from '../../component-doc'; -import ArrowDropRight from 'svg-icons/navigation-arrow-drop-right'; -import ContentCopy from 'svg-icons/content/content-copy'; -import ContentLink from 'svg-icons/content/link'; -import Delete from 'svg-icons/action/delete'; -import Download from 'svg-icons/file/file-download'; -import PersonAdd from 'svg-icons/social/person-add'; -import RemoveRedEye from 'svg-icons/image/remove-red-eye'; +import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; +import ContentCopy from 'material-ui/svg-icons/content/content-copy'; +import ContentLink from 'material-ui/svg-icons/content/link'; +import Delete from 'material-ui/svg-icons/action/delete'; +import Download from 'material-ui/svg-icons/file/file-download'; +import PersonAdd from 'material-ui/svg-icons/social/person-add'; +import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; import Code from 'menus-code'; import CodeExample from '../../code-example/code-example'; import CodeBlock from '../../code-example/code-block'; diff --git a/docs/src/app/components/pages/components/paper.jsx b/docs/src/app/components/pages/components/paper.jsx index 1816fc0b1692a0..6264503ee2087f 100644 --- a/docs/src/app/components/pages/components/paper.jsx +++ b/docs/src/app/components/pages/components/paper.jsx @@ -119,10 +119,9 @@ import Paper from 'material-ui/lib/paper'; }, _createPaperElement(zDepth, text) { - let styles = this.getStyles(); return ( {this._createParagraphElement(text)} @@ -155,4 +154,4 @@ import Paper from 'material-ui/lib/paper'; }); -module.exports = PaperPage; +export default PaperPage; diff --git a/docs/src/app/components/pages/components/popover.jsx b/docs/src/app/components/pages/components/popover.jsx index ab9da2b6b194dc..dddde07f030284 100644 --- a/docs/src/app/components/pages/components/popover.jsx +++ b/docs/src/app/components/pages/components/popover.jsx @@ -185,4 +185,4 @@ let PopoverPage = React.createClass({ }); -module.exports = PopoverPage; +export default PopoverPage; diff --git a/docs/src/app/components/pages/components/progress.jsx b/docs/src/app/components/pages/components/progress.jsx index e20098e6d4389d..310b4fac6f0fde 100644 --- a/docs/src/app/components/pages/components/progress.jsx +++ b/docs/src/app/components/pages/components/progress.jsx @@ -133,4 +133,4 @@ const ProgressPage = React.createClass({ }); -module.exports = ProgressPage; +export default ProgressPage; diff --git a/docs/src/app/components/pages/components/refresh-indicator.jsx b/docs/src/app/components/pages/components/refresh-indicator.jsx index a3d7fea0fa2acb..bbd4d6455fed91 100644 --- a/docs/src/app/components/pages/components/refresh-indicator.jsx +++ b/docs/src/app/components/pages/components/refresh-indicator.jsx @@ -124,4 +124,4 @@ let RefreshIndicatorPage = React.createClass({ }); -module.exports = RefreshIndicatorPage; +export default RefreshIndicatorPage; diff --git a/docs/src/app/components/pages/components/select-fields.jsx b/docs/src/app/components/pages/components/select-fields.jsx index 4cbc9268bcb655..0b1682aa139b12 100644 --- a/docs/src/app/components/pages/components/select-fields.jsx +++ b/docs/src/app/components/pages/components/select-fields.jsx @@ -276,4 +276,4 @@ const SelectFieldsPage = React.createClass({ }, }); -module.exports = SelectFieldsPage; +export default SelectFieldsPage; diff --git a/docs/src/app/components/pages/components/switches.jsx b/docs/src/app/components/pages/components/switches.jsx index b3d5b36cebb145..1144b23c84fc36 100644 --- a/docs/src/app/components/pages/components/switches.jsx +++ b/docs/src/app/components/pages/components/switches.jsx @@ -2,8 +2,8 @@ import React from 'react'; import mui from 'material-ui'; import CodeExample from '../../code-example/code-example'; import ComponentDoc from '../../component-doc'; -import ToggleStar from 'svg-icons/toggle/star'; -import ToggleStarBorder from 'svg-icons/toggle/star-border'; +import ToggleStar from 'material-ui/svg-icons/toggle/star'; +import ToggleStarBorder from 'material-ui/svg-icons/toggle/star-border'; const { Checkbox, diff --git a/docs/src/app/components/pages/components/text-fields.jsx b/docs/src/app/components/pages/components/text-fields.jsx index fd700c55a30eff..dfc58ffda901c0 100644 --- a/docs/src/app/components/pages/components/text-fields.jsx +++ b/docs/src/app/components/pages/components/text-fields.jsx @@ -413,4 +413,4 @@ const TextFieldsPage = React.createClass({ }); -module.exports = TextFieldsPage; +export default TextFieldsPage; diff --git a/docs/src/app/components/pages/components/time-picker.jsx b/docs/src/app/components/pages/components/time-picker.jsx index b29a7fd80406d1..023485984a5949 100644 --- a/docs/src/app/components/pages/components/time-picker.jsx +++ b/docs/src/app/components/pages/components/time-picker.jsx @@ -186,4 +186,4 @@ const TimePickerPage = React.createClass({ }); -module.exports = TimePickerPage; +export default TimePickerPage; diff --git a/docs/src/app/components/pages/customization/colors.jsx b/docs/src/app/components/pages/customization/colors.jsx index 0cf669340d3727..eceb08f5a1284e 100644 --- a/docs/src/app/components/pages/customization/colors.jsx +++ b/docs/src/app/components/pages/customization/colors.jsx @@ -152,4 +152,4 @@ const ColorsPage = React.createClass({ }); -module.exports = ColorsPage; +export default ColorsPage; diff --git a/docs/src/app/components/pages/customization/inline-styles.jsx b/docs/src/app/components/pages/customization/inline-styles.jsx index bb3708eb7429b8..f3935d69fd4ecb 100644 --- a/docs/src/app/components/pages/customization/inline-styles.jsx +++ b/docs/src/app/components/pages/customization/inline-styles.jsx @@ -128,4 +128,4 @@ const InlineStyles = React.createClass({ }); -module.exports = InlineStyles; +export default InlineStyles; diff --git a/docs/src/app/components/pages/get-started/examples.jsx b/docs/src/app/components/pages/get-started/examples.jsx index d9a2fb6ed15f4d..fa308bac8ce92b 100644 --- a/docs/src/app/components/pages/get-started/examples.jsx +++ b/docs/src/app/components/pages/get-started/examples.jsx @@ -78,4 +78,4 @@ const Examples = React.createClass({ }); -module.exports = Examples; +export default Examples; diff --git a/docs/src/app/components/pages/get-started/installation.jsx b/docs/src/app/components/pages/get-started/installation.jsx index 881556ec482a1b..d7ef48c208167c 100644 --- a/docs/src/app/components/pages/get-started/installation.jsx +++ b/docs/src/app/components/pages/get-started/installation.jsx @@ -79,7 +79,7 @@ const Installation = React.createClass({ ' );\n' + ' },\n' + '});\n\n' + - 'module.exports = MyAwesomeReactComponent;\n', + 'export default MyAwesomeReactComponent;\n', usageNotesCode = 'import injectTapEventPlugin from "react-tap-event-plugin";\n\n' + @@ -162,4 +162,4 @@ const Installation = React.createClass({ }); -module.exports = Installation; +export default Installation; diff --git a/docs/src/app/components/pages/get-started/prerequisites.jsx b/docs/src/app/components/pages/get-started/prerequisites.jsx index ce8ed971648c9a..b9e855e5af1b13 100644 --- a/docs/src/app/components/pages/get-started/prerequisites.jsx +++ b/docs/src/app/components/pages/get-started/prerequisites.jsx @@ -155,4 +155,4 @@ const Prerequisites = React.createClass({ }); -module.exports = Prerequisites; +export default Prerequisites; diff --git a/docs/src/app/components/pages/home-feature.jsx b/docs/src/app/components/pages/home-feature.jsx index a4b97045a85970..8df17b094eb181 100644 --- a/docs/src/app/components/pages/home-feature.jsx +++ b/docs/src/app/components/pages/home-feature.jsx @@ -122,4 +122,4 @@ let HomeFeature = React.createClass({ }); -module.exports = HomeFeature; +export default HomeFeature; diff --git a/docs/src/app/components/pages/home.jsx b/docs/src/app/components/pages/home.jsx index 2b16db9c5f14ac..c2f12ed584f532 100644 --- a/docs/src/app/components/pages/home.jsx +++ b/docs/src/app/components/pages/home.jsx @@ -211,4 +211,4 @@ const HomePage = React.createClass({ }, }); -module.exports = HomePage; +export default HomePage; diff --git a/docs/src/app/components/pages/page-with-nav.jsx b/docs/src/app/components/pages/page-with-nav.jsx index e2e79d501538fe..74d9fd972cbb31 100644 --- a/docs/src/app/components/pages/page-with-nav.jsx +++ b/docs/src/app/components/pages/page-with-nav.jsx @@ -95,4 +95,4 @@ let PageWithNav = React.createClass({ }); -module.exports = PageWithNav; +export default PageWithNav; diff --git a/docs/src/app/components/raw-code/svg-icons-code.txt b/docs/src/app/components/raw-code/svg-icons-code.txt index 8f36144cc44988..569b761469887d 100644 --- a/docs/src/app/components/raw-code/svg-icons-code.txt +++ b/docs/src/app/components/raw-code/svg-icons-code.txt @@ -13,7 +13,7 @@ const ActionHome = React.createClass({ } }); -module.exports = ActionHome; +export default ActionHome; /** Some other component. */ diff --git a/docs/src/app/components/svg-icons/action-assignment.jsx b/docs/src/app/components/svg-icons/action-assignment.jsx deleted file mode 100644 index a8e677665b6eeb..00000000000000 --- a/docs/src/app/components/svg-icons/action-assignment.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ActionAssignment extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ActionAssignment; diff --git a/docs/src/app/components/svg-icons/action-grade.jsx b/docs/src/app/components/svg-icons/action-grade.jsx deleted file mode 100644 index d2c27180326faa..00000000000000 --- a/docs/src/app/components/svg-icons/action-grade.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ActionGrade extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ActionGrade; diff --git a/docs/src/app/components/svg-icons/action-home.jsx b/docs/src/app/components/svg-icons/action-home.jsx deleted file mode 100644 index d1287b925378a7..00000000000000 --- a/docs/src/app/components/svg-icons/action-home.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ActionHome extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ActionHome; diff --git a/docs/src/app/components/svg-icons/action-info.jsx b/docs/src/app/components/svg-icons/action-info.jsx deleted file mode 100644 index 583fbb3548e19a..00000000000000 --- a/docs/src/app/components/svg-icons/action-info.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ActionInfo extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ActionInfo; diff --git a/docs/src/app/components/svg-icons/communication-call.jsx b/docs/src/app/components/svg-icons/communication-call.jsx deleted file mode 100644 index 6ed662eabc5f6a..00000000000000 --- a/docs/src/app/components/svg-icons/communication-call.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class CommunicationCall extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = CommunicationCall; diff --git a/docs/src/app/components/svg-icons/communication-chat-bubble.jsx b/docs/src/app/components/svg-icons/communication-chat-bubble.jsx deleted file mode 100644 index a2d745a05a495a..00000000000000 --- a/docs/src/app/components/svg-icons/communication-chat-bubble.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class CommunicationChatBubble extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = CommunicationChatBubble; diff --git a/docs/src/app/components/svg-icons/communication-email.jsx b/docs/src/app/components/svg-icons/communication-email.jsx deleted file mode 100644 index 5ad9faddb3c03f..00000000000000 --- a/docs/src/app/components/svg-icons/communication-email.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class CommunicationEmail extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = CommunicationEmail; diff --git a/docs/src/app/components/svg-icons/content-drafts.jsx b/docs/src/app/components/svg-icons/content-drafts.jsx deleted file mode 100644 index 7b6fedf096bbe3..00000000000000 --- a/docs/src/app/components/svg-icons/content-drafts.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ContentDrafts extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ContentDrafts; diff --git a/docs/src/app/components/svg-icons/content-inbox.jsx b/docs/src/app/components/svg-icons/content-inbox.jsx deleted file mode 100644 index 5d4af9ae1f4c5e..00000000000000 --- a/docs/src/app/components/svg-icons/content-inbox.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ContentInbox extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ContentInbox; diff --git a/docs/src/app/components/svg-icons/content-send.jsx b/docs/src/app/components/svg-icons/content-send.jsx deleted file mode 100644 index 9c36cf1b6be838..00000000000000 --- a/docs/src/app/components/svg-icons/content-send.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ContentSend extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ContentSend; diff --git a/docs/src/app/components/svg-icons/editor-insert-chart.jsx b/docs/src/app/components/svg-icons/editor-insert-chart.jsx deleted file mode 100644 index 58e17b42c0e730..00000000000000 --- a/docs/src/app/components/svg-icons/editor-insert-chart.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class EditorInsertChart extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = EditorInsertChart; diff --git a/docs/src/app/components/svg-icons/file-folder.jsx b/docs/src/app/components/svg-icons/file-folder.jsx deleted file mode 100644 index a165f061e20fcf..00000000000000 --- a/docs/src/app/components/svg-icons/file-folder.jsx +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class FileFolder extends React.Component { - - render() { - return ( - - - - ); - } -} - -module.exports = FileFolder; diff --git a/docs/src/app/components/svg-icons/toggle-star-border.jsx b/docs/src/app/components/svg-icons/toggle-star-border.jsx deleted file mode 100644 index 28a16d62584720..00000000000000 --- a/docs/src/app/components/svg-icons/toggle-star-border.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ToggleStarBorder extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ToggleStarBorder; diff --git a/docs/src/app/components/svg-icons/toggle-star.jsx b/docs/src/app/components/svg-icons/toggle-star.jsx deleted file mode 100644 index 35c00853a2c72c..00000000000000 --- a/docs/src/app/components/svg-icons/toggle-star.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import {SvgIcon} from 'mui'; - - -class ToggleStar extends React.Component { - - render() { - return ( - - - - ); - } - -} - -module.exports = ToggleStar; diff --git a/gulpfile.js b/gulpfile.js index 0d059f6f8ee99e..e45ae64755cfa3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -22,8 +22,8 @@ gulp.task('eslint:src', function() { // Alternatively use eslint.formatEach() (see Docs). .pipe(eslint.format()) // To have the process exit with an error code (1) on - // lint error, return the stream and pipe to failOnError last. - .pipe(eslint.failOnError()) + // lint error, return the stream and pipe to failAfterError last. + .pipe(eslint.failAfterError()) .pipe(gulpIf(isFixed, gulp.dest('src'))); }); @@ -35,7 +35,7 @@ gulp.task('eslint:docs', function() { fix: fix, })) .pipe(eslint.format()) - .pipe(eslint.failOnError()) + .pipe(eslint.failAfterError()) .pipe(gulpIf(isFixed, gulp.dest('docs/src'))); }); @@ -47,6 +47,6 @@ gulp.task('eslint:test', function() { fix: fix, })) .pipe(eslint.format()) - .pipe(eslint.failOnError()) + .pipe(eslint.failAfterError()) .pipe(gulpIf(isFixed, gulp.dest('test'))); });