Comparing version 0.2.13 to 0.2.14
@@ -10,4 +10,4 @@ import { MDXProvider } from '@mdx-js/react'; | ||
var getCSS = function getCSS(props) { | ||
if (!props.sx && !props.css) { return undefined; } | ||
return function (theme) { | ||
if (!props.sx && !props.css) { return undefined; } | ||
var styles = css(props.sx)(theme); | ||
@@ -14,0 +14,0 @@ var raw = typeof props.css === 'function' ? props.css(theme) : props.css; |
@@ -13,4 +13,4 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var getCSS = function getCSS(props) { | ||
if (!props.sx && !props.css) { return undefined; } | ||
return function (theme) { | ||
if (!props.sx && !props.css) { return undefined; } | ||
var styles = css__default(props.sx)(theme); | ||
@@ -17,0 +17,0 @@ var raw = typeof props.css === 'function' ? props.css(theme) : props.css; |
@@ -12,4 +12,4 @@ (function (global, factory) { | ||
var getCSS = function getCSS(props) { | ||
if (!props.sx && !props.css) { return undefined; } | ||
return function (theme) { | ||
if (!props.sx && !props.css) { return undefined; } | ||
var styles = css__default(props.sx)(theme); | ||
@@ -16,0 +16,0 @@ var raw = typeof props.css === 'function' ? props.css(theme) : props.css; |
{ | ||
"name": "theme-ui", | ||
"version": "0.2.13", | ||
"version": "0.2.14", | ||
"description": "Build consistent, themeable React UIs based on design system constraints and design tokens", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "8b858ae7a969e1e00b17420bf0414df1df7d54e5" | ||
"gitHead": "b21abc700a46eb2d11bb0770c609a220d1c49924" | ||
} |
import { jsx as emotion } from '@emotion/core' | ||
import css from '@styled-system/css' | ||
const getCSS = props => theme => { | ||
const getCSS = props => { | ||
if (!props.sx && !props.css) return undefined | ||
const styles = css(props.sx)(theme) | ||
const raw = typeof props.css === 'function' ? props.css(theme) : props.css | ||
return [styles, raw] | ||
return theme => { | ||
const styles = css(props.sx)(theme) | ||
const raw = typeof props.css === 'function' ? props.css(theme) : props.css | ||
return [styles, raw] | ||
} | ||
} | ||
@@ -10,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
124635
1724