@protobase/ui 0.115.1 → 0.117.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/dist/account/messages.d.ts +2 -2
- package/dist/app/app.js +84 -50
- package/dist/app/bottom-bar-from-meta.d.ts +8 -2
- package/dist/app/bottom-bar-from-meta.js +23 -11
- package/dist/app/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation/thread-state.d.ts +1 -1
- package/dist/app/create/messages.d.ts +2 -2
- package/dist/app/delete/messages.d.ts +2 -2
- package/dist/app/displays/messages.d.ts +2 -2
- package/dist/app/embedded-list/messages.d.ts +2 -2
- package/dist/app/export/export-dialog.js +1 -1
- package/dist/app/export/messages.d.ts +2 -2
- package/dist/app/field-types/workflow/definition.d.ts +1 -1
- package/dist/app/field-types/workflow/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-status/messages.d.ts +2 -2
- package/dist/app/file-viewers/messages.d.ts +2 -2
- package/dist/app/gallery/lightbox.js +1 -1
- package/dist/app/gallery/messages.d.ts +2 -2
- package/dist/app/hand-order/messages.d.ts +2 -2
- package/dist/app/history/messages.d.ts +2 -2
- package/dist/app/import/import-dialog.js +1 -1
- package/dist/app/import/messages.d.ts +2 -2
- package/dist/app/import/new-table/import-table-dialog.js +1 -1
- package/dist/app/list-messages.d.ts +2 -2
- package/dist/app/list-page.js +1 -1
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/pages/action-inputs/action-inputs-dialog.js +1 -1
- package/dist/app/pages/messages.d.ts +2 -2
- package/dist/app/pages/record-actions.js +1 -1
- package/dist/app/record-chart/messages.d.ts +2 -2
- package/dist/app/record-messages.d.ts +2 -2
- package/dist/app/record-row/messages.d.ts +2 -2
- package/dist/app/refresh-mark.js +46 -10
- package/dist/app/related-cards/messages.d.ts +2 -2
- package/dist/app/runtime/messages.d.ts +2 -2
- package/dist/app/saved/messages.d.ts +2 -2
- package/dist/app/saved/use-favorite.d.ts +1 -1
- package/dist/app/searches/messages.d.ts +2 -2
- package/dist/app/searches/update-search-dialog.js +1 -1
- package/dist/app/searches/use-save-search.d.ts +1 -1
- package/dist/app-shell/account-entry.d.ts +17 -0
- package/dist/app-shell/account-entry.js +40 -0
- package/dist/app-shell/app-shell.d.ts +13 -1
- package/dist/app-shell/app-shell.js +80 -10
- package/dist/app-shell/back-target.d.ts +3 -2
- package/dist/app-shell/back-target.js +4 -3
- package/dist/app-shell/bottom-bar.d.ts +15 -3
- package/dist/app-shell/bottom-bar.js +70 -42
- package/dist/app-shell/brand-bar.d.ts +15 -0
- package/dist/app-shell/brand-bar.js +19 -0
- package/dist/app-shell/brand-status-bar.d.ts +8 -0
- package/dist/app-shell/brand-status-bar.js +27 -0
- package/dist/app-shell/breadcrumb.d.ts +4 -2
- package/dist/app-shell/breadcrumb.js +45 -37
- package/dist/app-shell/drawer.d.ts +2 -1
- package/dist/app-shell/drawer.js +22 -5
- package/dist/app-shell/global-search.d.ts +3 -1
- package/dist/app-shell/global-search.js +4 -4
- package/dist/app-shell/index.js +2 -2
- package/dist/app-shell/leading-slot.d.ts +9 -0
- package/dist/app-shell/leading-slot.js +10 -0
- package/dist/app-shell/logo.js +2 -1
- package/dist/app-shell/menu-page.d.ts +19 -0
- package/dist/app-shell/menu-page.js +29 -0
- package/dist/app-shell/messages.d.ts +2 -2
- package/dist/app-shell/more-page.d.ts +45 -0
- package/dist/app-shell/more-page.js +30 -0
- package/dist/app-shell/native-tab-bar.d.ts +47 -0
- package/dist/app-shell/native-tab-bar.js +45 -0
- package/dist/app-shell/page-scroll.d.ts +3 -2
- package/dist/app-shell/page-scroll.js +5 -3
- package/dist/app-shell/profile-menu.d.ts +5 -1
- package/dist/app-shell/profile-menu.js +138 -117
- package/dist/app-shell/sidebar.d.ts +12 -1
- package/dist/app-shell/sidebar.js +20 -10
- package/dist/app-shell/tab-icon.d.ts +7 -0
- package/dist/app-shell/tab-icon.js +38 -0
- package/dist/app-shell/top-bar.d.ts +19 -3
- package/dist/app-shell/top-bar.js +104 -60
- package/dist/app-shell/use-native-bottom-bar.d.ts +16 -0
- package/dist/app-shell/use-native-bottom-bar.js +62 -0
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/calls/call-guests-panel.js +2 -2
- package/dist/calls/messages.d.ts +2 -2
- package/dist/carousel/messages.d.ts +2 -2
- package/dist/chat/messages.d.ts +2 -2
- package/dist/data-grid/column-spec.d.ts +1 -1
- package/dist/data-grid/header-menu.js +33 -28
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/data-grid/row-menu.js +38 -33
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/focus-page/bar-actions.js +1 -1
- package/dist/forms/messages.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -4
- package/dist/inline-child-table/messages.d.ts +2 -2
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/locale/en.js +7 -0
- package/dist/locale/en.json.d.ts +7 -0
- package/dist/locale/messages.d.ts +14 -0
- package/dist/locale/nl.js +7 -0
- package/dist/mocks/orders.d.ts +1 -1
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/notifications/bell/notification-bell.js +40 -35
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/primitives/avatar.d.ts +1 -1
- package/dist/primitives/avatar.js +2 -1
- package/dist/primitives/drawer-math.d.ts +39 -0
- package/dist/primitives/drawer-math.js +43 -0
- package/dist/primitives/menu-select.js +51 -44
- package/dist/primitives/menu-surface.d.ts +22 -0
- package/dist/primitives/menu-surface.js +29 -0
- package/dist/primitives/popover-menu.js +1 -0
- package/dist/primitives/sheet-drag.d.ts +5 -5
- package/dist/primitives/sheet-drag.js +10 -16
- package/dist/primitives/sheet.d.ts +5 -2
- package/dist/primitives/sheet.js +9 -6
- package/dist/primitives/use-drawer-drag.d.ts +34 -0
- package/dist/primitives/use-drawer-drag.js +103 -0
- package/dist/primitives/use-sheet-drag.d.ts +2 -2
- package/dist/primitives/use-sheet-drag.js +10 -9
- package/dist/record-view/action-menu.js +45 -40
- package/dist/shell/assets/{account-page-ZqwlW9hk.js → account-page-dcJyxP-d.js} +2 -2
- package/dist/shell/assets/app-BAQxWF5r.css +2 -0
- package/dist/shell/assets/app-DTl8rg8j.js +34 -0
- package/dist/shell/assets/{assistant-shell-B7BpQefx.js → assistant-shell-Bw1jJrLm.js} +2 -2
- package/dist/shell/assets/board-display-DDFDZzOk.js +2 -0
- package/dist/shell/assets/{calendar-display-BCHxv33y.js → calendar-display-B0R6JkIL.js} +2 -2
- package/dist/shell/assets/call-rings-CzvSKlfI.js +2 -0
- package/dist/shell/assets/{calls-BgQWuG_K.js → calls-BgwbMyeR.js} +2 -2
- package/dist/shell/assets/{circle-alert-GOsvVcfy.js → circle-alert-CANqQIsU.js} +2 -2
- package/dist/shell/assets/composed-page-gwTeW0b3.js +2 -0
- package/dist/shell/assets/{composer-section-f4ZiGN6b.js → composer-section-gsOgYgY2.js} +2 -2
- package/dist/shell/assets/{connect-route-DBl0vKRP.js → connect-route-CtL1EJIN.js} +2 -2
- package/dist/shell/assets/{copy-field-DyW5ue6m.js → copy-field-CamvXHHQ.js} +2 -2
- package/dist/shell/assets/create-route-Cx8yqS-H.js +2 -0
- package/dist/shell/assets/{custom-step-container-field-51YbUUBp.js → custom-step-container-field-0-Q_RuZy.js} +4 -4
- package/dist/shell/assets/embedded-list-56J4XDiR.js +3 -0
- package/dist/shell/assets/en-CtEQkQWj.js +2 -0
- package/dist/shell/assets/{export-dialog-Da8MFuqi.js → export-dialog-CEp2g6vx.js} +2 -2
- package/dist/shell/assets/export-worker-DlWkifnE.js +15 -0
- package/dist/shell/assets/{graph-view-d6QFVrkz.js → graph-view-CgjfBK_g.js} +2 -2
- package/dist/shell/assets/{group-donut-yTquvFkE.js → group-donut-DGZUg_gn.js} +2 -2
- package/dist/shell/assets/{guest-call-page-CZRLRnx2.js → guest-call-page-BhTshbrl.js} +3 -3
- package/dist/shell/assets/{html-viewer-DBmUOsJ3.js → html-viewer-GD1mwLEo.js} +2 -2
- package/dist/shell/assets/{import-dialog-ggSlUxm7.js → import-dialog-ByRCf2Cp.js} +2 -2
- package/dist/shell/assets/import-table-dialog-CiDY_0RT.js +2 -0
- package/dist/shell/assets/{index-BAGIbxUE.js → index-PtDa8a1m.js} +1 -1
- package/dist/shell/assets/invitations-page-Bh-RCnnl.js +2 -0
- package/dist/shell/assets/{layout-grid-Dn4qEC5I.js → layout-grid-DJrFC12w.js} +2 -2
- package/dist/shell/assets/{legend-item-CjJUgSsw.js → legend-item-YdN_NHUz.js} +2 -2
- package/dist/shell/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js → lib-vis.gl-react-maplibre-1cv426UN.js} +2 -2
- package/dist/shell/assets/list-page-BU1MrXbN.js +4 -0
- package/dist/shell/assets/maplibre-BedvDUG2.js +2 -0
- package/dist/shell/assets/{markdown-content-DX4_Buag.js → markdown-content-BlKajH2l.js} +2 -2
- package/dist/shell/assets/members-page-BYUO0Dq2.js +2 -0
- package/dist/shell/assets/{messages-Ct70wtYc.js → messages-DQ0cj-Ao.js} +2 -2
- package/dist/shell/assets/nl-9OWL4NdF.js +2 -0
- package/dist/shell/assets/organization-page-BrC1nHC-.js +2 -0
- package/dist/shell/assets/organizations-page-CaUeWdr4.js +2 -0
- package/dist/shell/assets/parse-worker-NutG5-Js.js +35 -0
- package/dist/shell/assets/{pending-invitation-row-BO7g_HOR.js → pending-invitation-row-juUdWvG6.js} +2 -2
- package/dist/shell/assets/{period-chart-DuwFRt6t.js → period-chart-BUZhUb5l.js} +2 -2
- package/dist/shell/assets/{person-row-BEVXbR43.js → person-row-DH3JhMfz.js} +2 -2
- package/dist/shell/assets/public-form-page-d3TamPPE.js +2 -0
- package/dist/shell/assets/record-lines-NtlHP9Lz.js +2 -0
- package/dist/shell/assets/{record-map-ysuwoP8e.js → record-map-BDXoF9AS.js} +2 -2
- package/dist/shell/assets/{record-opens-DLhF2J0q.js → record-opens-C1KgR6ff.js} +2 -2
- package/dist/shell/assets/record-page-D88DdoET.js +3 -0
- package/dist/shell/assets/record-preview-BT9_Hdcn.js +2 -0
- package/dist/shell/assets/{records-map-D_rSUmg1.js → records-map-BjHcY5gU.js} +2 -2
- package/dist/shell/assets/render-node-v6KfRocH.js +3 -0
- package/dist/shell/assets/reorder-button-B3GeKMOJ.js +2 -0
- package/dist/shell/assets/{run-trace-view-ygx54CFl.js → run-trace-view-Ddc0SELh.js} +2 -2
- package/dist/shell/assets/{runner-install-field-CqATImuc.js → runner-install-field-CiD9Pw1j.js} +2 -2
- package/dist/shell/assets/{runtime-update-Db162XI2.js → runtime-update-CoXcnfxB.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-CwLnXvxx.js +1 -0
- package/dist/shell/assets/sheet-source-DbJu1SrV.js +3 -0
- package/dist/shell/assets/sign-in-policy-page-B40iAeJa.js +2 -0
- package/dist/shell/assets/start-block-queries-C_udrEM9.js +2 -0
- package/dist/shell/assets/step-catalog-7obnZV6X.js +2 -0
- package/dist/shell/assets/{step-panel-gkiXwLZN.js → step-panel-BM_xu6Yy.js} +2 -2
- package/dist/shell/assets/timeline-display-CdLfWAbQ.js +2 -0
- package/dist/shell/assets/{trash-DfUQvtnQ.js → trash-BHo3HvFy.js} +2 -2
- package/dist/shell/assets/{update-set-CXnC4u8b.js → update-set-DTikSoau.js} +2 -2
- package/dist/shell/assets/use-calendar-move-Bhha2yOp.js +2 -0
- package/dist/shell/assets/{use-display-rows-DgbmFYc7.js → use-display-rows-CS_0O_UE.js} +2 -2
- package/dist/shell/assets/{use-paged-search-DfHM-bt_.js → use-paged-search-ChxCRCpF.js} +2 -2
- package/dist/shell/assets/{use-run-trace-Boc0Dt3j.js → use-run-trace-BfRRgSgG.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-BtLkA5E8.js → use-workflow-page-CTdBd8_8.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-CeXlzawJ.js → use-workflow-types-cZQ59ATf.js} +2 -2
- package/dist/shell/assets/{vendor-DQHyyBk1.js → vendor-t7Q7QbPu.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-Pq3WUUPt.js → workflow-canvas-B0kWJeH0.js} +4 -4
- package/dist/shell/assets/{workflow-field-ApOGZcSb.js → workflow-field-DXIk6V2Y.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-s14bAl5F.js → workflow-graph-editor-Cem4aY2u.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-CxEHxP9x.js → workflow-run-field-BeMn3eOH.js} +3 -3
- package/dist/shell/assets/workflow-status-field-0wvGDiva.js +2 -0
- package/dist/shell/assets/workflow-workbench-qT5c0xnH.js +4 -0
- package/dist/shell/index.html +5 -5
- package/dist/shell/protobase.shell.json +3 -3
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-ZqwlW9hk.js.map → account-page-dcJyxP-d.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-DTl8rg8j.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-B7BpQefx.js.map → assistant-shell-Bw1jJrLm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-DkUlCdNw.js.map → board-display-DDFDZzOk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-BCHxv33y.js.map → calendar-display-B0R6JkIL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-DAUYubKB.js.map → call-rings-CzvSKlfI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-BgQWuG_K.js.map → calls-BgwbMyeR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-GOsvVcfy.js.map → circle-alert-CANqQIsU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-BaecAyUt.js.map → composed-page-gwTeW0b3.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-f4ZiGN6b.js.map → composer-section-gsOgYgY2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-DBl0vKRP.js.map → connect-route-CtL1EJIN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-DyW5ue6m.js.map → copy-field-CamvXHHQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-C-2_HhMU.js.map → create-route-Cx8yqS-H.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-51YbUUBp.js.map → custom-step-container-field-0-Q_RuZy.js.map} +1 -1
- package/dist/shell-source-maps/assets/embedded-list-56J4XDiR.js.map +1 -0
- package/dist/shell-source-maps/assets/en-CtEQkQWj.js.map +1 -0
- package/dist/shell-source-maps/assets/{export-dialog-Da8MFuqi.js.map → export-dialog-CEp2g6vx.js.map} +1 -1
- package/dist/shell-source-maps/assets/export-worker-DlWkifnE.js.map +1 -0
- package/dist/shell-source-maps/assets/{graph-view-d6QFVrkz.js.map → graph-view-CgjfBK_g.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-yTquvFkE.js.map → group-donut-DGZUg_gn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-CZRLRnx2.js.map → guest-call-page-BhTshbrl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-DBmUOsJ3.js.map → html-viewer-GD1mwLEo.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-ggSlUxm7.js.map → import-dialog-ByRCf2Cp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-B_LVBAyn.js.map → import-table-dialog-CiDY_0RT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-CdI3jnMc.js.map → invitations-page-Bh-RCnnl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-Dn4qEC5I.js.map → layout-grid-DJrFC12w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-CjJUgSsw.js.map → legend-item-YdN_NHUz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js.map → lib-vis.gl-react-maplibre-1cv426UN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-DjCEQgcK.js.map → list-page-BU1MrXbN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-CaDAFMUv.js.map → maplibre-BedvDUG2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-DX4_Buag.js.map → markdown-content-BlKajH2l.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-DbhRf_Ir.js.map → members-page-BYUO0Dq2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-Ct70wtYc.js.map → messages-DQ0cj-Ao.js.map} +1 -1
- package/dist/shell-source-maps/assets/nl-9OWL4NdF.js.map +1 -0
- package/dist/shell-source-maps/assets/{organization-page-BzqYb0dI.js.map → organization-page-BrC1nHC-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-Pkf_qkKQ.js.map → organizations-page-CaUeWdr4.js.map} +1 -1
- package/dist/shell-source-maps/assets/parse-worker-NutG5-Js.js.map +1 -0
- package/dist/shell-source-maps/assets/{pending-invitation-row-BO7g_HOR.js.map → pending-invitation-row-juUdWvG6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-DuwFRt6t.js.map → period-chart-BUZhUb5l.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-BEVXbR43.js.map → person-row-DH3JhMfz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-BB1S8Xz-.js.map → public-form-page-d3TamPPE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-DH2WXKw7.js.map → record-lines-NtlHP9Lz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-ysuwoP8e.js.map → record-map-BDXoF9AS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-DLhF2J0q.js.map → record-opens-C1KgR6ff.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-BVYzIF9Z.js.map → record-page-D88DdoET.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-DWMs-hhQ.js.map → record-preview-BT9_Hdcn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-D_rSUmg1.js.map → records-map-BjHcY5gU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-BAePC3l_.js.map → render-node-v6KfRocH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-C3r76tJu.js.map → reorder-button-B3GeKMOJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-ygx54CFl.js.map → run-trace-view-Ddc0SELh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-CqATImuc.js.map → runner-install-field-CiD9Pw1j.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-Db162XI2.js.map → runtime-update-CoXcnfxB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-Dm00KLZc.js.map → sheet-source-DbJu1SrV.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-C2uInopq.js.map → sign-in-policy-page-B40iAeJa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-jNww7Vs5.js.map → start-block-queries-C_udrEM9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-Dv2NgEcj.js.map → step-catalog-7obnZV6X.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-gkiXwLZN.js.map → step-panel-BM_xu6Yy.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-DRsyatGd.js.map → timeline-display-CdLfWAbQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-DfUQvtnQ.js.map → trash-BHo3HvFy.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-CXnC4u8b.js.map → update-set-DTikSoau.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-BEV_Fhxn.js.map → use-calendar-move-Bhha2yOp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-DgbmFYc7.js.map → use-display-rows-CS_0O_UE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-DfHM-bt_.js.map → use-paged-search-ChxCRCpF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-Boc0Dt3j.js.map → use-run-trace-BfRRgSgG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-BtLkA5E8.js.map → use-workflow-page-CTdBd8_8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-CeXlzawJ.js.map → use-workflow-types-cZQ59ATf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{vendor-DQHyyBk1.js.map → vendor-t7Q7QbPu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-Pq3WUUPt.js.map → workflow-canvas-B0kWJeH0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-ApOGZcSb.js.map → workflow-field-DXIk6V2Y.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-s14bAl5F.js.map → workflow-graph-editor-Cem4aY2u.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-CxEHxP9x.js.map → workflow-run-field-BeMn3eOH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-DXe1sQIj.js.map → workflow-status-field-0wvGDiva.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-PmFBx_IG.js.map → workflow-workbench-qT5c0xnH.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/status/status-dialog.js +1 -1
- package/dist/theme.css +6 -0
- package/dist/tokens.css +10 -10
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/shell/assets/app-B62bQR9g.js +0 -34
- package/dist/shell/assets/app-BdzxOK1l.css +0 -2
- package/dist/shell/assets/board-display-DkUlCdNw.js +0 -2
- package/dist/shell/assets/call-rings-DAUYubKB.js +0 -2
- package/dist/shell/assets/composed-page-BaecAyUt.js +0 -2
- package/dist/shell/assets/create-route-C-2_HhMU.js +0 -2
- package/dist/shell/assets/embedded-list-BBrpHnq2.js +0 -3
- package/dist/shell/assets/en-B0Sx6LpA.js +0 -2
- package/dist/shell/assets/export-worker-DnXy8F95.js +0 -15
- package/dist/shell/assets/import-table-dialog-B_LVBAyn.js +0 -2
- package/dist/shell/assets/invitations-page-CdI3jnMc.js +0 -2
- package/dist/shell/assets/list-page-DjCEQgcK.js +0 -4
- package/dist/shell/assets/maplibre-CaDAFMUv.js +0 -2
- package/dist/shell/assets/members-page-DbhRf_Ir.js +0 -2
- package/dist/shell/assets/nl-DD4sTnQJ.js +0 -2
- package/dist/shell/assets/organization-page-BzqYb0dI.js +0 -2
- package/dist/shell/assets/organizations-page-Pkf_qkKQ.js +0 -2
- package/dist/shell/assets/parse-worker-BYXW4dAv.js +0 -35
- package/dist/shell/assets/public-form-page-BB1S8Xz-.js +0 -2
- package/dist/shell/assets/record-lines-DH2WXKw7.js +0 -2
- package/dist/shell/assets/record-page-BVYzIF9Z.js +0 -3
- package/dist/shell/assets/record-preview-DWMs-hhQ.js +0 -2
- package/dist/shell/assets/render-node-BAePC3l_.js +0 -3
- package/dist/shell/assets/reorder-button-C3r76tJu.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-BSmHN3g_.js +0 -1
- package/dist/shell/assets/sheet-source-Dm00KLZc.js +0 -3
- package/dist/shell/assets/sign-in-policy-page-C2uInopq.js +0 -2
- package/dist/shell/assets/start-block-queries-jNww7Vs5.js +0 -2
- package/dist/shell/assets/step-catalog-Dv2NgEcj.js +0 -2
- package/dist/shell/assets/timeline-display-DRsyatGd.js +0 -2
- package/dist/shell/assets/use-calendar-move-BEV_Fhxn.js +0 -2
- package/dist/shell/assets/workflow-status-field-DXe1sQIj.js +0 -2
- package/dist/shell/assets/workflow-workbench-PmFBx_IG.js +0 -4
- package/dist/shell-source-maps/assets/app-B62bQR9g.js.map +0 -1
- package/dist/shell-source-maps/assets/embedded-list-BBrpHnq2.js.map +0 -1
- package/dist/shell-source-maps/assets/en-B0Sx6LpA.js.map +0 -1
- package/dist/shell-source-maps/assets/export-worker-DnXy8F95.js.map +0 -1
- package/dist/shell-source-maps/assets/nl-DD4sTnQJ.js.map +0 -1
- package/dist/shell-source-maps/assets/parse-worker-BYXW4dAv.js.map +0 -1
|
@@ -55,6 +55,16 @@ export type AppShellProps = {
|
|
|
55
55
|
signIn?: RouteTarget;
|
|
56
56
|
/** Tabs along the bottom on phones, before "More", which opens the drawer instead of the top bar's menu button. */
|
|
57
57
|
bottomBar?: BottomBarTab[];
|
|
58
|
+
/**
|
|
59
|
+
* The sidebar as a page of its own, at `href`, and whether the address is it (`shown`): where the native tab bar draws
|
|
60
|
+
* the bottom bar, "More" goes there rather than sliding the sidebar over the page.
|
|
61
|
+
*/
|
|
62
|
+
menuPage?: {
|
|
63
|
+
href: string;
|
|
64
|
+
shown: boolean;
|
|
65
|
+
};
|
|
66
|
+
/** Search in the bottom bar (`m.search`), with its label or `true` for the default one, in More page mode; none keeps it out. */
|
|
67
|
+
bottomBarSearch?: string | true;
|
|
58
68
|
/** The organizations to switch between, in the profile menu. */
|
|
59
69
|
organizations?: ProfileOrganizations;
|
|
60
70
|
/** The roles to switch between, in the profile menu. */
|
|
@@ -66,7 +76,9 @@ export type AppShellProps = {
|
|
|
66
76
|
/** Whether the document scrolls on a page that does not choose with `usePageScroll`; otherwise the page fills a box of the screen's height. */
|
|
67
77
|
pageScroll?: boolean;
|
|
68
78
|
className?: string;
|
|
79
|
+
/** Mounted on every page, the sidebar's own page too, such as dialogs and incoming calls, which `children` are not. */
|
|
80
|
+
overlays?: ReactNode;
|
|
69
81
|
children: ReactNode;
|
|
70
82
|
};
|
|
71
|
-
export declare const AppShell: ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleContent, user, workspace, appName, appIcon, logo, actions, rightPanel, sidebarNotice, banner, forceExpanded, profileMenuOpen, navGroups, userMenu, account, bottomBar, onNavigate, onBack, onSignOut, signIn, organizations, roles, theme, status, search, pageScroll: scrollsByDefault, className, children }: AppShellProps) => import("react").JSX.Element;
|
|
83
|
+
export declare const AppShell: ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleContent, user, workspace, appName, appIcon, logo, actions, rightPanel, sidebarNotice, banner, forceExpanded, profileMenuOpen, navGroups, userMenu, account, bottomBar, menuPage, bottomBarSearch, onNavigate, onBack, onSignOut, signIn, organizations, roles, theme, status, search, pageScroll: scrollsByDefault, className, overlays, children }: AppShellProps) => import("react").JSX.Element;
|
|
72
84
|
//#endregion
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
|
+
import { text } from "./messages.js";
|
|
2
3
|
import { useIsDesktop } from "../lib/use-media-query.js";
|
|
3
4
|
import { BottomBar } from "./bottom-bar.js";
|
|
4
5
|
import { useCloseSidebarEvent } from "./close-sidebar.js";
|
|
5
6
|
import { Drawer } from "./drawer.js";
|
|
6
7
|
import { PageScrollContext, usePageGutter, usePageInsets } from "./page-scroll.js";
|
|
8
|
+
import { Logo } from "./logo.js";
|
|
9
|
+
import { tellLogoTap } from "./logo-tap.js";
|
|
10
|
+
import { TopBar } from "./top-bar.js";
|
|
7
11
|
import { Sidebar } from "./sidebar.js";
|
|
8
12
|
import { useSidebarNoticeShown } from "./sidebar-notice.js";
|
|
9
13
|
import { TopBarSlotContext } from "./top-bar-slot.js";
|
|
10
|
-
import {
|
|
14
|
+
import { useMenuPageBackground } from "./menu-page.js";
|
|
15
|
+
import { accountInTopBar, searchPlacement, useMorePageMode } from "./more-page.js";
|
|
16
|
+
import { useBrandStatusBar } from "./brand-status-bar.js";
|
|
17
|
+
import { AccountEntry } from "./account-entry.js";
|
|
11
18
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
12
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
20
|
//#region src/app-shell/app-shell.tsx
|
|
@@ -16,7 +23,7 @@ const staleLook = {
|
|
|
16
23
|
refreshing: "[animation:pb-stale_1.4s_ease-in-out_infinite] motion-reduce:[animation:none] motion-reduce:opacity-60",
|
|
17
24
|
failed: "opacity-60"
|
|
18
25
|
};
|
|
19
|
-
const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleContent, user, workspace, appName, appIcon, logo, actions, rightPanel, sidebarNotice, banner, forceExpanded, profileMenuOpen, navGroups, userMenu, account, bottomBar, onNavigate, onBack, onSignOut, signIn, organizations, roles, theme, status, search, pageScroll: scrollsByDefault = false, className, children }) => {
|
|
26
|
+
const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleContent, user, workspace, appName, appIcon, logo, actions, rightPanel, sidebarNotice, banner, forceExpanded, profileMenuOpen, navGroups, userMenu, account, bottomBar, menuPage, bottomBarSearch, onNavigate, onBack, onSignOut, signIn, organizations, roles, theme, status, search, pageScroll: scrollsByDefault = false, className, overlays, children }) => {
|
|
20
27
|
const desktop = useIsDesktop();
|
|
21
28
|
const noticeShown = useSidebarNoticeShown(sidebarMode);
|
|
22
29
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
|
@@ -25,6 +32,27 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
25
32
|
}, [desktop]);
|
|
26
33
|
useCloseSidebarEvent(useCallback(() => setDrawerOpen(false), []));
|
|
27
34
|
const tabs = !desktop && bottomBar && bottomBar.length > 0 ? bottomBar : void 0;
|
|
35
|
+
const more = useMorePageMode(tabs, menuPage);
|
|
36
|
+
const accountOnTop = accountInTopBar(desktop);
|
|
37
|
+
const onMore = more.on && onNavigate ? () => onNavigate(more.href) : () => setDrawerOpen(true);
|
|
38
|
+
const menuShown = more.on && more.shown;
|
|
39
|
+
useMenuPageBackground(menuShown);
|
|
40
|
+
const [searchOpen, setSearchOpen] = useState(false);
|
|
41
|
+
const brandProbe = useRef(null);
|
|
42
|
+
const ShellLogo = logo ?? Logo;
|
|
43
|
+
useBrandStatusBar(more.on, brandProbe);
|
|
44
|
+
const searchAt = search && searchPlacement({
|
|
45
|
+
desktop,
|
|
46
|
+
more: more.on,
|
|
47
|
+
inBottomBar: Boolean(bottomBarSearch)
|
|
48
|
+
});
|
|
49
|
+
const searchInBar = searchAt === "bottom-bar";
|
|
50
|
+
const openSearch = () => setSearchOpen(true);
|
|
51
|
+
const trail = !more.on ? breadcrumb : more.shown ? [text("more")] : more.onTab ? breadcrumb : [{
|
|
52
|
+
label: text("more"),
|
|
53
|
+
href: more.href
|
|
54
|
+
}, ...breadcrumb];
|
|
55
|
+
const firstTabShown = more.on && Boolean(tabs?.[0]?.shown);
|
|
28
56
|
const [chosen, setPageScroll] = useState();
|
|
29
57
|
const pageScroll = chosen ?? scrollsByDefault;
|
|
30
58
|
const topBarRef = useRef(null);
|
|
@@ -34,6 +62,8 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
34
62
|
usePageGutter(pageScroll);
|
|
35
63
|
const sidebar = (place) => /* @__PURE__ */ jsx(Sidebar, {
|
|
36
64
|
...place,
|
|
65
|
+
accountInTopBar: accountOnTop,
|
|
66
|
+
...place.page && search && searchAt === "more-page" && { search },
|
|
37
67
|
activeItem,
|
|
38
68
|
user,
|
|
39
69
|
workspace,
|
|
@@ -53,10 +83,14 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
53
83
|
status,
|
|
54
84
|
logo
|
|
55
85
|
});
|
|
56
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ jsxs(PageScrollContext.Provider, {
|
|
57
87
|
value: setPageScroll,
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
-
|
|
88
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
89
|
+
ref: brandProbe,
|
|
90
|
+
"aria-hidden": true,
|
|
91
|
+
className: "hidden bg-primary"
|
|
92
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
93
|
+
className: cn(pageScroll ? "flex min-h-full w-full overflow-x-clip" : "relative flex h-full min-h-0 w-full overflow-hidden", menuShown ? "bg-sidebar" : "bg-background", className),
|
|
60
94
|
children: [
|
|
61
95
|
desktop ? sidebar({
|
|
62
96
|
mode: sidebarMode,
|
|
@@ -78,11 +112,40 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
78
112
|
ref: topBarRef,
|
|
79
113
|
slotRef: setTopBarSlot,
|
|
80
114
|
sticky: pageScroll,
|
|
81
|
-
breadcrumb,
|
|
115
|
+
breadcrumb: trail,
|
|
82
116
|
titleStatus,
|
|
83
117
|
onNavigate,
|
|
84
118
|
onBack,
|
|
85
119
|
actions,
|
|
120
|
+
brand: more.on,
|
|
121
|
+
backInLeadingSlot: more.on,
|
|
122
|
+
...firstTabShown && { leading: /* @__PURE__ */ jsx("div", {
|
|
123
|
+
className: "flex min-w-0 items-center",
|
|
124
|
+
onClick: () => tellLogoTap(),
|
|
125
|
+
children: /* @__PURE__ */ jsx(ShellLogo, {
|
|
126
|
+
compact: false,
|
|
127
|
+
workspace,
|
|
128
|
+
appName,
|
|
129
|
+
appIcon
|
|
130
|
+
})
|
|
131
|
+
}) },
|
|
132
|
+
account: accountOnTop && /* @__PURE__ */ jsx(AccountEntry, {
|
|
133
|
+
onBrand: more.on,
|
|
134
|
+
user,
|
|
135
|
+
signIn,
|
|
136
|
+
open: profileMenuOpen,
|
|
137
|
+
items: userMenu,
|
|
138
|
+
account,
|
|
139
|
+
onNavigate,
|
|
140
|
+
onSignOut,
|
|
141
|
+
organizations,
|
|
142
|
+
roles,
|
|
143
|
+
theme,
|
|
144
|
+
status
|
|
145
|
+
}),
|
|
146
|
+
searchButton: searchAt === "top-bar",
|
|
147
|
+
searchOpen,
|
|
148
|
+
onSearchOpenChange: setSearchOpen,
|
|
86
149
|
onMenu: desktop || tabs ? void 0 : () => setDrawerOpen(true),
|
|
87
150
|
menuOpen: drawerOpen,
|
|
88
151
|
menuControls: drawerId,
|
|
@@ -92,9 +155,12 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
92
155
|
/* @__PURE__ */ jsx("main", {
|
|
93
156
|
className: cn(pageScroll ? "flex flex-1 flex-col" : "flex min-h-0 flex-1 flex-col", staleContent && staleLook[staleContent]),
|
|
94
157
|
"aria-busy": staleContent === "refreshing" || void 0,
|
|
95
|
-
children: /* @__PURE__ */
|
|
158
|
+
children: /* @__PURE__ */ jsxs(TopBarSlotContext.Provider, {
|
|
96
159
|
value: topBarSlot,
|
|
97
|
-
children
|
|
160
|
+
children: [menuShown ? sidebar({
|
|
161
|
+
mode: "text-large",
|
|
162
|
+
page: true
|
|
163
|
+
}) : children, overlays]
|
|
98
164
|
})
|
|
99
165
|
}),
|
|
100
166
|
tabs && /* @__PURE__ */ jsx(BottomBar, {
|
|
@@ -102,7 +168,11 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
102
168
|
sticky: pageScroll,
|
|
103
169
|
tabs,
|
|
104
170
|
onNavigate,
|
|
105
|
-
|
|
171
|
+
...searchInBar && {
|
|
172
|
+
onSearch: openSearch,
|
|
173
|
+
searchLabel: bottomBarSearch === true ? void 0 : bottomBarSearch
|
|
174
|
+
},
|
|
175
|
+
onMore,
|
|
106
176
|
moreOpen: drawerOpen,
|
|
107
177
|
moreControls: drawerId
|
|
108
178
|
})
|
|
@@ -113,7 +183,7 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
113
183
|
children: rightPanel
|
|
114
184
|
})
|
|
115
185
|
]
|
|
116
|
-
})
|
|
186
|
+
})]
|
|
117
187
|
});
|
|
118
188
|
};
|
|
119
189
|
//#endregion
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Crumb } from "./breadcrumb.js";
|
|
2
2
|
//#region src/app-shell/back-target.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* Where the mobile back button goes: the page the current one sits under,
|
|
5
|
-
*
|
|
4
|
+
* Where the mobile back button goes: the nearest page the current one sits under, the closest crumb before it with a
|
|
5
|
+
* page of its own, past crumbs that name no page, such as a sidebar group. It is `shown` when that is the last crumb,
|
|
6
|
+
* which a phone's trail then leaves to the button to show.
|
|
6
7
|
*/
|
|
7
8
|
export declare const backTarget: (parts: Crumb[]) => {
|
|
8
9
|
label: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
//#region src/app-shell/back-target.ts
|
|
2
2
|
/**
|
|
3
|
-
* Where the mobile back button goes: the page the current one sits under,
|
|
4
|
-
*
|
|
3
|
+
* Where the mobile back button goes: the nearest page the current one sits under, the closest crumb before it with a
|
|
4
|
+
* page of its own, past crumbs that name no page, such as a sidebar group. It is `shown` when that is the last crumb,
|
|
5
|
+
* which a phone's trail then leaves to the button to show.
|
|
5
6
|
*/
|
|
6
7
|
const backTarget = (parts) => {
|
|
7
8
|
const last = parts.at(-1);
|
|
8
9
|
const shown = typeof last === "object" && Boolean(last.above);
|
|
9
|
-
const previous = shown ? last : parts.
|
|
10
|
+
const previous = shown ? last : parts.slice(0, -1).findLast((part) => typeof part === "object" && Boolean(part.href));
|
|
10
11
|
if (typeof previous !== "object" || !previous.href || previous.loading) return void 0;
|
|
11
12
|
return {
|
|
12
13
|
label: previous.label,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Ref } from "react";
|
|
2
2
|
import { LucideIcon } from "lucide-react";
|
|
3
3
|
//#region src/app-shell/bottom-bar.d.ts
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* A tab: inside the admin it navigates, `external` opens a new tab. `active` while its page or one under it shows, such
|
|
6
|
+
* as one of its records; `shown` only while its own page does.
|
|
7
|
+
*/
|
|
5
8
|
export type BottomBarTab = {
|
|
6
9
|
id: string;
|
|
7
10
|
label: string;
|
|
@@ -9,11 +12,19 @@ export type BottomBarTab = {
|
|
|
9
12
|
href: string;
|
|
10
13
|
external?: boolean;
|
|
11
14
|
active?: boolean;
|
|
15
|
+
shown?: boolean;
|
|
12
16
|
};
|
|
13
17
|
export type BottomBarProps = {
|
|
14
18
|
tabs: BottomBarTab[];
|
|
15
19
|
/** Follows a tab that is not `external`; modified clicks are left to the browser. */
|
|
16
20
|
onNavigate?: (href: string) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Search, as a tab before "More", where the app put search in the bottom bar; none without it. It takes the last tab's
|
|
23
|
+
* place, which "More" then holds, except under the native tab bar, which draws it apart from the tabs.
|
|
24
|
+
*/
|
|
25
|
+
onSearch?: () => void;
|
|
26
|
+
/** Search's label; "Search" when omitted. */
|
|
27
|
+
searchLabel?: string;
|
|
17
28
|
/** "More": opens the navigation drawer. */
|
|
18
29
|
onMore: () => void;
|
|
19
30
|
moreOpen: boolean;
|
|
@@ -28,7 +39,8 @@ export type BottomBarProps = {
|
|
|
28
39
|
/**
|
|
29
40
|
* Tabs along the bottom of a phone, as on iOS: icon above label, the current screen in the accent colour, and "More"
|
|
30
41
|
* last, which opens the navigation drawer and is the current tab on screens the others do not hold. The padding below
|
|
31
|
-
* keeps the tabs clear of the iPhone home indicator.
|
|
42
|
+
* keeps the tabs clear of the iPhone home indicator. In an app whose bridge offers a native tab bar, that bar draws
|
|
43
|
+
* the tabs (`useNativeBottomBar`) and this one keeps its place, unseen.
|
|
32
44
|
*/
|
|
33
|
-
export declare const BottomBar: ({ tabs, onNavigate, onMore, moreOpen, moreControls, sticky, ref }: BottomBarProps) => import("react").JSX.Element;
|
|
45
|
+
export declare const BottomBar: ({ tabs, onNavigate, onSearch, searchLabel, onMore, moreOpen, moreControls, sticky, ref }: BottomBarProps) => import("react").JSX.Element;
|
|
34
46
|
//#endregion
|
|
@@ -1,61 +1,89 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { text } from "./messages.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useNativeBottomBar } from "./use-native-bottom-bar.js";
|
|
4
|
+
import { useImperativeHandle, useRef } from "react";
|
|
5
|
+
import { Ellipsis, Search } from "lucide-react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
7
|
//#region src/app-shell/bottom-bar.tsx
|
|
6
8
|
const inApp = (event) => event.button === 0 && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;
|
|
7
9
|
const tab = "flex min-h-[49px] min-w-0 flex-1 flex-col items-center justify-center gap-1 pb-1 pt-1.5 text-[0.625rem] font-medium leading-none";
|
|
8
10
|
/**
|
|
9
11
|
* Tabs along the bottom of a phone, as on iOS: icon above label, the current screen in the accent colour, and "More"
|
|
10
12
|
* last, which opens the navigation drawer and is the current tab on screens the others do not hold. The padding below
|
|
11
|
-
* keeps the tabs clear of the iPhone home indicator.
|
|
13
|
+
* keeps the tabs clear of the iPhone home indicator. In an app whose bridge offers a native tab bar, that bar draws
|
|
14
|
+
* the tabs (`useNativeBottomBar`) and this one keeps its place, unseen.
|
|
12
15
|
*/
|
|
13
|
-
const BottomBar = ({ tabs, onNavigate, onMore, moreOpen, moreControls, sticky, ref }) => {
|
|
16
|
+
const BottomBar = ({ tabs, onNavigate, onSearch, searchLabel, onMore, moreOpen, moreControls, sticky, ref }) => {
|
|
14
17
|
const moreCurrent = !tabs.some((item) => item.active);
|
|
15
|
-
|
|
18
|
+
const own = useRef(null);
|
|
19
|
+
useImperativeHandle(ref, () => own.current);
|
|
20
|
+
const labels = [
|
|
21
|
+
...tabs.map((item) => item.label),
|
|
22
|
+
...onSearch ? [searchLabel ?? text("search")] : [],
|
|
23
|
+
text("more")
|
|
24
|
+
];
|
|
25
|
+
const more = labels.length - 1;
|
|
26
|
+
const icons = tabs.map((item) => item.icon.displayName ?? item.icon.name);
|
|
27
|
+
const { native, height } = useNativeBottomBar(own, labels, moreCurrent ? more : tabs.findIndex((item) => item.active), onSearch ? tabs.length : void 0, icons);
|
|
28
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [sticky && /* @__PURE__ */ jsx("div", {
|
|
16
29
|
"aria-hidden": true,
|
|
17
30
|
className: "h-[var(--pb-sticky-bottom)] shrink-0 md:hidden"
|
|
18
31
|
}), /* @__PURE__ */ jsxs("nav", {
|
|
19
|
-
ref,
|
|
32
|
+
ref: own,
|
|
20
33
|
"aria-label": text("tabs"),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
"aria-hidden": native || void 0,
|
|
35
|
+
className: cn("flex shrink-0 border-t bg-background pb-[var(--pb-safe-bottom)] md:hidden", sticky && "fixed bottom-0 left-[var(--pb-safe-left)] right-[var(--pb-safe-right)] z-30", native && "invisible"),
|
|
36
|
+
style: native && height !== void 0 ? { height } : void 0,
|
|
37
|
+
children: [
|
|
38
|
+
tabs.map((item) => {
|
|
39
|
+
const Icon = item.icon;
|
|
40
|
+
return /* @__PURE__ */ jsxs("a", {
|
|
41
|
+
href: item.href,
|
|
42
|
+
"aria-current": item.active ? "page" : void 0,
|
|
43
|
+
...item.external ? {
|
|
44
|
+
target: "_blank",
|
|
45
|
+
rel: "noreferrer"
|
|
46
|
+
} : {},
|
|
47
|
+
onClick: (event) => {
|
|
48
|
+
if (item.external || !onNavigate || !inApp(event)) return;
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
onNavigate(item.href);
|
|
51
|
+
},
|
|
52
|
+
className: cn(tab, item.active ? "text-primary-text" : "text-muted-foreground"),
|
|
53
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
54
|
+
className: "size-6",
|
|
55
|
+
strokeWidth: item.active ? 2.2 : 1.9,
|
|
56
|
+
"aria-hidden": true
|
|
57
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
58
|
+
className: "max-w-full truncate px-0.5",
|
|
59
|
+
children: item.label
|
|
60
|
+
})]
|
|
61
|
+
}, item.id);
|
|
62
|
+
}),
|
|
63
|
+
onSearch && /* @__PURE__ */ jsxs("button", {
|
|
64
|
+
type: "button",
|
|
65
|
+
onClick: onSearch,
|
|
66
|
+
className: cn(tab, "text-muted-foreground"),
|
|
67
|
+
children: [/* @__PURE__ */ jsx(Search, {
|
|
38
68
|
className: "size-6",
|
|
39
|
-
strokeWidth:
|
|
69
|
+
strokeWidth: 1.9,
|
|
40
70
|
"aria-hidden": true
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}), text("more")]
|
|
58
|
-
})]
|
|
71
|
+
}), searchLabel ?? text("search")]
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsxs("button", {
|
|
74
|
+
type: "button",
|
|
75
|
+
"aria-expanded": moreOpen,
|
|
76
|
+
"aria-controls": moreControls,
|
|
77
|
+
"data-current": moreCurrent || void 0,
|
|
78
|
+
onClick: onMore,
|
|
79
|
+
className: cn(tab, moreCurrent ? "text-primary-text" : "text-muted-foreground"),
|
|
80
|
+
children: [/* @__PURE__ */ jsx(Ellipsis, {
|
|
81
|
+
className: "size-6",
|
|
82
|
+
strokeWidth: moreCurrent ? 2.2 : 1.9,
|
|
83
|
+
"aria-hidden": true
|
|
84
|
+
}), text("more")]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
59
87
|
})] });
|
|
60
88
|
};
|
|
61
89
|
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/app-shell/brand-bar.d.ts
|
|
2
|
+
/** A phone bar in the app's brand colour, as a phone app's own, up behind the status bar too. */
|
|
3
|
+
export declare const brandBar = "bg-primary border-transparent";
|
|
4
|
+
/**
|
|
5
|
+
* The bar's content in the brand's foreground, the theme's own `primary-foreground`: its text and every icon and link in
|
|
6
|
+
* it, whatever colour class they carry elsewhere. Only on the bar's content: what covers the bar, such as search, and
|
|
7
|
+
* what opens from it, which is drawn at the document's root, keep the page's colours.
|
|
8
|
+
*/
|
|
9
|
+
export declare const brandContent = "text-primary-foreground [&_*]:text-primary-foreground";
|
|
10
|
+
/**
|
|
11
|
+
* The status bar's style over a bar of `color`: light text over a dark colour, dark text over a light one, as the
|
|
12
|
+
* native SystemBars plugin names them (`DARK` for a dark background).
|
|
13
|
+
*/
|
|
14
|
+
export declare const statusBarStyleOver: (color: string) => "DARK" | "LIGHT";
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/app-shell/brand-bar.ts
|
|
2
|
+
/** A phone bar in the app's brand colour, as a phone app's own, up behind the status bar too. */
|
|
3
|
+
const brandBar = "bg-primary border-transparent";
|
|
4
|
+
/**
|
|
5
|
+
* The bar's content in the brand's foreground, the theme's own `primary-foreground`: its text and every icon and link in
|
|
6
|
+
* it, whatever colour class they carry elsewhere. Only on the bar's content: what covers the bar, such as search, and
|
|
7
|
+
* what opens from it, which is drawn at the document's root, keep the page's colours.
|
|
8
|
+
*/
|
|
9
|
+
const brandContent = "text-primary-foreground [&_*]:text-primary-foreground";
|
|
10
|
+
/**
|
|
11
|
+
* The status bar's style over a bar of `color`: light text over a dark colour, dark text over a light one, as the
|
|
12
|
+
* native SystemBars plugin names them (`DARK` for a dark background).
|
|
13
|
+
*/
|
|
14
|
+
const statusBarStyleOver = (color) => {
|
|
15
|
+
const [r = 255, g = 255, b = 255] = (color.match(/\d+(\.\d+)?/g) ?? []).map(Number);
|
|
16
|
+
return .299 * r + .587 * g + .114 * b < 150 ? "DARK" : "LIGHT";
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { brandBar, brandContent, statusBarStyleOver };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
//#region src/app-shell/brand-status-bar.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* While `on`, sets the status bar's text light or dark for the brand colour `probe` shows, through the app's SystemBars
|
|
5
|
+
* plugin where its bridge has one, so it reads over a brand-coloured bar; back to the system's own once off.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useBrandStatusBar: (on: boolean, probe: RefObject<HTMLElement | null>) => void;
|
|
8
|
+
//#endregion
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { nativeBridgeOf } from "../app/native-auth-fetch.js";
|
|
2
|
+
import { statusBarStyleOver } from "./brand-bar.js";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
//#region src/app-shell/brand-status-bar.ts
|
|
5
|
+
const shown = (color) => {
|
|
6
|
+
const context = document.createElement("canvas").getContext("2d", { willReadFrequently: true });
|
|
7
|
+
if (!context) return color;
|
|
8
|
+
context.fillStyle = color;
|
|
9
|
+
context.fillRect(0, 0, 1, 1);
|
|
10
|
+
const [r, g, b] = context.getImageData(0, 0, 1, 1).data;
|
|
11
|
+
return `rgb(${r}, ${g}, ${b})`;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* While `on`, sets the status bar's text light or dark for the brand colour `probe` shows, through the app's SystemBars
|
|
15
|
+
* plugin where its bridge has one, so it reads over a brand-coloured bar; back to the system's own once off.
|
|
16
|
+
*/
|
|
17
|
+
const useBrandStatusBar = (on, probe) => {
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
const bridge = nativeBridgeOf(window);
|
|
20
|
+
if (!on || !probe.current || !bridge?.isPluginAvailable("SystemBars")) return;
|
|
21
|
+
const style = statusBarStyleOver(shown(getComputedStyle(probe.current).backgroundColor));
|
|
22
|
+
bridge.nativePromise("SystemBars", "setStyle", { style });
|
|
23
|
+
return () => void bridge.nativePromise("SystemBars", "setStyle", { style: "DEFAULT" });
|
|
24
|
+
}, [on, probe]);
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useBrandStatusBar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MouseEvent } from "react";
|
|
1
|
+
import { MouseEvent, ReactNode } from "react";
|
|
2
2
|
//#region src/app-shell/breadcrumb.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* One step of the top bar's trail: plain text, or a link when it has a page of its own. A loading crumb shows a skeleton,
|
|
@@ -15,9 +15,11 @@ export type BreadcrumbProps = {
|
|
|
15
15
|
parts: Crumb[];
|
|
16
16
|
/** Follows a crumb's link in the app; modified and middle clicks are left to the browser, so they open a new tab. */
|
|
17
17
|
onNavigate?: (href: string) => void;
|
|
18
|
+
/** Right after the current page's name, such as the page's refresh status; the name truncates before it. */
|
|
19
|
+
trailing?: ReactNode;
|
|
18
20
|
};
|
|
19
21
|
/** A plain left click, which the app follows itself; others open a new tab. */
|
|
20
22
|
export declare const inApp: (event: MouseEvent) => boolean;
|
|
21
23
|
/** The trail of where you are; the current page, the last crumb unless it is `above`, shows on phones too. */
|
|
22
|
-
export declare const Breadcrumb: ({ parts, onNavigate }: BreadcrumbProps) => import("react").JSX.Element;
|
|
24
|
+
export declare const Breadcrumb: ({ parts, onNavigate, trailing }: BreadcrumbProps) => import("react").JSX.Element;
|
|
23
25
|
//#endregion
|
|
@@ -7,42 +7,50 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
/** A plain left click, which the app follows itself; others open a new tab. */
|
|
8
8
|
const inApp = (event) => event.button === 0 && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;
|
|
9
9
|
/** The trail of where you are; the current page, the last crumb unless it is `above`, shows on phones too. */
|
|
10
|
-
const Breadcrumb = ({ parts, onNavigate }) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
loading
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
10
|
+
const Breadcrumb = ({ parts, onNavigate, trailing }) => {
|
|
11
|
+
const lastPart = parts.at(-1);
|
|
12
|
+
const endsOnCurrent = lastPart !== void 0 && (typeof lastPart === "string" || !lastPart.above);
|
|
13
|
+
return /* @__PURE__ */ jsxs("nav", {
|
|
14
|
+
"aria-label": text("breadcrumb"),
|
|
15
|
+
className: "flex min-w-0 items-center gap-1.5",
|
|
16
|
+
children: [parts.map((part, index) => {
|
|
17
|
+
const last = index === parts.length - 1;
|
|
18
|
+
const { label, href, loading, above } = typeof part === "string" ? {
|
|
19
|
+
label: part,
|
|
20
|
+
href: void 0,
|
|
21
|
+
loading: false,
|
|
22
|
+
above: false
|
|
23
|
+
} : part;
|
|
24
|
+
const content = loading ? /* @__PURE__ */ jsx(Skeleton, { className: "w-24" }) : label;
|
|
25
|
+
const current = last && !above;
|
|
26
|
+
const text = cn("truncate", current ? "font-semibold max-md:text-mobile-title max-md:font-bold" : "text-muted-foreground");
|
|
27
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
28
|
+
className: cn("min-w-0 items-center gap-1.5", current ? "flex" : "hidden md:flex"),
|
|
29
|
+
children: [
|
|
30
|
+
index > 0 && /* @__PURE__ */ jsx(ChevronRight, { className: "hidden size-3.5 shrink-0 text-faint-foreground md:block" }),
|
|
31
|
+
href ? /* @__PURE__ */ jsx("a", {
|
|
32
|
+
href,
|
|
33
|
+
"aria-current": current ? "page" : void 0,
|
|
34
|
+
"aria-label": loading ? label : void 0,
|
|
35
|
+
"aria-busy": loading || void 0,
|
|
36
|
+
onClick: (event) => {
|
|
37
|
+
if (!onNavigate || !inApp(event)) return;
|
|
38
|
+
event.preventDefault();
|
|
39
|
+
onNavigate(href);
|
|
40
|
+
},
|
|
41
|
+
className: cn(text, "rounded-sm hover:text-foreground hover:underline"),
|
|
42
|
+
children: content
|
|
43
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
44
|
+
className: text,
|
|
45
|
+
"aria-label": loading ? label : void 0,
|
|
46
|
+
"aria-busy": loading || void 0,
|
|
47
|
+
children: content
|
|
48
|
+
}),
|
|
49
|
+
current && trailing
|
|
50
|
+
]
|
|
51
|
+
}, `${index}-${label}`);
|
|
52
|
+
}), !endsOnCurrent && trailing]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
47
55
|
//#endregion
|
|
48
56
|
export { Breadcrumb, inApp };
|
|
@@ -9,7 +9,8 @@ export type DrawerProps = {
|
|
|
9
9
|
/** How long the drawer takes to slide in and out, and its backdrop to fade. */
|
|
10
10
|
export declare const drawerSlideMs = 200;
|
|
11
11
|
/**
|
|
12
|
-
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation
|
|
12
|
+
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation, and
|
|
13
|
+
* moves under the finger as the native drawer does (`useDrawerDrag`), a drag on it or on the dim closing it. It
|
|
13
14
|
* slides in as it opens and out as it closes, however it is closed, such as a host's `protobase:close-sidebar`; with
|
|
14
15
|
* less motion asked for it shows and goes at once.
|
|
15
16
|
*/
|