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.
@@ -1,24 +1,24 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import { b8 as v, b7 as x, b9 as k, ba as E, bb as R, bc as O, bd as P, be as g, bf as $, bg as D, bh as K, aJ as z, aK as A } from "./client-BzMPiV64.js";
3
- import { useState as M, useMemo as N, lazy as S, Suspense as B } from "react";
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 H(e) {
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 I(e, n) {
16
- const { search: t, hash: r } = H(n), a = R(b(n), e);
17
- return `${O(e, a)}${t}${r}`;
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 j(e, n, t, r = "") {
19
+ function I(e, n, t, r = "") {
20
20
  const a = R(b(n), r), s = b(e);
21
- return a === "/" ? s === "/" : P(s, a, t).match;
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
- ...p
34
+ ...m
35
35
  }) => {
36
- const l = v(), m = x(e), y = !m && k(e), C = m ? void 0 : y ? e.trim() : I((l == null ? void 0 : l.basename) ?? "", e), w = i && String(i).toLowerCase() === "_blank" ? E(h, "noopener noreferrer") : h;
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
- ...p,
40
+ ...m,
41
41
  href: C,
42
42
  onClick: (u) => {
43
43
  if (f == null || f(u), !u.defaultPrevented) {
44
- if (m) {
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: w,
55
+ rel: k,
56
56
  children: n
57
57
  }
58
58
  );
59
- }, V = ({
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 && j(
69
+ const o = v(), h = !!o && I(
70
70
  o.currentPath,
71
71
  e,
72
72
  f,
73
73
  o.basename
74
- ), p = h ? `${t} ${a}`.trim() : t, l = h ? { ...r, ...s } : r;
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: p,
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
- }, G = () => {
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
- K,
115
+ z,
116
116
  {
117
117
  fallback: (i) => /* @__PURE__ */ c(
118
- A,
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(B, { fallback: (n == null ? void 0 : n.loading) ?? /* @__PURE__ */ c(z, {}), children: /* @__PURE__ */ c(f, { ...r }) })
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
- V as N,
143
- G as O,
142
+ G as N,
143
+ J as O,
144
144
  Q as l,
145
145
  T as p,
146
146
  X as u
@@ -1,18 +1,18 @@
1
- import { aK as s, aJ as u, aD as o, aH as t, aF as r, aG as l, aI as L, aE as R } from "./client-BzMPiV64.js";
2
- import { L as i, N as p, O as m, l as n, p as D, u as N } from "./metadata-B5v6sx60.js";
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
- m as Outlet,
8
+ N as Outlet,
9
9
  o as Router,
10
- n as lazyRoute,
11
- D as preloadRoute,
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
- N as useRouteMeta,
16
+ O as useRouteMeta,
17
17
  R as useRouter
18
18
  };
@@ -1,10 +1,10 @@
1
- import { bi as z, N as B, S as k, bj as V, bk as q, _ as I, bl as W, bm as _, bn as G } from "./client-BzMPiV64.js";
2
- import v, { useSyncExternalStore as H } from "react";
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 = (l) => e(Number(l));
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 l = Math.abs(n) === 1 ? e : i;
74
- return `${n} ${l}`;
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
- }, O = {
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 p, N;
105
+ var v, N;
106
106
  const i = this.value, n = t;
107
107
  if (Y(this), !Q() || X()) {
108
- this.value = n, (p = e.onComplete) == null || p.call(e);
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 l = e.duration, o = typeof l == "number" && Number.isFinite(l) && l > 0 ? l : l === void 0 ? 300 : 0;
127
- if (o === 0) {
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 = O[e.curve || "easeOut"] ?? O.easeOut;
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) / o, 1);
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, l = [], o = [], A = V(t.toString());
153
- let g = 0, m = null, p = -1, N = !1, y = [], d = [];
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 < o.length; a++) {
163
- const f = o[a];
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 < o.length; u++) {
179
- const a = o[u];
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(o, o.length) : !1;
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(v.createElement("title", { key: "fibo-title" }, n.title)), typeof (n == null ? void 0 : n.description) == "string" && n.description.length > 0 && s.push(
201
- v.createElement("meta", {
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(v.createElement(I)), v.createElement(v.Fragment, null, ...s);
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(l, o, () => {
211
- r = q(t());
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, p = -1;
216
+ g += 1, m = null, v = -1;
217
217
  for (const r of h) r();
218
218
  }
219
219
  function U() {
220
- if (m && p === g) return m;
220
+ if (m && v === g) return m;
221
221
  const r = $();
222
- return m = M(r.tree), p = g, w(r.slotCount), E(r.roots), m;
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 o)
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, p = -1;
230
+ d.forEach((u) => u()), d = [], y = [], m = null, v = -1;
231
231
  }
232
232
  };
233
233
  }
234
- function j() {
234
+ function L() {
235
235
  return g;
236
236
  }
237
- function L() {
237
+ function j() {
238
238
  return 0;
239
239
  }
240
240
  function P() {
241
- return H(D, j, L), U();
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 v.createElement(
248
- v.Fragment,
247
+ return p.createElement(
248
+ p.Fragment,
249
249
  null,
250
- q(t),
251
- v.createElement(I)
250
+ O(t),
251
+ p.createElement(I)
252
252
  );
253
253
  }
254
254
  export {