@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,328 +1,83 @@
1
- export declare const button: {
2
- fontWeight: {
3
- value: string;
4
- };
5
- transitionDuration: {
6
- value: string;
7
- };
8
- fontSize: {
9
- value: string;
10
- };
11
- lineHeight: {
12
- value: string;
13
- };
14
- paddingBlockStart: {
15
- value: string;
16
- };
17
- paddingBlockEnd: {
18
- value: string;
19
- };
20
- paddingInlineStart: {
21
- value: string;
22
- };
23
- paddingInlineEnd: {
24
- value: string;
25
- };
26
- borderColor: {
27
- value: string;
28
- };
29
- borderWidth: {
30
- value: string;
31
- };
32
- borderStyle: {
33
- value: string;
34
- };
35
- borderRadius: {
36
- value: string;
37
- };
38
- color: {
39
- value: string;
40
- };
41
- _hover: {
42
- color: {
43
- value: string;
44
- };
45
- backgroundColor: {
46
- value: string;
47
- };
48
- borderColor: {
49
- value: string;
50
- };
51
- };
52
- _focus: {
53
- color: {
54
- value: string;
55
- };
56
- backgroundColor: {
57
- value: string;
58
- };
59
- borderColor: {
60
- value: string;
61
- };
62
- boxShadow: {
63
- value: string;
64
- };
65
- };
66
- _active: {
67
- color: {
68
- value: string;
69
- };
70
- backgroundColor: {
71
- value: string;
72
- };
73
- borderColor: {
74
- value: string;
75
- };
76
- };
77
- _loading: {
78
- color: {
79
- value: string;
80
- };
81
- backgroundColor: {
82
- value: string;
83
- };
84
- borderColor: {
85
- value: string;
86
- };
87
- };
88
- _disabled: {
89
- color: {
90
- value: string;
91
- };
92
- backgroundColor: {
93
- value: string;
94
- };
95
- borderColor: {
96
- value: string;
97
- };
98
- };
99
- primary: {
100
- borderColor: {
101
- value: string;
102
- };
103
- borderWidth: {
104
- value: string;
105
- };
106
- borderStyle: {
107
- value: string;
108
- };
109
- backgroundColor: {
110
- value: string;
111
- };
112
- color: {
113
- value: string;
114
- };
115
- _disabled: {
116
- borderColor: {
117
- value: string;
118
- };
119
- backgroundColor: {
120
- value: string;
121
- };
122
- color: {
123
- value: string;
124
- };
125
- };
126
- _loading: {
127
- borderColor: {
128
- value: string;
129
- };
130
- backgroundColor: {
131
- value: string;
132
- };
133
- color: {
134
- value: string;
135
- };
136
- };
137
- _hover: {
138
- borderColor: {
139
- value: string;
140
- };
141
- backgroundColor: {
142
- value: string;
143
- };
144
- color: {
145
- value: string;
146
- };
147
- };
148
- _focus: {
149
- borderColor: {
150
- value: string;
151
- };
152
- backgroundColor: {
153
- value: string;
154
- };
155
- color: {
156
- value: string;
157
- };
158
- boxShadow: {
159
- value: string;
160
- };
161
- };
162
- _active: {
163
- borderColor: {
164
- value: string;
165
- };
166
- backgroundColor: {
167
- value: string;
168
- };
169
- color: {
170
- value: string;
171
- };
172
- };
173
- };
174
- menu: {
175
- borderWidth: {
176
- value: number;
177
- };
178
- backgroundColor: {
179
- value: string;
180
- };
181
- justifyContent: {
182
- value: string;
183
- };
184
- _hover: {
185
- color: {
186
- value: string;
187
- };
188
- backgroundColor: {
189
- value: string;
190
- };
191
- };
192
- _focus: {
193
- color: {
194
- value: string;
195
- };
196
- backgroundColor: {
197
- value: string;
198
- };
199
- };
200
- _active: {
201
- color: {
202
- value: string;
203
- };
204
- backgroundColor: {
205
- value: string;
206
- };
207
- };
208
- _disabled: {
209
- color: {
210
- value: string;
211
- };
212
- };
213
- };
214
- link: {
215
- borderWidth: {
216
- value: number;
217
- };
218
- borderColor: {
219
- value: string;
220
- };
221
- backgroundColor: {
222
- value: string;
223
- };
224
- color: {
225
- value: string;
226
- };
227
- _hover: {
228
- borderColor: {
229
- value: string;
230
- };
231
- backgroundColor: {
232
- value: string;
233
- };
234
- color: {
235
- value: string;
236
- };
237
- };
238
- _focus: {
239
- borderColor: {
240
- value: string;
241
- };
242
- backgroundColor: {
243
- value: string;
244
- };
245
- color: {
246
- value: string;
247
- };
248
- boxShadow: {
249
- value: string;
250
- };
251
- };
252
- _active: {
253
- borderColor: {
254
- value: string;
255
- };
256
- backgroundColor: {
257
- value: string;
258
- };
259
- color: {
260
- value: string;
261
- };
262
- };
263
- _disabled: {
264
- borderColor: {
265
- value: string;
266
- };
267
- backgroundColor: {
268
- value: string;
269
- };
270
- color: {
271
- value: string;
272
- };
273
- };
274
- _loading: {
275
- borderColor: {
276
- value: string;
277
- };
278
- backgroundColor: {
279
- value: string;
280
- };
281
- color: {
282
- value: string;
283
- };
284
- };
285
- };
286
- small: {
287
- fontSize: {
288
- value: string;
289
- };
290
- paddingBlockStart: {
291
- value: string;
292
- };
293
- paddingBlockEnd: {
294
- value: string;
295
- };
296
- paddingInlineStart: {
297
- value: string;
298
- };
299
- paddingInlineEnd: {
300
- value: string;
301
- };
302
- };
303
- large: {
304
- fontSize: {
305
- value: string;
306
- };
307
- paddingBlockStart: {
308
- value: string;
309
- };
310
- paddingBlockEnd: {
311
- value: string;
312
- };
313
- paddingInlineStart: {
314
- value: string;
315
- };
316
- paddingInlineEnd: {
317
- value: string;
318
- };
319
- };
1
+ import { AlignItemsValue, BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderStyleValue, BorderWidthValue, BoxShadowValue, ColorValue, DesignToken, FontSizeValue, FontWeightValue, JustifyContentValue, LineHeightValue, SpaceValue, TransitionDurationValue } from '../types/designToken';
2
+ interface StateTokens {
3
+ color: DesignToken<ColorValue>;
4
+ backgroundColor: DesignToken<BackgroundColorValue>;
5
+ borderColor: DesignToken<BorderColorValue>;
6
+ }
7
+ interface StateWithShadowTokens extends StateTokens {
8
+ boxShadow: DesignToken<BoxShadowValue>;
9
+ }
10
+ interface MenuStateDisabledTokens extends Omit<StateTokens, 'borderColor' | 'backgroundColor'> {
11
+ }
12
+ interface MenuStateTokens extends Omit<StateTokens, 'borderColor'> {
13
+ }
14
+ interface PrimaryVariationTokens {
15
+ borderWidth: DesignToken<BorderWidthValue>;
16
+ borderStyle: DesignToken<BorderStyleValue>;
17
+ borderColor: DesignToken<BorderColorValue>;
18
+ backgroundColor: DesignToken<BackgroundColorValue>;
19
+ color: DesignToken<ColorValue>;
20
+ _disabled: StateTokens;
21
+ _loading: StateTokens;
22
+ _hover: StateTokens;
23
+ _focus: StateWithShadowTokens;
24
+ _active: StateTokens;
25
+ }
26
+ interface MenuVariationTokens {
27
+ borderWidth: DesignToken<BorderWidthValue>;
28
+ backgroundColor: DesignToken<BackgroundColorValue>;
29
+ justifyContent: DesignToken<JustifyContentValue>;
30
+ _hover: MenuStateTokens;
31
+ _focus: MenuStateTokens;
32
+ _active: MenuStateTokens;
33
+ _disabled: MenuStateDisabledTokens;
34
+ }
35
+ interface LinkVariationTokens {
36
+ backgroundColor: DesignToken<BackgroundColorValue>;
37
+ borderColor: DesignToken<BorderColorValue>;
38
+ borderWidth: DesignToken<BorderWidthValue>;
39
+ color: DesignToken<ColorValue>;
40
+ _hover: StateTokens;
41
+ _focus: StateWithShadowTokens;
42
+ _active: StateTokens;
43
+ _disabled: StateTokens;
44
+ _loading: StateTokens;
45
+ }
46
+ interface ButtonSizeTokens {
47
+ fontSize: DesignToken<FontSizeValue>;
48
+ paddingBlockStart: DesignToken<SpaceValue>;
49
+ paddingBlockEnd: DesignToken<SpaceValue>;
50
+ paddingInlineStart: DesignToken<SpaceValue>;
51
+ paddingInlineEnd: DesignToken<SpaceValue>;
52
+ }
53
+ export interface ButtonTokens {
54
+ fontWeight: DesignToken<FontWeightValue>;
55
+ transitionDuration: DesignToken<TransitionDurationValue>;
56
+ fontSize: DesignToken<FontSizeValue>;
57
+ lineHeight: DesignToken<LineHeightValue>;
58
+ paddingBlockStart: DesignToken<SpaceValue>;
59
+ paddingBlockEnd: DesignToken<SpaceValue>;
60
+ paddingInlineStart: DesignToken<SpaceValue>;
61
+ paddingInlineEnd: DesignToken<SpaceValue>;
62
+ borderColor: DesignToken<BorderColorValue>;
63
+ borderWidth: DesignToken<BorderWidthValue>;
64
+ borderStyle: DesignToken<BorderStyleValue>;
65
+ borderRadius: DesignToken<BorderRadiusValue>;
66
+ color: DesignToken<ColorValue>;
67
+ _hover: StateTokens;
68
+ _focus: StateWithShadowTokens;
69
+ _active: StateTokens;
70
+ _loading: StateTokens;
71
+ _disabled: StateTokens;
72
+ primary: PrimaryVariationTokens;
73
+ menu: MenuVariationTokens;
74
+ link: LinkVariationTokens;
75
+ small: ButtonSizeTokens;
76
+ large: ButtonSizeTokens;
320
77
  loaderWrapper: {
321
- alignItems: {
322
- value: string;
323
- };
324
- gap: {
325
- value: string;
326
- };
78
+ alignItems: DesignToken<AlignItemsValue>;
79
+ gap: DesignToken<SpaceValue>;
327
80
  };
328
- };
81
+ }
82
+ export declare const button: ButtonTokens;
83
+ export {};
@@ -1,63 +1,16 @@
1
- export declare const card: {
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
- padding: {
21
- value: string;
22
- };
23
- outlined: {
24
- backgroundColor: {
25
- value: string;
26
- };
27
- borderRadius: {
28
- value: string;
29
- };
30
- borderWidth: {
31
- value: string;
32
- };
33
- borderStyle: {
34
- value: string;
35
- };
36
- borderColor: {
37
- value: string;
38
- };
39
- boxShadow: {
40
- value: string;
41
- };
42
- };
43
- elevated: {
44
- backgroundColor: {
45
- value: string;
46
- };
47
- borderRadius: {
48
- value: string;
49
- };
50
- borderWidth: {
51
- value: string;
52
- };
53
- borderStyle: {
54
- value: string;
55
- };
56
- borderColor: {
57
- value: string;
58
- };
59
- boxShadow: {
60
- value: string;
61
- };
62
- };
1
+ import { BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderStyleValue, BorderWidthValue, BoxShadowValue, DesignToken, SpaceValue } from '../types/designToken';
2
+ interface CardVariationTokens {
3
+ backgroundColor: DesignToken<BackgroundColorValue>;
4
+ borderRadius: DesignToken<BorderRadiusValue>;
5
+ borderWidth: DesignToken<BorderWidthValue>;
6
+ borderStyle: DesignToken<BorderStyleValue>;
7
+ borderColor: DesignToken<BorderColorValue>;
8
+ boxShadow: DesignToken<BoxShadowValue>;
9
+ }
10
+ export declare type CardTokens = CardVariationTokens & {
11
+ padding: DesignToken<SpaceValue>;
12
+ outlined: CardVariationTokens;
13
+ elevated: CardVariationTokens;
63
14
  };
15
+ export declare const card: CardTokens;
16
+ export {};