@crewlethq/ui 0.97.0 → 0.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/AddPill/AddPill.d.ts +3 -1
  2. package/dist/AddPill/index.js +1 -1
  3. package/dist/{AddPill-FPM5RUKI.css → AddPill-OP3MMVZG.css} +13 -0
  4. package/dist/AgentHandoffPanel/index.js +12 -8
  5. package/dist/AppShell/index.js +9 -8
  6. package/dist/ArrangeFrame/index.js +9 -2
  7. package/dist/ArrangeList/index.js +10 -5
  8. package/dist/ArtifactBar/index.js +12 -11
  9. package/dist/ArtifactCard/index.js +9 -4
  10. package/dist/ArtifactPanel/index.js +8 -4
  11. package/dist/AttentionList/index.js +9 -2
  12. package/dist/AvatarPicker/index.js +13 -10
  13. package/dist/BriefCard/index.js +9 -2
  14. package/dist/Button/Button.d.ts +6 -0
  15. package/dist/Button/index.js +8 -1
  16. package/dist/Canvas/Canvas.d.ts +18 -1
  17. package/dist/Canvas/index.js +9 -8
  18. package/dist/{Canvas-4QJHVLJ4.css → Canvas-UQVR7IUL.css} +43 -0
  19. package/dist/CanvasBoard/index.js +11 -10
  20. package/dist/CanvasToolbar/index.js +10 -9
  21. package/dist/ChangeMark/index.js +4 -4
  22. package/dist/ChatMessage/index.js +9 -2
  23. package/dist/ChatThread/index.js +9 -2
  24. package/dist/CheckGrid/index.js +9 -4
  25. package/dist/Checkbox/index.js +8 -3
  26. package/dist/ChipField/index.js +1 -1
  27. package/dist/CodeBlock/index.js +11 -4
  28. package/dist/ColorField/index.js +8 -3
  29. package/dist/ColorSwatch/index.js +11 -4
  30. package/dist/Combobox/index.js +8 -3
  31. package/dist/CommandPalette/index.js +10 -7
  32. package/dist/CommentThread/index.js +10 -6
  33. package/dist/CompactNav/index.js +3 -3
  34. package/dist/Composer/index.js +8 -4
  35. package/dist/ConfirmField/index.js +8 -3
  36. package/dist/ConflictNote/index.js +9 -2
  37. package/dist/ContrastHelp/index.js +7 -4
  38. package/dist/Copyable/index.js +10 -3
  39. package/dist/DataGrid/index.js +10 -5
  40. package/dist/DataTable/index.js +12 -9
  41. package/dist/DataView/index.js +16 -13
  42. package/dist/DateTimePicker/index.js +9 -6
  43. package/dist/DeepWorkCard/index.js +10 -3
  44. package/dist/DocTabsEditor/index.js +10 -7
  45. package/dist/DownloadButton/index.js +9 -2
  46. package/dist/{Editor-63L5QQDN.js → Editor-QWGTLJHM.js} +9 -6
  47. package/dist/EmojiPicker/index.js +9 -8
  48. package/dist/EntityChip/EntityChip.d.ts +9 -1
  49. package/dist/EntityChip/index.js +1 -1
  50. package/dist/ErrorBoundary/index.js +9 -2
  51. package/dist/FactList/index.js +4 -4
  52. package/dist/FileDrop/index.js +9 -2
  53. package/dist/FilterPill/index.js +9 -2
  54. package/dist/FollowBanner/index.js +7 -3
  55. package/dist/HuePicker/index.js +11 -8
  56. package/dist/IconButton/IconButton.d.ts +6 -0
  57. package/dist/IconButton/index.js +8 -1
  58. package/dist/InlineEditor/index.js +7 -3
  59. package/dist/Input/index.js +7 -2
  60. package/dist/KeyValueRows/index.js +9 -4
  61. package/dist/Layer/index.d.ts +1 -1
  62. package/dist/Layer/index.js +1 -1
  63. package/dist/Layer/place.d.ts +6 -0
  64. package/dist/Link/Link.d.ts +6 -1
  65. package/dist/Link/index.js +1 -1
  66. package/dist/{Link-CLURSR2O.css → Link-Z23PLCVS.css} +9 -0
  67. package/dist/LinkInterstitial/index.js +9 -6
  68. package/dist/List/List.d.ts +1 -7
  69. package/dist/ListInput/index.js +9 -5
  70. package/dist/LogoSlot/index.js +10 -3
  71. package/dist/MarkdownEditor/index.js +12 -9
  72. package/dist/MemberPicker/index.js +9 -4
  73. package/dist/Menu/Menu.d.ts +7 -1
  74. package/dist/Menu/index.js +8 -5
  75. package/dist/MergeConflicts/index.js +12 -9
  76. package/dist/MessageActions/index.js +10 -10
  77. package/dist/Modal/index.js +8 -5
  78. package/dist/ObjectHeader/index.js +2 -2
  79. package/dist/OpenInAppCard/index.js +10 -3
  80. package/dist/OrgLabel/OrgLabel.d.ts +14 -0
  81. package/dist/OrgLabel/index.js +1 -1
  82. package/dist/{OrgLabel-R5KY7C3W.css → OrgLabel-6UGWHDQQ.css} +38 -0
  83. package/dist/OrgNode/index.js +2 -2
  84. package/dist/OrgTable/OrgTable.d.ts +28 -3
  85. package/dist/OrgTable/index.d.ts +1 -1
  86. package/dist/OrgTable/index.js +17 -7
  87. package/dist/{OrgTable-JZSYTUIK.css → OrgTable-GBRYKTDH.css} +68 -2
  88. package/dist/PeekRail/index.js +10 -3
  89. package/dist/PeopleRail/index.js +10 -3
  90. package/dist/PinTile/index.js +9 -2
  91. package/dist/Popover/index.js +2 -2
  92. package/dist/PresenterView/index.js +9 -5
  93. package/dist/PrincipalPicker/index.js +9 -4
  94. package/dist/PropertyList/index.js +3 -3
  95. package/dist/ProposalCard/index.js +11 -6
  96. package/dist/RailList/index.js +3 -3
  97. package/dist/ReactionBar/index.js +10 -10
  98. package/dist/ReceiptStrip/index.js +9 -2
  99. package/dist/RecordChip/index.js +3 -3
  100. package/dist/ResultTableCard/index.js +10 -3
  101. package/dist/RichEditor/index.js +9 -2
  102. package/dist/SandboxedFrame/index.js +9 -2
  103. package/dist/SegmentedControl/index.js +11 -8
  104. package/dist/{SegmentedControl-7GY2KM44.css → SegmentedControl-PWTB7KEE.css} +4 -1
  105. package/dist/Select/index.js +2 -2
  106. package/dist/SelectionBar/index.js +7 -3
  107. package/dist/SendButton/index.js +9 -2
  108. package/dist/ShareDialog/index.js +11 -8
  109. package/dist/SheetColumnEditor/index.js +15 -12
  110. package/dist/SheetGrid/index.js +11 -10
  111. package/dist/Shortcut/index.js +1 -1
  112. package/dist/SidePanel/index.js +7 -3
  113. package/dist/SlideCompare/index.js +7 -3
  114. package/dist/SlideFilmstrip/index.js +9 -6
  115. package/dist/SlideGrid/index.js +1 -1
  116. package/dist/SlideNav/index.js +9 -2
  117. package/dist/SlideStage/index.js +1 -1
  118. package/dist/StatusLegend/StatusLegend.d.ts +31 -0
  119. package/dist/StatusLegend/index.d.ts +3 -0
  120. package/dist/StatusLegend/index.js +4 -0
  121. package/dist/StatusLegend-7MS2SBVC.css +77 -0
  122. package/dist/StatusLine/StatusLine.d.ts +32 -0
  123. package/dist/StatusLine/index.d.ts +3 -0
  124. package/dist/StatusLine/index.js +10 -0
  125. package/dist/StatusLine-C6IY3U2F.css +55 -0
  126. package/dist/Switch/Switch.d.ts +2 -0
  127. package/dist/Switch/index.js +1 -1
  128. package/dist/{Switch-XJE34BZH.css → Switch-M3VVQMCY.css} +21 -0
  129. package/dist/Switcher/index.js +11 -8
  130. package/dist/TableCells/index.js +2 -2
  131. package/dist/Tabs/index.js +9 -6
  132. package/dist/TagsInput/index.js +7 -3
  133. package/dist/ThemeSwitcher/index.js +12 -9
  134. package/dist/ThemeToggle/index.js +9 -2
  135. package/dist/TimeRangePicker/index.js +14 -11
  136. package/dist/TimeWindowPicker/index.js +11 -8
  137. package/dist/Toaster/index.js +2 -2
  138. package/dist/Toolbar/index.js +1 -1
  139. package/dist/Tooltip/index.js +3 -3
  140. package/dist/TreeCanvas/TreeCanvas.d.ts +38 -2
  141. package/dist/TreeCanvas/index.d.ts +1 -1
  142. package/dist/TreeCanvas/index.js +10 -9
  143. package/dist/{TreeCanvas-5FPK4CII.css → TreeCanvas-X5RCUSTP.css} +24 -0
  144. package/dist/TreeGrid/TreeGrid.d.ts +26 -3
  145. package/dist/TreeGrid/index.js +8 -4
  146. package/dist/{TreeGrid-522U6WBG.css → TreeGrid-PZ3DFVRO.css} +24 -0
  147. package/dist/ValueField/index.js +10 -6
  148. package/dist/VersionCompare/index.js +12 -9
  149. package/dist/VersionTimeline/index.js +9 -2
  150. package/dist/{chunk-QF5UNP4T.js → chunk-2PB5D4TI.js} +1 -1
  151. package/dist/{chunk-7ZJ662U4.js → chunk-2W4US3JO.js} +3 -3
  152. package/dist/{chunk-NCUSI4ZU.js → chunk-33632WEN.js} +54 -14
  153. package/dist/{chunk-VB3FVKNI.js → chunk-3JAGO633.js} +1 -1
  154. package/dist/{chunk-XA2QKGBJ.js → chunk-3QBQY2XK.js} +1 -1
  155. package/dist/{chunk-2BZ2W2YU.js → chunk-3Z2BSKS5.js} +5 -5
  156. package/dist/{chunk-5U6XAUYM.js → chunk-4FNAPCCK.js} +1 -1
  157. package/dist/{chunk-IJ7KLXUZ.js → chunk-4OHBHPIB.js} +1 -1
  158. package/dist/{chunk-3LKOXQWZ.js → chunk-4QTOAMQN.js} +1 -1
  159. package/dist/{chunk-5YXMKZUA.js → chunk-4XYKBZJE.js} +8 -3
  160. package/dist/{chunk-EHFQMY3B.js → chunk-52UBOSNQ.js} +1 -1
  161. package/dist/{chunk-KCLHYBIZ.js → chunk-56ES76ST.js} +1 -1
  162. package/dist/{chunk-B3BJ66GQ.js → chunk-5JGEEUWQ.js} +2 -2
  163. package/dist/{chunk-WJZTI2WC.js → chunk-5KJOG5YP.js} +7 -7
  164. package/dist/{chunk-IUBOLGHG.js → chunk-5KKZCSER.js} +1 -1
  165. package/dist/{chunk-7K6LVM5I.js → chunk-63NRTOGO.js} +3 -3
  166. package/dist/chunk-6FS6W3P5.js +37 -0
  167. package/dist/chunk-6FVTKYH6.js +37 -0
  168. package/dist/{chunk-DGXZ635L.js → chunk-6KUOHUY5.js} +29 -24
  169. package/dist/{chunk-5AJR6X75.js → chunk-6V465OCU.js} +1 -1
  170. package/dist/{chunk-FRERGOW3.js → chunk-7IW4BVZF.js} +1 -1
  171. package/dist/{chunk-G3JY2DLC.js → chunk-7L6JJ7VJ.js} +1 -1
  172. package/dist/{chunk-CWJLDCB7.js → chunk-A5ISYHW7.js} +3 -3
  173. package/dist/{chunk-SDHLAW3G.js → chunk-AAP7A6WV.js} +2 -2
  174. package/dist/{chunk-AQCWYVE3.js → chunk-AC255TMQ.js} +1 -1
  175. package/dist/{chunk-K4LZXSKZ.js → chunk-AEFR4M2W.js} +1 -1
  176. package/dist/{chunk-GC3UQZPL.js → chunk-AEUZU5SA.js} +1 -1
  177. package/dist/{chunk-5MOBCUNA.js → chunk-AHPMAPVN.js} +2 -2
  178. package/dist/{chunk-2HBY3FOZ.js → chunk-AP6SM6BL.js} +3 -3
  179. package/dist/{chunk-NTGAPLMJ.js → chunk-BC4H2EMM.js} +1 -1
  180. package/dist/{chunk-OGOLTPFQ.js → chunk-BCZQDB3U.js} +1 -1
  181. package/dist/{chunk-QW4LAFTX.js → chunk-BK4KUIAZ.js} +1 -1
  182. package/dist/{chunk-T2GC7UAP.js → chunk-C34CKBKF.js} +1 -1
  183. package/dist/{chunk-LAZ72JOP.js → chunk-CQIODINH.js} +2 -2
  184. package/dist/{chunk-HZBXC3YD.js → chunk-CTNQOSQF.js} +2 -2
  185. package/dist/{chunk-3N3XK2G5.js → chunk-CZKEABMI.js} +3 -1
  186. package/dist/{chunk-HZPUMGQV.js → chunk-D4MMW2NF.js} +3 -3
  187. package/dist/{chunk-K66TAOJA.js → chunk-DBH7ORCH.js} +2 -2
  188. package/dist/{chunk-FXGQWLZ6.js → chunk-DK7CXQFY.js} +1 -1
  189. package/dist/{chunk-RO5JU6SN.js → chunk-E23AXDKL.js} +1 -1
  190. package/dist/{chunk-SKGOKLJD.js → chunk-E2XDYCFO.js} +1 -1
  191. package/dist/{chunk-XSJSDNRR.js → chunk-EF3CJDZO.js} +3 -3
  192. package/dist/{chunk-ZXXZESCD.js → chunk-EMDRNB23.js} +3 -3
  193. package/dist/{chunk-BHVEHAAX.js → chunk-EMXUREKE.js} +3 -3
  194. package/dist/{chunk-3P7XS5VT.js → chunk-FBNGCPKZ.js} +2 -2
  195. package/dist/{chunk-OMV5W53A.js → chunk-FIX72ZEC.js} +15 -1
  196. package/dist/{chunk-QWRAWKB2.js → chunk-FMOYO5OO.js} +2 -2
  197. package/dist/{chunk-GYVEKHVI.js → chunk-FP6OFRAU.js} +1 -1
  198. package/dist/{chunk-AVWEXCJ4.js → chunk-GA773IOZ.js} +2 -2
  199. package/dist/{chunk-XJMES7AE.js → chunk-GBBRSZ2J.js} +1 -1
  200. package/dist/{chunk-SNQ7PH3D.js → chunk-GDYZPBLI.js} +1 -1
  201. package/dist/{chunk-DRFOTWJE.js → chunk-GWRU4JHQ.js} +2 -2
  202. package/dist/{chunk-3NO5GRZY.js → chunk-HMXTZKAI.js} +4 -4
  203. package/dist/{chunk-QDGHOGSW.js → chunk-HTCNTCBE.js} +2 -2
  204. package/dist/{chunk-SRHLFQ4J.js → chunk-HU5PAZMU.js} +3 -3
  205. package/dist/{chunk-T5HZ5AYW.js → chunk-IA3NL54W.js} +4 -4
  206. package/dist/{chunk-3IWZVEXA.js → chunk-IAR2ULSK.js} +1 -1
  207. package/dist/{chunk-4ME4J3YY.js → chunk-IDBGDMQS.js} +1 -1
  208. package/dist/{chunk-WSHKY7SH.js → chunk-IGECN5B6.js} +1 -1
  209. package/dist/{chunk-OMMHKM6I.js → chunk-IYJCJOHW.js} +1 -1
  210. package/dist/{chunk-YTIXNVS7.js → chunk-J3QFTG4B.js} +3 -3
  211. package/dist/{chunk-TGGYSQRD.js → chunk-JK6WLRYP.js} +34 -22
  212. package/dist/{chunk-NKBKHOMU.js → chunk-JQCKRABK.js} +1 -1
  213. package/dist/{chunk-PICHV3PC.js → chunk-JZADK2FT.js} +3 -3
  214. package/dist/{chunk-4RLUVHYP.js → chunk-L72GPZ56.js} +1 -1
  215. package/dist/{chunk-EC6EUIAD.js → chunk-LCAKSEMB.js} +1 -1
  216. package/dist/{chunk-IPMJGK2Q.js → chunk-LYVWOAUN.js} +1 -1
  217. package/dist/{chunk-CFJ7FQZI.js → chunk-M6EVTMTK.js} +1 -1
  218. package/dist/{chunk-TGSOHXXH.js → chunk-M6G7XLLP.js} +1 -1
  219. package/dist/{chunk-JIBWNHTC.js → chunk-MIQNKO2R.js} +1 -1
  220. package/dist/{chunk-QGEDXYLB.js → chunk-MJ73YBP2.js} +2 -2
  221. package/dist/{chunk-BBKYJQZ6.js → chunk-MOP4D5HF.js} +5 -5
  222. package/dist/{chunk-Y7PPKQFQ.js → chunk-MTKHMGJH.js} +5 -5
  223. package/dist/{chunk-KQWJWTED.js → chunk-N7H5TFQK.js} +1 -1
  224. package/dist/{chunk-LJ3KWQLP.js → chunk-NBOHNPZB.js} +1 -1
  225. package/dist/{chunk-M576OESX.js → chunk-NKNG6YER.js} +1 -1
  226. package/dist/{chunk-ZDMZP5H4.js → chunk-OAKECTYH.js} +6 -6
  227. package/dist/{chunk-LMEMH6DO.js → chunk-OSU4ELU3.js} +2 -2
  228. package/dist/{chunk-5ILRWUE7.js → chunk-P667Y6NQ.js} +1 -1
  229. package/dist/{chunk-LGPTZGHJ.js → chunk-PF6X74C5.js} +8 -8
  230. package/dist/{chunk-6FAI4VLM.js → chunk-PJMDZEWY.js} +1 -1
  231. package/dist/{chunk-OSH55AKI.js → chunk-PMO6W5NE.js} +3 -3
  232. package/dist/{chunk-ZPTKAYJK.js → chunk-QH2YJDRI.js} +1 -1
  233. package/dist/{chunk-VTQSSU2E.js → chunk-QND44ROZ.js} +1 -1
  234. package/dist/{chunk-AELKT34H.js → chunk-QPRTTTUN.js} +1 -1
  235. package/dist/{chunk-7ZSEUO5Q.js → chunk-QZKGFBAR.js} +2 -2
  236. package/dist/{chunk-OC6BMY3C.js → chunk-RBR4AHBT.js} +1 -1
  237. package/dist/chunk-ROFAWLFS.js +352 -0
  238. package/dist/{chunk-VONEKR3J.js → chunk-RPCIU4S5.js} +1 -1
  239. package/dist/{chunk-2NNMBEJV.js → chunk-RSI6EJSH.js} +5 -5
  240. package/dist/{chunk-GNJXUNEU.js → chunk-RVJJZVVS.js} +1 -1
  241. package/dist/{chunk-V6WDJUYK.js → chunk-SF6FUU42.js} +1 -1
  242. package/dist/{chunk-CVKANYHD.js → chunk-SSN7Y3UY.js} +1 -1
  243. package/dist/{chunk-BMBQ6UMD.js → chunk-TAWPKNNZ.js} +1 -1
  244. package/dist/{chunk-I4IO56EY.js → chunk-TKAERQQF.js} +1 -1
  245. package/dist/{chunk-AXEXOAZQ.js → chunk-TVGTMKYO.js} +1 -1
  246. package/dist/{chunk-FPU7AA3X.js → chunk-UUDQEDHQ.js} +72 -26
  247. package/dist/{chunk-2SVQBQAD.js → chunk-V7WDP3HR.js} +3 -3
  248. package/dist/{chunk-65RFU7LF.js → chunk-VDQGWPGQ.js} +4 -1
  249. package/dist/{chunk-H4WQWCHP.js → chunk-VULZ4FAA.js} +2 -2
  250. package/dist/{chunk-UAUP6XGK.js → chunk-WDLAAZFZ.js} +30 -24
  251. package/dist/{chunk-6EZX26BD.js → chunk-WF2UJYCT.js} +1 -1
  252. package/dist/{chunk-EVM6GYZ2.js → chunk-WSR4OB4T.js} +1 -1
  253. package/dist/{chunk-LM3ISVJA.js → chunk-X4HBZSXA.js} +1 -1
  254. package/dist/{chunk-CDNZTCP2.js → chunk-XHQ2JJCB.js} +2 -2
  255. package/dist/{chunk-O3II3KJY.js → chunk-XLVWSNW3.js} +3 -3
  256. package/dist/{chunk-TXOTL7AA.js → chunk-YEQTGPCE.js} +3 -3
  257. package/dist/{chunk-ZWCK4N4L.js → chunk-YS4PWTNL.js} +1 -1
  258. package/dist/{chunk-B3PK2LND.js → chunk-YYKLPEOS.js} +1 -1
  259. package/dist/chunk-Z6E3WOWS.js +189 -0
  260. package/dist/{chunk-ETNQYT5O.js → chunk-ZGKGSW42.js} +2 -2
  261. package/dist/{chunk-OPVTNHPH.js → chunk-ZKC3QFDX.js} +2 -2
  262. package/dist/{chunk-NTRKC2JV.js → chunk-ZUWEVSDP.js} +1 -1
  263. package/dist/generated/index.d.ts +2 -0
  264. package/dist/generated/index.js +133 -131
  265. package/dist/index.js +133 -131
  266. package/dist/styles.css +391 -12
  267. package/dist/utils/index.js +2 -2
  268. package/package.json +3 -3
  269. package/scripts/check-css-literals.mjs +3 -4
  270. package/dist/chunk-DWQYV5AV.js +0 -141
  271. package/dist/chunk-ZDWAIVWL.js +0 -310
  272. /package/dist/{chunk-VNACAMDK.js → chunk-2DYEPDT7.js} +0 -0
