@multiplatform.one/components 9.2.0 → 9.4.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 (620) hide show
  1. package/dist/cjs/Avatar/index.cjs +1 -1
  2. package/dist/cjs/Avatar/index.native.js +1 -1
  3. package/dist/cjs/Avatar/index.native.js.map +1 -1
  4. package/dist/cjs/Carousel/index.cjs +1 -1
  5. package/dist/cjs/Carousel/index.native.js +1 -1
  6. package/dist/cjs/Chip/index.cjs +37 -16
  7. package/dist/cjs/Chip/index.native.js +38 -16
  8. package/dist/cjs/Chip/index.native.js.map +1 -1
  9. package/dist/cjs/DropDownPanel/index.cjs +1 -1
  10. package/dist/cjs/DropDownPanel/index.native.js +1 -1
  11. package/dist/cjs/DropDownPanel/index.native.js.map +1 -1
  12. package/dist/cjs/Meter/meter.cjs +3 -3
  13. package/dist/cjs/Meter/meter.native.js +3 -3
  14. package/dist/cjs/Meter/meter.native.js.map +1 -1
  15. package/dist/cjs/{ScrollView/index.cjs → ScrollView.cjs} +2 -2
  16. package/dist/cjs/{ScrollView/useRevealFocusedField.cjs → ScrollView.native.js} +8 -5
  17. package/dist/cjs/ScrollView.native.js.map +1 -0
  18. package/dist/cjs/SheetModal/index.cjs +9 -5
  19. package/dist/cjs/SheetModal/index.native.js +6 -4
  20. package/dist/cjs/SheetModal/index.native.js.map +1 -1
  21. package/dist/cjs/SheetScrollView/index.cjs +1 -1
  22. package/dist/cjs/SheetScrollView/index.native.js +1 -1
  23. package/dist/cjs/Tabs/index.cjs +64 -14
  24. package/dist/cjs/Tabs/index.native.js +74 -19
  25. package/dist/cjs/Tabs/index.native.js.map +1 -1
  26. package/dist/cjs/appShell/SettingsSplit.cjs +1 -1
  27. package/dist/cjs/appShell/SettingsSplit.native.js +1 -1
  28. package/dist/cjs/charts/ChartDataView.cjs +1 -1
  29. package/dist/cjs/charts/ChartDataView.native.js +1 -1
  30. package/dist/cjs/code/CodeBlock/index.cjs +1 -1
  31. package/dist/cjs/code/CodeBlock/index.native.js +1 -1
  32. package/dist/cjs/code/LogView.cjs +2 -2
  33. package/dist/cjs/code/LogView.native.js +2 -2
  34. package/dist/cjs/code/LogView.native.js.map +1 -1
  35. package/dist/cjs/code/PayloadView/index.cjs +1 -1
  36. package/dist/cjs/code/PayloadView/index.native.js +1 -1
  37. package/dist/cjs/hooks/useDirection.cjs +2 -27
  38. package/dist/cjs/hooks/useDirection.native.js +5 -8
  39. package/dist/cjs/hooks/useDirection.native.js.map +1 -1
  40. package/dist/cjs/index.cjs +11 -11
  41. package/dist/cjs/index.native.js +11 -11
  42. package/dist/cjs/index.native.js.map +1 -1
  43. package/dist/cjs/layouts/IdentityPlate.cjs +2 -2
  44. package/dist/cjs/layouts/IdentityPlate.native.js +2 -2
  45. package/dist/cjs/layouts/IdentityPlate.native.js.map +1 -1
  46. package/dist/cjs/layouts/StatusDot.cjs +9 -2
  47. package/dist/cjs/layouts/StatusDot.native.js +9 -2
  48. package/dist/cjs/layouts/StatusDot.native.js.map +1 -1
  49. package/dist/cjs/layouts/StatusGlyphStrip.cjs +1 -1
  50. package/dist/cjs/layouts/StatusGlyphStrip.native.js +1 -1
  51. package/dist/cjs/layouts/StatusGlyphStrip.native.js.map +1 -1
  52. package/dist/cjs/layouts/attachments.cjs +1 -3
  53. package/dist/cjs/layouts/attachments.native.js +1 -3
  54. package/dist/cjs/layouts/attachments.native.js.map +1 -1
  55. package/dist/cjs/layouts/index.cjs +1 -0
  56. package/dist/cjs/layouts/index.native.js +1 -0
  57. package/dist/cjs/layouts/index.native.js.map +1 -1
  58. package/dist/cjs/layouts/page.cjs +1 -1
  59. package/dist/cjs/layouts/page.native.js +1 -1
  60. package/dist/cjs/layouts/sidebar.cjs +4 -7
  61. package/dist/cjs/layouts/sidebar.native.js +4 -7
  62. package/dist/cjs/layouts/sidebar.native.js.map +1 -1
  63. package/dist/cjs/layouts/tags.cjs +1 -1
  64. package/dist/cjs/layouts/tags.native.js +1 -1
  65. package/dist/cjs/layouts/toolbar.cjs +1 -1
  66. package/dist/cjs/layouts/toolbar.native.js +1 -1
  67. package/dist/cjs/tamagui.cjs +1 -1
  68. package/dist/cjs/tamagui.native.js +1 -1
  69. package/dist/cjs/views/Calendar.cjs +1 -1
  70. package/dist/cjs/views/Calendar.native.js +1 -1
  71. package/dist/cjs/views/Dashboard.cjs +1 -1
  72. package/dist/cjs/views/Dashboard.native.js +1 -1
  73. package/dist/cjs/views/FilePreview.cjs +1 -2
  74. package/dist/cjs/views/FilePreview.native.js +1 -2
  75. package/dist/cjs/views/Gantt.cjs +1 -1
  76. package/dist/cjs/views/Gantt.native.js +1 -1
  77. package/dist/cjs/views/Gantt.native.js.map +1 -1
  78. package/dist/cjs/views/Kanban.cjs +1 -1
  79. package/dist/cjs/views/Kanban.native.js +1 -1
  80. package/dist/cjs/views/Matrix.cjs +1 -1
  81. package/dist/cjs/views/Matrix.native.js +1 -1
  82. package/dist/cjs/views/ReportBuilder.cjs +1 -1
  83. package/dist/cjs/views/ReportBuilder.native.js +1 -1
  84. package/dist/esm/Accordion/index.native.js.map +1 -1
  85. package/dist/esm/AnimateHeight/index.native.js.map +1 -1
  86. package/dist/esm/Avatar/getInitials.native.js.map +1 -1
  87. package/dist/esm/Avatar/index.mjs +1 -1
  88. package/dist/esm/Avatar/index.native.js +1 -1
  89. package/dist/esm/Avatar/index.native.js.map +1 -1
  90. package/dist/esm/Badge/index.native.js.map +1 -1
  91. package/dist/esm/Button.native.js.map +1 -1
  92. package/dist/esm/Carousel/geometry.native.js.map +1 -1
  93. package/dist/esm/Carousel/index.mjs +1 -1
  94. package/dist/esm/Carousel/index.native.js +1 -1
  95. package/dist/esm/Carousel/index.native.js.map +1 -1
  96. package/dist/esm/ChatTurn/index.native.js.map +1 -1
  97. package/dist/esm/CheckGlyph/MenuCheckColumn.native.js.map +1 -1
  98. package/dist/esm/CheckGlyph/index.native.js.map +1 -1
  99. package/dist/esm/Chip/index.mjs +37 -17
  100. package/dist/esm/Chip/index.mjs.map +1 -1
  101. package/dist/esm/Chip/index.native.js +38 -17
  102. package/dist/esm/Chip/index.native.js.map +1 -1
  103. package/dist/esm/ChoiceChips/index.native.js.map +1 -1
  104. package/dist/esm/Collapsible.native.js.map +1 -1
  105. package/dist/esm/ContextMenu/index.native.js.map +1 -1
  106. package/dist/esm/CopyField/CopyMenuButton.native.js.map +1 -1
  107. package/dist/esm/CopyField/index.native.js.map +1 -1
  108. package/dist/esm/Dialog.native.js.map +1 -1
  109. package/dist/esm/Diff/diff.native.js.map +1 -1
  110. package/dist/esm/Diff/index.native.js.map +1 -1
  111. package/dist/esm/DotIndicator/index.native.js.map +1 -1
  112. package/dist/esm/DrillStack/DrillBar.native.js.map +1 -1
  113. package/dist/esm/DrillStack/context.native.js.map +1 -1
  114. package/dist/esm/DrillStack/drillMotion.native.js.map +1 -1
  115. package/dist/esm/DropDownPanel/index.mjs +2 -2
  116. package/dist/esm/DropDownPanel/index.mjs.map +1 -1
  117. package/dist/esm/DropDownPanel/index.native.js +2 -2
  118. package/dist/esm/DropDownPanel/index.native.js.map +1 -1
  119. package/dist/esm/DropdownMenu/index.native.js.map +1 -1
  120. package/dist/esm/DropdownMenu/menuSettle.native.js.map +1 -1
  121. package/dist/esm/ElapsedProgress/index.native.js.map +1 -1
  122. package/dist/esm/ErrorBoundary/index.native.js.map +1 -1
  123. package/dist/esm/Heading.native.js.map +1 -1
  124. package/dist/esm/Kbd/index.native.js.map +1 -1
  125. package/dist/esm/Kbd/keys.native.js.map +1 -1
  126. package/dist/esm/Lightbox/MediaControl.native.js.map +1 -1
  127. package/dist/esm/Lightbox/index.gnome.native.js.map +1 -1
  128. package/dist/esm/Lightbox/shared.native.js.map +1 -1
  129. package/dist/esm/Lightbox/useLightbox.native.js.map +1 -1
  130. package/dist/esm/MachineLiteral/index.native.js.map +1 -1
  131. package/dist/esm/Material/index.native.js.map +1 -1
  132. package/dist/esm/Meter/index.native.js.map +1 -1
  133. package/dist/esm/Meter/meter.mjs +3 -3
  134. package/dist/esm/Meter/meter.mjs.map +1 -1
  135. package/dist/esm/Meter/meter.native.js +3 -3
  136. package/dist/esm/Meter/meter.native.js.map +1 -1
  137. package/dist/esm/MiddleEllipsisText/middleSplit.native.js.map +1 -1
  138. package/dist/esm/MiddleEllipsisText/types.native.js.map +1 -1
  139. package/dist/esm/Pagination.native.js.map +1 -1
  140. package/dist/esm/Popover.native.js.map +1 -1
  141. package/dist/esm/ProgressSteps/index.native.js.map +1 -1
  142. package/dist/esm/Quote/index.native.js.map +1 -1
  143. package/dist/esm/SchemeToggle/index.native.js.map +1 -1
  144. package/dist/esm/ScrollView.mjs +3 -0
  145. package/dist/esm/ScrollView.mjs.map +1 -0
  146. package/dist/esm/ScrollView.native.js +3 -0
  147. package/dist/esm/ScrollView.native.js.map +1 -0
  148. package/dist/esm/Separator/index.native.js.map +1 -1
  149. package/dist/esm/Sheet.native.js.map +1 -1
  150. package/dist/esm/SheetModal/SheetBodyRegion.native.js.map +1 -1
  151. package/dist/esm/SheetModal/SheetHeader.native.js.map +1 -1
  152. package/dist/esm/SheetModal/SheetNavigation.native.js.map +1 -1
  153. package/dist/esm/SheetModal/detents.native.js.map +1 -1
  154. package/dist/esm/SheetModal/index.mjs +10 -6
  155. package/dist/esm/SheetModal/index.mjs.map +1 -1
  156. package/dist/esm/SheetModal/index.native.js +7 -5
  157. package/dist/esm/SheetModal/index.native.js.map +1 -1
  158. package/dist/esm/SheetModal/useSheetFrameFocus.native.js.map +1 -1
  159. package/dist/esm/SheetScrollView/index.mjs +1 -1
  160. package/dist/esm/SheetScrollView/index.native.js +1 -1
  161. package/dist/esm/SheetScrollView/index.native.js.map +1 -1
  162. package/dist/esm/SheetScrollView/sheetHandoff.native.js.map +1 -1
  163. package/dist/esm/Skeleton/index.native.js.map +1 -1
  164. package/dist/esm/SkipLink/index.native.js.map +1 -1
  165. package/dist/esm/SortableList/SortableHandle.native.js.map +1 -1
  166. package/dist/esm/SortableList/index.native.js.map +1 -1
  167. package/dist/esm/SortableList/useSortableRows.native.js.map +1 -1
  168. package/dist/esm/SortableList/useUserOrder.native.js.map +1 -1
  169. package/dist/esm/SwipeDismissRow/index.native.js.map +1 -1
  170. package/dist/esm/Tabs/index.mjs +64 -14
  171. package/dist/esm/Tabs/index.mjs.map +1 -1
  172. package/dist/esm/Tabs/index.native.js +74 -19
  173. package/dist/esm/Tabs/index.native.js.map +1 -1
  174. package/dist/esm/Text.native.js.map +1 -1
  175. package/dist/esm/ThemePresetPicker/index.native.js.map +1 -1
  176. package/dist/esm/Toast/index.native.js.map +1 -1
  177. package/dist/esm/Toast/store.native.js.map +1 -1
  178. package/dist/esm/Tooltip/nativePress.native.js.map +1 -1
  179. package/dist/esm/Tooltip/tooltipShared.native.js.map +1 -1
  180. package/dist/esm/TreeSelect/index.native.js.map +1 -1
  181. package/dist/esm/TreeSelect/treeSelectModel.native.js.map +1 -1
  182. package/dist/esm/Video/PlayerChrome.native.js.map +1 -1
  183. package/dist/esm/Video/VideoFrame.native.js.map +1 -1
  184. package/dist/esm/Video/types.native.js.map +1 -1
  185. package/dist/esm/Wheel/index.native.js.map +1 -1
  186. package/dist/esm/Wizard/index.native.js.map +1 -1
  187. package/dist/esm/actions/ActionBar.native.js.map +1 -1
  188. package/dist/esm/actions/DangerSection.native.js.map +1 -1
  189. package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
  190. package/dist/esm/actions/HeaderActions.native.js.map +1 -1
  191. package/dist/esm/actions/StandardAction.native.js.map +1 -1
  192. package/dist/esm/actions/devWarn.native.js.map +1 -1
  193. package/dist/esm/actions/index.native.js.map +1 -1
  194. package/dist/esm/actions/severity.native.js.map +1 -1
  195. package/dist/esm/appShell/AppShell.native.js.map +1 -1
  196. package/dist/esm/appShell/BottomChromeClearance.native.js.map +1 -1
  197. package/dist/esm/appShell/Dock.native.js.map +1 -1
  198. package/dist/esm/appShell/MpoTabHost.native.js.map +1 -1
  199. package/dist/esm/appShell/ScopeMenu.native.js.map +1 -1
  200. package/dist/esm/appShell/SettingsSplit.mjs +1 -1
  201. package/dist/esm/appShell/SettingsSplit.native.js +1 -1
  202. package/dist/esm/appShell/SettingsSplit.native.js.map +1 -1
  203. package/dist/esm/appShell/Springboard.native.js.map +1 -1
  204. package/dist/esm/appShell/SystemBar.native.js.map +1 -1
  205. package/dist/esm/appShell/TabBar.native.js.map +1 -1
  206. package/dist/esm/appShell/appTile.native.js.map +1 -1
  207. package/dist/esm/appShell/bottomChrome.native.js.map +1 -1
  208. package/dist/esm/appShell/index.native.js.map +1 -1
  209. package/dist/esm/appShell/stackBack.native.js.map +1 -1
  210. package/dist/esm/appShell/systemBarFit.native.js.map +1 -1
  211. package/dist/esm/charts/Axis.native.js.map +1 -1
  212. package/dist/esm/charts/BarChart.native.js.map +1 -1
  213. package/dist/esm/charts/ChartDataView.mjs +1 -1
  214. package/dist/esm/charts/ChartDataView.native.js +1 -1
  215. package/dist/esm/charts/ChartDataView.native.js.map +1 -1
  216. package/dist/esm/charts/ChartSurface.native.js.map +1 -1
  217. package/dist/esm/charts/LineChart.native.js.map +1 -1
  218. package/dist/esm/charts/PieChart.native.js.map +1 -1
  219. package/dist/esm/charts/Sparkline.native.js.map +1 -1
  220. package/dist/esm/charts/accessibility.native.js.map +1 -1
  221. package/dist/esm/charts/chartHeight.native.js.map +1 -1
  222. package/dist/esm/charts/composeChart.native.js.map +1 -1
  223. package/dist/esm/charts/index.native.js.map +1 -1
  224. package/dist/esm/charts/math.native.js.map +1 -1
  225. package/dist/esm/charts/series.native.js.map +1 -1
  226. package/dist/esm/charts/svg.native.js.map +1 -1
  227. package/dist/esm/charts/types.native.js.map +1 -1
  228. package/dist/esm/charts/useChartTheme.native.js.map +1 -1
  229. package/dist/esm/code/Code/index.native.js.map +1 -1
  230. package/dist/esm/code/CodeBlock/index.mjs +1 -1
  231. package/dist/esm/code/CodeBlock/index.native.js +1 -1
  232. package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
  233. package/dist/esm/code/HighlightedCode/index.native.js.map +1 -1
  234. package/dist/esm/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
  235. package/dist/esm/code/Highlighter/index.native.js.map +1 -1
  236. package/dist/esm/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
  237. package/dist/esm/code/HoldSelect/tapGate.native.js.map +1 -1
  238. package/dist/esm/code/LogView.mjs +2 -2
  239. package/dist/esm/code/LogView.mjs.map +1 -1
  240. package/dist/esm/code/LogView.native.js +2 -2
  241. package/dist/esm/code/LogView.native.js.map +1 -1
  242. package/dist/esm/code/PayloadView/index.mjs +1 -1
  243. package/dist/esm/code/PayloadView/index.native.js +1 -1
  244. package/dist/esm/code/PayloadView/index.native.js.map +1 -1
  245. package/dist/esm/code/PayloadView/payloadModel.native.js.map +1 -1
  246. package/dist/esm/code/Pre/index.native.js.map +1 -1
  247. package/dist/esm/code/index.native.js.map +1 -1
  248. package/dist/esm/componentColors.native.js.map +1 -1
  249. package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
  250. package/dist/esm/feedback/NotifyHost.native.js.map +1 -1
  251. package/dist/esm/feedback/copy.native.js.map +1 -1
  252. package/dist/esm/feedback/index.native.js.map +1 -1
  253. package/dist/esm/feedback/notify.native.js.map +1 -1
  254. package/dist/esm/feedback/route.native.js.map +1 -1
  255. package/dist/esm/feedback/store.native.js.map +1 -1
  256. package/dist/esm/formLayouts/FormLayouts.native.js.map +1 -1
  257. package/dist/esm/formLayouts/PreferencePanel.native.js.map +1 -1
  258. package/dist/esm/formLayouts/SingleTaskColumn.native.js.map +1 -1
  259. package/dist/esm/formLayouts/index.native.js.map +1 -1
  260. package/dist/esm/hooks/index.native.js.map +1 -1
  261. package/dist/esm/hooks/useClipboard.native.js.map +1 -1
  262. package/dist/esm/hooks/useDirection.mjs +1 -26
  263. package/dist/esm/hooks/useDirection.mjs.map +1 -1
  264. package/dist/esm/hooks/useDirection.native.js +1 -4
  265. package/dist/esm/hooks/useDirection.native.js.map +1 -1
  266. package/dist/esm/hooks/useDocumentTitle.native.js.map +1 -1
  267. package/dist/esm/icons/CheckRegular.native.js.map +1 -1
  268. package/dist/esm/icons/MinusRegular.native.js.map +1 -1
  269. package/dist/esm/icons/index.native.js.map +1 -1
  270. package/dist/esm/icons/lucide.native.js.map +1 -1
  271. package/dist/esm/icons/themed.native.js.map +1 -1
  272. package/dist/esm/images/Image/ImageFrame.native.js.map +1 -1
  273. package/dist/esm/images/Image/framing.native.js.map +1 -1
  274. package/dist/esm/images/Image/mediaRadius.native.js.map +1 -1
  275. package/dist/esm/images/Image/shared.native.js.map +1 -1
  276. package/dist/esm/images/Image/types.native.js.map +1 -1
  277. package/dist/esm/images/RemoteArt/remoteArtCache.native.js.map +1 -1
  278. package/dist/esm/images/RemoteArt/svgMarkup.native.js.map +1 -1
  279. package/dist/esm/images/RemoteArt/types.native.js.map +1 -1
  280. package/dist/esm/images/index.native.js.map +1 -1
  281. package/dist/esm/index.gnome.native.js.map +1 -1
  282. package/dist/esm/index.mjs +1 -1
  283. package/dist/esm/index.native.js +1 -1
  284. package/dist/esm/index.native.js.map +1 -1
  285. package/dist/esm/knobImmuneExports.native.js.map +1 -1
  286. package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
  287. package/dist/esm/layouts/Debug/index.native.js.map +1 -1
  288. package/dist/esm/layouts/EmptyState.native.js.map +1 -1
  289. package/dist/esm/layouts/IdentityPlate.mjs +1 -1
  290. package/dist/esm/layouts/IdentityPlate.mjs.map +1 -1
  291. package/dist/esm/layouts/IdentityPlate.native.js +1 -1
  292. package/dist/esm/layouts/IdentityPlate.native.js.map +1 -1
  293. package/dist/esm/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  294. package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
  295. package/dist/esm/layouts/PaneScaffold.native.js.map +1 -1
  296. package/dist/esm/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  297. package/dist/esm/layouts/StatusDot.mjs +8 -2
  298. package/dist/esm/layouts/StatusDot.mjs.map +1 -1
  299. package/dist/esm/layouts/StatusDot.native.js +8 -2
  300. package/dist/esm/layouts/StatusDot.native.js.map +1 -1
  301. package/dist/esm/layouts/StatusGlyphStrip.mjs +2 -2
  302. package/dist/esm/layouts/StatusGlyphStrip.mjs.map +1 -1
  303. package/dist/esm/layouts/StatusGlyphStrip.native.js +2 -2
  304. package/dist/esm/layouts/StatusGlyphStrip.native.js.map +1 -1
  305. package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -1
  306. package/dist/esm/layouts/asyncFailure.native.js.map +1 -1
  307. package/dist/esm/layouts/attachments.mjs +1 -3
  308. package/dist/esm/layouts/attachments.mjs.map +1 -1
  309. package/dist/esm/layouts/attachments.native.js +1 -3
  310. package/dist/esm/layouts/attachments.native.js.map +1 -1
  311. package/dist/esm/layouts/barTitleSpan.native.js.map +1 -1
  312. package/dist/esm/layouts/bottomAccessory.native.js.map +1 -1
  313. package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
  314. package/dist/esm/layouts/index.mjs +2 -2
  315. package/dist/esm/layouts/index.mjs.map +1 -1
  316. package/dist/esm/layouts/index.native.js +2 -2
  317. package/dist/esm/layouts/index.native.js.map +1 -1
  318. package/dist/esm/layouts/page.mjs +1 -1
  319. package/dist/esm/layouts/page.native.js +1 -1
  320. package/dist/esm/layouts/page.native.js.map +1 -1
  321. package/dist/esm/layouts/pageHeadingScope.native.js.map +1 -1
  322. package/dist/esm/layouts/screenScroll.native.js.map +1 -1
  323. package/dist/esm/layouts/shellSidebarSlot.native.js.map +1 -1
  324. package/dist/esm/layouts/sidebar.mjs +4 -7
  325. package/dist/esm/layouts/sidebar.mjs.map +1 -1
  326. package/dist/esm/layouts/sidebar.native.js +4 -7
  327. package/dist/esm/layouts/sidebar.native.js.map +1 -1
  328. package/dist/esm/layouts/tags.mjs +1 -1
  329. package/dist/esm/layouts/tags.native.js +1 -1
  330. package/dist/esm/layouts/tags.native.js.map +1 -1
  331. package/dist/esm/layouts/timeline.native.js.map +1 -1
  332. package/dist/esm/layouts/toolbar.mjs +1 -1
  333. package/dist/esm/layouts/toolbar.native.js +1 -1
  334. package/dist/esm/layouts/toolbar.native.js.map +1 -1
  335. package/dist/esm/shared/actionScan.native.js.map +1 -1
  336. package/dist/esm/shared/i18n.native.js.map +1 -1
  337. package/dist/esm/shared/restoreRetries.native.js.map +1 -1
  338. package/dist/esm/shared/t.native.js.map +1 -1
  339. package/dist/esm/shared/textRidesText.native.js.map +1 -1
  340. package/dist/esm/shared/useReturnFocusOnClose.native.js.map +1 -1
  341. package/dist/esm/surfaces.native.js.map +1 -1
  342. package/dist/esm/tamagui.mjs +1 -1
  343. package/dist/esm/tamagui.native.js +1 -1
  344. package/dist/esm/tamagui.native.js.map +1 -1
  345. package/dist/esm/testSetup.native.js.map +1 -1
  346. package/dist/esm/utils/unwrapText.native.js.map +1 -1
  347. package/dist/esm/views/Calendar.mjs +1 -1
  348. package/dist/esm/views/Calendar.native.js +1 -1
  349. package/dist/esm/views/Calendar.native.js.map +1 -1
  350. package/dist/esm/views/CardGrid.native.js.map +1 -1
  351. package/dist/esm/views/Dashboard.mjs +1 -1
  352. package/dist/esm/views/Dashboard.native.js +1 -1
  353. package/dist/esm/views/Dashboard.native.js.map +1 -1
  354. package/dist/esm/views/FilePreview.mjs +1 -2
  355. package/dist/esm/views/FilePreview.mjs.map +1 -1
  356. package/dist/esm/views/FilePreview.native.js +1 -2
  357. package/dist/esm/views/FilePreview.native.js.map +1 -1
  358. package/dist/esm/views/Gantt.mjs +1 -1
  359. package/dist/esm/views/Gantt.native.js +1 -1
  360. package/dist/esm/views/Gantt.native.js.map +1 -1
  361. package/dist/esm/views/GanttDateGrip.native.js.map +1 -1
  362. package/dist/esm/views/ImageGrid.native.js.map +1 -1
  363. package/dist/esm/views/Kanban.mjs +1 -1
  364. package/dist/esm/views/Kanban.native.js +1 -1
  365. package/dist/esm/views/List.native.js.map +1 -1
  366. package/dist/esm/views/ListGroup.native.js.map +1 -1
  367. package/dist/esm/views/ListRow.native.js.map +1 -1
  368. package/dist/esm/views/Matrix.mjs +1 -1
  369. package/dist/esm/views/Matrix.native.js +1 -1
  370. package/dist/esm/views/Matrix.native.js.map +1 -1
  371. package/dist/esm/views/ReportBuilder.mjs +1 -1
  372. package/dist/esm/views/ReportBuilder.native.js +1 -1
  373. package/dist/esm/views/ReportBuilder.native.js.map +1 -1
  374. package/dist/esm/views/ShortcutCard.native.js.map +1 -1
  375. package/dist/esm/views/TreeView.native.js.map +1 -1
  376. package/dist/esm/views/calendarMath.native.js.map +1 -1
  377. package/dist/esm/views/ganttIntervals.native.js.map +1 -1
  378. package/dist/esm/views/ganttMath.native.js.map +1 -1
  379. package/dist/esm/views/index.native.js.map +1 -1
  380. package/dist/esm/views/kanbanDnd.native.js.map +1 -1
  381. package/dist/esm/views/matrixMath.native.js.map +1 -1
  382. package/dist/esm/views/sameNameScope.native.js.map +1 -1
  383. package/dist/esm/views/treeViewDnd.native.js.map +1 -1
  384. package/dist/esm/views/treeViewLayout.native.js.map +1 -1
  385. package/dist/esm/views/treeViewMotion.native.js.map +1 -1
  386. package/dist/esm/views/treeViewReveal.native.js.map +1 -1
  387. package/dist/esm/views/usePageFlowLoadMore.native.js.map +1 -1
  388. package/dist/esm/views/widgetChrome.native.js.map +1 -1
  389. package/dist/jsx/Avatar/index.mjs +1 -1
  390. package/dist/jsx/Avatar/index.native.js +1 -1
  391. package/dist/jsx/Carousel/index.mjs +1 -1
  392. package/dist/jsx/Carousel/index.native.js +1 -1
  393. package/dist/jsx/Chip/index.mjs +37 -17
  394. package/dist/jsx/Chip/index.mjs.map +1 -1
  395. package/dist/jsx/Chip/index.native.js +38 -16
  396. package/dist/jsx/Chip/index.native.js.map +1 -1
  397. package/dist/jsx/DropDownPanel/index.mjs +2 -2
  398. package/dist/jsx/DropDownPanel/index.mjs.map +1 -1
  399. package/dist/jsx/DropDownPanel/index.native.js +1 -1
  400. package/dist/jsx/DropDownPanel/index.native.js.map +1 -1
  401. package/dist/jsx/Meter/meter.mjs +3 -3
  402. package/dist/jsx/Meter/meter.mjs.map +1 -1
  403. package/dist/jsx/Meter/meter.native.js +3 -3
  404. package/dist/jsx/Meter/meter.native.js.map +1 -1
  405. package/dist/jsx/ScrollView.mjs +3 -0
  406. package/dist/jsx/ScrollView.mjs.map +1 -0
  407. package/dist/{cjs/ScrollView/revealFocusedField.cjs → jsx/ScrollView.native.js} +8 -13
  408. package/dist/jsx/ScrollView.native.js.map +1 -0
  409. package/dist/jsx/SheetModal/index.mjs +10 -6
  410. package/dist/jsx/SheetModal/index.mjs.map +1 -1
  411. package/dist/jsx/SheetModal/index.native.js +6 -4
  412. package/dist/jsx/SheetModal/index.native.js.map +1 -1
  413. package/dist/jsx/SheetScrollView/index.mjs +1 -1
  414. package/dist/jsx/SheetScrollView/index.native.js +1 -1
  415. package/dist/jsx/SheetScrollView/index.native.js.map +1 -1
  416. package/dist/jsx/Tabs/index.mjs +64 -14
  417. package/dist/jsx/Tabs/index.mjs.map +1 -1
  418. package/dist/jsx/Tabs/index.native.js +74 -19
  419. package/dist/jsx/Tabs/index.native.js.map +1 -1
  420. package/dist/jsx/appShell/SettingsSplit.mjs +1 -1
  421. package/dist/jsx/appShell/SettingsSplit.native.js +1 -1
  422. package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
  423. package/dist/jsx/charts/ChartDataView.mjs +1 -1
  424. package/dist/jsx/charts/ChartDataView.native.js +1 -1
  425. package/dist/jsx/code/CodeBlock/index.mjs +1 -1
  426. package/dist/jsx/code/CodeBlock/index.native.js +1 -1
  427. package/dist/jsx/code/LogView.mjs +2 -2
  428. package/dist/jsx/code/LogView.mjs.map +1 -1
  429. package/dist/jsx/code/LogView.native.js +2 -2
  430. package/dist/jsx/code/LogView.native.js.map +1 -1
  431. package/dist/jsx/code/PayloadView/index.mjs +1 -1
  432. package/dist/jsx/code/PayloadView/index.native.js +1 -1
  433. package/dist/jsx/hooks/useDirection.mjs +1 -26
  434. package/dist/jsx/hooks/useDirection.mjs.map +1 -1
  435. package/dist/jsx/hooks/useDirection.native.js +5 -8
  436. package/dist/jsx/hooks/useDirection.native.js.map +1 -1
  437. package/dist/jsx/index.js +1 -1
  438. package/dist/jsx/index.mjs +1 -1
  439. package/dist/jsx/index.native.js +11 -11
  440. package/dist/jsx/index.native.js.map +1 -1
  441. package/dist/jsx/layouts/IdentityPlate.mjs +1 -1
  442. package/dist/jsx/layouts/IdentityPlate.mjs.map +1 -1
  443. package/dist/jsx/layouts/IdentityPlate.native.js +2 -2
  444. package/dist/jsx/layouts/IdentityPlate.native.js.map +1 -1
  445. package/dist/jsx/layouts/StatusDot.mjs +8 -2
  446. package/dist/jsx/layouts/StatusDot.mjs.map +1 -1
  447. package/dist/jsx/layouts/StatusDot.native.js +9 -2
  448. package/dist/jsx/layouts/StatusDot.native.js.map +1 -1
  449. package/dist/jsx/layouts/StatusGlyphStrip.mjs +2 -2
  450. package/dist/jsx/layouts/StatusGlyphStrip.mjs.map +1 -1
  451. package/dist/jsx/layouts/StatusGlyphStrip.native.js +1 -1
  452. package/dist/jsx/layouts/StatusGlyphStrip.native.js.map +1 -1
  453. package/dist/jsx/layouts/attachments.mjs +1 -3
  454. package/dist/jsx/layouts/attachments.mjs.map +1 -1
  455. package/dist/jsx/layouts/attachments.native.js +1 -3
  456. package/dist/jsx/layouts/attachments.native.js.map +1 -1
  457. package/dist/jsx/layouts/index.mjs +2 -2
  458. package/dist/jsx/layouts/index.mjs.map +1 -1
  459. package/dist/jsx/layouts/index.native.js +1 -0
  460. package/dist/jsx/layouts/index.native.js.map +1 -1
  461. package/dist/jsx/layouts/page.mjs +1 -1
  462. package/dist/jsx/layouts/page.native.js +1 -1
  463. package/dist/jsx/layouts/sidebar.mjs +4 -7
  464. package/dist/jsx/layouts/sidebar.mjs.map +1 -1
  465. package/dist/jsx/layouts/sidebar.native.js +4 -7
  466. package/dist/jsx/layouts/sidebar.native.js.map +1 -1
  467. package/dist/jsx/layouts/tags.mjs +1 -1
  468. package/dist/jsx/layouts/tags.native.js +1 -1
  469. package/dist/jsx/layouts/toolbar.mjs +1 -1
  470. package/dist/jsx/layouts/toolbar.native.js +1 -1
  471. package/dist/jsx/layouts/toolbar.native.js.map +1 -1
  472. package/dist/jsx/tamagui.mjs +1 -1
  473. package/dist/jsx/tamagui.native.js +1 -1
  474. package/dist/jsx/views/Calendar.mjs +1 -1
  475. package/dist/jsx/views/Calendar.native.js +1 -1
  476. package/dist/jsx/views/Dashboard.mjs +1 -1
  477. package/dist/jsx/views/Dashboard.native.js +1 -1
  478. package/dist/jsx/views/Dashboard.native.js.map +1 -1
  479. package/dist/jsx/views/FilePreview.mjs +1 -2
  480. package/dist/jsx/views/FilePreview.mjs.map +1 -1
  481. package/dist/jsx/views/FilePreview.native.js +1 -2
  482. package/dist/jsx/views/Gantt.mjs +1 -1
  483. package/dist/jsx/views/Gantt.native.js +1 -1
  484. package/dist/jsx/views/Kanban.mjs +1 -1
  485. package/dist/jsx/views/Kanban.native.js +1 -1
  486. package/dist/jsx/views/Matrix.mjs +1 -1
  487. package/dist/jsx/views/Matrix.native.js +1 -1
  488. package/dist/jsx/views/Matrix.native.js.map +1 -1
  489. package/dist/jsx/views/ReportBuilder.mjs +1 -1
  490. package/dist/jsx/views/ReportBuilder.native.js +1 -1
  491. package/package.json +7 -7
  492. package/src/Avatar/index.tsx +1 -1
  493. package/src/Carousel/Carousel.native.spec.tsx +4 -2
  494. package/src/Chip/Chip.native-press.spec.tsx +48 -0
  495. package/src/Chip/Chip.stories.tsx +14 -0
  496. package/src/Chip/Chip.trailingArea.spec.tsx +259 -0
  497. package/src/Chip/Chip.trailingToggle.spec.tsx +2 -2
  498. package/src/Chip/index.tsx +44 -18
  499. package/src/DropDownPanel/index.tsx +2 -2
  500. package/src/Meter/Meter.spec.tsx +5 -4
  501. package/src/Meter/meter.ts +4 -3
  502. package/src/ScrollView.ts +2 -0
  503. package/src/SheetModal/SheetModal.consumerProps.native.spec.tsx +89 -0
  504. package/src/SheetModal/SheetModal.consumerProps.spec.tsx +104 -0
  505. package/src/SheetModal/SheetModal.stories.tsx +36 -4
  506. package/src/SheetModal/index.native.tsx +7 -5
  507. package/src/SheetModal/index.tsx +31 -8
  508. package/src/Tabs/Tabs.measurement.spec.tsx +2 -2
  509. package/src/Tabs/Tabs.stories.tsx +6 -3
  510. package/src/Tabs/Tabs.tamagui.spec.tsx +213 -0
  511. package/src/Tabs/index.tsx +96 -25
  512. package/src/actions/ActionButton.spec.tsx +31 -0
  513. package/src/code/LogView.tsx +1 -1
  514. package/src/feedback/ConfirmDialog.stories.tsx +41 -5
  515. package/src/hooks/useDirection.ts +2 -67
  516. package/src/index.ts +1 -1
  517. package/src/layouts/IdentityPlate.native-press.spec.tsx +3 -3
  518. package/src/layouts/IdentityPlate.tsx +1 -1
  519. package/src/layouts/Sidebar.spec.tsx +29 -0
  520. package/src/layouts/StatusDot.tsx +9 -1
  521. package/src/layouts/StatusGlyphStrip.tsx +2 -2
  522. package/src/layouts/attachments.tsx +1 -1
  523. package/src/layouts/index.tsx +1 -0
  524. package/src/layouts/sidebar.tsx +5 -3
  525. package/src/layouts/warningScope.spec.tsx +71 -0
  526. package/src/linearGradientSetup.native.spec.ts +2 -2
  527. package/src/tamagui.ts +1 -1
  528. package/src/textAccentSecondary.spec.tsx +2 -2
  529. package/src/views/FilePreview.tsx +1 -1
  530. package/types/Chip/index.d.ts +14 -0
  531. package/types/Chip/index.d.ts.map +1 -1
  532. package/types/Meter/meter.d.ts +5 -4
  533. package/types/Meter/meter.d.ts.map +1 -1
  534. package/types/ScrollView.d.ts +3 -0
  535. package/types/ScrollView.d.ts.map +1 -0
  536. package/types/SheetModal/index.d.ts +15 -1
  537. package/types/SheetModal/index.d.ts.map +1 -1
  538. package/types/SheetModal/index.native.d.ts +1 -1
  539. package/types/SheetModal/index.native.d.ts.map +1 -1
  540. package/types/Tabs/index.d.ts +2 -2
  541. package/types/Tabs/index.d.ts.map +1 -1
  542. package/types/hooks/useDirection.d.ts +2 -28
  543. package/types/hooks/useDirection.d.ts.map +1 -1
  544. package/types/index.d.ts +1 -1
  545. package/types/index.d.ts.map +1 -1
  546. package/types/layouts/IdentityPlate.d.ts.map +1 -1
  547. package/types/layouts/StatusDot.d.ts +2 -0
  548. package/types/layouts/StatusDot.d.ts.map +1 -1
  549. package/types/layouts/StatusGlyphStrip.d.ts.map +1 -1
  550. package/types/layouts/index.d.ts +1 -1
  551. package/types/layouts/index.d.ts.map +1 -1
  552. package/types/layouts/sidebar.d.ts.map +1 -1
  553. package/dist/cjs/OverflowRow/index.cjs +0 -239
  554. package/dist/cjs/OverflowRow/index.native.js +0 -252
  555. package/dist/cjs/OverflowRow/index.native.js.map +0 -1
  556. package/dist/cjs/ScrollView/index.native.js +0 -89
  557. package/dist/cjs/ScrollView/index.native.js.map +0 -1
  558. package/dist/cjs/ScrollView/revealFocusedField.native.js +0 -39
  559. package/dist/cjs/ScrollView/revealFocusedField.native.js.map +0 -1
  560. package/dist/cjs/ScrollView/useRevealFocusedField.native.js +0 -76
  561. package/dist/cjs/ScrollView/useRevealFocusedField.native.js.map +0 -1
  562. package/dist/esm/OverflowRow/index.mjs +0 -213
  563. package/dist/esm/OverflowRow/index.mjs.map +0 -1
  564. package/dist/esm/OverflowRow/index.native.js +0 -223
  565. package/dist/esm/OverflowRow/index.native.js.map +0 -1
  566. package/dist/esm/ScrollView/index.mjs +0 -3
  567. package/dist/esm/ScrollView/index.mjs.map +0 -1
  568. package/dist/esm/ScrollView/index.native.js +0 -61
  569. package/dist/esm/ScrollView/index.native.js.map +0 -1
  570. package/dist/esm/ScrollView/revealFocusedField.mjs +0 -11
  571. package/dist/esm/ScrollView/revealFocusedField.mjs.map +0 -1
  572. package/dist/esm/ScrollView/revealFocusedField.native.js +0 -11
  573. package/dist/esm/ScrollView/revealFocusedField.native.js.map +0 -1
  574. package/dist/esm/ScrollView/useRevealFocusedField.mjs +0 -3
  575. package/dist/esm/ScrollView/useRevealFocusedField.mjs.map +0 -1
  576. package/dist/esm/ScrollView/useRevealFocusedField.native.js +0 -48
  577. package/dist/esm/ScrollView/useRevealFocusedField.native.js.map +0 -1
  578. package/dist/jsx/OverflowRow/index.mjs +0 -213
  579. package/dist/jsx/OverflowRow/index.mjs.map +0 -1
  580. package/dist/jsx/OverflowRow/index.native.js +0 -252
  581. package/dist/jsx/OverflowRow/index.native.js.map +0 -1
  582. package/dist/jsx/ScrollView/index.mjs +0 -3
  583. package/dist/jsx/ScrollView/index.mjs.map +0 -1
  584. package/dist/jsx/ScrollView/index.native.js +0 -89
  585. package/dist/jsx/ScrollView/index.native.js.map +0 -1
  586. package/dist/jsx/ScrollView/revealFocusedField.mjs +0 -11
  587. package/dist/jsx/ScrollView/revealFocusedField.mjs.map +0 -1
  588. package/dist/jsx/ScrollView/revealFocusedField.native.js +0 -39
  589. package/dist/jsx/ScrollView/revealFocusedField.native.js.map +0 -1
  590. package/dist/jsx/ScrollView/useRevealFocusedField.mjs +0 -3
  591. package/dist/jsx/ScrollView/useRevealFocusedField.mjs.map +0 -1
  592. package/dist/jsx/ScrollView/useRevealFocusedField.native.js +0 -76
  593. package/dist/jsx/ScrollView/useRevealFocusedField.native.js.map +0 -1
  594. package/src/OverflowRow/OverflowRow.native.spec.tsx +0 -335
  595. package/src/OverflowRow/OverflowRow.spec.tsx +0 -51
  596. package/src/OverflowRow/OverflowRow.stories.tsx +0 -138
  597. package/src/OverflowRow/index.tsx +0 -264
  598. package/src/ScrollView/ScrollView.native.spec.tsx +0 -278
  599. package/src/ScrollView/index.native.tsx +0 -68
  600. package/src/ScrollView/index.tsx +0 -2
  601. package/src/ScrollView/revealFocusedField.spec.ts +0 -26
  602. package/src/ScrollView/revealFocusedField.ts +0 -24
  603. package/src/ScrollView/useRevealFocusedField.native.ts +0 -65
  604. package/src/ScrollView/useRevealFocusedField.ts +0 -4
  605. package/src/hooks/useDirection.native.ts +0 -16
  606. package/src/hooks/useDirection.spec.tsx +0 -89
  607. package/types/OverflowRow/index.d.ts +0 -12
  608. package/types/OverflowRow/index.d.ts.map +0 -1
  609. package/types/ScrollView/index.d.ts +0 -3
  610. package/types/ScrollView/index.d.ts.map +0 -1
  611. package/types/ScrollView/index.native.d.ts +0 -4
  612. package/types/ScrollView/index.native.d.ts.map +0 -1
  613. package/types/ScrollView/revealFocusedField.d.ts +0 -15
  614. package/types/ScrollView/revealFocusedField.d.ts.map +0 -1
  615. package/types/ScrollView/useRevealFocusedField.d.ts +0 -4
  616. package/types/ScrollView/useRevealFocusedField.d.ts.map +0 -1
  617. package/types/ScrollView/useRevealFocusedField.native.d.ts +0 -12
  618. package/types/ScrollView/useRevealFocusedField.native.d.ts.map +0 -1
  619. package/types/hooks/useDirection.native.d.ts +0 -11
  620. package/types/hooks/useDirection.native.d.ts.map +0 -1
