fiboui 2.4.2 → 2.4.4
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 +103 -146
- package/dist/{FineGrain-D7wH1QxC.js → FineGrain-CvcJ5OxF.js} +1 -1
- package/dist/{builder-CCVmfPD1.js → builder-B5cebEWZ.js} +356 -320
- package/dist/content.js +3 -3
- package/dist/core.js +40 -39
- package/dist/{index-BK1AwJ9O.js → index-BMIo5j9Y.js} +1 -1
- package/dist/{index-CVPzf0A9.js → index-BxH8dhoT.js} +3 -2
- package/dist/{index-R-gUALvW.js → index-DGQVwcWx.js} +27 -27
- package/dist/{index-Cb05sNOU.js → index-DRVdVimz.js} +4 -4
- package/dist/{index-BVpNTDKn.js → index-DbaNIwWW.js} +2 -2
- package/dist/{index-CHXOPJU-.js → index-MeDbhMEg.js} +189 -185
- package/dist/{index-Bdphg-MS.js → index-orKQGpHl.js} +3 -3
- package/dist/index.d.ts +12 -1
- package/dist/index.js +133 -132
- package/dist/interactive.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/{mount-Dx2s-imU.js → mount-DbMVakA4.js} +35 -35
- package/dist/{provider-Muljv62_.js → provider-BTNE3N5g.js} +1 -1
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +2 -2
- package/dist/{themeData-CmTJt3dU.js → themeData-Dtm0M_mF.js} +80 -80
- package/package.json +3 -10
package/dist/content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-
|
|
3
|
-
import { T as x } from "./index-
|
|
4
|
-
import { I as f } from "./index-
|
|
2
|
+
import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-DRVdVimz.js";
|
|
3
|
+
import { T as x } from "./index-DbaNIwWW.js";
|
|
4
|
+
import { I as f } from "./index-BMIo5j9Y.js";
|
|
5
5
|
export {
|
|
6
6
|
s as Alert,
|
|
7
7
|
r as Avatar,
|
package/dist/core.js
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as a, F as t, x as r, I as o, M as i, w as n, O as l, d as u, P as c, R as
|
|
3
|
-
import { E as z, l as
|
|
4
|
-
import { F as
|
|
2
|
+
import { C as a, F as t, x as r, I as o, M as i, w as n, O as l, d as u, P as c, R as S, f as p, h as g, S as b, V as T, c as v, b as E, a as d, B as C, v as F, z as R, g as f, y as m, A as I, q as O, t as P, p as y, o as x, n as M, r as A, i as B, s as N, m as _, j as V, l as w, k as h, u as j, e as k } from "./builder-B5cebEWZ.js";
|
|
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";
|
|
5
5
|
export {
|
|
6
6
|
a as ComputedSignal,
|
|
7
7
|
z as Easing,
|
|
8
8
|
t as FIBO_INTERACTION_FX_CSS,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
G as Fibo,
|
|
10
|
+
K as FiboApp,
|
|
11
|
+
W as FiboAppBuilder,
|
|
12
12
|
r as FiboStyles,
|
|
13
|
-
|
|
13
|
+
os as FineGrainText,
|
|
14
14
|
o as INTERACTION_EFFECTS,
|
|
15
15
|
i as MOTION_PRESETS,
|
|
16
16
|
n as MotionStyles,
|
|
17
17
|
l as Observable,
|
|
18
18
|
u as Observer,
|
|
19
|
-
|
|
19
|
+
X as Presence,
|
|
20
20
|
c as ProviderWrapper,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
S as ReactivityRoot,
|
|
22
|
+
p as Reveal,
|
|
23
23
|
g as ScrollProgress,
|
|
24
24
|
b as Signal,
|
|
25
25
|
T as ValueBuilder,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
D as applyResponsiveStyles,
|
|
27
|
+
is as bindText,
|
|
28
28
|
v as computed,
|
|
29
29
|
E as createReactivityRoot,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
d as createStore,
|
|
31
|
+
H as cssCurve,
|
|
32
|
+
C as endSsrRequest,
|
|
32
33
|
F as ensureInteractionFxCss,
|
|
33
|
-
|
|
34
|
+
R as getCss,
|
|
34
35
|
f as getCurrentScope,
|
|
35
36
|
m as getMotionCss,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
I as getStyleTag,
|
|
38
|
+
O as interactionEffectClass,
|
|
39
|
+
P as interactionEffectKebab,
|
|
40
|
+
J as mount,
|
|
41
|
+
y as normalizeInteractionEffect,
|
|
42
|
+
x as observable,
|
|
43
|
+
M as resolveCssEase,
|
|
44
|
+
A as runInScope,
|
|
45
|
+
B as scrollTo,
|
|
45
46
|
N as signal,
|
|
46
47
|
_ as springEase,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
48
|
+
V as startViewTransition,
|
|
49
|
+
w as supportsScrollTimeline,
|
|
50
|
+
h as supportsViewTimeline,
|
|
51
|
+
L as toElement,
|
|
52
|
+
j as useBuilderState,
|
|
53
|
+
Q as useMountTransition,
|
|
54
|
+
U as useObservable,
|
|
55
|
+
Y as usePrefersReducedMotion,
|
|
56
|
+
k as useProvider,
|
|
57
|
+
Z as useReactiveStore,
|
|
58
|
+
$ as useScrollProgress,
|
|
59
|
+
ss as useSignal,
|
|
60
|
+
es as useSpring,
|
|
61
|
+
as as useStagger,
|
|
62
|
+
ts as useTransition
|
|
62
63
|
};
|
|
@@ -3,7 +3,7 @@ var m = Object.defineProperty;
|
|
|
3
3
|
var p = (e, t, s) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
4
4
|
var r = (e, t, s) => p(e, typeof t != "symbol" ? t + "" : t, s);
|
|
5
5
|
import o from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { D as a, E as u } from "./builder-B5cebEWZ.js";
|
|
7
7
|
class g extends u {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -3,7 +3,7 @@ var H = Object.defineProperty;
|
|
|
3
3
|
var O = (c, l, e) => l in c ? H(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e;
|
|
4
4
|
var r = (c, l, e) => O(c, typeof l != "symbol" ? l + "" : l, e);
|
|
5
5
|
import t, { useState as M, useEffect as j, useRef as F } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { D as $, E as D, S as P } from "./builder-B5cebEWZ.js";
|
|
7
7
|
import { t as L } from "./bundle-mjs-wppB-TKB.js";
|
|
8
8
|
const q = t.memo((c) => {
|
|
9
9
|
const {
|
|
@@ -37,7 +37,8 @@ const q = t.memo((c) => {
|
|
|
37
37
|
"fibo-button",
|
|
38
38
|
"inline-flex items-center justify-center whitespace-nowrap",
|
|
39
39
|
z ? "" : "font-semibold",
|
|
40
|
-
|
|
40
|
+
// Resting scale(1) so active:scale eases instead of snapping from none.
|
|
41
|
+
n ? "" : "scale-100 active:scale-[0.96] transform transition-transform duration-200 ease-out",
|
|
41
42
|
d ? "cursor-not-allowed opacity-60" : "cursor-pointer",
|
|
42
43
|
e === "raw" || I ? "" : g[o],
|
|
43
44
|
e === "raw" || C ? "" : S,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var r = (n, s, e) =>
|
|
5
|
-
import i, { useState as
|
|
6
|
-
import {
|
|
2
|
+
var Q = Object.defineProperty;
|
|
3
|
+
var U = (n, s, e) => s in n ? Q(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
4
|
+
var r = (n, s, e) => U(n, typeof s != "symbol" ? s + "" : s, e);
|
|
5
|
+
import i, { useState as V, useRef as D, useLayoutEffect as X } from "react";
|
|
6
|
+
import { D as _, E as b, U as q, Q as F, P as G } from "./builder-B5cebEWZ.js";
|
|
7
7
|
import { P as W } from "./PluginManager-D5-ApsSN.js";
|
|
8
|
-
import { R as
|
|
9
|
-
import { T as ee } from "./index-
|
|
8
|
+
import { R as J, I as K } from "./index-BMIo5j9Y.js";
|
|
9
|
+
import { T as ee } from "./index-DbaNIwWW.js";
|
|
10
10
|
import { e as te, L as ie } from "./Link-ElmaMZB8.js";
|
|
11
11
|
class se extends b {
|
|
12
12
|
build() {
|
|
@@ -167,7 +167,7 @@ const ze = _(oe), le = i.memo((n) => {
|
|
|
167
167
|
[c, ...d]
|
|
168
168
|
);
|
|
169
169
|
return f.size > 0 ? i.createElement(
|
|
170
|
-
|
|
170
|
+
G,
|
|
171
171
|
{
|
|
172
172
|
providers: f,
|
|
173
173
|
children: p
|
|
@@ -211,10 +211,10 @@ class ae extends b {
|
|
|
211
211
|
}
|
|
212
212
|
_normalizeBar(e) {
|
|
213
213
|
return this._isLayoutBarConfig(e) ? {
|
|
214
|
-
content: i.createElement(i.Fragment, null, ...
|
|
214
|
+
content: i.createElement(i.Fragment, null, ...q(e.children)),
|
|
215
215
|
fixed: e.fixed ?? !1
|
|
216
216
|
} : {
|
|
217
|
-
content:
|
|
217
|
+
content: F(e),
|
|
218
218
|
fixed: !1
|
|
219
219
|
};
|
|
220
220
|
}
|
|
@@ -222,8 +222,8 @@ class ae extends b {
|
|
|
222
222
|
return !e || typeof e != "object" || i.isValidElement(e) || "build" in e && typeof e.build == "function" ? !1 : "children" in e && !("type" in e);
|
|
223
223
|
}
|
|
224
224
|
build() {
|
|
225
|
-
var
|
|
226
|
-
const e = this.processChildren(), t = this._structure, o = this._headerBar && ((
|
|
225
|
+
var N, C, z, j, y, E, S, L, R, $, A, O, l, a, m, g, I, M, H, P, T, Y;
|
|
226
|
+
const e = this.processChildren(), t = this._structure, o = this._headerBar && ((N = t.header) == null ? void 0 : N.visible) !== !1, h = this._footerBar && ((C = t.footer) == null ? void 0 : C.visible) !== !1, c = this._sideBarLeft && ((z = t.sidebarLeft) == null ? void 0 : z.visible) !== !1, d = this._sideBarRight && ((j = t.sidebarRight) == null ? void 0 : j.visible) !== !1, f = c && ((y = t.sidebarLeft) == null ? void 0 : y.fullHeight), p = d && ((E = t.sidebarRight) == null ? void 0 : E.fullHeight), B = i.createElement(
|
|
227
227
|
"div",
|
|
228
228
|
{
|
|
229
229
|
key: "scaffold-middle",
|
|
@@ -318,7 +318,7 @@ class ae extends b {
|
|
|
318
318
|
i.createElement("div", {
|
|
319
319
|
key: "sidebar-left-full",
|
|
320
320
|
style: {
|
|
321
|
-
width: (
|
|
321
|
+
width: (T = t.sidebarLeft) == null ? void 0 : T.width,
|
|
322
322
|
overflowY: "auto",
|
|
323
323
|
borderRight: "1px solid var(--fibo-outline, #e0e0e0)",
|
|
324
324
|
backgroundColor: "var(--fibo-surface, #ffffff)",
|
|
@@ -408,17 +408,17 @@ class ce extends b {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
const Re = _(ce), de = i.memo((n) => {
|
|
411
|
-
const { width: s = 260, collapsed: e, className: t, style: o, children: h, ...c } = n, d = te(), f = (d == null ? void 0 : d.currentPath) ?? "", p = e ? 80 : s, w = W.getInstance().getSidebarItems().map((u,
|
|
411
|
+
const { width: s = 260, collapsed: e, className: t, style: o, children: h, ...c } = n, d = te(), f = (d == null ? void 0 : d.currentPath) ?? "", p = e ? 80 : s, w = W.getInstance().getSidebarItems().map((u, k) => {
|
|
412
412
|
const x = f === u.path;
|
|
413
413
|
return i.createElement(ie, {
|
|
414
|
-
key: `plugin-item-${u.path ||
|
|
414
|
+
key: `plugin-item-${u.path || k}`,
|
|
415
415
|
to: u.path,
|
|
416
416
|
className: "no-underline block mb-1",
|
|
417
|
-
children:
|
|
417
|
+
children: J().padding(12).alignItems("center").gap(12).className(`
|
|
418
418
|
transition-colors duration-200 rounded-lg mx-2
|
|
419
419
|
${x ? "bg-primary/10 text-primary" : "text-gray-600 hover:bg-gray-100"}
|
|
420
420
|
`).children([
|
|
421
|
-
u.icon ?
|
|
421
|
+
u.icon ? K(u.icon).size(20).build() : null,
|
|
422
422
|
e ? null : ee(u.label).style({ fontSize: 14 }).weight(500).build()
|
|
423
423
|
].filter(Boolean)).build()
|
|
424
424
|
});
|
|
@@ -459,7 +459,7 @@ class fe extends b {
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
const $e = _(fe), ue = i.memo((n) => {
|
|
462
|
-
const { sidebar: s, header: e, children: t, className: o, style: h, ...c } = n, [d, f] =
|
|
462
|
+
const { sidebar: s, header: e, children: t, className: o, style: h, ...c } = n, [d, f] = V(!1);
|
|
463
463
|
return i.createElement(
|
|
464
464
|
"div",
|
|
465
465
|
{
|
|
@@ -517,10 +517,10 @@ class me extends b {
|
|
|
517
517
|
r(this, "_header");
|
|
518
518
|
}
|
|
519
519
|
sidebar(e) {
|
|
520
|
-
return this._sidebar =
|
|
520
|
+
return this._sidebar = F(e), this;
|
|
521
521
|
}
|
|
522
522
|
header(e) {
|
|
523
|
-
return this._header =
|
|
523
|
+
return this._header = F(e), this;
|
|
524
524
|
}
|
|
525
525
|
build() {
|
|
526
526
|
const e = {
|
|
@@ -666,19 +666,19 @@ const Me = _(be), ye = i.memo((n) => {
|
|
|
666
666
|
containerHeight: c = 500,
|
|
667
667
|
className: d,
|
|
668
668
|
style: f
|
|
669
|
-
} = n, [p, B] =
|
|
669
|
+
} = n, [p, B] = V(0), w = D(null), u = D(/* @__PURE__ */ new Map()), k = D(/* @__PURE__ */ new Map()), x = s.length, v = e !== void 0, N = (l) => v ? e : k.current.get(l) ?? t, C = (l) => {
|
|
670
670
|
if (v)
|
|
671
671
|
return l * e;
|
|
672
672
|
let a = 0;
|
|
673
673
|
for (let m = 0; m < l; m++)
|
|
674
|
-
a +=
|
|
674
|
+
a += N(m);
|
|
675
675
|
return a;
|
|
676
676
|
}, z = () => {
|
|
677
677
|
if (v)
|
|
678
678
|
return x * e;
|
|
679
679
|
let l = 0;
|
|
680
680
|
for (let a = 0; a < x; a++)
|
|
681
|
-
l +=
|
|
681
|
+
l += N(a);
|
|
682
682
|
return l;
|
|
683
683
|
}, y = Math.max(0, ((l) => {
|
|
684
684
|
if (v)
|
|
@@ -697,18 +697,18 @@ const Me = _(be), ye = i.memo((n) => {
|
|
|
697
697
|
} else {
|
|
698
698
|
let l = C(y), a = y;
|
|
699
699
|
for (; l < p + c + h * t && a < x; )
|
|
700
|
-
l +=
|
|
700
|
+
l += N(a), a++;
|
|
701
701
|
E = Math.min(x, a);
|
|
702
702
|
}
|
|
703
|
-
const S = s.slice(y, E), L = C(y), R = z(), [$, A] =
|
|
704
|
-
|
|
703
|
+
const S = s.slice(y, E), L = C(y), R = z(), [$, A] = V(0);
|
|
704
|
+
X(() => {
|
|
705
705
|
if (!o || v) return;
|
|
706
706
|
let l = !1;
|
|
707
707
|
S.forEach((a, m) => {
|
|
708
708
|
const g = y + m, I = u.current.get(g);
|
|
709
709
|
if (I) {
|
|
710
710
|
const H = I.getBoundingClientRect().height;
|
|
711
|
-
H > 0 &&
|
|
711
|
+
H > 0 && k.current.get(g) !== H && (k.current.set(g, H), l = !0);
|
|
712
712
|
}
|
|
713
713
|
}), l && A((a) => a + 1);
|
|
714
714
|
}, [S, y, o, v, $]);
|
|
@@ -3,10 +3,10 @@ var U = Object.defineProperty;
|
|
|
3
3
|
var G = (n, s, e) => s in n ? U(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
4
4
|
var r = (n, s, e) => G(n, typeof s != "symbol" ? s + "" : s, e);
|
|
5
5
|
import t from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { B as j } from "./index-
|
|
8
|
-
import { T as O } from "./index-
|
|
9
|
-
import { R as J } from "./index-
|
|
6
|
+
import { D as C, E as F } from "./builder-B5cebEWZ.js";
|
|
7
|
+
import { B as j } from "./index-orKQGpHl.js";
|
|
8
|
+
import { T as O } from "./index-DbaNIwWW.js";
|
|
9
|
+
import { R as J } from "./index-BMIo5j9Y.js";
|
|
10
10
|
import { jsxs as $, jsx as f } from "react/jsx-runtime";
|
|
11
11
|
const K = ({ size: n }) => t.createElement(
|
|
12
12
|
"svg",
|
|
@@ -3,8 +3,8 @@ var f = Object.defineProperty;
|
|
|
3
3
|
var b = (i, e, t) => e in i ? f(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
4
4
|
var a = (i, e, t) => b(i, typeof e != "symbol" ? e + "" : e, t);
|
|
5
5
|
import o from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { F as g } from "./FineGrain-
|
|
6
|
+
import { D as c, E as x } from "./builder-B5cebEWZ.js";
|
|
7
|
+
import { F as g } from "./FineGrain-CvcJ5OxF.js";
|
|
8
8
|
const p = {
|
|
9
9
|
h1: {
|
|
10
10
|
fontSize: "var(--fibo-text-h1-size, 2.25rem)",
|