Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-best-gradient-color-picker

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-best-gradient-color-picker - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

5

lib/context.js

@@ -24,4 +24,3 @@ import React, { createContext, useContext, useState, useEffect } from 'react';

const [selectedColor, setSelectedColor] = useState(0);
const initials = getInitialValues(colors, selectedColor); // const [color, setColor] = useState(initials?.c)
const initials = getInitialValues(colors, selectedColor);
const [hue, setHue] = useState(initials?.h);

@@ -87,3 +86,3 @@ const [hueX, setHueX] = useState(initials?.hx);

setSelectedColor(index);
setColor(newS?.value);
onChange(newS?.value);
setHue(newS?.hsl[0]);

@@ -90,0 +89,0 @@ setHueX(computeHueX(newS.hsl[0]));

2

package.json
{
"name": "react-best-gradient-color-picker",
"version": "1.1.1",
"version": "1.1.2",
"description": "An easy to use color/gradient picker for React.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -18,3 +18,2 @@ import React, { createContext, useContext, useState, useEffect } from 'react';

const initials = getInitialValues(colors, selectedColor)
// const [color, setColor] = useState(initials?.c)
const [hue, setHue] = useState(initials?.h)

@@ -75,3 +74,3 @@ const [hueX, setHueX] = useState(initials?.hx)

setSelectedColor(index);
setColor(newS?.value)
onChange(newS?.value)
setHue(newS?.hsl[0])

@@ -78,0 +77,0 @@ setHueX(computeHueX(newS.hsl[0]))

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