fiboui 2.8.0 → 2.8.2

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,6 +1,6 @@
1
- import { A as s, B as r, I as o } from "./icons-BKXx-EqO.js";
2
- import { a9 as n, a8 as I } from "./client-BxtRoL1i.js";
3
- import { A as m, I as p, L as x, P as A, a as f, S as l } from "./index-DD-zM-WX.js";
1
+ import { A as s, B as r, I as o } from "./icons-BGZkIpm8.js";
2
+ import { a9 as n, a8 as I } from "./client-BISJTJUX.js";
3
+ import { A as m, I as p, L as x, P as A, a as f, S as l } from "./index-B5hJpNl2.js";
4
4
  export {
5
5
  m as Alert,
6
6
  s as Avatar,
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as e, E as t, N as r, a0 as i, Z as o, _ as n, U as l, F as u, I as c, M as S, T as p, O as g, h as b, w as T, P as v, R as E, x as d, y as C, S as R, a2 as F, l as I, k as f, c as m, b as y, a as O, Y as P, Q as x, W as M, g as N, V as _, X as w, K as A, L as B, i as L, $ as V, J as h, o as q, H as z, r as G, z as K, s as W, G as X, A as j, D as k, B as D, a1 as H, f as J, q as Q, e as U, t as Y, j as Z, d as $, v as ss, u as as, n as es, p as ts, m as rs } from "./client-BxtRoL1i.js";
2
- import { L as os, c as ns, b as ls, a as us, e as cs, l as Ss, p as ps, w as gs } from "./page-BiOQBd4k.js";
1
+ import { C as e, E as t, N as r, a0 as i, Z as o, _ as n, U as l, F as u, I as c, M as S, T as p, O as g, h as b, w as T, P as v, R as E, x as d, y as C, S as R, a2 as F, l as I, k as f, c as m, b as y, a as O, Y as P, Q as x, W as M, g as N, V as _, X as w, K as A, L as B, i as L, $ as V, J as h, o as q, H as z, r as G, z as K, s as W, G as X, A as j, D as k, B as D, a1 as H, f as J, q as Q, e as U, t as Y, j as Z, d as $, v as ss, u as as, n as es, p as ts, m as rs } from "./client-BISJTJUX.js";
2
+ import { L as os, c as ns, b as ls, a as us, e as cs, l as Ss, p as ps, w as gs } from "./page-D8FyCPcH.js";
3
3
  export {
4
4
  e as ComputedSignal,
5
5
  t as Easing,
@@ -2,7 +2,7 @@ var L = Object.defineProperty;
2
2
  var R = (t, r, e) => r in t ? L(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
3
  var i = (t, r, e) => R(t, typeof r != "symbol" ? r + "" : r, e);
4
4
  import h from "react";
5
- import { aT as C, aU as E, au as y, b1 as I, a3 as j, a8 as H, aW as W, aZ as M, aX as D } from "./client-BxtRoL1i.js";
5
+ import { aT as C, aU as E, au as y, b5 as I, a3 as j, a8 as H, aX as W, a_ as M, aY as D } from "./client-BISJTJUX.js";
6
6
  import { jsx as s, jsxs as v } from "react/jsx-runtime";
7
7
  function $(t) {
8
8
  if (typeof t != "string") return "";
@@ -265,7 +265,7 @@ const X = {
265
265
  circle: "50%",
266
266
  rounded: "8px",
267
267
  square: "0px"
268
- }, Z = h.memo((t) => {
268
+ }, Y = h.memo((t) => {
269
269
  const {
270
270
  src: r,
271
271
  alt: e,
@@ -345,7 +345,7 @@ class K extends E {
345
345
  className: u,
346
346
  style: g
347
347
  };
348
- return h.createElement(Z, d);
348
+ return h.createElement(Y, d);
349
349
  }
350
350
  }
351
351
  const se = C(K), m = { "aria-hidden": !0, focusable: "false" }, oe = {
@@ -2,7 +2,7 @@ var w = Object.defineProperty;
2
2
  var S = (s, e, t) => e in s ? w(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var n = (s, e, t) => S(s, typeof e != "symbol" ? e + "" : e, t);
4
4
  import m from "react";
5
- import { aT as g, aU as d, a_ as N, a$ as C, aX as j, aW as _, aZ as z } from "./client-BxtRoL1i.js";
5
+ import { aT as g, aU as d, a$ as N, b0 as C, aY as j, aX as _, a_ as z } from "./client-BISJTJUX.js";
6
6
  function B(s, e) {
7
7
  if (!(typeof e != "string" || !_(e)))
8
8
  for (const t of z(e))
@@ -151,8 +151,8 @@ class H extends d {
151
151
  });
152
152
  }
153
153
  }
154
- const k = g(H);
154
+ const Y = g(H);
155
155
  export {
156
156
  X as C,
157
- k as S
157
+ Y as S
158
158
  };
@@ -2,8 +2,8 @@ var ae = Object.defineProperty;
2
2
  var ie = (s, r, e) => r in s ? ae(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
3
  var i = (s, r, e) => ie(s, typeof r != "symbol" ? r + "" : r, e);
4
4
  import t from "react";
5
- import { aT as I, aU as $, aW as z, aZ as R, aX as q, t as le, b1 as Q, bc as oe } from "./client-BxtRoL1i.js";
6
- import { a as F } from "./icons-BKXx-EqO.js";
5
+ import { aT as I, aU as $, aX as z, a_ as R, aY as q, t as le, b5 as Z, bg as oe } from "./client-BISJTJUX.js";
6
+ import { a as F } from "./icons-BGZkIpm8.js";
7
7
  function ce(s, r) {
8
8
  if (!(typeof r != "string" || !z(r)))
9
9
  for (const e of R(r))
@@ -448,7 +448,7 @@ function K(s, r) {
448
448
  for (const e of R(r))
449
449
  s.bindSignal(e);
450
450
  }
451
- function Z(s) {
451
+ function J(s) {
452
452
  return typeof s != "string" ? s : z(s) ? q(s) : s;
453
453
  }
454
454
  const ze = t.memo((s) => {
@@ -819,8 +819,8 @@ class Le extends $ {
819
819
  color: this._color,
820
820
  height: this._height,
821
821
  variant: this._variant,
822
- label: Z(this._label),
823
- subLabel: Z(this._subLabel),
822
+ label: J(this._label),
823
+ subLabel: J(this._subLabel),
824
824
  items: this._items,
825
825
  size: this._size,
826
826
  strokeWidth: this._strokeWidth,
@@ -841,14 +841,14 @@ function T(s) {
841
841
  }
842
842
  function Be(s) {
843
843
  const r = s.trim();
844
- return !r || T(r) ? !1 : Q(r) || /^(https?:)?\/\//i.test(r) || r.startsWith("/") || r.startsWith("./") || r.startsWith("../") ? !0 : /^[a-z][a-z0-9+.-]*:/i.test(r);
844
+ return !r || T(r) ? !1 : Z(r) || /^(https?:)?\/\//i.test(r) || r.startsWith("/") || r.startsWith("./") || r.startsWith("../") ? !0 : /^[a-z][a-z0-9+.-]*:/i.test(r);
845
845
  }
846
846
  function Me(s) {
847
847
  if (typeof s != "string") return "";
848
848
  const r = s.trim();
849
- return !r || Q(r) || !oe(r) ? "" : r;
849
+ return !r || Z(r) || !oe(r) ? "" : r;
850
850
  }
851
- function J(s, r = {}) {
851
+ function Q(s, r = {}) {
852
852
  const e = s.sandbox ?? r.sandbox;
853
853
  return {
854
854
  ...r,
@@ -872,7 +872,7 @@ const je = t.memo((s) => {
872
872
  const c = o == null || Array.isArray(o) && o.length === 0 ? void 0 : o, v = (m) => t.createElement(
873
873
  "iframe",
874
874
  {
875
- ...J(m !== void 0 ? { ...n, src: m } : n),
875
+ ...Q(m !== void 0 ? { ...n, src: m } : n),
876
876
  className: e,
877
877
  style: l
878
878
  },
@@ -885,7 +885,7 @@ const je = t.memo((s) => {
885
885
  if (typeof r == "string")
886
886
  return null;
887
887
  if (t.isValidElement(r)) {
888
- const m = r, p = m.props || {}, y = [e, p.className].filter(Boolean).join(" ") || void 0, d = { ...p.style, ...l }, u = T(m.type) ? { ...J(n, p), className: y, style: d } : { ...n, className: y, style: d };
888
+ const m = r, p = m.props || {}, y = [e, p.className].filter(Boolean).join(" ") || void 0, d = { ...p.style, ...l }, u = T(m.type) ? { ...Q(n, p), className: y, style: d } : { ...n, className: y, style: d };
889
889
  return c !== void 0 ? t.cloneElement(m, u, c) : t.cloneElement(m, u);
890
890
  }
891
891
  return typeof r != "function" && !(typeof r == "object" && r !== null && "$$typeof" in r) ? null : t.createElement(
@@ -2,16 +2,16 @@ var Ct = Object.defineProperty;
2
2
  var Et = (e, r, t) => r in e ? Ct(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var n = (e, r, t) => Et(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import s from "react";
5
- import { aT as A, aU as T, aW as C, aZ as M, aX as P, b0 as it, b1 as bt, b4 as kt, bh as It, au as B, F as nt, bi as lt, bj as Bt, bk as At, a3 as W, a8 as x } from "./client-BxtRoL1i.js";
6
- import { S as D, C as F } from "./index-B0FFbOUi.js";
7
- import { B as yt } from "./index-DUohJXW2.js";
8
- import { B as Z, I as ot, a as L, A as Tt } from "./icons-BKXx-EqO.js";
5
+ import { aT as A, aU as T, aX as C, a_ as M, aY as P, b1 as it, b5 as bt, b8 as kt, bl as It, au as B, F as nt, bm as lt, bn as Bt, bo as At, a3 as W, a8 as x } from "./client-BISJTJUX.js";
6
+ import { S as D, C as F } from "./index-5LiratLS.js";
7
+ import { B as yt } from "./index-CZs58ByQ.js";
8
+ import { B as Z, I as ot, a as L, A as Tt } from "./icons-BGZkIpm8.js";
9
9
  function j(e, r) {
10
10
  if (!(typeof r != "string" || !C(r)))
11
11
  for (const t of M(r))
12
12
  e.bindSignal(t);
13
13
  }
14
- function X(e) {
14
+ function Y(e) {
15
15
  return typeof e != "string" ? e : C(e) ? P(e) : e;
16
16
  }
17
17
  function z(e, r) {
@@ -32,8 +32,8 @@ function z(e, r) {
32
32
  function Pt(e) {
33
33
  return typeof e == "string" && C(e) ? P(e) : e;
34
34
  }
35
- function Y(e) {
36
- return e == null || e === !1 ? null : typeof e == "string" ? X(e) ?? e : it(e);
35
+ function X(e) {
36
+ return e == null || e === !1 ? null : typeof e == "string" ? Y(e) ?? e : it(e);
37
37
  }
38
38
  const $t = {
39
39
  green: "var(--fibo-success, #22c55e)",
@@ -77,7 +77,7 @@ const zt = s.memo((e) => {
77
77
  borderLeftColor: o
78
78
  } : {},
79
79
  ...a
80
- }, v = Y(f), E = Y(g);
80
+ }, v = X(f), E = X(g);
81
81
  return s.createElement(
82
82
  jt(S),
83
83
  {
@@ -177,11 +177,11 @@ class Gt extends T {
177
177
  as: S,
178
178
  ...p
179
179
  } = this._props, h = [...this._classNames, i].filter(Boolean).join(" "), u = {
180
- text: X(o ?? l ?? this._text),
181
- subtitle: X(a ?? this._subtitle),
182
- number: X(c ?? this._number),
183
- header: Y(this._header ?? f),
184
- footer: Y(this._footer ?? g),
180
+ text: Y(o ?? l ?? this._text),
181
+ subtitle: Y(a ?? this._subtitle),
182
+ number: Y(c ?? this._number),
183
+ header: X(this._header ?? f),
184
+ footer: X(this._footer ?? g),
185
185
  as: this._as ?? S,
186
186
  accentColor: t,
187
187
  style: this.getStyle(),
@@ -458,7 +458,7 @@ function Ut(e, r) {
458
458
  function ht(e, r) {
459
459
  return !e || e.index !== r ? { index: r, dir: "ascending" } : { index: r, dir: e.dir === "ascending" ? "descending" : "ascending" };
460
460
  }
461
- const Xt = s.memo((e) => {
461
+ const Yt = s.memo((e) => {
462
462
  const {
463
463
  data: r,
464
464
  columns: t,
@@ -556,7 +556,7 @@ const Xt = s.memo((e) => {
556
556
  ])
557
557
  ).build();
558
558
  });
559
- class Yt extends T {
559
+ class Xt extends T {
560
560
  constructor() {
561
561
  super(...arguments);
562
562
  n(this, "_data", []);
@@ -606,10 +606,10 @@ class Yt extends T {
606
606
  style: this.getStyle(),
607
607
  ...this._props
608
608
  };
609
- return s.createElement(Xt, t);
609
+ return s.createElement(Yt, t);
610
610
  }
611
611
  }
612
- const ze = A(Yt);
612
+ const ze = A(Xt);
613
613
  function ft(e, r) {
614
614
  if (!(typeof r != "string" || !C(r)))
615
615
  for (const t of M(r))
@@ -1,11 +1,11 @@
1
- var _ = Object.defineProperty;
2
- var u = (s, e, t) => e in s ? _(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
- var i = (s, e, t) => u(s, typeof e != "symbol" ? e + "" : e, t);
4
- import c from "react";
5
- import { aT as m, aU as f, aV as n, aW as o, aX as a, aY as d, aZ as y } from "./client-BxtRoL1i.js";
1
+ var c = Object.defineProperty;
2
+ var f = (s, e, t) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var i = (s, e, t) => f(s, typeof e != "symbol" ? e + "" : e, t);
4
+ import m from "react";
5
+ import { aT as d, aU as y, aV as x, aW as n, aX as o, aY as l, aZ as T, a_ as v } from "./client-BISJTJUX.js";
6
6
  function p(s, e) {
7
7
  if (!(typeof e != "string" || !o(e)))
8
- for (const t of y(e))
8
+ for (const t of v(e))
9
9
  s.bindSignal(t);
10
10
  }
11
11
  function h(s, e) {
@@ -23,13 +23,14 @@ function h(s, e) {
23
23
  if (Array.isArray(e))
24
24
  for (const t of e) h(s, t);
25
25
  }
26
- function x(s) {
27
- return typeof s == "string" && o(s) ? a(s) : s;
26
+ function b(s) {
27
+ return typeof s == "string" && o(s) ? l(s) : s;
28
28
  }
29
- class T extends f {
29
+ class g extends y {
30
30
  constructor(t = "") {
31
31
  super();
32
32
  i(this, "_text", "");
33
+ i(this, "_live", null);
33
34
  i(this, "_variant", "elevated");
34
35
  i(this, "_size", "md");
35
36
  i(this, "_onPress");
@@ -46,7 +47,7 @@ class T extends f {
46
47
  this.text(t);
47
48
  }
48
49
  text(t) {
49
- return this._text = t, typeof t == "function" ? this.observer() : p(this, t), this;
50
+ return this._text = t, typeof t == "function" ? (this._live = null, this.observer()) : (this._live = x(t), p(this, t)), this;
50
51
  }
51
52
  children(t) {
52
53
  return h(this, t), super.children(t);
@@ -111,8 +112,8 @@ class T extends f {
111
112
  return this._htmlTypeExplicit ? n(this._htmlType) : n(((t = this._props) == null ? void 0 : t.type) ?? this._htmlType);
112
113
  }
113
114
  build() {
114
- const t = this.getClassName(), r = typeof this._text == "function" ? this._text() : this._text, l = {
115
- text: typeof r == "string" && o(r) ? a(r) : r,
115
+ const t = this.getClassName(), r = typeof this._text == "function" ? this._text() : this._text, a = {
116
+ text: typeof r == "string" && o(r) ? l(r) : r,
116
117
  variant: this._variant,
117
118
  size: this._size,
118
119
  onPress: this._onPress,
@@ -126,15 +127,21 @@ class T extends f {
126
127
  expand: this._expand,
127
128
  className: t,
128
129
  style: this.getStyle(),
129
- children: this.processChildren().map(x),
130
+ children: this.processChildren().map(b),
130
131
  ...this._props,
131
132
  type: this.resolvedHtmlType(),
132
133
  bare: this.isReset()
133
134
  };
134
- return c.createElement(d, l);
135
+ if (this._live) {
136
+ const _ = this._live;
137
+ a.liveRef = (u) => {
138
+ _.node = u;
139
+ };
140
+ }
141
+ return m.createElement(T, a);
135
142
  }
136
143
  }
137
- const H = m(T);
144
+ const I = d(g);
138
145
  export {
139
- H as B
146
+ I as B
140
147
  };
@@ -1,8 +1,8 @@
1
1
  var tt = Object.defineProperty;
2
2
  var it = (e, i, t) => i in e ? tt(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
- var h = (e, i, t) => it(e, typeof i != "symbol" ? i + "" : i, t);
3
+ var f = (e, i, t) => it(e, typeof i != "symbol" ? i + "" : i, t);
4
4
  import d from "react";
5
- import { aT as v, aU as T, aX as C, aW as g, aZ as $, bd as w, be as O, bf as S, bg as et, b0 as nt } from "./client-BxtRoL1i.js";
5
+ import { aT as v, aU as T, aY as C, aX as g, a_ as $, bh as w, bi as O, bj as S, bk as et, b1 as nt } from "./client-BISJTJUX.js";
6
6
  function rt(e, i) {
7
7
  if (!(typeof i != "string" || !g(i)))
8
8
  for (const t of $(i))
@@ -53,11 +53,11 @@ class ct extends T {
53
53
  // instead of clipping overflowing children.
54
54
  this.isHug() ? "w-auto self-auto" : "w-full min-w-0 min-h-0 self-stretch",
55
55
  ...this._classNames
56
- ], { nodes: t, rest: n } = at(this.processChildren(), this._props), { className: r, style: s, ...o } = n, l = [...i, r].filter(Boolean).join(" "), a = t.map(st), f = { ...this.getStyle(), ...ot(s) };
57
- return lt(f), d.createElement(
56
+ ], { nodes: t, rest: n } = at(this.processChildren(), this._props), { className: r, style: s, ...o } = n, l = [...i, r].filter(Boolean).join(" "), a = t.map(st), h = { ...this.getStyle(), ...ot(s) };
57
+ return lt(h), d.createElement(
58
58
  "div",
59
59
  {
60
- style: f,
60
+ style: h,
61
61
  ...o,
62
62
  className: l
63
63
  },
@@ -65,28 +65,28 @@ class ct extends T {
65
65
  );
66
66
  }
67
67
  }
68
- const qt = v(ct);
69
- function ft(e, i) {
68
+ const Zt = v(ct);
69
+ function ht(e, i) {
70
70
  if (!(typeof i != "string" || !g(i)))
71
71
  for (const t of $(i))
72
72
  e.bindSignal(t);
73
73
  }
74
- function L(e, i) {
74
+ function j(e, i) {
75
75
  if (typeof i == "function") {
76
76
  try {
77
- L(e, i());
77
+ j(e, i());
78
78
  } catch {
79
79
  }
80
80
  return;
81
81
  }
82
82
  if (typeof i == "string") {
83
- ft(e, i);
83
+ ht(e, i);
84
84
  return;
85
85
  }
86
86
  if (Array.isArray(i))
87
- for (const t of i) L(e, t);
87
+ for (const t of i) j(e, t);
88
88
  }
89
- function ht(e) {
89
+ function ft(e) {
90
90
  return typeof e == "string" && g(e) ? C(e) : e;
91
91
  }
92
92
  function dt(e, i) {
@@ -145,10 +145,10 @@ function yt(e, i) {
145
145
  for (const r of ["padding", "margin"]) {
146
146
  const s = n[r];
147
147
  if (s == null || s === "") continue;
148
- const o = `${r}Top`, l = `${r}Right`, a = `${r}Bottom`, f = `${r}Left`;
149
- if (!(n[o] != null || n[l] != null || n[a] != null || n[f] != null || i.has(`${r}-top`) || i.has(`${r}-right`) || i.has(`${r}-bottom`) || i.has(`${r}-left`))) continue;
148
+ const o = `${r}Top`, l = `${r}Right`, a = `${r}Bottom`, h = `${r}Left`;
149
+ if (!(n[o] != null || n[l] != null || n[a] != null || n[h] != null || i.has(`${r}-top`) || i.has(`${r}-right`) || i.has(`${r}-bottom`) || i.has(`${r}-left`))) continue;
150
150
  const [m, c, y, b] = O(String(s));
151
- n[o] == null && !i.has(`${r}-top`) && (n[o] = m), n[l] == null && !i.has(`${r}-right`) && (n[l] = c), n[a] == null && !i.has(`${r}-bottom`) && (n[a] = y), n[f] == null && !i.has(`${r}-left`) && (n[f] = b), delete n[r];
151
+ n[o] == null && !i.has(`${r}-top`) && (n[o] = m), n[l] == null && !i.has(`${r}-right`) && (n[l] = c), n[a] == null && !i.has(`${r}-bottom`) && (n[a] = y), n[h] == null && !i.has(`${r}-left`) && (n[h] = b), delete n[r];
152
152
  }
153
153
  return t;
154
154
  }
@@ -179,13 +179,13 @@ function St(e, i, t, n, r, s, o) {
179
179
  class wt extends T {
180
180
  constructor() {
181
181
  super(...arguments);
182
- h(this, "_userPad", {});
182
+ f(this, "_userPad", {});
183
183
  }
184
184
  children(t) {
185
- return L(this, t), super.children(t);
185
+ return j(this, t), super.children(t);
186
186
  }
187
187
  props(t) {
188
- return t && "children" in t && L(this, t.children), super.props(t);
188
+ return t && "children" in t && j(this, t.children), super.props(t);
189
189
  }
190
190
  padding(t) {
191
191
  const n = w("padding", t), [r, s, o, l] = O(n);
@@ -224,8 +224,8 @@ class wt extends T {
224
224
  tag: o,
225
225
  dangerouslySetInnerHTML: l,
226
226
  maxWidth: a,
227
- ...f
228
- } = this._props, p = this.isHug(), m = dt(this.processChildren(), t).map(ht), c = St(
227
+ ...h
228
+ } = this._props, p = this.isHug(), m = dt(this.processChildren(), t).map(ft), c = St(
229
229
  this.getStyle(),
230
230
  r,
231
231
  a,
@@ -248,7 +248,7 @@ class wt extends T {
248
248
  return d.createElement(
249
249
  E,
250
250
  {
251
- ...f,
251
+ ...h,
252
252
  className: b,
253
253
  style: c
254
254
  },
@@ -297,7 +297,7 @@ const vt = d.memo((e) => {
297
297
  leading: o,
298
298
  trailing: l,
299
299
  title: a,
300
- role: f,
300
+ role: h,
301
301
  ...p
302
302
  } = e, m = Array.isArray(s) ? s : s == null ? [] : [s], c = o == null || o === !1 ? null : o, y = l == null || l === !1 ? null : l, b = a == null || a === !1 ? null : a;
303
303
  return d.createElement(
@@ -310,7 +310,7 @@ const vt = d.memo((e) => {
310
310
  n || ""
311
311
  ].filter(Boolean).join(" "),
312
312
  style: { height: i, minHeight: i, ...r },
313
- role: f ?? "banner"
313
+ role: h ?? "banner"
314
314
  },
315
315
  c != null ? d.createElement(
316
316
  "div",
@@ -332,13 +332,13 @@ const vt = d.memo((e) => {
332
332
  }), N = class N extends T {
333
333
  constructor() {
334
334
  super(...arguments);
335
- h(this, "_height", 64);
336
- h(this, "_sticky", !1);
337
- h(this, "_stickyTop", 0);
338
- h(this, "_stickyStamp", []);
339
- h(this, "_leading");
340
- h(this, "_trailing");
341
- h(this, "_title");
335
+ f(this, "_height", 64);
336
+ f(this, "_sticky", !1);
337
+ f(this, "_stickyTop", 0);
338
+ f(this, "_stickyStamp", []);
339
+ f(this, "_leading");
340
+ f(this, "_trailing");
341
+ f(this, "_title");
342
342
  }
343
343
  children(t) {
344
344
  return _(this, t), super.children(t);
@@ -392,12 +392,12 @@ const vt = d.memo((e) => {
392
392
  trailing: o,
393
393
  title: l,
394
394
  ...a
395
- } = this._props, f = [this.getClassName(), t].filter(Boolean).join(" "), p = r ? { ...this.getStyle(), ...r } : this.getStyle();
395
+ } = this._props, h = [this.getClassName(), t].filter(Boolean).join(" "), p = r ? { ...this.getStyle(), ...r } : this.getStyle();
396
396
  return d.createElement(vt, {
397
397
  ...a,
398
398
  height: this._height,
399
399
  sticky: this._sticky,
400
- className: f,
400
+ className: h,
401
401
  style: p,
402
402
  leading: H(this._leading ?? s),
403
403
  trailing: H(this._trailing ?? o),
@@ -406,7 +406,7 @@ const vt = d.memo((e) => {
406
406
  });
407
407
  }
408
408
  };
409
- h(N, "unstickSeq", 0);
409
+ f(N, "unstickSeq", 0);
410
410
  let W = N;
411
411
  const Jt = v(W);
412
412
  function Tt(e, i) {
@@ -414,10 +414,10 @@ function Tt(e, i) {
414
414
  for (const t of $(i))
415
415
  e.bindSignal(t);
416
416
  }
417
- function j(e, i) {
417
+ function L(e, i) {
418
418
  if (typeof i == "function") {
419
419
  try {
420
- j(e, i());
420
+ L(e, i());
421
421
  } catch {
422
422
  }
423
423
  return;
@@ -427,7 +427,7 @@ function j(e, i) {
427
427
  return;
428
428
  }
429
429
  if (Array.isArray(i))
430
- for (const t of i) j(e, t);
430
+ for (const t of i) L(e, t);
431
431
  }
432
432
  function $t(e) {
433
433
  return typeof e == "string" && g(e) ? C(e) : e;
@@ -439,13 +439,13 @@ function Nt(e, i) {
439
439
  class At extends T {
440
440
  constructor() {
441
441
  super(...arguments);
442
- h(this, "_alignment", "center");
442
+ f(this, "_alignment", "center");
443
443
  }
444
444
  children(t) {
445
- return j(this, t), super.children(t);
445
+ return L(this, t), super.children(t);
446
446
  }
447
447
  props(t) {
448
- return t && "children" in t && j(this, t.children), super.props(t);
448
+ return t && "children" in t && L(this, t.children), super.props(t);
449
449
  }
450
450
  alignment(t) {
451
451
  return this._alignment = t, this;
@@ -478,13 +478,13 @@ class At extends T {
478
478
  this.isHug() ? "w-auto self-auto" : "w-full min-w-0 min-h-0 self-stretch",
479
479
  t[this._alignment] || "items-center justify-items-center",
480
480
  ...this._classNames
481
- ], r = this.getStyle(), { nodes: s, rest: o } = Nt(this.processChildren(), this._props), { className: l, ...a } = o, f = [...n, l].filter(Boolean).join(" "), p = s.map($t);
481
+ ], r = this.getStyle(), { nodes: s, rest: o } = Nt(this.processChildren(), this._props), { className: l, ...a } = o, h = [...n, l].filter(Boolean).join(" "), p = s.map($t);
482
482
  return d.createElement(
483
483
  "div",
484
484
  {
485
485
  style: r,
486
486
  ...a,
487
- className: f
487
+ className: h
488
488
  },
489
489
  ...p
490
490
  );
@@ -514,10 +514,10 @@ function z(e, i) {
514
514
  function It(e) {
515
515
  return typeof e == "string" && g(e) ? C(e) : e;
516
516
  }
517
- function Lt(e) {
517
+ function jt(e) {
518
518
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
519
519
  }
520
- function jt(e, i) {
520
+ function Lt(e, i) {
521
521
  return e === !0 || e === "true" ? !0 : i === "none" || i === "presentation";
522
522
  }
523
523
  function zt(e) {
@@ -530,7 +530,7 @@ function Rt(e, i) {
530
530
  class Et extends T {
531
531
  constructor() {
532
532
  super(...arguments);
533
- h(this, "_sizeHeight");
533
+ f(this, "_sizeHeight");
534
534
  }
535
535
  children(t) {
536
536
  return z(this, t), super.children(t);
@@ -546,10 +546,10 @@ class Et extends T {
546
546
  return this.flexDirection(t === "vertical" ? "column" : "row");
547
547
  }
548
548
  build() {
549
- const { nodes: t, rest: n } = Rt(this.processChildren(), this._props), { className: r, style: s, ...o } = n, l = { ...this.getStyle(), ...Lt(s) };
549
+ const { nodes: t, rest: n } = Rt(this.processChildren(), this._props), { className: r, style: s, ...o } = n, l = { ...this.getStyle(), ...jt(s) };
550
550
  this._sizeHeight && (l.height = this._sizeHeight);
551
- const a = t.map(It), f = zt(l), p = jt(o["aria-hidden"], o.role), m = ["fibo-line", ...this._classNames, r].filter(Boolean).join(" ");
552
- if (f && a.length === 0)
551
+ const a = t.map(It), h = zt(l), p = Lt(o["aria-hidden"], o.role), m = ["fibo-line", ...this._classNames, r].filter(Boolean).join(" ");
552
+ if (h && a.length === 0)
553
553
  return l.width = l.width ?? "1px", l.alignSelf = l.alignSelf ?? "stretch", l.height == null && (l.height = "100%"), p ? d.createElement("div", {
554
554
  ...o,
555
555
  role: "none",
@@ -582,7 +582,7 @@ class Et extends T {
582
582
  const c = [
583
583
  "fibo-line",
584
584
  "flex",
585
- f ? "flex-col" : "flex-row",
585
+ h ? "flex-col" : "flex-row",
586
586
  "min-w-0",
587
587
  ...this._classNames,
588
588
  r
@@ -601,7 +601,7 @@ class Et extends T {
601
601
  const ti = v(Et);
602
602
  class Ht {
603
603
  constructor() {
604
- h(this, "_node", null);
604
+ f(this, "_node", null);
605
605
  }
606
606
  /** @internal Attached by ScrollView on mount. */
607
607
  attach(i) {
@@ -706,7 +706,7 @@ function Gt(e) {
706
706
  function Xt(e) {
707
707
  return e === "hidden" || e === "visible" || e === "auto";
708
708
  }
709
- function Kt(e) {
709
+ function Yt(e) {
710
710
  const i = { ...e }, t = i.overflow;
711
711
  if (t == null || t === "")
712
712
  return delete i.overflow, i;
@@ -716,14 +716,14 @@ function Kt(e) {
716
716
  const r = n[0], s = n[1] ?? n[0];
717
717
  return i.overflowX == null && (i.overflowX = r), i.overflowY == null && (i.overflowY = s), delete i.overflow, i;
718
718
  }
719
- class Mt extends T {
719
+ class Kt extends T {
720
720
  constructor() {
721
721
  super(...arguments);
722
- h(this, "_direction", "vertical");
723
- h(this, "_scrollbar", "auto");
724
- h(this, "_controller");
725
- h(this, "_anchor");
726
- h(this, "_refresh");
722
+ f(this, "_direction", "vertical");
723
+ f(this, "_scrollbar", "auto");
724
+ f(this, "_controller");
725
+ f(this, "_anchor");
726
+ f(this, "_refresh");
727
727
  }
728
728
  children(t) {
729
729
  return R(this, t), super.children(t);
@@ -763,10 +763,10 @@ class Mt extends T {
763
763
  style: o,
764
764
  controller: l,
765
765
  direction: a,
766
- scrollbar: f,
766
+ scrollbar: h,
767
767
  onScroll: p,
768
768
  ...m
769
- } = n, c = Gt(a) ? a : this._direction, y = Xt(f) ? f : this._scrollbar, b = this._controller ?? (l instanceof Ht ? l : void 0), E = c === "horizontal" || c === "both", K = c === "vertical" || c === "both", M = this.getStyle(), { gap: D, rowGap: P, columnGap: V, ...Y } = M, F = E ? "auto" : "hidden", Z = K ? "auto" : "hidden", u = {
769
+ } = n, c = Gt(a) ? a : this._direction, y = Xt(h) ? h : this._scrollbar, b = this._controller ?? (l instanceof Ht ? l : void 0), E = c === "horizontal" || c === "both", Y = c === "vertical" || c === "both", K = this.getStyle(), { gap: D, rowGap: P, columnGap: V, ...M } = K, F = E ? "auto" : "hidden", q = Y ? "auto" : "hidden", u = {
770
770
  display: "flex",
771
771
  flexDirection: c === "horizontal" ? "row" : "column",
772
772
  flexWrap: "nowrap",
@@ -777,8 +777,8 @@ class Mt extends T {
777
777
  "fibo-scrollview",
778
778
  ...this.getClassName().split(" ").filter(Boolean),
779
779
  s
780
- ], q = Kt({
781
- ...Y,
780
+ ], Z = Yt({
781
+ ...M,
782
782
  ...o && typeof o == "object" ? o : {}
783
783
  }), x = {
784
784
  WebkitOverflowScrolling: "touch",
@@ -786,10 +786,10 @@ class Mt extends T {
786
786
  minHeight: "0px",
787
787
  display: "flex",
788
788
  flexDirection: c === "horizontal" ? "row" : "column",
789
- ...q,
789
+ ...Z,
790
790
  // Direction overflow must survive `.props({ style })` replacing the object.
791
791
  overflowX: F,
792
- overflowY: Z
792
+ overflowY: q
793
793
  };
794
794
  if (y === "hidden" && (G.push("scrollbar-hide"), x.scrollbarWidth = "none", x.msOverflowStyle = "none"), this._anchor) {
795
795
  x.scrollSnapAlign = this._anchor;
@@ -827,9 +827,9 @@ class Mt extends T {
827
827
  );
828
828
  }
829
829
  }
830
- const ii = v(Mt);
830
+ const ii = v(Kt);
831
831
  export {
832
- qt as C,
832
+ Zt as C,
833
833
  Jt as H,
834
834
  ti as L,
835
835
  ii as S,