@factorialco/f0-react 1.193.0 → 1.194.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.
- package/dist/experimental.d.ts +11 -6
- package/dist/experimental.js +11 -4
- package/dist/f0.d.ts +5 -5
- package/dist/f0.js +2 -2
- package/dist/{hooks-BuUXFFva.js → hooks-CbFey1zm.js} +6 -3
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -3576,6 +3576,11 @@ declare type PropertyDefinition_2<T> = {
|
|
|
3576
3576
|
* }
|
|
3577
3577
|
*/
|
|
3578
3578
|
render: (item: T) => RendererDefinition | string | number | undefined;
|
|
3579
|
+
/**
|
|
3580
|
+
* Function that determines if the property should be hidden for a given item.
|
|
3581
|
+
* Should return true if the property should be hidden, false otherwise.
|
|
3582
|
+
*/
|
|
3583
|
+
hide?: (item: T) => boolean;
|
|
3579
3584
|
};
|
|
3580
3585
|
|
|
3581
3586
|
declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status">;
|
|
@@ -4757,7 +4762,7 @@ export declare const WidgetStrip: ForwardRefExoticComponent<DashboardProps_2 & R
|
|
|
4757
4762
|
|
|
4758
4763
|
declare type WidgetWidth = "sm" | "md" | "lg";
|
|
4759
4764
|
|
|
4760
|
-
declare type WithOptionalSorting<R extends RecordType, Sortings extends SortingsDefinition> = PropertyDefinition_2<R> & {
|
|
4765
|
+
declare type WithOptionalSorting<R extends RecordType, Sortings extends SortingsDefinition> = Omit<PropertyDefinition_2<R>, "hide"> & {
|
|
4761
4766
|
sorting?: SortingKey<Sortings>;
|
|
4762
4767
|
/**
|
|
4763
4768
|
* The alignment of the column. If not provided, the alignment will be "left"
|
|
@@ -4813,11 +4818,6 @@ declare module "@tiptap/core" {
|
|
|
4813
4818
|
}
|
|
4814
4819
|
|
|
4815
4820
|
|
|
4816
|
-
declare namespace Calendar {
|
|
4817
|
-
var displayName: string;
|
|
4818
|
-
}
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
4821
|
declare module "@tiptap/core" {
|
|
4822
4822
|
interface Commands<ReturnType> {
|
|
4823
4823
|
moodTracker: {
|
|
@@ -4825,3 +4825,8 @@ declare module "@tiptap/core" {
|
|
|
4825
4825
|
};
|
|
4826
4826
|
}
|
|
4827
4827
|
}
|
|
4828
|
+
|
|
4829
|
+
|
|
4830
|
+
declare namespace Calendar {
|
|
4831
|
+
var displayName: string;
|
|
4832
|
+
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aM as Py, aN as Fy, aO as r0, aP as _a, aQ as hk, aR as pk, aS as mk, aT as Fc, aU as gk, aV as yk, aW as vk, aX as U, aY as By, aZ as bk, a_ as kk, a$ as wk, b0 as ks, b1 as Uo, b2 as Wl, b3 as xk, b4 as Ya, b5 as _k, b6 as Bc, b7 as Ck, b8 as Sk, b9 as Za, ba as Nk, bb as Lk, bc as Ek, bd as s0, be as Mk, bf as o0, bg as Tk, bh as $y, bi as zy, bj as Ok, bk as Ys, q as At, a as N, bl as nr, P as Ke, bm as ze, s as oe, j as nt, y as re, bn as vf, L as Nr, bo as $e, bp as ir, _ as jy, bq as De, w as _i, x as oi, br as Vy, bs as ql, bt as Ul, bu as Ak, n as bf, bv as Hy, f as Dk, bw as Ik, bx as Rk, by as Pk, b as a0, bz as Fk, bA as Bk, bB as Jt, ab as Kl, ay as l0, bC as pe, bD as Xr, bE as Wy, bF as Eh, bG as $k, c as kf, bH as Zs, bI as Mh, bJ as $t, bK as zk, bL as Tn, bM as jk, bN as qy, bO as Vk, bP as Bi, bQ as Hk, bR as Wk, bS as qk, bT as Uk, bU as Kk, bV as Uy, bW as Gk, bX as d0, bY as Jk, aI as Xs, S as Ei, t as Th, bZ as Yk, as as Zk, au as Ky, ap as Gy, av as wf, b_ as Jy, $ as Ca, r as rr, b$ as zr, c0 as Xk, c1 as Oh, a8 as Wn, c2 as Yt, c3 as xf, c4 as Ko, c5 as Qk, c6 as Yy, c7 as ew, h as _f, i as Cf, k as Sf, c8 as Ah, c9 as tw, ca as Zy, C as mn, cb as Xy, cc as nw, cd as iw, G as rw, ce as Qy, cf as gt, cg as Ku, ch as e4, a5 as Gu, ci as sw, cj as ow, ck as aw, cl as lw, cm as dw, aJ as Nf, a2 as Ju, F as Dh, aL as fw, cn as Ln, aK as cw, co as t4, cp as an, cq as n4, cr as hr, cs as uw, ct as hw, cu as qt, cv as Gl, cw as i4, cx as pw, ag as Lf, a6 as Ih, al as jr, cy as Rh, cz as Ph, cA as r4, cB as mw, a9 as gw, a1 as s4, cC as yw, cD as o4, cE as vw, cF as bw, cG as kw, D as a4, u as l4, cH as f0, cI as ww, cJ as Sa, cK as xw, cL as Ef, K as _w, m as Cw, cM as Sw, cN as Nw, cO as Lw, cP as Ew, cQ as Mw, cR as Tw, cS as Ow, cT as Aw, p as Dw, an as Iw, cU as d4, cV as Mf, v as Yu, cW as c0, Y as f4, cX as Na, cY as c4, cZ as u4, c_ as Rw, a0 as Qs, c$ as Pw, a3 as h4, I as Fw, d0 as ft, d1 as u0, d2 as Bw, d3 as $w, d4 as zw, d5 as $c, d6 as jw, d7 as Vw, aq as Hw, ax as Tf, z as Of, d8 as Af, d9 as Df, E as If, aw as p4, aa as Fh, da as Ww, aC as qw, db as Zu, dc as Uw, dd as Jl, ar as Yl, aD as Kw, de as Gw, aB as m4, df as Jw, aA as Yw, az as Zw, dg as Xw, dh as Qw, ac as ex, di as tx, dj as nx, dk as ix, a4 as rx, dl as La, dm as Bh, dn as $h, dp as Ea, dq as g4, dr as sx, ds as y4, dt as ox, aE as v4, du as b4, ad as k4, dv as ax, dw as lx, dx, H as fx, A as cx, B as ux, e as hx, g as px, V as mx, d as gx, dy as h0, dz as yx, dA as vx, dB as bx, dC as w4, dD as kx } from "./hooks-
|
|
2
|
-
import { J as XG, dF as QG, a7 as eJ, dE as tJ } from "./hooks-
|
|
1
|
+
import { aM as Py, aN as Fy, aO as r0, aP as _a, aQ as hk, aR as pk, aS as mk, aT as Fc, aU as gk, aV as yk, aW as vk, aX as U, aY as By, aZ as bk, a_ as kk, a$ as wk, b0 as ks, b1 as Uo, b2 as Wl, b3 as xk, b4 as Ya, b5 as _k, b6 as Bc, b7 as Ck, b8 as Sk, b9 as Za, ba as Nk, bb as Lk, bc as Ek, bd as s0, be as Mk, bf as o0, bg as Tk, bh as $y, bi as zy, bj as Ok, bk as Ys, q as At, a as N, bl as nr, P as Ke, bm as ze, s as oe, j as nt, y as re, bn as vf, L as Nr, bo as $e, bp as ir, _ as jy, bq as De, w as _i, x as oi, br as Vy, bs as ql, bt as Ul, bu as Ak, n as bf, bv as Hy, f as Dk, bw as Ik, bx as Rk, by as Pk, b as a0, bz as Fk, bA as Bk, bB as Jt, ab as Kl, ay as l0, bC as pe, bD as Xr, bE as Wy, bF as Eh, bG as $k, c as kf, bH as Zs, bI as Mh, bJ as $t, bK as zk, bL as Tn, bM as jk, bN as qy, bO as Vk, bP as Bi, bQ as Hk, bR as Wk, bS as qk, bT as Uk, bU as Kk, bV as Uy, bW as Gk, bX as d0, bY as Jk, aI as Xs, S as Ei, t as Th, bZ as Yk, as as Zk, au as Ky, ap as Gy, av as wf, b_ as Jy, $ as Ca, r as rr, b$ as zr, c0 as Xk, c1 as Oh, a8 as Wn, c2 as Yt, c3 as xf, c4 as Ko, c5 as Qk, c6 as Yy, c7 as ew, h as _f, i as Cf, k as Sf, c8 as Ah, c9 as tw, ca as Zy, C as mn, cb as Xy, cc as nw, cd as iw, G as rw, ce as Qy, cf as gt, cg as Ku, ch as e4, a5 as Gu, ci as sw, cj as ow, ck as aw, cl as lw, cm as dw, aJ as Nf, a2 as Ju, F as Dh, aL as fw, cn as Ln, aK as cw, co as t4, cp as an, cq as n4, cr as hr, cs as uw, ct as hw, cu as qt, cv as Gl, cw as i4, cx as pw, ag as Lf, a6 as Ih, al as jr, cy as Rh, cz as Ph, cA as r4, cB as mw, a9 as gw, a1 as s4, cC as yw, cD as o4, cE as vw, cF as bw, cG as kw, D as a4, u as l4, cH as f0, cI as ww, cJ as Sa, cK as xw, cL as Ef, K as _w, m as Cw, cM as Sw, cN as Nw, cO as Lw, cP as Ew, cQ as Mw, cR as Tw, cS as Ow, cT as Aw, p as Dw, an as Iw, cU as d4, cV as Mf, v as Yu, cW as c0, Y as f4, cX as Na, cY as c4, cZ as u4, c_ as Rw, a0 as Qs, c$ as Pw, a3 as h4, I as Fw, d0 as ft, d1 as u0, d2 as Bw, d3 as $w, d4 as zw, d5 as $c, d6 as jw, d7 as Vw, aq as Hw, ax as Tf, z as Of, d8 as Af, d9 as Df, E as If, aw as p4, aa as Fh, da as Ww, aC as qw, db as Zu, dc as Uw, dd as Jl, ar as Yl, aD as Kw, de as Gw, aB as m4, df as Jw, aA as Yw, az as Zw, dg as Xw, dh as Qw, ac as ex, di as tx, dj as nx, dk as ix, a4 as rx, dl as La, dm as Bh, dn as $h, dp as Ea, dq as g4, dr as sx, ds as y4, dt as ox, aE as v4, du as b4, ad as k4, dv as ax, dw as lx, dx, H as fx, A as cx, B as ux, e as hx, g as px, V as mx, d as gx, dy as h0, dz as yx, dA as vx, dB as bx, dC as w4, dD as kx } from "./hooks-CbFey1zm.js";
|
|
2
|
+
import { J as XG, dF as QG, a7 as eJ, dE as tJ } from "./hooks-CbFey1zm.js";
|
|
3
3
|
import { jsxs as b, jsx as d, Fragment as we } from "react/jsx-runtime";
|
|
4
4
|
import * as A from "react";
|
|
5
5
|
import J, { forwardRef as j, createContext as Rn, useRef as le, useState as $, useCallback as Ce, useContext as ln, useMemo as fe, useEffect as te, PureComponent as wx, useId as Qr, useLayoutEffect as zh, memo as Ma, Fragment as sr, useTransition as xx, isValidElement as _x, cloneElement as x4, useDebugValue as _4, createRef as Cx, createElement as Sx, version as p0, useImperativeHandle as Rf, Children as C4 } from "react";
|
|
@@ -19873,8 +19873,12 @@ const Ep = ({
|
|
|
19873
19873
|
}) => {
|
|
19874
19874
|
function c(p, m) {
|
|
19875
19875
|
return m.map((g) => {
|
|
19876
|
+
var w;
|
|
19877
|
+
if ((w = g.hide) != null && w.call(g, p))
|
|
19878
|
+
return null;
|
|
19876
19879
|
const y = g.render(p);
|
|
19877
|
-
if (y === void 0)
|
|
19880
|
+
if (y === void 0)
|
|
19881
|
+
return null;
|
|
19878
19882
|
const v = u(y);
|
|
19879
19883
|
return v ? v.type === "file" ? {
|
|
19880
19884
|
property: v
|
|
@@ -21074,7 +21078,10 @@ const GO = ({
|
|
|
21074
21078
|
}
|
|
21075
21079
|
)
|
|
21076
21080
|
] }),
|
|
21077
|
-
/* @__PURE__ */ d("div", { className: "flex flex-col items-start md:flex-row md:items-center [&>div]:justify-end", children: (r || []).
|
|
21081
|
+
/* @__PURE__ */ d("div", { className: "flex flex-col items-start md:flex-row md:items-center [&>div]:justify-end", children: (r || []).filter((v) => {
|
|
21082
|
+
var w;
|
|
21083
|
+
return !((w = v.hide) != null && w.call(v, e));
|
|
21084
|
+
}).map((v) => /* @__PURE__ */ d("div", { onClick: f, children: /* @__PURE__ */ d("div", { className: "flex items-center justify-center px-0 py-1 md:p-3 [&>span]:whitespace-nowrap", children: o(e, v) }) }, String(v.label))) }),
|
|
21078
21085
|
t.itemActions && /* @__PURE__ */ b(we, { children: [
|
|
21079
21086
|
/* @__PURE__ */ d(
|
|
21080
21087
|
n9,
|
package/dist/f0.d.ts
CHANGED
|
@@ -2762,11 +2762,6 @@ declare module "@tiptap/core" {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
|
|
2764
2764
|
|
|
2765
|
-
declare namespace Calendar {
|
|
2766
|
-
var displayName: string;
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
2765
|
declare module "@tiptap/core" {
|
|
2771
2766
|
interface Commands<ReturnType> {
|
|
2772
2767
|
moodTracker: {
|
|
@@ -2774,3 +2769,8 @@ declare module "@tiptap/core" {
|
|
|
2774
2769
|
};
|
|
2775
2770
|
}
|
|
2776
2771
|
}
|
|
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-
|
|
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-
|
|
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-CbFey1zm.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-CbFey1zm.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";
|
|
@@ -18892,7 +18892,10 @@ const khe = Ut({
|
|
|
18892
18892
|
const i = /* @__PURE__ */ b(
|
|
18893
18893
|
"div",
|
|
18894
18894
|
{
|
|
18895
|
-
className: le(
|
|
18895
|
+
className: le(
|
|
18896
|
+
"cursor-default font-medium transition hover:bg-f1-background-secondary-hover",
|
|
18897
|
+
khe({ size: t, type: n })
|
|
18898
|
+
),
|
|
18896
18899
|
children: t === "xs" ? /* @__PURE__ */ b(Mt, { icon: V3, size: "xs" }) : `+${e}`
|
|
18897
18900
|
}
|
|
18898
18901
|
);
|
|
@@ -44303,7 +44306,7 @@ const AH = (e, t) => {
|
|
|
44303
44306
|
);
|
|
44304
44307
|
}, x$e = (e) => {
|
|
44305
44308
|
const t = e.type ?? "person";
|
|
44306
|
-
return /* @__PURE__ */ b(
|
|
44309
|
+
return /* @__PURE__ */ b("div", { className: "pointer-events-auto w-full", children: /* @__PURE__ */ b(
|
|
44307
44310
|
qL,
|
|
44308
44311
|
{
|
|
44309
44312
|
type: t,
|
|
@@ -44311,7 +44314,7 @@ const AH = (e, t) => {
|
|
|
44311
44314
|
size: "xs",
|
|
44312
44315
|
max: e.max
|
|
44313
44316
|
}
|
|
44314
|
-
);
|
|
44317
|
+
) });
|
|
44315
44318
|
}, M$e = (e) => /* @__PURE__ */ ee("div", { className: "flex items-center gap-2", children: [
|
|
44316
44319
|
/* @__PURE__ */ b(
|
|
44317
44320
|
bo,
|