@oxy.so/bloom 22.0.0 → 22.1.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 (506) hide show
  1. package/docs/adoption-matrix.mdx +13 -13
  2. package/docs/agent-task-index.mdx +1 -1
  3. package/docs/app-conventions.mdx +11 -0
  4. package/docs/app-shell.mdx +25 -2
  5. package/docs/compose-layouts.mdx +6 -0
  6. package/docs/composition.mdx +3 -1
  7. package/docs/dialog.mdx +57 -0
  8. package/docs/layout.mdx +10 -0
  9. package/docs/list.mdx +1 -1
  10. package/docs/project-board.mdx +28 -1
  11. package/docs/public-parts.mdx +8 -2
  12. package/docs/screen.mdx +15 -0
  13. package/docs/semantic-composition.mdx +207 -0
  14. package/docs/sidebar.mdx +16 -0
  15. package/docs/task-catalog.json +16 -3
  16. package/docs/task-catalog.mdx +6 -6
  17. package/docs/ui-architecture.mdx +6 -4
  18. package/lib/commonjs/app-shell/AppShell.js +18 -9
  19. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  20. package/lib/commonjs/app-shell/AppShellEngine.js +18 -5
  21. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  22. package/lib/commonjs/app-shell/AppShellPanelLayout.js +59 -30
  23. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  24. package/lib/commonjs/app-shell/AppShellPanels.js +53 -31
  25. package/lib/commonjs/app-shell/AppShellPanels.js.map +1 -1
  26. package/lib/commonjs/app-shell/composition.js +232 -0
  27. package/lib/commonjs/app-shell/composition.js.map +1 -0
  28. package/lib/commonjs/app-shell/context.js +7 -1
  29. package/lib/commonjs/app-shell/context.js.map +1 -1
  30. package/lib/commonjs/app-shell/hooks/index.js +13 -0
  31. package/lib/commonjs/app-shell/hooks/index.js.map +1 -1
  32. package/lib/commonjs/app-shell/index.js +38 -0
  33. package/lib/commonjs/app-shell/index.js.map +1 -1
  34. package/lib/commonjs/app-shell/index.web.js +38 -0
  35. package/lib/commonjs/app-shell/index.web.js.map +1 -1
  36. package/lib/commonjs/app-shell/panel-layout-css.js +7 -3
  37. package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
  38. package/lib/commonjs/app-shell/panel-session.js +210 -0
  39. package/lib/commonjs/app-shell/panel-session.js.map +1 -0
  40. package/lib/commonjs/app-shell/shell-layout-css.js +6 -4
  41. package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
  42. package/lib/commonjs/canvas/CanvasPanelBase.js +1 -0
  43. package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
  44. package/lib/commonjs/chat-screen/ChatInfoPanelBase.js +1 -0
  45. package/lib/commonjs/chat-screen/ChatInfoPanelBase.js.map +1 -1
  46. package/lib/commonjs/dialog/DetailDialog.js +19 -0
  47. package/lib/commonjs/dialog/DetailDialog.js.map +1 -0
  48. package/lib/commonjs/dialog/DetailDialog.web.js +19 -0
  49. package/lib/commonjs/dialog/DetailDialog.web.js.map +1 -0
  50. package/lib/commonjs/dialog/DetailDialogBase.js +204 -0
  51. package/lib/commonjs/dialog/DetailDialogBase.js.map +1 -0
  52. package/lib/commonjs/dialog/DetailDialogMotion.js +87 -0
  53. package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -0
  54. package/lib/commonjs/dialog/DetailDialogMotion.web.js +345 -0
  55. package/lib/commonjs/dialog/DetailDialogMotion.web.js.map +1 -0
  56. package/lib/commonjs/dialog/DetailDialogSection.js +49 -0
  57. package/lib/commonjs/dialog/DetailDialogSection.js.map +1 -0
  58. package/lib/commonjs/dialog/Dialog.js +101 -90
  59. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  60. package/lib/commonjs/dialog/context.js +4 -1
  61. package/lib/commonjs/dialog/context.js.map +1 -1
  62. package/lib/commonjs/dialog/index.js +20 -0
  63. package/lib/commonjs/dialog/index.js.map +1 -1
  64. package/lib/commonjs/dialog/index.web.js +20 -0
  65. package/lib/commonjs/dialog/index.web.js.map +1 -1
  66. package/lib/commonjs/index.js +28 -0
  67. package/lib/commonjs/index.js.map +1 -1
  68. package/lib/commonjs/index.web.js +28 -0
  69. package/lib/commonjs/index.web.js.map +1 -1
  70. package/lib/commonjs/layout/app-shell-region.js.map +1 -1
  71. package/lib/commonjs/layout/index.js +7 -0
  72. package/lib/commonjs/layout/index.js.map +1 -1
  73. package/lib/commonjs/layout/index.web.js +7 -0
  74. package/lib/commonjs/layout/index.web.js.map +1 -1
  75. package/lib/commonjs/layout/safe-area-ownership.js +31 -0
  76. package/lib/commonjs/layout/safe-area-ownership.js.map +1 -0
  77. package/lib/commonjs/layout/screen-scope.js +26 -20
  78. package/lib/commonjs/layout/screen-scope.js.map +1 -1
  79. package/lib/commonjs/list/ListItemBase.js +62 -58
  80. package/lib/commonjs/list/ListItemBase.js.map +1 -1
  81. package/lib/commonjs/list/ListMail.js +5 -1
  82. package/lib/commonjs/list/ListMail.js.map +1 -1
  83. package/lib/commonjs/list/list-style.js +2 -1
  84. package/lib/commonjs/list/list-style.js.map +1 -1
  85. package/lib/commonjs/page-header/PageHeader.js +3 -1
  86. package/lib/commonjs/page-header/PageHeader.js.map +1 -1
  87. package/lib/commonjs/project-board/ProjectBoard.js +2 -0
  88. package/lib/commonjs/project-board/ProjectBoard.js.map +1 -1
  89. package/lib/commonjs/project-board/ProjectBoard.web.js +2 -0
  90. package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -1
  91. package/lib/commonjs/project-board/ProjectBoardBase.js +29 -41
  92. package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
  93. package/lib/commonjs/project-board/ProjectBoardCardContent.js +56 -0
  94. package/lib/commonjs/project-board/ProjectBoardCardContent.js.map +1 -0
  95. package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +7 -340
  96. package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -1
  97. package/lib/commonjs/project-board/TicketDetailDialog.js +317 -412
  98. package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -1
  99. package/lib/commonjs/project-board/TicketGenieSurface.js +13 -82
  100. package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -1
  101. package/lib/commonjs/project-board/TicketTokenChart.js +1 -1
  102. package/lib/commonjs/project-board/TicketTokenChart.js.map +1 -1
  103. package/lib/commonjs/project-board/context.js +9 -2
  104. package/lib/commonjs/project-board/context.js.map +1 -1
  105. package/lib/commonjs/project-board/index.js +7 -0
  106. package/lib/commonjs/project-board/index.js.map +1 -1
  107. package/lib/commonjs/project-board/index.web.js +7 -0
  108. package/lib/commonjs/project-board/index.web.js.map +1 -1
  109. package/lib/commonjs/screen/ScreenBase.js +44 -32
  110. package/lib/commonjs/screen/ScreenBase.js.map +1 -1
  111. package/lib/commonjs/screen/ScreenContent.js +61 -0
  112. package/lib/commonjs/screen/ScreenContent.js.map +1 -0
  113. package/lib/commonjs/screen/ScreenScrollViewBase.js +66 -1
  114. package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
  115. package/lib/commonjs/screen/content.js +25 -0
  116. package/lib/commonjs/screen/content.js.map +1 -0
  117. package/lib/commonjs/screen/index.js +7 -0
  118. package/lib/commonjs/screen/index.js.map +1 -1
  119. package/lib/commonjs/screen/index.web.js +7 -0
  120. package/lib/commonjs/screen/index.web.js.map +1 -1
  121. package/lib/commonjs/screen/keyboard-components.js.map +1 -1
  122. package/lib/commonjs/sidebar/SidebarFolder.js +61 -74
  123. package/lib/commonjs/sidebar/SidebarFolder.js.map +1 -1
  124. package/lib/commonjs/sidebar/SidebarTreeSection.js +30 -38
  125. package/lib/commonjs/sidebar/SidebarTreeSection.js.map +1 -1
  126. package/lib/commonjs/sidebar/tree.js +2 -2
  127. package/lib/commonjs/sidebar/tree.js.map +1 -1
  128. package/lib/module/app-shell/AppShell.js +15 -5
  129. package/lib/module/app-shell/AppShell.js.map +1 -1
  130. package/lib/module/app-shell/AppShellEngine.js +18 -5
  131. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  132. package/lib/module/app-shell/AppShellPanelLayout.js +60 -30
  133. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  134. package/lib/module/app-shell/AppShellPanels.js +52 -28
  135. package/lib/module/app-shell/AppShellPanels.js.map +1 -1
  136. package/lib/module/app-shell/composition.js +226 -0
  137. package/lib/module/app-shell/composition.js.map +1 -0
  138. package/lib/module/app-shell/context.js +4 -0
  139. package/lib/module/app-shell/context.js.map +1 -1
  140. package/lib/module/app-shell/hooks/index.js +1 -0
  141. package/lib/module/app-shell/hooks/index.js.map +1 -1
  142. package/lib/module/app-shell/index.js +3 -0
  143. package/lib/module/app-shell/index.js.map +1 -1
  144. package/lib/module/app-shell/index.web.js +3 -0
  145. package/lib/module/app-shell/index.web.js.map +1 -1
  146. package/lib/module/app-shell/panel-layout-css.js +7 -3
  147. package/lib/module/app-shell/panel-layout-css.js.map +1 -1
  148. package/lib/module/app-shell/panel-session.js +204 -0
  149. package/lib/module/app-shell/panel-session.js.map +1 -0
  150. package/lib/module/app-shell/shell-layout-css.js +6 -4
  151. package/lib/module/app-shell/shell-layout-css.js.map +1 -1
  152. package/lib/module/canvas/CanvasPanelBase.js +1 -0
  153. package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
  154. package/lib/module/chat-screen/ChatInfoPanelBase.js +1 -0
  155. package/lib/module/chat-screen/ChatInfoPanelBase.js.map +1 -1
  156. package/lib/module/dialog/DetailDialog.js +15 -0
  157. package/lib/module/dialog/DetailDialog.js.map +1 -0
  158. package/lib/module/dialog/DetailDialog.web.js +15 -0
  159. package/lib/module/dialog/DetailDialog.web.js.map +1 -0
  160. package/lib/module/dialog/DetailDialogBase.js +200 -0
  161. package/lib/module/dialog/DetailDialogBase.js.map +1 -0
  162. package/lib/module/dialog/DetailDialogMotion.js +81 -0
  163. package/lib/module/dialog/DetailDialogMotion.js.map +1 -0
  164. package/lib/module/dialog/DetailDialogMotion.web.js +342 -0
  165. package/lib/module/dialog/DetailDialogMotion.web.js.map +1 -0
  166. package/lib/module/dialog/DetailDialogSection.js +44 -0
  167. package/lib/module/dialog/DetailDialogSection.js.map +1 -0
  168. package/lib/module/dialog/Dialog.js +102 -91
  169. package/lib/module/dialog/Dialog.js.map +1 -1
  170. package/lib/module/dialog/context.js +3 -0
  171. package/lib/module/dialog/context.js.map +1 -1
  172. package/lib/module/dialog/index.js +2 -0
  173. package/lib/module/dialog/index.js.map +1 -1
  174. package/lib/module/dialog/index.web.js +2 -0
  175. package/lib/module/dialog/index.web.js.map +1 -1
  176. package/lib/module/index.js +2 -2
  177. package/lib/module/index.js.map +1 -1
  178. package/lib/module/index.web.js +2 -2
  179. package/lib/module/index.web.js.map +1 -1
  180. package/lib/module/layout/app-shell-region.js.map +1 -1
  181. package/lib/module/layout/index.js +1 -0
  182. package/lib/module/layout/index.js.map +1 -1
  183. package/lib/module/layout/index.web.js +1 -0
  184. package/lib/module/layout/index.web.js.map +1 -1
  185. package/lib/module/layout/safe-area-ownership.js +26 -0
  186. package/lib/module/layout/safe-area-ownership.js.map +1 -0
  187. package/lib/module/layout/screen-scope.js +26 -20
  188. package/lib/module/layout/screen-scope.js.map +1 -1
  189. package/lib/module/list/ListItemBase.js +63 -59
  190. package/lib/module/list/ListItemBase.js.map +1 -1
  191. package/lib/module/list/ListMail.js +5 -1
  192. package/lib/module/list/ListMail.js.map +1 -1
  193. package/lib/module/list/list-style.js +1 -0
  194. package/lib/module/list/list-style.js.map +1 -1
  195. package/lib/module/page-header/PageHeader.js +3 -1
  196. package/lib/module/page-header/PageHeader.js.map +1 -1
  197. package/lib/module/project-board/ProjectBoard.js +2 -0
  198. package/lib/module/project-board/ProjectBoard.js.map +1 -1
  199. package/lib/module/project-board/ProjectBoard.web.js +2 -0
  200. package/lib/module/project-board/ProjectBoard.web.js.map +1 -1
  201. package/lib/module/project-board/ProjectBoardBase.js +30 -42
  202. package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
  203. package/lib/module/project-board/ProjectBoardCardContent.js +52 -0
  204. package/lib/module/project-board/ProjectBoardCardContent.js.map +1 -0
  205. package/lib/module/project-board/TicketCornerGenieSurface.web.js +1 -339
  206. package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -1
  207. package/lib/module/project-board/TicketDetailDialog.js +317 -412
  208. package/lib/module/project-board/TicketDetailDialog.js.map +1 -1
  209. package/lib/module/project-board/TicketGenieSurface.js +1 -78
  210. package/lib/module/project-board/TicketGenieSurface.js.map +1 -1
  211. package/lib/module/project-board/TicketTokenChart.js +1 -1
  212. package/lib/module/project-board/TicketTokenChart.js.map +1 -1
  213. package/lib/module/project-board/context.js +1 -1
  214. package/lib/module/project-board/context.js.map +1 -1
  215. package/lib/module/project-board/index.js +1 -0
  216. package/lib/module/project-board/index.js.map +1 -1
  217. package/lib/module/project-board/index.web.js +1 -0
  218. package/lib/module/project-board/index.web.js.map +1 -1
  219. package/lib/module/screen/ScreenBase.js +22 -10
  220. package/lib/module/screen/ScreenBase.js.map +1 -1
  221. package/lib/module/screen/ScreenContent.js +57 -0
  222. package/lib/module/screen/ScreenContent.js.map +1 -0
  223. package/lib/module/screen/ScreenScrollViewBase.js +67 -2
  224. package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
  225. package/lib/module/screen/content.js +21 -0
  226. package/lib/module/screen/content.js.map +1 -0
  227. package/lib/module/screen/index.js +1 -0
  228. package/lib/module/screen/index.js.map +1 -1
  229. package/lib/module/screen/index.web.js +1 -0
  230. package/lib/module/screen/index.web.js.map +1 -1
  231. package/lib/module/screen/keyboard-components.js.map +1 -1
  232. package/lib/module/sidebar/SidebarFolder.js +61 -74
  233. package/lib/module/sidebar/SidebarFolder.js.map +1 -1
  234. package/lib/module/sidebar/SidebarTreeSection.js +30 -38
  235. package/lib/module/sidebar/SidebarTreeSection.js.map +1 -1
  236. package/lib/module/sidebar/tree.js +2 -2
  237. package/lib/module/sidebar/tree.js.map +1 -1
  238. package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/app-shell/AppShellPanels.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/app-shell/composition.d.ts +52 -0
  243. package/lib/typescript/commonjs/app-shell/composition.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/app-shell/context.d.ts +4 -0
  245. package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/app-shell/hooks/index.d.ts +2 -0
  247. package/lib/typescript/commonjs/app-shell/hooks/index.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/app-shell/index.d.ts +5 -0
  249. package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/app-shell/index.web.d.ts +5 -0
  251. package/lib/typescript/commonjs/app-shell/index.web.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +2 -1
  254. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/app-shell/panel-session.d.ts +51 -0
  256. package/lib/typescript/commonjs/app-shell/panel-session.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts +2 -1
  258. package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/app-shell/types.d.ts +15 -3
  260. package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/dialog/DetailDialog.d.ts +5 -0
  262. package/lib/typescript/commonjs/dialog/DetailDialog.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts +5 -0
  264. package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts +20 -0
  266. package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts +9 -0
  268. package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts +7 -0
  270. package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts +6 -0
  272. package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/dialog/context.d.ts +2 -0
  275. package/lib/typescript/commonjs/dialog/context.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/dialog/index.d.ts +3 -1
  277. package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/dialog/index.web.d.ts +3 -1
  279. package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/dialog/types.d.ts +37 -0
  281. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/index.d.ts +3 -3
  283. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/index.web.d.ts +3 -3
  285. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  286. package/lib/typescript/commonjs/layout/app-shell-region.d.ts +2 -0
  287. package/lib/typescript/commonjs/layout/app-shell-region.d.ts.map +1 -1
  288. package/lib/typescript/commonjs/layout/index.d.ts +1 -0
  289. package/lib/typescript/commonjs/layout/index.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/layout/index.web.d.ts +1 -0
  291. package/lib/typescript/commonjs/layout/index.web.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts +8 -0
  293. package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/layout/screen-scope.d.ts +3 -1
  295. package/lib/typescript/commonjs/layout/screen-scope.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/list/ListItemBase.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/list/ListMail.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/list/list-style.d.ts +1 -0
  299. package/lib/typescript/commonjs/list/list-style.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/list/types.d.ts +10 -3
  301. package/lib/typescript/commonjs/list/types.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts +4 -0
  307. package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
  309. package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +1 -8
  312. package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/project-board/context.d.ts +2 -1
  314. package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/project-board/index.d.ts +2 -1
  316. package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -1
  317. package/lib/typescript/commonjs/project-board/index.web.d.ts +2 -1
  318. package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -1
  319. package/lib/typescript/commonjs/project-board/types.d.ts +12 -0
  320. package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
  322. package/lib/typescript/commonjs/screen/ScreenContent.d.ts +14 -0
  323. package/lib/typescript/commonjs/screen/ScreenContent.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
  325. package/lib/typescript/commonjs/screen/content.d.ts +6 -0
  326. package/lib/typescript/commonjs/screen/content.d.ts.map +1 -0
  327. package/lib/typescript/commonjs/screen/index.d.ts +3 -0
  328. package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
  329. package/lib/typescript/commonjs/screen/index.web.d.ts +3 -0
  330. package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
  331. package/lib/typescript/commonjs/screen/keyboard-components.d.ts +5 -0
  332. package/lib/typescript/commonjs/screen/keyboard-components.d.ts.map +1 -1
  333. package/lib/typescript/commonjs/screen/types.d.ts +7 -0
  334. package/lib/typescript/commonjs/screen/types.d.ts.map +1 -1
  335. package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts +3 -12
  336. package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts.map +1 -1
  337. package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts.map +1 -1
  338. package/lib/typescript/commonjs/sidebar/types.d.ts +1 -1
  339. package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
  340. package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
  341. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  342. package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  343. package/lib/typescript/module/app-shell/AppShellPanels.d.ts.map +1 -1
  344. package/lib/typescript/module/app-shell/composition.d.ts +52 -0
  345. package/lib/typescript/module/app-shell/composition.d.ts.map +1 -0
  346. package/lib/typescript/module/app-shell/context.d.ts +4 -0
  347. package/lib/typescript/module/app-shell/context.d.ts.map +1 -1
  348. package/lib/typescript/module/app-shell/hooks/index.d.ts +2 -0
  349. package/lib/typescript/module/app-shell/hooks/index.d.ts.map +1 -1
  350. package/lib/typescript/module/app-shell/index.d.ts +5 -0
  351. package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
  352. package/lib/typescript/module/app-shell/index.web.d.ts +5 -0
  353. package/lib/typescript/module/app-shell/index.web.d.ts.map +1 -1
  354. package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
  355. package/lib/typescript/module/app-shell/panel-layout-types.d.ts +2 -1
  356. package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
  357. package/lib/typescript/module/app-shell/panel-session.d.ts +51 -0
  358. package/lib/typescript/module/app-shell/panel-session.d.ts.map +1 -0
  359. package/lib/typescript/module/app-shell/shell-layout-css.d.ts +2 -1
  360. package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
  361. package/lib/typescript/module/app-shell/types.d.ts +15 -3
  362. package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
  363. package/lib/typescript/module/dialog/DetailDialog.d.ts +5 -0
  364. package/lib/typescript/module/dialog/DetailDialog.d.ts.map +1 -0
  365. package/lib/typescript/module/dialog/DetailDialog.web.d.ts +5 -0
  366. package/lib/typescript/module/dialog/DetailDialog.web.d.ts.map +1 -0
  367. package/lib/typescript/module/dialog/DetailDialogBase.d.ts +20 -0
  368. package/lib/typescript/module/dialog/DetailDialogBase.d.ts.map +1 -0
  369. package/lib/typescript/module/dialog/DetailDialogMotion.d.ts +9 -0
  370. package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -0
  371. package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts +7 -0
  372. package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts.map +1 -0
  373. package/lib/typescript/module/dialog/DetailDialogSection.d.ts +6 -0
  374. package/lib/typescript/module/dialog/DetailDialogSection.d.ts.map +1 -0
  375. package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
  376. package/lib/typescript/module/dialog/context.d.ts +2 -0
  377. package/lib/typescript/module/dialog/context.d.ts.map +1 -1
  378. package/lib/typescript/module/dialog/index.d.ts +3 -1
  379. package/lib/typescript/module/dialog/index.d.ts.map +1 -1
  380. package/lib/typescript/module/dialog/index.web.d.ts +3 -1
  381. package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
  382. package/lib/typescript/module/dialog/types.d.ts +37 -0
  383. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  384. package/lib/typescript/module/index.d.ts +3 -3
  385. package/lib/typescript/module/index.d.ts.map +1 -1
  386. package/lib/typescript/module/index.web.d.ts +3 -3
  387. package/lib/typescript/module/index.web.d.ts.map +1 -1
  388. package/lib/typescript/module/layout/app-shell-region.d.ts +2 -0
  389. package/lib/typescript/module/layout/app-shell-region.d.ts.map +1 -1
  390. package/lib/typescript/module/layout/index.d.ts +1 -0
  391. package/lib/typescript/module/layout/index.d.ts.map +1 -1
  392. package/lib/typescript/module/layout/index.web.d.ts +1 -0
  393. package/lib/typescript/module/layout/index.web.d.ts.map +1 -1
  394. package/lib/typescript/module/layout/safe-area-ownership.d.ts +8 -0
  395. package/lib/typescript/module/layout/safe-area-ownership.d.ts.map +1 -0
  396. package/lib/typescript/module/layout/screen-scope.d.ts +3 -1
  397. package/lib/typescript/module/layout/screen-scope.d.ts.map +1 -1
  398. package/lib/typescript/module/list/ListItemBase.d.ts.map +1 -1
  399. package/lib/typescript/module/list/ListMail.d.ts.map +1 -1
  400. package/lib/typescript/module/list/list-style.d.ts +1 -0
  401. package/lib/typescript/module/list/list-style.d.ts.map +1 -1
  402. package/lib/typescript/module/list/types.d.ts +10 -3
  403. package/lib/typescript/module/list/types.d.ts.map +1 -1
  404. package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
  405. package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -1
  406. package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -1
  407. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
  408. package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts +4 -0
  409. package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts.map +1 -0
  410. package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
  411. package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
  412. package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -1
  413. package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +1 -8
  414. package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -1
  415. package/lib/typescript/module/project-board/context.d.ts +2 -1
  416. package/lib/typescript/module/project-board/context.d.ts.map +1 -1
  417. package/lib/typescript/module/project-board/index.d.ts +2 -1
  418. package/lib/typescript/module/project-board/index.d.ts.map +1 -1
  419. package/lib/typescript/module/project-board/index.web.d.ts +2 -1
  420. package/lib/typescript/module/project-board/index.web.d.ts.map +1 -1
  421. package/lib/typescript/module/project-board/types.d.ts +12 -0
  422. package/lib/typescript/module/project-board/types.d.ts.map +1 -1
  423. package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
  424. package/lib/typescript/module/screen/ScreenContent.d.ts +14 -0
  425. package/lib/typescript/module/screen/ScreenContent.d.ts.map +1 -0
  426. package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
  427. package/lib/typescript/module/screen/content.d.ts +6 -0
  428. package/lib/typescript/module/screen/content.d.ts.map +1 -0
  429. package/lib/typescript/module/screen/index.d.ts +3 -0
  430. package/lib/typescript/module/screen/index.d.ts.map +1 -1
  431. package/lib/typescript/module/screen/index.web.d.ts +3 -0
  432. package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
  433. package/lib/typescript/module/screen/keyboard-components.d.ts +5 -0
  434. package/lib/typescript/module/screen/keyboard-components.d.ts.map +1 -1
  435. package/lib/typescript/module/screen/types.d.ts +7 -0
  436. package/lib/typescript/module/screen/types.d.ts.map +1 -1
  437. package/lib/typescript/module/sidebar/SidebarFolder.d.ts +3 -12
  438. package/lib/typescript/module/sidebar/SidebarFolder.d.ts.map +1 -1
  439. package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts.map +1 -1
  440. package/lib/typescript/module/sidebar/types.d.ts +1 -1
  441. package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
  442. package/package.json +1 -1
  443. package/src/__tests__/support/public-part-classifications.json +19 -1
  444. package/src/app-shell/AppShell.tsx +15 -6
  445. package/src/app-shell/AppShellEngine.tsx +36 -10
  446. package/src/app-shell/AppShellPanelLayout.tsx +106 -55
  447. package/src/app-shell/AppShellPanels.tsx +75 -44
  448. package/src/app-shell/composition.ts +257 -0
  449. package/src/app-shell/context.ts +5 -0
  450. package/src/app-shell/hooks/index.ts +3 -0
  451. package/src/app-shell/index.ts +16 -0
  452. package/src/app-shell/index.web.ts +16 -0
  453. package/src/app-shell/panel-layout-css.ts +7 -3
  454. package/src/app-shell/panel-layout-types.ts +2 -1
  455. package/src/app-shell/panel-session.tsx +246 -0
  456. package/src/app-shell/shell-layout-css.ts +6 -1
  457. package/src/app-shell/types.ts +15 -3
  458. package/src/canvas/CanvasPanelBase.tsx +1 -1
  459. package/src/chat-screen/ChatInfoPanelBase.tsx +1 -1
  460. package/src/dialog/DetailDialog.tsx +13 -0
  461. package/src/dialog/DetailDialog.web.tsx +13 -0
  462. package/src/dialog/DetailDialogBase.tsx +207 -0
  463. package/src/dialog/DetailDialogMotion.tsx +75 -0
  464. package/src/dialog/DetailDialogMotion.web.tsx +360 -0
  465. package/src/dialog/DetailDialogSection.tsx +42 -0
  466. package/src/dialog/Dialog.tsx +98 -85
  467. package/src/dialog/context.ts +3 -0
  468. package/src/dialog/index.ts +5 -0
  469. package/src/dialog/index.web.ts +5 -0
  470. package/src/dialog/types.ts +40 -0
  471. package/src/index.ts +7 -0
  472. package/src/index.web.ts +7 -0
  473. package/src/layout/app-shell-region.ts +2 -0
  474. package/src/layout/index.ts +2 -0
  475. package/src/layout/index.web.ts +2 -0
  476. package/src/layout/safe-area-ownership.ts +22 -0
  477. package/src/layout/screen-scope.tsx +31 -22
  478. package/src/list/ListItemBase.tsx +59 -65
  479. package/src/list/ListMail.tsx +5 -1
  480. package/src/list/list-style.ts +1 -0
  481. package/src/list/types.ts +11 -3
  482. package/src/page-header/PageHeader.tsx +3 -1
  483. package/src/project-board/ProjectBoard.tsx +2 -0
  484. package/src/project-board/ProjectBoard.web.tsx +2 -0
  485. package/src/project-board/ProjectBoardBase.tsx +13 -13
  486. package/src/project-board/ProjectBoardCardContent.tsx +54 -0
  487. package/src/project-board/TicketCornerGenieSurface.web.tsx +1 -362
  488. package/src/project-board/TicketDetailDialog.tsx +311 -426
  489. package/src/project-board/TicketGenieSurface.tsx +4 -75
  490. package/src/project-board/TicketTokenChart.tsx +1 -1
  491. package/src/project-board/context.ts +2 -1
  492. package/src/project-board/index.ts +2 -0
  493. package/src/project-board/index.web.ts +2 -0
  494. package/src/project-board/types.ts +13 -0
  495. package/src/screen/ScreenBase.tsx +30 -7
  496. package/src/screen/ScreenContent.tsx +61 -0
  497. package/src/screen/ScreenScrollViewBase.tsx +80 -1
  498. package/src/screen/content.ts +26 -0
  499. package/src/screen/index.ts +4 -0
  500. package/src/screen/index.web.ts +4 -0
  501. package/src/screen/keyboard-components.ts +2 -0
  502. package/src/screen/types.ts +7 -0
  503. package/src/sidebar/SidebarFolder.tsx +101 -91
  504. package/src/sidebar/SidebarTreeSection.tsx +36 -35
  505. package/src/sidebar/tree.ts +2 -2
  506. package/src/sidebar/types.ts +5 -1
