@crewlethq/ui 0.186.0 → 0.187.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 (90) hide show
  1. package/README.md +12 -0
  2. package/dist/ActivityLine/index.js +3 -3
  3. package/dist/AddPill/AddPill.d.ts +26 -9
  4. package/dist/AddPill/index.d.ts +2 -2
  5. package/dist/AddPill/index.js +1 -1
  6. package/dist/AgentHandoffPanel/index.js +1 -1
  7. package/dist/AppShell/index.js +2 -2
  8. package/dist/ArtifactCard/index.js +4 -4
  9. package/dist/Avatar/AvatarStack.d.ts +9 -4
  10. package/dist/Avatar/index.js +1 -1
  11. package/dist/{AvatarStack-UNBXFHTZ.css → AvatarStack-6N6V7L7L.css} +11 -3
  12. package/dist/CommentThread/index.js +3 -3
  13. package/dist/DataGrid/index.js +2 -2
  14. package/dist/{DataGrid-K2L4ZOUH.css → DataGrid-UGOZXHJS.css} +5 -0
  15. package/dist/DataView/index.js +2 -2
  16. package/dist/DatasetSource/index.js +2 -2
  17. package/dist/DurationField/index.js +2 -2
  18. package/dist/EditingStatus/index.js +2 -2
  19. package/dist/EntityChip/index.js +1 -1
  20. package/dist/ImageUpload/index.js +1 -1
  21. package/dist/InlineEditor/index.js +3 -3
  22. package/dist/OrgLabel/OrgLabel.d.ts +6 -0
  23. package/dist/OrgLabel/index.js +2 -2
  24. package/dist/{OrgLabel-WCI3OIFL.css → OrgLabel-4NDGABVY.css} +11 -6
  25. package/dist/OrgNode/index.js +3 -3
  26. package/dist/OrgTable/OrgTable.d.ts +6 -3
  27. package/dist/OrgTable/index.js +7 -7
  28. package/dist/{OrgTable-5NXRECVP.css → OrgTable-73WNQCH3.css} +5 -4
  29. package/dist/PeopleRail/index.js +1 -1
  30. package/dist/PresenceStack/index.js +1 -1
  31. package/dist/Principal/index.js +1 -1
  32. package/dist/PrincipalPicker/index.js +1 -1
  33. package/dist/ProposalCard/index.js +4 -4
  34. package/dist/RailList/index.js +2 -2
  35. package/dist/RelativeTime/clock.d.ts +6 -0
  36. package/dist/RelativeTime/index.js +1 -1
  37. package/dist/RichEditor/index.js +1 -1
  38. package/dist/Select/Select.d.ts +10 -0
  39. package/dist/Select/index.js +1 -1
  40. package/dist/{Select-2FAOIL73.css → Select-DRBDKBRO.css} +50 -1
  41. package/dist/SettingsTable/index.js +2 -2
  42. package/dist/ShareDialog/index.js +3 -3
  43. package/dist/SheetColumnEditor/index.js +2 -2
  44. package/dist/SheetGrid/index.js +1 -1
  45. package/dist/TableCells/index.js +3 -3
  46. package/dist/ThreadSummary/index.js +2 -2
  47. package/dist/TimeWindowPicker/index.js +2 -2
  48. package/dist/TreeGrid/index.js +3 -3
  49. package/dist/{TreeGrid-XZCH5WCC.css → TreeGrid-QKEQXK26.css} +19 -2
  50. package/dist/ValueField/index.js +2 -2
  51. package/dist/VersionTimeline/index.js +3 -3
  52. package/dist/WidgetFrame/index.js +2 -2
  53. package/dist/WorkingLine/index.js +2 -2
  54. package/dist/{chunk-4NOTOHF7.js → chunk-2TN6ALNE.js} +1 -1
  55. package/dist/{chunk-6SGMBLOE.js → chunk-3PBQNCPC.js} +1 -1
  56. package/dist/{chunk-LMP2Y7PZ.js → chunk-5UUG3QCO.js} +1 -1
  57. package/dist/{chunk-GBKBME7Q.js → chunk-5ZL3PXEL.js} +6 -1
  58. package/dist/{chunk-L4M3EOCH.js → chunk-6DQPSI54.js} +1 -1
  59. package/dist/{chunk-WDVENT6N.js → chunk-72AZMU55.js} +33 -12
  60. package/dist/{chunk-5LLZEA7F.js → chunk-7BDGWCB4.js} +1 -1
  61. package/dist/{chunk-S3WUN7GH.js → chunk-A42UVBJQ.js} +2 -2
  62. package/dist/{chunk-ZDHQ5ZDT.js → chunk-A4CTKERL.js} +1 -1
  63. package/dist/{chunk-NIM7LEEI.js → chunk-BZLQHZKH.js} +3 -2
  64. package/dist/{chunk-MB2C2GGW.js → chunk-CHBNLTVC.js} +1 -1
  65. package/dist/{chunk-D3G7T4NA.js → chunk-CPOTDACH.js} +3 -3
  66. package/dist/{chunk-UBXJBVYV.js → chunk-DPDOQJWH.js} +2 -2
  67. package/dist/{chunk-5CCM3DDA.js → chunk-EHRNLV3D.js} +56 -7
  68. package/dist/{chunk-7LQRG3BP.js → chunk-EO4CV3P7.js} +1 -1
  69. package/dist/{chunk-DV7KWYC6.js → chunk-FTWZ2AQR.js} +1 -1
  70. package/dist/{chunk-6PDRZJJA.js → chunk-KCV47P7J.js} +1 -1
  71. package/dist/{chunk-JH2IATUQ.js → chunk-KQWB2MDP.js} +1 -1
  72. package/dist/{chunk-D4ACFQCR.js → chunk-LG72TVII.js} +2 -2
  73. package/dist/{chunk-NKSPHNL2.js → chunk-PV3TWLEK.js} +1 -1
  74. package/dist/{chunk-D5UVJL4I.js → chunk-QZNENGHA.js} +31 -16
  75. package/dist/{chunk-7U6JFHJY.js → chunk-RYTE4I55.js} +12 -5
  76. package/dist/{chunk-BYU7YSOM.js → chunk-S33O4PTO.js} +1 -1
  77. package/dist/{chunk-TCBV4K7V.js → chunk-T53EKFO2.js} +1 -1
  78. package/dist/{chunk-KRF3GQ63.js → chunk-TDQB6AXC.js} +1 -1
  79. package/dist/{chunk-FEMWZYZV.js → chunk-UIRMNARM.js} +1 -1
  80. package/dist/{chunk-JIBK6CQZ.js → chunk-V2ZUNC7X.js} +2 -2
  81. package/dist/{chunk-M34LSGMH.js → chunk-WU73BKXL.js} +17 -6
  82. package/dist/{chunk-T7Y5FM4B.js → chunk-X2CFDU5S.js} +7 -2
  83. package/dist/{chunk-UIA7FKDE.js → chunk-XG6PTSHE.js} +1 -1
  84. package/dist/{chunk-KFX6FQKU.js → chunk-ZXX24HXF.js} +1 -1
  85. package/dist/generated/index.js +58 -58
  86. package/dist/index.js +58 -58
  87. package/dist/styles.css +107 -22
  88. package/package.json +3 -3
  89. package/dist/{Editor-NFC7HEWU.js → Editor-WFP2MM6M.js} +1 -1
  90. package/dist/{chunk-5EYWFZ4G.js → chunk-SVA5VPCB.js} +1 -1
