@estiva-app/ui 0.102.2 → 0.104.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.
Files changed (52) hide show
  1. package/dist/CommentBox.d.ts +16 -0
  2. package/dist/CommentBox.d.ts.map +1 -1
  3. package/dist/ConfirmDialog.d.ts +6 -1
  4. package/dist/ConfirmDialog.d.ts.map +1 -1
  5. package/dist/ConversationCard.d.ts +2 -0
  6. package/dist/ConversationCard.d.ts.map +1 -1
  7. package/dist/LinkChip.d.ts.map +1 -1
  8. package/dist/LinkRow.d.ts +6 -0
  9. package/dist/LinkRow.d.ts.map +1 -1
  10. package/dist/MoveDialog.d.ts +12 -1
  11. package/dist/MoveDialog.d.ts.map +1 -1
  12. package/dist/QuotedLine.d.ts +1 -1
  13. package/dist/QuotedLine.d.ts.map +1 -1
  14. package/dist/SectionHeader.d.ts.map +1 -1
  15. package/dist/editor.d.ts +1 -1
  16. package/dist/editor.d.ts.map +1 -1
  17. package/dist/editor.js +14 -6
  18. package/dist/editor.js.map +3 -3
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +278 -265
  22. package/dist/index.js.map +4 -4
  23. package/package.json +1 -1
  24. package/registry.json +32 -2
  25. package/src/CommentBox.mdx +1 -0
  26. package/src/CommentBox.stories.tsx +17 -1
  27. package/src/CommentBox.test.tsx +24 -0
  28. package/src/CommentBox.tsx +29 -1
  29. package/src/ConfirmDialog.mdx +2 -0
  30. package/src/ConfirmDialog.stories.tsx +6 -0
  31. package/src/ConfirmDialog.test.tsx +12 -1
  32. package/src/ConfirmDialog.tsx +8 -1
  33. package/src/ConversationCard.mdx +2 -0
  34. package/src/ConversationCard.stories.tsx +6 -0
  35. package/src/ConversationCard.test.tsx +50 -0
  36. package/src/ConversationCard.tsx +13 -7
  37. package/src/LinkChip.test.tsx +13 -2
  38. package/src/LinkChip.tsx +4 -3
  39. package/src/LinkRow.tsx +6 -2
  40. package/src/MoveDialog.mdx +6 -0
  41. package/src/MoveDialog.stories.tsx +13 -0
  42. package/src/MoveDialog.test.tsx +40 -1
  43. package/src/MoveDialog.tsx +19 -1
  44. package/src/NavTree.stories.tsx +1 -1
  45. package/src/QuotedLine.mdx +2 -1
  46. package/src/QuotedLine.test.tsx +9 -0
  47. package/src/QuotedLine.tsx +4 -2
  48. package/src/SectionHeader.mdx +1 -0
  49. package/src/SectionHeader.test.tsx +7 -0
  50. package/src/SectionHeader.tsx +4 -1
  51. package/src/editor.ts +1 -0
  52. package/src/index.ts +1 -1
package/dist/index.js CHANGED
@@ -1202,32 +1202,87 @@ function MembersPill({ members, count, onClick, className }) {
1202
1202
  // src/MoveDialog.tsx
1203
1203
  import { useEffect as useEffect4, useRef as useRef7, useState as useState5 } from "react";
1204
1204
 
1205
+ // src/Checkbox.tsx
1206
+ import { Checkbox as BaseCheckbox } from "@base-ui/react/checkbox";
1207
+ import { Field as BaseField } from "@base-ui/react/field";
1208
+ import { IconCheck } from "@tabler/icons-react";
1209
+ import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
1210
+ function squareClasses(checked, disabled, interactive, className) {
1211
+ return cn(
1212
+ "inline-flex items-center justify-center size-4 shrink-0 rounded-sm border transition-colors",
1213
+ checked ? "bg-accent-primary border-accent-primary text-text-inverse" : "bg-transparent border-border-strong hover:border-text-muted",
1214
+ disabled && "opacity-50 pointer-events-none",
1215
+ interactive ? "cursor-pointer" : "pointer-events-none",
1216
+ className
1217
+ );
1218
+ }
1219
+ var tickClasses = (checked) => cn("flex", !checked && "invisible");
1220
+ var WORDS_CLASSES = "text-body-2 text-text-primary";
1221
+ var ROW_CLASSES = "flex shrink-0 items-center gap-3 h-10 px-3 rounded-lg transition-colors";
1222
+ function Checkbox({ checked, onChange, disabled: ownDisabled = false, label, row, leading, className, ...aria }) {
1223
+ const formBusy = useFormBusy();
1224
+ const disabled = ownDisabled || formBusy;
1225
+ if (!onChange) {
1226
+ const picture = /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: squareClasses(checked, disabled, false, className), children: /* @__PURE__ */ jsx17("span", { className: tickClasses(checked), children: /* @__PURE__ */ jsx17(IconCheck, { size: 12, stroke: 3 }) }) });
1227
+ if (label === void 0) return picture;
1228
+ return /* @__PURE__ */ jsxs11("span", { className: "flex items-center gap-2", children: [
1229
+ picture,
1230
+ /* @__PURE__ */ jsx17("span", { className: WORDS_CLASSES, children: label })
1231
+ ] });
1232
+ }
1233
+ const box = /* @__PURE__ */ jsx17(
1234
+ BaseCheckbox.Root,
1235
+ {
1236
+ checked,
1237
+ disabled,
1238
+ "aria-label": aria["aria-label"],
1239
+ "aria-required": aria["aria-required"],
1240
+ onCheckedChange: (next) => onChange(next),
1241
+ onClick: (e) => e.stopPropagation(),
1242
+ className: (state) => squareClasses(state.checked, state.disabled, true, className),
1243
+ children: /* @__PURE__ */ jsx17(BaseCheckbox.Indicator, { keepMounted: true, className: (state) => tickClasses(state.checked), children: /* @__PURE__ */ jsx17(IconCheck, { size: 12, stroke: 3 }) })
1244
+ }
1245
+ );
1246
+ if (label === void 0) return box;
1247
+ if (row) {
1248
+ return /* @__PURE__ */ jsx17(BaseField.Root, { disabled, children: /* @__PURE__ */ jsxs11(BaseField.Label, { className: cn(ROW_CLASSES, checked && "bg-bg-selected", !disabled && "cursor-pointer hover:bg-bg-hover"), children: [
1249
+ leading,
1250
+ /* @__PURE__ */ jsx17("span", { className: cn("flex-1 min-w-0 truncate", WORDS_CLASSES), children: label }),
1251
+ box
1252
+ ] }) });
1253
+ }
1254
+ return /* @__PURE__ */ jsx17(BaseField.Root, { disabled, children: /* @__PURE__ */ jsxs11(BaseField.Label, { className: cn("flex items-center gap-2", !disabled && "cursor-pointer"), children: [
1255
+ box,
1256
+ /* @__PURE__ */ jsx17("span", { className: WORDS_CLASSES, children: label })
1257
+ ] }) });
1258
+ }
1259
+
1205
1260
  // src/EmptyState.tsx
1206
1261
  import { IconMessage2 } from "@tabler/icons-react";
