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 1.2.3 to 1.2.4

4

package.json
{
"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 @@

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