@crewlethq/ui 0.148.0 → 0.150.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 (273) 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 +7 -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/DurationField/DurationField.d.ts +59 -0
  51. package/dist/DurationField/index.d.ts +3 -0
  52. package/dist/DurationField/index.js +32 -0
  53. package/dist/DurationField-TJFIAUMW.css +23 -0
  54. package/dist/{Editor-PGDR7XMZ.js → Editor-FXREHINI.js} +5 -5
  55. package/dist/EmojiPicker/index.js +4 -4
  56. package/dist/EntityChip/index.js +1 -1
  57. package/dist/ErrorBoundary/index.js +3 -3
  58. package/dist/FactList/index.js +2 -2
  59. package/dist/FileDrop/index.js +3 -3
  60. package/dist/FilterPill/index.js +3 -3
  61. package/dist/FollowBanner/index.js +5 -5
  62. package/dist/Fullscreen/index.js +3 -3
  63. package/dist/GraphCanvas/index.js +6 -6
  64. package/dist/HuePicker/index.js +7 -7
  65. package/dist/IconButton/index.js +2 -2
  66. package/dist/ImageUpload/index.js +1 -1
  67. package/dist/InlineEditor/index.js +3 -3
  68. package/dist/InlineRef/index.js +1 -1
  69. package/dist/{InlineRef-LHU6MH4I.css → InlineRef-CUBTBIYD.css} +2 -1
  70. package/dist/Input/index.js +3 -3
  71. package/dist/KeyValueRows/index.js +5 -5
  72. package/dist/LinkInterstitial/index.js +6 -6
  73. package/dist/ListDetail/index.js +3 -3
  74. package/dist/ListInput/index.js +5 -5
  75. package/dist/LogoSlot/index.js +4 -4
  76. package/dist/MarkdownEditor/index.js +7 -7
  77. package/dist/MemberPicker/index.js +5 -5
  78. package/dist/Menu/index.js +4 -4
  79. package/dist/MergeConflicts/index.js +7 -7
  80. package/dist/MessageActions/index.js +5 -5
  81. package/dist/Modal/index.js +4 -4
  82. package/dist/NoticeList/index.js +3 -3
  83. package/dist/NumberField/NumberField.d.ts +56 -0
  84. package/dist/NumberField/index.d.ts +3 -0
  85. package/dist/NumberField/index.js +29 -0
  86. package/dist/NumberField-G7H4VNZP.css +30 -0
  87. package/dist/OpenInAppCard/index.js +4 -4
  88. package/dist/OrgLabel/index.js +1 -1
  89. package/dist/OrgNode/index.js +1 -1
  90. package/dist/OrgTable/index.js +10 -9
  91. package/dist/PeekRail/index.js +4 -4
  92. package/dist/PeopleRail/index.js +5 -5
  93. package/dist/PinTile/index.js +3 -3
  94. package/dist/PresenceStack/index.js +1 -1
  95. package/dist/PresenterView/index.js +5 -5
  96. package/dist/PresetChips/PresetChips.d.ts +27 -0
  97. package/dist/PresetChips/index.d.ts +2 -0
  98. package/dist/PresetChips/index.js +21 -0
  99. package/dist/Principal/index.js +1 -1
  100. package/dist/PrincipalPicker/index.js +6 -6
  101. package/dist/ProposalCard/index.js +8 -8
  102. package/dist/RailList/index.js +5 -5
  103. package/dist/ReactionBar/index.js +5 -5
  104. package/dist/ReceiptStrip/index.js +3 -3
  105. package/dist/ResultTableCard/index.js +4 -4
  106. package/dist/RichEditor/index.js +5 -5
  107. package/dist/SandboxedFrame/index.js +5 -5
  108. package/dist/SectionFrame/index.js +4 -4
  109. package/dist/SegmentedControl/index.js +6 -6
  110. package/dist/SelectionBar/index.js +3 -3
  111. package/dist/SendButton/index.js +3 -3
  112. package/dist/SettingForm/SettingForm.d.ts +50 -0
  113. package/dist/SettingForm/index.d.ts +3 -0
  114. package/dist/SettingForm/index.js +20 -0
  115. package/dist/SettingForm-ODVZZ7JZ.css +30 -0
  116. package/dist/SettingsTable/SettingsTable.d.ts +47 -34
  117. package/dist/SettingsTable/index.d.ts +3 -2
  118. package/dist/SettingsTable/index.js +7 -5
  119. package/dist/SettingsTable-KAMWVCQB.css +169 -0
  120. package/dist/ShareDialog/index.js +9 -9
  121. package/dist/SheetColumnEditor/index.js +11 -11
  122. package/dist/SheetGrid/index.js +7 -7
  123. package/dist/SidePanel/index.js +3 -3
  124. package/dist/SidebarNav/index.js +3 -3
  125. package/dist/SlideCompare/index.js +3 -3
  126. package/dist/SlideFilmstrip/index.js +5 -5
  127. package/dist/SlideNav/index.js +3 -3
  128. package/dist/StatusLine/index.js +2 -2
  129. package/dist/Switcher/index.js +6 -6
  130. package/dist/TableCells/index.js +1 -1
  131. package/dist/Tabs/index.js +5 -5
  132. package/dist/TagsInput/index.js +3 -3
  133. package/dist/ThemeSwitcher/index.js +7 -7
  134. package/dist/ThemeToggle/index.js +3 -3
  135. package/dist/ThreadSummary/index.js +2 -2
  136. package/dist/TimeRangePicker/index.js +10 -10
  137. package/dist/TimeWindowPicker/index.js +5 -5
  138. package/dist/Tooltip/Tooltip.d.ts +8 -1
  139. package/dist/Tooltip/index.js +1 -1
  140. package/dist/TreeCanvas/index.js +5 -5
  141. package/dist/TreeGrid/index.js +8 -7
  142. package/dist/ValueField/index.js +5 -5
  143. package/dist/VersionCompare/index.js +7 -7
  144. package/dist/VersionTimeline/index.js +4 -4
  145. package/dist/WorkingLine/index.js +2 -2
  146. package/dist/{chunk-CYRGASHY.js → chunk-27NS67UI.js} +2 -2
  147. package/dist/{chunk-2RJFKMTX.js → chunk-27ZF7D3C.js} +2 -2
  148. package/dist/chunk-2EPEVS2M.js +158 -0
  149. package/dist/{chunk-SPCNQUEU.js → chunk-2PSOUDCS.js} +1 -1
  150. package/dist/{chunk-IEM64WYC.js → chunk-2QPELDAA.js} +2 -2
  151. package/dist/{chunk-RG6XQJ74.js → chunk-2W2KAF7D.js} +1 -1
  152. package/dist/{chunk-CLEQII3E.js → chunk-3EL3IF3W.js} +1 -1
  153. package/dist/{chunk-2Z5SMA7Q.js → chunk-3OZPHFDT.js} +1 -1
  154. package/dist/{chunk-BXP6WDKR.js → chunk-3Q5USPLM.js} +2 -2
  155. package/dist/{chunk-YLOADTDS.js → chunk-3RLOH5AR.js} +1 -1
  156. package/dist/{chunk-IAER2ZMS.js → chunk-4DUK2TC4.js} +1 -1
  157. package/dist/{chunk-T7J2U3IN.js → chunk-4LNSURYZ.js} +1 -1
  158. package/dist/{chunk-WTRAMP4V.js → chunk-5ORAUELE.js} +3 -3
  159. package/dist/chunk-6QWSGM4W.js +21 -0
  160. package/dist/{chunk-VXSCGB2L.js → chunk-6RBE5RVG.js} +2 -2
  161. package/dist/{chunk-7UN7ICUE.js → chunk-733FZXNS.js} +2 -2
  162. package/dist/{chunk-UOVEN5RY.js → chunk-7C6NHVMX.js} +5 -5
  163. package/dist/{chunk-RIAEOKY7.js → chunk-7CVV3DQC.js} +1 -1
  164. package/dist/{chunk-RJZO5NQW.js → chunk-7FY7L6WD.js} +2 -2
  165. package/dist/{chunk-OU4P4E3U.js → chunk-7J2RIAZ4.js} +1 -1
  166. package/dist/{chunk-BPCXMQMB.js → chunk-7MAU74EI.js} +1 -1
  167. package/dist/{chunk-UJETUDIL.js → chunk-7PK2Z5JY.js} +2 -2
  168. package/dist/{chunk-SSRQLPGT.js → chunk-7SXCCVUR.js} +2 -2
  169. package/dist/{chunk-RMGAZEEX.js → chunk-7WXLPNZF.js} +1 -1
  170. package/dist/{chunk-MMJYDMGL.js → chunk-AH7R777J.js} +2 -2
  171. package/dist/{chunk-5L4ZSNGP.js → chunk-AU4EKD2G.js} +1 -1
  172. package/dist/{chunk-PDGXQBFS.js → chunk-BFZAGIXR.js} +3 -1
  173. package/dist/{chunk-QNN4OYLU.js → chunk-BJE7TPO6.js} +2 -2
  174. package/dist/chunk-BQMDD2FD.js +224 -0
  175. package/dist/{chunk-TYCICVST.js → chunk-BRMJPZC4.js} +1 -1
  176. package/dist/{chunk-EZG3SRSM.js → chunk-CA62YCFK.js} +1 -1
  177. package/dist/{chunk-JXLFC5BX.js → chunk-CC5NUAOF.js} +1 -1
  178. package/dist/{chunk-74B3HREV.js → chunk-CJGLMT44.js} +1 -1
  179. package/dist/{chunk-TCQIJ2VO.js → chunk-CRGYWLP6.js} +1 -1
  180. package/dist/{chunk-2UEMCSVB.js → chunk-CXJMWEZC.js} +1 -1
  181. package/dist/{chunk-HHCD55D3.js → chunk-D33K2BCZ.js} +1 -1
  182. package/dist/chunk-DDGHRDGV.js +134 -0
  183. package/dist/{chunk-SNKLBPXQ.js → chunk-DGB7R42F.js} +1 -1
  184. package/dist/{chunk-GYVL23ZK.js → chunk-DLYYW77C.js} +1 -1
  185. package/dist/{chunk-7VE7SOH6.js → chunk-E3JUS3CR.js} +1 -1
  186. package/dist/{chunk-X2R3GWCB.js → chunk-ECHQLOWI.js} +2 -2
  187. package/dist/{chunk-QA774VCH.js → chunk-ECYA6XZL.js} +1 -1
  188. package/dist/{chunk-QDVXEQJC.js → chunk-EDQHZOU3.js} +3 -3
  189. package/dist/{chunk-HLCQHRHJ.js → chunk-EO64FXVL.js} +1 -1
  190. package/dist/{chunk-BXGFDSC7.js → chunk-F6OYNO7O.js} +3 -3
  191. package/dist/{chunk-U62CXJPE.js → chunk-FCRJAFTU.js} +7 -7
  192. package/dist/{chunk-LO3CTXQI.js → chunk-FMKQSDBQ.js} +3 -3
  193. package/dist/{chunk-4DJONKYN.js → chunk-FYVV6GJN.js} +1 -1
  194. package/dist/{chunk-D7XI5DN5.js → chunk-GMXOZEF5.js} +1 -1
  195. package/dist/{chunk-3HY3KHMR.js → chunk-GR6XGA5V.js} +2 -2
  196. package/dist/{chunk-R4H352IB.js → chunk-HHTAGV5R.js} +1 -1
  197. package/dist/{chunk-EVOLZQTB.js → chunk-HIDOUXLD.js} +1 -1
  198. package/dist/{chunk-CMLRFHBD.js → chunk-HJ6ZY4UX.js} +2 -2
  199. package/dist/chunk-HU56GCZ7.js +198 -0
  200. package/dist/{chunk-F37ZBF4D.js → chunk-HYUO2RHC.js} +1 -1
  201. package/dist/{chunk-QGDQ5YDC.js → chunk-IMF3CPTY.js} +2 -2
  202. package/dist/{chunk-TRV7VZW6.js → chunk-IRGS5FEC.js} +1 -1
  203. package/dist/{chunk-P67SLIPX.js → chunk-IRLHICS4.js} +2 -2
  204. package/dist/{chunk-HDJMTHAP.js → chunk-IZH5DCOQ.js} +1 -1
  205. package/dist/{chunk-3ZJ6X3ZJ.js → chunk-JD5K6Y7Q.js} +3 -3
  206. package/dist/{chunk-7R77GFUO.js → chunk-JNDZGQGS.js} +2 -2
  207. package/dist/{chunk-DJAYXYDZ.js → chunk-KM5OKCW6.js} +2 -2
  208. package/dist/{chunk-NDZEN2ON.js → chunk-KQUENZR3.js} +1 -1
  209. package/dist/{chunk-PD3RJT3F.js → chunk-LDSLEEWR.js} +3 -3
  210. package/dist/{chunk-MCZJ2SD7.js → chunk-LZ3TKYAY.js} +2 -2
  211. package/dist/{chunk-LDVZYLA6.js → chunk-M2USLODI.js} +2 -2
  212. package/dist/{chunk-VGAZHT6S.js → chunk-M4VA76JF.js} +6 -6
  213. package/dist/{chunk-5Y3BFCGM.js → chunk-MUBJN75T.js} +5 -5
  214. package/dist/{chunk-5B5N4X5H.js → chunk-N3LAAA4R.js} +3 -3
  215. package/dist/{chunk-RVFSUF7V.js → chunk-N3R2POGO.js} +3 -3
  216. package/dist/chunk-NG6GEBSJ.js +53 -0
  217. package/dist/chunk-NZHWGKPW.js +334 -0
  218. package/dist/{chunk-XIJU47UT.js → chunk-O2J5PSWI.js} +2 -2
  219. package/dist/{chunk-R75TTEHL.js → chunk-OAD4AXYJ.js} +1 -1
  220. package/dist/{chunk-ZCA3JNQS.js → chunk-ODN3LSYW.js} +1 -1
  221. package/dist/{chunk-BKHS6YPM.js → chunk-OMVGWZ3V.js} +1 -1
  222. package/dist/chunk-OX332RI7.js +127 -0
  223. package/dist/{chunk-ETVXKUW7.js → chunk-PW6QXVIX.js} +3 -3
  224. package/dist/{chunk-N37AX25G.js → chunk-Q3SHCEXN.js} +7 -196
  225. package/dist/{chunk-PGLRFPYY.js → chunk-Q7RI66TT.js} +4 -4
  226. package/dist/{chunk-FYN2HXEB.js → chunk-QRUQOITJ.js} +1 -1
  227. package/dist/{chunk-XNTYJAHL.js → chunk-QULAFXL3.js} +1 -1
  228. package/dist/{chunk-QO76JNSB.js → chunk-R2RHSKAT.js} +3 -3
  229. package/dist/{chunk-V2K6EHJA.js → chunk-RNVPYDRQ.js} +1 -1
  230. package/dist/{chunk-QPAUKLNC.js → chunk-RUKSDKG5.js} +4 -3
  231. package/dist/{chunk-WGSIKYDE.js → chunk-RUNZWWN6.js} +5 -5
  232. package/dist/{chunk-QNG5MH7P.js → chunk-RXHY5T2Z.js} +2 -2
  233. package/dist/{chunk-Z3GOZ42N.js → chunk-S4ADDFRT.js} +3 -3
  234. package/dist/{chunk-EFTWYGN5.js → chunk-TBOVJ7RL.js} +1 -1
  235. package/dist/{chunk-ZPJX57QO.js → chunk-TPABM6DW.js} +2 -2
  236. package/dist/{chunk-ACXYNJZR.js → chunk-TSLXQVBC.js} +1 -1
  237. package/dist/{chunk-WK3OWTOD.js → chunk-TTUFOH2Y.js} +1 -1
  238. package/dist/{chunk-LHGDKWHV.js → chunk-U3ZUZ7VU.js} +3 -3
  239. package/dist/{chunk-X4QL7STV.js → chunk-UEO3A76N.js} +1 -1
  240. package/dist/{chunk-LILN66O3.js → chunk-V4CGY2CI.js} +1 -1
  241. package/dist/{chunk-PY3PKWAN.js → chunk-V67VL3WD.js} +1 -1
  242. package/dist/{chunk-JLWCONCZ.js → chunk-VARFEAUH.js} +5 -5
  243. package/dist/{chunk-OL42IZ6I.js → chunk-VFC7KVCW.js} +1 -1
  244. package/dist/{chunk-HTWN4IJJ.js → chunk-W2T7RGH7.js} +2 -2
  245. package/dist/{chunk-3FBJACLW.js → chunk-WAF36OFS.js} +5 -5
  246. package/dist/{chunk-EILMLMSG.js → chunk-WOHPQEBZ.js} +1 -1
  247. package/dist/{chunk-QWDTC2UI.js → chunk-WSKVFRKK.js} +1 -1
  248. package/dist/{chunk-TAOVSH32.js → chunk-X5ZUDJNK.js} +1 -1
  249. package/dist/{chunk-CNEHTSA5.js → chunk-XJU53WMW.js} +1 -1
  250. package/dist/{chunk-VGYVCLN4.js → chunk-XQMRSL7Z.js} +1 -1
  251. package/dist/{chunk-UC4YASMJ.js → chunk-YMBXTGFC.js} +2 -2
  252. package/dist/{chunk-VWEF6LTZ.js → chunk-YOCTDR2P.js} +1 -1
  253. package/dist/{chunk-H4OV6SYF.js → chunk-YRNIPS4M.js} +2 -2
  254. package/dist/{chunk-2BIGA4VD.js → chunk-YWPUT6JQ.js} +2 -2
  255. package/dist/{chunk-5DYNF5U2.js → chunk-Z6HWOPI7.js} +1 -1
  256. package/dist/{chunk-DQ3MKG7I.js → chunk-Z6OZNSHF.js} +1 -1
  257. package/dist/{chunk-PRNJO37A.js → chunk-Z7BA2EVV.js} +2 -2
  258. package/dist/{chunk-YKM3HCDL.js → chunk-ZAQ7CEYN.js} +2 -2
  259. package/dist/{chunk-WYO5KDET.js → chunk-ZC73GPA3.js} +1 -1
  260. package/dist/{chunk-SQHDMVU7.js → chunk-ZFSKRN6D.js} +1 -1
  261. package/dist/{chunk-4DKECHWE.js → chunk-ZMZNKDPO.js} +4 -4
  262. package/dist/{chunk-2FAEKL36.js → chunk-ZNEMXLTY.js} +1 -1
  263. package/dist/generated/index.d.ts +4 -0
  264. package/dist/generated/index.js +153 -148
  265. package/dist/index.js +153 -148
  266. package/dist/styles.css +286 -132
  267. package/package.json +3 -3
  268. package/dist/DeliveryReceipt-BILVVNTO.css +0 -64
  269. package/dist/SettingsTable-MTZJTKA6.css +0 -182
  270. package/dist/chunk-GTNXDLYH.js +0 -146
  271. package/dist/chunk-L6E4DVIF.js +0 -131
  272. package/dist/chunk-TNYRJVKE.js +0 -94
  273. /package/dist/{chunk-II7TPQ64.js → chunk-2DASEYUG.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { Tooltip } from './chunk-PDGXQBFS.js';
1
+ import { Tooltip } from './chunk-BFZAGIXR.js';
2
2
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './FactList-QEOHLHX3.css';
@@ -1,9 +1,9 @@
1
1
  import { Select } from './chunk-657WR3MX.js';
2
2
  import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
3
3
  import { Popover } from './chunk-AJFA2XDQ.js';
4
- import { Input } from './chunk-VGYVCLN4.js';
5
- import { Button } from './chunk-QGDQ5YDC.js';
6
- import { IconButton } from './chunk-DJAYXYDZ.js';
4
+ import { Input } from './chunk-XQMRSL7Z.js';
5
+ import { Button } from './chunk-IMF3CPTY.js';
6
+ import { IconButton } from './chunk-KM5OKCW6.js';
7
7
  import { isComposing } from './chunk-EDPMHSLZ.js';
8
8
  import { useFocusModality } from './chunk-4ITETIGZ.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,16 +1,16 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
- import { FilterPill } from './chunk-EFTWYGN5.js';
3
- import { DataTable } from './chunk-3FBJACLW.js';
4
- import { DateTimePicker } from './chunk-SSRQLPGT.js';
2
+ import { FilterPill } from './chunk-TBOVJ7RL.js';
3
+ import { DataTable } from './chunk-WAF36OFS.js';
4
+ import { DateTimePicker } from './chunk-7SXCCVUR.js';
5
5
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
6
6
  import { Toolbar } from './chunk-NPEI2QAN.js';
7
7
  import { Popover } from './chunk-AJFA2XDQ.js';
8
8
  import { RelativeTime } from './chunk-GBKBME7Q.js';
9
- import { Menu } from './chunk-4DKECHWE.js';
10
- import { Input } from './chunk-VGYVCLN4.js';
9
+ import { Menu } from './chunk-ZMZNKDPO.js';
10
+ import { Input } from './chunk-XQMRSL7Z.js';
11
11
  import { Kbd } from './chunk-VBBLHS2Y.js';
12
- import { Button } from './chunk-QGDQ5YDC.js';
13
- import { IconButton } from './chunk-DJAYXYDZ.js';
12
+ import { Button } from './chunk-IMF3CPTY.js';
13
+ import { IconButton } from './chunk-KM5OKCW6.js';
14
14
  import { Count } from './chunk-Y5CMDLQM.js';
15
15
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
16
16
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,8 +1,8 @@
1
- import { emojiName } from './chunk-UC4YASMJ.js';
1
+ import { emojiName } from './chunk-YMBXTGFC.js';
2
2
  import { Toolbar } from './chunk-NPEI2QAN.js';
3
- import { IconButton } from './chunk-DJAYXYDZ.js';
3
+ import { IconButton } from './chunk-KM5OKCW6.js';
4
4
  import { heldHint } from './chunk-TDFLCUBE.js';
5
- import { Tooltip } from './chunk-PDGXQBFS.js';
5
+ import { Tooltip } from './chunk-BFZAGIXR.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './ChatScale-LGESYXCO.css';
8
8
  import './MessageActions-Y2IXY24H.css';
@@ -1,4 +1,4 @@
1
- import { InlineRef } from './chunk-ACXYNJZR.js';
1
+ import { InlineRef } from './chunk-TSLXQVBC.js';
2
2
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
3
3
  import { LayersGlyph } from '@crewlethq/icons/glyphs';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { tabId } from './chunk-CNEHTSA5.js';
1
+ import { tabId } from './chunk-XJU53WMW.js';
2
2
  import { useRoving, tabStop } from './chunk-7F3OPUM5.js';
3
3
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
4
4
  import { Count } from './chunk-Y5CMDLQM.js';
@@ -1,7 +1,7 @@
1
- import { copyGlyph, CopyStatus } from './chunk-TRV7VZW6.js';
1
+ import { copyGlyph, CopyStatus } from './chunk-IRGS5FEC.js';
2
2
  import { useClipboard } from './chunk-STJ7QBC3.js';
3
3
  import { pathBreaks } from './chunk-HZXS5CEL.js';
4
- import { IconButton } from './chunk-DJAYXYDZ.js';
4
+ import { IconButton } from './chunk-KM5OKCW6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './Copyable-U4RPG75T.css';
7
7
  import { useCallback } from 'react';
@@ -1,5 +1,5 @@
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-3ZJ6X3ZJ.js';
2
+ import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-JD5K6Y7Q.js';
3
3
  import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
4
4
  import { focusables } from './chunk-EDPMHSLZ.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { SidePanelBase, SidePanelFrameBase } from './chunk-SNKLBPXQ.js';
1
+ import { SidePanelBase, SidePanelFrameBase } from './chunk-DGB7R42F.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './HitArea-QUOS6ZDJ.css';
4
4
  import './ResizeHandle-W6GA5OO6.css';
@@ -1,5 +1,5 @@
1
- import { Callout } from './chunk-X4QL7STV.js';
2
- import { Button } from './chunk-QGDQ5YDC.js';
1
+ import { Callout } from './chunk-UEO3A76N.js';
2
+ import { Button } from './chunk-IMF3CPTY.js';
3
3
  import { isComposing } from './chunk-EDPMHSLZ.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import { useEffect } from 'react';
@@ -0,0 +1,198 @@
1
+ import { titleWhenCut, titleIfCut } from './chunk-WSIJDWUG.js';
2
+ import { Button } from './chunk-IMF3CPTY.js';
3
+ import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
+ import { cx } from './chunk-ODEQTPFM.js';
5
+ import { ArrowDownGlyph, ArrowUpGlyph, ArrowUpDownGlyph } from '@crewlethq/icons/glyphs';
6
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
+
8
+ // src/utils/tableTrack.ts
9
+ var SHORT_COLUMN_PX = 192;
10
+ var SHRINK_SHARE = 0.2;
11
+ function tableTrack({ width, shrink, floor, short }) {
12
+ if (width) return width;
13
+ if (shrink) return `fit-content(${SHRINK_SHARE * 100}%)`;
14
+ if (short) return floor === "max-content" || !floor ? "max-content" : `minmax(${floor}, max-content)`;
15
+ return `minmax(${floor ?? 0}, 1fr)`;
16
+ }
17
+ var GRID_ICON_TRACK = "calc(var(--size-target-min) + var(--spacing-3) * 2)";
18
+ function alignOf(column) {
19
+ return column.align ?? (column.icon ? "center" : "left");
20
+ }
21
+ function headerWord(column) {
22
+ return typeof column.header === "string" ? column.header : "";
23
+ }
24
+ function columnName(column) {
25
+ return headerWord(column) || column.label || column.key;
26
+ }
27
+ function parseGridSort(raw) {
28
+ if (!raw) return null;
29
+ return raw.startsWith("-") ? { key: raw.slice(1), desc: true } : { key: raw, desc: false };
30
+ }
31
+ function nextGridSort(column, sort, defaultSort = "") {
32
+ const chosen = sort === defaultSort ? "" : sort;
33
+ const current = parseGridSort(chosen || defaultSort);
34
+ let next;
35
+ if (current?.key !== column) next = column;
36
+ else if (!current.desc) next = `-${column}`;
37
+ else next = chosen ? "" : column;
38
+ return next === defaultSort ? "" : next;
39
+ }
40
+ function compare(a, b) {
41
+ if (typeof a === "number" && typeof b === "number") {
42
+ if (Number.isNaN(a)) return Number.isNaN(b) ? 0 : 1;
43
+ if (Number.isNaN(b)) return -1;
44
+ return a < b ? -1 : a > b ? 1 : 0;
45
+ }
46
+ return String(a).localeCompare(String(b), void 0, { numeric: true, sensitivity: "base" });
47
+ }
48
+ function sortByValue(items, get, desc) {
49
+ return [...items].sort((a, b) => {
50
+ const av = get(a);
51
+ const bv = get(b);
52
+ if (av == null && bv == null) return 0;
53
+ if (av == null) return 1;
54
+ if (bv == null) return -1;
55
+ const cmp = compare(av, bv);
56
+ return desc ? -cmp : cmp;
57
+ });
58
+ }
59
+ var GRID_FOOT_LABELS = {
60
+ hiddenToFit: (names) => `Hidden to fit: ${names}`,
61
+ loadMore: "Load more",
62
+ showEveryColumn: "Show every column",
63
+ and: "and"
64
+ };
65
+ function droppedNames(columns, dropped, and) {
66
+ const names = dropped.map((key) => {
67
+ const c = columns.find((col) => col.key === key);
68
+ return c ? columnName(c) : key;
69
+ });
70
+ return names.length <= 1 ? names[0] ?? "" : `${names.slice(0, -1).join(", ")} ${and} ${names[names.length - 1]}`;
71
+ }
72
+ function GridHeadCell({
73
+ column,
74
+ sort,
75
+ sortable,
76
+ onSort,
77
+ hidden = false,
78
+ colIndex,
79
+ actionsLabel
80
+ }) {
81
+ const align = alignOf(column);
82
+ const sorted = sort?.key === column.key;
83
+ const headClass = cx(
84
+ "crewlet-data-grid__th",
85
+ align !== "left" && `crewlet-data-grid__th--${align}`,
86
+ column.icon && "crewlet-data-grid__th--icon",
87
+ column.shrink && "crewlet-data-grid__th--shrink",
88
+ sorted && "crewlet-data-grid__th--sorted",
89
+ !sortable && "crewlet-data-grid__th--plain"
90
+ );
91
+ const worded = column.header !== "" && column.header !== null && column.header !== void 0;
92
+ const label = !worded ? null : hidden ? /* @__PURE__ */ jsx(VisuallyHidden, { children: column.header }) : /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__truncate", onMouseEnter: titleWhenCut, children: column.header });
93
+ const arrow = sorted ? sort?.desc ? /* @__PURE__ */ jsx(ArrowDownGlyph, { size: "xs" }) : /* @__PURE__ */ jsx(ArrowUpGlyph, { size: "xs" }) : sortable ? /* @__PURE__ */ jsx(ArrowUpDownGlyph, { size: "xs" }) : null;
94
+ const ariaSort = sorted ? sort?.desc ? "descending" : "ascending" : void 0;
95
+ const mark = arrow && /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__sort-mark", "aria-hidden": "true", children: arrow });
96
+ if (!sortable) {
97
+ const word = headerWord(column);
98
+ const glyph = !word && !column.action ? column.label : void 0;
99
+ const named = word ? void 0 : glyph ?? (column.action && !worded ? column.label ?? actionsLabel : void 0);
100
+ return /* @__PURE__ */ jsxs("div", { className: headClass, role: "columnheader", "aria-colindex": colIndex, title: glyph, "aria-sort": ariaSort, children: [
101
+ label,
102
+ mark,
103
+ named && /* @__PURE__ */ jsx(VisuallyHidden, { children: named })
104
+ ] });
105
+ }
106
+ return /* @__PURE__ */ jsx("div", { className: headClass, role: "columnheader", "aria-colindex": colIndex, "aria-sort": ariaSort, children: /* @__PURE__ */ jsxs(
107
+ "button",
108
+ {
109
+ type: "button",
110
+ className: "crewlet-data-grid__sort",
111
+ onClick: onSort,
112
+ "aria-label": headerWord(column) ? void 0 : column.label,
113
+ children: [
114
+ label,
115
+ mark
116
+ ]
117
+ }
118
+ ) });
119
+ }
120
+ function GridFoot({ footer, dropped, loadedNote, onLoadMore, onReset, labels, columns }) {
121
+ const shows = Boolean(footer) || Boolean(onLoadMore) || Boolean(loadedNote) || dropped !== "";
122
+ if (!shows && !onReset) return null;
123
+ const table = columns !== void 0;
124
+ const cell = (className, children) => table ? /* @__PURE__ */ jsx("div", { role: "cell", "aria-colspan": columns, className, children }) : /* @__PURE__ */ jsx("div", { className, children });
125
+ return /* @__PURE__ */ jsxs("div", { role: table ? "rowgroup" : void 0, className: "crewlet-data-grid__foot-group", children: [
126
+ shows && /* @__PURE__ */ jsx("div", { role: table ? "row" : void 0, className: "crewlet-data-grid__foot", children: cell(
127
+ "crewlet-data-grid__foot-cell",
128
+ /* @__PURE__ */ jsxs(Fragment, { children: [
129
+ footer,
130
+ /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__foot-spacer", "aria-hidden": "true" }),
131
+ dropped !== "" && /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__note", children: labels.hiddenToFit(dropped) }),
132
+ loadedNote && /* @__PURE__ */ jsx("span", { className: "crewlet-data-grid__note", children: loadedNote }),
133
+ onLoadMore && /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", onClick: onLoadMore, children: labels.loadMore })
134
+ ] })
135
+ ) }),
136
+ onReset && /* @__PURE__ */ jsx("div", { role: table ? "row" : void 0, className: "crewlet-data-grid__reset", children: cell(
137
+ "crewlet-data-grid__reset-cell",
138
+ /* @__PURE__ */ jsx("button", { type: "button", className: "crewlet-data-grid__cols-reset", onClick: onReset, children: labels.showEveryColumn })
139
+ ) })
140
+ ] });
141
+ }
142
+ var CUT = ".crewlet-data-grid__truncate, .crewlet-table-cell__truncate, .crewlet-text--truncate";
143
+ function titleBeneath(link, x, y) {
144
+ const row = link.closest('[role="row"]');
145
+ if (!row || typeof document.elementsFromPoint !== "function") return null;
146
+ const under = document.elementsFromPoint(x, y).find((el) => el !== link && row.contains(el) && el !== row);
147
+ if (!under) return null;
148
+ const titled = under.closest("[title]");
149
+ const own = titled && row.contains(titled) && titled !== row ? titled : null;
150
+ if (own && !own.matches(CUT)) return own.getAttribute("title");
151
+ const cut = under.closest(CUT);
152
+ if (cut && row.contains(cut)) {
153
+ titleIfCut(cut);
154
+ return cut.getAttribute("title");
155
+ }
156
+ return own?.getAttribute("title") ?? null;
157
+ }
158
+ var rowLinkTitle = {
159
+ onMouseMove: (event) => {
160
+ const title = titleBeneath(event.currentTarget, event.clientX, event.clientY);
161
+ if (title) event.currentTarget.setAttribute("title", title);
162
+ else event.currentTarget.removeAttribute("title");
163
+ },
164
+ onMouseLeave: (event) => event.currentTarget.removeAttribute("title")
165
+ };
166
+ var SQUEEZE_SAMPLE_ROWS = 12;
167
+ function overrunning(box, head) {
168
+ const last = head?.lastElementChild;
169
+ if (!last) return false;
170
+ const inner = box.getBoundingClientRect().left + box.clientLeft + box.clientWidth;
171
+ return last.getBoundingClientRect().right > inner + 0.5;
172
+ }
173
+ function cutShort(el) {
174
+ for (const node of [el, ...el.querySelectorAll("*")]) {
175
+ const box = node;
176
+ if (box.clientWidth > 1 && box.scrollWidth > box.clientWidth + 1) return true;
177
+ }
178
+ return false;
179
+ }
180
+ function squeezedCells(width, heads, rows, cellsOf, visible, leading = 0) {
181
+ const cap = width * SHRINK_SHARE - 1;
182
+ const sample = rows.slice(0, SQUEEZE_SAMPLE_ROWS);
183
+ let headCut = false;
184
+ for (let i = 0; i < visible.length; i++) {
185
+ const column = visible[i];
186
+ if (!column.shrink || column.width || column.icon) continue;
187
+ const head = heads[i + leading];
188
+ if (!head || head.getBoundingClientRect().width >= cap) continue;
189
+ if (cutShort(head)) headCut = true;
190
+ for (const row of sample) {
191
+ const cell = cellsOf(row)[i + leading];
192
+ if (cell && cutShort(cell)) return "values";
193
+ }
194
+ }
195
+ return headCut ? "heads" : null;
196
+ }
197
+
198
+ export { GRID_FOOT_LABELS, GRID_ICON_TRACK, GridFoot, GridHeadCell, SHORT_COLUMN_PX, alignOf, droppedNames, headerWord, nextGridSort, overrunning, parseGridSort, rowLinkTitle, sortByValue, squeezedCells, tableTrack };
@@ -1,4 +1,4 @@
1
- import { IconButton } from './chunk-DJAYXYDZ.js';
1
+ import { IconButton } from './chunk-KM5OKCW6.js';
2
2
  import { MinimizeGlyph, MaximizeGlyph } from '@crewlethq/icons/glyphs';
3
3
  import { useState, useEffect, useCallback } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import { Spinner } from './chunk-XSPCITPN.js';
2
2
  import { heldHint } from './chunk-TDFLCUBE.js';
3
- import { Tooltip } from './chunk-PDGXQBFS.js';
3
+ import { Tooltip } from './chunk-BFZAGIXR.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './Button-ODH5JR7N.css';
@@ -95,7 +95,7 @@ var Button = forwardRef(function Button2({
95
95
  }
96
96
  );
97
97
  return /* @__PURE__ */ jsxs(Fragment, { children: [
98
- tip ? /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: tip }), pressOpens: disabledReason !== void 0, children: button }) : button,
98
+ tip ? /* @__PURE__ */ jsx(Tooltip, { content: tip, describes: false, pressOpens: disabledReason !== void 0, children: button }) : button,
99
99
  disabledReason === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason })
100
100
  ] });
101
101
  });
@@ -1,5 +1,5 @@
1
1
  import { useClipboard } from './chunk-STJ7QBC3.js';
2
- import { Button } from './chunk-QGDQ5YDC.js';
2
+ import { Button } from './chunk-IMF3CPTY.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { useCallback } from 'react';
5
5
  import { CheckGlyph, CircleAlertGlyph, CopyGlyph } from '@crewlethq/icons/glyphs';
@@ -1,7 +1,7 @@
1
1
  import { useMeasuredSizes, isTypeAheadKey, typeAheadBuffer } from './chunk-MY374UUD.js';
2
- import { FullscreenToggle } from './chunk-F37ZBF4D.js';
2
+ import { FullscreenToggle } from './chunk-HYUO2RHC.js';
3
3
  import { FilterChip } from './chunk-L6HUVA33.js';
4
- import { CANVAS_FIT_PADDING, Canvas } from './chunk-3ZJ6X3ZJ.js';
4
+ import { CANVAS_FIT_PADDING, Canvas } from './chunk-JD5K6Y7Q.js';
5
5
  import { Text } from './chunk-475DOAWF.js';
6
6
  import { LayerHost } from './chunk-AVJKMQXK.js';
7
7
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,5 +1,5 @@
1
1
  import { Table } from './chunk-YGN4SBNP.js';
