@crewlethq/ui 0.148.0 → 0.149.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 (246) hide show
  1. package/dist/ActivityLine/index.js +3 -3
  2. package/dist/AgentHandoffPanel/index.js +8 -8
  3. package/dist/AppShell/index.js +5 -5
  4. package/dist/ArrangeFrame/index.js +3 -3
  5. package/dist/ArrangeList/index.js +5 -5
  6. package/dist/ArtifactBar/index.js +7 -7
  7. package/dist/ArtifactCard/index.js +6 -6
  8. package/dist/ArtifactPanel/index.js +4 -4
  9. package/dist/ArtifactRef/index.js +2 -2
  10. package/dist/AttentionList/index.js +4 -4
  11. package/dist/Avatar/index.js +1 -1
  12. package/dist/{Avatar-HD7YSWDV.css → Avatar-OUKBB6UF.css} +19 -5
  13. package/dist/AvatarPicker/index.js +8 -8
  14. package/dist/BriefCard/index.js +3 -3
  15. package/dist/Button/index.js +2 -2
  16. package/dist/Callout/index.js +3 -3
  17. package/dist/Canvas/index.js +4 -4
  18. package/dist/CanvasBoard/index.js +6 -6
  19. package/dist/CanvasToolbar/index.js +5 -5
  20. package/dist/ChangeMark/index.js +2 -2
  21. package/dist/ChatMessage/index.js +3 -3
  22. package/dist/ChatThread/index.js +4 -4
  23. package/dist/CheckGrid/index.js +5 -5
  24. package/dist/Checkbox/index.js +4 -4
  25. package/dist/Clamp/index.js +3 -3
  26. package/dist/CodeBlock/CodeBlock.d.ts +11 -1
  27. package/dist/CodeBlock/index.js +6 -6
  28. package/dist/CodeBlock/syntax.d.ts +23 -0
  29. package/dist/{CodeBlock-LS7H6KUQ.css → CodeBlock-GPNAG43I.css} +34 -0
  30. package/dist/ColorField/index.js +4 -4
  31. package/dist/ColorSwatch/index.js +6 -6
  32. package/dist/Combobox/index.js +4 -4
  33. package/dist/CommandPalette/index.js +6 -6
  34. package/dist/CommentThread/index.js +7 -7
  35. package/dist/Composer/index.js +4 -4
  36. package/dist/ConfirmField/index.js +4 -4
  37. package/dist/ConflictNote/index.js +3 -3
  38. package/dist/ContrastHelp/index.js +3 -3
  39. package/dist/Copyable/index.js +5 -5
  40. package/dist/DataGrid/index.js +6 -6
  41. package/dist/DataTable/index.js +8 -8
  42. package/dist/DataView/index.js +11 -11
  43. package/dist/DateTimePicker/index.js +4 -4
  44. package/dist/DeepWorkCard/index.js +4 -4
  45. package/dist/DeliveryReceipt/DeliveryReceipt.d.ts +69 -53
  46. package/dist/DeliveryReceipt/index.js +8 -1
  47. package/dist/DeliveryReceipt-GTES3RSG.css +90 -0
  48. package/dist/DocTabsEditor/index.js +6 -6
  49. package/dist/DownloadButton/index.js +3 -3
  50. package/dist/{Editor-PGDR7XMZ.js → Editor-FXREHINI.js} +5 -5
  51. package/dist/EmojiPicker/index.js +4 -4
  52. package/dist/EntityChip/index.js +1 -1
  53. package/dist/ErrorBoundary/index.js +3 -3
  54. package/dist/FactList/index.js +2 -2
  55. package/dist/FileDrop/index.js +3 -3
  56. package/dist/FilterPill/index.js +3 -3
  57. package/dist/FollowBanner/index.js +5 -5
  58. package/dist/Fullscreen/index.js +3 -3
  59. package/dist/GraphCanvas/index.js +6 -6
  60. package/dist/HuePicker/index.js +7 -7
  61. package/dist/IconButton/index.js +2 -2
  62. package/dist/ImageUpload/index.js +1 -1
  63. package/dist/InlineEditor/index.js +3 -3
  64. package/dist/InlineRef/index.js +1 -1
  65. package/dist/{InlineRef-LHU6MH4I.css → InlineRef-CUBTBIYD.css} +2 -1
  66. package/dist/Input/index.js +3 -3
  67. package/dist/KeyValueRows/index.js +5 -5
  68. package/dist/LinkInterstitial/index.js +6 -6
  69. package/dist/ListDetail/index.js +3 -3
  70. package/dist/ListInput/index.js +5 -5
  71. package/dist/LogoSlot/index.js +4 -4
  72. package/dist/MarkdownEditor/index.js +7 -7
  73. package/dist/MemberPicker/index.js +5 -5
  74. package/dist/Menu/index.js +4 -4
  75. package/dist/MergeConflicts/index.js +7 -7
  76. package/dist/MessageActions/index.js +5 -5
  77. package/dist/Modal/index.js +4 -4
  78. package/dist/NoticeList/index.js +3 -3
  79. package/dist/OpenInAppCard/index.js +4 -4
  80. package/dist/OrgLabel/index.js +1 -1
  81. package/dist/OrgNode/index.js +1 -1
  82. package/dist/OrgTable/index.js +9 -9
  83. package/dist/PeekRail/index.js +4 -4
  84. package/dist/PeopleRail/index.js +5 -5
  85. package/dist/PinTile/index.js +3 -3
  86. package/dist/PresenceStack/index.js +1 -1
  87. package/dist/PresenterView/index.js +5 -5
  88. package/dist/Principal/index.js +1 -1
  89. package/dist/PrincipalPicker/index.js +6 -6
  90. package/dist/ProposalCard/index.js +8 -8
  91. package/dist/RailList/index.js +4 -4
  92. package/dist/ReactionBar/index.js +5 -5
  93. package/dist/ReceiptStrip/index.js +3 -3
  94. package/dist/ResultTableCard/index.js +4 -4
  95. package/dist/RichEditor/index.js +5 -5
  96. package/dist/SandboxedFrame/index.js +5 -5
  97. package/dist/SectionFrame/index.js +4 -4
  98. package/dist/SegmentedControl/index.js +6 -6
  99. package/dist/SelectionBar/index.js +3 -3
  100. package/dist/SendButton/index.js +3 -3
  101. package/dist/SettingsTable/index.js +5 -5
  102. package/dist/ShareDialog/index.js +9 -9
  103. package/dist/SheetColumnEditor/index.js +10 -10
  104. package/dist/SheetGrid/index.js +7 -7
  105. package/dist/SidePanel/index.js +3 -3
  106. package/dist/SidebarNav/index.js +3 -3
  107. package/dist/SlideCompare/index.js +3 -3
  108. package/dist/SlideFilmstrip/index.js +5 -5
  109. package/dist/SlideNav/index.js +3 -3
  110. package/dist/StatusLine/index.js +2 -2
  111. package/dist/Switcher/index.js +6 -6
  112. package/dist/TableCells/index.js +1 -1
  113. package/dist/Tabs/index.js +5 -5
  114. package/dist/TagsInput/index.js +3 -3
  115. package/dist/ThemeSwitcher/index.js +7 -7
  116. package/dist/ThemeToggle/index.js +3 -3
  117. package/dist/ThreadSummary/index.js +2 -2
  118. package/dist/TimeRangePicker/index.js +10 -10
  119. package/dist/TimeWindowPicker/index.js +5 -5
  120. package/dist/Tooltip/Tooltip.d.ts +8 -1
  121. package/dist/Tooltip/index.js +1 -1
  122. package/dist/TreeCanvas/index.js +5 -5
  123. package/dist/TreeGrid/index.js +7 -7
  124. package/dist/ValueField/index.js +5 -5
  125. package/dist/VersionCompare/index.js +7 -7
  126. package/dist/VersionTimeline/index.js +4 -4
  127. package/dist/WorkingLine/index.js +2 -2
  128. package/dist/{chunk-CYRGASHY.js → chunk-27NS67UI.js} +2 -2
  129. package/dist/{chunk-2RJFKMTX.js → chunk-27ZF7D3C.js} +2 -2
  130. package/dist/chunk-2EPEVS2M.js +158 -0
  131. package/dist/{chunk-SPCNQUEU.js → chunk-2PSOUDCS.js} +1 -1
  132. package/dist/{chunk-IEM64WYC.js → chunk-2QPELDAA.js} +2 -2
  133. package/dist/{chunk-RG6XQJ74.js → chunk-2W2KAF7D.js} +1 -1
  134. package/dist/{chunk-CLEQII3E.js → chunk-3EL3IF3W.js} +1 -1
  135. package/dist/{chunk-QA774VCH.js → chunk-3GWCWUSY.js} +1 -1
  136. package/dist/{chunk-2Z5SMA7Q.js → chunk-3OZPHFDT.js} +1 -1
  137. package/dist/{chunk-YLOADTDS.js → chunk-3RLOH5AR.js} +1 -1
  138. package/dist/{chunk-N37AX25G.js → chunk-3SUIU2ZO.js} +3 -3
  139. package/dist/{chunk-IAER2ZMS.js → chunk-4DUK2TC4.js} +1 -1
  140. package/dist/{chunk-T7J2U3IN.js → chunk-4LNSURYZ.js} +1 -1
  141. package/dist/{chunk-BXP6WDKR.js → chunk-5C7MP4C7.js} +2 -2
  142. package/dist/{chunk-WTRAMP4V.js → chunk-5ORAUELE.js} +3 -3
  143. package/dist/{chunk-VXSCGB2L.js → chunk-6RBE5RVG.js} +2 -2
  144. package/dist/{chunk-UOVEN5RY.js → chunk-7C6NHVMX.js} +5 -5
  145. package/dist/{chunk-RIAEOKY7.js → chunk-7CVV3DQC.js} +1 -1
  146. package/dist/{chunk-RJZO5NQW.js → chunk-7FY7L6WD.js} +2 -2
  147. package/dist/{chunk-OU4P4E3U.js → chunk-7J2RIAZ4.js} +1 -1
  148. package/dist/{chunk-BPCXMQMB.js → chunk-7MAU74EI.js} +1 -1
  149. package/dist/{chunk-UJETUDIL.js → chunk-7PK2Z5JY.js} +2 -2
  150. package/dist/{chunk-SSRQLPGT.js → chunk-7SXCCVUR.js} +2 -2
  151. package/dist/{chunk-RMGAZEEX.js → chunk-7WXLPNZF.js} +1 -1
  152. package/dist/{chunk-MMJYDMGL.js → chunk-AH7R777J.js} +2 -2
  153. package/dist/{chunk-5L4ZSNGP.js → chunk-AU4EKD2G.js} +1 -1
  154. package/dist/{chunk-PDGXQBFS.js → chunk-BFZAGIXR.js} +3 -1
  155. package/dist/{chunk-QNN4OYLU.js → chunk-BJE7TPO6.js} +2 -2
  156. package/dist/{chunk-TYCICVST.js → chunk-BRMJPZC4.js} +1 -1
  157. package/dist/{chunk-EZG3SRSM.js → chunk-CA62YCFK.js} +1 -1
  158. package/dist/{chunk-JXLFC5BX.js → chunk-CC5NUAOF.js} +1 -1
  159. package/dist/{chunk-74B3HREV.js → chunk-CJGLMT44.js} +1 -1
  160. package/dist/{chunk-TCQIJ2VO.js → chunk-CRGYWLP6.js} +1 -1
  161. package/dist/{chunk-2UEMCSVB.js → chunk-CXJMWEZC.js} +1 -1
  162. package/dist/{chunk-HHCD55D3.js → chunk-D33K2BCZ.js} +1 -1
  163. package/dist/{chunk-SNKLBPXQ.js → chunk-DGB7R42F.js} +1 -1
  164. package/dist/{chunk-GYVL23ZK.js → chunk-DLYYW77C.js} +1 -1
  165. package/dist/{chunk-7VE7SOH6.js → chunk-E3JUS3CR.js} +1 -1
  166. package/dist/{chunk-X2R3GWCB.js → chunk-ECHQLOWI.js} +2 -2
  167. package/dist/{chunk-QDVXEQJC.js → chunk-EDQHZOU3.js} +3 -3
  168. package/dist/{chunk-HLCQHRHJ.js → chunk-EO64FXVL.js} +1 -1
  169. package/dist/{chunk-BXGFDSC7.js → chunk-F6OYNO7O.js} +3 -3
  170. package/dist/{chunk-U62CXJPE.js → chunk-FCRJAFTU.js} +7 -7
  171. package/dist/{chunk-LO3CTXQI.js → chunk-FMKQSDBQ.js} +3 -3
  172. package/dist/{chunk-4DJONKYN.js → chunk-FYVV6GJN.js} +1 -1
  173. package/dist/{chunk-D7XI5DN5.js → chunk-GMXOZEF5.js} +1 -1
  174. package/dist/{chunk-3HY3KHMR.js → chunk-GR6XGA5V.js} +2 -2
  175. package/dist/{chunk-R4H352IB.js → chunk-HHTAGV5R.js} +1 -1
  176. package/dist/{chunk-EVOLZQTB.js → chunk-HIDOUXLD.js} +1 -1
  177. package/dist/{chunk-CMLRFHBD.js → chunk-HJ6ZY4UX.js} +2 -2
  178. package/dist/{chunk-F37ZBF4D.js → chunk-HYUO2RHC.js} +1 -1
  179. package/dist/{chunk-QGDQ5YDC.js → chunk-IMF3CPTY.js} +2 -2
  180. package/dist/{chunk-TRV7VZW6.js → chunk-IRGS5FEC.js} +1 -1
  181. package/dist/{chunk-P67SLIPX.js → chunk-IRLHICS4.js} +2 -2
  182. package/dist/{chunk-HDJMTHAP.js → chunk-IZH5DCOQ.js} +1 -1
  183. package/dist/{chunk-3ZJ6X3ZJ.js → chunk-JD5K6Y7Q.js} +3 -3
  184. package/dist/{chunk-7R77GFUO.js → chunk-JNDZGQGS.js} +2 -2
  185. package/dist/{chunk-DJAYXYDZ.js → chunk-KM5OKCW6.js} +2 -2
  186. package/dist/{chunk-NDZEN2ON.js → chunk-KQUENZR3.js} +1 -1
  187. package/dist/{chunk-PD3RJT3F.js → chunk-LDSLEEWR.js} +3 -3
  188. package/dist/{chunk-MCZJ2SD7.js → chunk-LZ3TKYAY.js} +2 -2
  189. package/dist/{chunk-LDVZYLA6.js → chunk-M2USLODI.js} +2 -2
  190. package/dist/{chunk-VGAZHT6S.js → chunk-M4VA76JF.js} +6 -6
  191. package/dist/{chunk-5Y3BFCGM.js → chunk-MUBJN75T.js} +5 -5
  192. package/dist/{chunk-5B5N4X5H.js → chunk-N3LAAA4R.js} +3 -3
  193. package/dist/{chunk-RVFSUF7V.js → chunk-N3R2POGO.js} +3 -3
  194. package/dist/chunk-NZHWGKPW.js +334 -0
  195. package/dist/{chunk-XIJU47UT.js → chunk-O2J5PSWI.js} +2 -2
  196. package/dist/{chunk-QPAUKLNC.js → chunk-O3CY4MHN.js} +3 -3
  197. package/dist/{chunk-R75TTEHL.js → chunk-OAD4AXYJ.js} +1 -1
  198. package/dist/{chunk-ZCA3JNQS.js → chunk-ODN3LSYW.js} +1 -1
  199. package/dist/{chunk-BKHS6YPM.js → chunk-OMVGWZ3V.js} +1 -1
  200. package/dist/{chunk-ETVXKUW7.js → chunk-PW6QXVIX.js} +3 -3
  201. package/dist/{chunk-PGLRFPYY.js → chunk-Q7RI66TT.js} +4 -4
  202. package/dist/{chunk-FYN2HXEB.js → chunk-QRUQOITJ.js} +1 -1
  203. package/dist/{chunk-XNTYJAHL.js → chunk-QULAFXL3.js} +1 -1
  204. package/dist/{chunk-QO76JNSB.js → chunk-R2RHSKAT.js} +3 -3
  205. package/dist/{chunk-V2K6EHJA.js → chunk-RNVPYDRQ.js} +1 -1
  206. package/dist/{chunk-TNYRJVKE.js → chunk-RTMFZLU3.js} +2 -2
  207. package/dist/{chunk-WGSIKYDE.js → chunk-RUNZWWN6.js} +5 -5
  208. package/dist/{chunk-QNG5MH7P.js → chunk-RXHY5T2Z.js} +2 -2
  209. package/dist/{chunk-Z3GOZ42N.js → chunk-S4ADDFRT.js} +3 -3
  210. package/dist/{chunk-EFTWYGN5.js → chunk-TBOVJ7RL.js} +1 -1
  211. package/dist/{chunk-ZPJX57QO.js → chunk-TPABM6DW.js} +2 -2
  212. package/dist/{chunk-ACXYNJZR.js → chunk-TSLXQVBC.js} +1 -1
  213. package/dist/{chunk-WK3OWTOD.js → chunk-TTUFOH2Y.js} +1 -1
  214. package/dist/{chunk-LHGDKWHV.js → chunk-U3ZUZ7VU.js} +3 -3
  215. package/dist/{chunk-X4QL7STV.js → chunk-UEO3A76N.js} +1 -1
  216. package/dist/{chunk-7UN7ICUE.js → chunk-UPQ4MDPE.js} +2 -2
  217. package/dist/{chunk-LILN66O3.js → chunk-V4CGY2CI.js} +1 -1
  218. package/dist/{chunk-PY3PKWAN.js → chunk-V67VL3WD.js} +1 -1
  219. package/dist/{chunk-JLWCONCZ.js → chunk-VARFEAUH.js} +5 -5
  220. package/dist/{chunk-OL42IZ6I.js → chunk-VFC7KVCW.js} +1 -1
  221. package/dist/{chunk-HTWN4IJJ.js → chunk-W2T7RGH7.js} +2 -2
  222. package/dist/{chunk-3FBJACLW.js → chunk-WAF36OFS.js} +5 -5
  223. package/dist/{chunk-EILMLMSG.js → chunk-WOHPQEBZ.js} +1 -1
  224. package/dist/{chunk-QWDTC2UI.js → chunk-WSKVFRKK.js} +1 -1
  225. package/dist/{chunk-TAOVSH32.js → chunk-X5ZUDJNK.js} +1 -1
  226. package/dist/{chunk-CNEHTSA5.js → chunk-XJU53WMW.js} +1 -1
  227. package/dist/{chunk-VGYVCLN4.js → chunk-XQMRSL7Z.js} +1 -1
  228. package/dist/{chunk-UC4YASMJ.js → chunk-YMBXTGFC.js} +2 -2
  229. package/dist/{chunk-VWEF6LTZ.js → chunk-YOCTDR2P.js} +1 -1
  230. package/dist/{chunk-H4OV6SYF.js → chunk-YRNIPS4M.js} +2 -2
  231. package/dist/{chunk-2BIGA4VD.js → chunk-YWPUT6JQ.js} +2 -2
  232. package/dist/{chunk-5DYNF5U2.js → chunk-Z6HWOPI7.js} +1 -1
  233. package/dist/{chunk-DQ3MKG7I.js → chunk-Z6OZNSHF.js} +1 -1
  234. package/dist/{chunk-PRNJO37A.js → chunk-Z7BA2EVV.js} +2 -2
  235. package/dist/{chunk-YKM3HCDL.js → chunk-ZAQ7CEYN.js} +2 -2
  236. package/dist/{chunk-WYO5KDET.js → chunk-ZC73GPA3.js} +1 -1
  237. package/dist/{chunk-SQHDMVU7.js → chunk-ZFSKRN6D.js} +1 -1
  238. package/dist/{chunk-4DKECHWE.js → chunk-ZMZNKDPO.js} +4 -4
  239. package/dist/{chunk-2FAEKL36.js → chunk-ZNEMXLTY.js} +1 -1
  240. package/dist/generated/index.js +126 -126
  241. package/dist/index.js +126 -126
  242. package/dist/styles.css +120 -45
  243. package/package.json +3 -3
  244. package/dist/DeliveryReceipt-BILVVNTO.css +0 -64
  245. package/dist/chunk-GTNXDLYH.js +0 -146
  246. package/dist/chunk-L6E4DVIF.js +0 -131
