@aws-amplify/ui 3.6.2 → 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 (53) hide show
  1. package/dist/esm/machines/authenticator/index.js +1 -1
  2. package/dist/esm/theme/tokens/components/button.js +1 -1
  3. package/dist/esm/theme/tokens/components/countryCodeSelect.js +1 -1
  4. package/dist/esm/theme/tokens/components/fieldControl.js +1 -1
  5. package/dist/esm/theme/tokens/components/fieldGroup.js +1 -1
  6. package/dist/esm/theme/tokens/components/index.js +1 -1
  7. package/dist/esm/theme/tokens/components/menu.js +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/styles.css +9 -9
  10. package/dist/theme.css +9 -9
  11. package/dist/types/theme/tokens/components/alert.d.ts +28 -65
  12. package/dist/types/theme/tokens/components/authenticator.d.ts +47 -71
  13. package/dist/types/theme/tokens/components/badge.d.ts +29 -83
  14. package/dist/types/theme/tokens/components/button.d.ts +81 -326
  15. package/dist/types/theme/tokens/components/card.d.ts +15 -62
  16. package/dist/types/theme/tokens/components/checkbox.d.ts +75 -140
  17. package/dist/types/theme/tokens/components/checkboxField.d.ts +8 -14
  18. package/dist/types/theme/tokens/components/copy.d.ts +20 -26
  19. package/dist/types/theme/tokens/components/countryCodeSelect.d.ts +5 -5
  20. package/dist/types/theme/tokens/components/divider.d.ts +21 -38
  21. package/dist/types/theme/tokens/components/expander.d.ts +69 -135
  22. package/dist/types/theme/tokens/components/field.d.ts +17 -29
  23. package/dist/types/theme/tokens/components/fieldControl.d.ts +72 -174
  24. package/dist/types/theme/tokens/components/fieldGroup.d.ts +14 -15
  25. package/dist/types/theme/tokens/components/fieldMessages.d.ts +16 -21
  26. package/dist/types/theme/tokens/components/flex.d.ts +9 -17
  27. package/dist/types/theme/tokens/components/heading.d.ts +17 -56
  28. package/dist/types/theme/tokens/components/icon.d.ts +6 -8
  29. package/dist/types/theme/tokens/components/image.d.ts +8 -14
  30. package/dist/types/theme/tokens/components/index.d.ts +75 -2493
  31. package/dist/types/theme/tokens/components/link.d.ts +18 -35
  32. package/dist/types/theme/tokens/components/loader.d.ts +40 -92
  33. package/dist/types/theme/tokens/components/menu.d.ts +27 -59
  34. package/dist/types/theme/tokens/components/pagination.d.ts +48 -82
  35. package/dist/types/theme/tokens/components/placeholder.d.ts +15 -29
  36. package/dist/types/theme/tokens/components/radio.d.ts +72 -131
  37. package/dist/types/theme/tokens/components/rating.d.ts +19 -27
  38. package/dist/types/theme/tokens/components/select.d.ts +33 -60
  39. package/dist/types/theme/tokens/components/selectField.d.ts +5 -5
  40. package/dist/types/theme/tokens/components/sliderField.d.ts +61 -118
  41. package/dist/types/theme/tokens/components/stepperField.d.ts +10 -10
  42. package/dist/types/theme/tokens/components/switchField.d.ts +53 -78
  43. package/dist/types/theme/tokens/components/table.d.ts +61 -197
  44. package/dist/types/theme/tokens/components/tabs.d.ts +44 -84
  45. package/dist/types/theme/tokens/components/text.d.ts +16 -40
  46. package/dist/types/theme/tokens/components/toggleButton.d.ts +103 -154
  47. package/dist/types/theme/tokens/components/toggleButtonGroup.d.ts +7 -11
  48. package/dist/types/theme/tokens/index.d.ts +2 -1
  49. package/dist/types/theme/tokens/types/designToken.d.ts +41 -5
  50. package/dist/types/types/authenticator/stateMachine/context.d.ts +1 -0
  51. package/package.json +1 -1
  52. package/dist/esm/theme/tokens/components/phoneNumberField.js +0 -1
  53. package/dist/types/theme/tokens/components/phoneNumberField.d.ts +0 -1
