@factorialco/f0-react 4.21.1 → 4.22.1

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/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-CYNMjtyH.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-DF45vIGH.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-htLfak8d.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";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -1071,7 +1071,7 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
1071
1071
  hideSelector?: boolean;
1072
1072
  };
1073
1073
 
1074
- declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1074
+ declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, showBottomBorder, onClose, }: BaseHeaderProps_2): JSX_2.Element;
1075
1075
 
1076
1076
  declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
1077
1077
 
@@ -1099,6 +1099,8 @@ declare interface BaseHeaderProps_2 {
1099
1099
  metadataRowGap?: MetadataProps["rowGap"];
1100
1100
  /** Renders a 1px bottom border at the very bottom of the header. */
1101
1101
  showBottomBorder?: boolean;
1102
+ /** When set, renders a close button in the header actions that calls this on click. */
1103
+ onClose?: () => void;
1102
1104
  }
1103
1105
 
1104
1106
  /**
@@ -8225,7 +8227,7 @@ declare type PropertyDefinition_2<T> = {
8225
8227
  hide?: (item: T) => boolean;
8226
8228
  };
8227
8229
 
8228
- declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder">;
8230
+ declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder" | "onClose">;
8229
8231
 
8230
8232
  declare type Props_10<Id extends string | number = string | number> = {
8231
8233
  items: Omit<WidgetSimpleListItemProps<Id>, "onClick">[];
@@ -8421,7 +8423,7 @@ export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordTyp
8421
8423
  /**
8422
8424
  * @experimental This is an experimental component use it at your own risk
8423
8425
  */
8424
- export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, metadataRowGap, showBottomBorder, }: Props) => JSX_2.Element;
8426
+ export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, metadataRowGap, showBottomBorder, onClose, }: Props) => JSX_2.Element;
8425
8427
 
8426
8428
  export declare type ResourceHeaderProps = Props;
8427
8429
 
