@aws-amplify/ui-react 6.5.4 → 6.5.5

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.
@@ -14,7 +14,11 @@ const SignInSignUpTabs = ({ className, hideSignUp, variation, }) => {
14
14
  context.toSignIn,
15
15
  context.toSignUp,
16
16
  ]);
17
- return (React__default.createElement(RouteContainer, { className: className, variation: variation }, hideSignUp ? (React__default.createElement(View, { "data-amplify-router-content": "" }, route === 'signIn' && React__default.createElement(SignIn, null))) : (React__default.createElement(Tabs.Container, { value: route, isLazy: true, onValueChange: () => (route === 'signIn' ? toSignUp() : toSignIn()) },
17
+ return (React__default.createElement(RouteContainer, { className: className, variation: variation }, hideSignUp ? (React__default.createElement(View, { "data-amplify-router-content": "" }, route === 'signIn' && React__default.createElement(SignIn, null))) : (React__default.createElement(Tabs.Container, { value: route, isLazy: true, onValueChange: (newRoute) => {
18
+ if (newRoute !== route) {
19
+ newRoute === 'signIn' ? toSignIn() : toSignUp();
20
+ }
21
+ } },
18
22
  React__default.createElement(Tabs.List, { spacing: "equal", indicatorPosition: "top" },
19
23
  React__default.createElement(Tabs.Item, { value: "signIn" }, getSignInTabText()),
20
24
  React__default.createElement(Tabs.Item, { value: "signUp" }, getSignUpTabText())),
@@ -1,3 +1,3 @@
1
- const VERSION = '6.5.4';
1
+ const VERSION = '6.5.5';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -2521,7 +2521,7 @@ const defaultDeleteUserDisplayText = {
2521
2521
  warningText: 'Deleting your account is not reversible. You will lose access to your account and all data associated with it.',
2522
2522
  };
2523
2523
 
2524
- const VERSION = '6.5.4';
2524
+ const VERSION = '6.5.5';
2525
2525
 
2526
2526
  const logger$2 = ui.getLogger('AccountSettings');
2527
2527
  const getIsDisabled = (formValues, validationError) => {
@@ -3172,7 +3172,11 @@ const SignInSignUpTabs = ({ className, hideSignUp, variation, }) => {
3172
3172
  context.toSignIn,
3173
3173
  context.toSignUp,
3174
3174
  ]);
3175
- return (React__namespace["default"].createElement(RouteContainer, { className: className, variation: variation }, hideSignUp ? (React__namespace["default"].createElement(Field.View, { "data-amplify-router-content": "" }, route === 'signIn' && React__namespace["default"].createElement(SignIn, null))) : (React__namespace["default"].createElement(Tabs.Container, { value: route, isLazy: true, onValueChange: () => (route === 'signIn' ? toSignUp() : toSignIn()) },
3175
+ return (React__namespace["default"].createElement(RouteContainer, { className: className, variation: variation }, hideSignUp ? (React__namespace["default"].createElement(Field.View, { "data-amplify-router-content": "" }, route === 'signIn' && React__namespace["default"].createElement(SignIn, null))) : (React__namespace["default"].createElement(Tabs.Container, { value: route, isLazy: true, onValueChange: (newRoute) => {
3176
+ if (newRoute !== route) {
3177
+ newRoute === 'signIn' ? toSignIn() : toSignUp();
3178
+ }
3179
+ } },
3176
3180
  React__namespace["default"].createElement(Tabs.List, { spacing: "equal", indicatorPosition: "top" },
3177
3181
  React__namespace["default"].createElement(Tabs.Item, { value: "signIn" }, getSignInTabText()),
3178
3182
  React__namespace["default"].createElement(Tabs.Item, { value: "signUp" }, getSignUpTabText())),
@@ -1 +1 @@
1
- export declare const VERSION = "6.5.4";
1
+ export declare const VERSION = "6.5.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "6.5.4",
3
+ "version": "6.5.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -55,8 +55,8 @@
55
55
  "typecheck": "tsc --noEmit"
56
56
  },
57
57
  "dependencies": {
58
- "@aws-amplify/ui": "6.6.4",
59
- "@aws-amplify/ui-react-core": "3.0.28",
58
+ "@aws-amplify/ui": "6.6.5",
59
+ "@aws-amplify/ui-react-core": "3.0.29",
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",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@aws-amplify/core": "*",
70
- "aws-amplify": "^6.6.0",
70
+ "aws-amplify": "^6.6.5",
71
71
  "react": "^16.14.0 || ^17.0 || ^18.0",
72
72
  "react-dom": "^16.14.0 || ^17.0 || ^18.0"
73
73
  },