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
package/dist/interactive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e } from "./index-
|
|
2
|
-
import { ap as r, at as t, ab as m, aq as i, as as l, ao as n, aa as x, ar as u, ag as h, an as p, ac as b, am as c, aj as d, af as f, ai as g, ae as T, ah as q, ad as k, ak as B, al as C } from "./client-
|
|
1
|
+
import { B as e } from "./index-DUohJXW2.js";
|
|
2
|
+
import { ap as r, at as t, ab as m, aq as i, as as l, ao as n, aa as x, ar as u, ag as h, an as p, ac as b, am as c, aj as d, af as f, ai as g, ae as T, ah as q, ad as k, ak as B, al as C } from "./client-BxtRoL1i.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Button,
|
|
5
5
|
r as Checkbox,
|
package/dist/layout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as r, a as s, H as e, L as l, b as t, S, Z as n } from "./index-
|
|
2
|
-
import { C as c, S as f } from "./index-
|
|
3
|
-
import { a6 as m, a3 as d, a4 as p, a5 as u, a7 as b } from "./client-
|
|
1
|
+
import { C as r, a as s, H as e, L as l, b as t, S, Z as n } from "./index-DF6X_GZs.js";
|
|
2
|
+
import { C as c, S as f } from "./index-B0FFbOUi.js";
|
|
3
|
+
import { a6 as m, a3 as d, a4 as p, a5 as u, a7 as b } from "./client-BxtRoL1i.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Center,
|
|
6
6
|
c as Column,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b2 as v, b1 as x, b3 as E, b4 as k, b5 as R, b6 as D, b7 as O, b8 as g, b9 as P, ba as $, bb as z, aD as A, aE as K } from "./client-BxtRoL1i.js";
|
|
3
3
|
import { useState as M, useMemo as N, lazy as S, Suspense as B } from "react";
|
|
4
|
-
function
|
|
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
|
}
|
|
@@ -13,14 +13,14 @@ function H(e) {
|
|
|
13
13
|
return { search: s >= 0 ? t.slice(s) : "", hash: r };
|
|
14
14
|
}
|
|
15
15
|
function I(e, n) {
|
|
16
|
-
const { search: t, hash: r } = H(n), a = R(
|
|
17
|
-
return `${
|
|
16
|
+
const { search: t, hash: r } = H(n), a = R(b(n), e);
|
|
17
|
+
return `${D(e, a)}${t}${r}`;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const a = R(
|
|
21
|
-
return a === "/" ? s === "/" :
|
|
19
|
+
function j(e, n, t, r = "") {
|
|
20
|
+
const a = R(b(n), r), s = b(e);
|
|
21
|
+
return a === "/" ? s === "/" : O(s, a, t).match;
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const W = ({
|
|
24
24
|
to: e,
|
|
25
25
|
children: n,
|
|
26
26
|
replace: t = !1,
|
|
@@ -33,7 +33,7 @@ const j = ({
|
|
|
33
33
|
rel: h,
|
|
34
34
|
...p
|
|
35
35
|
}) => {
|
|
36
|
-
const l =
|
|
36
|
+
const l = v(), m = x(e), y = !m && E(e), C = m ? void 0 : y ? e.trim() : I((l == null ? void 0 : l.basename) ?? "", e), w = i && String(i).toLowerCase() === "_blank" ? k(h, "noopener noreferrer") : h;
|
|
37
37
|
return /* @__PURE__ */ c(
|
|
38
38
|
"a",
|
|
39
39
|
{
|
|
@@ -45,7 +45,7 @@ const j = ({
|
|
|
45
45
|
u.preventDefault();
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
-
u.button === 0 && (u.metaKey || u.ctrlKey || u.shiftKey || u.altKey || i && i !== "_self" || o != null && o !== !1 ||
|
|
48
|
+
u.button === 0 && (u.metaKey || u.ctrlKey || u.shiftKey || u.altKey || i && i !== "_self" || o != null && o !== !1 || y || l && (u.preventDefault(), l.navigate(e, { replace: t, state: r })));
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
className: a,
|
|
@@ -66,14 +66,14 @@ const j = ({
|
|
|
66
66
|
exact: f = !1,
|
|
67
67
|
...i
|
|
68
68
|
}) => {
|
|
69
|
-
const o =
|
|
69
|
+
const o = v(), h = !!o && j(
|
|
70
70
|
o.currentPath,
|
|
71
71
|
e,
|
|
72
72
|
f,
|
|
73
73
|
o.basename
|
|
74
74
|
), p = 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
79
|
className: p,
|
|
@@ -84,16 +84,16 @@ const j = ({
|
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}, J = () => {
|
|
87
|
-
const e =
|
|
87
|
+
const e = v(), n = g();
|
|
88
88
|
if (!e || !n || !n.children || n.children.length === 0)
|
|
89
89
|
return null;
|
|
90
|
-
const { route: t } =
|
|
90
|
+
const { route: t } = P(n.children, e.currentPath);
|
|
91
91
|
if (!t)
|
|
92
92
|
return null;
|
|
93
93
|
const r = t.component;
|
|
94
|
-
return /* @__PURE__ */ c(
|
|
94
|
+
return /* @__PURE__ */ c($.Provider, { value: t, children: /* @__PURE__ */ c(r, {}) });
|
|
95
95
|
}, d = /* @__PURE__ */ new WeakMap();
|
|
96
|
-
function
|
|
96
|
+
function _(e) {
|
|
97
97
|
return e instanceof Error ? e : typeof e == "string" && e.trim() ? new Error(e) : new Error("Failed to load route");
|
|
98
98
|
}
|
|
99
99
|
function L(e) {
|
|
@@ -101,7 +101,7 @@ function L(e) {
|
|
|
101
101
|
return n || (n = e().then(
|
|
102
102
|
(t) => t,
|
|
103
103
|
(t) => {
|
|
104
|
-
throw d.delete(e),
|
|
104
|
+
throw d.delete(e), _(t);
|
|
105
105
|
}
|
|
106
106
|
), d.set(e, n)), n;
|
|
107
107
|
}
|
|
@@ -138,7 +138,7 @@ function X() {
|
|
|
138
138
|
return e == null ? void 0 : e.meta;
|
|
139
139
|
}
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
W as L,
|
|
142
142
|
G as N,
|
|
143
143
|
J as O,
|
|
144
144
|
Q as l,
|
package/dist/navigation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aE as s, aD as u, ax as o, aB as t, az as r, aA as l, aC as L, ay as R } from "./client-
|
|
2
|
-
import { L as i, N as p, O as m, l as n, p as x, u as y } from "./metadata-
|
|
1
|
+
import { aE as s, aD as u, ax as o, aB as t, az as r, aA as l, aC as L, ay as R } from "./client-BxtRoL1i.js";
|
|
2
|
+
import { L as i, N as p, O as m, l as n, p as x, u as y } from "./metadata-YreqtxtK.js";
|
|
3
3
|
export {
|
|
4
4
|
s as DefaultErrorPage,
|
|
5
5
|
u as DefaultLoader,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var O = Object.defineProperty;
|
|
2
2
|
var k = (e, t, r) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var h = (e, t, r) => k(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { S as v, c as E, i as $, H as L,
|
|
4
|
+
import { S as v, c as E, i as $, H as L, b0 as A, U as I } from "./client-BxtRoL1i.js";
|
|
5
5
|
import c from "react";
|
|
6
6
|
function U() {
|
|
7
7
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `lst_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
|
|
@@ -161,7 +161,7 @@ class T extends v {
|
|
|
161
161
|
function j(e = []) {
|
|
162
162
|
return new T(e);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const K = j, q = {
|
|
165
165
|
linear: (e) => e,
|
|
166
166
|
easeIn: (e) => e * e,
|
|
167
167
|
easeOut: (e) => e * (2 - e),
|
|
@@ -224,7 +224,7 @@ v.prototype.animate = function(e, t = {}) {
|
|
|
224
224
|
v.prototype.snapTo = function(e, t = {}) {
|
|
225
225
|
this.animate(e, { duration: 300, curve: "easeOut", ...t });
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function Q(e = {}) {
|
|
228
228
|
return L(e.curve ?? "easeOut", {
|
|
229
229
|
stiffness: e.stiffness,
|
|
230
230
|
damping: e.damping,
|
|
@@ -245,8 +245,8 @@ function H(e, t = {}) {
|
|
|
245
245
|
}
|
|
246
246
|
return i.displayName = "FiboPage", n && (i.meta = n), i;
|
|
247
247
|
}
|
|
248
|
-
const
|
|
249
|
-
function
|
|
248
|
+
const X = H;
|
|
249
|
+
function Y(e) {
|
|
250
250
|
return c.createElement(
|
|
251
251
|
c.Fragment,
|
|
252
252
|
null,
|
|
@@ -256,11 +256,11 @@ function X(e) {
|
|
|
256
256
|
}
|
|
257
257
|
export {
|
|
258
258
|
T as L,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
Q as a,
|
|
260
|
+
X as b,
|
|
261
|
+
K as c,
|
|
262
262
|
f as e,
|
|
263
263
|
j as l,
|
|
264
264
|
H as p,
|
|
265
|
-
|
|
265
|
+
Y as w
|
|
266
266
|
};
|