@aws-amplify/ui 2.0.4-unstable.99 → 3.0.0

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 (63) hide show
  1. package/README.md +7 -0
  2. package/dist/esm/index.js +32 -0
  3. package/dist/esm/index.js.map +7 -0
  4. package/dist/index.d.ts +788 -0
  5. package/dist/index.js +32 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/styles.css +2697 -0
  8. package/dist/theme.css +781 -0
  9. package/package.json +51 -28
  10. package/CHANGELOG.md +0 -331
  11. package/Readme.md +0 -5
  12. package/dist/aws-amplify-ui.js +0 -2
  13. package/dist/aws-amplify-ui.js.map +0 -1
  14. package/dist/aws-amplify-ui.min.js +0 -2
  15. package/dist/aws-amplify-ui.min.js.map +0 -1
  16. package/dist/style.css +0 -775
  17. package/dist/style.css.map +0 -1
  18. package/lib/Anchor.css.d.ts +0 -2
  19. package/lib/Button.css.d.ts +0 -10
  20. package/lib/Form.css.d.ts +0 -5
  21. package/lib/Hint.css.d.ts +0 -2
  22. package/lib/Input.css.d.ts +0 -5
  23. package/lib/Nav.css.d.ts +0 -5
  24. package/lib/PhotoPicker.css.d.ts +0 -4
  25. package/lib/Section.css.d.ts +0 -10
  26. package/lib/SelectInput.css.d.ts +0 -2
  27. package/lib/Strike.css.d.ts +0 -3
  28. package/lib/Toast.css.d.ts +0 -3
  29. package/lib/Totp.css.d.ts +0 -2
  30. package/lib/XR.css.d.ts +0 -17
  31. package/lib/index.d.ts +0 -13
  32. package/postcss.config.js +0 -3
  33. package/src/Anchor.css +0 -10
  34. package/src/Anchor.css.d.ts +0 -2
  35. package/src/Angular.css +0 -607
  36. package/src/Button.css +0 -131
  37. package/src/Button.css.d.ts +0 -10
  38. package/src/Form.css +0 -43
  39. package/src/Form.css.d.ts +0 -5
  40. package/src/Hint.css +0 -6
  41. package/src/Hint.css.d.ts +0 -2
  42. package/src/Input.css +0 -41
  43. package/src/Input.css.d.ts +0 -5
  44. package/src/Nav.css +0 -21
  45. package/src/Nav.css.d.ts +0 -5
  46. package/src/PhotoPicker.css +0 -15
  47. package/src/PhotoPicker.css.d.ts +0 -4
  48. package/src/Section.css +0 -67
  49. package/src/Section.css.d.ts +0 -10
  50. package/src/SelectInput.css +0 -36
  51. package/src/SelectInput.css.d.ts +0 -2
  52. package/src/Strike.css +0 -17
  53. package/src/Strike.css.d.ts +0 -3
  54. package/src/Theme.css +0 -150
  55. package/src/Toast.css +0 -63
  56. package/src/Toast.css.d.ts +0 -3
  57. package/src/Totp.css +0 -4
  58. package/src/Totp.css.d.ts +0 -2
  59. package/src/XR.css +0 -201
  60. package/src/XR.css.d.ts +0 -17
  61. package/src/index.ts +0 -25
  62. package/tsconfig.json +0 -29
  63. package/webpack.config.js +0 -63
