@factorialco/f0-react 14.17.0 → 14.18.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.
Files changed (57) hide show
  1. package/dist/{ArchiveThumbnail-CFN_pdP6.js → ArchiveThumbnail-Bcxp9DgW.js} +3 -3
  2. package/dist/{ArchiveViewer-B8ittncx.js → ArchiveViewer-upJ_ro92.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-DF_jwxMB.js → ChatPostComposerDialog-BCr2fGbB.js} +3 -3
  4. package/dist/{CoachmarkProvider-DL1EWmPt.js → CoachmarkProvider-B8sZgS_8.js} +17 -17
  5. package/dist/{CodeThumbnail-Dp48TwEB.js → CodeThumbnail-C9v4Crsb.js} +2 -2
  6. package/dist/{CodeViewer-Al2aI8Ye.js → CodeViewer-Kx1iJygY.js} +7 -7
  7. package/dist/{DocumentToolbar-XGj19_4I.js → DocumentToolbar-CyxRmdax.js} +5 -5
  8. package/dist/{DocxViewer-DC_ryn8w.js → DocxViewer-Btrx7NQj.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-kR0V3VAe.js → F0AiProcessingOverlay-CaeqBx4U.js} +9 -9
  10. package/dist/{F0Alert-BzpaybDj.js → F0Alert-BT9RlsJ7.js} +6 -6
  11. package/dist/F0AudioPlayer-Drq4cCOq.js +2 -0
  12. package/dist/{F0Button-CVBX4mpV.js → F0Button-B2oESTiV.js} +3424 -3339
  13. package/dist/{F0CanvasPanel-Bajbnrie.js → F0CanvasPanel-BRxFVcag.js} +18 -18
  14. package/dist/{F0DocumentViewer-cmzh5i3Y.js → F0DocumentViewer-BlKuAZ5y.js} +1 -1
  15. package/dist/{F0DocumentViewer-ClsmPKUE.js → F0DocumentViewer-Do7P_boY.js} +5 -5
  16. package/dist/{F0Icon-1popYub0.js → F0Icon-CqAyRMcQ.js} +2 -2
  17. package/dist/{F0Map-DaH9mZFi.js → F0Map-Zf0t18uK.js} +8 -8
  18. package/dist/{F0Select-1hIMxh-o.js → F0Select-Db9rSAQN.js} +9 -9
  19. package/dist/{F0Text-BJF7W4yd.js → F0Text-CTtChgqO.js} +2 -2
  20. package/dist/{F0VideoPlayer-DLP3bpMd.js → F0VideoPlayer-CYLvnKZi.js} +7 -7
  21. package/dist/F0VideoPlayer-D8HcCtD1.js +1 -0
  22. package/dist/{HtmlThumbnail-DLtk8JYr.js → HtmlThumbnail-DXzJatQy.js} +1 -1
  23. package/dist/{HtmlViewer-RLd5gHHX.js → HtmlViewer-C5fB767-.js} +10 -10
  24. package/dist/{LayoutGroup-Ctdx3KAT.js → LayoutGroup-BoXvNHJA.js} +1 -1
  25. package/dist/{Map-BBxhXzLt.js → Map-LsU9U6AA.js} +11 -11
  26. package/dist/{PdfThumbnail-CR-sGN1q.js → PdfThumbnail-BqywLrYD.js} +1 -1
  27. package/dist/{PdfViewer-BV40NAvj.js → PdfViewer-BlpY7eZN.js} +9 -9
  28. package/dist/{SandboxedHtmlFrame-U-V8AeTu.js → SandboxedHtmlFrame-Cqmtw9et.js} +3 -3
  29. package/dist/{SheetViewer-BZSD9tZP.js → SheetViewer-BmFdYstb.js} +5 -5
  30. package/dist/{TextViewer-DpPC4v7x.js → TextViewer-CX26VfY_.js} +4 -4
  31. package/dist/ai.d.ts +2 -2
  32. package/dist/ai.js +3 -3
  33. package/dist/component-status.js +3 -3
  34. package/dist/{dist-CEaJ2V1g.js → dist-D3Jn1pa_.js} +1 -1
  35. package/dist/{dist-mXRQ3ead.js → dist-h3TybrEk.js} +4 -4
  36. package/dist/{dist-Cdt-yhbF.js → dist-zmVrQaI8.js} +1 -1
  37. package/dist/experimental.d.ts +2 -2
  38. package/dist/experimental.js +18 -18
  39. package/dist/{exports-CqUFRi14.d.ts → exports-CsooheN0.d.ts} +1 -1
  40. package/dist/f0.d.ts +11 -3
  41. package/dist/f0.js +36 -34
  42. package/dist/{highlight-By1Ki_WD.js → highlight-DqP16d1w.js} +1 -1
  43. package/dist/{i18n-provider-CJrQqAyn.js → i18n-provider-DBzM2kq0.js} +33 -29
  44. package/dist/{index-CWG70Tzs.d.ts → index-Bp-nOH1C.d.ts} +47 -4
  45. package/dist/{maplibre-BY1oX1mY.js → maplibre-CyYmXn_X.js} +1 -1
  46. package/dist/{pdfWorker-CVTzVD4D.js → pdfWorker-CUIPZWn6.js} +2 -2
  47. package/dist/{popover--syRPfsv.js → popover-Dyeqjwb1.js} +2 -2
  48. package/dist/{scrollarea-LZjvVdDY.js → scrollarea-pL4zovZK.js} +4 -4
  49. package/dist/{skeleton-BKBf76U9.js → skeleton-0tUrq4FI.js} +2 -2
  50. package/dist/styles.css +1 -1
  51. package/dist/{toolbarStyles-DWH5y0G7.js → toolbarStyles-CwJc-0XI.js} +2 -2
  52. package/dist/{tooltip-BX4dSfeL.js → tooltip-DFMOxXQO.js} +54 -54
  53. package/dist/{types-B5_9Wvof.d.ts → types-vsDe9Lim.d.ts} +1 -1
  54. package/dist/{useData-y9LqXE8Q.js → useData-B5ypIyYg.js} +7 -7
  55. package/package.json +2 -1
  56. package/dist/F0AudioPlayer-JeQhMHzn.js +0 -2
  57. package/dist/F0VideoPlayer-C6_J4Sku.js +0 -1