2
- import { DownloadButton } from './chunk-OL42IZ6I.js';
2
+ import { DownloadButton } from './chunk-VFC7KVCW.js';
3
3
  import { StatusCard } from './chunk-NWKH5FF7.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ResultTableCard-AP355LQM.css';
@@ -1,8 +1,8 @@
1
1
  import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
2
2
  import { Kbd } from './chunk-VBBLHS2Y.js';
3
- import { Button } from './chunk-QGDQ5YDC.js';
4
- import { IconButton } from './chunk-DJAYXYDZ.js';
5
- import { Tooltip } from './chunk-PDGXQBFS.js';
3
+ import { Button } from './chunk-IMF3CPTY.js';
4
+ import { IconButton } from './chunk-KM5OKCW6.js';
5
+ import { Tooltip } from './chunk-BFZAGIXR.js';
6
6
  import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-AVJKMQXK.js';
7
7
  import { returnFocus } from './chunk-4ITETIGZ.js';
8
8
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,7 +1,7 @@
1
1
  import { useAppShellPeek } from './chunk-MBEZOURR.js';
2
2
  import { ResizeHandle } from './chunk-FQ6J4DK7.js';
3
- import { ButtonLink } from './chunk-QGDQ5YDC.js';
4
- import { IconButton } from './chunk-DJAYXYDZ.js';
3
+ import { ButtonLink } from './chunk-IMF3CPTY.js';
4
+ import { IconButton } from './chunk-KM5OKCW6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './HitArea-QUOS6ZDJ.css';
7
7
  import './ResizeHandle-W6GA5OO6.css';
