@metamask/design-system-react-native 0.24.0 → 0.26.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 (367) hide show
  1. package/CHANGELOG.md +30 -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/Icon/assets/telegram.svg +1 -3
  107. package/dist/components/Input/Input.cjs +25 -14
  108. package/dist/components/Input/Input.cjs.map +1 -1
  109. package/dist/components/Input/Input.d.cts.map +1 -1
  110. package/dist/components/Input/Input.d.mts.map +1 -1
  111. package/dist/components/Input/Input.mjs +25 -14
  112. package/dist/components/Input/Input.mjs.map +1 -1
  113. package/dist/components/SectionDivider/SectionDivider.cjs +47 -0
  114. package/dist/components/SectionDivider/SectionDivider.cjs.map +1 -0
  115. package/dist/components/SectionDivider/SectionDivider.d.cts +6 -0
  116. package/dist/components/SectionDivider/SectionDivider.d.cts.map +1 -0
  117. package/dist/components/SectionDivider/SectionDivider.d.mts +6 -0
  118. package/dist/components/SectionDivider/SectionDivider.d.mts.map +1 -0
  119. package/dist/components/SectionDivider/SectionDivider.mjs +28 -0
  120. package/dist/components/SectionDivider/SectionDivider.mjs.map +1 -0
  121. package/dist/components/SectionDivider/SectionDivider.types.cjs +3 -0
  122. package/dist/components/SectionDivider/SectionDivider.types.cjs.map +1 -0
  123. package/dist/components/SectionDivider/SectionDivider.types.d.cts +3 -0
  124. package/dist/components/SectionDivider/SectionDivider.types.d.cts.map +1 -0
  125. package/dist/components/SectionDivider/SectionDivider.types.d.mts +3 -0
  126. package/dist/components/SectionDivider/SectionDivider.types.d.mts.map +1 -0
  127. package/dist/components/SectionDivider/SectionDivider.types.mjs +2 -0
  128. package/dist/components/SectionDivider/SectionDivider.types.mjs.map +1 -0
  129. package/dist/components/SectionDivider/index.cjs +6 -0
  130. package/dist/components/SectionDivider/index.cjs.map +1 -0
  131. package/dist/components/SectionDivider/index.d.cts +3 -0
  132. package/dist/components/SectionDivider/index.d.cts.map +1 -0
  133. package/dist/components/SectionDivider/index.d.mts +3 -0
  134. package/dist/components/SectionDivider/index.d.mts.map +1 -0
  135. package/dist/components/SectionDivider/index.mjs +2 -0
  136. package/dist/components/SectionDivider/index.mjs.map +1 -0
  137. package/dist/components/SectionHeader/SectionHeader.cjs +45 -0
  138. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -0
  139. package/dist/components/SectionHeader/SectionHeader.d.cts +23 -0
  140. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -0
  141. package/dist/components/SectionHeader/SectionHeader.d.mts +23 -0
  142. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -0
  143. package/dist/components/SectionHeader/SectionHeader.mjs +45 -0
  144. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -0
  145. package/dist/components/SectionHeader/SectionHeader.types.cjs +3 -0
  146. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -0
  147. package/dist/components/SectionHeader/SectionHeader.types.d.cts +32 -0
  148. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -0
  149. package/dist/components/SectionHeader/SectionHeader.types.d.mts +32 -0
  150. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -0
  151. package/dist/components/SectionHeader/SectionHeader.types.mjs +2 -0
  152. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -0
  153. package/dist/components/SectionHeader/index.cjs +6 -0
  154. package/dist/components/SectionHeader/index.cjs.map +1 -0
  155. package/dist/components/SectionHeader/index.d.cts +3 -0
  156. package/dist/components/SectionHeader/index.d.cts.map +1 -0
  157. package/dist/components/SectionHeader/index.d.mts +3 -0
  158. package/dist/components/SectionHeader/index.d.mts.map +1 -0
  159. package/dist/components/SectionHeader/index.mjs +2 -0
  160. package/dist/components/SectionHeader/index.mjs.map +1 -0
  161. package/dist/components/SegmentButton/SegmentButton.cjs +86 -0
  162. package/dist/components/SegmentButton/SegmentButton.cjs.map +1 -0
  163. package/dist/components/SegmentButton/SegmentButton.d.cts +7 -0
  164. package/dist/components/SegmentButton/SegmentButton.d.cts.map +1 -0
  165. package/dist/components/SegmentButton/SegmentButton.d.mts +7 -0
  166. package/dist/components/SegmentButton/SegmentButton.d.mts.map +1 -0
  167. package/dist/components/SegmentButton/SegmentButton.mjs +66 -0
  168. package/dist/components/SegmentButton/SegmentButton.mjs.map +1 -0
  169. package/dist/components/SegmentButton/SegmentButton.types.cjs +3 -0
  170. package/dist/components/SegmentButton/SegmentButton.types.cjs.map +1 -0
  171. package/dist/components/SegmentButton/SegmentButton.types.d.cts +9 -0
  172. package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +1 -0
  173. package/dist/components/SegmentButton/SegmentButton.types.d.mts +9 -0
  174. package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +1 -0
  175. package/dist/components/SegmentButton/SegmentButton.types.mjs +2 -0
  176. package/dist/components/SegmentButton/SegmentButton.types.mjs.map +1 -0
  177. package/dist/components/SegmentButton/index.cjs +8 -0
  178. package/dist/components/SegmentButton/index.cjs.map +1 -0
  179. package/dist/components/SegmentButton/index.d.cts +4 -0
  180. package/dist/components/SegmentButton/index.d.cts.map +1 -0
  181. package/dist/components/SegmentButton/index.d.mts +4 -0
  182. package/dist/components/SegmentButton/index.d.mts.map +1 -0
  183. package/dist/components/SegmentButton/index.mjs +3 -0
  184. package/dist/components/SegmentButton/index.mjs.map +1 -0
  185. package/dist/components/SegmentGroup/SegmentGroup.cjs +47 -0
  186. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +1 -0
  187. package/dist/components/SegmentGroup/SegmentGroup.d.cts +7 -0
  188. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +1 -0
  189. package/dist/components/SegmentGroup/SegmentGroup.d.mts +7 -0
  190. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +1 -0
  191. package/dist/components/SegmentGroup/SegmentGroup.mjs +27 -0
  192. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +1 -0
  193. package/dist/components/SegmentGroup/SegmentGroup.types.cjs +3 -0
  194. package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
  195. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +12 -0
  196. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
  197. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +12 -0
  198. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
  199. package/dist/components/SegmentGroup/SegmentGroup.types.mjs +2 -0
  200. package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
  201. package/dist/components/SegmentGroup/index.cjs +6 -0
  202. package/dist/components/SegmentGroup/index.cjs.map +1 -0
  203. package/dist/components/SegmentGroup/index.d.cts +3 -0
  204. package/dist/components/SegmentGroup/index.d.cts.map +1 -0
  205. package/dist/components/SegmentGroup/index.d.mts +3 -0
  206. package/dist/components/SegmentGroup/index.d.mts.map +1 -0
  207. package/dist/components/SegmentGroup/index.mjs +2 -0
  208. package/dist/components/SegmentGroup/index.mjs.map +1 -0
  209. package/dist/components/SelectButton/SelectButton.cjs +53 -0
  210. package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
  211. package/dist/components/SelectButton/SelectButton.constants.cjs +12 -0
  212. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -0
  213. package/dist/components/SelectButton/SelectButton.constants.d.cts +4 -0
  214. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -0
  215. package/dist/components/SelectButton/SelectButton.constants.d.mts +4 -0
  216. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -0
  217. package/dist/components/SelectButton/SelectButton.constants.mjs +9 -0
  218. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -0
  219. package/dist/components/SelectButton/SelectButton.d.cts +7 -0
  220. package/dist/components/SelectButton/SelectButton.d.cts.map +1 -0
  221. package/dist/components/SelectButton/SelectButton.d.mts +7 -0
  222. package/dist/components/SelectButton/SelectButton.d.mts.map +1 -0
  223. package/dist/components/SelectButton/SelectButton.mjs +53 -0
  224. package/dist/components/SelectButton/SelectButton.mjs.map +1 -0
  225. package/dist/components/SelectButton/SelectButton.types.cjs +3 -0
  226. package/dist/components/SelectButton/SelectButton.types.cjs.map +1 -0
  227. package/dist/components/SelectButton/SelectButton.types.d.cts +13 -0
  228. package/dist/components/SelectButton/SelectButton.types.d.cts.map +1 -0
  229. package/dist/components/SelectButton/SelectButton.types.d.mts +13 -0
  230. package/dist/components/SelectButton/SelectButton.types.d.mts.map +1 -0
  231. package/dist/components/SelectButton/SelectButton.types.mjs +2 -0
  232. package/dist/components/SelectButton/SelectButton.types.mjs.map +1 -0
  233. package/dist/components/SelectButton/index.cjs +9 -0
  234. package/dist/components/SelectButton/index.cjs.map +1 -0
  235. package/dist/components/SelectButton/index.d.cts +4 -0
  236. package/dist/components/SelectButton/index.d.cts.map +1 -0
  237. package/dist/components/SelectButton/index.d.mts +4 -0
  238. package/dist/components/SelectButton/index.d.mts.map +1 -0
  239. package/dist/components/SelectButton/index.mjs +3 -0
  240. package/dist/components/SelectButton/index.mjs.map +1 -0
  241. package/dist/components/SensitiveText/SensitiveText.cjs +4 -4
  242. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
  243. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -1
  244. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -1
  245. package/dist/components/SensitiveText/SensitiveText.mjs +1 -1
  246. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
  247. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -1
  248. package/dist/components/SensitiveText/SensitiveText.types.d.cts +6 -34
  249. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -1
  250. package/dist/components/SensitiveText/SensitiveText.types.d.mts +6 -34
  251. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -1
  252. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -1
  253. package/dist/components/SensitiveText/index.cjs +3 -3
  254. package/dist/components/SensitiveText/index.cjs.map +1 -1
  255. package/dist/components/SensitiveText/index.d.cts +1 -1
  256. package/dist/components/SensitiveText/index.d.cts.map +1 -1
  257. package/dist/components/SensitiveText/index.d.mts +1 -1
  258. package/dist/components/SensitiveText/index.d.mts.map +1 -1
  259. package/dist/components/SensitiveText/index.mjs +1 -1
  260. package/dist/components/SensitiveText/index.mjs.map +1 -1
  261. package/dist/components/TextArea/TextArea.cjs +38 -0
  262. package/dist/components/TextArea/TextArea.cjs.map +1 -0
  263. package/dist/components/TextArea/TextArea.d.cts +166 -0
  264. package/dist/components/TextArea/TextArea.d.cts.map +1 -0
  265. package/dist/components/TextArea/TextArea.d.mts +166 -0
  266. package/dist/components/TextArea/TextArea.d.mts.map +1 -0
  267. package/dist/components/TextArea/TextArea.mjs +35 -0
  268. package/dist/components/TextArea/TextArea.mjs.map +1 -0
  269. package/dist/components/TextArea/TextArea.types.cjs +3 -0
  270. package/dist/components/TextArea/TextArea.types.cjs.map +1 -0
  271. package/dist/components/TextArea/TextArea.types.d.cts +63 -0
  272. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -0
  273. package/dist/components/TextArea/TextArea.types.d.mts +63 -0
  274. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -0
  275. package/dist/components/TextArea/TextArea.types.mjs +2 -0
  276. package/dist/components/TextArea/TextArea.types.mjs.map +1 -0
  277. package/dist/components/TextArea/index.cjs +6 -0
  278. package/dist/components/TextArea/index.cjs.map +1 -0
  279. package/dist/components/TextArea/index.d.cts +3 -0
  280. package/dist/components/TextArea/index.d.cts.map +1 -0
  281. package/dist/components/TextArea/index.d.mts +3 -0
  282. package/dist/components/TextArea/index.d.mts.map +1 -0
  283. package/dist/components/TextArea/index.mjs +2 -0
  284. package/dist/components/TextArea/index.mjs.map +1 -0
  285. package/dist/components/TextField/TextField.cjs +1 -2
  286. package/dist/components/TextField/TextField.cjs.map +1 -1
  287. package/dist/components/TextField/TextField.d.cts +8 -2
  288. package/dist/components/TextField/TextField.d.cts.map +1 -1
  289. package/dist/components/TextField/TextField.d.mts +8 -2
  290. package/dist/components/TextField/TextField.d.mts.map +1 -1
  291. package/dist/components/TextField/TextField.mjs +1 -2
  292. package/dist/components/TextField/TextField.mjs.map +1 -1
  293. package/dist/components/TextField/TextField.types.cjs.map +1 -1
  294. package/dist/components/TextField/TextField.types.d.cts +5 -1
  295. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  296. package/dist/components/TextField/TextField.types.d.mts +5 -1
  297. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  298. package/dist/components/TextField/TextField.types.mjs.map +1 -1
  299. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +8 -2
  300. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  301. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +8 -2
  302. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  303. package/dist/components/TitleAlert/TitleAlert.cjs +54 -0
  304. package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -0
  305. package/dist/components/TitleAlert/TitleAlert.d.cts +21 -0
  306. package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -0
  307. package/dist/components/TitleAlert/TitleAlert.d.mts +21 -0
  308. package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -0
  309. package/dist/components/TitleAlert/TitleAlert.mjs +54 -0
  310. package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -0
  311. package/dist/components/TitleAlert/TitleAlert.types.cjs +3 -0
  312. package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -0
  313. package/dist/components/TitleAlert/TitleAlert.types.d.cts +31 -0
  314. package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -0
  315. package/dist/components/TitleAlert/TitleAlert.types.d.mts +31 -0
  316. package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -0
  317. package/dist/components/TitleAlert/TitleAlert.types.mjs +2 -0
  318. package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -0
  319. package/dist/components/TitleAlert/index.cjs +6 -0
  320. package/dist/components/TitleAlert/index.cjs.map +1 -0
  321. package/dist/components/TitleAlert/index.d.cts +3 -0
  322. package/dist/components/TitleAlert/index.d.cts.map +1 -0
  323. package/dist/components/TitleAlert/index.d.mts +3 -0
  324. package/dist/components/TitleAlert/index.d.mts.map +1 -0
  325. package/dist/components/TitleAlert/index.mjs +2 -0
  326. package/dist/components/TitleAlert/index.mjs.map +1 -0
  327. package/dist/components/index.cjs +24 -2
  328. package/dist/components/index.cjs.map +1 -1
  329. package/dist/components/index.d.cts +18 -0
  330. package/dist/components/index.d.cts.map +1 -1
  331. package/dist/components/index.d.mts +18 -0
  332. package/dist/components/index.d.mts.map +1 -1
  333. package/dist/components/index.mjs +9 -0
  334. package/dist/components/index.mjs.map +1 -1
  335. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs +36 -0
  336. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs.map +1 -0
  337. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts +4 -0
  338. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts.map +1 -0
  339. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts +4 -0
  340. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts.map +1 -0
  341. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs +36 -0
  342. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs.map +1 -0
  343. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs +8 -0
  344. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs.map +1 -0
  345. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.cts +39 -0
  346. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.cts.map +1 -0
  347. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.mts +39 -0
  348. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.mts.map +1 -0
  349. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.mjs +10 -0
  350. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.mjs.map +1 -0
  351. package/dist/components/temp-components/HeaderStandardCenterColumn/index.cjs +6 -0
  352. package/dist/components/temp-components/HeaderStandardCenterColumn/index.cjs.map +1 -0
  353. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.cts +3 -0
  354. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.cts.map +1 -0
  355. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.mts +3 -0
  356. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.mts.map +1 -0
  357. package/dist/components/temp-components/HeaderStandardCenterColumn/index.mjs +2 -0
  358. package/dist/components/temp-components/HeaderStandardCenterColumn/index.mjs.map +1 -0
  359. package/package.json +2 -2
  360. package/dist/components/SensitiveText/SensitiveText.constants.cjs +0 -14
  361. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +0 -1
  362. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +0 -11
  363. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +0 -1
  364. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +0 -11
  365. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +0 -1
  366. package/dist/components/SensitiveText/SensitiveText.constants.mjs +0 -11
  367. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.types.mjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextAreaPropsShared } from '@metamask/design-system-shared';\nimport type { Ref } from 'react';\nimport type { StyleProp, TextInput, ViewStyle } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { InputProps } from '../Input/Input.types';\n\n/**\n * Additional props merged onto the inner `Input` (`../Input/Input.tsx`).\n *\n * TextArea owns `value`, `onChangeText`, `placeholder`, `isReadOnly`, `onFocus`,\n * `onBlur`, `isDisabled`, `autoFocus`, `textVariant`, multiline (always on), and inner\n * layout (merged with any `twClassName` you pass here). `placeholderTextColor` is\n * omitted (Input sets it from theme).\n */\ntype TextAreaInputProps = Omit<\n InputProps,\n | 'autoFocus'\n | 'isDisabled'\n | 'isReadOnly'\n | 'isStateStylesDisabled'\n | 'multiline'\n | 'onBlur'\n | 'onChangeText'\n | 'onFocus'\n | 'placeholder'\n | 'placeholderTextColor'\n | 'style'\n | 'textVariant'\n | 'value'\n>;\n\n/**\n * React Native `TextArea` props between `TextAreaPropsShared` and the root\n * `Box`: typed focus/blur handlers, `inputProps`, container styling, and\n * `testID`.\n */\nexport type TextAreaBaseProps = TextAreaPropsShared & {\n /**\n * Called when the inner `TextInput` value changes (React Native naming).\n */\n onChangeText?: (text: string) => void;\n /**\n * Called when the inner input receives focus (composed with TextArea border state).\n */\n onFocus?: InputProps['onFocus'];\n /**\n * Called when the inner input loses focus (composed with TextArea border state).\n */\n onBlur?: InputProps['onBlur'];\n /**\n * Additional props for the inner `Input`. Do not pass `placeholder`, `isReadOnly`, `onFocus`, `onBlur`, or `multiline` here;\n * use the TextArea-level props where applicable. For accessibility, prefer `accessibilityLabel` and `accessibilityHint` on\n * `inputProps`. `placeholderTextColor` is omitted from the type; the inner `Input` sets it from the theme.\n */\n inputProps?: TextAreaInputProps;\n /**\n * Ref to the inner `TextInput`. The component `ref` targets the root `Box` (`View`).\n */\n inputRef?: Ref<TextInput>;\n /**\n * Optional twrnc classes for the root `Box`.\n */\n twClassName?: string;\n /**\n * Optional style for the root `Box`.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * Optional test id for the root `Box`.\n */\n testID?: string;\n};\n\ntype TextAreaReservedBoxKeys =\n | keyof TextAreaBaseProps\n | 'accessible'\n | 'children'\n | 'style';\n\n/**\n * TextArea props: `TextAreaBaseProps` plus remaining `BoxProps` at the top\n * level, excluding keys reserved by TextArea.\n */\nexport type TextAreaProps = TextAreaBaseProps &\n Omit<BoxProps, TextAreaReservedBoxKeys>;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextArea = void 0;
