@estiva-app/ui 0.75.0 → 0.77.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/index.js CHANGED
@@ -3199,10 +3199,22 @@ function EditableText({ value, display, displayNode, placeholder, onCommit, mult
3199
3199
  );
3200
3200
  }
3201
3201
 
3202
+ // src/EntryShell.tsx
3203
+ import { cloneElement as cloneElement2 } from "react";
3204
+ import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
3205
+ var isEmpty = (node) => node == null || node === false || typeof node === "string" && node.trim() === "";
3206
+ function EntryShell({ logo, busy = false, busyLabel = "Loading", message, action, className }) {
3207
+ return /* @__PURE__ */ jsx45("div", { className: cn("min-h-screen bg-bg-base flex items-center justify-center p-6", className), children: busy ? /* @__PURE__ */ jsx45("div", { role: "status", "aria-busy": "true", "aria-label": busyLabel, className: "flex flex-col items-center gap-4", children: cloneElement2(logo, { className: cn(logo.props.className, "animate-skeleton-in animate-pulse") }) }) : /* @__PURE__ */ jsxs31("div", { className: "flex flex-col items-center gap-4", children: [
3208
+ logo,
3209
+ !isEmpty(message) && /* @__PURE__ */ jsx45("p", { role: "status", className: "text-body-2 text-text-secondary max-w-sm text-center", children: message }),
3210
+ action && /* @__PURE__ */ jsx45(Button, { variant: "primary", type: "button", onClick: action.onClick, disabled: action.disabled, children: action.label })
3211
+ ] }) });
3212
+ }
3213
+
3202
3214
  // src/ErrorBoundary.tsx
3203
3215
  import { Component } from "react";
3204
3216
  import { IconAlertTriangle as IconAlertTriangle2 } from "@tabler/icons-react";