@@ -146,6 +146,16 @@ export interface SelectProps extends NativePassthrough {
146
146
  * A quiet filter that is on takes the accent's soft fill and ink.
147
147
  */
148
148
  appearance?: SelectAppearance;
149
+ /**
150
+ * `flush` pulls the trigger back by its own padding and border, so its text
151
+ * starts on the column's x, as a quiet picker in a table cell wants.
152
+ */
153
+ inset?: 'default' | 'flush' | undefined;
154
+ /**
155
+ * `fit` sets every option's `hint` in one column at the row's end, as wide as
156
+ * the widest, so a status dot in each starts at one x. Listbox mode only.
157
+ */
158
+ hintColumn?: 'inline' | 'fit' | undefined;
149
159
  ariaLabel?: string;
150
160
  searchable?: boolean;
151
161
  searchPlaceholder?: string;
@@ -1,4 +1,4 @@
1
- export { Select } from '../chunk-D5UVJL4I.js';
1
+ export { Select } from '../chunk-QZNENGHA.js';
2
2
  import '../chunk-KW7T23RT.js';
3
3
  import '../chunk-2YTOOH3A.js';
4
4
  import '../chunk-JLKO7PSK.js';
@@ -164,6 +164,16 @@
164
164
  cursor: not-allowed;
165
165
  }
166
166
 
167
+ /* FLUSH: pulled back by its own leading padding and border, so its text starts on the column's x. */
168
+ .crewlet-select--flush {
169
+ --crewlet-select-flush: calc(var(--spacing-3) + 1px);
170
+ margin-inline-start: calc(-1 * var(--crewlet-select-flush));
171
+ }
172
+
173
+ .crewlet-select--flush.crewlet-select--sm {
174
+ --crewlet-select-flush: calc(var(--spacing-2) + 1px);
175
+ }
176
+
167
177
  /* ── The trigger, native and built ───────────────────────────────────── */
