@multiplatform.one/components 7.7.4 → 7.7.6

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 (378) hide show
  1. package/dist/cjs/Accordion/index.cjs +4 -0
  2. package/dist/cjs/Accordion/index.native.js +5 -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.cjs +29 -2
  6. package/dist/cjs/AnimateHeight/index.native.js +30 -2
  7. package/dist/cjs/AnimateHeight/index.native.js.map +1 -1
  8. package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
  9. package/dist/cjs/Avatar/index.native.js.map +1 -1
  10. package/dist/cjs/Badge/index.native.js.map +1 -1
  11. package/dist/cjs/Button.native.js.map +1 -1
  12. package/dist/cjs/Card.native.js.map +1 -1
  13. package/dist/cjs/CardFooter.native.js.map +1 -1
  14. package/dist/cjs/CardHeader.native.js.map +1 -1
  15. package/dist/cjs/Carousel/index.native.js +1 -1
  16. package/dist/cjs/Carousel/index.native.js.map +1 -1
  17. package/dist/cjs/Chip/index.native.js.map +1 -1
  18. package/dist/cjs/Collapsible.cjs +48 -0
  19. package/dist/cjs/Collapsible.native.js +56 -0
  20. package/dist/cjs/Collapsible.native.js.map +1 -0
  21. package/dist/cjs/ContextMenu/index.native.js.map +1 -1
  22. package/dist/cjs/CopyField/index.native.js.map +1 -1
  23. package/dist/cjs/DotIndicator/index.native.js.map +1 -1
  24. package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
  25. package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
  26. package/dist/cjs/Heading.native.js.map +1 -1
  27. package/dist/cjs/Meter/index.native.js +1 -1
  28. package/dist/cjs/Meter/index.native.js.map +1 -1
  29. package/dist/cjs/Meter/meter.native.js.map +1 -1
  30. package/dist/cjs/Pagination.cjs +28 -9
  31. package/dist/cjs/Pagination.native.js +29 -10
  32. package/dist/cjs/Pagination.native.js.map +1 -1
  33. package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
  34. package/dist/cjs/Quote/index.native.js.map +1 -1
  35. package/dist/cjs/Separator/index.native.js.map +1 -1
  36. package/dist/cjs/SheetModal/detents.native.js.map +1 -1
  37. package/dist/cjs/Skeleton/index.native.js.map +1 -1
  38. package/dist/cjs/SkipLink/index.native.js.map +1 -1
  39. package/dist/cjs/SortableList/SortableHandle.native.js.map +1 -1
  40. package/dist/cjs/SortableList/index.native.js.map +1 -1
  41. package/dist/cjs/SortableList/useSortableRows.native.js.map +1 -1
  42. package/dist/cjs/Tabs/index.cjs +144 -91
  43. package/dist/cjs/Tabs/index.native.js +186 -123
  44. package/dist/cjs/Tabs/index.native.js.map +1 -1
  45. package/dist/cjs/Text.native.js.map +1 -1
  46. package/dist/cjs/Toast/index.native.js.map +1 -1
  47. package/dist/cjs/Toast/store.native.js.map +1 -1
  48. package/dist/cjs/Tooltip/nativePress.native.js.map +1 -1
  49. package/dist/cjs/Tooltip/tooltipShared.native.js.map +1 -1
  50. package/dist/cjs/TreeSelect/index.native.js +1 -1
  51. package/dist/cjs/TreeSelect/index.native.js.map +1 -1
  52. package/dist/cjs/TreeSelect/treeSelectModel.native.js.map +1 -1
  53. package/dist/cjs/Video/PlayerChrome.native.js.map +1 -1
  54. package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
  55. package/dist/cjs/Video/types.native.js.map +1 -1
  56. package/dist/cjs/Wheel/index.native.js.map +1 -1
  57. package/dist/cjs/Wizard/index.native.js +2 -2
  58. package/dist/cjs/Wizard/index.native.js.map +1 -1
  59. package/dist/cjs/actions/ActionBar.native.js.map +1 -1
  60. package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
  61. package/dist/cjs/actions/devWarn.native.js.map +1 -1
  62. package/dist/cjs/actions/index.native.js.map +1 -1
  63. package/dist/cjs/actions/severity.native.js.map +1 -1
  64. package/dist/cjs/charts/Axis.native.js.map +1 -1
  65. package/dist/cjs/charts/BarChart.native.js.map +1 -1
  66. package/dist/cjs/charts/ChartSurface.native.js.map +1 -1
  67. package/dist/cjs/charts/LineChart.native.js.map +1 -1
  68. package/dist/cjs/charts/PieChart.native.js.map +1 -1
  69. package/dist/cjs/charts/Sparkline.native.js.map +1 -1
  70. package/dist/cjs/charts/accessibility.native.js.map +1 -1
  71. package/dist/cjs/charts/composeChart.native.js.map +1 -1
  72. package/dist/cjs/charts/index.native.js.map +1 -1
  73. package/dist/cjs/charts/math.native.js.map +1 -1
  74. package/dist/cjs/charts/series.native.js.map +1 -1
  75. package/dist/cjs/charts/svg.native.js.map +1 -1
  76. package/dist/cjs/charts/types.native.js.map +1 -1
  77. package/dist/cjs/charts/useChartTheme.native.js.map +1 -1
  78. package/dist/cjs/code/Code/index.native.js.map +1 -1
  79. package/dist/cjs/code/CodeBlock/index.native.js +6 -6
  80. package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
  81. package/dist/cjs/code/HighlightedCode/index.native.js.map +1 -1
  82. package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
  83. package/dist/cjs/code/Pre/index.native.js.map +1 -1
  84. package/dist/cjs/code/index.native.js +5 -5
  85. package/dist/cjs/code/index.native.js.map +1 -1
  86. package/dist/cjs/componentColors.native.js.map +1 -1
  87. package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
  88. package/dist/cjs/feedback/NotifyHost.native.js +2 -2
  89. package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
  90. package/dist/cjs/feedback/copy.native.js.map +1 -1
  91. package/dist/cjs/feedback/index.native.js.map +1 -1
  92. package/dist/cjs/feedback/notify.native.js.map +1 -1
  93. package/dist/cjs/feedback/route.native.js.map +1 -1
  94. package/dist/cjs/feedback/store.native.js.map +1 -1
  95. package/dist/cjs/hooks/index.native.js +1 -1
  96. package/dist/cjs/hooks/index.native.js.map +1 -1
  97. package/dist/cjs/hooks/useClipboard.native.js.map +1 -1
  98. package/dist/cjs/hooks/useDocumentTitle.native.js.map +1 -1
  99. package/dist/cjs/icons/CheckRegular.native.js.map +1 -1
  100. package/dist/cjs/icons/MinusRegular.native.js.map +1 -1
  101. package/dist/cjs/icons/index.native.js.map +1 -1
  102. package/dist/cjs/icons/lucide.native.js.map +1 -1
  103. package/dist/cjs/icons/themed.native.js.map +1 -1
  104. package/dist/cjs/images/Image/ImageFrame.native.js +1 -1
  105. package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -1
  106. package/dist/cjs/images/Image/index.native.js +1 -1
  107. package/dist/cjs/images/Image/shared.native.js +1 -1
  108. package/dist/cjs/images/Image/shared.native.js.map +1 -1
  109. package/dist/cjs/images/Image/types.native.js.map +1 -1
  110. package/dist/cjs/images/index.native.js.map +1 -1
  111. package/dist/cjs/index.native.js +29 -29
  112. package/dist/cjs/index.native.js.map +1 -1
  113. package/dist/cjs/knobImmuneExports.cjs +0 -1
  114. package/dist/cjs/knobImmuneExports.native.js +0 -1
  115. package/dist/cjs/knobImmuneExports.native.js.map +1 -1
  116. package/dist/cjs/layouts/AsyncBoundary.native.js +2 -2
  117. package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
  118. package/dist/cjs/layouts/Debug/index.native.js.map +1 -1
  119. package/dist/cjs/layouts/EmptyState.native.js.map +1 -1
  120. package/dist/cjs/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  121. package/dist/cjs/layouts/PageTemplates.native.js.map +1 -1
  122. package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
  123. package/dist/cjs/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  124. package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
  125. package/dist/cjs/layouts/attachments.native.js +1 -1
  126. package/dist/cjs/layouts/attachments.native.js.map +1 -1
  127. package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
  128. package/dist/cjs/layouts/index.native.js +3 -3
  129. package/dist/cjs/layouts/index.native.js.map +1 -1
  130. package/dist/cjs/layouts/page.native.js.map +1 -1
  131. package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
  132. package/dist/cjs/layouts/sidebar.native.js.map +1 -1
  133. package/dist/cjs/layouts/tags.native.js +1 -1
  134. package/dist/cjs/layouts/tags.native.js.map +1 -1
  135. package/dist/cjs/layouts/timeline.native.js +2 -2
  136. package/dist/cjs/layouts/timeline.native.js.map +1 -1
  137. package/dist/cjs/layouts/toolbar.native.js.map +1 -1
  138. package/dist/cjs/shared/actionScan.native.js.map +1 -1
  139. package/dist/cjs/shared/i18n.native.js.map +1 -1
  140. package/dist/cjs/shared/t.native.js.map +1 -1
  141. package/dist/cjs/shared/textRidesText.native.js.map +1 -1
  142. package/dist/cjs/shared/useKeyboardInset.native.js.map +1 -1
  143. package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -1
  144. package/dist/cjs/surfaces.native.js +1 -1
  145. package/dist/cjs/surfaces.native.js.map +1 -1
  146. package/dist/cjs/tamagui.cjs +3 -2
  147. package/dist/cjs/tamagui.native.js +2 -1
  148. package/dist/cjs/tamagui.native.js.map +1 -1
  149. package/dist/cjs/testSetup.native.js.map +1 -1
  150. package/dist/cjs/utils/setTinted.native.js.map +1 -1
  151. package/dist/cjs/utils/unwrapText.native.js.map +1 -1
  152. package/dist/cjs/views/Calendar.native.js.map +1 -1
  153. package/dist/cjs/views/Dashboard.native.js +1 -1
  154. package/dist/cjs/views/Dashboard.native.js.map +1 -1
  155. package/dist/cjs/views/Gantt.native.js +1 -1
  156. package/dist/cjs/views/Gantt.native.js.map +1 -1
  157. package/dist/cjs/views/ImageGrid.native.js +1 -1
  158. package/dist/cjs/views/ImageGrid.native.js.map +1 -1
  159. package/dist/cjs/views/List.native.js.map +1 -1
  160. package/dist/cjs/views/ReportBuilder.native.js +1 -1
  161. package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
  162. package/dist/cjs/views/TreeView.native.js.map +1 -1
  163. package/dist/cjs/views/calendarMath.native.js.map +1 -1
  164. package/dist/cjs/views/ganttMath.native.js.map +1 -1
  165. package/dist/cjs/views/index.native.js +1 -1
  166. package/dist/cjs/views/index.native.js.map +1 -1
  167. package/dist/cjs/views/kanbanDnd.native.js.map +1 -1
  168. package/dist/cjs/views/treeViewDnd.native.js.map +1 -1
  169. package/dist/cjs/views/treeViewLayout.native.js.map +1 -1
  170. package/dist/cjs/views/treeViewMotion.native.js.map +1 -1
  171. package/dist/esm/Accordion/index.mjs +4 -0
  172. package/dist/esm/Accordion/index.mjs.map +1 -1
  173. package/dist/esm/Accordion/index.native.js +4 -0
  174. package/dist/esm/Accordion/index.native.js.map +1 -1
  175. package/dist/esm/AnimateHeight/index.mjs +29 -2
  176. package/dist/esm/AnimateHeight/index.mjs.map +1 -1
  177. package/dist/esm/AnimateHeight/index.native.js +30 -2
  178. package/dist/esm/AnimateHeight/index.native.js.map +1 -1
  179. package/dist/esm/Avatar/getInitials.native.js.map +1 -1
  180. package/dist/esm/Avatar/index.native.js.map +1 -1
  181. package/dist/esm/Badge/index.native.js.map +1 -1
  182. package/dist/esm/Button.native.js.map +1 -1
  183. package/dist/esm/Carousel/index.native.js.map +1 -1
  184. package/dist/esm/Chip/index.native.js.map +1 -1
  185. package/dist/esm/Collapsible.mjs +23 -0
  186. package/dist/esm/Collapsible.mjs.map +1 -0
  187. package/dist/esm/Collapsible.native.js +28 -0
  188. package/dist/esm/Collapsible.native.js.map +1 -0
  189. package/dist/esm/ContextMenu/index.native.js.map +1 -1
  190. package/dist/esm/CopyField/index.native.js.map +1 -1
  191. package/dist/esm/DotIndicator/index.native.js.map +1 -1
  192. package/dist/esm/DropdownMenu/index.native.js.map +1 -1
  193. package/dist/esm/ErrorBoundary/index.native.js.map +1 -1
  194. package/dist/esm/Heading.native.js.map +1 -1
  195. package/dist/esm/Meter/index.native.js.map +1 -1
  196. package/dist/esm/Meter/meter.native.js.map +1 -1
  197. package/dist/esm/Pagination.mjs +28 -9
  198. package/dist/esm/Pagination.mjs.map +1 -1
  199. package/dist/esm/Pagination.native.js +28 -9
  200. package/dist/esm/Pagination.native.js.map +1 -1
  201. package/dist/esm/ProgressSteps/index.native.js.map +1 -1
  202. package/dist/esm/Quote/index.native.js.map +1 -1
  203. package/dist/esm/Separator/index.native.js.map +1 -1
  204. package/dist/esm/SheetModal/detents.native.js.map +1 -1
  205. package/dist/esm/Skeleton/index.native.js.map +1 -1
  206. package/dist/esm/SkipLink/index.native.js.map +1 -1
  207. package/dist/esm/SortableList/SortableHandle.native.js.map +1 -1
  208. package/dist/esm/SortableList/index.native.js.map +1 -1
  209. package/dist/esm/SortableList/useSortableRows.native.js.map +1 -1
  210. package/dist/esm/Tabs/index.mjs +144 -91
  211. package/dist/esm/Tabs/index.mjs.map +1 -1
  212. package/dist/esm/Tabs/index.native.js +186 -123
  213. package/dist/esm/Tabs/index.native.js.map +1 -1
  214. package/dist/esm/Text.native.js.map +1 -1
  215. package/dist/esm/Toast/index.native.js.map +1 -1
  216. package/dist/esm/Toast/store.native.js.map +1 -1
  217. package/dist/esm/Tooltip/nativePress.native.js.map +1 -1
  218. package/dist/esm/Tooltip/tooltipShared.native.js.map +1 -1
  219. package/dist/esm/TreeSelect/index.native.js.map +1 -1
  220. package/dist/esm/TreeSelect/treeSelectModel.native.js.map +1 -1
  221. package/dist/esm/Video/PlayerChrome.native.js.map +1 -1
  222. package/dist/esm/Video/VideoFrame.native.js.map +1 -1
  223. package/dist/esm/Video/types.native.js.map +1 -1
  224. package/dist/esm/Wheel/index.native.js.map +1 -1
  225. package/dist/esm/Wizard/index.native.js.map +1 -1
  226. package/dist/esm/actions/ActionBar.native.js.map +1 -1
  227. package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
  228. package/dist/esm/actions/devWarn.native.js.map +1 -1
  229. package/dist/esm/actions/index.native.js.map +1 -1
  230. package/dist/esm/actions/severity.native.js.map +1 -1
  231. package/dist/esm/charts/Axis.native.js.map +1 -1
  232. package/dist/esm/charts/BarChart.native.js.map +1 -1
  233. package/dist/esm/charts/ChartSurface.native.js.map +1 -1
  234. package/dist/esm/charts/LineChart.native.js.map +1 -1
  235. package/dist/esm/charts/PieChart.native.js.map +1 -1
  236. package/dist/esm/charts/Sparkline.native.js.map +1 -1
  237. package/dist/esm/charts/accessibility.native.js.map +1 -1
  238. package/dist/esm/charts/composeChart.native.js.map +1 -1
  239. package/dist/esm/charts/index.native.js.map +1 -1
  240. package/dist/esm/charts/math.native.js.map +1 -1
  241. package/dist/esm/charts/series.native.js.map +1 -1
  242. package/dist/esm/charts/svg.native.js.map +1 -1
  243. package/dist/esm/charts/types.native.js.map +1 -1
  244. package/dist/esm/charts/useChartTheme.native.js.map +1 -1
  245. package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
  246. package/dist/esm/code/HighlightedCode/index.native.js.map +1 -1
  247. package/dist/esm/code/Highlighter/index.native.js.map +1 -1
  248. package/dist/esm/code/Pre/index.native.js.map +1 -1
  249. package/dist/esm/code/index.native.js.map +1 -1
  250. package/dist/esm/componentColors.native.js.map +1 -1
  251. package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
  252. package/dist/esm/feedback/NotifyHost.native.js.map +1 -1
  253. package/dist/esm/feedback/copy.native.js.map +1 -1
  254. package/dist/esm/feedback/index.native.js.map +1 -1
  255. package/dist/esm/feedback/notify.native.js.map +1 -1
  256. package/dist/esm/feedback/route.native.js.map +1 -1
  257. package/dist/esm/feedback/store.native.js.map +1 -1
  258. package/dist/esm/hooks/index.native.js.map +1 -1
  259. package/dist/esm/hooks/useClipboard.native.js.map +1 -1
  260. package/dist/esm/hooks/useDocumentTitle.native.js.map +1 -1
  261. package/dist/esm/icons/CheckRegular.native.js.map +1 -1
  262. package/dist/esm/icons/MinusRegular.native.js.map +1 -1
  263. package/dist/esm/icons/index.native.js.map +1 -1
  264. package/dist/esm/icons/lucide.native.js.map +1 -1
  265. package/dist/esm/icons/themed.native.js.map +1 -1
  266. package/dist/esm/images/Image/ImageFrame.native.js.map +1 -1
  267. package/dist/esm/images/Image/shared.native.js.map +1 -1
  268. package/dist/esm/images/Image/types.native.js.map +1 -1
  269. package/dist/esm/images/index.native.js.map +1 -1
  270. package/dist/esm/index.native.js.map +1 -1
  271. package/dist/esm/knobImmuneExports.mjs +0 -1
  272. package/dist/esm/knobImmuneExports.mjs.map +1 -1
  273. package/dist/esm/knobImmuneExports.native.js +0 -1
  274. package/dist/esm/knobImmuneExports.native.js.map +1 -1
  275. package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
  276. package/dist/esm/layouts/Debug/index.native.js.map +1 -1
  277. package/dist/esm/layouts/EmptyState.native.js.map +1 -1
  278. package/dist/esm/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
  279. package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
  280. package/dist/esm/layouts/PaneScaffold.native.js.map +1 -1
  281. package/dist/esm/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
  282. package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -1
  283. package/dist/esm/layouts/attachments.native.js.map +1 -1
  284. package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
  285. package/dist/esm/layouts/index.native.js.map +1 -1
  286. package/dist/esm/layouts/page.native.js.map +1 -1
  287. package/dist/esm/layouts/pageHeadingScope.native.js.map +1 -1
  288. package/dist/esm/layouts/sidebar.native.js.map +1 -1
  289. package/dist/esm/layouts/tags.native.js.map +1 -1
  290. package/dist/esm/layouts/timeline.native.js.map +1 -1
  291. package/dist/esm/layouts/toolbar.native.js.map +1 -1
  292. package/dist/esm/shared/actionScan.native.js.map +1 -1
  293. package/dist/esm/shared/i18n.native.js.map +1 -1
  294. package/dist/esm/shared/t.native.js.map +1 -1
  295. package/dist/esm/shared/textRidesText.native.js.map +1 -1
  296. package/dist/esm/shared/useKeyboardInset.native.js.map +1 -1
  297. package/dist/esm/shared/useReturnFocusOnClose.native.js.map +1 -1
  298. package/dist/esm/surfaces.native.js.map +1 -1
  299. package/dist/esm/tamagui.mjs +2 -1
  300. package/dist/esm/tamagui.mjs.map +1 -1
  301. package/dist/esm/tamagui.native.js +2 -1
  302. package/dist/esm/tamagui.native.js.map +1 -1
  303. package/dist/esm/testSetup.native.js.map +1 -1
  304. package/dist/esm/utils/setTinted.native.js.map +1 -1
  305. package/dist/esm/utils/unwrapText.native.js.map +1 -1
  306. package/dist/esm/views/Calendar.native.js.map +1 -1
  307. package/dist/esm/views/Dashboard.native.js.map +1 -1
  308. package/dist/esm/views/Gantt.native.js.map +1 -1
  309. package/dist/esm/views/ImageGrid.native.js.map +1 -1
  310. package/dist/esm/views/List.native.js.map +1 -1
  311. package/dist/esm/views/ReportBuilder.native.js.map +1 -1
  312. package/dist/esm/views/TreeView.native.js.map +1 -1
  313. package/dist/esm/views/calendarMath.native.js.map +1 -1
  314. package/dist/esm/views/ganttMath.native.js.map +1 -1
  315. package/dist/esm/views/index.native.js.map +1 -1
  316. package/dist/esm/views/kanbanDnd.native.js.map +1 -1
  317. package/dist/esm/views/treeViewDnd.native.js.map +1 -1
  318. package/dist/esm/views/treeViewLayout.native.js.map +1 -1
  319. package/dist/esm/views/treeViewMotion.native.js.map +1 -1
  320. package/dist/jsx/Accordion/index.mjs +4 -0
  321. package/dist/jsx/Accordion/index.mjs.map +1 -1
  322. package/dist/jsx/Accordion/index.native.js +4 -0
  323. package/dist/jsx/Accordion/index.native.js.map +1 -1
  324. package/dist/jsx/AnimateHeight/index.mjs +29 -2
  325. package/dist/jsx/AnimateHeight/index.mjs.map +1 -1
  326. package/dist/jsx/AnimateHeight/index.native.js +30 -2
  327. package/dist/jsx/AnimateHeight/index.native.js.map +1 -1
  328. package/dist/jsx/Collapsible.mjs +23 -0
  329. package/dist/jsx/Collapsible.mjs.map +1 -0
  330. package/dist/jsx/Collapsible.native.js +56 -0
  331. package/dist/jsx/Collapsible.native.js.map +1 -0
  332. package/dist/jsx/Pagination.mjs +28 -9
  333. package/dist/jsx/Pagination.mjs.map +1 -1
  334. package/dist/jsx/Pagination.native.js +28 -9
  335. package/dist/jsx/Pagination.native.js.map +1 -1
  336. package/dist/jsx/Tabs/index.mjs +144 -91
  337. package/dist/jsx/Tabs/index.mjs.map +1 -1
  338. package/dist/jsx/Tabs/index.native.js +186 -123
  339. package/dist/jsx/Tabs/index.native.js.map +1 -1
  340. package/dist/jsx/knobImmuneExports.mjs +0 -1
  341. package/dist/jsx/knobImmuneExports.mjs.map +1 -1
  342. package/dist/jsx/knobImmuneExports.native.js +0 -1
  343. package/dist/jsx/knobImmuneExports.native.js.map +1 -1
  344. package/dist/jsx/tamagui.mjs +2 -1
  345. package/dist/jsx/tamagui.mjs.map +1 -1
  346. package/dist/jsx/tamagui.native.js +2 -1
  347. package/dist/jsx/tamagui.native.js.map +1 -1
  348. package/package.json +9 -9
  349. package/src/Accordion/index.tsx +7 -1
  350. package/src/AnimateHeight/AnimateHeight.native.spec.tsx +51 -0
  351. package/src/AnimateHeight/index.tsx +30 -5
  352. package/src/Collapsible.tsx +23 -0
  353. package/src/Pagination.simple.spec.tsx +23 -0
  354. package/src/Pagination.stories.tsx +8 -0
  355. package/src/Pagination.tsx +27 -10
  356. package/src/Tabs/Tabs.bandColor.spec.tsx +23 -0
  357. package/src/Tabs/Tabs.native.spec.tsx +35 -0
  358. package/src/Tabs/Tabs.spec.tsx +51 -1
  359. package/src/Tabs/Tabs.stories.tsx +27 -1
  360. package/src/Tabs/index.tsx +266 -187
  361. package/src/disclosureForm.spec.tsx +57 -0
  362. package/src/disclosureNativeProps.spec.tsx +35 -0
  363. package/src/knobImmuneExports.ts +0 -2
  364. package/src/primitives.spec.tsx +19 -4
  365. package/src/tamagui.ts +3 -1
  366. package/types/Accordion/index.d.ts +2 -0
  367. package/types/Accordion/index.d.ts.map +1 -1
  368. package/types/AnimateHeight/index.d.ts +3 -4
  369. package/types/AnimateHeight/index.d.ts.map +1 -1
  370. package/types/Collapsible.d.ts +19 -0
  371. package/types/Collapsible.d.ts.map +1 -0
  372. package/types/Pagination.d.ts +1 -1
  373. package/types/Pagination.d.ts.map +1 -1
  374. package/types/Tabs/index.d.ts +7 -3
  375. package/types/Tabs/index.d.ts.map +1 -1
  376. package/types/knobImmuneExports.d.ts.map +1 -1
  377. package/types/tamagui.d.ts +2 -1
  378. package/types/tamagui.d.ts.map +1 -1
