@applica-software-guru/react-admin 1.0.60 → 1.0.62
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 +35 -13
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/AuthBackground.d.ts.map +1 -1
- package/dist/components/Layout/Header/HeaderContent/index.d.ts +3 -3
- package/dist/components/Layout/Header/index.d.ts +3 -3
- package/dist/components/Layout/index.d.ts +3 -3
- package/dist/components/ra-pages/LoginPage.d.ts +5 -5
- package/dist/components/ra-pages/LoginPage.d.ts.map +1 -1
- package/dist/contexts/ThemeConfigContext.d.ts +40 -58
- package/dist/contexts/ThemeConfigContext.d.ts.map +1 -1
- package/dist/hooks/useThemeConfig.d.ts +1 -13
- package/dist/hooks/useThemeConfig.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +28 -28
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1529 -1585
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +21 -21
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/ApplicaAdmin.tsx +52 -25
- package/src/components/AuthBackground.tsx +21 -19
- package/src/components/Layout/Header/HeaderContent/index.jsx +3 -3
- package/src/components/Layout/Header/index.jsx +3 -3
- package/src/components/Layout/index.jsx +3 -3
- package/src/components/ra-pages/LoginPage.tsx +8 -8
- package/src/contexts/ThemeConfigContext.tsx +125 -0
- package/src/playground/App.jsx +6 -0
- package/src/themes/overrides/Autocomplete.jsx +1 -1
- package/src/contexts/ThemeConfigContext.jsx +0 -134
package/dist/ApplicaAdmin.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AdminProps } from 'react-admin';
|
|
2
|
-
import {
|
|
1
|
+
import { AdminProps, AuthProvider, DataProvider } from 'react-admin';
|
|
2
|
+
import { ThemeConfig } from './contexts';
|
|
3
|
+
import { MenuProps } from './types';
|
|
3
4
|
export type ApplicaAdminProps = AdminProps & {
|
|
4
5
|
/**
|
|
5
6
|
* Eventuali configurazioni aggiuntive da passare al tema.
|
|
@@ -9,6 +10,11 @@ export type ApplicaAdminProps = AdminProps & {
|
|
|
9
10
|
* @see https://material-ui.com/customization/theming/
|
|
10
11
|
*/
|
|
11
12
|
theme: any;
|
|
13
|
+
/**
|
|
14
|
+
* Consente di personalizzare ulteriormente il tema in base alle specifiche esposte dal tema stesso.
|
|
15
|
+
* Divertiti con cautela a modificare variabili di configurazione del tema, se fai un casino Marco Colucci potrebbe usare l'estintore (ho detto tutto).
|
|
16
|
+
*/
|
|
17
|
+
themeConfig: ThemeConfig;
|
|
12
18
|
/**
|
|
13
19
|
* URL dell'API da utilizzare nell'applicazione.
|
|
14
20
|
* Sebbene venga già definito un dataProvider ed authProvider di default, è possibile che l'app
|
|
@@ -48,13 +54,14 @@ export type ApplicaAdminProps = AdminProps & {
|
|
|
48
54
|
/**
|
|
49
55
|
* Il provider di autenticazione da utilizzare nell'applicazione.
|
|
50
56
|
*/
|
|
51
|
-
dataProvider:
|
|
57
|
+
dataProvider: DataProvider;
|
|
52
58
|
/**
|
|
53
59
|
* Il provider di dati da utilizzare nell'applicazione.
|
|
54
60
|
*/
|
|
55
|
-
authProvider:
|
|
61
|
+
authProvider: AuthProvider;
|
|
56
62
|
/**
|
|
57
63
|
* Indica il nome della risorsa REST da utilizzare per la gestione delle notifiche.
|
|
64
|
+
* @default "entities/notification"
|
|
58
65
|
* @example
|
|
59
66
|
* // In questo caso, le notifiche verranno gestite tramite la risorsa "entities/notification"
|
|
60
67
|
* <ApplicaAdmin notification="entities/notification" />
|
|
@@ -65,18 +72,33 @@ export type ApplicaAdminProps = AdminProps & {
|
|
|
65
72
|
* Se le notifiche sono abilitate comparirà automaticamente un'icona in alto a destra nell'header.
|
|
66
73
|
*
|
|
67
74
|
* @example
|
|
68
|
-
*
|
|
69
|
-
* <ApplicaAdmin disableNotification />
|
|
75
|
+
* <ApplicaAdmin enableNotification />
|
|
70
76
|
*/
|
|
71
|
-
|
|
77
|
+
enableNotification: boolean;
|
|
72
78
|
/**
|
|
73
79
|
* Indica se la schermata di registrazione deve essere disabilitata.
|
|
80
|
+
* Se abilitata è necessario registrare una pagina, nelle rotte, che punti a /register
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* // Pagina di base realizzata da Applica
|
|
84
|
+
* import { RegisterPage } from '.';
|
|
85
|
+
* <CustomRoutes noLayout>
|
|
86
|
+
* <Route path="/register" component={RegisterPage} />
|
|
87
|
+
* </CustomRoutes>
|
|
74
88
|
*/
|
|
75
|
-
|
|
89
|
+
enableRegistration: boolean;
|
|
76
90
|
/**
|
|
77
91
|
* Indica se la schermata di recupero password deve essere disabilitata.
|
|
92
|
+
* Se abilitata è necessario registrare una pagina, nelle rotte, che punti a /recover
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* // Pagina di base realizzata da Applica
|
|
96
|
+
* import { RecoverPage } from '.';
|
|
97
|
+
* <CustomRoutes noLayout>
|
|
98
|
+
* <Route path="/recover" component={RecoverPage} />
|
|
99
|
+
* </CustomRoutes>
|
|
78
100
|
*/
|
|
79
|
-
|
|
101
|
+
enablePasswordRecover: boolean;
|
|
80
102
|
};
|
|
81
103
|
/**
|
|
82
104
|
* Definisce un'applicazione super figa basata su React Admi, Mantis Theme ed il nostro stile.
|
|
@@ -111,16 +133,16 @@ export type ApplicaAdminProps = AdminProps & {
|
|
|
111
133
|
* @returns {React.ReactElement}
|
|
112
134
|
*/
|
|
113
135
|
declare const ApplicaAdmin: {
|
|
114
|
-
({ theme, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, version, dataProvider, authProvider, notification,
|
|
136
|
+
({ theme, themeConfig, apiUrl, defaultLocale, development, logoMain, logoIcon, loginPage, menu, name, version, dataProvider, authProvider, notification, enableNotification, enableRegistration, enablePasswordRecover, ...props }: ApplicaAdminProps): import("react/jsx-runtime").JSX.Element | null;
|
|
115
137
|
defaultProps: {
|
|
116
138
|
fileFields: never[];
|
|
117
139
|
defaultLocale: string;
|
|
118
140
|
development: boolean;
|
|
119
141
|
version: string;
|
|
120
142
|
notification: string;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
143
|
+
enableNotification: boolean;
|
|
144
|
+
enableRegistration: boolean;
|
|
145
|
+
enableForgotPassword: boolean;
|
|
124
146
|
loginPage: import("react/jsx-runtime").JSX.Element;
|
|
125
147
|
store: import("react-admin").Store;
|
|
126
148
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicaAdmin.d.ts","sourceRoot":"","sources":["../../src/ApplicaAdmin.tsx"],"names":[],"mappings":"
|
|
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;AAQpH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AA8BpC,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG;IAC3C;;;;;;OAMG;IACH,KAAK,EAAE,GAAG,CAAC;IACX;;;OAGG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;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,YAAY,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,QAAA,MAAM,YAAY;wOAmBf,iBAAiB;;;;;;;;;;;;;;;CAgGnB,CAAC;AAkCF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthBackground.d.ts","sourceRoot":"","sources":["../../../src/components/AuthBackground.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,cAAc,+
|
|
1
|
+
{"version":3,"file":"AuthBackground.d.ts","sourceRoot":"","sources":["../../../src/components/AuthBackground.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,cAAc,+CA+FnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export default HeaderContent;
|
|
2
|
-
declare function HeaderContent({ logoMain, logoIcon, notification,
|
|
2
|
+
declare function HeaderContent({ logoMain, logoIcon, notification, enableNotification }: {
|
|
3
3
|
logoMain: any;
|
|
4
4
|
logoIcon: any;
|
|
5
5
|
notification: any;
|
|
6
|
-
|
|
6
|
+
enableNotification: any;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare namespace HeaderContent {
|
|
9
9
|
namespace propTypes {
|
|
10
10
|
const logoMain: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
11
|
const logoIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
12
|
const notification: PropTypes.Requireable<string>;
|
|
13
|
-
const
|
|
13
|
+
const enableNotification: PropTypes.Requireable<boolean>;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
import PropTypes from 'prop-types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export default Header;
|
|
2
|
-
declare function Header({ open, logoMain, logoIcon, handleDrawerToggle, notification,
|
|
2
|
+
declare function Header({ open, logoMain, logoIcon, handleDrawerToggle, notification, enableNotification }: {
|
|
3
3
|
open: any;
|
|
4
4
|
logoMain: any;
|
|
5
5
|
logoIcon: any;
|
|
6
6
|
handleDrawerToggle: any;
|
|
7
7
|
notification: any;
|
|
8
|
-
|
|
8
|
+
enableNotification: any;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare namespace Header {
|
|
11
11
|
namespace propTypes {
|
|
@@ -14,7 +14,7 @@ declare namespace Header {
|
|
|
14
14
|
const logoMain: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
15
|
const logoIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
16
|
const notification: PropTypes.Requireable<string>;
|
|
17
|
-
const
|
|
17
|
+
const enableNotification: PropTypes.Requireable<boolean>;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export default Layout;
|
|
2
|
-
declare function Layout({ children, name, version, logoMain, logoIcon, notification,
|
|
2
|
+
declare function Layout({ children, name, version, logoMain, logoIcon, notification, enableNotification }: {
|
|
3
3
|
children: any;
|
|
4
4
|
name: any;
|
|
5
5
|
version: any;
|
|
6
6
|
logoMain: any;
|
|
7
7
|
logoIcon: any;
|
|
8
8
|
notification: any;
|
|
9
|
-
|
|
9
|
+
enableNotification: any;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare namespace Layout {
|
|
12
12
|
namespace propTypes {
|
|
@@ -16,7 +16,7 @@ declare namespace Layout {
|
|
|
16
16
|
const logoMain: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
17
|
const logoIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
18
18
|
const notification: PropTypes.Requireable<string>;
|
|
19
|
-
const
|
|
19
|
+
const enableNotification: PropTypes.Requireable<boolean>;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
@@ -13,7 +13,7 @@ export type LoginPageProps = BaseAuthProps & {
|
|
|
13
13
|
* <Route path="/recover" component={RecoverPage} />
|
|
14
14
|
* </CustomRoutes>
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
enablePasswordRecover?: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Indica se abilitare o meno la schermata di registrazione.
|
|
19
19
|
* Se abilitato è opportuno registrare una rotta a /register con un componente
|
|
@@ -26,7 +26,7 @@ export type LoginPageProps = BaseAuthProps & {
|
|
|
26
26
|
* <Route path="/register" component={RegisterPage} />
|
|
27
27
|
* </CustomRoutes>
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
enableRegistration?: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Indica la pagina a cui reindirizzare l'utente dopo il login.
|
|
32
32
|
* Se non specificata viene utilizzata la home page di react-admin.
|
|
@@ -34,16 +34,16 @@ export type LoginPageProps = BaseAuthProps & {
|
|
|
34
34
|
redirectTo: string;
|
|
35
35
|
};
|
|
36
36
|
declare const LoginPage: {
|
|
37
|
-
({ version, name,
|
|
37
|
+
({ version, name, 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>;
|
|
41
|
-
|
|
41
|
+
enablePasswordRecover: PropTypes.Requireable<boolean>;
|
|
42
42
|
enableRegister: PropTypes.Requireable<boolean>;
|
|
43
43
|
background: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
44
44
|
};
|
|
45
45
|
defaultProps: {
|
|
46
|
-
|
|
46
|
+
enablePasswordRecover: boolean;
|
|
47
47
|
enableRegister: boolean;
|
|
48
48
|
background: import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
};
|
|
@@ -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,
|
|
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;2FAA0F,cAAc;;;;;;;;;;;;;CA6FtH,CAAC;AAeF,eAAe,SAAS,CAAC"}
|
|
@@ -1,87 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
export type ThemeFontFamily = `'Inter', sans-serif` | `'Poppins', sans-serif` | `'Roboto', sans-serif` | `'Public Sans', sans-serif`;
|
|
4
|
+
export type ThemeOrientation = 'vertical' | 'horizontal';
|
|
5
|
+
export type ThemeMode = 'light' | 'dark';
|
|
6
|
+
export type ThemePresetColor = 'default' | 'theme1' | 'theme2' | 'theme3' | 'theme4' | 'theme5' | 'theme6' | 'theme7' | 'theme8';
|
|
7
|
+
export type ThemeDirection = 'ltr' | 'rtl';
|
|
8
|
+
declare const ThemeConfigContext: import("react").Context<ThemeConfig>;
|
|
9
|
+
/**
|
|
10
|
+
* Elenco delle personalizzazioni disponibili per il tema Mantis.
|
|
11
|
+
*/
|
|
12
|
+
export type ThemeConfig = {
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
12
|
-
* We provide static below options -
|
|
13
|
-
* `'Inter', sans-serif`
|
|
14
|
-
* `'Poppins', sans-serif`
|
|
15
|
-
* `'Roboto', sans-serif`
|
|
16
|
-
* `'Public Sans', sans-serif` (default)
|
|
14
|
+
* Indica il font da utilizzare con il tema.
|
|
17
15
|
*/
|
|
18
|
-
fontFamily:
|
|
16
|
+
fontFamily: ThemeFontFamily;
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
21
|
-
* we provide static below options -
|
|
22
|
-
* 'vertical' (default)
|
|
23
|
-
* 'horizontal'
|
|
18
|
+
* Indica la disposizione del menu (verticale o orizzontale)
|
|
24
19
|
*/
|
|
25
|
-
menuOrientation:
|
|
20
|
+
menuOrientation: ThemeOrientation;
|
|
26
21
|
/**
|
|
27
|
-
*
|
|
28
|
-
* the mini variant is recommended for apps sections that need quick selection access alongside content.
|
|
29
|
-
* default - false
|
|
22
|
+
* Indica se abilitare il menu ridotto, utile per le app in cui è necessario accedere velocemente alle funzioni.
|
|
30
23
|
*/
|
|
31
24
|
miniDrawer: boolean;
|
|
32
25
|
/**
|
|
33
|
-
*
|
|
34
|
-
* the container centers your content horizontally. It's the most basic layout element.
|
|
35
|
-
* default - true which show container
|
|
36
|
-
* false - will show fluid
|
|
26
|
+
* Indica se il contenitore principale deve avere larghezza fluida (true) o fissa (false)
|
|
37
27
|
*/
|
|
38
28
|
container: boolean;
|
|
39
29
|
/**
|
|
40
|
-
*
|
|
41
|
-
* explore the default theme
|
|
42
|
-
* below theme options -
|
|
43
|
-
* 'light' (default)
|
|
44
|
-
* 'dark'
|
|
30
|
+
* Indica il tema da utilizzare (light o dark)
|
|
45
31
|
*/
|
|
46
|
-
mode:
|
|
32
|
+
mode: ThemeMode;
|
|
47
33
|
/**
|
|
48
|
-
*
|
|
49
|
-
* we provide static below options thoe s are already defaine in src/themes/theme -
|
|
50
|
-
* 'default'
|
|
51
|
-
* 'theme1'
|
|
52
|
-
* 'theme2'
|
|
53
|
-
* 'theme3'
|
|
54
|
-
* 'theme4'
|
|
55
|
-
* 'theme5'
|
|
56
|
-
* 'theme6'
|
|
57
|
-
* 'theme7'
|
|
58
|
-
* 'theme8'
|
|
34
|
+
* Indica la variante del tema da utilizzare (default, theme1, theme2, theme3, theme4, theme5, theme6, theme7, theme8)
|
|
59
35
|
*/
|
|
60
|
-
presetColor:
|
|
36
|
+
presetColor: ThemePresetColor;
|
|
61
37
|
/**
|
|
62
|
-
*
|
|
63
|
-
* explore the default theme
|
|
64
|
-
* below theme options -
|
|
65
|
-
* 'ltr' (default)
|
|
66
|
-
* 'rtl'
|
|
38
|
+
* Indica la direzione del tema (ltr o rtl)
|
|
67
39
|
*/
|
|
68
|
-
themeDirection:
|
|
40
|
+
themeDirection: ThemeDirection;
|
|
69
41
|
/**
|
|
70
|
-
*
|
|
42
|
+
* Indica il path di default per il routing.
|
|
71
43
|
*/
|
|
72
44
|
appDefaultPath: string;
|
|
73
45
|
/**
|
|
74
|
-
*
|
|
46
|
+
* Indica la dimensione del drawer.
|
|
75
47
|
*/
|
|
76
48
|
drawerWidth: number;
|
|
77
49
|
/**
|
|
78
|
-
*
|
|
50
|
+
* Indica il numero massimo di elementi da mostrare nel menu orizzontale.
|
|
79
51
|
*/
|
|
80
52
|
horizontalMaxItems: number;
|
|
81
53
|
/**
|
|
82
|
-
*
|
|
54
|
+
* Indica la spaziatura da utilizzare tra i componenti.
|
|
83
55
|
*/
|
|
84
56
|
spacing: number;
|
|
85
|
-
}
|
|
86
|
-
|
|
57
|
+
};
|
|
58
|
+
export type ThemeConfigProviderProps = {
|
|
59
|
+
children: React.ReactNode;
|
|
60
|
+
initialConfig: ThemeConfig;
|
|
61
|
+
};
|
|
62
|
+
declare const ThemeConfigProvider: {
|
|
63
|
+
({ initialConfig, children }: ThemeConfigProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
propTypes: {
|
|
65
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export { ThemeConfigProvider, ThemeConfigContext };
|
|
87
69
|
//# sourceMappingURL=ThemeConfigContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeConfigContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeConfigContext.
|
|
1
|
+
{"version":3,"file":"ThemeConfigContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeConfigContext.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,uBAAuB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;AACrI,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACjI,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,CAAC;AAgB3C,QAAA,MAAM,kBAAkB,sCAA8B,CAAC;AAIvD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,UAAU,EAAE,eAAe,CAAC;IAE5B;;OAEG;IACH,eAAe,EAAE,gBAAgB,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,EAAE,WAAW,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,mBAAmB;kCAAiC,wBAAwB;;;;CAmCjF,CAAC;AAMF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
export default useThemeConfig;
|
|
2
|
-
declare function useThemeConfig():
|
|
3
|
-
fontFamily: string;
|
|
4
|
-
menuOrientation: string;
|
|
5
|
-
miniDrawer: boolean;
|
|
6
|
-
container: boolean;
|
|
7
|
-
mode: string;
|
|
8
|
-
presetColor: string;
|
|
9
|
-
themeDirection: string;
|
|
10
|
-
appDefaultPath: string;
|
|
11
|
-
drawerWidth: number;
|
|
12
|
-
horizontalMaxItems: number;
|
|
13
|
-
spacing: number;
|
|
14
|
-
};
|
|
2
|
+
declare function useThemeConfig(): import("../contexts/ThemeConfigContext").ThemeConfig;
|
|
15
3
|
//# sourceMappingURL=useThemeConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeConfig.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemeConfig.jsx"],"names":[],"mappings":";AAGA
|
|
1
|
+
{"version":3,"file":"useThemeConfig.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemeConfig.jsx"],"names":[],"mappings":";AAGA,wFAA2D"}
|