4
+ var TextArea_1 = require("./TextArea.cjs");
5
+ Object.defineProperty(exports, "TextArea", { enumerable: true, get: function () { return TextArea_1.TextArea; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { TextArea } from './TextArea';\nexport type { TextAreaProps } from './TextArea.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TextArea } from "./TextArea.cjs";
2
+ export type { TextAreaProps } from "./TextArea.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,3 @@
1
+ export { TextArea } from "./TextArea.mjs";
2
+ export type { TextAreaProps } from "./TextArea.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,2 @@
1
+ export { TextArea } from "./TextArea.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB","sourcesContent":["export { TextArea } from './TextArea';\nexport type { TextAreaProps } from './TextArea.types';\n"]}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TextField = void 0;
4
- const design_system_shared_1 = require("@metamask/design-system-shared");
5
4
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
6
5
  const react_1 = require("react");
7
6
  const react_native_1 = require("react-native/index.js");
@@ -28,7 +27,7 @@ exports.TextField = (0, react_1.forwardRef)(({ value, onChangeText, placeholder,
28
27
  style,
29
28
  ]}>
30
29
  {startAccessory}
31
- {inputElement || (<Input_1.Input {...inputRestWithoutTwClassName} ref={inputRef} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} textVariant={design_system_shared_1.TextVariant.BodyMd} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''}`} numberOfLines={1} multiline={false}/>)}
30
+ {inputElement || (<Input_1.Input {...inputRestWithoutTwClassName} ref={inputRef} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''}`} numberOfLines={1} multiline={false}/>)}
32
31
  {endAccessory}