168
178
 
169
179
  /*
@@ -469,7 +479,9 @@ svg.crewlet-select__chevron {
469
479
  /* A hint ends the row's FIRST line, on the label's baseline, rather than
470
480
  sitting on the row's top edge at its own smaller size. */
471
481
  .crewlet-select__option:has(> .crewlet-listbox__hint) .crewlet-select__option-body,
472
- .crewlet-select__option > .crewlet-listbox__hint {
482
+ .crewlet-select__option > .crewlet-listbox__hint,
483
+ .crewlet-select__option-main:has(> .crewlet-listbox__hint) > .crewlet-select__option-body,
484
+ .crewlet-select__option-main > .crewlet-listbox__hint {
473
485
  align-self: baseline;
474
486
  }
475
487
 
@@ -573,3 +585,40 @@ svg.crewlet-select__chevron {
573
585
  transition: none;
574
586
  }
575
587
  }
588
+
589
+ /* A FITTED HINT COLUMN: every row on two shared tracks, so each hint starts at one x.
590
+ One weight in every row, so the chosen row's hint is no wider. */
591
+ .crewlet-select__list.crewlet-select__list--fit {
592
+ display: grid;
593
+ grid-template-columns: minmax(0, 1fr) auto;
594
+ align-content: start;
595
+ column-gap: var(--spacing-3);
596
+ }
597
+
598
+ .crewlet-select__list--fit > .crewlet-select__option,
599
+ .crewlet-select__list--fit > .crewlet-select__group,
600
+ .crewlet-select__list--fit > .crewlet-select__group > .crewlet-select__option {
601
+ display: grid;
602
+ grid-template-columns: subgrid;
603
+ grid-column: 1 / -1;
604
+ }
605
+
606
+ .crewlet-select__list--fit > .crewlet-select__group > .crewlet-listbox__heading {
607
+ grid-column: 1 / -1;
608
+ }
609
+
610
+ .crewlet-select__option-main {
611
+ display: flex;
612
+ align-items: flex-start;
613
+ gap: var(--spacing-2);
614
+ min-width: 0;
615
+ }
616
+
617
+ .crewlet-select__menu .crewlet-select__option-hint {
618
+ display: inline-flex;
619
+ align-items: center;
620
+ justify-self: start;
621
+ margin-left: 0;
622
+ min-height: calc(var(--font-line-height-normal) * 1em);
623
+ font-weight: var(--font-weight-regular);
624
+ }
@@ -1,5 +1,5 @@
1
- export { SETTINGS_TABLE_ROW_LABELS, SettingsTable, SettingsTableRow } from '../chunk-D4ACFQCR.js';
2
- import '../chunk-M34LSGMH.js';
1
+ export { SETTINGS_TABLE_ROW_LABELS, SettingsTable, SettingsTableRow } from '../chunk-LG72TVII.js';
2
+ import '../chunk-WU73BKXL.js';
3
3
  import '../chunk-5WJKJGL4.js';
4
4
  import '../chunk-STJ7QBC3.js';
5
5
  import '../chunk-DTIW4CHZ.js';
@@ -1,8 +1,8 @@
1
- export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-6SGMBLOE.js';
2
- import '../chunk-D5UVJL4I.js';
1
+ export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-3PBQNCPC.js';
2
+ import '../chunk-QZNENGHA.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-265IX4YA.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -1,6 +1,6 @@
1
- export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-7LQRG3BP.js';
1
+ export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-EO4CV3P7.js';
2
2
  import '../chunk-FFMCMSJB.js';
3
- import '../chunk-D5UVJL4I.js';
3
+ import '../chunk-QZNENGHA.js';
4
4
  import '../chunk-KW7T23RT.js';
5
5
  import '../chunk-LFSIKGRQ.js';
6
6
  import '../chunk-Z7JYG5TF.js';
@@ -8,7 +8,7 @@ import '../chunk-LFSIKGRQ.js';
8
8
  import '../chunk-Z7JYG5TF.js';
9
9
  import '../chunk-AYKXMIOR.js';
10
10
  import '../chunk-4IB7HVDN.js';
11
- import '../chunk-T7Y5FM4B.js';
11
+ import '../chunk-X2CFDU5S.js';
12
12
  import '../chunk-EX5XAEST.js';
13
13
  import '../chunk-AJFA2XDQ.js';
14
14
  import '../chunk-YMFFGPFE.js';
