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

@uiw/react-color-sketch

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.6 to 0.0.7

1

lib/cjs/index.d.ts

@@ -22,2 +22,3 @@ import React from 'react';

export interface SketchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> {
prefixCls?: string;
width?: number;

@@ -24,0 +25,0 @@ color?: string | HsvaColor;

63

lib/cjs/index.js

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

var _excluded = ["onChange", "width", "presetColors", "color", "style"];
var _excluded = ["prefixCls", "className", "onChange", "width", "presetColors", "color", "style"];

@@ -53,3 +53,6 @@ var Bar = function Bar(props) {

var _default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
var onChange = props.onChange,
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'w-color-sketch' : _props$prefixCls,
className = props.className,
onChange = props.onChange,
_props$width = props.width,

@@ -79,12 +82,13 @@ width = _props$width === void 0 ? 218 : _props$width,

}, [color]);
var handleChange = (0, _react.useCallback)(function (hsva) {
setHsva(hsva);
var handleChange = (0, _react.useCallback)(function (hsv) {
setHsva(hsv);
onChange && onChange({
hex: (0, _colorConvert.hsvaToHex)(hsva),
hsl: (0, _colorConvert.hsvaToHsla)(hsva),
hsv: hsva,
rgb: (0, _colorConvert.hsvaToRgba)(hsva)
hex: (0, _colorConvert.hsvaToHex)(hsv),
hsl: (0, _colorConvert.hsvaToHsla)(hsv),
hsv: hsv,
rgb: (0, _colorConvert.hsvaToRgba)(hsv)
});
}, [hsva]);
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, other, {
className: "".concat(prefixCls, " ").concat(className || ''),
ref: ref,

@@ -121,6 +125,6 @@ style: (0, _objectSpread2.default)({

}
}, /*#__PURE__*/_react.default.createElement(_reactColorAlpha.default, {
}, /*#__PURE__*/_react.default.createElement(_reactColorHue.default, {
width: "auto",
height: 10,
hsva: hsva,
hue: hsva.h,
pointer: Bar,

@@ -133,10 +137,13 @@ innerProps: {

},
onChange: function onChange(newAlpha) {
return handleChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, hsva), newAlpha));
onChange: function onChange(newHue) {
return handleChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, hsva), newHue));
}
}), /*#__PURE__*/_react.default.createElement(_reactColorHue.default, {
}), /*#__PURE__*/_react.default.createElement(_reactColorAlpha.default, {
width: "auto",
height: 10,
hue: hsva.h,
hsva: hsva,
pointer: Bar,
style: {
marginTop: 4
},
innerProps: {

@@ -148,7 +155,4 @@ style: {

},
style: {
marginTop: 4
},
onChange: function onChange(newHue) {
return handleChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, hsva), newHue));
onChange: function onChange(newAlpha) {
return handleChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, hsva), newAlpha));
}

