@pathscale/ui 0.0.143 → 0.0.145

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.
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from "solid-js";
2
- import type { IComponentBaseProps, ComponentSize } from "../types";
2
+ import type { IComponentBaseProps, ComponentSize, ComponentColor } from "../types";
3
3
  export type GlassPanelBlur = "none" | "sm" | "md" | "lg" | "xl" | "2xl";
4
4
  export type GlassPanelProps = IComponentBaseProps & JSX.HTMLAttributes<HTMLDivElement> & {
5
5
  blur?: GlassPanelBlur;
@@ -12,7 +12,7 @@ export type GlassPanelProps = IComponentBaseProps & JSX.HTMLAttributes<HTMLDivEl
12
12
  size?: ComponentSize;
13
13
  transparent?: boolean;
14
14
  glow?: boolean;
15
- accent?: "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
15
+ accent?: ComponentColor;
16
16
  };
17
17
  declare const GlassPanel: (props: GlassPanelProps) => JSX.Element;
18
18
  export default GlassPanel;
package/dist/index.js CHANGED
@@ -10376,7 +10376,8 @@ const FileInput_FileInput = (props)=>{
10376
10376
  })();
10377
10377
  };
10378
10378
  const FileInput = FileInput_FileInput;
10379
- var FloatingDock_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), FloatingDock_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="flex items-center justify-center shrink-0">'), FloatingDock_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="appearance-none bg-transparent border-0 p-0 cursor-pointer">'), FloatingDock_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>"), FloatingDock_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><button type=button class="flex items-center justify-center rounded-full bg-base-200 cursor-pointer border-0 p-0">'), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="flex items-center justify-center rounded-full bg-base-100 cursor-pointer border-0 p-0">'), _tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=animate-fade-in>"), _tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<a class="flex items-center justify-center rounded-full bg-base-100">'), _tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex items-center justify-center rounded-full bg-base-100">'), _tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<svg xmlns=http://www.w3.org/2000/svg class="h-5 w-5 text-base-content/60"viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M4 6h16"></path><path d="M4 12h16"></path><path d="M4 18h16">');
10379
+ var FloatingDock_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), FloatingDock_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="flex items-center justify-center shrink-0">'), FloatingDock_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="appearance-none bg-transparent border-0 p-0 cursor-pointer">'), FloatingDock_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>"), FloatingDock_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div role=toolbar aria-label=Actions>"), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><button type=button class="flex items-center justify-center rounded-full bg-base-200 cursor-pointer border-0 p-0">'), _tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="flex items-center justify-center rounded-full bg-base-100 cursor-pointer border-0 p-0">'), _tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=animate-fade-in>"), _tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<a class="flex items-center justify-center rounded-full bg-base-100">'), _tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex items-center justify-center rounded-full bg-base-100">'), _tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<svg xmlns=http://www.w3.org/2000/svg class="h-5 w-5 text-base-content/60"viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M4 6h16"></path><path d="M4 12h16"></path><path d="M4 18h16">');
10380
+ const FloatingDock_prefersReducedMotion = "undefined" != typeof window && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
10380
10381
  function createSpring(initial, opts = {}) {
10381
10382
  const mass = opts.mass ?? 1;
10382
10383
  const stiffness = opts.stiffness ?? 150;
@@ -10391,7 +10392,19 @@ function createSpring(initial, opts = {}) {
10391
10392
  get () {
10392
10393
  return current;
10393
10394
  },
10395
+ settled () {
10396
+ return current === target && 0 === velocity;
10397
+ },
10398
+ snap () {
10399
+ current = target;
10400
+ velocity = 0;
10401
+ },
10394
10402
  step (dt) {
10403
+ if (FloatingDock_prefersReducedMotion) {
10404
+ current = target;
10405
+ velocity = 0;
10406
+ return;
10407
+ }
10395
10408
  const force = -stiffness * (current - target);
10396
10409
  const accel = (force - damping * velocity) / mass;
10397
10410
  velocity += accel * dt;
@@ -10425,45 +10438,61 @@ const FloatingDock_DockItem = (props)=>{
10425
10438
  let rafId;
10426
10439
  let prevTime = 0;
10427
10440
  let lastMousePos = 1 / 0;
10428
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
10429
- if (!cfg.magnify) return;
10430
- const tick = (time)=>{
10431
- const dt = prevTime ? Math.min((time - prevTime) / 1000, 0.05) : 1 / 60;
10432
- prevTime = time;
10433
- const mp = props.mousePos();
10434
- if (mp !== lastMousePos) {
10435
- lastMousePos = mp;
10436
- if (wrapRef) {
10437
- const b = wrapRef.getBoundingClientRect();
10438
- const isH = "horizontal" === cfg.orientation;
10439
- const center = isH ? b.x + b.width / 2 : b.y + b.height / 2;
10440
- const dist = Math.abs(mp - center);
10441
- const ts = mp === 1 / 0 ? cfg.baseSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverSize, cfg.baseSize);
10442
- const ti = mp === 1 / 0 ? cfg.iconSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverIconSize, cfg.iconSize);
10443
- sW.set(ts);
10444
- sH.set(ts);
10445
- sIW.set(ti);
10446
- sIH.set(ti);
10447
- }
10448
- }
10449
- sW.step(dt);
10450
- sH.step(dt);
10451
- sIW.step(dt);
10452
- sIH.step(dt);
10441
+ let loopRunning = false;
10442
+ const startLoop = ()=>{
10443
+ if (loopRunning || !cfg.magnify) return;
10444
+ loopRunning = true;
10445
+ prevTime = 0;
10446
+ rafId = requestAnimationFrame(tick);
10447
+ };
10448
+ const stopLoop = ()=>{
10449
+ if (void 0 !== rafId) cancelAnimationFrame(rafId);
10450
+ rafId = void 0;
10451
+ loopRunning = false;
10452
+ };
10453
+ const tick = (time)=>{
10454
+ const dt = prevTime ? Math.min((time - prevTime) / 1000, 0.05) : 1 / 60;
10455
+ prevTime = time;
10456
+ const mp = props.mousePos();
10457
+ if (mp !== lastMousePos) {
10458
+ lastMousePos = mp;
10453
10459
  if (wrapRef) {
10454
- wrapRef.style.width = `${sW.get()}px`;
10455
- wrapRef.style.height = `${sH.get()}px`;
10460
+ const b = wrapRef.getBoundingClientRect();
10461
+ const isH = "horizontal" === cfg.orientation;
10462
+ const center = isH ? b.x + b.width / 2 : b.y + b.height / 2;
10463
+ const dist = Math.abs(mp - center);
10464
+ const ts = mp === 1 / 0 ? cfg.baseSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverSize, cfg.baseSize);
10465
+ const ti = mp === 1 / 0 ? cfg.iconSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverIconSize, cfg.iconSize);
10466
+ sW.set(ts);
10467
+ sH.set(ts);
10468
+ sIW.set(ti);
10469
+ sIH.set(ti);
10456
10470
  }
10457
- if (iconRef) {
10458
- iconRef.style.width = `${sIW.get()}px`;
10459
- iconRef.style.height = `${sIH.get()}px`;
10460
- }
10461
- rafId = requestAnimationFrame(tick);
10462
- };
10471
+ }
10472
+ sW.step(dt);
10473
+ sH.step(dt);
10474
+ sIW.step(dt);
10475
+ sIH.step(dt);
10476
+ if (wrapRef) {
10477
+ wrapRef.style.width = `${sW.get()}px`;
10478
+ wrapRef.style.height = `${sH.get()}px`;
10479
+ }
10480
+ if (iconRef) {
10481
+ iconRef.style.width = `${sIW.get()}px`;
10482
+ iconRef.style.height = `${sIH.get()}px`;
10483
+ }
10484
+ if (sW.settled() && sH.settled() && sIW.settled() && sIH.settled()) return void stopLoop();
10463
10485
  rafId = requestAnimationFrame(tick);
10486
+ };
10487
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
10488
+ if (!cfg.magnify) return;
10489
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
10490
+ props.mousePos();
10491
+ startLoop();
10492
+ });
10464
10493
  });
