css-in-props 2.10.98 → 2.10.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "css-in-props",
3
3
  "description": "Utilize props as CSS methods",
4
4
  "author": "symbo.ls",
5
- "version": "2.10.98",
5
+ "version": "2.10.112",
6
6
  "repository": "https://github.com/symbo-ls/smbls",
7
7
  "main": "src/index.js",
8
8
  "files": [
@@ -15,5 +15,5 @@
15
15
  "@symbo.ls/emotion": "latest",
16
16
  "@symbo.ls/scratch": "latest"
17
17
  },
18
- "gitHead": "a2d105b6f070b784c511dbae1a88727debeedda6"
18
+ "gitHead": "bd307e48b4e4f8dca5a8d8d9441317be96aad5cd"
19
19
  }
package/src/index.js CHANGED
@@ -2,4 +2,5 @@
2
2
 
3
3
  export * from './transform'
4
4
  export * from './set'
5
+ export * from './emotion'
5
6
  export * from './registry'
package/src/set.js CHANGED
@@ -4,6 +4,7 @@ import { transformClassname } from './transform'
4
4
  import { transformEmotion } from './emotion'
5
5
 
6
6
  export const setClassname = (props, emotionCss) => {
7
+ console.log(props)
7
8
  const transform = transformClassname(props)
8
9
  return transformEmotion(transform, emotionCss)
9
10
  }
package/src/transform.js CHANGED
@@ -16,7 +16,7 @@ export const transformClassname = (props, registry = reg) => {
16
16
 
17
17
  if (setter) setter(key, props[key], CLASS_NAMES)
18
18
  else if (isFunction(hasCSS)) {
19
- const stack = hasCSS(props)
19
+ const stack = hasCSS({ props, context: {} })
20
20
  const exec = isArray(stack) ? stack.reduce((a, c) => {
21
21
  return merge(a, c)
22
22
  }, {}) : stack