@factorialco/f0-react 1.304.1 → 1.306.0

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.
@@ -117691,50 +117691,53 @@ function _U1({ title: e, description: t, onClick: n, onClose: r, isVisible: a, d
117691
117691
  })
117692
117692
  });
117693
117693
  }
117694
- const aq1 = wX, oq1 = MX, F22 = _.forwardRef(({ className: e, ...t }, n) => i(uM, {
117694
+ const F22 = z(({ className: e, ...t }, n) => i(uM, {
117695
117695
  ref: n,
117696
117696
  className: l2("fixed inset-0 z-50 bg-f1-background-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e),
117697
117697
  ...t
117698
117698
  }));
117699
117699
  F22.displayName = uM.displayName;
117700
- const V22 = _.forwardRef(({ className: e, children: t, withTraslateAnimation: n = !0, container: r, ...a }, o) => {
117701
- const [s, l] = F2();
117700
+ const aq1 = MX, V22 = z(({ wrapperClassName: e, className: t, children: n, withTranslateAnimation: r = !0, container: a, ...o }, s) => {
117701
+ const [l, c] = F2();
117702
117702
  return Z2(() => {
117703
- l(r !== void 0 ? r : document.getElementById("content"));
117704
- }, [r]), s === void 0 ? null : H(oq1, {
117705
- container: s,
117703
+ c(a !== void 0 ? a : document.getElementById("content"));
117704
+ }, [a]), l === void 0 ? null : H(aq1, {
117705
+ container: l,
117706
117706
  children: [i(F22, {}), i(dM, {
117707
- ref: o,
117708
- className: l2("fixed left-[50%] top-[50%] z-50 flex w-[90%] translate-x-[-50%] translate-y-[-50%] flex-col rounded-xl border bg-f1-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", n && "data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]", e),
117709
- ...a,
117710
- children: t
117707
+ ref: s,
117708
+ className: l2("fixed inset-0 z-50 flex items-center justify-center", "pointer-events-none duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", r && "data-[state=closed]:slide-out-to-top-[10%] data-[state=open]:slide-in-from-top-[10%]", e),
117709
+ ...o,
117710
+ children: i("div", {
117711
+ className: l2("relative flex w-[90%] flex-col rounded-xl border bg-f1-background shadow-lg", "pointer-events-auto", t),
117712
+ children: n
117713
+ })
117711
117714
  })]
117712
117715
  });
117713
117716
  });
117714
117717
  V22.displayName = dM.displayName;
117715
- const S22 = ({ className: e, ...t }) => i("div", {
117716
- className: e,
117718
+ const S22 = z(({ className: e, ...t }, n) => i(CM, {
117719
+ ref: n,
117720
+ className: l2("text-f1-foreground-secondary", e),
117717
117721
  ...t
117718
- });
117719
- S22.displayName = "DialogHeader";
117722
+ }));
117723
+ S22.displayName = CM.displayName;
117720
117724
  const A22 = ({ className: e, ...t }) => i("div", {
117721
117725
  className: e,
117722
117726
  ...t
117723
117727
  });
117724
117728
  A22.displayName = "DialogFooter";
117725
- const $22 = _.forwardRef(({ className: e, ...t }, n) => i(fM, {
117726
- ref: n,
117727
- className: l2("text-lg font-medium text-f1-foreground", e),
117729
+ const $22 = ({ className: e, ...t }) => i("div", {
117730
+ className: e,
117728
117731
  ...t
117729
- }));
117730
- $22.displayName = fM.displayName;
117731
- const T22 = _.forwardRef(({ className: e, ...t }, n) => i(CM, {
117732
+ });
117733
+ $22.displayName = "DialogHeader";
117734
+ const T22 = z(({ className: e, ...t }, n) => i(fM, {
117732
117735
  ref: n,
117733
- className: l2("text-f1-foreground-secondary", e),
117736
+ className: l2("text-lg font-medium text-f1-foreground", e),
117734
117737
  ...t
117735
117738
  }));
117736
- T22.displayName = CM.displayName;
117737
- const iq1 = z(function({ bare: t = !1, ...n }, r) {
117739
+ T22.displayName = fM.displayName;
117740
+ const oq1 = wX, iq1 = z(function({ bare: t = !1, ...n }, r) {
117738
117741
  return i("div", {
117739
117742
  ref: r,
117740
117743
  role: "separator",
@@ -117799,24 +117802,24 @@ const iq1 = z(function({ bare: t = !1, ...n }, r) {
117799
117802
  t == null || t(), d(!1);
117800
117803
  }, 200);
117801
117804
  }, [t]);
117802
- return i(aq1, {
117805
+ return i(oq1, {
117803
117806
  open: e && !u,
117804
117807
  onOpenChange: (m) => !m && (f == null ? void 0 : f()),
117805
117808
  children: H(V22, {
117806
117809
  ref: c,
117807
117810
  className: "bottom-3 top-auto max-w-[400px] translate-y-0 sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%]",
117808
117811
  container: l,
117809
- children: [H(S22, {
117812
+ children: [H($22, {
117810
117813
  className: `flex flex-col items-start gap-4 px-4 ${n ? "pt-5" : "py-5"}`,
117811
117814
  children: [i(X$2, {
117812
117815
  type: n ? "positive" : "critical",
117813
117816
  size: "lg"
117814
117817
  }), H("div", {
117815
117818
  className: "flex flex-col gap-0.5",
117816
- children: [i($22, {
117819
+ children: [i(T22, {
117817
117820
  className: "text-xl font-semibold sm:text-lg",
117818
117821
  children: n ? a == null ? void 0 : a.title : r == null ? void 0 : r.title
117819
- }), i(T22, {
117822
+ }), i(S22, {
117820
117823
  className: "text-lg sm:text-base",
117821
117824
  children: n ? a == null ? void 0 : a.description : r == null ? void 0 : r.description
117822
117825
  })]
@@ -119591,9 +119594,9 @@ export {
119591
119594
  X8 as at,
119592
119595
  Yk as au,
119593
119596
  mc as av,
119594
- aq1 as aw,
119597
+ oq1 as aw,
119595
119598
  V22 as ax,
119596
- $22 as ay,
119599
+ T22 as ay,
119597
119600
  aR as az,
119598
119601
  f3 as b,
119599
119602
  W62 as b$,
@@ -119726,7 +119729,7 @@ export {
119726
119729
  $G2 as cy,
119727
119730
  oX2 as cz,
119728
119731
  mX1 as d,
119729
- j1 as d$,
119732
+ dx as d$,
119730
119733
  ks2 as d0,
119731
119734
  za as d1,
119732
119735
  yU1 as d2,
@@ -119737,33 +119740,33 @@ export {
119737
119740
  _c as d7,
119738
119741
  g22 as d8,
119739
119742
  Pz1 as d9,
119740
- n5 as dA,
119741
- Pt as dB,
119742
- Rv as dC,
119743
- Dc as dD,
119744
- w3 as dE,
119745
- p5 as dF,
119746
- yw as dG,
119747
- p1 as dH,
119748
- q1 as dI,
119749
- pc2 as dJ,
119750
- YW as dK,
119751
- $f2 as dL,
119752
- vd2 as dM,
119753
- mf2 as dN,
119754
- fc2 as dO,
119755
- Zy2 as dP,
119756
- TX1 as dQ,
119757
- Hz1 as dR,
119758
- ZX1 as dS,
119759
- Ay2 as dT,
119760
- $y2 as dU,
119761
- Ej as dV,
119762
- m11 as dW,
119763
- kx as dX,
119764
- WX1 as dY,
119765
- dx as dZ,
119766
- jb as d_,
119743
+ ZF as dA,
119744
+ Wt as dB,
119745
+ n5 as dC,
119746
+ Pt as dD,
119747
+ Rv as dE,
119748
+ Dc as dF,
119749
+ w3 as dG,
119750
+ p5 as dH,
119751
+ yw as dI,
119752
+ p1 as dJ,
119753
+ q1 as dK,
119754
+ pc2 as dL,
119755
+ YW as dM,
119756
+ $f2 as dN,
119757
+ vd2 as dO,
119758
+ mf2 as dP,
119759
+ fc2 as dQ,
119760
+ Zy2 as dR,
119761
+ TX1 as dS,
119762
+ Hz1 as dT,
119763
+ ZX1 as dU,
119764
+ Ay2 as dV,
119765
+ $y2 as dW,
119766
+ Ej as dX,
119767
+ m11 as dY,
119768
+ kx as dZ,
119769
+ WX1 as d_,
119767
119770
  ja as da,
119768
119771
  Vy2 as db,
119769
119772
  Sy2 as dc,
@@ -119775,96 +119778,97 @@ export {
119775
119778
  $q as di,
119776
119779
  d7 as dj,
119777
119780
  I$2 as dk,
119778
- ys2 as dl,
119779
- hs2 as dm,
119780
- _a as dn,
119781
- VB as dp,
119782
- if2 as dq,
119783
- CF as dr,
119784
- Mc2 as ds,
119785
- wc2 as dt,
119786
- _9 as du,
119787
- LF as dv,
119788
- lf2 as dw,
119789
- hc2 as dx,
119790
- ZF as dy,
119791
- Wt as dz,
119781
+ W$2 as dl,
119782
+ S22 as dm,
119783
+ ys2 as dn,
119784
+ hs2 as dp,
119785
+ _a as dq,
119786
+ VB as dr,
119787
+ if2 as ds,
119788
+ CF as dt,
119789
+ Mc2 as du,
119790
+ wc2 as dv,
119791
+ _9 as dw,
119792
+ LF as dx,
119793
+ lf2 as dy,
119794
+ hc2 as dz,
119792
119795
  O62 as e,
119793
- cU1 as e$,
119794
- lz1 as e0,
119795
- Hy2 as e1,
119796
- Vq as e2,
119797
- Fx as e3,
119798
- Qk as e4,
119799
- T7 as e5,
119800
- no as e6,
119801
- uz1 as e7,
119802
- gs2 as e8,
119803
- gz as e9,
119804
- _31 as eA,
119805
- sX1 as eB,
119806
- LX1 as eC,
119807
- CU1 as eD,
119808
- Bz1 as eE,
119809
- $3 as eF,
119810
- an as eG,
119811
- rn as eH,
119812
- kr as eI,
119813
- eq1 as eJ,
119814
- gU1 as eK,
119815
- SU1 as eL,
119816
- NW as eM,
119817
- Wz1 as eN,
119818
- S22 as eO,
119819
- T22 as eP,
119820
- A22 as eQ,
119821
- oZ2 as eR,
119822
- iZ2 as eS,
119823
- sZ2 as eT,
119824
- iU as eU,
119825
- yQ as eV,
119826
- YX1 as eW,
119827
- b7 as eX,
119828
- FJ as eY,
119829
- zk as eZ,
119830
- I11 as e_,
119831
- $g2 as ea,
119832
- bQ as eb,
119833
- Ag2 as ec,
119834
- j11 as ed,
119835
- xX1 as ee,
119836
- qX1 as ef,
119837
- XX1 as eg,
119838
- OG as eh,
119839
- KM as ei,
119840
- iL2 as ej,
119841
- VH as ek,
119842
- JI1 as el,
119843
- BX1 as em,
119844
- dU1 as en,
119845
- AX1 as eo,
119846
- Ku as ep,
119847
- Tq as eq,
119848
- E02 as er,
119849
- EX1 as es,
119850
- Wk as et,
119851
- Bk as eu,
119852
- QW1 as ev,
119853
- b31 as ew,
119854
- iX1 as ex,
119855
- gq1 as ey,
119856
- AU1 as ez,
119796
+ I11 as e$,
119797
+ jb as e0,
119798
+ j1 as e1,
119799
+ lz1 as e2,
119800
+ Hy2 as e3,
119801
+ Vq as e4,
119802
+ Fx as e5,
119803
+ Qk as e6,
119804
+ T7 as e7,
119805
+ no as e8,
119806
+ uz1 as e9,
119807
+ gq1 as eA,
119808
+ AU1 as eB,
119809
+ _31 as eC,
119810
+ sX1 as eD,
119811
+ LX1 as eE,
119812
+ CU1 as eF,
119813
+ Bz1 as eG,
119814
+ $3 as eH,
119815
+ an as eI,
119816
+ rn as eJ,
119817
+ kr as eK,
119818
+ eq1 as eL,
119819
+ gU1 as eM,
119820
+ SU1 as eN,
119821
+ NW as eO,
119822
+ Wz1 as eP,
119823
+ $22 as eQ,
119824
+ A22 as eR,
119825
+ oZ2 as eS,
119826
+ iZ2 as eT,
119827
+ sZ2 as eU,
119828
+ iU as eV,
119829
+ yQ as eW,
119830
+ YX1 as eX,
119831
+ b7 as eY,
119832
+ FJ as eZ,
119833
+ zk as e_,
119834
+ gs2 as ea,
119835
+ gz as eb,
119836
+ $g2 as ec,
119837
+ bQ as ed,
119838
+ Ag2 as ee,
119839
+ j11 as ef,
119840
+ xX1 as eg,
119841
+ qX1 as eh,
119842
+ XX1 as ei,
119843
+ OG as ej,
119844
+ KM as ek,
119845
+ iL2 as el,
119846
+ VH as em,
119847
+ JI1 as en,
119848
+ BX1 as eo,
119849
+ dU1 as ep,
119850
+ AX1 as eq,
119851
+ Ku as er,
119852
+ Tq as es,
119853
+ E02 as et,
119854
+ EX1 as eu,
119855
+ Wk as ev,
119856
+ Bk as ew,
119857
+ QW1 as ex,
119858
+ b31 as ey,
119859
+ iX1 as ez,
119857
119860
  Hw as f,
119858
- iq1 as f0,
119859
- zX1 as f1,
119860
- l11 as f2,
119861
- dn as f3,
119862
- jX1 as f4,
119863
- M7 as f5,
119864
- xe as f6,
119865
- HW1 as f7,
119866
- _W1 as f8,
119867
- MJ as f9,
119861
+ cU1 as f0,
119862
+ iq1 as f1,
119863
+ zX1 as f2,
119864
+ l11 as f3,
119865
+ dn as f4,
119866
+ jX1 as f5,
119867
+ M7 as f6,
119868
+ xe as f7,
119869
+ HW1 as f8,
119870
+ _W1 as f9,
119871
+ MJ as fa,
119868
119872
  z$2 as g,
119869
119873
  f62 as h,
119870
119874
  C7 as i,
@@ -450,23 +450,6 @@ declare global {
450
450
  }
451
451
  }
452
452
 
453
- declare module "gridstack" {
454
- interface GridStackWidget {
455
- id?: string;
456
- allowedSizes?: Array<{
457
- w: number;
458
- h: number;
459
- }>;
460
- meta?: Record<string, unknown>;
461
- }
462
- interface GridStackNode {
463
- allowedSizes?: Array<{
464
- w: number;
465
- h: number;
466
- }>;
467
- }
468
- }
469
-
470
453
 
471
454
  declare module "@tiptap/core" {
472
455
  interface Commands<ReturnType> {
@@ -494,6 +477,23 @@ declare module "@tiptap/core" {
494
477
  }
495
478
  }
496
479
 
480
+ declare module "gridstack" {
481
+ interface GridStackWidget {
482
+ id?: string;
483
+ allowedSizes?: Array<{
484
+ w: number;
485
+ h: number;
486
+ }>;
487
+ meta?: Record<string, unknown>;
488
+ }
489
+ interface GridStackNode {
490
+ allowedSizes?: Array<{
491
+ w: number;
492
+ h: number;
493
+ }>;
494
+ }
495
+ }
496
+
497
497
 
498
498
  declare module "@tiptap/core" {
499
499
  interface Commands<ReturnType> {