@aws-amplify/ui-react-native 1.2.22 → 1.2.24

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