3205
- import { jsx as jsx45 } from "react/jsx-runtime";
3217
+ import { jsx as jsx46 } from "react/jsx-runtime";
3206
3218
  var ErrorBoundary = class extends Component {
3207
3219
  state = { hasError: false };
3208
3220
  static getDerivedStateFromError() {
@@ -3213,22 +3225,22 @@ var ErrorBoundary = class extends Component {
3213
3225
  }
3214
3226
  render() {
3215
3227
  if (!this.state.hasError) return this.props.children;
3216
- const message = /* @__PURE__ */ jsx45(
3228
+ const message = /* @__PURE__ */ jsx46(
3217
3229
  EmptyState,
3218
3230
  {
3219
- icon: /* @__PURE__ */ jsx45(IconAlertTriangle2, { size: 16, stroke: 1.5 }),
3231
+ icon: /* @__PURE__ */ jsx46(IconAlertTriangle2, { size: 16, stroke: 1.5 }),
3220
3232
  message: `Something went wrong${this.props.label ? ` in the ${this.props.label}` : ""}. Your data is safe \u2014 try again.`,
3221
3233
  action: { label: "Try again", onClick: () => this.setState({ hasError: false }) }
3222
3234
  }
3223
3235
  );
3224
3236
  if (this.props.frame) return this.props.frame(message);
3225
- return this.props.fallbackClassName ? /* @__PURE__ */ jsx45("div", { className: this.props.fallbackClassName, children: message }) : message;
3237
+ return this.props.fallbackClassName ? /* @__PURE__ */ jsx46("div", { className: this.props.fallbackClassName, children: message }) : message;
3226
3238
  }
3227
3239
  };
3228
3240
 
3229
3241
  // src/ProgressBar.tsx
3230
3242
  import { Progress } from "@base-ui/react/progress";
3231
- import { jsx as jsx46 } from "react/jsx-runtime";
3243
+ import { jsx as jsx47 } from "react/jsx-runtime";
3232
3244
  var TRACK_CLASSES = {
3233
3245
  default: "h-1.5 w-full overflow-hidden rounded-full bg-bg-inset",
3234
3246
  // 4px, Katerina's ruling of 14 September; Peek's own bar is 3px until it takes this one.
@@ -3241,13 +3253,13 @@ var INDICATOR_CLASSES = {
3241
3253
  function ProgressBar({ value, max, label, variant = "default", className }) {
3242
3254
  return (
3243
3255
  // `max={0}` needs no guard: Base UI reads the 0/0 share as an empty bar.
3244
- /* @__PURE__ */ jsx46(Progress.Root, { value, max, "aria-label": label, className, children: /* @__PURE__ */ jsx46(Progress.Track, { className: TRACK_CLASSES[variant], children: /* @__PURE__ */ jsx46(Progress.Indicator, { className: INDICATOR_CLASSES[variant] }) }) })
3256
+ /* @__PURE__ */ jsx47(Progress.Root, { value, max, "aria-label": label, className, children: /* @__PURE__ */ jsx47(Progress.Track, { className: TRACK_CLASSES[variant], children: /* @__PURE__ */ jsx47(Progress.Indicator, { className: INDICATOR_CLASSES[variant] }) }) })
3245
3257
  );
3246
3258
  }
3247
3259
 
3248
3260
  // src/Breadcrumb.tsx
3249
3261
  import { Fragment as Fragment12, useCallback as useCallback3, useLayoutEffect as useLayoutEffect4, useRef as useRef10, useState as useState8 } from "react";
3250
- import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
3262
+ import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
3251
3263
  function Breadcrumb({ items, className }) {
3252
3264
  const navRef = useRef10(null);
3253
3265
  const labelRefs = useRef10([]);
@@ -3267,7 +3279,7 @@ function Breadcrumb({ items, className }) {
3267
3279
  observer.observe(nav);
3268
3280
  return () => observer.disconnect();
3269
3281
  }, [measure, items]);
3270
- return /* @__PURE__ */ jsx47("nav", { ref: navRef, "aria-label": "Breadcrumb", className: cn("flex min-w-0 items-center gap-1.5 text-body-2", className), children: items.map((item, index) => {
3282
+ return /* @__PURE__ */ jsx48("nav", { ref: navRef, "aria-label": "Breadcrumb", className: cn("flex min-w-0 items-center gap-1.5 text-body-2", className), children: items.map((item, index) => {
3271
3283
  const last = index === items.length - 1;
3272
3284
  const tone = item.muted || last && item.mono ? "text-text-muted" : last ? "text-text-primary" : "text-text-secondary";
3273
3285
  const text = cn(
@@ -3288,16 +3300,16 @@ function Breadcrumb({ items, className }) {
3288
3300
  // on a box around it, which the link takes them from, rather than
3289
3301
  // pushed into it (UIG-9); the link is still the one element that
3290
3302
  // truncates and is measured.
3291
- /* @__PURE__ */ jsx47("span", { className: cn("flex min-w-0", item.mono && "shrink-0 font-mono text-caption", tone, "hover:text-text-primary"), children: /* @__PURE__ */ jsx47(Link, { ref: setLabelRef, variant: "plain", truncate: true, href: item.href, onClick: item.onClick, children: item.label }) })
3292
- ) : /* @__PURE__ */ jsx47("span", { ref: setLabelRef, className: text, "aria-current": last ? "page" : void 0, children: item.label });
3293
- return /* @__PURE__ */ jsxs31(Fragment12, { children: [
3294
- index > 0 && /* @__PURE__ */ jsx47("span", { "aria-hidden": "true", className: "shrink-0 text-text-muted", children: "/" }),
3295
- item.icon && /* @__PURE__ */ jsx47("span", { "aria-hidden": "true", className: cn("flex shrink-0", tone), children: item.icon }),
3303
+ /* @__PURE__ */ jsx48("span", { className: cn("flex min-w-0", item.mono && "shrink-0 font-mono text-caption", tone, "hover:text-text-primary"), children: /* @__PURE__ */ jsx48(Link, { ref: setLabelRef, variant: "plain", truncate: true, href: item.href, onClick: item.onClick, children: item.label }) })
3304
+ ) : /* @__PURE__ */ jsx48("span", { ref: setLabelRef, className: text, "aria-current": last ? "page" : void 0, children: item.label });
3305
+ return /* @__PURE__ */ jsxs32(Fragment12, { children: [
3306
+ index > 0 && /* @__PURE__ */ jsx48("span", { "aria-hidden": "true", className: "shrink-0 text-text-muted", children: "/" }),
3307
+ item.icon && /* @__PURE__ */ jsx48("span", { "aria-hidden": "true", className: cn("flex shrink-0", tone), children: item.icon }),
3296
3308
  truncated.has(index) ? (
3297
3309
  // `min-w-0 shrink` undoes the wrapper's own shrink-0 — the crumb
3298
3310
  // must keep truncating inside it, or wrapping it would widen the
3299
3311
  // trail and the tooltip would never be needed again.
3300
- /* @__PURE__ */ jsx47(WithTooltip, { label: item.label, wrapperClassName: "min-w-0 shrink", children: crumb })
3312
+ /* @__PURE__ */ jsx48(WithTooltip, { label: item.label, wrapperClassName: "min-w-0 shrink", children: crumb })
3301
3313
  ) : crumb
3302
3314
  ] }, `${item.label}-${index}`);
3303
3315
  }) });
@@ -3309,13 +3321,13 @@ import { Collapsible } from "@base-ui/react/collapsible";
3309
3321
  import { IconAlertSquareRounded, IconChevronRight as IconChevronRight2, IconDotsVertical } from "@tabler/icons-react";
3310
3322
 
3311
3323
  // src/UnreadDot.tsx
3312
- import { jsx as jsx48 } from "react/jsx-runtime";
3324
+ import { jsx as jsx49 } from "react/jsx-runtime";
3313
3325
  function UnreadDot({ className }) {
3314
- return /* @__PURE__ */ jsx48("div", { className: cn("flex h-6 w-6 shrink-0 items-center justify-center", className), "data-unread": true, children: /* @__PURE__ */ jsx48("div", { className: "h-1.5 w-1.5 rounded-full bg-accent-primary" }) });
3326
+ return /* @__PURE__ */ jsx49("div", { className: cn("flex h-6 w-6 shrink-0 items-center justify-center", className), "data-unread": true, children: /* @__PURE__ */ jsx49("div", { className: "h-1.5 w-1.5 rounded-full bg-accent-primary" }) });
3315
3327
  }
3316
3328
 
3317
3329
  // src/NavItem.tsx
3318
- import { jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
3330
+ import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
3319
3331
  function NavItem({
3320
3332
  label,
3321
3333
  href,
@@ -3348,9 +3360,9 @@ function NavItem({
3348
3360
  };
3349
3361
  const buttons = (menu != null ? 1 : 0) + (action ? 1 : 0);
3350
3362
  const besides = buttons > 0 || hasRows;
3351
- const mark = unread ? urgent ? /* @__PURE__ */ jsx49(UrgentMark, {}) : /* @__PURE__ */ jsx49(UnreadDot, {}) : null;
3363
+ const mark = unread ? urgent ? /* @__PURE__ */ jsx50(UrgentMark, {}) : /* @__PURE__ */ jsx50(UnreadDot, {}) : null;
3352
3364
  const stepsAside = buttons > 0 && "transition-opacity group-hover/nav:opacity-0 group-has-[:focus-visible]/nav:opacity-0 group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:opacity-0 [@media(hover:none)]:opacity-0";
3353
- const row = /* @__PURE__ */ jsxs32(
3365
+ const row = /* @__PURE__ */ jsxs33(
3354
3366
  "a",
3355
3367
  {
3356
3368
  href,
@@ -3372,7 +3384,7 @@ function NavItem({
3372
3384
  ...props,
3373
3385
  onClick: inApp,
3374
3386
  children: [
3375
- (icon || hasRows) && /* @__PURE__ */ jsx49(
3387
+ (icon || hasRows) && /* @__PURE__ */ jsx50(
3376
3388
  "span",
3377
3389
  {
3378
3390
  className: cn(
@@ -3383,13 +3395,13 @@ function NavItem({
3383
3395
  children: icon
3384
3396
  }
3385
3397
  ),
3386
- /* @__PURE__ */ jsx49("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
3398
+ /* @__PURE__ */ jsx50("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
3387
3399
  hint != null && // Takes room only while it shows, so the label gives way to it.
3388
- /* @__PURE__ */ jsx49("span", { className: "hidden shrink-0 items-center group-hover/nav:flex group-has-[:focus-visible]/nav:flex", children: hint }),
3400
+ /* @__PURE__ */ jsx50("span", { className: "hidden shrink-0 items-center group-hover/nav:flex group-has-[:focus-visible]/nav:flex", children: hint }),
3389
3401
  buttons > 1 && // Two buttons: the second one's room (24px and the 4px between them, the
3390
3402
  // row's 8px gap making up the rest), kept only while they show.
3391
- /* @__PURE__ */ jsx49("span", { "aria-hidden": "true", className: "hidden w-5 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" }),
3392
- count ? /* @__PURE__ */ jsx49(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx49(
3403
+ /* @__PURE__ */ jsx50("span", { "aria-hidden": "true", className: "hidden w-5 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" }),
3404
+ count ? /* @__PURE__ */ jsx50(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx50(
3393
3405
  "span",
3394
3406
  {
3395
3407
  className: cn(
@@ -3405,7 +3417,7 @@ function NavItem({
3405
3417
  // `-mr-1`: the 24px slot's dot then sits on the axis of a count and
3406
3418
  // of the ⋮ (8px from the edge to the 16px box), one column with a
3407
3419
  // folder heading's dot and ⋮ (Katerina, 5 October).
3408
- /* @__PURE__ */ jsx49("span", { className: cn("-mr-1 flex shrink-0", stepsAside), children: mark })
3420
+ /* @__PURE__ */ jsx50("span", { className: cn("-mr-1 flex shrink-0", stepsAside), children: mark })
3409
3421
  ) : buttons > 0 && !count ? (
3410
3422
  // Nothing at the right, but a menu: no room is kept at rest, so the
3411
3423
  // label has the row's whole width; while the ⋮ shows, its 24px slot
@@ -3413,18 +3425,18 @@ function NavItem({
3413
3425
  // `-mr-1`: the ⋮ sits at `right-1`, 4px into the row's padding, so the
3414
3426
  // slot does too — at the padding's edge it kept 4px the ⋮ never
3415
3427
  // covers, and the label stopped 12px short of the button, not 8.
3416
- /* @__PURE__ */ jsx49("span", { "aria-hidden": "true", className: "-mr-1 hidden w-6 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" })
3428
+ /* @__PURE__ */ jsx50("span", { "aria-hidden": "true", className: "-mr-1 hidden w-6 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" })
3417
3429
  ) : null
3418
3430
  ]
3419
3431
  }
3420
3432
  );
3421
3433
  if (!besides && hint == null) return row;
3422
3434
  const name = menuLabel ?? `More options for ${label}`;
3423
- const line = /* @__PURE__ */ jsxs32("div", { className: "group/nav relative shrink-0", children: [
3435
+ const line = /* @__PURE__ */ jsxs33("div", { className: "group/nav relative shrink-0", children: [
3424
3436
  row,
3425
3437
  hasRows && // `left-1`: the 24px button's 16px arrow then sits where the icon
3426
3438
  // sits (the row's px-2), so the icon turns into the arrow in place.
3427
- /* @__PURE__ */ jsx49("div", { className: "absolute inset-y-0 left-1 flex items-center opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100", children: /* @__PURE__ */ jsx49(
3439
+ /* @__PURE__ */ jsx50("div", { className: "absolute inset-y-0 left-1 flex items-center opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100", children: /* @__PURE__ */ jsx50(
3428
3440
  IconButton,
3429
3441
  {
3430
3442
  tooltip: open ? "Collapse" : "Expand",
@@ -3432,7 +3444,7 @@ function NavItem({
3432
3444
  "aria-expanded": open,
3433
3445
  "aria-controls": panelId,
3434
3446
  onClick: () => setOpen(!open),
3435
- children: /* @__PURE__ */ jsx49(IconChevronRight2, { size: 16, stroke: 1.5, className: cn("transition-transform duration-150", open && "rotate-90") })
3447
+ children: /* @__PURE__ */ jsx50(IconChevronRight2, { size: 16, stroke: 1.5, className: cn("transition-transform duration-150", open && "rotate-90") })
3436
3448
  }
3437
3449
  ) }),
3438
3450
  buttons > 0 && // `right-1`: the 24px button's 16px icon ends 8px from the row's
@@ -3443,34 +3455,34 @@ function NavItem({
3443
3455
  // right of the slot's centre.
3444
3456
  // On a screen with no hover it always shows: nothing there can point
3445
3457
  // at the row, and the menu has no other way in.
3446
- /* @__PURE__ */ jsxs32("div", { "data-nav-menu": true, className: cn("absolute inset-y-0 right-1 flex items-center gap-1", "opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100"), children: [
3447
- action && /* @__PURE__ */ jsx49(IconButton, { tooltip: action.tooltip, "aria-label": `${action.tooltip}: ${label}`, onClick: action.onClick, children: action.icon }),
3448
- menu != null && /* @__PURE__ */ jsx49(
3458
+ /* @__PURE__ */ jsxs33("div", { "data-nav-menu": true, className: cn("absolute inset-y-0 right-1 flex items-center gap-1", "opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100"), children: [
3459
+ action && /* @__PURE__ */ jsx50(IconButton, { tooltip: action.tooltip, "aria-label": `${action.tooltip}: ${label}`, onClick: action.onClick, children: action.icon }),
3460
+ menu != null && /* @__PURE__ */ jsx50(
3449
3461
  Menu,
3450
3462
  {
3451
3463
  align: "right",
3452
- trigger: /* @__PURE__ */ jsx49(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx49(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
3464
+ trigger: /* @__PURE__ */ jsx50(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx50(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
3453
3465
  children: menu
3454
3466
  }
3455
3467
  )
3456
3468
  ] })
3457
3469
  ] });
3458
3470
  if (!hasRows) return line;
3459
- return /* @__PURE__ */ jsxs32(Collapsible.Root, { open, onOpenChange: setOpen, className: "flex shrink-0 flex-col", children: [
3471
+ return /* @__PURE__ */ jsxs33(Collapsible.Root, { open, onOpenChange: setOpen, className: "flex shrink-0 flex-col", children: [
3460
3472
  line,
3461
- /* @__PURE__ */ jsx49(
3473
+ /* @__PURE__ */ jsx50(
3462
3474
  Collapsible.Panel,
3463
3475
  {
3464
3476
  id: panelId,
3465
3477
  hiddenUntilFound: true,
3466
3478
  className: COLLAPSIBLE_PANEL_CLASSES,
3467
- children: /* @__PURE__ */ jsx49("div", { className: "flex flex-col gap-0.5 pt-0.5 pl-6", children })
3479
+ children: /* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-0.5 pt-0.5 pl-6", children })
3468
3480
  }
3469
3481
  )
3470
3482
  ] });
3471
3483
  }
3472
3484
  function UrgentMark() {
3473
- return /* @__PURE__ */ jsx49("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx49("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx49(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
3485
+ return /* @__PURE__ */ jsx50("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx50("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx50(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
3474
3486
  }
3475
3487
 
3476
3488
  // src/NavTree.tsx
@@ -3483,24 +3495,24 @@ import { Collapsible as Collapsible2 } from "@base-ui/react/collapsible";
3483
3495
  // src/SectionHeader.tsx
3484
3496
  import { IconChevronRight as IconChevronRight3, IconDotsVertical as IconDotsVertical2 } from "@tabler/icons-react";
3485
3497
  import { useRender } from "@base-ui/react/use-render";
3486
- import { Fragment as Fragment13, jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
3498
+ import { Fragment as Fragment13, jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
3487
3499
  function SectionHeader({ title, chevron = false, icon, isExpanded = true, onToggle, trailing, count, actions, menu, menuLabel, showActions = "hover", hover = "fill", look = "heading", render, className }) {
3488
3500
  const row = look === "row";
3489
3501
  const acts = actions && actions.length > 0 || menu != null;
3490
3502
  const trailingClasses = !acts ? "has-[[data-unread]]:-mr-1" : showActions === "hover" && "has-[[data-unread]]:pointer-events-none has-[[data-unread]]:absolute has-[[data-unread]]:inset-y-0 has-[[data-unread]]:right-1 has-[[data-unread]]:w-6 has-[[data-unread]]:justify-center has-[[data-unread]]:transition-opacity group-hover:has-[[data-unread]]:opacity-0 group-has-[:focus-visible]:has-[[data-unread]]:opacity-0 group-has-[[data-section-menu]_[aria-expanded=true]]:has-[[data-unread]]:opacity-0 [@media(hover:none)]:has-[[data-unread]]:opacity-0";
3491
3503
  const reveal = showActions === "hover" && "opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100";
3492
3504
  const titleElement = useRender({
3493
- render: render ?? (chevron ? /* @__PURE__ */ jsx50("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx50("span", {})),
3505
+ render: render ?? (chevron ? /* @__PURE__ */ jsx51("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx51("span", {})),
3494
3506
  props: {
3495
3507
  // `text-left`: a button centres its text. `h-full` and `flex-1`: the
3496
3508
  // whole row up to the actions is the hit target, as it was when the
3497
3509
  // row itself carried the click.
3498
3510
  // An icon is a row's: NavItem's 8px after it.
3499
3511
  className: cn("flex h-full min-w-0 flex-1 items-center text-left", row || chevron || icon != null ? "gap-2" : "gap-1"),
3500
- children: /* @__PURE__ */ jsxs33(Fragment13, { children: [
3501
- icon != null ? /* @__PURE__ */ jsxs33("span", { className: "relative flex size-4 shrink-0 items-center justify-center text-text-secondary", children: [
3502
- /* @__PURE__ */ jsx50("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
3503
- chevron && /* @__PURE__ */ jsx50(
3512
+ children: /* @__PURE__ */ jsxs34(Fragment13, { children: [
3513
+ icon != null ? /* @__PURE__ */ jsxs34("span", { className: "relative flex size-4 shrink-0 items-center justify-center text-text-secondary", children: [
3514
+ /* @__PURE__ */ jsx51("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
3515
+ chevron && /* @__PURE__ */ jsx51(
3504
3516
  IconChevronRight3,
3505
3517
  {
3506
3518
  size: 16,
@@ -3508,7 +3520,7 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3508
3520
  className: cn("absolute opacity-0 transition-[opacity,transform] duration-150 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100", isExpanded && "rotate-90")
3509
3521
  }
3510
3522
  )
3511
- ] }) : chevron && /* @__PURE__ */ jsx50(
3523
+ ] }) : chevron && /* @__PURE__ */ jsx51(
3512
3524
  IconChevronRight3,
3513
3525
  {
3514
3526
  size: 16,
@@ -3516,15 +3528,15 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3516
3528
  className: cn("shrink-0 transition-transform duration-150", !row && "text-text-secondary", isExpanded && "rotate-90")
3517
3529
  }
3518
3530
  ),
3519
- look === "quiet" ? /* @__PURE__ */ jsx50("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
3531
+ look === "quiet" ? /* @__PURE__ */ jsx51("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
3520
3532
  // A row's words: NavItem's size and colour, brightening under the pointer with the row.
3521
- /* @__PURE__ */ jsx50("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
3522
- ) : /* @__PURE__ */ jsx50(SectionLabel, { folds: chevron, children: title }),
3523
- count != null && /* @__PURE__ */ jsx50("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
3533
+ /* @__PURE__ */ jsx51("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
3534
+ ) : /* @__PURE__ */ jsx51(SectionLabel, { folds: chevron, children: title }),
3535
+ count != null && /* @__PURE__ */ jsx51("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
3524
3536
  ] })
3525
3537
  }
3526
3538
  });
3527
- return /* @__PURE__ */ jsxs33(
3539
+ return /* @__PURE__ */ jsxs34(
3528
3540
  "div",
3529
3541
  {
3530
3542
  className: cn(
@@ -3545,18 +3557,18 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3545
3557
  ),
3546
3558
  children: [
3547
3559
  titleElement,
3548
- trailing != null && /* @__PURE__ */ jsx50("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
3549
- acts && /* @__PURE__ */ jsx50(
3560
+ trailing != null && /* @__PURE__ */ jsx51("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
3561
+ acts && /* @__PURE__ */ jsx51(
3550
3562
  "div",
3551
3563
  {
3552
3564
  className: "-mr-1 flex shrink-0 items-center",
3553
- children: /* @__PURE__ */ jsxs33("div", { className: cn("flex items-center gap-1", reveal), children: [
3554
- actions?.map((action) => /* @__PURE__ */ jsx50(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)),
3555
- menu != null && /* @__PURE__ */ jsx50("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx50(
3565
+ children: /* @__PURE__ */ jsxs34("div", { className: cn("flex items-center gap-1", reveal), children: [
3566
+ actions?.map((action) => /* @__PURE__ */ jsx51(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)),
3567
+ menu != null && /* @__PURE__ */ jsx51("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx51(
3556
3568
  Menu,
3557
3569
  {
3558
3570
  align: "right",
3559
- trigger: /* @__PURE__ */ jsx50(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx50(IconDotsVertical2, { size: 16, stroke: 1.5 }) }),
3571
+ trigger: /* @__PURE__ */ jsx51(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx51(IconDotsVertical2, { size: 16, stroke: 1.5 }) }),
3560
3572
  children: menu
3561
3573
  }
3562
3574
  ) })
@@ -3569,7 +3581,7 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3569
3581
  }
3570
3582
 
3571
3583
  // src/CollapsibleSection.tsx
3572
- import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
3584
+ import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
3573
3585
  var OPEN = "open";
3574
3586
  var CLOSED = "closed";
3575
3587
  function readStored(key) {
@@ -3597,31 +3609,31 @@ function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenC
3597
3609
  onOpenChange?.(next);
3598
3610
  };
3599
3611
  const shown = open && !pending;
3600
- return /* @__PURE__ */ jsxs34(Collapsible2.Root, { open: shown, onOpenChange: (next, details) => setOpen(pending && details.reason === "trigger-press" ? !open : next), className: cn("flex flex-col", className), children: [
3601
- /* @__PURE__ */ jsx51(SectionHeader, { title, chevron: true, icon, isExpanded: open, trailing, actions, menu, menuLabel, showActions, look, className: "shrink-0", render: /* @__PURE__ */ jsx51(Collapsible2.Trigger, { "aria-expanded": open, "aria-busy": pending && open ? true : void 0 }) }),
3602
- /* @__PURE__ */ jsx51(
3612
+ return /* @__PURE__ */ jsxs35(Collapsible2.Root, { open: shown, onOpenChange: (next, details) => setOpen(pending && details.reason === "trigger-press" ? !open : next), className: cn("flex flex-col", className), children: [
3613
+ /* @__PURE__ */ jsx52(SectionHeader, { title, chevron: true, icon, isExpanded: open, trailing, actions, menu, menuLabel, showActions, look, className: "shrink-0", render: /* @__PURE__ */ jsx52(Collapsible2.Trigger, { "aria-expanded": open, "aria-busy": pending && open ? true : void 0 }) }),
3614
+ /* @__PURE__ */ jsx52(
3603
3615
  Collapsible2.Panel,
3604
3616
  {
3605
3617
  hiddenUntilFound: true,
3606
3618
  className: COLLAPSIBLE_PANEL_CLASSES,
3607
- children: /* @__PURE__ */ jsx51("div", { className: cn("flex flex-col pt-0.5", (look === "row" || indent) && "pl-6", contentClassName), children })
3619
+ children: /* @__PURE__ */ jsx52("div", { className: cn("flex flex-col pt-0.5", (look === "row" || indent) && "pl-6", contentClassName), children })
3608
3620
  }
3609
3621
  )
3610
3622
  ] });
3611
3623
  }
3612
3624
 
3613
3625
  // src/NavTree.tsx
3614
- import { Fragment as Fragment14, jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
3626
+ import { Fragment as Fragment14, jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
3615
3627
  var NAV_TREE_INTENT_MS = 150;
3616
3628
  function holds(nodes, id) {
3617
3629
  return !!nodes && id !== void 0 && nodes.some((node) => node.id === id || holds(node.children ?? null, id));
3618
3630
  }
3619
3631
  function Line({ message }) {
3620
- return /* @__PURE__ */ jsx52("div", { className: "px-2 py-1", children: /* @__PURE__ */ jsx52(EmptyState, { scope: "section", message }) });
3632
+ return /* @__PURE__ */ jsx53("div", { className: "px-2 py-1", children: /* @__PURE__ */ jsx53(EmptyState, { scope: "section", message }) });
3621
3633
  }
3622
3634
  function Row({ node, selected, onSelect }) {
3623
- const under = node.childrenMessage !== void 0 ? /* @__PURE__ */ jsx52(Line, { message: node.childrenMessage }) : node.children?.length ? node.children.map((child) => /* @__PURE__ */ jsx52(Row, { node: child, selected, onSelect }, child.id)) : node.children === null || node.hasChildren && node.children === void 0 ? /* @__PURE__ */ jsx52(SkeletonList, { rows: 2 }) : void 0;
3624
- return /* @__PURE__ */ jsx52(
3635
+ const under = node.childrenMessage !== void 0 ? /* @__PURE__ */ jsx53(Line, { message: node.childrenMessage }) : node.children?.length ? node.children.map((child) => /* @__PURE__ */ jsx53(Row, { node: child, selected, onSelect }, child.id)) : node.children === null || node.hasChildren && node.children === void 0 ? /* @__PURE__ */ jsx53(SkeletonList, { rows: 2 }) : void 0;
3636
+ return /* @__PURE__ */ jsx53(
3625
3637
  NavItem,
3626
3638
  {
3627
3639
  href: node.href,
@@ -3643,7 +3655,7 @@ function Row({ node, selected, onSelect }) {
3643
3655
  );
3644
3656
  }
3645
3657
  function Group({ group, selected, onSelect, storageKey }) {
3646
- return /* @__PURE__ */ jsx52(
3658
+ return /* @__PURE__ */ jsx53(
3647
3659
  NavTreeSection,
3648
3660
  {
3649
3661
  id: group.id,
@@ -3659,7 +3671,7 @@ function Group({ group, selected, onSelect, storageKey }) {
3659
3671
  onOpenChange: group.onOpenChange,
3660
3672
  storageKey: storageKey ? `${storageKey}.${group.id}` : void 0,
3661
3673
  onIntent: group.onIntent,
3662
- children: group.nodes?.map((node) => /* @__PURE__ */ jsx52(Row, { node, selected, onSelect }, node.id))
3674
+ children: group.nodes?.map((node) => /* @__PURE__ */ jsx53(Row, { node, selected, onSelect }, node.id))
3663
3675
  }
3664
3676
  );
3665
3677
  }
@@ -3667,7 +3679,7 @@ function NavTreeSection({ id, title, message, loading = false, pending, trailing
3667
3679
  const timer = useRef11(void 0);
3668
3680
  useEffect6(() => () => clearTimeout(timer.current), []);
3669
3681
  const intent = onIntent;
3670
- return /* @__PURE__ */ jsx52(
3682
+ return /* @__PURE__ */ jsx53(
3671
3683
  "div",
3672
3684
  {
3673
3685
  className: "shrink-0 [&+&]:mt-1",
@@ -3678,7 +3690,7 @@ function NavTreeSection({ id, title, message, loading = false, pending, trailing
3678
3690
  } : void 0,
3679
3691
  onPointerLeave: intent ? () => clearTimeout(timer.current) : void 0,
3680
3692
  onFocus: intent,
3681
- children: /* @__PURE__ */ jsx52(
3693
+ children: /* @__PURE__ */ jsx53(
3682
3694
  CollapsibleSection,
3683
3695
  {
3684
3696
  title,
@@ -3694,26 +3706,26 @@ function NavTreeSection({ id, title, message, loading = false, pending, trailing
3694
3706
  icon,
3695
3707
  className: "shrink-0",
3696
3708
  contentClassName: "gap-0.5",
3697
- children: message !== void 0 ? /* @__PURE__ */ jsx52(Line, { message }) : loading ? /* @__PURE__ */ jsx52(SkeletonList, { rows: 3 }) : children
3709
+ children: message !== void 0 ? /* @__PURE__ */ jsx53(Line, { message }) : loading ? /* @__PURE__ */ jsx53(SkeletonList, { rows: 3 }) : children
3698
3710
  }
3699
3711
  )
3700
3712
  }
3701
3713
  );
3702
3714
  }
3703
3715
  function NavTree({ title, titleActions, groups, children, selected, onSelect, emptyMessage = "", storageKey }) {
3704
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
3705
- title && /* @__PURE__ */ jsx52(SectionHeader, { title, look: "quiet", showActions: "always", actions: titleActions, className: "mt-4 shrink-0" }),
3706
- groups === void 0 ? children : groups === null ? /* @__PURE__ */ jsx52(SkeletonList, { rows: 5 }) : groups.length === 0 ? (
3716
+ return /* @__PURE__ */ jsxs36(Fragment14, { children: [
3717
+ title && /* @__PURE__ */ jsx53(SectionHeader, { title, look: "quiet", showActions: "always", actions: titleActions, className: "mt-4 shrink-0" }),
3718
+ groups === void 0 ? children : groups === null ? /* @__PURE__ */ jsx53(SkeletonList, { rows: 5 }) : groups.length === 0 ? (
3707
3719
  // No words, no line: an app that says nothing when it has no groups.
3708
- emptyMessage ? /* @__PURE__ */ jsx52(Line, { message: emptyMessage }) : null
3709
- ) : groups.map((group) => /* @__PURE__ */ jsx52(Group, { group, selected, onSelect, storageKey }, group.id))
3720
+ emptyMessage ? /* @__PURE__ */ jsx53(Line, { message: emptyMessage }) : null
3721
+ ) : groups.map((group) => /* @__PURE__ */ jsx53(Group, { group, selected, onSelect, storageKey }, group.id))
3710
3722
  ] });
3711
3723
  }
3712
3724
 
3713
3725
  // src/Popover.tsx
3714
3726
  import { useMemo as useMemo4 } from "react";
3715
3727
  import { Popover as BasePopover } from "@base-ui/react/popover";
3716
- import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
3728
+ import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
3717
3729
  var GAP5 = 4;
3718
3730
  var VIEWPORT_PAD5 = 8;
3719
3731
  function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpenChange, finalFocus, actionsRef, ariaLabel, children, className, contentClassName, maxHeight }) {
@@ -3722,7 +3734,7 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
3722
3734
  if (anchor instanceof Element) return anchor;
3723
3735
  return { getBoundingClientRect: () => anchor };
3724
3736
  }, [anchor]);
3725
- return /* @__PURE__ */ jsxs36(
3737
+ return /* @__PURE__ */ jsxs37(
3726
3738
  BasePopover.Root,
3727
3739
  {
3728
3740
  open,
@@ -3730,8 +3742,8 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
3730
3742
  actionsRef,
3731
3743
  modal: false,
3732
3744
  children: [
3733
- trigger && /* @__PURE__ */ jsx53(BasePopover.Trigger, { render: trigger, disabled: triggerDisabled(trigger) }),
3734
- /* @__PURE__ */ jsx53(BasePopover.Portal, { children: /* @__PURE__ */ jsx53(
3745
+ trigger && /* @__PURE__ */ jsx54(BasePopover.Trigger, { render: trigger, disabled: triggerDisabled(trigger) }),
3746
+ /* @__PURE__ */ jsx54(BasePopover.Portal, { children: /* @__PURE__ */ jsx54(
3735
3747
  BasePopover.Positioner,
3736
3748
  {
3737
3749
  anchor: anchorTarget,
@@ -3740,20 +3752,20 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
3740
3752
  sideOffset: GAP5,
3741
3753
  collisionPadding: VIEWPORT_PAD5,
3742
3754
  className: "z-50 data-[anchor-hidden]:hidden",
3743
- children: /* @__PURE__ */ jsx53(
3755
+ children: /* @__PURE__ */ jsx54(
3744
3756
  BasePopover.Popup,
3745
3757
  {
3746
3758
  "aria-label": ariaLabel,
3747
3759
  initialFocus: trigger ? void 0 : false,
3748
3760
  finalFocus,
3749
3761
  className: cn("min-w-[180px] outline-none p-0", className),
3750
- render: /* @__PURE__ */ jsx53(MenuPanel, {}),
3751
- children: /* @__PURE__ */ jsx53(
3762
+ render: /* @__PURE__ */ jsx54(MenuPanel, {}),
3763
+ children: /* @__PURE__ */ jsx54(
3752
3764
  ScrollArea,
3753
3765
  {
3754
3766
  viewportClassName: maxHeight ?? "max-h-[var(--available-height)]",
3755
3767
  contentClassName: cn("flex flex-col p-2", contentClassName),
3756
- children: /* @__PURE__ */ jsx53(DividerInPanel.Provider, { value: true, children })
3768
+ children: /* @__PURE__ */ jsx54(DividerInPanel.Provider, { value: true, children })
3757
3769
  }
3758
3770
  )
3759
3771
  }
@@ -3767,7 +3779,7 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
3767
3779
 
3768
3780
  // src/SuggestionMenu.tsx
3769
3781
  import { useCallback as useCallback4, useEffect as useEffect7, useId as useId3, useImperativeHandle, useMemo as useMemo5, useRef as useRef12, useState as useState11 } from "react";
3770
- import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
3782
+ import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
3771
3783
  function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sections, itemKey, row, onSelect, handle }) {
3772
3784
  const shown = useMemo5(() => sections.filter((section) => section.items.length > 0), [sections]);
3773
3785
  const items = useMemo5(() => shown.flatMap((section) => section.items), [shown]);
@@ -3832,7 +3844,7 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
3832
3844
  const { label, description, aside, leading, shortcut, hint, size } = row(item);
3833
3845
  return (
3834
3846
  // A row of a list the editor drives from its caret: focus stays in the text, so the row is no Tab stop.
3835
- /* @__PURE__ */ jsx54(
3847
+ /* @__PURE__ */ jsx55(
3836
3848
  MenuItem,
3837
3849
  {
3838
3850
  role: "option",
@@ -3860,9 +3872,9 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
3860
3872
  };
3861
3873
  return (
3862
3874
  // finalFocus={false}: focus never left the text, and a list that closes because focus moved elsewhere must not pull it back (71a4577b).
3863
- /* @__PURE__ */ jsx54(Popover, { anchor: rect, open: rect !== null, side: "top", align: "left", className: width, maxHeight, ariaLabel, finalFocus: false, children: /* @__PURE__ */ jsx54("div", { ref: keepFocus, id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "flex flex-col gap-0.5", children: shown.map((section, i) => /* @__PURE__ */ jsxs37("div", { className: "contents", children: [
3864
- i > 0 && /* @__PURE__ */ jsx54(MenuSeparator, {}),
3865
- section.label ? /* @__PURE__ */ jsx54("div", { role: "group", "aria-label": section.label, children: /* @__PURE__ */ jsx54(MenuSection, { label: section.label, className: section.className, children: section.items.map(drawRow) }) }) : section.items.map(drawRow)
3875
+ /* @__PURE__ */ jsx55(Popover, { anchor: rect, open: rect !== null, side: "top", align: "left", className: width, maxHeight, ariaLabel, finalFocus: false, children: /* @__PURE__ */ jsx55("div", { ref: keepFocus, id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "flex flex-col gap-0.5", children: shown.map((section, i) => /* @__PURE__ */ jsxs38("div", { className: "contents", children: [
3876
+ i > 0 && /* @__PURE__ */ jsx55(MenuSeparator, {}),
3877
+ section.label ? /* @__PURE__ */ jsx55("div", { role: "group", "aria-label": section.label, children: /* @__PURE__ */ jsx55(MenuSection, { label: section.label, className: section.className, children: section.items.map(drawRow) }) }) : section.items.map(drawRow)
3866
3878
  ] }, section.label ?? i)) }) })
3867
3879
  );
3868
3880
  }
@@ -3870,7 +3882,7 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
3870
3882
  // src/ShowMore.tsx
3871
3883
  import { useLayoutEffect as useLayoutEffect5, useRef as useRef13, useState as useState12 } from "react";
3872
3884
  import { IconChevronDown as IconChevronDown4, IconChevronUp } from "@tabler/icons-react";
3873
- import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
3885
+ import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
3874
3886
  var FADE_CLASSES = { surface: "from-bg-surface", inset: "from-bg-inset" };
3875
3887
  function ShowMore({ children, maxHeight = 96, surface = "surface", action, className }) {
3876
3888
  const box = useRef13(null);
@@ -3887,25 +3899,25 @@ function ShowMore({ children, maxHeight = 96, surface = "surface", action, class
3887
3899
  return () => observer.disconnect();
3888
3900
  }, [maxHeight]);
3889
3901
  const cut = overflows && !open;
3890
- return /* @__PURE__ */ jsxs38("div", { className: cn("flex flex-col items-start", className), children: [
3891
- /* @__PURE__ */ jsxs38("div", { ref: box, className: cn("relative w-full", cut && "overflow-hidden"), style: cut ? { maxHeight } : void 0, onFocus: cut ? () => setOpen(true) : void 0, children: [
3902
+ return /* @__PURE__ */ jsxs39("div", { className: cn("flex flex-col items-start", className), children: [
3903
+ /* @__PURE__ */ jsxs39("div", { ref: box, className: cn("relative w-full", cut && "overflow-hidden"), style: cut ? { maxHeight } : void 0, onFocus: cut ? () => setOpen(true) : void 0, children: [
3892
3904
  children,
3893
- cut && /* @__PURE__ */ jsx55("div", { "aria-hidden": true, className: cn("pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t to-transparent", FADE_CLASSES[surface]) })
3905
+ cut && /* @__PURE__ */ jsx56("div", { "aria-hidden": true, className: cn("pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t to-transparent", FADE_CLASSES[surface]) })
3894
3906
  ] }),
3895
- action ? /* @__PURE__ */ jsxs38("div", { className: cn("mt-1 flex w-full items-center gap-2", overflows ? "justify-between" : "justify-end"), children: [
3896
- overflows && /* @__PURE__ */ jsx55(Toggle, { open, onToggle: () => setOpen((o) => !o) }),
3897
- /* @__PURE__ */ jsx55("div", { className: "-mr-2 flex shrink-0", children: action })
3898
- ] }) : overflows && /* @__PURE__ */ jsx55(Toggle, { open, onToggle: () => setOpen((o) => !o), className: "mt-1" })
3907
+ action ? /* @__PURE__ */ jsxs39("div", { className: cn("mt-1 flex w-full items-center gap-2", overflows ? "justify-between" : "justify-end"), children: [
3908
+ overflows && /* @__PURE__ */ jsx56(Toggle, { open, onToggle: () => setOpen((o) => !o) }),
3909
+ /* @__PURE__ */ jsx56("div", { className: "-mr-2 flex shrink-0", children: action })
3910
+ ] }) : overflows && /* @__PURE__ */ jsx56(Toggle, { open, onToggle: () => setOpen((o) => !o), className: "mt-1" })
3899
3911
  ] });
3900
3912
  }
3901
3913
  function Toggle({ open, onToggle, className }) {
3902
3914
  const Icon = open ? IconChevronUp : IconChevronDown4;
3903
- return /* @__PURE__ */ jsx55(
3915
+ return /* @__PURE__ */ jsx56(
3904
3916
  Button,
3905
3917
  {
3906
3918
  variant: "outlined",
3907
3919
  size: "small",
3908
- leadingIcon: /* @__PURE__ */ jsx55(Icon, { stroke: 1.5, className: "size-3.5" }),
3920
+ leadingIcon: /* @__PURE__ */ jsx56(Icon, { stroke: 1.5, className: "size-3.5" }),
3909
3921
  className,
3910
3922
  "aria-expanded": open,
3911
3923
  onClick: onToggle,
@@ -3916,9 +3928,9 @@ function Toggle({ open, onToggle, className }) {
3916
3928
 
3917
3929
  // src/Toolbar.tsx
3918
3930
  import { Toolbar as BaseToolbar } from "@base-ui/react/toolbar";
3919
- import { jsx as jsx56 } from "react/jsx-runtime";
3931
+ import { jsx as jsx57 } from "react/jsx-runtime";
3920
3932
  function Toolbar({ "aria-label": ariaLabel, orientation = "horizontal", loopFocus = true, surface = true, children, className }) {
3921
- const strip = /* @__PURE__ */ jsx56(
3933
+ const strip = /* @__PURE__ */ jsx57(
3922
3934
  BaseToolbar.Root,
3923
3935
  {
3924
3936
  "aria-label": ariaLabel,
@@ -3929,27 +3941,27 @@ function Toolbar({ "aria-label": ariaLabel, orientation = "horizontal", loopFocu
3929
3941
  }
3930
3942
  );
3931
3943
  if (!surface) return strip;
3932
- return /* @__PURE__ */ jsx56(MenuPanel, { className: "w-fit p-1", children: strip });
3944
+ return /* @__PURE__ */ jsx57(MenuPanel, { className: "w-fit p-1", children: strip });
3933
3945
  }
3934
3946
  function ToolbarButton({ ref, disabled, disabledReason, ...props }) {
3935
- return /* @__PURE__ */ jsx56(
3947
+ return /* @__PURE__ */ jsx57(
3936
3948
  BaseToolbar.Button,
3937
3949
  {
3938
3950
  ref,
3939
3951
  disabled: disabled || !!disabledReason,
3940
3952
  focusableWhenDisabled: true,
3941
- render: /* @__PURE__ */ jsx56(IconButton, { disabled, disabledReason, ...props })
3953
+ render: /* @__PURE__ */ jsx57(IconButton, { disabled, disabledReason, ...props })
3942
3954
  }
3943
3955
  );
3944
3956
  }
3945
3957
  function ToolbarLink({ ref, href, ...props }) {
3946
- return /* @__PURE__ */ jsx56(BaseToolbar.Link, { ref, render: /* @__PURE__ */ jsx56(IconButton, { href, ...props }) });
3958
+ return /* @__PURE__ */ jsx57(BaseToolbar.Link, { ref, render: /* @__PURE__ */ jsx57(IconButton, { href, ...props }) });
3947
3959
  }
3948
3960
  function ToolbarInput({ size, ...props }) {
3949
- return /* @__PURE__ */ jsx56(BaseToolbar.Input, { render: /* @__PURE__ */ jsx56(TextInput, { size }), ...props });
3961
+ return /* @__PURE__ */ jsx57(BaseToolbar.Input, { render: /* @__PURE__ */ jsx57(TextInput, { size }), ...props });
3950
3962
  }
3951
3963
  function ToolbarSeparator({ className }) {
3952
- return /* @__PURE__ */ jsx56(
3964
+ return /* @__PURE__ */ jsx57(
3953
3965
  BaseToolbar.Separator,
3954
3966
  {
3955
3967
  orientation: "vertical",
@@ -3959,9 +3971,9 @@ function ToolbarSeparator({ className }) {
3959
3971
  }
3960
3972
 
3961
3973
  // src/ReactionPicker.tsx
3962
- import { jsx as jsx57 } from "react/jsx-runtime";
3974
+ import { jsx as jsx58 } from "react/jsx-runtime";
3963
3975
  function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reactions", surface = true, className }) {
3964
- return /* @__PURE__ */ jsx57(Toolbar, { "aria-label": ariaLabel, surface, className: cn("gap-0.5", className), children: options.map((option) => (
3976
+ return /* @__PURE__ */ jsx58(Toolbar, { "aria-label": ariaLabel, surface, className: cn("gap-0.5", className), children: options.map((option) => (
3965
3977
  /*
3966
3978
  A `ToolbarButton`, not a button in a tooltip wrapper. The wrapper
3967
3979
  would become the toolbar's item and the button inside it would never
@@ -3971,14 +3983,14 @@ function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reaction
3971
3983
  The tooltip names it for a pointer, `aria-label` for everything else,
3972
3984
  and both say the meaning rather than the glyph.
3973
3985
  */
3974
- /* @__PURE__ */ jsx57(
3986
+ /* @__PURE__ */ jsx58(
3975
3987
  ToolbarButton,
3976
3988
  {
3977
3989
  "aria-label": option.label,
3978
3990
  tooltip: option.label,
3979
3991
  onClick: () => onSelect(option.emoji),
3980
3992
  className: "size-7",
3981
- children: /* @__PURE__ */ jsx57("span", { "aria-hidden": "true", className: "text-h3 leading-none", children: option.emoji })
3993
+ children: /* @__PURE__ */ jsx58("span", { "aria-hidden": "true", className: "text-h3 leading-none", children: option.emoji })
3982
3994
  },
3983
3995
  option.emoji
3984
3996
  )
@@ -3987,23 +3999,23 @@ function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reaction
3987
3999
 
3988
4000
  // src/PreviewCard.tsx
3989
4001
  import { PreviewCard as BasePreviewCard } from "@base-ui/react/preview-card";
3990
- import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
4002
+ import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
3991
4003
  var GAP6 = 12;
3992
4004
  var VIEWPORT_PAD6 = 8;
3993
4005
  var OPEN_DELAY2 = 350;
3994
4006
  var CLOSE_DELAY = 200;
3995
4007
  function PreviewCard({ content, children, side = "right", delay = OPEN_DELAY2, closeDelay = CLOSE_DELAY, className, contentClassName, wrapperClassName }) {
3996
- return /* @__PURE__ */ jsxs39(BasePreviewCard.Root, { children: [
3997
- /* @__PURE__ */ jsx58(
4008
+ return /* @__PURE__ */ jsxs40(BasePreviewCard.Root, { children: [
4009
+ /* @__PURE__ */ jsx59(
3998
4010
  BasePreviewCard.Trigger,
3999
4011
  {
4000
4012
  delay,
4001
4013
  closeDelay,
4002
- render: /* @__PURE__ */ jsx58("span", { className: cn("inline-flex", wrapperClassName) }),
4014
+ render: /* @__PURE__ */ jsx59("span", { className: cn("inline-flex", wrapperClassName) }),
4003
4015
  children
4004
4016
  }
4005
4017
  ),
4006
- /* @__PURE__ */ jsx58(BasePreviewCard.Portal, { children: /* @__PURE__ */ jsx58(
4018
+ /* @__PURE__ */ jsx59(BasePreviewCard.Portal, { children: /* @__PURE__ */ jsx59(
4007
4019
  BasePreviewCard.Positioner,
4008
4020
  {
4009
4021
  side,
@@ -4011,12 +4023,12 @@ function PreviewCard({ content, children, side = "right", delay = OPEN_DELAY2, c
4011
4023
  sideOffset: GAP6,
4012
4024
  collisionPadding: VIEWPORT_PAD6,
4013
4025
  className: "z-50 data-[anchor-hidden]:hidden",
4014
- children: /* @__PURE__ */ jsx58(
4026
+ children: /* @__PURE__ */ jsx59(
4015
4027
  BasePreviewCard.Popup,
4016
4028
  {
4017
4029
  className: cn("w-[360px] p-0 outline-none", className),
4018
- render: /* @__PURE__ */ jsx58(MenuPanel, {}),
4019
- children: /* @__PURE__ */ jsx58(ScrollArea, { viewportClassName: "max-h-[min(300px,var(--available-height))]", contentClassName: cn("flex flex-col gap-3 p-3", contentClassName), children: content })
4030
+ render: /* @__PURE__ */ jsx59(MenuPanel, {}),
4031
+ children: /* @__PURE__ */ jsx59(ScrollArea, { viewportClassName: "max-h-[min(300px,var(--available-height))]", contentClassName: cn("flex flex-col gap-3 p-3", contentClassName), children: content })
4020
4032
  }
4021
4033
  )
4022
4034
  }
@@ -4077,7 +4089,7 @@ function unavailableMemory(storageKey, limit = 300) {
4077
4089
 
4078
4090
  // src/LinkParts.tsx
4079
4091
  import { IconCircleCheck, IconCircleDashed as IconCircleDashed2, IconCircleHalf2, IconCircleX, IconFileText, IconMessage2 as IconMessage22 } from "@tabler/icons-react";
4080
- import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
4092
+ import { jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
4081
4093
  var STATUS_ICON = {
4082
4094
  neutral: { Icon: IconCircleDashed2, tone: "text-text-secondary" },
4083
4095
  blue: { Icon: IconCircleHalf2, tone: "text-info-default" },
@@ -4086,20 +4098,20 @@ var STATUS_ICON = {
4086
4098
  };
4087
4099
  function StatusIcon({ colour }) {
4088
4100
  const { Icon, tone } = STATUS_ICON[colour];
4089
- return /* @__PURE__ */ jsx59(Icon, { size: 14, stroke: 1.5, className: cn("shrink-0", tone), "aria-hidden": true });
4101
+ return /* @__PURE__ */ jsx60(Icon, { size: 14, stroke: 1.5, className: cn("shrink-0", tone), "aria-hidden": true });
4090
4102
  }
4091
4103
  function StatusMark({ status }) {
4092
- return /* @__PURE__ */ jsxs40(WithTooltip, { label: status.label, inline: true, wrapperClassName: "inline-flex shrink-0 items-center", children: [
4093
- /* @__PURE__ */ jsx59(StatusIcon, { colour: status.colour }),
4094
- /* @__PURE__ */ jsx59("span", { className: "sr-only", children: status.label })
4104
+ return /* @__PURE__ */ jsxs41(WithTooltip, { label: status.label, inline: true, wrapperClassName: "inline-flex shrink-0 items-center", children: [
4105
+ /* @__PURE__ */ jsx60(StatusIcon, { colour: status.colour }),
4106
+ /* @__PURE__ */ jsx60("span", { className: "sr-only", children: status.label })
4095
4107
  ] });
4096
4108
  }
4097
4109
  function LinkedIcon({ kind, size = 16, tone = "secondary" }) {
4098
- if (kind === "page") return /* @__PURE__ */ jsx59(IconFileText, { size, stroke: 1.5, className: cn("shrink-0", tone === "secondary" && "text-text-secondary"), "aria-hidden": true });
4099
- return /* @__PURE__ */ jsx59(KindIcon, { kind, size, tone });
4110
+ if (kind === "page") return /* @__PURE__ */ jsx60(IconFileText, { size, stroke: 1.5, className: cn("shrink-0", tone === "secondary" && "text-text-secondary"), "aria-hidden": true });
4111
+ return /* @__PURE__ */ jsx60(KindIcon, { kind, size, tone });
4100
4112
  }
4101
4113
  function LinkKey({ children }) {
4102
- return /* @__PURE__ */ jsx59("span", { className: "shrink-0 text-caption tabular-nums text-text-muted", children });
4114
+ return /* @__PURE__ */ jsx60("span", { className: "shrink-0 text-caption tabular-nums text-text-muted", children });
4103
4115
  }
4104
4116
  function ProgressRing({ done, total }) {
4105
4117
  const size = 16;
@@ -4107,10 +4119,10 @@ function ProgressRing({ done, total }) {
4107
4119
  const r = (size - stroke) / 2;
4108
4120
  const c = 2 * Math.PI * r;
4109
4121
  const share = total > 0 ? Math.min(done, total) / total : 0;
4110
- return /* @__PURE__ */ jsx59(WithTooltip, { label: `${done} of ${total} done`, inline: true, wrapperClassName: "inline-flex shrink-0", children: /* @__PURE__ */ jsxs40("span", { className: "inline-flex shrink-0 items-center gap-1 text-caption tabular-nums text-text-secondary", children: [
4111
- /* @__PURE__ */ jsxs40("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, className: "shrink-0 -rotate-90", "aria-hidden": true, children: [
4112
- /* @__PURE__ */ jsx59("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, className: "stroke-border-default" }),
4113
- /* @__PURE__ */ jsx59("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, strokeLinecap: "round", strokeDasharray: `${c * share} ${c}`, className: "stroke-success-default" })
4122
+ return /* @__PURE__ */ jsx60(WithTooltip, { label: `${done} of ${total} done`, inline: true, wrapperClassName: "inline-flex shrink-0", children: /* @__PURE__ */ jsxs41("span", { className: "inline-flex shrink-0 items-center gap-1 text-caption tabular-nums text-text-secondary", children: [
4123
+ /* @__PURE__ */ jsxs41("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, className: "shrink-0 -rotate-90", "aria-hidden": true, children: [
4124
+ /* @__PURE__ */ jsx60("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, className: "stroke-border-default" }),
4125
+ /* @__PURE__ */ jsx60("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, strokeLinecap: "round", strokeDasharray: `${c * share} ${c}`, className: "stroke-success-default" })
4114
4126
  ] }),
4115
4127
  done,
4116
4128
  "/",
@@ -4119,11 +4131,11 @@ function ProgressRing({ done, total }) {
4119
4131
  }
4120
4132
  function CommentCount({ conversation, noun = "comments" }) {
4121
4133
  const { count, href, unread = false } = conversation;
4122
- return /* @__PURE__ */ jsx59("span", { className: cn("relative z-10 -mx-1 inline-flex shrink-0 rounded-sm px-1 text-caption tabular-nums hover:bg-bg-active", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: /* @__PURE__ */ jsxs40(Link, { href, variant: "plain", className: "inline-flex items-center gap-1", children: [
4123
- /* @__PURE__ */ jsx59(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
4134
+ return /* @__PURE__ */ jsx60("span", { className: cn("relative z-10 -mx-1 inline-flex shrink-0 rounded-sm px-1 text-caption tabular-nums hover:bg-bg-active", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: /* @__PURE__ */ jsxs41(Link, { href, variant: "plain", className: "inline-flex items-center gap-1", children: [
4135
+ /* @__PURE__ */ jsx60(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
4124
4136
  count,
4125
- /* @__PURE__ */ jsx59("span", { className: "sr-only", children: unread ? `${noun}, unread \u2014 open the conversation` : `${noun} \u2014 open the conversation` }),
4126
- unread && /* @__PURE__ */ jsx59(UnreadDot, { className: "h-auto w-auto" })
4137
+ /* @__PURE__ */ jsx60("span", { className: "sr-only", children: unread ? `${noun}, unread \u2014 open the conversation` : `${noun} \u2014 open the conversation` }),
4138
+ unread && /* @__PURE__ */ jsx60(UnreadDot, { className: "h-auto w-auto" })
4127
4139
  ] }) });
4128
4140
  }
4129
4141
  function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false }) {
@@ -4131,11 +4143,11 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
4131
4143
  const ownerNow = chosenOf(owner);
4132
4144
  const statusWords = status && (readOnly || !status.onChange);
4133
4145
  const ownerWords = owner && (readOnly || !owner.onChange);
4134
- return /* @__PURE__ */ jsxs40("span", { className: "flex h-6 min-w-0 items-center gap-2 text-caption text-text-secondary", children: [
4135
- status && (statusWords ? /* @__PURE__ */ jsxs40("span", { className: "inline-flex shrink-0 items-center gap-1", children: [
4136
- statusNow?.colour && /* @__PURE__ */ jsx59(StatusIcon, { colour: statusNow.colour }),
4146
+ return /* @__PURE__ */ jsxs41("span", { className: "flex h-6 min-w-0 items-center gap-2 text-caption text-text-secondary", children: [
4147
+ status && (statusWords ? /* @__PURE__ */ jsxs41("span", { className: "inline-flex shrink-0 items-center gap-1", children: [
4148
+ statusNow?.colour && /* @__PURE__ */ jsx60(StatusIcon, { colour: statusNow.colour }),
4137
4149
  statusNow?.label ?? "No status"
4138
- ] }) : /* @__PURE__ */ jsx59(
4150
+ ] }) : /* @__PURE__ */ jsx60(
4139
4151
  Select,
4140
4152
  {
4141
4153
  size: "small",
@@ -4143,13 +4155,13 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
4143
4155
  value: status.value ?? "",
4144
4156
  onChange: (value) => status.onChange?.(value),
4145
4157
  ariaLabel: "Status",
4146
- options: status.options.map((option) => ({ value: option.value, label: option.label, leading: option.colour && /* @__PURE__ */ jsx59(StatusIcon, { colour: option.colour }) }))
4158
+ options: status.options.map((option) => ({ value: option.value, label: option.label, leading: option.colour && /* @__PURE__ */ jsx60(StatusIcon, { colour: option.colour }) }))
4147
4159
  }
4148
4160
  )),
4149
- owner && (ownerWords ? /* @__PURE__ */ jsxs40("span", { className: "inline-flex min-w-0 items-center gap-1", children: [
4150
- /* @__PURE__ */ jsx59(Avatar, { name: ownerNow?.label, src: ownerNow?.picture, size: 16 }),
4151
- /* @__PURE__ */ jsx59("span", { className: "truncate", children: ownerNow?.label ?? "Unassigned" })
4152
- ] }) : /* @__PURE__ */ jsx59(
4161
+ owner && (ownerWords ? /* @__PURE__ */ jsxs41("span", { className: "inline-flex min-w-0 items-center gap-1", children: [
4162
+ /* @__PURE__ */ jsx60(Avatar, { name: ownerNow?.label, src: ownerNow?.picture, size: 16 }),
4163
+ /* @__PURE__ */ jsx60("span", { className: "truncate", children: ownerNow?.label ?? "Unassigned" })
4164
+ ] }) : /* @__PURE__ */ jsx60(
4153
4165
  Select,
4154
4166
  {
4155
4167
  size: "small",
@@ -4158,7 +4170,7 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
4158
4170
  placeholder: "Unassigned",
4159
4171
  onChange: (value) => owner.onChange?.(value),
4160
4172
  ariaLabel: ownerLabel,
4161
- options: owner.options.map((option) => ({ value: option.value, label: option.label, leading: /* @__PURE__ */ jsx59(Avatar, { name: option.label, src: option.picture, size: 16 }) }))
4173
+ options: owner.options.map((option) => ({ value: option.value, label: option.label, leading: /* @__PURE__ */ jsx60(Avatar, { name: option.label, src: option.picture, size: 16 }) }))
4162
4174
  }
4163
4175
  ))
4164
4176
  ] });
@@ -4168,15 +4180,15 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
4168
4180
  import { useSyncExternalStore } from "react";
4169
4181
 
4170
4182
  // src/LinkRow.tsx
4171
- import { Fragment as Fragment15, jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
4183
+ import { Fragment as Fragment15, jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
4172
4184
  function LinkUnavailable({ kind, noun, openIn }) {
4173
- return /* @__PURE__ */ jsxs41(Card, { fill: "none", unreadable: true, className: "flex h-9 items-center gap-2 px-3", children: [
4174
- /* @__PURE__ */ jsx60(LinkedIcon, { kind }),
4175
- /* @__PURE__ */ jsxs41("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-muted", children: [
4185
+ return /* @__PURE__ */ jsxs42(Card, { fill: "none", unreadable: true, className: "flex h-9 items-center gap-2 px-3", children: [
4186
+ /* @__PURE__ */ jsx61(LinkedIcon, { kind }),
4187
+ /* @__PURE__ */ jsxs42("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-muted", children: [
4176
4188
  noun,
4177
4189
  " \u2014 not available."
4178
4190
  ] }),
4179
- openIn && /* @__PURE__ */ jsx60("span", { className: "shrink-0 text-caption text-text-secondary", children: /* @__PURE__ */ jsxs41(Link, { href: openIn.href, variant: "quiet", external: true, children: [
4191
+ openIn && /* @__PURE__ */ jsx61("span", { className: "shrink-0 text-caption text-text-secondary", children: /* @__PURE__ */ jsxs42(Link, { href: openIn.href, variant: "quiet", external: true, children: [
4180
4192
  "Open in ",
4181
4193
  openIn.app,
4182
4194
  " \u2197"
@@ -4185,100 +4197,100 @@ function LinkUnavailable({ kind, noun, openIn }) {
4185
4197
  }
4186
4198
  function LinkRow({ link, preview = true }) {
4187
4199
  if (link.state === "loading") {
4188
- return /* @__PURE__ */ jsx60("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs41(Card, { fill: "inset", "aria-hidden": true, className: "flex h-9 items-center gap-2 px-3", children: [
4189
- /* @__PURE__ */ jsx60(LinkedIcon, { kind: link.kind }),
4190
- /* @__PURE__ */ jsx60(SkeletonBar, { on: "inset", className: "h-3 w-2/5" }),
4191
- /* @__PURE__ */ jsx60(SkeletonBar, { on: "inset", shape: "round", className: "ml-auto size-4" })
4200
+ return /* @__PURE__ */ jsx61("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs42(Card, { fill: "inset", "aria-hidden": true, className: "flex h-9 items-center gap-2 px-3", children: [
4201
+ /* @__PURE__ */ jsx61(LinkedIcon, { kind: link.kind }),
4202
+ /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-2/5" }),
4203
+ /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", shape: "round", className: "ml-auto size-4" })
4192
4204
  ] }) });
4193
4205
  }
4194
- if (link.state === "unavailable") return /* @__PURE__ */ jsx60(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn });
4206
+ if (link.state === "unavailable") return /* @__PURE__ */ jsx61(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn });
4195
4207
  const { linked } = link;
4196
4208
  const status = chosenOf(linked.status);
4197
4209
  const owner = chosenOf(linked.owner);
4198
4210
  const said = linked.kind === "message" && linked.author;
4199
- const row = /* @__PURE__ */ jsxs41(Card, { fill: "inset", hover: "hairline", className: "relative flex h-9 items-center gap-2 px-3", children: [
4200
- said ? /* @__PURE__ */ jsx60(Avatar, { name: said.name, src: said.picture, size: 16 }) : /* @__PURE__ */ jsx60(LinkedIcon, { kind: linked.kind }),
4201
- said ? /* @__PURE__ */ jsxs41("span", { className: "flex min-w-0 flex-1 items-baseline gap-2 text-body-2", children: [
4202
- /* @__PURE__ */ jsx60("span", { className: "shrink-0 text-body-2-strong text-text-primary", children: said.name }),
4203
- /* @__PURE__ */ jsx60("span", { className: "contents text-text-secondary", children: /* @__PURE__ */ jsx60(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, children: linked.body ?? linked.title }) })
4204
- ] }) : /* @__PURE__ */ jsxs41(Fragment15, { children: [
4205
- linked.key && /* @__PURE__ */ jsx60(LinkKey, { children: linked.key }),
4206
- /* @__PURE__ */ jsx60("span", { className: "contents text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsx60(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: linked.title }) })
4211
+ const row = /* @__PURE__ */ jsxs42(Card, { fill: "inset", hover: "hairline", className: "relative flex h-9 items-center gap-2 px-3", children: [
4212
+ said ? /* @__PURE__ */ jsx61(Avatar, { name: said.name, src: said.picture, size: 16 }) : /* @__PURE__ */ jsx61(LinkedIcon, { kind: linked.kind }),
4213
+ said ? /* @__PURE__ */ jsxs42("span", { className: "flex min-w-0 flex-1 items-baseline gap-2 text-body-2", children: [
4214
+ /* @__PURE__ */ jsx61("span", { className: "shrink-0 text-body-2-strong text-text-primary", children: said.name }),
4215
+ /* @__PURE__ */ jsx61("span", { className: "contents text-text-secondary", children: /* @__PURE__ */ jsx61(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, children: linked.body ?? linked.title }) })
4216
+ ] }) : /* @__PURE__ */ jsxs42(Fragment15, { children: [
4217
+ linked.key && /* @__PURE__ */ jsx61(LinkKey, { children: linked.key }),
4218
+ /* @__PURE__ */ jsx61("span", { className: "contents text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsx61(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: linked.title }) })
4207
4219
  ] }),
4208
- linked.updated && /* @__PURE__ */ jsx60("span", { className: "shrink-0 text-caption text-text-secondary", children: linked.updated }),
4209
- linked.conversation && (linked.conversation.unread || linked.kind === "topic") && /* @__PURE__ */ jsx60(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
4210
- status?.colour && !linked.done && /* @__PURE__ */ jsx60(StatusMark, { status: { label: status.label, colour: status.colour } }),
4211
- linked.done && /* @__PURE__ */ jsx60(ProgressRing, { done: linked.done.done, total: linked.done.total }),
4212
- owner && /* @__PURE__ */ jsx60(Avatar, { name: owner.label, src: owner.picture, size: 16 }),
4213
- linked.members && /* @__PURE__ */ jsx60(AvatarGroup, { members: linked.members, size: 16 }),
4214
- linked.authors && /* @__PURE__ */ jsx60(AvatarGroup, { members: linked.authors, size: 16 })
4220
+ linked.updated && /* @__PURE__ */ jsx61("span", { className: "shrink-0 text-caption text-text-secondary", children: linked.updated }),
4221
+ linked.conversation && (linked.conversation.unread || linked.kind === "topic") && /* @__PURE__ */ jsx61(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
4222
+ status?.colour && !linked.done && /* @__PURE__ */ jsx61(StatusMark, { status: { label: status.label, colour: status.colour } }),
4223
+ linked.done && /* @__PURE__ */ jsx61(ProgressRing, { done: linked.done.done, total: linked.done.total }),
4224
+ owner && /* @__PURE__ */ jsx61(Avatar, { name: owner.label, src: owner.picture, size: 16 }),
4225
+ linked.members && /* @__PURE__ */ jsx61(AvatarGroup, { members: linked.members, size: 16 }),
4226
+ linked.authors && /* @__PURE__ */ jsx61(AvatarGroup, { members: linked.authors, size: 16 })
4215
4227
  ] });
4216
- return preview ? /* @__PURE__ */ jsx60(LinkPreview, { linked, block: true, children: row }) : row;
4228
+ return preview ? /* @__PURE__ */ jsx61(LinkPreview, { linked, block: true, children: row }) : row;
4217
4229
  }
4218
4230
 
4219
4231
  // src/LinkCard.tsx
4220
- import { Fragment as Fragment16, jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
4232
+ import { Fragment as Fragment16, jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
4221
4233
  function LinkCard({ link, readOnly = false, bare = false }) {
4222
- if (link.state === "loading") return /* @__PURE__ */ jsx61(LinkCardLoading, { kind: link.kind, shape: link.shape });
4223
- if (link.state === "unavailable") return /* @__PURE__ */ jsx61(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn });
4234
+ if (link.state === "loading") return /* @__PURE__ */ jsx62(LinkCardLoading, { kind: link.kind, shape: link.shape });
4235
+ if (link.state === "unavailable") return /* @__PURE__ */ jsx62(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn });
4224
4236
  const { linked } = link;
4225
- const body = linked.kind === "message" && linked.author ? /* @__PURE__ */ jsx61(SaidBody, { linked }) : /* @__PURE__ */ jsx61(CardBody, { linked, readOnly });
4226
- if (bare) return /* @__PURE__ */ jsx61("div", { className: "flex flex-col gap-2 p-3", children: body });
4227
- return /* @__PURE__ */ jsx61(Card, { fill: "inset", className: "flex flex-col gap-2 p-3", children: body });
4237
+ const body = linked.kind === "message" && linked.author ? /* @__PURE__ */ jsx62(SaidBody, { linked }) : /* @__PURE__ */ jsx62(CardBody, { linked, readOnly });
4238
+ if (bare) return /* @__PURE__ */ jsx62("div", { className: "flex flex-col gap-2 p-3", children: body });
4239
+ return /* @__PURE__ */ jsx62(Card, { fill: "inset", className: "flex flex-col gap-2 p-3", children: body });
4228
4240
  }
4229
4241
  function CardBody({ linked, readOnly }) {
4230
- return /* @__PURE__ */ jsxs42(Fragment16, { children: [
4231
- /* @__PURE__ */ jsxs42("div", { className: "flex min-h-[19.6px] items-center gap-2", children: [
4232
- /* @__PURE__ */ jsx61("span", { className: "flex min-w-0 flex-1 text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsxs42(Link, { href: linked.href, variant: "quiet", className: "flex min-w-0 flex-1 items-center gap-2", children: [
4233
- /* @__PURE__ */ jsx61(LinkedIcon, { kind: linked.kind }),
4234
- /* @__PURE__ */ jsx61("span", { className: "truncate", children: linked.title })
4242
+ return /* @__PURE__ */ jsxs43(Fragment16, { children: [
4243
+ /* @__PURE__ */ jsxs43("div", { className: "flex min-h-[19.6px] items-center gap-2", children: [
4244
+ /* @__PURE__ */ jsx62("span", { className: "flex min-w-0 flex-1 text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsxs43(Link, { href: linked.href, variant: "quiet", className: "flex min-w-0 flex-1 items-center gap-2", children: [
4245
+ /* @__PURE__ */ jsx62(LinkedIcon, { kind: linked.kind }),
4246
+ /* @__PURE__ */ jsx62("span", { className: "truncate", children: linked.title })
4235
4247
  ] }) }),
4236
- linked.done && /* @__PURE__ */ jsx61(ProgressRing, { done: linked.done.done, total: linked.done.total }),
4237
- linked.members && /* @__PURE__ */ jsx61(AvatarGroup, { members: linked.members, size: 16 })
4248
+ linked.done && /* @__PURE__ */ jsx62(ProgressRing, { done: linked.done.done, total: linked.done.total }),
4249
+ linked.members && /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.members, size: 16 })
4238
4250
  ] }),
4239
- (linked.key || linked.subtitle) && /* @__PURE__ */ jsx61("p", { className: "-mt-1 pl-6 text-caption text-text-secondary", children: [linked.key, linked.subtitle].filter(Boolean).join(" \xB7 ") }),
4240
- linked.summary && /* @__PURE__ */ jsx61("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.summary }),
4241
- linked.children && linked.children.length > 0 && /* @__PURE__ */ jsx61("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: linked.children.map((child) => /* @__PURE__ */ jsxs42("div", { className: "relative flex h-8 items-center gap-2 px-2 hover:bg-bg-active", children: [
4242
- /* @__PURE__ */ jsx61(StatusMark, { status: child.status }),
4243
- child.key && /* @__PURE__ */ jsx61(LinkKey, { children: child.key }),
4244
- /* @__PURE__ */ jsx61("span", { className: "contents text-body-2 text-text-primary", children: /* @__PURE__ */ jsx61(Link, { href: child.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: child.title }) }),
4245
- child.owner ? /* @__PURE__ */ jsx61(Avatar, { name: child.owner.name, src: child.owner.picture, size: 16 }) : /* @__PURE__ */ jsx61("span", { className: "size-4 shrink-0", "aria-hidden": true })
4251
+ (linked.key || linked.subtitle) && /* @__PURE__ */ jsx62("p", { className: "-mt-1 pl-6 text-caption text-text-secondary", children: [linked.key, linked.subtitle].filter(Boolean).join(" \xB7 ") }),
4252
+ linked.summary && /* @__PURE__ */ jsx62("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.summary }),
4253
+ linked.children && linked.children.length > 0 && /* @__PURE__ */ jsx62("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: linked.children.map((child) => /* @__PURE__ */ jsxs43("div", { className: "relative flex h-8 items-center gap-2 px-2 hover:bg-bg-active", children: [
4254
+ /* @__PURE__ */ jsx62(StatusMark, { status: child.status }),
4255
+ child.key && /* @__PURE__ */ jsx62(LinkKey, { children: child.key }),
4256
+ /* @__PURE__ */ jsx62("span", { className: "contents text-body-2 text-text-primary", children: /* @__PURE__ */ jsx62(Link, { href: child.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: child.title }) }),
4257
+ child.owner ? /* @__PURE__ */ jsx62(Avatar, { name: child.owner.name, src: child.owner.picture, size: 16 }) : /* @__PURE__ */ jsx62("span", { className: "size-4 shrink-0", "aria-hidden": true })
4246
4258
  ] }, child.id)) }),
4247
- linked.latest && /* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-1", children: [
4248
- /* @__PURE__ */ jsx61("span", { className: "text-caption text-text-muted", children: "Latest conversation" }),
4249
- /* @__PURE__ */ jsxs42("div", { className: "flex gap-2 rounded-md border border-border-subtle p-2 leaf:border-border-strong", children: [
4250
- /* @__PURE__ */ jsx61(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, size: 16 }),
4251
- /* @__PURE__ */ jsxs42("div", { className: "min-w-0 flex-1", children: [
4252
- /* @__PURE__ */ jsxs42("div", { className: "flex items-baseline gap-2 text-caption", children: [
4253
- /* @__PURE__ */ jsx61("span", { className: "text-text-primary", children: linked.latest.author.name }),
4254
- /* @__PURE__ */ jsx61("span", { className: "text-text-muted", children: linked.latest.at })
4259
+ linked.latest && /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-1", children: [
4260
+ /* @__PURE__ */ jsx62("span", { className: "text-caption text-text-muted", children: "Latest conversation" }),
4261
+ /* @__PURE__ */ jsxs43("div", { className: "flex gap-2 rounded-md border border-border-subtle p-2 leaf:border-border-strong", children: [
4262
+ /* @__PURE__ */ jsx62(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, size: 16 }),
4263
+ /* @__PURE__ */ jsxs43("div", { className: "min-w-0 flex-1", children: [
4264
+ /* @__PURE__ */ jsxs43("div", { className: "flex items-baseline gap-2 text-caption", children: [
4265
+ /* @__PURE__ */ jsx62("span", { className: "text-text-primary", children: linked.latest.author.name }),
4266
+ /* @__PURE__ */ jsx62("span", { className: "text-text-muted", children: linked.latest.at })
4255
4267
  ] }),
4256
- /* @__PURE__ */ jsx61("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.latest.body })
4268
+ /* @__PURE__ */ jsx62("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.latest.body })
4257
4269
  ] })
4258
4270
  ] })
4259
4271
  ] }),
4260
- /* @__PURE__ */ jsxs42("div", { className: "flex min-h-6 items-center gap-2 border-t border-border-subtle pt-2 leaf:border-border-strong", children: [
4261
- (linked.status || linked.owner) && /* @__PURE__ */ jsx61(LinkPickers, { status: linked.status, owner: linked.owner, ownerLabel: linked.ownerLabel, readOnly }),
4262
- linked.authors ? /* @__PURE__ */ jsxs42("span", { className: "flex min-w-0 items-center gap-2 text-caption text-text-secondary", children: [
4263
- /* @__PURE__ */ jsx61(AvatarGroup, { members: linked.authors, size: 16 }),
4264
- linked.updated && /* @__PURE__ */ jsx61("span", { className: "shrink-0", children: linked.updated })
4265
- ] }) : !linked.status && !linked.owner && linked.updated && /* @__PURE__ */ jsxs42("span", { className: "text-caption text-text-secondary", children: [
4272
+ /* @__PURE__ */ jsxs43("div", { className: "flex min-h-6 items-center gap-2 border-t border-border-subtle pt-2 leaf:border-border-strong", children: [
4273
+ (linked.status || linked.owner) && /* @__PURE__ */ jsx62(LinkPickers, { status: linked.status, owner: linked.owner, ownerLabel: linked.ownerLabel, readOnly }),
4274
+ linked.authors ? /* @__PURE__ */ jsxs43("span", { className: "flex min-w-0 items-center gap-2 text-caption text-text-secondary", children: [
4275
+ /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.authors, size: 16 }),
4276
+ linked.updated && /* @__PURE__ */ jsx62("span", { className: "shrink-0", children: linked.updated })
4277
+ ] }) : !linked.status && !linked.owner && linked.updated && /* @__PURE__ */ jsxs43("span", { className: "text-caption text-text-secondary", children: [
4266
4278
  "Updated ",
4267
4279
  linked.updated
4268
4280
  ] }),
4269
- linked.conversation && /* @__PURE__ */ jsx61("span", { className: "ml-auto flex", children: /* @__PURE__ */ jsx61(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }) })
4281
+ linked.conversation && /* @__PURE__ */ jsx62("span", { className: "ml-auto flex", children: /* @__PURE__ */ jsx62(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }) })
4270
4282
  ] })
4271
4283
  ] });
4272
4284
  }
4273
4285
  function SaidBody({ linked }) {
4274
4286
  const author = linked.author;
4275
- return /* @__PURE__ */ jsxs42(Fragment16, { children: [
4276
- /* @__PURE__ */ jsxs42("div", { className: "flex items-center gap-2", children: [
4277
- /* @__PURE__ */ jsx61(Avatar, { name: author.name, src: author.picture, size: 24 }),
4278
- /* @__PURE__ */ jsx61("span", { className: "text-body-2-strong text-text-primary", children: author.name }),
4279
- /* @__PURE__ */ jsx61("span", { className: "text-caption text-text-muted", children: /* @__PURE__ */ jsx61(Link, { href: linked.href, variant: "quiet", children: linked.updated ?? "Open" }) })
4287
+ return /* @__PURE__ */ jsxs43(Fragment16, { children: [
4288
+ /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-2", children: [
4289
+ /* @__PURE__ */ jsx62(Avatar, { name: author.name, src: author.picture, size: 24 }),
4290
+ /* @__PURE__ */ jsx62("span", { className: "text-body-2-strong text-text-primary", children: author.name }),
4291
+ /* @__PURE__ */ jsx62("span", { className: "text-caption text-text-muted", children: /* @__PURE__ */ jsx62(Link, { href: linked.href, variant: "quiet", children: linked.updated ?? "Open" }) })
4280
4292
  ] }),
4281
- /* @__PURE__ */ jsx61("p", { className: "line-clamp-4 text-body-2 text-text-primary", children: linked.body ?? linked.title })
4293
+ /* @__PURE__ */ jsx62("p", { className: "line-clamp-4 text-body-2 text-text-primary", children: linked.body ?? linked.title })
4282
4294
  ] });
4283
4295
  }
4284
4296
  var KIND_SHAPE = {
@@ -4291,35 +4303,35 @@ var KIND_SHAPE = {
4291
4303
  };
4292
4304
  function LinkCardLoading({ kind, shape }) {
4293
4305
  const { subtitle = false, summary = true, rows = 0, latest = false, ring = false, footer = "line" } = shape ?? KIND_SHAPE[kind];
4294
- return /* @__PURE__ */ jsx61("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs42(Card, { fill: "inset", "aria-hidden": true, className: "flex flex-col gap-2 p-3", children: [
4295
- /* @__PURE__ */ jsxs42("div", { className: "flex h-[19.6px] items-center gap-2", children: [
4296
- /* @__PURE__ */ jsx61(LinkedIcon, { kind }),
4297
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3.5 w-1/2" }),
4298
- ring && /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", shape: "round", className: "ml-auto size-4" })
4306
+ return /* @__PURE__ */ jsx62("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs43(Card, { fill: "inset", "aria-hidden": true, className: "flex flex-col gap-2 p-3", children: [
4307
+ /* @__PURE__ */ jsxs43("div", { className: "flex h-[19.6px] items-center gap-2", children: [
4308
+ /* @__PURE__ */ jsx62(LinkedIcon, { kind }),
4309
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3.5 w-1/2" }),
4310
+ ring && /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "round", className: "ml-auto size-4" })
4299
4311
  ] }),
4300
- subtitle && /* @__PURE__ */ jsx61("div", { className: "-mt-1 flex h-[14.4px] items-center pl-6", children: /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-2.5 w-20" }) }),
4301
- summary && /* @__PURE__ */ jsx61("div", { className: "flex h-[19.6px] items-center", children: /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-4/5" }) }),
4302
- rows > 0 && /* @__PURE__ */ jsx61("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx61("div", { className: "flex h-8 items-center px-2", children: /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-1/3" }) }, i)) }),
4303
- latest && /* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-1", children: [
4304
- /* @__PURE__ */ jsx61("div", { className: "flex h-[14.4px] items-center", children: /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-2.5 w-28" }) }),
4305
- /* @__PURE__ */ jsxs42("div", { className: "flex h-[71.6px] flex-col justify-center gap-2 rounded-md border border-border-subtle p-2 leaf:border-border-strong", children: [
4306
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-2.5 w-24" }),
4307
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-full" }),
4308
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-3/5" })
4312
+ subtitle && /* @__PURE__ */ jsx62("div", { className: "-mt-1 flex h-[14.4px] items-center pl-6", children: /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-2.5 w-20" }) }),
4313
+ summary && /* @__PURE__ */ jsx62("div", { className: "flex h-[19.6px] items-center", children: /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-4/5" }) }),
4314
+ rows > 0 && /* @__PURE__ */ jsx62("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx62("div", { className: "flex h-8 items-center px-2", children: /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-1/3" }) }, i)) }),
4315
+ latest && /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-1", children: [
4316
+ /* @__PURE__ */ jsx62("div", { className: "flex h-[14.4px] items-center", children: /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-2.5 w-28" }) }),
4317
+ /* @__PURE__ */ jsxs43("div", { className: "flex h-[71.6px] flex-col justify-center gap-2 rounded-md border border-border-subtle p-2 leaf:border-border-strong", children: [
4318
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-2.5 w-24" }),
4319
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-full" }),
4320
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-3/5" })
4309
4321
  ] })
4310
4322
  ] }),
4311
- footer !== "none" && /* @__PURE__ */ jsx61("div", { className: "flex min-h-6 items-center gap-2 border-t border-border-subtle pt-2 leaf:border-border-strong", children: footer === "pickers" ? /* @__PURE__ */ jsxs42(Fragment16, { children: [
4312
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-24" }),
4313
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-28" })
4314
- ] }) : footer === "people" ? /* @__PURE__ */ jsxs42(Fragment16, { children: [
4315
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", shape: "round", className: "size-4" }),
4316
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-40" })
4317
- ] }) : /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-40" }) })
4323
+ footer !== "none" && /* @__PURE__ */ jsx62("div", { className: "flex min-h-6 items-center gap-2 border-t border-border-subtle pt-2 leaf:border-border-strong", children: footer === "pickers" ? /* @__PURE__ */ jsxs43(Fragment16, { children: [
4324
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-24" }),
4325
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-28" })
4326
+ ] }) : footer === "people" ? /* @__PURE__ */ jsxs43(Fragment16, { children: [
4327
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "round", className: "size-4" }),
4328
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-40" })
4329
+ ] }) : /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-40" }) })
4318
4330
  ] }) });
4319
4331
  }
4320
4332
 
4321
4333
  // src/LinkPreview.tsx
4322
- import { Fragment as Fragment17, jsx as jsx62 } from "react/jsx-runtime";
4334
+ import { Fragment as Fragment17, jsx as jsx63 } from "react/jsx-runtime";
4323
4335
  var HOVER = "(hover: hover)";
4324
4336
  function subscribe(onChange) {
4325
4337
  if (typeof window === "undefined" || !window.matchMedia) return () => {
@@ -4337,21 +4349,21 @@ function useCanHover() {
4337
4349
  }
4338
4350
  function LinkPreview({ linked, block = false, children }) {
4339
4351
  const canHover = useCanHover();
4340
- if (!canHover) return /* @__PURE__ */ jsx62(Fragment17, { children });
4341
- return /* @__PURE__ */ jsx62(PreviewCard, { side: "bottom", content: /* @__PURE__ */ jsx62(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }), wrapperClassName: block ? "grid w-full min-w-0 grid-cols-[minmax(0,1fr)]" : "max-w-full", children });
4352
+ if (!canHover) return /* @__PURE__ */ jsx63(Fragment17, { children });
4353
+ return /* @__PURE__ */ jsx63(PreviewCard, { side: "bottom", content: /* @__PURE__ */ jsx63(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }), wrapperClassName: block ? "grid w-full min-w-0 grid-cols-[minmax(0,1fr)]" : "max-w-full", children });
4342
4354
  }
4343
4355
  function LinkPreviewOpen({ linked }) {
4344
- return /* @__PURE__ */ jsx62(MenuPanel, { className: "w-[360px] p-0", children: /* @__PURE__ */ jsx62(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }) });
4356
+ return /* @__PURE__ */ jsx63(MenuPanel, { className: "w-[360px] p-0", children: /* @__PURE__ */ jsx63(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }) });
4345
4357
  }
4346
4358
 
4347
4359
  // src/LinkChip.tsx
4348
- import { jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
4360
+ import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
4349
4361
  function LinkChip({ link, preview = true }) {
4350
4362
  if (link.state === "loading") {
4351
- return /* @__PURE__ */ jsx63(InlineChip, { icon: /* @__PURE__ */ jsx63(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), "aria-busy": true, children: /* @__PURE__ */ jsx63(SkeletonBar, { className: "h-2.5 w-16" }) });
4363
+ return /* @__PURE__ */ jsx64(InlineChip, { icon: /* @__PURE__ */ jsx64(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), "aria-busy": true, children: /* @__PURE__ */ jsx64(SkeletonBar, { className: "h-2.5 w-16" }) });
4352
4364
  }
4353
4365
  if (link.state === "unavailable") {
4354
- return /* @__PURE__ */ jsxs43(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx63(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: [
4366
+ return /* @__PURE__ */ jsxs44(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx64(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: [
4355
4367
  link.noun,
4356
4368
  ", not available"
4357
4369
  ] });
@@ -4359,69 +4371,69 @@ function LinkChip({ link, preview = true }) {
4359
4371
  const { linked } = link;
4360
4372
  const status = chosenOf(linked.status);
4361
4373
  const said = linked.kind === "message" && linked.author;
4362
- const chip = /* @__PURE__ */ jsxs43(
4374
+ const chip = /* @__PURE__ */ jsxs44(
4363
4375
  InlineChip,
4364
4376
  {
4365
- icon: said ? /* @__PURE__ */ jsx63(Avatar, { name: said.name, src: said.picture, size: 16 }) : /* @__PURE__ */ jsx63(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
4377
+ icon: said ? /* @__PURE__ */ jsx64(Avatar, { name: said.name, src: said.picture, size: 16 }) : /* @__PURE__ */ jsx64(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
4366
4378
  href: linked.href,
4367
4379
  className: "max-w-[28ch]",
4368
4380
  children: [
4369
- linked.key && /* @__PURE__ */ jsx63(LinkKey, { children: linked.key }),
4370
- /* @__PURE__ */ jsx63("span", { className: "truncate", children: said ? `${said.name}: ${linked.body ?? linked.title}` : linked.title }),
4371
- status?.colour && /* @__PURE__ */ jsx63(StatusMark, { status: { label: status.label, colour: status.colour } })
4381
+ linked.key && /* @__PURE__ */ jsx64(LinkKey, { children: linked.key }),
4382
+ /* @__PURE__ */ jsx64("span", { className: "truncate", children: said ? `${said.name}: ${linked.body ?? linked.title}` : linked.title }),
4383
+ status?.colour && /* @__PURE__ */ jsx64(StatusMark, { status: { label: status.label, colour: status.colour } })
4372
4384
  ]
4373
4385
  }
4374
4386
  );
4375
- return preview ? /* @__PURE__ */ jsx63(LinkPreview, { linked, children: chip }) : chip;
4387
+ return preview ? /* @__PURE__ */ jsx64(LinkPreview, { linked, children: chip }) : chip;
4376
4388
  }
4377
4389
 
4378
4390
  // src/CardUnder.tsx
4379
4391
  import { IconX as IconX6 } from "@tabler/icons-react";
4380
- import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
4392
+ import { jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
4381
4393
  function CardUnder({ link, onRemove, revealOnHover = false }) {
4382
- return /* @__PURE__ */ jsxs44("div", { className: "group/card flex max-w-[480px] items-start gap-1", children: [
4383
- /* @__PURE__ */ jsx64("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx64(LinkCard, { link }) }),
4394
+ return /* @__PURE__ */ jsxs45("div", { className: "group/card flex max-w-[480px] items-start gap-1", children: [
4395
+ /* @__PURE__ */ jsx65("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx65(LinkCard, { link }) }),
4384
4396
  onRemove && // At the card's top corner: halfway down a tall card a ✕ reads as belonging to nothing.
4385
- /* @__PURE__ */ jsx64(
4397
+ /* @__PURE__ */ jsx65(
4386
4398
  "div",
4387
4399
  {
4388
4400
  className: cn(
4389
4401
  "flex shrink-0 self-start pt-2",
4390
4402
  revealOnHover && "opacity-0 transition-opacity group-hover/card:opacity-100 focus-within:opacity-100 [@media(hover:none)]:opacity-100"
4391
4403
  ),
4392
- children: /* @__PURE__ */ jsx64(IconButton, { "aria-label": "Remove card", tooltip: "Remove card", onClick: onRemove, children: /* @__PURE__ */ jsx64(IconX6, { size: 16 }) })
4404
+ children: /* @__PURE__ */ jsx65(IconButton, { "aria-label": "Remove card", tooltip: "Remove card", onClick: onRemove, children: /* @__PURE__ */ jsx65(IconX6, { size: 16 }) })
4393
4405
  }
4394
4406
  )
4395
4407
  ] });
4396
4408
  }
4397
4409
 
4398
4410
  // src/PartCard.tsx
4399
- import { Fragment as Fragment18, jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
4411
+ import { Fragment as Fragment18, jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
4400
4412
  function PartCard({ state = "ready", kind, heading, href, partKey, noun = "Item", openIn, children }) {
4401
- if (state === "loading") return /* @__PURE__ */ jsx65(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
4402
- if (state === "unavailable") return /* @__PURE__ */ jsx65(LinkUnavailable, { kind, noun: `A part of this ${noun.toLowerCase()}`, openIn });
4403
- const header = /* @__PURE__ */ jsxs45(Fragment18, { children: [
4404
- /* @__PURE__ */ jsx65(LinkedIcon, { kind }),
4405
- partKey && /* @__PURE__ */ jsx65(LinkKey, { children: partKey }),
4406
- /* @__PURE__ */ jsx65("span", { className: "truncate", children: heading })
4413
+ if (state === "loading") return /* @__PURE__ */ jsx66(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
4414
+ if (state === "unavailable") return /* @__PURE__ */ jsx66(LinkUnavailable, { kind, noun: `A part of this ${noun.toLowerCase()}`, openIn });
4415
+ const header = /* @__PURE__ */ jsxs46(Fragment18, { children: [
4416
+ /* @__PURE__ */ jsx66(LinkedIcon, { kind }),
4417
+ partKey && /* @__PURE__ */ jsx66(LinkKey, { children: partKey }),
4418
+ /* @__PURE__ */ jsx66("span", { className: "truncate", children: heading })
4407
4419
  ] });
4408
- return /* @__PURE__ */ jsxs45(Card, { fill: "inset", className: "flex flex-col gap-2 p-3", children: [
4409
- /* @__PURE__ */ jsx65("span", { className: "flex min-w-0 items-center gap-2 text-body-2-strong text-text-primary", children: href ? /* @__PURE__ */ jsx65(Link, { href, variant: "quiet", className: "flex min-w-0 items-center gap-2", children: header }) : header }),
4410
- /* @__PURE__ */ jsx65("div", { className: "border-l-2 border-border-default pl-3", children })
4420
+ return /* @__PURE__ */ jsxs46(Card, { fill: "inset", className: "flex flex-col gap-2 p-3", children: [
4421
+ /* @__PURE__ */ jsx66("span", { className: "flex min-w-0 items-center gap-2 text-body-2-strong text-text-primary", children: href ? /* @__PURE__ */ jsx66(Link, { href, variant: "quiet", className: "flex min-w-0 items-center gap-2", children: header }) : header }),
4422
+ /* @__PURE__ */ jsx66("div", { className: "border-l-2 border-border-default pl-3", children })
4411
4423
  ] });
4412
4424
  }
4413
4425
 
4414
4426
  // src/Rail.tsx
4415
- import { jsx as jsx66 } from "react/jsx-runtime";
4427
+ import { jsx as jsx67 } from "react/jsx-runtime";
4416
4428
  function Rail({ "aria-label": ariaLabel = "Navigation", children, className }) {
4417
- return /* @__PURE__ */ jsx66("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
4429
+ return /* @__PURE__ */ jsx67("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
4418
4430
  }
4419
4431
 
4420
4432
  // src/RailItem.tsx
4421
- import { jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
4433
+ import { jsx as jsx68, jsxs as jsxs47 } from "react/jsx-runtime";
4422
4434
  function RailItem({ href, icon, label, active = false, className, onClick, ...props }) {
4423
4435
  const inApp = useInAppClick(href, onClick);
4424
- return /* @__PURE__ */ jsxs46(
4436
+ return /* @__PURE__ */ jsxs47(
4425
4437
  "a",
4426
4438
  {
4427
4439
  href,
@@ -4430,14 +4442,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
4430
4442
  ...props,
4431
4443
  onClick: inApp,
4432
4444
  children: [
4433
- /* @__PURE__ */ jsx67(
4445
+ /* @__PURE__ */ jsx68(
4434
4446
  "div",
4435
4447
  {
4436
4448
  className: cn(
4437
4449
  "flex items-center justify-center rounded-lg p-2 transition-colors",
4438
4450
  active ? "bg-bg-selected" : "group-hover:bg-bg-hover"
4439
4451
  ),
4440
- children: /* @__PURE__ */ jsx67(
4452
+ children: /* @__PURE__ */ jsx68(
4441
4453
  "span",
4442
4454
  {
4443
4455
  className: cn(
@@ -4449,14 +4461,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
4449
4461
  )
4450
4462
  }
4451
4463
  ),
4452
- /* @__PURE__ */ jsx67("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
4464
+ /* @__PURE__ */ jsx68("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
4453
4465
  ]
4454
4466
  }
4455
4467
  );
4456
4468
  }
4457
4469
 
4458
4470
  // src/Property.tsx
4459
- import { jsx as jsx68, jsxs as jsxs47 } from "react/jsx-runtime";
4471
+ import { jsx as jsx69, jsxs as jsxs48 } from "react/jsx-runtime";
4460
4472
  var VALUE_CLASSES = "contents";
4461
4473
  function Property({ label, layout = "row", children, className }) {
4462
4474
  if (layout === "stacked") {
@@ -4464,25 +4476,25 @@ function Property({ label, layout = "row", children, className }) {
4464
4476
  // gap-3 — the one label-above-content distance (Katerina, 2026-09-01):
4465
4477
  // Peek's topic-details sections already sit at 12px, Ship's rail was
4466
4478
  // 6px, and unifying means the bigger, calmer one.
4467
- /* @__PURE__ */ jsxs47("dl", { className: cn("flex flex-col gap-3", className), children: [
4468
- /* @__PURE__ */ jsx68("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
4469
- /* @__PURE__ */ jsx68("dd", { className: VALUE_CLASSES, children })
4479
+ /* @__PURE__ */ jsxs48("dl", { className: cn("flex flex-col gap-3", className), children: [
4480
+ /* @__PURE__ */ jsx69("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
4481
+ /* @__PURE__ */ jsx69("dd", { className: VALUE_CLASSES, children })
4470
4482
  ] })
4471
4483
  );
4472
4484
  }
4473
- return /* @__PURE__ */ jsxs47("dl", { className: cn("flex items-center gap-2", className), children: [
4474
- /* @__PURE__ */ jsx68("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
4475
- /* @__PURE__ */ jsx68("dd", { className: VALUE_CLASSES, children })
4485
+ return /* @__PURE__ */ jsxs48("dl", { className: cn("flex items-center gap-2", className), children: [
4486
+ /* @__PURE__ */ jsx69("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
4487
+ /* @__PURE__ */ jsx69("dd", { className: VALUE_CLASSES, children })
4476
4488
  ] });
4477
4489
  }
4478
4490
 
4479
4491
  // src/Reaction.tsx
4480
4492
  import { Toggle as Toggle2 } from "@base-ui/react/toggle";
4481
- import { jsx as jsx69, jsxs as jsxs48 } from "react/jsx-runtime";
4493
+ import { jsx as jsx70, jsxs as jsxs49 } from "react/jsx-runtime";
4482
4494
  function Reaction({ emoji, count, pressed = false, className, ...props }) {
4483
4495
  return (
4484
4496
  // @estiva-escape(no-copied-look): W1 (Katerina, 24 September: leave alone): a reaction pill shares four words with a field's box by coincidence
4485
- /* @__PURE__ */ jsxs48(
4497
+ /* @__PURE__ */ jsxs49(
4486
4498
  Toggle2,
4487
4499
  {
4488
4500
  pressed,
@@ -4504,20 +4516,82 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
4504
4516
  ),
4505
4517
  ...props,
4506
4518
  children: [
4507
- /* @__PURE__ */ jsx69("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
4508
- /* @__PURE__ */ jsx69("span", { className: CHIP_TEXT_CLASSES, children: count })
4519
+ /* @__PURE__ */ jsx70("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
4520
+ /* @__PURE__ */ jsx70("span", { className: CHIP_TEXT_CLASSES, children: count })
4509
4521
  ]
4510
4522
  }
4511
4523
  )
4512
4524
  );
4513
4525
  }
4514
4526
 
4527
+ // src/ReactionRow.tsx
4528
+ import { useState as useState13 } from "react";
4529
+ import { IconMoodPlus } from "@tabler/icons-react";
4530
+ import { jsx as jsx71, jsxs as jsxs50 } from "react/jsx-runtime";
4531
+ var NAMED = 8;
4532
+ var meaningOf = (options, emoji) => options.find((o) => o.emoji === emoji)?.label ?? emoji;
4533
+ function whoReacted(reaction, nameOf, options, viewer) {
4534
+ if (reaction.by.length === 0) return "";
4535
+ const others = reaction.by.filter((id) => id !== viewer).map(nameOf);
4536
+ const you = viewer !== void 0 && reaction.by.includes(viewer);
4537
+ const named2 = others.slice(0, you ? NAMED - 1 : NAMED);
4538
+ const rest = others.length - named2.length;
4539
+ const names = [...named2, ...rest > 0 ? [`${rest} more`] : [], ...you ? ["you"] : []];
4540
+ const list = names.length > 1 ? `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}` : names[0] ?? "";
4541
+ return `${list.charAt(0).toUpperCase()}${list.slice(1)} reacted with ${meaningOf(options, reaction.emoji)}`;
4542
+ }
4543
+ function AddReactionButton({ options, onPick, className }) {
4544
+ const [picking, setPicking] = useState13(false);
4545
+ return /* @__PURE__ */ jsx71(
4546
+ Popover,
4547
+ {
4548
+ open: picking,
4549
+ onOpenChange: setPicking,
4550
+ side: "top",
4551
+ align: "left",
4552
+ ariaLabel: "Add a reaction",
4553
+ contentClassName: "p-1",
4554
+ className,
4555
+ trigger: /* @__PURE__ */ jsx71(IconButton, { variant: "muted", tooltip: "Add a reaction", "aria-label": "Add a reaction", children: /* @__PURE__ */ jsx71(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
4556
+ children: /* @__PURE__ */ jsx71(
4557
+ ReactionPicker,
4558
+ {
4559
+ options: [...options],
4560
+ surface: false,
4561
+ onSelect: (emoji) => {
4562
+ setPicking(false);
4563
+ onPick(emoji);
4564
+ }
4565
+ }
4566
+ )
4567
+ }
4568
+ );
4569
+ }
4570
+ function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }) {
4571
+ const shown = reactions.filter((r) => r.by.length > 0);
4572
+ if (shown.length === 0) return null;
4573
+ return /* @__PURE__ */ jsxs50("div", { "data-reaction-row": true, className: cn("flex flex-wrap items-center gap-1", className), children: [
4574
+ shown.map((r) => /* @__PURE__ */ jsx71(WithTooltip, { label: whoReacted(r, nameOf, options, viewer), children: /* @__PURE__ */ jsx71(
4575
+ Reaction,
4576
+ {
4577
+ emoji: r.emoji,
4578
+ count: r.by.length,
4579
+ pressed: viewer !== void 0 && r.by.includes(viewer),
4580
+ disabled: !onToggle,
4581
+ "aria-label": `${meaningOf(options, r.emoji)}, ${r.by.length}`,
4582
+ onClick: () => onToggle?.(r.emoji)
4583
+ }
4584
+ ) }, r.emoji)),
4585
+ onToggle && /* @__PURE__ */ jsx71(AddReactionButton, { options, onPick: onToggle })
4586
+ ] });
4587
+ }
4588
+
4515
4589
  // src/SearchInput.tsx
4516
4590
  import "react";
4517
4591
  import { Input as Input3 } from "@base-ui/react/input";
4518
- import { jsx as jsx70, jsxs as jsxs49 } from "react/jsx-runtime";
4592
+ import { jsx as jsx72, jsxs as jsxs51 } from "react/jsx-runtime";
4519
4593
  function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...props }) {
4520
- return /* @__PURE__ */ jsxs49(
4594
+ return /* @__PURE__ */ jsxs51(
4521
4595
  "div",
4522
4596
  {
4523
4597
  className: cn(
@@ -4529,7 +4603,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
4529
4603
  className
4530
4604
  ),
4531
4605
  children: [
4532
- /* @__PURE__ */ jsx70(
4606
+ /* @__PURE__ */ jsx72(
4533
4607
  Input3,
4534
4608
  {
4535
4609
  className: cn("flex-1 min-w-0 text-input-value", BARE_INPUT_CLASSES),
@@ -4537,42 +4611,42 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
4537
4611
  ...props
4538
4612
  }
4539
4613
  ),
4540
- shortcut && /* @__PURE__ */ jsx70(Kbd, { children: shortcut })
4614
+ shortcut && /* @__PURE__ */ jsx72(Kbd, { children: shortcut })
4541
4615
  ]
4542
4616
  }
4543
4617
  );
4544
4618
  }
4545
4619
 
4546
4620
  // src/Panel.tsx
4547
- import { jsx as jsx71, jsxs as jsxs50 } from "react/jsx-runtime";
4621
+ import { jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
4548
4622
  function Frame({ title, chevron = false, actions, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
4549
- return /* @__PURE__ */ jsxs50("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
4550
- /* @__PURE__ */ jsx71(ContainerHeader, { title, chevron, actions }),
4623
+ return /* @__PURE__ */ jsxs52("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
4624
+ /* @__PURE__ */ jsx73(ContainerHeader, { title, chevron, actions }),
4551
4625
  broken ? (
4552
4626
  // The message takes the room the body had and centres itself in it.
4553
- /* @__PURE__ */ jsx71("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
4554
- ) : /* @__PURE__ */ jsx71(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
4555
- !broken && footer && /* @__PURE__ */ jsx71("div", { className: "shrink-0", children: footer })
4627
+ /* @__PURE__ */ jsx73("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
4628
+ ) : /* @__PURE__ */ jsx73(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
4629
+ !broken && footer && /* @__PURE__ */ jsx73("div", { className: "shrink-0", children: footer })
4556
4630
  ] });
4557
4631
  }
4558
4632
  function Panel(props) {
4559
- return /* @__PURE__ */ jsx71(
4633
+ return /* @__PURE__ */ jsx73(
4560
4634
  ErrorBoundary,
4561
4635
  {
4562
4636
  label: "panel",
4563
4637
  frame: (message) => (
4564
4638
  // Only the name comes back with the message: the actions and the footer may be what threw.
4565
- /* @__PURE__ */ jsx71(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
4639
+ /* @__PURE__ */ jsx73(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
4566
4640
  ),
4567
- children: /* @__PURE__ */ jsx71(Frame, { ...props })
4641
+ children: /* @__PURE__ */ jsx73(Frame, { ...props })
4568
4642
  }
4569
4643
  );
4570
4644
  }
4571
4645
 
4572
4646
  // src/ListColumn.tsx
4573
- import { jsx as jsx72, jsxs as jsxs51 } from "react/jsx-runtime";
4647
+ import { jsx as jsx74, jsxs as jsxs53 } from "react/jsx-runtime";
4574
4648
  function Column({ title, chevron = false, titleMenu, actions, above, collapsed = false, children, className, broken = false }) {
4575
- return /* @__PURE__ */ jsxs51(
4649
+ return /* @__PURE__ */ jsxs53(
4576
4650
  "div",
4577
4651
  {
4578
4652
  className: cn(
@@ -4583,35 +4657,35 @@ function Column({ title, chevron = false, titleMenu, actions, above, collapsed =
4583
4657
  ),
4584
4658
  "data-collapsed": collapsed || void 0,
4585
4659
  children: [
4586
- /* @__PURE__ */ jsx72(ContainerHeader, { title, chevron, titleMenu, actions }),
4660
+ /* @__PURE__ */ jsx74(ContainerHeader, { title, chevron, titleMenu, actions }),
4587
4661
  above,
4588
4662
  broken ? (
4589
4663
  // The message takes the room the list had and centres itself in it (Katerina, 19 September).
4590
- /* @__PURE__ */ jsx72("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
4591
- ) : /* @__PURE__ */ jsx72(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
4664
+ /* @__PURE__ */ jsx74("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
4665
+ ) : /* @__PURE__ */ jsx74(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
4592
4666
  ]
4593
4667
  }
4594
4668
  );
4595
4669
  }
4596
4670
  function ListColumn(props) {
4597
- return /* @__PURE__ */ jsx72(
4671
+ return /* @__PURE__ */ jsx74(
4598
4672
  ErrorBoundary,
4599
4673
  {
4600
4674
  label: "list panel",
4601
4675
  frame: (message) => (
4602
4676
  // Only the name comes back with the message: the actions and the row above may be what threw.
4603
- /* @__PURE__ */ jsx72(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
4677
+ /* @__PURE__ */ jsx74(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
4604
4678
  ),
4605
- children: /* @__PURE__ */ jsx72(Column, { ...props })
4679
+ children: /* @__PURE__ */ jsx74(Column, { ...props })
4606
4680
  }
4607
4681
  );
4608
4682
  }
4609
4683
 
4610
4684
  // src/Tabs.tsx
4611
4685
  import { Tabs as BaseTabs } from "@base-ui/react/tabs";
4612
- import { Fragment as Fragment19, jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
4686
+ import { Fragment as Fragment19, jsx as jsx75, jsxs as jsxs54 } from "react/jsx-runtime";
4613
4687
  function Tabs({ tabs, active, onChange, size = "default", className, ...aria }) {
4614
- return /* @__PURE__ */ jsx73(
4688
+ return /* @__PURE__ */ jsx75(
4615
4689
  BaseTabs.Root,
4616
4690
  {
4617
4691
  value: active,
@@ -4619,14 +4693,14 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
4619
4693
  if (details.reason === "none") onChange(value);
4620
4694
  },
4621
4695
  className,
4622
- children: /* @__PURE__ */ jsx73(
4696
+ children: /* @__PURE__ */ jsx75(
4623
4697
  BaseTabs.List,
4624
4698
  {
4625
4699
  activateOnFocus: true,
4626
4700
  "aria-label": aria["aria-label"],
4627
4701
  "aria-labelledby": aria["aria-labelledby"],
4628
4702
  className: "flex items-center gap-2",
4629
- children: tabs.map((tab) => /* @__PURE__ */ jsxs52(
4703
+ children: tabs.map((tab) => /* @__PURE__ */ jsxs54(
4630
4704
  BaseTabs.Tab,
4631
4705
  {
4632
4706
  value: tab.id,
@@ -4639,13 +4713,13 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
4639
4713
  ),
4640
4714
  children: [
4641
4715
  tab.icon,
4642
- /* @__PURE__ */ jsxs52("span", { className: "flex items-baseline", children: [
4716
+ /* @__PURE__ */ jsxs54("span", { className: "flex items-baseline", children: [
4643
4717
  tab.label,
4644
- tab.count !== void 0 ? /* @__PURE__ */ jsx73("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
4718
+ tab.count !== void 0 ? /* @__PURE__ */ jsx75("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
4645
4719
  ] }),
4646
- tab.unread ? /* @__PURE__ */ jsxs52(Fragment19, { children: [
4647
- /* @__PURE__ */ jsx73(UnreadDot, { className: "h-auto w-auto" }),
4648
- /* @__PURE__ */ jsx73("span", { className: "sr-only", children: "new" })
4720
+ tab.unread ? /* @__PURE__ */ jsxs54(Fragment19, { children: [
4721
+ /* @__PURE__ */ jsx75(UnreadDot, { className: "h-auto w-auto" }),
4722
+ /* @__PURE__ */ jsx75("span", { className: "sr-only", children: "new" })
4649
4723
  ] }) : null
4650
4724
  ]
4651
4725
  },
@@ -4661,7 +4735,7 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
4661
4735
  import { createContext as createContext7, useContext as useContext7, useMemo as useMemo6 } from "react";
4662
4736
  import { Toast as BaseToast } from "@base-ui/react/toast";
4663
4737
  import { IconAlertCircle as IconAlertCircle2, IconCircleCheck as IconCircleCheck2, IconCircleX as IconCircleX2 } from "@tabler/icons-react";
4664
- import { jsx as jsx74, jsxs as jsxs53 } from "react/jsx-runtime";
4738
+ import { jsx as jsx76, jsxs as jsxs55 } from "react/jsx-runtime";
4665
4739
  var SURFACE_STYLES = {
4666
4740
  success: "bg-success-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
4667
4741
  brand: "bg-accent-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
@@ -4697,16 +4771,16 @@ var pillClassName = (type, hasAction, className) => cn(
4697
4771
  );
4698
4772
  function LeadingIcon({ type }) {
4699
4773
  const Icon = ICONS2[type];
4700
- return /* @__PURE__ */ jsx74(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
4774
+ return /* @__PURE__ */ jsx76(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
4701
4775
  }
4702
4776
  function Toast({ label, type = "neutral", leadingIcon = true, actionLabel, onAction, className }) {
4703
4777
  const hasAction = !!(actionLabel && onAction);
4704
- return /* @__PURE__ */ jsxs53("div", { className: pillClassName(type, hasAction, className), children: [
4705
- /* @__PURE__ */ jsxs53("div", { className: "flex items-center gap-2 shrink-0", children: [
4706
- leadingIcon && /* @__PURE__ */ jsx74(LeadingIcon, { type }),
4707
- /* @__PURE__ */ jsx74("span", { className: LABEL_CLASSES, children: label })
4778
+ return /* @__PURE__ */ jsxs55("div", { className: pillClassName(type, hasAction, className), children: [
4779
+ /* @__PURE__ */ jsxs55("div", { className: "flex items-center gap-2 shrink-0", children: [
4780
+ leadingIcon && /* @__PURE__ */ jsx76(LeadingIcon, { type }),
4781
+ /* @__PURE__ */ jsx76("span", { className: LABEL_CLASSES, children: label })
4708
4782
  ] }),
4709
- hasAction && /* @__PURE__ */ jsx74(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
4783
+ hasAction && /* @__PURE__ */ jsx76(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
4710
4784
  ] });
4711
4785
  }
4712
4786
  var ToastContext = createContext7(null);
@@ -4727,9 +4801,9 @@ function ToastProvider({ children }) {
4727
4801
  }),
4728
4802
  [manager]
4729
4803
  );
4730
- return /* @__PURE__ */ jsx74(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs53(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
4804
+ return /* @__PURE__ */ jsx76(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs55(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
4731
4805
  children,
4732
- /* @__PURE__ */ jsx74(BaseToast.Portal, { children: /* @__PURE__ */ jsx74(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx74(ToastList, {}) }) })
4806
+ /* @__PURE__ */ jsx76(BaseToast.Portal, { children: /* @__PURE__ */ jsx76(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx76(ToastList, {}) }) })
4733
4807
  ] }) });
4734
4808
  }
4735
4809
  function ToastList() {
@@ -4737,25 +4811,25 @@ function ToastList() {
4737
4811
  return toasts.map((toast) => {
4738
4812
  const type = toast.type ?? "neutral";
4739
4813
  const { leadingIcon = true, actionLabel, onAction } = toast.data ?? {};
4740
- return /* @__PURE__ */ jsxs53(
4814
+ return /* @__PURE__ */ jsxs55(
4741
4815
  BaseToast.Root,
4742
4816
  {
4743
4817
  toast,
4744
4818
  swipeDirection: ["left", "down"],
4745
4819
  className: pillClassName(type, !!actionLabel, "pointer-events-auto data-[limited]:hidden"),
4746
4820
  children: [
4747
- /* @__PURE__ */ jsxs53("div", { className: "flex items-center gap-2 shrink-0", children: [
4748
- leadingIcon && /* @__PURE__ */ jsx74(LeadingIcon, { type }),
4749
- /* @__PURE__ */ jsx74(BaseToast.Title, { render: /* @__PURE__ */ jsx74("span", {}), className: LABEL_CLASSES })
4821
+ /* @__PURE__ */ jsxs55("div", { className: "flex items-center gap-2 shrink-0", children: [
4822
+ leadingIcon && /* @__PURE__ */ jsx76(LeadingIcon, { type }),
4823
+ /* @__PURE__ */ jsx76(BaseToast.Title, { render: /* @__PURE__ */ jsx76("span", {}), className: LABEL_CLASSES })
4750
4824
  ] }),
4751
- actionLabel && /* @__PURE__ */ jsx74(
4825
+ actionLabel && /* @__PURE__ */ jsx76(
4752
4826
  BaseToast.Action,
4753
4827
  {
4754
4828
  onClick: () => {
4755
4829
  onAction?.();
4756
4830
  close(toast.id);
4757
4831
  },
4758
- render: /* @__PURE__ */ jsx74(Button, { variant: "outlined", size: "small", children: actionLabel })
4832
+ render: /* @__PURE__ */ jsx76(Button, { variant: "outlined", size: "small", children: actionLabel })
4759
4833
  }
4760
4834
  )
4761
4835
  ]
@@ -4770,6 +4844,7 @@ function useToast() {
4770
4844
  return ctx;
4771
4845
  }
4772
4846
  export {
4847
+ AddReactionButton,
4773
4848
  AppProvider,
4774
4849
  AppShell,
4775
4850
  AttachmentCard,
@@ -4800,6 +4875,7 @@ export {
4800
4875
  EditableText,
4801
4876
  EmptyState,
4802
4877
  EnterHint,
4878
+ EntryShell,
4803
4879
  ErrorBoundary,
4804
4880
  Field,
4805
4881
  FieldLine,
@@ -4852,6 +4928,7 @@ export {
4852
4928
  RailItem,
4853
4929
  Reaction,
4854
4930
  ReactionPicker,
4931
+ ReactionRow,
4855
4932
  RichText,
4856
4933
  ScrollArea,
4857
4934
  SearchInput,
@@ -4894,6 +4971,7 @@ export {
4894
4971
  thingKindOf,
4895
4972
  unavailableMemory,
4896
4973
  useCanHover,
4897
- useToast
4974
+ useToast,
4975
+ whoReacted
4898
4976
  };
4899
4977
  //# sourceMappingURL=index.js.map