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

@uiw/react-color-circle

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.18 to 0.0.19

23

lib/cjs/index.js

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

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

@@ -46,15 +44,8 @@

className: "".concat(prefixCls, " ").concat(className || ''),
rectProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rectProps), {}, {
children: /*#__PURE__*/_react.default.createElement(_Point.default, null),
style: (0, _objectSpread2.default)({
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: 28,
height: 28,
borderRadius: '50%',
marginRight: 12,
marginBottom: 12
}, rectProps.style)
}),
rectRender: function rectRender(_ref) {
var props = (0, _extends2.default)({}, _ref);
return /*#__PURE__*/_react.default.createElement(_Point.default, (0, _extends2.default)({}, props, {
rectProps: rectProps
}));
},
onChange: function onChange(hsvColor) {

@@ -68,2 +59,2 @@ _onChange && _onChange((0, _colorConvert.color)(hsvColor));

module.exports = exports.default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJmb3J3YXJkUmVmIiwicHJvcHMiLCJyZWYiLCJwcmVmaXhDbHMiLCJjbGFzc05hbWUiLCJjb2xvciIsImNvbG9ycyIsInJlY3RQcm9wcyIsIm9uQ2hhbmdlIiwib3RoZXIiLCJoc3ZhIiwiaGV4IiwiY2hpbGRyZW4iLCJzdHlsZSIsImRpc3BsYXkiLCJhbGlnbkl0ZW1zIiwianVzdGlmeUNvbnRlbnQ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cmVmPXtyZWZ9XG4gICAgICBjb2xvcnM9e2NvbG9yc31cbiAgICAgIGNvbG9yPXtoZXh9XG4gICAgICB7Li4ub3RoZXJ9XG4gICAgICBjbGFzc05hbWU9e2Ake3ByZWZpeENsc30gJHtjbGFzc05hbWUgfHwgJyd9YH1cbiAgICAgIHJlY3RSZW5kZXI9eyh7IC4uLnByb3BzIH0pID0+IDxQb2ludCB7Li4ucHJvcHN9IHJlY3RQcm9wcz17cmVjdFByb3BzfSAvPn1cbiAgICAgIG9uQ2hhbmdlPXsoaHN2Q29sb3IpID0+IHtcbiAgICAgICAgb25DaGFuZ2UgJiYgb25DaGFuZ2UoaGFuZGxlQ29sb3IoaHN2Q29sb3IpKTtcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn0pO1xuIl19

@@ -1,4 +0,6 @@

export default function Point(props: {
color?: string;
checked?: boolean;
}): JSX.Element;
import { SwatchRectRenderProps, SwatchProps } from '@uiw/react-color-swatch';
interface PointProps extends SwatchRectRenderProps {
rectProps?: SwatchProps['rectProps'];
}
export default function Point({ style, title, checked, color, onClick, rectProps }: PointProps): JSX.Element;
export {};

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

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {

@@ -11,49 +13,51 @@ value: true

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _react = _interopRequireWildcard(require("react"));
function Point(props) {
var elm = (0, _react.useRef)(null);
function Point(_ref) {
var style = _ref.style,
title = _ref.title,
checked = _ref.checked,
color = _ref.color,
onClick = _ref.onClick,
rectProps = _ref.rectProps;
var handleMouseEnter = (0, _react.useCallback)(function (evn) {
if (evn.target && evn.target.style) {
evn.target.style['transform'] = 'scale(1.2)';
}
evn.target.style['transform'] = 'scale(1.2)';
}, []);
var handleMouseLeave = (0, _react.useCallback)(function (evn) {
if (evn.target && evn.target.style) {
evn.target.style['transform'] = 'scale(1)';
}
evn.target.style['transform'] = 'scale(1)';
}, []);
(0, _react.useEffect)(function () {
if (elm.current && elm.current.parentElement) {
elm.current.parentElement.addEventListener('mouseenter', handleMouseEnter);
elm.current.parentElement.addEventListener('mouseleave', handleMouseLeave);
elm.current.parentElement.style['transition'] = 'transform 100ms ease 0s, box-shadow 100ms ease 0s';
}
return function () {
if (elm.current && elm.current.parentElement) {
elm.current.parentElement.removeEventListener('mouseenter', handleMouseEnter);
elm.current.parentElement.removeEventListener('mouseleave', handleMouseLeave);
}
};
}, []);
(0, _react.useMemo)(function () {
if (elm.current && elm.current.parentElement) {
elm.current.parentElement.style['boxShadow'] = "".concat(props.color, " 0px 0px ").concat(props.checked ? 5 : 0, "px");
}
}, [props.checked]);
return /*#__PURE__*/_react.default.createElement("div", {
ref: elm,
style: {
height: props.checked ? 20 : 0,
width: props.checked ? 20 : 0,
onClick: onClick,
onMouseEnter: handleMouseEnter,
onMouseOut: handleMouseLeave,
title: title,
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: 28,
height: 28,
borderRadius: '50%',
marginRight: 12,
marginBottom: 12,
boxShadow: "".concat(color, " 0px 0px ").concat(checked ? 5 : 0, "px"),
transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'
})
}, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rectProps, {
style: (0, _objectSpread2.default)({
height: checked ? 20 : 0,
width: checked ? 20 : 0,
borderRadius: '50%',
backgroundColor: '#fff',
transform: 'scale(1)',
transition: 'height 100ms ease 0s, width 100ms ease 0s'
}
});
}, rectProps.style)
})));
}
module.exports = exports.default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Qb2ludC50c3giXSwibmFtZXMiOlsiUG9pbnQiLCJwcm9wcyIsImVsbSIsImhhbmR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H07XG4gIH0sIFtdKTtcblxuICB1c2VNZW1vKCgpID0+IHtcbiAgICBpZiAoZWxtLmN1cnJlbnQgJiYgZWxtLmN1cnJlbnQucGFyZW50RWxlbWVudCkge1xuICAgICAgZWxtLmN1cnJlbnQucGFyZW50RWxlbWVudC5zdHlsZVsnYm94U2hhZG93J10gPSBgJHtwcm9wcy5jb2xvcn0gMHB4IDBweCAke3Byb3BzLmNoZWNrZWQgPyA1IDogMH1weGA7XG4gICAgfVxuICB9LCBbcHJvcHMuY2hlY2tlZF0pO1xuXG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgcmVmPXtlbG19XG4gICAgICBzdHlsZT17e1xuICAgICAgICBoZWlnaHQ6IHByb3BzLmNoZWNrZWQgPyAyMCA6IDAsXG4gICAgICAgIHdpZHRoOiBwcm9wcy5jaGVja2VkID8gMjAgOiAwLFxuICAgICAgICBib3JkZXJSYWRpdXM6ICc1MCUnLFxuICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6ICcjZmZmJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoMSknLFxuICAgICAgICB0cmFuc2l0aW9uOiAnaGVpZ2h0IDEwMG1zIGVhc2UgMHMsIHdpZHRoIDEwMG1zIGVhc2UgMHMnLFxuICAgICAgfX1cbiAgICAvPlxuICApO1xufVxuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Qb2ludC50c3giXSwibmFtZXMiOlsiUG9pbnQiLCJzdHlsZSIsInRpdGxlIiwiY2hlY2tlZCIsImNvbG9yIiwib25DbGljayIsInJlY3RQcm9wcyIsImhhbmRsZU1vdXNlRW50ZXIiLCJldm4iLCJ0YXJnZXQiLCJoYW5kbGVNb3VzZUxlYXZlIiwiZGlzcGxheSIsImFsaWduSXRlbXMiLCJqdXN0aWZ5Q29udGVudCIsIndpZHRoIiwiaGVpZ2h0IiwiYm9yZGVyUmFkaXV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HhgLFxuICAgICAgICB0cmFuc2l0aW9uOiAndHJhbnNmb3JtIDEwMG1zIGVhc2UgMHMsIGJveC1zaGFkb3cgMTAwbXMgZWFzZSAwcycsXG4gICAgICB9fVxuICAgID5cbiAgICAgIDxkaXZcbiAgICAgICAgey4uLnJlY3RQcm9wc31cbiAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICBoZWlnaHQ6IGNoZWNrZWQgPyAyMCA6IDAsXG4gICAgICAgICAgd2lkdGg6IGNoZWNrZWQgPyAyMCA6IDAsXG4gICAgICAgICAgYm9yZGVyUmFkaXVzOiAnNTAlJyxcbiAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6ICcjZmZmJyxcbiAgICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSgxKScsXG4gICAgICAgICAgdHJhbnNpdGlvbjogJ2hlaWdodCAxMDBtcyBlYXNlIDBzLCB3aWR0aCAxMDBtcyBlYXNlIDBzJyxcbiAgICAgICAgICAuLi5yZWN0UHJvcHMhLnN0eWxlLFxuICAgICAgICB9fVxuICAgICAgLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn1cbiJdfQ==
import _extends from "@babel/runtime/helpers/extends";
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";

