@crewlethq/ui 0.97.1 → 0.99.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 (272) hide show
  1. package/dist/AddPill/AddPill.d.ts +3 -1
  2. package/dist/AddPill/index.js +1 -1
  3. package/dist/{AddPill-FPM5RUKI.css → AddPill-OP3MMVZG.css} +13 -0
  4. package/dist/AgentHandoffPanel/index.js +12 -8
  5. package/dist/AppShell/index.js +9 -8
  6. package/dist/ArrangeFrame/index.js +9 -2
  7. package/dist/ArrangeList/index.js +10 -5
  8. package/dist/ArtifactBar/index.js +12 -11
  9. package/dist/ArtifactCard/index.js +9 -4
  10. package/dist/ArtifactPanel/index.js +8 -4
  11. package/dist/AttentionList/index.js +9 -2
  12. package/dist/AvatarPicker/index.js +13 -10
  13. package/dist/BriefCard/index.js +9 -2
  14. package/dist/Button/Button.d.ts +6 -0
  15. package/dist/Button/index.js +8 -1
  16. package/dist/Canvas/Canvas.d.ts +18 -1
  17. package/dist/Canvas/index.js +9 -8
  18. package/dist/{Canvas-4QJHVLJ4.css → Canvas-UQVR7IUL.css} +43 -0
  19. package/dist/CanvasBoard/index.js +11 -10
  20. package/dist/CanvasToolbar/index.js +10 -9
  21. package/dist/ChangeMark/index.js +4 -4
  22. package/dist/ChatMessage/index.js +9 -2
  23. package/dist/ChatThread/ChatThread.d.ts +22 -8
  24. package/dist/ChatThread/index.js +9 -2
  25. package/dist/{ChatThread-HAECJMP6.css → ChatThread-XANOIJXN.css} +2 -1
  26. package/dist/CheckGrid/index.js +9 -4
  27. package/dist/Checkbox/index.js +8 -3
  28. package/dist/ChipField/index.js +1 -1
  29. package/dist/CodeBlock/index.js +11 -4
  30. package/dist/ColorField/index.js +8 -3
  31. package/dist/ColorSwatch/index.js +11 -4
  32. package/dist/Combobox/index.js +8 -3
  33. package/dist/CommandPalette/index.js +10 -7
  34. package/dist/CommentThread/index.js +10 -6
  35. package/dist/CompactNav/index.js +3 -3
  36. package/dist/Composer/index.js +8 -4
  37. package/dist/ConfirmField/index.js +8 -3
  38. package/dist/ConflictNote/index.js +9 -2
  39. package/dist/ContrastHelp/index.js +7 -4
  40. package/dist/Copyable/index.js +10 -3
  41. package/dist/DataGrid/index.js +10 -5
  42. package/dist/DataTable/index.js +12 -9
  43. package/dist/DataView/index.js +16 -13
  44. package/dist/DateTimePicker/index.js +9 -6
  45. package/dist/DeepWorkCard/index.js +10 -3
  46. package/dist/DocTabsEditor/index.js +10 -7
  47. package/dist/DownloadButton/index.js +9 -2
  48. package/dist/{Editor-63L5QQDN.js → Editor-QWGTLJHM.js} +9 -6
  49. package/dist/EmojiPicker/index.js +9 -8
  50. package/dist/EntityChip/EntityChip.d.ts +9 -1
  51. package/dist/EntityChip/index.js +1 -1
  52. package/dist/ErrorBoundary/index.js +9 -2
  53. package/dist/FactList/index.js +4 -4
  54. package/dist/FileDrop/index.js +9 -2
  55. package/dist/FilterPill/index.js +9 -2
  56. package/dist/FollowBanner/index.js +7 -3
  57. package/dist/HuePicker/index.js +11 -8
  58. package/dist/IconButton/IconButton.d.ts +6 -0
  59. package/dist/IconButton/index.js +8 -1
  60. package/dist/InlineEditor/index.js +7 -3
  61. package/dist/Input/index.js +7 -2
  62. package/dist/KeyValueRows/index.js +9 -4
  63. package/dist/Layer/index.d.ts +1 -1
  64. package/dist/Layer/index.js +1 -1
  65. package/dist/Layer/place.d.ts +6 -0
  66. package/dist/Link/Link.d.ts +6 -1
  67. package/dist/Link/index.js +1 -1
  68. package/dist/{Link-CLURSR2O.css → Link-Z23PLCVS.css} +9 -0
  69. package/dist/LinkInterstitial/index.js +9 -6
  70. package/dist/ListInput/index.js +9 -5
  71. package/dist/LogoSlot/index.js +10 -3
  72. package/dist/MarkdownEditor/index.js +12 -9
  73. package/dist/MemberPicker/index.js +9 -4
  74. package/dist/Menu/Menu.d.ts +7 -1
  75. package/dist/Menu/index.js +8 -5
  76. package/dist/MergeConflicts/index.js +12 -9
  77. package/dist/MessageActions/index.js +10 -10
  78. package/dist/Modal/index.js +8 -5
  79. package/dist/ObjectHeader/index.js +2 -2
  80. package/dist/OpenInAppCard/index.js +10 -3
  81. package/dist/OrgLabel/OrgLabel.d.ts +14 -0
  82. package/dist/OrgLabel/index.js +1 -1
  83. package/dist/{OrgLabel-R5KY7C3W.css → OrgLabel-6UGWHDQQ.css} +38 -0
  84. package/dist/OrgNode/index.js +2 -2
  85. package/dist/OrgTable/OrgTable.d.ts +28 -3
  86. package/dist/OrgTable/index.d.ts +1 -1
  87. package/dist/OrgTable/index.js +17 -7
  88. package/dist/{OrgTable-JZSYTUIK.css → OrgTable-GBRYKTDH.css} +68 -2
  89. package/dist/PeekRail/index.js +10 -3
  90. package/dist/PeopleRail/index.js +10 -3
  91. package/dist/PinTile/index.js +9 -2
  92. package/dist/Popover/index.js +2 -2
  93. package/dist/PresenterView/index.js +9 -5
  94. package/dist/PrincipalPicker/index.js +9 -4
  95. package/dist/PropertyList/index.js +3 -3
  96. package/dist/ProposalCard/index.js +11 -6
  97. package/dist/RailList/index.js +3 -3
  98. package/dist/ReactionBar/index.js +10 -10
  99. package/dist/ReceiptStrip/index.js +9 -2
  100. package/dist/RecordChip/index.js +3 -3
  101. package/dist/ResultTableCard/index.js +10 -3
  102. package/dist/RichEditor/index.js +9 -2
  103. package/dist/SandboxedFrame/index.js +9 -2
  104. package/dist/SegmentedControl/index.js +11 -8
  105. package/dist/{SegmentedControl-7GY2KM44.css → SegmentedControl-PWTB7KEE.css} +4 -1
  106. package/dist/Select/index.js +2 -2
  107. package/dist/SelectionBar/index.js +7 -3
  108. package/dist/SendButton/index.js +9 -2
  109. package/dist/ShareDialog/index.js +11 -8
  110. package/dist/SheetColumnEditor/index.js +15 -12
  111. package/dist/SheetGrid/index.js +11 -10
  112. package/dist/Shortcut/index.js +1 -1
  113. package/dist/SidePanel/index.js +7 -3
  114. package/dist/SlideCompare/index.js +7 -3
  115. package/dist/SlideFilmstrip/index.js +9 -6
  116. package/dist/SlideGrid/index.js +1 -1
  117. package/dist/SlideNav/index.js +9 -2
  118. package/dist/SlideStage/index.js +1 -1
  119. package/dist/StatusLegend/StatusLegend.d.ts +31 -0
  120. package/dist/StatusLegend/index.d.ts +3 -0
  121. package/dist/StatusLegend/index.js +4 -0
  122. package/dist/StatusLegend-7MS2SBVC.css +77 -0
  123. package/dist/StatusLine/StatusLine.d.ts +32 -0
  124. package/dist/StatusLine/index.d.ts +3 -0
  125. package/dist/StatusLine/index.js +10 -0
  126. package/dist/StatusLine-C6IY3U2F.css +55 -0
  127. package/dist/Switch/Switch.d.ts +2 -0
  128. package/dist/Switch/index.js +1 -1
  129. package/dist/{Switch-XJE34BZH.css → Switch-M3VVQMCY.css} +21 -0
  130. package/dist/Switcher/index.js +11 -8
  131. package/dist/TableCells/index.js +2 -2
  132. package/dist/Tabs/index.js +9 -6
  133. package/dist/TagsInput/index.js +7 -3
  134. package/dist/ThemeSwitcher/index.js +12 -9
  135. package/dist/ThemeToggle/index.js +9 -2
  136. package/dist/TimeRangePicker/index.js +14 -11
  137. package/dist/TimeWindowPicker/index.js +11 -8
  138. package/dist/Toaster/index.js +2 -2
  139. package/dist/Toolbar/index.js +1 -1
  140. package/dist/Tooltip/index.js +3 -3
  141. package/dist/TreeCanvas/TreeCanvas.d.ts +38 -2
  142. package/dist/TreeCanvas/index.d.ts +1 -1
  143. package/dist/TreeCanvas/index.js +10 -9
  144. package/dist/{TreeCanvas-5FPK4CII.css → TreeCanvas-X5RCUSTP.css} +24 -0
  145. package/dist/TreeGrid/TreeGrid.d.ts +26 -3
  146. package/dist/TreeGrid/index.js +8 -4
  147. package/dist/{TreeGrid-522U6WBG.css → TreeGrid-PZ3DFVRO.css} +24 -0
  148. package/dist/ValueField/index.js +10 -6
  149. package/dist/VersionCompare/index.js +12 -9
  150. package/dist/VersionTimeline/index.js +9 -2
  151. package/dist/{chunk-QF5UNP4T.js → chunk-2PB5D4TI.js} +1 -1
  152. package/dist/{chunk-7ZJ662U4.js → chunk-2W4US3JO.js} +3 -3
  153. package/dist/{chunk-NCUSI4ZU.js → chunk-33632WEN.js} +54 -14
  154. package/dist/{chunk-VB3FVKNI.js → chunk-3JAGO633.js} +1 -1
  155. package/dist/{chunk-VONEKR3J.js → chunk-3NCIQO2P.js} +98 -20
  156. package/dist/{chunk-XA2QKGBJ.js → chunk-3QBQY2XK.js} +1 -1
  157. package/dist/{chunk-2BZ2W2YU.js → chunk-3Z2BSKS5.js} +5 -5
  158. package/dist/{chunk-5U6XAUYM.js → chunk-4FNAPCCK.js} +1 -1
  159. package/dist/{chunk-IJ7KLXUZ.js → chunk-4OHBHPIB.js} +1 -1
  160. package/dist/{chunk-3LKOXQWZ.js → chunk-4QTOAMQN.js} +1 -1
  161. package/dist/{chunk-5YXMKZUA.js → chunk-4XYKBZJE.js} +8 -3
  162. package/dist/{chunk-EHFQMY3B.js → chunk-52UBOSNQ.js} +1 -1
  163. package/dist/{chunk-KCLHYBIZ.js → chunk-56ES76ST.js} +1 -1
  164. package/dist/{chunk-B3BJ66GQ.js → chunk-5JGEEUWQ.js} +2 -2
  165. package/dist/{chunk-WJZTI2WC.js → chunk-5KJOG5YP.js} +7 -7
  166. package/dist/{chunk-IUBOLGHG.js → chunk-5KKZCSER.js} +1 -1
  167. package/dist/{chunk-7K6LVM5I.js → chunk-63NRTOGO.js} +3 -3
  168. package/dist/chunk-6FS6W3P5.js +37 -0
  169. package/dist/chunk-6FVTKYH6.js +37 -0
  170. package/dist/{chunk-DGXZ635L.js → chunk-6KUOHUY5.js} +29 -24
  171. package/dist/{chunk-5AJR6X75.js → chunk-6V465OCU.js} +1 -1
  172. package/dist/{chunk-FRERGOW3.js → chunk-7IW4BVZF.js} +1 -1
  173. package/dist/{chunk-G3JY2DLC.js → chunk-7L6JJ7VJ.js} +1 -1
  174. package/dist/{chunk-CWJLDCB7.js → chunk-A5ISYHW7.js} +3 -3
  175. package/dist/{chunk-SDHLAW3G.js → chunk-AAP7A6WV.js} +2 -2
  176. package/dist/{chunk-AQCWYVE3.js → chunk-AC255TMQ.js} +1 -1
  177. package/dist/{chunk-K4LZXSKZ.js → chunk-AEFR4M2W.js} +1 -1
  178. package/dist/{chunk-GC3UQZPL.js → chunk-AEUZU5SA.js} +1 -1
  179. package/dist/{chunk-5MOBCUNA.js → chunk-AHPMAPVN.js} +2 -2
  180. package/dist/{chunk-2HBY3FOZ.js → chunk-AP6SM6BL.js} +3 -3
  181. package/dist/{chunk-NTGAPLMJ.js → chunk-BC4H2EMM.js} +1 -1
  182. package/dist/{chunk-OGOLTPFQ.js → chunk-BCZQDB3U.js} +1 -1
  183. package/dist/{chunk-QW4LAFTX.js → chunk-BK4KUIAZ.js} +1 -1
  184. package/dist/{chunk-T2GC7UAP.js → chunk-C34CKBKF.js} +1 -1
  185. package/dist/{chunk-LAZ72JOP.js → chunk-CQIODINH.js} +2 -2
  186. package/dist/{chunk-HZBXC3YD.js → chunk-CTNQOSQF.js} +2 -2
  187. package/dist/{chunk-3N3XK2G5.js → chunk-CZKEABMI.js} +3 -1
  188. package/dist/{chunk-HZPUMGQV.js → chunk-D4MMW2NF.js} +3 -3
  189. package/dist/{chunk-K66TAOJA.js → chunk-DBH7ORCH.js} +2 -2
  190. package/dist/{chunk-FXGQWLZ6.js → chunk-DK7CXQFY.js} +1 -1
  191. package/dist/{chunk-RO5JU6SN.js → chunk-E23AXDKL.js} +1 -1
  192. package/dist/{chunk-SKGOKLJD.js → chunk-E2XDYCFO.js} +1 -1
  193. package/dist/{chunk-XSJSDNRR.js → chunk-EF3CJDZO.js} +3 -3
  194. package/dist/{chunk-ZXXZESCD.js → chunk-EMDRNB23.js} +3 -3
  195. package/dist/{chunk-BHVEHAAX.js → chunk-EMXUREKE.js} +3 -3
  196. package/dist/{chunk-3P7XS5VT.js → chunk-FBNGCPKZ.js} +2 -2
  197. package/dist/{chunk-OMV5W53A.js → chunk-FIX72ZEC.js} +15 -1
  198. package/dist/{chunk-QWRAWKB2.js → chunk-FMOYO5OO.js} +2 -2
  199. package/dist/{chunk-GYVEKHVI.js → chunk-FP6OFRAU.js} +1 -1
  200. package/dist/{chunk-M576OESX.js → chunk-G44KKOMB.js} +1 -1
  201. package/dist/{chunk-AVWEXCJ4.js → chunk-GA773IOZ.js} +2 -2
  202. package/dist/{chunk-XJMES7AE.js → chunk-GBBRSZ2J.js} +1 -1
  203. package/dist/{chunk-SNQ7PH3D.js → chunk-GDYZPBLI.js} +1 -1
  204. package/dist/{chunk-DRFOTWJE.js → chunk-GWRU4JHQ.js} +2 -2
  205. package/dist/{chunk-3NO5GRZY.js → chunk-HMXTZKAI.js} +4 -4
  206. package/dist/{chunk-QDGHOGSW.js → chunk-HTCNTCBE.js} +2 -2
  207. package/dist/{chunk-SRHLFQ4J.js → chunk-HU5PAZMU.js} +3 -3
  208. package/dist/{chunk-T5HZ5AYW.js → chunk-IA3NL54W.js} +4 -4
  209. package/dist/{chunk-3IWZVEXA.js → chunk-IAR2ULSK.js} +1 -1
  210. package/dist/{chunk-4ME4J3YY.js → chunk-IDBGDMQS.js} +1 -1
  211. package/dist/{chunk-WSHKY7SH.js → chunk-IGECN5B6.js} +1 -1
  212. package/dist/{chunk-OMMHKM6I.js → chunk-IYJCJOHW.js} +1 -1
  213. package/dist/{chunk-YTIXNVS7.js → chunk-J3QFTG4B.js} +3 -3
  214. package/dist/{chunk-TGGYSQRD.js → chunk-JK6WLRYP.js} +34 -22
  215. package/dist/{chunk-NKBKHOMU.js → chunk-JQCKRABK.js} +1 -1
  216. package/dist/{chunk-PICHV3PC.js → chunk-JZADK2FT.js} +3 -3
  217. package/dist/{chunk-4RLUVHYP.js → chunk-L72GPZ56.js} +1 -1
  218. package/dist/{chunk-EC6EUIAD.js → chunk-LCAKSEMB.js} +1 -1
  219. package/dist/{chunk-IPMJGK2Q.js → chunk-LYVWOAUN.js} +1 -1
  220. package/dist/{chunk-CFJ7FQZI.js → chunk-M6EVTMTK.js} +1 -1
  221. package/dist/{chunk-TGSOHXXH.js → chunk-M6G7XLLP.js} +1 -1
  222. package/dist/{chunk-JIBWNHTC.js → chunk-MIQNKO2R.js} +1 -1
  223. package/dist/{chunk-QGEDXYLB.js → chunk-MJ73YBP2.js} +2 -2
  224. package/dist/{chunk-BBKYJQZ6.js → chunk-MOP4D5HF.js} +5 -5
  225. package/dist/{chunk-Y7PPKQFQ.js → chunk-MTKHMGJH.js} +5 -5
  226. package/dist/{chunk-KQWJWTED.js → chunk-N7H5TFQK.js} +1 -1
  227. package/dist/{chunk-LJ3KWQLP.js → chunk-NBOHNPZB.js} +1 -1
  228. package/dist/{chunk-ZDMZP5H4.js → chunk-OAKECTYH.js} +6 -6
  229. package/dist/{chunk-LMEMH6DO.js → chunk-OSU4ELU3.js} +2 -2
  230. package/dist/{chunk-5ILRWUE7.js → chunk-P667Y6NQ.js} +1 -1
  231. package/dist/{chunk-LGPTZGHJ.js → chunk-PF6X74C5.js} +8 -8
  232. package/dist/{chunk-6FAI4VLM.js → chunk-PJMDZEWY.js} +1 -1
  233. package/dist/{chunk-OSH55AKI.js → chunk-PMO6W5NE.js} +3 -3
  234. package/dist/{chunk-ZPTKAYJK.js → chunk-QH2YJDRI.js} +1 -1
  235. package/dist/{chunk-VTQSSU2E.js → chunk-QND44ROZ.js} +1 -1
  236. package/dist/{chunk-AELKT34H.js → chunk-QPRTTTUN.js} +1 -1
  237. package/dist/{chunk-7ZSEUO5Q.js → chunk-QZKGFBAR.js} +2 -2
  238. package/dist/{chunk-OC6BMY3C.js → chunk-RBR4AHBT.js} +1 -1
  239. package/dist/chunk-ROFAWLFS.js +352 -0
  240. package/dist/{chunk-2NNMBEJV.js → chunk-RSI6EJSH.js} +5 -5
  241. package/dist/{chunk-GNJXUNEU.js → chunk-RVJJZVVS.js} +1 -1
  242. package/dist/{chunk-V6WDJUYK.js → chunk-SF6FUU42.js} +1 -1
  243. package/dist/{chunk-CVKANYHD.js → chunk-SSN7Y3UY.js} +1 -1
  244. package/dist/{chunk-BMBQ6UMD.js → chunk-TAWPKNNZ.js} +1 -1
  245. package/dist/{chunk-I4IO56EY.js → chunk-TKAERQQF.js} +1 -1
  246. package/dist/{chunk-AXEXOAZQ.js → chunk-TVGTMKYO.js} +1 -1
  247. package/dist/{chunk-FPU7AA3X.js → chunk-UUDQEDHQ.js} +72 -26
  248. package/dist/{chunk-2SVQBQAD.js → chunk-V7WDP3HR.js} +3 -3
  249. package/dist/{chunk-65RFU7LF.js → chunk-VDQGWPGQ.js} +4 -1
  250. package/dist/{chunk-H4WQWCHP.js → chunk-VULZ4FAA.js} +2 -2
  251. package/dist/{chunk-UAUP6XGK.js → chunk-WDLAAZFZ.js} +30 -24
  252. package/dist/{chunk-6EZX26BD.js → chunk-WF2UJYCT.js} +1 -1
  253. package/dist/{chunk-EVM6GYZ2.js → chunk-WSR4OB4T.js} +1 -1
  254. package/dist/{chunk-LM3ISVJA.js → chunk-X4HBZSXA.js} +1 -1
  255. package/dist/{chunk-CDNZTCP2.js → chunk-XHQ2JJCB.js} +2 -2
  256. package/dist/{chunk-O3II3KJY.js → chunk-XLVWSNW3.js} +3 -3
  257. package/dist/{chunk-TXOTL7AA.js → chunk-YEQTGPCE.js} +3 -3
  258. package/dist/{chunk-ZWCK4N4L.js → chunk-YS4PWTNL.js} +1 -1
  259. package/dist/{chunk-B3PK2LND.js → chunk-YYKLPEOS.js} +1 -1
  260. package/dist/chunk-Z6E3WOWS.js +189 -0
  261. package/dist/{chunk-ETNQYT5O.js → chunk-ZGKGSW42.js} +2 -2
  262. package/dist/{chunk-OPVTNHPH.js → chunk-ZKC3QFDX.js} +2 -2
  263. package/dist/{chunk-NTRKC2JV.js → chunk-ZUWEVSDP.js} +1 -1
  264. package/dist/generated/index.d.ts +2 -0
  265. package/dist/generated/index.js +125 -123
  266. package/dist/index.js +125 -123
  267. package/dist/styles.css +394 -14
  268. package/dist/utils/index.js +2 -2
  269. package/package.json +3 -3
  270. package/dist/chunk-DWQYV5AV.js +0 -141
  271. package/dist/chunk-ZDWAIVWL.js +0 -310
  272. /package/dist/{chunk-VNACAMDK.js → chunk-2DYEPDT7.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  import { useTreeState, useMeasuredSizes, layoutForest, treeAncestors, useLayoutAnchor, treeExpandable, layoutConnectors, treeItemAction, treeStep, treePosInSet, treeSetSize, treeLevel, placeGroups } from './chunk-MY374UUD.js';
2
- import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-NCUSI4ZU.js';
2
+ import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-33632WEN.js';
3
3
  import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-YJQXESOJ.js';
4
4
  import { focusables } from './chunk-TUEM2XIW.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
- import './TreeCanvas-5FPK4CII.css';
7
- import { useState, useRef, useMemo, useLayoutEffect, useCallback, useImperativeHandle, useId } from 'react';
6
+ import './TreeCanvas-X5RCUSTP.css';
7
+ import { useState, useRef, useMemo, useCallback, useLayoutEffect, useImperativeHandle, useId } from 'react';
8
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
9
 
10
10
  var ENTRANCE_STEP_MS = 60;
@@ -94,6 +94,7 @@ function useReflow(layout, still) {
94
94
  }, [layout, still]);