33
32
  </Box_1.Box>);
34
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.cjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"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","sourcesContent":["import { TextVariant } from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextFieldProps } from './TextField.types';\n\nexport const TextField = forwardRef<View, TextFieldProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n inputElement,\n startAccessory,\n endAccessory,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'flex-row',\n 'items-center',\n 'gap-3',\n 'rounded-lg',\n 'h-12',\n 'border',\n 'px-4',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {startAccessory}\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={TextVariant.BodyMd}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n numberOfLines={1}\n multiline={false}\n />\n )}\n {endAccessory}\n </Box>\n );\n },\n);\n\nTextField.displayName = 'TextField';\n"]}
1
+ {"version":3,"file":"TextField.cjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextFieldProps } from './TextField.types';\n\nexport const TextField = forwardRef<View, TextFieldProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n inputElement,\n startAccessory,\n endAccessory,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'flex-row',\n 'items-center',\n 'gap-3',\n 'rounded-lg',\n 'h-12',\n 'border',\n 'px-4',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {startAccessory}\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n numberOfLines={1}\n multiline={false}\n />\n )}\n {endAccessory}\n </Box>\n );\n },\n);\n\nTextField.displayName = 'TextField';\n"]}
@@ -1,6 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { View } from "react-native/index.js";
3
- export declare const TextField: import("react").ForwardRefExoticComponent<import("@metamask/design-system-shared").TextFieldPropsShared & {
3
+ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<import("@metamask/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
+ isError?: boolean | undefined;
5
+ startAccessory?: import("react").ReactNode;
6
+ endAccessory?: import("react").ReactNode;
7
+ inputElement?: import("react").ReactNode;
8
+ } & {
9
+ onChangeText?: ((text: string) => void) | undefined;
4
10
  onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
5
11
  onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
6
12
  inputProps?: {
@@ -159,5 +165,5 @@ export declare const TextField: import("react").ForwardRefExoticComponent<import
159
165
  twClassName?: string | undefined;
160
166
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
161
167
  testID?: string | undefined;
162
- } & Omit<import("../Box/index.cjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | keyof import("@metamask/design-system-shared").TextFieldPropsShared | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
168
+ } & Omit<import("../Box/index.cjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
163
169
  //# sourceMappingURL=TextField.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.cts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAQpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mQAwGrB,CAAC"}
1
+ {"version":3,"file":"TextField.d.cts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAQpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qVAuGrB,CAAC"}
@@ -1,6 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { View } from "react-native/index.js";
3
- export declare const TextField: import("react").ForwardRefExoticComponent<import("@metamask/design-system-shared").TextFieldPropsShared & {
3
+ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<import("@metamask/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
+ isError?: boolean | undefined;
5
+ startAccessory?: import("react").ReactNode;
6
+ endAccessory?: import("react").ReactNode;
7
+ inputElement?: import("react").ReactNode;
8
+ } & {
9
+ onChangeText?: ((text: string) => void) | undefined;
4
10
  onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
5
11
  onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
6
12
  inputProps?: {
@@ -159,5 +165,5 @@ export declare const TextField: import("react").ForwardRefExoticComponent<import
159
165
  twClassName?: string | undefined;
160
166
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
161
167
  testID?: string | undefined;
162
- } & Omit<import("../Box/index.mjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | keyof import("@metamask/design-system-shared").TextFieldPropsShared | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
168
+ } & Omit<import("../Box/index.mjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
163
169
  //# sourceMappingURL=TextField.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.mts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAQpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mQAwGrB,CAAC"}
1
+ {"version":3,"file":"TextField.d.mts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAQpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qVAuGrB,CAAC"}
@@ -1,4 +1,3 @@
1
- import { TextVariant } from "@metamask/design-system-shared";
2
1
  import { useTailwind } from "@metamask/design-system-twrnc-preset";
3
2
  import { forwardRef, useCallback, useState } from "react";
4
3
  import { View } from "react-native/index.js";
@@ -25,7 +24,7 @@ export const TextField = forwardRef(({ value, onChangeText, placeholder, isReadO
25
24
  style,
26
25
  ]}>
27
26
  {startAccessory}
28
- {inputElement || (<Input {...inputRestWithoutTwClassName} ref={inputRef} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} textVariant={TextVariant.BodyMd} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''}`} numberOfLines={1} multiline={false}/>)}
27
+ {inputElement || (<Input {...inputRestWithoutTwClassName} ref={inputRef} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''}`} numberOfLines={1} multiline={false}/>)}
29
28
  {endAccessory}
30
29
  </Box>);
31
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.mjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"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","sourcesContent":["import { TextVariant } from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextFieldProps } from './TextField.types';\n\nexport const TextField = forwardRef<View, TextFieldProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n inputElement,\n startAccessory,\n endAccessory,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'flex-row',\n 'items-center',\n 'gap-3',\n 'rounded-lg',\n 'h-12',\n 'border',\n 'px-4',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {startAccessory}\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={TextVariant.BodyMd}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n numberOfLines={1}\n multiline={false}\n />\n )}\n {endAccessory}\n </Box>\n );\n },\n);\n\nTextField.displayName = 'TextField';\n"]}
1
+ {"version":3,"file":"TextField.mjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextFieldProps } from './TextField.types';\n\nexport const TextField = forwardRef<View, TextFieldProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n inputElement,\n startAccessory,\n endAccessory,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'flex-row',\n 'items-center',\n 'gap-3',\n 'rounded-lg',\n 'h-12',\n 'border',\n 'px-4',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {startAccessory}\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n twClassName={`min-h-0 flex-1 justify-center h-[46px] bg-transparent border-0${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n numberOfLines={1}\n multiline={false}\n />\n )}\n {endAccessory}\n </Box>\n );\n },\n);\n\nTextField.displayName = 'TextField';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.types.cjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextFieldPropsShared } from '@metamask/design-system-shared';\nimport type { Ref } from 'react';\nimport type { StyleProp, TextInput, ViewStyle } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { InputProps } from '../Input/Input.types';\n\n/**\n * Additional props merged onto the inner `Input` (`../Input/Input.tsx`).\n *\n * TextField owns `value`, `onChangeText`, `placeholder`, `isReadOnly`, `onFocus`,\n * `onBlur`, `isDisabled`, `autoFocus`, typography, and inner layout (merged with\n * any `twClassName` you pass here). `placeholderTextColor` is omitted (Input sets\n * it from theme).\n */\ntype TextFieldInputProps = Omit<\n InputProps,\n | 'autoFocus'\n | 'isDisabled'\n | 'isReadOnly'\n | 'isStateStylesDisabled'\n | 'onBlur'\n | 'onChangeText'\n | 'onFocus'\n | 'placeholder'\n | 'placeholderTextColor'\n | 'style'\n | 'textVariant'\n | 'value'\n>;\n\n/**\n * React Native `TextField` props between `TextFieldPropsShared` and the root\n * `Box`: typed focus/blur handlers, `inputProps`, container styling, and\n * `testID`.\n */\nexport type TextFieldBaseProps = TextFieldPropsShared & {\n /**\n * Called when the inner input receives focus (composed with TextField border state).\n */\n onFocus?: InputProps['onFocus'];\n /**\n * Called when the inner input loses focus (composed with TextField border state).\n */\n onBlur?: InputProps['onBlur'];\n /**\n * Additional props for the inner `Input`. Do not pass `placeholder`, `isReadOnly`, `onFocus`, or `onBlur` here;\n * use the TextField-level props above. For accessibility, prefer `accessibilityLabel` and `accessibilityHint` on\n * `inputProps` (for example hint text can note that a field is required). `placeholderTextColor` is omitted from the\n * type; the inner `Input` sets it from the theme.\n */\n inputProps?: TextFieldInputProps;\n /**\n * Ref to the inner `TextInput`. The component `ref` targets the root `Box` (`View`).\n */\n inputRef?: Ref<TextInput>;\n /**\n * Optional twrnc classes for the root `Box`.\n */\n twClassName?: string;\n /**\n * Optional style for the root `Box`.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * Optional test id for the root `Box`.\n */\n testID?: string;\n};\n\ntype TextFieldReservedBoxKeys =\n | keyof TextFieldBaseProps\n | 'accessible'\n | 'children'\n | 'style';\n\n/**\n * TextField props: `TextFieldBaseProps` plus remaining `BoxProps` at the top\n * level, excluding keys reserved by TextField.\n */\nexport type TextFieldProps = TextFieldBaseProps &\n Omit<BoxProps, TextFieldReservedBoxKeys>;\n"]}
1
+ {"version":3,"file":"TextField.types.cjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextFieldPropsShared } from '@metamask/design-system-shared';\nimport type { Ref } from 'react';\nimport type { StyleProp, TextInput, ViewStyle } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { InputProps } from '../Input/Input.types';\n\n/**\n * Additional props merged onto the inner `Input` (`../Input/Input.tsx`).\n *\n * TextField owns `value`, `onChangeText`, `placeholder`, `isReadOnly`, `onFocus`,\n * `onBlur`, `isDisabled`, `autoFocus`, and inner layout (merged with\n * any `twClassName` you pass here). `placeholderTextColor` is omitted (Input sets\n * it from theme).\n */\ntype TextFieldInputProps = Omit<\n InputProps,\n | 'autoFocus'\n | 'isDisabled'\n | 'isReadOnly'\n | 'isStateStylesDisabled'\n | 'onBlur'\n | 'onChangeText'\n | 'onFocus'\n | 'placeholder'\n | 'placeholderTextColor'\n | 'style'\n | 'textVariant'\n | 'value'\n>;\n\n/**\n * React Native `TextField` props between `TextFieldPropsShared` and the root\n * `Box`: typed focus/blur handlers, `inputProps`, container styling, and\n * `testID`.\n */\nexport type TextFieldBaseProps = TextFieldPropsShared & {\n /**\n * Called when the inner `TextInput` value changes (React Native naming).\n */\n onChangeText?: (text: string) => void;\n /**\n * Called when the inner input receives focus (composed with TextField border state).\n */\n onFocus?: InputProps['onFocus'];\n /**\n * Called when the inner input loses focus (composed with TextField border state).\n */\n onBlur?: InputProps['onBlur'];\n /**\n * Additional props for the inner `Input`. Do not pass `placeholder`, `isReadOnly`, `onFocus`, or `onBlur` here;\n * use the TextField-level props above. For accessibility, prefer `accessibilityLabel` and `accessibilityHint` on\n * `inputProps` (for example hint text can note that a field is required). `placeholderTextColor` is omitted from the\n * type; the inner `Input` sets it from the theme.\n */\n inputProps?: TextFieldInputProps;\n /**\n * Ref to the inner `TextInput`. The component `ref` targets the root `Box` (`View`).\n */\n inputRef?: Ref<TextInput>;\n /**\n * Optional twrnc classes for the root `Box`.\n */\n twClassName?: string;\n /**\n * Optional style for the root `Box`.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * Optional test id for the root `Box`.\n */\n testID?: string;\n};\n\ntype TextFieldReservedBoxKeys =\n | keyof TextFieldBaseProps\n | 'accessible'\n | 'children'\n | 'style';\n\n/**\n * TextField props: `TextFieldBaseProps` plus remaining `BoxProps` at the top\n * level, excluding keys reserved by TextField.\n */\nexport type TextFieldProps = TextFieldBaseProps &\n Omit<BoxProps, TextFieldReservedBoxKeys>;\n"]}
@@ -7,7 +7,7 @@ import type { InputProps } from "../Input/Input.types.cjs";
7
7
  * Additional props merged onto the inner `Input` (`../Input/Input.tsx`).