@@ -1,19 +1,22 @@
1
- export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-2BZ2W2YU.js';
2
- import '../chunk-3IWZVEXA.js';
1
+ export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-3Z2BSKS5.js';
2
+ import '../chunk-IAR2ULSK.js';
3
3
  import '../chunk-YGRTX67J.js';
4
4
  import '../chunk-EE3DJMSQ.js';
5
- import '../chunk-EC6EUIAD.js';
6
- import '../chunk-L72URIHR.js';
7
- import '../chunk-KCLHYBIZ.js';
5
+ import '../chunk-LCAKSEMB.js';
6
+ import '../chunk-56ES76ST.js';
8
7
  import '../chunk-NICEDVZM.js';
9
8
  import '../chunk-PGCLHYVP.js';
10
- import '../chunk-DGXZ635L.js';
9
+ import '../chunk-6KUOHUY5.js';
11
10
  import '../chunk-XSPCITPN.js';
12
- import '../chunk-OMV5W53A.js';
13
11
  import '../chunk-2YTOOH3A.js';
12
+ import '../chunk-WDLAAZFZ.js';
13
+ import '../chunk-TDFLCUBE.js';
14
+ import '../chunk-QZKGFBAR.js';
15
+ import '../chunk-L72URIHR.js';
16
+ import '../chunk-HTS5RJ7S.js';
17
+ import '../chunk-FIX72ZEC.js';
14
18
  import '../chunk-TUEM2XIW.js';