@@ -1,5 +1,5 @@
1
1
  import { heldHint } from './chunk-TDFLCUBE.js';
2
- import { Tooltip } from './chunk-PDGXQBFS.js';
2
+ import { Tooltip } from './chunk-BFZAGIXR.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './IconButton-QIJJCVNG.css';
@@ -66,7 +66,7 @@ var IconButton = forwardRef(function IconButton2({
66
66
  }
67
67
  );
68
68
  return /* @__PURE__ */ jsxs(Fragment, { children: [
69
- tip === void 0 ? button : /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: tip }), pressOpens: disabledReason !== void 0, children: button }),
69
+ tip === void 0 ? button : /* @__PURE__ */ jsx(Tooltip, { content: tip, describes: false, pressOpens: disabledReason !== void 0, children: button }),
70
70
  inert ? /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason }) : null
71
71
  ] });
72
72
  });
@@ -1,5 +1,5 @@
1
1
  import { SlideStage } from './chunk-7O53SWKI.js';
2
- import { Button } from './chunk-QGDQ5YDC.js';
2
+ import { Button } from './chunk-IMF3CPTY.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './SlideCompare-R4GVZXAM.css';
@@ -1,7 +1,7 @@
1
1
  import { Note } from './chunk-YJPQJVRJ.js';
