@factorialco/f0-react 4.22.2 → 4.24.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.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as c, jsx as r, Fragment as Re } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as Zr, forwardRef as g, useRef as j, useEffect as K, useLayoutEffect as at, useState as P, useMemo as J, useCallback as z, createContext as Ge, useContext as Be, useId as ct, createElement as _r, memo as Or } from "react";
3
- import { cU as Ur, cV as zr, cW as Gr, cX as Wr, cY as lt, cZ as qr, c_ as Xr, c$ as Yr, d0 as Kr, d1 as Qr, d2 as dt, d3 as Jr, d4 as en, d5 as tn, d6 as rn, d7 as nn, d8 as on, d9 as sn, da as ze, db as an, dc as cn, dd as ln, de as dn, df as un, Z as ut, bX as fn, dg as hn, dh as gn, di as pn, dj as mn, b$ as ft, bW as Cn, dk as vn, a6 as i1, dl as wn, aK as xn, dm as kn, dn as Ln, dp as bn, ah as yn, dq as Mn, co as En, aa as ht, ad as Rn, dr as Fn, ba as a1, a1 as gt, S as We, bN as pt, bi as Nn, ds as Vn, dt as Sn, b3 as Tn, cn as An, $ as Fe, av as Hn, bm as mt, du as $n, cl as Bn, bV as Me, ch as In, dv as Pn, bP as Ct, b2 as jn, dw as Dn, dx as Zn, dy as _n, dz as On, dA as Un, dB as vt, ca as zn, cb as Gn, dC as Wn, dD as qn, dE as Xn, dF as Yn, dG as Kn, bw as Qn, bZ as Jn, dH as eo, dI as to, dJ as ro, dK as no, dL as oo, dM as so, dN as io, dO as ao, bv as co, cm as lo, ab as uo, c6 as fo, dP as ho, dQ as go, dR as po, dS as mo, dT as Co, dU as vo, dV as wo, aq as xo, bR as wt, M as ko, a0 as Lo, bK as xt, bO as bo, bQ as kt, dW as yo, bl as Mo, bk as Eo, dX as Ro, dY as Fo, bx as Lt, by as No, bz as Vo, b1 as So, az as To, dZ as Ao, at as Ho, bg as bt, bf as yt, b8 as $o, d_ as Mt, b7 as Bo, bY as c1, d$ as Io, bc as l1, e0 as Po, e1 as jo, e2 as d1, cj as Do, ci as Zo, ck as Et, e3 as _o, G as Oo, E as Uo, e4 as zo, e5 as Go, e6 as Wo, e7 as qo, bL as Xo, e8 as Rt, e9 as Yo, ac as Ko, ea as Qo, L as ue, o as L, q as Se, c0 as Jo, u as Y, bJ as es, U as ge, bI as Ft, H as fe, v as pe, a2 as ts, Q as ve, eb as rs, ae as le, aQ as ke, A as Ee, p as re, ct as Nt, aE as u1, ec as ns, aF as f1, aG as h1, b as be, bG as os, ed as ss, bH as is, V as as, b0 as cs, a5 as g1, bA as ls, bB as ds, bC as us, bD as E1, a3 as fs, al as Vt, aT as St, ee as hs, cA as gs, ef as ps, eg as ms, aY as Tt, eh as Cs, cu as vs, ei as ws, aV as $e, b9 as At, ej as Ht, bb as $t, c as n1, b_ as R1, ek as Bt, el as xs, bq as ks, em as Ls, bh as p1, c7 as bs, en as ys, eo as Ms, ep as Es, eq as Rs, er as Fs, a8 as Ns, af as Vs, y as Ss, z as Ts, ak as F1, es as It, et as Pt, eu as As, ev as Hs, aj as $s, a7 as Bs, ew as Is, ex as Ps, d as js } from "./F0CanvasPanel-DF45vIGH.js";
3
+ import { cU as Ur, cV as zr, cW as Gr, cX as Wr, cY as lt, cZ as qr, c_ as Xr, c$ as Yr, d0 as Kr, d1 as Qr, d2 as dt, d3 as Jr, d4 as en, d5 as tn, d6 as rn, d7 as nn, d8 as on, d9 as sn, da as ze, db as an, dc as cn, dd as ln, de as dn, df as un, Z as ut, bX as fn, dg as hn, dh as gn, di as pn, dj as mn, b$ as ft, bW as Cn, dk as vn, a6 as i1, dl as wn, aK as xn, dm as kn, dn as Ln, dp as bn, ah as yn, dq as Mn, co as En, aa as ht, ad as Rn, dr as Fn, ba as a1, a1 as gt, S as We, bN as pt, bi as Nn, ds as Vn, dt as Sn, b3 as Tn, cn as An, $ as Fe, av as Hn, bm as mt, du as $n, cl as Bn, bV as Me, ch as In, dv as Pn, bP as Ct, b2 as jn, dw as Dn, dx as Zn, dy as _n, dz as On, dA as Un, dB as vt, ca as zn, cb as Gn, dC as Wn, dD as qn, dE as Xn, dF as Yn, dG as Kn, bw as Qn, bZ as Jn, dH as eo, dI as to, dJ as ro, dK as no, dL as oo, dM as so, dN as io, dO as ao, bv as co, cm as lo, ab as uo, c6 as fo, dP as ho, dQ as go, dR as po, dS as mo, dT as Co, dU as vo, dV as wo, aq as xo, bR as wt, M as ko, a0 as Lo, bK as xt, bO as bo, bQ as kt, dW as yo, bl as Mo, bk as Eo, dX as Ro, dY as Fo, bx as Lt, by as No, bz as Vo, b1 as So, az as To, dZ as Ao, at as Ho, bg as bt, bf as yt, b8 as $o, d_ as Mt, b7 as Bo, bY as c1, d$ as Io, bc as l1, e0 as Po, e1 as jo, e2 as d1, cj as Do, ci as Zo, ck as Et, e3 as _o, G as Oo, E as Uo, e4 as zo, e5 as Go, e6 as Wo, e7 as qo, bL as Xo, e8 as Rt, e9 as Yo, ac as Ko, ea as Qo, L as ue, o as L, q as Se, c0 as Jo, u as Y, bJ as es, U as ge, bI as Ft, H as fe, v as pe, a2 as ts, Q as ve, eb as rs, ae as le, aQ as ke, A as Ee, p as re, ct as Nt, aE as u1, ec as ns, aF as f1, aG as h1, b as be, bG as os, ed as ss, bH as is, V as as, b0 as cs, a5 as g1, bA as ls, bB as ds, bC as us, bD as E1, a3 as fs, al as Vt, aT as St, ee as hs, cA as gs, ef as ps, eg as ms, aY as Tt, eh as Cs, cu as vs, ei as ws, aV as $e, b9 as At, ej as Ht, bb as $t, c as n1, b_ as R1, ek as Bt, el as xs, bq as ks, em as Ls, bh as p1, c7 as bs, en as ys, eo as Ms, ep as Es, eq as Rs, er as Fs, a8 as Ns, af as Vs, y as Ss, z as Ts, ak as F1, es as It, et as Pt, eu as As, ev as Hs, aj as $s, a7 as Bs, ew as Is, ex as Ps, d as js } from "./F0CanvasPanel-Bca0wz2p.js";
4
4
  import { createPortal as jt } from "react-dom";
