@crewlethq/ui 0.32.0 → 0.34.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 (292) hide show
  1. package/README.md +149 -5
  2. package/dist/AccessDeniedCard/AccessDeniedCard.d.ts +5 -0
  3. package/dist/AccessDeniedCard/index.js +1 -5
  4. package/dist/AccessDeniedCard-QVNDMT46.css +8 -0
  5. package/dist/AppShell/index.js +4 -4
  6. package/dist/{AppShell-GCM4TDVY.css → AppShell-JTSEOA57.css} +3 -1
  7. package/dist/ArrangeGroup/ArrangeGroup.d.ts +16 -1
  8. package/dist/ArrangeGroup/index.d.ts +1 -1
  9. package/dist/ArrangeGroup/index.js +1 -1
  10. package/dist/{ArrangeGroup-GY5YMP6E.css → ArrangeGroup-KRWWOJKR.css} +43 -0
  11. package/dist/ArrangeList/index.js +2 -2
  12. package/dist/ArtifactBar/index.js +14 -12
  13. package/dist/{ArtifactBar-MLMJHWY6.css → ArtifactBar-C462VD4C.css} +8 -3
  14. package/dist/ArtifactCard/ArtifactCard.d.ts +64 -6
  15. package/dist/ArtifactCard/index.d.ts +2 -2
  16. package/dist/ArtifactCard/index.js +6 -4
  17. package/dist/ArtifactCard-XHRLAL7C.css +289 -0
  18. package/dist/ArtifactCover/index.js +8 -6
  19. package/dist/ArtifactIcon/index.js +7 -5
  20. package/dist/ArtifactKindIllustration/ArtifactKindIllustration.d.ts +53 -0
  21. package/dist/ArtifactKindIllustration/index.d.ts +3 -0
  22. package/dist/ArtifactKindIllustration/index.js +3 -0
  23. package/dist/ArtifactKindIllustration-4NG6IE3C.css +211 -0
  24. package/dist/ArtifactPanel/ArtifactPanel.d.ts +6 -2
  25. package/dist/ArtifactPanel/index.js +1 -1
  26. package/dist/{ArtifactPanel-YFXT5O77.css → ArtifactPanel-HW3SU7CP.css} +25 -7
  27. package/dist/Avatar/Avatar.d.ts +6 -4
  28. package/dist/Avatar/index.js +2 -2
  29. package/dist/AvatarPicker/index.js +8 -8
  30. package/dist/Callout/index.js +1 -1
  31. package/dist/{Callout-SXXK4B5R.css → Callout-ZAVG3P66.css} +46 -6
  32. package/dist/Canvas/Canvas.d.ts +33 -2
  33. package/dist/Canvas/index.d.ts +1 -1
  34. package/dist/Canvas/index.js +4 -4
  35. package/dist/{Canvas-LRVNW7XN.css → Canvas-VUG2HLZK.css} +23 -0
  36. package/dist/CanvasBoard/CanvasBoard.d.ts +38 -3
  37. package/dist/CanvasBoard/budget.d.ts +9 -3
  38. package/dist/CanvasBoard/index.d.ts +2 -2
  39. package/dist/CanvasBoard/index.js +7 -7
  40. package/dist/{CanvasBoard-MBZVBWDO.css → CanvasBoard-5NNSKY6A.css} +127 -6
  41. package/dist/CanvasToolbar/index.js +5 -5
  42. package/dist/{CanvasToolbar-AE5MXH7T.css → CanvasToolbar-EM5EVZED.css} +4 -2
  43. package/dist/ChangeMark/index.js +4 -4
  44. package/dist/CharacterPicker/index.js +2 -2
  45. package/dist/Charts/ActivityStrip.d.ts +16 -1
  46. package/dist/Charts/BarList.d.ts +6 -0
  47. package/dist/Charts/ChartEmpty.d.ts +33 -0
  48. package/dist/Charts/Legend.d.ts +6 -0
  49. package/dist/Charts/StackedBar.d.ts +4 -1
  50. package/dist/Charts/StackedColumns.d.ts +14 -3
  51. package/dist/Charts/TimeSeries.d.ts +11 -1
  52. package/dist/Charts/index.d.ts +2 -0
  53. package/dist/Charts/index.js +1 -1
  54. package/dist/{Charts-RY4JN5FC.css → Charts-MBJG72BS.css} +140 -16
  55. package/dist/Checkbox/index.js +1 -1
  56. package/dist/{Checkbox-5UORUG3F.css → Checkbox-ALWG3WV2.css} +11 -0
  57. package/dist/CommandPalette/index.js +3 -3
  58. package/dist/{CommandPalette-HBTNKHZQ.css → CommandPalette-7CFGVBND.css} +4 -0
  59. package/dist/CommentThread/index.js +5 -5
  60. package/dist/Container/index.js +1 -1
  61. package/dist/{Container-3TSKMGNI.css → Container-34BAKG7B.css} +3 -1
  62. package/dist/{DashboardCover-RMINBODB.css → DashboardCover-KYGYMRKW.css} +42 -9
  63. package/dist/DataTable/index.js +5 -5
  64. package/dist/{DataTable-WZK3V62B.css → DataTable-NL2YWAIA.css} +4 -1
  65. package/dist/DataView/index.js +8 -8
  66. package/dist/DateTimePicker/index.js +3 -3
  67. package/dist/DocTabsEditor/DocTabsEditor.d.ts +34 -21
  68. package/dist/DocTabsEditor/index.js +4 -1
  69. package/dist/DocTabsEditor-4M452LNS.css +189 -0
  70. package/dist/Document/Document.d.ts +18 -1
  71. package/dist/Document/index.d.ts +2 -2
  72. package/dist/Document/index.js +1 -1
  73. package/dist/{Document-G3YTZIUL.css → Document-JUGCSQ4L.css} +78 -5
  74. package/dist/EditingStatus/index.js +1 -1
  75. package/dist/{EditingStatus-L6THUAN7.css → EditingStatus-NNA2CKIL.css} +17 -4
  76. package/dist/{Editor-YWBUJAQU.js → Editor-UUZ7XKCU.js} +5 -5
  77. package/dist/EntityChip/index.js +3 -3
  78. package/dist/FactList/index.js +3 -3
  79. package/dist/FollowBanner/index.js +3 -3
  80. package/dist/Fullscreen/index.d.ts +1 -0
  81. package/dist/Fullscreen/index.js +1 -1
  82. package/dist/Fullscreen/useIdle.d.ts +16 -0
  83. package/dist/HuePicker/index.js +3 -3
  84. package/dist/ImageUpload/index.js +3 -3
  85. package/dist/Layer/index.d.ts +1 -1
  86. package/dist/Layer/index.js +1 -1
  87. package/dist/Layer/place.d.ts +18 -0
  88. package/dist/LayersList/LayersList.d.ts +57 -0
  89. package/dist/LayersList/index.d.ts +3 -0
  90. package/dist/LayersList/index.js +3 -0
  91. package/dist/LayersList-NQZEIPZB.css +82 -0
  92. package/dist/LinkInterstitial/index.js +4 -4
  93. package/dist/ListInput/index.js +1 -1
  94. package/dist/LivePreview/LivePreview.d.ts +83 -0
  95. package/dist/LivePreview/budget.d.ts +50 -0
  96. package/dist/LivePreview/index.d.ts +5 -0
  97. package/dist/LivePreview/index.js +2 -0
  98. package/dist/LivePreview-SRO7KHO4.css +65 -0
  99. package/dist/Markdown/index.js +1 -1
  100. package/dist/MarkdownEditor/index.js +5 -5
  101. package/dist/MediaMatch/index.d.ts +1 -0
  102. package/dist/MediaMatch/index.js +1 -0
  103. package/dist/MediaMatch/useMediaMatch.d.ts +19 -0
  104. package/dist/Menu/index.js +2 -2
  105. package/dist/MergeConflicts/index.js +4 -4
  106. package/dist/Modal/index.js +2 -2
  107. package/dist/{Modal-XOSV6FAH.css → Modal-7MWRCWAI.css} +30 -0
  108. package/dist/Note/index.js +1 -1
  109. package/dist/{Note-ONSKKTOA.css → Note-WI5MLZOO.css} +13 -0
  110. package/dist/OrgLabel/index.js +3 -3
  111. package/dist/OrgNode/index.js +4 -4
  112. package/dist/OrgTable/index.js +7 -7
  113. package/dist/PeopleRail/index.js +3 -3
  114. package/dist/Popover/index.js +2 -2
  115. package/dist/PresenceStack/index.js +3 -3
  116. package/dist/{PresenceStack-QSXQJND5.css → PresenceStack-FJJQVH74.css} +11 -3
  117. package/dist/PresenterView/PresenterView.d.ts +3 -0
  118. package/dist/PresenterView/index.js +5 -3
  119. package/dist/PresenterView-T3EXIQ5S.css +147 -0
  120. package/dist/Principal/index.js +3 -3
  121. package/dist/PrincipalPicker/index.js +4 -4
  122. package/dist/RichEditor/index.js +5 -5
  123. package/dist/RichEditor/schema.d.ts +1 -1
  124. package/dist/RichEditorMarkdown/index.js +3 -3
  125. package/dist/SandboxedFrame/SandboxedFrame.d.ts +44 -2
  126. package/dist/SandboxedFrame/index.d.ts +2 -2
  127. package/dist/SandboxedFrame/index.js +3 -3
  128. package/dist/SandboxedFrame-P5NASXB7.css +72 -0
  129. package/dist/Section/index.js +1 -1
  130. package/dist/{Section-QR3ILQVK.css → Section-O5AHGSOG.css} +28 -5
  131. package/dist/SegmentedControl/index.js +3 -3
  132. package/dist/Select/Select.d.ts +10 -0
  133. package/dist/Select/index.d.ts +1 -1
  134. package/dist/Select/index.js +2 -2
  135. package/dist/{Select-2P7AWUE4.css → Select-A54YS5EP.css} +29 -0
  136. package/dist/ShareDialog/ShareDialog.d.ts +10 -0
  137. package/dist/ShareDialog/index.js +9 -9
  138. package/dist/{ShareDialog-YZ4F37MW.css → ShareDialog-4QDCBWMH.css} +12 -0
  139. package/dist/SheetGrid/SheetGrid.d.ts +7 -3
  140. package/dist/SheetGrid/index.js +8 -8
  141. package/dist/{SheetGrid-J3TKKXZL.css → SheetGrid-GDPCCZ4V.css} +154 -14
  142. package/dist/SheetModel/fit.d.ts +34 -0
  143. package/dist/SheetModel/index.d.ts +1 -0
  144. package/dist/SheetModel/index.js +1 -1
  145. package/dist/SheetModel/labels.d.ts +1 -1
  146. package/dist/Shortcut/index.js +1 -1
  147. package/dist/Skeleton/Skeleton.d.ts +2 -1
  148. package/dist/Skeleton/index.js +1 -1
  149. package/dist/SlideCompare/SlideCompare.d.ts +6 -1
  150. package/dist/SlideCompare/index.js +3 -3
  151. package/dist/{SlideCompare-MGM3U2ME.css → SlideCompare-HTCMPQFY.css} +36 -3
  152. package/dist/SlideFilmstrip/SlideFilmstrip.d.ts +14 -3
  153. package/dist/SlideFilmstrip/index.js +3 -3
  154. package/dist/{SlideFilmstrip-BCLNAHFX.css → SlideFilmstrip-5U6Z55GS.css} +63 -2
  155. package/dist/SlideGrid/index.js +3 -3
  156. package/dist/{SlideGrid-RT6QEQEE.css → SlideGrid-S4LTJ4UU.css} +9 -5
  157. package/dist/SlideNav/SlideNav.d.ts +49 -0
  158. package/dist/SlideNav/index.d.ts +3 -0
  159. package/dist/SlideNav/index.js +4 -0
  160. package/dist/SlideNav-BLFJF6AH.css +53 -0
  161. package/dist/SlideStage/SlideStage.d.ts +9 -1
  162. package/dist/SlideStage/index.js +2 -2
  163. package/dist/{SlideStage-KGRRALXR.css → SlideStage-S2FISF4C.css} +23 -0
  164. package/dist/StatCard/StatCard.d.ts +16 -1
  165. package/dist/StatCard/index.js +1 -1
  166. package/dist/{StatCard-KPAFD4E2.css → StatCard-4T7TMWMN.css} +40 -13
  167. package/dist/Switcher/index.js +6 -6
  168. package/dist/TableCells/index.js +3 -3
  169. package/dist/Tabs/Tabs.d.ts +21 -4
  170. package/dist/Tabs/index.js +1 -1
  171. package/dist/{Tabs-CJGO35BH.css → Tabs-MMZXV5EF.css} +9 -8
  172. package/dist/TagsInput/index.js +1 -1
  173. package/dist/ThemeSwitcher/index.js +4 -4
  174. package/dist/TimeWindowPicker/index.js +4 -4
  175. package/dist/Toaster/index.js +2 -2
  176. package/dist/{Toaster-EOOOTSJT.css → Toaster-C6BQ7L6I.css} +10 -1
  177. package/dist/Toolbar/index.js +1 -1
  178. package/dist/Tooltip/Tooltip.d.ts +12 -1
  179. package/dist/Tooltip/index.d.ts +1 -1
  180. package/dist/Tooltip/index.js +2 -2
  181. package/dist/TreeCanvas/index.js +5 -5
  182. package/dist/TreeGrid/index.js +3 -3
  183. package/dist/VersionCompare/index.js +4 -4
  184. package/dist/VersionTimeline/index.js +4 -4
  185. package/dist/WidgetFrame/WidgetFrame.d.ts +8 -1
  186. package/dist/WidgetFrame/index.js +2 -2
  187. package/dist/{WidgetFrame-LRZIL62O.css → WidgetFrame-BTFW3CRK.css} +49 -5
  188. package/dist/{chunk-WJDQ7XQA.js → chunk-2QEDJSJC.js} +1 -1
  189. package/dist/{chunk-VYDFB6PJ.js → chunk-356JNSER.js} +50 -17
  190. package/dist/{chunk-2HIOJ4YZ.js → chunk-3EB2AV3H.js} +2 -3
  191. package/dist/{chunk-ODT5H4MN.js → chunk-3LYWD3BO.js} +2 -2
  192. package/dist/{chunk-OTN35CI4.js → chunk-3P4Y5RX6.js} +18 -6
  193. package/dist/{chunk-FAQGGX2Z.js → chunk-3TFDQLW3.js} +1 -1
  194. package/dist/{chunk-E6EWK5YY.js → chunk-3Y56GQPM.js} +3 -3
  195. package/dist/{chunk-A4E5YLXO.js → chunk-4B6LSFDS.js} +1 -1
  196. package/dist/{chunk-UAN5NE7M.js → chunk-5AQBPHZD.js} +1 -1
  197. package/dist/{chunk-CJKMURZO.js → chunk-5SZGKSGL.js} +1 -1
  198. package/dist/chunk-6VOS2GMB.js +54 -0
  199. package/dist/{chunk-QWOPX2MN.js → chunk-6ZJ3N7QI.js} +7 -5
  200. package/dist/{chunk-3ZAFJ4GK.js → chunk-7Q7WDXHG.js} +4 -4
  201. package/dist/{chunk-QH3AKP2N.js → chunk-AC22RZKC.js} +2 -2
  202. package/dist/{chunk-UZ6MA2V6.js → chunk-AORVEG5V.js} +2 -2
  203. package/dist/{chunk-ZITJKF6Z.js → chunk-AYB6AYNH.js} +1 -1
  204. package/dist/{chunk-FC4YTTFJ.js → chunk-BQ7AKL2N.js} +5 -5
  205. package/dist/{chunk-Y5NQ2LMS.js → chunk-BY4N65PM.js} +1 -1
  206. package/dist/{chunk-YFW4MTK4.js → chunk-C7DKX453.js} +1 -1
  207. package/dist/{chunk-RCQXUT5K.js → chunk-CCAXYHQS.js} +1 -1
  208. package/dist/{chunk-JQLTG4KH.js → chunk-CCLNGVCM.js} +62 -51
  209. package/dist/{chunk-6AH2XJ3Q.js → chunk-CFAJP777.js} +3 -3
  210. package/dist/{chunk-4KP4RC3O.js → chunk-CI3VPIJN.js} +1 -1
  211. package/dist/{chunk-7T42VQQT.js → chunk-CPEPST4S.js} +1 -1
  212. package/dist/{chunk-AAOH2P6Y.js → chunk-DFK5EQTU.js} +5 -3
  213. package/dist/{chunk-V5IGUXMZ.js → chunk-E4NNGC6X.js} +4 -4
  214. package/dist/{chunk-TGYDROIB.js → chunk-EBCHVFCS.js} +4 -4
  215. package/dist/{chunk-LWXRD6L6.js → chunk-EWAFN2IU.js} +118 -27
  216. package/dist/{chunk-YDBC4DNW.js → chunk-FWYHRU7M.js} +1 -1
  217. package/dist/{chunk-HVNTQ36V.js → chunk-GMU6SQ6B.js} +4 -4
  218. package/dist/{chunk-LIXSV5YI.js → chunk-GPHWCK7M.js} +1 -1
  219. package/dist/{chunk-UQHKFF2N.js → chunk-GPWJCP3U.js} +1 -1
  220. package/dist/{chunk-77DRMDXR.js → chunk-HG5VF3TZ.js} +192 -67
  221. package/dist/{chunk-QVE4GJAT.js → chunk-HJO4WCH6.js} +1 -1
  222. package/dist/{chunk-JI5AVQLA.js → chunk-HOIZ6MIS.js} +1 -1
  223. package/dist/{chunk-I3BSQUKN.js → chunk-HUVG2FFT.js} +1 -1
  224. package/dist/{chunk-VS3KOOOL.js → chunk-ILAEBSLJ.js} +3 -3
  225. package/dist/{chunk-P4BOXB6E.js → chunk-IUD5VA2Z.js} +6 -7
  226. package/dist/{chunk-GR55WT4R.js → chunk-IYO2N5ZH.js} +2 -2
  227. package/dist/{chunk-RWA4H2TV.js → chunk-J6ON5SYE.js} +1 -1
  228. package/dist/{chunk-AMNN4WDX.js → chunk-JBUMD6DS.js} +2 -2
  229. package/dist/{chunk-BWRGFKJP.js → chunk-K3IJQNB7.js} +2 -3
  230. package/dist/{chunk-LFNUH4GY.js → chunk-K4VP6ZKE.js} +1 -1
  231. package/dist/{chunk-ZR5VN5IV.js → chunk-KD2IRYCT.js} +2 -2
  232. package/dist/chunk-KF6YGL4B.js +160 -0
  233. package/dist/{chunk-SKOYC2CF.js → chunk-KK5OYNAF.js} +2 -1
  234. package/dist/{chunk-UB7TJEKZ.js → chunk-KV3ODJXH.js} +6 -7
  235. package/dist/chunk-LL5AFXU7.js +96 -0
  236. package/dist/{chunk-VYOKRN2I.js → chunk-LM3ISVJA.js} +1 -1
  237. package/dist/{chunk-E6CR5PEV.js → chunk-LV4APO72.js} +8 -2
  238. package/dist/{chunk-B4EBHPK3.js → chunk-M5KZX5JE.js} +9 -2
  239. package/dist/{chunk-HMPFGIWM.js → chunk-OMV5W53A.js} +10 -1
  240. package/dist/chunk-ONL54WMH.js +55 -0
  241. package/dist/{chunk-AKEZ3G5V.js → chunk-ONQKKHON.js} +1 -1
  242. package/dist/{chunk-LZHLSQYK.js → chunk-OOWPSBIS.js} +2 -2
  243. package/dist/{chunk-4KWOKX2B.js → chunk-OSKJZNBT.js} +1 -1
  244. package/dist/{chunk-4JUKWWUD.js → chunk-PLDUNXAO.js} +1 -1
  245. package/dist/{chunk-EHQTPVV4.js → chunk-PLTCDSTU.js} +1 -1
  246. package/dist/{chunk-5OM447RW.js → chunk-PZKHBB7D.js} +1 -1
  247. package/dist/{chunk-VEB5ERRE.js → chunk-QWNVSR6G.js} +2 -2
  248. package/dist/{chunk-IG75YMUN.js → chunk-RTPQDNW3.js} +1 -1
  249. package/dist/{chunk-YEKYVJQR.js → chunk-SGHIAGPR.js} +2 -2
  250. package/dist/{chunk-SVSCLHHI.js → chunk-SZZRIHGT.js} +1 -1
  251. package/dist/{chunk-EBNI36UQ.js → chunk-T46NR3WP.js} +3 -3
  252. package/dist/{chunk-FPS3JIPQ.js → chunk-TC7DJTXI.js} +1 -1
  253. package/dist/{chunk-W5J7R5EB.js → chunk-TEUQWOWZ.js} +1 -1
  254. package/dist/chunk-THROPJZC.js +115 -0
  255. package/dist/{chunk-IDBHX5SR.js → chunk-TRQCHF2F.js} +1 -1
  256. package/dist/{chunk-M3LUNN7F.js → chunk-TYKQ33CL.js} +13 -2
  257. package/dist/chunk-UDQW6UK7.js +129 -0
  258. package/dist/{chunk-WTNUVQVI.js → chunk-UHJQDFKQ.js} +1 -1
  259. package/dist/{chunk-VVRL27HM.js → chunk-ULPL26BU.js} +2 -2
  260. package/dist/{chunk-EBJREOKS.js → chunk-UXXJDIYE.js} +4 -4
  261. package/dist/{chunk-5LUI3WQP.js → chunk-V43UVX4H.js} +1 -1
  262. package/dist/{chunk-W4XYY73O.js → chunk-VHZ3AXJD.js} +1 -1
  263. package/dist/{chunk-NHBP2XS5.js → chunk-VI5FWDZW.js} +51 -3
  264. package/dist/{chunk-HJEVSQN6.js → chunk-VL6CUNSX.js} +11 -5
  265. package/dist/{chunk-XDTYBF2F.js → chunk-W5XCNEZC.js} +39 -1
  266. package/dist/{chunk-LDJ3J4TQ.js → chunk-WGD2HX2A.js} +1 -1
  267. package/dist/{chunk-FQCLKD7U.js → chunk-WKEPORNM.js} +1 -1
  268. package/dist/{chunk-PJD2KFHX.js → chunk-WPX6A5BV.js} +38 -13
  269. package/dist/{chunk-I3KKZ2O3.js → chunk-XEGZHHRH.js} +45 -36
  270. package/dist/{chunk-IKB6HFGK.js → chunk-XO7PUL4F.js} +6 -4
  271. package/dist/chunk-XTOVADJU.js +170 -0
  272. package/dist/chunk-XV32RKQZ.js +142 -0
  273. package/dist/{chunk-TBMDMXEX.js → chunk-YA3AWELW.js} +1 -1
  274. package/dist/{chunk-HVIX5ECM.js → chunk-YEVG2X5R.js} +1 -1
  275. package/dist/chunk-YZFLH463.js +215 -0
  276. package/dist/generated/index.d.ts +5 -0
  277. package/dist/generated/index.js +112 -108
  278. package/dist/index.js +112 -108
  279. package/dist/styles.css +1982 -228
  280. package/package.json +3 -3
  281. package/dist/AccessDeniedCard-WXM5DBDZ.css +0 -8
  282. package/dist/ArtifactCard-EXVAEBV6.css +0 -109
  283. package/dist/DocTabsEditor-RCOWHX5J.css +0 -78
  284. package/dist/PresenterView-T2C6ZZ3N.css +0 -103
  285. package/dist/SandboxedFrame-L6HBQZCD.css +0 -50
  286. package/dist/chunk-CRKFL423.js +0 -74
  287. package/dist/chunk-GOSQXEZU.js +0 -102
  288. package/dist/chunk-MBNFJSZS.js +0 -107
  289. package/dist/chunk-RV7SZAHR.js +0 -105
  290. package/dist/chunk-UZ7ZUSLH.js +0 -179
  291. package/dist/utils/useMediaMatch.d.ts +0 -12
  292. /package/dist/{chunk-TF2P3OPS.js → chunk-YCARLYI6.js} +0 -0
@@ -0,0 +1,115 @@
1
+ import { SlideNav } from './chunk-6VOS2GMB.js';
2
+ import { SlideStage, SLIDE_WIDTH, SLIDE_HEIGHT } from './chunk-LV4APO72.js';
3
+ import { Eyebrow } from './chunk-RK4XPHVG.js';
4
+ import { Button } from './chunk-OG6CL3EB.js';
5
+ import { cx } from './chunk-ODEQTPFM.js';
6
+ import './PresenterView-T3EXIQ5S.css';
7
+ import { useRef, useState, useEffect } from 'react';
8
+ import { jsxs, jsx } from 'react/jsx-runtime';
9
+
10
+ var LABELS = {
11
+ current: (position, total, title) => `Slide ${position} of ${total}, ${title}`,
12
+ next: (title) => `Next, ${title}`,
13
+ onScreen: "Current",
14
+ upNext: "Next",
15
+ end: "End of the deck",
16
+ notes: "Speaker notes",
17
+ noNotes: "No notes for this slide.",
18
+ timer: "Time presenting",
19
+ pause: "Pause",
20
+ resume: "Resume",
21
+ reset: "Reset",
22
+ previous: "Previous slide",
23
+ forward: "Next slide",
24
+ position: (position, total) => `${position} of ${total}`
25
+ };
26
+ function formatStopwatch(ms) {
27
+ const total = Math.max(0, Math.floor(ms / 1e3));
28
+ const h = Math.floor(total / 3600);
29
+ const m = Math.floor(total % 3600 / 60);
30
+ const s = total % 60;
31
+ const ss = String(s).padStart(2, "0");
32
+ return h > 0 ? `${h}:${String(m).padStart(2, "0")}:${ss}` : `${m}:${ss}`;
33
+ }
34
+ function PresenterView({
35
+ current,
36
+ currentTitle,
37
+ next,
38
+ nextTitle = "",
39
+ notes,
40
+ position,
41
+ total,
42
+ onNext,
43
+ onPrevious,
44
+ now = Date.now,
45
+ className,
46
+ labels
47
+ }) {
48
+ const text = { ...LABELS, ...labels };
49
+ const clock = useRef(now);
50
+ clock.current = now;
51
+ const [banked, setBanked] = useState(0);
52
+ const [runningSince, setRunningSince] = useState(() => now());
53
+ const [tick, setTick] = useState(0);
54
+ useEffect(() => {
55
+ if (runningSince === null) return void 0;
56
+ const id = setInterval(() => setTick((t) => t + 1), 1e3);
57
+ return () => clearInterval(id);
58
+ }, [runningSince]);
59
+ const elapsed = banked + (runningSince === null ? 0 : clock.current() - runningSince);
60
+ const pause = () => {
61
+ if (runningSince === null) {
62
+ setRunningSince(clock.current());
63
+ } else {
64
+ setBanked(elapsed);
65
+ setRunningSince(null);
66
+ }
67
+ };
68
+ const reset = () => {
69
+ setBanked(0);
70
+ setRunningSince(runningSince === null ? null : clock.current());
71
+ };
72
+ return /* @__PURE__ */ jsxs(
73
+ "div",
74
+ {
75
+ className: cx("crewlet-presenter", className),
76
+ style: { "--crewlet-presenter-ratio": SLIDE_WIDTH / SLIDE_HEIGHT },
77
+ children: [
78
+ /* @__PURE__ */ jsxs("section", { className: "crewlet-presenter__main", "aria-label": text.onScreen, children: [
79
+ /* @__PURE__ */ jsx(Eyebrow, { as: "p", className: "crewlet-presenter__caption", children: text.onScreen }),
80
+ /* @__PURE__ */ jsxs("div", { className: "crewlet-presenter__screen", children: [
81
+ /* @__PURE__ */ jsx(SlideStage, { label: text.current(position, total, currentTitle), framed: true, children: current }),
82
+ /* @__PURE__ */ jsx(
83
+ SlideNav,
84
+ {
85
+ className: "crewlet-presenter__controls",
86
+ position,
87
+ total,
88
+ onPrevious,
89
+ onNext,
90
+ labels: { previous: text.previous, next: text.forward, end: text.end, position: text.position }
91
+ }
92
+ )
93
+ ] })
94
+ ] }),
95
+ /* @__PURE__ */ jsxs("aside", { className: "crewlet-presenter__side", children: [
96
+ /* @__PURE__ */ jsxs("section", { className: "crewlet-presenter__next", "aria-label": text.upNext, children: [
97
+ /* @__PURE__ */ jsx(Eyebrow, { as: "p", className: "crewlet-presenter__caption", children: text.upNext }),
98
+ next ? /* @__PURE__ */ jsx(SlideStage, { label: text.next(nextTitle), framed: true, children: next }) : /* @__PURE__ */ jsx("p", { className: "crewlet-presenter__end", children: text.end })
99
+ ] }),
100
+ /* @__PURE__ */ jsxs("div", { className: "crewlet-presenter__timer", children: [
101
+ /* @__PURE__ */ jsx("span", { role: "timer", "aria-label": text.timer, className: "crewlet-presenter__elapsed", children: formatStopwatch(elapsed) }),
102
+ /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", onClick: pause, children: runningSince === null ? text.resume : text.pause }),
103
+ /* @__PURE__ */ jsx(Button, { size: "small", variant: "ghost", onClick: reset, children: text.reset })
104
+ ] }),
105
+ /* @__PURE__ */ jsxs("section", { className: "crewlet-presenter__notes", "aria-label": text.notes, children: [
106
+ /* @__PURE__ */ jsx(Eyebrow, { as: "p", className: "crewlet-presenter__caption", children: text.notes }),
107
+ /* @__PURE__ */ jsx("div", { className: "crewlet-presenter__notes-body", children: notes ? /* @__PURE__ */ jsx("p", { children: notes }) : /* @__PURE__ */ jsx("p", { className: "crewlet-presenter__empty", children: text.noNotes }) })
108
+ ] })
109
+ ] })
110
+ ]
111
+ }
112
+ );
113
+ }
114
+
115
+ export { PresenterView, formatStopwatch };
@@ -1,4 +1,4 @@
1
- import { readMarkdown, writeMarkdown } from './chunk-YFW4MTK4.js';
1
+ import { readMarkdown, writeMarkdown } from './chunk-C7DKX453.js';
2
2
 
