@opensite/ui 1.0.6 → 1.0.7

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.
@@ -1448,21 +1448,21 @@ var NavbarAnimatedPreview = ({
1448
1448
  "h-full max-w-full after:absolute after:inset-0 after:z-998 after:block after:size-full after:content-[''] [&>div:last-child>div]:mt-0 [&>div:last-child>div]:animate-none [&>div:last-child>div]:rounded-none [&>div:last-child>div]:border-0 [&>div:last-child>div]:shadow-[0px_-1px_0px_0px_rgba(0,0,0,0.05),0px_0px_0px_1px_rgba(17,26,37,0.05),0px_2px_5px_0px_rgba(16,25,36,0.1),0px_5px_20px_0px_rgba(16,25,36,0.1)]!",
1449
1449
  navigationMenuClassName
1450
1450
  );
1451
- return /* @__PURE__ */ jsxRuntime.jsx(
1452
- Section,
1453
- {
1454
- background,
1455
- spacing: spacingOverride ?? spacing,
1456
- className: cn(
1457
- "pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
1458
- sectionClasses
1459
- ),
1460
- pattern,
1461
- patternOpacity,
1462
- containerClassName: sectionContainerClassName,
1463
- containerMaxWidth: sectionContainerMaxWidth,
1464
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: innerContainerClasses, children: [
1465
- /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsxs(
1451
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1452
+ /* @__PURE__ */ jsxRuntime.jsx(
1453
+ Section,
1454
+ {
1455
+ background,
1456
+ spacing: spacingOverride ?? spacing,
1457
+ className: cn(
1458
+ "pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
1459
+ sectionClasses
1460
+ ),
1461
+ pattern,
1462
+ patternOpacity,
1463
+ containerClassName: sectionContainerClassName,
1464
+ containerMaxWidth: sectionContainerMaxWidth,
1465
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsxs(
1466
1466
  "div",
1467
1467
  {
1468
1468
  className: cn(
@@ -1489,14 +1489,7 @@ var NavbarAnimatedPreview = ({
1489
1489
  size: "icon",
1490
1490
  asButton: true,
1491
1491
  onClick: handleMobileMenu,
1492
- children: open ? /* @__PURE__ */ jsxRuntime.jsx(
1493
- DynamicIcon,
1494
- {
1495
- name: "lucide/x",
1496
- size: 22,
1497
- className: "stroke-foreground"
1498
- }
1499
- ) : /* @__PURE__ */ jsxRuntime.jsx(
1492
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1500
1493
  DynamicIcon,
1501
1494
  {
1502
1495
  name: "lucide/menu",
@@ -1509,20 +1502,20 @@ var NavbarAnimatedPreview = ({
1509
1502
  ] })
1510
1503
  ]
1511
1504
  }
1512
- ) }),
1513
- /* @__PURE__ */ jsxRuntime.jsx(
1514
- MobileNavigationMenu,
1515
- {
1516
- open,
1517
- setOpen,
1518
- menuLinks: menuLinks ?? [],
1519
- actions,
1520
- actionsSlot
1521
- }
1522
- )
1523
- ] }) }) })
1524
- }
1525
- );
1505
+ ) }) }) }) })
1506
+ }
1507
+ ),
1508
+ /* @__PURE__ */ jsxRuntime.jsx(
1509
+ MobileNavigationMenu,
1510
+ {
1511
+ open,
1512
+ setOpen,
1513
+ menuLinks: menuLinks ?? [],
1514
+ actions,
1515
+ actionsSlot
1516
+ }
1517
+ )
1518
+ ] });
1526
1519
  };
