@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-split-cta.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.Trigger, { "data-slot": "sheet-trigger", ...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/layout-variant-utils.ts
|
|
1211
1191
|
function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks", customClasses) {
|
|
@@ -1222,7 +1202,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1222
1202
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1223
1203
|
containerWrapperClasses: cn(
|
|
1224
1204
|
"w-full",
|
|
1225
|
-
isFloatingBar && "mx-auto
|
|
1205
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1226
1206
|
),
|
|
1227
1207
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1228
1208
|
innerContainerClasses: cn(
|
|
@@ -1382,25 +1362,27 @@ var NavbarSplitCta = ({
|
|
|
1382
1362
|
children: renderAuthActions
|
|
1383
1363
|
}
|
|
1384
1364
|
),
|
|
1385
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1365
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1366
|
+
Pressable,
|
|
1367
|
+
{
|
|
1368
|
+
variant: "ghost",
|
|
1369
|
+
size: "icon",
|
|
1370
|
+
asButton: true,
|
|
1371
|
+
className: "lg:hidden",
|
|
1372
|
+
onClick: () => setIsOpen(!isOpen),
|
|
1373
|
+
children: [
|
|
1374
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/menu", size: 20 }),
|
|
1375
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle menu" })
|
|
1376
|
+
]
|
|
1377
|
+
}
|
|
1378
|
+
),
|
|
1379
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1380
|
+
NavbarMobileMenu,
|
|
1381
|
+
{
|
|
1382
|
+
open: isOpen,
|
|
1383
|
+
onClose: () => setIsOpen(false),
|
|
1384
|
+
title: "Navigation Menu",
|
|
1385
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
1404
1386
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t pt-4", children: menuSlot ? menuSlot : renderMenu?.map(
|
|
1405
1387
|
(item, index) => item.items ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
1406
1388
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 text-sm font-medium text-muted-foreground", children: item.title }),
|
|
@@ -1433,10 +1415,11 @@ var NavbarSplitCta = ({
|
|
|
1433
1415
|
},
|
|
1434
1416
|
index
|
|
1435
1417
|
)
|
|
1436
|
-
) })
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1418
|
+
) }),
|
|
1419
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2 mt-6", children: renderAuthActions })
|
|
1420
|
+
] }) })
|
|
1421
|
+
}
|
|
1422
|
+
)
|
|
1440
1423
|
]
|
|
1441
1424
|
}
|
|
1442
1425
|
) }) }) })
|
package/dist/navbar-split-cta.js
CHANGED
|
@@ -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-split-cta.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.Trigger, { "data-slot": "sheet-trigger", ...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/layout-variant-utils.ts
|
|
1188
1169
|
function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks", customClasses) {
|
|
@@ -1199,7 +1180,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1199
1180
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
1200
1181
|
containerWrapperClasses: cn(
|
|
1201
1182
|
"w-full",
|
|
1202
|
-
isFloatingBar && "mx-auto
|
|
1183
|
+
isFloatingBar && "mx-auto container relative z-10 px-0 sm:px-0 lg:px-0"
|
|
1203
1184
|
),
|
|
1204
1185
|
// Inner container classes (only for fullScreenContainerizedLinks - this containerizes the content inside the navbar)
|
|
1205
1186
|
innerContainerClasses: cn(
|
|
@@ -1359,25 +1340,27 @@ var NavbarSplitCta = ({
|
|
|
1359
1340
|
children: renderAuthActions
|
|
1360
1341
|
}
|
|
1361
1342
|
),
|
|
1362
|
-
/* @__PURE__ */ jsxs(
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1343
|
+
/* @__PURE__ */ jsxs(
|
|
1344
|
+
Pressable,
|
|
1345
|
+
{
|
|
1346
|
+
variant: "ghost",
|
|
1347
|
+
size: "icon",
|
|
1348
|
+
asButton: true,
|
|
1349
|
+
className: "lg:hidden",
|
|
1350
|
+
onClick: () => setIsOpen(!isOpen),
|
|
1351
|
+
children: [
|
|
1352
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 20 }),
|
|
1353
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle menu" })
|
|
1354
|
+
]
|
|
1355
|
+
}
|
|
1356
|
+
),
|
|
1357
|
+
/* @__PURE__ */ jsx(
|
|
1358
|
+
NavbarMobileMenu,
|
|
1359
|
+
{
|
|
1360
|
+
open: isOpen,
|
|
1361
|
+
onClose: () => setIsOpen(false),
|
|
1362
|
+
title: "Navigation Menu",
|
|
1363
|
+
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
1381
1364
|
/* @__PURE__ */ jsx("div", { className: "border-t pt-4", children: menuSlot ? menuSlot : renderMenu?.map(
|
|
1382
1365
|
(item, index) => item.items ? /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
1383
1366
|
/* @__PURE__ */ jsx("div", { className: "mb-2 text-sm font-medium text-muted-foreground", children: item.title }),
|
|
@@ -1410,10 +1393,11 @@ var NavbarSplitCta = ({
|
|
|
1410
1393
|
},
|
|
1411
1394
|
index
|
|
1412
1395
|
)
|
|
1413
|
-
) })
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1396
|
+
) }),
|
|
1397
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 mt-6", children: renderAuthActions })
|
|
1398
|
+
] }) })
|
|
1399
|
+
}
|
|
1400
|
+
)
|
|
1417
1401
|
]
|
|
1418
1402
|
}
|
|
1419
1403
|
) }) }) })
|