@metamask/design-system-react-native 0.24.0 → 0.25.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 (294) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/dist/components/BannerBase/BannerBase.cjs +3 -12
  3. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  4. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  5. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  6. package/dist/components/BannerBase/BannerBase.mjs +3 -12
  7. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  8. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -1
  9. package/dist/components/BannerBase/BannerBase.types.d.cts +2 -7
  10. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -1
  11. package/dist/components/BannerBase/BannerBase.types.d.mts +2 -7
  12. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -1
  13. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -1
  14. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +1 -17
  15. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs.map +1 -1
  16. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.cts.map +1 -1
  17. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.mts.map +1 -1
  18. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs +1 -17
  19. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
  20. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +1 -17
  21. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs.map +1 -1
  22. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.cts.map +1 -1
  23. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.mts.map +1 -1
  24. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs +1 -17
  25. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
  26. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +1 -17
  27. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  28. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  29. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  30. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs +1 -17
  31. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  32. package/dist/components/ButtonBase/ButtonBase.cjs +42 -28
  33. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  34. package/dist/components/ButtonBase/ButtonBase.constants.cjs +31 -1
  35. package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
  36. package/dist/components/ButtonBase/ButtonBase.constants.d.cts +6 -1
  37. package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
  38. package/dist/components/ButtonBase/ButtonBase.constants.d.mts +6 -1
  39. package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
  40. package/dist/components/ButtonBase/ButtonBase.constants.mjs +29 -1
  41. package/dist/components/ButtonBase/ButtonBase.constants.mjs.map +1 -1
  42. package/dist/components/ButtonBase/ButtonBase.d.cts +1 -1
  43. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  44. package/dist/components/ButtonBase/ButtonBase.d.mts +1 -1
  45. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  46. package/dist/components/ButtonBase/ButtonBase.mjs +45 -31
  47. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  48. package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
  49. package/dist/components/ButtonBase/ButtonBase.types.d.cts +12 -0
  50. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  51. package/dist/components/ButtonBase/ButtonBase.types.d.mts +12 -0
  52. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  53. package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
  54. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +1 -17
  55. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -1
  56. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -1
  57. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -1
  58. package/dist/components/ButtonSemantic/ButtonSemantic.mjs +1 -17
  59. package/dist/components/ButtonSemantic/ButtonSemantic.mjs.map +1 -1
  60. package/dist/components/HeaderStandard/HeaderStandard.cjs +2 -26
  61. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
  62. package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -1
  63. package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -1
  64. package/dist/components/HeaderStandard/HeaderStandard.mjs +2 -26
  65. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
  66. package/dist/components/HeaderStandard/HeaderStandard.types.cjs +0 -5
  67. package/dist/components/HeaderStandard/HeaderStandard.types.cjs.map +1 -1
  68. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts +2 -28
  69. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts.map +1 -1
  70. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts +2 -28
  71. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts.map +1 -1
  72. package/dist/components/HeaderStandard/HeaderStandard.types.mjs +1 -9
  73. package/dist/components/HeaderStandard/HeaderStandard.types.mjs.map +1 -1
  74. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs +63 -0
  75. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs.map +1 -0
  76. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.cts +4 -0
  77. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.cts.map +1 -0
  78. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.mts +4 -0
  79. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.mts.map +1 -0
  80. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.mjs +40 -0
  81. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.mjs.map +1 -0
  82. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.cjs +3 -0
  83. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.cjs.map +1 -0
  84. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.cts +31 -0
  85. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.cts.map +1 -0
  86. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.mts +31 -0
  87. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.mts.map +1 -0
  88. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.mjs +2 -0
  89. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.mjs.map +1 -0
  90. package/dist/components/HeaderStandardAnimated/index.cjs +8 -0
  91. package/dist/components/HeaderStandardAnimated/index.cjs.map +1 -0
  92. package/dist/components/HeaderStandardAnimated/index.d.cts +4 -0
  93. package/dist/components/HeaderStandardAnimated/index.d.cts.map +1 -0
  94. package/dist/components/HeaderStandardAnimated/index.d.mts +4 -0
  95. package/dist/components/HeaderStandardAnimated/index.d.mts.map +1 -0
  96. package/dist/components/HeaderStandardAnimated/index.mjs +3 -0
  97. package/dist/components/HeaderStandardAnimated/index.mjs.map +1 -0
  98. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs +62 -0
  99. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs.map +1 -0
  100. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.cts +39 -0
  101. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.cts.map +1 -0
  102. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.mts +39 -0
  103. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.mts.map +1 -0
  104. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.mjs +57 -0
  105. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.mjs.map +1 -0
  106. package/dist/components/Input/Input.cjs +25 -14
  107. package/dist/components/Input/Input.cjs.map +1 -1
  108. package/dist/components/Input/Input.d.cts.map +1 -1
  109. package/dist/components/Input/Input.d.mts.map +1 -1
  110. package/dist/components/Input/Input.mjs +25 -14
  111. package/dist/components/Input/Input.mjs.map +1 -1
  112. package/dist/components/SegmentButton/SegmentButton.cjs +86 -0
  113. package/dist/components/SegmentButton/SegmentButton.cjs.map +1 -0
  114. package/dist/components/SegmentButton/SegmentButton.d.cts +7 -0
  115. package/dist/components/SegmentButton/SegmentButton.d.cts.map +1 -0
  116. package/dist/components/SegmentButton/SegmentButton.d.mts +7 -0
  117. package/dist/components/SegmentButton/SegmentButton.d.mts.map +1 -0
  118. package/dist/components/SegmentButton/SegmentButton.mjs +66 -0
  119. package/dist/components/SegmentButton/SegmentButton.mjs.map +1 -0
  120. package/dist/components/SegmentButton/SegmentButton.types.cjs +3 -0
  121. package/dist/components/SegmentButton/SegmentButton.types.cjs.map +1 -0
  122. package/dist/components/SegmentButton/SegmentButton.types.d.cts +9 -0
  123. package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +1 -0
  124. package/dist/components/SegmentButton/SegmentButton.types.d.mts +9 -0
  125. package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +1 -0
  126. package/dist/components/SegmentButton/SegmentButton.types.mjs +2 -0
  127. package/dist/components/SegmentButton/SegmentButton.types.mjs.map +1 -0
  128. package/dist/components/SegmentButton/index.cjs +8 -0
  129. package/dist/components/SegmentButton/index.cjs.map +1 -0
  130. package/dist/components/SegmentButton/index.d.cts +4 -0
  131. package/dist/components/SegmentButton/index.d.cts.map +1 -0
  132. package/dist/components/SegmentButton/index.d.mts +4 -0
  133. package/dist/components/SegmentButton/index.d.mts.map +1 -0
  134. package/dist/components/SegmentButton/index.mjs +3 -0
  135. package/dist/components/SegmentButton/index.mjs.map +1 -0
  136. package/dist/components/SegmentGroup/SegmentGroup.cjs +47 -0
  137. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +1 -0
  138. package/dist/components/SegmentGroup/SegmentGroup.d.cts +7 -0
  139. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +1 -0
  140. package/dist/components/SegmentGroup/SegmentGroup.d.mts +7 -0
  141. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +1 -0
  142. package/dist/components/SegmentGroup/SegmentGroup.mjs +27 -0
  143. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +1 -0
  144. package/dist/components/SegmentGroup/SegmentGroup.types.cjs +3 -0
  145. package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
  146. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +12 -0
  147. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
  148. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +12 -0
  149. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
  150. package/dist/components/SegmentGroup/SegmentGroup.types.mjs +2 -0
  151. package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
  152. package/dist/components/SegmentGroup/index.cjs +6 -0
  153. package/dist/components/SegmentGroup/index.cjs.map +1 -0
  154. package/dist/components/SegmentGroup/index.d.cts +3 -0
  155. package/dist/components/SegmentGroup/index.d.cts.map +1 -0
  156. package/dist/components/SegmentGroup/index.d.mts +3 -0
  157. package/dist/components/SegmentGroup/index.d.mts.map +1 -0
  158. package/dist/components/SegmentGroup/index.mjs +2 -0
  159. package/dist/components/SegmentGroup/index.mjs.map +1 -0
  160. package/dist/components/SelectButton/SelectButton.cjs +53 -0
  161. package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
  162. package/dist/components/SelectButton/SelectButton.constants.cjs +12 -0
  163. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -0
  164. package/dist/components/SelectButton/SelectButton.constants.d.cts +4 -0
  165. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -0
  166. package/dist/components/SelectButton/SelectButton.constants.d.mts +4 -0
  167. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -0
  168. package/dist/components/SelectButton/SelectButton.constants.mjs +9 -0
  169. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -0
  170. package/dist/components/SelectButton/SelectButton.d.cts +7 -0
  171. package/dist/components/SelectButton/SelectButton.d.cts.map +1 -0
  172. package/dist/components/SelectButton/SelectButton.d.mts +7 -0
  173. package/dist/components/SelectButton/SelectButton.d.mts.map +1 -0
  174. package/dist/components/SelectButton/SelectButton.mjs +53 -0
  175. package/dist/components/SelectButton/SelectButton.mjs.map +1 -0
  176. package/dist/components/SelectButton/SelectButton.types.cjs +3 -0
  177. package/dist/components/SelectButton/SelectButton.types.cjs.map +1 -0
  178. package/dist/components/SelectButton/SelectButton.types.d.cts +13 -0
  179. package/dist/components/SelectButton/SelectButton.types.d.cts.map +1 -0
  180. package/dist/components/SelectButton/SelectButton.types.d.mts +13 -0
  181. package/dist/components/SelectButton/SelectButton.types.d.mts.map +1 -0
  182. package/dist/components/SelectButton/SelectButton.types.mjs +2 -0
  183. package/dist/components/SelectButton/SelectButton.types.mjs.map +1 -0
  184. package/dist/components/SelectButton/index.cjs +9 -0
  185. package/dist/components/SelectButton/index.cjs.map +1 -0
  186. package/dist/components/SelectButton/index.d.cts +4 -0
  187. package/dist/components/SelectButton/index.d.cts.map +1 -0
  188. package/dist/components/SelectButton/index.d.mts +4 -0
  189. package/dist/components/SelectButton/index.d.mts.map +1 -0
  190. package/dist/components/SelectButton/index.mjs +3 -0
  191. package/dist/components/SelectButton/index.mjs.map +1 -0
  192. package/dist/components/SensitiveText/SensitiveText.cjs +4 -4
  193. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
  194. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -1
  195. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -1
  196. package/dist/components/SensitiveText/SensitiveText.mjs +1 -1
  197. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
  198. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -1
  199. package/dist/components/SensitiveText/SensitiveText.types.d.cts +6 -34
  200. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -1
  201. package/dist/components/SensitiveText/SensitiveText.types.d.mts +6 -34
  202. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -1
  203. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -1
  204. package/dist/components/SensitiveText/index.cjs +3 -3
  205. package/dist/components/SensitiveText/index.cjs.map +1 -1
  206. package/dist/components/SensitiveText/index.d.cts +1 -1
  207. package/dist/components/SensitiveText/index.d.cts.map +1 -1
  208. package/dist/components/SensitiveText/index.d.mts +1 -1
  209. package/dist/components/SensitiveText/index.d.mts.map +1 -1
  210. package/dist/components/SensitiveText/index.mjs +1 -1
  211. package/dist/components/SensitiveText/index.mjs.map +1 -1
  212. package/dist/components/TextArea/TextArea.cjs +38 -0
  213. package/dist/components/TextArea/TextArea.cjs.map +1 -0
  214. package/dist/components/TextArea/TextArea.d.cts +166 -0
  215. package/dist/components/TextArea/TextArea.d.cts.map +1 -0
  216. package/dist/components/TextArea/TextArea.d.mts +166 -0
  217. package/dist/components/TextArea/TextArea.d.mts.map +1 -0
  218. package/dist/components/TextArea/TextArea.mjs +35 -0
  219. package/dist/components/TextArea/TextArea.mjs.map +1 -0
  220. package/dist/components/TextArea/TextArea.types.cjs +3 -0
  221. package/dist/components/TextArea/TextArea.types.cjs.map +1 -0
  222. package/dist/components/TextArea/TextArea.types.d.cts +63 -0
  223. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -0
  224. package/dist/components/TextArea/TextArea.types.d.mts +63 -0
  225. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -0
  226. package/dist/components/TextArea/TextArea.types.mjs +2 -0
  227. package/dist/components/TextArea/TextArea.types.mjs.map +1 -0
  228. package/dist/components/TextArea/index.cjs +6 -0
  229. package/dist/components/TextArea/index.cjs.map +1 -0
  230. package/dist/components/TextArea/index.d.cts +3 -0
  231. package/dist/components/TextArea/index.d.cts.map +1 -0
  232. package/dist/components/TextArea/index.d.mts +3 -0
  233. package/dist/components/TextArea/index.d.mts.map +1 -0
  234. package/dist/components/TextArea/index.mjs +2 -0
  235. package/dist/components/TextArea/index.mjs.map +1 -0
  236. package/dist/components/TextField/TextField.cjs +1 -2
  237. package/dist/components/TextField/TextField.cjs.map +1 -1
  238. package/dist/components/TextField/TextField.d.cts +8 -2
  239. package/dist/components/TextField/TextField.d.cts.map +1 -1
  240. package/dist/components/TextField/TextField.d.mts +8 -2
  241. package/dist/components/TextField/TextField.d.mts.map +1 -1
  242. package/dist/components/TextField/TextField.mjs +1 -2
  243. package/dist/components/TextField/TextField.mjs.map +1 -1
  244. package/dist/components/TextField/TextField.types.cjs.map +1 -1
  245. package/dist/components/TextField/TextField.types.d.cts +5 -1
  246. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  247. package/dist/components/TextField/TextField.types.d.mts +5 -1
  248. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  249. package/dist/components/TextField/TextField.types.mjs.map +1 -1
  250. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +8 -2
  251. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  252. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +8 -2
  253. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  254. package/dist/components/index.cjs +18 -2
  255. package/dist/components/index.cjs.map +1 -1
  256. package/dist/components/index.d.cts +12 -0
  257. package/dist/components/index.d.cts.map +1 -1
  258. package/dist/components/index.d.mts +12 -0
  259. package/dist/components/index.d.mts.map +1 -1
  260. package/dist/components/index.mjs +6 -0
  261. package/dist/components/index.mjs.map +1 -1
  262. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs +36 -0
  263. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs.map +1 -0
  264. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts +4 -0
  265. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts.map +1 -0
  266. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts +4 -0
  267. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts.map +1 -0
  268. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs +36 -0
  269. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs.map +1 -0
  270. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs +8 -0
  271. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs.map +1 -0
  272. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.cts +39 -0
  273. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.cts.map +1 -0
  274. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.mts +39 -0
  275. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.mts.map +1 -0
  276. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.mjs +10 -0
  277. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.mjs.map +1 -0
  278. package/dist/components/temp-components/HeaderStandardCenterColumn/index.cjs +6 -0
  279. package/dist/components/temp-components/HeaderStandardCenterColumn/index.cjs.map +1 -0
  280. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.cts +3 -0
  281. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.cts.map +1 -0
  282. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.mts +3 -0
  283. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.mts.map +1 -0
  284. package/dist/components/temp-components/HeaderStandardCenterColumn/index.mjs +2 -0
  285. package/dist/components/temp-components/HeaderStandardCenterColumn/index.mjs.map +1 -0
  286. package/package.json +2 -2
  287. package/dist/components/SensitiveText/SensitiveText.constants.cjs +0 -14
  288. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +0 -1
  289. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +0 -11
  290. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +0 -1
  291. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +0 -11
  292. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +0 -1
  293. package/dist/components/SensitiveText/SensitiveText.constants.mjs +0 -11
  294. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +0 -1
