@factorialco/f0-react 14.31.3 → 15.0.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-DqVIQZoW.js → ArchiveThumbnail-CMOY3hug.js} +5 -5
- package/dist/{ArchiveViewer-b2Wp0JUG.js → ArchiveViewer-Bc5iN2gm.js} +15 -15
- package/dist/{ChatPostComposerDialog-Zsz4Ni_S.js → ChatPostComposerDialog-NOdBRHQW.js} +3 -3
- package/dist/{CoachmarkProvider-C78Xiefk.js → CoachmarkProvider-CQE9J_S1.js} +26525 -26539
- package/dist/{CodeThumbnail-u2nL4mSO.js → CodeThumbnail-JLPjPSHE.js} +1 -1
- package/dist/{CodeViewer-hVg25taQ.js → CodeViewer-HhRZ_KtU.js} +8 -8
- package/dist/{DocumentToolbar-DY5GWF2m.js → DocumentToolbar-C3YeGLiY.js} +5 -5
- package/dist/{DocxViewer-BvNPALXn.js → DocxViewer-B_pUywX2.js} +3 -3
- package/dist/{F0AiProcessingOverlay-DJL2v246.js → F0AiProcessingOverlay-CreyUmNt.js} +2869 -2398
- package/dist/{F0Alert-BLx10d2-.js → F0Alert-Dfw9wvmG.js} +15 -15
- package/dist/F0AudioPlayer-BqKZE5cb.js +2 -0
- package/dist/{F0Button-BfcH39fa.js → F0Button-Hs9dD3kp.js} +3281 -3224
- package/dist/{F0CanvasPanel-D7WW8pd6.js → F0CanvasPanel-QAikAHrt.js} +9045 -8669
- package/dist/F0CanvasPanel.css +1 -1
- package/dist/{F0DocumentViewer-DqmvgGr8.js → F0DocumentViewer-BBZNZzXF.js} +1 -1
- package/dist/{F0DocumentViewer-CjrlS3ZO.js → F0DocumentViewer-DtBBvHeY.js} +4 -4
- package/dist/{F0Icon-BODMWayd.js → F0Icon-C0Ks-zGo.js} +1 -1
- package/dist/{F0Map-CVeX6rRX.js → F0Map-DrGsOz1c.js} +609 -599
- package/dist/{F0Select-CYFD0h9x.js → F0Select-D8elfH2c.js} +7134 -7107
- package/dist/{F0Text-DYI-dgwG.js → F0Text-BdLMC6rw.js} +2 -2
- package/dist/F0VideoPlayer-BzehPrsz.js +1 -0
- package/dist/{F0VideoPlayer-Z7YNLq4v.js → F0VideoPlayer-mLzBl6O5.js} +255 -255
- package/dist/{HtmlThumbnail-CENW-PSn.js → HtmlThumbnail-C2fHnIU5.js} +1 -1
- package/dist/{HtmlViewer-CkYgtVYE.js → HtmlViewer-CNHsP0_Q.js} +9 -9
- package/dist/{LayoutGroup-BDMkthvj.js → LayoutGroup-B5tU1ztA.js} +14 -14
- package/dist/{Map-BDHD0YwP.js → Map-Cfzh4DYS.js} +13 -13
- package/dist/{PdfThumbnail-8GNGxMJt.js → PdfThumbnail-BhMepsUK.js} +1 -1
- package/dist/{PdfViewer-Dnw3HwAO.js → PdfViewer-CL30Vr4B.js} +11 -11
- package/dist/{SandboxedHtmlFrame-DulTTwnE.js → SandboxedHtmlFrame-QjmWXSV-.js} +2 -2
- package/dist/{SheetViewer-zWlafaWN.js → SheetViewer-Cs_vLeh4.js} +15 -15
- package/dist/{TextViewer-Z77_eAGH.js → TextViewer-CGoMovpP.js} +4 -4
- package/dist/ai.d.ts +4 -4
- package/dist/ai.js +5 -5
- package/dist/component-status.js +34 -12
- package/dist/{dist-Cuwaibqg.js → dist-BCNVh6y5.js} +2 -1
- package/dist/dist-C8J2FPJo.js +970 -0
- package/dist/{dist-Dh-hHue-.js → dist-CJIEhLuL.js} +3 -3
- package/dist/dist-CQSuXDpA.js +12 -0
- package/dist/{dist-B1ho8lUr.js → dist-DVsrUl0U.js} +6 -6
- package/dist/{dist-CYzeNTKV.js → dist-DpAd2wW2.js} +40 -40
- package/dist/experimental.d.ts +92 -77
- package/dist/experimental.js +6667 -7067
- package/dist/{exports-Ck-BjPQ_.d.ts → exports-BSI98RKf.d.ts} +96 -94
- package/dist/f0.d.ts +52 -8
- package/dist/f0.js +1761 -1761
- package/dist/{google-D1V0swd7.js → google-CG30Y63J.js} +1 -1
- package/dist/{highlight-CXWCrLa3.js → highlight-DUGKJ8WM.js} +7 -7
- package/dist/{i18n-provider-C0z4575b.js → i18n-provider-DoTL-0tJ.js} +1 -1
- package/dist/{i18n-provider-defaults-D87XbZtT.d.ts → i18n-provider-defaults-BkNbvakp.d.ts} +21 -15
- package/dist/{i18n-provider-defaults-BeyCAnkS.js → i18n-provider-defaults-ZqFx7uFw.js} +21 -19
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BakET5p_.d.ts → index-CeGTmQfe.d.ts} +308 -385
- package/dist/{maplibre-HGgd69Ss.js → maplibre-iSstWV_1.js} +2 -2
- package/dist/{pdfWorker-t0S8Tmzi.js → pdfWorker-DwNAnhfp.js} +1 -1
- package/dist/{popover-BsFj9cmb.js → popover-CCSQvMSp.js} +898 -1678
- package/dist/{skeleton-DWdckpXm.js → skeleton-BsalZgC5.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-B9vf6pee.js → toolbarStyles-DGCICoyx.js} +1 -1
- package/dist/{types-BqSHd7u-.d.ts → types-Brch_2zb.d.ts} +2 -2
- package/dist/{useData-C7KI_3q1.js → useData-D4FE64eT.js} +110 -109
- package/package.json +6 -3
- package/tailwind.config.ts +49 -0
- package/dist/F0AudioPlayer-D6O-SSQc.js +0 -2
- package/dist/F0VideoPlayer-DSAREEuf.js +0 -1
- package/dist/scrollarea-CStky4Xl.js +0 -691
package/tailwind.config.ts
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { baseConfig } from "@factorialco/f0-core/tailwind"
|
|
2
2
|
import type { Config } from "tailwindcss"
|
|
3
|
+
import type { PluginUtils } from "tailwindcss/types/config"
|
|
4
|
+
import { internalAvatarColors } from "./src/elements/primitives/Avatar/types"
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Each avatar colour's soft tone: its lightest tint under initials in its
|
|
8
|
+
* darkest shade (`bg-avatar-soft-viridian text-avatar-soft-viridian`). Every
|
|
9
|
+
* pair clears 5:1, where the solid avatar's light initials on the mid shade
|
|
10
|
+
* fall to 1.8:1 on yellow. A person's chip in One's answers wears it.
|
|
11
|
+
*/
|
|
12
|
+
const avatarSoft =
|
|
13
|
+
(shade: 10 | 80) =>
|
|
14
|
+
({ theme }: PluginUtils) => ({
|
|
15
|
+
"avatar-soft": Object.fromEntries(
|
|
16
|
+
internalAvatarColors.map((color) => {
|
|
17
|
+
const channels = theme(`colors.${color}.${shade}`)
|
|
18
|
+
return [color, `hsl(${channels})`]
|
|
19
|
+
})
|
|
20
|
+
),
|
|
21
|
+
})
|
|
3
22
|
|
|
4
23
|
export default {
|
|
5
24
|
...baseConfig,
|
|
@@ -21,6 +40,26 @@ export default {
|
|
|
21
40
|
// The room Radix leaves a select's popup, so it never overflows the viewport.
|
|
22
41
|
"select-available": "var(--radix-select-content-available-width)",
|
|
23
42
|
},
|
|
43
|
+
backgroundColor: avatarSoft(10),
|
|
44
|
+
textColor: avatarSoft(80),
|
|
45
|
+
// Steps Tailwind's pixel scale skips: a mention chip's name sits 3px
|
|
46
|
+
// over its underline, an inline link 5px.
|
|
47
|
+
textUnderlineOffset: {
|
|
48
|
+
"3": "3px",
|
|
49
|
+
"5": "5px",
|
|
50
|
+
},
|
|
51
|
+
// A one-row grid that eases a block's height open and shut: shut, the
|
|
52
|
+
// row is `0fr` and its child (`min-h-0`, `overflow-hidden`) folds into
|
|
53
|
+
// it; open, `1fr` gives it the child's height.
|
|
54
|
+
gridTemplateRows: {
|
|
55
|
+
collapsed: "0fr",
|
|
56
|
+
expanded: "1fr",
|
|
57
|
+
},
|
|
58
|
+
transitionProperty: {
|
|
59
|
+
// The `grid-rows-collapsed` ⇄ `grid-rows-expanded` swap and the margin
|
|
60
|
+
// that goes with it.
|
|
61
|
+
collapse: "grid-template-rows,margin-top",
|
|
62
|
+
},
|
|
24
63
|
keyframes: {
|
|
25
64
|
...baseConfig.theme?.extend?.keyframes,
|
|
26
65
|
// Emitted only while some `animate-rotate-gradient` class is in use
|
|
@@ -57,6 +96,12 @@ export default {
|
|
|
57
96
|
from: { opacity: "0", transform: "translateY(4px)" },
|
|
58
97
|
to: { opacity: "1", transform: "translateY(0)" },
|
|
59
98
|
},
|
|
99
|
+
// A cut prompt title rolling to its end (`F0AiPromptRow`), which
|
|
100
|
+
// measures the distance into `--prompt-roll-shift`.
|
|
101
|
+
"prompt-roll": {
|
|
102
|
+
from: { transform: "translateX(0)" },
|
|
103
|
+
to: { transform: "translateX(var(--prompt-roll-shift, 0px))" },
|
|
104
|
+
},
|
|
60
105
|
},
|
|
61
106
|
animation: {
|
|
62
107
|
...baseConfig.theme?.extend?.animation,
|
|
@@ -67,6 +112,10 @@ export default {
|
|
|
67
112
|
// The duration is set inline per toast.
|
|
68
113
|
"toast-countdown": "toast-countdown linear forwards",
|
|
69
114
|
"toast-content-in": "toast-content-in 200ms ease-out",
|
|
115
|
+
// The duration is measured per row (`--prompt-roll-run`); the delay
|
|
116
|
+
// lets a passing pointer go by without starting it.
|
|
117
|
+
"prompt-roll":
|
|
118
|
+
"prompt-roll var(--prompt-roll-run, 0ms) linear 300ms forwards",
|
|
70
119
|
},
|
|
71
120
|
},
|
|
72
121
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as F0VideoPlayer } from "./F0VideoPlayer-Z7YNLq4v.js";
|