@@ -1,9 +1,9 @@
1
- import { h as Ua, B as Va, i as Ga, j as Ka, k as wn, l as lt, m as et, n as qa, o as g, p as ae, q as $e, u as te, T as Ya, r as Qa, s as Ja, R as Xa, t as Za, v as ye, w as es, x as nn, y as bt, z as at, A as Ee, E as ts, G as ns, H as Z, J as rs, K as as, L as ce, M as ir, N as ss, O as is, Q as ue, S as St, U as Q, V as He, W as os, X as ls, Y as cs, Z as ds, _ as us, $ as Se, a0 as or, a1 as lr, a2 as Be, a3 as xt, a4 as fs, e as cr, a5 as We, a6 as dr, a7 as Ft, a8 as Ne, a9 as pe, aa as vt, ab as ur, ac as ms, ad as fr, ae as ve, af as we, ag as hs, ah as ps, ai as gs, aj as bs, ak as xs, al as ze, am as Tt, an as mr, ao as vs, ap as ys, aq as ws, ar as At, as as hr, at as pr, au as Ns, av as Cs, aw as yt, ax as ks, ay as gr, az as Is, aA as Ss, aB as Fs, aC as Ts, aD as As, aE as br, aF as xr, aG as vr, aH as Gt, aI as yr, aJ as Kt, aK as wr, aL as Es, aM as Rs, aN as Ds, aO as Nr, aP as Ps, aQ as De, aR as Je, aS as qt, aT as Cr, aU as Ls, aV as rn, aW as Os, aX as _s, aY as zs, aZ as Ye, a_ as $s, a$ as Bs, b0 as ct, b1 as Nn, b2 as Yt, b3 as Ms, b4 as js, a as Ws, b as Hs, b5 as Et, b6 as Us, g as Vs, F as Gs, b7 as Ks, b8 as kr, b9 as qs, ba as an, bb as Ys, bc as sn, bd as Xe, be as Qs, bf as Ir, bg as Sr, bh as Js, bi as Fr, bj as Xs, bk as Zs, bl as ei, bm as Tr, bn as ti, bo as ni, bp as ri, bq as on, br as ai, bs as si, bt as ii, bu as oi, bv as li, bw as ci, bx as Ar, by as Er, bz as di, bA as ui, bB as fi, bC as mi, bD as hi, bE as Rr, bF as pi, bG as gi, bH as Dr, bI as Pr, bJ as bi, bK as xi, bL as vi, bM as yi, bN as wi, bO as Ni, bP as Lr, bQ as Ci, bR as ki, bS as Ii, bT as Or, bU as Si, bV as Fi, bW as Ti, bX as Ai, bY as Ei, bZ as Ri, b_ as Pe, b$ as ln, c0 as cn, c1 as dn, c2 as _r, c3 as un, c4 as zr, c5 as $r, c6 as Di, c7 as Pi, c8 as Li, c9 as Oi, ca as _i, cb as zi, cc as $i, cd as Cn, ce as Bi, cf as Mi, cg as kn, ch as In, ci as Sn, cj as ji, ck as Wi, cl as Hi, cm as Ui, cn as Br, co as Vi, cp as Gi } from "./F0CanvasPanel-CYNMjtyH.js";
2
- import { cB as xm, cA as vm, cN as ym, cx as wm, cy as Nm, cq as Cm, cr as km, cr as Im, cs as Sm, cQ as Fm, cz as Tm, cJ as Am, cK as Em, cO as Rm, ct as Dm, cD as Pm, cC as Lm, cu as Om, cv as _m, cL as zm, cR as $m, cM as Bm, cP as Mm, cI as jm, cF as Wm, cH as Hm, cE as Um, cw as Vm, cG as Gm } from "./F0CanvasPanel-CYNMjtyH.js";
1
+ import { h as Ua, B as Va, i as Ga, j as Ka, k as wn, l as lt, m as et, n as qa, o as g, p as ae, q as $e, u as te, T as Ya, r as Qa, s as Ja, R as Xa, t as Za, v as ye, w as es, x as nn, y as bt, z as at, A as Ee, E as ts, G as ns, H as Z, J as rs, K as as, L as ce, M as ir, N as ss, O as is, Q as ue, S as St, U as Q, V as He, W as os, X as ls, Y as cs, Z as ds, _ as us, $ as Se, a0 as or, a1 as lr, a2 as Be, a3 as xt, a4 as fs, e as cr, a5 as We, a6 as dr, a7 as Ft, a8 as Ne, a9 as pe, aa as vt, ab as ur, ac as ms, ad as fr, ae as ve, af as we, ag as hs, ah as ps, ai as gs, aj as bs, ak as xs, al as ze, am as Tt, an as mr, ao as vs, ap as ys, aq as ws, ar as At, as as hr, at as pr, au as Ns, av as Cs, aw as yt, ax as ks, ay as gr, az as Is, aA as Ss, aB as Fs, aC as Ts, aD as As, aE as br, aF as xr, aG as vr, aH as Gt, aI as yr, aJ as Kt, aK as wr, aL as Es, aM as Rs, aN as Ds, aO as Nr, aP as Ps, aQ as De, aR as Je, aS as qt, aT as Cr, aU as Ls, aV as rn, aW as Os, aX as _s, aY as zs, aZ as Ye, a_ as $s, a$ as Bs, b0 as ct, b1 as Nn, b2 as Yt, b3 as Ms, b4 as js, a as Ws, b as Hs, b5 as Et, b6 as Us, g as Vs, F as Gs, b7 as Ks, b8 as kr, b9 as qs, ba as an, bb as Ys, bc as sn, bd as Xe, be as Qs, bf as Ir, bg as Sr, bh as Js, bi as Fr, bj as Xs, bk as Zs, bl as ei, bm as Tr, bn as ti, bo as ni, bp as ri, bq as on, br as ai, bs as si, bt as ii, bu as oi, bv as li, bw as ci, bx as Ar, by as Er, bz as di, bA as ui, bB as fi, bC as mi, bD as hi, bE as Rr, bF as pi, bG as gi, bH as Dr, bI as Pr, bJ as bi, bK as xi, bL as vi, bM as yi, bN as wi, bO as Ni, bP as Lr, bQ as Ci, bR as ki, bS as Ii, bT as Si, bU as Fi, bV as Or, bW as Ti, bX as Ai, bY as Ei, bZ as Ri, b_ as Di, b$ as Pi, c0 as Pe, c1 as ln, c2 as cn, c3 as dn, c4 as _r, c5 as un, c6 as zr, c7 as $r, c8 as Li, c9 as Oi, ca as _i, cb as zi, cc as $i, cd as Bi, ce as Mi, cf as Cn, cg as ji, ch as Wi, ci as kn, cj as In, ck as Sn, cl as Hi, cm as Ui, cn as Vi, co as Gi, cp as Br, cq as Ki, cr as qi } from "./F0CanvasPanel-DF45vIGH.js";
2
+ import { cD as xm, cC as vm, cP as ym, cz as wm, cA as Nm, cs as Cm, ct as km, ct as Im, cu as Sm, cS as Fm, cB as Tm, cL as Am, cM as Em, cQ as Rm, cv as Dm, cF as Pm, cE as Lm, cw as Om, cx as _m, cN as zm, cT as $m, cO as Bm, cR as Mm, cK as jm, cH as Wm, cJ as Hm, cG as Um, cy as Vm, cI as Gm } from "./F0CanvasPanel-DF45vIGH.js";
3
3
  import { jsx as t, jsxs as d, Fragment as fe } from "react/jsx-runtime";
