@djangocfg/layouts 2.1.125 → 2.1.127

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": "2.1.125",
3
+ "version": "2.1.127",
4
4
  "description": "Simple, straightforward layout components for Next.js - import and use with props",
5
5
  "keywords": [
6
6
  "layouts",
@@ -74,12 +74,12 @@
74
74
  "check": "tsc --noEmit"
75
75
  },
76
76
  "peerDependencies": {
77
- "@djangocfg/api": "^2.1.125",
78
- "@djangocfg/centrifugo": "^2.1.125",
79
- "@djangocfg/i18n": "^2.1.125",
80
- "@djangocfg/ui-core": "^2.1.125",
81
- "@djangocfg/ui-nextjs": "^2.1.125",
82
- "@djangocfg/ui-tools": "^2.1.125",
77
+ "@djangocfg/api": "^2.1.127",
78
+ "@djangocfg/centrifugo": "^2.1.127",
79
+ "@djangocfg/i18n": "^2.1.127",
80
+ "@djangocfg/ui-core": "^2.1.127",
81
+ "@djangocfg/ui-nextjs": "^2.1.127",
82
+ "@djangocfg/ui-tools": "^2.1.127",
83
83
  "@hookform/resolvers": "^5.2.2",
84
84
  "consola": "^3.4.2",
85
85
  "lucide-react": "^0.545.0",
@@ -102,13 +102,13 @@
102
102
  "uuid": "^11.1.0"
103
103
  },
104
104
  "devDependencies": {
105
- "@djangocfg/api": "^2.1.125",
106
- "@djangocfg/i18n": "^2.1.125",
107
- "@djangocfg/centrifugo": "^2.1.125",
108
- "@djangocfg/typescript-config": "^2.1.125",
109
- "@djangocfg/ui-core": "^2.1.125",
110
- "@djangocfg/ui-nextjs": "^2.1.125",
111
- "@djangocfg/ui-tools": "^2.1.125",
105
+ "@djangocfg/api": "^2.1.127",
106
+ "@djangocfg/i18n": "^2.1.127",
107
+ "@djangocfg/centrifugo": "^2.1.127",
108
+ "@djangocfg/typescript-config": "^2.1.127",
109
+ "@djangocfg/ui-core": "^2.1.127",
110
+ "@djangocfg/ui-nextjs": "^2.1.127",
111
+ "@djangocfg/ui-tools": "^2.1.127",
112
112
  "@types/node": "^24.7.2",
113
113
  "@types/react": "^19.1.0",
114
114
  "@types/react-dom": "^19.1.0",
@@ -81,6 +81,8 @@ export interface SidebarConfig {
81
81
  groups: SidebarGroupConfig[];
82
82
  /** Home link href */
83
83
  homeHref?: string;
84
+ /** Custom footer component rendered at the bottom of the sidebar */
85
+ footer?: ReactNode;
84
86
  }
85
87
 
86
88
  export interface HeaderConfig {
@@ -11,7 +11,7 @@ import { usePathname } from 'next/navigation';
11
11
  import React from 'react';
12
12
 
13
13
  import {
14
- Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader,
14
+ Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader,
15
15
  SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, useSidebar
16
16
  } from '@djangocfg/ui-nextjs/components';
17
17
  import { cn } from '@djangocfg/ui-core/lib';
@@ -142,6 +142,13 @@ export function PrivateSidebar({ sidebar }: PrivateSidebarProps) {
142
142
  </SidebarHeader>
143
143
 
144
144
  <SidebarContent>{renderContent()}</SidebarContent>
145
+
146
+ {/* Footer */}
147
+ {sidebar.footer && (
148
+ <SidebarFooter>
149
+ {sidebar.footer}
150
+ </SidebarFooter>
151
+ )}
145
152
  </Sidebar>
146
153
  );
147
154
  }