@uiw/react-color-circle
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -25,12 +25,14 @@ "use strict"; | ||
rectProps = _ref.rectProps; | ||
var btn = (0, _react.useRef)(null); | ||
var handleMouseEnter = (0, _react.useCallback)(function (evn) { | ||
evn.target.style['transform'] = 'scale(1.2)'; | ||
btn.current.style['transform'] = 'scale(1.2)'; | ||
}, []); | ||
var handleMouseLeave = (0, _react.useCallback)(function (evn) { | ||
evn.target.style['transform'] = 'scale(1)'; | ||
btn.current.style['transform'] = 'scale(1)'; | ||
}, []); | ||
return /*#__PURE__*/_react.default.createElement("div", { | ||
ref: btn, | ||
onClick: onClick, | ||
onMouseEnter: handleMouseEnter, | ||
onMouseOut: handleMouseLeave, | ||
onMouseLeave: handleMouseLeave, | ||
title: title, | ||
@@ -43,5 +45,8 @@ style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, { | ||
height: 28, | ||
padding: 3, | ||
borderRadius: '50%', | ||
marginRight: 12, | ||
marginBottom: 12, | ||
boxSizing: 'border-box', | ||
transform: 'scale(1)', | ||
boxShadow: "".concat(color, " 0px 0px ").concat(checked ? 5 : 0, "px"), | ||
@@ -52,7 +57,7 @@ transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s' | ||
style: (0, _objectSpread2.default)({ | ||
height: checked ? 20 : 0, | ||
width: checked ? 20 : 0, | ||
height: checked ? '100%' : 0, | ||
width: checked ? '100%' : 0, | ||
borderRadius: '50%', | ||
backgroundColor: '#fff', | ||
transform: 'scale(1)', | ||
boxSizing: 'border-box', | ||
transition: 'height 100ms ease 0s, width 100ms ease 0s' | ||
@@ -64,2 +69,2 @@ }, rectProps.style) | ||
module.exports = exports.default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Qb2ludC50c3giXSwibmFtZXMiOlsiUG9pbnQiLCJzdHlsZSIsInRpdGxlIiwiY2hlY2tlZCIsImNvb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ICAgICBoZWlnaHQ6IDI4LFxuICAgICAgICBib3JkZXJSYWRpdXM6ICc1MCUnLFxuICAgICAgICBtYXJnaW5SaWdodDogMTIsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogMTIsXG4gICAgICAgIGJveFNoYWRvdzogYCR7Y29sb3J9IDBweCAwcHggJHtjaGVja2VkID8gNSA6IDB9cHhgLFxuICAgICAgICB0cmFuc2l0aW9uOiAndHJhbnNmb3JtIDEwMG1zIGVhc2UgMHMsIGJveC1zaGFkb3cgMTAwbXMgZWFzZSAwcycsXG4gICAgICB9fVxuICAgID5cbiAgICAgIDxkaXZcbiAgICAgICAgey4uLnJlY3RQcm9wc31cbiAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICBoZWlnaHQ6IGNoZWNrZWQgPyAyMCA6IDAsXG4gICAgICAgICAgd2lkdGg6IGNoZWNrZWQgPyAyMCA6IDAsXG4gICAgICAgICAgYm9yZGVyUmFkaXVzOiAnNTAlJyxcbiAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6ICcjZmZmJyxcbiAgICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSgxKScsXG4gICAgICAgICAgdHJhbnNpdGlvbjogJ2hlaWdodCAxMDBtcyBlYXNlIDBzLCB3aWR0aCAxMDBtcyBlYXNlIDBzJyxcbiAgICAgICAgICAuLi5yZWN0UHJvcHMhLnN0eWxlLFxuICAgICAgICB9fVxuICAgICAgLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Qb2ludC50c3giXSwibmFtZXMiOlsiUG9pbnQiLCJzdHlsZSIsInRpdGxlIiwiY2hlY2tlZCIsImNvbG9yIiwib25DbGljayIsInJlY3RQcm9wcyIsImJ0biIsImhhbmRsZU1vdXNlRW50ZXIiLCJldm4iLCJjdXJyZW50IiwiaGFuZGxlTW91c2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HMnLFxuICAgICAgICAgIC4uLnJlY3RQcm9wcyEuc3R5bGUsXG4gICAgICAgIH19XG4gICAgICAvPlxuICAgIDwvZGl2PlxuICApO1xufVxuIl19 |
import _extends from "@babel/runtime/helpers/extends"; | ||
import _objectSpread from "@babel/runtime/helpers/objectSpread2"; | ||
import React, { useCallback } from 'react'; | ||
import { useRef } from 'react'; | ||
export default function Point(_ref) { | ||
@@ -11,12 +12,14 @@ var style = _ref.style, | ||
rectProps = _ref.rectProps; | ||
var btn = useRef(null); | ||
var handleMouseEnter = useCallback(function (evn) { | ||
evn.target.style['transform'] = 'scale(1.2)'; | ||
btn.current.style['transform'] = 'scale(1.2)'; | ||
}, []); | ||
var handleMouseLeave = useCallback(function (evn) { | ||
evn.target.style['transform'] = 'scale(1)'; | ||
btn.current.style['transform'] = 'scale(1)'; | ||
}, []); | ||
return /*#__PURE__*/React.createElement("div", { | ||
ref: btn, | ||
onClick: onClick, | ||
onMouseEnter: handleMouseEnter, | ||
onMouseOut: handleMouseLeave, | ||
onMouseLeave: handleMouseLeave, | ||
title: title, | ||
@@ -29,5 +32,8 @@ style: _objectSpread(_objectSpread({}, style), {}, { | ||
height: 28, | ||
padding: 3, | ||
borderRadius: '50%', | ||
marginRight: 12, | ||
marginBottom: 12, | ||
boxSizing: 'border-box', | ||
transform: 'scale(1)', | ||
boxShadow: "".concat(color, " 0px 0px ").concat(checked ? 5 : 0, "px"), | ||
@@ -38,7 +44,7 @@ transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s' | ||
style: _objectSpread({ | ||
height: checked ? 20 : 0, | ||
width: checked ? 20 : 0, | ||
height: checked ? '100%' : 0, | ||
width: checked ? '100%' : 0, | ||
borderRadius: '50%', | ||
backgroundColor: '#fff', | ||
transform: 'scale(1)', | ||
boxSizing: 'border-box', | ||
transition: 'height 100ms ease 0s, width 100ms ease 0s' | ||
@@ -48,2 +54,2 @@ }, rectProps.style) | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,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ICBzdHlsZT17e1xuICAgICAgICAuLi5zdHlsZSxcbiAgICAgICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgICAgICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbiAgICAgICAganVzdGlmeUNvbnRlbnQ6ICdjZW50ZXInLFxuICAgICAgICB3aWR0aDogMjgsXG4gICAgICAgIGhlaWdodDogMjgsXG4gICAgICAgIGJvcmRlclJhZGl1czogJzUwJScsXG4gICAgICAgIG1hcmdpblJpZ2h0OiAxMixcbiAgICAgICAgbWFyZ2luQm90dG9tOiAxMixcbiAgICAgICAgYm94U2hhZG93OiBgJHtjb2xvcn0gMHB4IDBweCAke2NoZWNrZWQgPyA1IDogMH1weGAsXG4gICAgICAgIHRyYW5zaXRpb246ICd0cmFuc2Zvcm0gMTAwbXMgZWFzZSAwcywgYm94LXNoYWRvdyAxMDBtcyBlYXNlIDBzJyxcbiAgICAgIH19XG4gICAgPlxuICAgICAgPGRpdlxuICAgICAgICB7Li4ucmVjdFByb3BzfVxuICAgICAgICBzdHlsZT17e1xuICAgICAgICAgIGhlaWdodDogY2hlY2tlZCA/IDIwIDogMCxcbiAgICAgICAgICB3aWR0aDogY2hlY2tlZCA/IDIwIDogMCxcbiAgICAgICAgICBib3JkZXJSYWRpdXM6ICc1MCUnLFxuICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogJyNmZmYnLFxuICAgICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDEpJyxcbiAgICAgICAgICB0cmFuc2l0aW9uOiAnaGVpZ2h0IDEwMG1zIGVhc2UgMHMsIHdpZHRoIDEwMG1zIGVhc2UgMHMnLFxuICAgICAgICAgIC4uLnJlY3RQcm9wcyEuc3R5bGUsXG4gICAgICAgIH19XG4gICAgICAvPlxuICAgIDwvZGl2PlxuICApO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Qb2ludC50c3gi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Xt7XG4gICAgICAgICAgaGVpZ2h0OiBjaGVja2VkID8gJzEwMCUnIDogMCxcbiAgICAgICAgICB3aWR0aDogY2hlY2tlZCA/ICcxMDAlJyA6IDAsXG4gICAgICAgICAgYm9yZGVyUmFkaXVzOiAnNTAlJyxcbiAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6ICcjZmZmJyxcbiAgICAgICAgICBib3hTaXppbmc6ICdib3JkZXItYm94JyxcbiAgICAgICAgICB0cmFuc2l0aW9uOiAnaGVpZ2h0IDEwMG1zIGVhc2UgMHMsIHdpZHRoIDEwMG1zIGVhc2UgMHMnLFxuICAgICAgICAgIC4uLnJlY3RQcm9wcyEuc3R5bGUsXG4gICAgICAgIH19XG4gICAgICAvPlxuICAgIDwvZGl2PlxuICApO1xufVxuIl19 |
{ | ||
"name": "@uiw/react-color-circle", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"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.19", | ||
"@uiw/react-color-swatch": "^0.0.19" | ||
"@uiw/color-convert": "^0.0.20", | ||
"@uiw/react-color-swatch": "^0.0.20" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30314
298
0
+ Added@uiw/color-convert@0.0.20(transitive)
+ Added@uiw/react-color-swatch@0.0.20(transitive)
- Removed@uiw/color-convert@0.0.19(transitive)
- Removed@uiw/react-color-swatch@0.0.19(transitive)
Updated@uiw/color-convert@^0.0.20