1527
1520
  var DesktopMenuItem = ({
1528
1521
  item,
@@ -1423,21 +1423,21 @@ var NavbarAnimatedPreview = ({
1423
1423
  "h-full max-w-full after:absolute after:inset-0 after:z-998 after:block after:size-full after:content-[''] [&>div:last-child>div]:mt-0 [&>div:last-child>div]:animate-none [&>div:last-child>div]:rounded-none [&>div:last-child>div]:border-0 [&>div:last-child>div]:shadow-[0px_-1px_0px_0px_rgba(0,0,0,0.05),0px_0px_0px_1px_rgba(17,26,37,0.05),0px_2px_5px_0px_rgba(16,25,36,0.1),0px_5px_20px_0px_rgba(16,25,36,0.1)]!",
1424
1424
  navigationMenuClassName
1425
1425
  );
1426
- return /* @__PURE__ */ jsx(
1427
- Section,
1428
- {
1429
- background,
1430
- spacing: spacingOverride ?? spacing,
1431
- className: cn(
1432
- "pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
1433
- sectionClasses
1434
- ),
1435
- pattern,
1436
- patternOpacity,
1437
- containerClassName: sectionContainerClassName,
1438
- containerMaxWidth: sectionContainerMaxWidth,
1439
- children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsxs("div", { className: innerContainerClasses, children: [
1440
- /* @__PURE__ */ jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxs(
1426
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1427
+ /* @__PURE__ */ jsx(
1428
+ Section,
1429
+ {
1430
+ background,
1431
+ spacing: spacingOverride ?? spacing,
1432
+ className: cn(
1433
+ "pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
1434
+ sectionClasses
1435
+ ),
1436
+ pattern,
1437
+ patternOpacity,
1438
+ containerClassName: sectionContainerClassName,
1439
+ containerMaxWidth: sectionContainerMaxWidth,
1440
+ children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxs(
1441
1441
  "div",
1442
1442
  {
1443
1443
  className: cn(
@@ -1464,14 +1464,7 @@ var NavbarAnimatedPreview = ({
1464
1464
  size: "icon",
1465
1465
  asButton: true,
1466
1466
  onClick: handleMobileMenu,
1467
- children: open ? /* @__PURE__ */ jsx(
1468
- DynamicIcon,
1469
- {
1470
- name: "lucide/x",
1471
- size: 22,
1472
- className: "stroke-foreground"
1473
- }
1474
- ) : /* @__PURE__ */ jsx(
1467
+ children: /* @__PURE__ */ jsx(
1475
1468
  DynamicIcon,
1476
1469
  {
1477
1470
  name: "lucide/menu",
@@ -1484,20 +1477,20 @@ var NavbarAnimatedPreview = ({
1484
1477
  ] })
1485
1478
  ]
1486
1479
  }
1487
- ) }),
1488
- /* @__PURE__ */ jsx(
1489
- MobileNavigationMenu,
1490
- {
1491
- open,
1492
- setOpen,
1493
- menuLinks: menuLinks ?? [],
1494
- actions,
1495
- actionsSlot
1496
- }
1497
- )
1498
- ] }) }) })
1499
- }
1500
- );
1480
+ ) }) }) }) })
1481
+ }
1482
+ ),
1483
+ /* @__PURE__ */ jsx(
1484
+ MobileNavigationMenu,
1485
+ {
1486
+ open,
1487
+ setOpen,
1488
+ menuLinks: menuLinks ?? [],
1489
+ actions,
1490
+ actionsSlot
1491
+ }
1492
+ )
1493
+ ] });
1501
1494
  };