@@ -29,15 +28,9 @@ var _excluded = ["prefixCls", "className", "color", "colors", "rectProps", "onChange"];

className: "".concat(prefixCls, " ").concat(className || ''),
rectProps: _objectSpread(_objectSpread({}, rectProps), {}, {
children: /*#__PURE__*/React.createElement(Point, null),
style: _objectSpread({
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: 28,
height: 28,
borderRadius: '50%',
marginRight: 12,
marginBottom: 12
}, rectProps.style)
}),
rectRender: function rectRender(_ref) {
var props = _extends({}, _ref);
return /*#__PURE__*/React.createElement(Point, _extends({}, props, {
rectProps: rectProps
}));
},
onChange: function onChange(hsvColor) {

@@ -48,2 +41,2 @@ _onChange && _onChange(handleCol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H1cbiAgICAgIHsuLi5vdGhlcn1cbiAgICAgIGNsYXNzTmFtZT17YCR7cHJlZml4Q2xzfSAke2NsYXNzTmFtZSB8fCAnJ31gfVxuICAgICAgcmVjdFJlbmRlcj17KHsgLi4ucHJvcHMgfSkgPT4gPFBvaW50IHsuLi5wcm9wc30gcmVjdFByb3BzPXtyZWN0UHJvcHN9IC8+fVxuICAgICAgb25DaGFuZ2U9eyhoc3ZDb2xvcikgPT4ge1xuICAgICAgICBvbkNoYW5nZSAmJiBvbkNoYW5nZShoYW5kbGVDb2xvcihoc3ZDb2xvcikpO1xuICAgICAgfX1cbiAgICAvPlxuICApO1xufSk7XG4iXX0=

@@ -1,4 +0,6 @@

export default function Point(props: {
color?: string;
checked?: boolean;
}): JSX.Element;
import { SwatchRectRenderProps, SwatchProps } from '@uiw/react-color-swatch';
interface PointProps extends SwatchRectRenderProps {
rectProps?: SwatchProps['rectProps'];
}
export default function Point({ style, title, checked, color, onClick, rectProps }: PointProps): JSX.Element;
export {};

@@ -1,49 +0,45 @@

import React from 'react';
import { useMemo } from 'react';
import { useCallback } from 'react';
import { useEffect } from 'react';
import { useRef } from 'react';
export default function Point(props) {
var elm = useRef(null);
import _extends from "@babel/runtime/helpers/extends";
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import React, { useCallback } from 'react';
export default function Point(_ref) {
var style = _ref.style,
title = _ref.title,
checked = _ref.checked,
color = _ref.color,
onClick = _ref.onClick,
rectProps = _ref.rectProps;
var handleMouseEnter = useCallback(function (evn) {
if (evn.target && evn.target.style) {
evn.target.style['transform'] = 'scale(1.2)';
}
evn.target.style['transform'] = 'scale(1.2)';
}, []);
var handleMouseLeave = useCallback(function (evn) {
if (evn.target && evn.target.style) {
evn.target.style['transform'] = 'scale(1)';
}
evn.target.style['transform'] = 'scale(1)';
}, []);
useEffect(function () {
if (elm.current && elm.current.parentElement) {
elm.current.parentElement.addEventListener('mouseenter', handleMouseEnter);
elm.current.parentElement.addEventListener('mouseleave', handleMouseLeave);
elm.current.parentElement.style['transition'] = 'transform 100ms ease 0s, box-shadow 100ms ease 0s';
}
return function () {
if (elm.current && elm.current.parentElement) {
elm.current.parentElement.removeEventListener('mouseenter', handleMouseEnter);
elm.current.parentElement.removeEventListener('mouseleave', handleMouseLeave);
}
};
}, []);
useMemo(function () {
if (elm.current && elm.current.parentElement) {
elm.current.parentElement.style['boxShadow'] = "".concat(props.color, " 0px 0px ").concat(props.checked ? 5 : 0, "px");
}
}, [props.checked]);
return /*#__PURE__*/React.createElement("div", {
ref: elm,
style: {
height: props.checked ? 20 : 0,
width: props.checked ? 20 : 0,
onClick: onClick,
onMouseEnter: handleMouseEnter,
onMouseOut: handleMouseLeave,
title: title,
style: _objectSpread(_objectSpread({}, style), {}, {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: 28,
height: 28,
borderRadius: '50%',
marginRight: 12,
marginBottom: 12,
boxShadow: "".concat(color, " 0px 0px ").concat(checked ? 5 : 0, "px"),
transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'
})
}, /*#__PURE__*/React.createElement("div", _extends({}, rectProps, {
style: _objectSpread({
height: checked ? 20 : 0,
width: checked ? 20 : 0,
borderRadius: '50%',
backgroundColor: '#fff',
transform: 'scale(1)',
transition: 'height 100ms ease 0s, width 100ms ease 0s'
}
});
}, rectProps.style)
})));
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Qb2ludC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJ1c2VNZW1vIiwidXNlQ2FsbGJhY2siLCJ1c2VFZmZlY3QiLCJ1c2VSZWYiLCJQb2ludCIsInByb3BzIiwiZWxtIiwiaGFuZGxlTW91c2VFbnRlciIsImV2biIsInRhcmdldCIsInN0eWxlIiwiaGFuZGxlTW91c2VMZWF2ZSIsImN1cnJlbnQiLCJwYXJlbnRFbGVtZW50IiwiYWRkRXZlbnRMaXN0ZW5lciIsIn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BhcmVudEVsZW1lbnQucmVtb3ZlRXZlbnRMaXN0ZW5lcignbW91c2VsZWF2ZScsIGhhbmRsZU1vdXNlTGVhdmUpO1xuICAgICAgfVxuICAgIH07XG4gIH0sIFtdKTtcblxuICB1c2VNZW1vKCgpID0+IHtcbiAgICBpZiAoZWxtLmN1cnJlbnQgJiYgZWxtLmN1cnJlbnQucGFyZW50RWxlbWVudCkge1xuICAgICAgZWxtLmN1cnJlbnQucGFyZW50RWxlbWVudC5zdHlsZVsnYm94U2hhZG93J10gPSBgJHtwcm9wcy5jb2xvcn0gMHB4IDBweCAke3Byb3BzLmNoZWNrZWQgPyA1IDogMH1weGA7XG4gICAgfVxuICB9LCBbcHJvcHMuY2hlY2tlZF0pO1xuXG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgcmVmPXtlbG19XG4gICAgICBzdHlsZT17e1xuICAgICAgICBoZWlnaHQ6IHByb3BzLmNoZWNrZWQgPyAyMCA6IDAsXG4gICAgICAgIHdpZHRoOiBwcm9wcy5jaGVja2VkID8gMjAgOiAwLFxuICAgICAgICBib3JkZXJSYWRpdXM6ICc1MCUnLFxuICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6ICcjZmZmJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoMSknLFxuICAgICAgICB0cmFuc2l0aW9uOiAnaGVpZ2h0IDEwMG1zIGVhc2UgMHMsIHdpZHRoIDEwMG1zIGVhc2UgMHMnLFxuICAgICAgfX1cbiAgICAvPlxuICApO1xufVxuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Qb2ludC50c3giXSwibmFtZXMiOlsiUmVhY3QiLCJ1c2VDYWxsYmFjayIsIlBvaW50Iiwic3R5bGUiLCJ0aXRsZSIsImNoZWNrZWQiLCJjb2xvciIsIm9uQ2xpY2siLCJyZWN0UHJvcHMiLCJoYW5kbGVNb3VzZUVudGVyI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cmRlclJhZGl1czogJzUwJScsXG4gICAgICAgIG1hcmdpblJpZ2h0OiAxMixcbiAgICAgICAgbWFyZ2luQm90dG9tOiAxMixcbiAgICAgICAgYm94U2hhZG93OiBgJHtjb2xvcn0gMHB4IDBweCAke2NoZWNrZWQgPyA1IDogMH1weGAsXG4gICAgICAgIHRyYW5zaXRpb246ICd0cmFuc2Zvcm0gMTAwbXMgZWFzZSAwcywgYm94LXNoYWRvdyAxMDBtcyBlYXNlIDBzJyxcbiAgICAgIH19XG4gICAgPlxuICAgICAgPGRpdlxuICAgICAgICB7Li4ucmVjdFByb3BzfVxuICAgICAgICBzdHlsZT17e1xuICAgICAgICAgIGhlaWdodDogY2hlY2tlZCA/IDIwIDogMCxcbiAgICAgICAgICB3aWR0aDogY2hlY2tlZCA/IDIwIDogMCxcbiAgICAgICAgICBib3JkZXJSYWRpdXM6ICc1MCUnLFxuICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogJyNmZmYnLFxuICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDEpJyxcbiAgICAgICAgICB0cmFuc2l0aW9uOiAnaGVpZ2h0IDEwMG1zIGVhc2UgMHMsIHdpZHRoIDEwMG1zIGVhc2UgMHMnLFxuICAgICAgICAgIC4uLnJlY3RQcm9wcyEuc3R5bGUsXG4gICAgICAgIH19XG4gICAgICAvPlxuICAgIDwvZGl2PlxuICApO1xufVxuIl19
{
"name": "@uiw/react-color-circle",
"version": "0.0.18",
"version": "0.0.19",
"description": "Color swatch component for React.",

@@ -33,4 +33,4 @@ "homepage": "https://uiwjs.github.io/react-color/#react-color-circle",

"@babel/runtime": "7.14.6",
"@uiw/color-convert": "^0.0.18",
"@uiw/react-color-swatch": "^0.0.18"
"@uiw/color-convert": "^0.0.19",
"@uiw/react-color-swatch": "^0.0.19"
},

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

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