@opensite/ui 0.9.8 → 1.0.0
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 +1 -1
- package/dist/navbar-animated-preview.js +1 -1
- package/dist/navbar-enterprise-mega.cjs +104 -139
- package/dist/navbar-enterprise-mega.js +104 -139
- package/dist/navbar-fullscreen-menu.cjs +190 -66
- package/dist/navbar-fullscreen-menu.d.cts +4 -0
- package/dist/navbar-fullscreen-menu.d.ts +4 -0
- package/dist/navbar-fullscreen-menu.js +190 -66
- package/dist/navbar-image-preview.cjs +69 -27
- package/dist/navbar-image-preview.js +69 -27
- package/dist/navbar-multi-column-groups.cjs +69 -27
- package/dist/navbar-multi-column-groups.js +69 -27
- package/dist/navbar-search-focused.cjs +69 -24
- package/dist/navbar-search-focused.js +69 -24
- package/dist/navbar-sidebar-mobile.cjs +78 -25
- package/dist/navbar-sidebar-mobile.js +78 -25
- package/dist/navbar-split-cta.cjs +69 -24
- package/dist/navbar-split-cta.js +69 -24
- package/dist/navbar-sticky-compact.cjs +73 -37
- package/dist/navbar-sticky-compact.js +73 -37
- package/dist/navbar-tabbed-sections.cjs +69 -24
- package/dist/navbar-tabbed-sections.js +69 -24
- package/dist/navbar-transparent-overlay.cjs +73 -37
- package/dist/navbar-transparent-overlay.js +73 -37
- package/dist/registry.cjs +294 -446
- package/dist/registry.js +294 -446
- package/package.json +1 -1
|
@@ -936,6 +936,66 @@ var Section = React__namespace.default.forwardRef(
|
|
|
936
936
|
}
|
|
937
937
|
);
|
|
938
938
|
Section.displayName = "Section";
|
|
939
|
+
var NavbarLogo = ({
|
|
940
|
+
logo,
|
|
941
|
+
logoSlot,
|
|
942
|
+
logoClassName,
|
|
943
|
+
optixFlowConfig
|
|
944
|
+
}) => {
|
|
945
|
+
if (logoSlot) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: logoSlot });
|
|
946
|
+
if (!logo) return null;
|
|
947
|
+
const hasResponsiveSources = logo.desktopSrc || logo.mobileSrc;
|
|
948
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
949
|
+
Pressable,
|
|
950
|
+
{
|
|
951
|
+
href: logo.url || "/",
|
|
952
|
+
className: cn("flex items-center", logoClassName),
|
|
953
|
+
children: hasResponsiveSources ? (
|
|
954
|
+
// Responsive logo with desktop/mobile sources
|
|
955
|
+
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
956
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
957
|
+
img.Img,
|
|
958
|
+
{
|
|
959
|
+
src: logo.desktopSrc || logo.src || "",
|
|
960
|
+
className: cn(
|
|
961
|
+
"hidden h-8 w-auto object-contain md:block",
|
|
962
|
+
logo.className
|
|
963
|
+
),
|
|
964
|
+
alt: logo.alt || "Logo",
|
|
965
|
+
optixFlowConfig
|
|
966
|
+
}
|
|
967
|
+
),
|
|
968
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
969
|
+
img.Img,
|
|
970
|
+
{
|
|
971
|
+
src: logo.mobileSrc || logo.src || "",
|
|
972
|
+
className: cn(
|
|
973
|
+
"h-8 w-auto object-contain md:hidden",
|
|
974
|
+
logo.className
|
|
975
|
+
),
|
|
976
|
+
alt: logo.alt || "Logo",
|
|
977
|
+
optixFlowConfig
|
|
978
|
+
}
|
|
979
|
+
)
|
|
980
|
+
] })
|
|
981
|
+
) : logo.src ? (
|
|
982
|
+
// Standard single logo image
|
|
983
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
984
|
+
img.Img,
|
|
985
|
+
{
|
|
986
|
+
src: logo.src,
|
|
987
|
+
className: cn("max-h-8 w-auto object-contain", logo.className),
|
|
988
|
+
alt: logo.alt || "Logo",
|
|
989
|
+
optixFlowConfig
|
|
990
|
+
}
|
|
991
|
+
)
|
|
992
|
+
) : (
|
|
993
|
+
// Text-based logo (title as string or React element)
|
|
994
|
+
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-semibold tracking-tighter", children: logo.title }) : logo.title)
|
|
995
|
+
)
|
|
996
|
+
}
|
|
997
|
+
);
|
|
998
|
+
};
|
|
939
999
|
function Accordion({
|
|
940
1000
|
...props
|
|
941
1001
|
}) {
|
|
@@ -1274,29 +1334,6 @@ var NavbarSidebarMobile = ({
|
|
|
1274
1334
|
optixFlowConfig
|
|
1275
1335
|
}) => {
|
|
1276
1336
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
1277
|
-
const renderLogo = () => {
|
|
1278
|
-
if (logoSlot) return logoSlot;
|
|
1279
|
-
if (!logo) return null;
|
|
1280
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1281
|
-
Pressable,
|
|
1282
|
-
{
|
|
1283
|
-
href: logo.url || "/",
|
|
1284
|
-
className: cn("flex items-center gap-2", logoClassName),
|
|
1285
|
-
children: [
|
|
1286
|
-
logo.src && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1287
|
-
img.Img,
|
|
1288
|
-
{
|
|
1289
|
-
src: logo.src,
|
|
1290
|
-
className: cn("h-8", logo.className),
|
|
1291
|
-
alt: logo.alt || "Logo",
|
|
1292
|
-
optixFlowConfig
|
|
1293
|
-
}
|
|
1294
|
-
),
|
|
1295
|
-
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-semibold", children: logo.title }) : logo.title)
|
|
1296
|
-
]
|
|
1297
|
-
}
|
|
1298
|
-
);
|
|
1299
|
-
};
|
|
1300
1337
|
const renderAuthActions = () => {
|
|
1301
1338
|
if (authActionsSlot) return authActionsSlot;
|
|
1302
1339
|
if (!authActions || authActions.length === 0) return null;
|
|
@@ -1363,7 +1400,15 @@ var NavbarSidebarMobile = ({
|
|
|
1363
1400
|
),
|
|
1364
1401
|
children: [
|
|
1365
1402
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
1366
|
-
|
|
1403
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1404
|
+
NavbarLogo,
|
|
1405
|
+
{
|
|
1406
|
+
logo,
|
|
1407
|
+
logoSlot,
|
|
1408
|
+
logoClassName,
|
|
1409
|
+
optixFlowConfig
|
|
1410
|
+
}
|
|
1411
|
+
),
|
|
1367
1412
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1368
1413
|
NavigationMenu,
|
|
1369
1414
|
{
|
|
@@ -1431,7 +1476,15 @@ var NavbarSidebarMobile = ({
|
|
|
1431
1476
|
/* @__PURE__ */ jsxRuntime.jsxs(SheetContent, { side: "left", className: "w-[300px] sm:w-[350px]", children: [
|
|
1432
1477
|
/* @__PURE__ */ jsxRuntime.jsx(SheetTitle, { className: "sr-only", children: "Navigation Menu" }),
|
|
1433
1478
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
1434
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-between border-b pb-4", children:
|
|
1479
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-between border-b pb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1480
|
+
NavbarLogo,
|
|
1481
|
+
{
|
|
1482
|
+
logo,
|
|
1483
|
+
logoSlot,
|
|
1484
|
+
logoClassName,
|
|
1485
|
+
optixFlowConfig
|
|
1486
|
+
}
|
|
1487
|
+
) }),
|
|
1435
1488
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-y-auto py-4", children: /* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: menuSlot ? menuSlot : renderMenu()?.map(
|
|
1436
1489
|
(item, index) => item.items ? /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { value: `item-${index}`, children: [
|
|
1437
1490
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "text-base hover:no-underline", children: item.title }),
|
|
@@ -912,6 +912,66 @@ var Section = React__default.forwardRef(
|
|
|
912
912
|
}
|
|
913
913
|
);
|
|
914
914
|
Section.displayName = "Section";
|
|
915
|
+
var NavbarLogo = ({
|
|
916
|
+
logo,
|
|
917
|
+
logoSlot,
|
|
918
|
+
logoClassName,
|
|
919
|
+
optixFlowConfig
|
|
920
|
+
}) => {
|
|
921
|
+
if (logoSlot) return /* @__PURE__ */ jsx(Fragment, { children: logoSlot });
|
|
922
|
+
if (!logo) return null;
|
|
923
|
+
const hasResponsiveSources = logo.desktopSrc || logo.mobileSrc;
|
|
924
|
+
return /* @__PURE__ */ jsx(
|
|
925
|
+
Pressable,
|
|
926
|
+
{
|
|
927
|
+
href: logo.url || "/",
|
|
928
|
+
className: cn("flex items-center", logoClassName),
|
|
929
|
+
children: hasResponsiveSources ? (
|
|
930
|
+
// Responsive logo with desktop/mobile sources
|
|
931
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
932
|
+
/* @__PURE__ */ jsx(
|
|
933
|
+
Img,
|
|
934
|
+
{
|
|
935
|
+
src: logo.desktopSrc || logo.src || "",
|
|
936
|
+
className: cn(
|
|
937
|
+
"hidden h-8 w-auto object-contain md:block",
|
|
938
|
+
logo.className
|
|
939
|
+
),
|
|
940
|
+
alt: logo.alt || "Logo",
|
|
941
|
+
optixFlowConfig
|
|
942
|
+
}
|
|
943
|
+
),
|
|
944
|
+
/* @__PURE__ */ jsx(
|
|
945
|
+
Img,
|
|
946
|
+
{
|
|
947
|
+
src: logo.mobileSrc || logo.src || "",
|
|
948
|
+
className: cn(
|
|
949
|
+
"h-8 w-auto object-contain md:hidden",
|
|
950
|
+
logo.className
|
|
951
|
+
),
|
|
952
|
+
alt: logo.alt || "Logo",
|
|
953
|
+
optixFlowConfig
|
|
954
|
+
}
|
|
955
|
+
)
|
|
956
|
+
] })
|
|
957
|
+
) : logo.src ? (
|
|
958
|
+
// Standard single logo image
|
|
959
|
+
/* @__PURE__ */ jsx(
|
|
960
|
+
Img,
|
|
961
|
+
{
|
|
962
|
+
src: logo.src,
|
|
963
|
+
className: cn("max-h-8 w-auto object-contain", logo.className),
|
|
964
|
+
alt: logo.alt || "Logo",
|
|
965
|
+
optixFlowConfig
|
|
966
|
+
}
|
|
967
|
+
)
|
|
968
|
+
) : (
|
|
969
|
+
// Text-based logo (title as string or React element)
|
|
970
|
+
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsx("span", { className: "text-lg font-semibold tracking-tighter", children: logo.title }) : logo.title)
|
|
971
|
+
)
|
|
972
|
+
}
|
|
973
|
+
);
|
|
974
|
+
};
|
|
915
975
|
function Accordion({
|
|
916
976
|
...props
|
|
917
977
|
}) {
|
|
@@ -1250,29 +1310,6 @@ var NavbarSidebarMobile = ({
|
|
|
1250
1310
|
optixFlowConfig
|
|
1251
1311
|
}) => {
|
|
1252
1312
|
const [isOpen, setIsOpen] = useState(false);
|
|
1253
|
-
const renderLogo = () => {
|
|
1254
|
-
if (logoSlot) return logoSlot;
|
|
1255
|
-
if (!logo) return null;
|
|
1256
|
-
return /* @__PURE__ */ jsxs(
|
|
1257
|
-
Pressable,
|
|
1258
|
-
{
|
|
1259
|
-
href: logo.url || "/",
|
|
1260
|
-
className: cn("flex items-center gap-2", logoClassName),
|
|
1261
|
-
children: [
|
|
1262
|
-
logo.src && /* @__PURE__ */ jsx(
|
|
1263
|
-
Img,
|
|
1264
|
-
{
|
|
1265
|
-
src: logo.src,
|
|
1266
|
-
className: cn("h-8", logo.className),
|
|
1267
|
-
alt: logo.alt || "Logo",
|
|
1268
|
-
optixFlowConfig
|
|
1269
|
-
}
|
|
1270
|
-
),
|
|
1271
|
-
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsx("span", { className: "text-lg font-semibold", children: logo.title }) : logo.title)
|
|
1272
|
-
]
|
|
1273
|
-
}
|
|
1274
|
-
);
|
|
1275
|
-
};
|
|
1276
1313
|
const renderAuthActions = () => {
|
|
1277
1314
|
if (authActionsSlot) return authActionsSlot;
|
|
1278
1315
|
if (!authActions || authActions.length === 0) return null;
|
|
@@ -1339,7 +1376,15 @@ var NavbarSidebarMobile = ({
|
|
|
1339
1376
|
),
|
|
1340
1377
|
children: [
|
|
1341
1378
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-8", children: [
|
|
1342
|
-
|
|
1379
|
+
/* @__PURE__ */ jsx(
|
|
1380
|
+
NavbarLogo,
|
|
1381
|
+
{
|
|
1382
|
+
logo,
|
|
1383
|
+
logoSlot,
|
|
1384
|
+
logoClassName,
|
|
1385
|
+
optixFlowConfig
|
|
1386
|
+
}
|
|
1387
|
+
),
|
|
1343
1388
|
/* @__PURE__ */ jsx(
|
|
1344
1389
|
NavigationMenu,
|
|
1345
1390
|
{
|
|
@@ -1407,7 +1452,15 @@ var NavbarSidebarMobile = ({
|
|
|
1407
1452
|
/* @__PURE__ */ jsxs(SheetContent, { side: "left", className: "w-[300px] sm:w-[350px]", children: [
|
|
1408
1453
|
/* @__PURE__ */ jsx(SheetTitle, { className: "sr-only", children: "Navigation Menu" }),
|
|
1409
1454
|
/* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col", children: [
|
|
1410
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between border-b pb-4", children:
|
|
1455
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between border-b pb-4", children: /* @__PURE__ */ jsx(
|
|
1456
|
+
NavbarLogo,
|
|
1457
|
+
{
|
|
1458
|
+
logo,
|
|
1459
|
+
logoSlot,
|
|
1460
|
+
logoClassName,
|
|
1461
|
+
optixFlowConfig
|
|
1462
|
+
}
|
|
1463
|
+
) }),
|
|
1411
1464
|
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto py-4", children: /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: menuSlot ? menuSlot : renderMenu()?.map(
|
|
1412
1465
|
(item, index) => item.items ? /* @__PURE__ */ jsxs(AccordionItem, { value: `item-${index}`, children: [
|
|
1413
1466
|
/* @__PURE__ */ jsx(AccordionTrigger, { className: "text-base hover:no-underline", children: item.title }),
|
|
@@ -934,6 +934,66 @@ var Section = React__namespace.default.forwardRef(
|
|
|
934
934
|
}
|
|
935
935
|
);
|
|
936
936
|
Section.displayName = "Section";
|
|
937
|
+
var NavbarLogo = ({
|
|
938
|
+
logo,
|
|
939
|
+
logoSlot,
|
|
940
|
+
logoClassName,
|
|
941
|
+
optixFlowConfig
|
|
942
|
+
}) => {
|
|
943
|
+
if (logoSlot) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: logoSlot });
|
|
944
|
+
if (!logo) return null;
|
|
945
|
+
const hasResponsiveSources = logo.desktopSrc || logo.mobileSrc;
|
|
946
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
947
|
+
Pressable,
|
|
948
|
+
{
|
|
949
|
+
href: logo.url || "/",
|
|
950
|
+
className: cn("flex items-center", logoClassName),
|
|
951
|
+
children: hasResponsiveSources ? (
|
|
952
|
+
// Responsive logo with desktop/mobile sources
|
|
953
|
+
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
954
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
955
|
+
img.Img,
|
|
956
|
+
{
|
|
957
|
+
src: logo.desktopSrc || logo.src || "",
|
|
958
|
+
className: cn(
|
|
959
|
+
"hidden h-8 w-auto object-contain md:block",
|
|
960
|
+
logo.className
|
|
961
|
+
),
|
|
962
|
+
alt: logo.alt || "Logo",
|
|
963
|
+
optixFlowConfig
|
|
964
|
+
}
|
|
965
|
+
),
|
|
966
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
967
|
+
img.Img,
|
|
968
|
+
{
|
|
969
|
+
src: logo.mobileSrc || logo.src || "",
|
|
970
|
+
className: cn(
|
|
971
|
+
"h-8 w-auto object-contain md:hidden",
|
|
972
|
+
logo.className
|
|
973
|
+
),
|
|
974
|
+
alt: logo.alt || "Logo",
|
|
975
|
+
optixFlowConfig
|
|
976
|
+
}
|
|
977
|
+
)
|
|
978
|
+
] })
|
|
979
|
+
) : logo.src ? (
|
|
980
|
+
// Standard single logo image
|
|
981
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
982
|
+
img.Img,
|
|
983
|
+
{
|
|
984
|
+
src: logo.src,
|
|
985
|
+
className: cn("max-h-8 w-auto object-contain", logo.className),
|
|
986
|
+
alt: logo.alt || "Logo",
|
|
987
|
+
optixFlowConfig
|
|
988
|
+
}
|
|
989
|
+
)
|
|
990
|
+
) : (
|
|
991
|
+
// Text-based logo (title as string or React element)
|
|
992
|
+
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-semibold tracking-tighter", children: logo.title }) : logo.title)
|
|
993
|
+
)
|
|
994
|
+
}
|
|
995
|
+
);
|
|
996
|
+
};
|
|
937
997
|
function NavigationMenu({
|
|
938
998
|
className,
|
|
939
999
|
children,
|
|
@@ -1238,29 +1298,6 @@ var NavbarSplitCta = ({
|
|
|
1238
1298
|
}
|
|
1239
1299
|
] : []
|
|
1240
1300
|
] : []);
|
|
1241
|
-
const renderLogo = React.useMemo(() => {
|
|
1242
|
-
if (logoSlot) return logoSlot;
|
|
1243
|
-
if (!logo) return null;
|
|
1244
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1245
|
-
Pressable,
|
|
1246
|
-
{
|
|
1247
|
-
href: logo.url || "/",
|
|
1248
|
-
className: cn("flex items-center gap-2", logoClassName),
|
|
1249
|
-
children: [
|
|
1250
|
-
logo.src && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1251
|
-
img.Img,
|
|
1252
|
-
{
|
|
1253
|
-
src: logo.src,
|
|
1254
|
-
className: cn("h-8", logo.className),
|
|
1255
|
-
alt: logo.alt || "Logo",
|
|
1256
|
-
optixFlowConfig
|
|
1257
|
-
}
|
|
1258
|
-
),
|
|
1259
|
-
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-semibold", children: logo.title }) : logo.title)
|
|
1260
|
-
]
|
|
1261
|
-
}
|
|
1262
|
-
);
|
|
1263
|
-
}, [logoSlot, logo, logoClassName, optixFlowConfig]);
|
|
1264
1301
|
const renderAuthActions = React.useMemo(() => {
|
|
1265
1302
|
if (authActionsSlot) return authActionsSlot;
|
|
1266
1303
|
if (!finalAuthActions || finalAuthActions.length === 0) return null;
|
|
@@ -1322,7 +1359,15 @@ var NavbarSplitCta = ({
|
|
|
1322
1359
|
),
|
|
1323
1360
|
children: [
|
|
1324
1361
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
1325
|
-
|
|
1362
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1363
|
+
NavbarLogo,
|
|
1364
|
+
{
|
|
1365
|
+
logo,
|
|
1366
|
+
logoSlot,
|
|
1367
|
+
logoClassName,
|
|
1368
|
+
optixFlowConfig
|
|
1369
|
+
}
|
|
1370
|
+
),
|
|
1326
1371
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1327
1372
|
NavigationMenu,
|
|
1328
1373
|
{
|
package/dist/navbar-split-cta.js
CHANGED
|
@@ -911,6 +911,66 @@ var Section = React__default.forwardRef(
|
|
|
911
911
|
}
|
|
912
912
|
);
|
|
913
913
|
Section.displayName = "Section";
|
|
914
|
+
var NavbarLogo = ({
|
|
915
|
+
logo,
|
|
916
|
+
logoSlot,
|
|
917
|
+
logoClassName,
|
|
918
|
+
optixFlowConfig
|
|
919
|
+
}) => {
|
|
920
|
+
if (logoSlot) return /* @__PURE__ */ jsx(Fragment, { children: logoSlot });
|
|
921
|
+
if (!logo) return null;
|
|
922
|
+
const hasResponsiveSources = logo.desktopSrc || logo.mobileSrc;
|
|
923
|
+
return /* @__PURE__ */ jsx(
|
|
924
|
+
Pressable,
|
|
925
|
+
{
|
|
926
|
+
href: logo.url || "/",
|
|
927
|
+
className: cn("flex items-center", logoClassName),
|
|
928
|
+
children: hasResponsiveSources ? (
|
|
929
|
+
// Responsive logo with desktop/mobile sources
|
|
930
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
931
|
+
/* @__PURE__ */ jsx(
|
|
932
|
+
Img,
|
|
933
|
+
{
|
|
934
|
+
src: logo.desktopSrc || logo.src || "",
|
|
935
|
+
className: cn(
|
|
936
|
+
"hidden h-8 w-auto object-contain md:block",
|
|
937
|
+
logo.className
|
|
938
|
+
),
|
|
939
|
+
alt: logo.alt || "Logo",
|
|
940
|
+
optixFlowConfig
|
|
941
|
+
}
|
|
942
|
+
),
|
|
943
|
+
/* @__PURE__ */ jsx(
|
|
944
|
+
Img,
|
|
945
|
+
{
|
|
946
|
+
src: logo.mobileSrc || logo.src || "",
|
|
947
|
+
className: cn(
|
|
948
|
+
"h-8 w-auto object-contain md:hidden",
|
|
949
|
+
logo.className
|
|
950
|
+
),
|
|
951
|
+
alt: logo.alt || "Logo",
|
|
952
|
+
optixFlowConfig
|
|
953
|
+
}
|
|
954
|
+
)
|
|
955
|
+
] })
|
|
956
|
+
) : logo.src ? (
|
|
957
|
+
// Standard single logo image
|
|
958
|
+
/* @__PURE__ */ jsx(
|
|
959
|
+
Img,
|
|
960
|
+
{
|
|
961
|
+
src: logo.src,
|
|
962
|
+
className: cn("max-h-8 w-auto object-contain", logo.className),
|
|
963
|
+
alt: logo.alt || "Logo",
|
|
964
|
+
optixFlowConfig
|
|
965
|
+
}
|
|
966
|
+
)
|
|
967
|
+
) : (
|
|
968
|
+
// Text-based logo (title as string or React element)
|
|
969
|
+
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsx("span", { className: "text-lg font-semibold tracking-tighter", children: logo.title }) : logo.title)
|
|
970
|
+
)
|
|
971
|
+
}
|
|
972
|
+
);
|
|
973
|
+
};
|
|
914
974
|
function NavigationMenu({
|
|
915
975
|
className,
|
|
916
976
|
children,
|
|
@@ -1215,29 +1275,6 @@ var NavbarSplitCta = ({
|
|
|
1215
1275
|
}
|
|
1216
1276
|
] : []
|
|
1217
1277
|
] : []);
|
|
1218
|
-
const renderLogo = useMemo(() => {
|
|
1219
|
-
if (logoSlot) return logoSlot;
|
|
1220
|
-
if (!logo) return null;
|
|
1221
|
-
return /* @__PURE__ */ jsxs(
|
|
1222
|
-
Pressable,
|
|
1223
|
-
{
|
|
1224
|
-
href: logo.url || "/",
|
|
1225
|
-
className: cn("flex items-center gap-2", logoClassName),
|
|
1226
|
-
children: [
|
|
1227
|
-
logo.src && /* @__PURE__ */ jsx(
|
|
1228
|
-
Img,
|
|
1229
|
-
{
|
|
1230
|
-
src: logo.src,
|
|
1231
|
-
className: cn("h-8", logo.className),
|
|
1232
|
-
alt: logo.alt || "Logo",
|
|
1233
|
-
optixFlowConfig
|
|
1234
|
-
}
|
|
1235
|
-
),
|
|
1236
|
-
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsx("span", { className: "text-lg font-semibold", children: logo.title }) : logo.title)
|
|
1237
|
-
]
|
|
1238
|
-
}
|
|
1239
|
-
);
|
|
1240
|
-
}, [logoSlot, logo, logoClassName, optixFlowConfig]);
|
|
1241
1278
|
const renderAuthActions = useMemo(() => {
|
|
1242
1279
|
if (authActionsSlot) return authActionsSlot;
|
|
1243
1280
|
if (!finalAuthActions || finalAuthActions.length === 0) return null;
|
|
@@ -1299,7 +1336,15 @@ var NavbarSplitCta = ({
|
|
|
1299
1336
|
),
|
|
1300
1337
|
children: [
|
|
1301
1338
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-8", children: [
|
|
1302
|
-
|
|
1339
|
+
/* @__PURE__ */ jsx(
|
|
1340
|
+
NavbarLogo,
|
|
1341
|
+
{
|
|
1342
|
+
logo,
|
|
1343
|
+
logoSlot,
|
|
1344
|
+
logoClassName,
|
|
1345
|
+
optixFlowConfig
|
|
1346
|
+
}
|
|
1347
|
+
),
|
|
1303
1348
|
/* @__PURE__ */ jsx(
|
|
1304
1349
|
NavigationMenu,
|
|
1305
1350
|
{
|
|
@@ -934,6 +934,66 @@ var Section = React__namespace.default.forwardRef(
|
|
|
934
934
|
}
|
|
935
935
|
);
|
|
936
936
|
Section.displayName = "Section";
|
|
937
|
+
var NavbarLogo = ({
|
|
938
|
+
logo,
|
|
939
|
+
logoSlot,
|
|
940
|
+
logoClassName,
|
|
941
|
+
optixFlowConfig
|
|
942
|
+
}) => {
|
|
943
|
+
if (logoSlot) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: logoSlot });
|
|
944
|
+
if (!logo) return null;
|
|
945
|
+
const hasResponsiveSources = logo.desktopSrc || logo.mobileSrc;
|
|
946
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
947
|
+
Pressable,
|
|
948
|
+
{
|
|
949
|
+
href: logo.url || "/",
|
|
950
|
+
className: cn("flex items-center", logoClassName),
|
|
951
|
+
children: hasResponsiveSources ? (
|
|
952
|
+
// Responsive logo with desktop/mobile sources
|
|
953
|
+
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
954
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
955
|
+
img.Img,
|
|
956
|
+
{
|
|
957
|
+
src: logo.desktopSrc || logo.src || "",
|
|
958
|
+
className: cn(
|
|
959
|
+
"hidden h-8 w-auto object-contain md:block",
|
|
960
|
+
logo.className
|
|
961
|
+
),
|
|
962
|
+
alt: logo.alt || "Logo",
|
|
963
|
+
optixFlowConfig
|
|
964
|
+
}
|
|
965
|
+
),
|
|
966
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
967
|
+
img.Img,
|
|
968
|
+
{
|
|
969
|
+
src: logo.mobileSrc || logo.src || "",
|
|
970
|
+
className: cn(
|
|
971
|
+
"h-8 w-auto object-contain md:hidden",
|
|
972
|
+
logo.className
|
|
973
|
+
),
|
|
974
|
+
alt: logo.alt || "Logo",
|
|
975
|
+
optixFlowConfig
|
|
976
|
+
}
|
|
977
|
+
)
|
|
978
|
+
] })
|
|
979
|
+
) : logo.src ? (
|
|
980
|
+
// Standard single logo image
|
|
981
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
982
|
+
img.Img,
|
|
983
|
+
{
|
|
984
|
+
src: logo.src,
|
|
985
|
+
className: cn("max-h-8 w-auto object-contain", logo.className),
|
|
986
|
+
alt: logo.alt || "Logo",
|
|
987
|
+
optixFlowConfig
|
|
988
|
+
}
|
|
989
|
+
)
|
|
990
|
+
) : (
|
|
991
|
+
// Text-based logo (title as string or React element)
|
|
992
|
+
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-semibold tracking-tighter", children: logo.title }) : logo.title)
|
|
993
|
+
)
|
|
994
|
+
}
|
|
995
|
+
);
|
|
996
|
+
};
|
|
937
997
|
function NavigationMenu({
|
|
938
998
|
className,
|
|
939
999
|
children,
|
|
@@ -1218,42 +1278,6 @@ var NavbarStickyCompact = ({
|
|
|
1218
1278
|
window.addEventListener("scroll", handleScroll);
|
|
1219
1279
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
1220
1280
|
}, []);
|
|
1221
|
-
const renderLogo = React.useMemo(() => {
|
|
1222
|
-
if (logoSlot) return logoSlot;
|
|
1223
|
-
if (!logo) return null;
|
|
1224
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1225
|
-
Pressable,
|
|
1226
|
-
{
|
|
1227
|
-
href: logo.url || "/",
|
|
1228
|
-
className: cn("flex items-center gap-2", logoClassName),
|
|
1229
|
-
children: [
|
|
1230
|
-
logo.src && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1231
|
-
img.Img,
|
|
1232
|
-
{
|
|
1233
|
-
src: logo.src,
|
|
1234
|
-
className: cn(
|
|
1235
|
-
"transition-all duration-300",
|
|
1236
|
-
isScrolled ? "h-6" : "h-8",
|
|
1237
|
-
logo.className
|
|
1238
|
-
),
|
|
1239
|
-
alt: logo.alt || "Logo",
|
|
1240
|
-
optixFlowConfig
|
|
1241
|
-
}
|
|
1242
|
-
),
|
|
1243
|
-
logo.title && (typeof logo.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1244
|
-
"span",
|
|
1245
|
-
{
|
|
1246
|
-
className: cn(
|
|
1247
|
-
"font-semibold transition-all duration-300",
|
|
1248
|
-
isScrolled ? "text-base" : "text-lg"
|
|
1249
|
-
),
|
|
1250
|
-
children: logo.title
|
|
1251
|
-
}
|
|
1252
|
-
) : logo.title)
|
|
1253
|
-
]
|
|
1254
|
-
}
|
|
1255
|
-
);
|
|
1256
|
-
}, [logoSlot, logo, logoClassName, isScrolled, optixFlowConfig]);
|
|
1257
1281
|
const renderAuthActions = React.useMemo(() => {
|
|
1258
1282
|
if (authActionsSlot) return authActionsSlot;
|
|
1259
1283
|
if (!authActions || authActions.length === 0) return null;
|
|
@@ -1387,7 +1411,19 @@ var NavbarStickyCompact = ({
|
|
|
1387
1411
|
navClassName
|
|
1388
1412
|
),
|
|
1389
1413
|
children: [
|
|
1390
|
-
|
|
1414
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1415
|
+
NavbarLogo,
|
|
1416
|
+
{
|
|
1417
|
+
logo,
|
|
1418
|
+
logoSlot,
|
|
1419
|
+
logoClassName: cn(
|
|
1420
|
+
isScrolled ? "[&_img]:h-6 [&_span]:text-base" : "[&_img]:h-8 [&_span]:text-lg",
|
|
1421
|
+
"[&_img]:transition-all [&_img]:duration-300 [&_span]:transition-all [&_span]:duration-300",
|
|
1422
|
+
logoClassName
|
|
1423
|
+
),
|
|
1424
|
+
optixFlowConfig
|
|
1425
|
+
}
|
|
1426
|
+
),
|
|
1391
1427
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenu, { className: "hidden lg:flex", children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuList, { children: renderMenu }) }),
|
|
1392
1428
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1393
1429
|
"div",
|