@factorialco/f0-react 12.9.1 → 12.11.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-cs8kx5Zf.js +70 -0
- package/dist/ArchiveViewer-BXUH8Lm5.js +172 -0
- package/dist/{ChatPostComposerDialog-CWTlUs36.js → ChatPostComposerDialog-CGil1xkf.js} +4 -4
- package/dist/{CoachmarkProvider-BMunnTvE.js → CoachmarkProvider-cZnuTk79.js} +21047 -21041
- package/dist/CodeThumbnail-Dcer4AyK.js +31 -0
- package/dist/CodeViewer-DFBwdIFm.js +98 -0
- package/dist/DocumentToolbar-vZEyzJ89.js +74 -0
- package/dist/{DocxThumbnail-kHTNnwW0.js → DocxThumbnail-CK9vFoTB.js} +2 -2
- package/dist/{DocxViewer-C1yw4Yqt.js → DocxViewer-DQV5Kv1n.js} +25 -23
- package/dist/ExternalLink-RdKU698E.js +22 -0
- package/dist/{F0AiProcessingOverlay-cdj77_VP.js → F0AiProcessingOverlay-DjGkQ2Nc.js} +1903 -1795
- package/dist/{popover-BjrPOMeQ.js → F0Button-FXkThQ9H.js} +3164 -8587
- package/dist/{F0CanvasPanel-DPEwyR89.js → F0CanvasPanel-BgDo2LWP.js} +3704 -3274
- package/dist/F0DocumentViewer-BXifXzUW.js +79 -0
- package/dist/F0DocumentViewer-DWuIFBHu.js +3 -0
- package/dist/F0Icon-Cj0USbCF.js +202 -0
- package/dist/{F0Map-ZSo-alK8.js → F0Map-Dwev4u-_.js} +199 -191
- package/dist/{F0Select-B-ZxVjXG.js → F0Select-BWWdEd7l.js} +6696 -6726
- package/dist/{F0Text-D92NWQRd.js → F0Text-DMZW7dhN.js} +25 -41
- package/dist/{F0VideoPlayer-B1-tEFuq.js → F0VideoPlayer-BmCmHG87.js} +206 -202
- package/dist/F0VideoPlayer-C8oYUUZM.js +1 -0
- package/dist/HtmlThumbnail-BAgkBH2r.js +60 -0
- package/dist/HtmlViewer-FRfNoxhP.js +208 -0
- package/dist/LockLocked-gdodYvT_.js +41 -0
- package/dist/{Map-B_Hw6nIS.js → Map-BxGPElF2.js} +56 -53
- package/dist/{PdfThumbnail-BWqOqM04.js → PdfThumbnail-CpGZz5Kq.js} +5 -5
- package/dist/PdfViewer-C81MK43i.js +296 -0
- package/dist/SandboxedHtmlFrame-B6YWhgyg.js +309 -0
- package/dist/{SheetViewer-B8JTSi3B.js → SheetViewer-DPGpMNqq.js} +36 -26
- package/dist/TextThumbnail-DKNxh344.js +15 -0
- package/dist/{TextViewer-CEZd1H8u.js → TextViewer-BH42AeG8.js} +44 -41
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/bash-BcZBmoDA.js +169 -0
- package/dist/c-Dv-5_kUQ.js +187 -0
- package/dist/component-status.js +2 -2
- package/dist/core-C0MCmPil.js +842 -0
- package/dist/cpp-CMQhucZt.js +236 -0
- package/dist/csharp-CuDKSCf2.js +260 -0
- package/dist/css-Dta7Q4Li.js +145 -0
- package/dist/dart-po7Eq73d.js +134 -0
- package/dist/diff-IgsQP-8T.js +39 -0
- package/dist/dist-D-MJbPvE.js +59 -0
- package/dist/dockerfile-B4Bz9I5u.js +34 -0
- package/dist/dos-1TcyLtUq.js +57 -0
- package/dist/elixir-BnEjyLGa.js +189 -0
- package/dist/erlang-tgri7ZSv.js +218 -0
- package/dist/experimental.d.ts +24 -4
- package/dist/experimental.js +5080 -4883
- package/dist/{exports-BdFDYdp1.d.ts → exports-C0yM5usu.d.ts} +13 -2
- package/dist/f0.d.ts +130 -8
- package/dist/f0.js +751 -745
- package/dist/fetchText-o_GOtiv3.js +54 -0
- package/dist/go-CEVmppuo.js +144 -0
- package/dist/graphql-BWwc-u8d.js +67 -0
- package/dist/groovy-BELuqtd6.js +127 -0
- package/dist/haskell-Cxh7aaFM.js +138 -0
- package/dist/highlight-CyebkDAD.js +114 -0
- package/dist/i18n-provider-BBhzYHef.js +150 -0
- package/dist/{i18n-provider-defaults-p0UGTA_k.js → i18n-provider-defaults-BUagKwGN.js} +32 -1
- package/dist/{i18n-provider-defaults-DQxuUMpU.d.ts → i18n-provider-defaults-CTDMMs-y.d.ts} +31 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-DIwa_k8B.d.ts → index-CduxMW5L.d.ts} +16 -2
- package/dist/ini-DA-F0rRr.js +88 -0
- package/dist/java-Bujnoc_f.js +174 -0
- package/dist/javascript-BeEhpXRE.js +431 -0
- package/dist/json-CxvE7tEw.js +42 -0
- package/dist/kotlin-DOwDGI_m.js +206 -0
- package/dist/less-DWlR-e-o.js +196 -0
- package/dist/lua-BlZiakwh.js +46 -0
- package/dist/makefile-D3841Yg4.js +57 -0
- package/dist/{maplibre-BSY0r3_z.js → maplibre-g-8NG-3q.js} +1 -1
- package/dist/markdown-D1wNG79U.js +178 -0
- package/dist/objectivec-DxtRzTBy.js +117 -0
- package/dist/ownValue-D4uSXt0d.js +4 -0
- package/dist/{pdfWorker-DRgGoc3T.js → pdfWorker-D5NB2V5s.js} +12 -9
- package/dist/pdfWorkerConfig-BwllKt1K.js +8 -0
- package/dist/perl-BWRmkuyz.js +192 -0
- package/dist/php-CjwybYSP.js +300 -0
- package/dist/popover-CQztsDta.js +4486 -0
- package/dist/{posts-DGtDUrKT.js → posts-BHRBUAYJ.js} +2 -0
- package/dist/powershell-CgKcNA5Q.js +188 -0
- package/dist/properties-Bc45MTzW.js +38 -0
- package/dist/protobuf-Bv_xSUaI.js +61 -0
- package/dist/purify.es-ZpfdAuNV.js +545 -0
- package/dist/python-D8PdGjgy.js +238 -0
- package/dist/r-DA-9ZIdU.js +140 -0
- package/dist/{renderDocx-_UmnE-yc.js → renderDocx-BW-uDyaZ.js} +2 -0
- package/dist/ruby-Bqr16BpN.js +262 -0
- package/dist/rust-BCvJMwk8.js +182 -0
- package/dist/scala-Du8mOD2z.js +162 -0
- package/dist/scss-AMxHqh46.js +155 -0
- package/dist/skeleton-DqejhQgn.js +72 -0
- package/dist/sql-BbYSgcOA.js +118 -0
- package/dist/styles.css +1 -1
- package/dist/swift-DRKtalPn.js +575 -0
- package/dist/toolbarStyles-0IygMI4H.js +52 -0
- package/dist/{types-hr47rxX3.d.ts → types-DlwD3i9z.d.ts} +3 -95
- package/dist/typescript-Bv8uKU6V.js +516 -0
- package/dist/{useData-B7LYSzh0.js → useData-Dkq5W4r6.js} +4917 -4876
- package/dist/useFetchedText-BR3_KLXx.js +38 -0
- package/dist/useThumbnailText-DwXQvLIe.js +22 -0
- package/dist/xml-BVpP05uE.js +162 -0
- package/dist/yaml-BNe2WG-i.js +144 -0
- package/dist/zipTree-B2zUYl6b.js +247 -0
- package/package.json +2 -1
- package/dist/DocumentToolbar-iHZHYbFM.js +0 -70
- package/dist/F0DocumentViewer-CzNVxjsJ.js +0 -3
- package/dist/F0DocumentViewer-sRCjFb2O.js +0 -400
- package/dist/F0VideoPlayer-B4Nu7ugx.js +0 -1
- package/dist/TextThumbnail-X04JgaNI.js +0 -26
- package/dist/dist-DvxtFKDL.js +0 -78
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { a as e, r as t } from "./i18n-provider-BBhzYHef.js";
|
|
2
|
+
import { n, t as r } from "./skeleton-DqejhQgn.js";
|
|
3
|
+
import { L as i } from "./tooltip-BX4dSfeL.js";
|
|
4
|
+
import { Na as a } from "./F0CanvasPanel-BgDo2LWP.js";
|
|
5
|
+
import { Suspense as o, forwardRef as s, lazy as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/F0DocumentViewerSkeleton.tsx
|
|
8
|
+
var d = () => {
|
|
9
|
+
let { pdfViewer: e } = t();
|
|
10
|
+
return /* @__PURE__ */ u("div", {
|
|
11
|
+
role: "status",
|
|
12
|
+
"aria-busy": "true",
|
|
13
|
+
"aria-live": "polite",
|
|
14
|
+
"aria-label": e.loading,
|
|
15
|
+
className: i("F0DocumentViewer__surface flex h-full w-full flex-col overflow-hidden", "border border-solid border-f1-border-secondary"),
|
|
16
|
+
children: [/* @__PURE__ */ u("div", {
|
|
17
|
+
className: "flex flex-row items-center justify-between gap-2 px-6 py-4",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ l(r, { className: "h-8 w-24 rounded-md" }),
|
|
20
|
+
/* @__PURE__ */ l(r, { className: "h-8 w-40 rounded-md" }),
|
|
21
|
+
/* @__PURE__ */ l(r, { className: "h-8 w-20 rounded-md" })
|
|
22
|
+
]
|
|
23
|
+
}), /* @__PURE__ */ l("div", {
|
|
24
|
+
className: "flex flex-1 justify-center p-4",
|
|
25
|
+
children: /* @__PURE__ */ l(r, { className: "h-full w-full max-w-[600px] rounded-md" })
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
}, f = c(() => import("./PdfViewer-C81MK43i.js")), p = c(() => import("./SheetViewer-DPGpMNqq.js")), m = c(() => import("./DocxViewer-DQV5Kv1n.js")), h = c(() => import("./TextViewer-BH42AeG8.js")), g = c(() => import("./CodeViewer-DFBwdIFm.js")), _ = c(() => import("./HtmlViewer-FRfNoxhP.js")), v = c(() => import("./ArchiveViewer-BXUH8Lm5.js")), y = s((e, t) => {
|
|
29
|
+
let { kind: n = "pdf", mimeType: i, language: a, htmlExecution: s = "auto", htmlSandbox: c, sender: y, toolbar: b = "top", hideDownload: x = !1, ...S } = e;
|
|
30
|
+
if (n === "pdf") return /* @__PURE__ */ l(o, {
|
|
31
|
+
fallback: /* @__PURE__ */ l(d, {}),
|
|
32
|
+
children: /* @__PURE__ */ l(f, {
|
|
33
|
+
ref: t,
|
|
34
|
+
toolbar: b,
|
|
35
|
+
hideDownload: x,
|
|
36
|
+
...S
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
let { url: C, filename: w, actions: T, withCredentials: E = !0, page: D, pagesToDisplay: O, initialScale: k, rotatable: A, initialRotation: j, onRotationChange: M, onPdfLoaded: N, onPageChange: P, ...F } = S, I = {
|
|
40
|
+
url: C,
|
|
41
|
+
filename: w,
|
|
42
|
+
withCredentials: E,
|
|
43
|
+
actions: T,
|
|
44
|
+
toolbar: b,
|
|
45
|
+
hideDownload: x
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ l("div", {
|
|
48
|
+
ref: t,
|
|
49
|
+
...F,
|
|
50
|
+
className: "F0DocumentViewer__surface relative flex h-full w-full flex-col overflow-hidden border border-solid border-f1-border-secondary",
|
|
51
|
+
children: /* @__PURE__ */ u(o, {
|
|
52
|
+
fallback: /* @__PURE__ */ l(r, { className: "h-full w-full rounded-none" }),
|
|
53
|
+
children: [
|
|
54
|
+
n === "sheet" ? /* @__PURE__ */ l(p, { ...I }) : null,
|
|
55
|
+
n === "docx" ? /* @__PURE__ */ l(m, { ...I }) : null,
|
|
56
|
+
n === "text" ? /* @__PURE__ */ l(h, {
|
|
57
|
+
...I,
|
|
58
|
+
name: w ?? "",
|
|
59
|
+
mimeType: i
|
|
60
|
+
}) : null,
|
|
61
|
+
n === "code" ? /* @__PURE__ */ l(g, {
|
|
62
|
+
...I,
|
|
63
|
+
language: a
|
|
64
|
+
}) : null,
|
|
65
|
+
n === "html" ? /* @__PURE__ */ l(_, {
|
|
66
|
+
...I,
|
|
67
|
+
htmlExecution: s,
|
|
68
|
+
htmlSandbox: c,
|
|
69
|
+
sender: y
|
|
70
|
+
}) : null,
|
|
71
|
+
n === "archive" ? /* @__PURE__ */ l(v, { ...I }) : null
|
|
72
|
+
]
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
y.displayName = "F0DocumentViewer";
|
|
77
|
+
var b = e(n("F0DocumentViewer", a(y, d))), x = b;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { x as n, b as t };
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { a as e } from "./i18n-provider-BBhzYHef.js";
|
|
2
|
+
import { L as t, z as n } from "./tooltip-BX4dSfeL.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { createContext as i, forwardRef as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useRef as u, useState as d } from "react";
|
|
5
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
|
+
import { createPortal as m } from "react-dom";
|
|
7
|
+
//#region ../../node_modules/.pnpm/cva@1.0.0-beta.3_typescript@7.0.2/node_modules/cva/dist/index.mjs
|
|
8
|
+
var h = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, { compose: g, cva: _, cx: v } = ((e) => {
|
|
9
|
+
let t = function() {
|
|
10
|
+
var t = [...arguments];
|
|
11
|
+
return e?.hooks?.["cx:done"] === void 0 ? e?.hooks?.onComplete === void 0 ? n(t) : e?.hooks.onComplete(n(t)) : e?.hooks["cx:done"](n(t));
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
compose: function() {
|
|
15
|
+
var e = [...arguments];
|
|
16
|
+
return (n) => {
|
|
17
|
+
let r = Object.fromEntries(Object.entries(n || {}).filter((e) => {
|
|
18
|
+
let [t] = e;
|
|
19
|
+
return !["class", "className"].includes(t);
|
|
20
|
+
}));
|
|
21
|
+
return t(e.map((e) => e(r)), n?.class, n?.className);
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
cva: (e) => (n) => {
|
|
25
|
+
if (e?.variants == null) return t(e?.base, n?.class, n?.className);
|
|
26
|
+
let { variants: r, defaultVariants: i } = e, a = Object.keys(r).map((e) => {
|
|
27
|
+
let t = n?.[e], a = i?.[e], o = h(t) || h(a);
|
|
28
|
+
return r[e][o];
|
|
29
|
+
}), o = {
|
|
30
|
+
...i,
|
|
31
|
+
...n && Object.entries(n).reduce((e, t) => {
|
|
32
|
+
let [n, r] = t;
|
|
33
|
+
return r === void 0 ? e : {
|
|
34
|
+
...e,
|
|
35
|
+
[n]: r
|
|
36
|
+
};
|
|
37
|
+
}, {})
|
|
38
|
+
}, s = e?.compoundVariants?.reduce((e, t) => {
|
|
39
|
+
let { class: n, className: r, ...i } = t;
|
|
40
|
+
return Object.entries(i).every((e) => {
|
|
41
|
+
let [t, n] = e, r = o[t];
|
|
42
|
+
return Array.isArray(n) ? n.includes(r) : r === n;
|
|
43
|
+
}) ? [
|
|
44
|
+
...e,
|
|
45
|
+
n,
|
|
46
|
+
r
|
|
47
|
+
] : e;
|
|
48
|
+
}, []);
|
|
49
|
+
return t(e?.base, a, s, n?.class, n?.className);
|
|
50
|
+
},
|
|
51
|
+
cx: t
|
|
52
|
+
};
|
|
53
|
+
})(), y = [
|
|
54
|
+
"layout",
|
|
55
|
+
"info",
|
|
56
|
+
"action",
|
|
57
|
+
"form"
|
|
58
|
+
], b = i({
|
|
59
|
+
enabled: !1,
|
|
60
|
+
enable: () => null,
|
|
61
|
+
disable: () => null,
|
|
62
|
+
filter: []
|
|
63
|
+
}), x = ({ children: e }) => {
|
|
64
|
+
let [t, n] = d(!1), [r, i] = d([]), a = o((e) => {
|
|
65
|
+
i(e || [...y].filter((e) => e !== "layout")), n(!0);
|
|
66
|
+
}, [i, n]), s = o(() => n(!1), [n]);
|
|
67
|
+
return c(() => {
|
|
68
|
+
window.XRay = {
|
|
69
|
+
enable: a,
|
|
70
|
+
disable: s
|
|
71
|
+
};
|
|
72
|
+
}, [a, s]), /* @__PURE__ */ p(b.Provider, {
|
|
73
|
+
value: {
|
|
74
|
+
enabled: t,
|
|
75
|
+
enable: a,
|
|
76
|
+
disable: s,
|
|
77
|
+
filter: r
|
|
78
|
+
},
|
|
79
|
+
children: [e, t && typeof document < "u" ? m(/* @__PURE__ */ p("div", {
|
|
80
|
+
className: "bg-white fixed right-2 top-2 z-50 flex flex-col space-y-2 rounded-2xs border-solid border-f1-border p-4 opacity-80 shadow-md",
|
|
81
|
+
children: [/* @__PURE__ */ f("div", {
|
|
82
|
+
className: "text-md z-50 font-semibold",
|
|
83
|
+
children: "XRay"
|
|
84
|
+
}), /* @__PURE__ */ f("div", {
|
|
85
|
+
className: "flex flex-col space-y-2",
|
|
86
|
+
children: y.map((e) => /* @__PURE__ */ p("label", {
|
|
87
|
+
className: "block",
|
|
88
|
+
children: [/* @__PURE__ */ f("input", {
|
|
89
|
+
onChange: (t) => t.target.checked ? i([...r, e]) : i(r.filter((t) => t !== e)),
|
|
90
|
+
type: "checkbox",
|
|
91
|
+
checked: r.includes(e),
|
|
92
|
+
className: "mr-2"
|
|
93
|
+
}), e]
|
|
94
|
+
}, e))
|
|
95
|
+
})]
|
|
96
|
+
}), document?.body) : null]
|
|
97
|
+
});
|
|
98
|
+
}, S = _({
|
|
99
|
+
base: "outline-opacity-50 pointer-events-none absolute z-40 outline-dashed",
|
|
100
|
+
variants: { type: {
|
|
101
|
+
layout: "outline-red-500",
|
|
102
|
+
info: "outline-blue-500",
|
|
103
|
+
action: "outline-green-600",
|
|
104
|
+
form: "outline-purple-600"
|
|
105
|
+
} }
|
|
106
|
+
}), C = _({
|
|
107
|
+
base: "absolute z-40 bg-opacity-50 px-2 py-1 text-sm uppercase",
|
|
108
|
+
variants: { type: {
|
|
109
|
+
layout: "bg-red-500 text-white",
|
|
110
|
+
info: "bg-blue-500 text-white",
|
|
111
|
+
action: "bg-green-600 text-white",
|
|
112
|
+
form: "bg-purple-600 text-white"
|
|
113
|
+
} }
|
|
114
|
+
}), w = (e, t) => {
|
|
115
|
+
let { enabled: n, filter: i } = r.useContext(b), a = u(null);
|
|
116
|
+
l(t, () => a.current);
|
|
117
|
+
let o = n && !e.internal, s = typeof document < "u" ? document.body : null;
|
|
118
|
+
return c(() => {
|
|
119
|
+
if (!o || !a.current || !i.includes(e.type)) return;
|
|
120
|
+
let t = a.current;
|
|
121
|
+
t.dataset.componentName = e.name;
|
|
122
|
+
let n = null, r = null;
|
|
123
|
+
if (s) {
|
|
124
|
+
let { top: i, left: a, width: o, height: c } = t.getBoundingClientRect();
|
|
125
|
+
n = document.createElement("div"), n.className = S({ type: e.type }), n.style.top = `${i}px`, n.style.left = `${a}px`, n.style.width = `${o}px`, n.style.height = `${c}px`, r = document.createElement("div"), r.className = C({ type: e.type }), r.style.top = `${i}px`, r.style.left = `${a}px`, r.innerText = e.name, s.appendChild(r), s.appendChild(n);
|
|
126
|
+
}
|
|
127
|
+
return () => {
|
|
128
|
+
n && s?.removeChild(n), r && s?.removeChild(r);
|
|
129
|
+
};
|
|
130
|
+
}, [
|
|
131
|
+
o,
|
|
132
|
+
e.name,
|
|
133
|
+
e.type,
|
|
134
|
+
i,
|
|
135
|
+
s
|
|
136
|
+
]), {
|
|
137
|
+
ref: a,
|
|
138
|
+
enabled: n
|
|
139
|
+
};
|
|
140
|
+
}, T = () => s(b), E = (e, t) => {
|
|
141
|
+
let n = a((n, r) => {
|
|
142
|
+
let { ref: i } = w(e, r);
|
|
143
|
+
return /* @__PURE__ */ f(t, {
|
|
144
|
+
ref: i,
|
|
145
|
+
...n
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
return n.displayName = e.name, n;
|
|
149
|
+
}, D = _({
|
|
150
|
+
base: "inline-block shrink-0",
|
|
151
|
+
variants: { size: {
|
|
152
|
+
lg: "w-6 [&_circle]:stroke-lg [&_path]:stroke-lg [&_rect]:stroke-lg",
|
|
153
|
+
md: "w-5 [&_circle]:stroke-md [&_path]:stroke-md [&_rect]:stroke-md",
|
|
154
|
+
sm: "w-4 [&_circle]:stroke-sm [&_path]:stroke-sm [&_rect]:stroke-sm",
|
|
155
|
+
xs: "w-3 [&_circle]:stroke-xs [&_path]:stroke-xs [&_rect]:stroke-xs"
|
|
156
|
+
} },
|
|
157
|
+
defaultVariants: { size: "md" }
|
|
158
|
+
}), O = {
|
|
159
|
+
secondary: "text-f1-icon-secondary",
|
|
160
|
+
inverse: "text-f1-icon-inverse",
|
|
161
|
+
bold: "text-f1-icon-bold",
|
|
162
|
+
critical: "text-f1-icon-critical",
|
|
163
|
+
"critical-bold": "text-f1-icon-critical-bold",
|
|
164
|
+
accent: "text-f1-icon-accent",
|
|
165
|
+
info: "text-f1-icon-info",
|
|
166
|
+
warning: "text-f1-icon-warning",
|
|
167
|
+
positive: "text-f1-icon-positive",
|
|
168
|
+
promote: "text-f1-icon-promote",
|
|
169
|
+
selected: "text-f1-icon-selected",
|
|
170
|
+
"selected-hover": "text-f1-icon-selected-hover",
|
|
171
|
+
"mood-super-negative": "text-f1-icon-mood-super-negative",
|
|
172
|
+
"mood-negative": "text-f1-icon-mood-negative",
|
|
173
|
+
"mood-neutral": "text-f1-icon-mood-neutral",
|
|
174
|
+
"mood-positive": "text-f1-icon-mood-positive",
|
|
175
|
+
"mood-super-positive": "text-f1-icon-mood-super-positive"
|
|
176
|
+
};
|
|
177
|
+
function k(e) {
|
|
178
|
+
return e.startsWith("#");
|
|
179
|
+
}
|
|
180
|
+
var A = a(function({ size: e, icon: n, state: r = "normal", color: i = "currentColor", ...a }, o) {
|
|
181
|
+
if (!n) return null;
|
|
182
|
+
let s = n, c = n.displayName?.includes("Animated"), l = k(i), u = ((e) => e === "currentColor" ? "text-current" : e === "default" ? "text-f1-icon" : k(e) ? "" : O[e])(i), d = l ? { color: i } : void 0;
|
|
183
|
+
return c ? /* @__PURE__ */ f(s, {
|
|
184
|
+
ref: o,
|
|
185
|
+
...a,
|
|
186
|
+
animate: r,
|
|
187
|
+
className: t(D({ size: e }), "select-none", u),
|
|
188
|
+
style: d,
|
|
189
|
+
"data-has-color": i === "currentColor" ? void 0 : "true"
|
|
190
|
+
}) : /* @__PURE__ */ f(s, {
|
|
191
|
+
ref: o,
|
|
192
|
+
...a,
|
|
193
|
+
className: t("aspect-square", D({ size: e }), u),
|
|
194
|
+
style: d,
|
|
195
|
+
"data-has-color": i === "currentColor" ? void 0 : "true"
|
|
196
|
+
});
|
|
197
|
+
}), j = e(E({
|
|
198
|
+
name: "F0Icon",
|
|
199
|
+
type: "info"
|
|
200
|
+
}, A));
|
|
201
|
+
//#endregion
|
|
202
|
+
export { T as a, x as i, A as n, _ as o, E as r, j as t };
|