10465
10494
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
10466
- if (void 0 !== rafId) cancelAnimationFrame(rafId);
10495
+ stopLoop();
10467
10496
  });
10468
10497
  const handleClick = (e)=>{
10469
10498
  if (props.item.onClick) {
@@ -10474,7 +10503,10 @@ const FloatingDock_DockItem = (props)=>{
10474
10503
  const inner = (()=>{
10475
10504
  var _el$ = FloatingDock_tmpl$2(), _el$3 = _el$.firstChild;
10476
10505
  _el$.addEventListener("mouseleave", ()=>setHovered(false));
10477
- _el$.addEventListener("mouseenter", ()=>setHovered(true));
10506
+ _el$.addEventListener("mouseenter", ()=>{
10507
+ setHovered(true);
10508
+ startLoop();
10509
+ });
10478
10510
  var _ref$ = wrapRef;
10479
10511
  "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : wrapRef = _el$;
10480
10512
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
@@ -10517,7 +10549,15 @@ const FloatingDock_DockItem = (props)=>{
10517
10549
  get children () {
10518
10550
  var _el$5 = FloatingDock_tmpl$4();
10519
10551
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, inner);
10520
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "href", props.item.href));
10552
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10553
+ var _v$4 = props.item.href, _v$5 = props.item.title;
10554
+ _v$4 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "href", _p$.e = _v$4);
10555
+ _v$5 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "aria-label", _p$.t = _v$5);
10556
+ return _p$;
10557
+ }, {
10558
+ e: void 0,
10559
+ t: void 0
10560
+ });
10521
10561
  return _el$5;
