@metamask/design-system-react-native 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/dist/components/AvatarAccount/AvatarAccount.cjs +4 -3
  3. package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
  4. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs +9 -1
  5. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs.map +1 -1
  6. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts +2 -0
  7. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts.map +1 -1
  8. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts +2 -0
  9. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts.map +1 -1
  10. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs +8 -0
  11. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs.map +1 -1
  12. package/dist/components/AvatarAccount/AvatarAccount.d.cts.map +1 -1
  13. package/dist/components/AvatarAccount/AvatarAccount.d.mts.map +1 -1
  14. package/dist/components/AvatarAccount/AvatarAccount.mjs +4 -3
  15. package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
  16. package/dist/components/AvatarBase/AvatarBase.cjs +3 -3
  17. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  18. package/dist/components/AvatarBase/AvatarBase.constants.cjs +21 -21
  19. package/dist/components/AvatarBase/AvatarBase.constants.cjs.map +1 -1
  20. package/dist/components/AvatarBase/AvatarBase.constants.d.cts +1 -1
  21. package/dist/components/AvatarBase/AvatarBase.constants.d.cts.map +1 -1
  22. package/dist/components/AvatarBase/AvatarBase.constants.d.mts +1 -1
  23. package/dist/components/AvatarBase/AvatarBase.constants.d.mts.map +1 -1
  24. package/dist/components/AvatarBase/AvatarBase.constants.mjs +1 -1
  25. package/dist/components/AvatarBase/AvatarBase.constants.mjs.map +1 -1
  26. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  27. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  28. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  29. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  30. package/dist/components/AvatarBase/AvatarBase.types.cjs.map +1 -1
  31. package/dist/components/AvatarBase/AvatarBase.types.d.cts +3 -39
  32. package/dist/components/AvatarBase/AvatarBase.types.d.cts.map +1 -1
  33. package/dist/components/AvatarBase/AvatarBase.types.d.mts +3 -39
  34. package/dist/components/AvatarBase/AvatarBase.types.d.mts.map +1 -1
  35. package/dist/components/AvatarBase/AvatarBase.types.mjs.map +1 -1
  36. package/dist/components/AvatarBase/index.cjs +3 -3
  37. package/dist/components/AvatarBase/index.cjs.map +1 -1
  38. package/dist/components/AvatarBase/index.d.cts +1 -1
  39. package/dist/components/AvatarBase/index.d.cts.map +1 -1
  40. package/dist/components/AvatarBase/index.d.mts +1 -1
  41. package/dist/components/AvatarBase/index.d.mts.map +1 -1
  42. package/dist/components/AvatarBase/index.mjs +1 -1
  43. package/dist/components/AvatarBase/index.mjs.map +1 -1
  44. package/dist/components/BadgeWrapper/BadgeWrapper.cjs +8 -8
  45. package/dist/components/BadgeWrapper/BadgeWrapper.cjs.map +1 -1
  46. package/dist/components/BadgeWrapper/BadgeWrapper.d.cts.map +1 -1
  47. package/dist/components/BadgeWrapper/BadgeWrapper.d.mts.map +1 -1
  48. package/dist/components/BadgeWrapper/BadgeWrapper.mjs +1 -1
  49. package/dist/components/BadgeWrapper/BadgeWrapper.mjs.map +1 -1
  50. package/dist/components/BadgeWrapper/BadgeWrapper.types.cjs.map +1 -1
  51. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.cts +4 -51
  52. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.cts.map +1 -1
  53. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.mts +4 -51
  54. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.mts.map +1 -1
  55. package/dist/components/BadgeWrapper/BadgeWrapper.types.mjs.map +1 -1
  56. package/dist/components/BadgeWrapper/index.cjs +3 -3
  57. package/dist/components/BadgeWrapper/index.cjs.map +1 -1
  58. package/dist/components/BadgeWrapper/index.d.cts +1 -2
  59. package/dist/components/BadgeWrapper/index.d.cts.map +1 -1
  60. package/dist/components/BadgeWrapper/index.d.mts +1 -2
  61. package/dist/components/BadgeWrapper/index.d.mts.map +1 -1
  62. package/dist/components/BadgeWrapper/index.mjs +1 -1
  63. package/dist/components/BadgeWrapper/index.mjs.map +1 -1
  64. package/dist/components/BottomSheet/BottomSheet.cjs +7 -10
  65. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
  66. package/dist/components/BottomSheet/BottomSheet.d.cts +31 -2
  67. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  68. package/dist/components/BottomSheet/BottomSheet.d.mts +31 -2
  69. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  70. package/dist/components/BottomSheet/BottomSheet.mjs +6 -6
  71. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  72. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -1
  73. package/dist/components/BottomSheet/BottomSheet.types.d.cts +3 -8
  74. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -1
  75. package/dist/components/BottomSheet/BottomSheet.types.d.mts +3 -8
  76. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -1
  77. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -1
  78. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +3 -3
  79. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  80. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +31 -2
  81. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  82. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +31 -2
  83. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  84. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +2 -3
  85. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  86. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -1
  87. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +7 -0
  88. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -1
  89. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +7 -0
  90. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -1
  91. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -1
  92. package/dist/components/BottomSheetDialog/index.cjs +2 -5
  93. package/dist/components/BottomSheetDialog/index.cjs.map +1 -1
  94. package/dist/components/BottomSheetDialog/index.d.cts +1 -1
  95. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -1
  96. package/dist/components/BottomSheetDialog/index.d.mts +1 -1
  97. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -1
  98. package/dist/components/BottomSheetDialog/index.mjs +1 -1
  99. package/dist/components/BottomSheetDialog/index.mjs.map +1 -1
  100. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +2 -2
  101. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -1
  102. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +2 -2
  103. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -1
  104. package/dist/components/BoxHorizontal/BoxHorizontal.cjs +18 -0
  105. package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +1 -0
  106. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts +7 -0
  107. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +1 -0
  108. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts +7 -0
  109. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +1 -0
  110. package/dist/components/BoxHorizontal/BoxHorizontal.mjs +18 -0
  111. package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +1 -0
  112. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs +3 -0
  113. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs.map +1 -0
  114. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts +13 -0
  115. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts.map +1 -0
  116. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts +13 -0
  117. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts.map +1 -0
  118. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs +2 -0
  119. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs.map +1 -0
  120. package/dist/components/BoxHorizontal/index.cjs +6 -0
  121. package/dist/components/BoxHorizontal/index.cjs.map +1 -0
  122. package/dist/components/BoxHorizontal/index.d.cts +3 -0
  123. package/dist/components/BoxHorizontal/index.d.cts.map +1 -0
  124. package/dist/components/BoxHorizontal/index.d.mts +3 -0
  125. package/dist/components/BoxHorizontal/index.d.mts.map +1 -0
  126. package/dist/components/BoxHorizontal/index.mjs +2 -0
  127. package/dist/components/BoxHorizontal/index.mjs.map +1 -0
  128. package/dist/components/BoxVertical/BoxVertical.cjs +18 -0
  129. package/dist/components/BoxVertical/BoxVertical.cjs.map +1 -0
  130. package/dist/components/BoxVertical/BoxVertical.d.cts +7 -0
  131. package/dist/components/BoxVertical/BoxVertical.d.cts.map +1 -0
  132. package/dist/components/BoxVertical/BoxVertical.d.mts +7 -0
  133. package/dist/components/BoxVertical/BoxVertical.d.mts.map +1 -0
  134. package/dist/components/BoxVertical/BoxVertical.mjs +18 -0
  135. package/dist/components/BoxVertical/BoxVertical.mjs.map +1 -0
  136. package/dist/components/BoxVertical/BoxVertical.types.cjs +3 -0
  137. package/dist/components/BoxVertical/BoxVertical.types.cjs.map +1 -0
  138. package/dist/components/BoxVertical/BoxVertical.types.d.cts +13 -0
  139. package/dist/components/BoxVertical/BoxVertical.types.d.cts.map +1 -0
  140. package/dist/components/BoxVertical/BoxVertical.types.d.mts +13 -0
  141. package/dist/components/BoxVertical/BoxVertical.types.d.mts.map +1 -0
  142. package/dist/components/BoxVertical/BoxVertical.types.mjs +2 -0
  143. package/dist/components/BoxVertical/BoxVertical.types.mjs.map +1 -0
  144. package/dist/components/BoxVertical/index.cjs +6 -0
  145. package/dist/components/BoxVertical/index.cjs.map +1 -0
  146. package/dist/components/BoxVertical/index.d.cts +3 -0
  147. package/dist/components/BoxVertical/index.d.cts.map +1 -0
  148. package/dist/components/BoxVertical/index.d.mts +3 -0
  149. package/dist/components/BoxVertical/index.d.mts.map +1 -0
  150. package/dist/components/BoxVertical/index.mjs +2 -0
  151. package/dist/components/BoxVertical/index.mjs.map +1 -0
  152. package/dist/components/HeaderRoot/HeaderRoot.cjs +61 -0
  153. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -0
  154. package/dist/components/HeaderRoot/HeaderRoot.d.cts +7 -0
  155. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -0
  156. package/dist/components/HeaderRoot/HeaderRoot.d.mts +7 -0
  157. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -0
  158. package/dist/components/HeaderRoot/HeaderRoot.mjs +61 -0
  159. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -0
  160. package/dist/components/HeaderRoot/HeaderRoot.types.cjs +3 -0
  161. package/dist/components/HeaderRoot/HeaderRoot.types.cjs.map +1 -0
  162. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +60 -0
  163. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -0
  164. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +60 -0
  165. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -0
  166. package/dist/components/HeaderRoot/HeaderRoot.types.mjs +2 -0
  167. package/dist/components/HeaderRoot/HeaderRoot.types.mjs.map +1 -0
  168. package/dist/components/HeaderRoot/index.cjs +6 -0
  169. package/dist/components/HeaderRoot/index.cjs.map +1 -0
  170. package/dist/components/HeaderRoot/index.d.cts +3 -0
  171. package/dist/components/HeaderRoot/index.d.cts.map +1 -0
  172. package/dist/components/HeaderRoot/index.d.mts +3 -0
  173. package/dist/components/HeaderRoot/index.d.mts.map +1 -0
  174. package/dist/components/HeaderRoot/index.mjs +2 -0
  175. package/dist/components/HeaderRoot/index.mjs.map +1 -0
  176. package/dist/components/HeaderStandard/HeaderStandard.cjs +101 -0
  177. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -0
  178. package/dist/components/HeaderStandard/HeaderStandard.d.cts +4 -0
  179. package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -0
  180. package/dist/components/HeaderStandard/HeaderStandard.d.mts +4 -0
  181. package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -0
  182. package/dist/components/HeaderStandard/HeaderStandard.mjs +81 -0
  183. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -0
  184. package/dist/components/HeaderStandard/HeaderStandard.types.cjs +8 -0
  185. package/dist/components/HeaderStandard/HeaderStandard.types.cjs.map +1 -0
  186. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts +55 -0
  187. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts.map +1 -0
  188. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts +55 -0
  189. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts.map +1 -0
  190. package/dist/components/HeaderStandard/HeaderStandard.types.mjs +10 -0
  191. package/dist/components/HeaderStandard/HeaderStandard.types.mjs.map +1 -0
  192. package/dist/components/HeaderStandard/index.cjs +6 -0
  193. package/dist/components/HeaderStandard/index.cjs.map +1 -0
  194. package/dist/components/HeaderStandard/index.d.cts +3 -0
  195. package/dist/components/HeaderStandard/index.d.cts.map +1 -0
  196. package/dist/components/HeaderStandard/index.d.mts +3 -0
  197. package/dist/components/HeaderStandard/index.d.mts.map +1 -0
  198. package/dist/components/HeaderStandard/index.mjs +2 -0
  199. package/dist/components/HeaderStandard/index.mjs.map +1 -0
  200. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +2 -1
  201. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +1 -1
  202. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +1 -2
  203. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +1 -1
  204. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +1 -2
  205. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +1 -1
  206. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +1 -2
  207. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +1 -1
  208. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +2 -1
  209. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +1 -1
  210. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +1 -2
  211. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +1 -1
  212. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +1 -2
  213. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +1 -1
  214. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +1 -2
  215. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +1 -1
  216. package/dist/components/KeyValueRow/KeyValueRow.cjs +17 -17
  217. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  218. package/dist/components/KeyValueRow/KeyValueRow.d.cts +1 -2
  219. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  220. package/dist/components/KeyValueRow/KeyValueRow.d.mts +1 -2
  221. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  222. package/dist/components/KeyValueRow/KeyValueRow.mjs +4 -5
  223. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  224. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +2 -1
  225. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +1 -1
  226. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +1 -2
  227. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +1 -1
  228. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +1 -2
  229. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +1 -1
  230. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +1 -2
  231. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +1 -1
  232. package/dist/components/KeyValueRow/index.cjs +2 -5
  233. package/dist/components/KeyValueRow/index.cjs.map +1 -1
  234. package/dist/components/KeyValueRow/index.d.cts +1 -1
  235. package/dist/components/KeyValueRow/index.d.cts.map +1 -1
  236. package/dist/components/KeyValueRow/index.d.mts +1 -1
  237. package/dist/components/KeyValueRow/index.d.mts.map +1 -1
  238. package/dist/components/KeyValueRow/index.mjs +1 -1
  239. package/dist/components/KeyValueRow/index.mjs.map +1 -1
  240. package/dist/components/Skeleton/Skeleton.cjs +2 -1
  241. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  242. package/dist/components/Skeleton/Skeleton.d.cts +1 -2
  243. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -1
  244. package/dist/components/Skeleton/Skeleton.d.mts +1 -2
  245. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -1
  246. package/dist/components/Skeleton/Skeleton.mjs +1 -2
  247. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  248. package/dist/components/Skeleton/index.cjs +1 -4
  249. package/dist/components/Skeleton/index.cjs.map +1 -1
  250. package/dist/components/Skeleton/index.d.cts +1 -1
  251. package/dist/components/Skeleton/index.d.cts.map +1 -1
  252. package/dist/components/Skeleton/index.d.mts +1 -1
  253. package/dist/components/Skeleton/index.d.mts.map +1 -1
  254. package/dist/components/Skeleton/index.mjs +1 -1
  255. package/dist/components/Skeleton/index.mjs.map +1 -1
  256. package/dist/components/Text/Text.types.cjs.map +1 -1
  257. package/dist/components/Text/Text.types.d.cts +1 -1
  258. package/dist/components/Text/Text.types.d.mts +1 -1
  259. package/dist/components/Text/Text.types.mjs.map +1 -1
  260. package/dist/components/TextFieldSearch/TextFieldSearch.cjs +45 -0
  261. package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -0
  262. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +14 -0
  263. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -0
  264. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +14 -0
  265. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -0
  266. package/dist/components/TextFieldSearch/TextFieldSearch.mjs +26 -0
  267. package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -0
  268. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs +3 -0
  269. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs.map +1 -0
  270. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts +17 -0
  271. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts.map +1 -0
  272. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts +17 -0
  273. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts.map +1 -0
  274. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs +2 -0
  275. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs.map +1 -0
  276. package/dist/components/TextFieldSearch/index.cjs +6 -0
  277. package/dist/components/TextFieldSearch/index.cjs.map +1 -0
  278. package/dist/components/TextFieldSearch/index.d.cts +3 -0
  279. package/dist/components/TextFieldSearch/index.d.cts.map +1 -0
  280. package/dist/components/TextFieldSearch/index.d.mts +3 -0
  281. package/dist/components/TextFieldSearch/index.d.mts.map +1 -0
  282. package/dist/components/TextFieldSearch/index.mjs +2 -0
  283. package/dist/components/TextFieldSearch/index.mjs.map +1 -0
  284. package/dist/components/Toast/Toast.cjs +2 -2
  285. package/dist/components/Toast/Toast.cjs.map +1 -1
  286. package/dist/components/Toast/Toast.d.cts +1 -2
  287. package/dist/components/Toast/Toast.d.cts.map +1 -1
  288. package/dist/components/Toast/Toast.d.mts +1 -2
  289. package/dist/components/Toast/Toast.d.mts.map +1 -1
  290. package/dist/components/Toast/Toast.mjs +1 -2
  291. package/dist/components/Toast/Toast.mjs.map +1 -1
  292. package/dist/components/Toast/index.cjs +1 -4
  293. package/dist/components/Toast/index.cjs.map +1 -1
  294. package/dist/components/Toast/index.d.cts +1 -1
  295. package/dist/components/Toast/index.d.cts.map +1 -1
  296. package/dist/components/Toast/index.d.mts +1 -1
  297. package/dist/components/Toast/index.d.mts.map +1 -1
  298. package/dist/components/Toast/index.mjs +1 -1
  299. package/dist/components/Toast/index.mjs.map +1 -1
  300. package/dist/components/index.cjs +14 -6
  301. package/dist/components/index.cjs.map +1 -1
  302. package/dist/components/index.d.cts +11 -1
  303. package/dist/components/index.d.cts.map +1 -1
  304. package/dist/components/index.d.mts +11 -1
  305. package/dist/components/index.d.mts.map +1 -1
  306. package/dist/components/index.mjs +6 -1
  307. package/dist/components/index.mjs.map +1 -1
  308. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.cjs.map +1 -1
  309. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts +2 -5
  310. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts.map +1 -1
  311. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts +2 -5
  312. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts.map +1 -1
  313. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.mjs.map +1 -1
  314. package/dist/types/index.cjs +20 -61
  315. package/dist/types/index.cjs.map +1 -1
  316. package/dist/types/index.d.cts +10 -73
  317. package/dist/types/index.d.cts.map +1 -1
  318. package/dist/types/index.d.mts +10 -73
  319. package/dist/types/index.d.mts.map +1 -1
  320. package/dist/types/index.mjs +10 -68
  321. package/dist/types/index.mjs.map +1 -1
  322. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAoC;AAEpC,gEAAoE;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,KAAK,GAAG,gDAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nconst KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n\nexport default KeyValueSection;\n"]}
