@multiplatform.one/components 7.75.0 → 7.77.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 (378) hide show
  1. package/dist/cjs/Accordion/index.cjs +23 -37
  2. package/dist/cjs/Accordion/index.native.js +33 -47
  3. package/dist/cjs/Accordion/index.native.js.map +1 -1
  4. package/dist/cjs/CardHeader.cjs +1 -0
  5. package/dist/cjs/CardHeader.native.js +1 -0
  6. package/dist/cjs/CardHeader.native.js.map +1 -1
  7. package/dist/cjs/CopyField/CopyMenuButton.cjs +60 -0
  8. package/dist/cjs/CopyField/CopyMenuButton.native.js +69 -0
  9. package/dist/cjs/CopyField/CopyMenuButton.native.js.map +1 -0
  10. package/dist/cjs/CopyField/index.cjs +3 -1
  11. package/dist/cjs/CopyField/index.native.js +3 -1
  12. package/dist/cjs/CopyField/index.native.js.map +1 -1
  13. package/dist/cjs/layouts/StatusGlyphStrip.cjs +109 -0
  14. package/dist/cjs/layouts/StatusGlyphStrip.native.js +118 -0
  15. package/dist/cjs/layouts/StatusGlyphStrip.native.js.map +1 -0
  16. package/dist/cjs/layouts/index.cjs +2 -0
  17. package/dist/cjs/layouts/index.native.js +2 -0
  18. package/dist/cjs/layouts/index.native.js.map +1 -1
  19. package/dist/cjs/layouts/page.cjs +119 -2
  20. package/dist/cjs/layouts/page.native.js +122 -2
  21. package/dist/cjs/layouts/page.native.js.map +1 -1
  22. package/dist/cjs/layouts/screenScroll.cjs +20 -0
  23. package/dist/cjs/layouts/screenScroll.native.js +29 -0
  24. package/dist/cjs/layouts/screenScroll.native.js.map +1 -1
  25. package/dist/cjs/layouts/sidebar.cjs +28 -4
  26. package/dist/cjs/layouts/sidebar.native.js +32 -5
  27. package/dist/cjs/layouts/sidebar.native.js.map +1 -1
  28. package/dist/cjs/views/ListRow.cjs +2 -1
  29. package/dist/cjs/views/ListRow.native.js +2 -1
  30. package/dist/cjs/views/ListRow.native.js.map +1 -1
  31. package/dist/esm/Accordion/index.mjs +23 -37
  32. package/dist/esm/Accordion/index.mjs.map +1 -1
  33. package/dist/esm/Accordion/index.native.js +33 -47
  34. package/dist/esm/Accordion/index.native.js.map +1 -1
  35. package/dist/esm/CardHeader.mjs +1 -0
  36. package/dist/esm/CardHeader.mjs.map +1 -1
  37. package/dist/esm/CardHeader.native.js +1 -0
  38. package/dist/esm/CardHeader.native.js.map +1 -1
  39. package/dist/esm/CopyField/CopyMenuButton.mjs +35 -0
  40. package/dist/esm/CopyField/CopyMenuButton.mjs.map +1 -0
  41. package/dist/esm/CopyField/CopyMenuButton.native.js +41 -0
  42. package/dist/esm/CopyField/CopyMenuButton.native.js.map +1 -0
  43. package/dist/esm/CopyField/index.mjs +2 -1
  44. package/dist/esm/CopyField/index.mjs.map +1 -1
  45. package/dist/esm/CopyField/index.native.js +2 -1
  46. package/dist/esm/CopyField/index.native.js.map +1 -1
  47. package/dist/esm/layouts/StatusGlyphStrip.mjs +84 -0
  48. package/dist/esm/layouts/StatusGlyphStrip.mjs.map +1 -0
  49. package/dist/esm/layouts/StatusGlyphStrip.native.js +90 -0
  50. package/dist/esm/layouts/StatusGlyphStrip.native.js.map +1 -0
  51. package/dist/esm/layouts/index.mjs +2 -1
  52. package/dist/esm/layouts/index.mjs.map +1 -1
  53. package/dist/esm/layouts/index.native.js +2 -1
  54. package/dist/esm/layouts/index.native.js.map +1 -1
  55. package/dist/esm/layouts/page.mjs +120 -4
  56. package/dist/esm/layouts/page.mjs.map +1 -1
  57. package/dist/esm/layouts/page.native.js +123 -4
  58. package/dist/esm/layouts/page.native.js.map +1 -1
  59. package/dist/esm/layouts/screenScroll.mjs +21 -2
  60. package/dist/esm/layouts/screenScroll.mjs.map +1 -1
  61. package/dist/esm/layouts/screenScroll.native.js +30 -2
  62. package/dist/esm/layouts/screenScroll.native.js.map +1 -1
  63. package/dist/esm/layouts/sidebar.mjs +28 -4
  64. package/dist/esm/layouts/sidebar.mjs.map +1 -1
  65. package/dist/esm/layouts/sidebar.native.js +32 -5
  66. package/dist/esm/layouts/sidebar.native.js.map +1 -1
  67. package/dist/esm/views/ListRow.mjs +2 -1
  68. package/dist/esm/views/ListRow.mjs.map +1 -1
  69. package/dist/esm/views/ListRow.native.js +2 -1
  70. package/dist/esm/views/ListRow.native.js.map +1 -1
  71. package/dist/jsx/Accordion/index.mjs +23 -37
  72. package/dist/jsx/Accordion/index.mjs.map +1 -1
  73. package/dist/jsx/Accordion/index.native.js +34 -48
  74. package/dist/jsx/Accordion/index.native.js.map +1 -1
  75. package/dist/jsx/Alert/index.native.js.map +1 -1
  76. package/dist/jsx/AnimateHeight/index.native.js.map +1 -1
  77. package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
  78. package/dist/jsx/Avatar/index.native.js.map +1 -1
  79. package/dist/jsx/Badge/index.native.js.map +1 -1
  80. package/dist/jsx/Button.native.js.map +1 -1
  81. package/dist/jsx/Card.native.js.map +1 -1
  82. package/dist/jsx/CardFooter.native.js.map +1 -1
  83. package/dist/jsx/CardHeader.mjs +1 -0
  84. package/dist/jsx/CardHeader.mjs.map +1 -1
  85. package/dist/jsx/CardHeader.native.js +1 -0
  86. package/dist/jsx/CardHeader.native.js.map +1 -1
  87. package/dist/jsx/Carousel/index.native.js +3 -3
  88. package/dist/jsx/Carousel/index.native.js.map +1 -1
  89. package/dist/jsx/Chip/index.native.js.map +1 -1
  90. package/dist/jsx/Collapsible.native.js.map +1 -1
  91. package/dist/jsx/ContextMenu/index.native.js.map +1 -1
  92. package/dist/jsx/CopyField/CopyMenuButton.mjs +35 -0
  93. package/dist/jsx/CopyField/CopyMenuButton.mjs.map +1 -0
  94. package/dist/jsx/CopyField/CopyMenuButton.native.js +69 -0
  95. package/dist/jsx/CopyField/CopyMenuButton.native.js.map +1 -0
  96. package/dist/jsx/CopyField/index.mjs +2 -1
  97. package/dist/jsx/CopyField/index.mjs.map +1 -1
  98. package/dist/jsx/CopyField/index.native.js +3 -1
  99. package/dist/jsx/CopyField/index.native.js.map +1 -1
  100. package/dist/jsx/Dialog.native.js.map +1 -1
  101. package/dist/jsx/DotIndicator/index.native.js.map +1 -1
  102. package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
  103. package/dist/jsx/DropdownMenu/menuSettle.native.js.map +1 -1
  104. package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
  105. package/dist/jsx/Heading.native.js.map +1 -1
  106. package/dist/jsx/Kbd/index.native.js.map +1 -1
  107. package/dist/jsx/Kbd/keys.native.js.map +1 -1
  108. package/dist/jsx/Lightbox/MediaControl.native.js +1 -1
  109. package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -1
  110. package/dist/jsx/Lightbox/index.gnome.native.js.map +1 -1
  111. package/dist/jsx/Lightbox/index.native.js +1 -1
  112. package/dist/jsx/Lightbox/shared.native.js.map +1 -1
  113. package/dist/jsx/Lightbox/useLightbox.native.js.map +1 -1
  114. package/dist/jsx/Material/index.native.js.map +1 -1
  115. package/dist/jsx/Meter/index.native.js +1 -1
  116. package/dist/jsx/Meter/index.native.js.map +1 -1
  117. package/dist/jsx/Meter/meter.native.js.map +1 -1
  118. package/dist/jsx/OverflowRow/index.native.js +1 -1
  119. package/dist/jsx/OverflowRow/index.native.js.map +1 -1
  120. package/dist/jsx/Pagination.native.js +1 -1
  121. package/dist/jsx/Pagination.native.js.map +1 -1
  122. package/dist/jsx/Popover.native.js +1 -1
  123. package/dist/jsx/Popover.native.js.map +1 -1
  124. package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
  125. package/dist/jsx/Quote/index.native.js.map +1 -1
  126. package/dist/jsx/SchemeToggle/index.native.js +1 -1
  127. package/dist/jsx/SchemeToggle/index.native.js.map +1 -1
  128. package/dist/jsx/ScrollView/revealFocusedField.native.js.map +1 -1
  129. package/dist/jsx/Separator/index.native.js.map +1 -1
  130. package/dist/jsx/Sheet.native.js.map +1 -1
  131. package/dist/jsx/SheetModal/SheetHeader.native.js.map +1 -1
  132. package/dist/jsx/SheetModal/SheetNavigation.native.js.map +1 -1
  133. package/dist/jsx/SheetModal/detents.native.js.map +1 -1
  134. package/dist/jsx/SheetModal/useSheetFrameFocus.native.js.map +1 -1
  135. package/dist/jsx/Skeleton/index.native.js.map +1 -1
  136. package/dist/jsx/SkipLink/index.native.js.map +1 -1
  137. package/dist/jsx/SortableList/SortableHandle.native.js.map +1 -1
  138. package/dist/jsx/SortableList/index.native.js.map +1 -1
  139. package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
  140. package/dist/jsx/Tabs/index.native.js +1 -1
  141. package/dist/jsx/Tabs/index.native.js.map +1 -1
  142. package/dist/jsx/Text.native.js.map +1 -1
  143. package/dist/jsx/ThemePresetPicker/index.native.js +2 -2
  144. package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
  145. package/dist/jsx/Toast/index.native.js.map +1 -1
  146. package/dist/jsx/Toast/store.native.js.map +1 -1
  147. package/dist/jsx/Tooltip/nativePress.native.js.map +1 -1
  148. package/dist/jsx/Tooltip/tooltipShared.native.js.map +1 -1
  149. package/dist/jsx/TreeSelect/index.native.js +1 -1
  150. package/dist/jsx/TreeSelect/index.native.js.map +1 -1
  151. package/dist/jsx/TreeSelect/treeSelectModel.native.js.map +1 -1
  152. package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
  153. package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
  154. package/dist/jsx/Video/types.native.js.map +1 -1
  155. package/dist/jsx/Wheel/index.native.js.map +1 -1
  156. package/dist/jsx/Wizard/index.native.js +2 -2
  157. package/dist/jsx/Wizard/index.native.js.map +1 -1
  158. package/dist/jsx/actions/ActionBar.native.js.map +1 -1
  159. package/dist/jsx/actions/DangerSection.native.js.map +1 -1
  160. package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
  161. package/dist/jsx/actions/HeaderActions.native.js +2 -2
  162. package/dist/jsx/actions/HeaderActions.native.js.map +1 -1
  163. package/dist/jsx/actions/StandardAction.native.js +1 -1
  164. package/dist/jsx/actions/StandardAction.native.js.map +1 -1
  165. package/dist/jsx/actions/devWarn.native.js.map +1 -1
  166. package/dist/jsx/actions/index.native.js.map +1 -1
  167. package/dist/jsx/actions/severity.native.js.map +1 -1
  168. package/dist/jsx/appShell/Dock.native.js.map +1 -1
  169. package/dist/jsx/appShell/MpoTabHost.native.js.map +1 -1
  170. package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
  171. package/dist/jsx/appShell/SettingsSplit.native.js +1 -1
  172. package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
  173. package/dist/jsx/appShell/Springboard.native.js +1 -1
  174. package/dist/jsx/appShell/Springboard.native.js.map +1 -1
  175. package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
  176. package/dist/jsx/appShell/TabBar.native.js +1 -1
  177. package/dist/jsx/appShell/TabBar.native.js.map +1 -1
  178. package/dist/jsx/appShell/appTile.native.js +1 -1
  179. package/dist/jsx/appShell/appTile.native.js.map +1 -1
  180. package/dist/jsx/appShell/bottomChrome.native.js.map +1 -1
  181. package/dist/jsx/appShell/index.native.js.map +1 -1
  182. package/dist/jsx/charts/Axis.native.js.map +1 -1
  183. package/dist/jsx/charts/BarChart.native.js.map +1 -1
  184. package/dist/jsx/charts/ChartDataView.native.js +1 -1
  185. package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
  186. package/dist/jsx/charts/ChartSurface.native.js.map +1 -1
  187. package/dist/jsx/charts/LineChart.native.js.map +1 -1
  188. package/dist/jsx/charts/PieChart.native.js.map +1 -1
  189. package/dist/jsx/charts/Sparkline.native.js.map +1 -1
  190. package/dist/jsx/charts/accessibility.native.js.map +1 -1
  191. package/dist/jsx/charts/chartHeight.native.js.map +1 -1
  192. package/dist/jsx/charts/composeChart.native.js.map +1 -1
  193. package/dist/jsx/charts/index.native.js.map +1 -1
  194. package/dist/jsx/charts/math.native.js.map +1 -1
  195. package/dist/jsx/charts/series.native.js.map +1 -1
  196. package/dist/jsx/charts/svg.native.js.map +1 -1
  197. package/dist/jsx/charts/types.native.js.map +1 -1
  198. package/dist/jsx/charts/useChartTheme.native.js.map +1 -1
  199. package/dist/jsx/code/Code/index.native.js.map +1 -1
  200. package/dist/jsx/code/CodeBlock/index.native.js +7 -7
  201. package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
  202. package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
  203. package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
  204. package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
  205. package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
  206. package/dist/jsx/code/Pre/index.native.js.map +1 -1
  207. package/dist/jsx/code/index.native.js +5 -5
  208. package/dist/jsx/code/index.native.js.map +1 -1
  209. package/dist/jsx/componentColors.native.js.map +1 -1
  210. package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
  211. package/dist/jsx/feedback/NotifyHost.native.js +2 -2
  212. package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
  213. package/dist/jsx/feedback/copy.native.js.map +1 -1
  214. package/dist/jsx/feedback/index.native.js.map +1 -1
  215. package/dist/jsx/feedback/notify.native.js.map +1 -1
  216. package/dist/jsx/feedback/route.native.js.map +1 -1
  217. package/dist/jsx/feedback/store.native.js.map +1 -1
  218. package/dist/jsx/formLayouts/FormLayouts.native.js +1 -1
  219. package/dist/jsx/formLayouts/FormLayouts.native.js.map +1 -1
  220. package/dist/jsx/formLayouts/PreferencePanel.native.js +2 -2
  221. package/dist/jsx/formLayouts/PreferencePanel.native.js.map +1 -1
  222. package/dist/jsx/formLayouts/index.native.js.map +1 -1
  223. package/dist/jsx/hooks/index.native.js +1 -1
  224. package/dist/jsx/hooks/index.native.js.map +1 -1
  225. package/dist/jsx/hooks/useClipboard.native.js.map +1 -1
  226. package/dist/jsx/hooks/useDocumentTitle.native.js.map +1 -1
  227. package/dist/jsx/hooks/useHoldCue.native.js.map +1 -1
  228. package/dist/jsx/icons/CheckRegular.native.js.map +1 -1
  229. package/dist/jsx/icons/MinusRegular.native.js.map +1 -1
  230. package/dist/jsx/icons/index.native.js.map +1 -1
  231. package/dist/jsx/icons/lucide.native.js.map +1 -1
  232. package/dist/jsx/icons/themed.native.js.map +1 -1
  233. package/dist/jsx/images/Image/ImageFrame.native.js +1 -1
  234. package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -1
  235. package/dist/jsx/images/Image/framing.native.js.map +1 -1
  236. package/dist/jsx/images/Image/index.native.js +1 -1
  237. package/dist/jsx/images/Image/mediaRadius.native.js.map +1 -1
  238. package/dist/jsx/images/Image/shared.native.js +1 -1
  239. package/dist/jsx/images/Image/shared.native.js.map +1 -1
  240. package/dist/jsx/images/Image/types.native.js.map +1 -1
  241. package/dist/jsx/images/index.native.js.map +1 -1
  242. package/dist/jsx/index.native.js +36 -36
  243. package/dist/jsx/index.native.js.map +1 -1
  244. package/dist/jsx/knobImmuneExports.native.js.map +1 -1
  245. package/dist/jsx/layouts/AsyncBoundary.native.js +2 -2
  246. package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
  247. package/dist/jsx/layouts/Debug/index.native.js.map +1 -1
  248. package/dist/jsx/layouts/EmptyState.native.js.map +1 -1
  249. package/dist/jsx/layouts/IdentityPlate.native.js.map +1 -1
  250. package/dist/jsx/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  251. package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
  252. package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
  253. package/dist/jsx/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  254. package/dist/jsx/layouts/StatusDot.native.js.map +1 -1
  255. package/dist/jsx/layouts/StatusGlyphStrip.mjs +84 -0
  256. package/dist/jsx/layouts/StatusGlyphStrip.mjs.map +1 -0
  257. package/dist/jsx/layouts/StatusGlyphStrip.native.js +118 -0
  258. package/dist/jsx/layouts/StatusGlyphStrip.native.js.map +1 -0
  259. package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
  260. package/dist/jsx/layouts/attachments.native.js +1 -1
  261. package/dist/jsx/layouts/attachments.native.js.map +1 -1
  262. package/dist/jsx/layouts/bottomAccessory.native.js.map +1 -1
  263. package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
  264. package/dist/jsx/layouts/index.mjs +2 -1
  265. package/dist/jsx/layouts/index.mjs.map +1 -1
  266. package/dist/jsx/layouts/index.native.js +5 -3
  267. package/dist/jsx/layouts/index.native.js.map +1 -1
  268. package/dist/jsx/layouts/page.mjs +120 -4
  269. package/dist/jsx/layouts/page.mjs.map +1 -1
  270. package/dist/jsx/layouts/page.native.js +124 -4
  271. package/dist/jsx/layouts/page.native.js.map +1 -1
  272. package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
  273. package/dist/jsx/layouts/screenScroll.mjs +21 -2
  274. package/dist/jsx/layouts/screenScroll.mjs.map +1 -1
  275. package/dist/jsx/layouts/screenScroll.native.js +29 -0
  276. package/dist/jsx/layouts/screenScroll.native.js.map +1 -1
  277. package/dist/jsx/layouts/shellSidebarSlot.native.js.map +1 -1
  278. package/dist/jsx/layouts/sidebar.mjs +28 -4
  279. package/dist/jsx/layouts/sidebar.mjs.map +1 -1
  280. package/dist/jsx/layouts/sidebar.native.js +33 -6
  281. package/dist/jsx/layouts/sidebar.native.js.map +1 -1
  282. package/dist/jsx/layouts/tags.native.js +2 -2
  283. package/dist/jsx/layouts/tags.native.js.map +1 -1
  284. package/dist/jsx/layouts/timeline.native.js +2 -2
  285. package/dist/jsx/layouts/timeline.native.js.map +1 -1
  286. package/dist/jsx/layouts/toolbar.native.js +1 -1
  287. package/dist/jsx/layouts/toolbar.native.js.map +1 -1
  288. package/dist/jsx/shared/actionScan.native.js.map +1 -1
  289. package/dist/jsx/shared/i18n.native.js.map +1 -1
  290. package/dist/jsx/shared/restoreRetries.native.js.map +1 -1
  291. package/dist/jsx/shared/t.native.js.map +1 -1
  292. package/dist/jsx/shared/textRidesText.native.js.map +1 -1
  293. package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
  294. package/dist/jsx/surfaces.native.js +1 -1
  295. package/dist/jsx/surfaces.native.js.map +1 -1
  296. package/dist/jsx/tamagui.native.js +1 -1
  297. package/dist/jsx/tamagui.native.js.map +1 -1
  298. package/dist/jsx/testSetup.native.js.map +1 -1
  299. package/dist/jsx/utils/setTinted.native.js.map +1 -1
  300. package/dist/jsx/utils/unwrapText.native.js.map +1 -1
  301. package/dist/jsx/views/Calendar.native.js +1 -1
  302. package/dist/jsx/views/Calendar.native.js.map +1 -1
  303. package/dist/jsx/views/Dashboard.native.js +2 -2
  304. package/dist/jsx/views/Dashboard.native.js.map +1 -1
  305. package/dist/jsx/views/Gantt.native.js +2 -2
  306. package/dist/jsx/views/Gantt.native.js.map +1 -1
  307. package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
  308. package/dist/jsx/views/ImageGrid.native.js +2 -2
  309. package/dist/jsx/views/ImageGrid.native.js.map +1 -1
  310. package/dist/jsx/views/Kanban.native.js +1 -1
  311. package/dist/jsx/views/List.native.js.map +1 -1
  312. package/dist/jsx/views/ListGroup.native.js.map +1 -1
  313. package/dist/jsx/views/ListRow.mjs +2 -1
  314. package/dist/jsx/views/ListRow.mjs.map +1 -1
  315. package/dist/jsx/views/ListRow.native.js +2 -1
  316. package/dist/jsx/views/ListRow.native.js.map +1 -1
  317. package/dist/jsx/views/Matrix.native.js +2 -2
  318. package/dist/jsx/views/Matrix.native.js.map +1 -1
  319. package/dist/jsx/views/ReportBuilder.native.js +2 -2
  320. package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
  321. package/dist/jsx/views/ShortcutCard.native.js.map +1 -1
  322. package/dist/jsx/views/TreeView.native.js.map +1 -1
  323. package/dist/jsx/views/calendarMath.native.js.map +1 -1
  324. package/dist/jsx/views/ganttIntervals.native.js.map +1 -1
  325. package/dist/jsx/views/ganttMath.native.js.map +1 -1
  326. package/dist/jsx/views/index.native.js +1 -1
  327. package/dist/jsx/views/index.native.js.map +1 -1
  328. package/dist/jsx/views/kanbanDnd.native.js.map +1 -1
  329. package/dist/jsx/views/matrixMath.native.js.map +1 -1
  330. package/dist/jsx/views/treeViewDnd.native.js.map +1 -1
  331. package/dist/jsx/views/treeViewLayout.native.js.map +1 -1
  332. package/dist/jsx/views/treeViewMotion.native.js.map +1 -1
  333. package/dist/jsx/views/treeViewReveal.native.js.map +1 -1
  334. package/dist/jsx/views/widgetChrome.native.js.map +1 -1
  335. package/package.json +9 -9
  336. package/src/Accordion/Accordion.spec.tsx +6 -7
  337. package/src/Accordion/index.tsx +30 -45
  338. package/src/Card.stories.tsx +82 -54
  339. package/src/CardHeader.spec.tsx +11 -8
  340. package/src/CardHeader.tsx +3 -0
  341. package/src/ContextMenu/ContextMenu.spec.tsx +4 -5
  342. package/src/CopyField/CopyMenuButton.spec.tsx +28 -0
  343. package/src/CopyField/CopyMenuButton.tsx +50 -0
  344. package/src/CopyField/index.tsx +2 -0
  345. package/src/DropdownMenu/DropdownMenu.spec.tsx +3 -4
  346. package/src/SheetModal/SheetModal.menus.spec.tsx +2 -2
  347. package/src/checkedRow.native-press.spec.tsx +136 -0
  348. package/src/checkedRow.spec.tsx +4 -3
  349. package/src/icons/slots.nativeInk.spec.tsx +1 -1
  350. package/src/layouts/Sidebar.spec.tsx +43 -0
  351. package/src/layouts/StatusGlyphStrip.spec.tsx +40 -0
  352. package/src/layouts/StatusGlyphStrip.tsx +96 -0
  353. package/src/layouts/index.tsx +1 -0
  354. package/src/layouts/navBar.spec.tsx +28 -0
  355. package/src/layouts/page.tsx +127 -4
  356. package/src/layouts/screenNesting.spec.tsx +201 -0
  357. package/src/layouts/screenScroll.tsx +23 -0
  358. package/src/layouts/sidebar.tsx +33 -1
  359. package/src/views/ListGroup.spec.tsx +14 -0
  360. package/src/views/ListRow.tsx +12 -2
  361. package/types/Accordion/index.d.ts.map +1 -1
  362. package/types/CardHeader.d.ts.map +1 -1
  363. package/types/CopyField/CopyMenuButton.d.ts +13 -0
  364. package/types/CopyField/CopyMenuButton.d.ts.map +1 -0
  365. package/types/CopyField/index.d.ts +1 -0
  366. package/types/CopyField/index.d.ts.map +1 -1
  367. package/types/layouts/StatusGlyphStrip.d.ts +18 -0
  368. package/types/layouts/StatusGlyphStrip.d.ts.map +1 -0
  369. package/types/layouts/index.d.ts +1 -0
  370. package/types/layouts/index.d.ts.map +1 -1
  371. package/types/layouts/page.d.ts +14 -21
  372. package/types/layouts/page.d.ts.map +1 -1
  373. package/types/layouts/screenScroll.d.ts +8 -0
  374. package/types/layouts/screenScroll.d.ts.map +1 -1
  375. package/types/layouts/sidebar.d.ts +13 -1
  376. package/types/layouts/sidebar.d.ts.map +1 -1
  377. package/types/views/ListRow.d.ts +3 -1
  378. package/types/views/ListRow.d.ts.map +1 -1
