@multiplatform.one/components 7.87.1 → 7.88.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/dist/cjs/Accordion/index.native.js +1 -1
  2. package/dist/cjs/Accordion/index.native.js.map +1 -1
  3. package/dist/cjs/Alert/index.native.js.map +1 -1
  4. package/dist/cjs/AnimateHeight/index.native.js.map +1 -1
  5. package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
  6. package/dist/cjs/Avatar/index.native.js.map +1 -1
  7. package/dist/cjs/Badge/index.native.js.map +1 -1
  8. package/dist/cjs/Button.native.js.map +1 -1
  9. package/dist/cjs/Card.native.js.map +1 -1
  10. package/dist/cjs/CardFooter.native.js.map +1 -1
  11. package/dist/cjs/CardHeader.native.js.map +1 -1
  12. package/dist/cjs/Carousel/geometry.native.js.map +1 -1
  13. package/dist/cjs/Carousel/index.native.js +3 -3
  14. package/dist/cjs/Carousel/index.native.js.map +1 -1
  15. package/dist/cjs/CheckGlyph/MenuCheckColumn.native.js.map +1 -1
  16. package/dist/cjs/CheckGlyph/index.native.js.map +1 -1
  17. package/dist/cjs/Chip/index.native.js.map +1 -1
  18. package/dist/cjs/ChoiceChips/index.native.js +1 -1
  19. package/dist/cjs/ChoiceChips/index.native.js.map +1 -1
  20. package/dist/cjs/Collapsible.native.js.map +1 -1
  21. package/dist/cjs/ContextMenu/index.cjs +9 -3
  22. package/dist/cjs/ContextMenu/index.native.js +9 -3
  23. package/dist/cjs/ContextMenu/index.native.js.map +1 -1
  24. package/dist/cjs/CopyField/CopyMenuButton.native.js +1 -1
  25. package/dist/cjs/CopyField/CopyMenuButton.native.js.map +1 -1
  26. package/dist/cjs/CopyField/index.native.js.map +1 -1
  27. package/dist/cjs/Dialog.native.js +1 -1
  28. package/dist/cjs/Dialog.native.js.map +1 -1
  29. package/dist/cjs/Diff/diff.native.js.map +1 -1
  30. package/dist/cjs/Diff/index.native.js.map +1 -1
  31. package/dist/cjs/DotIndicator/index.native.js.map +1 -1
  32. package/dist/cjs/DropdownMenu/index.cjs +9 -3
  33. package/dist/cjs/DropdownMenu/index.native.js +9 -3
  34. package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
  35. package/dist/cjs/DropdownMenu/menuSettle.cjs +17 -0
  36. package/dist/cjs/DropdownMenu/menuSettle.native.js +17 -0
  37. package/dist/cjs/DropdownMenu/menuSettle.native.js.map +1 -1
  38. package/dist/cjs/ElapsedProgress/index.native.js.map +1 -1
  39. package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
  40. package/dist/cjs/Heading.native.js.map +1 -1
  41. package/dist/cjs/Kbd/index.native.js.map +1 -1
  42. package/dist/cjs/Kbd/keys.native.js.map +1 -1
  43. package/dist/cjs/Lightbox/MediaControl.native.js.map +1 -1
  44. package/dist/cjs/Lightbox/index.gnome.native.js.map +1 -1
  45. package/dist/cjs/Lightbox/index.native.js +1 -1
  46. package/dist/cjs/Lightbox/shared.native.js.map +1 -1
  47. package/dist/cjs/Lightbox/useLightbox.native.js.map +1 -1
  48. package/dist/cjs/MachineLiteral/index.native.js.map +1 -1
  49. package/dist/cjs/Material/index.native.js.map +1 -1
  50. package/dist/cjs/Meter/index.native.js +1 -1
  51. package/dist/cjs/Meter/index.native.js.map +1 -1
  52. package/dist/cjs/Meter/meter.native.js.map +1 -1
  53. package/dist/cjs/OverflowRow/index.native.js +1 -1
  54. package/dist/cjs/OverflowRow/index.native.js.map +1 -1
  55. package/dist/cjs/Pagination.native.js +1 -1
  56. package/dist/cjs/Pagination.native.js.map +1 -1
  57. package/dist/cjs/Popover.native.js +1 -1
  58. package/dist/cjs/Popover.native.js.map +1 -1
  59. package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
  60. package/dist/cjs/Quote/index.native.js.map +1 -1
  61. package/dist/cjs/SchemeToggle/index.native.js +1 -1
  62. package/dist/cjs/SchemeToggle/index.native.js.map +1 -1
  63. package/dist/cjs/ScrollView/revealFocusedField.native.js.map +1 -1
  64. package/dist/cjs/Separator/index.native.js.map +1 -1
  65. package/dist/cjs/Sheet.native.js.map +1 -1
  66. package/dist/cjs/SheetModal/SheetHeader.native.js.map +1 -1
  67. package/dist/cjs/SheetModal/SheetNavigation.native.js.map +1 -1
  68. package/dist/cjs/SheetModal/detents.native.js.map +1 -1
  69. package/dist/cjs/SheetModal/useSheetFrameFocus.native.js.map +1 -1
  70. package/dist/cjs/Skeleton/index.native.js.map +1 -1
  71. package/dist/cjs/SkipLink/index.native.js.map +1 -1
  72. package/dist/cjs/SortableList/SortableHandle.native.js.map +1 -1
  73. package/dist/cjs/SortableList/index.native.js.map +1 -1
  74. package/dist/cjs/SortableList/useSortableRows.native.js.map +1 -1
  75. package/dist/cjs/SortableList/useUserOrder.native.js.map +1 -1
  76. package/dist/cjs/Tabs/index.native.js +1 -1
  77. package/dist/cjs/Tabs/index.native.js.map +1 -1
  78. package/dist/cjs/Text.native.js.map +1 -1
  79. package/dist/cjs/ThemePresetPicker/index.native.js +1 -1
  80. package/dist/cjs/ThemePresetPicker/index.native.js.map +1 -1
  81. package/dist/cjs/Toast/index.native.js.map +1 -1
  82. package/dist/cjs/Toast/store.native.js.map +1 -1
  83. package/dist/cjs/Tooltip/nativePress.native.js.map +1 -1
  84. package/dist/cjs/Tooltip/tooltipShared.native.js.map +1 -1
  85. package/dist/cjs/TreeSelect/index.native.js +2 -2
  86. package/dist/cjs/TreeSelect/index.native.js.map +1 -1
  87. package/dist/cjs/TreeSelect/treeSelectModel.native.js.map +1 -1
  88. package/dist/cjs/Video/PlayerChrome.native.js.map +1 -1
  89. package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
  90. package/dist/cjs/Video/types.native.js.map +1 -1
  91. package/dist/cjs/Wheel/index.native.js.map +1 -1
  92. package/dist/cjs/Wizard/index.native.js +2 -2
  93. package/dist/cjs/Wizard/index.native.js.map +1 -1
  94. package/dist/cjs/actions/ActionBar.native.js.map +1 -1
  95. package/dist/cjs/actions/DangerSection.native.js.map +1 -1
  96. package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
  97. package/dist/cjs/actions/HeaderActions.native.js +2 -2
  98. package/dist/cjs/actions/HeaderActions.native.js.map +1 -1
  99. package/dist/cjs/actions/StandardAction.native.js +1 -1
  100. package/dist/cjs/actions/StandardAction.native.js.map +1 -1
  101. package/dist/cjs/actions/devWarn.native.js.map +1 -1
  102. package/dist/cjs/actions/index.native.js.map +1 -1
  103. package/dist/cjs/actions/severity.native.js.map +1 -1
  104. package/dist/cjs/appShell/AppShell.cjs +7 -2
  105. package/dist/cjs/appShell/AppShell.native.js +8 -3
  106. package/dist/cjs/appShell/AppShell.native.js.map +1 -1
  107. package/dist/cjs/appShell/BottomChromeClearance.native.js.map +1 -1
  108. package/dist/cjs/appShell/Dock.native.js.map +1 -1
  109. package/dist/cjs/appShell/MpoTabHost.native.js.map +1 -1
  110. package/dist/cjs/appShell/ScopeMenu.native.js +1 -1
  111. package/dist/cjs/appShell/ScopeMenu.native.js.map +1 -1
  112. package/dist/cjs/appShell/SettingsSplit.native.js +1 -1
  113. package/dist/cjs/appShell/SettingsSplit.native.js.map +1 -1
  114. package/dist/cjs/appShell/Springboard.native.js +1 -1
  115. package/dist/cjs/appShell/Springboard.native.js.map +1 -1
  116. package/dist/cjs/appShell/SystemBar.native.js.map +1 -1
  117. package/dist/cjs/appShell/TabBar.native.js +1 -1
  118. package/dist/cjs/appShell/TabBar.native.js.map +1 -1
  119. package/dist/cjs/appShell/appTile.native.js +1 -1
  120. package/dist/cjs/appShell/appTile.native.js.map +1 -1
  121. package/dist/cjs/appShell/bottomChrome.native.js.map +1 -1
  122. package/dist/cjs/appShell/index.native.js.map +1 -1
  123. package/dist/cjs/charts/Axis.native.js.map +1 -1
  124. package/dist/cjs/charts/BarChart.native.js.map +1 -1
  125. package/dist/cjs/charts/ChartDataView.native.js +2 -2
  126. package/dist/cjs/charts/ChartDataView.native.js.map +1 -1
  127. package/dist/cjs/charts/ChartSurface.native.js.map +1 -1
  128. package/dist/cjs/charts/LineChart.native.js.map +1 -1
  129. package/dist/cjs/charts/PieChart.native.js.map +1 -1
  130. package/dist/cjs/charts/Sparkline.native.js.map +1 -1
  131. package/dist/cjs/charts/accessibility.native.js.map +1 -1
  132. package/dist/cjs/charts/chartHeight.native.js.map +1 -1
  133. package/dist/cjs/charts/composeChart.native.js.map +1 -1
  134. package/dist/cjs/charts/index.native.js.map +1 -1
  135. package/dist/cjs/charts/math.native.js.map +1 -1
  136. package/dist/cjs/charts/series.native.js.map +1 -1
  137. package/dist/cjs/charts/svg.native.js.map +1 -1
  138. package/dist/cjs/charts/types.native.js.map +1 -1
  139. package/dist/cjs/charts/useChartTheme.native.js.map +1 -1
  140. package/dist/cjs/code/Code/index.native.js.map +1 -1
  141. package/dist/cjs/code/CodeBlock/index.native.js +7 -7
  142. package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
  143. package/dist/cjs/code/HighlightedCode/index.native.js.map +1 -1
  144. package/dist/cjs/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
  145. package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
  146. package/dist/cjs/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
  147. package/dist/cjs/code/LogView.native.js.map +1 -1
  148. package/dist/cjs/code/Pre/index.native.js.map +1 -1
  149. package/dist/cjs/code/index.native.js +5 -5
  150. package/dist/cjs/code/index.native.js.map +1 -1
  151. package/dist/cjs/componentColors.native.js.map +1 -1
  152. package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
  153. package/dist/cjs/feedback/NotifyHost.cjs +10 -3
  154. package/dist/cjs/feedback/NotifyHost.native.js +14 -5
  155. package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
  156. package/dist/cjs/feedback/copy.native.js.map +1 -1
  157. package/dist/cjs/feedback/index.native.js.map +1 -1
  158. package/dist/cjs/feedback/notify.native.js.map +1 -1
  159. package/dist/cjs/feedback/route.native.js.map +1 -1
  160. package/dist/cjs/feedback/store.cjs +29 -1
  161. package/dist/cjs/feedback/store.native.js +52 -1
  162. package/dist/cjs/feedback/store.native.js.map +1 -1
  163. package/dist/cjs/formLayouts/FormLayouts.native.js +1 -1
  164. package/dist/cjs/formLayouts/FormLayouts.native.js.map +1 -1
  165. package/dist/cjs/formLayouts/PreferencePanel.native.js +2 -2
  166. package/dist/cjs/formLayouts/PreferencePanel.native.js.map +1 -1
  167. package/dist/cjs/formLayouts/index.native.js.map +1 -1
  168. package/dist/cjs/hooks/index.native.js +1 -1
  169. package/dist/cjs/hooks/index.native.js.map +1 -1
  170. package/dist/cjs/hooks/useClipboard.native.js.map +1 -1
  171. package/dist/cjs/hooks/useDocumentTitle.native.js.map +1 -1
  172. package/dist/cjs/hooks/useHoldCue.native.js.map +1 -1
  173. package/dist/cjs/icons/CheckRegular.native.js.map +1 -1
  174. package/dist/cjs/icons/MinusRegular.native.js.map +1 -1
  175. package/dist/cjs/icons/index.native.js.map +1 -1
  176. package/dist/cjs/icons/lucide.native.js.map +1 -1
  177. package/dist/cjs/icons/themed.native.js.map +1 -1
  178. package/dist/cjs/images/Image/ImageFrame.native.js +1 -1
  179. package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -1
  180. package/dist/cjs/images/Image/framing.native.js.map +1 -1
  181. package/dist/cjs/images/Image/index.native.js +1 -1
  182. package/dist/cjs/images/Image/mediaRadius.native.js.map +1 -1
  183. package/dist/cjs/images/Image/shared.native.js +1 -1
  184. package/dist/cjs/images/Image/shared.native.js.map +1 -1
  185. package/dist/cjs/images/Image/types.native.js.map +1 -1
  186. package/dist/cjs/images/index.native.js.map +1 -1
  187. package/dist/cjs/index.native.js +40 -40
  188. package/dist/cjs/index.native.js.map +1 -1
  189. package/dist/cjs/knobImmuneExports.native.js.map +1 -1
  190. package/dist/cjs/layouts/AsyncBoundary.native.js +2 -2
  191. package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
  192. package/dist/cjs/layouts/Debug/index.native.js.map +1 -1
  193. package/dist/cjs/layouts/EmptyState.native.js +1 -1
  194. package/dist/cjs/layouts/EmptyState.native.js.map +1 -1
  195. package/dist/cjs/layouts/IdentityPlate.native.js +1 -1
  196. package/dist/cjs/layouts/IdentityPlate.native.js.map +1 -1
  197. package/dist/cjs/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  198. package/dist/cjs/layouts/PageTemplates.native.js.map +1 -1
  199. package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
  200. package/dist/cjs/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  201. package/dist/cjs/layouts/StatusDot.native.js.map +1 -1
  202. package/dist/cjs/layouts/StatusGlyphStrip.native.js +1 -1
  203. package/dist/cjs/layouts/StatusGlyphStrip.native.js.map +1 -1
  204. package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
  205. package/dist/cjs/layouts/asyncFailure.native.js.map +1 -1
  206. package/dist/cjs/layouts/attachments.native.js +1 -1
  207. package/dist/cjs/layouts/attachments.native.js.map +1 -1
  208. package/dist/cjs/layouts/barTitleSpan.native.js.map +1 -1
  209. package/dist/cjs/layouts/bottomAccessory.native.js.map +1 -1
  210. package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
  211. package/dist/cjs/layouts/index.native.js +3 -3
  212. package/dist/cjs/layouts/index.native.js.map +1 -1
  213. package/dist/cjs/layouts/page.cjs +16 -4
  214. package/dist/cjs/layouts/page.native.js +18 -6
  215. package/dist/cjs/layouts/page.native.js.map +1 -1
  216. package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
  217. package/dist/cjs/layouts/screenScroll.native.js.map +1 -1
  218. package/dist/cjs/layouts/shellSidebarSlot.native.js.map +1 -1
  219. package/dist/cjs/layouts/sidebar.native.js +1 -1
  220. package/dist/cjs/layouts/sidebar.native.js.map +1 -1
  221. package/dist/cjs/layouts/tags.native.js +2 -2
  222. package/dist/cjs/layouts/tags.native.js.map +1 -1
  223. package/dist/cjs/layouts/timeline.native.js +2 -2
  224. package/dist/cjs/layouts/timeline.native.js.map +1 -1
  225. package/dist/cjs/layouts/toolbar.native.js +1 -1
  226. package/dist/cjs/layouts/toolbar.native.js.map +1 -1
  227. package/dist/cjs/shared/actionScan.native.js.map +1 -1
  228. package/dist/cjs/shared/i18n.native.js.map +1 -1
  229. package/dist/cjs/shared/restoreRetries.native.js.map +1 -1
  230. package/dist/cjs/shared/t.native.js.map +1 -1
  231. package/dist/cjs/shared/textRidesText.native.js.map +1 -1
  232. package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -1
  233. package/dist/cjs/surfaces.native.js +1 -1
  234. package/dist/cjs/surfaces.native.js.map +1 -1
  235. package/dist/cjs/tamagui.native.js +1 -1
  236. package/dist/cjs/tamagui.native.js.map +1 -1
  237. package/dist/cjs/testSetup.native.js.map +1 -1
  238. package/dist/cjs/utils/setTinted.native.js.map +1 -1
  239. package/dist/cjs/utils/unwrapText.native.js.map +1 -1
  240. package/dist/cjs/views/Calendar.native.js +1 -1
  241. package/dist/cjs/views/Calendar.native.js.map +1 -1
  242. package/dist/cjs/views/CardGrid.native.js.map +1 -1
  243. package/dist/cjs/views/Dashboard.native.js +2 -2
  244. package/dist/cjs/views/Dashboard.native.js.map +1 -1
  245. package/dist/cjs/views/Gantt.native.js +2 -2
  246. package/dist/cjs/views/Gantt.native.js.map +1 -1
  247. package/dist/cjs/views/GanttDateGrip.native.js.map +1 -1
  248. package/dist/cjs/views/ImageGrid.native.js +2 -2
  249. package/dist/cjs/views/ImageGrid.native.js.map +1 -1
  250. package/dist/cjs/views/Kanban.native.js +1 -1
  251. package/dist/cjs/views/List.native.js.map +1 -1
  252. package/dist/cjs/views/ListGroup.native.js.map +1 -1
  253. package/dist/cjs/views/ListRow.native.js.map +1 -1
  254. package/dist/cjs/views/Matrix.native.js +2 -2
  255. package/dist/cjs/views/Matrix.native.js.map +1 -1
  256. package/dist/cjs/views/ReportBuilder.native.js +2 -2
  257. package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
  258. package/dist/cjs/views/ShortcutCard.native.js.map +1 -1
  259. package/dist/cjs/views/TreeView.native.js.map +1 -1
  260. package/dist/cjs/views/calendarMath.native.js.map +1 -1
  261. package/dist/cjs/views/ganttIntervals.native.js.map +1 -1
  262. package/dist/cjs/views/ganttMath.native.js.map +1 -1
  263. package/dist/cjs/views/index.native.js +1 -1
  264. package/dist/cjs/views/index.native.js.map +1 -1
  265. package/dist/cjs/views/kanbanDnd.native.js.map +1 -1
  266. package/dist/cjs/views/matrixMath.native.js.map +1 -1
  267. package/dist/cjs/views/sameNameScope.native.js.map +1 -1
  268. package/dist/cjs/views/treeViewDnd.native.js.map +1 -1
  269. package/dist/cjs/views/treeViewLayout.native.js.map +1 -1
  270. package/dist/cjs/views/treeViewMotion.native.js.map +1 -1
  271. package/dist/cjs/views/treeViewReveal.native.js.map +1 -1
  272. package/dist/cjs/views/usePageFlowLoadMore.native.js.map +1 -1
  273. package/dist/cjs/views/widgetChrome.native.js.map +1 -1
  274. package/dist/esm/ContextMenu/index.mjs +10 -4
  275. package/dist/esm/ContextMenu/index.mjs.map +1 -1
  276. package/dist/esm/ContextMenu/index.native.js +10 -4
  277. package/dist/esm/ContextMenu/index.native.js.map +1 -1
  278. package/dist/esm/DropdownMenu/index.mjs +10 -4
  279. package/dist/esm/DropdownMenu/index.mjs.map +1 -1
  280. package/dist/esm/DropdownMenu/index.native.js +10 -4
  281. package/dist/esm/DropdownMenu/index.native.js.map +1 -1
  282. package/dist/esm/DropdownMenu/menuSettle.mjs +15 -1
  283. package/dist/esm/DropdownMenu/menuSettle.mjs.map +1 -1
  284. package/dist/esm/DropdownMenu/menuSettle.native.js +15 -1
  285. package/dist/esm/DropdownMenu/menuSettle.native.js.map +1 -1
  286. package/dist/esm/appShell/AppShell.mjs +7 -2
  287. package/dist/esm/appShell/AppShell.mjs.map +1 -1
  288. package/dist/esm/appShell/AppShell.native.js +7 -2
  289. package/dist/esm/appShell/AppShell.native.js.map +1 -1
  290. package/dist/esm/feedback/NotifyHost.mjs +12 -5
  291. package/dist/esm/feedback/NotifyHost.mjs.map +1 -1
  292. package/dist/esm/feedback/NotifyHost.native.js +14 -5
  293. package/dist/esm/feedback/NotifyHost.native.js.map +1 -1
  294. package/dist/esm/feedback/store.mjs +25 -1
  295. package/dist/esm/feedback/store.mjs.map +1 -1
  296. package/dist/esm/feedback/store.native.js +48 -1
  297. package/dist/esm/feedback/store.native.js.map +1 -1
  298. package/dist/esm/layouts/page.mjs +17 -5
  299. package/dist/esm/layouts/page.mjs.map +1 -1
  300. package/dist/esm/layouts/page.native.js +17 -5
  301. package/dist/esm/layouts/page.native.js.map +1 -1
  302. package/dist/jsx/ContextMenu/index.mjs +10 -4
  303. package/dist/jsx/ContextMenu/index.mjs.map +1 -1
  304. package/dist/jsx/ContextMenu/index.native.js +9 -3
  305. package/dist/jsx/ContextMenu/index.native.js.map +1 -1
  306. package/dist/jsx/DropdownMenu/index.mjs +10 -4
  307. package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
  308. package/dist/jsx/DropdownMenu/index.native.js +9 -3
  309. package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
  310. package/dist/jsx/DropdownMenu/menuSettle.mjs +15 -1
  311. package/dist/jsx/DropdownMenu/menuSettle.mjs.map +1 -1
  312. package/dist/jsx/DropdownMenu/menuSettle.native.js +17 -0
  313. package/dist/jsx/DropdownMenu/menuSettle.native.js.map +1 -1
  314. package/dist/jsx/appShell/AppShell.mjs +7 -2
  315. package/dist/jsx/appShell/AppShell.mjs.map +1 -1
  316. package/dist/jsx/appShell/AppShell.native.js +7 -2
  317. package/dist/jsx/appShell/AppShell.native.js.map +1 -1
  318. package/dist/jsx/feedback/NotifyHost.mjs +12 -5
  319. package/dist/jsx/feedback/NotifyHost.mjs.map +1 -1
  320. package/dist/jsx/feedback/NotifyHost.native.js +12 -3
  321. package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
  322. package/dist/jsx/feedback/store.mjs +25 -1
  323. package/dist/jsx/feedback/store.mjs.map +1 -1
  324. package/dist/jsx/feedback/store.native.js +52 -1
  325. package/dist/jsx/feedback/store.native.js.map +1 -1
  326. package/dist/jsx/layouts/page.mjs +17 -5
  327. package/dist/jsx/layouts/page.mjs.map +1 -1
  328. package/dist/jsx/layouts/page.native.js +16 -4
  329. package/dist/jsx/layouts/page.native.js.map +1 -1
  330. package/package.json +9 -9
  331. package/src/ContextMenu/index.tsx +12 -4
  332. package/src/DropdownMenu/index.tsx +12 -4
  333. package/src/DropdownMenu/menuSettle.spec.tsx +91 -1
  334. package/src/DropdownMenu/menuSettle.tsx +15 -0
  335. package/src/appShell/AppShell.notify.spec.tsx +65 -0
  336. package/src/appShell/AppShell.tsx +4 -2
  337. package/src/feedback/NotifyHost.tsx +24 -4
  338. package/src/feedback/store.ts +38 -0
  339. package/src/layouts/PageSection.size.spec.tsx +78 -0
  340. package/src/layouts/PageSection.stories.tsx +44 -0
  341. package/src/layouts/page.tsx +35 -7
  342. package/types/ContextMenu/index.d.ts.map +1 -1
  343. package/types/DropdownMenu/index.d.ts.map +1 -1
  344. package/types/DropdownMenu/menuSettle.d.ts +19 -0
  345. package/types/DropdownMenu/menuSettle.d.ts.map +1 -1
  346. package/types/appShell/AppShell.d.ts.map +1 -1
  347. package/types/feedback/NotifyHost.d.ts.map +1 -1
  348. package/types/feedback/store.d.ts +8 -0
  349. package/types/feedback/store.d.ts.map +1 -1
  350. package/types/layouts/page.d.ts +9 -7
  351. package/types/layouts/page.d.ts.map +1 -1
@@ -65,7 +65,10 @@ import {
65
65
  import { componentColors } from "../componentColors";
66
66
  import type { DropdownMenuEntry, DropdownMenuItemSpec } from "../DropdownMenu";
67
67
  import {
68
+ MENU_DISABLED_OPACITY,
68
69
  MenuBusyCue,
70
+ menuBusyDim,
71
+ menuBusyRow,
69
72
  MenuRefusal,
70
73
  type MenuSelectHandler,
71
74
  useMenuRefusal,
@@ -140,7 +143,7 @@ const ItemRow = styled(XStack, {
140
143
  disabled: {
141
144
  true: {
142
145
  cursor: "default",
143
- opacity: 0.5,
146
+ opacity: MENU_DISABLED_OPACITY,
144
147
  hoverStyle: { backgroundColor: "transparent" },
145
148
  pressStyle: { backgroundColor: "transparent" },
146
149
  focusStyle: { backgroundColor: "transparent" },
@@ -479,8 +482,9 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
479
482
  }
480
483
  : undefined;
481
484
  const checkedFill = menuRowChecked(knobProps.scheme);
482
- const focusFill =
483
- destructive && !disabled
485
+ const focusFill = busy
486
+ ? { backgroundColor: "transparent" as const }
487
+ : destructive && !disabled
484
488
  ? { backgroundColor: "$red3" as const }
485
489
  : selected
486
490
  ? { backgroundColor: checkedFill.backgroundColor }
@@ -496,7 +500,7 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
496
500
  role={role}
497
501
  disabled={disabled}
498
502
  selected={selected}
499
- aria-disabled={disabled || undefined}
503
+ aria-disabled={disabled || busy || undefined}
500
504
  aria-busy={busy || undefined}
501
505
  data-mp-busy={busy ? "true" : undefined}
502
506
  {...knobProps.menuRow}
@@ -510,6 +514,7 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
510
514
  data-mp-ring-offset="0"
511
515
  data-mp-kb-ring={kbRing ? "true" : undefined}
512
516
  {...highlightFill}
517
+ {...(busy ? menuBusyRow : undefined)}
513
518
  {...(selected ? checkedFill : undefined)}
514
519
  {...(explainedDisable ? { paddingVertical: "$1.5" } : {})}
515
520
  {...(props as Record<string, unknown>)}
@@ -544,6 +549,7 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
544
549
  >
545
550
  {icon ? (
546
551
  <View
552
+ {...(busy ? menuBusyDim : undefined)}
547
553
  flexShrink={0}
548
554
  alignItems="center"
549
555
  justifyContent="center"
@@ -581,6 +587,7 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
581
587
  fontWeight="400"
582
588
  numberOfLines={1}
583
589
  flexGrow={1}
590
+ {...(busy ? menuBusyDim : undefined)}
584
591
  flexShrink={1}
585
592
  >
586
593
  {children}
@@ -588,6 +595,7 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
588
595
  )}
589
596
  {shortcut && !destructive ? (
590
597
  <Text
598
+ {...(busy ? menuBusyDim : undefined)}
591
599
  {...knobProps.body}
592
600
  color={knobProps.textAccentColor}
593
601
  fontSize="$1"
@@ -68,7 +68,10 @@ import {
68
68
  } from "tamagui";
69
69
  import { componentColors } from "../componentColors";
70
70
  import {
71
+ MENU_DISABLED_OPACITY,
71
72
  MenuBusyCue,
73
+ menuBusyDim,
74
+ menuBusyRow,
72
75
  MenuRefusal,
73
76
  type MenuSelectHandler,
74
77
  useMenuRefusal,
@@ -236,7 +239,7 @@ const ItemRow = styled(XStack, {
236
239
  disabled: {
237
240
  true: {
238
241
  cursor: "default",
239
- opacity: 0.5,
242
+ opacity: MENU_DISABLED_OPACITY,
240
243
  hoverStyle: { backgroundColor: "transparent" },
241
244
  pressStyle: { backgroundColor: "transparent" },
242
245
  focusStyle: { backgroundColor: "transparent" },
@@ -768,8 +771,9 @@ const DropdownMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(
768
771
  }
769
772
  : undefined;
770
773
  const checkedFill = menuRowChecked(knobProps.scheme);
771
- const focusFill =
772
- destructive && !disabled
774
+ const focusFill = busy
775
+ ? { backgroundColor: "transparent" as const }
776
+ : destructive && !disabled
773
777
  ? { backgroundColor: "$red3" as const }
774
778
  : selected
775
779
  ? { backgroundColor: checkedFill.backgroundColor }
@@ -785,7 +789,7 @@ const DropdownMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(
785
789
  role={role}
786
790
  disabled={disabled}
787
791
  selected={selected}
788
- aria-disabled={disabled || undefined}
792
+ aria-disabled={disabled || busy || undefined}
789
793
  aria-busy={busy || undefined}
790
794
  data-mp-busy={busy ? "true" : undefined}
791
795
  {...knobProps.menuRow}
@@ -798,6 +802,7 @@ const DropdownMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(
798
802
  data-mp-font-weight="400"
799
803
  data-mp-ring-offset="0"
800
804
  {...highlightFill}
805
+ {...(busy ? menuBusyRow : undefined)}
801
806
  {...(selected ? checkedFill : undefined)}
802
807
  {...(explainedDisable ? { paddingVertical: "$1.5" } : {})}
803
808
  {...(props as Record<string, unknown>)}
@@ -832,6 +837,7 @@ const DropdownMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(
832
837
  >
833
838
  {icon ? (
834
839
  <View
840
+ {...(busy ? menuBusyDim : undefined)}
835
841
  flexShrink={0}
836
842
  alignItems="center"
837
843
  justifyContent="center"
@@ -869,6 +875,7 @@ const DropdownMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(
869
875
  fontWeight="400"
870
876
  numberOfLines={1}
871
877
  flexGrow={1}
878
+ {...(busy ? menuBusyDim : undefined)}
872
879
  flexShrink={1}
873
880
  >
874
881
  {children}
@@ -876,6 +883,7 @@ const DropdownMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(
876
883
  )}
877
884
  {shortcut && !destructive ? (
878
885
  <Text
886
+ {...(busy ? menuBusyDim : undefined)}
879
887
  {...knobProps.body}
880
888
  color={knobProps.textAccentColor}
881
889
  fontSize="$1"
@@ -1,7 +1,7 @@
1
1
  import { act, fireEvent, waitFor } from "@testing-library/react";
2
2
  import { renderWithProviders } from "@multiplatform.one/test-utils";
3
3
  import { useState } from "react";
4
- import { describe, expect, it, vi } from "vitest";
4
+ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
5
5
  import { Button, Text, YStack } from "tamagui";
6
6
  import { ContextMenu } from "../ContextMenu";
7
7
  import { DropdownMenu } from "./index";
@@ -93,6 +93,96 @@ describe.each(kinds)("LC-208 ACTION-SETTLES-IN-PLACE: $name", ({ render }) => {
93
93
  });
94
94
  });
95
95
 
96
+ /** The opacity an element is drawn at: its own times every ancestor's, up to and including `row`. */
97
+ function ink(el: HTMLElement, row: HTMLElement): number {
98
+ let value = 1;
99
+ for (let node: HTMLElement | null = el; node; node = node.parentElement) {
100
+ const own = Number.parseFloat(getComputedStyle(node).opacity || "1");
101
+ value *= Number.isNaN(own) ? 1 : own;
102
+ if (node === row) break;
103
+ }
104
+ return Math.round(value * 100) / 100;
105
+ }
106
+
107
+ const widths = [
108
+ { surface: "popover", width: 1280 },
109
+ { surface: "phone sheet", width: 390 },
110
+ ] as const;
111
+
112
+ describe.each(kinds.flatMap((kind) => widths.map((w) => ({ ...kind, ...w }))))(
113
+ "LC-21 async COMMIT row: $name as a $surface",
114
+ ({ render, width }) => {
115
+ let saved = 0;
116
+ beforeEach(() => {
117
+ saved = window.innerWidth;
118
+ Object.defineProperty(window, "innerWidth", {
119
+ configurable: true,
120
+ writable: true,
121
+ value: width,
122
+ });
123
+ });
124
+ afterEach(() => {
125
+ Object.defineProperty(window, "innerWidth", {
126
+ configurable: true,
127
+ writable: true,
128
+ value: saved,
129
+ });
130
+ });
131
+
132
+ it("shows pending as state: a disabled row, its label dimmed, its trailing spinner at full ink, no new words", async () => {
133
+ const work = deferred();
134
+ render(() => work.promise);
135
+ await waitFor(() => expect(menu()).toBeTruthy());
136
+
137
+ fireEvent.click(row("Archive"));
138
+ const busyRow = row("Archive");
139
+ expect(busyRow).toHaveAttribute("aria-busy", "true");
140
+ expect(busyRow).toHaveAttribute("aria-disabled", "true");
141
+ const spinner = busyRow.querySelector<HTMLElement>('[data-mp-menu-busy="true"]');
142
+ expect(spinner).toBeTruthy();
143
+ expect(busyRow.textContent?.trim()).toBe("Archive");
144
+
145
+ const label = Array.from(busyRow.querySelectorAll<HTMLElement>("[data-mp-busy-dim]")).find(
146
+ (el) => el.textContent === "Archive",
147
+ );
148
+ expect(label).toBeTruthy();
149
+ expect(ink(label as HTMLElement, busyRow)).toBe(0.5);
150
+ expect(ink(spinner as HTMLElement, busyRow)).toBe(1);
151
+
152
+ await act(async () => {
153
+ work.reject(new Error("The daemon refused"));
154
+ await work.promise.catch(() => {});
155
+ });
156
+ expect(row("Archive")).not.toHaveAttribute("aria-disabled");
157
+ expect(row("Archive").querySelector('[data-mp-menu-busy="true"]')).toBeNull();
158
+ expect(row("Archive").querySelector("[data-mp-busy-dim]")).toBeNull();
159
+ });
160
+
161
+ it("lands a refusal at the menu's foot on the menu's own surface, menu still open", async () => {
162
+ const work = deferred();
163
+ render(() => work.promise);
164
+ await waitFor(() => expect(menu()).toBeTruthy());
165
+
166
+ fireEvent.click(row("Archive"));
167
+ await act(async () => {
168
+ work.reject(new Error("The daemon refused"));
169
+ await work.promise.catch(() => {});
170
+ });
171
+
172
+ expect(menu()).toBeTruthy();
173
+ const footer = document.querySelector<HTMLElement>('[role="alert"][data-mp-menu-refusal]');
174
+ expect(footer?.textContent).toBe("The daemon refused");
175
+ expect(menu()?.parentElement?.contains(footer as Node)).toBe(true);
176
+ expect(
177
+ menu()!.compareDocumentPosition(footer as Node) & Node.DOCUMENT_POSITION_FOLLOWING,
178
+ ).toBeTruthy();
179
+ const style = getComputedStyle(footer as HTMLElement);
180
+ expect(["", "transparent", "rgba(0, 0, 0, 0)"]).toContain(style.backgroundColor);
181
+ expect(["", "0px", "0"]).toContain(style.borderRadius);
182
+ });
183
+ },
184
+ );
185
+
96
186
  describe("LC-199 ONE-OVERLAY-HOST: a 50-row list with row menus", () => {
97
187
  const rows = Array.from({ length: 50 }, (_, i) => `Row ${i + 1}`);
98
188
 
@@ -80,6 +80,21 @@ export function useSettlingSelect({
80
80
  return { busy, run };
81
81
  }
82
82
 
83
+ export const MENU_DISABLED_OPACITY = 0.5;
84
+
85
+ /**
86
+ * LC-21 (round 78): a busy row dims its label, icon and shortcut like a
87
+ * disabled row, while its trailing spinner keeps full ink because it is the
88
+ * state the row is showing (LC-118).
89
+ */
90
+ export const menuBusyDim = { opacity: MENU_DISABLED_OPACITY, "data-mp-busy-dim": "true" } as const;
91
+
92
+ export const menuBusyRow = {
93
+ cursor: "default",
94
+ hoverStyle: { backgroundColor: "transparent" },
95
+ pressStyle: { backgroundColor: "transparent" },
96
+ } as const;
97
+
83
98
  export function MenuBusyCue() {
84
99
  return <Spinner size="small" aria-hidden data-mp-menu-busy="true" />;
85
100
  }
@@ -0,0 +1,65 @@
1
+ import { HouseIcon } from "@phosphor-icons/react";
2
+ import { renderWithProviders } from "@multiplatform.one/test-utils";
3
+ import { act, cleanup, screen } from "@testing-library/react";
4
+ import { afterEach, describe, expect, it } from "vitest";
5
+ import { NotifyHost } from "../feedback/NotifyHost";
6
+ import { notify } from "../feedback/notify";
7
+ import { resetFeedback } from "../feedback/store";
8
+ import { AppShell } from "./AppShell";
9
+
10
+ afterEach(() => {
11
+ cleanup();
12
+ act(() => resetFeedback());
13
+ });
14
+
15
+ const destinations = [{ key: "/", label: "Home", icon: HouseIcon }];
16
+
17
+ describe("AppShell hosts notify() page feedback (FZ-9203, LC-84)", () => {
18
+ it("renders a page-scoped warning as a banner in the shell", () => {
19
+ renderWithProviders(
20
+ <AppShell destinations={destinations} path="/" onNavigate={() => {}} title="app">
21
+ <span>page</span>
22
+ </AppShell>,
23
+ );
24
+ act(() => {
25
+ notify({ severity: "warning", scope: "page", body: "Offline. Showing saved data." });
26
+ });
27
+ expect(screen.getByText("Offline. Showing saved data.")).toBeTruthy();
28
+ });
29
+
30
+ it("leaves a route that owns its chrome to host its own feedback", () => {
31
+ renderWithProviders(
32
+ <AppShell
33
+ destinations={destinations}
34
+ path="/desk"
35
+ onNavigate={() => {}}
36
+ title="app"
37
+ ownChrome={["/desk"]}
38
+ >
39
+ <NotifyHost toastViewport={false}>
40
+ <span>desk</span>
41
+ </NotifyHost>
42
+ </AppShell>,
43
+ );
44
+ act(() => {
45
+ notify({ severity: "error", scope: "page", body: "Desk failed to load." });
46
+ });
47
+ expect(screen.getAllByText("Desk failed to load.")).toHaveLength(1);
48
+ });
49
+ });
50
+
51
+ describe("NotifyHost renders each page banner once (FZ-9203)", () => {
52
+ it("the innermost mounted host renders and an outer host no-ops", () => {
53
+ renderWithProviders(
54
+ <NotifyHost toastViewport={false}>
55
+ <NotifyHost toastViewport={false}>
56
+ <span>page</span>
57
+ </NotifyHost>
58
+ </NotifyHost>,
59
+ );
60
+ act(() => {
61
+ notify({ severity: "error", scope: "page", body: "Saved copy is stale." });
62
+ });
63
+ expect(screen.getAllByText("Saved copy is stale.")).toHaveLength(1);
64
+ });
65
+ });
@@ -50,6 +50,7 @@ import { useTranslation } from "../shared/i18n";
50
50
  import type { TabBarIcon, TabBarItem } from "./TabBar";
51
51
  import { TabHost } from "./TabHost";
52
52
  import { useBottomChromeInset, useFloatingBarMounted } from "./bottomChrome";
53
+ import { NotifyHost } from "../feedback/NotifyHost";
53
54
 
54
55
  export interface AppShellDestination {
55
56
  /** The destination's route; a path under it keeps it selected. */
@@ -422,6 +423,7 @@ export function AppShell({
422
423
  />
423
424
  ) : null;
424
425
 
426
+ const hosted = <NotifyHost toastViewport={false}>{children}</NotifyHost>;
425
427
  const content = (
426
428
  <YStack
427
429
  role="main"
@@ -431,7 +433,7 @@ export function AppShell({
431
433
  data-testid="app-shell-content"
432
434
  >
433
435
  {compact ? (
434
- children
436
+ hosted
435
437
  ) : (
436
438
  <YStack
437
439
  flex={1}
@@ -441,7 +443,7 @@ export function AppShell({
441
443
  {...(isWeb ? null : { minHeight: 0 })}
442
444
  data-testid="app-shell-readable"
443
445
  >
444
- {children}
446
+ {hosted}
445
447
  </YStack>
446
448
  )}
447
449
  </YStack>
@@ -5,7 +5,7 @@
5
5
  * Blocking error/warning routes render `<ConfirmDialog>` (alertdialog) — W7.
6
6
  */
7
7
 
8
- import { useMemo, useSyncExternalStore, type ReactNode } from "react";
8
+ import { useEffect, useId, useMemo, useSyncExternalStore, type ReactNode } from "react";
9
9
  import { zIndex } from "@multiplatform.one/forms";
10
10
  import { useResolvedKnobs } from "@multiplatform.one/theme";
11
11
  import { useTranslation } from "../shared/i18n";
@@ -13,7 +13,16 @@ import { SizableText, type SizeTokens, YStack } from "tamagui";
13
13
  import { Alert, type AlertIntent } from "../Alert";
14
14
  import { ToastViewport, type ToastViewportProps } from "../Toast";
15
15
  import { ConfirmDialog } from "./ConfirmDialog";
16
- import { dismissFeedback, getFeedback, subscribeFeedback, type FeedbackEntry } from "./store";
16
+ import {
17
+ claimFeedbackHost,
18
+ dismissFeedback,
19
+ getFeedback,
20
+ getFeedbackHostOwner,
21
+ releaseFeedbackHost,
22
+ subscribeFeedback,
23
+ subscribeFeedbackHost,
24
+ type FeedbackEntry,
25
+ } from "./store";
17
26
 
18
27
  export interface NotifyHostProps {
19
28
  /** Mount ToastViewport (default true). Pass false if the app already mounts one. */
@@ -161,6 +170,17 @@ export function NotifyRegion({
161
170
  */
162
171
  export function NotifyHost({ toastViewport = true, children }: NotifyHostProps) {
163
172
  const all = useFeedbackEntries();
173
+ const hostId = useId();
174
+ useEffect(() => {
175
+ claimFeedbackHost(hostId);
176
+ return () => releaseFeedbackHost(hostId);
177
+ }, [hostId]);
178
+ const owner = useSyncExternalStore(
179
+ subscribeFeedbackHost,
180
+ getFeedbackHostOwner,
181
+ getFeedbackHostOwner,
182
+ );
183
+ const owns = owner === hostId;
164
184
  const banners = useMemo(() => all.filter((e) => e.surface === "banner"), [all]);
165
185
  const dialog = useMemo(() => all.find((e) => e.surface === "dialog"), [all]);
166
186
  const viewportProps =
@@ -168,9 +188,9 @@ export function NotifyHost({ toastViewport = true, children }: NotifyHostProps)
168
188
 
169
189
  return (
170
190
  <>
171
- <BannerStack entries={banners} />
191
+ {owns ? <BannerStack entries={banners} /> : null}
172
192
  {children}
173
- <FeedbackDialog entry={dialog} />
193
+ {owns ? <FeedbackDialog entry={dialog} /> : null}
174
194
  {viewportProps != null ? <ToastViewport {...viewportProps} /> : null}
175
195
  </>
176
196
  );
@@ -76,3 +76,41 @@ export function resetFeedback(): void {
76
76
  entries = [];
77
77
  emit();
78
78
  }
79
+
80
+ // One NotifyHost renders page banners and dialogs. The store is module-level,
81
+ // so nested hosts (an app shell around a desk shell) would show each banner
82
+ // twice. Effects run child-first, so the innermost host, the one closest to
83
+ // the content, claims first; the next claimant takes over when it unmounts.
84
+ let hostClaimants: string[] = [];
85
+ const hostListeners = new Set<() => void>();
86
+
87
+ function emitHost() {
88
+ for (const listener of hostListeners) listener();
89
+ }
90
+
91
+ /** @internal */
92
+ export function claimFeedbackHost(id: string): void {
93
+ if (hostClaimants.includes(id)) return;
94
+ hostClaimants = [...hostClaimants, id];
95
+ emitHost();
96
+ }
97
+
98
+ /** @internal */
99
+ export function releaseFeedbackHost(id: string): void {
100
+ if (!hostClaimants.includes(id)) return;
101
+ hostClaimants = hostClaimants.filter((claimant) => claimant !== id);
102
+ emitHost();
103
+ }
104
+
105
+ /** @internal */
106
+ export function getFeedbackHostOwner(): string | undefined {
107
+ return hostClaimants[0];
108
+ }
109
+
110
+ /** @internal */
111
+ export function subscribeFeedbackHost(listener: () => void): () => void {
112
+ hostListeners.add(listener);
113
+ return () => {
114
+ hostListeners.delete(listener);
115
+ };
116
+ }
@@ -0,0 +1,78 @@
1
+ /**
2
+ * FZ-7796: PageSection takes `size` like Alert, EmptyState and Tabs. Below
3
+ * `$true` a section packs tighter: the section gap steps from the row role
4
+ * ($3) to the small role ($2), the heading steps one font size down and a
5
+ * painted section's inset steps from $4 to $3. `$true` and above draw the
6
+ * page roles unchanged.
7
+ */
8
+ import { renderWithProviders } from "@multiplatform.one/test-utils";
9
+ import { cleanup, screen } from "@testing-library/react";
10
+ import { afterEach, expect, it } from "vitest";
11
+ import { PageSection } from "./page";
12
+
13
+ afterEach(cleanup);
14
+
15
+ function section(size?: "$2" | "$3" | "$true" | "$5", surface = false) {
16
+ renderWithProviders(
17
+ <PageSection title="Events" size={size} surface={surface}>
18
+ <span>row</span>
19
+ </PageSection>,
20
+ );
21
+ const frame = screen.getByTestId("page-section");
22
+ const heading = screen.getByText("Events");
23
+ return { frame, heading };
24
+ }
25
+
26
+ const classes = (node: Element) => node.className.split(/\s+/).sort().join(" ");
27
+
28
+ it("marks its size token", () => {
29
+ expect(section("$3").frame.getAttribute("data-size-token")).toBe("$3");
30
+ cleanup();
31
+ expect(section().frame.getAttribute("data-size-token")).toBe("$true");
32
+ });
33
+
34
+ it("draws the page roles at $true and above", () => {
35
+ const base = section();
36
+ const baseFrame = classes(base.frame);
37
+ const baseHeading = classes(base.heading);
38
+ cleanup();
39
+ const tall = section("$5");
40
+ expect(classes(tall.frame)).toBe(baseFrame);
41
+ expect(classes(tall.heading)).toBe(baseHeading);
42
+ });
43
+
44
+ it("packs a section below $true: a smaller gap and a smaller heading", () => {
45
+ const base = section();
46
+ const baseGap = base.frame.className.match(/_gap-\S+/)?.[0];
47
+ const baseSize = base.heading.className.match(/_fos-\S+/)?.[0];
48
+ cleanup();
49
+ const dense = section("$3");
50
+ expect(dense.frame.className.match(/_gap-\S+/)?.[0]).not.toBe(baseGap);
51
+ expect(dense.heading.className.match(/_fos-\S+/)?.[0]).not.toBe(baseSize);
52
+ expect(dense.frame.className).toMatch(/_gap-t-space-2|_gap-\$2/);
53
+ });
54
+
55
+ it("insets a dense painted section one space step tighter", () => {
56
+ renderWithProviders(
57
+ <PageSection title="Events" surface>
58
+ <span>base</span>
59
+ </PageSection>,
60
+ );
61
+ const basePad = screen
62
+ .getByText("base")
63
+ .closest("[class*='_pt-']")
64
+ ?.className.match(/_pt-\S+/)?.[0];
65
+ cleanup();
66
+ renderWithProviders(
67
+ <PageSection title="Events" size="$3" surface>
68
+ <span>dense</span>
69
+ </PageSection>,
70
+ );
71
+ const densePad = screen
72
+ .getByText("dense")
73
+ .closest("[class*='_pt-']")
74
+ ?.className.match(/_pt-\S+/)?.[0];
75
+ expect(basePad).toBeDefined();
76
+ expect(densePad).toBeDefined();
77
+ expect(densePad).not.toBe(basePad);
78
+ });
@@ -2,6 +2,8 @@ import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
2
2
  import { YStack } from "tamagui";
3
3
  import { PageSection } from "./page";
4
4
  import { Paragraph } from "../Text";
5
+ import { ListGroup, ListGroupItem } from "../views/ListGroup";
6
+ import { ListRow } from "../views/ListRow";
5
7
 
6
8
  const meta: Meta<typeof PageSection> = {
7
9
  title: "Components/PageSection",
@@ -20,6 +22,7 @@ const meta: Meta<typeof PageSection> = {
20
22
  description: { control: "text" },
21
23
  divider: { control: "boolean" },
22
24
  surface: { control: "boolean" },
25
+ size: { control: "select", options: ["$2", "$3", "$true", "$5"] },
23
26
  },
24
27
  args: {
25
28
  title: "Section title",
@@ -84,3 +87,44 @@ export const Nested: Story = {
84
87
  </PageSection>
85
88
  ),
86
89
  };
90
+
91
+ const eventGroups = [
92
+ { title: "Today", events: ["Backup finished", "Certificate renewed", "Node rebooted"] },
93
+ { title: "Yesterday", events: ["Deploy rolled out", "Disk at 80%"] },
94
+ { title: "Last week", events: ["Stack recreated", "Token rotated", "Backup finished"] },
95
+ ];
96
+
97
+ const EventGroups: Story["render"] = (args) => (
98
+ <YStack gap="$5">
99
+ {eventGroups.map((group) => (
100
+ <PageSection key={group.title} {...args} title={group.title} description={undefined}>
101
+ <ListGroup aria-label={group.title}>
102
+ {group.events.map((event, index) => (
103
+ <ListGroupItem key={`${group.title}-${index}`}>
104
+ <ListRow title={event} />
105
+ </ListGroupItem>
106
+ ))}
107
+ </ListGroup>
108
+ </PageSection>
109
+ ))}
110
+ </YStack>
111
+ );
112
+
113
+ export const EventGroupsDefault: Story = {
114
+ name: "Event Groups",
115
+ render: EventGroups,
116
+ };
117
+
118
+ export const EventGroupsDense: Story = {
119
+ name: "Event Groups Dense",
120
+ args: { size: "$3" },
121
+ parameters: {
122
+ docs: {
123
+ description: {
124
+ story:
125
+ "size below $true packs a section: the small gap role, a heading one font step down and a painted inset one space step in (FZ-7796).",
126
+ },
127
+ },
128
+ },
129
+ render: EventGroups,
130
+ };