@multiplatform.one/components 8.3.0 → 8.5.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 (701) hide show
  1. package/README.md +18 -3
  2. package/dist/cjs/Accordion/index.native.js +1 -1
  3. package/dist/cjs/Accordion/index.native.js.map +1 -1
  4. package/dist/cjs/Alert/index.native.js.map +1 -1
  5. package/dist/cjs/AnimateHeight/index.native.js.map +1 -1
  6. package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
  7. package/dist/cjs/Avatar/index.native.js.map +1 -1
  8. package/dist/cjs/Badge/index.native.js.map +1 -1
  9. package/dist/cjs/Button.native.js.map +1 -1
  10. package/dist/cjs/Card.native.js.map +1 -1
  11. package/dist/cjs/CardFooter.native.js.map +1 -1
  12. package/dist/cjs/CardHeader.native.js.map +1 -1
  13. package/dist/cjs/Carousel/geometry.native.js.map +1 -1
  14. package/dist/cjs/Carousel/index.native.js +3 -3
  15. package/dist/cjs/Carousel/index.native.js.map +1 -1
  16. package/dist/cjs/ChatTurn/index.native.js.map +1 -1
  17. package/dist/cjs/CheckGlyph/MenuCheckColumn.native.js.map +1 -1
  18. package/dist/cjs/CheckGlyph/index.native.js.map +1 -1
  19. package/dist/cjs/Chip/index.cjs +1 -1
  20. package/dist/cjs/Chip/index.native.js +1 -1
  21. package/dist/cjs/Chip/index.native.js.map +1 -1
  22. package/dist/cjs/ChoiceChips/index.native.js +1 -1
  23. package/dist/cjs/ChoiceChips/index.native.js.map +1 -1
  24. package/dist/cjs/Collapsible.native.js.map +1 -1
  25. package/dist/cjs/ContextMenu/index.native.js.map +1 -1
  26. package/dist/cjs/CopyField/CopyMenuButton.native.js +1 -1
  27. package/dist/cjs/CopyField/CopyMenuButton.native.js.map +1 -1
  28. package/dist/cjs/CopyField/index.native.js.map +1 -1
  29. package/dist/cjs/Dialog.native.js +1 -1
  30. package/dist/cjs/Dialog.native.js.map +1 -1
  31. package/dist/cjs/Diff/diff.native.js.map +1 -1
  32. package/dist/cjs/Diff/index.native.js.map +1 -1
  33. package/dist/cjs/DotIndicator/index.native.js.map +1 -1
  34. package/dist/cjs/DrillStack/DrillBar.native.js.map +1 -1
  35. package/dist/cjs/DrillStack/context.native.js.map +1 -1
  36. package/dist/cjs/DrillStack/drillMotion.native.js.map +1 -1
  37. package/dist/cjs/DropDownPanel/index.native.js.map +1 -1
  38. package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
  39. package/dist/cjs/DropdownMenu/menuSettle.native.js.map +1 -1
  40. package/dist/cjs/ElapsedProgress/index.native.js.map +1 -1
  41. package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
  42. package/dist/cjs/Heading.native.js.map +1 -1
  43. package/dist/cjs/Kbd/index.native.js.map +1 -1
  44. package/dist/cjs/Kbd/keys.native.js.map +1 -1
  45. package/dist/cjs/Lightbox/MediaControl.native.js.map +1 -1
  46. package/dist/cjs/Lightbox/index.gnome.native.js.map +1 -1
  47. package/dist/cjs/Lightbox/index.native.js +1 -1
  48. package/dist/cjs/Lightbox/shared.native.js.map +1 -1
  49. package/dist/cjs/Lightbox/useLightbox.native.js.map +1 -1
  50. package/dist/cjs/MachineLiteral/index.native.js.map +1 -1
  51. package/dist/cjs/Material/blur.native.js +5 -1
  52. package/dist/cjs/Material/blur.native.js.map +1 -1
  53. package/dist/cjs/Material/index.native.js.map +1 -1
  54. package/dist/cjs/Meter/index.native.js +1 -1
  55. package/dist/cjs/Meter/index.native.js.map +1 -1
  56. package/dist/cjs/Meter/meter.native.js.map +1 -1
  57. package/dist/cjs/MiddleEllipsisText/middleSplit.native.js.map +1 -1
  58. package/dist/cjs/MiddleEllipsisText/types.native.js.map +1 -1
  59. package/dist/cjs/OverflowRow/index.native.js +1 -1
  60. package/dist/cjs/OverflowRow/index.native.js.map +1 -1
  61. package/dist/cjs/Pagination.native.js +1 -1
  62. package/dist/cjs/Pagination.native.js.map +1 -1
  63. package/dist/cjs/Popover.native.js +1 -1
  64. package/dist/cjs/Popover.native.js.map +1 -1
  65. package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
  66. package/dist/cjs/Quote/index.native.js.map +1 -1
  67. package/dist/cjs/SchemeToggle/index.native.js +1 -1
  68. package/dist/cjs/SchemeToggle/index.native.js.map +1 -1
  69. package/dist/cjs/ScrollView/revealFocusedField.native.js.map +1 -1
  70. package/dist/cjs/ScrollView/useRevealFocusedField.native.js +3 -2
  71. package/dist/cjs/ScrollView/useRevealFocusedField.native.js.map +1 -1
  72. package/dist/cjs/Separator/index.native.js.map +1 -1
  73. package/dist/cjs/Sheet.native.js.map +1 -1
  74. package/dist/cjs/SheetModal/SheetHeader.native.js.map +1 -1
  75. package/dist/cjs/SheetModal/SheetNavigation.native.js.map +1 -1
  76. package/dist/cjs/SheetModal/detents.cjs +11 -37
  77. package/dist/cjs/SheetModal/detents.native.js +11 -43
  78. package/dist/cjs/SheetModal/detents.native.js.map +1 -1
  79. package/dist/cjs/SheetModal/index.cjs +13 -1
  80. package/dist/cjs/SheetModal/index.native.js +21 -11
  81. package/dist/cjs/SheetModal/index.native.js.map +1 -1
  82. package/dist/cjs/SheetModal/useSheetFrameFocus.native.js.map +1 -1
  83. package/dist/cjs/SheetScrollView/index.native.js +1 -1
  84. package/dist/cjs/SheetScrollView/index.native.js.map +1 -1
  85. package/dist/cjs/SheetScrollView/sheetHandoff.native.js.map +1 -1
  86. package/dist/cjs/Skeleton/index.native.js.map +1 -1
  87. package/dist/cjs/SkipLink/index.native.js.map +1 -1
  88. package/dist/cjs/SortableList/SortableHandle.native.js.map +1 -1
  89. package/dist/cjs/SortableList/index.native.js.map +1 -1
  90. package/dist/cjs/SortableList/useSortableRows.native.js.map +1 -1
  91. package/dist/cjs/SortableList/useUserOrder.native.js.map +1 -1
  92. package/dist/cjs/SwipeDismissRow/index.native.js.map +1 -1
  93. package/dist/cjs/Tabs/index.cjs +16 -39
  94. package/dist/cjs/Tabs/index.native.js +18 -41
  95. package/dist/cjs/Tabs/index.native.js.map +1 -1
  96. package/dist/cjs/Text.native.js.map +1 -1
  97. package/dist/cjs/ThemePresetPicker/index.native.js +1 -1
  98. package/dist/cjs/ThemePresetPicker/index.native.js.map +1 -1
  99. package/dist/cjs/Toast/index.native.js.map +1 -1
  100. package/dist/cjs/Toast/store.native.js.map +1 -1
  101. package/dist/cjs/Tooltip/index.native.js +9 -1
  102. package/dist/cjs/Tooltip/index.native.js.map +1 -1
  103. package/dist/cjs/Tooltip/nativePress.native.js.map +1 -1
  104. package/dist/cjs/Tooltip/tooltipShared.native.js.map +1 -1
  105. package/dist/cjs/TreeSelect/index.native.js +2 -2
  106. package/dist/cjs/TreeSelect/index.native.js.map +1 -1
  107. package/dist/cjs/TreeSelect/treeSelectModel.native.js.map +1 -1
  108. package/dist/cjs/Video/PlayerChrome.native.js.map +1 -1
  109. package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
  110. package/dist/cjs/Video/types.native.js.map +1 -1
  111. package/dist/cjs/Wheel/index.native.js.map +1 -1
  112. package/dist/cjs/Wizard/index.native.js +2 -2
  113. package/dist/cjs/Wizard/index.native.js.map +1 -1
  114. package/dist/cjs/actions/ActionBar.native.js.map +1 -1
  115. package/dist/cjs/actions/DangerSection.native.js.map +1 -1
  116. package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
  117. package/dist/cjs/actions/HeaderActions.native.js +2 -2
  118. package/dist/cjs/actions/HeaderActions.native.js.map +1 -1
  119. package/dist/cjs/actions/StandardAction.native.js +1 -1
  120. package/dist/cjs/actions/StandardAction.native.js.map +1 -1
  121. package/dist/cjs/actions/devWarn.native.js.map +1 -1
  122. package/dist/cjs/actions/index.native.js.map +1 -1
  123. package/dist/cjs/actions/severity.native.js.map +1 -1
  124. package/dist/cjs/appShell/AppShell.cjs +91 -107
  125. package/dist/cjs/appShell/AppShell.native.js +101 -115
  126. package/dist/cjs/appShell/AppShell.native.js.map +1 -1
  127. package/dist/cjs/appShell/BottomChromeClearance.native.js.map +1 -1
  128. package/dist/cjs/appShell/Dock.native.js.map +1 -1
  129. package/dist/cjs/appShell/MpoTabHost.native.js.map +1 -1
  130. package/dist/cjs/appShell/ScopeMenu.native.js +1 -1
  131. package/dist/cjs/appShell/ScopeMenu.native.js.map +1 -1
  132. package/dist/cjs/appShell/SettingsSplit.native.js +1 -1
  133. package/dist/cjs/appShell/SettingsSplit.native.js.map +1 -1
  134. package/dist/cjs/appShell/Springboard.cjs +2 -2
  135. package/dist/cjs/appShell/Springboard.native.js +3 -3
  136. package/dist/cjs/appShell/Springboard.native.js.map +1 -1
  137. package/dist/cjs/appShell/SystemBar.cjs +147 -55
  138. package/dist/cjs/appShell/SystemBar.native.js +152 -59
  139. package/dist/cjs/appShell/SystemBar.native.js.map +1 -1
  140. package/dist/cjs/appShell/TabBar.native.js +1 -1
  141. package/dist/cjs/appShell/TabBar.native.js.map +1 -1
  142. package/dist/cjs/appShell/TabHost.native.js +5 -2
  143. package/dist/cjs/appShell/TabHost.native.js.map +1 -1
  144. package/dist/cjs/appShell/appTile.native.js +1 -1
  145. package/dist/cjs/appShell/appTile.native.js.map +1 -1
  146. package/dist/cjs/appShell/bottomChrome.native.js.map +1 -1
  147. package/dist/cjs/appShell/index.native.js.map +1 -1
  148. package/dist/cjs/appShell/stackBack.cjs +49 -0
  149. package/dist/cjs/appShell/stackBack.native.js +55 -0
  150. package/dist/cjs/appShell/stackBack.native.js.map +1 -0
  151. package/dist/cjs/appShell/systemBarFit.cjs +12 -2
  152. package/dist/cjs/appShell/systemBarFit.native.js +16 -2
  153. package/dist/cjs/appShell/systemBarFit.native.js.map +1 -1
  154. package/dist/cjs/charts/Axis.native.js.map +1 -1
  155. package/dist/cjs/charts/BarChart.native.js.map +1 -1
  156. package/dist/cjs/charts/ChartDataView.native.js +2 -2
  157. package/dist/cjs/charts/ChartDataView.native.js.map +1 -1
  158. package/dist/cjs/charts/ChartSurface.native.js.map +1 -1
  159. package/dist/cjs/charts/LineChart.native.js.map +1 -1
  160. package/dist/cjs/charts/PieChart.native.js.map +1 -1
  161. package/dist/cjs/charts/Sparkline.native.js.map +1 -1
  162. package/dist/cjs/charts/accessibility.native.js.map +1 -1
  163. package/dist/cjs/charts/chartHeight.native.js.map +1 -1
  164. package/dist/cjs/charts/composeChart.native.js.map +1 -1
  165. package/dist/cjs/charts/index.native.js.map +1 -1
  166. package/dist/cjs/charts/math.native.js.map +1 -1
  167. package/dist/cjs/charts/series.native.js.map +1 -1
  168. package/dist/cjs/charts/svg.native.js.map +1 -1
  169. package/dist/cjs/charts/types.native.js.map +1 -1
  170. package/dist/cjs/charts/useChartTheme.native.js.map +1 -1
  171. package/dist/cjs/code/Code/index.native.js.map +1 -1
  172. package/dist/cjs/code/CodeBlock/index.cjs +21 -12
  173. package/dist/cjs/code/CodeBlock/index.native.js +28 -19
  174. package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
  175. package/dist/cjs/code/HighlightedCode/index.native.js.map +1 -1
  176. package/dist/cjs/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
  177. package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
  178. package/dist/cjs/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
  179. package/dist/cjs/code/HoldSelect/index.cjs +69 -0
  180. package/dist/cjs/code/HoldSelect/index.native.js +132 -0
  181. package/dist/cjs/code/HoldSelect/index.native.js.map +1 -0
  182. package/dist/cjs/code/HoldSelect/tapGate.cjs +88 -0
  183. package/dist/cjs/code/HoldSelect/tapGate.native.js +95 -0
  184. package/dist/cjs/code/HoldSelect/tapGate.native.js.map +1 -0
  185. package/dist/cjs/code/LogView.cjs +14 -3
  186. package/dist/cjs/code/LogView.native.js +15 -3
  187. package/dist/cjs/code/LogView.native.js.map +1 -1
  188. package/dist/cjs/code/PayloadView/index.native.js +5 -5
  189. package/dist/cjs/code/PayloadView/index.native.js.map +1 -1
  190. package/dist/cjs/code/PayloadView/payloadModel.native.js.map +1 -1
  191. package/dist/cjs/code/Pre/index.native.js.map +1 -1
  192. package/dist/cjs/code/index.cjs +1 -0
  193. package/dist/cjs/code/index.native.js +7 -6
  194. package/dist/cjs/code/index.native.js.map +1 -1
  195. package/dist/cjs/componentColors.cjs +5 -4
  196. package/dist/cjs/componentColors.native.js +5 -4
  197. package/dist/cjs/componentColors.native.js.map +1 -1
  198. package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
  199. package/dist/cjs/feedback/NotifyHost.native.js +2 -2
  200. package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
  201. package/dist/cjs/feedback/copy.native.js.map +1 -1
  202. package/dist/cjs/feedback/index.native.js.map +1 -1
  203. package/dist/cjs/feedback/notify.native.js.map +1 -1
  204. package/dist/cjs/feedback/route.native.js.map +1 -1
  205. package/dist/cjs/feedback/store.native.js.map +1 -1
  206. package/dist/cjs/formLayouts/FormLayouts.native.js +1 -1
  207. package/dist/cjs/formLayouts/FormLayouts.native.js.map +1 -1
  208. package/dist/cjs/formLayouts/PreferencePanel.native.js +2 -2
  209. package/dist/cjs/formLayouts/PreferencePanel.native.js.map +1 -1
  210. package/dist/cjs/formLayouts/index.native.js.map +1 -1
  211. package/dist/cjs/hooks/index.native.js +1 -1
  212. package/dist/cjs/hooks/index.native.js.map +1 -1
  213. package/dist/cjs/hooks/useClipboard.native.js.map +1 -1
  214. package/dist/cjs/hooks/useDocumentTitle.native.js.map +1 -1
  215. package/dist/cjs/icons/CheckRegular.native.js.map +1 -1
  216. package/dist/cjs/icons/MinusRegular.native.js.map +1 -1
  217. package/dist/cjs/icons/index.native.js.map +1 -1
  218. package/dist/cjs/icons/lucide.native.js.map +1 -1
  219. package/dist/cjs/icons/themed.native.js.map +1 -1
  220. package/dist/cjs/images/Image/ImageFrame.native.js +1 -1
  221. package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -1
  222. package/dist/cjs/images/Image/framing.native.js.map +1 -1
  223. package/dist/cjs/images/Image/index.native.js +1 -1
  224. package/dist/cjs/images/Image/mediaRadius.native.js.map +1 -1
  225. package/dist/cjs/images/Image/shared.native.js +1 -1
  226. package/dist/cjs/images/Image/shared.native.js.map +1 -1
  227. package/dist/cjs/images/Image/types.native.js.map +1 -1
  228. package/dist/cjs/images/RemoteArt/index.native.js +1 -1
  229. package/dist/cjs/images/RemoteArt/remoteArtCache.native.js.map +1 -1
  230. package/dist/cjs/images/RemoteArt/svgMarkup.native.js.map +1 -1
  231. package/dist/cjs/images/RemoteArt/types.native.js.map +1 -1
  232. package/dist/cjs/images/index.native.js.map +1 -1
  233. package/dist/cjs/index.gnome.native.js +22 -22
  234. package/dist/cjs/index.gnome.native.js.map +1 -1
  235. package/dist/cjs/index.native.js +46 -46
  236. package/dist/cjs/index.native.js.map +1 -1
  237. package/dist/cjs/knobImmuneExports.native.js.map +1 -1
  238. package/dist/cjs/layouts/AsyncBoundary.cjs +21 -1
  239. package/dist/cjs/layouts/AsyncBoundary.native.js +23 -3
  240. package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
  241. package/dist/cjs/layouts/Debug/index.native.js.map +1 -1
  242. package/dist/cjs/layouts/EmptyState.native.js +1 -1
  243. package/dist/cjs/layouts/EmptyState.native.js.map +1 -1
  244. package/dist/cjs/layouts/IdentityPlate.native.js +1 -1
  245. package/dist/cjs/layouts/IdentityPlate.native.js.map +1 -1
  246. package/dist/cjs/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  247. package/dist/cjs/layouts/PageTemplates.native.js.map +1 -1
  248. package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
  249. package/dist/cjs/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  250. package/dist/cjs/layouts/StatusDot.native.js.map +1 -1
  251. package/dist/cjs/layouts/StatusGlyphStrip.native.js +1 -1
  252. package/dist/cjs/layouts/StatusGlyphStrip.native.js.map +1 -1
  253. package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
  254. package/dist/cjs/layouts/asyncFailure.cjs +15 -15
  255. package/dist/cjs/layouts/asyncFailure.native.js +15 -15
  256. package/dist/cjs/layouts/asyncFailure.native.js.map +1 -1
  257. package/dist/cjs/layouts/attachments.cjs +45 -6
  258. package/dist/cjs/layouts/attachments.native.js +49 -8
  259. package/dist/cjs/layouts/attachments.native.js.map +1 -1
  260. package/dist/cjs/layouts/barTitleSpan.native.js.map +1 -1
  261. package/dist/cjs/layouts/bottomAccessory.native.js.map +1 -1
  262. package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
  263. package/dist/cjs/layouts/index.native.js +3 -3
  264. package/dist/cjs/layouts/index.native.js.map +1 -1
  265. package/dist/cjs/layouts/page.cjs +89 -13
  266. package/dist/cjs/layouts/page.native.js +95 -16
  267. package/dist/cjs/layouts/page.native.js.map +1 -1
  268. package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
  269. package/dist/cjs/layouts/screenScroll.cjs +8 -4
  270. package/dist/cjs/layouts/screenScroll.native.js +12 -4
  271. package/dist/cjs/layouts/screenScroll.native.js.map +1 -1
  272. package/dist/cjs/layouts/shellSidebarSlot.native.js.map +1 -1
  273. package/dist/cjs/layouts/sidebar.native.js +1 -1
  274. package/dist/cjs/layouts/sidebar.native.js.map +1 -1
  275. package/dist/cjs/layouts/tags.cjs +2 -1
  276. package/dist/cjs/layouts/tags.native.js +4 -3
  277. package/dist/cjs/layouts/tags.native.js.map +1 -1
  278. package/dist/cjs/layouts/timeline.native.js +2 -2
  279. package/dist/cjs/layouts/timeline.native.js.map +1 -1
  280. package/dist/cjs/layouts/toolbar.native.js +1 -1
  281. package/dist/cjs/layouts/toolbar.native.js.map +1 -1
  282. package/dist/cjs/shared/actionScan.native.js.map +1 -1
  283. package/dist/cjs/shared/i18n.native.js.map +1 -1
  284. package/dist/cjs/shared/restoreRetries.native.js.map +1 -1
  285. package/dist/cjs/shared/t.native.js.map +1 -1
  286. package/dist/cjs/shared/textRidesText.native.js.map +1 -1
  287. package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -1
  288. package/dist/cjs/surfaces.native.js +1 -1
  289. package/dist/cjs/surfaces.native.js.map +1 -1
  290. package/dist/cjs/tamagui.native.js +1 -1
  291. package/dist/cjs/tamagui.native.js.map +1 -1
  292. package/dist/cjs/testSetup.native.js.map +1 -1
  293. package/dist/cjs/utils/unwrapText.native.js.map +1 -1
  294. package/dist/cjs/views/Calendar.native.js +1 -1
  295. package/dist/cjs/views/Calendar.native.js.map +1 -1
  296. package/dist/cjs/views/CardGrid.native.js.map +1 -1
  297. package/dist/cjs/views/Dashboard.cjs +18 -5
  298. package/dist/cjs/views/Dashboard.native.js +20 -7
  299. package/dist/cjs/views/Dashboard.native.js.map +1 -1
  300. package/dist/cjs/views/FilePreview.cjs +624 -0
  301. package/dist/cjs/views/FilePreview.native.js +675 -0
  302. package/dist/cjs/views/FilePreview.native.js.map +1 -0
  303. package/dist/cjs/views/Gantt.native.js +2 -2
  304. package/dist/cjs/views/Gantt.native.js.map +1 -1
  305. package/dist/cjs/views/GanttDateGrip.native.js.map +1 -1
  306. package/dist/cjs/views/ImageGrid.native.js +2 -2
  307. package/dist/cjs/views/ImageGrid.native.js.map +1 -1
  308. package/dist/cjs/views/Kanban.native.js +1 -1
  309. package/dist/cjs/views/List.native.js.map +1 -1
  310. package/dist/cjs/views/ListGroup.cjs +2 -2
  311. package/dist/cjs/views/ListGroup.native.js +3 -3
  312. package/dist/cjs/views/ListGroup.native.js.map +1 -1
  313. package/dist/cjs/views/ListRow.native.js.map +1 -1
  314. package/dist/cjs/views/Matrix.native.js +2 -2
  315. package/dist/cjs/views/Matrix.native.js.map +1 -1
  316. package/dist/cjs/views/ReportBuilder.native.js +2 -2
  317. package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
  318. package/dist/cjs/views/ShortcutCard.native.js.map +1 -1
  319. package/dist/cjs/views/TreeView.native.js.map +1 -1
  320. package/dist/cjs/views/calendarMath.native.js.map +1 -1
  321. package/dist/cjs/views/ganttIntervals.native.js.map +1 -1
  322. package/dist/cjs/views/ganttMath.native.js.map +1 -1
  323. package/dist/cjs/views/index.cjs +13 -0
  324. package/dist/cjs/views/index.native.js +14 -1
  325. package/dist/cjs/views/index.native.js.map +1 -1
  326. package/dist/cjs/views/kanbanDnd.native.js.map +1 -1
  327. package/dist/cjs/views/matrixMath.native.js.map +1 -1
  328. package/dist/cjs/views/sameNameScope.native.js.map +1 -1
  329. package/dist/cjs/views/treeViewDnd.native.js.map +1 -1
  330. package/dist/cjs/views/treeViewLayout.native.js.map +1 -1
  331. package/dist/cjs/views/treeViewMotion.native.js.map +1 -1
  332. package/dist/cjs/views/treeViewReveal.native.js.map +1 -1
  333. package/dist/cjs/views/usePageFlowLoadMore.native.js.map +1 -1
  334. package/dist/cjs/views/widgetChrome.native.js.map +1 -1
  335. package/dist/esm/Chip/index.mjs +3 -3
  336. package/dist/esm/Chip/index.mjs.map +1 -1
  337. package/dist/esm/Chip/index.native.js +3 -3
  338. package/dist/esm/Chip/index.native.js.map +1 -1
  339. package/dist/esm/Material/blur.native.js +5 -1
  340. package/dist/esm/Material/blur.native.js.map +1 -1
  341. package/dist/esm/ScrollView/useRevealFocusedField.native.js +3 -2
  342. package/dist/esm/ScrollView/useRevealFocusedField.native.js.map +1 -1
  343. package/dist/esm/SheetModal/detents.mjs +2 -32
  344. package/dist/esm/SheetModal/detents.mjs.map +1 -1
  345. package/dist/esm/SheetModal/detents.native.js +2 -38
  346. package/dist/esm/SheetModal/detents.native.js.map +1 -1
  347. package/dist/esm/SheetModal/index.mjs +13 -1
  348. package/dist/esm/SheetModal/index.mjs.map +1 -1
  349. package/dist/esm/SheetModal/index.native.js +22 -12
  350. package/dist/esm/SheetModal/index.native.js.map +1 -1
  351. package/dist/esm/Tabs/index.mjs +16 -40
  352. package/dist/esm/Tabs/index.mjs.map +1 -1
  353. package/dist/esm/Tabs/index.native.js +17 -41
  354. package/dist/esm/Tabs/index.native.js.map +1 -1
  355. package/dist/esm/Tooltip/index.native.js +10 -2
  356. package/dist/esm/Tooltip/index.native.js.map +1 -1
  357. package/dist/esm/appShell/AppShell.mjs +91 -107
  358. package/dist/esm/appShell/AppShell.mjs.map +1 -1
  359. package/dist/esm/appShell/AppShell.native.js +100 -114
  360. package/dist/esm/appShell/AppShell.native.js.map +1 -1
  361. package/dist/esm/appShell/MpoTabHost.mjs.map +1 -1
  362. package/dist/esm/appShell/MpoTabHost.native.js.map +1 -1
  363. package/dist/esm/appShell/Springboard.mjs +1 -1
  364. package/dist/esm/appShell/Springboard.mjs.map +1 -1
  365. package/dist/esm/appShell/Springboard.native.js +1 -1
  366. package/dist/esm/appShell/Springboard.native.js.map +1 -1
  367. package/dist/esm/appShell/SystemBar.mjs +147 -58
  368. package/dist/esm/appShell/SystemBar.mjs.map +1 -1
  369. package/dist/esm/appShell/SystemBar.native.js +152 -62
  370. package/dist/esm/appShell/SystemBar.native.js.map +1 -1
  371. package/dist/esm/appShell/TabHost.native.js +5 -2
  372. package/dist/esm/appShell/TabHost.native.js.map +1 -1
  373. package/dist/esm/appShell/stackBack.mjs +23 -0
  374. package/dist/esm/appShell/stackBack.mjs.map +1 -0
  375. package/dist/esm/appShell/stackBack.native.js +26 -0
  376. package/dist/esm/appShell/stackBack.native.js.map +1 -0
  377. package/dist/esm/appShell/systemBarFit.mjs +12 -2
  378. package/dist/esm/appShell/systemBarFit.mjs.map +1 -1
  379. package/dist/esm/appShell/systemBarFit.native.js +16 -2
  380. package/dist/esm/appShell/systemBarFit.native.js.map +1 -1
  381. package/dist/esm/code/CodeBlock/index.mjs +21 -12
  382. package/dist/esm/code/CodeBlock/index.mjs.map +1 -1
  383. package/dist/esm/code/CodeBlock/index.native.js +21 -12
  384. package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
  385. package/dist/esm/code/HoldSelect/index.mjs +42 -0
  386. package/dist/esm/code/HoldSelect/index.mjs.map +1 -0
  387. package/dist/esm/code/HoldSelect/index.native.js +102 -0
  388. package/dist/esm/code/HoldSelect/index.native.js.map +1 -0
  389. package/dist/esm/code/HoldSelect/tapGate.mjs +61 -0
  390. package/dist/esm/code/HoldSelect/tapGate.mjs.map +1 -0
  391. package/dist/esm/code/HoldSelect/tapGate.native.js +65 -0
  392. package/dist/esm/code/HoldSelect/tapGate.native.js.map +1 -0
  393. package/dist/esm/code/LogView.mjs +13 -3
  394. package/dist/esm/code/LogView.mjs.map +1 -1
  395. package/dist/esm/code/LogView.native.js +14 -3
  396. package/dist/esm/code/LogView.native.js.map +1 -1
  397. package/dist/esm/code/index.mjs +1 -0
  398. package/dist/esm/code/index.mjs.map +1 -1
  399. package/dist/esm/code/index.native.js +1 -0
  400. package/dist/esm/code/index.native.js.map +1 -1
  401. package/dist/esm/componentColors.mjs +5 -4
  402. package/dist/esm/componentColors.mjs.map +1 -1
  403. package/dist/esm/componentColors.native.js +5 -4
  404. package/dist/esm/componentColors.native.js.map +1 -1
  405. package/dist/esm/layouts/AsyncBoundary.mjs +22 -2
  406. package/dist/esm/layouts/AsyncBoundary.mjs.map +1 -1
  407. package/dist/esm/layouts/AsyncBoundary.native.js +22 -2
  408. package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
  409. package/dist/esm/layouts/asyncFailure.mjs +15 -15
  410. package/dist/esm/layouts/asyncFailure.mjs.map +1 -1
  411. package/dist/esm/layouts/asyncFailure.native.js +15 -15
  412. package/dist/esm/layouts/asyncFailure.native.js.map +1 -1
  413. package/dist/esm/layouts/attachments.mjs +45 -6
  414. package/dist/esm/layouts/attachments.mjs.map +1 -1
  415. package/dist/esm/layouts/attachments.native.js +47 -6
  416. package/dist/esm/layouts/attachments.native.js.map +1 -1
  417. package/dist/esm/layouts/page.mjs +94 -18
  418. package/dist/esm/layouts/page.mjs.map +1 -1
  419. package/dist/esm/layouts/page.native.js +96 -17
  420. package/dist/esm/layouts/page.native.js.map +1 -1
  421. package/dist/esm/layouts/screenScroll.mjs +8 -4
  422. package/dist/esm/layouts/screenScroll.mjs.map +1 -1
  423. package/dist/esm/layouts/screenScroll.native.js +12 -4
  424. package/dist/esm/layouts/screenScroll.native.js.map +1 -1
  425. package/dist/esm/layouts/tags.mjs +2 -1
  426. package/dist/esm/layouts/tags.mjs.map +1 -1
  427. package/dist/esm/layouts/tags.native.js +2 -1
  428. package/dist/esm/layouts/tags.native.js.map +1 -1
  429. package/dist/esm/views/Dashboard.mjs +19 -6
  430. package/dist/esm/views/Dashboard.mjs.map +1 -1
  431. package/dist/esm/views/Dashboard.native.js +19 -6
  432. package/dist/esm/views/Dashboard.native.js.map +1 -1
  433. package/dist/esm/views/FilePreview.mjs +588 -0
  434. package/dist/esm/views/FilePreview.mjs.map +1 -0
  435. package/dist/esm/views/FilePreview.native.js +636 -0
  436. package/dist/esm/views/FilePreview.native.js.map +1 -0
  437. package/dist/esm/views/ListGroup.mjs +1 -1
  438. package/dist/esm/views/ListGroup.native.js +1 -1
  439. package/dist/esm/views/index.mjs +2 -1
  440. package/dist/esm/views/index.mjs.map +1 -1
  441. package/dist/esm/views/index.native.js +2 -1
  442. package/dist/esm/views/index.native.js.map +1 -1
  443. package/dist/jsx/Chip/index.mjs +3 -3
  444. package/dist/jsx/Chip/index.mjs.map +1 -1
  445. package/dist/jsx/Chip/index.native.js +1 -1
  446. package/dist/jsx/Chip/index.native.js.map +1 -1
  447. package/dist/jsx/Material/blur.native.js +5 -1
  448. package/dist/jsx/Material/blur.native.js.map +1 -1
  449. package/dist/jsx/ScrollView/useRevealFocusedField.native.js +3 -2
  450. package/dist/jsx/ScrollView/useRevealFocusedField.native.js.map +1 -1
  451. package/dist/jsx/SheetModal/detents.mjs +2 -32
  452. package/dist/jsx/SheetModal/detents.mjs.map +1 -1
  453. package/dist/jsx/SheetModal/detents.native.js +11 -43
  454. package/dist/jsx/SheetModal/detents.native.js.map +1 -1
  455. package/dist/jsx/SheetModal/index.mjs +13 -1
  456. package/dist/jsx/SheetModal/index.mjs.map +1 -1
  457. package/dist/jsx/SheetModal/index.native.js +21 -11
  458. package/dist/jsx/SheetModal/index.native.js.map +1 -1
  459. package/dist/jsx/Tabs/index.mjs +16 -40
  460. package/dist/jsx/Tabs/index.mjs.map +1 -1
  461. package/dist/jsx/Tabs/index.native.js +17 -40
  462. package/dist/jsx/Tabs/index.native.js.map +1 -1
  463. package/dist/jsx/Tooltip/index.native.js +9 -1
  464. package/dist/jsx/Tooltip/index.native.js.map +1 -1
  465. package/dist/jsx/appShell/AppShell.mjs +91 -107
  466. package/dist/jsx/appShell/AppShell.mjs.map +1 -1
  467. package/dist/jsx/appShell/AppShell.native.js +100 -114
  468. package/dist/jsx/appShell/AppShell.native.js.map +1 -1
  469. package/dist/jsx/appShell/MpoTabHost.mjs.map +1 -1
  470. package/dist/jsx/appShell/MpoTabHost.native.js.map +1 -1
  471. package/dist/jsx/appShell/Springboard.mjs +1 -1
  472. package/dist/jsx/appShell/Springboard.mjs.map +1 -1
  473. package/dist/jsx/appShell/Springboard.native.js +2 -2
  474. package/dist/jsx/appShell/Springboard.native.js.map +1 -1
  475. package/dist/jsx/appShell/SystemBar.mjs +147 -58
  476. package/dist/jsx/appShell/SystemBar.mjs.map +1 -1
  477. package/dist/jsx/appShell/SystemBar.native.js +152 -59
  478. package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
  479. package/dist/jsx/appShell/TabHost.native.js +5 -2
  480. package/dist/jsx/appShell/TabHost.native.js.map +1 -1
  481. package/dist/jsx/appShell/stackBack.mjs +23 -0
  482. package/dist/jsx/appShell/stackBack.mjs.map +1 -0
  483. package/dist/jsx/appShell/stackBack.native.js +55 -0
  484. package/dist/jsx/appShell/stackBack.native.js.map +1 -0
  485. package/dist/jsx/appShell/systemBarFit.mjs +12 -2
  486. package/dist/jsx/appShell/systemBarFit.mjs.map +1 -1
  487. package/dist/jsx/appShell/systemBarFit.native.js +16 -2
  488. package/dist/jsx/appShell/systemBarFit.native.js.map +1 -1
  489. package/dist/jsx/code/CodeBlock/index.mjs +21 -12
  490. package/dist/jsx/code/CodeBlock/index.mjs.map +1 -1
  491. package/dist/jsx/code/CodeBlock/index.native.js +21 -12
  492. package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
  493. package/dist/jsx/code/HoldSelect/index.mjs +42 -0
  494. package/dist/jsx/code/HoldSelect/index.mjs.map +1 -0
  495. package/dist/jsx/code/HoldSelect/index.native.js +132 -0
  496. package/dist/jsx/code/HoldSelect/index.native.js.map +1 -0
  497. package/dist/jsx/code/HoldSelect/tapGate.mjs +61 -0
  498. package/dist/jsx/code/HoldSelect/tapGate.mjs.map +1 -0
  499. package/dist/jsx/code/HoldSelect/tapGate.native.js +95 -0
  500. package/dist/jsx/code/HoldSelect/tapGate.native.js.map +1 -0
  501. package/dist/jsx/code/LogView.mjs +13 -3
  502. package/dist/jsx/code/LogView.mjs.map +1 -1
  503. package/dist/jsx/code/LogView.native.js +15 -3
  504. package/dist/jsx/code/LogView.native.js.map +1 -1
  505. package/dist/jsx/code/index.mjs +1 -0
  506. package/dist/jsx/code/index.mjs.map +1 -1
  507. package/dist/jsx/code/index.native.js +1 -0
  508. package/dist/jsx/code/index.native.js.map +1 -1
  509. package/dist/jsx/componentColors.mjs +5 -4
  510. package/dist/jsx/componentColors.mjs.map +1 -1
  511. package/dist/jsx/componentColors.native.js +5 -4
  512. package/dist/jsx/componentColors.native.js.map +1 -1
  513. package/dist/jsx/layouts/AsyncBoundary.mjs +22 -2
  514. package/dist/jsx/layouts/AsyncBoundary.mjs.map +1 -1
  515. package/dist/jsx/layouts/AsyncBoundary.native.js +21 -1
  516. package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
  517. package/dist/jsx/layouts/asyncFailure.mjs +15 -15
  518. package/dist/jsx/layouts/asyncFailure.mjs.map +1 -1
  519. package/dist/jsx/layouts/asyncFailure.native.js +15 -15
  520. package/dist/jsx/layouts/asyncFailure.native.js.map +1 -1
  521. package/dist/jsx/layouts/attachments.mjs +45 -6
  522. package/dist/jsx/layouts/attachments.mjs.map +1 -1
  523. package/dist/jsx/layouts/attachments.native.js +47 -6
  524. package/dist/jsx/layouts/attachments.native.js.map +1 -1
  525. package/dist/jsx/layouts/page.mjs +94 -18
  526. package/dist/jsx/layouts/page.mjs.map +1 -1
  527. package/dist/jsx/layouts/page.native.js +93 -14
  528. package/dist/jsx/layouts/page.native.js.map +1 -1
  529. package/dist/jsx/layouts/screenScroll.mjs +8 -4
  530. package/dist/jsx/layouts/screenScroll.mjs.map +1 -1
  531. package/dist/jsx/layouts/screenScroll.native.js +12 -4
  532. package/dist/jsx/layouts/screenScroll.native.js.map +1 -1
  533. package/dist/jsx/layouts/tags.mjs +2 -1
  534. package/dist/jsx/layouts/tags.mjs.map +1 -1
  535. package/dist/jsx/layouts/tags.native.js +2 -1
  536. package/dist/jsx/layouts/tags.native.js.map +1 -1
  537. package/dist/jsx/views/Dashboard.mjs +19 -6
  538. package/dist/jsx/views/Dashboard.mjs.map +1 -1
  539. package/dist/jsx/views/Dashboard.native.js +18 -5
  540. package/dist/jsx/views/Dashboard.native.js.map +1 -1
  541. package/dist/jsx/views/FilePreview.mjs +588 -0
  542. package/dist/jsx/views/FilePreview.mjs.map +1 -0
  543. package/dist/jsx/views/FilePreview.native.js +675 -0
  544. package/dist/jsx/views/FilePreview.native.js.map +1 -0
  545. package/dist/jsx/views/ListGroup.mjs +1 -1
  546. package/dist/jsx/views/ListGroup.native.js +2 -2
  547. package/dist/jsx/views/ListGroup.native.js.map +1 -1
  548. package/dist/jsx/views/index.mjs +2 -1
  549. package/dist/jsx/views/index.mjs.map +1 -1
  550. package/dist/jsx/views/index.native.js +13 -0
  551. package/dist/jsx/views/index.native.js.map +1 -1
  552. package/package.json +8 -11
  553. package/src/Chip/index.tsx +4 -3
  554. package/src/Material/blur.native.tsx +7 -1
  555. package/src/OverflowRow/OverflowRow.native.spec.tsx +10 -0
  556. package/src/OverflowRow/OverflowRow.stories.tsx +46 -17
  557. package/src/ScrollView/useRevealFocusedField.native.ts +2 -2
  558. package/src/SheetModal/SheetModal.detentLayout.spec.tsx +65 -1
  559. package/src/SheetModal/SheetModal.elevation.spec.tsx +4 -4
  560. package/src/SheetModal/SheetModal.fill.spec.tsx +47 -0
  561. package/src/SheetModal/SheetModal.spec.tsx +8 -3
  562. package/src/SheetModal/SheetModal.stories.tsx +17 -0
  563. package/src/SheetModal/detents.ts +25 -78
  564. package/src/SheetModal/index.native.tsx +24 -12
  565. package/src/SheetModal/index.tsx +27 -5
  566. package/src/Tabs/Tabs.edgeFades.spec.tsx +77 -0
  567. package/src/Tabs/Tabs.fades.native.spec.tsx +23 -21
  568. package/src/Tabs/Tabs.measurement.spec.tsx +3 -3
  569. package/src/Tabs/Tabs.native.spec.tsx +1 -1
  570. package/src/Tabs/index.tsx +29 -50
  571. package/src/Tooltip/Tooltip.holdCue.native.spec.tsx +71 -0
  572. package/src/Tooltip/Tooltip.spec.tsx +1 -1
  573. package/src/Tooltip/index.native.tsx +6 -1
  574. package/src/appShell/AppShell.native.spec.tsx +104 -0
  575. package/src/appShell/AppShell.spec.tsx +49 -0
  576. package/src/appShell/AppShell.stackBack.native-press.spec.tsx +61 -0
  577. package/src/appShell/AppShell.stackBack.spec.tsx +112 -0
  578. package/src/appShell/AppShell.stories.tsx +51 -1
  579. package/src/appShell/AppShell.tsx +66 -80
  580. package/src/appShell/MpoTabHost.tsx +6 -0
  581. package/src/appShell/Springboard.spec.tsx +1 -1
  582. package/src/appShell/Springboard.tsx +1 -1
  583. package/src/appShell/SystemBar.phoneWidth.spec.tsx +17 -0
  584. package/src/appShell/SystemBar.spec.tsx +155 -3
  585. package/src/appShell/SystemBar.stories.tsx +48 -3
  586. package/src/appShell/SystemBar.tsx +172 -48
  587. package/src/appShell/TabHost.native.tsx +4 -2
  588. package/src/appShell/stackBack.ts +31 -0
  589. package/src/appShell/systemBarFit.ts +10 -7
  590. package/src/checkedRow.native-press.spec.tsx +4 -4
  591. package/src/checkedRow.spec.tsx +2 -2
  592. package/src/code/CodeBlock/codeBlock.stories.ts +21 -0
  593. package/src/code/CodeBlock/index.tsx +24 -17
  594. package/src/code/HoldSelect/holdSelect.spec.tsx +128 -0
  595. package/src/code/HoldSelect/index.native.tsx +86 -0
  596. package/src/code/HoldSelect/index.tsx +53 -0
  597. package/src/code/HoldSelect/tapGate.ts +87 -0
  598. package/src/code/LogView.follow.spec.tsx +104 -0
  599. package/src/code/LogView.tsx +29 -4
  600. package/src/code/index.ts +1 -0
  601. package/src/componentColors.spec.ts +3 -3
  602. package/src/componentColors.ts +5 -4
  603. package/src/elevatedGround.spec.tsx +7 -7
  604. package/src/layouts/AsyncBoundary.reason.spec.tsx +64 -23
  605. package/src/layouts/AsyncBoundary.stories.tsx +1 -0
  606. package/src/layouts/AsyncBoundary.tsx +21 -2
  607. package/src/layouts/Attachments.stories.tsx +31 -1
  608. package/src/layouts/ScreenToolbar.stories.tsx +54 -1
  609. package/src/layouts/Sidebar.spec.tsx +6 -1
  610. package/src/layouts/asyncFailure.spec.ts +28 -13
  611. package/src/layouts/asyncFailure.ts +17 -19
  612. package/src/layouts/attachments.tsx +60 -8
  613. package/src/layouts/heroBarTitle.native-press.spec.tsx +132 -0
  614. package/src/layouts/page.tsx +136 -16
  615. package/src/layouts/screenScroll.tsx +21 -14
  616. package/src/layouts/tags.tsx +2 -1
  617. package/src/layouts/toolbarLeadingClip.spec.tsx +120 -0
  618. package/src/overlayElevation.spec.tsx +1 -1
  619. package/src/overlayGround.spec.tsx +77 -0
  620. package/src/views/Dashboard.stories.tsx +21 -0
  621. package/src/views/Dashboard.tsx +34 -7
  622. package/src/views/FilePreview.tsx +640 -0
  623. package/src/views/Kanban.spec.tsx +6 -1
  624. package/src/views/List.selection.spec.tsx +42 -0
  625. package/src/views/List.spec.tsx +1 -26
  626. package/src/views/ListGroup.states.spec.tsx +1 -1
  627. package/src/views/ListGroup.stories.tsx +119 -2
  628. package/src/views/ListGroup.tsx +1 -1
  629. package/src/views/ReportBuilder.spec.tsx +9 -4
  630. package/src/views/TreeView.spec.tsx +6 -1
  631. package/src/views/dataIdentity.spec.tsx +5 -0
  632. package/src/views/filePreview.spec.tsx +282 -0
  633. package/src/views/index.ts +17 -0
  634. package/src/views/kpiNotMeasured.spec.tsx +56 -0
  635. package/types/Chip/index.d.ts.map +1 -1
  636. package/types/Material/blur.native.d.ts.map +1 -1
  637. package/types/SheetModal/detents.d.ts +9 -54
  638. package/types/SheetModal/detents.d.ts.map +1 -1
  639. package/types/SheetModal/index.d.ts +23 -5
  640. package/types/SheetModal/index.d.ts.map +1 -1
  641. package/types/SheetModal/index.native.d.ts +1 -1
  642. package/types/SheetModal/index.native.d.ts.map +1 -1
  643. package/types/Tabs/index.d.ts +2 -1
  644. package/types/Tabs/index.d.ts.map +1 -1
  645. package/types/Tooltip/index.native.d.ts.map +1 -1
  646. package/types/appShell/AppShell.d.ts +5 -1
  647. package/types/appShell/AppShell.d.ts.map +1 -1
  648. package/types/appShell/MpoTabHost.d.ts +6 -0
  649. package/types/appShell/MpoTabHost.d.ts.map +1 -1
  650. package/types/appShell/Springboard.d.ts.map +1 -1
  651. package/types/appShell/SystemBar.d.ts +39 -2
  652. package/types/appShell/SystemBar.d.ts.map +1 -1
  653. package/types/appShell/TabHost.native.d.ts +1 -1
  654. package/types/appShell/TabHost.native.d.ts.map +1 -1
  655. package/types/appShell/stackBack.d.ts +3 -0
  656. package/types/appShell/stackBack.d.ts.map +1 -0
  657. package/types/appShell/systemBarFit.d.ts +1 -0
  658. package/types/appShell/systemBarFit.d.ts.map +1 -1
  659. package/types/code/CodeBlock/index.d.ts +3 -1
  660. package/types/code/CodeBlock/index.d.ts.map +1 -1
  661. package/types/code/HoldSelect/index.d.ts +16 -0
  662. package/types/code/HoldSelect/index.d.ts.map +1 -0
  663. package/types/code/HoldSelect/index.native.d.ts +17 -0
  664. package/types/code/HoldSelect/index.native.d.ts.map +1 -0
  665. package/types/code/HoldSelect/tapGate.d.ts +41 -0
  666. package/types/code/HoldSelect/tapGate.d.ts.map +1 -0
  667. package/types/code/LogView.d.ts +3 -1
  668. package/types/code/LogView.d.ts.map +1 -1
  669. package/types/code/index.d.ts +1 -0
  670. package/types/code/index.d.ts.map +1 -1
  671. package/types/componentColors.d.ts +4 -4
  672. package/types/componentColors.d.ts.map +1 -1
  673. package/types/layouts/AsyncBoundary.d.ts +3 -1
  674. package/types/layouts/AsyncBoundary.d.ts.map +1 -1
  675. package/types/layouts/asyncFailure.d.ts +4 -1
  676. package/types/layouts/asyncFailure.d.ts.map +1 -1
  677. package/types/layouts/attachments.d.ts.map +1 -1
  678. package/types/layouts/page.d.ts.map +1 -1
  679. package/types/layouts/screenScroll.d.ts +4 -2
  680. package/types/layouts/screenScroll.d.ts.map +1 -1
  681. package/types/layouts/tags.d.ts.map +1 -1
  682. package/types/views/Dashboard.d.ts +7 -1
  683. package/types/views/Dashboard.d.ts.map +1 -1
  684. package/types/views/FilePreview.d.ts +62 -0
  685. package/types/views/FilePreview.d.ts.map +1 -0
  686. package/types/views/index.d.ts +1 -0
  687. package/types/views/index.d.ts.map +1 -1
  688. package/dist/cjs/hooks/useHoldCue.cjs +0 -52
  689. package/dist/cjs/hooks/useHoldCue.native.js +0 -60
  690. package/dist/cjs/hooks/useHoldCue.native.js.map +0 -1
  691. package/dist/esm/hooks/useHoldCue.mjs +0 -26
  692. package/dist/esm/hooks/useHoldCue.mjs.map +0 -1
  693. package/dist/esm/hooks/useHoldCue.native.js +0 -31
  694. package/dist/esm/hooks/useHoldCue.native.js.map +0 -1
  695. package/dist/jsx/hooks/useHoldCue.mjs +0 -26
  696. package/dist/jsx/hooks/useHoldCue.mjs.map +0 -1
  697. package/dist/jsx/hooks/useHoldCue.native.js +0 -60
  698. package/dist/jsx/hooks/useHoldCue.native.js.map +0 -1
  699. package/src/hooks/useHoldCue.ts +0 -23
  700. package/types/hooks/useHoldCue.d.ts +0 -8
  701. package/types/hooks/useHoldCue.d.ts.map +0 -1
