fiboui 2.8.4 → 2.8.5
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 +89 -0
- package/dist/{client-DOrZXJAN.js → client-BzMPiV64.js} +4966 -4864
- package/dist/content.d.ts +1178 -1
- package/dist/content.js +8 -8
- package/dist/core.d.ts +1545 -2
- package/dist/core.js +52 -46
- package/dist/{icons-DujcjAOD.js → icons-aP7ZHyqh.js} +7 -7
- package/dist/{index-uks8jtfK.js → index-B9YuBkEv.js} +568 -499
- package/dist/{index-CYMoWJMX.js → index-Bgt9DiVJ.js} +26 -26
- package/dist/{index-C0qI47Zw.js → index-DU4n9axe.js} +5 -5
- package/dist/{index-19mPjg_D.js → index-DWBoYvko.js} +5 -5
- package/dist/{index-rNMzRy8Y.js → index-Dd48Ov9N.js} +16 -16
- package/dist/index.d.ts +250 -116830
- package/dist/index.js +157 -151
- package/dist/interactive.d.ts +1350 -2
- package/dist/interactive.js +8 -8
- package/dist/layout.d.ts +1218 -1
- package/dist/layout.js +7 -7
- package/dist/{metadata-9Bpw89m2.js → metadata-B5v6sx60.js} +18 -18
- package/dist/navigation.d.ts +88 -1
- package/dist/navigation.js +2 -2
- package/dist/page-CHjFSSAF.js +263 -0
- package/dist/server.d.ts +1369 -2
- package/dist/server.js +2 -1
- package/dist/structure.d.ts +1345 -1
- package/dist/structure.js +9 -9
- package/dist/theme.d.ts +149 -2
- package/dist/theme.js +1 -1
- package/package.json +5 -3
- package/dist/page-BOQJIKa5.js +0 -184
|
@@ -2,7 +2,7 @@ var tt = Object.defineProperty;
|
|
|
2
2
|
var it = (e, i, t) => i in e ? tt(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
|
|
3
3
|
var h = (e, i, t) => it(e, typeof i != "symbol" ? i + "" : i, t);
|
|
4
4
|
import d from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { aZ as v, a_ as $, b2 as C, b1 as g, b4 as T, bp as w, bq as O, br as S, bs as et, bk as nt } from "./client-BzMPiV64.js";
|
|
6
6
|
function rt(e, i) {
|
|
7
7
|
if (!(typeof i != "string" || !g(i)))
|
|
8
8
|
for (const t of T(i))
|
|
@@ -36,7 +36,7 @@ function at(e, i) {
|
|
|
36
36
|
const { children: t, ...n } = i, r = t !== void 0 ? t : e;
|
|
37
37
|
return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: n };
|
|
38
38
|
}
|
|
39
|
-
class ct extends
|
|
39
|
+
class ct extends $ {
|
|
40
40
|
children(i) {
|
|
41
41
|
return I(this, i), super.children(i);
|
|
42
42
|
}
|
|
@@ -65,7 +65,7 @@ class ct extends v {
|
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
const Zt =
|
|
68
|
+
const Zt = v(ct);
|
|
69
69
|
function ft(e, i) {
|
|
70
70
|
if (!(typeof i != "string" || !g(i)))
|
|
71
71
|
for (const t of T(i))
|
|
@@ -176,7 +176,7 @@ function St(e, i, t, n, r, s, o) {
|
|
|
176
176
|
const l = i ? et({ ...e, ...i }) : { ...e }, a = yt(l, s);
|
|
177
177
|
return !(a.maxWidth != null || B(r, "max-width") || s.has("max-width")) && t != null && t !== "" && (a.maxWidth = w("maxWidth", t)), _t(a, n, r, s), bt(a, o), a;
|
|
178
178
|
}
|
|
179
|
-
class wt extends
|
|
179
|
+
class wt extends $ {
|
|
180
180
|
constructor() {
|
|
181
181
|
super(...arguments);
|
|
182
182
|
h(this, "_userPad", {});
|
|
@@ -256,7 +256,7 @@ class wt extends v {
|
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
const Ut =
|
|
259
|
+
const Ut = v(wt);
|
|
260
260
|
function xt(e, i) {
|
|
261
261
|
if (!(typeof i != "string" || !g(i)))
|
|
262
262
|
for (const t of T(i))
|
|
@@ -287,7 +287,7 @@ function kt(e, i) {
|
|
|
287
287
|
const t = i !== void 0 ? i : e;
|
|
288
288
|
return (t == null ? [] : Array.isArray(t) ? t : [t]).map(Ct);
|
|
289
289
|
}
|
|
290
|
-
const
|
|
290
|
+
const vt = d.memo((e) => {
|
|
291
291
|
const {
|
|
292
292
|
height: i = 64,
|
|
293
293
|
sticky: t,
|
|
@@ -329,7 +329,7 @@ const $t = d.memo((e) => {
|
|
|
329
329
|
y
|
|
330
330
|
) : null
|
|
331
331
|
);
|
|
332
|
-
}), N = class N extends
|
|
332
|
+
}), N = class N extends $ {
|
|
333
333
|
constructor() {
|
|
334
334
|
super(...arguments);
|
|
335
335
|
h(this, "_height", 64);
|
|
@@ -393,7 +393,7 @@ const $t = d.memo((e) => {
|
|
|
393
393
|
title: l,
|
|
394
394
|
...a
|
|
395
395
|
} = this._props, f = [this.getClassName(), t].filter(Boolean).join(" "), p = r ? { ...this.getStyle(), ...r } : this.getStyle();
|
|
396
|
-
return d.createElement(
|
|
396
|
+
return d.createElement(vt, {
|
|
397
397
|
...a,
|
|
398
398
|
height: this._height,
|
|
399
399
|
sticky: this._sticky,
|
|
@@ -408,8 +408,8 @@ const $t = d.memo((e) => {
|
|
|
408
408
|
};
|
|
409
409
|
h(N, "unstickSeq", 0);
|
|
410
410
|
let W = N;
|
|
411
|
-
const Jt =
|
|
412
|
-
function
|
|
411
|
+
const Jt = v(W);
|
|
412
|
+
function $t(e, i) {
|
|
413
413
|
if (!(typeof i != "string" || !g(i)))
|
|
414
414
|
for (const t of T(i))
|
|
415
415
|
e.bindSignal(t);
|
|
@@ -423,7 +423,7 @@ function j(e, i) {
|
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
if (typeof i == "string") {
|
|
426
|
-
|
|
426
|
+
$t(e, i);
|
|
427
427
|
return;
|
|
428
428
|
}
|
|
429
429
|
if (Array.isArray(i))
|
|
@@ -436,7 +436,7 @@ function Nt(e, i) {
|
|
|
436
436
|
const { children: t, ...n } = i, r = t !== void 0 ? t : e;
|
|
437
437
|
return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: n };
|
|
438
438
|
}
|
|
439
|
-
class At extends
|
|
439
|
+
class At extends $ {
|
|
440
440
|
constructor() {
|
|
441
441
|
super(...arguments);
|
|
442
442
|
h(this, "_alignment", "center");
|
|
@@ -490,7 +490,7 @@ class At extends v {
|
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
const Qt =
|
|
493
|
+
const Qt = v(At);
|
|
494
494
|
function Bt(e, i) {
|
|
495
495
|
if (!(typeof i != "string" || !g(i)))
|
|
496
496
|
for (const t of T(i))
|
|
@@ -527,7 +527,7 @@ function Rt(e, i) {
|
|
|
527
527
|
const { children: t, ...n } = i, r = t !== void 0 ? t : e;
|
|
528
528
|
return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: n };
|
|
529
529
|
}
|
|
530
|
-
class Et extends
|
|
530
|
+
class Et extends $ {
|
|
531
531
|
constructor() {
|
|
532
532
|
super(...arguments);
|
|
533
533
|
h(this, "_sizeHeight");
|
|
@@ -598,7 +598,7 @@ class Et extends v {
|
|
|
598
598
|
);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
const ti =
|
|
601
|
+
const ti = v(Et);
|
|
602
602
|
class Ht {
|
|
603
603
|
constructor() {
|
|
604
604
|
h(this, "_node", null);
|
|
@@ -703,10 +703,10 @@ function Vt(...e) {
|
|
|
703
703
|
function Gt(e) {
|
|
704
704
|
return e === "horizontal" || e === "vertical" || e === "both";
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Kt(e) {
|
|
707
707
|
return e === "hidden" || e === "visible" || e === "auto";
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Mt(e) {
|
|
710
710
|
const i = { ...e }, t = i.overflow;
|
|
711
711
|
if (t == null || t === "")
|
|
712
712
|
return delete i.overflow, i;
|
|
@@ -716,7 +716,7 @@ function Yt(e) {
|
|
|
716
716
|
const r = n[0], s = n[1] ?? n[0];
|
|
717
717
|
return i.overflowX == null && (i.overflowX = r), i.overflowY == null && (i.overflowY = s), delete i.overflow, i;
|
|
718
718
|
}
|
|
719
|
-
class
|
|
719
|
+
class Xt extends $ {
|
|
720
720
|
constructor() {
|
|
721
721
|
super(...arguments);
|
|
722
722
|
h(this, "_direction", "vertical");
|
|
@@ -766,7 +766,7 @@ class Kt extends v {
|
|
|
766
766
|
scrollbar: f,
|
|
767
767
|
onScroll: p,
|
|
768
768
|
...m
|
|
769
|
-
} = n, c = Gt(a) ? a : this._direction, y =
|
|
769
|
+
} = n, c = Gt(a) ? a : this._direction, y = Kt(f) ? f : this._scrollbar, b = this._controller ?? (l instanceof Ht ? l : void 0), E = c === "horizontal" || c === "both", M = c === "vertical" || c === "both", X = this.getStyle(), { gap: D, rowGap: P, columnGap: V, ...Y } = X, q = E ? "auto" : "hidden", F = M ? "auto" : "hidden", u = {
|
|
770
770
|
display: "flex",
|
|
771
771
|
flexDirection: c === "horizontal" ? "row" : "column",
|
|
772
772
|
flexWrap: "nowrap",
|
|
@@ -777,8 +777,8 @@ class Kt extends v {
|
|
|
777
777
|
"fibo-scrollview",
|
|
778
778
|
...this.getClassName().split(" ").filter(Boolean),
|
|
779
779
|
s
|
|
780
|
-
], Z =
|
|
781
|
-
...
|
|
780
|
+
], Z = Mt({
|
|
781
|
+
...Y,
|
|
782
782
|
...o && typeof o == "object" ? o : {}
|
|
783
783
|
}), x = {
|
|
784
784
|
WebkitOverflowScrolling: "touch",
|
|
@@ -788,8 +788,8 @@ class Kt extends v {
|
|
|
788
788
|
flexDirection: c === "horizontal" ? "row" : "column",
|
|
789
789
|
...Z,
|
|
790
790
|
// Direction overflow must survive `.props({ style })` replacing the object.
|
|
791
|
-
overflowX:
|
|
792
|
-
overflowY:
|
|
791
|
+
overflowX: q,
|
|
792
|
+
overflowY: F
|
|
793
793
|
};
|
|
794
794
|
if (y === "hidden" && (G.push("scrollbar-hide"), x.scrollbarWidth = "none", x.msOverflowStyle = "none"), this._anchor) {
|
|
795
795
|
x.scrollSnapAlign = this._anchor;
|
|
@@ -801,10 +801,10 @@ class Kt extends v {
|
|
|
801
801
|
b == null || b.attach(A);
|
|
802
802
|
},
|
|
803
803
|
r
|
|
804
|
-
),
|
|
804
|
+
), K = this._refresh, J = K ? [
|
|
805
805
|
d.createElement(
|
|
806
806
|
"button",
|
|
807
|
-
{ type: "button", onClick: () =>
|
|
807
|
+
{ type: "button", onClick: () => K() },
|
|
808
808
|
"Refresh"
|
|
809
809
|
),
|
|
810
810
|
...t
|
|
@@ -827,7 +827,7 @@ class Kt extends v {
|
|
|
827
827
|
);
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
|
-
const ii =
|
|
830
|
+
const ii = v(Xt);
|
|
831
831
|
export {
|
|
832
832
|
Zt as C,
|
|
833
833
|
Jt as H,
|
|
@@ -2,7 +2,7 @@ var w = Object.defineProperty;
|
|
|
2
2
|
var S = (s, e, t) => e in s ? w(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var n = (s, e, t) => S(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import m from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { aZ as g, a_ as d, b5 as N, b6 as C, b2 as j, b1 as _, b4 as z } from "./client-BzMPiV64.js";
|
|
6
6
|
function B(s, e) {
|
|
7
7
|
if (!(typeof e != "string" || !_(e)))
|
|
8
8
|
for (const t of z(e))
|
|
@@ -107,7 +107,7 @@ class $ extends d {
|
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const R = g($);
|
|
111
111
|
function f(s) {
|
|
112
112
|
return typeof s == "number" ? `${s}px` : s;
|
|
113
113
|
}
|
|
@@ -151,8 +151,8 @@ class H extends d {
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const T = g(H);
|
|
155
155
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
R as C,
|
|
157
|
+
T as S
|
|
158
158
|
};
|
|
@@ -2,10 +2,10 @@ var c = Object.defineProperty;
|
|
|
2
2
|
var f = (s, e, t) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var i = (s, e, t) => f(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import m from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { aZ as d, a_ as y, a$ as x, b0 as n, b1 as o, b2 as l, b3 as b, b4 as v } from "./client-BzMPiV64.js";
|
|
6
6
|
function p(s, e) {
|
|
7
7
|
if (!(typeof e != "string" || !o(e)))
|
|
8
|
-
for (const t of
|
|
8
|
+
for (const t of v(e))
|
|
9
9
|
s.bindSignal(t);
|
|
10
10
|
}
|
|
11
11
|
function h(s, e) {
|
|
@@ -23,7 +23,7 @@ function h(s, e) {
|
|
|
23
23
|
if (Array.isArray(e))
|
|
24
24
|
for (const t of e) h(s, t);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function T(s) {
|
|
27
27
|
return typeof s == "string" && o(s) ? l(s) : s;
|
|
28
28
|
}
|
|
29
29
|
class g extends y {
|
|
@@ -127,7 +127,7 @@ class g extends y {
|
|
|
127
127
|
expand: this._expand,
|
|
128
128
|
className: t,
|
|
129
129
|
style: this.getStyle(),
|
|
130
|
-
children: this.processChildren().map(
|
|
130
|
+
children: this.processChildren().map(T),
|
|
131
131
|
...this._props,
|
|
132
132
|
type: this.resolvedHtmlType(),
|
|
133
133
|
bare: this.isReset()
|
|
@@ -138,7 +138,7 @@ class g extends y {
|
|
|
138
138
|
_.node = u;
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
return m.createElement(
|
|
141
|
+
return m.createElement(b, a);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
const I = d(g);
|
|
@@ -2,8 +2,8 @@ var ae = Object.defineProperty;
|
|
|
2
2
|
var ie = (s, r, e) => r in s ? ae(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
3
3
|
var i = (s, r, e) => ie(s, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import t from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { a as F } from "./icons-
|
|
5
|
+
import { aZ as I, a_ as $, b1 as z, b4 as R, b2 as q, z as le, b7 as Q, bo as oe } from "./client-BzMPiV64.js";
|
|
6
|
+
import { a as F } from "./icons-aP7ZHyqh.js";
|
|
7
7
|
function ce(s, r) {
|
|
8
8
|
if (!(typeof r != "string" || !z(r)))
|
|
9
9
|
for (const e of R(r))
|
|
@@ -303,7 +303,7 @@ function H(s, r) {
|
|
|
303
303
|
for (const e of R(r))
|
|
304
304
|
s.bindSignal(e);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function K(s) {
|
|
307
307
|
return typeof s != "string" ? s : z(s) ? q(s) : s;
|
|
308
308
|
}
|
|
309
309
|
const _e = {
|
|
@@ -432,8 +432,8 @@ class $e extends $ {
|
|
|
432
432
|
}
|
|
433
433
|
build() {
|
|
434
434
|
const e = {
|
|
435
|
-
title:
|
|
436
|
-
description:
|
|
435
|
+
title: K(this._title),
|
|
436
|
+
description: K(this._description),
|
|
437
437
|
intent: this._intent,
|
|
438
438
|
className: this.getClassName(),
|
|
439
439
|
style: this.getStyle(),
|
|
@@ -443,12 +443,12 @@ class $e extends $ {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
const Ue = I($e);
|
|
446
|
-
function
|
|
446
|
+
function X(s, r) {
|
|
447
447
|
if (!(typeof r != "string" || !z(r)))
|
|
448
448
|
for (const e of R(r))
|
|
449
449
|
s.bindSignal(e);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Z(s) {
|
|
452
452
|
return typeof s != "string" ? s : z(s) ? q(s) : s;
|
|
453
453
|
}
|
|
454
454
|
const ze = t.memo((s) => {
|
|
@@ -804,10 +804,10 @@ class Le extends $ {
|
|
|
804
804
|
return this._variant = e, this;
|
|
805
805
|
}
|
|
806
806
|
label(e) {
|
|
807
|
-
return this._label = e,
|
|
807
|
+
return this._label = e, X(this, e), this;
|
|
808
808
|
}
|
|
809
809
|
subLabel(e) {
|
|
810
|
-
return this._subLabel = e,
|
|
810
|
+
return this._subLabel = e, X(this, e), this;
|
|
811
811
|
}
|
|
812
812
|
items(e) {
|
|
813
813
|
return this._items = e, this;
|
|
@@ -819,8 +819,8 @@ class Le extends $ {
|
|
|
819
819
|
color: this._color,
|
|
820
820
|
height: this._height,
|
|
821
821
|
variant: this._variant,
|
|
822
|
-
label:
|
|
823
|
-
subLabel:
|
|
822
|
+
label: Z(this._label),
|
|
823
|
+
subLabel: Z(this._subLabel),
|
|
824
824
|
items: this._items,
|
|
825
825
|
size: this._size,
|
|
826
826
|
strokeWidth: this._strokeWidth,
|
|
@@ -841,14 +841,14 @@ function T(s) {
|
|
|
841
841
|
}
|
|
842
842
|
function Be(s) {
|
|
843
843
|
const r = s.trim();
|
|
844
|
-
return !r || T(r) ? !1 :
|
|
844
|
+
return !r || T(r) ? !1 : Q(r) || /^(https?:)?\/\//i.test(r) || r.startsWith("/") || r.startsWith("./") || r.startsWith("../") ? !0 : /^[a-z][a-z0-9+.-]*:/i.test(r);
|
|
845
845
|
}
|
|
846
846
|
function Me(s) {
|
|
847
847
|
if (typeof s != "string") return "";
|
|
848
848
|
const r = s.trim();
|
|
849
|
-
return !r ||
|
|
849
|
+
return !r || Q(r) || !oe(r) ? "" : r;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function J(s, r = {}) {
|
|
852
852
|
const e = s.sandbox ?? r.sandbox;
|
|
853
853
|
return {
|
|
854
854
|
...r,
|
|
@@ -872,7 +872,7 @@ const je = t.memo((s) => {
|
|
|
872
872
|
const c = o == null || Array.isArray(o) && o.length === 0 ? void 0 : o, v = (m) => t.createElement(
|
|
873
873
|
"iframe",
|
|
874
874
|
{
|
|
875
|
-
...
|
|
875
|
+
...J(m !== void 0 ? { ...n, src: m } : n),
|
|
876
876
|
className: e,
|
|
877
877
|
style: l
|
|
878
878
|
},
|
|
@@ -885,7 +885,7 @@ const je = t.memo((s) => {
|
|
|
885
885
|
if (typeof r == "string")
|
|
886
886
|
return null;
|
|
887
887
|
if (t.isValidElement(r)) {
|
|
888
|
-
const m = r, p = m.props || {}, y = [e, p.className].filter(Boolean).join(" ") || void 0, d = { ...p.style, ...l }, u = T(m.type) ? { ...
|
|
888
|
+
const m = r, p = m.props || {}, y = [e, p.className].filter(Boolean).join(" ") || void 0, d = { ...p.style, ...l }, u = T(m.type) ? { ...J(n, p), className: y, style: d } : { ...n, className: y, style: d };
|
|
889
889
|
return c !== void 0 ? t.cloneElement(m, u, c) : t.cloneElement(m, u);
|
|
890
890
|
}
|
|
891
891
|
return typeof r != "function" && !(typeof r == "object" && r !== null && "$$typeof" in r) ? null : t.createElement(
|