@factorialco/f0-react 16.39.1 → 16.40.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-BuomQ0jm.js → ArchiveThumbnail-fx1k9zF5.js} +1 -1
- package/dist/{ArchiveViewer-Cb1a_yK5.js → ArchiveViewer-4mkxdXyf.js} +2 -2
- package/dist/{ChatPostComposerDialog-BoMZ0Olp.js → ChatPostComposerDialog-ZGoAsax9.js} +2 -2
- package/dist/{CoachmarkProvider-w30wNBNx.js → CoachmarkProvider-BwLQ3v9f.js} +14091 -14093
- package/dist/{CodeThumbnail-bnwIB0Q2.js → CodeThumbnail-DIRVdTYf.js} +1 -1
- package/dist/{CodeViewer-DVL3P-jF.js → CodeViewer-BHA1Osng.js} +4 -4
- package/dist/{DocumentToolbar-7s9QNMWY.js → DocumentToolbar-C8_A4Bhd.js} +5 -5
- package/dist/{DocxViewer-Bn22Gst6.js → DocxViewer-C-UaGNXG.js} +1 -1
- package/dist/{F0AiProcessingOverlay-B6DLMrO7.js → F0AiProcessingOverlay-BQGg-wTQ.js} +502 -504
- package/dist/{F0Alert-m54uY33f.js → F0Alert-Cj4ufDl7.js} +3 -3
- package/dist/F0AudioPlayer-C5CokjE_.js +2 -0
- package/dist/{F0CanvasPanel-CfPdTW_o.js → F0CanvasPanel-D4PhLARb.js} +8987 -9185
- package/dist/{F0DocumentViewer-FuhnkhM-.js → F0DocumentViewer-382b-101.js} +1 -1
- package/dist/{F0DocumentViewer-C_E6pFUZ.js → F0DocumentViewer-De5STCB5.js} +2 -2
- package/dist/{F0Map-BwRUOPzu.js → F0Map-Dz_-4gAZ.js} +764 -697
- package/dist/{F0Select-BCUynP2p.js → F0Select-BQMaDPcg.js} +8266 -8522
- package/dist/{Ellipsis-Bxq1iUUk.js → F0Text-DmUg-CLb.js} +22 -14
- package/dist/F0VideoPlayer-AXw_DAL_.js +1 -0
- package/dist/{F0VideoPlayer-DGHxduSr.js → F0VideoPlayer-Dsna4Es9.js} +306 -307
- package/dist/{HtmlViewer-Q3xUMpkP.js → HtmlViewer-CIAxNnvP.js} +4 -4
- package/dist/{Map-Dt3tV3na.js → Map-DGd3Cl-3.js} +13 -13
- package/dist/{PdfThumbnail-QkmwtnOA.js → PdfThumbnail-BtzXcGHN.js} +1 -1
- package/dist/{PdfViewer-D4NjCixG.js → PdfViewer-BZVnaYKF.js} +6 -6
- package/dist/{SheetViewer-RsRTbw7A.js → SheetViewer-Bn3N9G4D.js} +3 -3
- package/dist/{TextViewer-BvwaMVDG.js → TextViewer-C9NBnJvl.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/{dist-CngBJJ6S.js → dist-CWrWx4g2.js} +4 -4
- package/dist/{dist-CUKjZKvr.js → dist-CZnQ15Wl.js} +1 -1
- package/dist/{dist-CGYo25BY.js → dist-DCb1475M.js} +151 -142
- package/dist/{dist-D83RDDAb.js → dist-DNltp03U.js} +6 -15
- package/dist/{dist-DDAe_kuu.js → dist-DxwodHyk.js} +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +819 -821
- package/dist/{exports-DYl7Pf17.d.ts → exports-CbmGLzn6.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +318 -320
- package/dist/{highlight-CJDVXMe_.js → highlight-u9A6kwy7.js} +1 -1
- package/dist/{index-DA_a_mE2.d.ts → index-CcbdFJRr.d.ts} +1 -1
- package/dist/{index-DOU2q_xI.d.ts → index-D0QIgPoz.d.ts} +7 -0
- package/dist/internal-CGrF2KLC.js +261 -0
- package/dist/{maplibre-BFO6CAl9.js → maplibre-Dqb2AOHT.js} +12 -13
- package/dist/{pdfWorker-BlDYyNbC.js → pdfWorker-C_2eH-2_.js} +1 -1
- package/dist/{popover-BGv1b-fc.js → popover-Y2y9anVX.js} +1282 -1247
- package/dist/styles.css +1 -1
- package/dist/{useData-CmFkOA0P.js → useData-OLWBwcfd.js} +5129 -4873
- package/package.json +1 -1
- package/tailwind.config.ts +4 -0
- package/dist/Check-Cg2vvL5g.js +0 -39
- package/dist/F0AudioPlayer-Ck9Vyjrb.js +0 -2
- package/dist/F0Text-CnmiWNAg.js +0 -14
- package/dist/F0VideoPlayer-BshnHziC.js +0 -1
- package/dist/LayoutGroup-OcrcUDNP.js +0 -57
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cn as e, Mn as t, jn as n } from "./F0CanvasPanel-
|
|
1
|
+
import { Cn as e, Mn as t, jn as n } from "./F0CanvasPanel-D4PhLARb.js";
|
|
2
2
|
import { t as r } from "./purify.es-CJ7gZxxn.js";
|
|
3
3
|
import { t as i } from "./ownValue-D4uSXt0d.js";
|
|
4
4
|
//#region src/addons/documents/lib/codeLanguages.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ao as DataAttributes, Bo as IconAvatarVariant, Cs as WithDataTestIdReturnType, Gt as CardImageSize, Hn as AlertAvatarProps, Ho as TeamAvatarVariant, Lo as CompanyAvatarVariant, Mo as AvatarAction, No as AvatarVariant, Qn as Variant, Tt as TranscribeFn, Ut as CardImageAspectRatio, Vn as CardAvatarVariant, Vo as PersonAvatarVariant, Wt as CardImageFit, Yo as CountryCode, Zn as StatusVariant, ao as DropdownItem, ds as ModuleId, en as CardMetadata, f as ButtonDropdownItem, gs as DistributiveOmit$1, ho as F0ButtonProps, io as DropdownInternalProps, lo as DropdownItemSeparator, nn as ValueDisplayRendererDefinition, on as TagVariant, ps as NewColor, so as DropdownItemObject, vs as F0IconProps, xs as WithDataTestIdProps, ys as IconType } from "./index-
|
|
1
|
+
import { Ao as DataAttributes, Bo as IconAvatarVariant, Cs as WithDataTestIdReturnType, Gt as CardImageSize, Hn as AlertAvatarProps, Ho as TeamAvatarVariant, Lo as CompanyAvatarVariant, Mo as AvatarAction, No as AvatarVariant, Qn as Variant, Tt as TranscribeFn, Ut as CardImageAspectRatio, Vn as CardAvatarVariant, Vo as PersonAvatarVariant, Wt as CardImageFit, Yo as CountryCode, Zn as StatusVariant, ao as DropdownItem, ds as ModuleId, en as CardMetadata, f as ButtonDropdownItem, gs as DistributiveOmit$1, ho as F0ButtonProps, io as DropdownInternalProps, lo as DropdownItemSeparator, nn as ValueDisplayRendererDefinition, on as TagVariant, ps as NewColor, so as DropdownItemObject, vs as F0IconProps, xs as WithDataTestIdProps, ys as IconType } from "./index-D0QIgPoz.js";
|
|
2
2
|
import { n as TranslationsType } from "./i18n-provider-defaults-BhcttUkN.js";
|
|
3
3
|
import * as React$2 from "react";
|
|
4
4
|
import React$1, { AriaAttributes, AutoFill, CSSProperties, ComponentProps, ComponentType, Dispatch, FC, ForwardedRef, HTMLAttributes, HTMLInputTypeAttribute, ReactElement, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
|
|
@@ -1030,6 +1030,13 @@ type DropdownInternalProps = {
|
|
|
1030
1030
|
* @default true
|
|
1031
1031
|
*/
|
|
1032
1032
|
modal?: boolean;
|
|
1033
|
+
/**
|
|
1034
|
+
* Caps the menu's height at a submenu's 16rem, or the room left next to the
|
|
1035
|
+
* trigger when that is less, and scrolls the rest. For a menu whose item
|
|
1036
|
+
* count has no upper bound.
|
|
1037
|
+
* @default false
|
|
1038
|
+
*/
|
|
1039
|
+
scrollable?: boolean;
|
|
1033
1040
|
} & DataAttributes;
|
|
1034
1041
|
//#endregion
|
|
1035
1042
|
//#region src/elements/F0Composer/mentions/types.d.ts
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { r as e } from "./i18n-provider-Bx71VZQH.js";
|
|
2
|
+
import { L as t } from "./tooltip-NXXT56H4.js";
|
|
3
|
+
import { H as n, It as r, Rt as i, f as a, n as o, wt as s } from "./F0Button-fMxOyyNk.js";
|
|
4
|
+
import { a as c } from "./createIcon-iM5M-dE_.js";
|
|
5
|
+
import { I as l, L as u, g as d, m as f, p, z as m } from "./useData-OLWBwcfd.js";
|
|
6
|
+
import { C as h, S as g, T as _, b as v, d as y, et as b, f as ee, g as x, h as S, m as C, w as te, x as w, y as T } from "./popover-Y2y9anVX.js";
|
|
7
|
+
import { n as E, t as D } from "./F0Text-DmUg-CLb.js";
|
|
8
|
+
import O, { createContext as k, useCallback as A, useContext as j, useEffect as ne, useMemo as M, useRef as N, useState as P } from "react";
|
|
9
|
+
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
10
|
+
//#region ../../node_modules/.bun/motion-dom@12.43.0/node_modules/motion-dom/dist/es/projection/node/group.mjs
|
|
11
|
+
var R = (e) => !e.isLayoutDirty && e.willUpdate(!1);
|
|
12
|
+
function re() {
|
|
13
|
+
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(R);
|
|
14
|
+
return {
|
|
15
|
+
add: (r) => {
|
|
16
|
+
e.add(r), t.set(r, r.addEventListener("willUpdate", n));
|
|
17
|
+
},
|
|
18
|
+
remove: (r) => {
|
|
19
|
+
e.delete(r);
|
|
20
|
+
let i = t.get(r);
|
|
21
|
+
i && (i(), t.delete(r)), n();
|
|
22
|
+
},
|
|
23
|
+
dirty: n
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
|
|
28
|
+
var z = k(null);
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
|
|
31
|
+
function B() {
|
|
32
|
+
let e = N(!1);
|
|
33
|
+
return r(() => (e.current = !0, () => {
|
|
34
|
+
e.current = !1;
|
|
35
|
+
}), []), e;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/utils/use-force-update.mjs
|
|
39
|
+
function ie() {
|
|
40
|
+
let e = B(), [t, n] = P(0), r = A(() => {
|
|
41
|
+
e.current && n(t + 1);
|
|
42
|
+
}, [t]);
|
|
43
|
+
return [A(() => s.postRender(r), [r]), t];
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs
|
|
47
|
+
var V = (e) => e === !0, ae = (e) => V(e === !0) || e === "id", oe = ({ children: e, id: t, inherit: n = !0 }) => {
|
|
48
|
+
let r = j(i), a = j(z), [o, s] = ie(), c = N(null), l = r.id || a;
|
|
49
|
+
c.current === null && (ae(n) && l && (t = t ? l + "-" + t : l), c.current = {
|
|
50
|
+
id: t,
|
|
51
|
+
group: V(n) && r.group || re()
|
|
52
|
+
});
|
|
53
|
+
let u = M(() => ({
|
|
54
|
+
...c.current,
|
|
55
|
+
forceRender: o
|
|
56
|
+
}), [s]);
|
|
57
|
+
return I(i.Provider, {
|
|
58
|
+
value: u,
|
|
59
|
+
children: e
|
|
60
|
+
});
|
|
61
|
+
}, H = ({ disabled: e, disabledTooltip: t, children: n }) => e && t ? /* @__PURE__ */ I(u, {
|
|
62
|
+
tooltip: t,
|
|
63
|
+
children: /* @__PURE__ */ I("span", {
|
|
64
|
+
className: "block w-full cursor-not-allowed",
|
|
65
|
+
children: n
|
|
66
|
+
})
|
|
67
|
+
}) : /* @__PURE__ */ I(F, { children: n }), U = (e) => !!(e.external || e.target === "_blank"), W = (e) => e.type === void 0 || e.type === "item";
|
|
68
|
+
function G({ item: e, revealOnHighlight: t = !1 }) {
|
|
69
|
+
return /* @__PURE__ */ L(F, { children: [W(e) && U(e) ? /* @__PURE__ */ I(p, { revealOnHighlight: t }) : null, W(e) && e.checked ? /* @__PURE__ */ I("span", {
|
|
70
|
+
className: "ml-auto flex shrink-0 self-center pl-1.5",
|
|
71
|
+
children: /* @__PURE__ */ I(c, {
|
|
72
|
+
icon: b,
|
|
73
|
+
size: "md",
|
|
74
|
+
color: "selected"
|
|
75
|
+
})
|
|
76
|
+
}) : null] });
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/elements/Dropdown/DropdownItem.tsx
|
|
80
|
+
var K = ({ item: e, revealOnHighlight: n }) => /* @__PURE__ */ L(F, { children: [
|
|
81
|
+
e.avatar ? /* @__PURE__ */ I(d, {
|
|
82
|
+
avatar: e.avatar,
|
|
83
|
+
size: "xs"
|
|
84
|
+
}) : null,
|
|
85
|
+
e.emoji ? /* @__PURE__ */ I("span", {
|
|
86
|
+
className: "flex shrink-0",
|
|
87
|
+
"data-testid": "dropdown-item-emoji",
|
|
88
|
+
children: /* @__PURE__ */ I(a, {
|
|
89
|
+
emoji: e.emoji,
|
|
90
|
+
size: "md",
|
|
91
|
+
alt: ""
|
|
92
|
+
})
|
|
93
|
+
}) : e.icon ? /* @__PURE__ */ I(c, {
|
|
94
|
+
icon: e.icon,
|
|
95
|
+
size: "md",
|
|
96
|
+
className: t("text-f1-icon", e.critical && "text-f1-icon-critical")
|
|
97
|
+
}) : null,
|
|
98
|
+
/* @__PURE__ */ L("div", {
|
|
99
|
+
className: "flex min-w-0 flex-1 flex-col items-start",
|
|
100
|
+
children: [/* @__PURE__ */ L("div", {
|
|
101
|
+
className: "flex w-full items-center gap-1.5",
|
|
102
|
+
children: [/* @__PURE__ */ I("span", {
|
|
103
|
+
className: "truncate",
|
|
104
|
+
children: e.label
|
|
105
|
+
}), e.tag ? /* @__PURE__ */ I(f, {
|
|
106
|
+
text: e.tag,
|
|
107
|
+
className: "-my-1"
|
|
108
|
+
}) : null]
|
|
109
|
+
}), e.description ? /* @__PURE__ */ I("div", {
|
|
110
|
+
className: t("font-normal text-f1-foreground-secondary", e.critical && "text-f1-foreground-critical"),
|
|
111
|
+
children: e.description
|
|
112
|
+
}) : null]
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ I(G, {
|
|
115
|
+
item: e,
|
|
116
|
+
revealOnHighlight: n
|
|
117
|
+
})
|
|
118
|
+
] }), q = k(!1), se = q.Provider, J = () => j(q), ce = {
|
|
119
|
+
expanded: "",
|
|
120
|
+
reduced: "max-w-[300px]"
|
|
121
|
+
}, Y = E, le = ({ item: e }) => {
|
|
122
|
+
let { label: r, icon: i, avatar: a, description: o, tag: s, emoji: c, checked: l, external: u, disabledTooltip: d, href: f, critical: p, disabled: m, onClick: h, ...g } = e, _ = t("flex items-start gap-1.5 w-full", p && "text-f1-foreground-critical");
|
|
123
|
+
return /* @__PURE__ */ I(H, {
|
|
124
|
+
disabled: m,
|
|
125
|
+
disabledTooltip: d,
|
|
126
|
+
children: /* @__PURE__ */ I(C, {
|
|
127
|
+
asChild: !0,
|
|
128
|
+
className: t(_, "group cursor-pointer", (e.checked || U(e)) && "pr-3"),
|
|
129
|
+
disabled: m,
|
|
130
|
+
"aria-current": e.checked ? "true" : void 0,
|
|
131
|
+
onSelect: () => h?.(),
|
|
132
|
+
children: f ? /* @__PURE__ */ I(n, {
|
|
133
|
+
href: f,
|
|
134
|
+
className: t(_, "text-f1-foreground no-underline hover:cursor-pointer"),
|
|
135
|
+
...g,
|
|
136
|
+
children: /* @__PURE__ */ I(K, {
|
|
137
|
+
item: e,
|
|
138
|
+
revealOnHighlight: !0
|
|
139
|
+
})
|
|
140
|
+
}) : /* @__PURE__ */ I("div", {
|
|
141
|
+
...g,
|
|
142
|
+
className: _,
|
|
143
|
+
children: /* @__PURE__ */ I(K, {
|
|
144
|
+
item: e,
|
|
145
|
+
revealOnHighlight: !0
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
})
|
|
149
|
+
});
|
|
150
|
+
}, X = ({ item: e }) => /* @__PURE__ */ I(H, {
|
|
151
|
+
disabled: e.disabled,
|
|
152
|
+
disabledTooltip: e.disabledTooltip,
|
|
153
|
+
children: /* @__PURE__ */ L(h, {
|
|
154
|
+
className: t("flex w-full items-center gap-1.5 pr-3", e.critical && "text-f1-foreground-critical"),
|
|
155
|
+
checked: e.checked,
|
|
156
|
+
onCheckedChange: e.onCheckedChange,
|
|
157
|
+
disabled: e.disabled,
|
|
158
|
+
children: [/* @__PURE__ */ I(K, { item: e }), /* @__PURE__ */ I(m, {
|
|
159
|
+
checked: e.checked,
|
|
160
|
+
tabIndex: -1,
|
|
161
|
+
"aria-hidden": !0,
|
|
162
|
+
className: "pointer-events-none shrink-0"
|
|
163
|
+
})]
|
|
164
|
+
})
|
|
165
|
+
}), ue = ({ item: e, container: n }) => /* @__PURE__ */ L(v, { children: [/* @__PURE__ */ I(g, {
|
|
166
|
+
className: t(_, "w-full gap-1.5 pr-3", "focus:bg-transparent data-[state=open]:bg-transparent data-[state=open]:after:opacity-100", e.critical && "text-f1-foreground-critical"),
|
|
167
|
+
disabled: e.disabled,
|
|
168
|
+
children: /* @__PURE__ */ I(K, { item: e })
|
|
169
|
+
}), /* @__PURE__ */ I(x, {
|
|
170
|
+
container: n ?? void 0,
|
|
171
|
+
children: /* @__PURE__ */ I(w, {
|
|
172
|
+
className: "max-h-[min(var(--radix-dropdown-menu-content-available-height),16rem)] overflow-y-auto border-solid border-f1-border-secondary",
|
|
173
|
+
children: e.items.length === 0 && e.emptyLabel ? /* @__PURE__ */ I(Q, { text: e.emptyLabel }) : e.items.map((e, t) => $(e, t, n))
|
|
174
|
+
})
|
|
175
|
+
})] }), Z = "pl-3 pr-5 pt-2 pb-1 first:pt-3 last:pb-3", Q = ({ text: e }) => J() ? /* @__PURE__ */ I(S, {
|
|
176
|
+
className: t("flex-1", Z),
|
|
177
|
+
children: /* @__PURE__ */ I(D, {
|
|
178
|
+
variant: "small",
|
|
179
|
+
markdown: !1,
|
|
180
|
+
content: e
|
|
181
|
+
})
|
|
182
|
+
}) : /* @__PURE__ */ I(S, {
|
|
183
|
+
className: t("flex-1 text-sm font-medium leading-4 text-f1-foreground-secondary", Z),
|
|
184
|
+
children: e
|
|
185
|
+
});
|
|
186
|
+
function $(e, t, n) {
|
|
187
|
+
return e.type === "separator" ? /* @__PURE__ */ I(T, {}, t) : e.type === "submenu" ? /* @__PURE__ */ I(ue, {
|
|
188
|
+
item: e,
|
|
189
|
+
container: n
|
|
190
|
+
}, t) : e.type === "switch" ? /* @__PURE__ */ I(X, { item: e }, t) : e.type === "panel" ? /* @__PURE__ */ I(l, {
|
|
191
|
+
paddingX: "md",
|
|
192
|
+
paddingTop: "md",
|
|
193
|
+
paddingBottom: "sm",
|
|
194
|
+
children: e.content
|
|
195
|
+
}, t) : e.type === "label" ? /* @__PURE__ */ I(Q, { text: e.text }, t) : /* @__PURE__ */ I(le, { item: {
|
|
196
|
+
...e,
|
|
197
|
+
onClick: () => {
|
|
198
|
+
setTimeout(() => {
|
|
199
|
+
e.onClick?.();
|
|
200
|
+
}, 200);
|
|
201
|
+
}
|
|
202
|
+
} }, t);
|
|
203
|
+
}
|
|
204
|
+
function de({ items: n, icon: r = Y, align: i = "start", alignOffset: a, side: s, sideOffset: c, minWidth: l, disableExitAnimation: u = !1, scrollable: d = !1, size: f, children: p, open: m, onOpenChange: h, label: g, disabled: _, container: v, contentVariant: b = "expanded", modal: x, ...S }) {
|
|
205
|
+
let C = e(), w = J(), T = N(!1), [E, D] = P(!1), k = m !== void 0 && h !== void 0, A = k ? m : E, j = k ? h : D;
|
|
206
|
+
ne(function() {
|
|
207
|
+
_ && A && j(!1);
|
|
208
|
+
}, [
|
|
209
|
+
_,
|
|
210
|
+
A,
|
|
211
|
+
j
|
|
212
|
+
]);
|
|
213
|
+
let M = !_ && A, F = (e) => {
|
|
214
|
+
e && (T.current = !1), j(e);
|
|
215
|
+
}, R = p ? O.isValidElement(p) ? O.cloneElement(p, {
|
|
216
|
+
disabled: p.props.disabled ?? _,
|
|
217
|
+
"aria-disabled": p.props["aria-disabled"] ?? (_ ? !0 : void 0)
|
|
218
|
+
}) : p : /* @__PURE__ */ I(o, {
|
|
219
|
+
...S,
|
|
220
|
+
hideLabel: !g,
|
|
221
|
+
icon: r,
|
|
222
|
+
size: f,
|
|
223
|
+
label: g ?? C.actions.toggleDropdownMenu,
|
|
224
|
+
variant: "outline",
|
|
225
|
+
pressed: M,
|
|
226
|
+
compact: !g,
|
|
227
|
+
noAutoTooltip: !0,
|
|
228
|
+
noTitle: !0,
|
|
229
|
+
disabled: _
|
|
230
|
+
});
|
|
231
|
+
return /* @__PURE__ */ L(y, {
|
|
232
|
+
open: M,
|
|
233
|
+
onOpenChange: F,
|
|
234
|
+
modal: x,
|
|
235
|
+
children: [/* @__PURE__ */ I(te, {
|
|
236
|
+
asChild: !0,
|
|
237
|
+
disabled: _,
|
|
238
|
+
children: R
|
|
239
|
+
}), /* @__PURE__ */ I(ee, {
|
|
240
|
+
onPointerDownOutside: () => {
|
|
241
|
+
T.current = !0;
|
|
242
|
+
},
|
|
243
|
+
onEscapeKeyDown: () => {
|
|
244
|
+
T.current = !1;
|
|
245
|
+
},
|
|
246
|
+
onCloseAutoFocus: (e) => {
|
|
247
|
+
T.current && (T.current = !1, w && e.preventDefault());
|
|
248
|
+
},
|
|
249
|
+
align: i,
|
|
250
|
+
alignOffset: a,
|
|
251
|
+
side: s,
|
|
252
|
+
sideOffset: c,
|
|
253
|
+
style: l === void 0 ? void 0 : { minWidth: `max(var(--radix-popper-anchor-width), ${l}px)` },
|
|
254
|
+
container: v,
|
|
255
|
+
className: t(ce[b], d && "max-h-dropdown-available overflow-y-auto", u && "data-[state=closed]:animate-none data-[state=closed]:hidden"),
|
|
256
|
+
children: n.map((e, t) => $(e, t, v))
|
|
257
|
+
})]
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
//#endregion
|
|
261
|
+
export { G as a, K as i, de as n, H as o, se as r, oe as s, Y as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { t } from "./dist-DMTFO2gF.js";
|
|
3
|
-
import { s as n } from "./F0Map-
|
|
3
|
+
import { s as n } from "./F0Map-Dz_-4gAZ.js";
|
|
4
4
|
import './maplibre-gl.css';import './maplibre.css';/* empty css */
|
|
5
5
|
import { t as r } from "./maplibre-gl-C9VxucUv.js";
|
|
6
6
|
//#region ../../node_modules/.bun/@mapbox+mapbox-gl-rtl-text@0.2.3+aaf0d59d7a26626d/node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js?url
|
|
@@ -216,7 +216,10 @@ var w = (1 / 90 + 1 / 40) / 2, T = (e) => e, E = (e) => {
|
|
|
216
216
|
right: e,
|
|
217
217
|
bottom: e,
|
|
218
218
|
left: e
|
|
219
|
-
}), O = {
|
|
219
|
+
}), O = (e) => ({
|
|
220
|
+
padding: D(e?.gutter ?? 0),
|
|
221
|
+
...e?.maxZoom === void 0 ? {} : { maxZoom: e.maxZoom }
|
|
222
|
+
}), k = {
|
|
220
223
|
ready: "load",
|
|
221
224
|
move: "move",
|
|
222
225
|
zoom: "zoom",
|
|
@@ -224,10 +227,10 @@ var w = (1 / 90 + 1 / 40) / 2, T = (e) => e, E = (e) => {
|
|
|
224
227
|
click: "click",
|
|
225
228
|
error: "error",
|
|
226
229
|
styled: "style.load"
|
|
227
|
-
},
|
|
230
|
+
}, A = {
|
|
228
231
|
globeProjection: !0,
|
|
229
232
|
observableFlight: !0
|
|
230
|
-
},
|
|
233
|
+
}, j = (e) => {
|
|
231
234
|
let t = new a.default.Map({
|
|
232
235
|
container: e.container,
|
|
233
236
|
style: T(e.style),
|
|
@@ -249,14 +252,14 @@ var w = (1 / 90 + 1 / 40) / 2, T = (e) => e, E = (e) => {
|
|
|
249
252
|
});
|
|
250
253
|
return {
|
|
251
254
|
provider: "maplibre",
|
|
252
|
-
capabilities:
|
|
255
|
+
capabilities: A,
|
|
253
256
|
native: () => t,
|
|
254
257
|
isAlive: c,
|
|
255
258
|
destroy: () => {
|
|
256
259
|
s = !0, r.destroy(), i.destroy(), o.destroy(), t.remove();
|
|
257
260
|
},
|
|
258
261
|
on: (e, n) => {
|
|
259
|
-
let r =
|
|
262
|
+
let r = k[e];
|
|
260
263
|
return t.on(r, n), () => {
|
|
261
264
|
t.off(r, n);
|
|
262
265
|
};
|
|
@@ -273,8 +276,7 @@ var w = (1 / 90 + 1 / 40) / 2, T = (e) => e, E = (e) => {
|
|
|
273
276
|
}),
|
|
274
277
|
fitCoordinates: (e, n) => {
|
|
275
278
|
t.fitBounds(E(e), {
|
|
276
|
-
|
|
277
|
-
maxZoom: n?.maxZoom,
|
|
279
|
+
...O(n),
|
|
278
280
|
animate: n?.animate ?? !0
|
|
279
281
|
});
|
|
280
282
|
},
|
|
@@ -289,10 +291,7 @@ var w = (1 / 90 + 1 / 40) / 2, T = (e) => e, E = (e) => {
|
|
|
289
291
|
};
|
|
290
292
|
},
|
|
291
293
|
cameraForCoordinates: (e, n) => {
|
|
292
|
-
let r = t.cameraForBounds(E(e),
|
|
293
|
-
padding: D(n?.gutter ?? 0),
|
|
294
|
-
maxZoom: n?.maxZoom
|
|
295
|
-
});
|
|
294
|
+
let r = t.cameraForBounds(E(e), O(n));
|
|
296
295
|
if (!r?.center) return null;
|
|
297
296
|
let i = r.center;
|
|
298
297
|
return {
|
|
@@ -315,4 +314,4 @@ var w = (1 / 90 + 1 / 40) / 2, T = (e) => e, E = (e) => {
|
|
|
315
314
|
};
|
|
316
315
|
};
|
|
317
316
|
//#endregion
|
|
318
|
-
export {
|
|
317
|
+
export { j as createMaplibreAdapter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { z as r } from "./tooltip-NXXT56H4.js";
|
|
3
|
-
import { so as i } from "./F0CanvasPanel-
|
|
3
|
+
import { so as i } from "./F0CanvasPanel-D4PhLARb.js";
|
|
4
4
|
import { t as a } from "./dist-ZjZbrLOW.js";
|
|
5
5
|
import { n as o, r as s } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
6
6
|
import { createContext as c, forwardRef as l, useCallback as u, useContext as d, useEffect as f, useImperativeHandle as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _ } from "react";
|