@aws-amplify/ui 5.5.0 → 5.5.2
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/helpers/authenticator/textUtil.js +1 -1
- package/dist/esm/helpers/authenticator/utils.js +1 -1
- package/dist/esm/helpers/storage/fileUploader/utils/uploader.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/de.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/en.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/es.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/fr.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/he.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/id.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/it.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/ja.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/kr.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/nl.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/pl.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/pt.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/ru.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/sv.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/tr.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/ua.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/zh.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/machines/authenticator/actions.js +1 -1
- package/dist/esm/theme/tokens/components/fileUploader.js +1 -1
- package/dist/esm/theme/utils.js +1 -1
- package/dist/esm/types/primitives/componentClassName.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +9 -2
- package/dist/theme.css +1 -1
- package/dist/types/helpers/authenticator/textUtil.d.ts +1 -0
- package/dist/types/helpers/authenticator/utils.d.ts +1 -0
- package/dist/types/i18n/dictionaries/authenticator/defaultTexts.d.ts +1 -0
- package/dist/types/i18n/dictionaries/index.d.ts +1 -0
- package/dist/types/i18n/translations.d.ts +1 -0
- package/dist/types/theme/utils.d.ts +4 -5
- package/dist/types/types/primitives/componentClassName.d.ts +1 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
--amplify-components-fileuploader-file-padding-block: var(--amplify-space-xs);
|
|
433
433
|
--amplify-components-fileuploader-file-padding-inline: var(--amplify-space-small);
|
|
434
434
|
--amplify-components-fileuploader-file-gap: var(--amplify-space-small);
|
|
435
|
-
--amplify-components-fileuploader-file-align-items:
|
|
435
|
+
--amplify-components-fileuploader-file-align-items: baseline;
|
|
436
436
|
--amplify-components-fileuploader-file-name-font-size: var(--amplify-font-sizes-medium);
|
|
437
437
|
--amplify-components-fileuploader-file-name-font-weight: var(--amplify-font-weights-bold);
|
|
438
438
|
--amplify-components-fileuploader-file-name-color: var(--amplify-colors-font-primary);
|
|
@@ -1678,6 +1678,7 @@ strong.amplify-text {
|
|
|
1678
1678
|
-webkit-user-select: text;
|
|
1679
1679
|
-moz-user-select: text;
|
|
1680
1680
|
user-select: text;
|
|
1681
|
+
display: inline-flex;
|
|
1681
1682
|
}
|
|
1682
1683
|
.amplify-input:focus {
|
|
1683
1684
|
border-color: var(--amplify-components-fieldcontrol-focus-border-color);
|
|
@@ -2739,10 +2740,16 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2739
2740
|
border-color: var(--amplify-components-fileuploader-file-border-color);
|
|
2740
2741
|
border-radius: var(--amplify-components-fileuploader-file-border-radius);
|
|
2741
2742
|
display: flex;
|
|
2742
|
-
flex-direction:
|
|
2743
|
+
flex-direction: column;
|
|
2743
2744
|
padding-inline: var(--amplify-components-fileuploader-file-padding-inline);
|
|
2744
2745
|
padding-block: var(--amplify-components-fileuploader-file-padding-block);
|
|
2745
2746
|
align-items: var(--amplify-components-fileuploader-file-align-items);
|
|
2747
|
+
}
|
|
2748
|
+
.amplify-fileuploader__file__wrapper {
|
|
2749
|
+
width: 100%;
|
|
2750
|
+
display: flex;
|
|
2751
|
+
flex-direction: row;
|
|
2752
|
+
align-items: center;
|
|
2746
2753
|
gap: var(--amplify-components-fileuploader-file-gap);
|
|
2747
2754
|
}
|
|
2748
2755
|
.amplify-fileuploader__file__name {
|
package/dist/theme.css
CHANGED
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
--amplify-components-fileuploader-file-padding-block: var(--amplify-space-xs);
|
|
430
430
|
--amplify-components-fileuploader-file-padding-inline: var(--amplify-space-small);
|
|
431
431
|
--amplify-components-fileuploader-file-gap: var(--amplify-space-small);
|
|
432
|
-
--amplify-components-fileuploader-file-align-items:
|
|
432
|
+
--amplify-components-fileuploader-file-align-items: baseline;
|
|
433
433
|
--amplify-components-fileuploader-file-name-font-size: var(--amplify-font-sizes-medium);
|
|
434
434
|
--amplify-components-fileuploader-file-name-font-weight: var(--amplify-font-weights-bold);
|
|
435
435
|
--amplify-components-fileuploader-file-name-color: var(--amplify-colors-font-primary);
|
|
@@ -10,6 +10,7 @@ export declare const authenticatorTextUtil: {
|
|
|
10
10
|
readonly getCopyText: () => string;
|
|
11
11
|
readonly getHidePasswordText: () => string;
|
|
12
12
|
readonly getLoadingText: () => string;
|
|
13
|
+
readonly getOrText: () => string;
|
|
13
14
|
readonly getResendCodeText: () => string;
|
|
14
15
|
readonly getSendCodeText: () => string;
|
|
15
16
|
readonly getSendingText: () => string;
|
|
@@ -26,4 +26,5 @@ export declare const defaultAuthHubHandler: AuthMachineHubHandler;
|
|
|
26
26
|
export declare const listenToAuthHub: (service: AuthInterpreter, handler?: AuthMachineHubHandler) => () => void;
|
|
27
27
|
export declare const hasSpecialChars: (password: string) => boolean;
|
|
28
28
|
export declare const getTotpCodeURL: (issuer: string, username: string, secret: string) => string;
|
|
29
|
+
export declare function trimValues<T extends Record<string, string>>(values: T, ...ignored: string[]): T;
|
|
29
30
|
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ShadowValue, WebDesignToken } from './tokens/types/designToken';
|
|
2
2
|
export declare const CSS_VARIABLE_PREFIX = "amplify";
|
|
3
|
-
export declare function cssValue(token:
|
|
4
|
-
value: unknown;
|
|
5
|
-
}>): unknown;
|
|
3
|
+
export declare function cssValue(token: BaseDesignToken): string | number;
|
|
6
4
|
interface NameTransformProps {
|
|
7
5
|
path?: Array<string>;
|
|
8
6
|
}
|
|
@@ -15,8 +13,9 @@ export declare function cssNameTransform({ path }: NameTransformProps): string;
|
|
|
15
13
|
* @returns boolean
|
|
16
14
|
*/
|
|
17
15
|
export declare function isDesignToken(value: unknown): value is WebDesignToken;
|
|
16
|
+
export declare function isShadowToken(value: unknown): value is ShadowValue;
|
|
18
17
|
declare type SetupTokensProps = {
|
|
19
|
-
tokens
|
|
18
|
+
tokens?: Record<string | number, any>;
|
|
20
19
|
path?: Array<string>;
|
|
21
20
|
setupToken: SetupToken;
|
|
22
21
|
};
|
|
@@ -58,6 +58,7 @@ export declare enum ComponentClassName {
|
|
|
58
58
|
FileUploaderDropZoneText = "amplify-fileuploader__dropzone__text",
|
|
59
59
|
FileUploaderDropZoneButton = "amplify-fileuploader__dropzone__button",
|
|
60
60
|
FileUploaderFile = "amplify-fileuploader__file",
|
|
61
|
+
FileUploaderFileWrapper = "amplify-fileuploader__file__wrapper",
|
|
61
62
|
FileUploaderFileName = "amplify-fileuploader__file__name",
|
|
62
63
|
FileUploaderFileSize = "amplify-fileuploader__file__size",
|
|
63
64
|
FileUploaderFileInfo = "amplify-fileuploader__file__info",
|