@aws-amplify/ui 3.6.0 → 3.6.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 (62) hide show
  1. package/dist/esm/index.js +1 -1
  2. package/dist/esm/machines/authenticator/actors/signIn.js +1 -1
  3. package/dist/esm/machines/authenticator/index.js +1 -1
  4. package/dist/esm/theme/createTheme.js +1 -1
  5. package/dist/esm/theme/{baseTheme.js → defaultTheme.js} +1 -1
  6. package/dist/esm/theme/tokens/components/button.js +1 -1
  7. package/dist/esm/theme/tokens/components/copy.js +1 -1
  8. package/dist/esm/theme/tokens/components/countryCodeSelect.js +1 -1
  9. package/dist/esm/theme/tokens/components/fieldControl.js +1 -1
  10. package/dist/esm/theme/tokens/components/fieldGroup.js +1 -1
  11. package/dist/esm/theme/tokens/components/index.js +1 -1
  12. package/dist/esm/theme/tokens/components/menu.js +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/styles.css +487 -487
  15. package/dist/theme.css +487 -487
  16. package/dist/types/theme/defaultTheme.d.ts +2 -0
  17. package/dist/types/theme/index.d.ts +2 -3
  18. package/dist/types/theme/tokens/components/alert.d.ts +28 -65
  19. package/dist/types/theme/tokens/components/authenticator.d.ts +47 -71
  20. package/dist/types/theme/tokens/components/badge.d.ts +29 -83
  21. package/dist/types/theme/tokens/components/button.d.ts +81 -326
  22. package/dist/types/theme/tokens/components/card.d.ts +15 -62
  23. package/dist/types/theme/tokens/components/checkbox.d.ts +75 -140
  24. package/dist/types/theme/tokens/components/checkboxField.d.ts +8 -14
  25. package/dist/types/theme/tokens/components/copy.d.ts +20 -26
  26. package/dist/types/theme/tokens/components/countryCodeSelect.d.ts +5 -5
  27. package/dist/types/theme/tokens/components/divider.d.ts +21 -38
  28. package/dist/types/theme/tokens/components/expander.d.ts +69 -135
  29. package/dist/types/theme/tokens/components/field.d.ts +17 -29
  30. package/dist/types/theme/tokens/components/fieldControl.d.ts +72 -174
  31. package/dist/types/theme/tokens/components/fieldGroup.d.ts +14 -15
  32. package/dist/types/theme/tokens/components/fieldMessages.d.ts +16 -21
  33. package/dist/types/theme/tokens/components/flex.d.ts +9 -17
  34. package/dist/types/theme/tokens/components/heading.d.ts +17 -56
  35. package/dist/types/theme/tokens/components/icon.d.ts +6 -8
  36. package/dist/types/theme/tokens/components/image.d.ts +8 -14
  37. package/dist/types/theme/tokens/components/index.d.ts +75 -2493
  38. package/dist/types/theme/tokens/components/link.d.ts +18 -35
  39. package/dist/types/theme/tokens/components/loader.d.ts +40 -92
  40. package/dist/types/theme/tokens/components/menu.d.ts +27 -59
  41. package/dist/types/theme/tokens/components/pagination.d.ts +48 -82
  42. package/dist/types/theme/tokens/components/placeholder.d.ts +15 -29
  43. package/dist/types/theme/tokens/components/radio.d.ts +72 -131
  44. package/dist/types/theme/tokens/components/rating.d.ts +19 -27
  45. package/dist/types/theme/tokens/components/select.d.ts +33 -60
  46. package/dist/types/theme/tokens/components/selectField.d.ts +5 -5
  47. package/dist/types/theme/tokens/components/sliderField.d.ts +61 -118
  48. package/dist/types/theme/tokens/components/stepperField.d.ts +10 -10
  49. package/dist/types/theme/tokens/components/switchField.d.ts +53 -78
  50. package/dist/types/theme/tokens/components/table.d.ts +61 -197
  51. package/dist/types/theme/tokens/components/tabs.d.ts +44 -84
  52. package/dist/types/theme/tokens/components/text.d.ts +16 -40
  53. package/dist/types/theme/tokens/components/toggleButton.d.ts +103 -154
  54. package/dist/types/theme/tokens/components/toggleButtonGroup.d.ts +7 -11
  55. package/dist/types/theme/tokens/index.d.ts +2 -1
  56. package/dist/types/theme/tokens/types/designToken.d.ts +41 -5
  57. package/dist/types/types/authenticator/stateMachine/context.d.ts +1 -0
  58. package/package.json +2 -2
  59. package/dist/esm/theme/index.js +0 -1
  60. package/dist/esm/theme/tokens/components/phoneNumberField.js +0 -1
  61. package/dist/types/theme/baseTheme.d.ts +0 -2
  62. package/dist/types/theme/tokens/components/phoneNumberField.d.ts +0 -1