8
8
  *
9
9
  * TextField owns `value`, `onChangeText`, `placeholder`, `isReadOnly`, `onFocus`,
10
- * `onBlur`, `isDisabled`, `autoFocus`, typography, and inner layout (merged with
10
+ * `onBlur`, `isDisabled`, `autoFocus`, and inner layout (merged with
11
11
  * any `twClassName` you pass here). `placeholderTextColor` is omitted (Input sets
12
12
  * it from theme).
13
13
  */
@@ -18,6 +18,10 @@ type TextFieldInputProps = Omit<InputProps, 'autoFocus' | 'isDisabled' | 'isRead
18
18
  * `testID`.
19
19
  */
20
20
  export type TextFieldBaseProps = TextFieldPropsShared & {
21
+ /**
22
+ * Called when the inner `TextInput` value changes (React Native naming).
23
+ */
24
+ onChangeText?: (text: string) => void;
21
25
  /**
22
26
  * Called when the inner input receives focus (composed with TextField border state).
23
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.types.d.cts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uCAAuC;AAC3E,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iCAA6B;AAEvD;;;;;;;GAOG;AACH,KAAK,mBAAmB,GAAG,IAAI,CAC7B,UAAU,EACR,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,uBAAuB,GACvB,QAAQ,GACR,cAAc,GACd,SAAS,GACT,aAAa,GACb,sBAAsB,GACtB,OAAO,GACP,aAAa,GACb,OAAO,CACV,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACtD;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,wBAAwB,GACzB,MAAM,kBAAkB,GACxB,YAAY,GACZ,UAAU,GACV,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,IAAI,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"TextField.types.d.cts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uCAAuC;AAC3E,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iCAA6B;AAEvD;;;;;;;GAOG;AACH,KAAK,mBAAmB,GAAG,IAAI,CAC7B,UAAU,EACR,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,uBAAuB,GACvB,QAAQ,GACR,cAAc,GACd,SAAS,GACT,aAAa,GACb,sBAAsB,GACtB,OAAO,GACP,aAAa,GACb,OAAO,CACV,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACtD;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,wBAAwB,GACzB,MAAM,kBAAkB,GACxB,YAAY,GACZ,UAAU,GACV,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,IAAI,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC"}
@@ -7,7 +7,7 @@ import type { InputProps } from "../Input/Input.types.mjs";
7
7
  * Additional props merged onto the inner `Input` (`../Input/Input.tsx`).
8
8
  *
9
9
  * TextField owns `value`, `onChangeText`, `placeholder`, `isReadOnly`, `onFocus`,
10
- * `onBlur`, `isDisabled`, `autoFocus`, typography, and inner layout (merged with
10
+ * `onBlur`, `isDisabled`, `autoFocus`, and inner layout (merged with
11
11
  * any `twClassName` you pass here). `placeholderTextColor` is omitted (Input sets
12
12
  * it from theme).
13
13
  */
@@ -18,6 +18,10 @@ type TextFieldInputProps = Omit<InputProps, 'autoFocus' | 'isDisabled' | 'isRead
18
18
  * `testID`.
19
19
  */
20
20
  export type TextFieldBaseProps = TextFieldPropsShared & {
21
+ /**
22
+ * Called when the inner `TextInput` value changes (React Native naming).
23
+ */
24
+ onChangeText?: (text: string) => void;
21
25
  /**
22
26
  * Called when the inner input receives focus (composed with TextField border state).
23
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.types.d.mts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uCAAuC;AAC3E,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iCAA6B;AAEvD;;;;;;;GAOG;AACH,KAAK,mBAAmB,GAAG,IAAI,CAC7B,UAAU,EACR,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,uBAAuB,GACvB,QAAQ,GACR,cAAc,GACd,SAAS,GACT,aAAa,GACb,sBAAsB,GACtB,OAAO,GACP,aAAa,GACb,OAAO,CACV,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACtD;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,wBAAwB,GACzB,MAAM,kBAAkB,GACxB,YAAY,GACZ,UAAU,GACV,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,IAAI,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"TextField.types.d.mts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uCAAuC;AAC3E,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,iCAA6B;AAEvD;;;;;;;GAOG;AACH,KAAK,mBAAmB,GAAG,IAAI,CAC7B,UAAU,EACR,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,uBAAuB,GACvB,QAAQ,GACR,cAAc,GACd,SAAS,GACT,aAAa,GACb,sBAAsB,GACtB,OAAO,GACP,aAAa,GACb,OAAO,CACV,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACtD;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,wBAAwB,GACzB,MAAM,kBAAkB,GACxB,YAAY,GACZ,UAAU,GACV,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,IAAI,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.types.mjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextFieldPropsShared } from '@metamask/design-system-shared';\nimport type { Ref } from 'react';\nimport type { StyleProp, TextInput, ViewStyle } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { InputProps } from '../Input/Input.types';\n\n/**\n * Additional props merged onto the inner `Input` (`../Input/Input.tsx`).\n *\n * TextField owns `value`, `onChangeText`, `placeholder`, `isReadOnly`, `onFocus`,\n * `onBlur`, `isDisabled`, `autoFocus`, typography, and inner layout (merged with\n * any `twClassName` you pass here). `placeholderTextColor` is omitted (Input sets\n * it from theme).\n */\ntype TextFieldInputProps = Omit<\n InputProps,\n | 'autoFocus'\n | 'isDisabled'\n | 'isReadOnly'\n | 'isStateStylesDisabled'\n | 'onBlur'\n | 'onChangeText'\n | 'onFocus'\n | 'placeholder'\n | 'placeholderTextColor'\n | 'style'\n | 'textVariant'\n | 'value'\n>;\n\n/**\n * React Native `TextField` props between `TextFieldPropsShared` and the root\n * `Box`: typed focus/blur handlers, `inputProps`, container styling, and\n * `testID`.\n */\nexport type TextFieldBaseProps = TextFieldPropsShared & {\n /**\n * Called when the inner input receives focus (composed with TextField border state).\n */\n onFocus?: InputProps['onFocus'];\n /**\n * Called when the inner input loses focus (composed with TextField border state).\n */\n onBlur?: InputProps['onBlur'];\n /**\n * Additional props for the inner `Input`. Do not pass `placeholder`, `isReadOnly`, `onFocus`, or `onBlur` here;\n * use the TextField-level props above. For accessibility, prefer `accessibilityLabel` and `accessibilityHint` on\n * `inputProps` (for example hint text can note that a field is required). `placeholderTextColor` is omitted from the\n * type; the inner `Input` sets it from the theme.\n */\n inputProps?: TextFieldInputProps;\n /**\n * Ref to the inner `TextInput`. The component `ref` targets the root `Box` (`View`).\n */\n inputRef?: Ref<TextInput>;\n /**\n * Optional twrnc classes for the root `Box`.\n */\n twClassName?: string;\n /**\n * Optional style for the root `Box`.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * Optional test id for the root `Box`.\n */\n testID?: string;\n};\n\ntype TextFieldReservedBoxKeys =\n | keyof TextFieldBaseProps\n | 'accessible'\n | 'children'\n | 'style';\n\n/**\n * TextField props: `TextFieldBaseProps` plus remaining `BoxProps` at the top\n * level, excluding keys reserved by TextField.\n */\nexport type TextFieldProps = TextFieldBaseProps &\n Omit<BoxProps, TextFieldReservedBoxKeys>;\n"]}
1
+ {"version":3,"file":"TextField.types.mjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextFieldPropsShared } from '@metamask/design-system-shared';\nimport type { Ref } from 'react';\nimport type { StyleProp, TextInput, ViewStyle } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { InputProps } from '../Input/Input.types';\n\n/**\n * Additional props merged onto the inner `Input` (`../Input/Input.tsx`).\n *\n * TextField owns `value`, `onChangeText`, `placeholder`, `isReadOnly`, `onFocus`,\n * `onBlur`, `isDisabled`, `autoFocus`, and inner layout (merged with\n * any `twClassName` you pass here). `placeholderTextColor` is omitted (Input sets\n * it from theme).\n */\ntype TextFieldInputProps = Omit<\n InputProps,\n | 'autoFocus'\n | 'isDisabled'\n | 'isReadOnly'\n | 'isStateStylesDisabled'\n | 'onBlur'\n | 'onChangeText'\n | 'onFocus'\n | 'placeholder'\n | 'placeholderTextColor'\n | 'style'\n | 'textVariant'\n | 'value'\n>;\n\n/**\n * React Native `TextField` props between `TextFieldPropsShared` and the root\n * `Box`: typed focus/blur handlers, `inputProps`, container styling, and\n * `testID`.\n */\nexport type TextFieldBaseProps = TextFieldPropsShared & {\n /**\n * Called when the inner `TextInput` value changes (React Native naming).\n */\n onChangeText?: (text: string) => void;\n /**\n * Called when the inner input receives focus (composed with TextField border state).\n */\n onFocus?: InputProps['onFocus'];\n /**\n * Called when the inner input loses focus (composed with TextField border state).\n */\n onBlur?: InputProps['onBlur'];\n /**\n * Additional props for the inner `Input`. Do not pass `placeholder`, `isReadOnly`, `onFocus`, or `onBlur` here;\n * use the TextField-level props above. For accessibility, prefer `accessibilityLabel` and `accessibilityHint` on\n * `inputProps` (for example hint text can note that a field is required). `placeholderTextColor` is omitted from the\n * type; the inner `Input` sets it from the theme.\n */\n inputProps?: TextFieldInputProps;\n /**\n * Ref to the inner `TextInput`. The component `ref` targets the root `Box` (`View`).\n */\n inputRef?: Ref<TextInput>;\n /**\n * Optional twrnc classes for the root `Box`.\n */\n twClassName?: string;\n /**\n * Optional style for the root `Box`.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * Optional test id for the root `Box`.\n */\n testID?: string;\n};\n\ntype TextFieldReservedBoxKeys =\n | keyof TextFieldBaseProps\n | 'accessible'\n | 'children'\n | 'style';\n\n/**\n * TextField props: `TextFieldBaseProps` plus remaining `BoxProps` at the top\n * level, excluding keys reserved by TextField.\n */\nexport type TextFieldProps = TextFieldBaseProps &\n Omit<BoxProps, TextFieldReservedBoxKeys>;\n"]}
@@ -1,6 +1,12 @@
1
1
  import React from "react";
2
2
  import type { View } from "react-native/index.js";
3
- export declare const TextFieldSearch: React.ForwardRefExoticComponent<import("@metamask/design-system-shared").TextFieldPropsShared & {
3
+ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<import("@metamask/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
+ isError?: boolean | undefined;
5
+ startAccessory?: React.ReactNode;
6
+ endAccessory?: React.ReactNode;
7
+ inputElement?: React.ReactNode;
8
+ } & {
9
+ onChangeText?: ((text: string) => void) | undefined;
4
10
  onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
5
11
  onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
6
12
  inputProps?: {
@@ -159,7 +165,7 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<import("@m
159
165
  twClassName?: string | undefined;
160
166
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
161
167
  testID?: string | undefined;
162
- } & Omit<import("../index.cjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | keyof import("@metamask/design-system-shared").TextFieldPropsShared | "inputProps" | "inputRef"> & {
168
+ } & Omit<import("../index.cjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & {
163
169
  clearButtonProps?: Partial<import("../ButtonIcon/index.cjs").ButtonIconProps> | undefined;
164
170
  onPressClearButton: () => void;
165
171
  } & React.RefAttributes<View>>;
@@ -1 +1 @@
1
- {"version":3,"file":"TextFieldSearch.d.cts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,8BAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}
1
+ {"version":3,"file":"TextFieldSearch.d.cts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,8BAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}
@@ -1,6 +1,12 @@
1
1
  import React from "react";
2
2
  import type { View } from "react-native/index.js";
3
- export declare const TextFieldSearch: React.ForwardRefExoticComponent<import("@metamask/design-system-shared").TextFieldPropsShared & {
3
+ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<import("@metamask/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
+ isError?: boolean | undefined;
5
+ startAccessory?: React.ReactNode;
6
+ endAccessory?: React.ReactNode;
7
+ inputElement?: React.ReactNode;
8
+ } & {
9
+ onChangeText?: ((text: string) => void) | undefined;
4
10
  onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
5
11
  onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
6
12
  inputProps?: {
@@ -159,7 +165,7 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<import("@m
159
165
  twClassName?: string | undefined;
160
166
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
161
167
  testID?: string | undefined;
162
- } & Omit<import("../index.mjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | keyof import("@metamask/design-system-shared").TextFieldPropsShared | "inputProps" | "inputRef"> & {
168
+ } & Omit<import("../index.mjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & {
163
169
  clearButtonProps?: Partial<import("../ButtonIcon/index.mjs").ButtonIconProps> | undefined;
164
170
  onPressClearButton: () => void;
165
171
  } & React.RefAttributes<View>>;
@@ -1 +1 @@
1
- {"version":3,"file":"TextFieldSearch.d.mts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,8BAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}
1
+ {"version":3,"file":"TextFieldSearch.d.mts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,8BAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TitleAlert = void 0;
7
+ const design_system_shared_1 = require("@metamask/design-system-shared");
8
+ const react_1 = __importDefault(require("react"));
9
+ const Box_1 = require("../Box/index.cjs");
10
+ const BoxColumn_1 = require("../BoxColumn/index.cjs");
11
+ const BoxRow_1 = require("../BoxRow/index.cjs");
12
+ const IconAlert_1 = require("../IconAlert/index.cjs");
13
+ const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
14
+ /**
15
+ * Displays a severity-based {@link IconAlert} above a centered title row with optional inline accessories.
16
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
17
+ *
18
+ * @param props - Component props
19
+ * @param props.severity - Passed to {@link IconAlert} for glyph and color
20
+ * @param props.title - Title row content; row renders only when `title` is renderable
21
+ * @param props.titleStartAccessory - Optional inline accessory to the left of `title`
22
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
23
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
24
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
25
+ * @param props.description - Optional description below the title; uses {@link TextOrChildren}
26
+ * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
27
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
28
+ *
29
+ * @returns The rendered TitleAlert layout.
30
+ */
31
+ const TitleAlert = ({ severity, title, titleStartAccessory, titleEndAccessory, titleProps, titleWrapperProps, description, descriptionProps, twClassName = '', ...props }) => {
32
+ return (<BoxColumn_1.BoxColumn alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} topAccessory={<IconAlert_1.IconAlert severity={severity} size={design_system_shared_1.IconSize.Xl}/>} bottomAccessory={description ? (<Box_1.Box twClassName="self-stretch">
33
+ <TextOrChildren_1.TextOrChildren textProps={{
34
+ variant: design_system_shared_1.TextVariant.BodySm,
35
+ color: design_system_shared_1.TextColor.TextAlternative,
36
+ fontWeight: design_system_shared_1.FontWeight.Medium,
37
+ ...descriptionProps,
38
+ style: [{ textAlign: 'center' }, descriptionProps?.style],
39
+ }}>
40
+ {description}
41
+ </TextOrChildren_1.TextOrChildren>
42
+ </Box_1.Box>) : undefined} twClassName={twClassName} {...props}>
43
+ {title ? (<BoxRow_1.BoxRow justifyContent={design_system_shared_1.BoxJustifyContent.Center} twClassName="self-stretch" {...titleWrapperProps} startAccessory={titleStartAccessory} endAccessory={titleEndAccessory} textProps={{
44
+ variant: design_system_shared_1.TextVariant.HeadingLg,
45
+ color: design_system_shared_1.TextColor.TextDefault,
46
+ ...titleProps,
47
+ }}>
48
+ {title}
49
+ </BoxRow_1.BoxRow>) : null}
50
+ </BoxColumn_1.BoxColumn>);
51
+ };
52
+ exports.TitleAlert = TitleAlert;
53
+ exports.TitleAlert.displayName = 'TitleAlert';
54
+ //# sourceMappingURL=TitleAlert.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleAlert.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,yEAOwC;AACxC,kDAA0B;AAE1B,0CAA6B;AAC7B,sDAAyC;AACzC,gDAAmC;AACnC,sDAAyC;AACzC,gFAAmE;AAInE;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,qBAAS,CACR,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,YAAY,CAAC,CAAC,CAAC,qBAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,+BAAQ,CAAC,EAAE,CAAC,EAAG,CAAC,CACnE,eAAe,CAAC,CACd,WAAW,CAAC,CAAC,CAAC,CACZ,CAAC,SAAG,CAAC,WAAW,CAAC,cAAc,CAC7B;YAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,GAAG,gBAAgB;gBACnB,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,CAAC;aAC1D,CAAC,CAEF;cAAA,CAAC,WAAW,CACd;YAAA,EAAE,+BAAc,CAClB;UAAA,EAAE,SAAG,CAAC,CACP,CAAC,CAAC,CAAC,SAAS,CACd,CACD,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,eAAM,CACL,cAAc,CAAC,CAAC,wCAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,cAAc,CAC1B,IAAI,iBAAiB,CAAC,CACtB,cAAc,CAAC,CAAC,mBAAmB,CAAC,CACpC,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,eAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,qBAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAvDW,QAAA,UAAU,cAuDrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxJustifyContent,\n FontWeight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxColumn } from '../BoxColumn';\nimport { BoxRow } from '../BoxRow';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row with optional inline accessories.\n * Remaining `View` props are forwarded to the root {@link BoxColumn}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleStartAccessory - Optional inline accessory to the left of `title`\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root BoxColumn\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleStartAccessory,\n titleEndAccessory,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <BoxColumn\n alignItems={BoxAlignItems.Center}\n gap={1}\n topAccessory={<IconAlert severity={severity} size={IconSize.Xl} />}\n bottomAccessory={\n description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : undefined\n }\n twClassName={twClassName}\n {...props}\n >\n {title ? (\n <BoxRow\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n startAccessory={titleStartAccessory}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n ) : null}\n </BoxColumn>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import type { TitleAlertProps } from "./TitleAlert.types.cjs";
3
+ /**
4
+ * Displays a severity-based {@link IconAlert} above a centered title row with optional inline accessories.
5
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
6
+ *
7
+ * @param props - Component props
8
+ * @param props.severity - Passed to {@link IconAlert} for glyph and color
9
+ * @param props.title - Title row content; row renders only when `title` is renderable
10
+ * @param props.titleStartAccessory - Optional inline accessory to the left of `title`
11
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
12
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
13
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
14
+ * @param props.description - Optional description below the title; uses {@link TextOrChildren}
15
+ * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
16
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
17
+ *
18
+ * @returns The rendered TitleAlert layout.
19
+ */
20
+ export declare const TitleAlert: React.FC<TitleAlertProps>;
21
+ //# sourceMappingURL=TitleAlert.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleAlert.d.cts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuDhD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import type { TitleAlertProps } from "./TitleAlert.types.mjs";
3
+ /**
4
+ * Displays a severity-based {@link IconAlert} above a centered title row with optional inline accessories.
5
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
6
+ *
7
+ * @param props - Component props
8
+ * @param props.severity - Passed to {@link IconAlert} for glyph and color
9
+ * @param props.title - Title row content; row renders only when `title` is renderable
10
+ * @param props.titleStartAccessory - Optional inline accessory to the left of `title`
11
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
12
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
13
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
14
+ * @param props.description - Optional description below the title; uses {@link TextOrChildren}
15
+ * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
16
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
17
+ *
18
+ * @returns The rendered TitleAlert layout.
19
+ */
20
+ export declare const TitleAlert: React.FC<TitleAlertProps>;
21
+ //# sourceMappingURL=TitleAlert.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleAlert.d.mts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuDhD,CAAC"}
@@ -0,0 +1,54 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { BoxAlignItems, BoxJustifyContent, FontWeight, IconSize, TextColor, TextVariant } from "@metamask/design-system-shared";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { Box } from "../Box/index.mjs";
11
+ import { BoxColumn } from "../BoxColumn/index.mjs";
12
+ import { BoxRow } from "../BoxRow/index.mjs";
13
+ import { IconAlert } from "../IconAlert/index.mjs";
14
+ import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
15
+ /**
16
+ * Displays a severity-based {@link IconAlert} above a centered title row with optional inline accessories.
17
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
18
+ *
19
+ * @param props - Component props
20
+ * @param props.severity - Passed to {@link IconAlert} for glyph and color
21
+ * @param props.title - Title row content; row renders only when `title` is renderable
22
+ * @param props.titleStartAccessory - Optional inline accessory to the left of `title`
23
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
24
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
25
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
26
+ * @param props.description - Optional description below the title; uses {@link TextOrChildren}
27
+ * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
28
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
29
+ *
30
+ * @returns The rendered TitleAlert layout.
31
+ */
32
+ export const TitleAlert = ({ severity, title, titleStartAccessory, titleEndAccessory, titleProps, titleWrapperProps, description, descriptionProps, twClassName = '', ...props }) => {
33
+ return (<BoxColumn alignItems={BoxAlignItems.Center} gap={1} topAccessory={<IconAlert severity={severity} size={IconSize.Xl}/>} bottomAccessory={description ? (<Box twClassName="self-stretch">
34
+ <TextOrChildren textProps={{
35
+ variant: TextVariant.BodySm,
36
+ color: TextColor.TextAlternative,
37
+ fontWeight: FontWeight.Medium,
38
+ ...descriptionProps,
39
+ style: [{ textAlign: 'center' }, descriptionProps?.style],
40
+ }}>
41
+ {description}
42
+ </TextOrChildren>
43
+ </Box>) : undefined} twClassName={twClassName} {...props}>
44
+ {title ? (<BoxRow justifyContent={BoxJustifyContent.Center} twClassName="self-stretch" {...titleWrapperProps} startAccessory={titleStartAccessory} endAccessory={titleEndAccessory} textProps={{
45
+ variant: TextVariant.HeadingLg,
46
+ color: TextColor.TextDefault,
47
+ ...titleProps,
48
+ }}>
49
+ {title}
50
+ </BoxRow>) : null}
51
+ </BoxColumn>);
52
+ };
53
+ TitleAlert.displayName = 'TitleAlert';
54
+ //# sourceMappingURL=TitleAlert.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleAlert.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,WAAW,EACZ,uCAAuC;AACxC,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAS,CACR,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAG,CAAC,CACnE,eAAe,CAAC,CACd,WAAW,CAAC,CAAC,CAAC,CACZ,CAAC,GAAG,CAAC,WAAW,CAAC,cAAc,CAC7B;YAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,GAAG,gBAAgB;gBACnB,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,CAAC;aAC1D,CAAC,CAEF;cAAA,CAAC,WAAW,CACd;YAAA,EAAE,cAAc,CAClB;UAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,SAAS,CACd,CACD,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,MAAM,CACL,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,cAAc,CAC1B,IAAI,iBAAiB,CAAC,CACtB,cAAc,CAAC,CAAC,mBAAmB,CAAC,CACpC,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,SAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxJustifyContent,\n FontWeight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxColumn } from '../BoxColumn';\nimport { BoxRow } from '../BoxRow';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row with optional inline accessories.\n * Remaining `View` props are forwarded to the root {@link BoxColumn}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleStartAccessory - Optional inline accessory to the left of `title`\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root BoxColumn\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleStartAccessory,\n titleEndAccessory,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <BoxColumn\n alignItems={BoxAlignItems.Center}\n gap={1}\n topAccessory={<IconAlert severity={severity} size={IconSize.Xl} />}\n bottomAccessory={\n description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : undefined\n }\n twClassName={twClassName}\n {...props}\n >\n {title ? (\n <BoxRow\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n startAccessory={titleStartAccessory}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n ) : null}\n </BoxColumn>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TitleAlert.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link BoxColumn}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,\n * `endAccessory`, and `textProps` (TitleAlert sets those via `title`, `titleStartAccessory`,\n * `titleEndAccessory`, and `titleProps`). Defaults `justifyContent` to center and `twClassName`\n * to include `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'startAccessory' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}