panelui-native 0.116.0 → 1.1.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 (499) hide show
  1. package/README.md +3 -1
  2. package/lib/module/components/accordion/index.js.map +1 -1
  3. package/lib/module/components/ai-input/index.js.map +1 -1
  4. package/lib/module/components/alert/index.js.map +1 -1
  5. package/lib/module/components/animated-badge/index.js +1 -2
  6. package/lib/module/components/animated-badge/index.js.map +1 -1
  7. package/lib/module/components/area-chart/index.js +15 -3
  8. package/lib/module/components/area-chart/index.js.map +1 -1
  9. package/lib/module/components/attachment/index.js.map +1 -1
  10. package/lib/module/components/avatar/index.js.map +1 -1
  11. package/lib/module/components/avatar-cropper/index.js.map +1 -1
  12. package/lib/module/components/badge/index.js.map +1 -1
  13. package/lib/module/components/bar-chart/index.js +15 -3
  14. package/lib/module/components/bar-chart/index.js.map +1 -1
  15. package/lib/module/components/breadcrumb/index.js.map +1 -1
  16. package/lib/module/components/bubble-chart/index.js +13 -3
  17. package/lib/module/components/bubble-chart/index.js.map +1 -1
  18. package/lib/module/components/bump-chart/index.js +15 -3
  19. package/lib/module/components/bump-chart/index.js.map +1 -1
  20. package/lib/module/components/button/index.js.map +1 -1
  21. package/lib/module/components/button-group/index.js.map +1 -1
  22. package/lib/module/components/calendar/index.js.map +1 -1
  23. package/lib/module/components/candlestick-chart/index.js +15 -3
  24. package/lib/module/components/candlestick-chart/index.js.map +1 -1
  25. package/lib/module/components/card/index.js.map +1 -1
  26. package/lib/module/components/checkbox/index.js.map +1 -1
  27. package/lib/module/components/chip/index.js.map +1 -1
  28. package/lib/module/components/collapsible/index.js.map +1 -1
  29. package/lib/module/components/color-picker/index.js +13 -5
  30. package/lib/module/components/color-picker/index.js.map +1 -1
  31. package/lib/module/components/combobox/index.js +1 -2
  32. package/lib/module/components/combobox/index.js.map +1 -1
  33. package/lib/module/components/context-menu/index.js +1 -2
  34. package/lib/module/components/context-menu/index.js.map +1 -1
  35. package/lib/module/components/countdown/index.js.map +1 -1
  36. package/lib/module/components/dialog/index.js.map +1 -1
  37. package/lib/module/components/empty-state/index.js.map +1 -1
  38. package/lib/module/components/fab/index.js +2 -1
  39. package/lib/module/components/fab/index.js.map +1 -1
  40. package/lib/module/components/feedback/index.js +1 -2
  41. package/lib/module/components/feedback/index.js.map +1 -1
  42. package/lib/module/components/field/index.js.map +1 -1
  43. package/lib/module/components/file-upload/index.js.map +1 -1
  44. package/lib/module/components/flip-card/index.js +1 -2
  45. package/lib/module/components/flip-card/index.js.map +1 -1
  46. package/lib/module/components/frame/index.js +1 -2
  47. package/lib/module/components/frame/index.js.map +1 -1
  48. package/lib/module/components/grid-item/index.js.map +1 -1
  49. package/lib/module/components/heatmap-chart/index.js +1 -2
  50. package/lib/module/components/heatmap-chart/index.js.map +1 -1
  51. package/lib/module/components/image-viewer/index.js +1 -2
  52. package/lib/module/components/image-viewer/index.js.map +1 -1
  53. package/lib/module/components/input/index.js +1 -2
  54. package/lib/module/components/input/index.js.map +1 -1
  55. package/lib/module/components/input-group/index.js.map +1 -1
  56. package/lib/module/components/item/index.js.map +1 -1
  57. package/lib/module/components/kpi/index.js +1 -2
  58. package/lib/module/components/kpi/index.js.map +1 -1
  59. package/lib/module/components/label/index.js.map +1 -1
  60. package/lib/module/components/leaderboard/index.js.map +1 -1
  61. package/lib/module/components/line-chart/index.js +15 -3
  62. package/lib/module/components/line-chart/index.js.map +1 -1
  63. package/lib/module/components/live-line-chart/index.js +16 -4
  64. package/lib/module/components/live-line-chart/index.js.map +1 -1
  65. package/lib/module/components/map/native-style.js +38 -7
  66. package/lib/module/components/map/native-style.js.map +1 -1
  67. package/lib/module/components/markdown-editor/index.js.map +1 -1
  68. package/lib/module/components/marker/index.js.map +1 -1
  69. package/lib/module/components/marquee/index.js +2 -1
  70. package/lib/module/components/marquee/index.js.map +1 -1
  71. package/lib/module/components/message/index.js.map +1 -1
  72. package/lib/module/components/message-scroller/index.js +2 -3
  73. package/lib/module/components/message-scroller/index.js.map +1 -1
  74. package/lib/module/components/meter/index.js.map +1 -1
  75. package/lib/module/components/mirror-area-chart/index.js +15 -3
  76. package/lib/module/components/mirror-area-chart/index.js.map +1 -1
  77. package/lib/module/components/number-input/index.js +1 -2
  78. package/lib/module/components/number-input/index.js.map +1 -1
  79. package/lib/module/components/otp-input/index.js +1 -2
  80. package/lib/module/components/otp-input/index.js.map +1 -1
  81. package/lib/module/components/page-header/index.js +1 -2
  82. package/lib/module/components/page-header/index.js.map +1 -1
  83. package/lib/module/components/pagination/index.js.map +1 -1
  84. package/lib/module/components/panelside/index.js +8 -7
  85. package/lib/module/components/panelside/index.js.map +1 -1
  86. package/lib/module/components/planner/index.js +1 -2
  87. package/lib/module/components/planner/index.js.map +1 -1
  88. package/lib/module/components/plot/index.js +15 -3
  89. package/lib/module/components/plot/index.js.map +1 -1
  90. package/lib/module/components/popover/index.js +1 -2
  91. package/lib/module/components/popover/index.js.map +1 -1
  92. package/lib/module/components/post/index.js +1 -2
  93. package/lib/module/components/post/index.js.map +1 -1
  94. package/lib/module/components/progress/index.js.map +1 -1
  95. package/lib/module/components/progress-button/index.js +1 -2
  96. package/lib/module/components/progress-button/index.js.map +1 -1
  97. package/lib/module/components/pyramid-chart/index.js +15 -3
  98. package/lib/module/components/pyramid-chart/index.js.map +1 -1
  99. package/lib/module/components/qr-code/index.js.map +1 -1
  100. package/lib/module/components/questionnaire/index.js +1 -2
  101. package/lib/module/components/questionnaire/index.js.map +1 -1
  102. package/lib/module/components/radio-group/index.js.map +1 -1
  103. package/lib/module/components/rating/index.js +1 -2
  104. package/lib/module/components/rating/index.js.map +1 -1
  105. package/lib/module/components/scatter-chart/index.js +13 -3
  106. package/lib/module/components/scatter-chart/index.js.map +1 -1
  107. package/lib/module/components/scroll-header/index.js +5 -4
  108. package/lib/module/components/scroll-header/index.js.map +1 -1
  109. package/lib/module/components/search-bar/index.js +1 -2
  110. package/lib/module/components/search-bar/index.js.map +1 -1
  111. package/lib/module/components/section-progress/index.js +3 -2
  112. package/lib/module/components/section-progress/index.js.map +1 -1
  113. package/lib/module/components/select/index.js.map +1 -1
  114. package/lib/module/components/separator/index.js.map +1 -1
  115. package/lib/module/components/shimmer/index.js +8 -1
  116. package/lib/module/components/shimmer/index.js.map +1 -1
  117. package/lib/module/components/signature/index.js.map +1 -1
  118. package/lib/module/components/sketch/index.js.map +1 -1
  119. package/lib/module/components/slide-button/index.js +1 -2
  120. package/lib/module/components/slide-button/index.js.map +1 -1
  121. package/lib/module/components/slider/index.js +1 -2
  122. package/lib/module/components/slider/index.js.map +1 -1
  123. package/lib/module/components/sortable/index.js +6 -7
  124. package/lib/module/components/sortable/index.js.map +1 -1
  125. package/lib/module/components/splitter/index.js +3 -2
  126. package/lib/module/components/splitter/index.js.map +1 -1
  127. package/lib/module/components/stack-card/index.js +3 -2
  128. package/lib/module/components/stack-card/index.js.map +1 -1
  129. package/lib/module/components/steps/index.js.map +1 -1
  130. package/lib/module/components/support/index.js.map +1 -1
  131. package/lib/module/components/surface/index.js.map +1 -1
  132. package/lib/module/components/swipe/index.js.map +1 -1
  133. package/lib/module/components/switch/index.js.map +1 -1
  134. package/lib/module/components/table/index.js +1 -2
  135. package/lib/module/components/table/index.js.map +1 -1
  136. package/lib/module/components/tabs/index.js +2 -1
  137. package/lib/module/components/tabs/index.js.map +1 -1
  138. package/lib/module/components/tag-input/index.js +1 -2
  139. package/lib/module/components/tag-input/index.js.map +1 -1
  140. package/lib/module/components/text-animation/index.js +2 -1
  141. package/lib/module/components/text-animation/index.js.map +1 -1
  142. package/lib/module/components/textarea/index.js +1 -2
  143. package/lib/module/components/textarea/index.js.map +1 -1
  144. package/lib/module/components/time-picker/index.js.map +1 -1
  145. package/lib/module/components/timeline/index.js.map +1 -1
  146. package/lib/module/components/toast/index.js +1 -0
  147. package/lib/module/components/toast/index.js.map +1 -1
  148. package/lib/module/components/toggle-button/index.js.map +1 -1
  149. package/lib/module/components/tooltip/index.js +1 -2
  150. package/lib/module/components/tooltip/index.js.map +1 -1
  151. package/lib/module/components/tour/index.js.map +1 -1
  152. package/lib/module/components/tree/index.js +2 -1
  153. package/lib/module/components/tree/index.js.map +1 -1
  154. package/lib/module/components/typography/index.js.map +1 -1
  155. package/lib/module/components/waterfall-chart/index.js +15 -3
  156. package/lib/module/components/waterfall-chart/index.js.map +1 -1
  157. package/lib/module/hooks/use-keyboard-avoidance.js +0 -1
  158. package/lib/module/hooks/use-keyboard-avoidance.js.map +1 -1
  159. package/lib/module/hooks/use-reveal-progress.js.map +1 -1
  160. package/lib/module/hooks/use-scroll-sections.js.map +1 -1
  161. package/lib/module/icons/index.js +22 -1
  162. package/lib/module/icons/index.js.map +1 -1
  163. package/lib/module/index.js +4 -0
  164. package/lib/module/index.js.map +1 -1
  165. package/lib/module/primitives/animated-pressable.js.map +1 -1
  166. package/lib/module/primitives/chart-accessibility.js +9 -1
  167. package/lib/module/primitives/chart-accessibility.js.map +1 -1
  168. package/lib/module/primitives/glass.js.map +1 -1
  169. package/lib/module/primitives/refs.js +4 -0
  170. package/lib/module/primitives/refs.js.map +1 -0
  171. package/lib/module/primitives/scroll-progress.js.map +1 -1
  172. package/lib/module/primitives/text.js.map +1 -1
  173. package/lib/module/primitives/web-deps.js +17 -0
  174. package/lib/module/primitives/web-deps.js.map +1 -0
  175. package/lib/module/uniwind-env.d.ts +1 -0
  176. package/lib/typescript/src/components/accordion/index.d.ts +8 -7
  177. package/lib/typescript/src/components/accordion/index.d.ts.map +1 -1
  178. package/lib/typescript/src/components/ai-input/index.d.ts.map +1 -1
  179. package/lib/typescript/src/components/alert/index.d.ts +9 -8
  180. package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
  181. package/lib/typescript/src/components/animated-badge/index.d.ts +5 -4
  182. package/lib/typescript/src/components/animated-badge/index.d.ts.map +1 -1
  183. package/lib/typescript/src/components/area-chart/index.d.ts +11 -1
  184. package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -1
  185. package/lib/typescript/src/components/attachment/index.d.ts +10 -9
  186. package/lib/typescript/src/components/attachment/index.d.ts.map +1 -1
  187. package/lib/typescript/src/components/avatar/index.d.ts +7 -6
  188. package/lib/typescript/src/components/avatar/index.d.ts.map +1 -1
  189. package/lib/typescript/src/components/avatar-cropper/index.d.ts.map +1 -1
  190. package/lib/typescript/src/components/badge/index.d.ts +5 -4
  191. package/lib/typescript/src/components/badge/index.d.ts.map +1 -1
  192. package/lib/typescript/src/components/bar-chart/index.d.ts +11 -1
  193. package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -1
  194. package/lib/typescript/src/components/bottom-sheet/index.d.ts +1 -1
  195. package/lib/typescript/src/components/breadcrumb/index.d.ts +9 -8
  196. package/lib/typescript/src/components/breadcrumb/index.d.ts.map +1 -1
  197. package/lib/typescript/src/components/bubble-chart/index.d.ts +11 -1
  198. package/lib/typescript/src/components/bubble-chart/index.d.ts.map +1 -1
  199. package/lib/typescript/src/components/bump-chart/index.d.ts +11 -1
  200. package/lib/typescript/src/components/bump-chart/index.d.ts.map +1 -1
  201. package/lib/typescript/src/components/button/index.d.ts +4 -4
  202. package/lib/typescript/src/components/button/index.d.ts.map +1 -1
  203. package/lib/typescript/src/components/button-group/index.d.ts +5 -4
  204. package/lib/typescript/src/components/button-group/index.d.ts.map +1 -1
  205. package/lib/typescript/src/components/calendar/index.d.ts.map +1 -1
  206. package/lib/typescript/src/components/candlestick-chart/index.d.ts +11 -1
  207. package/lib/typescript/src/components/candlestick-chart/index.d.ts.map +1 -1
  208. package/lib/typescript/src/components/card/index.d.ts +16 -15
  209. package/lib/typescript/src/components/card/index.d.ts.map +1 -1
  210. package/lib/typescript/src/components/checkbox/index.d.ts +5 -4
  211. package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -1
  212. package/lib/typescript/src/components/chip/index.d.ts +4 -4
  213. package/lib/typescript/src/components/chip/index.d.ts.map +1 -1
  214. package/lib/typescript/src/components/collapsible/index.d.ts +7 -6
  215. package/lib/typescript/src/components/collapsible/index.d.ts.map +1 -1
  216. package/lib/typescript/src/components/color-picker/index.d.ts +13 -13
  217. package/lib/typescript/src/components/color-picker/index.d.ts.map +1 -1
  218. package/lib/typescript/src/components/combobox/index.d.ts.map +1 -1
  219. package/lib/typescript/src/components/context-menu/index.d.ts.map +1 -1
  220. package/lib/typescript/src/components/countdown/index.d.ts +5 -4
  221. package/lib/typescript/src/components/countdown/index.d.ts.map +1 -1
  222. package/lib/typescript/src/components/dialog/index.d.ts +11 -10
  223. package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
  224. package/lib/typescript/src/components/empty-state/index.d.ts +12 -11
  225. package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -1
  226. package/lib/typescript/src/components/fab/index.d.ts +7 -6
  227. package/lib/typescript/src/components/fab/index.d.ts.map +1 -1
  228. package/lib/typescript/src/components/feedback/index.d.ts +6 -5
  229. package/lib/typescript/src/components/feedback/index.d.ts.map +1 -1
  230. package/lib/typescript/src/components/field/index.d.ts +12 -11
  231. package/lib/typescript/src/components/field/index.d.ts.map +1 -1
  232. package/lib/typescript/src/components/file-upload/index.d.ts +5 -4
  233. package/lib/typescript/src/components/file-upload/index.d.ts.map +1 -1
  234. package/lib/typescript/src/components/flip-card/index.d.ts +5 -4
  235. package/lib/typescript/src/components/flip-card/index.d.ts.map +1 -1
  236. package/lib/typescript/src/components/frame/index.d.ts +14 -13
  237. package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
  238. package/lib/typescript/src/components/grid-item/index.d.ts +30 -29
  239. package/lib/typescript/src/components/grid-item/index.d.ts.map +1 -1
  240. package/lib/typescript/src/components/heatmap-chart/index.d.ts +3 -2
  241. package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
  242. package/lib/typescript/src/components/image-viewer/index.d.ts.map +1 -1
  243. package/lib/typescript/src/components/input/index.d.ts +5 -4
  244. package/lib/typescript/src/components/input/index.d.ts.map +1 -1
  245. package/lib/typescript/src/components/input-group/index.d.ts +6 -5
  246. package/lib/typescript/src/components/input-group/index.d.ts.map +1 -1
  247. package/lib/typescript/src/components/item/index.d.ts +34 -33
  248. package/lib/typescript/src/components/item/index.d.ts.map +1 -1
  249. package/lib/typescript/src/components/kpi/index.d.ts +6 -5
  250. package/lib/typescript/src/components/kpi/index.d.ts.map +1 -1
  251. package/lib/typescript/src/components/label/index.d.ts +4 -3
  252. package/lib/typescript/src/components/label/index.d.ts.map +1 -1
  253. package/lib/typescript/src/components/leaderboard/index.d.ts +3 -2
  254. package/lib/typescript/src/components/leaderboard/index.d.ts.map +1 -1
  255. package/lib/typescript/src/components/line-chart/index.d.ts +11 -1
  256. package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
  257. package/lib/typescript/src/components/live-line-chart/index.d.ts +11 -1
  258. package/lib/typescript/src/components/live-line-chart/index.d.ts.map +1 -1
  259. package/lib/typescript/src/components/map/native-style.d.ts.map +1 -1
  260. package/lib/typescript/src/components/markdown-editor/index.d.ts +6 -5
  261. package/lib/typescript/src/components/markdown-editor/index.d.ts.map +1 -1
  262. package/lib/typescript/src/components/marker/index.d.ts +7 -6
  263. package/lib/typescript/src/components/marker/index.d.ts.map +1 -1
  264. package/lib/typescript/src/components/marquee/index.d.ts.map +1 -1
  265. package/lib/typescript/src/components/message/index.d.ts +13 -12
  266. package/lib/typescript/src/components/message/index.d.ts.map +1 -1
  267. package/lib/typescript/src/components/message-scroller/index.d.ts.map +1 -1
  268. package/lib/typescript/src/components/meter/index.d.ts +5 -4
  269. package/lib/typescript/src/components/meter/index.d.ts.map +1 -1
  270. package/lib/typescript/src/components/mirror-area-chart/index.d.ts +11 -1
  271. package/lib/typescript/src/components/mirror-area-chart/index.d.ts.map +1 -1
  272. package/lib/typescript/src/components/number-input/index.d.ts +5 -4
  273. package/lib/typescript/src/components/number-input/index.d.ts.map +1 -1
  274. package/lib/typescript/src/components/otp-input/index.d.ts +5 -4
  275. package/lib/typescript/src/components/otp-input/index.d.ts.map +1 -1
  276. package/lib/typescript/src/components/page-header/index.d.ts +15 -14
  277. package/lib/typescript/src/components/page-header/index.d.ts.map +1 -1
  278. package/lib/typescript/src/components/pagination/index.d.ts +9 -8
  279. package/lib/typescript/src/components/pagination/index.d.ts.map +1 -1
  280. package/lib/typescript/src/components/panelside/index.d.ts.map +1 -1
  281. package/lib/typescript/src/components/planner/index.d.ts +3 -2
  282. package/lib/typescript/src/components/planner/index.d.ts.map +1 -1
  283. package/lib/typescript/src/components/plot/index.d.ts +11 -1
  284. package/lib/typescript/src/components/plot/index.d.ts.map +1 -1
  285. package/lib/typescript/src/components/popover/index.d.ts.map +1 -1
  286. package/lib/typescript/src/components/post/index.d.ts +15 -14
  287. package/lib/typescript/src/components/post/index.d.ts.map +1 -1
  288. package/lib/typescript/src/components/progress/index.d.ts +5 -4
  289. package/lib/typescript/src/components/progress/index.d.ts.map +1 -1
  290. package/lib/typescript/src/components/progress-button/index.d.ts +5 -4
  291. package/lib/typescript/src/components/progress-button/index.d.ts.map +1 -1
  292. package/lib/typescript/src/components/pyramid-chart/index.d.ts +11 -1
  293. package/lib/typescript/src/components/pyramid-chart/index.d.ts.map +1 -1
  294. package/lib/typescript/src/components/qr-code/index.d.ts +11 -10
  295. package/lib/typescript/src/components/qr-code/index.d.ts.map +1 -1
  296. package/lib/typescript/src/components/questionnaire/index.d.ts +4 -3
  297. package/lib/typescript/src/components/questionnaire/index.d.ts.map +1 -1
  298. package/lib/typescript/src/components/radio-group/index.d.ts +6 -5
  299. package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
  300. package/lib/typescript/src/components/rating/index.d.ts +4 -4
  301. package/lib/typescript/src/components/rating/index.d.ts.map +1 -1
  302. package/lib/typescript/src/components/scatter-chart/index.d.ts +11 -1
  303. package/lib/typescript/src/components/scatter-chart/index.d.ts.map +1 -1
  304. package/lib/typescript/src/components/scroll-header/index.d.ts +11 -10
  305. package/lib/typescript/src/components/scroll-header/index.d.ts.map +1 -1
  306. package/lib/typescript/src/components/search-bar/index.d.ts +5 -4
  307. package/lib/typescript/src/components/search-bar/index.d.ts.map +1 -1
  308. package/lib/typescript/src/components/section-progress/index.d.ts.map +1 -1
  309. package/lib/typescript/src/components/select/index.d.ts.map +1 -1
  310. package/lib/typescript/src/components/selection-mode/index.d.ts +2 -2
  311. package/lib/typescript/src/components/selection-mode/index.d.ts.map +1 -1
  312. package/lib/typescript/src/components/separator/index.d.ts +17 -16
  313. package/lib/typescript/src/components/separator/index.d.ts.map +1 -1
  314. package/lib/typescript/src/components/shimmer/index.d.ts.map +1 -1
  315. package/lib/typescript/src/components/signature/index.d.ts +2 -2
  316. package/lib/typescript/src/components/signature/index.d.ts.map +1 -1
  317. package/lib/typescript/src/components/sketch/index.d.ts.map +1 -1
  318. package/lib/typescript/src/components/slide-button/index.d.ts +5 -4
  319. package/lib/typescript/src/components/slide-button/index.d.ts.map +1 -1
  320. package/lib/typescript/src/components/slider/index.d.ts +4 -4
  321. package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
  322. package/lib/typescript/src/components/sortable/index.d.ts.map +1 -1
  323. package/lib/typescript/src/components/spinner/index.d.ts +11 -11
  324. package/lib/typescript/src/components/spinner/index.d.ts.map +1 -1
  325. package/lib/typescript/src/components/splitter/index.d.ts.map +1 -1
  326. package/lib/typescript/src/components/stack-card/index.d.ts +11 -10
  327. package/lib/typescript/src/components/stack-card/index.d.ts.map +1 -1
  328. package/lib/typescript/src/components/steps/index.d.ts +9 -8
  329. package/lib/typescript/src/components/steps/index.d.ts.map +1 -1
  330. package/lib/typescript/src/components/support/index.d.ts +22 -21
  331. package/lib/typescript/src/components/support/index.d.ts.map +1 -1
  332. package/lib/typescript/src/components/surface/index.d.ts +35 -34
  333. package/lib/typescript/src/components/surface/index.d.ts.map +1 -1
  334. package/lib/typescript/src/components/swipe/index.d.ts +8 -7
  335. package/lib/typescript/src/components/swipe/index.d.ts.map +1 -1
  336. package/lib/typescript/src/components/switch/index.d.ts +5 -4
  337. package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
  338. package/lib/typescript/src/components/table/index.d.ts +14 -13
  339. package/lib/typescript/src/components/table/index.d.ts.map +1 -1
  340. package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
  341. package/lib/typescript/src/components/tag-input/index.d.ts +5 -4
  342. package/lib/typescript/src/components/tag-input/index.d.ts.map +1 -1
  343. package/lib/typescript/src/components/text-animation/index.d.ts.map +1 -1
  344. package/lib/typescript/src/components/textarea/index.d.ts +5 -4
  345. package/lib/typescript/src/components/textarea/index.d.ts.map +1 -1
  346. package/lib/typescript/src/components/time-picker/index.d.ts.map +1 -1
  347. package/lib/typescript/src/components/timeline/index.d.ts +18 -17
  348. package/lib/typescript/src/components/timeline/index.d.ts.map +1 -1
  349. package/lib/typescript/src/components/toast/index.d.ts +2 -2
  350. package/lib/typescript/src/components/toast/index.d.ts.map +1 -1
  351. package/lib/typescript/src/components/toggle-button/index.d.ts +6 -5
  352. package/lib/typescript/src/components/toggle-button/index.d.ts.map +1 -1
  353. package/lib/typescript/src/components/tooltip/index.d.ts.map +1 -1
  354. package/lib/typescript/src/components/tour/index.d.ts.map +1 -1
  355. package/lib/typescript/src/components/tree/index.d.ts +10 -9
  356. package/lib/typescript/src/components/tree/index.d.ts.map +1 -1
  357. package/lib/typescript/src/components/typography/index.d.ts +101 -100
  358. package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
  359. package/lib/typescript/src/components/waterfall-chart/index.d.ts +11 -1
  360. package/lib/typescript/src/components/waterfall-chart/index.d.ts.map +1 -1
  361. package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts +3 -2
  362. package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts.map +1 -1
  363. package/lib/typescript/src/hooks/use-reveal-progress.d.ts +2 -2
  364. package/lib/typescript/src/hooks/use-reveal-progress.d.ts.map +1 -1
  365. package/lib/typescript/src/hooks/use-scroll-sections.d.ts +3 -2
  366. package/lib/typescript/src/hooks/use-scroll-sections.d.ts.map +1 -1
  367. package/lib/typescript/src/icons/index.d.ts +40 -0
  368. package/lib/typescript/src/icons/index.d.ts.map +1 -1
  369. package/lib/typescript/src/index.d.ts +1 -0
  370. package/lib/typescript/src/index.d.ts.map +1 -1
  371. package/lib/typescript/src/primitives/animated-pressable.d.ts +3 -2
  372. package/lib/typescript/src/primitives/animated-pressable.d.ts.map +1 -1
  373. package/lib/typescript/src/primitives/chart-accessibility.d.ts +5 -6
  374. package/lib/typescript/src/primitives/chart-accessibility.d.ts.map +1 -1
  375. package/lib/typescript/src/primitives/glass.d.ts +3 -2
  376. package/lib/typescript/src/primitives/glass.d.ts.map +1 -1
  377. package/lib/typescript/src/primitives/refs.d.ts +25 -0
  378. package/lib/typescript/src/primitives/refs.d.ts.map +1 -0
  379. package/lib/typescript/src/primitives/scroll-progress.d.ts.map +1 -1
  380. package/lib/typescript/src/primitives/text.d.ts +41 -40
  381. package/lib/typescript/src/primitives/text.d.ts.map +1 -1
  382. package/lib/typescript/src/primitives/web-deps.d.ts +11 -0
  383. package/lib/typescript/src/primitives/web-deps.d.ts.map +1 -0
  384. package/package.json +12 -7
  385. package/src/components/accordion/index.tsx +7 -6
  386. package/src/components/ai-input/index.tsx +2 -1
  387. package/src/components/alert/index.tsx +6 -5
  388. package/src/components/animated-badge/index.tsx +2 -1
  389. package/src/components/area-chart/index.tsx +31 -3
  390. package/src/components/attachment/index.tsx +9 -8
  391. package/src/components/avatar/index.tsx +4 -3
  392. package/src/components/avatar-cropper/index.tsx +2 -1
  393. package/src/components/badge/index.tsx +2 -1
  394. package/src/components/bar-chart/index.tsx +40 -3
  395. package/src/components/breadcrumb/index.tsx +8 -7
  396. package/src/components/bubble-chart/index.tsx +23 -2
  397. package/src/components/bump-chart/index.tsx +31 -3
  398. package/src/components/button/index.tsx +2 -1
  399. package/src/components/button-group/index.tsx +2 -1
  400. package/src/components/calendar/index.tsx +2 -1
  401. package/src/components/candlestick-chart/index.tsx +25 -2
  402. package/src/components/card/index.tsx +7 -6
  403. package/src/components/checkbox/index.tsx +2 -1
  404. package/src/components/chip/index.tsx +2 -1
  405. package/src/components/collapsible/index.tsx +6 -5
  406. package/src/components/color-picker/index.tsx +29 -15
  407. package/src/components/combobox/index.tsx +3 -2
  408. package/src/components/context-menu/index.tsx +2 -1
  409. package/src/components/countdown/index.tsx +2 -1
  410. package/src/components/dialog/index.tsx +3 -2
  411. package/src/components/empty-state/index.tsx +7 -6
  412. package/src/components/fab/index.tsx +6 -4
  413. package/src/components/feedback/index.tsx +5 -4
  414. package/src/components/field/index.tsx +11 -10
  415. package/src/components/file-upload/index.tsx +4 -3
  416. package/src/components/flip-card/index.tsx +4 -3
  417. package/src/components/frame/index.tsx +13 -12
  418. package/src/components/grid-item/index.tsx +10 -9
  419. package/src/components/heatmap-chart/index.tsx +2 -1
  420. package/src/components/image-viewer/index.tsx +2 -1
  421. package/src/components/input/index.tsx +2 -1
  422. package/src/components/input-group/index.tsx +4 -3
  423. package/src/components/item/index.tsx +11 -10
  424. package/src/components/kpi/index.tsx +3 -2
  425. package/src/components/label/index.tsx +3 -2
  426. package/src/components/leaderboard/index.tsx +2 -1
  427. package/src/components/line-chart/index.tsx +31 -3
  428. package/src/components/live-line-chart/index.tsx +31 -4
  429. package/src/components/map/native-style.ts +31 -4
  430. package/src/components/markdown-editor/index.tsx +11 -11
  431. package/src/components/marker/index.tsx +4 -3
  432. package/src/components/marquee/index.tsx +2 -1
  433. package/src/components/message/index.tsx +10 -9
  434. package/src/components/message-scroller/index.tsx +4 -4
  435. package/src/components/meter/index.tsx +2 -1
  436. package/src/components/mirror-area-chart/index.tsx +25 -2
  437. package/src/components/number-input/index.tsx +2 -1
  438. package/src/components/otp-input/index.tsx +4 -3
  439. package/src/components/page-header/index.tsx +12 -11
  440. package/src/components/pagination/index.tsx +6 -5
  441. package/src/components/panelside/index.tsx +8 -7
  442. package/src/components/planner/index.tsx +7 -7
  443. package/src/components/plot/index.tsx +37 -3
  444. package/src/components/popover/index.tsx +2 -1
  445. package/src/components/post/index.tsx +12 -11
  446. package/src/components/progress/index.tsx +2 -1
  447. package/src/components/progress-button/index.tsx +2 -1
  448. package/src/components/pyramid-chart/index.tsx +25 -2
  449. package/src/components/qr-code/index.tsx +8 -7
  450. package/src/components/questionnaire/index.tsx +4 -3
  451. package/src/components/radio-group/index.tsx +3 -2
  452. package/src/components/rating/index.tsx +2 -1
  453. package/src/components/scatter-chart/index.tsx +23 -2
  454. package/src/components/scroll-header/index.tsx +13 -11
  455. package/src/components/search-bar/index.tsx +7 -8
  456. package/src/components/section-progress/index.tsx +3 -2
  457. package/src/components/select/index.tsx +2 -1
  458. package/src/components/separator/index.tsx +2 -1
  459. package/src/components/shimmer/index.tsx +11 -2
  460. package/src/components/signature/index.tsx +2 -1
  461. package/src/components/sketch/index.tsx +2 -1
  462. package/src/components/slide-button/index.tsx +2 -1
  463. package/src/components/slider/index.tsx +2 -1
  464. package/src/components/sortable/index.tsx +5 -7
  465. package/src/components/splitter/index.tsx +3 -2
  466. package/src/components/stack-card/index.tsx +9 -7
  467. package/src/components/steps/index.tsx +8 -7
  468. package/src/components/support/index.tsx +17 -16
  469. package/src/components/surface/index.tsx +2 -1
  470. package/src/components/swipe/index.tsx +5 -4
  471. package/src/components/switch/index.tsx +2 -1
  472. package/src/components/table/index.tsx +11 -10
  473. package/src/components/tabs/index.tsx +4 -2
  474. package/src/components/tag-input/index.tsx +5 -5
  475. package/src/components/text-animation/index.tsx +2 -1
  476. package/src/components/textarea/index.tsx +3 -3
  477. package/src/components/time-picker/index.tsx +2 -1
  478. package/src/components/timeline/index.tsx +17 -16
  479. package/src/components/toast/index.tsx +2 -2
  480. package/src/components/toggle-button/index.tsx +3 -2
  481. package/src/components/tooltip/index.tsx +2 -1
  482. package/src/components/tour/index.tsx +3 -2
  483. package/src/components/tree/index.tsx +11 -9
  484. package/src/components/typography/index.tsx +8 -7
  485. package/src/components/waterfall-chart/index.tsx +35 -2
  486. package/src/hooks/use-keyboard-avoidance.ts +3 -2
  487. package/src/hooks/use-reveal-progress.ts +3 -2
  488. package/src/hooks/use-scroll-sections.ts +3 -2
  489. package/src/icons/index.tsx +21 -2
  490. package/src/index.ts +14 -0
  491. package/src/primitives/animated-pressable.tsx +2 -1
  492. package/src/primitives/chart-accessibility.ts +9 -5
  493. package/src/primitives/glass.tsx +3 -2
  494. package/src/primitives/refs.ts +45 -0
  495. package/src/primitives/scroll-progress.tsx +2 -1
  496. package/src/primitives/text.tsx +2 -1
  497. package/src/primitives/web-deps.ts +14 -0
  498. package/lib/module/uniwind-env.d.js +0 -4
  499. package/lib/module/uniwind-env.d.js.map +0 -1
