@uiw/react-color-block
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -45,3 +45,3 @@ "use strict"; | ||
var handleHex = function handleHex(value, evn) { | ||
if (typeof value === 'string' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.length))) { | ||
if (typeof value === 'string' && (0, _colorConvert.validHex)(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) { | ||
onChange && onChange((0, _colorConvert.color)((0, _colorConvert.hexToHsva)(value))); | ||
@@ -48,0 +48,0 @@ } |
@@ -30,3 +30,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var handleHex = (value, evn) => { | ||
if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) { | ||
if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) { | ||
onChange && onChange(handleColor(hexToHsva(value))); | ||
@@ -33,0 +33,0 @@ } |
{ | ||
"name": "@uiw/react-color-block", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Color Block Picker", | ||
@@ -14,2 +14,6 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
}, | ||
"scripts": { | ||
"build": "tsbb build", | ||
"watch": "tsbb watch" | ||
}, | ||
"keywords": [ | ||
@@ -36,6 +40,6 @@ "react", | ||
"@babel/runtime": "~7.17.2", | ||
"@uiw/color-convert": "1.0.10", | ||
"@uiw/react-color-editable-input": "1.0.10", | ||
"@uiw/react-color-swatch": "1.0.10" | ||
"@uiw/color-convert": "1.0.11", | ||
"@uiw/react-color-editable-input": "1.0.11", | ||
"@uiw/react-color-swatch": "1.0.11" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29533
0
+ Added@uiw/color-convert@1.0.11(transitive)
+ Added@uiw/react-color-editable-input@1.0.11(transitive)
+ Added@uiw/react-color-swatch@1.0.11(transitive)
- Removed@uiw/color-convert@1.0.10(transitive)
- Removed@uiw/react-color-editable-input@1.0.10(transitive)
- Removed@uiw/react-color-swatch@1.0.10(transitive)
Updated@uiw/color-convert@1.0.11