10522
10562
  }
10523
10563
  });
@@ -10526,6 +10566,7 @@ const FloatingDock_DockItem = (props)=>{
10526
10566
  var _el$4 = FloatingDock_tmpl$3();
10527
10567
  _el$4.$$click = handleClick;
10528
10568
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, inner);
10569
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$4, "aria-label", props.item.title));
10529
10570
  return _el$4;
10530
10571
  }
10531
10572
  });
@@ -10534,7 +10575,7 @@ const FloatingDockDesktop = (props)=>{
10534
10575
  const [mousePos, setMousePos] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(1 / 0);
10535
10576
  const isH = ()=>"horizontal" === props.cfg.orientation;
10536
10577
  return (()=>{
10537
- var _el$6 = FloatingDock_tmpl$();
10578
+ var _el$6 = FloatingDock_tmpl$5();
10538
10579
  _el$6.addEventListener("mouseleave", ()=>setMousePos(1 / 0));
10539
10580
  _el$6.$$mousemove = (e)=>setMousePos(isH() ? e.clientX : e.clientY);
10540
10581
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
@@ -10550,7 +10591,7 @@ const FloatingDockDesktop = (props)=>{
10550
10591
  })
10551
10592
  }));
10552
10593
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10553
- var _v$4 = twMerge("mx-auto", "items-center", props.showContainer && "rounded-2xl bg-base-100 shadow-[0px_1px_0px_0px_var(--color-base-300)_inset,0px_1px_0px_0px_var(--color-base-100)]", isH() && props.showContainer && "px-4 py-2", !isH() && props.showContainer && "py-4 px-2", props.class), _v$5 = {
10594
+ var _v$6 = twMerge("mx-auto", "items-center", props.showContainer && "rounded-2xl bg-base-100 shadow-[0px_1px_0px_0px_var(--color-base-300)_inset,0px_1px_0px_0px_var(--color-base-100)]", isH() && props.showContainer && "px-4 py-2", !isH() && props.showContainer && "py-4 px-2", props.class), _v$7 = {
10554
10595
  display: "flex",
10555
10596
  "flex-direction": isH() ? "row" : "column",
10556
10597
  gap: `${props.cfg.gap}px`,
@@ -10561,8 +10602,8 @@ const FloatingDockDesktop = (props)=>{
10561
10602
  },
10562
10603
  overflow: "visible"
10563
10604
  };
10564
- _v$4 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.e = _v$4);
10565
- _p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$6, _v$5, _p$.t);
10605
+ _v$6 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.e = _v$6);
10606
+ _p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$6, _v$7, _p$.t);
10566
10607
  return _p$;