package/dist/styles.css CHANGED
@@ -5084,7 +5084,7 @@ a.crewlet-make-row__item:active {
5084
5084
  }
5085
5085
 
5086
5086
 
5087
- /* Avatar-HD7YSWDV.css */
5087
+ /* Avatar-OUKBB6UF.css */
5088
5088
  /*
5089
5089
  * The identity badge.
5090
5090
  *
@@ -5194,12 +5194,25 @@ a.crewlet-make-row__item:active {
5194
5194
  /*
5195
5195
  * AN INLINE BLOCK, not a flex box, because it sits inside words a reader
5196
5196
  * copies: a browser copies a line break before an inline flex container,
5197
- * so "ask @miles" came out over two lines. Its face is centred by its line
5198
- * instead (`line-height` is its own height).
5197
+ * so "ask @miles" came out over two lines. Its initials are centred on the
5198
+ * strut below, so the face's own line takes no height.
5199
5199
  */
5200
5200
  display: inline-block;
5201
5201
  text-align: center;
5202
- line-height: var(--crewlet-avatar-size);
5202
+ line-height: 0;
5203
+ /* Its foot is its baseline (it clips), set 0.22em under the words' as
5204
+ InlineRef sets its square, so a face alone in a sentence centres on the
5205
+ capitals too. */
5206
+ vertical-align: -0.22em;
5207
+ }
5208
+
5209
+ /* A full-height strut its initials or glyph are middle-aligned with, which
5210
+ puts their middle on the box's centre rather than on the sentence's x-height. */
5211
+ .crewlet-avatar--text.crewlet-avatar--fallback::before {
5212
+ content: '';
5213
+ display: inline-block;
5214
+ height: 100%;
5215
+ vertical-align: middle;
5203
5216
  }
