uiuiui-color
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -14,3 +14,2 @@ 'use strict'; | ||
var culori__default = _interopDefault(culori); | ||
require('uiuiui/build/uiuiui.css'); | ||
@@ -238,3 +237,6 @@ var classCallCheck = function (instance, Constructor) { | ||
value: function getDerivedStateFromProps(props, current_state) { | ||
return props.value !== current_state.value ? { value: props.value } : null; | ||
return props.value !== current_state.prev_prop_value ? { | ||
value: props.value, | ||
prev_prop_value: props.value | ||
} : null; | ||
} | ||
@@ -257,3 +259,4 @@ }]); | ||
interacting: false, | ||
initial_value: props.value | ||
initial_value: props.value, | ||
prev_prop_value: undefined | ||
}; | ||
@@ -671,3 +674,3 @@ return _this; | ||
var css = culori.formatter(); | ||
var css$1 = culori.formatter(); | ||
@@ -680,3 +683,3 @@ var memo = {}; | ||
var color = culori__default(str); | ||
return color ? memo[str] = [css(_extends({}, color, { alpha: 0 })), css(_extends({}, color, { alpha: 1 }))] : undefined; | ||
return color ? memo[str] = [css$1(_extends({}, color, { alpha: 0 })), css$1(_extends({}, color, { alpha: 1 }))] : undefined; | ||
}; | ||
@@ -683,0 +686,0 @@ |
@@ -6,3 +6,2 @@ import React from 'react'; | ||
import culori, { formatter, samples, interpolate, round, hsv } from 'culori'; | ||
import 'uiuiui/build/uiuiui.css'; | ||
@@ -230,3 +229,6 @@ var classCallCheck = function (instance, Constructor) { | ||
value: function getDerivedStateFromProps(props, current_state) { | ||
return props.value !== current_state.value ? { value: props.value } : null; | ||
return props.value !== current_state.prev_prop_value ? { | ||
value: props.value, | ||
prev_prop_value: props.value | ||
} : null; | ||
} | ||
@@ -249,3 +251,4 @@ }]); | ||
interacting: false, | ||
initial_value: props.value | ||
initial_value: props.value, | ||
prev_prop_value: undefined | ||
}; | ||
@@ -663,3 +666,3 @@ return _this; | ||
var css = formatter(); | ||
var css$1 = formatter(); | ||
@@ -672,3 +675,3 @@ var memo = {}; | ||
var color = culori(str); | ||
return color ? memo[str] = [css(_extends({}, color, { alpha: 0 })), css(_extends({}, color, { alpha: 1 }))] : undefined; | ||
return color ? memo[str] = [css$1(_extends({}, color, { alpha: 0 })), css$1(_extends({}, color, { alpha: 1 }))] : undefined; | ||
}; | ||
@@ -675,0 +678,0 @@ |
{ | ||
"name": "uiuiui-color", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main": "build/uiuiui-color.cjs.js", | ||
@@ -41,3 +41,3 @@ "module": "build/uiuiui-color.esm.js", | ||
"react-event-listener": "^0.5.3", | ||
"uiuiui": "^0.4.0" | ||
"uiuiui": "^0.4.1" | ||
}, | ||
@@ -44,0 +44,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
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
322416
42
10079
Updateduiuiui@^0.4.1