@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
|
@@ -9,7 +9,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
9
9
|
var img = require('@page-speed/img');
|
|
10
10
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
11
11
|
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
12
|
-
var SheetPrimitive = require('@radix-ui/react-dialog');
|
|
13
12
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
14
13
|
var reactSlot = require('@radix-ui/react-slot');
|
|
15
14
|
var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
|
|
@@ -35,7 +34,6 @@ function _interopNamespace(e) {
|
|
|
35
34
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
36
35
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
37
36
|
var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
|
|
38
|
-
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
39
37
|
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
40
38
|
var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
|
|
41
39
|
|
|
@@ -833,14 +831,14 @@ function PatternBackground({
|
|
|
833
831
|
);
|
|
834
832
|
}
|
|
835
833
|
if (pattern in patternOverlays) {
|
|
836
|
-
const
|
|
834
|
+
const Overlay = patternOverlays[pattern];
|
|
837
835
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
838
836
|
"div",
|
|
839
837
|
{
|
|
840
838
|
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
841
839
|
style: { opacity, ...style },
|
|
842
840
|
"aria-hidden": "true",
|
|
843
|
-
children:
|
|
841
|
+
children: Overlay()
|
|
844
842
|
}
|
|
845
843
|
);
|
|
846
844
|
}
|
|
@@ -1139,75 +1137,62 @@ function NavigationMenuLink({
|
|
|
1139
1137
|
}
|
|
1140
1138
|
);
|
|
1141
1139
|
}
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
...props
|
|
1147
|
-
}) {
|
|
1148
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1149
|
-
}
|
|
1150
|
-
function SheetOverlay({
|
|
1140
|
+
var NavbarMobileMenu = ({
|
|
1141
|
+
open,
|
|
1142
|
+
onClose,
|
|
1143
|
+
children,
|
|
1151
1144
|
className,
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1145
|
+
contentClassName,
|
|
1146
|
+
title = "Mobile Navigation"
|
|
1147
|
+
}) => {
|
|
1148
|
+
React__namespace.useEffect(() => {
|
|
1149
|
+
if (open) {
|
|
1150
|
+
const originalOverflow = document.body.style.overflow;
|
|
1151
|
+
document.body.style.overflow = "hidden";
|
|
1152
|
+
return () => {
|
|
1153
|
+
document.body.style.overflow = originalOverflow;
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
}, [open]);
|
|
1157
|
+
if (!open) return null;
|
|
1158
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1159
|
+
"div",
|
|
1156
1160
|
{
|
|
1157
|
-
"data-slot": "sheet-overlay",
|
|
1158
1161
|
className: cn(
|
|
1159
|
-
"
|
|
1162
|
+
"fixed inset-0 z-[998] flex flex-col bg-background",
|
|
1163
|
+
"animate-in slide-in-from-top duration-300",
|
|
1164
|
+
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1160
1165
|
className
|
|
1161
1166
|
),
|
|
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
|
-
|
|
1187
|
-
|
|
1188
|
-
children,
|
|
1189
|
-
/* @__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: [
|
|
1190
|
-
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1191
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1192
|
-
] })
|
|
1193
|
-
]
|
|
1194
|
-
}
|
|
1195
|
-
)
|
|
1196
|
-
] });
|
|
1197
|
-
}
|
|
1198
|
-
function SheetTitle({
|
|
1199
|
-
className,
|
|
1200
|
-
...props
|
|
1201
|
-
}) {
|
|
1202
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1203
|
-
SheetPrimitive__namespace.Title,
|
|
1204
|
-
{
|
|
1205
|
-
"data-slot": "sheet-title",
|
|
1206
|
-
className: cn("text-foreground font-semibold", className),
|
|
1207
|
-
...props
|
|
1167
|
+
"data-state": open ? "open" : "closed",
|
|
1168
|
+
children: [
|
|
1169
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { children: title }) }),
|
|
1170
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1171
|
+
"button",
|
|
1172
|
+
{
|
|
1173
|
+
onClick: onClose,
|
|
1174
|
+
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",
|
|
1175
|
+
"aria-label": "Close mobile menu",
|
|
1176
|
+
children: [
|
|
1177
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1178
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1179
|
+
]
|
|
1180
|
+
}
|
|
1181
|
+
) }),
|
|
1182
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1183
|
+
"div",
|
|
1184
|
+
{
|
|
1185
|
+
className: cn(
|
|
1186
|
+
"h-full overflow-y-auto pt-20 pb-8 px-4 sm:px-6",
|
|
1187
|
+
contentClassName
|
|
1188
|
+
),
|
|
1189
|
+
children
|
|
1190
|
+
}
|
|
1191
|
+
)
|
|
1192
|
+
]
|
|
1208
1193
|
}
|
|
1209
1194
|
);
|
|
1210
|
-
}
|
|
1195
|
+
};
|
|
1211
1196
|
function Separator({
|
|
1212
1197
|
className,
|
|
1213
1198
|
orientation = "horizontal",
|
|
@@ -1346,7 +1331,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1346
1331
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1347
1332
|
containerWrapperClasses: cn(
|
|
1348
1333
|
"w-full",
|
|
1349
|
-
isFloatingBar && "mx-auto
|
|
1334
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1350
1335
|
),
|
|
1351
1336
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1352
1337
|
innerContainerClasses: cn(
|
|
@@ -1529,6 +1514,7 @@ var NavbarAnimatedPreview = ({
|
|
|
1529
1514
|
MobileNavigationMenu,
|
|
1530
1515
|
{
|
|
1531
1516
|
open,
|
|
1517
|
+
setOpen,
|
|
1532
1518
|
menuLinks: menuLinks ?? [],
|
|
1533
1519
|
actions,
|
|
1534
1520
|
actionsSlot
|
|
@@ -1822,6 +1808,7 @@ var NavLink = React.forwardRef(
|
|
|
1822
1808
|
NavLink.displayName = "NavLink";
|
|
1823
1809
|
var MobileNavigationMenu = ({
|
|
1824
1810
|
open,
|
|
1811
|
+
setOpen,
|
|
1825
1812
|
menuLinks,
|
|
1826
1813
|
actions,
|
|
1827
1814
|
actionsSlot
|
|
@@ -1854,23 +1841,21 @@ var MobileNavigationMenu = ({
|
|
|
1854
1841
|
);
|
|
1855
1842
|
});
|
|
1856
1843
|
}, [actionsSlot, actions]);
|
|
1857
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1858
|
-
|
|
1844
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1845
|
+
NavbarMobileMenu,
|
|
1859
1846
|
{
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
] })
|
|
1871
|
-
] }) })
|
|
1847
|
+
open,
|
|
1848
|
+
onClose: () => setOpen(false),
|
|
1849
|
+
title: "Mobile Navigation",
|
|
1850
|
+
contentClassName: "pt-4 pb-20",
|
|
1851
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
1852
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map(
|
|
1853
|
+
(item, index) => renderMobileMenuItem(item, index)
|
|
1854
|
+
) }),
|
|
1855
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 flex flex-col gap-2", children: renderMobileActions })
|
|
1856
|
+
] })
|
|
1872
1857
|
}
|
|
1873
|
-
)
|
|
1858
|
+
);
|
|
1874
1859
|
};
|
|
1875
1860
|
var renderMobileMenuItem = (item, index) => {
|
|
1876
1861
|
if (item.links || item.featuredLinks || item.groupLinks) {
|
|
@@ -8,7 +8,6 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
8
8
|
import { Img } from '@page-speed/img';
|
|
9
9
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
10
10
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
11
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
12
11
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
13
12
|
import { Slot } from '@radix-ui/react-slot';
|
|
14
13
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
@@ -807,14 +806,14 @@ function PatternBackground({
|
|
|
807
806
|
);
|
|
808
807
|
}
|
|
809
808
|
if (pattern in patternOverlays) {
|
|
810
|
-
const
|
|
809
|
+
const Overlay = patternOverlays[pattern];
|
|
811
810
|
return /* @__PURE__ */ jsx(
|
|
812
811
|
"div",
|
|
813
812
|
{
|
|
814
813
|
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
815
814
|
style: { opacity, ...style },
|
|
816
815
|
"aria-hidden": "true",
|
|
817
|
-
children:
|
|
816
|
+
children: Overlay()
|
|
818
817
|
}
|
|
819
818
|
);
|
|
820
819
|
}
|
|
@@ -1113,75 +1112,62 @@ function NavigationMenuLink({
|
|
|
1113
1112
|
}
|
|
1114
1113
|
);
|
|
1115
1114
|
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
...props
|
|
1121
|
-
}) {
|
|
1122
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1123
|
-
}
|
|
1124
|
-
function SheetOverlay({
|
|
1115
|
+
var NavbarMobileMenu = ({
|
|
1116
|
+
open,
|
|
1117
|
+
onClose,
|
|
1118
|
+
children,
|
|
1125
1119
|
className,
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1120
|
+
contentClassName,
|
|
1121
|
+
title = "Mobile Navigation"
|
|
1122
|
+
}) => {
|
|
1123
|
+
React.useEffect(() => {
|
|
1124
|
+
if (open) {
|
|
1125
|
+
const originalOverflow = document.body.style.overflow;
|
|
1126
|
+
document.body.style.overflow = "hidden";
|
|
1127
|
+
return () => {
|
|
1128
|
+
document.body.style.overflow = originalOverflow;
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
}, [open]);
|
|
1132
|
+
if (!open) return null;
|
|
1133
|
+
return /* @__PURE__ */ jsxs(
|
|
1134
|
+
"div",
|
|
1130
1135
|
{
|
|
1131
|
-
"data-slot": "sheet-overlay",
|
|
1132
1136
|
className: cn(
|
|
1133
|
-
"
|
|
1137
|
+
"fixed inset-0 z-[998] flex flex-col bg-background",
|
|
1138
|
+
"animate-in slide-in-from-top duration-300",
|
|
1139
|
+
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1134
1140
|
className
|
|
1135
1141
|
),
|
|
1136
|
-
|
|
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
|
-
children,
|
|
1163
|
-
/* @__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: [
|
|
1164
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1165
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1166
|
-
] })
|
|
1167
|
-
]
|
|
1168
|
-
}
|
|
1169
|
-
)
|
|
1170
|
-
] });
|
|
1171
|
-
}
|
|
1172
|
-
function SheetTitle({
|
|
1173
|
-
className,
|
|
1174
|
-
...props
|
|
1175
|
-
}) {
|
|
1176
|
-
return /* @__PURE__ */ jsx(
|
|
1177
|
-
SheetPrimitive.Title,
|
|
1178
|
-
{
|
|
1179
|
-
"data-slot": "sheet-title",
|
|
1180
|
-
className: cn("text-foreground font-semibold", className),
|
|
1181
|
-
...props
|
|
1142
|
+
"data-state": open ? "open" : "closed",
|
|
1143
|
+
children: [
|
|
1144
|
+
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("h2", { children: title }) }),
|
|
1145
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-4 right-4 z-10", children: /* @__PURE__ */ jsxs(
|
|
1146
|
+
"button",
|
|
1147
|
+
{
|
|
1148
|
+
onClick: onClose,
|
|
1149
|
+
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",
|
|
1150
|
+
"aria-label": "Close mobile menu",
|
|
1151
|
+
children: [
|
|
1152
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1153
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1154
|
+
]
|
|
1155
|
+
}
|
|
1156
|
+
) }),
|
|
1157
|
+
/* @__PURE__ */ jsx(
|
|
1158
|
+
"div",
|
|
1159
|
+
{
|
|
1160
|
+
className: cn(
|
|
1161
|
+
"h-full overflow-y-auto pt-20 pb-8 px-4 sm:px-6",
|
|
1162
|
+
contentClassName
|
|
1163
|
+
),
|
|
1164
|
+
children
|
|
1165
|
+
}
|
|
1166
|
+
)
|
|
1167
|
+
]
|
|
1182
1168
|
}
|
|
1183
1169
|
);
|
|
1184
|
-
}
|
|
1170
|
+
};
|
|
1185
1171
|
function Separator({
|
|
1186
1172
|
className,
|
|
1187
1173
|
orientation = "horizontal",
|
|
@@ -1320,7 +1306,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1320
1306
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1321
1307
|
containerWrapperClasses: cn(
|
|
1322
1308
|
"w-full",
|
|
1323
|
-
isFloatingBar && "mx-auto
|
|
1309
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1324
1310
|
),
|
|
1325
1311
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1326
1312
|
innerContainerClasses: cn(
|
|
@@ -1503,6 +1489,7 @@ var NavbarAnimatedPreview = ({
|
|
|
1503
1489
|
MobileNavigationMenu,
|
|
1504
1490
|
{
|
|
1505
1491
|
open,
|
|
1492
|
+
setOpen,
|
|
1506
1493
|
menuLinks: menuLinks ?? [],
|
|
1507
1494
|
actions,
|
|
1508
1495
|
actionsSlot
|
|
@@ -1796,6 +1783,7 @@ var NavLink = forwardRef(
|
|
|
1796
1783
|
NavLink.displayName = "NavLink";
|
|
1797
1784
|
var MobileNavigationMenu = ({
|
|
1798
1785
|
open,
|
|
1786
|
+
setOpen,
|
|
1799
1787
|
menuLinks,
|
|
1800
1788
|
actions,
|
|
1801
1789
|
actionsSlot
|
|
@@ -1828,23 +1816,21 @@ var MobileNavigationMenu = ({
|
|
|
1828
1816
|
);
|
|
1829
1817
|
});
|
|
1830
1818
|
}, [actionsSlot, actions]);
|
|
1831
|
-
return /* @__PURE__ */ jsx(
|
|
1832
|
-
|
|
1819
|
+
return /* @__PURE__ */ jsx(
|
|
1820
|
+
NavbarMobileMenu,
|
|
1833
1821
|
{
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/* @__PURE__ */
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
] })
|
|
1845
|
-
] }) })
|
|
1822
|
+
open,
|
|
1823
|
+
onClose: () => setOpen(false),
|
|
1824
|
+
title: "Mobile Navigation",
|
|
1825
|
+
contentClassName: "pt-4 pb-20",
|
|
1826
|
+
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
1827
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map(
|
|
1828
|
+
(item, index) => renderMobileMenuItem(item, index)
|
|
1829
|
+
) }),
|
|
1830
|
+
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-col gap-2", children: renderMobileActions })
|
|
1831
|
+
] })
|
|
1846
1832
|
}
|
|
1847
|
-
)
|
|
1833
|
+
);
|
|
1848
1834
|
};
|
|
1849
1835
|
var renderMobileMenuItem = (item, index) => {
|
|
1850
1836
|
if (item.links || item.featuredLinks || item.groupLinks) {
|