@material-ui/styles
Advanced tools
Comparing version 3.0.0-alpha.3 to 3.0.0-alpha.4
@@ -23,7 +23,7 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
StyledComponent.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? StyledComponent.propTypes = { | ||
classes: PropTypes.object.isRequired, | ||
className: PropTypes.string, | ||
theme: PropTypes.object | ||
} : {}; | ||
} : void 0; | ||
const styles = typeof style === 'function' ? theme => ({ | ||
@@ -30,0 +30,0 @@ root: style(theme) |
@@ -41,3 +41,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
StylesProvider.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = { | ||
/** | ||
@@ -82,4 +82,8 @@ * You can wrap a node. | ||
sheetsRegistry: PropTypes.object | ||
} : {}; | ||
StylesProvider.propTypes = process.env.NODE_ENV !== "production" ? exactProp(StylesProvider.propTypes) : {}; | ||
} : void 0; | ||
if (process.env.NODE_ENV !== 'production') { | ||
process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = exactProp(StylesProvider.propTypes) : void 0; | ||
} | ||
StylesProvider.defaultProps = { | ||
@@ -86,0 +90,0 @@ disableGeneration: false |
@@ -38,3 +38,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
ThemeProvider.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = { | ||
/** | ||
@@ -49,4 +49,8 @@ * You can wrap a node. | ||
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired | ||
} : {}; | ||
ThemeProvider.propTypes = process.env.NODE_ENV !== "production" ? exactProp(ThemeProvider.propTypes) : {}; | ||
} : void 0; | ||
if (process.env.NODE_ENV !== 'production') { | ||
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0; | ||
} | ||
export default ThemeProvider; |
@@ -8,3 +8,2 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
import { getDisplayName } from '@material-ui/utils'; | ||
import hoistNonReactStatics from 'hoist-non-react-statics'; | ||
import { increment } from './indexCounter'; | ||
@@ -15,2 +14,3 @@ import mergeClasses from './mergeClasses'; | ||
import getThemeProps from './getThemeProps'; | ||
import hoistStatics from './hoistInternalStatics'; | ||
import { StylesContext } from './StylesProvider'; | ||
@@ -300,3 +300,3 @@ import { ThemeContext } from './ThemeProvider'; // We use the same empty object to ref count the styles that don't need a theme object. | ||
WithStylesInner.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? WithStylesInner.propTypes = { | ||
/** | ||
@@ -308,3 +308,3 @@ * Override or extend the styles applied to the component. | ||
theme: PropTypes.object | ||
} : {}; | ||
} : void 0; | ||
const WithStyles = React.forwardRef((props, ref) => React.createElement(StylesContext.Consumer, null, stylesOptions1 => { | ||
@@ -323,3 +323,3 @@ const stylesOptions = _extends({}, stylesOptions1, stylesOptions2); | ||
})); | ||
WithStyles.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? WithStyles.propTypes = { | ||
/** | ||
@@ -334,3 +334,3 @@ * Override or extend the styles applied to the component. | ||
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]) | ||
} : {}; | ||
} : void 0; | ||
@@ -341,3 +341,3 @@ if (process.env.NODE_ENV !== 'production') { | ||
hoistNonReactStatics(WithStyles, Component); | ||
hoistStatics(WithStyles, Component); | ||
@@ -344,0 +344,0 @@ if (process.env.NODE_ENV !== 'production') { |
@@ -5,4 +5,4 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
import PropTypes from 'prop-types'; | ||
import hoistNonReactStatics from 'hoist-non-react-statics'; | ||
import { getDisplayName } from '@material-ui/utils'; | ||
import hoistStatics from './hoistInternalStatics'; | ||
import { ThemeContext } from './ThemeProvider'; // Provide the theme object as a property to the input component. | ||
@@ -23,3 +23,3 @@ | ||
WithTheme.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? WithTheme.propTypes = { | ||
/** | ||
@@ -29,3 +29,3 @@ * Use that property to pass a ref callback to the decorated component. | ||
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]) | ||
} : {}; | ||
} : void 0; | ||
@@ -36,3 +36,3 @@ if (process.env.NODE_ENV !== 'production') { | ||
hoistNonReactStatics(WithTheme, Component); | ||
hoistStatics(WithTheme, Component); | ||
return WithTheme; | ||
@@ -39,0 +39,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v3.0.0-alpha.3 | ||
/** @license Material-UI v3.0.0-alpha.4 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v3.0.0-alpha.3 | ||
/** @license Material-UI v3.0.0-alpha.4 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -5,3 +5,3 @@ { | ||
"author": "Material-UI Team", | ||
"version": "3.0.0-alpha.3", | ||
"version": "3.0.0-alpha.4", | ||
"description": "Material-UI Styles - The styling solution of Material-UI.", | ||
@@ -30,7 +30,6 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@babel/runtime": "7.1.2", | ||
"@material-ui/utils": "^3.0.0-alpha.0", | ||
"@babel/runtime": "7.2.0", | ||
"@material-ui/utils": "^3.0.0-alpha.1", | ||
"classnames": "^2.2.5", | ||
"deepmerge": "^3.0.0", | ||
"hoist-non-react-statics": "^3.2.1", | ||
"jss": "^9.3.3", | ||
@@ -37,0 +36,0 @@ "jss-camel-case": "^6.0.0", |
@@ -35,7 +35,7 @@ "use strict"; | ||
StyledComponent.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? StyledComponent.propTypes = { | ||
classes: _propTypes.default.object.isRequired, | ||
className: _propTypes.default.string, | ||
theme: _propTypes.default.object | ||
} : {}; | ||
} : void 0; | ||
var styles = typeof style === 'function' ? function (theme) { | ||
@@ -42,0 +42,0 @@ return { |
@@ -62,3 +62,3 @@ "use strict"; | ||
StylesProvider.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = { | ||
/** | ||
@@ -103,4 +103,8 @@ * You can wrap a node. | ||
sheetsRegistry: _propTypes.default.object | ||
} : {}; | ||
StylesProvider.propTypes = process.env.NODE_ENV !== "production" ? (0, _utils.exactProp)(StylesProvider.propTypes) : {}; | ||
} : void 0; | ||
if (process.env.NODE_ENV !== 'production') { | ||
process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = (0, _utils.exactProp)(StylesProvider.propTypes) : void 0; | ||
} | ||
StylesProvider.defaultProps = { | ||
@@ -107,0 +111,0 @@ disableGeneration: false |
@@ -53,3 +53,3 @@ "use strict"; | ||
ThemeProvider.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = { | ||
/** | ||
@@ -64,5 +64,9 @@ * You can wrap a node. | ||
theme: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.func]).isRequired | ||
} : {}; | ||
ThemeProvider.propTypes = process.env.NODE_ENV !== "production" ? (0, _utils.exactProp)(ThemeProvider.propTypes) : {}; | ||
} : void 0; | ||
if (process.env.NODE_ENV !== 'production') { | ||
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = (0, _utils.exactProp)(ThemeProvider.propTypes) : void 0; | ||
} | ||
var _default = ThemeProvider; | ||
exports.default = _default; |
@@ -38,4 +38,2 @@ "use strict"; | ||
var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics")); | ||
var _indexCounter = require("./indexCounter"); | ||
@@ -51,2 +49,4 @@ | ||
var _hoistInternalStatics = _interopRequireDefault(require("./hoistInternalStatics")); | ||
var _StylesProvider = require("./StylesProvider"); | ||
@@ -357,3 +357,3 @@ | ||
WithStylesInner.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? WithStylesInner.propTypes = { | ||
/** | ||
@@ -365,3 +365,3 @@ * Override or extend the styles applied to the component. | ||
theme: _propTypes.default.object | ||
} : {}; | ||
} : void 0; | ||
@@ -385,3 +385,3 @@ var WithStyles = _react.default.forwardRef(function (props, ref) { | ||
WithStyles.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? WithStyles.propTypes = { | ||
/** | ||
@@ -396,3 +396,3 @@ * Override or extend the styles applied to the component. | ||
innerRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]) | ||
} : {}; | ||
} : void 0; | ||
@@ -403,3 +403,3 @@ if (process.env.NODE_ENV !== 'production') { | ||
(0, _hoistNonReactStatics.default)(WithStyles, Component); | ||
(0, _hoistInternalStatics.default)(WithStyles, Component); | ||
@@ -406,0 +406,0 @@ if (process.env.NODE_ENV !== 'production') { |
@@ -18,6 +18,6 @@ "use strict"; | ||
var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics")); | ||
var _utils = require("@material-ui/utils"); | ||
var _hoistInternalStatics = _interopRequireDefault(require("./hoistInternalStatics")); | ||
var _ThemeProvider = require("./ThemeProvider"); | ||
@@ -39,3 +39,3 @@ | ||
WithTheme.propTypes = process.env.NODE_ENV !== "production" ? { | ||
process.env.NODE_ENV !== "production" ? WithTheme.propTypes = { | ||
/** | ||
@@ -45,3 +45,3 @@ * Use that property to pass a ref callback to the decorated component. | ||
innerRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]) | ||
} : {}; | ||
} : void 0; | ||
@@ -52,3 +52,3 @@ if (process.env.NODE_ENV !== 'production') { | ||
(0, _hoistNonReactStatics.default)(WithTheme, Component); | ||
(0, _hoistInternalStatics.default)(WithTheme, Component); | ||
return WithTheme; | ||
@@ -55,0 +55,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95282
15
44
2325
54
+ Added@babel/runtime@7.2.0(transitive)
- Removedhoist-non-react-statics@^3.2.1
- Removed@babel/runtime@7.1.27.26.0(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
Updated@babel/runtime@7.2.0