@pathscale/ui 0.0.111 → 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.
Files changed (2) hide show
  1. package/dist/index.js +213 -78
  2. 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="w-[32px] h-[32px]"><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 {
@@ -7218,6 +7218,16 @@ const getLiftOffset = (item, distance)=>{
7218
7218
  y: item.offsetY / radius * distance
7219
7219
  };
7220
7220
  };
7221
+ const easeOutBack = (overshoot = 1.4)=>(t)=>{
7222
+ const c1 = overshoot;
7223
+ const c3 = c1 + 1;
7224
+ return 1 + c3 * (t - 1) ** 3 + c1 * (t - 1) ** 2;
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
+ };
7221
7231
  const COLORS = [
7222
7232
  createColorItem("rgb(245,245,61)", 34.641, -20),
7223
7233
  createColorItem("rgb(245,153,61)", 20, -34.641),
@@ -7239,6 +7249,9 @@ const COLORS = [
7239
7249
  createColorItem("rgb(217,240,194)", 20, 0),
7240
7250
  createColorItem("rgb(255,255,255)", 0, 0)
7241
7251
  ];
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;
7254
+ const MAX_WAVE_DELAY = 0.12;
7242
7255
  const RAINBOW_GRADIENT = `conic-gradient(
7243
7256
  from 0deg,
7244
7257
  rgb(245,61,61) 0deg,
@@ -7254,25 +7267,39 @@ const ColorWheelFlower = (props)=>{
7254
7267
  const context = useColorPickerContext();
7255
7268
  const [selectedIndex, setSelectedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
7256
7269
  const [hoveredIndex, setHoveredIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(null);
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);
7257
7277
  const reduceMotion = prefersReducedMotion();
7258
- const dotTransition = reduceMotion ? {
7259
- duration: 0
7260
- } : {
7261
- duration: motionDurations.fast,
7262
- easing: motionEasings.out
7263
- };
7264
7278
  const ringTransition = reduceMotion ? {
7265
7279
  duration: 0
7266
7280
  } : {
7267
- duration: motionDurations.base,
7268
- easing: motionEasings.out
7281
+ duration: motionDurations.slow,
7282
+ easing: motionEasings.inOut
7269
7283
  };
7270
- const hoverLift = reduceMotion ? 0 : motionDistances.sm / 2;
7271
- const selectLift = reduceMotion ? 0 : motionDistances.sm;
7284
+ const hoverLift = reduceMotion ? 0 : motionDistances.sm;
7285
+ const pressScale = 0.96;
7286
+ const pulseScale = 1.12;
7287
+ let containerRef;
7288
+ let pointerTimeout;
7289
+ let pulseTimeout;
7272
7290
  let outerRingRef;
7273
7291
  let outerRingControl = null;
7274
7292
  const handleDotClick = (index)=>{
7275
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);
7276
7303
  if (selectedIndex() === index) {
7277
7304
  setSelectedIndex(null);
7278
7305
  const whiteColor = createColorFromHsl(0, 0, 100, context.color().hsl.a);
@@ -7284,6 +7311,32 @@ const ColorWheelFlower = (props)=>{
7284
7311
  context.onChange(newColor);
7285
7312
  }
7286
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
+ };
7287
7340
  const containerClasses = ()=>twMerge("relative w-[140px] h-[140px] flex items-center justify-center", clsx({
7288
7341
  "opacity-50 cursor-not-allowed": context.disabled()
7289
7342
  }), props.class, props.className);
@@ -7298,17 +7351,24 @@ const ColorWheelFlower = (props)=>{
7298
7351
  };
7299
7352
  if (null !== selectedIndex()) return {
7300
7353
  opacity: 1,
7301
- scale: 1.04
7354
+ scale: 1.06
7302
7355
  };
7303
7356
  if (null !== hoveredIndex()) return {
7304
- opacity: 0.96,
7305
- scale: 1.02
7357
+ opacity: 0.98,
7358
+ scale: 1.03
7306
7359
  };
7307
7360
  return {
7308
- opacity: 0.9,
7361
+ opacity: 0.92,
7309
7362
  scale: 1
7310
7363
  };
7311
7364
  });
7365
+ const outerRingGlow = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
7366
+ if (context.disabled()) return "none";
7367
+ const idx = hoveredIndex() ?? selectedIndex();
7368
+ if (null === idx) return "0 0 10px rgba(255,255,255,0.08)";
7369
+ const color = COLORS[idx].rgb;
7370
+ return `0 0 10px rgba(255,255,255,0.16), 0 0 20px ${toRgba(color, 0.35)}`;
7371
+ });
7312
7372
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
7313
7373
  if (!outerRingRef) return;
7314
7374
  const target = outerRingTarget();
@@ -7317,13 +7377,19 @@ const ColorWheelFlower = (props)=>{
7317
7377
  });
7318
7378
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
7319
7379
  outerRingControl?.stop();
7380
+ if (void 0 !== pulseTimeout) clearTimeout(pulseTimeout);
7381
+ if (void 0 !== pointerTimeout) clearTimeout(pointerTimeout);
7320
7382
  });
7321
7383
  return (()=>{
7322
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$;
7323
7389
  _el$3.style.setProperty("transform", "scale(1.1)");
7324
- var _ref$ = outerRingRef;
7325
- "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$4) : outerRingRef = _el$4;
7326
- _el$4.style.setProperty("transition", reduceMotion ? "none" : "background 500ms ease-out");
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;
7392
+ _el$4.style.setProperty("transition", reduceMotion ? "none" : "background 450ms ease-in-out, box-shadow 300ms ease-out");
7327
7393
  _el$5.style.setProperty("transform", "scale(0.9)");
7328
7394
  _el$6.style.setProperty("background", "#0b1012");
7329
7395
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
@@ -7331,98 +7397,158 @@ const ColorWheelFlower = (props)=>{
7331
7397
  children: (item, index)=>{
7332
7398
  let motionRef;
7333
7399
  let dotControl = null;
7334
- const isSelected = ()=>selectedIndex() === index();
7335
7400
  const isHovered = ()=>hoveredIndex() === index();
7336
- const hasSelection = ()=>null !== selectedIndex();
7337
- const hasHover = ()=>null !== hoveredIndex();
7338
- const dotTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
7401
+ const isPressed = ()=>pressedIndex() === index();
7402
+ const isPulsing = ()=>pulseState()?.index === index();
7403
+ const dotBaseTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
7339
7404
  if (context.disabled()) return {
7340
7405
  opacity: 0.5,
7341
7406
  scale: 1,
7342
7407
  x: 0,
7343
7408
  y: 0
7344
7409
  };
7345
- if (isSelected()) {
7346
- const lift = getLiftOffset(item, selectLift);
7347
- return {
7348
- opacity: 1,
7349
- scale: 1.18,
7350
- x: lift.x,
7351
- y: lift.y
7352
- };
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
+ }
7353
7434
  }
7354
- if (isHovered()) {
7355
- const lift = getLiftOffset(item, hoverLift);
7356
- return {
7357
- opacity: 1,
7358
- scale: 1.1,
7359
- x: lift.x,
7360
- y: lift.y
7361
- };
7435
+ return {
7436
+ opacity: 1,
7437
+ scale,
7438
+ x: offsetX,
7439
+ y: offsetY
7440
+ };
7441
+ });
7442
+ const dotTarget = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
7443
+ const base = dotBaseTarget();
7444
+ let scale = base.scale ?? 1;
7445
+ if (isPulsing()) scale *= pulseScale;
7446
+ if (isPressed()) scale *= pressScale;
7447
+ return {
7448
+ ...base,
7449
+ scale
7450
+ };
7451
+ });
7452
+ const glowOpacity = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
7453
+ if (context.disabled()) return 0;
7454
+ if (isHovered()) return 0.6;
7455
+ if (isPulsing()) return 0.35;
7456
+ return 0;
7457
+ });
7458
+ const dotTransition = ()=>{
7459
+ if (reduceMotion) return {
7460
+ duration: 0
7461
+ };
7462
+ const anchorIndex = hoveredIndex();
7463
+ const pointerState = pointer();
7464
+ let delay = 0;
7465
+ if (null !== anchorIndex && pointerState.active) {
7466
+ const anchor = COLORS[anchorIndex];
7467
+ const distance = Math.sqrt((item.offsetX - anchor.offsetX) ** 2 + (item.offsetY - anchor.offsetY) ** 2);
7468
+ delay = Math.min(MAX_WAVE_DELAY, distance / MAX_WAVE_DISTANCE * MAX_WAVE_DELAY);
7362
7469
  }
7363
- if (hasSelection()) return {
7364
- opacity: 0.65,
7365
- scale: 0.92,
7366
- x: 0,
7367
- y: 0
7470
+ if (isPulsing()) return {
7471
+ duration: motionDurations.fast,
7472
+ easing: easeOutBack(1.25)
7368
7473
  };
7369
- if (hasHover()) return {
7370
- opacity: 0.85,
7371
- scale: 0.96,
7372
- x: 0,
7373
- y: 0
7474
+ if (isHovered()) return {
7475
+ duration: motionDurations.fast,
7476
+ easing: motionEasings.out,
7477
+ delay
7374
7478
  };
7375
7479
  return {
7376
- opacity: 0.95,
7377
- scale: 1,
7378
- x: 0,
7379
- y: 0
7480
+ duration: motionDurations.base,
7481
+ easing: motionEasings.out,
7482
+ delay
7380
7483
  };
7381
- });
7484
+ };
7382
7485
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
7383
7486
  if (!motionRef) return;
7384
7487
  const target = dotTarget();
7488
+ const transition = dotTransition();
7385
7489
  dotControl?.stop();
7386
- dotControl = runMotion(motionRef, readMotionState(motionRef), target, dotTransition);
7490
+ dotControl = runMotion(motionRef, readMotionState(motionRef), target, transition);
7387
7491
  });
7388
7492
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
7389
7493
  dotControl?.stop();
7390
7494
  });
7391
7495
  return (()=>{
7392
- var _el$8 = ColorWheelFlower_tmpl$2(), _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.firstChild;
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;
7393
7497
  _el$8.style.setProperty("transform", "translate(-50%, -50%)");
7394
7498
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)((el)=>{
7395
7499
  motionRef = el;
7396
- }, _el$9);
7397
- _el$0.addEventListener("blur", ()=>{
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", ()=>{
7508
+ if (!context.disabled()) setPressedIndex(null);
7509
+ });
7510
+ _el$10.addEventListener("pointerleave", ()=>{
7511
+ if (!context.disabled()) setPressedIndex(null);
7512
+ });
7513
+ _el$10.$$pointerup = ()=>{
7514
+ if (!context.disabled()) setPressedIndex(null);
7515
+ };
7516
+ _el$10.$$pointerdown = ()=>{
7517
+ if (!context.disabled()) setPressedIndex(index());
7518
+ };
7519
+ _el$10.addEventListener("blur", ()=>{
7398
7520
  if (!context.disabled()) setHoveredIndex(null);
7399
7521
  });
7400
- _el$0.addEventListener("focus", ()=>{
7522
+ _el$10.addEventListener("focus", ()=>{
7401
7523
  if (!context.disabled()) setHoveredIndex(index());
7402
7524
  });
7403
- _el$0.addEventListener("mouseleave", ()=>{
7525
+ _el$10.addEventListener("mouseleave", ()=>{
7404
7526
  if (!context.disabled()) setHoveredIndex(null);
7405
7527
  });
7406
- _el$0.addEventListener("mouseenter", ()=>{
7528
+ _el$10.addEventListener("mouseenter", ()=>{
7407
7529
  if (!context.disabled()) setHoveredIndex(index());
7408
7530
  });
7409
- _el$0.$$click = ()=>handleDotClick(index());
7410
- _el$0.style.setProperty("box-shadow", "0 2px 8px rgba(0,0,0,0.3)");
7411
- _el$1.style.setProperty("mix-blend-mode", "overlay");
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");
7412
7534
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
7413
- var _v$3 = `calc(50% + ${item.offsetX}px)`, _v$4 = `calc(50% + ${item.offsetY}px)`, _v$5 = context.disabled() ? -1 : 0, _v$6 = 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", {
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", {
7414
7536
  "cursor-not-allowed": context.disabled(),
7415
7537
  "cursor-pointer": !context.disabled()
7416
- }), _v$7 = item.rgb, _v$8 = `Select color ${item.rgb}`, _v$9 = selectedIndex() === index(), _v$0 = clsx("absolute inset-0 rounded-full border-2 border-white", "transition-opacity duration-300 ease-out"), _v$1 = selectedIndex() === index() ? "1" : "0";
7417
- _v$3 !== _p$.e && (null != (_p$.e = _v$3) ? _el$8.style.setProperty("left", _v$3) : _el$8.style.removeProperty("left"));
7418
- _v$4 !== _p$.t && (null != (_p$.t = _v$4) ? _el$8.style.setProperty("top", _v$4) : _el$8.style.removeProperty("top"));
7419
- _v$5 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$0, "tabindex", _p$.a = _v$5);
7420
- _v$6 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$0, _p$.o = _v$6);
7421
- _v$7 !== _p$.i && (null != (_p$.i = _v$7) ? _el$0.style.setProperty("background", _v$7) : _el$0.style.removeProperty("background"));
7422
- _v$8 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$0, "aria-label", _p$.n = _v$8);
7423
- _v$9 !== _p$.s && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$0, "aria-pressed", _p$.s = _v$9);
7424
- _v$0 !== _p$.h && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$1, _p$.h = _v$0);
7425
- _v$1 !== _p$.r && (null != (_p$.r = _v$1) ? _el$1.style.setProperty("opacity", _v$1) : _el$1.style.removeProperty("opacity"));
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";
7539
+ _v$4 !== _p$.e && (null != (_p$.e = _v$4) ? _el$8.style.setProperty("left", _v$4) : _el$8.style.removeProperty("left"));
7540
+ _v$5 !== _p$.t && (null != (_p$.t = _v$5) ? _el$8.style.setProperty("top", _v$5) : _el$8.style.removeProperty("top"));
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"));
7426
7552
  return _p$;
7427
7553
  }, {
7428
7554
  e: void 0,
@@ -7433,27 +7559,36 @@ const ColorWheelFlower = (props)=>{
7433
7559
  n: void 0,
7434
7560
  s: void 0,
7435
7561
  h: void 0,
7436
- r: void 0
7562
+ r: void 0,
7563
+ d: void 0,
7564
+ l: void 0,
7565
+ u: void 0,
7566
+ c: void 0
7437
7567
  });
7438
7568
  return _el$8;
7439
7569
  })();
7440
7570
  }
7441
7571
  }));
7442
7572
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
7443
- var _v$ = containerClasses(), _v$2 = outerRingBackground();
7573
+ var _v$ = containerClasses(), _v$2 = outerRingBackground(), _v$3 = outerRingGlow();
7444
7574
  _v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
7445
7575
  _v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$4.style.setProperty("background", _v$2) : _el$4.style.removeProperty("background"));
7576
+ _v$3 !== _p$.a && (null != (_p$.a = _v$3) ? _el$4.style.setProperty("box-shadow", _v$3) : _el$4.style.removeProperty("box-shadow"));
7446
7577
  return _p$;
7447
7578
  }, {
7448
7579
  e: void 0,
7449
- t: void 0
7580
+ t: void 0,
7581
+ a: void 0
7450
7582
  });
7451
7583
  return _el$;
7452
7584
  })();
7453
7585
  };
7454
7586
  const colorpicker_ColorWheelFlower = ColorWheelFlower;
7455
7587
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
7456
- "click"
7588
+ "mousemove",
7589
+ "click",
7590
+ "pointerdown",
7591
+ "pointerup"
7457
7592
  ]);
7458
7593
  const ColorPickerFlowerSelector_ColorPickerFlowerSelector = ()=>[
7459
7594
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(colorpicker_ColorWheelFlower, {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.111",
3
+ "version": "0.0.113",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",