@@ -88,7 +88,8 @@ const fillProps = {
88
88
  };
89
89
  const StripWrapper = (0, import_tamagui.styled)(import_tamagui.View, {
90
90
  name: "MpTabsStrip",
91
- width: "100%",
91
+ alignSelf: "stretch",
92
+ minWidth: 0,
92
93
  position: "relative"
93
94
  });
94
95
  const TabsList = (0, import_tamagui.styled)(import_tamagui.Tabs.List, {
@@ -162,6 +163,7 @@ function TabsRoot({
162
163
  defaultValue,
163
164
  onChange,
164
165
  variant = "underline",
166
+ distribution = "content",
165
167
  accent,
166
168
  error,
167
169
  warning,
@@ -252,6 +254,20 @@ function TabsRoot({
252
254
  }
253
255
  }, [activeLayout, direction]);
254
256
  const isUnderline = variant === "underline";
257
+ const isBand = variant === "band";
258
+ const equalDistribution = isBand || distribution === "equal";
259
+ const tabRefs = import_react.default.useRef(/* @__PURE__ */new Map());
260
+ const onTabKeyDown = (event, value2) => {
261
+ if (!["Home", "End", "ArrowLeft", "ArrowRight"].includes(event.key)) return;
262
+ const enabled = items.filter(item => !disabled && !item.disabled);
263
+ if (!enabled.length) return;
264
+ const current = enabled.findIndex(item => item.value === value2);
265
+ const step = (event.key === "ArrowRight" ? 1 : -1) * (direction === "rtl" ? -1 : 1);
266
+ const next = event.key === "Home" ? 0 : event.key === "End" ? enabled.length - 1 : loop ? (current + step + enabled.length) % enabled.length : Math.max(0, Math.min(enabled.length - 1, current + step));
267
+ event.preventDefault();
268
+ event.stopPropagation();
269
+ tabRefs.current.get(enabled[next].value)?.focus();
270
+ };
255
271
  const indicatorTheme = intent ?? "accent";
256
272
  const visualSizeToken = size ?? knobProps.sizeToken;
257
273
  const sizePx = knobProps.control.height;
@@ -273,7 +289,7 @@ function TabsRoot({
273
289
  WebkitMaskImage: mask
274
290
  };
275
291
  })() : void 0;
276
- const indicator = activeLayout ? isUnderline ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
292
+ const indicator = activeLayout && !isBand ? isUnderline ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
277
293
  name: indicatorTheme,
278
294
  children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(UnderlineIndicator, {
279
295
  x: activeLayout.x,
@@ -303,29 +319,152 @@ function TabsRoot({
303
319
  }) : null;
304
320
  if (items.length === 0) return null;
305
321
  const tabListLabel = ariaLabel ?? t("Tabs");
322
+ const tabList = /* @__PURE__ */(0, import_jsx_runtime.jsxs)(TabsList, {
323
+ loop,
324
+ "aria-label": tabListLabel,
325
+ "data-tabs-list": variant,
326
+ "data-size-token": visualSizeToken,
327
+ "data-density": knobProps.density,
328
+ "data-visual-px": sizePx,
329
+ ...(!import_tamagui.isWeb ? {
330
+ role: "tablist"
331
+ } : void 0),
332
+ alignSelf: equalDistribution ? "stretch" : "flex-start",
333
+ minWidth: 0,
334
+ contained: !isUnderline && !isBand,
335
+ ...(isUnderline || isBand ? {
336
+ gap: 0
337
+ } : {
338
+ backgroundColor: import_componentColors.componentColors.interactive.background,
339
+ gap: 0,
340
+ // Full fragment spread (AGENTS.md knob rule) so the
341
+ // cornerSmoothing class rides along with the radius.
342
+ ...knobProps.borderRadiusNested
343
+ }),
344
+ children: [indicator, items.map((item, itemIndex) => {
345
+ const isActive = item.value === currentValue;
346
+ const isDisabled = disabled || item.disabled;
347
+ const position = (0, import_theme.getGroupPosition)(itemIndex, enabledCount);
348
+ const cornerProps = isUnderline ? underlineStackRadius(position, radiusToken) : (0, import_theme.stackRadiusProps)(position, outerRadiusToken, "horizontal");
349
+ const anchorValue = (focusValue !== null && items.some(i => i.value === focusValue && !(disabled || i.disabled)) ? focusValue : void 0) ?? (items.some(i => i.value === currentValue && !(disabled || i.disabled)) ? currentValue : items.find(i => !(disabled || i.disabled))?.value);
350
+ const isTabStop = item.value === anchorValue && itemIndex === items.findIndex(i => i.value === anchorValue);
351
+ const kbRing = kbFocusValue === item.value;
352
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Trigger, {
353
+ value: item.value,
354
+ ref: node => {
355
+ if (!import_tamagui.isWeb) return;
356
+ if (node) tabRefs.current.set(item.value, node);else tabRefs.current.delete(item.value);
357
+ },
358
+ flex: equalDistribution ? 1 : void 0,
359
+ minWidth: 0,
360
+ minHeight: isBand ? import_theme.MIN_PRESS_TARGET : void 0,
361
+ borderEndWidth: isBand && itemIndex < items.length - 1 ? 1 : 0,
362
+ borderColor: isBand ? import_componentColors.componentColors.surface.border : void 0,
363
+ disabled: isDisabled,
364
+ ...(item.content === void 0 ? {
365
+ "aria-controls": void 0
366
+ } : void 0),
367
+ "data-tab-position": position,
368
+ "data-kb-ring": kbRing ? "true" : void 0,
369
+ ...(import_tamagui.isWeb ? {
370
+ tabIndex: isDisabled ? -1 : isTabStop ? 0 : -1,
371
+ "aria-label": item.accessibilityLabel,
372
+ onKeyDownCapture: event => onTabKeyDown(event, item.value)
373
+ } : {
374
+ accessible: true,
375
+ role: "button",
376
+ accessibilityRole: "button",
377
+ accessibilityLabel: item.accessibilityLabel ?? (typeof item.label === "string" || typeof item.label === "number" ? String(item.label) : void 0),
378
+ accessibilityState: {
379
+ selected: isActive,
380
+ disabled: Boolean(isDisabled)
381
+ }
382
+ }),
383
+ hitSlop: tabHitSlop,
384
+ onInteraction: handleInteraction,
385
+ cursor: isDisabled ? "not-allowed" : "pointer",
386
+ backgroundColor: isBand && isActive ? import_componentColors.componentColors.surface.background : "transparent",
387
+ borderRadius: 0,
388
+ ...(isDisabled ? isActive ? disabledState.chromeKnobProps : {
389
+ ...disabledState.chromeKnobProps,
390
+ ...disabledState.textKnobProps
391
+ } : void 0),
392
+ ...(import_tamagui.isWeb ? {
393
+ onFocusCapture: () => {
394
+ setFocusValue(item.value);
395
+ if ((0, import_theme.wasKeyboardFocus)()) setKbFocusValue(item.value);
396
+ },
397
+ onBlurCapture: () => {
398
+ setFocusValue(prev => prev === item.value ? null : prev);
399
+ setKbFocusValue(prev => prev === item.value ? null : prev);
400
+ },
401
+ onPointerEnter: () => setHoverValue(item.value),
402
+ onPointerLeave: () => setHoverValue(prev => prev === item.value ? null : prev),
403
+ onPointerDown: () => setPressValue(item.value),
404
+ onPointerUp: () => setPressValue(prev => prev === item.value ? null : prev)
405
+ } : void 0),
406
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.View, {
407
+ ...(isBand ? void 0 : cornerProps),
408
+ ...knobProps.control,
409
+ paddingHorizontal: isBand ? 0 : knobProps.control.paddingHorizontal,
410
+ alignSelf: "stretch",
411
+ flexGrow: equalDistribution ? 1 : void 0,
412
+ flexShrink: equalDistribution ? 1 : void 0,
413
+ flexBasis: equalDistribution ? 0 : void 0,
414
+ minWidth: 0,
415
+ flexDirection: "row",
416
+ alignItems: "center",
417
+ justifyContent: "center",
418
+ backgroundColor: isActive || isDisabled ? "transparent" : pressValue === item.value ? import_componentColors.componentColors.interactive.hover : hoverValue === item.value ? import_componentColors.componentColors.interactive.background : "transparent",
419
+ ...(kbRing ? import_theme.keyboardFocusRingProps : void 0),
420
+ children: [item.icon, /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabLabel, {
421
+ minWidth: equalDistribution ? 0 : void 0,
422
+ flexShrink: equalDistribution ? 1 : void 0,
423
+ active: isActive,
424
+ ...knobProps.controlType,
425
+ fontFamily: knobProps.label.fontFamily,
426
+ fontWeight: !isBand && isActive ? "700" : knobProps.label.fontWeight,
427
+ color: isDisabled ? import_componentColors.componentColors.text.muted : isActive ? variant === "contained" && onSelectedTint ? onSelectedTint : import_componentColors.componentColors.text.primary : import_componentColors.componentColors.text.secondary,
428
+ children: (0, import_textRidesText.wrapBareTextChildren)(item.label, label => label)
429
+ }), item.badge]
430
+ })
431
+ }, item.value);
432
+ })]
433
+ });
306
434
  return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Tabs, {
307
435
  value: currentValue,
308
436
  onValueChange: handleChange,
309
437
  orientation: "horizontal",
310
438
  activationMode,
311
- width: "100%",
439
+ width: equalDistribution ? "100%" : void 0,
440
+ alignSelf: "stretch",
441
+ minWidth: 0,
312
442
  flexDirection: "column",
313
443
  ...(fill ? fillProps : void 0),
314
444
  "data-tabs-variant": variant,
445
+ "data-tabs-distribution": equalDistribution ? "equal" : "content",
315
446
  "data-tabs-fill": fill ? "true" : void 0,
316
447
  "data-tabs-dir": direction,
317
448
  "data-size-token": visualSizeToken,
318
449
  "data-density": knobProps.density,
319
450
  "data-visual-px": sizePx,
320
451
  children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(StripWrapper, {
452
+ backgroundColor: isBand ? "$color2" : void 0,
453
+ borderBottomWidth: isBand ? 1 : void 0,
454
+ borderBottomColor: isBand ? import_componentColors.componentColors.surface.border : void 0,
321
455
  ...(isUnderline ? {
322
456
  ...import_theme.hairline.bottom,
323
457
  borderColor: import_componentColors.componentColors.surface.border
324
458
  } : void 0),
325
459
  "data-fade-left": fades.left ? "true" : void 0,
326
460
  "data-fade-right": fades.right ? "true" : void 0,
327
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
461
+ children: equalDistribution ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
462
+ alignSelf: "stretch",
463
+ minWidth: 0,
464
+ children: tabList
465
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
328
466
  ref: scrollRef,
467
+ "data-tabs-scroll": "true",
329
468
  horizontal: true,
330
469
  showsHorizontalScrollIndicator: false,
331
470
  scrollEventThrottle: 16,
@@ -346,93 +485,7 @@ function TabsRoot({
346
485
  scrollMetrics.current.content = w;
347
486
  updateFades();
348
487
  },
349
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(TabsList, {
350
- loop,
351
- "aria-label": tabListLabel,
352
- "data-tabs-list": variant,
353
- "data-size-token": visualSizeToken,
354
- "data-density": knobProps.density,
355
- "data-visual-px": sizePx,
356
- ...(!import_tamagui.isWeb ? {
357
- role: "tablist"
358
- } : void 0),
359
- contained: !isUnderline,
360
- ...(isUnderline ? {
361
- gap: 0
362
- } : {
363
- backgroundColor: import_componentColors.componentColors.interactive.background,
364
- gap: 0,
365
- // Full fragment spread (AGENTS.md knob rule) so the
366
- // cornerSmoothing class rides along with the radius.
367
- ...knobProps.borderRadiusNested
368
- }),
369
- children: [indicator, items.map((item, itemIndex) => {
370
- const isActive = item.value === currentValue;
371
- const isDisabled = disabled || item.disabled;
372
- const position = (0, import_theme.getGroupPosition)(itemIndex, enabledCount);
373
- const cornerProps = isUnderline ? underlineStackRadius(position, radiusToken) : (0, import_theme.stackRadiusProps)(position, outerRadiusToken, "horizontal");
374
- const anchorValue = (focusValue !== null && items.some(i => i.value === focusValue && !(disabled || i.disabled)) ? focusValue : void 0) ?? (items.some(i => i.value === currentValue) ? currentValue : items[0]?.value);
375
- const isTabStop = item.value === anchorValue && itemIndex === items.findIndex(i => i.value === anchorValue);
376
- const kbRing = kbFocusValue === item.value;
377
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Trigger, {
378
- value: item.value,
379
- disabled: isDisabled,
380
- "data-tab-position": position,
381
- "data-kb-ring": kbRing ? "true" : void 0,
382
- ...(import_tamagui.isWeb ? {
383
- tabIndex: isDisabled ? -1 : isTabStop ? 0 : -1
384
- } : {
385
- accessible: true,
386
- role: "tab",
387
- "aria-selected": isActive,
388
- ...(isDisabled ? {
389
- "aria-disabled": true
390
- } : void 0)
391
- }),
392
- hitSlop: tabHitSlop,
393
- onInteraction: handleInteraction,
394
- cursor: isDisabled ? "not-allowed" : "pointer",
395
- backgroundColor: "transparent",
396
- borderRadius: 0,
397
- ...(isDisabled ? isActive ? disabledState.chromeKnobProps : {
398
- ...disabledState.chromeKnobProps,
399
- ...disabledState.textKnobProps
400
- } : void 0),
401
- ...(import_tamagui.isWeb ? {
402
- onFocusCapture: () => {
403
- setFocusValue(item.value);
404
- if ((0, import_theme.wasKeyboardFocus)()) setKbFocusValue(item.value);
405
- },
406
- onBlurCapture: () => {
407
- setFocusValue(prev => prev === item.value ? null : prev);
408
- setKbFocusValue(prev => prev === item.value ? null : prev);
409
- },
410
- onPointerEnter: () => setHoverValue(item.value),
411
- onPointerLeave: () => setHoverValue(prev => prev === item.value ? null : prev),
412
- onPointerDown: () => setPressValue(item.value),
413
- onPointerUp: () => setPressValue(prev => prev === item.value ? null : prev)
414
- } : void 0),
415
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.View, {
416
- ...cornerProps,
417
- ...knobProps.control,
418
- width: "100%",
419
- flexDirection: "row",
420
- alignItems: "center",
421
- justifyContent: "center",
422
- backgroundColor: isActive || isDisabled ? "transparent" : pressValue === item.value ? import_componentColors.componentColors.interactive.hover : hoverValue === item.value ? import_componentColors.componentColors.interactive.background : "transparent",
423
- ...(kbRing ? import_theme.keyboardFocusRingProps : void 0),
424
- children: [item.icon, /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabLabel, {
425
- active: isActive,
426
- ...knobProps.controlType,
427
- fontFamily: knobProps.label.fontFamily,
428
- fontWeight: isActive ? "700" : knobProps.label.fontWeight,
429
- color: isDisabled ? import_componentColors.componentColors.text.muted : isActive ? !isUnderline && onSelectedTint ? onSelectedTint : import_componentColors.componentColors.text.primary : import_componentColors.componentColors.text.secondary,
430
- children: (0, import_textRidesText.wrapBareTextChildren)(item.label, label => label)
431
- }), item.badge]
432
- })
433
- }, item.value);
434
- })]
435
- })
488
+ children: tabList
436
489
  })
437
490
  }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
438
491
  "data-tabs-panels": "",
@@ -92,7 +92,8 @@ var fillProps = {
92
92
  };
93
93
  var StripWrapper = (0, import_tamagui.styled)(import_tamagui.View, {
94
94
  name: "MpTabsStrip",
95
- width: "100%",
95
+ alignSelf: "stretch",
96
+ minWidth: 0,
96
97
  position: "relative"
97
98
  });
98
99
  var TabsList = (0, import_tamagui.styled)(import_tamagui.Tabs.List, {
@@ -167,6 +168,7 @@ function TabsRoot(param) {
167
168
  defaultValue,
168
169
  onChange,
169
170
  variant = "underline",
171
+ distribution = "content",
170
172
  accent,
171
173
  error,
172
174
  warning,
@@ -268,6 +270,25 @@ function TabsRoot(param) {
268
270
  }
269
271
  }, [activeLayout, direction]);
270
272
  var isUnderline = variant === "underline";
273
+ var isBand = variant === "band";
274
+ var equalDistribution = isBand || distribution === "equal";
275
+ var tabRefs = import_react.default.useRef(/* @__PURE__ */new Map());
276
+ var onTabKeyDown = function onTabKeyDown2(event, value2) {
277
+ var _tabRefs_current_get;
278
+ if (!["Home", "End", "ArrowLeft", "ArrowRight"].includes(event.key)) return;
279
+ var enabled = items.filter(function (item) {
280
+ return !disabled && !item.disabled;
281
+ });
282
+ if (!enabled.length) return;
283
+ var current = enabled.findIndex(function (item) {
284
+ return item.value === value2;
285
+ });
286
+ var step = (event.key === "ArrowRight" ? 1 : -1) * (direction === "rtl" ? -1 : 1);
287
+ var next = event.key === "Home" ? 0 : event.key === "End" ? enabled.length - 1 : loop ? (current + step + enabled.length) % enabled.length : Math.max(0, Math.min(enabled.length - 1, current + step));
288
+ event.preventDefault();
289
+ event.stopPropagation();
290
+ (_tabRefs_current_get = tabRefs.current.get(enabled[next].value)) === null || _tabRefs_current_get === void 0 ? void 0 : _tabRefs_current_get.focus();
291
+ };
271
292
  var indicatorTheme = intent !== null && intent !== void 0 ? intent : "accent";
272
293
  var visualSizeToken = size !== null && size !== void 0 ? size : knobProps.sizeToken;
273
294
  var sizePx = knobProps.control.height;
@@ -291,7 +312,7 @@ function TabsRoot(param) {
291
312
  WebkitMaskImage: mask
292
313
  };
293
314
  }() : void 0;
