react-base16-styling
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -34,4 +34,6 @@ 'use strict'; | ||
var _base2 = _interopRequireDefault(_base); | ||
var base16 = _interopRequireWildcard(_base); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -45,4 +47,5 @@ | ||
}; | ||
var DEFAULT_BASE16 = base16.default; | ||
var BASE16_KEYS = (0, _keys2.default)(_base2.default); | ||
var BASE16_KEYS = (0, _keys2.default)(DEFAULT_BASE16); | ||
var GRAY_COLORS = (0, _from2.default)({ length: 8 }).map(function (_, idx) { | ||
@@ -99,3 +102,3 @@ return 'base0' + idx; | ||
var _options$defaultBase = options.defaultBase16; | ||
var defaultBase16 = _options$defaultBase === undefined ? _base2.default : _options$defaultBase; | ||
var defaultBase16 = _options$defaultBase === undefined ? DEFAULT_BASE16 : _options$defaultBase; | ||
@@ -127,3 +130,3 @@ | ||
if (typeof theme === 'string') { | ||
theme = (base16Themes || {})[theme] || _base2.default[theme]; | ||
theme = (base16Themes || {})[theme] || base16[theme]; | ||
} | ||
@@ -130,0 +133,0 @@ |
{ | ||
"name": "react-base16-styling", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "React styling with base16 color scheme support", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
import curry from 'lodash.curry'; | ||
import base16, { default as DEFAULT_BASE16 } from 'base16'; | ||
import * as base16 from 'base16'; | ||
const truthy = x => x; | ||
const returnEmptyObject = () => ({}); | ||
const DEFAULT_BASE16 = base16.default; | ||
@@ -7,0 +8,0 @@ const BASE16_KEYS = Object.keys(DEFAULT_BASE16); |
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
11277
159