@crewlethq/ui 0.97.1 → 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 (270) 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/ListInput/index.js +9 -5
  69. package/dist/LogoSlot/index.js +10 -3
  70. package/dist/MarkdownEditor/index.js +12 -9
  71. package/dist/MemberPicker/index.js +9 -4
  72. package/dist/Menu/Menu.d.ts +7 -1
  73. package/dist/Menu/index.js +8 -5
  74. package/dist/MergeConflicts/index.js +12 -9
  75. package/dist/MessageActions/index.js +10 -10
  76. package/dist/Modal/index.js +8 -5
  77. package/dist/ObjectHeader/index.js +2 -2
  78. package/dist/OpenInAppCard/index.js +10 -3
  79. package/dist/OrgLabel/OrgLabel.d.ts +14 -0
  80. package/dist/OrgLabel/index.js +1 -1
  81. package/dist/{OrgLabel-R5KY7C3W.css → OrgLabel-6UGWHDQQ.css} +38 -0
  82. package/dist/OrgNode/index.js +2 -2
  83. package/dist/OrgTable/OrgTable.d.ts +28 -3
  84. package/dist/OrgTable/index.d.ts +1 -1
  85. package/dist/OrgTable/index.js +17 -7
  86. package/dist/{OrgTable-JZSYTUIK.css → OrgTable-GBRYKTDH.css} +68 -2
  87. package/dist/PeekRail/index.js +10 -3
  88. package/dist/PeopleRail/index.js +10 -3
  89. package/dist/PinTile/index.js +9 -2
  90. package/dist/Popover/index.js +2 -2
  91. package/dist/PresenterView/index.js +9 -5
  92. package/dist/PrincipalPicker/index.js +9 -4
  93. package/dist/PropertyList/index.js +3 -3
  94. package/dist/ProposalCard/index.js +11 -6
  95. package/dist/RailList/index.js +3 -3
  96. package/dist/ReactionBar/index.js +10 -10
  97. package/dist/ReceiptStrip/index.js +9 -2
  98. package/dist/RecordChip/index.js +3 -3
  99. package/dist/ResultTableCard/index.js +10 -3
  100. package/dist/RichEditor/index.js +9 -2
  101. package/dist/SandboxedFrame/index.js +9 -2
  102. package/dist/SegmentedControl/index.js +11 -8
  103. package/dist/{SegmentedControl-7GY2KM44.css → SegmentedControl-PWTB7KEE.css} +4 -1
  104. package/dist/Select/index.js +2 -2
  105. package/dist/SelectionBar/index.js +7 -3
  106. package/dist/SendButton/index.js +9 -2
  107. package/dist/ShareDialog/index.js +11 -8
  108. package/dist/SheetColumnEditor/index.js +15 -12
  109. package/dist/SheetGrid/index.js +11 -10
  110. package/dist/Shortcut/index.js +1 -1
  111. package/dist/SidePanel/index.js +7 -3
  112. package/dist/SlideCompare/index.js +7 -3
  113. package/dist/SlideFilmstrip/index.js +9 -6
  114. package/dist/SlideGrid/index.js +1 -1
  115. package/dist/SlideNav/index.js +9 -2
  116. package/dist/SlideStage/index.js +1 -1
  117. package/dist/StatusLegend/StatusLegend.d.ts +31 -0
  118. package/dist/StatusLegend/index.d.ts +3 -0
  119. package/dist/StatusLegend/index.js +4 -0
  120. package/dist/StatusLegend-7MS2SBVC.css +77 -0
  121. package/dist/StatusLine/StatusLine.d.ts +32 -0
  122. package/dist/StatusLine/index.d.ts +3 -0
  123. package/dist/StatusLine/index.js +10 -0
  124. package/dist/StatusLine-C6IY3U2F.css +55 -0
  125. package/dist/Switch/Switch.d.ts +2 -0
  126. package/dist/Switch/index.js +1 -1
  127. package/dist/{Switch-XJE34BZH.css → Switch-M3VVQMCY.css} +21 -0
  128. package/dist/Switcher/index.js +11 -8
  129. package/dist/TableCells/index.js +2 -2
  130. package/dist/Tabs/index.js +9 -6
  131. package/dist/TagsInput/index.js +7 -3
  132. package/dist/ThemeSwitcher/index.js +12 -9
  133. package/dist/ThemeToggle/index.js +9 -2
  134. package/dist/TimeRangePicker/index.js +14 -11
  135. package/dist/TimeWindowPicker/index.js +11 -8
  136. package/dist/Toaster/index.js +2 -2
  137. package/dist/Toolbar/index.js +1 -1
  138. package/dist/Tooltip/index.js +3 -3
  139. package/dist/TreeCanvas/TreeCanvas.d.ts +38 -2
  140. package/dist/TreeCanvas/index.d.ts +1 -1
  141. package/dist/TreeCanvas/index.js +10 -9
  142. package/dist/{TreeCanvas-5FPK4CII.css → TreeCanvas-X5RCUSTP.css} +24 -0
  143. package/dist/TreeGrid/TreeGrid.d.ts +26 -3
  144. package/dist/TreeGrid/index.js +8 -4
  145. package/dist/{TreeGrid-522U6WBG.css → TreeGrid-PZ3DFVRO.css} +24 -0
  146. package/dist/ValueField/index.js +10 -6
  147. package/dist/VersionCompare/index.js +12 -9
  148. package/dist/VersionTimeline/index.js +9 -2
  149. package/dist/{chunk-QF5UNP4T.js → chunk-2PB5D4TI.js} +1 -1
  150. package/dist/{chunk-7ZJ662U4.js → chunk-2W4US3JO.js} +3 -3
  151. package/dist/{chunk-NCUSI4ZU.js → chunk-33632WEN.js} +54 -14
  152. package/dist/{chunk-VB3FVKNI.js → chunk-3JAGO633.js} +1 -1
  153. package/dist/{chunk-XA2QKGBJ.js → chunk-3QBQY2XK.js} +1 -1
  154. package/dist/{chunk-2BZ2W2YU.js → chunk-3Z2BSKS5.js} +5 -5
  155. package/dist/{chunk-5U6XAUYM.js → chunk-4FNAPCCK.js} +1 -1
  156. package/dist/{chunk-IJ7KLXUZ.js → chunk-4OHBHPIB.js} +1 -1
  157. package/dist/{chunk-3LKOXQWZ.js → chunk-4QTOAMQN.js} +1 -1
  158. package/dist/{chunk-5YXMKZUA.js → chunk-4XYKBZJE.js} +8 -3
  159. package/dist/{chunk-EHFQMY3B.js → chunk-52UBOSNQ.js} +1 -1
  160. package/dist/{chunk-KCLHYBIZ.js → chunk-56ES76ST.js} +1 -1
  161. package/dist/{chunk-B3BJ66GQ.js → chunk-5JGEEUWQ.js} +2 -2
  162. package/dist/{chunk-WJZTI2WC.js → chunk-5KJOG5YP.js} +7 -7
  163. package/dist/{chunk-IUBOLGHG.js → chunk-5KKZCSER.js} +1 -1
  164. package/dist/{chunk-7K6LVM5I.js → chunk-63NRTOGO.js} +3 -3
  165. package/dist/chunk-6FS6W3P5.js +37 -0
  166. package/dist/chunk-6FVTKYH6.js +37 -0
  167. package/dist/{chunk-DGXZ635L.js → chunk-6KUOHUY5.js} +29 -24
  168. package/dist/{chunk-5AJR6X75.js → chunk-6V465OCU.js} +1 -1
  169. package/dist/{chunk-FRERGOW3.js → chunk-7IW4BVZF.js} +1 -1
  170. package/dist/{chunk-G3JY2DLC.js → chunk-7L6JJ7VJ.js} +1 -1
  171. package/dist/{chunk-CWJLDCB7.js → chunk-A5ISYHW7.js} +3 -3
  172. package/dist/{chunk-SDHLAW3G.js → chunk-AAP7A6WV.js} +2 -2
  173. package/dist/{chunk-AQCWYVE3.js → chunk-AC255TMQ.js} +1 -1
  174. package/dist/{chunk-K4LZXSKZ.js → chunk-AEFR4M2W.js} +1 -1
  175. package/dist/{chunk-GC3UQZPL.js → chunk-AEUZU5SA.js} +1 -1
  176. package/dist/{chunk-5MOBCUNA.js → chunk-AHPMAPVN.js} +2 -2
  177. package/dist/{chunk-2HBY3FOZ.js → chunk-AP6SM6BL.js} +3 -3
  178. package/dist/{chunk-NTGAPLMJ.js → chunk-BC4H2EMM.js} +1 -1
  179. package/dist/{chunk-OGOLTPFQ.js → chunk-BCZQDB3U.js} +1 -1
  180. package/dist/{chunk-QW4LAFTX.js → chunk-BK4KUIAZ.js} +1 -1
  181. package/dist/{chunk-T2GC7UAP.js → chunk-C34CKBKF.js} +1 -1
  182. package/dist/{chunk-LAZ72JOP.js → chunk-CQIODINH.js} +2 -2
  183. package/dist/{chunk-HZBXC3YD.js → chunk-CTNQOSQF.js} +2 -2
  184. package/dist/{chunk-3N3XK2G5.js → chunk-CZKEABMI.js} +3 -1
  185. package/dist/{chunk-HZPUMGQV.js → chunk-D4MMW2NF.js} +3 -3
  186. package/dist/{chunk-K66TAOJA.js → chunk-DBH7ORCH.js} +2 -2
  187. package/dist/{chunk-FXGQWLZ6.js → chunk-DK7CXQFY.js} +1 -1
  188. package/dist/{chunk-RO5JU6SN.js → chunk-E23AXDKL.js} +1 -1
  189. package/dist/{chunk-SKGOKLJD.js → chunk-E2XDYCFO.js} +1 -1
  190. package/dist/{chunk-XSJSDNRR.js → chunk-EF3CJDZO.js} +3 -3
  191. package/dist/{chunk-ZXXZESCD.js → chunk-EMDRNB23.js} +3 -3
  192. package/dist/{chunk-BHVEHAAX.js → chunk-EMXUREKE.js} +3 -3
  193. package/dist/{chunk-3P7XS5VT.js → chunk-FBNGCPKZ.js} +2 -2
  194. package/dist/{chunk-OMV5W53A.js → chunk-FIX72ZEC.js} +15 -1
  195. package/dist/{chunk-QWRAWKB2.js → chunk-FMOYO5OO.js} +2 -2
  196. package/dist/{chunk-GYVEKHVI.js → chunk-FP6OFRAU.js} +1 -1
  197. package/dist/{chunk-AVWEXCJ4.js → chunk-GA773IOZ.js} +2 -2
  198. package/dist/{chunk-XJMES7AE.js → chunk-GBBRSZ2J.js} +1 -1
  199. package/dist/{chunk-SNQ7PH3D.js → chunk-GDYZPBLI.js} +1 -1
  200. package/dist/{chunk-DRFOTWJE.js → chunk-GWRU4JHQ.js} +2 -2
  201. package/dist/{chunk-3NO5GRZY.js → chunk-HMXTZKAI.js} +4 -4
  202. package/dist/{chunk-QDGHOGSW.js → chunk-HTCNTCBE.js} +2 -2
  203. package/dist/{chunk-SRHLFQ4J.js → chunk-HU5PAZMU.js} +3 -3
  204. package/dist/{chunk-T5HZ5AYW.js → chunk-IA3NL54W.js} +4 -4
  205. package/dist/{chunk-3IWZVEXA.js → chunk-IAR2ULSK.js} +1 -1
  206. package/dist/{chunk-4ME4J3YY.js → chunk-IDBGDMQS.js} +1 -1
  207. package/dist/{chunk-WSHKY7SH.js → chunk-IGECN5B6.js} +1 -1
  208. package/dist/{chunk-OMMHKM6I.js → chunk-IYJCJOHW.js} +1 -1
  209. package/dist/{chunk-YTIXNVS7.js → chunk-J3QFTG4B.js} +3 -3
  210. package/dist/{chunk-TGGYSQRD.js → chunk-JK6WLRYP.js} +34 -22
  211. package/dist/{chunk-NKBKHOMU.js → chunk-JQCKRABK.js} +1 -1
  212. package/dist/{chunk-PICHV3PC.js → chunk-JZADK2FT.js} +3 -3
  213. package/dist/{chunk-4RLUVHYP.js → chunk-L72GPZ56.js} +1 -1
  214. package/dist/{chunk-EC6EUIAD.js → chunk-LCAKSEMB.js} +1 -1
  215. package/dist/{chunk-IPMJGK2Q.js → chunk-LYVWOAUN.js} +1 -1
  216. package/dist/{chunk-CFJ7FQZI.js → chunk-M6EVTMTK.js} +1 -1
  217. package/dist/{chunk-TGSOHXXH.js → chunk-M6G7XLLP.js} +1 -1
  218. package/dist/{chunk-JIBWNHTC.js → chunk-MIQNKO2R.js} +1 -1
  219. package/dist/{chunk-QGEDXYLB.js → chunk-MJ73YBP2.js} +2 -2
  220. package/dist/{chunk-BBKYJQZ6.js → chunk-MOP4D5HF.js} +5 -5
  221. package/dist/{chunk-Y7PPKQFQ.js → chunk-MTKHMGJH.js} +5 -5
  222. package/dist/{chunk-KQWJWTED.js → chunk-N7H5TFQK.js} +1 -1
  223. package/dist/{chunk-LJ3KWQLP.js → chunk-NBOHNPZB.js} +1 -1
  224. package/dist/{chunk-M576OESX.js → chunk-NKNG6YER.js} +1 -1
  225. package/dist/{chunk-ZDMZP5H4.js → chunk-OAKECTYH.js} +6 -6
  226. package/dist/{chunk-LMEMH6DO.js → chunk-OSU4ELU3.js} +2 -2
  227. package/dist/{chunk-5ILRWUE7.js → chunk-P667Y6NQ.js} +1 -1
  228. package/dist/{chunk-LGPTZGHJ.js → chunk-PF6X74C5.js} +8 -8
  229. package/dist/{chunk-6FAI4VLM.js → chunk-PJMDZEWY.js} +1 -1
  230. package/dist/{chunk-OSH55AKI.js → chunk-PMO6W5NE.js} +3 -3
  231. package/dist/{chunk-ZPTKAYJK.js → chunk-QH2YJDRI.js} +1 -1
  232. package/dist/{chunk-VTQSSU2E.js → chunk-QND44ROZ.js} +1 -1
  233. package/dist/{chunk-AELKT34H.js → chunk-QPRTTTUN.js} +1 -1
  234. package/dist/{chunk-7ZSEUO5Q.js → chunk-QZKGFBAR.js} +2 -2
  235. package/dist/{chunk-OC6BMY3C.js → chunk-RBR4AHBT.js} +1 -1
  236. package/dist/chunk-ROFAWLFS.js +352 -0
  237. package/dist/{chunk-VONEKR3J.js → chunk-RPCIU4S5.js} +1 -1
  238. package/dist/{chunk-2NNMBEJV.js → chunk-RSI6EJSH.js} +5 -5
  239. package/dist/{chunk-GNJXUNEU.js → chunk-RVJJZVVS.js} +1 -1
  240. package/dist/{chunk-V6WDJUYK.js → chunk-SF6FUU42.js} +1 -1
  241. package/dist/{chunk-CVKANYHD.js → chunk-SSN7Y3UY.js} +1 -1
  242. package/dist/{chunk-BMBQ6UMD.js → chunk-TAWPKNNZ.js} +1 -1
  243. package/dist/{chunk-I4IO56EY.js → chunk-TKAERQQF.js} +1 -1
  244. package/dist/{chunk-AXEXOAZQ.js → chunk-TVGTMKYO.js} +1 -1
  245. package/dist/{chunk-FPU7AA3X.js → chunk-UUDQEDHQ.js} +72 -26
  246. package/dist/{chunk-2SVQBQAD.js → chunk-V7WDP3HR.js} +3 -3
  247. package/dist/{chunk-65RFU7LF.js → chunk-VDQGWPGQ.js} +4 -1
  248. package/dist/{chunk-H4WQWCHP.js → chunk-VULZ4FAA.js} +2 -2
  249. package/dist/{chunk-UAUP6XGK.js → chunk-WDLAAZFZ.js} +30 -24
  250. package/dist/{chunk-6EZX26BD.js → chunk-WF2UJYCT.js} +1 -1
  251. package/dist/{chunk-EVM6GYZ2.js → chunk-WSR4OB4T.js} +1 -1
  252. package/dist/{chunk-LM3ISVJA.js → chunk-X4HBZSXA.js} +1 -1
  253. package/dist/{chunk-CDNZTCP2.js → chunk-XHQ2JJCB.js} +2 -2
  254. package/dist/{chunk-O3II3KJY.js → chunk-XLVWSNW3.js} +3 -3
  255. package/dist/{chunk-TXOTL7AA.js → chunk-YEQTGPCE.js} +3 -3
  256. package/dist/{chunk-ZWCK4N4L.js → chunk-YS4PWTNL.js} +1 -1
  257. package/dist/{chunk-B3PK2LND.js → chunk-YYKLPEOS.js} +1 -1
  258. package/dist/chunk-Z6E3WOWS.js +189 -0
  259. package/dist/{chunk-ETNQYT5O.js → chunk-ZGKGSW42.js} +2 -2
  260. package/dist/{chunk-OPVTNHPH.js → chunk-ZKC3QFDX.js} +2 -2
  261. package/dist/{chunk-NTRKC2JV.js → chunk-ZUWEVSDP.js} +1 -1
  262. package/dist/generated/index.d.ts +2 -0
  263. package/dist/generated/index.js +132 -130
  264. package/dist/index.js +132 -130
  265. package/dist/styles.css +391 -12
  266. package/dist/utils/index.js +2 -2
  267. package/package.json +3 -3
  268. package/dist/chunk-DWQYV5AV.js +0 -141
  269. package/dist/chunk-ZDWAIVWL.js +0 -310
  270. /package/dist/{chunk-VNACAMDK.js → chunk-2DYEPDT7.js} +0 -0
