@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e, d as t, t as n } from "./dist-C8J2FPJo.js";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { forwardRef as i } from "react";
|
|
4
4
|
import { jsx as a } from "react/jsx-runtime";
|
|
@@ -32,7 +32,7 @@ function c(e, [t, n]) {
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region ../../node_modules/.pnpm/@radix-ui+react-toggle@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
34
34
|
var l = "Toggle", u = r.forwardRef((r, i) => {
|
|
35
|
-
let { pressed: o, defaultPressed: s = !1, onPressedChange: c, ...l } = r, [u = !1, d] =
|
|
35
|
+
let { pressed: o, defaultPressed: s = !1, onPressedChange: c, ...l } = r, [u = !1, d] = n({
|
|
36
36
|
prop: o,
|
|
37
37
|
onChange: c,
|
|
38
38
|
defaultProp: s
|
|
@@ -44,7 +44,7 @@ var l = "Toggle", u = r.forwardRef((r, i) => {
|
|
|
44
44
|
"data-disabled": r.disabled ? "" : void 0,
|
|
45
45
|
...l,
|
|
46
46
|
ref: i,
|
|
47
|
-
onClick:
|
|
47
|
+
onClick: e(r.onClick, () => {
|
|
48
48
|
r.disabled || d(!u);
|
|
49
49
|
})
|
|
50
50
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { g as e } from "./dist-C8J2FPJo.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
4
|
+
var n = t.useId || (() => void 0), r = 0;
|
|
5
|
+
function i(i) {
|
|
6
|
+
let [a, o] = t.useState(n());
|
|
7
|
+
return e(() => {
|
|
8
|
+
i || o((e) => e ?? String(r++));
|
|
9
|
+
}, [i]), i || (a ? `radix-${a}` : "");
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as e, p as t, v as n } from "./dist-C8J2FPJo.js";
|
|
2
2
|
import r from "react";
|
|
3
3
|
import { jsx as i } from "react/jsx-runtime";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom_8b50dd17dda88491984286d0a66c0706/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
5
5
|
function a(a) {
|
|
6
|
-
let o = a + "CollectionProvider", [s, c] =
|
|
6
|
+
let o = a + "CollectionProvider", [s, c] = n(o), [l, u] = s(o, {
|
|
7
7
|
collectionRef: { current: null },
|
|
8
8
|
itemMap: /* @__PURE__ */ new Map()
|
|
9
9
|
}), d = (e) => {
|
|
@@ -16,16 +16,16 @@ function a(a) {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
d.displayName = o;
|
|
19
|
-
let f = a + "CollectionSlot", p = r.forwardRef((
|
|
20
|
-
let { scope: a, children: o } =
|
|
19
|
+
let f = a + "CollectionSlot", p = r.forwardRef((n, r) => {
|
|
20
|
+
let { scope: a, children: o } = n, s = u(f, a), c = e(r, s.collectionRef);
|
|
21
21
|
return /* @__PURE__ */ i(t, {
|
|
22
22
|
ref: c,
|
|
23
23
|
children: o
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
26
|
p.displayName = f;
|
|
27
|
-
let m = a + "CollectionItemSlot", h = "data-radix-collection-item", g = r.forwardRef((
|
|
28
|
-
let { scope: o, children: s, ...c } =
|
|
27
|
+
let m = a + "CollectionItemSlot", h = "data-radix-collection-item", g = r.forwardRef((n, a) => {
|
|
28
|
+
let { scope: o, children: s, ...c } = n, l = r.useRef(null), d = e(a, l), f = u(m, o);
|
|
29
29
|
return r.useEffect(() => (f.itemMap.set(l, {
|
|
30
30
|
ref: l,
|
|
31
31
|
...c
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e } from "./dist-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as l } from "./dist-
|
|
1
|
+
import { n as e } from "./dist-CJIEhLuL.js";
|
|
2
|
+
import { _ as t, c as n, d as r, h as i, l as a, t as o, v as s } from "./dist-C8J2FPJo.js";
|
|
3
|
+
import { t as c } from "./dist-DVsrUl0U.js";
|
|
4
|
+
import { t as l } from "./dist-CQSuXDpA.js";
|
|
5
5
|
import u, * as d from "react";
|
|
6
6
|
import { jsx as f } from "react/jsx-runtime";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-d_623ed541a34698abf1f463cdde77df29/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
8
8
|
var p = "rovingFocusGroup.onEntryFocus", m = {
|
|
9
9
|
bubbles: !1,
|
|
10
10
|
cancelable: !0
|
|
11
|
-
}, h = "RovingFocusGroup", [g, _, v] =
|
|
11
|
+
}, h = "RovingFocusGroup", [g, _, v] = c(h), [y, b] = s(h, [v]), [x, S] = y(h), C = d.forwardRef((e, t) => /* @__PURE__ */ f(g.Provider, {
|
|
12
12
|
scope: e.__scopeRovingFocusGroup,
|
|
13
13
|
children: /* @__PURE__ */ f(g.Slot, {
|
|
14
14
|
scope: e.__scopeRovingFocusGroup,
|
|
@@ -19,17 +19,17 @@ var p = "rovingFocusGroup.onEntryFocus", m = {
|
|
|
19
19
|
})
|
|
20
20
|
}));
|
|
21
21
|
C.displayName = h;
|
|
22
|
-
var w = d.forwardRef((e,
|
|
23
|
-
let { __scopeRovingFocusGroup:
|
|
22
|
+
var w = d.forwardRef((e, s) => {
|
|
23
|
+
let { __scopeRovingFocusGroup: c, orientation: l, loop: u = !1, dir: h, currentTabStopId: g, defaultCurrentTabStopId: v, onCurrentTabStopIdChange: y, onEntryFocus: b, preventScrollOnEntryFocus: S = !1, ...C } = e, w = d.useRef(null), T = i(s, w), E = a(h), [D = null, O] = o({
|
|
24
24
|
prop: g,
|
|
25
25
|
defaultProp: v,
|
|
26
26
|
onChange: y
|
|
27
|
-
}), [k, j] = d.useState(!1), M = t(b), N = _(
|
|
27
|
+
}), [k, j] = d.useState(!1), M = t(b), N = _(c), P = d.useRef(!1), [F, I] = d.useState(0);
|
|
28
28
|
return d.useEffect(() => {
|
|
29
29
|
let e = w.current;
|
|
30
30
|
if (e) return e.addEventListener(p, M), () => e.removeEventListener(p, M);
|
|
31
31
|
}, [M]), /* @__PURE__ */ f(x, {
|
|
32
|
-
scope:
|
|
32
|
+
scope: c,
|
|
33
33
|
orientation: l,
|
|
34
34
|
dir: E,
|
|
35
35
|
loop: u,
|
|
@@ -38,7 +38,7 @@ var w = d.forwardRef((e, n) => {
|
|
|
38
38
|
onItemShiftTab: d.useCallback(() => j(!0), []),
|
|
39
39
|
onFocusableItemAdd: d.useCallback(() => I((e) => e + 1), []),
|
|
40
40
|
onFocusableItemRemove: d.useCallback(() => I((e) => e - 1), []),
|
|
41
|
-
children: /* @__PURE__ */ f(
|
|
41
|
+
children: /* @__PURE__ */ f(r.div, {
|
|
42
42
|
tabIndex: k || F === 0 ? -1 : 0,
|
|
43
43
|
"data-orientation": l,
|
|
44
44
|
...C,
|
|
@@ -47,10 +47,10 @@ var w = d.forwardRef((e, n) => {
|
|
|
47
47
|
outline: "none",
|
|
48
48
|
...e.style
|
|
49
49
|
},
|
|
50
|
-
onMouseDown:
|
|
50
|
+
onMouseDown: n(e.onMouseDown, () => {
|
|
51
51
|
P.current = !0;
|
|
52
52
|
}),
|
|
53
|
-
onFocus:
|
|
53
|
+
onFocus: n(e.onFocus, (e) => {
|
|
54
54
|
let t = !P.current;
|
|
55
55
|
if (e.target === e.currentTarget && t && !k) {
|
|
56
56
|
let t = new CustomEvent(p, m);
|
|
@@ -65,32 +65,32 @@ var w = d.forwardRef((e, n) => {
|
|
|
65
65
|
}
|
|
66
66
|
P.current = !1;
|
|
67
67
|
}),
|
|
68
|
-
onBlur:
|
|
68
|
+
onBlur: n(e.onBlur, () => j(!1))
|
|
69
69
|
})
|
|
70
70
|
});
|
|
71
71
|
}), T = "RovingFocusGroupItem", E = d.forwardRef((e, t) => {
|
|
72
|
-
let { __scopeRovingFocusGroup:
|
|
72
|
+
let { __scopeRovingFocusGroup: i, focusable: a = !0, active: o = !1, tabStopId: s, ...c } = e, u = l(), p = s || u, m = S(T, i), h = m.currentTabStopId === p, v = _(i), { onFocusableItemAdd: y, onFocusableItemRemove: b } = m;
|
|
73
73
|
return d.useEffect(() => {
|
|
74
|
-
if (
|
|
74
|
+
if (a) return y(), () => b();
|
|
75
75
|
}, [
|
|
76
|
-
|
|
76
|
+
a,
|
|
77
77
|
y,
|
|
78
78
|
b
|
|
79
79
|
]), /* @__PURE__ */ f(g.ItemSlot, {
|
|
80
|
-
scope:
|
|
80
|
+
scope: i,
|
|
81
81
|
id: p,
|
|
82
|
-
focusable:
|
|
82
|
+
focusable: a,
|
|
83
83
|
active: o,
|
|
84
|
-
children: /* @__PURE__ */ f(
|
|
84
|
+
children: /* @__PURE__ */ f(r.span, {
|
|
85
85
|
tabIndex: h ? 0 : -1,
|
|
86
86
|
"data-orientation": m.orientation,
|
|
87
|
-
...
|
|
87
|
+
...c,
|
|
88
88
|
ref: t,
|
|
89
|
-
onMouseDown:
|
|
90
|
-
|
|
89
|
+
onMouseDown: n(e.onMouseDown, (e) => {
|
|
90
|
+
a ? m.onItemFocus(p) : e.preventDefault();
|
|
91
91
|
}),
|
|
92
|
-
onFocus:
|
|
93
|
-
onKeyDown:
|
|
92
|
+
onFocus: n(e.onFocus, () => m.onItemFocus(p)),
|
|
93
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
94
94
|
if (e.key === "Tab" && e.shiftKey) {
|
|
95
95
|
m.onItemShiftTab();
|
|
96
96
|
return;
|
|
@@ -138,7 +138,7 @@ function A(e, t = !1) {
|
|
|
138
138
|
function j(e, t) {
|
|
139
139
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
140
140
|
}
|
|
141
|
-
var M = C, N = E, P = "ToggleGroup", [F, I] =
|
|
141
|
+
var M = C, N = E, P = "ToggleGroup", [F, I] = s(P, [b]), L = b(), R = u.forwardRef((e, t) => {
|
|
142
142
|
let { type: n, ...r } = e;
|
|
143
143
|
if (n === "single") return /* @__PURE__ */ f(V, {
|
|
144
144
|
...r,
|
|
@@ -152,10 +152,10 @@ var M = C, N = E, P = "ToggleGroup", [F, I] = n(P, [b]), L = b(), R = u.forwardR
|
|
|
152
152
|
});
|
|
153
153
|
R.displayName = P;
|
|
154
154
|
var [z, B] = F(P), V = u.forwardRef((e, t) => {
|
|
155
|
-
let { value: n, defaultValue:
|
|
155
|
+
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [s, c] = o({
|
|
156
156
|
prop: n,
|
|
157
|
-
defaultProp:
|
|
158
|
-
onChange:
|
|
157
|
+
defaultProp: r,
|
|
158
|
+
onChange: i
|
|
159
159
|
});
|
|
160
160
|
return /* @__PURE__ */ f(z, {
|
|
161
161
|
scope: e.__scopeToggleGroup,
|
|
@@ -164,15 +164,15 @@ var [z, B] = F(P), V = u.forwardRef((e, t) => {
|
|
|
164
164
|
onItemActivate: c,
|
|
165
165
|
onItemDeactivate: u.useCallback(() => c(""), [c]),
|
|
166
166
|
children: /* @__PURE__ */ f(G, {
|
|
167
|
-
...
|
|
167
|
+
...a,
|
|
168
168
|
ref: t
|
|
169
169
|
})
|
|
170
170
|
});
|
|
171
171
|
}), H = u.forwardRef((e, t) => {
|
|
172
|
-
let { value: n, defaultValue:
|
|
172
|
+
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [s = [], c] = o({
|
|
173
173
|
prop: n,
|
|
174
|
-
defaultProp:
|
|
175
|
-
onChange:
|
|
174
|
+
defaultProp: r,
|
|
175
|
+
onChange: i
|
|
176
176
|
}), l = u.useCallback((e) => c((t = []) => [...t, e]), [c]), d = u.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
177
177
|
return /* @__PURE__ */ f(z, {
|
|
178
178
|
scope: e.__scopeToggleGroup,
|
|
@@ -181,33 +181,33 @@ var [z, B] = F(P), V = u.forwardRef((e, t) => {
|
|
|
181
181
|
onItemActivate: l,
|
|
182
182
|
onItemDeactivate: d,
|
|
183
183
|
children: /* @__PURE__ */ f(G, {
|
|
184
|
-
...
|
|
184
|
+
...a,
|
|
185
185
|
ref: t
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
189
|
R.displayName = P;
|
|
190
190
|
var [U, W] = F(P), G = u.forwardRef((e, t) => {
|
|
191
|
-
let { __scopeToggleGroup: n, disabled:
|
|
191
|
+
let { __scopeToggleGroup: n, disabled: i = !1, rovingFocus: o = !0, orientation: s, dir: c, loop: l = !0, ...u } = e, d = L(n), p = a(c), m = {
|
|
192
192
|
role: "group",
|
|
193
193
|
dir: p,
|
|
194
194
|
...u
|
|
195
195
|
};
|
|
196
196
|
return /* @__PURE__ */ f(U, {
|
|
197
197
|
scope: n,
|
|
198
|
-
rovingFocus:
|
|
199
|
-
disabled:
|
|
200
|
-
children:
|
|
198
|
+
rovingFocus: o,
|
|
199
|
+
disabled: i,
|
|
200
|
+
children: o ? /* @__PURE__ */ f(M, {
|
|
201
201
|
asChild: !0,
|
|
202
202
|
...d,
|
|
203
|
-
orientation:
|
|
203
|
+
orientation: s,
|
|
204
204
|
dir: p,
|
|
205
205
|
loop: l,
|
|
206
|
-
children: /* @__PURE__ */ f(
|
|
206
|
+
children: /* @__PURE__ */ f(r.div, {
|
|
207
207
|
...m,
|
|
208
208
|
ref: t
|
|
209
209
|
})
|
|
210
|
-
}) : /* @__PURE__ */ f(
|
|
210
|
+
}) : /* @__PURE__ */ f(r.div, {
|
|
211
211
|
...m,
|
|
212
212
|
ref: t
|
|
213
213
|
})
|