@symbo.ls/scratch 0.7.3 → 0.7.4

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": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "0.7.3",
5
+ "version": "0.7.4",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -11,10 +11,3 @@ const themeA = { // eslint-disable-line no-unused-vars
11
11
  }
12
12
 
13
13
  export const THEME = {}
14
-
15
- export const returnSubThemeOrDefault = (orig, theme) => {
16
- if (!orig) return
17
- if (orig.themes && orig.themes[theme]) return orig.themes[theme]
18
- if (orig[theme]) return [orig, orig[theme]]
19
- return orig
20
- }
@@ -210,7 +210,7 @@ const findModifier = (val, modifier) => {
210
210
  // console.log(val)
211
211
  // console.log(modifier)
212
212
  if (isArray(modifier)) return findModifierFromArray(val, modifier)
213
- else if (isString(modifier)) return val[modifier]
213
+ else if (isString(modifier) && val[modifier]) return val[modifier]
214
214
  else return val
215
215
  }
216
216
 
@@ -0,0 +1,8 @@
1
+ 'use strict'
2
+
3
+ export const returnSubThemeOrDefault = (orig, theme) => {
4
+ if (!orig) return
5
+ if (orig.themes && orig.themes[theme]) return orig.themes[theme]
6
+ if (orig[theme]) return [orig, orig[theme]]
7
+ return orig
8
+ }