294
- var indicator = activeLayout ? isUnderline ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
315
+ var indicator = activeLayout && !isBand ? isUnderline ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.Theme, {
295
316
  name: indicatorTheme,
296
317
  children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(UnderlineIndicator, {
297
318
  x: activeLayout.x,
@@ -321,32 +342,192 @@ function TabsRoot(param) {
321
342
  }) : null;
322
343
  if (items.length === 0) return null;
323
344
  var tabListLabel = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : t("Tabs");
345
+ var tabList = /* @__PURE__ */(0, import_jsx_runtime.jsxs)(TabsList, {
346
+ loop,
347
+ "aria-label": tabListLabel,
348
+ "data-tabs-list": variant,
349
+ "data-size-token": visualSizeToken,
350
+ "data-density": knobProps.density,
351
+ "data-visual-px": sizePx,
352
+ ...(!import_tamagui.isWeb ? {
353
+ role: "tablist"
354
+ } : void 0),
355
+ alignSelf: equalDistribution ? "stretch" : "flex-start",
356
+ minWidth: 0,
357
+ contained: !isUnderline && !isBand,
358
+ ...(isUnderline || isBand ? {
359
+ gap: 0
360
+ } : {
361
+ backgroundColor: import_componentColors.componentColors.interactive.background,
362
+ gap: 0,
363
+ // Full fragment spread (AGENTS.md knob rule) so the
364
+ // cornerSmoothing class rides along with the radius.
365
+ ...knobProps.borderRadiusNested
366
+ }),
367
+ children: [indicator, items.map(function (item, itemIndex) {
368
+ var _ref, _item_accessibilityLabel;
369
+ var _items_find;
370
+ var isActive = item.value === currentValue;
371
+ var isDisabled = disabled || item.disabled;
372
+ var position = (0, import_theme.getGroupPosition)(itemIndex, enabledCount);
373
+ var cornerProps = isUnderline ? underlineStackRadius(position, radiusToken) : (0, import_theme.stackRadiusProps)(position, outerRadiusToken, "horizontal");
374
+ var anchorValue = (_ref = focusValue !== null && items.some(function (i) {
375
+ return i.value === focusValue && !(disabled || i.disabled);
376
+ }) ? focusValue : void 0) !== null && _ref !== void 0 ? _ref : items.some(function (i) {
377
+ return i.value === currentValue && !(disabled || i.disabled);
378
+ }) ? currentValue : (_items_find = items.find(function (i) {
379
+ return !(disabled || i.disabled);
380
+ })) === null || _items_find === void 0 ? void 0 : _items_find.value;
381
+ var isTabStop = item.value === anchorValue && itemIndex === items.findIndex(function (i) {
382
+ return i.value === anchorValue;
383
+ });
384
+ var kbRing = kbFocusValue === item.value;
385
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Trigger, {
386
+ value: item.value,
387
+ ref: function ref(node) {
388
+ if (!import_tamagui.isWeb) return;
389
+ if (node) tabRefs.current.set(item.value, node);else tabRefs.current.delete(item.value);
390
+ },
391
+ flex: equalDistribution ? 1 : void 0,
392
+ minWidth: 0,
393
+ minHeight: isBand ? import_theme.MIN_PRESS_TARGET : void 0,
394
+ borderEndWidth: isBand && itemIndex < items.length - 1 ? 1 : 0,
395
+ borderColor: isBand ? import_componentColors.componentColors.surface.border : void 0,
396
+ disabled: isDisabled,
397
+ ...(item.content === void 0 ? {
398
+ "aria-controls": void 0
399
+ } : void 0),
400
+ "data-tab-position": position,
401
+ "data-kb-ring": kbRing ? "true" : void 0,
402
+ ...(import_tamagui.isWeb ? {
403
+ tabIndex: isDisabled ? -1 : isTabStop ? 0 : -1,
404
+ "aria-label": item.accessibilityLabel,
405
+ onKeyDownCapture: function onKeyDownCapture(event) {
406
+ return onTabKeyDown(event, item.value);
407
+ }
408
+ } : {
409
+ accessible: true,
410
+ role: "button",
411
+ accessibilityRole: "button",
412
+ accessibilityLabel: (_item_accessibilityLabel = item.accessibilityLabel) !== null && _item_accessibilityLabel !== void 0 ? _item_accessibilityLabel : typeof item.label === "string" || typeof item.label === "number" ? String(item.label) : void 0,
413
+ accessibilityState: {
414
+ selected: isActive,
415
+ disabled: Boolean(isDisabled)
416
+ }
417
+ }),
418
+ hitSlop: tabHitSlop,
419
+ onInteraction: handleInteraction,
420
+ cursor: isDisabled ? "not-allowed" : "pointer",
421
+ backgroundColor: isBand && isActive ? import_componentColors.componentColors.surface.background : "transparent",
422
+ borderRadius: 0,
423
+ ...(isDisabled ? isActive ? disabledState.chromeKnobProps : {
424
+ ...disabledState.chromeKnobProps,
425
+ ...disabledState.textKnobProps
426
+ } : void 0),
427
+ ...(import_tamagui.isWeb ? {
428
+ onFocusCapture: function onFocusCapture() {
429
+ setFocusValue(item.value);
430
+ if ((0, import_theme.wasKeyboardFocus)()) setKbFocusValue(item.value);
431
+ },
432
+ onBlurCapture: function onBlurCapture() {
433
+ setFocusValue(function (prev) {
434
+ return prev === item.value ? null : prev;
435
+ });
436
+ setKbFocusValue(function (prev) {
437
+ return prev === item.value ? null : prev;
438
+ });
439
+ },
440
+ onPointerEnter: function onPointerEnter() {
441
+ return setHoverValue(item.value);
442
+ },
443
+ onPointerLeave: function onPointerLeave() {
444
+ return setHoverValue(function (prev) {
445
+ return prev === item.value ? null : prev;
446
+ });
447
+ },
448
+ onPointerDown: function onPointerDown() {
449
+ return setPressValue(item.value);
450
+ },
451
+ onPointerUp: function onPointerUp() {
452
+ return setPressValue(function (prev) {
453
+ return prev === item.value ? null : prev;
454
+ });
455
+ }
456
+ } : void 0),
457
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.View, {
458
+ ...(isBand ? void 0 : cornerProps),
459
+ // ONE chrome owner (LC-75/LC-79): the full control recipe
460
+ // (height/paddingHorizontal/gap) lives on this inner row —
461
+ // it also paints hover/press fill, so the pill covers the
462
+ // padded box. The Trigger stays an unpainted hit target
463
+ // (spreading the recipe there too doubled the horizontal
464
+ // padding).
465
+ ...knobProps.control,
466
+ // Equal columns own band spacing; extra inset can exceed a narrow column.
467
+ paddingHorizontal: isBand ? 0 : knobProps.control.paddingHorizontal,
468
+ alignSelf: "stretch",
469
+ flexGrow: equalDistribution ? 1 : void 0,
470
+ flexShrink: equalDistribution ? 1 : void 0,
471
+ flexBasis: equalDistribution ? 0 : void 0,
472
+ minWidth: 0,
473
+ flexDirection: "row",
474
+ alignItems: "center",
475
+ justifyContent: "center",
476
+ backgroundColor: isActive || isDisabled ? "transparent" : pressValue === item.value ? import_componentColors.componentColors.interactive.hover : hoverValue === item.value ? import_componentColors.componentColors.interactive.background : "transparent",
477
+ ...(kbRing ? import_theme.keyboardFocusRingProps : void 0),
478
+ children: [item.icon, /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabLabel, {
479
+ minWidth: equalDistribution ? 0 : void 0,
480
+ flexShrink: equalDistribution ? 1 : void 0,
481
+ active: isActive,
482
+ ...knobProps.controlType,
483
+ fontFamily: knobProps.label.fontFamily,
484
+ fontWeight: !isBand && isActive ? "700" : knobProps.label.fontWeight,
485
+ color: isDisabled ? import_componentColors.componentColors.text.muted : isActive ? variant === "contained" && onSelectedTint ? onSelectedTint : import_componentColors.componentColors.text.primary : import_componentColors.componentColors.text.secondary,
486
+ children: (0, import_textRidesText.wrapBareTextChildren)(item.label, function (label) {
487
+ return label;
488
+ })
489
+ }), item.badge]
490
+ })
491
+ }, item.value);
492
+ })]
493
+ });
324
494
  return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.Tabs, {
325
495
  value: currentValue,
326
496
  onValueChange: handleChange,
327
497
  orientation: "horizontal",
328
498
  activationMode,
329
- width: "100%",
499
+ width: equalDistribution ? "100%" : void 0,
500
+ alignSelf: "stretch",
501
+ minWidth: 0,
330
502
  flexDirection: "column",
331
503
  // The root is the first link in the chain a filling panel needs.
332
504
  // `flex: 1` alone is not enough — without `minHeight: 0` the column
333
505
  // refuses to shrink below its content and the panel never gets a box.
334
506
  ...(fill ? fillProps : void 0),
335
507
  "data-tabs-variant": variant,
508
+ "data-tabs-distribution": equalDistribution ? "equal" : "content",
336
509
  "data-tabs-fill": fill ? "true" : void 0,
337
510
  "data-tabs-dir": direction,
338
511
  "data-size-token": visualSizeToken,
339
512
  "data-density": knobProps.density,
340
513
  "data-visual-px": sizePx,
341
514
  children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(StripWrapper, {
515
+ backgroundColor: isBand ? "$color2" : void 0,
516
+ borderBottomWidth: isBand ? 1 : void 0,
517
+ borderBottomColor: isBand ? import_componentColors.componentColors.surface.border : void 0,
342
518
  ...(isUnderline ? {
343
519
  ...import_theme.hairline.bottom,
344
520
  borderColor: import_componentColors.componentColors.surface.border
345
521
  } : void 0),
346
522
  "data-fade-left": fades.left ? "true" : void 0,
347
523
  "data-fade-right": fades.right ? "true" : void 0,
348
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
524
+ children: equalDistribution ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.View, {
525
+ alignSelf: "stretch",
526
+ minWidth: 0,
527
+ children: tabList
528
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.ScrollView, {
349
529
  ref: scrollRef,
530
+ "data-tabs-scroll": "true",
350
531
  horizontal: true,
351
532
  showsHorizontalScrollIndicator: false,
352
533
  scrollEventThrottle: 16,
@@ -369,125 +550,7 @@ function TabsRoot(param) {
369
550
  scrollMetrics.current.content = w;
370
551
  updateFades();
371
552
  },
372
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(TabsList, {
373
- loop,
374
- "aria-label": tabListLabel,
375
- "data-tabs-list": variant,
376
- "data-size-token": visualSizeToken,
377
- "data-density": knobProps.density,
378
- "data-visual-px": sizePx,
379
- ...(!import_tamagui.isWeb ? {
380
- role: "tablist"
381
- } : void 0),
382
- contained: !isUnderline,
383
- ...(isUnderline ? {
384
- gap: 0
385
- } : {
386
- backgroundColor: import_componentColors.componentColors.interactive.background,
387
- gap: 0,
388
- // Full fragment spread (AGENTS.md knob rule) so the
389
- // cornerSmoothing class rides along with the radius.
390
- ...knobProps.borderRadiusNested
391
- }),
392
- children: [indicator, items.map(function (item, itemIndex) {
393
- var _ref;
394
- var _items_;
395
- var isActive = item.value === currentValue;
396
- var isDisabled = disabled || item.disabled;
397
- var position = (0, import_theme.getGroupPosition)(itemIndex, enabledCount);
398
- var cornerProps = isUnderline ? underlineStackRadius(position, radiusToken) : (0, import_theme.stackRadiusProps)(position, outerRadiusToken, "horizontal");
399
- var anchorValue = (_ref = focusValue !== null && items.some(function (i) {
400
- return i.value === focusValue && !(disabled || i.disabled);
401
- }) ? focusValue : void 0) !== null && _ref !== void 0 ? _ref : items.some(function (i) {
402
- return i.value === currentValue;
403
- }) ? currentValue : (_items_ = items[0]) === null || _items_ === void 0 ? void 0 : _items_.value;
404
- var isTabStop = item.value === anchorValue && itemIndex === items.findIndex(function (i) {
405
- return i.value === anchorValue;
406
- });
407
- var kbRing = kbFocusValue === item.value;
408
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Trigger, {
409
- value: item.value,
410
- disabled: isDisabled,
411
- "data-tab-position": position,
412
- "data-kb-ring": kbRing ? "true" : void 0,
413
- ...(import_tamagui.isWeb ? {
414
- tabIndex: isDisabled ? -1 : isTabStop ? 0 : -1
415
- } : {
416
- accessible: true,
417
- role: "tab",
418
- "aria-selected": isActive,
419
- ...(isDisabled ? {
420
- "aria-disabled": true
421
- } : void 0)
422
- }),
423
- hitSlop: tabHitSlop,
424
- onInteraction: handleInteraction,
425
- cursor: isDisabled ? "not-allowed" : "pointer",
426
- backgroundColor: "transparent",
427
- borderRadius: 0,
428
- ...(isDisabled ? isActive ? disabledState.chromeKnobProps : {
429
- ...disabledState.chromeKnobProps,
430
- ...disabledState.textKnobProps
431
- } : void 0),
432
- ...(import_tamagui.isWeb ? {
433
- onFocusCapture: function onFocusCapture() {
434
- setFocusValue(item.value);
435
- if ((0, import_theme.wasKeyboardFocus)()) setKbFocusValue(item.value);
436
- },
437
- onBlurCapture: function onBlurCapture() {
438
- setFocusValue(function (prev) {
439
- return prev === item.value ? null : prev;
440
- });
441
- setKbFocusValue(function (prev) {
442
- return prev === item.value ? null : prev;
443
- });
444
- },
445
- onPointerEnter: function onPointerEnter() {
446
- return setHoverValue(item.value);
447
- },
448
- onPointerLeave: function onPointerLeave() {
449
- return setHoverValue(function (prev) {
450
- return prev === item.value ? null : prev;
451
- });
452
- },
453
- onPointerDown: function onPointerDown() {
454
- return setPressValue(item.value);
455
- },
456
- onPointerUp: function onPointerUp() {
457
- return setPressValue(function (prev) {
458
- return prev === item.value ? null : prev;
459
- });
460
- }
461
- } : void 0),
462
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.View, {
463
- ...cornerProps,
464
- // ONE chrome owner (LC-75/LC-79): the full control recipe
465
- // (height/paddingHorizontal/gap) lives on this inner row —
466
- // it also paints hover/press fill, so the pill covers the
467
- // padded box. The Trigger stays an unpainted hit target
468
- // (spreading the recipe there too doubled the horizontal
469
- // padding).
470
- ...knobProps.control,
471
- width: "100%",
472
- flexDirection: "row",
473
- alignItems: "center",
474
- justifyContent: "center",
475
- backgroundColor: isActive || isDisabled ? "transparent" : pressValue === item.value ? import_componentColors.componentColors.interactive.hover : hoverValue === item.value ? import_componentColors.componentColors.interactive.background : "transparent",
476
- ...(kbRing ? import_theme.keyboardFocusRingProps : void 0),
477
- children: [item.icon, /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabLabel, {
478
- active: isActive,
479
- ...knobProps.controlType,
480
- fontFamily: knobProps.label.fontFamily,
481
- fontWeight: isActive ? "700" : knobProps.label.fontWeight,
482
- color: isDisabled ? import_componentColors.componentColors.text.muted : isActive ? !isUnderline && onSelectedTint ? onSelectedTint : import_componentColors.componentColors.text.primary : import_componentColors.componentColors.text.secondary,
483
- children: (0, import_textRidesText.wrapBareTextChildren)(item.label, function (label) {
484
- return label;
485
- })
486
- }), item.badge]
487
- })
488
- }, item.value);
489
- })]
490
- })
553
+ children: tabList
491
554
  })
492
555
  }),
493
556
  /*