@factorialco/f0-react 2.48.0 → 2.50.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/{F0CanvasPanel-D70oNR2G.js → F0CanvasPanel-BhJlROnj.js} +55 -44
- package/dist/ai.js +2 -2
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +56 -0
- package/dist/f0.js +14969 -14325
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-DjftH8dD.js → useChatHistory-BStmxDZN.js} +1 -1
- package/dist/{useDataCollectionSource-CDB1LCNu.js → useDataCollectionSource-wGCHvK_8.js} +1 -1
- package/package.json +2 -1
|
@@ -122739,21 +122739,23 @@ const Eq1 = ({ text: e }) => /* @__PURE__ */ a(
|
|
|
122739
122739
|
label: e,
|
|
122740
122740
|
required: t,
|
|
122741
122741
|
htmlFor: n,
|
|
122742
|
-
|
|
122743
|
-
|
|
122744
|
-
|
|
122742
|
+
id: r,
|
|
122743
|
+
className: o,
|
|
122744
|
+
icon: i,
|
|
122745
|
+
disabled: s
|
|
122745
122746
|
}) => /* @__PURE__ */ P(
|
|
122746
122747
|
"label",
|
|
122747
122748
|
{
|
|
122749
|
+
id: r,
|
|
122748
122750
|
className: r2(
|
|
122749
|
-
|
|
122751
|
+
o,
|
|
122750
122752
|
"text-md flex max-w-full gap-1 font-medium text-f1-foreground-secondary"
|
|
122751
122753
|
),
|
|
122752
122754
|
htmlFor: n,
|
|
122753
122755
|
"aria-label": e,
|
|
122754
|
-
"aria-disabled":
|
|
122756
|
+
"aria-disabled": s,
|
|
122755
122757
|
children: [
|
|
122756
|
-
|
|
122758
|
+
i && /* @__PURE__ */ a(g1, { icon: i, size: "sm" }),
|
|
122757
122759
|
/* @__PURE__ */ a(Ce, { className: "shrink-1 min-w-0", children: e }),
|
|
122758
122760
|
t && /* @__PURE__ */ a("span", { className: "text-f1-foreground-critical", "aria-hidden": "true", children: "*" })
|
|
122759
122761
|
]
|
|
@@ -140319,7 +140321,7 @@ export {
|
|
|
140319
140321
|
BL as fy,
|
|
140320
140322
|
wU as fz,
|
|
140321
140323
|
Ba as g,
|
|
140322
|
-
|
|
140324
|
+
M33 as g$,
|
|
140323
140325
|
Nn as g0,
|
|
140324
140326
|
Dn as g1,
|
|
140325
140327
|
Pj as g2,
|
|
@@ -140331,32 +140333,32 @@ export {
|
|
|
140331
140333
|
uG1 as g8,
|
|
140332
140334
|
gG1 as g9,
|
|
140333
140335
|
qU1 as gA,
|
|
140334
|
-
|
|
140335
|
-
|
|
140336
|
-
|
|
140337
|
-
|
|
140338
|
-
|
|
140339
|
-
|
|
140340
|
-
|
|
140341
|
-
|
|
140342
|
-
|
|
140343
|
-
|
|
140344
|
-
|
|
140345
|
-
|
|
140346
|
-
|
|
140347
|
-
|
|
140348
|
-
|
|
140349
|
-
|
|
140350
|
-
|
|
140351
|
-
|
|
140352
|
-
|
|
140353
|
-
|
|
140354
|
-
|
|
140355
|
-
|
|
140356
|
-
|
|
140357
|
-
|
|
140358
|
-
|
|
140359
|
-
|
|
140336
|
+
B6 as gB,
|
|
140337
|
+
HM as gC,
|
|
140338
|
+
r1 as gD,
|
|
140339
|
+
u3 as gE,
|
|
140340
|
+
V3 as gF,
|
|
140341
|
+
VM as gG,
|
|
140342
|
+
JR as gH,
|
|
140343
|
+
eB as gI,
|
|
140344
|
+
B22 as gJ,
|
|
140345
|
+
UU as gK,
|
|
140346
|
+
M8 as gL,
|
|
140347
|
+
W33 as gM,
|
|
140348
|
+
xj as gN,
|
|
140349
|
+
Ir as gO,
|
|
140350
|
+
at as gP,
|
|
140351
|
+
U9 as gQ,
|
|
140352
|
+
d6 as gR,
|
|
140353
|
+
p41 as gS,
|
|
140354
|
+
VJ as gT,
|
|
140355
|
+
x23 as gU,
|
|
140356
|
+
p33 as gV,
|
|
140357
|
+
z13 as gW,
|
|
140358
|
+
M23 as gX,
|
|
140359
|
+
K13 as gY,
|
|
140360
|
+
TW as gZ,
|
|
140361
|
+
x33 as g_,
|
|
140360
140362
|
A33 as ga,
|
|
140361
140363
|
k41 as gb,
|
|
140362
140364
|
lG1 as gc,
|
|
@@ -140384,17 +140386,26 @@ export {
|
|
|
140384
140386
|
Rn as gy,
|
|
140385
140387
|
m32 as gz,
|
|
140386
140388
|
z22 as h,
|
|
140387
|
-
|
|
140388
|
-
|
|
140389
|
-
|
|
140390
|
-
|
|
140391
|
-
|
|
140392
|
-
|
|
140393
|
-
|
|
140394
|
-
|
|
140395
|
-
|
|
140396
|
-
|
|
140397
|
-
|
|
140389
|
+
k33 as h0,
|
|
140390
|
+
RR as h1,
|
|
140391
|
+
N22 as h2,
|
|
140392
|
+
sY1 as h3,
|
|
140393
|
+
$33 as h4,
|
|
140394
|
+
B33 as h5,
|
|
140395
|
+
G33 as h6,
|
|
140396
|
+
U33 as h7,
|
|
140397
|
+
$e1 as h8,
|
|
140398
|
+
RJ as h9,
|
|
140399
|
+
DJ as ha,
|
|
140400
|
+
rJ as hb,
|
|
140401
|
+
De1 as hc,
|
|
140402
|
+
ma as hd,
|
|
140403
|
+
OL as he,
|
|
140404
|
+
cG1 as hf,
|
|
140405
|
+
S33 as hg,
|
|
140406
|
+
T33 as hh,
|
|
140407
|
+
W13 as hi,
|
|
140408
|
+
k23 as hj,
|
|
140398
140409
|
Ua as i,
|
|
140399
140410
|
Dq1 as j,
|
|
140400
140411
|
e12 as k,
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-
|
|
1
|
+
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-BhJlROnj.js";
|
|
2
2
|
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-
|
|
3
|
+
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-BStmxDZN.js";
|
|
4
4
|
export {
|
|
5
5
|
c as AiChatTranslationsProvider,
|
|
6
6
|
I as ChatSpinner,
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as gn, aG as it, aH as bn, aI as ar, aJ as rr, aK as lr, aL as ir, aM as sr, aN as Ue, aO as bt, aP as st, aQ as xn, aR as or, aS as vn, aT as cr, aU as dr, aV as ur, aW as Ee, aX as fr, aY as mr, aZ as Te, a_ as Lt, a$ as ot, b0 as hr, b1 as pr, a as gr, b as br, b2 as wn, b3 as xr, f as vr, F as wr, b4 as yr, b5 as yn, b6 as Nr, b7 as Nn, b8 as Cr, b9 as kr, ba as Sr, bb as Ir, bc as Fr, bd as Ar, be as Lr, bf as Er, bg as _r, bh as Cn, bi as ue, bj as xt, bk as vt, bl as wt, bm as kn, bn as yt, bo as Sn, bp as In, bq as Or, br as Dr, bs as Tr, bt as zr, bu as Pr, bv as Br, bw as Rr, bx as $r, by as Et, bz as Wr, bA as Mr, bB as _t, bC as Ot, bD as Dt, bE as jr, bF as Vr, bG as Gr, bH as Hr, bI as Fn, bJ as Ur, bK as Kr } from "./F0CanvasPanel-
|
|
2
|
-
import { bW as Lc, bV as Ec, c6 as _c, bS as Oc, bT as Dc, bL as Tc, bM as zc, bN as Pc, c7 as Bc, bU as Rc, c2 as $c, c3 as Wc, bO as Mc, bY as jc, bX as Vc, bP as Gc, bQ as Hc, c4 as Uc, c8 as Kc, c5 as qc, c1 as Yc, b_ as Zc, c0 as Xc, bZ as Jc, bR as Qc, b$ as ed } from "./F0CanvasPanel-
|
|
1
|
+
import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as gn, aG as it, aH as bn, aI as ar, aJ as rr, aK as lr, aL as ir, aM as sr, aN as Ue, aO as bt, aP as st, aQ as xn, aR as or, aS as vn, aT as cr, aU as dr, aV as ur, aW as Ee, aX as fr, aY as mr, aZ as Te, a_ as Lt, a$ as ot, b0 as hr, b1 as pr, a as gr, b as br, b2 as wn, b3 as xr, f as vr, F as wr, b4 as yr, b5 as yn, b6 as Nr, b7 as Nn, b8 as Cr, b9 as kr, ba as Sr, bb as Ir, bc as Fr, bd as Ar, be as Lr, bf as Er, bg as _r, bh as Cn, bi as ue, bj as xt, bk as vt, bl as wt, bm as kn, bn as yt, bo as Sn, bp as In, bq as Or, br as Dr, bs as Tr, bt as zr, bu as Pr, bv as Br, bw as Rr, bx as $r, by as Et, bz as Wr, bA as Mr, bB as _t, bC as Ot, bD as Dt, bE as jr, bF as Vr, bG as Gr, bH as Hr, bI as Fn, bJ as Ur, bK as Kr } from "./F0CanvasPanel-BhJlROnj.js";
|
|
2
|
+
import { bW as Lc, bV as Ec, c6 as _c, bS as Oc, bT as Dc, bL as Tc, bM as zc, bN as Pc, c7 as Bc, bU as Rc, c2 as $c, c3 as Wc, bO as Mc, bY as jc, bX as Vc, bP as Gc, bQ as Hc, c4 as Uc, c8 as Kc, c5 as qc, c1 as Yc, b_ as Zc, c0 as Xc, bZ as Jc, bR as Qc, b$ as ed } from "./F0CanvasPanel-BhJlROnj.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import se, { forwardRef as j, useRef as G, useTransition as qr, useState as _, useLayoutEffect as An, useId as ct, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Yr, isValidElement as Zr, cloneElement as Ln, Children as En } from "react";
|
|
5
|
-
import { C as Xr, P as Jr, a as _n, M as Qr, R as Tt, b as On, u as el, c as Dn, S as tl, A as nl, B as al, L as rl, d as ll, V as il, e as sl, f as ol, g as cl, O as dl } from "./useDataCollectionSource-
|
|
6
|
-
import { l as nd, m as ad, j as rd, x as ld, n as id, s as sd, a3 as od, w as cd, k as dd, D as ud, F as fd, J as md, E as hd, z as pd, a9 as gd, I as bd, K as xd, Q as vd, o as wd, a5 as yd, a6 as Nd, a4 as Cd, a7 as kd, N as Sd, U as Id, a0 as Fd, a2 as Ad, p as Ld, r as Ed, t as _d, G as Od, a8 as Dd, H as Td, T as zd, q as Pd, v as Bd, h as Rd, i as $d, X as Wd, Y as Md, a1 as jd, y as Vd, Z as Gd, _ as Hd, W as Ud, $ as Kd } from "./useDataCollectionSource-
|
|
5
|
+
import { C as Xr, P as Jr, a as _n, M as Qr, R as Tt, b as On, u as el, c as Dn, S as tl, A as nl, B as al, L as rl, d as ll, V as il, e as sl, f as ol, g as cl, O as dl } from "./useDataCollectionSource-wGCHvK_8.js";
|
|
6
|
+
import { l as nd, m as ad, j as rd, x as ld, n as id, s as sd, a3 as od, w as cd, k as dd, D as ud, F as fd, J as md, E as hd, z as pd, a9 as gd, I as bd, K as xd, Q as vd, o as wd, a5 as yd, a6 as Nd, a4 as Cd, a7 as kd, N as Sd, U as Id, a0 as Fd, a2 as Ad, p as Ld, r as Ed, t as _d, G as Od, a8 as Dd, H as Td, T as zd, q as Pd, v as Bd, h as Rd, i as $d, X as Wd, Y as Md, a1 as jd, y as Vd, Z as Gd, _ as Hd, W as Ud, $ as Kd } from "./useDataCollectionSource-wGCHvK_8.js";
|
|
7
7
|
const ul = da("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ import { F0FormDefinitionPerSection as F0FormDefinitionPerSection_2 } from './f0
|
|
|
60
60
|
import { F0FormDefinitionSingleSchema as F0FormDefinitionSingleSchema_2 } from './f0';
|
|
61
61
|
import { F0GridStackProps as F0GridStackProps_2 } from './F0GridStack';
|
|
62
62
|
import { F0SelectProps as F0SelectProps_2 } from './types';
|
|
63
|
+
import { F0SliderProps as F0SliderProps_2 } from './types';
|
|
64
|
+
import { F0SliderSkeletonProps } from './F0SliderSkeleton';
|
|
63
65
|
import { F0TagBalanceProps } from './types';
|
|
64
66
|
import { F0TagCompanyProps } from './types';
|
|
65
67
|
import { F0TagListProps } from './types';
|
|
@@ -154,6 +156,7 @@ import { TextCellValue as TextCellValue_2 } from './types/text';
|
|
|
154
156
|
import { TrackReferenceOrPlaceholder } from '@livekit/components-react';
|
|
155
157
|
import { ValueDisplayRendererContext } from './f0';
|
|
156
158
|
import { VariantProps } from 'cva';
|
|
159
|
+
import { WithDataTestIdProps as WithDataTestIdProps_2 } from './f0';
|
|
157
160
|
import { WithDataTestIdReturnType as WithDataTestIdReturnType_2 } from './f0';
|
|
158
161
|
import { WithDataTestIdReturnType as WithDataTestIdReturnType_3 } from './f0';
|
|
159
162
|
import { WithDataTestIdReturnType as WithDataTestIdReturnType_4 } from './f0';
|
|
@@ -9778,6 +9781,57 @@ export declare type F0SelectTagProp = string | {
|
|
|
9778
9781
|
variant: StatusVariant;
|
|
9779
9782
|
};
|
|
9780
9783
|
|
|
9784
|
+
/**
|
|
9785
|
+
* @experimental This is an experimental component, use it at your own risk.
|
|
9786
|
+
*/
|
|
9787
|
+
export declare const F0Slider: ForwardRefExoticComponent<Omit<F0SliderProps_2 & RefAttributes<HTMLDivElement> & WithDataTestIdProps_2, "ref"> & RefAttributes<HTMLDivElement>> & Pick<ForwardRefExoticComponent<F0SliderProps_2 & RefAttributes<HTMLDivElement>>, never> & {
|
|
9788
|
+
Skeleton: ({ hideLabel }: F0SliderSkeletonProps) => JSX_2.Element;
|
|
9789
|
+
};
|
|
9790
|
+
|
|
9791
|
+
export declare interface F0SliderProps extends WithDataTestIdProps, DataAttributes_2 {
|
|
9792
|
+
label: string;
|
|
9793
|
+
ariaLabel?: string;
|
|
9794
|
+
hideLabel?: boolean;
|
|
9795
|
+
hint?: string;
|
|
9796
|
+
status?: InputFieldStatus;
|
|
9797
|
+
required?: boolean;
|
|
9798
|
+
disabled?: boolean;
|
|
9799
|
+
name?: string;
|
|
9800
|
+
value?: number;
|
|
9801
|
+
defaultValue?: number;
|
|
9802
|
+
onChange?: (value: number) => void;
|
|
9803
|
+
/**
|
|
9804
|
+
* Fires once when the user commits a value: on pointer release after a drag,
|
|
9805
|
+
* and on each discrete keyboard step. Use this — not `onChange` — to trigger
|
|
9806
|
+
* expensive side effects such as mutations, so dragging does not fire one
|
|
9807
|
+
* call per intermediate value.
|
|
9808
|
+
*/
|
|
9809
|
+
onValueCommit?: (value: number) => void;
|
|
9810
|
+
min: number;
|
|
9811
|
+
max: number;
|
|
9812
|
+
step?: number;
|
|
9813
|
+
minLabel?: string;
|
|
9814
|
+
maxLabel?: string;
|
|
9815
|
+
/**
|
|
9816
|
+
* Format the value for the floating tooltip. Receives the raw numeric value
|
|
9817
|
+
* and must return the full localised string. The whole string is built by
|
|
9818
|
+
* the consumer (instead of e.g. a `unit` prop concatenated by the component)
|
|
9819
|
+
* so locales can reorder the phrase around the number — for example RTL
|
|
9820
|
+
* languages or locales where the unit precedes the value.
|
|
9821
|
+
*/
|
|
9822
|
+
formatValue?: (value: number) => string;
|
|
9823
|
+
/**
|
|
9824
|
+
* When to show the floating value tooltip above the thumb.
|
|
9825
|
+
* - `"always"`: visible at all times.
|
|
9826
|
+
* - `"onHover"`: visible while the slider is hovered, focused or being
|
|
9827
|
+
* dragged. Default.
|
|
9828
|
+
* - `"never"`: never rendered.
|
|
9829
|
+
*/
|
|
9830
|
+
showTooltip?: F0SliderTooltipMode;
|
|
9831
|
+
}
|
|
9832
|
+
|
|
9833
|
+
export declare type F0SliderTooltipMode = (typeof sliderTooltipModes)[number];
|
|
9834
|
+
|
|
9781
9835
|
/**
|
|
9782
9836
|
* Config for string fields rendered as grouped radio cards
|
|
9783
9837
|
*/
|
|
@@ -13870,6 +13924,8 @@ declare type SimpleResult<T> = T[];
|
|
|
13870
13924
|
/** Size tokens for width/height/min/max dimensions */
|
|
13871
13925
|
export declare type SizeToken = "auto" | "full" | "screen" | "min" | "max" | "fit" | NumericSizeToken | FractionToken;
|
|
13872
13926
|
|
|
13927
|
+
export declare const sliderTooltipModes: readonly ["always", "onHover", "never"];
|
|
13928
|
+
|
|
13873
13929
|
/**
|
|
13874
13930
|
* Type helper to extract keys from a SortingsDefinition
|
|
13875
13931
|
*/
|