@@ -1,13 +1,13 @@
1
- import { Select } from './chunk-3IWZVEXA.js';
1
+ import { Select } from './chunk-IAR2ULSK.js';
2
2
  import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
3
- import { HueSwatch } from './chunk-6FAI4VLM.js';
3
+ import { HueSwatch } from './chunk-PJMDZEWY.js';
4
4
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
- import { Checkbox } from './chunk-TGSOHXXH.js';
6
- import { Menu } from './chunk-TGGYSQRD.js';
7
- import { FormField, Input } from './chunk-KCLHYBIZ.js';
5
+ import { Checkbox } from './chunk-M6G7XLLP.js';
6
+ import { Menu } from './chunk-JK6WLRYP.js';
7
+ import { FormField, Input } from './chunk-56ES76ST.js';
8
8
  import { Kbd } from './chunk-CMAZZY2I.js';
9
- import { Button } from './chunk-DGXZ635L.js';
10
- import { IconButton } from './chunk-UAUP6XGK.js';
9
+ import { Button } from './chunk-6KUOHUY5.js';
10
+ import { IconButton } from './chunk-WDLAAZFZ.js';
11
11
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
12
12
  import { cx } from './chunk-ODEQTPFM.js';
13
13
  import './SheetColumnEditor-BO2HKFRB.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 './ChatScale-L4SIHSKL.css';
