@factorialco/f0-react 16.23.0 → 16.25.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.
Files changed (62) hide show
  1. package/dist/{ArchiveThumbnail-DVDLD1KO.js → ArchiveThumbnail-BWTI7ezC.js} +3 -3
  2. package/dist/{ArchiveViewer-DE9_XePM.js → ArchiveViewer-BlnfVLsJ.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-CwwUOsKv.js → ChatPostComposerDialog-Ca3fcEzD.js} +3 -3
  4. package/dist/{CoachmarkProvider-DKzIMyWY.js → CoachmarkProvider-Bw3qcSzA.js} +9690 -9690
  5. package/dist/{CodeThumbnail-xdea98O9.js → CodeThumbnail-PtY8O4_C.js} +1 -1
  6. package/dist/{CodeViewer-Btnvqa-X.js → CodeViewer-DWjmRhtn.js} +6 -6
  7. package/dist/{DocumentToolbar-B_sygiWe.js → DocumentToolbar-CKdCMI09.js} +7 -7
  8. package/dist/{DocxViewer-BKEv7ORw.js → DocxViewer-g_DkGE6G.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-BBvhg8LC.js → F0AiProcessingOverlay-Dh3YEI67.js} +38 -38
  10. package/dist/{F0Alert-DtSyPCxn.js → F0Alert-BkUUU2Es.js} +5 -5
  11. package/dist/F0AudioPlayer-vHt8D_MA.js +2 -0
  12. package/dist/{F0Button-B217B6lh.js → F0Button-C1aRGjA7.js} +3 -3
  13. package/dist/{F0CanvasPanel-CQ7gX7-P.js → F0CanvasPanel-D6eWdQK0.js} +208 -208
  14. package/dist/{F0DocumentViewer-BZsMdNcY.js → F0DocumentViewer-BtD9t71V.js} +1 -1
  15. package/dist/{F0DocumentViewer-DWXuPrOG.js → F0DocumentViewer-DhffyI63.js} +4 -4
  16. package/dist/{F0Icon-CRETnjaC.js → F0Icon-CA8QrO7J.js} +1 -1
  17. package/dist/{F0Map-BuLyNjHC.js → F0Map-ClnO_2tF.js} +15 -15
  18. package/dist/{F0Select-DGvIH_Gp.js → F0Select-h6e4u9ej.js} +2164 -2148
  19. package/dist/{F0Text-DEJMiNLl.js → F0Text-C69-6-hA.js} +2 -2
  20. package/dist/F0VideoPlayer-Bdf6P4CE.js +1 -0
  21. package/dist/{F0VideoPlayer-B4JYaa4U.js → F0VideoPlayer-DaD7MnFA.js} +6 -6
  22. package/dist/{HtmlThumbnail-DLYEHdZx.js → HtmlThumbnail-DOW0qL8W.js} +1 -1
  23. package/dist/{HtmlViewer-OY8T2uX6.js → HtmlViewer-rIlra75S.js} +9 -9
  24. package/dist/{LayoutGroup-DECnUFBB.js → LayoutGroup-DnZBITzE.js} +1 -1
  25. package/dist/{Map-CuunG2oS.js → Map-Cs17xyE6.js} +10 -10
  26. package/dist/{PdfThumbnail-DfwDJHEr.js → PdfThumbnail-CXGUzm25.js} +1 -1
  27. package/dist/{PdfViewer-DzbV7lZw.js → PdfViewer-CTGhvHvW.js} +12 -12
  28. package/dist/{SandboxedHtmlFrame-Ba5FAjt6.js → SandboxedHtmlFrame-sIha8vuj.js} +2 -2
  29. package/dist/{SheetViewer-DGX6KHnL.js → SheetViewer-0KUrMA5z.js} +5 -5
  30. package/dist/{TextViewer-CLqt6uiQ.js → TextViewer-D3xpfBVm.js} +4 -4
  31. package/dist/ai.d.ts +4 -4
  32. package/dist/ai.js +4 -4
  33. package/dist/component-status.js +29 -7
  34. package/dist/{dist-ClS5kbGd.js → dist-CrKS7a4M.js} +1 -1
  35. package/dist/{dist-BAsn0JfF.js → dist-CsLQ4kGY.js} +1 -1
  36. package/dist/{dist-CLXu6f__.js → dist-DRhAsNk-.js} +2 -2
  37. package/dist/{dist-CpxH3Mhm.js → dist-R_v43tri.js} +1 -1
  38. package/dist/{dist-CBsv_N04.js → dist-S2UAyvMo.js} +4 -4
  39. package/dist/experimental.d.ts +12 -3
  40. package/dist/experimental.js +645 -641
  41. package/dist/{exports-BSFis6g6.d.ts → exports-BLEz8iU-.d.ts} +1 -1
  42. package/dist/f0.d.ts +2663 -2611
  43. package/dist/f0.js +2563 -2003
  44. package/dist/{highlight-DpVfX1K9.js → highlight-DeACQIIW.js} +1 -1
  45. package/dist/{i18n-provider-DyI_r6Au.js → i18n-provider-CCg0vfdK.js} +1 -1
  46. package/dist/{i18n-provider-defaults-FGAsdJJR.d.ts → i18n-provider-defaults-CXVl-d7E.d.ts} +8 -0
  47. package/dist/{i18n-provider-defaults-C8fwj3sA.js → i18n-provider-defaults-DdGz6_Og.js} +8 -0
  48. package/dist/i18n-provider-defaults.d.ts +1 -1
  49. package/dist/i18n-provider-defaults.js +1 -1
  50. package/dist/{index-DR7cCKE6.d.ts → index-DUvBbZtb.d.ts} +982 -13
  51. package/dist/{types-ChFboQlr.d.ts → index-w1eJlbAW.d.ts} +3 -818
  52. package/dist/{maplibre-BOwxOCps.js → maplibre-Vwv9Nk1T.js} +1 -1
  53. package/dist/{pdfWorker-DtUZLMfu.js → pdfWorker-D54oefWJ.js} +1 -1
  54. package/dist/{popover-CKVOp9XF.js → popover-BFt-Tk2I.js} +1 -1
  55. package/dist/{skeleton-Dw-7r7zp.js → skeleton-B05pNPYx.js} +1 -1
  56. package/dist/styles.css +1 -1
  57. package/dist/{toolbarStyles-C_OrVxv7.js → toolbarStyles-Btq_icPl.js} +1 -1
  58. package/dist/{useData-QJRr_47g.js → useData-CzdjLV9a.js} +169 -161
  59. package/package.json +1 -1
  60. package/tailwind.config.ts +26 -0
  61. package/dist/F0AudioPlayer-CbwGn5bL.js +0 -2
  62. package/dist/F0VideoPlayer-BYTQqwd2.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "16.23.0",