@@ -1667,11 +1667,32 @@ interface ExpenseProfile {
1667
1667
  }
1668
1668
  //#endregion
1669
1669
  //#region src/elements/Action/types.d.ts
1670
- declare const actionButtonVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai"];
1670
+ declare const actionButtonVariants: readonly [
1671
+ /** The brand red, for the single standout action on a surface. */
1672
+ "hero",
1673
+ /** The everyday main action, in the ink colour. */
1674
+ "primary",
1675
+ /** The alternative next to a primary: a light field with a border. */
1676
+ "secondary",
1677
+ /** The quietest filled button, on a light grey fill. */
1678
+ "tertiary",
1679
+ /** @deprecated Use `hero`. An alias that renders the same button. */
1680
+ "default",
1681
+ /** @deprecated Use `secondary`. An alias that renders the same button. */
1682
+ "outline", "critical",
1683
+ /** @deprecated Use `tertiary`. An alias that renders the same button. */
1684
+ "neutral", "ghost",
1685
+ /**
1686
+ * Upsell: the secondary button with its icon painted in the promote yellow.
1687
+ * Pair it with the `Upsell` icon (a lightning bolt).
1688
+ */
1689
+ "promote",
1690
+ /** @deprecated Use `promote`. An alias that renders the same button. */
1691
+ "outlinePromote", "ai"];
1671
1692
  type ActionButtonVariant = (typeof actionButtonVariants)[number];
1672
1693
  declare const actionLinkVariants: readonly ["link", "unstyled", "mention"];
1673
1694
  type ActionLinkVariant = (typeof actionLinkVariants)[number];
1674
- declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai", "link", "unstyled", "mention"];
1695
+ declare const actionVariants: readonly ["hero", "primary", "secondary", "tertiary", "default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai", "link", "unstyled", "mention"];
1675
1696
  type ActionVariant = (typeof actionVariants)[number];
1676
1697
  declare const actionSizes: readonly ["sm", "md", "lg"];
1677
1698
  type ActionSize = (typeof actionSizes)[number];
@@ -1822,7 +1843,7 @@ declare const useEmojiConfetti: () => {
1822
1843
  };
1823
1844
  //#endregion
1824
1845
  //#region src/elements/F0Button/types.d.ts
1825
- declare const buttonVariants: ("critical" | "default" | "ghost" | "neutral" | "outline" | "outlinePromote" | "promote")[];
1846
+ declare const buttonVariants: ("critical" | "default" | "ghost" | "hero" | "neutral" | "outline" | "outlinePromote" | "primary" | "promote" | "secondary" | "tertiary")[];
1826
1847
  type ButtonVariant = Exclude<(typeof actionButtonVariants)[number], "ai">;
1827
1848
  declare const buttonSizes: readonly ["sm", "md", "lg"];
1828
1849
  type ButtonSize = (typeof buttonSizes)[number];