2
- import { CanvasToolbar, toolForKey } from './chunk-LDVZYLA6.js';
3
- import { IDENTITY_VIEW, Canvas } from './chunk-3ZJ6X3ZJ.js';
4
- import { IconButton } from './chunk-DJAYXYDZ.js';
2
+ import { CanvasToolbar, toolForKey } from './chunk-M2USLODI.js';
3
+ import { IDENTITY_VIEW, Canvas } from './chunk-JD5K6Y7Q.js';
4
+ import { IconButton } from './chunk-KM5OKCW6.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';
@@ -1,5 +1,5 @@
1
1
  import { StatusDot } from './chunk-QRE6JCHS.js';
2
- import { Tooltip } from './chunk-PDGXQBFS.js';
2
+ import { Tooltip } from './chunk-BFZAGIXR.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './StatusLine-C6IY3U2F.css';
@@ -16,7 +16,7 @@ function StatusLine({ label, tone, pulse = false, notes = [], detail, overflow =
16
16
  className: cx("crewlet-status-line", overflow === "clip" && "crewlet-status-line--clip", className),
17
17
  "data-quiet": tone === void 0 ? "" : void 0,
18
18
  children: [
19
- described ? /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: detail }), placement: "top", children: /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__main", children: word }) }) : /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__main", children: word }),
19
+ described ? /* @__PURE__ */ jsx(Tooltip, { content: detail, describes: false, placement: "top", children: /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__main", children: word }) }) : /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__main", children: word }),
20
20
  shown.length > 0 && /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__notes", children: shown.map((note, at) => (
