diff --git a/.eslintignore b/.eslintignore index ed9f4cbbf99ff9..a662506f97a46e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -7,6 +7,5 @@ node_modules /packages/**/lib /packages/material-ui-icons /packages/material-ui-codemod/modules/v0.15.0 -/src/svg-icons /test/coverage /test/regressions/site/build diff --git a/.eslintrc.js b/.eslintrc.js index 2be5d1f26a3268..29ab9d00c0579c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -28,6 +28,7 @@ module.exports = { ignoreUrls: true, }], // airbnb is allowing some edge cases 'no-console': 'error', // airbnb is using warn + 'no-alert': 'error', // airbnb is using warn 'no-param-reassign': 'off', // Not our taste? 'no-prototype-builtins': 'off', // airbnb use error 'no-use-before-define': ['error', { 'functions': false }], // airbnb have functions: true, annoying diff --git a/docs/package.json b/docs/package.json index 041990d20f665f..d19a34c6594e82 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,11 +15,11 @@ "clean": "rimraf build" }, "devDependencies": { - "babel-cli": "^6.24.0", + "babel-cli": "^6.24.1", "babel-loader": "^6.4.1", - "babel-preset-es2015": "^6.24.0", - "babel-preset-react": "^6.23.0", - "babel-preset-stage-1": "^6.22.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-react": "^6.24.1", + "babel-preset-stage-1": "^6.24.1", "cross-env": "^4.0.0", "css-loader": "^0.28.0", "file-loader": "^0.11.1", @@ -27,19 +27,20 @@ "object-assign": "^4.1.1", "raw-loader": "^0.5.1", "react-hot-loader": "3.0.0-beta.6", - "redbox-react": "^1.3.4", + "redbox-react": "^1.3.5", "rimraf": "^2.6.1", "style-loader": "^0.16.1", - "webpack": "^2.3.2", + "webpack": "^2.3.3", "webpack-dev-server": "^2.4.2" }, "dependencies": { + "babel-runtime": "^6.23.0", "marked": "^0.3.6", "prismjs": "^1.6.0", "react-redux": "^5.0.3", "react-router": "^3.0.2", "react-router-scroll": "^0.4.1", - "react-swipeable-views": "^0.10.7", + "react-swipeable-views": "^0.12.0", "redux": "^3.5.2" } } diff --git a/docs/src/components/ApiMenu.js b/docs/src/components/ApiMenu.js index 3061a9854c5e40..640a493e93a177 100644 --- a/docs/src/components/ApiMenu.js +++ b/docs/src/components/ApiMenu.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import ApiMenuComponents from 'docs/src/components/ApiMenuComponents'; import { demoComponentsTree } from 'docs/src/components/files'; diff --git a/docs/src/components/ApiMenuComponents.js b/docs/src/components/ApiMenuComponents.js index c8635db16d21c5..c375839903a5c3 100644 --- a/docs/src/components/ApiMenuComponents.js +++ b/docs/src/components/ApiMenuComponents.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { Link } from 'react-router'; import IconButton from 'material-ui/IconButton'; import { Menu, MenuItem } from 'material-ui/Menu'; diff --git a/docs/src/components/App.js b/docs/src/components/App.js index 309f1f439573ac..8982a8244ffa0b 100644 --- a/docs/src/components/App.js +++ b/docs/src/components/App.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import MuiThemeProvider, { MUI_SHEET_ORDER } from 'material-ui/styles/MuiThemeProvider'; import createPalette from 'material-ui/styles/palette'; diff --git a/docs/src/components/AppContent.js b/docs/src/components/AppContent.js index 86612e24d7ba19..9dc52648ea9a4b 100644 --- a/docs/src/components/AppContent.js +++ b/docs/src/components/AppContent.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from 'material-ui/utils/customPropTypes'; diff --git a/docs/src/components/AppDrawer.js b/docs/src/components/AppDrawer.js index e9bcd2467d1036..6aafb5ec103150 100644 --- a/docs/src/components/AppDrawer.js +++ b/docs/src/components/AppDrawer.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { createStyleSheet } from 'jss-theme-reactor'; import shallowEqual from 'recompose/shallowEqual'; diff --git a/docs/src/components/AppDrawerNavItem.js b/docs/src/components/AppDrawerNavItem.js index e3cb12d9c1512c..10ad09501ca0ca 100644 --- a/docs/src/components/AppDrawerNavItem.js +++ b/docs/src/components/AppDrawerNavItem.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { Link } from 'react-router'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; diff --git a/docs/src/components/AppFrame.js b/docs/src/components/AppFrame.js index a2554ad2d4a1e1..39d94d88744011 100644 --- a/docs/src/components/AppFrame.js +++ b/docs/src/components/AppFrame.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import compose from 'recompose/compose'; import { createStyleSheet } from 'jss-theme-reactor'; diff --git a/docs/src/components/Demo.js b/docs/src/components/Demo.js index 9fb71d733bb332..c91c8ffc9995d1 100644 --- a/docs/src/components/Demo.js +++ b/docs/src/components/Demo.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import shallowEqual from 'recompose/shallowEqual'; import customPropTypes from 'material-ui/utils/customPropTypes'; diff --git a/docs/src/components/DemoButton.js b/docs/src/components/DemoButton.js index 2ba7b73c71e947..5dcf675c81bab2 100644 --- a/docs/src/components/DemoButton.js +++ b/docs/src/components/DemoButton.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import { Link } from 'react-router'; import IconButton from 'material-ui/IconButton'; import PlayCircleOutlineIcon from 'material-ui-icons/PlayCircleOutline'; diff --git a/docs/src/components/MarkdownDocs.js b/docs/src/components/MarkdownDocs.js index 097162997f205a..9eae9a8b140302 100644 --- a/docs/src/components/MarkdownDocs.js +++ b/docs/src/components/MarkdownDocs.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from 'material-ui/utils/customPropTypes'; import Button from 'material-ui/Button'; diff --git a/docs/src/components/MarkdownElement.js b/docs/src/components/MarkdownElement.js index e97c9c05c304a4..c5d74083d3f1c9 100644 --- a/docs/src/components/MarkdownElement.js +++ b/docs/src/components/MarkdownElement.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import marked from 'marked'; diff --git a/docs/src/pages/component-demos/chips/Chips.js b/docs/src/pages/component-demos/chips/Chips.js index 210094265ddca0..8cc4da9644731f 100644 --- a/docs/src/pages/component-demos/chips/Chips.js +++ b/docs/src/pages/component-demos/chips/Chips.js @@ -24,11 +24,11 @@ const styleSheet = createStyleSheet('Chips', (theme) => ({ })); function handleRequestDelete() { - alert('You clicked the delete icon.'); // eslint-ignore-line no-alert + alert('You clicked the delete icon.'); // eslint-disable-line no-alert } function handleClick() { - alert('You clicked the Chip.'); // eslint-ignore-line no-alert + alert('You clicked the Chip.'); // eslint-disable-line no-alert } export default function Chips(props, context) { diff --git a/docs/src/pages/component-demos/chips/ChipsArray.js b/docs/src/pages/component-demos/chips/ChipsArray.js index c26a89f5521216..fe77077290100e 100644 --- a/docs/src/pages/component-demos/chips/ChipsArray.js +++ b/docs/src/pages/component-demos/chips/ChipsArray.js @@ -41,7 +41,7 @@ export default class ChipsArray extends Component { handleRequestDelete = (key) => { if (key === 3) { - alert('Why would you want to delete React?! :)'); // eslint-ignore-line no-alert + alert('Why would you want to delete React?! :)'); // eslint-disable-line no-alert return; } diff --git a/docs/src/pages/component-demos/dialogs/ConfirmationDialog.js b/docs/src/pages/component-demos/dialogs/ConfirmationDialog.js index 2920ae452e89cf..b57533ac9a78c7 100644 --- a/docs/src/pages/component-demos/dialogs/ConfirmationDialog.js +++ b/docs/src/pages/component-demos/dialogs/ConfirmationDialog.js @@ -1,7 +1,8 @@ // @flow weak /* eslint-disable react/no-multi-comp */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from 'material-ui/utils/customPropTypes'; import Button from 'material-ui/Button'; diff --git a/docs/src/pages/component-demos/tables/EnhancedTable.js b/docs/src/pages/component-demos/tables/EnhancedTable.js index ea7fa706004bdf..8fe0ffcc667d0c 100644 --- a/docs/src/pages/component-demos/tables/EnhancedTable.js +++ b/docs/src/pages/component-demos/tables/EnhancedTable.js @@ -1,7 +1,8 @@ // @flow weak /* eslint-disable react/no-multi-comp */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import keycode from 'keycode'; import customPropTypes from 'material-ui/utils/customPropTypes'; diff --git a/docs/src/pages/component-demos/tabs/BasicTabs.js b/docs/src/pages/component-demos/tabs/BasicTabs.js index f55eae08ffdc0b..c3c9edaa9e296b 100644 --- a/docs/src/pages/component-demos/tabs/BasicTabs.js +++ b/docs/src/pages/component-demos/tabs/BasicTabs.js @@ -1,7 +1,8 @@ // @flow weak /* eslint-disable react/no-multi-comp */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from 'material-ui/utils/customPropTypes'; import Paper from 'material-ui/Paper'; diff --git a/docs/src/pages/component-demos/tabs/FullWidthTabs.js b/docs/src/pages/component-demos/tabs/FullWidthTabs.js index 6dc61a9379c006..3199131a714198 100644 --- a/docs/src/pages/component-demos/tabs/FullWidthTabs.js +++ b/docs/src/pages/component-demos/tabs/FullWidthTabs.js @@ -1,7 +1,8 @@ // @flow weak /* eslint-disable react/no-multi-comp */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import SwipeableViews from 'react-swipeable-views'; import customPropTypes from 'material-ui/utils/customPropTypes'; diff --git a/docs/webpack.dll.config.js b/docs/webpack.dll.config.js index d1c44fea34bd45..3ed53c76ae0467 100644 --- a/docs/webpack.dll.config.js +++ b/docs/webpack.dll.config.js @@ -6,7 +6,7 @@ const packageJson = require('./package.json'); const packageJsonSrc = require('../package.json'); const excludedDeps = [ - 'lodash', 'recompose', 'object-assign', 'material-ui-icons', + 'lodash', 'recompose', 'object-assign', 'material-ui-icons', 'babel-runtime', ]; const deps = [ diff --git a/docs/webpack.dll.prod.config.js b/docs/webpack.dll.prod.config.js index 22d54e28b69a12..3a03f8fe329818 100644 --- a/docs/webpack.dll.prod.config.js +++ b/docs/webpack.dll.prod.config.js @@ -6,7 +6,7 @@ const packageJson = require('./package.json'); const packageJsonSrc = require('../package.json'); const excludedDeps = [ - 'lodash', 'recompose', 'object-assign', 'material-ui-icons', + 'lodash', 'recompose', 'object-assign', 'material-ui-icons', 'babel-runtime', ]; const deps = [] diff --git a/docs/yarn.lock b/docs/yarn.lock index 3479a2aaf37bcf..af95305867ae12 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -203,13 +203,13 @@ aws4@^1.2.1: version "1.5.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755" -babel-cli@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.24.0.tgz#a05ffd210dca0c288a26d5319c5ac8669a265ad0" +babel-cli@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.24.1.tgz#207cd705bba61489b2ea41b5312341cf6aca2283" dependencies: - babel-core "^6.24.0" + babel-core "^6.24.1" babel-polyfill "^6.23.0" - babel-register "^6.24.0" + babel-register "^6.24.1" babel-runtime "^6.22.0" commander "^2.8.1" convert-source-map "^1.1.0" @@ -232,19 +232,19 @@ babel-code-frame@^6.11.0, babel-code-frame@^6.22.0: esutils "^2.0.2" js-tokens "^3.0.0" -babel-core@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.24.0.tgz#8f36a0a77f5c155aed6f920b844d23ba56742a02" +babel-core@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.24.1.tgz#8c428564dce1e1f41fb337ec34f4c3b022b5ad83" dependencies: babel-code-frame "^6.22.0" - babel-generator "^6.24.0" - babel-helpers "^6.23.0" + babel-generator "^6.24.1" + babel-helpers "^6.24.1" babel-messages "^6.23.0" - babel-register "^6.24.0" + babel-register "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.23.0" - babel-traverse "^6.23.1" - babel-types "^6.23.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" babylon "^6.11.0" convert-source-map "^1.1.0" debug "^2.1.1" @@ -256,145 +256,144 @@ babel-core@^6.24.0: slash "^1.0.0" source-map "^0.5.0" -babel-generator@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.24.0.tgz#eba270a8cc4ce6e09a61be43465d7c62c1f87c56" +babel-generator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.24.1.tgz#e715f486c58ded25649d888944d52aa07c5d9497" dependencies: babel-messages "^6.23.0" babel-runtime "^6.22.0" - babel-types "^6.23.0" + babel-types "^6.24.1" detect-indent "^4.0.0" jsesc "^1.3.0" lodash "^4.2.0" source-map "^0.5.0" trim-right "^1.0.1" -babel-helper-bindify-decorators@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.22.0.tgz#d7f5bc261275941ac62acfc4e20dacfb8a3fe952" +babel-helper-bindify-decorators@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330" dependencies: babel-runtime "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-helper-builder-binary-assignment-operator-visitor@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.22.0.tgz#29df56be144d81bdeac08262bfa41d2c5e91cdcd" +babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" dependencies: - babel-helper-explode-assignable-expression "^6.22.0" + babel-helper-explode-assignable-expression "^6.24.1" babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" -babel-helper-builder-react-jsx@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.23.0.tgz#d53fc8c996e0bc56d0de0fc4cc55a7138395ea4b" +babel-helper-builder-react-jsx@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.24.1.tgz#0ad7917e33c8d751e646daca4e77cc19377d2cbc" dependencies: babel-runtime "^6.22.0" - babel-types "^6.23.0" + babel-types "^6.24.1" esutils "^2.0.0" - lodash "^4.2.0" -babel-helper-call-delegate@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.22.0.tgz#119921b56120f17e9dae3f74b4f5cc7bcc1b37ef" +babel-helper-call-delegate@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" dependencies: - babel-helper-hoist-variables "^6.22.0" + babel-helper-hoist-variables "^6.24.1" babel-runtime "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-helper-define-map@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.22.0.tgz#9544e9502b2d6dfe7d00ff60e82bd5a7a89e95b7" +babel-helper-define-map@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.24.1.tgz#7a9747f258d8947d32d515f6aa1c7bd02204a080" dependencies: - babel-helper-function-name "^6.22.0" + babel-helper-function-name "^6.24.1" babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" lodash "^4.2.0" -babel-helper-explode-assignable-expression@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.22.0.tgz#c97bf76eed3e0bae4048121f2b9dae1a4e7d0478" +babel-helper-explode-assignable-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" dependencies: babel-runtime "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-helper-explode-class@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.22.0.tgz#646304924aa6388a516843ba7f1855ef8dfeb69b" +babel-helper-explode-class@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz#7dc2a3910dee007056e1e31d640ced3d54eaa9eb" dependencies: - babel-helper-bindify-decorators "^6.22.0" + babel-helper-bindify-decorators "^6.24.1" babel-runtime "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-helper-function-name@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.22.0.tgz#51f1bdc4bb89b15f57a9b249f33d742816dcbefc" +babel-helper-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" dependencies: - babel-helper-get-function-arity "^6.22.0" + babel-helper-get-function-arity "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-helper-get-function-arity@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.22.0.tgz#0beb464ad69dc7347410ac6ade9f03a50634f5ce" +babel-helper-get-function-arity@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" dependencies: babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" -babel-helper-hoist-variables@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.22.0.tgz#3eacbf731d80705845dd2e9718f600cfb9b4ba72" +babel-helper-hoist-variables@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" dependencies: babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" -babel-helper-optimise-call-expression@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.22.0.tgz#f8d5d4b40a6e2605a6a7f9d537b581bea3756d15" +babel-helper-optimise-call-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" dependencies: babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" -babel-helper-regex@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.22.0.tgz#79f532be1647b1f0ee3474b5f5c3da58001d247d" +babel-helper-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.24.1.tgz#d36e22fab1008d79d88648e32116868128456ce8" dependencies: babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" lodash "^4.2.0" -babel-helper-remap-async-to-generator@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.22.0.tgz#2186ae73278ed03b8b15ced089609da981053383" +babel-helper-remap-async-to-generator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" dependencies: - babel-helper-function-name "^6.22.0" + babel-helper-function-name "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-helper-replace-supers@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.22.0.tgz#1fcee2270657548908c34db16bcc345f9850cf42" +babel-helper-replace-supers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" dependencies: - babel-helper-optimise-call-expression "^6.22.0" - babel-messages "^6.22.0" + babel-helper-optimise-call-expression "^6.24.1" + babel-messages "^6.23.0" babel-runtime "^6.22.0" - babel-template "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-helpers@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.23.0.tgz#4f8f2e092d0b6a8808a4bde79c27f1e2ecf0d992" +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" dependencies: babel-runtime "^6.22.0" - babel-template "^6.23.0" + babel-template "^6.24.1" babel-loader@^6.4.1: version "6.4.1" @@ -405,7 +404,7 @@ babel-loader@^6.4.1: mkdirp "^0.5.1" object-assign "^4.0.1" -babel-messages@^6.22.0, babel-messages@^6.23.0: +babel-messages@^6.23.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" dependencies: @@ -465,48 +464,48 @@ babel-plugin-syntax-trailing-function-commas@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" -babel-plugin-transform-async-generator-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.22.0.tgz#a720a98153a7596f204099cd5409f4b3c05bab46" +babel-plugin-transform-async-generator-functions@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" dependencies: - babel-helper-remap-async-to-generator "^6.22.0" + babel-helper-remap-async-to-generator "^6.24.1" babel-plugin-syntax-async-generators "^6.5.0" babel-runtime "^6.22.0" -babel-plugin-transform-async-to-generator@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.22.0.tgz#194b6938ec195ad36efc4c33a971acf00d8cd35e" +babel-plugin-transform-async-to-generator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" dependencies: - babel-helper-remap-async-to-generator "^6.22.0" + babel-helper-remap-async-to-generator "^6.24.1" babel-plugin-syntax-async-functions "^6.8.0" babel-runtime "^6.22.0" -babel-plugin-transform-class-constructor-call@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.22.0.tgz#11a4d2216abb5b0eef298b493748f4f2f4869120" +babel-plugin-transform-class-constructor-call@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9" dependencies: babel-plugin-syntax-class-constructor-call "^6.18.0" babel-runtime "^6.22.0" - babel-template "^6.22.0" + babel-template "^6.24.1" -babel-plugin-transform-class-properties@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.22.0.tgz#aa78f8134495c7de06c097118ba061844e1dc1d8" +babel-plugin-transform-class-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" dependencies: - babel-helper-function-name "^6.22.0" + babel-helper-function-name "^6.24.1" babel-plugin-syntax-class-properties "^6.8.0" babel-runtime "^6.22.0" - babel-template "^6.22.0" + babel-template "^6.24.1" -babel-plugin-transform-decorators@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.22.0.tgz#c03635b27a23b23b7224f49232c237a73988d27c" +babel-plugin-transform-decorators@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d" dependencies: - babel-helper-explode-class "^6.22.0" + babel-helper-explode-class "^6.24.1" babel-plugin-syntax-decorators "^6.13.0" babel-runtime "^6.22.0" - babel-template "^6.22.0" - babel-types "^6.22.0" + babel-template "^6.24.1" + babel-types "^6.24.1" babel-plugin-transform-es2015-arrow-functions@^6.22.0: version "6.22.0" @@ -520,36 +519,36 @@ babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-block-scoping@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.22.0.tgz#00d6e3a0bebdcfe7536b9d653b44a9141e63e47e" +babel-plugin-transform-es2015-block-scoping@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.24.1.tgz#76c295dc3a4741b1665adfd3167215dcff32a576" dependencies: babel-runtime "^6.22.0" - babel-template "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" lodash "^4.2.0" -babel-plugin-transform-es2015-classes@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.22.0.tgz#54d44998fd823d9dca15292324161c331c1b6f14" +babel-plugin-transform-es2015-classes@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" dependencies: - babel-helper-define-map "^6.22.0" - babel-helper-function-name "^6.22.0" - babel-helper-optimise-call-expression "^6.22.0" - babel-helper-replace-supers "^6.22.0" - babel-messages "^6.22.0" + babel-helper-define-map "^6.24.1" + babel-helper-function-name "^6.24.1" + babel-helper-optimise-call-expression "^6.24.1" + babel-helper-replace-supers "^6.24.1" + babel-messages "^6.23.0" babel-runtime "^6.22.0" - babel-template "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-plugin-transform-es2015-computed-properties@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.22.0.tgz#7c383e9629bba4820c11b0425bdd6290f7f057e7" +babel-plugin-transform-es2015-computed-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" dependencies: babel-runtime "^6.22.0" - babel-template "^6.22.0" + babel-template "^6.24.1" babel-plugin-transform-es2015-destructuring@^6.22.0: version "6.22.0" @@ -557,12 +556,12 @@ babel-plugin-transform-es2015-destructuring@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-duplicate-keys@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.22.0.tgz#672397031c21610d72dd2bbb0ba9fb6277e1c36b" +babel-plugin-transform-es2015-duplicate-keys@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" dependencies: babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" babel-plugin-transform-es2015-for-of@^6.22.0: version "6.22.0" @@ -570,13 +569,13 @@ babel-plugin-transform-es2015-for-of@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-function-name@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.22.0.tgz#f5fcc8b09093f9a23c76ac3d9e392c3ec4b77104" +babel-plugin-transform-es2015-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" dependencies: - babel-helper-function-name "^6.22.0" + babel-helper-function-name "^6.24.1" babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" babel-plugin-transform-es2015-literals@^6.22.0: version "6.22.0" @@ -584,63 +583,63 @@ babel-plugin-transform-es2015-literals@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-modules-amd@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.0.tgz#a1911fb9b7ec7e05a43a63c5995007557bcf6a2e" +babel-plugin-transform-es2015-modules-amd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.0" + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.22.0" + babel-template "^6.24.1" -babel-plugin-transform-es2015-modules-commonjs@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.24.0.tgz#e921aefb72c2cc26cb03d107626156413222134f" +babel-plugin-transform-es2015-modules-commonjs@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.24.1.tgz#d3e310b40ef664a36622200097c6d440298f2bfe" dependencies: - babel-plugin-transform-strict-mode "^6.22.0" + babel-plugin-transform-strict-mode "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.23.0" - babel-types "^6.23.0" + babel-template "^6.24.1" + babel-types "^6.24.1" -babel-plugin-transform-es2015-modules-systemjs@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.22.0.tgz#810cd0cd025a08383b84236b92c6e31f88e644ad" +babel-plugin-transform-es2015-modules-systemjs@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" dependencies: - babel-helper-hoist-variables "^6.22.0" + babel-helper-hoist-variables "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.22.0" + babel-template "^6.24.1" -babel-plugin-transform-es2015-modules-umd@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.0.tgz#fd5fa63521cae8d273927c3958afd7c067733450" +babel-plugin-transform-es2015-modules-umd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.0" + babel-plugin-transform-es2015-modules-amd "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.23.0" + babel-template "^6.24.1" -babel-plugin-transform-es2015-object-super@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.22.0.tgz#daa60e114a042ea769dd53fe528fc82311eb98fc" +babel-plugin-transform-es2015-object-super@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" dependencies: - babel-helper-replace-supers "^6.22.0" + babel-helper-replace-supers "^6.24.1" babel-runtime "^6.22.0" -babel-plugin-transform-es2015-parameters@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.22.0.tgz#57076069232019094f27da8c68bb7162fe208dbb" +babel-plugin-transform-es2015-parameters@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" dependencies: - babel-helper-call-delegate "^6.22.0" - babel-helper-get-function-arity "^6.22.0" + babel-helper-call-delegate "^6.24.1" + babel-helper-get-function-arity "^6.24.1" babel-runtime "^6.22.0" - babel-template "^6.22.0" - babel-traverse "^6.22.0" - babel-types "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" -babel-plugin-transform-es2015-shorthand-properties@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.22.0.tgz#8ba776e0affaa60bff21e921403b8a652a2ff723" +babel-plugin-transform-es2015-shorthand-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" dependencies: babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" babel-plugin-transform-es2015-spread@^6.22.0: version "6.22.0" @@ -648,13 +647,13 @@ babel-plugin-transform-es2015-spread@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-sticky-regex@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.22.0.tgz#ab316829e866ee3f4b9eb96939757d19a5bc4593" +babel-plugin-transform-es2015-sticky-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" dependencies: - babel-helper-regex "^6.22.0" + babel-helper-regex "^6.24.1" babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" babel-plugin-transform-es2015-template-literals@^6.22.0: version "6.22.0" @@ -668,19 +667,19 @@ babel-plugin-transform-es2015-typeof-symbol@^6.22.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-unicode-regex@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.22.0.tgz#8d9cc27e7ee1decfe65454fb986452a04a613d20" +babel-plugin-transform-es2015-unicode-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" dependencies: - babel-helper-regex "^6.22.0" + babel-helper-regex "^6.24.1" babel-runtime "^6.22.0" regexpu-core "^2.0.0" -babel-plugin-transform-exponentiation-operator@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.22.0.tgz#d57c8335281918e54ef053118ce6eb108468084d" +babel-plugin-transform-exponentiation-operator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.22.0" + babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" babel-plugin-syntax-exponentiation-operator "^6.8.0" babel-runtime "^6.22.0" @@ -725,26 +724,26 @@ babel-plugin-transform-react-jsx-source@^6.22.0: babel-plugin-syntax-jsx "^6.8.0" babel-runtime "^6.22.0" -babel-plugin-transform-react-jsx@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.23.0.tgz#23e892f7f2e759678eb5e4446a8f8e94e81b3470" +babel-plugin-transform-react-jsx@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" dependencies: - babel-helper-builder-react-jsx "^6.23.0" + babel-helper-builder-react-jsx "^6.24.1" babel-plugin-syntax-jsx "^6.8.0" babel-runtime "^6.22.0" -babel-plugin-transform-regenerator@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.22.0.tgz#65740593a319c44522157538d690b84094617ea6" +babel-plugin-transform-regenerator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.24.1.tgz#b8da305ad43c3c99b4848e4fe4037b770d23c418" dependencies: - regenerator-transform "0.9.8" + regenerator-transform "0.9.11" -babel-plugin-transform-strict-mode@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.22.0.tgz#e008df01340fdc87e959da65991b7e05970c8c7c" +babel-plugin-transform-strict-mode@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" dependencies: babel-runtime "^6.22.0" - babel-types "^6.22.0" + babel-types "^6.24.1" babel-polyfill@^6.23.0: version "6.23.0" @@ -754,34 +753,34 @@ babel-polyfill@^6.23.0: core-js "^2.4.0" regenerator-runtime "^0.10.0" -babel-preset-es2015@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.0.tgz#c162d68b1932696e036cd3110dc1ccd303d2673a" +babel-preset-es2015@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" dependencies: babel-plugin-check-es2015-constants "^6.22.0" babel-plugin-transform-es2015-arrow-functions "^6.22.0" babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.22.0" - babel-plugin-transform-es2015-classes "^6.22.0" - babel-plugin-transform-es2015-computed-properties "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.24.1" + babel-plugin-transform-es2015-classes "^6.24.1" + babel-plugin-transform-es2015-computed-properties "^6.24.1" babel-plugin-transform-es2015-destructuring "^6.22.0" - babel-plugin-transform-es2015-duplicate-keys "^6.22.0" + babel-plugin-transform-es2015-duplicate-keys "^6.24.1" babel-plugin-transform-es2015-for-of "^6.22.0" - babel-plugin-transform-es2015-function-name "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.24.1" babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.24.0" - babel-plugin-transform-es2015-modules-commonjs "^6.24.0" - babel-plugin-transform-es2015-modules-systemjs "^6.22.0" - babel-plugin-transform-es2015-modules-umd "^6.24.0" - babel-plugin-transform-es2015-object-super "^6.22.0" - babel-plugin-transform-es2015-parameters "^6.22.0" - babel-plugin-transform-es2015-shorthand-properties "^6.22.0" + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-plugin-transform-es2015-modules-systemjs "^6.24.1" + babel-plugin-transform-es2015-modules-umd "^6.24.1" + babel-plugin-transform-es2015-object-super "^6.24.1" + babel-plugin-transform-es2015-parameters "^6.24.1" + babel-plugin-transform-es2015-shorthand-properties "^6.24.1" babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.22.0" + babel-plugin-transform-es2015-sticky-regex "^6.24.1" babel-plugin-transform-es2015-template-literals "^6.22.0" babel-plugin-transform-es2015-typeof-symbol "^6.22.0" - babel-plugin-transform-es2015-unicode-regex "^6.22.0" - babel-plugin-transform-regenerator "^6.22.0" + babel-plugin-transform-es2015-unicode-regex "^6.24.1" + babel-plugin-transform-regenerator "^6.24.1" babel-preset-flow@^6.23.0: version "6.23.0" @@ -789,49 +788,49 @@ babel-preset-flow@^6.23.0: dependencies: babel-plugin-transform-flow-strip-types "^6.22.0" -babel-preset-react@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.23.0.tgz#eb7cee4de98a3f94502c28565332da9819455195" +babel-preset-react@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-react/-/babel-preset-react-6.24.1.tgz#ba69dfaea45fc3ec639b6a4ecea6e17702c91380" dependencies: babel-plugin-syntax-jsx "^6.3.13" babel-plugin-transform-react-display-name "^6.23.0" - babel-plugin-transform-react-jsx "^6.23.0" + babel-plugin-transform-react-jsx "^6.24.1" babel-plugin-transform-react-jsx-self "^6.22.0" babel-plugin-transform-react-jsx-source "^6.22.0" babel-preset-flow "^6.23.0" -babel-preset-stage-1@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.22.0.tgz#7da05bffea6ad5a10aef93e320cfc6dd465dbc1a" +babel-preset-stage-1@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0" dependencies: - babel-plugin-transform-class-constructor-call "^6.22.0" + babel-plugin-transform-class-constructor-call "^6.24.1" babel-plugin-transform-export-extensions "^6.22.0" - babel-preset-stage-2 "^6.22.0" + babel-preset-stage-2 "^6.24.1" -babel-preset-stage-2@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.22.0.tgz#ccd565f19c245cade394b21216df704a73b27c07" +babel-preset-stage-2@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz#d9e2960fb3d71187f0e64eec62bc07767219bdc1" dependencies: babel-plugin-syntax-dynamic-import "^6.18.0" - babel-plugin-transform-class-properties "^6.22.0" - babel-plugin-transform-decorators "^6.22.0" - babel-preset-stage-3 "^6.22.0" + babel-plugin-transform-class-properties "^6.24.1" + babel-plugin-transform-decorators "^6.24.1" + babel-preset-stage-3 "^6.24.1" -babel-preset-stage-3@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.22.0.tgz#a4e92bbace7456fafdf651d7a7657ee0bbca9c2e" +babel-preset-stage-3@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395" dependencies: babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-generator-functions "^6.22.0" - babel-plugin-transform-async-to-generator "^6.22.0" - babel-plugin-transform-exponentiation-operator "^6.22.0" + babel-plugin-transform-async-generator-functions "^6.24.1" + babel-plugin-transform-async-to-generator "^6.24.1" + babel-plugin-transform-exponentiation-operator "^6.24.1" babel-plugin-transform-object-rest-spread "^6.22.0" -babel-register@^6.24.0: - version "6.24.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.0.tgz#5e89f8463ba9970356d02eb07dabe3308b080cfd" +babel-register@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f" dependencies: - babel-core "^6.24.0" + babel-core "^6.24.1" babel-runtime "^6.22.0" core-js "^2.4.0" home-or-tmp "^2.0.0" @@ -839,20 +838,20 @@ babel-register@^6.24.0: mkdirp "^0.5.1" source-map-support "^0.4.2" -babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.22.0, babel-runtime@^6.9.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.22.0.tgz#1cf8b4ac67c77a4ddb0db2ae1f74de52ac4ca611" +babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.9.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" dependencies: core-js "^2.4.0" regenerator-runtime "^0.10.0" -babel-template@^6.22.0, babel-template@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.23.0.tgz#04d4f270adbb3aa704a8143ae26faa529238e638" +babel-template@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.24.1.tgz#04ae514f1f93b3a2537f2a0f60a5a45fb8308333" dependencies: babel-runtime "^6.22.0" - babel-traverse "^6.23.0" - babel-types "^6.23.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" babylon "^6.11.0" lodash "^4.2.0" @@ -866,7 +865,7 @@ babel-template@^6.7.0: babylon "^6.11.0" lodash "^4.2.0" -babel-traverse@^6.16.0, babel-traverse@^6.22.0, babel-traverse@^6.23.0, babel-traverse@^6.23.1: +babel-traverse@^6.16.0: version "6.23.1" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.23.1.tgz#d3cb59010ecd06a97d81310065f966b699e14f48" dependencies: @@ -880,7 +879,21 @@ babel-traverse@^6.16.0, babel-traverse@^6.22.0, babel-traverse@^6.23.0, babel-tr invariant "^2.2.0" lodash "^4.2.0" -babel-types@^6.16.0, babel-types@^6.19.0, babel-types@^6.22.0, babel-types@^6.23.0: +babel-traverse@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.24.1.tgz#ab36673fd356f9a0948659e7b338d5feadb31695" + dependencies: + babel-code-frame "^6.22.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + babylon "^6.15.0" + debug "^2.2.0" + globals "^9.0.0" + invariant "^2.2.0" + lodash "^4.2.0" + +babel-types@^6.16.0, babel-types@^6.23.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.23.0.tgz#bb17179d7538bad38cd0c9e115d340f77e7e9acf" dependencies: @@ -889,6 +902,15 @@ babel-types@^6.16.0, babel-types@^6.19.0, babel-types@^6.22.0, babel-types@^6.23 lodash "^4.2.0" to-fast-properties "^1.0.1" +babel-types@^6.19.0, babel-types@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.24.1.tgz#a136879dc15b3606bda0d90c1fc74304c2ff0975" + dependencies: + babel-runtime "^6.22.0" + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^1.0.1" + babylon@^6.11.0: version "6.14.1" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.14.1.tgz#956275fab72753ad9b3435d7afe58f8bf0a29815" @@ -1977,7 +1999,7 @@ faye-websocket@~0.11.0: dependencies: websocket-driver ">=0.5.1" -fbjs@^0.8.4: +fbjs@^0.8.4, fbjs@^0.8.9: version "0.8.9" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.9.tgz#180247fbd347dcc9004517b904f865400a0c8f14" dependencies: @@ -3918,6 +3940,12 @@ promise@^7.1.1: dependencies: asap "~2.0.3" +prop-types@^15.5.4: + version "15.5.4" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.4.tgz#2ed3692716a5060f8cc020946d8238e7419d92c0" + dependencies: + fbjs "^0.8.9" + proxy-addr@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.2.tgz#b4cc5f22610d9535824c123aef9d3cf73c40ba37" @@ -4010,23 +4038,17 @@ rc@^1.1.2, rc@~1.1.6: minimist "^1.2.0" strip-json-comments "~1.0.4" -react-addons-shallow-compare@^15.4.1, react-addons-shallow-compare@^15.4.2: - version "15.4.2" - resolved "https://registry.yarnpkg.com/react-addons-shallow-compare/-/react-addons-shallow-compare-15.4.2.tgz#027ffd9720e3a1e0b328dcd8fc62e214a0d174a5" - dependencies: - fbjs "^0.8.4" - object-assign "^4.1.0" - react-deep-force-update@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-2.0.1.tgz#4f7f6c12c3e7de42f345992a3c518236fa1ecad3" -react-event-listener@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/react-event-listener/-/react-event-listener-0.4.1.tgz#86b53974c3df651857766b7b177682ed7c7c8318" +react-event-listener@^0.4.5: + version "0.4.5" + resolved "https://registry.yarnpkg.com/react-event-listener/-/react-event-listener-0.4.5.tgz#e3e895a0970cf14ee8f890113af68197abf3d0b1" dependencies: babel-runtime "^6.20.0" - react-addons-shallow-compare "^15.4.2" + fbjs "^0.8.4" + prop-types "^15.5.4" warning "^3.0.0" react-hot-loader@3.0.0-beta.6: @@ -4073,31 +4095,33 @@ react-router@^3.0.2: loose-envify "^1.2.0" warning "^3.0.0" -react-swipeable-views-core@^0.10.1: - version "0.10.1" - resolved "https://registry.yarnpkg.com/react-swipeable-views-core/-/react-swipeable-views-core-0.10.1.tgz#aadb91640193679f931274eba483775f6d136e2d" +react-swipeable-views-core@^0.11.1: + version "0.11.1" + resolved "https://registry.yarnpkg.com/react-swipeable-views-core/-/react-swipeable-views-core-0.11.1.tgz#61d046799f90725bbf91a0eb3abcab805c774cac" dependencies: - babel-runtime "^6.11.6" + babel-runtime "^6.23.0" warning "^3.0.0" -react-swipeable-views-utils@^0.10.1: - version "0.10.1" - resolved "https://registry.yarnpkg.com/react-swipeable-views-utils/-/react-swipeable-views-utils-0.10.1.tgz#2824e31a32701ac4a97335600a43f96b75afee9f" +react-swipeable-views-utils@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/react-swipeable-views-utils/-/react-swipeable-views-utils-0.12.0.tgz#4ff11f20a8da0561f623876d9fd691116e1a6a03" dependencies: - babel-runtime "^6.11.6" + babel-runtime "^6.23.0" + fbjs "^0.8.4" keycode "^2.1.7" - react-addons-shallow-compare "^15.4.1" - react-event-listener "^0.4.0" - react-swipeable-views-core "^0.10.1" + prop-types "^15.5.4" + react-event-listener "^0.4.5" + react-swipeable-views-core "^0.11.1" -react-swipeable-views@^0.10.7: - version "0.10.7" - resolved "https://registry.yarnpkg.com/react-swipeable-views/-/react-swipeable-views-0.10.7.tgz#f2f0e44c75f18fbfda4b0a66d42ca934f706c5b2" +react-swipeable-views@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/react-swipeable-views/-/react-swipeable-views-0.12.0.tgz#0d64b97aca18ec48c5fcaf1f99d1525a3d6c181f" dependencies: - babel-runtime "^6.11.6" + babel-runtime "^6.23.0" dom-helpers "^3.2.1" - react-swipeable-views-core "^0.10.1" - react-swipeable-views-utils "^0.10.1" + prop-types "^15.5.4" + react-swipeable-views-core "^0.11.1" + react-swipeable-views-utils "^0.12.0" warning "^3.0.0" read-all-stream@^3.0.0: @@ -4173,13 +4197,20 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -redbox-react@^1.2.5, redbox-react@^1.3.4: +redbox-react@^1.2.5: version "1.3.4" resolved "https://registry.yarnpkg.com/redbox-react/-/redbox-react-1.3.4.tgz#3d882bb62cc7c8f6256279d12f05c6a5a96d24c6" dependencies: error-stack-parser "^1.3.6" object-assign "^4.0.1" +redbox-react@^1.3.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/redbox-react/-/redbox-react-1.3.5.tgz#801d1d22f784d80fcab109b2174cbc169830435f" + dependencies: + error-stack-parser "^1.3.6" + object-assign "^4.0.1" + redent@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" @@ -4218,9 +4249,9 @@ regenerator-runtime@^0.10.0: version "0.10.1" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.1.tgz#257f41961ce44558b18f7814af48c17559f9faeb" -regenerator-transform@0.9.8: - version "0.9.8" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.8.tgz#0f88bb2bc03932ddb7b6b7312e68078f01026d6c" +regenerator-transform@0.9.11: + version "0.9.11" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.11.tgz#3a7d067520cb7b7176769eb5ff868691befe1283" dependencies: babel-runtime "^6.18.0" babel-types "^6.19.0" @@ -5128,9 +5159,9 @@ webpack-sources@^0.2.3: source-list-map "^1.1.1" source-map "~0.5.3" -webpack@^2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.3.2.tgz#7d521e6f0777a3a58985c69425263fdfe977b458" +webpack@^2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.3.3.tgz#eecc083c18fb7bf958ea4f40b57a6640c5a0cc78" dependencies: acorn "^4.0.4" acorn-dynamic-import "^2.0.0" diff --git a/package.json b/package.json index 1ca95460c9af1d..d5a97e529605f7 100644 --- a/package.json +++ b/package.json @@ -58,9 +58,10 @@ "keycode": "^2.1.8", "lodash": "^4.17.4", "object-assign": "^4.1.1", - "react-event-listener": "^0.4.4", + "prop-types": "^15.0.0", + "react-event-listener": "^0.4.5", "react-transition-group": "^1.1.1", - "recompose": "^0.22.0", + "recompose": "^0.23.0", "warning": "^3.0.0" }, "devDependencies": { @@ -115,12 +116,12 @@ "phantomjs-prebuilt": "^2.1.14", "random-words": "0.0.1", "raw-loader": "^0.5.1", - "react": "^15.4.2", + "react": "^15.5.3", "react-a11y": "^0.3.3", "react-addons-perf": "^15.4.2", - "react-addons-test-utils": "^15.4.2", + "react-addons-test-utils": "^15.5.0", "react-docgen": "^2.13.0", - "react-dom": "^15.4.2", + "react-dom": "^15.5.3", "recast": "^0.12.3", "recursive-readdir-sync": "^1.0.6", "rimraf": "^2.6.1", diff --git a/packages/material-ui-icons/README.md b/packages/material-ui-icons/README.md index 4847dd987a2af7..04092f5e9c09ca 100644 --- a/packages/material-ui-icons/README.md +++ b/packages/material-ui-icons/README.md @@ -3,6 +3,7 @@ This tool generates Material-UI SvgIcon components for a set of svg icons. ## Running the build + The npm script builds the [material-design-icons](https://github.com/google/material-design-icons) that are distributed as a standalone package. @@ -14,6 +15,7 @@ npm publish ``` ## Generated folders + The npm build script walks through all of the svg icons in the material-design-icons package and generates the appropriate `.js` files in the `build` folder, and creates an a `package.json`. diff --git a/src/AppBar/AppBar.js b/src/AppBar/AppBar.js index 1cadf2442ef0c1..49367028a6b9e2 100644 --- a/src/AppBar/AppBar.js +++ b/src/AppBar/AppBar.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Avatar/Avatar.js b/src/Avatar/Avatar.js index 10792d8478b06c..5397e632adfcfc 100644 --- a/src/Avatar/Avatar.js +++ b/src/Avatar/Avatar.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Badge/Badge.js b/src/Badge/Badge.js index fa2427c273a62d..eaca5d6257ff4c 100644 --- a/src/Badge/Badge.js +++ b/src/Badge/Badge.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/BottomNavigation/BottomNavigation.js b/src/BottomNavigation/BottomNavigation.js index 1c4b1c4e0d4cd7..3982d1a67ac1a0 100644 --- a/src/BottomNavigation/BottomNavigation.js +++ b/src/BottomNavigation/BottomNavigation.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes, Children, cloneElement } from 'react'; +import React, { Children, cloneElement } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/BottomNavigation/BottomNavigationButton.js b/src/BottomNavigation/BottomNavigationButton.js index 4a2228fecdc57e..aa33de13d812c8 100644 --- a/src/BottomNavigation/BottomNavigationButton.js +++ b/src/BottomNavigation/BottomNavigationButton.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes, cloneElement, isValidElement } from 'react'; +import React, { Component, cloneElement, isValidElement } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Button/Button.js b/src/Button/Button.js index a5268576b02fcd..7625b8a3ed7672 100644 --- a/src/Button/Button.js +++ b/src/Button/Button.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Card/Card.js b/src/Card/Card.js index c9b34b1e67dfd1..e099f980678718 100644 --- a/src/Card/Card.js +++ b/src/Card/Card.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Card/CardActions.js b/src/Card/CardActions.js index b63d51b13d18e3..194f4bdc7be241 100644 --- a/src/Card/CardActions.js +++ b/src/Card/CardActions.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Card/CardContent.js b/src/Card/CardContent.js index edaa1608f17318..4fa7b1500108e3 100644 --- a/src/Card/CardContent.js +++ b/src/Card/CardContent.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Card/CardHeader.js b/src/Card/CardHeader.js index 68b7081ef743cd..5f7028176d13f3 100644 --- a/src/Card/CardHeader.js +++ b/src/Card/CardHeader.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Card/CardMedia.js b/src/Card/CardMedia.js index cda5f50282532e..171426a9bbc426 100644 --- a/src/Card/CardMedia.js +++ b/src/Card/CardMedia.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Checkbox/Checkbox.js b/src/Checkbox/Checkbox.js index 49c56a096f1e04..c320bac95a01e0 100644 --- a/src/Checkbox/Checkbox.js +++ b/src/Checkbox/Checkbox.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import { createSwitch } from '../internal/SwitchBase'; import withSwitchLabel from '../internal/withSwitchLabel'; diff --git a/src/Chip/Chip.js b/src/Chip/Chip.js index d5dc0522209d01..2d431799378e86 100644 --- a/src/Chip/Chip.js +++ b/src/Chip/Chip.js @@ -1,6 +1,7 @@ // @flow weak -import React, { cloneElement, isValidElement, PropTypes } from 'react'; +import React, { cloneElement, isValidElement } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import keycode from 'keycode'; diff --git a/src/Dialog/Dialog.js b/src/Dialog/Dialog.js index 988fa149761826..6d6453056f438e 100644 --- a/src/Dialog/Dialog.js +++ b/src/Dialog/Dialog.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Dialog/DialogActions.js b/src/Dialog/DialogActions.js index 101e71ee14f8bb..6607a1ef0fab8a 100644 --- a/src/Dialog/DialogActions.js +++ b/src/Dialog/DialogActions.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Dialog/DialogContent.js b/src/Dialog/DialogContent.js index b71a7af1d5719a..b56cf862bf1ba9 100644 --- a/src/Dialog/DialogContent.js +++ b/src/Dialog/DialogContent.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Dialog/DialogContentText.js b/src/Dialog/DialogContentText.js index 0bb1c772cd951d..2c94e86e968a8d 100644 --- a/src/Dialog/DialogContentText.js +++ b/src/Dialog/DialogContentText.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Dialog/DialogTitle.js b/src/Dialog/DialogTitle.js index c12940f679949e..fd212cbd3545a0 100644 --- a/src/Dialog/DialogTitle.js +++ b/src/Dialog/DialogTitle.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Divider/Divider.js b/src/Divider/Divider.js index 7dadc123158871..d6f1bf50f08fe5 100644 --- a/src/Divider/Divider.js +++ b/src/Divider/Divider.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Drawer/Drawer.js b/src/Drawer/Drawer.js index a2927285d25de7..edf7fa8fd4301a 100644 --- a/src/Drawer/Drawer.js +++ b/src/Drawer/Drawer.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import Modal from '../internal/Modal'; diff --git a/src/Form/FormControl.js b/src/Form/FormControl.js index f82a0603740e66..75f5317c14dcc0 100644 --- a/src/Form/FormControl.js +++ b/src/Form/FormControl.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Form/FormGroup.js b/src/Form/FormGroup.js index 9e52f1138fcb67..883d155e8b5fe5 100644 --- a/src/Form/FormGroup.js +++ b/src/Form/FormGroup.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Form/FormLabel.js b/src/Form/FormLabel.js index f9aac226500595..265ba05ac6a329 100644 --- a/src/Form/FormLabel.js +++ b/src/Form/FormLabel.js @@ -1,7 +1,8 @@ // @flow weak /* eslint-disable jsx-a11y/label-has-for */ -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Icon/Icon.js b/src/Icon/Icon.js index 488e2b555b9c5d..0613a7bdb7de54 100644 --- a/src/Icon/Icon.js +++ b/src/Icon/Icon.js @@ -1,5 +1,6 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/IconButton/IconButton.js b/src/IconButton/IconButton.js index 776c210da73cfa..9b369735b76f43 100644 --- a/src/IconButton/IconButton.js +++ b/src/IconButton/IconButton.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes, Children, cloneElement } from 'react'; +import React, { Children, cloneElement } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Input/Input.js b/src/Input/Input.js index 1008c7aeed19d0..2b69bdeb57528b 100644 --- a/src/Input/Input.js +++ b/src/Input/Input.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Input/InputLabel.js b/src/Input/InputLabel.js index 1f379b3d431d11..1bbb3362bafcde 100644 --- a/src/Input/InputLabel.js +++ b/src/Input/InputLabel.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Layout/Layout.js b/src/Layout/Layout.js index 48626fcc464195..71502c55c7f464 100644 --- a/src/Layout/Layout.js +++ b/src/Layout/Layout.js @@ -12,7 +12,8 @@ * Follow this flexbox Guide to better understand the underlying model: * - https://css-tricks.com/snippets/css/a-guide-to-flexbox/ */ -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/List/List.js b/src/List/List.js index 3ae930fec89658..7451f563c81815 100644 --- a/src/List/List.js +++ b/src/List/List.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/List/ListItem.js b/src/List/ListItem.js index 993d5c05ce9671..b7564e666c42fc 100644 --- a/src/List/ListItem.js +++ b/src/List/ListItem.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/List/ListItemAvatar.js b/src/List/ListItemAvatar.js index b8caf654defb36..35ab5a05b3c431 100644 --- a/src/List/ListItemAvatar.js +++ b/src/List/ListItemAvatar.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import warning from 'warning'; import { createStyleSheet } from 'jss-theme-reactor'; @@ -32,7 +33,7 @@ export const styleSheet = createStyleSheet('MuiListItemAvatar', () => { */ export default function ListItemAvatar(props, context) { if (context.dense === undefined) { - warning(false, `Material-UI: is a simple wrapper to apply the dense styles + warning(false, `Material-UI: is a simple wrapper to apply the dense styles to . You do not need it unless you are controlling the dense property.`); return props.children; } diff --git a/src/List/ListItemIcon.js b/src/List/ListItemIcon.js index e28cce56a432d2..221b52fe7089bd 100644 --- a/src/List/ListItemIcon.js +++ b/src/List/ListItemIcon.js @@ -1,6 +1,7 @@ // @flow weak -import { PropTypes, cloneElement, Component } from 'react'; +import { cloneElement, Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/List/ListItemSecondaryAction.js b/src/List/ListItemSecondaryAction.js index 3f876cd2aa2d99..82f64b27e68a8b 100644 --- a/src/List/ListItemSecondaryAction.js +++ b/src/List/ListItemSecondaryAction.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/List/ListItemText.js b/src/List/ListItemText.js index b0b8f304e7d352..a3f3aeba2f5a01 100644 --- a/src/List/ListItemText.js +++ b/src/List/ListItemText.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/List/ListSubheader.js b/src/List/ListSubheader.js index 6e8a9ce7441ea9..dd3ed73d20baab 100644 --- a/src/List/ListSubheader.js +++ b/src/List/ListSubheader.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Menu/Menu.js b/src/Menu/Menu.js index 6542a73a5d7360..960f82a76116c3 100644 --- a/src/Menu/Menu.js +++ b/src/Menu/Menu.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { createStyleSheet } from 'jss-theme-reactor'; import getScrollbarSize from 'dom-helpers/util/scrollbarSize'; diff --git a/src/Menu/MenuItem.js b/src/Menu/MenuItem.js index 1d8d969d04ea38..a7bd656d7a2b7b 100644 --- a/src/Menu/MenuItem.js +++ b/src/Menu/MenuItem.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Menu/MenuList.js b/src/Menu/MenuList.js index b263f1028c0cf2..5a9c2416df11e7 100644 --- a/src/Menu/MenuList.js +++ b/src/Menu/MenuList.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import keycode from 'keycode'; import contains from 'dom-helpers/query/contains'; diff --git a/src/Paper/Paper.js b/src/Paper/Paper.js index 62c2299dd92d76..27c267a19cdad3 100644 --- a/src/Paper/Paper.js +++ b/src/Paper/Paper.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Progress/CircularProgress.js b/src/Progress/CircularProgress.js index 63c05790c87491..e280df8063aff3 100644 --- a/src/Progress/CircularProgress.js +++ b/src/Progress/CircularProgress.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Progress/LinearProgress.js b/src/Progress/LinearProgress.js index 6b397f5d536d82..a7a36549352f68 100644 --- a/src/Progress/LinearProgress.js +++ b/src/Progress/LinearProgress.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Radio/Radio.js b/src/Radio/Radio.js index a5063af144e801..9bbfcf0994142e 100644 --- a/src/Radio/Radio.js +++ b/src/Radio/Radio.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import { createStyleSheet } from 'jss-theme-reactor'; import { createSwitch } from '../internal/SwitchBase'; import withSwitchLabel from '../internal/withSwitchLabel'; diff --git a/src/Radio/RadioGroup.js b/src/Radio/RadioGroup.js index 131663e16706b1..d517d50c139193 100644 --- a/src/Radio/RadioGroup.js +++ b/src/Radio/RadioGroup.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, Children, cloneElement, PropTypes } from 'react'; +import React, { Component, Children, cloneElement } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Ripple/Ripple.js b/src/Ripple/Ripple.js index 03ad459c5939e4..fda9c220c074b4 100644 --- a/src/Ripple/Ripple.js +++ b/src/Ripple/Ripple.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import { easing } from '../styles/transitions'; diff --git a/src/Ripple/TouchRipple.js b/src/Ripple/TouchRipple.js index 2bb598d14de893..bc346f4d66e81f 100644 --- a/src/Ripple/TouchRipple.js +++ b/src/Ripple/TouchRipple.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import ReactTransitionGroup from 'react-transition-group/TransitionGroup'; import shallowEqual from 'recompose/shallowEqual'; diff --git a/src/SvgIcon/SvgIcon.js b/src/SvgIcon/SvgIcon.js index 9c9ebab57f0d76..48c87e7726d510 100644 --- a/src/SvgIcon/SvgIcon.js +++ b/src/SvgIcon/SvgIcon.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Switch/Switch.js b/src/Switch/Switch.js index 290094315e0216..2eb50a67c799e1 100644 --- a/src/Switch/Switch.js +++ b/src/Switch/Switch.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Table/Table.js b/src/Table/Table.js index 3e482ffa27feaa..60925e494cfe08 100644 --- a/src/Table/Table.js +++ b/src/Table/Table.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Table/TableBody.js b/src/Table/TableBody.js index fbc93d152752dc..a94035e636fe5f 100644 --- a/src/Table/TableBody.js +++ b/src/Table/TableBody.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Table/TableCell.js b/src/Table/TableCell.js index 6d472144d61036..b17def0552aa5e 100644 --- a/src/Table/TableCell.js +++ b/src/Table/TableCell.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Table/TableHead.js b/src/Table/TableHead.js index 508e554227d529..7309ae1ed2dece 100644 --- a/src/Table/TableHead.js +++ b/src/Table/TableHead.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Table/TableRow.js b/src/Table/TableRow.js index f3f93b910c032c..1248a298978858 100644 --- a/src/Table/TableRow.js +++ b/src/Table/TableRow.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Table/TableSortLabel.js b/src/Table/TableSortLabel.js index eca40d3d16479c..63652f35179f77 100644 --- a/src/Table/TableSortLabel.js +++ b/src/Table/TableSortLabel.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Tabs/Tab.js b/src/Tabs/Tab.js index 7e3b3514c16e2d..0d2eff21c6069d 100644 --- a/src/Tabs/Tab.js +++ b/src/Tabs/Tab.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes, isValidElement } from 'react'; +import React, { Component, isValidElement } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import ButtonBase from '../internal/ButtonBase'; diff --git a/src/Tabs/TabIndicator.js b/src/Tabs/TabIndicator.js index 94c29fe2da67b0..951f6cede44e24 100644 --- a/src/Tabs/TabIndicator.js +++ b/src/Tabs/TabIndicator.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Tabs/Tabs.js b/src/Tabs/Tabs.js index 43dde8422f9ff1..a6332b88f2575e 100644 --- a/src/Tabs/Tabs.js +++ b/src/Tabs/Tabs.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes, Children, cloneElement } from 'react'; +import React, { Component, Children, cloneElement } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import EventListener from 'react-event-listener'; diff --git a/src/Text/Text.js b/src/Text/Text.js index 001d76db3d1683..f6d3f08cfdeb05 100644 --- a/src/Text/Text.js +++ b/src/Text/Text.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/TextField/TextField.js b/src/TextField/TextField.js index affb09b115cf3b..0cb3e37553ac49 100644 --- a/src/TextField/TextField.js +++ b/src/TextField/TextField.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import shallowEqual from 'recompose/shallowEqual'; import { Input, InputLabel } from '../Input'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/TextField/TextFieldLabel.js b/src/TextField/TextFieldLabel.js index 73460007f399dc..3029ff6b92b6be 100644 --- a/src/TextField/TextFieldLabel.js +++ b/src/TextField/TextFieldLabel.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/Toolbar/Toolbar.js b/src/Toolbar/Toolbar.js index 09603d29e78b1c..54022bc16602ef 100644 --- a/src/Toolbar/Toolbar.js +++ b/src/Toolbar/Toolbar.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/internal/Backdrop.js b/src/internal/Backdrop.js index 3b8033b257d1df..58a6d02fd76c72 100644 --- a/src/internal/Backdrop.js +++ b/src/internal/Backdrop.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/internal/ButtonBase.js b/src/internal/ButtonBase.js index 5edd5922811e3f..9959dbd262856d 100644 --- a/src/internal/ButtonBase.js +++ b/src/internal/ButtonBase.js @@ -1,6 +1,7 @@ /* eslint-disable flowtype/require-valid-file-annotation */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; diff --git a/src/internal/Modal.js b/src/internal/Modal.js index 8b3d79bc83db1f..c36ece00583b7c 100644 --- a/src/internal/Modal.js +++ b/src/internal/Modal.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; diff --git a/src/internal/Popover.js b/src/internal/Popover.js index 3edcf084ac159e..38bbcd91d6718f 100644 --- a/src/internal/Popover.js +++ b/src/internal/Popover.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import contains from 'dom-helpers/query/contains'; diff --git a/src/internal/Portal.js b/src/internal/Portal.js index fa904f94355e03..f33f7b0b7ec596 100644 --- a/src/internal/Portal.js +++ b/src/internal/Portal.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { unstable_renderSubtreeIntoContainer, // eslint-disable-line camelcase unmountComponentAtNode, diff --git a/src/internal/SwitchBase.js b/src/internal/SwitchBase.js index 2d0053e8f216ec..2ce37ce89f21ea 100644 --- a/src/internal/SwitchBase.js +++ b/src/internal/SwitchBase.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/internal/Transition.js b/src/internal/Transition.js index 2ef06eb92d8224..f24b9224fea899 100644 --- a/src/internal/Transition.js +++ b/src/internal/Transition.js @@ -1,6 +1,7 @@ // @flow weak -import React, { PropTypes, Component } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import transitionInfo from 'dom-helpers/transition/properties'; import addEventListener from 'dom-helpers/events/on'; diff --git a/src/internal/withSwitchLabel.js b/src/internal/withSwitchLabel.js index 38a8fb89e6b3a4..22c458f285eef8 100644 --- a/src/internal/withSwitchLabel.js +++ b/src/internal/withSwitchLabel.js @@ -1,7 +1,8 @@ // @flow weak /* eslint-disable jsx-a11y/label-has-for */ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import createHelper from 'recompose/createHelper'; diff --git a/src/styles/MuiThemeProvider.js b/src/styles/MuiThemeProvider.js index 28cf4ea6d66204..73dd413bb576ff 100644 --- a/src/styles/MuiThemeProvider.js +++ b/src/styles/MuiThemeProvider.js @@ -1,5 +1,6 @@ // @flow weak -import { Component, PropTypes } from 'react'; +import { Component } from 'react'; +import PropTypes from 'prop-types'; import { create } from 'jss'; import { createStyleManager } from 'jss-theme-reactor/styleManager'; import jssPreset from 'jss-preset-default'; diff --git a/src/svg-icons/.eslintrc.js b/src/svg-icons/.eslintrc.js new file mode 100644 index 00000000000000..2d38e2438d5490 --- /dev/null +++ b/src/svg-icons/.eslintrc.js @@ -0,0 +1,6 @@ +module.exports = { + rules: { + 'import/no-mutable-exports': 'off', + 'max-len': 'off', + }, +}; diff --git a/src/svg-icons/arrow-downward.js b/src/svg-icons/arrow-downward.js index 9304e0e953c085..730e1d6fccee0d 100644 --- a/src/svg-icons/arrow-downward.js +++ b/src/svg-icons/arrow-downward.js @@ -1,4 +1,4 @@ -/* eslint-disable */ +// @flow weak import React from 'react'; import pure from 'recompose/pure'; @@ -6,8 +6,8 @@ import SvgIcon from '../SvgIcon'; let ArrowDownward = (props) => ( - - + + ); ArrowDownward = pure(ArrowDownward); diff --git a/src/svg-icons/cancel.js b/src/svg-icons/cancel.js index 1b385d0b03480d..82610d30c458aa 100644 --- a/src/svg-icons/cancel.js +++ b/src/svg-icons/cancel.js @@ -1,4 +1,4 @@ -/* eslint-disable */ +// @flow weak import React from 'react'; import pure from 'recompose/pure'; @@ -6,7 +6,7 @@ import SvgIcon from '../SvgIcon'; let Cancel = (props) => ( - + ); Cancel = pure(Cancel); diff --git a/src/svg-icons/check-box-outline-blank.js b/src/svg-icons/check-box-outline-blank.js index a7a168498801ee..9c0b11b17c8571 100644 --- a/src/svg-icons/check-box-outline-blank.js +++ b/src/svg-icons/check-box-outline-blank.js @@ -1,4 +1,4 @@ -/* eslint-disable */ +// @flow weak import React from 'react'; import pure from 'recompose/pure'; @@ -6,7 +6,7 @@ import SvgIcon from '../SvgIcon'; let CheckBoxOutlineBlank = (props) => ( - + ); CheckBoxOutlineBlank = pure(CheckBoxOutlineBlank); diff --git a/src/svg-icons/check-box.js b/src/svg-icons/check-box.js index 31507b39fbd85c..1043563f451bca 100644 --- a/src/svg-icons/check-box.js +++ b/src/svg-icons/check-box.js @@ -1,4 +1,4 @@ -/* eslint-disable */ +// @flow weak import React from 'react'; import pure from 'recompose/pure'; @@ -6,7 +6,7 @@ import SvgIcon from '../SvgIcon'; let CheckBox = (props) => ( - + ); CheckBox = pure(CheckBox); diff --git a/src/svg-icons/radio-button-checked.js b/src/svg-icons/radio-button-checked.js index cf9f1bcddee867..fa3c065d156b15 100644 --- a/src/svg-icons/radio-button-checked.js +++ b/src/svg-icons/radio-button-checked.js @@ -1,4 +1,4 @@ -/* eslint-disable */ +// @flow weak import React from 'react'; import pure from 'recompose/pure'; @@ -6,7 +6,7 @@ import SvgIcon from '../SvgIcon'; let RadioButtonChecked = (props) => ( - + ); RadioButtonChecked = pure(RadioButtonChecked); diff --git a/src/svg-icons/radio-button-unchecked.js b/src/svg-icons/radio-button-unchecked.js index a08e42f9125455..c7aafe49f7926d 100644 --- a/src/svg-icons/radio-button-unchecked.js +++ b/src/svg-icons/radio-button-unchecked.js @@ -1,4 +1,4 @@ -/* eslint-disable */ +// @flow weak import React from 'react'; import pure from 'recompose/pure'; @@ -6,7 +6,7 @@ import SvgIcon from '../SvgIcon'; let RadioButtonUnchecked = (props) => ( - + ); RadioButtonUnchecked = pure(RadioButtonUnchecked); diff --git a/src/test-utils/createMount.js b/src/test-utils/createMount.js index 8205825aae8885..628f6c83298666 100644 --- a/src/test-utils/createMount.js +++ b/src/test-utils/createMount.js @@ -3,7 +3,7 @@ import { create } from 'jss'; import jssPreset from 'jss-preset-default'; import { createStyleManager } from 'jss-theme-reactor'; -import { PropTypes } from 'react'; +import PropTypes from 'prop-types'; import { mount as enzymeMount } from 'enzyme'; import { createMuiTheme } from '../styles/theme'; diff --git a/src/transitions/Collapse.js b/src/transitions/Collapse.js index 44fb6d253e1fec..b5859fa8f00f8c 100644 --- a/src/transitions/Collapse.js +++ b/src/transitions/Collapse.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import classNames from 'classnames'; import { createStyleSheet } from 'jss-theme-reactor'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/transitions/Fade.js b/src/transitions/Fade.js index b985bb1dcc5f85..1e8af8e0a71b52 100644 --- a/src/transitions/Fade.js +++ b/src/transitions/Fade.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import Transition from '../internal/Transition'; import { duration } from '../styles/transitions'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/transitions/Slide.js b/src/transitions/Slide.js index db3d56e3fc8fcc..15fdbc8ef9b6ba 100644 --- a/src/transitions/Slide.js +++ b/src/transitions/Slide.js @@ -1,6 +1,7 @@ // @flow weak -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import Transition from '../internal/Transition'; import customPropTypes from '../utils/customPropTypes'; diff --git a/src/utils/customPropTypes.js b/src/utils/customPropTypes.js index 9dd88635e72d2a..e3c67548c5f967 100644 --- a/src/utils/customPropTypes.js +++ b/src/utils/customPropTypes.js @@ -2,7 +2,7 @@ /* eslint-disable import/no-mutable-exports*/ /* eslint-disable flowtype/require-valid-file-annotation */ -import { PropTypes } from 'react'; +import PropTypes from 'prop-types'; let customPropTypes = {}; diff --git a/test/utils/setup.js b/test/utils/setup.js index f95b298814a809..c59d87f6549739 100644 --- a/test/utils/setup.js +++ b/test/utils/setup.js @@ -1,4 +1,5 @@ // @flow require('app-module-path').addPath(`${__dirname}'./../../`); require('./dom')(); -require('./consoleError')(); +// To enable once the warnings are fixed +// require('./consoleError')(); diff --git a/yarn.lock b/yarn.lock index bd8bbee159fb11..94638f702faf82 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2456,9 +2456,9 @@ fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" -fbjs@^0.8.1, fbjs@^0.8.4: - version "0.8.8" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.8.tgz#02f1b6e0ea0d46c24e0b51a2d24df069563a5ad6" +fbjs@^0.8.1, fbjs@^0.8.4, fbjs@^0.8.9: + version "0.8.12" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" dependencies: core-js "^1.0.0" isomorphic-fetch "^2.1.1" @@ -4509,6 +4509,12 @@ promise@^7.1.1: dependencies: asap "~2.0.3" +prop-types@^15.0.0, prop-types@^15.5.2, prop-types@^15.5.4, prop-types@~15.5.0: + version "15.5.4" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.4.tgz#2ed3692716a5060f8cc020946d8238e7419d92c0" + dependencies: + fbjs "^0.8.9" + proxy-addr@~1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.3.tgz#dc97502f5722e888467b3fa2297a7b1ff47df074" @@ -4646,9 +4652,9 @@ react-addons-perf@^15.4.2: fbjs "^0.8.4" object-assign "^4.1.0" -react-addons-test-utils@^15.4.2: - version "15.4.2" - resolved "https://registry.yarnpkg.com/react-addons-test-utils/-/react-addons-test-utils-15.4.2.tgz#93bcaa718fcae7360d42e8fb1c09756cc36302a2" +react-addons-test-utils@^15.5.0: + version "15.5.0" + resolved "https://registry.yarnpkg.com/react-addons-test-utils/-/react-addons-test-utils-15.5.0.tgz#d09f7475ba7728bcdb288303a687b64c75b31a5c" dependencies: fbjs "^0.8.4" object-assign "^4.1.0" @@ -4665,20 +4671,22 @@ react-docgen@^2.13.0: node-dir "^0.1.10" recast "^0.11.5" -react-dom@^15.4.2: - version "15.4.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.4.2.tgz#015363f05b0a1fd52ae9efdd3a0060d90695208f" +react-dom@^15.5.3: + version "15.5.3" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.5.3.tgz#2ee127ce942df55da53111ae303316e68072b5c5" dependencies: - fbjs "^0.8.1" + fbjs "^0.8.9" loose-envify "^1.1.0" object-assign "^4.1.0" + prop-types "~15.5.0" -react-event-listener@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/react-event-listener/-/react-event-listener-0.4.4.tgz#af6552f06b5a4fa3f6df900bef0a7bba47cab39d" +react-event-listener@^0.4.5: + version "0.4.5" + resolved "https://registry.yarnpkg.com/react-event-listener/-/react-event-listener-0.4.5.tgz#e3e895a0970cf14ee8f890113af68197abf3d0b1" dependencies: babel-runtime "^6.20.0" fbjs "^0.8.4" + prop-types "^15.5.4" warning "^3.0.0" react-transition-group@^1.1.1: @@ -4689,13 +4697,14 @@ react-transition-group@^1.1.1: dom-helpers "^3.2.0" warning "^3.0.0" -react@^15.4.2: - version "15.4.2" - resolved "https://registry.yarnpkg.com/react/-/react-15.4.2.tgz#41f7991b26185392ba9bae96c8889e7e018397ef" +react@^15.5.3: + version "15.5.3" + resolved "https://registry.yarnpkg.com/react/-/react-15.5.3.tgz#84055382c025dec4e3b902bb61a8697cc79c1258" dependencies: - fbjs "^0.8.4" + fbjs "^0.8.9" loose-envify "^1.1.0" object-assign "^4.1.0" + prop-types "^15.5.2" read-pkg-up@^1.0.1: version "1.0.1" @@ -4798,9 +4807,9 @@ rechoir@^0.6.2: dependencies: resolve "^1.1.6" -recompose@^0.22.0: - version "0.22.0" - resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.22.0.tgz#f099d18385882ca41d9eec891718dadddc3204ef" +recompose@^0.23.0: + version "0.23.0" + resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.23.0.tgz#604840c3b75517cf57cf48d395c22fc7301820be" dependencies: change-emitter "^0.1.2" fbjs "^0.8.1"