5204
5217
 
5205
5218
  /* An image face is a block at every other size. */
@@ -5207,7 +5220,7 @@ a.crewlet-make-row__item:active {
5207
5220
  display: inline-block;
5208
5221
  }
5209
5222
 
5210
- /* A glyph face (a token's key) centred by the line too, never a flex box. */
5223
+ /* A glyph face (a token's key) centred on the strut too, never a flex box. */
5211
5224
  .crewlet-avatar--text .crewlet-avatar__icon {
5212
5225
  display: inline-block;
5213
5226
  vertical-align: middle;
@@ -5226,7 +5239,8 @@ a.crewlet-make-row__item:active {
5226
5239
  */
5227
5240
  --crewlet-avatar-initials-size: 0.5em;
5228
5241
  font-size: var(--crewlet-avatar-initials-size);
5229
- line-height: 1;
5242
+ /* The font's own line, as the steps set it: Geist's caps centre on it. */
5243
+ line-height: normal;
5230
5244
  vertical-align: middle;
5231
5245
  }
5232
5246
 
@@ -13104,7 +13118,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
13104
13118
  }
13105
13119
 
13106
13120
 
13107
- /* CodeBlock-LS7H6KUQ.css */
13121
+ /* CodeBlock-GPNAG43I.css */
13108
13122
  /*
13109
13123
  * CodeBlock, a monospace command, config or record surface. One step off the
13110
13124
  * page, with an optional header carrying a filename and the copy control.
@@ -13306,6 +13320,40 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
13306
13320
  overflow-wrap: normal;
13307
13321
  }
13308
13322
 
13323
+ /*
13324
+ * CODE COLOURED BY KIND (a `json` or `yaml` block): each token in the kit's
13325
+ * syntax ink for its kind, which the palette measures on the block's grounds.
13326
+ * A hue here is a kind, never a state.
13327
+ */
13328
+ .crewlet-codeblock__tok--key {
13329
+ color: var(--color-syntax-function);
13330
+ }
13331
+
13332
+ .crewlet-codeblock__tok--string {
13333
+ color: var(--color-syntax-string);
13334
+ }
13335
+
13336
+ .crewlet-codeblock__tok--number {
13337
+ color: var(--color-syntax-number);
13338
+ }
13339
+
13340
+ .crewlet-codeblock__tok--boolean {
13341
+ color: var(--color-syntax-keyword);
13342
+ }
13343
+
13344
+ .crewlet-codeblock__tok--null {
13345
+ color: var(--color-syntax-type);
13346
+ }
13347
+
13348
+ .crewlet-codeblock__tok--punctuation {
13349
+ color: var(--color-syntax-punctuation);
13350
+ }
13351
+
13352
+ .crewlet-codeblock__tok--comment {
13353
+ color: var(--color-syntax-comment);
13354
+ font-style: italic;
13355
+ }
13356
+
13309
13357
  /*
13310
13358
  * The copy control sits in the header in the sans face, not the block's. It
13311
13359
  * is a small ghost at the header's end, and it stands as far from that end as
@@ -19876,70 +19924,96 @@ svg.crewlet-datetime__chevron {
19876
19924
  }
19877
19925
 
19878
19926
 
19879
- /* DeliveryReceipt-BILVVNTO.css */
19927
+ /* DeliveryReceipt-GTES3RSG.css */
19880
19928
  /*
19881
- * Who a person's message reached and who answered, under its words; and the
19882
- * same line over a composer, before the message is sent.
19883
- *
19884
- * ONE LINE OF TEXT: a sentence that wraps like any other, with its mark
19885
- * standing at its start. It was a row of flex parts with a dot between them,
19886
- * which made two facts out of one and named the seats that answered twice.
19929
+ * Who a person's message reached and who answered, as a mark under its words
19930
+ * or beside a composer, whose facts open in the kit tooltip.
19887
19931
  */
