@aws-amplify/ui-react-native 1.2.18 → 1.2.20

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 (60) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/Authenticator/Authenticator.d.ts +6 -12
  3. package/dist/Authenticator/Authenticator.js +5 -0
  4. package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.js +15 -4
  5. package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.js +13 -3
  6. package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.js +13 -3
  7. package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.js +13 -3
  8. package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.js +15 -4
  9. package/dist/Authenticator/Defaults/ResetPassword/ResetPassword.js +13 -3
  10. package/dist/Authenticator/Defaults/SetupTOTP/SetupTOTP.js +13 -3
  11. package/dist/Authenticator/Defaults/SignIn/SignIn.js +3 -2
  12. package/dist/Authenticator/Defaults/SignUp/SignUp.js +9 -3
  13. package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.js +3 -3
  14. package/dist/Authenticator/common/DefaultContent/DefaultContent.js +2 -2
  15. package/dist/hooks/index.d.ts +1 -0
  16. package/dist/hooks/index.js +1 -0
  17. package/dist/hooks/useDeprecationWarning/index.d.ts +1 -0
  18. package/dist/hooks/useDeprecationWarning/index.js +1 -0
  19. package/dist/hooks/useDeprecationWarning/useDeprecationWarning.d.ts +6 -0
  20. package/dist/hooks/useDeprecationWarning/useDeprecationWarning.js +11 -0
  21. package/dist/primitives/Radio/styles.js +2 -1
  22. package/dist/utils/platform.d.ts +5 -0
  23. package/dist/utils/platform.js +2 -0
  24. package/dist/version.d.ts +1 -1
  25. package/dist/version.js +1 -1
  26. package/package.json +5 -4
  27. package/src/Authenticator/Authenticator.tsx +7 -0
  28. package/src/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.tsx +19 -3
  29. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/ConfirmResetPassword.spec.tsx +1 -0
  30. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/__snapshots__/ConfirmResetPassword.spec.tsx.snap +13 -0
  31. package/src/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.tsx +17 -3
  32. package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/__snapshots__/ConfirmSignIn.spec.tsx.snap +13 -0
  33. package/src/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.tsx +17 -3
  34. package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/__snapshots__/ConfirmSignUp.spec.tsx.snap +19 -0
  35. package/src/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.tsx +17 -3
  36. package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/__snapshots__/ConfirmVerifyUser.spec.tsx.snap +19 -0
  37. package/src/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.tsx +19 -3
  38. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/ForceNewPassword.spec.tsx +1 -0
  39. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/__snapshots__/ForceNewPassword.spec.tsx.snap +19 -0
  40. package/src/Authenticator/Defaults/ResetPassword/ResetPassword.tsx +17 -3
  41. package/src/Authenticator/Defaults/ResetPassword/__tests__/__snapshots__/ResetPassword.spec.tsx.snap +13 -0
  42. package/src/Authenticator/Defaults/SetupTOTP/SetupTOTP.tsx +17 -3
  43. package/src/Authenticator/Defaults/SetupTOTP/__tests__/__snapshots__/SetupTOTP.spec.tsx.snap +13 -0
  44. package/src/Authenticator/Defaults/SignIn/SignIn.tsx +7 -2
  45. package/src/Authenticator/Defaults/SignIn/__tests__/__snapshots__/SignIn.spec.tsx.snap +19 -0
  46. package/src/Authenticator/Defaults/SignUp/SignUp.tsx +13 -2
  47. package/src/Authenticator/Defaults/SignUp/__tests__/SignUp.spec.tsx +1 -0
  48. package/src/Authenticator/Defaults/SignUp/__tests__/__snapshots__/SignUp.spec.tsx.snap +31 -0
  49. package/src/Authenticator/Defaults/VerifyUser/VerifyUser.tsx +7 -3
  50. package/src/Authenticator/Defaults/VerifyUser/__tests__/__snapshots__/VerifyUser.spec.tsx.snap +19 -0
  51. package/src/Authenticator/common/DefaultContent/DefaultContent.tsx +2 -0
  52. package/src/hooks/index.ts +1 -0
  53. package/src/hooks/useDeprecationWarning/__tests__/useDeprecationWarning.spec.ts +42 -0
  54. package/src/hooks/useDeprecationWarning/index.ts +1 -0
  55. package/src/hooks/useDeprecationWarning/useDeprecationWarning.ts +21 -0
  56. package/src/primitives/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +9 -0
  57. package/src/primitives/Radio/styles.ts +2 -1
  58. package/src/primitives/RadioGroup/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +24 -0
  59. package/src/utils/platform.ts +2 -0
  60. package/src/version.ts +1 -1
