fiboui 2.7.1 → 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.
@@ -1,5 +1,5 @@
1
- import { B as e } from "./index-C9I92HPE.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-Bydlscpe.js";
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-DBeyafKI.js";
2
- import { C as c, S as f } from "./index-B7eVMy2M.js";
3
- import { a6 as m, a3 as d, a4 as p, a5 as u, a7 as b } from "./client-Bydlscpe.js";
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 { b0 as b, a$ as x, b1 as E, b2 as $, b3 as R, b4 as k, b5 as D, b6 as g, b7 as O, b8 as P, b9 as z, aD as A, aE as K } from "./client-Bydlscpe.js";
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 v(e) {
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,12 +13,12 @@ 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(v(n), e);
17
- return `${k(e, a)}${t}${r}`;
16
+ const { search: t, hash: r } = H(n), a = R(b(n), e);
17
+ return `${D(e, a)}${t}${r}`;
18
18
  }
19
19
  function j(e, n, t, r = "") {
20
- const a = R(v(n), r), s = v(e);
21
- return a === "/" ? s === "/" : D(s, a, t).match;
20
+ const a = R(b(n), r), s = b(e);
21
+ return a === "/" ? s === "/" : O(s, a, t).match;
22
22
  }
23
23
  const W = ({
24
24
  to: e,
@@ -33,7 +33,7 @@ const W = ({
33
33
  rel: h,
34
34
  ...p
35
35
  }) => {
36
- const l = b(), 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" ? $(h, "noopener noreferrer") : h;
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
  {
@@ -66,7 +66,7 @@ const W = ({
66
66
  exact: f = !1,
67
67
  ...i
68
68
  }) => {
69
- const o = b(), h = !!o && j(
69
+ const o = v(), h = !!o && j(
70
70
  o.currentPath,
71
71
  e,
72
72
  f,
@@ -84,14 +84,14 @@ const W = ({
84
84
  }
85
85
  );
86
86
  }, J = () => {
87
- const e = b(), n = g();
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 } = O(n.children, e.currentPath);
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(P.Provider, { value: t, children: /* @__PURE__ */ c(r, {}) });
94
+ return /* @__PURE__ */ c($.Provider, { value: t, children: /* @__PURE__ */ c(r, {}) });
95
95
  }, d = /* @__PURE__ */ new WeakMap();
96
96
  function _(e) {
97
97
  return e instanceof Error ? e : typeof e == "string" && e.trim() ? new Error(e) : new Error("Failed to load route");
@@ -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-Bydlscpe.js";
2
- import { L as i, N as p, O as m, l as n, p as x, u as y } from "./metadata-BbFwNwNa.js";
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, a_ as A, U as I } from "./client-Bydlscpe.js";
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)}`;
@@ -192,12 +192,12 @@ v.prototype.animate = function(e, t = {}) {
192
192
  return;
193
193
  }
194
194
  if (t.curve === "spring") {
195
- const g = typeof t.stiffness == "number" && Number.isFinite(t.stiffness) && t.stiffness > 0 ? t.stiffness : 170, _ = typeof t.damping == "number" && Number.isFinite(t.damping) && t.damping >= 0 ? t.damping : 26, p = typeof t.mass == "number" && Number.isFinite(t.mass) && t.mass > 0 ? t.mass : 1;
195
+ const g = typeof t.stiffness == "number" && Number.isFinite(t.stiffness) && t.stiffness > 0 ? t.stiffness : 170, p = typeof t.damping == "number" && Number.isFinite(t.damping) && t.damping >= 0 ? t.damping : 26, _ = typeof t.mass == "number" && Number.isFinite(t.mass) && t.mass > 0 ? t.mass : 1;
196
196
  let o = r, d = typeof t.velocity == "number" && Number.isFinite(t.velocity) ? t.velocity : 0;
197
197
  const w = 1 / 60, M = () => {
198
198
  var x, C;
199
- const S = -g * (o - n) - _ * d;
200
- if (d += S / p * w, o += d * w, !Number.isFinite(o) || !Number.isFinite(d)) {
199
+ const S = -g * (o - n) - p * d;
200
+ if (d += S / _ * w, o += d * w, !Number.isFinite(o) || !Number.isFinite(d)) {
201
201
  this.value = n, a.delete(this), (x = t.onComplete) == null || x.call(t);
202
202
  return;
203
203
  }
@@ -214,10 +214,10 @@ v.prototype.animate = function(e, t = {}) {
214
214
  const u = q[t.curve || "easeOut"] ?? q.easeOut;
215
215
  let l = null;
216
216
  const m = (g) => {
217
- var p;
217
+ var _;
218
218
  l || (l = g);
219
- const _ = Math.min((g - l) / s, 1);
220
- this.value = B(r, n, u(_)), _ < 1 ? a.set(this, requestAnimationFrame(m)) : (a.delete(this), (p = t.onComplete) == null || p.call(t));
219
+ const p = Math.min((g - l) / s, 1);
220
+ this.value = B(r, n, u(p)), p < 1 ? a.set(this, requestAnimationFrame(m)) : (a.delete(this), (_ = t.onComplete) == null || _.call(t));
221
221
  };
222
222
  a.set(this, requestAnimationFrame(m));
223
223
  };