react-color
Advanced tools
Comparing version 2.2.4 to 2.2.5
# Changelog | ||
## 2.2.5 (24 August 2016) | ||
- Add Black -> White scale to Swatches | ||
- Change Travis to `npm run unit-test` | ||
- Modularize Lodash | ||
## 2.2.4 (23 August 2016) | ||
@@ -4,0 +10,0 @@ |
@@ -20,9 +20,9 @@ 'use strict'; | ||
var _lodash = require('lodash.isplainobject'); | ||
var _isPlainObject = require('lodash/isPlainObject'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _isPlainObject2 = _interopRequireDefault(_isPlainObject); | ||
var _lodash3 = require('lodash.debounce'); | ||
var _debounce = require('lodash/debounce'); | ||
var _lodash4 = _interopRequireDefault(_lodash3); | ||
var _debounce2 = _interopRequireDefault(_debounce); | ||
@@ -70,3 +70,3 @@ var _color = require('../../helpers/color'); | ||
_this.debounce = (0, _lodash4.default)(function (fn, data) { | ||
_this.debounce = (0, _debounce2.default)(function (fn, data) { | ||
fn(data); | ||
@@ -73,0 +73,0 @@ }, 100); |
@@ -18,5 +18,5 @@ 'use strict'; | ||
var _lodash = require('lodash.throttle'); | ||
var _throttle = require('lodash/throttle'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _throttle2 = _interopRequireDefault(_throttle); | ||
@@ -88,3 +88,3 @@ var _reactAddonsShallowCompare = require('react-addons-shallow-compare'); | ||
_this.throttle = (0, _lodash2.default)(function (fn, data) { | ||
_this.throttle = (0, _throttle2.default)(function (fn, data) { | ||
fn(data); | ||
@@ -91,0 +91,0 @@ }, 50); |
@@ -127,5 +127,5 @@ 'use strict'; | ||
height: 240, | ||
colors: [[_materialColors2.default.red['900'], _materialColors2.default.red['700'], _materialColors2.default.red['500'], _materialColors2.default.red['300'], _materialColors2.default.red['100']], [_materialColors2.default.pink['900'], _materialColors2.default.pink['700'], _materialColors2.default.pink['500'], _materialColors2.default.pink['300'], _materialColors2.default.pink['100']], [_materialColors2.default.purple['900'], _materialColors2.default.purple['700'], _materialColors2.default.purple['500'], _materialColors2.default.purple['300'], _materialColors2.default.purple['100']], [_materialColors2.default.deepPurple['900'], _materialColors2.default.deepPurple['700'], _materialColors2.default.deepPurple['500'], _materialColors2.default.deepPurple['300'], _materialColors2.default.deepPurple['100']], [_materialColors2.default.indigo['900'], _materialColors2.default.indigo['700'], _materialColors2.default.indigo['500'], _materialColors2.default.indigo['300'], _materialColors2.default.indigo['100']], [_materialColors2.default.blue['900'], _materialColors2.default.blue['700'], _materialColors2.default.blue['500'], _materialColors2.default.blue['300'], _materialColors2.default.blue['100']], [_materialColors2.default.lightBlue['900'], _materialColors2.default.lightBlue['700'], _materialColors2.default.lightBlue['500'], _materialColors2.default.lightBlue['300'], _materialColors2.default.lightBlue['100']], [_materialColors2.default.cyan['900'], _materialColors2.default.cyan['700'], _materialColors2.default.cyan['500'], _materialColors2.default.cyan['300'], _materialColors2.default.cyan['100']], [_materialColors2.default.teal['900'], _materialColors2.default.teal['700'], _materialColors2.default.teal['500'], _materialColors2.default.teal['300'], _materialColors2.default.teal['100']], ['#194D33', _materialColors2.default.green['700'], _materialColors2.default.green['500'], _materialColors2.default.green['300'], _materialColors2.default.green['100']], [_materialColors2.default.lightGreen['900'], _materialColors2.default.lightGreen['700'], _materialColors2.default.lightGreen['500'], _materialColors2.default.lightGreen['300'], _materialColors2.default.lightGreen['100']], [_materialColors2.default.lime['900'], _materialColors2.default.lime['700'], _materialColors2.default.lime['500'], _materialColors2.default.lime['300'], _materialColors2.default.lime['100']], [_materialColors2.default.yellow['900'], _materialColors2.default.yellow['700'], _materialColors2.default.yellow['500'], _materialColors2.default.yellow['300'], _materialColors2.default.yellow['100']], [_materialColors2.default.amber['900'], _materialColors2.default.amber['700'], _materialColors2.default.amber['500'], _materialColors2.default.amber['300'], _materialColors2.default.amber['100']], [_materialColors2.default.orange['900'], _materialColors2.default.orange['700'], _materialColors2.default.orange['500'], _materialColors2.default.orange['300'], _materialColors2.default.orange['100']], [_materialColors2.default.deepOrange['900'], _materialColors2.default.deepOrange['700'], _materialColors2.default.deepOrange['500'], _materialColors2.default.deepOrange['300'], _materialColors2.default.deepOrange['100']], [_materialColors2.default.brown['900'], _materialColors2.default.brown['700'], _materialColors2.default.brown['500'], _materialColors2.default.brown['300'], _materialColors2.default.brown['100']], [_materialColors2.default.blueGrey['900'], _materialColors2.default.blueGrey['700'], _materialColors2.default.blueGrey['500'], _materialColors2.default.blueGrey['300'], _materialColors2.default.blueGrey['100']]] | ||
colors: [[_materialColors2.default.red['900'], _materialColors2.default.red['700'], _materialColors2.default.red['500'], _materialColors2.default.red['300'], _materialColors2.default.red['100']], [_materialColors2.default.pink['900'], _materialColors2.default.pink['700'], _materialColors2.default.pink['500'], _materialColors2.default.pink['300'], _materialColors2.default.pink['100']], [_materialColors2.default.purple['900'], _materialColors2.default.purple['700'], _materialColors2.default.purple['500'], _materialColors2.default.purple['300'], _materialColors2.default.purple['100']], [_materialColors2.default.deepPurple['900'], _materialColors2.default.deepPurple['700'], _materialColors2.default.deepPurple['500'], _materialColors2.default.deepPurple['300'], _materialColors2.default.deepPurple['100']], [_materialColors2.default.indigo['900'], _materialColors2.default.indigo['700'], _materialColors2.default.indigo['500'], _materialColors2.default.indigo['300'], _materialColors2.default.indigo['100']], [_materialColors2.default.blue['900'], _materialColors2.default.blue['700'], _materialColors2.default.blue['500'], _materialColors2.default.blue['300'], _materialColors2.default.blue['100']], [_materialColors2.default.lightBlue['900'], _materialColors2.default.lightBlue['700'], _materialColors2.default.lightBlue['500'], _materialColors2.default.lightBlue['300'], _materialColors2.default.lightBlue['100']], [_materialColors2.default.cyan['900'], _materialColors2.default.cyan['700'], _materialColors2.default.cyan['500'], _materialColors2.default.cyan['300'], _materialColors2.default.cyan['100']], [_materialColors2.default.teal['900'], _materialColors2.default.teal['700'], _materialColors2.default.teal['500'], _materialColors2.default.teal['300'], _materialColors2.default.teal['100']], ['#194D33', _materialColors2.default.green['700'], _materialColors2.default.green['500'], _materialColors2.default.green['300'], _materialColors2.default.green['100']], [_materialColors2.default.lightGreen['900'], _materialColors2.default.lightGreen['700'], _materialColors2.default.lightGreen['500'], _materialColors2.default.lightGreen['300'], _materialColors2.default.lightGreen['100']], [_materialColors2.default.lime['900'], _materialColors2.default.lime['700'], _materialColors2.default.lime['500'], _materialColors2.default.lime['300'], _materialColors2.default.lime['100']], [_materialColors2.default.yellow['900'], _materialColors2.default.yellow['700'], _materialColors2.default.yellow['500'], _materialColors2.default.yellow['300'], _materialColors2.default.yellow['100']], [_materialColors2.default.amber['900'], _materialColors2.default.amber['700'], _materialColors2.default.amber['500'], _materialColors2.default.amber['300'], _materialColors2.default.amber['100']], [_materialColors2.default.orange['900'], _materialColors2.default.orange['700'], _materialColors2.default.orange['500'], _materialColors2.default.orange['300'], _materialColors2.default.orange['100']], [_materialColors2.default.deepOrange['900'], _materialColors2.default.deepOrange['700'], _materialColors2.default.deepOrange['500'], _materialColors2.default.deepOrange['300'], _materialColors2.default.deepOrange['100']], [_materialColors2.default.brown['900'], _materialColors2.default.brown['700'], _materialColors2.default.brown['500'], _materialColors2.default.brown['300'], _materialColors2.default.brown['100']], [_materialColors2.default.blueGrey['900'], _materialColors2.default.blueGrey['700'], _materialColors2.default.blueGrey['500'], _materialColors2.default.blueGrey['300'], _materialColors2.default.blueGrey['100']], ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF']] | ||
}; | ||
exports.default = (0, _common.ColorWrap)(Swatches); |
@@ -13,5 +13,5 @@ 'use strict'; | ||
var _lodash = require('lodash'); | ||
var _isString = require('lodash/isString'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _isString2 = _interopRequireDefault(_isString); | ||
@@ -50,3 +50,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var a; | ||
if (_lodash2.default.isString(this.props.onClick)) { | ||
if ((0, _isString2.default)(this.props.onClick)) { | ||
a = _react2.default.createElement( | ||
@@ -53,0 +53,0 @@ 'a', |
@@ -17,5 +17,5 @@ 'use strict'; | ||
var _lodash = require('lodash'); | ||
var _isString = require('lodash/isString'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _isString2 = _interopRequireDefault(_isString); | ||
@@ -216,3 +216,3 @@ var _Tab = require('./Tab'); | ||
var newTab; | ||
if (_lodash2.default.isString(tab)) { | ||
if ((0, _isString2.default)(tab)) { | ||
label = tab; | ||
@@ -219,0 +219,0 @@ callback = null; |
{ | ||
"name": "react-color", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "A Collection of Color Pickers from Sketch, Photoshop, Chrome & more", | ||
@@ -39,5 +39,2 @@ "main": "lib/index.js", | ||
"lodash": "^4.0.1", | ||
"lodash.debounce": "^4.0.0", | ||
"lodash.isplainobject": "^4.0.0", | ||
"lodash.throttle": "^4.0.0", | ||
"material-colors": "^1.0.0", | ||
@@ -57,3 +54,2 @@ "merge": "^1.2.0", | ||
"babel-loader": "^6.2.1", | ||
"babel-plugin-lodash": "^3.1.0", | ||
"babel-preset-es2015": "^6.3.13", | ||
@@ -74,2 +70,3 @@ "babel-preset-react": "^6.3.13", | ||
"react-context": "0.0.3", | ||
"react-dom": "^0.14.0 || ^15.0.0", | ||
"react-hot-loader": "^1.2.8", | ||
@@ -76,0 +73,0 @@ "remarkable": "^1.6.0", |
Sorry, the diff of this file is not supported yet
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
742078
8
- Removedlodash.debounce@^4.0.0
- Removedlodash.isplainobject@^4.0.0
- Removedlodash.throttle@^4.0.0
- Removedlodash.debounce@4.0.8(transitive)
- Removedlodash.isplainobject@4.0.6(transitive)
- Removedlodash.throttle@4.1.1(transitive)