@applica-software-guru/react-admin 1.3.165 → 1.3.166

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 (31) hide show
  1. package/dist/ApplicaAdmin.d.ts +43 -36
  2. package/dist/ApplicaAdmin.d.ts.map +1 -1
  3. package/dist/components/AuthWrapper.d.ts +20 -17
  4. package/dist/components/AuthWrapper.d.ts.map +1 -1
  5. package/dist/components/MainIcon.d.ts +4 -9
  6. package/dist/components/MainIcon.d.ts.map +1 -1
  7. package/dist/components/ra-pages/ActivatePage.d.ts +1 -1
  8. package/dist/components/ra-pages/ActivatePage.d.ts.map +1 -1
  9. package/dist/components/ra-pages/LoginPage.d.ts +11 -11
  10. package/dist/components/ra-pages/LoginPage.d.ts.map +1 -1
  11. package/dist/components/ra-pages/RecoverPage.d.ts +1 -1
  12. package/dist/components/ra-pages/RecoverPage.d.ts.map +1 -1
  13. package/dist/components/ra-pages/RegisterPage.d.ts +1 -1
  14. package/dist/components/ra-pages/RegisterPage.d.ts.map +1 -1
  15. package/dist/components/ra-pages/types.d.ts +8 -5
  16. package/dist/components/ra-pages/types.d.ts.map +1 -1
  17. package/dist/react-admin.cjs.js +52 -52
  18. package/dist/react-admin.cjs.js.map +1 -1
  19. package/dist/react-admin.es.js +2671 -2672
  20. package/dist/react-admin.es.js.map +1 -1
  21. package/dist/react-admin.umd.js +52 -52
  22. package/dist/react-admin.umd.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/ApplicaAdmin.tsx +46 -36
  25. package/src/components/{AuthWrapper.jsx → AuthWrapper.tsx} +13 -4
  26. package/src/components/{MainIcon.jsx → MainIcon.tsx} +4 -8
  27. package/src/components/ra-pages/ActivatePage.tsx +2 -2
  28. package/src/components/ra-pages/LoginPage.tsx +12 -12
  29. package/src/components/ra-pages/RecoverPage.tsx +2 -2
  30. package/src/components/ra-pages/RegisterPage.tsx +2 -2
  31. package/src/components/ra-pages/types.ts +8 -5