@@ -54,6 +54,7 @@ exports[`RadioGroup renders as expected when direction is horizontal 1`] = `
54
54
  "borderRadius": 999,
55
55
  "borderWidth": 2,
56
56
  "justifyContent": "center",
57
+ "margin": 4,
57
58
  },
58
59
  Object {
59
60
  "height": 20,
@@ -134,6 +135,7 @@ exports[`RadioGroup renders as expected when direction is horizontal 1`] = `
134
135
  "borderRadius": 999,
135
136
  "borderWidth": 2,
136
137
  "justifyContent": "center",
138
+ "margin": 4,
137
139
  },
138
140
  Object {
139
141
  "height": 20,
@@ -197,6 +199,7 @@ exports[`RadioGroup renders as expected when direction is horizontal 1`] = `
197
199
  "borderRadius": 999,
198
200
  "borderWidth": 2,
199
201
  "justifyContent": "center",
202
+ "margin": 4,
200
203
  },
201
204
  Object {
202
205
  "height": 20,
@@ -261,6 +264,7 @@ exports[`RadioGroup renders as expected when direction is horizontal 1`] = `
261
264
  "borderRadius": 999,
262
265
  "borderWidth": 2,
263
266
  "justifyContent": "center",
267
+ "margin": 4,
264
268
  },
265
269
  Object {
266
270
  "height": 20,
@@ -348,6 +352,7 @@ exports[`RadioGroup renders as expected when direction is vertical 1`] = `
348
352
  "borderRadius": 999,
349
353
  "borderWidth": 2,
350
354
  "justifyContent": "center",
355
+ "margin": 4,
351
356
  },
352
357
  Object {
353
358
  "height": 20,
@@ -428,6 +433,7 @@ exports[`RadioGroup renders as expected when direction is vertical 1`] = `
428
433
  "borderRadius": 999,
429
434
  "borderWidth": 2,
430
435
  "justifyContent": "center",
436
+ "margin": 4,
431
437
  },
432
438
  Object {
433
439
  "height": 20,
@@ -491,6 +497,7 @@ exports[`RadioGroup renders as expected when direction is vertical 1`] = `
491
497
  "borderRadius": 999,
492
498
  "borderWidth": 2,
493
499
  "justifyContent": "center",
500
+ "margin": 4,
494
501
  },
495
502
  Object {
496
503
  "height": 20,
@@ -555,6 +562,7 @@ exports[`RadioGroup renders as expected when direction is vertical 1`] = `
555
562
  "borderRadius": 999,
556
563
  "borderWidth": 2,
557
564
  "justifyContent": "center",
565
+ "margin": 4,
558
566
  },
559
567
  Object {
560
568
  "height": 20,
@@ -642,6 +650,7 @@ exports[`RadioGroup renders as expected when size is large 1`] = `
642
650
  "borderRadius": 999,
643
651
  "borderWidth": 2,
644
652
  "justifyContent": "center",
653
+ "margin": 4,
645
654
  },
646
655
  Object {
647
656
  "height": 24,
@@ -722,6 +731,7 @@ exports[`RadioGroup renders as expected when size is large 1`] = `
722
731
  "borderRadius": 999,
723
732
  "borderWidth": 2,
724
733
  "justifyContent": "center",
734
+ "margin": 4,
725
735
  },
726
736
  Object {
727
737
  "height": 24,
@@ -785,6 +795,7 @@ exports[`RadioGroup renders as expected when size is large 1`] = `
785
795
  "borderRadius": 999,
786
796
  "borderWidth": 2,
787
797
  "justifyContent": "center",
798
+ "margin": 4,
788
799
  },
789
800
  Object {
790
801
  "height": 24,
@@ -849,6 +860,7 @@ exports[`RadioGroup renders as expected when size is large 1`] = `
849
860
  "borderRadius": 999,
850
861
  "borderWidth": 2,
851
862
  "justifyContent": "center",
863
+ "margin": 4,
852
864
  },
853
865
  Object {
854
866
  "height": 24,
@@ -936,6 +948,7 @@ exports[`RadioGroup renders as expected when size is medium 1`] = `
936
948
  "borderRadius": 999,
937
949
  "borderWidth": 2,
938
950
  "justifyContent": "center",
951
+ "margin": 4,
939
952
  },
940
953
  Object {
941
954
  "height": 20,
@@ -1016,6 +1029,7 @@ exports[`RadioGroup renders as expected when size is medium 1`] = `
1016
1029
  "borderRadius": 999,
1017
1030
  "borderWidth": 2,
1018
1031
  "justifyContent": "center",
1032
+ "margin": 4,
1019
1033
  },
1020
1034
  Object {
1021
1035
  "height": 20,
@@ -1079,6 +1093,7 @@ exports[`RadioGroup renders as expected when size is medium 1`] = `
1079
1093
  "borderRadius": 999,
1080
1094
  "borderWidth": 2,
1081
1095
  "justifyContent": "center",
1096
+ "margin": 4,
1082
1097
  },
1083
1098
  Object {
1084
1099
  "height": 20,
@@ -1143,6 +1158,7 @@ exports[`RadioGroup renders as expected when size is medium 1`] = `
1143
1158
  "borderRadius": 999,
1144
1159
  "borderWidth": 2,
1145
1160
  "justifyContent": "center",
1161
+ "margin": 4,
1146
1162
  },
1147
1163
  Object {
1148
1164
  "height": 20,
@@ -1230,6 +1246,7 @@ exports[`RadioGroup renders as expected when size is small 1`] = `
1230
1246
  "borderRadius": 999,
1231
1247
  "borderWidth": 2,
1232
1248
  "justifyContent": "center",
1249
+ "margin": 4,
1233
1250
  },
1234
1251
  Object {
1235
1252
  "height": 16,
@@ -1310,6 +1327,7 @@ exports[`RadioGroup renders as expected when size is small 1`] = `
1310
1327
  "borderRadius": 999,
1311
1328
  "borderWidth": 2,
1312
1329
  "justifyContent": "center",
1330
+ "margin": 4,
1313
1331
  },
1314
1332
  Object {
1315
1333
  "height": 16,
@@ -1373,6 +1391,7 @@ exports[`RadioGroup renders as expected when size is small 1`] = `
1373
1391
  "borderRadius": 999,
1374
1392
  "borderWidth": 2,
1375
1393
  "justifyContent": "center",
1394
+ "margin": 4,
1376
1395
  },
1377
1396
  Object {
1378
1397
  "height": 16,
@@ -1437,6 +1456,7 @@ exports[`RadioGroup renders as expected when size is small 1`] = `
1437
1456
  "borderRadius": 999,
1438
1457
  "borderWidth": 2,
1439
1458
  "justifyContent": "center",
1459
+ "margin": 4,
1440
1460
  },
1441
1461
  Object {
1442
1462
  "height": 16,
@@ -1524,6 +1544,7 @@ exports[`RadioGroup renders default RadioGroup as expected 1`] = `
1524
1544
  "borderRadius": 999,
1525
1545
  "borderWidth": 2,
1526
1546
  "justifyContent": "center",
1547
+ "margin": 4,
1527
1548
  },
1528
1549
  Object {
1529
1550
  "height": 20,
@@ -1604,6 +1625,7 @@ exports[`RadioGroup renders default RadioGroup as expected 1`] = `
1604
1625
  "borderRadius": 999,
1605
1626
  "borderWidth": 2,
1606
1627
  "justifyContent": "center",
1628
+ "margin": 4,
1607
1629
  },
1608
1630
  Object {
1609
1631
  "height": 20,
@@ -1667,6 +1689,7 @@ exports[`RadioGroup renders default RadioGroup as expected 1`] = `
1667
1689
  "borderRadius": 999,
1668
1690
  "borderWidth": 2,
1669
1691
  "justifyContent": "center",
1692
+ "margin": 4,
1670
1693
  },
1671
1694
  Object {
1672
1695
  "height": 20,
@@ -1731,6 +1754,7 @@ exports[`RadioGroup renders default RadioGroup as expected 1`] = `
1731
1754
  "borderRadius": 999,
1732
1755
  "borderWidth": 2,
1733
1756
  "justifyContent": "center",
1757
+ "margin": 4,
1734
1758
  },
1735
1759
  Object {
1736
1760
  "height": 20,
@@ -1,5 +1,6 @@
1
1
  import { Platform } from 'react-native';
2
2
 
3
+ const IS_DEV = __DEV__;
3
4
  const IS_ANDROID = Platform.OS === 'android';
4
5
  const IS_IOS = Platform.OS === 'ios';
5
6
 
@@ -16,6 +17,7 @@ const PLATFORM_TOUCH_TARGET = Platform.select({
16
17
  export default {
17
18
  ...Platform,
18
19
  IS_ANDROID,
20
+ IS_DEV,
19
21
  IS_IOS,
20
22
  PLATFORM_TOUCH_TARGET,
21
23
  };
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.18';
1
+ export const VERSION = '1.2.20';