fiboui 2.7.0 → 2.8.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 +4 -0
- package/dist/{client-CGjHCx8F.js → client-BxtRoL1i.js} +5990 -5415
- package/dist/content.js +3 -3
- package/dist/core.js +2 -2
- package/dist/{icons-GEqYd2M9.js → icons-BKXx-EqO.js} +9 -9
- package/dist/{index-Db8lVjta.js → index-B0FFbOUi.js} +32 -24
- package/dist/{index-7bieEGAP.js → index-DD-zM-WX.js} +21 -21
- package/dist/{index-D-ljLuf8.js → index-DF6X_GZs.js} +1 -1
- package/dist/index-DUohJXW2.js +140 -0
- package/dist/{index-C4qvvr03.js → index-E-wbUFLi.js} +35 -35
- package/dist/index.d.ts +2061 -19
- package/dist/index.js +1991 -1730
- package/dist/interactive.js +2 -2
- package/dist/layout.js +3 -3
- package/dist/{metadata-3YYH1uiS.js → metadata-YreqtxtK.js} +18 -18
- package/dist/navigation.js +2 -2
- package/dist/{page-CYqQOLXe.js → page-BiOQBd4k.js} +9 -9
- package/dist/server.js +2300 -2038
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +2 -2
- package/dist/index-DVApKYWt.js +0 -217
|
@@ -2,16 +2,16 @@ var Ct = Object.defineProperty;
|
|
|
2
2
|
var Et = (e, r, t) => r in e ? Ct(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var n = (e, r, t) => Et(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
4
|
import s from "react";
|
|
5
|
-
import { aT as A, aU as T,
|
|
6
|
-
import { S as D, C as F } from "./index-
|
|
7
|
-
import { B as yt } from "./index-
|
|
8
|
-
import { B as Z, I as ot, a as L, A as Tt } from "./icons-
|
|
5
|
+
import { aT as A, aU as T, aW as C, aZ as M, aX as P, b0 as it, b1 as bt, b4 as kt, bh as It, au as B, F as nt, bi as lt, bj as Bt, bk as At, a3 as W, a8 as x } from "./client-BxtRoL1i.js";
|
|
6
|
+
import { S as D, C as F } from "./index-B0FFbOUi.js";
|
|
7
|
+
import { B as yt } from "./index-DUohJXW2.js";
|
|
8
|
+
import { B as Z, I as ot, a as L, A as Tt } from "./icons-BKXx-EqO.js";
|
|
9
9
|
function j(e, r) {
|
|
10
10
|
if (!(typeof r != "string" || !C(r)))
|
|
11
|
-
for (const t of
|
|
11
|
+
for (const t of M(r))
|
|
12
12
|
e.bindSignal(t);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function X(e) {
|
|
15
15
|
return typeof e != "string" ? e : C(e) ? P(e) : e;
|
|
16
16
|
}
|
|
17
17
|
function z(e, r) {
|
|
@@ -32,8 +32,8 @@ function z(e, r) {
|
|
|
32
32
|
function Pt(e) {
|
|
33
33
|
return typeof e == "string" && C(e) ? P(e) : e;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return e == null || e === !1 ? null : typeof e == "string" ?
|
|
35
|
+
function Y(e) {
|
|
36
|
+
return e == null || e === !1 ? null : typeof e == "string" ? X(e) ?? e : it(e);
|
|
37
37
|
}
|
|
38
38
|
const $t = {
|
|
39
39
|
green: "var(--fibo-success, #22c55e)",
|
|
@@ -77,7 +77,7 @@ const zt = s.memo((e) => {
|
|
|
77
77
|
borderLeftColor: o
|
|
78
78
|
} : {},
|
|
79
79
|
...a
|
|
80
|
-
}, v =
|
|
80
|
+
}, v = Y(f), E = Y(g);
|
|
81
81
|
return s.createElement(
|
|
82
82
|
jt(S),
|
|
83
83
|
{
|
|
@@ -177,11 +177,11 @@ class Gt extends T {
|
|
|
177
177
|
as: S,
|
|
178
178
|
...p
|
|
179
179
|
} = this._props, h = [...this._classNames, i].filter(Boolean).join(" "), u = {
|
|
180
|
-
text:
|
|
181
|
-
subtitle:
|
|
182
|
-
number:
|
|
183
|
-
header:
|
|
184
|
-
footer:
|
|
180
|
+
text: X(o ?? l ?? this._text),
|
|
181
|
+
subtitle: X(a ?? this._subtitle),
|
|
182
|
+
number: X(c ?? this._number),
|
|
183
|
+
header: Y(this._header ?? f),
|
|
184
|
+
footer: Y(this._footer ?? g),
|
|
185
185
|
as: this._as ?? S,
|
|
186
186
|
accentColor: t,
|
|
187
187
|
style: this.getStyle(),
|
|
@@ -195,7 +195,7 @@ class Gt extends T {
|
|
|
195
195
|
const J = A(Gt);
|
|
196
196
|
function H(e, r) {
|
|
197
197
|
if (!(typeof r != "string" || !C(r)))
|
|
198
|
-
for (const t of
|
|
198
|
+
for (const t of M(r))
|
|
199
199
|
e.bindSignal(t);
|
|
200
200
|
}
|
|
201
201
|
function V(e) {
|
|
@@ -412,13 +412,13 @@ class Dt extends T {
|
|
|
412
412
|
const je = A(Dt);
|
|
413
413
|
function Ht(e, r) {
|
|
414
414
|
if (!(typeof r != "string" || !C(r)))
|
|
415
|
-
for (const t of
|
|
415
|
+
for (const t of M(r))
|
|
416
416
|
e.bindSignal(t);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Kt(e) {
|
|
419
419
|
return typeof e != "string" ? e : C(e) ? P(e) : e;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Mt(e) {
|
|
422
422
|
return e != null && typeof e == "object" && !Array.isArray(e) && typeof e.subscribe == "function" && "value" in e;
|
|
423
423
|
}
|
|
424
424
|
function Ot(e, r) {
|
|
@@ -458,7 +458,7 @@ function Ut(e, r) {
|
|
|
458
458
|
function ht(e, r) {
|
|
459
459
|
return !e || e.index !== r ? { index: r, dir: "ascending" } : { index: r, dir: e.dir === "ascending" ? "descending" : "ascending" };
|
|
460
460
|
}
|
|
461
|
-
const
|
|
461
|
+
const Xt = s.memo((e) => {
|
|
462
462
|
const {
|
|
463
463
|
data: r,
|
|
464
464
|
columns: t,
|
|
@@ -521,7 +521,7 @@ const Yt = s.memo((e) => {
|
|
|
521
521
|
onKeyDown: y ? (w) => {
|
|
522
522
|
w.key !== "Enter" && w.key !== " " || (w.preventDefault(), _((R) => ht(R, N)));
|
|
523
523
|
} : void 0
|
|
524
|
-
},
|
|
524
|
+
}, Kt(m.header) ?? m.header);
|
|
525
525
|
})
|
|
526
526
|
)
|
|
527
527
|
),
|
|
@@ -556,7 +556,7 @@ const Yt = s.memo((e) => {
|
|
|
556
556
|
])
|
|
557
557
|
).build();
|
|
558
558
|
});
|
|
559
|
-
class
|
|
559
|
+
class Yt extends T {
|
|
560
560
|
constructor() {
|
|
561
561
|
super(...arguments);
|
|
562
562
|
n(this, "_data", []);
|
|
@@ -570,7 +570,7 @@ class Xt extends T {
|
|
|
570
570
|
n(this, "_sortable", !1);
|
|
571
571
|
}
|
|
572
572
|
data(t) {
|
|
573
|
-
return
|
|
573
|
+
return Mt(t) ? (this._source = t, this.bindSignal(t), this) : (this._source = void 0, this._data = t, this);
|
|
574
574
|
}
|
|
575
575
|
columns(t) {
|
|
576
576
|
this._columns = t;
|
|
@@ -606,13 +606,13 @@ class Xt extends T {
|
|
|
606
606
|
style: this.getStyle(),
|
|
607
607
|
...this._props
|
|
608
608
|
};
|
|
609
|
-
return s.createElement(
|
|
609
|
+
return s.createElement(Xt, t);
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
const ze = A(
|
|
612
|
+
const ze = A(Yt);
|
|
613
613
|
function ft(e, r) {
|
|
614
614
|
if (!(typeof r != "string" || !C(r)))
|
|
615
|
-
for (const t of
|
|
615
|
+
for (const t of M(r))
|
|
616
616
|
e.bindSignal(t);
|
|
617
617
|
}
|
|
618
618
|
function Jt(e) {
|
|
@@ -759,7 +759,7 @@ class ne extends T {
|
|
|
759
759
|
const Ge = A(ne);
|
|
760
760
|
function et(e, r) {
|
|
761
761
|
if (!(typeof r != "string" || !C(r)))
|
|
762
|
-
for (const t of
|
|
762
|
+
for (const t of M(r))
|
|
763
763
|
e.bindSignal(t);
|
|
764
764
|
}
|
|
765
765
|
function pt(e) {
|
|
@@ -917,13 +917,13 @@ function fe(e, r) {
|
|
|
917
917
|
if (r) return r;
|
|
918
918
|
if (typeof e == "number") return de(e);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function K(e) {
|
|
921
921
|
return typeof e == "number" ? `${e}px` : ue[e] ?? (e || "16px");
|
|
922
922
|
}
|
|
923
923
|
function pe(e, r, t) {
|
|
924
924
|
return r == null && t == null ? { gap: e } : {
|
|
925
|
-
...r != null ? { rowGap:
|
|
926
|
-
...t != null ? { columnGap:
|
|
925
|
+
...r != null ? { rowGap: K(r) } : { rowGap: e },
|
|
926
|
+
...t != null ? { columnGap: K(t) } : { columnGap: e }
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
929
|
function _t(e) {
|
|
@@ -960,7 +960,7 @@ const ge = s.memo((e) => {
|
|
|
960
960
|
className: p,
|
|
961
961
|
style: h,
|
|
962
962
|
...u
|
|
963
|
-
} = e, _ = _t(r), d =
|
|
963
|
+
} = e, _ = _t(r), d = K(o), k = pe(d, g, S), $ = he(i, a), v = fe(l, c);
|
|
964
964
|
if (t === "bento") {
|
|
965
965
|
const b = [
|
|
966
966
|
{ col: 2, row: 2 },
|
|
@@ -991,7 +991,7 @@ const ge = s.memo((e) => {
|
|
|
991
991
|
}));
|
|
992
992
|
}
|
|
993
993
|
if (t === "masonry") {
|
|
994
|
-
const b = S != null ?
|
|
994
|
+
const b = S != null ? K(S) : d, m = g != null ? K(g) : d, N = {
|
|
995
995
|
columnCount: typeof i == "number" ? i : 1,
|
|
996
996
|
columnGap: b,
|
|
997
997
|
...h
|
|
@@ -1398,7 +1398,7 @@ class Ee extends T {
|
|
|
1398
1398
|
return s.createElement(Ce, t);
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
const
|
|
1401
|
+
const Ke = A(Ee), ke = s.memo((e) => {
|
|
1402
1402
|
const {
|
|
1403
1403
|
image: r,
|
|
1404
1404
|
title: t,
|
|
@@ -1458,7 +1458,7 @@ class Ie extends T {
|
|
|
1458
1458
|
return s.createElement(ke, t);
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const Me = A(Ie);
|
|
1462
1462
|
export {
|
|
1463
1463
|
De as A,
|
|
1464
1464
|
Fe as B,
|
|
@@ -1469,6 +1469,6 @@ export {
|
|
|
1469
1469
|
ze as T,
|
|
1470
1470
|
Ge as a,
|
|
1471
1471
|
We as b,
|
|
1472
|
-
|
|
1473
|
-
|
|
1472
|
+
Ke as c,
|
|
1473
|
+
Me as d
|
|
1474
1474
|
};
|