@@ -1,8 +1,8 @@
1
- export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-5LLZEA7F.js';
1
+ export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell, TableTwoLineCell } from '../chunk-7BDGWCB4.js';
2
2
  import '../chunk-MGJAOLZC.js';
3
- import '../chunk-GBKBME7Q.js';
3
+ import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
- export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-DV7KWYC6.js';
2
- import '../chunk-T7Y5FM4B.js';
1
+ export { THREAD_SUMMARY_FACE, THREAD_SUMMARY_LABELS, ThreadSummary } from '../chunk-FTWZ2AQR.js';
2
+ import '../chunk-X2CFDU5S.js';
3
3
  import '../chunk-EX5XAEST.js';
4
4
  import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
- export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-MB2C2GGW.js';
2
- import '../chunk-D5UVJL4I.js';
1
+ export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-CHBNLTVC.js';
2
+ import '../chunk-QZNENGHA.js';
3
3
  import '../chunk-KW7T23RT.js';
4
4
  import '../chunk-EE3DJMSQ.js';
5
5
  import '../chunk-AJFA2XDQ.js';
@@ -1,7 +1,7 @@
1
- export { TreeGrid } from '../chunk-WDVENT6N.js';
1
+ export { TreeGrid } from '../chunk-72AZMU55.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-UBXJBVYV.js';
4
- import '../chunk-M34LSGMH.js';
3
+ import '../chunk-DPDOQJWH.js';
4
+ import '../chunk-WU73BKXL.js';
5
5
  import '../chunk-CUEPPDBC.js';
6
6
  import '../chunk-WFAJYBLX.js';
7
7
  import '../chunk-JMBPMSNI.js';
@@ -56,6 +56,11 @@
56
56
  border-radius: var(--radius-md);
57
57
  }
58
58
 
59
+ /* A face stack in a row is cut out of the row's own ground (AvatarStack.css). */
60
+ .crewlet-tree-grid {
61
+ --crewlet-avatar-stack-ground: var(--color-surface-subtle);
62
+ }
63
+
59
64
  .crewlet-tree-grid__grid {
60
65
  display: grid;
61
66
  grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
@@ -134,6 +139,7 @@
134
139
  }
135
140
 
136
141
  .crewlet-tree-grid__body > .crewlet-tree-grid__row:hover {
142
+ --crewlet-avatar-stack-tint: var(--color-surface-hover);
137
143
  background: var(--color-surface-hover);
138
144
  }
139
145
 
@@ -295,6 +301,13 @@
295
301
  outline-offset: var(--size-focus-ring-inset-offset);
296
302
  }
297
303
 