@@ -1861,7 +1882,24 @@ type F0ButtonProps = {
1861
1882
  * loading state.
1862
1883
  */
1863
1884
  onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<unknown>;
1864
- /** The variant of the button. */
1885
+ /**
1886
+ * The variant of the button, from loudest to quietest:
1887
+ *
1888
+ * - `"hero"`: the brand red. The single standout action on a surface; use it
1889
+ * sparingly.
1890
+ * - `"primary"`: the everyday main action, in the ink colour.
1891
+ * - `"secondary"`: the alternative next to a primary, with a border.
1892
+ * - `"tertiary"`: the quietest filled button, on a light grey fill.
1893
+ * - `"ghost"`: no fill or border, for icon-only buttons.
1894
+ *
1895
+ * `"critical"` marks destructive actions with a solid amber field.
1896
+ * `"promote"` marks upsell actions: the secondary button with its icon in
1897
+ * the promote yellow. Pair it with the `Upsell` icon.
1898
+ *
1899
+ * Deprecated: `"default"`, `"outline"`, `"neutral"` and `"outlinePromote"`
1900
+ * are aliases of `"hero"`, `"secondary"`, `"tertiary"` and `"promote"`. A
1901
+ * button with no variant still renders the hero.
1902
+ */
1865
1903
  variant?: ButtonVariant;
1866
1904
  /**
1867
1905
  * Sets the button size. 'lg' for mobile, 'md' for desktop, 'sm' for
@@ -1877,6 +1915,11 @@ type F0ButtonProps = {
1877
1915
  icon?: IconType;
1878
1916
  /** Sets the side of the label the icon is placed on. Defaults to "left". */
1879
1917
  iconPosition?: "left" | "right";
1918
+ /**
1919
+ * Paints the icon in one of the icon colour tokens (for example
1920
+ * `"positive"` or `"promote"`) instead of the variant's own icon colour.
1921
+ */
1922
+ iconColor?: IconColor;
1880
1923
  /** If true, the button rotates the icon while the button is hovered. */
1881
1924
  iconRotate?: boolean;
1882
1925
  /**
@@ -1,6 +1,6 @@
1
1
  import { o as e } from "./rolldown-runtime-BItFwnF5.js";
2
2
  import { t } from "./dist-Cuwaibqg.js";
3
- import { s as n } from "./F0Map-DaH9mZFi.js";
3
+ import { s as n } from "./F0Map-Zf0t18uK.js";
4
4
  import './maplibre-gl.css';import './maplibre.css';/* empty css */
5
5
  import { t as r } from "./maplibre-gl-DVldSYfz.js";
6
6
  //#region ../../node_modules/.pnpm/@mapbox+mapbox-gl-rtl-text@0.2.3_mapbox-gl@1.13.3/node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js?url
@@ -1,6 +1,6 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
2
- import { z as r } from "./tooltip-BX4dSfeL.js";
3
- import { ya as i } from "./F0CanvasPanel-Bajbnrie.js";
2
+ import { z as r } from "./tooltip-DFMOxXQO.js";
3
+ import { ya as i } from "./F0CanvasPanel-BRxFVcag.js";
4
4
  import { t as a } from "./dist-Dt-cTb6D.js";
5
5
  import { n as o, r as s } from "./pdfWorkerConfig-BwllKt1K.js";
6
6
  import { createContext as c, forwardRef as l, useCallback as u, useContext as d, useEffect as f, useImperativeHandle as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _ } from "react";
@@ -1,5 +1,5 @@
1
- import { L as e, s as t } from "./tooltip-BX4dSfeL.js";
2
- import { n } from "./F0Icon-1popYub0.js";
1
+ import { L as e, s as t } from "./tooltip-DFMOxXQO.js";
2
+ import { n } from "./F0Icon-CqAyRMcQ.js";
3
3
  import * as r from "react";
4
4
  import i, { createElement as a, forwardRef as o, useEffect as s, useLayoutEffect as c, useState as l } from "react";
5
5
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
- import { L as e } from "./tooltip-BX4dSfeL.js";
2
- import { i as t, r as n } from "./F0Button-CVBX4mpV.js";
3
- import { o as r } from "./F0Icon-1popYub0.js";
4
- import { E as i, O as a, T as o, b as s, p as c, w as l, y as u } from "./popover--syRPfsv.js";
1
+ import { L as e } from "./tooltip-DFMOxXQO.js";
2
+ import { i as t, r as n } from "./F0Button-B2oESTiV.js";
3
+ import { o as r } from "./F0Icon-CqAyRMcQ.js";
4
+ import { E as i, O as a, T as o, b as s, p as c, w as l, y as u } from "./popover-Dyeqjwb1.js";
5
5
  import * as d from "react";
6
6
  import { createElement as f, forwardRef as p, useEffect as m, useRef as h } from "react";
7
7
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { l as e } from "./i18n-provider-CJrQqAyn.js";
2
- import { L as t } from "./tooltip-BX4dSfeL.js";
1
+ import { u as e } from "./i18n-provider-DBzM2kq0.js";
2
+ import { L as t } from "./tooltip-DFMOxXQO.js";
3
3
  import { forwardRef as n, memo as r } from "react";
4
4
  import { jsx as i } from "react/jsx-runtime";
5
5
  //#region src/elements/lib/experimental.ts