4
4
  import './ChatMessage-FH7VRVCH.css';
@@ -1,8 +1,8 @@
1
1
  import { today, CalendarGrid, shiftMonth, compareDays } from './chunk-EE3DJMSQ.js';
2
- import { Popover } from './chunk-EC6EUIAD.js';
3
- import { Button } from './chunk-DGXZ635L.js';
2
+ import { Popover } from './chunk-LCAKSEMB.js';
3
+ import { Button } from './chunk-6KUOHUY5.js';
4
+ import { IconButton } from './chunk-WDLAAZFZ.js';
4
5
  import { useFocusModality } from './chunk-4ITETIGZ.js';
5
- import { IconButton } from './chunk-UAUP6XGK.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './DateTimePicker-PM6TIRIX.css';
8
8
  import { useMemo, useState, useEffect } from 'react';
@@ -0,0 +1,37 @@
1
+ import { StatusDot } from './chunk-QRE6JCHS.js';
2
+ import { VisuallyHidden } from './chunk-UT6CW3C7.js';
3
+ import { cx } from './chunk-ODEQTPFM.js';
4
+ import './StatusLegend-7MS2SBVC.css';
5
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
+
7
+ function StatusLegend({ label, items, value = null, onValueChange, countLabel = String, className }) {
8
+ const content = (item) => /* @__PURE__ */ jsxs(Fragment, { children: [
9
+ /* @__PURE__ */ jsx(StatusDot, { tone: item.tone, children: item.label }),
10
+ /* @__PURE__ */ jsx("span", { className: "crewlet-status-legend__count", children: item.count.toLocaleString() })
11
+ ] });
12
+ const named = (item) => `${item.label}, ${countLabel(item.count)}`;
13
+ if (!onValueChange) {
14
+ return /* @__PURE__ */ jsx("ul", { className: cx("crewlet-status-legend", className), "aria-label": label, children: items.map((item) => /* @__PURE__ */ jsxs("li", { className: "crewlet-status-legend__item", "data-empty": item.count === 0 ? "" : void 0, children: [
15
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: content(item) }),
16
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: named(item) })
17
+ ] }, item.key)) });
18
+ }
19
+ return /* @__PURE__ */ jsx("div", { role: "group", "aria-label": label, className: cx("crewlet-status-legend", className), children: items.map((item) => {
20
+ const pressed = value === item.key;
21
+ return /* @__PURE__ */ jsx(
22
+ "button",
23
+ {
24
+ type: "button",
25
+ className: "crewlet-status-legend__item",
26
+ "aria-pressed": pressed,
27
+ "aria-label": named(item),
28
+ "data-empty": item.count === 0 ? "" : void 0,
29
+ onClick: () => onValueChange(pressed ? null : item.key),
30
+ children: content(item)
31
+ },
32
+ item.key
33
+ );
34
+ }) });
35
+ }
36
+
37
+ export { StatusLegend };
@@ -0,0 +1,37 @@
1
+ import { StatusDot } from './chunk-QRE6JCHS.js';
2
+ import { Tooltip } from './chunk-QZKGFBAR.js';
3
+ import { VisuallyHidden } from './chunk-UT6CW3C7.js';
4
+ import { cx } from './chunk-ODEQTPFM.js';
5
+ import './StatusLine-C6IY3U2F.css';
6
+ import { Fragment } from 'react';
7
+ import { jsxs, jsx } from 'react/jsx-runtime';
8
+
9
+ function StatusLine({ label, tone, pulse = false, notes = [], detail, overflow = "wrap", className }) {
10
+ const word = tone === void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__word", children: label }) : /* @__PURE__ */ jsx(StatusDot, { tone, pulse, children: label });
11
+ const shown = notes.filter((note) => note !== null && note !== void 0 && note !== false && note !== "");
12
+ const described = detail !== void 0 && detail !== null && detail !== false && detail !== "";
13
+ return /* @__PURE__ */ jsxs(
14
+ "span",
15
+ {
16
+ className: cx("crewlet-status-line", overflow === "clip" && "crewlet-status-line--clip", className),
17
+ "data-quiet": tone === void 0 ? "" : void 0,
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 }),
20
+ shown.length > 0 && /* @__PURE__ */ jsx("span", { className: "crewlet-status-line__notes", children: shown.map((note, at) => (
21
+ // The middle dot is drawn; a reader hears a pause instead.
22
+ /* @__PURE__ */ jsxs(Fragment, { children: [
23
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-status-line__note", children: [
24
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\xB7 " }),
25
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: ", " }),
26
+ note
27
+ ] }),
28
+ " "
29
+ ] }, at)
30
+ )) }),
31
+ described && /* @__PURE__ */ jsx(VisuallyHidden, { children: detail })
32
+ ]
33
+ }
34
+ );
35
+ }
36
+
37
+ export { StatusLine };
@@ -1,4 +1,6 @@
1
1
  import { Spinner } from './chunk-XSPCITPN.js';