1
+ {"version":3,"file":"KeyValueSection.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAoC;AAEpC,gEAAoE;AAGpE;;;;;;;;;;;GAWG;AACI,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,KAAK,GAAG,gDAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,eAAe,mBAc1B","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nexport const KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -12,6 +12,5 @@ import type { KeyValueSectionProps } from "../KeyValueRow.types.cjs";
12
12
  *
13
13
  * @returns The rendered KeyValueSection component.
14
14
  */
15
- declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
- export default KeyValueSection;
15
+ export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
17
16
  //# sourceMappingURL=KeyValueSection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAcnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueSection.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAc1D,CAAC"}
@@ -12,6 +12,5 @@ import type { KeyValueSectionProps } from "../KeyValueRow.types.mjs";
12
12
  *
13
13
  * @returns The rendered KeyValueSection component.
14
14
  */
15
- declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
- export default KeyValueSection;
15
+ export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
17
16
  //# sourceMappingURL=KeyValueSection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAcnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueSection.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAc1D,CAAC"}
@@ -21,11 +21,10 @@ import { KeyValueRowSectionAlignments } from "../KeyValueRow.types.mjs";
21
21
  *
22
22
  * @returns The rendered KeyValueSection component.
23
23
  */
24
- const KeyValueSection = ({ children, align = KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
24
+ export const KeyValueSection = ({ children, align = KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
25
25
  const tw = useTailwind();
26
26
  return (<View style={[tw.style('flex-1', align, twClassName), style]} {...props}>
27
27
  {children}
28
28
  </View>);
29
29
  };
30
- export default KeyValueSection;
31
30
  //# sourceMappingURL=KeyValueSection.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,KAAK,GAAG,4BAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nconst KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n\nexport default KeyValueSection;\n"]}
1
+ {"version":3,"file":"KeyValueSection.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,KAAK,GAAG,4BAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nexport const KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IconSizes = exports.TooltipSizes = exports.KeyValueRowFieldIconSides = exports.KeyValueRowSectionAlignments = exports.default = exports.KeyValueRowStubs = void 0;
3
+ exports.IconSizes = exports.TooltipSizes = exports.KeyValueRowFieldIconSides = exports.KeyValueRowSectionAlignments = exports.KeyValueRowStubs = exports.KeyValueRow = void 0;
7
4
  var KeyValueRow_1 = require("./KeyValueRow.cjs");
5
+ Object.defineProperty(exports, "KeyValueRow", { enumerable: true, get: function () { return KeyValueRow_1.KeyValueRow; } });
8
6
  Object.defineProperty(exports, "KeyValueRowStubs", { enumerable: true, get: function () { return KeyValueRow_1.KeyValueRowStubs; } });
9
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(KeyValueRow_1).default; } });
10
7
  var KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
11
8
  Object.defineProperty(exports, "KeyValueRowSectionAlignments", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowSectionAlignments; } });
