New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rc-component/color-picker

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/color-picker - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

2

es/ColorPicker.js

@@ -86,3 +86,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

var hsb = colorValue.toHsb();
hsb.a = Math.round(alpha * 100) / 100;
hsb.a = Math.round(alpha) / 100;
return new Color(hsb);

@@ -89,0 +89,0 @@ };

@@ -23,3 +23,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

var getValue = function getValue(c) {
return type === 'hue' ? c.getHue() : c.getAlpha();
return type === 'hue' ? c.getHue() : c.getAlpha() * 100;
};

@@ -26,0 +26,0 @@ var onDragChange = useEvent(function (offsetValue) {

@@ -94,3 +94,3 @@ "use strict";

var hsb = colorValue.toHsb();
hsb.a = Math.round(alpha * 100) / 100;
hsb.a = Math.round(alpha) / 100;
return new _color.Color(hsb);

@@ -97,0 +97,0 @@ };

@@ -31,3 +31,3 @@ "use strict";

var getValue = function getValue(c) {
return type === 'hue' ? c.getHue() : c.getAlpha();
return type === 'hue' ? c.getHue() : c.getAlpha() * 100;
};

@@ -34,0 +34,0 @@ var onDragChange = (0, _rcUtil.useEvent)(function (offsetValue) {

{
"name": "@rc-component/color-picker",
"version": "1.7.0",
"version": "1.7.1",
"description": "React Color Picker",

@@ -5,0 +5,0 @@ "keywords": [

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