@opensite/ui 1.0.3 → 1.0.5
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/navbar-animated-preview.cjs +67 -82
- package/dist/navbar-animated-preview.js +67 -81
- package/dist/navbar-centered-menu.cjs +101 -125
- package/dist/navbar-centered-menu.js +101 -124
- package/dist/navbar-dark-icons.cjs +67 -81
- package/dist/navbar-dark-icons.js +67 -80
- package/dist/navbar-dropdown-menu.cjs +87 -122
- package/dist/navbar-dropdown-menu.js +87 -121
- package/dist/navbar-education-platform.cjs +1 -1
- package/dist/navbar-education-platform.js +1 -1
- package/dist/navbar-enterprise-mega.cjs +7 -7
- package/dist/navbar-enterprise-mega.js +7 -7
- package/dist/navbar-feature-grid.cjs +131 -150
- package/dist/navbar-feature-grid.d.cts +9 -1
- package/dist/navbar-feature-grid.d.ts +9 -1
- package/dist/navbar-feature-grid.js +131 -149
- package/dist/navbar-floating-pill.cjs +2 -2
- package/dist/navbar-floating-pill.js +2 -2
- package/dist/navbar-fullscreen-menu.cjs +1 -1
- package/dist/navbar-fullscreen-menu.js +1 -1
- package/dist/navbar-icon-links.cjs +102 -138
- package/dist/navbar-icon-links.js +102 -137
- package/dist/navbar-image-preview.cjs +64 -95
- package/dist/navbar-image-preview.js +64 -94
- package/dist/navbar-mega-menu.cjs +1 -1
- package/dist/navbar-mega-menu.js +1 -1
- package/dist/navbar-multi-column-groups.cjs +67 -81
- package/dist/navbar-multi-column-groups.js +67 -80
- package/dist/navbar-platform-resources.cjs +80 -42
- package/dist/navbar-platform-resources.js +80 -42
- package/dist/navbar-search-focused.cjs +76 -93
- package/dist/navbar-search-focused.js +76 -92
- package/dist/navbar-sidebar-mobile.cjs +76 -93
- package/dist/navbar-sidebar-mobile.js +76 -92
- package/dist/navbar-simple-links.cjs +1 -1
- package/dist/navbar-simple-links.js +1 -1
- package/dist/navbar-split-cta.cjs +78 -95
- package/dist/navbar-split-cta.js +78 -94
- package/dist/navbar-sticky-compact.cjs +82 -100
- package/dist/navbar-sticky-compact.js +82 -99
- package/dist/navbar-tabbed-sections.cjs +91 -115
- package/dist/navbar-tabbed-sections.js +91 -114
- package/dist/navbar-transparent-overlay.cjs +1 -1
- package/dist/navbar-transparent-overlay.js +1 -1
- package/dist/registry.cjs +594 -618
- package/dist/registry.js +593 -617
- package/package.json +1 -1
|
@@ -8,7 +8,6 @@ var classVarianceAuthority = require('class-variance-authority');
|
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var img = require('@page-speed/img');
|
|
10
10
|
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
11
|
-
var SheetPrimitive = require('@radix-ui/react-dialog');
|
|
12
11
|
|
|
13
12
|
function _interopNamespace(e) {
|
|
14
13
|
if (e && e.__esModule) return e;
|
|
@@ -30,7 +29,6 @@ function _interopNamespace(e) {
|
|
|
30
29
|
|
|
31
30
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
31
|
var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
|
|
33
|
-
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
34
32
|
|
|
35
33
|
// components/blocks/navbars/navbar-image-preview.tsx
|
|
36
34
|
function cn(...inputs) {
|
|
@@ -826,14 +824,14 @@ function PatternBackground({
|
|
|
826
824
|
);
|
|
827
825
|
}
|
|
828
826
|
if (pattern in patternOverlays) {
|
|
829
|
-
const
|
|
827
|
+
const Overlay = patternOverlays[pattern];
|
|
830
828
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
831
829
|
"div",
|
|
832
830
|
{
|
|
833
831
|
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
834
832
|
style: { opacity, ...style },
|
|
835
833
|
"aria-hidden": "true",
|
|
836
|
-
children:
|
|
834
|
+
children: Overlay()
|
|
837
835
|
}
|
|
838
836
|
);
|
|
839
837
|
}
|
|
@@ -1132,80 +1130,62 @@ function NavigationMenuLink({
|
|
|
1132
1130
|
}
|
|
1133
1131
|
);
|
|
1134
1132
|
}
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
...props
|
|
1140
|
-
}) {
|
|
1141
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Close, { "data-slot": "sheet-close", ...props });
|
|
1142
|
-
}
|
|
1143
|
-
function SheetPortal({
|
|
1144
|
-
...props
|
|
1145
|
-
}) {
|
|
1146
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1147
|
-
}
|
|
1148
|
-
function SheetOverlay({
|
|
1133
|
+
var NavbarMobileMenu = ({
|
|
1134
|
+
open,
|
|
1135
|
+
onClose,
|
|
1136
|
+
children,
|
|
1149
1137
|
className,
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1138
|
+
contentClassName,
|
|
1139
|
+
title = "Mobile Navigation"
|
|
1140
|
+
}) => {
|
|
1141
|
+
React__namespace.useEffect(() => {
|
|
1142
|
+
if (open) {
|
|
1143
|
+
const originalOverflow = document.body.style.overflow;
|
|
1144
|
+
document.body.style.overflow = "hidden";
|
|
1145
|
+
return () => {
|
|
1146
|
+
document.body.style.overflow = originalOverflow;
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
}, [open]);
|
|
1150
|
+
if (!open) return null;
|
|
1151
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1152
|
+
"div",
|
|
1154
1153
|
{
|
|
1155
|
-
"data-slot": "sheet-overlay",
|
|
1156
1154
|
className: cn(
|
|
1157
|
-
"
|
|
1155
|
+
"fixed inset-0 z-[998] flex flex-col bg-background",
|
|
1156
|
+
"animate-in slide-in-from-top duration-300",
|
|
1157
|
+
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1158
1158
|
className
|
|
1159
1159
|
),
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
children,
|
|
1187
|
-
/* @__PURE__ */ jsxRuntime.jsxs(SheetPrimitive__namespace.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1188
|
-
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1189
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1190
|
-
] })
|
|
1191
|
-
]
|
|
1192
|
-
}
|
|
1193
|
-
)
|
|
1194
|
-
] });
|
|
1195
|
-
}
|
|
1196
|
-
function SheetTitle({
|
|
1197
|
-
className,
|
|
1198
|
-
...props
|
|
1199
|
-
}) {
|
|
1200
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1201
|
-
SheetPrimitive__namespace.Title,
|
|
1202
|
-
{
|
|
1203
|
-
"data-slot": "sheet-title",
|
|
1204
|
-
className: cn("text-foreground font-semibold", className),
|
|
1205
|
-
...props
|
|
1160
|
+
"data-state": open ? "open" : "closed",
|
|
1161
|
+
children: [
|
|
1162
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { children: title }) }),
|
|
1163
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1164
|
+
"button",
|
|
1165
|
+
{
|
|
1166
|
+
onClick: onClose,
|
|
1167
|
+
className: "flex size-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
1168
|
+
"aria-label": "Close mobile menu",
|
|
1169
|
+
children: [
|
|
1170
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1171
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1172
|
+
]
|
|
1173
|
+
}
|
|
1174
|
+
) }),
|
|
1175
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1176
|
+
"div",
|
|
1177
|
+
{
|
|
1178
|
+
className: cn(
|
|
1179
|
+
"h-full overflow-y-auto pt-20 pb-8 px-4 sm:px-6",
|
|
1180
|
+
contentClassName
|
|
1181
|
+
),
|
|
1182
|
+
children
|
|
1183
|
+
}
|
|
1184
|
+
)
|
|
1185
|
+
]
|
|
1206
1186
|
}
|
|
1207
1187
|
);
|
|
1208
|
-
}
|
|
1188
|
+
};
|
|
1209
1189
|
|
|
1210
1190
|
// components/blocks/navbars/types.ts
|
|
1211
1191
|
function getLinkUrl(item) {
|
|
@@ -1227,7 +1207,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1227
1207
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1228
1208
|
containerWrapperClasses: cn(
|
|
1229
1209
|
"w-full",
|
|
1230
|
-
isFloatingBar && "mx-auto
|
|
1210
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1231
1211
|
),
|
|
1232
1212
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1233
1213
|
innerContainerClasses: cn(
|
|
@@ -1602,32 +1582,21 @@ var MobileNavigationMenu = ({
|
|
|
1602
1582
|
);
|
|
1603
1583
|
}) });
|
|
1604
1584
|
}, [authActionsSlot, authActions]);
|
|
1605
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1606
|
-
|
|
1585
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1586
|
+
NavbarMobileMenu,
|
|
1607
1587
|
{
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
asButton: true,
|
|
1618
|
-
className: "size-9 rounded-full bg-muted/20 hover:bg-muted/20",
|
|
1619
|
-
onClick: () => setOpen(false),
|
|
1620
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", size: 22 })
|
|
1621
|
-
}
|
|
1622
|
-
) }) }),
|
|
1623
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col justify-between gap-30 pt-24", children: [
|
|
1624
|
-
renderMobileNavigation,
|
|
1625
|
-
renderSocialLinks,
|
|
1626
|
-
renderMobileAuthActions
|
|
1627
|
-
] })
|
|
1588
|
+
open,
|
|
1589
|
+
onClose: () => setOpen(false),
|
|
1590
|
+
title: "Mobile Navigation",
|
|
1591
|
+
className: "bg-primary text-primary-foreground",
|
|
1592
|
+
contentClassName: "pt-24 pb-12",
|
|
1593
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col justify-between gap-30", children: [
|
|
1594
|
+
renderMobileNavigation,
|
|
1595
|
+
renderSocialLinks,
|
|
1596
|
+
renderMobileAuthActions
|
|
1628
1597
|
] }) })
|
|
1629
1598
|
}
|
|
1630
|
-
)
|
|
1599
|
+
);
|
|
1631
1600
|
};
|
|
1632
1601
|
|
|
1633
1602
|
exports.NavbarImagePreview = NavbarImagePreview;
|
|
@@ -7,7 +7,6 @@ import { cva } from 'class-variance-authority';
|
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { Img } from '@page-speed/img';
|
|
9
9
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
10
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
11
10
|
|
|
12
11
|
// components/blocks/navbars/navbar-image-preview.tsx
|
|
13
12
|
function cn(...inputs) {
|
|
@@ -803,14 +802,14 @@ function PatternBackground({
|
|
|
803
802
|
);
|
|
804
803
|
}
|
|
805
804
|
if (pattern in patternOverlays) {
|
|
806
|
-
const
|
|
805
|
+
const Overlay = patternOverlays[pattern];
|
|
807
806
|
return /* @__PURE__ */ jsx(
|
|
808
807
|
"div",
|
|
809
808
|
{
|
|
810
809
|
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
811
810
|
style: { opacity, ...style },
|
|
812
811
|
"aria-hidden": "true",
|
|
813
|
-
children:
|
|
812
|
+
children: Overlay()
|
|
814
813
|
}
|
|
815
814
|
);
|
|
816
815
|
}
|
|
@@ -1109,80 +1108,62 @@ function NavigationMenuLink({
|
|
|
1109
1108
|
}
|
|
1110
1109
|
);
|
|
1111
1110
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
...props
|
|
1117
|
-
}) {
|
|
1118
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
1119
|
-
}
|
|
1120
|
-
function SheetPortal({
|
|
1121
|
-
...props
|
|
1122
|
-
}) {
|
|
1123
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1124
|
-
}
|
|
1125
|
-
function SheetOverlay({
|
|
1111
|
+
var NavbarMobileMenu = ({
|
|
1112
|
+
open,
|
|
1113
|
+
onClose,
|
|
1114
|
+
children,
|
|
1126
1115
|
className,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1116
|
+
contentClassName,
|
|
1117
|
+
title = "Mobile Navigation"
|
|
1118
|
+
}) => {
|
|
1119
|
+
React.useEffect(() => {
|
|
1120
|
+
if (open) {
|
|
1121
|
+
const originalOverflow = document.body.style.overflow;
|
|
1122
|
+
document.body.style.overflow = "hidden";
|
|
1123
|
+
return () => {
|
|
1124
|
+
document.body.style.overflow = originalOverflow;
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
}, [open]);
|
|
1128
|
+
if (!open) return null;
|
|
1129
|
+
return /* @__PURE__ */ jsxs(
|
|
1130
|
+
"div",
|
|
1131
1131
|
{
|
|
1132
|
-
"data-slot": "sheet-overlay",
|
|
1133
1132
|
className: cn(
|
|
1134
|
-
"
|
|
1133
|
+
"fixed inset-0 z-[998] flex flex-col bg-background",
|
|
1134
|
+
"animate-in slide-in-from-top duration-300",
|
|
1135
|
+
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1135
1136
|
className
|
|
1136
1137
|
),
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
children,
|
|
1164
|
-
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1165
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1166
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1167
|
-
] })
|
|
1168
|
-
]
|
|
1169
|
-
}
|
|
1170
|
-
)
|
|
1171
|
-
] });
|
|
1172
|
-
}
|
|
1173
|
-
function SheetTitle({
|
|
1174
|
-
className,
|
|
1175
|
-
...props
|
|
1176
|
-
}) {
|
|
1177
|
-
return /* @__PURE__ */ jsx(
|
|
1178
|
-
SheetPrimitive.Title,
|
|
1179
|
-
{
|
|
1180
|
-
"data-slot": "sheet-title",
|
|
1181
|
-
className: cn("text-foreground font-semibold", className),
|
|
1182
|
-
...props
|
|
1138
|
+
"data-state": open ? "open" : "closed",
|
|
1139
|
+
children: [
|
|
1140
|
+
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("h2", { children: title }) }),
|
|
1141
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxs(
|
|
1142
|
+
"button",
|
|
1143
|
+
{
|
|
1144
|
+
onClick: onClose,
|
|
1145
|
+
className: "flex size-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
1146
|
+
"aria-label": "Close mobile menu",
|
|
1147
|
+
children: [
|
|
1148
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1149
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1150
|
+
]
|
|
1151
|
+
}
|
|
1152
|
+
) }),
|
|
1153
|
+
/* @__PURE__ */ jsx(
|
|
1154
|
+
"div",
|
|
1155
|
+
{
|
|
1156
|
+
className: cn(
|
|
1157
|
+
"h-full overflow-y-auto pt-20 pb-8 px-4 sm:px-6",
|
|
1158
|
+
contentClassName
|
|
1159
|
+
),
|
|
1160
|
+
children
|
|
1161
|
+
}
|
|
1162
|
+
)
|
|
1163
|
+
]
|
|
1183
1164
|
}
|
|
1184
1165
|
);
|
|
1185
|
-
}
|
|
1166
|
+
};
|
|
1186
1167
|
|
|
1187
1168
|
// components/blocks/navbars/types.ts
|
|
1188
1169
|
function getLinkUrl(item) {
|
|
@@ -1204,7 +1185,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1204
1185
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1205
1186
|
containerWrapperClasses: cn(
|
|
1206
1187
|
"w-full",
|
|
1207
|
-
isFloatingBar && "mx-auto
|
|
1188
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1208
1189
|
),
|
|
1209
1190
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1210
1191
|
innerContainerClasses: cn(
|
|
@@ -1579,32 +1560,21 @@ var MobileNavigationMenu = ({
|
|
|
1579
1560
|
);
|
|
1580
1561
|
}) });
|
|
1581
1562
|
}, [authActionsSlot, authActions]);
|
|
1582
|
-
return /* @__PURE__ */ jsx(
|
|
1583
|
-
|
|
1563
|
+
return /* @__PURE__ */ jsx(
|
|
1564
|
+
NavbarMobileMenu,
|
|
1584
1565
|
{
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
asButton: true,
|
|
1595
|
-
className: "size-9 rounded-full bg-muted/20 hover:bg-muted/20",
|
|
1596
|
-
onClick: () => setOpen(false),
|
|
1597
|
-
children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", size: 22 })
|
|
1598
|
-
}
|
|
1599
|
-
) }) }),
|
|
1600
|
-
/* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col justify-between gap-30 pt-24", children: [
|
|
1601
|
-
renderMobileNavigation,
|
|
1602
|
-
renderSocialLinks,
|
|
1603
|
-
renderMobileAuthActions
|
|
1604
|
-
] })
|
|
1566
|
+
open,
|
|
1567
|
+
onClose: () => setOpen(false),
|
|
1568
|
+
title: "Mobile Navigation",
|
|
1569
|
+
className: "bg-primary text-primary-foreground",
|
|
1570
|
+
contentClassName: "pt-24 pb-12",
|
|
1571
|
+
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col justify-between gap-30", children: [
|
|
1572
|
+
renderMobileNavigation,
|
|
1573
|
+
renderSocialLinks,
|
|
1574
|
+
renderMobileAuthActions
|
|
1605
1575
|
] }) })
|
|
1606
1576
|
}
|
|
1607
|
-
)
|
|
1577
|
+
);
|
|
1608
1578
|
};
|
|
1609
1579
|
|
|
1610
1580
|
export { NavbarImagePreview };
|
|
@@ -1151,7 +1151,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1151
1151
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1152
1152
|
containerWrapperClasses: cn(
|
|
1153
1153
|
"w-full",
|
|
1154
|
-
isFloatingBar && "mx-auto
|
|
1154
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1155
1155
|
),
|
|
1156
1156
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1157
1157
|
innerContainerClasses: cn(
|
package/dist/navbar-mega-menu.js
CHANGED
|
@@ -1129,7 +1129,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1129
1129
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1130
1130
|
containerWrapperClasses: cn(
|
|
1131
1131
|
"w-full",
|
|
1132
|
-
isFloatingBar && "mx-auto
|
|
1132
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1133
1133
|
),
|
|
1134
1134
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1135
1135
|
innerContainerClasses: cn(
|