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
@@ -76,7 +76,6 @@ import {
76
76
  Platform,
77
77
  Pressable,
78
78
  View,
79
- type ViewToken,
80
79
  type ViewProps,
81
80
  } from 'react-native';
82
81
  import { tv } from 'tailwind-variants';
@@ -119,6 +118,7 @@ import {
119
118
  usePlannerSelectionLifecycle,
120
119
  } from './planner-lifecycle';
121
120
  import { millisecondsUntilNextLocalDay } from './planner-today';
121
+ import type { ViewRef, ViewTokenOf } from '../../primitives/refs';
122
122
 
123
123
  /**
124
124
  * How many of a day's entries a cell draws before it stops and counts.
@@ -474,7 +474,7 @@ export interface PlannerProps extends Omit<ViewProps, 'children'> {
474
474
  children?: ReactNode;
475
475
  }
476
476
 
477
- const PlannerRoot = forwardRef<View, PlannerProps>(
477
+ const PlannerRoot = forwardRef<ViewRef, PlannerProps>(
478
478
  (
479
479
  {
480
480
  className,
@@ -835,7 +835,7 @@ interface PlannerGridKeyDownEvent {
835
835
  interface PlannerGridNavigationContextValue {
836
836
  activeIndex: number;
837
837
  indexByDay: ReadonlyMap<number, number>;
838
- register: (index: number, node: View | null) => void;
838
+ register: (index: number, node: ViewRef | null) => void;
839
839
  focus: (index: number, event: PlannerGridKeyDownEvent) => void;
840
840
  makeActive: (index: number) => void;
841
841
  }
@@ -893,8 +893,8 @@ function PlannerGrid({ className, renderDay }: PlannerGridProps) {
893
893
  indexByDay.get(today.getTime()) ??
894
894
  dates.findIndex(isInMonth);
895
895
  const activeIndex = storedIndex ?? Math.max(0, preferredIndex);
896
- const refs = useRef(new Map<number, View>());
897
- const register = useCallback((index: number, node: View | null) => {
896
+ const refs = useRef(new Map<number, ViewRef>());
897
+ const register = useCallback((index: number, node: ViewRef | null) => {
898
898
  if (node) refs.current.set(index, node);
899
899
  else refs.current.delete(index);
900
900
  }, []);
@@ -1011,7 +1011,7 @@ function PlannerDay({ date, renderDay }: PlannerDayProps) {
1011
1011
  };
1012
1012
  const gridIndex = navigation?.indexByDay.get(date.getTime());
1013
1013
  const setRef = useCallback(
1014
- (node: View | null) => {
1014
+ (node: ViewRef | null) => {
1015
1015
  if (gridIndex !== undefined) registerGridCell?.(gridIndex, node);
1016
1016
  },
1017
1017
  [gridIndex, registerGridCell]
@@ -1418,7 +1418,7 @@ function PlannerScroller({
1418
1418
  * month change from reporting that same month straight back.
1419
1419
  */
1420
1420
  const reported = useRef(month.getTime());