@@ -57,15 +57,15 @@ function sheetBody(Sheet: typeof NativeSheetModal) {
57
57
  describe("FZ-9211: a sheet paints the elevated overlay fill", () => {
58
58
  it("dark: the native bottom sheet steps above the card, and its Button washes up", () => {
59
59
  const view = schemeRender(sheetBody(NativeSheetModal), "dark");
60
- expect(restFill(view.getByTestId("sheet-modal-surface"))).toEqual(["_bg-color4"]);
61
- expect(buttonFill("OnSheet")).toEqual(["_bg-color5"]);
60
+ expect(restFill(view.getByTestId("sheet-modal-surface"))).toEqual(["_bg-color5"]);
61
+ expect(buttonFill("OnSheet")).toEqual(["_bg-color6"]);
62
62
  });
63
63
 
64
64
  it("dark: the web sheet frame steps above the card, and its Button washes up", () => {
65
65
  schemeRender(sheetBody(WebSheetModal), "dark");
66
66
  const frame = screen.getAllByRole("dialog").at(-1) as HTMLElement;
67
- expect(restFill(frame)).toEqual(["_bg-color4"]);
68
- expect(buttonFill("OnSheet")).toEqual(["_bg-color5"]);
67
+ expect(restFill(frame)).toEqual(["_bg-color5"]);
68
+ expect(buttonFill("OnSheet")).toEqual(["_bg-color6"]);
69
69
  });
70
70
 
71
71
  it("light: both sheets keep the page white", () => {
@@ -145,3 +145,50 @@ describe("web fill opens the body inside the snapped frame", () => {
145
145
  expect(view.getAllByTestId("sheet-modal-scroll").length).toBeGreaterThan(0);
146
146
  });
147
147
  });
148
+
149
+ const zeroInset = (element: HTMLElement, side: "pl" | "pr" | "pb") =>
150
+ classes(element).some((c) => c === `_${side}-0px`) ||
151
+ element.style.getPropertyValue(`padding-${{ pl: "left", pr: "right", pb: "bottom" }[side]}`) ===
152
+ "0px";
153
+
154
+ describe("flush runs the body to the frame's edges", () => {
155
+ it("drops the native content inset at the sides and bottom only when flush", () => {
156
+ const flush = renderNative({ fill: true, flush: true }).getByTestId("sheet-modal-content");
157
+ for (const side of ["pl", "pr", "pb"] as const) expect(zeroInset(flush, side)).toBe(true);
158
+ cleanup();
159
+ const inset = renderNative({ fill: true }).getByTestId("sheet-modal-content");
160
+ for (const side of ["pl", "pr", "pb"] as const) expect(zeroInset(inset, side)).toBe(false);
161
+ });
162
+
163
+ it("keeps the header on the panel inset", () => {
164
+ const view = renderNative({ fill: true, flush: true });
165
+ const title = view.getByText("Move to project");
166
+ let node: HTMLElement | null = title;
167
+ let inset = false;
168
+ while (node && node.getAttribute("data-testid") !== "sheet-modal-content") {
169
+ if (classes(node).some((c) => /^_pl-(?!0px)/.test(c)) || /[1-9]/.test(node.style.paddingLeft))
170
+ inset = true;
171
+ node = node.parentElement;
172
+ }
173
+ expect(inset).toBe(true);
174
+ });
175
+
176
+ it("drops the web frame inset at the sides and bottom and keeps it on the header", () => {
177
+ const frameOf = (view: ReturnType<typeof renderWeb>) =>
178
+ view.getAllByTestId("sheet-modal-body")[0]!.closest("[data-sheet-form]") as HTMLElement;
179
+ const flushView = renderWeb({ fill: true, flush: true });
180
+ const frame = frameOf(flushView);
181
+ for (const side of ["pl", "pr", "pb"] as const) expect(zeroInset(frame, side)).toBe(true);
182
+ let node: HTMLElement | null = flushView.getAllByText("Move to project")[0]!;
183
+ let inset = false;
184
+ while (node && node !== frame) {
185
+ if (classes(node).some((c) => /^_pl-(?!0px)/.test(c)) || /[1-9]/.test(node.style.paddingLeft))
186
+ inset = true;
187
+ node = node.parentElement;
188
+ }
189
+ expect(inset).toBe(true);
190
+ cleanup();
191
+ const padded = frameOf(renderWeb({ fill: true }));
192
+ for (const side of ["pl", "pr", "pb"] as const) expect(zeroInset(padded, side)).toBe(false);
193
+ });
194
+ });
@@ -92,14 +92,19 @@ describe("resolveWebSnap (FZ-7977)", () => {
92
92
  expect(resolveWebSnap({})).toEqual({ snapPointsMode: "fit" });
93
93
  });
94
94
 
95
- it("a caller's percent still sets the rest", () => {
95
+ it("a caller's percent still sets the rest it opens at, and now drags back to full", () => {
96
96
  expect(resolveWebSnap({ snapPoint: 85 })).toEqual({
97
97
  snapPointsMode: "percent",
98
- snapPoints: [85],
98
+ snapPoints: [100, 85],
99
+ defaultPosition: 1,
99
100
  });
100
101
  });
101
102
 
102
103
  it("a fill sheet has no intrinsic height, so it keeps a percent rest", () => {
103
- expect(resolveWebSnap({ fill: true })).toEqual({ snapPointsMode: "percent", snapPoints: [60] });
104
+ expect(resolveWebSnap({ fill: true })).toEqual({
105
+ snapPointsMode: "percent",
106
+ snapPoints: [100, 60],
107
+ defaultPosition: 1,
108
+ });
104
109
  });
105
110
  });
@@ -29,6 +29,7 @@ import { DangerSection } from "../actions/DangerSection";
29
29
  import { DestructiveAction } from "../actions/DestructiveAction";
30
30
  import { HeaderActions } from "../actions/HeaderActions";
31
31
  import { OverlayHeader } from "../actions/StandardAction";
32
+ import { sheetDetent } from "./detents";
32
33
  import { SheetModal } from "./index";
33
34
  import { Paragraph, SizableText } from "../Text";
34
35
 
@@ -41,10 +42,12 @@ const projectOptions = ["Inbox", "Launch", "Backlog", "Archive"].map((label) =>
41
42
  function Harness({
42
43
  scrollable = false,
43
44
  snapPoint,
45
+ detents,
44
46
  startOpen = false,
45
47
  }: {
46
48
  scrollable?: boolean;
47
49
  snapPoint?: number;
50
+ detents?: number[];
48
51
  startOpen?: boolean;
49
52
  }) {
50
53
  const [open, setOpen] = useState(startOpen);
@@ -60,6 +63,7 @@ function Harness({
60
63
  onOpenChange={setOpen}
61
64
  scrollable={scrollable}
62
65
  {...(snapPoint === undefined ? {} : { snapPoint })}
66
+ {...(detents === undefined ? {} : { detents })}
63
67
  header={
64
68
  <OverlayHeader
65
69
  title="Move to project"
@@ -134,6 +138,19 @@ export const TallDetent: Story = {
134
138
  render: () => <Harness snapPoint={92} />,
135
139
  };
136
140
 
141
+ export const Detents: Story = {
142
+ name: "Detents",
143
+ parameters: {
144
+ docs: {
145
+ description: {
146
+ story:
147
+ "`detents` is a SET of percents, the way `UISheetPresentationController.detents` holds `[.medium(), .large()]`. This sheet opens at 65 and a finger on the grabber drags it to full or down to 40; released below 40 it dismisses, and released anywhere above that it snaps to the nearest rung rather than closing (LC-21). Before FZ-455 a caller could name one percent, and the web twin resolved it to a single snap point, so the grabber moved and the sheet did not.",
148
+ },
149
+ },
150
+ },
151
+ render: () => <Harness detents={[sheetDetent.large, 65, 40]} snapPoint={65} startOpen />,
152
+ };
153
+
137
154
  export const OpenOnMount: Story = {
138
155
  name: "Open",
139
156
  render: () => <Harness startOpen />,
@@ -1,83 +1,30 @@
1
1
  /**
2
- * SheetModal detent geometry — the pure half, split out so it can be specced
3
- * without standing up a React Native renderer.
2
+ * SheetModal detent geometry.
4
3
  *
5
- * A detent is a VISIBLE HEIGHT in points. The native sheet's `translateY`
6
- * measures DOWN from fully-expanded, so a detent of `h` rests at `travel - h`,
7
- * and `travel` itself is the fully-expanded sheet.
8
- */
9
-
10
- /** Smallest height a native sheet is ever laid out at. */
11
- export const minSheetHeight = 180;
12
-
13
- /**
14
- * Half-open detent for a sheet that owns a scrollport, as a fraction of its
15
- * full height. Mirrors FloatingPanel so both native sheets drag alike.
16
- */
17
- export const mediumDetent = 0.55;
18
-
19
- export interface ResolveSheetDetentsOptions {
20
- /** Full (expanded) height of the sheet, in points. */
21
- travel: number;
22
- /** The sheet owns a scrollport, so a half-open rest is meaningful. */
23
- scrollable?: boolean;
24
- /** Percent detent from the caller — the same prop the web Sheet takes. */
25
- snapPoint?: number;
26
- }
27
-
28
- /**
29
- * The heights the sheet is allowed to rest at, largest first.
30
- *
31
- * MPO-68: `snapPoint` is a percent on the web Sheet (`snapPoints={[snapPoint]}`).
32
- * Native honours the same prop by turning that percent into a detent, so a
33
- * caller that writes `snapPoint={85}` gets an 85%-height rest on both twins
34
- * rather than the prop being silently dropped on device.
4
+ * The implementation moved to `@multiplatform.one/forms`
5
+ * (`shared/sheetDetents.ts`) in FZ-455, because FloatingPanel's sheet face
6
+ * needs the same geometry and `forms` is the lower layer. Keeping a second
7
+ * copy here is what let MPO-71 rewrite one of them from a stale version and
8
+ * drop the `snapPoint` push for a month.
35
9
  *
36
- * Anything shorter than `minSheetHeight` is discarded, because a sheet that
37
- * rests below that is indistinguishable from a dismissed one. A sheet whose
38
- * full height is already under the floor keeps its own height, otherwise it
39
- * would have no detents at all.
10
+ * This file stays as the path SheetModal and its specs already import.
40
11
  */
41
- export function resolveSheetDetents({
42
- travel,
43
- scrollable,
44
- snapPoint,
45
- }: ResolveSheetDetentsOptions): number[] {
46
- const points = [travel];
47
- if (scrollable) {
48
- points.push(Math.round(travel * mediumDetent));
49
- }
50
- if (typeof snapPoint === "number" && Number.isFinite(snapPoint) && snapPoint > 0) {
51
- points.push(Math.round(travel * (Math.min(snapPoint, 100) / 100)));
52
- }
53
- const floor = Math.min(minSheetHeight, travel);
54
- return Array.from(new Set(points.filter((h) => h >= floor))).sort((a, b) => b - a);
55
- }
56
-
57
- /** The large detent: the tallest a content-sized sheet grows, as a fraction of the window. */
58
- export const largeDetentRatio = 0.85;
59
-
60
- /** Percent rest of a `fill` sheet with no `snapPoint`: it has no intrinsic height to fit. */
61
- export const fillSnapPoint = 60;
62
12
 
63
- export type WebSnap =
64
- | { snapPointsMode: "fit" }
65
- | { snapPointsMode: "percent"; snapPoints: number[] };
66
-
67
- /**
68
- * The web Sheet's snap props. FZ-7977: a sheet with no `snapPoint` opens at
69
- * its content's height (capped at the large detent), the way the native twin
70
- * already sizes to content, instead of a fixed 60% with a dead band under
71
- * short content. A caller's percent still wins, and a `fill` sheet, which has
72
- * no intrinsic height, keeps a percent rest.
73
- */
74
- export function resolveWebSnap({
75
- snapPoint,
76
- fill,
77
- }: {
78
- snapPoint?: number;
79
- fill?: boolean;
80
- }): WebSnap {
81
- if (snapPoint === undefined && !fill) return { snapPointsMode: "fit" };
82
- return { snapPointsMode: "percent", snapPoints: [snapPoint ?? fillSnapPoint] };
83
- }
13
+ export {
14
+ fillSnapPoint,
15
+ largeDetentRatio,
16
+ mediumDetent,
17
+ minSheetHeight,
18
+ openingDetentIndex,
19
+ resolveDetentPercents,
20
+ resolveSheetDetents,
21
+ resolveWebSnap,
22
+ sheetDetent,
23
+ sheetDismissThreshold,
24
+ } from "@multiplatform.one/forms";
25
+ export type {
26
+ DetentSetOptions,
27
+ ResolveSheetDetentsOptions,
28
+ ResolveWebSnapOptions,
29
+ WebSnap,
30
+ } from "@multiplatform.one/forms";
@@ -56,7 +56,12 @@ import {
56
56
  } from "react-native";
57
57
  import { SafeAreaInsetsContext, initialWindowMetrics } from "react-native-safe-area-context";
58
58
 
59
- import { largeDetentRatio, minSheetHeight, resolveSheetDetents } from "./detents";
59
+ import {
60
+ largeDetentRatio,
61
+ minSheetHeight,
62
+ resolveSheetDetents,
63
+ sheetDismissThreshold,
64
+ } from "./detents";
60
65
  import { useTranslation } from "../shared/i18n";
61
66
  import { useKeyboardInset } from "../shared/useKeyboardInset";
62
67
  import { View, YStack } from "tamagui";
@@ -70,8 +75,6 @@ export type { SheetModalProps } from "./index";
70
75
  const bottomInset = Platform.OS === "ios" ? 24 : 16;
71
76
  // Backdrop left visible above the sheet, so the scrim stays tappable.
72
77
  const backdropStrip = 48;
73
- // Released more than this far below the smallest detent, the sheet dismisses.
74
- const dismissThreshold = 56;
75
78
  const IN_DIALOG_REGION = { inDialogRegion: true } as const;
76
79
  /*
77
80
  * MPO-299 fill: an owned viewport bootstraps from zero unless EVERY link
@@ -96,15 +99,23 @@ export function SheetModal({
96
99
  header: headerContent,
97
100
  headerActions,
98
101
  snapPoint,
102
+ detents,
99
103
  scrollable,
100
104
  fill = false,
105
+ flush = false,
101
106
  }: SheetModalProps) {
102
- const header =
107
+ const { t } = useTranslation();
108
+ const { knobProps } = useResolvedKnobs();
109
+ const sheetHeader =
103
110
  headerContent || headerActions ? (
104
111
  <SheetHeader header={headerContent} actions={headerActions} />
105
112
  ) : null;
106
- const { t } = useTranslation();
107
- const { knobProps } = useResolvedKnobs();
113
+ const header =
114
+ sheetHeader && flush ? (
115
+ <YStack paddingHorizontal={knobProps.panelPadding.padding}>{sheetHeader}</YStack>
116
+ ) : (
117
+ sheetHeader
118
+ );
108
119
  const windowZIndex = useOverlayZIndex("sheet");
109
120
  const slideTransition = knobProps.motion.slide.transition;
110
121
  const slideDuration = motionDurationMs(slideTransition);
@@ -156,9 +167,9 @@ export function SheetModal({
156
167
  */
157
168
  const [measuredHeight, setMeasuredHeight] = useState(0);
158
169
  const travel = measuredHeight || maxHeight;
159
- const detents = useMemo(
160
- () => resolveSheetDetents({ travel, scrollable, snapPoint }),
161
- [travel, scrollable, snapPoint],
170
+ const detentHeights = useMemo(
171
+ () => resolveSheetDetents({ travel, detents, scrollable, snapPoint }),
172
+ [travel, detents, scrollable, snapPoint],
162
173
  );
163
174
 
164
175
  /*
@@ -177,9 +188,9 @@ export function SheetModal({
177
188
  const translateY = useRef(new Animated.Value(travel)).current;
178
189
  const restRef = useRef(travel);
179
190
  const travelRef = useRef(travel);
180
- const detentsRef = useRef(detents);
191
+ const detentsRef = useRef(detentHeights);
181
192
  travelRef.current = travel;
182
- detentsRef.current = detents;
193
+ detentsRef.current = detentHeights;
183
194
 
184
195
  // Async callbacks belong to one committed presentation, never its successor.
185
196
  const presentationRef = useRef(0);
@@ -309,7 +320,7 @@ export function SheetModal({
309
320
  const current = Math.max(0, restRef.current + g.dy);
310
321
  const projected = current + g.vy * 120;
311
322
  const smallestRest = tvl - points[points.length - 1];
312
- if (projected > smallestRest + dismissThreshold || g.vy > 1.1) {
323
+ if (projected > smallestRest + sheetDismissThreshold || g.vy > 1.1) {
313
324
  dismiss(g.vy);
314
325
  return;
315
326
  }
@@ -513,6 +524,7 @@ export function SheetModal({
513
524
  <YStack
514
525
  testID="sheet-modal-content"
515
526
  padding={knobProps.panelPadding.padding}
527
+ {...(flush ? { paddingHorizontal: 0, paddingBottom: 0 } : null)}
516
528
  gap={knobProps.gap.gap}
517
529
  flexShrink={1}
518
530
  {...(fill ? fillSlot : null)}
@@ -47,12 +47,25 @@ export interface SheetModalProps {
47
47
  */
48
48
  headerActions?: ReactNode;
49
49
  /**
50
- * Percent snap point. Web: the Sheet's snap point. Native: a drag detent.
51
- * Omitted: the sheet opens at its content's height, capped at the large
52
- * detent (HIG: a sheet as tall as what it holds). A `fill` sheet has no
53
- * intrinsic height, so it falls back to 60%.
50
+ * Percent rest. The web twin OPENS there; the native twin opens at full
51
+ * height and takes it as a detent to drag to, which is the twins' one
52
+ * remaining disagreement (FZ-455). Omitted: the sheet opens at its
53
+ * content's height, capped at the large detent (HIG: a sheet as tall as
54
+ * what it holds). A `fill` sheet has no intrinsic height, so it falls back
55
+ * to 60%. With `detents`, it names which of them the web twin opens at.
54
56
  */
55
57
  snapPoint?: number;
58
+ /**
59
+ * The rest positions the sheet may settle at, as percents of its full
60
+ * height, the way `UISheetPresentationController.detents` takes an array
61
+ * (FZ-455). A finger on the grabber drags between them and releases onto
62
+ * the nearest; a release below the smallest dismisses (LC-21). Order does
63
+ * not matter, `sheetDetent.medium` / `.large` name the HIG rungs, and
64
+ * `snapPoint` names which one the web twin opens at. Omitted, the set is the sheet's
65
+ * full height plus `snapPoint` and the half-open rest of a `scrollable`
66
+ * sheet, so no existing sheet changes shape.
67
+ */
68
+ detents?: number[];
56
69
  /** Wrap children in the sheet's scroll container. */
57
70
  scrollable?: boolean;
58
71
  /**
@@ -62,6 +75,11 @@ export interface SheetModalProps {
62
75
  * then mounts nothing. Off by default, so existing sheets are unchanged.
63
76
  */
64
77
  fill?: boolean;
78
+ /**
79
+ * The body runs to the frame's side and bottom edges, as a document viewer
80
+ * does (Quick Look, Files); the header keeps the panel inset.
81
+ */
82
+ flush?: boolean;
65
83
  }
66
84
 
67
85
  const IN_DIALOG_REGION = { inDialogRegion: true } as const;
@@ -144,8 +162,10 @@ export function SheetModal({
144
162
  header: headerContent,
145
163
  headerActions,
146
164
  snapPoint,
165
+ detents,
147
166
  scrollable,
148
167
  fill = false,
168
+ flush = false,
149
169
  }: SheetModalProps) {
150
170
  const titleId = useId();
151
171
  const overlayHeader = isOverlayHeader(headerContent);
@@ -157,7 +177,7 @@ export function SheetModal({
157
177
  titleId={headerActions && !overlayHeader ? titleId : undefined}
158
178
  />
159
179
  ) : null;
160
- const snap = resolveWebSnap({ snapPoint, fill });
180
+ const snap = resolveWebSnap({ snapPoint, detents, scrollable, fill });
161
181
  const { height: windowHeight, width: windowWidth } = useWindowDimensions();
162
182
  const regular = overlaySizeClass(windowWidth) === "regular";
163
183
  const { knobProps } = useResolvedKnobs();
@@ -198,6 +218,7 @@ export function SheetModal({
198
218
  "data-sheet-form": regular ? "panel" : "bottom",
199
219
  } as Record<string, unknown>)}
200
220
  {...knobProps.gap}
221
+ {...(flush ? { paddingHorizontal: 0, paddingBottom: 0, gap: 0 } : null)}
201
222
  {...(snap.snapPointsMode === "fit"
202
223
  ? { maxHeight: Math.round(windowHeight * largeDetentRatio) }
203
224
  : null)}
@@ -219,6 +240,7 @@ export function SheetModal({
219
240
  <View
220
241
  id={overlayHeader || headerActions ? undefined : titleId}
221
242
  {...(fill ? nonShrinking : null)}
243
+ {...(flush ? { paddingHorizontal: knobProps.panelPadding.padding } : null)}
222
244
  >
223
245
  <OverlayTitleIdContext.Provider value={overlayHeader ? titleId : undefined}>
224
246
  {header}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * LC-120 on the web Tabs strip (FZ-8080). The strip's ends fade through the
3
+ * house LinearGradient in the strip's own surface, the same fade native draws,
4
+ * never a CSS mask on the scroller.
5
+ */
6
+ import { renderWithProviders } from "@multiplatform.one/test-utils";
7
+ import { getRgba } from "@tamagui/core";
8
+ import { act, cleanup } from "@testing-library/react";
9
+ import { createElement, forwardRef, useImperativeHandle } from "react";
10
+ import { useTheme } from "tamagui";
11
+ import { afterEach, describe, expect, it, vi } from "vitest";
12
+ import { Tabs } from "./index";
13
+
14
+ const web = vi.hoisted(() => ({ scroll: undefined as Record<string, any> | undefined }));
15
+
16
+ vi.mock("tamagui/linear-gradient", () => ({
17
+ LinearGradient: (props: Record<string, unknown>) =>
18
+ createElement("span", { "data-colors": JSON.stringify(props.colors) }),
19
+ }));
20
+
21
+ vi.mock("../ScrollView", async () => {
22
+ const React = await import("react");
23
+ return {
24
+ ScrollView: forwardRef(function WebScroll(props: Record<string, any>, ref) {
25
+ web.scroll = props;
26
+ useImperativeHandle(ref, () => ({ scrollTo() {} }), []);
27
+ return React.createElement("div", { "data-tabs-scroll": "true" }, props.children);
28
+ }),
29
+ };
30
+ });
31
+
32
+ afterEach(() => {
33
+ cleanup();
34
+ web.scroll = undefined;
35
+ });
36
+
37
+ const items = Array.from({ length: 9 }, (_, i) => ({ value: `t${i}`, label: `Section ${i}` }));
38
+ const seen = { background: "" };
39
+
40
+ function Probe() {
41
+ seen.background = String(useTheme().background?.val);
42
+ return null;
43
+ }
44
+
45
+ function settle(viewport: number, content: number) {
46
+ act(() => web.scroll!.onLayout({ nativeEvent: { layout: { width: viewport, height: 44 } } }));
47
+ act(() => web.scroll!.onContentSizeChange(content, 44));
48
+ }
49
+
50
+ function colors(side: "left" | "right"): string[] | undefined {
51
+ const node = document.querySelector(`[data-tabs-fade="${side}"] [data-colors]`);
52
+ return node ? JSON.parse(node.getAttribute("data-colors")!) : undefined;
53
+ }
54
+
55
+ describe("web Tabs overflow fades (LC-120, FZ-8080)", () => {
56
+ it("paints no CSS mask on the scroller", () => {
57
+ renderWithProviders(<Tabs items={items} />);
58
+ settle(390, 900);
59
+ const style = (web.scroll!.style ?? {}) as Record<string, unknown>;
60
+ expect(style.maskImage).toBeUndefined();
61
+ expect(style.WebkitMaskImage).toBeUndefined();
62
+ });
63
+
64
+ it("lays the strip's surface over the end it can scroll toward", () => {
65
+ renderWithProviders(
66
+ <>
67
+ <Probe />
68
+ <Tabs items={items} />
69
+ </>,
70
+ );
71
+ settle(390, 900);
72
+ const surface = seen.background;
73
+ const rgba = getRgba(surface)!;
74
+ expect(colors("left")).toBeUndefined();
75
+ expect(colors("right")).toEqual([`rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, 0)`, surface]);
76
+ });
77
+ });
@@ -1,13 +1,14 @@
1
1
  /**
2
- * LC-120 on the native Tabs strip (FZ-7831). Web fades the strip's ends with a
3
- * CSS mask; native has no mask, so the strip lays a gradient of its own
4
- * surface over each end it can scroll toward. These cases drive the native
2
+ * LC-120 on the native Tabs strip (FZ-7831). The strip lays a gradient of its
3
+ * own surface over each end it can scroll toward, the same LinearGradient web
4
+ * draws (FZ-8080). These cases drive the native
5
5
  * scroll callbacks (layout, content size, scroll) the way React Native fires
6
6
  * them on iOS and Android, LTR and RTL.
7
7
  */
8
8
  import { renderWithProviders } from "@multiplatform.one/test-utils";
9
9
  import { act, cleanup } from "@testing-library/react";
10
- import { forwardRef, useImperativeHandle } from "react";
10
+ import { getRgba } from "@tamagui/core";
11
+ import { createElement, forwardRef, useImperativeHandle } from "react";
11
12
  import { Theme, useTheme } from "tamagui";
12
13
  import { afterEach, describe, expect, it, vi } from "vitest";
13
14
  import { TABS_EDGE_FADE, Tabs, tabsFadeEdge, type TabsProps } from "./index";
@@ -37,6 +38,11 @@ vi.mock("react-native-web", async (importOriginal) => {
37
38
  };
38
39
  });
39
40
 
41
+ vi.mock("tamagui/linear-gradient", () => ({
42
+ LinearGradient: (props: Record<string, unknown>) =>
43
+ createElement("span", { "data-colors": JSON.stringify(props.colors) }),
44
+ }));
45
+
40
46
  vi.mock("../hooks/useDirection", () => ({ useDirection: () => native.direction }));
41
47
 
42
48
  vi.mock("../ScrollView", async () => {
@@ -93,12 +99,14 @@ function shown() {
93
99
  return { left: Boolean(fade("left")), right: Boolean(fade("right")) };
94
100
  }
95
101
 
96
- /** [colour, opacity] at the gradient's physical left and right. */
97
- function stops(side: "left" | "right") {
98
- return Array.from(fade(side)!.querySelectorAll("stop")).map((stop) => [
99
- stop.getAttribute("stop-color"),
100
- stop.getAttribute("stop-opacity"),
101
- ]);
102
+ /** The gradient's colours from its physical left to its physical right. */
103
+ function colors(side: "left" | "right"): string[] {
104
+ return JSON.parse(fade(side)!.querySelector("[data-colors]")!.getAttribute("data-colors")!);
105
+ }
106
+
107
+ function clear(color: string) {
108
+ const rgba = getRgba(color)!;
109
+ return `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, 0)`;
102
110
  }
103
111
 
104
112
  describe("native Tabs overflow fades (LC-120, FZ-7831)", () => {
@@ -127,24 +135,18 @@ describe("native Tabs overflow fades (LC-120, FZ-7831)", () => {
127
135
  scrollTo(250);
128
136
  const surface = seen.background;
129
137
  expect(surface).toMatch(/\S/);
130
- expect(stops("left")).toEqual([
131
- [surface, "1"],
132
- [surface, "0"],
133
- ]);
134
- expect(stops("right")).toEqual([
135
- [surface, "0"],
136
- [surface, "1"],
137
- ]);
138
+ expect(colors("left")).toEqual([surface, clear(surface)]);
139
+ expect(colors("right")).toEqual([clear(surface), surface]);
138
140
  });
139
141
 
140
142
  it("follows the dark theme's surface", () => {
141
143
  render({}, "light");
142
144
  settle(390, 900);
143
- const light = stops("right")[1]![0];
145
+ const light = colors("right")[1];
144
146
  cleanup();
145
147
  render({}, "dark");
146
148
  settle(390, 900);
147
- const dark = stops("right")[1]![0];
149
+ const dark = colors("right")[1];
148
150
  expect(dark).toBe(seen.background);
149
151
  expect(dark).not.toBe(light);
150
152
  });
@@ -164,7 +166,7 @@ describe("native Tabs overflow fades (LC-120, FZ-7831)", () => {
164
166
  render();
165
167
  settle(390, 900);
166
168
  expect(shown()).toEqual({ left: true, right: false });
167
- expect(stops("left").map(([, opacity]) => opacity)).toEqual(["1", "0"]);
169
+ expect(colors("left")[0]).toBe(seen.background);
168
170
  scrollTo(510);
169
171
  expect(shown()).toEqual({ left: false, right: true });
170
172
  });
@@ -217,7 +217,7 @@ describe("Tabs selection indicator colour", () => {
217
217
  const selected = tree.getByRole("tab", { name: "Tab 6" });
218
218
  if (event === "pointerLeave") fireEvent.pointerEnter(selected);
219
219
  fireEvent.pointerDown(selected);
220
- expect(indicator.className).toContain("_bg-color5");
220
+ expect(indicator.className).toContain("_bg-selectPress");
221
221
  fireEvent[event](selected);
222
222
  expect(indicator.className).toContain("_bg-selectedBac");
223
223
  },
@@ -250,9 +250,9 @@ describe("Tabs selection indicator colour", () => {
250
250
  expect(indicator.getAttribute("data-observed-theme")).toBe("light");
251
251
  const selected = tree.getByRole("tab", { name: "Tab 6" });
252
252
  fireEvent.pointerEnter(selected);
253
- expect(indicator.className).toContain("_bg-color5");
253
+ expect(indicator.className).toContain("_bg-selectPress");
254
254
  fireEvent.pointerDown(selected);
255
- expect(indicator.className).toContain("_bg-color5");
255
+ expect(indicator.className).toContain("_bg-selectPress");
256
256
  fireEvent.pointerUp(selected);
257
257
  fireEvent.pointerLeave(selected);
258
258
  expect(indicator.className).toContain("_bg-selectedBac");
@@ -48,7 +48,7 @@ describe("native Tabs accessibility contract", () => {
48
48
  expect(observed.triggers.get("one").onPressIn).toBeTypeOf("function");
49
49
  expect(observed.triggers.get("one").onPressOut).toBeTypeOf("function");
50
50
  act(() => observed.triggers.get("one").onPressIn());
51
- expect(indicator.className).toContain("_bg-color5");
51
+ expect(indicator.className).toContain("_bg-selectPress");
52
52
  act(() => observed.triggers.get("one").onPressOut());
53
53
  expect(indicator.className).toContain("_bg-selectedBac");
54
54
  });