@@ -59,7 +59,6 @@ import {
59
59
  View,
60
60
  type NativeSyntheticEvent,
61
61
  type TextInput,
62
- type TextInputSelectionChangeEventData,
63
62
  type ViewProps,
64
63
  } from 'react-native';
65
64
  import { tv } from 'tailwind-variants';
@@ -97,6 +96,7 @@ import {
97
96
  type EditResult,
98
97
  type EditorSelection,
99
98
  } from './markdown-transforms';
99
+ import type { SelectionChangeEvent, TextInputRef, ViewRef } from '../../primitives/refs';
100
100
 
101
101
  export type { EditorSelection, EditResult } from './markdown-transforms';
102
102
 
@@ -304,7 +304,7 @@ interface MarkdownEditorContextValue {
304
304
  clearPending: () => void;
305
305
  onChangeText: (next: string) => void;
306
306
  /** Registers the field, so the root's ref can focus it. */
307
- registerField: (field: TextInput | null) => void;
307
+ registerField: (field: TextInputRef | null) => void;
308
308
  disabled: boolean;
309
309
  }
310
310
 
@@ -326,7 +326,7 @@ function useMarkdownEditor(part: string): MarkdownEditorContextValue {
326
326
  */
327
327
  export interface MarkdownEditorHandle {
328
328
  /** The container, for measuring and for anything a `View` ref is good for. */
329
- readonly view: View | null;
329
+ readonly view: ViewRef | null;
330
330
  /** Runs one of the toolbar's actions against the current selection. */
331
331
  apply: (action: MarkdownEditorAction) => void;
332
332
  /** Which actions are already in effect where the caret is. */
@@ -407,8 +407,8 @@ const MarkdownEditorRoot = forwardRef<MarkdownEditorHandle, MarkdownEditorProps>
407
407
  ref
408
408
  ) => {
409
409
  const slots = markdownEditorVariants();
410
- const viewRef = useRef<View>(null);
411
- const fieldRef = useRef<TextInput | null>(null);
410
+ const viewRef = useRef<ViewRef>(null);
411
+ const fieldRef = useRef<TextInputRef | null>(null);
412
412
 
413
413
  const [internalValue, setInternalValue] = useState(defaultValue);
414
414
  const value = valueProp ?? internalValue;
@@ -536,7 +536,7 @@ const MarkdownEditorRoot = forwardRef<MarkdownEditorHandle, MarkdownEditorProps>
536
536
  [continueLists, commit, readActive]
537
537
  );
538
538
 
539
- const registerField = useCallback((field: TextInput | null) => {
539
+ const registerField = useCallback((field: TextInputRef | null) => {
540
540
  fieldRef.current = field;
541
541
  }, []);
542
542
 
@@ -652,7 +652,7 @@ export interface MarkdownEditorToolbarProps extends Omit<ViewProps, 'children'>
652
652
  * here is a toggle, and a toggle that looks the same in both states is a toggle
653
653
  * nobody discovers is one.
654
654
  */
655
- const MarkdownEditorToolbar = forwardRef<View, MarkdownEditorToolbarProps>(
655
+ const MarkdownEditorToolbar = forwardRef<ViewRef, MarkdownEditorToolbarProps>(
656
656
  (
657
657
  {
658
658
  className,
@@ -784,7 +784,7 @@ export interface MarkdownEditorInputProps
784
784
  * Renders nothing while the preview is up. Unmounted rather than hidden: a
785
785
  * field kept alive behind the preview keeps the keyboard up with it.
786
786
  */
787
- const MarkdownEditorInput = forwardRef<TextInput, MarkdownEditorInputProps>(
787
+ const MarkdownEditorInput = forwardRef<TextInputRef, MarkdownEditorInputProps>(
788
788
  ({ className, rows = 8, ...props }, ref) => {
789
789
  const {
790
790
  value,
@@ -802,7 +802,7 @@ const MarkdownEditorInput = forwardRef<TextInput, MarkdownEditorInputProps>(
802
802
  * forwarded so a caller's ref still works. Both, rather than either.
803
803
  */
804
804
  const attach = useCallback(
805
- (field: TextInput | null) => {
805
+ (field: TextInputRef | null) => {
806
806
  registerField(field);
807
807
  if (typeof ref === 'function') ref(field);
808
808
  else if (ref) ref.current = field;
@@ -819,7 +819,7 @@ const MarkdownEditorInput = forwardRef<TextInput, MarkdownEditorInputProps>(
819
819
  * end of the document instead of between the markers just inserted.
820
820
  */
821
821
  const handleSelectionChange = useCallback(
822
- (event: NativeSyntheticEvent<TextInputSelectionChangeEventData>) => {
822
+ (event: SelectionChangeEvent) => {
823
823
  const { selection } = event.nativeEvent;
824
824
  setSelection(selection);
825
825
  if (
@@ -874,7 +874,7 @@ export interface MarkdownEditorPreviewProps extends Omit<ViewProps, 'children'>
874
874
  * Renders nothing while the field is up, which is what makes the two one pane
875
875
  * rather than two.
876
876
  */
877
- const MarkdownEditorPreview = forwardRef<View, MarkdownEditorPreviewProps>(
877
+ const MarkdownEditorPreview = forwardRef<ViewRef, MarkdownEditorPreviewProps>(
878
878
  ({ className, emptyText = 'Nothing to preview yet.', ...props }, ref) => {
879
879
  const { value, mode } = useMarkdownEditor('MarkdownEditor.Preview');
880
880
  const slots = markdownEditorVariants();
@@ -29,6 +29,7 @@ import { Text, type TextProps, textChildren } from '../../primitives/text';
29
29
  import { cn } from '../../utils/cn';
30
30
  import { Separator } from '../separator';
31
31
  import { Shimmer } from '../shimmer';
32
+ import type { TextRef, ViewRef } from '../../primitives/refs';
32
33
 
33
34
  type MarkerVariant = 'default' | 'border' | 'separator';
34
35
 
@@ -80,7 +81,7 @@ export interface MarkerProps
80
81
  * Renders as a pressable when given `onPress` and as a plain view otherwise,
81
82
  * so a marker that does nothing does not announce itself as a button.
82
83
  */
83
- const MarkerRoot = forwardRef<View, MarkerProps>(
84
+ const MarkerRoot = forwardRef<ViewRef, MarkerProps>(
84
85
  ({ className, variant = 'default', disabled, children, onPress, ...props }, ref) => {
85
86
  const { root } = markerVariants({ variant, disabled: !!disabled });
86
87
 
@@ -134,7 +135,7 @@ export interface MarkerIconProps extends ViewProps {
134
135
  * Decorative leading slot. Hidden from screen readers — the icon repeats what
135
136
  * the content already says, and announcing it twice is noise.
136
137
  */
137
- const MarkerIcon = forwardRef<View, MarkerIconProps>(
138
+ const MarkerIcon = forwardRef<ViewRef, MarkerIconProps>(
138
139
  ({ className, children, ...props }, ref) => {
139
140
  // Icons here take the muted foreground, so a marker reads as chrome next to
140
141
  // a message rather than competing with it.
@@ -168,7 +169,7 @@ export interface MarkerContentProps extends TextProps {
168
169
  children?: ReactNode;
169
170
  }
170
171
 
171
- const MarkerContent = forwardRef<RNText, MarkerContentProps>(
172
+ const MarkerContent = forwardRef<TextRef, MarkerContentProps>(
172
173
  ({ className, shimmer, children, ...props }, ref) => {
173
174
  const variant = useContext(MarkerContext);
174
175
  const { content } = markerVariants({ variant });
@@ -82,6 +82,7 @@ import {
82
82
  marqueeCopyCount,
83
83
  normalizeMarqueeSpeed,
84
84
  } from './marquee-math';
85
+ import { webDeps } from '../../primitives/web-deps';
85
86
 
86
87
  export type MarqueeDirection = 'horizontal' | 'vertical';
87
88
 
@@ -242,7 +243,7 @@ function MarqueeRoot({
242
243
  return {
243
244
  transform: [horizontal ? { translateX: travel } : { translateY: travel }],
244
245
  };
245
- }, [horizontal, reverse, flip]);
246
+ }, webDeps([horizontal, reverse, flip]));
246
247
 
247
248
  // The container's own measurement is what sizes the loop, so an `onLayout`
248
249
  // passed in is called alongside it rather than replacing it.
@@ -36,6 +36,7 @@ import { IconColorProvider } from '../../icons';
36
36
  import { AnimatedPressable } from '../../primitives/animated-pressable';
37
37
  import { Text, type TextProps, textChildren } from '../../primitives/text';
38
38
  import { cn } from '../../utils/cn';
39
+ import type { TextRef, ViewRef } from '../../primitives/refs';
39
40
 
40
41
  const messageVariants = tv({
41
42
  slots: {
@@ -121,7 +122,7 @@ export interface MessageProps
121
122
  children?: ReactNode;
122
123
  }
123
124
 
124
- const MessageRoot = forwardRef<View, MessageProps>(
125
+ const MessageRoot = forwardRef<ViewRef, MessageProps>(
125
126
  ({ className, align, stacked = false, onLongPress, children, ...props }, ref) => {
126
127
  const group = useContext(GroupContext);
127
128
  const resolvedAlign = align ?? group?.align ?? 'start';
@@ -166,7 +167,7 @@ export interface MessageGroupProps extends ViewProps {
166
167
  * marks every message after the first as `stacked`, so only the first shows an
167
168
  * avatar and the rest stay aligned with it.
168
169
  */
169
- const MessageGroup = forwardRef<View, MessageGroupProps>(
170
+ const MessageGroup = forwardRef<ViewRef, MessageGroupProps>(
170
171
  ({ className, align = 'start', children, ...props }, ref) => {
171
172
  const { group } = messageVariants({ align });
172
173
 
@@ -200,7 +201,7 @@ export interface MessageAvatarProps extends ViewProps {
200
201
  * left empty, which keeps the bubbles in a column instead of letting the
201
202
  * second one slide under the first one's avatar.
202
203
  */
203
- const MessageAvatar = forwardRef<View, MessageAvatarProps>(
204
+ const MessageAvatar = forwardRef<ViewRef, MessageAvatarProps>(
204
205
  ({ className, children, ...props }, ref) => {
205
206
  const { stacked } = useMessageContext();
206
207
  const { avatar } = messageVariants();
@@ -220,7 +221,7 @@ export interface MessageContentProps extends ViewProps {
220
221
  }
221
222
 
222
223
  /** Column holding the header, bubble and footer. */
223
- const MessageContent = forwardRef<View, MessageContentProps>(
224
+ const MessageContent = forwardRef<ViewRef, MessageContentProps>(
224
225
  ({ className, children, ...props }, ref) => {
225
226
  const { align } = useMessageContext();
226
227
  const { content } = messageVariants({ align });
@@ -239,7 +240,7 @@ export interface MessageHeaderProps extends TextProps {
239
240
  }
240
241
 
241
242
  /** Sender name or timestamp above the bubble. */
242
- const MessageHeader = forwardRef<React.ElementRef<typeof Text>, MessageHeaderProps>(
243
+ const MessageHeader = forwardRef<TextRef, MessageHeaderProps>(
243
244
  ({ className, ...props }, ref) => {
244
245
  const { align } = useMessageContext();
245
246
  const { header } = messageVariants({ align });
@@ -255,7 +256,7 @@ export interface MessageBubbleProps extends ViewProps {
255
256
  }
256
257
 
257
258
  /** The speech bubble. Takes its colour and squared corner from `align`. */
258
- const MessageBubble = forwardRef<View, MessageBubbleProps>(
259
+ const MessageBubble = forwardRef<ViewRef, MessageBubbleProps>(
259
260
  ({ className, children, ...props }, ref) => {
260
261
  const { align } = useMessageContext();
261
262
  const { bubble } = messageVariants({ align });
@@ -289,7 +290,7 @@ export interface MessageBubbleContentProps extends TextProps {
289
290
 
290
291
  /** Text inside the bubble, in whichever colour reads against it. */
291
292
  const MessageBubbleContent = forwardRef<
292
- React.ElementRef<typeof Text>,
293
+ TextRef,
293
294
  MessageBubbleContentProps
294
295
  >(({ className, ...props }, ref) => {
295
296
  const { align } = useMessageContext();
@@ -304,7 +305,7 @@ export interface MessageFooterProps extends TextProps {
304
305
  }
305
306
 
306
307
  /** Delivery state, timestamp or actions below the bubble. */
307
- const MessageFooter = forwardRef<React.ElementRef<typeof Text>, MessageFooterProps>(
308
+ const MessageFooter = forwardRef<TextRef, MessageFooterProps>(
308
309
  ({ className, ...props }, ref) => {
309
310
  const { align } = useMessageContext();
310
311
  const { footer } = messageVariants({ align });
@@ -320,7 +321,7 @@ export interface MessageActionsProps extends ViewProps {
320
321
  }
321
322
 
322
323
  /** Row of controls under the bubble — copy, retry, feedback. */
323
- const MessageActions = forwardRef<View, MessageActionsProps>(
324
+ const MessageActions = forwardRef<ViewRef, MessageActionsProps>(
324
325
  ({ className, children, ...props }, ref) => {
325
326
  const { align } = useMessageContext();
326
327
 
@@ -49,7 +49,6 @@ import {
49
49
  type LayoutChangeEvent,
50
50
  type ListRenderItemInfo,
51
51
  type ViewProps,
52
- type ViewToken,
53
52
  } from 'react-native';
54
53
  import Animated, {
55
54
  runOnJS,
@@ -74,6 +73,7 @@ import {
74
73
  messageScrollerIndex,
75
74
  MESSAGE_SCROLLER_EDGE_THRESHOLD,
76
75
  } from './message-scroller-math';
76
+ import type { ViewTokenOf } from '../../primitives/refs';
77
77
 
78
78
  /**
79
79
  * How much of the previous turn is left showing above an anchored one. Scrolling
@@ -617,9 +617,9 @@ function MessageScrollerList<T extends MessageScrollerListItem>({
617
617
  };
618
618
 
619
619
  const onViewableItemsChanged = useRef(
620
- ({ viewableItems }: { viewableItems: ViewToken<T>[] }) => {
621
- const first = viewableItems.reduce(
622
- (best, token) => (token.index !== null && token.index < best ? token.index : best),
620
+ ({ viewableItems }: { viewableItems: ViewTokenOf<T>[] }) => {
621
+ const first = viewableItems.reduce<number>(
622
+ (best, token) => (token.index != null && token.index < best ? token.index : best),
623
623
  Infinity
624
624
  );
625
625
  firstVisibleIndex.current = Number.isFinite(first) ? first : null;
@@ -19,6 +19,7 @@ import {
19
19
  type MeterColor,
20
20
  type MeterThreshold,
21
21
  } from './meter-scale';
22
+ import type { ViewRef } from '../../primitives/refs';
22
23
 
23
24
  const SPRING = {
24
25
  damping: 20,
@@ -193,7 +194,7 @@ function Segment({ index, lit, className, reducedMotion }: SegmentProps) {
193
194
  * it is why `label` matters: the role will not distinguish a reading from a
194
195
  * task, and the name is what does.
195
196
  */
196
- export const Meter = forwardRef<View, MeterProps>(
197
+ export const Meter = forwardRef<ViewRef, MeterProps>(
197
198
  (
198
199
  {
199
200
  className,
@@ -1002,6 +1002,15 @@ MirrorAreaChartYAxis.layer = 'overlay' as Layer;
1002
1002
  // Read by the root, which leaves room for the labels before laying the plot out.
1003
1003
  MirrorAreaChartYAxis.axis = 'y' as const;
1004
1004
 
1005
+ /**
1006
+ * How long the readout waits before claiming the touch, in milliseconds.
1007
+ *
1008
+ * Long enough that a tap reaches a button drawn over the chart and a swipe
1009
+ * scrolls the screen, short enough that a deliberate press does not feel
1010
+ * ignored.
1011
+ */
1012
+ const DEFAULT_HOLD = 180;
1013
+
1005
1014
  export interface MirrorAreaChartTooltipProps {
1006
1015
  /** Colour of the crosshair and the dot. Defaults to the foreground token. */
1007
1016
  color?: string;
@@ -1015,6 +1024,16 @@ export interface MirrorAreaChartTooltipProps {
1015
1024
  */
1016
1025
  formatSummary?: (datum: MirrorAreaChartDatum) => string;
1017
1026
  className?: string;
1027
+ /**
1028
+ * How long a press has to be held before the readout takes the touch, in
1029
+ * milliseconds.
1030
+ *
1031
+ * Until then the touch belongs to whatever else wants it: a quick tap still
1032
+ * reaches a button floating over the chart, and a swipe still scrolls the
1033
+ * screen the chart sits in. Set `0` to read on contact, only for a chart with
1034
+ * nothing over it and no scroll view around it.
1035
+ */
1036
+ activateAfterLongPress?: number;
1018
1037
  }
1019
1038
 
1020
1039
  /**
@@ -1027,6 +1046,7 @@ function MirrorAreaChartTooltip({
1027
1046
  formatX,
1028
1047
  formatSummary,
1029
1048
  className,
1049
+ activateAfterLongPress = DEFAULT_HOLD,
1030
1050
  }: MirrorAreaChartTooltipProps) {
1031
1051
  const {
1032
1052
  data,
@@ -1067,7 +1087,8 @@ function MirrorAreaChartTooltip({
1067
1087
 
1068
1088
  return Gesture.Pan()
1069
1089
  .minDistance(0)
1070
- .onBegin((event) => {
1090
+ .activateAfterLongPress(activateAfterLongPress)
1091
+ .onStart((event) => {
1071
1092
  'worklet';
1072
1093
  resolve(event.x);
1073
1094
  })
@@ -1077,10 +1098,12 @@ function MirrorAreaChartTooltip({
1077
1098
  })
1078
1099
  .onFinalize(() => {
1079
1100
  'worklet';
1101
+ // Fires whether or not the readout ever took the touch.
1102
+ if (activeIndex.value === -1) return;
1080
1103
  activeIndex.value = -1;
1081
1104
  runOnJS(setActiveIndexJS)(-1);
1082
1105
  });
1083
- }, [total, left, width, activeIndex, setActiveIndexJS]);
1106
+ }, [total, left, width, activeIndex, setActiveIndexJS, activateAfterLongPress]);
1084
1107
 
1085
1108
  /*
1086
1109
  * The dot sits on the outermost edge on the top half — the largest value of
@@ -37,6 +37,7 @@ import { selectionTick } from '../../utils/haptics';
37
37
  import { Label } from '../label';
38
38
  import { normalize, precisionOf } from './number-input-math';
39
39
  import { createRepeater } from './number-input-repeat';
40
+ import type { TextInputRef } from '../../primitives/refs';
40
41
 
41
42
  /** Wait before a held button starts repeating — a tap must not trip it. */
42
43
  const REPEAT_DELAY = 400;
@@ -163,7 +164,7 @@ export interface NumberInputProps
163
164
  * A number stepped by buttons or typed by hand, reconciled to one clamped,
164
165
  * step-snapped value. See the file header for why it keeps both affordances.
165
166
  */
166
- export const NumberInput = forwardRef<TextInput, NumberInputProps>(
167
+ export const NumberInput = forwardRef<TextInputRef, NumberInputProps>(
167
168
  (
168
169
  {
169
170
  className,
@@ -39,6 +39,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
39
39
  import { useCSSVariable } from 'uniwind';
40
40
  import { Text } from '../../primitives/text';
41
41
  import { resolveOtpEditable } from './otp-input-state';
42
+ import type { TextInputRef } from '../../primitives/refs';
42
43
 
43
44
  /** Long enough to read as a transition, short enough not to lag a fast type. */
44
45
  const FOCUS_DURATION = 150;
@@ -230,7 +231,7 @@ function sanitize(raw: string, length: number, type: 'numeric' | 'text'): string
230
231
  return filtered.slice(0, length);
231
232
  }
232
233
 
233
- export const OtpInput = forwardRef<TextInput, OtpInputProps>(
234
+ export const OtpInput = forwardRef<TextInputRef, OtpInputProps>(
234
235
  (
235
236
  {
236
237
  className,
@@ -265,7 +266,7 @@ export const OtpInput = forwardRef<TextInput, OtpInputProps>(
265
266
  const invalid = isInvalid || !!errorMessage;
266
267
 
267
268
  const [focused, setFocused] = useState(false);
268
- const inputRef = useRef<TextInput | null>(null);
269
+ const inputRef = useRef<TextInputRef | null>(null);
269
270
 
270
271
  // A one-shot guard so onComplete fires on the transition to full, not on
271
272
  // every keystroke that leaves the field full (e.g. a trailing focus event).
@@ -274,7 +275,7 @@ export const OtpInput = forwardRef<TextInput, OtpInputProps>(
274
275
  const slots = otpVariants({ size, disabled: !!disabled });
275
276
 
276
277
  const setRef = useCallback(
277
- (node: TextInput | null) => {
278
+ (node: TextInputRef | null) => {
278
279
  inputRef.current = node;
279
280
  if (typeof ref === 'function') ref(node);
280
281
  else if (ref) ref.current = node;
@@ -65,6 +65,7 @@ import { Text, type TextProps, textChildren } from '../../primitives/text';
65
65
  import { cn } from '../../utils/cn';
66
66
  import { BadgeCheckIcon, IconColorProvider } from '../../icons';
67
67
  import { Avatar, AVATAR_SIZE_POINTS, type AvatarProps, type AvatarSizeName } from '../avatar';
68
+ import type { TextRef, ViewRef } from '../../primitives/refs';
68
69
 
69
70
  /** Height of a cover that is not given one. Two lines of nothing, and enough
70
71
  * of a band for a face to sit half over. */
@@ -186,7 +187,7 @@ export interface PageHeaderRootProps extends PageHeaderProps {
186
187
  align?: PageHeaderAlign;
187
188
  }
188
189
 
189
- const PageHeaderRoot = forwardRef<View, PageHeaderRootProps>(
190
+ const PageHeaderRoot = forwardRef<ViewRef, PageHeaderRootProps>(
190
191
  ({ className, variant = 'card', align = 'center', children, ...props }, ref) => {
191
192
  // Whether the avatar has anything to overlap. Read off the children rather
192
193
  // than asked for, because a caller who has written a cover should not also
@@ -233,7 +234,7 @@ export interface PageHeaderCoverProps extends ViewProps {
233
234
  * The banner. An image when given one, a gradient when not — a header with no
234
235
  * banner still has to read as a header, and an empty band reads as a bug.
235
236
  */
236
- const PageHeaderCover = forwardRef<View, PageHeaderCoverProps>(
237
+ const PageHeaderCover = forwardRef<ViewRef, PageHeaderCoverProps>(
237
238
  ({ className, source, height = COVER_HEIGHT, colors, alt, style, children, ...props }, ref) => {
238
239
  const { variant } = usePageHeader('PageHeader.Cover');
239
240
  const from = useCSSVariable(GRADIENT[0]);
@@ -315,7 +316,7 @@ export interface PageHeaderAvatarProps extends Omit<AvatarProps, 'size' | 'child
315
316
  * pinned to the top corner, where an unread count belongs. A verification mark
316
317
  * belongs at the bottom, beside the name it is vouching for.
317
318
  */
318
- const PageHeaderAvatar = forwardRef<View, PageHeaderAvatarProps>(
319
+ const PageHeaderAvatar = forwardRef<ViewRef, PageHeaderAvatarProps>(
319
320
  (
320
321
  {
321
322
  className,
@@ -401,7 +402,7 @@ export interface PageHeaderRowProps extends PageHeaderProps {
401
402
  * The face, and whatever sits beside it. For the profile that puts its counts
402
403
  * next to the picture rather than under the name.
403
404
  */
404
- const PageHeaderRow = forwardRef<View, PageHeaderRowProps>(
405
+ const PageHeaderRow = forwardRef<ViewRef, PageHeaderRowProps>(
405
406
  ({ className, children, ...props }, ref) => {
406
407
  const { variant, align } = usePageHeader('PageHeader.Row');
407
408
  return (
@@ -422,7 +423,7 @@ export interface PageHeaderContentProps extends PageHeaderProps {
422
423
  }
423
424
 
424
425
  /** The text block: the name, the handle, and anything under them. */
425
- const PageHeaderContent = forwardRef<View, PageHeaderContentProps>(
426
+ const PageHeaderContent = forwardRef<ViewRef, PageHeaderContentProps>(
426
427
  ({ className, children, ...props }, ref) => {
427
428
  const { variant, align } = usePageHeader('PageHeader.Content');
428
429
  return (
@@ -439,7 +440,7 @@ const PageHeaderContent = forwardRef<View, PageHeaderContentProps>(
439
440
  PageHeaderContent.displayName = 'PageHeader.Content';
440
441
 
441
442
  /** Whose page it is. Announces itself as a heading. */
442
- const PageHeaderTitle = forwardRef<RNText, TextProps>(({ className, ...props }, ref) => (
443
+ const PageHeaderTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => (
443
444
  <Text
444
445
  {...props}
445
446
  ref={ref}
@@ -452,7 +453,7 @@ const PageHeaderTitle = forwardRef<RNText, TextProps>(({ className, ...props },
452
453
  PageHeaderTitle.displayName = 'PageHeader.Title';
453
454
 
454
455
  /** The handle, the email, the bio — the quiet line under the name. */
455
- const PageHeaderDescription = forwardRef<RNText, TextProps>(({ className, ...props }, ref) => (
456
+ const PageHeaderDescription = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => (
456
457
  <Text {...props} ref={ref} size="sm" muted className={className} />
457
458
  ));
458
459
  PageHeaderDescription.displayName = 'PageHeader.Description';
@@ -466,7 +467,7 @@ export interface PageHeaderMetaProps extends PageHeaderProps {
466
467
  /**
467
468
  * One fact about the account — a link, a location, the month it was opened.
468
469
  */
469
- const PageHeaderMeta = forwardRef<View, PageHeaderMetaProps>(
470
+ const PageHeaderMeta = forwardRef<ViewRef, PageHeaderMetaProps>(
470
471
  ({ className, icon, children, ...props }, ref) => {
471
472
  const { variant, align } = usePageHeader('PageHeader.Meta');
472
473
  const muted = useCSSVariable('--color-muted-foreground');
@@ -516,7 +517,7 @@ export interface PageHeaderStatsProps extends PageHeaderProps {
516
517
  * the name and the buttons are on, and the row reads as very slightly wrong
517
518
  * without it being obvious why.
518
519
  */
519
- const PageHeaderStats = forwardRef<View, PageHeaderStatsProps>(
520
+ const PageHeaderStats = forwardRef<ViewRef, PageHeaderStatsProps>(
520
521
  ({ className, layout = 'stacked', divided, children, ...props }, ref) => {
521
522
  const { variant, align } = usePageHeader('PageHeader.Stats');
522
523
  const stacked = layout === 'stacked';
@@ -575,7 +576,7 @@ export interface PageHeaderStatProps extends Omit<PressableProps, 'children'> {
575
576
  * One count. Announced as a single thing — "533 Followers" — because a figure
576
577
  * and its label read apart are two pieces of nothing.
577
578
  */
578
- const PageHeaderStat = forwardRef<View, PageHeaderStatProps>(
579
+ const PageHeaderStat = forwardRef<ViewRef, PageHeaderStatProps>(
579
580
  ({ className, value, label, divided, onPress, accessibilityLabel, ...props }, ref) => {
580
581
  const layout = useContext(PageHeaderStatsContext);
581
582
  const inline = layout === 'inline';
@@ -644,7 +645,7 @@ export interface PageHeaderActionsProps extends PageHeaderProps {
644
645
  * What you can do about the account. Give the buttons `className="flex-1"` for
645
646
  * the pair that splits the width evenly.
646
647
  */
647
- const PageHeaderActions = forwardRef<View, PageHeaderActionsProps>(
648
+ const PageHeaderActions = forwardRef<ViewRef, PageHeaderActionsProps>(
648
649
  ({ className, children, ...props }, ref) => {
649
650
  const { variant, align } = usePageHeader('PageHeader.Actions');
650
651
  return (
@@ -58,6 +58,7 @@ import {
58
58
  import { Text, type TextProps, textChildren } from '../../primitives/text';
59
59
  import { cn } from '../../utils/cn';
60
60
  import { selectionTick } from '../../utils/haptics';
61
+ import type { TextRef, ViewRef } from '../../primitives/refs';
61
62
 
62
63
  export type PaginationVariant = 'numbers' | 'compact' | 'simple';
63
64
  export type PaginationSize = 'sm' | 'default';
@@ -238,7 +239,7 @@ export interface PaginationProps
238
239
  children?: ReactNode;
239
240
  }
240
241
 
241
- const PaginationRoot = forwardRef<View, PaginationProps>(
242
+ const PaginationRoot = forwardRef<ViewRef, PaginationProps>(
242
243
  (
243
244
  {
244
245
  className,
@@ -366,7 +367,7 @@ export interface PaginationItemProps
366
367
  * One numbered target. Announced as a selected button when it is the page you
367
368
  * are on, so the current page is spoken as state rather than only painted.
368
369
  */
369
- const PaginationItem = forwardRef<View, PaginationItemProps>(
370
+ const PaginationItem = forwardRef<ViewRef, PaginationItemProps>(
370
371
  ({ className, labelClassName, page, children, onPress, ...props }, ref) => {
371
372
  const { page: current, size, disabled, goTo } = usePagination('Pagination.Item');
372
373
  const isCurrent = page === current;
@@ -497,7 +498,7 @@ export interface PaginationEllipsisProps
497
498
  * the end the gap is on — which is why the two ellipses are told apart: a jump
498
499
  * that always went forwards would strand anyone reading the row right to left.
499
500
  */
500
- const PaginationEllipsis = forwardRef<View, PaginationEllipsisProps>(
501
+ const PaginationEllipsis = forwardRef<ViewRef, PaginationEllipsisProps>(
501
502
  ({ className, direction = 1, jump = 5, disabled: disabledProp, onPress, ...props }, ref) => {
502
503
  const { page, size, disabled, goTo } = usePagination('Pagination.Ellipsis');
503
504
  const color = useCSSVariable('--color-muted-foreground');
@@ -542,7 +543,7 @@ export interface PaginationSummaryProps extends TextProps {
542
543
  * for the sentence and the sentence would need translating. `Pagination.Status`
543
544
  * is the place for words.
544
545
  */
545
- const PaginationSummary = forwardRef<React.ElementRef<typeof Text>, PaginationSummaryProps>(
546
+ const PaginationSummary = forwardRef<TextRef, PaginationSummaryProps>(
546
547
  ({ className, ...props }, ref) => {
547
548
  const { page, count, size } = usePagination('Pagination.Summary');
548
549
  const { summary } = paginationVariants({ size });
@@ -579,7 +580,7 @@ export interface PaginationStatusProps extends TextProps {
579
580
  * question people actually have, which is how much is left. Given `children`
580
581
  * it renders those instead, for a set whose size is not known yet.
581
582
  */
582
- const PaginationStatus = forwardRef<React.ElementRef<typeof Text>, PaginationStatusProps>(
583
+ const PaginationStatus = forwardRef<TextRef, PaginationStatusProps>(
583
584
  ({ className, page: ownPage, pageSize, total, children, ...props }, ref) => {
584
585
  const context = useContext(PaginationContext);
585
586
  const size = context?.size ?? 'default';
@@ -132,6 +132,7 @@ import { useBackHandler } from '../../hooks/use-back-handler';
132
132
  import { useDirectionSign } from '../../hooks/use-direction';
133
133
  import { cn } from '../../utils/cn';
134
134
  import { selectionTick } from '../../utils/haptics';
135
+ import { webDeps } from '../../primitives/web-deps';
135
136
 
136
137
  const SPRING = { damping: 24, stiffness: 300, mass: 0.7 } as const;
137
138
 
@@ -630,7 +631,7 @@ function PanelsideRoot({
630
631
  const extent = Math.max(1, mode === 'push' ? width + GAP : width);
631
632
 
632
633
  const translation = useSharedValue(open ? extent : 0);
633
- const progress = useDerivedValue(() => translation.value / extent, [extent]);
634
+ const progress = useDerivedValue(() => translation.value / extent, webDeps([extent]));
634
635
 
635
636
  /*
636
637
  * Which end state a spring is already heading for, so the effect below does
@@ -827,7 +828,7 @@ function PanelsidePanel({ className, children, style, ...props }: PanelsidePanel
827
828
  const p = docked ? 1 : progress.value;
828
829
  const distance = mode === 'overlay' ? width : width * PARALLAX;
829
830
  return { transform: [{ translateX: -(1 - p) * distance }] };
830
- }, [docked, mode, width]);
831
+ }, webDeps([docked, mode, width]));
831
832
 
832
833
  /*
833
834
  * Out of the accessibility tree until it is nearly all the way in. A panel
@@ -840,7 +841,7 @@ function PanelsidePanel({ className, children, style, ...props }: PanelsidePanel
840
841
  return Platform.OS === 'android'
841
842
  ? { importantForAccessibility: hidden ? 'no-hide-descendants' : 'auto' }
842
843
  : { accessibilityElementsHidden: hidden };
843
- }, [docked]);
844
+ }, webDeps([docked]));
844
845
 
845
846
  const surface = useMemo<PanelsideSurfaceValue>(
846
847
  () => ({ footerHeight, setFooterHeight }),
@@ -1794,12 +1795,12 @@ function PanelsideScene({
1794
1795
  ],
1795
1796
  borderRadius: p * radius,
1796
1797
  };
1797
- }, [pushes, radius, scale, sceneWidth, sign, width]);
1798
+ }, webDeps([pushes, radius, scale, sceneWidth, sign, width]));
1798
1799
 
1799
1800
  const scrimStyle = useAnimatedStyle(() => {
1800
1801
  const p = docked ? 0 : progress.value;
1801
1802
  return { opacity: p * dim };
1802
- }, [dim, docked]);
1803
+ }, webDeps([dim, docked]));
1803
1804
 
1804
1805
  /*
1805
1806
  * The edge is drawn as its own layer rather than as a border on the scene.
@@ -1811,14 +1812,14 @@ function PanelsideScene({
1811
1812
  const ringStyle = useAnimatedStyle(() => {
1812
1813
  const p = docked ? 0 : progress.value;
1813
1814
  return { opacity: p * EDGE_OPACITY, borderRadius: p * radius };
1814
- }, [docked, radius]);
1815
+ }, webDeps([docked, radius]));
1815
1816
 
1816
1817
  const animatedProps = useAnimatedProps<ViewProps>(() => {
1817
1818
  const hidden = !docked && progress.value > 1 - HIDDEN_EPSILON;
1818
1819
  return Platform.OS === 'android'
1819
1820
  ? { importantForAccessibility: hidden ? 'no-hide-descendants' : 'auto' }
1820
1821
  : { accessibilityElementsHidden: hidden };
1821
- }, [docked]);
1822
+ }, webDeps([docked]));
1822
1823
 
1823
1824
  return (
1824
1825
  <Animated.View