1502
1495
  var DesktopMenuItem = ({
1503
1496
  item,
@@ -1284,11 +1284,11 @@ var renderMobileMenuItem = (item) => {
1284
1284
  if (item.items) {
1285
1285
  return /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { value: item.title, className: "border-b-0", children: [
1286
1286
  /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.title }),
1287
- /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: item.items.map((subItem) => /* @__PURE__ */ jsxRuntime.jsxs(
1287
+ /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: item.items.map((subItem) => /* @__PURE__ */ jsxRuntime.jsxs(
1288
1288
  Pressable,
1289
1289
  {
1290
1290
  href: subItem.url,
1291
- className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
1291
+ className: "flex items-center gap-2 pl-2 text-sm text-muted-foreground hover:text-foreground",
1292
1292
  children: [
1293
1293
  subItem.icon && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: subItem.icon, size: 14 }),
1294
1294
  subItem.title
@@ -1261,11 +1261,11 @@ var renderMobileMenuItem = (item) => {
1261
1261
  if (item.items) {
1262
1262
  return /* @__PURE__ */ jsxs(AccordionItem, { value: item.title, className: "border-b-0", children: [
1263
1263
  /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.title }),
1264
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: item.items.map((subItem) => /* @__PURE__ */ jsxs(
1264
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.items.map((subItem) => /* @__PURE__ */ jsxs(
1265
1265
  Pressable,
1266
1266
  {
1267
1267
  href: subItem.url,
1268
- className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
1268
+ className: "flex items-center gap-2 pl-2 text-sm text-muted-foreground hover:text-foreground",
1269
1269
  children: [
1270
1270
  subItem.icon && /* @__PURE__ */ jsx(DynamicIcon, { name: subItem.icon, size: 14 }),
1271
1271
  subItem.title
@@ -1928,7 +1928,7 @@ var renderDropdownContent = (item, optixFlowConfig) => {
1928
1928
  var renderMobileDropdownContent = (item) => {
1929
1929
  switch (item.layout) {
1930
1930
  case "solutions-with-platform":
1931
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1931
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1932
1932
  /* @__PURE__ */ jsxRuntime.jsx(
1933
1933
  Pressable,
1934
1934
  {
@@ -2040,7 +2040,7 @@ var MobileNavigationMenu = ({
2040
2040
  className: "border-b-0",
2041
2041
  children: [
2042
2042
  /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.label }),
2043
- /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto", children: renderMobileDropdownContent(item) })
2043
+ /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: renderMobileDropdownContent(item) })
2044
2044
  ]
2045
2045
  },
2046
2046
  typeof item.label === "string" ? item.label : `nav-${index}`
@@ -1905,7 +1905,7 @@ var renderDropdownContent = (item, optixFlowConfig) => {
1905
1905
  var renderMobileDropdownContent = (item) => {
1906
1906
  switch (item.layout) {
1907
1907
  case "solutions-with-platform":
1908
- return /* @__PURE__ */ jsx("div", { className: "space-y-4", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1908
+ return /* @__PURE__ */ jsx("div", { className: "relative", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1909
1909
  /* @__PURE__ */ jsx(
1910
1910
  Pressable,
1911
1911
  {
@@ -2017,7 +2017,7 @@ var MobileNavigationMenu = ({
2017
2017
  className: "border-b-0",
2018
2018
  children: [
2019
2019
  /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.label }),
2020
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto", children: renderMobileDropdownContent(item) })
2020
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: renderMobileDropdownContent(item) })
2021
2021
  ]
2022
2022
  },
2023
2023
  typeof item.label === "string" ? item.label : `nav-${index}`
@@ -1418,15 +1418,15 @@ var NavbarFeatureGrid = ({
1418
1418
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
1419
1419
  /* @__PURE__ */ jsxRuntime.jsxs(Accordion, { type: "multiple", className: "w-full", children: [
1420
1420
  features && features.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { value: "features", className: "border-b-0", children: [
1421
- /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: "Features" }),
1422
- /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: features.map((feature, index) => /* @__PURE__ */ jsxRuntime.jsx(
1421
+ /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal hover:no-underline", children: "Features" }),
1422
+ /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: features.map((feature, index) => /* @__PURE__ */ jsxRuntime.jsx(
1423
1423
  Pressable,
1424
1424
  {
1425
1425
  href: feature.href,
1426
- className: "flex items-start gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
1427
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1428
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-1 font-semibold", children: feature.title }),
1429
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: feature.description })
1426
+ className: "flex items-start gap-2 pl-4 text-sm",
1427
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1428
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold", children: feature.title }),
1429
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: feature.description })
1430
1430
  ] })
1431
1431
  },
1432
1432
  index
@@ -1436,7 +1436,7 @@ var NavbarFeatureGrid = ({
1436
1436
  Pressable,
1437
1437
  {
1438
1438
  href: item.url,
1439
- className: "flex h-15 items-center text-base font-normal text-foreground",
1439
+ className: "flex h-15 items-center text-base font-normal",
1440
1440
  children: item.title
1441
1441
  },
1442
1442
  index
@@ -1395,15 +1395,15 @@ var NavbarFeatureGrid = ({
1395
1395
  children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
1396
1396
  /* @__PURE__ */ jsxs(Accordion, { type: "multiple", className: "w-full", children: [
1397
1397
  features && features.length > 0 && /* @__PURE__ */ jsxs(AccordionItem, { value: "features", className: "border-b-0", children: [
1398
- /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: "Features" }),
1399
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: features.map((feature, index) => /* @__PURE__ */ jsx(
1398
+ /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal hover:no-underline", children: "Features" }),
1399
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: features.map((feature, index) => /* @__PURE__ */ jsx(
1400
1400
  Pressable,
1401
1401
  {
1402
1402
  href: feature.href,
1403
- className: "flex items-start gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
1404
- children: /* @__PURE__ */ jsxs("div", { children: [
1405
- /* @__PURE__ */ jsx("p", { className: "mb-1 font-semibold", children: feature.title }),
1406
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: feature.description })
1403
+ className: "flex items-start gap-2 pl-4 text-sm",
1404
+ children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1405
+ /* @__PURE__ */ jsx("p", { className: "font-semibold", children: feature.title }),
1406
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: feature.description })
1407
1407
  ] })
1408
1408
  },
1409
1409
  index
@@ -1413,7 +1413,7 @@ var NavbarFeatureGrid = ({
1413
1413
  Pressable,
1414
1414
  {
1415
1415
  href: item.url,
1416
- className: "flex h-15 items-center text-base font-normal text-foreground",
1416
+ className: "flex h-15 items-center text-base font-normal",
1417
1417
  children: item.title
1418
1418
  },
1419
1419
  index
@@ -1388,7 +1388,7 @@ var NavbarImagePreview = ({
1388
1388
  {
1389
1389
  className: cn("flex items-center gap-3.5", actionsClassName),
1390
1390
  children: [
1391
- renderAuthActions,
1391
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden lg:flex lg:items-center lg:gap-3.5", children: renderAuthActions }),
1392
1392
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
1393
1393
  Pressable,
1394
1394
  {
@@ -1412,7 +1412,7 @@ var NavbarImagePreview = ({
1412
1412
  {
1413
1413
  open,
1414
1414
  setOpen,
1415
- mobileNavigation: mobileNavigation ?? [],
1415
+ mobileNavigation: mobileNavigation ?? navigation ?? [],
1416
1416
  mobileNavigationSlot,
1417
1417
  socialLinks: socialLinks ?? [],
1418
1418
  socialLinksSlot,
@@ -1366,7 +1366,7 @@ var NavbarImagePreview = ({
1366
1366
  {
1367
1367
  className: cn("flex items-center gap-3.5", actionsClassName),
1368
1368
  children: [
1369
- renderAuthActions,
1369
+ /* @__PURE__ */ jsx("div", { className: "hidden lg:flex lg:items-center lg:gap-3.5", children: renderAuthActions }),
1370
1370
  /* @__PURE__ */ jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsx(
1371
1371
  Pressable,
1372
1372
  {
@@ -1390,7 +1390,7 @@ var NavbarImagePreview = ({
1390
1390
  {
1391
1391
  open,
1392
1392
  setOpen,
1393
- mobileNavigation: mobileNavigation ?? [],
1393
+ mobileNavigation: mobileNavigation ?? navigation ?? [],
1394
1394
  mobileNavigationSlot,
1395
1395
  socialLinks: socialLinks ?? [],
1396
1396
  socialLinksSlot,