css-in-props 0.8.32 → 0.9.3

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  UI Library in composition of [Scratch](https://github.com/smbo-ls/scratch) and [DOMQL](https://github.com/domql/domql)
4
4
 
5
- [![npm version](https://badge.fury.io/js/smbls.svg)](https://badge.fury.io/js/smbls)
5
+ [![npm version](https://badge.fury.io/js/css-in-props.svg)](https://badge.fury.io/js/css-in-props)
6
6
 
7
7
  ### Setup
8
8
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Utilize props as CSS methods",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.8.32",
6
+ "version": "0.9.3",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
package/src/registry.js CHANGED
@@ -82,8 +82,8 @@ export const theme = {
82
82
  }
83
83
 
84
84
  export const block = {
85
- round: ({ props, key }) => props.round ? (mapSpacing(props.round, 'borderRadius') || ({ borderRadius: props.round })) : null,
86
- borderRadius: ({ props, key }) => props.borderRadius ? (mapSpacing(props.borderRadius, 'borderRadius') || ({ borderRadius: props.borderRadius })) : null,
85
+ round: props => props.round ? (mapSpacing(props.round, 'borderRadius') || ({ borderRadius: props.round })) : null,
86
+ borderRadius: props => props.borderRadius ? (mapSpacing(props.borderRadius, 'borderRadius') || ({ borderRadius: props.borderRadius })) : null,
87
87
 
88
88
  transition: props => props.transition && ({ transition: props.transition }),
89
89
  transitionProperty: props => props.transitionProperty && ({
@@ -16,6 +16,5 @@ export const transformClassname = props => {
16
16
  else if (isFunction(hasCSS)) merge(CLASS_NAMES, hasCSS(props))
17
17
  }
18
18
 
19
-
20
19
  return CLASS_NAMES
21
20
  }