@opensite/ui 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/navbar-animated-preview.cjs +32 -42
- package/dist/navbar-animated-preview.js +32 -42
- package/dist/navbar-centered-menu.cjs +4 -12
- package/dist/navbar-centered-menu.js +4 -12
- package/dist/navbar-dark-icons.cjs +2 -5
- package/dist/navbar-dark-icons.js +2 -5
- package/dist/navbar-dropdown-menu.cjs +1 -1
- package/dist/navbar-dropdown-menu.js +1 -1
- package/dist/navbar-enterprise-mega.cjs +11 -5
- package/dist/navbar-enterprise-mega.js +11 -5
- package/dist/navbar-feature-grid.cjs +18 -29
- package/dist/navbar-feature-grid.js +18 -29
- package/dist/navbar-floating-pill.cjs +3 -3
- package/dist/navbar-floating-pill.js +3 -3
- package/dist/navbar-icon-links.cjs +1 -1
- package/dist/navbar-icon-links.js +1 -1
- package/dist/navbar-image-preview.cjs +3 -5
- package/dist/navbar-image-preview.js +3 -5
- package/dist/navbar-mega-menu.cjs +162 -119
- package/dist/navbar-mega-menu.js +161 -119
- package/dist/navbar-multi-column-groups.cjs +32 -42
- package/dist/navbar-multi-column-groups.js +32 -42
- package/dist/navbar-platform-resources.cjs +26 -27
- package/dist/navbar-platform-resources.js +26 -27
- package/dist/navbar-search-focused.cjs +1 -1
- package/dist/navbar-search-focused.js +1 -1
- package/dist/navbar-sidebar-mobile.cjs +1 -1
- package/dist/navbar-sidebar-mobile.js +1 -1
- package/dist/navbar-split-cta.cjs +1 -1
- package/dist/navbar-split-cta.js +1 -1
- package/dist/navbar-sticky-compact.cjs +1 -1
- package/dist/navbar-sticky-compact.js +1 -1
- package/dist/navbar-tabbed-sections.cjs +1 -1
- package/dist/navbar-tabbed-sections.js +1 -1
- package/dist/registry.cjs +168 -282
- package/dist/registry.js +168 -282
- package/package.json +1 -1
|
@@ -1214,7 +1214,7 @@ var NavbarMobileMenu = ({
|
|
|
1214
1214
|
"div",
|
|
1215
1215
|
{
|
|
1216
1216
|
className: cn(
|
|
1217
|
-
"fixed inset-0 z-
|
|
1217
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1218
1218
|
"animate-in slide-in-from-top duration-300",
|
|
1219
1219
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1220
1220
|
className
|
|
@@ -1313,27 +1313,30 @@ var NavbarPlatformResources = ({
|
|
|
1313
1313
|
const renderDropdownContent = (link) => {
|
|
1314
1314
|
const layout = link.layout || "simple-list";
|
|
1315
1315
|
if (layout === "simple-list") {
|
|
1316
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "
|
|
1317
|
-
|
|
1316
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "w-[400px] p-3", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-1", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1317
|
+
"li",
|
|
1318
1318
|
{
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1319
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1320
|
+
NavigationMenuLink,
|
|
1321
|
+
{
|
|
1322
|
+
href: getLinkUrl(item),
|
|
1323
|
+
className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
|
|
1324
|
+
children: [
|
|
1325
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1326
|
+
DynamicIcon,
|
|
1327
|
+
{
|
|
1328
|
+
name: item.iconName,
|
|
1329
|
+
size: 16,
|
|
1330
|
+
className: "m-auto group-hover/link:stroke-black"
|
|
1331
|
+
}
|
|
1332
|
+
) : null }),
|
|
1333
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
1334
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1335
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
1336
|
+
] })
|
|
1337
|
+
]
|
|
1338
|
+
}
|
|
1339
|
+
)
|
|
1337
1340
|
},
|
|
1338
1341
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
1339
1342
|
)) }) });
|
|
@@ -1672,7 +1675,6 @@ var NavbarPlatformResources = ({
|
|
|
1672
1675
|
open,
|
|
1673
1676
|
onClose: () => setOpen(false),
|
|
1674
1677
|
title: "Mobile Navigation",
|
|
1675
|
-
contentClassName: "pt-10 pb-20",
|
|
1676
1678
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
1677
1679
|
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
1678
1680
|
if (hasDropdownItems(link)) {
|
|
@@ -1683,7 +1685,7 @@ var NavbarPlatformResources = ({
|
|
|
1683
1685
|
className: "border-b-0",
|
|
1684
1686
|
children: [
|
|
1685
1687
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
1686
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "
|
|
1688
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1687
1689
|
Pressable,
|
|
1688
1690
|
{
|
|
1689
1691
|
href: getLinkUrl(item),
|
|
@@ -1722,10 +1724,7 @@ var NavbarPlatformResources = ({
|
|
|
1722
1724
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1723
1725
|
"div",
|
|
1724
1726
|
{
|
|
1725
|
-
className: cn(
|
|
1726
|
-
"mt-6 flex flex-col gap-4",
|
|
1727
|
-
actionsClassName
|
|
1728
|
-
),
|
|
1727
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
1729
1728
|
children: renderActions
|
|
1730
1729
|
}
|
|
1731
1730
|
)
|
|
@@ -1191,7 +1191,7 @@ var NavbarMobileMenu = ({
|
|
|
1191
1191
|
"div",
|
|
1192
1192
|
{
|
|
1193
1193
|
className: cn(
|
|
1194
|
-
"fixed inset-0 z-
|
|
1194
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1195
1195
|
"animate-in slide-in-from-top duration-300",
|
|
1196
1196
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1197
1197
|
className
|
|
@@ -1290,27 +1290,30 @@ var NavbarPlatformResources = ({
|
|
|
1290
1290
|
const renderDropdownContent = (link) => {
|
|
1291
1291
|
const layout = link.layout || "simple-list";
|
|
1292
1292
|
if (layout === "simple-list") {
|
|
1293
|
-
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "
|
|
1294
|
-
|
|
1293
|
+
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[400px] p-3", children: /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsx(
|
|
1294
|
+
"li",
|
|
1295
1295
|
{
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1296
|
+
children: /* @__PURE__ */ jsxs(
|
|
1297
|
+
NavigationMenuLink,
|
|
1298
|
+
{
|
|
1299
|
+
href: getLinkUrl(item),
|
|
1300
|
+
className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
|
|
1301
|
+
children: [
|
|
1302
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
|
|
1303
|
+
DynamicIcon,
|
|
1304
|
+
{
|
|
1305
|
+
name: item.iconName,
|
|
1306
|
+
size: 16,
|
|
1307
|
+
className: "m-auto group-hover/link:stroke-black"
|
|
1308
|
+
}
|
|
1309
|
+
) : null }),
|
|
1310
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
1311
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1312
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
1313
|
+
] })
|
|
1314
|
+
]
|
|
1315
|
+
}
|
|
1316
|
+
)
|
|
1314
1317
|
},
|
|
1315
1318
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
1316
1319
|
)) }) });
|
|
@@ -1649,7 +1652,6 @@ var NavbarPlatformResources = ({
|
|
|
1649
1652
|
open,
|
|
1650
1653
|
onClose: () => setOpen(false),
|
|
1651
1654
|
title: "Mobile Navigation",
|
|
1652
|
-
contentClassName: "pt-10 pb-20",
|
|
1653
1655
|
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
1654
1656
|
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
1655
1657
|
if (hasDropdownItems(link)) {
|
|
@@ -1660,7 +1662,7 @@ var NavbarPlatformResources = ({
|
|
|
1660
1662
|
className: "border-b-0",
|
|
1661
1663
|
children: [
|
|
1662
1664
|
/* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
1663
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "
|
|
1665
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1664
1666
|
Pressable,
|
|
1665
1667
|
{
|
|
1666
1668
|
href: getLinkUrl(item),
|
|
@@ -1699,10 +1701,7 @@ var NavbarPlatformResources = ({
|
|
|
1699
1701
|
/* @__PURE__ */ jsx(
|
|
1700
1702
|
"div",
|
|
1701
1703
|
{
|
|
1702
|
-
className: cn(
|
|
1703
|
-
"mt-6 flex flex-col gap-4",
|
|
1704
|
-
actionsClassName
|
|
1705
|
-
),
|
|
1704
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
1706
1705
|
children: renderActions
|
|
1707
1706
|
}
|
|
1708
1707
|
)
|
|
@@ -1109,7 +1109,7 @@ var NavbarMobileMenu = ({
|
|
|
1109
1109
|
"div",
|
|
1110
1110
|
{
|
|
1111
1111
|
className: cn(
|
|
1112
|
-
"fixed inset-0 z-
|
|
1112
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1113
1113
|
"animate-in slide-in-from-top duration-300",
|
|
1114
1114
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1115
1115
|
className
|
|
@@ -1087,7 +1087,7 @@ var NavbarMobileMenu = ({
|
|
|
1087
1087
|
"div",
|
|
1088
1088
|
{
|
|
1089
1089
|
className: cn(
|
|
1090
|
-
"fixed inset-0 z-
|
|
1090
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1091
1091
|
"animate-in slide-in-from-top duration-300",
|
|
1092
1092
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1093
1093
|
className
|
|
@@ -1214,7 +1214,7 @@ var NavbarMobileMenu = ({
|
|
|
1214
1214
|
"div",
|
|
1215
1215
|
{
|
|
1216
1216
|
className: cn(
|
|
1217
|
-
"fixed inset-0 z-
|
|
1217
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1218
1218
|
"animate-in slide-in-from-top duration-300",
|
|
1219
1219
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1220
1220
|
className
|
|
@@ -1191,7 +1191,7 @@ var NavbarMobileMenu = ({
|
|
|
1191
1191
|
"div",
|
|
1192
1192
|
{
|
|
1193
1193
|
className: cn(
|
|
1194
|
-
"fixed inset-0 z-
|
|
1194
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1195
1195
|
"animate-in slide-in-from-top duration-300",
|
|
1196
1196
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1197
1197
|
className
|
|
@@ -1152,7 +1152,7 @@ var NavbarMobileMenu = ({
|
|
|
1152
1152
|
"div",
|
|
1153
1153
|
{
|
|
1154
1154
|
className: cn(
|
|
1155
|
-
"fixed inset-0 z-
|
|
1155
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1156
1156
|
"animate-in slide-in-from-top duration-300",
|
|
1157
1157
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1158
1158
|
className
|
package/dist/navbar-split-cta.js
CHANGED
|
@@ -1130,7 +1130,7 @@ var NavbarMobileMenu = ({
|
|
|
1130
1130
|
"div",
|
|
1131
1131
|
{
|
|
1132
1132
|
className: cn(
|
|
1133
|
-
"fixed inset-0 z-
|
|
1133
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1134
1134
|
"animate-in slide-in-from-top duration-300",
|
|
1135
1135
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1136
1136
|
className
|
|
@@ -1152,7 +1152,7 @@ var NavbarMobileMenu = ({
|
|
|
1152
1152
|
"div",
|
|
1153
1153
|
{
|
|
1154
1154
|
className: cn(
|
|
1155
|
-
"fixed inset-0 z-
|
|
1155
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1156
1156
|
"animate-in slide-in-from-top duration-300",
|
|
1157
1157
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1158
1158
|
className
|
|
@@ -1130,7 +1130,7 @@ var NavbarMobileMenu = ({
|
|
|
1130
1130
|
"div",
|
|
1131
1131
|
{
|
|
1132
1132
|
className: cn(
|
|
1133
|
-
"fixed inset-0 z-
|
|
1133
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1134
1134
|
"animate-in slide-in-from-top duration-300",
|
|
1135
1135
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1136
1136
|
className
|
|
@@ -1154,7 +1154,7 @@ var NavbarMobileMenu = ({
|
|
|
1154
1154
|
"div",
|
|
1155
1155
|
{
|
|
1156
1156
|
className: cn(
|
|
1157
|
-
"fixed inset-0 z-
|
|
1157
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1158
1158
|
"animate-in slide-in-from-top duration-300",
|
|
1159
1159
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1160
1160
|
className
|
|
@@ -1131,7 +1131,7 @@ var NavbarMobileMenu = ({
|
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
className: cn(
|
|
1134
|
-
"fixed inset-0 z-
|
|
1134
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
1135
1135
|
"animate-in slide-in-from-top duration-300",
|
|
1136
1136
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
1137
1137
|
className
|