12
9
  Object.defineProperty(exports, "KeyValueRowFieldIconSides", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowFieldIconSides; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":";;;;;;AAAA,iDAA0D;AAAjD,+GAAA,gBAAgB,OAAA;AAAE,uHAAA,OAAO,OAAA;AAClC,6DAY6B;AAX3B,iIAAA,4BAA4B,OAAA;AAC5B,8HAAA,yBAAyB,OAAA;AACzB,iHAAA,YAAY,OAAA;AACZ,8GAAA,SAAS,OAAA","sourcesContent":["export { KeyValueRowStubs, default } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":";;;AAAA,iDAA8D;AAArD,0GAAA,WAAW,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AACtC,6DAY6B;AAX3B,iIAAA,4BAA4B,OAAA;AAC5B,8HAAA,yBAAyB,OAAA;AACzB,iHAAA,YAAY,OAAA;AACZ,8GAAA,SAAS,OAAA","sourcesContent":["export { KeyValueRow, KeyValueRowStubs } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
@@ -1,3 +1,3 @@
1
- export { KeyValueRowStubs, default } from "./KeyValueRow.cjs";
1
+ export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.cjs";
2
2
  export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes, type KeyValueRowTooltip, type KeyValueRowField, type PreDefinedKeyValueRowLabel, type KeyValueRowLabelProps, type KeyValueRowRootProps, type KeyValueSectionProps, type KeyValueRowProps, } from "./KeyValueRow.types.cjs";
