fiboui 2.4.1 → 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.
package/dist/content.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-De55bvQW.js";
3
- import { T as x } from "./index-EM-UZNWN.js";
4
- import { I as f } from "./index-DP7-rISq.js";
2
+ import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-DRVdVimz.js";
3
+ import { T as x } from "./index-DbaNIwWW.js";
4
+ import { I as f } from "./index-BMIo5j9Y.js";
5
5
  export {
6
6
  s as Alert,
7
7
  r as Avatar,
package/dist/core.js CHANGED
@@ -1,62 +1,63 @@
1
1
  "use client";
2
- import { C as a, F as t, x as r, I as o, M as i, w as n, O as l, d as u, P as c, R as p, f as S, h as g, S as b, V as T, c as v, b as E, a as C, v as F, z as d, g as f, y as m, A as R, q as I, t as O, p as P, o as y, n as x, r as M, i as A, s as N, m as _, j as B, l as V, k as w, u as h, e as j } from "./builder-Dnz93Wem.js";
3
- import { E as z, l as q, F as G, k as K, P as W, c as X, j as D, m as H, t as J, g as L, b as Q, h as U, a as Y, i as Z, u as $, e as ss, f as es, d as as } from "./mount-DIQx3NWo.js";
4
- import { F as rs, b as os } from "./FineGrain-BOIYZ80-.js";
2
+ import { C as a, F as t, x as r, I as o, M as i, w as n, O as l, d as u, P as c, R as S, f as p, h as g, S as b, V as T, c as v, b as E, a as d, B as C, v as F, z as R, g as f, y as m, A as I, q as O, t as P, p as y, o as x, n as M, r as A, i as B, s as N, m as _, j as V, l as w, k as h, u as j, e as k } from "./builder-B5cebEWZ.js";
3
+ import { E as z, l as G, F as K, k as W, P as X, c as D, j as H, m as J, t as L, g as Q, b as U, h as Y, a as Z, i as $, u as ss, e as es, f as as, d as ts } from "./mount-DbMVakA4.js";
4
+ import { F as os, b as is } from "./FineGrain-CvcJ5OxF.js";
5
5
  export {
6
6
  a as ComputedSignal,
7
7
  z as Easing,
8
8
  t as FIBO_INTERACTION_FX_CSS,
9
- q as Fibo,
10
- G as FiboApp,
11
- K as FiboAppBuilder,
9
+ G as Fibo,
10
+ K as FiboApp,
11
+ W as FiboAppBuilder,
12
12
  r as FiboStyles,
13
- rs as FineGrainText,
13
+ os as FineGrainText,
14
14
  o as INTERACTION_EFFECTS,
15
15
  i as MOTION_PRESETS,
16
16
  n as MotionStyles,
17
17
  l as Observable,
18
18
  u as Observer,
19
- W as Presence,
19
+ X as Presence,
20
20
  c as ProviderWrapper,
21
- p as ReactivityRoot,
22
- S as Reveal,
21
+ S as ReactivityRoot,
22
+ p as Reveal,
23
23
  g as ScrollProgress,
24
24
  b as Signal,
25
25
  T as ValueBuilder,
26
- X as applyResponsiveStyles,
27
- os as bindText,
26
+ D as applyResponsiveStyles,
27
+ is as bindText,
28
28
  v as computed,
29
29
  E as createReactivityRoot,
30
- C as createStore,
31
- D as cssCurve,
30
+ d as createStore,
31
+ H as cssCurve,
32
+ C as endSsrRequest,
32
33
  F as ensureInteractionFxCss,
33
- d as getCss,
34
+ R as getCss,
34
35
  f as getCurrentScope,
35
36
  m as getMotionCss,
36
- R as getStyleTag,
37
- I as interactionEffectClass,
38
- O as interactionEffectKebab,
39
- H as mount,
40
- P as normalizeInteractionEffect,
41
- y as observable,
42
- x as resolveCssEase,
43
- M as runInScope,
44
- A as scrollTo,
37
+ I as getStyleTag,
38
+ O as interactionEffectClass,
39
+ P as interactionEffectKebab,
40
+ J as mount,
41
+ y as normalizeInteractionEffect,
42
+ x as observable,
43
+ M as resolveCssEase,
44
+ A as runInScope,
45
+ B as scrollTo,
45
46
  N as signal,
46
47
  _ as springEase,
47
- B as startViewTransition,
48
- V as supportsScrollTimeline,
49
- w as supportsViewTimeline,
50
- J as toElement,
51
- h as useBuilderState,
52
- L as useMountTransition,
53
- Q as useObservable,
54
- U as usePrefersReducedMotion,
55
- j as useProvider,
56
- Y as useReactiveStore,
57
- Z as useScrollProgress,
58
- $ as useSignal,
59
- ss as useSpring,
60
- es as useStagger,
61
- as as useTransition
48
+ V as startViewTransition,
49
+ w as supportsScrollTimeline,
50
+ h as supportsViewTimeline,
51
+ L as toElement,
52
+ j as useBuilderState,
53
+ Q as useMountTransition,
54
+ U as useObservable,
55
+ Y as usePrefersReducedMotion,
56
+ k as useProvider,
57
+ Z as useReactiveStore,
58
+ $ as useScrollProgress,
59
+ ss as useSignal,
60
+ es as useSpring,
61
+ as as useStagger,
62
+ ts as useTransition
62
63
  };
@@ -3,7 +3,7 @@ var m = Object.defineProperty;
3
3
  var p = (e, t, s) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
4
4
  var r = (e, t, s) => p(e, typeof t != "symbol" ? t + "" : t, s);
5
5
  import o from "react";
6
- import { B as a, D as u } from "./builder-Dnz93Wem.js";
6
+ import { D as a, E as u } from "./builder-B5cebEWZ.js";
7
7
  class g extends u {
8
8
  constructor() {
9
9
  super(...arguments);
@@ -3,7 +3,7 @@ var H = Object.defineProperty;
3
3
  var O = (c, l, e) => l in c ? H(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e;
4
4
  var r = (c, l, e) => O(c, typeof l != "symbol" ? l + "" : l, e);
5
5
  import t, { useState as M, useEffect as j, useRef as F } from "react";
6
- import { B as $, D, S as P } from "./builder-Dnz93Wem.js";
6
+ import { D as $, E as D, S as P } from "./builder-B5cebEWZ.js";
7
7
  import { t as L } from "./bundle-mjs-wppB-TKB.js";
8
8
  const q = t.memo((c) => {
9
9
  const {
@@ -37,7 +37,8 @@ const q = t.memo((c) => {
37
37
  "fibo-button",
38
38
  "inline-flex items-center justify-center whitespace-nowrap",
39
39
  z ? "" : "font-semibold",
40
- n ? "" : "active:scale-[0.96] transform transition-all duration-200 ease-out",
40
+ // Resting scale(1) so active:scale eases instead of snapping from none.
41
+ n ? "" : "scale-100 active:scale-[0.96] transform transition-transform duration-200 ease-out",
41
42
  d ? "cursor-not-allowed opacity-60" : "cursor-pointer",
42
43
  e === "raw" || I ? "" : g[o],
43
44
  e === "raw" || C ? "" : S,
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- var X = Object.defineProperty;
3
- var q = (n, s, e) => s in n ? X(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
- var r = (n, s, e) => q(n, typeof s != "symbol" ? s + "" : s, e);
5
- import i, { useState as T, useRef as D, useLayoutEffect as G } from "react";
6
- import { B as _, D as b, T as J, N as V, P as K } from "./builder-Dnz93Wem.js";
2
+ var Q = Object.defineProperty;
3
+ var U = (n, s, e) => s in n ? Q(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
+ var r = (n, s, e) => U(n, typeof s != "symbol" ? s + "" : s, e);
5
+ import i, { useState as V, useRef as D, useLayoutEffect as X } from "react";
6
+ import { D as _, E as b, U as q, Q as F, P as G } from "./builder-B5cebEWZ.js";
7
7
  import { P as W } from "./PluginManager-D5-ApsSN.js";
8
- import { R as Q, I as U } from "./index-DP7-rISq.js";
9
- import { T as ee } from "./index-EM-UZNWN.js";
8
+ import { R as J, I as K } from "./index-BMIo5j9Y.js";
9
+ import { T as ee } from "./index-DbaNIwWW.js";
10
10
  import { e as te, L as ie } from "./Link-ElmaMZB8.js";
11
11
  class se extends b {
12
12
  build() {
@@ -167,7 +167,7 @@ const ze = _(oe), le = i.memo((n) => {
167
167
  [c, ...d]
168
168
  );
169
169
  return f.size > 0 ? i.createElement(
170
- K,
170
+ G,
171
171
  {
172
172
  providers: f,
173
173
  children: p
@@ -211,10 +211,10 @@ class ae extends b {
211
211
  }
212
212
  _normalizeBar(e) {
213
213
  return this._isLayoutBarConfig(e) ? {
214
- content: i.createElement(i.Fragment, null, ...J(e.children)),
214
+ content: i.createElement(i.Fragment, null, ...q(e.children)),
215
215
  fixed: e.fixed ?? !1
216
216
  } : {
217
- content: V(e),
217
+ content: F(e),
218
218
  fixed: !1
219
219
  };
220
220
  }
@@ -222,8 +222,8 @@ class ae extends b {
222
222
  return !e || typeof e != "object" || i.isValidElement(e) || "build" in e && typeof e.build == "function" ? !1 : "children" in e && !("type" in e);
223
223
  }
224
224
  build() {
225
- var k, C, z, j, y, E, S, L, R, $, A, O, l, a, m, g, I, M, H, P, F, Y;
226
- const e = this.processChildren(), t = this._structure, o = this._headerBar && ((k = t.header) == null ? void 0 : k.visible) !== !1, h = this._footerBar && ((C = t.footer) == null ? void 0 : C.visible) !== !1, c = this._sideBarLeft && ((z = t.sidebarLeft) == null ? void 0 : z.visible) !== !1, d = this._sideBarRight && ((j = t.sidebarRight) == null ? void 0 : j.visible) !== !1, f = c && ((y = t.sidebarLeft) == null ? void 0 : y.fullHeight), p = d && ((E = t.sidebarRight) == null ? void 0 : E.fullHeight), B = i.createElement(
225
+ var N, C, z, j, y, E, S, L, R, $, A, O, l, a, m, g, I, M, H, P, T, Y;
226
+ const e = this.processChildren(), t = this._structure, o = this._headerBar && ((N = t.header) == null ? void 0 : N.visible) !== !1, h = this._footerBar && ((C = t.footer) == null ? void 0 : C.visible) !== !1, c = this._sideBarLeft && ((z = t.sidebarLeft) == null ? void 0 : z.visible) !== !1, d = this._sideBarRight && ((j = t.sidebarRight) == null ? void 0 : j.visible) !== !1, f = c && ((y = t.sidebarLeft) == null ? void 0 : y.fullHeight), p = d && ((E = t.sidebarRight) == null ? void 0 : E.fullHeight), B = i.createElement(
227
227
  "div",
228
228
  {
229
229
  key: "scaffold-middle",
@@ -318,7 +318,7 @@ class ae extends b {
318
318
  i.createElement("div", {
319
319
  key: "sidebar-left-full",
320
320
  style: {
321
- width: (F = t.sidebarLeft) == null ? void 0 : F.width,
321
+ width: (T = t.sidebarLeft) == null ? void 0 : T.width,
322
322
  overflowY: "auto",
323
323
  borderRight: "1px solid var(--fibo-outline, #e0e0e0)",
324
324
  backgroundColor: "var(--fibo-surface, #ffffff)",
@@ -408,17 +408,17 @@ class ce extends b {
408
408
  }
409
409
  }
410
410
  const Re = _(ce), de = i.memo((n) => {
411
- const { width: s = 260, collapsed: e, className: t, style: o, children: h, ...c } = n, d = te(), f = (d == null ? void 0 : d.currentPath) ?? "", p = e ? 80 : s, w = W.getInstance().getSidebarItems().map((u, N) => {
411
+ const { width: s = 260, collapsed: e, className: t, style: o, children: h, ...c } = n, d = te(), f = (d == null ? void 0 : d.currentPath) ?? "", p = e ? 80 : s, w = W.getInstance().getSidebarItems().map((u, k) => {
412
412
  const x = f === u.path;
413
413
  return i.createElement(ie, {
414
- key: `plugin-item-${u.path || N}`,
414
+ key: `plugin-item-${u.path || k}`,
415
415
  to: u.path,
416
416
  className: "no-underline block mb-1",
417
- children: Q().padding(12).alignItems("center").gap(12).className(`
417
+ children: J().padding(12).alignItems("center").gap(12).className(`
418
418
  transition-colors duration-200 rounded-lg mx-2
419
419
  ${x ? "bg-primary/10 text-primary" : "text-gray-600 hover:bg-gray-100"}
420
420
  `).children([
421
- u.icon ? U(u.icon).size(20).build() : null,
421
+ u.icon ? K(u.icon).size(20).build() : null,
422
422
  e ? null : ee(u.label).style({ fontSize: 14 }).weight(500).build()
423
423
  ].filter(Boolean)).build()
424
424
  });
@@ -459,7 +459,7 @@ class fe extends b {
459
459
  }
460
460
  }
461
461
  const $e = _(fe), ue = i.memo((n) => {
462
- const { sidebar: s, header: e, children: t, className: o, style: h, ...c } = n, [d, f] = T(!1);
462
+ const { sidebar: s, header: e, children: t, className: o, style: h, ...c } = n, [d, f] = V(!1);
463
463
  return i.createElement(
464
464
  "div",
465
465
  {
@@ -517,10 +517,10 @@ class me extends b {
517
517
  r(this, "_header");
518
518
  }
519
519
  sidebar(e) {
520
- return this._sidebar = V(e), this;
520
+ return this._sidebar = F(e), this;
521
521
  }
522
522
  header(e) {
523
- return this._header = V(e), this;
523
+ return this._header = F(e), this;
524
524
  }
525
525
  build() {
526
526
  const e = {
@@ -666,19 +666,19 @@ const Me = _(be), ye = i.memo((n) => {
666
666
  containerHeight: c = 500,
667
667
  className: d,
668
668
  style: f
669
- } = n, [p, B] = T(0), w = D(null), u = D(/* @__PURE__ */ new Map()), N = D(/* @__PURE__ */ new Map()), x = s.length, v = e !== void 0, k = (l) => v ? e : N.current.get(l) ?? t, C = (l) => {
669
+ } = n, [p, B] = V(0), w = D(null), u = D(/* @__PURE__ */ new Map()), k = D(/* @__PURE__ */ new Map()), x = s.length, v = e !== void 0, N = (l) => v ? e : k.current.get(l) ?? t, C = (l) => {
670
670
  if (v)
671
671
  return l * e;
672
672
  let a = 0;
673
673
  for (let m = 0; m < l; m++)
674
- a += k(m);
674
+ a += N(m);
675
675
  return a;
676
676
  }, z = () => {
677
677
  if (v)
678
678
  return x * e;
679
679
  let l = 0;
680
680
  for (let a = 0; a < x; a++)
681
- l += k(a);
681
+ l += N(a);
682
682
  return l;
683
683
  }, y = Math.max(0, ((l) => {
684
684
  if (v)
@@ -697,18 +697,18 @@ const Me = _(be), ye = i.memo((n) => {
697
697
  } else {
698
698
  let l = C(y), a = y;
699
699
  for (; l < p + c + h * t && a < x; )
700
- l += k(a), a++;
700
+ l += N(a), a++;
701
701
  E = Math.min(x, a);
702
702
  }
703
- const S = s.slice(y, E), L = C(y), R = z(), [$, A] = T(0);
704
- G(() => {
703
+ const S = s.slice(y, E), L = C(y), R = z(), [$, A] = V(0);
704
+ X(() => {
705
705
  if (!o || v) return;
706
706
  let l = !1;
707
707
  S.forEach((a, m) => {
708
708
  const g = y + m, I = u.current.get(g);
709
709
  if (I) {
710
710
  const H = I.getBoundingClientRect().height;
711
- H > 0 && N.current.get(g) !== H && (N.current.set(g, H), l = !0);
711
+ H > 0 && k.current.get(g) !== H && (k.current.set(g, H), l = !0);
712
712
  }
713
713
  }), l && A((a) => a + 1);
714
714
  }, [S, y, o, v, $]);
@@ -3,10 +3,10 @@ var U = Object.defineProperty;
3
3
  var G = (n, s, e) => s in n ? U(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
4
  var r = (n, s, e) => G(n, typeof s != "symbol" ? s + "" : s, e);
5
5
  import t from "react";
6
- import { B as C, D as F } from "./builder-Dnz93Wem.js";
7
- import { B as j } from "./index-DN_fam2s.js";
8
- import { T as O } from "./index-EM-UZNWN.js";
9
- import { R as J } from "./index-DP7-rISq.js";
6
+ import { D as C, E as F } from "./builder-B5cebEWZ.js";
7
+ import { B as j } from "./index-orKQGpHl.js";
8
+ import { T as O } from "./index-DbaNIwWW.js";
9
+ import { R as J } from "./index-BMIo5j9Y.js";
10
10
  import { jsxs as $, jsx as f } from "react/jsx-runtime";
11
11
  const K = ({ size: n }) => t.createElement(
12
12
  "svg",
@@ -3,8 +3,8 @@ var f = Object.defineProperty;
3
3
  var b = (i, e, t) => e in i ? f(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
4
  var a = (i, e, t) => b(i, typeof e != "symbol" ? e + "" : e, t);
5
5
  import o from "react";
6
- import { B as c, D as x } from "./builder-Dnz93Wem.js";
7
- import { F as g } from "./FineGrain-BOIYZ80-.js";
6
+ import { D as c, E as x } from "./builder-B5cebEWZ.js";
7
+ import { F as g } from "./FineGrain-CvcJ5OxF.js";
8
8
  const p = {
9
9
  h1: {
10
10
  fontSize: "var(--fibo-text-h1-size, 2.25rem)",