Socket
Socket
Sign inDemoInstall

@mui/styles

Package Overview
Dependencies
Maintainers
9
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/styles - npm Package Compare versions

Comparing version 5.0.0-rc.1 to 5.0.0

2

createGenerateClassName/createGenerateClassName.js

@@ -33,3 +33,3 @@ import { unstable_nested as nested } from '@mui/private-theming/ThemeProvider';

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -36,0 +36,0 @@ }

@@ -8,3 +8,3 @@ import hash from '@emotion/hash';

if (prefix.length >= 256) {
console.error(`Material-UI: The class name prefix is too long: ${prefix}.`);
console.error(`MUI: The class name prefix is too long: ${prefix}.`);
}

@@ -58,3 +58,3 @@ }

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -61,0 +61,0 @@ }

@@ -10,3 +10,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof stylesOrCreator !== 'object' && !themingEnabled) {
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
}

@@ -25,3 +25,3 @@ }

// TODO: prepend error message/name instead
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
}

@@ -45,3 +45,3 @@ }

if (!stylesWithOverrides[key]) {
console.warn(['Material-UI: You are trying to override a style that does not exist.', `Fix the \`${key}\` key of \`theme.components.${name}.styleOverrides\`.`, '', `If you intentionally wanted to add a new key, please use the theme.components[${name}].variants option.`].join('\n'));
console.warn(['MUI: You are trying to override a style that does not exist.', `Fix the \`${key}\` key of \`theme.components.${name}.styleOverrides\`.`, '', `If you intentionally wanted to add a new key, please use the theme.components[${name}].variants option.`].join('\n'));
}

@@ -48,0 +48,0 @@ }

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-rc.1
/** @license MUI v5.0.0
*

@@ -14,3 +14,3 @@ * This source code is licensed under the MIT license found in the

if (ponyfillGlobal['__@mui/styles-init__'] === 1) {
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://mui.com/r/styles-instance-warning for more info.'].join('\n'));
}

@@ -17,0 +17,0 @@

@@ -7,3 +7,3 @@ import functions from 'jss-plugin-rule-value-function';

import vendorPrefixer from 'jss-plugin-vendor-prefixer';
import propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the Material-UI components are using.
import propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the MUI components are using.

@@ -10,0 +10,0 @@ export default function jssPreset() {

@@ -35,3 +35,3 @@ import { unstable_nested as nested } from '@mui/private-theming/ThemeProvider';

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -38,0 +38,0 @@ }

@@ -8,3 +8,3 @@ import hash from '@emotion/hash';

if (prefix.length >= 256) {
console.error("Material-UI: The class name prefix is too long: ".concat(prefix, "."));
console.error("MUI: The class name prefix is too long: ".concat(prefix, "."));
}

@@ -60,3 +60,3 @@ }

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -63,0 +63,0 @@ }

@@ -11,3 +11,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (_typeof(stylesOrCreator) !== 'object' && !themingEnabled) {
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
}

@@ -26,3 +26,3 @@ }

// TODO: prepend error message/name instead
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
}

@@ -46,3 +46,3 @@ }

if (!stylesWithOverrides[key]) {
console.warn(['Material-UI: You are trying to override a style that does not exist.', "Fix the `".concat(key, "` key of `theme.components.").concat(name, ".styleOverrides`."), '', "If you intentionally wanted to add a new key, please use the theme.components[".concat(name, "].variants option.")].join('\n'));
console.warn(['MUI: You are trying to override a style that does not exist.', "Fix the `".concat(key, "` key of `theme.components.").concat(name, ".styleOverrides`."), '', "If you intentionally wanted to add a new key, please use the theme.components[".concat(name, "].variants option.")].join('\n'));
}

@@ -49,0 +49,0 @@ }

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-rc.1
/** @license MUI v5.0.0
*

@@ -14,3 +14,3 @@ * This source code is licensed under the MIT license found in the

if (ponyfillGlobal['__@mui/styles-init__'] === 1) {
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://mui.com/r/styles-instance-warning for more info.'].join('\n'));
}

@@ -17,0 +17,0 @@

@@ -7,3 +7,3 @@ import functions from 'jss-plugin-rule-value-function';

import vendorPrefixer from 'jss-plugin-vendor-prefixer';
import propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the Material-UI components are using.
import propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the MUI components are using.

@@ -10,0 +10,0 @@ export default function jssPreset() {

@@ -16,3 +16,3 @@ /* eslint-disable import/prefer-default-export */