95
95
  return drawn;
96
96
  }
97
+ var TREE_ADD_MARK_MIN_ZOOM = 0.4;
97
98
  var GAP_PROBE = "crewlet:tree-canvas-gap";
98
99
  var MARGIN_PROBE = "crewlet:tree-canvas-margin";
99
100
  var GROUP_PAD_PROBE = "crewlet:tree-canvas-group-pad";
@@ -120,15 +121,25 @@ function TreeCanvas({
120
121
  controlsPlacement,
121
122
  controlsExtra,
122
123
  controlsBelow,
124
+ controlsStart,
125
+ overlayEnd,
123
126
  hint,
124
127
  dimmed = false,
125
128
  ground,
126
129
  composing = null,
127
130
  labels,
131
+ minZoom,
132
+ expanded: held,
133
+ onExpandedChange,
134
+ onViewChange,
135
+ fitKey,
136
+ initialView,
137
+ refitOnResize,
138
+ cardDimmed,
128
139
  ref,
129
140
  className
130
141
  }) {
131
- const tree = useTreeState(nodes, selectedId);
142
+ const tree = useTreeState(nodes, selectedId, { expanded: held, onExpandedChange });
132
143
  const { model, expanded, active, setActive, toggle } = tree;
133
144
  const [menuFor, setMenuFor] = useState(null);
134
145
  const composeId = composing?.id ?? null;
@@ -160,11 +171,13 @@ function TreeCanvas({
160
171
  }, [groups, cardIds]);
161
172
  const spacing = ranks ?? (appearance === "node" ? "shared" : "per-parent");
162
173
  const previousLayout = useRef(null);
174
+ const probes = useMemo(() => {
175
+ const out = [GAP_PROBE, MARGIN_PROBE];
176
+ if (shownGroups.length > 0) out.push(GROUP_PAD_PROBE, ...shownGroups.map(({ group }) => groupHeadKey(group.id)));
177
+ return out;
178
+ }, [shownGroups]);
179
+ const placed = measured([...cardIds, ...probes]);
163
180
  const layout = useMemo(() => {
164
- const probes = [GAP_PROBE, MARGIN_PROBE];
165
- if (shownGroups.length > 0) {
166
- probes.push(GROUP_PAD_PROBE, ...shownGroups.map(({ group }) => groupHeadKey(group.id)));
167
- }
168
181
  if (!measured([...cardIds, ...probes])) return previousLayout.current;
169
182
  const size = (id) => sizes.get(id);
170
183
  const gap = size(GAP_PROBE);
@@ -187,7 +200,7 @@ function TreeCanvas({
187
200
  margin: size(MARGIN_PROBE).width,
188
201
  groups: boxes
189
202
  });
190
- }, [cardForest, cardIds, measured, sizes, spacing, shownGroups]);
203
+ }, [cardForest, cardIds, measured, sizes, spacing, shownGroups, probes]);
191
204
  previousLayout.current = layout;
