@styled-system/space
Advanced tools
Comparing version 5.0.5 to 5.0.6
{ | ||
"name": "@styled-system/space", | ||
"version": "5.0.5", | ||
"version": "5.0.6", | ||
"main": "dist/index.js", | ||
@@ -8,3 +8,3 @@ "module": "dist/index.esm.js", | ||
"license": "MIT", | ||
"gitHead": "d585cc19c2064684cf9f3b317d0acf982bdf137b", | ||
"gitHead": "1767bf03168f37c48990a53b654f00bcc90439dd", | ||
"dependencies": { | ||
@@ -11,0 +11,0 @@ "@styled-system/core": "^5.0.5" |
@@ -151,1 +151,20 @@ import { space } from '../src' | ||
}) | ||
test('handles overriding margin/padding shortcut props', () => { | ||
const styles = space({ | ||
m: 4, | ||
mx: 3, | ||
mr: 2, | ||
p: 4, | ||
py: 3, | ||
pt: 2, | ||
}) | ||
expect(styles).toEqual({ | ||
margin: 32, | ||
marginLeft: 16, | ||
marginRight: 8, | ||
padding: 32, | ||
paddingBottom: 16, | ||
paddingTop: 8, | ||
}) | ||
}) |
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
15001
514