react-base16-styling
Advanced tools
Comparing version 0.4.1 to 0.4.3
@@ -99,3 +99,5 @@ 'use strict'; | ||
if (typeof s === 'string') { | ||
return (0, _extends3.default)({}, obj, { className: obj.className + ' ' + s }); | ||
return (0, _extends3.default)({}, obj, { className: [obj.className, s].filter(function (c) { | ||
return c; | ||
}).join(' ') }); | ||
} else if ((typeof s === 'undefined' ? 'undefined' : (0, _typeof3.default)(s)) === 'object') { | ||
@@ -111,3 +113,3 @@ return (0, _extends3.default)({}, obj, { style: (0, _extends3.default)({}, obj.style, s) }); | ||
var createStyling = exports.createStyling = (0, _lodash2.default)(function (getStylingFromBase16, options) { | ||
var createStyling = exports.createStyling = (0, _lodash2.default)(function (getStylingFromBase16) { | ||
for (var _len2 = arguments.length, args = Array(_len2 > 4 ? _len2 - 4 : 0), _key2 = 4; _key2 < _len2; _key2++) { | ||
@@ -117,2 +119,3 @@ args[_key2 - 4] = arguments[_key2]; | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var themeOrStyling = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2]; | ||
@@ -119,0 +122,0 @@ var invertTheme = arguments[3]; |
{ | ||
"name": "react-base16-styling", | ||
"version": "0.4.1", | ||
"version": "0.4.3", | ||
"description": "React styling with base16 color scheme support", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -43,6 +43,6 @@ # react-base16-styling | ||
render() { | ||
const { theme, isLightTheme } = this.props; | ||
const { theme, invertTheme } = this.props; | ||
const { clickCount } = this.state; | ||
const styling = createStylingFromTheme(theme, isLightTheme); | ||
const styling = createStylingFromTheme(theme, invertTheme); | ||
@@ -49,0 +49,0 @@ return ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10307
108