@@ -0,0 +1,136 @@
1
+ /**
2
+ * FZ-8557, under tamagui's NATIVE build (vitest.native.config.mjs) with the
3
+ * React Native animation driver every MPO app runs on a phone.
4
+ *
5
+ * A checked menu row paints the theme's selection tint on native (LC-262):
6
+ * `$color5` over the dark `$color4` overlay, `$color3` over the light panel.
7
+ * On iOS the appearance menu's checked "Dark" row painted the page colour, a
8
+ * hole through the panel that hid its rounded bottom (FZ-8550 KS sim, main
9
+ * before this lane, when dark rested on `$color2`).
10
+ */
11
+ import { createDefaultThemeConfig, nativeAnimationConfig } from "@multiplatform.one/theme";
12
+ import { Button } from "@multiplatform.one/forms";
13
+ import { createAnimations } from "@tamagui/animations-react-native";
14
+ import { act, cleanup, render, screen } from "@testing-library/react";
15
+ import type { ReactNode } from "react";
16
+ import { TamaguiProvider, YStack, isWeb } from "tamagui";
17
+ import { afterEach, describe, expect, it, vi } from "vitest";
18
+ import { ContextMenu } from "./ContextMenu";
19
+
20
+ vi.mock("@multiplatform.one/theme", async (original) => ({
21
+ ...(await original<typeof import("@multiplatform.one/theme")>()),
22
+ transitionProps: (await import("@multiplatform.one/theme/src/theme/transitionProps.native"))
23
+ .transitionProps,
24
+ }));
25
+
26
+ // The harness resolves forms web-first, and the web panel portals out of the
27
+ // menu's context under tamagui's native build. The phone's panel is a Modal
28
+ // over the `$color4` overlay surface; this stands in for it inline.
29
+ vi.mock("@multiplatform.one/forms", async (original) => ({
30
+ ...(await original<typeof import("@multiplatform.one/forms")>()),
31
+ FloatingPanel: ({
32
+ open,
33
+ trigger,
34
+ children,
35
+ }: {
36
+ open?: boolean;
37
+ trigger?: ReactNode;
38
+ children?: ReactNode;
39
+ }) => (
40
+ <>
41
+ {trigger}
42
+ {open ? <YStack backgroundColor="$color4">{children}</YStack> : null}
43
+ </>
44
+ ),
45
+ }));
46
+
47
+ const config = createDefaultThemeConfig({
48
+ animations: createAnimations(nativeAnimationConfig),
49
+ });
50
+ type Scheme = "light" | "dark";
51
+ const themes = config.tamagui.themes as unknown as Record<Scheme, Record<string, { val: string }>>;
52
+
53
+ afterEach(cleanup);
54
+
55
+ const settle = () =>
56
+ act(async () => {
57
+ await new Promise((done) => setTimeout(done, 450));
58
+ });
59
+
60
+ /** `rgba(r,g,b,a)` with whole channels, from the hex, rgb() and hsl() forms both sides use. */
61
+ function rgb(colour: string): string {
62
+ const probe = document.createElement("div");
63
+ probe.style.color = colour;
64
+ const css = probe.style.color.replace(/\s+/g, "");
65
+ const hsl = css.match(/^hsla?\(([\d.]+),([\d.]+)%,([\d.]+)%(?:,([\d.]+))?\)$/);
66
+ let channels: number[];
67
+ if (hsl) {
68
+ const [h, s, l] = [Number(hsl[1]) / 360, Number(hsl[2]) / 100, Number(hsl[3]) / 100];
69
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
70
+ const p = 2 * l - q;
71
+ const hue = (t: number) => {
72
+ const u = t < 0 ? t + 1 : t > 1 ? t - 1 : t;
73
+ if (u < 1 / 6) return p + (q - p) * 6 * u;
74
+ if (u < 1 / 2) return q;
75
+ if (u < 2 / 3) return p + (q - p) * (2 / 3 - u) * 6;
76
+ return p;
77
+ };
78
+ channels = [hue(h + 1 / 3), hue(h), hue(h - 1 / 3)].map((v) => v * 255);
79
+ channels.push(hsl[4] === undefined ? 1 : Number(hsl[4]));
80
+ } else {
81
+ const parts = css
82
+ .match(/^rgba?\(([^)]*)\)$/)?.[1]
83
+ ?.split(",")
84
+ .map(Number);
85
+ if (!parts) return css;
86
+ channels = [...parts.slice(0, 3), parts[3] ?? 1];
87
+ }
88
+ const [r, g, b, a] = channels;
89
+ return `rgba(${Math.round(r!)},${Math.round(g!)},${Math.round(b!)},${Number(a!.toFixed(2))})`;
90
+ }
91
+
92
+ const token = (scheme: Scheme, key: string) => rgb(themes[scheme][key]!.val);
93
+
94
+ /** The nearest painted box around a row's label: the row's own fill, else the panel's. */
95
+ function fillUnder(label: string): string {
96
+ for (let node = screen.getByText(label).parentElement; node; node = node.parentElement) {
97
+ const fill = node.style.backgroundColor;
98
+ if (fill && fill !== "transparent" && rgb(fill) !== "rgba(0,0,0,0)") return rgb(fill);
99
+ }
100
+ throw new Error(`nothing painted under ${label}`);
101
+ }
102
+
103
+ const tint = { light: "color3", dark: "color5" } as const;
104
+
105
+ describe("a checked menu row paints the selection tint on native (LC-262, FZ-8557)", () => {
106
+ it("runs on tamagui's native build", () => {
107
+ expect(isWeb).toBe(false);
108
+ });
109
+
110
+ for (const scheme of ["light", "dark"] as const) {
111
+ it(`${scheme}: the checked row is ${tint[scheme]}, not the page, and the others paint nothing`, async () => {
112
+ render(
113
+ <TamaguiProvider config={config.tamagui} defaultTheme={scheme} disableInjectCSS>
114
+ <ContextMenu
115
+ defaultOpen
116
+ items={[
117
+ { label: "System", checked: false },
118
+ { label: "Light", checked: false },
119
+ { label: "Dark", checked: true },
120
+ ]}
121
+ >
122
+ <Button>Appearance</Button>
123
+ </ContextMenu>
124
+ </TamaguiProvider>,
125
+ );
126
+ await settle();
127
+ const checked = fillUnder("Dark");
128
+ expect(checked).toBe(token(scheme, tint[scheme]));
129
+ expect(checked).not.toBe(token(scheme, "background"));
130
+ expect(checked).not.toBe(token(scheme, "color2"));
131
+ const panel = fillUnder("System");
132
+ expect(fillUnder("Light")).toBe(panel);
133
+ expect(checked).not.toBe(panel);
134
+ });
135
+ }
136
+ });
@@ -22,8 +22,8 @@ function restFills(el: Element) {
22
22
  .filter((c) => /^_bg-(?!0)/.test(c));
23
23
  }
24
24
 
25
- /** Light rests one step past the $color3 hover; dark recesses off the $color4 overlay. */
26
- const checkedFill = { light: "color4", dark: "color2" } as const;
25
+ /** A tint one step off the panel: light $color3 on white, dark $color5 over the $color4 overlay (FZ-8557). */
26
+ const checkedFill = { light: "color3", dark: "color5" } as const;
27
27
 
28
28
  /** A checked row rests on its scheme's checked fill, and only on it. */
29
29
  function expectTint(el: Element | null | undefined, scheme: (typeof schemes)[number]) {
@@ -69,7 +69,8 @@ describe("a checked menu or picker row is highlighted under its check (LC-262, F
69
69
  expect(checked.querySelector("[data-mp-check]")?.getAttribute("data-mp-check")).toBe(
70
70
  "trailing",
71
71
  );
72
- expect(checked.className).not.toMatch(/_bg-0hover-color3/);
72
+ // Hover keeps the checked fill; an unchecked row hovers on $color3.
73
+ expect(checked.className).toMatch(new RegExp(`_bg-0hover-${checkedFill[scheme]}`));
73
74
  expect(unchecked.className).toMatch(/_bg-0hover-color3/);
74
75
  await waitFor(() => {
75
76
  expect(document.activeElement?.getAttribute("role")).not.toBe("menuitemcheckbox");
@@ -61,7 +61,7 @@ describe("shared icon slot ink without CSS inheritance", () => {
61
61
  );
62
62
  const [switcher, accordion, well] = screen.getAllByTestId("icon");
63
63
  expect(switcher.dataset.color).toBe(switcher.dataset.selectedInk);
64
- expect(accordion.dataset.color).toBe(accordion.dataset.selection);
64
+ expect(accordion.dataset.color).toBe(accordion.dataset.ink);
65
65
  expect(well.dataset.color).toBe(well.dataset.well);
66
66
  },
67
67
  );
@@ -77,3 +77,46 @@ describe("Sidebar as a document rail (FZ-8000)", () => {
77
77
  expect(nav.className).toContain("mp-hairline-ie");
78
78
  });
79
79
  });
80
+
81
+ describe("Sidebar nesting", () => {
82
+ const items = [
83
+ { value: "a", label: "Alpha", onPress: () => {} },
84
+ { value: "b", label: "Beta", onPress: () => {} },
85
+ { value: "c", label: "Child", depth: 1, onPress: () => {} },
86
+ ];
87
+
88
+ it("indents a child row by one icon column per level", () => {
89
+ const result = renderWithProviders(<Sidebar sections={[{ items }]} />);
90
+ const rows = Array.from(result.container.querySelectorAll("[data-sidebar-row]"));
91
+ expect(rows[2].getAttribute("data-depth")).toBe("1");
92
+ expect(rows[2].querySelectorAll("[data-sidebar-indent]")).toHaveLength(1);
93
+ expect(rows[0].querySelectorAll("[data-sidebar-indent]")).toHaveLength(0);
94
+ });
95
+ });
96
+
97
+ describe("Sidebar item testID", () => {
98
+ it("puts an item's testID on its row", () => {
99
+ const result = renderWithProviders(
100
+ <Sidebar sections={[{ items: [{ value: "a", label: "Alpha", testID: "alpha-row" }] }]} />,
101
+ );
102
+ expect(result.getByTestId("alpha-row").getAttribute("data-sidebar-row")).toBe("true");
103
+ });
104
+ });
105
+
106
+ describe("Sidebar footer", () => {
107
+ const sections = [{ items: [{ value: "a", label: "Alpha" }] }];
108
+
109
+ it("pins the footer under the sections inside the rail", () => {
110
+ const result = renderWithProviders(
111
+ <Sidebar sections={sections} testID="rail" footer={<span>Account</span>} />,
112
+ );
113
+ const footer = result.getByTestId("rail").querySelector("[data-sidebar-footer]")!;
114
+ expect(footer).not.toBeNull();
115
+ expect(footer.textContent).toContain("Account");
116
+ });
117
+
118
+ it("draws no footer slot without a footer", () => {
119
+ const result = renderWithProviders(<Sidebar sections={sections} testID="rail" />);
120
+ expect(result.getByTestId("rail").querySelector("[data-sidebar-footer]")).toBeNull();
121
+ });
122
+ });
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @vitest-environment jsdom
3
+ */
4
+
5
+ import { renderWithProviders } from "@multiplatform.one/test-utils";
6
+ import { describe, expect, it } from "vitest";
7
+ import { StatusGlyphStrip } from "./StatusGlyphStrip";
8
+
9
+ describe("StatusGlyphStrip (LC-169)", () => {
10
+ it("each check is a glyph and a dot, named by its label and state, with no printed word when OK", () => {
11
+ const result = renderWithProviders(
12
+ <StatusGlyphStrip
13
+ items={[
14
+ { icon: <span />, label: "Default realm", tone: "positive" },
15
+ { icon: <span />, label: "Discovery", tone: "positive" },
16
+ ]}
17
+ />,
18
+ );
19
+ const glyphs = Array.from(
20
+ result.container.querySelectorAll("[data-mpo-status-glyph]"),
21
+ ) as HTMLElement[];
22
+ expect(glyphs).toHaveLength(2);
23
+ expect(glyphs[0]!.getAttribute("aria-label")).toBe("Default realm: OK");
24
+ expect(glyphs[0]!.getAttribute("role")).toBe("img");
25
+ expect(glyphs[0]!.querySelector("[data-tone='positive']")).not.toBeNull();
26
+ expect(result.container.textContent).not.toContain("Default realm");
27
+ expect(result.container.textContent).not.toContain("OK");
28
+ });
29
+
30
+ it("a failing check prints its one-word reason beside its dot", () => {
31
+ const result = renderWithProviders(
32
+ <StatusGlyphStrip
33
+ items={[{ icon: <span />, label: "Discovery", tone: "critical", reason: "Timeout" }]}
34
+ />,
35
+ );
36
+ const glyph = result.container.querySelector("[data-mpo-status-glyph]") as HTMLElement;
37
+ expect(glyph.getAttribute("aria-label")).toBe("Discovery: Timeout");
38
+ expect(glyph.textContent).toBe("Timeout");
39
+ });
40
+ });
@@ -0,0 +1,96 @@
1
+ /**
2
+ * StatusGlyphStrip — a row of checks as glyphs, each with its own status dot
3
+ * (LC-169 icon-only facts).
4
+ *
5
+ * The glyph names the check, so no word is printed for it: the name is the
6
+ * glyph's accessible name and its tooltip (hover on web, long-press on
7
+ * device). A check that is not OK prints its one-word reason beside its dot,
8
+ * because a failure is what the reader needs without asking.
9
+ */
10
+ import { IconSlot, useGlyphColor, useResolvedKnobs } from "@multiplatform.one/theme";
11
+ import type { ReactNode } from "react";
12
+ import { Text, View, XStack, isWeb } from "tamagui";
13
+ import { useTranslation } from "../shared/i18n";
14
+ import { Tooltip } from "../Tooltip";
15
+ import { StatusMark, statusToneInk, type StatusTone } from "./StatusDot";
16
+
17
+ export interface StatusGlyph {
18
+ key?: string;
19
+ /** The glyph that names the check (a star for "Default realm"). */
20
+ icon: ReactNode;
21
+ /** The check's name: the accessible name and the tooltip. */
22
+ label: string;
23
+ tone: StatusTone;
24
+ /** One word for a check that is not OK ("Missing", "Timeout"). */
25
+ reason?: string;
26
+ }
27
+
28
+ export interface StatusGlyphStripProps {
29
+ items: readonly StatusGlyph[];
30
+ testID?: string;
31
+ }
32
+
33
+ const toneWord: Record<StatusTone, string> = {
34
+ positive: "OK",
35
+ warning: "Warning",
36
+ critical: "Failing",
37
+ neutral: "Unknown",
38
+ };
39
+
40
+ function GlyphCheck({ item }: { item: StatusGlyph }) {
41
+ const { t } = useTranslation();
42
+ const { knobProps } = useResolvedKnobs();
43
+ const ink = useGlyphColor("$color");
44
+ const state = item.reason ?? t(toneWord[item.tone]);
45
+ const name = `${item.label}: ${state}`;
46
+ const showReason = item.tone !== "positive" && item.reason != null;
47
+ return (
48
+ <Tooltip content={name}>
49
+ <XStack
50
+ data-mpo-status-glyph=""
51
+ data-tone={item.tone}
52
+ role="img"
53
+ aria-label={name}
54
+ alignItems="center"
55
+ flexShrink={0}
56
+ {...knobProps.gapSm}
57
+ {...(isWeb ? ({ title: name } as Record<string, unknown>) : { accessible: true })}
58
+ >
59
+ <View
60
+ aria-hidden
61
+ {...(isWeb && ink ? ({ style: { color: ink } } as Record<string, unknown>) : {})}
62
+ >
63
+ <IconSlot icon={item.icon} color={ink} size={20} />
64
+ </View>
65
+ <StatusMark tone={item.tone} />
66
+ {showReason ? (
67
+ <Text
68
+ {...knobProps.textRole.meta}
69
+ color={statusToneInk[item.tone] as never}
70
+ numberOfLines={1}
71
+ >
72
+ {item.reason}
73
+ </Text>
74
+ ) : null}
75
+ </XStack>
76
+ </Tooltip>
77
+ );
78
+ }
79
+
80
+ export function StatusGlyphStrip({ items, testID }: StatusGlyphStripProps) {
81
+ const { knobProps } = useResolvedKnobs();
82
+ return (
83
+ <XStack
84
+ data-mpo-status-glyph-strip=""
85
+ data-testid={testID}
86
+ alignItems="center"
87
+ flexWrap="wrap"
88
+ minWidth={0}
89
+ {...knobProps.gapLg}
90
+ >
91
+ {items.map((item) => (
92
+ <GlyphCheck key={item.key ?? item.label} item={item} />
93
+ ))}
94
+ </XStack>
95
+ );
96
+ }
@@ -40,6 +40,7 @@ export {
40
40
  type StatusDotProps,
41
41
  type StatusTone,
42
42
  } from "./StatusDot";
43
+ export { StatusGlyphStrip, type StatusGlyph, type StatusGlyphStripProps } from "./StatusGlyphStrip";
43
44
  export {
44
45
  AsyncBoundary,
45
46
  AsyncSkeleton,
@@ -111,6 +111,34 @@ describe("Screen top bar (LC-157)", () => {
111
111
  });
112
112
  });
