@aws-amplify/ui 5.7.2 → 5.8.0
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/theme/createTheme.mjs +1 -1
- package/dist/esm/theme/tokens/colors.mjs +1 -1
- package/dist/esm/theme/tokens/components/dropZone.mjs +1 -0
- package/dist/esm/theme/tokens/components/fieldset.mjs +1 -0
- package/dist/esm/theme/tokens/components/index.mjs +1 -1
- package/dist/esm/theme/tokens/components/input.mjs +1 -0
- package/dist/esm/theme/tokens/components/message.mjs +1 -0
- package/dist/esm/theme/tokens/components/storagemanager.mjs +1 -1
- package/dist/esm/types/primitives/componentClassName.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +343 -10
- package/dist/theme.css +124 -10
- package/dist/types/theme/tokens/colors.d.ts +1 -1
- package/dist/types/theme/tokens/components/dropZone.d.ts +10 -0
- package/dist/types/theme/tokens/components/fieldset.d.ts +17 -0
- package/dist/types/theme/tokens/components/index.d.ts +8 -0
- package/dist/types/theme/tokens/components/input.d.ts +5 -0
- package/dist/types/theme/tokens/components/message.d.ts +19 -0
- package/dist/types/theme/tokens/components/storagemanager.d.ts +4 -1
- package/dist/types/types/primitives/componentClassName.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export type FieldsetSizeTokens<Output> = DesignTokenProperties<'gap', Output>;
|
|
3
|
+
export type FieldsetOutlinedTokens<Output> = DesignTokenProperties<'padding' | 'borderColor' | 'borderWidth' | 'borderStyle', Output> & {
|
|
4
|
+
small?: DesignTokenProperties<'padding', Output>;
|
|
5
|
+
large?: DesignTokenProperties<'padding', Output>;
|
|
6
|
+
};
|
|
7
|
+
export type FieldsetLegendTokens<Output> = DesignTokenProperties<'fontSize' | 'color' | 'fontWeight' | 'lineHeight', Output> & {
|
|
8
|
+
small?: DesignTokenProperties<'fontSize', Output>;
|
|
9
|
+
large?: DesignTokenProperties<'fontSize', Output>;
|
|
10
|
+
};
|
|
11
|
+
export type FieldsetTokens<Output extends OutputVariantKey> = DesignTokenProperties<'backgroundColor' | 'gap' | 'flexDirection' | 'borderRadius', Output> & {
|
|
12
|
+
legend?: FieldsetLegendTokens<Output>;
|
|
13
|
+
outlined?: FieldsetOutlinedTokens<Output>;
|
|
14
|
+
small?: FieldsetSizeTokens<Output>;
|
|
15
|
+
large?: FieldsetSizeTokens<Output>;
|
|
16
|
+
};
|
|
17
|
+
export declare const fieldset: Required<FieldsetTokens<'default'>>;
|
|
@@ -11,22 +11,26 @@ import { CollectionTokens } from './collection';
|
|
|
11
11
|
import { CopyTokens } from './copy';
|
|
12
12
|
import { DialCodeSelectTokens } from './dialCodeSelect';
|
|
13
13
|
import { DividerTokens } from './divider';
|
|
14
|
+
import { DropZoneTokens } from './dropZone';
|
|
14
15
|
import { ExpanderTokens } from './expander';
|
|
15
16
|
import { FieldTokens } from './field';
|
|
16
17
|
import { FieldControlTokens } from './fieldControl';
|
|
17
18
|
import { FieldGroupTokens } from './fieldGroup';
|
|
19
|
+
import { FieldsetTokens } from './fieldset';
|
|
18
20
|
import { FieldMessagesTokens } from './fieldMessages';
|
|
19
21
|
import { FileUploaderTokens } from './fileUploader';
|
|
20
22
|
import { FlexTokens } from './flex';
|
|
21
23
|
import { HeadingTokens } from './heading';
|
|
22
24
|
import { HighlightMatchTokens } from './highlightMatch';
|
|
23
25
|
import { IconTokens } from './icon';
|
|
26
|
+
import { InputTokens } from './input';
|
|
24
27
|
import { ImageTokens } from './image';
|
|
25
28
|
import { InAppMessagingTokens } from './inAppMessaging';
|
|
26
29
|
import { LinkTokens } from './link';
|
|
27
30
|
import { LivenessTokens } from './liveness';
|
|
28
31
|
import { LoaderTokens } from './loader';
|
|
29
32
|
import { MenuTokens } from './menu';
|
|
33
|
+
import { MessageTokens } from './message';
|
|
30
34
|
import { PaginationTokens } from './pagination';
|
|
31
35
|
import { PasswordFieldTokens } from './passwordField';
|
|
32
36
|
import { PhoneNumberFieldTokens } from './phoneNumberField';
|
|
@@ -63,8 +67,10 @@ type BaseComponentTokens<Output extends OutputVariantKey> = {
|
|
|
63
67
|
copy?: CopyTokens<Output>;
|
|
64
68
|
countrycodeselect?: DialCodeSelectTokens<Output>;
|
|
65
69
|
divider?: DividerTokens<Output>;
|
|
70
|
+
dropzone?: DropZoneTokens<Output>;
|
|
66
71
|
expander?: ExpanderTokens<Output>;
|
|
67
72
|
field?: FieldTokens<Output>;
|
|
73
|
+
fieldset?: FieldsetTokens<Output>;
|
|
68
74
|
fieldcontrol?: FieldControlTokens<Output>;
|
|
69
75
|
fieldgroup?: FieldGroupTokens<Output>;
|
|
70
76
|
fieldmessages?: FieldMessagesTokens<Output>;
|
|
@@ -75,10 +81,12 @@ type BaseComponentTokens<Output extends OutputVariantKey> = {
|
|
|
75
81
|
icon?: IconTokens<Output>;
|
|
76
82
|
image?: ImageTokens<Output>;
|
|
77
83
|
inappmessaging?: InAppMessagingTokens<Output>;
|
|
84
|
+
input?: InputTokens<Output>;
|
|
78
85
|
link?: LinkTokens<Output>;
|
|
79
86
|
liveness?: LivenessTokens<Output>;
|
|
80
87
|
loader?: LoaderTokens<Output>;
|
|
81
88
|
menu?: MenuTokens<Output>;
|
|
89
|
+
message?: MessageTokens<Output>;
|
|
82
90
|
pagination?: PaginationTokens<Output>;
|
|
83
91
|
passwordfield?: PasswordFieldTokens<Output>;
|
|
84
92
|
phonenumberfield?: PhoneNumberFieldTokens<Output>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export type InputTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color' | 'borderColor' | 'fontSize', Output> & {
|
|
3
|
+
_focus?: DesignTokenProperties<'borderColor', Output>;
|
|
4
|
+
};
|
|
5
|
+
export declare const input: Required<InputTokens<'default'>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
type MessageColorThemeTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'color' | 'borderColor', OutputType>;
|
|
3
|
+
type MessageVariationTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'color' | 'borderColor', OutputType> & {
|
|
4
|
+
info?: MessageColorThemeTokens<OutputType>;
|
|
5
|
+
error?: MessageColorThemeTokens<OutputType>;
|
|
6
|
+
warning?: MessageColorThemeTokens<OutputType>;
|
|
7
|
+
success?: MessageColorThemeTokens<OutputType>;
|
|
8
|
+
};
|
|
9
|
+
type MessageTokenKey = 'alignItems' | 'justifyContent' | 'color' | 'backgroundColor' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'lineHeight' | 'paddingBlock' | 'paddingInline';
|
|
10
|
+
export type MessageTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<MessageTokenKey, OutputType> & {
|
|
11
|
+
icon?: DesignTokenProperties<'size', OutputType>;
|
|
12
|
+
heading?: DesignTokenProperties<'fontSize' | 'fontWeight', OutputType>;
|
|
13
|
+
dismiss?: DesignTokenProperties<'gap', OutputType>;
|
|
14
|
+
plain?: MessageVariationTokens<OutputType>;
|
|
15
|
+
outlined?: MessageVariationTokens<OutputType>;
|
|
16
|
+
filled?: MessageVariationTokens<OutputType>;
|
|
17
|
+
};
|
|
18
|
+
export declare const message: Required<MessageTokens<'default'>>;
|
|
19
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
2
|
import { FileUploaderTokens } from './fileUploader';
|
|
3
|
-
export interface StorageManagerTokens<OutputType extends OutputVariantKey> extends Omit<FileUploaderTokens<OutputType>, 'body' | '
|
|
3
|
+
export interface StorageManagerTokens<OutputType extends OutputVariantKey> extends Omit<FileUploaderTokens<OutputType>, 'body' | 'previewer'> {
|
|
4
4
|
filelist?: DesignTokenProperties<'flexDirection' | 'gap'>;
|
|
5
|
+
previewer?: {
|
|
6
|
+
footer?: DesignTokenProperties<'justifyContent', OutputType>;
|
|
7
|
+
};
|
|
5
8
|
}
|
|
6
9
|
export declare const storagemanager: Required<StorageManagerTokens<'default'>>;
|
|
@@ -36,6 +36,7 @@ export declare enum ComponentClassName {
|
|
|
36
36
|
DialCodeSelect = "amplify-dialcodeselect",
|
|
37
37
|
Divider = "amplify-divider",
|
|
38
38
|
DividerLabel = "amplify-divider--label",
|
|
39
|
+
DropZone = "amplify-dropzone",
|
|
39
40
|
Expander = "amplify-expander",
|
|
40
41
|
ExpanderContent = "amplify-expander__content",
|
|
41
42
|
ExpanderContentText = "amplify-expander__content__text",
|
|
@@ -58,6 +59,8 @@ export declare enum ComponentClassName {
|
|
|
58
59
|
FieldGroupHasInnerStart = "amplify-field-group--has-inner-start",
|
|
59
60
|
FieldShowPassword = "amplify-field__show-password",
|
|
60
61
|
FieldGroupFieldWrapper = "amplify-field-group__field-wrapper",
|
|
62
|
+
Fieldset = "amplify-fieldset",
|
|
63
|
+
FieldsetLegend = "amplify-fieldset__legend",
|
|
61
64
|
FileUploaderDropZone = "amplify-fileuploader__dropzone",
|
|
62
65
|
FileUploaderDropZoneIcon = "amplify-fileuploader__dropzone__icon",
|
|
63
66
|
FileUploaderDropZoneText = "amplify-fileuploader__dropzone__text",
|
|
@@ -93,6 +96,12 @@ export declare enum ComponentClassName {
|
|
|
93
96
|
MenuContentWrapper = "amplify-menu-content-wrapper",
|
|
94
97
|
MenuItem = "amplify-menu-content__item",
|
|
95
98
|
MenuTrigger = "amplify-menu-trigger",
|
|
99
|
+
Message = "amplify-message",
|
|
100
|
+
MessageIcon = "amplify-message__icon",
|
|
101
|
+
MessageHeading = "amplify-message__heading",
|
|
102
|
+
MessageBody = "amplify-message__body",
|
|
103
|
+
MessageContent = "amplify-message__content",
|
|
104
|
+
MessageDismiss = "amplify-message__dismiss",
|
|
96
105
|
Pagination = "amplify-pagination",
|
|
97
106
|
PaginationItemButton = "amplify-pagination__item-button",
|
|
98
107
|
PaginationItemCurrent = "amplify-pagination__item-current",
|
|
@@ -144,6 +153,8 @@ export declare enum ComponentClassName {
|
|
|
144
153
|
StorageManagerLoader = "amplify-storagemanager__loader",
|
|
145
154
|
StorageManagerPreviewer = "amplify-storagemanager__previewer",
|
|
146
155
|
StorageManagerPreviewerText = "amplify-storagemanager__previewer__text",
|
|
156
|
+
StorageManagerPreviewerActions = "amplify-storagemanager__previewer__actions",
|
|
157
|
+
StorageManagerPreviewerFooter = "amplify-storagemanager__previewer__footer",
|
|
147
158
|
SwitchField = "amplify-switchfield",
|
|
148
159
|
SwitchLabel = "amplify-switch-label",
|
|
149
160
|
SwitchThumb = "amplify-switch-thumb",
|