@@ -457,3 +457,43 @@ export interface DialogScreenFrame {
457
457
  /** Defaults to true. false skips resizing for this frame. */
458
458
  morph?: boolean;
459
459
  }
460
+
461
+ /** Generic record detail surface, shared with the ProjectBoard template. */
462
+ export interface DetailDialogProps {
463
+ /** Controlled visibility; omit when the existing Dialog lifecycle owns dismissal. */
464
+ open?: boolean;
465
+ /** Initial open intent; onClose then runs after the shared exit completes. */
466
+ startOpen?: boolean;
467
+ onClose: () => void;
468
+ label: string;
469
+ /** Side detail by default; center retains the same material and slot geometry. */
470
+ mode?: 'side' | 'center';
471
+ /** Identity/title rendered by the shared PageHeader. */
472
+ header?: React.ReactNode;
473
+ subtitle?: string;
474
+ actions?: React.ReactNode;
475
+ children?: React.ReactNode;
476
+ /** Bottom-aligned content inside the same scroll viewport (activity/composer). */
477
+ scrollFooter?: React.ReactNode;
478
+ /** Fixed bottom chrome, sharing the Screen and application providers. */
479
+ footer?: React.ReactNode;
480
+ footerKeyboardBehavior?: import('../screen/types').ScreenProps['bottomBarKeyboardBehavior'];
481
+ contentKind?: import('../screen/content').ScreenKind;
482
+ /** False gives a canvas a bounded body without an extra scroll viewport. */
483
+ scrollable?: boolean;
484
+ closeLabel?: string;
485
+ testID?: string;
486
+ }
487
+
488
+ /** A labeled section of record properties or resources. */
489
+ export interface DetailDialogSectionProps {
490
+ label: React.ReactNode;
491
+ children?: React.ReactNode;
492
+ accessibilityLabel?: string;
493
+ testID?: string;
494
+ }
495
+
496
+ export interface DetailDialogSectionGroupProps {
497
+ children?: React.ReactNode;
498
+ testID?: string;
499
+ }
package/src/index.ts CHANGED
@@ -185,12 +185,18 @@ export {
185
185
  } from './overlay';
