@styled-system/position
Advanced tools
Comparing version 5.0.14 to 5.0.15
import { system } from '@styled-system/core'; | ||
var defaults = { | ||
space: [0, 4, 8, 16, 32, 64, 128, 256, 512] | ||
}; | ||
var config = { | ||
@@ -8,8 +11,24 @@ position: true, | ||
}, | ||
top: true, | ||
right: true, | ||
bottom: true, | ||
left: true | ||
top: { | ||
property: 'top', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
}, | ||
right: { | ||
property: 'right', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
}, | ||
bottom: { | ||
property: 'bottom', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
}, | ||
left: { | ||
property: 'left', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
} | ||
}; | ||
export var position = system(config); | ||
export default position; |
@@ -8,2 +8,5 @@ "use strict"; | ||
var defaults = { | ||
space: [0, 4, 8, 16, 32, 64, 128, 256, 512] | ||
}; | ||
var config = { | ||
@@ -15,6 +18,22 @@ position: true, | ||
}, | ||
top: true, | ||
right: true, | ||
bottom: true, | ||
left: true | ||
top: { | ||
property: 'top', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
}, | ||
right: { | ||
property: 'right', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
}, | ||
bottom: { | ||
property: 'bottom', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
}, | ||
left: { | ||
property: 'left', | ||
scale: 'space', | ||
defaultScale: defaults.space | ||
} | ||
}; | ||
@@ -21,0 +40,0 @@ var position = (0, _core.system)(config); |
{ | ||
"name": "@styled-system/position", | ||
"version": "5.0.14", | ||
"version": "5.0.15", | ||
"main": "dist/index.js", | ||
@@ -9,3 +9,3 @@ "module": "dist/index.esm.js", | ||
"dependencies": { | ||
"@styled-system/core": "^5.0.12" | ||
"@styled-system/core": "^5.0.15" | ||
}, | ||
@@ -15,3 +15,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "0a42765abf8d3183aa7b79b527118db86788eb90" | ||
"gitHead": "b5a2fad93c1d8a21e9669270167e750890249c46" | ||
} |
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
4165
134
Updated@styled-system/core@^5.0.15