@aws-amplify/ui-react-native 2.5.2 → 2.6.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 (354) hide show
  1. package/README.md +26 -15
  2. package/dist/Authenticator/Authenticator.d.ts +1 -1
  3. package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.d.ts +1 -1
  4. package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.d.ts +1 -1
  5. package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
  6. package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.d.ts +1 -1
  7. package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.d.ts +1 -1
  8. package/dist/Authenticator/Defaults/ForgotPassword/ForgotPassword.d.ts +1 -1
  9. package/dist/Authenticator/Defaults/SelectMfaType/SelectMfaType.d.ts +1 -1
  10. package/dist/Authenticator/Defaults/SetupEmail/SetupEmail.d.ts +1 -1
  11. package/dist/Authenticator/Defaults/SetupTotp/SetupTotp.d.ts +1 -1
  12. package/dist/Authenticator/Defaults/SetupTotp/styles.d.ts +1 -1
  13. package/dist/Authenticator/Defaults/SignIn/SignIn.d.ts +1 -1
  14. package/dist/Authenticator/Defaults/SignUp/SignUp.d.ts +1 -1
  15. package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.d.ts +1 -1
  16. package/dist/Authenticator/Defaults/index.d.ts +1 -1
  17. package/dist/Authenticator/Defaults/types.d.ts +2 -2
  18. package/dist/Authenticator/common/DefaultContainer/DefaultContainer.d.ts +1 -1
  19. package/dist/Authenticator/common/DefaultContainer/InnerContainer.d.ts +1 -1
  20. package/dist/Authenticator/common/DefaultContainer/index.d.ts +1 -1
  21. package/dist/Authenticator/common/DefaultContainer/styles.d.ts +3 -3
  22. package/dist/Authenticator/common/DefaultContainer/types.d.ts +2 -2
  23. package/dist/Authenticator/common/DefaultContent/DefaultContent.d.ts +2 -2
  24. package/dist/Authenticator/common/DefaultContent/styles.d.ts +2 -2
  25. package/dist/Authenticator/common/DefaultContent/types.d.ts +6 -6
  26. package/dist/Authenticator/common/DefaultFooter/DefaultFooter.d.ts +1 -1
  27. package/dist/Authenticator/common/DefaultFooter/index.d.ts +1 -1
  28. package/dist/Authenticator/common/DefaultFooter/types.d.ts +1 -1
  29. package/dist/Authenticator/common/DefaultFormFields/DefaultSelectMfaTypeFormFields.d.ts +1 -1
  30. package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.d.ts +1 -1
  31. package/dist/Authenticator/common/DefaultFormFields/DefaultVerifyUserFormFields.d.ts +1 -1
  32. package/dist/Authenticator/common/DefaultFormFields/Field.d.ts +1 -1
  33. package/dist/Authenticator/common/DefaultFormFields/FieldErrors.d.ts +1 -1
  34. package/dist/Authenticator/common/DefaultFormFields/index.d.ts +1 -1
  35. package/dist/Authenticator/common/DefaultFormFields/types.d.ts +3 -3
  36. package/dist/Authenticator/common/DefaultHeader/DefaultHeader.d.ts +1 -1
  37. package/dist/Authenticator/common/DefaultHeader/index.d.ts +1 -1
  38. package/dist/Authenticator/common/DefaultHeader/types.d.ts +1 -1
  39. package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.d.ts +1 -1
  40. package/dist/Authenticator/common/FederatedProviderButton/index.d.ts +1 -1
  41. package/dist/Authenticator/common/FederatedProviderButton/types.d.ts +2 -2
  42. package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.d.ts +1 -1
  43. package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.js +1 -1
  44. package/dist/Authenticator/common/FederatedProviderButtons/styles.d.ts +2 -2
  45. package/dist/Authenticator/common/FederatedProviderButtons/types.d.ts +2 -2
  46. package/dist/Authenticator/hooks/types.d.ts +2 -1
  47. package/dist/Authenticator/hooks/useFieldValues/types.d.ts +3 -3
  48. package/dist/Authenticator/hooks/useFieldValues/useFieldValues.d.ts +2 -2
  49. package/dist/Authenticator/hooks/useFieldValues/useFieldValues.js +19 -5
  50. package/dist/Authenticator/hooks/useFieldValues/utils.d.ts +3 -3
  51. package/dist/Authenticator/hooks/useFieldValues/utils.js +1 -1
  52. package/dist/Authenticator/index.d.ts +5 -4
  53. package/dist/Authenticator/types.d.ts +4 -4
  54. package/dist/Authenticator/useAuthenticator.d.ts +3 -2
  55. package/dist/Authenticator/useAuthenticator.js +1 -1
  56. package/dist/Authenticator/withAuthenticator.d.ts +1 -1
  57. package/dist/InAppMessaging/components/BannerMessage/BannerMessage.d.ts +1 -1
  58. package/dist/InAppMessaging/components/BannerMessage/index.d.ts +1 -1
  59. package/dist/InAppMessaging/components/BannerMessage/styles.d.ts +3 -3
  60. package/dist/InAppMessaging/components/BannerMessage/types.d.ts +3 -3
  61. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.d.ts +1 -1
  62. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.d.ts +1 -1
  63. package/dist/InAppMessaging/components/CarouselMessage/index.d.ts +1 -1
  64. package/dist/InAppMessaging/components/CarouselMessage/styles.d.ts +2 -2
  65. package/dist/InAppMessaging/components/CarouselMessage/types.d.ts +3 -3
  66. package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.d.ts +1 -1
  67. package/dist/InAppMessaging/components/FullScreenMessage/index.d.ts +1 -1
  68. package/dist/InAppMessaging/components/FullScreenMessage/styles.d.ts +1 -1
  69. package/dist/InAppMessaging/components/FullScreenMessage/types.d.ts +2 -2
  70. package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.d.ts +1 -1
  71. package/dist/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.d.ts +1 -1
  72. package/dist/InAppMessaging/components/InAppMessageDisplay/index.d.ts +1 -1
  73. package/dist/InAppMessaging/components/InAppMessageDisplay/types.d.ts +5 -5
  74. package/dist/InAppMessaging/components/MessageLayout/MessageLayout.d.ts +1 -1
  75. package/dist/InAppMessaging/components/MessageLayout/types.d.ts +3 -3
  76. package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.d.ts +1 -1
  77. package/dist/InAppMessaging/components/MessageWrapper/index.d.ts +1 -1
  78. package/dist/InAppMessaging/components/MessageWrapper/styles.d.ts +1 -1
  79. package/dist/InAppMessaging/components/MessageWrapper/types.d.ts +2 -2
  80. package/dist/InAppMessaging/components/ModalMessage/ModalMessage.d.ts +1 -1
  81. package/dist/InAppMessaging/components/ModalMessage/index.d.ts +1 -1
  82. package/dist/InAppMessaging/components/ModalMessage/styles.d.ts +2 -2
  83. package/dist/InAppMessaging/components/ModalMessage/types.d.ts +2 -2
  84. package/dist/InAppMessaging/components/index.d.ts +6 -5
  85. package/dist/InAppMessaging/components/withInAppMessaging/withInAppMessaging.d.ts +1 -1
  86. package/dist/InAppMessaging/hooks/index.d.ts +4 -2
  87. package/dist/InAppMessaging/hooks/index.js +1 -1
  88. package/dist/InAppMessaging/hooks/useMessageImage/index.d.ts +1 -1
  89. package/dist/InAppMessaging/hooks/useMessageImage/useMessageImage.d.ts +2 -2
  90. package/dist/InAppMessaging/hooks/useMessageImage/utils.d.ts +2 -2
  91. package/dist/InAppMessaging/hooks/useMessageProps/index.d.ts +1 -1
  92. package/dist/InAppMessaging/hooks/useMessageProps/types.d.ts +4 -4
  93. package/dist/InAppMessaging/hooks/useMessageProps/useMessageProps.d.ts +2 -2
  94. package/dist/InAppMessaging/hooks/useMessageProps/utils.d.ts +2 -2
  95. package/dist/InAppMessaging/index.d.ts +4 -2
  96. package/dist/InAppMessaging/index.js +1 -2
  97. package/dist/assets/icons/icons.d.ts +1 -1
  98. package/dist/assets/icons/icons.ts +1 -1
  99. package/dist/hooks/index.d.ts +2 -1
  100. package/dist/hooks/index.js +1 -1
  101. package/dist/hooks/useDeprecationWarning/useDeprecationWarning.d.ts +1 -1
  102. package/dist/hooks/useDeprecationWarning/useDeprecationWarning.js +1 -1
  103. package/dist/hooks/useDeviceOrientation/index.d.ts +2 -1
  104. package/dist/hooks/useDeviceOrientation/index.js +1 -1
  105. package/dist/hooks/usePressableContainerStyles/usePressableContainerStyles.d.ts +1 -1
  106. package/dist/index.d.ts +4 -2
  107. package/dist/primitives/Button/Button.d.ts +1 -1
  108. package/dist/primitives/Button/index.d.ts +1 -1
  109. package/dist/primitives/Button/styles.d.ts +2 -2
  110. package/dist/primitives/Button/types.d.ts +1 -1
  111. package/dist/primitives/Carousel/Carousel.d.ts +1 -1
  112. package/dist/primitives/Carousel/Carousel.js +1 -1
  113. package/dist/primitives/Carousel/CarouselPageIndicator.d.ts +1 -1
  114. package/dist/primitives/Carousel/constants.d.ts +1 -1
  115. package/dist/primitives/Carousel/index.d.ts +1 -1
  116. package/dist/primitives/Carousel/styles.d.ts +1 -1
  117. package/dist/primitives/Carousel/types.d.ts +1 -1
  118. package/dist/primitives/Checkbox/Checkbox.d.ts +1 -1
  119. package/dist/primitives/Checkbox/styles.d.ts +3 -3
  120. package/dist/primitives/Checkbox/types.d.ts +4 -4
  121. package/dist/primitives/Divider/Divider.d.ts +1 -1
  122. package/dist/primitives/Divider/index.d.ts +1 -1
  123. package/dist/primitives/Divider/styles.d.ts +2 -2
  124. package/dist/primitives/Divider/types.d.ts +1 -1
  125. package/dist/primitives/ErrorMessage/ErrorMessage.d.ts +1 -1
  126. package/dist/primitives/ErrorMessage/index.d.ts +1 -1
  127. package/dist/primitives/ErrorMessage/styles.d.ts +2 -2
  128. package/dist/primitives/ErrorMessage/types.d.ts +2 -2
  129. package/dist/primitives/Heading/Heading.d.ts +1 -1
  130. package/dist/primitives/Heading/index.d.ts +1 -1
  131. package/dist/primitives/Heading/styles.d.ts +2 -2
  132. package/dist/primitives/Heading/types.d.ts +1 -1
  133. package/dist/primitives/Icon/Icon.d.ts +1 -1
  134. package/dist/primitives/Icon/constants.d.ts +1 -1
  135. package/dist/primitives/Icon/index.d.ts +1 -1
  136. package/dist/primitives/Icon/styles.d.ts +2 -2
  137. package/dist/primitives/Icon/types.d.ts +1 -1
  138. package/dist/primitives/IconButton/IconButton.d.ts +1 -1
  139. package/dist/primitives/IconButton/index.d.ts +1 -1
  140. package/dist/primitives/IconButton/styles.d.ts +2 -2
  141. package/dist/primitives/IconButton/types.d.ts +1 -1
  142. package/dist/primitives/Label/Label.d.ts +1 -1
  143. package/dist/primitives/Label/index.d.ts +1 -1
  144. package/dist/primitives/Label/styles.d.ts +2 -2
  145. package/dist/primitives/Label/types.d.ts +1 -1
  146. package/dist/primitives/Label/utils.d.ts +2 -2
  147. package/dist/primitives/PasswordField/PasswordField.d.ts +1 -1
  148. package/dist/primitives/PasswordField/index.d.ts +1 -1
  149. package/dist/primitives/PasswordField/styles.d.ts +2 -2
  150. package/dist/primitives/PasswordField/types.d.ts +3 -3
  151. package/dist/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
  152. package/dist/primitives/PhoneNumberField/index.d.ts +1 -1
  153. package/dist/primitives/PhoneNumberField/styles.d.ts +2 -2
  154. package/dist/primitives/PhoneNumberField/types.d.ts +1 -1
  155. package/dist/primitives/Radio/Radio.d.ts +1 -1
  156. package/dist/primitives/Radio/Radio.js +1 -1
  157. package/dist/primitives/Radio/getRadioDimensions.d.ts +1 -1
  158. package/dist/primitives/Radio/index.d.ts +1 -1
  159. package/dist/primitives/Radio/styles.d.ts +2 -2
  160. package/dist/primitives/Radio/types.d.ts +2 -2
  161. package/dist/primitives/RadioGroup/RadioGroup.d.ts +1 -1
  162. package/dist/primitives/RadioGroup/index.d.ts +1 -1
  163. package/dist/primitives/RadioGroup/styles.d.ts +2 -2
  164. package/dist/primitives/RadioGroup/types.d.ts +2 -2
  165. package/dist/primitives/Tabs/Tab.d.ts +1 -1
  166. package/dist/primitives/Tabs/Tabs.d.ts +1 -1
  167. package/dist/primitives/Tabs/index.d.ts +1 -1
  168. package/dist/primitives/Tabs/styles.d.ts +2 -2
  169. package/dist/primitives/Tabs/types.d.ts +2 -2
  170. package/dist/primitives/TextField/TextField.d.ts +1 -1
  171. package/dist/primitives/TextField/index.d.ts +1 -1
  172. package/dist/primitives/TextField/styles.d.ts +2 -2
  173. package/dist/primitives/TextField/types.d.ts +2 -2
  174. package/dist/theme/ThemeContext.d.ts +1 -1
  175. package/dist/theme/ThemeProvider.d.ts +1 -1
  176. package/dist/theme/createTheme.d.ts +1 -1
  177. package/dist/theme/defaultTheme.d.ts +1 -1
  178. package/dist/theme/types.d.ts +2 -2
  179. package/dist/theme/useTheme.d.ts +1 -1
  180. package/dist/version.d.ts +1 -1
  181. package/dist/version.js +1 -1
  182. package/lib/Authenticator/hooks/useFieldValues/useFieldValues.js +18 -4
  183. package/lib/InAppMessaging/index.js +0 -1
  184. package/lib/assets/icons/icons.ts +1 -1
  185. package/lib/version.js +1 -1
  186. package/package.json +4 -4
  187. package/src/Authenticator/Authenticator.tsx +4 -3
  188. package/src/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.tsx +1 -1
  189. package/src/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.tsx +1 -1
  190. package/src/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.tsx +1 -1
  191. package/src/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.tsx +1 -1
  192. package/src/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.tsx +1 -1
  193. package/src/Authenticator/Defaults/ForgotPassword/ForgotPassword.tsx +1 -1
  194. package/src/Authenticator/Defaults/SelectMfaType/SelectMfaType.tsx +1 -1
  195. package/src/Authenticator/Defaults/SetupEmail/SetupEmail.tsx +1 -1
  196. package/src/Authenticator/Defaults/SetupTotp/SetupTotp.tsx +1 -1
  197. package/src/Authenticator/Defaults/SetupTotp/styles.ts +2 -1
  198. package/src/Authenticator/Defaults/SignIn/SignIn.tsx +1 -1
  199. package/src/Authenticator/Defaults/SignUp/SignUp.tsx +1 -1
  200. package/src/Authenticator/Defaults/VerifyUser/VerifyUser.tsx +1 -1
  201. package/src/Authenticator/Defaults/index.ts +1 -1
  202. package/src/Authenticator/Defaults/types.ts +2 -2
  203. package/src/Authenticator/common/DefaultContainer/DefaultContainer.tsx +1 -1
  204. package/src/Authenticator/common/DefaultContainer/InnerContainer.tsx +1 -1
  205. package/src/Authenticator/common/DefaultContainer/index.ts +1 -1
  206. package/src/Authenticator/common/DefaultContainer/styles.ts +4 -3
  207. package/src/Authenticator/common/DefaultContainer/types.ts +2 -2
  208. package/src/Authenticator/common/DefaultContent/DefaultContent.tsx +4 -3
  209. package/src/Authenticator/common/DefaultContent/styles.ts +2 -2
  210. package/src/Authenticator/common/DefaultContent/types.ts +7 -7
  211. package/src/Authenticator/common/DefaultFooter/DefaultFooter.tsx +1 -1
  212. package/src/Authenticator/common/DefaultFooter/index.ts +1 -1
  213. package/src/Authenticator/common/DefaultFooter/types.ts +1 -1
  214. package/src/Authenticator/common/DefaultFormFields/DefaultSelectMfaTypeFormFields.tsx +1 -1
  215. package/src/Authenticator/common/DefaultFormFields/DefaultTextFormFields.tsx +1 -1
  216. package/src/Authenticator/common/DefaultFormFields/DefaultVerifyUserFormFields.tsx +3 -2
  217. package/src/Authenticator/common/DefaultFormFields/Field.tsx +3 -2
  218. package/src/Authenticator/common/DefaultFormFields/FieldErrors.tsx +1 -1
  219. package/src/Authenticator/common/DefaultFormFields/index.ts +4 -1
  220. package/src/Authenticator/common/DefaultFormFields/types.ts +3 -3
  221. package/src/Authenticator/common/DefaultHeader/DefaultHeader.tsx +1 -1
  222. package/src/Authenticator/common/DefaultHeader/index.ts +1 -1
  223. package/src/Authenticator/common/DefaultHeader/types.ts +1 -1
  224. package/src/Authenticator/common/FederatedProviderButton/FederatedProviderButton.tsx +1 -1
  225. package/src/Authenticator/common/FederatedProviderButton/index.ts +1 -1
  226. package/src/Authenticator/common/FederatedProviderButton/types.ts +2 -2
  227. package/src/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.tsx +3 -6
  228. package/src/Authenticator/common/FederatedProviderButtons/styles.ts +2 -2
  229. package/src/Authenticator/common/FederatedProviderButtons/types.ts +2 -2
  230. package/src/Authenticator/hooks/types.ts +2 -1
  231. package/src/Authenticator/hooks/useFieldValues/types.ts +3 -3
  232. package/src/Authenticator/hooks/useFieldValues/useFieldValues.ts +27 -8
  233. package/src/Authenticator/hooks/useFieldValues/utils.ts +4 -4
  234. package/src/Authenticator/index.ts +5 -4
  235. package/src/Authenticator/types.ts +4 -4
  236. package/src/Authenticator/useAuthenticator.ts +4 -6
  237. package/src/Authenticator/withAuthenticator.tsx +1 -1
  238. package/src/InAppMessaging/components/BannerMessage/BannerMessage.tsx +3 -2
  239. package/src/InAppMessaging/components/BannerMessage/index.ts +1 -1
  240. package/src/InAppMessaging/components/BannerMessage/styles.ts +3 -3
  241. package/src/InAppMessaging/components/BannerMessage/types.ts +3 -3
  242. package/src/InAppMessaging/components/CarouselMessage/CarouselMessage.tsx +2 -2
  243. package/src/InAppMessaging/components/CarouselMessage/CarouselMessageItem.tsx +1 -1
  244. package/src/InAppMessaging/components/CarouselMessage/index.ts +1 -1
  245. package/src/InAppMessaging/components/CarouselMessage/styles.ts +6 -2
  246. package/src/InAppMessaging/components/CarouselMessage/types.ts +3 -3
  247. package/src/InAppMessaging/components/FullScreenMessage/FullScreenMessage.tsx +1 -1
  248. package/src/InAppMessaging/components/FullScreenMessage/index.ts +1 -1
  249. package/src/InAppMessaging/components/FullScreenMessage/styles.ts +3 -3
  250. package/src/InAppMessaging/components/FullScreenMessage/types.ts +2 -2
  251. package/src/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.tsx +5 -2
  252. package/src/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.ts +1 -1
  253. package/src/InAppMessaging/components/InAppMessageDisplay/index.ts +1 -1
  254. package/src/InAppMessaging/components/InAppMessageDisplay/types.ts +5 -5
  255. package/src/InAppMessaging/components/MessageLayout/MessageLayout.tsx +1 -1
  256. package/src/InAppMessaging/components/MessageLayout/types.ts +3 -3
  257. package/src/InAppMessaging/components/MessageWrapper/MessageWrapper.tsx +3 -2
  258. package/src/InAppMessaging/components/MessageWrapper/index.ts +1 -1
  259. package/src/InAppMessaging/components/MessageWrapper/styles.ts +1 -1
  260. package/src/InAppMessaging/components/MessageWrapper/types.ts +2 -2
  261. package/src/InAppMessaging/components/ModalMessage/ModalMessage.tsx +1 -1
  262. package/src/InAppMessaging/components/ModalMessage/index.ts +1 -1
  263. package/src/InAppMessaging/components/ModalMessage/styles.ts +3 -2
  264. package/src/InAppMessaging/components/ModalMessage/types.ts +2 -2
  265. package/src/InAppMessaging/components/index.ts +6 -5
  266. package/src/InAppMessaging/components/withInAppMessaging/withInAppMessaging.tsx +2 -1
  267. package/src/InAppMessaging/hooks/index.ts +4 -3
  268. package/src/InAppMessaging/hooks/useMessageImage/index.ts +1 -1
  269. package/src/InAppMessaging/hooks/useMessageImage/useMessageImage.ts +3 -2
  270. package/src/InAppMessaging/hooks/useMessageImage/utils.ts +2 -2
  271. package/src/InAppMessaging/hooks/useMessageProps/index.ts +1 -1
  272. package/src/InAppMessaging/hooks/useMessageProps/types.ts +4 -4
  273. package/src/InAppMessaging/hooks/useMessageProps/useMessageProps.ts +2 -2
  274. package/src/InAppMessaging/hooks/useMessageProps/utils.ts +2 -2
  275. package/src/InAppMessaging/index.ts +6 -5
  276. package/src/assets/icons/icons.ts +1 -1
  277. package/src/hooks/index.ts +2 -4
  278. package/src/hooks/useDeprecationWarning/useDeprecationWarning.ts +2 -4
  279. package/src/hooks/useDeviceOrientation/index.ts +2 -4
  280. package/src/hooks/useDeviceOrientation/useDeviceOrientation.ts +2 -1
  281. package/src/hooks/usePressableContainerStyles/usePressableContainerStyles.ts +1 -1
  282. package/src/index.ts +7 -5
  283. package/src/primitives/Button/Button.tsx +3 -2
  284. package/src/primitives/Button/index.ts +1 -1
  285. package/src/primitives/Button/styles.ts +2 -2
  286. package/src/primitives/Button/types.ts +6 -1
  287. package/src/primitives/Carousel/Carousel.tsx +3 -9
  288. package/src/primitives/Carousel/CarouselPageIndicator.tsx +1 -1
  289. package/src/primitives/Carousel/constants.ts +1 -1
  290. package/src/primitives/Carousel/index.ts +1 -1
  291. package/src/primitives/Carousel/styles.ts +1 -1
  292. package/src/primitives/Carousel/types.ts +1 -1
  293. package/src/primitives/Checkbox/Checkbox.tsx +3 -2
  294. package/src/primitives/Checkbox/styles.ts +3 -3
  295. package/src/primitives/Checkbox/types.ts +4 -4
  296. package/src/primitives/Divider/Divider.tsx +1 -1
  297. package/src/primitives/Divider/index.ts +1 -1
  298. package/src/primitives/Divider/styles.ts +2 -2
  299. package/src/primitives/Divider/types.ts +1 -1
  300. package/src/primitives/ErrorMessage/ErrorMessage.tsx +1 -1
  301. package/src/primitives/ErrorMessage/index.ts +1 -1
  302. package/src/primitives/ErrorMessage/styles.ts +2 -2
  303. package/src/primitives/ErrorMessage/types.ts +2 -2
  304. package/src/primitives/Heading/Heading.tsx +1 -1
  305. package/src/primitives/Heading/index.ts +1 -1
  306. package/src/primitives/Heading/styles.ts +2 -2
  307. package/src/primitives/Heading/types.ts +1 -1
  308. package/src/primitives/Icon/Icon.tsx +1 -1
  309. package/src/primitives/Icon/constants.ts +1 -1
  310. package/src/primitives/Icon/index.ts +1 -1
  311. package/src/primitives/Icon/styles.ts +2 -2
  312. package/src/primitives/Icon/types.ts +1 -1
  313. package/src/primitives/IconButton/IconButton.tsx +3 -2
  314. package/src/primitives/IconButton/index.ts +1 -1
  315. package/src/primitives/IconButton/styles.ts +2 -2
  316. package/src/primitives/IconButton/types.ts +1 -1
  317. package/src/primitives/Label/Label.tsx +1 -1
  318. package/src/primitives/Label/index.ts +1 -1
  319. package/src/primitives/Label/styles.ts +2 -2
  320. package/src/primitives/Label/types.ts +1 -1
  321. package/src/primitives/Label/utils.ts +2 -2
  322. package/src/primitives/PasswordField/PasswordField.tsx +1 -1
  323. package/src/primitives/PasswordField/index.ts +1 -1
  324. package/src/primitives/PasswordField/styles.ts +2 -2
  325. package/src/primitives/PasswordField/types.ts +3 -3
  326. package/src/primitives/PhoneNumberField/PhoneNumberField.tsx +1 -1
  327. package/src/primitives/PhoneNumberField/index.ts +1 -1
  328. package/src/primitives/PhoneNumberField/styles.ts +2 -2
  329. package/src/primitives/PhoneNumberField/types.ts +1 -1
  330. package/src/primitives/Radio/Radio.tsx +3 -7
  331. package/src/primitives/Radio/getRadioDimensions.ts +1 -1
  332. package/src/primitives/Radio/index.ts +1 -1
  333. package/src/primitives/Radio/styles.ts +2 -2
  334. package/src/primitives/Radio/types.ts +7 -2
  335. package/src/primitives/RadioGroup/RadioGroup.tsx +4 -3
  336. package/src/primitives/RadioGroup/index.ts +1 -1
  337. package/src/primitives/RadioGroup/styles.ts +2 -2
  338. package/src/primitives/RadioGroup/types.ts +2 -2
  339. package/src/primitives/Tabs/Tab.tsx +2 -2
  340. package/src/primitives/Tabs/Tabs.tsx +1 -1
  341. package/src/primitives/Tabs/index.ts +1 -1
  342. package/src/primitives/Tabs/styles.ts +4 -3
  343. package/src/primitives/Tabs/types.ts +2 -2
  344. package/src/primitives/TextField/TextField.tsx +3 -2
  345. package/src/primitives/TextField/index.ts +1 -1
  346. package/src/primitives/TextField/styles.ts +2 -2
  347. package/src/primitives/TextField/types.ts +7 -2
  348. package/src/theme/ThemeContext.tsx +1 -1
  349. package/src/theme/ThemeProvider.tsx +1 -1
  350. package/src/theme/createTheme.ts +1 -1
  351. package/src/theme/defaultTheme.ts +1 -1
  352. package/src/theme/types.ts +2 -2
  353. package/src/theme/useTheme.ts +1 -1
  354. package/src/version.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { ColorValue, ImageProps, ImageStyle } from 'react-native';
