@jasperoosthoek/react-toolbox 0.7.5 → 0.8.0

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/change-log.md CHANGED
@@ -302,4 +302,8 @@
302
302
  - Fix type of `FormOnChange` to handle second argument
303
303
 
304
304
  ##### Version 0.7.5
305
- - Make second input argument of`FormOnChange` optional
305
+ - Make second input argument of `FormOnChange` optional
306
+
307
+ ##### Version 0.8.0
308
+ - Completely remove Redux dependency
309
+ - Replace `Login` hook by simple `LoginPage` component
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export type LoginPageProps = {
3
+ onSubmit: (credentials: {
4
+ email: string;
5
+ password: string;
6
+ }, callback?: () => void) => void;
7
+ callback?: () => void;
8
+ isAuthenticated: boolean;
9
+ label?: string | React.ReactElement;
10
+ onResetPassword: string | (() => void);
11
+ };
12
+ export declare const LoginPage: ({ onSubmit, isAuthenticated, label, onResetPassword, callback, }: LoginPageProps) => React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -16,6 +16,6 @@ export * from './components/errors/ErrorBoundary';
16
16
  export * from './utils/hooks';
17
17
  export * from './utils/timeAndDate';
18
18
  export * from './utils/utils';
19
- export * from './login/Login';
19
+ export * from './components/login/LoginPage';
20
20
  export * from './localization/localization';
21
21
  export * from './localization/LocalizationContext';