@material-ui/system
Advanced tools
Comparing version 5.0.0-alpha.6 to 5.0.0-alpha.11
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.6 | ||
/** @license Material-UI v5.0.0-alpha.11 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -32,4 +32,4 @@ import * as React from 'react'; | ||
type DefaultBreakPoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; | ||
/** | ||
* | ||
* @returns An enhanced stylefunction that considers breakpoints | ||
@@ -171,2 +171,12 @@ */ | ||
export type SpacingProps = PropsFor<typeof spacing>; | ||
export function createUnarySpacing<Spacing>(theme: { | ||
spacing: Spacing; | ||
}): Spacing extends number | ||
? (abs: number) => number | ||
: Spacing extends any[] | ||
? <Index extends number>(abs: Index) => Spacing[Index] | ||
: Spacing extends (...args: unknown[]) => unknown | ||
? Spacing | ||
: // warns in Dev | ||
() => undefined; | ||
@@ -173,0 +183,0 @@ // style.js |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.6 | ||
/** @license Material-UI v5.0.0-alpha.11 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@material-ui/system", | ||
"version": "5.0.0-alpha.6", | ||
"version": "5.0.0-alpha.11", | ||
"private": false, | ||
@@ -11,3 +11,2 @@ "author": "Material-UI Team", | ||
"react-component", | ||
"material design", | ||
"material-ui", | ||
@@ -42,3 +41,3 @@ "system" | ||
"@babel/runtime": "^7.4.4", | ||
"@material-ui/utils": "^5.0.0-alpha.1", | ||
"@material-ui/utils": "^5.0.0-alpha.8", | ||
"prop-types": "^15.7.2" | ||
@@ -45,0 +44,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
694487
2400