192
205
  const still = useStillness();
193
206
  const drawn = useReflow(layout, still) ?? layout;
@@ -197,6 +210,18 @@ function TreeCanvas({
197
210
  [layout]
198
211
  );
199
212
  const canvas = useRef(null);
213
+ const root = useRef(null);
214
+ const viewChanged = useCallback(
215
+ (view, viewport) => {
216
+ const el = root.current;
217
+ if (el) {
218
+ el.style.setProperty("--crewlet-tree-canvas-zoom", String(view.k));
219
+ el.toggleAttribute("data-zoomed-out", view.k < TREE_ADD_MARK_MIN_ZOOM);
220
+ }
221
+ onViewChange?.(view, viewport);
222
+ },
223
+ [onViewChange]
224
+ );
200
225
  const shownPositions = useRef(null);
201
226
  const anchorId = useMemo(() => {
202
227
  const was = shownPositions.current;
@@ -214,6 +239,19 @@ function TreeCanvas({
214
239
  useLayoutEffect(() => {
215
240
  shownPositions.current = positions;
216
241
  }, [positions]);
242
+ const fittedFor = useRef(fitKey);
243
+ const placedOnce = useRef(false);
244
+ useLayoutEffect(() => {
245
+ if (!placed || !layout) return;
246
+ if (!placedOnce.current) {
247
+ placedOnce.current = true;
248
+ fittedFor.current = fitKey;
249
+ return;
250
+ }
251
+ if (fitKey === fittedFor.current) return;
252
+ fittedFor.current = fitKey;
253
+ canvas.current?.fit();
254
+ }, [fitKey, layout, placed]);
217
255
  const items = useRef(/* @__PURE__ */ new Map());
218
256
  const itemRefs = useRef(/* @__PURE__ */ new Map());
219
257
  const refFor = (id) => {
@@ -231,16 +269,16 @@ function TreeCanvas({
231
269
  const focusNow = useCallback(
232
270
  (id) => {
233
271
  const el = items.current.get(id);
234
- const placed = layout?.byId.get(cardOf(id));
235
- if (!el || !el.isConnected || !placed) return false;
272
+ const placed2 = layout?.byId.get(cardOf(id));
273
+ if (!el || !el.isConnected || !placed2) return false;
236
274
  el.focus({ preventScroll: true });
237
275
  const card2 = el.closest(".crewlet-tree-canvas__card");
238
276
  const top = card2 ? offsetWithin(el, card2) : 0;
239
277
  const rect = {
240
- x: placed.x,
241
- y: placed.y + top,
242
- width: placed.width,
243
- height: el.offsetHeight > 0 && top > 0 ? el.offsetHeight : placed.height
278
+ x: placed2.x,
279
+ y: placed2.y + top,
280
+ width: placed2.width,
281
+ height: el.offsetHeight > 0 && top > 0 ? el.offsetHeight : placed2.height
244
282
  };
245
283
  canvas.current?.reveal(rect);
246
284
  return true;
@@ -274,8 +312,8 @@ function TreeCanvas({
274
312
  expandAll,
275
313
  collapseAll,
276
314
  focusRegion: (id) => {
277
- const placed = placedRef.current?.byId.get(cardOfRef.current(id));
278
- if (placed) canvas.current?.focusRegion(placed);
315
+ const placed2 = placedRef.current?.byId.get(cardOfRef.current(id));
316
+ if (placed2) canvas.current?.focusRegion(placed2);
279
317
  },
280
318
  restoreView: () => canvas.current?.restoreView()
281
319
  }),
@@ -434,6 +472,7 @@ function TreeCanvas({
434
472
  return /* @__PURE__ */ jsx(
435
473
  "div",
436
474
  {
475
+ ref: root,
437
476
  className: cx(
438
477
  "crewlet-tree-canvas",
439
478
  appearance === "node" && "crewlet-tree-canvas--node",
@@ -449,17 +488,23 @@ function TreeCanvas({
449
488
  controlsPlacement: controlsPlacement ?? (appearance === "node" ? "top-right" : void 0),
450
489
  controlsExtra,
451
490
  controlsBelow,
491
+ controlsStart,
492
+ overlayEnd,
452
493
  hint,
453
494
  dimmed,
454
495
  ground,
455
496
  largestItemWidth: widestCard,
456
497
  labels,
498
+ minZoom,
499
+ onViewChange: viewChanged,
500
+ initialView,
501
+ refitOnResize,
457
502
  children: [
458
503
  /* @__PURE__ */ jsx("div", { className: "crewlet-tree-canvas__gap", ref: measure(GAP_PROBE), "aria-hidden": "true" }),
459
504
  /* @__PURE__ */ jsx("div", { className: "crewlet-tree-canvas__margin", ref: measure(MARGIN_PROBE), "aria-hidden": "true" }),
460
505
  shownGroups.length > 0 && /* @__PURE__ */ jsx("div", { className: "crewlet-tree-canvas__group-pad", ref: measure(GROUP_PAD_PROBE), "aria-hidden": "true" }),
461
506
  shownGroups.map(({ group, members }) => {
462
- const placed = drawn?.groups?.find((one) => one.id === group.id);
507
+ const placed2 = drawn?.groups?.find((one) => one.id === group.id);
463
508
  return /* @__PURE__ */ jsx(
464
509
  "div",
465
510
  {
@@ -467,7 +512,7 @@ function TreeCanvas({
467
512
  "aria-hidden": "true",
468
513
  "data-group-id": group.id,
469
514
  "data-enter": enterOf(members, arrived),
470
- style: placedStyle(placed, true)
515
+ style: placedStyle(placed2, true)
471
516
  },
472
517
  group.id
473
518
  );
@@ -492,7 +537,7 @@ function TreeCanvas({
492
537
  }
493
538
  ),
494
539
  shownGroups.map(({ group, members }) => {
495
- const placed = drawn?.groups?.find((one) => one.id === group.id);
540
+ const placed2 = drawn?.groups?.find((one) => one.id === group.id);
496
541
  return /* @__PURE__ */ jsxs(
497
542
  "div",
498
543
  {
@@ -501,7 +546,7 @@ function TreeCanvas({
501
546
  className: "crewlet-tree-canvas__group-head",
502
547
  "aria-hidden": "true",
503
548
  "data-enter": enterOf(members, arrived),
504
- style: placedStyle(placed, false),
549
+ style: placedStyle(placed2, false),
505
550
  children: [
506
551
  group.lead === void 0 || group.lead === null ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
507
552
  /* @__PURE__ */ jsx("span", { className: "crewlet-tree-canvas__group-lead", children: group.lead }),
@@ -514,7 +559,7 @@ function TreeCanvas({
514
559
  );
515
560
  }),
516
561
  /* @__PURE__ */ jsx("div", { role: "tree", "aria-label": label, className: "crewlet-tree-canvas__tree", onKeyDown, children: cardIds.filter((id) => id !== composeId).map((id) => {
517
- const placed = drawn?.byId.get(id);
562
+ const placed2 = drawn?.byId.get(id);
518
563
  return /* @__PURE__ */ jsxs(
519
564
  "div",
520
565
  {
@@ -522,8 +567,9 @@ function TreeCanvas({
522
567
  ref: measure(id),
523
568
  className: "crewlet-tree-canvas__card",
524
569
  "data-tone": cardTone?.(id),
570
+ "data-dimmed": cardDimmed?.(id) ? "" : void 0,
525
571
  "data-enter": arrived === null ? void 0 : arrived.has(id) ? "shown" : "waiting",
526
- style: placed ? { transform: `translate(${placed.x}px, ${placed.y}px)` } : { visibility: "hidden" },
572
+ style: placed2 ? { transform: `translate(${placed2.x}px, ${placed2.y}px)` } : { visibility: "hidden" },
527
573
  children: [
528
574
  renderCard(id, card),
529
575
  renderUnder ? /* @__PURE__ */ jsx(UnderSlot, { id, card, render: renderUnder }) : null
@@ -554,8 +600,8 @@ function TreeCanvas({
554
600
  composing.onCancel();
555
601
  },
556
602
  style: (() => {
557
- const placed = composeId === null ? void 0 : drawn?.byId.get(composeId) ?? placedCards?.get(composeId);
558
- return placed ? { transform: `translate(${placed.x}px, ${placed.y}px)` } : { visibility: "hidden" };
603
+ const placed2 = composeId === null ? void 0 : drawn?.byId.get(composeId) ?? placedCards?.get(composeId);
604
+ return placed2 ? { transform: `translate(${placed2.x}px, ${placed2.y}px)` } : { visibility: "hidden" };
559
605
  })(),
560
606
  children: composing.render()
561
607
  }
@@ -595,4 +641,4 @@ function offsetWithin(el, container) {
595
641
  return top;
596
642
  }
597
643
 
598
- export { TreeCanvas };
644
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas };
@@ -1,7 +1,7 @@
1
1
  import { Note } from './chunk-5SZGKSGL.js';
2
- import { CanvasToolbar, toolForKey } from './chunk-DRFOTWJE.js';
3
- import { IDENTITY_VIEW, Canvas } from './chunk-NCUSI4ZU.js';
4
- import { IconButton } from './chunk-UAUP6XGK.js';
2
+ import { CanvasToolbar, toolForKey } from './chunk-GWRU4JHQ.js';
3
+ import { IDENTITY_VIEW, Canvas } from './chunk-33632WEN.js';
4
+ import { IconButton } from './chunk-WDLAAZFZ.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './CanvasBoard-U6LR5F6H.css';
7
7
  import { useState, useRef, useImperativeHandle, useCallback, useMemo, useEffect } from 'react';
@@ -10,13 +10,16 @@ function EntityChip({
10
10
  asChild = false,
11
11
  kind = "agent",
12
12
  size = "sm",
13
+ character,
14
+ hue,
15
+ src,
13
16
  className,
14
17
  children,
15
18
  ...rest
16
19
  }) {
17
20
  const classes = cx("crewlet-entity-chip", href !== void 0 || asChild ? "crewlet-entity-chip--link" : null, className);
18
21
  const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
19
- /* @__PURE__ */ jsx(Avatar, { name, size, kind, decorative: true }),
22
+ /* @__PURE__ */ jsx(Avatar, { name, size, kind, character, hue, src, decorative: true }),
20
23
  /* @__PURE__ */ jsx("span", { className: "crewlet-entity-chip__name", children: name })
21
24
  ] });
22
25
  if (asChild) {
@@ -1,5 +1,5 @@
1
- import { SegmentedControl } from './chunk-GYVEKHVI.js';
2
- import { Button } from './chunk-DGXZ635L.js';
1
+ import { SegmentedControl } from './chunk-FP6OFRAU.js';
2
+ import { Button } from './chunk-6KUOHUY5.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './MergeConflicts-HCXPRQVR.css';
5
5
  import { useState, useId, useRef, useEffect } from 'react';
@@ -1,8 +1,10 @@
1
+ import { heldHint } from './chunk-TDFLCUBE.js';
2
+ import { Tooltip } from './chunk-QZKGFBAR.js';
1
3
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
2
4
  import { cx } from './chunk-ODEQTPFM.js';
3
5
  import './IconButton-LNNHLBAS.css';
4
6
  import { forwardRef, useId, Children, isValidElement, cloneElement } from 'react';
5
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
8
 
7
9
  var IconButton = forwardRef(function IconButton2({
8
10
  label,
@@ -11,6 +13,7 @@ var IconButton = forwardRef(function IconButton2({
11
13
  variant = "ghost",
12
14
  pressed,
13
15
  disabledReason,
16
+ tooltip,
14
17
  className,
15
18
  type = "button",
16
19
  asChild = false,
@@ -37,30 +40,33 @@ var IconButton = forwardRef(function IconButton2({
37
40
  });
38
41
  }
39
42
  const inert = disabledReason !== void 0;
43
+ const hint = typeof tooltip === "string" ? tooltip : tooltip ? label : void 0;
44
+ const tip = hint === void 0 ? void 0 : heldHint(hint, disabledReason);
45
+ const button = /* @__PURE__ */ jsx(
46
+ "button",
47
+ {
48
+ ...rest,
49
+ ref,
50
+ type,
51
+ className: classes,
52
+ disabled,
53
+ title: title ?? (tip === void 0 ? label : ""),
54
+ "aria-label": label,
55
+ "aria-pressed": pressed,
56
+ "aria-disabled": inert || void 0,
57
+ "aria-describedby": inert ? cx(rest["aria-describedby"], reasonId) : rest["aria-describedby"],
58
+ onClick: (event) => {
59
+ if (inert) {
60
+ event.preventDefault();
61
+ return;
62
+ }
63
+ onClick?.(event);
64
+ },
65
+ children: content
66
+ }
67
+ );
40
68
  return /* @__PURE__ */ jsxs(Fragment, { children: [
41
- /* @__PURE__ */ jsx(
42
- "button",
43
- {
44
- ...rest,
45
- ref,
46
- type,
47
- className: classes,
48
- disabled,
49
- title: title ?? label,
50
- "aria-label": label,
51
- "aria-pressed": pressed,
52
- "aria-disabled": inert || void 0,
53
- "aria-describedby": inert ? cx(rest["aria-describedby"], reasonId) : rest["aria-describedby"],
54
- onClick: (event) => {
55
- if (inert) {
56
- event.preventDefault();
57
- return;
58
- }
59
- onClick?.(event);
60
- },
61
- children: content
62
- }
63
- ),
69
+ tip === void 0 ? button : /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: tip }), children: button }),
64
70
  inert ? /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason }) : null
65
71
  ] });
66
72
  });
@@ -1,4 +1,4 @@
1
- import { Copyable } from './chunk-ETNQYT5O.js';
1
+ import { Copyable } from './chunk-ZGKGSW42.js';
2
2
  import { normalizeHex } from './chunk-7W3LYIOC.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ColorSwatch-V4DA4TK5.css';
@@ -1,3 +1,3 @@
1
1
  import './HitArea-QUOS6ZDJ.css';
2
2
  import './Tabs-M2ELSU3V.css';
3
- import './SegmentedControl-7GY2KM44.css';
3
+ import './SegmentedControl-PWTB7KEE.css';
@@ -1,4 +1,4 @@
1
- import { useLayerContainer } from './chunk-OMV5W53A.js';
1
+ import { useLayerContainer } from './chunk-FIX72ZEC.js';
2
2
  import { useRef, useLayoutEffect } from 'react';
3
3
 
4
4
  function LayerNodeBridge({ onNode }) {
@@ -1,6 +1,6 @@
1
1
  import { useAppShellPeek, ResizeHandle } from './chunk-PIYJNCN7.js';
2
- import { ButtonLink } from './chunk-DGXZ635L.js';
3
- import { IconButton } from './chunk-UAUP6XGK.js';
2
+ import { ButtonLink } from './chunk-6KUOHUY5.js';
3
+ import { IconButton } from './chunk-WDLAAZFZ.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './HitArea-QUOS6ZDJ.css';
6
6
  import './ResizeHandle-2UNSZ4ZQ.css';
@@ -1,10 +1,10 @@
1
- import { Modal } from './chunk-ZXXZESCD.js';
1
+ import { Modal } from './chunk-EMDRNB23.js';
2
2
  import { useListbox, useOptionKeys } from './chunk-YGRTX67J.js';
3
3
  import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
4
- import { Popover } from './chunk-EC6EUIAD.js';
4
+ import { Popover } from './chunk-LCAKSEMB.js';
5
5
  import { Skeleton } from './chunk-I4IUX3JF.js';
6
6
  import { useMediaMatch } from './chunk-YJQXESOJ.js';
7
- import { Input } from './chunk-KCLHYBIZ.js';
7
+ import { Input } from './chunk-56ES76ST.js';
8
8
  import { focusables, isComposing } from './chunk-TUEM2XIW.js';
9
9
  import { returnFocus } from './chunk-4ITETIGZ.js';
10
10
  import { announce } from './chunk-2G355KDJ.js';
@@ -1,9 +1,9 @@
1
- import { RefusalStrip, ReceiptStrip } from './chunk-ZWCK4N4L.js';
1
+ import { RefusalStrip, ReceiptStrip } from './chunk-YS4PWTNL.js';
2
2
  import { ChangeList } from './chunk-U4JZ2EXG.js';
3
3
  import { StatusCard } from './chunk-4BEMS6Q7.js';
4
- import { Checkbox } from './chunk-TGSOHXXH.js';
4
+ import { Checkbox } from './chunk-M6G7XLLP.js';
5
5
  import { Disclosure } from './chunk-NAHA62WD.js';
6
- import { Button } from './chunk-DGXZ635L.js';
6
+ import { Button } from './chunk-6KUOHUY5.js';
7
7
  import { Spinner } from './chunk-XSPCITPN.js';
8
8
  import { cx } from './chunk-ODEQTPFM.js';
9
9
  import './VisuallyHidden-AOEXU5EB.css';
@@ -1,4 +1,4 @@
1
- import { Button } from './chunk-DGXZ635L.js';
1
+ import { Button } from './chunk-6KUOHUY5.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ReceiptStrip-V7ASVZVV.css';
4
4
  import { CircleAlertGlyph, TriangleAlertGlyph, InfoGlyph, CircleCheckGlyph } from '@crewlethq/icons/glyphs';
@@ -1,4 +1,4 @@
1
- import { Button } from './chunk-DGXZ635L.js';
1
+ import { Button } from './chunk-6KUOHUY5.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './ConflictNote-OP64JJ6T.css';
4
4
  import { CircleAlertGlyph } from '@crewlethq/icons/glyphs';
@@ -0,0 +1,189 @@
1
+ import { TreeGrid } from './chunk-ROFAWLFS.js';
2
+ import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
3
+ import { OrgLabel } from './chunk-4XYKBZJE.js';
4
+ import { Checkbox } from './chunk-M6G7XLLP.js';
5
+ import { AddPill } from './chunk-SSN7Y3UY.js';
6
+ import { IconButton } from './chunk-WDLAAZFZ.js';
7
+ import { cx } from './chunk-ODEQTPFM.js';
8
+ import './OrgTable-GBRYKTDH.css';
9
+ import { useMemo, useRef, useImperativeHandle, useCallback } from 'react';
10
+ import { ChevronDownGlyph, ChevronUpGlyph } from '@crewlethq/icons/glyphs';
11
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
12
+
13
+ var LABELS = {
14
+ expandAll: "Expand all",
15
+ collapseAll: "Collapse all"
16
+ };
17
+ function OrgTable({
18
+ rows,
19
+ renderCell,
20
+ tone,
21
+ controls = true,
22
+ selection,
23
+ cellHasControl,
24
+ layout = "scroll",
25
+ labels,
26
+ ref,
27
+ className,
28
+ ...rest
29
+ }) {
30
+ const text = { ...LABELS, ...labels };
31
+ const tree = useMemo(() => createTreeModel(rows), [rows]);
32
+ const deep = useMemo(() => Math.max(0, ...tree.depth.values()) >= 3, [tree]);
33
+ const grid = useRef(null);
34
+ useImperativeHandle(
35
+ ref,
36
+ () => ({
37
+ focusNode: (id) => grid.current?.focusNode(id),
38
+ expandAll: () => grid.current?.expandAll(),
39
+ collapseAll: () => grid.current?.collapseAll()
40
+ }),
41
+ []
42
+ );
43
+ const cell = useCallback(
44
+ (id, column, context) => {
45
+ if (column !== 1) return renderCell(id, column, context);
46
+ const depth = tree.depth.get(id) ?? 0;
47
+ const open = context.expandable(id) && context.expanded(id);
48
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
49
+ /* @__PURE__ */ jsx(
50
+ OrgTableWire,
51
+ {
52
+ depth,
53
+ tone: tone?.(id),
54
+ trunk: depth > 0 || open,
55
+ last: !open && lastUnderRoot(tree, id)
56
+ }
57
+ ),
58
+ selection && /* @__PURE__ */ jsx(OrgTableSelect, { id, selection, context }),
59
+ renderCell(id, column, context)
60
+ ] });
61
+ },
62
+ [tree, renderCell, tone, selection]
63
+ );
64
+ const hasControl = useCallback(
65
+ (id, column, key) => column === 1 && selection !== void 0 && selection.checked(id) !== null || (cellHasControl?.(id, column, key) ?? false),
66
+ [selection, cellHasControl]
67
+ );
68
+ return /* @__PURE__ */ jsxs(
69
+ "div",
70
+ {
71
+ className: cx("crewlet-org-table", layout === "container" && "crewlet-org-table--container", className),
72
+ "data-select": selection ? "" : void 0,
73
+ "data-deep": deep ? "" : void 0,
74
+ children: [
75
+ controls && /*
76
+ * THE CHEVRONS THE ROWS THEMSELVES TURN, pointed at every row at once.
77
+ * They wore the plus and the minus, which is the drawing the add on
78
+ * every row under them wears: one mark meant "Expand all" at the
79
+ * table's top edge and "Add to this row" nine times below it. Down is
80
+ * what an open row's own chevron points at, so the pair reads as the
81
+ * state it puts the whole table into.
82
+ */
83
+ /* @__PURE__ */ jsxs("div", { className: "crewlet-org-table__controls", children: [
84
+ /* @__PURE__ */ jsx(
85
+ IconButton,
86
+ {
87
+ size: "sm",
88
+ label: text.expandAll,
89
+ title: text.expandAll,
90
+ icon: /* @__PURE__ */ jsx(ChevronDownGlyph, {}),
91
+ onClick: () => grid.current?.expandAll()
92
+ }
93
+ ),
94
+ /* @__PURE__ */ jsx(
95
+ IconButton,
96
+ {
97
+ size: "sm",
98
+ label: text.collapseAll,
99
+ title: text.collapseAll,
100
+ icon: /* @__PURE__ */ jsx(ChevronUpGlyph, {}),
101
+ onClick: () => grid.current?.collapseAll()
102
+ }
103
+ )
104
+ ] }),
105
+ /* @__PURE__ */ jsx(
106
+ TreeGrid,
107
+ {
108
+ ...rest,
109
+ ref: grid,
110
+ rows,
111
+ layout,
112
+ renderCell: cell,
113
+ cellHasControl: hasControl,
114
+ labels,
115
+ className: "crewlet-org-table__grid"
116
+ }
117
+ )
118
+ ]
119
+ }
120
+ );
121
+ }
122
+ function lastUnderRoot(tree, id) {
123
+ for (let at = id, up = treeParent(tree, id); up !== null; at = up, up = treeParent(tree, up)) {
124
+ const siblings = tree.children.get(up) ?? [];
125
+ if (siblings[siblings.length - 1] !== at) return false;
126
+ }
127
+ return true;
128
+ }
129
+ function OrgTableSelect({
130
+ id,
131
+ selection,
132
+ context
133
+ }) {
134
+ const checked = selection.checked(id);
135
+ return /* @__PURE__ */ jsx("span", { className: "crewlet-org-table__select", children: checked !== null && /* @__PURE__ */ jsx(
136
+ Checkbox,
137
+ {
138
+ hideLabel: true,
139
+ label: selection.label(id),
140
+ checked: checked === true,
141
+ indeterminate: checked === "mixed",
142
+ tabIndex: context.tabStop(id, 1) ? 0 : -1,
143
+ onClick: () => context.opened(id, 1),
144
+ onCheckedChange: (next) => selection.onCheckedChange(id, next)
145
+ }
146
+ ) });
147
+ }
148
+ function OrgTableWire({
149
+ depth,
150
+ tone,
151
+ trunk,
152
+ last
153
+ }) {
154
+ return /* @__PURE__ */ jsx(
155
+ "span",
156
+ {
157
+ className: "crewlet-org-table__wire",
158
+ "aria-hidden": "true",
159
+ "data-trunk": trunk ? "" : void 0,
160
+ "data-last": last ? "" : void 0,
161
+ "data-root": depth === 0 ? "" : void 0,
162
+ "data-tone": tone,
163
+ style: { "--crewlet-org-table-depth": depth }
164
+ }
165
+ );
166
+ }
167
+ function OrgTableName({ tone, ...content }) {
168
+ return /* @__PURE__ */ jsx(OrgLabel, { layout: "row", ...content, ...tone ? { tone } : {} });
169
+ }
170
+ function OrgTableActions({
171
+ children,
172
+ shown = false,
173
+ className
174
+ }) {
175
+ return /* @__PURE__ */ jsx("span", { className: cx("crewlet-org-table__actions", className), "data-shown": shown ? "" : void 0, children });
176
+ }
177
+ function OrgTableAdd({ onOpen, placement = "end", className, ...pill }) {
178
+ return /* @__PURE__ */ jsx(
179
+ "span",
180
+ {
181
+ className: cx("crewlet-org-table__add", className),
182
+ "data-placement": placement,
183
+ onClickCapture: () => onOpen?.(),
184
+ children: /* @__PURE__ */ jsx(AddPill, { ...pill })
185
+ }
186
+ );
187
+ }
188
+
189
+ export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName };
@@ -1,6 +1,6 @@
1
1
  import { useClipboard } from './chunk-STJ7QBC3.js';
2
- import { Button } from './chunk-DGXZ635L.js';
3
- import { IconButton } from './chunk-UAUP6XGK.js';
2
+ import { Button } from './chunk-6KUOHUY5.js';
3
+ import { IconButton } from './chunk-WDLAAZFZ.js';
4
4
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './Copyable-P5AMRHFX.css';
@@ -1,5 +1,5 @@
1
- import { SetByLine } from './chunk-AXEXOAZQ.js';
2
- import { Link } from './chunk-QF5UNP4T.js';
1
+ import { SetByLine } from './chunk-TVGTMKYO.js';
2
+ import { Link } from './chunk-2PB5D4TI.js';
3
3
  import { DescriptionList, DescriptionListItem } from './chunk-LH4OF7FI.js';
4
4
  import { EmptyValue } from './chunk-RE3FBGQQ.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  import { Callout } from './chunk-BPCY7ZID.js';
2
- import { Button } from './chunk-DGXZ635L.js';
2
+ import { Button } from './chunk-6KUOHUY5.js';
3
3
  import { isComposing } from './chunk-TUEM2XIW.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import { useEffect } from 'react';
@@ -223,6 +223,8 @@ export * from '../StatGroup/index.js';
223
223
  export * from '../Statement/index.js';
224
224
  export * from '../StatusCard/index.js';
225
225
  export * from '../StatusDot/index.js';
226
+ export * from '../StatusLegend/index.js';
227
+ export * from '../StatusLine/index.js';
226
228
  export * from '../Stepper/index.js';
227
229
  export * from '../SuggestionRow/index.js';
228
230
  export * from '../Switch/index.js';