css-in-props
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -6,3 +6,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"repository": "https://github.com/symbo-ls/smbls", | ||
@@ -9,0 +9,0 @@ "main": "src/index.js", |
'use strict' | ||
export { set } from '@symbo.ls/scratch' | ||
export * from './transform' | ||
export * from './set' |
@@ -67,3 +67,3 @@ 'use strict' | ||
color: props => props.color ? ({ color: getColor(props.color) }) : null, | ||
background: props => props.background ? ({ backgroundColor: getColor(props.background) }) : null, | ||
background: props => props.background ? ({ background: getColor(props.background) }) : null, | ||
@@ -70,0 +70,0 @@ textStroke: props => props.textStroke ? diffStroke(props.textStroke) : null, |
@@ -13,3 +13,4 @@ 'use strict' | ||
const setter = keySetters[key.slice(0, 1)] | ||
const hasCSS = registry[key] | ||
const reg = registry | ||
const hasCSS = reg[key] | ||
@@ -16,0 +17,0 @@ if (setter) setter(key, props[key], CLASS_NAMES) |
'use strict' | ||
import { isFunction } from '@domql/utils' | ||
import createEmotion from '@emotion/css/create-instance' | ||
// const ENV = process.env.NODE_ENV | ||
export const { | ||
flush, | ||
hydrate, | ||
cx, | ||
getRegisteredStyles, | ||
injectGlobal, | ||
keyframes, | ||
css, | ||
sheet, | ||
cache | ||
} = createEmotion({ | ||
const { css } = createEmotion({ | ||
key: 'smbls' | ||
}) | ||
export const transformEmotion = props => css(props) | ||
export const transformEmotion = (props, callback) => isFunction(callback) ? callback(props) : css(props) |
'use strict' | ||
export * from './classname' | ||
export * from './emotion' | ||
export * from './classname' | ||
export * from './subProps' |
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
15234
10
307