@estiva-app/ui 0.116.0 → 0.117.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
@@ -1566,11 +1566,12 @@ function menuItemClassName({ size, selected, shut = false, className }) {
1566
1566
  className
1567
1567
  );
1568
1568
  }
1569
- function MenuItemBody({ label, children, size = "default", description, aside, leading, trailing, hint, shortcut, submenu, destructive, selected, shut = false }) {
1569
+ function MenuItemBody({ label, children, size = "default", description, aside, leading, leadingAt, trailing, hint, shortcut, submenu, destructive, selected, shut = false }) {
1570
1570
  const labelColour = shut ? "text-text-disabled" : destructive ? "text-error-default" : "text-text-primary";
1571
+ const firstLine = (leadingAt ?? (size === "default" && description ? "top" : "center")) === "top";
1571
1572
  const edge = trailing ?? (shortcut ? /* @__PURE__ */ jsx22(Kbd, { children: shortcut }) : submenu ? /* @__PURE__ */ jsx22(IconChevronRight, { size: 16, stroke: 1.5, className: "shrink-0 text-text-muted" }) : null);
1572
1573
  return /* @__PURE__ */ jsxs15(Fragment3, { children: [
1573
- leading && /* @__PURE__ */ jsx22("span", { className: "flex shrink-0 items-center", children: leading }),
1574
+ leading && /* @__PURE__ */ jsx22("span", { className: cn("flex shrink-0 items-center", firstLine && "h-5 self-start"), children: leading }),
1574
1575
  children ?? /* @__PURE__ */ jsxs15("span", { className: cn("flex min-w-0 flex-1 flex-col", size === "tall" && "gap-[2px]"), children: [
1575
1576
  aside ? /* @__PURE__ */ jsxs15("span", { className: "flex min-w-0 items-baseline gap-2", children: [
1576
1577
  /* @__PURE__ */ jsx22("span", { className: cn("truncate text-body-2", labelColour), children: label }),
@@ -1588,7 +1589,7 @@ function MenuItemBody({ label, children, size = "default", description, aside, l
1588
1589
  ] })
1589
1590
  ] });
1590
1591
  }
1591
- function MenuItem({ label, children, size = "default", description, aside, leading, trailing, hint, shortcut, submenu, destructive, selected, disabledReason, className, ...props }) {
1592
+ function MenuItem({ label, children, size = "default", description, aside, leading, leadingAt, trailing, hint, shortcut, submenu, destructive, selected, disabledReason, className, ...props }) {
1592
1593
  const shut = !!disabledReason;
1593
1594
  const body = /* @__PURE__ */ jsx22(
1594
1595
  MenuItemBody,
@@ -1598,6 +1599,7 @@ function MenuItem({ label, children, size = "default", description, aside, leadi
1598
1599
  description,
1599
1600
  aside,
1600
1601
  leading,
1602
+ ...leadingAt ? { leadingAt } : {},
1601
1603
  trailing,
1602
1604
  hint,
1603
1605
  shortcut,
@@ -2185,6 +2187,7 @@ function FollowSwitch({ level, label, onChoose, readOnlyReason, people = false,
2185
2187
 
2186
2188
  // src/WhoFollowsDialog.tsx
2187
2189
  import { useState as useState9 } from "react";
2190
+ import { IconUserMinus as IconUserMinus2, IconUserPlus as IconUserPlus2 } from "@tabler/icons-react";
2188
2191
 
2189
2192
  // src/MembersDialog.tsx
2190
2193
  import { useId as useId3, useState as useState8 } from "react";
@@ -2511,13 +2514,132 @@ function MembersDialog({ members, count, self, candidates = [], onAdd, note, ini
2511
2514
  );
2512
2515
  }
2513
2516
 
2517
+ // src/SectionHeader.tsx
2518
+ import { IconChevronRight as IconChevronRight2, IconDotsVertical } from "@tabler/icons-react";
2519
+ import { useRender } from "@base-ui/react/use-render";
2520
+ import { Fragment as Fragment8, jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
2521
+ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onToggle, trailing, count, actions, menu, menuLabel, showActions = "hover", hover = "fill", look = "heading", render, className }) {
2522
+ const row = look === "row";
2523
+ const acts = actions && actions.length > 0 || menu != null;
2524
+ 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";
2525
+ 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";
2526
+ const titleElement = useRender({
2527
+ render: render ?? (chevron ? /* @__PURE__ */ jsx33("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx33("span", {})),
2528
+ props: {
2529
+ // `text-left`: a button centres its text. `h-full` and `flex-1`: the
2530
+ // whole row up to the actions is the hit target, as it was when the
2531
+ // row itself carried the click.
2532
+ // An icon is a row's: NavItem's 8px after it.
2533
+ className: cn("flex h-full min-w-0 flex-1 items-center text-left", row || chevron || icon != null ? "gap-2" : "gap-1"),
2534
+ children: /* @__PURE__ */ jsxs25(Fragment8, { children: [
2535
+ icon != null ? /* @__PURE__ */ jsxs25("span", { className: "relative flex size-4 shrink-0 items-center justify-center text-text-secondary", children: [
2536
+ /* @__PURE__ */ jsx33("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
2537
+ chevron && /* @__PURE__ */ jsx33(
2538
+ IconChevronRight2,
2539
+ {
2540
+ size: 16,
2541
+ stroke: 1.5,
2542
+ className: cn("absolute opacity-0 transition-[opacity,transform] duration-150 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100", isExpanded && "rotate-90")
2543
+ }
2544
+ )
2545
+ ] }) : chevron && /* @__PURE__ */ jsx33(
2546
+ IconChevronRight2,
2547
+ {
2548
+ size: 16,
2549
+ stroke: 1.5,
2550
+ className: cn("shrink-0 transition-transform duration-150", !row && "text-text-secondary", isExpanded && "rotate-90")
2551
+ }
2552
+ ),
2553
+ look === "quiet" ? /* @__PURE__ */ jsx33("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
2554
+ // A row's words: NavItem's size and colour, brightening under the pointer with the row.
2555
+ /* @__PURE__ */ jsx33("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
2556
+ ) : (
2557
+ // One line, as the other looks and a NavItem's label: a Folder named by its id ran onto two (Katerina, 3 November).
2558
+ /* @__PURE__ */ jsx33(SectionLabel, { folds: chevron, truncate: true, children: title })
2559
+ ),
2560
+ count != null && /* @__PURE__ */ jsx33("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
2561
+ ] })
2562
+ }
2563
+ });
2564
+ return /* @__PURE__ */ jsxs25(
2565
+ "div",
2566
+ {
2567
+ className: cn(
2568
+ // `relative`: a dot in the last button's place is placed against the row.
2569
+ "group relative flex h-[32px] shrink-0 items-center gap-1 px-2",
2570
+ !row && "transition-colors",
2571
+ // A row is NavItem's shape and colour: 6px corners, secondary words that brighten on hover.
2572
+ row ? cn(SIDEBAR_ROW_CLASSES, SIDEBAR_ROW_TEXT_CLASSES) : "rounded-lg",
2573
+ // The fill says "this does something": a row with a toggle or actions
2574
+ // lights up, a fixed heading over rows does not (2026-09-09, the
2575
+ // Sidebar's fixed group).
2576
+ // A quiet label never lights up: it is a label; its button does.
2577
+ hover === "fill" && look !== "quiet" && (chevron || acts) && "hover:bg-bg-hover",
2578
+ // While its menu is open the pointer is on the menu, not the row: the
2579
+ // row keeps its hover look, as a NavItem's does.
2580
+ hover === "fill" && look !== "quiet" && menu != null && "has-[[data-section-menu]_[aria-expanded=true]]:bg-bg-hover",
2581
+ className
2582
+ ),
2583
+ children: [
2584
+ titleElement,
2585
+ trailing != null && /* @__PURE__ */ jsx33("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
2586
+ acts && /* @__PURE__ */ jsx33(
2587
+ "div",
2588
+ {
2589
+ className: "-mr-1 flex shrink-0 items-center",
2590
+ children: /* @__PURE__ */ jsxs25("div", { className: cn("flex items-center gap-1", reveal), children: [
2591
+ actions?.map(
2592
+ (action) => action.menu != null ? (
2593
+ // `data-section-menu`, as the ⋮ has: the row stays lit while its menu is open.
2594
+ /* @__PURE__ */ jsx33("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx33(
2595
+ Menu,
2596
+ {
2597
+ align: "left",
2598
+ trigger: /* @__PURE__ */ jsx33(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, children: action.icon }),
2599
+ children: action.menu
2600
+ }
2601
+ ) }, action.tooltip)
2602
+ ) : /* @__PURE__ */ jsx33(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)
2603
+ ),
2604
+ menu != null && /* @__PURE__ */ jsx33("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx33(
2605
+ Menu,
2606
+ {
2607
+ align: "left",
2608
+ trigger: /* @__PURE__ */ jsx33(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx33(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
2609
+ children: menu
2610
+ }
2611
+ ) })
2612
+ ] })
2613
+ }
2614
+ )
2615
+ ]
2616
+ }
2617
+ );
2618
+ }
2619
+
2514
2620
  // src/WhoFollowsDialog.tsx
2515
- import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
2516
- function WhoFollowsDialog({ title, all, important, candidates = [], onAdd, initialView = "list", onClose }) {
2621
+ import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
2622
+ function WhoFollowsDialog({ title, all, important, candidates = [], onAdd, self, initialView = "list", onClose }) {
2517
2623
  const [view, setView] = useState9(onAdd ? initialView : "list");
2624
+ const [toggling, setToggling] = useState9(false);
2625
+ const toggle = async () => {
2626
+ if (!self) return;
2627
+ setToggling(true);
2628
+ try {
2629
+ await self.onToggle();
2630
+ } finally {
2631
+ setToggling(false);
2632
+ }
2633
+ };
2634
+ const ownId = self?.action === "leave" && [...all, ...important].some((m) => m.id === self.id) ? self.id : void 0;
2635
+ const ownFirst = (rows) => {
2636
+ const own = rows.find((m) => m.id === ownId);
2637
+ return own ? [own, ...rows.filter((m) => m !== own)] : rows;
2638
+ };
2639
+ const selfOnTop = self && !ownId;
2518
2640
  const heading = `Who follows ${title}`;
2519
2641
  if (view === "add" && onAdd) {
2520
- return /* @__PURE__ */ jsx33(
2642
+ return /* @__PURE__ */ jsx34(
2521
2643
  AddPeopleLayer,
2522
2644
  {
2523
2645
  title: "Add someone",
@@ -2530,12 +2652,32 @@ function WhoFollowsDialog({ title, all, important, candidates = [], onAdd, initi
2530
2652
  }
2531
2653
  );
2532
2654
  }
2533
- const group = (label, rows) => /* @__PURE__ */ jsxs25("div", { className: "flex flex-col pt-2", children: [
2534
- /* @__PURE__ */ jsx33(SectionLabel, { tone: "muted", className: "px-5", children: `${label} \xB7 ${rows.length}` }),
2535
- rows.length === 0 ? /* @__PURE__ */ jsx33("div", { className: "px-5", children: /* @__PURE__ */ jsx33(EmptyState, { scope: "rows", message: "Nobody" }) }) : rows.map((m) => /* @__PURE__ */ jsx33(RosterRow, { member: m }, m.id))
2655
+ const group = (label, rows) => /* @__PURE__ */ jsxs26("div", { className: "flex flex-col pt-2", children: [
2656
+ /* @__PURE__ */ jsx34(SectionHeader, { title: label, count: rows.length, hover: "none", className: "mx-3" }),
2657
+ rows.length === 0 ? /* @__PURE__ */ jsx34(EmptyState, { scope: "rows", message: "Nobody", className: "mx-3" }) : ownFirst(rows).map((m) => /* @__PURE__ */ jsx34(
2658
+ RosterRow,
2659
+ {
2660
+ member: m,
2661
+ trailing: m.id === ownId && /* @__PURE__ */ jsx34(Button, { variant: "destructive", size: "small", disabled: toggling, onClick: () => void toggle(), children: "Leave" })
2662
+ },
2663
+ m.id
2664
+ ))
2536
2665
  ] });
2537
- return /* @__PURE__ */ jsxs25(DialogShell, { title: heading, onClose, bodyMaxHeight: "max-h-[400px]", bodyClassName: "p-0 py-2", children: [
2538
- onAdd && /* @__PURE__ */ jsx33("div", { className: "flex flex-col px-2", children: /* @__PURE__ */ jsx33(AddRow, { label: "Add someone", onClick: () => setView("add") }) }),
2666
+ return /* @__PURE__ */ jsxs26(DialogShell, { title: heading, onClose, bodyMaxHeight: "max-h-[400px]", bodyClassName: "p-0 py-2", children: [
2667
+ (selfOnTop || onAdd) && /* @__PURE__ */ jsxs26("div", { className: "flex flex-col px-2", children: [
2668
+ selfOnTop && /* @__PURE__ */ jsx34(
2669
+ MenuItem,
2670
+ {
2671
+ size: "tall",
2672
+ className: "py-2",
2673
+ disabled: toggling,
2674
+ onClick: () => void toggle(),
2675
+ leading: /* @__PURE__ */ jsx34("span", { className: LEADING_CLASSES, children: self.action === "join" ? /* @__PURE__ */ jsx34(IconUserPlus2, { size: 16, stroke: 1.5 }) : /* @__PURE__ */ jsx34(IconUserMinus2, { size: 16, stroke: 1.5 }) }),
2676
+ label: self.action === "join" ? "Join" : "Leave"
2677
+ }
2678
+ ),
2679
+ onAdd && /* @__PURE__ */ jsx34(AddRow, { label: "Add someone", onClick: () => setView("add") })
2680
+ ] }),
2539
2681
  group("All", all),
2540
2682
  group("Important", important)
2541
2683
  ] });
@@ -2543,7 +2685,7 @@ function WhoFollowsDialog({ title, all, important, candidates = [], onAdd, initi
2543
2685
 
2544
2686
  // src/Banner.tsx
2545
2687
  import { IconX as IconX5 } from "@tabler/icons-react";
2546
- import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
2688
+ import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
2547
2689
  var TONE_STYLES = {
2548
2690
  ok: "bg-success-muted text-success-default",
2549
2691
  error: "bg-error-muted text-error-default",
@@ -2553,21 +2695,21 @@ var TONE_STYLES = {
2553
2695
  function Banner({ tone, children, icon, action, onDismiss, dismissLabel = "Dismiss", className }) {
2554
2696
  const role = tone === "error" ? "alert" : "status";
2555
2697
  if (!onDismiss && !icon && !action) {
2556
- return /* @__PURE__ */ jsx34("div", { role, className: cn("px-4 py-2 text-body-2", TONE_STYLES[tone], className), children });
2698
+ return /* @__PURE__ */ jsx35("div", { role, className: cn("px-4 py-2 text-body-2", TONE_STYLES[tone], className), children });
2557
2699
  }
2558
2700
  const oneLine = Boolean(icon || action);
2559
- return /* @__PURE__ */ jsxs26("div", { role, className: cn("flex items-center gap-3 px-4 py-2 text-body-2", TONE_STYLES[tone], className), children: [
2560
- icon && /* @__PURE__ */ jsx34("span", { className: "flex shrink-0", children: icon }),
2561
- /* @__PURE__ */ jsx34("span", { className: cn("min-w-0 flex-1", oneLine && "truncate"), children }),
2562
- action && /* @__PURE__ */ jsx34(Button, { variant: "muted", size: "small", className: "shrink-0", onClick: action.onClick, children: action.label }),
2563
- onDismiss && /* @__PURE__ */ jsx34(IconButton, { variant: "current", "aria-label": dismissLabel, onClick: onDismiss, className: "-mr-1 shrink-0", children: /* @__PURE__ */ jsx34(IconX5, { size: 16, stroke: 1.5 }) })
2701
+ return /* @__PURE__ */ jsxs27("div", { role, className: cn("flex items-center gap-3 px-4 py-2 text-body-2", TONE_STYLES[tone], className), children: [
2702
+ icon && /* @__PURE__ */ jsx35("span", { className: "flex shrink-0", children: icon }),
2703
+ /* @__PURE__ */ jsx35("span", { className: cn("min-w-0 flex-1", oneLine && "truncate"), children }),
2704
+ action && /* @__PURE__ */ jsx35(Button, { variant: "muted", size: "small", className: "shrink-0", onClick: action.onClick, children: action.label }),
2705
+ onDismiss && /* @__PURE__ */ jsx35(IconButton, { variant: "current", "aria-label": dismissLabel, onClick: onDismiss, className: "-mr-1 shrink-0", children: /* @__PURE__ */ jsx35(IconX5, { size: 16, stroke: 1.5 }) })
2564
2706
  ] });
2565
2707
  }
2566
2708
 
2567
2709
  // src/BlockHandle.tsx
2568
2710
  import { useCallback as useCallback2, useEffect as useEffect5, useRef as useRef8, useState as useState10 } from "react";
2569
2711
  import { IconGripVertical } from "@tabler/icons-react";
2570
- import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
2712
+ import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
2571
2713
  function readId(element) {
2572
2714
  const own = element.getAttribute("data-block-id") ?? element.querySelector("[data-block-id]")?.getAttribute("data-block-id");
2573
2715
  return own || void 0;
@@ -2632,7 +2774,7 @@ function BlockHandle({ actions, editing, children, className }) {
2632
2774
  setLine(null);
2633
2775
  editing?.endDrag();
2634
2776
  };
2635
- return /* @__PURE__ */ jsxs27(
2777
+ return /* @__PURE__ */ jsxs28(
2636
2778
  "div",
2637
2779
  {
2638
2780
  ref: frame,
@@ -2660,16 +2802,16 @@ function BlockHandle({ actions, editing, children, className }) {
2660
2802
  if (!frame.current?.contains(e.relatedTarget)) setLine(null);
2661
2803
  },
2662
2804
  children: [
2663
- /* @__PURE__ */ jsx35("div", { ref: content, children }),
2664
- /* @__PURE__ */ jsx35("div", { "aria-hidden": true, className: "absolute inset-y-0 -left-7 w-7" }),
2665
- line !== null && /* @__PURE__ */ jsx35("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-0 h-px bg-accent-primary", style: { top: line } }),
2805
+ /* @__PURE__ */ jsx36("div", { ref: content, children }),
2806
+ /* @__PURE__ */ jsx36("div", { "aria-hidden": true, className: "absolute inset-y-0 -left-7 w-7" }),
2807
+ line !== null && /* @__PURE__ */ jsx36("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-0 h-px bg-accent-primary", style: { top: line } }),
2666
2808
  block && (rows || own) && // The top is the block's, measured: it depends on the document, not on a size of ours.
2667
- /* @__PURE__ */ jsx35("div", { className: cn("absolute -left-7", rows && "cursor-grab active:cursor-grabbing"), style: { top }, children: /* @__PURE__ */ jsxs27(
2809
+ /* @__PURE__ */ jsx36("div", { className: cn("absolute -left-7", rows && "cursor-grab active:cursor-grabbing"), style: { top }, children: /* @__PURE__ */ jsxs28(
2668
2810
  Menu,
2669
2811
  {
2670
2812
  open,
2671
2813
  onOpenChange: setOpen,
2672
- trigger: /* @__PURE__ */ jsx35(
2814
+ trigger: /* @__PURE__ */ jsx36(
2673
2815
  IconButton,
2674
2816
  {
2675
2817
  "aria-label": "Block menu",
@@ -2690,12 +2832,12 @@ function BlockHandle({ actions, editing, children, className }) {
2690
2832
  endDrag();
2691
2833
  setBlock(null);
2692
2834
  },
2693
- children: /* @__PURE__ */ jsx35(IconGripVertical, { size: 16, stroke: 1.5 })
2835
+ children: /* @__PURE__ */ jsx36(IconGripVertical, { size: 16, stroke: 1.5 })
2694
2836
  }
2695
2837
  ),
2696
2838
  children: [
2697
2839
  rows,
2698
- rows && own && /* @__PURE__ */ jsx35(MenuSeparator, {}),
2840
+ rows && own && /* @__PURE__ */ jsx36(MenuSeparator, {}),
2699
2841
  own
2700
2842
  ]
2701
2843
  }
@@ -2720,44 +2862,44 @@ import { Autocomplete } from "@base-ui/react/autocomplete";
2720
2862
  import { IconLoader2 as IconLoader22, IconSearch } from "@tabler/icons-react";
2721
2863
 
2722
2864
  // src/Skeleton.tsx
2723
- import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
2865
+ import { jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
2724
2866
  var SKELETON_SHAPE = { bar: "rounded-sm", round: "rounded-full", control: "rounded-md" };
2725
2867
  function SkeletonBar({ className, style, on = "surface", shape = "bar" }) {
2726
- return /* @__PURE__ */ jsx36("div", { className: cn("animate-pulse", SKELETON_SHAPE[shape], on === "inset" ? "bg-bg-active" : "bg-bg-inset", className), style });
2868
+ return /* @__PURE__ */ jsx37("div", { className: cn("animate-pulse", SKELETON_SHAPE[shape], on === "inset" ? "bg-bg-active" : "bg-bg-inset", className), style });
2727
2869
  }
2728
2870
  var ROW_BAR_WIDTHS = [150, 100, 170, 120, 90, 140, 110, 160];
2729
2871
  function SkeletonRow({ barWidth = 130 }) {
2730
- return /* @__PURE__ */ jsxs28("div", { className: "flex shrink-0 items-center gap-2 px-2 h-[32px] rounded-lg", children: [
2731
- /* @__PURE__ */ jsx36(SkeletonBar, { className: "w-4 h-4 shrink-0" }),
2732
- /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5", style: { width: barWidth } })
2872
+ return /* @__PURE__ */ jsxs29("div", { className: "flex shrink-0 items-center gap-2 px-2 h-[32px] rounded-lg", children: [
2873
+ /* @__PURE__ */ jsx37(SkeletonBar, { className: "w-4 h-4 shrink-0" }),
2874
+ /* @__PURE__ */ jsx37(SkeletonBar, { className: "h-3.5", style: { width: barWidth } })
2733
2875
  ] });
2734
2876
  }
2735
2877
  function SkeletonList({ rows = 8, className }) {
2736
- return /* @__PURE__ */ jsx36("div", { className: cn("flex flex-col gap-0.5 animate-skeleton-in", className), "aria-hidden": true, children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx36(SkeletonRow, { barWidth: ROW_BAR_WIDTHS[i % ROW_BAR_WIDTHS.length] }, i)) });
2878
+ return /* @__PURE__ */ jsx37("div", { className: cn("flex flex-col gap-0.5 animate-skeleton-in", className), "aria-hidden": true, children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx37(SkeletonRow, { barWidth: ROW_BAR_WIDTHS[i % ROW_BAR_WIDTHS.length] }, i)) });
2737
2879
  }
2738
2880
  function SkeletonCard({ secondLine }) {
2739
- return /* @__PURE__ */ jsxs28("div", { className: "rounded-lg px-2 pt-2", children: [
2740
- /* @__PURE__ */ jsxs28("div", { className: "flex w-full items-center gap-2", children: [
2741
- /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-6 w-6 shrink-0" }),
2742
- /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5 w-[110px]" }),
2743
- /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3 w-10" })
2881
+ return /* @__PURE__ */ jsxs29("div", { className: "rounded-lg px-2 pt-2", children: [
2882
+ /* @__PURE__ */ jsxs29("div", { className: "flex w-full items-center gap-2", children: [
2883
+ /* @__PURE__ */ jsx37(SkeletonBar, { className: "h-6 w-6 shrink-0" }),
2884
+ /* @__PURE__ */ jsx37(SkeletonBar, { className: "h-3.5 w-[110px]" }),
2885
+ /* @__PURE__ */ jsx37(SkeletonBar, { className: "h-3 w-10" })
2744
2886
  ] }),
2745
- /* @__PURE__ */ jsxs28("div", { className: "flex flex-col gap-2 pb-2 pl-8 pr-2 pt-2", children: [
2746
- /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5 w-full" }),
2747
- /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5 max-w-full", style: { width: secondLine } })
2887
+ /* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-2 pb-2 pl-8 pr-2 pt-2", children: [
2888
+ /* @__PURE__ */ jsx37(SkeletonBar, { className: "h-3.5 w-full" }),
2889
+ /* @__PURE__ */ jsx37(SkeletonBar, { className: "h-3.5 max-w-full", style: { width: secondLine } })
2748
2890
  ] })
2749
2891
  ] });
2750
2892
  }
2751
2893
  function SkeletonConversation({ className }) {
2752
- return /* @__PURE__ */ jsxs28("div", { className: cn("flex flex-col gap-2 animate-skeleton-in", className), "aria-hidden": true, children: [
2753
- /* @__PURE__ */ jsx36(SkeletonCard, { secondLine: 420 }),
2754
- /* @__PURE__ */ jsx36(SkeletonCard, { secondLine: 300 }),
2755
- /* @__PURE__ */ jsx36(SkeletonCard, { secondLine: 500 })
2894
+ return /* @__PURE__ */ jsxs29("div", { className: cn("flex flex-col gap-2 animate-skeleton-in", className), "aria-hidden": true, children: [
2895
+ /* @__PURE__ */ jsx37(SkeletonCard, { secondLine: 420 }),
2896
+ /* @__PURE__ */ jsx37(SkeletonCard, { secondLine: 300 }),
2897
+ /* @__PURE__ */ jsx37(SkeletonCard, { secondLine: 500 })
2756
2898
  ] });
2757
2899
  }
2758
2900
 
2759
2901
  // src/CommandPalette.tsx
2760
- import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
2902
+ import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
2761
2903
  var PaletteContext = createContext6(null);
2762
2904
  function usePalette(part) {
2763
2905
  const palette = useContext6(PaletteContext);
@@ -2783,9 +2925,9 @@ function CommandPalette({ open, onOpenChange, label, where, modKey = "Ctrl", chi
2783
2925
  return () => cancelAnimationFrame(frame);
2784
2926
  });
2785
2927
  const context = useMemo3(() => ({ where, modKey, popupRef }), [where, modKey]);
2786
- return /* @__PURE__ */ jsx37(Dialog3.Root, { open, onOpenChange: (next) => onOpenChange(next), children: /* @__PURE__ */ jsxs29(Dialog3.Portal, { children: [
2787
- /* @__PURE__ */ jsx37(Dialog3.Backdrop, { className: "fixed inset-0 z-40 bg-scrim" }),
2788
- /* @__PURE__ */ jsx37(Dialog3.Viewport, { className: "fixed inset-0 z-50 flex items-start justify-center pt-[16vh]", children: /* @__PURE__ */ jsx37(
2928
+ return /* @__PURE__ */ jsx38(Dialog3.Root, { open, onOpenChange: (next) => onOpenChange(next), children: /* @__PURE__ */ jsxs30(Dialog3.Portal, { children: [
2929
+ /* @__PURE__ */ jsx38(Dialog3.Backdrop, { className: "fixed inset-0 z-40 bg-scrim" }),
2930
+ /* @__PURE__ */ jsx38(Dialog3.Viewport, { className: "fixed inset-0 z-50 flex items-start justify-center pt-[16vh]", children: /* @__PURE__ */ jsx38(
2789
2931
  Dialog3.Popup,
2790
2932
  {
2791
2933
  ref: popupRef,
@@ -2795,13 +2937,13 @@ function CommandPalette({ open, onOpenChange, label, where, modKey = "Ctrl", chi
2795
2937
  if (e.target === popupRef.current) firstControl(popupRef.current)?.focus();
2796
2938
  },
2797
2939
  className: "flex w-[658px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-lg border border-border-default bg-bg-elevated shadow-lg outline-none",
2798
- children: /* @__PURE__ */ jsx37(PaletteContext.Provider, { value: context, children })
2940
+ children: /* @__PURE__ */ jsx38(PaletteContext.Provider, { value: context, children })
2799
2941
  }
2800
2942
  ) })
2801
2943
  ] }) });
2802
2944
  }
2803
2945
  function LevelChip({ chip, onBack }) {
2804
- return /* @__PURE__ */ jsx37(InputChip, { label: chip.label, leading: chip.leading, onRemove: onBack, removeLabel: `Leave ${chip.label}`, truncate: true, className: "max-w-[272px] shrink-0" });
2946
+ return /* @__PURE__ */ jsx38(InputChip, { label: chip.label, leading: chip.leading, onRemove: onBack, removeLabel: `Leave ${chip.label}`, truncate: true, className: "max-w-[272px] shrink-0" });
2805
2947
  }
2806
2948
  function useBack(chip, popupRef) {
2807
2949
  return () => {
@@ -2812,10 +2954,10 @@ function useBack(chip, popupRef) {
2812
2954
  }
2813
2955
  function Footer({ keys }) {
2814
2956
  const { where } = usePalette("The footer");
2815
- return /* @__PURE__ */ jsxs29("div", { className: cn("flex h-9 shrink-0 items-center gap-4 border-t border-border-subtle px-5", MONO_CAPTION_CLASSES, "signal:text-text-muted leaf:font-mono leaf:text-small"), children: [
2816
- /* @__PURE__ */ jsx37("span", { className: "min-w-0 flex-1 truncate", children: where }),
2817
- keys.map(([key, word]) => /* @__PURE__ */ jsxs29("span", { className: "flex shrink-0 items-center gap-1.5", children: [
2818
- /* @__PURE__ */ jsx37(Kbd, { children: key }),
2957
+ return /* @__PURE__ */ jsxs30("div", { className: cn("flex h-9 shrink-0 items-center gap-4 border-t border-border-subtle px-5", MONO_CAPTION_CLASSES, "signal:text-text-muted leaf:font-mono leaf:text-small"), children: [
2958
+ /* @__PURE__ */ jsx38("span", { className: "min-w-0 flex-1 truncate", children: where }),
2959
+ keys.map(([key, word]) => /* @__PURE__ */ jsxs30("span", { className: "flex shrink-0 items-center gap-1.5", children: [
2960
+ /* @__PURE__ */ jsx38(Kbd, { children: key }),
2819
2961
  " ",
2820
2962
  word
2821
2963
  ] }, key))
@@ -2892,7 +3034,7 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2892
3034
  ...chip && query === "" ? [["Backspace", "back"]] : [],
2893
3035
  ["Esc", "close"]
2894
3036
  ];
2895
- return /* @__PURE__ */ jsxs29(
3037
+ return /* @__PURE__ */ jsxs30(
2896
3038
  Autocomplete.Root,
2897
3039
  {
2898
3040
  items,
@@ -2915,10 +3057,10 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2915
3057
  setLitId(id);
2916
3058
  },
2917
3059
  children: [
2918
- /* @__PURE__ */ jsxs29("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
2919
- /* @__PURE__ */ jsx37(IconSearch, { size: 16, stroke: 1.5, className: "shrink-0 text-text-secondary" }),
2920
- chip && /* @__PURE__ */ jsx37(LevelChip, { chip, onBack: back }),
2921
- /* @__PURE__ */ jsx37(
3060
+ /* @__PURE__ */ jsxs30("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
3061
+ /* @__PURE__ */ jsx38(IconSearch, { size: 16, stroke: 1.5, className: "shrink-0 text-text-secondary" }),
3062
+ chip && /* @__PURE__ */ jsx38(LevelChip, { chip, onBack: back }),
3063
+ /* @__PURE__ */ jsx38(
2922
3064
  Autocomplete.Input,
2923
3065
  {
2924
3066
  ref: inputRef,
@@ -2930,44 +3072,44 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2930
3072
  }
2931
3073
  )
2932
3074
  ] }),
2933
- /* @__PURE__ */ jsxs29(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col p-2", children: [
2934
- children != null && /* @__PURE__ */ jsx37("div", { className: "flex flex-col gap-2 px-3 pb-2 pt-3", children }),
2935
- /* @__PURE__ */ jsx37(Autocomplete.List, { className: "flex flex-col", children: (group) => /* @__PURE__ */ jsxs29(Autocomplete.Group, { items: group.items, className: "flex flex-col gap-0.5", children: [
2936
- /* @__PURE__ */ jsx37(Autocomplete.GroupLabel, { className: "flex h-7 shrink-0 items-center px-3", children: /* @__PURE__ */ jsx37(SectionLabel, { tone: "secondary", children: group.value }) }),
2937
- /* @__PURE__ */ jsx37(Autocomplete.Collection, { children: (row) => (
3075
+ /* @__PURE__ */ jsxs30(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col p-2", children: [
3076
+ children != null && /* @__PURE__ */ jsx38("div", { className: "flex flex-col gap-2 px-3 pb-2 pt-3", children }),
3077
+ /* @__PURE__ */ jsx38(Autocomplete.List, { className: "flex flex-col", children: (group) => /* @__PURE__ */ jsxs30(Autocomplete.Group, { items: group.items, className: "flex flex-col gap-0.5", children: [
3078
+ /* @__PURE__ */ jsx38(Autocomplete.GroupLabel, { className: "flex h-7 shrink-0 items-center px-3", children: /* @__PURE__ */ jsx38(SectionLabel, { tone: "secondary", children: group.value }) }),
3079
+ /* @__PURE__ */ jsx38(Autocomplete.Collection, { children: (row) => (
2938
3080
  /* The menu row, as the list's own option — the way Select
2939
3081
  puts it on `Select.Item`. One row, two parts. */
2940
- /* @__PURE__ */ jsx37(Autocomplete.Item, { value: row, onClick: () => row.onSelect(), className: menuItemClassName({ size: "tall" }), children: /* @__PURE__ */ jsx37(
3082
+ /* @__PURE__ */ jsx38(Autocomplete.Item, { value: row, onClick: () => row.onSelect(), className: menuItemClassName({ size: "tall" }), children: /* @__PURE__ */ jsx38(
2941
3083
  MenuItemBody,
2942
3084
  {
2943
3085
  size: "tall",
2944
3086
  label: row.label,
2945
3087
  description: row.description,
2946
3088
  aside: row.aside,
2947
- leading: /* @__PURE__ */ jsx37(RowLeading, { row }),
3089
+ leading: /* @__PURE__ */ jsx38(RowLeading, { row }),
2948
3090
  submenu: !!row.onGoIn,
2949
- hint: row.onGoIn ? /* @__PURE__ */ jsx37(Kbd, { children: "Tab" }) : /* @__PURE__ */ jsx37(EnterHint, {})
3091
+ hint: row.onGoIn ? /* @__PURE__ */ jsx38(Kbd, { children: "Tab" }) : /* @__PURE__ */ jsx38(EnterHint, {})
2950
3092
  }
2951
3093
  ) }, row.id)
2952
3094
  ) })
2953
3095
  ] }, group.value) }),
2954
- /* @__PURE__ */ jsx37(Autocomplete.Status, { className: "flex items-center gap-2 px-3 [&:not(:empty)]:h-8", children: pending && /* @__PURE__ */ jsxs29(Fragment8, { children: [
2955
- /* @__PURE__ */ jsx37(IconLoader22, { size: 12, stroke: 1.5, className: "shrink-0 animate-spin text-text-muted" }),
2956
- /* @__PURE__ */ jsx37("span", { className: "text-caption text-text-muted", children: pending })
3096
+ /* @__PURE__ */ jsx38(Autocomplete.Status, { className: "flex items-center gap-2 px-3 [&:not(:empty)]:h-8", children: pending && /* @__PURE__ */ jsxs30(Fragment9, { children: [
3097
+ /* @__PURE__ */ jsx38(IconLoader22, { size: 12, stroke: 1.5, className: "shrink-0 animate-spin text-text-muted" }),
3098
+ /* @__PURE__ */ jsx38("span", { className: "text-caption text-text-muted", children: pending })
2957
3099
  ] }) }),
2958
- notes.map((note) => /* @__PURE__ */ jsx37("div", { className: "flex min-h-8 items-center px-3", children: /* @__PURE__ */ jsx37(FieldLine, { children: note }) }, note)),
2959
- /* @__PURE__ */ jsx37(Autocomplete.Empty, { className: "flex items-center px-3 [&:not(:empty)]:min-h-10", children: empty && /* @__PURE__ */ jsx37(EmptyState, { scope: "section", message: empty }) })
3100
+ notes.map((note) => /* @__PURE__ */ jsx38("div", { className: "flex min-h-8 items-center px-3", children: /* @__PURE__ */ jsx38(FieldLine, { children: note }) }, note)),
3101
+ /* @__PURE__ */ jsx38(Autocomplete.Empty, { className: "flex items-center px-3 [&:not(:empty)]:min-h-10", children: empty && /* @__PURE__ */ jsx38(EmptyState, { scope: "section", message: empty }) })
2960
3102
  ] }),
2961
- /* @__PURE__ */ jsx37(Footer, { keys })
3103
+ /* @__PURE__ */ jsx38(Footer, { keys })
2962
3104
  ]
2963
3105
  }
2964
3106
  );
2965
3107
  }
2966
3108
  function RowLeading({ row }) {
2967
3109
  if (row.icon != null) {
2968
- return /* @__PURE__ */ jsx37("span", { className: "flex size-8 items-center justify-center rounded-sm bg-bg-inset text-text-secondary", children: row.icon });
3110
+ return /* @__PURE__ */ jsx38("span", { className: "flex size-8 items-center justify-center rounded-sm bg-bg-inset text-text-secondary", children: row.icon });
2969
3111
  }
2970
- return /* @__PURE__ */ jsx37("span", { className: "flex size-8 items-center justify-center", children: row.leading });
3112
+ return /* @__PURE__ */ jsx38("span", { className: "flex size-8 items-center justify-center", children: row.leading });
2971
3113
  }
2972
3114
  var TEXT_TYPES = /* @__PURE__ */ new Set(["", "text", "search", "email", "url", "tel", "password", "number"]);
2973
3115
  function isTextField(el) {
@@ -3009,65 +3151,65 @@ function CommandPaletteForm({ chip, icon, submitLabel, onSubmit, submitWaits, wo
3009
3151
  ...backNamed ? [["Backspace", "back"]] : [],
3010
3152
  ["Esc", "close"]
3011
3153
  ];
3012
- return /* @__PURE__ */ jsxs29("div", { ref: frameRef, tabIndex: -1, onKeyDown, onFocus: measure, onBlur: measure, onInput: measure, className: "flex min-h-0 flex-col outline-none", children: [
3013
- /* @__PURE__ */ jsxs29("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
3014
- icon != null && /* @__PURE__ */ jsx37("span", { className: "flex shrink-0 items-center text-text-secondary", children: icon }),
3015
- /* @__PURE__ */ jsx37(LevelChip, { chip, onBack: back })
3154
+ return /* @__PURE__ */ jsxs30("div", { ref: frameRef, tabIndex: -1, onKeyDown, onFocus: measure, onBlur: measure, onInput: measure, className: "flex min-h-0 flex-col outline-none", children: [
3155
+ /* @__PURE__ */ jsxs30("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
3156
+ icon != null && /* @__PURE__ */ jsx38("span", { className: "flex shrink-0 items-center text-text-secondary", children: icon }),
3157
+ /* @__PURE__ */ jsx38(LevelChip, { chip, onBack: back })
3016
3158
  ] }),
3017
- /* @__PURE__ */ jsxs29(Form, { "data-command-palette-fields": "", busy, enterSends: false, onSubmit: submit, layout: "free", className: "flex min-h-0 flex-col", children: [
3018
- /* @__PURE__ */ jsx37(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col px-5 py-4", children: /* @__PURE__ */ jsx37("div", { className: FIELDS_CLASSES, children }) }),
3019
- /* @__PURE__ */ jsxs29("div", { className: "flex shrink-0 items-center gap-3 px-5 pb-4", children: [
3020
- /* @__PURE__ */ jsx37("div", { className: "min-w-0 flex-1", children: working ? /* @__PURE__ */ jsx37(FieldLine, { children: working.line }) : error ? /* @__PURE__ */ jsx37(FieldLine, { tone: "error", children: error }) : null }),
3021
- /* @__PURE__ */ jsx37(
3159
+ /* @__PURE__ */ jsxs30(Form, { "data-command-palette-fields": "", busy, enterSends: false, onSubmit: submit, layout: "free", className: "flex min-h-0 flex-col", children: [
3160
+ /* @__PURE__ */ jsx38(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col px-5 py-4", children: /* @__PURE__ */ jsx38("div", { className: FIELDS_CLASSES, children }) }),
3161
+ /* @__PURE__ */ jsxs30("div", { className: "flex shrink-0 items-center gap-3 px-5 pb-4", children: [
3162
+ /* @__PURE__ */ jsx38("div", { className: "min-w-0 flex-1", children: working ? /* @__PURE__ */ jsx38(FieldLine, { children: working.line }) : error ? /* @__PURE__ */ jsx38(FieldLine, { tone: "error", children: error }) : null }),
3163
+ /* @__PURE__ */ jsx38(
3022
3164
  Button,
3023
3165
  {
3024
3166
  type: "submit",
3025
3167
  variant: "primary",
3026
3168
  disabled: busy,
3027
3169
  disabledReason: busy ? void 0 : submitWaits,
3028
- leadingIcon: busy ? /* @__PURE__ */ jsx37(IconLoader22, { size: 16, stroke: 1.5, className: "animate-spin" }) : void 0,
3170
+ leadingIcon: busy ? /* @__PURE__ */ jsx38(IconLoader22, { size: 16, stroke: 1.5, className: "animate-spin" }) : void 0,
3029
3171
  children: working ? working.button : submitLabel
3030
3172
  }
3031
3173
  )
3032
3174
  ] })
3033
3175
  ] }),
3034
- /* @__PURE__ */ jsx37(Footer, { keys })
3176
+ /* @__PURE__ */ jsx38(Footer, { keys })
3035
3177
  ] });
3036
3178
  }
3037
3179
  var BAR_WIDTHS = ["w-4/5", "w-3/5", "w-2/3"];
3038
3180
  function CommandPaletteWorking({ children, bars = 2 }) {
3039
- return /* @__PURE__ */ jsxs29("div", { role: "status", className: "flex flex-col gap-2", children: [
3040
- /* @__PURE__ */ jsxs29("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
3041
- /* @__PURE__ */ jsx37(IconLoader22, { size: 14, stroke: 1.5, className: "shrink-0 animate-spin" }),
3181
+ return /* @__PURE__ */ jsxs30("div", { role: "status", className: "flex flex-col gap-2", children: [
3182
+ /* @__PURE__ */ jsxs30("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
3183
+ /* @__PURE__ */ jsx38(IconLoader22, { size: 14, stroke: 1.5, className: "shrink-0 animate-spin" }),
3042
3184
  children
3043
3185
  ] }),
3044
- BAR_WIDTHS.slice(0, bars).map((width) => /* @__PURE__ */ jsx37(SkeletonBar, { className: cn("h-3", width) }, width))
3186
+ BAR_WIDTHS.slice(0, bars).map((width) => /* @__PURE__ */ jsx38(SkeletonBar, { className: cn("h-3", width) }, width))
3045
3187
  ] });
3046
3188
  }
3047
3189
  function CommandPaletteAnswer({ children, note }) {
3048
3190
  const paragraphs = children.split(/\n\s*\n/).filter((p) => p.trim() !== "");
3049
- return /* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-2", children: [
3050
- paragraphs.map((paragraph, i) => /* @__PURE__ */ jsx37("p", { className: "whitespace-pre-wrap text-body-2 text-text-primary", children: paragraph.split(/\s*(\[\d+\])/).map(
3051
- (part, j) => /^\[\d+\]$/.test(part) ? /* @__PURE__ */ jsx37("sup", { className: "ml-0.5 font-mono text-small text-accent-text", children: part.slice(1, -1) }, j) : part
3191
+ return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-2", children: [
3192
+ paragraphs.map((paragraph, i) => /* @__PURE__ */ jsx38("p", { className: "whitespace-pre-wrap text-body-2 text-text-primary", children: paragraph.split(/\s*(\[\d+\])/).map(
3193
+ (part, j) => /^\[\d+\]$/.test(part) ? /* @__PURE__ */ jsx38("sup", { className: "ml-0.5 font-mono text-small text-accent-text", children: part.slice(1, -1) }, j) : part
3052
3194
  ) }, i)),
3053
- note && /* @__PURE__ */ jsx37(FieldLine, { children: note })
3195
+ note && /* @__PURE__ */ jsx38(FieldLine, { children: note })
3054
3196
  ] });
3055
3197
  }
3056
3198
  function CommandPaletteQuote({ children }) {
3057
- return /* @__PURE__ */ jsx37("p", { className: "whitespace-pre-wrap border-l-2 border-border-default pl-3 text-body-2 text-text-primary", children });
3199
+ return /* @__PURE__ */ jsx38("p", { className: "whitespace-pre-wrap border-l-2 border-border-default pl-3 text-body-2 text-text-primary", children });
3058
3200
  }
3059
3201
  function CommandPaletteProposal({ source, mark, children }) {
3060
- return /* @__PURE__ */ jsxs29(Card, { fill: "surface", className: "flex flex-col gap-1 p-3", children: [
3061
- /* @__PURE__ */ jsxs29("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
3202
+ return /* @__PURE__ */ jsxs30(Card, { fill: "surface", className: "flex flex-col gap-1 p-3", children: [
3203
+ /* @__PURE__ */ jsxs30("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
3062
3204
  mark,
3063
3205
  source
3064
3206
  ] }),
3065
- /* @__PURE__ */ jsx37("span", { className: "text-body-2 text-text-primary", children })
3207
+ /* @__PURE__ */ jsx38("span", { className: "text-body-2 text-text-primary", children })
3066
3208
  ] });
3067
3209
  }
3068
3210
 
3069
3211
  // src/InlineChip.tsx
3070
- import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
3212
+ import { Fragment as Fragment10, jsx as jsx39, jsxs as jsxs31 } from "react/jsx-runtime";
3071
3213
  var INLINE_CHIP_CLASSES = "inline-flex h-[1.4em] items-baseline gap-1 rounded-sm px-1 mx-0.5 align-baseline text-body-2 font-normal select-none [&>:is(svg,img,:empty)]:self-center [&>:has(svg,img)]:self-center";
3072
3214
  var INLINE_CHIP_TONE_CLASSES = {
3073
3215
  /** A thing or a place — anything that is not a person. */
@@ -3093,19 +3235,19 @@ function inlineChipClassName(tone, className) {
3093
3235
  }
3094
3236
  function InlineChip({ tone = "neutral", icon, href, className, children, ...props }) {
3095
3237
  const inApp = useInAppClick(href, props.onClick);
3096
- const body = /* @__PURE__ */ jsxs30(Fragment9, { children: [
3097
- icon && /* @__PURE__ */ jsx38("span", { className: "flex size-4 shrink-0 items-center justify-center self-center text-text-secondary", children: icon }),
3238
+ const body = /* @__PURE__ */ jsxs31(Fragment10, { children: [
3239
+ icon && /* @__PURE__ */ jsx39("span", { className: "flex size-4 shrink-0 items-center justify-center self-center text-text-secondary", children: icon }),
3098
3240
  children
3099
3241
  ] });
3100
3242
  const classes = inlineChipClassName(tone, className);
3101
3243
  if (href === void 0) {
3102
- return /* @__PURE__ */ jsx38("span", { className: classes, ...props, children: body });
3244
+ return /* @__PURE__ */ jsx39("span", { className: classes, ...props, children: body });
3103
3245
  }
3104
- return /* @__PURE__ */ jsx38("a", { href, className: classes, ...props, onClick: inApp, children: body });
3246
+ return /* @__PURE__ */ jsx39("a", { href, className: classes, ...props, onClick: inApp, children: body });
3105
3247
  }
3106
3248
 
3107
3249
  // src/RichText.tsx
3108
- import { Fragment as Fragment10 } from "react";
3250
+ import { Fragment as Fragment11 } from "react";
3109
3251
 
3110
3252
  // src/codeColours.ts
3111
3253
  import { createElement } from "react";
@@ -3124,7 +3266,7 @@ function codeColours(text, language) {
3124
3266
  }
3125
3267
 
3126
3268
  // src/RichText.tsx
3127
- import { Fragment as Fragment11, jsx as jsx39, jsxs as jsxs31 } from "react/jsx-runtime";
3269
+ import { Fragment as Fragment12, jsx as jsx40, jsxs as jsxs32 } from "react/jsx-runtime";
3128
3270
  var RICH_TEXT_CLASSES = {
3129
3271
  /* Blocks 8px apart (Katerina, 9 October; 4 before). A list's own items stay together. */
3130
3272
  base: "flex flex-col gap-2 break-words text-text-secondary",
@@ -3175,19 +3317,19 @@ function textWithLinks(text, renderText) {
3175
3317
  return parts.map((part, i) => {
3176
3318
  const written = part.match(WRITTEN_LINK);
3177
3319
  if (written) {
3178
- return /* @__PURE__ */ jsx39("span", { className: "break-words", children: /* @__PURE__ */ jsx39(Link, { href: written[2], external: true, onClick: keepToLink, children: written[1] }) }, i);
3320
+ return /* @__PURE__ */ jsx40("span", { className: "break-words", children: /* @__PURE__ */ jsx40(Link, { href: written[2], external: true, onClick: keepToLink, children: written[1] }) }, i);
3179
3321
  }
3180
3322
  const bare = i % 2 === 1 ? part.match(BARE_LINK) : null;
3181
3323
  if (bare) {
3182
3324
  return (
3183
3325
  // An address has no spaces to wrap at, so it may break anywhere.
3184
- /* @__PURE__ */ jsxs31("span", { className: "break-all", children: [
3185
- /* @__PURE__ */ jsx39(Link, { href: bare[1], external: true, onClick: keepToLink, children: bare[1] }),
3326
+ /* @__PURE__ */ jsxs32("span", { className: "break-all", children: [
3327
+ /* @__PURE__ */ jsx40(Link, { href: bare[1], external: true, onClick: keepToLink, children: bare[1] }),
3186
3328
  bare[2]
3187
3329
  ] }, i)
3188
3330
  );
3189
3331
  }
3190
- return part ? /* @__PURE__ */ jsx39("span", { children: renderText(part) }, i) : null;
3332
+ return part ? /* @__PURE__ */ jsx40("span", { children: renderText(part) }, i) : null;
3191
3333
  });
3192
3334
  }
3193
3335
  var CALLOUT_TONES = /* @__PURE__ */ new Set(["note", "tip", "important", "warning", "caution"]);
@@ -3196,19 +3338,19 @@ function calloutLook(tone) {
3196
3338
  return CALLOUT_TONES.has(named2) ? named2 : "note";
3197
3339
  }
3198
3340
  function Runs({ runs, draw: draw2 }) {
3199
- return /* @__PURE__ */ jsx39(Fragment11, { children: (runs ?? []).map((run, i) => {
3200
- if (run.reference) return /* @__PURE__ */ jsx39("span", { children: draw2.renderReference(run.reference, run) }, i);
3341
+ return /* @__PURE__ */ jsx40(Fragment12, { children: (runs ?? []).map((run, i) => {
3342
+ if (run.reference) return /* @__PURE__ */ jsx40("span", { children: draw2.renderReference(run.reference, run) }, i);
3201
3343
  if (run.marks.includes("code")) {
3202
- return /* @__PURE__ */ jsx39("code", { children: run.text }, i);
3344
+ return /* @__PURE__ */ jsx40("code", { children: run.text }, i);
3203
3345
  }
3204
- let node = run.text.split("\n").map((line, j) => /* @__PURE__ */ jsxs31("span", { children: [
3205
- j > 0 && /* @__PURE__ */ jsx39("br", {}),
3346
+ let node = run.text.split("\n").map((line, j) => /* @__PURE__ */ jsxs32("span", { children: [
3347
+ j > 0 && /* @__PURE__ */ jsx40("br", {}),
3206
3348
  textWithLinks(line, draw2.renderText)
3207
3349
  ] }, j));
3208
- if (run.marks.includes("underline")) node = /* @__PURE__ */ jsx39("u", { children: node });
3209
- if (run.marks.includes("italic")) node = /* @__PURE__ */ jsx39("em", { children: node });
3210
- if (run.marks.includes("bold")) node = /* @__PURE__ */ jsx39("strong", { children: node });
3211
- return /* @__PURE__ */ jsx39("span", { children: node }, i);
3350
+ if (run.marks.includes("underline")) node = /* @__PURE__ */ jsx40("u", { children: node });
3351
+ if (run.marks.includes("italic")) node = /* @__PURE__ */ jsx40("em", { children: node });
3352
+ if (run.marks.includes("bold")) node = /* @__PURE__ */ jsx40("strong", { children: node });
3353
+ return /* @__PURE__ */ jsx40("span", { children: node }, i);
3212
3354
  }) });
3213
3355
  }
3214
3356
  var named = (block) => block.typeName ?? block.type;
@@ -3219,18 +3361,18 @@ function Table({ block, draw: draw2 }) {
3219
3361
  const header = named(cell) === "tableHeader";
3220
3362
  const Cell = header ? "th" : "td";
3221
3363
  const { colspan, rowspan } = cell.attrs ?? {};
3222
- return /* @__PURE__ */ jsxs31(
3364
+ return /* @__PURE__ */ jsxs32(
3223
3365
  Cell,
3224
3366
  {
3225
3367
  "data-block-id": cell.id,
3226
3368
  colSpan: colspan && colspan > 1 ? colspan : void 0,
3227
3369
  rowSpan: rowspan && rowspan > 1 ? rowspan : void 0,
3228
3370
  children: [
3229
- (cell.children ?? []).map((child, j) => /* @__PURE__ */ jsxs31(Fragment10, { children: [
3230
- /* @__PURE__ */ jsx39(Runs, { runs: child.inline, draw: draw2 }),
3371
+ (cell.children ?? []).map((child, j) => /* @__PURE__ */ jsxs32(Fragment11, { children: [
3372
+ /* @__PURE__ */ jsx40(Runs, { runs: child.inline, draw: draw2 }),
3231
3373
  draw2.renderAfter?.(child)
3232
3374
  ] }, j)),
3233
- /* @__PURE__ */ jsx39(Runs, { runs: cell.inline, draw: draw2 }),
3375
+ /* @__PURE__ */ jsx40(Runs, { runs: cell.inline, draw: draw2 }),
3234
3376
  draw2.renderAfter?.(cell)
3235
3377
  ]
3236
3378
  },
@@ -3239,16 +3381,16 @@ function Table({ block, draw: draw2 }) {
3239
3381
  });
3240
3382
  const first = rows[0].children ?? [];
3241
3383
  const headerRow = first.length > 0 && first.every((cell) => named(cell) === "tableHeader");
3242
- return /* @__PURE__ */ jsxs31("table", { "data-block-id": block.id, children: [
3243
- headerRow && /* @__PURE__ */ jsx39("thead", { children: /* @__PURE__ */ jsx39("tr", { "data-block-id": rows[0].id, children: cells(rows[0]) }) }),
3244
- /* @__PURE__ */ jsx39("tbody", { children: (headerRow ? rows.slice(1) : rows).map((row, i) => /* @__PURE__ */ jsx39("tr", { "data-block-id": row.id, children: cells(row) }, row.id ?? i)) })
3384
+ return /* @__PURE__ */ jsxs32("table", { "data-block-id": block.id, children: [
3385
+ headerRow && /* @__PURE__ */ jsx40("thead", { children: /* @__PURE__ */ jsx40("tr", { "data-block-id": rows[0].id, children: cells(rows[0]) }) }),
3386
+ /* @__PURE__ */ jsx40("tbody", { children: (headerRow ? rows.slice(1) : rows).map((row, i) => /* @__PURE__ */ jsx40("tr", { "data-block-id": row.id, children: cells(row) }, row.id ?? i)) })
3245
3387
  ] });
3246
3388
  }
3247
3389
  var wordsOf = (item) => (item.inline ?? []).map((run) => run.text).join("").trim();
3248
3390
  function ListItem({ item, draw: draw2, below }) {
3249
3391
  if (typeof item.checked !== "boolean") {
3250
- return /* @__PURE__ */ jsxs31("li", { "data-block-id": item.id, children: [
3251
- /* @__PURE__ */ jsx39(Runs, { runs: item.inline, draw: draw2 }),
3392
+ return /* @__PURE__ */ jsxs32("li", { "data-block-id": item.id, children: [
3393
+ /* @__PURE__ */ jsx40(Runs, { runs: item.inline, draw: draw2 }),
3252
3394
  draw2.renderAfter?.(item),
3253
3395
  below
3254
3396
  ] });
@@ -3257,10 +3399,10 @@ function ListItem({ item, draw: draw2, below }) {
3257
3399
  const id = item.id;
3258
3400
  const name = wordsOf(item) || "Item";
3259
3401
  const control = onTick && id ? (next) => onTick(id, next) : void 0;
3260
- return /* @__PURE__ */ jsxs31("li", { "data-block-id": id, "data-checked": String(item.checked), children: [
3261
- /* @__PURE__ */ jsx39("span", { "data-checklist-box": "", ...control ? {} : { role: "checkbox", "aria-checked": item.checked, "aria-readonly": true, "aria-label": name }, children: /* @__PURE__ */ jsx39(Checkbox, { checked: item.checked, onChange: control, "aria-label": name }) }),
3262
- /* @__PURE__ */ jsxs31("div", { children: [
3263
- /* @__PURE__ */ jsx39("p", { children: /* @__PURE__ */ jsx39(Runs, { runs: item.inline, draw: draw2 }) }),
3402
+ return /* @__PURE__ */ jsxs32("li", { "data-block-id": id, "data-checked": String(item.checked), children: [
3403
+ /* @__PURE__ */ jsx40("span", { "data-checklist-box": "", ...control ? {} : { role: "checkbox", "aria-checked": item.checked, "aria-readonly": true, "aria-label": name }, children: /* @__PURE__ */ jsx40(Checkbox, { checked: item.checked, onChange: control, "aria-label": name }) }),
3404
+ /* @__PURE__ */ jsxs32("div", { children: [
3405
+ /* @__PURE__ */ jsx40("p", { children: /* @__PURE__ */ jsx40(Runs, { runs: item.inline, draw: draw2 }) }),
3264
3406
  draw2.renderAfter?.(item),
3265
3407
  below
3266
3408
  ] })
@@ -3287,51 +3429,51 @@ function Block({ block, draw: draw2 }) {
3287
3429
  const lineOfWords = block.type === "paragraph" || block.type === "heading" || block.type === "blockquote";
3288
3430
  const after = lineOfWords ? draw2.renderAfter?.(block) : void 0;
3289
3431
  if (after === void 0 || after === null || after === false) return drawn;
3290
- return /* @__PURE__ */ jsxs31(Fragment11, { children: [
3432
+ return /* @__PURE__ */ jsxs32(Fragment12, { children: [
3291
3433
  drawn,
3292
3434
  after
3293
3435
  ] });
3294
3436
  }
3295
3437
  function Drawn({ block, draw: draw2 }) {
3296
- const runs = /* @__PURE__ */ jsx39(Runs, { runs: block.inline, draw: draw2 });
3438
+ const runs = /* @__PURE__ */ jsx40(Runs, { runs: block.inline, draw: draw2 });
3297
3439
  switch (block.type) {
3298
3440
  case "heading": {
3299
- if (block.level === 1) return /* @__PURE__ */ jsx39("h1", { "data-block-id": block.id, children: runs });
3300
- if (block.level === 3) return /* @__PURE__ */ jsx39("h3", { "data-block-id": block.id, children: runs });
3301
- return /* @__PURE__ */ jsx39("h2", { "data-block-id": block.id, children: runs });
3441
+ if (block.level === 1) return /* @__PURE__ */ jsx40("h1", { "data-block-id": block.id, children: runs });
3442
+ if (block.level === 3) return /* @__PURE__ */ jsx40("h3", { "data-block-id": block.id, children: runs });
3443
+ return /* @__PURE__ */ jsx40("h2", { "data-block-id": block.id, children: runs });
3302
3444
  }
3303
3445
  case "paragraph":
3304
- return /* @__PURE__ */ jsx39("p", { "data-block-id": block.id, children: runs });
3446
+ return /* @__PURE__ */ jsx40("p", { "data-block-id": block.id, children: runs });
3305
3447
  case "bulletList":
3306
3448
  case "orderedList": {
3307
3449
  const ordered = block.type === "orderedList";
3308
- const items = (nodes) => nodes.map(({ item, key, below }) => /* @__PURE__ */ jsx39(
3450
+ const items = (nodes) => nodes.map(({ item, key, below }) => /* @__PURE__ */ jsx40(
3309
3451
  ListItem,
3310
3452
  {
3311
3453
  item,
3312
3454
  draw: draw2,
3313
- below: below.length > 0 && (ordered ? /* @__PURE__ */ jsx39("ol", { children: items(below) }) : /* @__PURE__ */ jsx39("ul", { children: items(below) }))
3455
+ below: below.length > 0 && (ordered ? /* @__PURE__ */ jsx40("ol", { children: items(below) }) : /* @__PURE__ */ jsx40("ul", { children: items(below) }))
3314
3456
  },
3315
3457
  item.id ?? key
3316
3458
  ));
3317
3459
  const top = items(nestItems(block.children ?? []));
3318
- return ordered ? /* @__PURE__ */ jsx39("ol", { "data-block-id": block.id, start: block.start, children: top }) : /* @__PURE__ */ jsx39("ul", { "data-block-id": block.id, children: top });
3460
+ return ordered ? /* @__PURE__ */ jsx40("ol", { "data-block-id": block.id, start: block.start, children: top }) : /* @__PURE__ */ jsx40("ul", { "data-block-id": block.id, children: top });
3319
3461
  }
3320
3462
  case "blockquote":
3321
- return /* @__PURE__ */ jsx39("blockquote", { "data-block-id": block.id, "data-tone": block.tone, "data-callout": typeof block.tone === "string" ? calloutLook(block.tone) : void 0, children: runs });
3463
+ return /* @__PURE__ */ jsx40("blockquote", { "data-block-id": block.id, "data-tone": block.tone, "data-callout": typeof block.tone === "string" ? calloutLook(block.tone) : void 0, children: runs });
3322
3464
  case "codeBlock":
3323
- return /* @__PURE__ */ jsx39("pre", { "data-block-id": block.id, "data-language": block.language, children: /* @__PURE__ */ jsx39("code", { children: codeColours((block.inline ?? []).map((run) => run.text).join(""), block.language) }) });
3465
+ return /* @__PURE__ */ jsx40("pre", { "data-block-id": block.id, "data-language": block.language, children: /* @__PURE__ */ jsx40("code", { children: codeColours((block.inline ?? []).map((run) => run.text).join(""), block.language) }) });
3324
3466
  case "horizontalRule":
3325
- return /* @__PURE__ */ jsx39("hr", { "data-block-id": block.id });
3467
+ return /* @__PURE__ */ jsx40("hr", { "data-block-id": block.id });
3326
3468
  case "table": {
3327
- const table = /* @__PURE__ */ jsx39(Table, { block, draw: draw2 });
3469
+ const table = /* @__PURE__ */ jsx40(Table, { block, draw: draw2 });
3328
3470
  if ((block.children ?? []).some((row) => named(row) === "tableRow")) return table;
3329
3471
  break;
3330
3472
  }
3331
3473
  }
3332
- return /* @__PURE__ */ jsxs31("div", { "data-block-id": block.id, "data-block-type": named(block), children: [
3474
+ return /* @__PURE__ */ jsxs32("div", { "data-block-id": block.id, "data-block-type": named(block), children: [
3333
3475
  runs,
3334
- (block.children ?? []).map((child, i) => /* @__PURE__ */ jsx39(Block, { block: child, draw: draw2 }, child.id ?? i))
3476
+ (block.children ?? []).map((child, i) => /* @__PURE__ */ jsx40(Block, { block: child, draw: draw2 }, child.id ?? i))
3335
3477
  ] });
3336
3478
  }
3337
3479
  function RichText({
@@ -3345,12 +3487,12 @@ function RichText({
3345
3487
  }) {
3346
3488
  if (blocks.length === 0) return null;
3347
3489
  const draw2 = { renderText, renderReference, renderBlock, renderAfter, onTick };
3348
- return /* @__PURE__ */ jsx39("div", { "data-rich-text": true, className: richTextClassName(size), children: blocks.map((block, i) => /* @__PURE__ */ jsx39(Block, { block, draw: draw2 }, block.id ?? i)) });
3490
+ return /* @__PURE__ */ jsx40("div", { "data-rich-text": true, className: richTextClassName(size), children: blocks.map((block, i) => /* @__PURE__ */ jsx40(Block, { block, draw: draw2 }, block.id ?? i)) });
3349
3491
  }
3350
3492
 
3351
3493
  // src/KindIcon.tsx
3352
3494
  import { IconBox, IconCircleDashed as IconCircleDashed2, IconFile as IconFile2, IconListDetails, IconMessage } from "@tabler/icons-react";
3353
- import { jsx as jsx40 } from "react/jsx-runtime";
3495
+ import { jsx as jsx41 } from "react/jsx-runtime";
3354
3496
  var ICONS = {
3355
3497
  topic: IconCircleDashed2,
3356
3498
  project: IconBox,
@@ -3373,22 +3515,22 @@ function thingKindOf(eventKind) {
3373
3515
  var TONE_CLASSES = { secondary: "text-text-secondary", inherit: "" };
3374
3516
  function KindIcon({ kind, size = 16, tone = "secondary", className }) {
3375
3517
  const Icon = ICONS[kind];
3376
- return /* @__PURE__ */ jsx40(Icon, { size, stroke: 1.5, className: cn("shrink-0", TONE_CLASSES[tone], className), "aria-hidden": true });
3518
+ return /* @__PURE__ */ jsx41(Icon, { size, stroke: 1.5, className: cn("shrink-0", TONE_CLASSES[tone], className), "aria-hidden": true });
3377
3519
  }
3378
3520
 
3379
3521
  // src/IdentityMenu.tsx
3380
3522
  import { useCallback as useCallback3, useRef as useRef10 } from "react";
3381
3523
 
3382
3524
  // src/Person.tsx
3383
- import { jsx as jsx41, jsxs as jsxs32 } from "react/jsx-runtime";
3525
+ import { jsx as jsx42, jsxs as jsxs33 } from "react/jsx-runtime";
3384
3526
  function Person({ name, picture, bot, fallback = "\u2014", size = 20, className }) {
3385
3527
  return (
3386
3528
  // gap-2: the face-to-name distance is one rule (8px) wherever a person
3387
3529
  // appears — Katerina, 2026-09-01, set on Person so PersonTrigger and every
3388
3530
  // row agree by construction.
3389
- /* @__PURE__ */ jsxs32("span", { className: cn("flex min-w-0 items-center gap-2", className), children: [
3390
- /* @__PURE__ */ jsx41(Avatar, { name, src: picture, bot, size }),
3391
- /* @__PURE__ */ jsx41("span", { className: cn("truncate", !name && "text-text-muted"), children: name ?? fallback })
3531
+ /* @__PURE__ */ jsxs33("span", { className: cn("flex min-w-0 items-center gap-2", className), children: [
3532
+ /* @__PURE__ */ jsx42(Avatar, { name, src: picture, bot, size }),
3533
+ /* @__PURE__ */ jsx42("span", { className: cn("truncate", !name && "text-text-muted"), children: name ?? fallback })
3392
3534
  ] })
3393
3535
  );
3394
3536
  }
@@ -3396,10 +3538,10 @@ function Person({ name, picture, bot, fallback = "\u2014", size = 20, className
3396
3538
  // src/PersonTrigger.tsx
3397
3539
  import { Button as BaseButton7 } from "@base-ui/react/button";
3398
3540
  import { IconChevronDown as IconChevronDown3 } from "@tabler/icons-react";
3399
- import { jsx as jsx42, jsxs as jsxs33 } from "react/jsx-runtime";
3541
+ import { jsx as jsx43, jsxs as jsxs34 } from "react/jsx-runtime";
3400
3542
  function PersonTrigger({ name, picture, bot, fallback, size, open = false, compact = false, className, ...props }) {
3401
3543
  if (compact) {
3402
- return /* @__PURE__ */ jsx42(
3544
+ return /* @__PURE__ */ jsx43(
3403
3545
  BaseButton7,
3404
3546
  {
3405
3547
  type: "button",
@@ -3408,13 +3550,13 @@ function PersonTrigger({ name, picture, bot, fallback, size, open = false, compa
3408
3550
  "aria-label": props["aria-label"] ?? name ?? fallback,
3409
3551
  className: cn("cursor-pointer rounded-full", className),
3410
3552
  ...props,
3411
- children: /* @__PURE__ */ jsx42(Avatar, { name, src: picture, bot, size: size ?? 36 })
3553
+ children: /* @__PURE__ */ jsx43(Avatar, { name, src: picture, bot, size: size ?? 36 })
3412
3554
  }
3413
3555
  );
3414
3556
  }
3415
3557
  return (
3416
3558
  // @estiva-escape(no-copied-look): N5 (Katerina, 24 September: record only): a row that fills on hover, as NavItem also does
3417
- /* @__PURE__ */ jsxs33(
3559
+ /* @__PURE__ */ jsxs34(
3418
3560
  BaseButton7,
3419
3561
  {
3420
3562
  type: "button",
@@ -3432,8 +3574,8 @@ function PersonTrigger({ name, picture, bot, fallback, size, open = false, compa
3432
3574
  ),
3433
3575
  ...props,
3434
3576
  children: [
3435
- /* @__PURE__ */ jsx42(Person, { name, picture, bot, fallback, size: size ?? 22 }),
3436
- /* @__PURE__ */ jsx42(IconChevronDown3, { size: 14, stroke: 1.5, className: "shrink-0 text-text-muted" })
3577
+ /* @__PURE__ */ jsx43(Person, { name, picture, bot, fallback, size: size ?? 22 }),
3578
+ /* @__PURE__ */ jsx43(IconChevronDown3, { size: 14, stroke: 1.5, className: "shrink-0 text-text-muted" })
3437
3579
  ]
3438
3580
  }
3439
3581
  )
@@ -3441,10 +3583,10 @@ function PersonTrigger({ name, picture, bot, fallback, size, open = false, compa
3441
3583
  }
3442
3584
 
3443
3585
  // src/IdentityMenu.tsx
3444
- import { Fragment as Fragment12, jsx as jsx43, jsxs as jsxs34 } from "react/jsx-runtime";
3586
+ import { Fragment as Fragment13, jsx as jsx44, jsxs as jsxs35 } from "react/jsx-runtime";
3445
3587
  function IdentityPanel({ className, onClose = () => {
3446
3588
  }, ...rest }) {
3447
- return /* @__PURE__ */ jsx43(MenuPanel, { className: cn("w-72", className), children: /* @__PURE__ */ jsx43(IdentityRows, { ...rest, onClose }) });
3589
+ return /* @__PURE__ */ jsx44(MenuPanel, { className: cn("w-72", className), children: /* @__PURE__ */ jsx44(IdentityRows, { ...rest, onClose }) });
3448
3590
  }
3449
3591
  function IdentityRows({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, onClose, children }) {
3450
3592
  const act = (action) => () => {
@@ -3452,36 +3594,36 @@ function IdentityRows({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, on
3452
3594
  action();
3453
3595
  };
3454
3596
  const appRows = typeof children === "function" ? children(onClose) : children;
3455
- return /* @__PURE__ */ jsxs34(Fragment12, { children: [
3456
- /* @__PURE__ */ jsxs34(MenuSection, { label: signedIn ? "Signed in as" : "Acting as", children: [
3457
- /* @__PURE__ */ jsx43(MenuRow, { children: /* @__PURE__ */ jsx43("div", { className: "flex min-w-0 text-body-2-strong", children: /* @__PURE__ */ jsx43(Person, { name: me.name, picture: me.picture, fallback: "Anonymous", size: 28 }) }) }),
3458
- /* @__PURE__ */ jsx43(Note, { children: signedIn ? "Your Estiva ID. The same person you are in every Estiva app." : "A key held by this browser only. Nobody else knows who you are." }),
3459
- me.email && /* @__PURE__ */ jsxs34(Note, { children: [
3597
+ return /* @__PURE__ */ jsxs35(Fragment13, { children: [
3598
+ /* @__PURE__ */ jsxs35(MenuSection, { label: signedIn ? "Signed in as" : "Acting as", children: [
3599
+ /* @__PURE__ */ jsx44(MenuRow, { children: /* @__PURE__ */ jsx44("div", { className: "flex min-w-0 text-body-2-strong", children: /* @__PURE__ */ jsx44(Person, { name: me.name, picture: me.picture, fallback: "Anonymous", size: 28 }) }) }),
3600
+ /* @__PURE__ */ jsx44(Note, { children: signedIn ? "Your Estiva ID. The same person you are in every Estiva app." : "A key held by this browser only. Nobody else knows who you are." }),
3601
+ me.email && /* @__PURE__ */ jsxs35(Note, { children: [
3460
3602
  me.email,
3461
3603
  " \xB7 known to Estiva, never published to the relay"
3462
3604
  ] })
3463
3605
  ] }),
3464
- relayUrl && /* @__PURE__ */ jsxs34(Fragment12, { children: [
3465
- /* @__PURE__ */ jsx43(Divider, { className: "mx-0 my-2" }),
3466
- /* @__PURE__ */ jsxs34(MenuSection, { label: "Workspace", children: [
3467
- /* @__PURE__ */ jsx43(MenuRow, { children: /* @__PURE__ */ jsx43("span", { className: "break-all font-mono text-caption text-text-primary", children: relayUrl }) }),
3468
- /* @__PURE__ */ jsx43(Note, { children: "Everyone on this relay shares this workspace, in every app." })
3606
+ relayUrl && /* @__PURE__ */ jsxs35(Fragment13, { children: [
3607
+ /* @__PURE__ */ jsx44(Divider, { className: "mx-0 my-2" }),
3608
+ /* @__PURE__ */ jsxs35(MenuSection, { label: "Workspace", children: [
3609
+ /* @__PURE__ */ jsx44(MenuRow, { children: /* @__PURE__ */ jsx44("span", { className: "break-all font-mono text-caption text-text-primary", children: relayUrl }) }),
3610
+ /* @__PURE__ */ jsx44(Note, { children: "Everyone on this relay shares this workspace, in every app." })
3469
3611
  ] })
3470
3612
  ] }),
3471
- appRows && /* @__PURE__ */ jsxs34(Fragment12, { children: [
3472
- /* @__PURE__ */ jsx43(Divider, { className: "mx-0 my-2" }),
3613
+ appRows && /* @__PURE__ */ jsxs35(Fragment13, { children: [
3614
+ /* @__PURE__ */ jsx44(Divider, { className: "mx-0 my-2" }),
3473
3615
  appRows
3474
3616
  ] }),
3475
- signedIn && idBase || onCopyKey || idBase && onSignOut ? /* @__PURE__ */ jsx43(Divider, { className: "mx-0 my-2" }) : null,
3476
- signedIn && idBase && /* @__PURE__ */ jsx43(
3617
+ signedIn && idBase || onCopyKey || idBase && onSignOut ? /* @__PURE__ */ jsx44(Divider, { className: "mx-0 my-2" }) : null,
3618
+ signedIn && idBase && /* @__PURE__ */ jsx44(
3477
3619
  MenuItem,
3478
3620
  {
3479
3621
  label: "Edit your profile in Estiva ID",
3480
3622
  onClick: act(() => window.open(idBase, "_blank", "noopener,noreferrer"))
3481
3623
  }
3482
3624
  ),
3483
- onCopyKey && /* @__PURE__ */ jsx43(MenuItem, { label: "Copy public key", onClick: act(onCopyKey) }),
3484
- idBase && onSignOut && /* @__PURE__ */ jsx43(MenuItem, { label: "Sign out", onClick: act(onSignOut) })
3625
+ onCopyKey && /* @__PURE__ */ jsx44(MenuItem, { label: "Copy public key", onClick: act(onCopyKey) }),
3626
+ idBase && onSignOut && /* @__PURE__ */ jsx44(MenuItem, { label: "Sign out", onClick: act(onSignOut) })
3485
3627
  ] });
3486
3628
  }
3487
3629
  function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, compact = false, className, children }) {
@@ -3492,13 +3634,13 @@ function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, co
3492
3634
  to be `relative`, because the panel was positioned against it; the panel
3493
3635
  hangs from the trigger and portals now, so a positioning context here
3494
3636
  would only be a lie about what this box does. */
3495
- /* @__PURE__ */ jsx43("div", { className, children: /* @__PURE__ */ jsx43(
3637
+ /* @__PURE__ */ jsx44("div", { className, children: /* @__PURE__ */ jsx44(
3496
3638
  Menu,
3497
3639
  {
3498
3640
  align: "right",
3499
3641
  actionsRef: actions,
3500
3642
  className: "w-72",
3501
- trigger: /* @__PURE__ */ jsx43(
3643
+ trigger: /* @__PURE__ */ jsx44(
3502
3644
  PersonTrigger,
3503
3645
  {
3504
3646
  name: me.name,
@@ -3509,7 +3651,7 @@ function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, co
3509
3651
  "aria-label": compact ? "Account menu" : void 0
3510
3652
  }
3511
3653
  ),
3512
- children: /* @__PURE__ */ jsx43(
3654
+ children: /* @__PURE__ */ jsx44(
3513
3655
  IdentityRows,
3514
3656
  {
3515
3657
  me,
@@ -3527,14 +3669,14 @@ function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, co
3527
3669
  );
3528
3670
  }
3529
3671
  function Note({ children }) {
3530
- return /* @__PURE__ */ jsx43("span", { className: "px-2 pb-1.5 text-caption text-text-secondary", children });
3672
+ return /* @__PURE__ */ jsx44("span", { className: "px-2 pb-1.5 text-caption text-text-secondary", children });
3531
3673
  }
3532
3674
 
3533
3675
  // src/FilePicker.tsx
3534
3676
  import { forwardRef } from "react";
3535
- import { jsx as jsx44 } from "react/jsx-runtime";
3677
+ import { jsx as jsx45 } from "react/jsx-runtime";
3536
3678
  var FilePicker = forwardRef(function FilePicker2({ onPick, ...props }, ref) {
3537
- return /* @__PURE__ */ jsx44(
3679
+ return /* @__PURE__ */ jsx45(
3538
3680
  "input",
3539
3681
  {
3540
3682
  ref,
@@ -3555,9 +3697,9 @@ var FilePicker = forwardRef(function FilePicker2({ onPick, ...props }, ref) {
3555
3697
  // src/TextInput.tsx
3556
3698
  import { forwardRef as forwardRef2 } from "react";
3557
3699
  import { Input } from "@base-ui/react/input";
3558
- import { jsx as jsx45 } from "react/jsx-runtime";
3700
+ import { jsx as jsx46 } from "react/jsx-runtime";
3559
3701
  var TextInput = forwardRef2(function TextInput2({ className, type = "text", size = "default", ...props }, ref) {
3560
- return /* @__PURE__ */ jsx45(
3702
+ return /* @__PURE__ */ jsx46(
3561
3703
  Input,
3562
3704
  {
3563
3705
  ref,
@@ -3583,13 +3725,13 @@ var TextInput = forwardRef2(function TextInput2({ className, type = "text", size
3583
3725
  // src/Textarea.tsx
3584
3726
  import { forwardRef as forwardRef3 } from "react";
3585
3727
  import { Field as BaseField3 } from "@base-ui/react/field";
3586
- import { jsx as jsx46 } from "react/jsx-runtime";
3728
+ import { jsx as jsx47 } from "react/jsx-runtime";
3587
3729
  var Textarea = forwardRef3(function Textarea2({ className, ...props }, ref) {
3588
- return /* @__PURE__ */ jsx46(
3730
+ return /* @__PURE__ */ jsx47(
3589
3731
  BaseField3.Control,
3590
3732
  {
3591
3733
  ref,
3592
- render: /* @__PURE__ */ jsx46("textarea", {}),
3734
+ render: /* @__PURE__ */ jsx47("textarea", {}),
3593
3735
  className: cn(
3594
3736
  // The border strengthens on hover, as Select's and ChipInput's do (Katerina, 16 September:
3595
3737
  // "aren't there hover states in text input and text area?"). Focus comes after hover in
@@ -3609,7 +3751,7 @@ var Textarea = forwardRef3(function Textarea2({ className, ...props }, ref) {
3609
3751
 
3610
3752
  // src/ConfirmDialog.tsx
3611
3753
  import { useRef as useRef11, useState as useState12 } from "react";
3612
- import { Fragment as Fragment13, jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
3754
+ import { Fragment as Fragment14, jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
3613
3755
  function ConfirmDialog({ title, children, confirmLabel, destructive = false, onConfirm, onClose, alternative, refused }) {
3614
3756
  const [busy, setBusy] = useState12(false);
3615
3757
  const closed = useRef11(false);
@@ -3627,22 +3769,22 @@ function ConfirmDialog({ title, children, confirmLabel, destructive = false, onC
3627
3769
  setBusy(false);
3628
3770
  }
3629
3771
  };
3630
- return /* @__PURE__ */ jsx47(
3772
+ return /* @__PURE__ */ jsx48(
3631
3773
  DialogShell,
3632
3774
  {
3633
3775
  alert: true,
3634
3776
  title,
3635
3777
  onClose: close,
3636
- footer: /* @__PURE__ */ jsxs35(Fragment13, { children: [
3637
- /* @__PURE__ */ jsx47(Button, { variant: "muted", onClick: close, disabled: busy, children: "Cancel" }),
3638
- /* @__PURE__ */ jsx47(Button, { variant: destructive ? "destructive" : "primary", onClick: () => void confirm(), disabled: busy, children: confirmLabel })
3778
+ footer: /* @__PURE__ */ jsxs36(Fragment14, { children: [
3779
+ /* @__PURE__ */ jsx48(Button, { variant: "muted", onClick: close, disabled: busy, children: "Cancel" }),
3780
+ /* @__PURE__ */ jsx48(Button, { variant: destructive ? "destructive" : "primary", onClick: () => void confirm(), disabled: busy, children: confirmLabel })
3639
3781
  ] }),
3640
- children: /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-3 text-body-2 text-text-primary", children: [
3782
+ children: /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-3 text-body-2 text-text-primary", children: [
3641
3783
  children,
3642
- refused && /* @__PURE__ */ jsx47(FieldLine, { tone: "error", children: refused }),
3643
- alternative && /* @__PURE__ */ jsxs35("div", { className: "flex flex-col items-start gap-2", children: [
3644
- /* @__PURE__ */ jsx47("p", { children: alternative.sentence }),
3645
- /* @__PURE__ */ jsx47(Button, { variant: "outlined", size: "small", onClick: alternative.onClick, disabled: busy, children: alternative.label })
3784
+ refused && /* @__PURE__ */ jsx48(FieldLine, { tone: "error", children: refused }),
3785
+ alternative && /* @__PURE__ */ jsxs36("div", { className: "flex flex-col items-start gap-2", children: [
3786
+ /* @__PURE__ */ jsx48("p", { children: alternative.sentence }),
3787
+ /* @__PURE__ */ jsx48(Button, { variant: "outlined", size: "small", onClick: alternative.onClick, disabled: busy, children: alternative.label })
3646
3788
  ] })
3647
3789
  ] })
3648
3790
  }
@@ -3654,10 +3796,10 @@ import { useEffect as useEffect7, useRef as useRef12, useState as useState13 } f
3654
3796
  import { Field as BaseField4 } from "@base-ui/react/field";
3655
3797
  import { Input as Input2 } from "@base-ui/react/input";
3656
3798
  import { IconPencil, IconPlus } from "@tabler/icons-react";
3657
- import { Fragment as Fragment14, jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
3799
+ import { Fragment as Fragment15, jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
3658
3800
  var saved = (answer) => answer === true || typeof answer === "object" && answer.kind !== "error";
3659
3801
  function EditableText(props) {
3660
- return props.manner === "buttons" ? /* @__PURE__ */ jsx48(WithButtons, { ...props }) : /* @__PURE__ */ jsx48(Inline, { ...props });
3802
+ return props.manner === "buttons" ? /* @__PURE__ */ jsx49(WithButtons, { ...props }) : /* @__PURE__ */ jsx49(Inline, { ...props });
3661
3803
  }
3662
3804
  function Inline({ value, display, displayNode, placeholder, onCommit, multiline = false, className, label, readOnly = false }) {
3663
3805
  const [editing, setEditing] = useState13(false);
@@ -3716,7 +3858,7 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3716
3858
  written and never read. Read-only, this is a line of text: whatever
3717
3859
  names the region around it (a `Field`, a `Property`) names this too.
3718
3860
  */
3719
- /* @__PURE__ */ jsx48(
3861
+ /* @__PURE__ */ jsx49(
3720
3862
  "div",
3721
3863
  {
3722
3864
  className: cn("w-full px-2 py-1", multiline && !displayNode && "whitespace-pre-wrap", display ?? value ? "text-text-primary" : "text-text-muted", className),
@@ -3726,11 +3868,11 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3726
3868
  );
3727
3869
  }
3728
3870
  if (editing) {
3729
- return multiline ? /* @__PURE__ */ jsx48(
3871
+ return multiline ? /* @__PURE__ */ jsx49(
3730
3872
  BaseField4.Control,
3731
3873
  {
3732
3874
  ref: fieldRef,
3733
- render: /* @__PURE__ */ jsx48("textarea", { rows: 4 }),
3875
+ render: /* @__PURE__ */ jsx49("textarea", { rows: 4 }),
3734
3876
  "aria-label": label,
3735
3877
  value: draft,
3736
3878
  disabled: busy,
@@ -3739,7 +3881,7 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3739
3881
  onBlur: () => void commit(),
3740
3882
  className: fieldClass
3741
3883
  }
3742
- ) : /* @__PURE__ */ jsx48(
3884
+ ) : /* @__PURE__ */ jsx49(
3743
3885
  Input2,
3744
3886
  {
3745
3887
  ref: fieldRef,
@@ -3753,7 +3895,7 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3753
3895
  }
3754
3896
  );
3755
3897
  }
3756
- return /* @__PURE__ */ jsx48(
3898
+ return /* @__PURE__ */ jsx49(
3757
3899
  "button",
3758
3900
  {
3759
3901
  type: "button",
@@ -3825,22 +3967,22 @@ function WithButtons({
3825
3967
  setDraft(next);
3826
3968
  if (outcome?.kind === "error") setOutcome(null);
3827
3969
  };
3828
- const line = outcome && /* @__PURE__ */ jsx48(FieldLine, { tone: outcome.kind, children: outcome.message });
3970
+ const line = outcome && /* @__PURE__ */ jsx49(FieldLine, { tone: outcome.kind, children: outcome.message });
3829
3971
  if (editing) {
3830
- const buttons = /* @__PURE__ */ jsxs36(Fragment14, { children: [
3831
- /* @__PURE__ */ jsx48(Button, { variant: "primary", size: "small", type: "submit", disabled: !canSave || busy, children: busy ? "Saving\u2026" : "Save" }),
3832
- /* @__PURE__ */ jsx48(Button, { variant: "outlined", size: "small", onClick: cancel, children: "Cancel" })
3972
+ const buttons = /* @__PURE__ */ jsxs37(Fragment15, { children: [
3973
+ /* @__PURE__ */ jsx49(Button, { variant: "primary", size: "small", type: "submit", disabled: !canSave || busy, children: busy ? "Saving\u2026" : "Save" }),
3974
+ /* @__PURE__ */ jsx49(Button, { variant: "outlined", size: "small", onClick: cancel, children: "Cancel" })
3833
3975
  ] });
3834
3976
  return (
3835
3977
  // The package Form: Enter in the one-line field saves, Ctrl+Enter from the text area; it locks while saving.
3836
- /* @__PURE__ */ jsxs36(Form, { busy, onSubmit: save, layout: "free", className: cn("flex flex-col gap-2", className), children: [
3837
- multiline ? /* @__PURE__ */ jsxs36(Fragment14, { children: [
3838
- /* @__PURE__ */ jsx48(Textarea, { autoFocus: true, rows: 4, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3978
+ /* @__PURE__ */ jsxs37(Form, { busy, onSubmit: save, layout: "free", className: cn("flex flex-col gap-2", className), children: [
3979
+ multiline ? /* @__PURE__ */ jsxs37(Fragment15, { children: [
3980
+ /* @__PURE__ */ jsx49(Textarea, { autoFocus: true, rows: 4, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3839
3981
  draftNote?.(draft),
3840
- /* @__PURE__ */ jsx48("div", { className: "flex items-center gap-2", children: buttons })
3841
- ] }) : /* @__PURE__ */ jsxs36(Fragment14, { children: [
3842
- /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2", children: [
3843
- /* @__PURE__ */ jsx48(TextInput, { autoFocus: true, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3982
+ /* @__PURE__ */ jsx49("div", { className: "flex items-center gap-2", children: buttons })
3983
+ ] }) : /* @__PURE__ */ jsxs37(Fragment15, { children: [
3984
+ /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-2", children: [
3985
+ /* @__PURE__ */ jsx49(TextInput, { autoFocus: true, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3844
3986
  buttons
3845
3987
  ] }),
3846
3988
  draftNote?.(draft)
@@ -3850,18 +3992,18 @@ function WithButtons({
3850
3992
  );
3851
3993
  }
3852
3994
  const shown2 = display ?? value;
3853
- return /* @__PURE__ */ jsxs36("div", { className: cn("flex flex-col gap-3", className), children: [
3854
- /* @__PURE__ */ jsxs36("div", { className: cn("flex gap-2", multiline ? "items-start" : "items-center"), children: [
3995
+ return /* @__PURE__ */ jsxs37("div", { className: cn("flex flex-col gap-3", className), children: [
3996
+ /* @__PURE__ */ jsxs37("div", { className: cn("flex gap-2", multiline ? "items-start" : "items-center"), children: [
3855
3997
  !shown2 ? (
3856
3998
  // Nothing yet: the kit's empty line for one part of a page, 12px and muted, as Peek's "No summary yet." (2 November).
3857
- /* @__PURE__ */ jsx48(EmptyState, { scope: "section", message: placeholder, className: "min-w-0 flex-1" })
3858
- ) : multiline ? /* @__PURE__ */ jsx48("p", { className: "min-w-0 flex-1 break-words text-body-2 text-text-primary", children: displayNode ?? shown2 }) : /* @__PURE__ */ jsx48("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-primary", children: displayNode ?? shown2 }),
3859
- !readOnly && /* @__PURE__ */ jsx48(
3999
+ /* @__PURE__ */ jsx49(EmptyState, { scope: "section", message: placeholder, className: "min-w-0 flex-1" })
4000
+ ) : multiline ? /* @__PURE__ */ jsx49("p", { className: "min-w-0 flex-1 break-words text-body-2 text-text-primary", children: displayNode ?? shown2 }) : /* @__PURE__ */ jsx49("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-primary", children: displayNode ?? shown2 }),
4001
+ !readOnly && /* @__PURE__ */ jsx49(
3860
4002
  Button,
3861
4003
  {
3862
4004
  variant: "outlined",
3863
4005
  size: "small",
3864
- leadingIcon: value || !addLabel ? /* @__PURE__ */ jsx48(IconPencil, { size: 14, stroke: 1.5 }) : /* @__PURE__ */ jsx48(IconPlus, { size: 14, stroke: 1.5 }),
4006
+ leadingIcon: value || !addLabel ? /* @__PURE__ */ jsx49(IconPencil, { size: 14, stroke: 1.5 }) : /* @__PURE__ */ jsx49(IconPlus, { size: 14, stroke: 1.5 }),
3865
4007
  onClick: open,
3866
4008
  children: value || !addLabel ? editLabel : addLabel
3867
4009
  }
@@ -3873,20 +4015,20 @@ function WithButtons({
3873
4015
 
3874
4016
  // src/EntryShell.tsx
3875
4017
  import { cloneElement as cloneElement2 } from "react";
3876
- import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
4018
+ import { jsx as jsx50, jsxs as jsxs38 } from "react/jsx-runtime";
3877
4019
  var isEmpty = (node) => node == null || node === false || typeof node === "string" && node.trim() === "";
3878
4020
  function EntryShell({ logo, busy = false, busyLabel = "Loading", message, action, className }) {
3879
- return /* @__PURE__ */ jsx49("div", { className: cn("min-h-screen bg-bg-base flex items-center justify-center p-6", className), children: busy ? /* @__PURE__ */ jsx49("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__ */ jsxs37("div", { className: "flex flex-col items-center gap-4", children: [
4021
+ return /* @__PURE__ */ jsx50("div", { className: cn("min-h-screen bg-bg-base flex items-center justify-center p-6", className), children: busy ? /* @__PURE__ */ jsx50("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__ */ jsxs38("div", { className: "flex flex-col items-center gap-4", children: [
3880
4022
  logo,
3881
- !isEmpty(message) && /* @__PURE__ */ jsx49("p", { role: "status", className: "text-body-2 text-text-secondary max-w-sm text-center", children: message }),
3882
- action && /* @__PURE__ */ jsx49(Button, { variant: "primary", type: "button", onClick: action.onClick, disabled: action.disabled, children: action.label })
4023
+ !isEmpty(message) && /* @__PURE__ */ jsx50("p", { role: "status", className: "text-body-2 text-text-secondary max-w-sm text-center", children: message }),
4024
+ action && /* @__PURE__ */ jsx50(Button, { variant: "primary", type: "button", onClick: action.onClick, disabled: action.disabled, children: action.label })
3883
4025
  ] }) });
3884
4026
  }
3885
4027
 
3886
4028
  // src/ErrorBoundary.tsx
3887
4029
  import { Component } from "react";
3888
4030
  import { IconAlertTriangle as IconAlertTriangle2 } from "@tabler/icons-react";
3889
- import { jsx as jsx50 } from "react/jsx-runtime";
4031
+ import { jsx as jsx51 } from "react/jsx-runtime";
3890
4032
  var ErrorBoundary = class extends Component {
3891
4033
  state = { hasError: false };
3892
4034
  static getDerivedStateFromError() {
@@ -3897,22 +4039,22 @@ var ErrorBoundary = class extends Component {
3897
4039
  }
3898
4040
  render() {
3899
4041
  if (!this.state.hasError) return this.props.children;
3900
- const message = /* @__PURE__ */ jsx50(
4042
+ const message = /* @__PURE__ */ jsx51(
3901
4043
  EmptyState,
3902
4044
  {
3903
- icon: /* @__PURE__ */ jsx50(IconAlertTriangle2, { size: 16, stroke: 1.5 }),
4045
+ icon: /* @__PURE__ */ jsx51(IconAlertTriangle2, { size: 16, stroke: 1.5 }),
3904
4046
  message: `Something went wrong${this.props.label ? ` in the ${this.props.label}` : ""}. Your data is safe \u2014 try again.`,
3905
4047
  action: { label: "Try again", onClick: () => this.setState({ hasError: false }) }
3906
4048
  }
3907
4049
  );
3908
4050
  if (this.props.frame) return this.props.frame(message);
3909
- return this.props.fallbackClassName ? /* @__PURE__ */ jsx50("div", { className: this.props.fallbackClassName, children: message }) : message;
4051
+ return this.props.fallbackClassName ? /* @__PURE__ */ jsx51("div", { className: this.props.fallbackClassName, children: message }) : message;
3910
4052
  }
3911
4053
  };
3912
4054
 
3913
4055
  // src/ProgressBar.tsx
3914
4056
  import { Progress } from "@base-ui/react/progress";
3915
- import { jsx as jsx51 } from "react/jsx-runtime";
4057
+ import { jsx as jsx52 } from "react/jsx-runtime";
3916
4058
  var TRACK_CLASSES = {
3917
4059
  default: "h-1.5 w-full overflow-hidden rounded-full bg-bg-inset",
3918
4060
  // 4px, Katerina's ruling of 14 September; Peek's own bar is 3px until it takes this one.
@@ -3925,13 +4067,13 @@ var INDICATOR_CLASSES = {
3925
4067
  function ProgressBar({ value, max, label, variant = "default", className }) {
3926
4068
  return (
3927
4069
  // `max={0}` needs no guard: Base UI reads the 0/0 share as an empty bar.
3928
- /* @__PURE__ */ jsx51(Progress.Root, { value, max, "aria-label": label, className, children: /* @__PURE__ */ jsx51(Progress.Track, { className: TRACK_CLASSES[variant], children: /* @__PURE__ */ jsx51(Progress.Indicator, { className: INDICATOR_CLASSES[variant] }) }) })
4070
+ /* @__PURE__ */ jsx52(Progress.Root, { value, max, "aria-label": label, className, children: /* @__PURE__ */ jsx52(Progress.Track, { className: TRACK_CLASSES[variant], children: /* @__PURE__ */ jsx52(Progress.Indicator, { className: INDICATOR_CLASSES[variant] }) }) })
3929
4071
  );
3930
4072
  }
3931
4073
 
3932
4074
  // src/Breadcrumb.tsx
3933
- import { Fragment as Fragment15, useCallback as useCallback4, useLayoutEffect as useLayoutEffect4, useRef as useRef13, useState as useState14 } from "react";
3934
- import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
4075
+ import { Fragment as Fragment16, useCallback as useCallback4, useLayoutEffect as useLayoutEffect4, useRef as useRef13, useState as useState14 } from "react";
4076
+ import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
3935
4077
  function Breadcrumb({ items, className }) {
3936
4078
  const navRef = useRef13(null);
3937
4079
  const labelRefs = useRef13([]);
@@ -3951,7 +4093,7 @@ function Breadcrumb({ items, className }) {
3951
4093
  observer.observe(nav);
3952
4094
  return () => observer.disconnect();
3953
4095
  }, [measure, items]);
3954
- return /* @__PURE__ */ jsx52("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) => {
4096
+ return /* @__PURE__ */ jsx53("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) => {
3955
4097
  const last = index === items.length - 1;
3956
4098
  const tone = item.muted || last && item.mono ? "text-text-muted" : last ? "text-text-primary" : "text-text-secondary";
3957
4099
  const text = cn(
@@ -3972,16 +4114,16 @@ function Breadcrumb({ items, className }) {
3972
4114
  // on a box around it, which the link takes them from, rather than
3973
4115
  // pushed into it (UIG-9); the link is still the one element that
3974
4116
  // truncates and is measured.
3975
- /* @__PURE__ */ jsx52("span", { className: cn("flex min-w-0", item.mono && "shrink-0 font-mono text-caption", tone, "hover:text-text-primary"), children: /* @__PURE__ */ jsx52(Link, { ref: setLabelRef, variant: "plain", truncate: true, href: item.href, onClick: item.onClick, children: item.label }) })
3976
- ) : /* @__PURE__ */ jsx52("span", { ref: setLabelRef, className: text, "aria-current": last ? "page" : void 0, children: item.label });
3977
- return /* @__PURE__ */ jsxs38(Fragment15, { children: [
3978
- index > 0 && /* @__PURE__ */ jsx52("span", { "aria-hidden": "true", className: "shrink-0 text-text-muted", children: "/" }),
3979
- item.icon && /* @__PURE__ */ jsx52("span", { "aria-hidden": "true", className: cn("flex shrink-0", tone), children: item.icon }),
4117
+ /* @__PURE__ */ jsx53("span", { className: cn("flex min-w-0", item.mono && "shrink-0 font-mono text-caption", tone, "hover:text-text-primary"), children: /* @__PURE__ */ jsx53(Link, { ref: setLabelRef, variant: "plain", truncate: true, href: item.href, onClick: item.onClick, children: item.label }) })
4118
+ ) : /* @__PURE__ */ jsx53("span", { ref: setLabelRef, className: text, "aria-current": last ? "page" : void 0, children: item.label });
4119
+ return /* @__PURE__ */ jsxs39(Fragment16, { children: [
4120
+ index > 0 && /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", className: "shrink-0 text-text-muted", children: "/" }),
4121
+ item.icon && /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", className: cn("flex shrink-0", tone), children: item.icon }),
3980
4122
  truncated.has(index) ? (
3981
4123
  // `min-w-0 shrink` undoes the wrapper's own shrink-0 — the crumb
3982
4124
  // must keep truncating inside it, or wrapping it would widen the
3983
4125
  // trail and the tooltip would never be needed again.
3984
- /* @__PURE__ */ jsx52(WithTooltip, { label: item.label, wrapperClassName: "min-w-0 shrink", children: crumb })
4126
+ /* @__PURE__ */ jsx53(WithTooltip, { label: item.label, wrapperClassName: "min-w-0 shrink", children: crumb })
3985
4127
  ) : crumb
3986
4128
  ] }, `${item.label}-${index}`);
3987
4129
  }) });
@@ -3994,119 +4136,14 @@ import { IconChevronRight as IconChevronRight3, IconDotsVertical as IconDotsVert
3994
4136
 
3995
4137
  // src/UrgentMark.tsx
3996
4138
  import { IconAlertSquareRounded } from "@tabler/icons-react";
3997
- import { jsx as jsx53 } from "react/jsx-runtime";
4139
+ import { jsx as jsx54 } from "react/jsx-runtime";
3998
4140
  function UrgentMark() {
3999
- return /* @__PURE__ */ jsx53("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx53("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx53(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
4141
+ return /* @__PURE__ */ jsx54("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx54("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx54(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
4000
4142
  }
4001
4143
 
4002
4144
  // src/CollapsibleSection.tsx
4003
4145
  import { createContext as createContext7, useContext as useContext7, useEffect as useEffect8, useRef as useRef14, useState as useState15 } from "react";
4004
4146
  import { Collapsible } from "@base-ui/react/collapsible";
4005
-
4006
- // src/SectionHeader.tsx
4007
- import { IconChevronRight as IconChevronRight2, IconDotsVertical } from "@tabler/icons-react";
4008
- import { useRender } from "@base-ui/react/use-render";
4009
- import { Fragment as Fragment16, jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
4010
- function SectionHeader({ title, chevron = false, icon, isExpanded = true, onToggle, trailing, count, actions, menu, menuLabel, showActions = "hover", hover = "fill", look = "heading", render, className }) {
4011
- const row = look === "row";
4012
- const acts = actions && actions.length > 0 || menu != null;
4013
- 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";
4014
- 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";
4015
- const titleElement = useRender({
4016
- render: render ?? (chevron ? /* @__PURE__ */ jsx54("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx54("span", {})),
4017
- props: {
4018
- // `text-left`: a button centres its text. `h-full` and `flex-1`: the
4019
- // whole row up to the actions is the hit target, as it was when the
4020
- // row itself carried the click.
4021
- // An icon is a row's: NavItem's 8px after it.
4022
- className: cn("flex h-full min-w-0 flex-1 items-center text-left", row || chevron || icon != null ? "gap-2" : "gap-1"),
4023
- children: /* @__PURE__ */ jsxs39(Fragment16, { children: [
4024
- icon != null ? /* @__PURE__ */ jsxs39("span", { className: "relative flex size-4 shrink-0 items-center justify-center text-text-secondary", children: [
4025
- /* @__PURE__ */ jsx54("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
4026
- chevron && /* @__PURE__ */ jsx54(
4027
- IconChevronRight2,
4028
- {
4029
- size: 16,
4030
- stroke: 1.5,
4031
- className: cn("absolute opacity-0 transition-[opacity,transform] duration-150 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100", isExpanded && "rotate-90")
4032
- }
4033
- )
4034
- ] }) : chevron && /* @__PURE__ */ jsx54(
4035
- IconChevronRight2,
4036
- {
4037
- size: 16,
4038
- stroke: 1.5,
4039
- className: cn("shrink-0 transition-transform duration-150", !row && "text-text-secondary", isExpanded && "rotate-90")
4040
- }
4041
- ),
4042
- look === "quiet" ? /* @__PURE__ */ jsx54("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
4043
- // A row's words: NavItem's size and colour, brightening under the pointer with the row.
4044
- /* @__PURE__ */ jsx54("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
4045
- ) : (
4046
- // One line, as the other looks and a NavItem's label: a Folder named by its id ran onto two (Katerina, 3 November).
4047
- /* @__PURE__ */ jsx54(SectionLabel, { folds: chevron, truncate: true, children: title })
4048
- ),
4049
- count != null && /* @__PURE__ */ jsx54("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
4050
- ] })
4051
- }
4052
- });
4053
- return /* @__PURE__ */ jsxs39(
4054
- "div",
4055
- {
4056
- className: cn(
4057
- // `relative`: a dot in the last button's place is placed against the row.
4058
- "group relative flex h-[32px] shrink-0 items-center gap-1 px-2",
4059
- !row && "transition-colors",
4060
- // A row is NavItem's shape and colour: 6px corners, secondary words that brighten on hover.
4061
- row ? cn(SIDEBAR_ROW_CLASSES, SIDEBAR_ROW_TEXT_CLASSES) : "rounded-lg",
4062
- // The fill says "this does something": a row with a toggle or actions
4063
- // lights up, a fixed heading over rows does not (2026-09-09, the
4064
- // Sidebar's fixed group).
4065
- // A quiet label never lights up: it is a label; its button does.
4066
- hover === "fill" && look !== "quiet" && (chevron || acts) && "hover:bg-bg-hover",
4067
- // While its menu is open the pointer is on the menu, not the row: the
4068
- // row keeps its hover look, as a NavItem's does.
4069
- hover === "fill" && look !== "quiet" && menu != null && "has-[[data-section-menu]_[aria-expanded=true]]:bg-bg-hover",
4070
- className
4071
- ),
4072
- children: [
4073
- titleElement,
4074
- trailing != null && /* @__PURE__ */ jsx54("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
4075
- acts && /* @__PURE__ */ jsx54(
4076
- "div",
4077
- {
4078
- className: "-mr-1 flex shrink-0 items-center",
4079
- children: /* @__PURE__ */ jsxs39("div", { className: cn("flex items-center gap-1", reveal), children: [
4080
- actions?.map(
4081
- (action) => action.menu != null ? (
4082
- // `data-section-menu`, as the ⋮ has: the row stays lit while its menu is open.
4083
- /* @__PURE__ */ jsx54("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx54(
4084
- Menu,
4085
- {
4086
- align: "right",
4087
- trigger: /* @__PURE__ */ jsx54(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, children: action.icon }),
4088
- children: action.menu
4089
- }
4090
- ) }, action.tooltip)
4091
- ) : /* @__PURE__ */ jsx54(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)
4092
- ),
4093
- menu != null && /* @__PURE__ */ jsx54("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx54(
4094
- Menu,
4095
- {
4096
- align: "right",
4097
- trigger: /* @__PURE__ */ jsx54(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx54(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
4098
- children: menu
4099
- }
4100
- ) })
4101
- ] })
4102
- }
4103
- )
4104
- ]
4105
- }
4106
- );
4107
- }
4108
-
4109
- // src/CollapsibleSection.tsx
4110
4147
  import { jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
4111
4148
  var OPEN = "open";
4112
4149
  var CLOSED = "closed";
@@ -4393,10 +4430,14 @@ function NavItem({
4393
4430
  // at the row, and the menu has no other way in.
4394
4431
  /* @__PURE__ */ jsxs42("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: [
4395
4432
  action && /* @__PURE__ */ jsx58(IconButton, { tooltip: action.tooltip, "aria-label": `${action.tooltip}: ${label}`, onClick: action.onClick, children: action.icon }),
4396
- menu != null && /* @__PURE__ */ jsx58(
4433
+ menu != null && /*
4434
+ Toward the page: the menu's left edge under the ⋮, spreading right over what the column sits beside,
4435
+ not back over the list and the rail (Katerina, 16 November). At the screen's edge Base UI shifts it in.
4436
+ */
4437
+ /* @__PURE__ */ jsx58(
4397
4438
  Menu,
4398
4439
  {
4399
- align: "right",
4440
+ align: "left",
4400
4441
  trigger: /* @__PURE__ */ jsx58(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx58(IconDotsVertical2, { size: 16, stroke: 1.5 }) }),
4401
4442
  children: menu
4402
4443
  }