@@ -0,0 +1,2 @@
1
+ import { BaseTheme } from './types';
2
+ export declare const defaultTheme: BaseTheme;
@@ -1,4 +1,3 @@
1
- import { createTheme } from './createTheme';
2
- export { createTheme };
1
+ export { createTheme } from './createTheme';
2
+ export { defaultTheme } from './defaultTheme';
3
3
  export * from './types';
4
- export declare const defaultTheme: import("./types").WebTheme;
@@ -1,65 +1,28 @@
1
- export declare const alert: {
2
- alignItems: {
3
- value: string;
4
- };
5
- justifyContent: {
6
- value: string;
7
- };
8
- color: {
9
- value: string;
10
- };
11
- backgroundColor: {
12
- value: string;
13
- };
14
- paddingBlock: {
15
- value: string;
16
- };
17
- paddingInline: {
18
- value: string;
19
- };
20
- icon: {
21
- size: {
22
- value: string;
23
- };
24
- };
25
- heading: {
26
- fontSize: {
27
- value: string;
28
- };
29
- fontWeight: {
30
- value: string;
31
- };
32
- };
33
- info: {
34
- color: {
35
- value: string;
36
- };
37
- backgroundColor: {
38
- value: string;
39
- };
40
- };
41
- error: {
42
- color: {
43
- value: string;
44
- };
45
- backgroundColor: {
46
- value: string;
47
- };
48
- };
49
- warning: {
50
- color: {
51
- value: string;
52
- };
53
- backgroundColor: {
54
- value: string;
55
- };
56
- };
57
- success: {
58
- color: {
59
- value: string;
60
- };
61
- backgroundColor: {
62
- value: string;
63
- };
64
- };
65
- };
1
+ import { AlignItemsValue, BackgroundColorValue, ColorValue, DesignToken, FontSizeValue, FontWeightValue, JustifyContentValue, SpaceValue } from '../types/designToken';
2
+ interface AlertVariationTokens {
3
+ color: DesignToken<ColorValue>;
4
+ backgroundColor: DesignToken<BackgroundColorValue>;
5
+ }
6
+ interface AlertIconTokens {
7
+ size: DesignToken<FontSizeValue>;
8
+ }
9
+ interface AlertHeadingTokens {
10
+ fontSize: DesignToken<FontSizeValue>;
11
+ fontWeight: DesignToken<FontWeightValue>;
12
+ }
13
+ export interface AlertTokens {
14
+ alignItems: DesignToken<AlignItemsValue>;
15
+ justifyContent: DesignToken<JustifyContentValue>;
16
+ color: DesignToken<ColorValue>;
17
+ backgroundColor: DesignToken<BackgroundColorValue>;
18
+ paddingBlock: DesignToken<SpaceValue>;
19
+ paddingInline: DesignToken<SpaceValue>;
20
+ icon: AlertIconTokens;
21
+ heading: AlertHeadingTokens;
22
+ info: AlertVariationTokens;
23
+ error: AlertVariationTokens;
24
+ warning: AlertVariationTokens;
25
+ success: AlertVariationTokens;
26
+ }
27
+ export declare const alert: AlertTokens;
28
+ export {};
@@ -1,71 +1,47 @@
1
- export declare const authenticator: {
2
- maxWidth: {
3
- value: string;
4
- };
5
- modal: {
6
- width: {
7
- value: string;
8
- };
9
- height: {
10
- value: string;
11
- };
12
- backgroundColor: {
13
- value: string;
14
- };
15
- top: {
16
- value: string;
17
- };
18
- left: {
19
- value: string;
20
- };
21
- };
22
- container: {
23
- widthMax: {
24
- value: string;
25
- };
26
- };
27
- router: {
28
- borderWidth: {
29
- value: string;
30
- };
31
- borderStyle: {
32
- value: string;
33
- };
34
- borderColor: {
35
- value: string;
36
- };
37
- backgroundColor: {
38
- value: string;
39
- };
40
- boxShadow: {
41
- value: string;
42
- };
43
- };
44
- footer: {
45
- paddingBottom: {
46
- value: string;
47
- };
48
- };
49
- form: {
50
- padding: {
51
- value: string;
52
- };
53
- };
54
- state: {
55
- inactive: {
56
- backgroundColor: {
57
- value: string;
58
- };
59
- };
60
- };
61
- orContainer: {
62
- color: {
63
- value: string;
64
- };
65
- orLine: {
66
- backgroundColor: {
67
- value: string;
68
- };
69
- };
70
- };
71
- };
1
+ import { DesignToken, ColorValue, SpaceValue, BorderWidthValue, BorderColorValue, BackgroundColorValue, BorderStyleValue, BoxShadowValue } from '../types/designToken';
2
+ interface AuthenticatorModalTokens {
3
+ width: DesignToken<SpaceValue>;
4
+ height: DesignToken<SpaceValue>;
5
+ backgroundColor: DesignToken<BackgroundColorValue>;
6
+ top: DesignToken<SpaceValue>;
7
+ left: DesignToken<SpaceValue>;
8
+ }
9
+ interface AuthenticatorRouterTokens {
10
+ borderWidth: DesignToken<BorderWidthValue>;
11
+ borderStyle: DesignToken<BorderStyleValue>;
12
+ borderColor: DesignToken<BorderColorValue>;
13
+ backgroundColor: DesignToken<BackgroundColorValue>;
14
+ boxShadow: DesignToken<BoxShadowValue>;
15
+ }
16
+ interface AuthenticatorFooterTokens {
17
+ paddingBottom: DesignToken<SpaceValue>;
18
+ }
19
+ interface AuthenticatorFormTokens {
20
+ padding: DesignToken<SpaceValue>;
21
+ }
22
+ interface AuthenticatorStateTokens {
23
+ inactive: {
24
+ backgroundColor: DesignToken<BackgroundColorValue>;
25
+ };
26
+ }
27
+ interface AuthenticatorOrContainerTokens {
28
+ color: DesignToken<ColorValue>;
29
+ orLine: {
30
+ backgroundColor: DesignToken<BackgroundColorValue>;
31
+ };
32
+ }
33
+ interface AuthenticatorContainerToken {
34
+ widthMax: DesignToken<SpaceValue>;
35
+ }
36
+ export interface AuthenticatorTokens {
37
+ maxWidth: DesignToken<SpaceValue>;
38
+ modal: AuthenticatorModalTokens;
39
+ container: AuthenticatorContainerToken;
40
+ router: AuthenticatorRouterTokens;
41
+ footer: AuthenticatorFooterTokens;
42
+ form: AuthenticatorFormTokens;
43
+ state: AuthenticatorStateTokens;
44
+ orContainer: AuthenticatorOrContainerTokens;
45
+ }
46
+ export declare const authenticator: AuthenticatorTokens;
47
+ export {};
@@ -1,83 +1,29 @@
1
- export declare const badge: {
2
- color: {
3
- value: string;
4
- };
5
- lineHeight: {
6
- value: number;
7
- };
8
- fontWeight: {
9
- value: string;
10
- };
11
- fontSize: {
12
- value: string;
13
- };
14
- textAlign: {
15
- value: string;
16
- };
17
- paddingVertical: {
18
- value: string;
19
- };
20
- paddingHorizontal: {
21
- value: string;
22
- };
23
- backgroundColor: {
24
- value: string;
25
- };
26
- borderRadius: {
27
- value: string;
28
- };
29
- info: {
30
- color: {
31
- value: string;
32
- };
33
- backgroundColor: {
34
- value: string;
35
- };
36
- };
37
- warning: {
38
- color: {
39
- value: string;
40
- };
41
- backgroundColor: {
42
- value: string;
43
- };
44
- };
45
- success: {
46
- color: {
47
- value: string;
48
- };
49
- backgroundColor: {
50
- value: string;
51
- };
52
- };
53
- error: {
54
- color: {
55
- value: string;
56
- };
57
- backgroundColor: {
58
- value: string;
59
- };
60
- };
61
- small: {
62
- fontSize: {
63
- value: string;
64
- };
65
- paddingVertical: {
66
- value: string;
67
- };
68
- paddingHorizontal: {
69
- value: string;
70
- };
71
- };
72
- large: {
73
- fontSize: {
74
- value: string;
75
- };
76
- paddingVertical: {
77
- value: string;
78
- };
79
- paddingHorizontal: {
80
- value: string;
81
- };
82
- };
83
- };
1
+ import { BackgroundColorValue, ColorValue, DesignToken, FontSizeValue, FontWeightValue, LineHeightValue, RadiusValue, SpaceValue, TextAlignValue } from '../types/designToken';
2
+ interface BadgeVariationTokens {
3
+ backgroundColor: DesignToken<BackgroundColorValue>;
4
+ color: DesignToken<ColorValue>;
5
+ }
6
+ interface BadgeSizeTokens {
7
+ fontSize: DesignToken<FontSizeValue>;
8
+ paddingHorizontal: DesignToken<SpaceValue>;
9
+ paddingVertical: DesignToken<SpaceValue>;
10
+ }
11
+ export interface BadgeTokens {
12
+ backgroundColor: DesignToken<BackgroundColorValue>;
13
+ borderRadius: DesignToken<RadiusValue>;
14
+ color: DesignToken<ColorValue>;
15
+ error: BadgeVariationTokens;
16
+ fontSize: DesignToken<FontSizeValue>;
17
+ fontWeight: DesignToken<FontWeightValue>;
18
+ info: BadgeVariationTokens;
19
+ large: BadgeSizeTokens;
20
+ lineHeight: DesignToken<LineHeightValue>;
21
+ paddingHorizontal: DesignToken<SpaceValue>;
22
+ paddingVertical: DesignToken<SpaceValue>;
23
+ small: BadgeSizeTokens;
24
+ success: BadgeVariationTokens;
25
+ textAlign: DesignToken<TextAlignValue>;
26
+ warning: BadgeVariationTokens;
27
+ }
28
+ export declare const badge: BadgeTokens;
29
+ export {};