1
+ import type { ColorValue, ImageProps, ImageStyle } from 'react-native';
2
2
  export type Size = 'xs' | 'small' | 'medium' | 'large' | 'xl';
3
3
  export type IconSizes = Record<Size, number>;
4
4
  export interface IconStyles {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { IconButtonProps } from './types';
2
+ import type { IconButtonProps } from './types';
3
3
  export default function IconButton({ accessibilityRole, color, disabled, iconStyle, size, source, style, ...rest }: IconButtonProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { default as IconButton } from './IconButton';
2
- export { IconButtonProps, IconButtonStyles } from './types';
2
+ export type { IconButtonProps, IconButtonStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { IconButtonStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { IconButtonStyles } from './types';
3
3
  export declare const getThemedStyles: (theme: StrictTheme) => IconButtonStyles;
@@ -1,4 +1,4 @@
1
- import { ColorValue, ImageSourcePropType, ImageStyle, PressableProps, StyleProp, ViewStyle } from 'react-native';
1
+ import type { ColorValue, ImageSourcePropType, ImageStyle, PressableProps, StyleProp, ViewStyle } from 'react-native';
2
2
  export interface IconButtonStyles {
3
3
  container?: ViewStyle;
4
4
  disabled?: ViewStyle;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { LabelProps } from './types';
2
+ import type { LabelProps } from './types';
3
3
  export default function Label({ accessibilityRole, children, style, variant, ...rest }: LabelProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { default as Label } from './Label';
2
- export { LabelProps, LabelStyles } from './types';
2
+ export type { LabelProps, LabelStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { LabelStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { LabelStyles } from './types';
3
3
  export declare const getThemedStyles: (theme: StrictTheme) => LabelStyles;
@@ -1,4 +1,4 @@
1
- import { TextProps, TextStyle } from 'react-native';
1
+ import type { TextProps, TextStyle } from 'react-native';
2
2
  export interface LabelProps extends TextProps {
3
3
  /**
4
4
  * @description
@@ -1,5 +1,5 @@
1
- import { ViewStyle } from 'react-native';
2
- import { LabelPosition } from './types';
1
+ import type { ViewStyle } from 'react-native';
2
+ import type { LabelPosition } from './types';
3
3
  /**
4
4
  * The `flexDirection` value returned from `getFlexDirectionFromLabelPosition`
5
5
  * assumes a `Label` component follows the `Primary` component it labels inside
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { PasswordFieldProps } from './types';
2
+ import type { PasswordFieldProps } from './types';
3
3
  export default function PasswordField({ disabled, iconAccessibilityLabel, iconStyle, secureTextEntry, showPasswordButton, style, ...rest }: PasswordFieldProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { default as PasswordField } from './PasswordField';
2
- export { PasswordFieldProps, PasswordFieldStyles } from './types';
2
+ export type { PasswordFieldProps, PasswordFieldStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { PasswordFieldStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { PasswordFieldStyles } from './types';
3
3
  export declare const getThemedStyles: ({ components, tokens: { colors }, }: StrictTheme) => PasswordFieldStyles;
@@ -1,6 +1,6 @@
1
- import { ImageStyle } from 'react-native';
2
- import { IconButtonProps } from '../IconButton';
3
- import { TextFieldProps, TextFieldStyles } from '../TextField';
1
+ import type { ImageStyle } from 'react-native';
2
+ import type { IconButtonProps } from '../IconButton';
3
+ import type { TextFieldProps, TextFieldStyles } from '../TextField';
4
4
  export interface PasswordFieldProps extends TextFieldProps {
5
5
  /**
6
6
  * @description
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { PhoneNumberFieldProps } from './types';
2
+ import type { PhoneNumberFieldProps } from './types';
3
3
  export default function PhoneNumberField({ disabled, fieldStyle, labelStyle, style, ...rest }: PhoneNumberFieldProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { default as PhoneNumberField } from './PhoneNumberField';
2
- export { PhoneNumberFieldProps, PhoneNumberFieldStyles } from './types';
2
+ export type { PhoneNumberFieldProps, PhoneNumberFieldStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { PhoneNumberFieldStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { PhoneNumberFieldStyles } from './types';
3
3
  export declare const getThemedStyles: (theme: StrictTheme) => PhoneNumberFieldStyles;
@@ -1,4 +1,4 @@
1
- import { TextFieldProps, TextFieldStyles } from '../TextField';
1
+ import type { TextFieldProps, TextFieldStyles } from '../TextField';
2
2
  export interface PhoneNumberFieldProps extends Omit<TextFieldProps, 'secureTextEntry'> {
3
3
  }
4
4
  export interface PhoneNumberFieldStyles extends Partial<TextFieldStyles> {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { RadioProps } from './types';
2
+ import type { RadioProps } from './types';
3
3
  export declare const CONTAINER_TEST_ID = "amplify__radio-button__container";
4
4
  export declare const DOT_TEST_ID = "amplify__radio-button__dot";
5
5
  export default function Radio<T>({ accessibilityRole, disabled, label, labelPosition, labelStyle, onChange, onPress, radioContainerStyle, radioDotStyle, selected, size, style, value, ...rest }: RadioProps<T>): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
- import { Pressable, View, } from 'react-native';
2
+ import { Pressable, View } from 'react-native';
3
3
  import { useTheme } from '../../theme';
4
4
  import { Label } from '../Label';
5
5
  import { getFlexDirectionFromLabelPosition } from '../Label/utils';
@@ -1,4 +1,4 @@
1
- import { RadioDimensions, RadioStyles, Size } from './types';
1
+ import type { RadioDimensions, RadioStyles, Size } from './types';
2
2
  /**
3
3
  * These utility functions are used to apply styles to
4
4
  * the two nested View's comprising the Radio:
@@ -1,2 +1,2 @@
1
1
  export { default as Radio } from './Radio';
2
- export { RadioProps, RadioStyles } from './types';
2
+ export type { RadioProps, RadioStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { RadioStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { RadioStyles } from './types';
3
3
  export declare const getThemedStyles: (theme: StrictTheme) => Required<RadioStyles>;
@@ -1,5 +1,5 @@
1
- import { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
2
- import { LabelPosition } from '../Label/types';
1
+ import type { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
2
+ import type { LabelPosition } from '../Label/types';
3
3
  export type Size = number | 'small' | 'medium' | 'large';
4
4
  export interface RadioProps<T> extends PressableProps {
5
5
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { RadioGroupProps } from './types';
2
+ import type { RadioGroupProps } from './types';
3
3
  export declare const RADIO_GROUP_CONTAINER_TEST_ID = "amplify__radio-group__container";
4
4
  export default function RadioGroup<T>({ accessible, accessibilityRole, children, direction, disabled, initialValue, label, labelPosition, labelStyle, onChange, onValueChange, size, style, ...rest }: RadioGroupProps<T>): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { default as RadioGroup } from './RadioGroup';
2
- export { RadioGroupProps, RadioGroupStyles } from './types';
2
+ export type { RadioGroupProps, RadioGroupStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { RadioGroupStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { RadioGroupStyles } from './types';
3
3
  export declare const getThemedStyles: (theme: StrictTheme) => RadioGroupStyles;
@@ -1,5 +1,5 @@
1
- import { TextStyle, ViewProps, ViewStyle } from 'react-native';
2
- import { RadioProps } from '../Radio';
1
+ import type { TextStyle, ViewProps, ViewStyle } from 'react-native';
2
+ import type { RadioProps } from '../Radio';
3
3
  export type Direction = 'vertical' | 'horizontal';
4
4
  export interface RadioGroupProps<T> extends Pick<RadioProps<T>, 'accessibilityRole' | 'disabled' | 'label' | 'labelPosition' | 'labelStyle' | 'onChange' | 'size'>, ViewProps {
5
5
  children: React.ReactElement<RadioProps<T>>[];
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { TabProps } from './types';
2
+ import type { TabProps } from './types';
3
3
  export default function Tab({ children, selected, style, textStyle, indicatorPosition, ...rest }: TabProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { TabsProps } from './types';
2
+ import type { TabsProps } from './types';
3
3
  export default function Tabs({ accessible, accessibilityRole, children, indicatorPosition, onChange, selectedIndex, style, ...rest }: TabsProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export { default as Tab } from './Tab';
2
2
  export { default as Tabs } from './Tabs';
3
- export { TabProps, TabsProps, TabsStyles } from './types';
3
+ export type { TabProps, TabsProps, TabsStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { TabsProps, TabsStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { TabsProps, TabsStyles } from './types';
3
3
  export declare const getThemedStyles: (theme: StrictTheme, indicatorPosition?: TabsProps['indicatorPosition']) => TabsStyles;
@@ -1,5 +1,5 @@
1
- import { TextStyle, ViewProps, ViewStyle } from 'react-native';
2
- import { ButtonProps } from '../Button';
1
+ import type { TextStyle, ViewProps, ViewStyle } from 'react-native';
2
+ import type { ButtonProps } from '../Button';
3
3
  type IndicatorPosition = 'top' | 'bottom';
4
4
  export interface TabsProps extends ViewProps {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextFieldProps } from './types';
2
+ import type { TextFieldProps } from './types';
3
3
  export declare const TEXTFIELD_CONTAINER_TEST_ID = "amplify__text-field-container";
4
4
  export declare const INPUT_CONTAINER_TEST_ID = "amplify__text-field__input-container";
5
5
  export default function TextField({ accessibilityLabel, accessibilityRole, accessibilityState, accessible, autoCapitalize, disabled, endAccessory, error, errorMessage, errorMessageStyle, fieldStyle, label, labelStyle, style, ...rest }: TextFieldProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { default as TextField } from './TextField';
2
- export { TextFieldProps, TextFieldStyles } from './types';
2
+ export type { TextFieldProps, TextFieldStyles } from './types';
@@ -1,3 +1,3 @@
1
- import { StrictTheme } from '../../theme';
2
- import { TextFieldStyles } from './types';
1
+ import type { StrictTheme } from '../../theme';
2
+ import type { TextFieldStyles } from './types';
3
3
  export declare const getThemedStyles: (theme: StrictTheme) => TextFieldStyles;
@@ -1,5 +1,5 @@
1
- import { StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native';
2
- import { LabelProps } from '../Label/types';
1
+ import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native';
2
+ import type { LabelProps } from '../Label/types';
3
3
  export interface TextFieldProps extends Omit<TextInputProps, 'editable'> {
4
4
  /**
5
5
  * @description
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { StrictTheme } from './types';
2
+ import type { StrictTheme } from './types';
3
3
  export interface ThemeContextType {
4
4
  theme: StrictTheme;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ColorMode, Theme } from './types';
2
+ import type { ColorMode, Theme } from './types';
3
3
  interface ThemeProviderProps {
4
4
  children: React.ReactNode;
5
5
  theme?: Theme;
@@ -1,4 +1,4 @@
1
- import { Theme, StrictTheme, ColorMode } from './types';
1
+ import type { Theme, StrictTheme, ColorMode } from './types';
2
2
  /**
3
3
  * This will be used like `const myTheme = createTheme({})`
4
4
  * `myTheme` can then be passed to a Provider
@@ -1,3 +1,3 @@
1
- import { DefaultTheme, Override } from './types';
1
+ import type { DefaultTheme, Override } from './types';
2
2
  export declare const defaultTheme: DefaultTheme;
3
3
  export declare const defaultDarkModeOverride: Override;
@@ -1,5 +1,5 @@
1
- import { ReactNativeTokens } from '@aws-amplify/ui';
2
- import { ButtonStyles, CheckboxStyles, DividerStyles, ErrorMessageStyles, HeadingStyles, IconStyles, IconButtonStyles, LabelStyles, PasswordFieldStyles, PhoneNumberFieldStyles, RadioStyles, RadioGroupStyles, TabsStyles, TextFieldStyles } from '../primitives';
1
+ import type { ReactNativeTokens } from '@aws-amplify/ui';
2
+ import type { ButtonStyles, CheckboxStyles, DividerStyles, ErrorMessageStyles, HeadingStyles, IconStyles, IconButtonStyles, LabelStyles, PasswordFieldStyles, PhoneNumberFieldStyles, RadioStyles, RadioGroupStyles, TabsStyles, TextFieldStyles } from '../primitives';
3
3
  type ComponentTheme<ComponentType, Output> = Output extends 'output' ? ComponentType : ((tokens: StrictTheme['tokens']) => ComponentType) | ComponentType;
4
4
  export type Components<Output extends 'input' | 'output' | unknown = unknown> = {
5
5
  button?: ComponentTheme<ButtonStyles, Output>;
@@ -1,2 +1,2 @@
1
- import { StrictTheme } from './types';
1
+ import type { StrictTheme } from './types';
2
2
  export declare const useTheme: () => StrictTheme;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "2.5.2";
1
+ export declare const VERSION = "2.6.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.5.2';
1
+ export const VERSION = '2.6.0';
@@ -6,6 +6,7 @@ const utils_2 = require("./utils");
6
6
  const logger = new utils_1.ConsoleLogger('Authenticator');
7
7
  function useFieldValues({ componentName, fields = [], handleBlur, handleChange, handleSubmit, validationErrors, }) {
8
8
  const [touched, setTouched] = (0, react_1.useState)({});
9
+ const lastProcessed = (0, react_1.useRef)();
9
10
  const [fieldValidationErrors, setFieldValidationErrors] = (0, react_1.useState)({});
10
11
  const isVerifyUserRoute = componentName === 'VerifyUser';
11
12
  const isSelectMfaTypeRoute = componentName === 'SelectMfaType';
@@ -80,9 +81,10 @@ function useFieldValues({ componentName, fields = [], handleBlur, handleChange,
80
81
  [name]: (0, utils_2.runFieldValidation)(field, values[name], validationErrors),
81
82
  });
82
83
  };
83
- const onChangeText = (value) => {
84
- // call `onChangeText` passed as text `field` option
85
- field.onChangeText?.(value);
84
+ const reportChange = (value) => {
85
+ if (lastProcessed.current === `${name}:${value}`) {
86
+ return;
87
+ }
86
88
  // call machine change handler
87
89
  handleChange({ name, value });
88
90
  if (touched[name]) {
@@ -91,12 +93,24 @@ function useFieldValues({ componentName, fields = [], handleBlur, handleChange,
91
93
  [name]: (0, utils_2.runFieldValidation)(field, value, validationErrors),
92
94
  });
93
95
  }
94
- setValues({ ...values, [name]: value });
96
+ lastProcessed.current = `${name}:${value}`;
97
+ setValues((prev) => ({ ...prev, [name]: value }));
98
+ };
99
+ const onChangeText = (value) => {
100
+ // call `onChangeText` passed as text `field` option
101
+ field.onChangeText?.(value);
102
+ reportChange(value);
103
+ };
104
+ const onChange = (event) => {
105
+ // call `onChange` passed as text `field` option
106
+ field.onChange?.(event);
107
+ reportChange(event.nativeEvent.text ?? '');
95
108
  };
96
109
  return {
97
110
  ...rest,
98
111
  label: labelHidden ? undefined : label,
99
112
  onBlur,
113
+ onChange,
100
114
  onChangeText,
101
115
  name,
102
116
  value: values[name],
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withInAppMessaging = exports.InAppMessageDisplay = exports.useInAppMessaging = exports.InAppMessagingProvider = void 0;
4
- // re-export in-app types from '@aws-amplify/ui-react-core-notifications'
5
4
  var ui_react_core_notifications_1 = require("@aws-amplify/ui-react-core-notifications");
6
5
  Object.defineProperty(exports, "InAppMessagingProvider", { enumerable: true, get: function () { return ui_react_core_notifications_1.InAppMessagingProvider; } });
7
6
  Object.defineProperty(exports, "useInAppMessaging", { enumerable: true, get: function () { return ui_react_core_notifications_1.useInAppMessaging; } });
@@ -1,7 +1,7 @@
1
1
  // disable `@typescript-eslint/no-var-requires` for this file
2
2
  // .png icons will be removed in favor of .svg icons
3
3
  /* eslint-disable @typescript-eslint/no-var-requires */
4
- import { ImageSourcePropType } from 'react-native';
4
+ import type { ImageSourcePropType } from 'react-native';
5
5
 
6
6
  const icons = {
7
7
  amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '2.5.2';
4
+ exports.VERSION = '2.6.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-native",
3
- "version": "2.5.2",
3
+ "version": "2.6.0",
4
4
  "main": "lib/index.js",
5
5
  "module": "dist/index.js",
6
6
  "react-native": "src/index.ts",
@@ -30,9 +30,9 @@
30
30
  "react-native-safe-area-context": "^5.2.0"
31
31
  },
32
32
  "dependencies": {
33
- "@aws-amplify/ui": "6.10.2",
34
- "@aws-amplify/ui-react-core": "3.4.2",
35
- "@aws-amplify/ui-react-core-notifications": "2.2.8"
33
+ "@aws-amplify/ui": "6.10.3",
34
+ "@aws-amplify/ui-react-core": "3.4.3",
35
+ "@aws-amplify/ui-react-core-notifications": "2.2.9"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "aws-amplify": "^6.14.3",
@@ -1,9 +1,9 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { SafeAreaProvider } from 'react-native-safe-area-context';
3
3
 
4
+ import type { AuthenticatorMachineContext } from '@aws-amplify/ui-react-core';
4
5
  import {
5
6
  AuthenticatorProvider as Provider,
6
- AuthenticatorMachineContext,
7
7
  resolveAuthenticatorComponents,
8
8
  useAuthenticator,
9
9
  useAuthenticatorRoute,
@@ -13,8 +13,9 @@ import {
13
13
 
14
14
  import { useDeprecationWarning } from '../hooks';
15
15
  import { DefaultContainer, InnerContainer } from './common';
16
- import { TypedField, getRouteTypedFields } from './hooks';
17
- import { AuthenticatorProps } from './types';
16
+ import type { TypedField } from './hooks';
17
+ import { getRouteTypedFields } from './hooks';
18
+ import type { AuthenticatorProps } from './types';
18
19
  import { VERSION } from '../version';
19
20
 
20
21
  import {
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultConfirmResetPasswordProps } from '../types';
12
+ import type { DefaultConfirmResetPasswordProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'ConfirmResetPassword';
15
15
 
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultConfirmSignInProps } from '../types';
12
+ import type { DefaultConfirmSignInProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'ConfirmSignIn';
15
15
 
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultConfirmSignUpProps } from '../types';
12
+ import type { DefaultConfirmSignUpProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'ConfirmSignUp';
15
15
 
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultConfirmVerifyUserProps } from '../types';
12
+ import type { DefaultConfirmVerifyUserProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'ConfirmVerifyUser';
15
15
 
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultForceNewPasswordProps } from '../types';
12
+ import type { DefaultForceNewPasswordProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'ForceNewPassword';
15
15
 
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultForgotPasswordProps } from '../types';
12
+ import type { DefaultForgotPasswordProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'ForgotPassword';
15
15
  const {
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultSelectMfaTypeProps } from '../types';
12
+ import type { DefaultSelectMfaTypeProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'SelectMfaType';
15
15
 
@@ -9,7 +9,7 @@ import {
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
11
 
12
- import { DefaultSetupEmailProps } from '../types';
12
+ import type { DefaultSetupEmailProps } from '../types';
13
13
 
14
14
  const COMPONENT_NAME = 'SetupEmail';
15
15
 
@@ -12,7 +12,7 @@ import {
12
12
  } from '../../common';
13
13
  import { useFieldValues } from '../../hooks';
14
14
 
15
- import { DefaultSetupTotpProps } from '../types';
15
+ import type { DefaultSetupTotpProps } from '../types';
16
16
  import { styles } from './styles';
17
17
 
18
18
  const COMPONENT_NAME = 'SetupTotp';
@@ -1,4 +1,5 @@
1
- import { StyleSheet, TextStyle } from 'react-native';
1
+ import type { TextStyle } from 'react-native';
2
+ import { StyleSheet } from 'react-native';
2
3
 
3
4
  export interface SetupTotpStyle {
4
5
  secretKeyText: TextStyle;
@@ -10,7 +10,7 @@ import {
10
10
  } from '../../common';
11
11
  import { useFieldValues } from '../../hooks';
12
12
 
13
- import { DefaultSignInProps } from '../types';
13
+ import type { DefaultSignInProps } from '../types';
14
14
 
15
15
  const COMPONENT_NAME = 'SignIn';
16
16
 
@@ -10,7 +10,7 @@ import {
10
10
  } from '../../common';
11
11
  import { useFieldValues } from '../../hooks';
12
12
 
13
- import { DefaultSignUpProps } from '../types';
13
+ import type { DefaultSignUpProps } from '../types';
14
14
 
15
15
  const COMPONENT_NAME = 'SignUp';
16
16
 
@@ -8,7 +8,7 @@ import {
8
8
  DefaultVerifyUserFormFields,
9
9
  } from '../../common';
10
10
  import { useFieldValues } from '../../hooks';
11
- import { DefaultVerifyUserProps } from '../types';
11
+ import type { DefaultVerifyUserProps } from '../types';
12
12
 
13
13
  const COMPONENT_NAME = 'VerifyUser';
14
14
 
@@ -10,7 +10,7 @@ export { SignUp } from './SignUp';
10
10
  export { VerifyUser } from './VerifyUser';
11
11
  export { SelectMfaType } from './SelectMfaType';
12
12
  export { SetupEmail } from './SetupEmail';
13
- export {
13
+ export type {
14
14
  Components,
15
15
  DefaultComponents,
16
16
  ConfirmResetPasswordProps,
@@ -1,8 +1,8 @@
1
- import {
1
+ import type {
2
2
  AuthenticatorComponentOverrides,
3
3
  AuthenticatorComponentDefaults,
4
4
  } from '@aws-amplify/ui-react-core';
5
- import { RadioFieldOptions, TextFieldOptionsType } from '../hooks';
5
+ import type { RadioFieldOptions, TextFieldOptionsType } from '../hooks';
6
6
 
7
7
  // TODO fill these interfaces with custom style override types
8
8
  export interface ConfirmResetPasswordStyle {}
@@ -6,7 +6,7 @@ import { useTheme } from '../../../theme';
6
6
  import { platform } from '../../../utils';
7
7
 
8
8
  import { getThemedStyles } from './styles';
9
- import { ContainerProps } from './types';
9
+ import type { ContainerProps } from './types';
10
10
 
11
11
  // prevent bounce when `ScrollView` content is less than height of screnn
12
12
  const ALWAYS_BOUNCE_VERTICAL = false;