@@ -1,10 +1,2 @@
1
- function $importDefault(module) {
2
- if (module?.__esModule) {
3
- return module.default;
4
- }
5
- return module;
6
- }
7
- // Third party dependencies.
8
- import $React from "react";
9
- const React = $importDefault($React);
1
+ export {};
10
2
  //# sourceMappingURL=HeaderStandard.types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.types.ts"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,MAAK,cAAc","sourcesContent":["// Third party dependencies.\nimport React from 'react';\n\n// External dependencies.\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport type { HeaderBaseProps } from '../HeaderBase';\nimport type { TextProps } from '../Text';\n\n/**\n * HeaderStandard component props.\n */\nexport type HeaderStandardProps = HeaderBaseProps & {\n /**\n * Title to display in the header. Can be a string or a React node.\n * Used as children if children prop is not provided.\n * When string: rendered with TextVariant.BodyMd and FontWeight.Bold by default; titleProps apply.\n * When node: rendered as-is; titleProps are not applied.\n */\n title?: string | React.ReactNode;\n /**\n * Additional props to pass to the title Text component.\n * Props are spread to the Text component and can override default values.\n * Only applied when title is a string.\n */\n titleProps?: Partial<TextProps>;\n /**\n * Subtitle to display below the title. Can be a string or a React node.\n * When string: rendered with TextVariant.BodySm and TextColor.TextAlternative by default; subtitleProps apply.\n * When node: rendered as-is; subtitleProps are not applied (add spacing on your root if needed, e.g. twClassName).\n */\n subtitle?: string | React.ReactNode;\n /**\n * Additional props to pass to the subtitle Text component.\n * Props are spread to the Text component and can override default values.\n * Only applied when subtitle is a string.\n */\n subtitleProps?: Partial<TextProps>;\n /**\n * Callback when the back button is pressed.\n * If provided, a back button will be rendered as startButtonIconProps.\n */\n onBack?: () => void;\n /**\n * Additional props to pass to the back ButtonIcon.\n * If provided, a back button will be rendered as startButtonIconProps with these props spread.\n */\n backButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n /**\n * Callback when the close button is pressed.\n * If provided, a close button will be added to endButtonIconProps.\n */\n onClose?: () => void;\n /**\n * Additional props to pass to the close ButtonIcon.\n * If provided, a close button will be added to endButtonIconProps with these props spread.\n */\n closeButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n};\n"]}