@@ -1,35 +1,18 @@
1
- export declare const link: {
2
- active: {
3
- color: {
4
- value: string;
5
- };
6
- };
7
- color: {
8
- value: string;
9
- };
10
- focus: {
11
- color: {
12
- value: string;
13
- };
14
- };
15
- hover: {
16
- color: {
17
- value: string;
18
- };
19
- };
20
- large: {
21
- fontSize: {
22
- value: string;
23
- };
24
- };
25
- small: {
26
- fontSize: {
27
- value: string;
28
- };
29
- };
30
- visited: {
31
- color: {
32
- value: string;
33
- };
34
- };
35
- };
1
+ import { ColorValue, DesignToken, FontSizeValue } from '../types/designToken';
2
+ interface LinkStateTokens {
3
+ color: DesignToken<ColorValue>;
4
+ }
5
+ interface LinkSizeTokens {
6
+ fontSize: DesignToken<FontSizeValue>;
7
+ }
8
+ export interface LinkTokens {
9
+ active: LinkStateTokens;
10
+ color: DesignToken<ColorValue>;
11
+ focus: LinkStateTokens;
12
+ hover: LinkStateTokens;
13
+ large: LinkSizeTokens;
14
+ small: LinkSizeTokens;
15
+ visited: LinkStateTokens;
16
+ }
17
+ export declare const link: LinkTokens;
18
+ export {};
@@ -1,92 +1,40 @@
1
- export declare const loader: {
2
- width: {
3
- value: string;
4
- };
5
- height: {
6
- value: string;
7
- };
8
- fontSize: {
9
- value: string;
10
- };
11
- strokeEmpty: {
12
- value: string;
13
- };
14
- strokeFilled: {
15
- value: string;
16
- };
17
- strokeLinecap: {
18
- value: string;
19
- };
20
- animationDuration: {
21
- value: string;
22
- };
23
- small: {
24
- width: {
25
- value: string;
26
- };
27
- height: {
28
- value: string;
29
- };
30
- fontSize: {
31
- value: string;
32
- };
33
- };
34
- large: {
35
- width: {
36
- value: string;
37
- };
38
- height: {
39
- value: string;
40
- };
41
- fontSize: {
42
- value: string;
43
- };
44
- };
45
- linear: {
46
- width: {
47
- value: string;
48
- };
49
- minWidth: {
50
- value: string;
51
- };
52
- fontSize: {
53
- value: string;
54
- };
55
- strokeWidth: {
56
- value: string;
57
- };
58
- strokeFilled: {
59
- value: string;
60
- };
61
- strokeEmpty: {
62
- value: string;
63
- };
64
- strokeLinecap: {
65
- value: string;
66
- };
67
- animationDuration: {
68
- value: string;
69
- };
70
- small: {
71
- strokeWidth: {
72
- value: string;
73
- };
74
- fontSize: {
75
- value: string;
76
- };
77
- };
78
- large: {
79
- strokeWidth: {
80
- value: string;
81
- };
82
- fontSize: {
83
- value: string;
84
- };
85
- };
86
- };
87
- text: {
88
- fill: {
89
- value: string;
90
- };
91
- };
92
- };
1
+ import { AnimationDurationValue, ColorValue, DesignToken, FontSizeValue, SpaceValue, StrokeEmptyValue, StrokeFilledValue, StrokeLinecapValue } from '../types/designToken';
2
+ interface LoaderSizeTokens {
3
+ fontSize: DesignToken<FontSizeValue>;
4
+ height: DesignToken<SpaceValue>;
5
+ width: DesignToken<SpaceValue>;
6
+ }
7
+ interface LoaderLinearSizeTokens {
8
+ fontSize: DesignToken<FontSizeValue>;
9
+ strokeWidth: DesignToken<SpaceValue>;
10
+ }
11
+ interface LoaderLinearTokens {
12
+ width: DesignToken<SpaceValue>;
13
+ minWidth: DesignToken<SpaceValue>;
14
+ fontSize: DesignToken<FontSizeValue>;
15
+ strokeWidth: DesignToken<SpaceValue>;
16
+ strokeFilled: DesignToken<StrokeFilledValue>;
17
+ strokeEmpty: DesignToken<StrokeEmptyValue>;
18
+ strokeLinecap: DesignToken<StrokeLinecapValue>;
19
+ animationDuration: DesignToken<AnimationDurationValue>;
20
+ small: LoaderLinearSizeTokens;
21
+ large: LoaderLinearSizeTokens;
22
+ }
23
+ interface LoaderTextTokens {
24
+ fill: DesignToken<ColorValue>;
25
+ }
26
+ export interface LoaderTokens {
27
+ width: DesignToken<SpaceValue>;
28
+ height: DesignToken<SpaceValue>;
29
+ fontSize: DesignToken<FontSizeValue>;
30
+ strokeEmpty: DesignToken<StrokeEmptyValue>;
31
+ strokeFilled: DesignToken<StrokeFilledValue>;
32
+ strokeLinecap: DesignToken<StrokeLinecapValue>;
33
+ animationDuration: DesignToken<AnimationDurationValue>;
34
+ small: LoaderSizeTokens;
35
+ large: LoaderSizeTokens;
36
+ linear: LoaderLinearTokens;
37
+ text: LoaderTextTokens;
38
+ }
39
+ export declare const loader: LoaderTokens;
40
+ export {};
@@ -1,59 +1,27 @@
1
- export declare const menu: {
2
- backgroundColor: {
3
- value: string;
4
- };
5
- borderRadius: {
6
- value: string;
7
- };
8
- borderWidth: {
9
- value: string;
10
- };
11
- borderStyle: {
12
- value: string;
13
- };
14
- borderColor: {
15
- value: string;
16
- };
17
- boxShadow: {
18
- value: string;
19
- };
20
- flexDirection: {
21
- value: string;
22
- };
23
- gap: {
24
- value: number;
25
- };
26
- maxWidth: {
27
- value: string;
28
- };
29
- minWidth: {
30
- value: string;
31
- };
32
- small: {
33
- width: {
34
- value: string;
35
- };
36
- height: {
37
- value: string;
38
- };
39
- };
40
- large: {
41
- width: {
42
- value: string;
43
- };
44
- height: {
45
- value: string;
46
- };
47
- };
48
- item: {
49
- minHeight: {
50
- value: string;
51
- };
52
- paddingInlineStart: {
53
- value: string;
54
- };
55
- paddingInlineEnd: {
56
- value: string;
57
- };
58
- };
59
- };
1
+ import { BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderStyleValue, BorderWidthValue, BoxShadowValue, DesignToken, FlexDirectionValue, GapValue, SpaceValue } from '../types/designToken';
2
+ interface MenuSizeTokens {
3
+ width: DesignToken<SpaceValue>;
4
+ height: DesignToken<SpaceValue>;
5
+ }
6
+ interface MenuItemTokens {
7
+ minHeight: DesignToken<SpaceValue>;
8
+ paddingInlineStart: DesignToken<SpaceValue>;
9
+ paddingInlineEnd: DesignToken<SpaceValue>;
10
+ }
11
+ export interface MenuTokens {
12
+ backgroundColor: DesignToken<BackgroundColorValue>;
13
+ borderRadius: DesignToken<BorderRadiusValue>;
14
+ borderWidth: DesignToken<BorderWidthValue>;
15
+ borderStyle: DesignToken<BorderStyleValue>;
16
+ borderColor: DesignToken<BorderColorValue>;
17
+ boxShadow: DesignToken<BoxShadowValue>;
18
+ flexDirection: DesignToken<FlexDirectionValue>;
19
+ gap: DesignToken<GapValue>;
20
+ maxWidth: DesignToken<SpaceValue>;
21
+ minWidth: DesignToken<SpaceValue>;
22
+ small: MenuSizeTokens;
23
+ large: MenuSizeTokens;
24
+ item: MenuItemTokens;
25
+ }
26
+ export declare const menu: MenuTokens;
27
+ export {};
@@ -1,82 +1,48 @@
1
- export declare const pagination: {
2
- current: {
3
- alignItems: {
4
- value: string;
5
- };
6
- justifyContent: {
7
- value: string;
8
- };
9
- color: {
10
- value: string;
11
- };
12
- fontSize: {
13
- value: string;
14
- };
15
- backgroundColor: {
16
- value: string;
17
- };
18
- };
19
- button: {
20
- color: {
21
- value: string;
22
- };
23
- paddingInlineStart: {
24
- value: string;
25
- };
26
- paddingInlineEnd: {
27
- value: string;
28
- };
29
- transitionProperty: {
30
- value: string;
31
- };
32
- transitionDuration: {
33
- value: string;
34
- };
35
- hover: {
36
- backgroundColor: {
37
- value: string;
38
- };
39
- color: {
40
- value: string;
41
- };
42
- };
43
- disabled: {
44
- color: {
45
- value: string;
46
- };
47
- };
48
- };
49
- ellipsis: {
50
- alignItems: {
51
- value: string;
52
- };
53
- justifyContent: {
54
- value: string;
55
- };
56
- paddingInlineStart: {
57
- value: string;
58
- };
59
- paddingInlineEnd: {
60
- value: string;
61
- };
62
- };
63
- itemContainer: {
64
- marginLeft: {
65
- value: string;
66
- };
67
- marginRight: {
68
- value: string;
69
- };
70
- };
71
- itemShared: {
72
- height: {
73
- value: string;
74
- };
75
- minWidth: {
76
- value: string;
77
- };
78
- borderRadius: {
79
- value: string;
80
- };
81
- };
82
- };
1
+ import { AlignItemsValue, BackgroundColorValue, BorderRadiusValue, ColorValue, DesignToken, FontSizeValue, JustifyContentValue, SpaceValue, TransitionDurationValue, TransitionPropertyValue } from '../types/designToken';
2
+ interface PaginationCurrentTokens {
3
+ alignItems: DesignToken<AlignItemsValue>;
4
+ justifyContent: DesignToken<JustifyContentValue>;
5
+ color: DesignToken<ColorValue>;
6
+ fontSize: DesignToken<FontSizeValue>;
7
+ backgroundColor: DesignToken<BackgroundColorValue>;
8
+ }
9
+ interface PaginationButtonTokens {
10
+ color: DesignToken<ColorValue>;
11
+ paddingInlineStart: DesignToken<SpaceValue>;
12
+ paddingInlineEnd: DesignToken<SpaceValue>;
13
+ transitionProperty: DesignToken<TransitionPropertyValue>;
14
+ transitionDuration: DesignToken<TransitionDurationValue>;
15
+ hover: PaginationButtonHoverTokens;
16
+ disabled: PaginationButtonDisabledTokens;
17
+ }
18
+ interface PaginationButtonHoverTokens {
19
+ backgroundColor: DesignToken<BackgroundColorValue>;
20
+ color: DesignToken<ColorValue>;
21
+ }
22
+ interface PaginationButtonDisabledTokens {
23
+ color: DesignToken<ColorValue>;
24
+ }
25
+ interface PaginationEllipsisTokens {
26
+ alignItems: DesignToken<AlignItemsValue>;
27
+ justifyContent: DesignToken<JustifyContentValue>;
28
+ paddingInlineStart: DesignToken<SpaceValue>;
29
+ paddingInlineEnd: DesignToken<SpaceValue>;
30
+ }
31
+ interface PaginationItemContainerTokens {
32
+ marginLeft: DesignToken<SpaceValue>;
33
+ marginRight: DesignToken<SpaceValue>;
34
+ }
35
+ interface PaginationItemSharedTokens {
36
+ height: DesignToken<SpaceValue>;
37
+ minWidth: DesignToken<SpaceValue>;
38
+ borderRadius: DesignToken<BorderRadiusValue>;
39
+ }
40
+ export interface PaginationTokens {
41
+ current: PaginationCurrentTokens;
42
+ button: PaginationButtonTokens;
43
+ ellipsis: PaginationEllipsisTokens;
44
+ itemContainer: PaginationItemContainerTokens;
45
+ itemShared: PaginationItemSharedTokens;
46
+ }
47
+ export declare const pagination: PaginationTokens;
48
+ export {};
@@ -1,29 +1,15 @@
1
- export declare const placeholder: {
2
- borderRadius: {
3
- value: string;
4
- };
5
- transitionDuration: {
6
- value: string;
7
- };
8
- startColor: {
9
- value: string;
10
- };
11
- endColor: {
12
- value: string;
13
- };
14
- small: {
15
- height: {
16
- value: string;
17
- };
18
- };
19
- default: {
20
- height: {
21
- value: string;
22
- };
23
- };
24
- large: {
25
- height: {
26
- value: string;
27
- };
28
- };
29
- };
1
+ import { BorderRadiusValue, ColorValue, DesignToken, SpaceValue, TransitionDurationValue } from '../types/designToken';
2
+ interface PlaceholderSizeTokens {
3
+ height: DesignToken<SpaceValue>;
4
+ }
5
+ export interface PlaceholderTokens {
6
+ borderRadius: DesignToken<BorderRadiusValue>;
7
+ transitionDuration: DesignToken<TransitionDurationValue>;
8
+ startColor: DesignToken<ColorValue>;
9
+ endColor: DesignToken<ColorValue>;
10
+ small: PlaceholderSizeTokens;
11
+ default: PlaceholderSizeTokens;
12
+ large: PlaceholderSizeTokens;
13
+ }
14
+ export declare const placeholder: PlaceholderTokens;
15
+ export {};
@@ -1,131 +1,72 @@
1
- export declare const radio: {
2
- alignItems: {
3
- value: string;
4
- };
5
- justifyContent: {
6
- value: string;
7
- };
8
- gap: {
9
- value: string;
10
- };
11
- _disabled: {
12
- cursor: {
13
- value: string;
14
- };
15
- };
16
- button: {
17
- alignItems: {
18
- value: string;
19
- };
20
- justifyContent: {
21
- value: string;
22
- };
23
- width: {
24
- value: string;
25
- };
26
- height: {
27
- value: string;
28
- };
29
- boxSizing: {
30
- value: string;
31
- };
32
- borderWidth: {
33
- value: string;
34
- };
35
- borderStyle: {
36
- value: string;
37
- };
38
- borderRadius: {
39
- value: string;
40
- };
41
- borderColor: {
42
- value: string;
43
- };
44
- color: {
45
- value: string;
46
- };
47
- backgroundColor: {
48
- value: string;
49
- };
50
- transitionProperty: {
51
- value: string;
52
- };
53
- transitionDuration: {
54
- value: string;
55
- };
56
- outlineColor: {
57
- value: string;
58
- };
59
- outlineStyle: {
60
- value: string;
61
- };
62
- outlineWidth: {
63
- value: string;
64
- };
65
- outlineOffset: {
66
- value: string;
67
- };
68
- padding: {
69
- value: string;
70
- };
71
- small: {
72
- width: {
73
- value: string;
74
- };
75
- height: {
76
- value: string;
77
- };
78
- };
79
- large: {
80
- width: {
81
- value: string;
82
- };
83
- height: {
84
- value: string;
85
- };
86
- };
87
- _checked: {
88
- color: {
89
- value: string;
90
- };
91
- _disabled: {
92
- color: {
93
- value: string;
94
- };
95
- };
96
- };
97
- _focus: {
98
- borderColor: {
99
- value: string;
100
- };
101
- boxShadow: {
102
- value: string;
103
- };
104
- };
105
- _error: {
106
- borderColor: {
107
- value: string;
108
- };
109
- _focus: {
110
- boxShadow: {
111
- value: string;
112
- };
113
- };
114
- };
115
- _disabled: {
116
- borderColor: {
117
- value: string;
118
- };
119
- backgroundColor: {
120
- value: string;
121
- };
122
- };
123
- };
124
- label: {
125
- _disabled: {
126
- color: {
127
- value: string;
128
- };
129
- };
130
- };
131
- };
1
+ import { AlignItemsValue, BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderStyleValue, BorderWidthValue, BoxShadowValue, BoxSizingValue, ColorValue, CursorValue, DesignToken, GapValue, JustifyContentValue, OutlineColorValue, OutlineOffsetValue, OutlineStyleValue, OutlineWidthValue, SpaceValue, TransitionDurationValue, TransitionPropertyValue } from '../types/designToken';
2
+ interface RadioDisabledTokens {
3
+ cursor: DesignToken<CursorValue>;
4
+ }
5
+ interface RadioButtonTokens {
6
+ alignItems: DesignToken<AlignItemsValue>;
7
+ justifyContent: DesignToken<JustifyContentValue>;
8
+ width: DesignToken<SpaceValue>;
9
+ height: DesignToken<SpaceValue>;
10
+ boxSizing: DesignToken<BoxSizingValue>;
11
+ borderWidth: DesignToken<BorderWidthValue>;
12
+ borderStyle: DesignToken<BorderStyleValue>;
13
+ borderRadius: DesignToken<BorderRadiusValue>;
14
+ borderColor: DesignToken<BorderColorValue>;
15
+ color: DesignToken<ColorValue>;
16
+ backgroundColor: DesignToken<BackgroundColorValue>;
17
+ transitionProperty: DesignToken<TransitionPropertyValue>;
18
+ transitionDuration: DesignToken<TransitionDurationValue>;
19
+ outlineColor: DesignToken<OutlineColorValue>;
20
+ outlineStyle: DesignToken<OutlineStyleValue>;
21
+ outlineWidth: DesignToken<OutlineWidthValue>;
22
+ outlineOffset: DesignToken<OutlineOffsetValue>;
23
+ padding: DesignToken<SpaceValue>;
24
+ small: RadioButtonSizeTokens;
25
+ large: RadioButtonSizeTokens;
26
+ _checked: RadioButtonCheckedTokens;
27
+ _focus: RadioButtonFocusTokens;
28
+ _error: RadioButtonErrorTokens;
29
+ _disabled: RadioButtonDisabledTokens;
30
+ }
31
+ interface RadioButtonSizeTokens {
32
+ width: DesignToken<SpaceValue>;
33
+ height: DesignToken<SpaceValue>;
34
+ }
35
+ interface RadioButtonCheckedTokens {
36
+ color: DesignToken<ColorValue>;
37
+ _disabled: RadioButtonCheckedDisabledTokens;
38
+ }
39
+ interface RadioButtonCheckedDisabledTokens {
40
+ color: DesignToken<ColorValue>;
41
+ }
42
+ interface RadioButtonFocusTokens {
43
+ borderColor: DesignToken<BorderColorValue>;
44
+ boxShadow: DesignToken<BoxShadowValue>;
45
+ }
46
+ interface RadioButtonErrorTokens {
47
+ borderColor: DesignToken<BorderColorValue>;
48
+ _focus: RadioButtonErrorFocusTokens;
49
+ }
50
+ interface RadioButtonErrorFocusTokens {
51
+ boxShadow: DesignToken<BoxShadowValue>;
52
+ }
53
+ interface RadioButtonDisabledTokens {
54
+ borderColor: DesignToken<BorderColorValue>;
55
+ backgroundColor: DesignToken<BackgroundColorValue>;
56
+ }
57
+ interface RadioLabelTokens {
58
+ _disabled: RadioLabelDisabledTokens;
59
+ }
60
+ interface RadioLabelDisabledTokens {
61
+ color: DesignToken<ColorValue>;
62
+ }
63
+ export interface RadioTokens {
64
+ alignItems: DesignToken<AlignItemsValue>;
65
+ justifyContent: DesignToken<JustifyContentValue>;
66
+ gap: DesignToken<GapValue>;
67
+ _disabled: RadioDisabledTokens;
68
+ button: RadioButtonTokens;
69
+ label: RadioLabelTokens;
70
+ }
71
+ export declare const radio: RadioTokens;
72
+ export {};