@factorialco/f0-react 1.198.1 → 1.199.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.
@@ -4855,6 +4855,11 @@ declare module "@tiptap/core" {
4855
4855
  }
4856
4856
 
4857
4857
 
4858
+ declare namespace Calendar {
4859
+ var displayName: string;
4860
+ }
4861
+
4862
+
4858
4863
  declare module "@tiptap/core" {
4859
4864
  interface Commands<ReturnType> {
4860
4865
  moodTracker: {
@@ -4862,8 +4867,3 @@ declare module "@tiptap/core" {
4862
4867
  };
4863
4868
  }
4864
4869
  }
4865
-
4866
-
4867
- declare namespace Calendar {
4868
- var displayName: string;
4869
- }
@@ -1,5 +1,5 @@
1
- import { aM as Ry, aN as Py, aO as i0, aP as _a, aQ as mk, aR as gk, aS as yk, aT as Fc, aU as vk, aV as bk, aW as kk, aX as U, aY as Fy, aZ as wk, a_ as xk, a$ as _k, b0 as ks, b1 as Uo, b2 as Wl, b3 as Ck, b4 as Ya, b5 as Sk, b6 as Bc, b7 as Nk, b8 as Lk, b9 as Za, ba as Ek, bb as Mk, bc as Tk, bd as r0, be as Ok, bf as s0, bg as Ak, bh as By, bi as $y, bj as Ik, bk as Ys, q as At, a as L, bl as rr, P as Ke, bm as ze, s as fe, j as nt, y as ne, bn as vf, L as Lr, bo as $e, bp as Ei, _ as zy, bq as De, w as _i, x as Wn, br as jy, bs as ql, bt as Ul, bu as Dk, n as bf, bv as Vy, bw as Hy, bx as pe, by as sr, bz as ut, f as Rk, bA as Pk, bB as Fk, bC as Bk, b as o0, bD as $k, bE as zk, bF as Jt, ab as Kl, ay as a0, bG as Xr, bH as Wy, bI as Eh, bJ as jk, c as kf, bK as Zs, bL as Mh, bM as $t, bN as Vk, bO as Tn, bP as Hk, bQ as qy, bR as Wk, bS as zi, bT as qk, bU as Uk, bV as Kk, bW as Gk, bX as Jk, bY as Uy, bZ as Yk, b_ as l0, b$ as Zk, aI as Xs, S as Mi, t as Th, c0 as Xk, as as Qk, au as Ky, ap as Gy, av as wf, c1 as Jy, $ as Ca, r as Ti, c2 as ew, c3 as Oh, a8 as qn, c4 as Yt, c5 as xf, c6 as Ko, c7 as tw, c8 as Yy, c9 as nw, h as _f, i as Cf, k as Sf, ca as Ah, cb as iw, cc as Zy, C as mn, cd as Xy, ce as rw, cf as sw, G as ow, cg as Qy, ch as Ku, ci as e4, a5 as Gu, cj as aw, ck as lw, cl as dw, cm as fw, cn as cw, aJ as Nf, a2 as Ju, F as Ih, aL as uw, co as Ln, aK as hw, cp as t4, cq as an, cr as pr, cs as pw, ct as mw, cu as qt, cv as Gl, cw as n4, cx as gw, ag as Lf, a6 as Dh, al as jr, cy as Rh, cz as Ph, cA as i4, cB as yw, a9 as vw, a1 as r4, cC as bw, cD as s4, cE as kw, cF as ww, cG as xw, D as o4, u as a4, cH as d0, cI as _w, cJ as Sa, cK as Cw, cL as Ef, K as Sw, m as Nw, cM as Lw, cN as Ew, cO as Mw, cP as Tw, cQ as Ow, cR as Aw, cS as Iw, cT as Dw, p as Rw, an as Pw, cU as l4, cV as Mf, v as Yu, cW as f0, Y as d4, cX as Na, cY as f4, cZ as c4, c_ as Fw, a0 as Qs, c$ as Bw, a3 as u4, I as $w, d0 as ft, d1 as c0, d2 as zw, d3 as jw, d4 as Vw, d5 as $c, d6 as Hw, d7 as Ww, aq as qw, ax as Tf, z as Of, d8 as Af, d9 as If, E as Df, aw as h4, aa as Fh, da as Uw, aC as Kw, db as Zu, dc as Gw, dd as Jl, ar as Yl, aD as Jw, de as Yw, aB as p4, df as Zw, aA as Xw, az as Qw, dg as ex, dh as tx, ac as nx, di as ix, dj as rx, dk as sx, a4 as ox, dl as La, dm as Bh, dn as $h, dp as Ea, dq as m4, dr as ax, ds as g4, dt as lx, aE as y4, du as v4, ad as b4, dv as dx, dw as fx, dx as cx, H as ux, A as hx, B as px, e as mx, g as gx, V as yx, d as vx, dy as u0, dz as bx, dA as kx, dB as wx, dC as k4, dD as xx } from "./hooks-QtGLrwmf.js";
2
- import { J as lJ, dF as dJ, a7 as fJ, dE as cJ } from "./hooks-QtGLrwmf.js";
1
+ import { aM as Ry, aN as Py, aO as i0, aP as _a, aQ as mk, aR as gk, aS as yk, aT as Fc, aU as vk, aV as bk, aW as kk, aX as U, aY as Fy, aZ as wk, a_ as xk, a$ as _k, b0 as ks, b1 as Uo, b2 as Wl, b3 as Ck, b4 as Ya, b5 as Sk, b6 as Bc, b7 as Nk, b8 as Lk, b9 as Za, ba as Ek, bb as Mk, bc as Tk, bd as r0, be as Ok, bf as s0, bg as Ak, bh as By, bi as $y, bj as Ik, bk as Ys, q as At, a as L, bl as rr, P as Ke, bm as ze, s as fe, j as nt, y as ne, bn as vf, L as Lr, bo as $e, bp as Ei, _ as zy, bq as De, w as _i, x as Wn, br as jy, bs as ql, bt as Ul, bu as Dk, n as bf, bv as Vy, bw as Hy, bx as pe, by as sr, bz as ut, f as Rk, bA as Pk, bB as Fk, bC as Bk, b as o0, bD as $k, bE as zk, bF as Jt, ab as Kl, ay as a0, bG as Xr, bH as Wy, bI as Eh, bJ as jk, c as kf, bK as Zs, bL as Mh, bM as $t, bN as Vk, bO as Tn, bP as Hk, bQ as qy, bR as Wk, bS as zi, bT as qk, bU as Uk, bV as Kk, bW as Gk, bX as Jk, bY as Uy, bZ as Yk, b_ as l0, b$ as Zk, aI as Xs, S as Mi, t as Th, c0 as Xk, as as Qk, au as Ky, ap as Gy, av as wf, c1 as Jy, $ as Ca, r as Ti, c2 as ew, c3 as Oh, a8 as qn, c4 as Yt, c5 as xf, c6 as Ko, c7 as tw, c8 as Yy, c9 as nw, h as _f, i as Cf, k as Sf, ca as Ah, cb as iw, cc as Zy, C as mn, cd as Xy, ce as rw, cf as sw, G as ow, cg as Qy, ch as Ku, ci as e4, a5 as Gu, cj as aw, ck as lw, cl as dw, cm as fw, cn as cw, aJ as Nf, a2 as Ju, F as Ih, aL as uw, co as Ln, aK as hw, cp as t4, cq as an, cr as pr, cs as pw, ct as mw, cu as qt, cv as Gl, cw as n4, cx as gw, ag as Lf, a6 as Dh, al as jr, cy as Rh, cz as Ph, cA as i4, cB as yw, a9 as vw, a1 as r4, cC as bw, cD as s4, cE as kw, cF as ww, cG as xw, D as o4, u as a4, cH as d0, cI as _w, cJ as Sa, cK as Cw, cL as Ef, K as Sw, m as Nw, cM as Lw, cN as Ew, cO as Mw, cP as Tw, cQ as Ow, cR as Aw, cS as Iw, cT as Dw, p as Rw, an as Pw, cU as l4, cV as Mf, v as Yu, cW as f0, Y as d4, cX as Na, cY as f4, cZ as c4, c_ as Fw, a0 as Qs, c$ as Bw, a3 as u4, I as $w, d0 as ft, d1 as c0, d2 as zw, d3 as jw, d4 as Vw, d5 as $c, d6 as Hw, d7 as Ww, aq as qw, ax as Tf, z as Of, d8 as Af, d9 as If, E as Df, aw as h4, aa as Fh, da as Uw, aC as Kw, db as Zu, dc as Gw, dd as Jl, ar as Yl, aD as Jw, de as Yw, aB as p4, df as Zw, aA as Xw, az as Qw, dg as ex, dh as tx, ac as nx, di as ix, dj as rx, dk as sx, a4 as ox, dl as La, dm as Bh, dn as $h, dp as Ea, dq as m4, dr as ax, ds as g4, dt as lx, aE as y4, du as v4, ad as b4, dv as dx, dw as fx, dx as cx, H as ux, A as hx, B as px, e as mx, g as gx, V as yx, d as vx, dy as u0, dz as bx, dA as kx, dB as wx, dC as k4, dD as xx } from "./hooks-DT1C-hbB.js";
2
+ import { J as lJ, dF as dJ, a7 as fJ, dE as cJ } from "./hooks-DT1C-hbB.js";
3
3
  import { jsxs as b, jsx as d, Fragment as xe } from "react/jsx-runtime";
4
4
  import * as A from "react";
5
5
  import Y, { forwardRef as j, createContext as Rn, useRef as de, useState as $, useCallback as Se, useContext as ln, useMemo as ue, useEffect as ee, PureComponent as _x, useId as Qr, useLayoutEffect as zh, memo as Ma, Fragment as or, useTransition as Cx, isValidElement as Sx, cloneElement as w4, useDebugValue as x4, createRef as Nx, createElement as Lx, version as h0, useImperativeHandle as Rf, Children as _4 } from "react";
@@ -21728,8 +21728,14 @@ const h9 = A.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ d(
21728
21728
  {
21729
21729
  ref: n,
21730
21730
  className: L(
21731
- "relative h-[48px] whitespace-nowrap px-3 align-middle first:pl-6 last:pr-6",
21732
- "[&:has([role=checkbox])]:px-2",
21731
+ "relative h-[48px] whitespace-nowrap p-3 align-top first:pl-6 last:pr-6",
21732
+ "[&:has([role=checkbox])]:px-2 [&:has([role=checkbox])]:py-2.5",
21733
+ "[&:has([data-cell-type=percentage])]:py-2",
21734
+ "[&:has([data-cell-type=status])]:py-2.5",
21735
+ "[&:has([data-cell-type=tag])]:py-2",
21736
+ "[&:has([data-cell-type=file])]:py-2.5",
21737
+ "[&:has([data-cell-type=alert-tag])]:py-2.5",
21738
+ "[&:has([data-cell-type=dot-tag])]:py-2.5",
21733
21739
  t
21734
21740
  ),
21735
21741
  ...e
package/dist/f0.d.ts CHANGED
@@ -2762,6 +2762,11 @@ declare module "@tiptap/core" {
2762
2762
  }
2763
2763
 
2764
2764
 
2765
+ declare namespace Calendar {
2766
+ var displayName: string;
2767
+ }
2768
+
2769
+
2765
2770
  declare module "@tiptap/core" {
2766
2771
  interface Commands<ReturnType> {
2767
2772
  moodTracker: {
@@ -2769,8 +2774,3 @@ declare module "@tiptap/core" {
2769
2774
  };
2770
2775
  }
2771
2776
  }
2772
-
2773
-
2774
- declare namespace Calendar {
2775
- var displayName: string;
2776
- }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as G, j as Pe, k as W, S as Y, l as M, m as J, n as Se, O as Fe, o as X, p as ke, q as De, F as K, r as Me, s as Te, t as Be, D as Ie, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as V, H as je, I as ee, J as Ve, K as ze, M as qe, N as Ae, Q as He, R as Ue, X as Ge, T as We, W as Ye, Y as Je, Z as Xe } from "./hooks-QtGLrwmf.js";
2
- import { ay as Ua, _ as Ga, aA as Wa, aJ as Ya, $ as Ja, a0 as Xa, a1 as Ka, a2 as Qa, a3 as Za, a4 as es, a5 as as, a6 as ss, a8 as rs, a9 as ts, aa as ls, ab as os, aF as ns, ad as is, ae as cs, af as ds, ag as us, aj as fs, ak as hs, al as ms, am as ps, ao as vs, ac as gs, an as bs, ai as xs, aG as Cs, az as ys, at as ws, aw as Ns, as as Ls, aK as Ps, ar as Ss, aq as Fs, a7 as ks, ah as Ds, ap as Ms, au as Ts, aB as Bs, aC as Is, aD as Rs, aL as Os, av as $s, aE as Es, aI as _s, ax as js, aH as Vs } from "./hooks-QtGLrwmf.js";
1
+ import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as G, j as Pe, k as W, S as Y, l as M, m as J, n as Se, O as Fe, o as X, p as ke, q as De, F as K, r as Me, s as Te, t as Be, D as Ie, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as V, H as je, I as ee, J as Ve, K as ze, M as qe, N as Ae, Q as He, R as Ue, X as Ge, T as We, W as Ye, Y as Je, Z as Xe } from "./hooks-DT1C-hbB.js";
2
+ import { ay as Ua, _ as Ga, aA as Wa, aJ as Ya, $ as Ja, a0 as Xa, a1 as Ka, a2 as Qa, a3 as Za, a4 as es, a5 as as, a6 as ss, a8 as rs, a9 as ts, aa as ls, ab as os, aF as ns, ad as is, ae as cs, af as ds, ag as us, aj as fs, ak as hs, al as ms, am as ps, ao as vs, ac as gs, an as bs, ai as xs, aG as Cs, az as ys, at as ws, aw as Ns, as as Ls, aK as Ps, ar as Ss, aq as Fs, a7 as ks, ah as Ds, ap as Ms, au as Ts, aB as Bs, aC as Is, aD as Rs, aL as Os, av as $s, aE as Es, aI as _s, ax as js, aH as Vs } from "./hooks-DT1C-hbB.js";
3
3
  import { jsx as e, jsxs as d, Fragment as $ } from "react/jsx-runtime";
4
4
  import * as E from "react";
5
5
  import Ke, { useState as g, forwardRef as B, useRef as ae, useImperativeHandle as Qe, Children as Ze, useEffect as se, createContext as ea } from "react";
@@ -44216,7 +44216,7 @@ const y$e = {
44216
44216
  ))
44217
44217
  );
