@multiplatform.one/components 7.66.0 → 7.67.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 (505) 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.cjs +5 -0
  4. package/dist/cjs/Alert/index.native.js +5 -0
  5. package/dist/cjs/Alert/index.native.js.map +1 -1
  6. package/dist/cjs/AnimateHeight/index.native.js.map +1 -1
  7. package/dist/cjs/Avatar/getInitials.cjs +6 -34
  8. package/dist/cjs/Avatar/getInitials.native.js +8 -34
  9. package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
  10. package/dist/cjs/Avatar/index.cjs +28 -23
  11. package/dist/cjs/Avatar/index.native.js +30 -25
  12. package/dist/cjs/Avatar/index.native.js.map +1 -1
  13. package/dist/cjs/Badge/index.native.js.map +1 -1
  14. package/dist/cjs/Button.native.js.map +1 -1
  15. package/dist/cjs/Card.cjs +67 -11
  16. package/dist/cjs/Card.native.js +71 -11
  17. package/dist/cjs/Card.native.js.map +1 -1
  18. package/dist/cjs/CardFooter.native.js.map +1 -1
  19. package/dist/cjs/CardHeader.native.js.map +1 -1
  20. package/dist/cjs/Carousel/index.native.js +3 -3
  21. package/dist/cjs/Carousel/index.native.js.map +1 -1
  22. package/dist/cjs/Chip/index.cjs +54 -8
  23. package/dist/cjs/Chip/index.native.js +57 -10
  24. package/dist/cjs/Chip/index.native.js.map +1 -1
  25. package/dist/cjs/Collapsible.native.js.map +1 -1
  26. package/dist/cjs/ContextMenu/index.native.js.map +1 -1
  27. package/dist/cjs/CopyField/index.native.js.map +1 -1
  28. package/dist/cjs/Dialog.native.js.map +1 -1
  29. package/dist/cjs/DotIndicator/index.native.js.map +1 -1
  30. package/dist/cjs/DropdownMenu/index.cjs +5 -2
  31. package/dist/cjs/DropdownMenu/index.native.js +5 -2
  32. package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
  33. package/dist/cjs/DropdownMenu/menuSettle.native.js.map +1 -1
  34. package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
  35. package/dist/cjs/Heading.native.js.map +1 -1
  36. package/dist/cjs/Kbd/index.native.js.map +1 -1
  37. package/dist/cjs/Kbd/keys.native.js.map +1 -1
  38. package/dist/cjs/Lightbox/MediaControl.native.js +1 -1
  39. package/dist/cjs/Lightbox/MediaControl.native.js.map +1 -1
  40. package/dist/cjs/Lightbox/index.gnome.native.js.map +1 -1
  41. package/dist/cjs/Lightbox/index.native.js +1 -1
  42. package/dist/cjs/Lightbox/shared.native.js.map +1 -1
  43. package/dist/cjs/Lightbox/useLightbox.native.js.map +1 -1
  44. package/dist/cjs/Material/index.native.js.map +1 -1
  45. package/dist/cjs/Meter/index.native.js +1 -1
  46. package/dist/cjs/Meter/index.native.js.map +1 -1
  47. package/dist/cjs/Meter/meter.native.js.map +1 -1
  48. package/dist/cjs/OverflowRow/index.cjs +3 -1
  49. package/dist/cjs/OverflowRow/index.native.js +4 -2
  50. package/dist/cjs/OverflowRow/index.native.js.map +1 -1
  51. package/dist/cjs/Pagination.cjs +4 -4
  52. package/dist/cjs/Pagination.native.js +4 -4
  53. package/dist/cjs/Pagination.native.js.map +1 -1
  54. package/dist/cjs/Popover.native.js.map +1 -1
  55. package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
  56. package/dist/cjs/Quote/index.native.js.map +1 -1
  57. package/dist/cjs/ScrollView/revealFocusedField.native.js.map +1 -1
  58. package/dist/cjs/Separator/index.native.js.map +1 -1
  59. package/dist/cjs/Sheet.native.js.map +1 -1
  60. package/dist/cjs/SheetModal/SheetHeader.native.js.map +1 -1
  61. package/dist/cjs/SheetModal/SheetNavigation.cjs +104 -0
  62. package/dist/cjs/SheetModal/SheetNavigation.native.js +132 -0
  63. package/dist/cjs/SheetModal/SheetNavigation.native.js.map +1 -0
  64. package/dist/cjs/SheetModal/detents.native.js.map +1 -1
  65. package/dist/cjs/SheetModal/index.cjs +24 -16
  66. package/dist/cjs/SheetModal/index.native.js +86 -58
  67. package/dist/cjs/SheetModal/index.native.js.map +1 -1
  68. package/dist/cjs/SheetModal/useSheetFrameFocus.native.js.map +1 -1
  69. package/dist/cjs/Skeleton/index.native.js.map +1 -1
  70. package/dist/cjs/SkipLink/index.native.js.map +1 -1
  71. package/dist/cjs/SortableList/SortableHandle.native.js.map +1 -1
  72. package/dist/cjs/SortableList/index.native.js.map +1 -1
  73. package/dist/cjs/SortableList/useSortableRows.native.js.map +1 -1
  74. package/dist/cjs/Tabs/index.native.js +1 -1
  75. package/dist/cjs/Tabs/index.native.js.map +1 -1
  76. package/dist/cjs/Text.native.js.map +1 -1
  77. package/dist/cjs/ThemePresetPicker/index.native.js +2 -2
  78. package/dist/cjs/ThemePresetPicker/index.native.js.map +1 -1
  79. package/dist/cjs/Toast/index.native.js.map +1 -1
  80. package/dist/cjs/Toast/store.native.js.map +1 -1
  81. package/dist/cjs/Tooltip/nativePress.native.js.map +1 -1
  82. package/dist/cjs/Tooltip/tooltipShared.native.js.map +1 -1
  83. package/dist/cjs/TreeSelect/index.native.js +1 -1
  84. package/dist/cjs/TreeSelect/index.native.js.map +1 -1
  85. package/dist/cjs/TreeSelect/treeSelectModel.native.js.map +1 -1
  86. package/dist/cjs/Video/PlayerChrome.native.js.map +1 -1
  87. package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
  88. package/dist/cjs/Video/types.native.js.map +1 -1
  89. package/dist/cjs/Wheel/index.native.js.map +1 -1
  90. package/dist/cjs/Wizard/index.native.js +2 -2
  91. package/dist/cjs/Wizard/index.native.js.map +1 -1
  92. package/dist/cjs/actions/ActionBar.native.js.map +1 -1
  93. package/dist/cjs/actions/DangerSection.native.js.map +1 -1
  94. package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
  95. package/dist/cjs/actions/HeaderActions.native.js +2 -2
  96. package/dist/cjs/actions/HeaderActions.native.js.map +1 -1
  97. package/dist/cjs/actions/devWarn.native.js.map +1 -1
  98. package/dist/cjs/actions/index.native.js.map +1 -1
  99. package/dist/cjs/actions/severity.native.js.map +1 -1
  100. package/dist/cjs/appShell/BottomAccessory.native.js.map +1 -1
  101. package/dist/cjs/appShell/Dock.native.js.map +1 -1
  102. package/dist/cjs/appShell/ScopeMenu.native.js.map +1 -1
  103. package/dist/cjs/appShell/SettingsSplit.native.js +1 -1
  104. package/dist/cjs/appShell/SettingsSplit.native.js.map +1 -1
  105. package/dist/cjs/appShell/Springboard.native.js +1 -1
  106. package/dist/cjs/appShell/Springboard.native.js.map +1 -1
  107. package/dist/cjs/appShell/SystemBar.native.js.map +1 -1
  108. package/dist/cjs/appShell/TabBar.native.js +1 -1
  109. package/dist/cjs/appShell/TabBar.native.js.map +1 -1
  110. package/dist/cjs/appShell/TabHost.cjs +51 -0
  111. package/dist/cjs/appShell/TabHost.native.js +151 -0
  112. package/dist/cjs/appShell/TabHost.native.js.map +1 -0
  113. package/dist/cjs/appShell/appTile.native.js +1 -1
  114. package/dist/cjs/appShell/appTile.native.js.map +1 -1
  115. package/dist/cjs/appShell/bottomChrome.native.js.map +1 -1
  116. package/dist/cjs/appShell/index.cjs +2 -0
  117. package/dist/cjs/appShell/index.native.js +2 -0
  118. package/dist/cjs/appShell/index.native.js.map +1 -1
  119. package/dist/cjs/charts/Axis.native.js.map +1 -1
  120. package/dist/cjs/charts/BarChart.native.js.map +1 -1
  121. package/dist/cjs/charts/ChartDataView.native.js +1 -1
  122. package/dist/cjs/charts/ChartDataView.native.js.map +1 -1
  123. package/dist/cjs/charts/ChartSurface.native.js.map +1 -1
  124. package/dist/cjs/charts/LineChart.native.js.map +1 -1
  125. package/dist/cjs/charts/PieChart.native.js.map +1 -1
  126. package/dist/cjs/charts/Sparkline.native.js.map +1 -1
  127. package/dist/cjs/charts/accessibility.native.js.map +1 -1
  128. package/dist/cjs/charts/chartHeight.native.js.map +1 -1
  129. package/dist/cjs/charts/composeChart.native.js.map +1 -1
  130. package/dist/cjs/charts/index.native.js.map +1 -1
  131. package/dist/cjs/charts/math.native.js.map +1 -1
  132. package/dist/cjs/charts/series.native.js.map +1 -1
  133. package/dist/cjs/charts/svg.native.js.map +1 -1
  134. package/dist/cjs/charts/types.native.js.map +1 -1
  135. package/dist/cjs/charts/useChartTheme.native.js.map +1 -1
  136. package/dist/cjs/code/Code/index.native.js.map +1 -1
  137. package/dist/cjs/code/CodeBlock/index.native.js +7 -7
  138. package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
  139. package/dist/cjs/code/HighlightedCode/index.native.js.map +1 -1
  140. package/dist/cjs/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
  141. package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
  142. package/dist/cjs/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
  143. package/dist/cjs/code/Pre/index.native.js.map +1 -1
  144. package/dist/cjs/code/index.native.js +5 -5
  145. package/dist/cjs/code/index.native.js.map +1 -1
  146. package/dist/cjs/componentColors.native.js.map +1 -1
  147. package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
  148. package/dist/cjs/feedback/NotifyHost.native.js +2 -2
  149. package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
  150. package/dist/cjs/feedback/copy.native.js.map +1 -1
  151. package/dist/cjs/feedback/index.native.js.map +1 -1
  152. package/dist/cjs/feedback/notify.native.js.map +1 -1
  153. package/dist/cjs/feedback/route.native.js.map +1 -1
  154. package/dist/cjs/feedback/store.native.js.map +1 -1
  155. package/dist/cjs/formLayouts/FormLayouts.native.js +1 -1
  156. package/dist/cjs/formLayouts/FormLayouts.native.js.map +1 -1
  157. package/dist/cjs/formLayouts/PreferencePanel.native.js +2 -2
  158. package/dist/cjs/formLayouts/PreferencePanel.native.js.map +1 -1
  159. package/dist/cjs/formLayouts/index.native.js.map +1 -1
  160. package/dist/cjs/hooks/index.native.js +1 -1
  161. package/dist/cjs/hooks/index.native.js.map +1 -1
  162. package/dist/cjs/hooks/useClipboard.native.js.map +1 -1
  163. package/dist/cjs/hooks/useDocumentTitle.native.js.map +1 -1
  164. package/dist/cjs/hooks/useHoldCue.native.js.map +1 -1
  165. package/dist/cjs/icons/CheckRegular.native.js.map +1 -1
  166. package/dist/cjs/icons/MinusRegular.native.js.map +1 -1
  167. package/dist/cjs/icons/index.native.js.map +1 -1
  168. package/dist/cjs/icons/lucide.native.js.map +1 -1
  169. package/dist/cjs/icons/themed.native.js.map +1 -1
  170. package/dist/cjs/images/Image/ImageFrame.native.js +1 -1
  171. package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -1
  172. package/dist/cjs/images/Image/framing.native.js.map +1 -1
  173. package/dist/cjs/images/Image/index.native.js +1 -1
  174. package/dist/cjs/images/Image/mediaRadius.native.js.map +1 -1
  175. package/dist/cjs/images/Image/shared.native.js +1 -1
  176. package/dist/cjs/images/Image/shared.native.js.map +1 -1
  177. package/dist/cjs/images/Image/types.native.js.map +1 -1
  178. package/dist/cjs/images/index.native.js.map +1 -1
  179. package/dist/cjs/index.native.js +35 -35
  180. package/dist/cjs/index.native.js.map +1 -1
  181. package/dist/cjs/knobImmuneExports.native.js.map +1 -1
  182. package/dist/cjs/layouts/AsyncBoundary.cjs +87 -0
  183. package/dist/cjs/layouts/AsyncBoundary.native.js +93 -2
  184. package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
  185. package/dist/cjs/layouts/Debug/index.native.js.map +1 -1
  186. package/dist/cjs/layouts/EmptyState.native.js.map +1 -1
  187. package/dist/cjs/layouts/IdentityPlate.native.js.map +1 -1
  188. package/dist/cjs/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  189. package/dist/cjs/layouts/PageTemplates.cjs +1 -0
  190. package/dist/cjs/layouts/PageTemplates.native.js +2 -0
  191. package/dist/cjs/layouts/PageTemplates.native.js.map +1 -1
  192. package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
  193. package/dist/cjs/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  194. package/dist/cjs/layouts/StatusDot.native.js.map +1 -1
  195. package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
  196. package/dist/cjs/layouts/attachments.native.js +1 -1
  197. package/dist/cjs/layouts/attachments.native.js.map +1 -1
  198. package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
  199. package/dist/cjs/layouts/index.native.js +3 -3
  200. package/dist/cjs/layouts/index.native.js.map +1 -1
  201. package/dist/cjs/layouts/page.cjs +2 -11
  202. package/dist/cjs/layouts/page.native.js +8 -17
  203. package/dist/cjs/layouts/page.native.js.map +1 -1
  204. package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
  205. package/dist/cjs/layouts/screenScroll.native.js.map +1 -1
  206. package/dist/cjs/layouts/shellSidebarSlot.native.js.map +1 -1
  207. package/dist/cjs/layouts/sidebar.cjs +51 -21
  208. package/dist/cjs/layouts/sidebar.native.js +54 -24
  209. package/dist/cjs/layouts/sidebar.native.js.map +1 -1
  210. package/dist/cjs/layouts/tags.native.js +2 -2
  211. package/dist/cjs/layouts/tags.native.js.map +1 -1
  212. package/dist/cjs/layouts/timeline.native.js +2 -2
  213. package/dist/cjs/layouts/timeline.native.js.map +1 -1
  214. package/dist/cjs/layouts/toolbar.cjs +9 -6
  215. package/dist/cjs/layouts/toolbar.native.js +10 -7
  216. package/dist/cjs/layouts/toolbar.native.js.map +1 -1
  217. package/dist/cjs/shared/actionScan.native.js.map +1 -1
  218. package/dist/cjs/shared/i18n.native.js.map +1 -1
  219. package/dist/cjs/shared/restoreRetries.native.js.map +1 -1
  220. package/dist/cjs/shared/t.native.js.map +1 -1
  221. package/dist/cjs/shared/textRidesText.native.js.map +1 -1
  222. package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -1
  223. package/dist/cjs/surfaces.native.js +1 -1
  224. package/dist/cjs/surfaces.native.js.map +1 -1
  225. package/dist/cjs/tamagui.native.js +1 -1
  226. package/dist/cjs/tamagui.native.js.map +1 -1
  227. package/dist/cjs/testSetup.native.js.map +1 -1
  228. package/dist/cjs/utils/setTinted.native.js.map +1 -1
  229. package/dist/cjs/utils/unwrapText.native.js.map +1 -1
  230. package/dist/cjs/views/Calendar.native.js +1 -1
  231. package/dist/cjs/views/Calendar.native.js.map +1 -1
  232. package/dist/cjs/views/Dashboard.native.js +2 -2
  233. package/dist/cjs/views/Dashboard.native.js.map +1 -1
  234. package/dist/cjs/views/Gantt.native.js +2 -2
  235. package/dist/cjs/views/Gantt.native.js.map +1 -1
  236. package/dist/cjs/views/GanttDateGrip.native.js.map +1 -1
  237. package/dist/cjs/views/ImageGrid.cjs +55 -14
  238. package/dist/cjs/views/ImageGrid.native.js +60 -17
  239. package/dist/cjs/views/ImageGrid.native.js.map +1 -1
  240. package/dist/cjs/views/Kanban.native.js +1 -1
  241. package/dist/cjs/views/List.native.js.map +1 -1
  242. package/dist/cjs/views/ListGroup.native.js.map +1 -1
  243. package/dist/cjs/views/ListRow.native.js.map +1 -1
  244. package/dist/cjs/views/Matrix.native.js +2 -2
  245. package/dist/cjs/views/Matrix.native.js.map +1 -1
  246. package/dist/cjs/views/ReportBuilder.native.js +2 -2
  247. package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
  248. package/dist/cjs/views/ShortcutCard.native.js.map +1 -1
  249. package/dist/cjs/views/TreeView.native.js.map +1 -1
  250. package/dist/cjs/views/calendarMath.native.js.map +1 -1
  251. package/dist/cjs/views/ganttIntervals.native.js.map +1 -1
  252. package/dist/cjs/views/ganttMath.native.js.map +1 -1
  253. package/dist/cjs/views/index.cjs +2 -0
  254. package/dist/cjs/views/index.native.js +3 -1
  255. package/dist/cjs/views/index.native.js.map +1 -1
  256. package/dist/cjs/views/kanbanDnd.native.js.map +1 -1
  257. package/dist/cjs/views/matrixMath.native.js.map +1 -1
  258. package/dist/cjs/views/treeViewDnd.native.js.map +1 -1
  259. package/dist/cjs/views/treeViewLayout.native.js.map +1 -1
  260. package/dist/cjs/views/treeViewMotion.native.js.map +1 -1
  261. package/dist/cjs/views/treeViewReveal.native.js.map +1 -1
  262. package/dist/cjs/views/widgetChrome.native.js.map +1 -1
  263. package/dist/esm/Alert/index.mjs +5 -0
  264. package/dist/esm/Alert/index.mjs.map +1 -1
  265. package/dist/esm/Alert/index.native.js +5 -0
  266. package/dist/esm/Alert/index.native.js.map +1 -1
  267. package/dist/esm/Avatar/getInitials.mjs +7 -32
  268. package/dist/esm/Avatar/getInitials.mjs.map +1 -1
  269. package/dist/esm/Avatar/getInitials.native.js +9 -32
  270. package/dist/esm/Avatar/getInitials.native.js.map +1 -1
  271. package/dist/esm/Avatar/index.mjs +30 -24
  272. package/dist/esm/Avatar/index.mjs.map +1 -1
  273. package/dist/esm/Avatar/index.native.js +32 -26
  274. package/dist/esm/Avatar/index.native.js.map +1 -1
  275. package/dist/esm/Card.mjs +69 -13
  276. package/dist/esm/Card.mjs.map +1 -1
  277. package/dist/esm/Card.native.js +73 -13
  278. package/dist/esm/Card.native.js.map +1 -1
  279. package/dist/esm/Chip/index.mjs +54 -9
  280. package/dist/esm/Chip/index.mjs.map +1 -1
  281. package/dist/esm/Chip/index.native.js +57 -11
  282. package/dist/esm/Chip/index.native.js.map +1 -1
  283. package/dist/esm/DropdownMenu/index.mjs +5 -2
  284. package/dist/esm/DropdownMenu/index.mjs.map +1 -1
  285. package/dist/esm/DropdownMenu/index.native.js +5 -2
  286. package/dist/esm/DropdownMenu/index.native.js.map +1 -1
  287. package/dist/esm/OverflowRow/index.mjs +4 -2
  288. package/dist/esm/OverflowRow/index.mjs.map +1 -1
  289. package/dist/esm/OverflowRow/index.native.js +4 -2
  290. package/dist/esm/OverflowRow/index.native.js.map +1 -1
  291. package/dist/esm/Pagination.mjs +4 -4
  292. package/dist/esm/Pagination.mjs.map +1 -1
  293. package/dist/esm/Pagination.native.js +3 -3
  294. package/dist/esm/Pagination.native.js.map +1 -1
  295. package/dist/esm/SheetModal/SheetNavigation.mjs +79 -0
  296. package/dist/esm/SheetModal/SheetNavigation.mjs.map +1 -0
  297. package/dist/esm/SheetModal/SheetNavigation.native.js +104 -0
  298. package/dist/esm/SheetModal/SheetNavigation.native.js.map +1 -0
  299. package/dist/esm/SheetModal/index.mjs +25 -17
  300. package/dist/esm/SheetModal/index.mjs.map +1 -1
  301. package/dist/esm/SheetModal/index.native.js +88 -60
  302. package/dist/esm/SheetModal/index.native.js.map +1 -1
  303. package/dist/esm/appShell/TabBar.mjs.map +1 -1
  304. package/dist/esm/appShell/TabHost.mjs +25 -0
  305. package/dist/esm/appShell/TabHost.mjs.map +1 -0
  306. package/dist/esm/appShell/TabHost.native.js +118 -0
  307. package/dist/esm/appShell/TabHost.native.js.map +1 -0
  308. package/dist/esm/appShell/index.mjs +2 -1
  309. package/dist/esm/appShell/index.mjs.map +1 -1
  310. package/dist/esm/appShell/index.native.js +2 -1
  311. package/dist/esm/appShell/index.native.js.map +1 -1
  312. package/dist/esm/layouts/AsyncBoundary.mjs +87 -0
  313. package/dist/esm/layouts/AsyncBoundary.mjs.map +1 -1
  314. package/dist/esm/layouts/AsyncBoundary.native.js +91 -0
  315. package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
  316. package/dist/esm/layouts/PageTemplates.mjs +2 -1
  317. package/dist/esm/layouts/PageTemplates.mjs.map +1 -1
  318. package/dist/esm/layouts/PageTemplates.native.js +3 -1
  319. package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
  320. package/dist/esm/layouts/page.mjs +2 -11
  321. package/dist/esm/layouts/page.mjs.map +1 -1
  322. package/dist/esm/layouts/page.native.js +6 -15
  323. package/dist/esm/layouts/page.native.js.map +1 -1
  324. package/dist/esm/layouts/sidebar.mjs +51 -21
  325. package/dist/esm/layouts/sidebar.mjs.map +1 -1
  326. package/dist/esm/layouts/sidebar.native.js +53 -23
  327. package/dist/esm/layouts/sidebar.native.js.map +1 -1
  328. package/dist/esm/layouts/toolbar.mjs +9 -6
  329. package/dist/esm/layouts/toolbar.mjs.map +1 -1
  330. package/dist/esm/layouts/toolbar.native.js +9 -6
  331. package/dist/esm/layouts/toolbar.native.js.map +1 -1
  332. package/dist/esm/views/ImageGrid.mjs +53 -14
  333. package/dist/esm/views/ImageGrid.mjs.map +1 -1
  334. package/dist/esm/views/ImageGrid.native.js +56 -15
  335. package/dist/esm/views/ImageGrid.native.js.map +1 -1
  336. package/dist/esm/views/index.mjs +2 -2
  337. package/dist/esm/views/index.mjs.map +1 -1
  338. package/dist/esm/views/index.native.js +2 -2
  339. package/dist/esm/views/index.native.js.map +1 -1
  340. package/dist/jsx/Alert/index.mjs +5 -0
  341. package/dist/jsx/Alert/index.mjs.map +1 -1
  342. package/dist/jsx/Alert/index.native.js +5 -0
  343. package/dist/jsx/Alert/index.native.js.map +1 -1
  344. package/dist/jsx/Avatar/getInitials.mjs +7 -32
  345. package/dist/jsx/Avatar/getInitials.mjs.map +1 -1
  346. package/dist/jsx/Avatar/getInitials.native.js +8 -34
  347. package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
  348. package/dist/jsx/Avatar/index.mjs +30 -24
  349. package/dist/jsx/Avatar/index.mjs.map +1 -1
  350. package/dist/jsx/Avatar/index.native.js +30 -25
  351. package/dist/jsx/Avatar/index.native.js.map +1 -1
  352. package/dist/jsx/Card.mjs +69 -13
  353. package/dist/jsx/Card.mjs.map +1 -1
  354. package/dist/jsx/Card.native.js +71 -11
  355. package/dist/jsx/Card.native.js.map +1 -1
  356. package/dist/jsx/Chip/index.mjs +54 -9
  357. package/dist/jsx/Chip/index.mjs.map +1 -1
  358. package/dist/jsx/Chip/index.native.js +57 -10
  359. package/dist/jsx/Chip/index.native.js.map +1 -1
  360. package/dist/jsx/DropdownMenu/index.mjs +5 -2
  361. package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
  362. package/dist/jsx/DropdownMenu/index.native.js +5 -2
  363. package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
  364. package/dist/jsx/OverflowRow/index.mjs +4 -2
  365. package/dist/jsx/OverflowRow/index.mjs.map +1 -1
  366. package/dist/jsx/OverflowRow/index.native.js +3 -1
  367. package/dist/jsx/OverflowRow/index.native.js.map +1 -1
  368. package/dist/jsx/Pagination.mjs +4 -4
  369. package/dist/jsx/Pagination.mjs.map +1 -1
  370. package/dist/jsx/Pagination.native.js +3 -3
  371. package/dist/jsx/Pagination.native.js.map +1 -1
  372. package/dist/jsx/SheetModal/SheetNavigation.mjs +79 -0
  373. package/dist/jsx/SheetModal/SheetNavigation.mjs.map +1 -0
  374. package/dist/jsx/SheetModal/SheetNavigation.native.js +132 -0
  375. package/dist/jsx/SheetModal/SheetNavigation.native.js.map +1 -0
  376. package/dist/jsx/SheetModal/index.mjs +25 -17
  377. package/dist/jsx/SheetModal/index.mjs.map +1 -1
  378. package/dist/jsx/SheetModal/index.native.js +86 -58
  379. package/dist/jsx/SheetModal/index.native.js.map +1 -1
  380. package/dist/jsx/appShell/TabBar.mjs.map +1 -1
  381. package/dist/jsx/appShell/TabBar.native.js.map +1 -1
  382. package/dist/jsx/appShell/TabHost.mjs +25 -0
  383. package/dist/jsx/appShell/TabHost.mjs.map +1 -0
  384. package/dist/jsx/appShell/TabHost.native.js +151 -0
  385. package/dist/jsx/appShell/TabHost.native.js.map +1 -0
  386. package/dist/jsx/appShell/index.mjs +2 -1
  387. package/dist/jsx/appShell/index.mjs.map +1 -1
  388. package/dist/jsx/appShell/index.native.js +2 -0
  389. package/dist/jsx/appShell/index.native.js.map +1 -1
  390. package/dist/jsx/layouts/AsyncBoundary.mjs +87 -0
  391. package/dist/jsx/layouts/AsyncBoundary.mjs.map +1 -1
  392. package/dist/jsx/layouts/AsyncBoundary.native.js +91 -0
  393. package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
  394. package/dist/jsx/layouts/PageTemplates.mjs +2 -1
  395. package/dist/jsx/layouts/PageTemplates.mjs.map +1 -1
  396. package/dist/jsx/layouts/PageTemplates.native.js +2 -0
  397. package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
  398. package/dist/jsx/layouts/page.mjs +2 -11
  399. package/dist/jsx/layouts/page.mjs.map +1 -1
  400. package/dist/jsx/layouts/page.native.js +6 -15
  401. package/dist/jsx/layouts/page.native.js.map +1 -1
  402. package/dist/jsx/layouts/sidebar.mjs +51 -21
  403. package/dist/jsx/layouts/sidebar.mjs.map +1 -1
  404. package/dist/jsx/layouts/sidebar.native.js +53 -23
  405. package/dist/jsx/layouts/sidebar.native.js.map +1 -1
  406. package/dist/jsx/layouts/toolbar.mjs +9 -6
  407. package/dist/jsx/layouts/toolbar.mjs.map +1 -1
  408. package/dist/jsx/layouts/toolbar.native.js +9 -6
  409. package/dist/jsx/layouts/toolbar.native.js.map +1 -1
  410. package/dist/jsx/views/ImageGrid.mjs +53 -14
  411. package/dist/jsx/views/ImageGrid.mjs.map +1 -1
  412. package/dist/jsx/views/ImageGrid.native.js +58 -15
  413. package/dist/jsx/views/ImageGrid.native.js.map +1 -1
  414. package/dist/jsx/views/index.mjs +2 -2
  415. package/dist/jsx/views/index.mjs.map +1 -1
  416. package/dist/jsx/views/index.native.js +2 -0
  417. package/dist/jsx/views/index.native.js.map +1 -1
  418. package/package.json +13 -9
  419. package/src/Alert/Alert.spec.tsx +22 -0
  420. package/src/Alert/index.tsx +5 -0
  421. package/src/Avatar/Avatar.ink.spec.tsx +74 -0
  422. package/src/Avatar/Avatar.spec.tsx +35 -8
  423. package/src/Avatar/getInitials.ts +12 -30
  424. package/src/Avatar/index.tsx +37 -22
  425. package/src/Card.spec.tsx +45 -0
  426. package/src/Card.tsx +57 -18
  427. package/src/Chip/Chip.spec.tsx +72 -1
  428. package/src/Chip/index.tsx +86 -7
  429. package/src/DropdownMenu/DropdownMenu.avatarTrigger.spec.tsx +62 -0
  430. package/src/DropdownMenu/DropdownMenu.stories.tsx +45 -0
  431. package/src/DropdownMenu/index.tsx +7 -3
  432. package/src/OverflowRow/OverflowRow.native.spec.tsx +17 -2
  433. package/src/OverflowRow/index.tsx +6 -2
  434. package/src/Pagination.tsx +10 -6
  435. package/src/SheetModal/SheetModal.fill.spec.tsx +1 -1
  436. package/src/SheetModal/SheetModal.menus.spec.tsx +125 -26
  437. package/src/SheetModal/SheetModal.native.spec.tsx +35 -0
  438. package/src/SheetModal/SheetModal.regularWidth.native.spec.tsx +117 -0
  439. package/src/SheetModal/SheetModal.stories.tsx +16 -2
  440. package/src/SheetModal/SheetNavigation.tsx +93 -0
  441. package/src/SheetModal/index.native.tsx +108 -69
  442. package/src/SheetModal/index.tsx +33 -20
  443. package/src/Tabs/Tabs.stories.tsx +2 -2
  444. package/src/Tooltip/Tooltip.spec.tsx +2 -2
  445. package/src/appShell/TabBar.tsx +5 -0
  446. package/src/appShell/TabHost.native.spec.tsx +188 -0
  447. package/src/appShell/TabHost.native.tsx +154 -0
  448. package/src/appShell/TabHost.tsx +36 -0
  449. package/src/appShell/index.ts +1 -0
  450. package/src/icons/nativeIconInk.dark.spec.tsx +159 -0
  451. package/src/layouts/AsyncBoundary.spec.tsx +24 -1
  452. package/src/layouts/AsyncBoundary.stories.tsx +8 -1
  453. package/src/layouts/AsyncBoundary.tsx +71 -2
  454. package/src/layouts/AsyncSkeleton.stories.tsx +9 -1
  455. package/src/layouts/PageTemplates.spec.tsx +28 -1
  456. package/src/layouts/PageTemplates.tsx +8 -1
  457. package/src/layouts/Sidebar.spec.tsx +48 -0
  458. package/src/layouts/layouts.spec.tsx +33 -0
  459. package/src/layouts/page.tsx +5 -12
  460. package/src/layouts/pageChrome.phone.spec.tsx +11 -5
  461. package/src/layouts/sidebar.tsx +84 -31
  462. package/src/layouts/toolbar.tsx +16 -2
  463. package/src/overlayElevation.spec.tsx +3 -4
  464. package/src/views/ImageGrid.photos.spec.tsx +46 -0
  465. package/src/views/ImageGrid.tsx +52 -27
  466. package/src/views/index.ts +8 -1
  467. package/types/Alert/index.d.ts.map +1 -1
  468. package/types/Avatar/getInitials.d.ts +3 -27
  469. package/types/Avatar/getInitials.d.ts.map +1 -1
  470. package/types/Avatar/index.d.ts +15 -2
  471. package/types/Avatar/index.d.ts.map +1 -1
  472. package/types/Card.d.ts +15 -1
  473. package/types/Card.d.ts.map +1 -1
  474. package/types/Chip/index.d.ts +38 -3
  475. package/types/Chip/index.d.ts.map +1 -1
  476. package/types/DropdownMenu/index.d.ts +2 -1
  477. package/types/DropdownMenu/index.d.ts.map +1 -1
  478. package/types/OverflowRow/index.d.ts.map +1 -1
  479. package/types/Pagination.d.ts +4 -1
  480. package/types/Pagination.d.ts.map +1 -1
  481. package/types/SheetModal/SheetNavigation.d.ts +14 -0
  482. package/types/SheetModal/SheetNavigation.d.ts.map +1 -0
  483. package/types/SheetModal/index.d.ts.map +1 -1
  484. package/types/SheetModal/index.native.d.ts +6 -0
  485. package/types/SheetModal/index.native.d.ts.map +1 -1
  486. package/types/appShell/TabBar.d.ts +8 -0
  487. package/types/appShell/TabBar.d.ts.map +1 -1
  488. package/types/appShell/TabHost.d.ts +23 -0
  489. package/types/appShell/TabHost.d.ts.map +1 -0
  490. package/types/appShell/TabHost.native.d.ts +56 -0
  491. package/types/appShell/TabHost.native.d.ts.map +1 -0
  492. package/types/appShell/index.d.ts +1 -0
  493. package/types/appShell/index.d.ts.map +1 -1
  494. package/types/layouts/AsyncBoundary.d.ts +13 -2
  495. package/types/layouts/AsyncBoundary.d.ts.map +1 -1
  496. package/types/layouts/PageTemplates.d.ts.map +1 -1
  497. package/types/layouts/page.d.ts.map +1 -1
  498. package/types/layouts/sidebar.d.ts +25 -3
  499. package/types/layouts/sidebar.d.ts.map +1 -1
  500. package/types/layouts/toolbar.d.ts +9 -0
  501. package/types/layouts/toolbar.d.ts.map +1 -1
  502. package/types/views/ImageGrid.d.ts +19 -1
  503. package/types/views/ImageGrid.d.ts.map +1 -1
  504. package/types/views/index.d.ts +1 -1
  505. package/types/views/index.d.ts.map +1 -1
