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
2
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 2.0.8 to 2.0.9

4

cjs/index.js

@@ -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

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