fiboui 2.8.3 → 2.8.5

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,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-8KCOzRhg.js";
6
- import { a as F } from "./icons-7Xl0GDMW.js";
5
+ import { aZ as I, a_ as $, b1 as z, b4 as R, b2 as q, z as le, b7 as Q, bo as oe } from "./client-BzMPiV64.js";
6
+ import { a as F } from "./icons-aP7ZHyqh.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,13 +297,13 @@ 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))
304
304
  s.bindSignal(e);
305
305
  }
306
- function X(s) {
306
+ function K(s) {
307
307
  return typeof s != "string" ? s : z(s) ? q(s) : s;
308
308
  }
309
309
  const _e = {
@@ -432,8 +432,8 @@ class $e extends $ {
432
432
  }
433
433
  build() {
434
434
  const e = {
435
- title: X(this._title),
436
- description: X(this._description),
435
+ title: K(this._title),
436
+ description: K(this._description),
437
437
  intent: this._intent,
438
438
  className: this.getClassName(),
439
439
  style: this.getStyle(),
@@ -442,13 +442,13 @@ class $e extends $ {
442
442
  return t.createElement(Ie, e);
443
443
  }
444
444
  }
445
- const Oe = I($e);
446
- function K(s, r) {
445
+ const Ue = I($e);
446
+ function X(s, r) {
447
447
  if (!(typeof r != "string" || !z(r)))
448
448
  for (const e of R(r))
449
449
  s.bindSignal(e);
450
450
  }
451
- function J(s) {
451
+ function Z(s) {
452
452
  return typeof s != "string" ? s : z(s) ? q(s) : s;
453
453
  }
454
454
  const ze = t.memo((s) => {
@@ -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
  });
@@ -804,10 +804,10 @@ class Le extends $ {
804
804
  return this._variant = e, this;
805
805
  }
806
806
  label(e) {
807
- return this._label = e, K(this, e), this;
807
+ return this._label = e, X(this, e), this;
808
808
  }
809
809
  subLabel(e) {
810
- return this._subLabel = e, K(this, e), this;
810
+ return this._subLabel = e, X(this, e), this;
811
811
  }
812
812
  items(e) {
813
813
  return this._items = e, this;
@@ -819,8 +819,8 @@ class Le extends $ {
819
819
  color: this._color,
820
820
  height: this._height,
821
821
  variant: this._variant,
822
- label: J(this._label),
823
- subLabel: J(this._subLabel),
822
+ label: Z(this._label),
823
+ subLabel: Z(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 : Z(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 : Q(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 || Z(r) || !oe(r) ? "" : r;
849
+ return !r || Q(r) || !oe(r) ? "" : r;
850
850
  }
851
- function Q(s, r = {}) {
851
+ function J(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
- ...Q(m !== void 0 ? { ...n, src: m } : n),
875
+ ...J(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) ? { ...Q(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) ? { ...J(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(
@@ -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
  };