@@ -4,6 +4,8 @@ import { act } from "@testing-library/react";
4
4
  import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
5
5
  import { Animated, PanResponder } from "react-native";
6
6
  import { Text } from "tamagui";
7
+ import { useSheetNavigation } from "@multiplatform.one/forms";
8
+ import { fireEvent } from "@testing-library/react";
7
9
  import { SheetModal } from "./index.native";
8
10
 
9
11
  const modal = vi.hoisted(() => ({ onShow: undefined as undefined | (() => void) }));
@@ -166,3 +168,36 @@ describe("SheetModal native presentation lifecycle", () => {
166
168
  );
167
169
  });
168
170
  });
171
+
172
+ describe("SheetModal native navigation stack (FZ-7830 round 3)", () => {
173
+ function Pusher() {
174
+ const store = useSheetNavigation();
175
+ return (
176
+ <Text
177
+ onPress={() => store?.push({ id: "region", title: "Region", content: <Text>Tokyo</Text> })}
178
+ >
179
+ Region row
180
+ </Text>
181
+ );
182
+ }
183
+
184
+ it("shows a pushed page in place of the body with its title and Back, and Back pops it", () => {
185
+ const result = renderWithProviders(
186
+ <SheetModal open onOpenChange={onOpenChange} header={<Text>keycloak</Text>}>
187
+ <Pusher />
188
+ </SheetModal>,
189
+ );
190
+ expect(result.queryByTestId("sheet-modal-page")).toBeNull();
191
+ act(() => {
192
+ fireEvent.click(result.getByText("Region row"));
193
+ });
194
+ const page = result.getByTestId("sheet-modal-page");
195
+ expect(page.textContent).toContain("Region");
196
+ expect(page.textContent).toContain("Tokyo");
197
+ expect(result.getByText("Region row").closest("[aria-hidden='true']")).toBeTruthy();
198
+ act(() => {
199
+ fireEvent.click(result.getByRole("button", { name: "Back" }));
200
+ });
201
+ expect(result.queryByTestId("sheet-modal-page")).toBeNull();
202
+ });
203
+ });
@@ -0,0 +1,117 @@
1
+ /**
2
+ * FZ-8116 (LC-266): at regular width (an iPad, a wide Android window) the
3
+ * native SheetModal is the compact sheet as a panel: bottom-pinned, slid up
4
+ * with its grabber, capped at SHEET_PANEL_WIDTH and centred, top corners
5
+ * rounded, on the elevated overlay surface. A tap on the scrim dismisses. At
6
+ * compact width (iPhone, Slide Over) it stays the full-width bottom sheet.
7
+ */
8
+ import { SHEET_PANEL_WIDTH } from "@multiplatform.one/forms";
9
+ import { renderWithProviders } from "@multiplatform.one/test-utils";
10
+ import { OVERLAY_BREAKPOINT } from "@multiplatform.one/theme";
11
+ import { act, cleanup, fireEvent } from "@testing-library/react";
12
+ import { afterEach, describe, expect, it, vi } from "vitest";
13
+ import { Text } from "tamagui";
14
+ import type { SheetModalProps } from "./index";
15
+ import { SheetModal } from "./index.native";
16
+
17
+ const screen = vi.hoisted(() => ({ width: 820, height: 1180 }));
18
+ vi.mock("react-native-web", async (importOriginal) => ({
19
+ ...(await importOriginal<typeof import("react-native")>()),
20
+ ActionSheetIOS: undefined,
21
+ Modal: ({ children }: { children: import("react").ReactNode }) => children,
22
+ useWindowDimensions: () => ({ ...screen, scale: 2, fontScale: 1 }),
23
+ }));
24
+
25
+ afterEach(() => {
26
+ cleanup();
27
+ screen.width = 820;
28
+ screen.height = 1180;
29
+ });
30
+
31
+ function open(props: Partial<SheetModalProps> = {}) {
32
+ const view = renderWithProviders(
33
+ <SheetModal open onOpenChange={() => {}} {...props}>
34
+ <Text>Settings</Text>
35
+ </SheetModal>,
36
+ );
37
+ const frame = view.getByTestId("sheet-modal-frame");
38
+ const surface = view.getByTestId("sheet-modal-surface");
39
+ const container = frame.parentElement as HTMLElement;
40
+ return { view, frame, surface, container };
41
+ }
42
+
43
+ function px(value: string) {
44
+ return Number.parseFloat(value);
45
+ }
46
+
47
+ describe("SheetModal native at regular width (FZ-8116)", () => {
48
+ it("is a bottom panel, centred and capped at the panel width", () => {
49
+ const { frame, container } = open();
50
+ expect(frame.style.width).toBe(`${SHEET_PANEL_WIDTH}px`);
51
+ expect(container.style.justifyContent).toBe("flex-end");
52
+ expect(container.style.alignItems).toBe("center");
53
+ });
54
+
55
+ it("keeps the grabber, squares its bottom corners and leaves the bottom edge open", () => {
56
+ const { view, surface } = open();
57
+ expect(view.queryByTestId("sheet-modal-grabber")).not.toBeNull();
58
+ expect(surface.getAttribute("data-sheet-form")).toBe("panel");
59
+ expect(String(surface.className)).toMatch(/\b_bbw-0px\b/);
60
+ expect(String(surface.className)).toMatch(/\b_bblr-0px\b/);
61
+ expect(String(surface.className)).toMatch(/\b_bbrr-0px\b/);
62
+ expect(String(surface.className)).not.toMatch(/\b_btlr-0px\b/);
63
+ });
64
+
65
+ it("keeps its shadow: an inner view clips, not the surface", () => {
66
+ const { view, surface } = open();
67
+ const clip = view.getByTestId("sheet-modal-clip");
68
+ expect(surface.contains(clip)).toBe(true);
69
+ expect(surface.className).not.toContain("_ox-hidden");
70
+ expect(clip.className).toContain("_ox-hidden");
71
+ });
72
+
73
+ it("grows to its content up to the large detent, not a form-sheet height", () => {
74
+ const { frame } = open({ fill: true });
75
+ expect(px(frame.style.maxHeight)).toBeGreaterThan(620);
76
+ expect(px(frame.style.maxHeight)).toBeLessThanOrEqual(Math.round(1180 * 0.85));
77
+ });
78
+
79
+ it("spans a regular window narrower than the cap", () => {
80
+ screen.width = OVERLAY_BREAKPOINT + 1;
81
+ const { frame } = open();
82
+ expect(px(frame.style.width)).toBe(Math.min(SHEET_PANEL_WIDTH, OVERLAY_BREAKPOINT + 1));
83
+ });
84
+
85
+ it("dismisses on a tap on the scrim beside the panel", () => {
86
+ vi.useFakeTimers();
87
+ try {
88
+ const onOpenChange = vi.fn();
89
+ const view = renderWithProviders(
90
+ <SheetModal open onOpenChange={onOpenChange}>
91
+ <Text>Settings</Text>
92
+ </SheetModal>,
93
+ );
94
+ act(() => {
95
+ vi.runAllTimers();
96
+ });
97
+ fireEvent.click(view.getByRole("button", { name: "Close" }));
98
+ expect(onOpenChange).toHaveBeenCalledWith(false);
99
+ } finally {
100
+ vi.useRealTimers();
101
+ }
102
+ });
103
+
104
+ it.each([
105
+ ["an iPhone", 390, 844],
106
+ ["iPad Slide Over", 320, 1180],
107
+ ])("stays the full-width bottom sheet on %s", (_name, width, height) => {
108
+ screen.width = width;
109
+ screen.height = height;
110
+ const { view, frame, surface, container } = open();
111
+ expect(frame.style.width).toBe("");
112
+ expect(container.style.justifyContent).toBe("flex-end");
113
+ expect(container.style.alignItems).toBe("");
114
+ expect(view.queryByTestId("sheet-modal-grabber")).not.toBeNull();
115
+ expect(surface.getAttribute("data-sheet-form")).toBe("bottom");
116
+ });
117
+ });
@@ -152,6 +152,11 @@ const regionOptions = [
152
152
  "Tokyo",
153
153
  ].map((label) => ({ label, value: label.toLowerCase() }));
