@protobase/ui 0.116.0 → 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.
Files changed (328) hide show
  1. package/dist/account/messages.d.ts +2 -2
  2. package/dist/app/app.js +84 -50
  3. package/dist/app/bottom-bar-from-meta.d.ts +8 -2
  4. package/dist/app/bottom-bar-from-meta.js +23 -11
  5. package/dist/app/charts/messages.d.ts +2 -2
  6. package/dist/app/comments/messages.d.ts +2 -2
  7. package/dist/app/confirm-sign-in-messages.d.ts +2 -2
  8. package/dist/app/create/messages.d.ts +2 -2
  9. package/dist/app/delete/messages.d.ts +2 -2
  10. package/dist/app/displays/messages.d.ts +2 -2
  11. package/dist/app/export/export-dialog.js +1 -1
  12. package/dist/app/export/messages.d.ts +2 -2
  13. package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
  14. package/dist/app/field-types/runner-install/messages.d.ts +2 -2
  15. package/dist/app/field-types/workflow/messages.d.ts +2 -2
  16. package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
  17. package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
  18. package/dist/app/field-types/workflow-status/messages.d.ts +2 -2
  19. package/dist/app/file-viewers/messages.d.ts +2 -2
  20. package/dist/app/focus/messages.d.ts +2 -2
  21. package/dist/app/gallery/lightbox.js +1 -1
  22. package/dist/app/gallery/messages.d.ts +2 -2
  23. package/dist/app/hand-order/messages.d.ts +2 -2
  24. package/dist/app/history/messages.d.ts +2 -2
  25. package/dist/app/import/import-dialog.js +1 -1
  26. package/dist/app/import/messages.d.ts +2 -2
  27. package/dist/app/import/new-table/import-table-dialog.js +1 -1
  28. package/dist/app/list-messages.d.ts +2 -2
  29. package/dist/app/list-page.js +1 -1
  30. package/dist/app/messages.d.ts +2 -2
  31. package/dist/app/meta-gate-messages.d.ts +2 -2
  32. package/dist/app/new-version/messages.d.ts +2 -2
  33. package/dist/app/pages/action-inputs/action-inputs-dialog.js +1 -1
  34. package/dist/app/pages/messages.d.ts +2 -2
  35. package/dist/app/pages/record-actions.js +1 -1
  36. package/dist/app/record-chart/messages.d.ts +2 -2
  37. package/dist/app/record-messages.d.ts +2 -2
  38. package/dist/app/record-row/messages.d.ts +2 -2
  39. package/dist/app/refresh-mark.js +46 -10
  40. package/dist/app/related-cards/messages.d.ts +2 -2
  41. package/dist/app/runtime/messages.d.ts +2 -2
  42. package/dist/app/saved/messages.d.ts +2 -2
  43. package/dist/app/searches/messages.d.ts +2 -2
  44. package/dist/app/searches/update-search-dialog.js +1 -1
  45. package/dist/app-shell/account-entry.d.ts +17 -0
  46. package/dist/app-shell/account-entry.js +40 -0
  47. package/dist/app-shell/app-shell.d.ts +13 -1
  48. package/dist/app-shell/app-shell.js +80 -10
  49. package/dist/app-shell/back-target.d.ts +3 -2
  50. package/dist/app-shell/back-target.js +4 -3
  51. package/dist/app-shell/bottom-bar.d.ts +15 -3
  52. package/dist/app-shell/bottom-bar.js +70 -42
  53. package/dist/app-shell/brand-bar.d.ts +15 -0
  54. package/dist/app-shell/brand-bar.js +19 -0
  55. package/dist/app-shell/brand-status-bar.d.ts +8 -0
  56. package/dist/app-shell/brand-status-bar.js +27 -0
  57. package/dist/app-shell/breadcrumb.d.ts +4 -2
  58. package/dist/app-shell/breadcrumb.js +45 -37
  59. package/dist/app-shell/drawer.d.ts +2 -1
  60. package/dist/app-shell/drawer.js +22 -5
  61. package/dist/app-shell/global-search.d.ts +3 -1
  62. package/dist/app-shell/global-search.js +4 -4
  63. package/dist/app-shell/index.js +2 -2
  64. package/dist/app-shell/leading-slot.d.ts +9 -0
  65. package/dist/app-shell/leading-slot.js +10 -0
  66. package/dist/app-shell/logo.js +2 -1
  67. package/dist/app-shell/menu-page.d.ts +19 -0
  68. package/dist/app-shell/menu-page.js +29 -0
  69. package/dist/app-shell/messages.d.ts +2 -2
  70. package/dist/app-shell/more-page.d.ts +45 -0
  71. package/dist/app-shell/more-page.js +30 -0
  72. package/dist/app-shell/native-tab-bar.d.ts +47 -0
  73. package/dist/app-shell/native-tab-bar.js +45 -0
  74. package/dist/app-shell/page-scroll.d.ts +3 -2
  75. package/dist/app-shell/page-scroll.js +5 -3
  76. package/dist/app-shell/profile-menu.d.ts +5 -1
  77. package/dist/app-shell/profile-menu.js +138 -117
  78. package/dist/app-shell/sidebar.d.ts +12 -1
  79. package/dist/app-shell/sidebar.js +20 -10
  80. package/dist/app-shell/tab-icon.d.ts +7 -0
  81. package/dist/app-shell/tab-icon.js +38 -0
  82. package/dist/app-shell/top-bar.d.ts +19 -3
  83. package/dist/app-shell/top-bar.js +104 -60
  84. package/dist/app-shell/use-native-bottom-bar.d.ts +16 -0
  85. package/dist/app-shell/use-native-bottom-bar.js +62 -0
  86. package/dist/assistant-dock/messages.d.ts +2 -2
  87. package/dist/auth/messages.d.ts +2 -2
  88. package/dist/calls/call-guests-panel.js +2 -2
  89. package/dist/calls/messages.d.ts +2 -2
  90. package/dist/carousel/messages.d.ts +2 -2
  91. package/dist/chat/messages.d.ts +2 -2
  92. package/dist/data-grid/header-menu.js +33 -28
  93. package/dist/data-grid/messages.d.ts +2 -2
  94. package/dist/data-grid/row-menu.js +38 -33
  95. package/dist/filter-panel/messages.d.ts +2 -2
  96. package/dist/focus-page/bar-actions.js +1 -1
  97. package/dist/format/messages.d.ts +2 -2
  98. package/dist/index.d.ts +2 -1
  99. package/dist/index.js +5 -4
  100. package/dist/inline-child-table/messages.d.ts +2 -2
  101. package/dist/invitations/messages.d.ts +2 -2
  102. package/dist/live/messages.d.ts +2 -2
  103. package/dist/locale/en.js +7 -0
  104. package/dist/locale/en.json.d.ts +7 -0
  105. package/dist/locale/messages.d.ts +14 -0
  106. package/dist/locale/nl.js +7 -0
  107. package/dist/mailbox/messages.d.ts +2 -2
  108. package/dist/mocks/customers.d.ts +1 -1
  109. package/dist/mocks/invoices.d.ts +2 -2
  110. package/dist/mocks/orders.d.ts +1 -1
  111. package/dist/notifications/bell/messages.d.ts +2 -2
  112. package/dist/notifications/bell/notification-bell.js +40 -35
  113. package/dist/organizations/messages.d.ts +2 -2
  114. package/dist/package.js +1 -1
  115. package/dist/primitives/avatar.d.ts +1 -1
  116. package/dist/primitives/avatar.js +2 -1
  117. package/dist/primitives/drawer-math.d.ts +39 -0
  118. package/dist/primitives/drawer-math.js +43 -0
  119. package/dist/primitives/menu-select.js +51 -44
  120. package/dist/primitives/menu-surface.d.ts +22 -0
  121. package/dist/primitives/menu-surface.js +29 -0
  122. package/dist/primitives/messages.d.ts +2 -2
  123. package/dist/primitives/popover-menu.js +1 -0
  124. package/dist/primitives/sheet-drag.d.ts +5 -5
  125. package/dist/primitives/sheet-drag.js +10 -16
  126. package/dist/primitives/sheet.d.ts +5 -2
  127. package/dist/primitives/sheet.js +9 -6
  128. package/dist/primitives/use-drawer-drag.d.ts +34 -0
  129. package/dist/primitives/use-drawer-drag.js +103 -0
  130. package/dist/primitives/use-sheet-drag.d.ts +2 -2
  131. package/dist/primitives/use-sheet-drag.js +10 -9
  132. package/dist/record-view/action-menu.js +45 -40
  133. package/dist/shell/assets/{account-page-9Aq9kvrG.js → account-page-dcJyxP-d.js} +2 -2
  134. package/dist/shell/assets/app-BAQxWF5r.css +2 -0
  135. package/dist/shell/assets/app-DTl8rg8j.js +34 -0
  136. package/dist/shell/assets/{assistant-shell-BGtjYwwY.js → assistant-shell-Bw1jJrLm.js} +2 -2
  137. package/dist/shell/assets/board-display-DDFDZzOk.js +2 -0
  138. package/dist/shell/assets/{calendar-display-DKXi1P_o.js → calendar-display-B0R6JkIL.js} +2 -2
  139. package/dist/shell/assets/call-rings-CzvSKlfI.js +2 -0
  140. package/dist/shell/assets/{calls-DR-Ci2ND.js → calls-BgwbMyeR.js} +2 -2
  141. package/dist/shell/assets/{circle-alert-C0Jeesr7.js → circle-alert-CANqQIsU.js} +2 -2
  142. package/dist/shell/assets/composed-page-gwTeW0b3.js +2 -0
  143. package/dist/shell/assets/{composer-section-rLoyhseD.js → composer-section-gsOgYgY2.js} +2 -2
  144. package/dist/shell/assets/{connect-route-B9xNNieq.js → connect-route-CtL1EJIN.js} +2 -2
  145. package/dist/shell/assets/{copy-field-DkCyHPwg.js → copy-field-CamvXHHQ.js} +2 -2
  146. package/dist/shell/assets/create-route-Cx8yqS-H.js +2 -0
  147. package/dist/shell/assets/{custom-step-container-field-Do5pWJ_q.js → custom-step-container-field-0-Q_RuZy.js} +4 -4
  148. package/dist/shell/assets/embedded-list-56J4XDiR.js +3 -0
  149. package/dist/shell/assets/en-CtEQkQWj.js +2 -0
  150. package/dist/shell/assets/{export-dialog-CovrAwYy.js → export-dialog-CEp2g6vx.js} +2 -2
  151. package/dist/shell/assets/export-worker-DlWkifnE.js +15 -0
  152. package/dist/shell/assets/{graph-view-BfRhAOfb.js → graph-view-CgjfBK_g.js} +2 -2
  153. package/dist/shell/assets/{group-donut-DC8GLnC8.js → group-donut-DGZUg_gn.js} +2 -2
  154. package/dist/shell/assets/{guest-call-page-Dc8M5yz6.js → guest-call-page-BhTshbrl.js} +3 -3
  155. package/dist/shell/assets/{html-viewer-DH_s-gLB.js → html-viewer-GD1mwLEo.js} +2 -2
  156. package/dist/shell/assets/{import-dialog-Ge24RdwQ.js → import-dialog-ByRCf2Cp.js} +2 -2
  157. package/dist/shell/assets/import-table-dialog-CiDY_0RT.js +2 -0
  158. package/dist/shell/assets/{index-Bi_Jks-d.js → index-PtDa8a1m.js} +1 -1
  159. package/dist/shell/assets/invitations-page-Bh-RCnnl.js +2 -0
  160. package/dist/shell/assets/{layout-grid-DCBxzjaE.js → layout-grid-DJrFC12w.js} +2 -2
  161. package/dist/shell/assets/{legend-item-BZXnHPzh.js → legend-item-YdN_NHUz.js} +2 -2
  162. package/dist/shell/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js → lib-vis.gl-react-maplibre-1cv426UN.js} +2 -2
  163. package/dist/shell/assets/list-page-BU1MrXbN.js +4 -0
  164. package/dist/shell/assets/maplibre-BedvDUG2.js +2 -0
  165. package/dist/shell/assets/{markdown-content-DMl-cVjQ.js → markdown-content-BlKajH2l.js} +2 -2
  166. package/dist/shell/assets/members-page-BYUO0Dq2.js +2 -0
  167. package/dist/shell/assets/{messages-D5XhIbDz.js → messages-DQ0cj-Ao.js} +2 -2
  168. package/dist/shell/assets/nl-9OWL4NdF.js +2 -0
  169. package/dist/shell/assets/organization-page-BrC1nHC-.js +2 -0
  170. package/dist/shell/assets/organizations-page-CaUeWdr4.js +2 -0
  171. package/dist/shell/assets/parse-worker-NutG5-Js.js +35 -0
  172. package/dist/shell/assets/{pending-invitation-row-BIO4J3ts.js → pending-invitation-row-juUdWvG6.js} +2 -2
  173. package/dist/shell/assets/{period-chart-CoT2IDzy.js → period-chart-BUZhUb5l.js} +2 -2
  174. package/dist/shell/assets/{person-row-DBeHOA2K.js → person-row-DH3JhMfz.js} +2 -2
  175. package/dist/shell/assets/public-form-page-d3TamPPE.js +2 -0
  176. package/dist/shell/assets/record-lines-NtlHP9Lz.js +2 -0
  177. package/dist/shell/assets/{record-map-BR34Q9uI.js → record-map-BDXoF9AS.js} +2 -2
  178. package/dist/shell/assets/{record-opens-Dbjd4FLe.js → record-opens-C1KgR6ff.js} +2 -2
  179. package/dist/shell/assets/record-page-D88DdoET.js +3 -0
  180. package/dist/shell/assets/record-preview-BT9_Hdcn.js +2 -0
  181. package/dist/shell/assets/{records-map-CXanq-qN.js → records-map-BjHcY5gU.js} +2 -2
  182. package/dist/shell/assets/render-node-v6KfRocH.js +3 -0
  183. package/dist/shell/assets/reorder-button-B3GeKMOJ.js +2 -0
  184. package/dist/shell/assets/{run-trace-view-D1DZCrDs.js → run-trace-view-Ddc0SELh.js} +2 -2
  185. package/dist/shell/assets/{runner-install-field-C2XhrG0M.js → runner-install-field-CiD9Pw1j.js} +2 -2
  186. package/dist/shell/assets/{runtime-update-C5TxLpYf.js → runtime-update-CoXcnfxB.js} +2 -2
  187. package/dist/shell/assets/shared-protobase-ui-CwLnXvxx.js +1 -0
  188. package/dist/shell/assets/sheet-source-DbJu1SrV.js +3 -0
  189. package/dist/shell/assets/sign-in-policy-page-B40iAeJa.js +2 -0
  190. package/dist/shell/assets/start-block-queries-C_udrEM9.js +2 -0
  191. package/dist/shell/assets/step-catalog-7obnZV6X.js +2 -0
  192. package/dist/shell/assets/{step-panel-TfW-31Gv.js → step-panel-BM_xu6Yy.js} +2 -2
  193. package/dist/shell/assets/timeline-display-CdLfWAbQ.js +2 -0
  194. package/dist/shell/assets/{trash-BjnGkZfx.js → trash-BHo3HvFy.js} +2 -2
  195. package/dist/shell/assets/{update-set-BahNKmxv.js → update-set-DTikSoau.js} +2 -2
  196. package/dist/shell/assets/use-calendar-move-Bhha2yOp.js +2 -0
  197. package/dist/shell/assets/{use-display-rows-DsBBYuKB.js → use-display-rows-CS_0O_UE.js} +2 -2
  198. package/dist/shell/assets/{use-paged-search-DaT4uUhX.js → use-paged-search-ChxCRCpF.js} +2 -2
  199. package/dist/shell/assets/{use-run-trace-DHk7l8MX.js → use-run-trace-BfRRgSgG.js} +2 -2
  200. package/dist/shell/assets/{use-workflow-page-DPIhXcnb.js → use-workflow-page-CTdBd8_8.js} +2 -2
  201. package/dist/shell/assets/{use-workflow-types-Bp8iqkBg.js → use-workflow-types-cZQ59ATf.js} +2 -2
  202. package/dist/shell/assets/{vendor-DQHyyBk1.js → vendor-t7Q7QbPu.js} +2 -2
  203. package/dist/shell/assets/{workflow-canvas-CiGUTx4K.js → workflow-canvas-B0kWJeH0.js} +4 -4
  204. package/dist/shell/assets/{workflow-field-lqBx3RDj.js → workflow-field-DXIk6V2Y.js} +3 -3
  205. package/dist/shell/assets/{workflow-graph-editor-DgufTFii.js → workflow-graph-editor-Cem4aY2u.js} +2 -2
  206. package/dist/shell/assets/{workflow-run-field-C4BtvPnB.js → workflow-run-field-BeMn3eOH.js} +3 -3
  207. package/dist/shell/assets/workflow-status-field-0wvGDiva.js +2 -0
  208. package/dist/shell/assets/workflow-workbench-qT5c0xnH.js +4 -0
  209. package/dist/shell/index.html +5 -5
  210. package/dist/shell/protobase.shell.json +3 -3
  211. package/dist/shell/protobase.sw.js +2 -2
  212. package/dist/shell-source-maps/assets/{account-page-9Aq9kvrG.js.map → account-page-dcJyxP-d.js.map} +1 -1
  213. package/dist/shell-source-maps/assets/app-DTl8rg8j.js.map +1 -0
  214. package/dist/shell-source-maps/assets/{assistant-shell-BGtjYwwY.js.map → assistant-shell-Bw1jJrLm.js.map} +1 -1
  215. package/dist/shell-source-maps/assets/{board-display-Ck6nnv4b.js.map → board-display-DDFDZzOk.js.map} +1 -1
  216. package/dist/shell-source-maps/assets/{calendar-display-DKXi1P_o.js.map → calendar-display-B0R6JkIL.js.map} +1 -1
  217. package/dist/shell-source-maps/assets/{call-rings-Bs9dtURX.js.map → call-rings-CzvSKlfI.js.map} +1 -1
  218. package/dist/shell-source-maps/assets/{calls-DR-Ci2ND.js.map → calls-BgwbMyeR.js.map} +1 -1
  219. package/dist/shell-source-maps/assets/{circle-alert-C0Jeesr7.js.map → circle-alert-CANqQIsU.js.map} +1 -1
  220. package/dist/shell-source-maps/assets/{composed-page-Bdzzzuyj.js.map → composed-page-gwTeW0b3.js.map} +1 -1
  221. package/dist/shell-source-maps/assets/{composer-section-rLoyhseD.js.map → composer-section-gsOgYgY2.js.map} +1 -1
  222. package/dist/shell-source-maps/assets/{connect-route-B9xNNieq.js.map → connect-route-CtL1EJIN.js.map} +1 -1
  223. package/dist/shell-source-maps/assets/{copy-field-DkCyHPwg.js.map → copy-field-CamvXHHQ.js.map} +1 -1
  224. package/dist/shell-source-maps/assets/{create-route-DBrv5Kqi.js.map → create-route-Cx8yqS-H.js.map} +1 -1
  225. package/dist/shell-source-maps/assets/{custom-step-container-field-Do5pWJ_q.js.map → custom-step-container-field-0-Q_RuZy.js.map} +1 -1
  226. package/dist/shell-source-maps/assets/embedded-list-56J4XDiR.js.map +1 -0
  227. package/dist/shell-source-maps/assets/en-CtEQkQWj.js.map +1 -0
  228. package/dist/shell-source-maps/assets/{export-dialog-CovrAwYy.js.map → export-dialog-CEp2g6vx.js.map} +1 -1
  229. package/dist/shell-source-maps/assets/export-worker-DlWkifnE.js.map +1 -0
  230. package/dist/shell-source-maps/assets/{graph-view-BfRhAOfb.js.map → graph-view-CgjfBK_g.js.map} +1 -1
  231. package/dist/shell-source-maps/assets/{group-donut-DC8GLnC8.js.map → group-donut-DGZUg_gn.js.map} +1 -1
  232. package/dist/shell-source-maps/assets/{guest-call-page-Dc8M5yz6.js.map → guest-call-page-BhTshbrl.js.map} +1 -1
  233. package/dist/shell-source-maps/assets/{html-viewer-DH_s-gLB.js.map → html-viewer-GD1mwLEo.js.map} +1 -1
  234. package/dist/shell-source-maps/assets/{import-dialog-Ge24RdwQ.js.map → import-dialog-ByRCf2Cp.js.map} +1 -1
  235. package/dist/shell-source-maps/assets/{import-table-dialog-D1aVXF3R.js.map → import-table-dialog-CiDY_0RT.js.map} +1 -1
  236. package/dist/shell-source-maps/assets/{invitations-page-CFwYUoqb.js.map → invitations-page-Bh-RCnnl.js.map} +1 -1
  237. package/dist/shell-source-maps/assets/{layout-grid-DCBxzjaE.js.map → layout-grid-DJrFC12w.js.map} +1 -1
  238. package/dist/shell-source-maps/assets/{legend-item-BZXnHPzh.js.map → legend-item-YdN_NHUz.js.map} +1 -1
  239. package/dist/shell-source-maps/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js.map → lib-vis.gl-react-maplibre-1cv426UN.js.map} +1 -1
  240. package/dist/shell-source-maps/assets/{list-page-DwIEEzTz.js.map → list-page-BU1MrXbN.js.map} +1 -1
  241. package/dist/shell-source-maps/assets/{maplibre-C7kZagL3.js.map → maplibre-BedvDUG2.js.map} +1 -1
  242. package/dist/shell-source-maps/assets/{markdown-content-DMl-cVjQ.js.map → markdown-content-BlKajH2l.js.map} +1 -1
  243. package/dist/shell-source-maps/assets/{members-page-BfrzLCXo.js.map → members-page-BYUO0Dq2.js.map} +1 -1
  244. package/dist/shell-source-maps/assets/{messages-D5XhIbDz.js.map → messages-DQ0cj-Ao.js.map} +1 -1
  245. package/dist/shell-source-maps/assets/nl-9OWL4NdF.js.map +1 -0
  246. package/dist/shell-source-maps/assets/{organization-page-DxA2154P.js.map → organization-page-BrC1nHC-.js.map} +1 -1
  247. package/dist/shell-source-maps/assets/{organizations-page-Bf4oXbvZ.js.map → organizations-page-CaUeWdr4.js.map} +1 -1
  248. package/dist/shell-source-maps/assets/parse-worker-NutG5-Js.js.map +1 -0
  249. package/dist/shell-source-maps/assets/{pending-invitation-row-BIO4J3ts.js.map → pending-invitation-row-juUdWvG6.js.map} +1 -1
  250. package/dist/shell-source-maps/assets/{period-chart-CoT2IDzy.js.map → period-chart-BUZhUb5l.js.map} +1 -1
  251. package/dist/shell-source-maps/assets/{person-row-DBeHOA2K.js.map → person-row-DH3JhMfz.js.map} +1 -1
  252. package/dist/shell-source-maps/assets/{public-form-page-Dhinql3j.js.map → public-form-page-d3TamPPE.js.map} +1 -1
  253. package/dist/shell-source-maps/assets/{record-lines-Dmb8bl38.js.map → record-lines-NtlHP9Lz.js.map} +1 -1
  254. package/dist/shell-source-maps/assets/{record-map-BR34Q9uI.js.map → record-map-BDXoF9AS.js.map} +1 -1
  255. package/dist/shell-source-maps/assets/{record-opens-Dbjd4FLe.js.map → record-opens-C1KgR6ff.js.map} +1 -1
  256. package/dist/shell-source-maps/assets/{record-page-Dnpo_8uE.js.map → record-page-D88DdoET.js.map} +1 -1
  257. package/dist/shell-source-maps/assets/{record-preview-CarOT-Gn.js.map → record-preview-BT9_Hdcn.js.map} +1 -1
  258. package/dist/shell-source-maps/assets/{records-map-CXanq-qN.js.map → records-map-BjHcY5gU.js.map} +1 -1
  259. package/dist/shell-source-maps/assets/{render-node-DGYXKoGV.js.map → render-node-v6KfRocH.js.map} +1 -1
  260. package/dist/shell-source-maps/assets/{reorder-button-9_dAk_3O.js.map → reorder-button-B3GeKMOJ.js.map} +1 -1
  261. package/dist/shell-source-maps/assets/{run-trace-view-D1DZCrDs.js.map → run-trace-view-Ddc0SELh.js.map} +1 -1
  262. package/dist/shell-source-maps/assets/{runner-install-field-C2XhrG0M.js.map → runner-install-field-CiD9Pw1j.js.map} +1 -1
  263. package/dist/shell-source-maps/assets/{runtime-update-C5TxLpYf.js.map → runtime-update-CoXcnfxB.js.map} +1 -1
  264. package/dist/shell-source-maps/assets/{sheet-source-DqFYbJpm.js.map → sheet-source-DbJu1SrV.js.map} +1 -1
  265. package/dist/shell-source-maps/assets/{sign-in-policy-page-vjGTg9Do.js.map → sign-in-policy-page-B40iAeJa.js.map} +1 -1
  266. package/dist/shell-source-maps/assets/{start-block-queries-CmVDv8_F.js.map → start-block-queries-C_udrEM9.js.map} +1 -1
  267. package/dist/shell-source-maps/assets/{step-catalog-PWiIgJSI.js.map → step-catalog-7obnZV6X.js.map} +1 -1
  268. package/dist/shell-source-maps/assets/{step-panel-TfW-31Gv.js.map → step-panel-BM_xu6Yy.js.map} +1 -1
  269. package/dist/shell-source-maps/assets/{timeline-display-eBf3tuig.js.map → timeline-display-CdLfWAbQ.js.map} +1 -1
  270. package/dist/shell-source-maps/assets/{trash-BjnGkZfx.js.map → trash-BHo3HvFy.js.map} +1 -1
  271. package/dist/shell-source-maps/assets/{update-set-BahNKmxv.js.map → update-set-DTikSoau.js.map} +1 -1
  272. package/dist/shell-source-maps/assets/{use-calendar-move-Bfp2yC0P.js.map → use-calendar-move-Bhha2yOp.js.map} +1 -1
  273. package/dist/shell-source-maps/assets/{use-display-rows-DsBBYuKB.js.map → use-display-rows-CS_0O_UE.js.map} +1 -1
  274. package/dist/shell-source-maps/assets/{use-paged-search-DaT4uUhX.js.map → use-paged-search-ChxCRCpF.js.map} +1 -1
  275. package/dist/shell-source-maps/assets/{use-run-trace-DHk7l8MX.js.map → use-run-trace-BfRRgSgG.js.map} +1 -1
  276. package/dist/shell-source-maps/assets/{use-workflow-page-DPIhXcnb.js.map → use-workflow-page-CTdBd8_8.js.map} +1 -1
  277. package/dist/shell-source-maps/assets/{use-workflow-types-Bp8iqkBg.js.map → use-workflow-types-cZQ59ATf.js.map} +1 -1
  278. package/dist/shell-source-maps/assets/{vendor-DQHyyBk1.js.map → vendor-t7Q7QbPu.js.map} +1 -1
  279. package/dist/shell-source-maps/assets/{workflow-canvas-CiGUTx4K.js.map → workflow-canvas-B0kWJeH0.js.map} +1 -1
  280. package/dist/shell-source-maps/assets/{workflow-field-lqBx3RDj.js.map → workflow-field-DXIk6V2Y.js.map} +1 -1
  281. package/dist/shell-source-maps/assets/{workflow-graph-editor-DgufTFii.js.map → workflow-graph-editor-Cem4aY2u.js.map} +1 -1
  282. package/dist/shell-source-maps/assets/{workflow-run-field-C4BtvPnB.js.map → workflow-run-field-BeMn3eOH.js.map} +1 -1
  283. package/dist/shell-source-maps/assets/{workflow-status-field-CqDaP0V9.js.map → workflow-status-field-0wvGDiva.js.map} +1 -1
  284. package/dist/shell-source-maps/assets/{workflow-workbench-CgL6wHPG.js.map → workflow-workbench-qT5c0xnH.js.map} +1 -1
  285. package/dist/status/messages.d.ts +2 -2
  286. package/dist/status/status-dialog.js +1 -1
  287. package/dist/theme.css +6 -0
  288. package/dist/users/messages.d.ts +2 -2
  289. package/package.json +5 -5
  290. package/dist/shell/assets/app-BnDutf0s.js +0 -34
  291. package/dist/shell/assets/app-DcrDZ6Fc.css +0 -2
  292. package/dist/shell/assets/board-display-Ck6nnv4b.js +0 -2
  293. package/dist/shell/assets/call-rings-Bs9dtURX.js +0 -2
  294. package/dist/shell/assets/composed-page-Bdzzzuyj.js +0 -2
  295. package/dist/shell/assets/create-route-DBrv5Kqi.js +0 -2
  296. package/dist/shell/assets/embedded-list-CPgxhzPw.js +0 -3
  297. package/dist/shell/assets/en-B0Sx6LpA.js +0 -2
  298. package/dist/shell/assets/export-worker-DnXy8F95.js +0 -15
  299. package/dist/shell/assets/import-table-dialog-D1aVXF3R.js +0 -2
  300. package/dist/shell/assets/invitations-page-CFwYUoqb.js +0 -2
  301. package/dist/shell/assets/list-page-DwIEEzTz.js +0 -4
  302. package/dist/shell/assets/maplibre-C7kZagL3.js +0 -2
  303. package/dist/shell/assets/members-page-BfrzLCXo.js +0 -2
  304. package/dist/shell/assets/nl-DD4sTnQJ.js +0 -2
  305. package/dist/shell/assets/organization-page-DxA2154P.js +0 -2
  306. package/dist/shell/assets/organizations-page-Bf4oXbvZ.js +0 -2
  307. package/dist/shell/assets/parse-worker-BYXW4dAv.js +0 -35
  308. package/dist/shell/assets/public-form-page-Dhinql3j.js +0 -2
  309. package/dist/shell/assets/record-lines-Dmb8bl38.js +0 -2
  310. package/dist/shell/assets/record-page-Dnpo_8uE.js +0 -3
  311. package/dist/shell/assets/record-preview-CarOT-Gn.js +0 -2
  312. package/dist/shell/assets/render-node-DGYXKoGV.js +0 -3
  313. package/dist/shell/assets/reorder-button-9_dAk_3O.js +0 -2
  314. package/dist/shell/assets/shared-protobase-ui-HnfzBwws.js +0 -1
  315. package/dist/shell/assets/sheet-source-DqFYbJpm.js +0 -3
  316. package/dist/shell/assets/sign-in-policy-page-vjGTg9Do.js +0 -2
  317. package/dist/shell/assets/start-block-queries-CmVDv8_F.js +0 -2
  318. package/dist/shell/assets/step-catalog-PWiIgJSI.js +0 -2
  319. package/dist/shell/assets/timeline-display-eBf3tuig.js +0 -2
  320. package/dist/shell/assets/use-calendar-move-Bfp2yC0P.js +0 -2
  321. package/dist/shell/assets/workflow-status-field-CqDaP0V9.js +0 -2
  322. package/dist/shell/assets/workflow-workbench-CgL6wHPG.js +0 -4
  323. package/dist/shell-source-maps/assets/app-BnDutf0s.js.map +0 -1
  324. package/dist/shell-source-maps/assets/embedded-list-CPgxhzPw.js.map +0 -1
  325. package/dist/shell-source-maps/assets/en-B0Sx6LpA.js.map +0 -1
  326. package/dist/shell-source-maps/assets/export-worker-DnXy8F95.js.map +0 -1
  327. package/dist/shell-source-maps/assets/nl-DD4sTnQJ.js.map +0 -1
  328. package/dist/shell-source-maps/assets/parse-worker-BYXW4dAv.js.map +0 -1
