@floegence/floe-webapp-core 0.1.0
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/app/FloeApp.d.ts +37 -0
- package/dist/app/FloeProvider.d.ts +17 -0
- package/dist/app/index.d.ts +2 -0
- package/dist/components/deck/DeckCell.d.ts +17 -0
- package/dist/components/deck/DeckGrid.d.ts +14 -0
- package/dist/components/deck/DeckTopBar.d.ts +9 -0
- package/dist/components/deck/DropZonePreview.d.ts +10 -0
- package/dist/components/deck/LayoutSelector.d.ts +7 -0
- package/dist/components/deck/WidgetFrame.d.ts +14 -0
- package/dist/components/deck/WidgetPalette.d.ts +7 -0
- package/dist/components/deck/WidgetResizeHandle.d.ts +9 -0
- package/dist/components/deck/WidgetTypeSwitcher.d.ts +9 -0
- package/dist/components/deck/index.d.ts +9 -0
- package/dist/components/icons/index.d.ts +29 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/launchpad/Launchpad.d.ts +15 -0
- package/dist/components/launchpad/LaunchpadGrid.d.ts +8 -0
- package/dist/components/launchpad/LaunchpadItem.d.ts +18 -0
- package/dist/components/launchpad/LaunchpadPagination.d.ts +6 -0
- package/dist/components/launchpad/LaunchpadSearch.d.ts +6 -0
- package/dist/components/launchpad/index.d.ts +10 -0
- package/dist/components/layout/ActivityBar.d.ts +24 -0
- package/dist/components/layout/BottomBar.d.ts +27 -0
- package/dist/components/layout/MobileTabBar.d.ts +19 -0
- package/dist/components/layout/Panel.d.ts +27 -0
- package/dist/components/layout/ResizeHandle.d.ts +9 -0
- package/dist/components/layout/Shell.d.ts +23 -0
- package/dist/components/layout/Sidebar.d.ts +33 -0
- package/dist/components/layout/TopBar.d.ts +11 -0
- package/dist/components/layout/index.d.ts +9 -0
- package/dist/components/loading/LoadingOverlay.d.ts +10 -0
- package/dist/components/loading/Skeleton.d.ts +21 -0
- package/dist/components/loading/SnakeLoader.d.ts +9 -0
- package/dist/components/loading/index.d.ts +3 -0
- package/dist/components/ui/Button.d.ts +12 -0
- package/dist/components/ui/Card.d.ts +79 -0
- package/dist/components/ui/CommandPalette.d.ts +4 -0
- package/dist/components/ui/Dialog.d.ts +29 -0
- package/dist/components/ui/Dropdown.d.ts +35 -0
- package/dist/components/ui/FloatingWindow.d.ts +45 -0
- package/dist/components/ui/Input.d.ts +16 -0
- package/dist/components/ui/Tooltip.d.ts +12 -0
- package/dist/components/ui/index.d.ts +8 -0
- package/dist/context/CommandContext.d.ts +30 -0
- package/dist/context/ComponentRegistry.d.ts +90 -0
- package/dist/context/DeckContext.d.ts +88 -0
- package/dist/context/FloeConfigContext.d.ts +133 -0
- package/dist/context/LayoutContext.d.ts +20 -0
- package/dist/context/NotificationContext.d.ts +32 -0
- package/dist/context/ThemeContext.d.ts +12 -0
- package/dist/context/WidgetRegistry.d.ts +37 -0
- package/dist/context/createSimpleContext.d.ts +15 -0
- package/dist/context/index.d.ts +9 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/useDebounce.d.ts +5 -0
- package/dist/hooks/useDeckDrag.d.ts +6 -0
- package/dist/hooks/useKeybind.d.ts +4 -0
- package/dist/hooks/useMediaQuery.d.ts +5 -0
- package/dist/hooks/usePersisted.d.ts +5 -0
- package/dist/hooks/useResizeObserver.d.ts +9 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +226 -0
- package/dist/index10.js +92 -0
- package/dist/index11.js +101 -0
- package/dist/index12.js +113 -0
- package/dist/index13.js +82 -0
- package/dist/index14.js +123 -0
- package/dist/index15.js +106 -0
- package/dist/index16.js +131 -0
- package/dist/index17.js +152 -0
- package/dist/index18.js +41 -0
- package/dist/index19.js +61 -0
- package/dist/index2.js +215 -0
- package/dist/index20.js +79 -0
- package/dist/index21.js +162 -0
- package/dist/index22.js +293 -0
- package/dist/index23.js +136 -0
- package/dist/index24.js +45 -0
- package/dist/index25.js +146 -0
- package/dist/index26.js +258 -0
- package/dist/index27.js +92 -0
- package/dist/index28.js +42 -0
- package/dist/index29.js +71 -0
- package/dist/index3.js +94 -0
- package/dist/index30.js +280 -0
- package/dist/index31.js +154 -0
- package/dist/index32.js +31 -0
- package/dist/index33.js +50 -0
- package/dist/index34.js +15 -0
- package/dist/index35.js +32 -0
- package/dist/index36.js +51 -0
- package/dist/index37.js +41 -0
- package/dist/index38.js +28 -0
- package/dist/index39.js +176 -0
- package/dist/index4.js +55 -0
- package/dist/index40.js +43 -0
- package/dist/index41.js +69 -0
- package/dist/index42.js +99 -0
- package/dist/index43.js +120 -0
- package/dist/index44.js +141 -0
- package/dist/index45.js +42 -0
- package/dist/index46.js +386 -0
- package/dist/index47.js +16 -0
- package/dist/index48.js +13 -0
- package/dist/index49.js +19 -0
- package/dist/index5.js +48 -0
- package/dist/index50.js +13 -0
- package/dist/index51.js +11 -0
- package/dist/index52.js +59 -0
- package/dist/index53.js +8 -0
- package/dist/index54.js +6 -0
- package/dist/index55.js +48 -0
- package/dist/index56.js +29 -0
- package/dist/index57.js +35 -0
- package/dist/index58.js +94 -0
- package/dist/index59.js +25 -0
- package/dist/index6.js +73 -0
- package/dist/index60.js +49 -0
- package/dist/index61.js +17 -0
- package/dist/index62.js +38 -0
- package/dist/index63.js +67 -0
- package/dist/index64.js +87 -0
- package/dist/index65.js +17 -0
- package/dist/index66.js +2266 -0
- package/dist/index7.js +112 -0
- package/dist/index8.js +66 -0
- package/dist/index9.js +33 -0
- package/dist/styles/build.d.ts +1 -0
- package/dist/styles/themes/index.d.ts +9 -0
- package/dist/styles.css +1 -0
- package/dist/styles.js +1 -0
- package/dist/utils/animations.d.ts +222 -0
- package/dist/utils/bodyStyleLock.d.ts +9 -0
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/defer.d.ts +5 -0
- package/dist/utils/gridCollision.d.ts +31 -0
- package/dist/utils/gridLayout.d.ts +38 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/keybind.d.ts +22 -0
- package/dist/utils/persist.d.ts +17 -0
- package/dist/widgets/MetricsWidget.d.ts +5 -0
- package/dist/widgets/SidebarWidget.d.ts +11 -0
- package/dist/widgets/TerminalWidget.d.ts +5 -0
- package/dist/widgets/index.d.ts +3 -0
- package/package.json +40 -0
package/dist/index26.js
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { delegateEvents as R, template as v, spread as m, mergeProps as h, insert as i, effect as A, className as E, memo as H, setStyleProperty as L, use as j } from "solid-js/web";
|
|
2
|
+
import { splitProps as b, createSignal as F, onCleanup as q } from "solid-js";
|
|
3
|
+
import { cn as p } from "./index53.js";
|
|
4
|
+
var W = /* @__PURE__ */ v('<div style="background-size:200% 200%;animation:gradient-shift 3s ease infinite">'), D = /* @__PURE__ */ v('<div class="absolute inset-[1px] rounded-[7px] bg-card">'), G = /* @__PURE__ */ v('<div class="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">'), N = /* @__PURE__ */ v('<div class="absolute inset-0 -translate-x-full animate-[shimmer_2s_infinite] bg-gradient-to-r from-transparent via-white/10 to-transparent">'), Z = /* @__PURE__ */ v("<div><div>"), T = /* @__PURE__ */ v("<div>"), J = /* @__PURE__ */ v("<h3>"), K = /* @__PURE__ */ v("<p>"), O = /* @__PURE__ */ v('<div><div class="relative z-10"style=transform:translateZ(20px)>'), Q = /* @__PURE__ */ v('<div class="pointer-events-none absolute inset-0 z-20 opacity-0 transition-opacity duration-300">'), U = /* @__PURE__ */ v('<div><div class="absolute inset-0"style="background:conic-gradient(from 0deg, var(--primary), var(--accent), var(--secondary), var(--primary))"></div><div class="relative rounded-[10px] bg-card h-full">'), V = /* @__PURE__ */ v('<div><div class="absolute inset-0 -z-10 overflow-hidden"><div class="absolute -top-1/2 -left-1/2 w-full h-full rounded-full bg-primary/20"style="animation:morph 8s ease-in-out infinite;filter:blur(40px)"></div><div class="absolute -bottom-1/2 -right-1/2 w-full h-full rounded-full bg-accent/20"style="animation:morph 8s ease-in-out infinite reverse;filter:blur(40px)"></div></div><div class="relative z-10">');
|
|
5
|
+
function ne(l) {
|
|
6
|
+
const [e, o] = b(l, ["variant", "enableTilt", "gradientColors", "glowColor", "class", "children", "style"]), t = () => e.variant ?? "default", [d, g] = F({});
|
|
7
|
+
let u, s = null, _ = 0, y = 0;
|
|
8
|
+
const f = () => {
|
|
9
|
+
if (s = null, !u || !e.enableTilt && t() !== "spotlight") return;
|
|
10
|
+
const r = u.getBoundingClientRect(), a = _ - r.left, c = y - r.top;
|
|
11
|
+
if (e.enableTilt) {
|
|
12
|
+
const w = r.width / 2, Y = r.height / 2, B = (c - Y) / 10, I = (w - a) / 10;
|
|
13
|
+
g({
|
|
14
|
+
transform: `perspective(1000px) rotateX(${B}deg) rotateY(${I}deg) scale3d(1.02, 1.02, 1.02)`
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
t() === "spotlight" && X({
|
|
18
|
+
x: a,
|
|
19
|
+
y: c
|
|
20
|
+
});
|
|
21
|
+
}, M = (r) => {
|
|
22
|
+
if (u && !(!e.enableTilt && t() !== "spotlight") && (_ = r.clientX, y = r.clientY, s === null)) {
|
|
23
|
+
if (typeof requestAnimationFrame > "u") {
|
|
24
|
+
f();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
s = requestAnimationFrame(f);
|
|
28
|
+
}
|
|
29
|
+
}, S = () => {
|
|
30
|
+
s !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(s), s = null), e.enableTilt && g({
|
|
31
|
+
transform: "perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)"
|
|
32
|
+
});
|
|
33
|
+
}, [C, X] = F({
|
|
34
|
+
x: 0,
|
|
35
|
+
y: 0
|
|
36
|
+
});
|
|
37
|
+
q(() => {
|
|
38
|
+
s !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(s), s = null);
|
|
39
|
+
});
|
|
40
|
+
const k = "rounded-lg transition-all duration-300 ease-out", P = {
|
|
41
|
+
default: "bg-card border border-border shadow-sm hover:shadow-md",
|
|
42
|
+
"hover-lift": "bg-card border border-border shadow-sm hover:shadow-xl hover:-translate-y-1",
|
|
43
|
+
"gradient-border": "relative bg-card overflow-hidden",
|
|
44
|
+
glass: "backdrop-blur-xl bg-card/30 border border-white/10 shadow-lg",
|
|
45
|
+
spotlight: "relative bg-card border border-border overflow-hidden",
|
|
46
|
+
shimmer: "relative bg-card border border-border overflow-hidden",
|
|
47
|
+
glow: "bg-card border border-border shadow-sm"
|
|
48
|
+
}, z = () => {
|
|
49
|
+
if (t() !== "gradient-border") return null;
|
|
50
|
+
const r = e.gradientColors ?? "from-primary via-accent to-secondary";
|
|
51
|
+
return [(() => {
|
|
52
|
+
var a = W();
|
|
53
|
+
return A(() => E(a, p("absolute inset-0 bg-gradient-to-r opacity-75", r, "animate-[gradient-rotate_3s_linear_infinite]"))), a;
|
|
54
|
+
})(), D()];
|
|
55
|
+
}, n = () => t() !== "spotlight" ? null : (() => {
|
|
56
|
+
var r = G();
|
|
57
|
+
return A((a) => L(r, "background", `radial-gradient(400px circle at ${C().x}px ${C().y}px, rgba(var(--primary-rgb, 99, 102, 241), 0.15), transparent 40%)`)), r;
|
|
58
|
+
})(), $ = () => t() !== "shimmer" ? null : N(), x = () => {
|
|
59
|
+
if (t() !== "glow") return {};
|
|
60
|
+
const r = e.glowColor ?? "var(--primary)";
|
|
61
|
+
return {
|
|
62
|
+
"box-shadow": `0 0 0 1px ${r}, 0 0 20px -5px ${r}, 0 0 40px -10px ${r}`
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
return (() => {
|
|
66
|
+
var r = Z(), a = r.firstChild;
|
|
67
|
+
r.addEventListener("mouseleave", S), r.$$mousemove = M;
|
|
68
|
+
var c = u;
|
|
69
|
+
return typeof c == "function" ? j(c, r) : u = r, m(r, h({
|
|
70
|
+
get class() {
|
|
71
|
+
return p(k, P[t()], t() === "spotlight" && "group", e.class);
|
|
72
|
+
},
|
|
73
|
+
get style() {
|
|
74
|
+
return {
|
|
75
|
+
...typeof e.style == "object" ? e.style : {},
|
|
76
|
+
...d(),
|
|
77
|
+
...x(),
|
|
78
|
+
"transform-style": "preserve-3d"
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}, o), !1, !0), i(r, z, a), i(r, n, a), i(r, $, a), i(a, () => e.children), A(() => E(a, p("relative z-10", t() === "gradient-border" && "relative"))), r;
|
|
82
|
+
})();
|
|
83
|
+
}
|
|
84
|
+
function le(l) {
|
|
85
|
+
const [e, o] = b(l, ["class", "children"]);
|
|
86
|
+
return (() => {
|
|
87
|
+
var t = T();
|
|
88
|
+
return m(t, h({
|
|
89
|
+
get class() {
|
|
90
|
+
return p("flex flex-col space-y-1.5 p-4", e.class);
|
|
91
|
+
}
|
|
92
|
+
}, o), !1, !0), i(t, () => e.children), t;
|
|
93
|
+
})();
|
|
94
|
+
}
|
|
95
|
+
function oe(l) {
|
|
96
|
+
const [e, o] = b(l, ["class", "children"]);
|
|
97
|
+
return (() => {
|
|
98
|
+
var t = J();
|
|
99
|
+
return m(t, h({
|
|
100
|
+
get class() {
|
|
101
|
+
return p("text-sm font-semibold leading-none tracking-tight", e.class);
|
|
102
|
+
}
|
|
103
|
+
}, o), !1, !0), i(t, () => e.children), t;
|
|
104
|
+
})();
|
|
105
|
+
}
|
|
106
|
+
function ae(l) {
|
|
107
|
+
const [e, o] = b(l, ["class", "children"]);
|
|
108
|
+
return (() => {
|
|
109
|
+
var t = K();
|
|
110
|
+
return m(t, h({
|
|
111
|
+
get class() {
|
|
112
|
+
return p("text-xs text-muted-foreground", e.class);
|
|
113
|
+
}
|
|
114
|
+
}, o), !1, !0), i(t, () => e.children), t;
|
|
115
|
+
})();
|
|
116
|
+
}
|
|
117
|
+
function se(l) {
|
|
118
|
+
const [e, o] = b(l, ["class", "children"]);
|
|
119
|
+
return (() => {
|
|
120
|
+
var t = T();
|
|
121
|
+
return m(t, h({
|
|
122
|
+
get class() {
|
|
123
|
+
return p("p-4 pt-0", e.class);
|
|
124
|
+
}
|
|
125
|
+
}, o), !1, !0), i(t, () => e.children), t;
|
|
126
|
+
})();
|
|
127
|
+
}
|
|
128
|
+
function ie(l) {
|
|
129
|
+
const [e, o] = b(l, ["class", "children"]);
|
|
130
|
+
return (() => {
|
|
131
|
+
var t = T();
|
|
132
|
+
return m(t, h({
|
|
133
|
+
get class() {
|
|
134
|
+
return p("flex items-center p-4 pt-0", e.class);
|
|
135
|
+
}
|
|
136
|
+
}, o), !1, !0), i(t, () => e.children), t;
|
|
137
|
+
})();
|
|
138
|
+
}
|
|
139
|
+
function de(l) {
|
|
140
|
+
const [e, o] = b(l, ["intensity", "shine", "borderGlow", "class", "children", "style"]), [t, d] = F(""), [g, u] = F({
|
|
141
|
+
x: 50,
|
|
142
|
+
y: 50
|
|
143
|
+
}), [s, _] = F(!1);
|
|
144
|
+
let y, f = null, M = 0, S = 0;
|
|
145
|
+
const C = () => e.intensity ?? 10, X = () => {
|
|
146
|
+
if (f = null, !y) return;
|
|
147
|
+
const n = y.getBoundingClientRect(), $ = M - n.left, x = S - n.top, r = n.width / 2, a = n.height / 2, c = (x - a) / a * C(), w = (r - $) / r * C();
|
|
148
|
+
d(`perspective(1000px) rotateX(${-c}deg) rotateY(${w}deg)`), e.shine && u({
|
|
149
|
+
x: $ / n.width * 100,
|
|
150
|
+
y: x / n.height * 100
|
|
151
|
+
});
|
|
152
|
+
}, k = (n) => {
|
|
153
|
+
if (y && (M = n.clientX, S = n.clientY, f === null)) {
|
|
154
|
+
if (typeof requestAnimationFrame > "u") {
|
|
155
|
+
X();
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
f = requestAnimationFrame(X);
|
|
159
|
+
}
|
|
160
|
+
}, P = () => _(!0), z = () => {
|
|
161
|
+
f !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(f), f = null), _(!1), d("perspective(1000px) rotateX(0deg) rotateY(0deg)");
|
|
162
|
+
};
|
|
163
|
+
return q(() => {
|
|
164
|
+
f !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(f), f = null);
|
|
165
|
+
}), (() => {
|
|
166
|
+
var n = O(), $ = n.firstChild;
|
|
167
|
+
n.addEventListener("mouseleave", z), n.addEventListener("mouseenter", P), n.$$mousemove = k;
|
|
168
|
+
var x = y;
|
|
169
|
+
return typeof x == "function" ? j(x, n) : y = n, m(n, h({
|
|
170
|
+
get class() {
|
|
171
|
+
return p("relative rounded-xl bg-card border border-border overflow-hidden", "transition-all duration-200 ease-out", e.borderGlow && s() && "shadow-[0_0_30px_-5px_var(--primary)]", e.class);
|
|
172
|
+
},
|
|
173
|
+
get style() {
|
|
174
|
+
return {
|
|
175
|
+
...typeof e.style == "object" ? e.style : {},
|
|
176
|
+
transform: t(),
|
|
177
|
+
"transform-style": "preserve-3d"
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
}, o), !1, !0), i(n, (() => {
|
|
181
|
+
var r = H(() => !!e.shine);
|
|
182
|
+
return () => r() && (() => {
|
|
183
|
+
var a = Q();
|
|
184
|
+
return A((c) => {
|
|
185
|
+
var w = !!s(), Y = `radial-gradient(circle at ${g().x}% ${g().y}%, rgba(255,255,255,0.2) 0%, transparent 50%)`;
|
|
186
|
+
return w !== c.e && a.classList.toggle("opacity-100", c.e = w), Y !== c.t && L(a, "background", c.t = Y), c;
|
|
187
|
+
}, {
|
|
188
|
+
e: void 0,
|
|
189
|
+
t: void 0
|
|
190
|
+
}), a;
|
|
191
|
+
})();
|
|
192
|
+
})(), $), i($, () => e.children), n;
|
|
193
|
+
})();
|
|
194
|
+
}
|
|
195
|
+
function ce(l) {
|
|
196
|
+
const [e, o] = b(l, ["duration", "borderWidth", "colors", "class", "children", "style"]), t = () => e.duration ?? 3, d = () => e.borderWidth ?? 2;
|
|
197
|
+
return (() => {
|
|
198
|
+
var g = U(), u = g.firstChild, s = u.nextSibling;
|
|
199
|
+
return m(g, h({
|
|
200
|
+
get class() {
|
|
201
|
+
return p("relative rounded-xl p-[2px] overflow-hidden", e.class);
|
|
202
|
+
},
|
|
203
|
+
get style() {
|
|
204
|
+
return {
|
|
205
|
+
...typeof e.style == "object" ? e.style : {},
|
|
206
|
+
padding: `${d()}px`
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}, o), !1, !0), i(s, () => e.children), A((_) => L(u, "animation", `spin ${t()}s linear infinite`)), g;
|
|
210
|
+
})();
|
|
211
|
+
}
|
|
212
|
+
function ue(l) {
|
|
213
|
+
const [e, o] = b(l, ["color", "pulse", "class", "children", "style"]), t = () => e.color ?? "var(--primary)";
|
|
214
|
+
return (() => {
|
|
215
|
+
var d = T();
|
|
216
|
+
return m(d, h({
|
|
217
|
+
get class() {
|
|
218
|
+
return p("relative rounded-xl bg-card border-2 transition-shadow duration-300", e.pulse && "animate-pulse", e.class);
|
|
219
|
+
},
|
|
220
|
+
get style() {
|
|
221
|
+
return {
|
|
222
|
+
...typeof e.style == "object" ? e.style : {},
|
|
223
|
+
"border-color": t(),
|
|
224
|
+
"box-shadow": `0 0 5px ${t()}, 0 0 20px ${t()}, 0 0 40px ${t()}, inset 0 0 20px ${t()}20`
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
}, o), !1, !0), i(d, () => e.children), d;
|
|
228
|
+
})();
|
|
229
|
+
}
|
|
230
|
+
function fe(l) {
|
|
231
|
+
const [e, o] = b(l, ["class", "children", "style"]);
|
|
232
|
+
return (() => {
|
|
233
|
+
var t = V(), d = t.firstChild, g = d.firstChild;
|
|
234
|
+
g.nextSibling;
|
|
235
|
+
var u = d.nextSibling;
|
|
236
|
+
return m(t, h({
|
|
237
|
+
get class() {
|
|
238
|
+
return p("relative rounded-2xl bg-card/80 backdrop-blur-sm border border-border overflow-hidden", e.class);
|
|
239
|
+
},
|
|
240
|
+
get style() {
|
|
241
|
+
return e.style;
|
|
242
|
+
}
|
|
243
|
+
}, o), !1, !0), i(u, () => e.children), t;
|
|
244
|
+
})();
|
|
245
|
+
}
|
|
246
|
+
R(["mousemove"]);
|
|
247
|
+
export {
|
|
248
|
+
ce as AnimatedBorderCard,
|
|
249
|
+
ne as Card,
|
|
250
|
+
se as CardContent,
|
|
251
|
+
ae as CardDescription,
|
|
252
|
+
ie as CardFooter,
|
|
253
|
+
le as CardHeader,
|
|
254
|
+
oe as CardTitle,
|
|
255
|
+
de as Interactive3DCard,
|
|
256
|
+
fe as MorphCard,
|
|
257
|
+
ue as NeonCard
|
|
258
|
+
};
|
package/dist/index27.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { template as h, insert as $, createComponent as z, effect as m, className as d, style as I } from "solid-js/web";
|
|
2
|
+
import { createSignal as P, onMount as S, onCleanup as B, For as L } from "solid-js";
|
|
3
|
+
import { cn as g } from "./index53.js";
|
|
4
|
+
var M = /* @__PURE__ */ h(`<div role=status aria-label=Loading><style>
|
|
5
|
+
@keyframes snakeBreathing {
|
|
6
|
+
0%, 100% {
|
|
7
|
+
opacity: 0.5;
|
|
8
|
+
transform: scale(0.85);
|
|
9
|
+
}
|
|
10
|
+
50% {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
transform: scale(1);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`), j = /* @__PURE__ */ h("<div>"), F = /* @__PURE__ */ h('<div style="animation:snakeBreathing 1.5s ease-in-out infinite">');
|
|
16
|
+
const u = {
|
|
17
|
+
sm: {
|
|
18
|
+
grid: "w-12 h-12",
|
|
19
|
+
cell: "w-3 h-3",
|
|
20
|
+
center: "w-2.5 h-2.5"
|
|
21
|
+
},
|
|
22
|
+
md: {
|
|
23
|
+
grid: "w-16 h-16",
|
|
24
|
+
cell: "w-4 h-4",
|
|
25
|
+
center: "w-3 h-3"
|
|
26
|
+
},
|
|
27
|
+
lg: {
|
|
28
|
+
grid: "w-24 h-24",
|
|
29
|
+
cell: "w-6 h-6",
|
|
30
|
+
center: "w-5 h-5"
|
|
31
|
+
}
|
|
32
|
+
}, b = {
|
|
33
|
+
slow: 200,
|
|
34
|
+
normal: 120,
|
|
35
|
+
fast: 80
|
|
36
|
+
}, f = [
|
|
37
|
+
[100, 1.1],
|
|
38
|
+
// head: full opacity, slightly larger
|
|
39
|
+
[85, 1.05],
|
|
40
|
+
// trail 1: smooth transition
|
|
41
|
+
[65, 1],
|
|
42
|
+
// trail 2
|
|
43
|
+
[40, 0.95]
|
|
44
|
+
// trail 3: fading out
|
|
45
|
+
];
|
|
46
|
+
function q(l) {
|
|
47
|
+
const c = () => l.size ?? "md", v = () => l.speed ?? "normal", i = [0, 1, 2, 5, 8, 7, 6, 3], [k, C] = P(0);
|
|
48
|
+
S(() => {
|
|
49
|
+
const t = setInterval(() => {
|
|
50
|
+
C((n) => (n + 1) % i.length);
|
|
51
|
+
}, b[v()]);
|
|
52
|
+
B(() => clearInterval(t));
|
|
53
|
+
});
|
|
54
|
+
const _ = (t) => {
|
|
55
|
+
const n = k();
|
|
56
|
+
for (let r = 0; r < f.length; r++)
|
|
57
|
+
if (i[(n + i.length - r) % i.length] === t) return r;
|
|
58
|
+
return -1;
|
|
59
|
+
};
|
|
60
|
+
return (() => {
|
|
61
|
+
var t = M(), n = t.firstChild;
|
|
62
|
+
return $(t, z(L, {
|
|
63
|
+
each: [0, 1, 2, 3, 4, 5, 6, 7, 8],
|
|
64
|
+
children: (r) => {
|
|
65
|
+
const o = r === 4, a = () => o ? -1 : _(r);
|
|
66
|
+
return (() => {
|
|
67
|
+
var s = j();
|
|
68
|
+
return $(s, o && (() => {
|
|
69
|
+
var e = F();
|
|
70
|
+
return m(() => d(e, g("rounded-sm bg-primary", u[c()].center))), e;
|
|
71
|
+
})()), m((e) => {
|
|
72
|
+
var y, w;
|
|
73
|
+
var p = g("flex items-center justify-center rounded-sm", u[c()].cell, o && "bg-transparent"), x = o ? {} : {
|
|
74
|
+
"background-color": a() >= 0 ? `color-mix(in srgb, var(--primary) ${((y = f[a()]) == null ? void 0 : y[0]) ?? 0}%, transparent)` : "var(--muted)",
|
|
75
|
+
transform: `scale(${a() >= 0 ? ((w = f[a()]) == null ? void 0 : w[1]) ?? 1 : 1})`,
|
|
76
|
+
"transition-property": "background-color, transform",
|
|
77
|
+
"transition-duration": `${b[v()] * 0.9}ms`,
|
|
78
|
+
"transition-timing-function": "ease-out"
|
|
79
|
+
};
|
|
80
|
+
return p !== e.e && d(s, e.e = p), e.t = I(s, x, e.t), e;
|
|
81
|
+
}, {
|
|
82
|
+
e: void 0,
|
|
83
|
+
t: void 0
|
|
84
|
+
}), s;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
}), n), m(() => d(t, g("grid grid-cols-3 gap-1", u[c()].grid, l.class))), t;
|
|
88
|
+
})();
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
q as SnakeLoader
|
|
92
|
+
};
|
package/dist/index28.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { template as c, insert as n, createComponent as t, effect as m, className as o, Portal as u } from "solid-js/web";
|
|
2
|
+
import { Show as l } from "solid-js";
|
|
3
|
+
import { cn as s } from "./index53.js";
|
|
4
|
+
import { SnakeLoader as f } from "./index27.js";
|
|
5
|
+
var g = /* @__PURE__ */ c('<p class="text-sm text-muted-foreground">'), d = /* @__PURE__ */ c("<div>");
|
|
6
|
+
function k(e) {
|
|
7
|
+
const a = (() => {
|
|
8
|
+
var r = d();
|
|
9
|
+
return n(r, t(f, {
|
|
10
|
+
size: "lg"
|
|
11
|
+
}), null), n(r, t(l, {
|
|
12
|
+
get when() {
|
|
13
|
+
return e.message;
|
|
14
|
+
},
|
|
15
|
+
get children() {
|
|
16
|
+
var i = g();
|
|
17
|
+
return n(i, () => e.message), i;
|
|
18
|
+
}
|
|
19
|
+
}), null), m(() => o(r, s("flex flex-col items-center justify-center gap-4", "bg-background/80 backdrop-blur-sm", e.fullscreen ? "fixed inset-0 z-50" : "absolute inset-0", "animate-in fade-in", e.class))), r;
|
|
20
|
+
})();
|
|
21
|
+
return t(l, {
|
|
22
|
+
get when() {
|
|
23
|
+
return e.visible;
|
|
24
|
+
},
|
|
25
|
+
get children() {
|
|
26
|
+
return t(l, {
|
|
27
|
+
get when() {
|
|
28
|
+
return e.fullscreen;
|
|
29
|
+
},
|
|
30
|
+
fallback: a,
|
|
31
|
+
get children() {
|
|
32
|
+
return t(u, {
|
|
33
|
+
children: a
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
k as LoadingOverlay
|
|
42
|
+
};
|
package/dist/index29.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { template as f, effect as o, className as u, insert as s, createComponent as r } from "solid-js/web";
|
|
2
|
+
import { For as h } from "solid-js";
|
|
3
|
+
import { cn as i } from "./index53.js";
|
|
4
|
+
var m = /* @__PURE__ */ f("<div>"), p = /* @__PURE__ */ f('<div><div class="flex items-center gap-3"><div class="space-y-2 flex-1">'), _ = /* @__PURE__ */ f('<div class="flex items-center gap-3"><div class="flex-1 space-y-1">');
|
|
5
|
+
function c(n) {
|
|
6
|
+
return (() => {
|
|
7
|
+
var l = m();
|
|
8
|
+
return o(() => u(l, i("animate-pulse rounded-md bg-muted", n.class))), l;
|
|
9
|
+
})();
|
|
10
|
+
}
|
|
11
|
+
function v(n) {
|
|
12
|
+
const l = () => n.lines ?? 3, a = () => Array.from({
|
|
13
|
+
length: l()
|
|
14
|
+
}, (e, t) => t);
|
|
15
|
+
return (() => {
|
|
16
|
+
var e = m();
|
|
17
|
+
return s(e, r(h, {
|
|
18
|
+
get each() {
|
|
19
|
+
return a();
|
|
20
|
+
},
|
|
21
|
+
children: (t) => r(c, {
|
|
22
|
+
get class() {
|
|
23
|
+
return i("h-4", t === l() - 1 ? "w-3/4" : "w-full");
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
})), o(() => u(e, i("space-y-2", n.class))), e;
|
|
27
|
+
})();
|
|
28
|
+
}
|
|
29
|
+
function y(n) {
|
|
30
|
+
return (() => {
|
|
31
|
+
var l = p(), a = l.firstChild, e = a.firstChild;
|
|
32
|
+
return s(a, r(c, {
|
|
33
|
+
class: "h-10 w-10 rounded-full"
|
|
34
|
+
}), e), s(e, r(c, {
|
|
35
|
+
class: "h-4 w-1/3"
|
|
36
|
+
}), null), s(e, r(c, {
|
|
37
|
+
class: "h-3 w-1/4"
|
|
38
|
+
}), null), s(l, r(v, {
|
|
39
|
+
lines: 2
|
|
40
|
+
}), null), o(() => u(l, i("rounded-lg border border-border p-4 space-y-4", n.class))), l;
|
|
41
|
+
})();
|
|
42
|
+
}
|
|
43
|
+
function x(n) {
|
|
44
|
+
const l = () => n.count ?? 5, a = () => Array.from({
|
|
45
|
+
length: l()
|
|
46
|
+
}, (e, t) => t);
|
|
47
|
+
return (() => {
|
|
48
|
+
var e = m();
|
|
49
|
+
return s(e, r(h, {
|
|
50
|
+
get each() {
|
|
51
|
+
return a();
|
|
52
|
+
},
|
|
53
|
+
children: () => (() => {
|
|
54
|
+
var t = _(), d = t.firstChild;
|
|
55
|
+
return s(t, r(c, {
|
|
56
|
+
class: "h-8 w-8 rounded"
|
|
57
|
+
}), d), s(d, r(c, {
|
|
58
|
+
class: "h-4 w-2/3"
|
|
59
|
+
}), null), s(d, r(c, {
|
|
60
|
+
class: "h-3 w-1/3"
|
|
61
|
+
}), null), t;
|
|
62
|
+
})()
|
|
63
|
+
})), o(() => u(e, i("space-y-3", n.class))), e;
|
|
64
|
+
})();
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
c as Skeleton,
|
|
68
|
+
y as SkeletonCard,
|
|
69
|
+
x as SkeletonList,
|
|
70
|
+
v as SkeletonText
|
|
71
|
+
};
|
package/dist/index3.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { delegateEvents as y, template as d, insert as c, createComponent as l, effect as v, className as m, Dynamic as x, memo as C, setAttribute as u } from "solid-js/web";
|
|
2
|
+
import { For as s, Show as f } from "solid-js";
|
|
3
|
+
import { cn as g } from "./index53.js";
|
|
4
|
+
var w = /* @__PURE__ */ d('<div class="flex flex-col items-center py-1.5 gap-0.5 md:gap-2 md:py-2">'), A = /* @__PURE__ */ d('<div><div class="flex flex-col items-center py-1.5 gap-0.5 md:gap-2 md:py-2">'), k = /* @__PURE__ */ d('<div class="absolute -left-1.5 md:-left-2.5 top-1/2 -translate-y-1/2 w-1 h-7 bg-primary rounded-r">'), $ = /* @__PURE__ */ d("<span>"), _ = /* @__PURE__ */ d("<button type=button>");
|
|
5
|
+
function D(e) {
|
|
6
|
+
const a = (t) => {
|
|
7
|
+
var r, o;
|
|
8
|
+
if (t.onClick) {
|
|
9
|
+
t.onClick();
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const i = e.activeId === t.id, n = e.collapsed ?? !1;
|
|
13
|
+
if (i && !n) {
|
|
14
|
+
(r = e.onCollapsedChange) == null || r.call(e, !0);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
e.onActiveChange(t.id), (o = e.onCollapsedChange) == null || o.call(e, !1);
|
|
18
|
+
};
|
|
19
|
+
return (() => {
|
|
20
|
+
var t = A(), i = t.firstChild;
|
|
21
|
+
return c(i, l(s, {
|
|
22
|
+
get each() {
|
|
23
|
+
return e.items;
|
|
24
|
+
},
|
|
25
|
+
children: (n) => l(h, {
|
|
26
|
+
item: n,
|
|
27
|
+
get isActive() {
|
|
28
|
+
return e.activeId === n.id;
|
|
29
|
+
},
|
|
30
|
+
onClick: () => a(n)
|
|
31
|
+
})
|
|
32
|
+
})), c(t, l(f, {
|
|
33
|
+
get when() {
|
|
34
|
+
var n;
|
|
35
|
+
return (n = e.bottomItems) == null ? void 0 : n.length;
|
|
36
|
+
},
|
|
37
|
+
get children() {
|
|
38
|
+
var n = w();
|
|
39
|
+
return c(n, l(s, {
|
|
40
|
+
get each() {
|
|
41
|
+
return e.bottomItems;
|
|
42
|
+
},
|
|
43
|
+
children: (r) => l(h, {
|
|
44
|
+
item: r,
|
|
45
|
+
isActive: !1,
|
|
46
|
+
onClick: () => a(r)
|
|
47
|
+
})
|
|
48
|
+
})), n;
|
|
49
|
+
}
|
|
50
|
+
}), null), v(() => m(t, g("w-12 md:w-14 flex flex-col justify-between shrink-0 min-h-0", "bg-activity-bar border-r border-border", e.class))), t;
|
|
51
|
+
})();
|
|
52
|
+
}
|
|
53
|
+
function h(e) {
|
|
54
|
+
const a = () => typeof e.item.badge == "function" ? e.item.badge() : e.item.badge;
|
|
55
|
+
return (() => {
|
|
56
|
+
var t = _();
|
|
57
|
+
return t.$$click = () => e.onClick(), c(t, l(f, {
|
|
58
|
+
get when() {
|
|
59
|
+
return e.isActive;
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return k();
|
|
63
|
+
}
|
|
64
|
+
}), null), c(t, l(x, {
|
|
65
|
+
get component() {
|
|
66
|
+
return e.item.icon;
|
|
67
|
+
},
|
|
68
|
+
class: "w-5 h-5"
|
|
69
|
+
}), null), c(t, l(f, {
|
|
70
|
+
get when() {
|
|
71
|
+
return a();
|
|
72
|
+
},
|
|
73
|
+
get children() {
|
|
74
|
+
var i = $();
|
|
75
|
+
return c(i, (() => {
|
|
76
|
+
var n = C(() => typeof a() == "number" && a() > 99);
|
|
77
|
+
return () => n() ? "99+" : a();
|
|
78
|
+
})()), v(() => m(i, g("absolute top-0.5 right-0.5 min-w-3.5 h-3.5 px-1", "flex items-center justify-center", "text-[9px] font-medium rounded-full", "bg-activity-bar-badge text-activity-bar-badge-foreground"))), i;
|
|
79
|
+
}
|
|
80
|
+
}), null), v((i) => {
|
|
81
|
+
var n = g("relative w-9 h-9 flex items-center justify-center rounded cursor-pointer", "transition-all duration-100", "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring", e.isActive ? "text-activity-bar-foreground-active bg-accent/80" : "text-activity-bar-foreground hover:text-activity-bar-foreground-active hover:bg-accent/40"), r = e.item.label, o = e.item.label, b = e.isActive;
|
|
82
|
+
return n !== i.e && m(t, i.e = n), r !== i.t && u(t, "title", i.t = r), o !== i.a && u(t, "aria-label", i.a = o), b !== i.o && u(t, "aria-pressed", i.o = b), i;
|
|
83
|
+
}, {
|
|
84
|
+
e: void 0,
|
|
85
|
+
t: void 0,
|
|
86
|
+
a: void 0,
|
|
87
|
+
o: void 0
|
|
88
|
+
}), t;
|
|
89
|
+
})();
|
|
90
|
+
}
|
|
91
|
+
y(["click"]);
|
|
92
|
+
export {
|
|
93
|
+
D as ActivityBar
|
|
94
|
+
};
|