smbls 0.9.11 → 0.9.14

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
@@ -3,7 +3,7 @@
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.9.11",
6
+ "version": "0.9.14",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
package/src/Grid.js CHANGED
@@ -11,7 +11,7 @@ export const Grid = {
11
11
  area: ({ props }) => props.area ? ({ gridArea: props.area }) : null,
12
12
  template: ({ props }) => props.template ? ({ gridTemplate: props.template }) : null,
13
13
  templateAreas: ({ props }) => props.templateAreas ? ({ gridTemplateAreas: props.templateAreas }) : null,
14
- columnGap: ({ props }) => props.template ? mapBasedOnRatio(props, 'columnGap') : null,
15
- rowGap: ({ props }) => props.template ? mapBasedOnRatio(props, 'rowGap') : null
14
+ columnGap: ({ props }) => props.columnGap ? mapBasedOnRatio(props, 'columnGap') : null,
15
+ rowGap: ({ props }) => props.rowGap ? mapBasedOnRatio(props, 'rowGap') : null
16
16
  }
17
17
  }
package/src/Theme.js CHANGED
@@ -33,7 +33,7 @@ const transformShadow = shadow => ({
33
33
 
34
34
  const arr = v.split(' ')
35
35
  if (!arr.length) return v
36
- return arr.map(v => mapSpacing(v, 'shadow').shadow ).join(' ')
36
+ return arr.map(v => mapSpacing(v, 'shadow').shadow).join(' ')
37
37
  }).join(' ')
38
38
  })
39
39
 
@@ -49,7 +49,10 @@ export const Theme = {
49
49
  },
50
50
 
51
51
  color: ({ props }) => props.color ? ({ color: getColor(props.color) }) : null,
52
- background: ({ props }) => props.background ? ({ backgroundColor: getColor(props.background) }) : null,
52
+ background: ({ props }) => props.background ? ({ background: getColor(props.background) }) : null,
53
+ backgroundColor: ({ props }) => props.backgroundColor ? ({ backgroundColor: getColor(props.backgroundColor) }) : null,
54
+ backgroundImage: ({ props }) => props.backgroundImage ? ({ backgroundImage: getColor(props.backgroundImage) }) : null,
55
+ backgroundSize: ({ props }) => props.backgroundSize ? ({ backgroundSize: getColor(props.backgroundSize) }) : null,
53
56
 
54
57
  textStroke: ({ props }) => props.textStroke ? transformTextStroke(props.textStroke) : null,
55
58