3
3
  // src/RichEditor/roundtrip.ts
4
4
  function roundTripMarkdown(markdown) {
@@ -1,5 +1,5 @@
1
1
  import { cx } from './chunk-ODEQTPFM.js';
2
- import './Document-G3YTZIUL.css';
2
+ import './Document-JUGCSQ4L.css';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  function Document({ as: Tag = "div", size = "md", measure = "normal", className, children, ...rest }) {
@@ -20,5 +20,16 @@ function Document({ as: Tag = "div", size = "md", measure = "normal", className,
20
20
  function DocumentTitle({ as: Tag = "h1", className, children, ...rest }) {
21
21
  return /* @__PURE__ */ jsx(Tag, { ...rest, className: cx("crewlet-document-title", className), children });
22
22
  }
23
+ function DocumentTitleField({ error = false, className, ...rest }) {
24
+ return /* @__PURE__ */ jsx(
25
+ "input",
26
+ {
27
+ ...rest,
28
+ type: "text",
29
+ "aria-invalid": error || void 0,
30
+ className: cx("crewlet-document-title", "crewlet-document-title-field", className)
31
+ }
32
+ );
33
+ }
23
34
 
24
- export { Document, DocumentTitle };
35
+ export { Document, DocumentTitle, DocumentTitleField };
@@ -0,0 +1,129 @@
1
+ import { VisuallyHidden } from './chunk-BZFWDIV6.js';
2
+ import { cx } from './chunk-ODEQTPFM.js';
3
+ import './ArtifactKindIllustration-4NG6IE3C.css';
4
+ import { useId } from 'react';
5
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
+
7
+ function ArtifactKindIllustration({ kind, className }) {
8
+ return /* @__PURE__ */ jsx(
9
+ "svg",
10
+ {
11
+ viewBox: "0 0 160 120",
12
+ "aria-hidden": "true",
13
+ focusable: "false",
14
+ className: cx("crewlet-kind-illustration", `crewlet-kind--${kind}`, className),
15
+ children: DRAWINGS[kind]
16
+ }
17
+ );
18
+ }
19
+ var DRAWINGS = {
20
+ doc: /* @__PURE__ */ jsxs(Fragment, { children: [
21
+ /* @__PURE__ */ jsx("rect", { className: "b", x: "52", y: "12", width: "56", height: "96", rx: "7" }),
22
+ /* @__PURE__ */ jsx("rect", { className: "m", x: "62", y: "24", width: "24", height: "6", rx: "3" }),
23
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "62", y: "38", width: "36", height: "4", rx: "2" }),
24
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "62", y: "46", width: "30", height: "4", rx: "2" }),
25
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "62", y: "54", width: "34", height: "4", rx: "2" }),
26
+ /* @__PURE__ */ jsx("circle", { className: "m", cx: "65", cy: "70", r: "3.5" }),
27
+ /* @__PURE__ */ jsx("path", { className: "c", d: "M63.2 70.1l1.3 1.3 2.4-2.6" }),
28
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "72", y: "68", width: "24", height: "4", rx: "2" }),
29
+ /* @__PURE__ */ jsx("circle", { className: "s", cx: "65", cy: "80", r: "3.5" }),
30
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "72", y: "78", width: "20", height: "4", rx: "2" }),
31
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "62", y: "92", width: "28", height: "4", rx: "2" })
32
+ ] }),
33
+ slides: /* @__PURE__ */ jsxs(Fragment, { children: [
34
+ /* @__PURE__ */ jsx("rect", { className: "b", x: "22", y: "24", width: "116", height: "72", rx: "8" }),
35
+ /* @__PURE__ */ jsx("rect", { className: "m", x: "34", y: "38", width: "50", height: "9", rx: "4.5" }),
36
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "34", y: "55", width: "42", height: "5", rx: "2.5" }),
37
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "34", y: "65", width: "34", height: "5", rx: "2.5" }),
38
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "92", y: "50", width: "34", height: "32", rx: "6" })
39
+ ] }),
40
+ design: /* @__PURE__ */ jsxs(Fragment, { children: [
41
+ /* @__PURE__ */ jsx("rect", { className: "b", x: "58", y: "8", width: "44", height: "104", rx: "10" }),
42
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "72", y: "15", width: "16", height: "3.5", rx: "1.75" }),
43
+ /* @__PURE__ */ jsx("circle", { className: "s", cx: "69", cy: "33", r: "4.5" }),
44
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "77", y: "31", width: "17", height: "4", rx: "2" }),
45
+ /* @__PURE__ */ jsx("circle", { className: "s", cx: "69", cy: "46", r: "4.5" }),
46
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "77", y: "44", width: "13", height: "4", rx: "2" }),
47
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "65", y: "57", width: "30", height: "22", rx: "4" }),
48
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "62", y: "94", width: "36", height: "14", rx: "6" }),
49
+ /* @__PURE__ */ jsx("circle", { className: "m", cx: "71", cy: "101", r: "2.2" }),
50
+ /* @__PURE__ */ jsx("circle", { className: "c c--fill", cx: "80", cy: "101", r: "2.2" }),
51
+ /* @__PURE__ */ jsx("circle", { className: "c c--fill", cx: "89", cy: "101", r: "2.2" })
52
+ ] }),
53
+ dashboard: /* @__PURE__ */ jsxs(Fragment, { children: [
54
+ /* @__PURE__ */ jsx("rect", { className: "b", x: "22", y: "24", width: "116", height: "72", rx: "8" }),
55
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "34", y: "34", width: "26", height: "4", rx: "2" }),
56
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "40", y: "66", width: "13", height: "18", rx: "3.5" }),
57
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "60", y: "56", width: "13", height: "28", rx: "3.5" }),
58
+ /* @__PURE__ */ jsx("rect", { className: "m", x: "80", y: "42", width: "13", height: "42", rx: "3.5" }),
59
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "100", y: "60", width: "13", height: "24", rx: "3.5" })
60
+ ] }),
61
+ html: /* @__PURE__ */ jsxs(Fragment, { children: [
62
+ /* @__PURE__ */ jsx("rect", { className: "b", x: "22", y: "22", width: "116", height: "76", rx: "8" }),
63
+ /* @__PURE__ */ jsx("circle", { className: "l", cx: "33", cy: "32", r: "2.5" }),
64
+ /* @__PURE__ */ jsx("circle", { className: "l", cx: "41", cy: "32", r: "2.5" }),
65
+ /* @__PURE__ */ jsx("circle", { className: "l", cx: "49", cy: "32", r: "2.5" }),
66
+ /* @__PURE__ */ jsx("path", { className: "r", d: "M22.75 41h114.5" }),
67
+ /* @__PURE__ */ jsx("path", { className: "k", d: "M60 58l-11 9 11 9" }),
68
+ /* @__PURE__ */ jsx("path", { className: "k", d: "M100 58l11 9-11 9" }),
69
+ /* @__PURE__ */ jsx("path", { className: "k k--soft", d: "M86 54l-12 26" })
70
+ ] }),
71
+ sheet: /* @__PURE__ */ jsxs(Fragment, { children: [
72
+ /* @__PURE__ */ jsx("rect", { className: "b", x: "22", y: "22", width: "116", height: "76", rx: "8" }),
73
+ /* @__PURE__ */ jsx("path", { className: "r", d: "M22.75 40h114.5M22.75 54h114.5M22.75 68h114.5M22.75 82h114.5M60 22.75v74.5M100 22.75v74.5" }),
74
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "30", y: "29", width: "22", height: "4.5", rx: "2.25" }),
75
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "68", y: "29", width: "22", height: "4.5", rx: "2.25" }),
76
+ /* @__PURE__ */ jsx("rect", { className: "s", x: "108", y: "29", width: "22", height: "4.5", rx: "2.25" }),
77
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "30", y: "45", width: "18", height: "4", rx: "2" }),
78
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "68", y: "45", width: "24", height: "4", rx: "2" }),
79
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "108", y: "45", width: "16", height: "4", rx: "2" }),
80
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "30", y: "59", width: "22", height: "4", rx: "2" }),
81
+ /* @__PURE__ */ jsx("rect", { className: "m", x: "64", y: "57", width: "32", height: "8", rx: "2.5" }),
82
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "108", y: "59", width: "20", height: "4", rx: "2" }),
83
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "30", y: "73", width: "16", height: "4", rx: "2" }),
84
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "68", y: "73", width: "20", height: "4", rx: "2" }),
85
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "108", y: "73", width: "22", height: "4", rx: "2" }),
86
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "30", y: "87", width: "20", height: "4", rx: "2" }),
87
+ /* @__PURE__ */ jsx("rect", { className: "l", x: "68", y: "87", width: "14", height: "4", rx: "2" })
88
+ ] })
89
+ };
90
+ function ArtifactKindGround({
91
+ kind,
92
+ className,
93
+ children
94
+ }) {
95
+ return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cx("crewlet-kind-ground", `crewlet-kind--${kind}`, className), children: children ?? /* @__PURE__ */ jsx(ArtifactKindIllustration, { kind }) });
96
+ }
97
+ function ArtifactKindTile({ kind, label, href, badge, disabledReason, className }) {
98
+ const reasonId = useId();
99
+ const off = disabledReason !== void 0 || href === void 0;
100
+ const body = /* @__PURE__ */ jsxs(Fragment, { children: [
101
+ /* @__PURE__ */ jsx("span", { className: "crewlet-kind-tile__frame", children: /* @__PURE__ */ jsx(ArtifactKindGround, { kind, className: "crewlet-kind-tile__ground" }) }),
102
+ /* @__PURE__ */ jsxs("span", { className: "crewlet-kind-tile__label", children: [
103
+ /* @__PURE__ */ jsx("span", { className: "crewlet-kind-tile__name", children: label }),
104
+ badge ? /* @__PURE__ */ jsx("span", { className: "crewlet-kind-tile__badge", children: badge }) : null
105
+ ] })
106
+ ] });
107
+ const name = badge ? `${label}, ${badge}` : label;
108
+ if (off) {
109
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
110
+ /* @__PURE__ */ jsx(
111
+ "span",
112
+ {
113
+ role: "link",
114
+ tabIndex: 0,
115
+ "aria-label": name,
116
+ "aria-disabled": "true",
117
+ "aria-describedby": disabledReason ? reasonId : void 0,
118
+ title: disabledReason,
119
+ className: cx("crewlet-kind-tile", "crewlet-kind-tile--disabled", className),
120
+ children: body
121
+ }
122
+ ),
123
+ disabledReason ? /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason }) : null
124
+ ] });
125
+ }
126
+ return /* @__PURE__ */ jsx("a", { href, "aria-label": name, className: cx("crewlet-kind-tile", className), children: body });
127
+ }
128
+
129
+ export { ArtifactKindGround, ArtifactKindIllustration, ArtifactKindTile };
@@ -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-OTN35CI4.js';
2
+ import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-3P4Y5RX6.js';
3
3
  import { focusables } from './chunk-R25RGPUB.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './TreeCanvas-L2XYONWL.css';
@@ -1,4 +1,4 @@
1
- import { Modal } from './chunk-I3KKZ2O3.js';
1
+ import { Modal } from './chunk-XEGZHHRH.js';
2
2
  import { useListbox, useHighlightRest } from './chunk-F73MC7EZ.js';
3
3
  import { Input } from './chunk-6QFAK2WV.js';
4
4
  import { Kbd } from './chunk-SMBKXWML.js';
@@ -6,7 +6,7 @@ import { Count } from './chunk-BHHIIK3M.js';
6
6
  import { isComposing } from './chunk-R25RGPUB.js';
7
7
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
8
8
  import { cx } from './chunk-ODEQTPFM.js';
9
- import './CommandPalette-HBTNKHZQ.css';
9
+ import './CommandPalette-7CFGVBND.css';
10
10
  import { useId, useMemo, useRef, useEffect, useState } from 'react';
11
11
  import { ChevronLeftGlyph, SearchGlyph } from '@crewlethq/icons/glyphs';
12
12
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,14 +1,14 @@
1
1
  import { useClipboard } from './chunk-STJ7QBC3.js';
2
- import { Modal } from './chunk-I3KKZ2O3.js';
3
- import { Checkbox } from './chunk-7T42VQQT.js';
2
+ import { Modal } from './chunk-XEGZHHRH.js';
3
+ import { Checkbox } from './chunk-CPEPST4S.js';
4
4
  import { EmptyValue } from './chunk-EUCC37WY.js';