3
3
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
@@ -1,3 +1,3 @@
1
- export { KeyValueRowStubs, default } from "./KeyValueRow.mjs";
1
+ export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.mjs";
2
2
  export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes, type KeyValueRowTooltip, type KeyValueRowField, type PreDefinedKeyValueRowLabel, type KeyValueRowLabelProps, type KeyValueRowRootProps, type KeyValueSectionProps, type KeyValueRowProps, } from "./KeyValueRow.types.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
@@ -1,3 +1,3 @@
1
- export { KeyValueRowStubs, default } from "./KeyValueRow.mjs";
1
+ export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.mjs";
2
2
  export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes } from "./KeyValueRow.types.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EAQV,gCAA4B","sourcesContent":["export { KeyValueRowStubs, default } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EAQV,gCAA4B","sourcesContent":["export { KeyValueRow, KeyValueRowStubs } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Skeleton = void 0;
26
27
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
27
28
  const react_1 = __importStar(require("react"));
28
29
  const react_native_1 = require("react-native/index.js");
@@ -82,5 +83,5 @@ const Skeleton = ({ height, width, children, hideChildren = false, style, childr
82
83
  </react_native_1.View>)}
83
84
  </react_native_1.View>);
84
85
  };
85
- exports.default = Skeleton;
86
+ exports.Skeleton = Skeleton;
86
87
  //# sourceMappingURL=Skeleton.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAiD;AACjD,wDAA8C;AAI9C,MAAM,QAAQ,GAA4B,CAAC,EACzC,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,WAAW,GAAG,IAAA,cAAM,EAAC,IAAI,uBAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,MAAM,WAAW,GAAG,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,CAAC;IAEhE,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,uBAAQ,CAAC,QAAQ,CAAC;YAChB,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;YACF,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;SACH,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;YACxB,2EAA2E;YAC3E,IAAI,QAAQ,EAAE;gBACZ,cAAc,EAAE,CAAC;aAClB;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,QAAQ,IAAI,CAAC,CAAC,WAAW,IAAI,YAAY,CAAC,EAAE;YAC9C,cAAc,EAAE,CAAC;SAClB;QAED,OAAO,GAAG,EAAE;YACV,WAAW,CAAC,aAAa,EAAE,CAAC;QAC9B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE1C,IAAI,CAAC,YAAY,IAAI,WAAW,EAAE;QAChC,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;KACxB;IAED,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,EAAE,WAAW,CAAC;YAChD,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE;YAClC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE;YAChC,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,uBAAQ,CAAC,IAAI,CACZ,IAAI,iBAAiB,CAAC,CACtB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CAAC,8CAA8C,CAAC;YACxD,EAAE,OAAO,EAAE,WAAW,EAAE;YACxB,iBAAiB,EAAE,KAAK;SACzB,CAAC,CACF,aAAa,CAAC,MAAM,EAGtB;;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,mBAAI,CACH,IAAI,oBAAoB,CAAC,CACzB,KAAK,CAAC,CAAC;gBACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC;gBACnC,oBAAoB,EAAE,KAAK;aAC5B,CAAC,CACF,aAAa,CAAC,MAAM,CACpB,2BAA2B,CAC3B,yBAAyB,CAAC,qBAAqB,CAE/C;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,mBAAI,CAAC,CACR,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nconst Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n\nexport default Skeleton;\n"]}
