@aws-amplify/ui 3.6.2 → 3.6.5
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.
- package/dist/esm/machines/authenticator/index.js +1 -1
- package/dist/esm/theme/tokens/components/button.js +1 -1
- package/dist/esm/theme/tokens/components/countryCodeSelect.js +1 -1
- package/dist/esm/theme/tokens/components/fieldControl.js +1 -1
- package/dist/esm/theme/tokens/components/fieldGroup.js +1 -1
- package/dist/esm/theme/tokens/components/index.js +1 -1
- package/dist/esm/theme/tokens/components/menu.js +1 -1
- package/dist/esm/theme/tokens/components/switchField.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +11 -10
- package/dist/theme.css +10 -10
- package/dist/types/theme/tokens/components/alert.d.ts +28 -65
- package/dist/types/theme/tokens/components/authenticator.d.ts +47 -71
- package/dist/types/theme/tokens/components/badge.d.ts +29 -83
- package/dist/types/theme/tokens/components/button.d.ts +81 -326
- package/dist/types/theme/tokens/components/card.d.ts +15 -62
- package/dist/types/theme/tokens/components/checkbox.d.ts +75 -140
- package/dist/types/theme/tokens/components/checkboxField.d.ts +8 -14
- package/dist/types/theme/tokens/components/copy.d.ts +20 -26
- package/dist/types/theme/tokens/components/countryCodeSelect.d.ts +5 -5
- package/dist/types/theme/tokens/components/divider.d.ts +21 -38
- package/dist/types/theme/tokens/components/expander.d.ts +69 -135
- package/dist/types/theme/tokens/components/field.d.ts +17 -29
- package/dist/types/theme/tokens/components/fieldControl.d.ts +72 -174
- package/dist/types/theme/tokens/components/fieldGroup.d.ts +14 -15
- package/dist/types/theme/tokens/components/fieldMessages.d.ts +16 -21
- package/dist/types/theme/tokens/components/flex.d.ts +9 -17
- package/dist/types/theme/tokens/components/heading.d.ts +17 -56
- package/dist/types/theme/tokens/components/icon.d.ts +6 -8
- package/dist/types/theme/tokens/components/image.d.ts +8 -14
- package/dist/types/theme/tokens/components/index.d.ts +75 -2493
- package/dist/types/theme/tokens/components/link.d.ts +18 -35
- package/dist/types/theme/tokens/components/loader.d.ts +40 -92
- package/dist/types/theme/tokens/components/menu.d.ts +27 -59
- package/dist/types/theme/tokens/components/pagination.d.ts +48 -82
- package/dist/types/theme/tokens/components/placeholder.d.ts +15 -29
- package/dist/types/theme/tokens/components/radio.d.ts +72 -131
- package/dist/types/theme/tokens/components/rating.d.ts +19 -27
- package/dist/types/theme/tokens/components/select.d.ts +33 -60
- package/dist/types/theme/tokens/components/selectField.d.ts +5 -5
- package/dist/types/theme/tokens/components/sliderField.d.ts +61 -118
- package/dist/types/theme/tokens/components/stepperField.d.ts +10 -10
- package/dist/types/theme/tokens/components/switchField.d.ts +53 -78
- package/dist/types/theme/tokens/components/table.d.ts +61 -197
- package/dist/types/theme/tokens/components/tabs.d.ts +44 -84
- package/dist/types/theme/tokens/components/text.d.ts +16 -40
- package/dist/types/theme/tokens/components/toggleButton.d.ts +103 -154
- package/dist/types/theme/tokens/components/toggleButtonGroup.d.ts +7 -11
- package/dist/types/theme/tokens/index.d.ts +2 -1
- package/dist/types/theme/tokens/types/designToken.d.ts +41 -5
- package/dist/types/types/authenticator/stateMachine/context.d.ts +1 -0
- package/package.json +4 -2
- package/dist/esm/theme/tokens/components/phoneNumberField.js +0 -1
- package/dist/types/theme/tokens/components/phoneNumberField.d.ts +0 -1
|
@@ -1,174 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
color:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
paddingBlockEnd: {
|
|
75
|
-
value: string;
|
|
76
|
-
};
|
|
77
|
-
paddingInlineStart: {
|
|
78
|
-
value: string;
|
|
79
|
-
};
|
|
80
|
-
paddingInlineEnd: {
|
|
81
|
-
value: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
quiet: {
|
|
85
|
-
borderStyle: {
|
|
86
|
-
value: string;
|
|
87
|
-
};
|
|
88
|
-
borderBlockEnd: {
|
|
89
|
-
value: string;
|
|
90
|
-
};
|
|
91
|
-
borderInlineStart: {
|
|
92
|
-
value: string;
|
|
93
|
-
};
|
|
94
|
-
borderInlineEnd: {
|
|
95
|
-
value: string;
|
|
96
|
-
};
|
|
97
|
-
borderBlockStart: {
|
|
98
|
-
value: string;
|
|
99
|
-
};
|
|
100
|
-
borderRadius: {
|
|
101
|
-
value: string;
|
|
102
|
-
};
|
|
103
|
-
_focus: {
|
|
104
|
-
borderBlockEndColor: {
|
|
105
|
-
value: string;
|
|
106
|
-
};
|
|
107
|
-
boxShadow: {
|
|
108
|
-
value: {
|
|
109
|
-
offsetX: string;
|
|
110
|
-
offsetY: string;
|
|
111
|
-
color: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
_error: {
|
|
116
|
-
borderBlockEndColor: {
|
|
117
|
-
value: string;
|
|
118
|
-
};
|
|
119
|
-
_focus: {
|
|
120
|
-
boxShadow: {
|
|
121
|
-
value: {
|
|
122
|
-
offsetX: string;
|
|
123
|
-
offsetY: string;
|
|
124
|
-
color: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
_focus: {
|
|
131
|
-
borderColor: {
|
|
132
|
-
value: string;
|
|
133
|
-
};
|
|
134
|
-
boxShadow: {
|
|
135
|
-
value: {
|
|
136
|
-
offsetX: string;
|
|
137
|
-
offsetY: string;
|
|
138
|
-
blurRadius: string;
|
|
139
|
-
spreadRadius: string;
|
|
140
|
-
color: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
_disabled: {
|
|
145
|
-
color: {
|
|
146
|
-
value: string;
|
|
147
|
-
};
|
|
148
|
-
cursor: {
|
|
149
|
-
value: string;
|
|
150
|
-
};
|
|
151
|
-
borderColor: {
|
|
152
|
-
value: string;
|
|
153
|
-
};
|
|
154
|
-
backgroundColor: {
|
|
155
|
-
value: string;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
_error: {
|
|
159
|
-
borderColor: {
|
|
160
|
-
value: string;
|
|
161
|
-
};
|
|
162
|
-
_focus: {
|
|
163
|
-
boxShadow: {
|
|
164
|
-
value: {
|
|
165
|
-
offsetX: string;
|
|
166
|
-
offsetY: string;
|
|
167
|
-
blurRadius: string;
|
|
168
|
-
spreadRadius: string;
|
|
169
|
-
color: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
};
|
|
1
|
+
import { BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderStyleValue, BorderValue, BorderWidthValue, BoxShadowValue, ColorValue, CursorValue, DesignToken, FontSizeValue, LineHeightValue, OutlineColorValue, OutlineOffsetValue, OutlineStyleValue, OutlineWidthValue, SpaceValue, TransitionDurationValue } from '../types/designToken';
|
|
2
|
+
interface FieldControlSizeTokens {
|
|
3
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
4
|
+
paddingBlockStart: DesignToken<SpaceValue>;
|
|
5
|
+
paddingBlockEnd: DesignToken<SpaceValue>;
|
|
6
|
+
paddingInlineStart: DesignToken<SpaceValue>;
|
|
7
|
+
paddingInlineEnd: DesignToken<SpaceValue>;
|
|
8
|
+
}
|
|
9
|
+
interface FieldControlFocusTokens {
|
|
10
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
11
|
+
boxShadow: DesignToken<BoxShadowValue>;
|
|
12
|
+
}
|
|
13
|
+
interface FieldControlDisabledTokens {
|
|
14
|
+
color: DesignToken<ColorValue>;
|
|
15
|
+
cursor: DesignToken<CursorValue>;
|
|
16
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
17
|
+
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
18
|
+
}
|
|
19
|
+
interface FieldControlErrorTokens {
|
|
20
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
21
|
+
_focus: FieldControlErrorFocusTokens;
|
|
22
|
+
}
|
|
23
|
+
interface FieldControlErrorFocusTokens {
|
|
24
|
+
boxShadow: DesignToken<BoxShadowValue>;
|
|
25
|
+
}
|
|
26
|
+
interface FieldControlQuietTokens {
|
|
27
|
+
borderStyle: DesignToken<BorderStyleValue>;
|
|
28
|
+
borderBlockEnd: DesignToken<BorderValue>;
|
|
29
|
+
borderInlineStart: DesignToken<BorderValue>;
|
|
30
|
+
borderInlineEnd: DesignToken<BorderValue>;
|
|
31
|
+
borderBlockStart: DesignToken<BorderValue>;
|
|
32
|
+
borderRadius: DesignToken<BorderRadiusValue>;
|
|
33
|
+
_focus: FieldControlQuietFocusTokens;
|
|
34
|
+
_error: FieldControlQuietErrorTokens;
|
|
35
|
+
}
|
|
36
|
+
interface FieldControlQuietFocusTokens {
|
|
37
|
+
borderBlockEndColor: DesignToken<ColorValue>;
|
|
38
|
+
boxShadow: DesignToken<BoxShadowValue>;
|
|
39
|
+
}
|
|
40
|
+
interface FieldControlQuietErrorTokens {
|
|
41
|
+
borderBlockEndColor: DesignToken<ColorValue>;
|
|
42
|
+
_focus: FieldControlQuietErrorFocusTokens;
|
|
43
|
+
}
|
|
44
|
+
interface FieldControlQuietErrorFocusTokens {
|
|
45
|
+
boxShadow: DesignToken<BoxShadowValue>;
|
|
46
|
+
}
|
|
47
|
+
export interface FieldControlTokens {
|
|
48
|
+
borderStyle: DesignToken<BorderStyleValue>;
|
|
49
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
50
|
+
borderWidth: DesignToken<BorderWidthValue>;
|
|
51
|
+
borderRadius: DesignToken<BorderRadiusValue>;
|
|
52
|
+
color: DesignToken<ColorValue>;
|
|
53
|
+
paddingBlockStart: DesignToken<SpaceValue>;
|
|
54
|
+
paddingBlockEnd: DesignToken<SpaceValue>;
|
|
55
|
+
paddingInlineStart: DesignToken<SpaceValue>;
|
|
56
|
+
paddingInlineEnd: DesignToken<SpaceValue>;
|
|
57
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
58
|
+
lineHeight: DesignToken<LineHeightValue>;
|
|
59
|
+
transitionDuration: DesignToken<TransitionDurationValue>;
|
|
60
|
+
outlineColor: DesignToken<OutlineColorValue>;
|
|
61
|
+
outlineStyle: DesignToken<OutlineStyleValue>;
|
|
62
|
+
outlineWidth: DesignToken<OutlineWidthValue>;
|
|
63
|
+
outlineOffset: DesignToken<OutlineOffsetValue>;
|
|
64
|
+
small: FieldControlSizeTokens;
|
|
65
|
+
large: FieldControlSizeTokens;
|
|
66
|
+
quiet: FieldControlQuietTokens;
|
|
67
|
+
_focus: FieldControlFocusTokens;
|
|
68
|
+
_disabled: FieldControlDisabledTokens;
|
|
69
|
+
_error: FieldControlErrorTokens;
|
|
70
|
+
}
|
|
71
|
+
export declare const fieldcontrol: FieldControlTokens;
|
|
72
|
+
export {};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
1
|
+
import { DesignToken, AlignItemsValue, GapValue } from '../types/designToken';
|
|
2
|
+
interface FieldGroupVerticalTokens {
|
|
3
|
+
alignItems: DesignToken<AlignItemsValue>;
|
|
4
|
+
}
|
|
5
|
+
interface FieldGroupOuterTokens {
|
|
6
|
+
alignItems: DesignToken<AlignItemsValue>;
|
|
7
|
+
}
|
|
8
|
+
export interface FieldGroupTokens {
|
|
9
|
+
gap: DesignToken<GapValue>;
|
|
10
|
+
vertical: FieldGroupVerticalTokens;
|
|
11
|
+
outer: FieldGroupOuterTokens;
|
|
12
|
+
}
|
|
13
|
+
export declare const fieldgroup: FieldGroupTokens;
|
|
14
|
+
export {};
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
fontSize: {
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
1
|
+
import { DesignToken, ColorValue, FontStyleValue, FontSizeValue } from '../types/designToken';
|
|
2
|
+
interface FieldMessagesErrorTokens {
|
|
3
|
+
color: DesignToken<ColorValue>;
|
|
4
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
5
|
+
}
|
|
6
|
+
interface FieldMessagesDescriptionTokens {
|
|
7
|
+
color: DesignToken<ColorValue>;
|
|
8
|
+
fontStyle: DesignToken<FontStyleValue>;
|
|
9
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
10
|
+
}
|
|
11
|
+
export interface FieldMessagesTokens {
|
|
12
|
+
error: FieldMessagesErrorTokens;
|
|
13
|
+
description: FieldMessagesDescriptionTokens;
|
|
14
|
+
}
|
|
15
|
+
export declare const fieldmessages: FieldMessagesTokens;
|
|
16
|
+
export {};
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
alignContent: {
|
|
12
|
-
value: string;
|
|
13
|
-
};
|
|
14
|
-
flexWrap: {
|
|
15
|
-
value: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
1
|
+
import { AlignContentValue, AlignItemsValue, DesignToken, FlexWrapValue, GapValue, JustifyContentValue } from '../types/designToken';
|
|
2
|
+
export interface FlexTokens {
|
|
3
|
+
gap: DesignToken<GapValue>;
|
|
4
|
+
justifyContent: DesignToken<JustifyContentValue>;
|
|
5
|
+
alignItems: DesignToken<AlignItemsValue>;
|
|
6
|
+
alignContent: DesignToken<AlignContentValue>;
|
|
7
|
+
flexWrap: DesignToken<FlexWrapValue>;
|
|
8
|
+
}
|
|
9
|
+
export declare const flex: FlexTokens;
|
|
@@ -1,56 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
|
-
fontWeight: {
|
|
21
|
-
value: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
3: {
|
|
25
|
-
fontSize: {
|
|
26
|
-
value: string;
|
|
27
|
-
};
|
|
28
|
-
fontWeight: {
|
|
29
|
-
value: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
4: {
|
|
33
|
-
fontSize: {
|
|
34
|
-
value: string;
|
|
35
|
-
};
|
|
36
|
-
fontWeight: {
|
|
37
|
-
value: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
5: {
|
|
41
|
-
fontSize: {
|
|
42
|
-
value: string;
|
|
43
|
-
};
|
|
44
|
-
fontWeight: {
|
|
45
|
-
value: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
6: {
|
|
49
|
-
fontSize: {
|
|
50
|
-
value: string;
|
|
51
|
-
};
|
|
52
|
-
fontWeight: {
|
|
53
|
-
value: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
1
|
+
import { ColorValue, DesignToken, FontSizeValue, FontWeightValue, LineHeightValue } from '../types/designToken';
|
|
2
|
+
interface HeadingLevelTokens {
|
|
3
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
4
|
+
fontWeight: DesignToken<FontWeightValue>;
|
|
5
|
+
}
|
|
6
|
+
export interface HeadingTokens {
|
|
7
|
+
color: DesignToken<ColorValue>;
|
|
8
|
+
lineHeight: DesignToken<LineHeightValue>;
|
|
9
|
+
1: HeadingLevelTokens;
|
|
10
|
+
2: HeadingLevelTokens;
|
|
11
|
+
3: HeadingLevelTokens;
|
|
12
|
+
4: HeadingLevelTokens;
|
|
13
|
+
5: HeadingLevelTokens;
|
|
14
|
+
6: HeadingLevelTokens;
|
|
15
|
+
}
|
|
16
|
+
export declare const heading: HeadingTokens;
|
|
17
|
+
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
};
|
|
1
|
+
import { DesignToken, LineHeightValue, SpaceValue } from '../types/designToken';
|
|
2
|
+
export interface IconTokens {
|
|
3
|
+
lineHeight: DesignToken<LineHeightValue>;
|
|
4
|
+
height: DesignToken<SpaceValue>;
|
|
5
|
+
}
|
|
6
|
+
export declare const icon: IconTokens;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
objectPosition: {
|
|
12
|
-
value: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
1
|
+
import { DesignToken, ObjectFitValue, PositionValue, SpaceValue } from '../types/designToken';
|
|
2
|
+
export interface ImageTokens {
|
|
3
|
+
maxWidth: DesignToken<SpaceValue>;
|
|
4
|
+
height: DesignToken<SpaceValue>;
|
|
5
|
+
objectFit: DesignToken<ObjectFitValue>;
|
|
6
|
+
objectPosition: DesignToken<PositionValue>;
|
|
7
|
+
}
|
|
8
|
+
export declare const image: ImageTokens;
|