1
+ {"version":3,"file":"HeaderStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// External dependencies.\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport type { HeaderBaseProps } from '../HeaderBase';\nimport type { HeaderStandardCenterColumnFields } from '../temp-components/HeaderStandardCenterColumn';\n\n/**\n * HeaderStandard component props.\n */\nexport type HeaderStandardProps = HeaderBaseProps &\n HeaderStandardCenterColumnFields & {\n /**\n * Callback when the back button is pressed.\n * If provided, a back button will be rendered as startButtonIconProps.\n */\n onBack?: () => void;\n /**\n * Additional props to pass to the back ButtonIcon.\n * If provided, a back button will be rendered as startButtonIconProps with these props spread.\n */\n backButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n /**\n * Callback when the close button is pressed.\n * If provided, a close button will be added to endButtonIconProps.\n */\n onClose?: () => void;\n /**\n * Additional props to pass to the close ButtonIcon.\n * If provided, a close button will be added to endButtonIconProps with these props spread.\n */\n closeButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n };\n"]}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.HeaderStandardAnimated = void 0;
30
+ // Third party dependencies.
31
+ const design_tokens_1 = require("@metamask/design-tokens");
32
+ const react_1 = __importDefault(require("react"));
33
+ const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
34
+ // External dependencies.
35
+ const HeaderStandard_1 = require("../HeaderStandard/index.cjs");
36
+ const HeaderStandardCenterColumn_1 = require("../temp-components/HeaderStandardCenterColumn/index.cjs");
37
+ const COMPACT_TITLE_ENTER_OFFSET_PX = 8;
38
+ const HeaderStandardAnimated = ({ title, titleProps, subtitle, subtitleProps, scrollY, titleSectionHeight, twClassName = '', ...headerStandardProps }) => {
39
+ const compactTitleProgress = (0, react_native_reanimated_1.useDerivedValue)(() => {
40
+ const hasMeasured = titleSectionHeight.value > 0;
41
+ const isFullyHidden = hasMeasured && scrollY.value >= titleSectionHeight.value;
42
+ return (0, react_native_reanimated_1.withTiming)(isFullyHidden ? 1 : 0, {
43
+ duration: design_tokens_1.AnimationDuration.Fast,
44
+ });
45
+ });
46
+ const centerAnimatedStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
47
+ const progress = compactTitleProgress.value;
48
+ return {
49
+ opacity: progress,
50
+ transform: [
51
+ { translateY: (1 - progress) * COMPACT_TITLE_ENTER_OFFSET_PX },
52
+ ],
53
+ };
54
+ });
55
+ return (<HeaderStandard_1.HeaderStandard {...headerStandardProps} twClassName={twClassName}>
56
+ <react_native_reanimated_1.default.View style={centerAnimatedStyle}>
57
+ {title ? (<HeaderStandardCenterColumn_1.HeaderStandardCenterColumn title={title} titleProps={titleProps} subtitle={subtitle} subtitleProps={subtitleProps}/>) : null}
58
+ </react_native_reanimated_1.default.View>
59
+ </HeaderStandard_1.HeaderStandard>);
60
+ };
61
+ exports.HeaderStandardAnimated = HeaderStandardAnimated;
62
+ exports.HeaderStandardAnimated.displayName = 'HeaderStandardAnimated';
63
+ //# sourceMappingURL=HeaderStandardAnimated.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.cjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA4B;AAC5B,2DAA4D;AAC5D,kDAA0B;AAC1B,mFAIiC;AAEjC,yBAAyB;AACzB,gEAAmD;AACnD,wGAA2F;AAK3F,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAEjC,MAAM,sBAAsB,GAA0C,CAAC,EAC5E,KAAK,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,WAAW,GAAG,EAAE,EAChB,GAAG,mBAAmB,EACvB,EAAE,EAAE;IACH,MAAM,oBAAoB,GAAG,IAAA,yCAAe,EAAC,GAAG,EAAE;QAChD,MAAM,WAAW,GAAG,kBAAkB,CAAC,KAAK,GAAG,CAAC,CAAC;QACjD,MAAM,aAAa,GACjB,WAAW,IAAI,OAAO,CAAC,KAAK,IAAI,kBAAkB,CAAC,KAAK,CAAC;QAC3D,OAAO,IAAA,oCAAU,EAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACvC,QAAQ,EAAE,iCAAiB,CAAC,IAAI;SACjC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,IAAA,0CAAgB,EAAC,GAAG,EAAE;QAChD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,KAAK,CAAC;QAC5C,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE;gBACT,EAAE,UAAU,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,6BAA6B,EAAE;aAC/D;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,+BAAc,CAAC,IAAI,mBAAmB,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAChE;MAAA,CAAC,iCAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC,CACxC;QAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,uDAA0B,CACzB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,aAAa,CAAC,EAC7B,CACH,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,iCAAQ,CAAC,IAAI,CACjB;IAAA,EAAE,+BAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC;AA3CW,QAAA,sBAAsB,0BA2CjC;AAEF,8BAAsB,CAAC,WAAW,GAAG,wBAAwB,CAAC","sourcesContent":["// Third party dependencies.\nimport { AnimationDuration } from '@metamask/design-tokens';\nimport React from 'react';\nimport Animated, {\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\n\n// External dependencies.\nimport { HeaderStandard } from '../HeaderStandard';\nimport { HeaderStandardCenterColumn } from '../temp-components/HeaderStandardCenterColumn';\n\n// Internal dependencies.\nimport type { HeaderStandardAnimatedProps } from './HeaderStandardAnimated.types';\n\nconst COMPACT_TITLE_ENTER_OFFSET_PX = 8;\n\nexport const HeaderStandardAnimated: React.FC<HeaderStandardAnimatedProps> = ({\n title,\n titleProps,\n subtitle,\n subtitleProps,\n scrollY,\n titleSectionHeight,\n twClassName = '',\n ...headerStandardProps\n}) => {\n const compactTitleProgress = useDerivedValue(() => {\n const hasMeasured = titleSectionHeight.value > 0;\n const isFullyHidden =\n hasMeasured && scrollY.value >= titleSectionHeight.value;\n return withTiming(isFullyHidden ? 1 : 0, {\n duration: AnimationDuration.Fast,\n });\n });\n\n const centerAnimatedStyle = useAnimatedStyle(() => {\n const progress = compactTitleProgress.value;\n return {\n opacity: progress,\n transform: [\n { translateY: (1 - progress) * COMPACT_TITLE_ENTER_OFFSET_PX },\n ],\n };\n });\n\n return (\n <HeaderStandard {...headerStandardProps} twClassName={twClassName}>\n <Animated.View style={centerAnimatedStyle}>\n {title ? (\n <HeaderStandardCenterColumn\n title={title}\n titleProps={titleProps}\n subtitle={subtitle}\n subtitleProps={subtitleProps}\n />\n ) : null}\n </Animated.View>\n </HeaderStandard>\n );\n};\n\nHeaderStandardAnimated.displayName = 'HeaderStandardAnimated';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderStandardAnimatedProps } from "./HeaderStandardAnimated.types.cjs";
3
+ export declare const HeaderStandardAnimated: React.FC<HeaderStandardAnimatedProps>;
4
+ //# sourceMappingURL=HeaderStandardAnimated.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,2CAAuC;AAIlF,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA2CxE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderStandardAnimatedProps } from "./HeaderStandardAnimated.types.mjs";
3
+ export declare const HeaderStandardAnimated: React.FC<HeaderStandardAnimatedProps>;
4
+ //# sourceMappingURL=HeaderStandardAnimated.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,2CAAuC;AAIlF,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA2CxE,CAAC"}
@@ -0,0 +1,40 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ // Third party dependencies.
8
+ import { AnimationDuration } from "@metamask/design-tokens";
9
+ import $React from "react";
10
+ const React = $importDefault($React);
11
+ import Animated, { useAnimatedStyle, useDerivedValue, withTiming } from "react-native-reanimated";
12
+ // External dependencies.
13
+ import { HeaderStandard } from "../HeaderStandard/index.mjs";
14
+ import { HeaderStandardCenterColumn } from "../temp-components/HeaderStandardCenterColumn/index.mjs";
15
+ const COMPACT_TITLE_ENTER_OFFSET_PX = 8;
16
+ export const HeaderStandardAnimated = ({ title, titleProps, subtitle, subtitleProps, scrollY, titleSectionHeight, twClassName = '', ...headerStandardProps }) => {
17
+ const compactTitleProgress = useDerivedValue(() => {
18
+ const hasMeasured = titleSectionHeight.value > 0;
19
+ const isFullyHidden = hasMeasured && scrollY.value >= titleSectionHeight.value;
20
+ return withTiming(isFullyHidden ? 1 : 0, {
21
+ duration: AnimationDuration.Fast,
22
+ });
23
+ });
24
+ const centerAnimatedStyle = useAnimatedStyle(() => {
25
+ const progress = compactTitleProgress.value;
26
+ return {
27
+ opacity: progress,
28
+ transform: [
29
+ { translateY: (1 - progress) * COMPACT_TITLE_ENTER_OFFSET_PX },
30
+ ],
31
+ };
32
+ });
33
+ return (<HeaderStandard {...headerStandardProps} twClassName={twClassName}>
34
+ <Animated.View style={centerAnimatedStyle}>
35
+ {title ? (<HeaderStandardCenterColumn title={title} titleProps={titleProps} subtitle={subtitle} subtitleProps={subtitleProps}/>) : null}
36
+ </Animated.View>
37
+ </HeaderStandard>);
38
+ };
39
+ HeaderStandardAnimated.displayName = 'HeaderStandardAnimated';
40
+ //# sourceMappingURL=HeaderStandardAnimated.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,iBAAiB,EAAE,gCAAgC;AAC5D,OAAO,MAAK,cAAc;;AAC1B,OAAO,QAAQ,EAAE,EACf,gBAAgB,EAChB,eAAe,EACf,UAAU,EACX,gCAAgC;AAEjC,yBAAyB;AACzB,OAAO,EAAE,cAAc,EAAE,oCAA0B;AACnD,OAAO,EAAE,0BAA0B,EAAE,gEAAsD;AAK3F,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,sBAAsB,GAA0C,CAAC,EAC5E,KAAK,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,WAAW,GAAG,EAAE,EAChB,GAAG,mBAAmB,EACvB,EAAE,EAAE;IACH,MAAM,oBAAoB,GAAG,eAAe,CAAC,GAAG,EAAE;QAChD,MAAM,WAAW,GAAG,kBAAkB,CAAC,KAAK,GAAG,CAAC,CAAC;QACjD,MAAM,aAAa,GACjB,WAAW,IAAI,OAAO,CAAC,KAAK,IAAI,kBAAkB,CAAC,KAAK,CAAC;QAC3D,OAAO,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACvC,QAAQ,EAAE,iBAAiB,CAAC,IAAI;SACjC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,GAAG,EAAE;QAChD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,KAAK,CAAC;QAC5C,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE;gBACT,EAAE,UAAU,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,6BAA6B,EAAE;aAC/D;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,cAAc,CAAC,IAAI,mBAAmB,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAChE;MAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC,CACxC;QAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,0BAA0B,CACzB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,aAAa,CAAC,EAC7B,CACH,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,QAAQ,CAAC,IAAI,CACjB;IAAA,EAAE,cAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,sBAAsB,CAAC,WAAW,GAAG,wBAAwB,CAAC","sourcesContent":["// Third party dependencies.\nimport { AnimationDuration } from '@metamask/design-tokens';\nimport React from 'react';\nimport Animated, {\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\n\n// External dependencies.\nimport { HeaderStandard } from '../HeaderStandard';\nimport { HeaderStandardCenterColumn } from '../temp-components/HeaderStandardCenterColumn';\n\n// Internal dependencies.\nimport type { HeaderStandardAnimatedProps } from './HeaderStandardAnimated.types';\n\nconst COMPACT_TITLE_ENTER_OFFSET_PX = 8;\n\nexport const HeaderStandardAnimated: React.FC<HeaderStandardAnimatedProps> = ({\n title,\n titleProps,\n subtitle,\n subtitleProps,\n scrollY,\n titleSectionHeight,\n twClassName = '',\n ...headerStandardProps\n}) => {\n const compactTitleProgress = useDerivedValue(() => {\n const hasMeasured = titleSectionHeight.value > 0;\n const isFullyHidden =\n hasMeasured && scrollY.value >= titleSectionHeight.value;\n return withTiming(isFullyHidden ? 1 : 0, {\n duration: AnimationDuration.Fast,\n });\n });\n\n const centerAnimatedStyle = useAnimatedStyle(() => {\n const progress = compactTitleProgress.value;\n return {\n opacity: progress,\n transform: [\n { translateY: (1 - progress) * COMPACT_TITLE_ENTER_OFFSET_PX },\n ],\n };\n });\n\n return (\n <HeaderStandard {...headerStandardProps} twClassName={twClassName}>\n <Animated.View style={centerAnimatedStyle}>\n {title ? (\n <HeaderStandardCenterColumn\n title={title}\n titleProps={titleProps}\n subtitle={subtitle}\n subtitleProps={subtitleProps}\n />\n ) : null}\n </Animated.View>\n </HeaderStandard>\n );\n};\n\nHeaderStandardAnimated.displayName = 'HeaderStandardAnimated';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=HeaderStandardAnimated.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.types.cjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.types.ts"],"names":[],"mappings":"","sourcesContent":["// External dependencies.\nimport type {\n ScrollHandlerProcessed,\n SharedValue,\n} from 'react-native-reanimated';\n\n// Internal dependencies.\nimport type { HeaderStandardProps } from '../HeaderStandard/HeaderStandard.types';\n\n/**\n * HeaderStandardAnimated component props.\n * Extends HeaderStandardProps with scroll-driven animation inputs.\n * Title/subtitle fields come from HeaderStandardCenterColumnFields via HeaderStandardProps.\n * Center content is driven by title/subtitle only; `children` is not supported.\n */\nexport type HeaderStandardAnimatedProps = Omit<\n HeaderStandardProps,\n 'children'\n> & {\n /**\n * Shared value for scroll offset from the ScrollView.\n * Used to drive the center-title animation when scroll passes the title section.\n */\n scrollY: SharedValue<number>;\n /**\n * Shared value for the height of the title section (first child of ScrollView).\n * When scrollY >= titleSectionHeight, the compact center title is shown.\n */\n titleSectionHeight: SharedValue<number>;\n};\n\n/**\n * Return type for useHeaderStandardAnimated hook.\n * onScroll is an animated scroll handler; use with Animated.ScrollView for UI-thread updates.\n */\nexport type UseHeaderStandardAnimatedReturn = {\n scrollY: SharedValue<number>;\n titleSectionHeightSv: SharedValue<number>;\n setTitleSectionHeight: (height: number) => void;\n onScroll: ScrollHandlerProcessed;\n};\n"]}
@@ -0,0 +1,31 @@
1
+ import type { ScrollHandlerProcessed, SharedValue } from "react-native-reanimated";
2
+ import type { HeaderStandardProps } from "../HeaderStandard/HeaderStandard.types.cjs";
3
+ /**
4
+ * HeaderStandardAnimated component props.
5
+ * Extends HeaderStandardProps with scroll-driven animation inputs.
6
+ * Title/subtitle fields come from HeaderStandardCenterColumnFields via HeaderStandardProps.
7
+ * Center content is driven by title/subtitle only; `children` is not supported.
8
+ */
9
+ export type HeaderStandardAnimatedProps = Omit<HeaderStandardProps, 'children'> & {
10
+ /**
11
+ * Shared value for scroll offset from the ScrollView.
12
+ * Used to drive the center-title animation when scroll passes the title section.
13
+ */
14
+ scrollY: SharedValue<number>;
15
+ /**
16
+ * Shared value for the height of the title section (first child of ScrollView).
17
+ * When scrollY >= titleSectionHeight, the compact center title is shown.
18
+ */
19
+ titleSectionHeight: SharedValue<number>;
20
+ };
21
+ /**
22
+ * Return type for useHeaderStandardAnimated hook.
23
+ * onScroll is an animated scroll handler; use with Animated.ScrollView for UI-thread updates.
24
+ */
25
+ export type UseHeaderStandardAnimatedReturn = {
26
+ scrollY: SharedValue<number>;
27
+ titleSectionHeightSv: SharedValue<number>;
28
+ setTitleSectionHeight: (height: number) => void;
29
+ onScroll: ScrollHandlerProcessed;
30
+ };
31
+ //# sourceMappingURL=HeaderStandardAnimated.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.types.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,sBAAsB,EACtB,WAAW,EACZ,gCAAgC;AAGjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mDAA+C;AAElF;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,mBAAmB,EACnB,UAAU,CACX,GAAG;IACF;;;OAGG;IACH,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B;;;OAGG;IACH,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACzC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,sBAAsB,CAAC;CAClC,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { ScrollHandlerProcessed, SharedValue } from "react-native-reanimated";
2
+ import type { HeaderStandardProps } from "../HeaderStandard/HeaderStandard.types.mjs";
3
+ /**
4
+ * HeaderStandardAnimated component props.
5
+ * Extends HeaderStandardProps with scroll-driven animation inputs.
6
+ * Title/subtitle fields come from HeaderStandardCenterColumnFields via HeaderStandardProps.
7
+ * Center content is driven by title/subtitle only; `children` is not supported.
8
+ */
9
+ export type HeaderStandardAnimatedProps = Omit<HeaderStandardProps, 'children'> & {
10
+ /**
11
+ * Shared value for scroll offset from the ScrollView.
12
+ * Used to drive the center-title animation when scroll passes the title section.
13
+ */
14
+ scrollY: SharedValue<number>;
15
+ /**
16
+ * Shared value for the height of the title section (first child of ScrollView).
17
+ * When scrollY >= titleSectionHeight, the compact center title is shown.
18
+ */
19
+ titleSectionHeight: SharedValue<number>;
20
+ };
21
+ /**
22
+ * Return type for useHeaderStandardAnimated hook.
23
+ * onScroll is an animated scroll handler; use with Animated.ScrollView for UI-thread updates.
24
+ */
25
+ export type UseHeaderStandardAnimatedReturn = {
26
+ scrollY: SharedValue<number>;
27
+ titleSectionHeightSv: SharedValue<number>;
28
+ setTitleSectionHeight: (height: number) => void;
29
+ onScroll: ScrollHandlerProcessed;
30
+ };
31
+ //# sourceMappingURL=HeaderStandardAnimated.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.types.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,sBAAsB,EACtB,WAAW,EACZ,gCAAgC;AAGjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mDAA+C;AAElF;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,mBAAmB,EACnB,UAAU,CACX,GAAG;IACF;;;OAGG;IACH,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B;;;OAGG;IACH,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACzC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,sBAAsB,CAAC;CAClC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HeaderStandardAnimated.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandardAnimated.types.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/HeaderStandardAnimated.types.ts"],"names":[],"mappings":"","sourcesContent":["// External dependencies.\nimport type {\n ScrollHandlerProcessed,\n SharedValue,\n} from 'react-native-reanimated';\n\n// Internal dependencies.\nimport type { HeaderStandardProps } from '../HeaderStandard/HeaderStandard.types';\n\n/**\n * HeaderStandardAnimated component props.\n * Extends HeaderStandardProps with scroll-driven animation inputs.\n * Title/subtitle fields come from HeaderStandardCenterColumnFields via HeaderStandardProps.\n * Center content is driven by title/subtitle only; `children` is not supported.\n */\nexport type HeaderStandardAnimatedProps = Omit<\n HeaderStandardProps,\n 'children'\n> & {\n /**\n * Shared value for scroll offset from the ScrollView.\n * Used to drive the center-title animation when scroll passes the title section.\n */\n scrollY: SharedValue<number>;\n /**\n * Shared value for the height of the title section (first child of ScrollView).\n * When scrollY >= titleSectionHeight, the compact center title is shown.\n */\n titleSectionHeight: SharedValue<number>;\n};\n\n/**\n * Return type for useHeaderStandardAnimated hook.\n * onScroll is an animated scroll handler; use with Animated.ScrollView for UI-thread updates.\n */\nexport type UseHeaderStandardAnimatedReturn = {\n scrollY: SharedValue<number>;\n titleSectionHeightSv: SharedValue<number>;\n setTitleSectionHeight: (height: number) => void;\n onScroll: ScrollHandlerProcessed;\n};\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useHeaderStandardAnimated = exports.HeaderStandardAnimated = void 0;
4
+ var HeaderStandardAnimated_1 = require("./HeaderStandardAnimated.cjs");
5
+ Object.defineProperty(exports, "HeaderStandardAnimated", { enumerable: true, get: function () { return HeaderStandardAnimated_1.HeaderStandardAnimated; } });
6
+ var useHeaderStandardAnimated_1 = require("./useHeaderStandardAnimated.cjs");
7
+ Object.defineProperty(exports, "useHeaderStandardAnimated", { enumerable: true, get: function () { return useHeaderStandardAnimated_1.useHeaderStandardAnimated; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/index.ts"],"names":[],"mappings":";;;AAAA,uEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,6EAAwE;AAA/D,sIAAA,yBAAyB,OAAA","sourcesContent":["export { HeaderStandardAnimated } from './HeaderStandardAnimated';\nexport { useHeaderStandardAnimated } from './useHeaderStandardAnimated';\nexport type {\n HeaderStandardAnimatedProps,\n UseHeaderStandardAnimatedReturn,\n} from './HeaderStandardAnimated.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { HeaderStandardAnimated } from "./HeaderStandardAnimated.cjs";
2
+ export { useHeaderStandardAnimated } from "./useHeaderStandardAnimated.cjs";
3
+ export type { HeaderStandardAnimatedProps, UseHeaderStandardAnimatedReturn, } from "./HeaderStandardAnimated.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qCAAiC;AAClE,OAAO,EAAE,yBAAyB,EAAE,wCAAoC;AACxE,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,GAChC,2CAAuC"}
@@ -0,0 +1,4 @@
1
+ export { HeaderStandardAnimated } from "./HeaderStandardAnimated.mjs";
2
+ export { useHeaderStandardAnimated } from "./useHeaderStandardAnimated.mjs";
3
+ export type { HeaderStandardAnimatedProps, UseHeaderStandardAnimatedReturn, } from "./HeaderStandardAnimated.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qCAAiC;AAClE,OAAO,EAAE,yBAAyB,EAAE,wCAAoC;AACxE,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,GAChC,2CAAuC"}
@@ -0,0 +1,3 @@
1
+ export { HeaderStandardAnimated } from "./HeaderStandardAnimated.mjs";
2
+ export { useHeaderStandardAnimated } from "./useHeaderStandardAnimated.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qCAAiC;AAClE,OAAO,EAAE,yBAAyB,EAAE,wCAAoC","sourcesContent":["export { HeaderStandardAnimated } from './HeaderStandardAnimated';\nexport { useHeaderStandardAnimated } from './useHeaderStandardAnimated';\nexport type {\n HeaderStandardAnimatedProps,\n UseHeaderStandardAnimatedReturn,\n} from './HeaderStandardAnimated.types';\n"]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useHeaderStandardAnimated = exports.updateScrollYFromEvent = void 0;
4
+ // Third party dependencies.
5
+ const react_1 = require("react");
6
+ const react_native_reanimated_1 = require("react-native-reanimated");
7
+ /**
8
+ * Writes a vertical content offset into the scroll shared value.
9
+ *
10
+ * @param scrollYValue - Shared value for vertical scroll offset.
11
+ * @param contentOffsetY - `contentOffset.y` from the scroll event.
12
+ */
13
+ function updateScrollYFromEvent(scrollYValue, contentOffsetY) {
14
+ scrollYValue.value = contentOffsetY;
15
+ }
16
+ exports.updateScrollYFromEvent = updateScrollYFromEvent;
17
+ /**
18
+ * Hook for managing HeaderStandardAnimated scroll-linked animations.
19
+ * Use with HeaderStandardAnimated placed outside the ScrollView as a sibling.
20
+ * Use the returned onScroll with Animated.ScrollView for UI-thread scroll updates (zero lag).
21
+ *
22
+ * @returns Object containing scrollY, titleSectionHeightSv, setTitleSectionHeight, and onScroll.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * const { scrollY, onScroll, setTitleSectionHeight, titleSectionHeightSv } =
27
+ * useHeaderStandardAnimated();
28
+ *
29
+ * <Box twClassName="flex-1">
30
+ * <HeaderStandardAnimated
31
+ * scrollY={scrollY}
32
+ * titleSectionHeight={titleSectionHeightSv}
33
+ * title="Market"
34
+ * onBack={handleBack}
35
+ * />
36
+ * <Animated.ScrollView onScroll={onScroll} scrollEventThrottle={16}>
37
+ * <Box onLayout={(e) => setTitleSectionHeight(e.nativeEvent.layout.height)}>
38
+ * ...first scroll section (layout height drives compact title timing)
39
+ * </Box>
40
+ * {/* page body *\/}
41
+ * </Animated.ScrollView>
42
+ * </Box>
43
+ * ```
44
+ */
45
+ function useHeaderStandardAnimated() {
46
+ const scrollYValue = (0, react_native_reanimated_1.useSharedValue)(0);
47
+ const titleSectionHeightSv = (0, react_native_reanimated_1.useSharedValue)(0);
48
+ const setTitleSectionHeight = (0, react_1.useCallback)((height) => {
49
+ titleSectionHeightSv.value = height;
50
+ }, [titleSectionHeightSv]);
51
+ const onScroll = (0, react_native_reanimated_1.useAnimatedScrollHandler)({
52
+ onScroll: (scrollEvent) => updateScrollYFromEvent(scrollYValue, scrollEvent.contentOffset.y),
53
+ });
54
+ return {
55
+ scrollY: scrollYValue,
56
+ titleSectionHeightSv,
57
+ setTitleSectionHeight,
58
+ onScroll,
59
+ };
60
+ }
61
+ exports.useHeaderStandardAnimated = useHeaderStandardAnimated;
62
+ //# sourceMappingURL=useHeaderStandardAnimated.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderStandardAnimated.cjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/useHeaderStandardAnimated.ts"],"names":[],"mappings":";;;AAAA,4BAA4B;AAC5B,iCAAoC;AAEpC,qEAGiC;AAKjC;;;;;GAKG;AACH,SAAgB,sBAAsB,CACpC,YAAiC,EACjC,cAAsB;IAEtB,YAAY,CAAC,KAAK,GAAG,cAAc,CAAC;AACtC,CAAC;AALD,wDAKC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,yBAAyB;IACvC,MAAM,YAAY,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IACvC,MAAM,oBAAoB,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IAE/C,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,CAAC,MAAc,EAAE,EAAE;QACjB,oBAAoB,CAAC,KAAK,GAAG,MAAM,CAAC;IACtC,CAAC,EACD,CAAC,oBAAoB,CAAC,CACvB,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAA,kDAAwB,EAAC;QACxC,QAAQ,EAAE,CAAC,WAAW,EAAE,EAAE,CACxB,sBAAsB,CAAC,YAAY,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC;KACpE,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,oBAAoB;QACpB,qBAAqB;QACrB,QAAQ;KACT,CAAC;AACJ,CAAC;AAtBD,8DAsBC","sourcesContent":["// Third party dependencies.\nimport { useCallback } from 'react';\nimport type { SharedValue } from 'react-native-reanimated';\nimport {\n useSharedValue,\n useAnimatedScrollHandler,\n} from 'react-native-reanimated';\n\n// Internal dependencies.\nimport type { UseHeaderStandardAnimatedReturn } from './HeaderStandardAnimated.types';\n\n/**\n * Writes a vertical content offset into the scroll shared value.\n *\n * @param scrollYValue - Shared value for vertical scroll offset.\n * @param contentOffsetY - `contentOffset.y` from the scroll event.\n */\nexport function updateScrollYFromEvent(\n scrollYValue: SharedValue<number>,\n contentOffsetY: number,\n) {\n scrollYValue.value = contentOffsetY;\n}\n\n/**\n * Hook for managing HeaderStandardAnimated scroll-linked animations.\n * Use with HeaderStandardAnimated placed outside the ScrollView as a sibling.\n * Use the returned onScroll with Animated.ScrollView for UI-thread scroll updates (zero lag).\n *\n * @returns Object containing scrollY, titleSectionHeightSv, setTitleSectionHeight, and onScroll.\n *\n * @example\n * ```tsx\n * const { scrollY, onScroll, setTitleSectionHeight, titleSectionHeightSv } =\n * useHeaderStandardAnimated();\n *\n * <Box twClassName=\"flex-1\">\n * <HeaderStandardAnimated\n * scrollY={scrollY}\n * titleSectionHeight={titleSectionHeightSv}\n * title=\"Market\"\n * onBack={handleBack}\n * />\n * <Animated.ScrollView onScroll={onScroll} scrollEventThrottle={16}>\n * <Box onLayout={(e) => setTitleSectionHeight(e.nativeEvent.layout.height)}>\n * ...first scroll section (layout height drives compact title timing)\n * </Box>\n * {/* page body *\\/}\n * </Animated.ScrollView>\n * </Box>\n * ```\n */\nexport function useHeaderStandardAnimated(): UseHeaderStandardAnimatedReturn {\n const scrollYValue = useSharedValue(0);\n const titleSectionHeightSv = useSharedValue(0);\n\n const setTitleSectionHeight = useCallback(\n (height: number) => {\n titleSectionHeightSv.value = height;\n },\n [titleSectionHeightSv],\n );\n\n const onScroll = useAnimatedScrollHandler({\n onScroll: (scrollEvent) =>\n updateScrollYFromEvent(scrollYValue, scrollEvent.contentOffset.y),\n });\n\n return {\n scrollY: scrollYValue,\n titleSectionHeightSv,\n setTitleSectionHeight,\n onScroll,\n };\n}\n"]}
@@ -0,0 +1,39 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+ import type { UseHeaderStandardAnimatedReturn } from "./HeaderStandardAnimated.types.cjs";
3
+ /**
4
+ * Writes a vertical content offset into the scroll shared value.
5
+ *
6
+ * @param scrollYValue - Shared value for vertical scroll offset.
7
+ * @param contentOffsetY - `contentOffset.y` from the scroll event.
8
+ */
9
+ export declare function updateScrollYFromEvent(scrollYValue: SharedValue<number>, contentOffsetY: number): void;
10
+ /**
11
+ * Hook for managing HeaderStandardAnimated scroll-linked animations.
12
+ * Use with HeaderStandardAnimated placed outside the ScrollView as a sibling.
13
+ * Use the returned onScroll with Animated.ScrollView for UI-thread scroll updates (zero lag).
14
+ *
15
+ * @returns Object containing scrollY, titleSectionHeightSv, setTitleSectionHeight, and onScroll.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * const { scrollY, onScroll, setTitleSectionHeight, titleSectionHeightSv } =
20
+ * useHeaderStandardAnimated();
21
+ *
22
+ * <Box twClassName="flex-1">
23
+ * <HeaderStandardAnimated
24
+ * scrollY={scrollY}
25
+ * titleSectionHeight={titleSectionHeightSv}
26
+ * title="Market"
27
+ * onBack={handleBack}
28
+ * />
29
+ * <Animated.ScrollView onScroll={onScroll} scrollEventThrottle={16}>
30
+ * <Box onLayout={(e) => setTitleSectionHeight(e.nativeEvent.layout.height)}>
31
+ * ...first scroll section (layout height drives compact title timing)
32
+ * </Box>
33
+ * {/* page body *\/}
34
+ * </Animated.ScrollView>
35
+ * </Box>
36
+ * ```
37
+ */
38
+ export declare function useHeaderStandardAnimated(): UseHeaderStandardAnimatedReturn;
39
+ //# sourceMappingURL=useHeaderStandardAnimated.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderStandardAnimated.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/useHeaderStandardAnimated.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,gCAAgC;AAO3D,OAAO,KAAK,EAAE,+BAA+B,EAAE,2CAAuC;AAEtF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,EACjC,cAAc,EAAE,MAAM,QAGvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,yBAAyB,IAAI,+BAA+B,CAsB3E"}
@@ -0,0 +1,39 @@
1
+ import type { SharedValue } from "react-native-reanimated";
2
+ import type { UseHeaderStandardAnimatedReturn } from "./HeaderStandardAnimated.types.mjs";
3
+ /**
4
+ * Writes a vertical content offset into the scroll shared value.
5
+ *
6
+ * @param scrollYValue - Shared value for vertical scroll offset.
7
+ * @param contentOffsetY - `contentOffset.y` from the scroll event.
8
+ */
9
+ export declare function updateScrollYFromEvent(scrollYValue: SharedValue<number>, contentOffsetY: number): void;
10
+ /**
11
+ * Hook for managing HeaderStandardAnimated scroll-linked animations.
12
+ * Use with HeaderStandardAnimated placed outside the ScrollView as a sibling.
13
+ * Use the returned onScroll with Animated.ScrollView for UI-thread scroll updates (zero lag).
14
+ *
15
+ * @returns Object containing scrollY, titleSectionHeightSv, setTitleSectionHeight, and onScroll.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * const { scrollY, onScroll, setTitleSectionHeight, titleSectionHeightSv } =
20
+ * useHeaderStandardAnimated();
21
+ *
22
+ * <Box twClassName="flex-1">
23
+ * <HeaderStandardAnimated
24
+ * scrollY={scrollY}
25
+ * titleSectionHeight={titleSectionHeightSv}
26
+ * title="Market"
27
+ * onBack={handleBack}
28
+ * />
29
+ * <Animated.ScrollView onScroll={onScroll} scrollEventThrottle={16}>
30
+ * <Box onLayout={(e) => setTitleSectionHeight(e.nativeEvent.layout.height)}>
31
+ * ...first scroll section (layout height drives compact title timing)
32
+ * </Box>
33
+ * {/* page body *\/}
34
+ * </Animated.ScrollView>
35
+ * </Box>
36
+ * ```
37
+ */
38
+ export declare function useHeaderStandardAnimated(): UseHeaderStandardAnimatedReturn;
39
+ //# sourceMappingURL=useHeaderStandardAnimated.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderStandardAnimated.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/useHeaderStandardAnimated.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,gCAAgC;AAO3D,OAAO,KAAK,EAAE,+BAA+B,EAAE,2CAAuC;AAEtF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,EACjC,cAAc,EAAE,MAAM,QAGvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,yBAAyB,IAAI,+BAA+B,CAsB3E"}
@@ -0,0 +1,57 @@
1
+ // Third party dependencies.
2
+ import { useCallback } from "react";
3
+ import { useSharedValue, useAnimatedScrollHandler } from "react-native-reanimated";
4
+ /**
5
+ * Writes a vertical content offset into the scroll shared value.
6
+ *
7
+ * @param scrollYValue - Shared value for vertical scroll offset.
8
+ * @param contentOffsetY - `contentOffset.y` from the scroll event.
9
+ */
10
+ export function updateScrollYFromEvent(scrollYValue, contentOffsetY) {
11
+ scrollYValue.value = contentOffsetY;
12
+ }
13
+ /**
14
+ * Hook for managing HeaderStandardAnimated scroll-linked animations.
15
+ * Use with HeaderStandardAnimated placed outside the ScrollView as a sibling.
16
+ * Use the returned onScroll with Animated.ScrollView for UI-thread scroll updates (zero lag).
17
+ *
18
+ * @returns Object containing scrollY, titleSectionHeightSv, setTitleSectionHeight, and onScroll.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * const { scrollY, onScroll, setTitleSectionHeight, titleSectionHeightSv } =
23
+ * useHeaderStandardAnimated();
24
+ *
25
+ * <Box twClassName="flex-1">
26
+ * <HeaderStandardAnimated
27
+ * scrollY={scrollY}
28
+ * titleSectionHeight={titleSectionHeightSv}
29
+ * title="Market"
30
+ * onBack={handleBack}
31
+ * />
32
+ * <Animated.ScrollView onScroll={onScroll} scrollEventThrottle={16}>
33
+ * <Box onLayout={(e) => setTitleSectionHeight(e.nativeEvent.layout.height)}>
34
+ * ...first scroll section (layout height drives compact title timing)
35
+ * </Box>
36
+ * {/* page body *\/}
37
+ * </Animated.ScrollView>
38
+ * </Box>
39
+ * ```
40
+ */
41
+ export function useHeaderStandardAnimated() {
42
+ const scrollYValue = useSharedValue(0);
43
+ const titleSectionHeightSv = useSharedValue(0);
44
+ const setTitleSectionHeight = useCallback((height) => {
45
+ titleSectionHeightSv.value = height;
46
+ }, [titleSectionHeightSv]);
47
+ const onScroll = useAnimatedScrollHandler({
48
+ onScroll: (scrollEvent) => updateScrollYFromEvent(scrollYValue, scrollEvent.contentOffset.y),
49
+ });
50
+ return {
51
+ scrollY: scrollYValue,
52
+ titleSectionHeightSv,
53
+ setTitleSectionHeight,
54
+ onScroll,
55
+ };
56
+ }
57
+ //# sourceMappingURL=useHeaderStandardAnimated.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderStandardAnimated.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandardAnimated/useHeaderStandardAnimated.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAAE,WAAW,EAAE,cAAc;AAEpC,OAAO,EACL,cAAc,EACd,wBAAwB,EACzB,gCAAgC;AAKjC;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,YAAiC,EACjC,cAAsB;IAEtB,YAAY,CAAC,KAAK,GAAG,cAAc,CAAC;AACtC,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,yBAAyB;IACvC,MAAM,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,oBAAoB,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAE/C,MAAM,qBAAqB,GAAG,WAAW,CACvC,CAAC,MAAc,EAAE,EAAE;QACjB,oBAAoB,CAAC,KAAK,GAAG,MAAM,CAAC;IACtC,CAAC,EACD,CAAC,oBAAoB,CAAC,CACvB,CAAC;IAEF,MAAM,QAAQ,GAAG,wBAAwB,CAAC;QACxC,QAAQ,EAAE,CAAC,WAAW,EAAE,EAAE,CACxB,sBAAsB,CAAC,YAAY,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC;KACpE,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,YAAY;QACrB,oBAAoB;QACpB,qBAAqB;QACrB,QAAQ;KACT,CAAC;AACJ,CAAC","sourcesContent":["// Third party dependencies.\nimport { useCallback } from 'react';\nimport type { SharedValue } from 'react-native-reanimated';\nimport {\n useSharedValue,\n useAnimatedScrollHandler,\n} from 'react-native-reanimated';\n\n// Internal dependencies.\nimport type { UseHeaderStandardAnimatedReturn } from './HeaderStandardAnimated.types';\n\n/**\n * Writes a vertical content offset into the scroll shared value.\n *\n * @param scrollYValue - Shared value for vertical scroll offset.\n * @param contentOffsetY - `contentOffset.y` from the scroll event.\n */\nexport function updateScrollYFromEvent(\n scrollYValue: SharedValue<number>,\n contentOffsetY: number,\n) {\n scrollYValue.value = contentOffsetY;\n}\n\n/**\n * Hook for managing HeaderStandardAnimated scroll-linked animations.\n * Use with HeaderStandardAnimated placed outside the ScrollView as a sibling.\n * Use the returned onScroll with Animated.ScrollView for UI-thread scroll updates (zero lag).\n *\n * @returns Object containing scrollY, titleSectionHeightSv, setTitleSectionHeight, and onScroll.\n *\n * @example\n * ```tsx\n * const { scrollY, onScroll, setTitleSectionHeight, titleSectionHeightSv } =\n * useHeaderStandardAnimated();\n *\n * <Box twClassName=\"flex-1\">\n * <HeaderStandardAnimated\n * scrollY={scrollY}\n * titleSectionHeight={titleSectionHeightSv}\n * title=\"Market\"\n * onBack={handleBack}\n * />\n * <Animated.ScrollView onScroll={onScroll} scrollEventThrottle={16}>\n * <Box onLayout={(e) => setTitleSectionHeight(e.nativeEvent.layout.height)}>\n * ...first scroll section (layout height drives compact title timing)\n * </Box>\n * {/* page body *\\/}\n * </Animated.ScrollView>\n * </Box>\n * ```\n */\nexport function useHeaderStandardAnimated(): UseHeaderStandardAnimatedReturn {\n const scrollYValue = useSharedValue(0);\n const titleSectionHeightSv = useSharedValue(0);\n\n const setTitleSectionHeight = useCallback(\n (height: number) => {\n titleSectionHeightSv.value = height;\n },\n [titleSectionHeightSv],\n );\n\n const onScroll = useAnimatedScrollHandler({\n onScroll: (scrollEvent) =>\n updateScrollYFromEvent(scrollYValue, scrollEvent.contentOffset.y),\n });\n\n return {\n scrollY: scrollYValue,\n titleSectionHeightSv,\n setTitleSectionHeight,\n onScroll,\n };\n}\n"]}
@@ -8,10 +8,11 @@ const react_1 = require("react");
8
8
  const react_native_1 = require("react-native/index.js");
9
9
  const Text_constants_1 = require("../Text/Text.constants.cjs");
10
10
  const Input_constants_1 = require("./Input.constants.cjs");
11
- exports.Input = (0, react_1.forwardRef)(({ style, textVariant = design_system_shared_1.TextVariant.BodyMd, isStateStylesDisabled, isDisabled = false, isReadOnly = false, value, placeholder, twClassName, onBlur, onFocus, autoFocus = false, ...props }, ref) => {
11
+ exports.Input = (0, react_1.forwardRef)(({ style, textVariant = design_system_shared_1.TextVariant.BodyMd, isStateStylesDisabled, isDisabled = false, isReadOnly = false, value, placeholder, twClassName, onBlur, onFocus, autoFocus = false, multiline, ...props }, ref) => {
12
12
  const [isFocused, setIsFocused] = (0, react_1.useState)(autoFocus);
13
13
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
14
14
  const theme = (0, design_system_twrnc_preset_1.useTheme)();
15
+ const isMultiline = multiline === true;
15
16
  const placeholderTextColor = (0, react_1.useMemo)(() => theme === design_system_twrnc_preset_1.Theme.Light
16
17
  ? design_tokens_1.lightTheme.colors.text.alternative
17
18
  : design_tokens_1.darkTheme.colors.text.alternative, [theme]);
@@ -23,7 +24,14 @@ exports.Input = (0, react_1.forwardRef)(({ style, textVariant = design_system_sh
23
24
  // the controlled value is empty. This keeps the iOS lineHeight workaround
24
25
  // scoped to the placeholder-visible state without affecting typed text.
25
26
  const isPlaceholderVisible = hasPlaceholder && value === '';
26
- const inputStyle = (0, react_1.useMemo)(() => tw.style(fontClass, 'text-default', 'bg-default', 'border', 'border-transparent', !isStateStylesDisabled && isDisabled && 'opacity-50', !isStateStylesDisabled &&
27
+ // Multiline field styles
28
+ const multilineChromeStyle = (0, react_1.useMemo)(() => tw.style('text-default', 'bg-default', 'border', 'border-transparent', !isStateStylesDisabled && isDisabled && 'opacity-50', !isStateStylesDisabled &&
29
+ !isDisabled &&
30
+ isFocused &&
31
+ 'border-primary-default', twClassName), [isStateStylesDisabled, isDisabled, isFocused, twClassName, tw]);
32
+ const multilineTypographyStyle = (0, react_1.useMemo)(() => tw.style(`text-${textVariant}`, fontClass), [textVariant, fontClass, tw]);
33
+ // Single-line field styles
34
+ const singleLineChromeStyle = (0, react_1.useMemo)(() => tw.style(fontClass, 'text-default', 'bg-default', 'border', 'border-transparent', !isStateStylesDisabled && isDisabled && 'opacity-50', !isStateStylesDisabled &&
27
35
  !isDisabled &&
28
36
  isFocused &&
29
37
  'border-primary-default', twClassName), [
@@ -34,7 +42,20 @@ exports.Input = (0, react_1.forwardRef)(({ style, textVariant = design_system_sh
34
42
  twClassName,
35
43
  tw,
36
44
  ]);
37
- const variantTextStyle = (0, react_1.useMemo)(() => Input_constants_1.MAP_TEXT_VARIANT_INPUT_METRICS[textVariant], [textVariant]);
45
+ const singleLineTypographyStyle = (0, react_1.useMemo)(() => Input_constants_1.MAP_TEXT_VARIANT_INPUT_METRICS[textVariant], [textVariant]);
46
+ // iOS-only single-line placeholder fix: native TextInput can render
47
+ // placeholder text vertically offset. Do not use on Android (lineHeight 0
48
+ // collapses text) or on multiline (breaks paragraph layout).
49
+ const iosSingleLinePlaceholderLineHeightFix = react_native_1.Platform.OS === 'ios' &&
50
+ isPlaceholderVisible && { lineHeight: 0 };
51
+ const resolvedStyle = (isMultiline
52
+ ? [multilineChromeStyle, multilineTypographyStyle, style]
53
+ : [
54
+ singleLineChromeStyle,
55
+ singleLineTypographyStyle,
56
+ iosSingleLinePlaceholderLineHeightFix,
57
+ style,
58
+ ]).filter(Boolean);
38
59
  (0, react_1.useEffect)(() => {
39
60
  if (isDisabled || isReadOnly) {
40
61
  setIsFocused(false);
@@ -48,16 +69,6 @@ exports.Input = (0, react_1.forwardRef)(({ style, textVariant = design_system_sh
48
69
  setIsFocused(true);
49
70
  onFocus?.(e);
50
71
  }, [onFocus]);
51
- const resolvedStyle = [
52
- inputStyle,
53
- variantTextStyle,
54
- // iOS-only workaround: when a placeholder is visible, native iOS
55
- // TextInput can render placeholder text vertically offset.
56
- // Keep this iOS-only because lineHeight: 0 can collapse text on Android.
57
- react_native_1.Platform.OS === 'ios' &&
58
- isPlaceholderVisible && { lineHeight: 0 },
59
- style,
60
- ].filter(Boolean);
61
- return (<react_native_1.TextInput ref={ref} {...props} placeholder={placeholder} placeholderTextColor={placeholderTextColor} value={value} style={resolvedStyle} editable={!isDisabled && !isReadOnly} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler}/>);
72
+ return (<react_native_1.TextInput ref={ref} {...props} multiline={multiline} placeholder={placeholder} placeholderTextColor={placeholderTextColor} value={value} style={resolvedStyle} editable={!isDisabled && !isReadOnly} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler}/>);
62
73
  });
63
74
  //# sourceMappingURL=Input.cjs.map