if (indexCounter >= 0) {
console.warn(['Material-UI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
console.warn(['MUI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
}

@@ -19,0 +19,0 @@ }

@@ -261,4 +261,3 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";

if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {
console.error(["Material-UI: You are using a variant value `".concat(props.variant, "` for which you didn't define styles."), // TODO: switch to material-ui.com when v5 is released
"Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://next.material-ui.com/r/custom-component-variants."].join('\n'));
console.error(["MUI: You are using a variant value `".concat(props.variant, "` for which you didn't define styles."), "Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants."].join('\n'));
}

@@ -265,0 +264,0 @@ }

@@ -17,3 +17,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof newClasses === 'string') {
console.error(["Material-UI: The value `".concat(newClasses, "` ") + "provided to the classes prop of ".concat(getDisplayName(Component), " is incorrect."), 'You might want to use the className prop instead.'].join('\n'));
console.error(["MUI: The value `".concat(newClasses, "` ") + "provided to the classes prop of ".concat(getDisplayName(Component), " is incorrect."), 'You might want to use the className prop instead.'].join('\n'));
return baseClasses;

@@ -26,7 +26,7 @@ }

if (!baseClasses[key] && newClasses[key]) {
console.error(["Material-UI: The key `".concat(key, "` ") + "provided to the classes prop is not implemented in ".concat(getDisplayName(Component), "."), "You can only override one of the following: ".concat(Object.keys(baseClasses).join(','), ".")].join('\n'));
console.error(["MUI: The key `".concat(key, "` ") + "provided to the classes prop is not implemented in ".concat(getDisplayName(Component), "."), "You can only override one of the following: ".concat(Object.keys(baseClasses).join(','), ".")].join('\n'));
}
if (newClasses[key] && typeof newClasses[key] !== 'string') {
console.error(["Material-UI: The key `".concat(key, "` ") + "provided to the classes prop is not valid for ".concat(getDisplayName(Component), "."), "You need to provide a non empty string instead of: ".concat(newClasses[key], ".")].join('\n'));
console.error(["MUI: The key `".concat(key, "` ") + "provided to the classes prop is not valid for ".concat(getDisplayName(Component), "."), "You need to provide a non empty string instead of: ".concat(newClasses[key], ".")].join('\n'));
}

@@ -33,0 +33,0 @@ }

@@ -50,3 +50,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof window === 'undefined' && !context.sheetsManager) {
console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
console.error('MUI: You need to use the ServerStyleSheets API when rendering on the server.');
}

@@ -57,3 +57,3 @@ }

if (context.jss.options.insertionPoint && injectFirst) {
console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
console.error('MUI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
}

@@ -64,3 +64,3 @@ }

if (injectFirst && localOptions.jss) {
console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
console.error('MUI: You cannot use the jss and injectFirst props at the same time.');
}

@@ -110,3 +110,3 @@ }

* As a result, they gain more specificity than any other style sheet.
* If you want to override Material-UI's styles, set this prop.
* If you want to override MUI's styles, set this prop.
*/

@@ -113,0 +113,0 @@ injectFirst: PropTypes.bool,

@@ -16,3 +16,3 @@ /* eslint-disable import/prefer-default-export */

