@aws-amplify/ui-react-native 1.0.0 → 1.1.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 (550) hide show
  1. package/.eslintrc.js +7 -1
  2. package/CHANGELOG.md +12 -0
  3. package/dist/Authenticator/Authenticator.d.ts +162 -0
  4. package/dist/Authenticator/Authenticator.js +57 -0
  5. package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.d.ts +3 -0
  6. package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.js +28 -0
  7. package/dist/Authenticator/Defaults/ConfirmResetPassword/index.d.ts +1 -0
  8. package/dist/Authenticator/Defaults/ConfirmResetPassword/index.js +1 -0
  9. package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.d.ts +3 -0
  10. package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.js +28 -0
  11. package/dist/Authenticator/Defaults/ConfirmSignIn/index.d.ts +1 -0
  12. package/dist/Authenticator/Defaults/ConfirmSignIn/index.js +1 -0
  13. package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.d.ts +3 -0
  14. package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.js +29 -0
  15. package/dist/Authenticator/Defaults/ConfirmSignUp/index.d.ts +1 -0
  16. package/dist/Authenticator/Defaults/ConfirmSignUp/index.js +1 -0
  17. package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.d.ts +3 -0
  18. package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.js +28 -0
  19. package/dist/Authenticator/Defaults/ConfirmVerifyUser/index.d.ts +1 -0
  20. package/dist/Authenticator/Defaults/ConfirmVerifyUser/index.js +1 -0
  21. package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.d.ts +3 -0
  22. package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.js +30 -0
  23. package/dist/Authenticator/Defaults/ForceNewPassword/index.d.ts +1 -0
  24. package/dist/Authenticator/Defaults/ForceNewPassword/index.js +1 -0
  25. package/dist/Authenticator/Defaults/ResetPassword/ResetPassword.d.ts +3 -0
  26. package/dist/Authenticator/Defaults/ResetPassword/ResetPassword.js +28 -0
  27. package/dist/Authenticator/Defaults/ResetPassword/index.d.ts +1 -0
  28. package/dist/Authenticator/Defaults/ResetPassword/index.js +1 -0
  29. package/dist/Authenticator/Defaults/SetupTOTP/SetupTOTP.d.ts +3 -0
  30. package/dist/Authenticator/Defaults/SetupTOTP/SetupTOTP.js +55 -0
  31. package/dist/Authenticator/Defaults/SetupTOTP/index.d.ts +1 -0
  32. package/dist/Authenticator/Defaults/SetupTOTP/index.js +1 -0
  33. package/dist/Authenticator/Defaults/SetupTOTP/styles.d.ts +5 -0
  34. package/dist/Authenticator/Defaults/SetupTOTP/styles.js +5 -0
  35. package/dist/Authenticator/Defaults/SignIn/SignIn.d.ts +3 -0
  36. package/dist/Authenticator/Defaults/SignIn/SignIn.js +45 -0
  37. package/dist/Authenticator/Defaults/SignIn/index.d.ts +1 -0
  38. package/dist/Authenticator/Defaults/SignIn/index.js +1 -0
  39. package/dist/Authenticator/Defaults/SignUp/SignUp.d.ts +3 -0
  40. package/dist/Authenticator/Defaults/SignUp/SignUp.js +38 -0
  41. package/dist/Authenticator/Defaults/SignUp/index.d.ts +1 -0
  42. package/dist/Authenticator/Defaults/SignUp/index.js +1 -0
  43. package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.d.ts +3 -0
  44. package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.js +29 -0
  45. package/dist/Authenticator/Defaults/VerifyUser/index.d.ts +1 -0
  46. package/dist/Authenticator/Defaults/VerifyUser/index.js +1 -0
  47. package/dist/Authenticator/Defaults/index.d.ts +11 -0
  48. package/dist/Authenticator/Defaults/index.js +10 -0
  49. package/dist/Authenticator/Defaults/types.d.ts +103 -0
  50. package/dist/Authenticator/Defaults/types.js +1 -0
  51. package/dist/Authenticator/common/DefaultContainer/DefaultContainer.d.ts +3 -0
  52. package/dist/Authenticator/common/DefaultContainer/DefaultContainer.js +41 -0
  53. package/dist/Authenticator/common/DefaultContainer/InnerContainer.d.ts +3 -0
  54. package/dist/Authenticator/common/DefaultContainer/InnerContainer.js +11 -0
  55. package/dist/Authenticator/common/DefaultContainer/index.d.ts +3 -0
  56. package/dist/Authenticator/common/DefaultContainer/index.js +2 -0
  57. package/dist/Authenticator/common/DefaultContainer/styles.d.ts +5 -0
  58. package/dist/Authenticator/common/DefaultContainer/styles.js +26 -0
  59. package/dist/Authenticator/common/DefaultContainer/types.d.ts +16 -0
  60. package/dist/Authenticator/common/DefaultContainer/types.js +1 -0
  61. package/dist/Authenticator/common/DefaultContent/DefaultContent.d.ts +4 -0
  62. package/dist/Authenticator/common/DefaultContent/DefaultContent.js +29 -0
  63. package/dist/Authenticator/common/DefaultContent/index.d.ts +1 -0
  64. package/dist/Authenticator/common/DefaultContent/index.js +1 -0
  65. package/dist/Authenticator/common/DefaultContent/styles.d.ts +3 -0
  66. package/dist/Authenticator/common/DefaultContent/styles.js +50 -0
  67. package/dist/Authenticator/common/DefaultContent/types.d.ts +52 -0
  68. package/dist/Authenticator/common/DefaultContent/types.js +1 -0
  69. package/dist/Authenticator/common/DefaultFooter/DefaultFooter.d.ts +3 -0
  70. package/dist/Authenticator/common/DefaultFooter/DefaultFooter.js +5 -0
  71. package/dist/Authenticator/common/DefaultFooter/index.d.ts +2 -0
  72. package/dist/Authenticator/common/DefaultFooter/index.js +1 -0
  73. package/dist/Authenticator/common/DefaultFooter/types.d.ts +3 -0
  74. package/dist/Authenticator/common/DefaultFooter/types.js +1 -0
  75. package/dist/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.d.ts +3 -0
  76. package/dist/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.js +24 -0
  77. package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.d.ts +3 -0
  78. package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.js +23 -0
  79. package/dist/Authenticator/common/DefaultFormFields/FieldErrors.d.ts +2 -0
  80. package/dist/Authenticator/common/DefaultFormFields/FieldErrors.js +12 -0
  81. package/dist/Authenticator/common/DefaultFormFields/index.d.ts +3 -0
  82. package/dist/Authenticator/common/DefaultFormFields/index.js +2 -0
  83. package/dist/Authenticator/common/DefaultFormFields/types.d.ts +19 -0
  84. package/dist/Authenticator/common/DefaultFormFields/types.js +1 -0
  85. package/dist/Authenticator/common/DefaultHeader/DefaultHeader.d.ts +3 -0
  86. package/dist/Authenticator/common/DefaultHeader/DefaultHeader.js +7 -0
  87. package/dist/Authenticator/common/DefaultHeader/index.d.ts +2 -0
  88. package/dist/Authenticator/common/DefaultHeader/index.js +1 -0
  89. package/dist/Authenticator/common/DefaultHeader/types.d.ts +3 -0
  90. package/dist/Authenticator/common/DefaultHeader/types.js +1 -0
  91. package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.d.ts +3 -0
  92. package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.js +13 -0
  93. package/dist/Authenticator/common/FederatedProviderButton/index.d.ts +2 -0
  94. package/dist/Authenticator/common/FederatedProviderButton/index.js +1 -0
  95. package/dist/Authenticator/common/FederatedProviderButton/styles.d.ts +2 -0
  96. package/dist/Authenticator/common/FederatedProviderButton/styles.js +18 -0
  97. package/dist/Authenticator/common/FederatedProviderButton/types.d.ts +10 -0
  98. package/dist/Authenticator/common/FederatedProviderButton/types.js +1 -0
  99. package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.d.ts +3 -0
  100. package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.js +22 -0
  101. package/dist/Authenticator/common/FederatedProviderButtons/index.d.ts +1 -0
  102. package/dist/Authenticator/common/FederatedProviderButtons/index.js +1 -0
  103. package/dist/Authenticator/common/FederatedProviderButtons/styles.d.ts +2 -0
  104. package/dist/Authenticator/common/FederatedProviderButtons/styles.js +5 -0
  105. package/dist/Authenticator/common/FederatedProviderButtons/types.d.ts +9 -0
  106. package/dist/Authenticator/common/FederatedProviderButtons/types.js +1 -0
  107. package/dist/Authenticator/common/index.d.ts +7 -0
  108. package/dist/Authenticator/common/index.js +7 -0
  109. package/dist/Authenticator/hooks/index.d.ts +2 -0
  110. package/dist/Authenticator/hooks/index.js +2 -0
  111. package/dist/Authenticator/hooks/types.d.ts +24 -0
  112. package/dist/Authenticator/hooks/types.js +1 -0
  113. package/dist/Authenticator/hooks/useFieldValues/constants.d.ts +1 -0
  114. package/dist/Authenticator/hooks/useFieldValues/constants.js +8 -0
  115. package/dist/Authenticator/hooks/useFieldValues/index.d.ts +2 -0
  116. package/dist/Authenticator/hooks/useFieldValues/index.js +2 -0
  117. package/dist/Authenticator/hooks/useFieldValues/types.d.ts +24 -0
  118. package/dist/Authenticator/hooks/useFieldValues/types.js +1 -0
  119. package/dist/Authenticator/hooks/useFieldValues/useFieldValues.d.ts +3 -0
  120. package/dist/Authenticator/hooks/useFieldValues/useFieldValues.js +80 -0
  121. package/dist/Authenticator/hooks/useFieldValues/utils.d.ts +18 -0
  122. package/dist/Authenticator/hooks/useFieldValues/utils.js +98 -0
  123. package/dist/Authenticator/index.d.ts +4 -0
  124. package/dist/Authenticator/index.js +4 -0
  125. package/dist/Authenticator/types.d.ts +14 -0
  126. package/dist/Authenticator/types.js +1 -0
  127. package/dist/Authenticator/withAuthenticator.d.ts +3 -0
  128. package/dist/Authenticator/withAuthenticator.js +11 -0
  129. package/dist/InAppMessaging/components/BannerMessage/BannerMessage.d.ts +1 -0
  130. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.d.ts +1 -0
  131. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.d.ts +1 -0
  132. package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.d.ts +1 -0
  133. package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.d.ts +1 -0
  134. package/dist/InAppMessaging/components/MessageLayout/MessageLayout.d.ts +1 -0
  135. package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.d.ts +1 -0
  136. package/dist/InAppMessaging/components/ModalMessage/ModalMessage.d.ts +1 -0
  137. package/dist/__mocks__/react-native-safe-area-context.d.ts +6 -1
  138. package/dist/__mocks__/react-native-safe-area-context.js +3 -1
  139. package/dist/assets/icons/amazonLogo.png +0 -0
  140. package/dist/assets/icons/amazonLogo@2x.png +0 -0
  141. package/dist/assets/icons/amazonLogo@3x.png +0 -0
  142. package/dist/assets/icons/appleLogo.png +0 -0
  143. package/dist/assets/icons/appleLogo@2x.png +0 -0
  144. package/dist/assets/icons/appleLogo@3x.png +0 -0
  145. package/dist/assets/icons/checkboxFilled.png +0 -0
  146. package/dist/assets/icons/checkboxFilled@2x.png +0 -0
  147. package/dist/assets/icons/checkboxFilled@3x.png +0 -0
  148. package/dist/assets/icons/checkboxOutline.png +0 -0
  149. package/dist/assets/icons/checkboxOutline@2x.png +0 -0
  150. package/dist/assets/icons/checkboxOutline@3x.png +0 -0
  151. package/dist/assets/icons/close.png +0 -0
  152. package/dist/assets/icons/close@2x.png +0 -0
  153. package/dist/assets/icons/close@3x.png +0 -0
  154. package/dist/assets/icons/copy.png +0 -0
  155. package/dist/assets/icons/copy@2x.png +0 -0
  156. package/dist/assets/icons/copy@3x.png +0 -0
  157. package/dist/assets/icons/error.png +0 -0
  158. package/dist/assets/icons/error@2x.png +0 -0
  159. package/dist/assets/icons/error@3x.png +0 -0
  160. package/dist/assets/icons/facebookLogo.png +0 -0
  161. package/dist/assets/icons/facebookLogo@2x.png +0 -0
  162. package/dist/assets/icons/facebookLogo@3x.png +0 -0
  163. package/dist/assets/icons/googleLogo.png +0 -0
  164. package/dist/assets/icons/googleLogo@2x.png +0 -0
  165. package/dist/assets/icons/googleLogo@3x.png +0 -0
  166. package/dist/assets/icons/index.d.ts +8 -0
  167. package/dist/assets/icons/index.js +8 -0
  168. package/dist/assets/icons/index.ts +8 -0
  169. package/dist/assets/icons/visibilityOff.png +0 -0
  170. package/dist/assets/icons/visibilityOff@2x.png +0 -0
  171. package/dist/assets/icons/visibilityOff@3x.png +0 -0
  172. package/dist/assets/icons/visibilityOn.png +0 -0
  173. package/dist/assets/icons/visibilityOn@2x.png +0 -0
  174. package/dist/assets/icons/visibilityOn@3x.png +0 -0
  175. package/dist/index.d.ts +2 -0
  176. package/dist/index.js +2 -0
  177. package/dist/primitives/Button/Button.d.ts +2 -1
  178. package/dist/primitives/Button/Button.js +24 -6
  179. package/dist/primitives/Button/styles.d.ts +2 -1
  180. package/dist/primitives/Button/styles.js +50 -3
  181. package/dist/primitives/Button/types.d.ts +13 -2
  182. package/dist/primitives/Carousel/Carousel.d.ts +1 -0
  183. package/dist/primitives/Carousel/CarouselPageIndicator.d.ts +1 -0
  184. package/dist/primitives/Checkbox/Checkbox.d.ts +1 -0
  185. package/dist/primitives/Checkbox/Checkbox.js +9 -8
  186. package/dist/primitives/Checkbox/index.d.ts +1 -1
  187. package/dist/primitives/Checkbox/styles.d.ts +4 -2
  188. package/dist/primitives/Checkbox/styles.js +23 -5
  189. package/dist/primitives/Checkbox/types.d.ts +7 -4
  190. package/dist/primitives/Divider/Divider.d.ts +4 -0
  191. package/dist/primitives/Divider/Divider.js +17 -0
  192. package/dist/primitives/Divider/index.d.ts +2 -0
  193. package/dist/primitives/Divider/index.js +1 -0
  194. package/dist/primitives/Divider/styles.d.ts +3 -0
  195. package/dist/primitives/Divider/styles.js +24 -0
  196. package/dist/primitives/Divider/types.d.ts +10 -0
  197. package/dist/primitives/Divider/types.js +1 -0
  198. package/dist/primitives/ErrorMessage/ErrorMessage.d.ts +4 -0
  199. package/dist/primitives/ErrorMessage/ErrorMessage.js +17 -0
  200. package/dist/primitives/ErrorMessage/index.d.ts +2 -0
  201. package/dist/primitives/ErrorMessage/index.js +1 -0
  202. package/dist/primitives/ErrorMessage/styles.d.ts +3 -0
  203. package/dist/primitives/ErrorMessage/styles.js +24 -0
  204. package/dist/primitives/ErrorMessage/types.d.ts +10 -0
  205. package/dist/primitives/ErrorMessage/types.js +1 -0
  206. package/dist/primitives/Heading/Heading.d.ts +1 -0
  207. package/dist/primitives/Heading/Heading.js +5 -2
  208. package/dist/primitives/Heading/styles.d.ts +2 -1
  209. package/dist/primitives/Heading/styles.js +45 -12
  210. package/dist/primitives/Heading/types.d.ts +1 -1
  211. package/dist/primitives/Icon/Icon.d.ts +2 -1
  212. package/dist/primitives/Icon/Icon.js +12 -5
  213. package/dist/primitives/Icon/constants.d.ts +2 -0
  214. package/dist/primitives/Icon/constants.js +7 -0
  215. package/dist/primitives/Icon/index.d.ts +2 -1
  216. package/dist/primitives/Icon/index.js +1 -0
  217. package/dist/primitives/Icon/styles.d.ts +2 -1
  218. package/dist/primitives/Icon/styles.js +29 -8
  219. package/dist/primitives/Icon/types.d.ts +4 -2
  220. package/dist/primitives/IconButton/IconButton.d.ts +2 -1
  221. package/dist/primitives/IconButton/IconButton.js +18 -5
  222. package/dist/primitives/IconButton/styles.d.ts +3 -0
  223. package/dist/primitives/IconButton/styles.js +17 -1
  224. package/dist/primitives/IconButton/types.d.ts +4 -2
  225. package/dist/primitives/Label/Label.d.ts +2 -1
  226. package/dist/primitives/Label/Label.js +7 -3
  227. package/dist/primitives/Label/index.d.ts +1 -1
  228. package/dist/primitives/Label/styles.d.ts +2 -1
  229. package/dist/primitives/Label/styles.js +40 -3
  230. package/dist/primitives/Label/types.d.ts +14 -1
  231. package/dist/primitives/PasswordField/PasswordField.d.ts +3 -0
  232. package/dist/primitives/PasswordField/PasswordField.js +20 -0
  233. package/dist/primitives/PasswordField/index.d.ts +2 -0
  234. package/dist/primitives/PasswordField/index.js +1 -0
  235. package/dist/primitives/PasswordField/styles.d.ts +3 -0
  236. package/dist/primitives/PasswordField/styles.js +13 -0
  237. package/dist/primitives/PasswordField/types.d.ts +23 -0
  238. package/dist/primitives/PasswordField/types.js +1 -0
  239. package/dist/primitives/PhoneNumberField/PhoneNumberField.d.ts +3 -0
  240. package/dist/primitives/PhoneNumberField/PhoneNumberField.js +9 -0
  241. package/dist/primitives/PhoneNumberField/index.d.ts +2 -0
  242. package/dist/primitives/PhoneNumberField/index.js +1 -0
  243. package/dist/primitives/PhoneNumberField/styles.d.ts +3 -0
  244. package/dist/primitives/PhoneNumberField/styles.js +18 -0
  245. package/dist/primitives/PhoneNumberField/types.d.ts +5 -0
  246. package/dist/primitives/PhoneNumberField/types.js +1 -0
  247. package/dist/primitives/Radio/Radio.d.ts +4 -1
  248. package/dist/primitives/Radio/Radio.js +20 -10
  249. package/dist/primitives/Radio/getRadioDimensions.d.ts +9 -3
  250. package/dist/primitives/Radio/getRadioDimensions.js +16 -4
  251. package/dist/primitives/Radio/styles.d.ts +2 -1
  252. package/dist/primitives/Radio/styles.js +57 -44
  253. package/dist/primitives/Radio/types.d.ts +11 -11
  254. package/dist/primitives/RadioGroup/RadioGroup.d.ts +3 -0
  255. package/dist/primitives/RadioGroup/RadioGroup.js +51 -0
  256. package/dist/primitives/RadioGroup/index.d.ts +2 -0
  257. package/dist/primitives/RadioGroup/index.js +1 -0
  258. package/dist/primitives/RadioGroup/styles.d.ts +3 -0
  259. package/dist/primitives/RadioGroup/styles.js +16 -0
  260. package/dist/primitives/RadioGroup/types.d.ts +14 -0
  261. package/dist/primitives/RadioGroup/types.js +1 -0
  262. package/dist/primitives/Tabs/Tab.d.ts +3 -0
  263. package/dist/primitives/Tabs/Tab.js +23 -0
  264. package/dist/primitives/Tabs/Tabs.d.ts +3 -0
  265. package/dist/primitives/Tabs/Tabs.js +25 -0
  266. package/dist/primitives/Tabs/index.d.ts +3 -0
  267. package/dist/primitives/Tabs/index.js +2 -0
  268. package/dist/primitives/Tabs/styles.d.ts +3 -0
  269. package/dist/primitives/Tabs/styles.js +50 -0
  270. package/dist/primitives/Tabs/types.d.ts +45 -0
  271. package/dist/primitives/Tabs/types.js +1 -0
  272. package/dist/primitives/TextField/TextField.d.ts +5 -0
  273. package/dist/primitives/TextField/TextField.js +25 -0
  274. package/dist/primitives/TextField/index.d.ts +2 -0
  275. package/dist/primitives/TextField/index.js +1 -0
  276. package/dist/primitives/TextField/styles.d.ts +3 -0
  277. package/dist/primitives/TextField/styles.js +39 -0
  278. package/dist/primitives/TextField/types.d.ts +57 -0
  279. package/dist/primitives/TextField/types.js +1 -0
  280. package/dist/primitives/index.d.ts +7 -0
  281. package/dist/primitives/index.js +7 -0
  282. package/dist/theme/ThemeContext.d.ts +6 -0
  283. package/dist/theme/ThemeContext.js +5 -0
  284. package/dist/theme/ThemeProvider.d.ts +9 -0
  285. package/dist/theme/ThemeProvider.js +7 -0
  286. package/dist/theme/createTheme.d.ts +8 -0
  287. package/dist/theme/createTheme.js +105 -0
  288. package/dist/theme/defaultTheme.d.ts +3 -0
  289. package/dist/theme/defaultTheme.js +8 -0
  290. package/dist/theme/index.d.ts +5 -0
  291. package/dist/theme/index.js +5 -0
  292. package/dist/theme/types.d.ts +63 -0
  293. package/dist/theme/types.js +1 -0
  294. package/dist/theme/useTheme.d.ts +2 -0
  295. package/dist/theme/useTheme.js +6 -0
  296. package/dist/utils/font.d.ts +1 -0
  297. package/dist/utils/font.js +4 -0
  298. package/dist/utils/index.d.ts +3 -2
  299. package/dist/utils/index.js +3 -7
  300. package/dist/utils/platform.d.ts +193 -0
  301. package/dist/utils/platform.js +17 -0
  302. package/dist/utils/utils.d.ts +1 -0
  303. package/dist/utils/utils.js +3 -0
  304. package/jest.config.js +1 -0
  305. package/jest.setup.js +3 -0
  306. package/package.json +7 -6
  307. package/src/Authenticator/Authenticator.tsx +106 -0
  308. package/src/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.tsx +68 -0
  309. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/ConfirmResetPassword.spec.tsx +88 -0
  310. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/__snapshots__/ConfirmResetPassword.spec.tsx.snap +1048 -0
  311. package/src/Authenticator/Defaults/ConfirmResetPassword/index.ts +1 -0
  312. package/src/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.tsx +69 -0
  313. package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/ConfirmSignIn.spec.tsx +77 -0
  314. package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/__snapshots__/ConfirmSignIn.spec.tsx.snap +508 -0
  315. package/src/Authenticator/Defaults/ConfirmSignIn/index.ts +1 -0
  316. package/src/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.tsx +72 -0
  317. package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/ConfirmSignUp.spec.tsx +63 -0
  318. package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/__snapshots__/ConfirmSignUp.spec.tsx.snap +528 -0
  319. package/src/Authenticator/Defaults/ConfirmSignUp/index.ts +1 -0
  320. package/src/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.tsx +68 -0
  321. package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/ConfirmVerifyUser.spec.tsx +70 -0
  322. package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/__snapshots__/ConfirmVerifyUser.spec.tsx.snap +489 -0
  323. package/src/Authenticator/Defaults/ConfirmVerifyUser/index.ts +1 -0
  324. package/src/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.tsx +66 -0
  325. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/ForceNewPassword.spec.tsx +78 -0
  326. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/__snapshots__/ForceNewPassword.spec.tsx.snap +860 -0
  327. package/src/Authenticator/Defaults/ForceNewPassword/index.ts +1 -0
  328. package/src/Authenticator/Defaults/ResetPassword/ResetPassword.tsx +67 -0
  329. package/src/Authenticator/Defaults/ResetPassword/__tests__/ResetPassword.spec.tsx +77 -0
  330. package/src/Authenticator/Defaults/ResetPassword/__tests__/__snapshots__/ResetPassword.spec.tsx.snap +508 -0
  331. package/src/Authenticator/Defaults/ResetPassword/index.ts +1 -0
  332. package/src/Authenticator/Defaults/SetupTOTP/SetupTOTP.tsx +106 -0
  333. package/src/Authenticator/Defaults/SetupTOTP/__tests__/SetupTOTP.spec.tsx +131 -0
  334. package/src/Authenticator/Defaults/SetupTOTP/__tests__/__snapshots__/SetupTOTP.spec.tsx.snap +508 -0
  335. package/src/Authenticator/Defaults/SetupTOTP/index.ts +1 -0
  336. package/src/Authenticator/Defaults/SetupTOTP/styles.ts +10 -0
  337. package/src/Authenticator/Defaults/SignIn/SignIn.tsx +82 -0
  338. package/src/Authenticator/Defaults/SignIn/__tests__/SignIn.spec.tsx +66 -0
  339. package/src/Authenticator/Defaults/SignIn/__tests__/__snapshots__/SignIn.spec.tsx.snap +1252 -0
  340. package/src/Authenticator/Defaults/SignIn/index.ts +1 -0
  341. package/src/Authenticator/Defaults/SignUp/SignUp.tsx +79 -0
  342. package/src/Authenticator/Defaults/SignUp/__tests__/SignUp.spec.tsx +101 -0
  343. package/src/Authenticator/Defaults/SignUp/__tests__/__snapshots__/SignUp.spec.tsx.snap +3019 -0
  344. package/src/Authenticator/Defaults/SignUp/index.ts +1 -0
  345. package/src/Authenticator/Defaults/VerifyUser/VerifyUser.tsx +67 -0
  346. package/src/Authenticator/Defaults/VerifyUser/__tests__/VerifyUser.spec.tsx +106 -0
  347. package/src/Authenticator/Defaults/VerifyUser/__tests__/__snapshots__/VerifyUser.spec.tsx.snap +678 -0
  348. package/src/Authenticator/Defaults/VerifyUser/index.ts +1 -0
  349. package/src/Authenticator/Defaults/index.ts +11 -0
  350. package/src/Authenticator/Defaults/types.ts +146 -0
  351. package/src/Authenticator/__tests__/Authenticator.spec.tsx +134 -0
  352. package/src/Authenticator/__tests__/__snapshots__/Authenticator.spec.tsx.snap +98 -0
  353. package/src/Authenticator/__tests__/__snapshots__/withAuthenticator.spec.tsx.snap +68 -0
  354. package/src/Authenticator/__tests__/withAuthenticator.spec.tsx +73 -0
  355. package/src/Authenticator/common/DefaultContainer/DefaultContainer.tsx +74 -0
  356. package/src/Authenticator/common/DefaultContainer/InnerContainer.tsx +20 -0
  357. package/src/Authenticator/common/DefaultContainer/__tests__/DefaultContainer.spec.tsx +19 -0
  358. package/src/Authenticator/common/DefaultContainer/__tests__/__snapshots__/DefaultContainer.spec.tsx.snap +86 -0
  359. package/src/Authenticator/common/DefaultContainer/index.ts +3 -0
  360. package/src/Authenticator/common/DefaultContainer/styles.ts +40 -0
  361. package/src/Authenticator/common/DefaultContainer/types.ts +29 -0
  362. package/src/Authenticator/common/DefaultContent/DefaultContent.tsx +92 -0
  363. package/src/Authenticator/common/DefaultContent/index.ts +1 -0
  364. package/src/Authenticator/common/DefaultContent/styles.ts +57 -0
  365. package/src/Authenticator/common/DefaultContent/types.ts +74 -0
  366. package/src/Authenticator/common/DefaultFooter/DefaultFooter.tsx +11 -0
  367. package/src/Authenticator/common/DefaultFooter/__tests__/DefaultFooter.spec.tsx +26 -0
  368. package/src/Authenticator/common/DefaultFooter/__tests__/__snapshots__/DefaultFooter.spec.tsx.snap +43 -0
  369. package/src/Authenticator/common/DefaultFooter/index.ts +2 -0
  370. package/src/Authenticator/common/DefaultFooter/types.ts +3 -0
  371. package/src/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.tsx +45 -0
  372. package/src/Authenticator/common/DefaultFormFields/DefaultTextFormFields.tsx +60 -0
  373. package/src/Authenticator/common/DefaultFormFields/FieldErrors.tsx +24 -0
  374. package/src/Authenticator/common/DefaultFormFields/__tests__/DefaultFormFields.spec.tsx +15 -0
  375. package/src/Authenticator/common/DefaultFormFields/__tests__/FieldErrors.spec.tsx +29 -0
  376. package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/DefaultFormFields.spec.tsx.snap +3 -0
  377. package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/FieldErrors.spec.tsx.snap +32 -0
  378. package/src/Authenticator/common/DefaultFormFields/index.ts +3 -0
  379. package/src/Authenticator/common/DefaultFormFields/types.ts +28 -0
  380. package/src/Authenticator/common/DefaultHeader/DefaultHeader.tsx +16 -0
  381. package/src/Authenticator/common/DefaultHeader/__tests__/DefaultHeader.spec.tsx +23 -0
  382. package/src/Authenticator/common/DefaultHeader/__tests__/__snapshots__/DefaultHeader.spec.tsx.snap +24 -0
  383. package/src/Authenticator/common/DefaultHeader/index.ts +2 -0
  384. package/src/Authenticator/common/DefaultHeader/types.ts +3 -0
  385. package/src/Authenticator/common/FederatedProviderButton/FederatedProviderButton.tsx +31 -0
  386. package/src/Authenticator/common/FederatedProviderButton/__tests__/FederatedProviderButton.spec.tsx +36 -0
  387. package/src/Authenticator/common/FederatedProviderButton/__tests__/__snapshots__/FederatedProviderButton.spec.tsx.snap +94 -0
  388. package/src/Authenticator/common/FederatedProviderButton/index.ts +2 -0
  389. package/src/Authenticator/common/FederatedProviderButton/styles.ts +21 -0
  390. package/src/Authenticator/common/FederatedProviderButton/types.ts +18 -0
  391. package/src/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.tsx +45 -0
  392. package/src/Authenticator/common/FederatedProviderButtons/__tests__/FederatedProviderButtons.spec.tsx +55 -0
  393. package/src/Authenticator/common/FederatedProviderButtons/__tests__/__snapshots__/FederatedProviderButtons.spec.tsx.snap +169 -0
  394. package/src/Authenticator/common/FederatedProviderButtons/index.ts +1 -0
  395. package/src/Authenticator/common/FederatedProviderButtons/styles.ts +7 -0
  396. package/src/Authenticator/common/FederatedProviderButtons/types.ts +16 -0
  397. package/src/Authenticator/common/index.ts +7 -0
  398. package/src/Authenticator/hooks/index.ts +2 -0
  399. package/src/Authenticator/hooks/types.ts +40 -0
  400. package/src/Authenticator/hooks/useFieldValues/__tests__/useFieldValues.spec.ts +300 -0
  401. package/src/Authenticator/hooks/useFieldValues/__tests__/utils.spec.ts +208 -0
  402. package/src/Authenticator/hooks/useFieldValues/constants.ts +8 -0
  403. package/src/Authenticator/hooks/useFieldValues/index.ts +2 -0
  404. package/src/Authenticator/hooks/useFieldValues/types.ts +35 -0
  405. package/src/Authenticator/hooks/useFieldValues/useFieldValues.ts +116 -0
  406. package/src/Authenticator/hooks/useFieldValues/utils.ts +177 -0
  407. package/src/Authenticator/index.ts +6 -0
  408. package/src/Authenticator/types.ts +26 -0
  409. package/src/Authenticator/withAuthenticator.tsx +18 -0
  410. package/src/InAppMessaging/components/BannerMessage/__tests__/__snapshots__/BannerMessage.spec.tsx.snap +24 -10
  411. package/src/InAppMessaging/components/ModalMessage/__tests__/__snapshots__/ModalMessage.spec.tsx.snap +37 -16
  412. package/src/__mocks__/react-native-safe-area-context.ts +4 -1
  413. package/src/__tests__/__snapshots__/index.spec.ts.snap +11 -0
  414. package/src/assets/icons/amazonLogo.png +0 -0
  415. package/src/assets/icons/amazonLogo@2x.png +0 -0
  416. package/src/assets/icons/amazonLogo@3x.png +0 -0
  417. package/src/assets/icons/appleLogo.png +0 -0
  418. package/src/assets/icons/appleLogo@2x.png +0 -0
  419. package/src/assets/icons/appleLogo@3x.png +0 -0
  420. package/src/assets/icons/checkboxFilled.png +0 -0
  421. package/src/assets/icons/checkboxFilled@2x.png +0 -0
  422. package/src/assets/icons/checkboxFilled@3x.png +0 -0
  423. package/src/assets/icons/checkboxOutline.png +0 -0
  424. package/src/assets/icons/checkboxOutline@2x.png +0 -0
  425. package/src/assets/icons/checkboxOutline@3x.png +0 -0
  426. package/src/assets/icons/close.png +0 -0
  427. package/src/assets/icons/close@2x.png +0 -0
  428. package/src/assets/icons/close@3x.png +0 -0
  429. package/src/assets/icons/copy.png +0 -0
  430. package/src/assets/icons/copy@2x.png +0 -0
  431. package/src/assets/icons/copy@3x.png +0 -0
  432. package/src/assets/icons/error.png +0 -0
  433. package/src/assets/icons/error@2x.png +0 -0
  434. package/src/assets/icons/error@3x.png +0 -0
  435. package/src/assets/icons/facebookLogo.png +0 -0
  436. package/src/assets/icons/facebookLogo@2x.png +0 -0
  437. package/src/assets/icons/facebookLogo@3x.png +0 -0
  438. package/src/assets/icons/googleLogo.png +0 -0
  439. package/src/assets/icons/googleLogo@2x.png +0 -0
  440. package/src/assets/icons/googleLogo@3x.png +0 -0
  441. package/src/assets/icons/index.ts +8 -0
  442. package/src/assets/icons/visibilityOff.png +0 -0
  443. package/src/assets/icons/visibilityOff@2x.png +0 -0
  444. package/src/assets/icons/visibilityOff@3x.png +0 -0
  445. package/src/assets/icons/visibilityOn.png +0 -0
  446. package/src/assets/icons/visibilityOn@2x.png +0 -0
  447. package/src/assets/icons/visibilityOn@3x.png +0 -0
  448. package/src/index.ts +15 -0
  449. package/src/primitives/Button/Button.tsx +51 -6
  450. package/src/primitives/Button/__tests__/Button.spec.tsx +75 -7
  451. package/src/primitives/Button/__tests__/__snapshots__/Button.spec.tsx.snap +103 -3
  452. package/src/primitives/Button/styles.ts +61 -3
  453. package/src/primitives/Button/types.ts +14 -2
  454. package/src/primitives/Checkbox/Checkbox.tsx +9 -8
  455. package/src/primitives/Checkbox/__tests__/Checkbox.spec.tsx +120 -15
  456. package/src/primitives/Checkbox/__tests__/__snapshots__/Checkbox.spec.tsx.snap +345 -16
  457. package/src/primitives/Checkbox/index.ts +1 -1
  458. package/src/primitives/Checkbox/styles.ts +31 -6
  459. package/src/primitives/Checkbox/types.ts +13 -4
  460. package/src/primitives/Divider/Divider.tsx +34 -0
  461. package/src/primitives/Divider/__tests__/Divider.spec.tsx +50 -0
  462. package/src/primitives/Divider/__tests__/__snapshots__/Divider.spec.tsx.snap +165 -0
  463. package/src/primitives/Divider/index.ts +2 -0
  464. package/src/primitives/Divider/styles.ts +29 -0
  465. package/src/primitives/Divider/types.ts +21 -0
  466. package/src/primitives/ErrorMessage/ErrorMessage.tsx +44 -0
  467. package/src/primitives/ErrorMessage/__tests__/ErrorMessage.spec.tsx +60 -0
  468. package/src/primitives/ErrorMessage/__tests__/__snapshots__/ErrorMessage.spec.tsx.snap +113 -0
  469. package/src/primitives/ErrorMessage/index.ts +2 -0
  470. package/src/primitives/ErrorMessage/styles.ts +32 -0
  471. package/src/primitives/ErrorMessage/types.ts +18 -0
  472. package/src/primitives/Heading/Heading.tsx +7 -2
  473. package/src/primitives/Heading/__tests__/Heading.spec.tsx +51 -14
  474. package/src/primitives/Heading/__tests__/__snapshots__/Heading.spec.tsx.snap +44 -23
  475. package/src/primitives/Heading/styles.ts +51 -12
  476. package/src/primitives/Heading/types.ts +1 -1
  477. package/src/primitives/Icon/Icon.tsx +16 -4
  478. package/src/primitives/Icon/__tests__/Icon.spec.tsx +80 -5
  479. package/src/primitives/Icon/__tests__/__snapshots__/Icon.spec.tsx.snap +81 -6
  480. package/src/primitives/Icon/constants.ts +9 -0
  481. package/src/primitives/Icon/index.ts +2 -1
  482. package/src/primitives/Icon/styles.ts +38 -7
  483. package/src/primitives/Icon/types.ts +5 -2
  484. package/src/primitives/IconButton/IconButton.tsx +37 -5
  485. package/src/primitives/IconButton/__tests__/IconButton.spec.tsx +57 -9
  486. package/src/primitives/IconButton/__tests__/__snapshots__/IconButton.spec.tsx.snap +125 -4
  487. package/src/primitives/IconButton/styles.ts +25 -0
  488. package/src/primitives/IconButton/types.ts +4 -1
  489. package/src/primitives/Label/Label.tsx +9 -6
  490. package/src/primitives/Label/__tests__/Label.spec.tsx +61 -8
  491. package/src/primitives/Label/__tests__/__snapshots__/Label.spec.tsx.snap +61 -9
  492. package/src/primitives/Label/index.ts +1 -1
  493. package/src/primitives/Label/styles.ts +45 -3
  494. package/src/primitives/Label/types.ts +25 -2
  495. package/src/primitives/PasswordField/PasswordField.tsx +57 -0
  496. package/src/primitives/PasswordField/__tests__/PasswordField.spec.tsx +110 -0
  497. package/src/primitives/PasswordField/__tests__/__snapshots__/PasswordField.spec.tsx.snap +629 -0
  498. package/src/primitives/PasswordField/index.ts +2 -0
  499. package/src/primitives/PasswordField/styles.ts +20 -0
  500. package/src/primitives/PasswordField/types.ts +27 -0
  501. package/src/primitives/PhoneNumberField/PhoneNumberField.tsx +28 -0
  502. package/src/primitives/PhoneNumberField/__tests__/PhoneNumberField.spec.tsx +53 -0
  503. package/src/primitives/PhoneNumberField/__tests__/__snapshots__/PhoneNumberField.spec.tsx.snap +185 -0
  504. package/src/primitives/PhoneNumberField/index.ts +2 -0
  505. package/src/primitives/PhoneNumberField/styles.ts +23 -0
  506. package/src/primitives/PhoneNumberField/types.ts +6 -0
  507. package/src/primitives/Radio/Radio.tsx +35 -14
  508. package/src/primitives/Radio/__tests__/Radio.spec.tsx +109 -15
  509. package/src/primitives/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +149 -44
  510. package/src/primitives/Radio/getRadioDimensions.ts +20 -7
  511. package/src/primitives/Radio/styles.ts +63 -45
  512. package/src/primitives/Radio/types.ts +12 -11
  513. package/src/primitives/RadioGroup/RadioGroup.tsx +108 -0
  514. package/src/primitives/RadioGroup/__tests__/RadioGroup.spec.tsx +183 -0
  515. package/src/primitives/RadioGroup/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1741 -0
  516. package/src/primitives/RadioGroup/index.ts +2 -0
  517. package/src/primitives/RadioGroup/styles.ts +21 -0
  518. package/src/primitives/RadioGroup/types.ts +27 -0
  519. package/src/primitives/Tabs/Tab.tsx +49 -0
  520. package/src/primitives/Tabs/Tabs.tsx +43 -0
  521. package/src/primitives/Tabs/__tests__/Tab.spec.tsx +68 -0
  522. package/src/primitives/Tabs/__tests__/Tabs.spec.tsx +81 -0
  523. package/src/primitives/Tabs/__tests__/__snapshots__/Tab.spec.tsx.snap +298 -0
  524. package/src/primitives/Tabs/__tests__/__snapshots__/Tabs.spec.tsx.snap +175 -0
  525. package/src/primitives/Tabs/index.ts +3 -0
  526. package/src/primitives/Tabs/styles.ts +62 -0
  527. package/src/primitives/Tabs/types.ts +51 -0
  528. package/src/primitives/TextField/TextField.tsx +77 -0
  529. package/src/primitives/TextField/__tests__/TextField.spec.tsx +153 -0
  530. package/src/primitives/TextField/__tests__/__snapshots__/TextField.spec.tsx.snap +507 -0
  531. package/src/primitives/TextField/index.ts +2 -0
  532. package/src/primitives/TextField/styles.ts +47 -0
  533. package/src/primitives/TextField/types.ts +66 -0
  534. package/src/primitives/index.ts +7 -0
  535. package/src/theme/ThemeContext.tsx +12 -0
  536. package/src/theme/ThemeProvider.tsx +26 -0
  537. package/src/theme/__tests__/ThemeProvider.spec.tsx +23 -0
  538. package/src/theme/__tests__/__snapshots__/useTheme.spec.tsx.snap +226 -0
  539. package/src/theme/__tests__/createTheme.spec.ts +196 -0
  540. package/src/theme/__tests__/useTheme.spec.tsx +51 -0
  541. package/src/theme/createTheme.ts +130 -0
  542. package/src/theme/defaultTheme.ts +11 -0
  543. package/src/theme/index.ts +5 -0
  544. package/src/theme/types/style-dictionary.d.ts +21 -0
  545. package/src/theme/types.ts +98 -0
  546. package/src/theme/useTheme.ts +9 -0
  547. package/src/utils/font.ts +6 -0
  548. package/src/utils/index.ts +3 -10
  549. package/src/utils/platform.ts +21 -0
  550. package/src/utils/utils.ts +3 -0
