@crewlethq/ui 0.127.0 → 0.128.1

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 (102) hide show
  1. package/dist/ActivityLine/index.js +3 -3
  2. package/dist/AppShell/index.js +2 -2
  3. package/dist/ArtifactBar/index.js +4 -4
  4. package/dist/ArtifactCard/index.js +3 -3
  5. package/dist/ArtifactMakeRow/index.js +1 -1
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-CRSLRUVT.css → Avatar-RHFI55UZ.css} +14 -0
  8. package/dist/AvatarPicker/index.js +6 -6
  9. package/dist/{AvatarStack-GNEJHEU6.css → AvatarStack-UNBXFHTZ.css} +14 -1
  10. package/dist/Clamp/Clamp.d.ts +50 -0
  11. package/dist/Clamp/index.d.ts +3 -0
  12. package/dist/Clamp/index.js +12 -0
  13. package/dist/Clamp-Q5WKCGWY.css +60 -0
  14. package/dist/CommentThread/index.js +1 -1
  15. package/dist/ContrastBadge/index.js +2 -2
  16. package/dist/ContrastHelp/index.js +3 -3
  17. package/dist/DataTable/index.js +2 -2
  18. package/dist/DataView/index.js +4 -4
  19. package/dist/DeepWorkCard/index.js +2 -2
  20. package/dist/DeliveryReceipt/DeliveryReceipt.d.ts +37 -24
  21. package/dist/DeliveryReceipt/index.js +1 -2
  22. package/dist/{DeliveryReceipt-G55ILD6O.css → DeliveryReceipt-BILVVNTO.css} +11 -14
  23. package/dist/DocTabsEditor/index.js +2 -2
  24. package/dist/{Editor-UIBCHECM.js → Editor-RCFNNOLO.js} +1 -1
  25. package/dist/EntityChip/index.js +1 -1
  26. package/dist/GraphCanvas/index.js +2 -2
  27. package/dist/HuePicker/index.js +4 -4
  28. package/dist/ImageUpload/index.js +1 -1
  29. package/dist/LogoSlot/index.js +3 -3
  30. package/dist/MarkdownEditor/index.js +4 -4
  31. package/dist/MentionMenu/MentionMenu.d.ts +4 -3
  32. package/dist/Menu/Menu.d.ts +4 -0
  33. package/dist/Menu/index.js +1 -1
  34. package/dist/MergeConflicts/index.js +4 -4
  35. package/dist/OrgLabel/index.js +1 -1
  36. package/dist/OrgNode/index.js +1 -1
  37. package/dist/OrgTable/index.js +1 -1
  38. package/dist/PeopleRail/index.js +1 -1
  39. package/dist/PresenceStack/index.js +1 -1
  40. package/dist/Principal/index.js +1 -1
  41. package/dist/PrincipalPicker/index.js +1 -1
  42. package/dist/RichEditor/index.js +1 -1
  43. package/dist/SearchTrigger/SearchTrigger.d.ts +15 -7
  44. package/dist/SearchTrigger/index.js +1 -1
  45. package/dist/{SearchTrigger-SE4GKNAY.css → SearchTrigger-MME7NIHX.css} +13 -1
  46. package/dist/SegmentedControl/index.js +3 -3
  47. package/dist/SetupWizard/index.js +2 -2
  48. package/dist/ShareDialog/index.js +1 -1
  49. package/dist/SheetColumnEditor/index.js +5 -5
  50. package/dist/SheetGrid/index.js +3 -3
  51. package/dist/SlideFilmstrip/index.js +2 -2
  52. package/dist/TableCells/index.js +1 -1
  53. package/dist/Tabs/index.js +2 -2
  54. package/dist/ThemeSwitcher/index.js +4 -4
  55. package/dist/ThreadSummary/ThreadSummary.d.ts +24 -16
  56. package/dist/ThreadSummary/index.js +2 -2
  57. package/dist/{ThreadSummary-2AFEU6NH.css → ThreadSummary-3AODTHAM.css} +44 -35
  58. package/dist/TimeRangePicker/index.js +4 -4
  59. package/dist/VersionCompare/index.js +4 -4
  60. package/dist/VersionTimeline/index.js +1 -1
  61. package/dist/WorkingLine/index.js +2 -2
  62. package/dist/{chunk-7MKWQ3ZL.js → chunk-3DAIOPAV.js} +1 -1
  63. package/dist/{chunk-TLZ7NG6T.js → chunk-3WSDAVE6.js} +1 -1
  64. package/dist/{chunk-4OKNZZ5E.js → chunk-7FSIBX4S.js} +1 -1
  65. package/dist/{chunk-5EOOS2VG.js → chunk-A3SQWUWG.js} +2 -3
  66. package/dist/{chunk-ORBM3IHQ.js → chunk-AIYSPVVZ.js} +1 -1
  67. package/dist/{chunk-2JXILC4H.js → chunk-AQV5GYSX.js} +2 -2
  68. package/dist/{chunk-5SMYKL3D.js → chunk-ARZGEHWE.js} +2 -2
  69. package/dist/{chunk-ICIJUGKK.js → chunk-CAFDQEDT.js} +2 -2
  70. package/dist/{chunk-CMS5MLTU.js → chunk-E3AFQTWT.js} +1 -1
  71. package/dist/{chunk-FIQGLZ5Q.js → chunk-EGHOU7U2.js} +7 -3
  72. package/dist/{chunk-BG4GI5W3.js → chunk-FNJCCVQX.js} +1 -1
  73. package/dist/chunk-GTNXDLYH.js +146 -0
  74. package/dist/{chunk-KANE3PVJ.js → chunk-H2QSDZTX.js} +1 -1
  75. package/dist/chunk-IZGB6SQE.js +89 -0
  76. package/dist/{chunk-2FRELJBU.js → chunk-J74M64CN.js} +1 -1
  77. package/dist/{chunk-L2N7SZFY.js → chunk-JY6WSDUG.js} +1 -1
  78. package/dist/{chunk-ERNT3UTB.js → chunk-K5WTII2H.js} +3 -4
  79. package/dist/{chunk-SIL5WE55.js → chunk-LPQF7Z44.js} +1 -1
  80. package/dist/{chunk-56WQTRIW.js → chunk-M5UZLZUM.js} +1 -1
  81. package/dist/{chunk-UL46NV3X.js → chunk-NLGRDKCK.js} +2 -2
  82. package/dist/{chunk-4VQYVWPU.js → chunk-NMBGVHGQ.js} +2 -2
  83. package/dist/{chunk-XUFVRAEB.js → chunk-NZUOUIL6.js} +2 -2
  84. package/dist/{chunk-4Q7AWZ6O.js → chunk-OIC6S5ES.js} +1 -1
  85. package/dist/{chunk-SFO4KY65.js → chunk-OYKQVTJB.js} +1 -1
  86. package/dist/{chunk-GHRCG45F.js → chunk-PFTUWDZN.js} +1 -1
  87. package/dist/{chunk-I5HJ6Y6E.js → chunk-U4HA6LRQ.js} +8 -14
  88. package/dist/{chunk-FODDW4BC.js → chunk-V2FD4RPS.js} +1 -1
  89. package/dist/{chunk-TU6IC2XD.js → chunk-V47JOO72.js} +1 -1
  90. package/dist/{chunk-UA7FQCD7.js → chunk-XZB53C7U.js} +2 -2
  91. package/dist/{chunk-FXKRSBUM.js → chunk-YGURXCUZ.js} +1 -1
  92. package/dist/generated/index.d.ts +1 -0
  93. package/dist/generated/index.js +74 -73
  94. package/dist/index.js +74 -73
  95. package/dist/styles.css +164 -56
  96. package/package.json +3 -3
  97. package/dist/chunk-WNPKXYDJ.js +0 -141
  98. package/dist/{chunk-QV3WVNRA.js → chunk-2KUAO2CX.js} +0 -0
  99. package/dist/{chunk-3YOLD7WG.js → chunk-F7NHMBGJ.js} +1 -1
  100. package/dist/{chunk-WJIBZ2UM.js → chunk-R4LHYCZN.js} +1 -1
  101. package/dist/{chunk-JLOZE7QG.js → chunk-RSUZY3PI.js} +1 -1
  102. package/dist/{chunk-2DZV4PHK.js → chunk-WLL3PFI3.js} +1 -1
@@ -1,8 +1,8 @@
1
1
  import { Select } from './chunk-YKCLV77Z.js';
2
2
  import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
3
- import { HueSwatch } from './chunk-GHRCG45F.js';
3
+ import { HueSwatch } from './chunk-PFTUWDZN.js';
4
4
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
- import { Menu } from './chunk-FIQGLZ5Q.js';
5
+ import { Menu } from './chunk-EGHOU7U2.js';
6
6
  import { Checkbox } from './chunk-KFTVPWG2.js';
7
7
  import { Kbd } from './chunk-VBBLHS2Y.js';
8
8
  import { Button } from './chunk-M2M6ZD7P.js';
@@ -7,7 +7,7 @@ import { presenceLabels } from './chunk-Z7JYG5TF.js';
7
7
  import { Tag } from './chunk-SJ3EUCFD.js';
8
8
  import { Popover } from './chunk-KDRJZWE3.js';
9
9
  import { StatusDot } from './chunk-QRE6JCHS.js';
10
- import { Menu } from './chunk-FIQGLZ5Q.js';
10
+ import { Menu } from './chunk-EGHOU7U2.js';
11
11
  import { Avatar } from './chunk-XZY6S3UC.js';
12
12
  import { Button } from './chunk-M2M6ZD7P.js';
