@uiw/react-color-compact
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@uiw/react-color-compact", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Color Compact component for React.", | ||
@@ -33,11 +33,11 @@ "homepage": "https://uiwjs.github.io/react-color/#compact", | ||
"dependencies": { | ||
"@babel/runtime": "7.15.4", | ||
"@uiw/color-convert": "1.0.6", | ||
"@uiw/react-color-editable-input": "1.0.6", | ||
"@uiw/react-color-editable-input-rgba": "1.0.6", | ||
"@uiw/react-color-swatch": "1.0.6" | ||
"@babel/runtime": "7.16.5", | ||
"@uiw/color-convert": "1.0.7", | ||
"@uiw/react-color-editable-input": "1.0.7", | ||
"@uiw/react-color-editable-input-rgba": "1.0.7", | ||
"@uiw/react-color-swatch": "1.0.7" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "17.0.27", | ||
"@types/react-dom": "17.0.9", | ||
"@types/react": "17.0.38", | ||
"@types/react-dom": "17.0.11", | ||
"@types/react-test-renderer": "17.0.1", | ||
@@ -44,0 +44,0 @@ "react": "17.0.2", |
@@ -37,9 +37,9 @@ React Color Compact | ||
```ts | ||
import React from 'react'; | ||
import { ColorResult, HsvaColor } from '@uiw/color-convert'; | ||
interface CompactProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> { | ||
export interface CompactProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> { | ||
prefixCls?: string; | ||
color?: string | HsvaColor; | ||
colors?: string[]; | ||
onChange?: (color: ColorResult, evn: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; | ||
onChange?: (color: ColorResult, evn?: T) => void; | ||
} | ||
@@ -46,0 +46,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
34744
+ Added@babel/runtime@7.16.5(transitive)
+ Added@uiw/color-convert@1.0.7(transitive)
+ Added@uiw/react-color-editable-input@1.0.7(transitive)
+ Added@uiw/react-color-editable-input-rgba@1.0.7(transitive)
+ Added@uiw/react-color-swatch@1.0.7(transitive)
- Removed@babel/runtime@7.15.4(transitive)
- Removed@uiw/color-convert@1.0.6(transitive)
- Removed@uiw/react-color-editable-input@1.0.6(transitive)
- Removed@uiw/react-color-editable-input-rgba@1.0.6(transitive)
- Removed@uiw/react-color-swatch@1.0.6(transitive)
Updated@babel/runtime@7.16.5
Updated@uiw/color-convert@1.0.7