1421
- const onViewable = useRef(({ viewableItems }: { viewableItems: ViewToken[] }) => {
1421
+ const onViewable = useRef(({ viewableItems }: { viewableItems: ViewTokenOf<unknown>[] }) => {
1422
1422
  const first = viewableItems[0]?.item as Date | undefined;
1423
1423
  if (!first) return;
1424
1424
  const next = startOfCalendarMonth(weekAnchor(first), system, locale);
@@ -1453,10 +1453,29 @@ PlotYAxis.layer = 'overlay' as Layer;
1453
1453
  // plot out.
1454
1454
  PlotYAxis.axis = 'y' as const;
1455
1455
 
1456
+ /**
1457
+ * How long the cursor waits before claiming the touch, in milliseconds.
1458
+ *
1459
+ * Long enough that a tap reaches a button drawn over the chart and a swipe
1460
+ * scrolls the screen, short enough that a deliberate press does not feel
1461
+ * ignored.
1462
+ */
1463
+ const DEFAULT_HOLD = 180;
1464
+
1456
1465
  export interface PlotCursorProps {
1457
1466
  color?: string;
1458
1467
  /** Hide the vertical line and keep only the touch handling. */
1459
1468
  showLine?: boolean;
1469
+ /**
1470
+ * How long a press has to be held before the cursor takes the touch, in
1471
+ * milliseconds.
1472
+ *
1473
+ * Until then the touch belongs to whatever else wants it: a quick tap still
1474
+ * reaches a button floating over the chart, and a swipe still scrolls the
1475
+ * screen the chart sits in. Set `0` to read on contact, only for a chart with
1476
+ * nothing over it and no scroll view around it.
1477
+ */
1478
+ activateAfterLongPress?: number;
1460
1479
  }
1461
1480
 
1462
1481
  /**
@@ -1470,7 +1489,11 @@ export interface PlotCursorProps {
1470
1489
  * The hit area is the whole plot. A cursor you have to land on the line to
1471
1490
  * summon is a cursor nobody finds.
1472
1491
  */
1473
- function PlotCursor({ color, showLine = true }: PlotCursorProps) {
1492
+ function PlotCursor({
1493
+ color,
1494
+ showLine = true,
1495
+ activateAfterLongPress = DEFAULT_HOLD,
1496
+ }: PlotCursorProps) {
1474
1497
  const { data, plot, xScale, activeIndex, setActiveIndexJS, status } =
1475
1498
  useChart('Plot.Cursor');
1476
1499
  const token = useCSSVariable('--color-foreground');
@@ -1510,7 +1533,8 @@ function PlotCursor({ color, showLine = true }: PlotCursorProps) {
1510
1533
 
1511
1534
  return Gesture.Pan()
1512
1535
  .minDistance(0)
1513
- .onBegin((event) => {
1536
+ .activateAfterLongPress(activateAfterLongPress)
1537
+ .onStart((event) => {
1514
1538
  'worklet';
1515
1539
  resolve(event.x);
1516
1540
  })
@@ -1520,10 +1544,20 @@ function PlotCursor({ color, showLine = true }: PlotCursorProps) {
1520
1544
  })
1521
1545
  .onFinalize(() => {
1522
1546
  'worklet';
1547
+ // Fires whether or not the readout ever took the touch.
1548
+ if (activeIndex.value === -1) return;
1523
1549
  activeIndex.value = -1;
1524
1550
  runOnJS(setActiveIndexJS)(-1);
1525
1551
  });
1526
- }, [total, left, width, banded, activeIndex, setActiveIndexJS]);
1552
+ }, [
1553
+ total,
1554
+ left,
1555
+ width,
1556
+ banded,
1557
+ activeIndex,
1558
+ setActiveIndexJS,
1559
+ activateAfterLongPress,
1560
+ ]);
1527
1561
 
1528
1562
  const lineStyle = useAnimatedStyle(() => {
1529
1563
  const index = activeIndex.value;
@@ -67,6 +67,7 @@ import { NativeHost, getSwiftUI } from '../../native';
67
67
  import { BottomSheet } from '../bottom-sheet';
68
68
  import { Text, type TextProps, textChildren } from '../../primitives/text';
69
69
  import { cn } from '../../utils/cn';
70
+ import type { ViewRef } from '../../primitives/refs';
70
71
 
71
72
  /** Gap between the trigger and the panel. */
72
73
  const DEFAULT_OFFSET = 8;
@@ -355,7 +356,7 @@ export interface PopoverTriggerProps {
355
356
  */
356
357
  function PopoverTrigger({ children }: PopoverTriggerProps) {
357
358
  const { open, setOpen, setTrigger, native } = usePopover('Popover.Trigger');
358
- const ref = useRef<View>(null);
359
+ const ref = useRef<ViewRef>(null);
359
360
 
360
361
  const measureThenToggle = (...args: unknown[]) => {
361
362
  if (isValidElement(children)) children.props.onPress?.(...args);
@@ -84,6 +84,7 @@ import { Text, textChildren } from '../../primitives/text';
84
84
  import { cn } from '../../utils/cn';
85
85
  import { selectionTick } from '../../utils/haptics';
86
86
  import { Avatar } from '../avatar';
87
+ import type { ViewRef } from '../../primitives/refs';
87
88
 
88
89
  /** Long enough to see the value move, short enough to keep up with a fast tap. */
89
90
  const COUNT_DURATION = 160;
@@ -187,7 +188,7 @@ export interface PostProps
187
188
  children?: ReactNode;
188
189
  }
189
190
 
190
- const PostRoot = forwardRef<View, PostProps>(
191
+ const PostRoot = forwardRef<ViewRef, PostProps>(
191
192
  ({ className, variant = 'feed', size = 'default', onPress, children, ...props }, ref) => {
192
193
  const { root } = postVariants({ variant, size });
193
194
  const context = useMemo(() => ({ variant, size }), [variant, size]);
@@ -236,7 +237,7 @@ export interface PostHeaderProps extends ViewProps {
236
237
  * menu stays in the corner as a long display name wraps rather than riding down
237
238
  * with it.
238
239
  */
239
- const PostHeader = forwardRef<View, PostHeaderProps>(
240
+ const PostHeader = forwardRef<ViewRef, PostHeaderProps>(
240
241
  ({ className, children, ...props }, ref) => {
241
242
  const { variant, size } = usePost();
242
243
  const { header } = postVariants({ variant, size });
@@ -290,7 +291,7 @@ export interface PostAuthorProps extends Omit<ViewProps, 'children'> {
290
291
  * which is the difference between a timeline row and a card: a dense row cannot
291
292
  * afford a second line, and a card looks starved without one.
292
293
  */
293
- const PostAuthor = forwardRef<View, PostAuthorProps>(
294
+ const PostAuthor = forwardRef<ViewRef, PostAuthorProps>(
294
295
  (
295
296
  { className, name, handle, avatar, fallback, verified, timestamp, children, ...props },
296
297
  ref
@@ -396,7 +397,7 @@ export interface PostActionProps extends ViewProps {
396
397
  }
397
398
 
398
399
  /** The header's trailing slot — an overflow menu, a follow button, a badge. */
399
- const PostAction = forwardRef<View, PostActionProps>(
400
+ const PostAction = forwardRef<ViewRef, PostActionProps>(
400
401
  ({ className, children, ...props }, ref) => {
401
402
  const { variant, size } = usePost();
402
403
  const { action } = postVariants({ variant, size });
@@ -426,7 +427,7 @@ export interface PostCommunityProps extends Omit<ViewProps, 'children'> {
426
427
  * post's subject is the headline — the group is where it came from, not who
427
428
  * said it.
428
429
  */
429
- const PostCommunity = forwardRef<View, PostCommunityProps>(
430
+ const PostCommunity = forwardRef<ViewRef, PostCommunityProps>(
430
431
  ({ className, name, avatar, meta, children, ...props }, ref) => {
431
432
  const { variant, size } = usePost();
432
433
  const {
@@ -471,7 +472,7 @@ export interface PostTitleProps extends ViewProps {
471
472
  }
472
473
 
473
474
  /** The headline of a post whose subject is a headline rather than a person. */
474
- const PostTitle = forwardRef<View, PostTitleProps>(
475
+ const PostTitle = forwardRef<ViewRef, PostTitleProps>(
475
476
  ({ className, children, ...props }, ref) => {
476
477
  const { variant, size } = usePost();
477
478
  const { title } = postVariants({ variant, size });
@@ -506,7 +507,7 @@ export interface PostBodyProps extends Omit<ViewProps, 'children'> {
506
507
  * A non-string child is left entirely alone: it has already been laid out by
507
508
  * someone who knew more than we do.
508
509
  */
509
- const PostBody = forwardRef<View, PostBodyProps>(
510
+ const PostBody = forwardRef<ViewRef, PostBodyProps>(
510
511
  (
511
512
  { className, numberOfLines, onTagPress, onMentionPress, children, ...props },
512
513
  ref
@@ -621,7 +622,7 @@ const SCRIM_COLOURS: readonly [string, string, string] = [
621
622
  * whose heights are decided by whatever was uploaded scrolls like a broken
622
623
  * staircase. The image covers the box and is cropped by it.
623
624
  */
624
- const PostMedia = forwardRef<View, PostMediaProps>(
625
+ const PostMedia = forwardRef<ViewRef, PostMediaProps>(
625
626
  (
626
627
  {
627
628
  className,
@@ -714,7 +715,7 @@ export interface PostFooterProps extends ViewProps {
714
715
  }
715
716
 
716
717
  /** The row of counts and controls under the post. */
717
- const PostFooter = forwardRef<View, PostFooterProps>(
718
+ const PostFooter = forwardRef<ViewRef, PostFooterProps>(
718
719
  ({ className, children, ...props }, ref) => {
719
720
  const { variant, size } = usePost();
720
721
  const { footer } = postVariants({ variant, size });
@@ -759,7 +760,7 @@ export interface PostStatProps extends Omit<PressableProps, 'children' | 'style'
759
760
  * Repainting the digits in place is indistinguishable from a re-render, which
760
761
  * is the doubt this exists to remove.
761
762
  */
762
- const PostStat = forwardRef<View, PostStatProps>(
763
+ const PostStat = forwardRef<ViewRef, PostStatProps>(
763
764
  (
764
765
  {
765
766
  className,
@@ -961,7 +962,7 @@ export interface PostVotesProps extends Omit<ViewProps, 'children'> {
961
962
  * score is a thing people change their minds about, and a vote that cannot be
962
963
  * withdrawn is one they think twice before casting.
963
964
  */
964
- const PostVotes = forwardRef<View, PostVotesProps>(
965
+ const PostVotes = forwardRef<ViewRef, PostVotesProps>(
965
966
  (
966
967
  {
967
968
  className,
@@ -15,6 +15,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
15
15
  import { useDirectionSign } from '../../hooks/use-direction';
16
16
  import { Text } from '../../primitives/text';
17
17
  import { cn } from '../../utils/cn';
18
+ import type { ViewRef } from '../../primitives/refs';
18
19
 
19
20
  const SPRING = { damping: 20, stiffness: 180, mass: 0.6 } as const;
20
21
  /** Fraction of the track covered by the sliding bar in indeterminate mode. */
@@ -172,7 +173,7 @@ function formatValue(
172
173
  * than springing to it, and the indeterminate bar pulses in place rather than
173
174
  * crossing the track.
174
175
  */
175
- export const Progress = forwardRef<View, ProgressProps>(
176
+ export const Progress = forwardRef<ViewRef, ProgressProps>(
176
177
  (
177
178
  {
178
179
  className,
@@ -84,6 +84,7 @@ import {
84
84
  releaseDuration,
85
85
  resolveHoldDuration,
86
86
  } from './progress-button-hold';
87
+ import type { ViewRef } from '../../primitives/refs';
87
88
 
88
89
  /** How many steps the reduced-motion fill advances in. */
89
90
  const REDUCED_STEPS = 5;
@@ -324,7 +325,7 @@ export interface ProgressButtonProps
324
325
  children?: ReactNode;
325
326
  }
326
327
 
327
- const ProgressButtonRoot = forwardRef<View, ProgressButtonProps>(function ProgressButtonRoot(
328
+ const ProgressButtonRoot = forwardRef<ViewRef, ProgressButtonProps>(function ProgressButtonRoot(
328
329
  {
329
330
  className,
330
331
  variant = 'primary',
@@ -1060,12 +1060,31 @@ PyramidChartYAxis.layer = 'overlay' as Layer;
1060
1060
  // drawn over unreadable too.
1061
1061
  PyramidChartYAxis.axis = 'y' as const;
1062
1062
 
1063
+ /**
1064
+ * How long the readout waits before claiming the touch, in milliseconds.
1065
+ *
1066
+ * Long enough that a tap reaches a button drawn over the chart and a swipe
1067
+ * scrolls the screen, short enough that a deliberate press does not feel
1068
+ * ignored.
1069
+ */
1070
+ const DEFAULT_HOLD = 180;
1071
+
1063
1072
  export interface PyramidChartTooltipProps {
1064
1073
  /** Format one series' value. Defaults to a compact number. */
1065
1074
  formatValue?: (value: number, key: string) => string;
1066
1075
  /** Format the readout's heading from the row. Defaults to the value at xDataKey. */
1067
1076
  formatX?: (datum: PyramidChartDatum) => string;
1068
1077
  className?: string;
1078
+ /**
1079
+ * How long a press has to be held before the readout takes the touch, in
1080
+ * milliseconds.
1081
+ *
1082
+ * Until then the touch belongs to whatever else wants it: a quick tap still
1083
+ * reaches a button floating over the chart, and a swipe still scrolls the
1084
+ * screen the chart sits in. Set `0` to read on contact, only for a chart with
1085
+ * nothing over it and no scroll view around it.
1086
+ */
1087
+ activateAfterLongPress?: number;
1069
1088
  }
1070
1089
 
1071
1090
  /**
@@ -1082,6 +1101,7 @@ function PyramidChartTooltip({
1082
1101
  formatValue,
1083
1102
  formatX,
1084
1103
  className,
1104
+ activateAfterLongPress = DEFAULT_HOLD,
1085
1105
  }: PyramidChartTooltipProps) {
1086
1106
  const {
1087
1107
  data,
@@ -1125,7 +1145,8 @@ function PyramidChartTooltip({
1125
1145
 
1126
1146
  return Gesture.Pan()
1127
1147
  .minDistance(0)
1128
- .onBegin((event) => {
1148
+ .activateAfterLongPress(activateAfterLongPress)
1149
+ .onStart((event) => {
1129
1150
  'worklet';
1130
1151
  resolve(event.y);
1131
1152
  })
@@ -1135,10 +1156,12 @@ function PyramidChartTooltip({
1135
1156
  })
1136
1157
  .onFinalize(() => {
1137
1158
  'worklet';
1159
+ // Fires whether or not the readout ever took the touch.
1160
+ if (activeIndex.value === -1) return;
1138
1161
  activeIndex.value = -1;
1139
1162
  runOnJS(setActiveIndexJS)(-1);
1140
1163
  });
1141
- }, [total, top, height, activeIndex, setActiveIndexJS]);
1164
+ }, [total, top, height, activeIndex, setActiveIndexJS, activateAfterLongPress]);
1142
1165
 
1143
1166
  /*
1144
1167
  * The readout slides down to the row it is describing and sits centred over
@@ -78,6 +78,7 @@ import {
78
78
  type QRCodeEyeFrameShape,
79
79
  type QRCodeModuleShape,
80
80
  } from './qr-shapes';
81
+ import type { ViewRef } from '../../primitives/refs';
81
82
 
82
83
  export type { ErrorCorrectionLevel };
83
84
  export type { QRCodeModuleShape, QRCodeEyeFrameShape, QRCodeEyeBallShape };
@@ -212,7 +213,7 @@ export interface QRCodeProps extends Omit<ViewProps, 'children'>, QrCodeVariantP
212
213
  children?: ReactNode;
213
214
  }
214
215
 
215
- const QRCodeRoot = forwardRef<View, QRCodeProps>(
216
+ const QRCodeRoot = forwardRef<ViewRef, QRCodeProps>(
216
217
  (
217
218
  {
218
219
  className,
@@ -329,7 +330,7 @@ export interface QRCodeCanvasProps extends Omit<ViewProps, 'children'> {
329
330
  const PLATE = '#ffffff';
330
331
  const MODULE = '#111111';
331
332
 
332
- const QRCodeCanvas = forwardRef<View, QRCodeCanvasProps>(
333
+ const QRCodeCanvas = forwardRef<ViewRef, QRCodeCanvasProps>(
333
334
  (
334
335
  {
335
336
  className,
@@ -476,7 +477,7 @@ export interface QRCodeFrameProps extends ViewProps {
476
477
  * The tray the code sits in — the same widget shell the charts use: a titled
477
478
  * strip, and a card flush inside it holding the thing itself.
478
479
  */
479
- const QRCodeFrame = forwardRef<View, QRCodeFrameProps>(
480
+ const QRCodeFrame = forwardRef<ViewRef, QRCodeFrameProps>(
480
481
  ({ className, children, ...props }, ref) => {
481
482
  const { slots } = useQRCode('QRCode.Frame');
482
483
  return (
@@ -498,7 +499,7 @@ export interface QRCodeHeaderProps extends ViewProps {
498
499
  * side and `QRCode.Action` the end, so a long title truncates rather than
499
500
  * shoving the trailing slot off the edge.
500
501
  */
501
- const QRCodeHeader = forwardRef<View, QRCodeHeaderProps>(
502
+ const QRCodeHeader = forwardRef<ViewRef, QRCodeHeaderProps>(
502
503
  ({ className, children, ...props }, ref) => {
503
504
  const { slots } = useQRCode('QRCode.Header');
504
505
  return (
@@ -535,7 +536,7 @@ export interface QRCodeActionProps extends ViewProps {
535
536
  * The trailing slot on the header row — an expiry, a count, a button. A plain
536
537
  * string draws as muted text; anything else draws as itself.
537
538
  */
538
- const QRCodeAction = forwardRef<View, QRCodeActionProps>(
539
+ const QRCodeAction = forwardRef<ViewRef, QRCodeActionProps>(
539
540
  ({ className, children, ...props }, ref) => {
540
541
  useQRCode('QRCode.Action');
541
542
  return (
@@ -567,7 +568,7 @@ export interface QRCodePanelProps extends ViewProps {
567
568
  * logo positions itself against, so a `QRCode.Logo` belongs in here beside the
568
569
  * canvas rather than anywhere else.
569
570
  */
570
- const QRCodePanel = forwardRef<View, QRCodePanelProps>(
571
+ const QRCodePanel = forwardRef<ViewRef, QRCodePanelProps>(
571
572
  ({ className, children, ...props }, ref) => {
572
573
  const { slots } = useQRCode('QRCode.Panel');
573
574
  return (
@@ -683,7 +684,7 @@ function hasLogo(children: ReactNode): boolean {
683
684
  * Its presence is what clears the square, and what raises the error-correction
684
685
  * level if the one asked for could not afford it.
685
686
  */
686
- const QRCodeLogo = forwardRef<View, QRCodeLogoProps>(
687
+ const QRCodeLogo = forwardRef<ViewRef, QRCodeLogoProps>(
687
688
  ({ className, children, ...props }, ref) => {
688
689
  const { size, matrix } = useQRCode('QRCode.Logo');
689
690
  if (!matrix) return null;
@@ -127,6 +127,7 @@ import { cn } from '../../utils/cn';
127
127
  import { Button, type ButtonProps } from '../button';
128
128
  import { Frame } from '../frame';
129
129
  import { Input, type InputProps } from '../input';
130
+ import type { TextInputRef, ViewRef } from '../../primitives/refs';
130
131
 
131
132
  /** How long the body takes to settle into the next question's height. */
132
133
  const HEIGHT_DURATION = 240;
@@ -912,7 +913,7 @@ function QuestionnaireBody({
912
913
  // height outright instead of growing into it from nothing.
913
914
  const height = useSharedValue(-1);
914
915
  const drag = useSharedValue(0);
915
- const paneRef = useRef<View>(null);
916
+ const paneRef = useRef<ViewRef>(null);
916
917
 
917
918
  /*
918
919
  * Until the first question has been measured the pane stays in the flow, so
@@ -1520,7 +1521,7 @@ export interface QuestionnaireChoiceProps {
1520
1521
  * One fixed answer — the whole row is the target, with the indicator reading
1521
1522
  * as confirmation rather than as the thing to aim at.
1522
1523
  */
1523
- const QuestionnaireChoice = forwardRef<View, QuestionnaireChoiceProps>(
1524
+ const QuestionnaireChoice = forwardRef<ViewRef, QuestionnaireChoiceProps>(
1524
1525
  ({ className, value, label, description, disabled, children }, ref) => {
1525
1526
  const { answers, toggleAnswer } = useQuestionnaire('Questionnaire.Choice');
1526
1527
  const item = useQuestionnaireItem('Questionnaire.Choice');
@@ -1609,7 +1610,7 @@ export interface QuestionnaireInputProps
1609
1610
  * empties it and typing clears the choice — one answer to one question, with
1610
1611
  * neither part having to know about the other.
1611
1612
  */
1612
- const QuestionnaireInput = forwardRef<TextInput, QuestionnaireInputProps>(
1613
+ const QuestionnaireInput = forwardRef<TextInputRef, QuestionnaireInputProps>(
1613
1614
  ({ className, ...props }, ref) => {
1614
1615
  const { answers, setAnswer } = useQuestionnaire('Questionnaire.Input');
1615
1616
  const item = useQuestionnaireItem('Questionnaire.Input');
@@ -37,6 +37,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
37
37
  import { cn } from '../../utils/cn';
38
38
  import { Text, textChildren } from '../../primitives/text';
39
39
  import { requestRadioValueChange } from './radio-group-value';
40
+ import type { ViewRef } from '../../primitives/refs';
40
41
 
41
42
  type RadioVariant = 'dot' | 'card';
42
43
  type RadioOrientation = 'vertical' | 'horizontal';
@@ -168,7 +169,7 @@ export interface RadioGroupProps extends ViewProps {
168
169
  children: ReactNode;
169
170
  }
170
171
 
171
- const RadioGroupRoot = forwardRef<View, RadioGroupProps>(
172
+ const RadioGroupRoot = forwardRef<ViewRef, RadioGroupProps>(
172
173
  (
173
174
  {
174
175
  className,
@@ -233,7 +234,7 @@ export interface RadioGroupItemProps {
233
234
  children?: ReactNode;
234
235
  }
235
236
 
236
- const RadioGroupItem = forwardRef<View, RadioGroupItemProps>(
237
+ const RadioGroupItem = forwardRef<ViewRef, RadioGroupItemProps>(
237
238
  (
238
239
  {
239
240
  className,
@@ -48,6 +48,7 @@ import {
48
48
  normalizeRatingPrecision,
49
49
  normalizeRatingValue,
50
50
  } from './rating-inputs';
51
+ import type { ViewRef } from '../../primitives/refs';
51
52
 
52
53
  /** Springs the fill onto its resting value after a tap or the end of a drag. */
53
54
  const SPRING = { damping: 18, stiffness: 220, mass: 0.6 } as const;
@@ -194,7 +195,7 @@ function Star({
194
195
  );
195
196
  }
196
197
 
197
- export const Rating = forwardRef<View, RatingProps>(
198
+ export const Rating = forwardRef<ViewRef, RatingProps>(
198
199
  (
199
200
  {
200
201
  className,
@@ -1028,6 +1028,15 @@ ScatterChartYAxis.layer = 'overlay' as Layer;
1028
1028
  // plot out.
1029
1029
  ScatterChartYAxis.axis = 'y' as const;
1030
1030
 
1031
+ /**
1032
+ * How long the readout waits before claiming the touch, in milliseconds.
1033
+ *
1034
+ * Long enough that a tap reaches a button drawn over the chart and a swipe
1035
+ * scrolls the screen, short enough that a deliberate press does not feel
1036
+ * ignored.
1037
+ */
1038
+ const DEFAULT_HOLD = 180;
1039
+
1031
1040
  export interface ScatterChartTooltipProps {
1032
1041
  /** Float a small readout beside the selected point. On by default. */
1033
1042
  showLabel?: boolean;
@@ -1039,6 +1048,16 @@ export interface ScatterChartTooltipProps {
1039
1048
  formatTitle?: (datum: ScatterChartDatum) => string;
1040
1049
  /** How far from a point a touch still counts as being on it, in points. */
1041
1050
  hitRadius?: number;
1051
+ /**
1052
+ * How long a press has to be held before the readout takes the touch, in
1053
+ * milliseconds.
1054
+ *
1055
+ * Until then the touch belongs to whatever else wants it: a quick tap still
1056
+ * reaches a button floating over the chart, and a swipe still scrolls the
1057
+ * screen the chart sits in. Set `0` to read on contact, only for a chart with
1058
+ * nothing over it and no scroll view around it.
1059
+ */
1060
+ activateAfterLongPress?: number;
1042
1061
  }
1043
1062
 
1044
1063
  /**
@@ -1064,6 +1083,7 @@ function ScatterChartTooltip({
1064
1083
  formatY,
1065
1084
  formatTitle,
1066
1085
  hitRadius = HIT_RADIUS,
1086
+ activateAfterLongPress = DEFAULT_HOLD,
1067
1087
  }: ScatterChartTooltipProps) {
1068
1088
  const {
1069
1089
  data,
@@ -1190,7 +1210,8 @@ function ScatterChartTooltip({
1190
1210
 
1191
1211
  return Gesture.Pan()
1192
1212
  .minDistance(0)
1193
- .onBegin((event) => {
1213
+ .activateAfterLongPress(activateAfterLongPress)
1214
+ .onStart((event) => {
1194
1215
  'worklet';
1195
1216
  resolve(event.x, event.y);
1196
1217
  })
@@ -1202,7 +1223,7 @@ function ScatterChartTooltip({
1202
1223
  'worklet';
1203
1224
  clear();
1204
1225
  });
1205
- }, [hit, hitRadius, activeId, select]);
1226
+ }, [hit, hitRadius, activeId, select, activateAfterLongPress]);
1206
1227
 
1207
1228
  // The readout sits above the point and is clamped inside the plot, so it
1208
1229
  // never runs off an edge at an extreme value.
@@ -136,6 +136,8 @@ import {
136
136
  isCrossing,
137
137
  snapTarget,
138
138
  } from './scroll-header-math';
139
+ import type { TextRef, ViewRef } from '../../primitives/refs';
140
+ import { webDeps } from '../../primitives/web-deps';
139
141
 
140
142
  /**
141
143
  * Height of the pinned bar, in points, before the device's top inset is added.
@@ -302,7 +304,7 @@ export interface ScrollHeaderProps extends ViewProps {
302
304
  * The band, and the scroller it sits over. Everything that is not a part is
303
305
  * treated as the scrollable child.
304
306
  */
305
- const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
307
+ const ScrollHeaderRoot = forwardRef<ViewRef, ScrollHeaderProps>(
306
308
  (
307
309
  {
308
310
  className,
@@ -351,7 +353,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
351
353
  : withTiming(next, { duration: HANDOVER_DURATION });
352
354
  if (externalProgress) externalProgress.value = value;
353
355
  return value;
354
- }, [threshold, externalProgress]);
356
+ }, webDeps([threshold, externalProgress]));
355
357
 
356
358
  // The one thing the transition tells React about. `collapsed` gates the
357
359
  // accessibility of the two titles and is what `onCollapsedChange` reports;
@@ -370,7 +372,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
370
372
  if (!isCrossing(isCollapsed, was)) return;
371
373
  runOnJS(cross)(isCollapsed);
372
374
  },
373
- [cross]
375
+ webDeps([cross])
374
376
  );
375
377
 
376
378
  const settle = useCallback(
@@ -460,7 +462,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
460
462
  settle(0);
461
463
  },
462
464
  },
463
- [settle, forwards, forwardScroll]
465
+ webDeps([settle, forwards, forwardScroll])
464
466
  );
465
467
 
466
468
  const onScroll = useComposedEventHandler([
@@ -488,7 +490,7 @@ const ScrollHeaderRoot = forwardRef<View, ScrollHeaderProps>(
488
490
  () => ({
489
491
  height: bandHeight(barBand, largeHeight.value, offset.value, stretch && !reducedMotion),
490
492
  }),
491
- [barBand, stretch, reducedMotion]
493
+ webDeps([barBand, stretch, reducedMotion])
492
494
  );
493
495
 
494
496
  const metrics = useMemo<BandMetrics>(
@@ -594,7 +596,7 @@ export interface ScrollHeaderBarProps extends ViewProps {
594
596
  * block leaves, which is what makes the change read as one crossfade rather
595
597
  * than two things happening at once.
596
598
  */
597
- const ScrollHeaderBar = forwardRef<View, ScrollHeaderBarProps>(
599
+ const ScrollHeaderBar = forwardRef<ViewRef, ScrollHeaderBarProps>(
598
600
  (
599
601
  {
600
602
  className,
@@ -672,7 +674,7 @@ export interface ScrollHeaderLargeProps extends ViewProps {
672
674
  * collapses over, so whatever is put in it — a title, a search field, a row of
673
675
  * chips — sets the scroll distance rather than a prop having to agree with it.
674
676
  */
675
- const ScrollHeaderLarge = forwardRef<View, ScrollHeaderLargeProps>(
677
+ const ScrollHeaderLarge = forwardRef<ViewRef, ScrollHeaderLargeProps>(
676
678
  ({ className, onLayout, children, ...props }, ref) => {
677
679
  const { progress, measureLarge, collapsed } = useScrollHeader('ScrollHeader.Large');
678
680
  const { large } = scrollHeaderVariants();
@@ -717,7 +719,7 @@ ScrollHeaderLarge.displayName = 'ScrollHeader.Large';
717
719
  * The screen's title. Written in both halves and styled from whichever it is
718
720
  * in: large and at rest in the block, compact and fading in on the bar.
719
721
  */
720
- const ScrollHeaderTitle = forwardRef<RNText, TextProps>(({ className, ...props }, ref) => {
722
+ const ScrollHeaderTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
721
723
  const { progress, largeHeight, collapsed, hasLarge } = useScrollHeader('ScrollHeader.Title');
722
724
  const slot = useContext(ScrollHeaderSlotContext);
723
725
 
@@ -769,7 +771,7 @@ const ScrollHeaderTitle = forwardRef<RNText, TextProps>(({ className, ...props }
769
771
  ScrollHeaderTitle.displayName = 'ScrollHeader.Title';
770
772
 
771
773
  /** The quiet line under the title — a count, a byline, a date. */
772
- const ScrollHeaderDescription = forwardRef<RNText, TextProps>(({ className, ...props }, ref) => (
774
+ const ScrollHeaderDescription = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => (
773
775
  <Text {...props} ref={ref} size="sm" muted className={className} />
774
776
  ));
775
777
  ScrollHeaderDescription.displayName = 'ScrollHeader.Description';
@@ -783,7 +785,7 @@ export interface ScrollHeaderActionsProps extends ViewProps {
783
785
  * The controls at the trailing end of the bar. They stay put and stay
784
786
  * reachable — only the bar's surface and title are part of the transition.
785
787
  */
786
- const ScrollHeaderActions = forwardRef<View, ScrollHeaderActionsProps>(
788
+ const ScrollHeaderActions = forwardRef<ViewRef, ScrollHeaderActionsProps>(
787
789
  ({ className, children, ...props }, ref) => {
788
790
  const { actions } = scrollHeaderVariants();
789
791
  return (
@@ -815,7 +817,7 @@ export interface ScrollHeaderCoverProps extends ViewProps {
815
817
  * band's height is its height, which is why it stretches on an over-scroll by
816
818
  * being laid out larger rather than by being scaled up and going soft.
817
819
  */
818
- const ScrollHeaderCover = forwardRef<View, ScrollHeaderCoverProps>(
820
+ const ScrollHeaderCover = forwardRef<ViewRef, ScrollHeaderCoverProps>(
819
821
  (
820
822
  {
821
823
  className,