1
+ {"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAiD;AACjD,wDAA8C;AAIvC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,WAAW,GAAG,IAAA,cAAM,EAAC,IAAI,uBAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,MAAM,WAAW,GAAG,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,CAAC;IAEhE,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,uBAAQ,CAAC,QAAQ,CAAC;YAChB,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;YACF,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;SACH,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;YACxB,2EAA2E;YAC3E,IAAI,QAAQ,EAAE;gBACZ,cAAc,EAAE,CAAC;aAClB;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,QAAQ,IAAI,CAAC,CAAC,WAAW,IAAI,YAAY,CAAC,EAAE;YAC9C,cAAc,EAAE,CAAC;SAClB;QAED,OAAO,GAAG,EAAE;YACV,WAAW,CAAC,aAAa,EAAE,CAAC;QAC9B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE1C,IAAI,CAAC,YAAY,IAAI,WAAW,EAAE;QAChC,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;KACxB;IAED,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,EAAE,WAAW,CAAC;YAChD,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE;YAClC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE;YAChC,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,uBAAQ,CAAC,IAAI,CACZ,IAAI,iBAAiB,CAAC,CACtB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CAAC,8CAA8C,CAAC;YACxD,EAAE,OAAO,EAAE,WAAW,EAAE;YACxB,iBAAiB,EAAE,KAAK;SACzB,CAAC,CACF,aAAa,CAAC,MAAM,EAGtB;;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,mBAAI,CACH,IAAI,oBAAoB,CAAC,CACzB,KAAK,CAAC,CAAC;gBACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC;gBACnC,oBAAoB,EAAE,KAAK;aAC5B,CAAC,CACF,aAAa,CAAC,MAAM,CACpB,2BAA2B,CAC3B,yBAAyB,CAAC,qBAAqB,CAE/C;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,mBAAI,CAAC,CACR,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAxFW,QAAA,QAAQ,YAwFnB","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nexport const Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n"]}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
2
  import type { SkeletonProps } from "./Skeleton.types.cjs";
3
- declare const Skeleton: React.FC<SkeletonProps>;
4
- export default Skeleton;
3
+ export declare const Skeleton: React.FC<SkeletonProps>;
5
4
  //# sourceMappingURL=Skeleton.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwFrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Skeleton.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwF5C,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
2
  import type { SkeletonProps } from "./Skeleton.types.mjs";
3
- declare const Skeleton: React.FC<SkeletonProps>;
4
- export default Skeleton;
3
+ export declare const Skeleton: React.FC<SkeletonProps>;
5
4
  //# sourceMappingURL=Skeleton.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwFrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Skeleton.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwF5C,CAAC"}
@@ -8,7 +8,7 @@ import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
8
  import $React, { useEffect, useRef } from "react";
9
9
  const React = $importDefault($React);
10
10
  import { Animated, View } from "react-native/index.js";
11
- const Skeleton = ({ height, width, children, hideChildren = false, style, childrenWrapperProps, animatedViewProps, twClassName, autoPlay = true, ...props }) => {
11
+ export const Skeleton = ({ height, width, children, hideChildren = false, style, childrenWrapperProps, animatedViewProps, twClassName, autoPlay = true, ...props }) => {
12
12
  const tw = useTailwind();
13
13
  const opacityAnim = useRef(new Animated.Value(0.2)).current;
14
14
  const hasChildren = children !== null && children !== undefined;
@@ -64,5 +64,4 @@ const Skeleton = ({ height, width, children, hideChildren = false, style, childr
64
64
  </View>)}
65
65
  </View>);
66
66
  };
67
- export default Skeleton;
68
67
  //# sourceMappingURL=Skeleton.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.mjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nconst Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n\nexport default Skeleton;\n"]}
1
+ {"version":3,"file":"Skeleton.mjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nexport const Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n"]}
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.Skeleton = void 0;
7
4
  var Skeleton_1 = require("./Skeleton.cjs");
8
- Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return __importDefault(Skeleton_1).default; } });
5
+ Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return Skeleton_1.Skeleton; } });
9
6
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAiD;AAAxC,qHAAA,OAAO,OAAY","sourcesContent":["export { default as Skeleton } from './Skeleton';\nexport type { SkeletonProps } from './Skeleton.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { Skeleton } from './Skeleton';\nexport type { SkeletonProps } from './Skeleton.types';\n"]}
@@ -1,3 +1,3 @@
1
- export { default as Skeleton } from "./Skeleton.cjs";
1
+ export { Skeleton } from "./Skeleton.cjs";
2
2
  export type { SkeletonProps } from "./Skeleton.types.cjs";
3
3
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,uBAAmB;AACjD,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -1,3 +1,3 @@
1
- export { default as Skeleton } from "./Skeleton.mjs";
1
+ export { Skeleton } from "./Skeleton.mjs";
2
2
  export type { SkeletonProps } from "./Skeleton.types.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,uBAAmB;AACjD,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -1,2 +1,2 @@
