@aws-amplify/ui-angular 2.0.1-next.6 → 2.0.4
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.
- package/LICENSE +201 -0
- package/README.md +28 -0
- package/aws-amplify-ui-angular.d.ts +26 -24
- package/aws-amplify-ui-angular.metadata.json +1 -1
- package/bundles/aws-amplify-ui-angular-legacy.umd.js +2229 -0
- package/bundles/aws-amplify-ui-angular-legacy.umd.js.map +1 -0
- package/bundles/aws-amplify-ui-angular-legacy.umd.min.js +16 -0
- package/bundles/aws-amplify-ui-angular-legacy.umd.min.js.map +1 -0
- package/bundles/aws-amplify-ui-angular.umd.js +931 -2858
- package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
- package/esm2015/aws-amplify-ui-angular.js +27 -25
- package/esm2015/index.js +22 -8
- package/esm2015/legacy/aws-amplify-ui-angular-legacy.js +6 -0
- package/esm2015/legacy/index.js +3 -0
- package/esm2015/legacy/legacy-ui-angular.module.js +53 -0
- package/esm2015/legacy/proxies.js +1839 -0
- package/esm2015/lib/common/types/auth-types.js +1 -1
- package/esm2015/lib/components/authenticator/authenticator.module.js +78 -0
- package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +91 -0
- package/esm2015/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.js +40 -0
- package/esm2015/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.js +57 -0
- package/esm2015/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.js +55 -0
- package/esm2015/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.js +39 -0
- package/esm2015/lib/components/authenticator/components/federated-sign-in/federated-sign-in.component.js +47 -0
- package/esm2015/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.js +27 -0
- package/esm2015/lib/components/authenticator/components/force-new-password/force-new-password.component.js +39 -0
- package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +97 -0
- package/esm2015/lib/components/authenticator/components/index.js +17 -0
- package/esm2015/lib/components/authenticator/components/reset-password/reset-password.component.js +45 -0
- package/esm2015/lib/components/authenticator/components/setup-totp/setup-totp.component.js +65 -0
- package/esm2015/lib/components/authenticator/components/sign-in/sign-in.component.js +38 -0
- package/esm2015/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.js +34 -0
- package/esm2015/lib/components/authenticator/components/sign-up/sign-up.component.js +37 -0
- package/esm2015/lib/components/authenticator/components/user-name-alias/user-name-alias.component.js +35 -0
- package/esm2015/lib/components/authenticator/components/verify-user/verify-user.component.js +54 -0
- package/esm2015/lib/primitives/button/button.component.js +38 -0
- package/esm2015/lib/primitives/checkbox/checkbox.component.js +31 -0
- package/esm2015/lib/primitives/error/error.component.js +16 -0
- package/esm2015/lib/primitives/index.js +10 -3
- package/esm2015/lib/primitives/password-field/password-field.component.js +45 -0
- package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +11 -4
- package/esm2015/lib/primitives/{amplify-select/amplify-select.component.js → select/select.component.js} +4 -4
- package/esm2015/lib/primitives/tab-item/tab-item.component.js +5 -3
- package/esm2015/lib/primitives/tabs/tabs.component.js +2 -2
- package/esm2015/lib/primitives/text-field/text-field.component.js +35 -0
- package/esm2015/lib/services/authenticator.service.js +141 -0
- package/esm2015/lib/services/custom-components.service.js +23 -0
- package/esm2015/lib/utilities/amplify-slot/amplify-slot.component.js +32 -0
- package/esm2015/lib/utilities/amplify-slot/amplify-slot.directive.js +21 -0
- package/fesm2015/aws-amplify-ui-angular-legacy.js +1846 -0
- package/fesm2015/aws-amplify-ui-angular-legacy.js.map +1 -0
- package/fesm2015/aws-amplify-ui-angular.js +695 -2617
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/index.d.ts +21 -7
- package/legacy/aws-amplify-ui-angular-legacy.d.ts +5 -0
- package/legacy/aws-amplify-ui-angular-legacy.metadata.json +1 -0
- package/legacy/index.d.ts +2 -0
- package/legacy/legacy-ui-angular.module.d.ts +2 -0
- package/legacy/package.json +11 -0
- package/{lib → legacy}/proxies.d.ts +0 -0
- package/lib/common/types/auth-types.d.ts +2 -5
- package/lib/components/authenticator/authenticator.module.d.ts +2 -0
- package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +73 -0
- package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +55 -0
- package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +57 -0
- package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +56 -0
- package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +54 -0
- 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
- package/lib/components/authenticator/components/federated-sign-in-button/federated-sign-in-button.component.d.ts +9 -0
- package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +54 -0
- package/lib/{primitives/amplify-form-field/amplify-form-field.component.d.ts → components/authenticator/components/form-field/form-field.component.d.ts} +7 -4
- package/lib/components/authenticator/components/index.d.ts +16 -0
- package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +57 -0
- package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +58 -0
- package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +53 -0
- package/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.d.ts +12 -0
- package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +52 -0
- 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
- package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +59 -0
- package/lib/primitives/{amplify-button/amplify-button.component.d.ts → button/button.component.d.ts} +1 -1
- package/lib/primitives/checkbox/checkbox.component.d.ts +12 -0
- package/lib/primitives/error/error.component.d.ts +4 -0
- package/lib/primitives/index.d.ts +9 -2
- package/lib/primitives/{amplify-password-field/amplify-password-field.component.d.ts → password-field/password-field.component.d.ts} +5 -2
- package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +2 -0
- package/lib/primitives/{amplify-select/amplify-select.component.d.ts → select/select.component.d.ts} +1 -1
- package/lib/primitives/tab-item/tab-item.component.d.ts +1 -0
- package/lib/primitives/{amplify-text-field/amplify-text-field.component.d.ts → text-field/text-field.component.d.ts} +4 -2
- package/lib/services/authenticator.service.d.ts +101 -0
- package/lib/services/custom-components.service.d.ts +9 -0
- package/lib/utilities/amplify-slot/amplify-slot.component.d.ts +12 -0
- package/lib/{directives → utilities/amplify-slot}/amplify-slot.directive.d.ts +0 -0
- package/package.json +3 -4
- package/theme.css +0 -1
- package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +0 -85
- package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +0 -91
- package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +0 -83
- package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +0 -37
- package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +0 -27
- package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +0 -83
- package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +0 -68
- package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +0 -100
- package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +0 -78
- package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +0 -97
- package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +0 -78
- package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +0 -76
- package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +0 -66
- package/esm2015/lib/components/index.js +0 -14
- package/esm2015/lib/directives/amplify-slot.directive.js +0 -21
- package/esm2015/lib/primitives/amplify-button/amplify-button.component.js +0 -38
- package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +0 -10
- package/esm2015/lib/primitives/amplify-form-field/amplify-form-field.component.js +0 -91
- package/esm2015/lib/primitives/amplify-password-field/amplify-password-field.component.js +0 -39
- package/esm2015/lib/primitives/amplify-text-field/amplify-text-field.component.js +0 -29
- package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +0 -35
- package/esm2015/lib/proxies.js +0 -1839
- package/esm2015/lib/services/authenticator-context.service.js +0 -28
- package/esm2015/lib/services/state-machine.service.js +0 -51
- package/esm2015/lib/ui-angular.module.js +0 -103
- package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +0 -35
- package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +0 -31
- package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +0 -34
- package/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.d.ts +0 -9
- package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +0 -31
- package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +0 -30
- package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +0 -31
- package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +0 -32
- package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +0 -32
- package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +0 -32
- package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +0 -34
- package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +0 -28
- package/lib/components/index.d.ts +0 -13
- package/lib/primitives/amplify-error/amplify-error.component.d.ts +0 -2
- package/lib/services/authenticator-context.service.d.ts +0 -10
- package/lib/services/state-machine.service.d.ts +0 -29
- package/lib/ui-angular.module.d.ts +0 -2
- package/styles/component.css +0 -169
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AuthContext, AuthenticatorMachineOptions, AuthEvent, AuthInterpreter, AuthMachineState } 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({ initialState, loginMechanisms, }: AuthenticatorMachineOptions): 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
|
-
}
|
package/styles/component.css
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
[data-amplify-authenticator] {
|
|
2
|
-
font-size: 1rem;
|
|
3
|
-
line-height: 1.5rem;
|
|
4
|
-
--tw-text-opacity: 1;
|
|
5
|
-
color: rgba(55, 65, 81, var(--tw-text-opacity));
|
|
6
|
-
--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
7
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
8
|
-
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
9
|
-
font-family: 'Work Sans', Arial, Helvetica, sans-serif;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
[data-amplify-wrapper] [data-amplify-heading] {
|
|
13
|
-
margin-bottom: 0px;
|
|
14
|
-
font-size: 1.25rem;
|
|
15
|
-
line-height: 1.75rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
[data-amplify-authenticator] [data-amplify-form] {
|
|
19
|
-
display: grid;
|
|
20
|
-
--tw-bg-opacity: 1;
|
|
21
|
-
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
22
|
-
padding: 2rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[data-amplify-wrapper] [data-amplify-label] > :not([hidden]) ~ :not([hidden]) {
|
|
26
|
-
--tw-space-y-reverse: 0;
|
|
27
|
-
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
28
|
-
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[data-amplify-confirmationcode] {
|
|
32
|
-
display: grid;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[data-amplify-wrapper] [data-amplify-password] [data-amplify-box] {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: row;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
[data-amplify-wrapper]
|
|
41
|
-
[data-amplify-password]
|
|
42
|
-
[data-amplify-box]
|
|
43
|
-
> :not([hidden])
|
|
44
|
-
~ :not([hidden]) {
|
|
45
|
-
--tw-space-x-reverse: 0;
|
|
46
|
-
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
47
|
-
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
[data-amplify-wrapper]
|
|
51
|
-
[data-amplify-password]
|
|
52
|
-
[data-amplify-box]
|
|
53
|
-
[data-amplify-text] {
|
|
54
|
-
font-size: 0.875rem;
|
|
55
|
-
line-height: 1.25rem;
|
|
56
|
-
--tw-text-opacity: 1;
|
|
57
|
-
color: rgba(107, 114, 128, var(--tw-text-opacity));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
[data-amplify-wrapper]
|
|
61
|
-
[data-amplify-password]
|
|
62
|
-
[data-amplify-box]
|
|
63
|
-
[data-amplify-button] {
|
|
64
|
-
font-size: 0.875rem;
|
|
65
|
-
line-height: 1.25rem;
|
|
66
|
-
--tw-text-opacity: 1;
|
|
67
|
-
color: rgba(59, 130, 246, var(--tw-text-opacity));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
[data-amplify-wrapper] [data-amplify-footer] [data-amplify-text] {
|
|
71
|
-
font-size: 0.875rem;
|
|
72
|
-
line-height: 1.25rem;
|
|
73
|
-
--tw-text-opacity: 1;
|
|
74
|
-
color: rgba(107, 114, 128, var(--tw-text-opacity));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
[data-amplify-wrapper]
|
|
78
|
-
[data-amplify-footer]
|
|
79
|
-
[data-amplify-button]:first-of-type {
|
|
80
|
-
font-size: 0.875rem;
|
|
81
|
-
line-height: 1.25rem;
|
|
82
|
-
--tw-text-opacity: 1;
|
|
83
|
-
color: rgba(59, 130, 246, var(--tw-text-opacity));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
[data-amplify-wrapper]
|
|
87
|
-
[data-amplify-footer]
|
|
88
|
-
[data-amplify-button]:last-of-type {
|
|
89
|
-
border-radius: 0.25rem;
|
|
90
|
-
--tw-bg-opacity: 1;
|
|
91
|
-
background-color: rgba(55, 65, 81, var(--tw-bg-opacity));
|
|
92
|
-
padding-left: 2rem;
|
|
93
|
-
padding-right: 2rem;
|
|
94
|
-
padding-top: 0.5rem;
|
|
95
|
-
padding-bottom: 0.5rem;
|
|
96
|
-
font-size: 1rem;
|
|
97
|
-
line-height: 1.5rem;
|
|
98
|
-
--tw-text-opacity: 1;
|
|
99
|
-
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
[data-amplify-authenticator] :disabled {
|
|
103
|
-
opacity: 0.5;
|
|
104
|
-
cursor: initial;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
[data-ui-error] {
|
|
108
|
-
color: orangered;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
[data-amplify-wrapper] [data-amplify-federated] {
|
|
112
|
-
display: flex;
|
|
113
|
-
width: 100%;
|
|
114
|
-
flex-direction: column;
|
|
115
|
-
gap: 1rem;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
[data-amplify-wrapper] [data-amplify-federated] [data-amplify-button] {
|
|
119
|
-
border-radius: 0.5rem;
|
|
120
|
-
background-color: transparent;
|
|
121
|
-
padding: 0.5rem;
|
|
122
|
-
font-size: 0.875rem;
|
|
123
|
-
line-height: 1.25rem;
|
|
124
|
-
--tw-text-opacity: 1;
|
|
125
|
-
color: rgba(59, 130, 246, var(--tw-text-opacity));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
[data-amplify-button] {
|
|
129
|
-
cursor: pointer;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
[data-amplify-strike] {
|
|
133
|
-
width: 100%;
|
|
134
|
-
text-align: center;
|
|
135
|
-
border-bottom: 1px solid #c4c4c4;
|
|
136
|
-
line-height: 0.1em;
|
|
137
|
-
margin: 32px 0;
|
|
138
|
-
color: #828282;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
[data-amplify-strike] [data-amplify-spacer] {
|
|
142
|
-
background: white;
|
|
143
|
-
padding: 0 25px;
|
|
144
|
-
font-size: 14px;
|
|
145
|
-
font-weight: 500;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
[data-amplify-wrapper] [data-amplify-verify-label] {
|
|
149
|
-
display: flex;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
[data-amplify-wrapper] [data-amplify-verify-input] {
|
|
153
|
-
width: initial;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.federated-sign-in-button {
|
|
157
|
-
border-color: black;
|
|
158
|
-
border-radius: 0;
|
|
159
|
-
color: black;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.federated-sign-in-button-row {
|
|
163
|
-
position: relative;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.federated-sign-in-icon {
|
|
167
|
-
position: absolute;
|
|
168
|
-
left: 0;
|
|
169
|
-
}
|