panelui-native 0.115.0 → 1.0.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 (443) hide show
  1. package/lib/module/components/accordion/index.js.map +1 -1
  2. package/lib/module/components/ai-input/index.js.map +1 -1
  3. package/lib/module/components/alert/index.js.map +1 -1
  4. package/lib/module/components/animated-badge/index.js +1 -2
  5. package/lib/module/components/animated-badge/index.js.map +1 -1
  6. package/lib/module/components/attachment/index.js.map +1 -1
  7. package/lib/module/components/avatar/index.js.map +1 -1
  8. package/lib/module/components/avatar-cropper/index.js.map +1 -1
  9. package/lib/module/components/badge/index.js.map +1 -1
  10. package/lib/module/components/breadcrumb/index.js.map +1 -1
  11. package/lib/module/components/button/index.js.map +1 -1
  12. package/lib/module/components/button-group/index.js.map +1 -1
  13. package/lib/module/components/calendar/index.js.map +1 -1
  14. package/lib/module/components/card/index.js.map +1 -1
  15. package/lib/module/components/checkbox/index.js +9 -3
  16. package/lib/module/components/checkbox/index.js.map +1 -1
  17. package/lib/module/components/chip/index.js.map +1 -1
  18. package/lib/module/components/collapsible/index.js.map +1 -1
  19. package/lib/module/components/color-picker/index.js +13 -5
  20. package/lib/module/components/color-picker/index.js.map +1 -1
  21. package/lib/module/components/combobox/index.js +1 -2
  22. package/lib/module/components/combobox/index.js.map +1 -1
  23. package/lib/module/components/context-menu/index.js +1 -2
  24. package/lib/module/components/context-menu/index.js.map +1 -1
  25. package/lib/module/components/countdown/index.js.map +1 -1
  26. package/lib/module/components/dialog/index.js.map +1 -1
  27. package/lib/module/components/empty-state/index.js.map +1 -1
  28. package/lib/module/components/fab/index.js +2 -1
  29. package/lib/module/components/fab/index.js.map +1 -1
  30. package/lib/module/components/feedback/index.js +1 -2
  31. package/lib/module/components/feedback/index.js.map +1 -1
  32. package/lib/module/components/field/index.js.map +1 -1
  33. package/lib/module/components/file-upload/index.js.map +1 -1
  34. package/lib/module/components/flip-card/index.js +1 -2
  35. package/lib/module/components/flip-card/index.js.map +1 -1
  36. package/lib/module/components/frame/index.js +1 -2
  37. package/lib/module/components/frame/index.js.map +1 -1
  38. package/lib/module/components/grid-item/index.js.map +1 -1
  39. package/lib/module/components/heatmap-chart/index.js +1 -2
  40. package/lib/module/components/heatmap-chart/index.js.map +1 -1
  41. package/lib/module/components/image-viewer/index.js +1 -2
  42. package/lib/module/components/image-viewer/index.js.map +1 -1
  43. package/lib/module/components/input/index.js +1 -2
  44. package/lib/module/components/input/index.js.map +1 -1
  45. package/lib/module/components/input-group/index.js.map +1 -1
  46. package/lib/module/components/item/index.js.map +1 -1
  47. package/lib/module/components/kpi/index.js +1 -2
  48. package/lib/module/components/kpi/index.js.map +1 -1
  49. package/lib/module/components/label/index.js.map +1 -1
  50. package/lib/module/components/leaderboard/index.js.map +1 -1
  51. package/lib/module/components/live-line-chart/index.js +1 -1
  52. package/lib/module/components/live-line-chart/index.js.map +1 -1
  53. package/lib/module/components/map/native-style.js +38 -7
  54. package/lib/module/components/map/native-style.js.map +1 -1
  55. package/lib/module/components/markdown-editor/index.js.map +1 -1
  56. package/lib/module/components/marker/index.js.map +1 -1
  57. package/lib/module/components/marquee/index.js +2 -1
  58. package/lib/module/components/marquee/index.js.map +1 -1
  59. package/lib/module/components/message/index.js.map +1 -1
  60. package/lib/module/components/message-scroller/index.js +2 -3
  61. package/lib/module/components/message-scroller/index.js.map +1 -1
  62. package/lib/module/components/meter/index.js.map +1 -1
  63. package/lib/module/components/number-input/index.js +1 -2
  64. package/lib/module/components/number-input/index.js.map +1 -1
  65. package/lib/module/components/otp-input/index.js +1 -2
  66. package/lib/module/components/otp-input/index.js.map +1 -1
  67. package/lib/module/components/page-header/index.js +1 -2
  68. package/lib/module/components/page-header/index.js.map +1 -1
  69. package/lib/module/components/pagination/index.js.map +1 -1
  70. package/lib/module/components/panelside/index.js +8 -7
  71. package/lib/module/components/panelside/index.js.map +1 -1
  72. package/lib/module/components/planner/index.js +1 -2
  73. package/lib/module/components/planner/index.js.map +1 -1
  74. package/lib/module/components/popover/index.js +1 -2
  75. package/lib/module/components/popover/index.js.map +1 -1
  76. package/lib/module/components/post/index.js +1 -2
  77. package/lib/module/components/post/index.js.map +1 -1
  78. package/lib/module/components/progress/index.js.map +1 -1
  79. package/lib/module/components/progress-button/index.js +1 -2
  80. package/lib/module/components/progress-button/index.js.map +1 -1
  81. package/lib/module/components/qr-code/index.js.map +1 -1
  82. package/lib/module/components/questionnaire/index.js +1 -2
  83. package/lib/module/components/questionnaire/index.js.map +1 -1
  84. package/lib/module/components/radio-group/index.js.map +1 -1
  85. package/lib/module/components/rating/index.js +1 -2
  86. package/lib/module/components/rating/index.js.map +1 -1
  87. package/lib/module/components/scroll-header/index.js +5 -4
  88. package/lib/module/components/scroll-header/index.js.map +1 -1
  89. package/lib/module/components/search-bar/index.js +1 -2
  90. package/lib/module/components/search-bar/index.js.map +1 -1
  91. package/lib/module/components/section-progress/index.js +3 -2
  92. package/lib/module/components/section-progress/index.js.map +1 -1
  93. package/lib/module/components/select/index.js.map +1 -1
  94. package/lib/module/components/separator/index.js.map +1 -1
  95. package/lib/module/components/shimmer/index.js +8 -1
  96. package/lib/module/components/shimmer/index.js.map +1 -1
  97. package/lib/module/components/signature/index.js.map +1 -1
  98. package/lib/module/components/sketch/index.js.map +1 -1
  99. package/lib/module/components/slide-button/index.js +1 -2
  100. package/lib/module/components/slide-button/index.js.map +1 -1
  101. package/lib/module/components/slider/index.js +1 -2
  102. package/lib/module/components/slider/index.js.map +1 -1
  103. package/lib/module/components/sortable/index.js +6 -7
  104. package/lib/module/components/sortable/index.js.map +1 -1
  105. package/lib/module/components/splitter/index.js +3 -2
  106. package/lib/module/components/splitter/index.js.map +1 -1
  107. package/lib/module/components/stack-card/index.js +3 -2
  108. package/lib/module/components/stack-card/index.js.map +1 -1
  109. package/lib/module/components/steps/index.js.map +1 -1
  110. package/lib/module/components/support/index.js.map +1 -1
  111. package/lib/module/components/surface/index.js.map +1 -1
  112. package/lib/module/components/swipe/index.js.map +1 -1
  113. package/lib/module/components/switch/index.js.map +1 -1
  114. package/lib/module/components/table/index.js +1 -2
  115. package/lib/module/components/table/index.js.map +1 -1
  116. package/lib/module/components/tabs/index.js +2 -1
  117. package/lib/module/components/tabs/index.js.map +1 -1
  118. package/lib/module/components/tag-input/index.js +1 -2
  119. package/lib/module/components/tag-input/index.js.map +1 -1
  120. package/lib/module/components/text-animation/index.js +2 -1
  121. package/lib/module/components/text-animation/index.js.map +1 -1
  122. package/lib/module/components/textarea/index.js +1 -2
  123. package/lib/module/components/textarea/index.js.map +1 -1
  124. package/lib/module/components/time-picker/index.js.map +1 -1
  125. package/lib/module/components/timeline/index.js.map +1 -1
  126. package/lib/module/components/toast/index.js +1 -0
  127. package/lib/module/components/toast/index.js.map +1 -1
  128. package/lib/module/components/toggle-button/index.js.map +1 -1
  129. package/lib/module/components/tooltip/index.js +1 -2
  130. package/lib/module/components/tooltip/index.js.map +1 -1
  131. package/lib/module/components/tour/index.js.map +1 -1
  132. package/lib/module/components/tree/index.js +2 -1
  133. package/lib/module/components/tree/index.js.map +1 -1
  134. package/lib/module/components/typography/index.js.map +1 -1
  135. package/lib/module/hooks/use-keyboard-avoidance.js +7 -1
  136. package/lib/module/hooks/use-keyboard-avoidance.js.map +1 -1
  137. package/lib/module/hooks/use-reveal-progress.js.map +1 -1
  138. package/lib/module/hooks/use-scroll-sections.js.map +1 -1
  139. package/lib/module/icons/index.js +22 -1
  140. package/lib/module/icons/index.js.map +1 -1
  141. package/lib/module/index.js +4 -0
  142. package/lib/module/index.js.map +1 -1
  143. package/lib/module/primitives/animated-pressable.js.map +1 -1
  144. package/lib/module/primitives/chart-accessibility.js +9 -1
  145. package/lib/module/primitives/chart-accessibility.js.map +1 -1
  146. package/lib/module/primitives/glass.js.map +1 -1
  147. package/lib/module/primitives/refs.js +4 -0
  148. package/lib/module/primitives/refs.js.map +1 -0
  149. package/lib/module/primitives/scroll-progress.js.map +1 -1
  150. package/lib/module/primitives/text.js.map +1 -1
  151. package/lib/module/primitives/web-deps.js +17 -0
  152. package/lib/module/primitives/web-deps.js.map +1 -0
  153. package/lib/module/uniwind-env.d.ts +1 -0
  154. package/lib/typescript/src/components/accordion/index.d.ts +8 -7
  155. package/lib/typescript/src/components/accordion/index.d.ts.map +1 -1
  156. package/lib/typescript/src/components/ai-input/index.d.ts.map +1 -1
  157. package/lib/typescript/src/components/alert/index.d.ts +9 -8
  158. package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
  159. package/lib/typescript/src/components/animated-badge/index.d.ts +5 -4
  160. package/lib/typescript/src/components/animated-badge/index.d.ts.map +1 -1
  161. package/lib/typescript/src/components/attachment/index.d.ts +10 -9
  162. package/lib/typescript/src/components/attachment/index.d.ts.map +1 -1
  163. package/lib/typescript/src/components/avatar/index.d.ts +7 -6
  164. package/lib/typescript/src/components/avatar/index.d.ts.map +1 -1
  165. package/lib/typescript/src/components/avatar-cropper/index.d.ts.map +1 -1
  166. package/lib/typescript/src/components/badge/index.d.ts +5 -4
  167. package/lib/typescript/src/components/badge/index.d.ts.map +1 -1
  168. package/lib/typescript/src/components/bottom-sheet/index.d.ts +1 -1
  169. package/lib/typescript/src/components/breadcrumb/index.d.ts +9 -8
  170. package/lib/typescript/src/components/breadcrumb/index.d.ts.map +1 -1
  171. package/lib/typescript/src/components/button/index.d.ts +4 -4
  172. package/lib/typescript/src/components/button/index.d.ts.map +1 -1
  173. package/lib/typescript/src/components/button-group/index.d.ts +5 -4
  174. package/lib/typescript/src/components/button-group/index.d.ts.map +1 -1
  175. package/lib/typescript/src/components/calendar/index.d.ts.map +1 -1
  176. package/lib/typescript/src/components/card/index.d.ts +16 -15
  177. package/lib/typescript/src/components/card/index.d.ts.map +1 -1
  178. package/lib/typescript/src/components/checkbox/index.d.ts +23 -7
  179. package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -1
  180. package/lib/typescript/src/components/chip/index.d.ts +4 -4
  181. package/lib/typescript/src/components/chip/index.d.ts.map +1 -1
  182. package/lib/typescript/src/components/collapsible/index.d.ts +7 -6
  183. package/lib/typescript/src/components/collapsible/index.d.ts.map +1 -1
  184. package/lib/typescript/src/components/color-picker/index.d.ts +13 -13
  185. package/lib/typescript/src/components/color-picker/index.d.ts.map +1 -1
  186. package/lib/typescript/src/components/combobox/index.d.ts.map +1 -1
  187. package/lib/typescript/src/components/context-menu/index.d.ts.map +1 -1
  188. package/lib/typescript/src/components/countdown/index.d.ts +5 -4
  189. package/lib/typescript/src/components/countdown/index.d.ts.map +1 -1
  190. package/lib/typescript/src/components/dialog/index.d.ts +11 -10
  191. package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
  192. package/lib/typescript/src/components/empty-state/index.d.ts +12 -11
  193. package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -1
  194. package/lib/typescript/src/components/fab/index.d.ts +7 -6
  195. package/lib/typescript/src/components/fab/index.d.ts.map +1 -1
  196. package/lib/typescript/src/components/feedback/index.d.ts +6 -5
  197. package/lib/typescript/src/components/feedback/index.d.ts.map +1 -1
  198. package/lib/typescript/src/components/field/index.d.ts +12 -11
  199. package/lib/typescript/src/components/field/index.d.ts.map +1 -1
  200. package/lib/typescript/src/components/file-upload/index.d.ts +5 -4
  201. package/lib/typescript/src/components/file-upload/index.d.ts.map +1 -1
  202. package/lib/typescript/src/components/flip-card/index.d.ts +5 -4
  203. package/lib/typescript/src/components/flip-card/index.d.ts.map +1 -1
  204. package/lib/typescript/src/components/frame/index.d.ts +14 -13
  205. package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
  206. package/lib/typescript/src/components/grid-item/index.d.ts +30 -29
  207. package/lib/typescript/src/components/grid-item/index.d.ts.map +1 -1
  208. package/lib/typescript/src/components/heatmap-chart/index.d.ts +3 -2
  209. package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
  210. package/lib/typescript/src/components/image-viewer/index.d.ts.map +1 -1
  211. package/lib/typescript/src/components/input/index.d.ts +5 -4
  212. package/lib/typescript/src/components/input/index.d.ts.map +1 -1
  213. package/lib/typescript/src/components/input-group/index.d.ts +6 -5
  214. package/lib/typescript/src/components/input-group/index.d.ts.map +1 -1
  215. package/lib/typescript/src/components/item/index.d.ts +34 -33
  216. package/lib/typescript/src/components/item/index.d.ts.map +1 -1
  217. package/lib/typescript/src/components/kpi/index.d.ts +6 -5
  218. package/lib/typescript/src/components/kpi/index.d.ts.map +1 -1
  219. package/lib/typescript/src/components/label/index.d.ts +4 -3
  220. package/lib/typescript/src/components/label/index.d.ts.map +1 -1
  221. package/lib/typescript/src/components/leaderboard/index.d.ts +3 -2
  222. package/lib/typescript/src/components/leaderboard/index.d.ts.map +1 -1
  223. package/lib/typescript/src/components/live-line-chart/index.d.ts.map +1 -1
  224. package/lib/typescript/src/components/map/native-style.d.ts.map +1 -1
  225. package/lib/typescript/src/components/markdown-editor/index.d.ts +6 -5
  226. package/lib/typescript/src/components/markdown-editor/index.d.ts.map +1 -1
  227. package/lib/typescript/src/components/marker/index.d.ts +7 -6
  228. package/lib/typescript/src/components/marker/index.d.ts.map +1 -1
  229. package/lib/typescript/src/components/marquee/index.d.ts.map +1 -1
  230. package/lib/typescript/src/components/message/index.d.ts +13 -12
  231. package/lib/typescript/src/components/message/index.d.ts.map +1 -1
  232. package/lib/typescript/src/components/message-scroller/index.d.ts.map +1 -1
  233. package/lib/typescript/src/components/meter/index.d.ts +5 -4
  234. package/lib/typescript/src/components/meter/index.d.ts.map +1 -1
  235. package/lib/typescript/src/components/number-input/index.d.ts +5 -4
  236. package/lib/typescript/src/components/number-input/index.d.ts.map +1 -1
  237. package/lib/typescript/src/components/otp-input/index.d.ts +5 -4
  238. package/lib/typescript/src/components/otp-input/index.d.ts.map +1 -1
  239. package/lib/typescript/src/components/page-header/index.d.ts +15 -14
  240. package/lib/typescript/src/components/page-header/index.d.ts.map +1 -1
  241. package/lib/typescript/src/components/pagination/index.d.ts +9 -8
  242. package/lib/typescript/src/components/pagination/index.d.ts.map +1 -1
  243. package/lib/typescript/src/components/panelside/index.d.ts.map +1 -1
  244. package/lib/typescript/src/components/planner/index.d.ts +3 -2
  245. package/lib/typescript/src/components/planner/index.d.ts.map +1 -1
  246. package/lib/typescript/src/components/popover/index.d.ts.map +1 -1
  247. package/lib/typescript/src/components/post/index.d.ts +15 -14
  248. package/lib/typescript/src/components/post/index.d.ts.map +1 -1
  249. package/lib/typescript/src/components/progress/index.d.ts +5 -4
  250. package/lib/typescript/src/components/progress/index.d.ts.map +1 -1
  251. package/lib/typescript/src/components/progress-button/index.d.ts +5 -4
  252. package/lib/typescript/src/components/progress-button/index.d.ts.map +1 -1
  253. package/lib/typescript/src/components/qr-code/index.d.ts +11 -10
  254. package/lib/typescript/src/components/qr-code/index.d.ts.map +1 -1
  255. package/lib/typescript/src/components/questionnaire/index.d.ts +4 -3
  256. package/lib/typescript/src/components/questionnaire/index.d.ts.map +1 -1
  257. package/lib/typescript/src/components/radio-group/index.d.ts +6 -5
  258. package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
  259. package/lib/typescript/src/components/rating/index.d.ts +4 -4
  260. package/lib/typescript/src/components/rating/index.d.ts.map +1 -1
  261. package/lib/typescript/src/components/scroll-header/index.d.ts +11 -10
  262. package/lib/typescript/src/components/scroll-header/index.d.ts.map +1 -1
  263. package/lib/typescript/src/components/search-bar/index.d.ts +5 -4
  264. package/lib/typescript/src/components/search-bar/index.d.ts.map +1 -1
  265. package/lib/typescript/src/components/section-progress/index.d.ts.map +1 -1
  266. package/lib/typescript/src/components/select/index.d.ts.map +1 -1
  267. package/lib/typescript/src/components/selection-mode/index.d.ts +2 -2
  268. package/lib/typescript/src/components/selection-mode/index.d.ts.map +1 -1
  269. package/lib/typescript/src/components/separator/index.d.ts +17 -16
  270. package/lib/typescript/src/components/separator/index.d.ts.map +1 -1
  271. package/lib/typescript/src/components/shimmer/index.d.ts.map +1 -1
  272. package/lib/typescript/src/components/signature/index.d.ts +2 -2
  273. package/lib/typescript/src/components/signature/index.d.ts.map +1 -1
  274. package/lib/typescript/src/components/sketch/index.d.ts.map +1 -1
  275. package/lib/typescript/src/components/slide-button/index.d.ts +5 -4
  276. package/lib/typescript/src/components/slide-button/index.d.ts.map +1 -1
  277. package/lib/typescript/src/components/slider/index.d.ts +4 -4
  278. package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
  279. package/lib/typescript/src/components/sortable/index.d.ts.map +1 -1
  280. package/lib/typescript/src/components/spinner/index.d.ts +11 -11
  281. package/lib/typescript/src/components/spinner/index.d.ts.map +1 -1
  282. package/lib/typescript/src/components/splitter/index.d.ts.map +1 -1
  283. package/lib/typescript/src/components/stack-card/index.d.ts +11 -10
  284. package/lib/typescript/src/components/stack-card/index.d.ts.map +1 -1
  285. package/lib/typescript/src/components/steps/index.d.ts +9 -8
  286. package/lib/typescript/src/components/steps/index.d.ts.map +1 -1
  287. package/lib/typescript/src/components/support/index.d.ts +22 -21
  288. package/lib/typescript/src/components/support/index.d.ts.map +1 -1
  289. package/lib/typescript/src/components/surface/index.d.ts +35 -34
  290. package/lib/typescript/src/components/surface/index.d.ts.map +1 -1
  291. package/lib/typescript/src/components/swipe/index.d.ts +8 -7
  292. package/lib/typescript/src/components/swipe/index.d.ts.map +1 -1
  293. package/lib/typescript/src/components/switch/index.d.ts +5 -4
  294. package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
  295. package/lib/typescript/src/components/table/index.d.ts +14 -13
  296. package/lib/typescript/src/components/table/index.d.ts.map +1 -1
  297. package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
  298. package/lib/typescript/src/components/tag-input/index.d.ts +5 -4
  299. package/lib/typescript/src/components/tag-input/index.d.ts.map +1 -1
  300. package/lib/typescript/src/components/text-animation/index.d.ts.map +1 -1
  301. package/lib/typescript/src/components/textarea/index.d.ts +5 -4
  302. package/lib/typescript/src/components/textarea/index.d.ts.map +1 -1
  303. package/lib/typescript/src/components/time-picker/index.d.ts.map +1 -1
  304. package/lib/typescript/src/components/timeline/index.d.ts +18 -17
  305. package/lib/typescript/src/components/timeline/index.d.ts.map +1 -1
  306. package/lib/typescript/src/components/toast/index.d.ts +2 -2
  307. package/lib/typescript/src/components/toast/index.d.ts.map +1 -1
  308. package/lib/typescript/src/components/toggle-button/index.d.ts +6 -5
  309. package/lib/typescript/src/components/toggle-button/index.d.ts.map +1 -1
  310. package/lib/typescript/src/components/tooltip/index.d.ts.map +1 -1
  311. package/lib/typescript/src/components/tour/index.d.ts.map +1 -1
  312. package/lib/typescript/src/components/tree/index.d.ts +10 -9
  313. package/lib/typescript/src/components/tree/index.d.ts.map +1 -1
  314. package/lib/typescript/src/components/typography/index.d.ts +101 -100
  315. package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
  316. package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts +3 -2
  317. package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts.map +1 -1
  318. package/lib/typescript/src/hooks/use-reveal-progress.d.ts +2 -2
  319. package/lib/typescript/src/hooks/use-reveal-progress.d.ts.map +1 -1
  320. package/lib/typescript/src/hooks/use-scroll-sections.d.ts +3 -2
  321. package/lib/typescript/src/hooks/use-scroll-sections.d.ts.map +1 -1
  322. package/lib/typescript/src/icons/index.d.ts +40 -0
  323. package/lib/typescript/src/icons/index.d.ts.map +1 -1
  324. package/lib/typescript/src/index.d.ts +1 -0
  325. package/lib/typescript/src/index.d.ts.map +1 -1
  326. package/lib/typescript/src/primitives/animated-pressable.d.ts +3 -2
  327. package/lib/typescript/src/primitives/animated-pressable.d.ts.map +1 -1
  328. package/lib/typescript/src/primitives/chart-accessibility.d.ts +5 -6
  329. package/lib/typescript/src/primitives/chart-accessibility.d.ts.map +1 -1
  330. package/lib/typescript/src/primitives/glass.d.ts +3 -2
  331. package/lib/typescript/src/primitives/glass.d.ts.map +1 -1
  332. package/lib/typescript/src/primitives/refs.d.ts +25 -0
  333. package/lib/typescript/src/primitives/refs.d.ts.map +1 -0
  334. package/lib/typescript/src/primitives/scroll-progress.d.ts.map +1 -1
  335. package/lib/typescript/src/primitives/text.d.ts +41 -40
  336. package/lib/typescript/src/primitives/text.d.ts.map +1 -1
  337. package/lib/typescript/src/primitives/web-deps.d.ts +11 -0
  338. package/lib/typescript/src/primitives/web-deps.d.ts.map +1 -0
  339. package/package.json +6 -6
  340. package/src/components/accordion/index.tsx +7 -6
  341. package/src/components/ai-input/index.tsx +2 -1
  342. package/src/components/alert/index.tsx +6 -5
  343. package/src/components/animated-badge/index.tsx +2 -1
  344. package/src/components/attachment/index.tsx +9 -8
  345. package/src/components/avatar/index.tsx +4 -3
  346. package/src/components/avatar-cropper/index.tsx +2 -1
  347. package/src/components/badge/index.tsx +2 -1
  348. package/src/components/breadcrumb/index.tsx +8 -7
  349. package/src/components/button/index.tsx +2 -1
  350. package/src/components/button-group/index.tsx +2 -1
  351. package/src/components/calendar/index.tsx +2 -1
  352. package/src/components/card/index.tsx +7 -6
  353. package/src/components/checkbox/index.tsx +39 -8
  354. package/src/components/chip/index.tsx +2 -1
  355. package/src/components/collapsible/index.tsx +6 -5
  356. package/src/components/color-picker/index.tsx +29 -15
  357. package/src/components/combobox/index.tsx +3 -2
  358. package/src/components/context-menu/index.tsx +2 -1
  359. package/src/components/countdown/index.tsx +2 -1
  360. package/src/components/dialog/index.tsx +3 -2
  361. package/src/components/empty-state/index.tsx +7 -6
  362. package/src/components/fab/index.tsx +6 -4
  363. package/src/components/feedback/index.tsx +5 -4
  364. package/src/components/field/index.tsx +11 -10
  365. package/src/components/file-upload/index.tsx +4 -3
  366. package/src/components/flip-card/index.tsx +4 -3
  367. package/src/components/frame/index.tsx +13 -12
  368. package/src/components/grid-item/index.tsx +10 -9
  369. package/src/components/heatmap-chart/index.tsx +2 -1
  370. package/src/components/image-viewer/index.tsx +2 -1
  371. package/src/components/input/index.tsx +2 -1
  372. package/src/components/input-group/index.tsx +4 -3
  373. package/src/components/item/index.tsx +11 -10
  374. package/src/components/kpi/index.tsx +3 -2
  375. package/src/components/label/index.tsx +3 -2
  376. package/src/components/leaderboard/index.tsx +2 -1
  377. package/src/components/live-line-chart/index.tsx +2 -1
  378. package/src/components/map/native-style.ts +31 -4
  379. package/src/components/markdown-editor/index.tsx +11 -11
  380. package/src/components/marker/index.tsx +4 -3
  381. package/src/components/marquee/index.tsx +2 -1
  382. package/src/components/message/index.tsx +10 -9
  383. package/src/components/message-scroller/index.tsx +4 -4
  384. package/src/components/meter/index.tsx +2 -1
  385. package/src/components/number-input/index.tsx +2 -1
  386. package/src/components/otp-input/index.tsx +4 -3
  387. package/src/components/page-header/index.tsx +12 -11
  388. package/src/components/pagination/index.tsx +6 -5
  389. package/src/components/panelside/index.tsx +8 -7
  390. package/src/components/planner/index.tsx +7 -7
  391. package/src/components/popover/index.tsx +2 -1
  392. package/src/components/post/index.tsx +12 -11
  393. package/src/components/progress/index.tsx +2 -1
  394. package/src/components/progress-button/index.tsx +2 -1
  395. package/src/components/qr-code/index.tsx +8 -7
  396. package/src/components/questionnaire/index.tsx +4 -3
  397. package/src/components/radio-group/index.tsx +3 -2
  398. package/src/components/rating/index.tsx +2 -1
  399. package/src/components/scroll-header/index.tsx +13 -11
  400. package/src/components/search-bar/index.tsx +7 -8
  401. package/src/components/section-progress/index.tsx +3 -2
  402. package/src/components/select/index.tsx +2 -1
  403. package/src/components/separator/index.tsx +2 -1
  404. package/src/components/shimmer/index.tsx +11 -2
  405. package/src/components/signature/index.tsx +2 -1
  406. package/src/components/sketch/index.tsx +2 -1
  407. package/src/components/slide-button/index.tsx +2 -1
  408. package/src/components/slider/index.tsx +2 -1
  409. package/src/components/sortable/index.tsx +5 -7
  410. package/src/components/splitter/index.tsx +3 -2
  411. package/src/components/stack-card/index.tsx +9 -7
  412. package/src/components/steps/index.tsx +8 -7
  413. package/src/components/support/index.tsx +17 -16
  414. package/src/components/surface/index.tsx +2 -1
  415. package/src/components/swipe/index.tsx +5 -4
  416. package/src/components/switch/index.tsx +2 -1
  417. package/src/components/table/index.tsx +11 -10
  418. package/src/components/tabs/index.tsx +4 -2
  419. package/src/components/tag-input/index.tsx +5 -5
  420. package/src/components/text-animation/index.tsx +2 -1
  421. package/src/components/textarea/index.tsx +3 -3
  422. package/src/components/time-picker/index.tsx +2 -1
  423. package/src/components/timeline/index.tsx +17 -16
  424. package/src/components/toast/index.tsx +2 -2
  425. package/src/components/toggle-button/index.tsx +3 -2
  426. package/src/components/tooltip/index.tsx +2 -1
  427. package/src/components/tour/index.tsx +3 -2
  428. package/src/components/tree/index.tsx +11 -9
  429. package/src/components/typography/index.tsx +8 -7
  430. package/src/hooks/use-keyboard-avoidance.ts +10 -2
  431. package/src/hooks/use-reveal-progress.ts +3 -2
  432. package/src/hooks/use-scroll-sections.ts +3 -2
  433. package/src/icons/index.tsx +21 -2
  434. package/src/index.ts +4 -0
  435. package/src/primitives/animated-pressable.tsx +2 -1
  436. package/src/primitives/chart-accessibility.ts +9 -5
  437. package/src/primitives/glass.tsx +3 -2
  438. package/src/primitives/refs.ts +45 -0
  439. package/src/primitives/scroll-progress.tsx +2 -1
  440. package/src/primitives/text.tsx +2 -1
  441. package/src/primitives/web-deps.ts +14 -0
  442. package/lib/module/uniwind-env.d.js +0 -4
  443. package/lib/module/uniwind-env.d.js.map +0 -1
