Socket
Socket
Sign inDemoInstall

@uiw/react-color-swatch

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 2.0.9 to 2.1.0

4

cjs/index.d.ts

@@ -7,3 +7,3 @@ import React from 'react';

} | string;
export type SwatchRectRenderProps = {
export interface SwatchRectRenderProps extends React.HTMLAttributes<HTMLDivElement> {
title: string;

@@ -14,3 +14,3 @@ color: string;

onClick: (evn: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
};
}
export interface SwatchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> {

@@ -17,0 +17,0 @@ prefixCls?: string;

@@ -7,3 +7,3 @@ import React from 'react';

} | string;
export type SwatchRectRenderProps = {
export interface SwatchRectRenderProps extends React.HTMLAttributes<HTMLDivElement> {
title: string;

@@ -14,3 +14,3 @@ color: string;

onClick: (evn: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
};
}
export interface SwatchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> {

@@ -17,0 +17,0 @@ prefixCls?: string;

{
"name": "@uiw/react-color-swatch",
"version": "2.0.9",
"version": "2.1.0",
"description": "Color swatch component for React.",

@@ -39,3 +39,3 @@ "homepage": "https://uiwjs.github.io/react-color/#/swatch",

"dependencies": {
"@uiw/color-convert": "2.0.9"
"@uiw/color-convert": "2.1.0"
},

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

@@ -73,4 +73,3 @@ React Color Swatch

} | string;
export type SwatchRectRenderProps = {
key: string | number;
export interface SwatchRectRenderProps extends React.HTMLAttributes<HTMLDivElement> {
title: string;

@@ -77,0 +76,0 @@ color: string;

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