2
+ import { heldHint } from './chunk-TDFLCUBE.js';
3
+ import { Tooltip } from './chunk-QZKGFBAR.js';
2
4
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
3
5
  import { cx } from './chunk-ODEQTPFM.js';
4
6
  import './Button-GDEBGBX6.css';
@@ -44,6 +46,7 @@ var Button = forwardRef(function Button2({
44
46
  loading = false,
45
47
  pressed,
46
48
  disabledReason,
49
+ tooltip,
47
50
  disabled,
48
51
  onClick,
49
52
  title,
@@ -51,6 +54,7 @@ var Button = forwardRef(function Button2({
51
54
  ...rest
52
55
  }, ref) {
53
56
  const reasonId = useId();
57
+ const tip = typeof tooltip === "string" ? heldHint(tooltip, disabledReason) : tooltip ? disabledReason : void 0;
54
58
  const look = { variant, size, shape, block, flush, className};
55
59
  const classes = buttonClass(look, loading ? "crewlet-btn--loading" : void 0);
56
60
  if (asChild) {
@@ -66,31 +70,32 @@ var Button = forwardRef(function Button2({
66
70
  );
67
71
  }
68
72
  const inert = loading || disabledReason !== void 0;
73
+ const button = /* @__PURE__ */ jsx(
74
+ "button",
75
+ {
76
+ ...rest,
77
+ ref,
78
+ type,
79
+ className: classes,
80
+ disabled,
81
+ title,
82
+ "aria-label": rest["aria-label"] ?? (children === void 0 ? title : void 0),
83
+ "aria-pressed": pressed,
84
+ "aria-busy": loading || void 0,
85
+ "aria-disabled": inert || void 0,
86
+ "aria-describedby": disabledReason === void 0 ? rest["aria-describedby"] : cx(rest["aria-describedby"], reasonId),
87
+ onClick: (event) => {
88
+ if (inert) {
89
+ event.preventDefault();
90
+ return;
91
+ }
92
+ onClick?.(event);
93
+ },
94
+ children: /* @__PURE__ */ jsx(Inner, { leadingIcon, trailingIcon, loading, children })
95
+ }
96
+ );
69
97
  return /* @__PURE__ */ jsxs(Fragment, { children: [
70
- /* @__PURE__ */ jsx(
71
- "button",
72
- {
73
- ...rest,
74
- ref,
75
- type,
76
- className: classes,
77
- disabled,
78
- title,
79
- "aria-label": rest["aria-label"] ?? (children === void 0 ? title : void 0),
80
- "aria-pressed": pressed,
81
- "aria-busy": loading || void 0,
82
- "aria-disabled": inert || void 0,
83
- "aria-describedby": disabledReason === void 0 ? rest["aria-describedby"] : cx(rest["aria-describedby"], reasonId),
84
- onClick: (event) => {
85
- if (inert) {
86
- event.preventDefault();
87
- return;
88
- }
89
- onClick?.(event);
90
- },
91
- children: /* @__PURE__ */ jsx(Inner, { leadingIcon, trailingIcon, loading, children })
92
- }
93
- ),
98
+ tip ? /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: tip }), children: button }) : button,
94
99
  disabledReason === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason })
95
100
  ] });
96
101
  });