@@ -41,6 +41,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
41
41
  import { AnimatedPressable } from '../../primitives/animated-pressable';
42
42
  import { Text, textChildren } from '../../primitives/text';
43
43
  import { cn } from '../../utils/cn';
44
+ import type { ViewRef } from '../../primitives/refs';
44
45
 
45
46
  /** Whether anyone is at the other end. */
46
47
  export type SupportAvailability = 'online' | 'away' | 'offline';
@@ -142,7 +143,7 @@ export interface SupportProps extends ViewProps {
142
143
  children?: ReactNode;
143
144
  }
144
145
 
145
- const SupportRoot = forwardRef<View, SupportProps>(function SupportRoot(
146
+ const SupportRoot = forwardRef<ViewRef, SupportProps>(function SupportRoot(
146
147
  { className, availability = 'online', children, ...props },
147
148
  ref
148
149
  ) {
@@ -170,7 +171,7 @@ export interface SupportHeaderProps extends ViewProps {
170
171
  }
171
172
 
172
173
  /** The screen's title, and room beside it for whoever is answering. */
173
- const SupportHeader = forwardRef<View, SupportHeaderProps>(function SupportHeader(
174
+ const SupportHeader = forwardRef<ViewRef, SupportHeaderProps>(function SupportHeader(
174
175
  { className, title, description, children, ...props },
175
176
  ref
176
177
  ) {
@@ -213,7 +214,7 @@ export interface SupportStatusProps extends ViewProps {
213
214
  }
214
215
 
215
216
  /** Whether anyone is there, and how long an answer takes. */
216
- const SupportStatus = forwardRef<View, SupportStatusProps>(function SupportStatus(
217
+ const SupportStatus = forwardRef<ViewRef, SupportStatusProps>(function SupportStatus(
217
218
  { className, availability: availabilityProp, replyTime, children, ...props },
218
219
  ref
219
220
  ) {
@@ -252,7 +253,7 @@ export interface SupportGroupProps extends ViewProps {
252
253
 
253
254
  /** A titled run of rows. Shared by Channels, Conversations and Articles. */
254
255
  function group(name: string) {
255
- const Group = forwardRef<View, SupportGroupProps>(function Group(
256
+ const Group = forwardRef<ViewRef, SupportGroupProps>(function Group(
256
257
  { className, title, children, ...props },
257
258
  ref
258
259
  ) {
@@ -293,7 +294,7 @@ export interface SupportChannelProps extends Omit<ViewProps, 'children'> {
293
294
  * it costs you in waiting — and a grid of icons with one word under each puts
294
295
  * the reader in front of a quiz about which one is right.
295
296
  */
296
- const SupportChannel = forwardRef<View, SupportChannelProps>(function SupportChannel(
297
+ const SupportChannel = forwardRef<ViewRef, SupportChannelProps>(function SupportChannel(
297
298
  { className, icon, label, description, detail, disabled = false, onPress, ...props },
298
299
  ref
299
300
  ) {
@@ -353,7 +354,7 @@ export interface SupportTopicsProps extends ViewProps {
353
354
  * without one, and the ones that need it are the ones routing to different
354
355
  * teams. Single-select: a request goes to one queue.
355
356
  */
356
- const SupportTopics = forwardRef<View, SupportTopicsProps>(function SupportTopics(
357
+ const SupportTopics = forwardRef<ViewRef, SupportTopicsProps>(function SupportTopics(
357
358
  { className, title, value: valueProp, defaultValue = null, onValueChange, children, ...props },
358
359
  ref
359
360
  ) {
@@ -402,7 +403,7 @@ export interface SupportTopicProps extends Omit<ViewProps, 'children'> {
402
403
  }
403
404
 
404
405
  /** One thing the problem could be about. */
405
- const SupportTopic = forwardRef<View, SupportTopicProps>(function SupportTopic(
406
+ const SupportTopic = forwardRef<ViewRef, SupportTopicProps>(function SupportTopic(
406
407
  { className, value, icon, label, description, disabled = false, onPress, ...props },
407
408
  ref
408
409
  ) {
@@ -467,7 +468,7 @@ export interface SupportConversationProps extends Omit<ViewProps, 'children'> {
467
468
  }
468
469
 
469
470
  /** One request the reader already made, and what has happened to it. */
470
- const SupportConversation = forwardRef<View, SupportConversationProps>(
471
+ const SupportConversation = forwardRef<ViewRef, SupportConversationProps>(
471
472
  function SupportConversation(
472
473
  {
473
474
  className,
@@ -561,7 +562,7 @@ export interface SupportArticleProps extends Omit<ViewProps, 'children'> {
561
562
  }
562
563
 
563
564
  /** A page from the help centre, for the questions that have a written answer. */
564
- const SupportArticle = forwardRef<View, SupportArticleProps>(function SupportArticle(
565
+ const SupportArticle = forwardRef<ViewRef, SupportArticleProps>(function SupportArticle(
565
566
  { className, icon, title, collection, onPress, ...props },
566
567
  ref
567
568
  ) {
@@ -618,7 +619,7 @@ export interface SupportAgentProps extends Omit<ViewProps, 'children' | 'role'>
618
619
  * sitting beside it, because the two answer the same question and the live one
619
620
  * wins.
620
621
  */
621
- const SupportAgent = forwardRef<View, SupportAgentProps>(function SupportAgent(
622
+ const SupportAgent = forwardRef<ViewRef, SupportAgentProps>(function SupportAgent(
622
623
  { className, avatar, name, role, availability: availabilityProp, typing = false, ...props },
623
624
  ref
624
625
  ) {
@@ -664,7 +665,7 @@ export interface SupportTicketProps extends Omit<ViewProps, 'children'> {
664
665
  }
665
666
 
666
667
  /** The request this thread belongs to, pinned above it. */
667
- const SupportTicket = forwardRef<View, SupportTicketProps>(function SupportTicket(
668
+ const SupportTicket = forwardRef<ViewRef, SupportTicketProps>(function SupportTicket(
668
669
  { className, reference, subject, status = 'open', ...props },
669
670
  ref
670
671
  ) {
@@ -714,7 +715,7 @@ export interface SupportHandoffProps extends ViewProps {
714
715
  * between them, leaves the reader working out who they are talking to from the
715
716
  * writing style.
716
717
  */
717
- const SupportHandoff = forwardRef<View, SupportHandoffProps>(function SupportHandoff(
718
+ const SupportHandoff = forwardRef<ViewRef, SupportHandoffProps>(function SupportHandoff(
718
719
  { className, icon, children, ...props },
719
720
  ref
720
721
  ) {
@@ -748,7 +749,7 @@ export interface SupportNoteProps extends ViewProps {
748
749
  * somebody is deciding whether it is worth typing, and an expectation set four
749
750
  * screens ago is not one they still have in mind.
750
751
  */
751
- const SupportNote = forwardRef<View, SupportNoteProps>(function SupportNote(
752
+ const SupportNote = forwardRef<ViewRef, SupportNoteProps>(function SupportNote(
752
753
  { className, children, ...props },
753
754
  ref
754
755
  ) {
@@ -774,7 +775,7 @@ export interface SupportRepliesProps extends ViewProps {
774
775
  }
775
776
 
776
777
  /** The suggested answers under a turn. */
777
- const SupportReplies = forwardRef<View, SupportRepliesProps>(function SupportReplies(
778
+ const SupportReplies = forwardRef<ViewRef, SupportRepliesProps>(function SupportReplies(
778
779
  { className, children, ...props },
779
780
  ref
780
781
  ) {
@@ -804,7 +805,7 @@ export interface SupportReplyProps extends Omit<ViewProps, 'children'> {
804
805
  * screen from the first turn, and a component that makes it easy to put there
805
806
  * is a component that gets it put there.
806
807
  */
807
- const SupportReply = forwardRef<View, SupportReplyProps>(function SupportReply(
808
+ const SupportReply = forwardRef<ViewRef, SupportReplyProps>(function SupportReply(
808
809
  { className, value, label, disabled = false, onPress, ...props },
809
810
  ref
810
811
  ) {
@@ -838,7 +839,7 @@ export interface SupportResolutionProps extends ViewProps {
838
839
  }
839
840
 
840
841
  /** Whether it actually helped, asked at the end of a thread. */
841
- const SupportResolution = forwardRef<View, SupportResolutionProps>(
842
+ const SupportResolution = forwardRef<ViewRef, SupportResolutionProps>(
842
843
  function SupportResolution({ className, title = 'Did this solve it?', children, ...props }, ref) {
843
844
  const { resolution } = supportVariants();
844
845
 
@@ -21,6 +21,7 @@
21
21
  import { forwardRef } from 'react';
22
22
  import { StyleSheet, View, type ViewProps } from 'react-native';
23
23
  import { tv, type VariantProps } from 'tailwind-variants';
24
+ import type { ViewRef } from '../../primitives/refs';
24
25
 
25
26
  const surfaceVariants = tv({
26
27
  base: 'overflow-hidden rounded-3xl',
@@ -69,7 +70,7 @@ export interface SurfaceProps
69
70
  padding?: 'none' | 'sm' | 'default' | 'lg';
70
71
  }
71
72
 
72
- export const Surface = forwardRef<View, SurfaceProps>(
73
+ export const Surface = forwardRef<ViewRef, SurfaceProps>(
73
74
  ({ className, variant, padding, bordered, elevated, style, ...props }, ref) => (
74
75
  <View
75
76
  ref={ref}
@@ -65,6 +65,7 @@ import { AnimatedPressable } from '../../primitives/animated-pressable';
65
65
  import { Text } from '../../primitives/text';
66
66
  import { cn } from '../../utils/cn';
67
67
  import { selectionTick } from '../../utils/haptics';
68
+ import type { ViewRef } from '../../primitives/refs';
68
69
 
69
70
  const SPRING = { damping: 22, stiffness: 220, mass: 0.7 } as const;
70
71
 
@@ -164,7 +165,7 @@ export interface SwipeGroupProps extends ViewProps {
164
165
  * to that row's shared value, so opening a row costs the springs it starts and
165
166
  * no React work at all.
166
167
  */
167
- const SwipeGroup = forwardRef<View, SwipeGroupProps>(
168
+ const SwipeGroup = forwardRef<ViewRef, SwipeGroupProps>(
168
169
  ({ className, children, exclusive = true, ...props }, ref) => {
169
170
  /*
170
171
  * A ref rather than state: membership changes as rows mount and unmount,
@@ -321,7 +322,7 @@ export interface SwipeActionProps
321
322
  * One tile behind the row. Sized by its own content down to a minimum wide
322
323
  * enough to hit, so a one-word action and a two-word one still line up.
323
324
  */
324
- const SwipeAction = forwardRef<View, SwipeActionProps>(
325
+ const SwipeAction = forwardRef<ViewRef, SwipeActionProps>(
325
326
  (
326
327
  {
327
328
  className,
@@ -417,10 +418,10 @@ export interface SwipePanelProps extends Omit<ViewProps, 'children'> {
417
418
  * caller says which side an action belongs to, and it keeps both sides
418
419
  * readable in source rather than hidden inside two render props.
419
420
  */
420
- const SwipeStart = forwardRef<View, SwipePanelProps>(() => null);
421
+ const SwipeStart = forwardRef<ViewRef, SwipePanelProps>(() => null);
421
422
  SwipeStart.displayName = 'Swipe.Start';
422
423
 
423
- const SwipeEnd = forwardRef<View, SwipePanelProps>(() => null);
424
+ const SwipeEnd = forwardRef<ViewRef, SwipePanelProps>(() => null);
424
425
  SwipeEnd.displayName = 'Swipe.End';
425
426
 
426
427
  /* -------------------------------------------------------------------------- */
@@ -11,6 +11,7 @@ import { useDirectionSign } from '../../hooks/use-direction';
11
11
  import { NativeHost, getNativeUI } from '../../native';
12
12
  import { selectionTick } from '../../utils/haptics';
13
13
  import { useFieldLabelledBy } from '../field';
14
+ import type { ViewRef } from '../../primitives/refs';
14
15
 
15
16
  const SPRING = { damping: 18, stiffness: 250, mass: 0.5 } as const;
16
17
 
@@ -100,7 +101,7 @@ export interface SwitchProps
100
101
  */
101
102
  const NATIVE_TOGGLE_HEIGHT = 32;
102
103
 
103
- export const Switch = forwardRef<View, SwitchProps>(
104
+ export const Switch = forwardRef<ViewRef, SwitchProps>(
104
105
  (
105
106
  {
106
107
  className,
@@ -81,6 +81,7 @@ import { Text, type TextProps, textChildren } from '../../primitives/text';
81
81
  import { cn } from '../../utils/cn';
82
82
  import { selectionTick } from '../../utils/haptics';
83
83
  import { Frame } from '../frame';
84
+ import type { TextRef, ViewRef } from '../../primitives/refs';
84
85
 
85
86
  /** Long enough to read as the arrow turning over, short enough not to lag a tap. */
86
87
  const SORT_DURATION = 160;
@@ -250,7 +251,7 @@ export interface TableProps extends ViewProps, VariantProps<typeof tableVariants
250
251
  children?: ReactNode;
251
252
  }
252
253
 
253
- const TableRoot = forwardRef<View, TableProps>(
254
+ const TableRoot = forwardRef<ViewRef, TableProps>(
254
255
  (
255
256
  { className, variant, size = 'default', striped = false, columns, children, ...props },
256
257
  ref
@@ -297,7 +298,7 @@ export interface TableHeaderProps extends ViewProps {
297
298
  }
298
299
 
299
300
  /** The band of column headers. Draws the rule that separates it from the body. */
300
- const TableHeader = forwardRef<View, TableHeaderProps>(
301
+ const TableHeader = forwardRef<ViewRef, TableHeaderProps>(
301
302
  ({ className, children, ...props }, ref) => {
302
303
  const rows = useSectionRows(children, 'header');
303
304
 
@@ -321,7 +322,7 @@ export interface TableBodyProps extends ViewProps {
321
322
  }
322
323
 
323
324
  /** The data rows. Renders every child it is given — see `FlatList` for long tables. */
324
- const TableBody = forwardRef<View, TableBodyProps>(
325
+ const TableBody = forwardRef<ViewRef, TableBodyProps>(
325
326
  ({ className, children, ...props }, ref) => {
326
327
  const rows = useSectionRows(children, 'body');
327
328
 
@@ -340,7 +341,7 @@ export interface TableFooterProps extends ViewProps {
340
341
  }
341
342
 
342
343
  /** Totals band. Tinted and ruled off, because a sum is not another row of data. */
343
- const TableFooter = forwardRef<View, TableFooterProps>(
344
+ const TableFooter = forwardRef<ViewRef, TableFooterProps>(
344
345
  ({ className, children, ...props }, ref) => {
345
346
  const rows = useSectionRows(children, 'footer');
346
347
 
@@ -382,7 +383,7 @@ export interface TableRowProps
382
383
  * Renders as a pressable when given `onPress`, and as a plain view otherwise,
383
384
  * so a table you only read does not announce every row as a button.
384
385
  */
385
- const TableRow = forwardRef<View, TableRowProps>(
386
+ const TableRow = forwardRef<ViewRef, TableRowProps>(
386
387
  ({ className, selected, disabled, index, last, children, onPress, ...props }, ref) => {
387
388
  const { size, striped, columns } = useContext(TableContext);
388
389
  const row = useContext(TableRowContext);
@@ -500,7 +501,7 @@ export interface TableHeadProps extends Omit<ViewProps, 'children'> {
500
501
  * the press; which column, which way and in what order stay with the caller,
501
502
  * because the data being sorted is theirs.
502
503
  */
503
- const TableHead = forwardRef<View, TableHeadProps>(
504
+ const TableHead = forwardRef<ViewRef, TableHeadProps>(
504
505
  (
505
506
  {
506
507
  className,
@@ -647,7 +648,7 @@ export interface TableCellProps extends ViewProps {
647
648
  * row of strings needs no `Text` around each one; anything else — a Badge, an
648
649
  * Avatar, a Button — is rendered as given.
649
650
  */
650
- const TableCell = forwardRef<View, TableCellProps>(
651
+ const TableCell = forwardRef<ViewRef, TableCellProps>(
651
652
  (
652
653
  {
653
654
  className,
@@ -695,7 +696,7 @@ export interface TableCaptionProps extends TextProps {
695
696
  * Place it after the body: a caption read before the columns is a heading, and
696
697
  * a heading is not this component's job.
697
698
  */
698
- const TableCaption = forwardRef<React.ElementRef<typeof Text>, TableCaptionProps>(
699
+ const TableCaption = forwardRef<TextRef, TableCaptionProps>(
699
700
  ({ className, ...props }, ref) => {
700
701
  const { size } = useContext(TableContext);
701
702
  const { caption } = tableVariants({ size });
@@ -715,7 +716,7 @@ export interface TableEmptyProps extends ViewProps {
715
716
  * and no rows under it looks broken rather than empty, and the header is worth
716
717
  * keeping: it says what would be there.
717
718
  */
718
- const TableEmpty = forwardRef<View, TableEmptyProps>(
719
+ const TableEmpty = forwardRef<ViewRef, TableEmptyProps>(
719
720
  ({ className, children, ...props }, ref) => {
720
721
  const { size } = useContext(TableContext);
721
722
  const { caption } = tableVariants({ size });
@@ -780,7 +781,7 @@ export interface TableFrameProps extends Omit<ViewProps, 'children'> {
780
781
  * </Table.Frame>
781
782
  * ```
782
783
  */
783
- const TableFrame = forwardRef<View, TableFrameProps>(
784
+ const TableFrame = forwardRef<ViewRef, TableFrameProps>(
784
785
  (
785
786
  {
786
787
  className,
@@ -71,6 +71,8 @@ import { tv } from 'tailwind-variants';
71
71
  import { useDirectionSign } from '../../hooks/use-direction';
72
72
  import { Text, textChildren } from '../../primitives/text';
73
73
  import { cn } from '../../utils/cn';
74
+ import type { ScrollViewRef } from '../../primitives/refs';
75
+ import { webDeps } from '../../primitives/web-deps';
74
76
 
75
77
  const SPRING = { damping: 24, stiffness: 300, mass: 0.7 } as const;
76
78
 
@@ -736,7 +738,7 @@ function TabsPager({
736
738
  */
737
739
  const strip = useAnimatedStyle(
738
740
  () => ({ transform: [{ translateX: -position.value * width * sign }] }),
739
- [width, sign]
741
+ webDeps([width, sign])
740
742
  );
741
743
 
742
744
  const onLayout = useCallback((event: LayoutChangeEvent) => {
@@ -880,7 +882,7 @@ function TabsList({
880
882
  }: TabsListProps) {
881
883
  const { variant, value, layouts } = useTabs('Tabs.List');
882
884
  const { list } = tabsVariants({ variant });
883
- const scroller = useRef<ScrollView>(null);
885
+ const scroller = useRef<ScrollViewRef>(null);
884
886
 
885
887
  /*
886
888
  * Where the row should be, kept as a ref rather than only applied once.
@@ -45,7 +45,6 @@ import {
45
45
  TextInput,
46
46
  View,
47
47
  type NativeSyntheticEvent,
48
- type TextInputKeyPressEventData,
49
48
  type TextInputProps,
50
49
  } from 'react-native';
51
50
  import Animated, {
@@ -65,6 +64,7 @@ import { selectionTick } from '../../utils/haptics';
65
64
  import { Chip, type ChipSize, type ChipVariant } from '../chip';
66
65
  import { Label } from '../label';
67
66
  import { reconcileMarkedTag, type MarkedTag } from './tag-input-state';
67
+ import type { KeyPressEvent, TextInputRef } from '../../primitives/refs';
68
68
 
69
69
  /** Matches Input and Combobox, so the three read as the same control focused. */
70
70
  const FOCUS_DURATION = 150;
@@ -244,7 +244,7 @@ export interface TagInputProps
244
244
  haptics?: boolean;
245
245
  }
246
246
 
247
- export const TagInput = forwardRef<TextInput, TagInputProps>(
247
+ export const TagInput = forwardRef<TextInputRef, TagInputProps>(
248
248
  (
249
249
  {
250
250
  className,
@@ -284,8 +284,8 @@ export const TagInput = forwardRef<TextInput, TagInputProps>(
284
284
  },
285
285
  ref
286
286
  ) => {
287
- const inputRef = useRef<TextInput>(null);
288
- useImperativeHandle(ref, () => inputRef.current as TextInput);
287
+ const inputRef = useRef<TextInputRef>(null);
288
+ useImperativeHandle(ref, () => inputRef.current as TextInputRef);
289
289
 
290
290
  const [ownTags, setOwnTags] = useState<string[]>(defaultValue ?? []);
291
291
  const tags = value ?? ownTags;
@@ -409,7 +409,7 @@ export const TagInput = forwardRef<TextInput, TagInputProps>(
409
409
  );
410
410
 
411
411
  const handleKeyPress = useCallback(
412
- (event: NativeSyntheticEvent<TextInputKeyPressEventData>) => {
412
+ (event: KeyPressEvent) => {
413
413
  onKeyPress?.(event);
414
414
  if (event.nativeEvent.key !== 'Backspace') {
415
415
  setMarked(null);
@@ -63,6 +63,7 @@ import { tv } from 'tailwind-variants';
63
63
  import { useCSSVariable } from 'uniwind';
64
64
  import { cn } from '../../utils/cn';
65
65
  import { Text, type TextProps } from '../../primitives/text';
66
+ import { webDeps } from '../../primitives/web-deps';
66
67
 
67
68
  const AnimatedText = Animated.createAnimatedComponent(RNText);
68
69
 
@@ -651,7 +652,7 @@ function TextAnimationCounting({
651
652
  (current, previous) => {
652
653
  if (current !== previous) runOnJS(setShown)(current);
653
654
  },
654
- [factor]
655
+ webDeps([factor])
655
656
  );
656
657
 
657
658
  return (
@@ -24,7 +24,6 @@ import {
24
24
  TextInput,
25
25
  View,
26
26
  type NativeSyntheticEvent,
27
- type TextInputContentSizeChangeEventData,
28
27
  type TextInputProps,
29
28
  } from 'react-native';
30
29
  import Animated, {
@@ -40,6 +39,7 @@ import { KeyboardAvoider } from '../../primitives/keyboard-avoider';
40
39
  import { Text } from '../../primitives/text';
41
40
  import { Label } from '../label';
42
41
  import { textareaIsDisabled } from './textarea-disabled';
42
+ import type { ContentSizeChangeEvent, TextInputRef } from '../../primitives/refs';
43
43
 
44
44
  /** Long enough to read as a transition, short enough not to lag a fast tab. */
45
45
  const FOCUS_DURATION = 150;
@@ -167,7 +167,7 @@ export interface TextareaProps
167
167
 
168
168
  const AnimatedTextInput = Animated.createAnimatedComponent(TextInput);
169
169
 
170
- export const Textarea = forwardRef<TextInput, TextareaProps>(
170
+ export const Textarea = forwardRef<TextInputRef, TextareaProps>(
171
171
  (
172
172
  {
173
173
  className,
@@ -283,7 +283,7 @@ export const Textarea = forwardRef<TextInput, TextareaProps>(
283
283
  );
284
284
 
285
285
  const handleContentSizeChange = useCallback(
286
- (event: NativeSyntheticEvent<TextInputContentSizeChangeEventData>) => {
286
+ (event: ContentSizeChangeEvent) => {
287
287
  if (autoGrow) {
288
288
  setContentHeight(event.nativeEvent.contentSize.height);
289
289
  }
@@ -97,6 +97,7 @@ import {
97
97
  import { Button } from '../button';
98
98
  import { Dialog } from '../dialog';
99
99
  import { Popover } from '../popover';
100
+ import type { ScrollViewRef } from '../../primitives/refs';
100
101
 
101
102
  export type { HourCycle, TimeValue };
102
103
 
@@ -833,7 +834,7 @@ function RulerFace({
833
834
  readout = 'default',
834
835
  }: FaceProps) {
835
836
  const slots = timePickerVariants({ readout });
836
- const ref = useRef<ScrollView>(null);
837
+ const ref = useRef<ScrollViewRef>(null);
837
838
  const { times, index } = useBoundedTimes(minuteStep, minTime, maxTime, value);
838
839
  const resting = useRef(index);
839
840
  /*
@@ -80,6 +80,7 @@ import { IconColorProvider } from '../../icons';
80
80
  import { selectionTick } from '../../utils/haptics';
81
81
  import { Text, type TextProps, textChildren } from '../../primitives/text';
82
82
  import { TIMELINE_WIDE_COLUMN, timelineColumnOffsets, timelineColumnWidth } from './timeline-geometry';
83
+ import type { TextRef, ViewRef } from '../../primitives/refs';
83
84
 
84
85
  const AnimatedText = Animated.createAnimatedComponent(Text);
85
86
 
@@ -498,7 +499,7 @@ export interface TimelineProps extends ViewProps {
498
499
  children?: ReactNode;
499
500
  }
500
501
 
501
- const TimelineRoot = forwardRef<View, TimelineProps>(
502
+ const TimelineRoot = forwardRef<ViewRef, TimelineProps>(
502
503
  (
503
504
  {
504
505
  className,
@@ -765,7 +766,7 @@ export interface TimelineItemProps extends ViewProps {
765
766
  children?: ReactNode;
766
767
  }
767
768
 
768
- const TimelineItem = forwardRef<View, TimelineItemProps>(
769
+ const TimelineItem = forwardRef<ViewRef, TimelineItemProps>(
769
770
  (
770
771
  {
771
772
  className,
@@ -893,7 +894,7 @@ TimelineItem.displayName = 'Timeline.Item';
893
894
  * Right-aligned meta column to the left of the rail — a time, a category, a
894
895
  * person. Place it before `Timeline.Indicator`.
895
896
  */
896
- const TimelineAside = forwardRef<View, ViewProps & { className?: string }>(
897
+ const TimelineAside = forwardRef<ViewRef, ViewProps & { className?: string }>(
897
898
  ({ className, style, ...props }, ref) => {
898
899
  const { variant, orientation } = useTimeline('Timeline.Aside');
899
900
  const { aside } = timelineVariants({ variant, orientation });
@@ -934,7 +935,7 @@ export interface TimelineIndicatorProps extends ViewProps {
934
935
  * reads against this node, so an icon inside follows the theme instead of
935
936
  * disappearing when the fill inverts.
936
937
  */
937
- const TimelineIndicator = forwardRef<View, TimelineIndicatorProps>(
938
+ const TimelineIndicator = forwardRef<ViewRef, TimelineIndicatorProps>(
938
939
  ({ className, children, ...props }, ref) => {
939
940
  const { variant, orientation } = useTimeline('Timeline.Indicator');
940
941
  const { step, completed, tone, showSeparator } =
@@ -1030,7 +1031,7 @@ TimelineIndicator.displayName = 'Timeline.Indicator';
1030
1031
  * wrapped in the card panel, while the spacing between items stays outside it
1031
1032
  * so the connector runs unbroken.
1032
1033
  */
1033
- const TimelineContent = forwardRef<View, ViewProps & { className?: string }>(
1034
+ const TimelineContent = forwardRef<ViewRef, ViewProps & { className?: string }>(
1034
1035
  ({ className, children, style, ...props }, ref) => {
1035
1036
  const { variant, orientation } = useTimeline('Timeline.Content');
1036
1037
  const { completed, tone } = useTimelineItem('Timeline.Content');
@@ -1069,7 +1070,7 @@ const TimelineContent = forwardRef<View, ViewProps & { className?: string }>(
1069
1070
  TimelineContent.displayName = 'Timeline.Content';
1070
1071
 
1071
1072
  /** Title row: heading on the left, `Timeline.Trailing` on the right. */
1072
- const TimelineHeader = forwardRef<View, ViewProps & { className?: string }>(
1073
+ const TimelineHeader = forwardRef<ViewRef, ViewProps & { className?: string }>(
1073
1074
  ({ className, ...props }, ref) => {
1074
1075
  const { variant, orientation } = useTimeline('Timeline.Header');
1075
1076
  const { header } = timelineVariants({ variant, orientation });
@@ -1079,7 +1080,7 @@ const TimelineHeader = forwardRef<View, ViewProps & { className?: string }>(
1079
1080
  TimelineHeader.displayName = 'Timeline.Header';
1080
1081
 
1081
1082
  /** Wraps a title and anything stacked under it inside the header row. */
1082
- const TimelineHeading = forwardRef<View, ViewProps & { className?: string }>(
1083
+ const TimelineHeading = forwardRef<ViewRef, ViewProps & { className?: string }>(
1083
1084
  ({ className, ...props }, ref) => {
1084
1085
  const { variant, orientation } = useTimeline('Timeline.Heading');
1085
1086
  const { heading } = timelineVariants({ variant, orientation });
@@ -1088,7 +1089,7 @@ const TimelineHeading = forwardRef<View, ViewProps & { className?: string }>(
1088
1089
  );
1089
1090
  TimelineHeading.displayName = 'Timeline.Heading';
1090
1091
 
1091
- const TimelineDate = forwardRef<RNText, TextProps>(({ className, style, ...props }, ref) => {
1092
+ const TimelineDate = forwardRef<TextRef, TextProps>(({ className, style, ...props }, ref) => {
1092
1093
  const { variant, orientation } = useTimeline('Timeline.Date');
1093
1094
  const { date } = timelineVariants({ variant, orientation });
1094
1095
  const ink = useColumnInk('Timeline.Date');
@@ -1102,7 +1103,7 @@ const TimelineDate = forwardRef<RNText, TextProps>(({ className, style, ...props
1102
1103
  TimelineDate.displayName = 'Timeline.Date';
1103
1104
 
1104
1105
  /** Category line in the aside, coloured by the item's tone. */
1105
- const TimelineLabel = forwardRef<RNText, TextProps>(({ className, ...props }, ref) => {
1106
+ const TimelineLabel = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
1106
1107
  const { variant, orientation } = useTimeline('Timeline.Label');
1107
1108
  const { tone } = useTimelineItem('Timeline.Label');
1108
1109
  const { label } = timelineVariants({ variant, tone, orientation });
@@ -1111,7 +1112,7 @@ const TimelineLabel = forwardRef<RNText, TextProps>(({ className, ...props }, re
1111
1112
  TimelineLabel.displayName = 'Timeline.Label';
1112
1113
 
1113
1114
  /** Muted supporting line — a person's name, a source. */
1114
- const TimelineMeta = forwardRef<RNText, TextProps>(({ className, style, ...props }, ref) => {
1115
+ const TimelineMeta = forwardRef<TextRef, TextProps>(({ className, style, ...props }, ref) => {
1115
1116
  const { variant, orientation } = useTimeline('Timeline.Meta');
1116
1117
  const { meta } = timelineVariants({ variant, orientation });
1117
1118
  const ink = useColumnInk('Timeline.Meta');
@@ -1124,7 +1125,7 @@ const TimelineMeta = forwardRef<RNText, TextProps>(({ className, style, ...props
1124
1125
  });
1125
1126
  TimelineMeta.displayName = 'Timeline.Meta';
1126
1127
 
1127
- const TimelineTitle = forwardRef<RNText, TextProps>(({ className, ...props }, ref) => {
1128
+ const TimelineTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
1128
1129
  const { variant, orientation } = useTimeline('Timeline.Title');
1129
1130
  const { title } = timelineVariants({ variant, orientation });
1130
1131
  return <Text ref={ref} className={title({ className })} {...props} />;
@@ -1132,7 +1133,7 @@ const TimelineTitle = forwardRef<RNText, TextProps>(({ className, ...props }, re
1132
1133
  TimelineTitle.displayName = 'Timeline.Title';
1133
1134
 
1134
1135
  /** Right-hand slot in the header row — a timestamp, usually. */
1135
- const TimelineTrailing = forwardRef<RNText, TextProps>(
1136
+ const TimelineTrailing = forwardRef<TextRef, TextProps>(
1136
1137
  ({ className, ...props }, ref) => {
1137
1138
  const { variant, orientation } = useTimeline('Timeline.Trailing');
1138
1139
  const { trailing } = timelineVariants({ variant, orientation });
@@ -1141,7 +1142,7 @@ const TimelineTrailing = forwardRef<RNText, TextProps>(
1141
1142
  );
1142
1143
  TimelineTrailing.displayName = 'Timeline.Trailing';
1143
1144
 
1144
- const TimelineDescription = forwardRef<RNText, TextProps>(
1145
+ const TimelineDescription = forwardRef<TextRef, TextProps>(
1145
1146
  ({ className, style, ...props }, ref) => {
1146
1147
  const { variant, orientation } = useTimeline('Timeline.Description');
1147
1148
  const { content } = timelineVariants({ variant, orientation });
@@ -1162,7 +1163,7 @@ const TimelineDescription = forwardRef<RNText, TextProps>(
1162
1163
  TimelineDescription.displayName = 'Timeline.Description';
1163
1164
 
1164
1165
  /** Bordered strip of label/value pairs under a title. */
1165
- const TimelineStats = forwardRef<View, ViewProps & { className?: string }>(
1166
+ const TimelineStats = forwardRef<ViewRef, ViewProps & { className?: string }>(
1166
1167
  ({ className, ...props }, ref) => {
1167
1168
  const { variant, orientation } = useTimeline('Timeline.Stats');
1168
1169
  const { stats } = timelineVariants({ variant, orientation });
@@ -1177,7 +1178,7 @@ export interface TimelineStatProps extends ViewProps {
1177
1178
  value: string;
1178
1179
  }
1179
1180
 
1180
- const TimelineStat = forwardRef<View, TimelineStatProps>(
1181
+ const TimelineStat = forwardRef<ViewRef, TimelineStatProps>(
1181
1182
  ({ className, label, value, ...props }, ref) => {
1182
1183
  const { variant, orientation } = useTimeline('Timeline.Stat');
1183
1184
  const { statLabel, statValue } = timelineVariants({ variant, orientation });
@@ -1232,7 +1233,7 @@ export interface TimelineMastheadProps extends ViewProps {
1232
1233
  * run rather than to any column in it — and a column is the only thing a
1233
1234
  * horizontal `Timeline` lays out.
1234
1235
  */
1235
- const TimelineMasthead = forwardRef<View, TimelineMastheadProps>(
1236
+ const TimelineMasthead = forwardRef<ViewRef, TimelineMastheadProps>(
1236
1237
  ({ className, media, label, title, children, ...props }, ref) => {
1237
1238
  const { masthead, mastheadMedia, mastheadLabel, mastheadTitle } = timelineVariants({
1238
1239
  orientation: 'horizontal',
@@ -21,7 +21,6 @@ import {
21
21
  import {
22
22
  AppState,
23
23
  View,
24
- type AppStateStatus,
25
24
  type ViewProps,
26
25
  } from 'react-native';
27
26
  import { Gesture, GestureDetector } from 'react-native-gesture-handler';
@@ -604,7 +603,8 @@ export function ToastViewport() {
604
603
  * has decided, and a toast raised in that window would otherwise have its
605
604
  * countdown parked with nothing coming to restart it.
606
605
  */
607
- const syncTimers = (state: AppStateStatus) => {
606
+ // `string`, not AppStateStatus: React Native 0.88 types `currentState` as a plain string.
607
+ const syncTimers = (state: string | null | undefined) => {
608
608
  if (state === 'background' || state === 'inactive') toastStore.pauseTimers();
609
609
  else toastStore.resumeTimers();
610
610
  };
@@ -45,6 +45,7 @@ import {
45
45
  import { Text, textChildren } from '../../primitives/text';
46
46
  import { cn } from '../../utils/cn';
47
47
  import { selectionTick } from '../../utils/haptics';
48
+ import type { ViewRef } from '../../primitives/refs';
48
49
 
49
50
  const toggleVariants = tv({
50
51
  slots: {
@@ -141,7 +142,7 @@ export interface ToggleButtonGroupProps extends ViewProps {
141
142
  children: ReactNode;
142
143
  }
143
144
 
144
- const ToggleButtonGroup = forwardRef<View, ToggleButtonGroupProps>(
145
+ const ToggleButtonGroup = forwardRef<ViewRef, ToggleButtonGroupProps>(
145
146
  (
146
147
  {
147
148
  className,
@@ -265,7 +266,7 @@ export interface ToggleButtonProps
265
266
  unselectedClassName?: string;
266
267
  }
267
268
 
268
- const ToggleButtonRoot = forwardRef<View, ToggleButtonProps>(
269
+ const ToggleButtonRoot = forwardRef<ViewRef, ToggleButtonProps>(
269
270
  (
270
271
  {
271
272
  children,