@aws-amplify/ui-angular 2.0.1-next.5 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +28 -0
  3. package/aws-amplify-ui-angular.d.ts +26 -24
  4. package/aws-amplify-ui-angular.metadata.json +1 -1
  5. package/bundles/aws-amplify-ui-angular-legacy.umd.js +2229 -0
  6. package/bundles/aws-amplify-ui-angular-legacy.umd.js.map +1 -0
  7. package/bundles/aws-amplify-ui-angular-legacy.umd.min.js +16 -0
  8. package/bundles/aws-amplify-ui-angular-legacy.umd.min.js.map +1 -0
  9. package/bundles/aws-amplify-ui-angular.umd.js +897 -2865
  10. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
  11. package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
  12. package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
  13. package/esm2015/aws-amplify-ui-angular.js +27 -25
  14. package/esm2015/index.js +22 -8
  15. package/esm2015/legacy/aws-amplify-ui-angular-legacy.js +6 -0
  16. package/esm2015/legacy/index.js +3 -0
  17. package/esm2015/legacy/legacy-ui-angular.module.js +53 -0
  18. package/esm2015/legacy/proxies.js +1839 -0
  19. package/esm2015/lib/common/types/auth-types.js +1 -1
  20. package/esm2015/lib/components/authenticator/authenticator.module.js +78 -0
  21. package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +87 -0
  22. package/esm2015/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.js +40 -0
  23. package/esm2015/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.js +57 -0
  24. package/esm2015/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.js +39 -0
  25. package/esm2015/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.js +39 -0
  26. package/esm2015/lib/components/authenticator/components/federated-sign-in/federated-sign-in.component.js +47 -0
  27. package/esm2015/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.js +27 -0
  28. package/esm2015/lib/components/authenticator/components/force-new-password/force-new-password.component.js +39 -0
  29. package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +97 -0
  30. package/esm2015/lib/components/authenticator/components/index.js +17 -0
  31. package/esm2015/lib/components/authenticator/components/reset-password/reset-password.component.js +45 -0
  32. package/esm2015/lib/components/authenticator/components/setup-totp/setup-totp.component.js +65 -0
  33. package/esm2015/lib/components/authenticator/components/sign-in/sign-in.component.js +38 -0
  34. package/esm2015/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.js +34 -0
  35. package/esm2015/lib/components/authenticator/components/sign-up/sign-up.component.js +37 -0
  36. package/esm2015/lib/components/authenticator/components/user-name-alias/user-name-alias.component.js +35 -0
  37. package/esm2015/lib/components/authenticator/components/verify-user/verify-user.component.js +54 -0
  38. package/esm2015/lib/primitives/button/button.component.js +38 -0
  39. package/esm2015/lib/primitives/checkbox/checkbox.component.js +31 -0
  40. package/esm2015/lib/primitives/error/error.component.js +16 -0
  41. package/esm2015/lib/primitives/index.js +10 -3
  42. package/esm2015/lib/primitives/password-field/password-field.component.js +45 -0
  43. package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +11 -4
  44. package/esm2015/lib/primitives/{amplify-select/amplify-select.component.js → select/select.component.js} +4 -4
  45. package/esm2015/lib/primitives/tabs/tabs.component.js +3 -2
  46. package/esm2015/lib/primitives/text-field/text-field.component.js +35 -0
  47. package/esm2015/lib/services/authenticator.service.js +136 -0
  48. package/esm2015/lib/services/custom-components.service.js +23 -0
  49. package/esm2015/lib/utilities/amplify-slot/amplify-slot.component.js +32 -0
  50. package/esm2015/lib/utilities/amplify-slot/amplify-slot.directive.js +21 -0
  51. package/fesm2015/aws-amplify-ui-angular-legacy.js +1846 -0
  52. package/fesm2015/aws-amplify-ui-angular-legacy.js.map +1 -0
  53. package/fesm2015/aws-amplify-ui-angular.js +672 -2624
  54. package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
  55. package/index.d.ts +21 -7
  56. package/legacy/aws-amplify-ui-angular-legacy.d.ts +5 -0
  57. package/legacy/aws-amplify-ui-angular-legacy.metadata.json +1 -0
  58. package/legacy/index.d.ts +2 -0
  59. package/legacy/legacy-ui-angular.module.d.ts +2 -0
  60. package/legacy/package.json +11 -0
  61. package/{lib → legacy}/proxies.d.ts +0 -0
  62. package/lib/common/types/auth-types.d.ts +2 -5
  63. package/lib/components/authenticator/authenticator.module.d.ts +2 -0
  64. package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +69 -0
  65. package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +52 -0
  66. package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +54 -0
  67. package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +51 -0
  68. package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +51 -0
  69. package/lib/components/{amplify-federated-sign-in/amplify-federated-sign-in.component.d.ts → authenticator/components/federated-sign-in/federated-sign-in.component.d.ts} +9 -6
  70. package/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.d.ts +9 -0
  71. package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +51 -0
  72. package/lib/{primitives/amplify-form-field/amplify-form-field.component.d.ts → components/authenticator/components/form-field/form-field.component.d.ts} +7 -4
  73. package/lib/components/authenticator/components/index.d.ts +16 -0
  74. package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +54 -0
  75. package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +55 -0
  76. package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +50 -0
  77. package/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.d.ts +12 -0
  78. package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +49 -0
  79. package/lib/{primitives/amplify-user-name-alias/amplify-user-name-alias.component.d.ts → components/authenticator/components/user-name-alias/user-name-alias.component.d.ts} +4 -4
  80. package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +56 -0
  81. package/lib/primitives/{amplify-button/amplify-button.component.d.ts → button/button.component.d.ts} +1 -1
  82. package/lib/primitives/checkbox/checkbox.component.d.ts +12 -0
  83. package/lib/primitives/error/error.component.d.ts +4 -0
  84. package/lib/primitives/index.d.ts +9 -2
  85. package/lib/primitives/{amplify-password-field/amplify-password-field.component.d.ts → password-field/password-field.component.d.ts} +5 -2
  86. package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +2 -0
  87. package/lib/primitives/{amplify-select/amplify-select.component.d.ts → select/select.component.d.ts} +1 -1
  88. package/lib/primitives/{amplify-text-field/amplify-text-field.component.d.ts → text-field/text-field.component.d.ts} +4 -2
  89. package/lib/services/authenticator.service.d.ts +97 -0
  90. package/lib/services/custom-components.service.d.ts +9 -0
  91. package/lib/utilities/amplify-slot/amplify-slot.component.d.ts +12 -0
  92. package/lib/{directives → utilities/amplify-slot}/amplify-slot.directive.d.ts +0 -0
  93. package/package.json +3 -4
  94. package/theme.css +0 -1
  95. package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +0 -89
  96. package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +0 -91
  97. package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +0 -83
  98. package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +0 -37
  99. package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +0 -27
  100. package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +0 -83
  101. package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +0 -68
  102. package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +0 -100
  103. package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +0 -78
  104. package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +0 -97
  105. package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +0 -78
  106. package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +0 -76
  107. package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +0 -66
  108. package/esm2015/lib/components/index.js +0 -14
  109. package/esm2015/lib/directives/amplify-slot.directive.js +0 -21
  110. package/esm2015/lib/primitives/amplify-button/amplify-button.component.js +0 -38
  111. package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +0 -10
  112. package/esm2015/lib/primitives/amplify-form-field/amplify-form-field.component.js +0 -91
  113. package/esm2015/lib/primitives/amplify-password-field/amplify-password-field.component.js +0 -39
  114. package/esm2015/lib/primitives/amplify-text-field/amplify-text-field.component.js +0 -29
  115. package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +0 -35
  116. package/esm2015/lib/proxies.js +0 -1839
  117. package/esm2015/lib/services/authenticator-context.service.js +0 -28
  118. package/esm2015/lib/services/state-machine.service.js +0 -52
  119. package/esm2015/lib/ui-angular.module.js +0 -103
  120. package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +0 -36
  121. package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +0 -31
  122. package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +0 -34
  123. package/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.d.ts +0 -9
  124. package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +0 -31
  125. package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +0 -30
  126. package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +0 -31
  127. package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +0 -32
  128. package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +0 -32
  129. package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +0 -32
  130. package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +0 -34
  131. package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +0 -28
  132. package/lib/components/index.d.ts +0 -13
  133. package/lib/primitives/amplify-error/amplify-error.component.d.ts +0 -2
  134. package/lib/services/authenticator-context.service.d.ts +0 -10
  135. package/lib/services/state-machine.service.d.ts +0 -29
  136. package/lib/ui-angular.module.d.ts +0 -2
  137. package/styles/component.css +0 -174
