@luminescent/ui-qwik 6.8.1 → 6.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.qwik.cjs +1 -1
- package/lib/index.qwik.mjs +1 -1
- package/package.json +2 -2
package/lib/index.qwik.cjs
CHANGED
|
@@ -429,7 +429,7 @@ const ColorPicker = qwik.component$(({ id, value = "#000000", colors = [
|
|
|
429
429
|
value
|
|
430
430
|
});
|
|
431
431
|
const setColor = qwik.$(async (color) => {
|
|
432
|
-
if (
|
|
432
|
+
if (!/^#[0-9a-f]{0,8}$/i.test(color)) return;
|
|
433
433
|
const hsv = rgbToHsv(hexToRgba(color));
|
|
434
434
|
store.hue.position = hsv.h * maxHue;
|
|
435
435
|
store.hue.color = rgbToHex(hsvToRgb({
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -427,7 +427,7 @@ const ColorPicker = component$(({ id, value = "#000000", colors = [
|
|
|
427
427
|
value
|
|
428
428
|
});
|
|
429
429
|
const setColor = $(async (color) => {
|
|
430
|
-
if (
|
|
430
|
+
if (!/^#[0-9a-f]{0,8}$/i.test(color)) return;
|
|
431
431
|
const hsv = rgbToHsv(hexToRgba(color));
|
|
432
432
|
store.hue.position = hsv.h * maxHue;
|
|
433
433
|
store.hue.color = rgbToHex(hsvToRgb({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui-qwik",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.2",
|
|
4
4
|
"description": "Luminescent UI library - Qwik",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"vite-tsconfig-paths": "^6.0.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@luminescent/ui": "6.8.
|
|
53
|
+
"@luminescent/ui": "6.8.2"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "qwik build",
|