154
154
 
155
+ const restartOptions = ["Always", "On failure", "Unless stopped", "Never"].map((label) => ({
156
+ label,
157
+ value: label.toLowerCase().replace(/ /g, "-"),
158
+ }));
159
+
155
160
  const noop = () => {};
156
161
 
157
162
  /** Stop and Restart: the stack's frequent actions, shown, never hidden (LC-262). */
@@ -172,13 +177,16 @@ const pageActions = [
172
177
  * FZ-7830, LC-262 DIRECT-ACTIONS. The sheet's frequent actions are icon
173
178
  * buttons in its header, Uninstall sits in a Danger section at the end with
174
179
  * its confirm, and the five-option Exposure lays out inline with its glyphs.
175
- * The eight-option Region stays a menu over its field. On the page, past three
176
- * actions "…" holds the rest, and the short Select opens over its trigger.
180
+ * Round 3: the eight-option Region is a Settings row that pushes its
181
+ * checkmark list inside the sheet, and the four-option Restart policy opens a
182
+ * menu beside its field, never over it. On the page, past three actions "…"
183
+ * holds the rest, and the short Select opens over its trigger.
177
184
  */
178
185
  function MenusHarness({ startOpen = false }: { startOpen?: boolean }) {
179
186
  const [open, setOpen] = useState(startOpen);
180
187
  const [exposure, setExposure] = useState("tailnet");
181
188
  const [region, setRegion] = useState("helsinki");
189
+ const [restart, setRestart] = useState("always");
182
190
  return (
183
191
  <FixtureStack minHeight={480} gap="$3" padding="$4">
184
192
  <XStack alignItems="center" justifyContent="space-between" gap="$3">
@@ -211,6 +219,12 @@ function MenusHarness({ startOpen = false }: { startOpen?: boolean }) {
211
219
  value={region}
212
220
  onValueChange={(value) => setRegion(value as string)}
213
221
  />
222
+ <Select
223
+ label="Restart policy"
224
+ options={restartOptions}
225
+ value={restart}
226
+ onValueChange={(value) => setRestart(value as string)}
227
+ />
214
228
  <DangerSection>
215
229
  <DestructiveAction verb="Uninstall" noun="keycloak" severity="medium" onAction={noop} />
216
230
  </DangerSection>
@@ -0,0 +1,93 @@
1
+ import {
2
+ createSheetNavigationStore,
3
+ SheetNavigationProvider,
4
+ useSheetPages,
5
+ type SheetNavigationStore,
6
+ } from "@multiplatform.one/forms";
7
+ import { transitionProps, useResolvedKnobs } from "@multiplatform.one/theme";
8
+ import { useEffect, useState, type ReactNode } from "react";
9
+ import { ScrollView, SizableText, XStack, YStack } from "tamagui";
10
+ import { PageBackButton } from "../layouts/page";
11
+
12
+ /**
13
+ * The sheet's navigation stack (LC-262, FZ-7830 round 3): a pushed page, such
14
+ * as a long choice list, takes the sheet's place with a back control and its
15
+ * title, sliding in from the trailing edge. The root stays mounted beneath it,
16
+ * so the field that pushed the page keeps its state.
17
+ */
18
+ export function SheetNavigation({
19
+ open,
20
+ root,
21
+ gap,
22
+ fill,
23
+ }: {
24
+ open: boolean;
25
+ root: ReactNode;
26
+ gap?: string | number;
27
+ fill?: boolean;
28
+ }) {
29
+ const [store] = useState<SheetNavigationStore>(createSheetNavigationStore);
30
+ const pages = useSheetPages(store);
31
+ const top = pages.at(-1);
32
+
33
+ useEffect(() => {
34
+ if (!open) for (const page of store.getPages()) store.remove(page.id);
35
+ }, [open, store]);
36
+
37
+ return (
38
+ <SheetNavigationProvider value={store}>
39
+ <YStack
40
+ gap={gap}
41
+ flexShrink={1}
42
+ minHeight={0}
43
+ {...(fill ? { flex: 1 } : null)}
44
+ display={top ? "none" : "flex"}
45
+ aria-hidden={top ? true : undefined}
46
+ >
47
+ {root}
48
+ </YStack>
49
+ {top ? (
50
+ <SheetPageView key={top.id} title={top.title} onBack={() => store.pop()}>
51
+ {top.content}
52
+ </SheetPageView>
53
+ ) : null}
54
+ </SheetNavigationProvider>
55
+ );
56
+ }
57
+
58
+ function SheetPageView({
59
+ title,
60
+ onBack,
61
+ children,
62
+ }: {
63
+ title: string;
64
+ onBack: () => void;
65
+ children: ReactNode;
66
+ }) {
67
+ const { knobProps } = useResolvedKnobs();
68
+ return (
69
+ <YStack
70
+ testID="sheet-modal-page"
71
+ gap={knobProps.gap.gap}
72
+ flexShrink={1}
73
+ minHeight={0}
74
+ {...transitionProps(knobProps.motion.slide)}
75
+ enterStyle={{ x: 16, opacity: 0 }}
76
+ >
77
+ <XStack alignItems="center" gap="$2" testID="sheet-modal-page-bar">
78
+ <PageBackButton onPress={onBack} />
79
+ <SizableText {...knobProps.heading} role="heading" flex={1} numberOfLines={1}>
80
+ {title}
81
+ </SizableText>
82
+ </XStack>
83
+ <ScrollView
84
+ flexShrink={1}
85
+ minHeight={0}
86
+ keyboardShouldPersistTaps="handled"
87
+ testID="sheet-modal-page-scroll"
88
+ >
89
+ {children}
90
+ </ScrollView>
91
+ </YStack>
92
+ );
93
+ }
@@ -8,11 +8,23 @@
8
8
  * Apple / gorhom anatomy: grabber, themed surface, top-only radius, backdrop
9
9
  * tap + Android back + VoiceOver escape dismiss, keyboard avoiding, content
10
10
  * height with a large-detent cap. LC-71: the frame is not a control.
11
+ *
12
+ * Regular width (FZ-8116, LC-266): an iPad or any window wider than
13
+ * OVERLAY_BREAKPOINT gets the same sheet as a panel: it slides up from the
14
+ * bottom edge with its grabber and detents, capped at SHEET_PANEL_WIDTH and
15
+ * centred, on the elevated overlay surface. Drover's composer sheets set the
16
+ * shape. A tap on the scrim either side of it dismisses, as above it.
11
17
  */
12
18
 
13
- import { OverlayWindow, useOverlayZIndex } from "@multiplatform.one/forms";
19
+ import {
20
+ OverlayWindow,
21
+ overlaySizeClass,
22
+ sheetPanelWidth,
23
+ useOverlayZIndex,
24
+ } from "@multiplatform.one/forms";
14
25
  import {
15
26
  motionDurationMs,
27
+ Surface,
16
28
  useResolvedKnobs,
17
29
  type MotionStop,
18
30
  nativeAnimationConfig as animationConfig,
@@ -49,6 +61,7 @@ import { DialogRegionContext } from "../surfaces";
49
61
 
50
62
  import type { SheetModalProps } from "./index";
51
63
  import { SheetHeader } from "./SheetHeader";
64
+ import { SheetNavigation } from "./SheetNavigation";
52
65
  export type { SheetModalProps } from "./index";
53
66
 
54
67
  const bottomInset = Platform.OS === "ios" ? 24 : 16;
@@ -99,7 +112,8 @@ export function SheetModal({
99
112
  typeof slideTransition === "string"
100
113
  ? animationConfig[slideTransition as MotionStop]
101
114
  : undefined;
102
- const { height: windowHeight } = useWindowDimensions();
115
+ const { width: windowWidth, height: windowHeight } = useWindowDimensions();
116
+ const regular = overlaySizeClass(windowWidth) === "regular";
103
117
  const keyboardInset = useKeyboardInset();
104
118
  const topInset = useContext(SafeAreaInsetsContext)?.top ?? initialWindowMetrics?.insets.top ?? 0;
105
119
  const [backdropArmed, setBackdropArmed] = useState(false);
@@ -393,7 +407,12 @@ export function SheetModal({
393
407
  >
394
408
  <OverlayWindow zIndex={windowZIndex}>
395
409
  <RNView
396
- style={{ flex: 1, justifyContent: "flex-end", paddingBottom: keyboardInset }}
410
+ style={{
411
+ flex: 1,
412
+ justifyContent: "flex-end",
413
+ alignItems: regular ? "center" : undefined,
414
+ paddingBottom: keyboardInset,
415
+ }}
397
416
  onTouchStart={stopAtModal}
398
417
  onTouchMove={stopAtModal}
399
418
  onTouchEnd={stopAtModal}
@@ -418,6 +437,7 @@ export function SheetModal({
418
437
  }}
419
438
  testID="sheet-modal-frame"
420
439
  style={{
440
+ ...(regular ? { width: sheetPanelWidth(windowWidth) } : null),
421
441
  // MPO-64: flex children default to flexShrink 0, so without this
422
442
  // the sheet cannot give way to the keyboard.
423
443
  flexShrink: 1,
@@ -431,18 +451,18 @@ export function SheetModal({
431
451
  >
432
452
  <YStack
433
453
  testID="sheet-modal-surface"
434
- {...knobProps.surface}
454
+ data-sheet-form={regular ? "panel" : "bottom"}
455
+ {...(regular ? knobProps.elevatedSurface : knobProps.surface)}
435
456
  {...knobProps.borderRadius}
436
457
  borderBottomLeftRadius={0}
437
458
  borderBottomRightRadius={0}
438
- elevation={knobProps.elevation}
459
+ {...(regular ? { borderBottomWidth: 0 } : { elevation: knobProps.elevation })}
439
460
  maxHeight={maxHeight}
440
461
  flexShrink={1}
441
462
  minHeight={0}
442
463
  {...(fill ? fillSlot : null)}
443
464
  paddingTop="$2"
444
465
  paddingBottom={keyboardInset > 0 ? 8 : bottomInset}
445
- overflow="hidden"
446
466
  // No focus or press pseudo on this surface: on native tamagui
447
467
  // turns one into a touch-responder claim, and a responder here
448
468
  // takes every drag from the ScrollView inside (MPO-299).
@@ -455,71 +475,90 @@ export function SheetModal({
455
475
  it that is, so it is the only thing that takes the gesture, and
456
476
  it never fights the ScrollView below.
457
477
  */}
458
- <RNView
459
- {...panResponder.panHandlers}
460
- accessibilityRole="adjustable"
461
- accessibilityLabel={t("Drag to resize")}
462
- testID="sheet-modal-grabber"
463
- style={{
464
- alignSelf: "stretch",
465
- alignItems: "center",
466
- paddingTop: 3,
467
- paddingBottom: 11,
468
- ...(fill ? nonShrinking : null),
469
- }}
478
+ <YStack
479
+ testID="sheet-modal-clip"
480
+ overflow="hidden"
481
+ borderTopLeftRadius={knobProps.borderRadius.borderRadius}
482
+ borderTopRightRadius={knobProps.borderRadius.borderRadius}
483
+ flexShrink={1}
484
+ minHeight={0}
485
+ {...(fill ? fillSlot : null)}
470
486
  >
471
- <View
472
- width={36}
473
- height={5}
474
- borderRadius={100}
475
- backgroundColor="$color8"
476
- opacity={0.45}
477
- accessible={false}
478
- />
479
- </RNView>
480
- <DialogRegionContext.Provider value={IN_DIALOG_REGION}>
481
- <YStack
482
- testID="sheet-modal-content"
483
- padding={knobProps.panelPadding.padding}
484
- gap={knobProps.gap.gap}
485
- flexShrink={1}
486
- {...(fill ? fillSlot : null)}
487
+ <RNView
488
+ {...panResponder.panHandlers}
489
+ accessibilityRole="adjustable"
490
+ accessibilityLabel={t("Drag to resize")}
491
+ testID="sheet-modal-grabber"
492
+ style={{
493
+ alignSelf: "stretch",
494
+ alignItems: "center",
495
+ paddingTop: 3,
496
+ paddingBottom: 11,
497
+ ...(fill ? nonShrinking : null),
498
+ }}
487
499
  >
488
- {fill ? (
489
- <>
490
- {header ? <RNView style={nonShrinking}>{header}</RNView> : null}
491
- <RNView testID="sheet-modal-body" style={fillSlot}>
492
- {scrollable ? (
493
- <RNScrollView
494
- testID="sheet-modal-scroll"
495
- style={fillSlot}
496
- keyboardShouldPersistTaps="handled"
497
- >
498
- {children}
499
- </RNScrollView>
500
- ) : (
501
- children
502
- )}
503
- </RNView>
504
- </>
505
- ) : (
506
- <>
507
- {header}
508
- {scrollable ? (
509
- <RNScrollView
510
- testID="sheet-modal-scroll"
511
- style={{ flexGrow: 0 }}
512
- keyboardShouldPersistTaps="handled"
513
- >
514
- {children}
515
- </RNScrollView>
516
- ) : (
517
- children
518
- )}
519
- </>
520
- )}
521
- </YStack>
522
- </DialogRegionContext.Provider>
500
+ <View
501
+ width={36}
502
+ height={5}
503
+ borderRadius={100}
504
+ backgroundColor="$color8"
505
+ opacity={0.45}
506
+ accessible={false}
507
+ />
508
+ </RNView>
509
+ <DialogRegionContext.Provider value={IN_DIALOG_REGION}>
510
+ <Surface elevated={regular || undefined}>
511
+ <YStack
512
+ testID="sheet-modal-content"
513
+ padding={knobProps.panelPadding.padding}
514
+ gap={knobProps.gap.gap}
515
+ flexShrink={1}
516
+ {...(fill ? fillSlot : null)}
517
+ >
518
+ <SheetNavigation
519
+ open={open}
520
+ gap={knobProps.gap.gap}
521
+ fill={fill}
522
+ root={
523
+ fill ? (
524
+ <>
525
+ {header ? <RNView style={nonShrinking}>{header}</RNView> : null}
526
+ <RNView testID="sheet-modal-body" style={fillSlot}>
527
+ {scrollable ? (
528
+ <RNScrollView
529
+ testID="sheet-modal-scroll"
530
+ style={fillSlot}
531
+ keyboardShouldPersistTaps="handled"
532
+ >
533
+ {children}
534
+ </RNScrollView>
535
+ ) : (
536
+ children
537
+ )}
538
+ </RNView>
539
+ </>
540
+ ) : (
541
+ <>
542
+ {header}
543
+ {scrollable ? (
544
+ <RNScrollView
545
+ testID="sheet-modal-scroll"
546
+ style={{ flexGrow: 0 }}
547
+ keyboardShouldPersistTaps="handled"
548
+ >
549
+ {children}
550
+ </RNScrollView>
551
+ ) : (
552
+ children
553
+ )}
554
+ </>
555
+ )
556
+ }
557
+ />
558
+ </YStack>
559
+ </Surface>
560
+ </DialogRegionContext.Provider>
561
+ </YStack>
523
562
  </YStack>
524
563
  </Animated.View>
525
564
  </RNView>
@@ -16,6 +16,7 @@ import { isWeb, Sheet, View, useWindowDimensions } from "tamagui";
16
16
  import { DialogRegionContext, SheetFrame } from "../surfaces";
17
17
  import { largeDetentRatio, resolveWebSnap } from "./detents";
18
18
  import { SheetHeader } from "./SheetHeader";
19
+ import { SheetNavigation } from "./SheetNavigation";
19
20
  import { useSheetFrameFocus } from "./useSheetFrameFocus";
20
21
 
21
22
  export interface SheetModalProps {
@@ -154,26 +155,38 @@ export function SheetModal({
154
155
  >
155
156
  <DialogRegionContext.Provider value={IN_DIALOG_REGION}>
156
157
  <OverlayStackProvider zIndex={sheetZIndex}>
157
- {header ? (
158
- <View id={headerActions ? undefined : titleId} {...(fill ? nonShrinking : null)}>
159
- {header}
160
- </View>
161
- ) : null}
162
- {fill ? (
163
- <View testID="sheet-modal-body" {...fillSlot}>
164
- {scrollable ? (
165
- <Sheet.ScrollView testID="sheet-modal-scroll" {...fillSlot}>
166
- {children}
167
- </Sheet.ScrollView>
168
- ) : (
169
- children
170
- )}
171
- </View>
172
- ) : scrollable ? (
173
- <Sheet.ScrollView testID="sheet-modal-scroll">{children}</Sheet.ScrollView>
174
- ) : (
175
- children
176
- )}
158
+ <SheetNavigation
159
+ open={open}
160
+ gap={knobProps.gap.gap}
161
+ fill={fill}
162
+ root={
163
+ <>
164
+ {header ? (
165
+ <View
166
+ id={headerActions ? undefined : titleId}
167
+ {...(fill ? nonShrinking : null)}
168
+ >
169
+ {header}
170
+ </View>
171
+ ) : null}
172
+ {fill ? (
173
+ <View testID="sheet-modal-body" {...fillSlot}>
174
+ {scrollable ? (
175
+ <Sheet.ScrollView testID="sheet-modal-scroll" {...fillSlot}>
176
+ {children}
177
+ </Sheet.ScrollView>
178
+ ) : (
179
+ children
180
+ )}
181
+ </View>
182
+ ) : scrollable ? (
183
+ <Sheet.ScrollView testID="sheet-modal-scroll">{children}</Sheet.ScrollView>
184
+ ) : (
185
+ children
186
+ )}
187
+ </>
188
+ }
189
+ />
177
190
  <View
178
191
  style={{ height: "env(safe-area-inset-bottom)" }}
179
192
  {...(fill ? nonShrinking : null)}
@@ -88,12 +88,12 @@ const baseItems: TabsItem[] = [
88
88
  export const Underline: Story = {
89
89
  name: "Main",
90
90
  args: { variant: "underline" },
91
- render: (args) => <Tabs items={baseItems} {...args} />,
91
+ render: (args) => <Tabs {...args} items={baseItems} />,
92
92
  };
93
93
 
94
94
  export const Contained: Story = {
95
95
  args: { variant: "contained" },
96
- render: (args) => <Tabs items={baseItems.slice(0, 3)} {...args} />,
96
+ render: (args) => <Tabs {...args} items={baseItems.slice(0, 3)} />,
97
97
  };
98
98
 
99
99
  export const Intents: Story = {
@@ -148,13 +148,13 @@ describe("Tooltip content rides the border, elevation and animation knobs", () =
148
148
  return measured;
149
149
  }
150
150
 
151
- it("follows each stop on the mounted bubble, and none carries no border, shadow or motion", async () => {
151
+ it("follows each stop on the mounted bubble; none keeps only the light hairline edge (LC-85, FZ-8116)", async () => {
152
152
  const none = await measure(stops[0]);
153
153
  const small = await measure(stops[1]);
154
154
  const large = await measure(stops[2]);
155
155
  expect(none).toEqual({
156
156
  mounted: true,
157
- border: "_btw-0px",
157
+ border: "_btw-1px",
158
158
  shadow: undefined,
159
159
  transition: undefined,
160
160
  });
@@ -39,6 +39,11 @@ export interface TabBarItem {
39
39
  /** One short word. It never wraps or ellipsizes; it shrinks to 9pt at most. */
40
40
  label: string;
41
41
  icon: TabBarIcon;
42
+ /**
43
+ * The SF Symbols the system tab bar draws on iOS (TabHost). Without them
44
+ * on every item, iOS keeps the MPO TabBar.
45
+ */
46
+ nativeIcon?: { sfSymbol: string; sfSymbolSelected?: string };
42
47
  }
43
48
 
44
49
  export interface TabBarProps {