15
19
  import '../chunk-4ITETIGZ.js';
16
- import '../chunk-UAUP6XGK.js';
17
20
  import '../chunk-PQADV6P6.js';
18
21
  import '../chunk-2G355KDJ.js';
19
22
  import '../chunk-UT6CW3C7.js';
@@ -1,5 +1,5 @@
1
- export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from '../chunk-JIBWNHTC.js';
2
- import '../chunk-OMV5W53A.js';
1
+ export { ToastProvider, Toaster, readingDuration, toasterInsetStyle, useToast } from '../chunk-MIQNKO2R.js';
2
+ import '../chunk-FIX72ZEC.js';
3
3
  import '../chunk-TUEM2XIW.js';
4
4
  import '../chunk-4ITETIGZ.js';
5
5
  import '../chunk-UT6CW3C7.js';
@@ -1,5 +1,5 @@
1
1
  export { Toolbar, ToolbarOverflow, ToolbarWide } from '../chunk-NXFTCPF6.js';
2
- import '../chunk-OMV5W53A.js';
2
+ import '../chunk-FIX72ZEC.js';
3
3
  import '../chunk-TUEM2XIW.js';
4
4
  import '../chunk-4ITETIGZ.js';
5
5
  import '../chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
- export { Tooltip } from '../chunk-7ZSEUO5Q.js';
2
- import '../chunk-HTS5RJ7S.js';
1
+ export { Tooltip } from '../chunk-QZKGFBAR.js';
3
2
  import '../chunk-L72URIHR.js';
4
- import '../chunk-OMV5W53A.js';
3
+ import '../chunk-HTS5RJ7S.js';
4
+ import '../chunk-FIX72ZEC.js';
5
5
  import '../chunk-TUEM2XIW.js';
6
6
  import '../chunk-4ITETIGZ.js';
7
7
  import '../chunk-ODEQTPFM.js';
@@ -76,7 +76,7 @@
76
76
  * of its suite.
77
77
  */
78
78
  import { type KeyboardEvent, type MouseEvent, type ReactNode, type Ref } from 'react';
79
- import { type CanvasGround, type CanvasLabels } from '../Canvas/index.js';
79
+ import { type CanvasGround, type CanvasLabels, type CanvasSize, type CanvasView } from '../Canvas/index.js';
80
80
  import { type TreeConnectorShape, type TreeInput, type TreeItemAction, type LayoutRanks, type TreeModel, type TreeViewHandle } from '../Tree/index.js';
81
81
  import type { NodeHue } from '../utils/nodeHue.js';
82
82
  /** A card of the layout: its id and the cards nested under it. */
@@ -259,6 +259,12 @@ export interface TreeCanvasGroup {
259
259
  */
260
260
  memberIds: readonly string[];
261
261
  }
262
+ /** The id of the probe the gaps between cards are measured from. */
263
+ /**
264
+ * The zoom below which a branch's add mark waits for a zoom in: under it a
265
+ * full pointer target no longer fits between two ranks. The card's own menu still adds.
266
+ */
267
+ export declare const TREE_ADD_MARK_MIN_ZOOM = 0.4;
262
268
  export interface TreeCanvasProps {
263
269
  /** The accessible name of the chart, such as "Structure chart". */
264
270
  label: string;
@@ -313,6 +319,11 @@ export interface TreeCanvasProps {
313
319
  * surface and the branch is the chart's own ink.
314
320
  */
315
321
  cardTone?: ((id: string) => TreeCardTone | undefined) | undefined;
322
+ /**
323
+ * A card pushed back, such as a seat a status filter leaves out: drawn in
324
+ * grey at full contrast, so the cards that are not stand out. Asked per card.
325
+ */
326
+ cardDimmed?: ((id: string) => boolean) | undefined;
316
327
  /**
317
328
  * How a card is drawn.
318
329
  *
@@ -401,6 +412,10 @@ export interface TreeCanvasProps {
401
412
  controlsExtra?: ReactNode | undefined;
402
413
  /** Bars stacked under the canvas's control bar: see [CanvasProps.controlsBelow]. */
403
414
  controlsBelow?: ReactNode | undefined;
415
+ /** A bar in the corner opposite the control bar: see [CanvasProps.controlsStart]. */
416
+ controlsStart?: ReactNode | undefined;
417
+ /** A bar across the canvas from the control bar, such as a status legend: see [CanvasProps.overlayEnd]. */
418
+ overlayEnd?: ReactNode | undefined;
404
419
  /** A note under the canvas's controls, about a key or a state: see [CanvasProps.hint]. */
405
420
  hint?: ReactNode | undefined;
406
421
  /**
@@ -418,7 +433,28 @@ export interface TreeCanvasProps {
418
433
  composing?: TreeComposing | null | undefined;
419
434
  /** The canvas control labels, for another language. */
420
435
  labels?: Partial<CanvasLabels> | undefined;
436
+ /**
437
+ * The smallest zoom a fit may take: see [CanvasProps.minZoom]. A chart that
438
+ * must always open whole, however wide, names a floor under the canvas's own.
439
+ */
440
+ minZoom?: number | undefined;
441
+ /** The open nodes, when the caller holds them, to keep them across a visit: see [TreeStateOptions.expanded]. */
442
+ expanded?: ReadonlySet<string> | undefined;
443
+ /** The open nodes a toggle, or an expand or collapse of everything, has just produced. */
444
+ onExpandedChange?: ((expanded: ReadonlySet<string>) => void) | undefined;
445
+ /** Where the view is going, after a fit, a zoom or a pan: see [CanvasProps.onViewChange]. */
446
+ onViewChange?: ((view: CanvasView, viewport: CanvasSize) => void) | undefined;
447
+ /**
448
+ * Fits the whole chart again whenever this value changes, once the layout it
449
+ * asks for is placed: a branch opened, the arrangement switched, a filter
450
+ * chosen. A reader's own zoom or pan holds until it next changes.
451
+ */
452
+ fitKey?: string | number | undefined;
453
+ /** The view to open on instead of the fit: see [CanvasProps.initialView]. */
454
+ initialView?: CanvasView | undefined;
455
+ /** A resize refits a view still at its fit: see [CanvasProps.refitOnResize]. */
456
+ refitOnResize?: boolean | undefined;
421
457
  ref?: Ref<TreeCanvasHandle> | undefined;
422
458
  className?: string | undefined;
423
459
  }
424
- export declare function TreeCanvas({ label, nodes, cards, cardOf, renderCard, renderUnder, cardTone, appearance, ranks, connector, groups, onNodeKey, onNodeKeyDown, hasNodeMenu, selectedId, onSelect, anchorNode, overlay, controlsPlacement, controlsExtra, controlsBelow, hint, dimmed, ground, composing, labels, ref, className, }: TreeCanvasProps): import("react").JSX.Element;
460
+ export declare function TreeCanvas({ label, nodes, cards, cardOf, renderCard, renderUnder, cardTone, appearance, ranks, connector, groups, onNodeKey, onNodeKeyDown, hasNodeMenu, selectedId, onSelect, anchorNode, overlay, controlsPlacement, controlsExtra, controlsBelow, controlsStart, overlayEnd, hint, dimmed, ground, composing, labels, minZoom, expanded: held, onExpandedChange, onViewChange, fitKey, initialView, refitOnResize, cardDimmed, ref, className, }: TreeCanvasProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './TreeCanvas.css';
2
- export { TreeCanvas } from './TreeCanvas.js';
2
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from './TreeCanvas.js';
3
3
  export type { TreeActionsProps, TreeCanvasGroup, TreeCanvasHandle, TreeCanvasProps, TreeCardContext, TreeCardInput, TreeCardTone, TreeComposing, TreeItemProps, } from './TreeCanvas.js';
@@ -1,17 +1,18 @@
1
- export { TreeCanvas } from '../chunk-FPU7AA3X.js';
1
+ export { TREE_ADD_MARK_MIN_ZOOM, TreeCanvas } from '../chunk-UUDQEDHQ.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-NCUSI4ZU.js';
4
- import '../chunk-LM3ISVJA.js';
3
+ import '../chunk-33632WEN.js';
4
+ import '../chunk-X4HBZSXA.js';
5
5
  import '../chunk-YJQXESOJ.js';
6
- import '../chunk-7ZSEUO5Q.js';
7
- import '../chunk-HTS5RJ7S.js';
8
- import '../chunk-L72URIHR.js';
9
6
  import '../chunk-CMAZZY2I.js';
10
- import '../chunk-DGXZ635L.js';
7
+ import '../chunk-6KUOHUY5.js';
11
8
  import '../chunk-XSPCITPN.js';
12
- import '../chunk-OMV5W53A.js';
9
+ import '../chunk-WDLAAZFZ.js';
10
+ import '../chunk-TDFLCUBE.js';
11
+ import '../chunk-QZKGFBAR.js';
12
+ import '../chunk-L72URIHR.js';
13
+ import '../chunk-HTS5RJ7S.js';
14
+ import '../chunk-FIX72ZEC.js';
13
15
  import '../chunk-TUEM2XIW.js';
14
16
  import '../chunk-4ITETIGZ.js';
15
- import '../chunk-UAUP6XGK.js';
16
17
  import '../chunk-UT6CW3C7.js';
17
18
  import '../chunk-ODEQTPFM.js';
@@ -17,6 +17,8 @@
17
17
  */
18
18
 
19
19
  .crewlet-tree-canvas {
20
+ /* The canvas's zoom, written by the component as the view moves. */
21
+ --crewlet-tree-canvas-zoom: 1;
20
22
  display: flex;
21
23
  flex-direction: column;
22
24
  height: 100%;
@@ -336,6 +338,28 @@
336
338
  transition: opacity var(--motion-duration-fast) var(--motion-easing-default);
337
339
  }
338
340
 
341
+ /* A CARD PUSHED BACK loses its colour and keeps its contrast, so the others stand out. */
342
+ .crewlet-tree-canvas__card[data-dimmed] {
343
+ filter: grayscale(1);
344
+ }
345
+
346
+ /* Reached by the keyboard it comes back in colour, so its focus ring keeps its own. */
347
+ .crewlet-tree-canvas__card[data-dimmed]:has(:focus-visible) {
348
+ filter: none;
349
+ }
350
+
351
+ /* AN ADD MARK STAYS A FULL POINTER TARGET at any zoom: the zoom is undone
352
+ below 100%, and the mark grows down its branch, off its card. */
353
+ .crewlet-tree-canvas__under > .crewlet-add-pill {
354
+ scale: max(1, calc(1 / var(--crewlet-tree-canvas-zoom)));
355
+ transform-origin: 50% 0;
356
+ }
357
+
358
+ /* Too far out for one between two ranks, it waits for a zoom in. */
359
+ .crewlet-tree-canvas[data-zoomed-out] .crewlet-tree-canvas__under > .crewlet-add-pill {
360
+ visibility: hidden;
361
+ }
362
+
339
363
  /*
340
364
  * And a band that turned out empty takes no room at all. The component draws no
341
365
  * slot for a caller that returns nothing; a caller can also return a component
@@ -49,6 +49,16 @@ export interface TreeGridColumn {
49
49
  * padding on either side: `calc(var(--size-control-sm) + var(--spacing-2) * 2)`.
50
50
  */
51
51
  width?: string | undefined;
52
+ /**
53
+ * The grid's own width, in CSS pixels, below which this column is left out
54
+ * with its header. A cell's words can then move into another column's.
55
+ */
56
+ hideBelow?: number | undefined;
57
+ /**
58
+ * `sm` draws the column's values a step smaller, in the 11px of the caption
59
+ * under a name, for values read after the row's name. `md` is the grid's own.
60
+ */
61
+ size?: 'md' | 'sm' | undefined;
52
62
  }
53
63
  /** A row that holds only controls, such as an inline Add row. */
54
64
  export interface TreeGridAddRow {
@@ -78,6 +88,10 @@ export interface TreeGridContext {
78
88
  };
79
89
  menuOpen(id: string): boolean;
80
90
  setMenuOpen(id: string, open: boolean): void;
91
+ /** The key of the column drawn at this one based position, which moves as columns are left out. */
92
+ columnKey(column: number): string | undefined;
93
+ /** Whether the column with this key is drawn at the grid's width (`hideBelow`). */
94
+ shown(key: string): boolean;
81
95
  }
82
96
  /** Every string the grid renders on its own. */
83
97
  export interface TreeGridLabels {
@@ -107,9 +121,9 @@ export interface TreeGridProps {
107
121
  * Whether a cell holds a control that takes the grid's tab stop for itself
108
122
  * (a menu trigger, a chooser, a button). It is asked per row as well as per
109
123
  * column, because one column often holds a control on some rows and plain
110
- * text on others.
124
+ * text on others. `key` is the drawn column's own key.
111
125
  */
112
- cellHasControl?: ((id: string, column: number) => boolean) | undefined;
126
+ cellHasControl?: ((id: string, column: number, key: string) => boolean) | undefined;
113
127
  /**
114
128
  * Carries out Enter (activate) or Delete and Backspace (remove) on a row.
115
129
  * Return false when the row has no such action, so the key travels on.
@@ -163,8 +177,17 @@ export interface TreeGridProps {
163
177
  * because the header row is still there; only its band is not drawn.
164
178
  */
165
179
  headless?: boolean | undefined;
180
+ /**
181
+ * `scroll` (the default) keeps a minimum width and scrolls sideways below
182
+ * it. `container` never scrolls sideways: it fills its container, leaves out
183
+ * the columns its width cannot hold (`hideBelow`), and its header holds at
184
+ * the top of the page's scroll as the rows pass under it.
185
+ */
186
+ layout?: 'scroll' | 'container' | undefined;
187
+ /** The grid's own width, in CSS pixels, as it is measured and whenever it changes. */
188
+ onWidthChange?: ((width: number) => void) | undefined;
166
189
  labels?: Partial<TreeGridLabels> | undefined;
167
190
  ref?: Ref<TreeViewHandle> | undefined;
168
191
  className?: string | undefined;
169
192
  }
170
- export declare function TreeGrid({ label, columns, rows: forest, renderCell, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, readOnly, defaultExpanded, expanded: held, onExpandedChange, headless, labels, ref, className, }: TreeGridProps): import("react").JSX.Element;
193
+ export declare function TreeGrid({ label, columns, rows: forest, renderCell, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, readOnly, defaultExpanded, expanded: held, onExpandedChange, headless, layout, onWidthChange, labels, ref, className, }: TreeGridProps): import("react").JSX.Element;
@@ -1,9 +1,13 @@
1
- export { TreeGrid } from '../chunk-ZDWAIVWL.js';
1
+ export { TreeGrid } from '../chunk-ROFAWLFS.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-LM3ISVJA.js';
4
- import '../chunk-OMV5W53A.js';
3
+ import '../chunk-X4HBZSXA.js';
4
+ import '../chunk-WDLAAZFZ.js';
5
+ import '../chunk-TDFLCUBE.js';
6
+ import '../chunk-QZKGFBAR.js';
7
+ import '../chunk-L72URIHR.js';
8
+ import '../chunk-HTS5RJ7S.js';
9
+ import '../chunk-FIX72ZEC.js';
5
10
  import '../chunk-TUEM2XIW.js';
6
11
  import '../chunk-4ITETIGZ.js';
7
- import '../chunk-UAUP6XGK.js';
8
12
  import '../chunk-UT6CW3C7.js';
9
13
  import '../chunk-ODEQTPFM.js';
@@ -52,6 +52,25 @@
52
52
  font-size: var(--font-size-compact);
53
53
  }
54
54
 
55
+ /* A CONTAINER-WIDTH GRID never scrolls sideways: it leaves out the columns its
56
+ width cannot hold, so its header can hold at the top of the page's scroll. */
57
+ .crewlet-tree-grid--container .crewlet-tree-grid__scroller {
58
+ overflow: visible;
59
+ }
60
+
61
+ .crewlet-tree-grid--container .crewlet-tree-grid__grid {
62
+ min-width: 0;
63
+ }
64
+
65
+ .crewlet-tree-grid--container .crewlet-tree-grid__head {
66
+ position: sticky;
67
+ top: 0;
68
+ z-index: var(--z-index-sticky);
69
+ background: var(--color-surface-subtle);
70
+ border-start-start-radius: calc(var(--radius-lg) - 1px);
71
+ border-start-end-radius: calc(var(--radius-lg) - 1px);
72
+ }
73
+
55
74
  /*
56
75
  * INSIDE A FLUSH CARD THE CARD IS THE FRAME. A flush card exists so that a
57
76
  * table's rows reach its edges (Card.css), and a grid that drew its own border
@@ -97,6 +116,11 @@
97
116
  padding: 0 var(--spacing-2);
98
117
  }
99
118
 
119
+ /* A COLUMN OF VALUES READ AFTER THE NAME takes the caption's size, a step under the name's. */
120
+ .crewlet-tree-grid__cell[data-size='sm'] {
121
+ font-size: var(--font-size-2xs);
122
+ }
123
+
100
124
  /*
101
125
  * The indent is the row's own level, set on the row, ON TOP OF the inset every
102
126
  * cell has. Replacing that inset left a top-level row's chevron flush against
@@ -1,15 +1,19 @@
1
- export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-YTIXNVS7.js';
2
- import '../chunk-3IWZVEXA.js';
3
- import '../chunk-AQCWYVE3.js';
1
+ export { REFERENCE_NAME_PATTERN, ValueField, completeReference, isWholeReference, rankReferences, referenceAt, urlSchemeOf } from '../chunk-J3QFTG4B.js';
2
+ import '../chunk-IAR2ULSK.js';
3
+ import '../chunk-AC255TMQ.js';
4
4
  import '../chunk-YGRTX67J.js';
5
- import '../chunk-KCLHYBIZ.js';
5
+ import '../chunk-56ES76ST.js';
6
6
  import '../chunk-NICEDVZM.js';
7
7
  import '../chunk-PGCLHYVP.js';
8
- import '../chunk-OMV5W53A.js';
9
8
  import '../chunk-2YTOOH3A.js';
9
+ import '../chunk-WDLAAZFZ.js';
10
+ import '../chunk-TDFLCUBE.js';
11
+ import '../chunk-QZKGFBAR.js';
12
+ import '../chunk-L72URIHR.js';
13
+ import '../chunk-HTS5RJ7S.js';
14
+ import '../chunk-FIX72ZEC.js';
10
15
  import '../chunk-TUEM2XIW.js';
11
16
  import '../chunk-4ITETIGZ.js';
12
- import '../chunk-UAUP6XGK.js';
13
17
  import '../chunk-PQADV6P6.js';
14
18
  import '../chunk-2G355KDJ.js';
15
19
  import '../chunk-UT6CW3C7.js';
@@ -1,20 +1,23 @@
1
- export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-VTQSSU2E.js';
1
+ export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-QND44ROZ.js';
2
2
  import '../chunk-AOFVXE6V.js';
3
- import '../chunk-EVM6GYZ2.js';
4
- import '../chunk-GYVEKHVI.js';
5
- import '../chunk-OMMHKM6I.js';
3
+ import '../chunk-WSR4OB4T.js';
4
+ import '../chunk-FP6OFRAU.js';
5
+ import '../chunk-IYJCJOHW.js';
6
6
  import '../chunk-EGMQURBR.js';
7
7
  import '../chunk-QRE6JCHS.js';
8
- import '../chunk-TGGYSQRD.js';
9
- import '../chunk-L72URIHR.js';
8
+ import '../chunk-JK6WLRYP.js';
10
9
  import '../chunk-PPUR46MK.js';
11
- import '../chunk-DGXZ635L.js';
10
+ import '../chunk-6KUOHUY5.js';
12
11
  import '../chunk-XSPCITPN.js';
13
- import '../chunk-OMV5W53A.js';
14
12
  import '../chunk-2YTOOH3A.js';
13
+ import '../chunk-WDLAAZFZ.js';
14
+ import '../chunk-TDFLCUBE.js';
15
+ import '../chunk-QZKGFBAR.js';
16
+ import '../chunk-L72URIHR.js';
17
+ import '../chunk-HTS5RJ7S.js';
18
+ import '../chunk-FIX72ZEC.js';
15
19
  import '../chunk-TUEM2XIW.js';
16
20
  import '../chunk-4ITETIGZ.js';
17
- import '../chunk-UAUP6XGK.js';
18
21
  import '../chunk-D2GT3CR4.js';
19
22
  import '../chunk-PQADV6P6.js';
20
23
  import '../chunk-UT6CW3C7.js';
@@ -1,11 +1,18 @@
1
- export { VersionTimeline } from '../chunk-NTGAPLMJ.js';
1
+ export { VersionTimeline } from '../chunk-BC4H2EMM.js';
2
2
  import '../chunk-HF5L56YQ.js';
3
3
  import '../chunk-EJNJMHQG.js';
4
4
  import '../chunk-RE3FBGQQ.js';
5
5
  import '../chunk-YTLWOHOY.js';
6
6
  import '../chunk-XZY6S3UC.js';
7
7
  import '../chunk-ZDJQQ4LU.js';
8
- import '../chunk-DGXZ635L.js';
8
+ import '../chunk-6KUOHUY5.js';
9
9
  import '../chunk-XSPCITPN.js';
10
+ import '../chunk-TDFLCUBE.js';
11
+ import '../chunk-QZKGFBAR.js';
12
+ import '../chunk-L72URIHR.js';
13
+ import '../chunk-HTS5RJ7S.js';
14
+ import '../chunk-FIX72ZEC.js';
15
+ import '../chunk-TUEM2XIW.js';
16
+ import '../chunk-4ITETIGZ.js';
10
17
  import '../chunk-UT6CW3C7.js';
11
18
  import '../chunk-ODEQTPFM.js';
@@ -1,6 +1,6 @@
1
1
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
- import './Link-CLURSR2O.css';
3
+ import './Link-Z23PLCVS.css';
4
4
  import { forwardRef, Children, isValidElement, cloneElement } from 'react';
5
5
  import { ExternalLinkGlyph } from '@crewlethq/icons/glyphs';
6
6
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
- import { Switch } from './chunk-3N3XK2G5.js';
1
+ import { Switch } from './chunk-CZKEABMI.js';
2
2
  import { useReorder } from './chunk-BVML4UVB.js';
3
- import { Checkbox } from './chunk-TGSOHXXH.js';
4
- import { IconButton } from './chunk-UAUP6XGK.js';
3
+ import { Checkbox } from './chunk-M6G7XLLP.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 './ArrangeList-F6Y43I24.css';
@@ -1,13 +1,13 @@
1
- import { LayerNodeBridge } from './chunk-LM3ISVJA.js';
2
- import { Tooltip } from './chunk-7ZSEUO5Q.js';
1
+ import { LayerNodeBridge } from './chunk-X4HBZSXA.js';
3
2
  import { Kbd } from './chunk-CMAZZY2I.js';
4
- import { Button } from './chunk-DGXZ635L.js';
5
- import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-OMV5W53A.js';
3
+ import { Button } from './chunk-6KUOHUY5.js';
4
+ import { IconButton } from './chunk-WDLAAZFZ.js';
5
+ import { Tooltip } from './chunk-QZKGFBAR.js';
6
+ import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-FIX72ZEC.js';
6
7
  import { returnFocus } from './chunk-4ITETIGZ.js';
7
- import { IconButton } from './chunk-UAUP6XGK.js';
8
8
  import { VisuallyHidden } from './chunk-UT6CW3C7.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
10
- import './Canvas-4QJHVLJ4.css';
10
+ import './Canvas-UQVR7IUL.css';
11
11
  import { useId, useRef, useState, useCallback, useLayoutEffect, useImperativeHandle, useEffect } from 'react';
12
12
  import { ZoomOutGlyph, ZoomInGlyph, FullscreenGlyph } from '@crewlethq/icons/glyphs';
13
13
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -180,6 +180,8 @@ function Canvas({
180
180
  controlsExtra,
181
181
  controlsActualSize = false,
182
182
  controlsBelow,
183
+ controlsStart,
184
+ overlayEnd,
183
185
  hint,
184
186
  largestItemWidth,
185
187
  dimmed = false,
@@ -191,6 +193,7 @@ function Canvas({
191
193
  labels,
192
194
  onReady,
193
195
  onViewChange,
196
+ initialView,
194
197
  ref,
195
198
  className
196
199
  }) {
@@ -212,15 +215,24 @@ function Canvas({
212
215
  contentNow.current = content;
213
216
  touchNow.current = touchActive;
214
217
  sizeNow.current = size;
215
- const limits = zoomLimits(content, size, largestItemWidth, CANVAS_FIT_PADDING, minZoom);
218
+ const endBar = useRef(null);
219
+ const hasEnd = overlayEnd !== void 0 && overlayEnd !== null && overlayEnd !== false;
220
+ const [band, setBand] = useState({ top: 0, bottom: 0 });
221
+ const bandNow = useRef(band);
222
+ const room = { width: size.width, height: Math.max(0, size.height - band.top - band.bottom) };
223
+ const limits = zoomLimits(content, room, largestItemWidth, CANVAS_FIT_PADDING, minZoom);
216
224
  const limitsNow = useRef(limits);
217
225
  limitsNow.current = limits;
218
226
  const floorNow = useRef(minZoom);
219
227
  floorNow.current = minZoom;
220
- const fitOf = useCallback(
221
- (bounds, viewportSize = sizeNow.current) => fitView(bounds, viewportSize, CANVAS_FIT_PADDING, floorNow.current),
222
- []
223
- );
228
+ const fitOf = useCallback((bounds, viewportSize = sizeNow.current) => {
229
+ const { top, bottom } = bandNow.current;
230
+ const roomy = { width: viewportSize.width, height: Math.max(0, viewportSize.height - top - bottom) };
231
+ const view2 = fitView(bounds, roomy, CANVAS_FIT_PADDING, floorNow.current);
232
+ return top === 0 ? view2 : { ...view2, y: view2.y + top };
233
+ }, []);
234
+ const initialNow = useRef(initialView);
235
+ initialNow.current = initialView;
224
236
  const left = useRef(null);
225
237
  const fitted = useRef(null);
226
238
  const apply = useCallback((next, eased) => {
@@ -249,17 +261,43 @@ function Canvas({
249
261
  observer.observe(el);
250
262
  return () => observer.disconnect();
251
263
  }, []);
264
+ useLayoutEffect(() => {
265
+ const bar = endBar.current;
266
+ const box = viewport.current;
267
+ const read = () => {
268
+ const next = { top: 0, bottom: 0 };
269
+ if (bar && box) {
270
+ const own = bar.getBoundingClientRect();
271
+ const pane = box.getBoundingClientRect();
272
+ if (own.height > 0 && controlsPlacement === "bottom-right") next.top = Math.max(0, own.bottom - pane.top);
273
+ if (own.height > 0 && controlsPlacement === "top-right") next.bottom = Math.max(0, pane.bottom - own.top);
274
+ }
275
+ if (next.top === bandNow.current.top && next.bottom === bandNow.current.bottom) return;
276
+ bandNow.current = next;
277
+ setBand(next);
278
+ };
279
+ read();
280
+ if (!bar || typeof ResizeObserver !== "function") return;
281
+ const observer = new ResizeObserver(read);
282
+ observer.observe(bar);
283
+ return () => observer.disconnect();
284
+ }, [hasEnd, controlsPlacement, size]);
252
285
  const announceReady = useRef(onReady);
253
286
  announceReady.current = onReady;
254
287
  useLayoutEffect(() => {
255
288
  if (ready || !content || size.width <= 0 || size.height <= 0) return;
256
- const first = fitOf(content, size);
289
+ const opening = initialNow.current;
290
+ const first = opening ? clampPan(
291
+ { ...opening, k: Math.min(limits.max, Math.max(Math.min(limits.min, fitOf(content, size).k), opening.k)) },
292
+ content,
293
+ size
294
+ ) : fitOf(content, size);
257
295
  viewNow.current = first;
258
- fitted.current = first;
296
+ fitted.current = opening ? null : first;
259
297
  setView(first);
260
298
  setReady(true);
261
299
  announceReady.current?.();
262
- }, [ready, content, size, fitOf]);
300
+ }, [ready, content, size, fitOf, limits.min, limits.max]);
263
301
  const sizeSeen = useRef(size);
264
302
  useLayoutEffect(() => {
265
303
  if (!ready) return;
@@ -553,6 +591,8 @@ function Canvas({
553
591
  overlay ? /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__overlay", children: overlay }) : null,
554
592
  /* @__PURE__ */ jsx(LayerNodeBridge, { onNode: setLayer })
555
593
  ] }),
