@aws-amplify/ui-react 6.8.0 → 6.8.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.
Files changed (62) hide show
  1. package/dist/esm/PrimitiveCatalog.mjs +13 -28
  2. package/dist/esm/primitives/DropZone/DropZoneChildren.mjs +7 -3
  3. package/dist/esm/version.mjs +1 -1
  4. package/dist/index.js +8 -4
  5. package/dist/internal.js +13 -28
  6. package/dist/types/components/AccountSettings/ChangePassword/ChangePassword.d.ts +2 -2
  7. package/dist/types/components/AccountSettings/DeleteUser/DeleteUser.d.ts +2 -2
  8. package/dist/types/components/Authenticator/Authenticator.d.ts +13 -13
  9. package/dist/types/components/Authenticator/ConfirmSignIn/ConfirmSignIn.d.ts +2 -2
  10. package/dist/types/components/Authenticator/ConfirmSignUp/ConfirmSignUp.d.ts +2 -2
  11. package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignIn.d.ts +2 -2
  12. package/dist/types/components/Authenticator/FederatedSignIn/FederatedSignInButtons/FederatedSignInButton.d.ts +2 -2
  13. package/dist/types/components/Authenticator/ForceNewPassword/ForceNewPassword.d.ts +5 -5
  14. package/dist/types/components/Authenticator/ForgotPassword/ConfirmResetPassword.d.ts +4 -4
  15. package/dist/types/components/Authenticator/ForgotPassword/ForgotPassword.d.ts +4 -4
  16. package/dist/types/components/Authenticator/RouteContainer/RouteContainer.d.ts +2 -2
  17. package/dist/types/components/Authenticator/RouteContainer/types.d.ts +1 -0
  18. package/dist/types/components/Authenticator/Router/Router.d.ts +2 -2
  19. package/dist/types/components/Authenticator/SetupTotp/SetupTotp.d.ts +4 -4
  20. package/dist/types/components/Authenticator/SignIn/SignIn.d.ts +2 -2
  21. package/dist/types/components/Authenticator/SignUp/SignUp.d.ts +3 -3
  22. package/dist/types/components/Authenticator/VerifyUser/ConfirmVerifyUser.d.ts +2 -2
  23. package/dist/types/components/Authenticator/VerifyUser/VerifyUser.d.ts +4 -4
  24. package/dist/types/components/Authenticator/hooks/useCustomComponents/defaultComponents.d.ts +4 -3
  25. package/dist/types/components/Authenticator/shared/ConfirmSignInFooter.d.ts +2 -2
  26. package/dist/types/components/Authenticator/shared/ConfirmationCodeInput.d.ts +2 -2
  27. package/dist/types/components/Authenticator/shared/FormField.d.ts +2 -2
  28. package/dist/types/components/Authenticator/shared/FormFields.d.ts +2 -2
  29. package/dist/types/components/Authenticator/shared/RemoteErrorMessage.d.ts +2 -2
  30. package/dist/types/components/Authenticator/shared/SignInSignUpTabs.d.ts +2 -2
  31. package/dist/types/components/Authenticator/shared/TwoButtonSubmitFooter.d.ts +3 -3
  32. package/dist/types/components/Authenticator/withAuthenticator.d.ts +1 -1
  33. package/dist/types/components/FilterChildren/FilterChildren.d.ts +1 -1
  34. package/dist/types/components/ThemeProvider/ComponentStyle.d.ts +1 -1
  35. package/dist/types/components/ThemeProvider/GlobalStyle.d.ts +1 -1
  36. package/dist/types/components/ThemeProvider/Style.d.ts +1 -1
  37. package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +1 -1
  38. package/dist/types/components/ThemeProvider/ThemeStyle.d.ts +1 -1
  39. package/dist/types/components/shared/ValidationErrors.d.ts +2 -2
  40. package/dist/types/primitives/Alert/AlertIcon.d.ts +2 -2
  41. package/dist/types/primitives/Collection/Collection.d.ts +2 -2
  42. package/dist/types/primitives/DropZone/DropZone.d.ts +4 -4
  43. package/dist/types/primitives/DropZone/DropZoneChildren.d.ts +9 -10
  44. package/dist/types/primitives/DropZone/DropZoneProvider.d.ts +1 -1
  45. package/dist/types/primitives/Icon/context/IconsProvider.d.ts +1 -1
  46. package/dist/types/primitives/Icon/icons/types.d.ts +2 -1
  47. package/dist/types/primitives/Pagination/usePaginationItems.d.ts +2 -2
  48. package/dist/types/primitives/types/autocomplete.d.ts +1 -1
  49. package/dist/types/primitives/types/button.d.ts +1 -0
  50. package/dist/types/primitives/types/collection.d.ts +2 -2
  51. package/dist/types/primitives/types/field.d.ts +1 -0
  52. package/dist/types/primitives/types/fieldGroup.d.ts +1 -0
  53. package/dist/types/primitives/types/image.d.ts +1 -0
  54. package/dist/types/primitives/types/label.d.ts +1 -0
  55. package/dist/types/primitives/types/rating.d.ts +3 -2
  56. package/dist/types/primitives/types/style.d.ts +1 -0
  57. package/dist/types/primitives/types/switchField.d.ts +1 -0
  58. package/dist/types/primitives/types/textArea.d.ts +1 -0
  59. package/dist/types/primitives/types/view.d.ts +3 -3
  60. package/dist/types/primitives/utils/primitiveWithForwardRef.d.ts +1 -2
  61. package/dist/types/version.d.ts +1 -1
  62. package/package.json +6 -5