4
- import Te, { forwardRef as de, useRef as O, useTransition as Ki, useState as A, useLayoutEffect as Qe, useId as Qt, useContext as Le, createContext as Ie, useEffect as G, useCallback as H, useMemo as X, Fragment as Ke, isValidElement as qi, cloneElement as Mr, memo as jr, Children as Wr } from "react";
5
- import { C as Yi, P as Qi, a as st, M as Ji, p as Xi, b as Zi, R as Fn, c as Hr, u as eo, d as to, e as no, f as ro, g as ao, D as so, h as io, O as Ur, i as Vr, S as oo, A as lo, B as co, L as uo, j as fo, V as mo, k as ho, l as po, m as go } from "./useDataCollectionSource-BjNnBDSn.js";
6
- import { s as qm, t as Ym, q as Qm, J as Jm, v as Xm, E as Zm, aa as eh, I as th, r as nh, ac as rh, ab as ah, U as sh, af as ih, F as oh, _ as lh, X as ch, N as dh, ah as uh, Q as fh, $ as mh, a0 as hh, w as ph, ad as gh, ae as bh, T as xh, a1 as vh, a7 as yh, a9 as wh, x as Nh, z as Ch, G as kh, Y as Ih, ag as Sh, Z as Fh, W as Th, ai as Ah, y as Eh, H as Rh, n as Dh, o as Ph, a3 as Lh, a4 as Oh, a8 as _h, K as zh, a5 as $h, a2 as Bh, a6 as Mh } from "./useDataCollectionSource-BjNnBDSn.js";
4
+ import Te, { forwardRef as de, useRef as O, useTransition as Yi, useState as A, useLayoutEffect as Qe, useId as Qt, useContext as Le, createContext as Ie, useEffect as G, useCallback as H, useMemo as X, Fragment as Ke, isValidElement as Qi, cloneElement as Mr, memo as jr, Children as Wr } from "react";
5
+ import { C as Ji, P as Xi, a as st, M as Zi, p as eo, b as to, R as Fn, c as Hr, u as no, d as ro, e as ao, f as so, g as io, O as Ur, h as Vr, S as oo, A as lo, B as co, L as uo, i as fo, V as mo, j as ho, k as po, l as go } from "./useDataCollectionSource-CmbJocMQ.js";
6
+ import { r as qm, s as Ym, o as Qm, H as Jm, t as Xm, z as Zm, a8 as eh, G as th, q as nh, aa as rh, a9 as ah, Q as sh, ad as ih, F as oh, Y as lh, U as ch, J as dh, af as uh, K as fh, Z as mh, _ as hh, v as ph, ab as gh, ac as bh, N as xh, $ as vh, a5 as yh, a7 as wh, w as Nh, y as Ch, D as kh, W as Ih, ae as Sh, X as Fh, T as Th, ag as Ah, x as Eh, E as Rh, m as Dh, n as Ph, a1 as Lh, a2 as Oh, a6 as _h, I as zh, a3 as $h, a0 as Bh, a4 as Mh } from "./useDataCollectionSource-CmbJocMQ.js";
7
7
  const bo = Ua("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
@@ -83,7 +83,7 @@ function wo(e, n, r = []) {
83
83
  };
84
84
  }
85
85
  function No({ breadcrumbs: e, append: n }) {
86
- const r = O(null), a = O(null), [, s] = Ki(), [i, o] = A(null), c = (i?.collapsedItems || []).length > 0;
86
+ const r = O(null), a = O(null), [, s] = Yi(), [i, o] = A(null), c = (i?.collapsedItems || []).length > 0;
87
87
  return Qe(() => {
88
88
  const l = r.current, f = a.current;
89
89
  if (!l || !f || f.children.length < e.length) return;
@@ -887,7 +887,7 @@ const Rn = ae.create(Z), Dn = {
887
887
  ) })
888
888
  ] }),
