@djangocfg/layouts 1.4.19 → 1.4.20
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/layouts",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.20",
|
|
4
4
|
"description": "Pre-built dashboard layouts, authentication pages, and admin templates for Next.js applications with Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"check": "tsc --noEmit"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@djangocfg/api": "^1.4.
|
|
89
|
-
"@djangocfg/og-image": "^1.4.
|
|
90
|
-
"@djangocfg/ui": "^1.4.
|
|
88
|
+
"@djangocfg/api": "^1.4.20",
|
|
89
|
+
"@djangocfg/og-image": "^1.4.20",
|
|
90
|
+
"@djangocfg/ui": "^1.4.20",
|
|
91
91
|
"@hookform/resolvers": "^5.2.0",
|
|
92
92
|
"consola": "^3.4.2",
|
|
93
93
|
"lucide-react": "^0.468.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"vidstack": "0.6.15"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@djangocfg/typescript-config": "^1.4.
|
|
111
|
+
"@djangocfg/typescript-config": "^1.4.20",
|
|
112
112
|
"@types/node": "^24.7.2",
|
|
113
113
|
"@types/react": "19.2.2",
|
|
114
114
|
"@types/react-dom": "19.2.1",
|
|
@@ -48,7 +48,10 @@ export interface CoreProvidersProps {
|
|
|
48
48
|
*/
|
|
49
49
|
export function CoreProviders({ children, config, validation, cors, network, onError }: CoreProvidersProps) {
|
|
50
50
|
return (
|
|
51
|
-
<ThemeProvider
|
|
51
|
+
<ThemeProvider
|
|
52
|
+
defaultTheme={config.theme?.defaultTheme}
|
|
53
|
+
storageKey={config.theme?.storageKey}
|
|
54
|
+
>
|
|
52
55
|
<AuthProvider
|
|
53
56
|
config={{
|
|
54
57
|
apiUrl: config.api.baseUrl,
|
|
@@ -24,6 +24,14 @@ export interface AppLayoutConfig {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
/** Theme configuration */
|
|
28
|
+
theme?: {
|
|
29
|
+
/** Default theme (default: 'light') */
|
|
30
|
+
defaultTheme?: 'light' | 'dark';
|
|
31
|
+
/** Storage key for theme persistence (default: 'theme') */
|
|
32
|
+
storageKey?: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
27
35
|
/** API configuration */
|
|
28
36
|
api: {
|
|
29
37
|
baseUrl: string;
|