@@ -1,10 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const button: string;
3
- export const signInButton: string;
4
- export const googleSignInButton: string;
5
- export const signInButtonIcon: string;
6
- export const auth0SignInButton: string;
7
- export const facebookSignInButton: string;
8
- export const amazonSignInButton: string;
9
- export const oAuthSignInButton: string;
10
- export const signInButtonContent: string;
package/src/Form.css DELETED
@@ -1,43 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .formContainer {
4
- text-align: center;
5
- margin-top: 20px;
6
- margin: 5% auto 50px;
7
- }
8
-
9
- .formSection {
10
- position: relative;
11
- margin-bottom: 20px;
12
- background-color: var(--form-color);
13
- padding: 35px 40px;
14
- text-align: left;
15
- display: inline-block;
16
- min-width: 460px;
17
- border-radius: 6px;
18
- box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);
19
- box-sizing: border-box;
20
- }
21
-
22
- .formField {
23
- margin-bottom: 22px;
24
- }
25
-
26
- .formRow {
27
- margin-bottom: 12px;
28
- }
29
-
30
- @media only screen and (max-width: 599px) {
31
- .formContainer {
32
- margin: 0;
33
- }
34
-
35
- .formSection {
36
- width: 100%;
37
- box-sizing: border-box;
38
- padding: 35px 25px;
39
- box-shadow: none;
40
- border-radius: 0;
41
- min-width: auto;
42
- }
43
- }
package/src/Form.css.d.ts DELETED
@@ -1,5 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const formContainer: string;
3
- export const formSection: string;
4
- export const formField: string;
5
- export const formRow: string;
package/src/Hint.css DELETED
@@ -1,6 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .hint {
4
- color: var(--grey);
5
- font-size: 12px;
6
- }
package/src/Hint.css.d.ts DELETED
@@ -1,2 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const hint: string;
package/src/Input.css DELETED
@@ -1,41 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .input {
4
- display: block;
5
- width: 100%;
6
- padding: 16px;
7
- font-size: 14px;
8
- color: var(--input-color);
9
- background-color: var(--input-background-color);
10
- background-image: none;
11
- border: 1px solid var(--lightGrey);
12
- border-radius: 3px;
13
- box-sizing: border-box;
14
- margin-bottom: 10px;
15
- }
16
-
17
- .input:disabled {
18
- color: #545454;
19
- background-color: var(--silver);
20
- }
21
-
22
- .inputLabel {
23
- color: var(--input-color);
24
- font-size: 14px;
25
- margin-bottom: 8px;
26
- }
27
-
28
- .label {
29
- color: var(--input-color);
30
- }
31
-
32
- .radio {
33
- margin-right: 18px;
34
- vertical-align: bottom;
35
- }
36
-
37
- @media only screen and (max-width: 599px) {
38
- .input {
39
- font-size: 16px;
40
- }
41
- }
@@ -1,5 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const input: string;
3
- export const inputLabel: string;
4
- export const label: string;
5
- export const radio: string;
package/src/Nav.css DELETED
@@ -1,21 +0,0 @@
1
- .navBar {
2
- position: relative;
3
- border: 1px solid transparent;
4
- border-color: #e7e7e7;
5
- background-color: #fff;
6
- }
7
-
8
- .navRight {
9
- text-align: right
10
- }
11
-
12
- .nav {
13
- padding: 10px;
14
- }
15
-
16
- .navItem {
17
- display: inline-block;
18
- padding: 10px 5px;
19
- line-height: 20px;
20
- margin-right: 12px;
21
- }
package/src/Nav.css.d.ts DELETED
@@ -1,5 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const navBar: string;
3
- export const navRight: string;
4
- export const nav: string;
5
- export const navItem: string;
@@ -1,15 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .photoPickerButton {
4
- width: 100%;
5
- }
6
-
7
- .photoPlaceholder {
8
- border: 2px dotted var(--grey);
9
- padding: 64px 0 64px;
10
- }
11
-
12
- .photoPlaceholderIcon {
13
- text-align: center;
14
- opacity: 0.2;
15
- }
@@ -1,4 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const photoPickerButton: string;
3
- export const photoPlaceholder: string;
4
- export const photoPlaceholderIcon: string;
package/src/Section.css DELETED
@@ -1,67 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .container {
4
- font-weight: 400;
5
- }
6
-
7
- .actionRow {
8
- margin-bottom: 15px;
9
- }
10
-
11
- .sectionHeader {
12
- color: var(--deepSquidInk);
13
- margin-bottom: 24px;
14
- font-size: 18px;
15
- font-weight: 500;
16
- }
17
-
18
- .sectionHeaderHint {
19
- color: var(--grey);
20
- font-size: 16px;
21
- font-weight: 400;
22
- margin-top: 4px;
23
- }
24
-
25
- .sectionBody {
26
- margin-bottom: 30px;
27
- }
28
-
29
- .sectionHeaderContent {
30
- }
31
-
32
- .sectionFooter {
33
- font-size: 14px;
34
- color: var(--grey);
35
- display: flex;
36
- flex-direction: row-reverse;
37
- align-items: flex-start;
38
- }
39
-
40
- .sectionFooterPrimaryContent {
41
- margin-left: auto;
42
- }
43
-
44
- .sectionFooterSecondaryContent {
45
- margin-right: auto;
46
- align-self: center;
47
- }
48
-
49
- @media only screen and (max-width: 599px) {
50
- .sectionFooter {
51
- flex-wrap: wrap;
52
- }
53
-
54
- .sectionFooterPrimaryContent {
55
- width: 100%;
56
- margin-bottom: 32px;
57
- }
58
-
59
- .sectionFooterPrimaryContent > button {
60
- width: 100%;
61
- }
62
-
63
- .sectionFooterSecondaryContent {
64
- text-align: center;
65
- flex: 0 0 100%;
66
- }
67
- }
@@ -1,10 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const container: string;
3
- export const actionRow: string;
4
- export const sectionHeader: string;
5
- export const sectionHeaderHint: string;
6
- export const sectionBody: string;
7
- export const sectionHeaderContent: string;
8
- export const sectionFooter: string;
9
- export const sectionFooterPrimaryContent: string;
10
- export const sectionFooterSecondaryContent: string;
@@ -1,36 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .selectInput {
4
- display: flex;
5
- }
6
-
7
- .selectInput > input {
8
- flex: 1;
9
- border-radius: 0 3px 3px 0 !important;
10
- }
11
-
12
- .selectInput > select {
13
- padding: 16px 20px 16px 16px;
14
- font-size: 14px;
15
- color: var(--deepSquidInk);
16
- background-color: #fff;
17
- background-image: none;
18
- border: 1px solid var(--lightGrey);
19
- border-right: none;
20
- border-radius: 3px 0 0 3px;
21
- box-sizing: border-box;
22
- margin-bottom: 10px;
23
- -webkit-appearance: none;
24
- -moz-appearance: none;
25
- appearance: none;
26
- flex-basis: 22%;
27
- width: 1%;
28
-
29
- background-image: linear-gradient(45deg, transparent 50%, gray 50%),
30
- linear-gradient(135deg, gray 50%, transparent 50%),
31
- linear-gradient(to right, #ccc, #ccc);
32
- background-position: calc(100% - 10px) calc(1em + 8px),
33
- calc(100% - 4px) calc(1em + 8px), calc(100% - 2.5em) 0.5em;
34
- background-size: 6px 5px, 6px 5px, 0px 1.5em;
35
- background-repeat: no-repeat;
36
- }
@@ -1,2 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const selectInput: string;
package/src/Strike.css DELETED
@@ -1,17 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .strike {
4
- width: 100%;
5
- text-align: center;
6
- border-bottom: 1px solid var(--lightGrey);
7
- line-height: 0.1em;
8
- margin: 32px 0;
9
- color: var(--grey);
10
- }
11
-
12
- .strikeContent {
13
- background: var(--form-color);
14
- padding: 0 25px;
15
- font-size: 14px;
16
- font-weight: 500;
17
- }
@@ -1,3 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const strike: string;
3
- export const strikeContent: string;
package/src/Theme.css DELETED
@@ -1,150 +0,0 @@
1
- /*
2
- * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
13
- :root {
14
-
15
- /* Colors */
16
- --amazonOrange: #FF9900;
17
- --lightAmazonOrange: #FFAC31;
18
- --darkAmazonOrange: #E88B01;
19
- --squidInk: #232F3E;
20
- --lightSquidInk: #31465F;
21
- --deepSquidInk: #152939;
22
- --grey: #828282;
23
- --lightGrey: #C4C4C4;
24
- --silver: #E1E4EA;
25
- --darkBlue: #31465F;
26
- --red: #DD3F5B;
27
- --white: #FFFFFF;
28
- --light-blue: #00a1c9;
29
-
30
-
31
- /* Theme */
32
- --button-color: var(--white);
33
- --button-background-color: var(--amazonOrange);
34
- --button-click: var(--darkAmazonOrange);
35
- --link-color: var(--amazonOrange);
36
- --form-color: var(--white);
37
- --input-color: var(--deepSquidInk);
38
- --input-background-color: var(--white);
39
-
40
- --font-family: "Amazon Ember","Helvetica Neue Light","Helvetica Neue","Helvetica" ,"Arial","sans-serif";
41
- --body-background: #F8F4F4;
42
-
43
- /** Angular Theme **/
44
- --component-width-desktop: 460px;
45
- --component-width-mobile: 100%;
46
-
47
- --color-primary: #FF9900;
48
- --color-primary-accent: #232F3E;
49
- --color-primary-highlight: #FFC46D;
50
-
51
- --color-background:#232F3E;
52
-
53
- --color-secondary: #152939;
54
- --color-secondary-accent: #31465F;
55
-
56
- --color-danger: #DD3F5B;
57
- --color-error: #D0021B;
58
-
59
- --color-accent-brown: #828282;
60
- --color-accent-blue: #E1E4EA;
61
-
62
- --gradient-blaze: linear-gradient(270deg, #FFC300 0%, #FF9000 100%);
63
-
64
- --color-blue: #007EB9;
65
- --color-purple: #527FFF;
66
- --color-gray: #828282;
67
- --color-white: #FFFFFF;
68
-
69
- --input-border: 1px solid #C4C4C4;
70
- --input-padding: 0.5em 0.5em 0.3em 1em;
71
-
72
- --box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);
73
- --button-height: 42px;
74
-
75
- --interactions-conversation-height: 250px;
76
-
77
- /* Ionic Theme */
78
-
79
- /** primary **/
80
- --ion-color-primary: #FF9900;
81
- --ion-color-primary-rgb: 255,153,0;
82
- --ion-color-primary-contrast: #fff;
83
- --ion-color-primary-contrast-rgb: 255,255,255;
84
- --ion-color-primary-shade: #232F3E;
85
- --ion-color-primary-tint: #FFC46D;
86
-
87
- /** secondary **/
88
- --ion-color-secondary: #32db64;
89
- --ion-color-secondary-rgb: 50,219,100;
90
- --ion-color-secondary-contrast: #fff;
91
- --ion-color-secondary-contrast-rgb: 255,255,255;
92
- --ion-color-secondary-shade: #2cc158;
93
- --ion-color-secondary-tint: #47df74;
94
-
95
- /** tertiary **/
96
- --ion-color-tertiary: #f4a942;
97
- --ion-color-tertiary-rgb: 244,169,66;
98
- --ion-color-tertiary-contrast: #fff;
99
- --ion-color-tertiary-contrast-rgb: 255,255,255;
100
- --ion-color-tertiary-shade: #d7953a;
101
- --ion-color-tertiary-tint: #f5b255;
102
-
103
- /** success **/
104
- --ion-color-success: #10dc60;
105
- --ion-color-success-rgb: 16,220,96;
106
- --ion-color-success-contrast: #fff;
107
- --ion-color-success-contrast-rgb: 255,255,255;
108
- --ion-color-success-shade: #0ec254;
109
- --ion-color-success-tint: #28e070;
110
-
111
- /** warning **/
112
- --ion-color-warning: #ffce00;
113
- --ion-color-warning-rgb: 255,206,0;
114
- --ion-color-warning-contrast: #000;
115
- --ion-color-warning-contrast-rgb: 0,0,0;
116
- --ion-color-warning-shade: #e0b500;
117
- --ion-color-warning-tint: #ffd31a;
118
-
119
- /** danger **/
120
- --ion-color-danger: #f53d3d;
121
- --ion-color-danger-rgb: 245,61,61;
122
- --ion-color-danger-contrast: #fff;
123
- --ion-color-danger-contrast-rgb: 255,255,255;
124
- --ion-color-danger-shade: #d83636;
125
- --ion-color-danger-tint: #f65050;
126
-
127
- /** light **/
128
- --ion-color-light: #f4f4f4;
129
- --ion-color-light-rgb: 244,244,244;
130
- --ion-color-light-contrast: #000;
131
- --ion-color-light-contrast-rgb: 0,0,0;
132
- --ion-color-light-shade: #d7d7d7;
133
- --ion-color-light-tint: #f5f5f5;
134
-
135
- /** medium **/
136
- --ion-color-medium: #989aa2;
137
- --ion-color-medium-rgb: 152,154,162;
138
- --ion-color-medium-contrast: #000;
139
- --ion-color-medium-contrast-rgb: 0,0,0;
140
- --ion-color-medium-shade: #86888f;
141
- --ion-color-medium-tint: #a2a4ab;
142
-
143
- /** dark **/
144
- --ion-color-dark: #222;
145
- --ion-color-dark-rgb: 34,34,34;
146
- --ion-color-dark-contrast: #fff;
147
- --ion-color-dark-contrast-rgb: 255,255,255;
148
- --ion-color-dark-shade: #1e1e1e;
149
- --ion-color-dark-tint: #383838;
150
- }
package/src/Toast.css DELETED
@@ -1,63 +0,0 @@
1
- @import './Theme.css';
2
-
3
- .toast {
4
- display: flex;
5
- justify-content: space-between;
6
- position: absolute;
7
- top: 0;
8
- left: 0;
9
- width: 100%;
10
- z-index: 99;
11
- box-shadow: 0 0 5px 0 rgba(0,0,0,0.3);
12
- padding: 16px;
13
- background-color: var(--lightSquidInk);
14
- font-size: 14px;
15
- color: #fff;
16
- box-sizing: border-box;
17
- }
18
-
19
- .toast > span {
20
- margin-right: 10px;
21
- }
22
-
23
- .toastClose {
24
- margin-left: auto;
25
- align-self: center;
26
- position: relative;
27
- width: 18px;
28
- height: 18px;
29
- overflow: hidden;
30
- cursor: pointer;
31
- }
32
-
33
- .toastClose::before,
34
- .toastClose::after {
35
- content: '';
36
- position: absolute;
37
- height: 2px;
38
- width: 100%;
39
- top: 50%;
40
- left: 0;
41
- margin-top: -1px;
42
- background: var(--lightGrey);
43
- }
44
-
45
- .toastClose:hover::before,
46
- .toastClose:hover::after {
47
- background: var(--red);
48
- }
49
-
50
- .toastClose::before {
51
- -webkit-transform: rotate(45deg);
52
- -moz-transform: rotate(45deg);
53
- -ms-transform: rotate(45deg);
54
- -o-transform: rotate(45deg);
55
- transform: rotate(45deg);
56
- }
57
- .toastClose::after {
58
- -webkit-transform: rotate(-45deg);
59
- -moz-transform: rotate(-45deg);
60
- -ms-transform: rotate(-45deg);
61
- -o-transform: rotate(-45deg);
62
- transform: rotate(-45deg);
63
- }
@@ -1,3 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const toast: string;
3
- export const toastClose: string;
package/src/Totp.css DELETED
@@ -1,4 +0,0 @@
1
- .totpQrcode {
2
- text-align: center;
3
- margin-bottom: 30px;
4
- }
package/src/Totp.css.d.ts DELETED
@@ -1,2 +0,0 @@
1
- // AUTOMATICALLY GENERATED - DO NOT EDIT
2
- export const totpQrcode: string;