@djangocfg/layouts 2.1.435 → 2.1.437

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.435",
3
+ "version": "2.1.437",
4
4
  "description": "Simple, straightforward layout components for Next.js - import and use with props",
5
5
  "keywords": [
6
6
  "layouts",
@@ -89,12 +89,12 @@
89
89
  "check": "tsc --noEmit"
90
90
  },
91
91
  "peerDependencies": {
92
- "@djangocfg/api": "^2.1.435",
93
- "@djangocfg/centrifugo": "^2.1.435",
94
- "@djangocfg/debuger": "^2.1.435",
95
- "@djangocfg/i18n": "^2.1.435",
96
- "@djangocfg/monitor": "^2.1.435",
97
- "@djangocfg/ui-core": "^2.1.435",
92
+ "@djangocfg/api": "^2.1.437",
93
+ "@djangocfg/centrifugo": "^2.1.437",
94
+ "@djangocfg/debuger": "^2.1.437",
95
+ "@djangocfg/i18n": "^2.1.437",
96
+ "@djangocfg/monitor": "^2.1.437",
97
+ "@djangocfg/ui-core": "^2.1.437",
98
98
  "@hookform/resolvers": "^5.2.2",
99
99
  "consola": "^3.4.2",
100
100
  "lucide-react": "^0.545.0",
@@ -125,14 +125,14 @@
125
125
  "uuid": "^11.1.0"
126
126
  },
127
127
  "devDependencies": {
128
- "@djangocfg/api": "^2.1.435",
129
- "@djangocfg/centrifugo": "^2.1.435",
130
- "@djangocfg/debuger": "^2.1.435",
131
- "@djangocfg/i18n": "^2.1.435",
132
- "@djangocfg/monitor": "^2.1.435",
133
- "@djangocfg/typescript-config": "^2.1.435",
134
- "@djangocfg/ui-core": "^2.1.435",
135
- "@djangocfg/ui-tools": "^2.1.435",
128
+ "@djangocfg/api": "^2.1.437",
129
+ "@djangocfg/centrifugo": "^2.1.437",
130
+ "@djangocfg/debuger": "^2.1.437",
131
+ "@djangocfg/i18n": "^2.1.437",
132
+ "@djangocfg/monitor": "^2.1.437",
133
+ "@djangocfg/typescript-config": "^2.1.437",
134
+ "@djangocfg/ui-core": "^2.1.437",
135
+ "@djangocfg/ui-tools": "^2.1.437",
136
136
  "@types/node": "^25.2.3",
137
137
  "@types/react": "^19.2.15",
138
138
  "@types/react-dom": "^19.2.3",
@@ -53,20 +53,6 @@ export interface PublicLayoutProps {
53
53
  */
54
54
  navbar?: ReactNode;
55
55
  footer?: ReactNode;
56
- /**
57
- * Optional background layer rendered behind navbar and content.
58
- * Use `position: fixed; inset: 0; pointer-events: none` (or similar) on the element
59
- * so it fills the viewport without affecting layout flow.
60
- *
61
- * @example
62
- * ```tsx
63
- * backgroundSlot={
64
- * <div className="fixed inset-0 -z-10 pointer-events-none"
65
- * style={{ background: 'radial-gradient(ellipse 60% 50% at 10% 0%, violet, transparent)' }} />
66
- * }
67
- * ```
68
- */
69
- backgroundSlot?: ReactNode;
70
56
  /**
71
57
  * When `auto` (default), `<main>` gets a small top offset from `PublicNavigation` surface
72
58
  * (`floating` vs `flush`). Set `none` if the page controls spacing itself.
@@ -119,7 +105,6 @@ export function PublicLayout({
119
105
  children,
120
106
  navbar,
121
107
  footer,
122
- backgroundSlot,
123
108
  contentTopSpacing = 'auto',
124
109
  contentBottomSpacing = 'auto',
125
110
  }: PublicLayoutProps) {
@@ -149,33 +134,17 @@ export function PublicLayout({
149
134
 
150
135
  return (
151
136
  <PublicLayoutProvider value={contextValue}>
152
- {/*
153
- `isolate` creates a self-contained stacking context on the layout root,
154
- so the background slot and content stack against each other — NOT against
155
- the host's <body>/<html> background. This is what lets a consumer drop in
156
- a `backgroundSlot` (e.g. a fixed full-bleed canvas) and have it show
157
- through the translucent navbar WITHOUT needing to make <body> transparent.
158
- */}
159
- <div className="isolate">
160
- {/* Background slot — its own layer at z-0, behind navbar + content but
161
- inside this isolation context (so it can't fall behind the page bg). */}
162
- {backgroundSlot ? (
163
- <div className="pointer-events-none absolute inset-0 z-0">{backgroundSlot}</div>
164
- ) : null}
165
-
166
- {/* Content sits above the background within the same isolation context. */}
167
- <div className="relative z-10 min-h-screen flex flex-col">
168
- {navbar ?? null}
169
-
170
- <PublicMain
171
- contentTopSpacing={contentTopSpacing}
172
- contentBottomSpacing={contentBottomSpacing}
173
- >
174
- {children}
175
- </PublicMain>
176
-
177
- {footer ?? null}
178
- </div>
137
+ <div className="min-h-screen flex flex-col">
138
+ {navbar ?? null}
139
+
140
+ <PublicMain
141
+ contentTopSpacing={contentTopSpacing}
142
+ contentBottomSpacing={contentBottomSpacing}
143
+ >
144
+ {children}
145
+ </PublicMain>
146
+
147
+ {footer ?? null}
179
148
  </div>
180
149
  </PublicLayoutProvider>
181
150
  );
@@ -19,7 +19,6 @@ import { PublicLayout, FloatingNavbar, DefaultFooter } from '@djangocfg/layouts'
19
19
  |---|---|---|---|
20
20
  | `navbar` | `ReactNode` | — | Pick a variant (below) or drop in your own. |
21
21
  | `footer` | `ReactNode` | — | Usually `DefaultFooter`. |
22
- | `backgroundSlot` | `ReactNode` | — | Full-viewport layer behind navbar + content. Use `fixed inset-0 -z-10 pointer-events-none`. |
23
22
  | `contentTopSpacing` | `'auto' \| 'none'` | `'auto'` | Auto pads `<main>` based on the navbar variant. |
24
23
  | `contentBottomSpacing` | `'auto' \| 'none' \| 'compact'` | `'auto'` | Bottom breathing room before footer. |
25
24