10567
10608
  }, {
10568
10609
  e: void 0,
@@ -10587,7 +10628,7 @@ const FloatingDockMobile = (props)=>{
10587
10628
  setOpen(false);
10588
10629
  };
10589
10630
  return (()=>{
10590
- var _el$7 = FloatingDock_tmpl$5(), _el$9 = _el$7.firstChild;
10631
+ var _el$7 = _tmpl$6(), _el$9 = _el$7.firstChild;
10591
10632
  (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__.Show, {
10592
10633
  get when () {
10593
10634
  return open();
@@ -10599,7 +10640,7 @@ const FloatingDockMobile = (props)=>{
10599
10640
  return props.items;
10600
10641
  },
10601
10642
  children: (item, idx)=>(()=>{
10602
- var _el$0 = _tmpl$7();
10643
+ var _el$0 = _tmpl$8();
10603
10644
  _el$0.style.setProperty("animation-fill-mode", "backwards");
10604
10645
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$0, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
10605
10646
  get when () {
@@ -10612,13 +10653,13 @@ const FloatingDockMobile = (props)=>{
10612
10653
  },
10613
10654
  get fallback () {
10614
10655
  return (()=>{
10615
- var _el$11 = _tmpl$9();
10656
+ var _el$11 = _tmpl$0();
10616
10657
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, ()=>item.icon);
10617
10658
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10618
- var _v$14 = `${props.cfg.baseSize}px`, _v$15 = `${props.cfg.baseSize}px`, _v$16 = item.title;
10619
- _v$14 !== _p$.e && (null != (_p$.e = _v$14) ? _el$11.style.setProperty("width", _v$14) : _el$11.style.removeProperty("width"));
10620
- _v$15 !== _p$.t && (null != (_p$.t = _v$15) ? _el$11.style.setProperty("height", _v$15) : _el$11.style.removeProperty("height"));
10621
- _v$16 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$11, "title", _p$.a = _v$16);
10659
+ var _v$16 = `${props.cfg.baseSize}px`, _v$17 = `${props.cfg.baseSize}px`, _v$18 = item.title;
10660
+ _v$16 !== _p$.e && (null != (_p$.e = _v$16) ? _el$11.style.setProperty("width", _v$16) : _el$11.style.removeProperty("width"));
10661
+ _v$17 !== _p$.t && (null != (_p$.t = _v$17) ? _el$11.style.setProperty("height", _v$17) : _el$11.style.removeProperty("height"));
10662
+ _v$18 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$11, "title", _p$.a = _v$18);
10622
10663
  return _p$;
10623
10664
  }, {
10624
10665
  e: void 0,
@@ -10629,14 +10670,14 @@ const FloatingDockMobile = (props)=>{
10629
10670
  })();
10630
10671
  },
10631
10672
  get children () {
10632
- var _el$10 = _tmpl$8();
10673
+ var _el$10 = _tmpl$9();
10633
10674
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$10, ()=>item.icon);
10634
10675
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10635
- var _v$10 = item.href, _v$11 = `${props.cfg.baseSize}px`, _v$12 = `${props.cfg.baseSize}px`, _v$13 = item.title;
10636
- _v$10 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "href", _p$.e = _v$10);
10637
- _v$11 !== _p$.t && (null != (_p$.t = _v$11) ? _el$10.style.setProperty("width", _v$11) : _el$10.style.removeProperty("width"));
10638
- _v$12 !== _p$.a && (null != (_p$.a = _v$12) ? _el$10.style.setProperty("height", _v$12) : _el$10.style.removeProperty("height"));
10639
- _v$13 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "title", _p$.o = _v$13);
10676
+ var _v$12 = item.href, _v$13 = `${props.cfg.baseSize}px`, _v$14 = `${props.cfg.baseSize}px`, _v$15 = item.title;
10677
+ _v$12 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "href", _p$.e = _v$12);
10678
+ _v$13 !== _p$.t && (null != (_p$.t = _v$13) ? _el$10.style.setProperty("width", _v$13) : _el$10.style.removeProperty("width"));
10679
+ _v$14 !== _p$.a && (null != (_p$.a = _v$14) ? _el$10.style.setProperty("height", _v$14) : _el$10.style.removeProperty("height"));
10680
+ _v$15 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "title", _p$.o = _v$15);
10640
10681
  return _p$;
10641
10682
  }, {
10642
10683
  e: void 0,
@@ -10649,14 +10690,14 @@ const FloatingDockMobile = (props)=>{
10649
10690
  });
10650
10691
  },
10651
10692
  get children () {
10652
- var _el$1 = _tmpl$6();
10693
+ var _el$1 = _tmpl$7();
10653
10694
  _el$1.$$click = (e)=>handleItemClick(item, e);
10654
10695
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$1, ()=>item.icon);
10655
10696
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10656
- var _v$9 = `${props.cfg.baseSize}px`, _v$0 = `${props.cfg.baseSize}px`, _v$1 = item.title;
10657
- _v$9 !== _p$.e && (null != (_p$.e = _v$9) ? _el$1.style.setProperty("width", _v$9) : _el$1.style.removeProperty("width"));
10658
- _v$0 !== _p$.t && (null != (_p$.t = _v$0) ? _el$1.style.setProperty("height", _v$0) : _el$1.style.removeProperty("height"));
10659
- _v$1 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "title", _p$.a = _v$1);
10697
+ var _v$1 = `${props.cfg.baseSize}px`, _v$10 = `${props.cfg.baseSize}px`, _v$11 = item.title;
10698
+ _v$1 !== _p$.e && (null != (_p$.e = _v$1) ? _el$1.style.setProperty("width", _v$1) : _el$1.style.removeProperty("width"));
10699
+ _v$10 !== _p$.t && (null != (_p$.t = _v$10) ? _el$1.style.setProperty("height", _v$10) : _el$1.style.removeProperty("height"));
10700
+ _v$11 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "title", _p$.a = _v$11);
10660
10701
  return _p$;
10661
10702
  }, {
10662
10703
  e: void 0,
@@ -10675,12 +10716,12 @@ const FloatingDockMobile = (props)=>{
10675
10716
  }
10676
10717
  }), _el$9);
10677
10718
  _el$9.$$click = ()=>setOpen(!open());
10678
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>props.toggleIcon ?? _tmpl$0());
10719
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>props.toggleIcon ?? _tmpl$1());
10679
10720
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10680
- var _v$6 = twMerge("relative block md:hidden", props.class), _v$7 = `${props.cfg.baseSize}px`, _v$8 = `${props.cfg.baseSize}px`;
10681
- _v$6 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$7, _p$.e = _v$6);
10682
- _v$7 !== _p$.t && (null != (_p$.t = _v$7) ? _el$9.style.setProperty("width", _v$7) : _el$9.style.removeProperty("width"));
10683
- _v$8 !== _p$.a && (null != (_p$.a = _v$8) ? _el$9.style.setProperty("height", _v$8) : _el$9.style.removeProperty("height"));
10721
+ var _v$8 = twMerge("relative block md:hidden", props.class), _v$9 = `${props.cfg.baseSize}px`, _v$0 = `${props.cfg.baseSize}px`;
10722
+ _v$8 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$7, _p$.e = _v$8);
10723
+ _v$9 !== _p$.t && (null != (_p$.t = _v$9) ? _el$9.style.setProperty("width", _v$9) : _el$9.style.removeProperty("width"));
10724
+ _v$0 !== _p$.a && (null != (_p$.a = _v$0) ? _el$9.style.setProperty("height", _v$0) : _el$9.style.removeProperty("height"));
10684
10725
  return _p$;
