@metamask/design-system-react-native 0.27.0 → 0.29.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 (214) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/dist/components/AvatarBase/AvatarBase.cjs +1 -1
  3. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  4. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  5. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  6. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +2 -2
  7. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  8. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  9. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  10. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +2 -2
  11. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  12. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +2 -2
  13. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  14. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +2 -2
  15. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  16. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +3 -4
  17. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  18. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  19. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  20. package/dist/components/AvatarNetwork/AvatarNetwork.mjs +3 -4
  21. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  22. package/dist/components/AvatarNetwork/index.cjs +2 -2
  23. package/dist/components/AvatarNetwork/index.cjs.map +1 -1
  24. package/dist/components/AvatarNetwork/index.d.cts +1 -1
  25. package/dist/components/AvatarNetwork/index.d.cts.map +1 -1
  26. package/dist/components/AvatarNetwork/index.d.mts +1 -1
  27. package/dist/components/AvatarNetwork/index.d.mts.map +1 -1
  28. package/dist/components/AvatarNetwork/index.mjs +1 -1
  29. package/dist/components/AvatarNetwork/index.mjs.map +1 -1
  30. package/dist/components/AvatarToken/AvatarToken.cjs +2 -2
  31. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  32. package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
  33. package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
  34. package/dist/components/AvatarToken/AvatarToken.mjs +2 -2
  35. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  36. package/dist/components/Content/Content.cjs +71 -0
  37. package/dist/components/Content/Content.cjs.map +1 -0
  38. package/dist/components/Content/Content.constants.cjs +9 -0
  39. package/dist/components/Content/Content.constants.cjs.map +1 -0
  40. package/dist/components/Content/Content.constants.d.cts +3 -0
  41. package/dist/components/Content/Content.constants.d.cts.map +1 -0
  42. package/dist/components/Content/Content.constants.d.mts +3 -0
  43. package/dist/components/Content/Content.constants.d.mts.map +1 -0
  44. package/dist/components/Content/Content.constants.mjs +6 -0
  45. package/dist/components/Content/Content.constants.mjs.map +1 -0
  46. package/dist/components/Content/Content.d.cts +4 -0
  47. package/dist/components/Content/Content.d.cts.map +1 -0
  48. package/dist/components/Content/Content.d.mts +4 -0
  49. package/dist/components/Content/Content.d.mts.map +1 -0
  50. package/dist/components/Content/Content.mjs +71 -0
  51. package/dist/components/Content/Content.mjs.map +1 -0
  52. package/dist/components/Content/Content.types.cjs +3 -0
  53. package/dist/components/Content/Content.types.cjs.map +1 -0
  54. package/dist/components/Content/Content.types.d.cts +31 -0
  55. package/dist/components/Content/Content.types.d.cts.map +1 -0
  56. package/dist/components/Content/Content.types.d.mts +31 -0
  57. package/dist/components/Content/Content.types.d.mts.map +1 -0
  58. package/dist/components/Content/Content.types.mjs +2 -0
  59. package/dist/components/Content/Content.types.mjs.map +1 -0
  60. package/dist/components/Content/index.cjs +8 -0
  61. package/dist/components/Content/index.cjs.map +1 -0
  62. package/dist/components/Content/index.d.cts +4 -0
  63. package/dist/components/Content/index.d.cts.map +1 -0
  64. package/dist/components/Content/index.d.mts +4 -0
  65. package/dist/components/Content/index.d.mts.map +1 -0
  66. package/dist/components/Content/index.mjs +3 -0
  67. package/dist/components/Content/index.mjs.map +1 -0
  68. package/dist/components/Icon/Icon.constants.cjs +6 -6
  69. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  70. package/dist/components/Icon/Icon.constants.d.cts +1 -1
  71. package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
  72. package/dist/components/Icon/Icon.constants.d.mts +1 -1
  73. package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
  74. package/dist/components/Icon/Icon.constants.mjs +1 -1
  75. package/dist/components/Icon/Icon.constants.mjs.map +1 -1
  76. package/dist/components/IconAlert/IconAlert.constants.cjs +1 -1
  77. package/dist/components/IconAlert/IconAlert.constants.cjs.map +1 -1
  78. package/dist/components/IconAlert/IconAlert.constants.mjs +1 -1
  79. package/dist/components/IconAlert/IconAlert.constants.mjs.map +1 -1
  80. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +2 -3
  81. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
  82. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
  83. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
  84. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +1 -2
  85. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
  86. package/dist/components/KeyValueRow/KeyValueRow.cjs +2 -3
  87. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  88. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  89. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  90. package/dist/components/KeyValueRow/KeyValueRow.mjs +1 -2
  91. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  92. package/dist/components/ListItem/ListItem.cjs +26 -48
  93. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  94. package/dist/components/ListItem/ListItem.d.cts.map +1 -1
  95. package/dist/components/ListItem/ListItem.d.mts.map +1 -1
  96. package/dist/components/ListItem/ListItem.mjs +26 -28
  97. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  98. package/dist/components/ListItem/ListItem.types.cjs +0 -9
  99. package/dist/components/ListItem/ListItem.types.cjs.map +1 -1
  100. package/dist/components/ListItem/ListItem.types.d.cts +13 -55
  101. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
  102. package/dist/components/ListItem/ListItem.types.d.mts +13 -55
  103. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
  104. package/dist/components/ListItem/ListItem.types.mjs +1 -8
  105. package/dist/components/ListItem/ListItem.types.mjs.map +1 -1
  106. package/dist/components/ListItem/index.cjs +1 -3
  107. package/dist/components/ListItem/index.cjs.map +1 -1
  108. package/dist/components/ListItem/index.d.cts +0 -1
  109. package/dist/components/ListItem/index.d.cts.map +1 -1
  110. package/dist/components/ListItem/index.d.mts +0 -1
  111. package/dist/components/ListItem/index.d.mts.map +1 -1
  112. package/dist/components/ListItem/index.mjs +0 -1
  113. package/dist/components/ListItem/index.mjs.map +1 -1
  114. package/dist/components/SectionHeader/SectionHeader.cjs +47 -24
  115. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
  116. package/dist/components/SectionHeader/SectionHeader.d.cts +16 -13
  117. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
  118. package/dist/components/SectionHeader/SectionHeader.d.mts +16 -13
  119. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
  120. package/dist/components/SectionHeader/SectionHeader.mjs +48 -25
  121. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
  122. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -1
  123. package/dist/components/SectionHeader/SectionHeader.types.d.cts +16 -9
  124. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -1
  125. package/dist/components/SectionHeader/SectionHeader.types.d.mts +16 -9
  126. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -1
  127. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -1
  128. package/dist/components/SelectButton/SelectButton.constants.cjs +4 -5
  129. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -1
  130. package/dist/components/SelectButton/SelectButton.constants.d.cts +1 -2
  131. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -1
  132. package/dist/components/SelectButton/SelectButton.constants.d.mts +1 -2
  133. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -1
  134. package/dist/components/SelectButton/SelectButton.constants.mjs +1 -2
  135. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -1
  136. package/dist/components/Tag/Tag.constants.cjs +3 -3
  137. package/dist/components/Tag/Tag.constants.cjs.map +1 -1
  138. package/dist/components/Tag/Tag.constants.mjs +3 -3
  139. package/dist/components/Tag/Tag.constants.mjs.map +1 -1
  140. package/dist/components/TextArea/TextArea.cjs +3 -7
  141. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  142. package/dist/components/TextArea/TextArea.d.cts +158 -163
  143. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  144. package/dist/components/TextArea/TextArea.d.mts +158 -163
  145. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  146. package/dist/components/TextArea/TextArea.mjs +4 -8
  147. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  148. package/dist/components/TextArea/TextArea.types.cjs.map +1 -1
  149. package/dist/components/TextArea/TextArea.types.d.cts +12 -45
  150. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -1
  151. package/dist/components/TextArea/TextArea.types.d.mts +12 -45
  152. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -1
  153. package/dist/components/TextArea/TextArea.types.mjs.map +1 -1
  154. package/dist/components/TextButton/TextButton.types.cjs.map +1 -1
  155. package/dist/components/TextButton/TextButton.types.d.cts +2 -5
  156. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  157. package/dist/components/TextButton/TextButton.types.d.mts +2 -5
  158. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  159. package/dist/components/TextButton/TextButton.types.mjs.map +1 -1
  160. package/dist/components/Toast/Toast.constants.cjs +5 -8
  161. package/dist/components/Toast/Toast.constants.cjs.map +1 -1
  162. package/dist/components/Toast/Toast.constants.d.cts +2 -7
  163. package/dist/components/Toast/Toast.constants.d.cts.map +1 -1
  164. package/dist/components/Toast/Toast.constants.d.mts +2 -7
  165. package/dist/components/Toast/Toast.constants.d.mts.map +1 -1
  166. package/dist/components/Toast/Toast.constants.mjs +2 -7
  167. package/dist/components/Toast/Toast.constants.mjs.map +1 -1
  168. package/dist/components/Toast/Toast.types.cjs +2 -10
  169. package/dist/components/Toast/Toast.types.cjs.map +1 -1
  170. package/dist/components/Toast/Toast.types.d.cts +4 -11
  171. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  172. package/dist/components/Toast/Toast.types.d.mts +4 -11
  173. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  174. package/dist/components/Toast/Toast.types.mjs +2 -10
  175. package/dist/components/Toast/Toast.types.mjs.map +1 -1
  176. package/dist/components/Toast/index.cjs +3 -5
  177. package/dist/components/Toast/index.cjs.map +1 -1
  178. package/dist/components/Toast/index.d.cts +2 -2
  179. package/dist/components/Toast/index.d.cts.map +1 -1
  180. package/dist/components/Toast/index.d.mts +2 -2
  181. package/dist/components/Toast/index.d.mts.map +1 -1
  182. package/dist/components/Toast/index.mjs +2 -2
  183. package/dist/components/Toast/index.mjs.map +1 -1
  184. package/dist/components/index.cjs +6 -4
  185. package/dist/components/index.cjs.map +1 -1
  186. package/dist/components/index.d.cts +3 -1
  187. package/dist/components/index.d.cts.map +1 -1
  188. package/dist/components/index.d.mts +3 -1
  189. package/dist/components/index.d.mts.map +1 -1
  190. package/dist/components/index.mjs +2 -1
  191. package/dist/components/index.mjs.map +1 -1
  192. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.cjs.map +1 -1
  193. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +2 -2
  194. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  195. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +2 -2
  196. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  197. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.mjs.map +1 -1
  198. package/package.json +8 -8
  199. package/dist/components/ListItem/ListItem.constants.cjs +0 -14
  200. package/dist/components/ListItem/ListItem.constants.cjs.map +0 -1
  201. package/dist/components/ListItem/ListItem.constants.d.cts +0 -8
  202. package/dist/components/ListItem/ListItem.constants.d.cts.map +0 -1
  203. package/dist/components/ListItem/ListItem.constants.d.mts +0 -8
  204. package/dist/components/ListItem/ListItem.constants.d.mts.map +0 -1
  205. package/dist/components/ListItem/ListItem.constants.mjs +0 -11
  206. package/dist/components/ListItem/ListItem.constants.mjs.map +0 -1
  207. package/dist/types/index.cjs +0 -18
  208. package/dist/types/index.cjs.map +0 -1
  209. package/dist/types/index.d.cts +0 -8
  210. package/dist/types/index.d.cts.map +0 -1
  211. package/dist/types/index.d.mts +0 -8
  212. package/dist/types/index.d.mts.map +0 -1
  213. package/dist/types/index.mjs +0 -8
  214. package/dist/types/index.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.constants.cjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":";;;AAAA,yEAKwC;AAE3B,QAAA,2BAA2B,GAGpC;IACF,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,eAAe;IACzD,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,YAAY;IACtD,CAAC,kCAAW,CAAC,KAAK,CAAC,EAAE,yCAAkB,CAAC,UAAU;IAClD,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,YAAY;IACtD,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,yCAAkB,CAAC,SAAS;CACjD,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,WAAW;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,KAAK,CAAC,EAAE,gCAAS,CAAC,YAAY;IAC3C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,gCAAS,CAAC,WAAW;CAC1C,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,WAAW;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,KAAK,CAAC,EAAE,gCAAS,CAAC,YAAY;IAC3C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,gCAAS,CAAC,WAAW;CAC1C,CAAC","sourcesContent":["import {\n BoxBackgroundColor,\n IconColor,\n TagSeverity,\n TextColor,\n} from '@metamask/design-system-shared';\n\nexport const MAP_TAG_SEVERITY_BACKGROUND: Record<\n TagSeverity,\n BoxBackgroundColor\n> = {\n [TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,\n [TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,\n [TagSeverity.Error]: BoxBackgroundColor.ErrorMuted,\n [TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,\n [TagSeverity.Info]: BoxBackgroundColor.InfoMuted,\n};\n\nexport const MAP_TAG_SEVERITY_TEXT_COLOR: Record<TagSeverity, TextColor> = {\n [TagSeverity.Neutral]: TextColor.TextDefault,\n [TagSeverity.Success]: TextColor.SuccessDefault,\n [TagSeverity.Error]: TextColor.ErrorDefault,\n [TagSeverity.Warning]: TextColor.WarningDefault,\n [TagSeverity.Info]: TextColor.InfoDefault,\n};\n\nexport const MAP_TAG_SEVERITY_ICON_COLOR: Record<TagSeverity, IconColor> = {\n [TagSeverity.Neutral]: IconColor.IconDefault,\n [TagSeverity.Success]: IconColor.SuccessDefault,\n [TagSeverity.Error]: IconColor.ErrorDefault,\n [TagSeverity.Warning]: IconColor.WarningDefault,\n [TagSeverity.Info]: IconColor.InfoDefault,\n};\n"]}
1
+ {"version":3,"file":"Tag.constants.cjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":";;;AAAA,yEAKwC;AAE3B,QAAA,2BAA2B,GAGpC;IACF,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,eAAe;IACzD,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,YAAY;IACtD,CAAC,kCAAW,CAAC,MAAM,CAAC,EAAE,yCAAkB,CAAC,UAAU;IACnD,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,YAAY;IACtD,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,yCAAkB,CAAC,SAAS;CACjD,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,WAAW;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,MAAM,CAAC,EAAE,gCAAS,CAAC,YAAY;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,gCAAS,CAAC,WAAW;CAC1C,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,WAAW;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,MAAM,CAAC,EAAE,gCAAS,CAAC,YAAY;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,gCAAS,CAAC,WAAW;CAC1C,CAAC","sourcesContent":["import {\n BoxBackgroundColor,\n IconColor,\n TagSeverity,\n TextColor,\n} from '@metamask/design-system-shared';\n\nexport const MAP_TAG_SEVERITY_BACKGROUND: Record<\n TagSeverity,\n BoxBackgroundColor\n> = {\n [TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,\n [TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,\n [TagSeverity.Danger]: BoxBackgroundColor.ErrorMuted,\n [TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,\n [TagSeverity.Info]: BoxBackgroundColor.InfoMuted,\n};\n\nexport const MAP_TAG_SEVERITY_TEXT_COLOR: Record<TagSeverity, TextColor> = {\n [TagSeverity.Neutral]: TextColor.TextDefault,\n [TagSeverity.Success]: TextColor.SuccessDefault,\n [TagSeverity.Danger]: TextColor.ErrorDefault,\n [TagSeverity.Warning]: TextColor.WarningDefault,\n [TagSeverity.Info]: TextColor.InfoDefault,\n};\n\nexport const MAP_TAG_SEVERITY_ICON_COLOR: Record<TagSeverity, IconColor> = {\n [TagSeverity.Neutral]: IconColor.IconDefault,\n [TagSeverity.Success]: IconColor.SuccessDefault,\n [TagSeverity.Danger]: IconColor.ErrorDefault,\n [TagSeverity.Warning]: IconColor.WarningDefault,\n [TagSeverity.Info]: IconColor.InfoDefault,\n};\n"]}
@@ -2,21 +2,21 @@ import { BoxBackgroundColor, IconColor, TagSeverity, TextColor } from "@metamask
2
2
  export const MAP_TAG_SEVERITY_BACKGROUND = {
3
3
  [TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,
4
4
  [TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,
5
- [TagSeverity.Error]: BoxBackgroundColor.ErrorMuted,
5
+ [TagSeverity.Danger]: BoxBackgroundColor.ErrorMuted,
6
6
  [TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,
7
7
  [TagSeverity.Info]: BoxBackgroundColor.InfoMuted,
8
8
  };
9
9
  export const MAP_TAG_SEVERITY_TEXT_COLOR = {
10
10
  [TagSeverity.Neutral]: TextColor.TextDefault,
11
11
  [TagSeverity.Success]: TextColor.SuccessDefault,
12
- [TagSeverity.Error]: TextColor.ErrorDefault,
12
+ [TagSeverity.Danger]: TextColor.ErrorDefault,
13
13
  [TagSeverity.Warning]: TextColor.WarningDefault,
14
14
  [TagSeverity.Info]: TextColor.InfoDefault,
15
15
  };
16
16
  export const MAP_TAG_SEVERITY_ICON_COLOR = {
17
17
  [TagSeverity.Neutral]: IconColor.IconDefault,
18
18
  [TagSeverity.Success]: IconColor.SuccessDefault,
19
- [TagSeverity.Error]: IconColor.ErrorDefault,
19
+ [TagSeverity.Danger]: IconColor.ErrorDefault,
20
20
  [TagSeverity.Warning]: IconColor.WarningDefault,
21
21
  [TagSeverity.Info]: IconColor.InfoDefault,
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.constants.mjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,SAAS,EACV,uCAAuC;AAExC,MAAM,CAAC,MAAM,2BAA2B,GAGpC;IACF,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,eAAe;IACzD,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,YAAY;IACtD,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,UAAU;IAClD,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,YAAY;IACtD,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,SAAS;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY;IAC3C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY;IAC3C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW;CAC1C,CAAC","sourcesContent":["import {\n BoxBackgroundColor,\n IconColor,\n TagSeverity,\n TextColor,\n} from '@metamask/design-system-shared';\n\nexport const MAP_TAG_SEVERITY_BACKGROUND: Record<\n TagSeverity,\n BoxBackgroundColor\n> = {\n [TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,\n [TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,\n [TagSeverity.Error]: BoxBackgroundColor.ErrorMuted,\n [TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,\n [TagSeverity.Info]: BoxBackgroundColor.InfoMuted,\n};\n\nexport const MAP_TAG_SEVERITY_TEXT_COLOR: Record<TagSeverity, TextColor> = {\n [TagSeverity.Neutral]: TextColor.TextDefault,\n [TagSeverity.Success]: TextColor.SuccessDefault,\n [TagSeverity.Error]: TextColor.ErrorDefault,\n [TagSeverity.Warning]: TextColor.WarningDefault,\n [TagSeverity.Info]: TextColor.InfoDefault,\n};\n\nexport const MAP_TAG_SEVERITY_ICON_COLOR: Record<TagSeverity, IconColor> = {\n [TagSeverity.Neutral]: IconColor.IconDefault,\n [TagSeverity.Success]: IconColor.SuccessDefault,\n [TagSeverity.Error]: IconColor.ErrorDefault,\n [TagSeverity.Warning]: IconColor.WarningDefault,\n [TagSeverity.Info]: IconColor.InfoDefault,\n};\n"]}
1
+ {"version":3,"file":"Tag.constants.mjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,SAAS,EACV,uCAAuC;AAExC,MAAM,CAAC,MAAM,2BAA2B,GAGpC;IACF,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,eAAe;IACzD,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,YAAY;IACtD,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC,UAAU;IACnD,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,YAAY;IACtD,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,SAAS;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,YAAY;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,YAAY;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW;CAC1C,CAAC","sourcesContent":["import {\n BoxBackgroundColor,\n IconColor,\n TagSeverity,\n TextColor,\n} from '@metamask/design-system-shared';\n\nexport const MAP_TAG_SEVERITY_BACKGROUND: Record<\n TagSeverity,\n BoxBackgroundColor\n> = {\n [TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,\n [TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,\n [TagSeverity.Danger]: BoxBackgroundColor.ErrorMuted,\n [TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,\n [TagSeverity.Info]: BoxBackgroundColor.InfoMuted,\n};\n\nexport const MAP_TAG_SEVERITY_TEXT_COLOR: Record<TagSeverity, TextColor> = {\n [TagSeverity.Neutral]: TextColor.TextDefault,\n [TagSeverity.Success]: TextColor.SuccessDefault,\n [TagSeverity.Danger]: TextColor.ErrorDefault,\n [TagSeverity.Warning]: TextColor.WarningDefault,\n [TagSeverity.Info]: TextColor.InfoDefault,\n};\n\nexport const MAP_TAG_SEVERITY_ICON_COLOR: Record<TagSeverity, IconColor> = {\n [TagSeverity.Neutral]: IconColor.IconDefault,\n [TagSeverity.Success]: IconColor.SuccessDefault,\n [TagSeverity.Danger]: IconColor.ErrorDefault,\n [TagSeverity.Warning]: IconColor.WarningDefault,\n [TagSeverity.Info]: IconColor.InfoDefault,\n};\n"]}
@@ -4,9 +4,8 @@ exports.TextArea = void 0;
4
4
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
5
5
  const react_1 = require("react");
6
6
  const react_native_1 = require("react-native");
7
- const Box_1 = require("../Box/index.cjs");
8
7
  const Input_1 = require("../Input/index.cjs");
9
- exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, inputProps, inputRef, isDisabled = false, isError = false, textVariant, inputElement, style, twClassName, testID, ...props }, ref) => {
8
+ exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, isDisabled = false, isError = false, textVariant, style, twClassName, testID, ...props }, ref) => {
10
9
  const [isFocused, setIsFocused] = (0, react_1.useState)(autoFocus);
11
10
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
12
11
  (0, react_1.useEffect)(() => {
@@ -14,7 +13,6 @@ exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder,
14
13
  setIsFocused(false);
15
14
  }
16
15
  }, [isDisabled, isReadOnly]);
17
- const { twClassName: inputTwClassNameFromProps, ...inputRestWithoutTwClassName } = inputProps ?? {};
18
16
  const onBlurHandler = (0, react_1.useCallback)((e) => {
19
17
  if (!isDisabled) {
20
18
  setIsFocused(false);
@@ -27,12 +25,10 @@ exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder,
27
25
  onFocus?.(e);
28
26
  }
29
27
  }, [isDisabled, onFocus]);
30
- return (<Box_1.Box ref={ref} {...props} testID={testID} accessible={false} style={[
28
+ return (<Input_1.Input ref={ref} {...props} testID={testID} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} textVariant={textVariant} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled multiline textAlignVertical="top" style={[
31
29
  tw.style('rounded-lg', 'min-h-24', 'border', 'px-4', 'py-3', 'bg-muted', isDisabled && 'border-muted', !isDisabled && isError && 'border-error-default', !isDisabled && !isError && isFocused && 'border-default', !isDisabled && !isError && !isFocused && 'border-muted', isDisabled && 'opacity-50', twClassName),
32
30
  style,
33
- ]}>
34
- {inputElement || (<Input_1.Input {...inputRestWithoutTwClassName} ref={inputRef} value={value} onChangeText={onChangeText} placeholder={placeholder} isReadOnly={isReadOnly} textVariant={textVariant} isDisabled={isDisabled} autoFocus={autoFocus} onBlur={onBlurHandler} onFocus={onFocusHandler} isStateStylesDisabled multiline textAlignVertical="top" twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''}`}/>)}
35
- </Box_1.Box>);
31
+ ]}/>);
36
32
  });
37
33
  exports.TextArea.displayName = 'TextArea';
38
34
  //# sourceMappingURL=TextArea.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";;;AAAA,qFAAmE;AACnE,iCAAqE;AACrE,+CAAoC;AAEpC,0CAA6B;AAC7B,8CAAiC;AAKpB,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAChC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,WAAW,EACX,YAAY,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,UAAU,EAAE;YAC5B,YAAY,CAAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,MAAM,EACJ,WAAW,EAAE,yBAAyB,EACtC,GAAG,2BAA2B,EAC/B,GAAG,UAAU,IAAI,EAAE,CAAC;IAErB,MAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,CAAC,CAAmD,EAAE,EAAE;QACtD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;SACb;IACH,CAAC,EACD,CAAC,UAAU,EAAE,MAAM,CAAC,CACrB,CAAC;IAEF,MAAM,cAAc,GAAG,IAAA,mBAAW,EAChC,CAAC,CAAoD,EAAE,EAAE;QACvD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;SACd;IACH,CAAC,EACD,CAAC,UAAU,EAAE,OAAO,CAAC,CACtB,CAAC;IAEF,OAAO,CACL,CAAC,SAAG,CACF,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,UAAU,CAAC,CAAC,KAAK,CAAC,CAClB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,IAAI,cAAc,EAC5B,CAAC,UAAU,IAAI,OAAO,IAAI,sBAAsB,EAChD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,SAAS,IAAI,gBAAgB,EACxD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,cAAc,EACvD,UAAU,IAAI,YAAY,EAC1B,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;QAAA,CAAC,YAAY,IAAI,CACf,CAAC,aAAK,CACJ,IAAI,2BAA2B,CAAC,CAChC,GAAG,CAAC,CAAC,QAAQ,CAAC,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,SAAS,CACT,iBAAiB,CAAC,KAAK,CACvB,WAAW,CAAC,CAAC,uEACX,yBAAyB,CAAC,CAAC,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAChE,EAAE,CAAC,EACH,CACH,CACH;MAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<View, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n textVariant,\n inputElement,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n />\n )}\n </Box>\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
1
+ {"version":3,"file":"TextArea.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";;;AAAA,qFAAmE;AACnE,iCAAqE;AACrE,+CAAyC;AAEzC,8CAAiC;AAKpB,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAChC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,WAAW,EACX,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,UAAU,EAAE;YAC5B,YAAY,CAAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,MAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,CAAC,CAAmD,EAAE,EAAE;QACtD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;SACb;IACH,CAAC,EACD,CAAC,UAAU,EAAE,MAAM,CAAC,CACrB,CAAC;IAEF,MAAM,cAAc,GAAG,IAAA,mBAAW,EAChC,CAAC,CAAoD,EAAE,EAAE;QACvD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;SACd;IACH,CAAC,EACD,CAAC,UAAU,EAAE,OAAO,CAAC,CACtB,CAAC;IAEF,OAAO,CACL,CAAC,aAAK,CACJ,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,SAAS,CACT,iBAAiB,CAAC,KAAK,CACvB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,IAAI,cAAc,EAC5B,CAAC,UAAU,IAAI,OAAO,IAAI,sBAAsB,EAChD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,SAAS,IAAI,gBAAgB,EACxD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,cAAc,EACvD,UAAU,IAAI,YAAY,EAC1B,WAAW,CACZ;YACD,KAAK;SACN,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { TextInput } from 'react-native';\n\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<TextInput, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n isDisabled = false,\n isError = false,\n textVariant,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Input\n ref={ref}\n {...props}\n testID={testID}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n />\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
@@ -1,170 +1,165 @@
1
- import { View } from "react-native";
1
+ import { TextInput } from "react-native";
2
2
  export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<import("@metamask/design-system-shared").InputPropsShared, "isStateStylesDisabled"> & {
3
3
  isError?: boolean | undefined;
4
- inputElement?: import("react").ReactNode;
4
+ } & {
5
+ children?: import("react").ReactNode;
6
+ hitSlop?: number | import("react-native").Insets | null | undefined;
7
+ id?: string | undefined;
8
+ needsOffscreenAlphaCompositing?: boolean | undefined;
9
+ onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
10
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
11
+ removeClippedSubviews?: boolean | undefined;
12
+ style?: import("react-native").StyleProp<import("react-native").TextStyle>;
13
+ testID?: string | undefined;
14
+ nativeID?: string | undefined;
15
+ collapsable?: boolean | undefined;
16
+ collapsableChildren?: boolean | undefined;
17
+ renderToHardwareTextureAndroid?: boolean | undefined;
18
+ focusable?: boolean | undefined;
19
+ tabIndex?: 0 | -1 | undefined;
20
+ shouldRasterizeIOS?: boolean | undefined;
21
+ isTVSelectable?: boolean | undefined;
22
+ hasTVPreferredFocus?: boolean | undefined;
23
+ tvParallaxShiftDistanceX?: number | undefined;
24
+ tvParallaxShiftDistanceY?: number | undefined;
25
+ tvParallaxTiltAngle?: number | undefined;
26
+ tvParallaxMagnification?: number | undefined;
27
+ onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
28
+ onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
29
+ onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
30
+ onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
31
+ onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
32
+ onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
33
+ onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
34
+ onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
35
+ onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
36
+ onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
37
+ onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
38
+ onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
39
+ onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
40
+ onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
41
+ onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
42
+ onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
43
+ onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
44
+ onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
45
+ onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
46
+ onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
47
+ onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
48
+ onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
49
+ onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
50
+ onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined;
51
+ onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
52
+ onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined;
53
+ onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
54
+ onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
55
+ onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
56
+ accessible?: boolean | undefined;
57
+ accessibilityActions?: readonly Readonly<{
58
+ name: string;
59
+ label?: string | undefined;
60
+ }>[] | undefined;
61
+ accessibilityLabel?: string | undefined;
62
+ 'aria-label'?: string | undefined;
63
+ accessibilityRole?: import("react-native").AccessibilityRole | undefined;
64
+ accessibilityState?: import("react-native").AccessibilityState | undefined;
65
+ 'aria-busy'?: boolean | undefined;
66
+ 'aria-checked'?: boolean | "mixed" | undefined;
67
+ 'aria-disabled'?: boolean | undefined;
68
+ 'aria-expanded'?: boolean | undefined;
69
+ 'aria-selected'?: boolean | undefined;
70
+ accessibilityHint?: string | undefined;
71
+ accessibilityValue?: import("react-native").AccessibilityValue | undefined;
72
+ 'aria-valuemax'?: number | undefined;
73
+ 'aria-valuemin'?: number | undefined;
74
+ 'aria-valuenow'?: number | undefined;
75
+ 'aria-valuetext'?: string | undefined;
76
+ onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
77
+ importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
78
+ 'aria-hidden'?: boolean | undefined;
79
+ 'aria-modal'?: boolean | undefined;
80
+ role?: import("react-native").Role | undefined;
81
+ accessibilityLabelledBy?: string | string[] | undefined;
82
+ 'aria-labelledby'?: string | undefined;
83
+ accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
84
+ 'aria-live'?: "polite" | "assertive" | "off" | undefined;
85
+ screenReaderFocusable?: boolean | undefined;
86
+ accessibilityElementsHidden?: boolean | undefined;
87
+ accessibilityViewIsModal?: boolean | undefined;
88
+ onAccessibilityEscape?: (() => void) | undefined;
89
+ onAccessibilityTap?: (() => void) | undefined;
90
+ onMagicTap?: (() => void) | undefined;
91
+ accessibilityIgnoresInvertColors?: boolean | undefined;
92
+ accessibilityLanguage?: string | undefined;
93
+ accessibilityShowsLargeContentViewer?: boolean | undefined;
94
+ accessibilityLargeContentTitle?: string | undefined;
95
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
96
+ twClassName?: string | undefined;
97
+ onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
98
+ onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
99
+ onPressOut?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
100
+ allowFontScaling?: boolean | undefined;
101
+ numberOfLines?: number | undefined;
102
+ maxFontSizeMultiplier?: number | null | undefined;
103
+ lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
104
+ selectionColor?: import("react-native").ColorValue | undefined;
105
+ textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
106
+ textAlign?: "center" | "left" | "right" | undefined;
107
+ textAlignVertical?: "auto" | "center" | "bottom" | "top" | undefined;
108
+ verticalAlign?: "auto" | "bottom" | "top" | "middle" | undefined;
109
+ rejectResponderTermination?: boolean | null | undefined;
110
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
111
+ autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
112
+ autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
113
+ autoCorrect?: boolean | undefined;
114
+ blurOnSubmit?: boolean | undefined;
115
+ submitBehavior?: import("react-native").SubmitBehavior | undefined;
116
+ caretHidden?: boolean | undefined;
117
+ contextMenuHidden?: boolean | undefined;
118
+ keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
119
+ inputMode?: import("react-native").InputModeOptions | undefined;
120
+ maxLength?: number | undefined;
121
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
122
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
123
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
124
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
125
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
126
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
127
+ readOnly?: boolean | undefined;
128
+ returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
129
+ enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
130
+ secureTextEntry?: boolean | undefined;
131
+ selectTextOnFocus?: boolean | undefined;
132
+ selection?: {
133
+ start: number;
134
+ end?: number | undefined;
135
+ } | undefined;
136
+ inputAccessoryViewID?: string | undefined;
137
+ inputAccessoryViewButtonLabel?: string | undefined;
138
+ disableKeyboardShortcuts?: boolean | undefined;
139
+ clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
140
+ clearTextOnFocus?: boolean | undefined;
141
+ dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
142
+ enablesReturnKeyAutomatically?: boolean | undefined;
143
+ keyboardAppearance?: "default" | "light" | "dark" | undefined;
144
+ passwordRules?: string | null | undefined;
145
+ selectionState?: import("react-native").DocumentSelectionState | undefined;
146
+ spellCheck?: boolean | undefined;
147
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
148
+ scrollEnabled?: boolean | undefined;
149
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
150
+ smartInsertDelete?: boolean | undefined;
151
+ cursorColor?: import("react-native").ColorValue | null | undefined;
152
+ selectionHandleColor?: import("react-native").ColorValue | null | undefined;
153
+ importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
154
+ disableFullscreenUI?: boolean | undefined;
155
+ inlineImageLeft?: string | undefined;
156
+ inlineImagePadding?: number | undefined;
157
+ returnKeyLabel?: string | undefined;
158
+ underlineColorAndroid?: import("react-native").ColorValue | undefined;
159
+ showSoftInputOnFocus?: boolean | undefined;
5
160
  } & {
6
161
  onChangeText?: ((text: string) => void) | undefined;
7
162
  onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
8
163
  onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
9
- inputProps?: {
10
- children?: import("react").ReactNode;
11
- hitSlop?: number | import("react-native").Insets | null | undefined;
12
- id?: string | undefined;
13
- needsOffscreenAlphaCompositing?: boolean | undefined;
14
- onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
15
- pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
16
- removeClippedSubviews?: boolean | undefined;
17
- testID?: string | undefined;
18
- nativeID?: string | undefined;
19
- collapsable?: boolean | undefined;
20
- collapsableChildren?: boolean | undefined;
21
- renderToHardwareTextureAndroid?: boolean | undefined;
22
- focusable?: boolean | undefined;
23
- tabIndex?: 0 | -1 | undefined;
24
- shouldRasterizeIOS?: boolean | undefined;
25
- isTVSelectable?: boolean | undefined;
26
- hasTVPreferredFocus?: boolean | undefined;
27
- tvParallaxShiftDistanceX?: number | undefined;
28
- tvParallaxShiftDistanceY?: number | undefined;
29
- tvParallaxTiltAngle?: number | undefined;
30
- tvParallaxMagnification?: number | undefined;
31
- onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
32
- onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
33
- onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
34
- onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
35
- onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
36
- onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
37
- onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
38
- onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
39
- onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
40
- onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
41
- onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
42
- onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
43
- onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
44
- onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
45
- onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
46
- onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
47
- onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
48
- onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
49
- onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
50
- onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
51
- onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
52
- onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
53
- onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
54
- onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined;
55
- onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
56
- onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined;
57
- onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
58
- onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
59
- onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
60
- accessible?: boolean | undefined;
61
- accessibilityActions?: readonly Readonly<{
62
- name: string;
63
- label?: string | undefined;
64
- }>[] | undefined;
65
- accessibilityLabel?: string | undefined;
66
- 'aria-label'?: string | undefined;
67
- accessibilityRole?: import("react-native").AccessibilityRole | undefined;
68
- accessibilityState?: import("react-native").AccessibilityState | undefined;
69
- 'aria-busy'?: boolean | undefined;
70
- 'aria-checked'?: boolean | "mixed" | undefined;
71
- 'aria-disabled'?: boolean | undefined;
72
- 'aria-expanded'?: boolean | undefined;
73
- 'aria-selected'?: boolean | undefined;
74
- accessibilityHint?: string | undefined;
75
- accessibilityValue?: import("react-native").AccessibilityValue | undefined;
76
- 'aria-valuemax'?: number | undefined;
77
- 'aria-valuemin'?: number | undefined;
78
- 'aria-valuenow'?: number | undefined;
79
- 'aria-valuetext'?: string | undefined;
80
- onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
81
- importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
82
- 'aria-hidden'?: boolean | undefined;
83
- 'aria-modal'?: boolean | undefined;
84
- role?: import("react-native").Role | undefined;
85
- accessibilityLabelledBy?: string | string[] | undefined;
86
- 'aria-labelledby'?: string | undefined;
87
- accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
88
- 'aria-live'?: "polite" | "assertive" | "off" | undefined;
89
- screenReaderFocusable?: boolean | undefined;
90
- accessibilityElementsHidden?: boolean | undefined;
91
- accessibilityViewIsModal?: boolean | undefined;
92
- onAccessibilityEscape?: (() => void) | undefined;
93
- onAccessibilityTap?: (() => void) | undefined;
94
- onMagicTap?: (() => void) | undefined;
95
- accessibilityIgnoresInvertColors?: boolean | undefined;
96
- accessibilityLanguage?: string | undefined;
97
- accessibilityShowsLargeContentViewer?: boolean | undefined;
98
- accessibilityLargeContentTitle?: string | undefined;
99
- accessibilityRespondsToUserInteraction?: boolean | undefined;
100
- twClassName?: string | undefined;
101
- onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
102
- onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
103
- onPressOut?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
104
- allowFontScaling?: boolean | undefined;
105
- numberOfLines?: number | undefined;
106
- maxFontSizeMultiplier?: number | null | undefined;
107
- lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
108
- selectionColor?: import("react-native").ColorValue | undefined;
109
- textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
110
- textAlign?: "center" | "left" | "right" | undefined;
111
- textAlignVertical?: "auto" | "center" | "bottom" | "top" | undefined;
112
- verticalAlign?: "auto" | "bottom" | "top" | "middle" | undefined;
113
- rejectResponderTermination?: boolean | null | undefined;
114
- onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
115
- autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
116
- autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
117
- autoCorrect?: boolean | undefined;
118
- blurOnSubmit?: boolean | undefined;
119
- submitBehavior?: import("react-native").SubmitBehavior | undefined;
120
- caretHidden?: boolean | undefined;
121
- contextMenuHidden?: boolean | undefined;
122
- keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
123
- inputMode?: import("react-native").InputModeOptions | undefined;
124
- maxLength?: number | undefined;
125
- onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
126
- onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
127
- onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
128
- onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
129
- onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
130
- onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
131
- readOnly?: boolean | undefined;
132
- returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
133
- enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
134
- secureTextEntry?: boolean | undefined;
135
- selectTextOnFocus?: boolean | undefined;
136
- selection?: {
137
- start: number;
138
- end?: number | undefined;
139
- } | undefined;
140
- inputAccessoryViewID?: string | undefined;
141
- inputAccessoryViewButtonLabel?: string | undefined;
142
- disableKeyboardShortcuts?: boolean | undefined;
143
- clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
144
- clearTextOnFocus?: boolean | undefined;
145
- dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
146
- enablesReturnKeyAutomatically?: boolean | undefined;
147
- keyboardAppearance?: "default" | "light" | "dark" | undefined;
148
- passwordRules?: string | null | undefined;
149
- selectionState?: import("react-native").DocumentSelectionState | undefined;
150
- spellCheck?: boolean | undefined;
151
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
152
- scrollEnabled?: boolean | undefined;
153
- lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
154
- smartInsertDelete?: boolean | undefined;
155
- cursorColor?: import("react-native").ColorValue | null | undefined;
156
- selectionHandleColor?: import("react-native").ColorValue | null | undefined;
157
- importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
158
- disableFullscreenUI?: boolean | undefined;
159
- inlineImageLeft?: string | undefined;
160
- inlineImagePadding?: number | undefined;
161
- returnKeyLabel?: string | undefined;
162
- underlineColorAndroid?: import("react-native").ColorValue | undefined;
163
- showSoftInputOnFocus?: boolean | undefined;
164
- } | undefined;
165
- inputRef?: import("react").Ref<import("react-native").TextInput> | undefined;
166
- twClassName?: string | undefined;
167
- style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
168
- testID?: string | undefined;
169
- } & Omit<import("../Box/index.cjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "textVariant" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
164
+ } & import("react").RefAttributes<TextInput>>;
170
165
  //# sourceMappingURL=TextArea.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.cts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAQpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iUAyGpB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.cts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,qBAAqB;AAOzC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAsFpB,CAAC"}