@@ -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
- * Eventuali configurazioni aggiuntive da passare al tema.
10
- * @remarks Questo tema è basato su Mantis Theme (https://mantisdashboard.io/)
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
- * Consente di personalizzare ulteriormente il tema in base alle specifiche esposte dal tema stesso.
18
- * Divertiti con cautela a modificare variabili di configurazione del tema, se fai un casino Marco Colucci potrebbe usare l'estintore (ho detto tutto).
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 dell'API da utilizzare nell'applicazione.
23
- * Sebbene venga già definito un dataProvider ed authProvider di default, è possibile che l'app
24
- * utilizzi l'apiUrl specificato per ulteriori operazioni (es. getstione delle notifiche).
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
- * La lingua di default da utilizzare nell'applicazione.
28
+ * The default language to use in the application (default: en).
29
29
  */
30
30
  defaultLocale: string;
31
31
  /**
32
- * Se impostato a true, l'applicazione lavora in modalità sviluppo.
33
- * La modalità sviluppo è utile per effettuare test e debug ed esegue attività che non sono
34
- * consigliate in produzione (es. cattura e inoltro dei messaggi non localizzati).
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
- * Il logo da visualizzare nella barra laterale quando il menu è espanso lateralmente.
38
+ * The main logo to display in the sidebar when the menu is expanded laterally.
39
39
  */
40
40
  logoMain: any;
41
41
  /**
42
- * Eventuale logo da visualizzare nella barra laterale quando il menu è ridotto lateralmente.
42
+ * The icon to display in the sidebar when the menu is collapsed laterally.
43
43
  */
44
44
  logoIcon: any;
45
45
  /**
46
- * Configurazione del menu da visualizzare nell'applicazione.
46
+ * Configured menu to display in the application.
47
47
  */
48
48
  menu: MenuProps;
49
49
  /**
50
- * Nome dell'applicazione da mostrare nell'header.
50
+ * The name of the application to display in the header.
51
51
  */
52
52
  name: string;
53
53
  /**
54
- * Testo da mostrare nel footer. Default: '© Applica Software Guru for'.
54
+ * Text to display in the footer. Default: '© Applica Software Guru for'.
55
55
  */
56
56
  copy: string;
57
57
  /**
58
- * Versione dell'applicazione da mostrare nel footer.
58
+ * Application version to display in the footer.
59
59
  */
60
60
  version: string;
61
61
  /**
62
- * Il provider di autenticazione da utilizzare nell'applicazione.
62
+ * The data provider to use in the application.
63
63
  */
64
64
  dataProvider: DataProvider;
65
65
  /**
66
- * Il provider di dati da utilizzare nell'applicazione.
66
+ * The auth provider to use in the application.
67
67
  */
68
68
  authProvider: AuthProvider;
69
69
  /**
70
- * Indica l'eventuale handler da utilizzare per la gestione degli errori.
71
- * Di default è eseguita una chiamata PUT /api/ui/error con il messaggio di errore "error".
72
- * Puoi implementare un tuo handler per gestire gli errori in modo diverso.
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
- * Indica il componente da visualizzare in caso di errore.
76
+ * Indicates the component to display in case of error.
77
77
  */
78
78
  error: React.Component;
79
79
  /**
80
- * Indica il nome della risorsa REST da utilizzare per la gestione delle notifiche.
80
+ * Indicates the name of the REST resource to use for notification management.
81
81
  * @default "entities/notification"
82
82
  * @example
83
- * // In questo caso, le notifiche verranno gestite tramite la risorsa "entities/notification"
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
- * Indica se le notifiche devono essere disabilitate.
89
- * Se le notifiche sono abilitate comparirà automaticamente un'icona in alto a destra nell'header.
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
- * Indica se la schermata di registrazione deve essere disabilitata.
97
- * Se abilitata è necessario registrare una pagina, nelle rotte, che punti a /register
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
- * // Pagina di base realizzata da Applica
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
- * Indica se la schermata di recupero password deve essere disabilitata.
109
- * Se abilitata è necessario registrare una pagina, nelle rotte, che punti a /recover
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
- * // Pagina di base realizzata da Applica
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
- * L'instanza di QueryClient da utilizzare nell'applicazione
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
- * Definisce un'applicazione super figa basata su React Admin, Mantis Theme ed il nostro stile.
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,GAAG,UAAU,GAAG;IAC3C;;;;;;OAMG;IACH,KAAK,EAAE,GAAG,CAAC;IACX;;;OAGG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH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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.jsx"],"names":[],"mappings":";AASA;;;;;;4CAmCC;;;;;;;;;;sBAtCqB,YAAY"}
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,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.jsx"],"names":[],"mappings":";AAIA;;4CAUC;;;;;;sBAZqB,YAAY"}
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;0CAAyC,aAAa;;;;;;CAsCvE,CAAC;AAQF,eAAe,YAAY,CAAC"}
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
- * Indica se abilitare o meno la schermata di recupero password.
6
- * Se abilitato è opportuno registrare una rotta a /recover con un componente
7
- * che si occupi del recupero, puoi utilizzare direttamente il componente di Applica
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 per maggiori informazioni.
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
- * Indica se abilitare o meno la schermata di registrazione.
19
- * Se abilitato è opportuno registrare una rotta a /register con un componente
20
- * che si occupi della registrazione, puoi utilizzare direttamente il componente di Applica
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 per maggiori informazioni.
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
- * Indica la pagina a cui reindirizzare l'utente dopo il login.
32
- * Se non specificata viene utilizzata la home page di react-admin.
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;iGAAgG,cAAc;;;;;;;;;;;;;CA6F5H,CAAC;AAeF,eAAe,SAAS,CAAC"}
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;0CAAyC,aAAa;;;;;;CAsDtE,CAAC;AAQF,eAAe,WAAW,CAAC"}
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;8BAA6B,aAAa;;;;;CAyD3D,CAAC;AAOF,eAAe,YAAY,CAAC"}
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
- * Versione dell'applicazione da mostrare.
4
+ * Application version to show.
5
5
  */
6
6
  version: string;
7
7
  /**
8
- * Nome dell'applicazione da mostrare.
8
+ * Application name to show.
9
9
  */
10
10
  name: string;
11
11
  /**
12
- * Copyright da mostrare nella pagina.
12
+ * Copy to show.
13
13
  */
14
14
  copy?: string;
15
15
  /**
16
- * Immagine di sfondo della pagina.
17
- * Se non specificata viene utilizzata l'immagine di default.
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;;;;;;;;;;;;;;OAcG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;CACvD,CAAC"}
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"}