@multiplatform.one/components 7.69.2 → 7.71.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 (359) hide show
  1. package/dist/cjs/DotIndicator/index.cjs +21 -11
  2. package/dist/cjs/DotIndicator/index.native.js +21 -11
  3. package/dist/cjs/DotIndicator/index.native.js.map +1 -1
  4. package/dist/cjs/Pagination.cjs +12 -5
  5. package/dist/cjs/Pagination.native.js +12 -5
  6. package/dist/cjs/Pagination.native.js.map +1 -1
  7. package/dist/cjs/Tabs/index.cjs +5 -5
  8. package/dist/cjs/Tabs/index.native.js +5 -5
  9. package/dist/cjs/Tabs/index.native.js.map +1 -1
  10. package/dist/cjs/appShell/index.cjs +1 -3
  11. package/dist/cjs/appShell/index.native.js +0 -2
  12. package/dist/cjs/appShell/index.native.js.map +1 -1
  13. package/dist/cjs/componentColors.cjs +3 -3
  14. package/dist/cjs/componentColors.native.js +3 -3
  15. package/dist/cjs/layouts/ViewSwitcher.cjs +6 -11
  16. package/dist/cjs/layouts/ViewSwitcher.native.js +6 -11
  17. package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
  18. package/dist/cjs/layouts/bottomAccessory.cjs +173 -0
  19. package/dist/cjs/layouts/bottomAccessory.native.js +225 -0
  20. package/dist/cjs/layouts/bottomAccessory.native.js.map +1 -0
  21. package/dist/cjs/{appShell/BottomAccessory.cjs → layouts/bottomSafeArea.cjs} +12 -14
  22. package/dist/cjs/layouts/bottomSafeArea.native.js +75 -0
  23. package/dist/cjs/layouts/bottomSafeArea.native.js.map +1 -0
  24. package/dist/cjs/layouts/index.cjs +2 -0
  25. package/dist/cjs/layouts/index.native.js +2 -0
  26. package/dist/cjs/layouts/index.native.js.map +1 -1
  27. package/dist/cjs/layouts/page.cjs +16 -5
  28. package/dist/cjs/layouts/page.native.js +16 -5
  29. package/dist/cjs/layouts/page.native.js.map +1 -1
  30. package/dist/cjs/layouts/screenScroll.cjs +44 -0
  31. package/dist/cjs/layouts/screenScroll.native.js +52 -0
  32. package/dist/cjs/layouts/screenScroll.native.js.map +1 -1
  33. package/dist/esm/DotIndicator/index.mjs +21 -11
  34. package/dist/esm/DotIndicator/index.mjs.map +1 -1
  35. package/dist/esm/DotIndicator/index.native.js +21 -11
  36. package/dist/esm/DotIndicator/index.native.js.map +1 -1
  37. package/dist/esm/Pagination.mjs +12 -5
  38. package/dist/esm/Pagination.mjs.map +1 -1
  39. package/dist/esm/Pagination.native.js +12 -5
  40. package/dist/esm/Pagination.native.js.map +1 -1
  41. package/dist/esm/Tabs/index.mjs +5 -5
  42. package/dist/esm/Tabs/index.mjs.map +1 -1
  43. package/dist/esm/Tabs/index.native.js +5 -5
  44. package/dist/esm/Tabs/index.native.js.map +1 -1
  45. package/dist/esm/appShell/index.mjs +1 -2
  46. package/dist/esm/appShell/index.mjs.map +1 -1
  47. package/dist/esm/appShell/index.native.js +1 -2
  48. package/dist/esm/appShell/index.native.js.map +1 -1
  49. package/dist/esm/componentColors.mjs +3 -3
  50. package/dist/esm/componentColors.native.js +3 -3
  51. package/dist/esm/layouts/ViewSwitcher.mjs +6 -11
  52. package/dist/esm/layouts/ViewSwitcher.mjs.map +1 -1
  53. package/dist/esm/layouts/ViewSwitcher.native.js +6 -11
  54. package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -1
  55. package/dist/esm/layouts/bottomAccessory.mjs +144 -0
  56. package/dist/esm/layouts/bottomAccessory.mjs.map +1 -0
  57. package/dist/esm/layouts/bottomAccessory.native.js +193 -0
  58. package/dist/esm/layouts/bottomAccessory.native.js.map +1 -0
  59. package/dist/esm/layouts/bottomSafeArea.mjs +16 -0
  60. package/dist/esm/layouts/bottomSafeArea.mjs.map +1 -0
  61. package/dist/esm/layouts/bottomSafeArea.native.js +47 -0
  62. package/dist/esm/layouts/bottomSafeArea.native.js.map +1 -0
  63. package/dist/esm/layouts/index.mjs +2 -0
  64. package/dist/esm/layouts/index.mjs.map +1 -1
  65. package/dist/esm/layouts/index.native.js +2 -0
  66. package/dist/esm/layouts/index.native.js.map +1 -1
  67. package/dist/esm/layouts/page.mjs +16 -5
  68. package/dist/esm/layouts/page.mjs.map +1 -1
  69. package/dist/esm/layouts/page.native.js +16 -5
  70. package/dist/esm/layouts/page.native.js.map +1 -1
  71. package/dist/esm/layouts/screenScroll.mjs +43 -1
  72. package/dist/esm/layouts/screenScroll.mjs.map +1 -1
  73. package/dist/esm/layouts/screenScroll.native.js +51 -1
  74. package/dist/esm/layouts/screenScroll.native.js.map +1 -1
  75. package/dist/jsx/Accordion/index.native.js.map +1 -1
  76. package/dist/jsx/Alert/index.native.js.map +1 -1
  77. package/dist/jsx/AnimateHeight/index.native.js.map +1 -1
  78. package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
  79. package/dist/jsx/Avatar/index.native.js.map +1 -1
  80. package/dist/jsx/Badge/index.native.js.map +1 -1
  81. package/dist/jsx/Button.native.js.map +1 -1
  82. package/dist/jsx/Card.native.js.map +1 -1
  83. package/dist/jsx/CardFooter.native.js.map +1 -1
  84. package/dist/jsx/CardHeader.native.js.map +1 -1
  85. package/dist/jsx/Carousel/index.native.js.map +1 -1
  86. package/dist/jsx/Chip/index.native.js.map +1 -1
  87. package/dist/jsx/Collapsible.native.js.map +1 -1
  88. package/dist/jsx/ContextMenu/index.native.js.map +1 -1
  89. package/dist/jsx/CopyField/index.native.js.map +1 -1
  90. package/dist/jsx/Dialog.native.js.map +1 -1
  91. package/dist/jsx/DotIndicator/index.mjs +21 -11
  92. package/dist/jsx/DotIndicator/index.mjs.map +1 -1
  93. package/dist/jsx/DotIndicator/index.native.js +21 -11
  94. package/dist/jsx/DotIndicator/index.native.js.map +1 -1
  95. package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
  96. package/dist/jsx/DropdownMenu/menuSettle.native.js.map +1 -1
  97. package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
  98. package/dist/jsx/Heading.native.js.map +1 -1
  99. package/dist/jsx/Kbd/index.native.js.map +1 -1
  100. package/dist/jsx/Kbd/keys.native.js.map +1 -1
  101. package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -1
  102. package/dist/jsx/Lightbox/index.gnome.native.js.map +1 -1
  103. package/dist/jsx/Lightbox/shared.native.js.map +1 -1
  104. package/dist/jsx/Lightbox/useLightbox.native.js.map +1 -1
  105. package/dist/jsx/Material/index.native.js.map +1 -1
  106. package/dist/jsx/Meter/index.native.js.map +1 -1
  107. package/dist/jsx/Meter/meter.native.js.map +1 -1
  108. package/dist/jsx/OverflowRow/index.native.js.map +1 -1
  109. package/dist/jsx/Pagination.mjs +12 -5
  110. package/dist/jsx/Pagination.mjs.map +1 -1
  111. package/dist/jsx/Pagination.native.js +12 -5
  112. package/dist/jsx/Pagination.native.js.map +1 -1
  113. package/dist/jsx/Popover.native.js.map +1 -1
  114. package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
  115. package/dist/jsx/Quote/index.native.js.map +1 -1
  116. package/dist/jsx/SchemeToggle/index.native.js.map +1 -1
  117. package/dist/jsx/ScrollView/revealFocusedField.native.js.map +1 -1
  118. package/dist/jsx/Separator/index.native.js.map +1 -1
  119. package/dist/jsx/Sheet.native.js.map +1 -1
  120. package/dist/jsx/SheetModal/SheetHeader.native.js.map +1 -1
  121. package/dist/jsx/SheetModal/SheetNavigation.native.js.map +1 -1
  122. package/dist/jsx/SheetModal/detents.native.js.map +1 -1
  123. package/dist/jsx/SheetModal/useSheetFrameFocus.native.js.map +1 -1
  124. package/dist/jsx/Skeleton/index.native.js.map +1 -1
  125. package/dist/jsx/SkipLink/index.native.js.map +1 -1
  126. package/dist/jsx/SortableList/SortableHandle.native.js.map +1 -1
  127. package/dist/jsx/SortableList/index.native.js.map +1 -1
  128. package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
  129. package/dist/jsx/Tabs/index.mjs +5 -5
  130. package/dist/jsx/Tabs/index.mjs.map +1 -1
  131. package/dist/jsx/Tabs/index.native.js +5 -5
  132. package/dist/jsx/Tabs/index.native.js.map +1 -1
  133. package/dist/jsx/Text.native.js.map +1 -1
  134. package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
  135. package/dist/jsx/Toast/index.native.js.map +1 -1
  136. package/dist/jsx/Toast/store.native.js.map +1 -1
  137. package/dist/jsx/Tooltip/nativePress.native.js.map +1 -1
  138. package/dist/jsx/Tooltip/tooltipShared.native.js.map +1 -1
  139. package/dist/jsx/TreeSelect/index.native.js.map +1 -1
  140. package/dist/jsx/TreeSelect/treeSelectModel.native.js.map +1 -1
  141. package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
  142. package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
  143. package/dist/jsx/Video/types.native.js.map +1 -1
  144. package/dist/jsx/Wheel/index.native.js.map +1 -1
  145. package/dist/jsx/Wizard/index.native.js.map +1 -1
  146. package/dist/jsx/actions/ActionBar.native.js.map +1 -1
  147. package/dist/jsx/actions/DangerSection.native.js.map +1 -1
  148. package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
  149. package/dist/jsx/actions/HeaderActions.native.js.map +1 -1
  150. package/dist/jsx/actions/StandardAction.native.js.map +1 -1
  151. package/dist/jsx/actions/devWarn.native.js.map +1 -1
  152. package/dist/jsx/actions/index.native.js.map +1 -1
  153. package/dist/jsx/actions/severity.native.js.map +1 -1
  154. package/dist/jsx/appShell/Dock.native.js.map +1 -1
  155. package/dist/jsx/appShell/MpoTabHost.native.js.map +1 -1
  156. package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
  157. package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
  158. package/dist/jsx/appShell/Springboard.native.js.map +1 -1
  159. package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
  160. package/dist/jsx/appShell/TabBar.native.js.map +1 -1
  161. package/dist/jsx/appShell/appTile.native.js.map +1 -1
  162. package/dist/jsx/appShell/bottomChrome.native.js.map +1 -1
  163. package/dist/jsx/appShell/index.mjs +1 -2
  164. package/dist/jsx/appShell/index.mjs.map +1 -1
  165. package/dist/jsx/appShell/index.native.js +0 -2
  166. package/dist/jsx/appShell/index.native.js.map +1 -1
  167. package/dist/jsx/charts/Axis.native.js.map +1 -1
  168. package/dist/jsx/charts/BarChart.native.js.map +1 -1
  169. package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
  170. package/dist/jsx/charts/ChartSurface.native.js.map +1 -1
  171. package/dist/jsx/charts/LineChart.native.js.map +1 -1
  172. package/dist/jsx/charts/PieChart.native.js.map +1 -1
  173. package/dist/jsx/charts/Sparkline.native.js.map +1 -1
  174. package/dist/jsx/charts/accessibility.native.js.map +1 -1
  175. package/dist/jsx/charts/chartHeight.native.js.map +1 -1
  176. package/dist/jsx/charts/composeChart.native.js.map +1 -1
  177. package/dist/jsx/charts/index.native.js.map +1 -1
  178. package/dist/jsx/charts/math.native.js.map +1 -1
  179. package/dist/jsx/charts/series.native.js.map +1 -1
  180. package/dist/jsx/charts/svg.native.js.map +1 -1
  181. package/dist/jsx/charts/types.native.js.map +1 -1
  182. package/dist/jsx/charts/useChartTheme.native.js.map +1 -1
  183. package/dist/jsx/code/Code/index.native.js.map +1 -1
  184. package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
  185. package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
  186. package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
  187. package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
  188. package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
  189. package/dist/jsx/code/Pre/index.native.js.map +1 -1
  190. package/dist/jsx/code/index.native.js.map +1 -1
  191. package/dist/jsx/componentColors.mjs +3 -3
  192. package/dist/jsx/componentColors.native.js +3 -3
  193. package/dist/jsx/componentColors.native.js.map +1 -1
  194. package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
  195. package/dist/jsx/feedback/NotifyHost.native.js +1 -1
  196. package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
  197. package/dist/jsx/feedback/copy.native.js.map +1 -1
  198. package/dist/jsx/feedback/index.native.js.map +1 -1
  199. package/dist/jsx/feedback/notify.native.js.map +1 -1
  200. package/dist/jsx/feedback/route.native.js.map +1 -1
  201. package/dist/jsx/feedback/store.native.js.map +1 -1
  202. package/dist/jsx/formLayouts/FormLayouts.native.js.map +1 -1
  203. package/dist/jsx/formLayouts/PreferencePanel.native.js +1 -1
  204. package/dist/jsx/formLayouts/PreferencePanel.native.js.map +1 -1
  205. package/dist/jsx/formLayouts/index.native.js.map +1 -1
  206. package/dist/jsx/hooks/index.native.js.map +1 -1
  207. package/dist/jsx/hooks/useClipboard.native.js.map +1 -1
  208. package/dist/jsx/hooks/useDocumentTitle.native.js.map +1 -1
  209. package/dist/jsx/hooks/useHoldCue.native.js.map +1 -1
  210. package/dist/jsx/icons/CheckRegular.native.js.map +1 -1
  211. package/dist/jsx/icons/MinusRegular.native.js.map +1 -1
  212. package/dist/jsx/icons/index.native.js.map +1 -1
  213. package/dist/jsx/icons/lucide.native.js.map +1 -1
  214. package/dist/jsx/icons/themed.native.js.map +1 -1
  215. package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -1
  216. package/dist/jsx/images/Image/framing.native.js.map +1 -1
  217. package/dist/jsx/images/Image/mediaRadius.native.js.map +1 -1
  218. package/dist/jsx/images/Image/shared.native.js.map +1 -1
  219. package/dist/jsx/images/Image/types.native.js.map +1 -1
  220. package/dist/jsx/images/index.native.js.map +1 -1
  221. package/dist/jsx/index.native.js +1 -1
  222. package/dist/jsx/index.native.js.map +1 -1
  223. package/dist/jsx/knobImmuneExports.native.js.map +1 -1
  224. package/dist/jsx/layouts/AsyncBoundary.native.js +1 -1
  225. package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
  226. package/dist/jsx/layouts/Debug/index.native.js.map +1 -1
  227. package/dist/jsx/layouts/EmptyState.native.js.map +1 -1
  228. package/dist/jsx/layouts/IdentityPlate.native.js.map +1 -1
  229. package/dist/jsx/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  230. package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
  231. package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
  232. package/dist/jsx/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  233. package/dist/jsx/layouts/StatusDot.native.js.map +1 -1
  234. package/dist/jsx/layouts/ViewSwitcher.mjs +6 -11
  235. package/dist/jsx/layouts/ViewSwitcher.mjs.map +1 -1
  236. package/dist/jsx/layouts/ViewSwitcher.native.js +6 -11
  237. package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
  238. package/dist/jsx/layouts/attachments.native.js.map +1 -1
  239. package/dist/jsx/layouts/bottomAccessory.mjs +144 -0
  240. package/dist/jsx/layouts/bottomAccessory.mjs.map +1 -0
  241. package/dist/jsx/layouts/bottomAccessory.native.js +225 -0
  242. package/dist/jsx/layouts/bottomAccessory.native.js.map +1 -0
  243. package/dist/jsx/layouts/bottomSafeArea.mjs +16 -0
  244. package/dist/jsx/layouts/bottomSafeArea.mjs.map +1 -0
  245. package/dist/jsx/layouts/bottomSafeArea.native.js +75 -0
  246. package/dist/jsx/layouts/bottomSafeArea.native.js.map +1 -0
  247. package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
  248. package/dist/jsx/layouts/index.mjs +2 -0
  249. package/dist/jsx/layouts/index.mjs.map +1 -1
  250. package/dist/jsx/layouts/index.native.js +2 -0
  251. package/dist/jsx/layouts/index.native.js.map +1 -1
  252. package/dist/jsx/layouts/page.mjs +16 -5
  253. package/dist/jsx/layouts/page.mjs.map +1 -1
  254. package/dist/jsx/layouts/page.native.js +16 -5
  255. package/dist/jsx/layouts/page.native.js.map +1 -1
  256. package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
  257. package/dist/jsx/layouts/screenScroll.mjs +43 -1
  258. package/dist/jsx/layouts/screenScroll.mjs.map +1 -1
  259. package/dist/jsx/layouts/screenScroll.native.js +52 -0
  260. package/dist/jsx/layouts/screenScroll.native.js.map +1 -1
  261. package/dist/jsx/layouts/shellSidebarSlot.native.js.map +1 -1
  262. package/dist/jsx/layouts/sidebar.native.js.map +1 -1
  263. package/dist/jsx/layouts/tags.native.js.map +1 -1
  264. package/dist/jsx/layouts/timeline.native.js.map +1 -1
  265. package/dist/jsx/layouts/toolbar.native.js.map +1 -1
  266. package/dist/jsx/shared/actionScan.native.js.map +1 -1
  267. package/dist/jsx/shared/i18n.native.js.map +1 -1
  268. package/dist/jsx/shared/restoreRetries.native.js.map +1 -1
  269. package/dist/jsx/shared/t.native.js.map +1 -1
  270. package/dist/jsx/shared/textRidesText.native.js.map +1 -1
  271. package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
  272. package/dist/jsx/surfaces.native.js.map +1 -1
  273. package/dist/jsx/tamagui.native.js.map +1 -1
  274. package/dist/jsx/testSetup.native.js.map +1 -1
  275. package/dist/jsx/utils/setTinted.native.js.map +1 -1
  276. package/dist/jsx/utils/unwrapText.native.js.map +1 -1
  277. package/dist/jsx/views/Calendar.native.js.map +1 -1
  278. package/dist/jsx/views/Dashboard.native.js.map +1 -1
  279. package/dist/jsx/views/Gantt.native.js.map +1 -1
  280. package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
  281. package/dist/jsx/views/ImageGrid.native.js.map +1 -1
  282. package/dist/jsx/views/List.native.js.map +1 -1
  283. package/dist/jsx/views/ListGroup.native.js.map +1 -1
  284. package/dist/jsx/views/ListRow.native.js.map +1 -1
  285. package/dist/jsx/views/Matrix.native.js.map +1 -1
  286. package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
  287. package/dist/jsx/views/ShortcutCard.native.js.map +1 -1
  288. package/dist/jsx/views/TreeView.native.js.map +1 -1
  289. package/dist/jsx/views/calendarMath.native.js.map +1 -1
  290. package/dist/jsx/views/ganttIntervals.native.js.map +1 -1
  291. package/dist/jsx/views/ganttMath.native.js.map +1 -1
  292. package/dist/jsx/views/index.native.js.map +1 -1
  293. package/dist/jsx/views/kanbanDnd.native.js.map +1 -1
  294. package/dist/jsx/views/matrixMath.native.js.map +1 -1
  295. package/dist/jsx/views/treeViewDnd.native.js.map +1 -1
  296. package/dist/jsx/views/treeViewLayout.native.js.map +1 -1
  297. package/dist/jsx/views/treeViewMotion.native.js.map +1 -1
  298. package/dist/jsx/views/treeViewReveal.native.js.map +1 -1
  299. package/dist/jsx/views/widgetChrome.native.js.map +1 -1
  300. package/package.json +9 -9
  301. package/src/DotIndicator/index.tsx +52 -12
  302. package/src/DotIndicator/pageControl.spec.tsx +105 -0
  303. package/src/Pagination.stories.tsx +23 -0
  304. package/src/Pagination.tsx +17 -5
  305. package/src/Tabs/Tabs.bandColor.spec.tsx +19 -8
  306. package/src/Tabs/Tabs.measurement.spec.tsx +11 -14
  307. package/src/Tabs/Tabs.native.spec.tsx +10 -3
  308. package/src/Tabs/index.tsx +5 -5
  309. package/src/accentControls.spec.tsx +190 -0
  310. package/src/appShell/TabBar.spec.tsx +1 -1
  311. package/src/appShell/index.ts +0 -1
  312. package/src/componentColors.ts +3 -3
  313. package/src/icons/slots.nativeInk.spec.tsx +2 -1
  314. package/src/layouts/ViewSwitcher.spec.tsx +12 -12
  315. package/src/layouts/ViewSwitcher.tsx +6 -7
  316. package/src/layouts/bottomAccessory.spec.tsx +147 -0
  317. package/src/layouts/bottomAccessory.tsx +206 -0
  318. package/src/layouts/bottomSafeArea.native.tsx +43 -0
  319. package/src/layouts/bottomSafeArea.tsx +13 -0
  320. package/src/layouts/index.tsx +2 -0
  321. package/src/layouts/layouts.spec.tsx +6 -9
  322. package/src/layouts/page.tsx +31 -12
  323. package/src/layouts/revealTop.spec.tsx +77 -0
  324. package/src/layouts/screenScroll.tsx +67 -1
  325. package/types/Collapsible.d.ts +1 -1
  326. package/types/DotIndicator/index.d.ts +18 -4
  327. package/types/DotIndicator/index.d.ts.map +1 -1
  328. package/types/Pagination.d.ts +7 -1
  329. package/types/Pagination.d.ts.map +1 -1
  330. package/types/Tabs/index.d.ts.map +1 -1
  331. package/types/appShell/index.d.ts +0 -1
  332. package/types/appShell/index.d.ts.map +1 -1
  333. package/types/componentColors.d.ts +3 -3
  334. package/types/layouts/ViewSwitcher.d.ts.map +1 -1
  335. package/types/layouts/bottomAccessory.d.ts +54 -0
  336. package/types/layouts/bottomAccessory.d.ts.map +1 -0
  337. package/types/layouts/bottomSafeArea.d.ts +6 -0
  338. package/types/layouts/bottomSafeArea.d.ts.map +1 -0
  339. package/types/layouts/bottomSafeArea.native.d.ts +15 -0
  340. package/types/layouts/bottomSafeArea.native.d.ts.map +1 -0
  341. package/types/layouts/index.d.ts +2 -0
  342. package/types/layouts/index.d.ts.map +1 -1
  343. package/types/layouts/page.d.ts +8 -0
  344. package/types/layouts/page.d.ts.map +1 -1
  345. package/types/layouts/screenScroll.d.ts +24 -0
  346. package/types/layouts/screenScroll.d.ts.map +1 -1
  347. package/dist/cjs/appShell/BottomAccessory.native.js +0 -53
  348. package/dist/cjs/appShell/BottomAccessory.native.js.map +0 -1
  349. package/dist/esm/appShell/BottomAccessory.mjs +0 -18
  350. package/dist/esm/appShell/BottomAccessory.mjs.map +0 -1
  351. package/dist/esm/appShell/BottomAccessory.native.js +0 -25
  352. package/dist/esm/appShell/BottomAccessory.native.js.map +0 -1
  353. package/dist/jsx/appShell/BottomAccessory.mjs +0 -18
  354. package/dist/jsx/appShell/BottomAccessory.mjs.map +0 -1
  355. package/dist/jsx/appShell/BottomAccessory.native.js +0 -53
  356. package/dist/jsx/appShell/BottomAccessory.native.js.map +0 -1
  357. package/src/appShell/BottomAccessory.tsx +0 -18
  358. package/types/appShell/BottomAccessory.d.ts +0 -11
  359. package/types/appShell/BottomAccessory.d.ts.map +0 -1
@@ -0,0 +1,43 @@
1
+ import { useEffect, useRef, useState, type ReactNode } from "react";
2
+ import { Keyboard, type View as NativeView } from "react-native";
3
+ import { useSafeAreaFrame, useSafeAreaInsets } from "react-native-safe-area-context";
4
+ import { YStack } from "tamagui";
5
+
6
+ /**
7
+ * Native: the home indicator's inset under the bar, only as much of it as the
8
+ * bar actually overlaps. react-native-safe-area-context's SafeAreaView and
9
+ * hook both report the provider's inset wherever the view sits, so a bar
10
+ * above another bottom bar (a tab bar, an app's own footer) would pad twice.
11
+ * The bar's bottom edge is fixed by the column it closes, so its own padding
12
+ * never moves it and the measurement settles in one pass. The keyboard moves
13
+ * the column without changing the bar's frame, so it re-measures once the
14
+ * keyboard has finished showing or hiding.
15
+ */
16
+ export function BottomSafeArea({ children }: { children: ReactNode }) {
17
+ const insets = useSafeAreaInsets();
18
+ const frame = useSafeAreaFrame();
19
+ const ref = useRef<NativeView>(null);
20
+ const [overlap, setOverlap] = useState(0);
21
+ const measure = () => {
22
+ ref.current?.measureInWindow((_x, y, _width, height) => {
23
+ const gap = frame.y + frame.height - (y + height);
24
+ const next = Math.min(insets.bottom, Math.max(0, Math.round(insets.bottom - gap)));
25
+ setOverlap((previous) => (previous === next ? previous : next));
26
+ });
27
+ };
28
+ const latest = useRef(measure);
29
+ latest.current = measure;
30
+ useEffect(() => {
31
+ const shown = Keyboard.addListener("keyboardDidShow", () => latest.current());
32
+ const hidden = Keyboard.addListener("keyboardDidHide", () => latest.current());
33
+ return () => {
34
+ shown.remove();
35
+ hidden.remove();
36
+ };
37
+ }, []);
38
+ return (
39
+ <YStack ref={ref as never} width="100%" paddingBottom={overlap} onLayout={measure}>
40
+ {children}
41
+ </YStack>
42
+ );
43
+ }
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from "react";
2
+ import { YStack } from "tamagui";
3
+
4
+ const homeIndicator = { paddingBottom: "env(safe-area-inset-bottom)" };
5
+
6
+ /** Web: the home indicator's inset under the bar (0 outside a notched viewport). */
7
+ export function BottomSafeArea({ children }: { children: ReactNode }) {
8
+ return (
9
+ <YStack width="100%" style={homeIndicator as never}>
10
+ {children}
11
+ </YStack>
12
+ );
13
+ }
@@ -11,6 +11,8 @@ export * from "./timeline";
11
11
  export * from "./page";
