Socket
Socket
Sign inDemoInstall

uiuiui-color

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uiuiui-color - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

build/ColorBand/CheckerboardBand.js

13

build/uiuiui-color.cjs.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc