@pathscale/ui 0.0.143 → 0.0.144

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,57 @@ 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
+ startLoop();
10464
10489
  });
10465
10490
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
10466
- if (void 0 !== rafId) cancelAnimationFrame(rafId);
10491
+ stopLoop();
10467
10492
  });
10468
10493
  const handleClick = (e)=>{
10469
10494
  if (props.item.onClick) {
@@ -10474,7 +10499,10 @@ const FloatingDock_DockItem = (props)=>{
10474
10499
  const inner = (()=>{
10475
10500
  var _el$ = FloatingDock_tmpl$2(), _el$3 = _el$.firstChild;
10476
10501
  _el$.addEventListener("mouseleave", ()=>setHovered(false));
10477
- _el$.addEventListener("mouseenter", ()=>setHovered(true));
10502
+ _el$.addEventListener("mouseenter", ()=>{
10503
+ setHovered(true);
10504
+ startLoop();
10505
+ });
10478
10506
  var _ref$ = wrapRef;
10479
10507
  "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : wrapRef = _el$;
10480
10508
  (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 +10545,15 @@ const FloatingDock_DockItem = (props)=>{
10517
10545
  get children () {
10518
10546
  var _el$5 = FloatingDock_tmpl$4();
10519
10547
  (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));
10548
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10549
+ var _v$4 = props.item.href, _v$5 = props.item.title;
10550
+ _v$4 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "href", _p$.e = _v$4);
10551
+ _v$5 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "aria-label", _p$.t = _v$5);
10552
+ return _p$;
10553
+ }, {
10554
+ e: void 0,
10555
+ t: void 0
10556
+ });
10521
10557
  return _el$5;
10522
10558
  }
10523
10559
  });
@@ -10526,6 +10562,7 @@ const FloatingDock_DockItem = (props)=>{
10526
10562
  var _el$4 = FloatingDock_tmpl$3();
10527
10563
  _el$4.$$click = handleClick;
10528
10564
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, inner);
10565
+ (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
10566
  return _el$4;
10530
10567
  }
10531
10568
  });
@@ -10534,7 +10571,7 @@ const FloatingDockDesktop = (props)=>{
10534
10571
  const [mousePos, setMousePos] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(1 / 0);
10535
10572
  const isH = ()=>"horizontal" === props.cfg.orientation;
10536
10573
  return (()=>{
10537
- var _el$6 = FloatingDock_tmpl$();
10574
+ var _el$6 = FloatingDock_tmpl$5();
10538
10575
  _el$6.addEventListener("mouseleave", ()=>setMousePos(1 / 0));
10539
10576
  _el$6.$$mousemove = (e)=>setMousePos(isH() ? e.clientX : e.clientY);
10540
10577
  (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 +10587,7 @@ const FloatingDockDesktop = (props)=>{
10550
10587
  })
10551
10588
  }));
10552
10589
  (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 = {
10590
+ 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
10591
  display: "flex",
10555
10592
  "flex-direction": isH() ? "row" : "column",
10556
10593
  gap: `${props.cfg.gap}px`,
@@ -10561,8 +10598,8 @@ const FloatingDockDesktop = (props)=>{
10561
10598
  },
10562
10599
  overflow: "visible"
10563
10600
  };
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);
10601
+ _v$6 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.e = _v$6);
10602
+ _p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$6, _v$7, _p$.t);
10566
10603
  return _p$;
10567
10604
  }, {
10568
10605
  e: void 0,
@@ -10587,7 +10624,7 @@ const FloatingDockMobile = (props)=>{
10587
10624
  setOpen(false);
10588
10625
  };
10589
10626
  return (()=>{
10590
- var _el$7 = FloatingDock_tmpl$5(), _el$9 = _el$7.firstChild;
10627
+ var _el$7 = _tmpl$6(), _el$9 = _el$7.firstChild;
10591
10628
  (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
10629
  get when () {
10593
10630
  return open();
@@ -10599,7 +10636,7 @@ const FloatingDockMobile = (props)=>{
10599
10636
  return props.items;
10600
10637
  },
10601
10638
  children: (item, idx)=>(()=>{
10602
- var _el$0 = _tmpl$7();
10639
+ var _el$0 = _tmpl$8();
10603
10640
  _el$0.style.setProperty("animation-fill-mode", "backwards");
10604
10641
  (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
10642
  get when () {
@@ -10612,13 +10649,13 @@ const FloatingDockMobile = (props)=>{
10612
10649
  },
10613
10650
  get fallback () {
10614
10651
  return (()=>{
10615
- var _el$11 = _tmpl$9();
10652
+ var _el$11 = _tmpl$0();
10616
10653
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, ()=>item.icon);
10617
10654
  (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);
10655
+ var _v$16 = `${props.cfg.baseSize}px`, _v$17 = `${props.cfg.baseSize}px`, _v$18 = item.title;
10656
+ _v$16 !== _p$.e && (null != (_p$.e = _v$16) ? _el$11.style.setProperty("width", _v$16) : _el$11.style.removeProperty("width"));
10657
+ _v$17 !== _p$.t && (null != (_p$.t = _v$17) ? _el$11.style.setProperty("height", _v$17) : _el$11.style.removeProperty("height"));
10658
+ _v$18 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$11, "title", _p$.a = _v$18);
10622
10659
  return _p$;
10623
10660
  }, {
10624
10661
  e: void 0,
@@ -10629,14 +10666,14 @@ const FloatingDockMobile = (props)=>{
10629
10666
  })();
10630
10667
  },
10631
10668
  get children () {
10632
- var _el$10 = _tmpl$8();
10669
+ var _el$10 = _tmpl$9();
10633
10670
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$10, ()=>item.icon);
10634
10671
  (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);
10672
+ var _v$12 = item.href, _v$13 = `${props.cfg.baseSize}px`, _v$14 = `${props.cfg.baseSize}px`, _v$15 = item.title;
10673
+ _v$12 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "href", _p$.e = _v$12);
10674
+ _v$13 !== _p$.t && (null != (_p$.t = _v$13) ? _el$10.style.setProperty("width", _v$13) : _el$10.style.removeProperty("width"));
10675
+ _v$14 !== _p$.a && (null != (_p$.a = _v$14) ? _el$10.style.setProperty("height", _v$14) : _el$10.style.removeProperty("height"));
10676
+ _v$15 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "title", _p$.o = _v$15);
10640
10677
  return _p$;
10641
10678
  }, {
10642
10679
  e: void 0,
@@ -10649,14 +10686,14 @@ const FloatingDockMobile = (props)=>{
10649
10686
  });
10650
10687
  },
10651
10688
  get children () {
10652
- var _el$1 = _tmpl$6();
10689
+ var _el$1 = _tmpl$7();
10653
10690
  _el$1.$$click = (e)=>handleItemClick(item, e);
10654
10691
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$1, ()=>item.icon);
10655
10692
  (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);
10693
+ var _v$1 = `${props.cfg.baseSize}px`, _v$10 = `${props.cfg.baseSize}px`, _v$11 = item.title;
10694
+ _v$1 !== _p$.e && (null != (_p$.e = _v$1) ? _el$1.style.setProperty("width", _v$1) : _el$1.style.removeProperty("width"));
10695
+ _v$10 !== _p$.t && (null != (_p$.t = _v$10) ? _el$1.style.setProperty("height", _v$10) : _el$1.style.removeProperty("height"));
10696
+ _v$11 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "title", _p$.a = _v$11);
10660
10697
  return _p$;
10661
10698
  }, {
10662
10699
  e: void 0,
@@ -10675,12 +10712,12 @@ const FloatingDockMobile = (props)=>{
10675
10712
  }
10676
10713
  }), _el$9);
10677
10714
  _el$9.$$click = ()=>setOpen(!open());
10678
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>props.toggleIcon ?? _tmpl$0());
10715
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>props.toggleIcon ?? _tmpl$1());
10679
10716
  (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"));
10717
+ var _v$8 = twMerge("relative block md:hidden", props.class), _v$9 = `${props.cfg.baseSize}px`, _v$0 = `${props.cfg.baseSize}px`;
10718
+ _v$8 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$7, _p$.e = _v$8);
10719
+ _v$9 !== _p$.t && (null != (_p$.t = _v$9) ? _el$9.style.setProperty("width", _v$9) : _el$9.style.removeProperty("width"));
10720
+ _v$0 !== _p$.a && (null != (_p$.a = _v$0) ? _el$9.style.setProperty("height", _v$0) : _el$9.style.removeProperty("height"));
10684
10721
  return _p$;
10685
10722
  }, {
10686
10723
  e: void 0,
@@ -10742,6 +10779,9 @@ const FloatingDock = (rawProps)=>{
10742
10779
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$13, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
10743
10780
  get ["data-theme"] () {
10744
10781
  return local.dataTheme;
10782
+ },
10783
+ get style () {
10784
+ return local.style;
10745
10785
  }
10746
10786
  }, others), false, true);
10747
10787
  (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 +10837,7 @@ const floating_dock_FloatingDock = FloatingDock;
10797
10837
  "click",
10798
10838
  "mousemove"
10799
10839
  ]);
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>");
10840
+ 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
10841
  const BLUR_MAP = {
10802
10842
  none: "",
10803
10843
  sm: "backdrop-blur-sm",
@@ -10820,7 +10860,9 @@ const ACCENT_BORDER = {
10820
10860
  info: "border-l-info",
10821
10861
  success: "border-l-success",
10822
10862
  warning: "border-l-warning",
10823
- error: "border-l-error"
10863
+ error: "border-l-error",
10864
+ neutral: "border-l-neutral",
10865
+ ghost: "border-l-transparent"
10824
10866
  };
10825
10867
  const GlassPanel = (props)=>{
10826
10868
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
@@ -10841,6 +10883,7 @@ const GlassPanel = (props)=>{
10841
10883
  "dataTheme",
10842
10884
  "style"
10843
10885
  ]);
10886
+ const contentId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
10844
10887
  const blur = ()=>local.blur ?? "none";
10845
10888
  const size = ()=>local.size ?? "md";
10846
10889
  const isControlled = ()=>void 0 !== local.open;
@@ -10868,12 +10911,9 @@ const GlassPanel = (props)=>{
10868
10911
  if (local.glow) base["box-shadow"] = "inset 0 1px 0 color-mix(in srgb, var(--color-base-content) 5%, transparent)";
10869
10912
  return base;
10870
10913
  };
10871
- const contentClasses = ()=>twMerge(SIZE_PADDING[size()], clsx({
10872
- "animate-collapse-open": local.collapsible && isOpen(),
10873
- "animate-collapse-close": local.collapsible && !isOpen()
10874
- }));
10914
+ const contentClasses = ()=>twMerge(SIZE_PADDING[size()]);
10875
10915
  return (()=>{
10876
- var _el$ = GlassPanel_tmpl$2();
10916
+ var _el$ = GlassPanel_tmpl$2(), _el$5 = _el$.firstChild, _el$6 = _el$5.firstChild;
10877
10917
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
10878
10918
  get ["class"] () {
10879
10919
  return containerClasses();
@@ -10892,13 +10932,7 @@ const GlassPanel = (props)=>{
10892
10932
  get children () {
10893
10933
  var _el$2 = GlassPanel_tmpl$(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10894
10934
  _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)");
10935
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-controls", contentId);
10902
10936
  (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
10937
  get when () {
10904
10938
  return local.icon;
@@ -10921,18 +10955,18 @@ const GlassPanel = (props)=>{
10921
10955
  });
10922
10956
  return _el$2;
10923
10957
  }
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);
10958
+ }), _el$5);
10959
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "id", contentId);
10960
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.children);
10961
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10962
+ var _v$3 = !local.collapsible || isOpen() ? "1fr" : "0fr", _v$4 = `overflow-hidden ${contentClasses()}`;
10963
+ _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"));
10964
+ _v$4 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.t = _v$4);
10965
+ return _p$;
10966
+ }, {
10967
+ e: void 0,
10968
+ t: void 0
10969
+ });
10936
10970
  return _el$;
10937
10971
  })();
10938
10972
  };
@@ -16174,7 +16208,7 @@ const steps_Steps = Object.assign(Steps, {
16174
16208
  Step: steps_Step
16175
16209
  });
16176
16210
  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">');
16211
+ 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
16212
  function SvgBackground_hexToRgb(hex) {
16179
16213
  hex = hex.replace(/^#/, "");
16180
16214
  const bigint = Number.parseInt(hex, 16);
@@ -16549,7 +16583,7 @@ function SvgBackground(props) {
16549
16583
  };
16550
16584
  };
16551
16585
  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;
16586
+ 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
16587
  var _ref$ = containerRef;
16554
16588
  "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$14) : containerRef = _el$14;
16555
16589
  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.144",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",