@djangocfg/layouts 2.1.436 → 2.1.438

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.436",
3
+ "version": "2.1.438",
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.436",
93
- "@djangocfg/centrifugo": "^2.1.436",
94
- "@djangocfg/debuger": "^2.1.436",
95
- "@djangocfg/i18n": "^2.1.436",
96
- "@djangocfg/monitor": "^2.1.436",
97
- "@djangocfg/ui-core": "^2.1.436",
92
+ "@djangocfg/api": "^2.1.438",
93
+ "@djangocfg/centrifugo": "^2.1.438",
94
+ "@djangocfg/debuger": "^2.1.438",
95
+ "@djangocfg/i18n": "^2.1.438",
96
+ "@djangocfg/monitor": "^2.1.438",
97
+ "@djangocfg/ui-core": "^2.1.438",
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.436",
129
- "@djangocfg/centrifugo": "^2.1.436",
130
- "@djangocfg/debuger": "^2.1.436",
131
- "@djangocfg/i18n": "^2.1.436",
132
- "@djangocfg/monitor": "^2.1.436",
133
- "@djangocfg/typescript-config": "^2.1.436",
134
- "@djangocfg/ui-core": "^2.1.436",
135
- "@djangocfg/ui-tools": "^2.1.436",
128
+ "@djangocfg/api": "^2.1.438",
129
+ "@djangocfg/centrifugo": "^2.1.438",
130
+ "@djangocfg/debuger": "^2.1.438",
131
+ "@djangocfg/i18n": "^2.1.438",
132
+ "@djangocfg/monitor": "^2.1.438",
133
+ "@djangocfg/typescript-config": "^2.1.438",
134
+ "@djangocfg/ui-core": "^2.1.438",
135
+ "@djangocfg/ui-tools": "^2.1.438",
136
136
  "@types/node": "^25.2.3",
137
137
  "@types/react": "^19.2.15",
138
138
  "@types/react-dom": "^19.2.3",
@@ -45,12 +45,11 @@ function subMenuLinkCls(active: boolean) {
45
45
  );
46
46
  }
47
47
 
48
- // Surface mirrors the navbar shell's glass (bg-background/72 + 10px blur,
49
- // card-tinted in dark) so the dropdown reads as the same translucent material
50
- // as the bar it drops from previously it was bg-background/95 + blur-sm, i.e.
51
- // near-opaque with nothing to blur, so it looked flat next to the glassy bar.
48
+ // Real glass: low-opacity surface so the blur actually shows the page behind
49
+ // it. backdrop-blur-2xl + saturate gives the frosted look; the previous
50
+ // bg-card/80 (80% opaque) let almost nothing through, so the blur was invisible.
52
51
  const popoverCls =
53
- 'absolute left-0 top-full mt-1 z-[1200] min-w-[14.5rem] rounded-xl border border-border/70 bg-background/72 backdrop-blur-[10px] dark:bg-card/80 p-1.5 shadow-[0_1px_2px_rgba(0,0,0,0.05),0_6px_18px_rgba(0,0,0,0.035)] dark:shadow-[0_6px_20px_rgba(0,0,0,0.12)]';
52
+ 'absolute left-0 top-full mt-1 z-[1200] min-w-[14.5rem] rounded-xl border border-white/10 bg-background/55 backdrop-blur-2xl backdrop-saturate-150 dark:bg-card/55 p-1.5 shadow-[0_1px_2px_rgba(0,0,0,0.05),0_8px_28px_rgba(0,0,0,0.18)] dark:shadow-[0_8px_30px_rgba(0,0,0,0.45)]';
54
53
 
55
54
  function NavDesktopItemsRaw({
56
55
  items,
@@ -105,7 +105,12 @@ export function MobileDrawerShell(props: MobileDrawerShellProps) {
105
105
  >
106
106
  <div
107
107
  className={cn(
108
- 'mx-auto flex h-full min-h-0 max-h-full w-full flex-col overflow-hidden bg-background/72 backdrop-blur-[10px] dark:bg-card/80 transform-gpu will-change-transform transition-[transform,opacity] duration-[220ms] ease-out',
108
+ // Auto height: the panel hugs its content and only grows as tall as
109
+ // it needs, capped by `max-height` below so it never exceeds the
110
+ // screen (then the inner list scrolls). `h-full` would force it to
111
+ // fill the whole navbar-bottom→screen-bottom region even with a few
112
+ // links, leaving dead space.
113
+ 'mx-auto flex min-h-0 w-full flex-col overflow-hidden bg-background/72 backdrop-blur-[10px] dark:bg-card/80 transform-gpu will-change-transform transition-[transform,opacity] duration-[220ms] ease-out',
109
114
  props.panelClassName,
110
115
  props.outerClassName,
111
116
  visible
@@ -77,7 +77,10 @@ export function LocaleSwitcherDropdown({
77
77
  </Button>
78
78
  )}
79
79
  </DropdownMenuTrigger>
80
- <DropdownMenuContent align="end">
80
+ <DropdownMenuContent
81
+ align="end"
82
+ className="border-white/10 bg-popover/60 backdrop-blur-2xl backdrop-saturate-150"
83
+ >
81
84
  {locales.map((code) => {
82
85
  const meta = getLocaleMeta(code, labels);
83
86
  const active = code === locale;