@metamask/design-system-react-native 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/dist/components/BannerBase/BannerBase.cjs +3 -12
  3. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  4. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  5. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  6. package/dist/components/BannerBase/BannerBase.mjs +3 -12
  7. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  8. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -1
  9. package/dist/components/BannerBase/BannerBase.types.d.cts +2 -7
  10. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -1
  11. package/dist/components/BannerBase/BannerBase.types.d.mts +2 -7
  12. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -1
  13. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -1
  14. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +1 -17
  15. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs.map +1 -1
  16. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.cts.map +1 -1
  17. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.mts.map +1 -1
  18. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs +1 -17
  19. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
  20. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +1 -17
  21. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs.map +1 -1
  22. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.cts.map +1 -1
  23. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.mts.map +1 -1
  24. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs +1 -17
  25. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
  26. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +1 -17
  27. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  28. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  29. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  30. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs +1 -17
  31. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  32. package/dist/components/ButtonBase/ButtonBase.cjs +42 -28
  33. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  34. package/dist/components/ButtonBase/ButtonBase.constants.cjs +31 -1
  35. package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
  36. package/dist/components/ButtonBase/ButtonBase.constants.d.cts +6 -1
  37. package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
  38. package/dist/components/ButtonBase/ButtonBase.constants.d.mts +6 -1
  39. package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
  40. package/dist/components/ButtonBase/ButtonBase.constants.mjs +29 -1
  41. package/dist/components/ButtonBase/ButtonBase.constants.mjs.map +1 -1
  42. package/dist/components/ButtonBase/ButtonBase.d.cts +1 -1
  43. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  44. package/dist/components/ButtonBase/ButtonBase.d.mts +1 -1
  45. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  46. package/dist/components/ButtonBase/ButtonBase.mjs +45 -31
  47. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  48. package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
  49. package/dist/components/ButtonBase/ButtonBase.types.d.cts +12 -0
  50. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  51. package/dist/components/ButtonBase/ButtonBase.types.d.mts +12 -0
  52. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  53. package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
  54. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +1 -17
  55. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -1
  56. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -1
  57. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -1
  58. package/dist/components/ButtonSemantic/ButtonSemantic.mjs +1 -17
  59. package/dist/components/ButtonSemantic/ButtonSemantic.mjs.map +1 -1
  60. package/dist/components/HeaderStandard/HeaderStandard.cjs +2 -26
  61. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
  62. package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -1
  63. package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -1
  64. package/dist/components/HeaderStandard/HeaderStandard.mjs +2 -26
  65. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
  66. package/dist/components/HeaderStandard/HeaderStandard.types.cjs +0 -5
  67. package/dist/components/HeaderStandard/HeaderStandard.types.cjs.map +1 -1
  68. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts +2 -28
  69. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts.map +1 -1
  70. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts +2 -28
  71. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts.map +1 -1
  72. package/dist/components/HeaderStandard/HeaderStandard.types.mjs +1 -9
  73. package/dist/components/HeaderStandard/HeaderStandard.types.mjs.map +1 -1
  74. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs +63 -0
  75. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs.map +1 -0
  76. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.cts +4 -0
  77. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.cts.map +1 -0
  78. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.mts +4 -0
  79. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.d.mts.map +1 -0
  80. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.mjs +40 -0
  81. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.mjs.map +1 -0
  82. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.cjs +3 -0
  83. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.cjs.map +1 -0
  84. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.cts +31 -0
  85. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.cts.map +1 -0
  86. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.mts +31 -0
  87. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.d.mts.map +1 -0
  88. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.mjs +2 -0
  89. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.types.mjs.map +1 -0
  90. package/dist/components/HeaderStandardAnimated/index.cjs +8 -0
  91. package/dist/components/HeaderStandardAnimated/index.cjs.map +1 -0
  92. package/dist/components/HeaderStandardAnimated/index.d.cts +4 -0
  93. package/dist/components/HeaderStandardAnimated/index.d.cts.map +1 -0
  94. package/dist/components/HeaderStandardAnimated/index.d.mts +4 -0
  95. package/dist/components/HeaderStandardAnimated/index.d.mts.map +1 -0
  96. package/dist/components/HeaderStandardAnimated/index.mjs +3 -0
  97. package/dist/components/HeaderStandardAnimated/index.mjs.map +1 -0
  98. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs +62 -0
  99. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs.map +1 -0
  100. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.cts +39 -0
  101. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.cts.map +1 -0
  102. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.mts +39 -0
  103. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.mts.map +1 -0
  104. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.mjs +57 -0
  105. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.mjs.map +1 -0
  106. package/dist/components/Input/Input.cjs +25 -14
  107. package/dist/components/Input/Input.cjs.map +1 -1
  108. package/dist/components/Input/Input.d.cts.map +1 -1
  109. package/dist/components/Input/Input.d.mts.map +1 -1
  110. package/dist/components/Input/Input.mjs +25 -14
  111. package/dist/components/Input/Input.mjs.map +1 -1
  112. package/dist/components/SegmentButton/SegmentButton.cjs +86 -0
  113. package/dist/components/SegmentButton/SegmentButton.cjs.map +1 -0
  114. package/dist/components/SegmentButton/SegmentButton.d.cts +7 -0
  115. package/dist/components/SegmentButton/SegmentButton.d.cts.map +1 -0
  116. package/dist/components/SegmentButton/SegmentButton.d.mts +7 -0
  117. package/dist/components/SegmentButton/SegmentButton.d.mts.map +1 -0
  118. package/dist/components/SegmentButton/SegmentButton.mjs +66 -0
  119. package/dist/components/SegmentButton/SegmentButton.mjs.map +1 -0
  120. package/dist/components/SegmentButton/SegmentButton.types.cjs +3 -0
  121. package/dist/components/SegmentButton/SegmentButton.types.cjs.map +1 -0
  122. package/dist/components/SegmentButton/SegmentButton.types.d.cts +9 -0
  123. package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +1 -0
  124. package/dist/components/SegmentButton/SegmentButton.types.d.mts +9 -0
  125. package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +1 -0
  126. package/dist/components/SegmentButton/SegmentButton.types.mjs +2 -0
  127. package/dist/components/SegmentButton/SegmentButton.types.mjs.map +1 -0
  128. package/dist/components/SegmentButton/index.cjs +8 -0
  129. package/dist/components/SegmentButton/index.cjs.map +1 -0
  130. package/dist/components/SegmentButton/index.d.cts +4 -0
  131. package/dist/components/SegmentButton/index.d.cts.map +1 -0
  132. package/dist/components/SegmentButton/index.d.mts +4 -0
  133. package/dist/components/SegmentButton/index.d.mts.map +1 -0
  134. package/dist/components/SegmentButton/index.mjs +3 -0
  135. package/dist/components/SegmentButton/index.mjs.map +1 -0
  136. package/dist/components/SegmentGroup/SegmentGroup.cjs +47 -0
  137. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +1 -0
  138. package/dist/components/SegmentGroup/SegmentGroup.d.cts +7 -0
  139. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +1 -0
  140. package/dist/components/SegmentGroup/SegmentGroup.d.mts +7 -0
  141. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +1 -0
  142. package/dist/components/SegmentGroup/SegmentGroup.mjs +27 -0
  143. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +1 -0
  144. package/dist/components/SegmentGroup/SegmentGroup.types.cjs +3 -0
  145. package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
  146. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +12 -0
  147. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
  148. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +12 -0
  149. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
  150. package/dist/components/SegmentGroup/SegmentGroup.types.mjs +2 -0
  151. package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
  152. package/dist/components/SegmentGroup/index.cjs +6 -0
  153. package/dist/components/SegmentGroup/index.cjs.map +1 -0
  154. package/dist/components/SegmentGroup/index.d.cts +3 -0
  155. package/dist/components/SegmentGroup/index.d.cts.map +1 -0
  156. package/dist/components/SegmentGroup/index.d.mts +3 -0
  157. package/dist/components/SegmentGroup/index.d.mts.map +1 -0
  158. package/dist/components/SegmentGroup/index.mjs +2 -0
  159. package/dist/components/SegmentGroup/index.mjs.map +1 -0
  160. package/dist/components/SelectButton/SelectButton.cjs +53 -0
  161. package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
  162. package/dist/components/SelectButton/SelectButton.constants.cjs +12 -0
  163. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -0
  164. package/dist/components/SelectButton/SelectButton.constants.d.cts +4 -0
  165. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -0
  166. package/dist/components/SelectButton/SelectButton.constants.d.mts +4 -0
  167. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -0
  168. package/dist/components/SelectButton/SelectButton.constants.mjs +9 -0
  169. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -0
  170. package/dist/components/SelectButton/SelectButton.d.cts +7 -0
  171. package/dist/components/SelectButton/SelectButton.d.cts.map +1 -0
  172. package/dist/components/SelectButton/SelectButton.d.mts +7 -0
  173. package/dist/components/SelectButton/SelectButton.d.mts.map +1 -0
  174. package/dist/components/SelectButton/SelectButton.mjs +53 -0
  175. package/dist/components/SelectButton/SelectButton.mjs.map +1 -0
  176. package/dist/components/SelectButton/SelectButton.types.cjs +3 -0
  177. package/dist/components/SelectButton/SelectButton.types.cjs.map +1 -0
  178. package/dist/components/SelectButton/SelectButton.types.d.cts +13 -0
  179. package/dist/components/SelectButton/SelectButton.types.d.cts.map +1 -0
  180. package/dist/components/SelectButton/SelectButton.types.d.mts +13 -0
  181. package/dist/components/SelectButton/SelectButton.types.d.mts.map +1 -0
  182. package/dist/components/SelectButton/SelectButton.types.mjs +2 -0
  183. package/dist/components/SelectButton/SelectButton.types.mjs.map +1 -0
  184. package/dist/components/SelectButton/index.cjs +9 -0
  185. package/dist/components/SelectButton/index.cjs.map +1 -0
  186. package/dist/components/SelectButton/index.d.cts +4 -0
  187. package/dist/components/SelectButton/index.d.cts.map +1 -0
  188. package/dist/components/SelectButton/index.d.mts +4 -0
  189. package/dist/components/SelectButton/index.d.mts.map +1 -0
  190. package/dist/components/SelectButton/index.mjs +3 -0
  191. package/dist/components/SelectButton/index.mjs.map +1 -0
  192. package/dist/components/SensitiveText/SensitiveText.cjs +4 -4
  193. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
  194. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -1
  195. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -1
  196. package/dist/components/SensitiveText/SensitiveText.mjs +1 -1
  197. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
  198. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -1
  199. package/dist/components/SensitiveText/SensitiveText.types.d.cts +6 -34
  200. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -1
  201. package/dist/components/SensitiveText/SensitiveText.types.d.mts +6 -34
  202. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -1
  203. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -1
  204. package/dist/components/SensitiveText/index.cjs +3 -3
  205. package/dist/components/SensitiveText/index.cjs.map +1 -1
  206. package/dist/components/SensitiveText/index.d.cts +1 -1
  207. package/dist/components/SensitiveText/index.d.cts.map +1 -1
  208. package/dist/components/SensitiveText/index.d.mts +1 -1
  209. package/dist/components/SensitiveText/index.d.mts.map +1 -1
  210. package/dist/components/SensitiveText/index.mjs +1 -1
  211. package/dist/components/SensitiveText/index.mjs.map +1 -1
  212. package/dist/components/TextArea/TextArea.cjs +38 -0
  213. package/dist/components/TextArea/TextArea.cjs.map +1 -0
  214. package/dist/components/TextArea/TextArea.d.cts +166 -0
  215. package/dist/components/TextArea/TextArea.d.cts.map +1 -0
  216. package/dist/components/TextArea/TextArea.d.mts +166 -0
  217. package/dist/components/TextArea/TextArea.d.mts.map +1 -0
  218. package/dist/components/TextArea/TextArea.mjs +35 -0
  219. package/dist/components/TextArea/TextArea.mjs.map +1 -0
  220. package/dist/components/TextArea/TextArea.types.cjs +3 -0
  221. package/dist/components/TextArea/TextArea.types.cjs.map +1 -0
  222. package/dist/components/TextArea/TextArea.types.d.cts +63 -0
  223. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -0
  224. package/dist/components/TextArea/TextArea.types.d.mts +63 -0
  225. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -0
  226. package/dist/components/TextArea/TextArea.types.mjs +2 -0
  227. package/dist/components/TextArea/TextArea.types.mjs.map +1 -0
  228. package/dist/components/TextArea/index.cjs +6 -0
  229. package/dist/components/TextArea/index.cjs.map +1 -0
  230. package/dist/components/TextArea/index.d.cts +3 -0
  231. package/dist/components/TextArea/index.d.cts.map +1 -0
  232. package/dist/components/TextArea/index.d.mts +3 -0
  233. package/dist/components/TextArea/index.d.mts.map +1 -0
  234. package/dist/components/TextArea/index.mjs +2 -0
  235. package/dist/components/TextArea/index.mjs.map +1 -0
  236. package/dist/components/TextField/TextField.cjs +1 -2
  237. package/dist/components/TextField/TextField.cjs.map +1 -1
  238. package/dist/components/TextField/TextField.d.cts +8 -2
  239. package/dist/components/TextField/TextField.d.cts.map +1 -1
  240. package/dist/components/TextField/TextField.d.mts +8 -2
  241. package/dist/components/TextField/TextField.d.mts.map +1 -1
  242. package/dist/components/TextField/TextField.mjs +1 -2
  243. package/dist/components/TextField/TextField.mjs.map +1 -1
  244. package/dist/components/TextField/TextField.types.cjs.map +1 -1
  245. package/dist/components/TextField/TextField.types.d.cts +5 -1
  246. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  247. package/dist/components/TextField/TextField.types.d.mts +5 -1
  248. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  249. package/dist/components/TextField/TextField.types.mjs.map +1 -1
  250. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +8 -2
  251. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  252. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +8 -2
  253. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  254. package/dist/components/index.cjs +18 -2
  255. package/dist/components/index.cjs.map +1 -1
  256. package/dist/components/index.d.cts +12 -0
  257. package/dist/components/index.d.cts.map +1 -1
  258. package/dist/components/index.d.mts +12 -0
  259. package/dist/components/index.d.mts.map +1 -1
  260. package/dist/components/index.mjs +6 -0
  261. package/dist/components/index.mjs.map +1 -1
  262. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs +36 -0
  263. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs.map +1 -0
  264. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts +4 -0
  265. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts.map +1 -0
  266. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts +4 -0
  267. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts.map +1 -0
  268. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs +36 -0
  269. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs.map +1 -0
  270. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs +8 -0
  271. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs.map +1 -0
  272. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.cts +39 -0
  273. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.cts.map +1 -0
  274. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.mts +39 -0
  275. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.d.mts.map +1 -0
  276. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.mjs +10 -0
  277. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.mjs.map +1 -0
  278. package/dist/components/temp-components/HeaderStandardCenterColumn/index.cjs +6 -0
  279. package/dist/components/temp-components/HeaderStandardCenterColumn/index.cjs.map +1 -0
  280. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.cts +3 -0
  281. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.cts.map +1 -0
  282. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.mts +3 -0
  283. package/dist/components/temp-components/HeaderStandardCenterColumn/index.d.mts.map +1 -0
  284. package/dist/components/temp-components/HeaderStandardCenterColumn/index.mjs +2 -0
  285. package/dist/components/temp-components/HeaderStandardCenterColumn/index.mjs.map +1 -0
  286. package/package.json +2 -2
  287. package/dist/components/SensitiveText/SensitiveText.constants.cjs +0 -14
  288. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +0 -1
  289. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +0 -11
  290. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +0 -1
  291. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +0 -11
  292. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +0 -1
  293. package/dist/components/SensitiveText/SensitiveText.constants.mjs +0 -11
  294. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +0 -1
