@material-ui/system
Advanced tools
Comparing version 4.9.10 to 4.9.13
@@ -42,3 +42,3 @@ "use strict"; | ||
if (!props.theme) { | ||
console.error('@material-ui/system: you are calling a style function without a theme value.'); | ||
console.error('Material-UI: You are calling a style function without a theme value.'); | ||
} | ||
@@ -85,3 +85,3 @@ } | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? (0, _extends2.default)({}, styleFunction.propTypes, { | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? (0, _extends2.default)((0, _extends2.default)({}, styleFunction.propTypes), {}, { | ||
xs: _propTypes.default.object, | ||
@@ -88,0 +88,0 @@ sm: _propTypes.default.object, |
@@ -33,5 +33,5 @@ "use strict"; | ||
if (props.css) { | ||
return (0, _extends2.default)({}, (0, _merge.default)(output, styleFunction((0, _extends2.default)({ | ||
return (0, _extends2.default)((0, _extends2.default)({}, (0, _merge.default)(output, styleFunction((0, _extends2.default)({ | ||
theme: props.theme | ||
}, props.css))), {}, omit(props.css, [styleFunction.filterProps])); | ||
}, props.css)))), omit(props.css, [styleFunction.filterProps])); | ||
} | ||
@@ -42,3 +42,3 @@ | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? (0, _extends2.default)({}, styleFunction.propTypes, { | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? (0, _extends2.default)((0, _extends2.default)({}, styleFunction.propTypes), {}, { | ||
css: _propTypes.default.object | ||
@@ -45,0 +45,0 @@ }) : {}; |
@@ -22,3 +22,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
if (!props.theme) { | ||
console.error('@material-ui/system: you are calling a style function without a theme value.'); | ||
console.error('Material-UI: You are calling a style function without a theme value.'); | ||
} | ||
@@ -64,3 +64,3 @@ } | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, { | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends(_extends({}, styleFunction.propTypes), {}, { | ||
xs: PropTypes.object, | ||
@@ -67,0 +67,0 @@ sm: PropTypes.object, |
@@ -20,5 +20,5 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
if (props.css) { | ||
return _extends({}, merge(output, styleFunction(_extends({ | ||
return _extends(_extends({}, merge(output, styleFunction(_extends({ | ||
theme: props.theme | ||
}, props.css))), {}, omit(props.css, [styleFunction.filterProps])); | ||
}, props.css)))), omit(props.css, [styleFunction.filterProps])); | ||
} | ||
@@ -29,3 +29,3 @@ | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, { | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends(_extends({}, styleFunction.propTypes), {}, { | ||
css: PropTypes.object | ||
@@ -32,0 +32,0 @@ }) : {}; |
@@ -49,3 +49,3 @@ import responsivePropType from './responsivePropType'; | ||
if (typeof abs !== 'number') { | ||
console.error(`@material-ui/system: expected spacing argument to be a number, got ${abs}.`); | ||
console.error(`Material-UI: Expected spacing argument to be a number, got ${abs}.`); | ||
} | ||
@@ -62,3 +62,3 @@ } | ||
if (abs > themeSpacing.length - 1) { | ||
console.error([`@material-ui/system: the value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\n')); | ||
console.error([`Material-UI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\n')); | ||
} | ||
@@ -76,3 +76,3 @@ } | ||
if (process.env.NODE_ENV !== 'production') { | ||
console.error([`@material-ui/system: the \`theme.spacing\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\n')); | ||
console.error([`Material-UI: The \`theme.spacing\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\n')); | ||
} | ||
@@ -79,0 +79,0 @@ |
@@ -26,3 +26,3 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
if (!props.theme) { | ||
console.error('@material-ui/system: you are calling a style function without a theme value.'); | ||
console.error('Material-UI: You are calling a style function without a theme value.'); | ||
} | ||
@@ -69,3 +69,3 @@ } | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, { | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends(_extends({}, styleFunction.propTypes), {}, { | ||
xs: PropTypes.object, | ||
@@ -72,0 +72,0 @@ sm: PropTypes.object, |
@@ -21,5 +21,5 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
if (props.css) { | ||
return _extends({}, merge(output, styleFunction(_extends({ | ||
return _extends(_extends({}, merge(output, styleFunction(_extends({ | ||
theme: props.theme | ||
}, props.css))), {}, omit(props.css, [styleFunction.filterProps])); | ||
}, props.css)))), omit(props.css, [styleFunction.filterProps])); | ||
} | ||
@@ -30,3 +30,3 @@ | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, { | ||
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends(_extends({}, styleFunction.propTypes), {}, { | ||
css: PropTypes.object | ||
@@ -33,0 +33,0 @@ }) : {}; |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v4.9.10 | ||
/** @license Material-UI v4.9.13 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -56,3 +56,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
if (typeof abs !== 'number') { | ||
console.error("@material-ui/system: expected spacing argument to be a number, got ".concat(abs, ".")); | ||
console.error("Material-UI: Expected spacing argument to be a number, got ".concat(abs, ".")); | ||
} | ||
@@ -69,3 +69,3 @@ } | ||
if (abs > themeSpacing.length - 1) { | ||
console.error(["@material-ui/system: the value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n')); | ||
console.error(["Material-UI: The value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n')); | ||
} | ||
@@ -83,3 +83,3 @@ } | ||
if (process.env.NODE_ENV !== 'production') { | ||
console.error(["@material-ui/system: the `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n')); | ||
console.error(["Material-UI: The `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n')); | ||
} | ||
@@ -86,0 +86,0 @@ |
@@ -39,3 +39,3 @@ import * as CSS from 'csstype'; | ||
styleFunction: StyleFunction<Props> | ||
): StyleFunction<Partial<Record<Breakpoints, Props>>>; | ||
): StyleFunction<Partial<Record<Breakpoints, Props>> & Props>; | ||
@@ -42,0 +42,0 @@ // compose.js |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v4.9.10 | ||
/** @license Material-UI v4.9.13 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@material-ui/system", | ||
"version": "4.9.10", | ||
"version": "4.9.13", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "author": "Material-UI Team", |
@@ -72,3 +72,3 @@ "use strict"; | ||
if (typeof abs !== 'number') { | ||
console.error("@material-ui/system: expected spacing argument to be a number, got ".concat(abs, ".")); | ||
console.error("Material-UI: Expected spacing argument to be a number, got ".concat(abs, ".")); | ||
} | ||
@@ -85,3 +85,3 @@ } | ||
if (abs > themeSpacing.length - 1) { | ||
console.error(["@material-ui/system: the value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n')); | ||
console.error(["Material-UI: The value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n')); | ||
} | ||
@@ -99,3 +99,3 @@ } | ||
if (process.env.NODE_ENV !== 'production') { | ||
console.error(["@material-ui/system: the `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n')); | ||
console.error(["Material-UI: The `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n')); | ||
} | ||
@@ -102,0 +102,0 @@ |
Sorry, the diff of this file is too big to display
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
633396