@aws-amplify/ui-angular 1.0.26-unstable.2 → 2.0.1-next.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 (80) hide show
  1. package/aws-amplify-ui-angular.d.ts +22 -0
  2. package/aws-amplify-ui-angular.metadata.json +1 -0
  3. package/bundles/aws-amplify-ui-angular.umd.js +3587 -0
  4. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -0
  5. package/bundles/aws-amplify-ui-angular.umd.min.js +2 -0
  6. package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -0
  7. package/esm2015/aws-amplify-ui-angular.js +23 -0
  8. package/esm2015/index.js +12 -0
  9. package/esm2015/lib/common/helpers.js +3 -0
  10. package/esm2015/lib/common/index.js +3 -0
  11. package/esm2015/lib/common/types/auth-types.js +2 -0
  12. package/esm2015/lib/common/types/component-types.js +2 -0
  13. package/esm2015/lib/common/types/index.js +3 -0
  14. package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +66 -0
  15. package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +91 -0
  16. package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +102 -0
  17. package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +37 -0
  18. package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +27 -0
  19. package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +83 -0
  20. package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +68 -0
  21. package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +100 -0
  22. package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +82 -0
  23. package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +92 -0
  24. package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +73 -0
  25. package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +76 -0
  26. package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +63 -0
  27. package/esm2015/lib/components/index.js +14 -0
  28. package/esm2015/lib/directives/amplify-override.directive.js +21 -0
  29. package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +10 -0
  30. package/esm2015/lib/primitives/amplify-input/amplify-input.component.js +82 -0
  31. package/esm2015/lib/primitives/amplify-select/amplify-select.component.js +17 -0
  32. package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +35 -0
  33. package/esm2015/lib/primitives/index.js +3 -0
  34. package/esm2015/lib/proxies.js +1839 -0
  35. package/esm2015/lib/services/authenticator-context.service.js +28 -0
  36. package/esm2015/lib/services/state-machine.service.js +46 -0
  37. package/esm2015/lib/ui-angular.module.js +91 -0
  38. package/fesm2015/aws-amplify-ui-angular.js +2989 -0
  39. package/fesm2015/aws-amplify-ui-angular.js.map +1 -0
  40. package/index.d.ts +8 -0
  41. package/lib/common/helpers.d.ts +2 -0
  42. package/lib/common/index.d.ts +2 -0
  43. package/lib/common/types/auth-types.d.ts +6 -0
  44. package/lib/common/types/component-types.d.ts +23 -0
  45. package/lib/common/types/index.d.ts +2 -0
  46. package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +31 -0
  47. package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +31 -0
  48. package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +37 -0
  49. package/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.d.ts +16 -0
  50. package/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.d.ts +9 -0
  51. package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +31 -0
  52. package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +30 -0
  53. package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +31 -0
  54. package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +34 -0
  55. package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +35 -0
  56. package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +31 -0
  57. package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +34 -0
  58. package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +26 -0
  59. package/lib/components/index.d.ts +13 -0
  60. package/lib/directives/amplify-override.directive.d.ts +7 -0
  61. package/lib/primitives/amplify-error/amplify-error.component.d.ts +2 -0
  62. package/lib/primitives/amplify-input/amplify-input.component.d.ts +31 -0
  63. package/lib/primitives/amplify-select/amplify-select.component.d.ts +7 -0
  64. package/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.d.ts +15 -0
  65. package/lib/primitives/index.d.ts +2 -0
  66. package/{dist/directives → lib}/proxies.d.ts +0 -0
  67. package/lib/services/authenticator-context.service.d.ts +10 -0
  68. package/lib/services/state-machine.service.d.ts +29 -0
  69. package/lib/ui-angular.module.d.ts +2 -0
  70. package/package.json +27 -49
  71. package/theme.css +99 -0
  72. package/CHANGELOG.md +0 -536
  73. package/LICENSE +0 -201
  74. package/README.md +0 -1
  75. package/dist/amplify-module.d.ts +0 -2
  76. package/dist/core.d.ts +0 -4
  77. package/dist/core.metadata.json +0 -1
  78. package/dist/fesm2015.js +0 -1532
  79. package/dist/fesm5.js +0 -1319
  80. package/dist/index.d.ts +0 -2
