@factorialco/f0-react 11.10.1 → 11.12.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/{ChatPostComposerDialog-s4prfEkC.js → ChatPostComposerDialog-3j5zits7.js} +4 -4
- package/dist/{CoachmarkProvider-DxDuinVA.js → CoachmarkProvider-BqDQTbBm.js} +2044 -2044
- package/dist/{DocumentToolbar-BuctnVHN.js → DocumentToolbar-BVXSCk6Q.js} +5 -5
- package/dist/{DocxViewer-CAGBzliC.js → DocxViewer-CJW0E-Dc.js} +2 -2
- package/dist/{F0AiProcessingOverlay-Dl_56dL9.js → F0AiProcessingOverlay-C4TJg7Ty.js} +511 -511
- package/dist/{F0CanvasPanel-C8MuYy_8.js → F0CanvasPanel-LsH7koo5.js} +2677 -2654
- package/dist/{F0DocumentViewer-C9gCxjxk.js → F0DocumentViewer-C559_ubP.js} +35 -35
- package/dist/F0DocumentViewer-DGjeNx30.js +3 -0
- package/dist/{F0Map-D4esyFFE.js → F0Map-CQndAu_Q.js} +100 -100
- package/dist/{F0Select-dBwkgMBc.js → F0Select-CY_CcXQ2.js} +1030 -1030
- package/dist/{F0Text-D0_mpu2P.js → F0Text-MLpPbWjh.js} +12 -12
- package/dist/{F0VideoPlayer-CUUQmvVm.js → F0VideoPlayer-BQG87AwT.js} +38 -38
- package/dist/F0VideoPlayer-iQW4yQlk.js +1 -0
- package/dist/{Map-DFCc5qR0.js → Map-DrtKJWqp.js} +17 -17
- package/dist/{PdfThumbnail-D09QDkNP.js → PdfThumbnail-V-2qCeAL.js} +1 -1
- package/dist/{SheetViewer-Cvd2xwE5.js → SheetViewer-nMaleah4.js} +4 -4
- package/dist/{TextViewer-Bk0Xz1nv.js → TextViewer-DktXuGxN.js} +2 -2
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +1 -1
- package/dist/{dist-r1yM6TIs.js → dist-BB2MlAD_.js} +1 -1
- package/dist/experimental.d.ts +69 -4
- package/dist/experimental.js +5983 -5645
- package/dist/{exports-DsGJH4CD.d.ts → exports-YFGEaBWt.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +326 -326
- package/dist/{i18n-provider-defaults-D7TVD4xk.js → i18n-provider-defaults-DD76Cjbd.js} +5 -0
- package/dist/{i18n-provider-defaults-14y_lreJ.d.ts → i18n-provider-defaults-iAsTLZ8q.d.ts} +6 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CL4pclEl.d.ts → index-Br3UrbPk.d.ts} +18 -1
- package/dist/{maplibre-B5inXAW8.js → maplibre-BaPc6h37.js} +1 -1
- package/dist/{pdfWorker-5t9rytw2.js → pdfWorker-Di6OBsJs.js} +1 -1
- package/dist/{popover-DquDnBKd.js → popover-C8rmkngm.js} +2 -2
- package/dist/{posts-DgzHTT_B.js → posts-DGtDUrKT.js} +2 -0
- package/dist/styles.css +1 -1
- package/dist/{types-Di2cYBLz.d.ts → types-CpvhOpCV.d.ts} +2 -2
- package/dist/{useData-BEZesy_8.js → useData-DqN-h3iG.js} +287 -287
- package/package.json +1 -1
- package/dist/F0DocumentViewer-CUkiuREP.js +0 -3
- package/dist/F0VideoPlayer-rLZ5qvuq.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $t as t, A as n, Ct as r, D as i, E as a, Ht as o, Mt as s, N as c, St as l, T as u, U as d, a as f, b as p, cr as m, fn as h, i as g, j as _, k as v, on as y, or as b, p as x, sn as S, sr as C, t as w, vn as T, x as E, y as D, yn as O } from "./popover-C8rmkngm.js";
|
|
3
3
|
import { L as k, R as ee } from "./tooltip-BX4dSfeL.js";
|
|
4
4
|
import { t as te } from "./dist-Cuwaibqg.js";
|
|
5
5
|
import * as A from "react";
|
|
@@ -190,7 +190,7 @@ var H = N((e, t) => /* @__PURE__ */ V("svg", {
|
|
|
190
190
|
strokeLinecap: "round",
|
|
191
191
|
d: "M19 12C19 13.3845 18.5895 14.7378 17.8203 15.889C17.0511 17.0401 15.9579 17.9373 14.6788 18.4672C13.3997 18.997 11.9922 19.1356 10.6344 18.8655C9.2765 18.5954 8.02922 17.9287 7.05025 16.9497C6.07128 15.9708 5.4046 14.7235 5.1345 13.3656C4.86441 12.0078 5.00303 10.6003 5.53284 9.32122C6.06266 8.04213 6.95986 6.94888 8.11101 6.17971C9.26215 5.41054 10.6155 5 12 5"
|
|
192
192
|
})
|
|
193
|
-
})), K =
|
|
193
|
+
})), K = T({
|
|
194
194
|
base: "text-base text-f1-foreground",
|
|
195
195
|
variants: {
|
|
196
196
|
variant: {
|
|
@@ -242,69 +242,69 @@ var H = N((e, t) => /* @__PURE__ */ V("svg", {
|
|
|
242
242
|
"positive-strong": "p",
|
|
243
243
|
"info-strong": "p",
|
|
244
244
|
code: "code"
|
|
245
|
-
}, de = N(({ content: e, variant: t, align: n, className:
|
|
246
|
-
let
|
|
245
|
+
}, de = N(({ content: e, variant: t, align: n, className: i, as: a, ellipsis: o, noEllipsisTooltip: s, markdown: c, required: u, ...d }, f) => {
|
|
246
|
+
let p = a ?? q[t ?? "body"], m = u ? /* @__PURE__ */ B("span", {
|
|
247
247
|
className: "text-f1-foreground-critical",
|
|
248
248
|
"aria-hidden": "true",
|
|
249
249
|
children: " *"
|
|
250
250
|
}) : null;
|
|
251
|
-
if (
|
|
252
|
-
let
|
|
253
|
-
return
|
|
254
|
-
...
|
|
251
|
+
if (o !== void 0) {
|
|
252
|
+
let r = typeof o == "number" ? o : 1;
|
|
253
|
+
return m ? M(p, {
|
|
254
|
+
...d,
|
|
255
255
|
className: k(K({
|
|
256
256
|
variant: t,
|
|
257
257
|
align: n
|
|
258
|
-
}),
|
|
259
|
-
ref:
|
|
260
|
-
}, /* @__PURE__ */ B(
|
|
261
|
-
lines:
|
|
262
|
-
noTooltip:
|
|
258
|
+
}), i, "inline-flex gap-0.5"),
|
|
259
|
+
ref: f
|
|
260
|
+
}, /* @__PURE__ */ B(l, {
|
|
261
|
+
lines: r,
|
|
262
|
+
noTooltip: s,
|
|
263
263
|
tag: "span",
|
|
264
264
|
className: "min-w-0",
|
|
265
|
-
markdown:
|
|
265
|
+
markdown: c,
|
|
266
266
|
children: e
|
|
267
|
-
}),
|
|
268
|
-
ref:
|
|
269
|
-
lines:
|
|
270
|
-
noTooltip:
|
|
271
|
-
tag:
|
|
267
|
+
}), m) : /* @__PURE__ */ B(l, {
|
|
268
|
+
ref: f,
|
|
269
|
+
lines: r,
|
|
270
|
+
noTooltip: s,
|
|
271
|
+
tag: p,
|
|
272
272
|
className: k(K({
|
|
273
273
|
variant: t,
|
|
274
274
|
align: n
|
|
275
|
-
}),
|
|
276
|
-
markdown:
|
|
277
|
-
...
|
|
275
|
+
}), i),
|
|
276
|
+
markdown: c,
|
|
277
|
+
...d,
|
|
278
278
|
children: e
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
if (
|
|
282
|
-
let
|
|
283
|
-
return
|
|
284
|
-
...
|
|
281
|
+
if (c) {
|
|
282
|
+
let a = r(e);
|
|
283
|
+
return m ? M(p, {
|
|
284
|
+
...d,
|
|
285
285
|
className: k(K({
|
|
286
286
|
variant: t,
|
|
287
287
|
align: n
|
|
288
|
-
}),
|
|
289
|
-
ref:
|
|
290
|
-
}, /* @__PURE__ */ B("span", { dangerouslySetInnerHTML: { __html:
|
|
291
|
-
...
|
|
288
|
+
}), i),
|
|
289
|
+
ref: f
|
|
290
|
+
}, /* @__PURE__ */ B("span", { dangerouslySetInnerHTML: { __html: a } }), m) : M(p, {
|
|
291
|
+
...d,
|
|
292
292
|
className: k(K({
|
|
293
293
|
variant: t,
|
|
294
294
|
align: n
|
|
295
|
-
}),
|
|
296
|
-
ref:
|
|
297
|
-
dangerouslySetInnerHTML: { __html:
|
|
295
|
+
}), i),
|
|
296
|
+
ref: f,
|
|
297
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
|
-
return M(
|
|
301
|
-
...
|
|
300
|
+
return M(p, {
|
|
301
|
+
...d,
|
|
302
302
|
className: k(K({
|
|
303
303
|
variant: t,
|
|
304
304
|
align: n
|
|
305
|
-
}),
|
|
306
|
-
ref:
|
|
307
|
-
}, e,
|
|
305
|
+
}), i),
|
|
306
|
+
ref: f
|
|
307
|
+
}, e, m);
|
|
308
308
|
});
|
|
309
309
|
de.displayName = "Text";
|
|
310
310
|
//#endregion
|
|
@@ -333,7 +333,7 @@ var fe = {
|
|
|
333
333
|
});
|
|
334
334
|
};
|
|
335
335
|
me.displayName = "ColorAvatar";
|
|
336
|
-
var J =
|
|
336
|
+
var J = m(b("F0AvatarColor", me)), Y = {
|
|
337
337
|
xs: {
|
|
338
338
|
box: "h-5 min-w-5",
|
|
339
339
|
circle: "size-4",
|
|
@@ -387,7 +387,7 @@ var J = l(C("F0AvatarColor", me)), Y = {
|
|
|
387
387
|
});
|
|
388
388
|
};
|
|
389
389
|
he.displayName = "ColorListAvatar";
|
|
390
|
-
var ge =
|
|
390
|
+
var ge = m(b("F0AvatarColorList", he)), _e = N((e, t) => /* @__PURE__ */ V("svg", {
|
|
391
391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
392
392
|
fill: "none",
|
|
393
393
|
viewBox: "0 0 24 24",
|
|
@@ -1150,7 +1150,7 @@ var ge = l(C("F0AvatarColorList", he)), _e = N((e, t) => /* @__PURE__ */ V("svg"
|
|
|
1150
1150
|
timeoff: it,
|
|
1151
1151
|
workflows: ct,
|
|
1152
1152
|
whats_new: Le
|
|
1153
|
-
}, ut =
|
|
1153
|
+
}, ut = T({
|
|
1154
1154
|
base: "relative flex shrink-0 items-center justify-center",
|
|
1155
1155
|
variants: { size: {
|
|
1156
1156
|
"4xs": "h-2.5 w-2.5",
|
|
@@ -1162,7 +1162,7 @@ var ge = l(C("F0AvatarColorList", he)), _e = N((e, t) => /* @__PURE__ */ V("svg"
|
|
|
1162
1162
|
lg: "h-10 w-10"
|
|
1163
1163
|
} },
|
|
1164
1164
|
defaultVariants: { size: "sm" }
|
|
1165
|
-
}), dt =
|
|
1165
|
+
}), dt = T({
|
|
1166
1166
|
base: "relative text-f1-foreground-inverse drop-shadow",
|
|
1167
1167
|
variants: { size: {
|
|
1168
1168
|
"4xs": "h-[7px] w-[7px]",
|
|
@@ -1215,7 +1215,7 @@ function pt({ size: e = "sm", module: t, ...n }) {
|
|
|
1215
1215
|
}), r ? /* @__PURE__ */ B(r, { className: dt({ size: e }) }) : null]
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
|
-
var mt =
|
|
1218
|
+
var mt = m(pt), ht = T({
|
|
1219
1219
|
base: "flex shrink-0 items-center justify-center rounded-full",
|
|
1220
1220
|
variants: {
|
|
1221
1221
|
type: {
|
|
@@ -1241,12 +1241,12 @@ var mt = l(pt), ht = p({
|
|
|
1241
1241
|
sm: "xs",
|
|
1242
1242
|
md: "sm",
|
|
1243
1243
|
lg: "md"
|
|
1244
|
-
}, _t =
|
|
1244
|
+
}, _t = m(b("Badge", ({ type: e, size: t = "md", icon: n }) => /* @__PURE__ */ B("div", {
|
|
1245
1245
|
className: ht({
|
|
1246
1246
|
type: e,
|
|
1247
1247
|
size: t
|
|
1248
1248
|
}),
|
|
1249
|
-
children: /* @__PURE__ */ B(
|
|
1249
|
+
children: /* @__PURE__ */ B(S, {
|
|
1250
1250
|
icon: n,
|
|
1251
1251
|
size: gt[t]
|
|
1252
1252
|
})
|
|
@@ -1256,7 +1256,7 @@ var mt = l(pt), ht = p({
|
|
|
1256
1256
|
scope: n,
|
|
1257
1257
|
imageLoadingStatus: i,
|
|
1258
1258
|
onImageLoadingStatusChange: a,
|
|
1259
|
-
children: /* @__PURE__ */ B(
|
|
1259
|
+
children: /* @__PURE__ */ B(E.span, {
|
|
1260
1260
|
...r,
|
|
1261
1261
|
ref: t
|
|
1262
1262
|
})
|
|
@@ -1264,15 +1264,15 @@ var mt = l(pt), ht = p({
|
|
|
1264
1264
|
});
|
|
1265
1265
|
Ct.displayName = vt;
|
|
1266
1266
|
var wt = "AvatarImage", Tt = A.forwardRef((e, t) => {
|
|
1267
|
-
let { __scopeAvatar:
|
|
1267
|
+
let { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {}, ...s } = e, c = St(wt, n), l = Ot(r, s.referrerPolicy), u = i((e) => {
|
|
1268
1268
|
o(e), c.onImageLoadingStatusChange(e);
|
|
1269
1269
|
});
|
|
1270
|
-
return
|
|
1270
|
+
return a(() => {
|
|
1271
1271
|
l !== "idle" && u(l);
|
|
1272
|
-
}, [l, u]), l === "loaded" ? /* @__PURE__ */ B(
|
|
1272
|
+
}, [l, u]), l === "loaded" ? /* @__PURE__ */ B(E.img, {
|
|
1273
1273
|
...s,
|
|
1274
1274
|
ref: t,
|
|
1275
|
-
src:
|
|
1275
|
+
src: r
|
|
1276
1276
|
}) : null;
|
|
1277
1277
|
});
|
|
1278
1278
|
Tt.displayName = wt;
|
|
@@ -1283,23 +1283,23 @@ var Et = "AvatarFallback", Dt = A.forwardRef((e, t) => {
|
|
|
1283
1283
|
let e = window.setTimeout(() => s(!0), r);
|
|
1284
1284
|
return () => window.clearTimeout(e);
|
|
1285
1285
|
}
|
|
1286
|
-
}, [r]), o && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ B(
|
|
1286
|
+
}, [r]), o && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ B(E.span, {
|
|
1287
1287
|
...i,
|
|
1288
1288
|
ref: t
|
|
1289
1289
|
}) : null;
|
|
1290
1290
|
});
|
|
1291
1291
|
Dt.displayName = Et;
|
|
1292
1292
|
function Ot(e, t) {
|
|
1293
|
-
let [n,
|
|
1294
|
-
return
|
|
1293
|
+
let [n, r] = A.useState("idle");
|
|
1294
|
+
return a(() => {
|
|
1295
1295
|
if (!e) {
|
|
1296
|
-
|
|
1296
|
+
r("error");
|
|
1297
1297
|
return;
|
|
1298
1298
|
}
|
|
1299
|
-
let n = !0,
|
|
1300
|
-
n &&
|
|
1299
|
+
let n = !0, i = new window.Image(), a = (e) => () => {
|
|
1300
|
+
n && r(e);
|
|
1301
1301
|
};
|
|
1302
|
-
return
|
|
1302
|
+
return r("loading"), i.onload = a("loaded"), i.onerror = a("error"), i.src = e, t && (i.referrerPolicy = t), () => {
|
|
1303
1303
|
n = !1;
|
|
1304
1304
|
};
|
|
1305
1305
|
}, [e, t]), n;
|
|
@@ -1319,7 +1319,7 @@ var kt = Ct, At = Tt, jt = Dt, Mt = j(void 0), Nt = ({ children: e, ...t }) => /
|
|
|
1319
1319
|
...e,
|
|
1320
1320
|
...r
|
|
1321
1321
|
});
|
|
1322
|
-
}), It =
|
|
1322
|
+
}), It = T({
|
|
1323
1323
|
base: "relative flex shrink-0 items-center justify-center overflow-hidden text-center font-semibold ring-1 ring-inset ring-f1-border-secondary",
|
|
1324
1324
|
variants: {
|
|
1325
1325
|
size: {
|
|
@@ -1503,32 +1503,32 @@ var Wt = {
|
|
|
1503
1503
|
lg: "md",
|
|
1504
1504
|
xl: "lg",
|
|
1505
1505
|
"2xl": "lg"
|
|
1506
|
-
}, Yt = (e) => Vt.includes(e), Xt = (e) => e && !Yt(e) ? (console.warn(`The avatar size: ${e} is deprecated. Use ${X[e]} instead.`), X[e] ?? qt) : e ?? qt, Zt = ({ icon: e, src: t, flag: n }) => e ? "bg-f1-background-secondary" : t || n ? "bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary" : "", Z = N(({ src: e, name:
|
|
1507
|
-
let f = I(() => Object.fromEntries(Object.entries(X).map(([e, t]) => [t, e])), []), p = Xt(
|
|
1506
|
+
}, Yt = (e) => Vt.includes(e), Xt = (e) => e && !Yt(e) ? (console.warn(`The avatar size: ${e} is deprecated. Use ${X[e]} instead.`), X[e] ?? qt) : e ?? qt, Zt = ({ icon: e, src: t, flag: n }) => e ? "bg-f1-background-secondary" : t || n ? "bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary" : "", Z = N(({ src: e, name: n, size: r, type: i = "base", color: a = "random", "aria-label": o, "aria-labelledby": s, badge: c, flag: l, icon: u }, d) => {
|
|
1507
|
+
let f = I(() => Object.fromEntries(Object.entries(X).map(([e, t]) => [t, e])), []), p = Xt(r), m = Ht(n, p), h = a === "random" ? Ut(Array.isArray(n) ? n.join("") : n) : a, g = !!(o || s), _ = Gt(p), v = Kt(p), y = I(() => c ? /* @__PURE__ */ V(z, { children: [c.type === "module" ? /* @__PURE__ */ B(mt, {
|
|
1508
1508
|
module: c.module,
|
|
1509
|
-
size:
|
|
1509
|
+
size: v
|
|
1510
1510
|
}) : null, c.type === "module" ? null : /* @__PURE__ */ B(_t, {
|
|
1511
1511
|
type: c.type,
|
|
1512
1512
|
icon: c.icon,
|
|
1513
|
-
size:
|
|
1513
|
+
size: _
|
|
1514
1514
|
})] }) : null, [
|
|
1515
1515
|
c,
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
]),
|
|
1516
|
+
_,
|
|
1517
|
+
v
|
|
1518
|
+
]), b = /* @__PURE__ */ V("div", {
|
|
1519
1519
|
className: "relative inline-flex h-fit w-fit",
|
|
1520
1520
|
children: [/* @__PURE__ */ B("div", {
|
|
1521
1521
|
className: "relative h-fit w-fit",
|
|
1522
|
-
style: c ? { clipPath: Wt.get(
|
|
1522
|
+
style: c ? { clipPath: Wt.get(i === "rounded" ? "rounded" : "base", p, c.type === "module" ? "module" : "default") } : void 0,
|
|
1523
1523
|
children: /* @__PURE__ */ B(Lt, {
|
|
1524
1524
|
size: f[p] || "small",
|
|
1525
|
-
type:
|
|
1526
|
-
color:
|
|
1525
|
+
type: i,
|
|
1526
|
+
color: h,
|
|
1527
1527
|
ref: d,
|
|
1528
1528
|
role: "img",
|
|
1529
|
-
"aria-hidden": !
|
|
1530
|
-
"aria-label":
|
|
1531
|
-
"aria-labelledby":
|
|
1529
|
+
"aria-hidden": !g,
|
|
1530
|
+
"aria-label": o,
|
|
1531
|
+
"aria-labelledby": s,
|
|
1532
1532
|
translate: "no",
|
|
1533
1533
|
"data-a11y-color-contrast-ignore": !0,
|
|
1534
1534
|
className: Zt({
|
|
@@ -1536,7 +1536,7 @@ var Wt = {
|
|
|
1536
1536
|
src: e,
|
|
1537
1537
|
flag: l
|
|
1538
1538
|
}),
|
|
1539
|
-
children: u ? /* @__PURE__ */ B(
|
|
1539
|
+
children: u ? /* @__PURE__ */ B(S, {
|
|
1540
1540
|
icon: u.icon,
|
|
1541
1541
|
color: u.color,
|
|
1542
1542
|
size: Jt[p]
|
|
@@ -1554,13 +1554,13 @@ var Wt = {
|
|
|
1554
1554
|
})
|
|
1555
1555
|
}), c ? /* @__PURE__ */ B("div", {
|
|
1556
1556
|
className: "absolute -bottom-0.5 -right-0.5",
|
|
1557
|
-
children:
|
|
1557
|
+
children: y
|
|
1558
1558
|
}) : null]
|
|
1559
1559
|
});
|
|
1560
|
-
return c?.tooltip ? /* @__PURE__ */ B(
|
|
1560
|
+
return c?.tooltip ? /* @__PURE__ */ B(t, {
|
|
1561
1561
|
description: c.tooltip,
|
|
1562
|
-
children:
|
|
1563
|
-
}) :
|
|
1562
|
+
children: b
|
|
1563
|
+
}) : b;
|
|
1564
1564
|
});
|
|
1565
1565
|
Z.displayName = "BaseAvatar";
|
|
1566
1566
|
//#endregion
|
|
@@ -1576,7 +1576,7 @@ var Qt = ({ name: e, src: t, size: n, "aria-label": r, "aria-labelledby": i, bad
|
|
|
1576
1576
|
badge: a
|
|
1577
1577
|
});
|
|
1578
1578
|
Qt.displayName = "CompanyAvatar";
|
|
1579
|
-
var $t =
|
|
1579
|
+
var $t = m(Qt), en = [
|
|
1580
1580
|
"xs",
|
|
1581
1581
|
"sm",
|
|
1582
1582
|
"md",
|
|
@@ -1598,13 +1598,13 @@ var $t = l(Qt), en = [
|
|
|
1598
1598
|
className: k("flex aspect-square items-center justify-center border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary", tn[t]),
|
|
1599
1599
|
"aria-label": n,
|
|
1600
1600
|
"aria-labelledby": r,
|
|
1601
|
-
children: /* @__PURE__ */ B(
|
|
1601
|
+
children: /* @__PURE__ */ B(s, {
|
|
1602
1602
|
emoji: e,
|
|
1603
1603
|
size: nn[t]
|
|
1604
1604
|
})
|
|
1605
1605
|
}));
|
|
1606
1606
|
rn.displayName = "EmojiAvatar";
|
|
1607
|
-
var an =
|
|
1607
|
+
var an = m(rn), on = {
|
|
1608
1608
|
pdf: {
|
|
1609
1609
|
type: "PDF",
|
|
1610
1610
|
color: "text-f1-foreground-accent"
|
|
@@ -1734,16 +1734,16 @@ var an = l(rn), on = {
|
|
|
1734
1734
|
sm: "xs"
|
|
1735
1735
|
};
|
|
1736
1736
|
return e && t[e] ? t[e] : t.sm;
|
|
1737
|
-
}, fn = N(({ file: e, badge:
|
|
1738
|
-
let { type:
|
|
1739
|
-
module:
|
|
1737
|
+
}, fn = N(({ file: e, badge: n, dataTestId: r, ...i }, a) => {
|
|
1738
|
+
let { type: o, color: s } = ln(e), c = I(() => Object.fromEntries(Object.entries(X).map(([e, t]) => [t, e])), [])[i.size] ?? "small", l = un(i.size), u = dn(i.size), d = I(() => n ? /* @__PURE__ */ V(z, { children: [n.type === "module" ? /* @__PURE__ */ B(mt, {
|
|
1739
|
+
module: n.module,
|
|
1740
1740
|
size: u
|
|
1741
|
-
}) : null,
|
|
1742
|
-
type:
|
|
1743
|
-
icon:
|
|
1741
|
+
}) : null, n.type === "module" ? null : /* @__PURE__ */ B(_t, {
|
|
1742
|
+
type: n.type,
|
|
1743
|
+
icon: n.icon,
|
|
1744
1744
|
size: l
|
|
1745
1745
|
})] }) : null, [
|
|
1746
|
-
|
|
1746
|
+
n,
|
|
1747
1747
|
l,
|
|
1748
1748
|
u
|
|
1749
1749
|
]), f = I(() => {
|
|
@@ -1753,22 +1753,22 @@ var an = l(rn), on = {
|
|
|
1753
1753
|
md: "text-sm",
|
|
1754
1754
|
lg: "text-sm"
|
|
1755
1755
|
};
|
|
1756
|
-
return e[
|
|
1757
|
-
}, [
|
|
1758
|
-
return /* @__PURE__ */ B(
|
|
1759
|
-
dataTestId:
|
|
1756
|
+
return e[i.size || "sm"] ?? e.sm;
|
|
1757
|
+
}, [i]);
|
|
1758
|
+
return /* @__PURE__ */ B(C, {
|
|
1759
|
+
dataTestId: r,
|
|
1760
1760
|
children: /* @__PURE__ */ V(Lt, {
|
|
1761
|
-
ref:
|
|
1761
|
+
ref: a,
|
|
1762
1762
|
className: k("bg-f1-background", "overflow-visible"),
|
|
1763
|
-
...
|
|
1763
|
+
...i,
|
|
1764
1764
|
size: c,
|
|
1765
1765
|
children: [/* @__PURE__ */ B(zt, {
|
|
1766
|
-
className: k("select-none font-semibold", f,
|
|
1767
|
-
children:
|
|
1768
|
-
}),
|
|
1766
|
+
className: k("select-none font-semibold", f, s),
|
|
1767
|
+
children: o
|
|
1768
|
+
}), n ? /* @__PURE__ */ B("div", {
|
|
1769
1769
|
className: "absolute -bottom-0.5 -right-0.5",
|
|
1770
|
-
children:
|
|
1771
|
-
description:
|
|
1770
|
+
children: n.tooltip ? /* @__PURE__ */ B(t, {
|
|
1771
|
+
description: n.tooltip,
|
|
1772
1772
|
children: /* @__PURE__ */ B("div", {
|
|
1773
1773
|
className: "cursor-help",
|
|
1774
1774
|
children: d
|
|
@@ -16446,7 +16446,7 @@ var Pu = (e) => {
|
|
|
16446
16446
|
if (!t) console.warn(`Flag component for code "${e}" not found`);
|
|
16447
16447
|
else return t;
|
|
16448
16448
|
}, Fu = ({ flag: e, size: t, "aria-label": n, "aria-labelledby": r, badge: i }) => {
|
|
16449
|
-
let a = Pu(e), o =
|
|
16449
|
+
let a = Pu(e), o = y().countries[e] ?? e;
|
|
16450
16450
|
return /* @__PURE__ */ B(Z, {
|
|
16451
16451
|
type: "base",
|
|
16452
16452
|
name: o,
|
|
@@ -16459,7 +16459,7 @@ var Pu = (e) => {
|
|
|
16459
16459
|
});
|
|
16460
16460
|
};
|
|
16461
16461
|
Fu.displayName = "FlagAvatar";
|
|
16462
|
-
var Iu =
|
|
16462
|
+
var Iu = m(Fu), Lu = [
|
|
16463
16463
|
"xs",
|
|
16464
16464
|
"sm",
|
|
16465
16465
|
"md",
|
|
@@ -16473,7 +16473,7 @@ var Iu = l(Fu), Lu = [
|
|
|
16473
16473
|
className: k("flex aspect-square items-center justify-center border border-solid border-f1-border-secondary bg-f1-background", Ru[t]),
|
|
16474
16474
|
"aria-label": r,
|
|
16475
16475
|
"aria-labelledby": i,
|
|
16476
|
-
children: /* @__PURE__ */ B(
|
|
16476
|
+
children: /* @__PURE__ */ B(S, {
|
|
16477
16477
|
icon: e,
|
|
16478
16478
|
size: t,
|
|
16479
16479
|
state: n,
|
|
@@ -16481,7 +16481,7 @@ var Iu = l(Fu), Lu = [
|
|
|
16481
16481
|
})
|
|
16482
16482
|
});
|
|
16483
16483
|
zu.displayName = "IconAvatar";
|
|
16484
|
-
var Bu =
|
|
16484
|
+
var Bu = m(zu), Vu = ({ firstName: e, lastName: t, src: n, size: r, "aria-label": i, "aria-labelledby": a, badge: o, deactivated: s, pending: c }) => {
|
|
16485
16485
|
let l = s ? ce : c ? ue : void 0;
|
|
16486
16486
|
return /* @__PURE__ */ B(Z, {
|
|
16487
16487
|
type: "rounded",
|
|
@@ -16499,7 +16499,7 @@ var Bu = l(zu), Vu = ({ firstName: e, lastName: t, src: n, size: r, "aria-label"
|
|
|
16499
16499
|
});
|
|
16500
16500
|
};
|
|
16501
16501
|
Vu.displayName = "PersonAvatar";
|
|
16502
|
-
var Hu =
|
|
16502
|
+
var Hu = m(Vu), Uu = ({ name: e, src: t, size: n, "aria-label": r, "aria-labelledby": i, badge: a }) => /* @__PURE__ */ B(Z, {
|
|
16503
16503
|
type: "base",
|
|
16504
16504
|
name: e,
|
|
16505
16505
|
src: t,
|
|
@@ -16510,10 +16510,10 @@ var Hu = l(Vu), Uu = ({ name: e, src: t, size: n, "aria-label": r, "aria-labelle
|
|
|
16510
16510
|
badge: a
|
|
16511
16511
|
});
|
|
16512
16512
|
Uu.displayName = "TeamAvatar";
|
|
16513
|
-
var Wu =
|
|
16513
|
+
var Wu = m(Uu), Gu = k("opacity-0 transition-opacity motion-reduce:transition-none", "group-hover/avatar-action:opacity-100 has-[:focus-visible]:opacity-100", "[@media(hover:none)]:opacity-100"), Ku = ({ label: e, icon: t, critical: n = !1, onSelect: r }) => /* @__PURE__ */ V(c, {
|
|
16514
16514
|
className: k("flex w-full cursor-pointer items-start gap-1.5", n && "text-f1-foreground-critical"),
|
|
16515
16515
|
onSelect: r,
|
|
16516
|
-
children: [t ? /* @__PURE__ */ B(
|
|
16516
|
+
children: [t ? /* @__PURE__ */ B(S, {
|
|
16517
16517
|
icon: t,
|
|
16518
16518
|
size: "md",
|
|
16519
16519
|
className: n ? "text-f1-icon-critical" : "text-f1-icon"
|
|
@@ -16521,8 +16521,8 @@ var Wu = l(Uu), Gu = k("opacity-0 transition-opacity motion-reduce:transition-no
|
|
|
16521
16521
|
className: "truncate",
|
|
16522
16522
|
children: e
|
|
16523
16523
|
})]
|
|
16524
|
-
}), qu = ({ actions: e, children:
|
|
16525
|
-
let r =
|
|
16524
|
+
}), qu = ({ actions: e, children: t }) => {
|
|
16525
|
+
let r = y(), [i, a] = R(!1), [o, s] = R(!1), c = async (e) => {
|
|
16526
16526
|
if (e instanceof Promise) {
|
|
16527
16527
|
a(!0);
|
|
16528
16528
|
try {
|
|
@@ -16531,35 +16531,35 @@ var Wu = l(Uu), Gu = k("opacity-0 transition-opacity motion-reduce:transition-no
|
|
|
16531
16531
|
a(!1);
|
|
16532
16532
|
}
|
|
16533
16533
|
}
|
|
16534
|
-
}, [
|
|
16535
|
-
icon:
|
|
16536
|
-
label:
|
|
16534
|
+
}, [l] = e, u = e.length > 1, f = /* @__PURE__ */ B(p, {
|
|
16535
|
+
icon: u ? W : l.icon ?? W,
|
|
16536
|
+
label: u ? r.actions.edit : l.label,
|
|
16537
16537
|
hideLabel: !0,
|
|
16538
16538
|
size: "sm",
|
|
16539
16539
|
variant: "ghost",
|
|
16540
16540
|
loading: i,
|
|
16541
|
-
onClick:
|
|
16541
|
+
onClick: u ? void 0 : () => void c(l.onClick())
|
|
16542
16542
|
});
|
|
16543
16543
|
return /* @__PURE__ */ V("div", {
|
|
16544
16544
|
className: "group/avatar-action relative inline-flex h-fit w-fit",
|
|
16545
|
-
children: [
|
|
16546
|
-
className: k("absolute -bottom-1 -right-1 inline-flex rounded-sm border border-solid border-f1-border-secondary bg-f1-background", Gu, (i ||
|
|
16547
|
-
children:
|
|
16548
|
-
open:
|
|
16549
|
-
onOpenChange:
|
|
16550
|
-
children: [/* @__PURE__ */ B(
|
|
16545
|
+
children: [t, /* @__PURE__ */ B("div", {
|
|
16546
|
+
className: k("absolute -bottom-1 -right-1 inline-flex rounded-sm border border-solid border-f1-border-secondary bg-f1-background", Gu, (i || o) && "opacity-100"),
|
|
16547
|
+
children: u ? /* @__PURE__ */ V(n, {
|
|
16548
|
+
open: o,
|
|
16549
|
+
onOpenChange: s,
|
|
16550
|
+
children: [/* @__PURE__ */ B(d, {
|
|
16551
16551
|
asChild: !0,
|
|
16552
|
-
children:
|
|
16552
|
+
children: f
|
|
16553
16553
|
}), /* @__PURE__ */ B(_, {
|
|
16554
16554
|
align: "start",
|
|
16555
16555
|
children: e.map((e) => /* @__PURE__ */ B(Ku, {
|
|
16556
16556
|
label: e.label,
|
|
16557
16557
|
icon: e.icon,
|
|
16558
16558
|
critical: e.critical,
|
|
16559
|
-
onSelect: () => void
|
|
16559
|
+
onSelect: () => void c(e.onClick())
|
|
16560
16560
|
}, e.label))
|
|
16561
16561
|
})]
|
|
16562
|
-
}) :
|
|
16562
|
+
}) : f
|
|
16563
16563
|
})]
|
|
16564
16564
|
});
|
|
16565
16565
|
}, Ju = (e, t, n) => t.find((t) => t === e) ?? n, Yu = ({ avatar: e, size: t = "xs", dataTestId: n }) => {
|
|
@@ -16644,8 +16644,8 @@ var Wu = l(Uu), Gu = k("opacity-0 transition-opacity motion-reduce:transition-no
|
|
|
16644
16644
|
}, Xu = ({ actions: e, ...t }) => e?.length ? /* @__PURE__ */ B(qu, {
|
|
16645
16645
|
actions: e,
|
|
16646
16646
|
children: /* @__PURE__ */ B(Yu, { ...t })
|
|
16647
|
-
}) : /* @__PURE__ */ B(Yu, { ...t }), Zu =
|
|
16648
|
-
let r =
|
|
16647
|
+
}) : /* @__PURE__ */ B(Yu, { ...t }), Zu = m(Xu), Qu = O.create(S), $u = ({ count: e, totalItemsCount: t, isOpen: n }) => {
|
|
16648
|
+
let r = y();
|
|
16649
16649
|
return /* @__PURE__ */ V("div", {
|
|
16650
16650
|
className: k("flex items-center gap-1 rounded py-1.5 pl-3 pr-2 text-base font-medium text-f1-foreground transition-colors hover:bg-f1-background-secondary", n && "bg-f1-background-secondary"),
|
|
16651
16651
|
children: [
|
|
@@ -16668,20 +16668,20 @@ $u.displayName = "OverflowIndicator";
|
|
|
16668
16668
|
//#region src/elements/OverflowList/useOverflowCalculation.ts
|
|
16669
16669
|
var ed = 20;
|
|
16670
16670
|
function td(e, t, n) {
|
|
16671
|
-
let r = L(null), i = L(null), a = L(null),
|
|
16672
|
-
|
|
16671
|
+
let r = L(null), i = L(null), a = L(null), s = L(null), c = L(null), [l, u] = R(null), [d, f] = R(!1);
|
|
16672
|
+
o({
|
|
16673
16673
|
ref: r,
|
|
16674
16674
|
onResize: () => {
|
|
16675
|
-
|
|
16675
|
+
h();
|
|
16676
16676
|
}
|
|
16677
16677
|
});
|
|
16678
|
-
let
|
|
16678
|
+
let p = P(() => {
|
|
16679
16679
|
if (n?.itemsWidth) return Array.isArray(n.itemsWidth) ? n.itemsWidth : Array(e.length).fill(n.itemsWidth);
|
|
16680
|
-
if (!
|
|
16681
|
-
let t =
|
|
16680
|
+
if (!s.current) return [];
|
|
16681
|
+
let t = s.current.children, r = [];
|
|
16682
16682
|
for (let e of t) r.push(e.getBoundingClientRect().width);
|
|
16683
16683
|
return r;
|
|
16684
|
-
}, [n?.itemsWidth, e.length]),
|
|
16684
|
+
}, [n?.itemsWidth, e.length]), m = P(({ itemWidths: t, availableWidth: r }) => {
|
|
16685
16685
|
let i = 0, a = 0;
|
|
16686
16686
|
for (let e of t) {
|
|
16687
16687
|
let t = a + e;
|
|
@@ -16693,65 +16693,65 @@ function td(e, t, n) {
|
|
|
16693
16693
|
n?.max,
|
|
16694
16694
|
n?.min,
|
|
16695
16695
|
e.length
|
|
16696
|
-
]),
|
|
16696
|
+
]), h = P(() => {
|
|
16697
16697
|
if (e.length === 0 || !r.current) return;
|
|
16698
|
-
let o = r.current.clientWidth,
|
|
16698
|
+
let o = r.current.clientWidth, s = i.current?.offsetWidth || a.current?.offsetWidth || 32, l = p(), d = l.map((e) => e + t), f = o - s - t, h = m({
|
|
16699
16699
|
itemWidths: d,
|
|
16700
|
-
availableWidth:
|
|
16700
|
+
availableWidth: f
|
|
16701
16701
|
});
|
|
16702
|
-
h >= e.length && (n?.max === void 0 || e.length <= n.max) && (h =
|
|
16702
|
+
h >= e.length && (n?.max === void 0 || e.length <= n.max) && (h = m({
|
|
16703
16703
|
itemWidths: d,
|
|
16704
16704
|
availableWidth: o
|
|
16705
16705
|
}));
|
|
16706
|
-
let g = h >= e.length ? o :
|
|
16706
|
+
let g = h >= e.length ? o : f, _ = c.current;
|
|
16707
16707
|
if (_ !== null && h > _) {
|
|
16708
|
-
let e =
|
|
16708
|
+
let e = m({
|
|
16709
16709
|
itemWidths: d,
|
|
16710
16710
|
availableWidth: g - ed
|
|
16711
16711
|
});
|
|
16712
16712
|
e < h && (h = Math.max(e, _));
|
|
16713
16713
|
}
|
|
16714
|
-
|
|
16714
|
+
c.current = h, e.length - h === 1 && h > 0 && l.length > 0 && s === l[l.length - 1] - t && (h = e.length), u(h);
|
|
16715
16715
|
}, [
|
|
16716
16716
|
e,
|
|
16717
16717
|
t,
|
|
16718
|
-
f,
|
|
16719
16718
|
p,
|
|
16719
|
+
m,
|
|
16720
16720
|
n?.max
|
|
16721
16721
|
]);
|
|
16722
16722
|
F(() => {
|
|
16723
|
-
|
|
16723
|
+
c.current = null;
|
|
16724
16724
|
}, [e.length]), F(() => {
|
|
16725
|
-
|
|
16726
|
-
}, [
|
|
16727
|
-
|
|
16725
|
+
h();
|
|
16726
|
+
}, [h]), F(() => {
|
|
16727
|
+
f(!0);
|
|
16728
16728
|
}, []);
|
|
16729
|
-
let { visibleItems:
|
|
16729
|
+
let { visibleItems: g, overflowItems: _ } = I(() => l === null ? {
|
|
16730
16730
|
visibleItems: [],
|
|
16731
16731
|
overflowItems: []
|
|
16732
16732
|
} : {
|
|
16733
|
-
visibleItems: e.slice(0,
|
|
16734
|
-
overflowItems: e.slice(
|
|
16735
|
-
}, [e,
|
|
16733
|
+
visibleItems: e.slice(0, l),
|
|
16734
|
+
overflowItems: e.slice(l)
|
|
16735
|
+
}, [e, l]);
|
|
16736
16736
|
return {
|
|
16737
16737
|
containerRef: r,
|
|
16738
16738
|
overflowButtonRef: i,
|
|
16739
16739
|
customOverflowIndicatorRef: a,
|
|
16740
|
-
measurementContainerRef:
|
|
16741
|
-
visibleItems:
|
|
16742
|
-
overflowItems:
|
|
16743
|
-
isInitialized:
|
|
16740
|
+
measurementContainerRef: s,
|
|
16741
|
+
visibleItems: g,
|
|
16742
|
+
overflowItems: _,
|
|
16743
|
+
isInitialized: d
|
|
16744
16744
|
};
|
|
16745
16745
|
}
|
|
16746
16746
|
//#endregion
|
|
16747
16747
|
//#region src/elements/OverflowList/OverflowList.tsx
|
|
16748
|
-
var nd = function({ items: e, renderListItem: t, renderDropdownItem: n, overflowIndicatorWithPopover: r = !0, renderOverflowIndicator: i, forceShowingOverflowIndicator: a = !1, className: o = "", gap: s = 8, max:
|
|
16749
|
-
let [p,
|
|
16750
|
-
|
|
16751
|
-
}, []), { containerRef:
|
|
16752
|
-
max:
|
|
16753
|
-
min:
|
|
16754
|
-
itemsWidth:
|
|
16748
|
+
var nd = function({ items: e, renderListItem: t, renderDropdownItem: n, overflowIndicatorWithPopover: r = !0, renderOverflowIndicator: i, forceShowingOverflowIndicator: a = !1, className: o = "", gap: s = 8, max: c, min: l = 0, fluidItems: u = !1, itemsWidth: d }) {
|
|
16749
|
+
let [p, m] = R(!1), _ = P((e) => {
|
|
16750
|
+
m(e);
|
|
16751
|
+
}, []), { containerRef: v, overflowButtonRef: y, customOverflowIndicatorRef: b, measurementContainerRef: x, visibleItems: S, overflowItems: C, isInitialized: T } = td(e, s, {
|
|
16752
|
+
max: c,
|
|
16753
|
+
min: l,
|
|
16754
|
+
itemsWidth: d
|
|
16755
16755
|
}), E = I(() => /* @__PURE__ */ B($u, {
|
|
16756
16756
|
totalItemsCount: e.length,
|
|
16757
16757
|
isOpen: p,
|
|
@@ -16760,16 +16760,16 @@ var nd = function({ items: e, renderListItem: t, renderDropdownItem: n, overflow
|
|
|
16760
16760
|
e.length,
|
|
16761
16761
|
p,
|
|
16762
16762
|
C.length
|
|
16763
|
-
]), D = I(() => T ? null : e.map((e, t) => /* @__PURE__ */ B(
|
|
16763
|
+
]), D = I(() => T ? null : e.map((e, t) => /* @__PURE__ */ B(h, { className: "h-2 w-20 rounded-md" }, `placeholder-${t}`)), [e, T]), O = a || C.length > 0, te = "flex min-w-0 items-center justify-start whitespace-nowrap";
|
|
16764
16764
|
return /* @__PURE__ */ V("div", {
|
|
16765
|
-
ref:
|
|
16765
|
+
ref: v,
|
|
16766
16766
|
className: k("relative flex items-center", o),
|
|
16767
16767
|
style: {
|
|
16768
16768
|
gap: s > 0 ? `${s}px` : void 0,
|
|
16769
16769
|
marginLeft: s < 0 ? `${-s}px` : void 0
|
|
16770
16770
|
},
|
|
16771
16771
|
children: [
|
|
16772
|
-
|
|
16772
|
+
d ? null : /* @__PURE__ */ B("div", {
|
|
16773
16773
|
ref: x,
|
|
16774
16774
|
"aria-hidden": "true",
|
|
16775
16775
|
className: k("pointer-events-none invisible absolute left-0 top-0 w-max opacity-0", te),
|
|
@@ -16782,7 +16782,7 @@ var nd = function({ items: e, renderListItem: t, renderDropdownItem: n, overflow
|
|
|
16782
16782
|
}, `measure-${n}`))
|
|
16783
16783
|
}),
|
|
16784
16784
|
/* @__PURE__ */ V("div", {
|
|
16785
|
-
className: k(te,
|
|
16785
|
+
className: k(te, u && "[&>*]:min-w-0"),
|
|
16786
16786
|
style: { gap: s > 0 ? `${s}px` : void 0 },
|
|
16787
16787
|
"data-testid": "overflow-visible-container",
|
|
16788
16788
|
children: [T ? S.map((e, n) => /* @__PURE__ */ B("div", {
|
|
@@ -16794,15 +16794,15 @@ var nd = function({ items: e, renderListItem: t, renderDropdownItem: n, overflow
|
|
|
16794
16794
|
}),
|
|
16795
16795
|
O ? /* @__PURE__ */ B(z, { children: r ? /* @__PURE__ */ V(w, {
|
|
16796
16796
|
open: p,
|
|
16797
|
-
onOpenChange:
|
|
16798
|
-
children: [/* @__PURE__ */ B(
|
|
16797
|
+
onOpenChange: _,
|
|
16798
|
+
children: [/* @__PURE__ */ B(f, {
|
|
16799
16799
|
asChild: !0,
|
|
16800
16800
|
children: /* @__PURE__ */ B("button", {
|
|
16801
|
-
ref:
|
|
16801
|
+
ref: y,
|
|
16802
16802
|
className: k("inline-flex flex-shrink-0 items-center", ee()),
|
|
16803
16803
|
children: i?.(C.length, p) ?? E
|
|
16804
16804
|
})
|
|
16805
|
-
}), /* @__PURE__ */ B(
|
|
16805
|
+
}), /* @__PURE__ */ B(g, {
|
|
16806
16806
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
16807
16807
|
align: "end",
|
|
16808
16808
|
children: /* @__PURE__ */ B("div", {
|
|
@@ -16811,7 +16811,7 @@ var nd = function({ items: e, renderListItem: t, renderDropdownItem: n, overflow
|
|
|
16811
16811
|
})
|
|
16812
16812
|
})]
|
|
16813
16813
|
}) : /* @__PURE__ */ B("div", {
|
|
16814
|
-
ref:
|
|
16814
|
+
ref: b,
|
|
16815
16815
|
children: i?.(C.length, !1) ?? E
|
|
16816
16816
|
}) }) : null
|
|
16817
16817
|
]
|
|
@@ -16836,14 +16836,14 @@ function od(e, t) {
|
|
|
16836
16836
|
return A.useReducer((e, n) => t[e][n] ?? e, e);
|
|
16837
16837
|
}
|
|
16838
16838
|
var sd = "ScrollArea", [cd, ld] = v(sd), [ud, Q] = cd(sd), dd = A.forwardRef((e, t) => {
|
|
16839
|
-
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay:
|
|
16839
|
+
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = A.useState(null), [l, d] = A.useState(null), [f, p] = A.useState(null), [m, h] = A.useState(null), [g, _] = A.useState(null), [v, y] = A.useState(0), [b, x] = A.useState(0), [S, C] = A.useState(!1), [w, T] = A.useState(!1), D = u(t, (e) => c(e)), O = id(i);
|
|
16840
16840
|
return /* @__PURE__ */ B(ud, {
|
|
16841
16841
|
scope: n,
|
|
16842
16842
|
type: r,
|
|
16843
16843
|
dir: O,
|
|
16844
|
-
scrollHideDelay:
|
|
16845
|
-
scrollArea:
|
|
16846
|
-
viewport:
|
|
16844
|
+
scrollHideDelay: a,
|
|
16845
|
+
scrollArea: s,
|
|
16846
|
+
viewport: l,
|
|
16847
16847
|
onViewportChange: d,
|
|
16848
16848
|
content: f,
|
|
16849
16849
|
onContentChange: p,
|
|
@@ -16854,12 +16854,12 @@ var sd = "ScrollArea", [cd, ld] = v(sd), [ud, Q] = cd(sd), dd = A.forwardRef((e,
|
|
|
16854
16854
|
scrollbarY: g,
|
|
16855
16855
|
onScrollbarYChange: _,
|
|
16856
16856
|
scrollbarYEnabled: w,
|
|
16857
|
-
onScrollbarYEnabledChange:
|
|
16857
|
+
onScrollbarYEnabledChange: T,
|
|
16858
16858
|
onCornerWidthChange: y,
|
|
16859
16859
|
onCornerHeightChange: x,
|
|
16860
|
-
children: /* @__PURE__ */ B(
|
|
16860
|
+
children: /* @__PURE__ */ B(E.div, {
|
|
16861
16861
|
dir: O,
|
|
16862
|
-
...
|
|
16862
|
+
...o,
|
|
16863
16863
|
ref: D,
|
|
16864
16864
|
style: {
|
|
16865
16865
|
position: "relative",
|
|
@@ -16872,21 +16872,21 @@ var sd = "ScrollArea", [cd, ld] = v(sd), [ud, Q] = cd(sd), dd = A.forwardRef((e,
|
|
|
16872
16872
|
});
|
|
16873
16873
|
dd.displayName = sd;
|
|
16874
16874
|
var fd = "ScrollAreaViewport", pd = A.forwardRef((e, t) => {
|
|
16875
|
-
let { __scopeScrollArea: n, children: r, nonce: i, ...
|
|
16875
|
+
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = Q(fd, n), s = A.useRef(null), c = u(t, s, o.onViewportChange);
|
|
16876
16876
|
return /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("style", {
|
|
16877
16877
|
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
|
|
16878
16878
|
nonce: i
|
|
16879
|
-
}), /* @__PURE__ */ B(
|
|
16879
|
+
}), /* @__PURE__ */ B(E.div, {
|
|
16880
16880
|
"data-radix-scroll-area-viewport": "",
|
|
16881
|
-
...
|
|
16882
|
-
ref:
|
|
16881
|
+
...a,
|
|
16882
|
+
ref: c,
|
|
16883
16883
|
style: {
|
|
16884
|
-
overflowX:
|
|
16885
|
-
overflowY:
|
|
16884
|
+
overflowX: o.scrollbarXEnabled ? "scroll" : "hidden",
|
|
16885
|
+
overflowY: o.scrollbarYEnabled ? "scroll" : "hidden",
|
|
16886
16886
|
...e.style
|
|
16887
16887
|
},
|
|
16888
16888
|
children: /* @__PURE__ */ B("div", {
|
|
16889
|
-
ref:
|
|
16889
|
+
ref: o.onContentChange,
|
|
16890
16890
|
style: {
|
|
16891
16891
|
minWidth: "100%",
|
|
16892
16892
|
display: "table"
|
|
@@ -16990,8 +16990,8 @@ var hd = A.forwardRef((e, t) => {
|
|
|
16990
16990
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
16991
16991
|
...r,
|
|
16992
16992
|
ref: t,
|
|
16993
|
-
onPointerEnter:
|
|
16994
|
-
onPointerLeave:
|
|
16993
|
+
onPointerEnter: D(e.onPointerEnter, () => c("POINTER_ENTER")),
|
|
16994
|
+
onPointerLeave: D(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
16995
16995
|
})
|
|
16996
16996
|
});
|
|
16997
16997
|
}), _d = A.forwardRef((e, t) => {
|
|
@@ -17062,54 +17062,54 @@ var hd = A.forwardRef((e, t) => {
|
|
|
17062
17062
|
}
|
|
17063
17063
|
}) : null;
|
|
17064
17064
|
}), yd = A.forwardRef((e, t) => {
|
|
17065
|
-
let { sizes: n, onSizesChange: r, ...i } = e,
|
|
17065
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = A.useState(), c = A.useRef(null), l = u(t, c, a.onScrollbarXChange);
|
|
17066
17066
|
return A.useEffect(() => {
|
|
17067
|
-
|
|
17068
|
-
}, [
|
|
17067
|
+
c.current && s(getComputedStyle(c.current));
|
|
17068
|
+
}, [c]), /* @__PURE__ */ B(Cd, {
|
|
17069
17069
|
"data-orientation": "horizontal",
|
|
17070
17070
|
...i,
|
|
17071
|
-
ref:
|
|
17071
|
+
ref: l,
|
|
17072
17072
|
sizes: n,
|
|
17073
17073
|
style: {
|
|
17074
17074
|
bottom: 0,
|
|
17075
|
-
left:
|
|
17076
|
-
right:
|
|
17075
|
+
left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
17076
|
+
right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
17077
17077
|
"--radix-scroll-area-thumb-width": Md(n) + "px",
|
|
17078
17078
|
...e.style
|
|
17079
17079
|
},
|
|
17080
17080
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
|
|
17081
17081
|
onDragScroll: (t) => e.onDragScroll(t.x),
|
|
17082
17082
|
onWheelScroll: (t, n) => {
|
|
17083
|
-
if (
|
|
17084
|
-
let r =
|
|
17083
|
+
if (a.viewport) {
|
|
17084
|
+
let r = a.viewport.scrollLeft + t.deltaX;
|
|
17085
17085
|
e.onWheelScroll(r), Id(r, n) && t.preventDefault();
|
|
17086
17086
|
}
|
|
17087
17087
|
},
|
|
17088
17088
|
onResize: () => {
|
|
17089
|
-
|
|
17090
|
-
content:
|
|
17091
|
-
viewport:
|
|
17089
|
+
c.current && a.viewport && o && r({
|
|
17090
|
+
content: a.viewport.scrollWidth,
|
|
17091
|
+
viewport: a.viewport.offsetWidth,
|
|
17092
17092
|
scrollbar: {
|
|
17093
|
-
size:
|
|
17094
|
-
paddingStart: Ad(
|
|
17095
|
-
paddingEnd: Ad(
|
|
17093
|
+
size: c.current.clientWidth,
|
|
17094
|
+
paddingStart: Ad(o.paddingLeft),
|
|
17095
|
+
paddingEnd: Ad(o.paddingRight)
|
|
17096
17096
|
}
|
|
17097
17097
|
});
|
|
17098
17098
|
}
|
|
17099
17099
|
});
|
|
17100
17100
|
}), bd = A.forwardRef((e, t) => {
|
|
17101
|
-
let { sizes: n, onSizesChange: r, ...i } = e,
|
|
17101
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = Q($, e.__scopeScrollArea), [o, s] = A.useState(), c = A.useRef(null), l = u(t, c, a.onScrollbarYChange);
|
|
17102
17102
|
return A.useEffect(() => {
|
|
17103
|
-
|
|
17104
|
-
}, [
|
|
17103
|
+
c.current && s(getComputedStyle(c.current));
|
|
17104
|
+
}, [c]), /* @__PURE__ */ B(Cd, {
|
|
17105
17105
|
"data-orientation": "vertical",
|
|
17106
17106
|
...i,
|
|
17107
|
-
ref:
|
|
17107
|
+
ref: l,
|
|
17108
17108
|
sizes: n,
|
|
17109
17109
|
style: {
|
|
17110
17110
|
top: 0,
|
|
17111
|
-
right:
|
|
17112
|
-
left:
|
|
17111
|
+
right: a.dir === "ltr" ? 0 : void 0,
|
|
17112
|
+
left: a.dir === "rtl" ? 0 : void 0,
|
|
17113
17113
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
17114
17114
|
"--radix-scroll-area-thumb-height": Md(n) + "px",
|
|
17115
17115
|
...e.style
|
|
@@ -17117,25 +17117,25 @@ var hd = A.forwardRef((e, t) => {
|
|
|
17117
17117
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
|
|
17118
17118
|
onDragScroll: (t) => e.onDragScroll(t.y),
|
|
17119
17119
|
onWheelScroll: (t, n) => {
|
|
17120
|
-
if (
|
|
17121
|
-
let r =
|
|
17120
|
+
if (a.viewport) {
|
|
17121
|
+
let r = a.viewport.scrollTop + t.deltaY;
|
|
17122
17122
|
e.onWheelScroll(r), Id(r, n) && t.preventDefault();
|
|
17123
17123
|
}
|
|
17124
17124
|
},
|
|
17125
17125
|
onResize: () => {
|
|
17126
|
-
|
|
17127
|
-
content:
|
|
17128
|
-
viewport:
|
|
17126
|
+
c.current && a.viewport && o && r({
|
|
17127
|
+
content: a.viewport.scrollHeight,
|
|
17128
|
+
viewport: a.viewport.offsetHeight,
|
|
17129
17129
|
scrollbar: {
|
|
17130
|
-
size:
|
|
17131
|
-
paddingStart: Ad(
|
|
17132
|
-
paddingEnd: Ad(
|
|
17130
|
+
size: c.current.clientHeight,
|
|
17131
|
+
paddingStart: Ad(o.paddingTop),
|
|
17132
|
+
paddingEnd: Ad(o.paddingBottom)
|
|
17133
17133
|
}
|
|
17134
17134
|
});
|
|
17135
17135
|
}
|
|
17136
17136
|
});
|
|
17137
17137
|
}), [xd, Sd] = cd($), Cd = A.forwardRef((e, t) => {
|
|
17138
|
-
let { __scopeScrollArea:
|
|
17138
|
+
let { __scopeScrollArea: n, sizes: r, hasThumb: a, onThumbChange: o, onThumbPointerUp: s, onThumbPointerDown: c, onThumbPositionChange: l, onDragScroll: d, onWheelScroll: f, onResize: p, ...m } = e, h = Q($, n), [g, _] = A.useState(null), v = u(t, (e) => _(e)), y = A.useRef(null), b = A.useRef(""), x = h.viewport, S = r.content - r.viewport, C = i(f), w = i(l), T = Rd(p, 10);
|
|
17139
17139
|
function O(e) {
|
|
17140
17140
|
if (y.current) {
|
|
17141
17141
|
let t = e.clientX - y.current.left, n = e.clientY - y.current.top;
|
|
@@ -17156,26 +17156,26 @@ var hd = A.forwardRef((e, t) => {
|
|
|
17156
17156
|
g,
|
|
17157
17157
|
S,
|
|
17158
17158
|
C
|
|
17159
|
-
]), A.useEffect(w, [
|
|
17160
|
-
scope:
|
|
17159
|
+
]), A.useEffect(w, [r, w]), zd(g, T), zd(h.content, T), /* @__PURE__ */ B(xd, {
|
|
17160
|
+
scope: n,
|
|
17161
17161
|
scrollbar: g,
|
|
17162
|
-
hasThumb:
|
|
17163
|
-
onThumbChange:
|
|
17164
|
-
onThumbPointerUp:
|
|
17162
|
+
hasThumb: a,
|
|
17163
|
+
onThumbChange: i(o),
|
|
17164
|
+
onThumbPointerUp: i(s),
|
|
17165
17165
|
onThumbPositionChange: w,
|
|
17166
|
-
onThumbPointerDown:
|
|
17167
|
-
children: /* @__PURE__ */ B(
|
|
17166
|
+
onThumbPointerDown: i(c),
|
|
17167
|
+
children: /* @__PURE__ */ B(E.div, {
|
|
17168
17168
|
...m,
|
|
17169
17169
|
ref: v,
|
|
17170
17170
|
style: {
|
|
17171
17171
|
position: "absolute",
|
|
17172
17172
|
...m.style
|
|
17173
17173
|
},
|
|
17174
|
-
onPointerDown:
|
|
17174
|
+
onPointerDown: D(e.onPointerDown, (e) => {
|
|
17175
17175
|
e.button === 0 && (e.target.setPointerCapture(e.pointerId), y.current = g.getBoundingClientRect(), b.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), O(e));
|
|
17176
17176
|
}),
|
|
17177
|
-
onPointerMove:
|
|
17178
|
-
onPointerUp:
|
|
17177
|
+
onPointerMove: D(e.onPointerMove, O),
|
|
17178
|
+
onPointerUp: D(e.onPointerUp, (e) => {
|
|
17179
17179
|
let t = e.target;
|
|
17180
17180
|
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), document.body.style.webkitUserSelect = b.current, h.viewport && (h.viewport.style.scrollBehavior = ""), y.current = null;
|
|
17181
17181
|
})
|
|
@@ -17191,41 +17191,41 @@ var hd = A.forwardRef((e, t) => {
|
|
|
17191
17191
|
})
|
|
17192
17192
|
});
|
|
17193
17193
|
}), Ed = A.forwardRef((e, t) => {
|
|
17194
|
-
let { __scopeScrollArea: n, style: r, ...i } = e,
|
|
17195
|
-
|
|
17194
|
+
let { __scopeScrollArea: n, style: r, ...i } = e, a = Q(wd, n), o = Sd(wd, n), { onThumbPositionChange: s } = o, c = u(t, (e) => o.onThumbChange(e)), l = A.useRef(void 0), d = Rd(() => {
|
|
17195
|
+
l.current &&= (l.current(), void 0);
|
|
17196
17196
|
}, 100);
|
|
17197
17197
|
return A.useEffect(() => {
|
|
17198
|
-
let e =
|
|
17198
|
+
let e = a.viewport;
|
|
17199
17199
|
if (e) {
|
|
17200
17200
|
let t = () => {
|
|
17201
|
-
if (d(), !
|
|
17202
|
-
let t = Ld(e,
|
|
17203
|
-
|
|
17201
|
+
if (d(), !l.current) {
|
|
17202
|
+
let t = Ld(e, s);
|
|
17203
|
+
l.current = t, s();
|
|
17204
17204
|
}
|
|
17205
17205
|
};
|
|
17206
|
-
return
|
|
17206
|
+
return s(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
17207
17207
|
}
|
|
17208
17208
|
}, [
|
|
17209
|
-
|
|
17209
|
+
a.viewport,
|
|
17210
17210
|
d,
|
|
17211
|
-
|
|
17212
|
-
]), /* @__PURE__ */ B(
|
|
17213
|
-
"data-state":
|
|
17211
|
+
s
|
|
17212
|
+
]), /* @__PURE__ */ B(E.div, {
|
|
17213
|
+
"data-state": o.hasThumb ? "visible" : "hidden",
|
|
17214
17214
|
...i,
|
|
17215
|
-
ref:
|
|
17215
|
+
ref: c,
|
|
17216
17216
|
style: {
|
|
17217
17217
|
width: "var(--radix-scroll-area-thumb-width)",
|
|
17218
17218
|
height: "var(--radix-scroll-area-thumb-height)",
|
|
17219
17219
|
...r
|
|
17220
17220
|
},
|
|
17221
|
-
onPointerDownCapture:
|
|
17221
|
+
onPointerDownCapture: D(e.onPointerDownCapture, (e) => {
|
|
17222
17222
|
let t = e.target.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
|
|
17223
|
-
|
|
17223
|
+
o.onThumbPointerDown({
|
|
17224
17224
|
x: n,
|
|
17225
17225
|
y: r
|
|
17226
17226
|
});
|
|
17227
17227
|
}),
|
|
17228
|
-
onPointerUp:
|
|
17228
|
+
onPointerUp: D(e.onPointerUp, o.onThumbPointerUp)
|
|
17229
17229
|
});
|
|
17230
17230
|
});
|
|
17231
17231
|
Td.displayName = wd;
|
|
@@ -17245,7 +17245,7 @@ var kd = A.forwardRef((e, t) => {
|
|
|
17245
17245
|
}), zd(i.scrollbarY, () => {
|
|
17246
17246
|
let e = i.scrollbarY?.offsetWidth || 0;
|
|
17247
17247
|
i.onCornerWidthChange(e), o(e);
|
|
17248
|
-
}), l ? /* @__PURE__ */ B(
|
|
17248
|
+
}), l ? /* @__PURE__ */ B(E.div, {
|
|
17249
17249
|
...r,
|
|
17250
17250
|
ref: t,
|
|
17251
17251
|
style: {
|
|
@@ -17302,24 +17302,24 @@ var Ld = (e, t = () => {}) => {
|
|
|
17302
17302
|
})(), () => window.cancelAnimationFrame(r);
|
|
17303
17303
|
};
|
|
17304
17304
|
function Rd(e, t) {
|
|
17305
|
-
let
|
|
17306
|
-
return A.useEffect(() => () => window.clearTimeout(
|
|
17307
|
-
window.clearTimeout(
|
|
17308
|
-
}, [
|
|
17305
|
+
let n = i(e), r = A.useRef(0);
|
|
17306
|
+
return A.useEffect(() => () => window.clearTimeout(r.current), []), A.useCallback(() => {
|
|
17307
|
+
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
17308
|
+
}, [n, t]);
|
|
17309
17309
|
}
|
|
17310
17310
|
function zd(e, t) {
|
|
17311
|
-
let
|
|
17312
|
-
|
|
17311
|
+
let n = i(t);
|
|
17312
|
+
a(() => {
|
|
17313
17313
|
let t = 0;
|
|
17314
17314
|
if (e) {
|
|
17315
|
-
let
|
|
17316
|
-
cancelAnimationFrame(t), t = window.requestAnimationFrame(
|
|
17315
|
+
let r = new ResizeObserver(() => {
|
|
17316
|
+
cancelAnimationFrame(t), t = window.requestAnimationFrame(n);
|
|
17317
17317
|
});
|
|
17318
|
-
return
|
|
17319
|
-
window.cancelAnimationFrame(t),
|
|
17318
|
+
return r.observe(e), () => {
|
|
17319
|
+
window.cancelAnimationFrame(t), r.unobserve(e);
|
|
17320
17320
|
};
|
|
17321
17321
|
}
|
|
17322
|
-
}, [e,
|
|
17322
|
+
}, [e, n]);
|
|
17323
17323
|
}
|
|
17324
17324
|
var Bd = dd, Vd = pd, Hd = Od, Ud = N(({ className: e, children: t, showBar: n = !0, viewportRef: r, onScrollTop: i, onScrollBottom: a, focusableViewport: o = !0, scrollMargin: s = 0, ...c }, l) => {
|
|
17325
17325
|
let u = L(null), d = r ?? u;
|
|
@@ -17396,7 +17396,7 @@ function qd(e, t) {
|
|
|
17396
17396
|
}
|
|
17397
17397
|
//#endregion
|
|
17398
17398
|
//#region src/elements/avatars/F0AvatarList/components/MaxCounter.tsx
|
|
17399
|
-
var Jd =
|
|
17399
|
+
var Jd = T({
|
|
17400
17400
|
base: "flex shrink-0 items-center justify-center bg-f1-background-secondary font-medium text-f1-foreground-secondary",
|
|
17401
17401
|
variants: {
|
|
17402
17402
|
size: {
|
|
@@ -17423,13 +17423,13 @@ var Jd = p({
|
|
|
17423
17423
|
type: "base"
|
|
17424
17424
|
}
|
|
17425
17425
|
}), Yd = ({ count: e, size: t = "md", type: n, list: r, avatarType: i = "person" }) => {
|
|
17426
|
-
let [a, o] = R(!1), s = L(!1),
|
|
17427
|
-
F(() => () => clearTimeout(
|
|
17428
|
-
let
|
|
17429
|
-
|
|
17426
|
+
let [a, o] = R(!1), s = L(!1), c = L(null), l = L(void 0);
|
|
17427
|
+
F(() => () => clearTimeout(l.current), []);
|
|
17428
|
+
let u = () => clearTimeout(l.current), d = () => {
|
|
17429
|
+
u(), s.current = !0, o(!0);
|
|
17430
17430
|
}, p = () => {
|
|
17431
|
-
|
|
17432
|
-
},
|
|
17431
|
+
u(), l.current = setTimeout(() => o(!1), 150);
|
|
17432
|
+
}, m = t === "xs" ? /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(S, {
|
|
17433
17433
|
icon: U,
|
|
17434
17434
|
size: "xs"
|
|
17435
17435
|
}), /* @__PURE__ */ V("span", {
|
|
@@ -17441,9 +17441,9 @@ var Jd = p({
|
|
|
17441
17441
|
size: t,
|
|
17442
17442
|
type: n
|
|
17443
17443
|
})),
|
|
17444
|
-
children:
|
|
17444
|
+
children: m
|
|
17445
17445
|
});
|
|
17446
|
-
let
|
|
17446
|
+
let h = r.map((e, t) => {
|
|
17447
17447
|
let n = e.tooltipDescription;
|
|
17448
17448
|
return /* @__PURE__ */ V("div", {
|
|
17449
17449
|
className: "flex w-[180px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
@@ -17471,26 +17471,26 @@ var Jd = p({
|
|
|
17471
17471
|
return /* @__PURE__ */ V(w, {
|
|
17472
17472
|
open: a,
|
|
17473
17473
|
onOpenChange: o,
|
|
17474
|
-
children: [/* @__PURE__ */ B(
|
|
17474
|
+
children: [/* @__PURE__ */ B(f, {
|
|
17475
17475
|
asChild: !0,
|
|
17476
17476
|
children: /* @__PURE__ */ B("button", {
|
|
17477
17477
|
type: "button",
|
|
17478
|
-
onPointerEnter:
|
|
17478
|
+
onPointerEnter: d,
|
|
17479
17479
|
onPointerLeave: p,
|
|
17480
17480
|
onClick: (e) => {
|
|
17481
|
-
s.current = !1, a && (e.preventDefault(),
|
|
17481
|
+
s.current = !1, a && (e.preventDefault(), c.current?.focus());
|
|
17482
17482
|
},
|
|
17483
17483
|
className: k("cursor-pointer font-medium transition hover:bg-f1-background-secondary-hover", Jd({
|
|
17484
17484
|
size: t,
|
|
17485
17485
|
type: n
|
|
17486
17486
|
}), ee()),
|
|
17487
|
-
children:
|
|
17487
|
+
children: m
|
|
17488
17488
|
})
|
|
17489
|
-
}), /* @__PURE__ */ B(
|
|
17490
|
-
ref:
|
|
17489
|
+
}), /* @__PURE__ */ B(g, {
|
|
17490
|
+
ref: c,
|
|
17491
17491
|
side: "top",
|
|
17492
17492
|
className: "w-[200px] overflow-hidden rounded border-0 bg-f1-background-inverse p-0 font-medium text-f1-foreground-inverse shadow-none dark:border dark:border-solid dark:border-f1-border-secondary dark:bg-f1-background",
|
|
17493
|
-
onPointerEnter:
|
|
17493
|
+
onPointerEnter: u,
|
|
17494
17494
|
onPointerLeave: p,
|
|
17495
17495
|
onOpenAutoFocus: (e) => {
|
|
17496
17496
|
s.current && e.preventDefault();
|
|
@@ -17500,7 +17500,7 @@ var Jd = p({
|
|
|
17500
17500
|
},
|
|
17501
17501
|
children: /* @__PURE__ */ V(Wd, {
|
|
17502
17502
|
className: "[*[data-state=visible]_div]:bg-f1-foreground-inverse flex max-h-[172px] flex-col",
|
|
17503
|
-
children: [
|
|
17503
|
+
children: [h, /* @__PURE__ */ B(Kd, {
|
|
17504
17504
|
orientation: "vertical",
|
|
17505
17505
|
className: "[&_div]:bg-f1-foreground-inverse"
|
|
17506
17506
|
})]
|
|
@@ -17522,70 +17522,70 @@ var Jd = p({
|
|
|
17522
17522
|
sm: "path('M21.3746 4.50813C19.1755 1.76008 15.7933 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C15.7933 24 19.1755 22.2399 21.3746 19.4919C19.8788 17.3743 19 14.7898 19 12C19 9.21023 19.8788 6.62571 21.3746 4.50813Z')",
|
|
17523
17523
|
xs: "path('M18 4.19899C16.7442 5.95406 16 8.13577 16 10.5C16 12.8642 16.7442 15.0459 18 16.801C16.1755 19.3508 13.2712 21 10 21C4.47716 21 0 16.299 0 10.5C0 4.70102 4.47716 0 10 0C13.2712 0 16.1755 1.64923 18 4.19899Z')"
|
|
17524
17524
|
}
|
|
17525
|
-
}, Qd = ({ avatars: e, size:
|
|
17526
|
-
if (
|
|
17525
|
+
}, Qd = ({ avatars: e, size: n = "md", type: r, noTooltip: i = !1, remainingCount: a, max: o, tooltipScroll: s, layout: c }) => {
|
|
17526
|
+
if (n && !Xd.includes(n)) {
|
|
17527
17527
|
let e = {
|
|
17528
17528
|
small: "sm",
|
|
17529
17529
|
medium: "md",
|
|
17530
17530
|
xsmall: "xs"
|
|
17531
17531
|
};
|
|
17532
|
-
console.warn(`The avatar list size: ${
|
|
17532
|
+
console.warn(`The avatar list size: ${n} is deprecated. Use ${e[n]} instead.`), n = e[n] ?? "md";
|
|
17533
17533
|
}
|
|
17534
17534
|
let l = {
|
|
17535
17535
|
xs: -2,
|
|
17536
17536
|
sm: -3,
|
|
17537
17537
|
md: -4
|
|
17538
|
-
}[
|
|
17538
|
+
}[n] ?? 0, u = I(() => ({
|
|
17539
17539
|
xs: 20,
|
|
17540
17540
|
sm: 24,
|
|
17541
17541
|
md: 32
|
|
17542
|
-
})[
|
|
17542
|
+
})[n], [n]);
|
|
17543
17543
|
return /* @__PURE__ */ B(nd, {
|
|
17544
|
-
max:
|
|
17545
|
-
min:
|
|
17544
|
+
max: o,
|
|
17545
|
+
min: o,
|
|
17546
17546
|
items: e.map((e) => ({
|
|
17547
|
-
type:
|
|
17547
|
+
type: r,
|
|
17548
17548
|
...e
|
|
17549
17549
|
})),
|
|
17550
17550
|
gap: l,
|
|
17551
17551
|
itemsWidth: u,
|
|
17552
17552
|
className: "flex items-center",
|
|
17553
|
-
renderListItem: (
|
|
17554
|
-
let c = qd(
|
|
17553
|
+
renderListItem: (o, s) => {
|
|
17554
|
+
let c = qd(r, o), l = o.tooltipDescription, u = !!o.badge, d = s === e.length - 1, f = /* @__PURE__ */ B("div", {
|
|
17555
17555
|
className: "flex h-fit w-fit shrink-0 items-center justify-center",
|
|
17556
|
-
style: (!d || d &&
|
|
17556
|
+
style: (!d || d && a !== void 0) && !u ? { clipPath: Zd[r === "person" ? "rounded" : "base"][n] } : void 0,
|
|
17557
17557
|
children: /* @__PURE__ */ B(Zu, {
|
|
17558
17558
|
avatar: {
|
|
17559
|
-
...
|
|
17560
|
-
type:
|
|
17559
|
+
...o,
|
|
17560
|
+
type: r
|
|
17561
17561
|
},
|
|
17562
|
-
size:
|
|
17562
|
+
size: n
|
|
17563
17563
|
})
|
|
17564
17564
|
});
|
|
17565
|
-
return /* @__PURE__ */ B("div", { children:
|
|
17565
|
+
return /* @__PURE__ */ B("div", { children: i ? f : /* @__PURE__ */ B(t, {
|
|
17566
17566
|
label: c,
|
|
17567
17567
|
description: l,
|
|
17568
17568
|
children: f
|
|
17569
|
-
}) },
|
|
17569
|
+
}) }, s);
|
|
17570
17570
|
},
|
|
17571
17571
|
renderDropdownItem: () => null,
|
|
17572
|
-
forceShowingOverflowIndicator:
|
|
17573
|
-
renderOverflowIndicator: (
|
|
17572
|
+
forceShowingOverflowIndicator: a !== void 0,
|
|
17573
|
+
renderOverflowIndicator: (t) => /* @__PURE__ */ B("div", {
|
|
17574
17574
|
className: "flex h-fit w-fit items-center",
|
|
17575
17575
|
style: { marginLeft: l },
|
|
17576
17576
|
children: /* @__PURE__ */ B(Yd, {
|
|
17577
|
-
count: (
|
|
17578
|
-
size:
|
|
17579
|
-
type:
|
|
17580
|
-
avatarType:
|
|
17581
|
-
list:
|
|
17577
|
+
count: (a ?? 0) + t,
|
|
17578
|
+
size: n,
|
|
17579
|
+
type: r === "person" ? "rounded" : "base",
|
|
17580
|
+
avatarType: r,
|
|
17581
|
+
list: a ? void 0 : e.slice(e.length - t)
|
|
17582
17582
|
})
|
|
17583
17583
|
}),
|
|
17584
17584
|
overflowIndicatorWithPopover: !1
|
|
17585
17585
|
});
|
|
17586
17586
|
};
|
|
17587
17587
|
Qd.displayName = "AvatarList";
|
|
17588
|
-
var $d =
|
|
17588
|
+
var $d = m(Qd);
|
|
17589
17589
|
//#endregion
|
|
17590
17590
|
//#region ../../node_modules/.pnpm/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js
|
|
17591
17591
|
function ef(e, t) {
|