@factorialco/f0-react 6.17.0 → 6.19.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/f0.d.ts CHANGED
@@ -225,9 +225,14 @@ declare const actionButtonVariants: readonly ["default", "outline", "critical",
225
225
 
226
226
  declare interface ActionCommonProps {
227
227
  /**
228
- * Tooltip
228
+ * Tooltip. A string is the description on its own; the object form adds a
229
+ * bold first line above it — for "which control this is" over "what it holds",
230
+ * the same two-line shape `F0Select`'s trigger tooltip uses.
229
231
  */
230
- tooltip?: string | false;
232
+ tooltip?: string | false | {
233
+ label?: string;
234
+ description: string;
235
+ };
231
236
  /**
232
237
  * The variant of the action.
233
238
  */
@@ -8100,10 +8105,16 @@ declare type F0ButtonDropdownDropdownProps<T = string> = F0ButtonDropdownBasePro
8100
8105
  * - "dropdown": Single button with chevron — clicking anywhere opens the dropdown with all items.
8101
8106
  */
8102
8107
  mode: "dropdown";
8108
+ /**
8109
+ * The currently selected value. When it names an item, the trigger becomes
8110
+ * that item — its label and its icon — the same way split mode's main button
8111
+ * shows what is selected. Without it the trigger is just an opener.
8112
+ */
8113
+ value?: T;
8103
8114
  /**
8104
8115
  * Optional trigger button label. Customize the label shown on the
8105
8116
  * trigger button independently from the dropdown items.
8106
- * Falls back to the first item's label if not provided.
8117
+ * Falls back to the selected item's label, then to the first item's.
8107
8118
  */
8108
8119
  trigger?: string;
8109
8120
  /**
@@ -12095,6 +12106,15 @@ export declare type F0SelectItemObject<T, R = unknown> = {
12095
12106
  type?: "item";
12096
12107
  value: T;
12097
12108
  label: string;
12109
+ /**
12110
+ * What the TRIGGER shows once this item is selected, when that has to differ
12111
+ * from the row's own `label`. The row is read in the context the list gives it
12112
+ * — under a group header, beside its siblings — and the trigger has none of
12113
+ * that, so a label that is clear in the list can be ambiguous on its own
12114
+ * ("Tokens", once the "Design system" header is gone). Give the trigger the
12115
+ * full path there and leave the row short. Defaults to `label`.
12116
+ */
12117
+ selectedLabel?: string;
12098
12118
  description?: string;
12099
12119
  /** Short token shown next to the label (e.g. a dial code) */
12100
12120
  metadata?: F0SelectItemMetadata;
package/dist/f0.js CHANGED
@@ -1,18 +1,18 @@
1
- import { hF as uN, w as at, cp as Ab, a7 as dn, h4 as cN, a6 as En, fc as FV, hG as GV, hH as fN, r as Xt, av as rf, hI as HV, hJ as Lw, hK as Mr, hL as Xa, hM as WV, u as Be, aJ as Zv, hN as qi, hO as Fl, hP as hN, aD as ul, h1 as Hy, hQ as UV, S as ee, s as Mb, hR as $V, hS as YV, hT as Nw, ek as XV, hU as qV, hV as ZV, hW as dN, hX as jV, t as jv, v as Kv, m as tt, x as Qv, y as Gr, O as KV, Q as QV, z as nf, A as af, cd as qo, B as of, gf as Wy, am as Ft, V as et, aC as bl, ao as La, aR as Eb, hY as JV, by as eF, ee as Iw, n as vN, o as xl, ad as Sc, bz as tF, d6 as xd, cn as pN, hZ as rF, h3 as kw, aw as nF, h_ as Pw, fL as iF, h$ as aF, c6 as gN, ca as mN, f_ as Uy, aW as oF, dh as $y, ce as yN, gB as Gl, gC as sf, gE as _N, ha as sF, gd as bN, aL as xN, gc as lF, i0 as Jv, dS as Lb, gS as uF, at as wN, fK as cF, cB as fF, hB as Nb, bW as SN, b$ as hF, c0 as dF, c1 as vF, d as pF, af as CN, dn as as, e3 as TN, dR as DN, cE as Ib, cb as AN, db as kb, G as cl, H as fl, K as hl, L as dl, gg as va, cf as MN, j as gF, dP as wd, bK as wl, J as Nr, cQ as mF, as as EN, cF as Yy, ef as Cc, cP as yF, dJ as lf, ap as Hl, bm as LN, b3 as _F, gL as Or, i1 as bF, i2 as xF, i3 as NN, i4 as ep, i5 as wF, i6 as SF, R as IN, U as kN, cG as CF, i7 as TF, bf as PN, c8 as DF, c9 as AF, ag as Xy, aN as Wl, cs as Ul, eP as uf, e5 as MF, cq as EF, bx as LF, ai as RN, bB as NF, ar as IF, bU as Rw, e2 as Tc, fN as kF, fO as PF, i8 as RF, bl as OF, cw as BF, l as ON, ax as zF, bE as VF, i9 as FF, h7 as GF, ay as HF, bp as WF, ab as BN, ia as zN, ib as UF, ic as $F, I as YF, id as XF, ie as qF, ig as ZF, ih as jF } from "./F0CanvasPanel-r0pnuz-B.js";
2
- import { iz as zhe, C as Vhe, D as Fhe, bd as Ghe, c as Hhe, F as Whe, a as Uhe, is as $he, f as Yhe, bF as Xhe, be as qhe, cu as Zhe, bS as jhe, b6 as Khe, aG as Qhe, aQ as Jhe, ej as ede, aY as tde, cK as rde, g as nde, c2 as ide, cL as ade, im as ode, iE as sde, bT as lde, e as ude, cc as cde, k as fde, cv as hde, iu as dde, bt as vde, iv as pde, ix as gde, iy as mde, d9 as yde, iB as _de, d2 as bde, d3 as xde, P as wde, d7 as Sde, iw as Cde, d4 as Tde, iA as Dde, iF as Ade, ij as Mde, ik as Ede, il as Lde, ii as Nde, d5 as Ide, iD as kde, it as Pde, iq as Rde, ip as Ode, d8 as Bde, ga as zde, gT as Vde, iC as Fde, bi as Gde, d1 as Hde, c_ as Wde, d0 as Ude, cZ as $de, ir as Yde, gV as Xde, gP as qde, gF as Zde, iI as jde, cR as Kde, c$ as Qde, iH as Jde, bO as eve, eb as tve, g9 as rve, gG as nve, b as ive, bR as ave, h9 as ove, bg as sve, ec as lve, io as uve, gR as cve, gQ as fve, iG as hve } from "./F0CanvasPanel-r0pnuz-B.js";
1
+ import { hH as uN, w as at, cp as Ab, a7 as dn, h6 as cN, a6 as En, fe as FV, hI as GV, hJ as fN, r as Xt, av as rf, hK as HV, hL as Lw, hM as Mr, hN as Xa, hO as WV, u as Be, aJ as Zv, hP as qi, hQ as Fl, hR as hN, aD as ul, h3 as Hy, hS as UV, S as ee, s as Mb, hT as $V, hU as YV, hV as Nw, em as XV, hW as qV, hX as ZV, hY as dN, hZ as jV, t as jv, v as Kv, m as tt, x as Qv, y as Gr, O as KV, Q as QV, z as nf, A as af, cd as qo, B as of, gh as Wy, am as Ft, V as et, aC as bl, ao as La, aR as Eb, h_ as JV, by as eF, ei as Iw, n as vN, o as xl, ad as Sc, bz as tF, da as xd, cn as pN, h$ as rF, h5 as kw, aw as nF, i0 as Pw, fN as iF, i1 as aF, c6 as gN, ca as mN, g0 as Uy, aW as oF, dl as $y, ce as yN, gD as Gl, gE as sf, gG as _N, hc as sF, gf as bN, aL as xN, ge as lF, i2 as Jv, dW as Lb, gU as uF, at as wN, fM as cF, cD as fF, hD as Nb, bW as SN, b$ as hF, c0 as dF, c1 as vF, d as pF, af as CN, ds as as, e7 as TN, dV as DN, cG as Ib, cb as AN, df as kb, G as cl, H as fl, K as hl, L as dl, gi as va, cf as MN, j as gF, dT as wd, bK as wl, J as Nr, cU as mF, as as EN, cJ as Yy, ej as Cc, cT as yF, dN as lf, ap as Hl, bm as LN, b3 as _F, gN as Or, i3 as bF, i4 as xF, i5 as NN, i6 as ep, i7 as wF, i8 as SF, R as IN, U as kN, cK as CF, i9 as TF, bf as PN, c8 as DF, c9 as AF, ag as Xy, aN as Wl, cs as Ul, eR as uf, e9 as MF, cq as EF, bx as LF, ai as RN, bB as NF, ar as IF, bU as Rw, e6 as Tc, fP as kF, fQ as PF, ia as RF, bl as OF, cw as BF, l as ON, ax as zF, bE as VF, ib as FF, h9 as GF, ay as HF, bp as WF, ab as BN, ic as zN, id as UF, ie as $F, I as YF, ig as XF, ih as qF, ii as ZF, ij as jF } from "./F0CanvasPanel-BR31-R1U.js";
2
+ import { iB as zhe, C as Vhe, D as Fhe, bd as Ghe, c as Hhe, F as Whe, a as Uhe, iu as $he, f as Yhe, bF as Xhe, be as qhe, cu as Zhe, bS as jhe, b6 as Khe, aG as Qhe, aQ as Jhe, el as ede, aY as tde, cO as rde, g as nde, c2 as ide, cP as ade, ip as ode, iG as sde, bT as lde, e as ude, cc as cde, k as fde, cv as hde, iw as dde, bt as vde, ix as pde, iz as gde, iA as mde, dd as yde, iD as _de, d6 as bde, d7 as xde, P as wde, db as Sde, iy as Cde, d8 as Tde, iC as Dde, iH as Ade, il as Mde, im as Ede, io as Lde, ik as Nde, d9 as Ide, iF as kde, iv as Pde, is as Rde, ir as Ode, dc as Bde, gc as zde, gV as Vde, iE as Fde, bi as Gde, d5 as Hde, d2 as Wde, d4 as Ude, d1 as $de, it as Yde, gX as Xde, gR as qde, gH as Zde, iK as jde, cV as Kde, d3 as Qde, iJ as Jde, bO as eve, ef as tve, gb as rve, gI as nve, b as ive, bR as ave, hb as ove, bg as sve, eg as lve, iq as uve, gT as cve, gS as fve, iI as hve } from "./F0CanvasPanel-BR31-R1U.js";
3
3
  import { jsx as S, jsxs as B, Fragment as it } from "react/jsx-runtime";
4
- import { C as KF, W as QF, r as JF, s as e5, t as t5, v as Ow, aF as r5, aG as n5, F as i5, D as a5, x as o5, z as s5, G as l5, k as u5, J as VN, aH as c5, aI as f5, aJ as h5, aK as d5, aL as v5, aM as FN, aN as p5, n as tp, aO as qa, aP as g5, aQ as Pb, aR as Rb, a2 as m5, aS as y5, aT as xs, aU as GN, aV as _5, aW as b5, aX as x5, aY as w5, aZ as S5, a_ as C5, ae as T5, au as D5, a$ as A5, a9 as M5, E as E5, a as L5, f as rp, R as Ob, u as Bb, ac as HN, O as zb, b0 as WN, b1 as Bw, b2 as Vb, K as N5, g as UN, ai as $N, b3 as I5, b4 as k5, b5 as P5, b6 as R5, av as O5, M as B5 } from "./CoachmarkProvider-DxcG4Ctu.js";
5
- import { Q as vve, T as pve, a3 as gve, U as mve, $ as yve, bt as _ve, bs as bve, bl as xve, b8 as wve, b7 as Sve, b9 as Cve, ba as Tve, bc as Dve, bd as Ave, ax as Mve, aw as Eve, aA as Lve, ab as Nve, a6 as Ive, aC as kve, a7 as Pve, X as Rve, bu as Ove, ay as Bve, az as zve, a8 as Vve, Y as Fve, P as Gve, _ as Hve, a0 as Wve, aB as Uve, aa as $ve, aD as Yve, Z as Xve, a1 as qve, bw as Zve, H as jve, I as Kve, bk as Qve, bq as Jve, bq as epe, br as tpe, bg as rpe, bf as npe, bv as ipe, as as ape, bi as ope, bj as spe, a5 as lpe, bx as upe, by as cpe, h as fpe, bm as hpe, bn as dpe, bo as vpe, bb as ppe, bh as gpe, i as mpe, bp as ype, be as _pe, bz as bpe } from "./CoachmarkProvider-DxcG4Ctu.js";
4
+ import { C as KF, W as QF, s as JF, t as e5, v as t5, w as Ow, aG as r5, aH as n5, G as i5, D as a5, y as o5, F as s5, H as l5, k as u5, K as VN, aI as c5, aJ as f5, aK as h5, aL as d5, aM as v5, aN as FN, aO as p5, n as tp, aP as qa, aQ as g5, aR as Pb, aS as Rb, a3 as m5, aT as y5, aU as xs, aV as GN, aW as _5, aX as b5, aY as x5, aZ as w5, a_ as S5, a$ as C5, af as T5, av as D5, b0 as A5, aa as M5, E as E5, a as L5, f as rp, R as Ob, u as Bb, ad as HN, O as zb, b1 as WN, b2 as Bw, b3 as Vb, N as N5, g as UN, aj as $N, b4 as I5, b5 as k5, b6 as P5, b7 as R5, aw as O5, M as B5 } from "./CoachmarkProvider-DIJ-5n7c.js";
5
+ import { T as vve, U as pve, a4 as gve, X as mve, a0 as yve, bu as _ve, bt as bve, bm as xve, b9 as wve, b8 as Sve, ba as Cve, bb as Tve, bd as Dve, be as Ave, ay as Mve, ax as Eve, aB as Lve, ac as Nve, a7 as Ive, aD as kve, a8 as Pve, Y as Rve, bv as Ove, az as Bve, aA as zve, a9 as Vve, Z as Fve, P as Gve, $ as Hve, a1 as Wve, aC as Uve, ab as $ve, aE as Yve, _ as Xve, a2 as qve, bx as Zve, I as jve, J as Kve, bl as Qve, br as Jve, br as epe, bs as tpe, bh as rpe, bg as npe, bw as ipe, at as ape, bj as ope, bk as spe, a6 as lpe, by as upe, bz as cpe, h as fpe, bn as hpe, bo as dpe, bp as vpe, bc as ppe, bi as gpe, i as mpe, bq as ype, bf as _pe, bA as bpe } from "./CoachmarkProvider-DIJ-5n7c.js";
6
6
  import * as wt from "react";
7
7
  import z5, { forwardRef as Tr, useRef as ce, useImperativeHandle as V5, Children as Sd, createContext as Va, useContext as os, useState as ue, useMemo as me, useEffect as Me, useCallback as de, useLayoutEffect as qy, isValidElement as YN, Fragment as $l, useSyncExternalStore as Sl, useId as lc, memo as F5 } from "react";
8
8
  import { createPortal as np } from "react-dom";
9
9
  import { d as re, u as cf, h as G5, i as tl, P as ff, g as Yl, j as H5, f as Fa } from "./tooltip-Cik7KBQT.js";
10
- import { l as Zy, c as XN, d as Cd, r as jy } from "./F0VideoPlayer-BC4CGnpD.js";
11
- import { F as wpe } from "./F0VideoPlayer-BC4CGnpD.js";
12
- import { D as W5, E as Td, G as Fb, H as qN, I as ZN, J as Qn, K as U5, L as $5, M as Y5, N as X5, O as q5, F as Z5 } from "./F0AiProcessingOverlay-BI9CH4xu.js";
13
- import { A as Cpe, C as Tpe, t as Dpe, s as Ape, v as Mpe, y as Epe, l as Lpe, i as Npe, q as Ipe, z as kpe, B as Ppe, p as Rpe, r as Ope, j as Bpe, e as zpe, g as Vpe, k as Fpe, T as Gpe, w as Hpe, h as Wpe, a as Upe, n as $pe, m as Ype, o as Xpe, b as qpe, f as Zpe, x as jpe, c as Kpe, d as Qpe, u as Jpe } from "./F0AiProcessingOverlay-BI9CH4xu.js";
14
- import { F as tge, p as rge } from "./index-DZ3S-4pk.js";
15
- import { c as ige } from "./pdfWorker-D1RLk_Fi.js";
10
+ import { l as Zy, c as XN, d as Cd, r as jy } from "./F0VideoPlayer-CK831O43.js";
11
+ import { F as wpe } from "./F0VideoPlayer-CK831O43.js";
12
+ import { D as W5, E as Td, G as Fb, H as qN, I as ZN, J as Qn, K as U5, L as $5, M as Y5, N as X5, O as q5, F as Z5 } from "./F0AiProcessingOverlay-Clm8Hofi.js";
13
+ import { A as Cpe, C as Tpe, t as Dpe, s as Ape, v as Mpe, y as Epe, l as Lpe, i as Npe, q as Ipe, z as kpe, B as Ppe, p as Rpe, r as Ope, j as Bpe, e as zpe, g as Vpe, k as Fpe, T as Gpe, w as Hpe, h as Wpe, a as Upe, n as $pe, m as Ype, o as Xpe, b as qpe, f as Zpe, x as jpe, c as Kpe, d as Qpe, u as Jpe } from "./F0AiProcessingOverlay-Clm8Hofi.js";
14
+ import { F as tge, p as rge } from "./index-jlgWX7vd.js";
15
+ import { c as ige } from "./pdfWorker-DK3co3Bk.js";
16
16
  import { g as j5 } from "./_commonjsHelpers-ByX85dGu.js";
17
17
  import { utils as vl, write as jN } from "./xlsx-CzlURDDb.js";
18
18
  import { defaultTranslations as oge } from "./i18n-provider-defaults.js";
@@ -0,0 +1,4 @@
1
+ import { F as r } from "./F0VideoPlayer-CK831O43.js";
2
+ export {
3
+ r as F0VideoPlayer
4
+ };
@@ -1,7 +1,7 @@
1
- import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-r0pnuz-B.js";
1
+ import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-BR31-R1U.js";
2
2
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
3
3
  import { lazy as J, forwardRef as ne, Suspense as He, useState as V, useRef as A, useMemo as te, useCallback as w, useEffect as T } from "react";
4
- import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-D1RLk_Fi.js";
4
+ import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-DK3co3Bk.js";
5
5
  import { F as We } from "./Printer-BD-FEi_2.js";
6
6
  import { d as ae } from "./tooltip-Cik7KBQT.js";
7
7
  import './index.css';const Oe = ({
@@ -222,7 +222,7 @@ import './index.css';const Oe = ({
222
222
  }), i;
223
223
  };
224
224
  Ee();
225
- const qe = J(() => import("./SheetViewer-B1FWG9XQ.js")), Ge = J(() => import("./DocxViewer-DULYk10Z.js")), Ze = J(() => import("./TextViewer-DZukzcC_.js")), oe = 48, se = ne(
225
+ const qe = J(() => import("./SheetViewer-24SsVp_g.js")), Ge = J(() => import("./DocxViewer-CUA5UqFj.js")), Ze = J(() => import("./TextViewer-BRAo06fz.js")), oe = 48, se = ne(
226
226
  (o, a) => {
227
227
  const { kind: e = "pdf", mimeType: i, ...l } = o;
228
228
  if (e === "pdf") return /* @__PURE__ */ t(le, { ref: a, ...l });
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useReducer, forwardRef, useRef, useImperativeHandle, useEffect, useCallback, useMemo, useContext, useLayoutEffect } from "react";
3
3
  import { e as clsx } from "./tooltip-Cik7KBQT.js";
4
- import { W as invariant } from "./F0CanvasPanel-r0pnuz-B.js";
5
- import { d as dequal } from "./CoachmarkProvider-DxcG4Ctu.js";
4
+ import { W as invariant } from "./F0CanvasPanel-BR31-R1U.js";
5
+ import { d as dequal } from "./CoachmarkProvider-DIJ-5n7c.js";
6
6
  import { a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./_commonjsHelpers-ByX85dGu.js";
7
7
  import { c as commonjsRequire } from "./_commonjs-dynamic-modules-BpilXLfW.js";
8
8
  import './pdfWorker.css';var pdf$1 = { exports: {} };