113
113
 
114
+ describe("back control alignment (FZ-7993)", () => {
115
+ function caretPull(container: HTMLElement): number | null {
116
+ const caret = container.querySelector("[data-back-caret]");
117
+ const cls = String((caret as HTMLElement | null)?.className || "")
118
+ .split(" ")
119
+ .find((c) => c.startsWith("_marginInlineStart-"));
120
+ return cls
121
+ ? Number.parseFloat(cls.slice("_marginInlineStart-".length).replace("--", "-"))
122
+ : null;
123
+ }
124
+
125
+ it("pulls the caret by its glyph's bearing, so its point sits on the large title's edge", () => {
126
+ const { container } = renderWithProviders(
127
+ <Screen topBar={<ScreenToolbar leading={<PageBackButton label="Components" />} />}>
128
+ <PageHeader title="DataTable" />
129
+ </Screen>,
130
+ );
131
+ const back = container.querySelector('[data-top-bar-control="back"]');
132
+ expect(back?.querySelector("[data-back-caret] svg")).toBeTruthy();
133
+ const pull = caretPull(container);
134
+ expect(pull).not.toBeNull();
135
+ expect(pull!).toBeLessThan(0);
136
+ const svg = back!.querySelector("[data-back-caret] svg")!;
137
+ const size = Number(svg.getAttribute("width"));
138
+ expect(Math.abs(pull!)).toBe(Math.round((size * 72) / 256));
139
+ });
140
+ });
141
+
114
142
  function AccentProbe() {
115
143
  const tint = useGlyphTintOnSurface();
116
144
  return <span data-testid="accent-probe" data-label={tint.label} data-glyph={tint.glyph} />;
@@ -18,6 +18,7 @@
18
18
  import {
19
19
  MIN_PRESS_TARGET,
20
20
  PageGutter,
21
+ ScreenNesting,
21
22
  containerCapProps,
22
23
  hairline,
23
24
  layoutBreakpoints,
@@ -26,8 +27,11 @@ import {
26
27
  transitionProps,
27
28
  useAccentOnSurface,
28
29
  useLayoutSizeClass,
30
+ useParentScreen,
31
+ usePageGutter,
29
32
  useResolvedKnobs,
30
33
  type PageTitleScale,
34
+ type ParentScreen,
31
35
  } from "@multiplatform.one/theme";
32
36
  import { Button, IconButtonGroup, type ButtonProps } from "@multiplatform.one/forms";
33
37
  import { CaretLeftIcon, CaretRightIcon, DotsThreeIcon } from "@phosphor-icons/react";
@@ -73,6 +77,7 @@ import {
73
77
  useRegisterPageHeading,
74
78
  type PageHeadingLevel,
75
79
  } from "./pageHeadingScope";
80
+ import { ParentScrollScope } from "./screenScroll";
76
81
 
77
82
  /** Semantic level → tamagui heading component (runtime `tag` is not honored). */
78
83
  const PAGE_HEADING_TAGS = { 1: H1, 2: H2, 3: H3, 4: H4, 5: H5, 6: H6 } as const;
@@ -118,6 +123,120 @@ export interface ScreenProps extends YStackProps {
118
123
  topBar?: ReactNode;
119
124
  }
120
125
 
126
+ /**
127
+ * The page shell, or, inside another Screen's content, that page's merged
128
+ * continuation (LC-159, FZ-7993): see `NestedScreen`.
129
+ */
130
+ export function Screen(props: ScreenProps) {
131
+ const parent = useParentScreen();
132
+ return parent ? <NestedScreen parent={parent} {...props} /> : <PageShell {...props} />;
133
+ }
134
+
135
+ /**
136
+ * A Screen inside another Screen's content. Its parent already owns the page,
137
+ * so it adds only what the parent lacks: the gutter when nothing pads the page
138
+ * yet, the content cap when nothing caps it, and a scroll view when the parent
139
+ * does not scroll. It never pins a second top bar (its `topBar` sits at the
140
+ * head of its content), never avoids the keyboard a second time, and opens no
141
+ * bottom edge of its own. Its large title stays a heading in the content so
142
+ * the parent's bar keeps the parent's title.
143
+ */
144
+ function NestedScreen({
145
+ parent,
146
+ children,
147
+ scroll = true,
148
+ maxWidth = CONTENT_MAX_WIDTH,
149
+ bleed = false,
150
+ noPadding = false,
151
+ scrollViewProps,
152
+ avoidKeyboard: _avoidKeyboard,
153
+ topBar,
154
+ ...rest
155
+ }: ScreenProps & { parent: ParentScreen }) {
156
+ const { knobProps } = useResolvedKnobs({ component: "Screen" });
157
+ const scrollState = useScreenScrollController();
158
+ const ownInset =
159
+ noPadding || parent.inset !== null ? null : (knobProps.panelPadding.padding as string);
160
+ const inset = ownInset ?? parent.inset;
161
+ const cap = !parent.capped && maxWidth && !bleed ? maxWidth : null;
162
+ const ownsScroll = scroll && !parent.scrolls;
163
+
164
+ const content = (
165
+ <PageHeadingScope insetToken={inset}>
166
+ <ScreenNesting
167
+ scrolls={scroll || parent.scrolls}
168
+ inset={inset}
169
+ capped={parent.capped || cap !== null}
170
+ >
171
+ {ownInset ? <PageGutter inset={ownInset}>{children}</PageGutter> : children}
172
+ </ScreenNesting>
173
+ </PageHeadingScope>
174
+ );
175
+
176
+ const column = (
177
+ <YStack
178
+ ref={ownsScroll ? (scrollState.contentRoot as never) : undefined}
179
+ data-testid="screen"
180
+ data-screen-nested
181
+ flex={1}
182
+ width="100%"
183
+ {...(cap ? { maxWidth: cap, alignSelf: "center" } : null)}
184
+ {...(ownInset ? knobProps.panelPadding : null)}
185
+ {...knobProps.gapLg}
186
+ {...rest}
187
+ >
188
+ {ownsScroll ? null : topBar}
189
+ {content}
190
+ </YStack>
191
+ );
192
+
193
+ if (!ownsScroll) return <ParentScrollScope>{column}</ParentScrollScope>;
194
+
195
+ return (
196
+ <ScreenScrollScope controller={scrollState}>
197
+ <YStack flex={1} minHeight={0}>
198
+ {topBar}
199
+ <ScrollView
200
+ flex={1}
201
+ contentContainerStyle={{ flexGrow: 1 }}
202
+ scrollEventThrottle={16}
203
+ {...scrollViewProps}
204
+ onScroll={(event: NativeSyntheticEvent<NativeScrollEvent>) => {
205
+ scrollState.onScroll(event as never);
206
+ scrollViewProps?.onScroll?.(event as never);
207
+ }}
208
+ >
209
+ {column}
210
+ </ScrollView>
211
+ </YStack>
212
+ </ScreenScrollScope>
213
+ );
214
+ }
215
+
216
+ /**
217
+ * Content that stands alone in one host and sits in a page in another (a
218
+ * story, an embedded panel). Alone it pads its sides by the page gutter and
219
+ * declares it; inside a page that already applies a gutter it adds nothing,
220
+ * so its content stays on the page line instead of one gutter in (LC-159,
221
+ * FZ-7993).
222
+ */
223
+ export function GutterFrame({ children, ...rest }: YStackProps) {
224
+ const { knobProps } = useResolvedKnobs({ component: "Screen" });
225
+ const pageGutter = usePageGutter();
226
+ if (pageGutter) {
227
+ return (
228
+ <YStack data-gutter-frame="page" {...rest}>
229
+ {children}
230
+ </YStack>
231
+ );
232
+ }
233
+ return (
234
+ <YStack data-gutter-frame="own" {...knobProps.panelPadding} {...rest}>
235
+ <PageGutter inset={knobProps.panelPadding.padding as string}>{children}</PageGutter>
236
+ </YStack>
237
+ );
238
+ }
239
+
121
240
  /**
122
241
  * Outer page shell. Pairs with PageHeader/Section/EmptyState for thin
123
242
  * compose-only screens.
@@ -139,7 +258,7 @@ export interface ScreenProps extends YStackProps {
139
258
  * <FrappeImageView doctype="Pokemon" />
140
259
  * </Screen>
141
260
  */
142
- export function Screen({
261
+ function PageShell({
143
262
  children,
144
263
  scroll = true,
145
264
  maxWidth = CONTENT_MAX_WIDTH,
@@ -172,7 +291,9 @@ export function Screen({
172
291
  insetToken lets PageHeader bleed its hairline to the column edges. */}
173
292
  <PageHeadingScope insetToken={noPadding ? null : (knobProps.panelPadding.padding as string)}>
174
293
  <PageGutter inset={noPadding ? null : (knobProps.panelPadding.padding as string)}>
175
- {children}
294
+ <ScreenNesting scrolls={scroll} inset={inset} capped={cap !== null}>
295
+ {children}
296
+ </ScreenNesting>
176
297
  </PageGutter>
177
298
  </PageHeadingScope>
178
299
  </YStack>
@@ -735,7 +856,7 @@ function backCaret(Caret: typeof CaretLeftIcon) {
735
856
  strokeLinejoin?: "round";
736
857
  }) {
737
858
  return (
738
- <XStack marginInlineStart={-Math.round(size * CARET_OPTICAL_INSET)}>
859
+ <XStack data-back-caret="" marginInlineStart={-Math.round(size * CARET_OPTICAL_INSET)}>
739
860
  <Caret size={size} color={color} weight={weight} {...stroke} />
740
861
  </XStack>
741
862
  );
@@ -752,7 +873,9 @@ export interface PageBackButtonProps extends Omit<ButtonProps, "children"> {
752
873
 
753
874
  /**
754
875
  * The page's back control. It sits in ScreenToolbar's leading slot, never on
755
- * a row of its own, with its caret on the content gutter (Button `edge`).
876
+ * a row of its own. The button pulls out by its padding (Button `edge`) and
877
+ * the caret by its glyph's bearing, so the caret's point is on the content
878
+ * gutter, the large title's leading edge (FZ-7993).
756
879
  */
757
880
  export function PageBackButton({ label, ...props }: PageBackButtonProps) {
758
881
  const control = useTopBarControl();