Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material-ui/styles

Package Overview
Dependencies
Maintainers
6
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/styles - npm Package Compare versions

Comparing version 3.0.0-alpha.10 to 4.0.0-alpha.0

CHANGELOG.md

0

createStyles.js

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

6

es/styled.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc