@aws-amplify/ui-react-native 2.5.2 → 2.5.3

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 (352) 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 +1 -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/utils.d.ts +3 -3
  50. package/dist/Authenticator/hooks/useFieldValues/utils.js +1 -1
  51. package/dist/Authenticator/index.d.ts +5 -4
  52. package/dist/Authenticator/types.d.ts +4 -4
  53. package/dist/Authenticator/useAuthenticator.d.ts +3 -2
  54. package/dist/Authenticator/useAuthenticator.js +1 -1
  55. package/dist/Authenticator/withAuthenticator.d.ts +1 -1
  56. package/dist/InAppMessaging/components/BannerMessage/BannerMessage.d.ts +1 -1
  57. package/dist/InAppMessaging/components/BannerMessage/index.d.ts +1 -1
  58. package/dist/InAppMessaging/components/BannerMessage/styles.d.ts +3 -3
  59. package/dist/InAppMessaging/components/BannerMessage/types.d.ts +3 -3
  60. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.d.ts +1 -1
  61. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.d.ts +1 -1
  62. package/dist/InAppMessaging/components/CarouselMessage/index.d.ts +1 -1
  63. package/dist/InAppMessaging/components/CarouselMessage/styles.d.ts +2 -2
  64. package/dist/InAppMessaging/components/CarouselMessage/types.d.ts +3 -3
  65. package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.d.ts +1 -1
  66. package/dist/InAppMessaging/components/FullScreenMessage/index.d.ts +1 -1
  67. package/dist/InAppMessaging/components/FullScreenMessage/styles.d.ts +1 -1
  68. package/dist/InAppMessaging/components/FullScreenMessage/types.d.ts +2 -2
  69. package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.d.ts +1 -1
  70. package/dist/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.d.ts +1 -1
  71. package/dist/InAppMessaging/components/InAppMessageDisplay/index.d.ts +1 -1
  72. package/dist/InAppMessaging/components/InAppMessageDisplay/types.d.ts +5 -5
  73. package/dist/InAppMessaging/components/MessageLayout/MessageLayout.d.ts +1 -1
  74. package/dist/InAppMessaging/components/MessageLayout/types.d.ts +3 -3
  75. package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.d.ts +1 -1
  76. package/dist/InAppMessaging/components/MessageWrapper/index.d.ts +1 -1
  77. package/dist/InAppMessaging/components/MessageWrapper/styles.d.ts +1 -1
  78. package/dist/InAppMessaging/components/MessageWrapper/types.d.ts +2 -2
  79. package/dist/InAppMessaging/components/ModalMessage/ModalMessage.d.ts +1 -1
  80. package/dist/InAppMessaging/components/ModalMessage/index.d.ts +1 -1
  81. package/dist/InAppMessaging/components/ModalMessage/styles.d.ts +2 -2
  82. package/dist/InAppMessaging/components/ModalMessage/types.d.ts +2 -2
  83. package/dist/InAppMessaging/components/index.d.ts +6 -5
  84. package/dist/InAppMessaging/components/withInAppMessaging/withInAppMessaging.d.ts +1 -1
  85. package/dist/InAppMessaging/hooks/index.d.ts +4 -2
  86. package/dist/InAppMessaging/hooks/index.js +1 -1
  87. package/dist/InAppMessaging/hooks/useMessageImage/index.d.ts +1 -1
  88. package/dist/InAppMessaging/hooks/useMessageImage/useMessageImage.d.ts +2 -2
  89. package/dist/InAppMessaging/hooks/useMessageImage/utils.d.ts +2 -2
  90. package/dist/InAppMessaging/hooks/useMessageProps/index.d.ts +1 -1
  91. package/dist/InAppMessaging/hooks/useMessageProps/types.d.ts +4 -4
  92. package/dist/InAppMessaging/hooks/useMessageProps/useMessageProps.d.ts +2 -2
  93. package/dist/InAppMessaging/hooks/useMessageProps/utils.d.ts +2 -2
  94. package/dist/InAppMessaging/index.d.ts +4 -2
  95. package/dist/InAppMessaging/index.js +1 -2
  96. package/dist/assets/icons/icons.d.ts +1 -1
  97. package/dist/assets/icons/icons.ts +1 -1
  98. package/dist/hooks/index.d.ts +2 -1
  99. package/dist/hooks/index.js +1 -1
  100. package/dist/hooks/useDeprecationWarning/useDeprecationWarning.d.ts +1 -1
  101. package/dist/hooks/useDeprecationWarning/useDeprecationWarning.js +1 -1
  102. package/dist/hooks/useDeviceOrientation/index.d.ts +2 -1
  103. package/dist/hooks/useDeviceOrientation/index.js +1 -1
  104. package/dist/hooks/usePressableContainerStyles/usePressableContainerStyles.d.ts +1 -1
  105. package/dist/index.d.ts +4 -2
  106. package/dist/primitives/Button/Button.d.ts +1 -1
  107. package/dist/primitives/Button/index.d.ts +1 -1
  108. package/dist/primitives/Button/styles.d.ts +2 -2
  109. package/dist/primitives/Button/types.d.ts +1 -1
  110. package/dist/primitives/Carousel/Carousel.d.ts +1 -1
  111. package/dist/primitives/Carousel/Carousel.js +1 -1
  112. package/dist/primitives/Carousel/CarouselPageIndicator.d.ts +1 -1
  113. package/dist/primitives/Carousel/constants.d.ts +1 -1
  114. package/dist/primitives/Carousel/index.d.ts +1 -1
  115. package/dist/primitives/Carousel/styles.d.ts +1 -1
  116. package/dist/primitives/Carousel/types.d.ts +1 -1
  117. package/dist/primitives/Checkbox/Checkbox.d.ts +1 -1
  118. package/dist/primitives/Checkbox/styles.d.ts +3 -3
  119. package/dist/primitives/Checkbox/types.d.ts +4 -4
  120. package/dist/primitives/Divider/Divider.d.ts +1 -1
  121. package/dist/primitives/Divider/index.d.ts +1 -1
  122. package/dist/primitives/Divider/styles.d.ts +2 -2
  123. package/dist/primitives/Divider/types.d.ts +1 -1
  124. package/dist/primitives/ErrorMessage/ErrorMessage.d.ts +1 -1
  125. package/dist/primitives/ErrorMessage/index.d.ts +1 -1
  126. package/dist/primitives/ErrorMessage/styles.d.ts +2 -2
  127. package/dist/primitives/ErrorMessage/types.d.ts +2 -2
  128. package/dist/primitives/Heading/Heading.d.ts +1 -1
  129. package/dist/primitives/Heading/index.d.ts +1 -1
  130. package/dist/primitives/Heading/styles.d.ts +2 -2
  131. package/dist/primitives/Heading/types.d.ts +1 -1
  132. package/dist/primitives/Icon/Icon.d.ts +1 -1
  133. package/dist/primitives/Icon/constants.d.ts +1 -1
  134. package/dist/primitives/Icon/index.d.ts +1 -1
  135. package/dist/primitives/Icon/styles.d.ts +2 -2
  136. package/dist/primitives/Icon/types.d.ts +1 -1
  137. package/dist/primitives/IconButton/IconButton.d.ts +1 -1
  138. package/dist/primitives/IconButton/index.d.ts +1 -1
  139. package/dist/primitives/IconButton/styles.d.ts +2 -2
  140. package/dist/primitives/IconButton/types.d.ts +1 -1
  141. package/dist/primitives/Label/Label.d.ts +1 -1
  142. package/dist/primitives/Label/index.d.ts +1 -1
  143. package/dist/primitives/Label/styles.d.ts +2 -2
  144. package/dist/primitives/Label/types.d.ts +1 -1
  145. package/dist/primitives/Label/utils.d.ts +2 -2
  146. package/dist/primitives/PasswordField/PasswordField.d.ts +1 -1
  147. package/dist/primitives/PasswordField/index.d.ts +1 -1
  148. package/dist/primitives/PasswordField/styles.d.ts +2 -2
  149. package/dist/primitives/PasswordField/types.d.ts +3 -3
  150. package/dist/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
  151. package/dist/primitives/PhoneNumberField/index.d.ts +1 -1
  152. package/dist/primitives/PhoneNumberField/styles.d.ts +2 -2
  153. package/dist/primitives/PhoneNumberField/types.d.ts +1 -1
  154. package/dist/primitives/Radio/Radio.d.ts +1 -1
  155. package/dist/primitives/Radio/Radio.js +1 -1
  156. package/dist/primitives/Radio/getRadioDimensions.d.ts +1 -1
  157. package/dist/primitives/Radio/index.d.ts +1 -1
  158. package/dist/primitives/Radio/styles.d.ts +2 -2
  159. package/dist/primitives/Radio/types.d.ts +2 -2
  160. package/dist/primitives/RadioGroup/RadioGroup.d.ts +1 -1
  161. package/dist/primitives/RadioGroup/index.d.ts +1 -1
  162. package/dist/primitives/RadioGroup/styles.d.ts +2 -2
  163. package/dist/primitives/RadioGroup/types.d.ts +2 -2
  164. package/dist/primitives/Tabs/Tab.d.ts +1 -1
  165. package/dist/primitives/Tabs/Tabs.d.ts +1 -1
  166. package/dist/primitives/Tabs/index.d.ts +1 -1
  167. package/dist/primitives/Tabs/styles.d.ts +2 -2
  168. package/dist/primitives/Tabs/types.d.ts +2 -2
  169. package/dist/primitives/TextField/TextField.d.ts +1 -1
  170. package/dist/primitives/TextField/index.d.ts +1 -1
  171. package/dist/primitives/TextField/styles.d.ts +2 -2
  172. package/dist/primitives/TextField/types.d.ts +2 -2
  173. package/dist/theme/ThemeContext.d.ts +1 -1
  174. package/dist/theme/ThemeProvider.d.ts +1 -1
  175. package/dist/theme/createTheme.d.ts +1 -1
  176. package/dist/theme/defaultTheme.d.ts +1 -1
  177. package/dist/theme/types.d.ts +2 -2
  178. package/dist/theme/useTheme.d.ts +1 -1
  179. package/dist/version.d.ts +1 -1
  180. package/dist/version.js +1 -1
  181. package/lib/InAppMessaging/index.js +0 -1
  182. package/lib/assets/icons/icons.ts +1 -1
  183. package/lib/version.js +1 -1
  184. package/package.json +4 -4
  185. package/src/Authenticator/Authenticator.tsx +4 -3
  186. package/src/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.tsx +1 -1
  187. package/src/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.tsx +1 -1
  188. package/src/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.tsx +1 -1
  189. package/src/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.tsx +1 -1
  190. package/src/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.tsx +1 -1
  191. package/src/Authenticator/Defaults/ForgotPassword/ForgotPassword.tsx +1 -1
  192. package/src/Authenticator/Defaults/SelectMfaType/SelectMfaType.tsx +1 -1
  193. package/src/Authenticator/Defaults/SetupEmail/SetupEmail.tsx +1 -1
  194. package/src/Authenticator/Defaults/SetupTotp/SetupTotp.tsx +1 -1
  195. package/src/Authenticator/Defaults/SetupTotp/styles.ts +2 -1
  196. package/src/Authenticator/Defaults/SignIn/SignIn.tsx +1 -1
  197. package/src/Authenticator/Defaults/SignUp/SignUp.tsx +1 -1
  198. package/src/Authenticator/Defaults/VerifyUser/VerifyUser.tsx +1 -1
  199. package/src/Authenticator/Defaults/index.ts +1 -1
  200. package/src/Authenticator/Defaults/types.ts +2 -2
  201. package/src/Authenticator/common/DefaultContainer/DefaultContainer.tsx +1 -1
  202. package/src/Authenticator/common/DefaultContainer/InnerContainer.tsx +1 -1
  203. package/src/Authenticator/common/DefaultContainer/index.ts +1 -1
  204. package/src/Authenticator/common/DefaultContainer/styles.ts +4 -3
  205. package/src/Authenticator/common/DefaultContainer/types.ts +2 -2
  206. package/src/Authenticator/common/DefaultContent/DefaultContent.tsx +4 -3
  207. package/src/Authenticator/common/DefaultContent/styles.ts +2 -2
  208. package/src/Authenticator/common/DefaultContent/types.ts +7 -7
  209. package/src/Authenticator/common/DefaultFooter/DefaultFooter.tsx +1 -1
  210. package/src/Authenticator/common/DefaultFooter/index.ts +1 -1
  211. package/src/Authenticator/common/DefaultFooter/types.ts +1 -1
  212. package/src/Authenticator/common/DefaultFormFields/DefaultSelectMfaTypeFormFields.tsx +1 -1
  213. package/src/Authenticator/common/DefaultFormFields/DefaultTextFormFields.tsx +1 -1
  214. package/src/Authenticator/common/DefaultFormFields/DefaultVerifyUserFormFields.tsx +3 -2
  215. package/src/Authenticator/common/DefaultFormFields/Field.tsx +3 -2
  216. package/src/Authenticator/common/DefaultFormFields/FieldErrors.tsx +1 -1
  217. package/src/Authenticator/common/DefaultFormFields/index.ts +4 -1
  218. package/src/Authenticator/common/DefaultFormFields/types.ts +3 -3
  219. package/src/Authenticator/common/DefaultHeader/DefaultHeader.tsx +1 -1
  220. package/src/Authenticator/common/DefaultHeader/index.ts +1 -1
  221. package/src/Authenticator/common/DefaultHeader/types.ts +1 -1
  222. package/src/Authenticator/common/FederatedProviderButton/FederatedProviderButton.tsx +1 -1
  223. package/src/Authenticator/common/FederatedProviderButton/index.ts +1 -1
  224. package/src/Authenticator/common/FederatedProviderButton/types.ts +2 -2
  225. package/src/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.tsx +3 -6
  226. package/src/Authenticator/common/FederatedProviderButtons/styles.ts +2 -2
  227. package/src/Authenticator/common/FederatedProviderButtons/types.ts +2 -2
  228. package/src/Authenticator/hooks/types.ts +1 -1
  229. package/src/Authenticator/hooks/useFieldValues/types.ts +3 -3
  230. package/src/Authenticator/hooks/useFieldValues/useFieldValues.ts +3 -3
  231. package/src/Authenticator/hooks/useFieldValues/utils.ts +4 -4
  232. package/src/Authenticator/index.ts +5 -4
  233. package/src/Authenticator/types.ts +4 -4
  234. package/src/Authenticator/useAuthenticator.ts +4 -6
  235. package/src/Authenticator/withAuthenticator.tsx +1 -1
  236. package/src/InAppMessaging/components/BannerMessage/BannerMessage.tsx +3 -2
  237. package/src/InAppMessaging/components/BannerMessage/index.ts +1 -1
  238. package/src/InAppMessaging/components/BannerMessage/styles.ts +3 -3
  239. package/src/InAppMessaging/components/BannerMessage/types.ts +3 -3
  240. package/src/InAppMessaging/components/CarouselMessage/CarouselMessage.tsx +2 -2
  241. package/src/InAppMessaging/components/CarouselMessage/CarouselMessageItem.tsx +1 -1
  242. package/src/InAppMessaging/components/CarouselMessage/index.ts +1 -1
  243. package/src/InAppMessaging/components/CarouselMessage/styles.ts +6 -2
  244. package/src/InAppMessaging/components/CarouselMessage/types.ts +3 -3
  245. package/src/InAppMessaging/components/FullScreenMessage/FullScreenMessage.tsx +1 -1
  246. package/src/InAppMessaging/components/FullScreenMessage/index.ts +1 -1
  247. package/src/InAppMessaging/components/FullScreenMessage/styles.ts +3 -3
  248. package/src/InAppMessaging/components/FullScreenMessage/types.ts +2 -2
  249. package/src/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.tsx +5 -2
  250. package/src/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.ts +1 -1
  251. package/src/InAppMessaging/components/InAppMessageDisplay/index.ts +1 -1
  252. package/src/InAppMessaging/components/InAppMessageDisplay/types.ts +5 -5
  253. package/src/InAppMessaging/components/MessageLayout/MessageLayout.tsx +1 -1
  254. package/src/InAppMessaging/components/MessageLayout/types.ts +3 -3
  255. package/src/InAppMessaging/components/MessageWrapper/MessageWrapper.tsx +3 -2
  256. package/src/InAppMessaging/components/MessageWrapper/index.ts +1 -1
  257. package/src/InAppMessaging/components/MessageWrapper/styles.ts +1 -1
  258. package/src/InAppMessaging/components/MessageWrapper/types.ts +2 -2
  259. package/src/InAppMessaging/components/ModalMessage/ModalMessage.tsx +1 -1
  260. package/src/InAppMessaging/components/ModalMessage/index.ts +1 -1
  261. package/src/InAppMessaging/components/ModalMessage/styles.ts +3 -2
  262. package/src/InAppMessaging/components/ModalMessage/types.ts +2 -2
  263. package/src/InAppMessaging/components/index.ts +6 -5
  264. package/src/InAppMessaging/components/withInAppMessaging/withInAppMessaging.tsx +2 -1
  265. package/src/InAppMessaging/hooks/index.ts +4 -3
  266. package/src/InAppMessaging/hooks/useMessageImage/index.ts +1 -1
  267. package/src/InAppMessaging/hooks/useMessageImage/useMessageImage.ts +3 -2
  268. package/src/InAppMessaging/hooks/useMessageImage/utils.ts +2 -2
  269. package/src/InAppMessaging/hooks/useMessageProps/index.ts +1 -1
  270. package/src/InAppMessaging/hooks/useMessageProps/types.ts +4 -4
  271. package/src/InAppMessaging/hooks/useMessageProps/useMessageProps.ts +2 -2
  272. package/src/InAppMessaging/hooks/useMessageProps/utils.ts +2 -2
  273. package/src/InAppMessaging/index.ts +6 -5
  274. package/src/assets/icons/icons.ts +1 -1
  275. package/src/hooks/index.ts +2 -4
  276. package/src/hooks/useDeprecationWarning/useDeprecationWarning.ts +2 -4
  277. package/src/hooks/useDeviceOrientation/index.ts +2 -4
  278. package/src/hooks/useDeviceOrientation/useDeviceOrientation.ts +2 -1
  279. package/src/hooks/usePressableContainerStyles/usePressableContainerStyles.ts +1 -1
  280. package/src/index.ts +7 -5
  281. package/src/primitives/Button/Button.tsx +3 -2
  282. package/src/primitives/Button/index.ts +1 -1
  283. package/src/primitives/Button/styles.ts +2 -2
  284. package/src/primitives/Button/types.ts +6 -1
  285. package/src/primitives/Carousel/Carousel.tsx +3 -9
  286. package/src/primitives/Carousel/CarouselPageIndicator.tsx +1 -1
  287. package/src/primitives/Carousel/constants.ts +1 -1
  288. package/src/primitives/Carousel/index.ts +1 -1
  289. package/src/primitives/Carousel/styles.ts +1 -1
  290. package/src/primitives/Carousel/types.ts +1 -1
  291. package/src/primitives/Checkbox/Checkbox.tsx +3 -2
  292. package/src/primitives/Checkbox/styles.ts +3 -3
  293. package/src/primitives/Checkbox/types.ts +4 -4
  294. package/src/primitives/Divider/Divider.tsx +1 -1
  295. package/src/primitives/Divider/index.ts +1 -1
  296. package/src/primitives/Divider/styles.ts +2 -2
  297. package/src/primitives/Divider/types.ts +1 -1
  298. package/src/primitives/ErrorMessage/ErrorMessage.tsx +1 -1
  299. package/src/primitives/ErrorMessage/index.ts +1 -1
  300. package/src/primitives/ErrorMessage/styles.ts +2 -2
  301. package/src/primitives/ErrorMessage/types.ts +2 -2
  302. package/src/primitives/Heading/Heading.tsx +1 -1
  303. package/src/primitives/Heading/index.ts +1 -1
  304. package/src/primitives/Heading/styles.ts +2 -2
  305. package/src/primitives/Heading/types.ts +1 -1
  306. package/src/primitives/Icon/Icon.tsx +1 -1
  307. package/src/primitives/Icon/constants.ts +1 -1
  308. package/src/primitives/Icon/index.ts +1 -1
  309. package/src/primitives/Icon/styles.ts +2 -2
  310. package/src/primitives/Icon/types.ts +1 -1
  311. package/src/primitives/IconButton/IconButton.tsx +3 -2
  312. package/src/primitives/IconButton/index.ts +1 -1
  313. package/src/primitives/IconButton/styles.ts +2 -2
  314. package/src/primitives/IconButton/types.ts +1 -1
  315. package/src/primitives/Label/Label.tsx +1 -1
  316. package/src/primitives/Label/index.ts +1 -1
  317. package/src/primitives/Label/styles.ts +2 -2
  318. package/src/primitives/Label/types.ts +1 -1
  319. package/src/primitives/Label/utils.ts +2 -2
  320. package/src/primitives/PasswordField/PasswordField.tsx +1 -1
  321. package/src/primitives/PasswordField/index.ts +1 -1
  322. package/src/primitives/PasswordField/styles.ts +2 -2
  323. package/src/primitives/PasswordField/types.ts +3 -3
  324. package/src/primitives/PhoneNumberField/PhoneNumberField.tsx +1 -1
  325. package/src/primitives/PhoneNumberField/index.ts +1 -1
  326. package/src/primitives/PhoneNumberField/styles.ts +2 -2
  327. package/src/primitives/PhoneNumberField/types.ts +1 -1
  328. package/src/primitives/Radio/Radio.tsx +3 -7
  329. package/src/primitives/Radio/getRadioDimensions.ts +1 -1
  330. package/src/primitives/Radio/index.ts +1 -1
  331. package/src/primitives/Radio/styles.ts +2 -2
  332. package/src/primitives/Radio/types.ts +7 -2
  333. package/src/primitives/RadioGroup/RadioGroup.tsx +4 -3
  334. package/src/primitives/RadioGroup/index.ts +1 -1
  335. package/src/primitives/RadioGroup/styles.ts +2 -2
  336. package/src/primitives/RadioGroup/types.ts +2 -2
  337. package/src/primitives/Tabs/Tab.tsx +2 -2
  338. package/src/primitives/Tabs/Tabs.tsx +1 -1
  339. package/src/primitives/Tabs/index.ts +1 -1
  340. package/src/primitives/Tabs/styles.ts +4 -3
  341. package/src/primitives/Tabs/types.ts +2 -2
  342. package/src/primitives/TextField/TextField.tsx +3 -2
  343. package/src/primitives/TextField/index.ts +1 -1
  344. package/src/primitives/TextField/styles.ts +2 -2
  345. package/src/primitives/TextField/types.ts +7 -2
  346. package/src/theme/ThemeContext.tsx +1 -1
  347. package/src/theme/ThemeProvider.tsx +1 -1
  348. package/src/theme/createTheme.ts +1 -1
  349. package/src/theme/defaultTheme.ts +1 -1
  350. package/src/theme/types.ts +2 -2
  351. package/src/theme/useTheme.ts +1 -1
  352. package/src/version.ts +1 -1