186
186
  export type { OverlayRootProps, BackdropProps, OverlayLayer } from './overlay';
187
187
  export {
188
+ DetailDialog,
189
+ DetailDialogSection,
190
+ DetailDialogSectionGroup,
188
191
  Dialog,
189
192
  useDialogContext,
190
193
  useDialogControl,
191
194
  useDialogHeader,
192
195
  } from './dialog';
193
196
  export type {
197
+ DetailDialogProps,
198
+ DetailDialogSectionProps,
199
+ DetailDialogSectionGroupProps,
194
200
  DialogAction,
195
201
  DialogActionColor,
196
202
  DialogContextProps,
@@ -238,6 +244,7 @@ export {
238
244
  TopEdgeProvider,
239
245
  useClaimTopEdge,
240
246
  useTopEdgeInset,
247
+ useContentSafeAreaInsets,
241
248
  ScrollOffsetProvider,
242
249
  ScrollMetricsProvider,
243
250
  useScrollMetricsBinding,
package/src/index.web.ts CHANGED
@@ -190,12 +190,18 @@ export {
190
190
  } from './overlay';
191
191
  export type { OverlayRootProps, BackdropProps, OverlayLayer } from './overlay';
192
192
  export {
193
+ DetailDialog,
194
+ DetailDialogSection,
195
+ DetailDialogSectionGroup,
193
196
  Dialog,
194
197
  useDialogContext,
195
198
  useDialogControl,
196
199
  useDialogHeader,
197
200
  } from './dialog/index.web';
198
201
  export type {
202
+ DetailDialogProps,
203
+ DetailDialogSectionProps,
204
+ DetailDialogSectionGroupProps,
199
205
  DialogAction,
200
206
  DialogActionColor,
201
207
  DialogContextProps,
@@ -243,6 +249,7 @@ export {
243
249
  TopEdgeProvider,
244
250
  useClaimTopEdge,
245
251
  useTopEdgeInset,
252
+ useContentSafeAreaInsets,
246
253
  ScrollOffsetProvider,
247
254
  ScrollMetricsProvider,
248
255
  useScrollMetricsBinding,
@@ -15,6 +15,8 @@
15
15
  import { createContext, useContext } from 'react';
16
16
 
17
17
  export interface AppShellRegionValue {
18
+ /** Surface framing is independent from navigation/region compactness. */
19
+ presentation?: import('../app-shell/composition').AppShellPresentation;
18
20
  /**
19
21
  * `document`: the region grows the web document (a sole panel grows with its
20
22
  * content). `container`: it grows inside the shell's own ScrollView.
@@ -54,3 +54,5 @@ export type {
54
54
  AutoHideBarOptions,
55
55
  AutoHideBarProps,
56
56
  } from './types';
57
+
58
+ export { useContentSafeAreaInsets } from './safe-area-ownership';
@@ -59,3 +59,5 @@ export type {
59
59
  AutoHideBarOptions,
60
60
  AutoHideBarProps,
61
61
  } from './types';
62
+
63
+ export { useContentSafeAreaInsets } from './safe-area-ownership';
@@ -0,0 +1,22 @@
1
+ import { createContext, useContext, useMemo } from 'react';
2
+ import { SafeAreaInsetsContext, type EdgeInsets } from 'react-native-safe-area-context';
3
+
4
+ export const NO_CONSUMED_SAFE_AREA: EdgeInsets = { top: 0, right: 0, bottom: 0, left: 0 };
5
+ /** Frame occupancy stays separate from physical insets, which portals still need. */
6
+ export const WindowSafeAreaInsetsContext = createContext<EdgeInsets | null>(null);
7
+ export const SafeAreaConsumedContext = createContext(NO_CONSUMED_SAFE_AREA);
8
+
9
+ /** Insets still owed by content after its enclosing frame has consumed its edges. */
10
+ export function useContentSafeAreaInsets(): EdgeInsets {
11
+ const physical = useContext(SafeAreaInsetsContext) ?? NO_CONSUMED_SAFE_AREA;
12
+ const consumed = useContext(SafeAreaConsumedContext);
13
+ return useMemo(
14
+ () => ({
15
+ top: Math.max(0, physical.top - consumed.top),
16
+ right: Math.max(0, physical.right - consumed.right),
17
+ bottom: Math.max(0, physical.bottom - consumed.bottom),
18
+ left: Math.max(0, physical.left - consumed.left),
19
+ }),
20
+ [physical, consumed],
21
+ );
22
+ }
@@ -1,3 +1,4 @@
1
+ import { SafeAreaConsumedContext, NO_CONSUMED_SAFE_AREA } from './safe-area-ownership';
1
2
  import { BloomScope } from '../appearance/BloomScope';
2
3
  import { ScreenHostContext, ScreenViewportContext } from '../screen/context';
3
4
  import { ScreenContext, ScreenNavigationContext } from '../screen/context';
@@ -54,13 +55,17 @@ export function ScreenScope({
54
55
  children,
55
56
  inheritBottomEdge = false,
56
57
  inheritNavigation = false,
58
+ inheritSafeArea = false,
57
59
  sizing,
58
60
  }: PropsWithChildren<{
59
61
  inheritBottomEdge?: boolean;
62
+ /** Bounded panels inherit the frame; independent overlays clear the ownership claim. */
63
+ inheritSafeArea?: boolean;
60
64
  /** Keep the enclosing navigation motion (a panel the shell's bottom bar follows). */
61
65
  inheritNavigation?: boolean;
62
66
  sizing?: 'content' | 'fill';
63
67
  }>) {
68
+ const consumedSafeArea = useContext(SafeAreaConsumedContext);
64
69
  const navigation = useContext(ScreenNavigationContext);
65
70
  // The same host while `sizing` is: a scope draws again with what it holds,
66
71
  // and a host made inline would make React look for every reader below it.
@@ -69,27 +74,31 @@ export function ScreenScope({
69
74
  [sizing],
70
75
  );
71
76
  return (
72
- <ScreenHostContext.Provider value={host}>
73
- <ScreenViewportContext.Provider value={null}>
74
- <ScreenContext.Provider value={null}>
75
- <ScreenNavigationContext.Provider value={inheritNavigation ? navigation : null}>
76
- <TopEdgeProvider>
77
- <BottomEdgeProvider inherit={inheritBottomEdge}>
78
- {/* null means no scroller has claimed this scope yet. */}
79
- <ScrollMetricsContext.Provider value={null}>
80
- <ScrollOffsetProvider value={null}>
81
- <WindowCornerProvider value>
82
- <WindowChromeProvider value={null}>
83
- <BloomScope controlDensity="default">{children}</BloomScope>
84
- </WindowChromeProvider>
85
- </WindowCornerProvider>
86
- </ScrollOffsetProvider>
87
- </ScrollMetricsContext.Provider>
88
- </BottomEdgeProvider>
89
- </TopEdgeProvider>
90
- </ScreenNavigationContext.Provider>
91
- </ScreenContext.Provider>
92
- </ScreenViewportContext.Provider>
93
- </ScreenHostContext.Provider>
77
+ <SafeAreaConsumedContext.Provider
78
+ value={inheritSafeArea ? consumedSafeArea : NO_CONSUMED_SAFE_AREA}
79
+ >
80
+ <ScreenHostContext.Provider value={host}>
81
+ <ScreenViewportContext.Provider value={null}>
82
+ <ScreenContext.Provider value={null}>
83
+ <ScreenNavigationContext.Provider value={inheritNavigation ? navigation : null}>
84
+ <TopEdgeProvider>
85
+ <BottomEdgeProvider inherit={inheritBottomEdge}>
86
+ {/* null means no scroller has claimed this scope yet. */}
87
+ <ScrollMetricsContext.Provider value={null}>
88
+ <ScrollOffsetProvider value={null}>
89
+ <WindowCornerProvider value>
90
+ <WindowChromeProvider value={null}>
91
+ <BloomScope controlDensity="default">{children}</BloomScope>
92
+ </WindowChromeProvider>
93
+ </WindowCornerProvider>
94
+ </ScrollOffsetProvider>
95
+ </ScrollMetricsContext.Provider>
96
+ </BottomEdgeProvider>
97
+ </TopEdgeProvider>
98
+ </ScreenNavigationContext.Provider>
99
+ </ScreenContext.Provider>
100
+ </ScreenViewportContext.Provider>
101
+ </ScreenHostContext.Provider>
102
+ </SafeAreaConsumedContext.Provider>
94
103
  );
95
104
  }
@@ -5,7 +5,7 @@ import { ListConversation } from './ListConversation';
5
5
  import { ListMail } from './ListMail';
6
6
  import { ChipRow } from '../chip';
7
7
  import { memo, useEffect } from 'react';
8
- import { Pressable, StyleSheet, View } from 'react-native';
8
+ import { Pressable, StyleSheet, View, type PressableProps } from 'react-native';
9
9
  import { Checkbox } from '../checkbox';
10
10
  import { openHref } from '../hooks/link-activation';
11
11
  import { RiMore2Line } from '../icons/remix/RiMore2Line';
@@ -20,7 +20,7 @@ import type { WebCssStyle } from '../styles/web-view-style';
20
20
  import { SwipeRow, useSwipeAvailable } from '../swipe-row';
21
21
  import { useTheme } from '../theme/use-theme';
22
22
  import { Text } from '../typography';
23
- import { LIST_CSS, LIST_STYLE_ID, LIST_ROW_INSET } from './list-style';
23
+ import { LIST_CSS, LIST_STYLE_ID, LIST_ROW_INSET, LIST_ROW_MIN_HEIGHT } from './list-style';
24
24
  import type { ListAction, ListItemProps, ListCommonProps } from './types';
25
25
 
26
26
  type Bindings = Pick<
@@ -146,6 +146,59 @@ export function createListItem({
146
146
  ) : (
147
147
  leading
148
148
  );
149
+ const triggerProps: PressableProps & { href?: string; 'aria-current'?: 'true' } = {
150
+ ...webDataSet({ bloomListLink: '' }),
151
+ ...(IS_WEB && href && !selecting ? { href } : {}),
152
+ role: role ?? (href && !selecting ? 'link' : 'button'),
153
+ accessibilityHint,
154
+ 'aria-checked': role === 'radio' || role === 'checkbox' ? checked : undefined,
155
+ 'aria-selected': role === 'option' ? checked : undefined,
156
+ accessibilityLabel: label,
157
+ disabled,
158
+ 'aria-disabled': disabled || undefined,
159
+ accessibilityState: {
160
+ selected: active || checked,
161
+ checked: role === 'radio' || role === 'checkbox' ? checked : undefined,
162
+ disabled,
163
+ },
164
+ 'aria-current': active ? 'true' : undefined,
165
+ accessibilityActions: commands.length
166
+ ? commands.map((action) => ({ name: action.key, label: action.label }))
167
+ : undefined,
168
+ onAccessibilityAction: (event) => {
169
+ const action = commands.find((item) => item.key === event.nativeEvent.actionName);
170
+ if (action) perform(action);
171
+ },
172
+ onHoverIn: disabled ? undefined : onPrefetch,
173
+ onFocus: disabled ? undefined : onPrefetch,
174
+ onPressIn: disabled ? undefined : onPrefetch,
175
+ onPress: (event) => {
176
+ if (disabled) return;
177
+ if (selecting && onCheckedChange) {
178
+ event.preventDefault();
179
+ onCheckedChange(!checked);
180
+ } else if (onPress) {
181
+ if (href) event.preventDefault();
182
+ onPress();
183
+ } else if (!IS_WEB && href) openHref(href);
184
+ },
185
+ // Keep this mounted throughout selection: RNW only suppresses the release
186
+ // click after a long press while the handler remains on the same Pressable.
187
+ onLongPress: touch
188
+ ? () => {
189
+ if (disabled) return;
190
+ if (onCheckedChange) {
191
+ if (!selecting) onCheckedChange(true);
192
+ } else onLongPress?.();
193
+ }
194
+ : undefined,
195
+ style: ({ pressed }) => [
196
+ StyleSheet.absoluteFill,
197
+ { borderRadius: 28 },
198
+ !IS_WEB && pressed && !active && !checked ? { backgroundColor: selectedFill } : undefined,
199
+ ],
200
+ testID: testID ? `${testID}-link` : undefined,
201
+ };
149
202
  const row = (
150
203
  <View
151
204
  {...webDataSet({
@@ -158,7 +211,7 @@ export function createListItem({
158
211
  style={[
159
212
  {
160
213
  opacity: disabled ? DISABLED_OPACITY : 1,
161
- minHeight: 56,
214
+ minHeight: LIST_ROW_MIN_HEIGHT,
162
215
  borderRadius: 28,
163
216
  '--bloom-list-selected': selectedFill,
164
217
  '--bloom-list-ring': theme.colors.primary,
@@ -168,68 +221,9 @@ export function createListItem({
168
221
  } as WebCssStyle,
169
222
  ]}
170
223
  >
171
- {trigger ??
224
+ {(typeof trigger === 'function' ? trigger(triggerProps) : trigger) ??
172
225
  (interactive ? (
173
- <Pressable
174
- {...webDataSet({ bloomListLink: '' })}
175
- {...(IS_WEB && href && !selecting ? { href } : {})}
176
- role={role ?? (href && !selecting ? 'link' : 'button')}
177
- accessibilityHint={accessibilityHint}
178
- aria-checked={role === 'radio' || role === 'checkbox' ? checked : undefined}
179
- aria-selected={role === 'option' ? checked : undefined}
180
- accessibilityLabel={label}
181
- disabled={disabled}
182
- aria-disabled={disabled || undefined}
183
- accessibilityState={{
184
- selected: active || checked,
185
- checked: role === 'radio' || role === 'checkbox' ? checked : undefined,
186
- disabled,
187
- }}
188
- aria-current={active ? 'true' : undefined}
189
- accessibilityActions={
190
- commands.length
191
- ? commands.map((action) => ({
192
- name: action.key,
193
- label: action.label,
194
- }))
195
- : undefined
196
- }
197
- onAccessibilityAction={(event) => {
198
- const action = commands.find((item) => item.key === event.nativeEvent.actionName);
199
- if (action) perform(action);
200
- }}
201
- onHoverIn={disabled ? undefined : onPrefetch}
202
- onFocus={disabled ? undefined : onPrefetch}
203
- onPressIn={disabled ? undefined : onPrefetch}
204
- onPress={(event) => {
205
- if (selecting && onCheckedChange) {
206
- event.preventDefault();
207
- onCheckedChange(!checked);
208
- } else if (onPress) {
209
- if (href) event.preventDefault();
210
- onPress();
211
- } else if (!IS_WEB && href) openHref(href);
212
- }}
213
- // Keep this handler mounted throughout selection: RNW suppresses the release click
214
- // after a long press only while onLongPress remains on the same Pressable.
215
- onLongPress={
216
- touch
217
- ? () => {
218
- if (onCheckedChange) {
219
- if (!selecting) onCheckedChange(true);
220
- } else onLongPress?.();
221
- }
222
- : undefined
223
- }
224
- style={({ pressed }) => [
225
- StyleSheet.absoluteFill,
226
- { borderRadius: 28 },
227
- !IS_WEB && pressed && !active && !checked
228
- ? { backgroundColor: selectedFill }
229
- : undefined,
230
- ]}
231
- testID={testID ? `${testID}-link` : undefined}
232
- />
226
+ <Pressable {...triggerProps} />
233
227
  ) : labelProp && label ? (
234
228
  <View
235
229
  accessible
@@ -243,7 +237,7 @@ export function createListItem({
243
237
  <View
244
238
  pointerEvents="box-none"
245
239
  style={{
246
- minHeight: 56,
240
+ minHeight: LIST_ROW_MIN_HEIGHT,
247
241
  flexDirection: 'row',
248
242
  alignItems: 'center',
249
243
  gap: 10,
@@ -14,6 +14,7 @@ import {
14
14
  } from '../mail-list/shared';
15
15
  import { useSurfaceFill } from '../styles/surface-levels';
16
16
  import { useTheme } from '../theme/use-theme';
17
+ import { webDataSet } from '../styles/web-data';
17
18
  import { Text } from '../typography';
18
19
  import type { ListCommonProps, ListMailData } from './types';
19
20
 
@@ -103,8 +104,11 @@ export function ListMail({
103
104
  {sender.name}
104
105
  </Text>
105
106
  <Text
107
+ {...webDataSet({ bloomListSupporting: String(props.supportingLines ?? 1) })}
106
108
  variant={unread ? 'caption-1-semibold' : 'caption-1-regular'}
107
- numberOfLines={1}
109
+ numberOfLines={
110
+ props.supportingLines === 'adaptive' ? 3 : (props.supportingLines ?? 1)
111
+ }
108
112
  style={{ color: unread ? paint.text : paint.textSecondary }}
109
113
  testID={id('subject')}
110
114
  >
@@ -1,5 +1,6 @@
1
1
  /** Shared content edge used by list sections and sidebar headings. */
2
2
  export const LIST_ROW_INSET = 10;
3
+ export const LIST_ROW_MIN_HEIGHT = 56;
3
4
  export const LIST_STYLE_ID = 'bloom-list';
4
5
  export const LIST_CSS = `
5
6
  [data-bloom-list-row] { container-type:inline-size; transition:background-color 120ms; }
package/src/list/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { PersonSummary } from '../chat-people/types';
2
2
  import type { ReactElement } from 'react';
3
- import type { ScrollViewProps, StyleProp, ViewStyle } from 'react-native';
3
+ import type { PressableProps, ScrollViewProps, StyleProp, ViewStyle } from 'react-native';
4
4
  import type { ScrollAreaScrollbar } from '../layout/types';
5
5
 
6
6
  /** Info passed to {@link VirtualListProps.renderItem} for each row. */
@@ -167,8 +167,16 @@ export interface ListCommonProps {
167
167
  onPrefetch?: () => void;
168
168
  href?: string;
169
169
  onLongPress?: () => void;
170
- /** Optional replacement for the row's open target, e.g. a disclosure trigger. */
171
- trigger?: import('react').ReactNode;
170
+ /**
171
+ * Optional replacement for the open target. A renderer receives the shared row
172
+ * handlers, accessibility and geometry; spread them onto the custom Pressable
173
+ * and compose only the additional behavior. A ready node remains supported.
174
+ */
175
+ trigger?:
176
+ | import('react').ReactNode
177
+ | ((
178
+ props: PressableProps & { href?: string; 'aria-current'?: 'true' },
179
+ ) => import('react').ReactNode);
172
180
  /** Controlled selection. The avatar becomes a checkbox only on hover or when checked. */
173
181
  checked?: boolean;
174
182
  onCheckedChange?: (checked: boolean) => void;
@@ -1,5 +1,6 @@
1
1
  import { SearchPresentationContext } from '../search/context';
2
2
  import { useTouchInput } from '../styles/pointer';
3
+ import { SafeAreaConsumedContext } from '../layout/safe-area-ownership';
3
4
  import { resolvePaintMode } from '../theme/paint';
4
5
  import { createHeaderActionsHost, HeaderActionsHostContext } from './context';
5
6
  import { pointerEventsStyle } from '../styles/pointer-events';
@@ -221,7 +222,8 @@ function PageHeaderComponent({
221
222
  const surfaceRecipe = useSurfaceFillRecipe();
222
223
  const surfaceFill = surfaceRecipe.paint;
223
224
  const insets = useCssSafeAreaInsets(useContext(SafeAreaInsetsContext) ?? NO_INSETS);
224
- const safeTop = (safeArea ?? !isWeb) ? insets.top : 0;
225
+ const topConsumed = useContext(SafeAreaConsumedContext).top > 0;
226
+ const safeTop = (safeArea ?? (!isWeb && !topConsumed)) ? insets.top : 0;
225
227
 
226
228
  // Web container queries own width, including during divider drags. Native
227
229
  // measures its own box; the window is its first-render seed only.
@@ -1,3 +1,4 @@
1
+ import { DetailDialog } from '../dialog/DetailDialog';
1
2
  import * as Accordion from '../accordion';
2
3
  import { Screen, ScreenScrollView } from '../screen';
3
4
  import { Button } from '../button';
@@ -13,6 +14,7 @@ import { ProjectBoardPlatformContext } from './context';
13
14
  import type { ProjectBoardProps } from './types';
14
15
 
15
16
  const platform = {
17
+ DetailDialog,
16
18
  ...Accordion,
17
19
  Screen,
18
20
  AppShellPanels,
@@ -1,3 +1,4 @@
1
+ import { DetailDialog } from '../dialog/DetailDialog.web';
1
2
  import * as Accordion from '../accordion/index.web';
2
3
  import { Screen, ScreenScrollView } from '../screen/index.web';
3
4
  import { Button } from '../button/index.web';
@@ -14,6 +15,7 @@ import { ProjectBoardPlatformContext } from './context';
14
15
  import type { ProjectBoardProps } from './types';
15
16
 
16
17
  const platform = {
18
+ DetailDialog,
17
19
  ...Accordion,
18
20
  Screen,
19
21
  AppShellPanels,
@@ -1,3 +1,4 @@
1
+ import { ProjectBoardCardContent } from './ProjectBoardCardContent';
1
2
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
2
3
  import { Platform } from 'react-native';
3
4
  import { Avatar } from '../avatar';
@@ -78,8 +79,8 @@ function TicketCard({
78
79
  }) {
79
80
  const { messages: m } = useMessages(PROJECT_BOARD_MESSAGES);
80
81
  return (
81
- <SourceView className="flex w-full flex-col gap-2 p-3">
82
- <SourceView className="flex min-h-[22px] items-start justify-between gap-3">
82
+ <ProjectBoardCardContent
83
+ header={
83
84
  <SourceView className="flex min-w-0 items-center text-body-2-medium text-text-secondary">
84
85
  <SourceText className="shrink-0 text-body-2-medium text-text-secondary">
85
86
  {ticket.code}
@@ -89,10 +90,11 @@ function TicketCard({
89
90
  {ticket.area}
90
91
  </SourceText>
91
92
  </SourceView>
92
- <TicketAssignees ids={ticket.assignees} members={members} />
93
- </SourceView>
94
- <SourceView className="flex flex-col items-start gap-2">
95
- <SourceView className="flex items-center gap-1.5">
93
+ }
94
+ actions={<TicketAssignees ids={ticket.assignees} members={members} />}
95
+ badges={
96
+ <>
97
+ {' '}
96
98
  <SourceChip className={cx('text-body-2-medium', PRIORITY_STYLES[ticket.priority])}>
97
99
  {m.priorityLabels[ticket.priority]}
98
100
  </SourceChip>
@@ -102,13 +104,11 @@ function TicketCard({
102
104
  {ticket.project}
103
105
  </SourceText>
104
106
  </SourceChip>
105
- </SourceView>
106
- <SourceView className="flex w-full flex-col gap-[5px]">
107
- <SourceText className="text-body-medium text-text-primary">{ticket.title}</SourceText>
108
- <SourceText className="text-body-2-medium text-text-secondary">{ticket.since}</SourceText>
109
- </SourceView>
110
- </SourceView>
111
- </SourceView>
107
+ </>
108
+ }
109
+ title={ticket.title}
110
+ description={ticket.since}
111
+ />
112
112
  );
113
113
  }
114
114
 
@@ -0,0 +1,54 @@
1
+ import type { ReactNode } from 'react';
2
+ import { StyledView } from '../styles/styled-primitives';
3
+ import { Text } from '../typography';
4
+ import type { ProjectBoardCardContentProps } from './types';
5
+
6
+ function text(value: ReactNode, className: string) {
7
+ return typeof value === 'string' || typeof value === 'number' ? (
8
+ <Text className={className}>{value}</Text>
9
+ ) : (
10
+ value
11
+ );
12
+ }
13
+
14
+ /** The template card's content geometry; the board owns material and dragging. */
15
+ export function ProjectBoardCardContent({
16
+ preview,
17
+ header,
18
+ actions,
19
+ badges,
20
+ title,
21
+ description,
22
+ children,
23
+ footer,
24
+ testID,
25
+ }: ProjectBoardCardContentProps) {
26
+ return (
27
+ <StyledView testID={testID} className="flex w-full flex-col">
28
+ {preview}
29
+ <StyledView className="flex w-full flex-col gap-2 p-3">
30
+ {(header != null || actions != null) && (
31
+ <StyledView className="flex flex-row min-h-[22px] items-start justify-between gap-3">
32
+ <StyledView style={{ flex: 1, minWidth: 0 }}>
33
+ {text(header, 'text-body-2-medium text-text-secondary')}
34
+ </StyledView>
35
+ {actions}
36
+ </StyledView>
37
+ )}
38
+ <StyledView className="flex flex-col items-start gap-2">
39
+ {badges != null && (
40
+ <StyledView className="flex flex-row items-center gap-1.5">{badges}</StyledView>
41
+ )}
42
+ {(title != null || description != null) && (
43
+ <StyledView className="flex w-full flex-col gap-[5px]">
44
+ {text(title, 'text-body-medium text-text-primary')}
45
+ {text(description, 'text-body-2-medium text-text-secondary')}
46
+ </StyledView>
47
+ )}
48
+ {children}
49
+ </StyledView>
50
+ {footer}
51
+ </StyledView>
52
+ </StyledView>
53
+ );
54
+ }