@uiw/react-color-hue
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@uiw/react-color-hue", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Color hue", | ||
@@ -27,4 +27,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"@babel/runtime": "7.14.6", | ||
"@uiw/color-convert": "0.0.1", | ||
"@uiw/react-color-alpha": "0.0.1" | ||
"@uiw/color-convert": "^0.0.2", | ||
"@uiw/react-color-alpha": "^0.0.2" | ||
}, | ||
@@ -38,3 +38,4 @@ "devDependencies": { | ||
"react-test-renderer": "17.0.2" | ||
} | ||
}, | ||
"gitHead": "9505befd9da79920b371501b8cf2a320f3ab70c7" | ||
} |
@@ -16,4 +16,10 @@ Color Hue | ||
function Demo() { | ||
const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 }); | ||
return ( | ||
<Hue hue={222} /> | ||
<Hue | ||
hue={hsva.h} | ||
onChange={(newHue) => { | ||
setHsva({ ...hsva, ...newHue }); | ||
}} | ||
/> | ||
); | ||
@@ -20,0 +26,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
37
19230
11
185
+ Added@uiw/color-convert@0.0.2(transitive)
+ Added@uiw/react-color-alpha@0.0.2(transitive)
+ Added@uiw/react-drag-event-interactive@0.0.2(transitive)
- Removed@uiw/color-convert@0.0.1(transitive)
- Removed@uiw/react-color-alpha@0.0.1(transitive)
- Removed@uiw/react-drag-event-interactive@0.0.1(transitive)
Updated@uiw/color-convert@^0.0.2