13
13
  import { IconButton } from './chunk-X5YI6E5X.js';
@@ -5,6 +5,7 @@ import { useComposedRef } from './chunk-L72URIHR.js';
5
5
  import { useLayerContainer, viewportBounds, visibleBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
6
6
  import { usePopupLayer } from './chunk-EDPMHSLZ.js';
7
7
  import { returnFocus } from './chunk-4ITETIGZ.js';
8
+ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
8
9
  import { cx } from './chunk-ODEQTPFM.js';
9
10
  import './Menu-M32ZXT6N.css';
10
11
  import { useId, useState, useRef, useCallback, useLayoutEffect, useEffect } from 'react';
@@ -358,18 +359,21 @@ function Menu({
358
359
  }
359
360
  )
360
361
  ) : withTip(
361
- /* @__PURE__ */ jsx(
362
+ /* @__PURE__ */ jsxs(
362
363
  Button,
363
364
  {
364
365
  ...shared,
365
- "aria-label": label,
366
+ "aria-label": valueTrigger ? void 0 : label,
366
367
  variant: triggerVariant,
367
368
  size: "small",
368
369
  flush: valueTrigger,
369
370
  className: valueTrigger ? "crewlet-menu__value-trigger" : void 0,
370
371
  leadingIcon: icon,
371
372
  trailingIcon,
372
- children: trigger
373
+ children: [
374
+ trigger,
375
+ valueTrigger ? /* @__PURE__ */ jsx(VisuallyHidden, { children: `, ${label}` }) : null
376
+ ]
373
377
  }
374
378
  )
375
379
  ),
@@ -1,4 +1,4 @@
1
- import { BouncingDots, WorkingLine } from './chunk-SFO4KY65.js';
1
+ import { BouncingDots, WorkingLine } from './chunk-OYKQVTJB.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ChatScale-LGESYXCO.css';
4
4
  import './ActivityLine-6RZHUYAC.css';
@@ -0,0 +1,146 @@
1
+ import { cx } from './chunk-ODEQTPFM.js';
2
+ import './ChatScale-LGESYXCO.css';
3
+ import './DeliveryReceipt-BILVVNTO.css';
4
+ import { useState } from 'react';
5
+ import { TriangleAlertGlyph, CheckGlyph } from '@crewlethq/icons/glyphs';
6
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
+
8
+ function andList(names) {
9
+ if (names.length <= 1) return names[0] ?? "";
10
+ return `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
11
+ }
12
+ var DELIVERY_RECEIPT_LABELS = {
13
+ reached: (who) => /* @__PURE__ */ jsxs(Fragment, { children: [
14
+ "Reached ",
15
+ who
16
+ ] }),
17
+ reachedAnswered: (who, count) => /* @__PURE__ */ jsxs(Fragment, { children: [
18
+ "Reached ",
19
+ who,
20
+ ", who ",
21
+ count === 2 ? "both " : count > 2 ? "all " : "",
22
+ "answered"
23
+ ] }),
24
+ partlyAnswered: (answered, waiting) => /* @__PURE__ */ jsxs(Fragment, { children: [
25
+ answered,
26
+ " answered, waiting on ",
27
+ waiting
28
+ ] }),
29
+ reaches: (who) => /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ "Will reach ",
31
+ who
32
+ ] }),
33
+ none: "Reached no agent",
34
+ noneDraft: "Will reach no agent",
35
+ list: andList,
36
+ reason: (words) => `(${words})`,
37
+ groups: (groups) => groups.join("; "),
38
+ truncated: "Some seats were not reached",
39
+ more: (count) => `and ${count} more`,
40
+ fewer: "Show fewer"
41
+ };
42
+ function DeliveryReceipt({
43
+ recipients,
44
+ tense = "sent",
45
+ truncated = false,
46
+ hint,
47
+ announce = false,
48
+ max = 1,
49
+ labels: overrides,
50
+ className,
51
+ ...rest
52
+ }) {
53
+ if (max !== Infinity && (!Number.isInteger(max) || max < 1)) {
54
+ throw new RangeError(
55
+ `DeliveryReceipt max must be a whole number of at least 1; it was ${max}`
56
+ );
57
+ }
58
+ const [expanded, setExpanded] = useState(false);
59
+ const labels = overrides ? { ...DELIVERY_RECEIPT_LABELS, ...overrides } : DELIVERY_RECEIPT_LABELS;
60
+ const cap = expanded ? Infinity : max;
61
+ const none = recipients.length === 0;
62
+ const answered = tense === "sent" ? recipients.filter((r) => r.answered) : [];
63
+ const waiting = tense === "sent" ? recipients.filter((r) => !r.answered) : recipients;
64
+ let capped = false;
65
+ const toggle = (count) => /* @__PURE__ */ jsx(
66
+ "button",
67
+ {
68
+ type: "button",
69
+ className: "crewlet-delivery-receipt__more",
70
+ "aria-expanded": expanded,
71
+ onClick: () => setExpanded((was) => !was),
72
+ children: expanded ? labels.fewer : labels.more(count)
73
+ }
74
+ );
75
+ const seats = (list, withReasons) => {
76
+ const shown = list.length > cap + 1 ? list.slice(0, cap) : list;
77
+ const hidden = list.length - shown.length;
78
+ if (hidden > 0) capped = true;
79
+ const order = [];
80
+ const byReason = /* @__PURE__ */ new Map();
81
+ for (const r of shown) {
82
+ const key = withReasons ? r.reason ?? "" : "";
83
+ const names = byReason.get(key);
84
+ if (names) names.push(r.name);
85
+ else {
86
+ order.push(key);
87
+ byReason.set(key, [r.name]);
88
+ }
89
+ }
90
+ const words = labels.groups(
91
+ order.map((key) => {
92
+ const names = byReason.get(key) ?? [];
93
+ const joined = hidden > 0 ? names.join(", ") : labels.list(names);
94
+ return key ? `${joined} ${labels.reason(key)}` : joined;
95
+ })
96
+ );
97
+ return hidden > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
98
+ words,
99
+ " ",
100
+ toggle(hidden)
101
+ ] }) : words;
102
+ };
103
+ let sentence;
104
+ if (none) sentence = tense === "draft" ? labels.noneDraft : labels.none;
105
+ else if (tense === "draft") sentence = labels.reaches(seats(recipients, true));
106
+ else if (answered.length === 0) sentence = labels.reached(seats(recipients, true));
107
+ else if (waiting.length === 0)
108
+ sentence = labels.reachedAnswered(seats(recipients, true), answered.length);
109
+ else sentence = labels.partlyAnswered(seats(answered, false), seats(waiting, true));
110
+ const fewer = expanded && !capped ? toggle(0) : null;
111
+ const after = [];
112
+ if (truncated && !none) after.push({ key: "truncated", words: labels.truncated });
113
+ if (none && hint)
114
+ after.push({ key: "hint", className: "crewlet-delivery-receipt__hint", words: hint });
115
+ const mark = none ? /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "xs" }) : answered.length > 0 ? /* @__PURE__ */ jsx(CheckGlyph, { size: "xs" }) : null;
116
+ return /* @__PURE__ */ jsxs(
117
+ "p",
118
+ {
119
+ ...rest,
120
+ role: announce ? "status" : void 0,
121
+ "data-tense": tense,
122
+ className: cx(
123
+ "crewlet-delivery-receipt",
124
+ none && "crewlet-delivery-receipt--none",
125
+ answered.length > 0 && "crewlet-delivery-receipt--answered",
126
+ className
127
+ ),
128
+ children: [
129
+ mark ? /* @__PURE__ */ jsx("span", { className: "crewlet-delivery-receipt__mark", "aria-hidden": "true", children: mark }) : null,
130
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-delivery-receipt__words", children: [
131
+ sentence,
132
+ fewer ? /* @__PURE__ */ jsxs(Fragment, { children: [
133
+ " ",
134
+ fewer
135
+ ] }) : null,
136
+ after.map((part) => /* @__PURE__ */ jsxs("span", { className: part.className, children: [
137
+ ". ",
138
+ part.words
139
+ ] }, part.key))
140
+ ] })
141
+ ]
142
+ }
143
+ );
144
+ }
145
+
146
+ export { DELIVERY_RECEIPT_LABELS, DeliveryReceipt };
@@ -1,4 +1,4 @@
1
- import { SegmentedControl } from './chunk-FODDW4BC.js';
1
+ import { SegmentedControl } from './chunk-V2FD4RPS.js';
2
2
  import { Button } from './chunk-M2M6ZD7P.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './MergeConflicts-HCXPRQVR.css';
@@ -0,0 +1,89 @@
1
+ import { Button } from './chunk-M2M6ZD7P.js';
2
+ import { cx } from './chunk-ODEQTPFM.js';
3
+ import './Clamp-Q5WKCGWY.css';
4
+ import { useState, useCallback, useRef, useId, useLayoutEffect } from 'react';
5
+ import { ChevronUpGlyph, ChevronDownGlyph } from '@crewlethq/icons/glyphs';
6
+ import { jsxs, jsx } from 'react/jsx-runtime';
7
+
8
+ var CLAMP_LABELS = {
9
+ more: "Show more",
10
+ less: "Show less"
11
+ };
12
+ var CLAMP_SLACK = 1.25;
13
+ function Clamp({
14
+ height = "20rem",
15
+ open: controlled,
16
+ defaultOpen = false,
17
+ onOpenChange,
18
+ labels: overrides,
19
+ className,
20
+ style,
21
+ onFocusCapture,
22
+ children,
23
+ ...rest
24
+ }) {
25
+ const labels = overrides ? { ...CLAMP_LABELS, ...overrides } : CLAMP_LABELS;
26
+ const [uncontrolled, setUncontrolled] = useState(defaultOpen);
27
+ const open = controlled ?? uncontrolled;
28
+ const setOpen = useCallback(
29
+ (next) => {
30
+ if (controlled === void 0) setUncontrolled(next);
31
+ onOpenChange?.(next);
32
+ },
33
+ [controlled, onOpenChange]
34
+ );
35
+ const body = useRef(null);
36
+ const content = useRef(null);
37
+ const fold = useRef(null);
38
+ const id = useId();
39
+ const [long, setLong] = useState(false);
40
+ useLayoutEffect(() => {
41
+ const inner = content.current;
42
+ const mark = fold.current;
43
+ if (!inner || !mark) return;
44
+ const measure = () => {
45
+ const limit = mark.offsetHeight;
46
+ setLong(limit > 0 && inner.offsetHeight > limit * CLAMP_SLACK);
47
+ };
48
+ measure();
49
+ if (typeof ResizeObserver !== "function") return;
50
+ const observer = new ResizeObserver(measure);
51
+ observer.observe(inner);
52
+ observer.observe(mark);
53
+ return () => observer.disconnect();
54
+ }, [height]);
55
+ const state = !long ? "whole" : open ? "open" : "folded";
56
+ return /* @__PURE__ */ jsxs(
57
+ "div",
58
+ {
59
+ ...rest,
60
+ className: cx("crewlet-clamp", className),
61
+ "data-state": state,
62
+ style: { "--crewlet-clamp-height": height, ...style },
63
+ onFocusCapture: (event) => {
64
+ onFocusCapture?.(event);
65
+ if (state === "folded" && body.current?.contains(event.target)) setOpen(true);
66
+ },
67
+ children: [
68
+ /* @__PURE__ */ jsx("span", { ref: fold, className: "crewlet-clamp__fold", "aria-hidden": "true" }),
69
+ /* @__PURE__ */ jsx("div", { ref: body, id, className: "crewlet-clamp__body", children: /* @__PURE__ */ jsx("div", { ref: content, className: "crewlet-clamp__content", children }) }),
70
+ long ? /* @__PURE__ */ jsx(
71
+ Button,
72
+ {
73
+ className: "crewlet-clamp__toggle",
74
+ variant: "ghost",
75
+ size: "small",
76
+ flush: true,
77
+ "aria-expanded": open,
78
+ "aria-controls": id,
79
+ leadingIcon: open ? /* @__PURE__ */ jsx(ChevronUpGlyph, { size: "sm" }) : /* @__PURE__ */ jsx(ChevronDownGlyph, { size: "sm" }),
80
+ onClick: () => setOpen(!open),
81
+ children: open ? labels.less : labels.more
82
+ }
83
+ ) : null
84
+ ]
85
+ }
86
+ );
87
+ }
88
+
89
+ export { CLAMP_LABELS, Clamp };
@@ -1,6 +1,6 @@
1
1
  import { Modal } from './chunk-IU7QVXHA.js';
2
2
  import { useClipboard } from './chunk-STJ7QBC3.js';
3
- import { Menu } from './chunk-FIQGLZ5Q.js';
3
+ import { Menu } from './chunk-EGHOU7U2.js';
4
4
  import { EmptyValue } from './chunk-WGLOH33S.js';
5
5
  import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
6
6
  import { Checkbox } from './chunk-KFTVPWG2.js';
@@ -1,6 +1,6 @@
1
1
  import { useRoving, tabStop, revealInRow } from './chunk-7F3OPUM5.js';
2
2
  import { StatusDot } from './chunk-QRE6JCHS.js';
3
- import { Menu } from './chunk-FIQGLZ5Q.js';
3
+ import { Menu } from './chunk-EGHOU7U2.js';
4
4
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
5
5
  import { Count } from './chunk-Y5CMDLQM.js';
6
6
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,5 +1,5 @@
1
1
  import { cx } from './chunk-ODEQTPFM.js';
2
- import './SearchTrigger-SE4GKNAY.css';
2
+ import './SearchTrigger-MME7NIHX.css';
3
3
  import { forwardRef } from 'react';
4
4
  import { SearchGlyph } from '@crewlethq/icons/glyphs';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -12,12 +12,11 @@ var SearchTrigger = forwardRef(function SearchTrigger2({ label = "Search", varia
12
12
  ref,
13
13
  type,
14
14
  className: cx("crewlet-search-trigger", `crewlet-search-trigger--${variant}`, className),
15
- "aria-label": label,
16
15
  "aria-keyshortcuts": keyshortcuts,
17
16
  children: [
18
- /* @__PURE__ */ jsx("span", { className: "crewlet-search-trigger__icon", children: icon ?? /* @__PURE__ */ jsx(SearchGlyph, { size: "sm" }) }),
17
+ /* @__PURE__ */ jsx("span", { className: "crewlet-search-trigger__icon", "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx(SearchGlyph, { size: "sm" }) }),
19
18
  /* @__PURE__ */ jsx("span", { className: "crewlet-search-trigger__label", children: label }),
20
- shortcut ? /* @__PURE__ */ jsx("span", { className: "crewlet-search-trigger__shortcut", children: shortcut }) : null
19
+ shortcut ? /* @__PURE__ */ jsx("span", { className: "crewlet-search-trigger__shortcut", "aria-hidden": "true", children: shortcut }) : null
21
20
  ]
22
21
  }
23
22
  );
@@ -1,4 +1,4 @@
1
- import { ContrastLevelTag } from './chunk-3YOLD7WG.js';
1
+ import { ContrastLevelTag } from './chunk-F7NHMBGJ.js';
2
2
  import { Popover } from './chunk-KDRJZWE3.js';
3
3
  import { IconButton } from './chunk-X5YI6E5X.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var engine = null;
10
10
  var loading = null;
11
11
  function loadEngine() {
12
- loading ??= import('./Editor-UIBCHECM.js').then(
12
+ loading ??= import('./Editor-RCFNNOLO.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -1,6 +1,6 @@
1
- import { SegmentedControl } from './chunk-FODDW4BC.js';
1
+ import { SegmentedControl } from './chunk-V2FD4RPS.js';
2
2
  import { ArtifactIcon } from './chunk-AVL52EME.js';
3
- import { Menu } from './chunk-FIQGLZ5Q.js';
3
+ import { Menu } from './chunk-EGHOU7U2.js';
4
4
  import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-VBBLHS2Y.js';
5
5
  import { Button } from './chunk-M2M6ZD7P.js';
6
6
  import { IconButton } from './chunk-X5YI6E5X.js';
@@ -1,6 +1,6 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { SegmentedControl } from './chunk-FODDW4BC.js';
3
- import { tabId } from './chunk-L2N7SZFY.js';
2
+ import { SegmentedControl } from './chunk-V2FD4RPS.js';
3
+ import { tabId } from './chunk-JY6WSDUG.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './MarkdownEditor-BLCJRGDC.css';
@@ -1,11 +1,11 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
2
  import { FilterPill } from './chunk-E4QX4VET.js';
3
3
  import { DateTimePicker } from './chunk-AQZPZYSY.js';
4
- import { DataTable } from './chunk-2FRELJBU.js';
4
+ import { DataTable } from './chunk-J74M64CN.js';
5
5
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
6
6
  import { Toolbar } from './chunk-NPEI2QAN.js';
7
7
  import { Popover } from './chunk-KDRJZWE3.js';
8
- import { Menu } from './chunk-FIQGLZ5Q.js';
8
+ import { Menu } from './chunk-EGHOU7U2.js';
9
9
  import { RelativeTime } from './chunk-GBKBME7Q.js';
10
10
  import { Kbd } from './chunk-VBBLHS2Y.js';
11
11
  import { Button } from './chunk-M2M6ZD7P.js';
@@ -1,5 +1,5 @@
1
1
  import { FileDrop, FilePickButton } from './chunk-XF5PDUDH.js';
2
- import { contrastRatio } from './chunk-3YOLD7WG.js';
2
+ import { contrastRatio } from './chunk-F7NHMBGJ.js';
3
3
  import { normalizeHex } from './chunk-7W3LYIOC.js';
4
4
  import { Button } from './chunk-M2M6ZD7P.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,4 +1,4 @@
1
- import { AvatarStack } from './chunk-5SMYKL3D.js';
1
+ import { AvatarStack } from './chunk-ARZGEHWE.js';
2
2
  import { Avatar } from './chunk-XZY6S3UC.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
2
- import { SegmentedControl } from './chunk-FODDW4BC.js';
2
+ import { SegmentedControl } from './chunk-V2FD4RPS.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,18 +1,16 @@
1
1
  import { Tag } from './chunk-SJ3EUCFD.js';
2
- import { AvatarStack } from './chunk-5SMYKL3D.js';
2
+ import { AvatarStack } from './chunk-ARZGEHWE.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ChatScale-LGESYXCO.css';
5
- import './ThreadSummary-2AFEU6NH.css';
5
+ import './ThreadSummary-3AODTHAM.css';
6
6
  import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
7
7
  import { jsxs, jsx } from 'react/jsx-runtime';
8
8
 
9
- var THREAD_SUMMARY_FACE = 24;
9
+ var THREAD_SUMMARY_FACE = "xs";
10
10
  var THREAD_SUMMARY_LABELS = {
11
11
  replies: (count) => count === 1 ? "1 reply" : `${count.toLocaleString()} replies`,
12
12
  fresh: (count) => `${count.toLocaleString()} new`,
13
- last: (when) => `Last reply ${when}`,
14
- view: "View thread",
15
- open: "Thread open"
13
+ last: (when) => `last reply ${when}`
16
14
  };
17
15
  function ThreadSummary({
18
16
  replies,
@@ -28,25 +26,21 @@ function ThreadSummary({
28
26
  const labels = overrides ? { ...THREAD_SUMMARY_LABELS, ...overrides } : THREAD_SUMMARY_LABELS;
29
27
  const count = labels.replies(replies);
30
28
  const fresh = unread > 0 ? labels.fresh(unread) : null;
31
- const when = labels.last(last);
32
29
  return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-thread-summary-wrap", className), children: [
33
30
  /* @__PURE__ */ jsxs(
34
31
  "button",
35
32
  {
36
33
  type: "button",
37
34
  className: cx("crewlet-thread-summary", open && "is-open"),
38
- "aria-label": [count, fresh, when].filter(Boolean).join(", "),
35
+ "aria-label": [count, fresh, last ? labels.last(last) : null].filter(Boolean).join(", "),
39
36
  "aria-expanded": open,
40
37
  onClick: onOpen,
41
38
  children: [
42
- /* @__PURE__ */ jsx(AvatarStack, { members: participants, size: THREAD_SUMMARY_FACE, max: 3, spread: true, decorative: true }),
39
+ /* @__PURE__ */ jsx(AvatarStack, { members: participants, size: THREAD_SUMMARY_FACE, max: 3, decorative: true }),
43
40
  /* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__count", children: count }),
44
41
  fresh ? /* @__PURE__ */ jsx(Tag, { size: "xs", variant: "brand", children: fresh }) : null,
45
- /* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__last", "aria-hidden": "true", children: when }),
46
- /* @__PURE__ */ jsxs("span", { className: "crewlet-thread-summary__end", "aria-hidden": "true", children: [
47
- /* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__view", children: open ? labels.open : labels.view }),
48
- /* @__PURE__ */ jsx(ChevronRightGlyph, { size: "sm", className: "crewlet-thread-summary__chevron" })
49
- ] })
42
+ last ? /* @__PURE__ */ jsx("span", { className: "crewlet-thread-summary__last", "aria-hidden": "true", children: last }) : null,
43
+ /* @__PURE__ */ jsx(ChevronRightGlyph, { size: "sm", className: "crewlet-thread-summary__chevron" })
50
44
  ]
51
45
  }
52
46
  ),
@@ -1,4 +1,4 @@
1
- import { tabId } from './chunk-L2N7SZFY.js';
1
+ import { tabId } from './chunk-JY6WSDUG.js';
2
2
  import { useRoving, tabStop } from './chunk-7F3OPUM5.js';
3
3
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
4
4
  import { Count } from './chunk-Y5CMDLQM.js';
@@ -1,6 +1,6 @@
1
1
  import { releaseFocus, usePresence } from './chunk-SNKQNAJI.js';
2
2
  import { useRailShape, RailShapeContext, RailLeavingContext } from './chunk-JLOESTT2.js';
3
- import { Menu } from './chunk-FIQGLZ5Q.js';
3
+ import { Menu } from './chunk-EGHOU7U2.js';
4
4
  import { PeekContext, AsideContext } from './chunk-MBEZOURR.js';
5
5
  import { ResizeHandle, clampSize } from './chunk-FQ6J4DK7.js';
6
6
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
@@ -2,11 +2,11 @@ import { Skeleton } from './chunk-WFAJYBLX.js';
2
2
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
3
3
  import { RelativeTime } from './chunk-GBKBME7Q.js';
4
4
  import { Card } from './chunk-RABEMWTA.js';
5
- import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
6
5
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
7
6
  import { Checkbox } from './chunk-KFTVPWG2.js';
7
+ import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
8
8
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
9
- import { AvatarStack } from './chunk-5SMYKL3D.js';
9
+ import { AvatarStack } from './chunk-ARZGEHWE.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
12
12
  import './ArtifactKinds-27TE3KJL.css';
@@ -1,6 +1,6 @@
1
1
  import { Modal } from './chunk-IU7QVXHA.js';
2
2
  import { Callout } from './chunk-RCQLXOGS.js';
3
- import { SegmentedControl } from './chunk-FODDW4BC.js';
3
+ import { SegmentedControl } from './chunk-V2FD4RPS.js';
4
4
  import { Button } from './chunk-M2M6ZD7P.js';
5
5
  import { FormField, Input } from './chunk-NN44J7BP.js';
6
6
  import { useState } from 'react';
@@ -57,6 +57,7 @@ export * from '../ChipField/index.js';
57
57
  export * from '../ChoiceButtons/index.js';
58
58
  export * from '../ChoiceCards/index.js';
59
59
  export * from '../ChoiceList/index.js';
60
+ export * from '../Clamp/index.js';
60
61
  export * from '../CodeBlock/index.js';
61
62
  export * from '../ColorChip/index.js';
62
63
  export * from '../ColorField/index.js';