fiboui 2.8.3 → 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-8KCOzRhg.js → client-BzMPiV64.js} +4995 -4293
- package/dist/content.d.ts +1178 -1
- package/dist/content.js +8 -8
- package/dist/core.d.ts +1545 -2
- package/dist/core.js +60 -54
- package/dist/{icons-7Xl0GDMW.js → icons-aP7ZHyqh.js} +11 -11
- package/dist/{index-Bwb4FNoc.js → index-B9YuBkEv.js} +574 -505
- package/dist/{index-CFwY5hCL.js → index-Bgt9DiVJ.js} +79 -79
- package/dist/{index-C5TPsNMz.js → index-DU4n9axe.js} +14 -14
- package/dist/{index-CU0_oAGn.js → index-DWBoYvko.js} +4 -4
- package/dist/{index-CVy8N94v.js → index-Dd48Ov9N.js} +27 -27
- package/dist/index.d.ts +286 -116832
- package/dist/index.js +273 -267
- package/dist/interactive.d.ts +1350 -2
- package/dist/interactive.js +13 -13
- package/dist/layout.d.ts +1218 -1
- package/dist/layout.js +9 -9
- package/dist/{metadata-BEmm6pe-.js → metadata-B5v6sx60.js} +13 -13
- package/dist/navigation.d.ts +88 -1
- package/dist/navigation.js +4 -4
- package/dist/page-CHjFSSAF.js +263 -0
- package/dist/server.d.ts +1369 -2
- package/dist/server.js +645 -620
- package/dist/structure.d.ts +1345 -1
- package/dist/structure.js +9 -9
- package/dist/theme.d.ts +149 -2
- package/dist/theme.js +5 -5
- package/package.json +5 -3
- package/dist/page-FXW2hz2C.js +0 -302
|
@@ -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))
|
|
@@ -212,7 +212,7 @@ class be extends $ {
|
|
|
212
212
|
return t.createElement(ge, e);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const Ve = I(be), ye = `@keyframes fibo-skeleton-pulse {
|
|
216
216
|
50% { opacity: 0.5; }
|
|
217
217
|
}
|
|
218
218
|
.loading-skeleton {
|
|
@@ -297,13 +297,13 @@ class ke extends $ {
|
|
|
297
297
|
return t.createElement(Ee, u);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const Oe = I(ke);
|
|
301
301
|
function H(s, r) {
|
|
302
302
|
if (!(typeof r != "string" || !z(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(),
|
|
@@ -442,13 +442,13 @@ class $e extends $ {
|
|
|
442
442
|
return t.createElement(Ie, e);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
function
|
|
445
|
+
const Ue = I($e);
|
|
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) => {
|
|
@@ -470,9 +470,9 @@ const ze = t.memo((s) => {
|
|
|
470
470
|
className: w,
|
|
471
471
|
style: N,
|
|
472
472
|
...P
|
|
473
|
-
} = s,
|
|
473
|
+
} = s, V = typeof r == "number" && Number.isFinite(r) ? r : 0, L = typeof e == "number" && Number.isFinite(e) ? e : 100, O = L > 0 ? Math.min(L, Math.max(0, V)) : Math.max(0, V), E = L > 0 ? O / L * 100 : 0, _ = l || "#3B82F6", ee = typeof P["aria-label"] == "string" ? P["aria-label"] : "", C = { ...P, ...{
|
|
474
474
|
role: "progressbar",
|
|
475
|
-
"aria-valuenow":
|
|
475
|
+
"aria-valuenow": O,
|
|
476
476
|
"aria-valuemin": 0,
|
|
477
477
|
"aria-valuemax": L,
|
|
478
478
|
"aria-label": ee || c || "Progress"
|
|
@@ -712,8 +712,8 @@ const ze = t.memo((s) => {
|
|
|
712
712
|
}))
|
|
713
713
|
);
|
|
714
714
|
}
|
|
715
|
-
let
|
|
716
|
-
n === "striped" && (
|
|
715
|
+
let U = null;
|
|
716
|
+
n === "striped" && (U = t.createElement("div", {
|
|
717
717
|
className: "w-full h-full opacity-30 animate-[stripes_1s_linear_infinite]",
|
|
718
718
|
style: {
|
|
719
719
|
backgroundImage: "linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.25) 75%,transparent 75%,transparent)",
|
|
@@ -752,7 +752,7 @@ const ze = t.memo((s) => {
|
|
|
752
752
|
width: `${E}%`,
|
|
753
753
|
backgroundColor: _
|
|
754
754
|
}
|
|
755
|
-
}, [
|
|
755
|
+
}, [U, re])
|
|
756
756
|
)
|
|
757
757
|
]);
|
|
758
758
|
});
|
|
@@ -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(
|
|
@@ -935,10 +935,10 @@ class We extends $ {
|
|
|
935
935
|
}
|
|
936
936
|
const Ge = I(We);
|
|
937
937
|
export {
|
|
938
|
-
|
|
938
|
+
Ue as A,
|
|
939
939
|
Ge as I,
|
|
940
940
|
qe as L,
|
|
941
941
|
Ye as P,
|
|
942
|
-
|
|
943
|
-
|
|
942
|
+
Ve as S,
|
|
943
|
+
Oe as a
|
|
944
944
|
};
|