@pathscale/ui 0.0.143 → 0.0.146
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,8 +1,6 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
-
import type { IComponentBaseProps, ComponentSize } from "../types";
|
|
3
|
-
export type GlassPanelBlur = "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
2
|
+
import type { IComponentBaseProps, ComponentSize, ComponentColor } from "../types";
|
|
4
3
|
export type GlassPanelProps = IComponentBaseProps & JSX.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
blur?: GlassPanelBlur;
|
|
6
4
|
collapsible?: boolean;
|
|
7
5
|
open?: boolean;
|
|
8
6
|
defaultOpen?: boolean;
|
|
@@ -12,7 +10,7 @@ export type GlassPanelProps = IComponentBaseProps & JSX.HTMLAttributes<HTMLDivEl
|
|
|
12
10
|
size?: ComponentSize;
|
|
13
11
|
transparent?: boolean;
|
|
14
12
|
glow?: boolean;
|
|
15
|
-
accent?:
|
|
13
|
+
accent?: ComponentColor;
|
|
16
14
|
};
|
|
17
15
|
declare const GlassPanel: (props: GlassPanelProps) => JSX.Element;
|
|
18
16
|
export default GlassPanel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, type GlassPanelProps
|
|
1
|
+
export { default, type GlassPanelProps } from "./GlassPanel";
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export type { FloatingDockProps, FloatingDockItem, FloatingDockDirection } from
|
|
|
38
38
|
export { default as Flex } from "./components/flex";
|
|
39
39
|
export { default as GlassPanel } from "./components/glass-panel";
|
|
40
40
|
export { GlowCard, type GlowCardProps } from "./components/glow-card";
|
|
41
|
-
export type { GlassPanelProps
|
|
41
|
+
export type { GlassPanelProps } from "./components/glass-panel";
|
|
42
42
|
export { default as Footer } from "./components/footer";
|
|
43
43
|
export type { FooterProps, FooterTitleProps } from "./components/footer";
|
|
44
44
|
export { FormActions, type FormActionsProps } from "./components/form-actions";
|
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$
|
|
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
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
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
|
-
|
|
10455
|
-
|
|
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
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
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
|
-
|
|
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", ()=>
|
|
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)(()=>
|
|
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$
|
|
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$
|
|
10565
|
-
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$6, _v$
|
|
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 =
|
|
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$
|
|
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$
|
|
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$
|
|
10619
|
-
_v$
|
|
10620
|
-
_v$
|
|
10621
|
-
_v$
|
|
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$
|
|
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$
|
|
10636
|
-
_v$
|
|
10637
|
-
_v$
|
|
10638
|
-
_v$
|
|
10639
|
-
_v$
|
|
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$
|
|
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$
|
|
10657
|
-
_v$
|
|
10658
|
-
_v$
|
|
10659
|
-
_v$
|
|
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$
|
|
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$
|
|
10681
|
-
_v$
|
|
10682
|
-
_v$
|
|
10683
|
-
_v$
|
|
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,15 +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)(
|
|
10801
|
-
const BLUR_MAP = {
|
|
10802
|
-
none: "",
|
|
10803
|
-
sm: "backdrop-blur-sm",
|
|
10804
|
-
md: "backdrop-blur-md",
|
|
10805
|
-
lg: "backdrop-blur-lg",
|
|
10806
|
-
xl: "backdrop-blur-xl",
|
|
10807
|
-
"2xl": "backdrop-blur-2xl"
|
|
10808
|
-
};
|
|
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>');
|
|
10809
10841
|
const SIZE_PADDING = {
|
|
10810
10842
|
xs: "p-2",
|
|
10811
10843
|
sm: "p-3",
|
|
@@ -10820,11 +10852,12 @@ const ACCENT_BORDER = {
|
|
|
10820
10852
|
info: "border-l-info",
|
|
10821
10853
|
success: "border-l-success",
|
|
10822
10854
|
warning: "border-l-warning",
|
|
10823
|
-
error: "border-l-error"
|
|
10855
|
+
error: "border-l-error",
|
|
10856
|
+
neutral: "border-l-neutral",
|
|
10857
|
+
ghost: "border-l-transparent"
|
|
10824
10858
|
};
|
|
10825
10859
|
const GlassPanel = (props)=>{
|
|
10826
10860
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10827
|
-
"blur",
|
|
10828
10861
|
"collapsible",
|
|
10829
10862
|
"open",
|
|
10830
10863
|
"defaultOpen",
|
|
@@ -10841,7 +10874,7 @@ const GlassPanel = (props)=>{
|
|
|
10841
10874
|
"dataTheme",
|
|
10842
10875
|
"style"
|
|
10843
10876
|
]);
|
|
10844
|
-
const
|
|
10877
|
+
const contentId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
10845
10878
|
const size = ()=>local.size ?? "md";
|
|
10846
10879
|
const isControlled = ()=>void 0 !== local.open;
|
|
10847
10880
|
const [internalOpen, setInternalOpen] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.defaultOpen ?? true);
|
|
@@ -10851,9 +10884,7 @@ const GlassPanel = (props)=>{
|
|
|
10851
10884
|
if (!isControlled()) setInternalOpen(next);
|
|
10852
10885
|
local.onToggle?.(next);
|
|
10853
10886
|
};
|
|
10854
|
-
const containerClasses = ()=>twMerge("glass-panel", "rounded-xl", "transition-all duration-200 ease-in-out", clsx({
|
|
10855
|
-
"bg-transparent": local.transparent,
|
|
10856
|
-
[BLUR_MAP[blur()]]: !local.transparent && "none" !== blur(),
|
|
10887
|
+
const containerClasses = ()=>twMerge("glass-panel", "rounded-xl", "backdrop-blur-[2px]", "transition-all duration-200 ease-in-out", clsx({
|
|
10857
10888
|
"border-l-2": !!local.accent,
|
|
10858
10889
|
[ACCENT_BORDER[local.accent ?? ""]]: !!local.accent
|
|
10859
10890
|
}), local.class, local.className);
|
|
@@ -10862,18 +10893,15 @@ const GlassPanel = (props)=>{
|
|
|
10862
10893
|
...local.style || {}
|
|
10863
10894
|
};
|
|
10864
10895
|
if (!local.transparent) {
|
|
10865
|
-
base.background = "color-mix(in srgb, var(--color-base-200)
|
|
10896
|
+
base.background = "color-mix(in srgb, var(--color-base-200) 80%, transparent)";
|
|
10866
10897
|
base.border = "1px solid color-mix(in srgb, var(--color-base-content) 8%, transparent)";
|
|
10867
10898
|
}
|
|
10868
10899
|
if (local.glow) base["box-shadow"] = "inset 0 1px 0 color-mix(in srgb, var(--color-base-content) 5%, transparent)";
|
|
10869
10900
|
return base;
|
|
10870
10901
|
};
|
|
10871
|
-
const contentClasses = ()=>twMerge(SIZE_PADDING[size()]
|
|
10872
|
-
"animate-collapse-open": local.collapsible && isOpen(),
|
|
10873
|
-
"animate-collapse-close": local.collapsible && !isOpen()
|
|
10874
|
-
}));
|
|
10902
|
+
const contentClasses = ()=>twMerge(SIZE_PADDING[size()]);
|
|
10875
10903
|
return (()=>{
|
|
10876
|
-
var _el$ = GlassPanel_tmpl$2();
|
|
10904
|
+
var _el$ = GlassPanel_tmpl$2(), _el$5 = _el$.firstChild, _el$6 = _el$5.firstChild;
|
|
10877
10905
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
10878
10906
|
get ["class"] () {
|
|
10879
10907
|
return containerClasses();
|
|
@@ -10892,13 +10920,7 @@ const GlassPanel = (props)=>{
|
|
|
10892
10920
|
get children () {
|
|
10893
10921
|
var _el$2 = GlassPanel_tmpl$(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
10894
10922
|
_el$2.$$click = handleToggle;
|
|
10895
|
-
_el$2
|
|
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)");
|
|
10923
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-controls", contentId);
|
|
10902
10924
|
(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
10925
|
get when () {
|
|
10904
10926
|
return local.icon;
|
|
@@ -10921,18 +10943,18 @@ const GlassPanel = (props)=>{
|
|
|
10921
10943
|
});
|
|
10922
10944
|
return _el$2;
|
|
10923
10945
|
}
|
|
10924
|
-
}),
|
|
10925
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
}
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
})
|
|
10946
|
+
}), _el$5);
|
|
10947
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "id", contentId);
|
|
10948
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.children);
|
|
10949
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
10950
|
+
var _v$3 = !local.collapsible || isOpen() ? "1fr" : "0fr", _v$4 = `overflow-hidden ${contentClasses()}`;
|
|
10951
|
+
_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"));
|
|
10952
|
+
_v$4 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.t = _v$4);
|
|
10953
|
+
return _p$;
|
|
10954
|
+
}, {
|
|
10955
|
+
e: void 0,
|
|
10956
|
+
t: void 0
|
|
10957
|
+
});
|
|
10936
10958
|
return _el$;
|
|
10937
10959
|
})();
|
|
10938
10960
|
};
|
|
@@ -16174,7 +16196,7 @@ const steps_Steps = Object.assign(Steps, {
|
|
|
16174
16196
|
Step: steps_Step
|
|
16175
16197
|
});
|
|
16176
16198
|
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),
|
|
16199
|
+
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
16200
|
function SvgBackground_hexToRgb(hex) {
|
|
16179
16201
|
hex = hex.replace(/^#/, "");
|
|
16180
16202
|
const bigint = Number.parseInt(hex, 16);
|
|
@@ -16549,7 +16571,7 @@ function SvgBackground(props) {
|
|
|
16549
16571
|
};
|
|
16550
16572
|
};
|
|
16551
16573
|
return (()=>{
|
|
16552
|
-
var _el$14 =
|
|
16574
|
+
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
16575
|
var _ref$ = containerRef;
|
|
16554
16576
|
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$14) : containerRef = _el$14;
|
|
16555
16577
|
var _ref$2 = svgRef;
|