@uiw/react-color-hue
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "@uiw/react-color-hue", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Color hue", | ||
@@ -38,4 +38,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/color-convert": "1.3.2", | ||
"@uiw/react-color-alpha": "1.3.2" | ||
"@uiw/color-convert": "1.3.3", | ||
"@uiw/react-color-alpha": "1.3.3" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -8,3 +8,5 @@ React Color Hue | ||
<!--rehype:ignore:start--> | ||
[![react-color-hue](https://user-images.githubusercontent.com/1680273/125951739-e38dad1a-5d11-4e4b-a146-3365bd0d98fb.png)](https://uiwjs.github.io/react-color/#/hue) | ||
<!--rehype:ignore:end--> | ||
@@ -19,6 +21,7 @@ ## Install | ||
```js | ||
```jsx mdx:preview | ||
import React, { useState } from 'react'; | ||
import Hue from '@uiw/react-color-hue'; | ||
function Demo() { | ||
export default function Demo() { | ||
const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 }); | ||
@@ -42,5 +45,9 @@ return ( | ||
export interface HueProps extends Omit<AlphaProps, 'hsva' | 'onChange'> { | ||
onChange?: (newHue: { h: number; }) => void; | ||
onChange?: (newHue: { | ||
h: number; | ||
}) => void; | ||
hue: number; | ||
} | ||
declare const Hue: React.ForwardRefExoticComponent<HueProps & React.RefAttributes<HTMLDivElement>>; | ||
export default Hue; | ||
``` | ||
@@ -47,0 +54,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
7737
57
+ Added@uiw/color-convert@1.3.3(transitive)
+ Added@uiw/react-color-alpha@1.3.3(transitive)
+ Added@uiw/react-drag-event-interactive@1.3.3(transitive)
- Removed@uiw/color-convert@1.3.2(transitive)
- Removed@uiw/react-color-alpha@1.3.2(transitive)
- Removed@uiw/react-drag-event-interactive@1.3.2(transitive)
Updated@uiw/color-convert@1.3.3
Updated@uiw/react-color-alpha@1.3.3