@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
|
@@ -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';
|
|
@@ -9,6 +10,7 @@ import 'class-variance-authority/types';
|
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Menu item interface for navigation
|
|
13
|
+
* Component-specific type using 'title' and 'url' fields
|
|
12
14
|
*/
|
|
13
15
|
interface MenuItem {
|
|
14
16
|
title: string;
|
|
@@ -17,16 +19,6 @@ interface MenuItem {
|
|
|
17
19
|
icon?: string;
|
|
18
20
|
items?: MenuItem[];
|
|
19
21
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Logo configuration interface
|
|
22
|
-
*/
|
|
23
|
-
interface LogoConfig {
|
|
24
|
-
url?: string;
|
|
25
|
-
src?: string;
|
|
26
|
-
alt?: string;
|
|
27
|
-
title?: React.ReactNode;
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
22
|
/**
|
|
31
23
|
* Props for the NavbarCenteredMenu component
|
|
32
24
|
*/
|
|
@@ -963,7 +963,7 @@ function NavigationMenuList({
|
|
|
963
963
|
{
|
|
964
964
|
"data-slot": "navigation-menu-list",
|
|
965
965
|
className: cn(
|
|
966
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
966
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
967
967
|
className
|
|
968
968
|
),
|
|
969
969
|
...props
|
|
@@ -984,7 +984,7 @@ function NavigationMenuItem({
|
|
|
984
984
|
);
|
|
985
985
|
}
|
|
986
986
|
var navigationMenuTriggerStyle = cva(
|
|
987
|
-
"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-
|
|
987
|
+
"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"
|
|
988
988
|
);
|
|
989
989
|
function NavigationMenuTrigger({
|
|
990
990
|
className,
|
|
@@ -1004,7 +1004,7 @@ function NavigationMenuTrigger({
|
|
|
1004
1004
|
DynamicIcon,
|
|
1005
1005
|
{
|
|
1006
1006
|
name: "lucide/chevron-down",
|
|
1007
|
-
className: "relative top-[1px] ml-1 size-
|
|
1007
|
+
className: "relative top-[1px] ml-1 size-2 transition duration-300 group-data-[state=open]:rotate-180",
|
|
1008
1008
|
"aria-hidden": "true"
|
|
1009
1009
|
}
|
|
1010
1010
|
)
|
|
@@ -1038,7 +1038,7 @@ function NavigationMenuLink({
|
|
|
1038
1038
|
{
|
|
1039
1039
|
"data-slot": "navigation-menu-link",
|
|
1040
1040
|
className: cn(
|
|
1041
|
-
"data-[active=true]:focus:bg-
|
|
1041
|
+
"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",
|
|
1042
1042
|
className
|
|
1043
1043
|
),
|
|
1044
1044
|
...props
|
|
@@ -1155,7 +1155,7 @@ var SubMenuLink = ({ item }) => {
|
|
|
1155
1155
|
return /* @__PURE__ */ jsxs(
|
|
1156
1156
|
Pressable,
|
|
1157
1157
|
{
|
|
1158
|
-
className: "flex flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-
|
|
1158
|
+
className: "flex flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-foreground",
|
|
1159
1159
|
href: item.url,
|
|
1160
1160
|
children: [
|
|
1161
1161
|
item.icon && /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
|
|
@@ -1178,7 +1178,7 @@ var renderMenuItem = (item) => {
|
|
|
1178
1178
|
NavigationMenuLink,
|
|
1179
1179
|
{
|
|
1180
1180
|
href: item.url,
|
|
1181
|
-
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-
|
|
1181
|
+
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground",
|
|
1182
1182
|
children: item.title
|
|
1183
1183
|
}
|
|
1184
1184
|
) }, item.title);
|
|
@@ -1292,56 +1292,65 @@ var NavbarCenteredMenu = ({
|
|
|
1292
1292
|
className: cn(className),
|
|
1293
1293
|
pattern,
|
|
1294
1294
|
patternOpacity,
|
|
1295
|
-
children: /* @__PURE__ */ jsxs(
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
className: navigationMenuClassName,
|
|
1306
|
-
children: /* @__PURE__ */ jsx(NavigationMenuList, { className: "relative", children: renderMenu() })
|
|
1307
|
-
}
|
|
1308
|
-
) }) }),
|
|
1309
|
-
/* @__PURE__ */ jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
1310
|
-
]
|
|
1311
|
-
}
|
|
1312
|
-
),
|
|
1313
|
-
/* @__PURE__ */ jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1314
|
-
renderLogo(),
|
|
1315
|
-
/* @__PURE__ */ jsxs(Sheet, { children: [
|
|
1316
|
-
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
1317
|
-
Pressable,
|
|
1295
|
+
children: /* @__PURE__ */ jsxs(
|
|
1296
|
+
"div",
|
|
1297
|
+
{
|
|
1298
|
+
className: cn(
|
|
1299
|
+
"container border-b border-border/50 shadow-sm",
|
|
1300
|
+
containerClassName
|
|
1301
|
+
),
|
|
1302
|
+
children: [
|
|
1303
|
+
/* @__PURE__ */ jsxs(
|
|
1304
|
+
"nav",
|
|
1318
1305
|
{
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1306
|
+
className: cn("hidden justify-between lg:flex", desktopNavClassName),
|
|
1307
|
+
children: [
|
|
1308
|
+
renderLogo(),
|
|
1309
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-6", children: /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsx(
|
|
1310
|
+
NavigationMenuWithoutViewport,
|
|
1311
|
+
{
|
|
1312
|
+
className: navigationMenuClassName,
|
|
1313
|
+
children: /* @__PURE__ */ jsx(NavigationMenuList, { className: "relative", children: renderMenu() })
|
|
1314
|
+
}
|
|
1315
|
+
) }) }),
|
|
1316
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
1317
|
+
]
|
|
1325
1318
|
}
|
|
1326
|
-
)
|
|
1327
|
-
/* @__PURE__ */ jsxs(
|
|
1328
|
-
|
|
1329
|
-
/* @__PURE__ */ jsxs(
|
|
1330
|
-
/* @__PURE__ */ jsx(
|
|
1331
|
-
|
|
1319
|
+
),
|
|
1320
|
+
/* @__PURE__ */ jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1321
|
+
renderLogo(),
|
|
1322
|
+
/* @__PURE__ */ jsxs(Sheet, { children: [
|
|
1323
|
+
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
1324
|
+
Pressable,
|
|
1332
1325
|
{
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1326
|
+
variant: "outline",
|
|
1327
|
+
size: "icon",
|
|
1328
|
+
asButton: true,
|
|
1329
|
+
onClick: () => {
|
|
1330
|
+
},
|
|
1331
|
+
children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 16 })
|
|
1337
1332
|
}
|
|
1338
|
-
),
|
|
1339
|
-
/* @__PURE__ */
|
|
1333
|
+
) }),
|
|
1334
|
+
/* @__PURE__ */ jsxs(SheetContent, { className: "overflow-y-auto", children: [
|
|
1335
|
+
/* @__PURE__ */ jsx(SheetHeader, { children: /* @__PURE__ */ jsx(SheetTitle, { children: renderLogo() }) }),
|
|
1336
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 p-4", children: [
|
|
1337
|
+
/* @__PURE__ */ jsx(
|
|
1338
|
+
Accordion,
|
|
1339
|
+
{
|
|
1340
|
+
type: "single",
|
|
1341
|
+
collapsible: true,
|
|
1342
|
+
className: "flex w-full flex-col gap-4",
|
|
1343
|
+
children: renderMobileMenu()
|
|
1344
|
+
}
|
|
1345
|
+
),
|
|
1346
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-3", actionsClassName), children: renderAuthActions() })
|
|
1347
|
+
] })
|
|
1348
|
+
] })
|
|
1340
1349
|
] })
|
|
1341
|
-
] })
|
|
1342
|
-
]
|
|
1343
|
-
|
|
1344
|
-
|
|
1350
|
+
] }) })
|
|
1351
|
+
]
|
|
1352
|
+
}
|
|
1353
|
+
)
|
|
1345
1354
|
}
|
|
1346
1355
|
);
|
|
1347
1356
|
};
|
|
@@ -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';
|
|
@@ -20,16 +21,6 @@ interface MenuItem {
|
|
|
20
21
|
url?: string;
|
|
21
22
|
links?: MenuLink[];
|
|
22
23
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Logo configuration interface
|
|
25
|
-
*/
|
|
26
|
-
interface LogoConfig {
|
|
27
|
-
url?: string;
|
|
28
|
-
src?: string;
|
|
29
|
-
alt?: string;
|
|
30
|
-
title?: React.ReactNode;
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
24
|
/**
|
|
34
25
|
* Props for the NavbarDarkIcons component
|
|
35
26
|
*/
|
|
@@ -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';
|
|
@@ -20,16 +21,6 @@ interface MenuItem {
|
|
|
20
21
|
url?: string;
|
|
21
22
|
links?: MenuLink[];
|
|
22
23
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Logo configuration interface
|
|
25
|
-
*/
|
|
26
|
-
interface LogoConfig {
|
|
27
|
-
url?: string;
|
|
28
|
-
src?: string;
|
|
29
|
-
alt?: string;
|
|
30
|
-
title?: React.ReactNode;
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
24
|
/**
|
|
34
25
|
* Props for the NavbarDarkIcons component
|
|
35
26
|
*/
|
|
@@ -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
|
|
@@ -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
|
|
@@ -1211,7 +1211,7 @@ var SubMenuLink = ({
|
|
|
1211
1211
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1212
1212
|
Pressable,
|
|
1213
1213
|
{
|
|
1214
|
-
className: "flex min-w-80 flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-
|
|
1214
|
+
className: "flex min-w-80 flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-foreground",
|
|
1215
1215
|
href: item.url,
|
|
1216
1216
|
children: [
|
|
1217
1217
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
|
|
@@ -1234,7 +1234,7 @@ var renderMenuItem = (item, optixFlowConfig) => {
|
|
|
1234
1234
|
NavigationMenuLink,
|
|
1235
1235
|
{
|
|
1236
1236
|
href: item.url,
|
|
1237
|
-
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-
|
|
1237
|
+
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground",
|
|
1238
1238
|
children: item.title
|
|
1239
1239
|
}
|
|
1240
1240
|
) }, item.title);
|
|
@@ -1355,55 +1355,64 @@ var NavbarDropdownMenu = ({
|
|
|
1355
1355
|
className: cn(className),
|
|
1356
1356
|
pattern,
|
|
1357
1357
|
patternOpacity,
|
|
1358
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
renderLogo(),
|
|
1369
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu, { className: navigationMenuClassName, children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuList, { children: renderMenu() }) }) })
|
|
1370
|
-
] }),
|
|
1371
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
1372
|
-
]
|
|
1373
|
-
}
|
|
1374
|
-
),
|
|
1375
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1376
|
-
renderLogo(),
|
|
1377
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Sheet, { children: [
|
|
1378
|
-
/* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1379
|
-
Pressable,
|
|
1358
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1359
|
+
"div",
|
|
1360
|
+
{
|
|
1361
|
+
className: cn(
|
|
1362
|
+
"container border-b border-border/50 shadow-sm",
|
|
1363
|
+
containerClassName
|
|
1364
|
+
),
|
|
1365
|
+
children: [
|
|
1366
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1367
|
+
"nav",
|
|
1380
1368
|
{
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1369
|
+
className: cn(
|
|
1370
|
+
"hidden items-center justify-between lg:flex",
|
|
1371
|
+
desktopNavClassName
|
|
1372
|
+
),
|
|
1373
|
+
children: [
|
|
1374
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-6", children: [
|
|
1375
|
+
renderLogo(),
|
|
1376
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu, { className: navigationMenuClassName, children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuList, { children: renderMenu() }) }) })
|
|
1377
|
+
] }),
|
|
1378
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
1379
|
+
]
|
|
1387
1380
|
}
|
|
1388
|
-
)
|
|
1389
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1390
|
-
|
|
1391
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1392
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1393
|
-
|
|
1381
|
+
),
|
|
1382
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
1383
|
+
renderLogo(),
|
|
1384
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Sheet, { children: [
|
|
1385
|
+
/* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1386
|
+
Pressable,
|
|
1394
1387
|
{
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1388
|
+
variant: "outline",
|
|
1389
|
+
size: "icon",
|
|
1390
|
+
asButton: true,
|
|
1391
|
+
onClick: () => {
|
|
1392
|
+
},
|
|
1393
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/menu", size: 16 })
|
|
1399
1394
|
}
|
|
1400
|
-
),
|
|
1401
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1395
|
+
) }),
|
|
1396
|
+
/* @__PURE__ */ jsxRuntime.jsxs(SheetContent, { className: "overflow-y-auto", children: [
|
|
1397
|
+
/* @__PURE__ */ jsxRuntime.jsx(SheetHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(SheetTitle, { children: renderLogo() }) }),
|
|
1398
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6 p-4", children: [
|
|
1399
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1400
|
+
Accordion,
|
|
1401
|
+
{
|
|
1402
|
+
type: "single",
|
|
1403
|
+
collapsible: true,
|
|
1404
|
+
className: "flex w-full flex-col gap-4",
|
|
1405
|
+
children: renderMobileMenu()
|
|
1406
|
+
}
|
|
1407
|
+
),
|
|
1408
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col gap-3", actionsClassName), children: renderAuthActions() })
|
|
1409
|
+
] })
|
|
1410
|
+
] })
|
|
1402
1411
|
] })
|
|
1403
|
-
] })
|
|
1404
|
-
]
|
|
1405
|
-
|
|
1406
|
-
|
|
1412
|
+
] }) })
|
|
1413
|
+
]
|
|
1414
|
+
}
|
|
1415
|
+
)
|
|
1407
1416
|
}
|
|
1408
1417
|
);
|
|
1409
1418
|
};
|
|
@@ -2,13 +2,15 @@ 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';
|
|
8
9
|
import 'class-variance-authority/types';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
|
-
* Menu item interface for navigation
|
|
12
|
+
* Menu item interface for navigation (component-specific)
|
|
13
|
+
* Note: This uses title/url pattern specific to this dropdown menu component
|
|
12
14
|
*/
|
|
13
15
|
interface MenuItem {
|
|
14
16
|
title: string;
|
|
@@ -17,16 +19,6 @@ interface MenuItem {
|
|
|
17
19
|
icon?: string;
|
|
18
20
|
items?: MenuItem[];
|
|
19
21
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Logo configuration interface
|
|
22
|
-
*/
|
|
23
|
-
interface LogoConfig {
|
|
24
|
-
url?: string;
|
|
25
|
-
src?: string;
|
|
26
|
-
alt?: string;
|
|
27
|
-
title?: React.ReactNode;
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
22
|
/**
|
|
31
23
|
* Props for the NavbarDropdownMenu component
|
|
32
24
|
*/
|
|
@@ -2,13 +2,15 @@ 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';
|
|
8
9
|
import 'class-variance-authority/types';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
|
-
* Menu item interface for navigation
|
|
12
|
+
* Menu item interface for navigation (component-specific)
|
|
13
|
+
* Note: This uses title/url pattern specific to this dropdown menu component
|
|
12
14
|
*/
|
|
13
15
|
interface MenuItem {
|
|
14
16
|
title: string;
|
|
@@ -17,16 +19,6 @@ interface MenuItem {
|
|
|
17
19
|
icon?: string;
|
|
18
20
|
items?: MenuItem[];
|
|
19
21
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Logo configuration interface
|
|
22
|
-
*/
|
|
23
|
-
interface LogoConfig {
|
|
24
|
-
url?: string;
|
|
25
|
-
src?: string;
|
|
26
|
-
alt?: string;
|
|
27
|
-
title?: React.ReactNode;
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
22
|
/**
|
|
31
23
|
* Props for the NavbarDropdownMenu component
|
|
32
24
|
*/
|