@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
@@ -1,197 +1,61 @@
1
- export declare const table: {
2
- /**
3
- * Default table styles
4
- */
5
- borderCollapse: {
6
- value: string;
7
- };
8
- display: {
9
- value: string;
10
- };
11
- width: {
12
- value: string;
13
- };
14
- /**
15
- * Default table head styles
16
- */
17
- head: {
18
- display: {
19
- value: string;
20
- };
21
- verticalAlign: {
22
- value: string;
23
- };
24
- };
25
- /**
26
- * Default table body styles
27
- */
28
- body: {
29
- display: {
30
- value: string;
31
- };
32
- verticalAlign: {
33
- value: string;
34
- };
35
- };
36
- /**
37
- * Default table foot styles
38
- */
39
- foot: {
40
- display: {
41
- value: string;
42
- };
43
- verticalAlign: {
44
- value: string;
45
- };
46
- };
47
- /**
48
- * Default table row styles
49
- */
50
- row: {
51
- display: {
52
- value: string;
53
- };
54
- verticalAlign: {
55
- value: string;
56
- };
57
- hover: {
58
- backgroundColor: {
59
- value: string;
60
- };
61
- };
62
- striped: {
63
- backgroundColor: {
64
- value: string;
65
- };
66
- };
67
- };
68
- /**
69
- * Default table header cell styles
70
- */
71
- header: {
72
- borderColor: {
73
- value: string;
74
- };
75
- borderStyle: {
76
- value: string;
77
- };
78
- borderWidth: {
79
- value: string;
80
- };
81
- color: {
82
- value: string;
83
- };
84
- display: {
85
- value: string;
86
- };
87
- fontSize: {
88
- value: string;
89
- };
90
- fontWeight: {
91
- value: string;
92
- };
93
- padding: {
94
- value: string;
95
- };
96
- verticalAlign: {
97
- value: string;
98
- };
99
- large: {
100
- fontSize: {
101
- value: string;
102
- };
103
- padding: {
104
- value: string;
105
- };
106
- };
107
- small: {
108
- fontSize: {
109
- value: string;
110
- };
111
- padding: {
112
- value: string;
113
- };
114
- };
115
- };
116
- /**
117
- * Default table data cell styles
118
- */
119
- data: {
120
- borderColor: {
121
- value: string;
122
- };
123
- borderStyle: {
124
- value: string;
125
- };
126
- borderWidth: {
127
- value: string;
128
- };
129
- color: {
130
- value: string;
131
- };
132
- display: {
133
- value: string;
134
- };
135
- fontSize: {
136
- value: string;
137
- };
138
- fontWeight: {
139
- value: string;
140
- };
141
- padding: {
142
- value: string;
143
- };
144
- verticalAlign: {
145
- value: string;
146
- };
147
- large: {
148
- fontSize: {
149
- value: string;
150
- };
151
- padding: {
152
- value: string;
153
- };
154
- };
155
- small: {
156
- fontSize: {
157
- value: string;
158
- };
159
- padding: {
160
- value: string;
161
- };
162
- };
163
- };
164
- /**
165
- * Default table caption styles
166
- */
167
- caption: {
168
- captionSide: {
169
- value: string;
170
- };
171
- color: {
172
- value: string;
173
- };
174
- display: {
175
- value: string;
176
- };
177
- fontSize: {
178
- value: string;
179
- };
180
- textAlign: {
181
- value: string;
182
- };
183
- wordBreak: {
184
- value: string;
185
- };
186
- large: {
187
- fontSize: {
188
- value: string;
189
- };
190
- };
191
- small: {
192
- fontSize: {
193
- value: string;
194
- };
195
- };
196
- };
197
- };
1
+ import { BackgroundColorValue, BorderCollapseValue, BorderColorValue, BorderStyleValue, BorderWidthValue, CaptionSideValue, ColorValue, DesignToken, DisplayValue, FontSizeValue, FontWeightValue, SpaceValue, TextAlignValue, VerticalAlignValue, WordBreakValue } from '../types/designToken';
2
+ interface TableDefaultTokens {
3
+ display: DesignToken<DisplayValue>;
4
+ verticalAlign: DesignToken<VerticalAlignValue>;
5
+ }
6
+ interface TableRowTokens extends TableDefaultTokens {
7
+ hover: TableRowHoverTokens;
8
+ striped: TableRowStripedTokens;
9
+ }
10
+ interface TableRowHoverTokens {
11
+ backgroundColor: DesignToken<BackgroundColorValue>;
12
+ }
13
+ interface TableRowStripedTokens {
14
+ backgroundColor: DesignToken<BackgroundColorValue>;
15
+ }
16
+ interface TableCellTokens extends TableDefaultTokens {
17
+ borderColor: DesignToken<BorderColorValue>;
18
+ borderStyle: DesignToken<BorderStyleValue>;
19
+ borderWidth: DesignToken<BorderWidthValue>;
20
+ color: DesignToken<ColorValue>;
21
+ fontSize: DesignToken<FontSizeValue>;
22
+ fontWeight: DesignToken<FontWeightValue>;
23
+ padding: DesignToken<SpaceValue>;
24
+ large: TableCellSizeTokens;
25
+ small: TableCellSizeTokens;
26
+ }
27
+ interface TableHeaderTokens extends TableCellTokens {
28
+ }
29
+ interface TableDataTokens extends TableCellTokens {
30
+ }
31
+ interface TableCellSizeTokens {
32
+ fontSize: DesignToken<FontSizeValue>;
33
+ padding: DesignToken<SpaceValue>;
34
+ }
35
+ interface TableCaptionTokens {
36
+ captionSide: DesignToken<CaptionSideValue>;
37
+ color: DesignToken<ColorValue>;
38
+ display: DesignToken<DisplayValue>;
39
+ fontSize: DesignToken<FontSizeValue>;
40
+ textAlign: DesignToken<TextAlignValue>;
41
+ wordBreak: DesignToken<WordBreakValue>;
42
+ large: TableCaptionSizeTokens;
43
+ small: TableCaptionSizeTokens;
44
+ }
45
+ interface TableCaptionSizeTokens {
46
+ fontSize: DesignToken<FontSizeValue>;
47
+ }
48
+ export interface TableTokens {
49
+ borderCollapse: DesignToken<BorderCollapseValue>;
50
+ display: DesignToken<DisplayValue>;
51
+ width: DesignToken<SpaceValue>;
52
+ head: TableDefaultTokens;
53
+ body: TableDefaultTokens;
54
+ foot: TableDefaultTokens;
55
+ row: TableRowTokens;
56
+ header: TableHeaderTokens;
57
+ data: TableDataTokens;
58
+ caption: TableCaptionTokens;
59
+ }
60
+ export declare const table: TableTokens;
61
+ export {};
@@ -1,84 +1,44 @@
1
- export declare const tabs: {
2
- backgroundColor: {
3
- value: string;
4
- };
5
- borderColor: {
6
- value: string;
7
- };
8
- borderStyle: {
9
- value: string;
10
- };
11
- borderWidth: {
12
- value: string;
13
- };
14
- gap: {
15
- value: string;
16
- };
17
- item: {
18
- backgroundColor: {
19
- value: string;
20
- };
21
- borderColor: {
22
- value: string;
23
- };
24
- borderStyle: {
25
- value: string;
26
- };
27
- borderWidth: {
28
- value: string;
29
- };
30
- color: {
31
- value: string;
32
- };
33
- fontSize: {
34
- value: string;
35
- };
36
- fontWeight: {
37
- value: string;
38
- };
39
- paddingVertical: {
40
- value: string;
41
- };
42
- paddingHorizontal: {
43
- value: string;
44
- };
45
- textAlign: {
46
- value: string;
47
- };
48
- transitionDuration: {
49
- value: string;
50
- };
51
- _hover: {
52
- color: {
53
- value: string;
54
- };
55
- };
56
- _focus: {
57
- color: {
58
- value: string;
59
- };
60
- };
61
- _active: {
62
- color: {
63
- value: string;
64
- };
65
- borderColor: {
66
- value: string;
67
- };
68
- backgroundColor: {
69
- value: string;
70
- };
71
- };
72
- _disabled: {
73
- color: {
74
- value: string;
75
- };
76
- backgroundColor: {
77
- value: string;
78
- };
79
- borderColor: {
80
- value: string;
81
- };
82
- };
83
- };
84
- };
1
+ import { BackgroundColorValue, BorderColorValue, BorderStyleValue, BorderWidthValue, ColorValue, DesignToken, FontSizeValue, FontWeightValue, GapValue, SpaceValue, TextAlignValue, TransitionDurationValue } from '../types/designToken';
2
+ interface TabsItemTokens {
3
+ backgroundColor: DesignToken<BackgroundColorValue>;
4
+ borderColor: DesignToken<BorderColorValue>;
5
+ borderStyle: DesignToken<BorderStyleValue>;
6
+ borderWidth: DesignToken<BorderWidthValue>;
7
+ color: DesignToken<ColorValue>;
8
+ fontSize: DesignToken<FontSizeValue>;
9
+ fontWeight: DesignToken<FontWeightValue>;
10
+ paddingVertical: DesignToken<SpaceValue>;
11
+ paddingHorizontal: DesignToken<SpaceValue>;
12
+ textAlign: DesignToken<TextAlignValue>;
13
+ transitionDuration: DesignToken<TransitionDurationValue>;
14
+ _hover: TabsItemHoverTokens;
15
+ _focus: TabsItemFocusTokens;
16
+ _active: TabsItemActiveTokens;
17
+ _disabled: TabsItemDisabledTokens;
18
+ }
19
+ interface TabsItemHoverTokens {
20
+ color: DesignToken<ColorValue>;
21
+ }
22
+ interface TabsItemFocusTokens {
23
+ color: DesignToken<ColorValue>;
24
+ }
25
+ interface TabsItemActiveTokens {
26
+ color: DesignToken<ColorValue>;
27
+ borderColor: DesignToken<BorderColorValue>;
28
+ backgroundColor: DesignToken<BackgroundColorValue>;
29
+ }
30
+ interface TabsItemDisabledTokens {
31
+ color: DesignToken<ColorValue>;
32
+ borderColor: DesignToken<BorderColorValue>;
33
+ backgroundColor: DesignToken<BackgroundColorValue>;
34
+ }
35
+ export interface TabsTokens {
36
+ backgroundColor: DesignToken<BackgroundColorValue>;
37
+ borderColor: DesignToken<BorderColorValue>;
38
+ borderStyle: DesignToken<BorderStyleValue>;
39
+ borderWidth: DesignToken<BorderWidthValue>;
40
+ gap: DesignToken<GapValue>;
41
+ item: TabsItemTokens;
42
+ }
43
+ export declare const tabs: TabsTokens;
44
+ export {};
@@ -1,40 +1,16 @@
1
- export declare const text: {
2
- color: {
3
- value: string;
4
- };
5
- primary: {
6
- color: {
7
- value: string;
8
- };
9
- };
10
- secondary: {
11
- color: {
12
- value: string;
13
- };
14
- };
15
- tertiary: {
16
- color: {
17
- value: string;
18
- };
19
- };
20
- error: {
21
- color: {
22
- value: string;
23
- };
24
- };
25
- warning: {
26
- color: {
27
- value: string;
28
- };
29
- };
30
- success: {
31
- color: {
32
- value: string;
33
- };
34
- };
35
- info: {
36
- color: {
37
- value: string;
38
- };
39
- };
40
- };
1
+ import { ColorValue, DesignToken } from '../types/designToken';
2
+ interface TextVariationTokens {
3
+ color: DesignToken<ColorValue>;
4
+ }
5
+ export interface TextTokens {
6
+ color: DesignToken<ColorValue>;
7
+ primary: TextVariationTokens;
8
+ secondary: TextVariationTokens;
9
+ tertiary: TextVariationTokens;
10
+ error: TextVariationTokens;
11
+ warning: TextVariationTokens;
12
+ success: TextVariationTokens;
13
+ info: TextVariationTokens;
14
+ }
15
+ export declare const text: TextTokens;
16
+ export {};