5
5
  import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
6
- import { Menu } from './chunk-2HIOJ4YZ.js';
6
+ import { Menu } from './chunk-3EB2AV3H.js';
7
7
  import { Button } from './chunk-OG6CL3EB.js';
8
8
  import { IconButton } from './chunk-4FQT6ZAY.js';
9
9
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
10
10
  import { cx } from './chunk-ODEQTPFM.js';
11
- import './DataTable-WZK3V62B.css';
11
+ import './DataTable-NL2YWAIA.css';
12
12
  import React, { useState, useCallback, useMemo, useRef, useLayoutEffect, useEffect, useId } from 'react';
13
13
  import { createPortal } from 'react-dom';
14
14
  import { CheckGlyph, CircleAlertGlyph, CopyGlyph, ChevronsLeftGlyph, ChevronLeftGlyph, ChevronRightGlyph, ChevronsRightGlyph, SettingsGlyph, GripVerticalGlyph, ChevronUpGlyph, ChevronDownGlyph, TrashGlyph, ArrowUpGlyph, ArrowDownGlyph, ChevronsUpDownGlyph, RotateCcwGlyph } from '@crewlethq/icons/glyphs';
@@ -1,6 +1,6 @@
1
1
  import { Switch } from './chunk-A722MUNR.js';
2
2
  import { useReorder } from './chunk-XJ2QEBMM.js';
3
- import { Checkbox } from './chunk-7T42VQQT.js';
3
+ import { Checkbox } from './chunk-CPEPST4S.js';
4
4
  import { IconButton } from './chunk-4FQT6ZAY.js';
5
5
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,5 +1,5 @@
1
1
  import { Timeline } from './chunk-AUQPBL4O.js';
2
- import { PrincipalAvatar } from './chunk-4KP4RC3O.js';
2
+ import { PrincipalAvatar } from './chunk-CI3VPIJN.js';
3
3
  import { RelativeTime } from './chunk-3CZ7XAVY.js';
4
4
  import { Button } from './chunk-OG6CL3EB.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
@@ -76,9 +76,9 @@ var SHEET_LABELS = {
76
76
  retry: "Retry",
77
77
  dismiss: "Dismiss",
78
78
  notSaved: (reason) => `Not saved: ${reason}`,
79
- rowActions: (row) => `Row actions for row ${row}`,
79
+ rowActions: (row) => `Actions for row ${row}`,
80
80
  deleteRow: "Delete row",
81
- rowActionsHelp: "Shift and F10 opens the actions of the row.",
81
+ rowActionsHelp: "Shift with F10 opens the actions of the row.",
82
82
  filter: "Filter options",
83
83
  noOptions: "No matching options",
84
84
  clear: "Clear",
@@ -541,6 +541,54 @@ function drawnColumns(columns) {
541
541
  }
542
542
  var isTypingKey = (key2) => key2.key.length === 1 && !isMod(key2) && !key2.altKey;
543
543
 
544
+ // src/SheetModel/fit.ts
545
+ var SHEET_COLUMN_BOUNDS = {
546
+ text: [120, 280],
547
+ longtext: [160, 320],
548
+ number: [80, 180],
549
+ checkbox: [72, 180],
550
+ select: [104, 240],
551
+ // A multi-select draws its chips on one line and counts the rest, so its
552
+ // values do not size it: its default is its floor, and its header may widen it.
553
+ multiselect: [SHEET_COLUMN_WIDTHS.multiselect, 280],
554
+ status: [112, 260],
555
+ person: [120, 240],
556
+ date: [112, 180],
557
+ url: [160, 280],
558
+ rating: [104, 180]
559
+ };
560
+ var SHEET_FIT_SAMPLES = 8;
561
+ function fittedWidth(type, measured) {
562
+ if (!(measured > 0)) return SHEET_COLUMN_WIDTHS[type];
563
+ const [min, max] = SHEET_COLUMN_BOUNDS[type];
564
+ return Math.min(max, Math.max(min, Math.ceil(measured)));
565
+ }
566
+ function fitSamples(column, rows, context, limit = SHEET_FIT_SAMPLES) {
567
+ switch (column.type) {
568
+ case "select":
569
+ case "status":
570
+ return liveOptions(column).map((option) => option.id);
571
+ case "checkbox":
572
+ case "multiselect":
573
+ return [];
574
+ case "rating":
575
+ return [ratingMax(column)];
576
+ default: {
577
+ const longest = [];
578
+ for (const row of rows) {
579
+ const value = normalizeValue(column, row.values[column.field]);
580
+ if (isEmptyValue(value)) continue;
581
+ const length = displayText(column, value, context).length;
582
+ if (longest.length === limit && length <= longest[limit - 1].length) continue;
583
+ longest.push({ value, length });
584
+ longest.sort((a, b) => b.length - a.length);
585
+ if (longest.length > limit) longest.pop();
586
+ }
587
+ return longest.map((entry) => entry.value);
588
+ }
589
+ }
590
+ }
591
+
544
592
  // src/SheetModel/clipboard.ts
545
593
  function quote(field) {
546
594
  return /[\t\n\r"]/.test(field) ? `"${field.replaceAll('"', '""')}"` : field;
@@ -835,4 +883,4 @@ function cellSpeech(column, row, context) {
835
883
  return spokenText(column, normalizeValue(column, row.values[column.field]), context);
836
884
  }
837
885
 
838
- export { LONGTEXT_MAX_DEFAULT, RATING_MAX_CEILING, RATING_MAX_DEFAULT, SHEET_COLUMN_TYPES, SHEET_COLUMN_WIDTHS, SHEET_LABELS, SHEET_ROW_HEIGHT, SHEET_ROW_NUMBER_WIDTH, SheetPendingEdits, TEXT_MAX_DEFAULT, URL_MAX, cellDescription, cellKey, cellSpeech, changeText, changeTime, checkValue, columnOffsets, columnWidth, compareValues, displayText, drawnColumns, editText, editorSide, findOption, findPerson, flagText, hasPrevious, inRange, isEmptyValue, isMod, isMultiCell, isSheetColumnType, isTypingKey, liveOptions, moveFrom, nextSort, normalizeValue, optionHue, parseOptionList, parseTSV, parseText, planClear, planPaste, presenceByCell, presenceByColumn, presenceByRow, rangeOf, ratingMax, refusalText, rowName, sameValue, scrollToRow, sheetLabels, sortRows, spokenText, statusTone, textMax, toTSV, visibleRows };
886
+ export { LONGTEXT_MAX_DEFAULT, RATING_MAX_CEILING, RATING_MAX_DEFAULT, SHEET_COLUMN_BOUNDS, SHEET_COLUMN_TYPES, SHEET_COLUMN_WIDTHS, SHEET_FIT_SAMPLES, SHEET_LABELS, SHEET_ROW_HEIGHT, SHEET_ROW_NUMBER_WIDTH, SheetPendingEdits, TEXT_MAX_DEFAULT, URL_MAX, cellDescription, cellKey, cellSpeech, changeText, changeTime, checkValue, columnOffsets, columnWidth, compareValues, displayText, drawnColumns, editText, editorSide, findOption, findPerson, fitSamples, fittedWidth, flagText, hasPrevious, inRange, isEmptyValue, isMod, isMultiCell, isSheetColumnType, isTypingKey, liveOptions, moveFrom, nextSort, normalizeValue, optionHue, parseOptionList, parseTSV, parseText, planClear, planPaste, presenceByCell, presenceByColumn, presenceByRow, rangeOf, ratingMax, refusalText, rowName, sameValue, scrollToRow, sheetLabels, sortRows, spokenText, statusTone, textMax, toTSV, visibleRows };
@@ -2,8 +2,8 @@ import { useRoving, tabStop } from './chunk-RKKO7QHH.js';
2
2
  import { Count } from './chunk-BHHIIK3M.js';
3
3
  import { VisuallyHidden } from './chunk-BZFWDIV6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
- import './Tabs-CJGO35BH.css';
6
- import React, { useRef, useLayoutEffect } from 'react';
5
+ import './Tabs-MMZXV5EF.css';
6
+ import React, { useRef, useImperativeHandle, useLayoutEffect } from 'react';
7
7
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
8
8
 
9
9
  function tabId(panelId, value) {
@@ -26,9 +26,12 @@ function Tabs({
26
26
  value,
27
27
  onValueChange,
28
28
  panelId,
29
- renderItem
29
+ renderItem,
30
+ trailing,
31
+ ref
30
32
  }) {
31
33
  const navRef = useRef(null);
34
+ useImperativeHandle(ref, () => navRef.current, []);
32
35
  const { buttons, onKeyDown } = useRoving(items.length, null);
33
36
  useLayoutEffect(() => {
34
37
  if (variant !== "underline") return;
@@ -81,7 +84,7 @@ function Tabs({
81
84
  item.marker ? item.marker.tone === "danger" ? /* @__PURE__ */ jsxs("span", { className: "crewlet-tabs__marker crewlet-tabs__marker--danger", children: [
82
85
  /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: item.marker.count }),
83
86
  /* @__PURE__ */ jsx(VisuallyHidden, { children: item.marker.label })
84
- ] }) : /* @__PURE__ */ jsx("span", { className: `crewlet-tabs__marker crewlet-tabs__marker--${item.marker.tone}`, children: /* @__PURE__ */ jsx(VisuallyHidden, { children: item.marker.label }) }) : item.count != null ? /* @__PURE__ */ jsx(Count, { value: item.count }) : null
87
+ ] }) : /* @__PURE__ */ jsx("span", { className: `crewlet-tabs__marker crewlet-tabs__marker--${item.marker.tone}`, children: /* @__PURE__ */ jsx(VisuallyHidden, { children: item.marker.label }) }) : item.count != null && item.count !== "" ? /* @__PURE__ */ jsx(Count, { value: item.count }) : null
85
88
  ] });
86
89
  const onSelect = () => {
87
90
  if (item.disabled) return;
@@ -112,7 +115,10 @@ function Tabs({
112
115
  );
113
116
  });
114
117
  if (renderItem) {
115
- return /* @__PURE__ */ jsx("nav", { ref: navRef, className: rootClass, "aria-label": ariaLabel, children: rows });
118
+ return /* @__PURE__ */ jsxs("nav", { ref: navRef, className: rootClass, "aria-label": ariaLabel, children: [
119
+ rows,
120
+ trailing
121
+ ] });
116
122
  }
117
123
  return /* @__PURE__ */ jsx("div", { ref: navRef, className: rootClass, "aria-label": ariaLabel, role: "tablist", children: rows });
118
124
  }
@@ -32,5 +32,43 @@ function useFullscreen(ref) {
32
32
  }, [enter, exit, ref]);
33
33
  return { supported, active, enter, exit, toggle };
34
34
  }
35
+ var IDLE_AFTER_MS = 2500;
36
+ function useIdle(ref, enabled, timeout = IDLE_AFTER_MS) {
37
+ const [idle, setIdle] = useState(false);
38
+ useEffect(() => {
39
+ const el = ref.current;
40
+ if (!el || !enabled) {
41
+ setIdle(false);
42
+ return void 0;
43
+ }
44
+ let timer;
45
+ const rest = () => {
46
+ clearTimeout(timer);
47
+ timer = setTimeout(() => {
48
+ const focused = document.activeElement;
49
+ if (focused instanceof HTMLElement && focused !== el && el.contains(focused) && focused.matches(":focus-visible")) {
50
+ rest();
51
+ return;
52
+ }
53
+ setIdle(true);
54
+ }, timeout);
55
+ };
56
+ const wake = () => {
57
+ setIdle(false);
58
+ rest();
59
+ };
60
+ rest();
61
+ el.addEventListener("pointermove", wake);
62
+ el.addEventListener("pointerdown", wake);
63
+ el.addEventListener("focusin", wake);
64
+ return () => {
65
+ clearTimeout(timer);
66
+ el.removeEventListener("pointermove", wake);
67
+ el.removeEventListener("pointerdown", wake);
68
+ el.removeEventListener("focusin", wake);
69
+ };
70
+ }, [ref, enabled, timeout]);
71
+ return enabled && idle;
72
+ }
35
73
 
36
- export { useFullscreen };
74
+ export { IDLE_AFTER_MS, useFullscreen, useIdle };
@@ -1,4 +1,4 @@
1
- import { Callout } from './chunk-SVSCLHHI.js';
1
+ import { Callout } from './chunk-SZZRIHGT.js';
2
2
  import { isComposing } from './chunk-R25RGPUB.js';
