@factorialco/f0-react 16.23.0 → 16.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.
- package/dist/{ArchiveThumbnail-DVDLD1KO.js → ArchiveThumbnail-BWTI7ezC.js} +3 -3
- package/dist/{ArchiveViewer-DE9_XePM.js → ArchiveViewer-BlnfVLsJ.js} +5 -5
- package/dist/{ChatPostComposerDialog-CwwUOsKv.js → ChatPostComposerDialog-Ca3fcEzD.js} +3 -3
- package/dist/{CoachmarkProvider-DKzIMyWY.js → CoachmarkProvider-Bw3qcSzA.js} +9690 -9690
- package/dist/{CodeThumbnail-xdea98O9.js → CodeThumbnail-PtY8O4_C.js} +1 -1
- package/dist/{CodeViewer-Btnvqa-X.js → CodeViewer-DWjmRhtn.js} +6 -6
- package/dist/{DocumentToolbar-B_sygiWe.js → DocumentToolbar-CKdCMI09.js} +7 -7
- package/dist/{DocxViewer-BKEv7ORw.js → DocxViewer-g_DkGE6G.js} +3 -3
- package/dist/{F0AiProcessingOverlay-BBvhg8LC.js → F0AiProcessingOverlay-Dh3YEI67.js} +38 -38
- package/dist/{F0Alert-DtSyPCxn.js → F0Alert-BkUUU2Es.js} +5 -5
- package/dist/F0AudioPlayer-vHt8D_MA.js +2 -0
- package/dist/{F0Button-B217B6lh.js → F0Button-C1aRGjA7.js} +3 -3
- package/dist/{F0CanvasPanel-CQ7gX7-P.js → F0CanvasPanel-D6eWdQK0.js} +208 -208
- package/dist/{F0DocumentViewer-BZsMdNcY.js → F0DocumentViewer-BtD9t71V.js} +1 -1
- package/dist/{F0DocumentViewer-DWXuPrOG.js → F0DocumentViewer-DhffyI63.js} +4 -4
- package/dist/{F0Icon-CRETnjaC.js → F0Icon-CA8QrO7J.js} +1 -1
- package/dist/{F0Map-BuLyNjHC.js → F0Map-ClnO_2tF.js} +15 -15
- package/dist/{F0Select-DGvIH_Gp.js → F0Select-h6e4u9ej.js} +2164 -2148
- package/dist/{F0Text-DEJMiNLl.js → F0Text-C69-6-hA.js} +2 -2
- package/dist/F0VideoPlayer-Bdf6P4CE.js +1 -0
- package/dist/{F0VideoPlayer-B4JYaa4U.js → F0VideoPlayer-DaD7MnFA.js} +6 -6
- package/dist/{HtmlThumbnail-DLYEHdZx.js → HtmlThumbnail-DOW0qL8W.js} +1 -1
- package/dist/{HtmlViewer-OY8T2uX6.js → HtmlViewer-rIlra75S.js} +9 -9
- package/dist/{LayoutGroup-DECnUFBB.js → LayoutGroup-DnZBITzE.js} +1 -1
- package/dist/{Map-CuunG2oS.js → Map-Cs17xyE6.js} +10 -10
- package/dist/{PdfThumbnail-DfwDJHEr.js → PdfThumbnail-CXGUzm25.js} +1 -1
- package/dist/{PdfViewer-DzbV7lZw.js → PdfViewer-CTGhvHvW.js} +12 -12
- package/dist/{SandboxedHtmlFrame-Ba5FAjt6.js → SandboxedHtmlFrame-sIha8vuj.js} +2 -2
- package/dist/{SheetViewer-DGX6KHnL.js → SheetViewer-0KUrMA5z.js} +5 -5
- package/dist/{TextViewer-CLqt6uiQ.js → TextViewer-D3xpfBVm.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +29 -7
- package/dist/{dist-ClS5kbGd.js → dist-CrKS7a4M.js} +1 -1
- package/dist/{dist-BAsn0JfF.js → dist-CsLQ4kGY.js} +1 -1
- package/dist/{dist-CLXu6f__.js → dist-DRhAsNk-.js} +2 -2
- package/dist/{dist-CpxH3Mhm.js → dist-R_v43tri.js} +1 -1
- package/dist/{dist-CBsv_N04.js → dist-S2UAyvMo.js} +4 -4
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +466 -466
- package/dist/{exports-BSFis6g6.d.ts → exports-Ov8gD_6H.d.ts} +1 -1
- package/dist/f0.d.ts +137 -6
- package/dist/f0.js +2588 -2121
- package/dist/{highlight-DpVfX1K9.js → highlight-DeACQIIW.js} +1 -1
- package/dist/{i18n-provider-DyI_r6Au.js → i18n-provider-CCg0vfdK.js} +1 -1
- package/dist/{i18n-provider-defaults-FGAsdJJR.d.ts → i18n-provider-defaults-CXVl-d7E.d.ts} +8 -0
- package/dist/{i18n-provider-defaults-C8fwj3sA.js → i18n-provider-defaults-DdGz6_Og.js} +8 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-DR7cCKE6.d.ts → index-DIIVN_RC.d.ts} +11 -1
- package/dist/{maplibre-BOwxOCps.js → maplibre-Vwv9Nk1T.js} +1 -1
- package/dist/{pdfWorker-DtUZLMfu.js → pdfWorker-D54oefWJ.js} +1 -1
- package/dist/{popover-CKVOp9XF.js → popover-BFt-Tk2I.js} +1 -1
- package/dist/{skeleton-Dw-7r7zp.js → skeleton-B05pNPYx.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-C_OrVxv7.js → toolbarStyles-Btq_icPl.js} +1 -1
- package/dist/{types-ChFboQlr.d.ts → types-GYsHhskI.d.ts} +2 -2
- package/dist/{useData-QJRr_47g.js → useData-CzdjLV9a.js} +169 -161
- package/package.json +1 -1
- package/tailwind.config.ts +26 -0
- package/dist/F0AudioPlayer-CbwGn5bL.js +0 -2
- package/dist/F0VideoPlayer-BYTQqwd2.js +0 -1
package/package.json
CHANGED
package/tailwind.config.ts
CHANGED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export { t as F0VideoPlayer } from "./F0VideoPlayer-B4JYaa4U.js";
|