@@ -1,29 +0,0 @@
1
- import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineState, LoginMechanism } from '@aws-amplify/ui';
2
- import { Event } from 'xstate';
3
- /**
4
- * AmplifyContextService contains access to the xstate machine
5
- * and custom components passed by the user.
6
- */
7
- export declare class StateMachineService {
8
- private _authState;
9
- private _authService;
10
- private _user;
11
- private _services;
12
- startMachine(loginMechanisms?: LoginMechanism[]): void;
13
- get services(): {
14
- readonly change: (data?: Record<string | number | symbol, any>) => void;
15
- readonly federatedSignIn: (data?: Record<string | number | symbol, any>) => void;
16
- readonly resend: (data?: Record<string | number | symbol, any>) => void;
17
- readonly resetPassword: (data?: Record<string | number | symbol, any>) => void;
18
- readonly signIn: (data?: Record<string | number | symbol, any>) => void;
19
- readonly signOut: (data?: Record<string | number | symbol, any>) => void;
20
- readonly signUp: (data?: Record<string | number | symbol, any>) => void;
21
- readonly skip: (data?: Record<string | number | symbol, any>) => void;
22
- readonly submit: (data?: Record<string | number | symbol, any>) => void;
23
- };
24
- get authState(): AuthMachineState;
25
- get authService(): AuthInterpreter;
26
- get user(): Record<string, any>;
27
- get context(): AuthContext;
28
- send(event: Event<AuthEvent>): void;
29
- }
@@ -1,2 +0,0 @@
1
- export declare class UiAngularModule {
2
- }
@@ -1,174 +0,0 @@
1
- [data-amplify-authenticator] {
2
- margin-left: auto;
3
- margin-right: auto;
4
- max-width: 36rem;
5
- overflow: hidden;
6
- border-radius: 0.375rem;
7
- font-size: 1rem;
8
- line-height: 1.5rem;
9
- --tw-text-opacity: 1;
10
- color: rgba(55, 65, 81, var(--tw-text-opacity));
11
- --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
12
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
13
- var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
14
- font-family: 'Work Sans', Arial, Helvetica, sans-serif;
15
- }
16
-
17
- [data-amplify-wrapper] [data-amplify-heading] {
18
- margin-bottom: 0px;
19
- font-size: 1.25rem;
20
- line-height: 1.75rem;
21
- }
22
-
23
- [data-amplify-authenticator] [data-amplify-form] {
24
- display: grid;
25
- --tw-bg-opacity: 1;
26
- background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
27
- padding: 2rem;
28
- }
29
-
30
- [data-amplify-wrapper] [data-amplify-label] > :not([hidden]) ~ :not([hidden]) {
31
- --tw-space-y-reverse: 0;
32
- margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
33
- margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
34
- }
35
-
36
- [data-amplify-confirmationcode] {
37
- display: grid;
38
- }
39
-
40
- [data-amplify-wrapper] [data-amplify-password] [data-amplify-box] {
41
- display: flex;
42
- flex-direction: row;
43
- }
44
-
45
- [data-amplify-wrapper]
46
- [data-amplify-password]
47
- [data-amplify-box]
48
- > :not([hidden])
49
- ~ :not([hidden]) {
50
- --tw-space-x-reverse: 0;
51
- margin-right: calc(0.25rem * var(--tw-space-x-reverse));
52
- margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
53
- }
54
-
55
- [data-amplify-wrapper]
56
- [data-amplify-password]
57
- [data-amplify-box]
58
- [data-amplify-text] {
59
- font-size: 0.875rem;
60
- line-height: 1.25rem;
61
- --tw-text-opacity: 1;
62
- color: rgba(107, 114, 128, var(--tw-text-opacity));
63
- }
64
-
65
- [data-amplify-wrapper]
66
- [data-amplify-password]
67
- [data-amplify-box]
68
- [data-amplify-button] {
69
- font-size: 0.875rem;
70
- line-height: 1.25rem;
71
- --tw-text-opacity: 1;
72
- color: rgba(59, 130, 246, var(--tw-text-opacity));
73
- }
74
-
75
- [data-amplify-wrapper] [data-amplify-footer] [data-amplify-text] {
76
- font-size: 0.875rem;
77
- line-height: 1.25rem;
78
- --tw-text-opacity: 1;
79
- color: rgba(107, 114, 128, var(--tw-text-opacity));
80
- }
81
-
82
- [data-amplify-wrapper]
83
- [data-amplify-footer]
84
- [data-amplify-button]:first-of-type {
85
- font-size: 0.875rem;
86
- line-height: 1.25rem;
87
- --tw-text-opacity: 1;
88
- color: rgba(59, 130, 246, var(--tw-text-opacity));
89
- }
90
-
91
- [data-amplify-wrapper]
92
- [data-amplify-footer]
93
- [data-amplify-button]:last-of-type {
94
- border-radius: 0.25rem;
95
- --tw-bg-opacity: 1;
96
- background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
97
- padding-left: 2rem;
98
- padding-right: 2rem;
99
- padding-top: 0.5rem;
100
- padding-bottom: 0.5rem;
101
- font-size: 1rem;
102
- line-height: 1.5rem;
103
- --tw-text-opacity: 1;
104
- color: rgba(255, 255, 255, var(--tw-text-opacity));
105
- }
106
-
107
- [data-amplify-authenticator] :disabled {
108
- opacity: 0.5;
109
- cursor: initial;
110
- }
111
-
112
- [data-ui-error] {
113
- color: orangered;
114
- }
115
-
116
- [data-amplify-wrapper] [data-amplify-federated] {
117
- display: flex;
118
- width: 100%;
119
- flex-direction: column;
120
- gap: 1rem;
121
- }
122
-
123
- [data-amplify-wrapper] [data-amplify-federated] [data-amplify-button] {
124
- border-radius: 0.5rem;
125
- background-color: transparent;
126
- padding: 0.5rem;
127
- font-size: 0.875rem;
128
- line-height: 1.25rem;
129
- --tw-text-opacity: 1;
130
- color: rgba(59, 130, 246, var(--tw-text-opacity));
131
- }
132
-
133
- [data-amplify-button] {
134
- cursor: pointer;
135
- }
136
-
137
- [data-amplify-strike] {
138
- width: 100%;
139
- text-align: center;
140
- border-bottom: 1px solid #c4c4c4;
141
- line-height: 0.1em;
142
- margin: 32px 0;
143
- color: #828282;
144
- }
145
-
146
- [data-amplify-strike] [data-amplify-spacer] {
147
- background: white;
148
- padding: 0 25px;
149
- font-size: 14px;
150
- font-weight: 500;
151
- }
152
-
153
- [data-amplify-wrapper] [data-amplify-verify-label] {
154
- display: flex;
155
- }
156
-
157
- [data-amplify-wrapper] [data-amplify-verify-input] {
158
- width: initial;
159
- }
160
-
161
- .federated-sign-in-button {
162
- border-color: black;
163
- border-radius: 0;
164
- color: black;
165
- }
166
-
167
- .federated-sign-in-button-row {
168
- position: relative;
169
- }
170
-
171
- .federated-sign-in-icon {
172
- position: absolute;
173
- left: 0;
174
- }