@metamask-previews/design-system-react-native 0.24.0-preview.178e60f → 0.26.0-preview.047f96c

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 (507) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/components/ActionListItem/ActionListItem.cjs +1 -1
  3. package/dist/components/ActionListItem/ActionListItem.cjs.map +1 -1
  4. package/dist/components/ActionListItem/ActionListItem.mjs +1 -1
  5. package/dist/components/ActionListItem/ActionListItem.mjs.map +1 -1
  6. package/dist/components/ActionListItem/ActionListItem.types.d.cts +1 -1
  7. package/dist/components/ActionListItem/ActionListItem.types.d.cts.map +1 -1
  8. package/dist/components/ActionListItem/ActionListItem.types.d.mts +1 -1
  9. package/dist/components/ActionListItem/ActionListItem.types.d.mts.map +1 -1
  10. package/dist/components/AvatarBase/AvatarBase.cjs +1 -1
  11. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  12. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  13. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  14. package/dist/components/AvatarBase/AvatarBase.types.d.cts +1 -1
  15. package/dist/components/AvatarBase/AvatarBase.types.d.cts.map +1 -1
  16. package/dist/components/AvatarBase/AvatarBase.types.d.mts +1 -1
  17. package/dist/components/AvatarBase/AvatarBase.types.d.mts.map +1 -1
  18. package/dist/components/AvatarGroup/AvatarGroup.cjs +1 -1
  19. package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
  20. package/dist/components/AvatarGroup/AvatarGroup.mjs +1 -1
  21. package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
  22. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts +1 -1
  23. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts.map +1 -1
  24. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts +1 -1
  25. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts.map +1 -1
  26. package/dist/components/BadgeCount/BadgeCount.cjs +1 -1
  27. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  28. package/dist/components/BadgeCount/BadgeCount.mjs +1 -1
  29. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  30. package/dist/components/BadgeCount/BadgeCount.types.d.cts +1 -1
  31. package/dist/components/BadgeCount/BadgeCount.types.d.cts.map +1 -1
  32. package/dist/components/BadgeCount/BadgeCount.types.d.mts +1 -1
  33. package/dist/components/BadgeCount/BadgeCount.types.d.mts.map +1 -1
  34. package/dist/components/BadgeIcon/BadgeIcon.cjs +1 -1
  35. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  36. package/dist/components/BadgeIcon/BadgeIcon.mjs +1 -1
  37. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  38. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts +1 -1
  39. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts.map +1 -1
  40. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts +1 -1
  41. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts.map +1 -1
  42. package/dist/components/BadgeStatus/BadgeStatus.cjs +1 -1
  43. package/dist/components/BadgeStatus/BadgeStatus.cjs.map +1 -1
  44. package/dist/components/BadgeStatus/BadgeStatus.mjs +1 -1
  45. package/dist/components/BadgeStatus/BadgeStatus.mjs.map +1 -1
  46. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +1 -1
  47. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  48. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +1 -1
  49. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  50. package/dist/components/BadgeWrapper/BadgeWrapper.cjs +1 -1
  51. package/dist/components/BadgeWrapper/BadgeWrapper.cjs.map +1 -1
  52. package/dist/components/BadgeWrapper/BadgeWrapper.mjs +1 -1
  53. package/dist/components/BadgeWrapper/BadgeWrapper.mjs.map +1 -1
  54. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.cts +1 -1
  55. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.cts.map +1 -1
  56. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.mts +1 -1
  57. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.mts.map +1 -1
  58. package/dist/components/BannerBase/BannerBase.types.d.cts +1 -1
  59. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -1
  60. package/dist/components/BannerBase/BannerBase.types.d.mts +1 -1
  61. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -1
  62. package/dist/components/BottomSheet/BottomSheet.cjs +6 -6
  63. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
  64. package/dist/components/BottomSheet/BottomSheet.d.cts +0 -35
  65. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  66. package/dist/components/BottomSheet/BottomSheet.d.mts +0 -35
  67. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  68. package/dist/components/BottomSheet/BottomSheet.mjs +6 -6
  69. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  70. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +28 -17
  71. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  72. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +0 -35
  73. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  74. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +0 -35
  75. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  76. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +30 -19
  77. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  78. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -1
  79. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +1 -9
  80. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -1
  81. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +1 -9
  82. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -1
  83. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -1
  84. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs +1 -1
  85. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -1
  86. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs +1 -1
  87. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -1
  88. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts +1 -1
  89. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -1
  90. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts +1 -1
  91. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -1
  92. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +1 -1
  93. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -1
  94. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs +1 -1
  95. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs.map +1 -1
  96. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts +1 -1
  97. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts.map +1 -1
  98. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts +1 -1
  99. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts.map +1 -1
  100. package/dist/components/Box/Box.cjs +1 -1
  101. package/dist/components/Box/Box.cjs.map +1 -1
  102. package/dist/components/Box/Box.d.cts +1 -1
  103. package/dist/components/Box/Box.d.cts.map +1 -1
  104. package/dist/components/Box/Box.d.mts +1 -1
  105. package/dist/components/Box/Box.d.mts.map +1 -1
  106. package/dist/components/Box/Box.mjs +1 -1
  107. package/dist/components/Box/Box.mjs.map +1 -1
  108. package/dist/components/Box/Box.types.d.cts +1 -1
  109. package/dist/components/Box/Box.types.d.cts.map +1 -1
  110. package/dist/components/Box/Box.types.d.mts +1 -1
  111. package/dist/components/Box/Box.types.d.mts.map +1 -1
  112. package/dist/components/ButtonBase/ButtonBase.types.d.cts +1 -2
  113. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  114. package/dist/components/ButtonBase/ButtonBase.types.d.mts +1 -2
  115. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  116. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +1 -1
  117. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  118. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +1 -1
  119. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  120. package/dist/components/Card/Card.cjs +2 -2
  121. package/dist/components/Card/Card.cjs.map +1 -1
  122. package/dist/components/Card/Card.mjs +2 -2
  123. package/dist/components/Card/Card.mjs.map +1 -1
  124. package/dist/components/Card/Card.types.cjs.map +1 -1
  125. package/dist/components/Card/Card.types.d.cts +2 -2
  126. package/dist/components/Card/Card.types.d.cts.map +1 -1
  127. package/dist/components/Card/Card.types.d.mts +2 -2
  128. package/dist/components/Card/Card.types.d.mts.map +1 -1
  129. package/dist/components/Card/Card.types.mjs.map +1 -1
  130. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  131. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  132. package/dist/components/Checkbox/Checkbox.d.cts +1 -1
  133. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  134. package/dist/components/Checkbox/Checkbox.d.mts +1 -1
  135. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  136. package/dist/components/Checkbox/Checkbox.mjs +1 -1
  137. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  138. package/dist/components/Checkbox/Checkbox.types.d.cts +1 -1
  139. package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
  140. package/dist/components/Checkbox/Checkbox.types.d.mts +1 -1
  141. package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
  142. package/dist/components/HeaderBase/HeaderBase.cjs +1 -1
  143. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
  144. package/dist/components/HeaderBase/HeaderBase.mjs +1 -1
  145. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
  146. package/dist/components/HeaderBase/HeaderBase.types.d.cts +1 -1
  147. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -1
  148. package/dist/components/HeaderBase/HeaderBase.types.d.mts +1 -1
  149. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -1
  150. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +1 -1
  151. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -1
  152. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +1 -1
  153. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -1
  154. package/dist/components/Icon/assets/telegram.svg +1 -3
  155. package/dist/components/Input/Input.cjs +1 -1
  156. package/dist/components/Input/Input.cjs.map +1 -1
  157. package/dist/components/Input/Input.d.cts +1 -2
  158. package/dist/components/Input/Input.d.cts.map +1 -1
  159. package/dist/components/Input/Input.d.mts +1 -2
  160. package/dist/components/Input/Input.d.mts.map +1 -1
  161. package/dist/components/Input/Input.mjs +1 -1
  162. package/dist/components/Input/Input.mjs.map +1 -1
  163. package/dist/components/Input/Input.types.d.cts +1 -1
  164. package/dist/components/Input/Input.types.d.cts.map +1 -1
  165. package/dist/components/Input/Input.types.d.mts +1 -1
  166. package/dist/components/Input/Input.types.d.mts.map +1 -1
  167. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts +1 -1
  168. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -1
  169. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts +1 -1
  170. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -1
  171. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +1 -1
  172. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
  173. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +1 -1
  174. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
  175. package/dist/components/ListItem/ListItem.cjs +1 -1
  176. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  177. package/dist/components/ListItem/ListItem.mjs +1 -1
  178. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  179. package/dist/components/ListItem/ListItem.types.d.cts +1 -1
  180. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
  181. package/dist/components/ListItem/ListItem.types.d.mts +1 -1
  182. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
  183. package/dist/components/MainActionButton/MainActionButton.types.d.cts +1 -1
  184. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -1
  185. package/dist/components/MainActionButton/MainActionButton.types.d.mts +1 -1
  186. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -1
  187. package/dist/components/RadioButton/RadioButton.cjs +1 -1
  188. package/dist/components/RadioButton/RadioButton.cjs.map +1 -1
  189. package/dist/components/RadioButton/RadioButton.mjs +1 -1
  190. package/dist/components/RadioButton/RadioButton.mjs.map +1 -1
  191. package/dist/components/RadioButton/RadioButton.types.d.cts +1 -2
  192. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -1
  193. package/dist/components/RadioButton/RadioButton.types.d.mts +1 -2
  194. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -1
  195. package/dist/components/SectionDivider/SectionDivider.cjs +47 -0
  196. package/dist/components/SectionDivider/SectionDivider.cjs.map +1 -0
  197. package/dist/components/SectionDivider/SectionDivider.d.cts +6 -0
  198. package/dist/components/SectionDivider/SectionDivider.d.cts.map +1 -0
  199. package/dist/components/SectionDivider/SectionDivider.d.mts +6 -0
  200. package/dist/components/SectionDivider/SectionDivider.d.mts.map +1 -0
  201. package/dist/components/SectionDivider/SectionDivider.mjs +28 -0
  202. package/dist/components/SectionDivider/SectionDivider.mjs.map +1 -0
  203. package/dist/components/SectionDivider/SectionDivider.types.cjs +3 -0
  204. package/dist/components/SectionDivider/SectionDivider.types.cjs.map +1 -0
  205. package/dist/components/SectionDivider/SectionDivider.types.d.cts +3 -0
  206. package/dist/components/SectionDivider/SectionDivider.types.d.cts.map +1 -0
  207. package/dist/components/SectionDivider/SectionDivider.types.d.mts +3 -0
  208. package/dist/components/SectionDivider/SectionDivider.types.d.mts.map +1 -0
  209. package/dist/components/SectionDivider/SectionDivider.types.mjs +2 -0
  210. package/dist/components/SectionDivider/SectionDivider.types.mjs.map +1 -0
  211. package/dist/components/SectionDivider/index.cjs +6 -0
  212. package/dist/components/SectionDivider/index.cjs.map +1 -0
  213. package/dist/components/SectionDivider/index.d.cts +3 -0
  214. package/dist/components/SectionDivider/index.d.cts.map +1 -0
  215. package/dist/components/SectionDivider/index.d.mts +3 -0
  216. package/dist/components/SectionDivider/index.d.mts.map +1 -0
  217. package/dist/components/SectionDivider/index.mjs +2 -0
  218. package/dist/components/SectionDivider/index.mjs.map +1 -0
  219. package/dist/components/SectionHeader/SectionHeader.cjs +45 -0
  220. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -0
  221. package/dist/components/SectionHeader/SectionHeader.d.cts +23 -0
  222. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -0
  223. package/dist/components/SectionHeader/SectionHeader.d.mts +23 -0
  224. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -0
  225. package/dist/components/SectionHeader/SectionHeader.mjs +45 -0
  226. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -0
  227. package/dist/components/SectionHeader/SectionHeader.types.cjs +3 -0
  228. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -0
  229. package/dist/components/SectionHeader/SectionHeader.types.d.cts +32 -0
  230. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -0
  231. package/dist/components/SectionHeader/SectionHeader.types.d.mts +32 -0
  232. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -0
  233. package/dist/components/SectionHeader/SectionHeader.types.mjs +2 -0
  234. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -0
  235. package/dist/components/SectionHeader/index.cjs +6 -0
  236. package/dist/components/SectionHeader/index.cjs.map +1 -0
  237. package/dist/components/SectionHeader/index.d.cts +3 -0
  238. package/dist/components/SectionHeader/index.d.cts.map +1 -0
  239. package/dist/components/SectionHeader/index.d.mts +3 -0
  240. package/dist/components/SectionHeader/index.d.mts.map +1 -0
  241. package/dist/components/SectionHeader/index.mjs +2 -0
  242. package/dist/components/SectionHeader/index.mjs.map +1 -0
  243. package/dist/components/SegmentButton/SegmentButton.cjs +86 -0
  244. package/dist/components/SegmentButton/SegmentButton.cjs.map +1 -0
  245. package/dist/components/SegmentButton/SegmentButton.d.cts +7 -0
  246. package/dist/components/SegmentButton/SegmentButton.d.cts.map +1 -0
  247. package/dist/components/SegmentButton/SegmentButton.d.mts +7 -0
  248. package/dist/components/SegmentButton/SegmentButton.d.mts.map +1 -0
  249. package/dist/components/SegmentButton/SegmentButton.mjs +66 -0
  250. package/dist/components/SegmentButton/SegmentButton.mjs.map +1 -0
  251. package/dist/components/SegmentButton/SegmentButton.types.cjs +3 -0
  252. package/dist/components/SegmentButton/SegmentButton.types.cjs.map +1 -0
  253. package/dist/components/SegmentButton/SegmentButton.types.d.cts +9 -0
  254. package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +1 -0
  255. package/dist/components/SegmentButton/SegmentButton.types.d.mts +9 -0
  256. package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +1 -0
  257. package/dist/components/SegmentButton/SegmentButton.types.mjs +2 -0
  258. package/dist/components/SegmentButton/SegmentButton.types.mjs.map +1 -0
  259. package/dist/components/SegmentButton/index.cjs +8 -0
  260. package/dist/components/SegmentButton/index.cjs.map +1 -0
  261. package/dist/components/SegmentButton/index.d.cts +4 -0
  262. package/dist/components/SegmentButton/index.d.cts.map +1 -0
  263. package/dist/components/SegmentButton/index.d.mts +4 -0
  264. package/dist/components/SegmentButton/index.d.mts.map +1 -0
  265. package/dist/components/SegmentButton/index.mjs +3 -0
  266. package/dist/components/SegmentButton/index.mjs.map +1 -0
  267. package/dist/components/SegmentGroup/SegmentGroup.cjs +47 -0
  268. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +1 -0
  269. package/dist/components/SegmentGroup/SegmentGroup.d.cts +7 -0
  270. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +1 -0
  271. package/dist/components/SegmentGroup/SegmentGroup.d.mts +7 -0
  272. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +1 -0
  273. package/dist/components/SegmentGroup/SegmentGroup.mjs +27 -0
  274. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +1 -0
  275. package/dist/components/SegmentGroup/SegmentGroup.types.cjs +3 -0
  276. package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
  277. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +12 -0
  278. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
  279. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +12 -0
  280. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
  281. package/dist/components/SegmentGroup/SegmentGroup.types.mjs +2 -0
  282. package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
  283. package/dist/components/SegmentGroup/index.cjs +6 -0
  284. package/dist/components/SegmentGroup/index.cjs.map +1 -0
  285. package/dist/components/SegmentGroup/index.d.cts +3 -0
  286. package/dist/components/SegmentGroup/index.d.cts.map +1 -0
  287. package/dist/components/SegmentGroup/index.d.mts +3 -0
  288. package/dist/components/SegmentGroup/index.d.mts.map +1 -0
  289. package/dist/components/SegmentGroup/index.mjs +2 -0
  290. package/dist/components/SegmentGroup/index.mjs.map +1 -0
  291. package/dist/components/SelectButton/SelectButton.cjs +53 -0
  292. package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
  293. package/dist/components/SelectButton/SelectButton.constants.cjs +12 -0
  294. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -0
  295. package/dist/components/SelectButton/SelectButton.constants.d.cts +4 -0
  296. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -0
  297. package/dist/components/SelectButton/SelectButton.constants.d.mts +4 -0
  298. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -0
  299. package/dist/components/SelectButton/SelectButton.constants.mjs +9 -0
  300. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -0
  301. package/dist/components/SelectButton/SelectButton.d.cts +7 -0
  302. package/dist/components/SelectButton/SelectButton.d.cts.map +1 -0
  303. package/dist/components/SelectButton/SelectButton.d.mts +7 -0
  304. package/dist/components/SelectButton/SelectButton.d.mts.map +1 -0
  305. package/dist/components/SelectButton/SelectButton.mjs +53 -0
  306. package/dist/components/SelectButton/SelectButton.mjs.map +1 -0
  307. package/dist/components/SelectButton/SelectButton.types.cjs +3 -0
  308. package/dist/components/SelectButton/SelectButton.types.cjs.map +1 -0
  309. package/dist/components/SelectButton/SelectButton.types.d.cts +13 -0
  310. package/dist/components/SelectButton/SelectButton.types.d.cts.map +1 -0
  311. package/dist/components/SelectButton/SelectButton.types.d.mts +13 -0
  312. package/dist/components/SelectButton/SelectButton.types.d.mts.map +1 -0
  313. package/dist/components/SelectButton/SelectButton.types.mjs +2 -0
  314. package/dist/components/SelectButton/SelectButton.types.mjs.map +1 -0
  315. package/dist/components/SelectButton/index.cjs +10 -0
  316. package/dist/components/SelectButton/index.cjs.map +1 -0
  317. package/dist/components/SelectButton/index.d.cts +4 -0
  318. package/dist/components/SelectButton/index.d.cts.map +1 -0
  319. package/dist/components/SelectButton/index.d.mts +4 -0
  320. package/dist/components/SelectButton/index.d.mts.map +1 -0
  321. package/dist/components/SelectButton/index.mjs +3 -0
  322. package/dist/components/SelectButton/index.mjs.map +1 -0
  323. package/dist/components/SensitiveText/SensitiveText.cjs +4 -4
  324. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
  325. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -1
  326. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -1
  327. package/dist/components/SensitiveText/SensitiveText.mjs +1 -1
  328. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
  329. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -1
  330. package/dist/components/SensitiveText/SensitiveText.types.d.cts +6 -34
  331. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -1
  332. package/dist/components/SensitiveText/SensitiveText.types.d.mts +6 -34
  333. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -1
  334. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -1
  335. package/dist/components/SensitiveText/index.cjs +3 -3
  336. package/dist/components/SensitiveText/index.cjs.map +1 -1
  337. package/dist/components/SensitiveText/index.d.cts +1 -1
  338. package/dist/components/SensitiveText/index.d.cts.map +1 -1
  339. package/dist/components/SensitiveText/index.d.mts +1 -1
  340. package/dist/components/SensitiveText/index.d.mts.map +1 -1
  341. package/dist/components/SensitiveText/index.mjs +1 -1
  342. package/dist/components/SensitiveText/index.mjs.map +1 -1
  343. package/dist/components/Skeleton/Skeleton.cjs +1 -1
  344. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  345. package/dist/components/Skeleton/Skeleton.mjs +1 -1
  346. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  347. package/dist/components/Skeleton/Skeleton.types.d.cts +1 -1
  348. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -1
  349. package/dist/components/Skeleton/Skeleton.types.d.mts +1 -1
  350. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -1
  351. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +1 -1
  352. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -1
  353. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +1 -1
  354. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -1
  355. package/dist/components/Tag/Tag.types.d.cts +1 -1
  356. package/dist/components/Tag/Tag.types.d.cts.map +1 -1
  357. package/dist/components/Tag/Tag.types.d.mts +1 -1
  358. package/dist/components/Tag/Tag.types.d.mts.map +1 -1
  359. package/dist/components/Text/Text.cjs +1 -1
  360. package/dist/components/Text/Text.cjs.map +1 -1
  361. package/dist/components/Text/Text.mjs +1 -1
  362. package/dist/components/Text/Text.mjs.map +1 -1
  363. package/dist/components/Text/Text.types.d.cts +1 -1
  364. package/dist/components/Text/Text.types.d.cts.map +1 -1
  365. package/dist/components/Text/Text.types.d.mts +1 -1
  366. package/dist/components/Text/Text.types.d.mts.map +1 -1
  367. package/dist/components/TextArea/TextArea.cjs +1 -1
  368. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  369. package/dist/components/TextArea/TextArea.d.cts +20 -16
  370. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  371. package/dist/components/TextArea/TextArea.d.mts +20 -16
  372. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  373. package/dist/components/TextArea/TextArea.mjs +1 -1
  374. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  375. package/dist/components/TextArea/TextArea.types.d.cts +1 -1
  376. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -1
  377. package/dist/components/TextArea/TextArea.types.d.mts +1 -1
  378. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -1
  379. package/dist/components/TextButton/TextButton.types.d.cts +0 -1
  380. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  381. package/dist/components/TextButton/TextButton.types.d.mts +0 -1
  382. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  383. package/dist/components/TextField/TextField.cjs +1 -1
  384. package/dist/components/TextField/TextField.cjs.map +1 -1
  385. package/dist/components/TextField/TextField.d.cts +20 -16
  386. package/dist/components/TextField/TextField.d.cts.map +1 -1
  387. package/dist/components/TextField/TextField.d.mts +20 -16
  388. package/dist/components/TextField/TextField.d.mts.map +1 -1
  389. package/dist/components/TextField/TextField.mjs +1 -1
  390. package/dist/components/TextField/TextField.mjs.map +1 -1
  391. package/dist/components/TextField/TextField.types.d.cts +1 -1
  392. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  393. package/dist/components/TextField/TextField.types.d.mts +1 -1
  394. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  395. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +20 -15
  396. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  397. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +20 -15
  398. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  399. package/dist/components/TitleAlert/TitleAlert.cjs +54 -0
  400. package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -0
  401. package/dist/components/TitleAlert/TitleAlert.d.cts +21 -0
  402. package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -0
  403. package/dist/components/TitleAlert/TitleAlert.d.mts +21 -0
  404. package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -0
  405. package/dist/components/TitleAlert/TitleAlert.mjs +54 -0
  406. package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -0
  407. package/dist/components/TitleAlert/TitleAlert.types.cjs +3 -0
  408. package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -0
  409. package/dist/components/TitleAlert/TitleAlert.types.d.cts +31 -0
  410. package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -0
  411. package/dist/components/TitleAlert/TitleAlert.types.d.mts +31 -0
  412. package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -0
  413. package/dist/components/TitleAlert/TitleAlert.types.mjs +2 -0
  414. package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -0
  415. package/dist/components/TitleAlert/index.cjs +6 -0
  416. package/dist/components/TitleAlert/index.cjs.map +1 -0
  417. package/dist/components/TitleAlert/index.d.cts +3 -0
  418. package/dist/components/TitleAlert/index.d.cts.map +1 -0
  419. package/dist/components/TitleAlert/index.d.mts +3 -0
  420. package/dist/components/TitleAlert/index.d.mts.map +1 -0
  421. package/dist/components/TitleAlert/index.mjs +2 -0
  422. package/dist/components/TitleAlert/index.mjs.map +1 -0
  423. package/dist/components/TitleHub/TitleHub.types.d.cts +1 -1
  424. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
  425. package/dist/components/TitleHub/TitleHub.types.d.mts +1 -1
  426. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
  427. package/dist/components/TitleStandard/TitleStandard.types.d.cts +1 -1
  428. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
  429. package/dist/components/TitleStandard/TitleStandard.types.d.mts +1 -1
  430. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
  431. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +1 -1
  432. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
  433. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +1 -1
  434. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
  435. package/dist/components/Toast/Toast.types.d.cts +1 -1
  436. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  437. package/dist/components/Toast/Toast.types.d.mts +1 -1
  438. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  439. package/dist/components/Toast/Toaster.cjs +1 -1
  440. package/dist/components/Toast/Toaster.cjs.map +1 -1
  441. package/dist/components/Toast/Toaster.mjs +1 -1
  442. package/dist/components/Toast/Toaster.mjs.map +1 -1
  443. package/dist/components/index.cjs +18 -2
  444. package/dist/components/index.cjs.map +1 -1
  445. package/dist/components/index.d.cts +12 -0
  446. package/dist/components/index.d.cts.map +1 -1
  447. package/dist/components/index.d.mts +12 -0
  448. package/dist/components/index.d.mts.map +1 -1
  449. package/dist/components/index.mjs +6 -0
  450. package/dist/components/index.mjs.map +1 -1
  451. package/dist/components/temp-components/Blockies/Blockies.cjs +1 -1
  452. package/dist/components/temp-components/Blockies/Blockies.cjs.map +1 -1
  453. package/dist/components/temp-components/Blockies/Blockies.mjs +1 -1
  454. package/dist/components/temp-components/Blockies/Blockies.mjs.map +1 -1
  455. package/dist/components/temp-components/Blockies/Blockies.types.d.cts +1 -1
  456. package/dist/components/temp-components/Blockies/Blockies.types.d.cts.map +1 -1
  457. package/dist/components/temp-components/Blockies/Blockies.types.d.mts +1 -1
  458. package/dist/components/temp-components/Blockies/Blockies.types.d.mts.map +1 -1
  459. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +1 -1
  460. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
  461. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs +1 -1
  462. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs.map +1 -1
  463. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts +1 -1
  464. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts.map +1 -1
  465. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts +1 -1
  466. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts.map +1 -1
  467. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs +1 -1
  468. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs.map +1 -1
  469. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs +1 -1
  470. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs.map +1 -1
  471. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +1 -2
  472. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  473. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +1 -2
  474. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  475. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +1 -1
  476. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
  477. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +1 -1
  478. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
  479. package/dist/components/temp-components/Maskicon/Maskicon.cjs +1 -1
  480. package/dist/components/temp-components/Maskicon/Maskicon.cjs.map +1 -1
  481. package/dist/components/temp-components/Maskicon/Maskicon.mjs +1 -1
  482. package/dist/components/temp-components/Maskicon/Maskicon.mjs.map +1 -1
  483. package/dist/components/temp-components/Spinner/Spinner.cjs +1 -1
  484. package/dist/components/temp-components/Spinner/Spinner.cjs.map +1 -1
  485. package/dist/components/temp-components/Spinner/Spinner.mjs +1 -1
  486. package/dist/components/temp-components/Spinner/Spinner.mjs.map +1 -1
  487. package/dist/components/temp-components/Spinner/Spinner.types.d.cts +1 -1
  488. package/dist/components/temp-components/Spinner/Spinner.types.d.cts.map +1 -1
  489. package/dist/components/temp-components/Spinner/Spinner.types.d.mts +1 -1
  490. package/dist/components/temp-components/Spinner/Spinner.types.d.mts.map +1 -1
  491. package/dist/test-utils/createRenderer.cjs +41 -0
  492. package/dist/test-utils/createRenderer.cjs.map +1 -0
  493. package/dist/test-utils/createRenderer.d.cts +4 -0
  494. package/dist/test-utils/createRenderer.d.cts.map +1 -0
  495. package/dist/test-utils/createRenderer.d.mts +4 -0
  496. package/dist/test-utils/createRenderer.d.mts.map +1 -0
  497. package/dist/test-utils/createRenderer.mjs +18 -0
  498. package/dist/test-utils/createRenderer.mjs.map +1 -0
  499. package/package.json +19 -20
  500. package/dist/components/SensitiveText/SensitiveText.constants.cjs +0 -14
  501. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +0 -1
  502. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +0 -11
  503. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +0 -1
  504. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +0 -11
  505. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +0 -1
  506. package/dist/components/SensitiveText/SensitiveText.constants.mjs +0 -11
  507. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +0 -1
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TextField = void 0;
4
4
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
5
5
  const react_1 = require("react");
