@aws-amplify/ui 5.4.2 → 5.5.1

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/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);
@@ -2739,10 +2739,16 @@ html[dir=rtl] .amplify-field-group__inner-start {
2739
2739
  border-color: var(--amplify-components-fileuploader-file-border-color);
2740
2740
  border-radius: var(--amplify-components-fileuploader-file-border-radius);
2741
2741
  display: flex;
2742
- flex-direction: row;
2742
+ flex-direction: column;
2743
2743
  padding-inline: var(--amplify-components-fileuploader-file-padding-inline);
2744
2744
  padding-block: var(--amplify-components-fileuploader-file-padding-block);
2745
2745
  align-items: var(--amplify-components-fileuploader-file-align-items);
2746
+ }
2747
+ .amplify-fileuploader__file__wrapper {
2748
+ width: 100%;
2749
+ display: flex;
2750
+ flex-direction: row;
2751
+ align-items: center;
2746
2752
  gap: var(--amplify-components-fileuploader-file-gap);
2747
2753
  }
2748
2754
  .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);
@@ -7,5 +7,6 @@ import { AuthMachineState, FormFields, FormFieldComponents, FormFieldsArray } fr
7
7
  export declare const getDefaultFormFields: (route: FormFieldComponents, state: AuthMachineState) => FormFields;
8
8
  /** Gets default formFields, then merges custom formFields into it */
9
9
  export declare const getFormFields: (route: FormFieldComponents, state: AuthMachineState) => FormFields;
10
+ export declare const removeOrderKeys: (formFields: FormFieldsArray) => FormFieldsArray;
10
11
  /** Calls `getFormFields` above, then sorts it into an indexed array */
11
12
  export declare const getSortedFormFields: (route: FormFieldComponents, state: AuthMachineState) => FormFieldsArray;
@@ -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 {};
@@ -14,4 +14,5 @@ export { idDict } from './id';
14
14
  export { trDict } from './tr';
15
15
  export { ruDict } from './ru';
16
16
  export { heDict } from './he';
17
+ export { uaDict } from './ua';
17
18
  export { defaultTexts } from './defaultTexts';
@@ -0,0 +1,2 @@
1
+ import { AuthenticatorDictionary } from './types';
2
+ export declare const uaDict: AuthenticatorDictionary;
@@ -830,6 +830,58 @@ export declare const heDict: {
830
830
  "Verify Contact": string;
831
831
  Verify: string;
832
832
  };
833
+ export declare const uaDict: {
834
+ [x: string]: string;
835
+ Email: string;
836
+ "Phone Number": string;
837
+ "Account recovery requires verified contact information": string;
838
+ "Back to Sign In": string;
839
+ "Change Password": string;
840
+ Changing: string;
841
+ Code: string;
842
+ "Confirm Password": string;
843
+ "Confirm Sign Up": string;
844
+ "Confirm SMS Code": string;
845
+ "Confirm TOTP Code": string;
846
+ Confirm: string;
847
+ "Confirmation Code": string;
848
+ Confirming: string;
849
+ "Create a new account": string;
850
+ "Create Account": string;
851
+ "Creating Account": string;
852
+ "Dismiss alert": string;
853
+ "Enter your code": string;
854
+ "Enter your email": string;
855
+ "Enter your phone number": string;
856
+ "Enter your username": string;
857
+ "Forgot your password?": string;
858
+ "Hide password": string;
859
+ Loading: string;
860
+ "New password": string;
861
+ Password: string;
862
+ "Resend Code": string;
863
+ "Reset your password": string;
864
+ "Reset your Password": string;
865
+ "Send code": string;
866
+ "Send Code": string;
867
+ Sending: string;
868
+ "Setup TOTP": string;
869
+ "Show password": string;
870
+ "Sign in to your account": string;
871
+ "Sign In with Amazon": string;
872
+ "Sign In with Apple": string;
873
+ "Sign In with Facebook": string;
874
+ "Sign In with Google": string;
875
+ "Sign in": string;
876
+ "Sign In": string;
877
+ "Signing in": string;
878
+ Skip: string;
879
+ Submit: string;
880
+ Submitting: string;
881
+ Username: string;
882
+ "Verify Contact": string;
883
+ Verify: string;
884
+ };
833
885
  export declare const defaultTexts: {
834
886
  BACK_SIGN_IN: string;
835
887
  BIRTHDATE: string;
@@ -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.4.2",
3
+ "version": "5.5.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {