fiboui 2.8.5 → 2.9.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/dist/{client-BzMPiV64.js → client-3NdKI2xE.js} +7296 -4714
- package/dist/content.d.ts +364 -7
- package/dist/content.js +8 -8
- package/dist/core.d.ts +353 -1
- package/dist/core.js +2 -2
- package/dist/{icons-aP7ZHyqh.js → icons-DS8J4SFk.js} +83 -75
- package/dist/{index-Dd48Ov9N.js → index-B6F3yf3H.js} +10 -10
- package/dist/{index-DU4n9axe.js → index-BLEG6Nql.js} +1 -1
- package/dist/{index-B9YuBkEv.js → index-BaTO66yA.js} +22 -22
- package/dist/index-FuD1J3Qo.js +785 -0
- package/dist/{index-DWBoYvko.js → index-I-MXiId0.js} +7 -7
- package/dist/index.d.ts +1978 -1163
- package/dist/index.js +1144 -1065
- package/dist/interactive.d.ts +353 -1
- package/dist/interactive.js +15 -15
- package/dist/layout.d.ts +464 -2
- package/dist/layout.js +21 -17
- package/dist/{metadata-B5v6sx60.js → metadata-B2MRlDTz.js} +23 -23
- package/dist/navigation.js +6 -6
- package/dist/{page-CHjFSSAF.js → page-xwU8SnoZ.js} +36 -36
- package/dist/server.d.ts +361 -1
- package/dist/server.js +3793 -2400
- package/dist/structure.d.ts +353 -1
- package/dist/structure.js +4 -4
- package/dist/style.css +1 -1
- package/dist/theme.js +3 -3
- package/package.json +1 -1
- package/dist/index-Bgt9DiVJ.js +0 -839
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as M, useMemo as N, lazy as S, Suspense as
|
|
2
|
+
import { be as v, bc as w, bf as x, bg as O, bh as R, bi as P, bj as E, bk as g, bl as $, bm as D, bn as z, aO as A, aP as K } from "./client-3NdKI2xE.js";
|
|
3
|
+
import { useState as M, useMemo as N, lazy as S, Suspense as j } from "react";
|
|
4
4
|
function b(e) {
|
|
5
5
|
const t = (typeof e == "string" ? e.trim() : "").split(/[?#]/, 1)[0];
|
|
6
6
|
return !t || t === "/" ? "/" : t.startsWith("/") ? t : `/${t}`;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function B(e) {
|
|
9
9
|
let t = typeof e == "string" ? e.trim() : "", r = "";
|
|
10
10
|
const a = t.indexOf("#");
|
|
11
11
|
a >= 0 && (r = t.slice(a), t = t.slice(0, a));
|
|
12
12
|
const s = t.indexOf("?");
|
|
13
13
|
return { search: s >= 0 ? t.slice(s) : "", hash: r };
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const { search: t, hash: r } =
|
|
17
|
-
return `${
|
|
15
|
+
function H(e, n) {
|
|
16
|
+
const { search: t, hash: r } = B(n), a = R(b(n), e);
|
|
17
|
+
return `${P(e, a)}${t}${r}`;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function I(e, n, t, r = "") {
|
|
20
20
|
const a = R(b(n), r), s = b(e);
|
|
21
|
-
return a === "/" ? s === "/" :
|
|
21
|
+
return a === "/" ? s === "/" : E(s, a, t).match;
|
|
22
22
|
}
|
|
23
23
|
const W = ({
|
|
24
24
|
to: e,
|
|
@@ -31,17 +31,17 @@ const W = ({
|
|
|
31
31
|
target: i,
|
|
32
32
|
download: o,
|
|
33
33
|
rel: h,
|
|
34
|
-
...
|
|
34
|
+
...m
|
|
35
35
|
}) => {
|
|
36
|
-
const l = v(),
|
|
36
|
+
const l = v(), p = w(e), y = !p && x(e), C = p ? void 0 : y ? e.trim() : H((l == null ? void 0 : l.basename) ?? "", e), k = i && String(i).toLowerCase() === "_blank" ? O(h, "noopener noreferrer") : h;
|
|
37
37
|
return /* @__PURE__ */ c(
|
|
38
38
|
"a",
|
|
39
39
|
{
|
|
40
|
-
...
|
|
40
|
+
...m,
|
|
41
41
|
href: C,
|
|
42
42
|
onClick: (u) => {
|
|
43
43
|
if (f == null || f(u), !u.defaultPrevented) {
|
|
44
|
-
if (
|
|
44
|
+
if (p) {
|
|
45
45
|
u.preventDefault();
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
@@ -52,11 +52,11 @@ const W = ({
|
|
|
52
52
|
style: s,
|
|
53
53
|
target: i,
|
|
54
54
|
download: o,
|
|
55
|
-
rel:
|
|
55
|
+
rel: k,
|
|
56
56
|
children: n
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
|
-
},
|
|
59
|
+
}, G = ({
|
|
60
60
|
to: e,
|
|
61
61
|
children: n,
|
|
62
62
|
className: t = "",
|
|
@@ -66,24 +66,24 @@ const W = ({
|
|
|
66
66
|
exact: f = !1,
|
|
67
67
|
...i
|
|
68
68
|
}) => {
|
|
69
|
-
const o = v(), h = !!o &&
|
|
69
|
+
const o = v(), h = !!o && I(
|
|
70
70
|
o.currentPath,
|
|
71
71
|
e,
|
|
72
72
|
f,
|
|
73
73
|
o.basename
|
|
74
|
-
),
|
|
74
|
+
), m = h ? `${t} ${a}`.trim() : t, l = h ? { ...r, ...s } : r;
|
|
75
75
|
return /* @__PURE__ */ c(
|
|
76
76
|
W,
|
|
77
77
|
{
|
|
78
78
|
to: e,
|
|
79
|
-
className:
|
|
79
|
+
className: m,
|
|
80
80
|
style: l,
|
|
81
81
|
...i,
|
|
82
82
|
"aria-current": h ? "page" : void 0,
|
|
83
83
|
children: n
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
|
-
},
|
|
86
|
+
}, J = () => {
|
|
87
87
|
const e = v(), n = g();
|
|
88
88
|
if (!e || !n || !n.children || n.children.length === 0)
|
|
89
89
|
return null;
|
|
@@ -112,10 +112,10 @@ function Q(e, n) {
|
|
|
112
112
|
[a]
|
|
113
113
|
);
|
|
114
114
|
return /* @__PURE__ */ c(
|
|
115
|
-
|
|
115
|
+
z,
|
|
116
116
|
{
|
|
117
117
|
fallback: (i) => /* @__PURE__ */ c(
|
|
118
|
-
|
|
118
|
+
K,
|
|
119
119
|
{
|
|
120
120
|
error: i,
|
|
121
121
|
onReset: () => {
|
|
@@ -123,7 +123,7 @@ function Q(e, n) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
),
|
|
126
|
-
children: /* @__PURE__ */ c(
|
|
126
|
+
children: /* @__PURE__ */ c(j, { fallback: (n == null ? void 0 : n.loading) ?? /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(f, { ...r }) })
|
|
127
127
|
},
|
|
128
128
|
a
|
|
129
129
|
);
|
|
@@ -139,8 +139,8 @@ function X() {
|
|
|
139
139
|
}
|
|
140
140
|
export {
|
|
141
141
|
W as L,
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
G as N,
|
|
143
|
+
J as O,
|
|
144
144
|
Q as l,
|
|
145
145
|
T as p,
|
|
146
146
|
X as u
|
package/dist/navigation.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as i, N as p, O as
|
|
1
|
+
import { aP as s, aO as u, aI as o, aM as t, aK as r, aL as l, aN as L, aJ as R } from "./client-3NdKI2xE.js";
|
|
2
|
+
import { L as i, N as p, O as N, l as m, p as n, u as O } from "./metadata-B2MRlDTz.js";
|
|
3
3
|
export {
|
|
4
4
|
s as DefaultErrorPage,
|
|
5
5
|
u as DefaultLoader,
|
|
6
6
|
i as Link,
|
|
7
7
|
p as NavLink,
|
|
8
|
-
|
|
8
|
+
N as Outlet,
|
|
9
9
|
o as Router,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
m as lazyRoute,
|
|
11
|
+
n as preloadRoute,
|
|
12
12
|
t as useLocation,
|
|
13
13
|
r as useNavigate,
|
|
14
14
|
l as useParams,
|
|
15
15
|
L as useQuery,
|
|
16
|
-
|
|
16
|
+
O as useRouteMeta,
|
|
17
17
|
R as useRouter
|
|
18
18
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { bo as z, N as B, S as k, bp as V, bq as O, _ as I, br as W, bs as _, bt as G } from "./client-3NdKI2xE.js";
|
|
2
|
+
import p, { useSyncExternalStore as H } from "react";
|
|
3
3
|
function J(t) {
|
|
4
4
|
return typeof t == "number" ? t : t != null && typeof t == "object" && "value" in t ? Number(t.value) : Number(t);
|
|
5
5
|
}
|
|
6
6
|
function c(t, e) {
|
|
7
|
-
const i = J(t), n = (
|
|
7
|
+
const i = J(t), n = (o) => e(Number(o));
|
|
8
8
|
return z(n), n(i);
|
|
9
9
|
}
|
|
10
10
|
const R = {
|
|
@@ -70,15 +70,15 @@ const R = {
|
|
|
70
70
|
*/
|
|
71
71
|
of(t, e, i) {
|
|
72
72
|
return c(t, (n) => {
|
|
73
|
-
const
|
|
74
|
-
return `${n} ${
|
|
73
|
+
const o = Math.abs(n) === 1 ? e : i;
|
|
74
|
+
return `${n} ${o}`;
|
|
75
75
|
});
|
|
76
76
|
},
|
|
77
77
|
/** Only the word: `Plural.word(count, 'item', 'items')` → `"items"`. */
|
|
78
78
|
word(t, e, i) {
|
|
79
79
|
return c(t, (n) => Math.abs(n) === 1 ? e : i);
|
|
80
80
|
}
|
|
81
|
-
},
|
|
81
|
+
}, q = {
|
|
82
82
|
linear: (t) => t,
|
|
83
83
|
easeIn: (t) => t * t,
|
|
84
84
|
easeOut: (t) => t * (2 - t),
|
|
@@ -102,10 +102,10 @@ k.prototype.spring = function(t, e = {}) {
|
|
|
102
102
|
this.animate(t, { ...e, curve: "spring", damping: e.damping ?? 26, stiffness: e.stiffness ?? 170 });
|
|
103
103
|
};
|
|
104
104
|
k.prototype.animate = function(t, e = {}) {
|
|
105
|
-
var
|
|
105
|
+
var v, N;
|
|
106
106
|
const i = this.value, n = t;
|
|
107
107
|
if (Y(this), !Q() || X()) {
|
|
108
|
-
this.value = n, (
|
|
108
|
+
this.value = n, (v = e.onComplete) == null || v.call(e);
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
if (e.curve === "spring") {
|
|
@@ -123,17 +123,17 @@ k.prototype.animate = function(t, e = {}) {
|
|
|
123
123
|
b.set(this, requestAnimationFrame(x));
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
126
|
+
const o = e.duration, l = typeof o == "number" && Number.isFinite(o) && o > 0 ? o : o === void 0 ? 300 : 0;
|
|
127
|
+
if (l === 0) {
|
|
128
128
|
this.value = n, (N = e.onComplete) == null || N.call(e);
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
const A =
|
|
131
|
+
const A = q[e.curve || "easeOut"] ?? q.easeOut;
|
|
132
132
|
let g = null;
|
|
133
133
|
const m = (y) => {
|
|
134
134
|
var h;
|
|
135
135
|
g || (g = y);
|
|
136
|
-
const d = Math.min((y - g) /
|
|
136
|
+
const d = Math.min((y - g) / l, 1);
|
|
137
137
|
this.value = K(i, n, A(d)), d < 1 ? b.set(this, requestAnimationFrame(m)) : (b.delete(this), (h = e.onComplete) == null || h.call(e));
|
|
138
138
|
};
|
|
139
139
|
b.set(this, requestAnimationFrame(m));
|
|
@@ -149,8 +149,8 @@ function ie(t = {}) {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
function Z(t, e = {}) {
|
|
152
|
-
const { styles: i = !0, meta: n } = e,
|
|
153
|
-
let g = 0, m = null,
|
|
152
|
+
const { styles: i = !0, meta: n } = e, o = [], l = [], A = V(t.toString());
|
|
153
|
+
let g = 0, m = null, v = -1, N = !1, y = [], d = [];
|
|
154
154
|
const h = /* @__PURE__ */ new Set();
|
|
155
155
|
function F(r, s) {
|
|
156
156
|
if (r.length !== s.length) return !1;
|
|
@@ -159,8 +159,8 @@ function Z(t, e = {}) {
|
|
|
159
159
|
}
|
|
160
160
|
function w(r) {
|
|
161
161
|
var s, u;
|
|
162
|
-
for (let a = 0; a <
|
|
163
|
-
const f =
|
|
162
|
+
for (let a = 0; a < l.length; a++) {
|
|
163
|
+
const f = l[a];
|
|
164
164
|
if (f) {
|
|
165
165
|
if (a >= r) {
|
|
166
166
|
(s = f.unsubs) == null || s.forEach((S) => S()), f.unsubs = [], f.wired = void 0;
|
|
@@ -175,14 +175,14 @@ function Z(t, e = {}) {
|
|
|
175
175
|
}
|
|
176
176
|
function x(r) {
|
|
177
177
|
let s = !1;
|
|
178
|
-
for (let u = 0; u <
|
|
179
|
-
const a =
|
|
178
|
+
for (let u = 0; u < l.length; u++) {
|
|
179
|
+
const a = l[u];
|
|
180
180
|
if (a != null && a.signals.includes(r)) {
|
|
181
181
|
if (s = !0, !a.parts || !a.node) return !1;
|
|
182
182
|
a.next = _(a.parts);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
return s ? G(
|
|
185
|
+
return s ? G(l, l.length) : !1;
|
|
186
186
|
}
|
|
187
187
|
function C(r) {
|
|
188
188
|
if (!N) {
|
|
@@ -197,58 +197,58 @@ function Z(t, e = {}) {
|
|
|
197
197
|
}
|
|
198
198
|
function M(r) {
|
|
199
199
|
const s = [];
|
|
200
|
-
return typeof (n == null ? void 0 : n.title) == "string" && n.title.length > 0 && s.push(
|
|
201
|
-
|
|
200
|
+
return typeof (n == null ? void 0 : n.title) == "string" && n.title.length > 0 && s.push(p.createElement("title", { key: "fibo-title" }, n.title)), typeof (n == null ? void 0 : n.description) == "string" && n.description.length > 0 && s.push(
|
|
201
|
+
p.createElement("meta", {
|
|
202
202
|
key: "fibo-description",
|
|
203
203
|
name: "description",
|
|
204
204
|
content: n.description
|
|
205
205
|
})
|
|
206
|
-
), s.push(r), i && s.push(
|
|
206
|
+
), s.push(r), i && s.push(p.createElement(I)), p.createElement(p.Fragment, null, ...s);
|
|
207
207
|
}
|
|
208
208
|
function $() {
|
|
209
209
|
let r;
|
|
210
|
-
const s = W(
|
|
211
|
-
r =
|
|
210
|
+
const s = W(o, l, () => {
|
|
211
|
+
r = O(t());
|
|
212
212
|
}, A);
|
|
213
213
|
return { tree: r, ...s.outcome };
|
|
214
214
|
}
|
|
215
215
|
function T() {
|
|
216
|
-
g += 1, m = null,
|
|
216
|
+
g += 1, m = null, v = -1;
|
|
217
217
|
for (const r of h) r();
|
|
218
218
|
}
|
|
219
219
|
function U() {
|
|
220
|
-
if (m &&
|
|
220
|
+
if (m && v === g) return m;
|
|
221
221
|
const r = $();
|
|
222
|
-
return m = M(r.tree),
|
|
222
|
+
return m = M(r.tree), v = g, w(r.slotCount), E(r.roots), m;
|
|
223
223
|
}
|
|
224
224
|
function D(r) {
|
|
225
225
|
return h.add(r), () => {
|
|
226
226
|
var s;
|
|
227
227
|
if (h.delete(r), h.size === 0) {
|
|
228
|
-
for (const u of
|
|
228
|
+
for (const u of l)
|
|
229
229
|
(s = u == null ? void 0 : u.unsubs) == null || s.forEach((a) => a()), u && (u.unsubs = [], u.wired = void 0);
|
|
230
|
-
d.forEach((u) => u()), d = [], y = [], m = null,
|
|
230
|
+
d.forEach((u) => u()), d = [], y = [], m = null, v = -1;
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function L() {
|
|
235
235
|
return g;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function j() {
|
|
238
238
|
return 0;
|
|
239
239
|
}
|
|
240
240
|
function P() {
|
|
241
|
-
return H(D,
|
|
241
|
+
return H(D, L, j), U();
|
|
242
242
|
}
|
|
243
243
|
return P.displayName = "FiboPage", n && (P.meta = n), P;
|
|
244
244
|
}
|
|
245
245
|
const ue = Z;
|
|
246
246
|
function ae(t) {
|
|
247
|
-
return
|
|
248
|
-
|
|
247
|
+
return p.createElement(
|
|
248
|
+
p.Fragment,
|
|
249
249
|
null,
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
O(t),
|
|
251
|
+
p.createElement(I)
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
export {
|