5
5
  import { defaultTranslations as Ds } from "./i18n-provider-defaults.js";
6
6
  import { useTrackVolume as Zs } from "@livekit/components-react";
@@ -82923,14 +82923,14 @@ const l22 = G1(s22), c22 = Z(
82923
82923
  );
82924
82924
  c22.displayName = "F0TagRaw";
82925
82925
  const X6 = G1(c22), u22 = Z(
82926
- ({ text: e, additionalAccessibleText: t, variant: n }, r) => (Z0(
82926
+ ({ text: e, additionalAccessibleText: t, variant: n, icon: r }, o) => (Z0(
82927
82927
  e,
82928
82928
  { disallowEmpty: !0 },
82929
82929
  { componentName: "F0TagStatus" }
82930
82930
  ), /* @__PURE__ */ a(
82931
82931
  H9,
82932
82932
  {
82933
- ref: r,
82933
+ ref: o,
82934
82934
  className: Q(
82935
82935
  {
82936
82936
  neutral: "bg-f1-background-secondary text-f1-foreground-secondary",
@@ -82940,7 +82940,21 @@ const X6 = G1(c22), u22 = Z(
82940
82940
  critical: "bg-f1-background-critical text-f1-foreground-critical"
82941
82941
  }[n]
82942
82942
  ),
82943
- left: /* @__PURE__ */ a(
82943
+ left: r ? /* @__PURE__ */ a(
82944
+ C1,
82945
+ {
82946
+ icon: r,
82947
+ size: "sm",
82948
+ className: {
82949
+ neutral: "text-f1-icon",
82950
+ info: "text-f1-icon-info",
82951
+ positive: "text-f1-icon-positive",
82952
+ warning: "text-f1-icon-warning",
82953
+ critical: "text-f1-icon-critical"
82954
+ }[n],
82955
+ "aria-hidden": !0
82956
+ }
82957
+ ) : /* @__PURE__ */ a(
82944
82958
  "div",
82945
82959
  {
82946
82960
  className: Q(
@@ -85040,7 +85054,7 @@ const E51 = (e, t) => {
85040
85054
  ]
85041
85055
  }
85042
85056
  );
85043
- }, T51 = (e) => /* @__PURE__ */ a("div", { "data-cell-type": "status", children: /* @__PURE__ */ a(Y0, { variant: e.status, text: e.label }) }), $51 = (e, t) => /* @__PURE__ */ P("div", { className: "flex gap-1", children: [
85057
+ }, T51 = (e) => /* @__PURE__ */ a("div", { "data-cell-type": "status", children: /* @__PURE__ */ a(Y0, { variant: e.status, text: e.label, icon: e.icon }) }), $51 = (e, t) => /* @__PURE__ */ P("div", { className: "flex gap-1", children: [
85044
85058
  /* @__PURE__ */ a("span", { className: "text-f1-foreground-secondary", children: t.i18n.collections.summaries.types.sum }),
85045
85059
  `${e.label}`
85046
85060
  ] }), O51 = (e) => /* @__PURE__ */ a("div", { "data-cell-type": "tag", children: /* @__PURE__ */ a(X6, { text: e.label, icon: e.icon }) }), W22 = ({ count: e, list: t }) => {
package/dist/ai.d.ts CHANGED
@@ -3942,6 +3942,7 @@ declare type F0TagRawProps = {
3942
3942
  declare interface F0TagStatusProps {
3943
3943
  text: string;
3944
3944
  variant: Variant;
3945
+ icon?: IconType;
3945
3946
  /**
3946
3947
  * Sometimes you need to clarify the status for screen reader users
3947
3948
  * E.g., when showing a tooltip for sighted user, provide the tootip text to this prop because tooltips aren't accessible
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-DF45vIGH.js";
1
+ import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-Bca0wz2p.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-BK03Le0T.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-CkJL2WvT.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -5753,6 +5753,7 @@ declare type F0TagRawProps = {
5753
5753
  declare interface F0TagStatusProps {
5754
5754
  text: string;
5755
5755
  variant: Variant;
5756
+ icon?: IconType;
5756
5757
  /**
5757
5758
  * Sometimes you need to clarify the status for screen reader users
5758
5759
  * E.g., when showing a tooltip for sighted user, provide the tootip text to this prop because tooltips aren't accessible