@yamada-ui/utils
Advanced tools
Comparing version 1.0.5 to 1.0.6-dev-20240227113132
@@ -225,2 +225,4 @@ "use strict"; | ||
const isAlpha = format.endsWith("a"); | ||
if (/^[0-9a-fA-F]{6}$/.test(color)) | ||
color = "#" + color; | ||
if (format.startsWith("hex")) { | ||
@@ -274,2 +276,4 @@ let hexa = c.toHex(color); | ||
try { | ||
if (/^[0-9a-fA-F]{6}$/.test(color)) | ||
color = "#" + color; | ||
return c.parseToRgba(color); | ||
@@ -283,2 +287,4 @@ } catch { | ||
try { | ||
if (/^[0-9a-fA-F]{6}$/.test(color)) | ||
color = "#" + color; | ||
return c.parseToHsla(color); | ||
@@ -285,0 +291,0 @@ } catch { |
@@ -769,2 +769,4 @@ "use strict"; | ||
const isAlpha = format.endsWith("a"); | ||
if (/^[0-9a-fA-F]{6}$/.test(color)) | ||
color = "#" + color; | ||
if (format.startsWith("hex")) { | ||
@@ -818,2 +820,4 @@ let hexa = c.toHex(color); | ||
try { | ||
if (/^[0-9a-fA-F]{6}$/.test(color)) | ||
color = "#" + color; | ||
return c.parseToRgba(color); | ||
@@ -827,2 +831,4 @@ } catch { | ||
try { | ||
if (/^[0-9a-fA-F]{6}$/.test(color)) | ||
color = "#" + color; | ||
return c.parseToHsla(color); | ||
@@ -829,0 +835,0 @@ } catch { |
{ | ||
"name": "@yamada-ui/utils", | ||
"version": "1.0.5", | ||
"version": "1.0.6-dev-20240227113132", | ||
"description": "Yamada UI utils", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
367323
4405
1