@factorialco/f0-react 1.323.0 → 1.324.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 +5 -0
- package/dist/experimental.js +5 -8
- package/dist/f0.d.ts +6 -1
- package/dist/f0.js +2 -2
- package/dist/{hooks-D-ClnmaM.js → hooks-B1ZF_2lS.js} +20447 -20396
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -2996,6 +2996,11 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
|
|
|
2996
2996
|
actions?: Action[];
|
|
2997
2997
|
/** Container element to render the portal content into */
|
|
2998
2998
|
portalContainer?: HTMLElement | null;
|
|
2999
|
+
/**
|
|
3000
|
+
* When true, renders the select as a static list without the input trigger.
|
|
3001
|
+
* Only displays the dropdown content with max height, border and scroll.
|
|
3002
|
+
*/
|
|
3003
|
+
asList?: boolean;
|
|
2999
3004
|
};
|
|
3000
3005
|
|
|
3001
3006
|
declare type F0SelectItemObject<T, R = unknown> = {
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bV as Om, bW as Mc, bX as aT, bY as lT, bZ as Fm, b_ as Ny, b$ as _s, aB as Yu, c0 as Ss, c1 as Qu, c2 as po, c3 as kf, aF as Ni, c4 as Qa, c5 as Dm, c6 as cT, e as gs, c7 as Nc, c8 as fT, c9 as dT, ca as uT, cb as hT, cc as Im, cd as Oy, ce as Fy, cf as pT, cg as mT, ch as gT, d as oa, ci as Rm, cj as wf, ck as vT, cl as Dy, cm as Pm, cn as Bm, co as yT, cp as xT, cq as e0, cr as Iy, aO as kT, cs as Hm, ct as wT, cu as bf, cv as bT, cw as CT, cx as _T, cy as ST, cz as ET, cA as vh, cB as LT, cC as TT, cD as AT, m as ye, cE as Ry, cF as MT, cG as Cf, l as Ha, cH as Oc, z as c1, cI as Py, x as ed, cJ as NT, n as yh, cK as OT, q as FT, r as td, i as DT, H as IT, J as RT, t as Yg, cL as PT, G as Qg, cM as BT, N as HT, cN as By, cO as Hy, cP as $T, cQ as VT, cR as zT, D as $y, cS as e5, cT as nd, cU as jT, cV as $m, cW as Vy, cX as jp, c as D, a as Oi, b as Ge, cY as zy, cZ as jy, c_ as Wy, c$ as Uy, d0 as qy, aq as $t, d1 as Gy, A as ut, F as Ve, d2 as Ky, d3 as Zy, B as Gt, d4 as Jy, d5 as Xy, aG as Ee, S as ge, d6 as yr, d7 as WT, d8 as UT, d9 as t0, da as Yy, C as qT, bx as GT, db as Li, aA as Uo, g as hn, dc as Vm, dd as Qy, de as KT, df as Fc, dg as ZT, dh as JT, di as XT, dj as YT, bR as bl, dk as vs, bk as ss, dl as QT, bg as eA, dm as f1, dn as tA, f as aa, dp as qo, dq as e7, dr as nA, ds as t5, dt as el, du as zm, dv as _f, dw as d1, dx as iA, dy as t7, dz as rA, dA as jm, dB as Dc, dC as Ti, dD as sA, dE as oA, dF as Ps, dG as xh, dH as aA, dI as ec, dJ as Ta, dK as lA, dL as n7, dM as cA, dN as fA, dO as dA, dP as uA, O as Yn, w as rn, U as hA, Z as pA, _ as mA, a0 as gA, a5 as n5, a6 as i5, a7 as vA, a8 as yA, dQ as xA, dR as kh, dS as $a, dT as Wm, dU as kA, dV as wA, dW as bA, be as CA, dX as _A, bS as Sf, bd as u1, dY as Wp, dZ as i7, h as Fi, d_ as n0, b8 as ys, d$ as SA, e0 as EA, e1 as r7, b6 as pr, as as Zi, e2 as LA, e3 as s7, e4 as o7, e5 as Cl, e6 as Um, bl as Ic, e7 as TA, e8 as a7, e9 as AA, ea as MA, ao as qm, ap as Gm, ar as Km, eb as l7, ec as NA, ed as OA, ee as FA, ef as DA, eg as c7, aK as IA, eh as RA, ei as Up, ej as f7, b3 as h1, ek as PA, el as BA, em as HA, en as $A, eo as VA, b0 as qp, ay as d7, bU as zA, bT as jA, ep as u7, az as no, eq as WA, er as UA, br as i0, b4 as Zm, aZ as Ef, es as h7, b7 as qA, a$ as p7, aX as m7, et as r0, eu as GA, ev as g7, ew as KA, a_ as _l, b1 as v7, aM as ZA, ex as JA, bz as XA, bA as YA, bH as s0, bF as Jm, aI as o0, ey as a0, ez as l0, aJ as c0, eA as Xm, bG as y7, bc as Ym, eB as QA, bL as eM, eC as Gp, eD as tM, eE as p1, eF as nM, bB as m1, bM as iM, eG as rM, bK as x7, eH as sM, bJ as oM, bI as aM, eI as lM, eJ as cM, eK as Qm, eL as fM, eM as dM, eN as uM, eO as hM, eP as pM, eQ as mM, eR as gM, eS as vM, u as k7, bn as yM, bE as xM, aC as kM, aD as wM, eT as bM, aE as CM, eU as _M, eV as SM, b2 as EM, eW as Lf, eX as e3, b9 as t3, eY as n3, eZ as Tf, e_ as LM, e$ as w7, f0 as TM, f1 as AM, bN as b7, f2 as C7, bp as _7, f3 as MM, f4 as NM, f5 as OM, aL as FM, aa as DM, ab as IM, ad as RM, ae as PM, af as BM, ac as HM, f6 as r5, f7 as $M, f8 as VM, K as zM, f9 as S7, fa as jM } from "./hooks-
|
|
2
|
-
import { aN as e3e, fc as t3e, fb as n3e, fh as i3e, fi as r3e, fe as s3e, fd as o3e, fg as a3e, b5 as l3e, bf as c3e, ff as f3e, bm as d3e } from "./hooks-
|
|
1
|
+
import { bV as Om, bW as Mc, bX as aT, bY as lT, bZ as Fm, b_ as Ny, b$ as _s, aB as Yu, c0 as Ss, c1 as Qu, c2 as po, c3 as kf, aF as Ni, c4 as Qa, c5 as Dm, c6 as cT, e as gs, c7 as Nc, c8 as fT, c9 as dT, ca as uT, cb as hT, cc as Im, cd as Oy, ce as Fy, cf as pT, cg as mT, ch as gT, d as oa, ci as Rm, cj as wf, ck as vT, cl as Dy, cm as Pm, cn as Bm, co as yT, cp as xT, cq as e0, cr as Iy, aO as kT, cs as Hm, ct as wT, cu as bf, cv as bT, cw as CT, cx as _T, cy as ST, cz as ET, cA as vh, cB as LT, cC as TT, cD as AT, m as ye, cE as Ry, cF as MT, cG as Cf, l as Ha, cH as Oc, z as c1, cI as Py, x as ed, cJ as NT, n as yh, cK as OT, q as FT, r as td, i as DT, H as IT, J as RT, t as Yg, cL as PT, G as Qg, cM as BT, N as HT, cN as By, cO as Hy, cP as $T, cQ as VT, cR as zT, D as $y, cS as e5, cT as nd, cU as jT, cV as $m, cW as Vy, cX as jp, c as D, a as Oi, b as Ge, cY as zy, cZ as jy, c_ as Wy, c$ as Uy, d0 as qy, aq as $t, d1 as Gy, A as ut, F as Ve, d2 as Ky, d3 as Zy, B as Gt, d4 as Jy, d5 as Xy, aG as Ee, S as ge, d6 as yr, d7 as WT, d8 as UT, d9 as t0, da as Yy, C as qT, bx as GT, db as Li, aA as Uo, g as hn, dc as Vm, dd as Qy, de as KT, df as Fc, dg as ZT, dh as JT, di as XT, dj as YT, bR as bl, dk as vs, bk as ss, dl as QT, bg as eA, dm as f1, dn as tA, f as aa, dp as qo, dq as e7, dr as nA, ds as t5, dt as el, du as zm, dv as _f, dw as d1, dx as iA, dy as t7, dz as rA, dA as jm, dB as Dc, dC as Ti, dD as sA, dE as oA, dF as Ps, dG as xh, dH as aA, dI as ec, dJ as Ta, dK as lA, dL as n7, dM as cA, dN as fA, dO as dA, dP as uA, O as Yn, w as rn, U as hA, Z as pA, _ as mA, a0 as gA, a5 as n5, a6 as i5, a7 as vA, a8 as yA, dQ as xA, dR as kh, dS as $a, dT as Wm, dU as kA, dV as wA, dW as bA, be as CA, dX as _A, bS as Sf, bd as u1, dY as Wp, dZ as i7, h as Fi, d_ as n0, b8 as ys, d$ as SA, e0 as EA, e1 as r7, b6 as pr, as as Zi, e2 as LA, e3 as s7, e4 as o7, e5 as Cl, e6 as Um, bl as Ic, e7 as TA, e8 as a7, e9 as AA, ea as MA, ao as qm, ap as Gm, ar as Km, eb as l7, ec as NA, ed as OA, ee as FA, ef as DA, eg as c7, aK as IA, eh as RA, ei as Up, ej as f7, b3 as h1, ek as PA, el as BA, em as HA, en as $A, eo as VA, b0 as qp, ay as d7, bU as zA, bT as jA, ep as u7, az as no, eq as WA, er as UA, br as i0, b4 as Zm, aZ as Ef, es as h7, b7 as qA, a$ as p7, aX as m7, et as r0, eu as GA, ev as g7, ew as KA, a_ as _l, b1 as v7, aM as ZA, ex as JA, bz as XA, bA as YA, bH as s0, bF as Jm, aI as o0, ey as a0, ez as l0, aJ as c0, eA as Xm, bG as y7, bc as Ym, eB as QA, bL as eM, eC as Gp, eD as tM, eE as p1, eF as nM, bB as m1, bM as iM, eG as rM, bK as x7, eH as sM, bJ as oM, bI as aM, eI as lM, eJ as cM, eK as Qm, eL as fM, eM as dM, eN as uM, eO as hM, eP as pM, eQ as mM, eR as gM, eS as vM, u as k7, bn as yM, bE as xM, aC as kM, aD as wM, eT as bM, aE as CM, eU as _M, eV as SM, b2 as EM, eW as Lf, eX as e3, b9 as t3, eY as n3, eZ as Tf, e_ as LM, e$ as w7, f0 as TM, f1 as AM, bN as b7, f2 as C7, bp as _7, f3 as MM, f4 as NM, f5 as OM, aL as FM, aa as DM, ab as IM, ad as RM, ae as PM, af as BM, ac as HM, f6 as r5, f7 as $M, f8 as VM, K as zM, f9 as S7, fa as jM } from "./hooks-B1ZF_2lS.js";
|
|
2
|
+
import { aN as e3e, fc as t3e, fb as n3e, fh as i3e, fi as r3e, fe as s3e, fd as o3e, fg as a3e, b5 as l3e, bf as c3e, ff as f3e, bm as d3e } from "./hooks-B1ZF_2lS.js";
|
|
3
3
|
import { jsxs as x, jsx as f, Fragment as Je } from "react/jsx-runtime";
|
|
4
4
|
import * as st from "react";
|
|
5
5
|
import ve, { forwardRef as V, useContext as vi, useState as J, useEffect as Le, createContext as yi, useRef as _e, PureComponent as WM, useTransition as UM, useLayoutEffect as la, useCallback as Qe, useMemo as we, useId as Sl, memo as Af, Fragment as Rr, isValidElement as E7, cloneElement as i3, createElement as Kp, useDebugValue as L7, createRef as qM, version as s5, useImperativeHandle as f0, Children as T7 } from "react";
|
|
@@ -33960,7 +33960,7 @@ const sme = ({ avatar: t, title: e, description: n, primaryAction: i, secondaryA
|
|
|
33960
33960
|
}), ome = ({ title: t, description: e, action: n, link: i, separator: r }) => {
|
|
33961
33961
|
const s = h7();
|
|
33962
33962
|
return x("div", {
|
|
33963
|
-
className: D("border-1 flex flex-col justify-between gap-4 border-dashed border-transparent px-6 pb-5 pt-5 first:pb-0 first:pt-0 md:flex-row md:gap-2", s === "standard" && "-mx-
|
|
33963
|
+
className: D("border-1 flex flex-col justify-between gap-4 border-dashed border-transparent px-6 pb-5 pt-5 first:pb-0 first:pt-0 md:flex-row md:gap-2", s === "standard" && "-mx-[23px]", r === "top" && "border-t-f1-border first:pt-5", r === "bottom" && "border-b-f1-border first:pb-5"),
|
|
33964
33964
|
children: [x("div", {
|
|
33965
33965
|
className: "flex grow flex-col gap-3",
|
|
33966
33966
|
children: [x("div", {
|
|
@@ -40189,9 +40189,9 @@ const ite = (t) => "date" in t, rte = {
|
|
|
40189
40189
|
return e && e.length > 1 || ht > 0 && !N?.hideSelector || U && Object.keys(U).length > 0 || Pt;
|
|
40190
40190
|
}, [e, N, U]), dt = we(() => pe || W || Xe || w && w.enabled, [pe, W, Xe, w]), it = we(() => tr ? d ? "top" : "bottom" : !1, [d, tr]), Rt = we(() => v ? dt ? "top" : "bottom" : !1, [v, dt]), Cn = we(() => it === "top" || Rt === "top", [it, Rt]), br = we(() => d || dt || Rt === "bottom" || it === "bottom", [d, dt, Rt, it]);
|
|
40191
40191
|
return x("div", {
|
|
40192
|
-
className: D("flex flex-col gap-4", Y === "standard" && "-mx-
|
|
40192
|
+
className: D("flex flex-col gap-4", Y === "standard" && "-mx-[23px]", o && "h-full flex-1"),
|
|
40193
40193
|
style: {
|
|
40194
|
-
width: Y === "standard" && !c ? "calc(100% +
|
|
40194
|
+
width: Y === "standard" && !c ? "calc(100% + 46px)" : "100%"
|
|
40195
40195
|
},
|
|
40196
40196
|
children: [Cn && x("div", {
|
|
40197
40197
|
className: "border-f1-border-primary flex gap-4 px-4",
|
|
@@ -71795,9 +71795,6 @@ const rpe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71795
71795
|
};
|
|
71796
71796
|
return x(o0, {
|
|
71797
71797
|
className: D(a ? "h-full" : "", "relative flex gap-3 border-f1-border-secondary"),
|
|
71798
|
-
style: {
|
|
71799
|
-
backgroundColor: "hsl(var(--white-40))"
|
|
71800
|
-
},
|
|
71801
71798
|
ref: l,
|
|
71802
71799
|
children: [e && f(a0, {
|
|
71803
71800
|
className: "-mr-1 -mt-1",
|
package/dist/f0.d.ts
CHANGED
|
@@ -1960,7 +1960,7 @@ declare const dialogPositions: readonly ["center", "left", "right", "fullscreen"
|
|
|
1960
1960
|
|
|
1961
1961
|
export declare type DialogWidth = (typeof dialogWidths)[number];
|
|
1962
1962
|
|
|
1963
|
-
declare const dialogWidths: readonly ["sm", "md", "lg"];
|
|
1963
|
+
declare const dialogWidths: readonly ["sm", "md", "lg", "xl"];
|
|
1964
1964
|
|
|
1965
1965
|
/**
|
|
1966
1966
|
* Remove a property from a union of objects.
|
|
@@ -2633,6 +2633,11 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
|
|
|
2633
2633
|
actions?: Action_2[];
|
|
2634
2634
|
/** Container element to render the portal content into */
|
|
2635
2635
|
portalContainer?: HTMLElement | null;
|
|
2636
|
+
/**
|
|
2637
|
+
* When true, renders the select as a static list without the input trigger.
|
|
2638
|
+
* Only displays the dropdown content with max height, border and scroll.
|
|
2639
|
+
*/
|
|
2640
|
+
asList?: boolean;
|
|
2636
2641
|
};
|
|
2637
2642
|
|
|
2638
2643
|
export declare type F0SelectItemObject<T, R = unknown> = {
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as En, C as Kr, c as U, a as Di, u as Dn, m as Ri, i as Rn, B as Si, O as Xr, p as Yr, w as Sn, S as xe, b as Nn, F as An, d as Vr, A as qr, D as Jr, e as Zr, f as we, g as Qr, h as me, j as qi, k as es, l as di, n as lt, o as ts, q as is, r as At, s as On, E as ns, t as zt, v as rs, x as ss, y as os, z as as, G as Xe, H as kn, I as ls, J as cs, K as ds, M as Ji, N as us, P as Tn, Q as hs, R as zn, X as Pn, Y as vi, T as fs, U as Mn, V as gs, W as ps, Z as ms, _ as vs, $ as ys, a0 as bs, a1 as xs, a2 as ws, a3 as Zi, a4 as Cs, a5 as ct, a6 as ui, a7 as _s, a8 as Es, a9 as Ds, aa as Rs, ab as Ss, ac as Ns, ad as As, ae as Os, af as ks, ag as Ts, ah as zs, ai as Qi, aj as Ps, ak as Ms, al as Ln, am as Ls, an as Mt, ao as In, ap as Hn, aq as Is, ar as Bn, as as Fn, at as Wn, au as Hs, av as Bs, aw as en, ax as Fs, ay as Gn, az as Ws, aA as Gs, aB as $s, aC as Us, aD as js, aE as Ks, aF as $n, aG as qe, aH as Un, aI as Xs, aJ as Ys, aK as tn, aL as Vs, aM as jn, aN as qs, aO as Js, aP as Zs, aQ as Qs, aR as eo, aS as to, aT as io, aU as no, aV as ro, aW as so, aX as oo, aY as ao } from "./hooks-
|
|
2
|
-
import { bw as ud, bJ as hd, bS as fd, aZ as gd, a_ as pd, a$ as md, b0 as vd, b1 as yd, b2 as bd, b3 as xd, b4 as wd, b6 as Cd, b7 as _d, b8 as Ed, b9 as Dd, bc as Rd, bd as Sd, be as Nd, bg as Ad, bh as Od, bi as kd, bO as Td, bk as zd, bl as Pd, bp as Md, bq as Ld, br as Id, bt as Hd, bu as Bd, bv as Fd, by as Wd, bn as Gd, bx as $d, bo as Ud, bs as jd, bP as Kd, ba as Xd, bb as Yd, bI as Vd, bD as qd, bG as Jd, bC as Zd, bT as Qd, bB as eu, bA as tu, b5 as iu, bf as nu, bm as ru, bz as su, bE as ou, bK as au, bL as lu, bM as cu, bU as du, bj as uu, bF as hu, bN as fu, bR as gu, bH as pu, bQ as mu } from "./hooks-
|
|
1
|
+
import { L as En, C as Kr, c as U, a as Di, u as Dn, m as Ri, i as Rn, B as Si, O as Xr, p as Yr, w as Sn, S as xe, b as Nn, F as An, d as Vr, A as qr, D as Jr, e as Zr, f as we, g as Qr, h as me, j as qi, k as es, l as di, n as lt, o as ts, q as is, r as At, s as On, E as ns, t as zt, v as rs, x as ss, y as os, z as as, G as Xe, H as kn, I as ls, J as cs, K as ds, M as Ji, N as us, P as Tn, Q as hs, R as zn, X as Pn, Y as vi, T as fs, U as Mn, V as gs, W as ps, Z as ms, _ as vs, $ as ys, a0 as bs, a1 as xs, a2 as ws, a3 as Zi, a4 as Cs, a5 as ct, a6 as ui, a7 as _s, a8 as Es, a9 as Ds, aa as Rs, ab as Ss, ac as Ns, ad as As, ae as Os, af as ks, ag as Ts, ah as zs, ai as Qi, aj as Ps, ak as Ms, al as Ln, am as Ls, an as Mt, ao as In, ap as Hn, aq as Is, ar as Bn, as as Fn, at as Wn, au as Hs, av as Bs, aw as en, ax as Fs, ay as Gn, az as Ws, aA as Gs, aB as $s, aC as Us, aD as js, aE as Ks, aF as $n, aG as qe, aH as Un, aI as Xs, aJ as Ys, aK as tn, aL as Vs, aM as jn, aN as qs, aO as Js, aP as Zs, aQ as Qs, aR as eo, aS as to, aT as io, aU as no, aV as ro, aW as so, aX as oo, aY as ao } from "./hooks-B1ZF_2lS.js";
|
|
2
|
+
import { bw as ud, bJ as hd, bS as fd, aZ as gd, a_ as pd, a$ as md, b0 as vd, b1 as yd, b2 as bd, b3 as xd, b4 as wd, b6 as Cd, b7 as _d, b8 as Ed, b9 as Dd, bc as Rd, bd as Sd, be as Nd, bg as Ad, bh as Od, bi as kd, bO as Td, bk as zd, bl as Pd, bp as Md, bq as Ld, br as Id, bt as Hd, bu as Bd, bv as Fd, by as Wd, bn as Gd, bx as $d, bo as Ud, bs as jd, bP as Kd, ba as Xd, bb as Yd, bI as Vd, bD as qd, bG as Jd, bC as Zd, bT as Qd, bB as eu, bA as tu, b5 as iu, bf as nu, bm as ru, bz as su, bE as ou, bK as au, bL as lu, bM as cu, bU as du, bj as uu, bF as hu, bN as fu, bR as gu, bH as pu, bQ as mu } from "./hooks-B1ZF_2lS.js";
|
|
3
3
|
import { jsx as f, jsxs as P, Fragment as qt } from "react/jsx-runtime";
|
|
4
4
|
import M, { forwardRef as oe, useRef as L, useImperativeHandle as lo, Children as Lt, createContext as Ae, useContext as _e, useState as B, useMemo as H, useEffect as I, useCallback as j, useLayoutEffect as yi, createElement as nn, isValidElement as Kn, Fragment as co, memo as uo, useReducer as ho, cloneElement as fo, PureComponent as go } from "react";
|
|
5
5
|
import { createPortal as Xn, unstable_batchedUpdates as Ot } from "react-dom";
|