fiboui 2.4.3 → 2.5.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/README.md +195 -144
- package/dist/Link-DU8XI2Na.js +50 -0
- package/dist/{PluginManager-D5-ApsSN.js → PluginManager-BRjgOLVa.js} +5 -6
- package/dist/client-C5fy1-Lh.js +10555 -0
- package/dist/content.js +7 -8
- package/dist/core.js +60 -60
- package/dist/{effects-CnevV566.js → effects-D16XdB_d.js} +0 -1
- package/dist/{index-DRVdVimz.js → index-BLBoIYdN.js} +40 -43
- package/dist/index-CL2Ecds4.js +455 -0
- package/dist/index-CaC2tQbt.js +604 -0
- package/dist/{index-BMIo5j9Y.js → index-CaDcYvIh.js} +1 -2
- package/dist/{index-DGQVwcWx.js → index-DVECnj1z.js} +136 -362
- package/dist/index.d.ts +44201 -42913
- package/dist/index.js +1519 -1094
- package/dist/interactive.js +9 -9
- package/dist/layout.js +13 -13
- package/dist/mount-jsbS9qm4.js +135 -0
- package/dist/navigation.js +9 -10
- package/dist/{builder-B5cebEWZ.js → server.js} +4463 -967
- package/dist/structure.js +12 -13
- package/dist/style.css +1 -1
- package/dist/style.js +1 -1
- package/dist/theme.js +15 -17
- package/package.json +9 -4
- package/dist/FineGrain-CvcJ5OxF.js +0 -29
- package/dist/Link-ElmaMZB8.js +0 -89
- package/dist/Router-BwbaHooU.js +0 -398
- package/dist/bundle-mjs-wppB-TKB.js +0 -2760
- package/dist/index-BxH8dhoT.js +0 -1112
- package/dist/index-DbaNIwWW.js +0 -160
- package/dist/index-MeDbhMEg.js +0 -1031
- package/dist/index-orKQGpHl.js +0 -34
- package/dist/mount-DbMVakA4.js +0 -358
- package/dist/provider-BTNE3N5g.js +0 -44
- package/dist/themeData-Dtm0M_mF.js +0 -441
package/dist/content.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { I as f } from "./index-BMIo5j9Y.js";
|
|
1
|
+
import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as m, S as p } from "./index-BLBoIYdN.js";
|
|
2
|
+
import { $ as f } from "./client-C5fy1-Lh.js";
|
|
3
|
+
import { I as A } from "./index-CaDcYvIh.js";
|
|
5
4
|
export {
|
|
6
5
|
s as Alert,
|
|
7
6
|
r as Avatar,
|
|
8
7
|
o as Badge,
|
|
9
|
-
|
|
8
|
+
A as Icon,
|
|
10
9
|
t as Image,
|
|
11
10
|
n as Integration,
|
|
12
11
|
I as Label,
|
|
13
12
|
g as Progress,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
m as Skeleton,
|
|
14
|
+
p as Spinner,
|
|
15
|
+
f as Text
|
|
17
16
|
};
|
package/dist/core.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
"
|
|
2
|
-
import {
|
|
3
|
-
import { E as z, l as G, F as K, k as W, P as X, c as D, j as H, m as J, t as L, g as Q, b as U, h as Y, a as Z, i as $, u as ss, e as es, f as as, d as ts } from "./mount-DbMVakA4.js";
|
|
4
|
-
import { F as os, b as is } from "./FineGrain-CvcJ5OxF.js";
|
|
1
|
+
import { C as a, E as t, L as r, T as o, F as i, I as n, M as l, Q as u, O as S, h as c, v as p, P as g, R as b, w as T, x as v, S as E, Y as C, k as F, j as R, c as d, b as m, a as f, X as I, N as y, V as O, g as P, U as x, W as M, J as N, K as w, H as A, o as B, G as _, r as V, y as h, s as q, D as z, z as G, B as K, A as W, f as X, p as j, e as k, q as D, i as H, d as J, t as L, u as Q, m as U, n as Y, l as Z } from "./client-C5fy1-Lh.js";
|
|
2
|
+
import { b as ss, F as es, a as as, c as ts, m as rs, p as os, t as is, w as ns } from "./mount-jsbS9qm4.js";
|
|
5
3
|
export {
|
|
6
4
|
a as ComputedSignal,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
5
|
+
t as Easing,
|
|
6
|
+
r as FIBO_INTERACTION_FX_CSS,
|
|
7
|
+
ss as Fibo,
|
|
8
|
+
es as FiboApp,
|
|
9
|
+
as as FiboAppBuilder,
|
|
10
|
+
o as FiboStyles,
|
|
11
|
+
i as FineGrainText,
|
|
12
|
+
n as INTERACTION_EFFECTS,
|
|
13
|
+
l as MOTION_PRESETS,
|
|
14
|
+
u as MotionStyles,
|
|
15
|
+
S as Observable,
|
|
16
|
+
c as Observer,
|
|
17
|
+
p as Presence,
|
|
18
|
+
g as ProviderWrapper,
|
|
19
|
+
b as ReactivityRoot,
|
|
20
|
+
T as Reveal,
|
|
21
|
+
v as ScrollProgress,
|
|
22
|
+
E as Signal,
|
|
23
|
+
C as ValueBuilder,
|
|
24
|
+
F as applyResponsiveStyles,
|
|
25
|
+
R as bindText,
|
|
26
|
+
d as computed,
|
|
27
|
+
m as createReactivityRoot,
|
|
28
|
+
f as createStore,
|
|
29
|
+
ts as cssCurve,
|
|
30
|
+
I as endSsrRequest,
|
|
31
|
+
y as ensureInteractionFxCss,
|
|
32
|
+
O as getCss,
|
|
33
|
+
P as getCurrentScope,
|
|
34
|
+
x as getMotionCss,
|
|
35
|
+
M as getStyleTag,
|
|
36
|
+
N as interactionEffectClass,
|
|
37
|
+
w as interactionEffectKebab,
|
|
38
|
+
rs as mount,
|
|
39
|
+
A as normalizeInteractionEffect,
|
|
40
|
+
B as observable,
|
|
41
|
+
os as page,
|
|
42
|
+
_ as resolveCssEase,
|
|
43
|
+
V as runInScope,
|
|
44
|
+
h as scrollTo,
|
|
45
|
+
q as signal,
|
|
46
|
+
z as springEase,
|
|
47
|
+
G as startViewTransition,
|
|
48
|
+
K as supportsScrollTimeline,
|
|
49
|
+
W as supportsViewTimeline,
|
|
50
|
+
is as toElement,
|
|
51
|
+
X as useBuilderState,
|
|
52
|
+
j as useMountTransition,
|
|
53
|
+
k as useObservable,
|
|
54
|
+
D as usePrefersReducedMotion,
|
|
55
|
+
H as useProvider,
|
|
56
|
+
J as useReactiveStore,
|
|
57
|
+
L as useScrollProgress,
|
|
58
|
+
Q as useSignal,
|
|
59
|
+
U as useSpring,
|
|
60
|
+
Y as useStagger,
|
|
61
|
+
Z as useTransition,
|
|
62
|
+
ns as withFiboStyles
|
|
63
63
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
var U = Object.defineProperty;
|
|
3
2
|
var G = (n, s, e) => s in n ? U(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
4
3
|
var r = (n, s, e) => G(n, typeof s != "symbol" ? s + "" : s, e);
|
|
5
4
|
import t from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { T as O } from "./index-DbaNIwWW.js";
|
|
9
|
-
import { R as J } from "./index-BMIo5j9Y.js";
|
|
5
|
+
import { at as C, au as F, a4 as j, $ as O } from "./client-C5fy1-Lh.js";
|
|
6
|
+
import { R as J } from "./index-CaDcYvIh.js";
|
|
10
7
|
import { jsxs as $, jsx as f } from "react/jsx-runtime";
|
|
11
8
|
const K = ({ size: n }) => t.createElement(
|
|
12
9
|
"svg",
|
|
@@ -24,11 +21,11 @@ const K = ({ size: n }) => t.createElement(
|
|
|
24
21
|
fill: "#6a6a6a"
|
|
25
22
|
})
|
|
26
23
|
), Q = t.memo((n) => {
|
|
27
|
-
const { image: s, size: e, border: a, shape: i, status: o, initials: h, icon: d, className: y, style: p } = n, c = typeof e == "number" ? `${e}px` : e, u = typeof e == "number" ? e : 40,
|
|
24
|
+
const { image: s, size: e, border: a, shape: i, status: o, initials: h, icon: d, className: y, style: p } = n, c = typeof e == "number" ? `${e}px` : e, u = typeof e == "number" ? e : 40, S = {
|
|
28
25
|
circle: "50%",
|
|
29
26
|
rounded: "24%",
|
|
30
27
|
square: "0"
|
|
31
|
-
},
|
|
28
|
+
}, z = {
|
|
32
29
|
none: "transparent",
|
|
33
30
|
online: "#10B981",
|
|
34
31
|
offline: "#9CA3AF",
|
|
@@ -41,7 +38,7 @@ const K = ({ size: n }) => t.createElement(
|
|
|
41
38
|
height: "28%",
|
|
42
39
|
minWidth: "10px",
|
|
43
40
|
minHeight: "10px",
|
|
44
|
-
backgroundColor:
|
|
41
|
+
backgroundColor: z[o],
|
|
45
42
|
borderRadius: "50%",
|
|
46
43
|
border: "3px solid #ffffff",
|
|
47
44
|
boxSizing: "content-box"
|
|
@@ -50,7 +47,7 @@ const K = ({ size: n }) => t.createElement(
|
|
|
50
47
|
position: "relative",
|
|
51
48
|
width: c,
|
|
52
49
|
height: c,
|
|
53
|
-
borderRadius:
|
|
50
|
+
borderRadius: S[i],
|
|
54
51
|
backgroundImage: s ? `url(${s})` : void 0,
|
|
55
52
|
backgroundColor: s ? void 0 : (p == null ? void 0 : p.backgroundColor) || (h ? "#ddd" : "transparent"),
|
|
56
53
|
backgroundSize: "cover",
|
|
@@ -115,7 +112,7 @@ class X extends F {
|
|
|
115
112
|
return t.createElement(Q, e);
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
|
-
const
|
|
115
|
+
const ye = C(X), Y = t.memo((n) => {
|
|
119
116
|
const { text: s, icon: e, variant: a, intent: i, shape: o, className: h, style: d } = n, y = {
|
|
120
117
|
none: { bg: "#F9FAFB", text: "#6B7280", border: "#E5E7EB" },
|
|
121
118
|
success: { bg: "#ECFDF5", text: "#059669", border: "transparent" },
|
|
@@ -137,17 +134,17 @@ const ve = C(X), Y = t.memo((n) => {
|
|
|
137
134
|
dot: { backgroundColor: "transparent", color: "#6B7280", border: "1px solid #E5E7EB", padding: "4px 10px" }
|
|
138
135
|
}[a] };
|
|
139
136
|
if (i !== "none") {
|
|
140
|
-
const
|
|
137
|
+
const S = y[i];
|
|
141
138
|
if (a === "solid") {
|
|
142
|
-
const
|
|
139
|
+
const z = {
|
|
143
140
|
none: "#111827",
|
|
144
141
|
success: "#059669",
|
|
145
142
|
warning: "#D97706",
|
|
146
143
|
error: "#E11D48",
|
|
147
144
|
info: "#2563EB"
|
|
148
145
|
};
|
|
149
|
-
c.backgroundColor =
|
|
150
|
-
} else a === "dot" ? (c.color = "#374151", c.borderColor = "#E5E7EB") : (c.backgroundColor =
|
|
146
|
+
c.backgroundColor = z[i], c.color = "#FFFFFF";
|
|
147
|
+
} else a === "dot" ? (c.color = "#374151", c.borderColor = "#E5E7EB") : (c.backgroundColor = S.bg, c.color = S.text, S.border ? c.border = `1px solid ${S.border}` : c.border = "none");
|
|
151
148
|
}
|
|
152
149
|
const u = {
|
|
153
150
|
pill: "9999px",
|
|
@@ -216,7 +213,7 @@ class Z extends F {
|
|
|
216
213
|
return t.createElement(Y, e);
|
|
217
214
|
}
|
|
218
215
|
}
|
|
219
|
-
const
|
|
216
|
+
const _e = C(Z), ee = t.memo((n) => {
|
|
220
217
|
const { text: s, htmlFor: e, required: a, className: i, style: o, ...h } = n;
|
|
221
218
|
return t.createElement(
|
|
222
219
|
"label",
|
|
@@ -259,7 +256,7 @@ class te extends F {
|
|
|
259
256
|
return t.createElement(ee, e);
|
|
260
257
|
}
|
|
261
258
|
}
|
|
262
|
-
const
|
|
259
|
+
const ve = C(te), re = t.memo((n) => {
|
|
263
260
|
const {
|
|
264
261
|
src: s,
|
|
265
262
|
alt: e,
|
|
@@ -337,7 +334,7 @@ class se extends F {
|
|
|
337
334
|
return t.createElement(re, o);
|
|
338
335
|
}
|
|
339
336
|
}
|
|
340
|
-
const
|
|
337
|
+
const ke = C(se), ne = t.memo((n) => {
|
|
341
338
|
const { size: s, color: e, variant: a = "circle", className: i, style: o, ...h } = n, y = typeof s == "number" ? s : {
|
|
342
339
|
sm: 16,
|
|
343
340
|
md: 24,
|
|
@@ -444,7 +441,7 @@ class ae extends F {
|
|
|
444
441
|
return t.createElement(ne, e);
|
|
445
442
|
}
|
|
446
443
|
}
|
|
447
|
-
const
|
|
444
|
+
const Ee = C(ae), ie = t.memo((n) => {
|
|
448
445
|
const { width: s, height: e, shape: a, className: i, style: o, ...h } = n, d = ["animate-pulse", "bg-gray-200", "loading-skeleton"];
|
|
449
446
|
return a === "circle" ? d.push("rounded-full") : a === "rounded-sm" ? d.push("rounded-sm") : a === "rounded-md" ? d.push("rounded-md") : a === "rounded-lg" ? d.push("rounded-lg") : a === "square" ? d.push("rounded-none") : d.push("rounded"), t.createElement("div", {
|
|
450
447
|
className: [...d, i].filter(Boolean).join(" "),
|
|
@@ -487,7 +484,7 @@ class le extends F {
|
|
|
487
484
|
return t.createElement(ie, e);
|
|
488
485
|
}
|
|
489
486
|
}
|
|
490
|
-
const
|
|
487
|
+
const we = C(le), M = {
|
|
491
488
|
Heart: /* @__PURE__ */ f("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ f("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) }),
|
|
492
489
|
Eth: /* @__PURE__ */ f("svg", { width: "14", height: "24", viewBox: "0 0 32 32", fill: "currentColor", children: /* @__PURE__ */ f("path", { d: "M15.925 23.96l-9.815-5.8 9.815 13.84 9.825-13.84-9.825 5.8zm0-23.96l-9.815 16.275 9.815 5.675 9.825-5.675-9.825-16.275zm0 20.3l-8.915-5.265 8.915-12.42 8.925 12.42-8.925 5.265z" }) }),
|
|
493
490
|
Verify: /* @__PURE__ */ f("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "#3B82F6", stroke: "none", children: /* @__PURE__ */ f("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) }),
|
|
@@ -589,7 +586,7 @@ class ce extends F {
|
|
|
589
586
|
return t.createElement(oe, e);
|
|
590
587
|
}
|
|
591
588
|
}
|
|
592
|
-
const
|
|
589
|
+
const Ne = C(ce), he = t.memo((n) => {
|
|
593
590
|
const {
|
|
594
591
|
value: s,
|
|
595
592
|
max: e,
|
|
@@ -602,23 +599,23 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
602
599
|
size: p,
|
|
603
600
|
strokeWidth: c,
|
|
604
601
|
segments: u,
|
|
605
|
-
gap:
|
|
606
|
-
trackColor:
|
|
602
|
+
gap: S,
|
|
603
|
+
trackColor: z,
|
|
607
604
|
children: A,
|
|
608
605
|
className: k,
|
|
609
606
|
style: w,
|
|
610
607
|
...N
|
|
611
608
|
} = n, _ = Math.min(100, Math.max(0, s / e * 100)), v = a || "#3B82F6";
|
|
612
609
|
if (o === "ring") {
|
|
613
|
-
const m = p ?? (typeof i == "number" ? i : 190), g = c ?? 2.4, x = Array.isArray(u) && u.length ? u : [{ value: _, color: v }], l =
|
|
614
|
-
let
|
|
610
|
+
const m = p ?? (typeof i == "number" ? i : 190), g = c ?? 2.4, x = Array.isArray(u) && u.length ? u : [{ value: _, color: v }], l = S ?? (x.length > 1 ? 5e-3 : 0), b = 88, E = 2 * Math.PI * b, I = x.reduce((L, D) => L + D.value, 0) || 1;
|
|
611
|
+
let B = 0;
|
|
615
612
|
const W = [];
|
|
616
|
-
return
|
|
613
|
+
return z && W.push(t.createElement("circle", {
|
|
617
614
|
key: "track",
|
|
618
615
|
cx: 100,
|
|
619
616
|
cy: 100,
|
|
620
617
|
r: b,
|
|
621
|
-
stroke:
|
|
618
|
+
stroke: z,
|
|
622
619
|
strokeWidth: g,
|
|
623
620
|
fill: "none"
|
|
624
621
|
})), x.forEach((L, D) => {
|
|
@@ -632,10 +629,10 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
632
629
|
strokeWidth: L.strokeWidth ?? g,
|
|
633
630
|
fill: "none",
|
|
634
631
|
strokeDasharray: `${T} ${E}`,
|
|
635
|
-
strokeDashoffset: -
|
|
632
|
+
strokeDashoffset: -B,
|
|
636
633
|
transform: "rotate(-90 100 100)",
|
|
637
634
|
style: { transition: "all .4s" }
|
|
638
|
-
})),
|
|
635
|
+
})), B += H * E;
|
|
639
636
|
}), t.createElement("div", {
|
|
640
637
|
className: `fibo-progress-ring relative inline-flex items-center justify-center ${k || ""}`,
|
|
641
638
|
style: { width: m, height: m, ...w },
|
|
@@ -733,7 +730,7 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
733
730
|
style: w,
|
|
734
731
|
...N
|
|
735
732
|
}, m.map((x, l) => {
|
|
736
|
-
const b = l < g, E = l === g, I = l === m.length - 1,
|
|
733
|
+
const b = l < g, E = l === g, I = l === m.length - 1, B = b || E ? v : "#E5E7EB", W = b ? t.createElement("span", {}, "✓") : l + 1;
|
|
737
734
|
return t.createElement("div", {
|
|
738
735
|
key: l,
|
|
739
736
|
className: "relative flex items-start gap-4 pb-8 last:pb-0"
|
|
@@ -747,9 +744,9 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
747
744
|
key: "dot",
|
|
748
745
|
className: "relative z-10 w-10 h-10 rounded-full flex items-center justify-center border-2 bg-white transition-all duration-300 shrink-0 text-sm font-bold shadow-sm",
|
|
749
746
|
style: {
|
|
750
|
-
borderColor:
|
|
751
|
-
color: b ? "#fff" : E ?
|
|
752
|
-
backgroundColor: b ?
|
|
747
|
+
borderColor: B,
|
|
748
|
+
color: b ? "#fff" : E ? B : "#9CA3AF",
|
|
749
|
+
backgroundColor: b ? B : "#fff"
|
|
753
750
|
}
|
|
754
751
|
}, W),
|
|
755
752
|
t.createElement("div", { key: "content", className: "pt-2" }, [
|
|
@@ -981,7 +978,7 @@ class de extends F {
|
|
|
981
978
|
return t.createElement(he, e);
|
|
982
979
|
}
|
|
983
980
|
}
|
|
984
|
-
const
|
|
981
|
+
const Ce = C(de), ue = t.memo((n) => {
|
|
985
982
|
const {
|
|
986
983
|
source: s,
|
|
987
984
|
className: e,
|
|
@@ -1016,16 +1013,16 @@ class me extends F {
|
|
|
1016
1013
|
return t.createElement(ue, i);
|
|
1017
1014
|
}
|
|
1018
1015
|
}
|
|
1019
|
-
const
|
|
1016
|
+
const Fe = C(me);
|
|
1020
1017
|
export {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1018
|
+
ye as A,
|
|
1019
|
+
_e as B,
|
|
1020
|
+
ke as I,
|
|
1021
|
+
ve as L,
|
|
1022
|
+
Ce as P,
|
|
1023
|
+
Ee as S,
|
|
1024
|
+
we as a,
|
|
1025
|
+
Ne as b,
|
|
1026
|
+
Fe as c,
|
|
1030
1027
|
M as d
|
|
1031
1028
|
};
|