@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.
Files changed (47) hide show
  1. package/dist/navbar-animated-preview.cjs +67 -82
  2. package/dist/navbar-animated-preview.js +67 -81
  3. package/dist/navbar-centered-menu.cjs +101 -125
  4. package/dist/navbar-centered-menu.js +101 -124
  5. package/dist/navbar-dark-icons.cjs +67 -81
  6. package/dist/navbar-dark-icons.js +67 -80
  7. package/dist/navbar-dropdown-menu.cjs +87 -122
  8. package/dist/navbar-dropdown-menu.js +87 -121
  9. package/dist/navbar-education-platform.cjs +1 -1
  10. package/dist/navbar-education-platform.js +1 -1
  11. package/dist/navbar-enterprise-mega.cjs +7 -7
  12. package/dist/navbar-enterprise-mega.js +7 -7
  13. package/dist/navbar-feature-grid.cjs +131 -150
  14. package/dist/navbar-feature-grid.d.cts +9 -1
  15. package/dist/navbar-feature-grid.d.ts +9 -1
  16. package/dist/navbar-feature-grid.js +131 -149
  17. package/dist/navbar-floating-pill.cjs +2 -2
  18. package/dist/navbar-floating-pill.js +2 -2
  19. package/dist/navbar-fullscreen-menu.cjs +1 -1
  20. package/dist/navbar-fullscreen-menu.js +1 -1
  21. package/dist/navbar-icon-links.cjs +102 -138
  22. package/dist/navbar-icon-links.js +102 -137
  23. package/dist/navbar-image-preview.cjs +64 -95
  24. package/dist/navbar-image-preview.js +64 -94
  25. package/dist/navbar-mega-menu.cjs +1 -1
  26. package/dist/navbar-mega-menu.js +1 -1
  27. package/dist/navbar-multi-column-groups.cjs +67 -81
  28. package/dist/navbar-multi-column-groups.js +67 -80
  29. package/dist/navbar-platform-resources.cjs +80 -42
  30. package/dist/navbar-platform-resources.js +80 -42
  31. package/dist/navbar-search-focused.cjs +76 -93
  32. package/dist/navbar-search-focused.js +76 -92
  33. package/dist/navbar-sidebar-mobile.cjs +76 -93
  34. package/dist/navbar-sidebar-mobile.js +76 -92
  35. package/dist/navbar-simple-links.cjs +1 -1
  36. package/dist/navbar-simple-links.js +1 -1
  37. package/dist/navbar-split-cta.cjs +78 -95
  38. package/dist/navbar-split-cta.js +78 -94
  39. package/dist/navbar-sticky-compact.cjs +82 -100
  40. package/dist/navbar-sticky-compact.js +82 -99
  41. package/dist/navbar-tabbed-sections.cjs +91 -115
  42. package/dist/navbar-tabbed-sections.js +91 -114
  43. package/dist/navbar-transparent-overlay.cjs +1 -1
  44. package/dist/navbar-transparent-overlay.js +1 -1
  45. package/dist/registry.cjs +594 -618
  46. package/dist/registry.js +593 -617
  47. 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 Overlay2 = patternOverlays[pattern];
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: Overlay2()
841
+ children: Overlay()
844
842
  }
845
843
  );
846
844
  }
@@ -1139,75 +1137,62 @@ function NavigationMenuLink({
1139
1137
  }
1140
1138
  );
1141
1139
  }
1142
- function Sheet({ ...props }) {
1143
- return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
1144
- }
1145
- function SheetPortal({
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
- ...props
1153
- }) {
1154
- return /* @__PURE__ */ jsxRuntime.jsx(
1155
- SheetPrimitive__namespace.Overlay,
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
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
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
- ...props
1163
- }
1164
- );
1165
- }
1166
- function SheetContent({
1167
- className,
1168
- children,
1169
- side = "right",
1170
- ...props
1171
- }) {
1172
- return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
1173
- /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
1174
- /* @__PURE__ */ jsxRuntime.jsxs(
1175
- SheetPrimitive__namespace.Content,
1176
- {
1177
- "data-slot": "sheet-content",
1178
- className: cn(
1179
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1180
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
1181
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
1182
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
1183
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
1184
- className
1185
- ),
1186
- ...props,
1187
- children: [
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 w-full px-2 sm:px-4 lg:px-8 max-w-7xl relative z-10"
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(Sheet, { open, children: /* @__PURE__ */ jsxRuntime.jsx(
1858
- SheetContent,
1844
+ return /* @__PURE__ */ jsxRuntime.jsx(
1845
+ NavbarMobileMenu,
1859
1846
  {
1860
- "aria-describedby": void 0,
1861
- side: "top",
1862
- className: "inset-0 z-998 h-dvh w-full bg-background pt-20 [&>button]:hidden",
1863
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container py-8", children: [
1864
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute -m-px h-px w-px overflow-hidden border-0 mask-clip-border p-0 text-nowrap whitespace-nowrap", children: /* @__PURE__ */ jsxRuntime.jsx(SheetTitle, { className: "text-primary", children: "Mobile Navigation" }) }),
1865
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col gap-6", children: [
1866
- /* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map(
1867
- (item, index) => renderMobileMenuItem(item, index)
1868
- ) }),
1869
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: renderMobileActions })
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 Overlay2 = patternOverlays[pattern];
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: Overlay2()
816
+ children: Overlay()
818
817
  }
819
818
  );
820
819
  }
@@ -1113,75 +1112,62 @@ function NavigationMenuLink({
1113
1112
  }
1114
1113
  );
1115
1114
  }
1116
- function Sheet({ ...props }) {
1117
- return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
1118
- }
1119
- function SheetPortal({
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
- ...props
1127
- }) {
1128
- return /* @__PURE__ */ jsx(
1129
- SheetPrimitive.Overlay,
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
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
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
- ...props
1137
- }
1138
- );
1139
- }
1140
- function SheetContent({
1141
- className,
1142
- children,
1143
- side = "right",
1144
- ...props
1145
- }) {
1146
- return /* @__PURE__ */ jsxs(SheetPortal, { children: [
1147
- /* @__PURE__ */ jsx(SheetOverlay, {}),
1148
- /* @__PURE__ */ jsxs(
1149
- SheetPrimitive.Content,
1150
- {
1151
- "data-slot": "sheet-content",
1152
- className: cn(
1153
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1154
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
1155
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
1156
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
1157
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
1158
- className
1159
- ),
1160
- ...props,
1161
- children: [
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 w-full px-2 sm:px-4 lg:px-8 max-w-7xl relative z-10"
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(Sheet, { open, children: /* @__PURE__ */ jsx(
1832
- SheetContent,
1819
+ return /* @__PURE__ */ jsx(
1820
+ NavbarMobileMenu,
1833
1821
  {
1834
- "aria-describedby": void 0,
1835
- side: "top",
1836
- className: "inset-0 z-998 h-dvh w-full bg-background pt-20 [&>button]:hidden",
1837
- children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "container py-8", children: [
1838
- /* @__PURE__ */ jsx("div", { className: "absolute -m-px h-px w-px overflow-hidden border-0 mask-clip-border p-0 text-nowrap whitespace-nowrap", children: /* @__PURE__ */ jsx(SheetTitle, { className: "text-primary", children: "Mobile Navigation" }) }),
1839
- /* @__PURE__ */ jsxs("div", { className: "flex min-h-full flex-col gap-6", children: [
1840
- /* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map(
1841
- (item, index) => renderMobileMenuItem(item, index)
1842
- ) }),
1843
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: renderMobileActions })
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) {