@crewlethq/ui 0.97.0 → 0.98.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/index.js +9 -2
  24. package/dist/CheckGrid/index.js +9 -4
  25. package/dist/Checkbox/index.js +8 -3
  26. package/dist/ChipField/index.js +1 -1
  27. package/dist/CodeBlock/index.js +11 -4
  28. package/dist/ColorField/index.js +8 -3
  29. package/dist/ColorSwatch/index.js +11 -4
  30. package/dist/Combobox/index.js +8 -3
  31. package/dist/CommandPalette/index.js +10 -7
  32. package/dist/CommentThread/index.js +10 -6
  33. package/dist/CompactNav/index.js +3 -3
  34. package/dist/Composer/index.js +8 -4
  35. package/dist/ConfirmField/index.js +8 -3
  36. package/dist/ConflictNote/index.js +9 -2
  37. package/dist/ContrastHelp/index.js +7 -4
  38. package/dist/Copyable/index.js +10 -3
  39. package/dist/DataGrid/index.js +10 -5
  40. package/dist/DataTable/index.js +12 -9
  41. package/dist/DataView/index.js +16 -13
  42. package/dist/DateTimePicker/index.js +9 -6
  43. package/dist/DeepWorkCard/index.js +10 -3
  44. package/dist/DocTabsEditor/index.js +10 -7
  45. package/dist/DownloadButton/index.js +9 -2
  46. package/dist/{Editor-63L5QQDN.js → Editor-QWGTLJHM.js} +9 -6
  47. package/dist/EmojiPicker/index.js +9 -8
  48. package/dist/EntityChip/EntityChip.d.ts +9 -1
  49. package/dist/EntityChip/index.js +1 -1
  50. package/dist/ErrorBoundary/index.js +9 -2
  51. package/dist/FactList/index.js +4 -4
  52. package/dist/FileDrop/index.js +9 -2
  53. package/dist/FilterPill/index.js +9 -2
  54. package/dist/FollowBanner/index.js +7 -3
  55. package/dist/HuePicker/index.js +11 -8
  56. package/dist/IconButton/IconButton.d.ts +6 -0
  57. package/dist/IconButton/index.js +8 -1
  58. package/dist/InlineEditor/index.js +7 -3
  59. package/dist/Input/index.js +7 -2
  60. package/dist/KeyValueRows/index.js +9 -4
  61. package/dist/Layer/index.d.ts +1 -1
  62. package/dist/Layer/index.js +1 -1
  63. package/dist/Layer/place.d.ts +6 -0
  64. package/dist/Link/Link.d.ts +6 -1
  65. package/dist/Link/index.js +1 -1
  66. package/dist/{Link-CLURSR2O.css → Link-Z23PLCVS.css} +9 -0
  67. package/dist/LinkInterstitial/index.js +9 -6
  68. package/dist/List/List.d.ts +1 -7
  69. package/dist/ListInput/index.js +9 -5
  70. package/dist/LogoSlot/index.js +10 -3
  71. package/dist/MarkdownEditor/index.js +12 -9
  72. package/dist/MemberPicker/index.js +9 -4
  73. package/dist/Menu/Menu.d.ts +7 -1
  74. package/dist/Menu/index.js +8 -5
  75. package/dist/MergeConflicts/index.js +12 -9
  76. package/dist/MessageActions/index.js +10 -10
  77. package/dist/Modal/index.js +8 -5
  78. package/dist/ObjectHeader/index.js +2 -2
  79. package/dist/OpenInAppCard/index.js +10 -3
  80. package/dist/OrgLabel/OrgLabel.d.ts +14 -0
  81. package/dist/OrgLabel/index.js +1 -1
  82. package/dist/{OrgLabel-R5KY7C3W.css → OrgLabel-6UGWHDQQ.css} +38 -0
  83. package/dist/OrgNode/index.js +2 -2
  84. package/dist/OrgTable/OrgTable.d.ts +28 -3
  85. package/dist/OrgTable/index.d.ts +1 -1
  86. package/dist/OrgTable/index.js +17 -7
  87. package/dist/{OrgTable-JZSYTUIK.css → OrgTable-GBRYKTDH.css} +68 -2
  88. package/dist/PeekRail/index.js +10 -3
  89. package/dist/PeopleRail/index.js +10 -3
  90. package/dist/PinTile/index.js +9 -2
  91. package/dist/Popover/index.js +2 -2
  92. package/dist/PresenterView/index.js +9 -5
  93. package/dist/PrincipalPicker/index.js +9 -4
  94. package/dist/PropertyList/index.js +3 -3
  95. package/dist/ProposalCard/index.js +11 -6
  96. package/dist/RailList/index.js +3 -3
  97. package/dist/ReactionBar/index.js +10 -10
  98. package/dist/ReceiptStrip/index.js +9 -2
  99. package/dist/RecordChip/index.js +3 -3
  100. package/dist/ResultTableCard/index.js +10 -3
  101. package/dist/RichEditor/index.js +9 -2
  102. package/dist/SandboxedFrame/index.js +9 -2
  103. package/dist/SegmentedControl/index.js +11 -8
  104. package/dist/{SegmentedControl-7GY2KM44.css → SegmentedControl-PWTB7KEE.css} +4 -1
  105. package/dist/Select/index.js +2 -2
  106. package/dist/SelectionBar/index.js +7 -3
  107. package/dist/SendButton/index.js +9 -2
  108. package/dist/ShareDialog/index.js +11 -8
  109. package/dist/SheetColumnEditor/index.js +15 -12
  110. package/dist/SheetGrid/index.js +11 -10
  111. package/dist/Shortcut/index.js +1 -1
  112. package/dist/SidePanel/index.js +7 -3
  113. package/dist/SlideCompare/index.js +7 -3
  114. package/dist/SlideFilmstrip/index.js +9 -6
  115. package/dist/SlideGrid/index.js +1 -1
  116. package/dist/SlideNav/index.js +9 -2
  117. package/dist/SlideStage/index.js +1 -1
  118. package/dist/StatusLegend/StatusLegend.d.ts +31 -0
  119. package/dist/StatusLegend/index.d.ts +3 -0
  120. package/dist/StatusLegend/index.js +4 -0
  121. package/dist/StatusLegend-7MS2SBVC.css +77 -0
  122. package/dist/StatusLine/StatusLine.d.ts +32 -0
  123. package/dist/StatusLine/index.d.ts +3 -0
  124. package/dist/StatusLine/index.js +10 -0
  125. package/dist/StatusLine-C6IY3U2F.css +55 -0
  126. package/dist/Switch/Switch.d.ts +2 -0
  127. package/dist/Switch/index.js +1 -1
  128. package/dist/{Switch-XJE34BZH.css → Switch-M3VVQMCY.css} +21 -0
  129. package/dist/Switcher/index.js +11 -8
  130. package/dist/TableCells/index.js +2 -2
  131. package/dist/Tabs/index.js +9 -6
  132. package/dist/TagsInput/index.js +7 -3
  133. package/dist/ThemeSwitcher/index.js +12 -9
  134. package/dist/ThemeToggle/index.js +9 -2
  135. package/dist/TimeRangePicker/index.js +14 -11
  136. package/dist/TimeWindowPicker/index.js +11 -8
  137. package/dist/Toaster/index.js +2 -2
  138. package/dist/Toolbar/index.js +1 -1
  139. package/dist/Tooltip/index.js +3 -3
  140. package/dist/TreeCanvas/TreeCanvas.d.ts +38 -2
  141. package/dist/TreeCanvas/index.d.ts +1 -1
  142. package/dist/TreeCanvas/index.js +10 -9
  143. package/dist/{TreeCanvas-5FPK4CII.css → TreeCanvas-X5RCUSTP.css} +24 -0
  144. package/dist/TreeGrid/TreeGrid.d.ts +26 -3
  145. package/dist/TreeGrid/index.js +8 -4
  146. package/dist/{TreeGrid-522U6WBG.css → TreeGrid-PZ3DFVRO.css} +24 -0
  147. package/dist/ValueField/index.js +10 -6
  148. package/dist/VersionCompare/index.js +12 -9
  149. package/dist/VersionTimeline/index.js +9 -2
  150. package/dist/{chunk-QF5UNP4T.js → chunk-2PB5D4TI.js} +1 -1
  151. package/dist/{chunk-7ZJ662U4.js → chunk-2W4US3JO.js} +3 -3
  152. package/dist/{chunk-NCUSI4ZU.js → chunk-33632WEN.js} +54 -14
  153. package/dist/{chunk-VB3FVKNI.js → chunk-3JAGO633.js} +1 -1
  154. package/dist/{chunk-XA2QKGBJ.js → chunk-3QBQY2XK.js} +1 -1
  155. package/dist/{chunk-2BZ2W2YU.js → chunk-3Z2BSKS5.js} +5 -5
  156. package/dist/{chunk-5U6XAUYM.js → chunk-4FNAPCCK.js} +1 -1
  157. package/dist/{chunk-IJ7KLXUZ.js → chunk-4OHBHPIB.js} +1 -1
  158. package/dist/{chunk-3LKOXQWZ.js → chunk-4QTOAMQN.js} +1 -1
  159. package/dist/{chunk-5YXMKZUA.js → chunk-4XYKBZJE.js} +8 -3
  160. package/dist/{chunk-EHFQMY3B.js → chunk-52UBOSNQ.js} +1 -1
  161. package/dist/{chunk-KCLHYBIZ.js → chunk-56ES76ST.js} +1 -1
  162. package/dist/{chunk-B3BJ66GQ.js → chunk-5JGEEUWQ.js} +2 -2
  163. package/dist/{chunk-WJZTI2WC.js → chunk-5KJOG5YP.js} +7 -7
  164. package/dist/{chunk-IUBOLGHG.js → chunk-5KKZCSER.js} +1 -1
  165. package/dist/{chunk-7K6LVM5I.js → chunk-63NRTOGO.js} +3 -3
  166. package/dist/chunk-6FS6W3P5.js +37 -0
  167. package/dist/chunk-6FVTKYH6.js +37 -0
  168. package/dist/{chunk-DGXZ635L.js → chunk-6KUOHUY5.js} +29 -24
  169. package/dist/{chunk-5AJR6X75.js → chunk-6V465OCU.js} +1 -1
  170. package/dist/{chunk-FRERGOW3.js → chunk-7IW4BVZF.js} +1 -1
  171. package/dist/{chunk-G3JY2DLC.js → chunk-7L6JJ7VJ.js} +1 -1
  172. package/dist/{chunk-CWJLDCB7.js → chunk-A5ISYHW7.js} +3 -3
  173. package/dist/{chunk-SDHLAW3G.js → chunk-AAP7A6WV.js} +2 -2
  174. package/dist/{chunk-AQCWYVE3.js → chunk-AC255TMQ.js} +1 -1
  175. package/dist/{chunk-K4LZXSKZ.js → chunk-AEFR4M2W.js} +1 -1
  176. package/dist/{chunk-GC3UQZPL.js → chunk-AEUZU5SA.js} +1 -1
  177. package/dist/{chunk-5MOBCUNA.js → chunk-AHPMAPVN.js} +2 -2
  178. package/dist/{chunk-2HBY3FOZ.js → chunk-AP6SM6BL.js} +3 -3
  179. package/dist/{chunk-NTGAPLMJ.js → chunk-BC4H2EMM.js} +1 -1
  180. package/dist/{chunk-OGOLTPFQ.js → chunk-BCZQDB3U.js} +1 -1
  181. package/dist/{chunk-QW4LAFTX.js → chunk-BK4KUIAZ.js} +1 -1
  182. package/dist/{chunk-T2GC7UAP.js → chunk-C34CKBKF.js} +1 -1
  183. package/dist/{chunk-LAZ72JOP.js → chunk-CQIODINH.js} +2 -2
  184. package/dist/{chunk-HZBXC3YD.js → chunk-CTNQOSQF.js} +2 -2
  185. package/dist/{chunk-3N3XK2G5.js → chunk-CZKEABMI.js} +3 -1
  186. package/dist/{chunk-HZPUMGQV.js → chunk-D4MMW2NF.js} +3 -3
  187. package/dist/{chunk-K66TAOJA.js → chunk-DBH7ORCH.js} +2 -2
  188. package/dist/{chunk-FXGQWLZ6.js → chunk-DK7CXQFY.js} +1 -1
  189. package/dist/{chunk-RO5JU6SN.js → chunk-E23AXDKL.js} +1 -1
  190. package/dist/{chunk-SKGOKLJD.js → chunk-E2XDYCFO.js} +1 -1
  191. package/dist/{chunk-XSJSDNRR.js → chunk-EF3CJDZO.js} +3 -3
  192. package/dist/{chunk-ZXXZESCD.js → chunk-EMDRNB23.js} +3 -3
  193. package/dist/{chunk-BHVEHAAX.js → chunk-EMXUREKE.js} +3 -3
  194. package/dist/{chunk-3P7XS5VT.js → chunk-FBNGCPKZ.js} +2 -2
  195. package/dist/{chunk-OMV5W53A.js → chunk-FIX72ZEC.js} +15 -1
  196. package/dist/{chunk-QWRAWKB2.js → chunk-FMOYO5OO.js} +2 -2
  197. package/dist/{chunk-GYVEKHVI.js → chunk-FP6OFRAU.js} +1 -1
  198. package/dist/{chunk-AVWEXCJ4.js → chunk-GA773IOZ.js} +2 -2
  199. package/dist/{chunk-XJMES7AE.js → chunk-GBBRSZ2J.js} +1 -1
  200. package/dist/{chunk-SNQ7PH3D.js → chunk-GDYZPBLI.js} +1 -1
  201. package/dist/{chunk-DRFOTWJE.js → chunk-GWRU4JHQ.js} +2 -2
  202. package/dist/{chunk-3NO5GRZY.js → chunk-HMXTZKAI.js} +4 -4
  203. package/dist/{chunk-QDGHOGSW.js → chunk-HTCNTCBE.js} +2 -2
  204. package/dist/{chunk-SRHLFQ4J.js → chunk-HU5PAZMU.js} +3 -3
  205. package/dist/{chunk-T5HZ5AYW.js → chunk-IA3NL54W.js} +4 -4
  206. package/dist/{chunk-3IWZVEXA.js → chunk-IAR2ULSK.js} +1 -1
  207. package/dist/{chunk-4ME4J3YY.js → chunk-IDBGDMQS.js} +1 -1
  208. package/dist/{chunk-WSHKY7SH.js → chunk-IGECN5B6.js} +1 -1
  209. package/dist/{chunk-OMMHKM6I.js → chunk-IYJCJOHW.js} +1 -1
  210. package/dist/{chunk-YTIXNVS7.js → chunk-J3QFTG4B.js} +3 -3
  211. package/dist/{chunk-TGGYSQRD.js → chunk-JK6WLRYP.js} +34 -22
  212. package/dist/{chunk-NKBKHOMU.js → chunk-JQCKRABK.js} +1 -1
  213. package/dist/{chunk-PICHV3PC.js → chunk-JZADK2FT.js} +3 -3
  214. package/dist/{chunk-4RLUVHYP.js → chunk-L72GPZ56.js} +1 -1
  215. package/dist/{chunk-EC6EUIAD.js → chunk-LCAKSEMB.js} +1 -1
  216. package/dist/{chunk-IPMJGK2Q.js → chunk-LYVWOAUN.js} +1 -1
  217. package/dist/{chunk-CFJ7FQZI.js → chunk-M6EVTMTK.js} +1 -1
  218. package/dist/{chunk-TGSOHXXH.js → chunk-M6G7XLLP.js} +1 -1
  219. package/dist/{chunk-JIBWNHTC.js → chunk-MIQNKO2R.js} +1 -1
  220. package/dist/{chunk-QGEDXYLB.js → chunk-MJ73YBP2.js} +2 -2
  221. package/dist/{chunk-BBKYJQZ6.js → chunk-MOP4D5HF.js} +5 -5
  222. package/dist/{chunk-Y7PPKQFQ.js → chunk-MTKHMGJH.js} +5 -5
  223. package/dist/{chunk-KQWJWTED.js → chunk-N7H5TFQK.js} +1 -1
  224. package/dist/{chunk-LJ3KWQLP.js → chunk-NBOHNPZB.js} +1 -1
  225. package/dist/{chunk-M576OESX.js → chunk-NKNG6YER.js} +1 -1
  226. package/dist/{chunk-ZDMZP5H4.js → chunk-OAKECTYH.js} +6 -6
  227. package/dist/{chunk-LMEMH6DO.js → chunk-OSU4ELU3.js} +2 -2
  228. package/dist/{chunk-5ILRWUE7.js → chunk-P667Y6NQ.js} +1 -1
  229. package/dist/{chunk-LGPTZGHJ.js → chunk-PF6X74C5.js} +8 -8
  230. package/dist/{chunk-6FAI4VLM.js → chunk-PJMDZEWY.js} +1 -1
  231. package/dist/{chunk-OSH55AKI.js → chunk-PMO6W5NE.js} +3 -3
  232. package/dist/{chunk-ZPTKAYJK.js → chunk-QH2YJDRI.js} +1 -1
  233. package/dist/{chunk-VTQSSU2E.js → chunk-QND44ROZ.js} +1 -1
  234. package/dist/{chunk-AELKT34H.js → chunk-QPRTTTUN.js} +1 -1
  235. package/dist/{chunk-7ZSEUO5Q.js → chunk-QZKGFBAR.js} +2 -2
  236. package/dist/{chunk-OC6BMY3C.js → chunk-RBR4AHBT.js} +1 -1
  237. package/dist/chunk-ROFAWLFS.js +352 -0
  238. package/dist/{chunk-VONEKR3J.js → chunk-RPCIU4S5.js} +1 -1
  239. package/dist/{chunk-2NNMBEJV.js → chunk-RSI6EJSH.js} +5 -5
  240. package/dist/{chunk-GNJXUNEU.js → chunk-RVJJZVVS.js} +1 -1
  241. package/dist/{chunk-V6WDJUYK.js → chunk-SF6FUU42.js} +1 -1
  242. package/dist/{chunk-CVKANYHD.js → chunk-SSN7Y3UY.js} +1 -1
  243. package/dist/{chunk-BMBQ6UMD.js → chunk-TAWPKNNZ.js} +1 -1
  244. package/dist/{chunk-I4IO56EY.js → chunk-TKAERQQF.js} +1 -1
  245. package/dist/{chunk-AXEXOAZQ.js → chunk-TVGTMKYO.js} +1 -1
  246. package/dist/{chunk-FPU7AA3X.js → chunk-UUDQEDHQ.js} +72 -26
  247. package/dist/{chunk-2SVQBQAD.js → chunk-V7WDP3HR.js} +3 -3
  248. package/dist/{chunk-65RFU7LF.js → chunk-VDQGWPGQ.js} +4 -1
  249. package/dist/{chunk-H4WQWCHP.js → chunk-VULZ4FAA.js} +2 -2
  250. package/dist/{chunk-UAUP6XGK.js → chunk-WDLAAZFZ.js} +30 -24
  251. package/dist/{chunk-6EZX26BD.js → chunk-WF2UJYCT.js} +1 -1
  252. package/dist/{chunk-EVM6GYZ2.js → chunk-WSR4OB4T.js} +1 -1
  253. package/dist/{chunk-LM3ISVJA.js → chunk-X4HBZSXA.js} +1 -1
  254. package/dist/{chunk-CDNZTCP2.js → chunk-XHQ2JJCB.js} +2 -2
  255. package/dist/{chunk-O3II3KJY.js → chunk-XLVWSNW3.js} +3 -3
  256. package/dist/{chunk-TXOTL7AA.js → chunk-YEQTGPCE.js} +3 -3
  257. package/dist/{chunk-ZWCK4N4L.js → chunk-YS4PWTNL.js} +1 -1
  258. package/dist/{chunk-B3PK2LND.js → chunk-YYKLPEOS.js} +1 -1
  259. package/dist/chunk-Z6E3WOWS.js +189 -0
  260. package/dist/{chunk-ETNQYT5O.js → chunk-ZGKGSW42.js} +2 -2
  261. package/dist/{chunk-OPVTNHPH.js → chunk-ZKC3QFDX.js} +2 -2
  262. package/dist/{chunk-NTRKC2JV.js → chunk-ZUWEVSDP.js} +1 -1
  263. package/dist/generated/index.d.ts +2 -0
  264. package/dist/generated/index.js +133 -131
  265. package/dist/index.js +133 -131
  266. package/dist/styles.css +391 -12
  267. package/dist/utils/index.js +2 -2
  268. package/package.json +3 -3
  269. package/scripts/check-css-literals.mjs +3 -4
  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,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';