@@ -1407,9 +1407,6 @@ const PrimitiveCatalog = {
1407
1407
  "role": {
1408
1408
  "type": "string"
1409
1409
  },
1410
- "ref": {
1411
- "type": "string"
1412
- },
1413
1410
  "key": {
1414
1411
  "type": "string"
1415
1412
  }
@@ -3686,9 +3683,6 @@ const PrimitiveCatalog = {
3686
3683
  "role": {
3687
3684
  "type": "string"
3688
3685
  },
3689
- "ref": {
3690
- "type": "string"
3691
- },
3692
3686
  "key": {
3693
3687
  "type": "string"
3694
3688
  }
@@ -3939,9 +3933,6 @@ const PrimitiveCatalog = {
3939
3933
  "role": {
3940
3934
  "type": "string"
3941
3935
  },
3942
- "ref": {
3943
- "type": "string"
3944
- },
3945
3936
  "key": {
3946
3937
  "type": "string"
3947
3938
  }
@@ -9459,8 +9450,9 @@ const PrimitiveCatalog = {
9459
9450
  "defaultValue": {
9460
9451
  "type": "string"
9461
9452
  },
9462
- "enterKeyHint": {
9463
- "type": "string"
9453
+ "placeholder": {
9454
+ "type": "string",
9455
+ "priority": true
9464
9456
  },
9465
9457
  "inputMode": {
9466
9458
  "type": "string"
@@ -9544,6 +9536,9 @@ const PrimitiveCatalog = {
9544
9536
  "hasError": {
9545
9537
  "type": "boolean"
9546
9538
  },
9539
+ "enterKeyHint": {
9540
+ "type": "string"
9541
+ },
9547
9542
  "isReadOnly": {
9548
9543
  "type": "boolean"
9549
9544
  },
@@ -9553,19 +9548,12 @@ const PrimitiveCatalog = {
9553
9548
  "name": {
9554
9549
  "type": "string"
9555
9550
  },
9556
- "placeholder": {
9557
- "type": "string",
9558
- "priority": true
9559
- },
9560
9551
  "countryCodeLabel": {
9561
9552
  "type": "string"
9562
9553
  },
9563
9554
  "countryCodeName": {
9564
9555
  "type": "string"
9565
9556
  },
9566
- "ref": {
9567
- "type": "string"
9568
- },
9569
9557
  "key": {
9570
9558
  "type": "string"
9571
9559
  },
@@ -9608,9 +9596,6 @@ const PrimitiveCatalog = {
9608
9596
  "accessKey": {
9609
9597
  "type": "string"
9610
9598
  },
9611
- "autoCapitalize": {
9612
- "type": "string"
9613
- },
9614
9599
  "autoFocus": {
9615
9600
  "type": "boolean"
9616
9601
  },
@@ -9671,6 +9656,9 @@ const PrimitiveCatalog = {
9671
9656
  "vocab": {
9672
9657
  "type": "string"
9673
9658
  },
9659
+ "autoCapitalize": {
9660
+ "type": "string"
9661
+ },
9674
9662
  "autoCorrect": {
9675
9663
  "type": "string"
9676
9664
  },
@@ -10774,7 +10762,7 @@ const PrimitiveCatalog = {
10774
10762
  "defaultChecked": {
10775
10763
  "type": "boolean"
10776
10764
  },
10777
- "enterKeyHint": {
10765
+ "placeholder": {
10778
10766
  "type": "string"
10779
10767
  },
10780
10768
  "inputMode": {
@@ -10792,14 +10780,14 @@ const PrimitiveCatalog = {
10792
10780
  "hasError": {
10793
10781
  "type": "boolean"
10794
10782
  },
10783
+ "enterKeyHint": {
10784
+ "type": "string"
10785
+ },
10795
10786
  "isReadOnly": {
10796
10787
  "type": "boolean"
10797
10788
  },
10798
10789
  "isRequired": {
10799
10790
  "type": "boolean"
10800
- },
10801
- "placeholder": {
10802
- "type": "string"
10803
10791
  }
10804
10792
  }
10805
10793
  },
@@ -13351,9 +13339,6 @@ const PrimitiveCatalog = {
13351
13339
  "role": {
13352
13340
  "type": "string"
13353
13341
  },
13354
- "ref": {
13355
- "type": "string"
13356
- },
13357
13342
  "key": {
13358
13343
  "type": "string"
13359
13344
  }
@@ -1,10 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { DropZoneContext } from './DropZoneProvider.mjs';
3
3
 
4
+ /**
5
+ * These are syntactic sugar components that make it easy to compose children
6
+ * in DropZone without having to expose the DropZoneContext.
7
+ */
4
8
  /**
5
9
  * This component renders when the user is dragging ONLY accepted files on the DropZone.
6
10
  */
7
- const Accepted = ({ children }) => {
11
+ const Accepted = ({ children, }) => {
8
12
  const dragState = React.useContext(DropZoneContext);
9
13
  if (!dragState) {
10
14
  throw new Error('`DropZone.Accept` must be used inside a DropZone');
@@ -14,7 +18,7 @@ const Accepted = ({ children }) => {
14
18
  /**
15
19
  * This component renders when the user is dragging ANY rejected files on the DropZone.
16
20
  */
17
- const Rejected = ({ children }) => {
21
+ const Rejected = ({ children, }) => {
18
22
  const dragState = React.useContext(DropZoneContext);
19
23
  if (!dragState) {
20
24
  throw new Error('`DropZone.Rejected` must be used inside a DropZone');
@@ -24,7 +28,7 @@ const Rejected = ({ children }) => {
24
28
  /**
25
29
  * This component renders by default when the user is not dragging.
26
30
  */
27
- const Default = ({ children }) => {
31
+ const Default = ({ children, }) => {
28
32
  const dragState = React.useContext(DropZoneContext);
29
33
  if (!dragState) {
30
34
  throw new Error('`DropZone.Default` must be used inside a DropZone');
@@ -1,3 +1,3 @@
1
- const VERSION = '6.8.0';
1
+ const VERSION = '6.8.1';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -1135,10 +1135,14 @@ const Container = ({ className, children, testId, isDisabled, onDragEnter, onDra
1135
1135
  const DropZoneContainer = Field.primitiveWithForwardRef(Container);
1136
1136
  DropZoneContainer.displayName = 'DropZoneContainer';
1137
1137
 
1138
+ /**
1139
+ * These are syntactic sugar components that make it easy to compose children
1140
+ * in DropZone without having to expose the DropZoneContext.
1141
+ */
1138
1142
  /**
1139
1143
  * This component renders when the user is dragging ONLY accepted files on the DropZone.
1140
1144
  */
1141
- const Accepted = ({ children }) => {
1145
+ const Accepted = ({ children, }) => {
1142
1146
  const dragState = React__namespace.useContext(DropZoneContext);
1143
1147
  if (!dragState) {
1144
1148
  throw new Error('`DropZone.Accept` must be used inside a DropZone');
@@ -1148,7 +1152,7 @@ const Accepted = ({ children }) => {
1148
1152
  /**
1149
1153
  * This component renders when the user is dragging ANY rejected files on the DropZone.
1150
1154
  */
1151
- const Rejected = ({ children }) => {
1155
+ const Rejected = ({ children, }) => {
1152
1156
  const dragState = React__namespace.useContext(DropZoneContext);
1153
1157
  if (!dragState) {
1154
1158
  throw new Error('`DropZone.Rejected` must be used inside a DropZone');
@@ -1158,7 +1162,7 @@ const Rejected = ({ children }) => {
1158
1162
  /**
1159
1163
  * This component renders by default when the user is not dragging.
1160
1164
  */
1161
- const Default = ({ children }) => {
1165
+ const Default = ({ children, }) => {
1162
1166
  const dragState = React__namespace.useContext(DropZoneContext);
1163
1167
  if (!dragState) {
1164
1168
  throw new Error('`DropZone.Default` must be used inside a DropZone');
@@ -2483,7 +2487,7 @@ const defaultDeleteUserDisplayText = {
2483
2487
  warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
2484
2488
  };
2485
2489
 
2486
- const VERSION = '6.8.0';
2490
+ const VERSION = '6.8.1';
2487
2491
 
2488
2492
  const logger$2 = ui.getLogger('AccountSettings');
2489
2493
  const getIsDisabled = (formValues, validationError) => {
package/dist/internal.js CHANGED
@@ -1630,9 +1630,6 @@ const PrimitiveCatalog = {
1630
1630
  "role": {
1631
1631
  "type": "string"
1632
1632
  },
1633
- "ref": {
1634
- "type": "string"
1635
- },
1636
1633
  "key": {
1637
1634
  "type": "string"
1638
1635
  }
@@ -3909,9 +3906,6 @@ const PrimitiveCatalog = {
3909
3906
  "role": {
3910
3907
  "type": "string"
3911
3908
  },
3912
- "ref": {
3913
- "type": "string"
3914
- },
3915
3909
  "key": {
3916
3910
  "type": "string"
3917
3911
  }
@@ -4162,9 +4156,6 @@ const PrimitiveCatalog = {
4162
4156
  "role": {
4163
4157
  "type": "string"
4164
4158
  },
4165
- "ref": {
4166
- "type": "string"
4167
- },
4168
4159
  "key": {
4169
4160
  "type": "string"
4170
4161
  }
@@ -9682,8 +9673,9 @@ const PrimitiveCatalog = {
9682
9673
  "defaultValue": {
9683
9674
  "type": "string"
9684
9675
  },
9685
- "enterKeyHint": {
9686
- "type": "string"
9676
+ "placeholder": {
9677
+ "type": "string",
9678
+ "priority": true
9687
9679
  },
9688
9680
  "inputMode": {
9689
9681
  "type": "string"
@@ -9767,6 +9759,9 @@ const PrimitiveCatalog = {
9767
9759
  "hasError": {
9768
9760
  "type": "boolean"
9769
9761
  },
9762
+ "enterKeyHint": {
9763
+ "type": "string"
9764
+ },
9770
9765
  "isReadOnly": {
9771
9766
  "type": "boolean"
9772
9767
  },
@@ -9776,19 +9771,12 @@ const PrimitiveCatalog = {
9776
9771
  "name": {
9777
9772
  "type": "string"
9778
9773
  },
9779
- "placeholder": {
9780
- "type": "string",
9781
- "priority": true
9782
- },
9783
9774
  "countryCodeLabel": {
9784
9775
  "type": "string"
9785
9776
  },
9786
9777
  "countryCodeName": {
9787
9778
  "type": "string"
9788
9779
  },
9789
- "ref": {
9790
- "type": "string"
9791
- },
9792
9780
  "key": {
9793
9781
  "type": "string"
9794
9782
  },
@@ -9831,9 +9819,6 @@ const PrimitiveCatalog = {
9831
9819
  "accessKey": {
9832
9820
  "type": "string"
9833
9821
  },
9834
- "autoCapitalize": {
9835
- "type": "string"
9836
- },
9837
9822
  "autoFocus": {
9838
9823
  "type": "boolean"
9839
9824
  },
@@ -9894,6 +9879,9 @@ const PrimitiveCatalog = {
9894
9879
  "vocab": {
9895
9880
  "type": "string"
9896
9881
  },
9882
+ "autoCapitalize": {
9883
+ "type": "string"
9884
+ },
9897
9885
  "autoCorrect": {
9898
9886
  "type": "string"
9899
9887
  },
@@ -10997,7 +10985,7 @@ const PrimitiveCatalog = {
10997
10985
  "defaultChecked": {
10998
10986
  "type": "boolean"
10999
10987
  },
11000
- "enterKeyHint": {
10988
+ "placeholder": {
11001
10989
  "type": "string"
11002
10990
  },
11003
10991
  "inputMode": {
@@ -11015,14 +11003,14 @@ const PrimitiveCatalog = {
11015
11003
  "hasError": {
11016
11004
  "type": "boolean"
11017
11005
  },
11006
+ "enterKeyHint": {
11007
+ "type": "string"
11008
+ },
11018
11009
  "isReadOnly": {
11019
11010
  "type": "boolean"
11020
11011
  },
11021
11012
  "isRequired": {
11022
11013
  "type": "boolean"
11023
- },
11024
- "placeholder": {
11025
- "type": "string"
11026
11014
  }
11027
11015
  }
11028
11016
  },
@@ -13574,9 +13562,6 @@ const PrimitiveCatalog = {
13574
13562
  "role": {
13575
13563
  "type": "string"
13576
13564
  },
13577
- "ref": {
13578
- "type": "string"
13579
- },
13580
13565
  "key": {
13581
13566
  "type": "string"
13582
13567
  }
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ChangePasswordProps } from './types';
3
- declare function ChangePassword({ components, displayText: overrideDisplayText, onError, onSuccess, validators, }: ChangePasswordProps): React.JSX.Element | null;
3
+ declare function ChangePassword({ components, displayText: overrideDisplayText, onError, onSuccess, validators, }: ChangePasswordProps): JSX.Element | null;
4
4
  declare namespace ChangePassword {
5
5
  var CurrentPasswordField: import("../types").PasswordFieldComponent;
6
6
  var NewPasswordField: import("../types").PasswordFieldComponent;
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DeleteUserProps } from './types';
3
- declare function DeleteUser({ components, displayText: overrideDisplayText, handleDelete, onError, onSuccess, }: DeleteUserProps): React.JSX.Element | null;
3
+ declare function DeleteUser({ components, displayText: overrideDisplayText, handleDelete, onError, onSuccess, }: DeleteUserProps): JSX.Element | null;
4
4
  declare namespace DeleteUser {
5
5
  var ErrorMessage: import("../types").ErrorMessageComponent;
6
6
  var DeleteButton: import("../types").ButtonComponent;
@@ -9,7 +9,7 @@ export type AuthenticatorProps = Partial<Omit<AuthenticatorMachineOptions, 'form
9
9
  children: React.ReactNode | ((props: {
10
10
  signOut?: SignOut;
11
11
  user?: AuthUser;
12
- }) => React.JSX.Element);
12
+ }) => JSX.Element);
13
13
  formFields: {
14
14
  [key in FormFieldComponents]?: {
15
15
  [field_name: string]: ReactFormFieldOptions;
@@ -28,30 +28,30 @@ interface ReactFormFieldOptions extends FormFieldOptions {
28
28
  /** Desired HTML maxLength type */
29
29
  maxLength?: number;
30
30
  }
31
- export declare function AuthenticatorInternal({ children, className, components: customComponents, formFields, hideSignUp, initialState, loginMechanisms, passwordSettings, signUpAttributes, services, socialProviders, variation, }: AuthenticatorProps): React.JSX.Element;
31
+ export declare function AuthenticatorInternal({ children, className, components: customComponents, formFields, hideSignUp, initialState, loginMechanisms, passwordSettings, signUpAttributes, services, socialProviders, variation, }: AuthenticatorProps): JSX.Element;
32
32
  /**
33
33
  * [📖 Docs](https://ui.docs.amplify.aws/react/connected-components/authenticator)
34
34
  */
35
- export declare function Authenticator(props: AuthenticatorProps): React.JSX.Element;
35
+ export declare function Authenticator(props: AuthenticatorProps): JSX.Element;
36
36
  export declare namespace Authenticator {
37
37
  var Provider: typeof import("@aws-amplify/ui-react-core").AuthenticatorProvider;
38
38
  var ForgotPassword: {
39
- ({ className, variation, }: import("./RouteContainer").RouteProps): React.JSX.Element;
40
- Header(): React.JSX.Element;
41
- Footer(): React.JSX.Element;
39
+ ({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
40
+ Header(): JSX.Element;
41
+ Footer(): JSX.Element;
42
42
  };
43
43
  var SetupTotp: {
44
- ({ className, variation, }: import("./RouteContainer").RouteProps): React.JSX.Element;
45
- Header(): React.JSX.Element;
46
- Footer(): React.JSX.Element;
44
+ ({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
45
+ Header(): JSX.Element;
46
+ Footer(): JSX.Element;
47
47
  };
48
48
  var SignIn: typeof import("./SignIn").SignIn;
49
49
  var SignUp: typeof import("./SignUp").SignUp;
50
50
  var ForceNewPassword: {
51
- ({ className, variation, }: import("./RouteContainer").RouteProps): React.JSX.Element;
52
- FormFields(): React.JSX.Element | null;
53
- Header(): React.JSX.Element | null;
54
- Footer(): React.JSX.Element | null;
51
+ ({ className, variation, }: import("./RouteContainer").RouteProps): JSX.Element;
52
+ FormFields(): JSX.Element | null;
53
+ Header(): JSX.Element | null;
54
+ Footer(): JSX.Element | null;
55
55
  };
56
56
  }
57
57
  export {};
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const ConfirmSignIn: {
4
- ({ className, variation, }: RouteProps): React.JSX.Element;
4
+ ({ className, variation, }: RouteProps): JSX.Element;
5
5
  Header: typeof Header;
6
- Footer(): React.JSX.Element;
6
+ Footer(): JSX.Element;
7
7
  };
8
8
  declare function Header(): React.JSX.Element;
9
9
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RouteProps } from '../RouteContainer';
3
- export declare function ConfirmSignUp({ className, variation, }: RouteProps): React.JSX.Element;
3
+ export declare function ConfirmSignUp({ className, variation, }: RouteProps): JSX.Element;
4
4
  export declare namespace ConfirmSignUp {
5
5
  var Header: () => React.JSX.Element;
6
- var Footer: () => React.JSX.Element;
6
+ var Footer: () => JSX.Element;
7
7
  }
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare function FederatedSignIn(): React.JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare function FederatedSignIn(): JSX.Element;
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { FederatedIdentityProviders, SocialProvider } from '@aws-amplify/ui';
3
3
  export interface FederatedSignInButtonProps {
4
4
  icon?: SocialProvider;
5
5
  provider: FederatedIdentityProviders;
6
6
  text: string;
7
7
  }
8
- export declare const FederatedSignInButton: (props: FederatedSignInButtonProps) => React.JSX.Element;
8
+ export declare const FederatedSignInButton: (props: FederatedSignInButtonProps) => JSX.Element;
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const ForceNewPassword: {
4
- ({ className, variation, }: RouteProps): React.JSX.Element;
5
- FormFields(): React.JSX.Element | null;
6
- Header(): React.JSX.Element | null;
7
- Footer(): React.JSX.Element | null;
4
+ ({ className, variation, }: RouteProps): JSX.Element;
5
+ FormFields(): JSX.Element | null;
6
+ Header(): JSX.Element | null;
7
+ Footer(): JSX.Element | null;
8
8
  };
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const ConfirmResetPassword: {
4
- ({ className, variation, }: RouteProps): React.JSX.Element;
5
- Header(): React.JSX.Element;
6
- Footer(): React.JSX.Element;
4
+ ({ className, variation, }: RouteProps): JSX.Element;
5
+ Header(): JSX.Element;
6
+ Footer(): JSX.Element;
7
7
  };
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const ForgotPassword: {
4
- ({ className, variation, }: RouteProps): React.JSX.Element;
5
- Header(): React.JSX.Element;
6
- Footer(): React.JSX.Element;
4
+ ({ className, variation, }: RouteProps): JSX.Element;
5
+ Header(): JSX.Element;
6
+ Footer(): JSX.Element;
7
7
  };
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouteContainerProps } from './types';
3
- export declare function RouteContainer({ children, className, variation, }: RouteContainerProps): React.JSX.Element;
3
+ export declare function RouteContainer({ children, className, variation, }: RouteContainerProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type RouteProps = {
2
3
  className: string;
3
4
  variation: 'default' | 'modal';
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouterProps } from './types';
3
- export declare function Router({ className, hideSignUp, variation, }: RouterProps): React.JSX.Element;
3
+ export declare function Router({ className, hideSignUp, variation, }: RouterProps): JSX.Element;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const SetupTotp: {
4
- ({ className, variation, }: RouteProps): React.JSX.Element;
5
- Header(): React.JSX.Element;
6
- Footer(): React.JSX.Element;
4
+ ({ className, variation, }: RouteProps): JSX.Element;
5
+ Header(): JSX.Element;
6
+ Footer(): JSX.Element;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare function SignIn(): React.JSX.Element;
2
+ export declare function SignIn(): JSX.Element;
3
3
  export declare namespace SignIn {
4
4
  var Footer: () => React.JSX.Element;
5
- var Header: () => React.JSX.Element;
5
+ var Header: () => JSX.Element;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- export declare function SignUp(): React.JSX.Element;
2
+ export declare function SignUp(): JSX.Element;
3
3
  export declare namespace SignUp {
4
- var Header: () => React.JSX.Element;
4
+ var Header: () => JSX.Element;
5
5
  var FormFields: () => React.JSX.Element;
6
- var Footer: () => React.JSX.Element;
6
+ var Footer: () => JSX.Element;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const ConfirmVerifyUser: {
4
- ({ className, variation, }: RouteProps): React.JSX.Element;
4
+ ({ className, variation, }: RouteProps): JSX.Element;
5
5
  Header(): React.JSX.Element;
6
- Footer(): React.JSX.Element | null;
6
+ Footer(): JSX.Element | null;
7
7
  };
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const VerifyUser: {
4
- ({ className, variation, }: RouteProps): React.JSX.Element;
5
- Header(): React.JSX.Element;
6
- Footer(): React.JSX.Element;
4
+ ({ className, variation, }: RouteProps): JSX.Element;
5
+ Header(): JSX.Element;
6
+ Footer(): JSX.Element;
7
7
  };
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  interface Components {
2
- Footer?: () => React.JSX.Element | null;
3
- FormFields?: () => React.JSX.Element | null;
4
- Header?: () => React.JSX.Element | null;
3
+ Footer?: () => JSX.Element | null;
4
+ FormFields?: () => JSX.Element | null;
5
+ Header?: () => JSX.Element | null;
5
6
  }
6
7
  export interface DefaultComponents extends Omit<Components, 'FormFields'> {
7
8
  ConfirmSignIn?: Omit<Components, 'FormFields'>;
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const ConfirmSignInFooter: () => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const ConfirmSignInFooter: () => JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  export interface ConfirmationCodeInputProps {
3
3
  errorText?: string;
4
4
  labelHidden?: boolean;
@@ -7,4 +7,4 @@ export interface ConfirmationCodeInputProps {
7
7
  required?: boolean;
8
8
  type?: string;
9
9
  }
10
- export declare const ConfirmationCodeInput: (props: ConfirmationCodeInputProps) => React.JSX.Element;
10
+ export declare const ConfirmationCodeInput: (props: ConfirmationCodeInputProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { FormFieldOptions } from '@aws-amplify/ui';
3
3
  export interface FormFieldProps extends Omit<FormFieldOptions, 'label'> {
4
4
  label: string;
5
5
  name: string;
6
6
  }
7
- export declare function FormField({ autocomplete: autoComplete, dialCode, name, type, ...props }: FormFieldProps): React.JSX.Element;
7
+ export declare function FormField({ autocomplete: autoComplete, dialCode, name, type, ...props }: FormFieldProps): JSX.Element;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function FormFields(): React.JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare function FormFields(): JSX.Element;
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const RemoteErrorMessage: () => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const RemoteErrorMessage: () => JSX.Element;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { RouteProps } from '../RouteContainer';
3
3
  export declare const SignInSignUpTabs: ({ className, hideSignUp, variation, }: {
4
4
  hideSignUp: boolean;
5
- } & RouteProps) => React.JSX.Element;
5
+ } & RouteProps) => JSX.Element;
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { AuthEventTypes } from '@aws-amplify/ui';
3
3
  export interface TwoButtonSubmitFooterProps {
4
4
  cancelButtonSendType: AuthEventTypes;
5
5
  cancelButtonText: string;
6
- submitButtonText?: React.JSX.Element;
6
+ submitButtonText?: JSX.Element;
7
7
  }
8
- export declare const TwoButtonSubmitFooter: (props: TwoButtonSubmitFooterProps) => React.JSX.Element;
8
+ export declare const TwoButtonSubmitFooter: (props: TwoButtonSubmitFooterProps) => JSX.Element;
@@ -9,4 +9,4 @@ export interface WithAuthenticatorProps {
9
9
  /**
10
10
  * [📖 Docs](https://ui.docs.amplify.aws/react/connected-components/authenticator)
11
11
  */
12
- export declare function withAuthenticator<Props = {}>(Component: React.ComponentType<Props & WithAuthenticatorProps>, options?: WithAuthenticatorOptions): (props: Props) => React.JSX.Element;
12
+ export declare function withAuthenticator<Props = {}>(Component: React.ComponentType<Props & WithAuthenticatorProps>, options?: WithAuthenticatorOptions): (props: Props) => JSX.Element;
@@ -7,4 +7,4 @@ export interface FilterChildrenProps {
7
7
  allowedFilters?: string[];
8
8
  targetFilter?: string;
9
9
  }
10
- export declare const FilterChildren: ({ allowedFilters, children, targetFilter, }: FilterChildrenProps) => React.JSX.Element | null;
10
+ export declare const FilterChildren: ({ allowedFilters, children, targetFilter, }: FilterChildrenProps) => JSX.Element | null;
@@ -12,7 +12,7 @@ interface ComponentStyleProps extends React.ComponentProps<'style'> {
12
12
  componentThemes: BaseComponentTheme[];
13
13
  }
14
14
  export declare const ComponentStyle: {
15
- ({ theme, componentThemes, ...rest }: ComponentStyleProps): React.JSX.Element | null;
15
+ ({ theme, componentThemes, ...rest }: ComponentStyleProps): JSX.Element | null;
16
16
  displayName: string;
17
17
  };
18
18
  export {};
@@ -10,7 +10,7 @@ interface GlobalStyleProps extends React.ComponentProps<'style'> {
10
10
  styles: Parameters<typeof createGlobalCSS>[0];
11
11
  }
12
12
  export declare const GlobalStyle: {
13
- ({ styles, ...rest }: GlobalStyleProps): React.JSX.Element | null;
13
+ ({ styles, ...rest }: GlobalStyleProps): JSX.Element | null;
14
14
  displayName: string;
15
15
  };
16
16
  export {};
@@ -3,7 +3,7 @@ interface StyleProps extends React.ComponentProps<'style'> {
3
3
  cssText?: string;
4
4
  }
5
5
  export declare const Style: {
6
- ({ cssText, ...rest }: StyleProps): React.JSX.Element | null;
6
+ ({ cssText, ...rest }: StyleProps): JSX.Element | null;
7
7
  displayName: string;
8
8
  };
9
9
  export {};
@@ -27,5 +27,5 @@ interface ThemeProviderProps {
27
27
  /**
28
28
  * [📖 Docs](https://ui.docs.amplify.aws/react/theming)
29
29
  */
30
- export declare function ThemeProvider({ children, colorMode, direction, nonce, theme, }: ThemeProviderProps): React.JSX.Element;
30
+ export declare function ThemeProvider({ children, colorMode, direction, nonce, theme, }: ThemeProviderProps): JSX.Element;
31
31
  export {};
@@ -10,7 +10,7 @@ interface ThemeStyleProps extends React.ComponentProps<'style'> {
10
10
  theme?: WebTheme;
11
11
  }
12
12
  export declare const ThemeStyle: {
13
- ({ theme, ...rest }: ThemeStyleProps): React.JSX.Element | null;
13
+ ({ theme, ...rest }: ThemeStyleProps): JSX.Element | null;
14
14
  displayName: string;
15
15
  };
16
16
  export {};
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  export interface ValidationErrorsProps {
3
3
  errors: string[];
4
4
  id?: string;
5
5
  dataAttr?: string;
6
6
  }
7
- export declare const ValidationErrors: ({ errors, id, dataAttr, }: ValidationErrorsProps) => React.JSX.Element | null;
7
+ export declare const ValidationErrors: ({ errors, id, dataAttr, }: ValidationErrorsProps) => JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { AlertVariations, ViewProps } from '../types';
3
3
  interface AlertIconProps extends Pick<ViewProps, 'role' | 'ariaLabel'> {
4
4
  variation?: AlertVariations;
@@ -8,7 +8,7 @@ interface AlertIconProps extends Pick<ViewProps, 'role' | 'ariaLabel'> {
8
8
  * @internal For internal Amplify UI use only. May be removed in a future release.
9
9
  */
10
10
  export declare const AlertIcon: {
11
- ({ variation, ariaHidden, ariaLabel, role, }: AlertIconProps): React.JSX.Element | null;
11
+ ({ variation, ariaHidden, ariaLabel, role, }: AlertIconProps): JSX.Element | null;
12
12
  displayName: string;
13
13
  };
14
14
  export {};
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { BaseCollectionProps, ElementType } from '../types';
3
3
  /**
4
4
  * [📖 Docs](https://ui.docs.amplify.aws/react/components/collection)
5
5
  */
6
6
  export declare const Collection: {
7
- <Item, Element_1 extends ElementType>({ className, isSearchable, isPaginated, items, itemsPerPage, searchFilter, searchLabel, searchNoResultsFound, searchPlaceholder, type, testId, ...rest }: BaseCollectionProps<Item, Element_1>): React.JSX.Element;
7
+ <Item, Element_1 extends ElementType>({ className, isSearchable, isPaginated, items, itemsPerPage, searchFilter, searchLabel, searchNoResultsFound, searchPlaceholder, type, testId, ...rest }: BaseCollectionProps<Item, Element_1>): JSX.Element;
8
8
  displayName: string;
9
9
  };
@@ -1,10 +1,10 @@
1
1
  import { ForwardRefPrimitive } from '../types';
2
2
  import { BaseDropZoneProps } from './types';
3
- import { AcceptedType, DefaultType, RejectedType } from './DropZoneChildren';
3
+ import { Accepted, Default, Rejected } from './DropZoneChildren';
4
4
  type DropZoneType = ForwardRefPrimitive<BaseDropZoneProps, 'div'> & {
5
- Accepted: AcceptedType;
6
- Rejected: RejectedType;
7
- Default: DefaultType;
5
+ Accepted: typeof Accepted;
6
+ Rejected: typeof Rejected;
7
+ Default: typeof Default;
8
8
  };
9
9
  /**
10
10
  * [📖 Docs](https://ui.docs.amplify.aws/react/components/dropzone)
@@ -1,26 +1,25 @@
1
1
  import * as React from 'react';
2
+ import { Primitive } from '../types';
2
3
  /**
3
4
  * These are syntactic sugar components that make it easy to compose children
4
5
  * in DropZone without having to expose the DropZoneContext.
5
6
  */
6
- export type AcceptedType = (props: {
7
- children?: React.ReactNode;
8
- }) => React.JSX.Element | null;
9
7
  /**
10
8
  * This component renders when the user is dragging ONLY accepted files on the DropZone.
11
9
  */
12
- export declare const Accepted: AcceptedType;
13
- export type RejectedType = (props: {
10
+ declare const Accepted: Primitive<{
14
11
  children?: React.ReactNode;
15
- }) => React.JSX.Element | null;
12
+ }, 'div'>;
16
13
  /**
17
14
  * This component renders when the user is dragging ANY rejected files on the DropZone.
18
15
  */
19
- export declare const Rejected: RejectedType;
20
- export type DefaultType = (props: {
16
+ declare const Rejected: Primitive<{
21
17
  children?: React.ReactNode;
22
- }) => React.JSX.Element | null;
18
+ }, 'div'>;
23
19
  /**
24
20
  * This component renders by default when the user is not dragging.
25
21
  */
26
- export declare const Default: DefaultType;
22
+ declare const Default: Primitive<{
23
+ children?: React.ReactNode;
24
+ }, 'div'>;
25
+ export { Accepted, Rejected, Default };
@@ -4,5 +4,5 @@ declare const DropZoneContext: React.Context<DragState>;
4
4
  declare const DropZoneProvider: ({ value, children, }: {
5
5
  value: DragState;
6
6
  children?: React.ReactNode;
7
- }) => React.JSX.Element;
7
+ }) => JSX.Element;
8
8
  export { DropZoneProvider, DropZoneContext };
@@ -5,4 +5,4 @@ interface IconProviderProps {
5
5
  icons?: IconsContextInterface;
6
6
  }
7
7
  export { IconsContextInterface };
8
- export declare function IconsProvider({ children, icons, }: IconProviderProps): React.JSX.Element;
8
+ export declare function IconsProvider({ children, icons, }: IconProviderProps): JSX.Element;
@@ -1,4 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { ViewProps } from '../../types';
2
3
  export type InternalIcon = (props: ViewProps & {
3
4
  size?: string | number;
4
- }) => React.JSX.Element;
5
+ }) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  interface UsePaginationItemsProps {
3
3
  currentPage: number;
4
4
  totalPages: number;
@@ -22,5 +22,5 @@ interface UsePaginationItemsProps {
22
22
  * @param onChange callback function triggered every time the page changes
23
23
  * @returns an array of pagination items
24
24
  */
25
- export declare const usePaginationItems: ({ currentPage, totalPages, hasMorePages, siblingCount, currentPageLabel, pageLabel, previousLabel, nextLabel, onNext, onPrevious, onChange, }: UsePaginationItemsProps) => React.JSX.Element[];
25
+ export declare const usePaginationItems: ({ currentPage, totalPages, hasMorePages, siblingCount, currentPageLabel, pageLabel, previousLabel, nextLabel, onNext, onPrevious, onChange, }: UsePaginationItemsProps) => JSX.Element[];
26
26
  export {};
@@ -47,7 +47,7 @@ export interface BaseAutocompleteMenuProps extends BaseViewProps {
47
47
  * @description
48
48
  * A list of Option JSX elements
49
49
  */
50
- children: React.JSX.Element[];
50
+ children: JSX.Element[];
51
51
  /**
52
52
  * @description
53
53
  * This is a slot to label a list of options
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Sizes } from './base';
2
3
  import { ElementType, PrimitiveProps, BaseViewProps } from './view';
3
4
  import { FlexContainerStyleProps } from './flex';
@@ -56,7 +56,7 @@ interface CollectionChildren<Item> {
56
56
  * The component to be repeated
57
57
  * Same interface as Array.prototype.map
58
58
  */
59
- children: (item: Item, index: number) => React.JSX.Element;
59
+ children: (item: Item, index: number) => JSX.Element;
60
60
  }
61
61
  export interface CollectionBaseProps<Item> extends CollectionChildren<Item> {
62
62
  /**
@@ -69,7 +69,7 @@ export type ListCollectionProps<Item> = Omit<BaseFlexProps, 'children'> & Collec
69
69
  export type GridCollectionProps<Item> = Omit<BaseGridProps, 'children'> & CollectionBaseProps<Item>;
70
70
  /**
71
71
  * Omits `React.ReactNode` as children to prevent intersection type for `children` of
72
- * `React.ReactNode & (item: Item, index: number) => React.JSX.Element`
72
+ * `React.ReactNode & (item: Item, index: number) => JSX.Element`
73
73
  * and replaces with `CollectionChildren`
74
74
  */
75
75
  type ReplaceChildren<T, Item> = Omit<T, 'children'> & CollectionChildren<Item>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BaseFieldGroupIconButtonProps } from './fieldGroupIcon';
2
3
  import { BaseInputProps } from './input';
3
4
  import { BaseTextProps } from './text';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BaseFlexProps } from './flex';
2
3
  import { FieldVariations } from './field';
3
4
  import { ElementType, PrimitiveProps } from './view';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Property } from 'csstype';
2
3
  import { ElementType, PrimitiveProps, BaseViewProps } from './view';
3
4
  import { ResponsiveStyle } from './style';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ElementType, PrimitiveProps, BaseViewProps } from './view';
2
3
  /** @deprecated For internal use only */
3
4
  export interface BaseLabelProps extends BaseViewProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Property } from 'csstype';
2
3
  import { BaseFlexProps } from './flex';
3
4
  import { Sizes } from './base';
@@ -17,7 +18,7 @@ export interface RatingOptions {
17
18
  * override the empty icon an will create a rating component that uses
18
19
  * different icons for filled and empty icons.
19
20
  */
20
- emptyIcon?: React.JSX.Element;
21
+ emptyIcon?: JSX.Element;
21
22
  /**
22
23
  * @description
23
24
  * The CSS color to use on the filled rating icon
@@ -31,7 +32,7 @@ export interface RatingOptions {
31
32
  * with the emptyIcon prop
32
33
  * Default is <IconStar />
33
34
  */
34
- icon?: React.JSX.Element;
35
+ icon?: JSX.Element;
35
36
  /**
36
37
  * @description
37
38
  * The max rating integer value
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Property } from 'csstype';
2
3
  import { WebDesignToken } from '@aws-amplify/ui';
3
4
  import type { BoxShadowKeys, BorderWidthKeys, ColorKeys, FontFamilyKeys, FontSizeKeys, FontWeightKeys, LineHeightKeys, OpacityKeys, RadiiKeys, SpaceKeys, TransformKeys } from './theme';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Property } from 'csstype';
2
3
  import { Sizes } from './base';
3
4
  import { BaseStyleProps, StyleToken } from './style';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Property } from 'csstype';
2
3
  import { Sizes } from './base';
3
4
  import { FieldVariations } from './field';
@@ -28,7 +28,7 @@ export type PrimitiveProps<Props extends BaseViewProps, Element extends ElementT
28
28
  * to allow usage in React 16
29
29
  */
30
30
  interface JSElementForwardRefRenderFunction<T, P = {}> {
31
- (props: P, ref: React.ForwardedRef<T>): React.JSX.Element | null;
31
+ (props: P, ref: React.ForwardedRef<T>): JSX.Element | null;
32
32
  displayName?: string | undefined;
33
33
  /**
34
34
  * defaultProps are not supported on render functions
@@ -50,11 +50,11 @@ interface JSXElementForwardRefExoticComponent<P = {}> {
50
50
  (props: P): React.ReactElement | null;
51
51
  defaultProps?: Partial<P> | undefined;
52
52
  displayName?: string | undefined;
53
- propTypes?: any;
53
+ propTypes?: React.WeakValidationMap<P> | undefined;
54
54
  readonly $$typeof: symbol;
55
55
  }
56
56
  export interface ForwardRefPrimitive<Props extends BaseViewProps, DefaultElement extends ElementType> extends JSXElementForwardRefExoticComponent<PrimitiveProps<Props, DefaultElement>> {
57
- <Element extends ElementType = DefaultElement>(props: PrimitiveProps<Props, Element>): React.ReactElement<Props, Element> | null;
57
+ <Element extends ElementType = DefaultElement>(props: PrimitiveProps<Props, Element>): React.ReactElement | null;
58
58
  }
59
59
  /** @deprecated For internal use only */
60
60
  export interface BaseViewProps extends BaseComponentProps, BaseStyleProps, AriaProps {
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { BaseViewProps, ElementType, ForwardRefPrimitive, Primitive } from '../types';
3
2
  /**
4
3
  * Updates the return type for primitives wrapped in `React.forwardRef` to
@@ -9,4 +8,4 @@ import { BaseViewProps, ElementType, ForwardRefPrimitive, Primitive } from '../t
9
8
  * @param primitive UI Primitive to be wrapped with `React.forwardRef`
10
9
  * @returns ForwaredRef wrapped UI Primitive
11
10
  */
12
- export declare const primitiveWithForwardRef: <P extends BaseViewProps, E extends ElementType>(primitive: Primitive<React.PropsWithoutRef<P>, E>) => ForwardRefPrimitive<P, E>;
11
+ export declare const primitiveWithForwardRef: <P extends BaseViewProps, E extends ElementType>(primitive: Primitive<P, E>) => ForwardRefPrimitive<P, E>;
@@ -1 +1 @@
1
- export declare const VERSION = "6.8.0";
1
+ export declare const VERSION = "6.8.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "6.8.0",
3
+ "version": "6.8.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@aws-amplify/ui": "6.7.2",
59
- "@aws-amplify/ui-react-core": "3.2.0",
59
+ "@aws-amplify/ui-react-core": "3.2.1",
60
60
  "@radix-ui/react-direction": "1.0.0",
61
61
  "@radix-ui/react-dropdown-menu": "1.0.0",
62
62
  "@radix-ui/react-slider": "1.0.0",
@@ -68,8 +68,8 @@
68
68
  "peerDependencies": {
69
69
  "@aws-amplify/core": "*",
70
70
  "aws-amplify": "^6.9.0",
71
- "react": "^16.14.0 || ^17.0 || ^18.0 || ^19",
72
- "react-dom": "^16.14 || ^17 || ^18 || ^19"
71
+ "react": "^16.14.0 || ^17.0 || ^18.0",
72
+ "react-dom": "^16.14.0 || ^17.0 || ^18.0"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "aws-amplify": {
@@ -79,7 +79,8 @@
79
79
  "devDependencies": {
80
80
  "@svgr/core": "^5.5.0",
81
81
  "@types/qrcode": "^1.4.2",
82
- "jest-matchmedia-mock": "^1.1.0"
82
+ "jest-matchmedia-mock": "^1.1.0",
83
+ "react-router-dom": "^6.2.1"
83
84
  },
84
85
  "sideEffects": [
85
86
  "dist/**/*.css"