304
+ /* AFTER A POINTER PRESS, NO RING: the keyboard's ring returns with its next key.
305
+ Transparent rather than none, so forced-colors mode still draws one. */
306
+ .crewlet-tree-grid[data-pointer] .crewlet-tree-grid__row:focus-visible,
307
+ .crewlet-tree-grid[data-pointer] .crewlet-tree-grid__cell:focus-visible {
308
+ outline: 2px solid transparent;
309
+ }
310
+
298
311
  /*
299
312
  * A HEADLESS GRID keeps its header row for a screen reader and draws no band:
300
313
  * the row is taken out of the layout the way VisuallyHidden takes text out.
@@ -399,8 +412,12 @@
399
412
  justify-content: flex-start;
400
413
  }
401
414
 
402
- /* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES: past the edge, the chevron
403
- and the row's level. A drawn indent (an org table's wires) sets its own. */
415
+ /* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES in a compact card (below); a
416
+ labelled card starts it at the grid's edge, so its labels are one column. */
417
+ .crewlet-tree-grid[data-stacked]:not([data-phone-rows='compact']) .crewlet-tree-grid__cell {
418
+ --crewlet-tree-grid-value-indent: var(--crewlet-tree-grid-edge);
419
+ }
420
+
404
421
  .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:not(:first-child) {
405
422
  padding-block: 1px;
406
423
  padding-inline: var(
@@ -1,5 +1,5 @@
1
- export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-S3WUN7GH.js';
2
- import '../chunk-D5UVJL4I.js';
1
+ export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-A42UVBJQ.js';
2
+ import '../chunk-QZNENGHA.js';
3
3
  import '../chunk-YXRC2NSO.js';
4
4
  import '../chunk-KW7T23RT.js';
5
5
  import '../chunk-2YTOOH3A.js';
@@ -1,8 +1,8 @@
1
- export { VersionTimeline } from '../chunk-6PDRZJJA.js';
1
+ export { VersionTimeline } from '../chunk-KCV47P7J.js';
2
2
  import '../chunk-265IX4YA.js';
3
- import '../chunk-GBKBME7Q.js';
3
+ import '../chunk-5ZL3PXEL.js';
4
4
  import '../chunk-WGLOH33S.js';
5
- import '../chunk-T7Y5FM4B.js';
5
+ import '../chunk-X2CFDU5S.js';
6
6
  import '../chunk-EX5XAEST.js';
7
7
  import '../chunk-AJFA2XDQ.js';
8
8
  import '../chunk-YMFFGPFE.js';
@@ -1,5 +1,5 @@
1
- export { WidgetFrame } from '../chunk-NKSPHNL2.js';
2
- import '../chunk-GBKBME7Q.js';
1
+ export { WidgetFrame } from '../chunk-PV3TWLEK.js';
2
+ import '../chunk-5ZL3PXEL.js';
3
3
  import '../chunk-WGLOH33S.js';
4
4
  import '../chunk-WFAJYBLX.js';
5
5
  import '../chunk-HTS5RJ7S.js';
@@ -1,5 +1,5 @@
1
- export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-BYU7YSOM.js';
2
- import '../chunk-T7Y5FM4B.js';
1
+ export { BouncingDots, WORKING_LINE_LABELS, WorkingLine, workingAnnouncement, workingSentence } from '../chunk-S33O4PTO.js';
2
+ import '../chunk-X2CFDU5S.js';
3
3
  import '../chunk-EX5XAEST.js';
4
4
  import '../chunk-AJFA2XDQ.js';
5
5
  import '../chunk-YMFFGPFE.js';
@@ -1,4 +1,4 @@
1
- import { EditingStatus } from './chunk-KRF3GQ63.js';
1
+ import { EditingStatus } from './chunk-TDQB6AXC.js';
2
2
  import { Kbd } from './chunk-VBBLHS2Y.js';
3
3
  import { Button } from './chunk-NMIXL2YH.js';
4
4
  import { isComposing } from './chunk-EDPMHSLZ.js';
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
3
3
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
4
4
  import { CopyButton } from './chunk-5WJKJGL4.js';
@@ -1,5 +1,5 @@
1
1
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
2
- import { toInstant, RelativeTime, formatExact, toISO } from './chunk-GBKBME7Q.js';
2
+ import { toInstant, RelativeTime, formatExact, toISO } from './chunk-5ZL3PXEL.js';
3
3
  import { Document } from './chunk-I4PBFJGX.js';
4
4
  import { Composer } from './chunk-EGBHW6FS.js';
5
5
  import { Button } from './chunk-NMIXL2YH.js';
@@ -5,6 +5,7 @@ import { useSyncExternalStore } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
7
7
  var now = Date.now();
8
+ var decided = false;
8
9
  var listeners = /* @__PURE__ */ new Set();
9
10
  var timer = 0;
10
11
  function tick() {
@@ -37,7 +38,11 @@ function subscribe(listener) {
37
38
  }
38
39
  var TICK = 1e3;
39
40
  function read() {
40
- if (!timer) {
41
+ if (!timer && !decided) {
42
+ decided = true;
43
+ queueMicrotask(() => {
44
+ decided = false;
45
+ });
41
46
  const current = Date.now();
42
47
  if (Math.abs(current - now) >= TICK) now = current;
43
48
  }
@@ -4,7 +4,7 @@ import { DateTimePicker } from './chunk-PHA2MBXY.js';
4
4
  import { DataTable } from './chunk-KOTOBDOA.js';
5
5
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
6
6
  import { Toolbar } from './chunk-NPEI2QAN.js';
7
- import { RelativeTime } from './chunk-GBKBME7Q.js';
7
+ import { RelativeTime } from './chunk-5ZL3PXEL.js';
8
8
  import { Menu } from './chunk-4IB7HVDN.js';
9
9
  import { Popover } from './chunk-AJFA2XDQ.js';
10
10
  import { Kbd } from './chunk-VBBLHS2Y.js';
@@ -1,6 +1,6 @@
1
1
  import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
2
- import { fitGridColumns } from './chunk-UBXJBVYV.js';
3
- import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-M34LSGMH.js';
2
+ import { fitGridColumns } from './chunk-DPDOQJWH.js';
3
+ import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-WU73BKXL.js';
4
4
  import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
5
5
  import { EmptyState } from './chunk-HG7J6I65.js';
6
6
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
@@ -9,8 +9,8 @@ import { IconButton } from './chunk-CMEZGORB.js';
9
9
  import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-AVJKMQXK.js';
10
10
  import { focusables } from './chunk-EDPMHSLZ.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
12
- import './TreeGrid-XZCH5WCC.css';
13
- import { useRef, useState, useLayoutEffect, useEffect, useMemo, useCallback, useImperativeHandle } from 'react';
12
+ import './TreeGrid-QKEQXK26.css';
13
+ import { useRef, useState, useEffect, useLayoutEffect, useMemo, useCallback, useImperativeHandle } from 'react';
14
14
  import { breakpoint } from '@crewlethq/tokens';
15
15
  import { ChevronRightGlyph } from '@crewlethq/icons/glyphs';
16
16
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -97,6 +97,14 @@ function TreeGrid({
97
97
  }) {
98
98
  const text = { ...LABELS, ...labels };
99
99
  const frame = useRef(null);
100
+ const [pointer, setPointer] = useState(false);
101
+ useEffect(() => {
102
+ if (!pointer) return void 0;
103
+ const key = () => setPointer(false);
104
+ document.addEventListener("keydown", key, true);
105
+ return () => document.removeEventListener("keydown", key, true);
106
+ }, [pointer]);
107
+ const onPointerDownCapture = () => setPointer(true);
100
108
  const gridEl = useRef(null);
101
109
  const [width, setWidth] = useState(0);
102
110
  const reportWidth = useRef(onWidthChange);
@@ -363,16 +371,26 @@ function TreeGrid({
363
371
  className
364
372
  );
365
373
  if (forest.length === 0 && empty) {
366
- return /* @__PURE__ */ jsx("div", { ref: frame, className: frameClass, "data-flush": flush || void 0, children: /* @__PURE__ */ jsx("div", { className: "crewlet-tree-grid__scroller", children: /* @__PURE__ */ jsx(
367
- EmptyState,
374
+ return /* @__PURE__ */ jsx(
375
+ "div",
368
376
  {
369
- size: "compact",
370
- icon: empty.icon,
371
- title: empty.title,
372
- description: empty.hint,
373
- action: empty.action
377
+ ref: frame,
378
+ className: frameClass,
379
+ "data-flush": flush || void 0,
380
+ "data-pointer": pointer || void 0,
381
+ onPointerDownCapture,
382
+ children: /* @__PURE__ */ jsx("div", { className: "crewlet-tree-grid__scroller", children: /* @__PURE__ */ jsx(
383
+ EmptyState,
384
+ {
385
+ size: "compact",
386
+ icon: empty.icon,
387
+ title: empty.title,
388
+ description: empty.hint,
389
+ action: empty.action
390
+ }
391
+ ) })
374
392
  }
375
- ) }) });
393
+ );
376
394
  }
377
395
  return /* @__PURE__ */ jsx(
378
396
  "div",
@@ -382,6 +400,8 @@ function TreeGrid({
382
400
  "data-flush": flush || void 0,
383
401
  "data-stacked": stacked || void 0,
384
402
  "data-phone-rows": stacked && phoneRows === "compact" ? "compact" : void 0,
403
+ "data-pointer": pointer || void 0,
404
+ onPointerDownCapture,
385
405
  children: /* @__PURE__ */ jsxs(LayerHost, { className: "crewlet-tree-grid__layer", children: [
386
406
  /* @__PURE__ */ jsxs("div", { className: "crewlet-tree-grid__scroller", onScroll, children: [
387
407
  /* @__PURE__ */ jsxs(
@@ -455,6 +475,7 @@ function TreeGrid({
455
475
  "aria-colindex": col,
456
476
  tabIndex: stop(id, col) && !hasControl(id, col, drawn[col - 1]?.key ?? "") ? 0 : -1,
457
477
  "data-size": one?.size === "sm" ? "sm" : void 0,
478
+ "data-align": one?.align,
458
479
  "data-label": one && !one.action && col > 1 ? headerWord(one) || one.label || void 0 : void 0,
459
480
  className: cx(
460
481
  "crewlet-tree-grid__cell",
@@ -1,5 +1,5 @@
1
1
  import { Link } from './chunk-MGJAOLZC.js';
2
- import { RelativeTime } from './chunk-GBKBME7Q.js';
2
+ import { RelativeTime } from './chunk-5ZL3PXEL.js';
3
3
  import { EmptyValue } from './chunk-WGLOH33S.js';
4
4
  import { overflowWords, shownBeforeOverflow, ListOverflow } from './chunk-EX5XAEST.js';
5
5
  import { Avatar } from './chunk-YMFFGPFE.js';
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { Combobox } from './chunk-YXRC2NSO.js';
3
3
  import { Button } from './chunk-NMIXL2YH.js';
4
4
  import { FormField, Textarea, InputAffix } from './chunk-LSQ5BNLZ.js';
@@ -7,7 +7,7 @@ import './Input-YVCNNTYT.css';
7
7
  import './VisuallyHidden-OUYVMKEH.css';
8
8
  import './HitArea-QUOS6ZDJ.css';
9
9
  import './Combobox-GHT43K32.css';
10
- import './Select-2FAOIL73.css';
10
+ import './Select-DRBDKBRO.css';
11
11
  import './ValueField-JK7JPVR6.css';
12
12
  import { useId, useState, useRef } from 'react';
13
13
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -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-NFC7HEWU.js').then(
12
+ loading ??= import('./Editor-WFP2MM6M.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -1,6 +1,6 @@
1
1
  import { Avatar } from './chunk-YMFFGPFE.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './OrgLabel-WCI3OIFL.css';
3
+ import './OrgLabel-4NDGABVY.css';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
 
6
6
  function OrgLabel(props) {
@@ -11,7 +11,8 @@ function OrgLabel(props) {
11
11
  className: cx(
12
12
  "crewlet-org-label__icon",
13
13
  props.iconSize === "lg" && "crewlet-org-label__icon--lg",
14
- props.iconRing === true && "crewlet-org-label__icon--ring"
14
+ props.iconRing === true && "crewlet-org-label__icon--ring",
15
+ props.iconTone === "own" && "crewlet-org-label__icon--own"
15
16
  ),
16
17
  "aria-hidden": "true",
17
18
  children: [
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
3
3
  import { Popover } from './chunk-AJFA2XDQ.js';
4
4
  import { Button } from './chunk-NMIXL2YH.js';
@@ -1,11 +1,11 @@
1
1
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
2
- import { RelativeTime } from './chunk-GBKBME7Q.js';
2
+ import { RelativeTime } from './chunk-5ZL3PXEL.js';
3
3
  import { Skeleton } from './chunk-WFAJYBLX.js';
4
4
  import { Card } from './chunk-G732IWP4.js';
5
- import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
6
5
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
6
+ import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
7
7
  import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
8
- import { AvatarStack } from './chunk-T7Y5FM4B.js';
8
+ import { AvatarStack } from './chunk-X2CFDU5S.js';
9
9
  import { Checkbox } from './chunk-ED24QJYL.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { GRID_FOOT_LABELS, GRID_ICON_TRACK, headerWord, sortByValue, parseGridSort, overrunning, tableTrack, GridHeadCell, GridFoot, droppedNames, nextGridSort, rowLinkTitle, squeezedCells, SHORT_COLUMN_PX, alignOf } from './chunk-M34LSGMH.js';
1
+ import { GRID_FOOT_LABELS, GRID_ICON_TRACK, headerWord, sortByValue, parseGridSort, overrunning, tableTrack, GridHeadCell, GridFoot, droppedNames, nextGridSort, rowLinkTitle, squeezedCells, SHORT_COLUMN_PX, alignOf } from './chunk-WU73BKXL.js';
2
2
  import { Skeleton } from './chunk-WFAJYBLX.js';
3
3
  import { useReorder } from './chunk-JMBPMSNI.js';
4
4
  import { EmptyState } from './chunk-HG7J6I65.js';
@@ -8,7 +8,7 @@ import { titleWhenCut } from './chunk-WSIJDWUG.js';
8
8
  import { IconButton } from './chunk-CMEZGORB.js';
9
9
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
11
- import './DataGrid-K2L4ZOUH.css';
11
+ import './DataGrid-UGOZXHJS.css';
12
12
  import { useId, useRef, useState, useMemo, useCallback, useLayoutEffect, useImperativeHandle, useSyncExternalStore, useEffect, Fragment as Fragment$1 } from 'react';
13
13
  import { breakpoint } from '@crewlethq/tokens';
14
14
  import { GripVerticalGlyph, ChevronRightGlyph } from '@crewlethq/icons/glyphs';
@@ -2,12 +2,61 @@ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './AddPill-XLESL6BA.css';
4
4
  import { useState, useId, useRef, useCallback, useEffect, Fragment } from 'react';
5
+ import { cssLength } from '@crewlethq/icons/glyphs';
5
6
  import { jsxs, jsx } from 'react/jsx-runtime';
6
7
 
7
8
  var ADD_PILL_MS = 200;
8
- function AddPill({
9
+ function AddCircleGlyph({ size, className, ...rest }) {
10
+ const length = cssLength(size);
11
+ return /* @__PURE__ */ jsxs(
12
+ "svg",
13
+ {
14
+ width: length,
15
+ height: length,
16
+ fill: "none",
17
+ stroke: "currentColor",
18
+ strokeWidth: 1.5,
19
+ strokeLinecap: "round",
20
+ "aria-hidden": "true",
21
+ focusable: "false",
22
+ className: cx("crewlet-add-mark", className),
23
+ ...rest,
24
+ viewBox: "0 0 16 16",
25
+ children: [
26
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7" }),
27
+ /* @__PURE__ */ jsx("path", { d: "M8 4.5v7M4.5 8h7" })
28
+ ]
29
+ }
30
+ );
31
+ }
32
+ function AddPill(props) {
33
+ return props.onAdd === void 0 ? /* @__PURE__ */ jsx(SplitAddPill, { ...props }) : /* @__PURE__ */ jsx(SingleAdd, { ...props });
34
+ }
35
+ function SingleAdd({ label, onAdd, size = "sm", tabIndex, onOpen, className }) {
36
+ return /* @__PURE__ */ jsx("div", { className: cx("crewlet-add-pill", className), "data-phase": "closed", "data-size": size, "data-face": "off", children: /* @__PURE__ */ jsxs(
37
+ "button",
38
+ {
39
+ type: "button",
40
+ className: "crewlet-add-pill__mark",
41
+ "aria-label": label,
42
+ title: label,
43
+ tabIndex,
44
+ onClick: (event) => {
45
+ event.stopPropagation();
46
+ onOpen?.();
47
+ onAdd();
48
+ },
49
+ children: [
50
+ /* @__PURE__ */ jsx("span", { className: "crewlet-add-pill__disc", "aria-hidden": "true" }),
51
+ /* @__PURE__ */ jsx(AddCircleGlyph, {})
52
+ ]
53
+ }
54
+ ) });
55
+ }
56
+ function SplitAddPill({
9
57
  label,
10
58
  sections,
59
+ face = true,
11
60
  size = "sm",
12
61
  layout = "split",
13
62
  tabIndex,
@@ -72,9 +121,12 @@ function AddPill({
72
121
  "data-phase": phase,
73
122
  "data-size": size,
74
123
  "data-layout": layout,
124
+ "data-face": face ? void 0 : "off",
75
125
  ref: group,
76
126
  onBlur,
77
- onMouseEnter: () => setPhase((was) => was === "locked" ? was : "preview"),
127
+ onMouseEnter: () => {
128
+ if (face) setPhase((was) => was === "locked" ? was : "preview");
129
+ },
78
130
  onMouseLeave: () => {
79
131
  if (phase === "preview") close(false);
80
132
  },
@@ -93,10 +145,7 @@ function AddPill({
93
145
  onClick: press,
94
146
  children: [
95
147
  /* @__PURE__ */ jsx("span", { className: "crewlet-add-pill__disc", "aria-hidden": "true" }),
96
- /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", focusable: "false", children: [
97
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7" }),
98
- /* @__PURE__ */ jsx("path", { d: "M8 4.5v7M4.5 8h7" })
99
- ] })
148
+ /* @__PURE__ */ jsx(AddCircleGlyph, {})
100
149
  ]
101
150
  }
102
151
  ),
@@ -137,4 +186,4 @@ function AddPill({
137
186
  );
138
187
  }
139
188
 
140
- export { ADD_PILL_MS, AddPill };
189
+ export { ADD_PILL_MS, AddCircleGlyph, AddPill };
@@ -1,4 +1,4 @@
1
- import { Select } from './chunk-D5UVJL4I.js';
1
+ import { Select } from './chunk-QZNENGHA.js';
2
2
  import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
3
3
  import { HueSwatch } from './chunk-NFLSK6T3.js';
4
4
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
@@ -1,4 +1,4 @@
1
- import { AvatarStack } from './chunk-T7Y5FM4B.js';
1
+ import { AvatarStack } from './chunk-X2CFDU5S.js';
2
2
  import { Tag } from './chunk-ASBBB5AJ.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ChatScale-LGESYXCO.css';
@@ -1,5 +1,5 @@
1
1
  import { PrincipalAvatar } from './chunk-265IX4YA.js';
2
- import { RelativeTime } from './chunk-GBKBME7Q.js';
2
+ import { RelativeTime } from './chunk-5ZL3PXEL.js';
3
3
  import { Timeline } from './chunk-XDUXAQIS.js';
4
4
  import { Button } from './chunk-NMIXL2YH.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { OrgLabel } from './chunk-NIM7LEEI.js';
1
+ import { OrgLabel } from './chunk-BZLQHZKH.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './OrgNode-6OCBAIBK.css';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';