@material-ui/styles
Advanced tools
Comparing version 3.0.0-alpha.10 to 4.0.0-alpha.0
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
import _extends from "@babel/runtime/helpers/extends"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
import clsx from 'clsx'; | ||
import PropTypes from 'prop-types'; | ||
@@ -34,7 +34,7 @@ import { chainPropTypes, getDisplayName } from '@material-ui/utils'; | ||
const className = classNames(classes.root, classNameProp); | ||
const className = clsx(classes.root, classNameProp); | ||
if (clone) { | ||
return React.cloneElement(children, { | ||
className: classNames(children.props.className, className) | ||
className: clsx(children.props.className, className) | ||
}); | ||
@@ -41,0 +41,0 @@ } |
@@ -0,0 +0,0 @@ import _extends from "@babel/runtime/helpers/extends"; |
@@ -0,0 +0,0 @@ import _extends from "@babel/runtime/helpers/extends"; |
@@ -0,0 +0,0 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; |
@@ -0,0 +0,0 @@ import _extends from "@babel/runtime/helpers/extends"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -151,3 +151,3 @@ // allow this here since we want the declarations to be equivalent to declarations | ||
declare module '@material-ui/styles/styled' { | ||
import { Omit, PropsOf } from '@material-ui/core'; | ||
import { Omit } from '@material-ui/core'; | ||
import { | ||
@@ -159,2 +159,3 @@ CSSProperties, | ||
} from '@material-ui/styles/withStyles'; | ||
import * as React from 'react'; | ||
@@ -168,3 +169,3 @@ /** | ||
) => React.ComponentType< | ||
Omit<JSX.LibraryManagedAttributes<C, PropsOf<C>>, 'classes' | 'className'> & | ||
Omit<JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>, 'classes' | 'className'> & | ||
StyledComponentProps<'root'> & { className?: string } | ||
@@ -223,3 +224,3 @@ >; | ||
import * as React from 'react'; | ||
import { Omit, PropInjector, PropsOf } from '@material-ui/core'; | ||
import { Omit, PropInjector } from '@material-ui/core'; | ||
import * as CSS from 'csstype'; | ||
@@ -226,0 +227,0 @@ import * as JSS from 'jss'; |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v3.0.0-alpha.10 | ||
/** @license Material-UI v4.0.0-alpha.0 | ||
* | ||
@@ -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.10", | ||
"version": "4.0.0-alpha.0", | ||
"description": "Material-UI Styles - The styling solution of Material-UI.", | ||
@@ -24,6 +24,6 @@ "main": "./index.js", | ||
}, | ||
"homepage": "https://github.com/mui-org/material-ui/tree/master/packages/material-ui-styles", | ||
"homepage": "https://github.com/mui-org/material-ui/tree/next/packages/material-ui-styles", | ||
"peerDependencies": { | ||
"react": "^16.7.0-alpha.2", | ||
"react-dom": "^16.7.0-alpha.2" | ||
"react": "^16.8.0", | ||
"react-dom": "^16.8.0" | ||
}, | ||
@@ -33,4 +33,4 @@ "dependencies": { | ||
"@emotion/hash": "^0.7.1", | ||
"@material-ui/utils": "^3.0.0-alpha.2", | ||
"classnames": "^2.2.5", | ||
"@material-ui/utils": "^4.0.0-alpha.0", | ||
"clsx": "^1.0.2", | ||
"deepmerge": "^3.0.0", | ||
@@ -54,5 +54,6 @@ "hoist-non-react-statics": "^3.2.1", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
"module": "./index.es.js" | ||
"module": "./esm/index.js", | ||
"typings": "./index.d.ts" | ||
} |
@@ -0,0 +0,0 @@ # @material-ui/styles |
@@ -16,3 +16,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -48,7 +48,7 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
other = (0, _objectWithoutProperties2.default)(props, ["children", "classes", "className", "clone", "component"]); | ||
var className = (0, _classnames.default)(classes.root, classNameProp); | ||
var className = (0, _clsx.default)(classes.root, classNameProp); | ||
if (clone) { | ||
return _react.default.cloneElement(children, { | ||
className: (0, _classnames.default)(children.props.className, className) | ||
className: (0, _clsx.default)(children.props.className, className) | ||
}); | ||
@@ -55,0 +55,0 @@ } |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
499188
62
3060
0
90
+ Addedclsx@^1.0.2
+ Added@material-ui/utils@4.11.3(transitive)
+ Addedclsx@1.2.1(transitive)
+ Addedreact-is@17.0.2(transitive)
- Removedclassnames@^2.2.5
- Removed@material-ui/utils@3.0.0-alpha.3(transitive)
- Removedclassnames@2.5.1(transitive)