@@ -0,0 +1,1741 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`RadioGroup renders as expected when direction is horizontal 1`] = `
4
+ <View
5
+ style={
6
+ Array [
7
+ Object {},
8
+ Object {
9
+ "flexDirection": "column-reverse",
10
+ },
11
+ undefined,
12
+ ]
13
+ }
14
+ >
15
+ <View
16
+ accessibilityRole="radiogroup"
17
+ style={
18
+ Object {
19
+ "flexDirection": "row",
20
+ }
21
+ }
22
+ >
23
+ <View
24
+ accessibilityRole="radio"
25
+ accessible={true}
26
+ collapsable={false}
27
+ focusable={true}
28
+ onBlur={[Function]}
29
+ onClick={[Function]}
30
+ onFocus={[Function]}
31
+ onResponderGrant={[Function]}
32
+ onResponderMove={[Function]}
33
+ onResponderRelease={[Function]}
34
+ onResponderTerminate={[Function]}
35
+ onResponderTerminationRequest={[Function]}
36
+ onStartShouldSetResponder={[Function]}
37
+ style={
38
+ Array [
39
+ Object {
40
+ "alignItems": "center",
41
+ "flexDirection": "row",
42
+ },
43
+ undefined,
44
+ ]
45
+ }
46
+ >
47
+ <View
48
+ style={
49
+ Array [
50
+ Object {
51
+ "alignItems": "center",
52
+ "borderColor": "hsl(210, 8%, 55%)",
53
+ "borderRadius": 999,
54
+ "borderWidth": 2,
55
+ "justifyContent": "center",
56
+ },
57
+ Object {
58
+ "height": 20,
59
+ "width": 20,
60
+ },
61
+ undefined,
62
+ ]
63
+ }
64
+ testID="amplify__radio-button__container"
65
+ >
66
+ <View
67
+ style={
68
+ Array [
69
+ Object {
70
+ "backgroundColor": "hsl(190, 95%, 30%)",
71
+ "borderRadius": 999,
72
+ },
73
+ Object {
74
+ "height": 12,
75
+ "width": 12,
76
+ },
77
+ undefined,
78
+ ]
79
+ }
80
+ testID="amplify__radio-button__dot"
81
+ />
82
+ </View>
83
+ <Text
84
+ accessibilityRole="text"
85
+ style={
86
+ Array [
87
+ Object {
88
+ "fontSize": 14,
89
+ "fontWeight": "400",
90
+ "lineHeight": 21,
91
+ },
92
+ Object {
93
+ "color": "hsl(210, 50%, 10%)",
94
+ },
95
+ undefined,
96
+ ]
97
+ }
98
+ >
99
+ Option 1
100
+ </Text>
101
+ </View>
102
+ <View
103
+ accessibilityRole="radio"
104
+ accessible={true}
105
+ collapsable={false}
106
+ focusable={true}
107
+ onBlur={[Function]}
108
+ onClick={[Function]}
109
+ onFocus={[Function]}
110
+ onResponderGrant={[Function]}
111
+ onResponderMove={[Function]}
112
+ onResponderRelease={[Function]}
113
+ onResponderTerminate={[Function]}
114
+ onResponderTerminationRequest={[Function]}
115
+ onStartShouldSetResponder={[Function]}
116
+ style={
117
+ Array [
118
+ Object {
119
+ "alignItems": "center",
120
+ "flexDirection": "row",
121
+ },
122
+ undefined,
123
+ ]
124
+ }
125
+ >
126
+ <View
127
+ style={
128
+ Array [
129
+ Object {
130
+ "alignItems": "center",
131
+ "borderColor": "hsl(210, 8%, 55%)",
132
+ "borderRadius": 999,
133
+ "borderWidth": 2,
134
+ "justifyContent": "center",
135
+ },
136
+ Object {
137
+ "height": 20,
138
+ "width": 20,
139
+ },
140
+ undefined,
141
+ ]
142
+ }
143
+ testID="amplify__radio-button__container"
144
+ />
145
+ <Text
146
+ accessibilityRole="text"
147
+ style={
148
+ Array [
149
+ Object {
150
+ "fontSize": 14,
151
+ "fontWeight": "400",
152
+ "lineHeight": 21,
153
+ },
154
+ Object {
155
+ "color": "hsl(210, 50%, 10%)",
156
+ },
157
+ undefined,
158
+ ]
159
+ }
160
+ >
161
+ Option 2
162
+ </Text>
163
+ </View>
164
+ <View
165
+ accessibilityRole="radio"
166
+ accessible={true}
167
+ collapsable={false}
168
+ focusable={true}
169
+ onBlur={[Function]}
170
+ onClick={[Function]}
171
+ onFocus={[Function]}
172
+ onResponderGrant={[Function]}
173
+ onResponderMove={[Function]}
174
+ onResponderRelease={[Function]}
175
+ onResponderTerminate={[Function]}
176
+ onResponderTerminationRequest={[Function]}
177
+ onStartShouldSetResponder={[Function]}
178
+ style={
179
+ Array [
180
+ Object {
181
+ "alignItems": "center",
182
+ "flexDirection": "row",
183
+ },
184
+ undefined,
185
+ ]
186
+ }
187
+ >
188
+ <View
189
+ style={
190
+ Array [
191
+ Object {
192
+ "alignItems": "center",
193
+ "borderColor": "hsl(210, 8%, 55%)",
194
+ "borderRadius": 999,
195
+ "borderWidth": 2,
196
+ "justifyContent": "center",
197
+ },
198
+ Object {
199
+ "height": 20,
200
+ "width": 20,
201
+ },
202
+ undefined,
203
+ ]
204
+ }
205
+ testID="amplify__radio-button__container"
206
+ />
207
+ <Text
208
+ accessibilityRole="text"
209
+ style={
210
+ Array [
211
+ Object {
212
+ "fontSize": 14,
213
+ "fontWeight": "400",
214
+ "lineHeight": 21,
215
+ },
216
+ Object {
217
+ "color": "hsl(210, 50%, 10%)",
218
+ },
219
+ undefined,
220
+ ]
221
+ }
222
+ >
223
+ Option 3
224
+ </Text>
225
+ </View>
226
+ <View
227
+ accessibilityRole="radio"
228
+ accessible={true}
229
+ collapsable={false}
230
+ focusable={true}
231
+ onBlur={[Function]}
232
+ onClick={[Function]}
233
+ onFocus={[Function]}
234
+ onResponderGrant={[Function]}
235
+ onResponderMove={[Function]}
236
+ onResponderRelease={[Function]}
237
+ onResponderTerminate={[Function]}
238
+ onResponderTerminationRequest={[Function]}
239
+ onStartShouldSetResponder={[Function]}
240
+ style={
241
+ Array [
242
+ Object {
243
+ "alignItems": "center",
244
+ "flexDirection": "row",
245
+ "opacity": 0.6,
246
+ },
247
+ undefined,
248
+ ]
249
+ }
250
+ >
251
+ <View
252
+ style={
253
+ Array [
254
+ Object {
255
+ "alignItems": "center",
256
+ "borderColor": "hsl(210, 8%, 55%)",
257
+ "borderRadius": 999,
258
+ "borderWidth": 2,
259
+ "justifyContent": "center",
260
+ },
261
+ Object {
262
+ "height": 20,
263
+ "width": 20,
264
+ },
265
+ undefined,
266
+ ]
267
+ }
268
+ testID="amplify__radio-button__container"
269
+ />
270
+ <Text
271
+ accessibilityRole="text"
272
+ style={
273
+ Array [
274
+ Object {
275
+ "fontSize": 14,
276
+ "fontWeight": "400",
277
+ "lineHeight": 21,
278
+ },
279
+ Object {
280
+ "color": "hsl(210, 50%, 10%)",
281
+ },
282
+ undefined,
283
+ ]
284
+ }
285
+ >
286
+ Option 4
287
+ </Text>
288
+ </View>
289
+ </View>
290
+ </View>
291
+ `;
292
+
293
+ exports[`RadioGroup renders as expected when direction is vertical 1`] = `
294
+ <View
295
+ style={
296
+ Array [
297
+ Object {},
298
+ Object {
299
+ "flexDirection": "column-reverse",
300
+ },
301
+ undefined,
302
+ ]
303
+ }
304
+ >
305
+ <View
306
+ accessibilityRole="radiogroup"
307
+ style={
308
+ Object {
309
+ "flexDirection": "column",
310
+ }
311
+ }
312
+ >
313
+ <View
314
+ accessibilityRole="radio"
315
+ accessible={true}
316
+ collapsable={false}
317
+ focusable={true}
318
+ onBlur={[Function]}
319
+ onClick={[Function]}
320
+ onFocus={[Function]}
321
+ onResponderGrant={[Function]}
322
+ onResponderMove={[Function]}
323
+ onResponderRelease={[Function]}
324
+ onResponderTerminate={[Function]}
325
+ onResponderTerminationRequest={[Function]}
326
+ onStartShouldSetResponder={[Function]}
327
+ style={
328
+ Array [
329
+ Object {
330
+ "alignItems": "center",
331
+ "flexDirection": "row",
332
+ },
333
+ undefined,
334
+ ]
335
+ }
336
+ >
337
+ <View
338
+ style={
339
+ Array [
340
+ Object {
341
+ "alignItems": "center",
342
+ "borderColor": "hsl(210, 8%, 55%)",
343
+ "borderRadius": 999,
344
+ "borderWidth": 2,
345
+ "justifyContent": "center",
346
+ },
347
+ Object {
348
+ "height": 20,
349
+ "width": 20,
350
+ },
351
+ undefined,
352
+ ]
353
+ }
354
+ testID="amplify__radio-button__container"
355
+ >
356
+ <View
357
+ style={
358
+ Array [
359
+ Object {
360
+ "backgroundColor": "hsl(190, 95%, 30%)",
361
+ "borderRadius": 999,
362
+ },
363
+ Object {
364
+ "height": 12,
365
+ "width": 12,
366
+ },
367
+ undefined,
368
+ ]
369
+ }
370
+ testID="amplify__radio-button__dot"
371
+ />
372
+ </View>
373
+ <Text
374
+ accessibilityRole="text"
375
+ style={
376
+ Array [
377
+ Object {
378
+ "fontSize": 14,
379
+ "fontWeight": "400",
380
+ "lineHeight": 21,
381
+ },
382
+ Object {
383
+ "color": "hsl(210, 50%, 10%)",
384
+ },
385
+ undefined,
386
+ ]
387
+ }
388
+ >
389
+ Option 1
390
+ </Text>
391
+ </View>
392
+ <View
393
+ accessibilityRole="radio"
394
+ accessible={true}
395
+ collapsable={false}
396
+ focusable={true}
397
+ onBlur={[Function]}
398
+ onClick={[Function]}
399
+ onFocus={[Function]}
400
+ onResponderGrant={[Function]}
401
+ onResponderMove={[Function]}
402
+ onResponderRelease={[Function]}
403
+ onResponderTerminate={[Function]}
404
+ onResponderTerminationRequest={[Function]}
405
+ onStartShouldSetResponder={[Function]}
406
+ style={
407
+ Array [
408
+ Object {
409
+ "alignItems": "center",
410
+ "flexDirection": "row",
411
+ },
412
+ undefined,
413
+ ]
414
+ }
415
+ >
416
+ <View
417
+ style={
418
+ Array [
419
+ Object {
420
+ "alignItems": "center",
421
+ "borderColor": "hsl(210, 8%, 55%)",
422
+ "borderRadius": 999,
423
+ "borderWidth": 2,
424
+ "justifyContent": "center",
425
+ },
426
+ Object {
427
+ "height": 20,
428
+ "width": 20,
429
+ },
430
+ undefined,
431
+ ]
432
+ }
433
+ testID="amplify__radio-button__container"
434
+ />
435
+ <Text
436
+ accessibilityRole="text"
437
+ style={
438
+ Array [
439
+ Object {
440
+ "fontSize": 14,
441
+ "fontWeight": "400",
442
+ "lineHeight": 21,
443
+ },
444
+ Object {
445
+ "color": "hsl(210, 50%, 10%)",
446
+ },
447
+ undefined,
448
+ ]
449
+ }
450
+ >
451
+ Option 2
452
+ </Text>
453
+ </View>
454
+ <View
455
+ accessibilityRole="radio"
456
+ accessible={true}
457
+ collapsable={false}
458
+ focusable={true}
459
+ onBlur={[Function]}
460
+ onClick={[Function]}
461
+ onFocus={[Function]}
462
+ onResponderGrant={[Function]}
463
+ onResponderMove={[Function]}
464
+ onResponderRelease={[Function]}
465
+ onResponderTerminate={[Function]}
466
+ onResponderTerminationRequest={[Function]}
467
+ onStartShouldSetResponder={[Function]}
468
+ style={
469
+ Array [
470
+ Object {
471
+ "alignItems": "center",
472
+ "flexDirection": "row",
473
+ },
474
+ undefined,
475
+ ]
476
+ }
477
+ >
478
+ <View
479
+ style={
480
+ Array [
481
+ Object {
482
+ "alignItems": "center",
483
+ "borderColor": "hsl(210, 8%, 55%)",
484
+ "borderRadius": 999,
485
+ "borderWidth": 2,
486
+ "justifyContent": "center",
487
+ },
488
+ Object {
489
+ "height": 20,
490
+ "width": 20,
491
+ },
492
+ undefined,
493
+ ]
494
+ }
495
+ testID="amplify__radio-button__container"
496
+ />
497
+ <Text
498
+ accessibilityRole="text"
499
+ style={
500
+ Array [
501
+ Object {
502
+ "fontSize": 14,
503
+ "fontWeight": "400",
504
+ "lineHeight": 21,
505
+ },
506
+ Object {
507
+ "color": "hsl(210, 50%, 10%)",
508
+ },
509
+ undefined,
510
+ ]
511
+ }
512
+ >
513
+ Option 3
514
+ </Text>
515
+ </View>
516
+ <View
517
+ accessibilityRole="radio"
518
+ accessible={true}
519
+ collapsable={false}
520
+ focusable={true}
521
+ onBlur={[Function]}
522
+ onClick={[Function]}
523
+ onFocus={[Function]}
524
+ onResponderGrant={[Function]}
525
+ onResponderMove={[Function]}
526
+ onResponderRelease={[Function]}
527
+ onResponderTerminate={[Function]}
528
+ onResponderTerminationRequest={[Function]}
529
+ onStartShouldSetResponder={[Function]}
530
+ style={
531
+ Array [
532
+ Object {
533
+ "alignItems": "center",
534
+ "flexDirection": "row",
535
+ "opacity": 0.6,
536
+ },
537
+ undefined,
538
+ ]
539
+ }
540
+ >
541
+ <View
542
+ style={
543
+ Array [
544
+ Object {
545
+ "alignItems": "center",
546
+ "borderColor": "hsl(210, 8%, 55%)",
547
+ "borderRadius": 999,
548
+ "borderWidth": 2,
549
+ "justifyContent": "center",
550
+ },
551
+ Object {
552
+ "height": 20,
553
+ "width": 20,
554
+ },
555
+ undefined,
556
+ ]
557
+ }
558
+ testID="amplify__radio-button__container"
559
+ />
560
+ <Text
561
+ accessibilityRole="text"
562
+ style={
563
+ Array [
564
+ Object {
565
+ "fontSize": 14,
566
+ "fontWeight": "400",
567
+ "lineHeight": 21,
568
+ },
569
+ Object {
570
+ "color": "hsl(210, 50%, 10%)",
571
+ },
572
+ undefined,
573
+ ]
574
+ }
575
+ >
576
+ Option 4
577
+ </Text>
578
+ </View>
579
+ </View>
580
+ </View>
581
+ `;
582
+
583
+ exports[`RadioGroup renders as expected when size is large 1`] = `
584
+ <View
585
+ style={
586
+ Array [
587
+ Object {},
588
+ Object {
589
+ "flexDirection": "column-reverse",
590
+ },
591
+ undefined,
592
+ ]
593
+ }
594
+ >
595
+ <View
596
+ accessibilityRole="radiogroup"
597
+ style={
598
+ Object {
599
+ "flexDirection": "column",
600
+ }
601
+ }
602
+ >
603
+ <View
604
+ accessibilityRole="radio"
605
+ accessible={true}
606
+ collapsable={false}
607
+ focusable={true}
608
+ onBlur={[Function]}
609
+ onClick={[Function]}
610
+ onFocus={[Function]}
611
+ onResponderGrant={[Function]}
612
+ onResponderMove={[Function]}
613
+ onResponderRelease={[Function]}
614
+ onResponderTerminate={[Function]}
615
+ onResponderTerminationRequest={[Function]}
616
+ onStartShouldSetResponder={[Function]}
617
+ style={
618
+ Array [
619
+ Object {
620
+ "alignItems": "center",
621
+ "flexDirection": "row",
622
+ },
623
+ undefined,
624
+ ]
625
+ }
626
+ >
627
+ <View
628
+ style={
629
+ Array [
630
+ Object {
631
+ "alignItems": "center",
632
+ "borderColor": "hsl(210, 8%, 55%)",
633
+ "borderRadius": 999,
634
+ "borderWidth": 2,
635
+ "justifyContent": "center",
636
+ },
637
+ Object {
638
+ "height": 24,
639
+ "width": 24,
640
+ },
641
+ undefined,
642
+ ]
643
+ }
644
+ testID="amplify__radio-button__container"
645
+ >
646
+ <View
647
+ style={
648
+ Array [
649
+ Object {
650
+ "backgroundColor": "hsl(190, 95%, 30%)",
651
+ "borderRadius": 999,
652
+ },
653
+ Object {
654
+ "height": 14.399999999999999,
655
+ "width": 14.399999999999999,
656
+ },
657
+ undefined,
658
+ ]
659
+ }
660
+ testID="amplify__radio-button__dot"
661
+ />
662
+ </View>
663
+ <Text
664
+ accessibilityRole="text"
665
+ style={
666
+ Array [
667
+ Object {
668
+ "fontSize": 14,
669
+ "fontWeight": "400",
670
+ "lineHeight": 21,
671
+ },
672
+ Object {
673
+ "color": "hsl(210, 50%, 10%)",
674
+ },
675
+ undefined,
676
+ ]
677
+ }
678
+ >
679
+ Option 1
680
+ </Text>
681
+ </View>
682
+ <View
683
+ accessibilityRole="radio"
684
+ accessible={true}
685
+ collapsable={false}
686
+ focusable={true}
687
+ onBlur={[Function]}
688
+ onClick={[Function]}
689
+ onFocus={[Function]}
690
+ onResponderGrant={[Function]}
691
+ onResponderMove={[Function]}
692
+ onResponderRelease={[Function]}
693
+ onResponderTerminate={[Function]}
694
+ onResponderTerminationRequest={[Function]}
695
+ onStartShouldSetResponder={[Function]}
696
+ style={
697
+ Array [
698
+ Object {
699
+ "alignItems": "center",
700
+ "flexDirection": "row",
701
+ },
702
+ undefined,
703
+ ]
704
+ }
705
+ >
706
+ <View
707
+ style={
708
+ Array [
709
+ Object {
710
+ "alignItems": "center",
711
+ "borderColor": "hsl(210, 8%, 55%)",
712
+ "borderRadius": 999,
713
+ "borderWidth": 2,
714
+ "justifyContent": "center",
715
+ },
716
+ Object {
717
+ "height": 24,
718
+ "width": 24,
719
+ },
720
+ undefined,
721
+ ]
722
+ }
723
+ testID="amplify__radio-button__container"
724
+ />
725
+ <Text
726
+ accessibilityRole="text"
727
+ style={
728
+ Array [
729
+ Object {
730
+ "fontSize": 14,
731
+ "fontWeight": "400",
732
+ "lineHeight": 21,
733
+ },
734
+ Object {
735
+ "color": "hsl(210, 50%, 10%)",
736
+ },
737
+ undefined,
738
+ ]
739
+ }
740
+ >
741
+ Option 2
742
+ </Text>
743
+ </View>
744
+ <View
745
+ accessibilityRole="radio"
746
+ accessible={true}
747
+ collapsable={false}
748
+ focusable={true}
749
+ onBlur={[Function]}
750
+ onClick={[Function]}
751
+ onFocus={[Function]}
752
+ onResponderGrant={[Function]}
753
+ onResponderMove={[Function]}
754
+ onResponderRelease={[Function]}
755
+ onResponderTerminate={[Function]}
756
+ onResponderTerminationRequest={[Function]}
757
+ onStartShouldSetResponder={[Function]}
758
+ style={
759
+ Array [
760
+ Object {
761
+ "alignItems": "center",
762
+ "flexDirection": "row",
763
+ },
764
+ undefined,
765
+ ]
766
+ }
767
+ >
768
+ <View
769
+ style={
770
+ Array [
771
+ Object {
772
+ "alignItems": "center",
773
+ "borderColor": "hsl(210, 8%, 55%)",
774
+ "borderRadius": 999,
775
+ "borderWidth": 2,
776
+ "justifyContent": "center",
777
+ },
778
+ Object {
779
+ "height": 24,
780
+ "width": 24,
781
+ },
782
+ undefined,
783
+ ]
784
+ }
785
+ testID="amplify__radio-button__container"
786
+ />
787
+ <Text
788
+ accessibilityRole="text"
789
+ style={
790
+ Array [
791
+ Object {
792
+ "fontSize": 14,
793
+ "fontWeight": "400",
794
+ "lineHeight": 21,
795
+ },
796
+ Object {
797
+ "color": "hsl(210, 50%, 10%)",
798
+ },
799
+ undefined,
800
+ ]
801
+ }
802
+ >
803
+ Option 3
804
+ </Text>
805
+ </View>
806
+ <View
807
+ accessibilityRole="radio"
808
+ accessible={true}
809
+ collapsable={false}
810
+ focusable={true}
811
+ onBlur={[Function]}
812
+ onClick={[Function]}
813
+ onFocus={[Function]}
814
+ onResponderGrant={[Function]}
815
+ onResponderMove={[Function]}
816
+ onResponderRelease={[Function]}
817
+ onResponderTerminate={[Function]}
818
+ onResponderTerminationRequest={[Function]}
819
+ onStartShouldSetResponder={[Function]}
820
+ style={
821
+ Array [
822
+ Object {
823
+ "alignItems": "center",
824
+ "flexDirection": "row",
825
+ "opacity": 0.6,
826
+ },
827
+ undefined,
828
+ ]
829
+ }
830
+ >
831
+ <View
832
+ style={
833
+ Array [
834
+ Object {
835
+ "alignItems": "center",
836
+ "borderColor": "hsl(210, 8%, 55%)",
837
+ "borderRadius": 999,
838
+ "borderWidth": 2,
839
+ "justifyContent": "center",
840
+ },
841
+ Object {
842
+ "height": 24,
843
+ "width": 24,
844
+ },
845
+ undefined,
846
+ ]
847
+ }
848
+ testID="amplify__radio-button__container"
849
+ />
850
+ <Text
851
+ accessibilityRole="text"
852
+ style={
853
+ Array [
854
+ Object {
855
+ "fontSize": 14,
856
+ "fontWeight": "400",
857
+ "lineHeight": 21,
858
+ },
859
+ Object {
860
+ "color": "hsl(210, 50%, 10%)",
861
+ },
862
+ undefined,
863
+ ]
864
+ }
865
+ >
866
+ Option 4
867
+ </Text>
868
+ </View>
869
+ </View>
870
+ </View>
871
+ `;
872
+
873
+ exports[`RadioGroup renders as expected when size is medium 1`] = `
874
+ <View
875
+ style={
876
+ Array [
877
+ Object {},
878
+ Object {
879
+ "flexDirection": "column-reverse",
880
+ },
881
+ undefined,
882
+ ]
883
+ }
884
+ >
885
+ <View
886
+ accessibilityRole="radiogroup"
887
+ style={
888
+ Object {
889
+ "flexDirection": "column",
890
+ }
891
+ }
892
+ >
893
+ <View
894
+ accessibilityRole="radio"
895
+ accessible={true}
896
+ collapsable={false}
897
+ focusable={true}
898
+ onBlur={[Function]}
899
+ onClick={[Function]}
900
+ onFocus={[Function]}
901
+ onResponderGrant={[Function]}
902
+ onResponderMove={[Function]}
903
+ onResponderRelease={[Function]}
904
+ onResponderTerminate={[Function]}
905
+ onResponderTerminationRequest={[Function]}
906
+ onStartShouldSetResponder={[Function]}
907
+ style={
908
+ Array [
909
+ Object {
910
+ "alignItems": "center",
911
+ "flexDirection": "row",
912
+ },
913
+ undefined,
914
+ ]
915
+ }
916
+ >
917
+ <View
918
+ style={
919
+ Array [
920
+ Object {
921
+ "alignItems": "center",
922
+ "borderColor": "hsl(210, 8%, 55%)",
923
+ "borderRadius": 999,
924
+ "borderWidth": 2,
925
+ "justifyContent": "center",
926
+ },
927
+ Object {
928
+ "height": 20,
929
+ "width": 20,
930
+ },
931
+ undefined,
932
+ ]
933
+ }
934
+ testID="amplify__radio-button__container"
935
+ >
936
+ <View
937
+ style={
938
+ Array [
939
+ Object {
940
+ "backgroundColor": "hsl(190, 95%, 30%)",
941
+ "borderRadius": 999,
942
+ },
943
+ Object {
944
+ "height": 12,
945
+ "width": 12,
946
+ },
947
+ undefined,
948
+ ]
949
+ }
950
+ testID="amplify__radio-button__dot"
951
+ />
952
+ </View>
953
+ <Text
954
+ accessibilityRole="text"
955
+ style={
956
+ Array [
957
+ Object {
958
+ "fontSize": 14,
959
+ "fontWeight": "400",
960
+ "lineHeight": 21,
961
+ },
962
+ Object {
963
+ "color": "hsl(210, 50%, 10%)",
964
+ },
965
+ undefined,
966
+ ]
967
+ }
968
+ >
969
+ Option 1
970
+ </Text>
971
+ </View>
972
+ <View
973
+ accessibilityRole="radio"
974
+ accessible={true}
975
+ collapsable={false}
976
+ focusable={true}
977
+ onBlur={[Function]}
978
+ onClick={[Function]}
979
+ onFocus={[Function]}
980
+ onResponderGrant={[Function]}
981
+ onResponderMove={[Function]}
982
+ onResponderRelease={[Function]}
983
+ onResponderTerminate={[Function]}
984
+ onResponderTerminationRequest={[Function]}
985
+ onStartShouldSetResponder={[Function]}
986
+ style={
987
+ Array [
988
+ Object {
989
+ "alignItems": "center",
990
+ "flexDirection": "row",
991
+ },
992
+ undefined,
993
+ ]
994
+ }
995
+ >
996
+ <View
997
+ style={
998
+ Array [
999
+ Object {
1000
+ "alignItems": "center",
1001
+ "borderColor": "hsl(210, 8%, 55%)",
1002
+ "borderRadius": 999,
1003
+ "borderWidth": 2,
1004
+ "justifyContent": "center",
1005
+ },
1006
+ Object {
1007
+ "height": 20,
1008
+ "width": 20,
1009
+ },
1010
+ undefined,
1011
+ ]
1012
+ }
1013
+ testID="amplify__radio-button__container"
1014
+ />
1015
+ <Text
1016
+ accessibilityRole="text"
1017
+ style={
1018
+ Array [
1019
+ Object {
1020
+ "fontSize": 14,
1021
+ "fontWeight": "400",
1022
+ "lineHeight": 21,
1023
+ },
1024
+ Object {
1025
+ "color": "hsl(210, 50%, 10%)",
1026
+ },
1027
+ undefined,
1028
+ ]
1029
+ }
1030
+ >
1031
+ Option 2
1032
+ </Text>
1033
+ </View>
1034
+ <View
1035
+ accessibilityRole="radio"
1036
+ accessible={true}
1037
+ collapsable={false}
1038
+ focusable={true}
1039
+ onBlur={[Function]}
1040
+ onClick={[Function]}
1041
+ onFocus={[Function]}
1042
+ onResponderGrant={[Function]}
1043
+ onResponderMove={[Function]}
1044
+ onResponderRelease={[Function]}
1045
+ onResponderTerminate={[Function]}
1046
+ onResponderTerminationRequest={[Function]}
1047
+ onStartShouldSetResponder={[Function]}
1048
+ style={
1049
+ Array [
1050
+ Object {
1051
+ "alignItems": "center",
1052
+ "flexDirection": "row",
1053
+ },
1054
+ undefined,
1055
+ ]
1056
+ }
1057
+ >
1058
+ <View
1059
+ style={
1060
+ Array [
1061
+ Object {
1062
+ "alignItems": "center",
1063
+ "borderColor": "hsl(210, 8%, 55%)",
1064
+ "borderRadius": 999,
1065
+ "borderWidth": 2,
1066
+ "justifyContent": "center",
1067
+ },
1068
+ Object {
1069
+ "height": 20,
1070
+ "width": 20,
1071
+ },
1072
+ undefined,
1073
+ ]
1074
+ }
1075
+ testID="amplify__radio-button__container"
1076
+ />
1077
+ <Text
1078
+ accessibilityRole="text"
1079
+ style={
1080
+ Array [
1081
+ Object {
1082
+ "fontSize": 14,
1083
+ "fontWeight": "400",
1084
+ "lineHeight": 21,
1085
+ },
1086
+ Object {
1087
+ "color": "hsl(210, 50%, 10%)",
1088
+ },
1089
+ undefined,
1090
+ ]
1091
+ }
1092
+ >
1093
+ Option 3
1094
+ </Text>
1095
+ </View>
1096
+ <View
1097
+ accessibilityRole="radio"
1098
+ accessible={true}
1099
+ collapsable={false}
1100
+ focusable={true}
1101
+ onBlur={[Function]}
1102
+ onClick={[Function]}
1103
+ onFocus={[Function]}
1104
+ onResponderGrant={[Function]}
1105
+ onResponderMove={[Function]}
1106
+ onResponderRelease={[Function]}
1107
+ onResponderTerminate={[Function]}
1108
+ onResponderTerminationRequest={[Function]}
1109
+ onStartShouldSetResponder={[Function]}
1110
+ style={
1111
+ Array [
1112
+ Object {
1113
+ "alignItems": "center",
1114
+ "flexDirection": "row",
1115
+ "opacity": 0.6,
1116
+ },
1117
+ undefined,
1118
+ ]
1119
+ }
1120
+ >
1121
+ <View
1122
+ style={
1123
+ Array [
1124
+ Object {
1125
+ "alignItems": "center",
1126
+ "borderColor": "hsl(210, 8%, 55%)",
1127
+ "borderRadius": 999,
1128
+ "borderWidth": 2,
1129
+ "justifyContent": "center",
1130
+ },
1131
+ Object {
1132
+ "height": 20,
1133
+ "width": 20,
1134
+ },
1135
+ undefined,
1136
+ ]
1137
+ }
1138
+ testID="amplify__radio-button__container"
1139
+ />
1140
+ <Text
1141
+ accessibilityRole="text"
1142
+ style={
1143
+ Array [
1144
+ Object {
1145
+ "fontSize": 14,
1146
+ "fontWeight": "400",
1147
+ "lineHeight": 21,
1148
+ },
1149
+ Object {
1150
+ "color": "hsl(210, 50%, 10%)",
1151
+ },
1152
+ undefined,
1153
+ ]
1154
+ }
1155
+ >
1156
+ Option 4
1157
+ </Text>
1158
+ </View>
1159
+ </View>
1160
+ </View>
1161
+ `;
1162
+
1163
+ exports[`RadioGroup renders as expected when size is small 1`] = `
1164
+ <View
1165
+ style={
1166
+ Array [
1167
+ Object {},
1168
+ Object {
1169
+ "flexDirection": "column-reverse",
1170
+ },
1171
+ undefined,
1172
+ ]
1173
+ }
1174
+ >
1175
+ <View
1176
+ accessibilityRole="radiogroup"
1177
+ style={
1178
+ Object {
1179
+ "flexDirection": "column",
1180
+ }
1181
+ }
1182
+ >
1183
+ <View
1184
+ accessibilityRole="radio"
1185
+ accessible={true}
1186
+ collapsable={false}
1187
+ focusable={true}
1188
+ onBlur={[Function]}
1189
+ onClick={[Function]}
1190
+ onFocus={[Function]}
1191
+ onResponderGrant={[Function]}
1192
+ onResponderMove={[Function]}
1193
+ onResponderRelease={[Function]}
1194
+ onResponderTerminate={[Function]}
1195
+ onResponderTerminationRequest={[Function]}
1196
+ onStartShouldSetResponder={[Function]}
1197
+ style={
1198
+ Array [
1199
+ Object {
1200
+ "alignItems": "center",
1201
+ "flexDirection": "row",
1202
+ },
1203
+ undefined,
1204
+ ]
1205
+ }
1206
+ >
1207
+ <View
1208
+ style={
1209
+ Array [
1210
+ Object {
1211
+ "alignItems": "center",
1212
+ "borderColor": "hsl(210, 8%, 55%)",
1213
+ "borderRadius": 999,
1214
+ "borderWidth": 2,
1215
+ "justifyContent": "center",
1216
+ },
1217
+ Object {
1218
+ "height": 16,
1219
+ "width": 16,
1220
+ },
1221
+ undefined,
1222
+ ]
1223
+ }
1224
+ testID="amplify__radio-button__container"
1225
+ >
1226
+ <View
1227
+ style={
1228
+ Array [
1229
+ Object {
1230
+ "backgroundColor": "hsl(190, 95%, 30%)",
1231
+ "borderRadius": 999,
1232
+ },
1233
+ Object {
1234
+ "height": 9.6,
1235
+ "width": 9.6,
1236
+ },
1237
+ undefined,
1238
+ ]
1239
+ }
1240
+ testID="amplify__radio-button__dot"
1241
+ />
1242
+ </View>
1243
+ <Text
1244
+ accessibilityRole="text"
1245
+ style={
1246
+ Array [
1247
+ Object {
1248
+ "fontSize": 14,
1249
+ "fontWeight": "400",
1250
+ "lineHeight": 21,
1251
+ },
1252
+ Object {
1253
+ "color": "hsl(210, 50%, 10%)",
1254
+ },
1255
+ undefined,
1256
+ ]
1257
+ }
1258
+ >
1259
+ Option 1
1260
+ </Text>
1261
+ </View>
1262
+ <View
1263
+ accessibilityRole="radio"
1264
+ accessible={true}
1265
+ collapsable={false}
1266
+ focusable={true}
1267
+ onBlur={[Function]}
1268
+ onClick={[Function]}
1269
+ onFocus={[Function]}
1270
+ onResponderGrant={[Function]}
1271
+ onResponderMove={[Function]}
1272
+ onResponderRelease={[Function]}
1273
+ onResponderTerminate={[Function]}
1274
+ onResponderTerminationRequest={[Function]}
1275
+ onStartShouldSetResponder={[Function]}
1276
+ style={
1277
+ Array [
1278
+ Object {
1279
+ "alignItems": "center",
1280
+ "flexDirection": "row",
1281
+ },
1282
+ undefined,
1283
+ ]
1284
+ }
1285
+ >
1286
+ <View
1287
+ style={
1288
+ Array [
1289
+ Object {
1290
+ "alignItems": "center",
1291
+ "borderColor": "hsl(210, 8%, 55%)",
1292
+ "borderRadius": 999,
1293
+ "borderWidth": 2,
1294
+ "justifyContent": "center",
1295
+ },
1296
+ Object {
1297
+ "height": 16,
1298
+ "width": 16,
1299
+ },
1300
+ undefined,
1301
+ ]
1302
+ }
1303
+ testID="amplify__radio-button__container"
1304
+ />
1305
+ <Text
1306
+ accessibilityRole="text"
1307
+ style={
1308
+ Array [
1309
+ Object {
1310
+ "fontSize": 14,
1311
+ "fontWeight": "400",
1312
+ "lineHeight": 21,
1313
+ },
1314
+ Object {
1315
+ "color": "hsl(210, 50%, 10%)",
1316
+ },
1317
+ undefined,
1318
+ ]
1319
+ }
1320
+ >
1321
+ Option 2
1322
+ </Text>
1323
+ </View>
1324
+ <View
1325
+ accessibilityRole="radio"
1326
+ accessible={true}
1327
+ collapsable={false}
1328
+ focusable={true}
1329
+ onBlur={[Function]}
1330
+ onClick={[Function]}
1331
+ onFocus={[Function]}
1332
+ onResponderGrant={[Function]}
1333
+ onResponderMove={[Function]}
1334
+ onResponderRelease={[Function]}
1335
+ onResponderTerminate={[Function]}
1336
+ onResponderTerminationRequest={[Function]}
1337
+ onStartShouldSetResponder={[Function]}
1338
+ style={
1339
+ Array [
1340
+ Object {
1341
+ "alignItems": "center",
1342
+ "flexDirection": "row",
1343
+ },
1344
+ undefined,
1345
+ ]
1346
+ }
1347
+ >
1348
+ <View
1349
+ style={
1350
+ Array [
1351
+ Object {
1352
+ "alignItems": "center",
1353
+ "borderColor": "hsl(210, 8%, 55%)",
1354
+ "borderRadius": 999,
1355
+ "borderWidth": 2,
1356
+ "justifyContent": "center",
1357
+ },
1358
+ Object {
1359
+ "height": 16,
1360
+ "width": 16,
1361
+ },
1362
+ undefined,
1363
+ ]
1364
+ }
1365
+ testID="amplify__radio-button__container"
1366
+ />
1367
+ <Text
1368
+ accessibilityRole="text"
1369
+ style={
1370
+ Array [
1371
+ Object {
1372
+ "fontSize": 14,
1373
+ "fontWeight": "400",
1374
+ "lineHeight": 21,
1375
+ },
1376
+ Object {
1377
+ "color": "hsl(210, 50%, 10%)",
1378
+ },
1379
+ undefined,
1380
+ ]
1381
+ }
1382
+ >
1383
+ Option 3
1384
+ </Text>
1385
+ </View>
1386
+ <View
1387
+ accessibilityRole="radio"
1388
+ accessible={true}
1389
+ collapsable={false}
1390
+ focusable={true}
1391
+ onBlur={[Function]}
1392
+ onClick={[Function]}
1393
+ onFocus={[Function]}
1394
+ onResponderGrant={[Function]}
1395
+ onResponderMove={[Function]}
1396
+ onResponderRelease={[Function]}
1397
+ onResponderTerminate={[Function]}
1398
+ onResponderTerminationRequest={[Function]}
1399
+ onStartShouldSetResponder={[Function]}
1400
+ style={
1401
+ Array [
1402
+ Object {
1403
+ "alignItems": "center",
1404
+ "flexDirection": "row",
1405
+ "opacity": 0.6,
1406
+ },
1407
+ undefined,
1408
+ ]
1409
+ }
1410
+ >
1411
+ <View
1412
+ style={
1413
+ Array [
1414
+ Object {
1415
+ "alignItems": "center",
1416
+ "borderColor": "hsl(210, 8%, 55%)",
1417
+ "borderRadius": 999,
1418
+ "borderWidth": 2,
1419
+ "justifyContent": "center",
1420
+ },
1421
+ Object {
1422
+ "height": 16,
1423
+ "width": 16,
1424
+ },
1425
+ undefined,
1426
+ ]
1427
+ }
1428
+ testID="amplify__radio-button__container"
1429
+ />
1430
+ <Text
1431
+ accessibilityRole="text"
1432
+ style={
1433
+ Array [
1434
+ Object {
1435
+ "fontSize": 14,
1436
+ "fontWeight": "400",
1437
+ "lineHeight": 21,
1438
+ },
1439
+ Object {
1440
+ "color": "hsl(210, 50%, 10%)",
1441
+ },
1442
+ undefined,
1443
+ ]
1444
+ }
1445
+ >
1446
+ Option 4
1447
+ </Text>
1448
+ </View>
1449
+ </View>
1450
+ </View>
1451
+ `;
1452
+
1453
+ exports[`RadioGroup renders default RadioGroup as expected 1`] = `
1454
+ <View
1455
+ style={
1456
+ Array [
1457
+ Object {},
1458
+ Object {
1459
+ "flexDirection": "column-reverse",
1460
+ },
1461
+ undefined,
1462
+ ]
1463
+ }
1464
+ >
1465
+ <View
1466
+ accessibilityRole="radiogroup"
1467
+ style={
1468
+ Object {
1469
+ "flexDirection": "column",
1470
+ }
1471
+ }
1472
+ >
1473
+ <View
1474
+ accessibilityRole="radio"
1475
+ accessible={true}
1476
+ collapsable={false}
1477
+ focusable={true}
1478
+ onBlur={[Function]}
1479
+ onClick={[Function]}
1480
+ onFocus={[Function]}
1481
+ onResponderGrant={[Function]}
1482
+ onResponderMove={[Function]}
1483
+ onResponderRelease={[Function]}
1484
+ onResponderTerminate={[Function]}
1485
+ onResponderTerminationRequest={[Function]}
1486
+ onStartShouldSetResponder={[Function]}
1487
+ style={
1488
+ Array [
1489
+ Object {
1490
+ "alignItems": "center",
1491
+ "flexDirection": "row",
1492
+ },
1493
+ undefined,
1494
+ ]
1495
+ }
1496
+ >
1497
+ <View
1498
+ style={
1499
+ Array [
1500
+ Object {
1501
+ "alignItems": "center",
1502
+ "borderColor": "hsl(210, 8%, 55%)",
1503
+ "borderRadius": 999,
1504
+ "borderWidth": 2,
1505
+ "justifyContent": "center",
1506
+ },
1507
+ Object {
1508
+ "height": 20,
1509
+ "width": 20,
1510
+ },
1511
+ undefined,
1512
+ ]
1513
+ }
1514
+ testID="amplify__radio-button__container"
1515
+ >
1516
+ <View
1517
+ style={
1518
+ Array [
1519
+ Object {
1520
+ "backgroundColor": "hsl(190, 95%, 30%)",
1521
+ "borderRadius": 999,
1522
+ },
1523
+ Object {
1524
+ "height": 12,
1525
+ "width": 12,
1526
+ },
1527
+ undefined,
1528
+ ]
1529
+ }
1530
+ testID="amplify__radio-button__dot"
1531
+ />
1532
+ </View>
1533
+ <Text
1534
+ accessibilityRole="text"
1535
+ style={
1536
+ Array [
1537
+ Object {
1538
+ "fontSize": 14,
1539
+ "fontWeight": "400",
1540
+ "lineHeight": 21,
1541
+ },
1542
+ Object {
1543
+ "color": "hsl(210, 50%, 10%)",
1544
+ },
1545
+ undefined,
1546
+ ]
1547
+ }
1548
+ >
1549
+ Option 1
1550
+ </Text>
1551
+ </View>
1552
+ <View
1553
+ accessibilityRole="radio"
1554
+ accessible={true}
1555
+ collapsable={false}
1556
+ focusable={true}
1557
+ onBlur={[Function]}
1558
+ onClick={[Function]}
1559
+ onFocus={[Function]}
1560
+ onResponderGrant={[Function]}
1561
+ onResponderMove={[Function]}
1562
+ onResponderRelease={[Function]}
1563
+ onResponderTerminate={[Function]}
1564
+ onResponderTerminationRequest={[Function]}
1565
+ onStartShouldSetResponder={[Function]}
1566
+ style={
1567
+ Array [
1568
+ Object {
1569
+ "alignItems": "center",
1570
+ "flexDirection": "row",
1571
+ },
1572
+ undefined,
1573
+ ]
1574
+ }
1575
+ >
1576
+ <View
1577
+ style={
1578
+ Array [
1579
+ Object {
1580
+ "alignItems": "center",
1581
+ "borderColor": "hsl(210, 8%, 55%)",
1582
+ "borderRadius": 999,
1583
+ "borderWidth": 2,
1584
+ "justifyContent": "center",
1585
+ },
1586
+ Object {
1587
+ "height": 20,
1588
+ "width": 20,
1589
+ },
1590
+ undefined,
1591
+ ]
1592
+ }
1593
+ testID="amplify__radio-button__container"
1594
+ />
1595
+ <Text
1596
+ accessibilityRole="text"
1597
+ style={
1598
+ Array [
1599
+ Object {
1600
+ "fontSize": 14,
1601
+ "fontWeight": "400",
1602
+ "lineHeight": 21,
1603
+ },
1604
+ Object {
1605
+ "color": "hsl(210, 50%, 10%)",
1606
+ },
1607
+ undefined,
1608
+ ]
1609
+ }
1610
+ >
1611
+ Option 2
1612
+ </Text>
1613
+ </View>
1614
+ <View
1615
+ accessibilityRole="radio"
1616
+ accessible={true}
1617
+ collapsable={false}
1618
+ focusable={true}
1619
+ onBlur={[Function]}
1620
+ onClick={[Function]}
1621
+ onFocus={[Function]}
1622
+ onResponderGrant={[Function]}
1623
+ onResponderMove={[Function]}
1624
+ onResponderRelease={[Function]}
1625
+ onResponderTerminate={[Function]}
1626
+ onResponderTerminationRequest={[Function]}
1627
+ onStartShouldSetResponder={[Function]}
1628
+ style={
1629
+ Array [
1630
+ Object {
1631
+ "alignItems": "center",
1632
+ "flexDirection": "row",
1633
+ },
1634
+ undefined,
1635
+ ]
1636
+ }
1637
+ >
1638
+ <View
1639
+ style={
1640
+ Array [
1641
+ Object {
1642
+ "alignItems": "center",
1643
+ "borderColor": "hsl(210, 8%, 55%)",
1644
+ "borderRadius": 999,
1645
+ "borderWidth": 2,
1646
+ "justifyContent": "center",
1647
+ },
1648
+ Object {
1649
+ "height": 20,
1650
+ "width": 20,
1651
+ },
1652
+ undefined,
1653
+ ]
1654
+ }
1655
+ testID="amplify__radio-button__container"
1656
+ />
1657
+ <Text
1658
+ accessibilityRole="text"
1659
+ style={
1660
+ Array [
1661
+ Object {
1662
+ "fontSize": 14,
1663
+ "fontWeight": "400",
1664
+ "lineHeight": 21,
1665
+ },
1666
+ Object {
1667
+ "color": "hsl(210, 50%, 10%)",
1668
+ },
1669
+ undefined,
1670
+ ]
1671
+ }
1672
+ >
1673
+ Option 3
1674
+ </Text>
1675
+ </View>
1676
+ <View
1677
+ accessibilityRole="radio"
1678
+ accessible={true}
1679
+ collapsable={false}
1680
+ focusable={true}
1681
+ onBlur={[Function]}
1682
+ onClick={[Function]}
1683
+ onFocus={[Function]}
1684
+ onResponderGrant={[Function]}
1685
+ onResponderMove={[Function]}
1686
+ onResponderRelease={[Function]}
1687
+ onResponderTerminate={[Function]}
1688
+ onResponderTerminationRequest={[Function]}
1689
+ onStartShouldSetResponder={[Function]}
1690
+ style={
1691
+ Array [
1692
+ Object {
1693
+ "alignItems": "center",
1694
+ "flexDirection": "row",
1695
+ "opacity": 0.6,
1696
+ },
1697
+ undefined,
1698
+ ]
1699
+ }
1700
+ >
1701
+ <View
1702
+ style={
1703
+ Array [
1704
+ Object {
1705
+ "alignItems": "center",
1706
+ "borderColor": "hsl(210, 8%, 55%)",
1707
+ "borderRadius": 999,
1708
+ "borderWidth": 2,
1709
+ "justifyContent": "center",
1710
+ },
1711
+ Object {
1712
+ "height": 20,
1713
+ "width": 20,
1714
+ },
1715
+ undefined,
1716
+ ]
1717
+ }
1718
+ testID="amplify__radio-button__container"
1719
+ />
1720
+ <Text
1721
+ accessibilityRole="text"
1722
+ style={
1723
+ Array [
1724
+ Object {
1725
+ "fontSize": 14,
1726
+ "fontWeight": "400",
1727
+ "lineHeight": 21,
1728
+ },
1729
+ Object {
1730
+ "color": "hsl(210, 50%, 10%)",
1731
+ },
1732
+ undefined,
1733
+ ]
1734
+ }
1735
+ >
1736
+ Option 4
1737
+ </Text>
1738
+ </View>
1739
+ </View>
1740
+ </View>
1741
+ `;