@styled-system/css
Advanced tools
Comparing version 1.0.0-0 to 1.0.0-1
@@ -39,5 +39,4 @@ "use strict"; | ||
return (0, _lodash.default)(props, systemProps); | ||
}; // const notEmpty = n => Object.keys(n).length > 0 | ||
}; | ||
var system = (0, _styledSystem.compose)(styles, _styledSystem.space, _styledSystem.color, _styledSystem.fontFamily, _styledSystem.fontSize, _styledSystem.fontWeight, _styledSystem.lineHeight); | ||
@@ -49,3 +48,3 @@ exports.system = system; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var theme = props.theme; | ||
var theme = props.theme || props; | ||
var styleProps = (0, _lodash2.default)(props, systemProps); | ||
@@ -52,0 +51,0 @@ |
@@ -53,3 +53,2 @@ import { | ||
const styles = props => omit(props, systemProps) | ||
// const notEmpty = n => Object.keys(n).length > 0 | ||
@@ -67,3 +66,3 @@ export const system = compose( | ||
export const css = style => (props = {}) => { | ||
const { theme } = props | ||
const theme = props.theme || props | ||
const styleProps = pick(props, systemProps) | ||
@@ -70,0 +69,0 @@ const styles = [ |
{ | ||
"name": "@styled-system/css", | ||
"version": "1.0.0-0", | ||
"version": "1.0.0-1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist.js", |
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
6084
128