21
21
  // The middle dot is drawn; a reader hears a pause instead.
22
22
  /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -1,6 +1,6 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { ShortcutTip } from './chunk-3ZJ6X3ZJ.js';
3
- import { IconButton } from './chunk-DJAYXYDZ.js';
2
+ import { ShortcutTip } from './chunk-JD5K6Y7Q.js';
3
+ import { IconButton } from './chunk-KM5OKCW6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './CanvasToolbar-EM5EVZED.css';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -1,13 +1,13 @@
1
1
  import { Select } from './chunk-657WR3MX.js';
2
2
  import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
3
- import { HueSwatch } from './chunk-7VE7SOH6.js';
3
+ import { HueSwatch } from './chunk-E3JUS3CR.js';
4
4
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
- import { Checkbox } from './chunk-TYCICVST.js';
6
- import { Menu } from './chunk-4DKECHWE.js';
7
- import { FormField, Input } from './chunk-VGYVCLN4.js';
5
+ import { Checkbox } from './chunk-BRMJPZC4.js';
6
+ import { Menu } from './chunk-ZMZNKDPO.js';
7
+ import { FormField, Input } from './chunk-XQMRSL7Z.js';
8
8
  import { Kbd } from './chunk-VBBLHS2Y.js';
9
- import { Button } from './chunk-QGDQ5YDC.js';
10
- import { IconButton } from './chunk-DJAYXYDZ.js';
9
+ import { Button } from './chunk-IMF3CPTY.js';
10
+ import { IconButton } from './chunk-KM5OKCW6.js';
11
11
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
12
12
  import { cx } from './chunk-ODEQTPFM.js';