6
- const react_native_1 = require("react-native/index.js");
6
+ const react_native_1 = require("react-native");
7
7
  const Box_1 = require("../Box/index.cjs");
8
8
  const Input_1 = require("../Input/index.cjs");
9
9
  exports.TextField = (0, react_1.forwardRef)(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, inputProps, inputRef, isDisabled = false, isError = false, inputElement, startAccessory, endAccessory, style, twClassName, testID, ...props }, ref) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.cjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask-previews/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
+ {"version":3,"file":"TextField.cjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask-previews/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,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { View } from "react-native/index.js";
1
+ import { View } from "react-native";
3
2
  export declare const TextField: import("react").ForwardRefExoticComponent<Omit<import("@metamask-previews/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
3
  isError?: boolean | undefined;
5
4
  startAccessory?: import("react").ReactNode;
@@ -7,8 +6,8 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
7
6
  inputElement?: import("react").ReactNode;
8
7
  } & {
9
8
  onChangeText?: ((text: string) => void) | undefined;
10
- onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
11
- onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
9
+ onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
10
+ onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
12
11
  inputProps?: {
13
12
  children?: import("react").ReactNode;
14
13
  hitSlop?: number | import("react-native").Insets | null | undefined;
@@ -89,6 +88,7 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
89
88
  'aria-labelledby'?: string | undefined;
90
89
  accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
91
90
  'aria-live'?: "polite" | "assertive" | "off" | undefined;
91
+ screenReaderFocusable?: boolean | undefined;
92
92
  accessibilityElementsHidden?: boolean | undefined;
93
93
  accessibilityViewIsModal?: boolean | undefined;
94
94
  onAccessibilityEscape?: (() => void) | undefined;
@@ -98,6 +98,7 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
98
98
  accessibilityLanguage?: string | undefined;
99
99
  accessibilityShowsLargeContentViewer?: boolean | undefined;
100
100
  accessibilityLargeContentTitle?: string | undefined;
101
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
101
102
  twClassName?: string | undefined;
102
103
  onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
103
104
  onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
@@ -108,8 +109,11 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
108
109
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
109
110
  selectionColor?: import("react-native").ColorValue | undefined;
110
111
  textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
112
+ textAlign?: "center" | "left" | "right" | undefined;
113
+ textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
114
+ verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
111
115
  rejectResponderTermination?: boolean | null | undefined;
112
- onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
116
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
113
117
  autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
114
118
  autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
115
119
  autoCorrect?: boolean | undefined;
@@ -121,12 +125,12 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
121
125
  inputMode?: import("react-native").InputModeOptions | undefined;
122
126
  maxLength?: number | undefined;
123
127
  multiline?: boolean | undefined;
124
- onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
125
- onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
126
- onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
127
- onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
128
- onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
129
- onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
128
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
129
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
130
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
131
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
132
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
133
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
130
134
  readOnly?: boolean | undefined;
131
135
  returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
132
136
  enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
@@ -136,8 +140,9 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
136
140
  start: number;
137
141
  end?: number | undefined;
138
142
  } | undefined;
139
- textAlign?: "center" | "left" | "right" | undefined;
140
143
  inputAccessoryViewID?: string | undefined;
144
+ inputAccessoryViewButtonLabel?: string | undefined;
145
+ disableKeyboardShortcuts?: boolean | undefined;
141
146
  clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
142
147
  clearTextOnFocus?: boolean | undefined;
143
148
  dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
@@ -146,8 +151,9 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
146
151
  passwordRules?: string | null | undefined;
147
152
  selectionState?: import("react-native").DocumentSelectionState | undefined;
148
153
  spellCheck?: boolean | undefined;
149
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
154
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
150
155
  scrollEnabled?: boolean | undefined;
156
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
151
157
  smartInsertDelete?: boolean | undefined;
152
158
  cursorColor?: import("react-native").ColorValue | null | undefined;
153
159
  selectionHandleColor?: import("react-native").ColorValue | null | undefined;
@@ -157,13 +163,11 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
157
163
  inlineImagePadding?: number | undefined;
158
164
  returnKeyLabel?: string | undefined;
159
165
  underlineColorAndroid?: import("react-native").ColorValue | undefined;
160
- textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
161
166
  showSoftInputOnFocus?: boolean | undefined;
162
- verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
163
167
  } | undefined;
164
168
  inputRef?: import("react").Ref<import("react-native").TextInput> | undefined;
165
169
  twClassName?: string | undefined;
166
170
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
167
171
  testID?: string | undefined;
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>>;
172
+ } & Omit<import("../Box/index.cjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
169
173
  //# sourceMappingURL=TextField.d.cts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"TextField.d.cts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAQpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qVAuGrB,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { View } from "react-native/index.js";
1
+ import { View } from "react-native";
3
2
  export declare const TextField: import("react").ForwardRefExoticComponent<Omit<import("@metamask-previews/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
3
  isError?: boolean | undefined;
5
4
  startAccessory?: import("react").ReactNode;
@@ -7,8 +6,8 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
7
6
  inputElement?: import("react").ReactNode;
8
7
  } & {
9
8
  onChangeText?: ((text: string) => void) | undefined;
10
- onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
11
- onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
9
+ onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
10
+ onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
12
11
  inputProps?: {
13
12
  children?: import("react").ReactNode;
14
13
  hitSlop?: number | import("react-native").Insets | null | undefined;
@@ -89,6 +88,7 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
89
88
  'aria-labelledby'?: string | undefined;
90
89
  accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
91
90
  'aria-live'?: "polite" | "assertive" | "off" | undefined;
91
+ screenReaderFocusable?: boolean | undefined;
92
92
  accessibilityElementsHidden?: boolean | undefined;
93
93
  accessibilityViewIsModal?: boolean | undefined;
94
94
  onAccessibilityEscape?: (() => void) | undefined;
@@ -98,6 +98,7 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
98
98
  accessibilityLanguage?: string | undefined;
99
99
  accessibilityShowsLargeContentViewer?: boolean | undefined;
100
100
  accessibilityLargeContentTitle?: string | undefined;
101
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
101
102
  twClassName?: string | undefined;
102
103
  onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
103
104
  onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
@@ -108,8 +109,11 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
108
109
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
109
110
  selectionColor?: import("react-native").ColorValue | undefined;
110
111
  textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
112
+ textAlign?: "center" | "left" | "right" | undefined;
113
+ textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
114
+ verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
111
115
  rejectResponderTermination?: boolean | null | undefined;
112
- onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
116
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
113
117
  autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
114
118
  autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
115
119
  autoCorrect?: boolean | undefined;
@@ -121,12 +125,12 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
121
125
  inputMode?: import("react-native").InputModeOptions | undefined;
122
126
  maxLength?: number | undefined;
123
127
  multiline?: boolean | undefined;
124
- onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
125
- onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
126
- onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
127
- onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
128
- onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
129
- onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
128
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
129
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
130
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
131
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
132
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
133
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
130
134
  readOnly?: boolean | undefined;
131
135
  returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
132
136
  enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
@@ -136,8 +140,9 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
136
140
  start: number;
137
141
  end?: number | undefined;
138
142
  } | undefined;
139
- textAlign?: "center" | "left" | "right" | undefined;
140
143
  inputAccessoryViewID?: string | undefined;
144
+ inputAccessoryViewButtonLabel?: string | undefined;
145
+ disableKeyboardShortcuts?: boolean | undefined;
141
146
  clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
142
147
  clearTextOnFocus?: boolean | undefined;
143
148
  dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
@@ -146,8 +151,9 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
146
151
  passwordRules?: string | null | undefined;
147
152
  selectionState?: import("react-native").DocumentSelectionState | undefined;
148
153
  spellCheck?: boolean | undefined;
149
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
154
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
150
155
  scrollEnabled?: boolean | undefined;
156
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
151
157
  smartInsertDelete?: boolean | undefined;
152
158
  cursorColor?: import("react-native").ColorValue | null | undefined;
153
159
  selectionHandleColor?: import("react-native").ColorValue | null | undefined;
@@ -157,13 +163,11 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
157
163
  inlineImagePadding?: number | undefined;
158
164
  returnKeyLabel?: string | undefined;
159
165
  underlineColorAndroid?: import("react-native").ColorValue | undefined;
160
- textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
161
166
  showSoftInputOnFocus?: boolean | undefined;
162
- verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
163
167
  } | undefined;
164
168
  inputRef?: import("react").Ref<import("react-native").TextInput> | undefined;
165
169
  twClassName?: string | undefined;
166
170
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
167
171
  testID?: string | undefined;
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>>;
172
+ } & Omit<import("../Box/index.mjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
169
173
  //# sourceMappingURL=TextField.d.mts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"TextField.d.mts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAQpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qVAuGrB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
2
2
  import { forwardRef, useCallback, useState } from "react";
3
- import { View } from "react-native/index.js";
3
+ import { View } from "react-native";
4
4
  import { Box } from "../Box/index.mjs";
5
5
  import { Input } from "../Input/index.mjs";
6
6
  export const TextField = forwardRef(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, inputProps, inputRef, isDisabled = false, isError = false, inputElement, startAccessory, endAccessory, style, twClassName, testID, ...props }, ref) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.mjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc;AAC1D,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,KAAK,EAAE,2BAAiB;AAKjC,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CACjC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,EACJ,WAAW,EAAE,yBAAyB,EACtC,GAAG,2BAA2B,EAC/B,GAAG,UAAU,IAAI,EAAE,CAAC;IAErB,MAAM,aAAa,GAAG,WAAW,CAC/B,CAAC,CAAmD,EAAE,EAAE;QACtD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;SACb;IACH,CAAC,EACD,CAAC,UAAU,EAAE,MAAM,CAAC,CACrB,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,CAAoD,EAAE,EAAE;QACvD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;SACd;IACH,CAAC,EACD,CAAC,UAAU,EAAE,OAAO,CAAC,CACtB,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CACF,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,UAAU,CAAC,CAAC,KAAK,CAAC,CAClB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,UAAU,EACV,cAAc,EACd,OAAO,EACP,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,MAAM,EACN,UAAU,EACV,UAAU,IAAI,cAAc,EAC5B,CAAC,UAAU,IAAI,OAAO,IAAI,sBAAsB,EAChD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,SAAS,IAAI,gBAAgB,EACxD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,cAAc,EACvD,UAAU,IAAI,YAAY,EAC1B,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;QAAA,CAAC,cAAc,CACf;QAAA,CAAC,YAAY,IAAI,CACf,CAAC,KAAK,CACJ,IAAI,2BAA2B,CAAC,CAChC,GAAG,CAAC,CAAC,QAAQ,CAAC,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,WAAW,CAAC,CAAC,iEACX,yBAAyB,CAAC,CAAC,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAChE,EAAE,CAAC,CACH,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,SAAS,CAAC,CAAC,KAAK,CAAC,EACjB,CACH,CACD;QAAA,CAAC,YAAY,CACf;MAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/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
