fiboui 2.2.0 → 2.2.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-CbTvwN9K.js";
3
- import { T as x } from "./index-DhPBYTPt.js";
4
- import { I as f } from "./index-ijbJR6lD.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-DgRpEUs0.js";
3
+ import { T as x } from "./index-BObp1JkM.js";
4
+ import { I as f } from "./index-CZQ5erLU.js";
5
5
  export {
6
6
  s as Alert,
7
7
  r as Avatar,
package/dist/core.js CHANGED
@@ -1,53 +1,56 @@
1
1
  "use client";
2
- import { C as a, M as r, q as o, O as t, d as i, P as n, R as l, h as u, i as p, S as c, V as S, f as g, c as b, b as v, a as d, g as m, t as R, o as T, p as P, r as E, j as f, s as C, n as F, k as M, m as O, l as x, u as y, e as V } from "./builder-KLTu7nAI.js";
3
- import { E as h, k as j, F as k, j as w, P as A, i as I, m as q, t as G, f as N, b as W, g as _, a as z, h as D, u as H, d as J, e as K, c as L } from "./mount-D5gt_GWO.js";
4
- import { F as U, b as X } from "./FineGrain-6w615KQw.js";
2
+ import { C as a, F as r, M as o, p as t, O as i, d as l, P as n, R as u, f as p, h as S, S as c, V as g, c as b, b as v, a as d, t as m, g as T, q as R, v as P, o as F, n as y, r as C, i as E, s as f, m as M, j as O, l as x, k as V, u as B, e as h } from "./builder-3Bc2PfP9.js";
3
+ import { E as k, l as w, F as A, k as I, P as q, c as G, j as N, m as W, t as _, g as z, b as D, h as H, a as J, i as K, u as L, e as Q, f as U, d as X } from "./mount-D59e1COl.js";
4
+ import { F as Z, b as $ } from "./FineGrain-BEvB51B2.js";
5
5
  export {
6
6
  a as ComputedSignal,
7
- h as Easing,
8
- j as Fibo,
9
- k as FiboApp,
10
- w as FiboAppBuilder,
11
- U as FineGrainText,
12
- r as MOTION_PRESETS,
13
- o as MotionStyles,
14
- t as Observable,
15
- i as Observer,
16
- A as Presence,
7
+ k as Easing,
8
+ w as Fibo,
9
+ A as FiboApp,
10
+ I as FiboAppBuilder,
11
+ r as FiboStyles,
12
+ Z as FineGrainText,
13
+ o as MOTION_PRESETS,
14
+ t as MotionStyles,
15
+ i as Observable,
16
+ l as Observer,
17
+ q as Presence,
17
18
  n as ProviderWrapper,
18
- l as ReactivityRoot,
19
- u as Reveal,
20
- p as ScrollProgress,
19
+ u as ReactivityRoot,
20
+ p as Reveal,
21
+ S as ScrollProgress,
21
22
  c as Signal,
22
- S as ValueBuilder,
23
- g as applyResponsiveStyles,
24
- X as bindText,
23
+ g as ValueBuilder,
24
+ G as applyResponsiveStyles,
25
+ $ as bindText,
25
26
  b as computed,
26
27
  v as createReactivityRoot,
27
28
  d as createStore,
28
- I as cssCurve,
29
- m as getCurrentScope,
29
+ N as cssCurve,
30
+ m as getCss,
31
+ T as getCurrentScope,
30
32
  R as getMotionCss,
31
- q as mount,
32
- T as observable,
33
- P as resolveCssEase,
34
- E as runInScope,
35
- f as scrollTo,
36
- C as signal,
37
- F as springEase,
38
- M as startViewTransition,
39
- O as supportsScrollTimeline,
40
- x as supportsViewTimeline,
41
- G as toElement,
42
- y as useBuilderState,
43
- N as useMountTransition,
44
- W as useObservable,
45
- _ as usePrefersReducedMotion,
46
- V as useProvider,
47
- z as useReactiveStore,
48
- D as useScrollProgress,
49
- H as useSignal,
50
- J as useSpring,
51
- K as useStagger,
52
- L as useTransition
33
+ P as getStyleTag,
34
+ W as mount,
35
+ F as observable,
36
+ y as resolveCssEase,
37
+ C as runInScope,
38
+ E as scrollTo,
39
+ f as signal,
40
+ M as springEase,
41
+ O as startViewTransition,
42
+ x as supportsScrollTimeline,
43
+ V as supportsViewTimeline,
44
+ _ as toElement,
45
+ B as useBuilderState,
46
+ z as useMountTransition,
47
+ D as useObservable,
48
+ H as usePrefersReducedMotion,
49
+ h as useProvider,
50
+ J as useReactiveStore,
51
+ K as useScrollProgress,
52
+ L as useSignal,
53
+ Q as useSpring,
54
+ U as useStagger,
55
+ X as useTransition
53
56
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- var p = Object.defineProperty;
3
- var m = (i, e, t) => e in i ? p(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
- var o = (i, e, t) => m(i, typeof e != "symbol" ? e + "" : e, t);
5
- import s from "react";
6
- import { v as c, F as f } from "./builder-KLTu7nAI.js";
7
- import { F as g } from "./FineGrain-6w615KQw.js";
2
+ var m = Object.defineProperty;
3
+ var p = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
+ var o = (i, e, t) => p(i, typeof e != "symbol" ? e + "" : e, t);
5
+ import h from "react";
6
+ import { w as c, x as f } from "./builder-3Bc2PfP9.js";
7
+ import { F as g } from "./FineGrain-BEvB51B2.js";
8
8
  const y = {
9
9
  h1: { fontSize: "2.25rem", fontWeight: 700, letterSpacing: "-0.025em", lineHeight: 1.2 },
10
10
  h2: { fontSize: "1.875rem", fontWeight: 700, letterSpacing: "-0.025em", lineHeight: 1.25 },
@@ -17,10 +17,17 @@ const y = {
17
17
  label: { fontSize: "0.875rem", fontWeight: 500, lineHeight: 1.4 }
18
18
  };
19
19
  function r(i, e) {
20
- return { margin: 0, ...y[i], ...e };
20
+ return {
21
+ margin: 0,
22
+ overflowWrap: "anywhere",
23
+ wordBreak: "break-word",
24
+ maxWidth: "100%",
25
+ ...y[i],
26
+ ...e
27
+ };
21
28
  }
22
- const u = s.memo((i) => {
23
- const { text: e, type: t, className: h, style: n, ...a } = i, l = {
29
+ const u = h.memo((i) => {
30
+ const { text: e, type: t, className: n, style: s, ...a } = i, l = {
24
31
  h1: "h1",
25
32
  h2: "h2",
26
33
  h3: "h3",
@@ -31,11 +38,11 @@ const u = s.memo((i) => {
31
38
  caption: "span",
32
39
  label: "label"
33
40
  };
34
- return s.createElement(
41
+ return h.createElement(
35
42
  l[t],
36
43
  {
37
- className: `fibo-text fibo-text-${t} ${h}`,
38
- style: r(t, n),
44
+ className: `fibo-text fibo-text-${t} min-w-0 ${n}`,
45
+ style: r(t, s),
39
46
  ...a
40
47
  },
41
48
  e
@@ -79,26 +86,26 @@ class x extends f {
79
86
  label: "label"
80
87
  };
81
88
  if (typeof this._text == "function") {
82
- const n = this._text;
83
- return s.createElement(g, {
84
- compute: n,
89
+ const s = this._text;
90
+ return h.createElement(g, {
91
+ compute: s,
85
92
  as: t[this._type],
86
- className: `fibo-text fibo-text-${this._type} ${this.getClassName()}`,
93
+ className: `fibo-text fibo-text-${this._type} min-w-0 ${this.getClassName()}`,
87
94
  style: r(this._type, this.getStyle()),
88
95
  ...this._props
89
96
  });
90
97
  }
91
- const h = {
98
+ const n = {
92
99
  text: this._text,
93
100
  type: this._type,
94
101
  className: this.getClassName(),
95
102
  style: this.getStyle(),
96
103
  ...this._props
97
104
  };
98
- return s.createElement(u, h);
105
+ return h.createElement(u, n);
99
106
  }
100
107
  }
101
- const z = c(x);
108
+ const W = c(x);
102
109
  export {
103
- z as T
110
+ W as T
104
111
  };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import o from "react";
3
- import { v as n, F as i } from "./builder-KLTu7nAI.js";
3
+ import { w as l, x as i } from "./builder-3Bc2PfP9.js";
4
4
  const a = o.memo((r) => {
5
5
  const { className: c, style: e, children: s, ...t } = r;
6
6
  return o.createElement(
@@ -17,17 +17,18 @@ class m extends i {
17
17
  build() {
18
18
  const e = [
19
19
  "fibo-box",
20
+ "min-w-0",
20
21
  ...this._classNames
21
- ].filter(Boolean).join(" "), s = this.getStyle(), t = this.processChildren(), l = {
22
+ ].filter(Boolean).join(" "), s = this.getStyle(), t = this.processChildren(), n = {
22
23
  className: e,
23
24
  style: s,
24
25
  children: t,
25
26
  ...this._props
26
27
  };
27
- return o.createElement(a, l);
28
+ return o.createElement(a, n);
28
29
  }
29
30
  }
30
- const B = n(m);
31
+ const B = l(m);
31
32
  export {
32
33
  B
33
34
  };
@@ -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 { v as a, F as u } from "./builder-KLTu7nAI.js";
6
+ import { w as a, x as u } from "./builder-3Bc2PfP9.js";
7
7
  class g extends u {
8
8
  constructor() {
9
9
  super(...arguments);
@@ -40,7 +40,8 @@ class g extends u {
40
40
  "fibo-row",
41
41
  "flex",
42
42
  "flex-row",
43
- this.isHug() ? "w-auto self-auto shrink-0" : "w-full self-stretch",
43
+ // min-w-0: flex item can shrink below content intrinsic width (grid/flex overflow)
44
+ this.isHug() ? "w-auto self-auto shrink-0" : "w-full min-w-0 self-stretch",
44
45
  s[this._mainAxisAlignment],
45
46
  i[this._crossAxisAlignment],
46
47
  ...this._classNames
@@ -58,7 +59,7 @@ class g extends u {
58
59
  );
59
60
  }
60
61
  }
61
- const x = a(g), _ = o.memo((e) => {
62
+ const y = a(g), _ = o.memo((e) => {
62
63
  const {
63
64
  source: t,
64
65
  color: s,
@@ -112,8 +113,8 @@ class f extends u {
112
113
  return o.createElement(_, c);
113
114
  }
114
115
  }
115
- const b = a(f);
116
+ const w = a(f);
116
117
  export {
117
- b as I,
118
- x as R
118
+ w as I,
119
+ y as R
119
120
  };
@@ -2,8 +2,8 @@
2
2
  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
- import t, { useState as F, useEffect as M, useRef as j } from "react";
6
- import { v as $, F as D, S as P } from "./builder-KLTu7nAI.js";
5
+ import t, { useState as M, useEffect as j, useRef as F } from "react";
6
+ import { w as $, x as D, S as P } from "./builder-3Bc2PfP9.js";
7
7
  import { t as L } from "./bundle-mjs-wppB-TKB.js";
8
8
  const q = t.memo((c) => {
9
9
  const {
@@ -164,8 +164,8 @@ const de = $(V), W = (c, l) => {
164
164
  leadingIcon: _,
165
165
  trailingIcon: y,
166
166
  ...f
167
- } = c, g = x instanceof P, [S, m] = F(g ? x.value : x);
168
- M(() => {
167
+ } = c, g = x instanceof P, [S, m] = M(g ? x.value : x);
168
+ j(() => {
169
169
  if (g)
170
170
  return x.subscribe((u) => {
171
171
  m(u);
@@ -417,8 +417,8 @@ const ue = $(J), Q = t.memo((c) => {
417
417
  className: d,
418
418
  style: h,
419
419
  id: p
420
- } = c, k = j(null), v = l || s;
421
- M(() => {
420
+ } = c, k = F(null), v = l || s;
421
+ j(() => {
422
422
  k.current && (k.current.indeterminate = !!s);
423
423
  }, [s]);
424
424
  let x = null;
@@ -689,7 +689,7 @@ class te extends D {
689
689
  }
690
690
  }
691
691
  const be = $(te), re = t.memo((c) => {
692
- const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] = F(!1), [d, h] = F(0), p = j(null), {
692
+ const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] = M(!1), [d, h] = M(0), p = F(null), {
693
693
  containerClass: k,
694
694
  containerStyle: v,
695
695
  label: x,
@@ -701,7 +701,7 @@ const be = $(te), re = t.memo((c) => {
701
701
  disabled: S,
702
702
  multiple: m
703
703
  } = c;
704
- M(() => {
704
+ j(() => {
705
705
  const n = (u) => {
706
706
  p.current && !p.current.contains(u.target) && s(!1);
707
707
  };
@@ -878,7 +878,7 @@ class ae extends D {
878
878
  }
879
879
  }
880
880
  const fe = $(ae), se = t.memo((c) => {
881
- const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] = F(!1), [d, h] = F(""), [p, k] = F(0), v = j(null), {
881
+ const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] = M(!1), [d, h] = M(""), [p, k] = M(0), v = F(null), {
882
882
  containerClass: x,
883
883
  containerStyle: E,
884
884
  label: _,
@@ -891,7 +891,7 @@ const fe = $(ae), se = t.memo((c) => {
891
891
  disabled: w,
892
892
  multiple: I
893
893
  } = c;
894
- M(() => {
894
+ j(() => {
895
895
  if (!I) {
896
896
  const i = g.find((N) => N.value === f);
897
897
  i && !a && d !== i.label && h(i.label);
@@ -900,9 +900,9 @@ const fe = $(ae), se = t.memo((c) => {
900
900
  const C = g.filter(
901
901
  (i) => i.label.toLowerCase().includes(d.toLowerCase())
902
902
  );
903
- M(() => {
903
+ j(() => {
904
904
  k(0);
905
- }, [d, a]), M(() => {
905
+ }, [d, a]), j(() => {
906
906
  const i = (N) => {
907
907
  if (v.current && !v.current.contains(N.target))
908
908
  if (s(!1), I)