1207
- import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
1262
+ import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1208
1263
  function EmptyState({ icon, message, scope = "page", action, className }) {
1209
1264
  if (scope === "rows") {
1210
- return /* @__PURE__ */ jsx17("div", { className: cn("px-2 py-1", className), children: /* @__PURE__ */ jsx17("p", { className: "text-caption text-text-muted", children: message }) });
1265
+ return /* @__PURE__ */ jsx18("div", { className: cn("px-2 py-1", className), children: /* @__PURE__ */ jsx18("p", { className: "text-caption text-text-muted", children: message }) });
1211
1266
  }
1212
1267
  if (scope === "section") {
1213
- const line = /* @__PURE__ */ jsx17("p", { className: cn("text-caption text-text-muted", !action && className), children: message });
1268
+ const line = /* @__PURE__ */ jsx18("p", { className: cn("text-caption text-text-muted", !action && className), children: message });
1214
1269
  if (!action) return line;
1215
- return /* @__PURE__ */ jsxs11("div", { className: cn("flex items-center justify-between gap-2", className), children: [
1270
+ return /* @__PURE__ */ jsxs12("div", { className: cn("flex items-center justify-between gap-2", className), children: [
1216
1271
  line,
1217
- /* @__PURE__ */ jsx17(Button, { variant: "muted", onClick: action.onClick, children: action.label })
1272
+ /* @__PURE__ */ jsx18(Button, { variant: "muted", onClick: action.onClick, children: action.label })
1218
1273
  ] });
1219
1274
  }
1220
- return /* @__PURE__ */ jsxs11("div", { className: cn("flex flex-1 flex-col items-center justify-center gap-2", className), children: [
1221
- /* @__PURE__ */ jsx17("span", { className: "text-text-secondary", children: icon ?? /* @__PURE__ */ jsx17(IconMessage2, { size: 16, stroke: 1.5 }) }),
1222
- /* @__PURE__ */ jsx17("p", { className: "text-body-2 text-text-secondary text-center", children: message }),
1223
- action && /* @__PURE__ */ jsx17(Button, { variant: "outlined", className: "mt-2", onClick: action.onClick, children: action.label })
1275
+ return /* @__PURE__ */ jsxs12("div", { className: cn("flex flex-1 flex-col items-center justify-center gap-2", className), children: [
1276
+ /* @__PURE__ */ jsx18("span", { className: "text-text-secondary", children: icon ?? /* @__PURE__ */ jsx18(IconMessage2, { size: 16, stroke: 1.5 }) }),
1277
+ /* @__PURE__ */ jsx18("p", { className: "text-body-2 text-text-secondary text-center", children: message }),
1278
+ action && /* @__PURE__ */ jsx18(Button, { variant: "outlined", className: "mt-2", onClick: action.onClick, children: action.label })
1224
1279
  ] });
1225
1280
  }
1226
1281
 
1227
1282
  // src/Field.tsx
1228
1283
  import { cloneElement, isValidElement } from "react";
1229
- import { Field as BaseField } from "@base-ui/react/field";
1230
- import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1284
+ import { Field as BaseField2 } from "@base-ui/react/field";
1285
+ import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
1231
1286
  var LINE_STYLES = {
1232
1287
  helper: "text-caption text-text-muted",
1233
1288
  warning: "text-caption text-warning-default",
@@ -1241,20 +1296,20 @@ function Field({ label, required = false, helper, error, children }) {
1241
1296
  // `group/field`: the label, the box and the line under it are one thing under the pointer —
1242
1297
  // anywhere in it strengthens the box's border, as hovering the box does (Katerina, 28 September).
1243
1298
  // Before, the 8px between the label and the box was a gap where the border went out again.
1244
- /* @__PURE__ */ jsxs12(BaseField.Root, { invalid: !!error, className: "group/field flex flex-col gap-2", children: [
1245
- /* @__PURE__ */ jsxs12(BaseField.Label, { className: cn("text-input-label text-text-primary", required && "flex items-center"), children: [
1299
+ /* @__PURE__ */ jsxs13(BaseField2.Root, { invalid: !!error, className: "group/field flex flex-col gap-2", children: [
1300
+ /* @__PURE__ */ jsxs13(BaseField2.Label, { className: cn("text-input-label text-text-primary", required && "flex items-center"), children: [
1246
1301
  label,
1247
- required && /* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: "text-error-default ml-0.5", children: "*" })
1302
+ required && /* @__PURE__ */ jsx19("span", { "aria-hidden": "true", className: "text-error-default ml-0.5", children: "*" })
1248
1303
  ] }),
1249
- /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-1.5", children: [
1304
+ /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-1.5", children: [
1250
1305
  control,
1251
- error != null ? /* @__PURE__ */ jsx18(BaseField.Error, { match: true, className: LINE_STYLES.error, children: error }) : helper != null ? /* @__PURE__ */ jsx18(BaseField.Description, { className: LINE_STYLES.helper, children: helper }) : null
1306
+ error != null ? /* @__PURE__ */ jsx19(BaseField2.Error, { match: true, className: LINE_STYLES.error, children: error }) : helper != null ? /* @__PURE__ */ jsx19(BaseField2.Description, { className: LINE_STYLES.helper, children: helper }) : null
1252
1307
  ] })
1253
1308
  ] })
1254
1309
  );
1255
1310
  }
1256
1311
  function FieldLine({ tone = "helper", children, className }) {
1257
- return /* @__PURE__ */ jsx18("p", { role: tone === "error" ? "alert" : "status", className: cn(LINE_STYLES[tone], className), children });
1312
+ return /* @__PURE__ */ jsx19("p", { role: tone === "error" ? "alert" : "status", className: cn(LINE_STYLES[tone], className), children });
1258
1313
  }
1259
1314
 
1260
1315
  // src/FormDialog.tsx
@@ -1280,7 +1335,7 @@ import { createContext as createContext4, useContext as useContext4, useId } fro
1280
1335
  import { Separator } from "@base-ui/react/separator";
1281
1336
 
1282
1337
  // src/SectionLabel.tsx
1283
- import { jsx as jsx19 } from "react/jsx-runtime";
1338
+ import { jsx as jsx20 } from "react/jsx-runtime";
1284
1339
  function SectionLabel({
1285
1340
  children,
1286
1341
  tone = "primary",
@@ -1288,7 +1343,7 @@ function SectionLabel({
1288
1343
  folds = false,
1289
1344
  className
1290
1345
  }) {
1291
- return /* @__PURE__ */ jsx19(
1346
+ return /* @__PURE__ */ jsx20(
1292
1347
  "span",
1293
1348
  {
1294
1349
  className: cn(
@@ -1309,7 +1364,7 @@ function SectionLabel({
1309
1364
  }
1310
1365
 
1311
1366
  // src/Divider.tsx
1312
- import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
1367
+ import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
1313
1368
  var DividerInPanel = createContext4(false);
1314
1369
  function Divider({ orientation = "horizontal", label, tone = "default", look = "caption", sticky = false, className }) {
1315
1370
  const inset = useContext4(DividerInPanel) ? "mx-0" : "mx-3";
@@ -1320,27 +1375,27 @@ function Divider({ orientation = "horizontal", label, tone = "default", look = "
1320
1375
  const id = typeof label === "string" ? void 0 : labelId;
1321
1376
  const stays = sticky && "sticky top-0 z-10 bg-bg-surface";
1322
1377
  if (look === "section") {
1323
- return /* @__PURE__ */ jsxs13(Separator, { orientation: "horizontal", ...named2, className: cn("flex shrink-0 items-center gap-2 px-2 py-1.5", stays, className), children: [
1324
- /* @__PURE__ */ jsx20("span", { "aria-hidden": "true", className: "h-px flex-1 bg-border-subtle" }),
1325
- /* @__PURE__ */ jsx20("span", { id, className: "flex min-w-0", children: /* @__PURE__ */ jsx20(SectionLabel, { tone: "muted", truncate: true, children: label }) }),
1326
- /* @__PURE__ */ jsx20("span", { "aria-hidden": "true", className: "h-px flex-1 bg-border-subtle" })
1378
+ return /* @__PURE__ */ jsxs14(Separator, { orientation: "horizontal", ...named2, className: cn("flex shrink-0 items-center gap-2 px-2 py-1.5", stays, className), children: [
1379
+ /* @__PURE__ */ jsx21("span", { "aria-hidden": "true", className: "h-px flex-1 bg-border-subtle" }),
1380
+ /* @__PURE__ */ jsx21("span", { id, className: "flex min-w-0", children: /* @__PURE__ */ jsx21(SectionLabel, { tone: "muted", truncate: true, children: label }) }),
1381
+ /* @__PURE__ */ jsx21("span", { "aria-hidden": "true", className: "h-px flex-1 bg-border-subtle" })
1327
1382
  ] });
1328
1383
  }
1329
- return /* @__PURE__ */ jsxs13(
1384
+ return /* @__PURE__ */ jsxs14(
1330
1385
  Separator,
1331
1386
  {
1332
1387
  orientation: "horizontal",
1333
1388
  ...named2,
1334
1389
  className: cn("flex shrink-0 items-center gap-2", inset, stays, className),
1335
1390
  children: [
1336
- /* @__PURE__ */ jsx20("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) }),
1337
- /* @__PURE__ */ jsx20("span", { id, className: cn("shrink-0 text-caption", tone === "warning" ? "text-warning-default" : "text-text-muted"), children: label }),
1338
- /* @__PURE__ */ jsx20("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) })
1391
+ /* @__PURE__ */ jsx21("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) }),
1392
+ /* @__PURE__ */ jsx21("span", { id, className: cn("shrink-0 text-caption", tone === "warning" ? "text-warning-default" : "text-text-muted"), children: label }),
1393
+ /* @__PURE__ */ jsx21("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) })
1339
1394
  ]
1340
1395
  }
1341
1396
  );
1342
1397
  }
1343
- return /* @__PURE__ */ jsx20(
1398
+ return /* @__PURE__ */ jsx21(
1344
1399
  Separator,
1345
1400
  {
1346
1401
  orientation,
@@ -1356,10 +1411,10 @@ function triggerDisabled(trigger) {
1356
1411
  }
1357
1412
 
1358
1413
  // src/Menu.tsx
1359
- import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
1414
+ import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
1360
1415
  var MenuContext = createContext5(null);
1361
1416
  function MenuPanel({ children, className, ...props }) {
1362
- return /* @__PURE__ */ jsx21(
1417
+ return /* @__PURE__ */ jsx22(
1363
1418
  "div",
1364
1419
  {
1365
1420
  className: cn(
@@ -1391,7 +1446,7 @@ var VIEWPORT_PAD2 = 8;
1391
1446
  var HOVER_OPEN_DELAY = 0;
1392
1447
  var HOVER_CLOSE_DELAY = 150;
1393
1448
  function Menu({ trigger, align = "left", openOnHover = false, open, onOpenChange, actionsRef, children, className, contentClassName }) {
1394
- return /* @__PURE__ */ jsxs14(
1449
+ return /* @__PURE__ */ jsxs15(
1395
1450
  BaseMenu.Root,
1396
1451
  {
1397
1452
  open,
@@ -1399,7 +1454,7 @@ function Menu({ trigger, align = "left", openOnHover = false, open, onOpenChange
1399
1454
  actionsRef,
1400
1455
  modal: false,
1401
1456
  children: [
1402
- /* @__PURE__ */ jsx21(
1457
+ /* @__PURE__ */ jsx22(
1403
1458
  BaseMenu.Trigger,
1404
1459
  {
1405
1460
  render: trigger,
@@ -1409,7 +1464,7 @@ function Menu({ trigger, align = "left", openOnHover = false, open, onOpenChange
1409
1464
  closeDelay: HOVER_CLOSE_DELAY
1410
1465
  }
1411
1466
  ),
1412
- /* @__PURE__ */ jsx21(BaseMenu.Portal, { children: /* @__PURE__ */ jsx21(
1467
+ /* @__PURE__ */ jsx22(BaseMenu.Portal, { children: /* @__PURE__ */ jsx22(
1413
1468
  BaseMenu.Positioner,
1414
1469
  {
1415
1470
  side: "bottom",
@@ -1417,13 +1472,13 @@ function Menu({ trigger, align = "left", openOnHover = false, open, onOpenChange
1417
1472
  sideOffset: GAP2,
1418
1473
  collisionPadding: VIEWPORT_PAD2,
1419
1474
  className: "z-50 data-[anchor-hidden]:hidden",
1420
- children: /* @__PURE__ */ jsx21(
1475
+ children: /* @__PURE__ */ jsx22(
1421
1476
  BaseMenu.Popup,
1422
1477
  {
1423
1478
  "data-interactive": true,
1424
1479
  className: cn("min-w-[180px] outline-none p-0", className),
1425
- render: /* @__PURE__ */ jsx21(MenuPanel, {}),
1426
- children: /* @__PURE__ */ jsx21(ScrollArea, { viewportClassName: "max-h-[var(--available-height)]", contentClassName: cn("flex flex-col gap-0.5 p-2", contentClassName), children: /* @__PURE__ */ jsx21(MenuContext.Provider, { value: { openOnHover }, children: /* @__PURE__ */ jsx21(DividerInPanel.Provider, { value: true, children }) }) })
1480
+ render: /* @__PURE__ */ jsx22(MenuPanel, {}),
1481
+ children: /* @__PURE__ */ jsx22(ScrollArea, { viewportClassName: "max-h-[var(--available-height)]", contentClassName: cn("flex flex-col gap-0.5 p-2", contentClassName), children: /* @__PURE__ */ jsx22(MenuContext.Provider, { value: { openOnHover }, children: /* @__PURE__ */ jsx22(DividerInPanel.Provider, { value: true, children }) }) })
1427
1482
  }
1428
1483
  )
1429
1484
  }
@@ -1439,20 +1494,20 @@ function MenuSub({ label, leading, selected, children, className }) {
1439
1494
  '[@estiva-app/ui] Menu: `openOnHover` and `MenuSub` cannot be used together \u2014 leaving the submenu panel strands the menu open. Open this menu on a press instead. See Menu.mdx, "Hover-opened menus".'
1440
1495
  );
1441
1496
  }
1442
- return /* @__PURE__ */ jsxs14(BaseMenu.SubmenuRoot, { children: [
1443
- /* @__PURE__ */ jsx21(
1497
+ return /* @__PURE__ */ jsxs15(BaseMenu.SubmenuRoot, { children: [
1498
+ /* @__PURE__ */ jsx22(
1444
1499
  BaseMenu.SubmenuTrigger,
1445
1500
  {
1446
1501
  openOnHover: true,
1447
1502
  delay: 0,
1448
1503
  closeDelay: 150,
1449
1504
  nativeButton: true,
1450
- render: /* @__PURE__ */ jsx21("button", { type: "button" }),
1505
+ render: /* @__PURE__ */ jsx22("button", { type: "button" }),
1451
1506
  className: menuItemClassName({ size: "default", selected }),
1452
- children: /* @__PURE__ */ jsx21(MenuItemBody, { label, leading, submenu: true })
1507
+ children: /* @__PURE__ */ jsx22(MenuItemBody, { label, leading, submenu: true })
1453
1508
  }
1454
1509
  ),
1455
- /* @__PURE__ */ jsx21(BaseMenu.Portal, { children: /* @__PURE__ */ jsx21(
1510
+ /* @__PURE__ */ jsx22(BaseMenu.Portal, { children: /* @__PURE__ */ jsx22(
1456
1511
  BaseMenu.Positioner,
1457
1512
  {
1458
1513
  side: "inline-end",
@@ -1460,7 +1515,7 @@ function MenuSub({ label, leading, selected, children, className }) {
1460
1515
  sideOffset: GAP2,
1461
1516
  collisionPadding: VIEWPORT_PAD2,
1462
1517
  className: "z-50 data-[anchor-hidden]:hidden",
1463
- children: /* @__PURE__ */ jsx21(BaseMenu.Popup, { className: cn("w-[160px]", className), "data-interactive": true, render: /* @__PURE__ */ jsx21(MenuPanel, {}), children })
1518
+ children: /* @__PURE__ */ jsx22(BaseMenu.Popup, { className: cn("w-[160px]", className), "data-interactive": true, render: /* @__PURE__ */ jsx22(MenuPanel, {}), children })
1464
1519
  }
1465
1520
  ) })
1466
1521
  ] });
@@ -1501,29 +1556,29 @@ function menuItemClassName({ size, selected, shut = false, className }) {
1501
1556
  }
1502
1557
  function MenuItemBody({ label, children, size = "default", description, aside, leading, trailing, hint, shortcut, submenu, destructive, selected, shut = false }) {
1503
1558
  const labelColour = shut ? "text-text-disabled" : destructive ? "text-error-default" : "text-text-primary";
1504
- const edge = trailing ?? (shortcut ? /* @__PURE__ */ jsx21(Kbd, { children: shortcut }) : submenu ? /* @__PURE__ */ jsx21(IconChevronRight, { size: 16, stroke: 1.5, className: "shrink-0 text-text-muted" }) : null);
1505
- return /* @__PURE__ */ jsxs14(Fragment3, { children: [
1506
- leading && /* @__PURE__ */ jsx21("span", { className: "flex shrink-0 items-center", children: leading }),
1507
- children ?? /* @__PURE__ */ jsxs14("span", { className: cn("flex min-w-0 flex-1 flex-col", size === "tall" && "gap-[2px]"), children: [
1508
- aside ? /* @__PURE__ */ jsxs14("span", { className: "flex min-w-0 items-baseline gap-2", children: [
1509
- /* @__PURE__ */ jsx21("span", { className: cn("truncate text-body-2", labelColour), children: label }),
1510
- /* @__PURE__ */ jsx21("span", { className: cn("shrink-0 text-caption", shut ? "text-text-disabled" : "text-text-muted"), children: aside })
1511
- ] }) : /* @__PURE__ */ jsx21("span", { className: cn("truncate text-body-2", labelColour), children: label }),
1512
- description && /* @__PURE__ */ jsx21("span", { className: cn("truncate text-caption", shut ? "text-text-disabled" : "text-text-secondary"), children: description })
1559
+ 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);
1560
+ return /* @__PURE__ */ jsxs15(Fragment3, { children: [
1561
+ leading && /* @__PURE__ */ jsx22("span", { className: "flex shrink-0 items-center", children: leading }),
1562
+ children ?? /* @__PURE__ */ jsxs15("span", { className: cn("flex min-w-0 flex-1 flex-col", size === "tall" && "gap-[2px]"), children: [
1563
+ aside ? /* @__PURE__ */ jsxs15("span", { className: "flex min-w-0 items-baseline gap-2", children: [
1564
+ /* @__PURE__ */ jsx22("span", { className: cn("truncate text-body-2", labelColour), children: label }),
1565
+ /* @__PURE__ */ jsx22("span", { className: cn("shrink-0 text-caption", shut ? "text-text-disabled" : "text-text-muted"), children: aside })
1566
+ ] }) : /* @__PURE__ */ jsx22("span", { className: cn("truncate text-body-2", labelColour), children: label }),
1567
+ description && /* @__PURE__ */ jsx22("span", { className: cn("truncate text-caption", shut ? "text-text-disabled" : "text-text-secondary"), children: description })
1513
1568
  ] }),
1514
1569
  (edge || hint) && // One grid cell holding both, right-aligned: the slot is as wide as
1515
1570
  // the wider of the two and never changes, so revealing the hint moves
1516
1571
  // nothing. No transition here either — the hint switches on the same
1517
1572
  // :hover / `selected` as the fill, in the same frame.
1518
- /* @__PURE__ */ jsxs14("span", { className: "grid shrink-0 items-center justify-items-end [&>*]:col-start-1 [&>*]:row-start-1", children: [
1519
- edge && /* @__PURE__ */ jsx21("span", { className: cn("flex items-center", hint && "group-hover:opacity-0 group-data-[highlighted]:opacity-0", hint && selected && "opacity-0"), children: edge }),
1520
- hint && /* @__PURE__ */ jsx21("span", { className: cn("flex items-center opacity-0 group-hover:opacity-100 group-data-[highlighted]:opacity-100", selected && "opacity-100"), children: hint })
1573
+ /* @__PURE__ */ jsxs15("span", { className: "grid shrink-0 items-center justify-items-end [&>*]:col-start-1 [&>*]:row-start-1", children: [
1574
+ edge && /* @__PURE__ */ jsx22("span", { className: cn("flex items-center", hint && "group-hover:opacity-0 group-data-[highlighted]:opacity-0", hint && selected && "opacity-0"), children: edge }),
1575
+ hint && /* @__PURE__ */ jsx22("span", { className: cn("flex items-center opacity-0 group-hover:opacity-100 group-data-[highlighted]:opacity-100", selected && "opacity-100"), children: hint })
1521
1576
  ] })
1522
1577
  ] });
1523
1578
  }
1524
1579
  function MenuItem({ label, children, size = "default", description, aside, leading, trailing, hint, shortcut, submenu, destructive, selected, disabledReason, className, ...props }) {
1525
1580
  const shut = !!disabledReason;
1526
- const body = /* @__PURE__ */ jsx21(
1581
+ const body = /* @__PURE__ */ jsx22(
1527
1582
  MenuItemBody,
1528
1583
  {
1529
1584
  label,
@@ -1542,18 +1597,18 @@ function MenuItem({ label, children, size = "default", description, aside, leadi
1542
1597
  }
1543
1598
  );
1544
1599
  const rowClassName = menuItemClassName({ size, selected, shut, className });
1545
- const withReason = (row) => shut ? /* @__PURE__ */ jsx21(TooltipTrigger, { label: disabledReason ?? "", children: row }) : row;
1600
+ const withReason = (row) => shut ? /* @__PURE__ */ jsx22(TooltipTrigger, { label: disabledReason ?? "", children: row }) : row;
1546
1601
  if (!useContext5(MenuContext)) {
1547
1602
  return withReason(
1548
- /* @__PURE__ */ jsx21("button", { type: "button", className: rowClassName, ...props, ...shut ? { "aria-disabled": true, onClick: void 0 } : {}, children: body })
1603
+ /* @__PURE__ */ jsx22("button", { type: "button", className: rowClassName, ...props, ...shut ? { "aria-disabled": true, onClick: void 0 } : {}, children: body })
1549
1604
  );
1550
1605
  }
1551
1606
  return withReason(
1552
- /* @__PURE__ */ jsx21(
1607
+ /* @__PURE__ */ jsx22(
1553
1608
  BaseMenu.Item,
1554
1609
  {
1555
1610
  nativeButton: true,
1556
- render: /* @__PURE__ */ jsx21("button", { type: "button" }),
1611
+ render: /* @__PURE__ */ jsx22("button", { type: "button" }),
1557
1612
  className: rowClassName,
1558
1613
  ...props,
1559
1614
  disabled: props.disabled || shut,
@@ -1563,39 +1618,39 @@ function MenuItem({ label, children, size = "default", description, aside, leadi
1563
1618
  );
1564
1619
  }
1565
1620
  function EnterHint({ target }) {
1566
- return /* @__PURE__ */ jsxs14("span", { className: "flex shrink-0 items-center gap-1.5 text-text-muted", children: [
1567
- /* @__PURE__ */ jsx21(Kbd, { children: "\u21A9 Enter" }),
1568
- target && /* @__PURE__ */ jsx21("span", { className: "text-menu signal:font-mono signal:text-small signal:tracking-wider leaf:font-mono leaf:text-small leaf:tracking-wider", children: target })
1621
+ return /* @__PURE__ */ jsxs15("span", { className: "flex shrink-0 items-center gap-1.5 text-text-muted", children: [
1622
+ /* @__PURE__ */ jsx22(Kbd, { children: "\u21A9 Enter" }),
1623
+ target && /* @__PURE__ */ jsx22("span", { className: "text-menu signal:font-mono signal:text-small signal:tracking-wider leaf:font-mono leaf:text-small leaf:tracking-wider", children: target })
1569
1624
  ] });
1570
1625
  }
1571
1626
  function MenuSection({ label, children, className }) {
1572
1627
  const inMenu = useContext5(MenuContext) !== null;
1573
- const heading = /* @__PURE__ */ jsx21("div", { className: cn("flex h-8 items-center px-2", className), children: /* @__PURE__ */ jsx21(SectionLabel, { tone: "secondary", children: label }) });
1628
+ const heading = /* @__PURE__ */ jsx22("div", { className: cn("flex h-8 items-center px-2", className), children: /* @__PURE__ */ jsx22(SectionLabel, { tone: "secondary", children: label }) });
1574
1629
  if (!inMenu) {
1575
- return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-0.5", children: [
1630
+ return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-0.5", children: [
1576
1631
  heading,
1577
1632
  children
1578
1633
  ] });
1579
1634
  }
1580
- return /* @__PURE__ */ jsxs14(BaseMenu.Group, { className: "flex flex-col gap-0.5", children: [
1581
- /* @__PURE__ */ jsx21(BaseMenu.GroupLabel, { render: heading }),
1635
+ return /* @__PURE__ */ jsxs15(BaseMenu.Group, { className: "flex flex-col gap-0.5", children: [
1636
+ /* @__PURE__ */ jsx22(BaseMenu.GroupLabel, { render: heading }),
1582
1637
  children
1583
1638
  ] });
1584
1639
  }
1585
1640
  function MenuSeparator() {
1586
- return /* @__PURE__ */ jsx21(Divider, { className: "my-1" });
1641
+ return /* @__PURE__ */ jsx22(Divider, { className: "my-1" });
1587
1642
  }
1588
1643
  function MenuRow({ children, className }) {
1589
- return /* @__PURE__ */ jsx21("div", { className: cn("flex items-center gap-2 px-2 py-1.5", className), children });
1644
+ return /* @__PURE__ */ jsx22("div", { className: cn("flex items-center gap-2 px-2 py-1.5", className), children });
1590
1645
  }
1591
1646
 
1592
1647
  // src/ContainerHeader.tsx
1593
- import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
1648
+ import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
1594
1649
  function ContainerHeader({ title, chevron = false, titleMenu, actions, className }) {
1595
1650
  const text = typeof title === "string";
1596
- const name = /* @__PURE__ */ jsxs15("div", { className: cn("flex items-center gap-1", text ? "shrink-0" : "min-w-0 flex-1"), children: [
1597
- text ? /* @__PURE__ */ jsx22("span", { className: "whitespace-nowrap text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx22("div", { className: "min-w-0 flex-1", children: title }),
1598
- (chevron || titleMenu != null) && /* @__PURE__ */ jsx22(IconChevronDown, { size: 12, stroke: 1.5, className: "shrink-0 text-text-secondary" })
1651
+ const name = /* @__PURE__ */ jsxs16("div", { className: cn("flex items-center gap-1", text ? "shrink-0" : "min-w-0 flex-1"), children: [
1652
+ text ? /* @__PURE__ */ jsx23("span", { className: "whitespace-nowrap text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx23("div", { className: "min-w-0 flex-1", children: title }),
1653
+ (chevron || titleMenu != null) && /* @__PURE__ */ jsx23(IconChevronDown, { size: 12, stroke: 1.5, className: "shrink-0 text-text-secondary" })
1599
1654
  ] });
1600
1655
  return (
1601
1656
  // The title 16px in, where the column's content starts (Katerina, 7 October; it was 20px).
@@ -1603,34 +1658,34 @@ function ContainerHeader({ title, chevron = false, titleMenu, actions, className
1603
1658
  // (pl-2.5 + the button's px-1.5 = pl-4): the words stay where a title's
1604
1659
  // are, and the fill is inside the bar — a negative margin had it clipped
1605
1660
  // (Katerina, 5 October).
1606
- /* @__PURE__ */ jsxs15("div", { className: cn("flex h-12 shrink-0 items-center justify-between overflow-hidden border-b border-border-subtle py-2 pr-4", titleMenu != null ? "pl-2.5" : "pl-4", className), children: [
1607
- /* @__PURE__ */ jsx22("div", { className: cn("flex items-center gap-2 overflow-hidden", text ? "shrink-0" : "min-w-0 flex-1"), children: titleMenu != null ? /* @__PURE__ */ jsx22(
1661
+ /* @__PURE__ */ jsxs16("div", { className: cn("flex h-12 shrink-0 items-center justify-between overflow-hidden border-b border-border-subtle py-2 pr-4", titleMenu != null ? "pl-2.5" : "pl-4", className), children: [
1662
+ /* @__PURE__ */ jsx23("div", { className: cn("flex items-center gap-2 overflow-hidden", text ? "shrink-0" : "min-w-0 flex-1"), children: titleMenu != null ? /* @__PURE__ */ jsx23(
1608
1663
  Menu,
1609
1664
  {
1610
- trigger: /* @__PURE__ */ jsx22(BaseButton5, { type: "button", className: cn("flex min-w-0 items-center px-1.5 py-1", MENU_TRIGGER_CLASSES), children: name }),
1665
+ trigger: /* @__PURE__ */ jsx23(BaseButton5, { type: "button", className: cn("flex min-w-0 items-center px-1.5 py-1", MENU_TRIGGER_CLASSES), children: name }),
1611
1666
  children: titleMenu
1612
1667
  }
1613
1668
  ) : name }),
1614
- actions && /* @__PURE__ */ jsx22("div", { className: "flex shrink-0 items-center justify-end gap-3", children: /* @__PURE__ */ jsx22("div", { className: "flex shrink-0 items-center gap-1", children: actions }) })
1669
+ actions && /* @__PURE__ */ jsx23("div", { className: "flex shrink-0 items-center justify-end gap-3", children: /* @__PURE__ */ jsx23("div", { className: "flex shrink-0 items-center gap-1", children: actions }) })
1615
1670
  ] })
1616
1671
  );
1617
1672
  }
1618
1673
 
1619
1674
  // src/DialogShell.tsx
1620
- import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
1675
+ import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
1621
1676
  function DialogShell({ title, onClose, headerContent, footer, children, bodyClassName, bodyMaxHeight, width = 502, alert = false }) {
1622
1677
  const Parts = alert ? AlertDialog : Dialog2;
1623
1678
  const popupRef = useRef4(null);
1624
- return /* @__PURE__ */ jsx23(
1679
+ return /* @__PURE__ */ jsx24(
1625
1680
  Parts.Root,
1626
1681
  {
1627
1682
  open: true,
1628
1683
  onOpenChange: (open) => {
1629
1684
  if (!open) onClose();
1630
1685
  },
1631
- children: /* @__PURE__ */ jsxs16(Parts.Portal, { children: [
1632
- /* @__PURE__ */ jsx23(Parts.Backdrop, { className: "fixed inset-0 z-40 bg-scrim" }),
1633
- /* @__PURE__ */ jsx23("div", { className: "fixed inset-0 z-50 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ jsxs16(
1686
+ children: /* @__PURE__ */ jsxs17(Parts.Portal, { children: [
1687
+ /* @__PURE__ */ jsx24(Parts.Backdrop, { className: "fixed inset-0 z-40 bg-scrim" }),
1688
+ /* @__PURE__ */ jsx24("div", { className: "fixed inset-0 z-50 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ jsxs17(
1634
1689
  Parts.Popup,
1635
1690
  {
1636
1691
  ref: popupRef,
@@ -1639,11 +1694,11 @@ function DialogShell({ title, onClose, headerContent, footer, children, bodyClas
1639
1694
  className: "bg-bg-elevated border border-border-subtle rounded-lg shadow-lg pointer-events-auto flex flex-col overflow-hidden outline-none",
1640
1695
  style: { width },
1641
1696
  children: [
1642
- /* @__PURE__ */ jsx23(
1697
+ /* @__PURE__ */ jsx24(
1643
1698
  ContainerHeader,
1644
1699
  {
1645
1700
  className: "pl-5",
1646
- title: headerContent ?? /* @__PURE__ */ jsx23(Parts.Title, { className: "block truncate text-h4 text-text-primary", render: /* @__PURE__ */ jsx23("span", {}), children: title }),
1701
+ title: headerContent ?? /* @__PURE__ */ jsx24(Parts.Title, { className: "block truncate text-h4 text-text-primary", render: /* @__PURE__ */ jsx24("span", {}), children: title }),
1647
1702
  actions: (
1648
1703
  /*
1649
1704
  The ✕ IS the `Close` part now, rather than a button that calls
@@ -1657,10 +1712,10 @@ function DialogShell({ title, onClose, headerContent, footer, children, bodyClas
1657
1712
  so the ✕, Escape and the outside press are one path with one
1658
1713
  reason attached, instead of one of the three going around.
1659
1714
  */
1660
- /* @__PURE__ */ jsx23(
1715
+ /* @__PURE__ */ jsx24(
1661
1716
  Parts.Close,
1662
1717
  {
1663
- render: /* @__PURE__ */ jsx23(IconButton, { tooltip: "Close", "aria-label": "Close", children: /* @__PURE__ */ jsx23(IconX3, { size: 16, stroke: 1.5 }) })
1718
+ render: /* @__PURE__ */ jsx24(IconButton, { tooltip: "Close", "aria-label": "Close", children: /* @__PURE__ */ jsx24(IconX3, { size: 16, stroke: 1.5 }) })
1664
1719
  }
1665
1720
  )
1666
1721
  )
@@ -1668,9 +1723,9 @@ function DialogShell({ title, onClose, headerContent, footer, children, bodyClas
1668
1723
  ),
1669
1724
  bodyMaxHeight ? (
1670
1725
  // The line above the footer on a box of the shell's own, not pushed into ScrollArea (UIG-9).
1671
- /* @__PURE__ */ jsx23("div", { className: cn(footer != null && "border-b border-border-subtle"), children: /* @__PURE__ */ jsx23(ScrollArea, { viewportClassName: bodyMaxHeight, contentClassName: cn("pl-5 pr-4 py-4", bodyClassName), children }) })
1672
- ) : /* @__PURE__ */ jsx23("div", { className: cn("pl-5 pr-4 py-4", footer != null && "border-b border-border-subtle", bodyClassName), children }),
1673
- footer != null && /* @__PURE__ */ jsx23("div", { className: "h-12 flex items-center justify-end gap-2 pl-5 pr-4 shrink-0", children: footer })
1726
+ /* @__PURE__ */ jsx24("div", { className: cn(footer != null && "border-b border-border-subtle"), children: /* @__PURE__ */ jsx24(ScrollArea, { viewportClassName: bodyMaxHeight, contentClassName: cn("pl-5 pr-4 py-4", bodyClassName), children }) })
1727
+ ) : /* @__PURE__ */ jsx24("div", { className: cn("pl-5 pr-4 py-4", footer != null && "border-b border-border-subtle", bodyClassName), children }),
1728
+ footer != null && /* @__PURE__ */ jsx24("div", { className: "h-12 flex items-center justify-end gap-2 pl-5 pr-4 shrink-0", children: footer })
1674
1729
  ]
1675
1730
  }
1676
1731
  ) })
@@ -1683,7 +1738,7 @@ function DialogShell({ title, onClose, headerContent, footer, children, bodyClas
1683
1738
  import { useLayoutEffect as useLayoutEffect2, useRef as useRef5 } from "react";
1684
1739
  import { Fieldset } from "@base-ui/react/fieldset";
1685
1740
  import { Form as BaseForm } from "@base-ui/react/form";
1686
- import { jsx as jsx24 } from "react/jsx-runtime";
1741
+ import { jsx as jsx25 } from "react/jsx-runtime";
1687
1742
  var FIELDS_CLASSES = "flex flex-col gap-6";
1688
1743
  var CONTROL = 'input:not([type="hidden"]), textarea, select, button, [role="checkbox"], [role="combobox"], [tabindex]:not([tabindex="-1"])';
1689
1744
  var ONE_LINE = /* @__PURE__ */ new Set(["", "text", "search", "email", "url", "tel", "password", "number"]);
@@ -1743,7 +1798,7 @@ function Form({ onSubmit, busy: ownBusy = false, enterSends = true, layout = "fi
1743
1798
  const oneLine = ONE_LINE.has((target.getAttribute("type") ?? "").toLowerCase()) && target.getAttribute("role") !== "combobox";
1744
1799
  if (enterSends && oneLine) form.current?.requestSubmit();
1745
1800
  };
1746
- return /* @__PURE__ */ jsx24(
1801
+ return /* @__PURE__ */ jsx25(
1747
1802
  BaseForm,
1748
1803
  {
1749
1804
  ref: form,
@@ -1766,13 +1821,13 @@ function Form({ onSubmit, busy: ownBusy = false, enterSends = true, layout = "fi
1766
1821
  if (busyNow.current) return;
1767
1822
  void onSubmit();
1768
1823
  },
1769
- children: /* @__PURE__ */ jsx24(Fieldset.Root, { disabled: busy, className: "contents", children: /* @__PURE__ */ jsx24(FormBusyContext.Provider, { value: busy, children }) })
1824
+ children: /* @__PURE__ */ jsx25(Fieldset.Root, { disabled: busy, className: "contents", children: /* @__PURE__ */ jsx25(FormBusyContext.Provider, { value: busy, children }) })
1770
1825
  }
1771
1826
  );
1772
1827
  }
1773
1828
 
1774
1829
  // src/FormDialog.tsx
1775
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
1830
+ import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
1776
1831
  function FormDialog({ title, submitLabel, busyLabel, submitVariant = "primary", ready = true, onSubmit, onClose, children }) {
1777
1832
  const [busy, setBusy] = useState3(false);
1778
1833
  const sending = useRef6(false);
@@ -1798,25 +1853,25 @@ function FormDialog({ title, submitLabel, busyLabel, submitVariant = "primary",
1798
1853
  }
1799
1854
  if (answer !== false && !closed.current) close();
1800
1855
  };
1801
- return /* @__PURE__ */ jsx25(
1856
+ return /* @__PURE__ */ jsx26(
1802
1857
  DialogShell,
1803
1858
  {
1804
1859
  title,
1805
1860
  onClose: close,
1806
- footer: /* @__PURE__ */ jsxs17(Fragment4, { children: [
1807
- /* @__PURE__ */ jsx25(Button, { variant: "muted", onClick: close, disabled: busy, children: "Cancel" }),
1808
- /* @__PURE__ */ jsx25(Button, { variant: submitVariant, type: "submit", form: formId, disabled: !ready || busy, children: busy && busyLabel ? busyLabel : submitLabel })
1861
+ footer: /* @__PURE__ */ jsxs18(Fragment4, { children: [
1862
+ /* @__PURE__ */ jsx26(Button, { variant: "muted", onClick: close, disabled: busy, children: "Cancel" }),
1863
+ /* @__PURE__ */ jsx26(Button, { variant: submitVariant, type: "submit", form: formId, disabled: !ready || busy, children: busy && busyLabel ? busyLabel : submitLabel })
1809
1864
  ] }),
1810
- children: /* @__PURE__ */ jsx25(Form, { id: formId, busy, onSubmit: send, children })
1865
+ children: /* @__PURE__ */ jsx26(Form, { id: formId, busy, onSubmit: send, children })
1811
1866
  }
1812
1867
  );
1813
1868
  }
1814
1869
 
1815
1870
  // src/Select.tsx
1816
- import { IconCheck, IconChevronDown as IconChevronDown2 } from "@tabler/icons-react";
1871
+ import { IconCheck as IconCheck2, IconChevronDown as IconChevronDown2 } from "@tabler/icons-react";
1817
1872
  import { Select as BaseSelect } from "@base-ui/react/select";
1818
1873
  import { useEffect as useEffect3, useState as useState4 } from "react";
1819
- import { jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
1874
+ import { jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
1820
1875
  var GAP3 = 4;
1821
1876
  var VIEWPORT_PAD3 = 8;
1822
1877
  function Select({ value, onChange, options, size = "default", fill = "field", ariaLabel, placeholder = "Select\u2026", disabled, disabledReason, className, ...aria }) {
@@ -1828,7 +1883,7 @@ function Select({ value, onChange, options, size = "default", fill = "field", ar
1828
1883
  }, [held]);
1829
1884
  const trigger = (
1830
1885
  // @estiva-escape(no-copied-look): N1 (Katerina, 24 September: record only): Select's box drops the hover while held, so it cannot take FIELD_SHELL_CLASSES as it is
1831
- /* @__PURE__ */ jsxs18(
1886
+ /* @__PURE__ */ jsxs19(
1832
1887
  BaseSelect.Trigger,
1833
1888
  {
1834
1889
  "aria-label": ariaLabel,
@@ -1863,21 +1918,21 @@ function Select({ value, onChange, options, size = "default", fill = "field", ar
1863
1918
  className
1864
1919
  ),
1865
1920
  children: [
1866
- /* @__PURE__ */ jsxs18("span", { className: cn("flex min-w-0 items-center gap-2", !selected && "text-text-muted"), children: [
1867
- selected?.leading && /* @__PURE__ */ jsx26("span", { className: "flex shrink-0 items-center", children: selected.leading }),
1868
- /* @__PURE__ */ jsx26(BaseSelect.Value, { className: "truncate", children: () => selected?.label ?? placeholder })
1921
+ /* @__PURE__ */ jsxs19("span", { className: cn("flex min-w-0 items-center gap-2", !selected && "text-text-muted"), children: [
1922
+ selected?.leading && /* @__PURE__ */ jsx27("span", { className: "flex shrink-0 items-center", children: selected.leading }),
1923
+ /* @__PURE__ */ jsx27(BaseSelect.Value, { className: "truncate", children: () => selected?.label ?? placeholder })
1869
1924
  ] }),
1870
- /* @__PURE__ */ jsx26(
1925
+ /* @__PURE__ */ jsx27(
1871
1926
  BaseSelect.Icon,
1872
1927
  {
1873
- render: /* @__PURE__ */ jsx26(IconChevronDown2, { size: size === "small" ? 14 : 16, stroke: 1.5, className: "shrink-0 text-text-secondary" })
1928
+ render: /* @__PURE__ */ jsx27(IconChevronDown2, { size: size === "small" ? 14 : 16, stroke: 1.5, className: "shrink-0 text-text-secondary" })
1874
1929
  }
1875
1930
  )
1876
1931
  ]
1877
1932
  }
1878
1933
  )
1879
1934
  );
1880
- return /* @__PURE__ */ jsxs18(
1935
+ return /* @__PURE__ */ jsxs19(
1881
1936
  BaseSelect.Root,
1882
1937
  {
1883
1938
  value,
@@ -1891,8 +1946,8 @@ function Select({ value, onChange, options, size = "default", fill = "field", ar
1891
1946
  disabled: disabled && !held,
1892
1947
  modal: false,
1893
1948
  children: [
1894
- held ? /* @__PURE__ */ jsx26(TooltipTrigger, { label: disabledReason ?? "", children: trigger }) : trigger,
1895
- /* @__PURE__ */ jsx26(BaseSelect.Portal, { children: /* @__PURE__ */ jsx26(
1949
+ held ? /* @__PURE__ */ jsx27(TooltipTrigger, { label: disabledReason ?? "", children: trigger }) : trigger,
1950
+ /* @__PURE__ */ jsx27(BaseSelect.Portal, { children: /* @__PURE__ */ jsx27(
1896
1951
  BaseSelect.Positioner,
1897
1952
  {
1898
1953
  side: "bottom",
@@ -1901,25 +1956,25 @@ function Select({ value, onChange, options, size = "default", fill = "field", ar
1901
1956
  collisionPadding: VIEWPORT_PAD3,
1902
1957
  alignItemWithTrigger: false,
1903
1958
  className: "z-50 data-[anchor-hidden]:hidden",
1904
- children: /* @__PURE__ */ jsx26(
1959
+ children: /* @__PURE__ */ jsx27(
1905
1960
  BaseSelect.Popup,
1906
1961
  {
1907
- render: /* @__PURE__ */ jsx26(MenuPanel, {}),
1962
+ render: /* @__PURE__ */ jsx27(MenuPanel, {}),
1908
1963
  className: "min-w-[var(--anchor-width)] p-0",
1909
- children: /* @__PURE__ */ jsx26(ScrollArea, { viewportClassName: "max-h-[min(288px,var(--available-height))]", contentClassName: "flex flex-col gap-0.5 p-2", children: options.map((option) => /* @__PURE__ */ jsxs18(
1964
+ children: /* @__PURE__ */ jsx27(ScrollArea, { viewportClassName: "max-h-[min(288px,var(--available-height))]", contentClassName: "flex flex-col gap-0.5 p-2", children: options.map((option) => /* @__PURE__ */ jsxs19(
1910
1965
  BaseSelect.Item,
1911
1966
  {
1912
1967
  value: option.value,
1913
1968
  className: cn(menuItemClassName({ size: "default" }), "justify-between data-[selected]:font-medium"),
1914
1969
  children: [
1915
- /* @__PURE__ */ jsxs18("span", { className: "flex min-w-0 items-center gap-2", children: [
1916
- option.leading && /* @__PURE__ */ jsx26("span", { className: "flex shrink-0 items-center", children: option.leading }),
1917
- /* @__PURE__ */ jsx26(BaseSelect.ItemText, { className: "truncate text-body-2 text-text-primary", children: option.label })
1970
+ /* @__PURE__ */ jsxs19("span", { className: "flex min-w-0 items-center gap-2", children: [
1971
+ option.leading && /* @__PURE__ */ jsx27("span", { className: "flex shrink-0 items-center", children: option.leading }),
1972
+ /* @__PURE__ */ jsx27(BaseSelect.ItemText, { className: "truncate text-body-2 text-text-primary", children: option.label })
1918
1973
  ] }),
1919
- /* @__PURE__ */ jsx26(
1974
+ /* @__PURE__ */ jsx27(
1920
1975
  BaseSelect.ItemIndicator,
1921
1976
  {
1922
- render: /* @__PURE__ */ jsx26(IconCheck, { size: 16, stroke: 1.5, className: "shrink-0 text-text-secondary" })
1977
+ render: /* @__PURE__ */ jsx27(IconCheck2, { size: 16, stroke: 1.5, className: "shrink-0 text-text-secondary" })
1923
1978
  }
1924
1979
  )
1925
1980
  ]
@@ -1936,7 +1991,7 @@ function Select({ value, onChange, options, size = "default", fill = "field", ar
1936
1991
  }
1937
1992
 
1938
1993
  // src/MoveDialog.tsx
1939
- import { Fragment as Fragment5, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
1994
+ import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
1940
1995
  var TOP = "__top__";
1941
1996
  function MoveDialog({
1942
1997
  title,
@@ -1951,9 +2006,11 @@ function MoveDialog({
1951
2006
  heading = "Move",
1952
2007
  folderLabel = "Folder",
1953
2008
  noFolder = "There is no other folder it can be moved to.",
2009
+ check,
1954
2010
  onMove,
1955
2011
  onClose
1956
2012
  }) {
2013
+ const [ticked, setTicked] = useState5(check?.checked ?? false);
1957
2014
  const nests = !!placesIn;
1958
2015
  const destinations = folders && (nests ? folders : folders.filter((folder2) => folder2.id !== from));
1959
2016
  const offered = (id) => !!id && !!destinations?.some((candidate) => candidate.id === id);
@@ -1989,21 +2046,23 @@ function MoveDialog({
1989
2046
  const valueOf = (place) => place.id || TOP;
1990
2047
  const parent = picked ?? (startAtTop && targets[0] && !targets[0].id ? TOP : void 0);
1991
2048
  const ready = !!folder && (!nests || !!parent);
1992
- return /* @__PURE__ */ jsx27(
2049
+ const checkLabel = folder ? check?.label(folder) : void 0;
2050
+ const asked2 = checkLabel === void 0 ? {} : { checked: ticked };
2051
+ return /* @__PURE__ */ jsx28(
1993
2052
  FormDialog,
1994
2053
  {
1995
2054
  title: heading,
1996
2055
  submitLabel: "Move",
1997
2056
  busyLabel: "Moving\u2026",
1998
2057
  ready,
1999
- onSubmit: () => onMove(nests ? { folder, parent: parent === TOP ? "" : parent } : { folder }),
2058
+ onSubmit: () => onMove({ ...nests ? { folder, parent: parent === TOP ? "" : parent } : { folder }, ...asked2 }),
2000
2059
  onClose,
2001
- children: destinations?.length === 0 ? /* @__PURE__ */ jsx27(EmptyState, { scope: "section", message: noFolder }) : /* @__PURE__ */ jsxs19(Fragment5, { children: [
2002
- /* @__PURE__ */ jsxs19("div", { className: "flex flex-col gap-2", children: [
2003
- /* @__PURE__ */ jsx27("p", { className: "text-body-2-strong text-text-primary", children: title }),
2004
- /* @__PURE__ */ jsx27("p", { className: "text-body-2 text-text-secondary", children: description })
2060
+ children: destinations?.length === 0 ? /* @__PURE__ */ jsx28(EmptyState, { scope: "section", message: noFolder }) : /* @__PURE__ */ jsxs20(Fragment5, { children: [
2061
+ /* @__PURE__ */ jsxs20("div", { className: "flex flex-col gap-2", children: [
2062
+ /* @__PURE__ */ jsx28("p", { className: "text-body-2-strong text-text-primary", children: title }),
2063
+ /* @__PURE__ */ jsx28("p", { className: "text-body-2 text-text-secondary", children: description })
2005
2064
  ] }),
2006
- /* @__PURE__ */ jsx27(Field, { label: folderLabel, children: /* @__PURE__ */ jsx27(
2065
+ /* @__PURE__ */ jsx28(Field, { label: folderLabel, children: /* @__PURE__ */ jsx28(
2007
2066
  Select,
2008
2067
  {
2009
2068
  value: folder,
@@ -2013,7 +2072,7 @@ function MoveDialog({
2013
2072
  ariaLabel: folderLabel
2014
2073
  }
2015
2074
  ) }),
2016
- nests && folder && (status === "failed" ? /* @__PURE__ */ jsx27(EmptyState, { scope: "section", message: `${folderName} could not be read.`, action: { label: "Try again", onClick: () => readPlaces(folder) } }) : Array.isArray(status) && targets.length === 0 ? /* @__PURE__ */ jsx27(EmptyState, { scope: "section", message: `There is nowhere in ${folderName} to put it.` }) : /* @__PURE__ */ jsx27(Field, { label: "Put it under", children: /* @__PURE__ */ jsx27(
2075
+ nests && folder && (status === "failed" ? /* @__PURE__ */ jsx28(EmptyState, { scope: "section", message: `${folderName} could not be read.`, action: { label: "Try again", onClick: () => readPlaces(folder) } }) : Array.isArray(status) && targets.length === 0 ? /* @__PURE__ */ jsx28(EmptyState, { scope: "section", message: `There is nowhere in ${folderName} to put it.` }) : /* @__PURE__ */ jsx28(Field, { label: "Put it under", children: /* @__PURE__ */ jsx28(
2017
2076
  Select,
2018
2077
  {
2019
2078
  value: parent ?? "",
@@ -2026,7 +2085,8 @@ function MoveDialog({
2026
2085
  disabled: !Array.isArray(status),
2027
2086
  ariaLabel: "Put it under"
2028
2087
  }
2029
- ) }))
2088
+ ) })),
2089
+ checkLabel !== void 0 && /* @__PURE__ */ jsx28(Checkbox, { checked: ticked, onChange: setTicked, label: checkLabel })
2030
2090
  ] })
2031
2091
  }
2032
2092
  );
@@ -2037,7 +2097,7 @@ import { useId as useId3, useState as useState7 } from "react";
2037
2097
  import { IconArrowLeft, IconUserMinus, IconUserPlus } from "@tabler/icons-react";
2038
2098
 
2039
2099
  // src/Chip.tsx
2040
- import { Fragment as Fragment6, jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
2100
+ import { Fragment as Fragment6, jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
2041
2101
  var typeStyles = {
2042
2102
  neutral: "bg-bg-inset text-text-primary",
2043
2103
  brand: "bg-accent-muted text-accent-text signal:border signal:border-accent-outline",
@@ -2049,8 +2109,8 @@ var typeStyles = {
2049
2109
  function Chip({ type = "neutral", label, leadingIcon, trailingIcon, href, onClick, className }) {
2050
2110
  const inApp = useInAppClick(href, onClick);
2051
2111
  const classes = cn("inline-flex min-w-0 items-center justify-center gap-1.5 rounded-full max-h-[20px] px-2 py-1", typeStyles[type], className);
2052
- const inside = /* @__PURE__ */ jsxs20(Fragment6, { children: [
2053
- leadingIcon && /* @__PURE__ */ jsx28("span", { className: "flex size-3 shrink-0 items-center justify-center", children: leadingIcon }),
2112
+ const inside = /* @__PURE__ */ jsxs21(Fragment6, { children: [
2113
+ leadingIcon && /* @__PURE__ */ jsx29("span", { className: "flex size-3 shrink-0 items-center justify-center", children: leadingIcon }),
2054
2114
  label && // A chip given a `max-w-*` cuts a long label with an ellipsis instead
2055
2115
  // of growing past it — Ship's project chip on an issue row
2056
2116
  // (2026-09-09). Clipped sideways only: `overflow-x-clip`, not
@@ -2059,11 +2119,11 @@ function Chip({ type = "neutral", label, leadingIcon, trailingIcon, href, onClic
2059
2119
  // the screenshot diff caught every descender cut off. `clip` is the
2060
2120
  // one overflow that leaves the other axis visible. A chip with no cap
2061
2121
  // draws exactly as before.
2062
- /* @__PURE__ */ jsx28("span", { className: cn("min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap signal:tracking-wide", CHIP_TEXT_CLASSES), children: label }),
2063
- trailingIcon && /* @__PURE__ */ jsx28("span", { className: "flex size-3 shrink-0 items-center justify-center", children: trailingIcon })
2122
+ /* @__PURE__ */ jsx29("span", { className: cn("min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap signal:tracking-wide", CHIP_TEXT_CLASSES), children: label }),
2123
+ trailingIcon && /* @__PURE__ */ jsx29("span", { className: "flex size-3 shrink-0 items-center justify-center", children: trailingIcon })
2064
2124
  ] });
2065
- if (href) return /* @__PURE__ */ jsx28("a", { href, onClick: inApp, className: cn("relative", classes), children: inside });
2066
- return /* @__PURE__ */ jsx28("div", { className: classes, children: inside });
2125
+ if (href) return /* @__PURE__ */ jsx29("a", { href, onClick: inApp, className: cn("relative", classes), children: inside });
2126
+ return /* @__PURE__ */ jsx29("div", { className: classes, children: inside });
2067
2127
  }
2068
2128
 
2069
2129
  // src/ChipInput.tsx
@@ -2071,7 +2131,7 @@ import { useMemo as useMemo2, useState as useState6 } from "react";
2071
2131
  import { Button as BaseButton6 } from "@base-ui/react/button";
2072
2132
  import { Combobox } from "@base-ui/react/combobox";
2073
2133
  import { IconX as IconX4 } from "@tabler/icons-react";
2074
- import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
2134
+ import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
2075
2135
  var CHIP_BOX = (
2076
2136
  // Curved, not a pill (Katerina, 2026-09-01): the Avatar keeps its own
2077
2137
  // rounded-sm corners — never a forced circle — and the chip's corner
@@ -2082,10 +2142,10 @@ var CHIP_LABEL = "text-caption font-medium text-text-primary";
2082
2142
  var CHIP_REMOVE = "size-4 flex items-center justify-center rounded-full hover:bg-bg-hover text-text-secondary";
2083
2143
  var chipPadding = (leading, removable) => cn(leading ? "pl-[2px]" : "pl-2", removable ? "pr-1" : "pr-2");
2084
2144
  function InputChip({ label, leading, onRemove, removeLabel, truncate, className }) {
2085
- return /* @__PURE__ */ jsxs21("div", { className: cn(CHIP_BOX, chipPadding(!!leading, !!onRemove), className), children: [
2086
- leading && /* @__PURE__ */ jsx29("span", { className: "flex shrink-0 items-center", children: leading }),
2087
- /* @__PURE__ */ jsx29("span", { className: cn(CHIP_LABEL, truncate && "min-w-0 truncate"), children: label }),
2088
- onRemove && /* @__PURE__ */ jsx29(
2145
+ return /* @__PURE__ */ jsxs22("div", { className: cn(CHIP_BOX, chipPadding(!!leading, !!onRemove), className), children: [
2146
+ leading && /* @__PURE__ */ jsx30("span", { className: "flex shrink-0 items-center", children: leading }),
2147
+ /* @__PURE__ */ jsx30("span", { className: cn(CHIP_LABEL, truncate && "min-w-0 truncate"), children: label }),
2148
+ onRemove && /* @__PURE__ */ jsx30(
2089
2149
  BaseButton6,
2090
2150
  {
2091
2151
  type: "button",
@@ -2095,7 +2155,7 @@ function InputChip({ label, leading, onRemove, removeLabel, truncate, className
2095
2155
  },
2096
2156
  className: cn(CHIP_REMOVE, truncate && "shrink-0"),
2097
2157
  "aria-label": removeLabel ?? `Remove ${label}`,
2098
- children: /* @__PURE__ */ jsx29(IconX4, { size: 10, stroke: 1.5 })
2158
+ children: /* @__PURE__ */ jsx30(IconX4, { size: 10, stroke: 1.5 })
2099
2159
  }
2100
2160
  )
2101
2161
  ] });
@@ -2149,7 +2209,7 @@ function ChipInput({
2149
2209
  setQuery("");
2150
2210
  }
2151
2211
  }
2152
- return /* @__PURE__ */ jsxs21(
2212
+ return /* @__PURE__ */ jsxs22(
2153
2213
  Combobox.Root,
2154
2214
  {
2155
2215
  multiple: true,
@@ -2166,13 +2226,13 @@ function ChipInput({
2166
2226
  filter,
2167
2227
  itemToStringLabel: (option) => option.label,
2168
2228
  children: [
2169
- /* @__PURE__ */ jsxs21(Combobox.Chips, { ref: setBox, className: cn(FIELD_SHELL_CLASSES, FIELD_SHELL_FOCUS_CLASSES, "px-3 py-1.5 flex flex-wrap items-center gap-1.5 min-h-[38px] cursor-text"), children: [
2170
- value.map((option) => /* @__PURE__ */ jsxs21(Combobox.Chip, { className: cn(CHIP_BOX, chipPadding(!!chipLeading, true)), children: [
2171
- chipLeading && /* @__PURE__ */ jsx29("span", { className: "flex shrink-0 items-center", children: chipLeading(option) }),
2172
- /* @__PURE__ */ jsx29("span", { className: CHIP_LABEL, children: option.label }),
2173
- /* @__PURE__ */ jsx29(Combobox.ChipRemove, { className: CHIP_REMOVE, "aria-label": `Remove ${option.label}`, children: /* @__PURE__ */ jsx29(IconX4, { size: 10, stroke: 1.5 }) })
2229
+ /* @__PURE__ */ jsxs22(Combobox.Chips, { ref: setBox, className: cn(FIELD_SHELL_CLASSES, FIELD_SHELL_FOCUS_CLASSES, "px-3 py-1.5 flex flex-wrap items-center gap-1.5 min-h-[38px] cursor-text"), children: [
2230
+ value.map((option) => /* @__PURE__ */ jsxs22(Combobox.Chip, { className: cn(CHIP_BOX, chipPadding(!!chipLeading, true)), children: [
2231
+ chipLeading && /* @__PURE__ */ jsx30("span", { className: "flex shrink-0 items-center", children: chipLeading(option) }),
2232
+ /* @__PURE__ */ jsx30("span", { className: CHIP_LABEL, children: option.label }),
2233
+ /* @__PURE__ */ jsx30(Combobox.ChipRemove, { className: CHIP_REMOVE, "aria-label": `Remove ${option.label}`, children: /* @__PURE__ */ jsx30(IconX4, { size: 10, stroke: 1.5 }) })
2174
2234
  ] }, option.id)),
2175
- /* @__PURE__ */ jsx29(
2235
+ /* @__PURE__ */ jsx30(
2176
2236
  Combobox.Input,
2177
2237
  {
2178
2238
  autoFocus,
@@ -2184,18 +2244,18 @@ function ChipInput({
2184
2244
  }
2185
2245
  )
2186
2246
  ] }),
2187
- /* @__PURE__ */ jsx29(Combobox.Portal, { children: /* @__PURE__ */ jsx29(
2247
+ /* @__PURE__ */ jsx30(Combobox.Portal, { children: /* @__PURE__ */ jsx30(
2188
2248
  Combobox.Positioner,
2189
2249
  {
2190
2250
  anchor: box,
2191
2251
  sideOffset: GAP4,
2192
2252
  collisionPadding: VIEWPORT_PAD4,
2193
2253
  className: "z-50 data-[anchor-hidden]:hidden",
2194
- children: /* @__PURE__ */ jsx29(Combobox.Popup, { className: "w-[var(--anchor-width)] p-0", render: /* @__PURE__ */ jsx29(MenuPanel, {}), children: /* @__PURE__ */ jsx29(ScrollArea, { viewportClassName: "max-h-[240px]", contentClassName: "flex flex-col p-2", children: /* @__PURE__ */ jsx29(Combobox.List, { className: "flex flex-col gap-0.5", children: (option) => /* @__PURE__ */ jsx29(
2254
+ children: /* @__PURE__ */ jsx30(Combobox.Popup, { className: "w-[var(--anchor-width)] p-0", render: /* @__PURE__ */ jsx30(MenuPanel, {}), children: /* @__PURE__ */ jsx30(ScrollArea, { viewportClassName: "max-h-[240px]", contentClassName: "flex flex-col p-2", children: /* @__PURE__ */ jsx30(Combobox.List, { className: "flex flex-col gap-0.5", children: (option) => /* @__PURE__ */ jsx30(
2195
2255
  Combobox.Item,
2196
2256
  {
2197
2257
  value: option,
2198
- render: /* @__PURE__ */ jsx29(
2258
+ render: /* @__PURE__ */ jsx30(
2199
2259
  MenuItem,
2200
2260
  {
2201
2261
  size: "tall",
@@ -2217,7 +2277,7 @@ var GAP4 = 4;
2217
2277
  var VIEWPORT_PAD4 = 8;
2218
2278
 
2219
2279
  // src/MembersDialog.tsx
2220
- import { Fragment as Fragment7, jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
2280
+ import { Fragment as Fragment7, jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
2221
2281
  var LEADING_CLASSES = "size-8 rounded-md bg-accent-muted flex items-center justify-center shrink-0 text-accent-text";
2222
2282
  function MembersDialog({ members, count, self, candidates = [], onAdd, note, initialView = "list", onClose }) {
2223
2283
  const [view, setView] = useState7(onAdd ? initialView : "list");
@@ -2243,21 +2303,21 @@ function MembersDialog({ members, count, self, candidates = [], onAdd, note, ini
2243
2303
  const roster = ownRow ? [ownRow, ...members.filter((m) => m !== ownRow)] : members;
2244
2304
  const selfOnTop = self && !ownRow;
2245
2305
  if (view === "add" && onAdd) {
2246
- return /* @__PURE__ */ jsx30(
2306
+ return /* @__PURE__ */ jsx31(
2247
2307
  DialogShell,
2248
2308
  {
2249
2309
  title: "Add members",
2250
2310
  onClose,
2251
- headerContent: /* @__PURE__ */ jsxs22("div", { className: "flex min-w-0 items-center gap-2", children: [
2252
- /* @__PURE__ */ jsx30(IconButton, { tooltip: "Back to members", "aria-label": "Back to members", className: "-ml-2", onClick: () => setView("list"), children: /* @__PURE__ */ jsx30(IconArrowLeft, { size: 16, stroke: 1.5 }) }),
2253
- /* @__PURE__ */ jsx30("span", { className: "truncate text-h4 text-text-primary", children: "Add members" })
2311
+ headerContent: /* @__PURE__ */ jsxs23("div", { className: "flex min-w-0 items-center gap-2", children: [
2312
+ /* @__PURE__ */ jsx31(IconButton, { tooltip: "Back to members", "aria-label": "Back to members", className: "-ml-2", onClick: () => setView("list"), children: /* @__PURE__ */ jsx31(IconArrowLeft, { size: 16, stroke: 1.5 }) }),
2313
+ /* @__PURE__ */ jsx31("span", { className: "truncate text-h4 text-text-primary", children: "Add members" })
2254
2314
  ] }),
2255
2315
  bodyClassName: "flex flex-col gap-6",
2256
- footer: /* @__PURE__ */ jsxs22(Fragment7, { children: [
2257
- /* @__PURE__ */ jsx30(Button, { variant: "muted", onClick: onClose, children: "Cancel" }),
2258
- /* @__PURE__ */ jsx30(Button, { variant: "primary", type: "submit", form: formId, disabled: chosen.length === 0, children: "Invite" })
2316
+ footer: /* @__PURE__ */ jsxs23(Fragment7, { children: [
2317
+ /* @__PURE__ */ jsx31(Button, { variant: "muted", onClick: onClose, children: "Cancel" }),
2318
+ /* @__PURE__ */ jsx31(Button, { variant: "primary", type: "submit", form: formId, disabled: chosen.length === 0, children: "Invite" })
2259
2319
  ] }),
2260
- children: /* @__PURE__ */ jsx30(Form, { id: formId, onSubmit: add, children: /* @__PURE__ */ jsx30(Field, { label: "Invite people", required: true, children: /* @__PURE__ */ jsx30(
2320
+ children: /* @__PURE__ */ jsx31(Form, { id: formId, onSubmit: add, children: /* @__PURE__ */ jsx31(Field, { label: "Invite people", required: true, children: /* @__PURE__ */ jsx31(
2261
2321
  ChipInput,
2262
2322
  {
2263
2323
  value: chosen,
@@ -2265,58 +2325,58 @@ function MembersDialog({ members, count, self, candidates = [], onAdd, note, ini
2265
2325
  options: candidates,
2266
2326
  placeholder: "Search people...",
2267
2327
  excludeIds: members.map((m) => m.id),
2268
- chipLeading: (o) => /* @__PURE__ */ jsx30(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 16 }),
2269
- rowLeading: (o) => /* @__PURE__ */ jsx30(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 32 }),
2328
+ chipLeading: (o) => /* @__PURE__ */ jsx31(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 16 }),
2329
+ rowLeading: (o) => /* @__PURE__ */ jsx31(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 32 }),
2270
2330
  autoFocus: true
2271
2331
  }
2272
2332
  ) }) })
2273
2333
  }
2274
2334
  );
2275
2335
  }
2276
- return /* @__PURE__ */ jsxs22(
2336
+ return /* @__PURE__ */ jsxs23(
2277
2337
  DialogShell,
2278
2338
  {
2279
2339
  title: "Members",
2280
2340
  onClose,
2281
- headerContent: /* @__PURE__ */ jsxs22("div", { className: "flex min-w-0 items-center gap-2", children: [
2282
- /* @__PURE__ */ jsx30("span", { className: "truncate text-h4 text-text-primary", children: "Members" }),
2283
- /* @__PURE__ */ jsx30(Chip, { label: String(count ?? members.length) })
2341
+ headerContent: /* @__PURE__ */ jsxs23("div", { className: "flex min-w-0 items-center gap-2", children: [
2342
+ /* @__PURE__ */ jsx31("span", { className: "truncate text-h4 text-text-primary", children: "Members" }),
2343
+ /* @__PURE__ */ jsx31(Chip, { label: String(count ?? members.length) })
2284
2344
  ] }),
2285
2345
  bodyMaxHeight: "max-h-[400px]",
2286
2346
  bodyClassName: "p-0 py-2",
2287
2347
  children: [
2288
- (selfOnTop || onAdd) && /* @__PURE__ */ jsxs22("div", { className: "flex flex-col px-2", children: [
2289
- selfOnTop && /* @__PURE__ */ jsx30(
2348
+ (selfOnTop || onAdd) && /* @__PURE__ */ jsxs23("div", { className: "flex flex-col px-2", children: [
2349
+ selfOnTop && /* @__PURE__ */ jsx31(
2290
2350
  MenuItem,
2291
2351
  {
2292
2352
  size: "tall",
2293
2353
  className: "py-2",
2294
2354
  disabled: toggling,
2295
2355
  onClick: () => void toggle(),
2296
- leading: /* @__PURE__ */ jsx30("span", { className: LEADING_CLASSES, children: self.action === "join" ? /* @__PURE__ */ jsx30(IconUserPlus, { size: 16, stroke: 1.5 }) : /* @__PURE__ */ jsx30(IconUserMinus, { size: 16, stroke: 1.5 }) }),
2356
+ leading: /* @__PURE__ */ jsx31("span", { className: LEADING_CLASSES, children: self.action === "join" ? /* @__PURE__ */ jsx31(IconUserPlus, { size: 16, stroke: 1.5 }) : /* @__PURE__ */ jsx31(IconUserMinus, { size: 16, stroke: 1.5 }) }),
2297
2357
  label: self.action === "join" ? "Join" : "Leave"
2298
2358
  }
2299
2359
  ),
2300
- onAdd && /* @__PURE__ */ jsx30(
2360
+ onAdd && /* @__PURE__ */ jsx31(
2301
2361
  MenuItem,
2302
2362
  {
2303
2363
  size: "tall",
2304
2364
  className: "py-2",
2305
2365
  onClick: () => setView("add"),
2306
- leading: /* @__PURE__ */ jsx30("span", { className: LEADING_CLASSES, children: /* @__PURE__ */ jsx30(IconUserPlus, { size: 16, stroke: 1.5 }) }),
2366
+ leading: /* @__PURE__ */ jsx31("span", { className: LEADING_CLASSES, children: /* @__PURE__ */ jsx31(IconUserPlus, { size: 16, stroke: 1.5 }) }),
2307
2367
  label: "Add members"
2308
2368
  }
2309
2369
  )
2310
2370
  ] }),
2311
- roster.map((member) => /* @__PURE__ */ jsxs22("div", { className: "flex h-12 items-center gap-3 px-5", children: [
2312
- /* @__PURE__ */ jsx30(Avatar, { size: 32, name: member.name, src: member.picture, bot: member.bot }),
2313
- /* @__PURE__ */ jsxs22("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-[2px]", children: [
2314
- /* @__PURE__ */ jsx30("div", { className: "truncate text-body-2 text-text-primary", children: member.name }),
2315
- member.caption && /* @__PURE__ */ jsx30("div", { className: "truncate text-caption text-text-secondary", children: member.caption })
2371
+ roster.map((member) => /* @__PURE__ */ jsxs23("div", { className: "flex h-12 items-center gap-3 px-5", children: [
2372
+ /* @__PURE__ */ jsx31(Avatar, { size: 32, name: member.name, src: member.picture, bot: member.bot }),
2373
+ /* @__PURE__ */ jsxs23("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-[2px]", children: [
2374
+ /* @__PURE__ */ jsx31("div", { className: "truncate text-body-2 text-text-primary", children: member.name }),
2375
+ member.caption && /* @__PURE__ */ jsx31("div", { className: "truncate text-caption text-text-secondary", children: member.caption })
2316
2376
  ] }),
2317
- member === ownRow && /* @__PURE__ */ jsx30(Button, { variant: "destructive", size: "small", disabled: toggling, onClick: () => void toggle(), children: "Leave" })
2377
+ member === ownRow && /* @__PURE__ */ jsx31(Button, { variant: "destructive", size: "small", disabled: toggling, onClick: () => void toggle(), children: "Leave" })
2318
2378
  ] }, member.id)),
2319
- note && /* @__PURE__ */ jsx30("div", { className: "px-5 pb-2 pt-3 text-caption text-text-secondary", children: note })
2379
+ note && /* @__PURE__ */ jsx31("div", { className: "px-5 pb-2 pt-3 text-caption text-text-secondary", children: note })
2320
2380
  ]
2321
2381
  }
2322
2382
  );
@@ -2324,7 +2384,7 @@ function MembersDialog({ members, count, self, candidates = [], onAdd, note, ini
2324
2384
 
2325
2385
  // src/Banner.tsx
2326
2386
  import { IconX as IconX5 } from "@tabler/icons-react";
2327
- import { jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
2387
+ import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
2328
2388
  var TONE_STYLES = {
2329
2389
  ok: "bg-success-muted text-success-default",
2330
2390
  error: "bg-error-muted text-error-default",
@@ -2334,21 +2394,21 @@ var TONE_STYLES = {
2334
2394
  function Banner({ tone, children, icon, action, onDismiss, dismissLabel = "Dismiss", className }) {
2335
2395
  const role = tone === "error" ? "alert" : "status";
2336
2396
  if (!onDismiss && !icon && !action) {
2337
- return /* @__PURE__ */ jsx31("div", { role, className: cn("px-4 py-2 text-body-2", TONE_STYLES[tone], className), children });
2397
+ return /* @__PURE__ */ jsx32("div", { role, className: cn("px-4 py-2 text-body-2", TONE_STYLES[tone], className), children });
2338
2398
  }
2339
2399
  const oneLine = Boolean(icon || action);
2340
- return /* @__PURE__ */ jsxs23("div", { role, className: cn("flex items-center gap-3 px-4 py-2 text-body-2", TONE_STYLES[tone], className), children: [
2341
- icon && /* @__PURE__ */ jsx31("span", { className: "flex shrink-0", children: icon }),
2342
- /* @__PURE__ */ jsx31("span", { className: cn("min-w-0 flex-1", oneLine && "truncate"), children }),
2343
- action && /* @__PURE__ */ jsx31(Button, { variant: "muted", size: "small", className: "shrink-0", onClick: action.onClick, children: action.label }),
2344
- onDismiss && /* @__PURE__ */ jsx31(IconButton, { variant: "current", "aria-label": dismissLabel, onClick: onDismiss, className: "-mr-1 shrink-0", children: /* @__PURE__ */ jsx31(IconX5, { size: 16, stroke: 1.5 }) })
2400
+ return /* @__PURE__ */ jsxs24("div", { role, className: cn("flex items-center gap-3 px-4 py-2 text-body-2", TONE_STYLES[tone], className), children: [
2401
+ icon && /* @__PURE__ */ jsx32("span", { className: "flex shrink-0", children: icon }),
2402
+ /* @__PURE__ */ jsx32("span", { className: cn("min-w-0 flex-1", oneLine && "truncate"), children }),
2403
+ action && /* @__PURE__ */ jsx32(Button, { variant: "muted", size: "small", className: "shrink-0", onClick: action.onClick, children: action.label }),
2404
+ onDismiss && /* @__PURE__ */ jsx32(IconButton, { variant: "current", "aria-label": dismissLabel, onClick: onDismiss, className: "-mr-1 shrink-0", children: /* @__PURE__ */ jsx32(IconX5, { size: 16, stroke: 1.5 }) })
2345
2405
  ] });
2346
2406
  }
2347
2407
 
2348
2408
  // src/BlockHandle.tsx
2349
2409
  import { useCallback as useCallback2, useEffect as useEffect5, useRef as useRef8, useState as useState8 } from "react";
2350
2410
  import { IconGripVertical } from "@tabler/icons-react";
2351
- import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
2411
+ import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
2352
2412
  function readId(element) {
2353
2413
  const own = element.getAttribute("data-block-id") ?? element.querySelector("[data-block-id]")?.getAttribute("data-block-id");
2354
2414
  return own || void 0;
@@ -2413,7 +2473,7 @@ function BlockHandle({ actions, editing, children, className }) {
2413
2473
  setLine(null);
2414
2474
  editing?.endDrag();
2415
2475
  };
2416
- return /* @__PURE__ */ jsxs24(
2476
+ return /* @__PURE__ */ jsxs25(
2417
2477
  "div",
2418
2478
  {
2419
2479
  ref: frame,
@@ -2441,16 +2501,16 @@ function BlockHandle({ actions, editing, children, className }) {
2441
2501
  if (!frame.current?.contains(e.relatedTarget)) setLine(null);
2442
2502
  },
2443
2503
  children: [
2444
- /* @__PURE__ */ jsx32("div", { ref: content, children }),
2445
- /* @__PURE__ */ jsx32("div", { "aria-hidden": true, className: "absolute inset-y-0 -left-7 w-7" }),
2446
- line !== null && /* @__PURE__ */ jsx32("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-0 h-px bg-accent-primary", style: { top: line } }),
2504
+ /* @__PURE__ */ jsx33("div", { ref: content, children }),
2505
+ /* @__PURE__ */ jsx33("div", { "aria-hidden": true, className: "absolute inset-y-0 -left-7 w-7" }),
2506
+ line !== null && /* @__PURE__ */ jsx33("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-0 h-px bg-accent-primary", style: { top: line } }),
2447
2507
  block && (rows || own) && // The top is the block's, measured: it depends on the document, not on a size of ours.
2448
- /* @__PURE__ */ jsx32("div", { className: cn("absolute -left-7", rows && "cursor-grab active:cursor-grabbing"), style: { top }, children: /* @__PURE__ */ jsxs24(
2508
+ /* @__PURE__ */ jsx33("div", { className: cn("absolute -left-7", rows && "cursor-grab active:cursor-grabbing"), style: { top }, children: /* @__PURE__ */ jsxs25(
2449
2509
  Menu,
2450
2510
  {
2451
2511
  open,
2452
2512
  onOpenChange: setOpen,
2453
- trigger: /* @__PURE__ */ jsx32(
2513
+ trigger: /* @__PURE__ */ jsx33(
2454
2514
  IconButton,
2455
2515
  {
2456
2516
  "aria-label": "Block menu",
@@ -2471,12 +2531,12 @@ function BlockHandle({ actions, editing, children, className }) {
2471
2531
  endDrag();
2472
2532
  setBlock(null);
2473
2533
  },
2474
- children: /* @__PURE__ */ jsx32(IconGripVertical, { size: 16, stroke: 1.5 })
2534
+ children: /* @__PURE__ */ jsx33(IconGripVertical, { size: 16, stroke: 1.5 })
2475
2535
  }
2476
2536
  ),
2477
2537
  children: [
2478
2538
  rows,
2479
- rows && own && /* @__PURE__ */ jsx32(MenuSeparator, {}),
2539
+ rows && own && /* @__PURE__ */ jsx33(MenuSeparator, {}),
2480
2540
  own
2481
2541
  ]
2482
2542
  }
@@ -2486,61 +2546,6 @@ function BlockHandle({ actions, editing, children, className }) {
2486
2546
  );
2487
2547
  }
2488
2548
 
2489
- // src/Checkbox.tsx
2490
- import { Checkbox as BaseCheckbox } from "@base-ui/react/checkbox";
2491
- import { Field as BaseField2 } from "@base-ui/react/field";
2492
- import { IconCheck as IconCheck2 } from "@tabler/icons-react";
2493
- import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
2494
- function squareClasses(checked, disabled, interactive, className) {
2495
- return cn(
2496
- "inline-flex items-center justify-center size-4 shrink-0 rounded-sm border transition-colors",
2497
- checked ? "bg-accent-primary border-accent-primary text-text-inverse" : "bg-transparent border-border-strong hover:border-text-muted",
2498
- disabled && "opacity-50 pointer-events-none",
2499
- interactive ? "cursor-pointer" : "pointer-events-none",
2500
- className
2501
- );
2502
- }
2503
- var tickClasses = (checked) => cn("flex", !checked && "invisible");
2504
- var WORDS_CLASSES = "text-body-2 text-text-primary";
2505
- var ROW_CLASSES = "flex shrink-0 items-center gap-3 h-10 px-3 rounded-lg transition-colors";
2506
- function Checkbox({ checked, onChange, disabled: ownDisabled = false, label, row, leading, className, ...aria }) {
2507
- const formBusy = useFormBusy();
2508
- const disabled = ownDisabled || formBusy;
2509
- if (!onChange) {
2510
- const picture = /* @__PURE__ */ jsx33("span", { "aria-hidden": "true", className: squareClasses(checked, disabled, false, className), children: /* @__PURE__ */ jsx33("span", { className: tickClasses(checked), children: /* @__PURE__ */ jsx33(IconCheck2, { size: 12, stroke: 3 }) }) });
2511
- if (label === void 0) return picture;
2512
- return /* @__PURE__ */ jsxs25("span", { className: "flex items-center gap-2", children: [
2513
- picture,
2514
- /* @__PURE__ */ jsx33("span", { className: WORDS_CLASSES, children: label })
2515
- ] });
2516
- }
2517
- const box = /* @__PURE__ */ jsx33(
2518
- BaseCheckbox.Root,
2519
- {
2520
- checked,
2521
- disabled,
2522
- "aria-label": aria["aria-label"],
2523
- "aria-required": aria["aria-required"],
2524
- onCheckedChange: (next) => onChange(next),
2525
- onClick: (e) => e.stopPropagation(),
2526
- className: (state) => squareClasses(state.checked, state.disabled, true, className),
2527
- children: /* @__PURE__ */ jsx33(BaseCheckbox.Indicator, { keepMounted: true, className: (state) => tickClasses(state.checked), children: /* @__PURE__ */ jsx33(IconCheck2, { size: 12, stroke: 3 }) })
2528
- }
2529
- );
2530
- if (label === void 0) return box;
2531
- if (row) {
2532
- return /* @__PURE__ */ jsx33(BaseField2.Root, { disabled, children: /* @__PURE__ */ jsxs25(BaseField2.Label, { className: cn(ROW_CLASSES, checked && "bg-bg-selected", !disabled && "cursor-pointer hover:bg-bg-hover"), children: [
2533
- leading,
2534
- /* @__PURE__ */ jsx33("span", { className: cn("flex-1 min-w-0 truncate", WORDS_CLASSES), children: label }),
2535
- box
2536
- ] }) });
2537
- }
2538
- return /* @__PURE__ */ jsx33(BaseField2.Root, { disabled, children: /* @__PURE__ */ jsxs25(BaseField2.Label, { className: cn("flex items-center gap-2", !disabled && "cursor-pointer"), children: [
2539
- box,
2540
- /* @__PURE__ */ jsx33("span", { className: WORDS_CLASSES, children: label })
2541
- ] }) });
2542
- }
2543
-
2544
2549
  // src/CommandPalette.tsx
2545
2550
  import {
2546
2551
  createContext as createContext6,
@@ -3446,7 +3451,7 @@ var Textarea = forwardRef3(function Textarea2({ className, ...props }, ref) {
3446
3451
  // src/ConfirmDialog.tsx
3447
3452
  import { useRef as useRef11, useState as useState10 } from "react";
3448
3453
  import { Fragment as Fragment13, jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
3449
- function ConfirmDialog({ title, children, confirmLabel, destructive = false, onConfirm, onClose, alternative }) {
3454
+ function ConfirmDialog({ title, children, confirmLabel, destructive = false, onConfirm, onClose, alternative, refused }) {
3450
3455
  const [busy, setBusy] = useState10(false);
3451
3456
  const closed = useRef11(false);
3452
3457
  const close = () => {
@@ -3475,6 +3480,7 @@ function ConfirmDialog({ title, children, confirmLabel, destructive = false, onC
3475
3480
  ] }),
3476
3481
  children: /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-3 text-body-2 text-text-primary", children: [
3477
3482
  children,
3483
+ refused && /* @__PURE__ */ jsx45(FieldLine, { tone: "error", children: refused }),
3478
3484
  alternative && /* @__PURE__ */ jsxs33("div", { className: "flex flex-col items-start gap-2", children: [
3479
3485
  /* @__PURE__ */ jsx45("p", { children: alternative.sentence }),
3480
3486
  /* @__PURE__ */ jsx45(Button, { variant: "outlined", size: "small", onClick: alternative.onClick, disabled: busy, children: alternative.label })
@@ -3877,7 +3883,10 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3877
3883
  look === "quiet" ? /* @__PURE__ */ jsx52("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
3878
3884
  // A row's words: NavItem's size and colour, brightening under the pointer with the row.
3879
3885
  /* @__PURE__ */ jsx52("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
3880
- ) : /* @__PURE__ */ jsx52(SectionLabel, { folds: chevron, children: title }),
3886
+ ) : (
3887
+ // One line, as the other looks and a NavItem's label: a Folder named by its id ran onto two (Katerina, 3 November).
3888
+ /* @__PURE__ */ jsx52(SectionLabel, { folds: chevron, truncate: true, children: title })
3889
+ ),
3881
3890
  count != null && /* @__PURE__ */ jsx52("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
3882
3891
  ] })
3883
3892
  }
@@ -5127,9 +5136,11 @@ import { useContext as useContext10 } from "react";
5127
5136
  import { jsx as jsx64, jsxs as jsxs46 } from "react/jsx-runtime";
5128
5137
  var ROW_CLASSES2 = "flex items-center gap-3 p-1.5 pr-3";
5129
5138
  function LinkUnavailable({ kind, noun, named: named2 = false, card = false, deleted = false, failed = false }) {
5139
+ return /* @__PURE__ */ jsx64(UnavailableRow, { kind, words: unavailableWords(noun, { named: named2, deleted, failed }), card });
5140
+ }
5141
+ function unavailableWords(noun, { named: named2 = false, deleted = false, failed = false } = {}) {
5130
5142
  const word = named2 ? `file in ${noun}` : /^[A-Z][a-z]*$/.test(noun) ? noun.toLowerCase() : noun;
5131
- const words = deleted ? `${named2 ? `File in ${noun}` : noun} deleted` : failed ? `Couldn't load this ${word}` : `You can't open this ${word}`;
5132
- return /* @__PURE__ */ jsx64(UnavailableRow, { kind, words, card });
5143
+ return deleted ? `${named2 ? `File in ${noun}` : noun} deleted` : failed ? `Couldn't load this ${word}` : `You can't open this ${word}`;
5133
5144
  }
5134
5145
  function UnavailableRow({ kind, words, href, card = false }) {
5135
5146
  const wide = useContext10(inTheBox);
@@ -5349,11 +5360,10 @@ function LinkChip({ link, preview = true }) {
5349
5360
  }
5350
5361
  if (link.state === "unavailable") {
5351
5362
  if (link.url) return /* @__PURE__ */ jsx67(WrittenUrl, { url: link.url });
5352
- return /* @__PURE__ */ jsxs48(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx67(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: [
5353
- link.noun,
5354
- " ",
5355
- link.deleted ? "deleted" : "not available"
5356
- ] });
5363
+ return (
5364
+ // A row's and a card's words, one wording everywhere (Katerina, 3 November).
5365
+ /* @__PURE__ */ jsx67(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx67(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: unavailableWords(link.noun, { named: link.named, deleted: link.deleted, failed: link.failed }) })
5366
+ );
5357
5367
  }
5358
5368
  const { linked } = link;
5359
5369
  const status = chosenOf(linked.status);
@@ -6018,7 +6028,7 @@ function useEditing(editing, onEditingChange) {
6018
6028
  return [now, set];
6019
6029
  }
6020
6030
  function ConversationCard(props) {
6021
- const { author, about, files, reactions, reactionRefused, isNew = false, urgent = false, own = false, editor, deleted = false, replies, onReply, resolved, noun = "comment", onResolve, resolveHint, resolveRefused, onReopen, selected, onClick, onDelete, deleteNote, menu, menuAfter, menuLabel, editLabel, deleteLabel, moreLabel = "More actions", className, children } = props;
6031
+ const { author, about, files, reactions, reactionRefused, isNew = false, urgent = false, own = false, editor, deleted = false, replies, onReply, resolved, noun = "comment", onResolve, resolveHint, resolveRefused, onReopen, selected, onClick, onDelete, deleteNote, deleteRefused, menu, menuAfter, menuLabel, editLabel, deleteLabel, moreLabel = "More actions", className, children } = props;
6022
6032
  const readOnly = (props.readOnly ?? false) || deleted;
6023
6033
  const inThreadCard = useContext14(InThreadCard);
6024
6034
  const item = useContext14(InConversationItem);
@@ -6044,7 +6054,6 @@ function ConversationCard(props) {
6044
6054
  const marked = selected ?? (item && !item.under ? item.open : void 0);
6045
6055
  const under = !!item?.under;
6046
6056
  const repliesRow = replies && replies.count > 0 && /* @__PURE__ */ jsx81(RepliesRow, { ...replies, onOpen: replies.onOpen ?? (under ? item?.toggle : void 0), open: replies.open ?? (under && !!item?.open), urgent });
6047
- const aboutShown = !!about && !deleted;
6048
6057
  return /* @__PURE__ */ jsxs58(Fragment23, { children: [
6049
6058
  /* @__PURE__ */ jsxs58(
6050
6059
  Card,
@@ -6072,7 +6081,10 @@ function ConversationCard(props) {
6072
6081
  },
6073
6082
  children: [
6074
6083
  isEditing ? /* @__PURE__ */ jsx81(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs58("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
6075
- deleted ? /* @__PURE__ */ jsx81("p", { className: "w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", children: "This comment was deleted." }) : /* @__PURE__ */ jsxs58(Fragment23, { children: [
6084
+ deleted ? /* @__PURE__ */ jsxs58(Fragment23, { children: [
6085
+ !!about && /* @__PURE__ */ jsx81("div", { className: "relative w-full pl-8 pr-2", children: about }),
6086
+ /* @__PURE__ */ jsx81("p", { className: cn("w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", !!about && "pt-1"), children: "This comment was deleted." })
6087
+ ] }) : /* @__PURE__ */ jsxs58(Fragment23, { children: [
6076
6088
  /* @__PURE__ */ jsx81(
6077
6089
  Head,
6078
6090
  {
@@ -6087,7 +6099,7 @@ function ConversationCard(props) {
6087
6099
  meta: resolved && /* @__PURE__ */ jsx81(ResolvedCheck, { by: resolved.by, note: resolved.note, at: resolved.at })
6088
6100
  }
6089
6101
  ),
6090
- aboutShown && // Under the name, above the words (Katerina, 1 November).
6102
+ !!about && // Under the name, above the words (Katerina, 1 November).
6091
6103
  /* @__PURE__ */ jsx81("div", { className: "relative w-full pl-8 pr-2 pt-0.5", children: about }),
6092
6104
  /* @__PURE__ */ jsx81(Words, { children })
6093
6105
  ] }),
@@ -6140,7 +6152,7 @@ function ConversationCard(props) {
6140
6152
  ]
6141
6153
  }
6142
6154
  ),
6143
- deleting && onDelete && /* @__PURE__ */ jsx81(ConfirmDialog, { title: `Delete this ${noun}?`, confirmLabel: `Delete ${noun}`, destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx81("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs58(Fragment23, { children: [
6155
+ deleting && onDelete && /* @__PURE__ */ jsx81(ConfirmDialog, { title: `Delete this ${noun}?`, confirmLabel: `Delete ${noun}`, destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), refused: deleteRefused, children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx81("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs58(Fragment23, { children: [
6144
6156
  /* @__PURE__ */ jsx81("p", { children: "It is deleted for everyone." }),
6145
6157
  replies && replies.count > 0 && /* @__PURE__ */ jsxs58("p", { children: [
6146
6158
  "Its ",
@@ -6163,7 +6175,7 @@ function ConversationCard(props) {
6163
6175
  ] });
6164
6176
  }
6165
6177
  function ReplyCard(props) {
6166
- const { id, author, about, files, reactions, reactionRefused, isNew = false, urgent = false, own = false, editor, onDelete, deleteNote, menu, menuAfter, menuLabel, editLabel, deleteLabel, moreLabel = "More actions", noun = "reply", className, children } = props;
6178
+ const { id, author, about, files, reactions, reactionRefused, isNew = false, urgent = false, own = false, editor, onDelete, deleteNote, deleteRefused, menu, menuAfter, menuLabel, editLabel, deleteLabel, moreLabel = "More actions", noun = "reply", className, children } = props;
6167
6179
  const readOnly = props.readOnly ?? false;
6168
6180
  const [hovered, setHovered] = useState23(false);
6169
6181
  const [menuOpen, setMenuOpen] = useState23(false);
@@ -6243,7 +6255,7 @@ function ReplyCard(props) {
6243
6255
  ]
6244
6256
  }
6245
6257
  ),
6246
- deleting && onDelete && /* @__PURE__ */ jsx81(ConfirmDialog, { title: `Delete this ${noun}?`, confirmLabel: `Delete ${noun}`, destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), children: deleteNote === void 0 ? /* @__PURE__ */ jsx81("p", { children: "It is deleted for everyone." }) : typeof deleteNote === "string" ? /* @__PURE__ */ jsx81("p", { children: deleteNote }) : deleteNote })
6258
+ deleting && onDelete && /* @__PURE__ */ jsx81(ConfirmDialog, { title: `Delete this ${noun}?`, confirmLabel: `Delete ${noun}`, destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), refused: deleteRefused, children: deleteNote === void 0 ? /* @__PURE__ */ jsx81("p", { children: "It is deleted for everyone." }) : typeof deleteNote === "string" ? /* @__PURE__ */ jsx81("p", { children: deleteNote }) : deleteNote })
6247
6259
  ] });
6248
6260
  }
6249
6261
 
@@ -6639,8 +6651,9 @@ import { jsx as jsx85, jsxs as jsxs62 } from "react/jsx-runtime";
6639
6651
  var SINCE = { reworded: "Changed since", gone: "Deleted from the page" };
6640
6652
  function QuotedLine({ words, state = "here", label }) {
6641
6653
  const shown2 = words ?? label ?? "";
6654
+ const inThePage = !!words && state === "here";
6642
6655
  return /* @__PURE__ */ jsxs62("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
6643
- /* @__PURE__ */ jsx85(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx85("p", { className: "line-clamp-2 text-caption text-text-secondary", children: /* @__PURE__ */ jsx85("mark", { className: cn("rounded-sm px-0.5 text-text-primary [box-decoration-break:clone]", state === "here" ? "bg-warning-muted" : "bg-bg-inset text-text-secondary", state === "gone" && "line-through"), children: shown2 }) }) }),
6656
+ /* @__PURE__ */ jsx85(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx85("p", { className: "line-clamp-2 text-caption text-text-secondary", children: /* @__PURE__ */ jsx85("mark", { className: cn("rounded-sm px-0.5 text-text-primary [box-decoration-break:clone]", inThePage ? "bg-warning-muted" : "bg-bg-inset text-text-secondary", state === "gone" && "line-through"), children: shown2 }) }) }),
6644
6657
  state !== "here" && /* @__PURE__ */ jsx85("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
6645
6658
  ] });
6646
6659
  }