@uiw/react-color-swatch
Advanced tools
Comparing version 2.0.9 to 2.1.0
@@ -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
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
17644
109
+ Added@uiw/color-convert@2.1.0(transitive)
- Removed@uiw/color-convert@2.0.9(transitive)
Updated@uiw/color-convert@2.1.0