if (indexCounter >= 0) {
console.warn(['Material-UI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
console.warn(['MUI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
}

@@ -19,0 +19,0 @@ }

@@ -258,4 +258,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {
console.error([`Material-UI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, // TODO: switch to material-ui.com when v5 is released
`Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://next.material-ui.com/r/custom-component-variants.`].join('\n'));
console.error([`MUI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, `Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants.`].join('\n'));
}

@@ -262,0 +261,0 @@ }

@@ -18,3 +18,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof newClasses === 'string') {
console.error([`Material-UI: The value \`${newClasses}\` ` + `provided to the classes prop of ${getDisplayName(Component)} is incorrect.`, 'You might want to use the className prop instead.'].join('\n'));
console.error([`MUI: The value \`${newClasses}\` ` + `provided to the classes prop of ${getDisplayName(Component)} is incorrect.`, 'You might want to use the className prop instead.'].join('\n'));
return baseClasses;

@@ -27,7 +27,7 @@ }

if (!baseClasses[key] && newClasses[key]) {
console.error([`Material-UI: The key \`${key}\` ` + `provided to the classes prop is not implemented in ${getDisplayName(Component)}.`, `You can only override one of the following: ${Object.keys(baseClasses).join(',')}.`].join('\n'));
console.error([`MUI: The key \`${key}\` ` + `provided to the classes prop is not implemented in ${getDisplayName(Component)}.`, `You can only override one of the following: ${Object.keys(baseClasses).join(',')}.`].join('\n'));
}
if (newClasses[key] && typeof newClasses[key] !== 'string') {
console.error([`Material-UI: The key \`${key}\` ` + `provided to the classes prop is not valid for ${getDisplayName(Component)}.`, `You need to provide a non empty string instead of: ${newClasses[key]}.`].join('\n'));
console.error([`MUI: The key \`${key}\` ` + `provided to the classes prop is not valid for ${getDisplayName(Component)}.`, `You need to provide a non empty string instead of: ${newClasses[key]}.`].join('\n'));
}

@@ -34,0 +34,0 @@ }

@@ -33,3 +33,3 @@ import { unstable_nested as nested } from '@mui/private-theming/ThemeProvider';

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -36,0 +36,0 @@ }

@@ -8,3 +8,3 @@ import hash from '@emotion/hash';

if (prefix.length >= 256) {
console.error(`Material-UI: The class name prefix is too long: ${prefix}.`);
console.error(`MUI: The class name prefix is too long: ${prefix}.`);
}

@@ -58,3 +58,3 @@ }

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -61,0 +61,0 @@ }

@@ -10,3 +10,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof stylesOrCreator !== 'object' && !themingEnabled) {
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
}

@@ -25,3 +25,3 @@ }

// TODO: prepend error message/name instead
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
}

@@ -45,3 +45,3 @@ }

if (!stylesWithOverrides[key]) {
console.warn(['Material-UI: You are trying to override a style that does not exist.', `Fix the \`${key}\` key of \`theme.components.${name}.styleOverrides\`.`, '', `If you intentionally wanted to add a new key, please use the theme.components[${name}].variants option.`].join('\n'));
console.warn(['MUI: You are trying to override a style that does not exist.', `Fix the \`${key}\` key of \`theme.components.${name}.styleOverrides\`.`, '', `If you intentionally wanted to add a new key, please use the theme.components[${name}].variants option.`].join('\n'));
}

@@ -48,0 +48,0 @@ }

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-rc.1
/** @license MUI v5.0.0
*

@@ -14,3 +14,3 @@ * This source code is licensed under the MIT license found in the

if (ponyfillGlobal['__@mui/styles-init__'] === 1) {
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://mui.com/r/styles-instance-warning for more info.'].join('\n'));
}

@@ -17,0 +17,0 @@

@@ -7,3 +7,3 @@ import functions from 'jss-plugin-rule-value-function';

import vendorPrefixer from 'jss-plugin-vendor-prefixer';
import propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the Material-UI components are using.
import propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the MUI components are using.

@@ -10,0 +10,0 @@ export default function jssPreset() {

@@ -16,3 +16,3 @@ /* eslint-disable import/prefer-default-export */