19888
19932
  .crewlet-delivery-receipt {
19933
+ display: inline-flex;
19934
+ align-items: center;
19889
19935
  max-width: 100%;
19890
- margin: 0;
19891
19936
  color: var(--color-text-tertiary);
19892
19937
  font-size: var(--crewlet-chat-meta);
19893
19938
  line-height: var(--font-line-height-snug);
19894
- overflow-wrap: anywhere;
19895
19939
  }
19896
19940
 
19897
- /* The mark stands on the sentence's first line, centred on it, a step
19898
- before the words. */
19899
- .crewlet-delivery-receipt__mark {
19941
+ /* The mark is the control: a quiet text-ink button whose hit area reaches past
19942
+ the glyph without moving the line around it. */
19943
+ .crewlet-delivery-receipt__trigger {
19900
19944
  display: inline-flex;
19901
- vertical-align: middle;
19902
- margin-inline-end: var(--spacing-1);
19945
+ align-items: center;
19946
+ gap: var(--spacing-1);
19947
+ min-width: var(--size-target-min);
19948
+ min-height: var(--size-target-min);
19949
+ margin: calc(var(--spacing-1) * -1);
19950
+ padding: var(--spacing-1);
19951
+ border: 0;
19952
+ border-radius: var(--radius-xs);
19953
+ background: none;
19954
+ color: inherit;
19955
+ font: inherit;
19956
+ cursor: default;
19903
19957
  }
19904
19958
 
19905
- /* An answer lifts the line to the secondary ink, check and all. */
19906
- .crewlet-delivery-receipt--answered {
19959
+ .crewlet-delivery-receipt__trigger:hover {
19907
19960
  color: var(--color-text-secondary);
19908
19961
  }
19909
19962
 
19910
- /* The one raised tone: a message nobody was asked to answer. Its mark takes
19911
- the warning ink, its words the secondary ink; the hint stays quiet. */
19912
- .crewlet-delivery-receipt--none {
19963
+ .crewlet-delivery-receipt__trigger:focus-visible {
19964
+ outline: 2px solid var(--color-focus);
19965
+ outline-offset: var(--size-focus-ring-inset-offset);
19966
+ }
19967
+
19968
+ .crewlet-delivery-receipt__mark,
19969
+ .crewlet-delivery-receipt__faces {
19970
+ display: inline-flex;
19971
+ flex: none;
19972
+ }
19973
+
19974
+ .crewlet-delivery-receipt__count {
19975
+ font-variant-numeric: tabular-nums;
19976
+ }
19977
+
19978
+ /* An answer lifts the receipt to the secondary ink, check and all. */
19979
+ .crewlet-delivery-receipt--answered,
19980
+ .crewlet-delivery-receipt--partly {
19913
19981
  color: var(--color-text-secondary);
19914
19982
  }
19915
19983
 
19984
+ /* The one raised tone: a message nobody was asked to answer. */
19916
19985
  .crewlet-delivery-receipt--none .crewlet-delivery-receipt__mark {
19917
19986
  color: var(--color-feedback-warning-ink);
19918
19987
  }
19919
19988
 
19920
- .crewlet-delivery-receipt__hint {
19921
- color: var(--color-text-tertiary);
19989
+ /* ── the tip ──────────────────────────────────────────────────────────── */
19990
+
19991
+ /* A head saying where it stands, then a key and its values a row. */
19992
+ .crewlet-delivery-receipt__tip {
19993
+ display: grid;
19994
+ gap: var(--spacing-1);
19922
19995
  }
19923
19996
 
19924
- /* The names past the cap: a quiet text button in the line's own type, so the
19925
- receipt keeps its register; it underlines under the pointer as a link does. */
19926
- .crewlet-delivery-receipt__more {
19927
- padding: 0;
19928
- border: 0;
19929
- border-radius: var(--radius-xs);
19930
- background: none;
19931
- color: var(--color-text-secondary);
19932
- font: inherit;
19933
- cursor: pointer;
19997
+ .crewlet-delivery-receipt__tip-facts {
19998
+ display: grid;
19999
+ grid-template-columns: auto minmax(0, 1fr);
20000
+ gap: var(--spacing-1) var(--spacing-2);
20001
+ font-weight: var(--font-weight-regular);
19934
20002
  }
19935
20003
 
19936
- .crewlet-delivery-receipt__more:hover {
19937
- text-decoration: underline;
20004
+ .crewlet-delivery-receipt__tip-row {
20005
+ display: contents;
19938
20006
  }
19939
20007
 
19940
- .crewlet-delivery-receipt__more:focus-visible {
19941
- outline: 2px solid var(--color-focus);
19942
- outline-offset: 2px;
20008
+ .crewlet-delivery-receipt__tip-key,
20009
+ .crewlet-delivery-receipt__tip-note {
20010
+ color: var(--color-tooltip-meta);
20011
+ font-weight: var(--font-weight-regular);
20012
+ }
20013
+
20014
+ .crewlet-delivery-receipt__tip-values {
20015
+ display: grid;
20016
+ min-width: 0;
19943
20017
  }
19944
20018
 
19945
20019
 
@@ -25728,7 +25802,7 @@ a.crewlet-icon-btn {
25728
25802
  }
25729
25803
 
25730
25804
 
25731
- /* InlineRef-LHU6MH4I.css */
25805
+ /* InlineRef-CUBTBIYD.css */
25732
25806
  /*
25733
25807
  * A reference inside a sentence (InlineRef.tsx): a mark a little below the
25734
25808
  * text's size, then its words, in the sentence's own ink unless it is a link.
@@ -25871,7 +25945,8 @@ a.crewlet-icon-btn {
25871
25945
  overflow: hidden;
25872
25946
  }
25873
25947
 
25874
- .crewlet-inline-ref__mark--face > * {
25948
+ /* Two classes, over the face's own sentence placement (Avatar.css). */
25949
+ .crewlet-inline-ref .crewlet-inline-ref__mark--face > * {
25875
25950
  vertical-align: top;
25876
25951
  }
25877
25952
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.148.0",
3
+ "version": "0.149.0",
4
4
  "description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "clean": "rm -rf dist src/generated"
43
43
  },
44
44
  "dependencies": {
45
- "@crewlethq/icons": "0.148.0",
46
- "@crewlethq/tokens": "0.148.0",
45
+ "@crewlethq/icons": "0.149.0",
46
+ "@crewlethq/tokens": "0.149.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,64 +0,0 @@
1
- /*
2
- * Who a person's message reached and who answered, under its words; and the
3
- * same line over a composer, before the message is sent.
4
- *
5
- * ONE LINE OF TEXT: a sentence that wraps like any other, with its mark
6
- * standing at its start. It was a row of flex parts with a dot between them,
7
- * which made two facts out of one and named the seats that answered twice.
8
- */
9
- .crewlet-delivery-receipt {
10
- max-width: 100%;
11
- margin: 0;
12
- color: var(--color-text-tertiary);
13
- font-size: var(--crewlet-chat-meta);
14
- line-height: var(--font-line-height-snug);
15
- overflow-wrap: anywhere;
16
- }
17
-
18
- /* The mark stands on the sentence's first line, centred on it, a step
19
- before the words. */
20
- .crewlet-delivery-receipt__mark {
21
- display: inline-flex;
22
- vertical-align: middle;
23
- margin-inline-end: var(--spacing-1);
24
- }
25
-
26
- /* An answer lifts the line to the secondary ink, check and all. */
27
- .crewlet-delivery-receipt--answered {
28
- color: var(--color-text-secondary);
29
- }
30
-
31
- /* The one raised tone: a message nobody was asked to answer. Its mark takes
32
- the warning ink, its words the secondary ink; the hint stays quiet. */
33
- .crewlet-delivery-receipt--none {
34
- color: var(--color-text-secondary);
35
- }
36
-
37
- .crewlet-delivery-receipt--none .crewlet-delivery-receipt__mark {
38
- color: var(--color-feedback-warning-ink);
39
- }
40
-
41
- .crewlet-delivery-receipt__hint {
42
- color: var(--color-text-tertiary);
43
- }
44
-
45
- /* The names past the cap: a quiet text button in the line's own type, so the
46
- receipt keeps its register; it underlines under the pointer as a link does. */
47
- .crewlet-delivery-receipt__more {
48
- padding: 0;
49
- border: 0;
50
- border-radius: var(--radius-xs);
51
- background: none;
52
- color: var(--color-text-secondary);
53
- font: inherit;
54
- cursor: pointer;
55
- }
56
-
57
- .crewlet-delivery-receipt__more:hover {
58
- text-decoration: underline;
59
- }
60
-
61
- .crewlet-delivery-receipt__more:focus-visible {
62
- outline: 2px solid var(--color-focus);
63
- outline-offset: 2px;
64
- }
@@ -1,146 +0,0 @@
1
- import { cx } from './chunk-ODEQTPFM.js';
2
- import './ChatScale-LGESYXCO.css';
3
- import './DeliveryReceipt-BILVVNTO.css';
4
- import { useState } from 'react';
5
- import { TriangleAlertGlyph, CheckGlyph } from '@crewlethq/icons/glyphs';
6
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
-
8
- function andList(names) {
9
- if (names.length <= 1) return names[0] ?? "";
10
- return `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
11
- }
12
- var DELIVERY_RECEIPT_LABELS = {
13
- reached: (who) => /* @__PURE__ */ jsxs(Fragment, { children: [
14
- "Reached ",
15
- who
16
- ] }),
17
- reachedAnswered: (who, count) => /* @__PURE__ */ jsxs(Fragment, { children: [
18
- "Reached ",
19
- who,
20
- ", who ",
21
- count === 2 ? "both " : count > 2 ? "all " : "",
22
- "answered"
23
- ] }),
24
- partlyAnswered: (answered, waiting) => /* @__PURE__ */ jsxs(Fragment, { children: [
25
- answered,
26
- " answered, waiting on ",
27
- waiting
28
- ] }),
29
- reaches: (who) => /* @__PURE__ */ jsxs(Fragment, { children: [
30
- "Will reach ",
31
- who
32
- ] }),
33
- none: "Reached no agent",
34
- noneDraft: "Will reach no agent",
35
- list: andList,
36
- reason: (words) => `(${words})`,
37
- groups: (groups) => groups.join("; "),
38
- truncated: "Some seats were not reached",
39
- more: (count) => `and ${count} more`,
40
- fewer: "Show fewer"
41
- };
42
- function DeliveryReceipt({
43
- recipients,
44
- tense = "sent",
45
- truncated = false,
46
- hint,
47
- announce = false,
48
- max = 1,
49
- labels: overrides,
50
- className,
51
- ...rest
52
- }) {
53
- if (max !== Infinity && (!Number.isInteger(max) || max < 1)) {
54
- throw new RangeError(
55
- `DeliveryReceipt max must be a whole number of at least 1; it was ${max}`
56
- );
57
- }
58
- const [expanded, setExpanded] = useState(false);
59
- const labels = overrides ? { ...DELIVERY_RECEIPT_LABELS, ...overrides } : DELIVERY_RECEIPT_LABELS;
60
- const cap = expanded ? Infinity : max;
61
- const none = recipients.length === 0;
62
- const answered = tense === "sent" ? recipients.filter((r) => r.answered) : [];
63
- const waiting = tense === "sent" ? recipients.filter((r) => !r.answered) : recipients;
64
- let capped = false;
65
- const toggle = (count) => /* @__PURE__ */ jsx(
66
- "button",
67
- {
68
- type: "button",
69
- className: "crewlet-delivery-receipt__more",
70
- "aria-expanded": expanded,
71
- onClick: () => setExpanded((was) => !was),
72
- children: expanded ? labels.fewer : labels.more(count)
73
- }
74
- );
75
- const seats = (list, withReasons) => {
76
- const shown = list.length > cap + 1 ? list.slice(0, cap) : list;
77
- const hidden = list.length - shown.length;
78
- if (hidden > 0) capped = true;
79
- const order = [];
80
- const byReason = /* @__PURE__ */ new Map();
81
- for (const r of shown) {
82
- const key = withReasons ? r.reason ?? "" : "";
83
- const names = byReason.get(key);
84
- if (names) names.push(r.name);
85
- else {
86
- order.push(key);
87
- byReason.set(key, [r.name]);
88
- }
89
- }
90
- const words = labels.groups(
91
- order.map((key) => {
92
- const names = byReason.get(key) ?? [];
93
- const joined = hidden > 0 ? names.join(", ") : labels.list(names);
94
- return key ? `${joined} ${labels.reason(key)}` : joined;
95
- })
96
- );
97
- return hidden > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
98
- words,
99
- " ",
100
- toggle(hidden)
101
- ] }) : words;
102
- };
103
- let sentence;
104
- if (none) sentence = tense === "draft" ? labels.noneDraft : labels.none;
105
- else if (tense === "draft") sentence = labels.reaches(seats(recipients, true));
106
- else if (answered.length === 0) sentence = labels.reached(seats(recipients, true));
107
- else if (waiting.length === 0)
108
- sentence = labels.reachedAnswered(seats(recipients, true), answered.length);
109
- else sentence = labels.partlyAnswered(seats(answered, false), seats(waiting, true));
110
- const fewer = expanded && !capped ? toggle(0) : null;
111
- const after = [];
112
- if (truncated && !none) after.push({ key: "truncated", words: labels.truncated });
113
- if (none && hint)
114
- after.push({ key: "hint", className: "crewlet-delivery-receipt__hint", words: hint });
115
- const mark = none ? /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "xs" }) : answered.length > 0 ? /* @__PURE__ */ jsx(CheckGlyph, { size: "xs" }) : null;
116
- return /* @__PURE__ */ jsxs(
117
- "p",
118
- {
119
- ...rest,
120
- role: announce ? "status" : void 0,
121
- "data-tense": tense,
122
- className: cx(
123
- "crewlet-delivery-receipt",
124
- none && "crewlet-delivery-receipt--none",
125
- answered.length > 0 && "crewlet-delivery-receipt--answered",
126
- className
127
- ),
128
- children: [
129
- mark ? /* @__PURE__ */ jsx("span", { className: "crewlet-delivery-receipt__mark", "aria-hidden": "true", children: mark }) : null,
130
- /* @__PURE__ */ jsxs("span", { className: "crewlet-delivery-receipt__words", children: [
131
- sentence,
132
- fewer ? /* @__PURE__ */ jsxs(Fragment, { children: [
133
- " ",
134
- fewer
135
- ] }) : null,
136
- after.map((part) => /* @__PURE__ */ jsxs("span", { className: part.className, children: [
137
- ". ",
138
- part.words
139
- ] }, part.key))
140
- ] })
141
- ]
142
- }
143
- );
144
- }
145
-
146
- export { DELIVERY_RECEIPT_LABELS, DeliveryReceipt };
@@ -1,131 +0,0 @@
1
- import { CopyButton, copyGlyph, CopyStatus } from './chunk-TRV7VZW6.js';
2
- import { useClipboard } from './chunk-STJ7QBC3.js';
3
- import { IconButton } from './chunk-DJAYXYDZ.js';
4
- import { cx } from './chunk-ODEQTPFM.js';
5
- import './CodeBlock-LS7H6KUQ.css';
6
- import { forwardRef, useRef, useState, useLayoutEffect } from 'react';
7
- import { jsxs, jsx } from 'react/jsx-runtime';
8
-
9
- var CodeBlock = forwardRef(function CodeBlock2({
10
- code,
11
- language,
12
- filename,
13
- showLineNumbers = false,
14
- copyable = true,
15
- copyLabel,
16
- copyPlacement = "header",
17
- prompt,
18
- wrap = true,
19
- maxHeight,
20
- plain = false,
21
- selectable = false,
22
- focusWhenScrollable = false,
23
- label,
24
- className,
25
- style,
26
- ...rest
27
- }, ref) {
28
- const box = useRef(null);
29
- const body = code.replace(/\n+$/, "");
30
- const corner = !plain && copyable && copyPlacement === "corner";
31
- const showHeader = !plain && !corner && (filename !== void 0 || language !== void 0 || copyable);
32
- const perLine = showLineNumbers || prompt !== void 0;
33
- const [overflows, setOverflows] = useState(false);
34
- useLayoutEffect(() => {
35
- if (!focusWhenScrollable) return;
36
- const node = box.current;
37
- if (!node) return;
38
- const measure = () => setOverflows(node.scrollHeight > node.clientHeight || node.scrollWidth > node.clientWidth);
39
- measure();
40
- if (typeof ResizeObserver !== "function") return;
41
- const watch = new ResizeObserver(measure);
42
- watch.observe(node);
43
- return () => watch.disconnect();
44
- }, [focusWhenScrollable, body, wrap, showLineNumbers, prompt, maxHeight]);
45
- const focusable = selectable || focusWhenScrollable && overflows;
46
- const onKeyDown = (event) => {
47
- const isA = event.code === "KeyA" || !event.code && event.key.toLowerCase() === "a";
48
- if (!isA || event.altKey || event.shiftKey || !(event.metaKey || event.ctrlKey)) return;
49
- const node = box.current;
50
- const selection = window.getSelection?.();
51
- if (!node || !selection) return;
52
- event.preventDefault();
53
- selection.removeAllRanges();
54
- const range = document.createRange();
55
- range.selectNodeContents(node);
56
- selection.addRange(range);
57
- };
58
- let content = body;
59
- let digits;
60
- if (perLine) {
61
- const lines = body.split("\n");
62
- if (showLineNumbers) digits = String(lines.length).length;
63
- content = lines.map((line, index) => /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__line", children: [
64
- showLineNumbers ? /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__ln", "aria-hidden": true, children: index + 1 }) : null,
65
- prompt === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__prompt", "aria-hidden": true, children: prompt }),
66
- /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__linecontent", children: line }),
67
- index < lines.length - 1 ? "\n" : null
68
- ] }, `${index}-${line}`));
69
- }
70
- return /* @__PURE__ */ jsxs(
71
- "div",
72
- {
73
- ...rest,
74
- ref,
75
- className: cx(
76
- "crewlet-codeblock",
77
- showLineNumbers && "crewlet-codeblock--numbered",
78
- !wrap && "crewlet-codeblock--nowrap",
79
- corner && "crewlet-codeblock--corner",
80
- maxHeight !== void 0 && "crewlet-codeblock--bounded",
81
- className
82
- ),
83
- style: maxHeight === void 0 && digits === void 0 ? style : {
84
- ...style,
85
- ...maxHeight === void 0 ? null : { "--crewlet-codeblock-max-height": typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight },
86
- ...digits === void 0 ? null : { "--crewlet-codeblock-digits": String(digits) }
87
- },
88
- children: [
89
- showHeader ? /* @__PURE__ */ jsxs("div", { className: "crewlet-codeblock__header", children: [
90
- /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__meta", children: [
91
- filename === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__filename", children: filename }),
92
- language !== void 0 && filename === void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__lang", children: language }) : null
93
- ] }),
94
- copyable ? /* @__PURE__ */ jsx(CopyButton, { text: code, label: copyLabel ?? "Copy", className: "crewlet-codeblock__copy" }) : null
95
- ] }) : null,
96
- corner ? /* @__PURE__ */ jsx(CornerCopy, { text: code, label: copyLabel ?? "Copy code" }) : null,
97
- /* @__PURE__ */ jsx(
98
- "pre",
99
- {
100
- ref: box,
101
- className: "crewlet-codeblock__pre",
102
- "data-language": language,
103
- tabIndex: focusable ? 0 : void 0,
104
- role: focusable ? "region" : void 0,
105
- "aria-label": focusable ? label : void 0,
106
- onKeyDown: selectable ? onKeyDown : void 0,
107
- children: /* @__PURE__ */ jsx("code", { className: "crewlet-codeblock__code", children: content })
108
- }
109
- )
110
- ]
111
- }
112
- );
113
- });
114
- function CornerCopy({ text, label }) {
115
- const { state, attempt, copy } = useClipboard();
116
- const hint = state === "copied" ? "Copied" : state === "failed" ? "Copy failed" : label;
117
- return /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__corner", children: [
118
- /* @__PURE__ */ jsx(IconButton, { label, size: "sm", variant: "ghost", icon: copyGlyph(state), tooltip: hint, onClick: () => void copy(text) }),
119
- /* @__PURE__ */ jsx(
120
- CopyStatus,
121
- {
122
- state,
123
- attempt,
124
- copiedMessage: "copied to the clipboard",
125
- failedMessage: "the browser refused the clipboard"
126
- }
127
- )
128
- ] });
129
- }
130
-
131
- export { CodeBlock };