13
13
  import './SheetColumnEditor-BO2HKFRB.css';
@@ -1,10 +1,10 @@
1
- import { SegmentedControl } from './chunk-D7XI5DN5.js';
1
+ import { SegmentedControl } from './chunk-GMXOZEF5.js';
2
2
  import { ArtifactIcon } from './chunk-AVL52EME.js';
3
- import { Menu } from './chunk-4DKECHWE.js';
3
+ import { Menu } from './chunk-ZMZNKDPO.js';
4
4
  import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-VBBLHS2Y.js';
5
- import { Button } from './chunk-QGDQ5YDC.js';
6
- import { IconButton } from './chunk-DJAYXYDZ.js';
7
- import { Tooltip } from './chunk-PDGXQBFS.js';
5
+ import { Button } from './chunk-IMF3CPTY.js';
6
+ import { IconButton } from './chunk-KM5OKCW6.js';
7
+ import { Tooltip } from './chunk-BFZAGIXR.js';
8
8
  import { returnFocus } from './chunk-4ITETIGZ.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
10
10
  import './ArtifactKinds-27TE3KJL.css';
@@ -1,7 +1,7 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { SegmentedControl } from './chunk-D7XI5DN5.js';
3
- import { tabId } from './chunk-CNEHTSA5.js';
4
- import { IconButton } from './chunk-DJAYXYDZ.js';
2
+ import { SegmentedControl } from './chunk-GMXOZEF5.js';
3
+ import { tabId } from './chunk-XJU53WMW.js';
4
+ import { IconButton } from './chunk-KM5OKCW6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './MarkdownEditor-BLCJRGDC.css';
7
7
  import { useState, useId, useRef, useLayoutEffect, useImperativeHandle } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { useReorder } from './chunk-JMBPMSNI.js';
