@moontra/moonui-pro 3.3.17 → 3.3.18
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/cdn/index.global.js +51 -51
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +11 -35
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3968,7 +3968,7 @@ interface NavbarConfig {
|
|
|
3968
3968
|
text?: string;
|
|
3969
3969
|
hover?: string;
|
|
3970
3970
|
};
|
|
3971
|
-
variant?: "default" | "floating" | "minimal" | "transparent";
|
|
3971
|
+
variant?: "default" | "floating" | "floating-centered" | "minimal" | "transparent";
|
|
3972
3972
|
size?: "sm" | "md" | "lg";
|
|
3973
3973
|
blur?: boolean;
|
|
3974
3974
|
shadow?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -79177,9 +79177,6 @@ function NavbarInternal({
|
|
|
79177
79177
|
] }) })
|
|
79178
79178
|
] });
|
|
79179
79179
|
const getHeight = () => {
|
|
79180
|
-
if (isMinimal && minimalConfig?.heightOnScroll) {
|
|
79181
|
-
return minimalConfig.heightOnScroll;
|
|
79182
|
-
}
|
|
79183
79180
|
switch (size4) {
|
|
79184
79181
|
case "sm":
|
|
79185
79182
|
return "h-14";
|
|
@@ -79189,15 +79186,12 @@ function NavbarInternal({
|
|
|
79189
79186
|
return "h-16";
|
|
79190
79187
|
}
|
|
79191
79188
|
};
|
|
79192
|
-
const shouldHideInMinimal = (element) => {
|
|
79193
|
-
return isMinimal && minimalConfig?.hideElements?.includes(element);
|
|
79194
|
-
};
|
|
79195
79189
|
const navClasses = cn(
|
|
79196
|
-
"moonui-pro w-full transition-all",
|
|
79197
|
-
`duration-${minimalConfig?.animationDuration || 300}`,
|
|
79190
|
+
"moonui-pro w-full transition-all duration-300 ease-in-out",
|
|
79198
79191
|
// Base variant styles
|
|
79199
79192
|
variant === "default" && "border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",
|
|
79200
79193
|
variant === "floating" && "mx-4 mt-4 rounded-lg border bg-background/95 backdrop-blur shadow-lg",
|
|
79194
|
+
variant === "floating-centered" && "mx-auto my-4 max-w-5xl rounded-2xl border border-border/40 bg-background/70 backdrop-blur-xl shadow-lg shadow-black/5 dark:shadow-black/20 px-6",
|
|
79201
79195
|
variant === "minimal" && "bg-background",
|
|
79202
79196
|
variant === "transparent" && "bg-transparent",
|
|
79203
79197
|
// Sticky behavior
|
|
@@ -79206,9 +79200,6 @@ function NavbarInternal({
|
|
|
79206
79200
|
scrolled && sticky && variant !== "transparent" && "shadow-sm",
|
|
79207
79201
|
scrolled && variant === "transparent" && "bg-background/95 backdrop-blur border-b",
|
|
79208
79202
|
scrollBehavior === "hide" && hidden && "-translate-y-full",
|
|
79209
|
-
// Minimal mode styles
|
|
79210
|
-
scrollBehavior === "minimal" && isMinimal && "shadow-md border-b",
|
|
79211
|
-
scrollBehavior === "minimal" && isMinimal && minimalConfig?.centerOnScroll && "px-8",
|
|
79212
79203
|
// Glass effect
|
|
79213
79204
|
glassmorphism && "bg-background/80 backdrop-blur-xl border-white/10",
|
|
79214
79205
|
blur2 && "backdrop-blur-md",
|
|
@@ -79225,23 +79216,18 @@ function NavbarInternal({
|
|
|
79225
79216
|
"div",
|
|
79226
79217
|
{
|
|
79227
79218
|
className: cn(
|
|
79228
|
-
"flex items-center",
|
|
79219
|
+
"flex items-center transition-[height] duration-300 ease-in-out",
|
|
79229
79220
|
getHeight(),
|
|
79230
79221
|
fullWidth ? "w-full px-4 sm:px-6 lg:px-8" : maxWidth === "sm" && "container max-w-screen-sm" || maxWidth === "md" && "container max-w-screen-md" || maxWidth === "lg" && "container max-w-screen-lg" || maxWidth === "xl" && "container max-w-screen-xl" || maxWidth === "2xl" && "container max-w-screen-2xl" || maxWidth === "full" && "w-full px-4 sm:px-6 lg:px-8"
|
|
79231
79222
|
),
|
|
79232
79223
|
children: [
|
|
79233
79224
|
branding && /* @__PURE__ */ jsxs(
|
|
79234
|
-
|
|
79225
|
+
"div",
|
|
79235
79226
|
{
|
|
79236
79227
|
className: cn(
|
|
79237
79228
|
"flex items-center gap-2",
|
|
79238
|
-
logoPosition === "center" && !isMobile ? "absolute left-1/2 -translate-x-1/2" : "mr-4"
|
|
79229
|
+
logoPosition === "center" && !isMobile && variant !== "floating-centered" ? "absolute left-1/2 -translate-x-1/2" : "mr-4"
|
|
79239
79230
|
),
|
|
79240
|
-
animate: {
|
|
79241
|
-
scale: isMinimal ? 0.9 : 1,
|
|
79242
|
-
opacity: shouldHideInMinimal("logo-text") ? 0.8 : 1
|
|
79243
|
-
},
|
|
79244
|
-
transition: { duration: minimalConfig?.animationDuration ? minimalConfig.animationDuration / 1e3 : 0.3 },
|
|
79245
79231
|
children: [
|
|
79246
79232
|
logoPosition === "left" && mobileMenuPosition === "left" && /* @__PURE__ */ jsx(MobileMenu, {}),
|
|
79247
79233
|
/* @__PURE__ */ jsxs(
|
|
@@ -79257,18 +79243,7 @@ function NavbarInternal({
|
|
|
79257
79243
|
className: "flex items-center gap-2",
|
|
79258
79244
|
children: [
|
|
79259
79245
|
branding.logo,
|
|
79260
|
-
branding.title && !isMobile &&
|
|
79261
|
-
motion.span,
|
|
79262
|
-
{
|
|
79263
|
-
className: "font-semibold text-lg",
|
|
79264
|
-
animate: {
|
|
79265
|
-
opacity: shouldHideInMinimal("logo-text") ? 0 : 1,
|
|
79266
|
-
width: shouldHideInMinimal("logo-text") ? 0 : "auto"
|
|
79267
|
-
},
|
|
79268
|
-
transition: { duration: 0.3 },
|
|
79269
|
-
children: branding.title
|
|
79270
|
-
}
|
|
79271
|
-
)
|
|
79246
|
+
branding.title && !isMobile && /* @__PURE__ */ jsx("span", { className: "font-semibold text-lg", children: branding.title })
|
|
79272
79247
|
]
|
|
79273
79248
|
}
|
|
79274
79249
|
)
|
|
@@ -79280,12 +79255,13 @@ function NavbarInternal({
|
|
|
79280
79255
|
{
|
|
79281
79256
|
className: cn(
|
|
79282
79257
|
"hidden md:flex",
|
|
79283
|
-
navItemsPosition === "center" && "flex-1 justify-center mx-4",
|
|
79258
|
+
navItemsPosition === "center" && variant !== "floating-centered" && "flex-1 justify-center mx-4",
|
|
79259
|
+
navItemsPosition === "center" && variant === "floating-centered" && "flex-1 justify-center",
|
|
79284
79260
|
navItemsPosition === "right" && "ml-auto",
|
|
79285
79261
|
navItemsPosition === "left" && "ml-4",
|
|
79286
79262
|
// Keep position consistent in minimal mode unless centerOnScroll is enabled
|
|
79287
79263
|
isMinimal && minimalConfig?.centerOnScroll && navItemsPosition !== "center" && "flex-1 justify-center",
|
|
79288
|
-
navItemsPosition === "center" && "absolute left-1/2 transform -translate-x-1/2"
|
|
79264
|
+
navItemsPosition === "center" && variant !== "floating-centered" && "absolute left-1/2 transform -translate-x-1/2"
|
|
79289
79265
|
),
|
|
79290
79266
|
children: /* @__PURE__ */ jsx(NavigationMenuList2, { children: sections.map((section) => /* @__PURE__ */ jsx(React71__default.Fragment, { children: section.items.map((item) => {
|
|
79291
79267
|
const hasChildren = item.items && item.items.length > 0;
|
|
@@ -79355,7 +79331,7 @@ function NavbarInternal({
|
|
|
79355
79331
|
}
|
|
79356
79332
|
),
|
|
79357
79333
|
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex items-center gap-2", children: [
|
|
79358
|
-
showSearch &&
|
|
79334
|
+
showSearch && /* @__PURE__ */ jsx(Fragment, { children: isMobile ? /* @__PURE__ */ jsx(
|
|
79359
79335
|
MoonUIButtonPro,
|
|
79360
79336
|
{
|
|
79361
79337
|
variant: "ghost",
|
|
@@ -79603,7 +79579,7 @@ function NavbarInternal({
|
|
|
79603
79579
|
}
|
|
79604
79580
|
)
|
|
79605
79581
|
] }),
|
|
79606
|
-
cta &&
|
|
79582
|
+
cta && /* @__PURE__ */ jsx(
|
|
79607
79583
|
MoonUIButtonPro,
|
|
79608
79584
|
{
|
|
79609
79585
|
variant: cta.variant || "primary",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.18",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|