@@ -1,4 +1,4 @@
1
- import { IconButton } from './chunk-UAUP6XGK.js';
1
+ import { IconButton } from './chunk-WDLAAZFZ.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './SlideNav-ODTNGTMT.css';
4
4
  import { ChevronLeftGlyph, ChevronRightGlyph } from '@crewlethq/icons/glyphs';
@@ -1,5 +1,5 @@
1
1
  import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
2
- import { SegmentedControl } from './chunk-GYVEKHVI.js';
2
+ import { SegmentedControl } from './chunk-FP6OFRAU.js';
3
3
  import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -4,7 +4,7 @@ import { RelativeTime } from './chunk-EJNJMHQG.js';
4
4
  import { Card } from './chunk-U2IQNDDR.js';
5
5
  import { AvatarStack } from './chunk-YTLWOHOY.js';
6
6
  import { ArtifactKindGround } from './chunk-J5T5TDM2.js';
7
- import { Checkbox } from './chunk-TGSOHXXH.js';
7
+ import { Checkbox } from './chunk-M6G7XLLP.js';
8
8
  import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
9
9
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
10
10
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
@@ -1,14 +1,14 @@
1
1
  import { releaseFocus, usePresence } from './chunk-PCAT2EFB.js';
2
2
  import { useRailShape, RailShapeContext, RailLeavingContext } from './chunk-JLOESTT2.js';
3
3
  import { useMediaMatch } from './chunk-YJQXESOJ.js';
4
- import { Tooltip } from './chunk-7ZSEUO5Q.js';
5
- import { Menu } from './chunk-TGGYSQRD.js';
4
+ import { Menu } from './chunk-JK6WLRYP.js';
6
5
  import { PeekContext, AsideContext, ResizeHandle, clampSize } from './chunk-PIYJNCN7.js';
7
6
  import { isApplePlatform, ariaKeyshortcuts, Kbd } from './chunk-CMAZZY2I.js';
8
7
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
8
+ import { IconButton } from './chunk-WDLAAZFZ.js';
9
+ import { Tooltip } from './chunk-QZKGFBAR.js';
9
10
  import { focusables, useModalLayer, isComposing, layerCount } from './chunk-TUEM2XIW.js';
10
11
  import { returnFocus } from './chunk-4ITETIGZ.js';
11
- import { IconButton } from './chunk-UAUP6XGK.js';
12
12
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
13
13
  import { cx } from './chunk-ODEQTPFM.js';
14
14
  import './HitArea-QUOS6ZDJ.css';
@@ -1,5 +1,5 @@
1
- import { Checkbox } from './chunk-TGSOHXXH.js';
2
- import { IconButton } from './chunk-UAUP6XGK.js';
1
+ import { Checkbox } from './chunk-M6G7XLLP.js';
2
+ import { IconButton } from './chunk-WDLAAZFZ.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './MemberPicker-ZD35VEK6.css';
5
5
  import { useId, useState } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { useListbox, useOptionKeys } from './chunk-YGRTX67J.js';