@@ -161,11 +165,22 @@ })), /*#__PURE__*/_react.default.createElement(_reactColorAlpha.default, {

style: {
marginLeft: 4,
boxShadow: 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset'
marginLeft: 4
},
background: (0, _colorConvert.hsvaToHslaString)(hsva),
bgProps: {
style: {
background: 'transparent'
}
},
innerProps: {
style: {
borderRadius: 2,
background: (0, _colorConvert.hsvaToRgbaString)(hsva),
boxShadow: 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset'
}
},
pointer: function pointer() {
return /*#__PURE__*/_react.default.createElement("div", null);
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null);
}
}))), /*#__PURE__*/_react.default.createElement(_Swatch.default, {
colors: presetColors,
color: (0, _colorConvert.hsvaToHex)(hsva),
onClick: function onClick(hsva) {

@@ -179,2 +194,2 @@ return handleChange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pdj5cbiAgICAgICAgICA8QWxwaGFcbiAgICAgICAgICAgIHdpZHRoPXsyNH1cbiAgICAgICAgICAgIGhlaWdodD17MjR9XG4gICAgICAgICAgICBoc3ZhPXtoc3ZhfVxuICAgICAgICAgICAgcmFkaXVzPXsyfVxuICAgICAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAgICAgbWFyZ2luTGVmdDogNCxcbiAgICAgICAgICAgICAgYm94U2hhZG93OiAncmdiKDAgMCAwIC8gMTUlKSAwcHggMHB4IDBweCAxcHggaW5zZXQsIHJnYigwIDAgMCAvIDI1JSkgMHB4IDBweCA0cHggaW5zZXQnLFxuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIGJhY2tncm91bmQ9e2hzdmFUb0hzbGFTdHJpbmcoaHN2YSl9XG4gICAgICAgICAgICBwb2ludGVyPXsoKSA9PiA8ZGl2IC8+fVxuICAgICAgICAgIC8+XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9kaXY+XG4gICAgICA8U3dhdGNoIGNvbG9ycz17cHJlc2V0Q29sb3JzfSBvbkNsaWNrPXsoaHN2YSkgPT4gaGFuZGxlQ2hhbmdlKGhzdmEpfSAvPlxuICAgIDwvZGl2PlxuICApO1xufSk7XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiQmFyIiwicHJvcHMiLCJib3hTaGFkb3ciLCJ3aWR0aCIsInRvcCIsImJvdHRvbSIsImxlZnQiLCJib3JkZXJSYWRpdXMiLCJwb3NpdGlvbiIsImJhY2tncm91bmRDb2xvciIsIlJlYWN0IiwiZm9yd2FyZFJlZiIsInJlZiIsInByZWZpeENscyIsImNsYXNzTmFtZSIsIm9uQ2hhbmdlIiwicHJlc2V0Q29sb3JzIiwiY29sb3IiLCJzdHlsZSIsIm90aGVyIiwiaCIsInMiLCJ2IiwiYSIsImhzdmEiLCJ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ICAgICAuLi5zdHlsZSxcbiAgICAgIH19XG4gICAgPlxuICAgICAgPGRpdiBzdHlsZT17eyBwYWRkaW5nOiAxMCB9fT5cbiAgICAgICAgPFNhdHVyYXRpb25cbiAgICAgICAgICBoc3ZhPXtoc3ZhfVxuICAgICAgICAgIHN0eWxlPXt7IHdpZHRoOiAnYXV0bycsIGhlaWdodDogMTUwIH19XG4gICAgICAgICAgb25DaGFuZ2U9eyhuZXdDb2xvcikgPT4gaGFuZGxlQ2hhbmdlKHsgLi4uaHN2YSwgLi4ubmV3Q29sb3IsIGE6IGhzdmEuYSB9KX1cbiAgICAgICAgLz5cbiAgICAgICAgPGRpdiBzdHlsZT17eyBkaXNwbGF5OiAnZmxleCcsIG1hcmdpblRvcDogNCB9fT5cbiAgICAgICAgICA8ZGl2IHN0eWxlPXt7IGZsZXg6IDEgfX0+XG4gICAgICAgICAgICA8SHVlXG4gICAgICAgICAgICAgIHdpZHRoPVwiYXV0b1wiXG4gICAgICAgICAgICAgIGhlaWdodD17MTB9XG4gICAgICAgICAgICAgIGh1ZT17aHN2YS5ofVxuICAgICAgICAgICAgICBwb2ludGVyPXtCYXJ9XG4gICAgICAgICAgICAgIGlubmVyUHJvcHM9e3tcbiAgICAgICAgICAgICAgICBzdHlsZTogeyBtYXJnaW5MZWZ0OiAxLCBtYXJnaW5SaWdodDogNSB9LFxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICBvbkNoYW5nZT17KG5ld0h1ZSkgPT4gaGFuZGxlQ2hhbmdlKHsgLi4uaHN2YSwgLi4ubmV3SHVlIH0pfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIDxBbHBoYVxuICAgICAgICAgICAgICB3aWR0aD1cImF1dG9cIlxuICAgICAgICAgICAgICBoZWlnaHQ9ezEwfVxuICAgICAgICAgICAgICBoc3ZhPXtoc3ZhfVxuICAgICAgICAgICAgICBwb2ludGVyPXtCYXJ9XG4gICAgICAgICAgICAgIHN0eWxlPXt7IG1hcmdpblRvcDogNCB9fVxuICAgICAgICAgICAgICBpbm5lclByb3BzPXt7XG4gICAgICAgICAgICAgICAgc3R5bGU6IHsgbWFyZ2luTGVmdDogMSwgbWFyZ2luUmlnaHQ6IDUgfSxcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9eyhuZXdBbHBoYSkgPT4gaGFuZGxlQ2hhbmdlKHsgLi4uaHN2YSwgLi4ubmV3QWxwaGEgfSl9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDxBbHBoYVxuICAgICAgICAgICAgd2lkdGg9ezI0fVxuICAgICAgICAgICAgaGVpZ2h0PXsyNH1cbiAgICAgICAgICAgIGhzdmE9e2hzdmF9XG4gICAgICAgICAgICByYWRpdXM9ezJ9XG4gICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICBtYXJnaW5MZWZ0OiA0LFxuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIGJnUHJvcHM9e3sgc3R5bGU6IHsgYmFja2dyb3VuZDogJ3RyYW5zcGFyZW50JyB9IH19XG4gICAgICAgICAgICBpbm5lclByb3BzPXt7XG4gICAgICAgICAgICAgIHN0eWxlOiB7XG4gICAgICAgICAgICAgICAgYm9yZGVyUmFkaXVzOiAyLFxuICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6IGhzdmFUb1JnYmFTdHJpbmcoaHN2YSksXG4gICAgICAgICAgICAgICAgYm94U2hhZG93OiAncmdiKDAgMCAwIC8gMTUlKSAwcHggMHB4IDBweCAxcHggaW5zZXQsIHJnYigwIDAgMCAvIDI1JSkgMHB4IDBweCA0cHggaW5zZXQnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIHBvaW50ZXI9eygpID0+IDxGcmFnbWVudCAvPn1cbiAgICAgICAgICAvPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgICAgPFN3YXRjaCBjb2xvcnM9e3ByZXNldENvbG9yc30gY29sb3I9e2hzdmFUb0hleChoc3ZhKX0gb25DbGljaz17KGhzdmEpID0+IGhhbmRsZUNoYW5nZShoc3ZhKX0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn0pO1xuIl19

@@ -7,3 +7,4 @@ import React from 'react';

} | string;
export interface SwatchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> {
export interface SwatchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'color'> {
color?: string;
colors?: PresetColor[];

@@ -10,0 +11,0 @@ onClick?: (hsva: HsvaColor) => void;

@@ -12,4 +12,2 @@ "use strict";

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));

@@ -19,10 +17,4 @@

var PRESET_COLORS = ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'];
var PRESET_COLORS = ['#D0021B', '#F5A623', '#f8e61b', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'];
var Rect = function Rect(props) {
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
tabIndex: 0
}, props));
};
function Swatch(props) {

@@ -85,2 +77,2 @@ var _props$colors = props.colors,

module.exports = exports.default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Td2F0Y2gudHN4Il0sIm5hbWVzIjpbIlBSRVNFVF9DT0xPUlMiLCJSZWN0IiwicHJvcHMiLCJTd2F0Y2giLCJjb2xvcnMiLCJvbkNsaWNrIiwicmVjdFN0eWxlIiwiYmFja2dyb3VuZCIsImhlaWdodCIsIndpZHRoIiwibWFyZ2luUmlnaH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N0cmluZykgPT4ge1xuICAgIG9uQ2xpY2sgJiYgb25DbGljayhoZXhUb0hzdmEoaGV4KSk7XG4gIH07XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgc3R5bGU9e3tcbiAgICAgICAgcGFkZGluZ0xlZnQ6IDEwLFxuICAgICAgICBwYWRkaW5nVG9wOiAxMCxcbiAgICAgICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgICAgICBmbGV4V3JhcDogJ3dyYXAnLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgYm9yZGVyVG9wOiAnMXB4IHNvbGlkIHJnYigyMzgsIDIzOCwgMjM4KScsXG4gICAgICB9fVxuICAgID5cbiAgICAgIHtjb2xvcnMgJiZcbiAgICAgICAgQXJyYXkuaXNBcnJheShjb2xvcnMpICYmXG4gICAgICAgIGNvbG9ycy5tYXAoKGl0ZW0sIGlkeCkgPT4ge1xuICAgICAgICAgIGxldCB0aXRsZSA9ICcnO1xuICAgICAgICAgIGxldCBiYWNrZ3JvdW5kID0gJyc7XG4gICAgICAgICAgaWYgKHR5cGVvZiBpdGVtID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgdGl0bGUgPSBpdGVtO1xuICAgICAgICAgICAgYmFja2dyb3VuZCA9IGl0ZW07XG4gICAgICAgICAgfSBlbHNlIGlmIChpdGVtICYmIGl0ZW0uY29sb3IpIHtcbiAgICAgICAgICAgIHRpdGxlID0gaXRlbS50aXRsZSB8fCBpdGVtLmNvbG9yO1xuICAgICAgICAgICAgYmFja2dyb3VuZCA9IGl0ZW0uY29sb3I7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgIHRhYkluZGV4PXswfVxuICAgICAgICAgICAgICBrZXk9e2lkeH1cbiAgICAgICAgICAgICAgdGl0bGU9e3RpdGxlfVxuICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiBoYW5kbG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gPGRpdlxuICAgICAgICAgICAgICB0YWJJbmRleD17MH1cbiAgICAgICAgICAgICAga2V5PXtpZHh9XG4gICAgICAgICAgICAgIHRpdGxlPXt0aXRsZX1cbiAgICAgICAgICAgICAgb25DbGljaz17KCkgPT4gaGFuZGxlQ2xpY2soYmFja2dyb3VuZCl9XG4gICAgICAgICAgICAgIHN0eWxlPXt7IC4uLnJlY3RTdHlsZSwgYmFja2dyb3VuZCB9fVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICApO1xuICAgICAgICB9KX1cbiAgICA8L2Rpdj5cbiAgKTtcbn1cbiJdfQ==

@@ -22,2 +22,3 @@ import React from 'react';

export interface SketchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> {
prefixCls?: string;
width?: number;

@@ -24,0 +25,0 @@ color?: string | HsvaColor;

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

import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["onChange", "width", "presetColors", "color", "style"];
import React, { useState, useCallback } from 'react';
var _excluded = ["prefixCls", "className", "onChange", "width", "presetColors", "color", "style"];
import React, { useState, useCallback, Fragment } from 'react';
import Saturation from '@uiw/react-color-saturation';
import Alpha from '@uiw/react-color-alpha';
import Hue from '@uiw/react-color-hue';
import { hsvaToHslaString, validHex, hsvaToHsla, hsvaToHex, hsvaToRgba, hexToHsva } from '@uiw/color-convert';
import { validHex, hsvaToHsla, hsvaToHex, hsvaToRgba, hsvaToRgbaString, hexToHsva } from '@uiw/color-convert';
import Swatch from './Swatch';

@@ -40,3 +40,6 @@ import { useEffect } from 'react';

export default /*#__PURE__*/React.forwardRef(function (props, ref) {
var onChange = props.onChange,
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'w-color-sketch' : _props$prefixCls,
className = props.className,
onChange = props.onChange,
_props$width = props.width,

@@ -66,12 +69,13 @@ width = _props$width === void 0 ? 218 : _props$width,

}, [color]);
var handleChange = useCallback(function (hsva) {
setHsva(hsva);
var handleChange = useCallback(function (hsv) {
setHsva(hsv);
onChange && onChange({
hex: hsvaToHex(hsva),
hsl: hsvaToHsla(hsva),
hsv: hsva,
rgb: hsvaToRgba(hsva)
hex: hsvaToHex(hsv),
hsl: hsvaToHsla(hsv),
hsv: hsv,
rgb: hsvaToRgba(hsv)
});
}, [hsva]);
return /*#__PURE__*/React.createElement("div", _extends({}, other, {
className: "".concat(prefixCls, " ").concat(className || ''),
ref: ref,

@@ -108,6 +112,6 @@ style: _objectSpread({

}
}, /*#__PURE__*/React.createElement(Alpha, {
}, /*#__PURE__*/React.createElement(Hue, {
width: "auto",
height: 10,
hsva: hsva,
hue: hsva.h,
pointer: Bar,

@@ -120,10 +124,13 @@ innerProps: {

},
onChange: function onChange(newAlpha) {
return handleChange(_objectSpread(_objectSpread({}, hsva), newAlpha));
onChange: function onChange(newHue) {
return handleChange(_objectSpread(_objectSpread({}, hsva), newHue));
}
}), /*#__PURE__*/React.createElement(Hue, {
}), /*#__PURE__*/React.createElement(Alpha, {
width: "auto",
height: 10,
hue: hsva.h,
hsva: hsva,
pointer: Bar,
style: {
marginTop: 4
},
innerProps: {

@@ -135,7 +142,4 @@ style: {

},
style: {
marginTop: 4
},
onChange: function onChange(newHue) {
return handleChange(_objectSpread(_objectSpread({}, hsva), newHue));
onChange: function onChange(newAlpha) {
return handleChange(_objectSpread(_objectSpread({}, hsva), newAlpha));
}

@@ -148,11 +152,22 @@ })), /*#__PURE__*/React.createElement(Alpha, {

style: {
marginLeft: 4,
boxShadow: 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset'
marginLeft: 4
},
background: hsvaToHslaString(hsva),
bgProps: {
style: {
background: 'transparent'
}
},
innerProps: {
style: {
borderRadius: 2,
background: hsvaToRgbaString(hsva),
boxShadow: 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset'
}
},
pointer: function pointer() {
return /*#__PURE__*/React.createElement("div", null);
return /*#__PURE__*/React.createElement(Fragment, null);
}
}))), /*#__PURE__*/React.createElement(Swatch, {
colors: presetColors,
color: hsvaToHex(hsva),
onClick: function onClick(hsva) {

@@ -163,2 +178,2 @@ return handleChange(hsva);

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJ1c2VTdGF0ZSIsInVzZUNhbGxiYWNrIiwiU2F0dXJhdGlvbiIsIkFscGhhIiwiSHVlIiwiaHN2YVRvSHNsYVN0cmluZyIsInZhbGlkSGV4IiwiaHN2YVRvSHNsYSIsImhzdmFUb0hleCIsImhzdmFUb1JnYmEiLCJoZXhUb0hzdmEiLCJTd2F0Y2giLCJ1c2VFZmZlY3QiLCJCYXIiLCJwcm9wcyIsImJveFNoYWRvdyIsIndpZHRoIiwidG9wIiwiYm90dG9tIiwibGVmdCIsImJvcmRlclJhZGl1cyIsInBvc2l0aW9uIiwiYmFja2dyb3VuZENvbG9yIiwiZm9yd2FyZFJlZiIsInJlZiIsIm9uQ2hhbmdlIiwicHJlc2V0Q29sb3JzIiwiY29sb3IiLCJzdHlsZSIsIm90aGVyIiwiaCIsInMiLCJ2IiwiYSIsImhzdmEiLCJzZXRIc3ZhIiwiaGFuZGxlQ2hhbmdlIiwiaGV4IiwiaHNsIiwiaHN2IiwicmdiIiwiYmFja2dyb3VuZCIsInBhZGRpbmciLCJoZWlnaHQiLCJuZXdDb2xvciIsImRpc3BsYXkiLCJtYXJnaW5Ub3AiLCJmbGV4IiwibWFyZ2luTGVmdCIsIm1hcmdpblJpZ2h0IiwibmV3QWxwaGEiLCJuZXdIdWUiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU9BLEtBQVAsSUFBZ0JDLFFBQWhCLEVBQTBCQyxXQUExQixRQUE2QyxPQUE3QztBQUNB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AgICAgaGVpZ2h0PXsxMH1cbiAgICAgICAgICAgICAgaHN2YT17aHN2YX1cbiAgICAgICAgICAgICAgcG9pbnRlcj17QmFyfVxuICAgICAgICAgICAgICBpbm5lclByb3BzPXt7XG4gICAgICAgICAgICAgICAgc3R5bGU6IHsgbWFyZ2luTGVmdDogMSwgbWFyZ2luUmlnaHQ6IDUgfSxcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9eyhuZXdBbHBoYSkgPT4gaGFuZGxlQ2hhbmdlKHsgLi4uaHN2YSwgLi4ubmV3QWxwaGEgfSl9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgICAgPEh1ZVxuICAgICAgICAgICAgICB3aWR0aD1cImF1dG9cIlxuICAgICAgICAgICAgICBoZWlnaHQ9ezEwfVxuICAgICAgICAgICAgICBodWU9e2hzdmEuaH1cbiAgICAgICAgICAgICAgcG9pbnRlcj17QmFyfVxuICAgICAgICAgICAgICBpbm5lclByb3BzPXt7XG4gICAgICAgICAgICAgICAgc3R5bGU6IHsgbWFyZ2luTGVmdDogMSwgbWFyZ2luUmlnaHQ6IDUgfSxcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgc3R5bGU9e3sgbWFyZ2luVG9wOiA0IH19XG4gICAgICAgICAgICAgIG9uQ2hhbmdlPXsobmV3SHVlKSA9PiBoYW5kbGVDaGFuZ2UoeyAuLi5oc3ZhLCAuLi5uZXdIdWUgfSl9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDxBbHBoYVxuICAgICAgICAgICAgd2lkdGg9ezI0fVxuICAgICAgICAgICAgaGVpZ2h0PXsyNH1cbiAgICAgICAgICAgIGhzdmE9e2hzdmF9XG4gICAgICAgICAgICByYWRpdXM9ezJ9XG4gICAgICAgICAgICBzdHlsZT17e1xuICAgICAgICAgICAgICBtYXJnaW5MZWZ0OiA0LFxuICAgICAgICAgICAgICBib3hTaGFkb3c6ICdyZ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AgICAgICAgICAgaHVlPXtoc3ZhLmh9XG4gICAgICAgICAgICAgIHBvaW50ZXI9e0Jhcn1cbiAgICAgICAgICAgICAgaW5uZXJQcm9wcz17e1xuICAgICAgICAgICAgICAgIHN0eWxlOiB7IG1hcmdpbkxlZnQ6IDEsIG1hcmdpblJpZ2h0OiA1IH0sXG4gICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgIG9uQ2hhbmdlPXsobmV3SHVlKSA9PiBoYW5kbGVDaGFuZ2UoeyAuLi5oc3ZhLCAuLi5uZXdIdWUgfSl9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgICAgPEFscGhhXG4gICAgICAgICAgICAgIHdpZHRoPVwiYXV0b1wiXG4gICAgICAgICAgICAgIGhlaWdodD17MTB9XG4gICAgICAgICAgICAgIGhzdmE9e2hzdmF9XG4gICAgICAgICAgICAgIHBvaW50ZXI9e0Jhcn1cbiAgICAgICAgICAgICAgc3R5bGU9e3sgbWFyZ2luVG9wOiA0IH19XG4gICAgICAgICAgICAgIGlubmVyUHJvcHM9e3tcbiAgICAgICAgICAgICAgICBzdHlsZTogeyBtYXJnaW5MZWZ0OiAxLCBtYXJnaW5SaWdodDogNSB9LFxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICBvbkNoYW5nZT17KG5ld0FscGhhKSA9PiBoYW5kbGVDaGFuZ2UoeyAuLi5oc3ZhLCAuLi5uZXdBbHBoYSB9KX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgPEFscGhhXG4gICAgICAgICAgICB3aWR0aD17MjR9XG4gICAgICAgICAgICBoZWlnaHQ9ezI0fVxuICAgICAgICAgICAgaHN2YT17aHN2YX1cbiAgICAgICAgICAgIHJhZGl1cz17Mn1cbiAgICAgICAgICAgIHN0eWxlPXt7XG4gICAgICAgICAgICAgIG1hcmdpbkxlZnQ6IDQsXG4gICAgICAgICAgICB9fVxuICAgICAgICAgICAgYmdQcm9wcz17eyBzdHlsZTogeyBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnIH0gfX1cbiAgICAgICAgICAgIGlubmVyUHJvcHM9e3tcbiAgICAgICAgICAgICAgc3R5bGU6IHtcbiAgICAgICAgICAgICAgICBib3JkZXJSYWRpdXM6IDIsXG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZDogaHN2YVRvUmdiYVN0cmluZyhoc3ZhKSxcbiAgICAgICAgICAgICAgICBib3hTaGFkb3c6ICdyZ2IoMCAwIDAgLyAxNSUpIDBweCAwcHggMHB4IDFweCBpbnNldCwgcmdiKDAgMCAwIC8gMjUlKSAwcHggMHB4IDRweCBpbnNldCcsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9fVxuICAgICAgICAgICAgcG9pbnRlcj17KCkgPT4gPEZyYWdtZW50IC8+fVxuICAgICAgICAgIC8+XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9kaXY+XG4gICAgICA8U3dhdGNoIGNvbG9ycz17cHJlc2V0Q29sb3JzfSBjb2xvcj17aHN2YVRvSGV4KGhzdmEpfSBvbkNsaWNrPXsoaHN2YSkgPT4gaGFuZGxlQ2hhbmdlKGhzdmEpfSAvPlxuICAgIDwvZGl2PlxuICApO1xufSk7XG4iXX0=

@@ -7,3 +7,4 @@ import React from 'react';

} | string;
export interface SwatchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'> {
export interface SwatchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'color'> {
color?: string;
colors?: PresetColor[];

@@ -10,0 +11,0 @@ onClick?: (hsva: HsvaColor) => void;

import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import _extends from "@babel/runtime/helpers/extends";
import React from 'react';
import { hexToHsva } from '@uiw/color-convert';
var PRESET_COLORS = ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'];
var Rect = function Rect(props) {
return /*#__PURE__*/React.createElement("div", _extends({
tabIndex: 0
}, props));
};
var PRESET_COLORS = ['#D0021B', '#F5A623', '#f8e61b', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'];
export default function Swatch(props) {

@@ -68,2 +60,2 @@ var _props$colors = props.colors,

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Td2F0Y2gudHN4Il0sIm5hbWVzIjpbIlJlYWN0IiwiaGV4VG9Ic3ZhIiwiUFJFU0VUX0NPTE9SUyIsIlJlY3QiLCJwcm9wcyIsIlN3YXRjaCIsImNvbG9ycyIsIm9uQ2xpY2siLCJyZWN0U3R5bGUiLCJiYWNrZ3JvdW5kIiwiaGVpZ2h0Iiwid2lkdGgiLCJtYXJnaW5SaWdodCIsIm1hcmdpbkJvdHRvbSIsImN1cnNvciIsInBvc2l0aW9uIiwib3V0bGluZSIsImJvcmRlclJhZGl1cyIsImJveFNoYWRvdyIsImhhbmRsZUNsaWNrIiwiaGV4IiwicGFkZGluZ0xlZnQiLCJwYWRkaW5nVG9wIiwiZGlzcGxheSIsImZsZXhXcmFwIiwiYm9yZGVyVG9wIiwiQXJyYXkiLCJpc0FycmF5IiwibWFwIiwiaXRlbSIsImlkeCIsInRpdGxlIiwiY29sb3IiXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBT0EsS0FBUCxNQUFrQixPQUFsQjtBQUNBLFNBQW9CQyxTQUFwQixRQUFxQyxvQkFBckM7QUFRQSxJQUFNQyxhQUFhLEdBQUcsQ0FDcEIsU0FEb0IsRUFFcEIsU0FGb0IsRUFHcEIsU0FIb0IsRUFJcEIsU0FKb0IsRUFLcEIsU0FMb0IsRUFNcEIsU0FOb0IsRUFPcEIsU0FQb0IsRUFRcEIsU0FSb0IsR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gICBsZXQgdGl0bGUgPSAnJztcbiAgICAgICAgICBsZXQgYmFja2dyb3VuZCA9ICcnO1xuICAgICAgICAgIGlmICh0eXBlb2YgaXRlbSA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgIHRpdGxlID0gaXRlbTtcbiAgICAgICAgICAgIGJhY2tncm91bmQgPSBpdGVtO1xuICAgICAgICAgIH0gZWxzZSBpZiAoaXRlbSAmJiBpdGVtLmNvbG9yKSB7XG4gICAgICAgICAgICB0aXRsZSA9IGl0ZW0udGl0bGUgfHwgaXRlbS5jb2xvcjtcbiAgICAgICAgICAgIGJhY2tncm91bmQgPSBpdGVtLmNvbG9yO1xuICAgICAgICAgIH1cbiAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICB0YWJJbmRleD17MH1cbiAgICAgICAgICAgICAga2V5PXtpZHh9XG4gICAgICAgICAgICAgIHRpdGxlPXt0aXRsZX1cbiAgICAgICAgICAgICAgb25DbGljaz17KCkgPT4gaGFuZGxlQ2xpY2soYmFja2dyb3VuZCl9XG4gICAgICAgICAgICAgIHN0eWxlPXt7IC4uLnJlY3RTdHlsZSwgYmFja2dyb3VuZCB9fVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICApO1xuICAgICAgICB9KX1cbiAgICA8L2Rpdj5cbiAgKTtcbn1cbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Td2F0Y2gudHN4Il0sIm5hbWVzIjpbIlJlYWN0IiwiaGV4VG9Ic3ZhIiwiUFJFU0VUX0NPTE9SUyIsIlN3YXRjaCIsInByb3BzIiwiY29sb3JzIiwib25DbGljayIsInJlY3RTdHlsZSIsImJhY2tncm91bmQiLCJoZWlnaHQiLCJ3aWR0aCIsIm1hcmdpblJpZ2h0IiwibWFyZ2luQm90dG9tIiwiY3Vyc29yIiwicG9zaXRpb24iLCJvdXRs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3JhcCcsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICBib3JkZXJUb3A6ICcxcHggc29saWQgcmdiKDIzOCwgMjM4LCAyMzgpJyxcbiAgICAgIH19XG4gICAgPlxuICAgICAge2NvbG9ycyAmJlxuICAgICAgICBBcnJheS5pc0FycmF5KGNvbG9ycykgJiZcbiAgICAgICAgY29sb3JzLm1hcCgoaXRlbSwgaWR4KSA9PiB7XG4gICAgICAgICAgbGV0IHRpdGxlID0gJyc7XG4gICAgICAgICAgbGV0IGJhY2tncm91bmQgPSAnJztcbiAgICAgICAgICBpZiAodHlwZW9mIGl0ZW0gPT09ICdzdHJpbmcnKSB7XG4gICAgICAgICAgICB0aXRsZSA9IGl0ZW07XG4gICAgICAgICAgICBiYWNrZ3JvdW5kID0gaXRlbTtcbiAgICAgICAgICB9IGVsc2UgaWYgKGl0ZW0gJiYgaXRlbS5jb2xvcikge1xuICAgICAgICAgICAgdGl0bGUgPSBpdGVtLnRpdGxlIHx8IGl0ZW0uY29sb3I7XG4gICAgICAgICAgICBiYWNrZ3JvdW5kID0gaXRlbS5jb2xvcjtcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgdGFiSW5kZXg9ezB9XG4gICAgICAgICAgICAgIGtleT17aWR4fVxuICAgICAgICAgICAgICB0aXRsZT17dGl0bGV9XG4gICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IGhhbmRsZUNsaWNrKGJhY2tncm91bmQpfVxuICAgICAgICAgICAgICBzdHlsZT17eyAuLi5yZWN0U3R5bGUsIGJhY2tncm91bmQgfX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgKTtcbiAgICAgICAgfSl9XG4gICAgPC9kaXY+XG4gICk7XG59XG4iXX0=
{
"name": "@uiw/react-color-sketch",
"version": "0.0.6",
"version": "0.0.7",
"description": "Color Sketch component for React.",

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

"@babel/runtime": "7.14.6",
"@uiw/color-convert": "^0.0.6",
"@uiw/react-color-alpha": "^0.0.6",
"@uiw/react-color-hue": "^0.0.6",
"@uiw/react-color-saturation": "^0.0.6"
"@uiw/color-convert": "^0.0.7",
"@uiw/react-color-alpha": "^0.0.7",
"@uiw/react-color-hue": "^0.0.7",
"@uiw/react-color-saturation": "^0.0.7"
},

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

@@ -1,2 +0,2 @@

React Sketch
React Color Sketch
===

@@ -49,2 +49,8 @@

}
```
```
<!--footer-dividing-->
## License
Licensed under the MIT License.

Sorry, the diff of this file is not supported yet

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