10685
10726
  }, {
10686
10727
  e: void 0,
@@ -10742,6 +10783,9 @@ const FloatingDock = (rawProps)=>{
10742
10783
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$13, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
10743
10784
  get ["data-theme"] () {
10744
10785
  return local.dataTheme;
10786
+ },
10787
+ get style () {
10788
+ return local.style;
10745
10789
  }
10746
10790
  }, others), false, true);
10747
10791
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$13, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
@@ -10797,7 +10841,7 @@ const floating_dock_FloatingDock = FloatingDock;
10797
10841
  "click",
10798
10842
  "mousemove"
10799
10843
  ]);
10800
- var GlassPanel_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="flex w-full items-center justify-between gap-2 px-4 py-3 text-sm font-medium cursor-pointer select-none transition-colors duration-150"><span class="flex items-center gap-2"></span><svg fill=none viewBox="0 0 24 24"stroke=currentColor stroke-width=1.5><path stroke-linecap=round stroke-linejoin=round d="M19 9l-7 7-7-7">'), GlassPanel_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
10844
+ var GlassPanel_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="flex w-full items-center justify-between gap-2 px-4 py-3 text-sm font-medium cursor-pointer select-none transition-colors duration-150 text-base-content/50 hover:text-base-content/80 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"><span class="flex items-center gap-2"></span><svg fill=none viewBox="0 0 24 24"stroke=currentColor stroke-width=1.5><path stroke-linecap=round stroke-linejoin=round d="M19 9l-7 7-7-7">'), GlassPanel_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="grid transition-[grid-template-rows] duration-200 ease-in-out"><div>');
10801
10845
  const BLUR_MAP = {
10802
10846
  none: "",
10803
10847
  sm: "backdrop-blur-sm",
@@ -10820,7 +10864,9 @@ const ACCENT_BORDER = {
10820
10864
  info: "border-l-info",
10821
10865
  success: "border-l-success",
10822
10866
  warning: "border-l-warning",
10823
- error: "border-l-error"
10867
+ error: "border-l-error",
10868
+ neutral: "border-l-neutral",
10869
+ ghost: "border-l-transparent"
10824
10870
  };
10825
10871
  const GlassPanel = (props)=>{
10826
10872
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
@@ -10841,6 +10887,7 @@ const GlassPanel = (props)=>{
10841
10887
  "dataTheme",
10842
10888
  "style"
10843
10889
  ]);
10890
+ const contentId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
10844
10891
  const blur = ()=>local.blur ?? "none";
10845
10892
  const size = ()=>local.size ?? "md";
10846
10893
  const isControlled = ()=>void 0 !== local.open;
@@ -10868,12 +10915,9 @@ const GlassPanel = (props)=>{
10868
10915
  if (local.glow) base["box-shadow"] = "inset 0 1px 0 color-mix(in srgb, var(--color-base-content) 5%, transparent)";
10869
10916
  return base;
10870
10917
  };
10871
- const contentClasses = ()=>twMerge(SIZE_PADDING[size()], clsx({
10872
- "animate-collapse-open": local.collapsible && isOpen(),
10873
- "animate-collapse-close": local.collapsible && !isOpen()
10874
- }));
10918
+ const contentClasses = ()=>twMerge(SIZE_PADDING[size()]);
10875
10919
  return (()=>{
10876
- var _el$ = GlassPanel_tmpl$2();
10920
+ var _el$ = GlassPanel_tmpl$2(), _el$5 = _el$.firstChild, _el$6 = _el$5.firstChild;
10877
10921
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
10878
10922
  get ["class"] () {
10879
10923
  return containerClasses();
@@ -10892,13 +10936,7 @@ const GlassPanel = (props)=>{
10892
10936
  get children () {
10893
10937
  var _el$2 = GlassPanel_tmpl$(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10894
10938
  _el$2.$$click = handleToggle;
10895
- _el$2.addEventListener("mouseleave", (e)=>{
10896
- e.currentTarget.style.color = "color-mix(in srgb, var(--color-base-content) 50%, transparent)";
10897
- });
10898
- _el$2.addEventListener("mouseenter", (e)=>{
10899
- e.currentTarget.style.color = "color-mix(in srgb, var(--color-base-content) 80%, transparent)";
10900
- });
10901
- _el$2.style.setProperty("color", "color-mix(in srgb, var(--color-base-content) 50%, transparent)");
10939
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-controls", contentId);
10902
10940
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
10903
10941
  get when () {
10904
10942
  return local.icon;
@@ -10921,18 +10959,18 @@ const GlassPanel = (props)=>{
10921
10959
  });
10922
10960
  return _el$2;
10923
10961
  }
10924
- }), null);
10925
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
10926
- get when () {
10927
- return !local.collapsible || isOpen();
10928
- },
10929
- get children () {
10930
- var _el$5 = GlassPanel_tmpl$2();
10931
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, ()=>local.children);
10932
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$5, contentClasses()));
10933
- return _el$5;
10934
- }
10935
- }), null);
10962
+ }), _el$5);
10963
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "id", contentId);
10964
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.children);
10965
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10966
+ var _v$3 = !local.collapsible || isOpen() ? "1fr" : "0fr", _v$4 = `overflow-hidden ${contentClasses()}`;
10967
+ _v$3 !== _p$.e && (null != (_p$.e = _v$3) ? _el$5.style.setProperty("grid-template-rows", _v$3) : _el$5.style.removeProperty("grid-template-rows"));
10968
+ _v$4 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.t = _v$4);
10969
+ return _p$;
10970
+ }, {
10971
+ e: void 0,
10972
+ t: void 0
10973
+ });
10936
10974
  return _el$;