2
- import { Menu } from './chunk-4DKECHWE.js';
3
- import { Input } from './chunk-VGYVCLN4.js';
4
- import { IconButton } from './chunk-DJAYXYDZ.js';
2
+ import { Menu } from './chunk-ZMZNKDPO.js';
3
+ import { Input } from './chunk-XQMRSL7Z.js';
4
+ import { IconButton } from './chunk-KM5OKCW6.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './DocTabsEditor-25J6MYZF.css';
@@ -0,0 +1,53 @@
1
+ import { FormField } from './chunk-XQMRSL7Z.js';
2
+ import { Button } from './chunk-IMF3CPTY.js';
3
+ import { cx } from './chunk-ODEQTPFM.js';
4
+ import './SettingForm-ODVZZ7JZ.css';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ var SETTING_FORM_LABELS = { save: "Save", cancel: "Cancel" };
8
+ function SettingForm({
9
+ label,
10
+ htmlFor,
11
+ subject,
12
+ children,
13
+ hint,
14
+ error,
15
+ status,
16
+ onSave,
17
+ onCancel,
18
+ saving = false,
19
+ saveHeld,
20
+ saveLabel,
21
+ labels: overrides,
22
+ className,
23
+ ...rest
24
+ }) {
25
+ const labels = { ...SETTING_FORM_LABELS, ...overrides };
26
+ const submit = (event) => {
27
+ event.preventDefault();
28
+ if (saving || saveHeld !== void 0) return;
29
+ onSave();
30
+ };
31
+ return /* @__PURE__ */ jsxs("form", { ...rest, noValidate: true, "aria-busy": saving || void 0, className: cx("crewlet-setting-form", className), onSubmit: submit, children: [
32
+ subject ? /* @__PURE__ */ jsx("p", { className: "crewlet-setting-form__subject", children: subject }) : null,
33
+ /* @__PURE__ */ jsx(FormField, { htmlFor, label, helper: hint, error, children }),
34
+ status ? /* @__PURE__ */ jsx("div", { className: "crewlet-setting-form__status", children: status }) : null,
35
+ /* @__PURE__ */ jsxs("div", { className: "crewlet-setting-form__actions", children: [
36
+ /* @__PURE__ */ jsx(Button, { type: "button", size: "small", variant: "ghost", onClick: onCancel, children: labels.cancel }),
37
+ /* @__PURE__ */ jsx(
38
+ Button,
39
+ {
40
+ type: "submit",
41
+ size: "small",
42
+ variant: "primary",
43
+ loading: saving,
44
+ disabledReason: saveHeld,
45
+ tooltip: saveHeld !== void 0,
46
+ children: saveLabel ?? labels.save
47
+ }
48
+ )
49
+ ] })
50
+ ] });
51
+ }
52
+
53
+ export { SETTING_FORM_LABELS, SettingForm };