react-base16-styling
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -92,3 +92,3 @@ 'use strict'; | ||
var themeOrStyling = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var base16Themes = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2]; | ||
var base16Themes = arguments[2]; | ||
var isLightTheme = arguments[3]; | ||
@@ -119,5 +119,3 @@ var _options$getStylingFr = options.getStylingFromBase16; | ||
var getBase16Theme = function getBase16Theme(theme) { | ||
var base16Themes = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var getBase16Theme = function getBase16Theme(theme, base16Themes) { | ||
if (theme && theme.extend) { | ||
@@ -128,3 +126,3 @@ theme = theme.extend; | ||
if (typeof theme === 'string') { | ||
theme = base16Themes[theme] || _base2.default[theme]; | ||
theme = (base16Themes || {})[theme] || _base2.default[theme]; | ||
} | ||
@@ -131,0 +129,0 @@ |
{ | ||
"name": "react-base16-styling", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "React styling with base16 color scheme support", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -40,3 +40,3 @@ import curry from 'lodash.curry'; | ||
const createStyling = curry( | ||
(options, themeOrStyling={}, base16Themes={}, isLightTheme, ...args) => { | ||
(options, themeOrStyling={}, base16Themes, isLightTheme, ...args) => { | ||
const { | ||
@@ -68,3 +68,3 @@ getStylingFromBase16=returnEmptyObject, | ||
const getBase16Theme = (theme, base16Themes={}) => { | ||
const getBase16Theme = (theme, base16Themes) => { | ||
if (theme && theme.extend) { | ||
@@ -75,3 +75,3 @@ theme = theme.extend; | ||
if (typeof theme === 'string') { | ||
theme = base16Themes[theme] || base16[theme]; | ||
theme = (base16Themes || {})[theme] || base16[theme]; | ||
} | ||
@@ -78,0 +78,0 @@ |
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
10963
156