@applica-software-guru/react-admin 1.3.165 → 1.3.167
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/ApplicaAdmin.d.ts +43 -36
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/AuthWrapper.d.ts +20 -17
- package/dist/components/AuthWrapper.d.ts.map +1 -1
- package/dist/components/Layout/Navigation/NavGroup.d.ts.map +1 -1
- package/dist/components/MainIcon.d.ts +4 -9
- package/dist/components/MainIcon.d.ts.map +1 -1
- package/dist/components/ra-pages/ActivatePage.d.ts +1 -1
- package/dist/components/ra-pages/ActivatePage.d.ts.map +1 -1
- package/dist/components/ra-pages/LoginPage.d.ts +11 -11
- package/dist/components/ra-pages/LoginPage.d.ts.map +1 -1
- package/dist/components/ra-pages/RecoverPage.d.ts +1 -1
- package/dist/components/ra-pages/RecoverPage.d.ts.map +1 -1
- package/dist/components/ra-pages/RegisterPage.d.ts +1 -1
- package/dist/components/ra-pages/RegisterPage.d.ts.map +1 -1
- package/dist/components/ra-pages/types.d.ts +8 -5
- package/dist/components/ra-pages/types.d.ts.map +1 -1
- package/dist/hooks/useLocalStorage.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +62 -62
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +5028 -5032
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +62 -62
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/ApplicaAdmin.tsx +46 -36
- package/src/components/{AuthWrapper.jsx → AuthWrapper.tsx} +13 -4
- package/src/components/Layout/Navigation/NavGroup.jsx +1 -2
- package/src/components/{MainIcon.jsx → MainIcon.tsx} +4 -8
- package/src/components/ra-pages/ActivatePage.tsx +2 -2
- package/src/components/ra-pages/LoginPage.tsx +12 -12
- package/src/components/ra-pages/RecoverPage.tsx +2 -2
- package/src/components/ra-pages/RegisterPage.tsx +2 -2
- package/src/components/ra-pages/types.ts +8 -5
- package/src/hooks/useLocalStorage.tsx +25 -28
package/dist/ApplicaAdmin.d.ts
CHANGED
|
@@ -6,98 +6,98 @@ import { QueryClient } from 'react-query';
|
|
|
6
6
|
import { IErrorEventHandler } from './dev/ErrorEventHandler';
|
|
7
7
|
export type ApplicaAdminProps = AdminProps & {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
9
|
+
* Optionally, a custom theme to use in the application.
|
|
10
|
+
* @remarks This theme is based on Mantis Theme (https://mantisdashboard.io/)
|
|
11
11
|
*
|
|
12
12
|
* @see https://marmelab.com/react-admin/Theming.html
|
|
13
13
|
* @see https://material-ui.com/customization/theming/
|
|
14
14
|
*/
|
|
15
15
|
theme: any;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Optionally, a custom theme configuration to use in the application.
|
|
18
|
+
* Have fun with caution to modify theme configuration variables, if you make a mess Marco Colucci could use the fire extinguisher (I said everything).
|
|
19
19
|
*/
|
|
20
20
|
themeConfig: ThemeConfig;
|
|
21
21
|
/**
|
|
22
|
-
* URL
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* The URL of the API to use in the application.
|
|
23
|
+
* Although a default dataProvider and authProvider are already defined, it is possible that the app
|
|
24
|
+
* uses the specified apiUrl for further operations (e.g. handling notifications).
|
|
25
25
|
*/
|
|
26
26
|
apiUrl: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* The default language to use in the application (default: en).
|
|
29
29
|
*/
|
|
30
30
|
defaultLocale: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* If set to true, the application works in development mode.
|
|
33
|
+
* Development mode is useful for testing and debugging and performs activities that are not
|
|
34
|
+
* recommended in production (e.g. capturing and forwarding non-localized messages).
|
|
35
35
|
*/
|
|
36
36
|
development: boolean;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* The main logo to display in the sidebar when the menu is expanded laterally.
|
|
39
39
|
*/
|
|
40
40
|
logoMain: any;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* The icon to display in the sidebar when the menu is collapsed laterally.
|
|
43
43
|
*/
|
|
44
44
|
logoIcon: any;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Configured menu to display in the application.
|
|
47
47
|
*/
|
|
48
48
|
menu: MenuProps;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* The name of the application to display in the header.
|
|
51
51
|
*/
|
|
52
52
|
name: string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Text to display in the footer. Default: '© Applica Software Guru for'.
|
|
55
55
|
*/
|
|
56
56
|
copy: string;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Application version to display in the footer.
|
|
59
59
|
*/
|
|
60
60
|
version: string;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* The data provider to use in the application.
|
|
63
63
|
*/
|
|
64
64
|
dataProvider: DataProvider;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* The auth provider to use in the application.
|
|
67
67
|
*/
|
|
68
68
|
authProvider: AuthProvider;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
70
|
+
* Indicates the handler to use for error management.
|
|
71
|
+
* By default, a PUT /api/ui/error call is made with the error message "error".
|
|
72
|
+
* You can implement your own handler to manage errors differently.
|
|
73
73
|
*/
|
|
74
74
|
errorHandler?: IErrorEventHandler | undefined;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Indicates the component to display in case of error.
|
|
77
77
|
*/
|
|
78
78
|
error: React.Component;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Indicates the name of the REST resource to use for notification management.
|
|
81
81
|
* @default "entities/notification"
|
|
82
82
|
* @example
|
|
83
|
-
* // In
|
|
83
|
+
* // In this case, notifications will be managed through the "entities/notification" resource
|
|
84
84
|
* <ApplicaAdmin notification="entities/notification" />
|
|
85
85
|
*/
|
|
86
86
|
notification: string;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
88
|
+
* Indicates whether notifications should be disabled.
|
|
89
|
+
* If notifications are enabled, an icon will automatically appear in the top right of the header.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* <ApplicaAdmin enableNotification />
|
|
93
93
|
*/
|
|
94
94
|
enableNotification: boolean;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* Indicates whether the registration screen should be disabled.
|
|
97
|
+
* If enabled, it is necessary to register a page, in the routes, that points to /register
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
|
-
* //
|
|
100
|
+
* // Basic page made by Applica
|
|
101
101
|
* import { RegisterPage } from '.';
|
|
102
102
|
* <CustomRoutes noLayout>
|
|
103
103
|
* <Route path="/register" component={RegisterPage} />
|
|
@@ -105,11 +105,11 @@ export type ApplicaAdminProps = AdminProps & {
|
|
|
105
105
|
*/
|
|
106
106
|
enableRegistration: boolean;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
108
|
+
* Indicates whether the password recovery screen should be disabled.
|
|
109
|
+
* If enabled, it is necessary to register a page, in the routes, that points to /recover
|
|
110
110
|
*
|
|
111
111
|
* @example
|
|
112
|
-
* //
|
|
112
|
+
* // Basic page made by Applica
|
|
113
113
|
* import { RecoverPage } from '.';
|
|
114
114
|
* <CustomRoutes noLayout>
|
|
115
115
|
* <Route path="/recover" component={RecoverPage} />
|
|
@@ -117,17 +117,24 @@ export type ApplicaAdminProps = AdminProps & {
|
|
|
117
117
|
*/
|
|
118
118
|
enablePasswordRecover: boolean;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* The query client instance to use in the application.
|
|
121
121
|
*/
|
|
122
122
|
queryClient: QueryClient;
|
|
123
|
+
/**
|
|
124
|
+
* Background image to display in login, recover, and register pages.
|
|
125
|
+
* This image must be a component with absolute positioning.
|
|
126
|
+
*/
|
|
127
|
+
background?: React.ReactNode;
|
|
123
128
|
};
|
|
124
129
|
/**
|
|
125
|
-
*
|
|
130
|
+
* Define a basic super cool application based on React Admin, Mantis Theme and our style.
|
|
131
|
+
*
|
|
132
|
+
* @author A-Team - The Applica Software Guru
|
|
126
133
|
* @param {ApplicaAdminProps}
|
|
127
134
|
* @returns {React.ReactElement}
|
|
128
135
|
*/
|
|
129
136
|
declare const ApplicaAdmin: {
|
|
130
|
-
({ theme, themeConfig, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, copy, version, dataProvider, authProvider, errorHandler, error, notification, enableNotification, enableRegistration, enablePasswordRecover, queryClient, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
({ theme, themeConfig, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, copy, version, dataProvider, authProvider, errorHandler, error, notification, enableNotification, enableRegistration, enablePasswordRecover, queryClient, background, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element;
|
|
131
138
|
defaultProps: {
|
|
132
139
|
fileFields: never[];
|
|
133
140
|
defaultLocale: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAwD,WAAW,EAAuB,MAAM,YAAY,CAAC;AAGpH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAU7D,MAAM,MAAM,iBAAiB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;;;;;;;;;;;;;CAkGnB,CAAC;AAoCF,eAAe,YAAY,CAAC"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
export default AuthWrapper;
|
|
2
|
-
declare function AuthWrapper({ version, name, copy, children, background }: {
|
|
3
|
-
version: any;
|
|
4
|
-
name: any;
|
|
5
|
-
copy: any;
|
|
6
|
-
children: any;
|
|
7
|
-
background?: (() => import("react/jsx-runtime").JSX.Element) | undefined;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare namespace AuthWrapper {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
const version: PropTypes.Requireable<string>;
|
|
13
|
-
const name: PropTypes.Requireable<string>;
|
|
14
|
-
const copy: PropTypes.Requireable<string>;
|
|
15
|
-
const background: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type AuthWrapperProps = {
|
|
4
|
+
version: string;
|
|
5
|
+
name: string;
|
|
6
|
+
copy?: string;
|
|
7
|
+
background?: React.ReactNode | React.ComponentType;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
logo?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare const AuthWrapper: {
|
|
12
|
+
({ version, name, copy, children, logo, background }: AuthWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
+
version: PropTypes.Requireable<string>;
|
|
16
|
+
name: PropTypes.Requireable<string>;
|
|
17
|
+
copy: PropTypes.Requireable<string>;
|
|
18
|
+
background: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default AuthWrapper;
|
|
19
22
|
//# sourceMappingURL=AuthWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/AuthWrapper.
|
|
1
|
+
{"version":3,"file":"AuthWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/AuthWrapper.tsx"],"names":[],"mappings":"AAMA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,WAAW;0DAA0E,gBAAgB;;;;;;;;CAmC1G,CAAC;AASF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Navigation/NavGroup.jsx"],"names":[],"mappings":"AAiCA;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"NavGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Navigation/NavGroup.jsx"],"names":[],"mappings":"AAiCA;;;;;;;;;4CAuRC;;;;;;;;;;;;;sBAhTqB,YAAY"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
+
export type MainIconProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
declare const MainIcon: ({ title }: MainIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
5
|
export default MainIcon;
|
|
2
|
-
declare function MainIcon({ title }: {
|
|
3
|
-
title: any;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace MainIcon {
|
|
6
|
-
namespace propTypes {
|
|
7
|
-
const title: PropTypes.Validator<string>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
6
|
//# sourceMappingURL=MainIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainIcon.d.ts","sourceRoot":"","sources":["../../../src/components/MainIcon.
|
|
1
|
+
{"version":3,"file":"MainIcon.d.ts","sourceRoot":"","sources":["../../../src/components/MainIcon.tsx"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,QAAA,MAAM,QAAQ,cAAe,aAAa,4CAUzC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseAuthProps } from './types';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const ActivatePage: {
|
|
4
|
-
({ name, copy, version, background }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
({ name, copy, logo, version, background }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
name: PropTypes.Validator<string>;
|
|
7
7
|
version: PropTypes.Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivatePage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/ActivatePage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"ActivatePage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/ActivatePage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,YAAY;gDAA+C,aAAa;;;;;;CAsC7E,CAAC;AAQF,eAAe,YAAY,CAAC"}
|
|
@@ -2,11 +2,11 @@ import { BaseAuthProps } from './types';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export type LoginPageProps = BaseAuthProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Indicates whether to enable the password recovery screen.
|
|
6
|
+
* If enabled, it is advisable to register a route to /recover with a component
|
|
7
|
+
* that takes care of recovery, you can use the Applica component directly for this
|
|
8
8
|
*
|
|
9
|
-
* @see RecoverPage
|
|
9
|
+
* @see RecoverPage for more information.
|
|
10
10
|
* @example
|
|
11
11
|
* import { RecoverPage } from '../..';
|
|
12
12
|
* <CustomRoutes noLayout>
|
|
@@ -15,11 +15,11 @@ export type LoginPageProps = BaseAuthProps & {
|
|
|
15
15
|
*/
|
|
16
16
|
enablePasswordRecover?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* Indicates whether to enable the registration screen.
|
|
19
|
+
* If enabled, it is advisable to register a route to /register with a component
|
|
20
|
+
* that takes care of registration, you can use the Applica component directly for this
|
|
21
21
|
*
|
|
22
|
-
* @see RegisterPage
|
|
22
|
+
* @see RegisterPage for more information.
|
|
23
23
|
* @example
|
|
24
24
|
* import { RegisterPage } from '../..';
|
|
25
25
|
* <CustomRoutes noLayout>
|
|
@@ -28,13 +28,13 @@ export type LoginPageProps = BaseAuthProps & {
|
|
|
28
28
|
*/
|
|
29
29
|
enableRegistration?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* Indicates the page to redirect the user to after login.
|
|
32
|
+
* If not specified, the react-admin home page is used.
|
|
33
33
|
*/
|
|
34
34
|
redirectTo: string;
|
|
35
35
|
};
|
|
36
36
|
declare const LoginPage: {
|
|
37
|
-
({ version, name, copy, enablePasswordRecover, enableRegistration, redirectTo, background }: LoginPageProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
({ version, name, copy, logo, enablePasswordRecover, enableRegistration, redirectTo, background }: LoginPageProps): import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
propTypes: {
|
|
39
39
|
version: PropTypes.Validator<string>;
|
|
40
40
|
name: PropTypes.Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/LoginPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,QAAA,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"LoginPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/LoginPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,QAAA,MAAM,SAAS;uGAAsG,cAAc;;;;;;;;;;;;;CA6FlI,CAAC;AAeF,eAAe,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseAuthProps } from './types';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const RecoverPage: {
|
|
4
|
-
({ name, copy, version, background }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
({ name, copy, logo, version, background }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
name: PropTypes.Validator<string>;
|
|
7
7
|
version: PropTypes.Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecoverPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/RecoverPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"RecoverPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/RecoverPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,QAAA,MAAM,WAAW;gDAA+C,aAAa;;;;;;CAsD5E,CAAC;AAQF,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseAuthProps } from './types';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const RegisterPage: {
|
|
4
|
-
({ name, copy, version }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
({ name, copy, version, logo, background }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
name: PropTypes.Validator<string>;
|
|
7
7
|
version: PropTypes.Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/RegisterPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"RegisterPage.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/RegisterPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,YAAY;gDAA+C,aAAa;;;;;CAyD7E,CAAC;AAOF,eAAe,YAAY,CAAC"}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type BaseAuthProps = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Application version to show.
|
|
5
5
|
*/
|
|
6
6
|
version: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Application name to show.
|
|
9
9
|
*/
|
|
10
10
|
name: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Copy to show.
|
|
13
13
|
*/
|
|
14
14
|
copy?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
|
|
16
|
+
* Indicates top left logo to display in the login page.
|
|
17
|
+
*/
|
|
18
|
+
logo?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Background image to show.
|
|
18
21
|
*
|
|
19
22
|
* @see AuthBackground per maggiori informazioni.
|
|
20
23
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;;;;;;;;;;;OAaG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;CACvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLocalStorage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLocalStorage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLocalStorage.tsx"],"names":[],"mappings":"AAkBA,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,CAAC,CA2BvG;AAED,eAAe,eAAe,CAAC"}
|