2
- import { Input } from './chunk-KCLHYBIZ.js';
2
+ import { Input } from './chunk-56ES76ST.js';
3
3
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './HitArea-QUOS6ZDJ.css';
@@ -1,4 +1,4 @@
1
- import { IconButton } from './chunk-UAUP6XGK.js';
1
+ import { IconButton } from './chunk-WDLAAZFZ.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './FilterPill-4GMNFZND.css';
4
4
  import { XGlyph } from '@crewlethq/icons/glyphs';
@@ -2,7 +2,7 @@ import { SuggestionList, SuggestionRow } from './chunk-Y7PVLEZJ.js';
2
2
  import { developing } from './chunk-6C7GQOBV.js';
3
3
  import { StatusCard } from './chunk-4BEMS6Q7.js';
4
4
  import { StatusDot } from './chunk-QRE6JCHS.js';
5
- import { Button } from './chunk-DGXZ635L.js';
5
+ import { Button } from './chunk-6KUOHUY5.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './BriefCard-QCL7MVUV.css';
8
8
  import { useEffect } from 'react';
@@ -1,7 +1,7 @@
1
- import { Checkbox } from './chunk-TGSOHXXH.js';
1
+ import { Checkbox } from './chunk-M6G7XLLP.js';
2
2
  import { useMediaMatch } from './chunk-YJQXESOJ.js';
3
3
  import { EmptyState } from './chunk-PPUR46MK.js';
4
- import { Button } from './chunk-DGXZ635L.js';
4
+ import { Button } from './chunk-6KUOHUY5.js';
5
5
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './DataGrid-SAHEL4SN.css';
@@ -1,7 +1,7 @@
1
1
  import { useReorder } from './chunk-BVML4UVB.js';
2
- import { Menu } from './chunk-TGGYSQRD.js';
3
- import { Input } from './chunk-KCLHYBIZ.js';
4
- import { IconButton } from './chunk-UAUP6XGK.js';
2
+ import { Menu } from './chunk-JK6WLRYP.js';
3
+ import { Input } from './chunk-56ES76ST.js';
4
+ import { IconButton } from './chunk-WDLAAZFZ.js';
5
5
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './DocTabsEditor-25J6MYZF.css';
@@ -1,7 +1,7 @@
1
1
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
2
2
  import { RelativeTime } from './chunk-EJNJMHQG.js';
3
3
  import { Timeline } from './chunk-ZDJQQ4LU.js';
4
- import { Button } from './chunk-DGXZ635L.js';
4
+ import { Button } from './chunk-6KUOHUY5.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './VersionTimeline-DEAQ7CJG.css';
7
7
  import { RotateCcwClockGlyph, PencilGlyph, ShieldGlyph, DatabaseGlyph, UploadGlyph } from '@crewlethq/icons/glyphs';
@@ -1,5 +1,5 @@
1
1
  import { InlineCode } from './chunk-OBFEL5KH.js';
2
- import { FormField, Input } from './chunk-KCLHYBIZ.js';
2
+ import { FormField, Input } from './chunk-56ES76ST.js';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
 
