@applica-software-guru/react-admin 1.0.58 → 1.0.60

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 (50) hide show
  1. package/README.md +1 -1
  2. package/dist/ApplicaAdmin.d.ts +67 -1
  3. package/dist/ApplicaAdmin.d.ts.map +1 -1
  4. package/dist/components/AuthBackground.d.ts +3 -0
  5. package/dist/components/AuthBackground.d.ts.map +1 -0
  6. package/dist/components/AuthCard.d.ts +12 -0
  7. package/dist/components/AuthCard.d.ts.map +1 -0
  8. package/dist/components/AuthWrapper.d.ts +17 -0
  9. package/dist/components/AuthWrapper.d.ts.map +1 -0
  10. package/dist/components/Layout/Drawer/DrawerHeader/DrawerHeaderStyled.d.ts +1 -1
  11. package/dist/components/MainIcon.d.ts.map +1 -1
  12. package/dist/components/index.d.ts +1 -0
  13. package/dist/components/index.d.ts.map +1 -1
  14. package/dist/components/ra-inputs/TextInput.d.ts +7 -6
  15. package/dist/components/ra-inputs/TextInput.d.ts.map +1 -1
  16. package/dist/components/ra-pages/LoginPage.d.ts +52 -0
  17. package/dist/components/ra-pages/LoginPage.d.ts.map +1 -0
  18. package/dist/components/ra-pages/RecoverPage.d.ts +12 -0
  19. package/dist/components/ra-pages/RecoverPage.d.ts.map +1 -0
  20. package/dist/components/ra-pages/RegisterPage.d.ts +11 -0
  21. package/dist/components/ra-pages/RegisterPage.d.ts.map +1 -0
  22. package/dist/components/ra-pages/index.d.ts +5 -0
  23. package/dist/components/ra-pages/index.d.ts.map +1 -0
  24. package/dist/components/ra-pages/types.d.ts +28 -0
  25. package/dist/components/ra-pages/types.d.ts.map +1 -0
  26. package/dist/hooks/useMenu.d.ts.map +1 -1
  27. package/dist/react-admin.cjs.js +54 -54
  28. package/dist/react-admin.cjs.js.map +1 -1
  29. package/dist/react-admin.es.js +8059 -7767
  30. package/dist/react-admin.es.js.map +1 -1
  31. package/dist/react-admin.umd.js +55 -55
  32. package/dist/react-admin.umd.js.map +1 -1
  33. package/package.json +5 -6
  34. package/src/ApplicaAdmin.tsx +84 -60
  35. package/src/assets/background.svg +58 -0
  36. package/src/components/AuthBackground.tsx +99 -0
  37. package/src/components/AuthCard.jsx +33 -0
  38. package/src/components/AuthWrapper.jsx +53 -0
  39. package/src/components/MainIcon.jsx +4 -3
  40. package/src/components/index.jsx +1 -0
  41. package/src/components/ra-inputs/{TextInput.jsx → TextInput.tsx} +5 -3
  42. package/src/components/ra-pages/LoginPage.tsx +153 -0
  43. package/src/components/ra-pages/RecoverPage.tsx +75 -0
  44. package/src/components/ra-pages/RegisterPage.tsx +78 -0
  45. package/src/components/ra-pages/index.ts +4 -0
  46. package/src/components/ra-pages/types.ts +26 -0
  47. package/src/hooks/useMenu.jsx +6 -5
  48. package/src/playground/App.jsx +10 -5
  49. package/src/playground/config.jsx +1 -0
  50. package/src/playground/menu.jsx +0 -8
package/README.md CHANGED
@@ -22,7 +22,7 @@ Per avviare il progetto, segui questi passi:
22
22
 
23
23
  - `nvm use` per impostare la versione di Node.js corretta;
24
24
  - `npm install` per installare le dipendenze;
25
- - `npm run develop` per avviare il playground in modalità sviluppo;
25
+ - `npm start` per avviare il playground in modalità sviluppo;
26
26
  - divertiti a testare le componenti!
27
27
 
28
28
  ## Contribuire
@@ -1,19 +1,82 @@
1
1
  import { AdminProps } from 'react-admin';
2
2
  import { MenuProps } from 'src/types';