12
12
  export * from "./pageHeadingScope";
13
13
  export * from "./screenScroll";
14
+ export * from "./bottomAccessory";
15
+ export * from "./bottomSafeArea";
14
16
  export * from "./PageTemplates";
15
17
  export * from "./shellSidebarSlot";
16
18
  export * from "./PaneScaffold";
@@ -1,7 +1,6 @@
1
1
  import { cleanup, fireEvent, render, screen } from "@testing-library/react";
2
2
  import { renderWithProviders } from "@multiplatform.one/test-utils";
3
3
  import { Button } from "@multiplatform.one/forms";
4
- import { componentColors } from "../componentColors";
5
4
  import {
6
5
  createThemesBuilder,
7
6
  defaultAccentTheme,
@@ -360,7 +359,7 @@ describe("ViewSwitcher", () => {
360
359
  expect(screen.getByText("Kanban")).toBeInTheDocument();
361
360
  });
362
361
 
363
- it("fills the selected chip with the neutral selection tier", () => {
362
+ it("fills the selected chip with the accent selection tint and ink (LC-131, LC-172)", () => {
364
363
  const views: ViewOption[] = [
365
364
  { type: "list", label: "List" },
366
365
  { type: "table", label: "Table" },
@@ -374,13 +373,11 @@ describe("ViewSwitcher", () => {
374
373
  const idle = container.querySelector('[data-state="off"]') as HTMLElement;
375
374
  expect(selected).toBeTruthy();
376
375
  expect(idle).toBeTruthy();
377
- expect(selected.className).toContain(`_bg-${componentColors.selection.background.slice(1)}`);
378
- expect(selected.className).toContain(`_bg-0hover-${componentColors.selection.hover.slice(1)}`);
379
- expect(selected.className).toContain(`_bg-0active-${componentColors.selection.press.slice(1)}`);
380
- expect(screen.getByText("List").className).toContain(
381
- `_col-${componentColors.selection.ink.slice(1)}`,
382
- );
383
- expect(idle.className).not.toContain(`_bg-${componentColors.selection.background.slice(1)}`);
376
+ expect(selected.className).toContain("_bg-selectedBac");
377
+ expect(selected.className).toContain("_bg-0hover-selectedBac");
378
+ expect(selected.className).toContain("_bg-0active-selectedBac");
379
+ expect(screen.getByText("List").className).toContain("_col-selectedCol");
380
+ expect(idle.className).not.toContain("_bg-selectedBac");
384
381
  });
385
382
 
386
383
  function atoms(el: Element, prefixes: string[]): string[] {
@@ -54,6 +54,11 @@ import { useDirection } from "../hooks/useDirection";
54
54
  import { useTranslation } from "../shared/i18n";
55
55
  import { ScrollView } from "../ScrollView";
56
56
  import { KeyboardAvoidingWrapper } from "./KeyboardAvoidingWrapper";
57
+ import {
58
+ BottomAccessoryHost,
59
+ BottomAccessoryScope,
60
+ createBottomAccessoryStore,
61
+ } from "./bottomAccessory";
57
62
  import {
58
63
  ScreenScrollScope,
59
64
  TopBarSlot,
@@ -120,6 +125,14 @@ export interface ScreenProps extends YStackProps {
120
125
  * SF-TRANSPARENT + SP-PAD/SP-GAP: panelPadding and gapLg are spacing roles,
121
126
  * so the active preset's token scale restyles them (LC-100).
122
127
  *
128
+ * LC-174: the page hosts one bottom-accessory slot, a bar under the scroll
129
+ * view that `<BottomAccessory>` controls (a phone DataTable's pager) render
130
+ * in. It draws nothing until a control registers. The bar closes the page's
131
+ * column below the scroll view, so the scroll view ends above it. On web it
132
+ * is also sticky: when nothing bounds the page's height the scroll view grows
133
+ * with its content and the document scrolls, and the bar still meets the
134
+ * viewport's bottom edge.
135
+ *
123
136
  * @example
124
137
  * <Screen>
125
138
  * <PageHeader title="Pokemon" subtitle="A list of pokemon" />
@@ -139,6 +152,7 @@ export function Screen({
139
152
  }: ScreenProps) {
140
153
  const { knobProps } = useResolvedKnobs({ component: "Screen" });
141
154
  const scrollState = useScreenScrollController();
155
+ const [accessories] = useState(createBottomAccessoryStore);
142
156
  const chromeInset = useBottomChromeInset();
143
157
  const inset = noPadding ? null : (knobProps.panelPadding.padding as string);
144
158
  const cap = maxWidth && !bleed ? maxWidth : null;
@@ -170,8 +184,14 @@ export function Screen({
170
184
  </TopBarSlot>
171
185
  ) : null;
172
186
 
187
+ const accessory = <BottomAccessoryHost store={accessories} inset={inset} maxWidth={cap} />;
188
+
173
189
  const shell = (page: ReactNode) => {
174
- const scoped = <ScreenScrollScope controller={scrollState}>{page}</ScreenScrollScope>;
190
+ const scoped = (
191
+ <ScreenScrollScope controller={scrollState}>
192
+ <BottomAccessoryScope store={accessories}>{page}</BottomAccessoryScope>
193
+ </ScreenScrollScope>
194
+ );
175
195
  return isWeb || !avoidKeyboard ? (
176
196
  scoped
177
197
  ) : (
@@ -196,6 +216,7 @@ export function Screen({
196
216
  <YStack flex={1} backgroundColor="$background">
197
217
  {bar}
198
218
  {inner}
219
+ {accessory}
199
220
  {chromeClearance}
200
221
  </YStack>,
201
222
  );
@@ -203,6 +224,7 @@ export function Screen({
203
224
 
204
225
  const scroller = (
205
226
  <ScrollView
227
+ ref={scrollState.scroller as never}
206
228
  flex={1}
207
229
  backgroundColor="$background"
208
230
  // flexGrow lets flex:1 children (e.g. EmptyState centering) fill the
@@ -221,17 +243,14 @@ export function Screen({
221
243
  );
222
244
 
223
245
  return shell(
224
- bar ? (
225
- // minHeight 0: a flex column's min-height is its content by default, so
226
- // without it the column grows to the page and an outer scroller (a
227
- // shell's overflow region) scrolls the bar away with the content.
228
- <YStack flex={1} minHeight={0} backgroundColor="$background">
229
- {bar}
230
- {scroller}
231
- </YStack>
232
- ) : (
233
- scroller
234
- ),
246
+ // minHeight 0: a flex column's min-height is its content by default, so
247
+ // without it the column grows to the page and an outer scroller (a
248
+ // shell's overflow region) scrolls the bar away with the content.
249
+ <YStack flex={1} minHeight={0} backgroundColor="$background">
250
+ {bar}
251
+ {scroller}
252
+ {accessory}
253
+ </YStack>,
235
254
  );
236
255
  }
237
256
 
@@ -0,0 +1,77 @@
1
+ /**
2
+ * FZ-7889 round 4: turning a paged list's page replaces its rows in place, so
3
+ * the page scrolls back to the list's top, the way a list reloads at its first
4
+ * row. `useRevealTop` moves the nearest Screen's scroll view only when the
5
+ * reader had scrolled past the block's top.
6
+ */
7
+ import { renderWithProviders } from "@multiplatform.one/test-utils";
8
+ import { act, cleanup } from "@testing-library/react";
9
+ import { useEffect } from "react";
10
+ import { afterEach, describe, expect, it } from "vitest";
11
+ import { Screen } from "./page";
12
+ import { revealOffset, useRevealTop } from "./screenScroll";
13
+
14
+ const original = {
15
+ rect: Element.prototype.getBoundingClientRect,
16
+ into: Element.prototype.scrollIntoView,
17
+ };
18
+
19
+ afterEach(() => {
20
+ Element.prototype.getBoundingClientRect = original.rect;
21
+ Element.prototype.scrollIntoView = original.into;
22
+ cleanup();
23
+ });
24
+
25
+ function stub(blockTop: number) {
26
+ const scrolled: Element[] = [];
27
+ Element.prototype.getBoundingClientRect = function (this: Element) {
28
+ const top = this.hasAttribute("data-block") ? blockTop : 0;
29
+ return { top, bottom: top + 10 } as DOMRect;
30
+ };
31
+ Element.prototype.scrollIntoView = function (this: Element) {
32
+ scrolled.push(this);
33
+ };
34
+ return scrolled;
35
+ }
36
+
37
+ let revealNow: () => void = () => undefined;
38
+
39
+ function Block() {
40
+ const { ref, reveal } = useRevealTop();
41
+ useEffect(() => {
42
+ revealNow = reveal;
43
+ }, [reveal]);
44
+ return <div ref={ref} data-block="" />;
45
+ }
46
+
47
+ describe("useRevealTop", () => {
48
+ it("scrolls a block whose top has scrolled away back to the top edge (web)", () => {
49
+ const scrolled = stub(-300);
50
+ renderWithProviders(
51
+ <Screen>
52
+ <Block />
53
+ </Screen>,
54
+ );
55
+ act(() => revealNow());
56
+ expect(scrolled).toHaveLength(1);
57
+ expect(scrolled[0]!.hasAttribute("data-block")).toBe(true);
58
+ });
59
+
60
+ it("leaves a block whose top is on screen where it is", () => {
61
+ const scrolled = stub(80);
62
+ renderWithProviders(
63
+ <Screen>
64
+ <Block />
65
+ </Screen>,
66
+ );
67
+ act(() => revealNow());
68
+ expect(scrolled).toHaveLength(0);
69
+ });
70
+
71
+ it("native offset: back to the block's top only when scrolled past it", () => {
72
+ expect(revealOffset(400, 900)).toBe(400);
73
+ expect(revealOffset(400, 400)).toBeNull();
74
+ expect(revealOffset(400, 120)).toBeNull();
75
+ expect(revealOffset(-4, 300)).toBe(0);
76
+ });
77
+ });
@@ -35,6 +35,10 @@ export interface ScreenScrollState {
35
35
 
36
36
  interface ScreenScrollActions {
37
37
  contentRoot: RefObject<unknown>;
38
+ /** The Screen's ScrollView. */
39
+ scroller: RefObject<unknown>;
40
+ /** The scroll view's current vertical offset. */
41
+ offset: () => number;
38
42
  /** Register the page's large title; returns the unregister cleanup. */
39
43
  registerTitle: (title: string) => () => void;
40
44
  /** Report the large title's bottom edge in scroll-content coordinates. */
@@ -72,6 +76,8 @@ export interface ScreenScrollController {
72
76
  onScroll: (event: ScrollEventLike) => void;
73
77
  /** Ref for the scroll content root the large title measures against. */
74
78
  contentRoot: RefObject<unknown>;
79
+ /** Ref for the Screen's ScrollView, which `useRevealTop` scrolls. */
80
+ scroller: RefObject<unknown>;
75
81
  state: ScreenScrollState;
76
82
  actions: ScreenScrollActions;
77
83
  }
@@ -84,6 +90,7 @@ export interface ScreenScrollController {
84
90
  */
85
91
  export function useScreenScrollController(): ScreenScrollController {
86
92
  const contentRoot = useRef<unknown>(null);
93
+ const scroller = useRef<unknown>(null);
87
94
  const offset = useRef(0);
88
95
  const titleBottom = useRef<number | null>(null);
89
96
  const [state, setState] = useState<ScreenScrollState>(resting);
@@ -111,6 +118,8 @@ export function useScreenScrollController(): ScreenScrollController {
111
118
  const actions = useMemo<ScreenScrollActions>(
112
119
  () => ({
113
120
  contentRoot,
121
+ scroller,
122
+ offset: () => offset.current,
114
123
  registerTitle: (title) => {
115
124
  setState((prev) => (prev.title === title ? prev : { ...prev, title }));
116
125
  sync();
@@ -129,7 +138,7 @@ export function useScreenScrollController(): ScreenScrollController {
129
138
  [sync],
130
139
  );
131
140
 
132
- return { onScroll, contentRoot, state, actions };
141
+ return { onScroll, contentRoot, scroller, state, actions };
133
142
  }
134
143
 
135
144
  /** Provides one Screen's scroll state to its top bar and its large title. */
@@ -156,6 +165,7 @@ export function useScreenScroll(): ScreenScrollState {
156
165
 
157
166
  type Measurable = {
158
167
  getBoundingClientRect?: () => { top: number; bottom: number };
168
+ scrollIntoView?: (options?: { block?: "start" }) => void;
159
169
  measureLayout?: (
160
170
  relativeTo: unknown,
161
171
  done: (x: number, y: number, width: number, height: number) => void,
@@ -219,6 +229,62 @@ export function useLargeTitle(title: string | undefined, enabled = true) {
219
229
  return active ? { ref, onLayout: measure, "data-large-title": uid } : {};
220
230
  }
221
231
 
232
+ /**
233
+ * Where a scroll view at `offset` must move so content at `top` (in
234
+ * scroll-content coordinates) sits at its top edge, or null when that content
235
+ * is already at or below the edge.
236
+ */
237
+ export function revealOffset(top: number, offset: number): number | null {
238
+ return top < offset - 1 ? Math.max(0, top) : null;
239
+ }
240
+
241
+ type Scrollable = {
242
+ scrollTo?: (options: { y: number; animated?: boolean }) => void;
243
+ getScrollableNode?: () => unknown;
244
+ };
245
+
246
+ /**
247
+ * Brings a block's top edge back into view after its content was replaced in
248
+ * place (a paged list turning the page): spread `ref` on the block and call
249
+ * `reveal()`. When the reader had scrolled past the block's top, the nearest
250
+ * Screen's scroll view moves so the block starts at its top edge, the way a
251
+ * list reloads at its first row; a block whose top is still on screen stays
252
+ * put. On web the document scrolls too when nothing bounds the Screen.
253
+ */
254
+ export function useRevealTop() {
255
+ const actions = useContext(ScreenScrollActionsContext);
256
+ const node = useRef<Measurable | null>(null);
257
+ const ref = useCallback((value: unknown) => {
258
+ node.current = value as Measurable | null;
259
+ }, []);
260
+
261
+ const reveal = useCallback(() => {
262
+ const target = node.current;
263
+ if (!target) return;
264
+ if (isWeb) {
265
+ if (!target.getBoundingClientRect || !target.scrollIntoView) return;
266
+ const host = actions?.scroller.current as Scrollable | null | undefined;
267
+ const scrollNode = (host?.getScrollableNode?.() ?? host) as Measurable | null | undefined;
268
+ const edge = Math.max(0, scrollNode?.getBoundingClientRect?.().top ?? 0);
269
+ if (target.getBoundingClientRect().top < edge - 1) target.scrollIntoView({ block: "start" });
270
+ return;
271
+ }
272
+ const root = actions?.contentRoot.current as Measurable | null | undefined;
273
+ const host = actions?.scroller.current as Scrollable | null | undefined;
274
+ if (!actions || !root || !host?.scrollTo) return;
275
+ target.measureLayout?.(
276
+ root,
277
+ (_x, y) => {
278
+ const next = revealOffset(y, actions.offset());
279
+ if (next !== null) host.scrollTo?.({ y: next, animated: false });
280
+ },
281
+ () => undefined,
282
+ );
283
+ }, [actions]);
284
+
285
+ return { ref, reveal };
286
+ }
287
+
222
288
  interface TopBarSlotValue {
223
289
  /** The page gutter the bar's controls line up with. */
224
290
  inset: string | null;
@@ -7,7 +7,7 @@ export type CollapsibleTriggerProps = ComponentProps<typeof TamaguiCollapsible.T
7
7
  export declare const Collapsible: import("react").ForwardRefExoticComponent<Omit<import("tamagui").CollapsibleProps & {
8
8
  __scopeCollapsible?: string;
9
9
  } & import("react").RefAttributes<import("tamagui").TamaguiElement>, "ref"> & import("react").RefAttributes<import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods)>> & {
10
- Trigger: import("tamagui").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("tamagui").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {}>, "type" | "b" | "br" | "col" | "p" | "px" | `$${string}` | "h" | "l" | "lh" | "pt" | "r" | "ussel" | "cur" | "pe" | "ff" | "fos" | "fost" | "fow" | "ls" | "ta" | "tt" | "ww" | "ac" | "ai" | "als" | "bc" | "bg" | "bbc" | "bblr" | "bbrr" | "bbw" | "blc" | "blw" | "boc" | "bs" | "brw" | "brc" | "btc" | "btlr" | "btrr" | "btw" | "bw" | "dsp" | "f" | "fb" | "fd" | "fg" | "fs" | "fw" | "jc" | "m" | "mah" | "maw" | "mb" | "mih" | "miw" | "ml" | "mr" | "mt" | "mx" | "my" | "o" | "ov" | "pb" | "pl" | "pos" | "pr" | "py" | "shac" | "shar" | "shof" | "shop" | "t" | "w" | "zi" | `$${number}` | import("@tamagui/web").GroupMediaKeys | keyof import("tamagui").StackNonStyleProps | keyof import("@tamagui/web").StackStyleBase | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | keyof import("react").RefAttributes<import("tamagui").TamaguiElement>> & Omit<import("tamagui").StackNonStyleProps, keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & import("react").RefAttributes<import("tamagui").TamaguiElement> & {
10
+ Trigger: import("tamagui").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("tamagui").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {}>, "type" | "b" | "br" | "col" | "p" | "px" | `$${string}` | "r" | "h" | "l" | "lh" | "pt" | "ussel" | "cur" | "pe" | "ff" | "fos" | "fost" | "fow" | "ls" | "ta" | "tt" | "ww" | "ac" | "ai" | "als" | "bc" | "bg" | "bbc" | "bblr" | "bbrr" | "bbw" | "blc" | "blw" | "boc" | "bs" | "brw" | "brc" | "btc" | "btlr" | "btrr" | "btw" | "bw" | "dsp" | "f" | "fb" | "fd" | "fg" | "fs" | "fw" | "jc" | "m" | "mah" | "maw" | "mb" | "mih" | "miw" | "ml" | "mr" | "mt" | "mx" | "my" | "o" | "ov" | "pb" | "pl" | "pos" | "pr" | "py" | "shac" | "shar" | "shof" | "shop" | "t" | "w" | "zi" | `$${number}` | import("@tamagui/web").GroupMediaKeys | keyof import("tamagui").StackNonStyleProps | keyof import("@tamagui/web").StackStyleBase | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | keyof import("react").RefAttributes<import("tamagui").TamaguiElement>> & Omit<import("tamagui").StackNonStyleProps, keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & import("react").RefAttributes<import("tamagui").TamaguiElement> & {
11
11
  /** Web button intent; disclosure controls do not submit forms by default. */
12
12
  type?: "button" | "submit" | "reset";
13
13
  }, import("tamagui").TamaguiElement, import("tamagui").StackNonStyleProps & void & Omit<import("tamagui").StackNonStyleProps, keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & import("react").RefAttributes<import("tamagui").TamaguiElement> & {
@@ -20,11 +20,21 @@ import type { GetProps } from "tamagui";
20
20
  */
21
21
  export type DotVariant = "dots" | "bars" | "pills";
22
22
  /**
23
- * What the dots stand for. The two idioms differ only in a11y vocabulary:
23
+ * What the dots stand for. The idioms differ only in a11y vocabulary:
24
24
  * a carousel marks its current slide (`aria-current="true"`, "Go to item N"),
25
- * a wizard marks its current step (`aria-current="step"`, "Go to step N").
25
+ * a wizard marks its current step (`aria-current="step"`, "Go to step N"),
26
+ * a pager marks its current page (`aria-current="page"`, "Go to page N").
26
27
  */
27
- export type DotIdiom = "item" | "step";
28
+ export type DotIdiom = "item" | "step" | "page";
29
+ /**
30
+ * How a long strip collapses to its window.
31
+ *
32
+ * - `distance` — Instagram / Swiper `dynamicBullets`: marks shrink with their
33
+ * distance from the active one.
34
+ * - `edge` — iOS UIPageControl: every mark in the window is full size except
35
+ * the last two toward an edge with more pages beyond it.
36
+ */
37
+ export type DotWindowing = "distance" | "edge";
28
38
  export interface DotIndicatorProps {
29
39
  /** Total number of dots */
30
40
  total: number;
@@ -56,6 +66,10 @@ export interface DotIndicatorProps {
56
66
  * `data-pagination-dot`, which probes and specs already assert against.
57
67
  */
58
68
  dotStateAttribute?: string;
69
+ /** Marks shown before the strip windows (default 5) */
70
+ maxVisible?: number;
71
+ /** How the window shrinks its marks (default `distance`) */
72
+ windowing?: DotWindowing;
59
73
  }
60
74
  declare const DotsContainer: import("tamagui").TamaguiComponent<import("@tamagui/web").TamaDefer, import("tamagui").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
61
75
  elevation?: number | import("tamagui").SizeTokens | undefined;
@@ -66,7 +80,7 @@ declare const Dot: import("tamagui").TamaguiComponent<import("@tamagui/web").Tam
66
80
  active?: boolean | undefined;
67
81
  disabled?: boolean | undefined;
68
82
  }, import("@tamagui/web").StaticConfigPublic>;
69
- export declare function DotIndicator({ total, activeIndex, onChange, variant, gap: gapProp, disabled, completedSteps, idiom, rail, dotSize, activeDotSize, transition, dotStateAttribute, }: DotIndicatorProps): import("react/jsx-runtime").JSX.Element;
83
+ export declare function DotIndicator({ total, activeIndex, onChange, variant, gap: gapProp, disabled, completedSteps, idiom, rail, dotSize, activeDotSize, transition, dotStateAttribute, maxVisible, windowing, }: DotIndicatorProps): import("react/jsx-runtime").JSX.Element;
70
84
  export type DotsContainerProps = GetProps<typeof DotsContainer>;
71
85
  export type DotProps = GetProps<typeof Dot>;
72
86
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","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AE,MAAM,GAAG,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AA4GD,QAAA,MAAM,aAAa;;;;6CAuBjB,CAAC;AAwBH,QAAA,MAAM,GAAG;;;6CAiCP,CAAC;AAIH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAgB,EAChB,GAAG,EAAE,OAAO,EACZ,QAAgB,EAChB,cAAc,EACd,KAAc,EACd,IAAY,EACZ,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAoC,EACpC,UAAmB,EACnB,SAAsB,GACvB,EAAE,iBAAiB,2CAoMnB;AAED,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC"}
@@ -56,6 +56,12 @@ export interface PaginationProps extends Omit<XStackProps, "children" | "onChang
56
56
  boundaryCount?: number;
57
57
  /** Show first/last double-chevron buttons (numbered variant) */
58
58
  showFirstLast?: boolean;
59
+ /**
60
+ * What a dot strip counts. `step` (default) is the wizard; `page` is the
61
+ * iOS UIPageControl pager for a list: chevrons, every dot jumps to its
62
+ * page, and a long strip windows to seven with shrinking edge dots.
63
+ */
64
+ idiom?: "step" | "page";
59
65
  }
60
- export declare function Pagination({ total, activeIndex, onChange, page, defaultPage, onPageChange, completedSteps, allowJumpTo, isLastStep, onSubmit, disabled, variant, totalItems, pageSize, showSummary, siblingCount, boundaryCount, showFirstLast, openEnded, ...stackProps }: PaginationProps): import("react/jsx-runtime").JSX.Element;
66
+ export declare function Pagination({ total, activeIndex, onChange, page, defaultPage, onPageChange, completedSteps, allowJumpTo, isLastStep, onSubmit, disabled, variant, totalItems, pageSize, showSummary, siblingCount, boundaryCount, showFirstLast, openEnded, idiom, ...stackProps }: PaginationProps): import("react/jsx-runtime").JSX.Element;
61
67
  //# sourceMappingURL=Pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../src/Pagination.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAMhE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAKxE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,YAAY,SAAI,EAChB,aAAa,SAAI,GAChB,cAAc,EAAE,CA4BlB;AAsBD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,CAAC;IACjF,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,qEAAqE;IACrE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,4EAA4E;IAC5E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iFAAiF;IACjF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAOi3hB,CAAC;;;;;;;;oBAAq8C,CAAC;oBAA2C,CAAC;gBAAuC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAk1R,CAAC;;;;;;;;oBAAq8C,CAAC;oBAA2C,CAAC;gBAAuC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAHxw5B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC"}
@@ -7,5 +7,4 @@ export * from "./Springboard";
7
7
  export type { AppEntry } from "./appTile";
8
8
  export * from "./SettingsSplit";
9
9
  export { useBottomChromeInset } from "./bottomChrome";
10
- export { BottomAccessory } from "./BottomAccessory";
11
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appShell/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,cAAc,eAAe,CAAC;AAC9B,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appShell/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,cAAc,eAAe,CAAC;AAC9B,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -28,9 +28,9 @@ export declare const componentColors: {
28
28
  readonly border: "$color7";
29
29
  };
30
30
  /**
31
- * LC-05: one selection tier for selected/current/highlighted rows, segments,
32
- * tabs and chips (List, Sidebar, Tabs, ViewSwitcher, ToggleGroup, TreeView,
33
- * CommandPalette). Paint background with ink; ring is the optional chip
31
+ * LC-05: one selection tier for current/highlighted rows (List, Sidebar,
32
+ * TreeView, CommandPalette). Selected tabs, segments and chips take LC-131's
33
+ * `$selectedBackground` / `$selectedColor` instead. Paint background with ink; ring is the optional chip
34
34
  * edge or drop line. Same values as forms' formSelectionColors.
35
35
  */
36
36
  readonly selection: {
@@ -1 +1 @@
1
- {"version":3,"file":"ViewSwitcher.d.ts","sourceRoot":"","sources":["../../src/layouts/ViewSwitcher.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,UAAU;IACzB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9C,uFAAuF;IACvF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,YAAY,EACZ,MAAwB,GACzB,EAAE,iBAAiB,2CAgNnB"}
1
+ {"version":3,"file":"ViewSwitcher.d.ts","sourceRoot":"","sources":["../../src/layouts/ViewSwitcher.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,UAAU;IACzB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9C,uFAAuF;IACvF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,YAAY,EACZ,MAAwB,GACzB,EAAE,iBAAiB,2CAgNnB"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * LC-174 BOTTOM-ACCESSORY: on a phone, paging and navigation controls pin to
3
+ * the bottom edge of the screen above the safe area (UIToolbar, the
4
+ * UIPageControl under a paged list), not inline after the content.
5
+ *
6
+ * Under a floating TabBar the accessory moves into the bar, which floats it
7
+ * as its own capsule above the tab capsule (LC-150). Otherwise a page shell
8
+ * (`Screen`) owns one bottom-accessory slot. Any component
9
+ * hands it a control with `<BottomAccessory>`; the shell draws it in a bar
10
+ * under its scroll view that stays put while the content scrolls, so the
11
+ * scroll view ends above the bar and its last row stays visible. Without a
12
+ * slot the control renders where it is: inline on native, a sticky bar on web
13
+ * (`position: sticky; bottom: 0`, so it still meets the viewport's edge).
14
+ *
15
+ * The accessory is rendered by the slot, outside the registering component's
16
+ * tree: it receives the shell's theme and none of the component's own
17
+ * contexts, so pass it plain elements with their handlers bound.
18
+ */
19
+ import { type ReactNode } from "react";
20
+ interface Entry {
21
+ id: number;
22
+ node: ReactNode;
23
+ }
24
+ export interface BottomAccessoryStore {
25
+ set(id: number, node: ReactNode): void;
26
+ remove(id: number): void;
27
+ subscribe(listener: () => void): () => void;
28
+ getSnapshot(): readonly Entry[];
29
+ }
30
+ /** The registry a page shell's slot reads. One per shell. */
31
+ export declare function createBottomAccessoryStore(): BottomAccessoryStore;
32
+ /** Declares a page's bottom-accessory slot to the tree under it. Renders no DOM. */
33
+ export declare function BottomAccessoryScope({ store, children, }: {
34
+ store: BottomAccessoryStore;
35
+ children: ReactNode;
36
+ }): import("react/jsx-runtime").JSX.Element;
37
+ /** The nearest page's bottom-accessory slot, or null when nothing hosts one. */
38
+ export declare function useBottomAccessorySlot(): BottomAccessoryStore | null;
39
+ export interface BottomAccessoryProps {
40
+ children: ReactNode;
41
+ }
42
+ /**
43
+ * Hands `children` to the page's bottom-accessory slot. With no slot it
44
+ * renders them in place: inline on native, a sticky bottom bar on web.
45
+ */
46
+ export declare function BottomAccessory({ children }: BottomAccessoryProps): import("react/jsx-runtime").JSX.Element | null;
47
+ /** A page shell's slot: the bar the registered accessories render in. */
48
+ export declare function BottomAccessoryHost({ store, inset, maxWidth, }: {
49
+ store: BottomAccessoryStore;
50
+ inset?: string | null;
51
+ maxWidth?: number | null;
52
+ }): import("react/jsx-runtime").JSX.Element | null;
53
+ export {};
54
+ //# sourceMappingURL=bottomAcc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,6 @@
1
+ import type { ReactNode } from "react";
2
+ /** Web: the home indicator's inset under the bar (0 outside a notched viewport). */
3
+ export declare function BottomSafeArea({ children }: {
4
+ children: ReactNode;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=bottomSafeArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bottomSafeArea.d.ts","sourceRoot":"","sources":["../../src/layouts/bottomSafeArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAMnE"}
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from "react";
2
+ /**
3
+ * Native: the home indicator's inset under the bar, only as much of it as the
4
+ * bar actually overlaps. react-native-safe-area-context's SafeAreaView and
5
+ * hook both report the provider's inset wherever the view sits, so a bar
6
+ * above another bottom bar (a tab bar, an app's own footer) would pad twice.
7
+ * The bar's bottom edge is fixed by the column it closes, so its own padding
8
+ * never moves it and the measurement settles in one pass. The keyboard moves
9
+ * the column without changing the bar's frame, so it re-measures once the
10
+ * keyboard has finished showing or hiding.
11
+ */
12
+ export declare function BottomSafeArea({ children }: {
13
+ children: ReactNode;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=bottomSafeArea.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bottomSafeArea.native.d.ts","sourceRoot":"","sources":["../../src/layouts/bottomSafeArea.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKpE;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CA2BnE"}