@arbidocs/react 0.3.160 → 0.3.161
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/index.cjs +220 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -6
- package/dist/index.d.ts +49 -6
- package/dist/index.js +214 -86
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkZMTLGO3K_cjs = require('./chunk-ZMTLGO3K.cjs');
|
|
4
3
|
var chunkZBZKHBDS_cjs = require('./chunk-ZBZKHBDS.cjs');
|
|
4
|
+
var chunkZMTLGO3K_cjs = require('./chunk-ZMTLGO3K.cjs');
|
|
5
5
|
var React2 = require('react');
|
|
6
6
|
var reactQuery = require('@tanstack/react-query');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -4399,7 +4399,7 @@ function ProjectEntity({
|
|
|
4399
4399
|
const variant = resolveVariant(relation, paid, hasCollaborators);
|
|
4400
4400
|
const { pill, icon: iconClass } = VARIANT_STYLES[variant];
|
|
4401
4401
|
const iconSizeClass = size === "base" ? "h-4 w-4" : "h-3.5 w-3.5";
|
|
4402
|
-
const iconNode = icon ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.
|
|
4402
|
+
const iconNode = icon ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: chunkZBZKHBDS_cjs.cn(iconSizeClass, iconClass) });
|
|
4403
4403
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4404
4404
|
EntityPill,
|
|
4405
4405
|
{
|
|
@@ -4541,18 +4541,22 @@ var UserEntity = React2.memo(function UserEntity2({
|
|
|
4541
4541
|
]
|
|
4542
4542
|
}
|
|
4543
4543
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkZBZKHBDS_cjs.cn("inline-block", variant === "pill" ? "" : className), children: avatarCore });
|
|
4544
|
-
const pillAvatar =
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
{
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4544
|
+
const pillAvatar = (
|
|
4545
|
+
// shrink-0: when the pill is squeezed the NAME truncates away — the avatar
|
|
4546
|
+
// must never collapse under it and overflow onto neighbouring text.
|
|
4547
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: chunkZBZKHBDS_cjs.cn("relative inline-block shrink-0", sizeClasses[size]), children: [
|
|
4548
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkZBZKHBDS_cjs.cn("block transition-opacity", canMessage && "group-hover/pill:opacity-0"), children: avatarCore }),
|
|
4549
|
+
canMessage && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4550
|
+
"span",
|
|
4551
|
+
{
|
|
4552
|
+
"aria-hidden": true,
|
|
4553
|
+
className: "absolute inset-0 flex items-center justify-center rounded-full bg-muted text-foreground opacity-0 transition-opacity group-hover/pill:opacity-100",
|
|
4554
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageCircleMore, { className: size === "xs" ? "h-3 w-3" : "h-4 w-4" })
|
|
4555
|
+
}
|
|
4556
|
+
),
|
|
4557
|
+
statusDot
|
|
4558
|
+
] })
|
|
4559
|
+
);
|
|
4556
4560
|
const resolvedTooltip = showTooltip ? tooltipContent : void 0;
|
|
4557
4561
|
if (variant === "pill") {
|
|
4558
4562
|
const row = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -4825,7 +4829,9 @@ var ENTITY_MAPPINGS = {
|
|
|
4825
4829
|
PLURAL: "Contacts"
|
|
4826
4830
|
},
|
|
4827
4831
|
ICONS: {
|
|
4828
|
-
|
|
4832
|
+
// A starred person, not an address-book card: contacts here are the
|
|
4833
|
+
// people you talk to, and the star reads as "your people".
|
|
4834
|
+
DEFAULT: lucideReact.UserStar,
|
|
4829
4835
|
NEW: lucideReact.UserPlus
|
|
4830
4836
|
}
|
|
4831
4837
|
},
|
|
@@ -4844,7 +4850,7 @@ var ENTITY_MAPPINGS = {
|
|
|
4844
4850
|
PLURAL: "Projects"
|
|
4845
4851
|
},
|
|
4846
4852
|
ICONS: {
|
|
4847
|
-
DEFAULT: lucideReact.
|
|
4853
|
+
DEFAULT: lucideReact.CreditCard
|
|
4848
4854
|
}
|
|
4849
4855
|
},
|
|
4850
4856
|
SKILL: {
|
|
@@ -5218,7 +5224,13 @@ var useNotify = zustand.create((set) => ({
|
|
|
5218
5224
|
removeNotification: (id) => set((s) => ({ notifications: s.notifications.filter((n) => n.id !== id) })),
|
|
5219
5225
|
clearNotifications: () => set({ notifications: [] }),
|
|
5220
5226
|
seed: (items) => set({ notifications: items }),
|
|
5221
|
-
record: (note) => set((s) => ({ notifications: [note, ...s.notifications].slice(0, 50) }))
|
|
5227
|
+
record: (note) => set((s) => ({ notifications: [note, ...s.notifications].slice(0, 50) })),
|
|
5228
|
+
syncSource: (source, items) => set((s) => ({
|
|
5229
|
+
notifications: [
|
|
5230
|
+
...items.map((n) => ({ ...n, source })),
|
|
5231
|
+
...s.notifications.filter((n) => n.source !== source)
|
|
5232
|
+
].sort((a, b) => b.ts - a.ts).slice(0, 100)
|
|
5233
|
+
}))
|
|
5222
5234
|
}));
|
|
5223
5235
|
function make(variant) {
|
|
5224
5236
|
return (title, opts = {}) => {
|
|
@@ -5237,7 +5249,8 @@ function make(variant) {
|
|
|
5237
5249
|
variant,
|
|
5238
5250
|
ts: Date.now(),
|
|
5239
5251
|
read: false,
|
|
5240
|
-
href: opts.href
|
|
5252
|
+
href: opts.href,
|
|
5253
|
+
ambient: opts.ambient
|
|
5241
5254
|
});
|
|
5242
5255
|
}
|
|
5243
5256
|
return id;
|
|
@@ -5252,7 +5265,7 @@ var notify = {
|
|
|
5252
5265
|
function seedNotifications(items) {
|
|
5253
5266
|
useNotify.getState().seed(items);
|
|
5254
5267
|
}
|
|
5255
|
-
var selectUnread = (s) => s.notifications.filter((n) => !n.read).length;
|
|
5268
|
+
var selectUnread = (s) => s.notifications.filter((n) => !n.read && !n.ambient).length;
|
|
5256
5269
|
var DEFAULT_NOTIFY_TONE = {
|
|
5257
5270
|
success: "text-green-600",
|
|
5258
5271
|
error: "text-destructive",
|
|
@@ -5307,8 +5320,14 @@ var GLYPH = {
|
|
|
5307
5320
|
};
|
|
5308
5321
|
function NotificationBell({
|
|
5309
5322
|
onNavigate,
|
|
5323
|
+
onMarkRead,
|
|
5324
|
+
onMarkAllRead,
|
|
5325
|
+
muted = false,
|
|
5326
|
+
onToggleMute,
|
|
5310
5327
|
toneClassNames,
|
|
5311
5328
|
emptyText = "You're all caught up.",
|
|
5329
|
+
onViewAll,
|
|
5330
|
+
viewAllLabel = "View all",
|
|
5312
5331
|
testId = "notifications"
|
|
5313
5332
|
}) {
|
|
5314
5333
|
const notifications = useNotify((s) => s.notifications);
|
|
@@ -5316,6 +5335,9 @@ function NotificationBell({
|
|
|
5316
5335
|
const markAllRead = useNotify((s) => s.markAllRead);
|
|
5317
5336
|
const markRead = useNotify((s) => s.markRead);
|
|
5318
5337
|
const tone = (v) => toneClassNames?.[v] ?? DEFAULT_NOTIFY_TONE[v];
|
|
5338
|
+
const [showAll, setShowAll] = React2.useState(false);
|
|
5339
|
+
const hasAmbient = notifications.some((n) => n.ambient);
|
|
5340
|
+
const visible = showAll ? notifications : notifications.filter((n) => !n.ambient);
|
|
5319
5341
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenu, { children: [
|
|
5320
5342
|
/* @__PURE__ */ jsxRuntime.jsx(chunkZBZKHBDS_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5321
5343
|
"button",
|
|
@@ -5328,7 +5350,7 @@ function NotificationBell({
|
|
|
5328
5350
|
unread > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5329
5351
|
"span",
|
|
5330
5352
|
{
|
|
5331
|
-
className: "absolute -right-0.5 -top-0.5 flex min-w-4 items-center justify-center rounded-full bg-
|
|
5353
|
+
className: "absolute -right-0.5 -top-0.5 flex min-w-4 items-center justify-center rounded-full bg-secondary px-1 text-[10px] font-semibold leading-4 text-secondary-foreground",
|
|
5332
5354
|
"data-testid": `${testId}-badge`,
|
|
5333
5355
|
children: unread > 9 ? "9+" : unread
|
|
5334
5356
|
}
|
|
@@ -5336,49 +5358,113 @@ function NotificationBell({
|
|
|
5336
5358
|
]
|
|
5337
5359
|
}
|
|
5338
5360
|
) }),
|
|
5339
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5361
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5362
|
+
chunkZBZKHBDS_cjs.DropdownMenuContent,
|
|
5363
|
+
{
|
|
5364
|
+
align: "end",
|
|
5365
|
+
sideOffset: 8,
|
|
5366
|
+
collisionPadding: 12,
|
|
5367
|
+
className: "w-[360px] rounded-lg border-border/60 p-0 shadow-lg",
|
|
5368
|
+
"data-testid": `${testId}-panel`,
|
|
5369
|
+
children: [
|
|
5370
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3 border-b border-border px-3.5 py-2.5", children: [
|
|
5371
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-foreground", children: "Notifications" }),
|
|
5372
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
5373
|
+
hasAmbient && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5374
|
+
"button",
|
|
5375
|
+
{
|
|
5376
|
+
onClick: () => setShowAll((v) => !v),
|
|
5377
|
+
"aria-pressed": showAll,
|
|
5378
|
+
className: chunkZBZKHBDS_cjs.cn(
|
|
5379
|
+
"text-xs font-medium transition-colors",
|
|
5380
|
+
showAll ? "text-primary" : "text-muted-foreground hover:text-foreground"
|
|
5381
|
+
),
|
|
5382
|
+
"data-testid": `${testId}-all-activity`,
|
|
5383
|
+
children: "All activity"
|
|
5384
|
+
}
|
|
5385
|
+
),
|
|
5386
|
+
unread > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5387
|
+
"button",
|
|
5388
|
+
{
|
|
5389
|
+
onClick: () => {
|
|
5390
|
+
markAllRead();
|
|
5391
|
+
onMarkAllRead?.();
|
|
5392
|
+
},
|
|
5393
|
+
className: "flex items-center gap-1 text-xs font-medium text-primary transition-colors hover:opacity-80",
|
|
5394
|
+
"data-testid": `${testId}-mark-all`,
|
|
5395
|
+
children: [
|
|
5396
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCheck, { className: "size-3.5" }),
|
|
5397
|
+
" Mark all read"
|
|
5398
|
+
]
|
|
5399
|
+
}
|
|
5400
|
+
),
|
|
5401
|
+
onToggleMute && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5402
|
+
"button",
|
|
5403
|
+
{
|
|
5404
|
+
onClick: onToggleMute,
|
|
5405
|
+
"aria-pressed": muted,
|
|
5406
|
+
title: muted ? "Unmute notifications" : "Mute notifications",
|
|
5407
|
+
"aria-label": muted ? "Unmute notifications" : "Mute notifications",
|
|
5408
|
+
className: chunkZBZKHBDS_cjs.cn(
|
|
5409
|
+
"flex size-6 items-center justify-center rounded-md transition-colors hover:bg-accent",
|
|
5410
|
+
muted ? "text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
5411
|
+
),
|
|
5412
|
+
"data-testid": `${testId}-mute`,
|
|
5413
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.BellOff, { className: "size-3.5" })
|
|
5414
|
+
}
|
|
5415
|
+
)
|
|
5416
|
+
] })
|
|
5417
|
+
] }),
|
|
5418
|
+
muted && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5419
|
+
"p",
|
|
5420
|
+
{
|
|
5421
|
+
className: "border-b border-border/60 bg-amber-500/10 px-3.5 py-1.5 text-[11px] text-muted-foreground",
|
|
5422
|
+
"data-testid": `${testId}-muted-note`,
|
|
5423
|
+
children: "Toasts are muted \u2014 everything still lands here."
|
|
5424
|
+
}
|
|
5425
|
+
),
|
|
5426
|
+
visible.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3.5 py-10 text-center text-sm text-muted-foreground", children: emptyText }) : /* @__PURE__ */ jsxRuntime.jsx(chunkZBZKHBDS_cjs.ScrollArea, { className: "max-h-[380px]", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { "data-testid": `${testId}-list`, children: visible.map((n) => {
|
|
5427
|
+
const Glyph = GLYPH[n.variant];
|
|
5428
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5429
|
+
"button",
|
|
5430
|
+
{
|
|
5431
|
+
onClick: () => {
|
|
5432
|
+
markRead(n.id);
|
|
5433
|
+
if (!n.read) onMarkRead?.(n.id);
|
|
5434
|
+
if (n.onSelect) n.onSelect();
|
|
5435
|
+
else if (n.href) onNavigate?.(n.href);
|
|
5436
|
+
},
|
|
5437
|
+
className: chunkZBZKHBDS_cjs.cn(
|
|
5438
|
+
"flex w-full items-start gap-3 border-b border-border/60 px-3.5 py-3 text-left transition-colors hover:bg-accent",
|
|
5439
|
+
!n.read && "bg-accent/40"
|
|
5440
|
+
),
|
|
5441
|
+
"data-testid": `${testId}-item`,
|
|
5442
|
+
children: [
|
|
5443
|
+
/* @__PURE__ */ jsxRuntime.jsx(Glyph, { className: chunkZBZKHBDS_cjs.cn("mt-0.5 size-4 shrink-0", tone(n.variant)) }),
|
|
5444
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
5445
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium leading-snug text-foreground", children: n.title }),
|
|
5446
|
+
n.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 line-clamp-2 text-xs leading-relaxed text-muted-foreground", children: n.description }),
|
|
5447
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-[11px] text-muted-foreground/80", children: formatRelativeTime(new Date(n.ts).toISOString()) })
|
|
5448
|
+
] }),
|
|
5449
|
+
!n.read && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-1.5 size-2 shrink-0 rounded-full bg-primary" })
|
|
5450
|
+
]
|
|
5451
|
+
}
|
|
5452
|
+
) }, n.id);
|
|
5453
|
+
}) }) }),
|
|
5454
|
+
onViewAll && // A real menu item, not a bare button: selecting it must CLOSE the
|
|
5455
|
+
// dropdown on its way to the full surface.
|
|
5456
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5457
|
+
chunkZBZKHBDS_cjs.DropdownMenuItem,
|
|
5458
|
+
{
|
|
5459
|
+
onClick: onViewAll,
|
|
5460
|
+
className: "justify-center rounded-none border-t border-border px-3.5 py-2.5 text-xs font-medium text-primary focus:text-primary",
|
|
5461
|
+
"data-testid": `${testId}-view-all`,
|
|
5462
|
+
children: viewAllLabel
|
|
5463
|
+
}
|
|
5464
|
+
)
|
|
5465
|
+
]
|
|
5466
|
+
}
|
|
5467
|
+
)
|
|
5382
5468
|
] });
|
|
5383
5469
|
}
|
|
5384
5470
|
var DEFAULT_TOAST_OPTIONS = {
|
|
@@ -6341,8 +6427,14 @@ function nameInitials(name) {
|
|
|
6341
6427
|
if (!parts.length) return "?";
|
|
6342
6428
|
return parts.slice(0, 2).map((p) => p[0]?.toUpperCase() ?? "").join("");
|
|
6343
6429
|
}
|
|
6430
|
+
var STATUS_DOT = {
|
|
6431
|
+
online: "bg-emerald-500",
|
|
6432
|
+
busy: "bg-amber-500",
|
|
6433
|
+
offline: "bg-destructive"
|
|
6434
|
+
};
|
|
6344
6435
|
function UserMenu({
|
|
6345
6436
|
user,
|
|
6437
|
+
status,
|
|
6346
6438
|
items = [],
|
|
6347
6439
|
onLogout,
|
|
6348
6440
|
logoutLabel = "Sign out",
|
|
@@ -6361,13 +6453,26 @@ function UserMenu({
|
|
|
6361
6453
|
),
|
|
6362
6454
|
"data-testid": testId,
|
|
6363
6455
|
children: [
|
|
6364
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6456
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative", children: [
|
|
6457
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.Avatar, { className: "size-8", children: [
|
|
6458
|
+
user.picture ? /* @__PURE__ */ jsxRuntime.jsx(chunkZBZKHBDS_cjs.AvatarImage, { src: user.picture, alt: user.name }) : null,
|
|
6459
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6460
|
+
chunkZBZKHBDS_cjs.AvatarFallback,
|
|
6461
|
+
{
|
|
6462
|
+
className: chunkZBZKHBDS_cjs.cn("bg-primary text-primary-foreground", classNames?.fallback),
|
|
6463
|
+
children: nameInitials(user.name)
|
|
6464
|
+
}
|
|
6465
|
+
)
|
|
6466
|
+
] }),
|
|
6467
|
+
status && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6468
|
+
"span",
|
|
6368
6469
|
{
|
|
6369
|
-
className: chunkZBZKHBDS_cjs.cn(
|
|
6370
|
-
|
|
6470
|
+
className: chunkZBZKHBDS_cjs.cn(
|
|
6471
|
+
"absolute -bottom-0.5 -right-0.5 size-2.5 rounded-full border-2 border-background",
|
|
6472
|
+
STATUS_DOT[status.tone]
|
|
6473
|
+
),
|
|
6474
|
+
title: status.detail ? `${status.label} \xB7 ${status.detail}` : status.label,
|
|
6475
|
+
"data-testid": status.testId ? `${status.testId}-dot` : void 0
|
|
6371
6476
|
}
|
|
6372
6477
|
)
|
|
6373
6478
|
] }),
|
|
@@ -6375,21 +6480,44 @@ function UserMenu({
|
|
|
6375
6480
|
]
|
|
6376
6481
|
}
|
|
6377
6482
|
) }),
|
|
6378
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6483
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6484
|
+
chunkZBZKHBDS_cjs.DropdownMenuContent,
|
|
6485
|
+
{
|
|
6486
|
+
align,
|
|
6487
|
+
sideOffset: 8,
|
|
6488
|
+
collisionPadding: 12,
|
|
6489
|
+
className: "w-56 rounded-lg border-border/60 shadow-lg",
|
|
6490
|
+
children: [
|
|
6491
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenuLabel, { children: [
|
|
6492
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium text-foreground", children: user.name }),
|
|
6493
|
+
user.email && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-normal text-muted-foreground", children: user.email }),
|
|
6494
|
+
status && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6495
|
+
"div",
|
|
6496
|
+
{
|
|
6497
|
+
className: "mt-1 text-xs font-normal text-muted-foreground",
|
|
6498
|
+
"data-testid": status.testId,
|
|
6499
|
+
children: [
|
|
6500
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
6501
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkZBZKHBDS_cjs.cn("size-2 shrink-0 rounded-full", STATUS_DOT[status.tone]) }),
|
|
6502
|
+
status.label
|
|
6503
|
+
] }),
|
|
6504
|
+
status.detail && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-0.5 truncate pl-3.5 text-[10px] leading-tight text-muted-foreground/70", children: status.detail })
|
|
6505
|
+
]
|
|
6506
|
+
}
|
|
6507
|
+
)
|
|
6508
|
+
] }),
|
|
6509
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkZBZKHBDS_cjs.DropdownMenuSeparator, {}),
|
|
6510
|
+
items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenuItem, { onClick: item.onSelect, "data-testid": item.testId, children: [
|
|
6511
|
+
item.icon && /* @__PURE__ */ jsxRuntime.jsx(item.icon, { className: "size-4" }),
|
|
6512
|
+
item.label
|
|
6513
|
+
] }, item.label)),
|
|
6514
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenuItem, { onClick: onLogout, "data-testid": logoutTestId ?? `${testId}-logout`, children: [
|
|
6515
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.LogOut, { className: "size-4" }),
|
|
6516
|
+
logoutLabel
|
|
6517
|
+
] })
|
|
6518
|
+
]
|
|
6519
|
+
}
|
|
6520
|
+
)
|
|
6393
6521
|
] });
|
|
6394
6522
|
}
|
|
6395
6523
|
var useArbiUiStore = zustand.create((set) => ({
|
|
@@ -7051,14 +7179,6 @@ function DocumentGallery({
|
|
|
7051
7179
|
);
|
|
7052
7180
|
}
|
|
7053
7181
|
|
|
7054
|
-
Object.defineProperty(exports, "ArbiProvider", {
|
|
7055
|
-
enumerable: true,
|
|
7056
|
-
get: function () { return chunkZMTLGO3K_cjs.ArbiProvider; }
|
|
7057
|
-
});
|
|
7058
|
-
Object.defineProperty(exports, "useArbi", {
|
|
7059
|
-
enumerable: true,
|
|
7060
|
-
get: function () { return chunkZMTLGO3K_cjs.useArbi; }
|
|
7061
|
-
});
|
|
7062
7182
|
Object.defineProperty(exports, "AiMarkdown", {
|
|
7063
7183
|
enumerable: true,
|
|
7064
7184
|
get: function () { return chunkZBZKHBDS_cjs.AiMarkdown; }
|
|
@@ -7483,6 +7603,14 @@ Object.defineProperty(exports, "toggleVariants", {
|
|
|
7483
7603
|
enumerable: true,
|
|
7484
7604
|
get: function () { return chunkZBZKHBDS_cjs.toggleVariants; }
|
|
7485
7605
|
});
|
|
7606
|
+
Object.defineProperty(exports, "ArbiProvider", {
|
|
7607
|
+
enumerable: true,
|
|
7608
|
+
get: function () { return chunkZMTLGO3K_cjs.ArbiProvider; }
|
|
7609
|
+
});
|
|
7610
|
+
Object.defineProperty(exports, "useArbi", {
|
|
7611
|
+
enumerable: true,
|
|
7612
|
+
get: function () { return chunkZMTLGO3K_cjs.useArbi; }
|
|
7613
|
+
});
|
|
7486
7614
|
Object.defineProperty(exports, "Arbi", {
|
|
7487
7615
|
enumerable: true,
|
|
7488
7616
|
get: function () { return browser.Arbi; }
|