889
889
  /* @__PURE__ */ t(
890
- Yi,
890
+ Ji,
891
891
  {
892
892
  columns: {
893
893
  default: 1
@@ -895,7 +895,7 @@ const Rn = ae.create(Z), Dn = {
895
895
  showDots: !0,
896
896
  showArrows: !1,
897
897
  children: r?.products.map((l) => /* @__PURE__ */ t(
898
- Qi,
898
+ Xi,
899
899
  {
900
900
  ...l,
901
901
  isVisible: !0,
@@ -4236,7 +4236,7 @@ function Ml({
4236
4236
  }, [y, l]), G(() => {
4237
4237
  l(P);
4238
4238
  }, [P, l]), Bl(y, C), /* @__PURE__ */ t(
4239
- Ji,
4239
+ Zi,
4240
4240
  {
4241
4241
  reducedMotion: f ? "always" : "never",
4242
4242
  transition: {
@@ -4493,8 +4493,8 @@ const da = ({
4493
4493
  children: /* @__PURE__ */ t(
4494
4494
  Z,
4495
4495
  {
4496
- icon: Zi[i],
4497
- color: Xi[i],
4496
+ icon: to[i],
4497
+ color: eo[i],
4498
4498
  size: "sm"
4499
4499
  }
4500
4500
  )
@@ -5718,7 +5718,7 @@ const dc = ({
5718
5718
  onDragEnd: s,
5719
5719
  currentOrder: i
5720
5720
  }) => {
5721
- const { isDragging: o, setIsDragging: c } = gn(), l = O(!1), f = eo(), u = () => {
5721
+ const { isDragging: o, setIsDragging: c } = gn(), l = O(!1), f = no(), u = () => {
5722
5722
  c(!0), l.current = !0;
5723
5723
  }, m = () => {
5724
5724
  c(!1), setTimeout(() => {
@@ -6034,7 +6034,7 @@ function pc({
6034
6034
  top: { duration: o ? 0 : 0.1 },
6035
6035
  left: { duration: o ? 0 : 0.1 },
6036
6036
  default: { duration: o ? 0 : 0.2 }
6037
- }, p = () => r ? qi(r) && a ? Mr(
6037
+ }, p = () => r ? Qi(r) && a ? Mr(
6038
6038
  r,
6039
6039
  {
6040
6040
  onDropdownClick: a
@@ -6352,7 +6352,7 @@ function jf(e) {
6352
6352
  currentFilters: m,
6353
6353
  navigationMode: h = "url",
6354
6354
  deps: p = []
6355
- } = e, b = si(), x = to(n, p), [v, F] = A(null), w = v?.key === r && v.settled, R = O(x);
6355
+ } = e, b = si(), x = ro(n, p), [v, F] = A(null), w = v?.key === r && v.settled, R = O(x);
6356
6356
  R.current = x;
6357
6357
  const P = O(b);
6358
6358
  P.current = b;
@@ -6436,7 +6436,7 @@ function jf(e) {
6436
6436
  (K) => K && K.key === r && !K.settled ? { ...K, settled: !0 } : K
6437
6437
  );
6438
6438
  }, [v, r]);
6439
- const y = c ?? n.itemUrl, I = no({
6439
+ const y = c ?? n.itemUrl, I = ao({
6440
6440
  dataSource: x,
6441
6441
  data: N,
6442
6442
  paginationInfo: T,
@@ -6461,7 +6461,7 @@ function jf(e) {
6461
6461
  order: x.currentGrouping.order ?? "asc"
6462
6462
  }
6463
6463
  ] : []
6464
- ], { neighbors: ne, isSupported: he } = ro({
6464
+ ], { neighbors: ne, isSupported: he } = so({
6465
6465
  dataAdapter: x.dataAdapter,
6466
6466
  id: B,
6467
6467
  filters: x.currentFilters,
@@ -6474,7 +6474,7 @@ function jf(e) {
6474
6474
  ...K,
6475
6475
  navigationFilters: x.currentNavigationFilters
6476
6476
  })
6477
- }), le = X(() => o || (x.idProvider ? (K, ie) => x.idProvider(K, ie) : ao), [o, x.idProvider]), z = X(() => {
6477
+ }), le = X(() => o || (x.idProvider ? (K, ie) => x.idProvider(K, ie) : io), [o, x.idProvider]), z = X(() => {
6478
6478
  if (!W || ne === null) return I;
6479
6479
  const K = I.previousItem ?? ne.previous, ie = I.nextItem ?? ne.next, be = (xe) => xe && y ? y(xe) ?? null : null;
6480
6480
  return {
@@ -7960,21 +7960,21 @@ const Wc = {
7960
7960
  };
7961
7961
  return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
7962
7962
  }, [o, m, h]), /* @__PURE__ */ t(
7963
- so,
7963
+ Ii,
7964
7964
  {
7965
7965
  open: o,
7966
7966
  onOpenChange: (p) => {
7967
7967
  p || r();
7968
7968
  },
7969
7969
  children: u && /* @__PURE__ */ d(
7970
- io,
7970
+ Si,
7971
7971
  {
7972
7972
  container: s,
7973
7973
  className: "h-full w-full max-w-none rounded-none bg-transparent p-0 shadow-none",
7974
7974
  withTranslateAnimation: !1,
7975
7975
  "aria-describedby": void 0,
7976
7976
  children: [
7977
- /* @__PURE__ */ t(Ii, { className: "sr-only", children: u.name || e.chat.imagePreview }),
7977
+ /* @__PURE__ */ t(Fi, { className: "sr-only", children: u.name || e.chat.imagePreview }),
7978
7978
  /* @__PURE__ */ t(
7979
7979
  "button",
7980
7980
  {
@@ -8394,7 +8394,7 @@ const od = ({
8394
8394
  /* @__PURE__ */ t(
8395
8395
  ce,
8396
8396
  {
8397
- icon: Si,
8397
+ icon: Ti,
8398
8398
  onClick: n,
8399
8399
  label: r.chat.back,
8400
8400
  variant: "ghost",
@@ -8511,7 +8511,7 @@ const od = ({
8511
8511
  /* @__PURE__ */ t(
8512
8512
  nt,
8513
8513
  {
8514
- icon: Fi,
8514
+ icon: Ai,
8515
8515
  label: s.chat.info,
8516
8516
  onClick: () => h("info"),
8517
8517
  trailing: /* @__PURE__ */ t(
@@ -8527,7 +8527,7 @@ const od = ({
8527
8527
  /* @__PURE__ */ t(
8528
8528
  nt,
8529
8529
  {
8530
- icon: Ti,
8530
+ icon: Ei,
8531
8531
  label: s.chat.reply,
8532
8532
  onClick: F(() => {
8533
8533
  u(null), f(e);
@@ -8537,7 +8537,7 @@ const od = ({
8537
8537
  /* @__PURE__ */ t(
8538
8538
  nt,
8539
8539
  {
8540
- icon: Ai,
8540
+ icon: Ri,
8541
8541
  label: s.actions.copy,
8542
8542
  onClick: F(() => {
8543
8543
  navigator.clipboard?.writeText(e.body);
@@ -9130,7 +9130,7 @@ const od = ({
9130
9130
  )
9131
9131
  }
9132
9132
  ),
9133
- /* @__PURE__ */ t(Ee, { children: !V && /* @__PURE__ */ t(Ei, { position: "top" }, "chat-header-shadow") }),
9133
+ /* @__PURE__ */ t(Ee, { children: !V && /* @__PURE__ */ t(Di, { position: "top" }, "chat-header-shadow") }),
9134
9134
  /* @__PURE__ */ t(Ee, { children: B && q && /* @__PURE__ */ t(
9135
9135
  ae.div,
9136
9136
  {
@@ -9167,7 +9167,7 @@ const od = ({
9167
9167
  {
9168
9168
  onClick: ee,
9169
9169
  variant: "neutral",
9170
- icon: Ri,
9170
+ icon: Pi,
9171
9171
  label: m > 0 ? e.t(
9172
9172
  m === 1 ? "chat.unreadCount.one" : "chat.unreadCount.other",
9173
9173
  { count: m }
@@ -9565,7 +9565,7 @@ const od = ({
9565
9565
  i && /* @__PURE__ */ t($r, { text: i, level: "critical" }),
9566
9566
  o && /* @__PURE__ */ t(xt, { text: o.text, variant: o.variant }),
9567
9567
  n.link && /* @__PURE__ */ t(
9568
- Di,
9568
+ Li,
9569
9569
  {
9570
9570
  onClick: h,
9571
9571
  href: n.link.url,
@@ -9576,11 +9576,11 @@ const od = ({
9576
9576
  ] })
9577
9577
  ] }),
9578
9578
  n.comment && /* @__PURE__ */ d("div", { className: "flex flex-row items-center gap-3 overflow-visible", children: [
9579
- /* @__PURE__ */ t(Hd, { children: /* @__PURE__ */ t(Pi, { children: n.comment }) }),
9579
+ /* @__PURE__ */ t(Hd, { children: /* @__PURE__ */ t(Oi, { children: n.comment }) }),
9580
9580
  !!n.canBeBlurred && /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
9581
9581
  ue,
9582
9582
  {
9583
- icon: f ? Li : Oi,
9583
+ icon: f ? _i : zi,
9584
9584
  hideLabel: !0,
9585
9585
  label: "hide/show",
9586
9586
  variant: "outline",
@@ -9604,7 +9604,7 @@ const od = ({
9604
9604
  p
9605
9605
  ] }, b))
9606
9606
  ] }),
9607
- a && /* @__PURE__ */ t(_i, { children: /* @__PURE__ */ t(ue, { variant: "neutral", size: "sm", ...a }) })
9607
+ a && /* @__PURE__ */ t($i, { children: /* @__PURE__ */ t(ue, { variant: "neutral", size: "sm", ...a }) })
9608
9608
  ]
9609
9609
  }
9610
9610
  );
@@ -10148,7 +10148,7 @@ function pu(e, n) {
10148
10148
  visibleItems: [],
10149
10149
  overflowItems: []
10150
10150
  });
10151
- zi({
10151
+ Bi({
10152
10152
  ref: r,
10153
10153
  onResize: () => {
10154
10154
  f();
@@ -10380,7 +10380,7 @@ function rm({
10380
10380
  withPointerCursor: i,
10381
10381
  children: [
10382
10382
  "alert" in c && c.alert && /* @__PURE__ */ t(Dr, { type: c.alert }),
10383
- "emoji" in c && c.emoji && /* @__PURE__ */ t($i, { emoji: c.emoji }),
10383
+ "emoji" in c && c.emoji && /* @__PURE__ */ t(Mi, { emoji: c.emoji }),
10384
10384
  /* @__PURE__ */ d("div", { className: "flex-1", children: [
10385
10385
  /* @__PURE__ */ t("p", { className: "line-clamp-1 font-medium", children: n }),
10386
10386
  /* @__PURE__ */ t("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: r })
@@ -10688,7 +10688,7 @@ function Su({
10688
10688
  strokeWidth: 0,
10689
10689
  isAnimationActive: !1,
10690
10690
  children: a.map((c, l) => /* @__PURE__ */ t(
10691
- Bi,
10691
+ ji,
10692
10692
  {
10693
10693
  fill: c.color,
10694
10694
  role: "presentation",
@@ -10728,7 +10728,7 @@ function Fu({
10728
10728
  children: e ?? n
10729
10729
  }
10730
10730
  ),
10731
- /* @__PURE__ */ t(Z, { icon: Mi })
10731
+ /* @__PURE__ */ t(Z, { icon: Wi })
10732
10732
  ]
10733
10733
  }
10734
10734
  );
@@ -10927,9 +10927,9 @@ function lm({
10927
10927
  ] }) });
10928
10928
  }
10929
10929
  const Tu = {
10930
- done: Hi,
10931
- "in-progress": Wi,
10932
- todo: ji
10930
+ done: Vi,
10931
+ "in-progress": Ui,
10932
+ todo: Hi
10933
10933
  }, Au = {
10934
10934
  done: "text-f1-icon-success",
10935
10935
  "in-progress": "text-f1-icon-info",
@@ -10960,7 +10960,7 @@ function Eu({
10960
10960
  } : void 0,
10961
10961
  rawTag: e.badge && !e.badge.isPastDue ? {
10962
10962
  text: e.badge.text,
10963
- icon: Ui
10963
+ icon: Gi
10964
10964
  } : void 0,
10965
10965
  count: e.counter,
10966
10966
  onClick: s
@@ -11185,7 +11185,7 @@ function df({
11185
11185
  const fm = Ne(
11186
11186
  pe("WidgetEmptyState", df)
11187
11187
  ), Ha = de(
11188
- ({ title: e, children: n }, r) => (Vi(
11188
+ ({ title: e, children: n }, r) => (Ki(
11189
11189
  e,
11190
11190
  { disallowEmpty: !0 },
11191
11191
  { componentName: "WidgetSection" }
@@ -11203,7 +11203,7 @@ const mm = Ne(
11203
11203
  disallowedRoutes: r,
11204
11204
  children: a
11205
11205
  }) => {
11206
- const s = Gi(), i = window.location.pathname, o = X(() => n?.length ? n.includes(i) : r?.length ? !r.includes(i) : !0, [i, n, r]), c = X(() => {
11206
+ const s = qi(), i = window.location.pathname, o = X(() => n?.length ? n.includes(i) : r?.length ? !r.includes(i) : !0, [i, n, r]), c = X(() => {
11207
11207
  let l = `The component ${e} is not allowed to be rendered in the current route.`;
11208
11208
  return n && n.length > 0 && (l += ` Allowed routes: ${n.join(", ")}`), r && r.length > 0 && (l += ` Disallowed routes: ${r.join(", ")}`), l;
11209
11209
  }, [e, n, r]);
@@ -11239,7 +11239,7 @@ export {
11239
11239
  en as CalendarEvent,
11240
11240
  em as CalendarEventList,
11241
11241
  Jm as CardSelectableContainer,
11242
- Yi as Carousel,
11242
+ Ji as Carousel,
11243
11243
  Xm as CategoryBarChart,
11244
11244
  om as CategoryBarSection,
11245
11245
  Cf as Celebration,
@@ -11386,7 +11386,7 @@ export {
11386
11386
  Rt as useAiPromotionChat,
11387
11387
  $h as useDataCollectionData,
11388
11388
  jf as useDataCollectionItemNavigation,
11389
- to as useDataCollectionSource,
11389
+ ro as useDataCollectionSource,
11390
11390
  Bh as useExportAction,
11391
11391
  Oe as useF0Chat,
11392
11392
  Mh as useInfiniteScrollPagination,
package/dist/f0.d.ts CHANGED
@@ -1556,7 +1556,7 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
1556
1556
  hideSelector?: boolean;
1557
1557
  };
1558
1558
 
1559
- declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1559
+ declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, showBottomBorder, onClose, }: BaseHeaderProps_2): JSX_2.Element;
1560
1560
 
1561
1561
  declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
1562
1562
 
@@ -1584,6 +1584,8 @@ declare interface BaseHeaderProps_2 {
1584
1584
  metadataRowGap?: MetadataProps["rowGap"];
1585
1585
  /** Renders a 1px bottom border at the very bottom of the header. */
1586
1586
  showBottomBorder?: boolean;
1587
+ /** When set, renders a close button in the header actions that calls this on click. */
1588
+ onClose?: () => void;
1587
1589
  }
1588
1590
 
1589
1591
  /**
@@ -5420,10 +5422,6 @@ declare type DialogWrapperContextType = {
5420
5422
  portalContainer: HTMLDivElement | null;
5421
5423
  };
5422
5424
 
5423
- declare const DialogWrapperProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: DialogWrapperProviderProps) => JSX_2.Element;
5424
- export { DialogWrapperProvider as F0DialogAlikeProvider }
5425
- export { DialogWrapperProvider as F0DialogProvider }
5426
-
5427
5425
  /**
5428
5426
  * The props for the F0DialogProvider component.
5429
5427
  */
@@ -5486,20 +5484,6 @@ export declare type DragPayload<T = unknown> = {
5486
5484
  data?: T;
5487
5485
  };
5488
5486
 
5489
- export declare type DrawerControls = {
5490
- kind: "resource";
5491
- expand?: {
5492
- label: string;
5493
- url?: string;
5494
- onClick?: () => void;
5495
- };
5496
- navigation?: NavigationProps;
5497
- } | {
5498
- kind: "back";
5499
- label: string;
5500
- onClick: () => void;
5501
- };
5502
-
5503
5487
  export declare type DrawerDefinition = {
5504
5488
  /** The size of the drawer. */
5505
5489
  size?: DrawerSize;
@@ -8513,10 +8497,7 @@ export declare interface F0DemoCardProps {
8513
8497
  }
8514
8498
 
8515
8499
  /**
8516
- * @deprecated Use `F0Dialog` from `@/components/dialog-alike/F0Dialog` for
8517
- * center/fullscreen dialogs, or `F0Drawer` from
8518
- * `@/components/dialog-alike/F0Drawer` for side panels. This is a
8519
- * backward-compatible shim that maps the legacy props onto those components.
8500
+ * @experimental This is an experimental component use it at your own risk
8520
8501
  */
8521
8502
  export declare const F0Dialog: WithDataTestIdReturnType_3<FC<F0DialogInternalProps>>;
8522
8503
 
@@ -8536,12 +8517,8 @@ export declare type F0DialogActionsProps = {
8536
8517
 
8537
8518
  export declare const F0DialogAlikeContext: Context<DialogWrapperContextType>;
8538
8519
 
8539
- /**
8540
- * The dialog-alike context, retyped under the original name so the public
8541
- * `Context<F0DialogContextType>` signature is preserved (the runtime value is
8542
- * the same context the dialog-alike components populate).
8543
- * @deprecated Import `F0DialogContext` from `@/components/dialog-alike/F0Dialog`.
8544
- */
8520
+ export declare const F0DialogAlikeProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: DialogWrapperProviderProps) => JSX_2.Element;
8521
+
8545
8522
  export declare const F0DialogContext: Context<F0DialogContextType>;
8546
8523
 
8547
8524
  declare type F0DialogContextType = {
@@ -8568,6 +8545,17 @@ export declare type F0DialogPrimaryAction = {
8568
8545
 
8569
8546
  export declare type F0DialogPrimaryActionItem = F0DialogActionItem;
8570
8547
 
8548
+ export declare const F0DialogProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: F0DialogProviderProps) => JSX_2.Element;
8549
+
8550
+ declare type F0DialogProviderProps = {
8551
+ isOpen: boolean;
8552
+ onClose: () => void;
8553
+ shownBottomSheet?: boolean;
8554
+ position: DialogPosition;
8555
+ children: ReactNode;
8556
+ portalContainer: HTMLDivElement | null;
8557
+ };
8558
+
8571
8559
  export declare type F0DialogSecondaryAction = {
8572
8560
  label: string;
8573
8561
  icon?: IconType;
@@ -11238,7 +11226,7 @@ declare interface F0WizardFormBaseProps {
11238
11226
  onClose?: () => void;
11239
11227
  title?: string;
11240
11228
  /** @deprecated Use `size` instead. */
11241
- width?: Exclude<F0DialogSize, "fullscreen">;
11229
+ width?: DialogWidth;
11242
11230
  /** The size of the wizard dialog. Preferred over the deprecated `width`. */
11243
11231
  size?: F0DialogSize;
11244
11232
  defaultStepIndex?: number;
@@ -14493,7 +14481,7 @@ declare type Props_3 = {
14493
14481
  list?: TagCounterItem[];
14494
14482
  };
14495
14483
 
14496
- declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder">;
14484
+ declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder" | "onClose">;
14497
14485
 
14498
14486
  export declare type QuestionActionParams = {
14499
14487
  questionId: string;
@@ -15358,7 +15346,7 @@ declare interface SurveyAnsweringFormDialogProps extends SurveyAnsweringFormShar
15358
15346
  inline?: false;
15359
15347
  mode: SurveyAnsweringFormMode;
15360
15348
  module: SurveyAnsweringFormModule;
15361
- position?: SurveyDialogPosition;
15349
+ position?: DialogPosition;
15362
15350
  isOpen: boolean;
15363
15351
  onClose: () => void;
15364
15352
  allowToChangeFullscreen?: boolean;
@@ -15469,9 +15457,6 @@ export declare type SurveyDataset = {
15469
15457
 
15470
15458
  export declare type SurveyDatasets = Record<string, SurveyDataset>;
15471
15459
 
15472
- /** Where the answering dialog is anchored. */
15473
- declare type SurveyDialogPosition = "center" | "left" | "right" | "fullscreen";
15474
-
15475
15460
  export declare const SurveyFormBuilder: WithDataTestIdReturnType_8<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
15476
15461
 
15477
15462
  export declare type SurveyFormBuilderCallbacks = {
@@ -16771,10 +16756,6 @@ export declare interface UseDataSourceItemNavigationReturn<R extends RecordType>
16771
16756
  previousItemUrl: string | null;
16772
16757
  }
16773
16758
 
16774
- declare const useDialogWrapperContext: () => DialogWrapperContextType;
16775
- export { useDialogWrapperContext as useF0Dialog }
16776
- export { useDialogWrapperContext as useF0DialogAlikeContext }
16777
-
16778
16759
  export declare function useDndEvents(handler: (e: {
16779
16760
  phase: "start" | "over" | "drop" | "cancel";
16780
16761
  source: DragPayload;
@@ -16803,6 +16784,10 @@ export declare const useEmojiConfetti: () => {
16803
16784
  */
16804
16785
  export declare function useF0AiFormRegistry(): F0AiFormRegistryContextValue | null;
16805
16786
 
16787
+ export declare const useF0Dialog: () => F0DialogContextType;
16788
+
16789
+ export declare const useF0DialogAlikeContext: () => DialogWrapperContextType;
16790
+
16806
16791
  /**
16807
16792
  * Hook to control F0Form programmatically.
16808
16793
  *