3
3
  import { Button } from './chunk-OG6CL3EB.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,2 +1,2 @@
1
- import './Tabs-CJGO35BH.css';
1
+ import './Tabs-MMZXV5EF.css';
2
2
  import './SegmentedControl-FLI45IOW.css';
@@ -1,16 +1,16 @@
1
- import { Note } from './chunk-CJKMURZO.js';
2
- import { CanvasToolbar, toolForKey } from './chunk-E6EWK5YY.js';
3
- import { IDENTITY_VIEW, Canvas } from './chunk-OTN35CI4.js';
1
+ import { Note } from './chunk-5SZGKSGL.js';
2
+ import { CanvasToolbar, toolForKey } from './chunk-3Y56GQPM.js';
3
+ import { IDENTITY_VIEW, Canvas } from './chunk-3P4Y5RX6.js';
4
4
  import { IconButton } from './chunk-4FQT6ZAY.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
- import './CanvasBoard-MBZVBWDO.css';
6
+ import './CanvasBoard-5NNSKY6A.css';
7
7
  import { useState, useRef, useImperativeHandle, useCallback, useMemo, useEffect } from 'react';
8
8
  import { MaximizeGlyph, PencilGlyph, TrashGlyph, MousePointer2Glyph, HandGlyph, TypeGlyph, StickyNoteGlyph } from '@crewlethq/icons/glyphs';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
 
11
11
  // src/CanvasBoard/budget.ts
12
12
  var CANVAS_BOARD_MAX_LIVE = 12;
13
- var CANVAS_BOARD_MIN_LIVE_WIDTH = 160;
13
+ var CANVAS_BOARD_MIN_LIVE_WIDTH = 96;
14
14
  function liveBoards(boards, view, viewport, max = CANVAS_BOARD_MAX_LIVE, minWidth = CANVAS_BOARD_MIN_LIVE_WIDTH) {
15
15
  if (max <= 0 || viewport.width <= 0 || viewport.height <= 0) return [];
16
16
  const ranked = [];
@@ -203,6 +203,16 @@ function useFrameGestures(zoom, minSide, maxSide, commit) {
203
203
  });
204
204
  return { preview, handle, pointer };
205
205
  }
206
+ var sameSelection = (a, b) => a === b || a !== null && b !== null && a.kind === b.kind && a.id === b.id;
207
+ function boardRoom(width, height) {
208
+ const title = width >= BOARD_TITLE_MIN_WIDTH;
209
+ if (width >= PLACEHOLDER_FULL.width && height >= PLACEHOLDER_FULL.height) return { title, lines: 2 };
210
+ if (width >= PLACEHOLDER_SIZE.width && height >= PLACEHOLDER_SIZE.height) return { title, lines: 1 };
211
+ return { title, lines: 0 };
212
+ }
213
+ var BOARD_TITLE_MIN_WIDTH = 40;
214
+ var PLACEHOLDER_SIZE = { width: 96, height: 32 };
215
+ var PLACEHOLDER_FULL = { width: 200, height: 64 };
206
216
  var TYPING = "input, textarea, select, [contenteditable='true']";
207
217
  function CanvasBoard({
208
218
  label,
@@ -220,6 +230,8 @@ function CanvasBoard({
220
230
  onNoteCreate,
221
231
  onOpen,
222
232
  onActivate,
233
+ selected: heldSelection,
234
+ onSelectedChange,
223
235
  controlsExtra,
224
236
  toolbar = true,
225
237
  labels,
@@ -232,7 +244,13 @@ function CanvasBoard({
232
244
  const [viewport, setViewport] = useState({ width: 0, height: 0 });
233
245
  const [active, setActive] = useState(null);
234
246
  const [editing, setEditing] = useState(null);
235
- const [selected, setSelected] = useState(null);
247
+ const [ownSelection, setOwnSelection] = useState(null);
248
+ const selected = heldSelection !== void 0 ? heldSelection : ownSelection;
249
+ const setSelected = (next) => {
250
+ if (sameSelection(next, selected)) return;
251
+ if (heldSelection === void 0) setOwnSelection(next);
252
+ onSelectedChange?.(next);
253
+ };
236
254
  const [chosenTool, setTool] = useState("move");
237
255
  const [spaceHeld, setSpaceHeld] = useState(false);
238
256
  const canvas = useRef(null);
@@ -363,7 +381,7 @@ function CanvasBoard({
363
381
  label,
364
382
  content,
365
383
  largestItemWidth: largest || void 0,
366
- ground: "dotted",
384
+ ground: "grid",
367
385
  cursor: TOOL_CURSOR[acting],
368
386
  minZoom: CANVAS_BOARD_MIN_ZOOM,
369
387
  refitOnResize: true,
@@ -382,10 +400,12 @@ function CanvasBoard({
382
400
  const isLive = live.has(b.id);
383
401
  const isActive = !editable && active === b.id && isLive;
384
402
  const chosen = isSelected("board", b.id);
403
+ const room = boardRoom(b.w * view.k, b.h * view.k);
385
404
  return /* @__PURE__ */ jsxs(
386
405
  "section",
387
406
  {
388
407
  className: "crewlet-canvas-board__board",
408
+ "data-untitled": !room.title || void 0,
389
409
  "data-live": isLive || void 0,
390
410
  "data-active": isActive || void 0,
391
411
  "data-selected": chosen || void 0,
@@ -423,6 +443,7 @@ function CanvasBoard({
423
443
  {
424
444
  size: "sm",
425
445
  variant: "ghost",
446
+ className: "crewlet-canvas-board__open",
426
447
  label: text.open(b.title),
427
448
  icon: /* @__PURE__ */ jsx(MaximizeGlyph, {}),
428
449
  onClick: () => onOpen(b.id)
@@ -430,11 +451,15 @@ function CanvasBoard({
430
451
  )
431
452
  ] }),
432
453
  /* @__PURE__ */ jsxs("div", { className: "crewlet-canvas-board__body", children: [
433
- isLive ? renderBoard(b) : /* @__PURE__ */ jsx("div", { className: "crewlet-canvas-board__placeholder", children: /* @__PURE__ */ jsxs("span", { className: "crewlet-canvas-board__placeholder-text", children: [
434
- /* @__PURE__ */ jsx("span", { className: "crewlet-canvas-board__placeholder-title", children: b.title }),
435
- /* @__PURE__ */ jsx("span", { children: text.size(b.w, b.h) }),
436
- /* @__PURE__ */ jsx("span", { children: text.paused })
437
- ] }) }),
454
+ isLive ? renderBoard(b) : (
455
+ // NAMED BY ITS TITLE ABOVE IT, as a live board is, so it
456
+ // says only what a running board does not: its size and
457
+ // why it is not running, as much of that as fits.
458
+ /* @__PURE__ */ jsx("div", { className: "crewlet-canvas-board__placeholder", children: room.lines > 0 && /* @__PURE__ */ jsxs("span", { className: "crewlet-canvas-board__placeholder-text", children: [
459
+ /* @__PURE__ */ jsx("span", { className: "crewlet-canvas-board__placeholder-size", children: text.size(b.w, b.h) }),
460
+ room.lines > 1 && /* @__PURE__ */ jsx("span", { children: text.paused })
461
+ ] }) })
462
+ ),
438
463
  !isActive && // A press here pans the canvas like the field around it;
439
464
  // a click selects the board and a double-click hands a
440
465
  // live board the pointer. The board's page stays
@@ -639,4 +664,4 @@ function NoteView({
639
664
  return /* @__PURE__ */ jsx("div", { className: "crewlet-canvas-board__note", "data-kind": "title", style: frame, ...paper, children: body });
640
665
  }
641
666
 
642
- export { CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, liveBoards, titleSize };
667
+ export { BOARD_TITLE_MIN_WIDTH, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardRoom, liveBoards, titleSize };