@uiw/react-color-circle
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -31,2 +31,3 @@ "use strict"; | ||
var hex = color ? (0, _colorConvert.hsvaToHex)(hsva) : ''; | ||
var cls = [prefixCls, className].filter(Boolean).join(' '); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColorSwatch["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
@@ -37,6 +38,7 @@ ref: ref, | ||
}, other), {}, { | ||
className: [prefixCls, className].filter(Boolean).join(' '), | ||
className: cls, | ||
rectRender: function rectRender(_ref) { | ||
var props = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(_ref), _ref)); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Point["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, props), {}, { | ||
className: "".concat(prefixCls, "-point"), | ||
rectProps: rectProps | ||
@@ -43,0 +45,0 @@ })); |
@@ -5,4 +5,5 @@ import React from 'react'; | ||
rectProps?: SwatchProps['rectProps']; | ||
className?: string; | ||
} | ||
export default function Point({ style, title, checked, color, onClick, rectProps }: PointProps): React.JSX.Element; | ||
export default function Point({ style, className, title, checked, color, onClick, rectProps }: PointProps): React.JSX.Element; | ||
export {}; |
@@ -14,2 +14,3 @@ "use strict"; | ||
var style = _ref.style, | ||
className = _ref.className, | ||
title = _ref.title, | ||
@@ -42,2 +43,3 @@ checked = _ref.checked, | ||
title: title, | ||
className: className, | ||
style: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, style), {}, { | ||
@@ -44,0 +46,0 @@ display: 'flex', |
@@ -22,2 +22,3 @@ import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty"; | ||
var hex = color ? hsvaToHex(hsva) : ''; | ||
var cls = [prefixCls, className].filter(Boolean).join(' '); | ||
return /*#__PURE__*/_jsx(Swatch, _extends({ | ||
@@ -28,6 +29,7 @@ ref: ref, | ||
}, other, { | ||
className: [prefixCls, className].filter(Boolean).join(' '), | ||
className: cls, | ||
rectRender: _ref => { | ||
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
return /*#__PURE__*/_jsx(Point, _extends({}, props, { | ||
className: prefixCls + "-point", | ||
rectProps: rectProps | ||
@@ -34,0 +36,0 @@ })); |
@@ -5,4 +5,5 @@ import React from 'react'; | ||
rectProps?: SwatchProps['rectProps']; | ||
className?: string; | ||
} | ||
export default function Point({ style, title, checked, color, onClick, rectProps }: PointProps): React.JSX.Element; | ||
export default function Point({ style, className, title, checked, color, onClick, rectProps }: PointProps): React.JSX.Element; | ||
export {}; |
@@ -8,2 +8,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
style, | ||
className, | ||
title, | ||
@@ -37,2 +38,3 @@ checked, | ||
title: title, | ||
className: className, | ||
style: _extends({}, style, { | ||
@@ -39,0 +41,0 @@ display: 'flex', |
{ | ||
"name": "@uiw/react-color-circle", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "Color swatch component for React.", | ||
@@ -39,4 +39,4 @@ "homepage": "https://uiwjs.github.io/react-color/#/circle", | ||
"dependencies": { | ||
"@uiw/color-convert": "2.0.8", | ||
"@uiw/react-color-swatch": "2.0.8" | ||
"@uiw/color-convert": "2.0.9", | ||
"@uiw/react-color-swatch": "2.0.9" | ||
}, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
15951
325
+ Added@uiw/color-convert@2.0.9(transitive)
+ Added@uiw/react-color-swatch@2.0.9(transitive)
- Removed@uiw/color-convert@2.0.8(transitive)
- Removed@uiw/react-color-swatch@2.0.8(transitive)
Updated@uiw/color-convert@2.0.9