@uiw/react-color-swatch
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "@uiw/react-color-swatch", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Color swatch component for React.", | ||
@@ -38,3 +38,3 @@ "homepage": "https://uiwjs.github.io/react-color/#/swatch", | ||
"dependencies": { | ||
"@uiw/color-convert": "1.2.3" | ||
"@uiw/color-convert": "1.2.4" | ||
}, | ||
@@ -41,0 +41,0 @@ "devDependencies": { |
@@ -62,8 +62,8 @@ React Color Swatch | ||
import React from 'react'; | ||
import { HsvaColor } from '@uiw/color-convert'; | ||
export declare type SwatchPresetColor = { | ||
import { HsvaColor, ColorResult } from '@uiw/color-convert'; | ||
export type SwatchPresetColor = { | ||
color: string; | ||
title?: string; | ||
} | string; | ||
export declare type SwatchRectRenderProps = { | ||
export type SwatchRectRenderProps = { | ||
key: string | number; | ||
@@ -82,6 +82,8 @@ title: string; | ||
rectRender?: (props: SwatchRectRenderProps) => JSX.Element; | ||
onChange?: (hsva: HsvaColor) => void; | ||
onChange?: (hsva: HsvaColor, color: ColorResult, evn: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; | ||
addonAfter?: React.ReactNode; | ||
addonBefore?: React.ReactNode; | ||
} | ||
declare const Swatch: React.ForwardRefExoticComponent<SwatchProps & React.RefAttributes<HTMLDivElement>>; | ||
export default Swatch; | ||
``` | ||
@@ -88,0 +90,0 @@ |
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
16347
94
+ Added@uiw/color-convert@1.2.4(transitive)
- Removed@uiw/color-convert@1.2.3(transitive)
Updated@uiw/color-convert@1.2.4