@styled-system/space
Advanced tools
Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "@styled-system/space", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"main": "dist/index.js", | ||
@@ -8,5 +8,5 @@ "module": "dist/index.esm.js", | ||
"license": "MIT", | ||
"gitHead": "563a753edcb0f441fe5040458ac36c5c72f03a9d", | ||
"gitHead": "25c6e4d49f6b9e3154a59a5a3f4ed1a463ee27f7", | ||
"dependencies": { | ||
"@styled-system/core": "^5.0.2" | ||
"@styled-system/core": "^5.0.3" | ||
}, | ||
@@ -13,0 +13,0 @@ "publishConfig": { |
@@ -16,3 +16,3 @@ import { get, system } from '@styled-system/core' | ||
const absolute = Math.abs(n) | ||
const value = get(scale, absolute) | ||
const value = get(scale, absolute, absolute) | ||
if (!isNumber(value)) { | ||
@@ -19,0 +19,0 @@ return isNegative ? '-' + value : value |
@@ -142,1 +142,10 @@ import { space } from '../src' | ||
}) | ||
test('handles margin with no theme', () => { | ||
const styles = space({ | ||
mt: 12, | ||
}) | ||
expect(styles).toEqual({ | ||
marginTop: 12, | ||
}) | ||
}) |
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
14671
496
Updated@styled-system/core@^5.0.3