react-interface
Advanced tools
Comparing version 0.8.27 to 0.8.28
@@ -24,2 +24,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
// Look into https://yeun.github.io/open-color/ as a base theme | ||
var Theme = function Theme(_ref) { | ||
@@ -33,4 +34,4 @@ var _ref$theme = _ref.theme, | ||
if (color) { | ||
var primaryPalette = getColorShades(color, 'primary'); | ||
if (primary) { | ||
var primaryPalette = getColorShades(primary, 'primary'); | ||
// Merge theme and primary color palette | ||
@@ -37,0 +38,0 @@ theme = merge(theme, { |
@@ -9,3 +9,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
import palx from 'palx'; | ||
import palx from '../utils/palx'; | ||
import { getPaletteShades, colorListToMap } from '../utils/colors'; | ||
@@ -12,0 +12,0 @@ import defaultColors from "./colors"; |
@@ -45,2 +45,3 @@ 'use strict'; | ||
// Look into https://yeun.github.io/open-color/ as a base theme | ||
var Theme = function Theme(_ref) { | ||
@@ -54,4 +55,4 @@ var _ref$theme = _ref.theme, | ||
if (color) { | ||
var primaryPalette = (0, _colors.getColorShades)(color, 'primary'); | ||
if (primary) { | ||
var primaryPalette = (0, _colors.getColorShades)(primary, 'primary'); | ||
// Merge theme and primary color palette | ||
@@ -58,0 +59,0 @@ theme = (0, _deepmerge2.default)(theme, { |
@@ -12,3 +12,3 @@ 'use strict'; | ||
var _palx = require('palx'); | ||
var _palx = require('../utils/palx'); | ||
@@ -15,0 +15,0 @@ var _palx2 = _interopRequireDefault(_palx); |
{ | ||
"name": "react-interface", | ||
"version": "0.8.27", | ||
"version": "0.8.28", | ||
"description": "react-interface React component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
131247
2647