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

@uiw/react-color-slider

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-color-slider - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

11

lib/cjs/index.js

@@ -45,4 +45,5 @@ "use strict";

}, other), lightness.map(function (num, idx) {
var colorHSL = "hsl(".concat(hsva.h, "deg 50% ").concat(num, "%)");
var checked = (0, _colorConvert.equalColorObjects)((0, _colorConvert.hslStringToHsva)(colorHSL), hsva);
var hsl = (0, _colorConvert.hsvaToHsla)(hsva);
var hslStr = "hsl(".concat(hsl.h, ", 50%, ").concat(num, "%)");
var checked = hslStr === (0, _colorConvert.hsvaToHslString)(hsva);
return /*#__PURE__*/_react.default.createElement("div", {

@@ -57,6 +58,6 @@ key: idx,

onClick: function onClick(evn) {
return handleClick(colorHSL, evn);
return handleClick(hslStr, evn);
},
style: (0, _objectSpread2.default)({
backgroundColor: colorHSL,
backgroundColor: hslStr,
height: 12,

@@ -74,2 +75,2 @@ cursor: 'pointer'

module.exports = exports.default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJjbGFzc05hbWUiLCJzdHlsZSIsIm9uQ2hhbmdlIiwiY29sb3IiLCJsaWdodG5lc3MiLCJvdGhlciIsImhzdmEiLCJoYW5kbGVDbGljayIsImhzbFN0ciIsImV2biIsImRpc3BsYXkiLCJmaWx0ZXIiLCJCb29sZWFuIiwiam9pbiIsIm1hcCIsIm51bSIsImlkeCIsImNvbG9ySFNMIiwiaCIsImNoZWNrZWQiLCJwYWRkaW5nTGVmdCIsIndpZHRoIiwibGVu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cGFkZGluZ0xlZnQ6IDEsXG4gICAgICAgICAgICAgIHdpZHRoOiBgJHsxMDAgLyBsaWdodG5lc3MubGVuZ3RofSVgLFxuICAgICAgICAgICAgICBib3hTaXppbmc6ICdib3JkZXItYm94JyxcbiAgICAgICAgICAgIH19XG4gICAgICAgICAgPlxuICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICBvbkNsaWNrPXsoZXZuKSA9PiBoYW5kbGVDbGljayhjb2xvckhTTCwgZXZuKX1cbiAgICAgICAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6IGNvbG9ySFNMLFxuICAgICAgICAgICAgICAgIGhlaWdodDogMTIsXG4gICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgLi4uKGNoZWNrZWRcbiAgICAgICAgICAgICAgICAgID8ge1xuICAgICAgICAgICAgICAgICAgICAgIGJvcmRlclJhZGl1czogMixcbiAgICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSgxLCAxLjUpJyxcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgOiB7fSksXG4gICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICApO1xuICAgICAgfSl9XG4gICAgPC9kaXY+XG4gICk7XG59KTtcbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJjbGFzc05hbWUiLCJzdHlsZSIsIm9uQ2hhbmdlIiwiY29sb3IiLCJsaWdodG5lc3MiLCJvdGhlciIsImhzdmEiLCJoYW5kbGVDbGljayIsImhzbFN0ciIsImV2biIsImRp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b25zdCBjaGVja2VkID0gaHNsU3RyID09PSBoc3ZhVG9Ic2xTdHJpbmcoaHN2YSk7XG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgPGRpdlxuICAgICAgICAgICAga2V5PXtpZHh9XG4gICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICBwYWRkaW5nTGVmdDogMSxcbiAgICAgICAgICAgICAgd2lkdGg6IGAkezEwMCAvIGxpZ2h0bmVzcy5sZW5ndGh9JWAsXG4gICAgICAgICAgICAgIGJveFNpemluZzogJ2JvcmRlci1ib3gnLFxuICAgICAgICAgICAgfX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgIG9uQ2xpY2s9eyhldm4pID0+IGhhbmRsZUNsaWNrKGhzbFN0ciwgZXZuKX1cbiAgICAgICAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6IGhzbFN0cixcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDEyLFxuICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgIC4uLihjaGVja2VkXG4gICAgICAgICAgICAgICAgICA/IHtcbiAgICAgICAgICAgICAgICAgICAgICBib3JkZXJSYWRpdXM6IDIsXG4gICAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoMSwgMS41KScsXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIDoge30pLFxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgKTtcbiAgICAgIH0pfVxuICAgIDwvZGl2PlxuICApO1xufSk7XG4iXX0=

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

import React from 'react';
import { color as handleColor, hexToHsva, equalColorObjects, validHex, hslStringToHsva } from '@uiw/color-convert';
import { color as handleColor, hexToHsva, hsvaToHsla, hsvaToHslString, validHex, hslStringToHsva } from '@uiw/color-convert';
export default /*#__PURE__*/React.forwardRef(function (props, ref) {

@@ -32,4 +32,5 @@ var _props$prefixCls = props.prefixCls,

}, other), lightness.map(function (num, idx) {
var colorHSL = "hsl(".concat(hsva.h, "deg 50% ").concat(num, "%)");
var checked = equalColorObjects(hslStringToHsva(colorHSL), hsva);
var hsl = hsvaToHsla(hsva);
var hslStr = "hsl(".concat(hsl.h, ", 50%, ").concat(num, "%)");
var checked = hslStr === hsvaToHslString(hsva);
return /*#__PURE__*/React.createElement("div", {

@@ -44,6 +45,6 @@ key: idx,

onClick: function onClick(evn) {
return handleClick(colorHSL, evn);
return handleClick(hslStr, evn);
},
style: _objectSpread({
backgroundColor: colorHSL,
backgroundColor: hslStr,
height: 12,

@@ -58,2 +59,2 @@ cursor: 'pointer'

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJjb2xvciIsImhhbmRsZUNvbG9yIiwiaGV4VG9Ic3ZhIiwiZXF1YWxDb2xvck9iamVjdHMiLCJ2YWxpZEhleCIsImhzbFN0cmluZ1RvSHN2YSIsImZvcndhcmRSZWYiLCJwcm9wcyIsInJlZiIsInByZWZpeENscyIsImNsYXNzTmFtZSIsInN0eWxlIiwib25DaGFuZ2UiLCJsaWdodG5lc3MiLCJvdGhlciIsImhzdmEiLCJoYW5kbGVDbGljayIsImhzbFN0ciIsImV2biIsImRpc3BsYXkiLCJmaWx0ZXIiLCJCb29sZWFuIiwiam9pbiIsIm1hcCIsIm51bSIsImlkeCIsImNvbG9ySFNMIiwiaCIsImNoZWNrZWQiLCJwYWRkaW5nTGVmdCIsIndpZHRoIiwibGVuZ3RoIiwiYm94U2l6aW5nIiwiYmFja2dyb3VuZENvbG9yIiwiaGVpZ2h0IiwiY3Vyc29yIiwiYm9yZGVyUmF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Aga2V5PXtpZHh9XG4gICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICBwYWRkaW5nTGVmdDogMSxcbiAgICAgICAgICAgICAgd2lkdGg6IGAkezEwMCAvIGxpZ2h0bmVzcy5sZW5ndGh9JWAsXG4gICAgICAgICAgICAgIGJveFNpemluZzogJ2JvcmRlci1ib3gnLFxuICAgICAgICAgICAgfX1cbiAgICAgICAgICA+XG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgIG9uQ2xpY2s9eyhldm4pID0+IGhhbmRsZUNsaWNrKGNvbG9ySFNMLCBldm4pfVxuICAgICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogY29sb3JIU0wsXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAxMixcbiAgICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAuLi4oY2hlY2tlZFxuICAgICAgICAgICAgICAgICAgPyB7XG4gICAgICAgICAgICAgICAgICAgICAgYm9yZGVyUmFkaXVzOiAyLFxuICAgICAgICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDEsIDEuNSknLFxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICA6IHt9KSxcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICk7XG4gICAgICB9KX1cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJjb2xvciIsImhhbmRsZUNvbG9yIiwiaGV4VG9Ic3ZhIiwiaHN2YVRvSHNsYSIsImhzdmFUb0hzbFN0cmluZyIsInZhbGlkSGV4IiwiaHNsU3RyaW5n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XG4gICAgICBzdHlsZT17eyBkaXNwbGF5OiAnZmxleCcsIC4uLnN0eWxlIH19XG4gICAgICBjbGFzc05hbWU9e1twcmVmaXhDbHMsIGNsYXNzTmFtZSB8fCAnJ10uZmlsdGVyKEJvb2xlYW4pLmpvaW4oJyAnKX1cbiAgICAgIHsuLi5vdGhlcn1cbiAgICA+XG4gICAgICB7bGlnaHRuZXNzLm1hcCgobnVtLCBpZHgpID0+IHtcbiAgICAgICAgY29uc3QgaHNsID0gaHN2YVRvSHNsYShoc3ZhKTtcbiAgICAgICAgY29uc3QgaHNsU3RyID0gYGhzbCgke2hzbC5ofSwgNTAlLCAke251bX0lKWA7XG4gICAgICAgIGNvbnN0IGNoZWNrZWQgPSBoc2xTdHIgPT09IGhzdmFUb0hzbFN0cmluZyhoc3ZhKTtcbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICBrZXk9e2lkeH1cbiAgICAgICAgICAgIHN0eWxlPXt7XG4gICAgICAgICAgICAgIHBhZGRpbmdMZWZ0OiAxLFxuICAgICAgICAgICAgICB3aWR0aDogYCR7MTAwIC8gbGlnaHRuZXNzLmxlbmd0aH0lYCxcbiAgICAgICAgICAgICAgYm94U2l6aW5nOiAnYm9yZGVyLWJveCcsXG4gICAgICAgICAgICB9fVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgb25DbGljaz17KGV2bikgPT4gaGFuZGxlQ2xpY2soaHNsU3RyLCBldm4pfVxuICAgICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogaHNsU3RyLFxuICAgICAgICAgICAgICAgIGhlaWdodDogMTIsXG4gICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgLi4uKGNoZWNrZWRcbiAgICAgICAgICAgICAgICAgID8ge1xuICAgICAgICAgICAgICAgICAgICAgIGJvcmRlclJhZGl1czogMixcbiAgICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSgxLCAxLjUpJyxcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgOiB7fSksXG4gICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICApO1xuICAgICAgfSl9XG4gICAgPC9kaXY+XG4gICk7XG59KTtcbiJdfQ==
{
"name": "@uiw/react-color-slider",
"version": "0.0.9",
"version": "0.0.10",
"description": "Color Slider component for React.",

@@ -32,4 +32,4 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"@babel/runtime": "7.14.6",
"@uiw/color-convert": "^0.0.9",
"@uiw/react-color-alpha": "^0.0.9"
"@uiw/color-convert": "^0.0.10",
"@uiw/react-color-alpha": "^0.0.10"
},

@@ -36,0 +36,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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