@pathscale/ui 0.0.112 → 0.0.113
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/dist/index.js +137 -83
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7148,7 +7148,7 @@ const runMotion = (el, from, to, transition, onComplete)=>{
|
|
|
7148
7148
|
}
|
|
7149
7149
|
};
|
|
7150
7150
|
};
|
|
7151
|
-
var ColorWheelFlower_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="absolute inset-0"><div class="absolute inset-0"><div class="absolute inset-0 rounded-full"></div></div><div class="absolute inset-0"><div class="absolute inset-0 rounded-full"></div></div></div><div class="relative z-10 w-[calc(100%-5px)] h-[calc(100%-5px)] rounded-full">'), ColorWheelFlower_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class=absolute><div class="relative w-[32px] h-[32px]"><span class="absolute rounded-full pointer-events-none"></span><button type=button><span>');
|
|
7151
|
+
var ColorWheelFlower_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="absolute inset-0"><div class="absolute inset-0"><div class="absolute inset-0 rounded-full"></div></div><div class="absolute inset-0"><div class="absolute inset-0 rounded-full"></div></div></div><div class="relative z-10 w-[calc(100%-5px)] h-[calc(100%-5px)] rounded-full">'), ColorWheelFlower_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class=absolute><div class="relative w-[32px] h-[32px]"><div class="relative w-full h-full"><span class="absolute rounded-full pointer-events-none"></span><button type=button><span>');
|
|
7152
7152
|
const parseRgbToHsl = (rgbString)=>{
|
|
7153
7153
|
const match = rgbString.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
7154
7154
|
if (!match) return {
|
|
@@ -7223,6 +7223,11 @@ const easeOutBack = (overshoot = 1.4)=>(t)=>{
|
|
|
7223
7223
|
const c3 = c1 + 1;
|
|
7224
7224
|
return 1 + c3 * (t - 1) ** 3 + c1 * (t - 1) ** 2;
|
|
7225
7225
|
};
|
|
7226
|
+
const toRgba = (rgb, alpha)=>{
|
|
7227
|
+
const match = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
7228
|
+
if (!match) return rgb;
|
|
7229
|
+
return `rgba(${match[1]}, ${match[2]}, ${match[3]}, ${alpha})`;
|
|
7230
|
+
};
|
|
7226
7231
|
const COLORS = [
|
|
7227
7232
|
createColorItem("rgb(245,245,61)", 34.641, -20),
|
|
7228
7233
|
createColorItem("rgb(245,153,61)", 20, -34.641),
|
|
@@ -7244,7 +7249,8 @@ const COLORS = [
|
|
|
7244
7249
|
createColorItem("rgb(217,240,194)", 20, 0),
|
|
7245
7250
|
createColorItem("rgb(255,255,255)", 0, 0)
|
|
7246
7251
|
];
|
|
7247
|
-
const
|
|
7252
|
+
const MAX_RADIUS = Math.max(...COLORS.map((item)=>Math.sqrt(item.offsetX ** 2 + item.offsetY ** 2)));
|
|
7253
|
+
const MAX_WAVE_DISTANCE = 2 * MAX_RADIUS;
|
|
7248
7254
|
const MAX_WAVE_DELAY = 0.12;
|
|
7249
7255
|
const RAINBOW_GRADIENT = `conic-gradient(
|
|
7250
7256
|
from 0deg,
|
|
@@ -7262,6 +7268,12 @@ const ColorWheelFlower = (props)=>{
|
|
|
7262
7268
|
const [selectedIndex, setSelectedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
|
|
7263
7269
|
const [hoveredIndex, setHoveredIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
|
|
7264
7270
|
const [pressedIndex, setPressedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
|
|
7271
|
+
const [pointer, setPointer] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)({
|
|
7272
|
+
x: 0,
|
|
7273
|
+
y: 0,
|
|
7274
|
+
active: false
|
|
7275
|
+
});
|
|
7276
|
+
const [pulseState, setPulseState] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
|
|
7265
7277
|
const reduceMotion = prefersReducedMotion();
|
|
7266
7278
|
const ringTransition = reduceMotion ? {
|
|
7267
7279
|
duration: 0
|
|
@@ -7270,12 +7282,24 @@ const ColorWheelFlower = (props)=>{
|
|
|
7270
7282
|
easing: motionEasings.inOut
|
|
7271
7283
|
};
|
|
7272
7284
|
const hoverLift = reduceMotion ? 0 : motionDistances.sm;
|
|
7273
|
-
const selectLift = reduceMotion ? 0 : motionDistances.md;
|
|
7274
7285
|
const pressScale = 0.96;
|
|
7286
|
+
const pulseScale = 1.12;
|
|
7287
|
+
let containerRef;
|
|
7288
|
+
let pointerTimeout;
|
|
7289
|
+
let pulseTimeout;
|
|
7275
7290
|
let outerRingRef;
|
|
7276
7291
|
let outerRingControl = null;
|
|
7277
7292
|
const handleDotClick = (index)=>{
|
|
7278
7293
|
if (context.disabled()) return;
|
|
7294
|
+
const pulseKey = Date.now();
|
|
7295
|
+
setPulseState({
|
|
7296
|
+
index,
|
|
7297
|
+
key: pulseKey
|
|
7298
|
+
});
|
|
7299
|
+
if (void 0 !== pulseTimeout) clearTimeout(pulseTimeout);
|
|
7300
|
+
pulseTimeout = window.setTimeout(()=>{
|
|
7301
|
+
setPulseState((prev)=>prev?.index === index && prev?.key === pulseKey ? null : prev);
|
|
7302
|
+
}, reduceMotion ? 0 : 220);
|
|
7279
7303
|
if (selectedIndex() === index) {
|
|
7280
7304
|
setSelectedIndex(null);
|
|
7281
7305
|
const whiteColor = createColorFromHsl(0, 0, 100, context.color().hsl.a);
|
|
@@ -7287,6 +7311,32 @@ const ColorWheelFlower = (props)=>{
|
|
|
7287
7311
|
context.onChange(newColor);
|
|
7288
7312
|
}
|
|
7289
7313
|
};
|
|
7314
|
+
const handlePointerMove = (event)=>{
|
|
7315
|
+
if (!containerRef) return;
|
|
7316
|
+
const rect = containerRef.getBoundingClientRect();
|
|
7317
|
+
const x = event.clientX - rect.left - rect.width / 2;
|
|
7318
|
+
const y = event.clientY - rect.top - rect.height / 2;
|
|
7319
|
+
setPointer({
|
|
7320
|
+
x,
|
|
7321
|
+
y,
|
|
7322
|
+
active: true
|
|
7323
|
+
});
|
|
7324
|
+
if (void 0 !== pointerTimeout) clearTimeout(pointerTimeout);
|
|
7325
|
+
pointerTimeout = window.setTimeout(()=>{
|
|
7326
|
+
setPointer((prev)=>({
|
|
7327
|
+
...prev,
|
|
7328
|
+
active: false
|
|
7329
|
+
}));
|
|
7330
|
+
}, 120);
|
|
7331
|
+
};
|
|
7332
|
+
const handlePointerLeave = ()=>{
|
|
7333
|
+
setPointer((prev)=>({
|
|
7334
|
+
...prev,
|
|
7335
|
+
active: false
|
|
7336
|
+
}));
|
|
7337
|
+
setHoveredIndex(null);
|
|
7338
|
+
if (void 0 !== pointerTimeout) clearTimeout(pointerTimeout);
|
|
7339
|
+
};
|
|
7290
7340
|
const containerClasses = ()=>twMerge("relative w-[140px] h-[140px] flex items-center justify-center", clsx({
|
|
7291
7341
|
"opacity-50 cursor-not-allowed": context.disabled()
|
|
7292
7342
|
}), props.class, props.className);
|
|
@@ -7315,9 +7365,9 @@ const ColorWheelFlower = (props)=>{
|
|
|
7315
7365
|
const outerRingGlow = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7316
7366
|
if (context.disabled()) return "none";
|
|
7317
7367
|
const idx = hoveredIndex() ?? selectedIndex();
|
|
7318
|
-
if (null === idx) return "0 0
|
|
7368
|
+
if (null === idx) return "0 0 10px rgba(255,255,255,0.08)";
|
|
7319
7369
|
const color = COLORS[idx].rgb;
|
|
7320
|
-
return `0 0
|
|
7370
|
+
return `0 0 10px rgba(255,255,255,0.16), 0 0 20px ${toRgba(color, 0.35)}`;
|
|
7321
7371
|
});
|
|
7322
7372
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
7323
7373
|
if (!outerRingRef) return;
|
|
@@ -7327,12 +7377,18 @@ const ColorWheelFlower = (props)=>{
|
|
|
7327
7377
|
});
|
|
7328
7378
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
7329
7379
|
outerRingControl?.stop();
|
|
7380
|
+
if (void 0 !== pulseTimeout) clearTimeout(pulseTimeout);
|
|
7381
|
+
if (void 0 !== pointerTimeout) clearTimeout(pointerTimeout);
|
|
7330
7382
|
});
|
|
7331
7383
|
return (()=>{
|
|
7332
7384
|
var _el$ = ColorWheelFlower_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$2.nextSibling;
|
|
7385
|
+
_el$.addEventListener("mouseleave", handlePointerLeave);
|
|
7386
|
+
_el$.$$mousemove = handlePointerMove;
|
|
7387
|
+
var _ref$ = containerRef;
|
|
7388
|
+
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : containerRef = _el$;
|
|
7333
7389
|
_el$3.style.setProperty("transform", "scale(1.1)");
|
|
7334
|
-
var _ref$ = outerRingRef;
|
|
7335
|
-
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref
|
|
7390
|
+
var _ref$2 = outerRingRef;
|
|
7391
|
+
"function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$4) : outerRingRef = _el$4;
|
|
7336
7392
|
_el$4.style.setProperty("transition", reduceMotion ? "none" : "background 450ms ease-in-out, box-shadow 300ms ease-out");
|
|
7337
7393
|
_el$5.style.setProperty("transform", "scale(0.9)");
|
|
7338
7394
|
_el$6.style.setProperty("background", "#0b1012");
|
|
@@ -7341,11 +7397,9 @@ const ColorWheelFlower = (props)=>{
|
|
|
7341
7397
|
children: (item, index)=>{
|
|
7342
7398
|
let motionRef;
|
|
7343
7399
|
let dotControl = null;
|
|
7344
|
-
const isSelected = ()=>selectedIndex() === index();
|
|
7345
7400
|
const isHovered = ()=>hoveredIndex() === index();
|
|
7346
7401
|
const isPressed = ()=>pressedIndex() === index();
|
|
7347
|
-
const
|
|
7348
|
-
const hasHover = ()=>null !== hoveredIndex();
|
|
7402
|
+
const isPulsing = ()=>pulseState()?.index === index();
|
|
7349
7403
|
const dotBaseTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7350
7404
|
if (context.disabled()) return {
|
|
7351
7405
|
opacity: 0.5,
|
|
@@ -7353,72 +7407,69 @@ const ColorWheelFlower = (props)=>{
|
|
|
7353
7407
|
x: 0,
|
|
7354
7408
|
y: 0
|
|
7355
7409
|
};
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7410
|
+
const pointerState = pointer();
|
|
7411
|
+
const anchorIndex = hoveredIndex();
|
|
7412
|
+
let scale = 1;
|
|
7413
|
+
let offsetX = 0;
|
|
7414
|
+
let offsetY = 0;
|
|
7415
|
+
if (null !== anchorIndex && pointerState.active) {
|
|
7416
|
+
const anchor = COLORS[anchorIndex];
|
|
7417
|
+
const distance = Math.sqrt((item.offsetX - anchor.offsetX) ** 2 + (item.offsetY - anchor.offsetY) ** 2);
|
|
7418
|
+
const waveRadius = 0.9 * MAX_RADIUS;
|
|
7419
|
+
const influence = Math.max(0, 1 - distance / waveRadius);
|
|
7420
|
+
if (influence > 0) {
|
|
7421
|
+
const maxDelta = 16;
|
|
7422
|
+
const deltaX = Math.max(-maxDelta, Math.min(maxDelta, pointerState.x - anchor.offsetX));
|
|
7423
|
+
const deltaY = Math.max(-maxDelta, Math.min(maxDelta, pointerState.y - anchor.offsetY));
|
|
7424
|
+
const waveStrength = isHovered() ? 0.25 : 0.18;
|
|
7425
|
+
offsetX += deltaX * influence * waveStrength;
|
|
7426
|
+
offsetY += deltaY * influence * waveStrength;
|
|
7427
|
+
const liftStrength = isHovered() ? 0.8 : 0.35;
|
|
7428
|
+
const lift = getLiftOffset(item, hoverLift * liftStrength);
|
|
7429
|
+
offsetX += lift.x * influence;
|
|
7430
|
+
offsetY += lift.y * influence;
|
|
7431
|
+
const scaleBoost = isHovered() ? 0.06 : 0.03;
|
|
7432
|
+
scale += influence * scaleBoost;
|
|
7433
|
+
}
|
|
7373
7434
|
}
|
|
7374
|
-
if (hasSelection()) return {
|
|
7375
|
-
opacity: 1,
|
|
7376
|
-
scale: 0.98,
|
|
7377
|
-
x: 0,
|
|
7378
|
-
y: 0
|
|
7379
|
-
};
|
|
7380
|
-
if (hasHover()) return {
|
|
7381
|
-
opacity: 1,
|
|
7382
|
-
scale: 0.99,
|
|
7383
|
-
x: 0,
|
|
7384
|
-
y: 0
|
|
7385
|
-
};
|
|
7386
7435
|
return {
|
|
7387
7436
|
opacity: 1,
|
|
7388
|
-
scale
|
|
7389
|
-
x:
|
|
7390
|
-
y:
|
|
7437
|
+
scale,
|
|
7438
|
+
x: offsetX,
|
|
7439
|
+
y: offsetY
|
|
7391
7440
|
};
|
|
7392
7441
|
});
|
|
7393
7442
|
const dotTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7394
7443
|
const base = dotBaseTarget();
|
|
7395
|
-
|
|
7444
|
+
let scale = base.scale ?? 1;
|
|
7445
|
+
if (isPulsing()) scale *= pulseScale;
|
|
7446
|
+
if (isPressed()) scale *= pressScale;
|
|
7396
7447
|
return {
|
|
7397
7448
|
...base,
|
|
7398
|
-
scale
|
|
7449
|
+
scale
|
|
7399
7450
|
};
|
|
7400
7451
|
});
|
|
7401
7452
|
const glowOpacity = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7402
7453
|
if (context.disabled()) return 0;
|
|
7403
|
-
if (isHovered()) return
|
|
7404
|
-
if (
|
|
7454
|
+
if (isHovered()) return 0.6;
|
|
7455
|
+
if (isPulsing()) return 0.35;
|
|
7405
7456
|
return 0;
|
|
7406
7457
|
});
|
|
7407
7458
|
const dotTransition = ()=>{
|
|
7408
7459
|
if (reduceMotion) return {
|
|
7409
7460
|
duration: 0
|
|
7410
7461
|
};
|
|
7411
|
-
const anchorIndex = hoveredIndex()
|
|
7462
|
+
const anchorIndex = hoveredIndex();
|
|
7463
|
+
const pointerState = pointer();
|
|
7412
7464
|
let delay = 0;
|
|
7413
|
-
if (null !== anchorIndex) {
|
|
7465
|
+
if (null !== anchorIndex && pointerState.active) {
|
|
7414
7466
|
const anchor = COLORS[anchorIndex];
|
|
7415
7467
|
const distance = Math.sqrt((item.offsetX - anchor.offsetX) ** 2 + (item.offsetY - anchor.offsetY) ** 2);
|
|
7416
7468
|
delay = Math.min(MAX_WAVE_DELAY, distance / MAX_WAVE_DISTANCE * MAX_WAVE_DELAY);
|
|
7417
7469
|
}
|
|
7418
|
-
if (
|
|
7470
|
+
if (isPulsing()) return {
|
|
7419
7471
|
duration: motionDurations.fast,
|
|
7420
|
-
easing: easeOutBack(1.25)
|
|
7421
|
-
delay
|
|
7472
|
+
easing: easeOutBack(1.25)
|
|
7422
7473
|
};
|
|
7423
7474
|
if (isHovered()) return {
|
|
7424
7475
|
duration: motionDurations.fast,
|
|
@@ -7442,61 +7493,62 @@ const ColorWheelFlower = (props)=>{
|
|
|
7442
7493
|
dotControl?.stop();
|
|
7443
7494
|
});
|
|
7444
7495
|
return (()=>{
|
|
7445
|
-
var _el$8 = ColorWheelFlower_tmpl$2(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.
|
|
7496
|
+
var _el$8 = ColorWheelFlower_tmpl$2(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling, _el$11 = _el$10.firstChild;
|
|
7446
7497
|
_el$8.style.setProperty("transform", "translate(-50%, -50%)");
|
|
7447
7498
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)((el)=>{
|
|
7448
7499
|
motionRef = el;
|
|
7449
|
-
}, _el$
|
|
7450
|
-
_el$
|
|
7451
|
-
_el$
|
|
7452
|
-
_el$
|
|
7453
|
-
_el$
|
|
7454
|
-
_el$
|
|
7455
|
-
_el$
|
|
7456
|
-
_el$
|
|
7500
|
+
}, _el$0);
|
|
7501
|
+
_el$1.style.setProperty("top", "-5px");
|
|
7502
|
+
_el$1.style.setProperty("left", "-5px");
|
|
7503
|
+
_el$1.style.setProperty("right", "-5px");
|
|
7504
|
+
_el$1.style.setProperty("bottom", "-5px");
|
|
7505
|
+
_el$1.style.setProperty("background", "radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%)");
|
|
7506
|
+
_el$1.style.setProperty("transition", reduceMotion ? "none" : "opacity 200ms ease-out, box-shadow 200ms ease-out");
|
|
7507
|
+
_el$10.addEventListener("pointercancel", ()=>{
|
|
7457
7508
|
if (!context.disabled()) setPressedIndex(null);
|
|
7458
7509
|
});
|
|
7459
|
-
_el$
|
|
7510
|
+
_el$10.addEventListener("pointerleave", ()=>{
|
|
7460
7511
|
if (!context.disabled()) setPressedIndex(null);
|
|
7461
7512
|
});
|
|
7462
|
-
_el$
|
|
7513
|
+
_el$10.$$pointerup = ()=>{
|
|
7463
7514
|
if (!context.disabled()) setPressedIndex(null);
|
|
7464
7515
|
};
|
|
7465
|
-
_el$
|
|
7516
|
+
_el$10.$$pointerdown = ()=>{
|
|
7466
7517
|
if (!context.disabled()) setPressedIndex(index());
|
|
7467
7518
|
};
|
|
7468
|
-
_el$
|
|
7519
|
+
_el$10.addEventListener("blur", ()=>{
|
|
7469
7520
|
if (!context.disabled()) setHoveredIndex(null);
|
|
7470
7521
|
});
|
|
7471
|
-
_el$
|
|
7522
|
+
_el$10.addEventListener("focus", ()=>{
|
|
7472
7523
|
if (!context.disabled()) setHoveredIndex(index());
|
|
7473
7524
|
});
|
|
7474
|
-
_el$
|
|
7525
|
+
_el$10.addEventListener("mouseleave", ()=>{
|
|
7475
7526
|
if (!context.disabled()) setHoveredIndex(null);
|
|
7476
7527
|
});
|
|
7477
|
-
_el$
|
|
7528
|
+
_el$10.addEventListener("mouseenter", ()=>{
|
|
7478
7529
|
if (!context.disabled()) setHoveredIndex(index());
|
|
7479
7530
|
});
|
|
7480
|
-
_el$
|
|
7481
|
-
_el$
|
|
7482
|
-
_el$
|
|
7531
|
+
_el$10.$$click = ()=>handleDotClick(index());
|
|
7532
|
+
_el$10.style.setProperty("transition", reduceMotion ? "none" : "box-shadow 200ms ease-out");
|
|
7533
|
+
_el$11.style.setProperty("mix-blend-mode", "overlay");
|
|
7483
7534
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7484
|
-
var _v$4 = `calc(50% + ${item.offsetX}px)`, _v$5 = `calc(50% + ${item.offsetY}px)`, _v$6 = glowOpacity(), _v$7 = `0 0
|
|
7535
|
+
var _v$4 = `calc(50% + ${item.offsetX}px)`, _v$5 = `calc(50% + ${item.offsetY}px)`, _v$6 = glowOpacity(), _v$7 = `0 0 8px ${toRgba(item.rgb, 0.3)}, 0 0 3px rgba(255,255,255,0.35)`, _v$8 = context.disabled() ? -1 : 0, _v$9 = clsx("w-full h-full rounded-full", "transition-shadow duration-200 ease-out", "focus:outline-none focus:ring-2 focus:ring-white/50", "relative z-10", {
|
|
7485
7536
|
"cursor-not-allowed": context.disabled(),
|
|
7486
7537
|
"cursor-pointer": !context.disabled()
|
|
7487
|
-
}), _v$0 = item.rgb, _v$1 =
|
|
7538
|
+
}), _v$0 = item.rgb, _v$1 = isHovered() || isPulsing() ? "0 3px 10px rgba(0,0,0,0.25)" : "0 2px 8px rgba(0,0,0,0.25)", _v$10 = `Select color ${item.rgb}`, _v$11 = selectedIndex() === index(), _v$12 = clsx("absolute inset-0 rounded-full border-2 border-white", "transition-opacity duration-300 ease-out"), _v$13 = isHovered() ? "0.75" : isPulsing() ? "0.45" : "0", _v$14 = isHovered() ? "0 0 6px rgba(255,255,255,0.45)" : isPulsing() ? "0 0 4px rgba(255,255,255,0.35)" : "none";
|
|
7488
7539
|
_v$4 !== _p$.e && (null != (_p$.e = _v$4) ? _el$8.style.setProperty("left", _v$4) : _el$8.style.removeProperty("left"));
|
|
7489
7540
|
_v$5 !== _p$.t && (null != (_p$.t = _v$5) ? _el$8.style.setProperty("top", _v$5) : _el$8.style.removeProperty("top"));
|
|
7490
|
-
_v$6 !== _p$.a && (null != (_p$.a = _v$6) ? _el$
|
|
7491
|
-
_v$7 !== _p$.o && (null != (_p$.o = _v$7) ? _el$
|
|
7492
|
-
_v$8 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$
|
|
7493
|
-
_v$9 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$
|
|
7494
|
-
_v$0 !== _p$.s && (null != (_p$.s = _v$0) ? _el$
|
|
7495
|
-
_v$1 !== _p$.h && (null != (_p$.h = _v$1) ? _el$
|
|
7496
|
-
_v$10 !== _p$.r && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$
|
|
7497
|
-
_v$11 !== _p$.d && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$
|
|
7498
|
-
_v$12 !== _p$.l && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$
|
|
7499
|
-
_v$13 !== _p$.u && (null != (_p$.u = _v$13) ? _el$
|
|
7541
|
+
_v$6 !== _p$.a && (null != (_p$.a = _v$6) ? _el$1.style.setProperty("opacity", _v$6) : _el$1.style.removeProperty("opacity"));
|
|
7542
|
+
_v$7 !== _p$.o && (null != (_p$.o = _v$7) ? _el$1.style.setProperty("box-shadow", _v$7) : _el$1.style.removeProperty("box-shadow"));
|
|
7543
|
+
_v$8 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "tabindex", _p$.i = _v$8);
|
|
7544
|
+
_v$9 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$10, _p$.n = _v$9);
|
|
7545
|
+
_v$0 !== _p$.s && (null != (_p$.s = _v$0) ? _el$10.style.setProperty("background", _v$0) : _el$10.style.removeProperty("background"));
|
|
7546
|
+
_v$1 !== _p$.h && (null != (_p$.h = _v$1) ? _el$10.style.setProperty("box-shadow", _v$1) : _el$10.style.removeProperty("box-shadow"));
|
|
7547
|
+
_v$10 !== _p$.r && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "aria-label", _p$.r = _v$10);
|
|
7548
|
+
_v$11 !== _p$.d && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "aria-pressed", _p$.d = _v$11);
|
|
7549
|
+
_v$12 !== _p$.l && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$11, _p$.l = _v$12);
|
|
7550
|
+
_v$13 !== _p$.u && (null != (_p$.u = _v$13) ? _el$11.style.setProperty("opacity", _v$13) : _el$11.style.removeProperty("opacity"));
|
|
7551
|
+
_v$14 !== _p$.c && (null != (_p$.c = _v$14) ? _el$11.style.setProperty("box-shadow", _v$14) : _el$11.style.removeProperty("box-shadow"));
|
|
7500
7552
|
return _p$;
|
|
7501
7553
|
}, {
|
|
7502
7554
|
e: void 0,
|
|
@@ -7510,7 +7562,8 @@ const ColorWheelFlower = (props)=>{
|
|
|
7510
7562
|
r: void 0,
|
|
7511
7563
|
d: void 0,
|
|
7512
7564
|
l: void 0,
|
|
7513
|
-
u: void 0
|
|
7565
|
+
u: void 0,
|
|
7566
|
+
c: void 0
|
|
7514
7567
|
});
|
|
7515
7568
|
return _el$8;
|
|
7516
7569
|
})();
|
|
@@ -7532,6 +7585,7 @@ const ColorWheelFlower = (props)=>{
|
|
|
7532
7585
|
};
|
|
7533
7586
|
const colorpicker_ColorWheelFlower = ColorWheelFlower;
|
|
7534
7587
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
7588
|
+
"mousemove",
|
|
7535
7589
|
"click",
|
|
7536
7590
|
"pointerdown",
|
|
7537
7591
|
"pointerup"
|