@@ -0,0 +1,31 @@
1
+ import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
+ import { AuthMachineState } from '@aws-amplify/ui';
3
+ import { StateMachineService } from '../../services/state-machine.service';
4
+ import { AuthPropService } from '../../services/authenticator-context.service';
5
+ export declare class AmplifySetupTotpComponent implements OnInit, AfterContentInit, OnDestroy {
6
+ private stateMachine;
7
+ private contextService;
8
+ customComponents: Record<string, TemplateRef<any>>;
9
+ remoteError: string;
10
+ isPending: boolean;
11
+ headerText: string;
12
+ qrCodeSource: string;
13
+ private authSubscription;
14
+ backToSignInText: string;
15
+ confirmText: string;
16
+ constructor(stateMachine: StateMachineService, contextService: AuthPropService);
17
+ ngOnInit(): void;
18
+ ngAfterContentInit(): void;
19
+ ngOnDestroy(): void;
20
+ onStateUpdate(state: AuthMachineState): void;
21
+ get context(): {
22
+ change: (data?: Record<string | number | symbol, any>) => void;
23
+ remoteError: string;
24
+ submit: (data?: Record<string | number | symbol, any>) => void;
25
+ user: Record<string, any>;
26
+ };
27
+ generateQRCode(): Promise<void>;
28
+ onInput(event: Event): void;
29
+ onSubmit(event: Event): void;
30
+ toSignIn(): void;
31
+ }
@@ -0,0 +1,34 @@
1
+ import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
+ import { StateMachineService } from '../../services/state-machine.service';
3
+ import { AuthPropService } from '../../services/authenticator-context.service';
4
+ import { AuthMachineState } from '@aws-amplify/ui';
5
+ export declare class AmplifySignInComponent implements AfterContentInit, OnInit, OnDestroy {
6
+ private stateMachine;
7
+ private contextService;
8
+ dataAttr: string;
9
+ headerText: string;
10
+ customComponents: Record<string, TemplateRef<any>>;
11
+ remoteError: string;
12
+ isPending: boolean;
13
+ forgotPasswordText: string;
14
+ signInButtonText: string;
15
+ noAccountText: string;
16
+ createAccountText: string;
17
+ private authSubscription;
18
+ constructor(stateMachine: StateMachineService, contextService: AuthPropService);
19
+ ngOnInit(): void;
20
+ ngAfterContentInit(): void;
21
+ ngOnDestroy(): void;
22
+ onStateUpdate(state: AuthMachineState): void;
23
+ get context(): {
24
+ change: (data?: Record<string | number | symbol, any>) => void;
25
+ remoteError: string;
26
+ resetPassword: (data?: Record<string | number | symbol, any>) => void;
27
+ signUp: (data?: Record<string | number | symbol, any>) => void;
28
+ submit: (data?: Record<string | number | symbol, any>) => void;
29
+ };
30
+ toSignUp(): void;
31
+ toResetPassword(): void;
32
+ onInput(event: Event): void;
33
+ onSubmit(event: Event): Promise<void>;
34
+ }
@@ -0,0 +1,35 @@
1
+ import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
+ import { StateMachineService } from '../../services/state-machine.service';
3
+ import { AuthPropService } from '../../services/authenticator-context.service';
4
+ import { ValidationError } from '@aws-amplify/ui';
5
+ export declare class AmplifySignUpComponent implements AfterContentInit, OnInit, OnDestroy {
6
+ private stateMachine;
7
+ private contextService;
8
+ dataAttr: string;
9
+ headerText: string;
10
+ customComponents: Record<string, TemplateRef<any>>;
11
+ remoteError: string;
12
+ isPending: boolean;
13
+ primaryAlias: string;
14
+ secondaryAliases: string[];
15
+ validationError: ValidationError;
16
+ private authSubscription;
17
+ createAccountText: string;
18
+ haveAccountText: string;
19
+ signInText: string;
20
+ constructor(stateMachine: StateMachineService, contextService: AuthPropService);
21
+ get context(): {
22
+ change: (data?: Record<string | number | symbol, any>) => void;
23
+ remoteError: string;
24
+ signIn: (data?: Record<string | number | symbol, any>) => void;
25
+ submit: (data?: Record<string | number | symbol, any>) => void;
26
+ validationError: Record<string, string>;
27
+ };
28
+ ngOnInit(): void;
29
+ ngAfterContentInit(): void;
30
+ ngOnDestroy(): void;
31
+ private onStateUpdate;
32
+ onSubmit($event: any): Promise<void>;
33
+ onInput(event: Event): void;
34
+ toSignIn(): void;
35
+ }
@@ -0,0 +1,31 @@
1
+ import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
+ import { AuthMachineState } from '@aws-amplify/ui';
3
+ import { StateMachineService } from '../../services/state-machine.service';
4
+ import { AuthPropService } from '../../services/authenticator-context.service';
5
+ export declare class AmplifyVerifyUserComponent implements AfterContentInit, OnInit, OnDestroy {
6
+ private stateMachine;
7
+ private contextService;
8
+ dataAttr: string;
9
+ headerText: string;
10
+ customComponents: Record<string, TemplateRef<any>>;
11
+ unverifiedAttributes: {};
12
+ remoteError: string;
13
+ isPending: boolean;
14
+ private authSubscription;
15
+ skipText: string;
16
+ verifyText: string;
17
+ constructor(stateMachine: StateMachineService, contextService: AuthPropService);
18
+ ngOnInit(): void;
19
+ ngAfterContentInit(): void;
20
+ ngOnDestroy(): void;
21
+ onStateUpdate(state: AuthMachineState): void;
22
+ get context(): {
23
+ change: (data?: Record<string | number | symbol, any>) => void;
24
+ remoteError: string;
25
+ skip: (data?: Record<string | number | symbol, any>) => void;
26
+ submit: (data?: Record<string | number | symbol, any>) => void;
27
+ };
28
+ skipVerify(): void;
29
+ translate(phrase: string): string;
30
+ onSubmit(event: Event): Promise<void>;
31
+ }
@@ -0,0 +1,34 @@
1
+ import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
+ import { AuthMachineState } from '@aws-amplify/ui';
3
+ import { AuthPropService } from '../../services/authenticator-context.service';
4
+ import { StateMachineService } from '../../services/state-machine.service';
5
+ export declare class ConfirmResetPasswordComponent implements OnInit, AfterContentInit, OnDestroy {
6
+ private stateMachine;
7
+ private contextService;
8
+ dataAttr: string;
9
+ headerText: string;
10
+ customComponents: Record<string, TemplateRef<any>>;
11
+ remoteError: string;
12
+ isPending: boolean;
13
+ private authSubscription;
14
+ sendCodeText: string;
15
+ backToSignInText: string;
16
+ lostCodeText: string;
17
+ resendCodeText: string;
18
+ constructor(stateMachine: StateMachineService, contextService: AuthPropService);
19
+ ngOnInit(): void;
20
+ ngAfterContentInit(): void;
21
+ ngOnDestroy(): void;
22
+ onStateUpdate(state: AuthMachineState): void;
23
+ get context(): {
24
+ change: (data?: Record<string | number | symbol, any>) => void;
25
+ resend: (data?: Record<string | number | symbol, any>) => void;
26
+ remoteError: string;
27
+ signIn: (data?: Record<string | number | symbol, any>) => void;
28
+ submit: (data?: Record<string | number | symbol, any>) => void;
29
+ };
30
+ toSignIn(): void;
31
+ resend(): void;
32
+ onInput(event: Event): void;
33
+ onSubmit(event: Event): Promise<void>;
34
+ }
@@ -0,0 +1,26 @@
1
+ import { AfterContentInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
+ import { AuthMachineState } from '@aws-amplify/ui';
3
+ import { AuthPropService } from '../../services/authenticator-context.service';
4
+ import { StateMachineService } from '../../services/state-machine.service';
5
+ export declare class ConfirmVerifyUserComponent implements OnInit, AfterContentInit, OnDestroy {
6
+ private stateMachine;
7
+ private contextService;
8
+ dataAttr: string;
9
+ headerText: string;
10
+ customComponents: Record<string, TemplateRef<any>>;
11
+ remoteError: string;
12
+ isPending: boolean;
13
+ private authSubscription;
14
+ constructor(stateMachine: StateMachineService, contextService: AuthPropService);
15
+ ngOnInit(): void;
16
+ ngAfterContentInit(): void;
17
+ ngOnDestroy(): void;
18
+ onStateUpdate(state: AuthMachineState): void;
19
+ get context(): {
20
+ remoteError: string;
21
+ skip: (data?: Record<string | number | symbol, any>) => void;
22
+ submit: (data?: Record<string | number | symbol, any>) => void;
23
+ };
24
+ skipVerify(): void;
25
+ onSubmit(event: Event): Promise<void>;
26
+ }
@@ -0,0 +1,13 @@
1
+ export { AmplifyAuthenticatorComponent } from './amplify-authenticator/amplify-authenticator.component';
2
+ export { AmplifyConfirmSignInComponent } from './amplify-confirm-sign-in/amplify-confirm-sign-in.component';
3
+ export { AmplifyConfirmSignUpComponent } from './amplify-confirm-sign-up/amplify-confirm-sign-up.component';
4
+ export { AmplifyFederatedSignInButtonComponent } from './amplify-federated-sign-in-button/amplify-federated-sign-in-button.component';
5
+ export { AmplifyFederatedSignInComponent } from './amplify-federated-sign-in/amplify-federated-sign-in.component';
6
+ export { AmplifyForceNewPasswordComponent } from './amplify-force-new-password/amplify-force-new-password.component';
7
+ export { AmplifyResetPasswordComponent } from './amplify-reset-password/amplify-reset-password.component';
8
+ export { AmplifySetupTotpComponent } from './amplify-setup-totp/amplify-setup-totp.component';
9
+ export { AmplifySignInComponent } from './amplify-sign-in/amplify-sign-in.component';
10
+ export { AmplifySignUpComponent } from './amplify-sign-up/amplify-sign-up.component';
11
+ export { AmplifyVerifyUserComponent } from './amplify-verify-user/amplify-verify-user.component';
12
+ export { ConfirmResetPasswordComponent } from './confirm-reset-password/amplify-confirm-reset-password.component';
13
+ export { ConfirmVerifyUserComponent } from './confirm-verify-user/amplify-confirm-verify-user.component';
@@ -0,0 +1,7 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ export declare class AmplifyOverrideDirective {
3
+ template: TemplateRef<any>;
4
+ constructor(template: TemplateRef<any>);
5
+ name: string;
6
+ set amplifyOverride(component: string);
7
+ }
@@ -0,0 +1,2 @@
1
+ export declare class AmplifyErrorComponent {
2
+ }
@@ -0,0 +1,31 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthInputAttributes } from '@aws-amplify/ui';
3
+ import { StateMachineService } from '../../services/state-machine.service';
4
+ /**
5
+ * Input interface opinionated for authenticator usage.
6
+ *
7
+ * TODO: Separate this component out to two parts -- 1) amplify-auth-input that
8
+ * contains authenticator opinionated logic and 2) amplify-text-field primitive
9
+ * that does not make any auth-related inference.
10
+ */
11
+ export declare class AmplifyInputComponent implements OnInit {
12
+ private stateMachine;
13
+ name: string;
14
+ type: string;
15
+ required: boolean;
16
+ placeholder: string;
17
+ label: string;
18
+ initialValue: string;
19
+ disabled: boolean;
20
+ autocomplete: string;
21
+ defaultCountryCode: string;
22
+ countryDialCodes: string[];
23
+ constructor(stateMachine: StateMachineService);
24
+ ngOnInit(): void;
25
+ get attributeMap(): AuthInputAttributes;
26
+ get error(): string;
27
+ isTelInput(): boolean;
28
+ inferLabel(): string;
29
+ inferPlaceholder(): string;
30
+ inferType(): string;
31
+ }
@@ -0,0 +1,7 @@
1
+ export declare class AmplifySelectComponent {
2
+ items: string[];
3
+ name: string;
4
+ label: string;
5
+ id: string;
6
+ initialValue: string;
7
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { StateMachineService } from '../../services/state-machine.service';
3
+ export declare class AmplifyUserNameAliasComponent implements OnInit {
4
+ private stateMachine;
5
+ name: string;
6
+ disabled: boolean;
7
+ initialValue: string;
8
+ required: boolean;
9
+ label: string;
10
+ type: string;
11
+ error: string;
12
+ placeholder: string;
13
+ constructor(stateMachine: StateMachineService);
14
+ ngOnInit(): void;
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './amplify-input/amplify-input.component';
2
+ export * from './amplify-error/amplify-error.component';
File without changes
@@ -0,0 +1,10 @@
1
+ import { CustomComponents, PropContext } from '../common';
2
+ export declare class AuthPropService {
3
+ constructor();
4
+ private _customComponents;
5
+ private _props;
6
+ get customComponents(): CustomComponents;
7
+ set customComponents(customComponents: CustomComponents);
8
+ get props(): PropContext;
9
+ set props(props: PropContext);
10
+ }
@@ -0,0 +1,29 @@
1
+ import { AuthContext, 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
+ constructor();
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
+ }
@@ -0,0 +1,2 @@
1
+ export declare class UiAngularModule {
2
+ }
package/package.json CHANGED
@@ -1,50 +1,28 @@
1
1
  {
2
- "name": "@aws-amplify/ui-angular",
3
- "version": "1.0.26-unstable.2+0918a0741",
4
- "description": "Angular specific wrapper for @aws-amplify/ui-components",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/aws-amplify/amplify-js.git"
11
- },
12
- "scripts": {
13
- "build": "npm run build.ng",
14
- "build.link": "npm run build && node scripts/link-copy.js",
15
- "build.fesm": "rollup --config ./scripts/rollup.config.js",
16
- "build.ng": "npm run build.es2015 && npm run build.es5",
17
- "build.es2015": "ngc -p tsconfig.json && rollup --config ./scripts/rollup.config.js",
18
- "build.es5": "ngc -p tsconfig.legacy.json && rollup --config ./scripts/rollup.config.legacy.js",
19
- "lint": "npm run lint.ts",
20
- "lint.ts": "tslint --project .",
21
- "lint.fix": "tslint --project . --fix",
22
- "prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next",
23
- "test": "echo 'angular no tests yet'",
24
- "tsc": "tsc -p .",
25
- "validate": "npm i && npm run lint && npm run test && npm run build"
26
- },
27
- "module": "dist/fesm5.js",
28
- "main": "dist/fesm5.js",
29
- "types": "dist/core.d.ts",
30
- "files": [
31
- "dist/"
32
- ],
33
- "dependencies": {
34
- "@aws-amplify/ui-components": "1.7.10-unstable.2+0918a0741"
35
- },
36
- "devDependencies": {
37
- "@angular/compiler-cli": "^7.2.1",
38
- "@angular/core": "^7.2.1",
39
- "@types/node": "12.12.47",
40
- "rollup": "^1.1.2",
41
- "rollup-plugin-node-resolve": "^4.0.0",
42
- "rxjs": "^6.2.0",
43
- "tsickle": "^0.34.0",
44
- "tslib": "^1.9.3",
45
- "tslint": "^5.12.1",
46
- "typescript": "3.2.4",
47
- "zone.js": "^0.8.28"
48
- },
49
- "gitHead": "0918a0741d1e90bc67cbfb10f3eb6ce719fee58e"
50
- }
2
+ "name": "@aws-amplify/ui-angular",
3
+ "version": "2.0.1-next.3",
4
+ "peerDependencies": {
5
+ "@angular/common": "^11.2.4",
6
+ "@angular/core": "^11.2.4",
7
+ "aws-amplify": "3.x.x || 4.x.x"
8
+ },
9
+ "dependencies": {
10
+ "@aws-amplify/ui": "3.0.1-next.3",
11
+ "@aws-amplify/ui-components": "^1.7.0",
12
+ "@stencil/core": "^2.7.0",
13
+ "tslib": "^2.0.0",
14
+ "qrcode": "^1.4.4",
15
+ "xstate": "^4.20.1"
16
+ },
17
+ "publishConfig": {
18
+ "directory": "../../dist/ui-angular"
19
+ },
20
+ "main": "bundles/aws-amplify-ui-angular.umd.js",
21
+ "module": "fesm2015/aws-amplify-ui-angular.js",
22
+ "es2015": "fesm2015/aws-amplify-ui-angular.js",
23
+ "esm2015": "esm2015/aws-amplify-ui-angular.js",
24
+ "fesm2015": "fesm2015/aws-amplify-ui-angular.js",
25
+ "typings": "aws-amplify-ui-angular.d.ts",
26
+ "metadata": "aws-amplify-ui-angular.metadata.json",
27
+ "sideEffects": false
28
+ }
package/theme.css ADDED
@@ -0,0 +1,99 @@
1
+ [data-amplify-authenticator] {
2
+ font-size: 14px;
3
+ font-family: 'Amazon Ember';
4
+ display: inline-block;
5
+ }
6
+
7
+ [data-amplify-header] {
8
+ margin-top: 0px;
9
+ }
10
+
11
+ [data-amplify-fieldset] {
12
+ border-style: none;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ [data-amplify-container] {
18
+ width: 22rem;
19
+ padding: 3rem;
20
+ border-style: solid;
21
+ border-width: 1px;
22
+ border-color: rgba(0, 0, 0, 0.1);
23
+ background-color: white;
24
+ }
25
+
26
+ [data-amplify-form-input] {
27
+ border-style: solid;
28
+ display: block;
29
+ padding: 0.875rem;
30
+ width: 90%;
31
+ margin-bottom: 1rem;
32
+ border-color: rgba(0, 0, 0, 0.1);
33
+ border-width: 1px;
34
+ border-radius: 2px;
35
+ }
36
+
37
+ [data-amplify-form-input]:focus {
38
+ outline: none;
39
+ border: 1px solid cornflowerblue;
40
+ }
41
+
42
+ [data-amplify-label] {
43
+ display: block;
44
+ margin-bottom: 0.625rem;
45
+ }
46
+
47
+ [data-amplify-footer] {
48
+ margin-top: 2rem;
49
+ display: flex;
50
+ flex-direction: row;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ }
54
+
55
+ [data-amplify-button] {
56
+ background-color: black;
57
+ padding: 0.875rem 1.5rem 0.875rem 1.5rem;
58
+ border-style: none;
59
+ color: white;
60
+ border-radius: 2px;
61
+ border-width: 1px;
62
+ margin: 0.25rem;
63
+ }
64
+
65
+ [data-amplify-federated] [data-amplify-button] {
66
+ background-color: white;
67
+ color: black;
68
+ border-style: solid;
69
+ border-radius: 2px;
70
+ border-color: rgba(0, 0, 0, 0.1);
71
+ width: 100%;
72
+ }
73
+
74
+ [data-amplify-button]:disabled {
75
+ background-color: grey;
76
+ }
77
+
78
+ [data-amplify-link] {
79
+ color: cornflowerblue;
80
+ cursor: pointer;
81
+ }
82
+
83
+ [data-amplify-link]:hover {
84
+ text-decoration: underline;
85
+ }
86
+
87
+ [data-amplify-error] {
88
+ color: orangered;
89
+ }
90
+
91
+ [data-amplify-error]:last-child {
92
+ margin-bottom: 1rem;
93
+ }
94
+
95
+ [data-amplify-federated] {
96
+ display: flex;
97
+ flex-direction: column;
98
+ margin-bottom: 1rem;
99
+ }