@factorialco/f0-react 1.303.3 → 1.303.4
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 +9 -1
- package/dist/experimental.js +5 -2
- package/dist/f0.d.ts +9 -1
- package/dist/f0.js +2 -2
- package/dist/{hooks-gNB11mSA.js → hooks-BvQUUeUk.js} +9374 -9362
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -183,6 +183,10 @@ declare interface ActionCommonProps {
|
|
|
183
183
|
* The size of the action.
|
|
184
184
|
*/
|
|
185
185
|
size?: ActionSize;
|
|
186
|
+
/**
|
|
187
|
+
* The font size of the action.
|
|
188
|
+
*/
|
|
189
|
+
fontSize?: FontSize;
|
|
186
190
|
/**
|
|
187
191
|
* The render mode.
|
|
188
192
|
* @default "default"
|
|
@@ -1072,7 +1076,7 @@ declare type ButtonDropdownItem<T = string> = {
|
|
|
1072
1076
|
description?: string;
|
|
1073
1077
|
};
|
|
1074
1078
|
|
|
1075
|
-
declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "tooltip"> & DataAttributes & {
|
|
1079
|
+
declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "tooltip" | "fontSize"> & DataAttributes & {
|
|
1076
1080
|
/**
|
|
1077
1081
|
* The aria-label of the button if not provided title or label will be used.
|
|
1078
1082
|
*/
|
|
@@ -3254,6 +3258,10 @@ export declare type FlattenedItem = {
|
|
|
3254
3258
|
};
|
|
3255
3259
|
};
|
|
3256
3260
|
|
|
3261
|
+
declare type FontSize = (typeof fontSizes)[number];
|
|
3262
|
+
|
|
3263
|
+
declare const fontSizes: readonly ["sm", "md", "lg"];
|
|
3264
|
+
|
|
3257
3265
|
export declare function Form<Schema extends SchemaType, FormData extends InferSchema<Schema>>({ onSubmit, children, ...form }: {
|
|
3258
3266
|
children: React.ReactNode;
|
|
3259
3267
|
} & FormType<Schema, FormData>): JSX_2.Element;
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bK as Zm, bL as Hc, bM as hA, bN as pA, bO as Jm, bP as g7, bQ as Ls, av as l0, bR as Wr, bS as c0, bT as Ts, bU as Lf, az as ni, bV as sl, bW as Xm, bX as mA, e as ks, bY as $c, bZ as gA, b_ as vA, b$ as yA, c0 as xA, c1 as Ym, c2 as v7, c3 as y7, c4 as kA, c5 as wA, c6 as bA, d as da, c7 as Qm, c8 as Tf, c9 as CA, ca as x7, cb as e3, cc as t3, cd as _A, ce as f0, aI as k7, cf as n3, cg as SA, ch as w7, ci as b7, cj as A5, ck as Af, cl as EA, cm as LA, cn as TA, co as Th, cp as AA, cq as NA, cr as MA, m as be, cs as C7, ct as OA, cu as Nf, l as qa, cv as Vc, z as yd, cw as _7, x as l1, cx as FA, n as Ah, cy as DA, q as IA, r as c1, i as RA, H as PA, J as BA, t as N5, cz as HA, G as M5, cA as $A, N as VA, cB as S7, cC as E7, cD as zA, aA as Le, F as We, c as D, cE as Mf, cF as i3, cG as r3, cH as qn, cI as $n, cJ as Of, cK as Nl, cL as xd, bG as Ml, cM as us, b as Ye, cN as ua, A as ht, b8 as cs, B as Ft, cO as jA, cP as s3, cQ as O5, cR as WA, cS as UA, cT as qA, aw as L7, ax as T7, cU as A7, cV as N7, cW as To, cX as GA, cY as F5, cZ as KA, c_ as ZA, c$ as JA, w as Kt, a as ai, S as ye, d0, d1 as bi, d2 as o3, ao as Mi, ap as XA, d3 as M7, D as a3, b9 as ol, d4 as e2, d5 as O7, d6 as F7, d7 as D7, d8 as I7, d9 as R7, am as zt, da as P7, db as B7, dc as H7, dd as $7, de as V7, df as YA, dg as QA, dh as u0, di as z7, C as eN, bm as tN, dj as Oi, au as Jo, g as hn, as as l3, ay as t2, dk as D5, dl as kd, dm as nN, f as ha, dn as Xo, dp as j7, dq as iN, dr as I5, ds as al, dt as c3, du as Ff, dv as wd, dw as rN, dx as W7, dy as sN, dz as f3, dA as zc, dB as Fi, dC as oN, dD as aN, dE as $s, dF as Nh, dG as lN, dH as cc, dI as Da, dJ as cN, dK as U7, dL as fN, dM as dN, dN as uN, dO as hN, O as ii, U as pN, Z as mN, _ as gN, a0 as vN, a5 as R5, a6 as P5, a7 as yN, a8 as xN, dP as kN, dQ as Mh, dR as d3, dS as wN, dT as bN, dU as CN, b6 as _N, dV as SN, bH as Df, b5 as bd, dW as n2, dX as q7, h as Ri, dY as h0, b2 as ws, dZ as EN, d_ as LN, d$ as G7, b0 as yr, e0 as TN, e1 as K7, e2 as Z7, e3 as Ol, e4 as u3, e5 as AN, e6 as J7, e7 as NN, e8 as MN, ak as h3, al as p3, an as m3, e9 as X7, ea as ON, eb as FN, ec as DN, ed as Y7, aE as IN, ee as i2, ef as Q7, aZ as Cd, eg as RN, eh as PN, ei as BN, ej as HN, ek as $N, aW as r2, bJ as VN, bI as zN, el as ex, at as ro, em as jN, en as WN, bf as p0, a_ as g3, aT as If, eo as tx, b1 as UN, aV as nx, aR as ix, ep as qN, eq as rx, er as GN, aU as Fl, aX as sx, aG as KN, es as ZN, bo as JN, bp as XN, bw as m0, bu as v3, aC as g0, et as v0, eu as y0, aD as x0, ev as y3, bv as ox, b4 as x3, ew as YN, bA as QN, ex as s2, ey as eM, ez as _d, eA as tM, bq as Sd, bB as nM, eB as iM, bz as ax, eC as rM, by as sM, bx as oM, eD as aM, eE as lM, eF as k3, eG as cM, eH as fM, eI as dM, eJ as uM, eK as hM, eL as pM, eM as mM, eN as gM, u as lx, bb as vM, bt as yM, eO as xM, eP as kM, eQ as wM, aY as bM, eR as Rf, eS as w3, b3, eT as C3, eU as Pf, eV as CM, eW as cx, eX as _M, eY as SM, bC as fx, eZ as dx, bc as ux, e_ as EM, e$ as LM, f0 as TM, aF as AM, aa as NM, ab as MM, ad as OM, ae as FM, af as DM, ac as IM, f1 as B5, f2 as RM, f3 as PM, K as BM, f4 as hx, f5 as HM } from "./hooks-
|
|
2
|
-
import { aH as j4e, f8 as W4e, f9 as U4e, f7 as q4e, a$ as G4e, b7 as K4e, f6 as Z4e, ba as J4e } from "./hooks-
|
|
1
|
+
import { bK as Zm, bL as Hc, bM as hA, bN as pA, bO as Jm, bP as g7, bQ as Ls, av as l0, bR as Wr, bS as c0, bT as Ts, bU as Lf, az as ni, bV as sl, bW as Xm, bX as mA, e as ks, bY as $c, bZ as gA, b_ as vA, b$ as yA, c0 as xA, c1 as Ym, c2 as v7, c3 as y7, c4 as kA, c5 as wA, c6 as bA, d as da, c7 as Qm, c8 as Tf, c9 as CA, ca as x7, cb as e3, cc as t3, cd as _A, ce as f0, aI as k7, cf as n3, cg as SA, ch as w7, ci as b7, cj as A5, ck as Af, cl as EA, cm as LA, cn as TA, co as Th, cp as AA, cq as NA, cr as MA, m as be, cs as C7, ct as OA, cu as Nf, l as qa, cv as Vc, z as yd, cw as _7, x as l1, cx as FA, n as Ah, cy as DA, q as IA, r as c1, i as RA, H as PA, J as BA, t as N5, cz as HA, G as M5, cA as $A, N as VA, cB as S7, cC as E7, cD as zA, aA as Le, F as We, c as D, cE as Mf, cF as i3, cG as r3, cH as qn, cI as $n, cJ as Of, cK as Nl, cL as xd, bG as Ml, cM as us, b as Ye, cN as ua, A as ht, b8 as cs, B as Ft, cO as jA, cP as s3, cQ as O5, cR as WA, cS as UA, cT as qA, aw as L7, ax as T7, cU as A7, cV as N7, cW as To, cX as GA, cY as F5, cZ as KA, c_ as ZA, c$ as JA, w as Kt, a as ai, S as ye, d0, d1 as bi, d2 as o3, ao as Mi, ap as XA, d3 as M7, D as a3, b9 as ol, d4 as e2, d5 as O7, d6 as F7, d7 as D7, d8 as I7, d9 as R7, am as zt, da as P7, db as B7, dc as H7, dd as $7, de as V7, df as YA, dg as QA, dh as u0, di as z7, C as eN, bm as tN, dj as Oi, au as Jo, g as hn, as as l3, ay as t2, dk as D5, dl as kd, dm as nN, f as ha, dn as Xo, dp as j7, dq as iN, dr as I5, ds as al, dt as c3, du as Ff, dv as wd, dw as rN, dx as W7, dy as sN, dz as f3, dA as zc, dB as Fi, dC as oN, dD as aN, dE as $s, dF as Nh, dG as lN, dH as cc, dI as Da, dJ as cN, dK as U7, dL as fN, dM as dN, dN as uN, dO as hN, O as ii, U as pN, Z as mN, _ as gN, a0 as vN, a5 as R5, a6 as P5, a7 as yN, a8 as xN, dP as kN, dQ as Mh, dR as d3, dS as wN, dT as bN, dU as CN, b6 as _N, dV as SN, bH as Df, b5 as bd, dW as n2, dX as q7, h as Ri, dY as h0, b2 as ws, dZ as EN, d_ as LN, d$ as G7, b0 as yr, e0 as TN, e1 as K7, e2 as Z7, e3 as Ol, e4 as u3, e5 as AN, e6 as J7, e7 as NN, e8 as MN, ak as h3, al as p3, an as m3, e9 as X7, ea as ON, eb as FN, ec as DN, ed as Y7, aE as IN, ee as i2, ef as Q7, aZ as Cd, eg as RN, eh as PN, ei as BN, ej as HN, ek as $N, aW as r2, bJ as VN, bI as zN, el as ex, at as ro, em as jN, en as WN, bf as p0, a_ as g3, aT as If, eo as tx, b1 as UN, aV as nx, aR as ix, ep as qN, eq as rx, er as GN, aU as Fl, aX as sx, aG as KN, es as ZN, bo as JN, bp as XN, bw as m0, bu as v3, aC as g0, et as v0, eu as y0, aD as x0, ev as y3, bv as ox, b4 as x3, ew as YN, bA as QN, ex as s2, ey as eM, ez as _d, eA as tM, bq as Sd, bB as nM, eB as iM, bz as ax, eC as rM, by as sM, bx as oM, eD as aM, eE as lM, eF as k3, eG as cM, eH as fM, eI as dM, eJ as uM, eK as hM, eL as pM, eM as mM, eN as gM, u as lx, bb as vM, bt as yM, eO as xM, eP as kM, eQ as wM, aY as bM, eR as Rf, eS as w3, b3, eT as C3, eU as Pf, eV as CM, eW as cx, eX as _M, eY as SM, bC as fx, eZ as dx, bc as ux, e_ as EM, e$ as LM, f0 as TM, aF as AM, aa as NM, ab as MM, ad as OM, ae as FM, af as DM, ac as IM, f1 as B5, f2 as RM, f3 as PM, K as BM, f4 as hx, f5 as HM } from "./hooks-BvQUUeUk.js";
|
|
2
|
+
import { aH as j4e, f8 as W4e, f9 as U4e, f7 as q4e, a$ as G4e, b7 as K4e, f6 as Z4e, ba as J4e } from "./hooks-BvQUUeUk.js";
|
|
3
3
|
import { jsxs as x, jsx as f, Fragment as Ke } from "react/jsx-runtime";
|
|
4
4
|
import { useCopilotChatInternal as Bf, useCopilotContext as $M, useCopilotAction as H5, CopilotKit as VM } from "@copilotkit/react-core";
|
|
5
5
|
import { Markdown as zM, useChatContext as jM, CopilotSidebar as WM } from "@copilotkit/react-ui";
|
|
@@ -40980,6 +40980,7 @@ const Y_ = (t, e, n) => {
|
|
|
40980
40980
|
disabled: !(C != null && C.prev),
|
|
40981
40981
|
onClick: () => v((C == null ? void 0 : C.prev) ?? !1)
|
|
40982
40982
|
}), f(Ft, {
|
|
40983
|
+
fontSize: "md",
|
|
40983
40984
|
size: "sm",
|
|
40984
40985
|
variant: "ghost",
|
|
40985
40986
|
label: g,
|
|
@@ -40995,12 +40996,14 @@ const Y_ = (t, e, n) => {
|
|
|
40995
40996
|
label: "Next",
|
|
40996
40997
|
hideLabel: !0,
|
|
40997
40998
|
size: "sm",
|
|
40999
|
+
fontSize: "md",
|
|
40998
41000
|
disabled: !(C != null && C.next),
|
|
40999
41001
|
onClick: () => v((C == null ? void 0 : C.next) ?? !1)
|
|
41000
41002
|
})]
|
|
41001
41003
|
}), !d && w && f("div", {
|
|
41002
41004
|
className: "border-l-solid flex-shrink-0 border-[#f00]",
|
|
41003
41005
|
children: f(Le, {
|
|
41006
|
+
fontSize: "md",
|
|
41004
41007
|
size: "sm",
|
|
41005
41008
|
variant: "ghost",
|
|
41006
41009
|
label: (E = p.date.granularities[(t == null ? void 0 : t.granularity) ?? "day"]) == null ? void 0 : E.currentDate,
|
package/dist/f0.d.ts
CHANGED
|
@@ -173,6 +173,10 @@ declare interface ActionCommonProps {
|
|
|
173
173
|
* The size of the action.
|
|
174
174
|
*/
|
|
175
175
|
size?: ActionSize;
|
|
176
|
+
/**
|
|
177
|
+
* The font size of the action.
|
|
178
|
+
*/
|
|
179
|
+
fontSize?: FontSize;
|
|
176
180
|
/**
|
|
177
181
|
* The render mode.
|
|
178
182
|
* @default "default"
|
|
@@ -625,7 +629,7 @@ export declare type ButtonDropdownVariant = (typeof buttonDropdownVariants)[numb
|
|
|
625
629
|
|
|
626
630
|
export declare const buttonDropdownVariants: readonly ["default", "outline", "neutral"];
|
|
627
631
|
|
|
628
|
-
declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "tooltip"> & DataAttributes & {
|
|
632
|
+
declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "tooltip" | "fontSize"> & DataAttributes & {
|
|
629
633
|
/**
|
|
630
634
|
* The aria-label of the button if not provided title or label will be used.
|
|
631
635
|
*/
|
|
@@ -2657,6 +2661,10 @@ export declare type FlagAvatarVariant = Extract<AvatarVariant, {
|
|
|
2657
2661
|
type: "flag";
|
|
2658
2662
|
}>;
|
|
2659
2663
|
|
|
2664
|
+
declare type FontSize = (typeof fontSizes)[number];
|
|
2665
|
+
|
|
2666
|
+
declare const fontSizes: readonly ["sm", "md", "lg"];
|
|
2667
|
+
|
|
2660
2668
|
export declare const getAnimationVariants: (options?: AnimationVariantsOptions) => {
|
|
2661
2669
|
hidden: {
|
|
2662
2670
|
opacity: number;
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Cn, C as Gr, c as W, a as Di, u as _n, m as Ri, i as En, B as Si, O as Wr, p as $r, w as Ur, S as Fe, b as jr, F as Dn, d as Kr, A as Xr, D as Yr, e as Vr, f as De, g as qr, h as pe, j as qi, k as Jr, l as di, n as lt, o as Zr, q as Qr, r as Ot, s as Rn, E as es, t as zt, v as ts, x as is, y as ns, z as rs, G as Xe, H as Sn, I as ss, J as os, K as as, M as Ji, N as ls, P as Nn, Q as cs, R as On, X as An, Y as vi, T as ds, U as Tn, V as us, W as hs, Z as fs, _ as gs, $ as ps, a0 as ms, a1 as vs, a2 as ys, a3 as Zi, a4 as bs, a5 as ct, a6 as ui, a7 as xs, a8 as ws, a9 as Cs, aa as _s, ab as Es, ac as Ds, ad as Rs, ae as Ss, af as Ns, ag as Os, ah as kn, ai as As, aj as Mt, ak as zn, al as Pn, am as Ts, an as Mn, ao as Ln, ap as In, aq as ks, ar as zs, as as Hn, at as Ps, au as Ms, av as Ls, aw as Is, ax as Hs, ay as Bs, az as Bn, aA as qe, aB as Fn, aC as Fs, aD as Gs, aE as Qi, aF as Ws, aG as Gn, aH as $s, aI as Us, aJ as js, aK as Ks, aL as Xs, aM as Ys, aN as Vs, aO as qs, aP as Js, aQ as Zs, aR as Qs, aS as eo } from "./hooks-
|
|
2
|
-
import { bl as Yc, by as Vc, bH as qc, aT as Jc, aU as Zc, aV as Qc, aW as ed, aX as td, aY as id, aZ as nd, a_ as rd, b0 as sd, b1 as od, b2 as ad, b3 as ld, b4 as cd, b5 as dd, b6 as ud, bD as hd, b8 as fd, b9 as gd, bc as pd, bd as md, be as vd, bf as yd, bi as bd, bj as xd, bk as wd, bn as Cd, bb as _d, bm as Ed, bh as Dd, bE as Rd, bx as Sd, bs as Nd, bv as Od, br as Ad, bI as Td, bq as kd, bp as zd, a$ as Pd, b7 as Md, ba as Ld, bg as Id, bo as Hd, bt as Bd, bz as Fd, bA as Gd, bB as Wd, bJ as $d, bu as Ud, bC as jd, bG as Kd, bw as Xd, bF as Yd } from "./hooks-
|
|
1
|
+
import { L as Cn, C as Gr, c as W, a as Di, u as _n, m as Ri, i as En, B as Si, O as Wr, p as $r, w as Ur, S as Fe, b as jr, F as Dn, d as Kr, A as Xr, D as Yr, e as Vr, f as De, g as qr, h as pe, j as qi, k as Jr, l as di, n as lt, o as Zr, q as Qr, r as Ot, s as Rn, E as es, t as zt, v as ts, x as is, y as ns, z as rs, G as Xe, H as Sn, I as ss, J as os, K as as, M as Ji, N as ls, P as Nn, Q as cs, R as On, X as An, Y as vi, T as ds, U as Tn, V as us, W as hs, Z as fs, _ as gs, $ as ps, a0 as ms, a1 as vs, a2 as ys, a3 as Zi, a4 as bs, a5 as ct, a6 as ui, a7 as xs, a8 as ws, a9 as Cs, aa as _s, ab as Es, ac as Ds, ad as Rs, ae as Ss, af as Ns, ag as Os, ah as kn, ai as As, aj as Mt, ak as zn, al as Pn, am as Ts, an as Mn, ao as Ln, ap as In, aq as ks, ar as zs, as as Hn, at as Ps, au as Ms, av as Ls, aw as Is, ax as Hs, ay as Bs, az as Bn, aA as qe, aB as Fn, aC as Fs, aD as Gs, aE as Qi, aF as Ws, aG as Gn, aH as $s, aI as Us, aJ as js, aK as Ks, aL as Xs, aM as Ys, aN as Vs, aO as qs, aP as Js, aQ as Zs, aR as Qs, aS as eo } from "./hooks-BvQUUeUk.js";
|
|
2
|
+
import { bl as Yc, by as Vc, bH as qc, aT as Jc, aU as Zc, aV as Qc, aW as ed, aX as td, aY as id, aZ as nd, a_ as rd, b0 as sd, b1 as od, b2 as ad, b3 as ld, b4 as cd, b5 as dd, b6 as ud, bD as hd, b8 as fd, b9 as gd, bc as pd, bd as md, be as vd, bf as yd, bi as bd, bj as xd, bk as wd, bn as Cd, bb as _d, bm as Ed, bh as Dd, bE as Rd, bx as Sd, bs as Nd, bv as Od, br as Ad, bI as Td, bq as kd, bp as zd, a$ as Pd, b7 as Md, ba as Ld, bg as Id, bo as Hd, bt as Bd, bz as Fd, bA as Gd, bB as Wd, bJ as $d, bu as Ud, bC as jd, bG as Kd, bw as Xd, bF as Yd } from "./hooks-BvQUUeUk.js";
|
|
3
3
|
import { jsx as g, jsxs as z, Fragment as qt } from "react/jsx-runtime";
|
|
4
4
|
import P, { forwardRef as oe, useRef as L, useImperativeHandle as to, Children as Lt, createContext as Se, useContext as xe, useState as B, useMemo as H, useEffect as M, useCallback as $, useLayoutEffect as yi, createElement as en, isValidElement as Wn, Fragment as io, memo as no, useReducer as ro, cloneElement as so, PureComponent as oo } from "react";
|
|
5
5
|
import { createPortal as $n, unstable_batchedUpdates as At } from "react-dom";
|