@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.
- package/dist/esm/index.js +1 -1
- package/dist/esm/machines/authenticator/actors/signIn.js +1 -1
- package/dist/esm/machines/authenticator/index.js +1 -1
- package/dist/esm/theme/createTheme.js +1 -1
- package/dist/esm/theme/{baseTheme.js → defaultTheme.js} +1 -1
- package/dist/esm/theme/tokens/components/button.js +1 -1
- package/dist/esm/theme/tokens/components/copy.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/index.js +2 -2
- package/dist/styles.css +487 -487
- package/dist/theme.css +487 -487
- package/dist/types/theme/defaultTheme.d.ts +2 -0
- package/dist/types/theme/index.d.ts +2 -3
- 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 +2 -2
- package/dist/esm/theme/index.js +0 -1
- package/dist/esm/theme/tokens/components/phoneNumberField.js +0 -1
- package/dist/types/theme/baseTheme.d.ts +0 -2
- package/dist/types/theme/tokens/components/phoneNumberField.d.ts +0 -1
|
@@ -1,65 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
icon:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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 {};
|