if (indexCounter >= 0) {
console.warn(['Material-UI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
console.warn(['MUI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
}

@@ -19,0 +19,0 @@ }

@@ -258,4 +258,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {
console.error([`Material-UI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, // TODO: switch to material-ui.com when v5 is released
`Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://next.material-ui.com/r/custom-component-variants.`].join('\n'));
console.error([`MUI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, `Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants.`].join('\n'));
}

@@ -262,0 +261,0 @@ }

@@ -18,3 +18,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof newClasses === 'string') {
console.error([`Material-UI: The value \`${newClasses}\` ` + `provided to the classes prop of ${getDisplayName(Component)} is incorrect.`, 'You might want to use the className prop instead.'].join('\n'));
console.error([`MUI: The value \`${newClasses}\` ` + `provided to the classes prop of ${getDisplayName(Component)} is incorrect.`, 'You might want to use the className prop instead.'].join('\n'));
return baseClasses;

@@ -27,7 +27,7 @@ }

if (!baseClasses[key] && newClasses[key]) {
console.error([`Material-UI: The key \`${key}\` ` + `provided to the classes prop is not implemented in ${getDisplayName(Component)}.`, `You can only override one of the following: ${Object.keys(baseClasses).join(',')}.`].join('\n'));
console.error([`MUI: The key \`${key}\` ` + `provided to the classes prop is not implemented in ${getDisplayName(Component)}.`, `You can only override one of the following: ${Object.keys(baseClasses).join(',')}.`].join('\n'));
}
if (newClasses[key] && typeof newClasses[key] !== 'string') {
console.error([`Material-UI: The key \`${key}\` ` + `provided to the classes prop is not valid for ${getDisplayName(Component)}.`, `You need to provide a non empty string instead of: ${newClasses[key]}.`].join('\n'));
console.error([`MUI: The key \`${key}\` ` + `provided to the classes prop is not valid for ${getDisplayName(Component)}.`, `You need to provide a non empty string instead of: ${newClasses[key]}.`].join('\n'));
}

@@ -34,0 +34,0 @@ }

@@ -51,3 +51,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof window === 'undefined' && !context.sheetsManager) {
console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
console.error('MUI: You need to use the ServerStyleSheets API when rendering on the server.');
}

@@ -58,3 +58,3 @@ }

if (context.jss.options.insertionPoint && injectFirst) {
console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
console.error('MUI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
}

@@ -65,3 +65,3 @@ }

if (injectFirst && localOptions.jss) {
console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
console.error('MUI: You cannot use the jss and injectFirst props at the same time.');
}

@@ -111,3 +111,3 @@ }

* As a result, they gain more specificity than any other style sheet.
* If you want to override Material-UI's styles, set this prop.
* If you want to override MUI's styles, set this prop.
*/

@@ -114,0 +114,0 @@ injectFirst: PropTypes.bool,

@@ -40,3 +40,3 @@ "use strict";

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -43,0 +43,0 @@ }

@@ -17,3 +17,3 @@ "use strict";

if (prefix.length >= 256) {
console.error(`Material-UI: The class name prefix is too long: ${prefix}.`);
console.error(`MUI: The class name prefix is too long: ${prefix}.`);
}

@@ -67,3 +67,3 @@ }

if (ruleCounter >= 1e10) {
console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));
}

@@ -70,0 +70,0 @@ }

@@ -23,3 +23,3 @@ "use strict";

if (typeof stylesOrCreator !== 'object' && !themingEnabled) {
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n'));
}

@@ -38,3 +38,3 @@ }

// TODO: prepend error message/name instead
console.error(['Material-UI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
console.error(['MUI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\n'));
}

@@ -56,3 +56,3 @@ }

if (!stylesWithOverrides[key]) {
console.warn(['Material-UI: You are trying to override a style that does not exist.', `Fix the \`${key}\` key of \`theme.components.${name}.styleOverrides\`.`, '', `If you intentionally wanted to add a new key, please use the theme.components[${name}].variants option.`].join('\n'));
console.warn(['MUI: You are trying to override a style that does not exist.', `Fix the \`${key}\` key of \`theme.components.${name}.styleOverrides\`.`, '', `If you intentionally wanted to add a new key, please use the theme.components[${name}].variants option.`].join('\n'));
}

