@uiw/react-color-alpha
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@uiw/react-color-alpha", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Color alpha", | ||
@@ -33,9 +33,9 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@babel/runtime": "7.15.4", | ||
"@uiw/color-convert": "1.0.6", | ||
"@uiw/react-drag-event-interactive": "1.0.6" | ||
"@babel/runtime": "7.16.5", | ||
"@uiw/color-convert": "1.0.7", | ||
"@uiw/react-drag-event-interactive": "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", | ||
@@ -42,0 +42,0 @@ "react": "17.0.2", |
@@ -38,9 +38,10 @@ React Color Alpha | ||
import { HsvaColor } from '@uiw/color-convert'; | ||
import { Interaction } from '@uiw/react-drag-event-interactive'; | ||
declare const BACKGROUND_IMG = 'data:image/png;base64,....' | ||
interface AlphaProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> { | ||
prefixCls?: string; | ||
/** String, Pixel value for picker width. Default `316px` */ | ||
width?: number; | ||
width?: React.CSSProperties['width']; | ||
/** String, Pixel value for picker height. Default `16px` */ | ||
height?: number; | ||
height?: React.CSSProperties['height']; | ||
/** hsva => `{ h: 0, s: 75, v: 82, a: 1 }` */ | ||
@@ -51,8 +52,12 @@ hsva: HsvaColor; | ||
/** Set rounded corners. */ | ||
radius?: number; | ||
radius?: React.CSSProperties['borderRadius']; | ||
/** Set the background color. */ | ||
background?: string; | ||
/** Set the background element props. */ | ||
bgProps?: React.HTMLAttributes<HTMLDivElement>; | ||
/** Set the interactive element props. */ | ||
innerProps?: React.HTMLAttributes<HTMLDivElement>; | ||
/** String Enum, horizontal or vertical. Default `horizontal` */ | ||
direction?: 'vertical' | 'horizontal'; | ||
onChange?: (newAlpha: { a: number }, offset: Interaction) => void; | ||
onChange?: (newAlpha: { a: number; }, offset: Interaction) => void; | ||
} | ||
@@ -59,0 +64,0 @@ interface PointerProps extends React.HTMLAttributes<HTMLDivElement> { |
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
38684
74
+ Added@babel/runtime@7.16.5(transitive)
+ Added@uiw/color-convert@1.0.7(transitive)
+ Added@uiw/react-drag-event-interactive@1.0.7(transitive)
- Removed@babel/runtime@7.15.4(transitive)
- Removed@uiw/color-convert@1.0.6(transitive)
- Removed@uiw/react-drag-event-interactive@1.0.6(transitive)
Updated@babel/runtime@7.16.5
Updated@uiw/color-convert@1.0.7