@oxy.so/bloom 22.0.1 → 22.1.1
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 +6 -0
- 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/swipe-row.mdx +30 -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/ListMail.js +5 -1
- package/lib/commonjs/list/ListMail.js.map +1 -1
- package/lib/commonjs/list/ListPerson.js +6 -9
- package/lib/commonjs/list/ListPerson.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/swipe-row/SwipeRow.js +6 -1
- package/lib/commonjs/swipe-row/SwipeRow.js.map +1 -1
- package/lib/commonjs/swipe-row/SwipeRowBubble.js +7 -8
- package/lib/commonjs/swipe-row/SwipeRowBubble.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/ListMail.js +5 -1
- package/lib/module/list/ListMail.js.map +1 -1
- package/lib/module/list/ListPerson.js +7 -10
- package/lib/module/list/ListPerson.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/swipe-row/SwipeRow.js +6 -1
- package/lib/module/swipe-row/SwipeRow.js.map +1 -1
- package/lib/module/swipe-row/SwipeRowBubble.js +8 -9
- package/lib/module/swipe-row/SwipeRowBubble.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/ListMail.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListPerson.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/swipe-row/SwipeRowBubble.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/ListMail.d.ts.map +1 -1
- package/lib/typescript/module/list/ListPerson.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/swipe-row/SwipeRowBubble.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/ListMail.tsx +5 -1
- package/src/list/ListPerson.tsx +12 -7
- 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/swipe-row/SwipeRow.tsx +5 -4
- package/src/swipe-row/SwipeRowBubble.tsx +12 -8
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
|
}
|
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/ListPerson.tsx
CHANGED
|
@@ -38,7 +38,12 @@ export function ListPerson({
|
|
|
38
38
|
return (
|
|
39
39
|
<Shell
|
|
40
40
|
{...props}
|
|
41
|
-
label={
|
|
41
|
+
label={
|
|
42
|
+
props.label ??
|
|
43
|
+
[name, subtitle, typeof props.supporting === 'string' ? props.supporting : undefined]
|
|
44
|
+
.filter(Boolean)
|
|
45
|
+
.join(', ')
|
|
46
|
+
}
|
|
42
47
|
leading={
|
|
43
48
|
props.leading !== undefined ? (
|
|
44
49
|
props.leading
|
|
@@ -56,11 +61,11 @@ export function ListPerson({
|
|
|
56
61
|
</View>
|
|
57
62
|
)
|
|
58
63
|
}
|
|
59
|
-
content
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
// Explicit content, including null, replaces the entire default identity block.
|
|
65
|
+
supporting={props.content !== undefined ? undefined : props.supporting}
|
|
66
|
+
title={
|
|
67
|
+
props.content !== undefined ? undefined : (
|
|
68
|
+
<>
|
|
64
69
|
<Text variant="body-medium" numberOfLines={1} style={textStyle} testID={id('name')}>
|
|
65
70
|
{name}
|
|
66
71
|
</Text>
|
|
@@ -74,7 +79,7 @@ export function ListPerson({
|
|
|
74
79
|
{subtitle}
|
|
75
80
|
</Text>
|
|
76
81
|
) : null}
|
|
77
|
-
|
|
82
|
+
</>
|
|
78
83
|
)
|
|
79
84
|
}
|
|
80
85
|
trailing={
|
|
@@ -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
|
+
}
|