@@ -1,4 +1,5 @@
1
- import { ImageStyle, StyleSheet } from 'react-native';
1
+ import type { ImageStyle } from 'react-native';
2
+ import { StyleSheet } from 'react-native';
2
3
  import {
3
4
  BORDER_RADIUS_BASE,
4
5
  COLOR_BLACK,
@@ -21,7 +22,7 @@ import {
21
22
  SPACING_SMALL,
22
23
  } from '../../constants';
23
24
 
24
- import { ModalMessageStyle } from './types';
25
+ import type { ModalMessageStyle } from './types';
25
26
 
26
27
  const commonStyles: Omit<
27
28
  ModalMessageStyle,
@@ -1,6 +1,6 @@
1
- import { ModalMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import type { ModalMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
2
2
 
3
- import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
3
+ import type { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
4
4
 
5
5
  export interface ModalMessageProps
6
6
  extends ModalMessageCommonProps<MessageOverrideStyle | undefined> {}
@@ -1,6 +1,7 @@
1
- export { BannerMessageProps } from './BannerMessage';
2
- export { CarouselMessageProps } from './CarouselMessage';
3
- export { FullScreenMessageProps } from './FullScreenMessage';
4
- export { InAppMessageDisplay, MessageComponents } from './InAppMessageDisplay';
5
- export { ModalMessageProps } from './ModalMessage';
1
+ export type { BannerMessageProps } from './BannerMessage';
2
+ export type { CarouselMessageProps } from './CarouselMessage';
3
+ export type { FullScreenMessageProps } from './FullScreenMessage';
4
+ export type { MessageComponents } from './InAppMessageDisplay';
5
+ export { InAppMessageDisplay } from './InAppMessageDisplay';
6
+ export type { ModalMessageProps } from './ModalMessage';
6
7
  export { withInAppMessaging } from './withInAppMessaging';
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { InAppMessagingProvider } from '@aws-amplify/ui-react-core-notifications';
3
3
 
4
- import { InAppMessageDisplay, MessageComponents } from '../InAppMessageDisplay';
4
+ import type { MessageComponents } from '../InAppMessageDisplay';
5
+ import { InAppMessageDisplay } from '../InAppMessageDisplay';
5
6
 
6
7
  export default function withInAppMessaging<Props = {}>(
7
8
  Component: React.ComponentType<Props>,
@@ -1,9 +1,10 @@
1
- export { ImageDimensions, useMessageImage } from './useMessageImage';
2
- export {
1
+ export type { ImageDimensions } from './useMessageImage';
2
+ export { useMessageImage } from './useMessageImage';
3
+ export type {
3
4
  GetDefaultStyle,
4
5
  MessageComponentStyles,
5
6
  MessageDefaultStyle,
6
7
  MessageOverrideStyle,
7
- useMessageProps,
8
8
  UseMessageProps,
9
9
  } from './useMessageProps';
10
+ export { useMessageProps } from './useMessageProps';
@@ -1,2 +1,2 @@
1
1
  export { default as useMessageImage } from './useMessageImage';
2
- export { ImageDimensions } from './types';
2
+ export type { ImageDimensions } from './types';
@@ -2,12 +2,13 @@ import { useEffect, useRef, useState } from 'react';
2
2
  import { Image } from 'react-native';
3
3
  import { ConsoleLogger as Logger } from 'aws-amplify/utils';
4
4
 
5
- import {
5
+ import type {
6
6
  InAppMessageImage,
7
7
  InAppMessageLayout,
8
8
  } from '@aws-amplify/ui-react-core-notifications';
9
9
 
10
- import { ImageDimensions, ImagePrefetchStatus, UseMessageImage } from './types';
10
+ import type { ImageDimensions, UseMessageImage } from './types';
11
+ import { ImagePrefetchStatus } from './types';
11
12
  import { getLayoutImageDimensions, prefetchNetworkImage } from './utils';
12
13
 
13
14
  const logger = new Logger('InAppMessaging');
@@ -1,6 +1,6 @@
1
1
  import { Image } from 'react-native';
2
2
  import { ConsoleLogger as Logger } from 'aws-amplify/utils';
3
- import { InAppMessageLayout } from '@aws-amplify/ui-react-core-notifications';
3
+ import type { InAppMessageLayout } from '@aws-amplify/ui-react-core-notifications';
4
4
 
5
5
  import {
6
6
  BANNER_IMAGE_SCREEN_SIZE,
@@ -8,7 +8,7 @@ import {
8
8
  FULL_SCREEN_IMAGE_SCREEN_SIZE,
9
9
  MODAL_IMAGE_SCREEN_SIZE,
10
10
  } from './constants';
11
- import { ImageDimensions, ImageLoadingState } from './types';
11
+ import type { ImageDimensions, ImageLoadingState } from './types';
12
12
 
13
13
  const logger = new Logger('InAppMessaging');
14
14
 
@@ -1,5 +1,5 @@
1
1
  export { default as useMessageProps } from './useMessageProps';
2
- export {
2
+ export type {
3
3
  GetDefaultStyle,
4
4
  MessageComponentStyles,
5
5
  MessageDefaultStyle,
@@ -1,18 +1,18 @@
1
- import {
1
+ import type {
2
2
  ColorValue,
3
3
  ImageStyle,
4
4
  StyleProp,
5
5
  TextStyle,
6
6
  ViewStyle,
7
7
  } from 'react-native';
8
- import {
8
+ import type {
9
9
  InAppMessageLayout,
10
10
  MessagePayloadStyle,
11
11
  } from '@aws-amplify/ui-react-core-notifications';
12
12
 
13
- import { ButtonProps } from '../../../primitives';
13
+ import type { ButtonProps } from '../../../primitives';
14
14
 
15
- import { ImageDimensions } from '../useMessageImage';
15
+ import type { ImageDimensions } from '../useMessageImage';
16
16
 
17
17
  /**
18
18
  * Resolved message types
@@ -1,9 +1,9 @@
1
1
  import { useEffect, useMemo, useRef } from 'react';
2
2
  import { isEmpty } from '@aws-amplify/ui';
3
- import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
3
+ import type { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
4
4
 
5
5
  import { useMessageImage } from '../useMessageImage';
6
- import {
6
+ import type {
7
7
  GetDefaultStyle,
8
8
  MessageOverrideStyle,
9
9
  UseMessageProps,
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
  import { isFunction } from '@aws-amplify/ui';
3
- import {
3
+ import type {
4
4
  InAppMessageLayout,
5
5
  MessageComponentBaseProps,
6
6
  MessagePayloadStyle,
@@ -9,7 +9,7 @@ import {
9
9
  import { DEFAULT_CAROUSEL_INDICATOR_SIZE } from '../../../primitives';
10
10
  import { BUTTON_PRESSED_OPACITY, SPACING_EXTRA_LARGE } from '../../constants';
11
11
 
12
- import {
12
+ import type {
13
13
  MessageButtonStyleParams,
14
14
  MessageButtonStyleProps,
15
15
  MessageComponentStyles,
@@ -1,23 +1,24 @@
1
1
  // re-export in-app types from '@aws-amplify/ui-react-core-notifications'
2
- export {
2
+ export type {
3
3
  InAppMessage,
4
4
  InAppMessageAction,
5
5
  InAppMessageButton,
6
6
  InAppMessageContent,
7
7
  InAppMessageImage,
8
8
  InAppMessageLayout,
9
- InAppMessagingProvider,
10
9
  InAppMessageStyle,
11
10
  InAppMessageTextAlign,
11
+ } from '@aws-amplify/ui-react-core-notifications';
12
+ export {
13
+ InAppMessagingProvider,
12
14
  useInAppMessaging,
13
15
  } from '@aws-amplify/ui-react-core-notifications';
14
16
 
15
- export {
17
+ export type {
16
18
  BannerMessageProps,
17
19
  CarouselMessageProps,
18
20
  FullScreenMessageProps,
19
21
  ModalMessageProps,
20
- InAppMessageDisplay,
21
22
  MessageComponents,
22
- withInAppMessaging,
23
23
  } from './components';
24
+ export { InAppMessageDisplay, withInAppMessaging } from './components';
@@ -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,
@@ -1,6 +1,4 @@
1
1
  export { useDeprecationWarning } from './useDeprecationWarning';
2
- export {
3
- DeviceOrientation,
4
- useDeviceOrientation,
5
- } from './useDeviceOrientation';
2
+ export type { DeviceOrientation } from './useDeviceOrientation';
3
+ export { useDeviceOrientation } from './useDeviceOrientation';
6
4
  export { usePressableContainerStyles } from './usePressableContainerStyles';
@@ -1,7 +1,5 @@
1
- import {
2
- useDeprecationWarning as useDeprecationWarningBase,
3
- UseDeprecationWarning,
4
- } from '@aws-amplify/ui-react-core';
1
+ import type { UseDeprecationWarning } from '@aws-amplify/ui-react-core';
2
+ import { useDeprecationWarning as useDeprecationWarningBase } from '@aws-amplify/ui-react-core';
5
3
 
6
4
  import { platform } from '../../utils';
7
5
 
@@ -1,4 +1,2 @@
1
- export {
2
- default as useDeviceOrientation,
3
- DeviceOrientation,
4
- } from './useDeviceOrientation';
1
+ export type { DeviceOrientation } from './useDeviceOrientation';
2
+ export { default as useDeviceOrientation } from './useDeviceOrientation';
@@ -1,5 +1,6 @@
1
1
  import { useEffect, useState } from 'react';
2
- import { Dimensions, EventSubscription } from 'react-native';
2
+ import type { EventSubscription } from 'react-native';
3
+ import { Dimensions } from 'react-native';
3
4
 
4
5
  import { isFunction } from '@aws-amplify/ui';
5
6
 
@@ -1,6 +1,6 @@
1
1
  import { useCallback } from 'react';
2
2
  import { isFunction } from '@aws-amplify/ui';
3
- import {
3
+ import type {
4
4
  PressableProps,
5
5
  PressableStateCallbackType,
6
6
  StyleProp,
package/src/index.ts CHANGED
@@ -1,9 +1,6 @@
1
- export {
2
- Authenticator,
1
+ export type {
3
2
  AuthenticatorProps,
4
- useAuthenticator,
5
3
  UseAuthenticator,
6
- withAuthenticator,
7
4
  WithAuthenticatorOptions,
8
5
  ConfirmResetPasswordProps,
9
6
  ConfirmSignInProps,
@@ -18,9 +15,14 @@ export {
18
15
  SignUpProps,
19
16
  VerifyUserProps,
20
17
  } from './Authenticator';
18
+ export {
19
+ Authenticator,
20
+ useAuthenticator,
21
+ withAuthenticator,
22
+ } from './Authenticator';
21
23
  export * from './InAppMessaging';
24
+ export type { Theme } from './theme';
22
25
  export {
23
- Theme,
24
26
  ThemeProvider,
25
27
  defaultDarkModeOverride,
26
28
  defaultTheme,
@@ -1,11 +1,12 @@
1
1
  import React, { useMemo } from 'react';
2
- import { Pressable, Text, TextStyle, ViewStyle } from 'react-native';
2
+ import type { TextStyle, ViewStyle } from 'react-native';
3
+ import { Pressable, Text } from 'react-native';
3
4
  import { capitalize } from '@aws-amplify/ui';
4
5
 
5
6
  import { usePressableContainerStyles } from '../../hooks';
6
7
  import { useTheme } from '../../theme';
7
8
  import { getThemedStyles } from './styles';
8
- import { ButtonProps } from './types';
9
+ import type { ButtonProps } from './types';
9
10
 
10
11
  export default function Button({
11
12
  accessibilityRole = 'button',
@@ -1,2 +1,2 @@
1
1
  export { default as Button } from './Button';
2
- export { ButtonProps, ButtonStyles } from './types';
2
+ export type { ButtonProps, ButtonStyles } from './types';
@@ -1,7 +1,7 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- import { StrictTheme } from '../../theme';
4
- import { ButtonStyles } from './types';
3
+ import type { StrictTheme } from '../../theme';
4
+ import type { ButtonStyles } from './types';
5
5
 
6
6
  export const getThemedStyles = (theme: StrictTheme): ButtonStyles => {
7
7
  const { tokens, components } = theme;
@@ -1,4 +1,9 @@
1
- import { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
1
+ import type {
2
+ PressableProps,
3
+ StyleProp,
4
+ TextStyle,
5
+ ViewStyle,
6
+ } from 'react-native';
2
7
 
3
8
  export type ButtonVariant = 'primary' | 'default' | 'link';
4
9
 
@@ -1,17 +1,11 @@
1
1
  import React, { useCallback, useEffect, useRef, useState } from 'react';
2
- import {
3
- Dimensions,
4
- FlatList,
5
- ListRenderItemInfo,
6
- ScaledSize,
7
- View,
8
- ViewToken,
9
- } from 'react-native';
2
+ import type { ListRenderItemInfo, ScaledSize, ViewToken } from 'react-native';
3
+ import { Dimensions, FlatList, View } from 'react-native';
10
4
 
11
5
  import CarouselPageIndicator from './CarouselPageIndicator';
12
6
  import { VIEWABILITY_CONFIG } from './constants';
13
7
  import { styles } from './styles';
14
- import { CarouselProps } from './types';
8
+ import type { CarouselProps } from './types';
15
9
 
16
10
  export default function Carousel<T>(
17
11
  props: CarouselProps<T>
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
2
2
  import { View } from 'react-native';
3
3
  import { SafeAreaView } from 'react-native-safe-area-context';
4
4
 
5
- import { CarouselPageIndicatorProps } from './types';
5
+ import type { CarouselPageIndicatorProps } from './types';
6
6
  import {
7
7
  DEFAULT_CAROUSEL_INDICATOR_ACTIVE_STYLE,
8
8
  DEFAULT_CAROUSEL_INDICATOR_INACTIVE_STYLE,
@@ -1,4 +1,4 @@
1
- import { ViewStyle } from 'react-native';
1
+ import type { ViewStyle } from 'react-native';
2
2
 
3
3
  export const DEFAULT_CAROUSEL_COLOR_ACTIVE = '#a1a1a1';
4
4
  export const DEFAULT_CAROUSEL_COLOR_INACTIVE = '#d8d8d8';
@@ -1,3 +1,3 @@
1
1
  export { default as Carousel } from './Carousel';
2
2
  export { DEFAULT_CAROUSEL_INDICATOR_SIZE } from './constants';
3
- export { CarouselProps } from './types';
3
+ export type { CarouselProps } from './types';
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- import { CarouselStyles } from './types';
3
+ import type { CarouselStyles } from './types';
4
4
 
5
5
  export const styles: CarouselStyles = StyleSheet.create({
6
6
  indicator: {
@@ -1,4 +1,4 @@
1
- import { ListRenderItem, StyleProp, ViewStyle } from 'react-native';
1
+ import type { ListRenderItem, StyleProp, ViewStyle } from 'react-native';
2
2
 
3
3
  export interface CarouselProps<T> {
4
4
  data: ReadonlyArray<T>;
@@ -1,7 +1,8 @@
1
1
  import React, { useCallback, useMemo, useState } from 'react';
2
- import { Pressable, ViewStyle } from 'react-native';
2
+ import type { ViewStyle } from 'react-native';
3
+ import { Pressable } from 'react-native';
3
4
 
4
- import { CheckboxProps } from './types';
5
+ import type { CheckboxProps } from './types';
5
6
  import { Icon } from '../Icon';
6
7
  import { Label } from '../Label';
7
8
  import { getThemedStyles } from './styles';
@@ -1,9 +1,9 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- import { StrictTheme } from '../../theme';
4
- import { CheckboxStyles } from './types';
3
+ import type { StrictTheme } from '../../theme';
4
+ import type { CheckboxStyles } from './types';
5
5
  import { getFlexDirectionFromLabelPosition } from '../Label/utils';
6
- import { LabelPosition } from '../Label/types';
6
+ import type { LabelPosition } from '../Label/types';
7
7
 
8
8
  export const getThemedStyles = (
9
9
  theme: StrictTheme,
@@ -1,13 +1,13 @@
1
- import {
1
+ import type {
2
2
  ImageStyle,
3
3
  PressableProps,
4
4
  StyleProp,
5
5
  TextStyle,
6
6
  ViewStyle,
7
7
  } from 'react-native';
8
- import { IconProps } from '../Icon/types';
9
- import { LabelProps } from '../Label';
10
- import { LabelPosition } from '../Label/types';
8
+ import type { IconProps } from '../Icon/types';
9
+ import type { LabelProps } from '../Label';
10
+ import type { LabelPosition } from '../Label/types';
11
11
 
12
12
  export interface CheckboxProps<T> extends PressableProps {
13
13
  iconStyle?: IconProps['style'];
@@ -4,7 +4,7 @@ import { View } from 'react-native';
4
4
  import { useTheme } from '../../theme';
5
5
  import { Label } from '../Label';
6
6
  import { getThemedStyles } from './styles';
7
- import { DividerProps } from './types';
7
+ import type { DividerProps } from './types';
8
8
 
9
9
  export const DIVIDER_LINE_TEST_ID = 'amplify__divider__line';
10
10
 
@@ -1,2 +1,2 @@
1
1
  export { default as Divider } from './Divider';
2
- export { DividerProps, DividerStyles } from './types';
2
+ export type { DividerProps, DividerStyles } from './types';
@@ -1,7 +1,7 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- import { StrictTheme } from '../../theme';
4
- import { DividerStyles } from './types';
3
+ import type { StrictTheme } from '../../theme';
4
+ import type { DividerStyles } from './types';
5
5
 
6
6
  export const getThemedStyles = (theme: StrictTheme): DividerStyles => {
7
7
  const { tokens, components } = theme;
@@ -1,4 +1,4 @@
1
- import { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
1
+ import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
2
2
 
3
3
  export interface DividerProps extends ViewProps {
4
4
  /*
@@ -7,7 +7,7 @@ import { IconButton } from '../IconButton';
7
7
 
8
8
  import { useTheme } from '../../theme';
9
9
  import { getThemedStyles } from './styles';
10
- import { ErrorMessageProps } from './types';
10
+ import type { ErrorMessageProps } from './types';
11
11
 
12
12
  export const CLOSE_BUTTON_TEST_ID =
13
13
  'authenticator--error-message--close-button';
@@ -1,2 +1,2 @@
1
1
  export { default as ErrorMessage } from './ErrorMessage';
2
- export { ErrorMessageProps, ErrorMessageStyles } from './types';
2
+ export type { ErrorMessageProps, ErrorMessageStyles } from './types';
@@ -1,7 +1,7 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- import { StrictTheme } from '../../theme';
4
- import { ErrorMessageStyles } from './types';
3
+ import type { StrictTheme } from '../../theme';
4
+ import type { ErrorMessageStyles } from './types';
5
5
 
6
6
  export const getThemedStyles = (theme: StrictTheme): ErrorMessageStyles => {
7
7
  const {
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  ImageStyle,
3
3
  StyleProp,
4
4
  TextStyle,
@@ -6,7 +6,7 @@ import {
6
6
  ViewStyle,
7
7
  } from 'react-native';
8
8
 
9
- import { IconProps } from '../Icon';
9
+ import type { IconProps } from '../Icon';
10
10
 
11
11
  export interface ErrorMessageProps extends ViewProps {
12
12
  iconStyle?: IconProps['style'];
@@ -3,7 +3,7 @@ import { Text } from 'react-native';
3
3
 
4
4
  import { useTheme } from '../../theme';
5
5
  import { getThemedStyles } from './styles';
6
- import { HeadingProps } from './types';
6
+ import type { HeadingProps } from './types';
7
7
 
8
8
  export default function Heading({
9
9
  accessibilityRole = 'header',
@@ -1,2 +1,2 @@
1
1
  export { default as Heading } from './Heading';
2
- export { HeadingProps, HeadingStyles } from './types';
2
+ export type { HeadingProps, HeadingStyles } from './types';
@@ -1,8 +1,8 @@
1
1
  import { StyleSheet } from 'react-native';
2
- import { StrictTheme } from '../../theme';
2
+ import type { StrictTheme } from '../../theme';
3
3
 
4
4
  import { getLineHeight } from '../../utils';
5
- import { HeadingStyles } from './types';
5
+ import type { HeadingStyles } from './types';
6
6
 
7
7
  export const getThemedStyles = (theme: StrictTheme): HeadingStyles => {
8
8
  const {
@@ -1,4 +1,4 @@
1
- import { TextProps, TextStyle } from 'react-native';
1
+ import type { TextProps, TextStyle } from 'react-native';
2
2
 
3
3
  type Level = 1 | 2 | 3 | 4 | 5 | 6;
4
4
 
@@ -3,7 +3,7 @@ import { Animated, Image } from 'react-native';
3
3
 
4
4
  import { useTheme } from '../../theme';
5
5
  import { getThemedStyles } from './styles';
6
- import { IconProps } from './types';
6
+ import type { IconProps } from './types';
7
7
 
8
8
  export default function Icon({
9
9
  accessible = true,
@@ -1,4 +1,4 @@
1
- import { IconSizes } from './types';
1
+ import type { IconSizes } from './types';
2
2
 
3
3
  export const iconSizes: IconSizes = {
4
4
  xs: 16,
@@ -1,3 +1,3 @@
1
1
  export { default as Icon } from './Icon';
2
- export { IconProps, IconStyles, IconSizes } from './types';
2
+ export type { IconProps, IconStyles, IconSizes } from './types';
3
3
  export { iconSizes } from './constants';
@@ -1,8 +1,8 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
  import { ConsoleLogger as Logger } from 'aws-amplify/utils';
3
3
 
4
- import { StrictTheme } from '../../theme';
5
- import { IconProps, IconStyles } from './types';
4
+ import type { StrictTheme } from '../../theme';
5
+ import type { IconProps, IconStyles } from './types';
6
6
  import { iconSizes } from './constants';
7
7
 
8
8
  const logger = new Logger('Icon-logger');
@@ -1,4 +1,4 @@
1
- import { ColorValue, ImageProps, ImageStyle } from 'react-native';
1
+ import type { ColorValue, ImageProps, ImageStyle } from 'react-native';
2
2
 
3
3
  export type Size = 'xs' | 'small' | 'medium' | 'large' | 'xl';
4
4
  export type IconSizes = Record<Size, number>;
@@ -1,12 +1,13 @@
1
1
  import React, { useMemo } from 'react';
2
- import { Pressable, ViewStyle } from 'react-native';
2
+ import type { ViewStyle } from 'react-native';
3
+ import { Pressable } from 'react-native';
3
4
 
4
5
  import { useTheme } from '../../theme';
5
6
  import { usePressableContainerStyles } from '../../hooks';
6
7
 
7
8
  import { getThemedStyles } from './styles';
8
9
  import { Icon, iconSizes } from '../Icon';
9
- import { IconButtonProps } from './types';
10
+ import type { IconButtonProps } from './types';
10
11
 
11
12
  export default function IconButton({
12
13
  accessibilityRole = 'button',
@@ -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,7 +1,7 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- import { StrictTheme } from '../../theme';
4
- import { IconButtonStyles } from './types';
3
+ import type { StrictTheme } from '../../theme';
4
+ import type { IconButtonStyles } from './types';
5
5
 
6
6
  export const getThemedStyles = (theme: StrictTheme): IconButtonStyles => {
7
7
  const {
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  ColorValue,
3
3
  ImageSourcePropType,
4
4
  ImageStyle,