@@ -59,0 +59,0 @@ }

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-rc.1
/** @license MUI v5.0.0
*

@@ -342,3 +342,3 @@ * This source code is licensed under the MIT license found in the

if (_utils.ponyfillGlobal['__@mui/styles-init__'] === 1) {
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
console.warn(['It looks like there are several instances of `@mui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://mui.com/r/styles-instance-warning for more info.'].join('\n'));
}

@@ -345,0 +345,0 @@

@@ -24,3 +24,3 @@ "use strict";

// Subset of jss-preset-default with only the plugins the Material-UI components are using.
// Subset of jss-preset-default with only the plugins the MUI components are using.
function jssPreset() {

@@ -27,0 +27,0 @@ return {

@@ -24,3 +24,3 @@ "use strict";

if (indexCounter >= 0) {
console.warn(['Material-UI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
console.warn(['MUI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\n'));
}

@@ -27,0 +27,0 @@ }

@@ -281,4 +281,3 @@ "use strict";

if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {
console.error([`Material-UI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, // TODO: switch to material-ui.com when v5 is released
`Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://next.material-ui.com/r/custom-component-variants.`].join('\n'));
console.error([`MUI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, `Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants.`].join('\n'));
}

@@ -285,0 +284,0 @@ }

@@ -29,3 +29,3 @@ "use strict";

if (typeof newClasses === 'string') {
console.error([`Material-UI: The value \`${newClasses}\` ` + `provided to the classes prop of ${(0, _utils.getDisplayName)(Component)} is incorrect.`, 'You might want to use the className prop instead.'].join('\n'));
console.error([`MUI: The value \`${newClasses}\` ` + `provided to the classes prop of ${(0, _utils.getDisplayName)(Component)} is incorrect.`, 'You might want to use the className prop instead.'].join('\n'));
return baseClasses;

@@ -38,7 +38,7 @@ }

if (!baseClasses[key] && newClasses[key]) {
console.error([`Material-UI: The key \`${key}\` ` + `provided to the classes prop is not implemented in ${(0, _utils.getDisplayName)(Component)}.`, `You can only override one of the following: ${Object.keys(baseClasses).join(',')}.`].join('\n'));
console.error([`MUI: The key \`${key}\` ` + `provided to the classes prop is not implemented in ${(0, _utils.getDisplayName)(Component)}.`, `You can only override one of the following: ${Object.keys(baseClasses).join(',')}.`].join('\n'));
}
if (newClasses[key] && typeof newClasses[key] !== 'string') {
console.error([`Material-UI: The key \`${key}\` ` + `provided to the classes prop is not valid for ${(0, _utils.getDisplayName)(Component)}.`, `You need to provide a non empty string instead of: ${newClasses[key]}.`].join('\n'));
console.error([`MUI: The key \`${key}\` ` + `provided to the classes prop is not valid for ${(0, _utils.getDisplayName)(Component)}.`, `You need to provide a non empty string instead of: ${newClasses[key]}.`].join('\n'));
}

@@ -45,0 +45,0 @@ }

@@ -76,3 +76,3 @@ "use strict";

if (typeof window === 'undefined' && !context.sheetsManager) {
console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
console.error('MUI: You need to use the ServerStyleSheets API when rendering on the server.');
}

@@ -83,3 +83,3 @@ }

if (context.jss.options.insertionPoint && injectFirst) {
console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
console.error('MUI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
}

@@ -90,3 +90,3 @@ }

if (injectFirst && localOptions.jss) {
console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
console.error('MUI: You cannot use the jss and injectFirst props at the same time.');
}

@@ -137,3 +137,3 @@ }

* As a result, they gain more specificity than any other style sheet.
* If you want to override Material-UI's styles, set this prop.
* If you want to override MUI's styles, set this prop.
*/

@@ -140,0 +140,0 @@ injectFirst: _propTypes.default.bool,

{
"name": "@mui/styles",
"version": "5.0.0-rc.1",
"version": "5.0.0",
"private": false,
"author": "Material-UI Team",
"description": "Material-UI Styles - The styling solution of Material-UI.",
"author": "MUI Team",
"description": "MUI Styles - The styling solution of MUI.",
"main": "./node/index.js",

@@ -23,3 +23,3 @@ "keywords": [

},
"homepage": "https://next.material-ui.com/styles/basics/",
"homepage": "https://mui.com/styles/basics/",
"funding": {

@@ -41,5 +41,5 @@ "type": "opencollective",

"@emotion/hash": "^0.8.0",
"@mui/private-theming": "5.0.0-rc.1",
"@mui/types": "7.0.0-rc.1",
"@mui/utils": "5.0.0-rc.1",
"@mui/private-theming": "^5.0.0",
"@mui/types": "^7.0.0",
"@mui/utils": "^5.0.0",
"clsx": "^1.1.1",

@@ -46,0 +46,0 @@ "csstype": "^3.0.8",

@@ -19,2 +19,2 @@ # @mui/styles

[The documentation](https://material-ui.com/styles/basics/)
[The documentation](https://mui.com/styles/basics/)

@@ -51,3 +51,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (typeof window === 'undefined' && !context.sheetsManager) {
console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
console.error('MUI: You need to use the ServerStyleSheets API when rendering on the server.');
}

@@ -58,3 +58,3 @@ }

if (context.jss.options.insertionPoint && injectFirst) {
console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
console.error('MUI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
}

@@ -65,3 +65,3 @@ }

if (injectFirst && localOptions.jss) {
console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
console.error('MUI: You cannot use the jss and injectFirst props at the same time.');
}

@@ -111,3 +111,3 @@ }

* As a result, they gain more specificity than any other style sheet.
* If you want to override Material-UI's styles, set this prop.
* If you want to override MUI's styles, set this prop.
*/

@@ -114,0 +114,0 @@ injectFirst: PropTypes.bool,

Sorry, the diff of this file is too big to display

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