@opensite/ui 0.4.3 → 0.4.4
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 +6 -6
- package/dist/navbar-animated-preview.js +6 -6
- package/dist/navbar-centered-menu.cjs +6 -6
- package/dist/navbar-centered-menu.js +6 -6
- package/dist/navbar-dark-icons.cjs +4 -4
- package/dist/navbar-dark-icons.js +4 -4
- package/dist/navbar-dropdown-menu.cjs +6 -6
- package/dist/navbar-dropdown-menu.js +6 -6
- package/dist/navbar-education-platform.cjs +4 -4
- package/dist/navbar-education-platform.js +4 -4
- package/dist/navbar-enterprise-mega.cjs +6 -6
- package/dist/navbar-enterprise-mega.js +6 -6
- package/dist/navbar-feature-grid.cjs +4 -4
- package/dist/navbar-feature-grid.js +4 -4
- package/dist/navbar-floating-pill.cjs +4 -4
- package/dist/navbar-floating-pill.js +4 -4
- package/dist/navbar-icon-links.cjs +3 -3
- package/dist/navbar-icon-links.js +3 -3
- package/dist/navbar-image-preview.cjs +6 -6
- package/dist/navbar-image-preview.js +6 -6
- package/dist/navbar-mega-menu.cjs +14 -21
- package/dist/navbar-mega-menu.js +14 -21
- package/dist/navbar-multi-column-groups.cjs +4 -4
- package/dist/navbar-multi-column-groups.js +4 -4
- package/dist/navbar-platform-resources.cjs +4 -4
- package/dist/navbar-platform-resources.js +4 -4
- package/dist/navbar-search-focused.cjs +3 -3
- package/dist/navbar-search-focused.js +3 -3
- package/dist/navbar-sidebar-mobile.cjs +4 -4
- package/dist/navbar-sidebar-mobile.js +4 -4
- package/dist/navbar-simple-links.cjs +4 -4
- package/dist/navbar-simple-links.js +4 -4
- package/dist/navbar-split-cta.cjs +4 -4
- package/dist/navbar-split-cta.js +4 -4
- package/dist/navbar-sticky-compact.cjs +4 -4
- package/dist/navbar-sticky-compact.js +4 -4
- package/dist/navbar-tabbed-sections.cjs +4 -4
- package/dist/navbar-tabbed-sections.js +4 -4
- package/dist/navbar-transparent-overlay.cjs +3 -3
- package/dist/navbar-transparent-overlay.js +3 -3
- package/dist/registry.cjs +25 -27
- package/dist/registry.js +25 -27
- package/package.json +1 -1
|
@@ -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.5 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
|
|
@@ -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.5 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
|
|
@@ -952,7 +952,7 @@ function NavigationMenuList({
|
|
|
952
952
|
{
|
|
953
953
|
"data-slot": "navigation-menu-list",
|
|
954
954
|
className: cn(
|
|
955
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
955
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
956
956
|
className
|
|
957
957
|
),
|
|
958
958
|
...props
|
|
@@ -973,7 +973,7 @@ function NavigationMenuItem({
|
|
|
973
973
|
);
|
|
974
974
|
}
|
|
975
975
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
976
|
-
"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-
|
|
976
|
+
"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"
|
|
977
977
|
);
|
|
978
978
|
function NavigationMenuTrigger({
|
|
979
979
|
className,
|
|
@@ -993,7 +993,7 @@ function NavigationMenuTrigger({
|
|
|
993
993
|
DynamicIcon,
|
|
994
994
|
{
|
|
995
995
|
name: "lucide/chevron-down",
|
|
996
|
-
className: "relative top-[1px] ml-1 size-
|
|
996
|
+
className: "relative top-[1px] ml-1 size-2.5 transition duration-300 group-data-[state=open]:rotate-180",
|
|
997
997
|
"aria-hidden": "true"
|
|
998
998
|
}
|
|
999
999
|
)
|
|
@@ -1051,7 +1051,7 @@ function NavigationMenuLink({
|
|
|
1051
1051
|
{
|
|
1052
1052
|
"data-slot": "navigation-menu-link",
|
|
1053
1053
|
className: cn(
|
|
1054
|
-
"data-[active=true]:focus:bg-
|
|
1054
|
+
"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",
|
|
1055
1055
|
className
|
|
1056
1056
|
),
|
|
1057
1057
|
...props
|
|
@@ -930,7 +930,7 @@ function NavigationMenuList({
|
|
|
930
930
|
{
|
|
931
931
|
"data-slot": "navigation-menu-list",
|
|
932
932
|
className: cn(
|
|
933
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
933
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
934
934
|
className
|
|
935
935
|
),
|
|
936
936
|
...props
|
|
@@ -951,7 +951,7 @@ function NavigationMenuItem({
|
|
|
951
951
|
);
|
|
952
952
|
}
|
|
953
953
|
var navigationMenuTriggerStyle = cva(
|
|
954
|
-
"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-
|
|
954
|
+
"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"
|
|
955
955
|
);
|
|
956
956
|
function NavigationMenuTrigger({
|
|
957
957
|
className,
|
|
@@ -971,7 +971,7 @@ function NavigationMenuTrigger({
|
|
|
971
971
|
DynamicIcon,
|
|
972
972
|
{
|
|
973
973
|
name: "lucide/chevron-down",
|
|
974
|
-
className: "relative top-[1px] ml-1 size-
|
|
974
|
+
className: "relative top-[1px] ml-1 size-2.5 transition duration-300 group-data-[state=open]:rotate-180",
|
|
975
975
|
"aria-hidden": "true"
|
|
976
976
|
}
|
|
977
977
|
)
|
|
@@ -1029,7 +1029,7 @@ function NavigationMenuLink({
|
|
|
1029
1029
|
{
|
|
1030
1030
|
"data-slot": "navigation-menu-link",
|
|
1031
1031
|
className: cn(
|
|
1032
|
-
"data-[active=true]:focus:bg-
|
|
1032
|
+
"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",
|
|
1033
1033
|
className
|
|
1034
1034
|
),
|
|
1035
1035
|
...props
|
|
@@ -956,7 +956,7 @@ function NavigationMenuList({
|
|
|
956
956
|
{
|
|
957
957
|
"data-slot": "navigation-menu-list",
|
|
958
958
|
className: cn(
|
|
959
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
959
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
960
960
|
className
|
|
961
961
|
),
|
|
962
962
|
...props
|
|
@@ -977,7 +977,7 @@ function NavigationMenuItem({
|
|
|
977
977
|
);
|
|
978
978
|
}
|
|
979
979
|
classVarianceAuthority.cva(
|
|
980
|
-
"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-
|
|
980
|
+
"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"
|
|
981
981
|
);
|
|
982
982
|
function NavigationMenuViewport({
|
|
983
983
|
className,
|
|
@@ -1012,7 +1012,7 @@ function NavigationMenuLink({
|
|
|
1012
1012
|
{
|
|
1013
1013
|
"data-slot": "navigation-menu-link",
|
|
1014
1014
|
className: cn(
|
|
1015
|
-
"data-[active=true]:focus:bg-
|
|
1015
|
+
"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",
|
|
1016
1016
|
className
|
|
1017
1017
|
),
|
|
1018
1018
|
...props
|
|
@@ -932,7 +932,7 @@ function NavigationMenuList({
|
|
|
932
932
|
{
|
|
933
933
|
"data-slot": "navigation-menu-list",
|
|
934
934
|
className: cn(
|
|
935
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
935
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
936
936
|
className
|
|
937
937
|
),
|
|
938
938
|
...props
|
|
@@ -953,7 +953,7 @@ function NavigationMenuItem({
|
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
955
|
cva(
|
|
956
|
-
"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-
|
|
956
|
+
"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"
|
|
957
957
|
);
|
|
958
958
|
function NavigationMenuViewport({
|
|
959
959
|
className,
|
|
@@ -988,7 +988,7 @@ function NavigationMenuLink({
|
|
|
988
988
|
{
|
|
989
989
|
"data-slot": "navigation-menu-link",
|
|
990
990
|
className: cn(
|
|
991
|
-
"data-[active=true]:focus:bg-
|
|
991
|
+
"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",
|
|
992
992
|
className
|
|
993
993
|
),
|
|
994
994
|
...props
|
|
@@ -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 NavigationMenuTrigger({
|
|
981
981
|
className,
|
|
@@ -995,7 +995,7 @@ function NavigationMenuTrigger({
|
|
|
995
995
|
DynamicIcon,
|
|
996
996
|
{
|
|
997
997
|
name: "lucide/chevron-down",
|
|
998
|
-
className: "relative top-[1px] ml-1 size-
|
|
998
|
+
className: "relative top-[1px] ml-1 size-2.5 transition duration-300 group-data-[state=open]:rotate-180",
|
|
999
999
|
"aria-hidden": "true"
|
|
1000
1000
|
}
|
|
1001
1001
|
)
|
|
@@ -1053,7 +1053,7 @@ function NavigationMenuLink({
|
|
|
1053
1053
|
{
|
|
1054
1054
|
"data-slot": "navigation-menu-link",
|
|
1055
1055
|
className: cn(
|
|
1056
|
-
"data-[active=true]:focus:bg-
|
|
1056
|
+
"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",
|
|
1057
1057
|
className
|
|
1058
1058
|
),
|
|
1059
1059
|
...props
|
|
@@ -1481,7 +1481,7 @@ var DesktopMenuItem = ({
|
|
|
1481
1481
|
};
|
|
1482
1482
|
if (item.links) {
|
|
1483
1483
|
return /* @__PURE__ */ jsxRuntime.jsxs(NavigationMenuItem, { value: `${index}`, children: [
|
|
1484
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "bg-transparent", children: item.title }),
|
|
1484
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "bg-transparent px-3 py-2 text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: item.title }),
|
|
1485
1485
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "rounded-2xl! p-0!", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid min-h-75 w-181 grid-cols-[22.5rem_1fr] gap-4 p-3", children: [
|
|
1486
1486
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative aspect-square w-full overflow-hidden rounded-xl", children: item.links.map((link, linkIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1487
1487
|
img.Img,
|
|
@@ -1522,7 +1522,7 @@ var DesktopMenuItem = ({
|
|
|
1522
1522
|
NavigationMenuItem,
|
|
1523
1523
|
{
|
|
1524
1524
|
value: `${index}`,
|
|
1525
|
-
className: `${navigationMenuTriggerStyle()} bg-transparent`,
|
|
1525
|
+
className: `${navigationMenuTriggerStyle()} bg-transparent text-foreground/80 hover:bg-muted hover:text-foreground`,
|
|
1526
1526
|
children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuLink, { href: item.url, children: item.title })
|
|
1527
1527
|
},
|
|
1528
1528
|
`desktop-menu-item-${index}`
|
|
@@ -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 NavigationMenuTrigger({
|
|
958
958
|
className,
|
|
@@ -972,7 +972,7 @@ function NavigationMenuTrigger({
|
|
|
972
972
|
DynamicIcon,
|
|
973
973
|
{
|
|
974
974
|
name: "lucide/chevron-down",
|
|
975
|
-
className: "relative top-[1px] ml-1 size-
|
|
975
|
+
className: "relative top-[1px] ml-1 size-2.5 transition duration-300 group-data-[state=open]:rotate-180",
|
|
976
976
|
"aria-hidden": "true"
|
|
977
977
|
}
|
|
978
978
|
)
|
|
@@ -1030,7 +1030,7 @@ function NavigationMenuLink({
|
|
|
1030
1030
|
{
|
|
1031
1031
|
"data-slot": "navigation-menu-link",
|
|
1032
1032
|
className: cn(
|
|
1033
|
-
"data-[active=true]:focus:bg-
|
|
1033
|
+
"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",
|
|
1034
1034
|
className
|
|
1035
1035
|
),
|
|
1036
1036
|
...props
|
|
@@ -1458,7 +1458,7 @@ var DesktopMenuItem = ({
|
|
|
1458
1458
|
};
|
|
1459
1459
|
if (item.links) {
|
|
1460
1460
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { value: `${index}`, children: [
|
|
1461
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "bg-transparent", children: item.title }),
|
|
1461
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "bg-transparent px-3 py-2 text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: item.title }),
|
|
1462
1462
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "rounded-2xl! p-0!", children: /* @__PURE__ */ jsxs("div", { className: "grid min-h-75 w-181 grid-cols-[22.5rem_1fr] gap-4 p-3", children: [
|
|
1463
1463
|
/* @__PURE__ */ jsx("div", { className: "relative aspect-square w-full overflow-hidden rounded-xl", children: item.links.map((link, linkIndex) => /* @__PURE__ */ jsx(
|
|
1464
1464
|
Img,
|
|
@@ -1499,7 +1499,7 @@ var DesktopMenuItem = ({
|
|
|
1499
1499
|
NavigationMenuItem,
|
|
1500
1500
|
{
|
|
1501
1501
|
value: `${index}`,
|
|
1502
|
-
className: `${navigationMenuTriggerStyle()} bg-transparent`,
|
|
1502
|
+
className: `${navigationMenuTriggerStyle()} bg-transparent text-foreground/80 hover:bg-muted hover:text-foreground`,
|
|
1503
1503
|
children: /* @__PURE__ */ jsx(NavigationMenuLink, { href: item.url, children: item.title })
|
|
1504
1504
|
},
|
|
1505
1505
|
`desktop-menu-item-${index}`
|
|
@@ -952,7 +952,7 @@ function NavigationMenuList({
|
|
|
952
952
|
{
|
|
953
953
|
"data-slot": "navigation-menu-list",
|
|
954
954
|
className: cn(
|
|
955
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
955
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
956
956
|
className
|
|
957
957
|
),
|
|
958
958
|
...props
|
|
@@ -973,7 +973,7 @@ function NavigationMenuItem({
|
|
|
973
973
|
);
|
|
974
974
|
}
|
|
975
975
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
976
|
-
"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-
|
|
976
|
+
"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"
|
|
977
977
|
);
|
|
978
978
|
function NavigationMenuTrigger({
|
|
979
979
|
className,
|
|
@@ -993,7 +993,7 @@ function NavigationMenuTrigger({
|
|
|
993
993
|
DynamicIcon,
|
|
994
994
|
{
|
|
995
995
|
name: "lucide/chevron-down",
|
|
996
|
-
className: "relative top-[1px] ml-1 size-
|
|
996
|
+
className: "relative top-[1px] ml-1 size-2.5 transition duration-300 group-data-[state=open]:rotate-180",
|
|
997
997
|
"aria-hidden": "true"
|
|
998
998
|
}
|
|
999
999
|
)
|
|
@@ -1051,18 +1051,13 @@ function NavigationMenuLink({
|
|
|
1051
1051
|
{
|
|
1052
1052
|
"data-slot": "navigation-menu-link",
|
|
1053
1053
|
className: cn(
|
|
1054
|
-
"data-[active=true]:focus:bg-
|
|
1054
|
+
"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",
|
|
1055
1055
|
className
|
|
1056
1056
|
),
|
|
1057
1057
|
...props
|
|
1058
1058
|
}
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
1061
|
-
|
|
1062
|
-
// lib/mediaPlaceholders.ts
|
|
1063
|
-
var logoPlaceholders = {
|
|
1064
|
-
logoMark: "https://cdn.ing/assets/i/r/285975/eud79qeya11q5w6ueyhklueardyx/monochrome-rounded-square-app-icon-circular-emblem.png",
|
|
1065
|
-
darkHorizontalLogo: "https://cdn.ing/assets/i/r/285986/5ivxh3ivywsmm6uslf3te38r6tg1/logo-dark.png"};
|
|
1066
1061
|
var DesktopMenuItem = ({
|
|
1067
1062
|
link,
|
|
1068
1063
|
index,
|
|
@@ -1090,7 +1085,7 @@ var DesktopMenuItem = ({
|
|
|
1090
1085
|
};
|
|
1091
1086
|
if (layout === "animated-image-preview" && link.links) {
|
|
1092
1087
|
return /* @__PURE__ */ jsxRuntime.jsxs(NavigationMenuItem, { children: [
|
|
1093
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1088
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
1094
1089
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "!rounded-2xl !p-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid min-h-[18.75rem] w-[45.25rem] grid-cols-[22.5rem_1fr] gap-4 p-3", children: [
|
|
1095
1090
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative aspect-square w-full overflow-hidden rounded-xl", children: link.links.map((item, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1096
1091
|
img.Img,
|
|
@@ -1132,14 +1127,14 @@ var DesktopMenuItem = ({
|
|
|
1132
1127
|
}
|
|
1133
1128
|
if (layout === "simple-grid" && link.links) {
|
|
1134
1129
|
return /* @__PURE__ */ jsxRuntime.jsxs(NavigationMenuItem, { children: [
|
|
1135
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1130
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
1136
1131
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[520px] p-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: link.links.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1137
1132
|
NavigationMenuLink,
|
|
1138
1133
|
{
|
|
1139
1134
|
href: item.url,
|
|
1140
|
-
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-
|
|
1135
|
+
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-muted hover:text-foreground",
|
|
1141
1136
|
children: [
|
|
1142
|
-
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-
|
|
1137
|
+
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-16 w-16 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1143
1138
|
img.Img,
|
|
1144
1139
|
{
|
|
1145
1140
|
src: item.image,
|
|
@@ -1148,9 +1143,9 @@ var DesktopMenuItem = ({
|
|
|
1148
1143
|
optixFlowConfig
|
|
1149
1144
|
}
|
|
1150
1145
|
) }),
|
|
1151
|
-
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-
|
|
1146
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
|
|
1152
1147
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1153
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-
|
|
1148
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1154
1149
|
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1155
1150
|
] })
|
|
1156
1151
|
]
|
|
@@ -1161,7 +1156,7 @@ var DesktopMenuItem = ({
|
|
|
1161
1156
|
}
|
|
1162
1157
|
if (layout === "list-with-icons" && link.links) {
|
|
1163
1158
|
return /* @__PURE__ */ jsxRuntime.jsxs(NavigationMenuItem, { children: [
|
|
1164
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1159
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
1165
1160
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[400px] p-4", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-col gap-1", children: link.links.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1166
1161
|
NavigationMenuLink,
|
|
1167
1162
|
{
|
|
@@ -1244,9 +1239,7 @@ var NavbarMegaMenu = ({
|
|
|
1244
1239
|
logoClassName,
|
|
1245
1240
|
mobileMenuClassName,
|
|
1246
1241
|
logo = {
|
|
1247
|
-
url: "/"
|
|
1248
|
-
desktopSrc: logoPlaceholders.darkHorizontalLogo,
|
|
1249
|
-
mobileSrc: logoPlaceholders.logoMark
|
|
1242
|
+
url: "/"
|
|
1250
1243
|
},
|
|
1251
1244
|
logoSlot,
|
|
1252
1245
|
menuLinks,
|
|
@@ -1272,7 +1265,7 @@ var NavbarMegaMenu = ({
|
|
|
1272
1265
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1273
1266
|
img.Img,
|
|
1274
1267
|
{
|
|
1275
|
-
src: logo.desktopSrc
|
|
1268
|
+
src: logo.desktopSrc,
|
|
1276
1269
|
className: cn("hidden h-7 dark:invert md:block", logo.className),
|
|
1277
1270
|
alt: logo.alt || "Logo",
|
|
1278
1271
|
optixFlowConfig
|
|
@@ -1281,7 +1274,7 @@ var NavbarMegaMenu = ({
|
|
|
1281
1274
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1282
1275
|
img.Img,
|
|
1283
1276
|
{
|
|
1284
|
-
src: logo.mobileSrc
|
|
1277
|
+
src: logo.mobileSrc,
|
|
1285
1278
|
className: cn("h-7 dark:invert md:hidden", logo.className),
|
|
1286
1279
|
alt: logo.alt || "Logo",
|
|
1287
1280
|
optixFlowConfig
|
package/dist/navbar-mega-menu.js
CHANGED
|
@@ -930,7 +930,7 @@ function NavigationMenuList({
|
|
|
930
930
|
{
|
|
931
931
|
"data-slot": "navigation-menu-list",
|
|
932
932
|
className: cn(
|
|
933
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
933
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
934
934
|
className
|
|
935
935
|
),
|
|
936
936
|
...props
|
|
@@ -951,7 +951,7 @@ function NavigationMenuItem({
|
|
|
951
951
|
);
|
|
952
952
|
}
|
|
953
953
|
var navigationMenuTriggerStyle = cva(
|
|
954
|
-
"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-
|
|
954
|
+
"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"
|
|
955
955
|
);
|
|
956
956
|
function NavigationMenuTrigger({
|
|
957
957
|
className,
|
|
@@ -971,7 +971,7 @@ function NavigationMenuTrigger({
|
|
|
971
971
|
DynamicIcon,
|
|
972
972
|
{
|
|
973
973
|
name: "lucide/chevron-down",
|
|
974
|
-
className: "relative top-[1px] ml-1 size-
|
|
974
|
+
className: "relative top-[1px] ml-1 size-2.5 transition duration-300 group-data-[state=open]:rotate-180",
|
|
975
975
|
"aria-hidden": "true"
|
|
976
976
|
}
|
|
977
977
|
)
|
|
@@ -1029,18 +1029,13 @@ function NavigationMenuLink({
|
|
|
1029
1029
|
{
|
|
1030
1030
|
"data-slot": "navigation-menu-link",
|
|
1031
1031
|
className: cn(
|
|
1032
|
-
"data-[active=true]:focus:bg-
|
|
1032
|
+
"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",
|
|
1033
1033
|
className
|
|
1034
1034
|
),
|
|
1035
1035
|
...props
|
|
1036
1036
|
}
|
|
1037
1037
|
);
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1040
|
-
// lib/mediaPlaceholders.ts
|
|
1041
|
-
var logoPlaceholders = {
|
|
1042
|
-
logoMark: "https://cdn.ing/assets/i/r/285975/eud79qeya11q5w6ueyhklueardyx/monochrome-rounded-square-app-icon-circular-emblem.png",
|
|
1043
|
-
darkHorizontalLogo: "https://cdn.ing/assets/i/r/285986/5ivxh3ivywsmm6uslf3te38r6tg1/logo-dark.png"};
|
|
1044
1039
|
var DesktopMenuItem = ({
|
|
1045
1040
|
link,
|
|
1046
1041
|
index,
|
|
@@ -1068,7 +1063,7 @@ var DesktopMenuItem = ({
|
|
|
1068
1063
|
};
|
|
1069
1064
|
if (layout === "animated-image-preview" && link.links) {
|
|
1070
1065
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { children: [
|
|
1071
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1066
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
1072
1067
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "!rounded-2xl !p-0", children: /* @__PURE__ */ jsxs("div", { className: "grid min-h-[18.75rem] w-[45.25rem] grid-cols-[22.5rem_1fr] gap-4 p-3", children: [
|
|
1073
1068
|
/* @__PURE__ */ jsx("div", { className: "relative aspect-square w-full overflow-hidden rounded-xl", children: link.links.map((item, idx) => /* @__PURE__ */ jsx(
|
|
1074
1069
|
Img,
|
|
@@ -1110,14 +1105,14 @@ var DesktopMenuItem = ({
|
|
|
1110
1105
|
}
|
|
1111
1106
|
if (layout === "simple-grid" && link.links) {
|
|
1112
1107
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { children: [
|
|
1113
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1108
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
1114
1109
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[520px] p-6", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: link.links.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1115
1110
|
NavigationMenuLink,
|
|
1116
1111
|
{
|
|
1117
1112
|
href: item.url,
|
|
1118
|
-
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-
|
|
1113
|
+
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-muted hover:text-foreground",
|
|
1119
1114
|
children: [
|
|
1120
|
-
item.image && /* @__PURE__ */ jsx("div", { className: "h-
|
|
1115
|
+
item.image && /* @__PURE__ */ jsx("div", { className: "h-16 w-16 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
1121
1116
|
Img,
|
|
1122
1117
|
{
|
|
1123
1118
|
src: item.image,
|
|
@@ -1126,9 +1121,9 @@ var DesktopMenuItem = ({
|
|
|
1126
1121
|
optixFlowConfig
|
|
1127
1122
|
}
|
|
1128
1123
|
) }),
|
|
1129
|
-
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-
|
|
1124
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 shrink-0 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
|
|
1130
1125
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
1131
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
1126
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1132
1127
|
item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1133
1128
|
] })
|
|
1134
1129
|
]
|
|
@@ -1139,7 +1134,7 @@ var DesktopMenuItem = ({
|
|
|
1139
1134
|
}
|
|
1140
1135
|
if (layout === "list-with-icons" && link.links) {
|
|
1141
1136
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { children: [
|
|
1142
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1137
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
1143
1138
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[400px] p-4", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1", children: link.links.map((item, itemIndex) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
|
|
1144
1139
|
NavigationMenuLink,
|
|
1145
1140
|
{
|
|
@@ -1222,9 +1217,7 @@ var NavbarMegaMenu = ({
|
|
|
1222
1217
|
logoClassName,
|
|
1223
1218
|
mobileMenuClassName,
|
|
1224
1219
|
logo = {
|
|
1225
|
-
url: "/"
|
|
1226
|
-
desktopSrc: logoPlaceholders.darkHorizontalLogo,
|
|
1227
|
-
mobileSrc: logoPlaceholders.logoMark
|
|
1220
|
+
url: "/"
|
|
1228
1221
|
},
|
|
1229
1222
|
logoSlot,
|
|
1230
1223
|
menuLinks,
|
|
@@ -1250,7 +1243,7 @@ var NavbarMegaMenu = ({
|
|
|
1250
1243
|
/* @__PURE__ */ jsx(
|
|
1251
1244
|
Img,
|
|
1252
1245
|
{
|
|
1253
|
-
src: logo.desktopSrc
|
|
1246
|
+
src: logo.desktopSrc,
|
|
1254
1247
|
className: cn("hidden h-7 dark:invert md:block", logo.className),
|
|
1255
1248
|
alt: logo.alt || "Logo",
|
|
1256
1249
|
optixFlowConfig
|
|
@@ -1259,7 +1252,7 @@ var NavbarMegaMenu = ({
|
|
|
1259
1252
|
/* @__PURE__ */ jsx(
|
|
1260
1253
|
Img,
|
|
1261
1254
|
{
|
|
1262
|
-
src: logo.mobileSrc
|
|
1255
|
+
src: logo.mobileSrc,
|
|
1263
1256
|
className: cn("h-7 dark:invert md:hidden", logo.className),
|
|
1264
1257
|
alt: logo.alt || "Logo",
|
|
1265
1258
|
optixFlowConfig
|
|
@@ -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.5 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
|