@@ -0,0 +1,12 @@
1
+ import type { SegmentGroupPropsShared } from "@metamask/design-system-shared";
2
+ import type { ScrollViewProps } from "react-native/index.js";
3
+ /**
4
+ * SegmentGroup component props.
5
+ */
6
+ export type SegmentGroupProps = SegmentGroupPropsShared & Omit<ScrollViewProps, 'horizontal' | 'showsHorizontalScrollIndicator'> & {
7
+ /**
8
+ * Optional twrnc classes merged into `contentContainerStyle` after the default row layout.
9
+ */
10
+ twClassName?: string;
11
+ };
12
+ //# sourceMappingURL=SegmentGroup.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentGroup.types.d.cts","sourceRoot":"","sources":["../../../src/components/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,8BAAqB;AAEpD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GACrD,IAAI,CAAC,eAAe,EAAE,YAAY,GAAG,gCAAgC,CAAC,GAAG;IACvE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { SegmentGroupPropsShared } from "@metamask/design-system-shared";
2
+ import type { ScrollViewProps } from "react-native/index.js";
3
+ /**
4
+ * SegmentGroup component props.
5
+ */
6
+ export type SegmentGroupProps = SegmentGroupPropsShared & Omit<ScrollViewProps, 'horizontal' | 'showsHorizontalScrollIndicator'> & {
7
+ /**
8
+ * Optional twrnc classes merged into `contentContainerStyle` after the default row layout.
9
+ */
10
+ twClassName?: string;
11
+ };
12
+ //# sourceMappingURL=SegmentGroup.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentGroup.types.d.mts","sourceRoot":"","sources":["../../../src/components/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,8BAAqB;AAEpD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GACrD,IAAI,CAAC,eAAe,EAAE,YAAY,GAAG,gCAAgC,CAAC,GAAG;IACvE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SegmentGroup.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentGroup.types.mjs","sourceRoot":"","sources":["../../../src/components/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SegmentGroupPropsShared } from '@metamask/design-system-shared';\nimport type { ScrollViewProps } from 'react-native';\n\n/**\n * SegmentGroup component props.\n */\nexport type SegmentGroupProps = SegmentGroupPropsShared &\n Omit<ScrollViewProps, 'horizontal' | 'showsHorizontalScrollIndicator'> & {\n /**\n * Optional twrnc classes merged into `contentContainerStyle` after the default row layout.\n */\n twClassName?: string;\n };\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SegmentGroup = void 0;
4
+ var SegmentGroup_1 = require("./SegmentGroup.cjs");
5
+ Object.defineProperty(exports, "SegmentGroup", { enumerable: true, get: function () { return SegmentGroup_1.SegmentGroup; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/SegmentGroup/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAArC,4GAAA,YAAY,OAAA","sourcesContent":["export { SegmentGroup } from './SegmentGroup';\nexport type { SegmentGroupProps } from './SegmentGroup.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { SegmentGroup } from "./SegmentGroup.cjs";
2
+ export type { SegmentGroupProps } from "./SegmentGroup.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/SegmentGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,3 @@
1
+ export { SegmentGroup } from "./SegmentGroup.mjs";
2
+ export type { SegmentGroupProps } from "./SegmentGroup.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/SegmentGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,2 @@
1
+ export { SegmentGroup } from "./SegmentGroup.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/SegmentGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB","sourcesContent":["export { SegmentGroup } from './SegmentGroup';\nexport type { SegmentGroupProps } from './SegmentGroup.types';\n"]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SelectButton = void 0;
7
+ const design_system_shared_1 = require("@metamask/design-system-shared");
8
+ const react_1 = __importDefault(require("react"));
9
+ const ButtonBase_1 = require("../ButtonBase/index.cjs");
10
+ const Icon_1 = require("../Icon/index.cjs");
11
+ const Text_1 = require("../Text/index.cjs");
12
+ const SelectButton_constants_1 = require("./SelectButton.constants.cjs");
13
+ const SelectButton = ({ placeholder, value, textProps, startAccessory, endArrowDirection, endAccessory, hideEndArrow = false, isDisabled = false, endArrowDirectionIconProps, variant = design_system_shared_1.SelectButtonVariant.Primary, isLoading = false, size = design_system_shared_1.ButtonBaseSize.Sm, twClassName = '', style, ...buttonBaseRest }) => {
14
+ const labelContent = value ?? placeholder;
15
+ let resolvedEndArrowDirection;
16
+ if (hideEndArrow) {
17
+ resolvedEndArrowDirection = undefined;
18
+ }
19
+ else if (endArrowDirection !== undefined && endArrowDirection !== null) {
20
+ resolvedEndArrowDirection = endArrowDirection;
21
+ }
22
+ else if (endAccessory) {
23
+ resolvedEndArrowDirection = undefined;
24
+ }
25
+ else {
26
+ resolvedEndArrowDirection = design_system_shared_1.SelectButtonEndArrow.Down;
27
+ }
28
+ return (<ButtonBase_1.ButtonBase {...buttonBaseRest} size={size} isDisabled={isDisabled} isLoading={isLoading} children={labelContent} textProps={{
29
+ ...(variant === design_system_shared_1.SelectButtonVariant.Tertiary
30
+ ? { color: Text_1.TextColor.TextAlternative }
31
+ : {}),
32
+ ...textProps,
33
+ }} startAccessory={startAccessory} endAccessory={resolvedEndArrowDirection ? undefined : endAccessory} endIconName={resolvedEndArrowDirection
34
+ ? SelectButton_constants_1.MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME[resolvedEndArrowDirection]
35
+ : undefined} endIconProps={resolvedEndArrowDirection
36
+ ? {
37
+ ...(variant === design_system_shared_1.SelectButtonVariant.Tertiary
38
+ ? { color: Icon_1.IconColor.IconAlternative }
39
+ : {}),
40
+ ...endArrowDirectionIconProps,
41
+ }
42
+ : undefined} twClassName={(pressed) => variant === design_system_shared_1.SelectButtonVariant.Secondary ||
43
+ variant === design_system_shared_1.SelectButtonVariant.Tertiary
44
+ ? `min-w-0 ${pressed || isLoading ? 'bg-pressed' : 'bg-transparent'} border-0 ${typeof twClassName === 'function'
45
+ ? twClassName(pressed)
46
+ : twClassName}`
47
+ : `min-w-0 ${pressed || isLoading ? 'bg-muted-pressed' : 'bg-muted'} border-transparent border ${typeof twClassName === 'function'
48
+ ? twClassName(pressed)
49
+ : twClassName}`} textClassName={() => variant === design_system_shared_1.SelectButtonVariant.Tertiary ? '' : 'text-default'} iconClassName={() => variant === design_system_shared_1.SelectButtonVariant.Tertiary ? '' : 'text-default'} style={style}/>);
50
+ };
51
+ exports.SelectButton = SelectButton;
52
+ exports.SelectButton.displayName = 'SelectButton';
53
+ //# sourceMappingURL=SelectButton.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.cjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.tsx"],"names":[],"mappings":"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","sourcesContent":["import {\n ButtonBaseSize,\n SelectButtonEndArrow,\n SelectButtonVariant,\n} from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\nimport { IconColor } from '../Icon';\nimport { TextColor } from '../Text';\n\nimport { MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME } from './SelectButton.constants';\nimport type { SelectButtonProps } from './SelectButton.types';\n\nexport const SelectButton = ({\n placeholder,\n value,\n textProps,\n startAccessory,\n endArrowDirection,\n endAccessory,\n hideEndArrow = false,\n isDisabled = false,\n endArrowDirectionIconProps,\n variant = SelectButtonVariant.Primary,\n isLoading = false,\n size = ButtonBaseSize.Sm,\n twClassName = '',\n style,\n ...buttonBaseRest\n}: SelectButtonProps) => {\n const labelContent = value ?? placeholder;\n\n let resolvedEndArrowDirection: SelectButtonEndArrow | undefined;\n if (hideEndArrow) {\n resolvedEndArrowDirection = undefined;\n } else if (endArrowDirection !== undefined && endArrowDirection !== null) {\n resolvedEndArrowDirection = endArrowDirection;\n } else if (endAccessory) {\n resolvedEndArrowDirection = undefined;\n } else {\n resolvedEndArrowDirection = SelectButtonEndArrow.Down;\n }\n\n return (\n <ButtonBase\n {...buttonBaseRest}\n size={size}\n isDisabled={isDisabled}\n isLoading={isLoading}\n children={labelContent}\n textProps={{\n ...(variant === SelectButtonVariant.Tertiary\n ? { color: TextColor.TextAlternative }\n : {}),\n ...textProps,\n }}\n startAccessory={startAccessory}\n endAccessory={resolvedEndArrowDirection ? undefined : endAccessory}\n endIconName={\n resolvedEndArrowDirection\n ? MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME[\n resolvedEndArrowDirection\n ]\n : undefined\n }\n endIconProps={\n resolvedEndArrowDirection\n ? {\n ...(variant === SelectButtonVariant.Tertiary\n ? { color: IconColor.IconAlternative }\n : {}),\n ...endArrowDirectionIconProps,\n }\n : undefined\n }\n twClassName={(pressed) =>\n variant === SelectButtonVariant.Secondary ||\n variant === SelectButtonVariant.Tertiary\n ? `min-w-0 ${pressed || isLoading ? 'bg-pressed' : 'bg-transparent'} border-0 ${\n typeof twClassName === 'function'\n ? twClassName(pressed)\n : twClassName\n }`\n : `min-w-0 ${pressed || isLoading ? 'bg-muted-pressed' : 'bg-muted'} border-transparent border ${\n typeof twClassName === 'function'\n ? twClassName(pressed)\n : twClassName\n }`\n }\n textClassName={() =>\n variant === SelectButtonVariant.Tertiary ? '' : 'text-default'\n }\n iconClassName={() =>\n variant === SelectButtonVariant.Tertiary ? '' : 'text-default'\n }\n style={style}\n />\n );\n};\n\nSelectButton.displayName = 'SelectButton';\n"]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME = void 0;
4
+ const design_system_shared_1 = require("@metamask/design-system-shared");
5
+ const types_1 = require("../../types/index.cjs");
6
+ exports.MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME = {
7
+ [design_system_shared_1.SelectButtonEndArrow.Up]: types_1.IconName.ArrowUp,
8
+ [design_system_shared_1.SelectButtonEndArrow.Down]: types_1.IconName.ArrowDown,
9
+ [design_system_shared_1.SelectButtonEndArrow.Left]: types_1.IconName.ArrowLeft,
10
+ [design_system_shared_1.SelectButtonEndArrow.Right]: types_1.IconName.ArrowRight,
11
+ };
12
+ //# sourceMappingURL=SelectButton.constants.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.constants.cjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAEtE,iDAAuC;AAE1B,QAAA,iDAAiD,GAG1D;IACF,CAAC,2CAAoB,CAAC,EAAE,CAAC,EAAE,gBAAQ,CAAC,OAAO;IAC3C,CAAC,2CAAoB,CAAC,IAAI,CAAC,EAAE,gBAAQ,CAAC,SAAS;IAC/C,CAAC,2CAAoB,CAAC,IAAI,CAAC,EAAE,gBAAQ,CAAC,SAAS;IAC/C,CAAC,2CAAoB,CAAC,KAAK,CAAC,EAAE,gBAAQ,CAAC,UAAU;CAClD,CAAC","sourcesContent":["import { SelectButtonEndArrow } from '@metamask/design-system-shared';\n\nimport { IconName } from '../../types';\n\nexport const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<\n (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow],\n IconName\n> = {\n [SelectButtonEndArrow.Up]: IconName.ArrowUp,\n [SelectButtonEndArrow.Down]: IconName.ArrowDown,\n [SelectButtonEndArrow.Left]: IconName.ArrowLeft,\n [SelectButtonEndArrow.Right]: IconName.ArrowRight,\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import { SelectButtonEndArrow } from "@metamask/design-system-shared";
2
+ import { IconName } from "../../types/index.cjs";
3
+ export declare const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<(typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow], IconName>;
4
+ //# sourceMappingURL=SelectButton.constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.constants.d.cts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,uCAAuC;AAEtE,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAEvC,eAAO,MAAM,iDAAiD,EAAE,MAAM,CACpE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,EAChE,QAAQ,CAMT,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SelectButtonEndArrow } from "@metamask/design-system-shared";
2
+ import { IconName } from "../../types/index.mjs";
3
+ export declare const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<(typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow], IconName>;
4
+ //# sourceMappingURL=SelectButton.constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.constants.d.mts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,uCAAuC;AAEtE,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAEvC,eAAO,MAAM,iDAAiD,EAAE,MAAM,CACpE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,EAChE,QAAQ,CAMT,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { SelectButtonEndArrow } from "@metamask/design-system-shared";
2
+ import { IconName } from "../../types/index.mjs";
3
+ export const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME = {
4
+ [SelectButtonEndArrow.Up]: IconName.ArrowUp,
5
+ [SelectButtonEndArrow.Down]: IconName.ArrowDown,
6
+ [SelectButtonEndArrow.Left]: IconName.ArrowLeft,
7
+ [SelectButtonEndArrow.Right]: IconName.ArrowRight,
8
+ };
9
+ //# sourceMappingURL=SelectButton.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.constants.mjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,uCAAuC;AAEtE,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAEvC,MAAM,CAAC,MAAM,iDAAiD,GAG1D;IACF,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,OAAO;IAC3C,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,SAAS;IAC/C,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,SAAS;IAC/C,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,UAAU;CAClD,CAAC","sourcesContent":["import { SelectButtonEndArrow } from '@metamask/design-system-shared';\n\nimport { IconName } from '../../types';\n\nexport const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<\n (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow],\n IconName\n> = {\n [SelectButtonEndArrow.Up]: IconName.ArrowUp,\n [SelectButtonEndArrow.Down]: IconName.ArrowDown,\n [SelectButtonEndArrow.Left]: IconName.ArrowLeft,\n [SelectButtonEndArrow.Right]: IconName.ArrowRight,\n};\n"]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { SelectButtonProps } from "./SelectButton.types.cjs";
3
+ export declare const SelectButton: {
4
+ ({ placeholder, value, textProps, startAccessory, endArrowDirection, endAccessory, hideEndArrow, isDisabled, endArrowDirectionIconProps, variant, isLoading, size, twClassName, style, ...buttonBaseRest }: SelectButtonProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=SelectButton.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.d.cts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iCAA6B;AAE9D,eAAO,MAAM,YAAY;gNAgBtB,iBAAiB;;CAqEnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { SelectButtonProps } from "./SelectButton.types.mjs";
3
+ export declare const SelectButton: {
4
+ ({ placeholder, value, textProps, startAccessory, endArrowDirection, endAccessory, hideEndArrow, isDisabled, endArrowDirectionIconProps, variant, isLoading, size, twClassName, style, ...buttonBaseRest }: SelectButtonProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=SelectButton.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.d.mts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iCAA6B;AAE9D,eAAO,MAAM,YAAY;gNAgBtB,iBAAiB;;CAqEnB,CAAC"}
@@ -0,0 +1,53 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { ButtonBaseSize, SelectButtonEndArrow, SelectButtonVariant } from "@metamask/design-system-shared";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { ButtonBase } from "../ButtonBase/index.mjs";
11
+ import { IconColor } from "../Icon/index.mjs";
12
+ import { TextColor } from "../Text/index.mjs";
13
+ import { MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME } from "./SelectButton.constants.mjs";
14
+ export const SelectButton = ({ placeholder, value, textProps, startAccessory, endArrowDirection, endAccessory, hideEndArrow = false, isDisabled = false, endArrowDirectionIconProps, variant = SelectButtonVariant.Primary, isLoading = false, size = ButtonBaseSize.Sm, twClassName = '', style, ...buttonBaseRest }) => {
15
+ const labelContent = value ?? placeholder;
16
+ let resolvedEndArrowDirection;
17
+ if (hideEndArrow) {
18
+ resolvedEndArrowDirection = undefined;
19
+ }
20
+ else if (endArrowDirection !== undefined && endArrowDirection !== null) {
21
+ resolvedEndArrowDirection = endArrowDirection;
22
+ }
23
+ else if (endAccessory) {
24
+ resolvedEndArrowDirection = undefined;
25
+ }
26
+ else {
27
+ resolvedEndArrowDirection = SelectButtonEndArrow.Down;
28
+ }
29
+ return (<ButtonBase {...buttonBaseRest} size={size} isDisabled={isDisabled} isLoading={isLoading} children={labelContent} textProps={{
30
+ ...(variant === SelectButtonVariant.Tertiary
31
+ ? { color: TextColor.TextAlternative }
32
+ : {}),
33
+ ...textProps,
34
+ }} startAccessory={startAccessory} endAccessory={resolvedEndArrowDirection ? undefined : endAccessory} endIconName={resolvedEndArrowDirection
35
+ ? MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME[resolvedEndArrowDirection]
36
+ : undefined} endIconProps={resolvedEndArrowDirection
37
+ ? {
38
+ ...(variant === SelectButtonVariant.Tertiary
39
+ ? { color: IconColor.IconAlternative }
40
+ : {}),
41
+ ...endArrowDirectionIconProps,
42
+ }
43
+ : undefined} twClassName={(pressed) => variant === SelectButtonVariant.Secondary ||
44
+ variant === SelectButtonVariant.Tertiary
45
+ ? `min-w-0 ${pressed || isLoading ? 'bg-pressed' : 'bg-transparent'} border-0 ${typeof twClassName === 'function'
46
+ ? twClassName(pressed)
47
+ : twClassName}`
48
+ : `min-w-0 ${pressed || isLoading ? 'bg-muted-pressed' : 'bg-muted'} border-transparent border ${typeof twClassName === 'function'
49
+ ? twClassName(pressed)
50
+ : twClassName}`} textClassName={() => variant === SelectButtonVariant.Tertiary ? '' : 'text-default'} iconClassName={() => variant === SelectButtonVariant.Tertiary ? '' : 'text-default'} style={style}/>);
51
+ };
52
+ SelectButton.displayName = 'SelectButton';
53
+ //# sourceMappingURL=SelectButton.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.mjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.tsx"],"names":[],"mappings":"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","sourcesContent":["import {\n ButtonBaseSize,\n SelectButtonEndArrow,\n SelectButtonVariant,\n} from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\nimport { IconColor } from '../Icon';\nimport { TextColor } from '../Text';\n\nimport { MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME } from './SelectButton.constants';\nimport type { SelectButtonProps } from './SelectButton.types';\n\nexport const SelectButton = ({\n placeholder,\n value,\n textProps,\n startAccessory,\n endArrowDirection,\n endAccessory,\n hideEndArrow = false,\n isDisabled = false,\n endArrowDirectionIconProps,\n variant = SelectButtonVariant.Primary,\n isLoading = false,\n size = ButtonBaseSize.Sm,\n twClassName = '',\n style,\n ...buttonBaseRest\n}: SelectButtonProps) => {\n const labelContent = value ?? placeholder;\n\n let resolvedEndArrowDirection: SelectButtonEndArrow | undefined;\n if (hideEndArrow) {\n resolvedEndArrowDirection = undefined;\n } else if (endArrowDirection !== undefined && endArrowDirection !== null) {\n resolvedEndArrowDirection = endArrowDirection;\n } else if (endAccessory) {\n resolvedEndArrowDirection = undefined;\n } else {\n resolvedEndArrowDirection = SelectButtonEndArrow.Down;\n }\n\n return (\n <ButtonBase\n {...buttonBaseRest}\n size={size}\n isDisabled={isDisabled}\n isLoading={isLoading}\n children={labelContent}\n textProps={{\n ...(variant === SelectButtonVariant.Tertiary\n ? { color: TextColor.TextAlternative }\n : {}),\n ...textProps,\n }}\n startAccessory={startAccessory}\n endAccessory={resolvedEndArrowDirection ? undefined : endAccessory}\n endIconName={\n resolvedEndArrowDirection\n ? MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME[\n resolvedEndArrowDirection\n ]\n : undefined\n }\n endIconProps={\n resolvedEndArrowDirection\n ? {\n ...(variant === SelectButtonVariant.Tertiary\n ? { color: IconColor.IconAlternative }\n : {}),\n ...endArrowDirectionIconProps,\n }\n : undefined\n }\n twClassName={(pressed) =>\n variant === SelectButtonVariant.Secondary ||\n variant === SelectButtonVariant.Tertiary\n ? `min-w-0 ${pressed || isLoading ? 'bg-pressed' : 'bg-transparent'} border-0 ${\n typeof twClassName === 'function'\n ? twClassName(pressed)\n : twClassName\n }`\n : `min-w-0 ${pressed || isLoading ? 'bg-muted-pressed' : 'bg-muted'} border-transparent border ${\n typeof twClassName === 'function'\n ? twClassName(pressed)\n : twClassName\n }`\n }\n textClassName={() =>\n variant === SelectButtonVariant.Tertiary ? '' : 'text-default'\n }\n iconClassName={() =>\n variant === SelectButtonVariant.Tertiary ? '' : 'text-default'\n }\n style={style}\n />\n );\n};\n\nSelectButton.displayName = 'SelectButton';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SelectButton.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.cjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SelectButtonPropsShared } from '@metamask/design-system-shared';\n\nimport type { ButtonBaseProps } from '../ButtonBase/ButtonBase.types';\nimport type { IconProps } from '../Icon/Icon.types';\n\n/**\n * SelectButton component props.\n */\nexport type SelectButtonProps = SelectButtonPropsShared &\n Omit<\n ButtonBaseProps,\n 'children' | 'endIconName' | 'endIconProps' | 'disabled'\n > & {\n /**\n * Optional props passed to the trailing arrow `Icon` when a trailing arrow is shown (excluding `name`, which is derived from the resolved direction).\n */\n endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;\n };\n"]}
@@ -0,0 +1,13 @@
1
+ import type { SelectButtonPropsShared } from "@metamask/design-system-shared";
2
+ import type { ButtonBaseProps } from "../ButtonBase/ButtonBase.types.cjs";
3
+ import type { IconProps } from "../Icon/Icon.types.cjs";
4
+ /**
5
+ * SelectButton component props.
6
+ */
7
+ export type SelectButtonProps = SelectButtonPropsShared & Omit<ButtonBaseProps, 'children' | 'endIconName' | 'endIconProps' | 'disabled'> & {
8
+ /**
9
+ * Optional props passed to the trailing arrow `Icon` when a trailing arrow is shown (excluding `name`, which is derived from the resolved direction).
10
+ */
11
+ endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;
12
+ };
13
+ //# sourceMappingURL=SelectButton.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.d.cts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GACrD,IAAI,CACF,eAAe,EACf,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,CACzD,GAAG;IACF;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;CAC/D,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { SelectButtonPropsShared } from "@metamask/design-system-shared";
2
+ import type { ButtonBaseProps } from "../ButtonBase/ButtonBase.types.mjs";
3
+ import type { IconProps } from "../Icon/Icon.types.mjs";
4
+ /**
5
+ * SelectButton component props.
6
+ */
7
+ export type SelectButtonProps = SelectButtonPropsShared & Omit<ButtonBaseProps, 'children' | 'endIconName' | 'endIconProps' | 'disabled'> & {
8
+ /**
9
+ * Optional props passed to the trailing arrow `Icon` when a trailing arrow is shown (excluding `name`, which is derived from the resolved direction).
10
+ */
11
+ endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;
12
+ };
13
+ //# sourceMappingURL=SelectButton.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.d.mts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GACrD,IAAI,CACF,eAAe,EACf,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,CACzD,GAAG;IACF;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;CAC/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SelectButton.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.mjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SelectButtonPropsShared } from '@metamask/design-system-shared';\n\nimport type { ButtonBaseProps } from '../ButtonBase/ButtonBase.types';\nimport type { IconProps } from '../Icon/Icon.types';\n\n/**\n * SelectButton component props.\n */\nexport type SelectButtonProps = SelectButtonPropsShared &\n Omit<\n ButtonBaseProps,\n 'children' | 'endIconName' | 'endIconProps' | 'disabled'\n > & {\n /**\n * Optional props passed to the trailing arrow `Icon` when a trailing arrow is shown (excluding `name`, which is derived from the resolved direction).\n */\n endArrowDirectionIconProps?: Partial<Omit<IconProps, 'name'>>;\n };\n"]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectButton = exports.SelectButtonVariant = exports.SelectButtonEndArrow = void 0;
4
+ var design_system_shared_1 = require("@metamask/design-system-shared");
5
+ Object.defineProperty(exports, "SelectButtonEndArrow", { enumerable: true, get: function () { return design_system_shared_1.SelectButtonEndArrow; } });
6
+ Object.defineProperty(exports, "SelectButtonVariant", { enumerable: true, get: function () { return design_system_shared_1.SelectButtonVariant; } });
7
+ var SelectButton_1 = require("./SelectButton.cjs");
8
+ Object.defineProperty(exports, "SelectButton", { enumerable: true, get: function () { return SelectButton_1.SelectButton; } });
9
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/SelectButton/index.ts"],"names":[],"mappings":";;;AAAA,uEAGwC;AAFtC,4HAAA,oBAAoB,OAAA;AACpB,2HAAA,mBAAmB,OAAA;AAErB,mDAA8C;AAArC,4GAAA,YAAY,OAAA","sourcesContent":["export {\n SelectButtonEndArrow,\n SelectButtonVariant,\n} from '@metamask/design-system-shared';\nexport { SelectButton } from './SelectButton';\nexport type { SelectButtonProps } from './SelectButton.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { SelectButtonEndArrow, SelectButtonVariant, } from "@metamask/design-system-shared";
2
+ export { SelectButton } from "./SelectButton.cjs";
3
+ export type { SelectButtonProps } from "./SelectButton.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/SelectButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,uCAAuC;AACxC,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,4 @@
1
+ export { SelectButtonEndArrow, SelectButtonVariant, } from "@metamask/design-system-shared";
2
+ export { SelectButton } from "./SelectButton.mjs";
3
+ export type { SelectButtonProps } from "./SelectButton.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/SelectButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,uCAAuC;AACxC,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,3 @@
1
+ export { SelectButtonEndArrow, SelectButtonVariant } from "@metamask/design-system-shared";
2
+ export { SelectButton } from "./SelectButton.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/SelectButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACpB,uCAAuC;AACxC,OAAO,EAAE,YAAY,EAAE,2BAAuB","sourcesContent":["export {\n SelectButtonEndArrow,\n SelectButtonVariant,\n} from '@metamask/design-system-shared';\nexport { SelectButton } from './SelectButton';\nexport type { SelectButtonProps } from './SelectButton.types';\n"]}
@@ -24,19 +24,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.SensitiveText = void 0;
27
+ const design_system_shared_1 = require("@metamask/design-system-shared");
27
28
  const react_1 = __importStar(require("react"));
28
29
  const Text_1 = require("../Text/index.cjs");
29
- const SensitiveText_constants_1 = require("./SensitiveText.constants.cjs");
30
30
  const isValidLength = (value) => {
31
31
  const num = Number(value);
32
32
  return !Number.isNaN(num) && num > 0;
33
33
  };
34
- const SensitiveText = ({ isHidden = false, length = SensitiveText_constants_1.SensitiveTextLength.Short, children, ...props }) => {
34
+ const SensitiveText = ({ isHidden = false, length = design_system_shared_1.SensitiveTextLength.Short, children, ...props }) => {
35
35
  const fallback = (0, react_1.useMemo)(() => {
36
36
  let resolvedLength = length;
37
- if (!(length in SensitiveText_constants_1.SensitiveTextLength) && !isValidLength(length)) {
37
+ if (!(length in design_system_shared_1.SensitiveTextLength) && !isValidLength(length)) {
38
38
  console.warn(`Invalid length provided: ${length}. Falling back to Short.`);
39
- resolvedLength = SensitiveText_constants_1.SensitiveTextLength.Short;
39
+ resolvedLength = design_system_shared_1.SensitiveTextLength.Short;
40
40
  }
41
41
  const numLength = Number(resolvedLength);
42
42
  return '•'.repeat(Number.isNaN(numLength) ? 0 : numLength);
@@ -1 +1 @@
1
- {"version":3,"file":"SensitiveText.cjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuC;AAEvC,4CAA+B;AAE/B,2EAAgE;AAGhE,MAAM,aAAa,GAAG,CAAC,KAAa,EAAW,EAAE;IAC/C,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAEK,MAAM,aAAa,GAAiC,CAAC,EAC1D,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,6CAAmB,CAAC,KAAK,EAClC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC5B,IAAI,cAAc,GAAG,MAAM,CAAC;QAE5B,IAAI,CAAC,CAAC,MAAM,IAAI,6CAAmB,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;YAC9D,OAAO,CAAC,IAAI,CACV,4BAA4B,MAAM,0BAA0B,CAC7D,CAAC;YACF,cAAc,GAAG,6CAAmB,CAAC,KAAK,CAAC;SAC5C;QAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QACzC,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CAAC,WAAI,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAI,CAAC,CAAC;AAClE,CAAC,CAAC;AArBW,QAAA,aAAa,iBAqBxB","sourcesContent":["import React, { useMemo } from 'react';\n\nimport { Text } from '../Text';\n\nimport { SensitiveTextLength } from './SensitiveText.constants';\nimport type { SensitiveTextProps } from './SensitiveText.types';\n\nconst isValidLength = (value: string): boolean => {\n const num = Number(value);\n return !Number.isNaN(num) && num > 0;\n};\n\nexport const SensitiveText: React.FC<SensitiveTextProps> = ({\n isHidden = false,\n length = SensitiveTextLength.Short,\n children,\n ...props\n}) => {\n const fallback = useMemo(() => {\n let resolvedLength = length;\n\n if (!(length in SensitiveTextLength) && !isValidLength(length)) {\n console.warn(\n `Invalid length provided: ${length}. Falling back to Short.`,\n );\n resolvedLength = SensitiveTextLength.Short;\n }\n\n const numLength = Number(resolvedLength);\n return '•'.repeat(Number.isNaN(numLength) ? 0 : numLength);\n }, [length]);\n\n return <Text {...props}>{isHidden ? fallback : children}</Text>;\n};\n"]}
1
+ {"version":3,"file":"SensitiveText.cjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAqE;AACrE,+CAAuC;AAEvC,4CAA+B;AAI/B,MAAM,aAAa,GAAG,CAAC,KAAa,EAAW,EAAE;IAC/C,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAEK,MAAM,aAAa,GAAiC,CAAC,EAC1D,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,0CAAmB,CAAC,KAAK,EAClC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC5B,IAAI,cAAc,GAAG,MAAM,CAAC;QAE5B,IAAI,CAAC,CAAC,MAAM,IAAI,0CAAmB,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;YAC9D,OAAO,CAAC,IAAI,CACV,4BAA4B,MAAM,0BAA0B,CAC7D,CAAC;YACF,cAAc,GAAG,0CAAmB,CAAC,KAAK,CAAC;SAC5C;QAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QACzC,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CAAC,WAAI,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAI,CAAC,CAAC;AAClE,CAAC,CAAC;AArBW,QAAA,aAAa,iBAqBxB","sourcesContent":["import { SensitiveTextLength } from '@metamask/design-system-shared';\nimport React, { useMemo } from 'react';\n\nimport { Text } from '../Text';\n\nimport type { SensitiveTextProps } from './SensitiveText.types';\n\nconst isValidLength = (value: string): boolean => {\n const num = Number(value);\n return !Number.isNaN(num) && num > 0;\n};\n\nexport const SensitiveText: React.FC<SensitiveTextProps> = ({\n isHidden = false,\n length = SensitiveTextLength.Short,\n children,\n ...props\n}) => {\n const fallback = useMemo(() => {\n let resolvedLength = length;\n\n if (!(length in SensitiveTextLength) && !isValidLength(length)) {\n console.warn(\n `Invalid length provided: ${length}. Falling back to Short.`,\n );\n resolvedLength = SensitiveTextLength.Short;\n }\n\n const numLength = Number(resolvedLength);\n return '•'.repeat(Number.isNaN(numLength) ? 0 : numLength);\n }, [length]);\n\n return <Text {...props}>{isHidden ? fallback : children}</Text>;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"SensitiveText.d.cts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,cAAc;AAKvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAOhE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqBtD,CAAC"}
1
+ {"version":3,"file":"SensitiveText.d.cts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,cAAc;AAIvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAOhE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqBtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SensitiveText.d.mts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,cAAc;AAKvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAOhE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqBtD,CAAC"}
1
+ {"version":3,"file":"SensitiveText.d.mts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,cAAc;AAIvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAOhE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqBtD,CAAC"}
@@ -4,10 +4,10 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { SensitiveTextLength } from "@metamask/design-system-shared";
7
8
  import $React, { useMemo } from "react";
8
9
  const React = $importDefault($React);
9
10
  import { Text } from "../Text/index.mjs";
10
- import { SensitiveTextLength } from "./SensitiveText.constants.mjs";
11
11
  const isValidLength = (value) => {
12
12
  const num = Number(value);
13
13
  return !Number.isNaN(num) && num > 0;
@@ -1 +1 @@
1
- {"version":3,"file":"SensitiveText.mjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,OAAO,EAAE,cAAc;;AAEvC,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAE/B,OAAO,EAAE,mBAAmB,EAAE,sCAAkC;AAGhE,MAAM,aAAa,GAAG,CAAC,KAAa,EAAW,EAAE;IAC/C,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,mBAAmB,CAAC,KAAK,EAClC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,IAAI,cAAc,GAAG,MAAM,CAAC;QAE5B,IAAI,CAAC,CAAC,MAAM,IAAI,mBAAmB,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;YAC9D,OAAO,CAAC,IAAI,CACV,4BAA4B,MAAM,0BAA0B,CAC7D,CAAC;YACF,cAAc,GAAG,mBAAmB,CAAC,KAAK,CAAC;SAC5C;QAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QACzC,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC,CAAC","sourcesContent":["import React, { useMemo } from 'react';\n\nimport { Text } from '../Text';\n\nimport { SensitiveTextLength } from './SensitiveText.constants';\nimport type { SensitiveTextProps } from './SensitiveText.types';\n\nconst isValidLength = (value: string): boolean => {\n const num = Number(value);\n return !Number.isNaN(num) && num > 0;\n};\n\nexport const SensitiveText: React.FC<SensitiveTextProps> = ({\n isHidden = false,\n length = SensitiveTextLength.Short,\n children,\n ...props\n}) => {\n const fallback = useMemo(() => {\n let resolvedLength = length;\n\n if (!(length in SensitiveTextLength) && !isValidLength(length)) {\n console.warn(\n `Invalid length provided: ${length}. Falling back to Short.`,\n );\n resolvedLength = SensitiveTextLength.Short;\n }\n\n const numLength = Number(resolvedLength);\n return '•'.repeat(Number.isNaN(numLength) ? 0 : numLength);\n }, [length]);\n\n return <Text {...props}>{isHidden ? fallback : children}</Text>;\n};\n"]}
1
+ {"version":3,"file":"SensitiveText.mjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,uCAAuC;AACrE,OAAO,QAAO,EAAE,OAAO,EAAE,cAAc;;AAEvC,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAI/B,MAAM,aAAa,GAAG,CAAC,KAAa,EAAW,EAAE;IAC/C,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,mBAAmB,CAAC,KAAK,EAClC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,IAAI,cAAc,GAAG,MAAM,CAAC;QAE5B,IAAI,CAAC,CAAC,MAAM,IAAI,mBAAmB,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;YAC9D,OAAO,CAAC,IAAI,CACV,4BAA4B,MAAM,0BAA0B,CAC7D,CAAC;YACF,cAAc,GAAG,mBAAmB,CAAC,KAAK,CAAC;SAC5C;QAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QACzC,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC,CAAC","sourcesContent":["import { SensitiveTextLength } from '@metamask/design-system-shared';\nimport React, { useMemo } from 'react';\n\nimport { Text } from '../Text';\n\nimport type { SensitiveTextProps } from './SensitiveText.types';\n\nconst isValidLength = (value: string): boolean => {\n const num = Number(value);\n return !Number.isNaN(num) && num > 0;\n};\n\nexport const SensitiveText: React.FC<SensitiveTextProps> = ({\n isHidden = false,\n length = SensitiveTextLength.Short,\n children,\n ...props\n}) => {\n const fallback = useMemo(() => {\n let resolvedLength = length;\n\n if (!(length in SensitiveTextLength) && !isValidLength(length)) {\n console.warn(\n `Invalid length provided: ${length}. Falling back to Short.`,\n );\n resolvedLength = SensitiveTextLength.Short;\n }\n\n const numLength = Number(resolvedLength);\n return '•'.repeat(Number.isNaN(numLength) ? 0 : numLength);\n }, [length]);\n\n return <Text {...props}>{isHidden ? fallback : children}</Text>;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"SensitiveText.types.cjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextProps } from '../Text/Text.types';\n\nimport type { SensitiveTextLength } from './SensitiveText.constants';\n\n/**\n * Type for SensitiveTextLength values.\n */\nexport type SensitiveTextLengthType =\n (typeof SensitiveTextLength)[keyof typeof SensitiveTextLength];\n\n/**\n * Type for custom length values.\n */\nexport type CustomLength = string;\n\n/**\n * SensitiveText component props.\n *\n * Extends TextProps to inherit all Text component properties\n * including variant, color, fontWeight, twClassName, and standard\n * React Native TextProps such as testID and accessibilityLabel.\n */\nexport type SensitiveTextProps = {\n /**\n * Whether the text content should be hidden.\n * When true, content is replaced with bullet characters.\n *\n * @default false\n */\n isHidden?: boolean;\n /**\n * The number of bullet characters to display when hidden.\n * Can be a predefined SensitiveTextLength or a custom numeric string.\n *\n * @default SensitiveTextLength.Short\n */\n length?: SensitiveTextLengthType | CustomLength;\n /**\n * The text content to display or hide.\n */\n children: React.ReactNode;\n} & TextProps;\n"]}
1
+ {"version":3,"file":"SensitiveText.types.cjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SensitiveTextPropsShared } from '@metamask/design-system-shared';\n\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * SensitiveText component props (React Native platform-specific).\n *\n * Extends shared props from `@metamask/design-system-shared` with the platform\n * `TextProps` so consumers inherit `variant`, `color`, `fontWeight`, `twClassName`,\n * `style`, `testID`, `accessibilityLabel`, etc.\n */\nexport type SensitiveTextProps = SensitiveTextPropsShared & TextProps;\n"]}
@@ -1,39 +1,11 @@
1
- /// <reference types="react" />
1
+ import type { SensitiveTextPropsShared } from "@metamask/design-system-shared";
2
2
  import type { TextProps } from "../Text/Text.types.cjs";
3
- import type { SensitiveTextLength } from "./SensitiveText.constants.cjs";
4
3
  /**
5
- * Type for SensitiveTextLength values.
6
- */
7
- export type SensitiveTextLengthType = (typeof SensitiveTextLength)[keyof typeof SensitiveTextLength];
8
- /**
9
- * Type for custom length values.
10
- */
11
- export type CustomLength = string;
12
- /**
13
- * SensitiveText component props.
4
+ * SensitiveText component props (React Native platform-specific).
14
5
  *
15
- * Extends TextProps to inherit all Text component properties
16
- * including variant, color, fontWeight, twClassName, and standard
17
- * React Native TextProps such as testID and accessibilityLabel.
6
+ * Extends shared props from `@metamask/design-system-shared` with the platform
7
+ * `TextProps` so consumers inherit `variant`, `color`, `fontWeight`, `twClassName`,
8
+ * `style`, `testID`, `accessibilityLabel`, etc.
18
9
  */
19
- export type SensitiveTextProps = {
20
- /**
21
- * Whether the text content should be hidden.
22
- * When true, content is replaced with bullet characters.
23
- *
24
- * @default false
25
- */
26
- isHidden?: boolean;
27
- /**
28
- * The number of bullet characters to display when hidden.
29
- * Can be a predefined SensitiveTextLength or a custom numeric string.
30
- *
31
- * @default SensitiveTextLength.Short
32
- */
33
- length?: SensitiveTextLengthType | CustomLength;
34
- /**
35
- * The text content to display or hide.
36
- */
37
- children: React.ReactNode;
38
- } & TextProps;
10
+ export type SensitiveTextProps = SensitiveTextPropsShared & TextProps;
39
11
  //# sourceMappingURL=SensitiveText.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SensitiveText.types.d.cts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,sCAAkC;AAErE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,uBAAuB,GAAG,YAAY,CAAC;IAChD;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"SensitiveText.types.d.cts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uCAAuC;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,SAAS,CAAC"}
@@ -1,39 +1,11 @@
1
- /// <reference types="react" />
1
+ import type { SensitiveTextPropsShared } from "@metamask/design-system-shared";
2
2
  import type { TextProps } from "../Text/Text.types.mjs";
3
- import type { SensitiveTextLength } from "./SensitiveText.constants.mjs";
4
3
  /**
5
- * Type for SensitiveTextLength values.
6
- */
7
- export type SensitiveTextLengthType = (typeof SensitiveTextLength)[keyof typeof SensitiveTextLength];
8
- /**
9
- * Type for custom length values.
10
- */
11
- export type CustomLength = string;
12
- /**
13
- * SensitiveText component props.
4
+ * SensitiveText component props (React Native platform-specific).
14
5
  *
15
- * Extends TextProps to inherit all Text component properties
16
- * including variant, color, fontWeight, twClassName, and standard
17
- * React Native TextProps such as testID and accessibilityLabel.
6
+ * Extends shared props from `@metamask/design-system-shared` with the platform
7
+ * `TextProps` so consumers inherit `variant`, `color`, `fontWeight`, `twClassName`,
8
+ * `style`, `testID`, `accessibilityLabel`, etc.
18
9
  */
19
- export type SensitiveTextProps = {
20
- /**
21
- * Whether the text content should be hidden.
22
- * When true, content is replaced with bullet characters.
23
- *
24
- * @default false
25
- */
26
- isHidden?: boolean;
27
- /**
28
- * The number of bullet characters to display when hidden.
29
- * Can be a predefined SensitiveTextLength or a custom numeric string.
30
- *
31
- * @default SensitiveTextLength.Short
32
- */
33
- length?: SensitiveTextLengthType | CustomLength;
34
- /**
35
- * The text content to display or hide.
36
- */
37
- children: React.ReactNode;
38
- } & TextProps;
10
+ export type SensitiveTextProps = SensitiveTextPropsShared & TextProps;
39
11
  //# sourceMappingURL=SensitiveText.types.d.mts.map