@opensite/ui 0.4.3 → 0.4.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 +17 -12
- package/dist/navbar-animated-preview.d.cts +4 -63
- package/dist/navbar-animated-preview.d.ts +4 -63
- package/dist/navbar-animated-preview.js +17 -12
- package/dist/navbar-centered-menu.cjs +60 -51
- package/dist/navbar-centered-menu.d.cts +2 -10
- package/dist/navbar-centered-menu.d.ts +2 -10
- package/dist/navbar-centered-menu.js +60 -51
- package/dist/navbar-dark-icons.cjs +4 -4
- package/dist/navbar-dark-icons.d.cts +1 -10
- package/dist/navbar-dark-icons.d.ts +1 -10
- package/dist/navbar-dark-icons.js +4 -4
- package/dist/navbar-dropdown-menu.cjs +59 -50
- package/dist/navbar-dropdown-menu.d.cts +3 -11
- package/dist/navbar-dropdown-menu.d.ts +3 -11
- package/dist/navbar-dropdown-menu.js +59 -50
- package/dist/navbar-education-platform.cjs +4 -4
- package/dist/navbar-education-platform.d.cts +1 -10
- package/dist/navbar-education-platform.d.ts +1 -10
- package/dist/navbar-education-platform.js +4 -4
- package/dist/navbar-enterprise-mega.cjs +7 -7
- package/dist/navbar-enterprise-mega.d.cts +2 -36
- package/dist/navbar-enterprise-mega.d.ts +2 -36
- package/dist/navbar-enterprise-mega.js +7 -7
- package/dist/navbar-feature-grid.cjs +4 -4
- package/dist/navbar-feature-grid.d.cts +1 -10
- package/dist/navbar-feature-grid.d.ts +1 -10
- package/dist/navbar-feature-grid.js +4 -4
- package/dist/navbar-floating-pill.cjs +4 -4
- package/dist/navbar-floating-pill.d.cts +1 -10
- package/dist/navbar-floating-pill.d.ts +1 -10
- package/dist/navbar-floating-pill.js +4 -4
- package/dist/navbar-fullscreen-menu.d.cts +1 -10
- package/dist/navbar-fullscreen-menu.d.ts +1 -10
- package/dist/navbar-icon-links.cjs +3 -3
- package/dist/navbar-icon-links.d.cts +4 -10
- package/dist/navbar-icon-links.d.ts +4 -10
- package/dist/navbar-icon-links.js +3 -3
- package/dist/navbar-image-preview.cjs +16 -11
- package/dist/navbar-image-preview.d.cts +6 -16
- package/dist/navbar-image-preview.d.ts +6 -16
- package/dist/navbar-image-preview.js +16 -11
- package/dist/navbar-mega-menu.cjs +26 -28
- package/dist/navbar-mega-menu.d.cts +3 -73
- package/dist/navbar-mega-menu.d.ts +3 -73
- package/dist/navbar-mega-menu.js +26 -28
- package/dist/navbar-multi-column-groups.cjs +4 -4
- package/dist/navbar-multi-column-groups.d.cts +1 -10
- package/dist/navbar-multi-column-groups.d.ts +1 -10
- package/dist/navbar-multi-column-groups.js +4 -4
- package/dist/navbar-platform-resources.cjs +20 -15
- package/dist/navbar-platform-resources.d.cts +2 -36
- package/dist/navbar-platform-resources.d.ts +2 -36
- package/dist/navbar-platform-resources.js +20 -15
- package/dist/navbar-search-focused.cjs +3 -3
- package/dist/navbar-search-focused.d.cts +1 -10
- package/dist/navbar-search-focused.d.ts +1 -10
- package/dist/navbar-search-focused.js +3 -3
- package/dist/navbar-sidebar-mobile.cjs +4 -4
- package/dist/navbar-sidebar-mobile.d.cts +1 -10
- package/dist/navbar-sidebar-mobile.d.ts +1 -10
- package/dist/navbar-sidebar-mobile.js +4 -4
- package/dist/navbar-simple-links.cjs +58 -49
- package/dist/navbar-simple-links.d.cts +1 -10
- package/dist/navbar-simple-links.d.ts +1 -10
- package/dist/navbar-simple-links.js +58 -49
- package/dist/navbar-split-cta.cjs +4 -4
- package/dist/navbar-split-cta.d.cts +1 -10
- package/dist/navbar-split-cta.d.ts +1 -10
- package/dist/navbar-split-cta.js +4 -4
- package/dist/navbar-sticky-compact.cjs +4 -4
- package/dist/navbar-sticky-compact.d.cts +1 -10
- package/dist/navbar-sticky-compact.d.ts +1 -10
- package/dist/navbar-sticky-compact.js +4 -4
- package/dist/navbar-tabbed-sections.cjs +4 -4
- package/dist/navbar-tabbed-sections.d.cts +1 -10
- package/dist/navbar-tabbed-sections.d.ts +1 -10
- package/dist/navbar-tabbed-sections.js +4 -4
- package/dist/navbar-transparent-overlay.cjs +3 -3
- package/dist/navbar-transparent-overlay.d.cts +1 -10
- package/dist/navbar-transparent-overlay.d.ts +1 -10
- package/dist/navbar-transparent-overlay.js +3 -3
- package/dist/registry.cjs +222 -192
- package/dist/registry.js +222 -192
- package/dist/types-D2b35ylu.d.cts +98 -0
- package/dist/types-D2b35ylu.d.ts +98 -0
- package/package.json +1 -1
|
@@ -986,7 +986,7 @@ function NavigationMenuList({
|
|
|
986
986
|
{
|
|
987
987
|
"data-slot": "navigation-menu-list",
|
|
988
988
|
className: cn(
|
|
989
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
989
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
990
990
|
className
|
|
991
991
|
),
|
|
992
992
|
...props
|
|
@@ -1007,7 +1007,7 @@ function NavigationMenuItem({
|
|
|
1007
1007
|
);
|
|
1008
1008
|
}
|
|
1009
1009
|
var navigationMenuTriggerStyle = cva(
|
|
1010
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-
|
|
1010
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-muted data-[state=open]:text-foreground data-[state=open]:focus:bg-muted data-[state=open]:bg-muted/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
1011
1011
|
);
|
|
1012
1012
|
function NavigationMenuTrigger({
|
|
1013
1013
|
className,
|
|
@@ -1027,7 +1027,7 @@ function NavigationMenuTrigger({
|
|
|
1027
1027
|
DynamicIcon,
|
|
1028
1028
|
{
|
|
1029
1029
|
name: "lucide/chevron-down",
|
|
1030
|
-
className: "relative top-[1px] ml-1 size-
|
|
1030
|
+
className: "relative top-[1px] ml-1 size-2 transition duration-300 group-data-[state=open]:rotate-180",
|
|
1031
1031
|
"aria-hidden": "true"
|
|
1032
1032
|
}
|
|
1033
1033
|
)
|
|
@@ -1085,7 +1085,7 @@ function NavigationMenuLink({
|
|
|
1085
1085
|
{
|
|
1086
1086
|
"data-slot": "navigation-menu-link",
|
|
1087
1087
|
className: cn(
|
|
1088
|
-
"data-[active=true]:focus:bg-
|
|
1088
|
+
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
1089
1089
|
className
|
|
1090
1090
|
),
|
|
1091
1091
|
...props
|
|
@@ -1008,7 +1008,7 @@ function NavigationMenuList({
|
|
|
1008
1008
|
{
|
|
1009
1009
|
"data-slot": "navigation-menu-list",
|
|
1010
1010
|
className: cn(
|
|
1011
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
1011
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
1012
1012
|
className
|
|
1013
1013
|
),
|
|
1014
1014
|
...props
|
|
@@ -1029,7 +1029,7 @@ function NavigationMenuItem({
|
|
|
1029
1029
|
);
|
|
1030
1030
|
}
|
|
1031
1031
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
1032
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-
|
|
1032
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-muted data-[state=open]:text-foreground data-[state=open]:focus:bg-muted data-[state=open]:bg-muted/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
1033
1033
|
);
|
|
1034
1034
|
function NavigationMenuTrigger({
|
|
1035
1035
|
className,
|
|
@@ -1049,7 +1049,7 @@ function NavigationMenuTrigger({
|
|
|
1049
1049
|
DynamicIcon,
|
|
1050
1050
|
{
|
|
1051
1051
|
name: "lucide/chevron-down",
|
|
1052
|
-
className: "relative top-[1px] ml-1 size-
|
|
1052
|
+
className: "relative top-[1px] ml-1 size-2 transition duration-300 group-data-[state=open]:rotate-180",
|
|
1053
1053
|
"aria-hidden": "true"
|
|
1054
1054
|
}
|
|
1055
1055
|
)
|
|
@@ -1107,7 +1107,7 @@ function NavigationMenuLink({
|
|
|
1107
1107
|
{
|
|
1108
1108
|
"data-slot": "navigation-menu-link",
|
|
1109
1109
|
className: cn(
|
|
1110
|
-
"data-[active=true]:focus:bg-
|
|
1110
|
+
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
1111
1111
|
className
|
|
1112
1112
|
),
|
|
1113
1113
|
...props
|
|
@@ -1118,6 +1118,11 @@ function NavigationMenuLink({
|
|
|
1118
1118
|
// lib/mediaPlaceholders.ts
|
|
1119
1119
|
var logoPlaceholders = {
|
|
1120
1120
|
logoMark: "https://cdn.ing/assets/i/r/285975/eud79qeya11q5w6ueyhklueardyx/monochrome-rounded-square-app-icon-circular-emblem.png"};
|
|
1121
|
+
|
|
1122
|
+
// components/blocks/navbars/types.ts
|
|
1123
|
+
function getLinkUrl(item) {
|
|
1124
|
+
return item.href || item.url || "#";
|
|
1125
|
+
}
|
|
1121
1126
|
var NavbarPlatformResources = ({
|
|
1122
1127
|
className,
|
|
1123
1128
|
containerClassName,
|
|
@@ -1170,7 +1175,7 @@ var NavbarPlatformResources = ({
|
|
|
1170
1175
|
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1171
1176
|
NavigationMenuLink,
|
|
1172
1177
|
{
|
|
1173
|
-
href: item
|
|
1178
|
+
href: getLinkUrl(item),
|
|
1174
1179
|
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
|
|
1175
1180
|
children: [
|
|
1176
1181
|
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1199,7 +1204,7 @@ var NavbarPlatformResources = ({
|
|
|
1199
1204
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1200
1205
|
NavigationMenuLink,
|
|
1201
1206
|
{
|
|
1202
|
-
href: featuredItem
|
|
1207
|
+
href: getLinkUrl(featuredItem),
|
|
1203
1208
|
className: "group w-1/3 p-0 hover:bg-transparent",
|
|
1204
1209
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "overflow-clip rounded-lg border border-input bg-background", children: [
|
|
1205
1210
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1223,7 +1228,7 @@ var NavbarPlatformResources = ({
|
|
|
1223
1228
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-8", children: gridItems.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1224
1229
|
NavigationMenuLink,
|
|
1225
1230
|
{
|
|
1226
|
-
href: item
|
|
1231
|
+
href: getLinkUrl(item),
|
|
1227
1232
|
className: "group block p-4",
|
|
1228
1233
|
children: [
|
|
1229
1234
|
(item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-5 group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
|
|
@@ -1244,7 +1249,7 @@ var NavbarPlatformResources = ({
|
|
|
1244
1249
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-4", children: link.dropdownGroups[0].links.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1245
1250
|
NavigationMenuLink,
|
|
1246
1251
|
{
|
|
1247
|
-
href: item
|
|
1252
|
+
href: getLinkUrl(item),
|
|
1248
1253
|
className: "group flex flex-row items-center gap-5",
|
|
1249
1254
|
children: [
|
|
1250
1255
|
(item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
@@ -1257,7 +1262,7 @@ var NavbarPlatformResources = ({
|
|
|
1257
1262
|
ctaItem && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1258
1263
|
NavigationMenuLink,
|
|
1259
1264
|
{
|
|
1260
|
-
href: ctaItem
|
|
1265
|
+
href: getLinkUrl(ctaItem),
|
|
1261
1266
|
className: "group flex-1 p-0 hover:bg-transparent",
|
|
1262
1267
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full rounded-lg border border-input bg-background p-0 hover:bg-transparent", children: [
|
|
1263
1268
|
ctaItem.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-2/5 max-w-[310px] shrink-0 overflow-clip rounded-tl-lg rounded-bl-lg", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1291,7 +1296,7 @@ var NavbarPlatformResources = ({
|
|
|
1291
1296
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "-ml-2.5 space-y-2.5", children: listItems.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1292
1297
|
NavigationMenuLink,
|
|
1293
1298
|
{
|
|
1294
|
-
href: item
|
|
1299
|
+
href: getLinkUrl(item),
|
|
1295
1300
|
className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
1296
1301
|
children: [
|
|
1297
1302
|
(item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null),
|
|
@@ -1304,7 +1309,7 @@ var NavbarPlatformResources = ({
|
|
|
1304
1309
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[716px] flex-1 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1305
1310
|
NavigationMenuLink,
|
|
1306
1311
|
{
|
|
1307
|
-
href: showcase
|
|
1312
|
+
href: getLinkUrl(showcase),
|
|
1308
1313
|
className: "flex flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
1309
1314
|
children: [
|
|
1310
1315
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -1338,7 +1343,7 @@ var NavbarPlatformResources = ({
|
|
|
1338
1343
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid flex-1 grid-cols-1 gap-6 md:grid-cols-2", children: group.links.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1339
1344
|
NavigationMenuLink,
|
|
1340
1345
|
{
|
|
1341
|
-
href: item
|
|
1346
|
+
href: getLinkUrl(item),
|
|
1342
1347
|
className: "flex h-full flex-col overflow-clip rounded-lg border border-input bg-background p-5 hover:bg-accent hover:text-accent-foreground xl:p-8",
|
|
1343
1348
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-auto", children: [
|
|
1344
1349
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 text-base", children: item.label }),
|
|
@@ -1355,7 +1360,7 @@ var NavbarPlatformResources = ({
|
|
|
1355
1360
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1356
1361
|
NavigationMenuLink,
|
|
1357
1362
|
{
|
|
1358
|
-
href: ctaItem
|
|
1363
|
+
href: getLinkUrl(ctaItem),
|
|
1359
1364
|
className: "mb-6 flex flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
1360
1365
|
children: [
|
|
1361
1366
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -1384,7 +1389,7 @@ var NavbarPlatformResources = ({
|
|
|
1384
1389
|
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1385
1390
|
NavigationMenuLink,
|
|
1386
1391
|
{
|
|
1387
|
-
href: item
|
|
1392
|
+
href: getLinkUrl(item),
|
|
1388
1393
|
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
|
|
1389
1394
|
children: [
|
|
1390
1395
|
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1524,7 +1529,7 @@ var NavbarPlatformResources = ({
|
|
|
1524
1529
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "px-2 pb-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1525
1530
|
Pressable,
|
|
1526
1531
|
{
|
|
1527
|
-
href: item
|
|
1532
|
+
href: getLinkUrl(item),
|
|
1528
1533
|
className: "group flex items-start gap-4 rounded-lg p-2 hover:bg-muted",
|
|
1529
1534
|
children: [
|
|
1530
1535
|
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2,36 +2,12 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { P as PatternName } from './pattern-background-a7gKHzHy.cjs';
|
|
4
4
|
import { SectionBackground, SectionSpacing } from './types.cjs';
|
|
5
|
+
import { L as LogoConfig, b as ILinkItem, a as IMenuLinkGroup } from './types-D2b35ylu.cjs';
|
|
5
6
|
import { A as ActionConfig, O as OptixFlowConfig } from './blocks-Cohq4eio.cjs';
|
|
6
7
|
import 'class-variance-authority';
|
|
7
8
|
import './button-variants-lRElsmTc.cjs';
|
|
8
9
|
import 'class-variance-authority/types';
|
|
9
10
|
|
|
10
|
-
/**
|
|
11
|
-
* SHARED TYPE INTERFACES FOR ALL NAVBAR COMPONENTS
|
|
12
|
-
* These types provide a consistent interface across all navbar blocks
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Base link item - used across all navbar components
|
|
16
|
-
*/
|
|
17
|
-
interface ILinkItem {
|
|
18
|
-
label: React.ReactNode;
|
|
19
|
-
description?: React.ReactNode;
|
|
20
|
-
url: string;
|
|
21
|
-
icon?: React.ReactNode;
|
|
22
|
-
iconName?: string;
|
|
23
|
-
image?: string;
|
|
24
|
-
background?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Group of links with optional metadata
|
|
28
|
-
*/
|
|
29
|
-
interface IMenuLinkGroup {
|
|
30
|
-
label: React.ReactNode;
|
|
31
|
-
description?: string;
|
|
32
|
-
image?: string;
|
|
33
|
-
links: ILinkItem[];
|
|
34
|
-
}
|
|
35
11
|
/**
|
|
36
12
|
* Layout types for dropdown menus
|
|
37
13
|
*
|
|
@@ -87,16 +63,6 @@ interface IMenuLink {
|
|
|
87
63
|
links?: ILinkItem[];
|
|
88
64
|
dropdownGroups?: IMenuLinkGroup[];
|
|
89
65
|
}
|
|
90
|
-
/**
|
|
91
|
-
* Logo configuration interface
|
|
92
|
-
*/
|
|
93
|
-
interface LogoConfig {
|
|
94
|
-
url?: string;
|
|
95
|
-
src?: string;
|
|
96
|
-
alt?: string;
|
|
97
|
-
title?: React.ReactNode;
|
|
98
|
-
className?: string;
|
|
99
|
-
}
|
|
100
66
|
/**
|
|
101
67
|
* Props for the NavbarPlatformResources component
|
|
102
68
|
*/
|
|
@@ -175,4 +141,4 @@ interface NavbarPlatformResourcesProps {
|
|
|
175
141
|
*/
|
|
176
142
|
declare const NavbarPlatformResources: ({ className, containerClassName, navigationMenuClassName, navigationMenuListClassName, actionsClassName, logoClassName, mobileMenuClassName, logo, logoSlot, menuLinks, actions, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarPlatformResourcesProps) => react_jsx_runtime.JSX.Element;
|
|
177
143
|
|
|
178
|
-
export { type DropdownLayout,
|
|
144
|
+
export { type DropdownLayout, ILinkItem, type IMenuLink, IMenuLinkGroup, LogoConfig, NavbarPlatformResources, type NavbarPlatformResourcesProps };
|
|
@@ -2,36 +2,12 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { P as PatternName } from './pattern-background-a7gKHzHy.js';
|
|
4
4
|
import { SectionBackground, SectionSpacing } from './types.js';
|
|
5
|
+
import { L as LogoConfig, b as ILinkItem, a as IMenuLinkGroup } from './types-D2b35ylu.js';
|
|
5
6
|
import { A as ActionConfig, O as OptixFlowConfig } from './blocks-k17uluAz.js';
|
|
6
7
|
import 'class-variance-authority';
|
|
7
8
|
import './button-variants-lRElsmTc.js';
|
|
8
9
|
import 'class-variance-authority/types';
|
|
9
10
|
|
|
10
|
-
/**
|
|
11
|
-
* SHARED TYPE INTERFACES FOR ALL NAVBAR COMPONENTS
|
|
12
|
-
* These types provide a consistent interface across all navbar blocks
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Base link item - used across all navbar components
|
|
16
|
-
*/
|
|
17
|
-
interface ILinkItem {
|
|
18
|
-
label: React.ReactNode;
|
|
19
|
-
description?: React.ReactNode;
|
|
20
|
-
url: string;
|
|
21
|
-
icon?: React.ReactNode;
|
|
22
|
-
iconName?: string;
|
|
23
|
-
image?: string;
|
|
24
|
-
background?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Group of links with optional metadata
|
|
28
|
-
*/
|
|
29
|
-
interface IMenuLinkGroup {
|
|
30
|
-
label: React.ReactNode;
|
|
31
|
-
description?: string;
|
|
32
|
-
image?: string;
|
|
33
|
-
links: ILinkItem[];
|
|
34
|
-
}
|
|
35
11
|
/**
|
|
36
12
|
* Layout types for dropdown menus
|
|
37
13
|
*
|
|
@@ -87,16 +63,6 @@ interface IMenuLink {
|
|
|
87
63
|
links?: ILinkItem[];
|
|
88
64
|
dropdownGroups?: IMenuLinkGroup[];
|
|
89
65
|
}
|
|
90
|
-
/**
|
|
91
|
-
* Logo configuration interface
|
|
92
|
-
*/
|
|
93
|
-
interface LogoConfig {
|
|
94
|
-
url?: string;
|
|
95
|
-
src?: string;
|
|
96
|
-
alt?: string;
|
|
97
|
-
title?: React.ReactNode;
|
|
98
|
-
className?: string;
|
|
99
|
-
}
|
|
100
66
|
/**
|
|
101
67
|
* Props for the NavbarPlatformResources component
|
|
102
68
|
*/
|
|
@@ -175,4 +141,4 @@ interface NavbarPlatformResourcesProps {
|
|
|
175
141
|
*/
|
|
176
142
|
declare const NavbarPlatformResources: ({ className, containerClassName, navigationMenuClassName, navigationMenuListClassName, actionsClassName, logoClassName, mobileMenuClassName, logo, logoSlot, menuLinks, actions, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarPlatformResourcesProps) => react_jsx_runtime.JSX.Element;
|
|
177
143
|
|
|
178
|
-
export { type DropdownLayout,
|
|
144
|
+
export { type DropdownLayout, ILinkItem, type IMenuLink, IMenuLinkGroup, LogoConfig, NavbarPlatformResources, type NavbarPlatformResourcesProps };
|
|
@@ -985,7 +985,7 @@ function NavigationMenuList({
|
|
|
985
985
|
{
|
|
986
986
|
"data-slot": "navigation-menu-list",
|
|
987
987
|
className: cn(
|
|
988
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
988
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
989
989
|
className
|
|
990
990
|
),
|
|
991
991
|
...props
|
|
@@ -1006,7 +1006,7 @@ function NavigationMenuItem({
|
|
|
1006
1006
|
);
|
|
1007
1007
|
}
|
|
1008
1008
|
var navigationMenuTriggerStyle = cva(
|
|
1009
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-
|
|
1009
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-muted data-[state=open]:text-foreground data-[state=open]:focus:bg-muted data-[state=open]:bg-muted/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
1010
1010
|
);
|
|
1011
1011
|
function NavigationMenuTrigger({
|
|
1012
1012
|
className,
|
|
@@ -1026,7 +1026,7 @@ function NavigationMenuTrigger({
|
|
|
1026
1026
|
DynamicIcon,
|
|
1027
1027
|
{
|
|
1028
1028
|
name: "lucide/chevron-down",
|
|
1029
|
-
className: "relative top-[1px] ml-1 size-
|
|
1029
|
+
className: "relative top-[1px] ml-1 size-2 transition duration-300 group-data-[state=open]:rotate-180",
|
|
1030
1030
|
"aria-hidden": "true"
|
|
1031
1031
|
}
|
|
1032
1032
|
)
|
|
@@ -1084,7 +1084,7 @@ function NavigationMenuLink({
|
|
|
1084
1084
|
{
|
|
1085
1085
|
"data-slot": "navigation-menu-link",
|
|
1086
1086
|
className: cn(
|
|
1087
|
-
"data-[active=true]:focus:bg-
|
|
1087
|
+
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
1088
1088
|
className
|
|
1089
1089
|
),
|
|
1090
1090
|
...props
|
|
@@ -1095,6 +1095,11 @@ function NavigationMenuLink({
|
|
|
1095
1095
|
// lib/mediaPlaceholders.ts
|
|
1096
1096
|
var logoPlaceholders = {
|
|
1097
1097
|
logoMark: "https://cdn.ing/assets/i/r/285975/eud79qeya11q5w6ueyhklueardyx/monochrome-rounded-square-app-icon-circular-emblem.png"};
|
|
1098
|
+
|
|
1099
|
+
// components/blocks/navbars/types.ts
|
|
1100
|
+
function getLinkUrl(item) {
|
|
1101
|
+
return item.href || item.url || "#";
|
|
1102
|
+
}
|
|
1098
1103
|
var NavbarPlatformResources = ({
|
|
1099
1104
|
className,
|
|
1100
1105
|
containerClassName,
|
|
@@ -1147,7 +1152,7 @@ var NavbarPlatformResources = ({
|
|
|
1147
1152
|
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1148
1153
|
NavigationMenuLink,
|
|
1149
1154
|
{
|
|
1150
|
-
href: item
|
|
1155
|
+
href: getLinkUrl(item),
|
|
1151
1156
|
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
|
|
1152
1157
|
children: [
|
|
1153
1158
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -1176,7 +1181,7 @@ var NavbarPlatformResources = ({
|
|
|
1176
1181
|
/* @__PURE__ */ jsx(
|
|
1177
1182
|
NavigationMenuLink,
|
|
1178
1183
|
{
|
|
1179
|
-
href: featuredItem
|
|
1184
|
+
href: getLinkUrl(featuredItem),
|
|
1180
1185
|
className: "group w-1/3 p-0 hover:bg-transparent",
|
|
1181
1186
|
children: /* @__PURE__ */ jsxs("div", { className: "overflow-clip rounded-lg border border-input bg-background", children: [
|
|
1182
1187
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
@@ -1200,7 +1205,7 @@ var NavbarPlatformResources = ({
|
|
|
1200
1205
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-8", children: gridItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1201
1206
|
NavigationMenuLink,
|
|
1202
1207
|
{
|
|
1203
|
-
href: item
|
|
1208
|
+
href: getLinkUrl(item),
|
|
1204
1209
|
className: "group block p-4",
|
|
1205
1210
|
children: [
|
|
1206
1211
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "mb-5 group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
|
|
@@ -1221,7 +1226,7 @@ var NavbarPlatformResources = ({
|
|
|
1221
1226
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-4", children: link.dropdownGroups[0].links.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1222
1227
|
NavigationMenuLink,
|
|
1223
1228
|
{
|
|
1224
|
-
href: item
|
|
1229
|
+
href: getLinkUrl(item),
|
|
1225
1230
|
className: "group flex flex-row items-center gap-5",
|
|
1226
1231
|
children: [
|
|
1227
1232
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
@@ -1234,7 +1239,7 @@ var NavbarPlatformResources = ({
|
|
|
1234
1239
|
ctaItem && /* @__PURE__ */ jsx(
|
|
1235
1240
|
NavigationMenuLink,
|
|
1236
1241
|
{
|
|
1237
|
-
href: ctaItem
|
|
1242
|
+
href: getLinkUrl(ctaItem),
|
|
1238
1243
|
className: "group flex-1 p-0 hover:bg-transparent",
|
|
1239
1244
|
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full rounded-lg border border-input bg-background p-0 hover:bg-transparent", children: [
|
|
1240
1245
|
ctaItem.image && /* @__PURE__ */ jsx("div", { className: "w-2/5 max-w-[310px] shrink-0 overflow-clip rounded-tl-lg rounded-bl-lg", children: /* @__PURE__ */ jsx(
|
|
@@ -1268,7 +1273,7 @@ var NavbarPlatformResources = ({
|
|
|
1268
1273
|
/* @__PURE__ */ jsx("div", { className: "-ml-2.5 space-y-2.5", children: listItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1269
1274
|
NavigationMenuLink,
|
|
1270
1275
|
{
|
|
1271
|
-
href: item
|
|
1276
|
+
href: getLinkUrl(item),
|
|
1272
1277
|
className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
1273
1278
|
children: [
|
|
1274
1279
|
(item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null),
|
|
@@ -1281,7 +1286,7 @@ var NavbarPlatformResources = ({
|
|
|
1281
1286
|
/* @__PURE__ */ jsx("div", { className: "max-w-[716px] flex-1 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxs(
|
|
1282
1287
|
NavigationMenuLink,
|
|
1283
1288
|
{
|
|
1284
|
-
href: showcase
|
|
1289
|
+
href: getLinkUrl(showcase),
|
|
1285
1290
|
className: "flex flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
1286
1291
|
children: [
|
|
1287
1292
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -1315,7 +1320,7 @@ var NavbarPlatformResources = ({
|
|
|
1315
1320
|
/* @__PURE__ */ jsx("div", { className: "grid flex-1 grid-cols-1 gap-6 md:grid-cols-2", children: group.links.map((item, itemIndex) => /* @__PURE__ */ jsx(
|
|
1316
1321
|
NavigationMenuLink,
|
|
1317
1322
|
{
|
|
1318
|
-
href: item
|
|
1323
|
+
href: getLinkUrl(item),
|
|
1319
1324
|
className: "flex h-full flex-col overflow-clip rounded-lg border border-input bg-background p-5 hover:bg-accent hover:text-accent-foreground xl:p-8",
|
|
1320
1325
|
children: /* @__PURE__ */ jsxs("div", { className: "mt-auto", children: [
|
|
1321
1326
|
/* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: item.label }),
|
|
@@ -1332,7 +1337,7 @@ var NavbarPlatformResources = ({
|
|
|
1332
1337
|
/* @__PURE__ */ jsxs(
|
|
1333
1338
|
NavigationMenuLink,
|
|
1334
1339
|
{
|
|
1335
|
-
href: ctaItem
|
|
1340
|
+
href: getLinkUrl(ctaItem),
|
|
1336
1341
|
className: "mb-6 flex flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
1337
1342
|
children: [
|
|
1338
1343
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -1361,7 +1366,7 @@ var NavbarPlatformResources = ({
|
|
|
1361
1366
|
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1362
1367
|
NavigationMenuLink,
|
|
1363
1368
|
{
|
|
1364
|
-
href: item
|
|
1369
|
+
href: getLinkUrl(item),
|
|
1365
1370
|
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
|
|
1366
1371
|
children: [
|
|
1367
1372
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -1501,7 +1506,7 @@ var NavbarPlatformResources = ({
|
|
|
1501
1506
|
/* @__PURE__ */ jsx(AccordionContent, { className: "px-2 pb-4", children: /* @__PURE__ */ jsx("div", { className: "space-y-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1502
1507
|
Pressable,
|
|
1503
1508
|
{
|
|
1504
|
-
href: item
|
|
1509
|
+
href: getLinkUrl(item),
|
|
1505
1510
|
className: "group flex items-start gap-4 rounded-lg p-2 hover:bg-muted",
|
|
1506
1511
|
children: [
|
|
1507
1512
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -954,7 +954,7 @@ function NavigationMenuList({
|
|
|
954
954
|
{
|
|
955
955
|
"data-slot": "navigation-menu-list",
|
|
956
956
|
className: cn(
|
|
957
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
957
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
958
958
|
className
|
|
959
959
|
),
|
|
960
960
|
...props
|
|
@@ -975,7 +975,7 @@ function NavigationMenuItem({
|
|
|
975
975
|
);
|
|
976
976
|
}
|
|
977
977
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
978
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-
|
|
978
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-muted data-[state=open]:text-foreground data-[state=open]:focus:bg-muted data-[state=open]:bg-muted/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
979
979
|
);
|
|
980
980
|
function NavigationMenuViewport({
|
|
981
981
|
className,
|
|
@@ -1010,7 +1010,7 @@ function NavigationMenuLink({
|
|
|
1010
1010
|
{
|
|
1011
1011
|
"data-slot": "navigation-menu-link",
|
|
1012
1012
|
className: cn(
|
|
1013
|
-
"data-[active=true]:focus:bg-
|
|
1013
|
+
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
1014
1014
|
className
|
|
1015
1015
|
),
|
|
1016
1016
|
...props
|
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { P as PatternName } from './pattern-background-a7gKHzHy.cjs';
|
|
4
4
|
import { SectionBackground, SectionSpacing } from './types.cjs';
|
|
5
|
+
import { L as LogoConfig } from './types-D2b35ylu.cjs';
|
|
5
6
|
import { A as ActionConfig, O as OptixFlowConfig } from './blocks-Cohq4eio.cjs';
|
|
6
7
|
import 'class-variance-authority';
|
|
7
8
|
import './button-variants-lRElsmTc.cjs';
|
|
@@ -13,16 +14,6 @@ interface NavItem {
|
|
|
13
14
|
icon?: React.ReactNode;
|
|
14
15
|
iconName?: string;
|
|
15
16
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Logo configuration interface
|
|
18
|
-
*/
|
|
19
|
-
interface LogoConfig {
|
|
20
|
-
url?: string;
|
|
21
|
-
src?: string;
|
|
22
|
-
alt?: string;
|
|
23
|
-
title?: React.ReactNode;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
17
|
/**
|
|
27
18
|
* Props for the NavbarSearchFocused component
|
|
28
19
|
*/
|
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { P as PatternName } from './pattern-background-a7gKHzHy.js';
|
|
4
4
|
import { SectionBackground, SectionSpacing } from './types.js';
|
|
5
|
+
import { L as LogoConfig } from './types-D2b35ylu.js';
|
|
5
6
|
import { A as ActionConfig, O as OptixFlowConfig } from './blocks-k17uluAz.js';
|
|
6
7
|
import 'class-variance-authority';
|
|
7
8
|
import './button-variants-lRElsmTc.js';
|
|
@@ -13,16 +14,6 @@ interface NavItem {
|
|
|
13
14
|
icon?: React.ReactNode;
|
|
14
15
|
iconName?: string;
|
|
15
16
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Logo configuration interface
|
|
18
|
-
*/
|
|
19
|
-
interface LogoConfig {
|
|
20
|
-
url?: string;
|
|
21
|
-
src?: string;
|
|
22
|
-
alt?: string;
|
|
23
|
-
title?: React.ReactNode;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
17
|
/**
|
|
27
18
|
* Props for the NavbarSearchFocused component
|
|
28
19
|
*/
|
|
@@ -931,7 +931,7 @@ function NavigationMenuList({
|
|
|
931
931
|
{
|
|
932
932
|
"data-slot": "navigation-menu-list",
|
|
933
933
|
className: cn(
|
|
934
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
934
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
935
935
|
className
|
|
936
936
|
),
|
|
937
937
|
...props
|
|
@@ -952,7 +952,7 @@ function NavigationMenuItem({
|
|
|
952
952
|
);
|
|
953
953
|
}
|
|
954
954
|
var navigationMenuTriggerStyle = cva(
|
|
955
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-
|
|
955
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-muted data-[state=open]:text-foreground data-[state=open]:focus:bg-muted data-[state=open]:bg-muted/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
956
956
|
);
|
|
957
957
|
function NavigationMenuViewport({
|
|
958
958
|
className,
|
|
@@ -987,7 +987,7 @@ function NavigationMenuLink({
|
|
|
987
987
|
{
|
|
988
988
|
"data-slot": "navigation-menu-link",
|
|
989
989
|
className: cn(
|
|
990
|
-
"data-[active=true]:focus:bg-
|
|
990
|
+
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
991
991
|
className
|
|
992
992
|
),
|
|
993
993
|
...props
|
|
@@ -1010,7 +1010,7 @@ function NavigationMenuList({
|
|
|
1010
1010
|
{
|
|
1011
1011
|
"data-slot": "navigation-menu-list",
|
|
1012
1012
|
className: cn(
|
|
1013
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
1013
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
1014
1014
|
className
|
|
1015
1015
|
),
|
|
1016
1016
|
...props
|
|
@@ -1031,7 +1031,7 @@ function NavigationMenuItem({
|
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
1034
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-
|
|
1034
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-muted data-[state=open]:text-foreground data-[state=open]:focus:bg-muted data-[state=open]:bg-muted/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
1035
1035
|
);
|
|
1036
1036
|
function NavigationMenuTrigger({
|
|
1037
1037
|
className,
|
|
@@ -1051,7 +1051,7 @@ function NavigationMenuTrigger({
|
|
|
1051
1051
|
DynamicIcon,
|
|
1052
1052
|
{
|
|
1053
1053
|
name: "lucide/chevron-down",
|
|
1054
|
-
className: "relative top-[1px] ml-1 size-
|
|
1054
|
+
className: "relative top-[1px] ml-1 size-2 transition duration-300 group-data-[state=open]:rotate-180",
|
|
1055
1055
|
"aria-hidden": "true"
|
|
1056
1056
|
}
|
|
1057
1057
|
)
|
|
@@ -1109,7 +1109,7 @@ function NavigationMenuLink({
|
|
|
1109
1109
|
{
|
|
1110
1110
|
"data-slot": "navigation-menu-link",
|
|
1111
1111
|
className: cn(
|
|
1112
|
-
"data-[active=true]:focus:bg-
|
|
1112
|
+
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
1113
1113
|
className
|
|
1114
1114
|
),
|
|
1115
1115
|
...props
|
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { P as PatternName } from './pattern-background-a7gKHzHy.cjs';
|
|
4
4
|
import { SectionBackground, SectionSpacing } from './types.cjs';
|
|
5
|
+
import { L as LogoConfig } from './types-D2b35ylu.cjs';
|
|
5
6
|
import { A as ActionConfig, O as OptixFlowConfig } from './blocks-Cohq4eio.cjs';
|
|
6
7
|
import 'class-variance-authority';
|
|
7
8
|
import './button-variants-lRElsmTc.cjs';
|
|
@@ -18,16 +19,6 @@ interface MenuItem {
|
|
|
18
19
|
url?: string;
|
|
19
20
|
items?: SubMenuItem[];
|
|
20
21
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Logo configuration interface
|
|
23
|
-
*/
|
|
24
|
-
interface LogoConfig {
|
|
25
|
-
url?: string;
|
|
26
|
-
src?: string;
|
|
27
|
-
alt?: string;
|
|
28
|
-
title?: React.ReactNode;
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
31
22
|
/**
|
|
32
23
|
* Props for the NavbarSidebarMobile component
|
|
33
24
|
*/
|