@@ -0,0 +1,104 @@
1
+ /**
2
+ * FZ-11120: the web twin of `SheetModal.consumerProps.native.spec.tsx`. A
3
+ * sheet that asks for a wider regular-width panel gets it, centred and inside
4
+ * the window, and a `keyboardShouldPersistTaps` reaches the sheet's own scroll
5
+ * body. A sheet that passes neither is unchanged: the panel cap (LC-266), and
6
+ * no value on the body, so the browser's focus handling stays as it was.
7
+ */
8
+ import { SHEET_PANEL_WIDTH } from "@multiplatform.one/forms";
9
+ import { renderWithProviders } from "@multiplatform.one/test-utils";
10
+ import { cleanup, waitFor } from "@testing-library/react";
11
+ import { afterEach, describe, expect, it, vi } from "vitest";
12
+ import { Text } from "tamagui";
13
+ import type { SheetModalProps } from "./index";
14
+ import { SheetModal } from "./index";
15
+
16
+ const screen = vi.hoisted(() => ({ width: 1440, height: 900 }));
17
+ const scrolls = vi.hoisted(() => ({ persist: [] as unknown[] }));
18
+ vi.mock("tamagui", async (importOriginal) => {
19
+ const tamagui = await importOriginal<typeof import("tamagui")>();
20
+ const { createElement, forwardRef } = await import("react");
21
+ const ScrollView = forwardRef<unknown, Record<string, unknown>>((props, ref) => {
22
+ if (props.testID === "sheet-modal-scroll")
23
+ scrolls.persist.push(props.keyboardShouldPersistTaps);
24
+ return createElement(tamagui.Sheet.ScrollView as never, { ...props, ref });
25
+ });
26
+ const Sheet = Object.assign(
27
+ (props: Record<string, unknown>) => createElement(tamagui.Sheet as never, props),
28
+ tamagui.Sheet,
29
+ { ScrollView },
30
+ );
31
+ return {
32
+ ...tamagui,
33
+ Sheet,
34
+ useWindowDimensions: () => ({ ...screen, scale: 1, fontScale: 1 }),
35
+ };
36
+ });
37
+
38
+ afterEach(() => {
39
+ cleanup();
40
+ screen.width = 1440;
41
+ scrolls.persist = [];
42
+ });
43
+
44
+ async function open(props: Partial<SheetModalProps> = {}) {
45
+ renderWithProviders(
46
+ <SheetModal open onOpenChange={() => {}} {...props}>
47
+ <Text>Terminals</Text>
48
+ </SheetModal>,
49
+ );
50
+ let frame: HTMLElement | null = null;
51
+ await waitFor(() => {
52
+ frame = document.querySelector('[role="dialog"]:not([data-sheet-cover])');
53
+ expect(frame).not.toBeNull();
54
+ });
55
+ return frame as unknown as HTMLElement;
56
+ }
57
+
58
+ const atoms = (node: Element) => String(node.className).split(/\s+/).filter(Boolean);
59
+ const widthOf = (frame: HTMLElement) =>
60
+ frame.style.width || atoms(frame).find((a) => a.startsWith("_w-")) || "";
61
+
62
+ describe("SheetModal web panelWidth (FZ-11120, LC-266)", () => {
63
+ it("draws the panel at the width the sheet asks for, centred", async () => {
64
+ const frame = await open({ panelWidth: 1100 });
65
+ expect(frame.getAttribute("data-sheet-form")).toBe("panel");
66
+ expect(widthOf(frame)).toContain("1100px");
67
+ expect(atoms(frame)).toContain("_als-center");
68
+ });
69
+
70
+ it("never runs the panel past the window", async () => {
71
+ screen.width = 1024;
72
+ const frame = await open({ panelWidth: 1366 });
73
+ expect(widthOf(frame)).toContain("1024px");
74
+ });
75
+
76
+ it("keeps the panel cap when the sheet asks for nothing", async () => {
77
+ const frame = await open();
78
+ expect(widthOf(frame)).toContain(`${SHEET_PANEL_WIDTH}px`);
79
+ });
80
+
81
+ it("ignores it at phone width, where the sheet already spans the window", async () => {
82
+ screen.width = 390;
83
+ const frame = await open({ panelWidth: 1100 });
84
+ expect(frame.getAttribute("data-sheet-form")).toBe("bottom");
85
+ expect(widthOf(frame)).not.toContain("1100px");
86
+ });
87
+ });
88
+
89
+ describe("SheetModal web keyboardShouldPersistTaps (FZ-11120, LC-99)", () => {
90
+ it.each([false, true])(
91
+ "hands the consumer's value to the scroll body (fill %s)",
92
+ async (fill) => {
93
+ await open({ scrollable: true, fill, keyboardShouldPersistTaps: "always" });
94
+ await waitFor(() => expect(scrolls.persist.length).toBeGreaterThan(0));
95
+ expect(new Set(scrolls.persist)).toEqual(new Set(["always"]));
96
+ },
97
+ );
98
+
99
+ it.each([false, true])("leaves the body unset when none is given (fill %s)", async (fill) => {
100
+ await open({ scrollable: true, fill });
101
+ await waitFor(() => expect(scrolls.persist.length).toBeGreaterThan(0));
102
+ expect(new Set(scrolls.persist)).toEqual(new Set([undefined]));
103
+ });
104
+ });
@@ -9,6 +9,10 @@ import {
9
9
  import { Button, Input, Select } from "@multiplatform.one/forms";
10
10
  import {
11
11
  ArrowClockwiseIcon,
12
+ CalendarIcon,
13
+ ReceiptIcon,
14
+ UserIcon,
15
+ WarningIcon,
12
16
  CloudArrowUpIcon,
13
17
  ExportIcon,
14
18
  FolderIcon,
@@ -32,6 +36,8 @@ import { OverlayHeader } from "../actions/StandardAction";
32
36
  import { sheetDetent } from "./detents";
33
37
  import { SheetModal } from "./index";
34
38
  import { Paragraph, SizableText } from "../Text";
39
+ import { H2 } from "../Heading";
40
+ import { ListGroup, ListGroupItem, ListRow } from "../views";
35
41
 
36
42
  const projectOptions = ["Inbox", "Launch", "Backlog", "Archive"].map((label) => ({
37
43
  label,
@@ -39,25 +45,46 @@ const projectOptions = ["Inbox", "Launch", "Backlog", "Archive"].map((label) =>
39
45
  icon: <FolderIcon />,
40
46
  }));
41
47
 
48
+ function CustomerPage() {
49
+ return (
50
+ <YStack padding="$4" gap="$4" width="100%" maxWidth={560}>
51
+ <H2>Acme Corp</H2>
52
+ <ListGroup aria-label="Customer">
53
+ <ListGroupItem>
54
+ <ListRow icon={<UserIcon />} title="Jane Doe" meta="Contact" />
55
+ </ListGroupItem>
56
+ <ListGroupItem>
57
+ <ListRow icon={<ReceiptIcon />} title="Open invoices" meta="12" />
58
+ </ListGroupItem>
59
+ <ListGroupItem>
60
+ <ListRow icon={<WarningIcon />} title="Overdue" meta="3" />
61
+ </ListGroupItem>
62
+ <ListGroupItem>
63
+ <ListRow icon={<CalendarIcon />} title="Renewal" meta="March" />
64
+ </ListGroupItem>
65
+ </ListGroup>
66
+ </YStack>
67
+ );
68
+ }
69
+
42
70
  function Harness({
43
71
  scrollable = false,
44
72
  snapPoint,
45
73
  detents,
46
74
  startOpen = false,
75
+ overPage = false,
47
76
  }: {
48
77
  scrollable?: boolean;
49
78
  snapPoint?: number;
50
79
  detents?: number[];
51
80
  startOpen?: boolean;
81
+ overPage?: boolean;
52
82
  }) {
53
83
  const [open, setOpen] = useState(startOpen);
54
84
  const [project, setProject] = useState("launch");
55
85
  return (
56
86
  <YStack minHeight={480} gap="$3">
57
- <Button onPress={() => setOpen(true)}>Open sheet</Button>
58
- <Paragraph size="$2">
59
- Dismiss by tapping the scrim, dragging to the bottom, or pressing Escape.
60
- </Paragraph>
87
+ {overPage ? <CustomerPage /> : <Button onPress={() => setOpen(true)}>Open sheet</Button>}
61
88
  <SheetModal
62
89
  open={open}
63
90
  onOpenChange={setOpen}
@@ -154,6 +181,11 @@ export const OpenOnMount: Story = {
154
181
  render: () => <Harness startOpen />,
155
182
  };
156
183
 
184
+ export const OverPage: Story = {
185
+ name: "Over a page",
186
+ render: () => <Harness startOpen overPage />,
187
+ };
188
+
157
189
  /**
158
190
  * FZ-8439: a confirming sheet with frequent actions. The title leads, Share
159
191
  * sits between the title and the ✓, and Save keeps the trailing edge.
@@ -28,7 +28,7 @@ import {
28
28
  useResolvedKnobs,
29
29
  type MotionStop,
30
30
  nativeAnimationConfig as animationConfig,
31
- overlayScrim,
31
+ sheetScrim,
32
32
  sheetHandle,
33
33
  sheetHandleTone,
34
34
  sheetHandleZone,
@@ -98,6 +98,8 @@ export function SheetModal({
98
98
  children,
99
99
  header: headerContent,
100
100
  headerActions,
101
+ panelWidth,
102
+ keyboardShouldPersistTaps = "handled",
101
103
  snapPoint,
102
104
  detents,
103
105
  scrollable,
@@ -448,7 +450,7 @@ export function SheetModal({
448
450
  accessibilityLabel={t("Close")}
449
451
  >
450
452
  <Animated.View testID="sheet-modal-scrim" style={{ flex: 1, opacity: scrimOpacity }}>
451
- <View flex={1} backgroundColor={overlayScrim} />
453
+ <View flex={1} backgroundColor={sheetScrim} />
452
454
  </Animated.View>
453
455
  </Pressable>
454
456
  <Animated.View
@@ -462,7 +464,7 @@ export function SheetModal({
462
464
  }}
463
465
  testID="sheet-modal-frame"
464
466
  style={{
465
- ...(regular ? { width: sheetPanelWidth(windowWidth) } : null),
467
+ ...(regular ? { width: sheetPanelWidth(windowWidth, panelWidth) } : null),
466
468
  // MPO-64: flex children default to flexShrink 0, so without this
467
469
  // the sheet cannot give way to the keyboard.
468
470
  flexShrink: 1,
@@ -557,7 +559,7 @@ export function SheetModal({
557
559
  <RNScrollView
558
560
  testID="sheet-modal-scroll"
559
561
  style={fillSlot}
560
- keyboardShouldPersistTaps="handled"
562
+ keyboardShouldPersistTaps={keyboardShouldPersistTaps}
561
563
  >
562
564
  {titleScrolls ? (
563
565
  <YStack gap={knobProps.gap.gap}>
@@ -580,7 +582,7 @@ export function SheetModal({
580
582
  <RNScrollView
581
583
  testID="sheet-modal-scroll"
582
584
  style={{ flexGrow: 0 }}
583
- keyboardShouldPersistTaps="handled"
585
+ keyboardShouldPersistTaps={keyboardShouldPersistTaps}
584
586
  >
585
587
  {titleScrolls ? (
586
588
  <YStack gap={knobProps.gap.gap}>
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  import {
13
- overlayScrim,
13
+ sheetScrim,
14
14
  sheetHandle,
15
15
  sheetHandleTone,
16
16
  sheetHandleWidthRatio,
@@ -70,8 +70,22 @@ export interface SheetModalProps {
70
70
  * sheet, so no existing sheet changes shape.
71
71
  */
72
72
  detents?: number[];
73
+ /**
74
+ * The panel's width on a regular-width window, for a body that needs more
75
+ * than `SHEET_PANEL_WIDTH`: two panes side by side (FZ-11120, LC-266). The
76
+ * panel stays centred and never runs past the window, the way an iPad form
77
+ * sheet takes its `preferredContentSize`. A compact window ignores it, since
78
+ * the sheet already spans it.
79
+ */
80
+ panelWidth?: number;
73
81
  /** Wrap children in the sheet's scroll container. */
74
82
  scrollable?: boolean;
83
+ /**
84
+ * The `scrollable` body's own `keyboardShouldPersistTaps` (FZ-11120, LC-99).
85
+ * Omitted, native runs at `"handled"` and web keeps its focus handling;
86
+ * `"always"` keeps the keyboard up through any tap in the body.
87
+ */
88
+ keyboardShouldPersistTaps?: "always" | "never" | "handled";
75
89
  /**
76
90
  * Opt the body into the sheet's remaining height instead of sizing it to
77
91
  * its content. A consumer-owned viewport (a virtualized list, a measured
@@ -109,9 +123,9 @@ const bottomEdges = { borderLeftWidth: 0, borderRightWidth: 0, borderBottomWidth
109
123
  * bottom panel `sheetPanelWidth` wide and centred with the scrim on both
110
124
  * sides. Its side edges stay, so it reads as a panel rather than a band.
111
125
  */
112
- function regularPanel(windowWidth: number) {
126
+ function regularPanel(windowWidth: number, panelWidth: number | undefined) {
113
127
  return {
114
- width: sheetPanelWidth(windowWidth),
128
+ width: sheetPanelWidth(windowWidth, panelWidth),
115
129
  alignSelf: "center",
116
130
  borderBottomWidth: 0,
117
131
  } as const;
@@ -245,6 +259,8 @@ export function SheetModal({
245
259
  children,
246
260
  header: headerContent,
247
261
  headerActions,
262
+ panelWidth,
263
+ keyboardShouldPersistTaps,
248
264
  snapPoint,
249
265
  detents,
250
266
  scrollable,
@@ -302,7 +318,7 @@ export function SheetModal({
302
318
  >
303
319
  <Sheet.Overlay
304
320
  data-sheet-scrim=""
305
- backgroundColor={overlayScrim}
321
+ backgroundColor={sheetScrim}
306
322
  {...transitionProps(knobProps.motion.scrim)}
307
323
  enterStyle={{ opacity: 0 }}
308
324
  exitStyle={{ opacity: 0 }}
@@ -312,7 +328,7 @@ export function SheetModal({
312
328
  {...sheetHandle}
313
329
  {...sheetHandleTone(knobProps.scheme)}
314
330
  {...(regular
315
- ? { width: Math.round(sheetPanelWidth(windowWidth) * sheetHandleWidthRatio) }
331
+ ? { width: Math.round(sheetPanelWidth(windowWidth, panelWidth) * sheetHandleWidthRatio) }
316
332
  : null)}
317
333
  aria-label="Resize"
318
334
  data-sheet-grabber=""
@@ -333,7 +349,7 @@ export function SheetModal({
333
349
  : null)}
334
350
  borderBottomLeftRadius={0}
335
351
  borderBottomRightRadius={0}
336
- {...(regular ? regularPanel(windowWidth) : bottomEdges)}
352
+ {...(regular ? regularPanel(windowWidth, panelWidth) : bottomEdges)}
337
353
  overflow="hidden"
338
354
  {...frameRingReset}
339
355
  >
@@ -349,7 +365,11 @@ export function SheetModal({
349
365
  {fill ? (
350
366
  <View testID="sheet-modal-body" {...fillSlot}>
351
367
  {scrollable ? (
352
- <Sheet.ScrollView testID="sheet-modal-scroll" {...fillSlot}>
368
+ <Sheet.ScrollView
369
+ testID="sheet-modal-scroll"
370
+ keyboardShouldPersistTaps={keyboardShouldPersistTaps}
371
+ {...fillSlot}
372
+ >
353
373
  {titleScrolls ? (
354
374
  <YStack gap={knobProps.gap.gap}>
355
375
  {headerSlot}
@@ -364,7 +384,10 @@ export function SheetModal({
364
384
  )}
365
385
  </View>
366
386
  ) : scrollable ? (
367
- <Sheet.ScrollView testID="sheet-modal-scroll">
387
+ <Sheet.ScrollView
388
+ testID="sheet-modal-scroll"
389
+ keyboardShouldPersistTaps={keyboardShouldPersistTaps}
390
+ >
368
391
  {titleScrolls ? (
369
392
  <YStack gap={knobProps.gap.gap}>
370
393
  {headerSlot}
@@ -224,7 +224,7 @@ describe("Tabs selection indicator colour", () => {
224
224
  );
225
225
 
226
226
  it.each([undefined, "accent"] as const)("keeps %s underline on the host accent", (intent) => {
227
- const tree = renderSelectionTabs({ accent: intent === "accent" });
227
+ const tree = renderSelectionTabs({ variant: "underline", accent: intent === "accent" });
228
228
  act(() => observed.interactions.get("tab-5")("select", last));
229
229
  const indicator = tree.container.querySelector('[data-tabs-indicator="underline"]')!;
230
230
  expect(indicator.className).toContain("_bg-accentBackg");
@@ -234,7 +234,7 @@ describe("Tabs selection indicator colour", () => {
234
234
  it.each(["error", "warning", "success"] as const)(
235
235
  "keeps %s underline in its intent theme",
236
236
  (intent) => {
237
- const tree = renderSelectionTabs({ [intent]: true });
237
+ const tree = renderSelectionTabs({ variant: "underline", [intent]: true });
238
238
  act(() => observed.interactions.get("tab-5")("select", last));
239
239
  const indicator = tree.container.querySelector('[data-tabs-indicator="underline"]')!;
240
240
  expect(indicator.className).toContain("_bg-color9");
@@ -24,12 +24,12 @@ const meta: Meta<typeof Tabs> = {
24
24
  docs: {
25
25
  description: {
26
26
  component:
27
- "Themed app-level Tabs over the tamagui primitive. Underline (desk-style, default) and contained (segmented) variants, sliding intent-colored indicator, scrollable overflow with edge fades, lazy-mountable panels, full keyboard support (ArrowLeft/Right, Home/End). Frappe form layouts are tab-heavy — SchemaForm's tab layout is the follow-up consumer.",
27
+ "Themed app-level Tabs over the tamagui primitive. Frame (tamagui v3 bordered box, default), underline (desk-style), contained (segmented) and band variants, a sliding selection fill with a roving hover and focus highlight, scrollable overflow with edge fades, lazy-mountable panels, full keyboard support (ArrowLeft/Right, Home/End). Frappe form layouts are tab-heavy — SchemaForm's tab layout is the follow-up consumer.",
28
28
  },
29
29
  },
30
30
  },
31
31
  argTypes: {
32
- variant: { control: "select", options: ["underline", "contained", "band"] },
32
+ variant: { control: "select", options: ["frame", "underline", "contained", "band"] },
33
33
  distribution: { control: "select", options: ["content", "equal"] },
34
34
  size: { control: "select", options: ["$2", "$3", "$4", "$5"] },
35
35
  accent: { control: "boolean" },
@@ -85,8 +85,11 @@ const baseItems: TabsItem[] = [
85
85
  // React element's props tree trips a throwing @react-navigation context
86
86
  // getter ("Couldn't find an UnhandledLinkingContext context"), which kills
87
87
  // story loading for the ENTIRE native storybook (verified on iOS sim).
88
+ export const Main: Story = {
89
+ render: (args) => <Tabs {...args} items={baseItems} />,
90
+ };
91
+
88
92
  export const Underline: Story = {
89
- name: "Main",
90
93
  args: { variant: "underline" },
91
94
  render: (args) => <Tabs {...args} items={baseItems} />,
92
95
  };
@@ -0,0 +1,213 @@
1
+ /**
2
+ * FZ-11426 (FZ-11419's Tabs step): Tabs follows tamagui.dev's v3 Tabs. The
3
+ * default variant is `frame`: a bordered box (`controlBorderOutlined` edge,
4
+ * `containerRadius` corners, at least a hairline under every preset), tabs
5
+ * that fill the row, the active tab a sliding `$selectedBackground` fill, a
6
+ * hairline separator under the strip and the panel on a `$background` plate
7
+ * padded by `panelPadding`. tamagui's roving intent indicator slides to the
8
+ * hovered or keyboard-focused tab and fades out when neither rests on one.
9
+ *
10
+ * happy-dom cascades no Tamagui CSS, so this compares the atomic classes each
11
+ * part asks for with a probe that spreads the same fragments.
12
+ */
13
+ import {
14
+ boldPreset,
15
+ consolePreset,
16
+ createDefaultThemeConfig,
17
+ defaultPreset,
18
+ densePreset,
19
+ heroPreset,
20
+ Preset,
21
+ roomyPreset,
22
+ storefrontPreset,
23
+ useResolvedKnobs,
24
+ } from "@multiplatform.one/theme";
25
+ import { act, cleanup, fireEvent, render, screen } from "@testing-library/react";
26
+ import { TamaguiProvider, View, YStack } from "tamagui";
27
+ import { afterEach, describe, expect, it } from "vitest";
28
+ import { Tabs, type TabsItem } from "./index";
29
+
30
+ afterEach(cleanup);
31
+
32
+ const presets = {
33
+ Default: defaultPreset,
34
+ Bold: boldPreset,
35
+ Hero: heroPreset,
36
+ Dense: densePreset,
37
+ Roomy: roomyPreset,
38
+ Console: consolePreset,
39
+ Storefront: storefrontPreset,
40
+ } as const;
41
+
42
+ const houseConfig = createDefaultThemeConfig();
43
+ const schemes = ["light", "dark"] as const;
44
+ type Scheme = (typeof schemes)[number];
45
+ type Knobs = (typeof presets)[keyof typeof presets]["knobs"];
46
+
47
+ const cells = Object.entries(presets).flatMap(([name, preset]) =>
48
+ schemes.map((scheme) => [name, scheme, preset.knobs] as const),
49
+ );
50
+
51
+ const items: TabsItem[] = [
52
+ { value: "profile", label: "Profile", content: "Profile body" },
53
+ { value: "connections", label: "Connections", content: "Connections body" },
54
+ { value: "notifications", label: "Notifications", content: "Notifications body" },
55
+ ];
56
+
57
+ function FrameProbe() {
58
+ const { knobProps } = useResolvedKnobs({ component: "Tabs" });
59
+ return (
60
+ <>
61
+ <View
62
+ testID="frame-probe"
63
+ {...knobProps.controlBorderOutlined}
64
+ {...knobProps.containerRadius}
65
+ />
66
+ <View testID="panel-probe" {...knobProps.panelPadding} />
67
+ </>
68
+ );
69
+ }
70
+
71
+ function houseRender(
72
+ knobs: Knobs,
73
+ scheme: Scheme,
74
+ props: Partial<Parameters<typeof Tabs>[0]> = {},
75
+ ) {
76
+ return render(
77
+ <TamaguiProvider config={houseConfig.tamagui} defaultTheme={scheme} disableInjectCSS>
78
+ <YStack backgroundColor="$background">
79
+ <Preset overrides={knobs}>
80
+ <FrameProbe />
81
+ <Tabs items={items} {...props} />
82
+ </Preset>
83
+ </YStack>
84
+ </TamaguiProvider>,
85
+ );
86
+ }
87
+
88
+ const dump = (el: Element) => `class="${el.className}"`;
89
+ const STATE = /\d*(hover|active|focus|press)/;
90
+
91
+ function rest(el: Element, ...prefixes: string[]): string[] {
92
+ return Array.from(el.classList)
93
+ .filter((c) => prefixes.some((p) => c.startsWith(p)))
94
+ .filter((c) => !STATE.test(c))
95
+ .sort();
96
+ }
97
+
98
+ const edgeColour = (el: Element) => rest(el, "_btc-", "_brc-", "_bbc-", "_blc-", "_bc-");
99
+ const edgeWidth = (el: Element) => rest(el, "_btw-", "_brw-", "_bbw-", "_blw-", "_bw-");
100
+ const radius = (el: Element) => rest(el, "_btlr-", "_btrr-", "_bbrr-", "_bblr-", "_br-");
101
+ const padding = (el: Element) => rest(el, "_pt-", "_pr-", "_pb-", "_pl-", "_p-");
102
+
103
+ const root = () => document.querySelector("[data-tabs-variant]") as HTMLElement;
104
+ const tabs = () => screen.getAllByRole("tab");
105
+ const grows = (el: HTMLElement) => el.style.flexGrow === "1" || el.classList.contains("_fg-1");
106
+
107
+ describe("frame Tabs: tamagui v3's bordered box", () => {
108
+ it.each(cells)("%s, %s: the default variant is the frame", (_name, scheme, knobs) => {
109
+ houseRender(knobs, scheme);
110
+ expect(root().getAttribute("data-tabs-variant")).toBe("frame");
111
+ });
112
+
113
+ it.each(cells)(
114
+ "%s, %s: the root edge and corners are the outlined fragment and the container radius",
115
+ (_name, scheme, knobs) => {
116
+ houseRender(knobs, scheme);
117
+ const probe = screen.getByTestId("frame-probe");
118
+ expect(edgeWidth(probe).length, dump(probe)).toBeGreaterThan(0);
119
+ expect(edgeWidth(probe), dump(probe)).not.toContain("_bw-0px");
120
+ expect(edgeWidth(root()), dump(root())).toEqual(edgeWidth(probe));
121
+ expect(edgeColour(root()), dump(root())).toEqual(edgeColour(probe));
122
+ expect(radius(root()), dump(root())).toEqual(radius(probe));
123
+ expect(rest(root(), "_ox-", "_oy-", "_ov-"), dump(root())).not.toEqual([]);
124
+ },
125
+ );
126
+
127
+ it.each(cells)("%s, %s: the tabs fill the row", (_name, scheme, knobs) => {
128
+ houseRender(knobs, scheme);
129
+ const list = document.querySelector("[data-tabs-list]") as HTMLElement;
130
+ expect(grows(list), list.outerHTML.slice(0, 400)).toBe(true);
131
+ expect(list.style.alignSelf, list.outerHTML.slice(0, 400)).toBe("stretch");
132
+ const row = list.parentElement as HTMLElement;
133
+ expect(grows(row), row.outerHTML.slice(0, 300)).toBe(true);
134
+ for (const tab of tabs()) expect(grows(tab), dump(tab)).toBe(true);
135
+ });
136
+
137
+ it.each(cells)(
138
+ "%s, %s: the active tab is a sliding fill, never an underline",
139
+ (_name, scheme, knobs) => {
140
+ houseRender(knobs, scheme);
141
+ const thumb = document.querySelector('[data-tabs-indicator="thumb"]') as HTMLElement;
142
+ expect(thumb, root().outerHTML.slice(0, 400)).not.toBeNull();
143
+ expect(rest(thumb, "_bg-"), dump(thumb)).toEqual([expect.stringMatching(/^_bg-selectedBac/)]);
144
+ expect(document.querySelector('[data-tabs-indicator="underline"]')).toBeNull();
145
+ },
146
+ );
147
+
148
+ it.each(cells)(
149
+ "%s, %s: a hairline separates the strip and the panel sits on a padded plate",
150
+ (_name, scheme, knobs) => {
151
+ houseRender(knobs, scheme);
152
+ const strip = root().firstElementChild as HTMLElement;
153
+ expect(strip.classList.contains("mp-hairline-b"), dump(strip)).toBe(true);
154
+ const host = document.querySelector("[data-tabs-panels]") as HTMLElement;
155
+ expect(rest(host, "_bg-"), dump(host)).toEqual(["_bg-background"]);
156
+ const panel = screen.getByRole("tabpanel");
157
+ const probe = screen.getByTestId("panel-probe");
158
+ expect(padding(probe).length, dump(probe)).toBeGreaterThan(0);
159
+ expect(padding(panel), dump(panel)).toEqual(padding(probe));
160
+ },
161
+ );
162
+ });
163
+
164
+ describe("frame Tabs: the roving intent indicator", () => {
165
+ const intent = () => document.querySelector('[data-tabs-indicator="intent"]') as HTMLElement;
166
+
167
+ it.each(schemes)("%s: hover moves the intent highlight; leaving hides it", (scheme) => {
168
+ houseRender(defaultPreset.knobs, scheme);
169
+ const [, connections, notifications] = tabs();
170
+ fireEvent.mouseEnter(connections);
171
+ expect(intent(), root().outerHTML.slice(0, 400)).not.toBeNull();
172
+ expect(intent().getAttribute("data-intent-value")).toBe("connections");
173
+ expect(rest(intent(), "_o-"), dump(intent())).toEqual(["_o-1"]);
174
+ expect(rest(intent(), "_bg-"), dump(intent())).toEqual(["_bg-color3"]);
175
+ fireEvent.mouseLeave(connections);
176
+ fireEvent.mouseEnter(notifications);
177
+ expect(intent().getAttribute("data-intent-value")).toBe("notifications");
178
+ fireEvent.mouseLeave(notifications);
179
+ expect(intent().getAttribute("data-intent-value")).toBeNull();
180
+ expect(rest(intent(), "_o-"), dump(intent())).toEqual(["_o-0"]);
181
+ });
182
+
183
+ it("the active tab shows no intent highlight over its fill", () => {
184
+ houseRender(defaultPreset.knobs, "light");
185
+ fireEvent.mouseEnter(tabs()[0]);
186
+ expect(intent()?.getAttribute("data-intent-value") ?? null).toBeNull();
187
+ });
188
+
189
+ it("keyboard focus under manual activation moves the intent highlight", () => {
190
+ houseRender(defaultPreset.knobs, "light", { activationMode: "manual" });
191
+ act(() => tabs()[2].focus());
192
+ expect(intent().getAttribute("data-intent-value")).toBe("notifications");
193
+ expect(tabs()[0]).toHaveAttribute("aria-selected", "true");
194
+ });
195
+ });
196
+
197
+ describe("frame Tabs keeps tab semantics", () => {
198
+ it("role=tab, aria-selected, one tab stop, Arrow, Home and End", () => {
199
+ houseRender(defaultPreset.knobs, "light");
200
+ const [first, second, third] = tabs();
201
+ expect(first).toHaveAttribute("aria-selected", "true");
202
+ expect(tabs().filter((tab) => tab.getAttribute("tabindex") === "0")).toEqual([first]);
203
+ act(() => first.focus());
204
+ fireEvent.keyDown(first, { key: "ArrowRight" });
205
+ expect(document.activeElement).toBe(second);
206
+ expect(second).toHaveAttribute("aria-selected", "true");
207
+ fireEvent.keyDown(second, { key: "End" });
208
+ expect(document.activeElement).toBe(third);
209
+ fireEvent.keyDown(third, { key: "Home" });
210
+ expect(document.activeElement).toBe(first);
211
+ expect(first).toHaveAttribute("aria-selected", "true");
212
+ });
213
+ });