1
- export { default as Skeleton } from "./Skeleton.mjs";
1
+ export { Skeleton } from "./Skeleton.mjs";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,uBAAmB","sourcesContent":["export { default as Skeleton } from './Skeleton';\nexport type { SkeletonProps } from './Skeleton.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB","sourcesContent":["export { Skeleton } from './Skeleton';\nexport type { SkeletonProps } from './Skeleton.types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.cjs","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TextProps as RNTextProps } from 'react-native';\n\nimport type {\n TextVariant,\n TextColor,\n FontWeight,\n FontFamily,\n FontStyle,\n} from '../../types';\n\n/**\n * Text component props.\n */\nexport type TextProps = {\n /**\n * Optional enum to select between Typography variants.\n *\n * @default BodyMD\n */\n variant?: TextVariant;\n /**\n * Text to be displayed.\n */\n children: React.ReactNode;\n /**\n * Optional prop to add color to text.\n */\n color?: TextColor;\n /**\n * Optional prop to control the font weight of the text.\n * Normal: 400\n * Medium: 500\n * Bold: 700\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to adjust the font family.\n * Default: Geist\n * Accent: MM Sans\n * Hero: MM Poly\n */\n fontFamily?: FontFamily;\n /**\n * Optional prop to adjust the style of the font.\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & RNTextProps;\n"]}
1
+ {"version":3,"file":"Text.types.cjs","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TextProps as RNTextProps } from 'react-native';\n\nimport type {\n TextVariant,\n TextColor,\n FontWeight,\n FontFamily,\n FontStyle,\n} from '../../types';\n\n/**\n * Text component props.\n */\nexport type TextProps = {\n /**\n * Optional enum to select between Typography variants.\n *\n * @default BodyMD\n */\n variant?: TextVariant;\n /**\n * Text to be displayed.\n */\n children: React.ReactNode;\n /**\n * Optional prop to add color to text.\n */\n color?: TextColor;\n /**\n * Optional prop to control the font weight of the text.\n * Normal: 400\n * Medium: 500\n * Bold: 600\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to adjust the font family.\n * Default: Geist\n * Accent: MM Sans\n * Hero: MM Poly\n */\n fontFamily?: FontFamily;\n /**\n * Optional prop to adjust the style of the font.\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & RNTextProps;\n"]}
@@ -22,7 +22,7 @@ export type TextProps = {
22
22
  * Optional prop to control the font weight of the text.
23
23
  * Normal: 400
24
24
  * Medium: 500
25
- * Bold: 700
25
+ * Bold: 600
26
26
  */
27
27
  fontWeight?: FontWeight;
28
28
  /**
@@ -22,7 +22,7 @@ export type TextProps = {
22
22
  * Optional prop to control the font weight of the text.
23
23
  * Normal: 400
24
24
  * Medium: 500
25
- * Bold: 700
25
+ * Bold: 600
26
26
  */
27
27
  fontWeight?: FontWeight;
28
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.mjs","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TextProps as RNTextProps } from 'react-native';\n\nimport type {\n TextVariant,\n TextColor,\n FontWeight,\n FontFamily,\n FontStyle,\n} from '../../types';\n\n/**\n * Text component props.\n */\nexport type TextProps = {\n /**\n * Optional enum to select between Typography variants.\n *\n * @default BodyMD\n */\n variant?: TextVariant;\n /**\n * Text to be displayed.\n */\n children: React.ReactNode;\n /**\n * Optional prop to add color to text.\n */\n color?: TextColor;\n /**\n * Optional prop to control the font weight of the text.\n * Normal: 400\n * Medium: 500\n * Bold: 700\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to adjust the font family.\n * Default: Geist\n * Accent: MM Sans\n * Hero: MM Poly\n */\n fontFamily?: FontFamily;\n /**\n * Optional prop to adjust the style of the font.\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & RNTextProps;\n"]}
1
+ {"version":3,"file":"Text.types.mjs","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TextProps as RNTextProps } from 'react-native';\n\nimport type {\n TextVariant,\n TextColor,\n FontWeight,\n FontFamily,\n FontStyle,\n} from '../../types';\n\n/**\n * Text component props.\n */\nexport type TextProps = {\n /**\n * Optional enum to select between Typography variants.\n *\n * @default BodyMD\n */\n variant?: TextVariant;\n /**\n * Text to be displayed.\n */\n children: React.ReactNode;\n /**\n * Optional prop to add color to text.\n */\n color?: TextColor;\n /**\n * Optional prop to control the font weight of the text.\n * Normal: 400\n * Medium: 500\n * Bold: 600\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to adjust the font family.\n * Default: Geist\n * Accent: MM Sans\n * Hero: MM Poly\n */\n fontFamily?: FontFamily;\n /**\n * Optional prop to adjust the style of the font.\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & RNTextProps;\n"]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TextFieldSearch = void 0;
27
+ const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
28
+ const react_1 = __importStar(require("react"));
29
+ const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
30
+ const Icon_1 = require("../Icon/index.cjs");
31
+ const TextField_1 = require("../TextField/index.cjs");
32
+ exports.TextFieldSearch = (0, react_1.forwardRef)(({ onPressClearButton, clearButtonProps, value, style, startAccessory, endAccessory, ...props }, ref) => {
33
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
34
+ const containerStyle = tw.style('rounded-full');
35
+ const searchIcon = (<Icon_1.Icon name={Icon_1.IconName.Search} size={Icon_1.IconSize.Md} color={Icon_1.IconColor.IconAlternative}/>);
36
+ const clearButtonHandler = (0, react_1.useCallback)(() => {
37
+ onPressClearButton();
38
+ }, [onPressClearButton]);
39
+ const clearButton = (<ButtonIcon_1.ButtonIcon size={ButtonIcon_1.ButtonIconSize.Md} iconName={Icon_1.IconName.CircleX} iconProps={{ color: Icon_1.IconColor.IconAlternative }} onPress={clearButtonHandler} {...clearButtonProps}/>);
40
+ return (<TextField_1.TextField ref={ref} {...props} value={value} startAccessory={startAccessory !== undefined ? startAccessory : searchIcon} endAccessory={endAccessory !== undefined
41
+ ? endAccessory
42
+ : Boolean(value) && clearButton} testID="textfieldsearch" style={[containerStyle, style]}/>);
43
+ });
44
+ exports.TextFieldSearch.displayName = 'TextFieldSearch';
45
+ //# sourceMappingURL=TextFieldSearch.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFieldSearch.cjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAuD;AAGvD,wDAA2D;AAC3D,4CAA8D;AAC9D,sDAAyC;AAI5B,QAAA,eAAe,GAAG,IAAA,kBAAU,EACvC,CACE,EACE,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,KAAK,EACL,cAAc,EACd,YAAY,EACZ,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,cAAc,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAEhD,MAAM,UAAU,GAAG,CACjB,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,eAAQ,CAAC,MAAM,CAAC,CACtB,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gBAAS,CAAC,eAAe,CAAC,EACjC,CACH,CAAC;IAEF,MAAM,kBAAkB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAC1C,kBAAkB,EAAE,CAAC;IACvB,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEzB,MAAM,WAAW,GAAG,CAClB,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,2BAAc,CAAC,EAAE,CAAC,CACxB,QAAQ,CAAC,CAAC,eAAQ,CAAC,OAAO,CAAC,CAC3B,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAS,CAAC,eAAe,EAAE,CAAC,CAChD,OAAO,CAAC,CAAC,kBAAkB,CAAC,CAC5B,IAAI,gBAAgB,CAAC,EACrB,CACH,CAAC;IAEF,OAAO,CACL,CAAC,qBAAS,CACR,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,cAAc,CAAC,CACb,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAC3D,CACD,YAAY,CAAC,CACX,YAAY,KAAK,SAAS;YACxB,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,WAAW,CAClC,CACD,MAAM,CAAC,iBAAiB,CACxB,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,EAC/B,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,uBAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { forwardRef, useCallback } from 'react';\nimport type { TextInput } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { Icon, IconColor, IconName, IconSize } from '../Icon';\nimport { TextField } from '../TextField';\n\nimport type { TextFieldSearchProps } from './TextFieldSearch.types';\n\nexport const TextFieldSearch = forwardRef<TextInput, TextFieldSearchProps>(\n (\n {\n onPressClearButton,\n clearButtonProps,\n value,\n style,\n startAccessory,\n endAccessory,\n ...props\n },\n ref,\n ) => {\n const tw = useTailwind();\n const containerStyle = tw.style('rounded-full');\n\n const searchIcon = (\n <Icon\n name={IconName.Search}\n size={IconSize.Md}\n color={IconColor.IconAlternative}\n />\n );\n\n const clearButtonHandler = useCallback(() => {\n onPressClearButton();\n }, [onPressClearButton]);\n\n const clearButton = (\n <ButtonIcon\n size={ButtonIconSize.Md}\n iconName={IconName.CircleX}\n iconProps={{ color: IconColor.IconAlternative }}\n onPress={clearButtonHandler}\n {...clearButtonProps}\n />\n );\n\n return (\n <TextField\n ref={ref}\n {...props}\n value={value}\n startAccessory={\n startAccessory !== undefined ? startAccessory : searchIcon\n }\n endAccessory={\n endAccessory !== undefined\n ? endAccessory\n : Boolean(value) && clearButton\n }\n testID=\"textfieldsearch\"\n style={[containerStyle, style]}\n />\n );\n },\n);\n\nTextFieldSearch.displayName = 'TextFieldSearch';\n"]}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { TextInput } from "react-native/index.js";
3
+ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<import("../index.cjs").InputProps, "style" | "textVariant" | "isStateStylesDisabled"> & {
4
+ startAccessory?: React.ReactNode;
5
+ endAccessory?: React.ReactNode;
6
+ isError?: boolean | undefined;
7
+ inputElement?: React.ReactNode;
8
+ twClassName?: string | undefined;
9
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
10
+ } & {
11
+ clearButtonProps?: Partial<import("../ButtonIcon/index.cjs").ButtonIconProps> | undefined;
12
+ onPressClearButton: () => void;
13
+ } & React.RefAttributes<TextInput>>;
14
+ //# sourceMappingURL=TextFieldSearch.d.cts.map
@@ -0,0 +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,SAAS,EAAE,8BAAqB;AAQ9C,eAAO,MAAM,eAAe;;;;;;;;;;mCAwD3B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { TextInput } from "react-native/index.js";
3
+ export declare const TextFieldSearch: React.ForwardRefExoticComponent<Omit<import("../index.mjs").InputProps, "style" | "textVariant" | "isStateStylesDisabled"> & {
4
+ startAccessory?: React.ReactNode;
5
+ endAccessory?: React.ReactNode;
6
+ isError?: boolean | undefined;
7
+ inputElement?: React.ReactNode;
8
+ twClassName?: string | undefined;
9
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
10
+ } & {
11
+ clearButtonProps?: Partial<import("../ButtonIcon/index.mjs").ButtonIconProps> | undefined;
12
+ onPressClearButton: () => void;
13
+ } & React.RefAttributes<TextInput>>;
14
+ //# sourceMappingURL=TextFieldSearch.d.mts.map
@@ -0,0 +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,SAAS,EAAE,8BAAqB;AAQ9C,eAAO,MAAM,eAAe;;;;;;;;;;mCAwD3B,CAAC"}
@@ -0,0 +1,26 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
+ import $React, { forwardRef, useCallback } from "react";
9
+ const React = $importDefault($React);
10
+ import { ButtonIcon, ButtonIconSize } from "../ButtonIcon/index.mjs";
11
+ import { Icon, IconColor, IconName, IconSize } from "../Icon/index.mjs";
12
+ import { TextField } from "../TextField/index.mjs";
13
+ export const TextFieldSearch = forwardRef(({ onPressClearButton, clearButtonProps, value, style, startAccessory, endAccessory, ...props }, ref) => {
14
+ const tw = useTailwind();
15
+ const containerStyle = tw.style('rounded-full');
16
+ const searchIcon = (<Icon name={IconName.Search} size={IconSize.Md} color={IconColor.IconAlternative}/>);
17
+ const clearButtonHandler = useCallback(() => {
18
+ onPressClearButton();
19
+ }, [onPressClearButton]);
20
+ const clearButton = (<ButtonIcon size={ButtonIconSize.Md} iconName={IconName.CircleX} iconProps={{ color: IconColor.IconAlternative }} onPress={clearButtonHandler} {...clearButtonProps}/>);
21
+ return (<TextField ref={ref} {...props} value={value} startAccessory={startAccessory !== undefined ? startAccessory : searchIcon} endAccessory={endAccessory !== undefined
22
+ ? endAccessory
23
+ : Boolean(value) && clearButton} testID="textfieldsearch" style={[containerStyle, style]}/>);
24
+ });
25
+ TextFieldSearch.displayName = 'TextFieldSearch';
26
+ //# sourceMappingURL=TextFieldSearch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFieldSearch.mjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,QAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc;;AAGvD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAC3D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAC9D,OAAO,EAAE,SAAS,EAAE,+BAAqB;AAIzC,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CACvC,CACE,EACE,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,KAAK,EACL,cAAc,EACd,YAAY,EACZ,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,cAAc,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAEhD,MAAM,UAAU,GAAG,CACjB,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CACtB,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,EACjC,CACH,CAAC;IAEF,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC1C,kBAAkB,EAAE,CAAC;IACvB,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEzB,MAAM,WAAW,GAAG,CAClB,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAC3B,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,eAAe,EAAE,CAAC,CAChD,OAAO,CAAC,CAAC,kBAAkB,CAAC,CAC5B,IAAI,gBAAgB,CAAC,EACrB,CACH,CAAC;IAEF,OAAO,CACL,CAAC,SAAS,CACR,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,cAAc,CAAC,CACb,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAC3D,CACD,YAAY,CAAC,CACX,YAAY,KAAK,SAAS;YACxB,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,WAAW,CAClC,CACD,MAAM,CAAC,iBAAiB,CACxB,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,EAC/B,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { forwardRef, useCallback } from 'react';\nimport type { TextInput } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { Icon, IconColor, IconName, IconSize } from '../Icon';\nimport { TextField } from '../TextField';\n\nimport type { TextFieldSearchProps } from './TextFieldSearch.types';\n\nexport const TextFieldSearch = forwardRef<TextInput, TextFieldSearchProps>(\n (\n {\n onPressClearButton,\n clearButtonProps,\n value,\n style,\n startAccessory,\n endAccessory,\n ...props\n },\n ref,\n ) => {\n const tw = useTailwind();\n const containerStyle = tw.style('rounded-full');\n\n const searchIcon = (\n <Icon\n name={IconName.Search}\n size={IconSize.Md}\n color={IconColor.IconAlternative}\n />\n );\n\n const clearButtonHandler = useCallback(() => {\n onPressClearButton();\n }, [onPressClearButton]);\n\n const clearButton = (\n <ButtonIcon\n size={ButtonIconSize.Md}\n iconName={IconName.CircleX}\n iconProps={{ color: IconColor.IconAlternative }}\n onPress={clearButtonHandler}\n {...clearButtonProps}\n />\n );\n\n return (\n <TextField\n ref={ref}\n {...props}\n value={value}\n startAccessory={\n startAccessory !== undefined ? startAccessory : searchIcon\n }\n endAccessory={\n endAccessory !== undefined\n ? endAccessory\n : Boolean(value) && clearButton\n }\n testID=\"textfieldsearch\"\n style={[containerStyle, style]}\n />\n );\n },\n);\n\nTextFieldSearch.displayName = 'TextFieldSearch';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TextFieldSearch.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFieldSearch.types.cjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.types.ts"],"names":[],"mappings":"","sourcesContent":["// External dependencies.\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport type { TextFieldProps } from '../TextField';\n\n/**\n * TextFieldSearch component props.\n */\nexport type TextFieldSearchProps = TextFieldProps & {\n /**\n * Optional prop to pass any additional props to the clear button.\n */\n clearButtonProps?: Partial<ButtonIconProps>;\n /**\n * Function to trigger when pressing the clear button.\n * The clear button is automatically shown when the input has a value.\n */\n onPressClearButton: () => void;\n};\n"]}
@@ -0,0 +1,17 @@
1
+ import type { ButtonIconProps } from "../ButtonIcon/index.cjs";
2
+ import type { TextFieldProps } from "../TextField/index.cjs";
3
+ /**
4
+ * TextFieldSearch component props.
5
+ */
6
+ export type TextFieldSearchProps = TextFieldProps & {
7
+ /**
8
+ * Optional prop to pass any additional props to the clear button.
9
+ */
10
+ clearButtonProps?: Partial<ButtonIconProps>;
11
+ /**
12
+ * Function to trigger when pressing the clear button.
13
+ * The clear button is automatically shown when the input has a value.
14
+ */
15
+ onPressClearButton: () => void;
16
+ };
17
+ //# sourceMappingURL=TextFieldSearch.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFieldSearch.types.d.cts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,+BAAqB;AAEnD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C;;;OAGG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { ButtonIconProps } from "../ButtonIcon/index.mjs";
2
+ import type { TextFieldProps } from "../TextField/index.mjs";
3
+ /**
4
+ * TextFieldSearch component props.
5
+ */
6
+ export type TextFieldSearchProps = TextFieldProps & {
7
+ /**
8
+ * Optional prop to pass any additional props to the clear button.
9
+ */
10
+ clearButtonProps?: Partial<ButtonIconProps>;
11
+ /**
12
+ * Function to trigger when pressing the clear button.
13
+ * The clear button is automatically shown when the input has a value.
14
+ */
15
+ onPressClearButton: () => void;
16
+ };
17
+ //# sourceMappingURL=TextFieldSearch.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFieldSearch.types.d.mts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,+BAAqB;AAEnD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C;;;OAGG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextFieldSearch.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFieldSearch.types.mjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.types.ts"],"names":[],"mappings":"","sourcesContent":["// External dependencies.\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport type { TextFieldProps } from '../TextField';\n\n/**\n * TextFieldSearch component props.\n */\nexport type TextFieldSearchProps = TextFieldProps & {\n /**\n * Optional prop to pass any additional props to the clear button.\n */\n clearButtonProps?: Partial<ButtonIconProps>;\n /**\n * Function to trigger when pressing the clear button.\n * The clear button is automatically shown when the input has a value.\n */\n onPressClearButton: () => void;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextFieldSearch = void 0;
4
+ var TextFieldSearch_1 = require("./TextFieldSearch.cjs");
5
+ Object.defineProperty(exports, "TextFieldSearch", { enumerable: true, get: function () { return TextFieldSearch_1.TextFieldSearch; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/index.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAA3C,kHAAA,eAAe,OAAA","sourcesContent":["export { TextFieldSearch } from './TextFieldSearch';\nexport type { TextFieldSearchProps } from './TextFieldSearch.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TextFieldSearch } from "./TextFieldSearch.cjs";
2
+ export type { TextFieldSearchProps } from "./TextFieldSearch.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,8BAA0B;AACpD,YAAY,EAAE,oBAAoB,EAAE,oCAAgC"}
@@ -0,0 +1,3 @@
1
+ export { TextFieldSearch } from "./TextFieldSearch.mjs";
2
+ export type { TextFieldSearchProps } from "./TextFieldSearch.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,8BAA0B;AACpD,YAAY,EAAE,oBAAoB,EAAE,oCAAgC"}
@@ -0,0 +1,2 @@
1
+ export { TextFieldSearch } from "./TextFieldSearch.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,8BAA0B","sourcesContent":["export { TextFieldSearch } from './TextFieldSearch';\nexport type { TextFieldSearchProps } from './TextFieldSearch.types';\n"]}