44218
44218
  ES.displayName = "F0TagAlert";
44219
- const b$e = (e) => /* @__PURE__ */ b(ES, { level: e.level, text: e.label });
44219
+ const b$e = (e) => /* @__PURE__ */ b("div", { "data-cell-type": "alert-tag", children: /* @__PURE__ */ b(ES, { level: e.level, text: e.label }) });
44220
44220
  function EH(e) {
44221
44221
  return typeof e == "object" && e !== null && "placeholder" in e && typeof e.placeholder == "string";
44222
44222
  }
@@ -44481,11 +44481,18 @@ const QMt = Object.keys(OH), AS = xe(
44481
44481
  }
44482
44482
  );
44483
44483
  AS.displayName = "F0TagDot";
44484
- const C$e = (e) => /* @__PURE__ */ b(AS, { text: e.label, color: e.color }), S$e = (e) => /* @__PURE__ */ ee("div", { className: "text-f1-text-default text-md flex items-center gap-2 font-medium", children: [
44485
- /* @__PURE__ */ b($v, { file: e }),
44486
- " ",
44487
- /* @__PURE__ */ b("span", { children: e.name })
44488
- ] }), DH = (e) => /* @__PURE__ */ ee("div", { className: "flex items-center gap-2", children: [
44484
+ const C$e = (e) => /* @__PURE__ */ b("div", { "data-cell-type": "dot-tag", children: /* @__PURE__ */ b(AS, { text: e.label, color: e.color }) }), S$e = (e) => /* @__PURE__ */ ee(
44485
+ "div",
44486
+ {
44487
+ className: "text-f1-text-default text-md flex items-center gap-2 font-medium",
44488
+ "data-cell-type": "file",
44489
+ children: [
44490
+ /* @__PURE__ */ b($v, { file: e }),
44491
+ " ",
44492
+ /* @__PURE__ */ b("span", { children: e.name })
44493
+ ]
44494
+ }
44495
+ ), DH = (e) => /* @__PURE__ */ ee("div", { className: "flex items-center gap-2", children: [
44489
44496
  /* @__PURE__ */ b(Mt, { icon: e.icon }),
44490
44497
  /* @__PURE__ */ b("span", { className: "text-f1-foreground", children: e.label })
44491
44498
  ] }), $$e = (e) => /* @__PURE__ */ b(DH, { icon: Ste, label: e.name }), G7 = (e, t) => {
@@ -44496,27 +44503,27 @@ const C$e = (e) => /* @__PURE__ */ b(AS, { text: e.label, color: e.color }), S$e
44496
44503
  }
44497
44504
  return e.scrollWidth > e.clientWidth;
44498
44505
  }, NH = xe(
44499
- ({ children: e, className: t, lines: n, onHasEllipsisChange: r, ...a }, i) => (Le(() => {
44500
- if (!i || typeof i != "object") return;
44501
- const o = i.current;
44502
- if (!o) return;
44503
- r(G7(o, n));
44504
- const s = new ResizeObserver(() => {
44505
- r(G7(o, n));
44506
+ ({ children: e, className: t, lines: n, onHasEllipsisChange: r, noTooltip: a, ...i }, o) => (Le(() => {
44507
+ if (!o || typeof o != "object") return;
44508
+ const s = o.current;
44509
+ if (!s) return;
44510
+ r(G7(s, n));
44511
+ const u = new ResizeObserver(() => {
44512
+ r(G7(s, n));
44506
44513
  });
44507
- return s.observe(o), () => {
44508
- s.disconnect();
44514
+ return u.observe(s), () => {
44515
+ u.disconnect();
44509
44516
  };
44510
- }, [i, r, n]), /* @__PURE__ */ b(
44517
+ }, [o, r, n]), /* @__PURE__ */ b(
44511
44518
  "span",
44512
44519
  {
44513
- ref: i,
44520
+ ref: o,
44514
44521
  className: le(
44515
- "pointer-events-auto min-w-0 max-w-full overflow-hidden text-ellipsis",
44522
+ `${a ? "pointer-events-none" : "pointer-events-auto"} min-w-0 max-w-full overflow-hidden text-ellipsis`,
44516
44523
  n > 1 ? `not-supports-[(-webkit-line-clamp:${n})]:whitespace-nowrap display-[-webkit-box] whitespace-normal line-clamp-${n}` : "block whitespace-nowrap",
44517
44524
  t
44518
44525
  ),
44519
- ...a,
44526
+ ...i,
44520
44527
  children: e
44521
44528
  }
44522
44529
  ))
@@ -44533,6 +44540,7 @@ const Nm = xe(
44533
44540
  onHasEllipsisChange: s,
44534
44541
  ...a,
44535
44542
  "data-testid": "one-ellipsis",
44543
+ noTooltip: r,
44536
44544
  children: n
44537
44545
  }
44538
44546
  ), [e, t, n, c]);
@@ -44550,7 +44558,7 @@ const _$e = (e) => typeof e == "object" && e !== null && "lines" in e ? e.lines
44550
44558
  Nm,
44551
44559
  {
44552
44560
  className: le(
44553
- "my-3 whitespace-pre-wrap break-words text-f1-foreground",
44561
+ "whitespace-pre-wrap break-words text-f1-foreground",
44554
44562
  n && "text-f1-foreground-secondary"
44555
44563
  ),
44556
44564
  lines: r,
@@ -44570,11 +44578,12 @@ const _$e = (e) => typeof e == "object" && e !== null && "lines" in e ? e.lines
44570
44578
  "text-f1-foreground",
44571
44579
  n && "text-f1-foreground-secondary"
44572
44580
  ),
44581
+ "data-cell-type": "percentage",
44573
44582
  children: t
44574
44583
  }
44575
44584
  );
44576
44585
  const r = _x / 2, a = r - Y7 / 2, i = a - A$e, o = 2 * Math.PI * i, s = (100 - Math.min(Number(t), 100)) / 100 * o, u = typeof e == "object" && "label" in e;
44577
- return /* @__PURE__ */ ee("div", { className: "flex items-center gap-2", children: [
44586
+ return /* @__PURE__ */ ee("div", { className: "flex items-center gap-2", "data-cell-type": "percentage", children: [
44578
44587
  /* @__PURE__ */ ee(
44579
44588
  "svg",
44580
44589
  {
@@ -44664,7 +44673,7 @@ const _$e = (e) => typeof e == "object" && e !== null && "lines" in e ? e.lines
44664
44673
  ))
44665
44674
  );
44666
44675
  OS.displayName = "F0TagStatus";
44667
- const N$e = (e) => /* @__PURE__ */ b(OS, { variant: e.status, text: e.label }), P1 = xe(
44676
+ const N$e = (e) => /* @__PURE__ */ b("div", { "data-cell-type": "status", children: /* @__PURE__ */ b(OS, { variant: e.status, text: e.label }) }), P1 = xe(
44668
44677
  ({ text: e, additionalAccesibleText: t, icon: n, noBorder: r, className: a }, i) => (El(e, { disallowEmpty: !0 }), /* @__PURE__ */ b(
44669
44678
  $u,
44670
44679
  {
@@ -44688,7 +44697,7 @@ const N$e = (e) => /* @__PURE__ */ b(OS, { variant: e.status, text: e.label }),
44688
44697
  ))
44689
44698
  );
44690
44699
  P1.displayName = "F0TagRaw";
44691
- const W$e = (e) => /* @__PURE__ */ b(P1, { text: e.label, icon: e.icon }), j$e = {
44700
+ const W$e = (e) => /* @__PURE__ */ b("div", { "data-cell-type": "tag", children: /* @__PURE__ */ b(P1, { text: e.label, icon: e.icon }) }), j$e = {
44692
44701
  positive: cte,
44693
44702
  negative: rte
44694
44703
  }, WH = xe(