10937
10975
  })();
10938
10976
  };
@@ -16174,7 +16212,7 @@ const steps_Steps = Object.assign(Steps, {
16174
16212
  Step: steps_Step
16175
16213
  });
16176
16214
  const steps = steps_Steps;
16177
- var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><ellipse></svg>", false, true, false), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle></svg>", false, true, false), SvgBackground_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=0 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=0 r=120></svg>", false, true, false), SvgBackground_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=400 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=400 r=120></svg>", false, true, false), SvgBackground_tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=200 r=70 opacity=0.6></svg>", false, true, false), SvgBackground_tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=0 r=100></svg>", false, true, false), SvgBackground_tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=200 r=100></svg>", false, true, false), SvgBackground_tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=400 r=100></svg>", false, true, false), _tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class=hidden><svg viewBox="0 0 400 400"xmlns=http://www.w3.org/2000/svg><rect width=400 height=400></rect></svg></div><canvas></canvas><div class="relative z-10 h-full w-full">'), _tmpl$10 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
16215
+ var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><ellipse></svg>", false, true, false), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle></svg>", false, true, false), SvgBackground_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=0 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=0 r=120></svg>", false, true, false), SvgBackground_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=400 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=400 r=120></svg>", false, true, false), SvgBackground_tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=200 r=70 opacity=0.6></svg>", false, true, false), SvgBackground_tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=0 r=100></svg>", false, true, false), SvgBackground_tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=200 r=100></svg>", false, true, false), SvgBackground_tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=400 r=100></svg>", false, true, false), SvgBackground_tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class=hidden><svg viewBox="0 0 400 400"xmlns=http://www.w3.org/2000/svg><rect width=400 height=400></rect></svg></div><canvas></canvas><div class="relative z-10 h-full w-full">'), _tmpl$10 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
16178
16216
  function SvgBackground_hexToRgb(hex) {
16179
16217
  hex = hex.replace(/^#/, "");
16180
16218
  const bigint = Number.parseInt(hex, 16);
@@ -16549,7 +16587,7 @@ function SvgBackground(props) {
16549
16587
  };
16550
16588
  };
16551
16589
  return (()=>{
16552
- var _el$14 = _tmpl$1(), _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$15.nextSibling, _el$19 = _el$18.nextSibling;
16590
+ var _el$14 = SvgBackground_tmpl$1(), _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$15.nextSibling, _el$19 = _el$18.nextSibling;
16553
16591
  var _ref$ = containerRef;
16554
16592
  "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$14) : containerRef = _el$14;
16555
16593
  var _ref$2 = svgRef;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.143",
3
+ "version": "0.0.145",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",