@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 AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
10
10
|
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
11
|
-
var SheetPrimitive = require('@radix-ui/react-dialog');
|
|
12
11
|
var img = require('@page-speed/img');
|
|
13
12
|
|
|
14
13
|
function _interopNamespace(e) {
|
|
@@ -32,7 +31,6 @@ function _interopNamespace(e) {
|
|
|
32
31
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
32
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
34
33
|
var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
|
|
35
|
-
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
36
34
|
|
|
37
35
|
// components/blocks/navbars/navbar-dark-icons.tsx
|
|
38
36
|
function cn(...inputs) {
|
|
@@ -828,14 +826,14 @@ function PatternBackground({
|
|
|
828
826
|
);
|
|
829
827
|
}
|
|
830
828
|
if (pattern in patternOverlays) {
|
|
831
|
-
const
|
|
829
|
+
const Overlay = patternOverlays[pattern];
|
|
832
830
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
833
831
|
"div",
|
|
834
832
|
{
|
|
835
833
|
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
836
834
|
style: { opacity, ...style },
|
|
837
835
|
"aria-hidden": "true",
|
|
838
|
-
children:
|
|
836
|
+
children: Overlay()
|
|
839
837
|
}
|
|
840
838
|
);
|
|
841
839
|
}
|
|
@@ -1134,75 +1132,62 @@ function NavigationMenuLink({
|
|
|
1134
1132
|
}
|
|
1135
1133
|
);
|
|
1136
1134
|
}
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
...props
|
|
1142
|
-
}) {
|
|
1143
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1144
|
-
}
|
|
1145
|
-
function SheetOverlay({
|
|
1135
|
+
var NavbarMobileMenu = ({
|
|
1136
|
+
open,
|
|
1137
|
+
onClose,
|
|
1138
|
+
children,
|
|
1146
1139
|
className,
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1140
|
+
contentClassName,
|
|
1141
|
+
title = "Mobile Navigation"
|
|
1142
|
+
}) => {
|
|
1143
|
+
React__namespace.useEffect(() => {
|
|
1144
|
+
if (open) {
|
|
1145
|
+
const originalOverflow = document.body.style.overflow;
|
|
1146
|
+
document.body.style.overflow = "hidden";
|
|
1147
|
+
return () => {
|
|
1148
|
+
document.body.style.overflow = originalOverflow;
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
}, [open]);
|
|
1152
|
+
if (!open) return null;
|
|
1153
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1154
|
+
"div",
|
|
1151
1155
|
{
|
|
1152
|
-
"data-slot": "sheet-overlay",
|
|
1153
1156
|
className: cn(
|
|
1154
|
-
"
|
|
1157
|
+
"fixed inset-0 z-[998] flex flex-col bg-background",
|
|
1158
|
+
"animate-in slide-in-from-top duration-300",
|
|
1159
|
+
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1155
1160
|
className
|
|
1156
1161
|
),
|
|
1157
|
-
|
|
1158
|
-
|
|
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
|
-
children,
|
|
1184
|
-
/* @__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: [
|
|
1185
|
-
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1186
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1187
|
-
] })
|
|
1188
|
-
]
|
|
1189
|
-
}
|
|
1190
|
-
)
|
|
1191
|
-
] });
|
|
1192
|
-
}
|
|
1193
|
-
function SheetTitle({
|
|
1194
|
-
className,
|
|
1195
|
-
...props
|
|
1196
|
-
}) {
|
|
1197
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1198
|
-
SheetPrimitive__namespace.Title,
|
|
1199
|
-
{
|
|
1200
|
-
"data-slot": "sheet-title",
|
|
1201
|
-
className: cn("text-foreground font-semibold", className),
|
|
1202
|
-
...props
|
|
1162
|
+
"data-state": open ? "open" : "closed",
|
|
1163
|
+
children: [
|
|
1164
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { children: title }) }),
|
|
1165
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1166
|
+
"button",
|
|
1167
|
+
{
|
|
1168
|
+
onClick: onClose,
|
|
1169
|
+
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",
|
|
1170
|
+
"aria-label": "Close mobile menu",
|
|
1171
|
+
children: [
|
|
1172
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1173
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1174
|
+
]
|
|
1175
|
+
}
|
|
1176
|
+
) }),
|
|
1177
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1178
|
+
"div",
|
|
1179
|
+
{
|
|
1180
|
+
className: cn(
|
|
1181
|
+
"h-full overflow-y-auto pt-20 pb-8 px-4 sm:px-6",
|
|
1182
|
+
contentClassName
|
|
1183
|
+
),
|
|
1184
|
+
children
|
|
1185
|
+
}
|
|
1186
|
+
)
|
|
1187
|
+
]
|
|
1203
1188
|
}
|
|
1204
1189
|
);
|
|
1205
|
-
}
|
|
1190
|
+
};
|
|
1206
1191
|
var NavbarLogo = ({
|
|
1207
1192
|
logo,
|
|
1208
1193
|
logoSlot,
|
|
@@ -1279,7 +1264,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1279
1264
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1280
1265
|
containerWrapperClasses: cn(
|
|
1281
1266
|
"w-full",
|
|
1282
|
-
isFloatingBar && "mx-auto
|
|
1267
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1283
1268
|
),
|
|
1284
1269
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1285
1270
|
innerContainerClasses: cn(
|
|
@@ -1469,6 +1454,7 @@ var NavbarDarkIcons = ({
|
|
|
1469
1454
|
MobileNavigationMenu,
|
|
1470
1455
|
{
|
|
1471
1456
|
open,
|
|
1457
|
+
setOpen,
|
|
1472
1458
|
navigation: navigation ?? [],
|
|
1473
1459
|
authActions,
|
|
1474
1460
|
authActionsSlot
|
|
@@ -1529,6 +1515,7 @@ var MenuSubLink = ({ link }) => {
|
|
|
1529
1515
|
};
|
|
1530
1516
|
var MobileNavigationMenu = ({
|
|
1531
1517
|
open,
|
|
1518
|
+
setOpen,
|
|
1532
1519
|
navigation,
|
|
1533
1520
|
authActions,
|
|
1534
1521
|
authActionsSlot
|
|
@@ -1561,23 +1548,22 @@ var MobileNavigationMenu = ({
|
|
|
1561
1548
|
);
|
|
1562
1549
|
});
|
|
1563
1550
|
}, [authActionsSlot, authActions]);
|
|
1564
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1565
|
-
|
|
1551
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1552
|
+
NavbarMobileMenu,
|
|
1566
1553
|
{
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
] })
|
|
1554
|
+
open,
|
|
1555
|
+
onClose: () => setOpen(false),
|
|
1556
|
+
title: "Mobile Navigation",
|
|
1557
|
+
className: "dark",
|
|
1558
|
+
contentClassName: "pt-4",
|
|
1559
|
+
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-20", children: [
|
|
1560
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map(
|
|
1561
|
+
(item, index) => renderMobileMenuItem(item, index)
|
|
1562
|
+
) }),
|
|
1563
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2 pb-20", children: renderMobileAuthActions })
|
|
1578
1564
|
] }) })
|
|
1579
1565
|
}
|
|
1580
|
-
)
|
|
1566
|
+
);
|
|
1581
1567
|
};
|
|
1582
1568
|
var renderMobileMenuItem = (item, index) => {
|
|
1583
1569
|
if (item.links) {
|
|
@@ -7,7 +7,6 @@ import { cva } from 'class-variance-authority';
|
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
9
9
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
10
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
11
10
|
import { Img } from '@page-speed/img';
|
|
12
11
|
|
|
13
12
|
// components/blocks/navbars/navbar-dark-icons.tsx
|
|
@@ -804,14 +803,14 @@ function PatternBackground({
|
|
|
804
803
|
);
|
|
805
804
|
}
|
|
806
805
|
if (pattern in patternOverlays) {
|
|
807
|
-
const
|
|
806
|
+
const Overlay = patternOverlays[pattern];
|
|
808
807
|
return /* @__PURE__ */ jsx(
|
|
809
808
|
"div",
|
|
810
809
|
{
|
|
811
810
|
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
812
811
|
style: { opacity, ...style },
|
|
813
812
|
"aria-hidden": "true",
|
|
814
|
-
children:
|
|
813
|
+
children: Overlay()
|
|
815
814
|
}
|
|
816
815
|
);
|
|
817
816
|
}
|
|
@@ -1110,75 +1109,62 @@ function NavigationMenuLink({
|
|
|
1110
1109
|
}
|
|
1111
1110
|
);
|
|
1112
1111
|
}
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
...props
|
|
1118
|
-
}) {
|
|
1119
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1120
|
-
}
|
|
1121
|
-
function SheetOverlay({
|
|
1112
|
+
var NavbarMobileMenu = ({
|
|
1113
|
+
open,
|
|
1114
|
+
onClose,
|
|
1115
|
+
children,
|
|
1122
1116
|
className,
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1117
|
+
contentClassName,
|
|
1118
|
+
title = "Mobile Navigation"
|
|
1119
|
+
}) => {
|
|
1120
|
+
React.useEffect(() => {
|
|
1121
|
+
if (open) {
|
|
1122
|
+
const originalOverflow = document.body.style.overflow;
|
|
1123
|
+
document.body.style.overflow = "hidden";
|
|
1124
|
+
return () => {
|
|
1125
|
+
document.body.style.overflow = originalOverflow;
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
}, [open]);
|
|
1129
|
+
if (!open) return null;
|
|
1130
|
+
return /* @__PURE__ */ jsxs(
|
|
1131
|
+
"div",
|
|
1127
1132
|
{
|
|
1128
|
-
"data-slot": "sheet-overlay",
|
|
1129
1133
|
className: cn(
|
|
1130
|
-
"
|
|
1134
|
+
"fixed inset-0 z-[998] flex flex-col bg-background",
|
|
1135
|
+
"animate-in slide-in-from-top duration-300",
|
|
1136
|
+
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1131
1137
|
className
|
|
1132
1138
|
),
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
children,
|
|
1160
|
-
/* @__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: [
|
|
1161
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1162
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1163
|
-
] })
|
|
1164
|
-
]
|
|
1165
|
-
}
|
|
1166
|
-
)
|
|
1167
|
-
] });
|
|
1168
|
-
}
|
|
1169
|
-
function SheetTitle({
|
|
1170
|
-
className,
|
|
1171
|
-
...props
|
|
1172
|
-
}) {
|
|
1173
|
-
return /* @__PURE__ */ jsx(
|
|
1174
|
-
SheetPrimitive.Title,
|
|
1175
|
-
{
|
|
1176
|
-
"data-slot": "sheet-title",
|
|
1177
|
-
className: cn("text-foreground font-semibold", className),
|
|
1178
|
-
...props
|
|
1139
|
+
"data-state": open ? "open" : "closed",
|
|
1140
|
+
children: [
|
|
1141
|
+
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("h2", { children: title }) }),
|
|
1142
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxs(
|
|
1143
|
+
"button",
|
|
1144
|
+
{
|
|
1145
|
+
onClick: onClose,
|
|
1146
|
+
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",
|
|
1147
|
+
"aria-label": "Close mobile menu",
|
|
1148
|
+
children: [
|
|
1149
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1150
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1151
|
+
]
|
|
1152
|
+
}
|
|
1153
|
+
) }),
|
|
1154
|
+
/* @__PURE__ */ jsx(
|
|
1155
|
+
"div",
|
|
1156
|
+
{
|
|
1157
|
+
className: cn(
|
|
1158
|
+
"h-full overflow-y-auto pt-20 pb-8 px-4 sm:px-6",
|
|
1159
|
+
contentClassName
|
|
1160
|
+
),
|
|
1161
|
+
children
|
|
1162
|
+
}
|
|
1163
|
+
)
|
|
1164
|
+
]
|
|
1179
1165
|
}
|
|
1180
1166
|
);
|
|
1181
|
-
}
|
|
1167
|
+
};
|
|
1182
1168
|
var NavbarLogo = ({
|
|
1183
1169
|
logo,
|
|
1184
1170
|
logoSlot,
|
|
@@ -1255,7 +1241,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1255
1241
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1256
1242
|
containerWrapperClasses: cn(
|
|
1257
1243
|
"w-full",
|
|
1258
|
-
isFloatingBar && "mx-auto
|
|
1244
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1259
1245
|
),
|
|
1260
1246
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1261
1247
|
innerContainerClasses: cn(
|
|
@@ -1445,6 +1431,7 @@ var NavbarDarkIcons = ({
|
|
|
1445
1431
|
MobileNavigationMenu,
|
|
1446
1432
|
{
|
|
1447
1433
|
open,
|
|
1434
|
+
setOpen,
|
|
1448
1435
|
navigation: navigation ?? [],
|
|
1449
1436
|
authActions,
|
|
1450
1437
|
authActionsSlot
|
|
@@ -1505,6 +1492,7 @@ var MenuSubLink = ({ link }) => {
|
|
|
1505
1492
|
};
|
|
1506
1493
|
var MobileNavigationMenu = ({
|
|
1507
1494
|
open,
|
|
1495
|
+
setOpen,
|
|
1508
1496
|
navigation,
|
|
1509
1497
|
authActions,
|
|
1510
1498
|
authActionsSlot
|
|
@@ -1537,23 +1525,22 @@ var MobileNavigationMenu = ({
|
|
|
1537
1525
|
);
|
|
1538
1526
|
});
|
|
1539
1527
|
}, [authActionsSlot, authActions]);
|
|
1540
|
-
return /* @__PURE__ */ jsx(
|
|
1541
|
-
|
|
1528
|
+
return /* @__PURE__ */ jsx(
|
|
1529
|
+
NavbarMobileMenu,
|
|
1542
1530
|
{
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
] })
|
|
1531
|
+
open,
|
|
1532
|
+
onClose: () => setOpen(false),
|
|
1533
|
+
title: "Mobile Navigation",
|
|
1534
|
+
className: "dark",
|
|
1535
|
+
contentClassName: "pt-4",
|
|
1536
|
+
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col justify-between gap-20", children: [
|
|
1537
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map(
|
|
1538
|
+
(item, index) => renderMobileMenuItem(item, index)
|
|
1539
|
+
) }),
|
|
1540
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 pb-20", children: renderMobileAuthActions })
|
|
1554
1541
|
] }) })
|
|
1555
1542
|
}
|
|
1556
|
-
)
|
|
1543
|
+
);
|
|
1557
1544
|
};
|
|
1558
1545
|
var renderMobileMenuItem = (item, index) => {
|
|
1559
1546
|
if (item.links) {
|