@@ -0,0 +1,40 @@
1
+ import { cn } from "../lib/cn.js";
2
+ import { text } from "./messages.js";
3
+ import { RouteLink } from "../primitives/route-link.js";
4
+ import "./top-bar.js";
5
+ import { ProfileMenu } from "./profile-menu.js";
6
+ import { UserRound } from "lucide-react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ //#region src/app-shell/account-entry.tsx
9
+ /**
10
+ * The way into the account at the top right of a phone page, as a phone app has it: the person's avatar, which opens
11
+ * their menu as a sheet (MenuSurface), read as "Account, <name>"; or, for someone signed out, a guest icon the same size that signs in,
12
+ * read as "Sign in". Both sit in a tap area of at least 44 points, the bar's buttons' box (`topBarBox`).
13
+ */
14
+ const AccountEntry = ({ user, signIn, onBrand, ...menu }) => {
15
+ if (!user && !signIn) return null;
16
+ return /* @__PURE__ */ jsx("div", {
17
+ className: "flex shrink-0 items-center justify-end",
18
+ onClick: (event) => event.stopPropagation(),
19
+ children: user ? /* @__PURE__ */ jsx(ProfileMenu, {
20
+ user,
21
+ compact: true,
22
+ inTopBar: true,
23
+ label: text("accountOf", { name: user.name }),
24
+ ...menu
25
+ }) : signIn && /* @__PURE__ */ jsx(RouteLink, {
26
+ to: signIn,
27
+ "aria-label": text("signIn"),
28
+ className: cn("size-[min(2.75rem,max(44px,13vw))] shrink-0", "flex items-center justify-center rounded-md hover:bg-muted"),
29
+ children: /* @__PURE__ */ jsx("span", {
30
+ className: cn("flex size-[min(2rem,max(32px,9vw))] items-center justify-center rounded-full", onBrand ? "bg-primary-foreground/20 text-primary-foreground" : "bg-muted text-muted-foreground"),
31
+ children: /* @__PURE__ */ jsx(UserRound, {
32
+ className: "size-[min(1.25rem,max(20px,6vw))]",
33
+ "aria-hidden": true
34
+ })
35
+ })
36
+ })
37
+ });
38
+ };
39
+ //#endregion
40
+ export { AccountEntry };
@@ -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 { TopBar } from "./top-bar.js";
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__ */ jsx(PageScrollContext.Provider, {
86
+ return /* @__PURE__ */ jsxs(PageScrollContext.Provider, {
57
87
  value: setPageScroll,
58
- children: /* @__PURE__ */ jsxs("div", {
59
- className: cn(pageScroll ? "flex min-h-full w-full overflow-x-clip bg-background" : "relative flex h-full min-h-0 w-full overflow-hidden bg-background", className),
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__ */ jsx(TopBarSlotContext.Provider, {
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
- onMore: () => setDrawerOpen(true),
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, when that crumb has a page of its own. It is
5
- * `shown` when that is the last crumb, which a phone's trail then leaves to the button to show.
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, when that crumb has a page of its own. It is
4
- * `shown` when that is the last crumb, which a phone's trail then leaves to the button to show.
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.at(-2);
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
- /** A tab: inside the admin it navigates, `external` opens a new tab. */
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 { Ellipsis } from "lucide-react";
4
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
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
- return /* @__PURE__ */ jsxs(Fragment, { children: [sticky && /* @__PURE__ */ jsx("div", {
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
- 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"),
22
- children: [tabs.map((item) => {
23
- const Icon = item.icon;
24
- return /* @__PURE__ */ jsxs("a", {
25
- href: item.href,
26
- "aria-current": item.active ? "page" : void 0,
27
- ...item.external ? {
28
- target: "_blank",
29
- rel: "noreferrer"
30
- } : {},
31
- onClick: (event) => {
32
- if (item.external || !onNavigate || !inApp(event)) return;
33
- event.preventDefault();
34
- onNavigate(item.href);
35
- },
36
- className: cn(tab, item.active ? "text-primary-text" : "text-muted-foreground"),
37
- children: [/* @__PURE__ */ jsx(Icon, {
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: item.active ? 2.2 : 1.9,
69
+ strokeWidth: 1.9,
40
70
  "aria-hidden": true
41
- }), /* @__PURE__ */ jsx("span", {
42
- className: "max-w-full truncate px-0.5",
43
- children: item.label
44
- })]
45
- }, item.id);
46
- }), /* @__PURE__ */ jsxs("button", {
47
- type: "button",
48
- "aria-expanded": moreOpen,
49
- "aria-controls": moreControls,
50
- "data-current": moreCurrent || void 0,
51
- onClick: onMore,
52
- className: cn(tab, moreCurrent ? "text-primary-text" : "text-muted-foreground"),
53
- children: [/* @__PURE__ */ jsx(Ellipsis, {
54
- className: "size-6",
55
- strokeWidth: moreCurrent ? 2.2 : 1.9,
56
- "aria-hidden": true
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 }) => /* @__PURE__ */ jsx("nav", {
11
- "aria-label": text("breadcrumb"),
12
- className: "flex min-w-0 items-center gap-1.5",
13
- children: parts.map((part, index) => {
14
- const last = index === parts.length - 1;
15
- const { label, href, loading, above } = typeof part === "string" ? {
16
- label: part,
17
- href: void 0,
18
- loading: false,
19
- above: false
20
- } : part;
21
- const content = loading ? /* @__PURE__ */ jsx(Skeleton, { className: "w-24" }) : label;
22
- const current = last && !above;
23
- const text = cn("truncate", current ? "font-semibold" : "text-muted-foreground");
24
- return /* @__PURE__ */ jsxs("span", {
25
- className: cn("min-w-0 items-center gap-1.5", current ? "flex" : "hidden md:flex"),
26
- children: [index > 0 && /* @__PURE__ */ jsx(ChevronRight, { className: "hidden size-3.5 shrink-0 text-faint-foreground md:block" }), href ? /* @__PURE__ */ jsx("a", {
27
- href,
28
- "aria-current": current ? "page" : void 0,
29
- "aria-label": loading ? label : void 0,
30
- "aria-busy": loading || void 0,
31
- onClick: (event) => {
32
- if (!onNavigate || !inApp(event)) return;
33
- event.preventDefault();
34
- onNavigate(href);
35
- },
36
- className: cn(text, "rounded-sm hover:text-foreground hover:underline"),
37
- children: content
38
- }) : /* @__PURE__ */ jsx("span", {
39
- className: text,
40
- "aria-label": loading ? label : void 0,
41
- "aria-busy": loading || void 0,
42
- children: content
43
- })]
44
- }, `${index}-${label}`);
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. It
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
  */