fiboui 2.4.2 → 2.4.3

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.
@@ -2,30 +2,30 @@
2
2
  var q = Object.defineProperty;
3
3
  var I = (e, t, n) => t in e ? q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var b = (e, t, n) => I(e, typeof t != "symbol" ? t + "" : t, n);
5
- import h, { useCallback as R, useSyncExternalStore as E, memo as T, useState as w, useRef as _, useEffect as v, StrictMode as L } from "react";
6
- import { n as k, S as F, B as H, H as $, J as j, D as z, R as x, K as N, P as D, L as W, N as J } from "./builder-CCVmfPD1.js";
5
+ import h, { useCallback as R, useSyncExternalStore as M, memo as T, useState as w, useRef as _, useEffect as v, StrictMode as L } from "react";
6
+ import { n as k, S as F, D as $, J as j, K as z, E as H, R as x, L as N, P as D, N as W, Q as J } from "./builder-B5cebEWZ.js";
7
7
  import { createRoot as C } from "react-dom/client";
8
8
  import { P as K } from "./PluginManager-D5-ApsSN.js";
9
- function Y(e) {
9
+ function Q(e) {
10
10
  return (t) => e.subscribe(t);
11
11
  }
12
12
  function fe(e) {
13
- const t = R(Y(e), [e]);
14
- return E(t, () => e.value, () => e.value);
13
+ const t = R(Q(e), [e]);
14
+ return M(t, () => e.value, () => e.value);
15
15
  }
16
16
  function me(e) {
17
17
  const t = R(
18
18
  (n) => e.subscribe(n),
19
19
  [e]
20
20
  );
21
- return E(t, () => e.getState(), () => e.getState());
21
+ return M(t, () => e.getState(), () => e.getState());
22
22
  }
23
23
  function he(e) {
24
24
  const t = R(
25
25
  (n) => e.subscribe(n),
26
26
  [e]
27
27
  );
28
- return E(t, () => e.get(), () => e.get());
28
+ return M(t, () => e.get(), () => e.get());
29
29
  }
30
30
  function pe(e, t, n) {
31
31
  if (!t || n === void 0)
@@ -38,7 +38,7 @@ function we(e, t) {
38
38
  const n = T(e, t);
39
39
  return (r) => h.createElement(n, r);
40
40
  }
41
- const G = {
41
+ const Y = {
42
42
  linear: (e) => e,
43
43
  easeIn: (e) => e * e,
44
44
  easeOut: (e) => e * (2 - e),
@@ -49,7 +49,7 @@ const G = {
49
49
  bounce: (e) => e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375
50
50
  };
51
51
  function be(e, t) {
52
- const { duration: n = 300, delay: r = 0, easing: i = G.easeOut } = t || {}, [o, c] = w(e), s = _(), l = _(o);
52
+ const { duration: n = 300, delay: r = 0, easing: i = Y.easeOut } = t || {}, [o, c] = w(e), s = _(), l = _(o);
53
53
  return l.current = o, v(() => {
54
54
  s.current && cancelAnimationFrame(s.current);
55
55
  let u = null;
@@ -99,19 +99,19 @@ function ve(e, t = 300) {
99
99
  }
100
100
  }, [e, t]), { shouldRender: n, stage: i };
101
101
  }
102
- function Me(e, t = 50) {
102
+ function Ee(e, t = 50) {
103
103
  return Array.from({ length: e }, (n, r) => r * t);
104
104
  }
105
- function Q(e) {
105
+ function G(e) {
106
106
  if (typeof window > "u" || typeof window.matchMedia != "function")
107
107
  return () => {
108
108
  };
109
109
  const t = window.matchMedia("(prefers-reduced-motion: reduce)");
110
110
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
111
111
  }
112
- function Ee() {
113
- return E(
114
- Q,
112
+ function Me() {
113
+ return M(
114
+ G,
115
115
  () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches,
116
116
  () => !1
117
117
  );
@@ -175,11 +175,11 @@ function _e(e = {}) {
175
175
  mass: e.mass
176
176
  });
177
177
  }
178
- function M(e) {
178
+ function E(e) {
179
179
  return !!e && typeof e == "object" && "value" in e && typeof e.subscribe == "function";
180
180
  }
181
181
  function X(e) {
182
- return !e || typeof e != "object" || M(e) ? !1 : Object.prototype.hasOwnProperty.call(e, "show");
182
+ return !e || typeof e != "object" || E(e) ? !1 : Object.prototype.hasOwnProperty.call(e, "show");
183
183
  }
184
184
  function Z(e) {
185
185
  if (typeof window > "u" || typeof window.matchMedia != "function")
@@ -192,22 +192,22 @@ function V() {
192
192
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
193
193
  }
194
194
  function ee() {
195
- return E(Z, V, () => !1);
195
+ return M(Z, V, () => !1);
196
196
  }
197
197
  function te(e) {
198
- return M(e) ? !!e.value : !!e;
198
+ return E(e) ? !!e.value : !!e;
199
199
  }
200
200
  function ne(e) {
201
201
  const [t, n] = w(() => te(e));
202
202
  return v(() => {
203
- if (!M(e)) {
203
+ if (!E(e)) {
204
204
  n(!!e);
205
205
  return;
206
206
  }
207
207
  return n(!!e.value), e.subscribe((r) => n(!!r));
208
- }, [e]), M(e) ? t : !!e;
208
+ }, [e]), E(e) ? t : !!e;
209
209
  }
210
- function B({
210
+ function O({
211
211
  show: e,
212
212
  enter: t = "fadeIn",
213
213
  exit: n = "fadeOut",
@@ -217,7 +217,7 @@ function B({
217
217
  }) {
218
218
  const c = ne(e), [s, l] = w(c), [u, a] = w(c ? "enter" : "idle"), d = i !== "never" && ee();
219
219
  if (v(() => {
220
- if ($(), c) {
220
+ if (j(), c) {
221
221
  l(!0), a(d ? "idle" : "enter");
222
222
  return;
223
223
  }
@@ -229,7 +229,7 @@ function B({
229
229
  a("exit");
230
230
  }
231
231
  }, [c, d]), !s) return null;
232
- const m = u === "exit" ? n : u === "enter" ? t : void 0, f = m && !d ? j(m) : void 0;
232
+ const m = u === "exit" ? n : u === "enter" ? t : void 0, f = m && !d ? z(m) : void 0;
233
233
  return h.createElement(
234
234
  "div",
235
235
  {
@@ -243,7 +243,7 @@ function B({
243
243
  o
244
244
  );
245
245
  }
246
- class re extends z {
246
+ class re extends H {
247
247
  constructor(n = !0) {
248
248
  super();
249
249
  b(this, "_show", !0);
@@ -252,7 +252,7 @@ class re extends z {
252
252
  this.show(n);
253
253
  }
254
254
  show(n) {
255
- return this._show = n, M(n) && (this.bindSignal(n), this.observer()), this;
255
+ return this._show = n, E(n) && (this.bindSignal(n), this.observer()), this;
256
256
  }
257
257
  enter(n) {
258
258
  return this._enter = n, this;
@@ -264,7 +264,7 @@ class re extends z {
264
264
  return this._transitionDuration = n, this;
265
265
  }
266
266
  build() {
267
- return h.createElement(B, {
267
+ return h.createElement(O, {
268
268
  show: this._show,
269
269
  enter: this._enter,
270
270
  exit: this._exit,
@@ -274,9 +274,9 @@ class re extends z {
274
274
  });
275
275
  }
276
276
  }
277
- const ie = H(re);
277
+ const ie = $(re);
278
278
  function se(e) {
279
- return X(e) ? h.createElement(B, e) : ie(e ?? !0);
279
+ return X(e) ? h.createElement(O, e) : ie(e ?? !0);
280
280
  }
281
281
  se.displayName = "Presence";
282
282
  class oe {
@@ -320,23 +320,23 @@ class oe {
320
320
  }
321
321
  }
322
322
  const Se = () => new oe();
323
- function O(e) {
323
+ function B(e) {
324
324
  return J(e);
325
325
  }
326
326
  function Re({ children: e }) {
327
- return O(e);
327
+ return B(e);
328
328
  }
329
329
  function Fe(e, t, n) {
330
330
  const r = typeof e == "string" ? document.querySelector(e) : e;
331
331
  if (!r)
332
332
  throw new Error(`mount: element not found: ${String(e)}`);
333
- const i = typeof t == "function" && !W(t) ? t() : t, o = O(i), c = C(r), s = h.createElement(x, { children: o });
333
+ const i = typeof t == "function" && !W(t) ? t() : t, o = B(i), c = C(r), s = h.createElement(x, { children: o });
334
334
  return c.render(
335
335
  (n == null ? void 0 : n.strict) === !1 ? s : h.createElement(L, null, s)
336
336
  ), c;
337
337
  }
338
338
  export {
339
- G as E,
339
+ Y as E,
340
340
  Se as F,
341
341
  se as P,
342
342
  me as a,
@@ -344,15 +344,15 @@ export {
344
344
  pe as c,
345
345
  be as d,
346
346
  ge as e,
347
- Me as f,
347
+ Ee as f,
348
348
  ve as g,
349
- Ee as h,
349
+ Me as h,
350
350
  ye as i,
351
351
  _e as j,
352
352
  oe as k,
353
353
  Re as l,
354
354
  Fe as m,
355
355
  we as n,
356
- O as t,
356
+ B as t,
357
357
  fe as u
358
358
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
3
  import { useState as a, useCallback as F, useMemo as T, createContext as C, useContext as p } from "react";
4
- import { r as x, f as P, b as g } from "./themeData-CmTJt3dU.js";
4
+ import { r as x, f as P, b as g } from "./themeData-Dtm0M_mF.js";
5
5
  const l = C(void 0);
6
6
  function k(e) {
7
7
  return typeof e == "string" ? e : `${e.name}|${e.colors.primary}|${e.colors.background}|${e.fontFamily}`;
package/dist/structure.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { B as e } from "./index-Bdphg-MS.js";
3
- import { B as i, C as o, c as t, G as l, d, L as B, a as T, T as m, b as n } from "./index-CHXOPJU-.js";
2
+ import { B as e } from "./index-orKQGpHl.js";
3
+ import { B as i, C as o, c as t, G as l, d, L as B, a as T, T as m, b as n } from "./index-MeDbhMEg.js";
4
4
  export {
5
5
  i as Banner,
6
6
  e as Box,