594
+ controlsStart ? /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__controls crewlet-canvas__controls--start", "data-placement": controlsPlacement, children: /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__bar", children: controlsStart }) }) : null,
595
+ hasEnd ? /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__controls crewlet-canvas__controls--end", "data-placement": controlsPlacement, children: /* @__PURE__ */ jsx("div", { className: "crewlet-canvas__bar", ref: endBar, children: overlayEnd }) }) : null,
556
596
  (controls || touchActive || controlsBelow || hint) && /*
557
597
  * ONE GROUP IN ONE CORNER, as a column of bars: the zoom bar, then
558
598
  * whatever the caller stacks under it. The console chart's own
@@ -1,5 +1,5 @@
1
1
  import { changeText, sheetLabels } from './chunk-LFSIKGRQ.js';
2
- import { Tooltip } from './chunk-7ZSEUO5Q.js';
2
+ import { Tooltip } from './chunk-QZKGFBAR.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ChangeMark-KFDGBF6G.css';
5
5
  import { jsx } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { Toolbar } from './chunk-NXFTCPF6.js';
2
- import { Button } from './chunk-DGXZ635L.js';
2
+ import { Button } from './chunk-6KUOHUY5.js';
3
3
  import { returnFocus } from './chunk-4ITETIGZ.js';
4
4
  import { announce } from './chunk-2G355KDJ.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,11 +1,11 @@
1
- import { Select } from './chunk-3IWZVEXA.js';
1
+ import { Select } from './chunk-IAR2ULSK.js';
2
2
  import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-EE3DJMSQ.js';
3
- import { Popover } from './chunk-EC6EUIAD.js';
4
- import { Input } from './chunk-KCLHYBIZ.js';
5
- import { Button } from './chunk-DGXZ635L.js';
3
+ import { Popover } from './chunk-LCAKSEMB.js';
4
+ import { Input } from './chunk-56ES76ST.js';
5
+ import { Button } from './chunk-6KUOHUY5.js';
6
+ import { IconButton } from './chunk-WDLAAZFZ.js';
6
7
  import { isComposing } from './chunk-TUEM2XIW.js';
7
8
  import { useFocusModality } from './chunk-4ITETIGZ.js';
8
- import { IconButton } from './chunk-UAUP6XGK.js';
9
9
  import { cx } from './chunk-ODEQTPFM.js';
10
10
  import './TimeWindowPicker-YZPKNZZI.css';
11
11
  import { useMemo, useState, useRef, useId, useEffect } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { StepList } from './chunk-KUMHQY2B.js';
2
- import { ReceiptStrip } from './chunk-ZWCK4N4L.js';
2
+ import { ReceiptStrip } from './chunk-YS4PWTNL.js';
3
3
  import { Meter } from './chunk-RQFRRPV6.js';
4
4
  import { StatusCard } from './chunk-4BEMS6Q7.js';
5
5
  import { Disclosure } from './chunk-NAHA62WD.js';
@@ -1,4 +1,4 @@
1
- import { Button } from './chunk-DGXZ635L.js';
1
+ import { Button } from './chunk-6KUOHUY5.js';
2
2
  import './ErrorBoundary-U2PA3LY2.css';
3
3
  import { Component } from 'react';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,8 +1,8 @@
1
1
  import { useListbox } from './chunk-YGRTX67J.js';
2
2
  import { Tag } from './chunk-SJ3EUCFD.js';
3
+ import { IconButton } from './chunk-WDLAAZFZ.js';
3
4
  import { isComposing } from './chunk-TUEM2XIW.js';
4
5
  import { useFocusModality } from './chunk-4ITETIGZ.js';
5
- import { IconButton } from './chunk-UAUP6XGK.js';
6
6
  import { announce } from './chunk-2G355KDJ.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './TagsInput-MZXEHKJD.css';