3
+ "version": "16.25.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/factorialco/f0.git",
@@ -1,6 +1,8 @@
1
1
  import { baseConfig } from "@factorialco/f0-core/tailwind"
2
2
  import type { Config } from "tailwindcss"
3
+ import plugin from "tailwindcss/plugin"
3
4
  import type { PluginUtils } from "tailwindcss/types/config"
5
+ import { chartColorTokens } from "./src/elements/lib/charts/data-chart-colors"
4
6
  import { internalAvatarColors } from "./src/elements/primitives/Avatar/types"
5
7
 
6
8
  /**
@@ -20,6 +22,21 @@ const avatarSoft =
20
22
  ),
21
23
  })
22
24
 
25
+ /**
26
+ * The chart color tokens as a theme color set (`bg-chart-viridian`), shade 50
27
+ * like `resolveChartColorToken`, for charts drawn in HTML. A `bg-opacity-*`
28
+ * class next to one makes it translucent; `chartColorBackgroundClasses` maps
29
+ * each token to its class.
30
+ */
31
+ const chartColors = ({ theme }: PluginUtils) => ({
32
+ chart: Object.fromEntries(
33
+ chartColorTokens.map((color) => {
34
+ const channels = theme(`colors.${color}.50`)
35
+ return [color, `hsl(${channels})`]
36
+ })
37
+ ),
38
+ })
39
+
23
40
  export default {
24
41
  ...baseConfig,
25
42
  content: [
@@ -59,6 +76,7 @@ export default {
59
76
  },
60
77
  backgroundColor: (utils: PluginUtils) => ({
61
78
  ...avatarSoft(10)(utils),
79
+ ...chartColors(utils),
62
80
  // F0SystemBanner's context strip: the viridian 70 step. The strip
63
81
  // carries F0's dark theme, which maps `--selected-70` to the 50 step,
64
82
  // so it reads the palette directly.
@@ -151,4 +169,12 @@ export default {
151
169
  },
152
170
  },
153
171
  },
172
+ plugins: [
173
+ ...(baseConfig.plugins ?? []),
174
+ // Text set top → bottom, e.g. the title of a vertical axis: a rotate alone
175
+ // keeps the horizontal width.
176
+ plugin(({ addUtilities }) => {
177
+ addUtilities({ ".writing-vertical": { "writing-mode": "vertical-rl" } })
178
+ }),
179
+ ],
154
180
  } satisfies Config
@@ -1,2 +0,0 @@
1
- export { la as F0AudioPlayer } from "./F0CanvasPanel-CQ7gX7-P.js";
2
- import "./f0.js";
@@ -1 +0,0 @@
1
- export { t as F0VideoPlayer } from "./F0VideoPlayer-B4JYaa4U.js";