sh-core
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -109,8 +109,9 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var check = classObject[key]; | ||
var className = _.kebabCase(key); | ||
if (_.isBoolean(check) && check) { | ||
classNames.push(key); | ||
classNames.push(className); | ||
} else if (_.isFunction(check) && check()) { | ||
classNames.push(key); | ||
classNames.push(className); | ||
} else if (_.isString(check)) { | ||
classNames.push(key + '-' + check); | ||
classNames.push(className + '-' + _.kebabCase(check)); | ||
} | ||
@@ -117,0 +118,0 @@ } |
{ | ||
"name": "sh-core", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "Base SASS and React files for SuperheroUI components", | ||
@@ -5,0 +5,0 @@ "main": "bin/sh-core.js", |
@@ -15,8 +15,9 @@ import * as _ from 'lodash'; | ||
let check = classObject[key]; | ||
let className = _.kebabCase(key); | ||
if (_.isBoolean(check) && check) { | ||
classNames.push(key); | ||
classNames.push(className); | ||
} else if (_.isFunction(check) && check()) { | ||
classNames.push(key); | ||
classNames.push(className); | ||
} else if (_.isString(check)) { | ||
classNames.push(key + '-' + check); | ||
classNames.push(className + '-' + _.kebabCase(check)); | ||
} | ||
@@ -23,0 +24,0 @@ } |
Sorry, the diff of this file is not supported yet
2974506
202