@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.
- package/docs/adoption-matrix.mdx +13 -13
- package/docs/agent-task-index.mdx +1 -1
- package/docs/app-conventions.mdx +11 -0
- package/docs/app-shell.mdx +25 -2
- package/docs/compose-layouts.mdx +6 -0
- package/docs/composition.mdx +3 -1
- package/docs/dialog.mdx +57 -0
- package/docs/layout.mdx +10 -0
- package/docs/list.mdx +1 -1
- package/docs/project-board.mdx +28 -1
- package/docs/public-parts.mdx +8 -2
- package/docs/screen.mdx +15 -0
- package/docs/semantic-composition.mdx +207 -0
- package/docs/sidebar.mdx +16 -0
- package/docs/task-catalog.json +16 -3
- package/docs/task-catalog.mdx +6 -6
- package/docs/ui-architecture.mdx +6 -4
- package/lib/commonjs/app-shell/AppShell.js +18 -9
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +18 -5
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +59 -30
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanels.js +53 -31
- package/lib/commonjs/app-shell/AppShellPanels.js.map +1 -1
- package/lib/commonjs/app-shell/composition.js +232 -0
- package/lib/commonjs/app-shell/composition.js.map +1 -0
- package/lib/commonjs/app-shell/context.js +7 -1
- package/lib/commonjs/app-shell/context.js.map +1 -1
- package/lib/commonjs/app-shell/hooks/index.js +13 -0
- package/lib/commonjs/app-shell/hooks/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.js +38 -0
- package/lib/commonjs/app-shell/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.web.js +38 -0
- package/lib/commonjs/app-shell/index.web.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout-css.js +7 -3
- package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/panel-session.js +210 -0
- package/lib/commonjs/app-shell/panel-session.js.map +1 -0
- package/lib/commonjs/app-shell/shell-layout-css.js +6 -4
- package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
- package/lib/commonjs/canvas/CanvasPanelBase.js +1 -0
- package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/commonjs/dialog/DetailDialog.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialog.web.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogBase.js +204 -0
- package/lib/commonjs/dialog/DetailDialogBase.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js +87 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js +345 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogSection.js +49 -0
- package/lib/commonjs/dialog/DetailDialogSection.js.map +1 -0
- package/lib/commonjs/dialog/Dialog.js +101 -90
- package/lib/commonjs/dialog/Dialog.js.map +1 -1
- package/lib/commonjs/dialog/context.js +4 -1
- package/lib/commonjs/dialog/context.js.map +1 -1
- package/lib/commonjs/dialog/index.js +20 -0
- package/lib/commonjs/dialog/index.js.map +1 -1
- package/lib/commonjs/dialog/index.web.js +20 -0
- package/lib/commonjs/dialog/index.web.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +28 -0
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/layout/app-shell-region.js.map +1 -1
- package/lib/commonjs/layout/index.js +7 -0
- package/lib/commonjs/layout/index.js.map +1 -1
- package/lib/commonjs/layout/index.web.js +7 -0
- package/lib/commonjs/layout/index.web.js.map +1 -1
- package/lib/commonjs/layout/safe-area-ownership.js +31 -0
- package/lib/commonjs/layout/safe-area-ownership.js.map +1 -0
- package/lib/commonjs/layout/screen-scope.js +26 -20
- package/lib/commonjs/layout/screen-scope.js.map +1 -1
- package/lib/commonjs/list/ListItemBase.js +62 -58
- package/lib/commonjs/list/ListItemBase.js.map +1 -1
- package/lib/commonjs/list/ListMail.js +5 -1
- package/lib/commonjs/list/ListMail.js.map +1 -1
- package/lib/commonjs/list/list-style.js +2 -1
- package/lib/commonjs/list/list-style.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +3 -1
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.web.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +29 -41
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCardContent.js +56 -0
- package/lib/commonjs/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +7 -340
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/commonjs/project-board/TicketDetailDialog.js +317 -412
- package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/commonjs/project-board/TicketGenieSurface.js +13 -82
- package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js.map +1 -1
- package/lib/commonjs/project-board/context.js +9 -2
- package/lib/commonjs/project-board/context.js.map +1 -1
- package/lib/commonjs/project-board/index.js +7 -0
- package/lib/commonjs/project-board/index.js.map +1 -1
- package/lib/commonjs/project-board/index.web.js +7 -0
- package/lib/commonjs/project-board/index.web.js.map +1 -1
- package/lib/commonjs/screen/ScreenBase.js +44 -32
- package/lib/commonjs/screen/ScreenBase.js.map +1 -1
- package/lib/commonjs/screen/ScreenContent.js +61 -0
- package/lib/commonjs/screen/ScreenContent.js.map +1 -0
- package/lib/commonjs/screen/ScreenScrollViewBase.js +66 -1
- package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/commonjs/screen/content.js +25 -0
- package/lib/commonjs/screen/content.js.map +1 -0
- package/lib/commonjs/screen/index.js +7 -0
- package/lib/commonjs/screen/index.js.map +1 -1
- package/lib/commonjs/screen/index.web.js +7 -0
- package/lib/commonjs/screen/index.web.js.map +1 -1
- package/lib/commonjs/screen/keyboard-components.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarFolder.js +61 -74
- package/lib/commonjs/sidebar/SidebarFolder.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarTreeSection.js +30 -38
- package/lib/commonjs/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/commonjs/sidebar/tree.js +2 -2
- package/lib/commonjs/sidebar/tree.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +15 -5
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +18 -5
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +60 -30
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/AppShellPanels.js +52 -28
- package/lib/module/app-shell/AppShellPanels.js.map +1 -1
- package/lib/module/app-shell/composition.js +226 -0
- package/lib/module/app-shell/composition.js.map +1 -0
- package/lib/module/app-shell/context.js +4 -0
- package/lib/module/app-shell/context.js.map +1 -1
- package/lib/module/app-shell/hooks/index.js +1 -0
- package/lib/module/app-shell/hooks/index.js.map +1 -1
- package/lib/module/app-shell/index.js +3 -0
- package/lib/module/app-shell/index.js.map +1 -1
- package/lib/module/app-shell/index.web.js +3 -0
- package/lib/module/app-shell/index.web.js.map +1 -1
- package/lib/module/app-shell/panel-layout-css.js +7 -3
- package/lib/module/app-shell/panel-layout-css.js.map +1 -1
- package/lib/module/app-shell/panel-session.js +204 -0
- package/lib/module/app-shell/panel-session.js.map +1 -0
- package/lib/module/app-shell/shell-layout-css.js +6 -4
- package/lib/module/app-shell/shell-layout-css.js.map +1 -1
- package/lib/module/canvas/CanvasPanelBase.js +1 -0
- package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/module/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/module/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/module/dialog/DetailDialog.js +15 -0
- package/lib/module/dialog/DetailDialog.js.map +1 -0
- package/lib/module/dialog/DetailDialog.web.js +15 -0
- package/lib/module/dialog/DetailDialog.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogBase.js +200 -0
- package/lib/module/dialog/DetailDialogBase.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.js +81 -0
- package/lib/module/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.web.js +342 -0
- package/lib/module/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogSection.js +44 -0
- package/lib/module/dialog/DetailDialogSection.js.map +1 -0
- package/lib/module/dialog/Dialog.js +102 -91
- package/lib/module/dialog/Dialog.js.map +1 -1
- package/lib/module/dialog/context.js +3 -0
- package/lib/module/dialog/context.js.map +1 -1
- package/lib/module/dialog/index.js +2 -0
- package/lib/module/dialog/index.js.map +1 -1
- package/lib/module/dialog/index.web.js +2 -0
- package/lib/module/dialog/index.web.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +2 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/layout/app-shell-region.js.map +1 -1
- package/lib/module/layout/index.js +1 -0
- package/lib/module/layout/index.js.map +1 -1
- package/lib/module/layout/index.web.js +1 -0
- package/lib/module/layout/index.web.js.map +1 -1
- package/lib/module/layout/safe-area-ownership.js +26 -0
- package/lib/module/layout/safe-area-ownership.js.map +1 -0
- package/lib/module/layout/screen-scope.js +26 -20
- package/lib/module/layout/screen-scope.js.map +1 -1
- package/lib/module/list/ListItemBase.js +63 -59
- package/lib/module/list/ListItemBase.js.map +1 -1
- package/lib/module/list/ListMail.js +5 -1
- package/lib/module/list/ListMail.js.map +1 -1
- package/lib/module/list/list-style.js +1 -0
- package/lib/module/list/list-style.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +3 -1
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.js +2 -0
- package/lib/module/project-board/ProjectBoard.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.web.js +2 -0
- package/lib/module/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +30 -42
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCardContent.js +52 -0
- package/lib/module/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/module/project-board/TicketCornerGenieSurface.web.js +1 -339
- package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/module/project-board/TicketDetailDialog.js +317 -412
- package/lib/module/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/module/project-board/TicketGenieSurface.js +1 -78
- package/lib/module/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/module/project-board/TicketTokenChart.js +1 -1
- package/lib/module/project-board/TicketTokenChart.js.map +1 -1
- package/lib/module/project-board/context.js +1 -1
- package/lib/module/project-board/context.js.map +1 -1
- package/lib/module/project-board/index.js +1 -0
- package/lib/module/project-board/index.js.map +1 -1
- package/lib/module/project-board/index.web.js +1 -0
- package/lib/module/project-board/index.web.js.map +1 -1
- package/lib/module/screen/ScreenBase.js +22 -10
- package/lib/module/screen/ScreenBase.js.map +1 -1
- package/lib/module/screen/ScreenContent.js +57 -0
- package/lib/module/screen/ScreenContent.js.map +1 -0
- package/lib/module/screen/ScreenScrollViewBase.js +67 -2
- package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/module/screen/content.js +21 -0
- package/lib/module/screen/content.js.map +1 -0
- package/lib/module/screen/index.js +1 -0
- package/lib/module/screen/index.js.map +1 -1
- package/lib/module/screen/index.web.js +1 -0
- package/lib/module/screen/index.web.js.map +1 -1
- package/lib/module/screen/keyboard-components.js.map +1 -1
- package/lib/module/sidebar/SidebarFolder.js +61 -74
- package/lib/module/sidebar/SidebarFolder.js.map +1 -1
- package/lib/module/sidebar/SidebarTreeSection.js +30 -38
- package/lib/module/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/module/sidebar/tree.js +2 -2
- package/lib/module/sidebar/tree.js.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/composition.d.ts +52 -0
- package/lib/typescript/commonjs/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/types.d.ts +15 -3
- package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/context.d.ts +2 -0
- package/lib/typescript/commonjs/dialog/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +37 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +3 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +3 -3
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/commonjs/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/commonjs/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/list-style.d.ts +1 -0
- package/lib/typescript/commonjs/list/list-style.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/types.d.ts +10 -3
- package/lib/typescript/commonjs/list/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/context.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/types.d.ts +12 -0
- package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/content.d.ts +6 -0
- package/lib/typescript/commonjs/screen/content.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/index.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/types.d.ts +7 -0
- package/lib/typescript/commonjs/screen/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts +3 -12
- package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/composition.d.ts +52 -0
- package/lib/typescript/module/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/context.d.ts +4 -0
- package/lib/typescript/module/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/module/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/module/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/types.d.ts +15 -3
- package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/dialog/context.d.ts +2 -0
- package/lib/typescript/module/dialog/context.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.d.ts +3 -1
- package/lib/typescript/module/dialog/index.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.web.d.ts +3 -1
- package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +37 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -3
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +3 -3
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/module/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.d.ts +1 -0
- package/lib/typescript/module/layout/index.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.web.d.ts +1 -0
- package/lib/typescript/module/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/module/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/module/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/module/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/module/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/module/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/module/list/list-style.d.ts +1 -0
- package/lib/typescript/module/list/list-style.d.ts.map +1 -1
- package/lib/typescript/module/list/types.d.ts +10 -3
- package/lib/typescript/module/list/types.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/module/project-board/context.d.ts +2 -1
- package/lib/typescript/module/project-board/context.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.d.ts +2 -1
- package/lib/typescript/module/project-board/index.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.web.d.ts +2 -1
- package/lib/typescript/module/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/types.d.ts +12 -0
- package/lib/typescript/module/project-board/types.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/module/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/content.d.ts +6 -0
- package/lib/typescript/module/screen/content.d.ts.map +1 -0
- package/lib/typescript/module/screen/index.d.ts +3 -0
- package/lib/typescript/module/screen/index.d.ts.map +1 -1
- package/lib/typescript/module/screen/index.web.d.ts +3 -0
- package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/module/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/module/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/module/screen/types.d.ts +7 -0
- package/lib/typescript/module/screen/types.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarFolder.d.ts +3 -12
- package/lib/typescript/module/sidebar/SidebarFolder.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +1 -1
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/public-part-classifications.json +19 -1
- package/src/app-shell/AppShell.tsx +15 -6
- package/src/app-shell/AppShellEngine.tsx +36 -10
- package/src/app-shell/AppShellPanelLayout.tsx +106 -55
- package/src/app-shell/AppShellPanels.tsx +75 -44
- package/src/app-shell/composition.ts +257 -0
- package/src/app-shell/context.ts +5 -0
- package/src/app-shell/hooks/index.ts +3 -0
- package/src/app-shell/index.ts +16 -0
- package/src/app-shell/index.web.ts +16 -0
- package/src/app-shell/panel-layout-css.ts +7 -3
- package/src/app-shell/panel-layout-types.ts +2 -1
- package/src/app-shell/panel-session.tsx +246 -0
- package/src/app-shell/shell-layout-css.ts +6 -1
- package/src/app-shell/types.ts +15 -3
- package/src/canvas/CanvasPanelBase.tsx +1 -1
- package/src/chat-screen/ChatInfoPanelBase.tsx +1 -1
- package/src/dialog/DetailDialog.tsx +13 -0
- package/src/dialog/DetailDialog.web.tsx +13 -0
- package/src/dialog/DetailDialogBase.tsx +207 -0
- package/src/dialog/DetailDialogMotion.tsx +75 -0
- package/src/dialog/DetailDialogMotion.web.tsx +360 -0
- package/src/dialog/DetailDialogSection.tsx +42 -0
- package/src/dialog/Dialog.tsx +98 -85
- package/src/dialog/context.ts +3 -0
- package/src/dialog/index.ts +5 -0
- package/src/dialog/index.web.ts +5 -0
- package/src/dialog/types.ts +40 -0
- package/src/index.ts +7 -0
- package/src/index.web.ts +7 -0
- package/src/layout/app-shell-region.ts +2 -0
- package/src/layout/index.ts +2 -0
- package/src/layout/index.web.ts +2 -0
- package/src/layout/safe-area-ownership.ts +22 -0
- package/src/layout/screen-scope.tsx +31 -22
- package/src/list/ListItemBase.tsx +59 -65
- package/src/list/ListMail.tsx +5 -1
- package/src/list/list-style.ts +1 -0
- package/src/list/types.ts +11 -3
- package/src/page-header/PageHeader.tsx +3 -1
- package/src/project-board/ProjectBoard.tsx +2 -0
- package/src/project-board/ProjectBoard.web.tsx +2 -0
- package/src/project-board/ProjectBoardBase.tsx +13 -13
- package/src/project-board/ProjectBoardCardContent.tsx +54 -0
- package/src/project-board/TicketCornerGenieSurface.web.tsx +1 -362
- package/src/project-board/TicketDetailDialog.tsx +311 -426
- package/src/project-board/TicketGenieSurface.tsx +4 -75
- package/src/project-board/TicketTokenChart.tsx +1 -1
- package/src/project-board/context.ts +2 -1
- package/src/project-board/index.ts +2 -0
- package/src/project-board/index.web.ts +2 -0
- package/src/project-board/types.ts +13 -0
- package/src/screen/ScreenBase.tsx +30 -7
- package/src/screen/ScreenContent.tsx +61 -0
- package/src/screen/ScreenScrollViewBase.tsx +80 -1
- package/src/screen/content.ts +26 -0
- package/src/screen/index.ts +4 -0
- package/src/screen/index.web.ts +4 -0
- package/src/screen/keyboard-components.ts +2 -0
- package/src/screen/types.ts +7 -0
- package/src/sidebar/SidebarFolder.tsx +101 -91
- package/src/sidebar/SidebarTreeSection.tsx +36 -35
- package/src/sidebar/tree.ts +2 -2
- package/src/sidebar/types.ts +5 -1
package/src/dialog/types.ts
CHANGED
|
@@ -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.
|
package/src/layout/index.ts
CHANGED
package/src/layout/index.web.ts
CHANGED
|
@@ -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
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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:
|
|
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:
|
|
240
|
+
minHeight: LIST_ROW_MIN_HEIGHT,
|
|
247
241
|
flexDirection: 'row',
|
|
248
242
|
alignItems: 'center',
|
|
249
243
|
gap: 10,
|
package/src/list/ListMail.tsx
CHANGED
|
@@ -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={
|
|
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
|
>
|
package/src/list/list-style.ts
CHANGED
|
@@ -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
|
-
/**
|
|
171
|
-
|
|
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
|
|
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
|
-
<
|
|
82
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
+
}
|