+ {"version":3,"file":"TextField.mjs","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc;AAC1D,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAEpC,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,KAAK,EAAE,2BAAiB;AAKjC,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CACjC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,EACJ,WAAW,EAAE,yBAAyB,EACtC,GAAG,2BAA2B,EAC/B,GAAG,UAAU,IAAI,EAAE,CAAC;IAErB,MAAM,aAAa,GAAG,WAAW,CAC/B,CAAC,CAAmD,EAAE,EAAE;QACtD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;SACb;IACH,CAAC,EACD,CAAC,UAAU,EAAE,MAAM,CAAC,CACrB,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,CAAoD,EAAE,EAAE;QACvD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;SACd;IACH,CAAC,EACD,CAAC,UAAU,EAAE,OAAO,CAAC,CACtB,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CACF,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,UAAU,CAAC,CAAC,KAAK,CAAC,CAClB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,UAAU,EACV,cAAc,EACd,OAAO,EACP,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,MAAM,EACN,UAAU,EACV,UAAU,IAAI,cAAc,EAC5B,CAAC,UAAU,IAAI,OAAO,IAAI,sBAAsB,EAChD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,SAAS,IAAI,gBAAgB,EACxD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,cAAc,EACvD,UAAU,IAAI,YAAY,EAC1B,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;QAAA,CAAC,cAAc,CACf;QAAA,CAAC,YAAY,IAAI,CACf,CAAC,KAAK,CACJ,IAAI,2BAA2B,CAAC,CAChC,GAAG,CAAC,CAAC,QAAQ,CAAC,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,WAAW,CAAC,CAAC,iEACX,yBAAyB,CAAC,CAAC,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAChE,EAAE,CAAC,CACH,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,SAAS,CAAC,CAAC,KAAK,CAAC,EACjB,CACH,CACD;QAAA,CAAC,YAAY,CACf;MAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/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,6 @@
1
1
  import type { TextFieldPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { Ref } from "react";
3
- import type { StyleProp, TextInput, ViewStyle } from "react-native/index.js";
3
+ import type { StyleProp, TextInput, ViewStyle } from "react-native";
4
4
  import type { BoxProps } from "../Box/Box.types.cjs";
5
5
  import type { InputProps } from "../Input/Input.types.cjs";
6
6
  /**
@@ -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,gDAAgD;AACpF,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
+ {"version":3,"file":"TextField.types.d.cts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gDAAgD;AACpF,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB;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,6 +1,6 @@
1
1
  import type { TextFieldPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { Ref } from "react";
3
- import type { StyleProp, TextInput, ViewStyle } from "react-native/index.js";
3
+ import type { StyleProp, TextInput, ViewStyle } from "react-native";
4
4
  import type { BoxProps } from "../Box/Box.types.mjs";
5
5
  import type { InputProps } from "../Input/Input.types.mjs";
6
6
  /**
@@ -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,gDAAgD;AACpF,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
+ {"version":3,"file":"TextField.types.d.mts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gDAAgD;AACpF,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB;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,5 +1,5 @@
1
1
  import React from "react";
2
- import type { View } from "react-native/index.js";
2
+ import type { View } from "react-native";
3
3
  export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<import("@metamask-previews/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
4
  isError?: boolean | undefined;
5
5
  startAccessory?: React.ReactNode;
@@ -7,8 +7,8 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
7
7
  inputElement?: React.ReactNode;
8
8
  } & {
9
9
  onChangeText?: ((text: string) => void) | undefined;
10
- onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
11
- onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
10
+ onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
11
+ onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
12
12
  inputProps?: {
13
13
  children?: React.ReactNode;
14
14
  hitSlop?: number | import("react-native").Insets | null | undefined;
@@ -89,6 +89,7 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
89
89
  'aria-labelledby'?: string | undefined;
90
90
  accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
91
91
  'aria-live'?: "polite" | "assertive" | "off" | undefined;
92
+ screenReaderFocusable?: boolean | undefined;
92
93
  accessibilityElementsHidden?: boolean | undefined;
93
94
  accessibilityViewIsModal?: boolean | undefined;
94
95
  onAccessibilityEscape?: (() => void) | undefined;
@@ -98,6 +99,7 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
98
99
  accessibilityLanguage?: string | undefined;
99
100
  accessibilityShowsLargeContentViewer?: boolean | undefined;
100
101
  accessibilityLargeContentTitle?: string | undefined;
102
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
101
103
  twClassName?: string | undefined;
102
104
  onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
103
105
  onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
@@ -108,8 +110,11 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
108
110
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
109
111
  selectionColor?: import("react-native").ColorValue | undefined;
110
112
  textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
113
+ textAlign?: "center" | "left" | "right" | undefined;
114
+ textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
115
+ verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
111
116
  rejectResponderTermination?: boolean | null | undefined;
112
- onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
117
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
113
118
  autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
114
119
  autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
115
120
  autoCorrect?: boolean | undefined;
@@ -121,12 +126,12 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
121
126
  inputMode?: import("react-native").InputModeOptions | undefined;
122
127
  maxLength?: number | undefined;
123
128
  multiline?: boolean | undefined;
124
- onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
125
- onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
126
- onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
127
- onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
128
- onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
129
- onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
129
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
130
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
131
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
132
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
133
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
134
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
130
135
  readOnly?: boolean | undefined;
131
136
  returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
132
137
  enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
@@ -136,8 +141,9 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
136
141
  start: number;
137
142
  end?: number | undefined;
138
143
  } | undefined;
139
- textAlign?: "center" | "left" | "right" | undefined;
140
144
  inputAccessoryViewID?: string | undefined;
145
+ inputAccessoryViewButtonLabel?: string | undefined;
146
+ disableKeyboardShortcuts?: boolean | undefined;
141
147
  clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
142
148
  clearTextOnFocus?: boolean | undefined;
143
149
  dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
@@ -146,8 +152,9 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
146
152
  passwordRules?: string | null | undefined;
147
153
  selectionState?: import("react-native").DocumentSelectionState | undefined;
148
154
  spellCheck?: boolean | undefined;
149
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
155
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
150
156
  scrollEnabled?: boolean | undefined;
157
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
151
158
  smartInsertDelete?: boolean | undefined;
152
159
  cursorColor?: import("react-native").ColorValue | null | undefined;
153
160
  selectionHandleColor?: import("react-native").ColorValue | null | undefined;
@@ -157,15 +164,13 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
157
164
  inlineImagePadding?: number | undefined;
158
165
  returnKeyLabel?: string | undefined;
159
166
  underlineColorAndroid?: import("react-native").ColorValue | undefined;
160
- textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
161
167
  showSoftInputOnFocus?: boolean | undefined;
162
- verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
163
168
  } | undefined;
164
169
  inputRef?: React.Ref<import("react-native").TextInput> | undefined;
165
170
  twClassName?: string | undefined;
166
171
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
167
172
  testID?: string | undefined;
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"> & {
173
+ } & Omit<import("../index.cjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & {
169
174
  clearButtonProps?: Partial<import("../ButtonIcon/index.cjs").ButtonIconProps> | undefined;
170
175
  onPressClearButton: () => void;
171
176
  } & 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,qBAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { View } from "react-native/index.js";
2
+ import type { View } from "react-native";
3
3
  export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<import("@metamask-previews/design-system-shared").InputPropsShared, "textVariant" | "isStateStylesDisabled"> & {
4
4
  isError?: boolean | undefined;
5
5
  startAccessory?: React.ReactNode;
@@ -7,8 +7,8 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
7
7
  inputElement?: React.ReactNode;
8
8
  } & {
9
9
  onChangeText?: ((text: string) => void) | undefined;
10
- onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
11
- onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
10
+ onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
11
+ onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
12
12
  inputProps?: {
13
13
  children?: React.ReactNode;
14
14
  hitSlop?: number | import("react-native").Insets | null | undefined;
@@ -89,6 +89,7 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
89
89
  'aria-labelledby'?: string | undefined;
90
90
  accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
91
91
  'aria-live'?: "polite" | "assertive" | "off" | undefined;
92
+ screenReaderFocusable?: boolean | undefined;
92
93
  accessibilityElementsHidden?: boolean | undefined;
93
94
  accessibilityViewIsModal?: boolean | undefined;
94
95
  onAccessibilityEscape?: (() => void) | undefined;
@@ -98,6 +99,7 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
98
99
  accessibilityLanguage?: string | undefined;
99
100
  accessibilityShowsLargeContentViewer?: boolean | undefined;
100
101
  accessibilityLargeContentTitle?: string | undefined;
102
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
101
103
  twClassName?: string | undefined;
102
104
  onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
103
105
  onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
@@ -108,8 +110,11 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
108
110
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
109
111
  selectionColor?: import("react-native").ColorValue | undefined;
110
112
  textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
113
+ textAlign?: "center" | "left" | "right" | undefined;
114
+ textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
115
+ verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
111
116
  rejectResponderTermination?: boolean | null | undefined;
112
- onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
117
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
113
118
  autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
114
119
  autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
115
120
  autoCorrect?: boolean | undefined;
@@ -121,12 +126,12 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
121
126
  inputMode?: import("react-native").InputModeOptions | undefined;
122
127
  maxLength?: number | undefined;
123
128
  multiline?: boolean | undefined;
124
- onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
125
- onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
126
- onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
127
- onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
128
- onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
129
- onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
129
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
130
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
131
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
132
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
133
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
134
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
130
135
  readOnly?: boolean | undefined;
131
136
  returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
132
137
  enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
@@ -136,8 +141,9 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
136
141
  start: number;
137
142
  end?: number | undefined;
138
143
  } | undefined;
139
- textAlign?: "center" | "left" | "right" | undefined;
140
144
  inputAccessoryViewID?: string | undefined;
145
+ inputAccessoryViewButtonLabel?: string | undefined;
146
+ disableKeyboardShortcuts?: boolean | undefined;
141
147
  clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
142
148
  clearTextOnFocus?: boolean | undefined;
143
149
  dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
@@ -146,8 +152,9 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
146
152
  passwordRules?: string | null | undefined;
147
153
  selectionState?: import("react-native").DocumentSelectionState | undefined;
148
154
  spellCheck?: boolean | undefined;
149
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
155
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
150
156
  scrollEnabled?: boolean | undefined;
157
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
151
158
  smartInsertDelete?: boolean | undefined;
152
159
  cursorColor?: import("react-native").ColorValue | null | undefined;
153
160
  selectionHandleColor?: import("react-native").ColorValue | null | undefined;
@@ -157,15 +164,13 @@ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<impor
157
164
  inlineImagePadding?: number | undefined;
158
165
  returnKeyLabel?: string | undefined;
159
166
  underlineColorAndroid?: import("react-native").ColorValue | undefined;
160
- textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
161
167
  showSoftInputOnFocus?: boolean | undefined;
162
- verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
163
168
  } | undefined;
164
169
  inputRef?: React.Ref<import("react-native").TextInput> | undefined;
165
170
  twClassName?: string | undefined;
166
171
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
167
172
  testID?: string | undefined;
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"> & {
173
+ } & Omit<import("../index.mjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "startAccessory" | "endAccessory" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & {
169
174
  clearButtonProps?: Partial<import("../ButtonIcon/index.mjs").ButtonIconProps> | undefined;
170
175
  onPressClearButton: () => void;
171
176
  } & 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,qBAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}