@symbo.ls/scratch 0.7.13 → 0.7.15

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.13",
5
+ "version": "0.7.15",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -41,7 +41,7 @@ export const getTheme = (value, modifier) => {
41
41
  if (!subtheme && !modifier) return getThemeValue(isOurTheme)
42
42
  value = [theme, subtheme || modifier]
43
43
  }
44
- } // else value = [value, modifier]
44
+ }
45
45
 
46
46
  if (isObjectLike(value) && value[1]) {
47
47
  const themeName = value[0]
@@ -52,8 +52,6 @@ export const getTheme = (value, modifier) => {
52
52
  if (helpers && helpers[subThemeName]) return getThemeValue(helpers[subThemeName])
53
53
  if (state && state[subThemeName]) return getThemeValue(state[subThemeName])
54
54
  } else if (isObject(value)) return setThemeValue(value)
55
-
56
- // if (CONFIG.verbose) console.warn('Can\'t find theme', value)
57
55
  }
58
56
 
59
57
  const setInverseTheme = (theme, variant, value) => {
@@ -221,7 +219,7 @@ const checkForReference = (val, callback) => {
221
219
 
222
220
  const checkThemeReference = (val) => checkForReference(val, checkThemeReference) // eslint-disable-line
223
221
 
224
- export const getMediaTheme = (val, mod, themeObj) => {
222
+ export const getMediaTheme = (val, mod) => {
225
223
  if (isString(val) && val.slice(0, 2) === '--') val = getMediaTheme(val.slice(2))
226
224
 
227
225
  if (!val || !isString(val)) {
package/src/utils/var.js CHANGED
@@ -4,7 +4,7 @@ import { MEDIA, TIMING } from '../defaultConfig'
4
4
  import { CONFIG, CSS_VARS } from '../factory'
5
5
  import { isObjectLike } from './object'
6
6
 
7
- const ENV = process.env.NODE_ENV // eslint-disable-line no-undef
7
+ const ENV = process.env.NODE_ENV // eslint-disable-line
8
8
 
9
9
  export const setVariables = (result, key) => {
10
10
  // CSS_VARS[result.var] =