5
5
  function confirmMatches(typed, phrase) {
@@ -1,5 +1,5 @@
1
1
  import { Text } from './chunk-O5CEG7TQ.js';
2
- import { Link } from './chunk-QF5UNP4T.js';
2
+ import { Link } from './chunk-2PB5D4TI.js';
3
3
  import { Tag } from './chunk-SJ3EUCFD.js';
4
4
  import { RelativeTime } from './chunk-EJNJMHQG.js';
5
5
  import { EmptyValue } from './chunk-RE3FBGQQ.js';
@@ -1,4 +1,4 @@
1
- import { IconButton } from './chunk-UAUP6XGK.js';
1
+ import { IconButton } from './chunk-WDLAAZFZ.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './SendButton-L4UX54XS.css';
4
4
  import { forwardRef } from 'react';
@@ -1,7 +1,7 @@
1
- import { FileDrop, FilePickButton } from './chunk-KQWJWTED.js';
1
+ import { FileDrop, FilePickButton } from './chunk-N7H5TFQK.js';
2
2
  import { contrastRatio } from './chunk-EW4ULFHK.js';
3
3
  import { normalizeHex } from './chunk-7W3LYIOC.js';
4
- import { Button } from './chunk-DGXZ635L.js';
4
+ import { Button } from './chunk-6KUOHUY5.js';
5
5
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './LogoSlot-APCMGE6S.css';
@@ -1,8 +1,8 @@
1
1
  import { safeHref } from './chunk-KBZO4B33.js';
2
2
  import { IconTile } from './chunk-3LI4TRUR.js';
3
- import { ReceiptStrip } from './chunk-ZWCK4N4L.js';
3
+ import { ReceiptStrip } from './chunk-YS4PWTNL.js';
4
4
  import { StatusCard } from './chunk-4BEMS6Q7.js';
5
- import { ButtonLink, Button } from './chunk-DGXZ635L.js';
5
+ import { ButtonLink, Button } from './chunk-6KUOHUY5.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './OpenInAppCard-CKHCK7DO.css';
8
8
  import { CircleCheckGlyph } from '@crewlethq/icons/glyphs';
@@ -1,6 +1,6 @@
1
1
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './Switch-XJE34BZH.css';
3
+ import './Switch-M3VVQMCY.css';
4
4
  import { forwardRef, useId } from 'react';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
@@ -12,6 +12,7 @@ var Switch = forwardRef(function Switch2({
12
12
  onChange,
13
13
  onClick,
14
14
  labelHidden = false,
15
+ size = "md",
15
16
  disabledReason,
16
17
  className = "",
17
18
  disabled,
@@ -36,6 +37,7 @@ var Switch = forwardRef(function Switch2({
36
37
  "crewlet-switch",
37
38
  framed && "crewlet-switch--framed",
38
39
  labelHidden && "crewlet-switch--label-hidden",
40
+ size === "sm" && "crewlet-switch--sm",
39
41
  (disabled || inert) && "is-disabled",
40
42
  className
41
43
  ),
@@ -1,6 +1,6 @@
1
- import { Popover } from './chunk-EC6EUIAD.js';
2
- import { Tooltip } from './chunk-7ZSEUO5Q.js';
3
- import { Input } from './chunk-KCLHYBIZ.js';
1
+ import { Popover } from './chunk-LCAKSEMB.js';
2
+ import { Input } from './chunk-56ES76ST.js';
3
+ import { Tooltip } from './chunk-QZKGFBAR.js';
4
4
  import { isComposing } from './chunk-TUEM2XIW.js';
5
5
  import './EmojiPicker-FMWYN2WX.css';
6
6
  import { useId, useState, useRef, useMemo } from 'react';
@@ -1,5 +1,5 @@
1
- import { HuePicker } from './chunk-6FAI4VLM.js';
2
- import { Popover } from './chunk-EC6EUIAD.js';
1
+ import { HuePicker } from './chunk-PJMDZEWY.js';
2
+ import { Popover } from './chunk-LCAKSEMB.js';
3
3
  import { CharacterPicker } from './chunk-LNQSNXGJ.js';
4
4
  import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
5
  import { Avatar } from './chunk-XZY6S3UC.js';
@@ -1,4 +1,4 @@
1
- import { Textarea } from './chunk-KCLHYBIZ.js';
1
+ import { Textarea } from './chunk-56ES76ST.js';
2
2
  import { Kbd } from './chunk-CMAZZY2I.js';
3
3
  import { isComposing } from './chunk-TUEM2XIW.js';
4
4
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
@@ -1,6 +1,6 @@
1
1
  import { SlideStage } from './chunk-O6EV6GKI.js';
2
2
  import { useReorder } from './chunk-BVML4UVB.js';
3
- import { Menu } from './chunk-TGGYSQRD.js';
3
+ import { Menu } from './chunk-JK6WLRYP.js';
4
4
  import { Kbd, isApplePlatform } from './chunk-CMAZZY2I.js';
5
5
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,6 +1,6 @@
1
1
  import { useAppShellAside, ResizeHandle } from './chunk-PIYJNCN7.js';
2
+ import { IconButton } from './chunk-WDLAAZFZ.js';
2
3
  import { useModalLayer } from './chunk-TUEM2XIW.js';
3
- import { IconButton } from './chunk-UAUP6XGK.js';
4
4
  import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import { createContext, useId, useRef, useContext, useLayoutEffect, useEffect, useMemo } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { Toolbar } from './chunk-NXFTCPF6.js';
2
- import { SegmentedControl } from './chunk-GYVEKHVI.js';
3
- import { tabId } from './chunk-OMMHKM6I.js';
4
- import { IconButton } from './chunk-UAUP6XGK.js';
2
+ import { SegmentedControl } from './chunk-FP6OFRAU.js';
3
+ import { tabId } from './chunk-IYJCJOHW.js';
4
+ import { IconButton } from './chunk-WDLAAZFZ.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,8 +1,8 @@
1
+ import { Button } from './chunk-6KUOHUY5.js';
2
+ import { IconButton } from './chunk-WDLAAZFZ.js';
1
3
  import { useComposedRef } from './chunk-L72URIHR.js';
2
- import { Button } from './chunk-DGXZ635L.js';
3
- import { useLayerContainer } from './chunk-OMV5W53A.js';
4
+ import { useLayerContainer } from './chunk-FIX72ZEC.js';
4
5
  import { focusables, useModalLayer, useBodyScrollLock } from './chunk-TUEM2XIW.js';
5
- import { IconButton } from './chunk-UAUP6XGK.js';
6
6
  import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './Modal-GKUOO7PZ.css';
@@ -1,9 +1,9 @@
1
1
  import { Timeline } from './chunk-ZDJQQ4LU.js';
2
2
  import { Section } from './chunk-WFCWPXJN.js';
3
- import { Composer } from './chunk-FXGQWLZ6.js';
3
+ import { Composer } from './chunk-DK7CXQFY.js';
4
4
  import { Disclosure } from './chunk-NAHA62WD.js';
5
- import { ArtifactPanel } from './chunk-5ILRWUE7.js';
6
- import { Button } from './chunk-DGXZ635L.js';
5
+ import { ArtifactPanel } from './chunk-P667Y6NQ.js';
6
+ import { Button } from './chunk-6KUOHUY5.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './AgentHandoffPanel-AIU7YWWB.css';
9
9
  import { useId, useRef, useEffect } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { richEditorLabels } from './chunk-2DMTW2Y3.js';
2
2
  import { Callout } from './chunk-BPCY7ZID.js';
3
3
  import { Skeleton } from './chunk-I4IUX3JF.js';
4
- import { Button } from './chunk-DGXZ635L.js';
4
+ import { Button } from './chunk-6KUOHUY5.js';
5
5
  import './RichEditor-5CF3QV3J.css';
6
6
  import { forwardRef, useState, useEffect } from 'react';
7
7
  import { jsx } from 'react/jsx-runtime';
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var engine = null;
10
10
  var loading = null;
11
11
  function loadEngine() {
12
- loading ??= import('./Editor-63L5QQDN.js').then(
12
+ loading ??= import('./Editor-QWGTLJHM.js').then(
13
13
  (module) => {
14
14
  engine = module.Editor;
15
15
  return engine;
@@ -23,6 +23,20 @@ function placePopup(anchor, size, bounds, gap = LAYER_GAP, prefer = "below") {
23
23
  function viewportBounds() {
24
24
  return { x: 0, y: 0, width: window.innerWidth, height: window.innerHeight };
25
25
  }
26
+ function visibleBounds(host, inHost, gap = LAYER_GAP) {
27
+ const view = viewportBounds();
28
+ const box = inHost ? host : view;
29
+ const left = Math.max(box.x, view.x);
30
+ const top = Math.max(box.y, view.y);
31
+ const right = Math.min(box.x + box.width, view.x + view.width);
32
+ const bottom = Math.min(box.y + box.height, view.y + view.height);
33
+ return {
34
+ x: left - (inHost ? box.x : 0) + gap,
35
+ y: top - (inHost ? box.y : 0) + gap,
36
+ width: Math.max(0, right - left - 2 * gap),
37
+ height: Math.max(0, bottom - top - 2 * gap)
38
+ };
39
+ }
26
40
  function anchorGone(anchor, host, inHost) {
27
41
  const own = {
28
42
  x: anchor.left - (inHost ? host.x : 0),
@@ -49,4 +63,4 @@ function useLayerContainer() {
49
63
  return typeof document === "undefined" ? null : document.body;
50
64
  }
51
65
 
52
- export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, anchorGone, outsideBounds, placePopup, useLayerContainer, viewportBounds };
66
+ export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, anchorGone, outsideBounds, placePopup, useLayerContainer, viewportBounds, visibleBounds };
@@ -1,7 +1,7 @@
1
1
  import { LockedLabel } from './chunk-TEV5REGB.js';
2
- import { tokenMs } from './chunk-HTS5RJ7S.js';
3
- import { LAYER_GAP, useLayerContainer, viewportBounds, anchorGone, LAYER_REPOSITION_EVENT } from './chunk-OMV5W53A.js';
4
2
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
3
+ import { tokenMs } from './chunk-HTS5RJ7S.js';
4
+ import { LAYER_GAP, useLayerContainer, viewportBounds, anchorGone, LAYER_REPOSITION_EVENT } from './chunk-FIX72ZEC.js';
5
5
  import { usePopupLayer } from './chunk-TUEM2XIW.js';
6
6
  import { returnFocus } from './chunk-4ITETIGZ.js';
7
7
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
@@ -1,4 +1,4 @@
1
- import { tabId } from './chunk-OMMHKM6I.js';
1
+ import { tabId } from './chunk-IYJCJOHW.js';
2
2
  import { useRoving, tabStop } from './chunk-EGMQURBR.js';
3
3
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
4
4
  import { Count } from './chunk-D2GT3CR4.js';
@@ -1,6 +1,6 @@
1
- import { Modal } from './chunk-ZXXZESCD.js';
1
+ import { Modal } from './chunk-EMDRNB23.js';
2
2
  import { useListbox, useHighlightRest } from './chunk-YGRTX67J.js';
3
- import { Input } from './chunk-KCLHYBIZ.js';
3
+ import { Input } from './chunk-56ES76ST.js';
4
4
  import { Kbd } from './chunk-CMAZZY2I.js';
5
5
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
6
6
  import { isComposing } from './chunk-TUEM2XIW.js';
@@ -1,5 +1,5 @@
1
1
  import { SlideStage } from './chunk-O6EV6GKI.js';
2
- import { Button } from './chunk-DGXZ635L.js';
2
+ import { Button } from './chunk-6KUOHUY5.js';
3
3
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './SlideCompare-R4GVZXAM.css';
@@ -1,4 +1,4 @@
1
- import { Tooltip } from './chunk-7ZSEUO5Q.js';
1
+ import { Tooltip } from './chunk-QZKGFBAR.js';
2
2
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './FactList-QEOHLHX3.css';
@@ -1,6 +1,6 @@
1
1
  import { Toolbar } from './chunk-NXFTCPF6.js';
2
- import { ShortcutTip } from './chunk-NCUSI4ZU.js';
3
- import { IconButton } from './chunk-UAUP6XGK.js';
2
+ import { ShortcutTip } from './chunk-33632WEN.js';
3
+ import { IconButton } from './chunk-WDLAAZFZ.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './CanvasToolbar-EM5EVZED.css';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -1,8 +1,8 @@
1
- import { heldHint } from './chunk-TDFLCUBE.js';
2
- import { emojiName } from './chunk-HZPUMGQV.js';
1
+ import { emojiName } from './chunk-D4MMW2NF.js';
3
2
  import { Toolbar } from './chunk-NXFTCPF6.js';
4
- import { Tooltip } from './chunk-7ZSEUO5Q.js';
5
- import { IconButton } from './chunk-UAUP6XGK.js';
3
+ import { IconButton } from './chunk-WDLAAZFZ.js';
4
+ import { heldHint } from './chunk-TDFLCUBE.js';
5
+ import { Tooltip } from './chunk-QZKGFBAR.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './ChatScale-L4SIHSKL.css';
8
8
  import './MessageActions-Q4F5UH3S.css';
@@ -1,6 +1,6 @@
1
1
  import { ContrastLevelTag } from './chunk-EW4ULFHK.js';
2
- import { Popover } from './chunk-EC6EUIAD.js';
3
- import { IconButton } from './chunk-UAUP6XGK.js';
2
+ import { Popover } from './chunk-LCAKSEMB.js';
3
+ import { IconButton } from './chunk-WDLAAZFZ.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ContrastHelp-MZCAW5WQ.css';
6
6
  import { InfoGlyph } from '@crewlethq/icons/glyphs';
@@ -1,6 +1,6 @@
1
- import { FormField, Label, Input } from './chunk-KCLHYBIZ.js';
2
- import { Button } from './chunk-DGXZ635L.js';
3
- import { IconButton } from './chunk-UAUP6XGK.js';
1
+ import { FormField, Label, Input } from './chunk-56ES76ST.js';
2
+ import { Button } from './chunk-6KUOHUY5.js';
3
+ import { IconButton } from './chunk-WDLAAZFZ.js';
4
4
  import { announce } from './chunk-2G355KDJ.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './KeyValueRows-US5KW7JK.css';
@@ -1,8 +1,8 @@
1
- import { Modal } from './chunk-ZXXZESCD.js';
1
+ import { Modal } from './chunk-EMDRNB23.js';
2
2
  import { Callout } from './chunk-BPCY7ZID.js';
3
- import { SegmentedControl } from './chunk-GYVEKHVI.js';
4
- import { FormField, Input } from './chunk-KCLHYBIZ.js';
5
- import { Button } from './chunk-DGXZ635L.js';
3
+ import { SegmentedControl } from './chunk-FP6OFRAU.js';
4
+ import { FormField, Input } from './chunk-56ES76ST.js';
5
+ import { Button } from './chunk-6KUOHUY5.js';
6
6
  import { useState } from 'react';
7
7
  import { ClockGlyph } from '@crewlethq/icons/glyphs';
8
8
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';