|
| 1 | +diff --git a/node_modules/tinycolor2/cjs/tinycolor.js b/node_modules/tinycolor2/cjs/tinycolor.js |
| 2 | +index 4f584ca..af03edf 100644 |
| 3 | +--- a/node_modules/tinycolor2/cjs/tinycolor.js |
| 4 | ++++ b/node_modules/tinycolor2/cjs/tinycolor.js |
| 5 | +@@ -1061,6 +1061,9 @@ |
| 6 | + // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` |
| 7 | + function stringInputToObject(color) { |
| 8 | + color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase(); |
| 9 | ++ if (color.startsWith("linear-gradient") || color.startsWith("radial-gradient") || color.startsWith("repeating-linear-gradient") || color.startsWith("repeating-radial-gradient")) { |
| 10 | ++ return false; |
| 11 | ++ } |
| 12 | + var named = false; |
| 13 | + if (names[color]) { |
| 14 | + color = names[color]; |
| 15 | +diff --git a/node_modules/tinycolor2/esm/tinycolor.js b/node_modules/tinycolor2/esm/tinycolor.js |
| 16 | +index 374f5ea..8405a82 100644 |
| 17 | +--- a/node_modules/tinycolor2/esm/tinycolor.js |
| 18 | ++++ b/node_modules/tinycolor2/esm/tinycolor.js |
| 19 | +@@ -1055,6 +1055,9 @@ function isValidCSSUnit(color) { |
| 20 | + // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` |
| 21 | + function stringInputToObject(color) { |
| 22 | + color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase(); |
| 23 | ++ if (color.startsWith("linear-gradient") || color.startsWith("radial-gradient") || color.startsWith("repeating-linear-gradient") || color.startsWith("repeating-radial-gradient")) { |
| 24 | ++ return false; |
| 25 | ++ } |
| 26 | + var named = false; |
| 27 | + if (names[color]) { |
| 28 | + color = names[color]; |
| 29 | +diff --git a/node_modules/tinycolor2/tinycolor.js b/node_modules/tinycolor2/tinycolor.js |
| 30 | +index 52601df..f2ef959 100644 |
| 31 | +--- a/node_modules/tinycolor2/tinycolor.js |
| 32 | ++++ b/node_modules/tinycolor2/tinycolor.js |
| 33 | +@@ -1064,6 +1064,9 @@ |
| 34 | + // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}` |
| 35 | + function stringInputToObject(color) { |
| 36 | + color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase(); |
| 37 | ++ if (color.startsWith("linear-gradient") || color.startsWith("radial-gradient") || color.startsWith("repeating-linear-gradient") || color.startsWith("repeating-radial-gradient")) { |
| 38 | ++ return false; |
| 39 | ++ } |
| 40 | + var named = false; |
| 41 | + if (names[color]) { |
| 42 | + color = names[color]; |
0 commit comments