@pathscale/ui 0.0.148 → 0.0.150
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 +183 -109
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10420,80 +10420,55 @@ function mapRange(value, inMin, inMax, outMin, outMax) {
|
|
|
10420
10420
|
const t = Math.max(0, Math.min(1, (value - inMin) / (inMax - inMin)));
|
|
10421
10421
|
return outMin + t * (outMax - outMin);
|
|
10422
10422
|
}
|
|
10423
|
-
const
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10423
|
+
const TOOLTIP_OFFSET = 8;
|
|
10424
|
+
function computeTooltipPos(rect, dir) {
|
|
10425
|
+
const cx = rect.left + rect.width / 2;
|
|
10426
|
+
const cy = rect.top + rect.height / 2;
|
|
10427
|
+
switch(dir){
|
|
10428
|
+
case "top":
|
|
10429
|
+
return {
|
|
10430
|
+
left: `${cx}px`,
|
|
10431
|
+
top: `${rect.top - TOOLTIP_OFFSET}px`
|
|
10432
|
+
};
|
|
10433
|
+
case "bottom":
|
|
10434
|
+
return {
|
|
10435
|
+
left: `${cx}px`,
|
|
10436
|
+
top: `${rect.bottom + TOOLTIP_OFFSET}px`
|
|
10437
|
+
};
|
|
10438
|
+
case "left":
|
|
10439
|
+
return {
|
|
10440
|
+
left: `${rect.left - TOOLTIP_OFFSET}px`,
|
|
10441
|
+
top: `${cy}px`
|
|
10442
|
+
};
|
|
10443
|
+
case "right":
|
|
10444
|
+
return {
|
|
10445
|
+
left: `${rect.right + TOOLTIP_OFFSET}px`,
|
|
10446
|
+
top: `${cy}px`
|
|
10447
|
+
};
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
const TOOLTIP_TRANSFORM = {
|
|
10451
|
+
top: "translate(-50%, -100%)",
|
|
10452
|
+
bottom: "translate(-50%, 0)",
|
|
10453
|
+
left: "translate(-100%, -50%)",
|
|
10454
|
+
right: "translate(0, -50%)"
|
|
10428
10455
|
};
|
|
10429
10456
|
const FloatingDock_DockItem = (props)=>{
|
|
10430
10457
|
let wrapRef;
|
|
10431
10458
|
let iconRef;
|
|
10432
10459
|
const [hovered, setHovered] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
10460
|
+
const [tooltipStyle, setTooltipStyle] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)({
|
|
10461
|
+
top: "0",
|
|
10462
|
+
left: "0"
|
|
10463
|
+
});
|
|
10433
10464
|
const cfg = props.cfg;
|
|
10434
|
-
const sW = createSpring(cfg.baseSize, cfg.springOpts);
|
|
10435
|
-
const sH = createSpring(cfg.baseSize, cfg.springOpts);
|
|
10436
|
-
const sIW = createSpring(cfg.iconSize, cfg.springOpts);
|
|
10437
|
-
const sIH = createSpring(cfg.iconSize, cfg.springOpts);
|
|
10438
|
-
let rafId;
|
|
10439
|
-
let prevTime = 0;
|
|
10440
|
-
let lastMousePos = 1 / 0;
|
|
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;
|
|
10459
|
-
if (wrapRef) {
|
|
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);
|
|
10470
|
-
}
|
|
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();
|
|
10485
|
-
rafId = requestAnimationFrame(tick);
|
|
10486
|
-
};
|
|
10487
10465
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
|
|
10488
|
-
if (
|
|
10489
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
10490
|
-
props.mousePos();
|
|
10491
|
-
startLoop();
|
|
10492
|
-
});
|
|
10493
|
-
});
|
|
10494
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
10495
|
-
stopLoop();
|
|
10466
|
+
if (wrapRef && iconRef) props.registerRefs(wrapRef, iconRef);
|
|
10496
10467
|
});
|
|
10468
|
+
const handleMouseEnter = ()=>{
|
|
10469
|
+
if (wrapRef) setTooltipStyle(computeTooltipPos(wrapRef.getBoundingClientRect(), cfg.tooltipDir));
|
|
10470
|
+
setHovered(true);
|
|
10471
|
+
};
|
|
10497
10472
|
const handleClick = (e)=>{
|
|
10498
10473
|
if (props.item.onClick) {
|
|
10499
10474
|
e.preventDefault();
|
|
@@ -10503,10 +10478,7 @@ const FloatingDock_DockItem = (props)=>{
|
|
|
10503
10478
|
const inner = (()=>{
|
|
10504
10479
|
var _el$ = FloatingDock_tmpl$2(), _el$3 = _el$.firstChild;
|
|
10505
10480
|
_el$.addEventListener("mouseleave", ()=>setHovered(false));
|
|
10506
|
-
_el$.addEventListener("mouseenter",
|
|
10507
|
-
setHovered(true);
|
|
10508
|
-
startLoop();
|
|
10509
|
-
});
|
|
10481
|
+
_el$.addEventListener("mouseenter", handleMouseEnter);
|
|
10510
10482
|
var _ref$ = wrapRef;
|
|
10511
10483
|
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : wrapRef = _el$;
|
|
10512
10484
|
(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, {
|
|
@@ -10514,20 +10486,36 @@ const FloatingDock_DockItem = (props)=>{
|
|
|
10514
10486
|
return hovered();
|
|
10515
10487
|
},
|
|
10516
10488
|
get children () {
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10489
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Portal, {
|
|
10490
|
+
get children () {
|
|
10491
|
+
var _el$2 = FloatingDock_tmpl$();
|
|
10492
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>props.item.title);
|
|
10493
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10494
|
+
var _v$ = twMerge("fixed w-fit rounded-md border border-base-300 bg-base-100 px-2 py-0.5 text-xs whitespace-pre text-base-content animate-fade-in z-[9999] pointer-events-none", cfg.tooltipClass), _v$2 = tooltipStyle().top, _v$3 = tooltipStyle().left, _v$4 = TOOLTIP_TRANSFORM[cfg.tooltipDir];
|
|
10495
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.e = _v$);
|
|
10496
|
+
_v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$2.style.setProperty("top", _v$2) : _el$2.style.removeProperty("top"));
|
|
10497
|
+
_v$3 !== _p$.a && (null != (_p$.a = _v$3) ? _el$2.style.setProperty("left", _v$3) : _el$2.style.removeProperty("left"));
|
|
10498
|
+
_v$4 !== _p$.o && (null != (_p$.o = _v$4) ? _el$2.style.setProperty("transform", _v$4) : _el$2.style.removeProperty("transform"));
|
|
10499
|
+
return _p$;
|
|
10500
|
+
}, {
|
|
10501
|
+
e: void 0,
|
|
10502
|
+
t: void 0,
|
|
10503
|
+
a: void 0,
|
|
10504
|
+
o: void 0
|
|
10505
|
+
});
|
|
10506
|
+
return _el$2;
|
|
10507
|
+
}
|
|
10508
|
+
});
|
|
10521
10509
|
}
|
|
10522
10510
|
}), _el$3);
|
|
10523
10511
|
var _ref$2 = iconRef;
|
|
10524
10512
|
"function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$3) : iconRef = _el$3;
|
|
10525
10513
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>props.item.icon);
|
|
10526
10514
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10527
|
-
var _v$ = twMerge("relative flex items-center justify-center rounded-full bg-base-200 transition-[opacity,transform] duration-150 hover:opacity-100 active:scale-90 active:duration-75", "opacity-80", cfg.itemClass), _v$
|
|
10528
|
-
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
10529
|
-
_v$
|
|
10530
|
-
_v$
|
|
10515
|
+
var _v$5 = twMerge("relative flex items-center justify-center rounded-full bg-base-200 transition-[opacity,transform] duration-150 hover:opacity-100 active:scale-90 active:duration-75", "opacity-80", cfg.itemClass), _v$6 = `${cfg.baseSize}px`, _v$7 = `${cfg.baseSize}px`;
|
|
10516
|
+
_v$5 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$5);
|
|
10517
|
+
_v$6 !== _p$.t && (null != (_p$.t = _v$6) ? _el$.style.setProperty("width", _v$6) : _el$.style.removeProperty("width"));
|
|
10518
|
+
_v$7 !== _p$.a && (null != (_p$.a = _v$7) ? _el$.style.setProperty("height", _v$7) : _el$.style.removeProperty("height"));
|
|
10531
10519
|
return _p$;
|
|
10532
10520
|
}, {
|
|
10533
10521
|
e: void 0,
|
|
@@ -10550,9 +10538,9 @@ const FloatingDock_DockItem = (props)=>{
|
|
|
10550
10538
|
var _el$5 = FloatingDock_tmpl$4();
|
|
10551
10539
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, inner);
|
|
10552
10540
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10553
|
-
var _v$
|
|
10554
|
-
_v$
|
|
10555
|
-
_v$
|
|
10541
|
+
var _v$8 = props.item.href, _v$9 = props.item.title;
|
|
10542
|
+
_v$8 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "href", _p$.e = _v$8);
|
|
10543
|
+
_v$9 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "aria-label", _p$.t = _v$9);
|
|
10556
10544
|
return _p$;
|
|
10557
10545
|
}, {
|
|
10558
10546
|
e: void 0,
|
|
@@ -10574,6 +10562,82 @@ const FloatingDock_DockItem = (props)=>{
|
|
|
10574
10562
|
const FloatingDockDesktop = (props)=>{
|
|
10575
10563
|
const [mousePos, setMousePos] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(1 / 0);
|
|
10576
10564
|
const isH = ()=>"horizontal" === props.cfg.orientation;
|
|
10565
|
+
const cfg = props.cfg;
|
|
10566
|
+
const itemSprings = [];
|
|
10567
|
+
let rafId;
|
|
10568
|
+
let prevTime = 0;
|
|
10569
|
+
let lastMousePos = 1 / 0;
|
|
10570
|
+
let loopRunning = false;
|
|
10571
|
+
const startLoop = ()=>{
|
|
10572
|
+
if (loopRunning || !cfg.magnify) return;
|
|
10573
|
+
loopRunning = true;
|
|
10574
|
+
prevTime = 0;
|
|
10575
|
+
rafId = requestAnimationFrame(tick);
|
|
10576
|
+
};
|
|
10577
|
+
const stopLoop = ()=>{
|
|
10578
|
+
if (void 0 !== rafId) cancelAnimationFrame(rafId);
|
|
10579
|
+
rafId = void 0;
|
|
10580
|
+
loopRunning = false;
|
|
10581
|
+
};
|
|
10582
|
+
const tick = (time)=>{
|
|
10583
|
+
const dt = prevTime ? Math.min((time - prevTime) / 1000, 0.05) : 1 / 60;
|
|
10584
|
+
prevTime = time;
|
|
10585
|
+
const mp = mousePos();
|
|
10586
|
+
if (mp !== lastMousePos) {
|
|
10587
|
+
lastMousePos = mp;
|
|
10588
|
+
const centers = [];
|
|
10589
|
+
for(let i = 0; i < itemSprings.length; i++){
|
|
10590
|
+
const wrap = itemSprings[i].wrapRef;
|
|
10591
|
+
if (wrap) {
|
|
10592
|
+
const b = wrap.getBoundingClientRect();
|
|
10593
|
+
centers[i] = isH() ? b.x + b.width / 2 : b.y + b.height / 2;
|
|
10594
|
+
} else centers[i] = 0;
|
|
10595
|
+
}
|
|
10596
|
+
for(let i = 0; i < itemSprings.length; i++){
|
|
10597
|
+
const s = itemSprings[i];
|
|
10598
|
+
if (!s.wrapRef) continue;
|
|
10599
|
+
const dist = Math.abs(mp - centers[i]);
|
|
10600
|
+
const ts = mp === 1 / 0 ? cfg.baseSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverSize, cfg.baseSize);
|
|
10601
|
+
const ti = mp === 1 / 0 ? cfg.iconSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverIconSize, cfg.iconSize);
|
|
10602
|
+
s.sW.set(ts);
|
|
10603
|
+
s.sH.set(ts);
|
|
10604
|
+
s.sIW.set(ti);
|
|
10605
|
+
s.sIH.set(ti);
|
|
10606
|
+
}
|
|
10607
|
+
}
|
|
10608
|
+
let allSettled = true;
|
|
10609
|
+
for(let i = 0; i < itemSprings.length; i++){
|
|
10610
|
+
const s = itemSprings[i];
|
|
10611
|
+
s.sW.step(dt);
|
|
10612
|
+
s.sH.step(dt);
|
|
10613
|
+
s.sIW.step(dt);
|
|
10614
|
+
s.sIH.step(dt);
|
|
10615
|
+
if (allSettled && !(s.sW.settled() && s.sH.settled() && s.sIW.settled() && s.sIH.settled())) allSettled = false;
|
|
10616
|
+
}
|
|
10617
|
+
for(let i = 0; i < itemSprings.length; i++){
|
|
10618
|
+
const s = itemSprings[i];
|
|
10619
|
+
if (s.wrapRef) {
|
|
10620
|
+
s.wrapRef.style.width = `${s.sW.get()}px`;
|
|
10621
|
+
s.wrapRef.style.height = `${s.sH.get()}px`;
|
|
10622
|
+
}
|
|
10623
|
+
if (s.iconRef) {
|
|
10624
|
+
s.iconRef.style.width = `${s.sIW.get()}px`;
|
|
10625
|
+
s.iconRef.style.height = `${s.sIH.get()}px`;
|
|
10626
|
+
}
|
|
10627
|
+
}
|
|
10628
|
+
if (allSettled) return void stopLoop();
|
|
10629
|
+
rafId = requestAnimationFrame(tick);
|
|
10630
|
+
};
|
|
10631
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
|
|
10632
|
+
if (!cfg.magnify) return;
|
|
10633
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
10634
|
+
mousePos();
|
|
10635
|
+
startLoop();
|
|
10636
|
+
});
|
|
10637
|
+
});
|
|
10638
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
10639
|
+
stopLoop();
|
|
10640
|
+
});
|
|
10577
10641
|
return (()=>{
|
|
10578
10642
|
var _el$6 = FloatingDock_tmpl$5();
|
|
10579
10643
|
_el$6.addEventListener("mouseleave", ()=>setMousePos(1 / 0));
|
|
@@ -10582,28 +10646,38 @@ const FloatingDockDesktop = (props)=>{
|
|
|
10582
10646
|
get each () {
|
|
10583
10647
|
return props.items;
|
|
10584
10648
|
},
|
|
10585
|
-
children: (item
|
|
10649
|
+
children: (item, idx)=>{
|
|
10650
|
+
const springs = {
|
|
10651
|
+
sW: createSpring(cfg.baseSize, cfg.springOpts),
|
|
10652
|
+
sH: createSpring(cfg.baseSize, cfg.springOpts),
|
|
10653
|
+
sIW: createSpring(cfg.iconSize, cfg.springOpts),
|
|
10654
|
+
sIH: createSpring(cfg.iconSize, cfg.springOpts)
|
|
10655
|
+
};
|
|
10656
|
+
itemSprings[idx()] = springs;
|
|
10657
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FloatingDock_DockItem, {
|
|
10586
10658
|
item: item,
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10659
|
+
cfg: cfg,
|
|
10660
|
+
registerRefs: (wrap, icon)=>{
|
|
10661
|
+
springs.wrapRef = wrap;
|
|
10662
|
+
springs.iconRef = icon;
|
|
10590
10663
|
}
|
|
10591
|
-
})
|
|
10664
|
+
});
|
|
10665
|
+
}
|
|
10592
10666
|
}));
|
|
10593
10667
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10594
|
-
var _v$
|
|
10668
|
+
var _v$0 = 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$1 = {
|
|
10595
10669
|
display: "flex",
|
|
10596
10670
|
"flex-direction": isH() ? "row" : "column",
|
|
10597
|
-
gap: `${
|
|
10671
|
+
gap: `${cfg.gap}px`,
|
|
10598
10672
|
...isH() ? {
|
|
10599
|
-
height: `${
|
|
10673
|
+
height: `${cfg.baseSize + 16}px`
|
|
10600
10674
|
} : {
|
|
10601
|
-
width: `${
|
|
10675
|
+
width: `${cfg.baseSize + 16}px`
|
|
10602
10676
|
},
|
|
10603
10677
|
overflow: "visible"
|
|
10604
10678
|
};
|
|
10605
|
-
_v$
|
|
10606
|
-
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$6, _v$
|
|
10679
|
+
_v$0 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.e = _v$0);
|
|
10680
|
+
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$6, _v$1, _p$.t);
|
|
10607
10681
|
return _p$;
|
|
10608
10682
|
}, {
|
|
10609
10683
|
e: void 0,
|
|
@@ -10656,10 +10730,10 @@ const FloatingDockMobile = (props)=>{
|
|
|
10656
10730
|
var _el$11 = _tmpl$0();
|
|
10657
10731
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, ()=>item.icon);
|
|
10658
10732
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10659
|
-
var _v$
|
|
10660
|
-
_v$
|
|
10661
|
-
_v$
|
|
10662
|
-
_v$
|
|
10733
|
+
var _v$20 = `${props.cfg.baseSize}px`, _v$21 = `${props.cfg.baseSize}px`, _v$22 = item.title;
|
|
10734
|
+
_v$20 !== _p$.e && (null != (_p$.e = _v$20) ? _el$11.style.setProperty("width", _v$20) : _el$11.style.removeProperty("width"));
|
|
10735
|
+
_v$21 !== _p$.t && (null != (_p$.t = _v$21) ? _el$11.style.setProperty("height", _v$21) : _el$11.style.removeProperty("height"));
|
|
10736
|
+
_v$22 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$11, "title", _p$.a = _v$22);
|
|
10663
10737
|
return _p$;
|
|
10664
10738
|
}, {
|
|
10665
10739
|
e: void 0,
|
|
@@ -10673,11 +10747,11 @@ const FloatingDockMobile = (props)=>{
|
|
|
10673
10747
|
var _el$10 = _tmpl$9();
|
|
10674
10748
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$10, ()=>item.icon);
|
|
10675
10749
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10676
|
-
var _v$
|
|
10677
|
-
_v$
|
|
10678
|
-
_v$
|
|
10679
|
-
_v$
|
|
10680
|
-
_v$
|
|
10750
|
+
var _v$16 = item.href, _v$17 = `${props.cfg.baseSize}px`, _v$18 = `${props.cfg.baseSize}px`, _v$19 = item.title;
|
|
10751
|
+
_v$16 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "href", _p$.e = _v$16);
|
|
10752
|
+
_v$17 !== _p$.t && (null != (_p$.t = _v$17) ? _el$10.style.setProperty("width", _v$17) : _el$10.style.removeProperty("width"));
|
|
10753
|
+
_v$18 !== _p$.a && (null != (_p$.a = _v$18) ? _el$10.style.setProperty("height", _v$18) : _el$10.style.removeProperty("height"));
|
|
10754
|
+
_v$19 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "title", _p$.o = _v$19);
|
|
10681
10755
|
return _p$;
|
|
10682
10756
|
}, {
|
|
10683
10757
|
e: void 0,
|
|
@@ -10694,10 +10768,10 @@ const FloatingDockMobile = (props)=>{
|
|
|
10694
10768
|
_el$1.$$click = (e)=>handleItemClick(item, e);
|
|
10695
10769
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$1, ()=>item.icon);
|
|
10696
10770
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10697
|
-
var _v$
|
|
10698
|
-
_v$
|
|
10699
|
-
_v$
|
|
10700
|
-
_v$
|
|
10771
|
+
var _v$13 = `${props.cfg.baseSize}px`, _v$14 = `${props.cfg.baseSize}px`, _v$15 = item.title;
|
|
10772
|
+
_v$13 !== _p$.e && (null != (_p$.e = _v$13) ? _el$1.style.setProperty("width", _v$13) : _el$1.style.removeProperty("width"));
|
|
10773
|
+
_v$14 !== _p$.t && (null != (_p$.t = _v$14) ? _el$1.style.setProperty("height", _v$14) : _el$1.style.removeProperty("height"));
|
|
10774
|
+
_v$15 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "title", _p$.a = _v$15);
|
|
10701
10775
|
return _p$;
|
|
10702
10776
|
}, {
|
|
10703
10777
|
e: void 0,
|
|
@@ -10718,10 +10792,10 @@ const FloatingDockMobile = (props)=>{
|
|
|
10718
10792
|
_el$9.$$click = ()=>setOpen(!open());
|
|
10719
10793
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>props.toggleIcon ?? _tmpl$1());
|
|
10720
10794
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10721
|
-
var _v$
|
|
10722
|
-
_v$
|
|
10723
|
-
_v$
|
|
10724
|
-
_v$
|
|
10795
|
+
var _v$10 = twMerge("relative block md:hidden", props.class), _v$11 = `${props.cfg.baseSize}px`, _v$12 = `${props.cfg.baseSize}px`;
|
|
10796
|
+
_v$10 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$7, _p$.e = _v$10);
|
|
10797
|
+
_v$11 !== _p$.t && (null != (_p$.t = _v$11) ? _el$9.style.setProperty("width", _v$11) : _el$9.style.removeProperty("width"));
|
|
10798
|
+
_v$12 !== _p$.a && (null != (_p$.a = _v$12) ? _el$9.style.setProperty("height", _v$12) : _el$9.style.removeProperty("height"));
|
|
10725
10799
|
return _p$;
|
|
10726
10800
|
}, {
|
|
10727
10801
|
e: void 0,
|