3
3
  export type ApplicaAdminProps = AdminProps & {
4
+ /**
5
+ * Eventuali configurazioni aggiuntive da passare al tema.
6
+ * @remarks Questo tema è basato su Mantis Theme (https://mantisdashboard.io/)
7
+ *
8
+ * @see https://marmelab.com/react-admin/Theming.html
9
+ * @see https://material-ui.com/customization/theming/
10
+ */
4
11
  theme: any;
12
+ /**
13
+ * URL dell'API da utilizzare nell'applicazione.
14
+ * Sebbene venga già definito un dataProvider ed authProvider di default, è possibile che l'app
15
+ * utilizzi l'apiUrl specificato per ulteriori operazioni (es. getstione delle notifiche).
16
+ */
5
17
  apiUrl: string;
18
+ /**
19
+ * La lingua di default da utilizzare nell'applicazione.
20
+ */
6
21
  defaultLocale: string;
22
+ /**
23
+ * Se impostato a true, l'applicazione lavora in modalità sviluppo.
24
+ * La modalità sviluppo è utile per effettuare test e debug ed esegue attività che non sono
25
+ * consigliate in produzione (es. cattura e inoltro dei messaggi non localizzati).
26
+ */
7
27
  development: boolean;
28
+ /**
29
+ * Il logo da visualizzare nella barra laterale quando il menu è espanso lateralmente.
30
+ */
8
31
  logoMain: any;
32
+ /**
33
+ * Eventuale logo da visualizzare nella barra laterale quando il menu è ridotto lateralmente.
34
+ */
9
35
  logoIcon: any;
36
+ /**
37
+ * Configurazione del menu da visualizzare nell'applicazione.
38
+ */
10
39
  menu: MenuProps;
40
+ /**
41
+ * Nome dell'applicazione da mostrare nell'header.
42
+ */
11
43
  name: string;
44
+ /**
45
+ * Versione dell'applicazione da mostrare nel footer.
46
+ */
12
47
  version: string;
48
+ /**
49
+ * Il provider di autenticazione da utilizzare nell'applicazione.
50
+ */
13
51
  dataProvider: any;
52
+ /**
53
+ * Il provider di dati da utilizzare nell'applicazione.
54
+ */
14
55
  authProvider: any;
56
+ /**
57
+ * Indica il nome della risorsa REST da utilizzare per la gestione delle notifiche.
58
+ * @example
59
+ * // In questo caso, le notifiche verranno gestite tramite la risorsa "entities/notification"
60
+ * <ApplicaAdmin notification="entities/notification" />
61
+ */
15
62
  notification: string;
63
+ /**
64
+ * Indica se le notifiche devono essere disabilitate.
65
+ * Se le notifiche sono abilitate comparirà automaticamente un'icona in alto a destra nell'header.
66
+ *
67
+ * @example
68
+ * // In questo caso, le notifiche verranno disabilitate
69
+ * <ApplicaAdmin disableNotification />
70
+ */
16
71
  disableNotification: boolean;
72
+ /**
73
+ * Indica se la schermata di registrazione deve essere disabilitata.
74
+ */
75
+ disableSignup: boolean;
76
+ /**
77
+ * Indica se la schermata di recupero password deve essere disabilitata.
78
+ */
79
+ disableForgotPassword: boolean;
17
80
  };
18
81
  /**
19
82
  * Definisce un'applicazione super figa basata su React Admi, Mantis Theme ed il nostro stile.
@@ -48,7 +111,7 @@ export type ApplicaAdminProps = AdminProps & {
48
111
  * @returns {React.ReactElement}
49
112
  */
