fiboui 2.8.2 → 2.8.4

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,11 +1,11 @@
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 f = (e, i, t) => it(e, typeof i != "symbol" ? i + "" : i, t);
3
+ var h = (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, 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";
5
+ import { aX as $, aY as v, b0 as C, a$ as g, b2 as T, bm as w, bn as O, bo as S, bp as et, b4 as nt } from "./client-DOrZXJAN.js";
6
6
  function rt(e, i) {
7
7
  if (!(typeof i != "string" || !g(i)))
8
- for (const t of $(i))
8
+ for (const t of T(i))
9
9
  e.bindSignal(t);
10
10
  }
11
11
  function I(e, i) {
@@ -36,7 +36,7 @@ function at(e, i) {
36
36
  const { children: t, ...n } = i, r = t !== void 0 ? t : e;
37
37
  return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: n };
38
38
  }
39
- class ct extends T {
39
+ class ct extends v {
40
40
  children(i) {
41
41
  return I(this, i), super.children(i);
42
42
  }
@@ -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), h = { ...this.getStyle(), ...ot(s) };
57
- return lt(h), 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), f = { ...this.getStyle(), ...ot(s) };
57
+ return lt(f), d.createElement(
58
58
  "div",
59
59
  {
60
- style: h,
60
+ style: f,
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 Zt = v(ct);
69
- function ht(e, i) {
68
+ const Zt = $(ct);
69
+ function ft(e, i) {
70
70
  if (!(typeof i != "string" || !g(i)))
71
- for (const t of $(i))
71
+ for (const t of T(i))
72
72
  e.bindSignal(t);
73
73
  }
74
- function j(e, i) {
74
+ function L(e, i) {
75
75
  if (typeof i == "function") {
76
76
  try {
77
- j(e, i());
77
+ L(e, i());
78
78
  } catch {
79
79
  }
80
80
  return;
81
81
  }
82
82
  if (typeof i == "string") {
83
- ht(e, i);
83
+ ft(e, i);
84
84
  return;
85
85
  }
86
86
  if (Array.isArray(i))
87
- for (const t of i) j(e, t);
87
+ for (const t of i) L(e, t);
88
88
  }
89
- function ft(e) {
89
+ function ht(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`, 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;
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;
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[h] == null && !i.has(`${r}-left`) && (n[h] = 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[f] == null && !i.has(`${r}-left`) && (n[f] = b), delete n[r];
152
152
  }
153
153
  return t;
154
154
  }
@@ -176,16 +176,16 @@ function St(e, i, t, n, r, s, o) {
176
176
  const l = i ? et({ ...e, ...i }) : { ...e }, a = yt(l, s);
177
177
  return !(a.maxWidth != null || B(r, "max-width") || s.has("max-width")) && t != null && t !== "" && (a.maxWidth = w("maxWidth", t)), _t(a, n, r, s), bt(a, o), a;
178
178
  }
179
- class wt extends T {
179
+ class wt extends v {
180
180
  constructor() {
181
181
  super(...arguments);
182
- f(this, "_userPad", {});
182
+ h(this, "_userPad", {});
183
183
  }
184
184
  children(t) {
185
- return j(this, t), super.children(t);
185
+ return L(this, t), super.children(t);
186
186
  }
187
187
  props(t) {
188
- return t && "children" in t && j(this, t.children), super.props(t);
188
+ return t && "children" in t && L(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
- ...h
228
- } = this._props, p = this.isHug(), m = dt(this.processChildren(), t).map(ft), c = St(
227
+ ...f
228
+ } = this._props, p = this.isHug(), m = dt(this.processChildren(), t).map(ht), 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
- ...h,
251
+ ...f,
252
252
  className: b,
253
253
  style: c
254
254
  },
@@ -256,10 +256,10 @@ class wt extends T {
256
256
  );
257
257
  }
258
258
  }
259
- const Ut = v(wt);
259
+ const Ut = $(wt);
260
260
  function xt(e, i) {
261
261
  if (!(typeof i != "string" || !g(i)))
262
- for (const t of $(i))
262
+ for (const t of T(i))
263
263
  e.bindSignal(t);
264
264
  }
265
265
  function _(e, i) {
@@ -287,7 +287,7 @@ function kt(e, i) {
287
287
  const t = i !== void 0 ? i : e;
288
288
  return (t == null ? [] : Array.isArray(t) ? t : [t]).map(Ct);
289
289
  }
290
- const vt = d.memo((e) => {
290
+ const $t = d.memo((e) => {
291
291
  const {
292
292
  height: i = 64,
293
293
  sticky: t,
@@ -297,7 +297,7 @@ const vt = d.memo((e) => {
297
297
  leading: o,
298
298
  trailing: l,
299
299
  title: a,
300
- role: h,
300
+ role: f,
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: h ?? "banner"
313
+ role: f ?? "banner"
314
314
  },
315
315
  c != null ? d.createElement(
316
316
  "div",
@@ -329,16 +329,16 @@ const vt = d.memo((e) => {
329
329
  y
330
330
  ) : null
331
331
  );
332
- }), N = class N extends T {
332
+ }), N = class N extends v {
333
333
  constructor() {
334
334
  super(...arguments);
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");
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");
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, h = [this.getClassName(), t].filter(Boolean).join(" "), p = r ? { ...this.getStyle(), ...r } : this.getStyle();
396
- return d.createElement(vt, {
395
+ } = this._props, f = [this.getClassName(), t].filter(Boolean).join(" "), p = r ? { ...this.getStyle(), ...r } : this.getStyle();
396
+ return d.createElement($t, {
397
397
  ...a,
398
398
  height: this._height,
399
399
  sticky: this._sticky,
400
- className: h,
400
+ className: f,
401
401
  style: p,
402
402
  leading: H(this._leading ?? s),
403
403
  trailing: H(this._trailing ?? o),
@@ -406,46 +406,46 @@ const vt = d.memo((e) => {
406
406
  });
407
407
  }
408
408
  };
409
- f(N, "unstickSeq", 0);
409
+ h(N, "unstickSeq", 0);
410
410
  let W = N;
411
- const Jt = v(W);
412
- function Tt(e, i) {
411
+ const Jt = $(W);
412
+ function vt(e, i) {
413
413
  if (!(typeof i != "string" || !g(i)))
414
- for (const t of $(i))
414
+ for (const t of T(i))
415
415
  e.bindSignal(t);
416
416
  }
417
- function L(e, i) {
417
+ function j(e, i) {
418
418
  if (typeof i == "function") {
419
419
  try {
420
- L(e, i());
420
+ j(e, i());
421
421
  } catch {
422
422
  }
423
423
  return;
424
424
  }
425
425
  if (typeof i == "string") {
426
- Tt(e, i);
426
+ vt(e, i);
427
427
  return;
428
428
  }
429
429
  if (Array.isArray(i))
430
- for (const t of i) L(e, t);
430
+ for (const t of i) j(e, t);
431
431
  }
432
- function $t(e) {
432
+ function Tt(e) {
433
433
  return typeof e == "string" && g(e) ? C(e) : e;
434
434
  }
435
435
  function Nt(e, i) {
436
436
  const { children: t, ...n } = i, r = t !== void 0 ? t : e;
437
437
  return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: n };
438
438
  }
439
- class At extends T {
439
+ class At extends v {
440
440
  constructor() {
441
441
  super(...arguments);
442
- f(this, "_alignment", "center");
442
+ h(this, "_alignment", "center");
443
443
  }
444
444
  children(t) {
445
- return L(this, t), super.children(t);
445
+ return j(this, t), super.children(t);
446
446
  }
447
447
  props(t) {
448
- return t && "children" in t && L(this, t.children), super.props(t);
448
+ return t && "children" in t && j(this, t.children), super.props(t);
449
449
  }
450
450
  alignment(t) {
451
451
  return this._alignment = t, this;
@@ -478,22 +478,22 @@ 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, h = [...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, f = [...n, l].filter(Boolean).join(" "), p = s.map(Tt);
482
482
  return d.createElement(
483
483
  "div",
484
484
  {
485
485
  style: r,
486
486
  ...a,
487
- className: h
487
+ className: f
488
488
  },
489
489
  ...p
490
490
  );
491
491
  }
492
492
  }
493
- const Qt = v(At);
493
+ const Qt = $(At);
494
494
  function Bt(e, i) {
495
495
  if (!(typeof i != "string" || !g(i)))
496
- for (const t of $(i))
496
+ for (const t of T(i))
497
497
  e.bindSignal(t);
498
498
  }
499
499
  function z(e, i) {
@@ -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 jt(e) {
517
+ function Lt(e) {
518
518
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
519
519
  }
520
- function Lt(e, i) {
520
+ function jt(e, i) {
521
521
  return e === !0 || e === "true" ? !0 : i === "none" || i === "presentation";
522
522
  }
523
523
  function zt(e) {
@@ -527,10 +527,10 @@ function Rt(e, i) {
527
527
  const { children: t, ...n } = i, r = t !== void 0 ? t : e;
528
528
  return { nodes: r == null ? [] : Array.isArray(r) ? r : [r], rest: n };
529
529
  }
530
- class Et extends T {
530
+ class Et extends v {
531
531
  constructor() {
532
532
  super(...arguments);
533
- f(this, "_sizeHeight");
533
+ h(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(), ...jt(s) };
549
+ const { nodes: t, rest: n } = Rt(this.processChildren(), this._props), { className: r, style: s, ...o } = n, l = { ...this.getStyle(), ...Lt(s) };
550
550
  this._sizeHeight && (l.height = this._sizeHeight);
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)
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)
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
- h ? "flex-col" : "flex-row",
585
+ f ? "flex-col" : "flex-row",
586
586
  "min-w-0",
587
587
  ...this._classNames,
588
588
  r
@@ -598,10 +598,10 @@ class Et extends T {
598
598
  );
599
599
  }
600
600
  }
601
- const ti = v(Et);
601
+ const ti = $(Et);
602
602
  class Ht {
603
603
  constructor() {
604
- f(this, "_node", null);
604
+ h(this, "_node", null);
605
605
  }
606
606
  /** @internal Attached by ScrollView on mount. */
607
607
  attach(i) {
@@ -669,7 +669,7 @@ function Wt(e) {
669
669
  }
670
670
  function Ot(e, i) {
671
671
  if (!(typeof i != "string" || !g(i)))
672
- for (const t of $(i))
672
+ for (const t of T(i))
673
673
  e.bindSignal(t);
674
674
  }
675
675
  function R(e, i) {
@@ -716,14 +716,14 @@ function Yt(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 Kt extends T {
719
+ class Kt extends v {
720
720
  constructor() {
721
721
  super(...arguments);
722
- f(this, "_direction", "vertical");
723
- f(this, "_scrollbar", "auto");
724
- f(this, "_controller");
725
- f(this, "_anchor");
726
- f(this, "_refresh");
722
+ h(this, "_direction", "vertical");
723
+ h(this, "_scrollbar", "auto");
724
+ h(this, "_controller");
725
+ h(this, "_anchor");
726
+ h(this, "_refresh");
727
727
  }
728
728
  children(t) {
729
729
  return R(this, t), super.children(t);
@@ -763,10 +763,10 @@ class Kt extends T {
763
763
  style: o,
764
764
  controller: l,
765
765
  direction: a,
766
- scrollbar: h,
766
+ scrollbar: f,
767
767
  onScroll: p,
768
768
  ...m
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 = {
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", 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",
@@ -827,7 +827,7 @@ class Kt extends T {
827
827
  );
828
828
  }
829
829
  }
830
- const ii = v(Kt);
830
+ const ii = $(Kt);
831
831
  export {
832
832
  Zt as C,
833
833
  Jt as H,
@@ -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 $, 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";
5
+ import { aX as I, aY as $, a$ as z, b2 as R, b0 as q, x as le, ba as Z, bl as oe } from "./client-DOrZXJAN.js";
6
+ import { a as F } from "./icons-DujcjAOD.js";
7
7
  function ce(s, r) {
8
8
  if (!(typeof r != "string" || !z(r)))
9
9
  for (const e of R(r))
@@ -212,7 +212,7 @@ class be extends $ {
212
212
  return t.createElement(ge, e);
213
213
  }
214
214
  }
215
- const Ue = I(be), ye = `@keyframes fibo-skeleton-pulse {
215
+ const Ve = I(be), ye = `@keyframes fibo-skeleton-pulse {
216
216
  50% { opacity: 0.5; }
217
217
  }
218
218
  .loading-skeleton {
@@ -297,7 +297,7 @@ class ke extends $ {
297
297
  return t.createElement(Ee, u);
298
298
  }
299
299
  }
300
- const Ve = I(ke);
300
+ const Oe = I(ke);
301
301
  function H(s, r) {
302
302
  if (!(typeof r != "string" || !z(r)))
303
303
  for (const e of R(r))
@@ -442,7 +442,7 @@ class $e extends $ {
442
442
  return t.createElement(Ie, e);
443
443
  }
444
444
  }
445
- const Oe = I($e);
445
+ const Ue = I($e);
446
446
  function K(s, r) {
447
447
  if (!(typeof r != "string" || !z(r)))
448
448
  for (const e of R(r))
@@ -470,9 +470,9 @@ const ze = t.memo((s) => {
470
470
  className: w,
471
471
  style: N,
472
472
  ...P
473
- } = s, U = typeof r == "number" && Number.isFinite(r) ? r : 0, L = typeof e == "number" && Number.isFinite(e) ? e : 100, V = L > 0 ? Math.min(L, Math.max(0, U)) : Math.max(0, U), E = L > 0 ? V / L * 100 : 0, _ = l || "#3B82F6", ee = typeof P["aria-label"] == "string" ? P["aria-label"] : "", C = { ...P, ...{
473
+ } = s, V = typeof r == "number" && Number.isFinite(r) ? r : 0, L = typeof e == "number" && Number.isFinite(e) ? e : 100, O = L > 0 ? Math.min(L, Math.max(0, V)) : Math.max(0, V), E = L > 0 ? O / L * 100 : 0, _ = l || "#3B82F6", ee = typeof P["aria-label"] == "string" ? P["aria-label"] : "", C = { ...P, ...{
474
474
  role: "progressbar",
475
- "aria-valuenow": V,
475
+ "aria-valuenow": O,
476
476
  "aria-valuemin": 0,
477
477
  "aria-valuemax": L,
478
478
  "aria-label": ee || c || "Progress"
@@ -712,8 +712,8 @@ const ze = t.memo((s) => {
712
712
  }))
713
713
  );
714
714
  }
715
- let O = null;
716
- n === "striped" && (O = t.createElement("div", {
715
+ let U = null;
716
+ n === "striped" && (U = t.createElement("div", {
717
717
  className: "w-full h-full opacity-30 animate-[stripes_1s_linear_infinite]",
718
718
  style: {
719
719
  backgroundImage: "linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.25) 75%,transparent 75%,transparent)",
@@ -752,7 +752,7 @@ const ze = t.memo((s) => {
752
752
  width: `${E}%`,
753
753
  backgroundColor: _
754
754
  }
755
- }, [O, re])
755
+ }, [U, re])
756
756
  )
757
757
  ]);
758
758
  });
@@ -935,10 +935,10 @@ class We extends $ {
935
935
  }
936
936
  const Ge = I(We);
937
937
  export {
938
- Oe as A,
938
+ Ue as A,
939
939
  Ge as I,
940
940
  qe as L,
941
941
  Ye as P,
942
- Ue as S,
943
- Ve as a
942
+ Ve as S,
943
+ Oe as a
944
944
  };
@@ -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, 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";
5
+ import { aX as A, aY as T, a$ as C, b2 as M, b0 as P, b4 as it, ba as bt, bd as kt, bq as It, ay as B, F as nt, br as lt, bs as Bt, bt as At, a7 as W, ac as x } from "./client-DOrZXJAN.js";
6
+ import { S as D, C as F } from "./index-C0qI47Zw.js";
7
+ import { B as yt } from "./index-19mPjg_D.js";
8
+ import { B as Z, I as ot, a as L, A as Tt } from "./icons-DujcjAOD.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 Y(e) {
14
+ function U(e) {
15
15
  return typeof e != "string" ? e : C(e) ? P(e) : e;
16
16
  }
17
17
  function z(e, r) {
@@ -33,7 +33,7 @@ function Pt(e) {
33
33
  return typeof e == "string" && C(e) ? P(e) : e;
34
34
  }
35
35
  function X(e) {
36
- return e == null || e === !1 ? null : typeof e == "string" ? Y(e) ?? e : it(e);
36
+ return e == null || e === !1 ? null : typeof e == "string" ? U(e) ?? e : it(e);
37
37
  }
38
38
  const $t = {
39
39
  green: "var(--fibo-success, #22c55e)",
@@ -177,9 +177,9 @@ 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: Y(o ?? l ?? this._text),
181
- subtitle: Y(a ?? this._subtitle),
182
- number: Y(c ?? this._number),
180
+ text: U(o ?? l ?? this._text),
181
+ subtitle: U(a ?? this._subtitle),
182
+ number: U(c ?? this._number),
183
183
  header: X(this._header ?? f),
184
184
  footer: X(this._footer ?? g),
185
185
  as: this._as ?? S,
@@ -198,13 +198,13 @@ function H(e, r) {
198
198
  for (const t of M(r))
199
199
  e.bindSignal(t);
200
200
  }
201
- function V(e) {
201
+ function q(e) {
202
202
  return typeof e != "string" ? e : C(e) ? P(e) : e;
203
203
  }
204
- function q(e) {
204
+ function V(e) {
205
205
  return typeof e == "string" && C(e) ? P(e) : e;
206
206
  }
207
- function U(e, r) {
207
+ function Y(e, r) {
208
208
  return typeof r == "string" ? (H(e, r), r) : it(r);
209
209
  }
210
210
  const Ft = 'a, button, input, textarea, select, [role="button"], [role="switch"], [role="checkbox"], [role="menuitem"]';
@@ -247,7 +247,7 @@ const Lt = () => s.createElement(
247
247
  className: "fibo-list-tile-title",
248
248
  style: { fontSize: 11, letterSpacing: "0.06em", lineHeight: 1.3, margin: 0 }
249
249
  },
250
- q(t)
250
+ V(t)
251
251
  ) : t, St = typeof i == "string" ? s.createElement(
252
252
  "span",
253
253
  {
@@ -260,8 +260,8 @@ const Lt = () => s.createElement(
260
260
  color: "#9a9a9a"
261
261
  }
262
262
  },
263
- q(i)
264
- ) : i, Q = q(r), O = q(o), at = d.target, Nt = w && at && String(at).toLowerCase() === "_blank" ? kt(d.rel, "noopener noreferrer") : d.rel, xt = (I) => {
263
+ V(i)
264
+ ) : i, Q = V(r), O = V(o), at = d.target, Nt = w && at && String(at).toLowerCase() === "_blank" ? kt(d.rel, "noopener noreferrer") : d.rel, xt = (I) => {
265
265
  if (m) {
266
266
  I.preventDefault(), I.stopPropagation();
267
267
  return;
@@ -342,19 +342,19 @@ class Dt extends T {
342
342
  n(this, "_dense", !1);
343
343
  }
344
344
  leading(t) {
345
- return this._leading = U(this, t), this;
345
+ return this._leading = Y(this, t), this;
346
346
  }
347
347
  icon(t) {
348
348
  return this.leading(t);
349
349
  }
350
350
  title(t) {
351
- return this._title = U(this, t), this;
351
+ return this._title = Y(this, t), this;
352
352
  }
353
353
  subtitle(t) {
354
- return this._subtitle = U(this, t), this;
354
+ return this._subtitle = Y(this, t), this;
355
355
  }
356
356
  trailing(t) {
357
- return this._trailing = U(this, t), this;
357
+ return this._trailing = Y(this, t), this;
358
358
  }
359
359
  chevron(t = !0) {
360
360
  return this._chevron = t, this;
@@ -393,10 +393,10 @@ class Dt extends T {
393
393
  } = this._props, h = this._title !== void 0 ? this._title : o, u = this._subtitle !== void 0 ? this._subtitle : l, _ = this._leading !== void 0 ? this._leading : t, d = this._trailing !== void 0 ? this._trailing : i;
394
394
  return typeof h == "string" && H(this, h), typeof u == "string" && H(this, u), typeof _ == "string" && H(this, _), typeof d == "string" && H(this, d), s.createElement(Wt, {
395
395
  ...p,
396
- leading: typeof _ == "string" ? V(_) : _,
397
- title: typeof h == "string" ? V(h) : h,
398
- subtitle: typeof u == "string" ? V(u) : u,
399
- trailing: typeof d == "string" ? V(d) : d,
396
+ leading: typeof _ == "string" ? q(_) : _,
397
+ title: typeof h == "string" ? q(h) : h,
398
+ subtitle: typeof u == "string" ? q(u) : u,
399
+ trailing: typeof d == "string" ? q(d) : d,
400
400
  chevron: this._chevron,
401
401
  divider: this._divider,
402
402
  dividerColor: this._dividerColor,
@@ -430,10 +430,10 @@ function Ot(e, r) {
430
430
  }
431
431
  return r;
432
432
  }
433
- function Vt(e, r) {
433
+ function qt(e, r) {
434
434
  return typeof r.render == "function" ? r.render(e) : e == null || typeof e != "object" || r.accessor == null || r.accessor === "" ? null : e[r.accessor];
435
435
  }
436
- function qt(e) {
436
+ function Vt(e) {
437
437
  return typeof e == "string" && C(e) ? s.createElement(nt, {
438
438
  as: "span",
439
439
  compute: () => P(e)
@@ -452,13 +452,13 @@ function dt(e, r) {
452
452
  const t = r.render(e);
453
453
  return t == null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t ?? null : null;
454
454
  }
455
- function Ut(e, r) {
455
+ function Yt(e, r) {
456
456
  return e == null && r == null ? 0 : e == null ? 1 : r == null ? -1 : typeof e == "number" && typeof r == "number" ? e - r : typeof e == "boolean" && typeof r == "boolean" ? Number(e) - Number(r) : String(e).localeCompare(String(r), void 0, { numeric: !0, sensitivity: "base" });
457
457
  }
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 Yt = s.memo((e) => {
461
+ const Ut = s.memo((e) => {
462
462
  const {
463
463
  data: r,
464
464
  columns: t,
@@ -488,7 +488,7 @@ const Yt = s.memo((e) => {
488
488
  if (!m || !ut(m, h)) return E;
489
489
  const N = u.dir === "ascending" ? 1 : -1;
490
490
  return E.map((y, w) => ({ row: y, index: w })).sort((y, w) => {
491
- const R = Ut(dt(y.row, m), dt(w.row, m));
491
+ const R = Yt(dt(y.row, m), dt(w.row, m));
492
492
  return R === 0 ? y.index - w.index : N * R;
493
493
  }).map((y) => y.row);
494
494
  }, [E, t, u, h]);
@@ -547,7 +547,7 @@ const Yt = s.memo((e) => {
547
547
  },
548
548
  className: "text-sm text-gray-900 font-medium"
549
549
  },
550
- qt(Vt(m, y))
550
+ Vt(qt(m, y))
551
551
  )
552
552
  )
553
553
  )
@@ -606,7 +606,7 @@ class Xt extends T {
606
606
  style: this.getStyle(),
607
607
  ...this._props
608
608
  };
609
- return s.createElement(Yt, t);
609
+ return s.createElement(Ut, t);
610
610
  }
611
611
  }
612
612
  const ze = A(Xt);