@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.
Files changed (37) hide show
  1. package/dist/esm/helpers/authenticator/textUtil.js +1 -1
  2. package/dist/esm/helpers/authenticator/utils.js +1 -1
  3. package/dist/esm/helpers/storage/fileUploader/utils/uploader.js +1 -1
  4. package/dist/esm/i18n/dictionaries/authenticator/de.js +1 -1
  5. package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.js +1 -1
  6. package/dist/esm/i18n/dictionaries/authenticator/en.js +1 -1
  7. package/dist/esm/i18n/dictionaries/authenticator/es.js +1 -1
  8. package/dist/esm/i18n/dictionaries/authenticator/fr.js +1 -1
  9. package/dist/esm/i18n/dictionaries/authenticator/he.js +1 -1
  10. package/dist/esm/i18n/dictionaries/authenticator/id.js +1 -1
  11. package/dist/esm/i18n/dictionaries/authenticator/it.js +1 -1
  12. package/dist/esm/i18n/dictionaries/authenticator/ja.js +1 -1
  13. package/dist/esm/i18n/dictionaries/authenticator/kr.js +1 -1
  14. package/dist/esm/i18n/dictionaries/authenticator/nl.js +1 -1
  15. package/dist/esm/i18n/dictionaries/authenticator/pl.js +1 -1
  16. package/dist/esm/i18n/dictionaries/authenticator/pt.js +1 -1
  17. package/dist/esm/i18n/dictionaries/authenticator/ru.js +1 -1
  18. package/dist/esm/i18n/dictionaries/authenticator/sv.js +1 -1
  19. package/dist/esm/i18n/dictionaries/authenticator/tr.js +1 -1
  20. package/dist/esm/i18n/dictionaries/authenticator/ua.js +1 -1
  21. package/dist/esm/i18n/dictionaries/authenticator/zh.js +1 -1
  22. package/dist/esm/index.js +1 -1
  23. package/dist/esm/machines/authenticator/actions.js +1 -1
  24. package/dist/esm/theme/tokens/components/fileUploader.js +1 -1
  25. package/dist/esm/theme/utils.js +1 -1
  26. package/dist/esm/types/primitives/componentClassName.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/styles.css +9 -2
  29. package/dist/theme.css +1 -1
  30. package/dist/types/helpers/authenticator/textUtil.d.ts +1 -0
  31. package/dist/types/helpers/authenticator/utils.d.ts +1 -0
  32. package/dist/types/i18n/dictionaries/authenticator/defaultTexts.d.ts +1 -0
  33. package/dist/types/i18n/dictionaries/index.d.ts +1 -0
  34. package/dist/types/i18n/translations.d.ts +1 -0
  35. package/dist/types/theme/utils.d.ts +4 -5
  36. package/dist/types/types/primitives/componentClassName.d.ts +1 -0
  37. 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: center;
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: row;
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: center;
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 {};
@@ -32,6 +32,7 @@ export declare const defaultTexts: {
32
32
  NAME: string;
33
33
  NICKNAME: string;
34
34
  NEW_PASSWORD: string;
35
+ OR: string;
35
36
  PASSWORD: string;
36
37
  PHONE_NUMBER: string;
37
38
  PREFERRED_USERNAME: string;
@@ -916,6 +916,7 @@ export declare const defaultTexts: {
916
916
  NAME: string;
917
917
  NICKNAME: string;
918
918
  NEW_PASSWORD: string;
919
+ OR: string;
919
920
  PASSWORD: string;
920
921
  PHONE_NUMBER: string;
921
922
  PREFERRED_USERNAME: string;
@@ -44,6 +44,7 @@ export declare const DefaultTexts: {
44
44
  readonly NAME: string;
45
45
  readonly NICKNAME: string;
46
46
  readonly NEW_PASSWORD: string;
47
+ readonly OR: string;
47
48
  readonly PASSWORD: string;
48
49
  readonly PHONE_NUMBER: string;
49
50
  readonly PREFERRED_USERNAME: string;
@@ -1,8 +1,6 @@
1
- import { DesignToken, WebDesignToken } from './tokens/types/designToken';
1
+ import { ShadowValue, WebDesignToken } from './tokens/types/designToken';
2
2
  export declare const CSS_VARIABLE_PREFIX = "amplify";
3
- export declare function cssValue(token: DesignToken<{
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: Record<string | number, any>;
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "5.5.0",
3
+ "version": "5.5.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {