@metamask-previews/design-system-react-native 0.5.1-preview.ab80aae → 0.6.0-preview.3dc70e1

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 (210) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/components/AvatarBase/AvatarBase.cjs +9 -11
  3. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  4. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  5. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  6. package/dist/components/AvatarBase/AvatarBase.mjs +9 -11
  7. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  8. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +2 -2
  9. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  10. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts +1 -1
  11. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  12. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts +1 -1
  13. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  14. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +2 -2
  15. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  16. package/dist/components/AvatarGroup/AvatarGroup.cjs +4 -5
  17. package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
  18. package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
  19. package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
  20. package/dist/components/AvatarGroup/AvatarGroup.mjs +4 -5
  21. package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
  22. package/dist/components/AvatarGroup/AvatarGroup.types.cjs.map +1 -1
  23. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts +5 -5
  24. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts.map +1 -1
  25. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts +5 -5
  26. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts.map +1 -1
  27. package/dist/components/AvatarGroup/AvatarGroup.types.mjs.map +1 -1
  28. package/dist/components/AvatarIcon/AvatarIcon.cjs +5 -6
  29. package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
  30. package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
  31. package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
  32. package/dist/components/AvatarIcon/AvatarIcon.mjs +5 -6
  33. package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
  34. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +2 -2
  35. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  36. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts +1 -1
  37. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  38. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts +1 -1
  39. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  40. package/dist/components/AvatarNetwork/AvatarNetwork.mjs +2 -2
  41. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  42. package/dist/components/AvatarToken/AvatarToken.cjs +2 -2
  43. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  44. package/dist/components/AvatarToken/AvatarToken.d.cts +1 -1
  45. package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
  46. package/dist/components/AvatarToken/AvatarToken.d.mts +1 -1
  47. package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
  48. package/dist/components/AvatarToken/AvatarToken.mjs +2 -2
  49. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  50. package/dist/components/BadgeCount/BadgeCount.cjs +5 -10
  51. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  52. package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
  53. package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
  54. package/dist/components/BadgeCount/BadgeCount.mjs +5 -10
  55. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  56. package/dist/components/BadgeIcon/BadgeIcon.cjs +5 -10
  57. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  58. package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
  59. package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
  60. package/dist/components/BadgeIcon/BadgeIcon.mjs +5 -10
  61. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  62. package/dist/components/BadgeStatus/BadgeStatus.cjs +6 -6
  63. package/dist/components/BadgeStatus/BadgeStatus.cjs.map +1 -1
  64. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs +8 -8
  65. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs.map +1 -1
  66. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts +1 -1
  67. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts.map +1 -1
  68. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts +1 -1
  69. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts.map +1 -1
  70. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs +1 -1
  71. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs.map +1 -1
  72. package/dist/components/BadgeStatus/BadgeStatus.d.cts.map +1 -1
  73. package/dist/components/BadgeStatus/BadgeStatus.d.mts.map +1 -1
  74. package/dist/components/BadgeStatus/BadgeStatus.mjs +6 -6
  75. package/dist/components/BadgeStatus/BadgeStatus.mjs.map +1 -1
  76. package/dist/components/BadgeStatus/BadgeStatus.types.cjs.map +1 -1
  77. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +5 -29
  78. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  79. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +5 -29
  80. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  81. package/dist/components/BadgeStatus/BadgeStatus.types.mjs.map +1 -1
  82. package/dist/components/BadgeStatus/index.cjs +4 -4
  83. package/dist/components/BadgeStatus/index.cjs.map +1 -1
  84. package/dist/components/BadgeStatus/index.d.cts +1 -1
  85. package/dist/components/BadgeStatus/index.d.cts.map +1 -1
  86. package/dist/components/BadgeStatus/index.d.mts +1 -1
  87. package/dist/components/BadgeStatus/index.d.mts.map +1 -1
  88. package/dist/components/BadgeStatus/index.mjs +1 -1
  89. package/dist/components/BadgeStatus/index.mjs.map +1 -1
  90. package/dist/components/BadgeWrapper/BadgeWrapper.cjs +3 -3
  91. package/dist/components/BadgeWrapper/BadgeWrapper.cjs.map +1 -1
  92. package/dist/components/BadgeWrapper/BadgeWrapper.d.cts.map +1 -1
  93. package/dist/components/BadgeWrapper/BadgeWrapper.d.mts.map +1 -1
  94. package/dist/components/BadgeWrapper/BadgeWrapper.mjs +3 -3
  95. package/dist/components/BadgeWrapper/BadgeWrapper.mjs.map +1 -1
  96. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +51 -0
  97. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -0
  98. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.cjs +7 -0
  99. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.cjs.map +1 -0
  100. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.cts +3 -0
  101. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.cts.map +1 -0
  102. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.mts +3 -0
  103. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.mts.map +1 -0
  104. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.mjs +4 -0
  105. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.mjs.map +1 -0
  106. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts +4 -0
  107. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts.map +1 -0
  108. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts +4 -0
  109. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts.map +1 -0
  110. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs +31 -0
  111. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs.map +1 -0
  112. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.cjs +3 -0
  113. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.cjs.map +1 -0
  114. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts +20 -0
  115. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts.map +1 -0
  116. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts +20 -0
  117. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts.map +1 -0
  118. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.mjs +2 -0
  119. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.mjs.map +1 -0
  120. package/dist/components/BottomSheetOverlay/index.cjs +6 -0
  121. package/dist/components/BottomSheetOverlay/index.cjs.map +1 -0
  122. package/dist/components/BottomSheetOverlay/index.d.cts +3 -0
  123. package/dist/components/BottomSheetOverlay/index.d.cts.map +1 -0
  124. package/dist/components/BottomSheetOverlay/index.d.mts +3 -0
  125. package/dist/components/BottomSheetOverlay/index.d.mts.map +1 -0
  126. package/dist/components/BottomSheetOverlay/index.mjs +2 -0
  127. package/dist/components/BottomSheetOverlay/index.mjs.map +1 -0
  128. package/dist/components/Box/Box.cjs +12 -27
  129. package/dist/components/Box/Box.cjs.map +1 -1
  130. package/dist/components/Box/Box.d.cts.map +1 -1
  131. package/dist/components/Box/Box.d.mts.map +1 -1
  132. package/dist/components/Box/Box.mjs +12 -27
  133. package/dist/components/Box/Box.mjs.map +1 -1
  134. package/dist/components/ButtonBase/ButtonBase.cjs +50 -41
  135. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  136. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  137. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  138. package/dist/components/ButtonBase/ButtonBase.mjs +50 -41
  139. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  140. package/dist/components/ButtonIcon/ButtonIcon.cjs +5 -10
  141. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  142. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  143. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  144. package/dist/components/ButtonIcon/ButtonIcon.mjs +5 -10
  145. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  146. package/dist/components/Checkbox/Checkbox.cjs +4 -4
  147. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  148. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  149. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  150. package/dist/components/Checkbox/Checkbox.mjs +4 -4
  151. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  152. package/dist/components/Icon/Icon.cjs +4 -32
  153. package/dist/components/Icon/Icon.cjs.map +1 -1
  154. package/dist/components/Icon/Icon.d.cts.map +1 -1
  155. package/dist/components/Icon/Icon.d.mts.map +1 -1
  156. package/dist/components/Icon/Icon.mjs +2 -10
  157. package/dist/components/Icon/Icon.mjs.map +1 -1
  158. package/dist/components/Text/Text.cjs +9 -14
  159. package/dist/components/Text/Text.cjs.map +1 -1
  160. package/dist/components/Text/Text.d.cts.map +1 -1
  161. package/dist/components/Text/Text.d.mts.map +1 -1
  162. package/dist/components/Text/Text.mjs +10 -15
  163. package/dist/components/Text/Text.mjs.map +1 -1
  164. package/dist/components/index.cjs +4 -2
  165. package/dist/components/index.cjs.map +1 -1
  166. package/dist/components/index.d.cts +2 -0
  167. package/dist/components/index.d.cts.map +1 -1
  168. package/dist/components/index.d.mts +2 -0
  169. package/dist/components/index.d.mts.map +1 -1
  170. package/dist/components/index.mjs +1 -0
  171. package/dist/components/index.mjs.map +1 -1
  172. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +17 -9
  173. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
  174. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts +1 -1
  175. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts.map +1 -1
  176. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts +1 -1
  177. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts.map +1 -1
  178. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs +17 -6
  179. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs.map +1 -1
  180. package/dist/components/temp-components/Spinner/Spinner.cjs +2 -2
  181. package/dist/components/temp-components/Spinner/Spinner.cjs.map +1 -1
  182. package/dist/components/temp-components/Spinner/Spinner.d.cts.map +1 -1
  183. package/dist/components/temp-components/Spinner/Spinner.d.mts.map +1 -1
  184. package/dist/components/temp-components/Spinner/Spinner.mjs +2 -2
  185. package/dist/components/temp-components/Spinner/Spinner.mjs.map +1 -1
  186. package/dist/types/index.cjs +337 -265
  187. package/dist/types/index.cjs.map +1 -1
  188. package/dist/types/index.d.cts +235 -285
  189. package/dist/types/index.d.cts.map +1 -1
  190. package/dist/types/index.d.mts +235 -285
  191. package/dist/types/index.d.mts.map +1 -1
  192. package/dist/types/index.mjs +336 -252
  193. package/dist/types/index.mjs.map +1 -1
  194. package/package.json +13 -9
  195. package/dist/components/Icon/Icon.utilities.cjs +0 -31
  196. package/dist/components/Icon/Icon.utilities.cjs.map +0 -1
  197. package/dist/components/Icon/Icon.utilities.d.cts +0 -22
  198. package/dist/components/Icon/Icon.utilities.d.cts.map +0 -1
  199. package/dist/components/Icon/Icon.utilities.d.mts +0 -22
  200. package/dist/components/Icon/Icon.utilities.d.mts.map +0 -1
  201. package/dist/components/Icon/Icon.utilities.mjs +0 -27
  202. package/dist/components/Icon/Icon.utilities.mjs.map +0 -1
  203. package/dist/components/Text/Text.utilities.cjs +0 -46
  204. package/dist/components/Text/Text.utilities.cjs.map +0 -1
  205. package/dist/components/Text/Text.utilities.d.cts +0 -32
  206. package/dist/components/Text/Text.utilities.d.cts.map +0 -1
  207. package/dist/components/Text/Text.utilities.d.mts +0 -32
  208. package/dist/components/Text/Text.utilities.d.mts.map +0 -1
  209. package/dist/components/Text/Text.utilities.mjs +0 -42
  210. package/dist/components/Text/Text.utilities.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,kCAAwB;AACzB,YAAY,EAAE,kBAAkB,EAAE,kCAAwB;AAE1D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,+BAAqB;AAC3E,YAAY,EAAE,eAAe,EAAE,+BAAqB;AAEpD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AACnE,YAAY,EAAE,kBAAkB,EAAE,kCAAwB;AAE1D,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,GACnB,gCAAsB;AACvB,YAAY,EAAE,gBAAgB,EAAE,gCAAsB;AAEtD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,+BAAqB;AAC9E,YAAY,EAAE,eAAe,EAAE,+BAAqB;AAEpD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AACnE,YAAY,EAAE,kBAAkB,EAAE,kCAAwB;AAE1D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gCAAsB;AAC7D,YAAY,EAAE,gBAAgB,EAAE,gCAAsB;AAEtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAC1D,YAAY,EAAE,e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AO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,yBAAe;AAC7D,YAAY,EAAE,SAAS,EAAE,yBAAe;AAExC,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AACtD,YAAY,EAAE,aAAa,EAAE,6CAAmC;AAEhE,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AACtD,YAAY,EAAE,aAAa,EAAE,6CAAmC;AAEhE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAC1D,YAAY,EAAE,eAAe,EAAE,+BAAqB;AAEpD,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,GACZ,yBAAe;AAChB,YAAY,EAAE,SAAS,EAAE,yBAAe;AAExC,OAAO,EAAE,cAAc,EAAE,mDAAyC;AAClE,YAAY,EAAE,mBAAmB,EAAE,mDAAyC"}
@@ -10,6 +10,7 @@ export { BadgeIcon } from "./BadgeIcon/index.mjs";
10
10
  export { BadgeNetwork } from "./BadgeNetwork/index.mjs";
11
11
  export { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from "./BadgeStatus/index.mjs";
12
12
  export { BadgeWrapper, BadgeWrapperPosition, BadgeWrapperPositionAnchorShape } from "./BadgeWrapper/index.mjs";
13
+ export { BottomSheetOverlay } from "./BottomSheetOverlay/index.mjs";
13
14
  export { Blockies } from "./temp-components/Blockies/index.mjs";
14
15
  export { Box, BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "./Box/index.mjs";
15
16
  export { ButtonAnimated } from "./temp-components/ButtonAnimated/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EAClB,kCAAwB;AAGzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,E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S,EACT,SAAS,EACT,WAAW,EACZ,yBAAe;AAGhB,OAAO,EAAE,cAAc,EAAE,mDAAyC","sourcesContent":["export {\n AvatarAccount,\n AvatarAccountVariant,\n AvatarAccountSize,\n} from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon';\n\nexport {\n AvatarGroup,\n AvatarGroupSize,\n AvatarGroupVariant,\n} from './AvatarGroup';\nexport type { AvatarGroupProps } from './AvatarGroup';\n\nexport { AvatarIcon, AvatarIconSeverity, AvatarIconSize } from './AvatarIcon';\nexport type { AvatarIconProps } from './AvatarIcon';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './AvatarNetwork';\nexport type { AvatarNetworkProps } from './AvatarNetwork';\n\nexport { AvatarToken, AvatarTokenSize } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken';\n\nexport { BadgeCount, BadgeCountSize } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount';\n\nexport { BadgeIcon } from './BadgeIcon';\nexport type { BadgeIconProps } from './BadgeIcon';\n\nexport { BadgeNetwork } from './BadgeNetwork';\nexport type { BadgeNetworkProps } from './BadgeNetwork';\n\nexport { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus';\n\nexport {\n BadgeWrapper,\n BadgeWrapperPosition,\n BadgeWrapperPositionAnchorShape,\n} from './BadgeWrapper';\nexport type {\n BadgeWrapperProps,\n BadgeWrapperCustomPosition,\n} from './BadgeWrapper';\n\nexport { Blockies } from './temp-components/Blockies';\nexport type { BlockiesProps } from './temp-components/Blockies';\n\nexport {\n Box,\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from './Box';\nexport type { BoxProps, BoxSpacing } from './Box';\n\nexport { ButtonAnimated } from './temp-components/ButtonAnimated';\nexport type { ButtonAnimatedProps } from './temp-components/ButtonAnimated';\n\nexport { ButtonBase, ButtonBaseSize } from './ButtonBase';\nexport type { ButtonBaseProps } from './ButtonBase';\n\nexport { Button, ButtonSize, ButtonVariant } from './Button';\nexport type { ButtonProps } from './Button';\n\nexport { ButtonIcon, ButtonIconSize } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon';\n\nexport { Checkbox } from './Checkbox';\nexport type { CheckboxProps } from './Checkbox';\n\nexport { Icon, IconColor, IconName, IconSize } from './Icon';\nexport type { IconProps } from './Icon';\n\nexport { Jazzicon } from './temp-components/Jazzicon';\nexport type { JazziconProps } from './temp-components/Jazzicon';\n\nexport { Maskicon } from './temp-components/Maskicon';\nexport type { MaskiconProps } from './temp-components/Maskicon';\n\nexport { TextButton, TextButtonSize } from './TextButton';\nexport type { TextButtonProps } from './TextButton';\n\nexport {\n Text,\n FontWeight,\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from './Text';\nexport type { TextProps } from './Text';\n\nexport { TextOrChildren } from './temp-components/TextOrChildren';\nexport type { TextOrChildrenProps } from './temp-components/TextOrChildren';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EAClB,kCAAwB;AAGzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,+BAAqB;AAG3E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AAGnE,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,EACnB,gCAAsB;AAGvB,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,+BAAqB;AAG9E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AAGnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gCAAsB;AAG7D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,SAAS,EAAE,8BAAoB;AAGxC,OAAO,EAAE,YAAY,EAAE,iCAAuB;AAG9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAE,gCAAsB;AAGhF,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,+BAA+B,EAChC,iCAAuB;AAMxB,OAAO,EAAE,kBAAkB,EAAE,uCAA6B;AAG1D,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,wBAAc;AAGf,OAAO,EAAE,cAAc,EAAE,mDAAyC;AAGlE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,2BAAiB;AAG7D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AAGtC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,yBAAe;AAG7D,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EAAE,QAAQ,EAAE,6CAAmC;AAGtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,yBAAe;AAGhB,OAAO,EAAE,cAAc,EAAE,mDAAyC","sourcesContent":["export {\n AvatarAccount,\n AvatarAccountVariant,\n AvatarAccountSize,\n} from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon';\n\nexport {\n AvatarGroup,\n AvatarGroupSize,\n AvatarGroupVariant,\n} from './AvatarGroup';\nexport type { AvatarGroupProps } from './AvatarGroup';\n\nexport { AvatarIcon, AvatarIconSeverity, AvatarIconSize } from './AvatarIcon';\nexport type { AvatarIconProps } from './AvatarIcon';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './AvatarNetwork';\nexport type { AvatarNetworkProps } from './AvatarNetwork';\n\nexport { AvatarToken, AvatarTokenSize } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken';\n\nexport { BadgeCount, BadgeCountSize } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount';\n\nexport { BadgeIcon } from './BadgeIcon';\nexport type { BadgeIconProps } from './BadgeIcon';\n\nexport { BadgeNetwork } from './BadgeNetwork';\nexport type { BadgeNetworkProps } from './BadgeNetwork';\n\nexport { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus';\n\nexport {\n BadgeWrapper,\n BadgeWrapperPosition,\n BadgeWrapperPositionAnchorShape,\n} from './BadgeWrapper';\nexport type {\n BadgeWrapperProps,\n BadgeWrapperCustomPosition,\n} from './BadgeWrapper';\n\nexport { BottomSheetOverlay } from './BottomSheetOverlay';\nexport type { BottomSheetOverlayProps } from './BottomSheetOverlay';\n\nexport { Blockies } from './temp-components/Blockies';\nexport type { BlockiesProps } from './temp-components/Blockies';\n\nexport {\n Box,\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from './Box';\nexport type { BoxProps, BoxSpacing } from './Box';\n\nexport { ButtonAnimated } from './temp-components/ButtonAnimated';\nexport type { ButtonAnimatedProps } from './temp-components/ButtonAnimated';\n\nexport { ButtonBase, ButtonBaseSize } from './ButtonBase';\nexport type { ButtonBaseProps } from './ButtonBase';\n\nexport { Button, ButtonSize, ButtonVariant } from './Button';\nexport type { ButtonProps } from './Button';\n\nexport { ButtonIcon, ButtonIconSize } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon';\n\nexport { Checkbox } from './Checkbox';\nexport type { CheckboxProps } from './Checkbox';\n\nexport { Icon, IconColor, IconName, IconSize } from './Icon';\nexport type { IconProps } from './Icon';\n\nexport { Jazzicon } from './temp-components/Jazzicon';\nexport type { JazziconProps } from './temp-components/Jazzicon';\n\nexport { Maskicon } from './temp-components/Maskicon';\nexport type { MaskiconProps } from './temp-components/Maskicon';\n\nexport { TextButton, TextButtonSize } from './TextButton';\nexport type { TextButtonProps } from './TextButton';\n\nexport {\n Text,\n FontWeight,\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from './Text';\nexport type { TextProps } from './Text';\n\nexport { TextOrChildren } from './temp-components/TextOrChildren';\nexport type { TextOrChildrenProps } from './temp-components/TextOrChildren';\n"]}
@@ -22,22 +22,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
26
  exports.ButtonAnimated = void 0;
30
- const react_1 = __importDefault(require("react"));
27
+ const react_1 = __importStar(require("react"));
31
28
  const react_native_1 = require("react-native/index.js");
32
29
  const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
33
- const ButtonAnimated = ({ onPressIn, onPressOut, disabled, ...props }) => {
30
+ const AnimatedPressable = react_native_reanimated_1.default.createAnimatedComponent(react_native_1.Pressable);
31
+ const ButtonAnimated = ({ onPressIn, onPressOut, disabled, style, children, ...props }) => {
32
+ const [isPressed, setIsPressed] = (0, react_1.useState)(false);
34
33
  const animation = (0, react_native_reanimated_1.useSharedValue)(1);
35
- const scaleStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
34
+ const animatedStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
36
35
  return {
37
36
  transform: [{ scale: animation.value }],
38
37
  };
39
38
  });
40
39
  const onPressInHandler = (event) => {
40
+ setIsPressed(true);
41
41
  animation.value = (0, react_native_reanimated_1.withTiming)(0.97, {
42
42
  duration: 100,
43
43
  easing: react_native_reanimated_1.Easing.bezier(0.3, 0.8, 0.3, 1),
@@ -45,15 +45,23 @@ const ButtonAnimated = ({ onPressIn, onPressOut, disabled, ...props }) => {
45
45
  onPressIn?.(event);
46
46
  };
47
47
  const onPressOutHandler = (event) => {
48
+ setIsPressed(false);
48
49
  animation.value = (0, react_native_reanimated_1.withTiming)(1, {
49
50
  duration: 100,
50
51
  easing: react_native_reanimated_1.Easing.bezier(0.3, 0.8, 0.3, 1),
51
52
  });
52
53
  onPressOut?.(event);
53
54
  };
54
- return (<react_native_reanimated_1.default.View style={[scaleStyle, { alignItems: 'center', justifyContent: 'center' }]}>
55
- <react_native_1.Pressable onPressIn={onPressInHandler} onPressOut={onPressOutHandler} disabled={disabled} {...props}/>
56
- </react_native_reanimated_1.default.View>);
55
+ // Evaluate style function if needed
56
+ const evaluatedStyle = typeof style === 'function' ? style({ pressed: isPressed }) : style;
57
+ return (<AnimatedPressable onPressIn={onPressInHandler} onPressOut={onPressOutHandler} disabled={disabled} style={[
58
+ ...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),
59
+ animatedStyle,
60
+ ]} {...props}>
61
+ {typeof children === 'function'
62
+ ? children({ pressed: isPressed })
63
+ : children}
64
+ </AnimatedPressable>);
57
65
  };
58
66
  exports.ButtonAnimated = ButtonAnimated;
59
67
  //# sourceMappingURL=ButtonAnimated.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonAnimated.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/But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,CAAC,wBAAS,CACR,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,IAAI,KAAK,CAAC,EAEd;IAAA,EAAE,iCAAQ,CAAC,IAAI,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC;AAzCW,QAAA,cAAc,kBAyCzB","sourcesContent":["import React from 'react';\nimport type { GestureResponderEvent } from 'react-native';\nimport { Pressable } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { ButtonAnimatedProps } from './ButtonAnimated.types';\n\nexport const ButtonAnimated = ({\n onPressIn,\n onPressOut,\n disabled,\n ...props\n}: ButtonAnimatedProps) => {\n const animation = useSharedValue(1);\n const scaleStyle = useAnimatedStyle(() => {\n return {\n transform: [{ scale: animation.value }],\n };\n });\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n animation.value = withTiming(0.97, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n animation.value = withTiming(1, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressOut?.(event);\n };\n\n return (\n <Animated.View\n style={[scaleStyle, { alignItems: 'center', justifyContent: 'center' }]}\n >\n <Pressable\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n disabled={disabled}\n {...props}\n />\n </Animated.View>\n );\n};\n"]}
1
+ {"version":3,"file":"ButtonAnimated.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,wDAAyC;AACzC,mFAKiC;AAIjC,MAAM,iBAAiB,GAAG,iCAAQ,CAAC,uBAAuB,CAAC,wBAAS,C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CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEtE,OAAO,CACL,CAAC,iBAAiB,CAChB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,KAAK,CAAC,CAAC;YACL,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;YACtE,aAAa;SACd,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,OAAO,QAAQ,KAAK,UAAU;YAC7B,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;YAClC,CAAC,CAAC,QAAQ,CACd;IAAA,EAAE,iBAAiB,CAAC,CACrB,CAAC;AACJ,CAAC,CAAC;AAvDW,QAAA,cAAc,kBAuDzB","sourcesContent":["import React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\nimport { Pressable } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { ButtonAnimatedProps } from './ButtonAnimated.types';\n\nconst AnimatedPressable = Animated.createAnimatedComponent(Pressable);\n\nexport const ButtonAnimated = ({\n onPressIn,\n onPressOut,\n disabled,\n style,\n children,\n ...props\n}: ButtonAnimatedProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const animation = useSharedValue(1);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n transform: [{ scale: animation.value }],\n };\n });\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n animation.value = withTiming(0.97, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n animation.value = withTiming(1, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressOut?.(event);\n };\n\n // Evaluate style function if needed\n const evaluatedStyle =\n typeof style === 'function' ? style({ pressed: isPressed }) : style;\n\n return (\n <AnimatedPressable\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n disabled={disabled}\n style={[\n ...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),\n animatedStyle,\n ]}\n {...props}\n >\n {typeof children === 'function'\n ? children({ pressed: isPressed })\n : children}\n </AnimatedPressable>\n );\n};\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { ButtonAnimatedProps } from "./ButtonAnimated.types.cjs";
3
- export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, ...props }: ButtonAnimatedProps) => React.JSX.Element;
3
+ export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, style, children, ...props }: ButtonAnimatedProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=ButtonAnimated.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonAnimated.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAU1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,kDAKxB,mBAAmB,sBAoCrB,CAAC"}
1
+ {"version":3,"file":"ButtonAnimated.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAUxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAIlE,eAAO,MAAM,cAAc,mEAOxB,mBAAmB,sBAgDrB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { ButtonAnimatedProps } from "./ButtonAnimated.types.mjs";
3
- export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, ...props }: ButtonAnimatedProps) => React.JSX.Element;
3
+ export declare const ButtonAnimated: ({ onPressIn, onPressOut, disabled, style, children, ...props }: ButtonAnimatedProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=ButtonAnimated.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonAnimated.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAU1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,kDAKxB,mBAAmB,sBAoCrB,CAAC"}
1
+ {"version":3,"file":"ButtonAnimated.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAUxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAIlE,eAAO,MAAM,cAAc,mEAOxB,mBAAmB,sBAgDrB,CAAC"}
@@ -4,18 +4,21 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import $React from "react";
7
+ import $React, { useState } from "react";
8
8
  const React = $importDefault($React);
9
9
  import { Pressable } from "react-native/index.js";
10
10
  import Animated, { useSharedValue, useAnimatedStyle, withTiming, Easing } from "react-native-reanimated";
11
- export const ButtonAnimated = ({ onPressIn, onPressOut, disabled, ...props }) => {
11
+ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
12
+ export const ButtonAnimated = ({ onPressIn, onPressOut, disabled, style, children, ...props }) => {
13
+ const [isPressed, setIsPressed] = useState(false);
12
14
  const animation = useSharedValue(1);
13
- const scaleStyle = useAnimatedStyle(() => {
15
+ const animatedStyle = useAnimatedStyle(() => {
14
16
  return {
15
17
  transform: [{ scale: animation.value }],
16
18
  };
17
19
  });
18
20
  const onPressInHandler = (event) => {
21
+ setIsPressed(true);
19
22
  animation.value = withTiming(0.97, {
20
23
  duration: 100,
21
24
  easing: Easing.bezier(0.3, 0.8, 0.3, 1),
@@ -23,14 +26,22 @@ export const ButtonAnimated = ({ onPressIn, onPressOut, disabled, ...props }) =>
23
26
  onPressIn?.(event);
24
27
  };
25
28
  const onPressOutHandler = (event) => {
29
+ setIsPressed(false);
26
30
  animation.value = withTiming(1, {
27
31
  duration: 100,
28
32
  easing: Easing.bezier(0.3, 0.8, 0.3, 1),
29
33
  });
30
34
  onPressOut?.(event);
31
35
  };
32
- return (<Animated.View style={[scaleStyle, { alignItems: 'center', justifyContent: 'center' }]}>
33
- <Pressable onPressIn={onPressInHandler} onPressOut={onPressOutHandler} disabled={disabled} {...props}/>
34
- </Animated.View>);
36
+ // Evaluate style function if needed
37
+ const evaluatedStyle = typeof style === 'function' ? style({ pressed: isPressed }) : style;
38
+ return (<AnimatedPressable onPressIn={onPressInHandler} onPressOut={onPressOutHandler} disabled={disabled} style={[
39
+ ...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),
40
+ animatedStyle,
41
+ ]} {...props}>
42
+ {typeof children === 'function'
43
+ ? children({ pressed: isPressed })
44
+ : children}
45
+ </AnimatedPressable>);
35
46
  };
36
47
  //# sourceMappingURL=ButtonAnimated.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonAnimated.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,SAAS,EAAE,8BAAqB;AACzC,OAAO,QAAQ,EAAE,EACf,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,MAAM,EACP,gCAAgC;AAIjC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,SAAS,GAAG,cAAc,CAAC,CA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'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { ButtonAnimatedProps } from './ButtonAnimated.types';\n\nexport const ButtonAnimated = ({\n onPressIn,\n onPressOut,\n disabled,\n ...props\n}: ButtonAnimatedProps) => {\n const animation = useSharedValue(1);\n const scaleStyle = useAnimatedStyle(() => {\n return {\n transform: [{ scale: animation.value }],\n };\n });\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n animation.value = withTiming(0.97, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n animation.value = withTiming(1, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressOut?.(event);\n };\n\n return (\n <Animated.View\n style={[scaleStyle, { alignItems: 'center', justifyContent: 'center' }]}\n >\n <Pressable\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n disabled={disabled}\n {...props}\n />\n </Animated.View>\n );\n};\n"]}
1
+ {"version":3,"file":"ButtonAnimated.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ButtonAnimated/ButtonAnimated.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAExC,OAAO,EAAE,SAAS,EAAE,8BAAqB;AACzC,OAAO,QAAQ,EAAE,EACf,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,MAAM,EACP,gCAAgC;AAIjC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,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;YACL,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;YACtE,aAAa;SACd,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,OAAO,QAAQ,KAAK,UAAU;YAC7B,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;YAClC,CAAC,CAAC,QAAQ,CACd;IAAA,EAAE,iBAAiB,CAAC,CACrB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\nimport { Pressable } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { ButtonAnimatedProps } from './ButtonAnimated.types';\n\nconst AnimatedPressable = Animated.createAnimatedComponent(Pressable);\n\nexport const ButtonAnimated = ({\n onPressIn,\n onPressOut,\n disabled,\n style,\n children,\n ...props\n}: ButtonAnimatedProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const animation = useSharedValue(1);\n\n const animatedStyle = useAnimatedStyle(() => {\n return {\n transform: [{ scale: animation.value }],\n };\n });\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n animation.value = withTiming(0.97, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n animation.value = withTiming(1, {\n duration: 100,\n easing: Easing.bezier(0.3, 0.8, 0.3, 1),\n });\n onPressOut?.(event);\n };\n\n // Evaluate style function if needed\n const evaluatedStyle =\n typeof style === 'function' ? style({ pressed: isPressed }) : style;\n\n return (\n <AnimatedPressable\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n disabled={disabled}\n style={[\n ...(Array.isArray(evaluatedStyle) ? evaluatedStyle : [evaluatedStyle]),\n animatedStyle,\n ]}\n {...props}\n >\n {typeof children === 'function'\n ? children({ pressed: isPressed })\n : children}\n </AnimatedPressable>\n );\n};\n"]}
@@ -30,7 +30,7 @@ const react_native_1 = require("react-native/index.js");
30
30
  const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
31
31
  const Icon_1 = require("../../Icon/index.cjs");
32
32
  const Text_1 = require("../../Text/index.cjs");
33
- const Spinner = ({ color = Icon_1.IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName = '', style, ...props }) => {
33
+ const Spinner = ({ color = Icon_1.IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName, style, ...props }) => {
34
34
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
35
35
  // Create a shared value for rotation
36
36
  const rotation = (0, react_native_reanimated_1.useSharedValue)(0);
@@ -57,7 +57,7 @@ const Spinner = ({ color = Icon_1.IconColor.IconDefault, spinnerIconProps, loadi
57
57
  testID: 'spinner-text',
58
58
  ...loadingTextProps,
59
59
  };
60
- return (<react_native_1.View style={[tw `flex-row items-center gap-x-2 ${twClassName}`, style]} testID="spinner" {...props}>
60
+ return (<react_native_1.View {...props} style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}>
61
61
  <react_native_reanimated_1.default.View style={[animatedStyle]} testID="spinner-animated-view">
62
62
  <Icon_1.Icon {...finalSpinnerIconProps}/>
63
63
  </react_native_reanimated_1.default.View>
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAyC;AACzC,wDAAoC;AACpC,mFAMiC;AAGjC,+CAAiE;AAEjE,+CAA0D;AAInD,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,gBAAS,CAAC,WAAW,EAC7B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB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AQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,iCAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,WAAI,CAAC,CACvE;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAvDW,QAAA,OAAO,WAuDlB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName = '',\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n style={[tw`flex-row items-center gap-x-2 ${twClassName}`, style]}\n testID=\"spinner\"\n {...props}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAyC;AACzC,wDAAoC;AACpC,mFAMiC;AAGjC,+CAAiE;AAEjE,+CAA0D;AAInD,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,gBAAS,CAAC,WAAW,EAC7B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACK,EAAE,EAAE;IACjB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,qCAAqC;IACrC,MAAM,QAAQ,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IAEnC,gDAAgD;IAChD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,KAAK,GAAG,IAAA,oCAAU,EACzB,IAAA,oCAAU,EAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,gCAAM,CAAC,MAAM,EAAE,CAAC,EAAE,mCAAmC;QAC/F,CAAC,CAAC,EAAE,uBAAuB;QAC3B,KAAK,CACN,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,4BAA4B;IAC5B,MAAM,aAAa,GAAG,IAAA,0CAAgB,EAAC,GAAG,EAAE,CAAC,CAAC;QAC5C,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,GAAG,GAAG,KAAK,EAAE,CAAC;KACtD,CAAC,CAAC,CAAC;IAEJ,MAAM,qBAAqB,GAAc;QACvC,IAAI,EAAE,eAAQ,CAAC,EAAE;QACjB,IAAI,EAAE,eAAQ,CAAC,OAAO;QACtB,MAAM,EAAE,cAAc;QACtB,KAAK;QACL,GAAG,gBAAgB;KACpB,CAAC;IAEF,MAAM,qBAAqB,GAAuB;QAChD,OAAO,EAAE,kBAAW,CAAC,MAAM;QAC3B,KAAK,EAAE,gBAAS,CAAC,WAAW;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,gBAAgB;KACpB,CAAC;IAEF,OAAO,CACL,CAAC,mBAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,+BAA+B,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAEvE;MAAA,CAAC,iCAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,iCAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,WAAI,CAAC,CACvE;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,OAAO,WAsDlB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,sBA+Cd,CAAC"}
1
+ {"version":3,"file":"Spinner.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,sBA8Cd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,sBA+Cd,CAAC"}
1
+ {"version":3,"file":"Spinner.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,cAAc;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,4BAAwB;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,sBA8Cd,CAAC"}
@@ -11,7 +11,7 @@ import { View } from "react-native/index.js";
11
11
  import Animated, { useSharedValue, useAnimatedStyle, withRepeat, withTiming, Easing } from "react-native-reanimated";
12
12
  import { Icon, IconColor, IconName, IconSize } from "../../Icon/index.mjs";
13
13
  import { Text, TextVariant, TextColor } from "../../Text/index.mjs";
14
- export const Spinner = ({ color = IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName = '', style, ...props }) => {
14
+ export const Spinner = ({ color = IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName, style, ...props }) => {
15
15
  const tw = useTailwind();
16
16
  // Create a shared value for rotation
17
17
  const rotation = useSharedValue(0);
@@ -38,7 +38,7 @@ export const Spinner = ({ color = IconColor.IconDefault, spinnerIconProps, loadi
38
38
  testID: 'spinner-text',
39
39
  ...loadingTextProps,
40
40
  };
41
- return (<View style={[tw `flex-row items-center gap-x-2 ${twClassName}`, style]} testID="spinner" {...props}>
41
+ return (<View {...props} style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}>
42
42
  <Animated.View style={[animatedStyle]} testID="spinner-animated-view">
43
43
  <Icon {...finalSpinnerIconProps}/>
44
44
  </Animated.View>
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.mjs","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,MAAM,qBAAqB,GAAc;QACvC,IAAI,EAAE,QAAQ,CAAC,EAAE;QACjB,IAAI,EAAE,QAAQ,CAAC,OAAO;QACtB,MAAM,EAAE,cAAc;QACtB,KAAK;QACL,GAAG,gBAAgB;KACpB,CAAC;IAEF,MAAM,qBAAqB,GAAuB;QAChD,OAAO,EAAE,WAAW,CAAC,MAAM;QAC3B,KAAK,EAAE,SAAS,CAAC,WAAW;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,gBAAgB;KACpB,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,iCAAiC,WAAW,EAAE,EAAE,KAAK,CAAC,CAAC,CACjE,MAAM,CAAC,SAAS,CAChB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,QAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CACvE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName = '',\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n style={[tw`flex-row items-center gap-x-2 ${twClassName}`, style]}\n testID=\"spinner\"\n {...props}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Spinner.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,SAAS,EAAE,cAAc;;AACzC,OAAO,EAAE,IAAI,EAAE,8BAAqB;AACpC,OAAO,QAAQ,EAAE,EACf,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,MAAM,EACP,gCAAgC;AAGjC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,6BAAmB;AAEjE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,6BAAmB;AAI1D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,E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AAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,QAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CACvE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}