@uiw/react-color-wheel
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -60,2 +60,13 @@ "use strict"; | ||
}; | ||
var pointerStyle = { | ||
zIndex: 1, | ||
transform: "translate(".concat(positions.x, "px, ").concat(positions.y, "px)") | ||
}; | ||
var pointerElement = pointer && typeof pointer === 'function' ? pointer((0, _objectSpread2["default"])({ | ||
prefixCls: prefixCls, | ||
style: pointerStyle | ||
}, comProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Pointer.Pointer, (0, _objectSpread2["default"])({ | ||
prefixCls: prefixCls, | ||
style: pointerStyle | ||
}, comProps)); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactDragEventInteractive["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
@@ -72,10 +83,4 @@ className: [prefixCls, className || ''].filter(Boolean).join(' ') | ||
onDown: handleChange, | ||
children: [/*#__PURE__*/_react["default"].createElement(pointer || _Pointer.Pointer, (0, _objectSpread2["default"])({ | ||
prefixCls: prefixCls, | ||
children: [pointerElement, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", { | ||
style: { | ||
zIndex: 1, | ||
transform: "translate(".concat(positions.x, "px, ").concat(positions.y, "px)") | ||
} | ||
}, comProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", { | ||
style: { | ||
position: 'absolute', | ||
@@ -82,0 +87,0 @@ borderRadius: '50%', |
@@ -50,2 +50,13 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
}; | ||
var pointerStyle = { | ||
zIndex: 1, | ||
transform: "translate(" + positions.x + "px, " + positions.y + "px)" | ||
}; | ||
var pointerElement = pointer && typeof pointer === 'function' ? pointer(_extends({ | ||
prefixCls, | ||
style: pointerStyle | ||
}, comProps)) : /*#__PURE__*/_jsx(Pointer, _extends({ | ||
prefixCls: prefixCls, | ||
style: pointerStyle | ||
}, comProps)); | ||
return /*#__PURE__*/_jsxs(Interactive, _extends({ | ||
@@ -62,10 +73,4 @@ className: [prefixCls, className || ''].filter(Boolean).join(' ') | ||
onDown: handleChange, | ||
children: [/*#__PURE__*/React.createElement(pointer || Pointer, _extends({ | ||
prefixCls, | ||
children: [pointerElement, /*#__PURE__*/_jsx("div", { | ||
style: { | ||
zIndex: 1, | ||
transform: "translate(" + positions.x + "px, " + positions.y + "px)" | ||
} | ||
}, comProps)), /*#__PURE__*/_jsx("div", { | ||
style: { | ||
position: 'absolute', | ||
@@ -72,0 +77,0 @@ borderRadius: '50%', |
{ | ||
"name": "@uiw/react-color-wheel", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Color wheel", | ||
@@ -38,4 +38,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/color-convert": "1.3.0", | ||
"@uiw/react-drag-event-interactive": "1.3.0" | ||
"@uiw/color-convert": "1.3.1", | ||
"@uiw/react-drag-event-interactive": "1.3.1" | ||
}, | ||
@@ -42,0 +42,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
33275
887
+ Added@uiw/color-convert@1.3.1(transitive)
+ Added@uiw/react-drag-event-interactive@1.3.1(transitive)
- Removed@uiw/color-convert@1.3.0(transitive)
- Removed@uiw/react-drag-event-interactive@1.3.0(transitive)
Updated@uiw/color-convert@1.3.1