50
113
  declare const ApplicaAdmin: {
51
- ({ theme, apiUrl, defaultLocale, development, logoMain, logoIcon, menu, name, version, dataProvider, authProvider, notification, disableNotification, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element | null;
114
+ ({ theme, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, version, dataProvider, authProvider, notification, disableNotification, disableSignup, disableForgotPassword, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element | null;
52
115
  defaultProps: {
53
116
  fileFields: never[];
54
117
  defaultLocale: string;
@@ -56,6 +119,9 @@ declare const ApplicaAdmin: {
56
119
  version: string;
57
120
  notification: string;
58
121
  disableNotification: boolean;
122
+ disableSignup: boolean;
123
+ disableForgotPassword: boolean;
124
+ loginPage: import("react/jsx-runtime").JSX.Element;
59
125
  store: import("react-admin").Store;
60
126
  title: string;
61
127
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AA+BtC,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG;IAC3C,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,QAAA,MAAM,YAAY;sKAsEf,iBAAiB;;;;;;;;;;;;CAmFnB,CAAC;AA6BF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AA8BtC,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG;IAC3C;;;;;;OAMG;IACH,KAAK,EAAE,GAAG,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC;IAClB;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC;IAClB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,QAAA,MAAM,YAAY;uNAkBf,iBAAiB;;;;;;;;;;;;;;;CA2FnB,CAAC;AAkCF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const AuthBackground: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AuthBackground;
3
+ //# sourceMappingURL=AuthBackground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthBackground.d.ts","sourceRoot":"","sources":["../../../src/components/AuthBackground.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,cAAc,+CA6FnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,12 @@
1
+ export default AuthCard;
2
+ declare function AuthCard({ children, ...other }: {
3
+ [x: string]: any;
4
+ children: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace AuthCard {
7
+ namespace propTypes {
8
+ const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ }
10
+ }
11
+ import PropTypes from 'prop-types';
12
+ //# sourceMappingURL=AuthCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthCard.d.ts","sourceRoot":"","sources":["../../../src/components/AuthCard.jsx"],"names":[],"mappings":";AAKA;;;4CAqBC;;;;;;sBAxBqB,YAAY"}
@@ -0,0 +1,17 @@
1
+ export default AuthWrapper;
2
+ declare function AuthWrapper({ version, name, children, background }: {
3
+ version: any;
4
+ name: any;
5
+ children: any;
6
+ background?: (() => import("react/jsx-runtime").JSX.Element) | undefined;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare namespace AuthWrapper {
9
+ namespace propTypes {
10
+ const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
+ const version: PropTypes.Requireable<string>;
12
+ const name: PropTypes.Requireable<string>;
13
+ const background: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
14
+ }
15
+ }
16
+ import PropTypes from 'prop-types';
17
+ //# sourceMappingURL=AuthWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/AuthWrapper.jsx"],"names":[],"mappings":";AASA;;;;;4CAmCC;;;;;;;;;sBAtCqB,YAAY"}
@@ -6,5 +6,5 @@ declare const DrawerHeaderStyled: import("@emotion/styled").StyledComponent<impo
6
6
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
7
7
  } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
- }, "children" | "ref" | "sx" | "component" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
+ }, "children" | "ref" | "sx" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
10
  //# sourceMappingURL=DrawerHeaderStyled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MainIcon.d.ts","sourceRoot":"","sources":["../../../src/components/MainIcon.jsx"],"names":[],"mappings":";AAGA;;4CAUC;;;;;;sBAbqB,YAAY"}
1
+ {"version":3,"file":"MainIcon.d.ts","sourceRoot":"","sources":["../../../src/components/MainIcon.jsx"],"names":[],"mappings":";AAIA;;4CAUC;;;;;;sBAZqB,YAAY"}
@@ -6,6 +6,7 @@ export * from "./ra-inputs";
6
6
  export * from "./ra-lists";
7
7
  export * from "./ra-forms";
8
8
  export * from "./ra-custom";
9
+ export * from "./ra-pages";
9
10
  import MainIcon from './MainIcon';
10
11
  import ActionsMenu from './ActionsMenu';
11
12
  import Loadable from './Loadable';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.jsx"],"names":[],"mappings":";;;;;;;;qBAMqB,YAAY;wBANT,eAAe;qBAElB,YAAY;mBACd,UAAU;mBAFV,UAAU;iBAGZ,QAAQ;qBACJ,YAAY;sBAIX,aAAa;oBACf,WAAW;4BAHH,eAAe;yBAClB,gBAAgB;sBAGnB,aAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.jsx"],"names":[],"mappings":";;;;;;;;;qBAMqB,YAAY;wBANT,eAAe;qBAElB,YAAY;mBACd,UAAU;mBAFV,UAAU;iBAGZ,QAAQ;qBACJ,YAAY;sBAIX,aAAa;oBACf,WAAW;4BAHH,eAAe;yBAClB,gBAAgB;sBAGnB,aAAa"}
@@ -1,10 +1,10 @@
1
- export default TextInput;
2
- declare function TextInput(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace TextInput {
4
- const defaultProps: {
1
+ import { TextInputProps } from 'react-admin';
2
+ declare const TextInput: {
3
+ (props: TextInputProps): import("react/jsx-runtime").JSX.Element;
4
+ defaultProps: {
5
5
  options: {};
6
6
  };
7
- const propTypes: {
7
+ propTypes: {
8
8
  sx: import("prop-types").Requireable<object>;
9
9
  children: import("prop-types").Requireable<import("prop-types").ReactElementLike>;
10
10
  label: import("prop-types").Requireable<NonNullable<string | boolean | null | undefined>>;
@@ -18,5 +18,6 @@ declare namespace TextInput {
18
18
  className: import("prop-types").Requireable<string>;
19
19
  options: import("prop-types").Requireable<object>;
20
20
  };
21
- }
21
+ };
22
+ export default TextInput;
22
23
  //# sourceMappingURL=TextInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/TextInput.jsx"],"names":[],"mappings":";AAIA,gFAIC"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-inputs/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAE,MAAM,aAAa,CAAC;AAIvE,QAAA,MAAM,SAAS;YAAW,cAAc;;;;;;;;;;;;;;;;;;CAMvC,CAAC;AAWF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { BaseAuthProps } from './types';
2
+ import PropTypes from 'prop-types';
3
+ export type LoginPageProps = BaseAuthProps & {
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
8
+ *
9
+ * @see RecoverPage per maggiori informazioni.
10
+ * @example
11
+ * import { RecoverPage } from '../..';
12
+ * <CustomRoutes noLayout>
13
+ * <Route path="/recover" component={RecoverPage} />
14
+ * </CustomRoutes>
15
+ */
16
+ enablePasswordForgot?: boolean;
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
21
+ *
22
+ * @see RegisterPage per maggiori informazioni.
23
+ * @example
24
+ * import { RegisterPage } from '../..';
25
+ * <CustomRoutes noLayout>
26
+ * <Route path="/register" component={RegisterPage} />
27
+ * </CustomRoutes>
28
+ */
29
+ enableRegister?: boolean;
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.
33
+ */
34
+ redirectTo: string;
35
+ };
36
+ declare const LoginPage: {
37
+ ({ version, name, enablePasswordForgot, enableRegister, redirectTo, background }: LoginPageProps): import("react/jsx-runtime").JSX.Element;
38
+ propTypes: {
39
+ version: PropTypes.Validator<string>;
40
+ name: PropTypes.Validator<string>;
41
+ enablePasswordForgot: PropTypes.Requireable<boolean>;
42
+ enableRegister: PropTypes.Requireable<boolean>;
43
+ background: PropTypes.Requireable<PropTypes.ReactElementLike>;
44
+ };
45
+ defaultProps: {
46
+ enablePasswordForgot: boolean;
47
+ enableRegister: boolean;
48
+ background: import("react/jsx-runtime").JSX.Element;
49
+ };
50
+ };
51
+ export default LoginPage;
52
+ //# sourceMappingURL=LoginPage.d.ts.map
@@ -0,0 +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,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,QAAA,MAAM,SAAS;sFAAqF,cAAc;;;;;;;;;;;;;CA6FjH,CAAC;AAeF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { BaseAuthProps } from './types';
2
+ import PropTypes from 'prop-types';
3
+ declare const RecoverPage: {
4
+ ({ name, version, background }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
5
+ propTypes: {
6
+ name: PropTypes.Validator<string>;
7
+ version: PropTypes.Validator<string>;
8
+ background: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ };
10
+ };
11
+ export default RecoverPage;
12
+ //# sourceMappingURL=RecoverPage.d.ts.map
@@ -0,0 +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;oCAAmC,aAAa;;;;;;CAsDhE,CAAC;AAQF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { BaseAuthProps } from './types';
2
+ import PropTypes from 'prop-types';
3
+ declare const RegisterPage: {
4
+ ({ name, version }: BaseAuthProps): import("react/jsx-runtime").JSX.Element;
5
+ propTypes: {
6
+ name: PropTypes.Validator<string>;
7
+ version: PropTypes.Validator<string>;
8
+ };
9
+ };
10
+ export default RegisterPage;
11
+ //# sourceMappingURL=RegisterPage.d.ts.map
@@ -0,0 +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;wBAAuB,aAAa;;;;;CA0DrD,CAAC;AAOF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ import LoginPage from './LoginPage';
2
+ import RecoverPage from './RecoverPage';
3
+ import RegisterPage from './RegisterPage';
4
+ export { LoginPage, RecoverPage, RegisterPage };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-pages/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ export type BaseAuthProps = {
3
+ /**
4
+ * Versione dell'applicazione da mostrare.
5
+ */
6
+ version: string;
7
+ /**
8
+ * Nome dell'applicazione da mostrare.
9
+ */
10
+ name: string;
11
+ /**
12
+ * Immagine di sfondo della pagina.
13
+ * Se non specificata viene utilizzata l'immagine di default.
14
+ *
15
+ * @see AuthBackground per maggiori informazioni.
16
+ * @example
17
+ * // Esempio di Background personalizzato:
18
+ * const MyBackground = () => (
19
+ * <Box sx={{ position: 'absolute', filter: 'blur(20px)', bottom: 0, p: 4, pb: 8 }}>
20
+ * <svg width="100%" height="calc(100vh - 175px)" viewBox="0 0 117 80" fill="none" xmlns="http://www.w3.org/2000/svg">
21
+ * <path .. />
22
+ * </svg>
23
+ * </Box>
24
+ * )
25
+ */
26
+ background: React.ReactNode | React.ElementType | any;
27
+ };
28
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;OAcG;IACH,UAAU,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;CACvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMenu.jsx"],"names":[],"mappings":";AA+KA;;;;;EAgCC"}
1
+ {"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMenu.jsx"],"names":[],"mappings":";AA+KA;;;;;EAiCC"}