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
@@ -93,6 +93,7 @@ import { tv } from 'tailwind-variants';
93
93
  import { ChevronRightIcon } from '../../icons';
94
94
  import { Text, type TextProps, textChildren } from '../../primitives/text';
95
95
  import { cn } from '../../utils/cn';
96
+ import type { TextRef, ViewRef } from '../../primitives/refs';
96
97
 
97
98
  /**
98
99
  * The `inset` shell's geometry. Numbers rather than classes, because an
@@ -191,7 +192,7 @@ export interface FrameRootProps extends FrameProps {
191
192
  variant?: FrameVariant;
192
193
  }
193
194
 
194
- const FrameRoot = forwardRef<View, FrameRootProps>(
195
+ const FrameRoot = forwardRef<ViewRef, FrameRootProps>(
195
196
  ({ className, variant = 'default', children, style, ...props }, ref) => {
196
197
  const slots = frameVariants({ variant });
197
198
  const inset = variant === 'inset';
@@ -225,7 +226,7 @@ export interface FrameHeaderProps extends FrameProps {
225
226
  * the left, `Frame.Action` on the right. Add `className="flex-col items-start"`
226
227
  * when you want a description underneath.
227
228
  */
228
- const FrameHeader = forwardRef<View, FrameHeaderProps>(
229
+ const FrameHeader = forwardRef<ViewRef, FrameHeaderProps>(
229
230
  ({ className, ...props }, ref) => {
230
231
  // `min-w-0` on nothing here — the title itself takes the flexible side, so
231
232
  // a long one truncates instead of shoving the action off the edge.
@@ -251,7 +252,7 @@ FrameHeader.displayName = 'Frame.Header';
251
252
  * colour and medium weight, and truncates to one line rather than pushing the
252
253
  * row's trailing slot out of view. Pass `numberOfLines` to override either way.
253
254
  */
254
- const FrameTitle = forwardRef<RNText, TextProps>(({ className, ...props }, ref) => {
255
+ const FrameTitle = forwardRef<TextRef, TextProps>(({ className, ...props }, ref) => {
255
256
  const inRow = useContext(FrameSlotContext);
256
257
 
257
258
  if (inRow) {
@@ -281,7 +282,7 @@ export interface FrameActionProps extends FrameProps {
281
282
  * Trailing slot on the header row — a column label, a count, a button, a badge.
282
283
  * Plain strings render as muted text; anything else renders as-is.
283
284
  */
284
- const FrameAction = forwardRef<View, FrameActionProps>(
285
+ const FrameAction = forwardRef<ViewRef, FrameActionProps>(
285
286
  ({ className, children, ...props }, ref) => (
286
287
  <View
287
288
  ref={ref}
@@ -302,7 +303,7 @@ FrameAction.displayName = 'Frame.Action';
302
303
  * Secondary line under the title — in a column-wrapped header, or under a row's
303
304
  * title inside `Frame.Content`, where it drops a size and wraps to two lines.
304
305
  */
305
- const FrameDescription = forwardRef<RNText, TextProps>(
306
+ const FrameDescription = forwardRef<TextRef, TextProps>(
306
307
  ({ className, ...props }, ref) => {
307
308
  const inRow = useContext(FrameSlotContext);
308
309
 
@@ -328,7 +329,7 @@ export interface FrameMediaProps extends FrameProps {
328
329
  * Leading slot on a row — an icon, an avatar, a status dot. Holds its size, so
329
330
  * whatever it holds is never squeezed by the text beside it.
330
331
  */
331
- const FrameMedia = forwardRef<View, FrameMediaProps>(
332
+ const FrameMedia = forwardRef<ViewRef, FrameMediaProps>(
332
333
  ({ className, ...props }, ref) => (
333
334
  <View
334
335
  ref={ref}
@@ -349,7 +350,7 @@ export interface FrameContentProps extends FrameProps {
349
350
  * allowed to shrink past its content, which is what keeps a long line from
350
351
  * pushing the rest of the row off the edge.
351
352
  */
352
- const FrameContent = forwardRef<View, FrameContentProps>(
353
+ const FrameContent = forwardRef<ViewRef, FrameContentProps>(
353
354
  ({ className, children, ...props }, ref) => (
354
355
  // `min-w-0` is the whole trick: a flex child's minimum size is its content
355
356
  // unless told otherwise, so `flex-1` alone still refuses to go narrower
@@ -369,7 +370,7 @@ export interface FrameActionsProps extends FrameProps {
369
370
  * Trailing slot on a row — a chip, a value, a switch, a small button. Holds its
370
371
  * size, so it stays readable however long the content beside it runs.
371
372
  */
372
- const FrameActions = forwardRef<View, FrameActionsProps>(
373
+ const FrameActions = forwardRef<ViewRef, FrameActionsProps>(
373
374
  ({ className, ...props }, ref) => (
374
375
  <View
375
376
  ref={ref}
@@ -419,7 +420,7 @@ export interface FramePanelProps extends FrameProps {
419
420
  * with the header strip above it. Under `inset` it floats clear of all four
420
421
  * instead, at the radius that keeps it concentric with the shell.
421
422
  */
422
- const FramePanel = forwardRef<View, FramePanelProps>(
423
+ const FramePanel = forwardRef<ViewRef, FramePanelProps>(
423
424
  ({ className, dividers = true, children, style, ...props }, ref) => {
424
425
  const variant = useContext(FrameVariantContext);
425
426
  return (
@@ -464,7 +465,7 @@ export interface FrameRowProps extends Omit<PressableProps, 'children'>, Dividab
464
465
  * pressable — press feedback, a button role — rather than a View with a
465
466
  * handler bolted on.
466
467
  */
467
- const FrameRow = forwardRef<View, FrameRowProps>(
468
+ const FrameRow = forwardRef<ViewRef, FrameRowProps>(
468
469
  (
469
470
  { className, divided, chevron, wrap, align = 'center', children, onPress, ...props },
470
471
  ref
@@ -520,7 +521,7 @@ export interface FrameSectionProps extends FrameProps, Dividable {
520
521
  * one group. It divides its own rows the way the panel does, so the two nest
521
522
  * without either having to know about the other.
522
523
  */
523
- const FrameSection = forwardRef<View, FrameSectionProps>(
524
+ const FrameSection = forwardRef<ViewRef, FrameSectionProps>(
524
525
  ({ className, title, divided, children, ...props }, ref) => (
525
526
  <View
526
527
  ref={ref}
@@ -577,7 +578,7 @@ function pillChildren(children: ReactNode) {
577
578
  * as things to press. Under the other two variants the panel stops being flush
578
579
  * at the bottom, which is what having a footer means there.
579
580
  */
580
- const FrameFooter = forwardRef<View, FrameFooterProps>(
581
+ const FrameFooter = forwardRef<ViewRef, FrameFooterProps>(
581
582
  ({ className, style, children, ...props }, ref) => {
582
583
  const variant = useContext(FrameVariantContext);
583
584
  const inset = variant === 'inset';
@@ -62,6 +62,7 @@ import {
62
62
  } from '../../primitives/animated-pressable';
63
63
  import { Text, type TextProps, textChildren } from '../../primitives/text';
64
64
  import { cn } from '../../utils/cn';
65
+ import type { TextRef, ViewRef } from '../../primitives/refs';
65
66
 
66
67
  type GridItemSize = 'default' | 'sm';
67
68
 
@@ -191,7 +192,7 @@ function findSpot(
191
192
  * The grid. Measures its own width, places its tiles, and stands as tall as the
192
193
  * rows they ended up needing.
193
194
  */
194
- const GridItemGroup = forwardRef<View, GridItemGroupProps>(
195
+ const GridItemGroup = forwardRef<ViewRef, GridItemGroupProps>(
195
196
  (
196
197
  {
197
198
  className,
@@ -311,7 +312,7 @@ export interface GridItemProps
311
312
  * Renders as a pressable when given `onPress`, and as a plain view otherwise,
312
313
  * so a tile that is only showing a number does not announce itself as a button.
313
314
  */
314
- const GridItemRoot = forwardRef<View, GridItemProps>(
315
+ const GridItemRoot = forwardRef<ViewRef, GridItemProps>(
315
316
  (
316
317
  {
317
318
  className,
@@ -374,7 +375,7 @@ export interface GridItemBackgroundProps extends ViewProps {
374
375
  * grid read as a bento grid rather than as a wall of stat cards, and it is the
375
376
  * one part that is meant to be cropped: the tile clips it.
376
377
  */
377
- const GridItemBackground = forwardRef<View, GridItemBackgroundProps>(
378
+ const GridItemBackground = forwardRef<ViewRef, GridItemBackgroundProps>(
378
379
  ({ className, children, ...props }, ref) => (
379
380
  <View
380
381
  ref={ref}
@@ -397,7 +398,7 @@ export interface GridItemMediaProps
397
398
  }
398
399
 
399
400
  /** Leading slot: an icon tile, a thumbnail, or an avatar passed through. */
400
- const GridItemMedia = forwardRef<View, GridItemMediaProps>(
401
+ const GridItemMedia = forwardRef<ViewRef, GridItemMediaProps>(
401
402
  ({ className, variant, size, children, ...props }, ref) => {
402
403
  const grid = useContext(GridItemContext);
403
404
 
@@ -419,7 +420,7 @@ export interface GridItemTitleProps extends TextProps {
419
420
  }
420
421
 
421
422
  /** What the tile is of. Quiet, because the number under it is the message. */
422
- const GridItemTitle = forwardRef<React.ElementRef<typeof Text>, GridItemTitleProps>(
423
+ const GridItemTitle = forwardRef<TextRef, GridItemTitleProps>(
423
424
  ({ className, ...props }, ref) => {
424
425
  const { size } = useContext(GridItemContext);
425
426
  const { title } = gridItemVariants({ size });
@@ -434,7 +435,7 @@ export interface GridItemValueProps extends TextProps {
434
435
  }
435
436
 
436
437
  /** The figure. The largest thing on the tile, and the reason it is there. */
437
- const GridItemValue = forwardRef<React.ElementRef<typeof Text>, GridItemValueProps>(
438
+ const GridItemValue = forwardRef<TextRef, GridItemValueProps>(
438
439
  ({ className, ...props }, ref) => {
439
440
  const { size } = useContext(GridItemContext);
440
441
  const { value } = gridItemVariants({ size });
@@ -449,7 +450,7 @@ export interface GridItemDescriptionProps extends TextProps {
449
450
  }
450
451
 
451
452
  const GridItemDescription = forwardRef<
452
- React.ElementRef<typeof Text>,
453
+ TextRef,
453
454
  GridItemDescriptionProps
454
455
  >(({ className, ...props }, ref) => {
455
456
  const { size } = useContext(GridItemContext);
@@ -471,7 +472,7 @@ export interface GridItemFooterProps extends ViewProps {
471
472
  * pushing the footer down with the space left over pins it to the bottom
472
473
  * without taking it out of the layout the rest of the tile is sharing.
473
474
  */
474
- const GridItemFooter = forwardRef<View, GridItemFooterProps>(
475
+ const GridItemFooter = forwardRef<ViewRef, GridItemFooterProps>(
475
476
  ({ className, children, ...props }, ref) => (
476
477
  <View
477
478
  ref={ref}
@@ -490,7 +491,7 @@ export interface GridItemActionsProps extends ViewProps {
490
491
  }
491
492
 
492
493
  /** Trailing slot: buttons, a chip, a chevron. */
493
- const GridItemActions = forwardRef<View, GridItemActionsProps>(
494
+ const GridItemActions = forwardRef<ViewRef, GridItemActionsProps>(
494
495
  ({ className, children, ...props }, ref) => (
495
496
  <View
496
497
  ref={ref}
@@ -75,6 +75,7 @@ import {
75
75
  } from '../../primitives/chart-accessibility';
76
76
  import { cn } from '../../utils/cn';
77
77
  import { normalizeWeekStart, startOfDay } from '../../utils/date';
78
+ import type { ViewRef } from '../../primitives/refs';
78
79
 
79
80
 
80
81
  /**
@@ -402,7 +403,7 @@ export interface HeatmapChartProps extends ViewProps, ChartAccessibilityProps<He
402
403
  children?: ReactNode;
403
404
  }
404
405
 
405
- const HeatmapChartRoot = forwardRef<View, HeatmapChartProps>(function HeatmapChartRoot(
406
+ const HeatmapChartRoot = forwardRef<ViewRef, HeatmapChartProps>(function HeatmapChartRoot(
406
407
  {
407
408
  className,
408
409
  data,
@@ -119,6 +119,7 @@ import {
119
119
  type Rect,
120
120
  type Size,
121
121
  } from './image-viewer-geometry';
122
+ import type { ViewRef } from '../../primitives/refs';
122
123
 
123
124
  /** Space between two pages of a gallery, so a page turn reads as two pictures. */
124
125
  const PAGE_GAP = 16;
@@ -475,7 +476,7 @@ function ImageViewerTrigger({
475
476
  }: ImageViewerTriggerProps) {
476
477
  const { store, hiddenId, openItem } = useViewer('ImageViewer.Trigger');
477
478
  const id = useId();
478
- const ref = useRef<View>(null);
479
+ const ref = useRef<ViewRef>(null);
479
480
  const orderRef = useRef<number | null>(null);
480
481
  orderRef.current ??= store.nextOrder();
481
482
 
@@ -60,6 +60,7 @@ import { KeyboardAvoider } from '../../primitives/keyboard-avoider';
60
60
  import { Text, textChildren } from '../../primitives/text';
61
61
  import { Label } from '../label';
62
62
  import { inputContentPadding } from './input-content-padding';
63
+ import type { TextInputRef } from '../../primitives/refs';
63
64
 
64
65
  /** Long enough to read as a transition, short enough not to lag a fast tab. */
65
66
  const FOCUS_DURATION = 150;
@@ -214,7 +215,7 @@ export interface InputProps
214
215
 
215
216
  const AnimatedTextInput = Animated.createAnimatedComponent(TextInput);
216
217
 
217
- export const Input = forwardRef<TextInput, InputProps>(
218
+ export const Input = forwardRef<TextInputRef, InputProps>(
218
219
  (
219
220
  {
220
221
  className,
@@ -28,6 +28,7 @@ import {
28
28
  type InputGroupDecoratorOwner,
29
29
  type InputGroupDecoratorSide,
30
30
  } from './input-group-measurements';
31
+ import type { TextInputRef, ViewRef } from '../../primitives/refs';
31
32
 
32
33
  const inputGroupVariants = tv({
33
34
  slots: {
@@ -70,7 +71,7 @@ export interface InputGroupProps extends ViewProps {
70
71
  children?: ReactNode;
71
72
  }
72
73
 
73
- const InputGroupRoot = forwardRef<View, InputGroupProps>(
74
+ const InputGroupRoot = forwardRef<ViewRef, InputGroupProps>(
74
75
  ({ className, isDisabled = false, children, ...props }, ref) => {
75
76
  const { root } = inputGroupVariants();
76
77
  const { prefixWidth, suffixWidth, measureDecorator, removeDecorator } =
@@ -117,7 +118,7 @@ export interface InputGroupDecoratorProps extends ViewProps {
117
118
 
118
119
  /** Builds Prefix/Suffix, which differ only in which side they measure. */
119
120
  function createDecorator(side: 'prefix' | 'suffix') {
120
- const Decorator = forwardRef<View, InputGroupDecoratorProps>(
121
+ const Decorator = forwardRef<ViewRef, InputGroupDecoratorProps>(
121
122
  ({ className, isDecorative = false, onLayout, children, ...props }, ref) => {
122
123
  const group = useInputGroup();
123
124
  const slots = inputGroupVariants({ isDisabled: group?.isDisabled ?? false });
@@ -163,7 +164,7 @@ export type InputGroupInputProps = InputProps;
163
164
  * The Input itself. Receives left/right padding matching the measured
164
165
  * decorator widths, so its text always clears them.
165
166
  */
166
- const InputGroupInput = forwardRef<TextInput, InputGroupInputProps>(
167
+ const InputGroupInput = forwardRef<TextInputRef, InputGroupInputProps>(
167
168
  ({ style, disabled, ...props }, ref) => {
168
169
  const group = useInputGroup();
169
170
 
@@ -30,6 +30,7 @@ import { tv, type VariantProps } from 'tailwind-variants';
30
30
  import { AnimatedPressable, type AnimatedPressableProps } from '../../primitives/animated-pressable';
31
31
  import { Text, type TextProps, textChildren } from '../../primitives/text';
32
32
  import { cn } from '../../utils/cn';
33
+ import type { TextRef, ViewRef } from '../../primitives/refs';
33
34
 
34
35
  type ItemSize = 'default' | 'sm' | 'xs';
35
36
  type ItemOrientation = 'horizontal' | 'vertical';
@@ -129,7 +130,7 @@ export interface ItemProps
129
130
  * Renders as a pressable when given `onPress`, and as a plain view otherwise,
130
131
  * so a static row does not announce itself as a button.
131
132
  */
132
- const ItemRoot = forwardRef<View, ItemProps>(
133
+ const ItemRoot = forwardRef<ViewRef, ItemProps>(
133
134
  (
134
135
  {
135
136
  className,
@@ -187,7 +188,7 @@ export interface ItemGroupProps extends ViewProps {
187
188
  }
188
189
 
189
190
  /** Stack of items. Pair with `Item.Separator` between them. */
190
- const ItemGroup = forwardRef<View, ItemGroupProps>(
191
+ const ItemGroup = forwardRef<ViewRef, ItemGroupProps>(
191
192
  ({ className, orientation = 'vertical', children, ...props }, ref) => (
192
193
  <View
193
194
  ref={ref}
@@ -213,7 +214,7 @@ export interface ItemSeparatorProps extends ViewProps {
213
214
  }
214
215
 
215
216
  /** Hairline between rows in a group. */
216
- const ItemSeparator = forwardRef<View, ItemSeparatorProps>(
217
+ const ItemSeparator = forwardRef<ViewRef, ItemSeparatorProps>(
217
218
  ({ className, orientation = 'vertical', ...props }, ref) => (
218
219
  <View
219
220
  ref={ref}
@@ -236,7 +237,7 @@ export interface ItemMediaProps
236
237
  }
237
238
 
238
239
  /** Leading slot: an icon tile, a thumbnail, or an avatar passed through. */
239
- const ItemMedia = forwardRef<View, ItemMediaProps>(
240
+ const ItemMedia = forwardRef<ViewRef, ItemMediaProps>(
240
241
  ({ className, variant, size, children, ...props }, ref) => {
241
242
  const item = useContext(ItemContext);
242
243
 
@@ -263,7 +264,7 @@ export interface ItemContentProps extends ViewProps {
263
264
  * actions stay pinned to the trailing edge; in a vertical one it just fills
264
265
  * the width, because there is nothing beside it to push against.
265
266
  */
266
- const ItemContent = forwardRef<View, ItemContentProps>(
267
+ const ItemContent = forwardRef<ViewRef, ItemContentProps>(
267
268
  ({ className, children, ...props }, ref) => {
268
269
  const { orientation } = useContext(ItemContext);
269
270
 
@@ -288,7 +289,7 @@ export interface ItemTitleProps extends TextProps {
288
289
  className?: string;
289
290
  }
290
291
 
291
- const ItemTitle = forwardRef<React.ElementRef<typeof Text>, ItemTitleProps>(
292
+ const ItemTitle = forwardRef<TextRef, ItemTitleProps>(
292
293
  ({ className, ...props }, ref) => {
293
294
  const { size } = useContext(ItemContext);
294
295
  const { title } = itemVariants({ size });
@@ -303,7 +304,7 @@ export interface ItemDescriptionProps extends TextProps {
303
304
  }
304
305
 
305
306
  const ItemDescription = forwardRef<
306
- React.ElementRef<typeof Text>,
307
+ TextRef,
307
308
  ItemDescriptionProps
308
309
  >(({ className, ...props }, ref) => {
309
310
  const { size } = useContext(ItemContext);
@@ -319,7 +320,7 @@ export interface ItemActionsProps extends ViewProps {
319
320
  }
320
321
 
321
322
  /** Trailing slot: buttons, a chevron, a switch. */
322
- const ItemActions = forwardRef<View, ItemActionsProps>(
323
+ const ItemActions = forwardRef<ViewRef, ItemActionsProps>(
323
324
  ({ className, children, ...props }, ref) => (
324
325
  <View
325
326
  ref={ref}
@@ -342,7 +343,7 @@ export interface ItemHeaderProps extends ViewProps {
342
343
  * row. Needs `orientation="vertical"` on the item, since a strip only makes
343
344
  * sense once the item stacks.
344
345
  */
345
- const ItemHeader = forwardRef<View, ItemHeaderProps>(
346
+ const ItemHeader = forwardRef<ViewRef, ItemHeaderProps>(
346
347
  ({ className, children, ...props }, ref) => (
347
348
  <View
348
349
  ref={ref}
@@ -361,7 +362,7 @@ export interface ItemFooterProps extends ViewProps {
361
362
  }
362
363
 
363
364
  /** Full-width strip below the row's main content. */
364
- const ItemFooter = forwardRef<View, ItemFooterProps>(
365
+ const ItemFooter = forwardRef<ViewRef, ItemFooterProps>(
365
366
  ({ className, children, ...props }, ref) => (
366
367
  <View
367
368
  ref={ref}
@@ -37,6 +37,7 @@ import { type SeriesColorIndex } from '../../utils/chart';
37
37
  import { LineChart, type LineChartDatum } from '../line-chart';
38
38
  import { Progress } from '../progress';
39
39
  import { Surface } from '../surface';
40
+ import type { ViewRef } from '../../primitives/refs';
40
41
 
41
42
  /** Height of the sparkline when nothing else is said. */
42
43
  const CHART_HEIGHT = 56;
@@ -192,7 +193,7 @@ export interface KpiProps extends Omit<ViewProps, 'children'> {
192
193
  children: ReactNode;
193
194
  }
194
195
 
195
- const KpiRoot = forwardRef<View, KpiProps>(function KpiRoot(
196
+ const KpiRoot = forwardRef<ViewRef, KpiProps>(function KpiRoot(
196
197
  { className, colorIndex = 1, goodDirection = 'up', surface = true, children, ...props },
197
198
  ref
198
199
  ) {
@@ -628,7 +629,7 @@ export interface KpiGroupProps extends ViewProps {
628
629
  * caller, because "between" is the one thing a list of siblings cannot express
629
630
  * — a trailing rule after the last card is the mistake this exists to prevent.
630
631
  */
631
- const KpiGroup = forwardRef<View, KpiGroupProps>(function KpiGroup(
632
+ const KpiGroup = forwardRef<ViewRef, KpiGroupProps>(function KpiGroup(
632
633
  { className, orientation = 'horizontal', separated = true, children, ...props },
633
634
  ref
634
635
  ) {
@@ -17,6 +17,7 @@ import {
17
17
  import { View, type Text as RNText, type ViewProps } from 'react-native';
18
18
  import { tv } from 'tailwind-variants';
19
19
  import { Text, type TextProps, textChildren } from '../../primitives/text';
20
+ import type { TextRef, ViewRef } from '../../primitives/refs';
20
21
 
21
22
  const labelVariants = tv({
22
23
  slots: {
@@ -59,7 +60,7 @@ export interface LabelProps extends ViewProps {
59
60
  children?: ReactNode;
60
61
  }
61
62
 
62
- const LabelRoot = forwardRef<View, LabelProps>(
63
+ const LabelRoot = forwardRef<ViewRef, LabelProps>(
63
64
  (
64
65
  {
65
66
  className,
@@ -100,7 +101,7 @@ export interface LabelTextProps extends TextProps {
100
101
  asteriskClassName?: string;
101
102
  }
102
103
 
103
- const LabelText = forwardRef<RNText, LabelTextProps>(
104
+ const LabelText = forwardRef<TextRef, LabelTextProps>(
104
105
  ({ className, asteriskClassName, children, ...props }, ref) => {
105
106
  const { isRequired, isInvalid, isDisabled } = useContext(LabelContext);
106
107
  const { text, asterisk } = labelVariants({ isDisabled, isInvalid });
@@ -49,6 +49,7 @@ import { Text } from '../../primitives/text';
49
49
  import { cn } from '../../utils/cn';
50
50
  import { Avatar } from '../avatar';
51
51
  import { podiumHeights, rankEntries, type Ranked } from './leaderboard-rank';
52
+ import type { ViewRef } from '../../primitives/refs';
52
53
 
53
54
  export { rankEntries } from './leaderboard-rank';
54
55
  export type { Ranked as LeaderboardRanked } from './leaderboard-rank';
@@ -326,7 +327,7 @@ function ChangeLabel({ change }: { change: number | undefined }) {
326
327
  * `limit` for a long board, and `highlightId` to keep the viewer's own row in
327
328
  * sight when the limit cuts them off.
328
329
  */
329
- const LeaderboardRoot = forwardRef<View, LeaderboardProps>(function Leaderboard(
330
+ const LeaderboardRoot = forwardRef<ViewRef, LeaderboardProps>(function Leaderboard(
330
331
  {
331
332
  className,
332
333
  data,
@@ -954,6 +954,15 @@ LineChartYAxis.layer = 'overlay' as Layer;
954
954
  // plot out.
955
955
  LineChartYAxis.axis = 'y' as const;
956
956
 
957
+ /**
958
+ * How long the readout waits before claiming the touch, in milliseconds.
959
+ *
960
+ * Long enough that a tap reaches a button drawn over the chart and a swipe
961
+ * scrolls the screen, short enough that a deliberate press does not feel
962
+ * ignored.
963
+ */
964
+ const DEFAULT_HOLD = 180;
965
+
957
966
  export interface LineChartTooltipProps {
958
967
  color?: string;
959
968
  /**
@@ -965,6 +974,16 @@ export interface LineChartTooltipProps {
965
974
  formatValue?: (value: number, key: string) => string;
966
975
  /** Format the label's heading from the row. Defaults to the value at xDataKey. */
967
976
  formatX?: (datum: LineChartDatum) => string;
977
+ /**
978
+ * How long a press has to be held before the readout takes the touch, in
979
+ * milliseconds.
980
+ *
981
+ * Until then the touch belongs to whatever else wants it: a quick tap still
982
+ * reaches a button floating over the chart, and a swipe still scrolls the
983
+ * screen the chart sits in. Set `0` to read on contact, only for a chart with
984
+ * nothing over it and no scroll view around it.
985
+ */
986
+ activateAfterLongPress?: number;
968
987
  }
969
988
 
970
989
  /**
@@ -979,7 +998,13 @@ export interface LineChartTooltipProps {
979
998
  * The hit area is the whole plot. A crosshair you have to land on the line to
980
999
  * summon is a crosshair nobody finds.
981
1000
  */
982
- function LineChartTooltip({ color, showLabel = true, formatValue, formatX }: LineChartTooltipProps) {
1001
+ function LineChartTooltip({
1002
+ color,
1003
+ showLabel = true,
1004
+ formatValue,
1005
+ formatX,
1006
+ activateAfterLongPress = DEFAULT_HOLD,
1007
+ }: LineChartTooltipProps) {
983
1008
  const {
984
1009
  data,
985
1010
  xDataKey,
@@ -1022,7 +1047,8 @@ function LineChartTooltip({ color, showLabel = true, formatValue, formatX }: Lin
1022
1047
 
1023
1048
  return Gesture.Pan()
1024
1049
  .minDistance(0)
1025
- .onBegin((event) => {
1050
+ .activateAfterLongPress(activateAfterLongPress)
1051
+ .onStart((event) => {
1026
1052
  'worklet';
1027
1053
  resolve(event.x);
1028
1054
  })
@@ -1032,10 +1058,12 @@ function LineChartTooltip({ color, showLabel = true, formatValue, formatX }: Lin
1032
1058
  })
1033
1059
  .onFinalize(() => {
1034
1060
  'worklet';
1061
+ // Fires whether or not the readout ever took the touch.
1062
+ if (activeIndex.value === -1) return;
1035
1063
  activeIndex.value = -1;
1036
1064
  runOnJS(setActiveIndexJS)(-1);
1037
1065
  });
1038
- }, [total, left, width, activeIndex, setActiveIndexJS]);
1066
+ }, [total, left, width, activeIndex, setActiveIndexJS, activateAfterLongPress]);
1039
1067
 
1040
1068
  const crosshairStyle = useAnimatedStyle(() => {
1041
1069
  const index = activeIndex.value;
@@ -69,6 +69,7 @@ import {
69
69
  View,
70
70
  type LayoutChangeEvent,
71
71
  type ViewProps,
72
+ type AppStateStatus,
72
73
  } from 'react-native';
73
74
  import { Gesture, GestureDetector } from 'react-native-gesture-handler';
74
75
  import Animated, {
@@ -457,7 +458,7 @@ const LiveLineChartRoot = forwardRef<LiveLineChartHandle, LiveLineChartProps>(
457
458
  now.value = Date.now();
458
459
  }, false);
459
460
 
460
- const running = liveLineClockRuns({ paused, loading, reducedMotion, appState });
461
+ const running = liveLineClockRuns({ paused, loading, reducedMotion, appState: appState as AppStateStatus });
461
462
 
462
463
  useEffect(() => {
463
464
  frame.setActive(running);
@@ -1106,10 +1107,29 @@ LiveLineChartYAxis.displayName = 'LiveLineChart.YAxis';
1106
1107
  LiveLineChartYAxis.layer = 'overlay' as Layer;
1107
1108
  LiveLineChartYAxis.axis = 'y' as const;
1108
1109
 
1110
+ /**
1111
+ * How long the readout waits before claiming the touch, in milliseconds.
1112
+ *
1113
+ * Long enough that a tap reaches a button drawn over the chart and a swipe
1114
+ * scrolls the screen, short enough that a deliberate press does not feel
1115
+ * ignored.
1116
+ */
1117
+ const DEFAULT_HOLD = 180;
1118
+
1109
1119
  export interface LiveLineChartTooltipProps {
1110
1120
  /** Format the value. Defaults to a compact number. */
1111
1121
  formatValue?: (value: number) => string;
1112
1122
  className?: string;
1123
+ /**
1124
+ * How long a press has to be held before the readout takes the touch, in
1125
+ * milliseconds.
1126
+ *
1127
+ * Until then the touch belongs to whatever else wants it: a quick tap still
1128
+ * reaches a button floating over the chart, and a swipe still scrolls the
1129
+ * screen the chart sits in. Set `0` to read on contact, only for a chart with
1130
+ * nothing over it and no scroll view around it.
1131
+ */
1132
+ activateAfterLongPress?: number;
1113
1133
  }
1114
1134
 
1115
1135
  /**
@@ -1119,7 +1139,11 @@ export interface LiveLineChartTooltipProps {
1119
1139
  * place on screen, so it travels left with the reading it named instead of
1120
1140
  * sitting still while the line slides out from under it.
1121
1141
  */
1122
- function LiveLineChartTooltip({ formatValue, className }: LiveLineChartTooltipProps) {
1142
+ function LiveLineChartTooltip({
1143
+ formatValue,
1144
+ className,
1145
+ activateAfterLongPress = DEFAULT_HOLD,
1146
+ }: LiveLineChartTooltipProps) {
1123
1147
  const {
1124
1148
  plot,
1125
1149
  times,
@@ -1181,7 +1205,8 @@ function LiveLineChartTooltip({ formatValue, className }: LiveLineChartTooltipPr
1181
1205
 
1182
1206
  return Gesture.Pan()
1183
1207
  .minDistance(0)
1184
- .onBegin((event) => {
1208
+ .activateAfterLongPress(activateAfterLongPress)
1209
+ .onStart((event) => {
1185
1210
  'worklet';
1186
1211
  resolve(event.x);
1187
1212
  })
@@ -1191,10 +1216,12 @@ function LiveLineChartTooltip({ formatValue, className }: LiveLineChartTooltipPr
1191
1216
  })
1192
1217
  .onFinalize(() => {
1193
1218
  'worklet';
1219
+ // Fires whether or not the readout ever took the touch.
1220
+ if (activeTime.value === -1) return;
1194
1221
  activeTime.value = -1;
1195
1222
  runOnJS(report)(-1, 0);
1196
1223
  });
1197
- }, [times, values, now, windowMs, plot, activeTime, report]);
1224
+ }, [times, values, now, windowMs, plot, activeTime, report, activateAfterLongPress]);
1198
1225
 
1199
1226
  const crosshairStyle = useAnimatedStyle(() => {
1200
1227
  const time = activeTime.value;
@@ -16,6 +16,13 @@
16
16
  * - `resampling` becomes `raster-resampling` on a raster layer. Hillshade and
17
17
  * color-relief layers have no older name for it, so there it is dropped and
18
18
  * the layer keeps the default.
19
+ * - `symbol-height-offset` and `symbol-height-anchor`, which lift a label off
20
+ * the ground in a tilted view, are dropped. Native has nothing like them;
21
+ * without them the label sits on the ground, as it did before they existed.
22
+ * - `fill-layer-opacity` and `line-layer-opacity` fade a whole layer. A plain
23
+ * number is folded into `fill-opacity` or `line-opacity` when that is a plain
24
+ * number too, which looks the same for a layer whose features do not overlap;
25
+ * anything else is dropped and the layer draws at its own opacity.
19
26
  * - A tiled source with neither `url` nor `tiles` is removed. Hosted styles use
20
27
  * one to carry attribution text. Native cannot parse it, and it draws
21
28
  * nothing either way.
@@ -48,9 +55,17 @@ const OVERLAP = new Map<unknown, boolean>([
48
55
  ['cooperative', false],
49
56
  ]);
50
57
 
58
+ /** Layout properties native cannot parse and has no older name for. */
59
+ const DROPPED_LAYOUT = ['symbol-height-offset', 'symbol-height-anchor'];
60
+
51
61
  /** The layout with `-overlap` translated, or `null` when it has none. */
52
62
  function adaptLayout(layout: Json): Json | null {
53
63
  let next: Json | null = null;
64
+ for (const key of DROPPED_LAYOUT) {
65
+ if (!(key in layout)) continue;
66
+ next ??= { ...layout };
67
+ delete next[key];
68
+ }
54
69
  for (const kind of ['icon', 'text']) {
55
70
  const key = `${kind}-overlap`;
56
71
  if (!(key in layout)) continue;
@@ -65,11 +80,23 @@ function adaptLayout(layout: Json): Json | null {
65
80
  return next;
66
81
  }
67
82
 
68
- /** The paint with `resampling` translated, or `null` when it has none. */
83
+ /** The paint with `resampling` and the layer opacities translated, or `null` when it has none. */
69
84
  function adaptPaint(type: unknown, paint: Json): Json | null {
70
- if (!('resampling' in paint)) return null;
71
- const { resampling, ...next } = paint;
72
- if (type === 'raster') next['raster-resampling'] = resampling;
85
+ let next: Json | null = null;
86
+ if ('resampling' in paint) {
87
+ const { resampling, ...rest } = paint;
88
+ if (type === 'raster') rest['raster-resampling'] = resampling;
89
+ next = rest;
90
+ }
91
+ for (const kind of ['fill', 'line']) {
92
+ const key = `${kind}-layer-opacity`;
93
+ if (!(key in paint)) continue;
94
+ next ??= { ...paint };
95
+ const layer = next[key];
96
+ const own = next[`${kind}-opacity`] ?? 1;
97
+ delete next[key];
98
+ if (typeof layer === 'number' && typeof own === 'number') next[`${kind}-opacity`] = own * layer;
99
+ }
73
100
  return next;
74
101
  }
75
102