@arbidocs/react 0.3.160 → 0.3.162
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 +205 -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 +199 -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,7 @@ 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 visible = notifications.filter((n) => !n.ambient);
|
|
5319
5339
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenu, { children: [
|
|
5320
5340
|
/* @__PURE__ */ jsxRuntime.jsx(chunkZBZKHBDS_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5321
5341
|
"button",
|
|
@@ -5328,7 +5348,7 @@ function NotificationBell({
|
|
|
5328
5348
|
unread > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5329
5349
|
"span",
|
|
5330
5350
|
{
|
|
5331
|
-
className: "absolute -right-0.5 -top-0.5 flex min-w-4 items-center justify-center rounded-full bg-
|
|
5351
|
+
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
5352
|
"data-testid": `${testId}-badge`,
|
|
5333
5353
|
children: unread > 9 ? "9+" : unread
|
|
5334
5354
|
}
|
|
@@ -5336,49 +5356,100 @@ function NotificationBell({
|
|
|
5336
5356
|
]
|
|
5337
5357
|
}
|
|
5338
5358
|
) }),
|
|
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
|
-
|
|
5359
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5360
|
+
chunkZBZKHBDS_cjs.DropdownMenuContent,
|
|
5361
|
+
{
|
|
5362
|
+
align: "end",
|
|
5363
|
+
sideOffset: 8,
|
|
5364
|
+
collisionPadding: 12,
|
|
5365
|
+
className: "w-[360px] rounded-lg border-border/60 p-0 shadow-lg",
|
|
5366
|
+
"data-testid": `${testId}-panel`,
|
|
5367
|
+
children: [
|
|
5368
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3 border-b border-border px-3.5 py-2.5", children: [
|
|
5369
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-foreground", children: "Notifications" }),
|
|
5370
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
5371
|
+
unread > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5372
|
+
"button",
|
|
5373
|
+
{
|
|
5374
|
+
onClick: () => {
|
|
5375
|
+
markAllRead();
|
|
5376
|
+
onMarkAllRead?.();
|
|
5377
|
+
},
|
|
5378
|
+
className: "flex items-center gap-1 text-xs font-medium text-primary transition-colors hover:opacity-80",
|
|
5379
|
+
"data-testid": `${testId}-mark-all`,
|
|
5380
|
+
children: [
|
|
5381
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCheck, { className: "size-3.5" }),
|
|
5382
|
+
" Mark all read"
|
|
5383
|
+
]
|
|
5384
|
+
}
|
|
5385
|
+
),
|
|
5386
|
+
onToggleMute && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5387
|
+
"button",
|
|
5388
|
+
{
|
|
5389
|
+
onClick: onToggleMute,
|
|
5390
|
+
"aria-pressed": muted,
|
|
5391
|
+
title: muted ? "Unmute notifications" : "Mute notifications",
|
|
5392
|
+
"aria-label": muted ? "Unmute notifications" : "Mute notifications",
|
|
5393
|
+
className: chunkZBZKHBDS_cjs.cn(
|
|
5394
|
+
"flex size-6 items-center justify-center rounded-md transition-colors hover:bg-accent",
|
|
5395
|
+
muted ? "text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
5396
|
+
),
|
|
5397
|
+
"data-testid": `${testId}-mute`,
|
|
5398
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.BellOff, { className: "size-3.5" })
|
|
5399
|
+
}
|
|
5400
|
+
)
|
|
5401
|
+
] })
|
|
5402
|
+
] }),
|
|
5403
|
+
muted && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5404
|
+
"p",
|
|
5405
|
+
{
|
|
5406
|
+
className: "border-b border-border/60 bg-amber-500/10 px-3.5 py-1.5 text-[11px] text-muted-foreground",
|
|
5407
|
+
"data-testid": `${testId}-muted-note`,
|
|
5408
|
+
children: "Toasts are muted \u2014 everything still lands here."
|
|
5409
|
+
}
|
|
5410
|
+
),
|
|
5411
|
+
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) => {
|
|
5412
|
+
const Glyph = GLYPH[n.variant];
|
|
5413
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5414
|
+
"button",
|
|
5415
|
+
{
|
|
5416
|
+
onClick: () => {
|
|
5417
|
+
markRead(n.id);
|
|
5418
|
+
if (!n.read) onMarkRead?.(n.id);
|
|
5419
|
+
if (n.onSelect) n.onSelect();
|
|
5420
|
+
else if (n.href) onNavigate?.(n.href);
|
|
5421
|
+
},
|
|
5422
|
+
className: chunkZBZKHBDS_cjs.cn(
|
|
5423
|
+
"flex w-full items-start gap-3 border-b border-border/60 px-3.5 py-3 text-left transition-colors hover:bg-accent",
|
|
5424
|
+
!n.read && "bg-accent/40"
|
|
5425
|
+
),
|
|
5426
|
+
"data-testid": `${testId}-item`,
|
|
5427
|
+
children: [
|
|
5428
|
+
/* @__PURE__ */ jsxRuntime.jsx(Glyph, { className: chunkZBZKHBDS_cjs.cn("mt-0.5 size-4 shrink-0", tone(n.variant)) }),
|
|
5429
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
5430
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium leading-snug text-foreground", children: n.title }),
|
|
5431
|
+
n.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 line-clamp-2 text-xs leading-relaxed text-muted-foreground", children: n.description }),
|
|
5432
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-[11px] text-muted-foreground/80", children: formatRelativeTime(new Date(n.ts).toISOString()) })
|
|
5433
|
+
] }),
|
|
5434
|
+
!n.read && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-1.5 size-2 shrink-0 rounded-full bg-primary" })
|
|
5435
|
+
]
|
|
5436
|
+
}
|
|
5437
|
+
) }, n.id);
|
|
5438
|
+
}) }) }),
|
|
5439
|
+
onViewAll && // A real menu item, not a bare button: selecting it must CLOSE the
|
|
5440
|
+
// dropdown on its way to the full surface.
|
|
5441
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5442
|
+
chunkZBZKHBDS_cjs.DropdownMenuItem,
|
|
5443
|
+
{
|
|
5444
|
+
onClick: onViewAll,
|
|
5445
|
+
className: "justify-center rounded-none border-t border-border px-3.5 py-2.5 text-xs font-medium text-primary focus:text-primary",
|
|
5446
|
+
"data-testid": `${testId}-view-all`,
|
|
5447
|
+
children: viewAllLabel
|
|
5448
|
+
}
|
|
5449
|
+
)
|
|
5450
|
+
]
|
|
5451
|
+
}
|
|
5452
|
+
)
|
|
5382
5453
|
] });
|
|
5383
5454
|
}
|
|
5384
5455
|
var DEFAULT_TOAST_OPTIONS = {
|
|
@@ -6341,8 +6412,14 @@ function nameInitials(name) {
|
|
|
6341
6412
|
if (!parts.length) return "?";
|
|
6342
6413
|
return parts.slice(0, 2).map((p) => p[0]?.toUpperCase() ?? "").join("");
|
|
6343
6414
|
}
|
|
6415
|
+
var STATUS_DOT = {
|
|
6416
|
+
online: "bg-emerald-500",
|
|
6417
|
+
busy: "bg-amber-500",
|
|
6418
|
+
offline: "bg-destructive"
|
|
6419
|
+
};
|
|
6344
6420
|
function UserMenu({
|
|
6345
6421
|
user,
|
|
6422
|
+
status,
|
|
6346
6423
|
items = [],
|
|
6347
6424
|
onLogout,
|
|
6348
6425
|
logoutLabel = "Sign out",
|
|
@@ -6361,13 +6438,26 @@ function UserMenu({
|
|
|
6361
6438
|
),
|
|
6362
6439
|
"data-testid": testId,
|
|
6363
6440
|
children: [
|
|
6364
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6441
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative", children: [
|
|
6442
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.Avatar, { className: "size-8", children: [
|
|
6443
|
+
user.picture ? /* @__PURE__ */ jsxRuntime.jsx(chunkZBZKHBDS_cjs.AvatarImage, { src: user.picture, alt: user.name }) : null,
|
|
6444
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6445
|
+
chunkZBZKHBDS_cjs.AvatarFallback,
|
|
6446
|
+
{
|
|
6447
|
+
className: chunkZBZKHBDS_cjs.cn("bg-primary text-primary-foreground", classNames?.fallback),
|
|
6448
|
+
children: nameInitials(user.name)
|
|
6449
|
+
}
|
|
6450
|
+
)
|
|
6451
|
+
] }),
|
|
6452
|
+
status && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6453
|
+
"span",
|
|
6368
6454
|
{
|
|
6369
|
-
className: chunkZBZKHBDS_cjs.cn(
|
|
6370
|
-
|
|
6455
|
+
className: chunkZBZKHBDS_cjs.cn(
|
|
6456
|
+
"absolute -bottom-0.5 -right-0.5 size-2.5 rounded-full border-2 border-background",
|
|
6457
|
+
STATUS_DOT[status.tone]
|
|
6458
|
+
),
|
|
6459
|
+
title: status.detail ? `${status.label} \xB7 ${status.detail}` : status.label,
|
|
6460
|
+
"data-testid": status.testId ? `${status.testId}-dot` : void 0
|
|
6371
6461
|
}
|
|
6372
6462
|
)
|
|
6373
6463
|
] }),
|
|
@@ -6375,21 +6465,44 @@ function UserMenu({
|
|
|
6375
6465
|
]
|
|
6376
6466
|
}
|
|
6377
6467
|
) }),
|
|
6378
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6468
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6469
|
+
chunkZBZKHBDS_cjs.DropdownMenuContent,
|
|
6470
|
+
{
|
|
6471
|
+
align,
|
|
6472
|
+
sideOffset: 8,
|
|
6473
|
+
collisionPadding: 12,
|
|
6474
|
+
className: "w-56 rounded-lg border-border/60 shadow-lg",
|
|
6475
|
+
children: [
|
|
6476
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenuLabel, { children: [
|
|
6477
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium text-foreground", children: user.name }),
|
|
6478
|
+
user.email && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-normal text-muted-foreground", children: user.email }),
|
|
6479
|
+
status && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6480
|
+
"div",
|
|
6481
|
+
{
|
|
6482
|
+
className: "mt-1 text-xs font-normal text-muted-foreground",
|
|
6483
|
+
"data-testid": status.testId,
|
|
6484
|
+
children: [
|
|
6485
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
6486
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkZBZKHBDS_cjs.cn("size-2 shrink-0 rounded-full", STATUS_DOT[status.tone]) }),
|
|
6487
|
+
status.label
|
|
6488
|
+
] }),
|
|
6489
|
+
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 })
|
|
6490
|
+
]
|
|
6491
|
+
}
|
|
6492
|
+
)
|
|
6493
|
+
] }),
|
|
6494
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkZBZKHBDS_cjs.DropdownMenuSeparator, {}),
|
|
6495
|
+
items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenuItem, { onClick: item.onSelect, "data-testid": item.testId, children: [
|
|
6496
|
+
item.icon && /* @__PURE__ */ jsxRuntime.jsx(item.icon, { className: "size-4" }),
|
|
6497
|
+
item.label
|
|
6498
|
+
] }, item.label)),
|
|
6499
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkZBZKHBDS_cjs.DropdownMenuItem, { onClick: onLogout, "data-testid": logoutTestId ?? `${testId}-logout`, children: [
|
|
6500
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.LogOut, { className: "size-4" }),
|
|
6501
|
+
logoutLabel
|
|
6502
|
+
] })
|
|
6503
|
+
]
|
|
6504
|
+
}
|
|
6505
|
+
)
|
|
6393
6506
|
] });
|
|
6394
6507
|
}
|
|
6395
6508
|
var useArbiUiStore = zustand.create((set) => ({
|
|
@@ -7051,14 +7164,6 @@ function DocumentGallery({
|
|
|
7051
7164
|
);
|
|
7052
7165
|
}
|
|
7053
7166
|
|
|
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
7167
|
Object.defineProperty(exports, "AiMarkdown", {
|
|
7063
7168
|
enumerable: true,
|
|
7064
7169
|
get: function () { return chunkZBZKHBDS_cjs.AiMarkdown; }
|
|
@@ -7483,6 +7588,14 @@ Object.defineProperty(exports, "toggleVariants", {
|
|
|
7483
7588
|
enumerable: true,
|
|
7484
7589
|
get: function () { return chunkZBZKHBDS_cjs.toggleVariants; }
|
|
7485
7590
|
});
|
|
7591
|
+
Object.defineProperty(exports, "ArbiProvider", {
|
|
7592
|
+
enumerable: true,
|
|
7593
|
+
get: function () { return chunkZMTLGO3K_cjs.ArbiProvider; }
|
|
7594
|
+
});
|
|
7595
|
+
Object.defineProperty(exports, "useArbi", {
|
|
7596
|
+
enumerable: true,
|
|
7597
|
+
get: function () { return chunkZMTLGO3K_cjs.useArbi; }
|
|
7598
|
+
});
|
|
7486
7599
|
Object.defineProperty(exports, "Arbi", {
|
|
7487
7600
|
enumerable: true,
|
|
7488
7601
|
get: function () { return browser.Arbi; }
|