@banhosdev/moldsoft-ui 1.1.0 → 1.3.0
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +4 -4
- package/package.json +2 -2
- package/dist/bg-blue-H7S5ODI7.png +0 -0
- package/dist/logo-REBN3NUO.png +0 -0
- package/dist/white-icon-Z722HHZN.png +0 -0
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/components/ui/button.tsx","../src/lib/utils.ts","../src/components/ui/card.tsx","../src/components/ui/logo.tsx","../src/components/app/sidebar.tsx","../src/components/ui/separator.tsx"],"sourcesContent":["// UI Components\nexport * from \"./components/ui/button\"\nexport * from \"./components/ui/card\"\nexport * from \"./components/ui/logo\"\n\n// App Components\nexport * from \"./components/app/sidebar\"\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-10 px-4 py-2\",\n sm: \"h-9 rounded-md px-3\",\n lg: \"h-11 rounded-md px-8\",\n icon: \"h-10 w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n","import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Card = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"rounded-lg border bg-card text-card-foreground shadow-sm\",\n className\n )}\n {...props}\n />\n))\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\n {...props}\n />\n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"text-2xl font-semibold leading-none tracking-tight\",\n className\n )}\n {...props}\n />\n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center p-6 pt-0\", className)}\n {...props}\n />\n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import * as React from \"react\"\nimport logo from \"../../assets/logo.png\"\n\nexport interface LogoProps extends React.ImgHTMLAttributes<HTMLImageElement> {\n size?: number\n}\n\nexport function Logo({ size = 40, className, ...props }: LogoProps) {\n return (\n <img\n src={logo}\n alt=\"Moldsoft Logo\"\n width={size}\n height={size}\n className={className}\n {...props}\n />\n )\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport logoImg from \"../../assets/icons/white-icon.png\"\nimport sidebarBg from \"../../assets/textures/bg-blue.png\"\nimport { Separator } from \"../ui/separator\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface SidebarItem {\n label: string\n href: string\n icon?: React.ReactNode\n active?: boolean\n items?: SidebarItem[]\n}\n\nexport interface SidebarProps {\n children?: React.ReactNode\n logo?: React.ReactNode\n collapsedLogo?: React.ReactNode\n className?: string\n items: SidebarItem[]\n footerItems?: SidebarItem[]\n showBackground?: boolean\n activePath?: string\n}\n\nexport function Sidebar({\n children,\n logo,\n collapsedLogo,\n items = [],\n footerItems = [],\n showBackground = true,\n className,\n activePath,\n}: SidebarProps) {\n const [isExpanded, setIsExpanded] = React.useState(false)\n\n const checkActive = (item: SidebarItem): boolean => {\n if (item.active) return true\n if (!activePath) return false\n\n // Exact match for root or specific paths\n if (activePath === item.href) return true\n\n // Prefix match for sub-paths (avoiding matching '/' to everything)\n if (item.href !== \"/\" && activePath.startsWith(item.href)) return true\n\n // Recursive check for sub-items\n if (item.items) {\n return item.items.some(checkActive)\n }\n\n return false\n }\n\n const bgUrl = typeof sidebarBg === \"object\" ? (sidebarBg as any).src : sidebarBg\n const logoUrl = typeof logoImg === \"object\" ? (logoImg as any).src : logoImg\n\n return (\n <aside\n onMouseEnter={() => setIsExpanded(true)}\n onMouseLeave={() => setIsExpanded(false)}\n className={cn(\n \"h-full p-2 transition-all duration-500 ease-in-out\",\n isExpanded ? \"w-72\" : \"w-24\",\n className\n )}\n >\n <main\n className={cn(\n \"h-full relative overflow-hidden flex flex-col shadow-xl transition-all duration-500\",\n !showBackground && \"bg-primary\",\n isExpanded ? \"rounded-3xl\" : \"rounded-3xl\"\n )}\n >\n {showBackground && (\n <div\n className=\"absolute inset-0 z-0 transition-transform duration-500\"\n style={{\n backgroundImage: `url(${bgUrl})`,\n backgroundSize: \"300%\", // Increased scale\n backgroundPosition: \"center\",\n width: \"18rem\", // Expanded width (w-72 = 18rem) to keep it \"fixed\"\n }}\n />\n )}\n <div className=\"absolute inset-0 z-0 bg-primary/20\" />\n\n <div className=\"flex flex-col h-full relative z-10 p-2\">\n <div className={cn(\n \"flex flex-col items-center justify-center transition-all duration-500\",\n isExpanded ? \"h-24 py-4\" : \"h-24 py-4\"\n )}>\n {isExpanded ? (\n logo ? (\n <div className=\"flex items-center gap-2\">\n {logo}\n </div>\n ) : (\n <img\n src={logoUrl}\n alt=\"Logo\"\n className=\"h-10 opacity-100 scale-100 transition-all duration-500 object-contain\"\n />\n )\n ) : (\n collapsedLogo ? (\n <div className=\"flex items-center gap-2 w-8\">\n {collapsedLogo}\n </div>\n ) : (\n <img\n src={logoUrl}\n alt=\"Logo\"\n className=\"h-7 opacity-90 transition-all duration-500 object-contain\"\n />\n )\n )}\n {isExpanded && !logo && (\n <span className=\"text-white/60 text-[10px] mt-1 font-medium tracking-wider uppercase\">\n Moldsoft\n </span>\n )}\n </div>\n\n <div className=\"px-4 mb-4\">\n <Separator className=\"bg-white/20\" />\n </div>\n\n {/* Nav Items */}\n <nav className=\"flex-1 px-1 space-y-1 overflow-y-auto no-scrollbar scroll-smooth\">\n {items.map((item) => (\n <SidebarNavLink\n key={item.href}\n item={item}\n isSidebarExpanded={isExpanded}\n isActive={checkActive(item)}\n checkActive={checkActive}\n />\n ))}\n </nav>\n\n {/* Footer Section */}\n <div className=\"mt-auto px-1 pb-2 space-y-1\">\n {footerItems.map((item) => (\n <SidebarNavLink\n key={item.href}\n item={item}\n isSidebarExpanded={isExpanded}\n isActive={checkActive(item)}\n checkActive={checkActive}\n />\n ))}\n {children && (\n <div className={cn(\n \"transition-all duration-500 overflow-hidden\",\n isExpanded ? \"opacity-100 mt-2\" : \"opacity-0 h-0\"\n )}>\n {children}\n </div>\n )}\n </div>\n </div>\n </main>\n </aside>\n )\n}\n\nfunction SidebarNavLink({\n item,\n isSidebarExpanded,\n isActive,\n checkActive,\n depth = 0\n}: {\n item: SidebarItem\n isSidebarExpanded: boolean\n isActive: boolean\n checkActive: (item: SidebarItem) => boolean\n depth?: number\n}) {\n const [isOpen, setIsOpen] = React.useState(isActive)\n const hasSubItems = item.items && item.items.length > 0\n\n // Update isOpen if isActive changes (to auto-expand when navigating)\n React.useEffect(() => {\n if (isActive) setIsOpen(true)\n }, [isActive])\n\n // Only allow sub-items to be visible if sidebar is expanded\n const isSubItemsVisible = hasSubItems && isSidebarExpanded && isOpen\n\n return (\n <div className=\"flex flex-col\">\n <a\n href={item.href}\n onClick={(e) => {\n if (hasSubItems) {\n e.preventDefault()\n setIsOpen(!isOpen)\n }\n }}\n className={cn(\n \"flex items-center h-12 rounded-2xl transition-all duration-500 px-3 relative group overflow-hidden\",\n isActive\n ? \"bg-[#092a5e] text-white\"\n : \"text-white/80 hover:bg-white/10 hover:text-white\"\n )}\n >\n {/* Smooth Centering Spacer - Only active when collapsed */}\n <div className={cn(\n \"transition-all duration-500 ease-in-out h-1\",\n isSidebarExpanded ? \"w-0 opacity-0\" : \"flex-1\"\n )} />\n\n {\n item.icon && (\n <div className={cn(\n \"shrink-0 w-8 h-8 flex items-center justify-center transition-all duration-500\"\n )}>\n {item.icon}\n </div>\n )\n }\n\n\n <span\n className={cn(\n \"font-medium whitespace-nowrap transition-all duration-500 ease-in-out overflow-hidden text-sm\",\n isSidebarExpanded ? \"opacity-100 w-auto\" : \"opacity-0 w-0 pointer-events-none\",\n item.icon ? \"ml-3\" : \"\"\n )}\n >\n {item.label}\n </span>\n\n {/* Right Spacer - Always pushes items to left when expanded, centers when combined with left spacer when collapsed */}\n <div className=\"flex-1 transition-all duration-500\" />\n\n {hasSubItems && isSidebarExpanded && (\n <div className={cn(\n \"transition-transform duration-300\",\n isOpen ? \"rotate-180\" : \"\"\n )}>\n <svg width=\"10\" height=\"6\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 1L5 5L9 1\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </div>\n )}\n </a>\n\n {/* Sub Items rendering */}\n {hasSubItems && isSidebarExpanded && (\n <div className={cn(\n \"overflow-hidden transition-all duration-300 ease-in-out\",\n isOpen ? \"max-h-96 opacity-100 mt-1\" : \"max-h-0 opacity-0\"\n )}>\n <div className=\"ml-7 border-l border-white/10 pl-3 py-1 space-y-1\">\n {item.items?.map((subItem) => (\n <SidebarNavLink\n key={subItem.href}\n item={subItem}\n isSidebarExpanded={isSidebarExpanded}\n isActive={checkActive(subItem)}\n checkActive={checkActive}\n depth={depth + 1}\n />\n ))}\n </div>\n </div>\n )}\n </div>\n )\n}","import * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className\n )}\n {...props}\n />\n )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n"],"mappings":"0jBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,YAAAE,EAAA,SAAAC,EAAA,gBAAAC,EAAA,oBAAAC,EAAA,eAAAC,EAAA,eAAAC,EAAA,cAAAC,EAAA,SAAAC,EAAA,YAAAC,GAAA,mBAAAC,IAAA,eAAAC,EAAAZ,ICAA,IAAAa,EAAuB,oBACvBC,EAAqB,gCACrBC,EAAuC,oCCFvC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDwCM,IAAAC,EAAA,6BAvCAC,KAAiB,OACrB,2VACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,yDACT,YACE,qEACF,QACE,iFACF,UACE,+DACF,MAAO,+CACP,KAAM,iDACR,EACA,KAAM,CACJ,QAAS,iBACT,GAAI,sBACJ,GAAI,uBACJ,KAAM,WACR,CACF,EACA,gBAAiB,CACf,QAAS,UACT,KAAM,SACR,CACF,CACF,EAQMC,EAAe,aACnB,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,QAAAC,EAAU,GAAO,GAAGC,CAAM,EAAGC,OAGtD,OAFWF,EAAU,OAAO,SAE3B,CACC,UAAWG,EAAGR,EAAe,CAAE,QAAAG,EAAS,KAAAC,EAAM,UAAAF,CAAU,CAAC,CAAC,EAC1D,IAAKK,EACJ,GAAGD,EACN,CAGN,EACAL,EAAO,YAAc,SErDrB,IAAAQ,EAAuB,oBAQrB,IAAAC,EAAA,6BAJIC,EAAa,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AAE,eAAe,EACjBH,EAAU,CAACD,CAAM,EAEzB,EACA,UAAWN,EACP,qGACAI,EACM,0BACA,kDACV,EAGA,oBAAC,OAAI,UAAWJ,EACZ,8CACAG,EAAoB,gBAAkB,QAC1C,EAAG,EAGCR,EAAK,SACD,OAAC,OAAI,UAAWK,EACZ,+EACJ,EACK,SAAAL,EAAK,KACV,KAKR,OAAC,QACG,UAAWK,EACP,gGACAG,EAAoB,qBAAuB,oCAC3CR,EAAK,KAAO,OAAS,EACzB,EAEC,SAAAA,EAAK,MACV,KAGA,OAAC,OAAI,UAAU,qCAAqC,EAEnDa,GAAeL,MACZ,OAAC,OAAI,UAAWH,EACZ,oCACAM,EAAS,aAAe,EAC5B,EACI,mBAAC,OAAI,MAAM,KAAK,OAAO,IAAI,QAAQ,WAAW,KAAK,OAAO,MAAM,6BAC5D,mBAAC,QAAK,EAAE,eAAe,OAAO,eAAe,YAAY,MAAM,cAAc,QAAQ,eAAe,QAAQ,EAChH,EACJ,GAER,EAGCE,GAAeL,MACZ,OAAC,OAAI,UAAWH,EACZ,0DACAM,EAAS,4BAA8B,mBAC3C,EACI,mBAAC,OAAI,UAAU,oDACV,SAAAX,EAAK,OAAO,IAAKgB,MACd,OAACT,EAAA,CAEG,KAAMS,EACN,kBAAmBR,EACnB,SAAUT,EAAYiB,CAAO,EAC7B,YAAajB,EACb,MAAOW,EAAQ,GALVM,EAAQ,IAMjB,CACH,EACL,EACJ,GAER,CAER","names":["index_exports","__export","Button","Card","CardContent","CardDescription","CardFooter","CardHeader","CardTitle","Logo","Sidebar","buttonVariants","__toCommonJS","React","import_react_slot","import_class_variance_authority","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","buttonVariants","Button","className","variant","size","asChild","props","ref","cn","React","import_jsx_runtime","Card","className","props","ref","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","import_jsx_runtime","Logo","size","className","props","logo_default","React","React","SeparatorPrimitive","import_jsx_runtime","Separator","className","orientation","decorative","props","ref","cn","import_jsx_runtime","Sidebar","children","logo","collapsedLogo","items","footerItems","showBackground","className","activePath","isExpanded","setIsExpanded","checkActive","item","bgUrl","bg_blue_default","logoUrl","white_icon_default","cn","Separator","SidebarNavLink","isSidebarExpanded","isActive","depth","isOpen","setIsOpen","hasSubItems","isSubItemsVisible","e","subItem"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/ui/button.tsx","../src/lib/utils.ts","../src/components/ui/card.tsx","../src/components/ui/logo.tsx","../src/components/app/sidebar.tsx","../src/components/ui/separator.tsx"],"sourcesContent":["// UI Components\nexport * from \"./components/ui/button\"\nexport * from \"./components/ui/card\"\nexport * from \"./components/ui/logo\"\n\n// App Components\nexport * from \"./components/app/sidebar\"\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-10 px-4 py-2\",\n sm: \"h-9 rounded-md px-3\",\n lg: \"h-11 rounded-md px-8\",\n icon: \"h-10 w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n","import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Card = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"rounded-lg border bg-card text-card-foreground shadow-sm\",\n className\n )}\n {...props}\n />\n))\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\n {...props}\n />\n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"text-2xl font-semibold leading-none tracking-tight\",\n className\n )}\n {...props}\n />\n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center p-6 pt-0\", className)}\n {...props}\n />\n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import * as React from \"react\"\nimport logo from \"../../assets/logo.png\"\n\nexport interface LogoProps extends React.ImgHTMLAttributes<HTMLImageElement> {\n size?: number\n}\n\nexport function Logo({ size = 40, className, ...props }: LogoProps) {\n return (\n <img\n src={logo}\n alt=\"Moldsoft Logo\"\n width={size}\n height={size}\n className={className}\n {...props}\n />\n )\n}\n","\"use client\"\n\nimport * as React from \"react\"\nimport logoImg from \"../../assets/icons/white-icon.png\"\nimport sidebarBg from \"../../assets/textures/bg-blue.png\"\nimport { Separator } from \"../ui/separator\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface SidebarItem {\n label: string\n href: string\n icon?: React.ReactNode\n active?: boolean\n items?: SidebarItem[]\n}\n\nexport interface SidebarProps {\n children?: React.ReactNode\n logo?: React.ReactNode\n collapsedLogo?: React.ReactNode\n className?: string\n items: SidebarItem[]\n footerItems?: SidebarItem[]\n showBackground?: boolean\n activePath?: string\n}\n\nexport function Sidebar({\n children,\n logo,\n collapsedLogo,\n items = [],\n footerItems = [],\n showBackground = true,\n className,\n activePath,\n}: SidebarProps) {\n const [isExpanded, setIsExpanded] = React.useState(false)\n\n const checkActive = (item: SidebarItem): boolean => {\n if (item.active) return true\n if (!activePath) return false\n\n // Exact match for root or specific paths\n if (activePath === item.href) return true\n\n // Prefix match for sub-paths (avoiding matching '/' to everything)\n if (item.href !== \"/\" && activePath.startsWith(item.href)) return true\n\n // Recursive check for sub-items\n if (item.items) {\n return item.items.some(checkActive)\n }\n\n return false\n }\n\n const bgUrl = typeof sidebarBg === \"object\" ? (sidebarBg as any).src : sidebarBg\n const logoUrl = typeof logoImg === \"object\" ? (logoImg as any).src : logoImg\n\n return (\n <aside\n onMouseEnter={() => setIsExpanded(true)}\n onMouseLeave={() => setIsExpanded(false)}\n className={cn(\n \"h-full p-2 transition-all duration-500 ease-in-out\",\n isExpanded ? \"w-72\" : \"w-24\",\n className\n )}\n >\n <main\n className={cn(\n \"h-full relative overflow-hidden flex flex-col shadow-xl transition-all duration-500\",\n !showBackground && \"bg-primary\",\n isExpanded ? \"rounded-3xl\" : \"rounded-3xl\"\n )}\n >\n {showBackground && (\n <div\n className=\"absolute inset-0 z-0 transition-transform duration-500\"\n style={{\n backgroundImage: `url(${bgUrl})`,\n backgroundSize: \"300%\", // Increased scale\n backgroundPosition: \"center\",\n width: \"18rem\", // Expanded width (w-72 = 18rem) to keep it \"fixed\"\n }}\n />\n )}\n <div className=\"absolute inset-0 z-0 bg-primary/20\" />\n\n <div className=\"flex flex-col h-full relative z-10 p-2\">\n <div className={cn(\n \"flex flex-col items-center justify-center transition-all duration-500\",\n isExpanded ? \"h-24 py-4\" : \"h-24 py-4\"\n )}>\n {isExpanded ? (\n logo ? (\n <div className=\"flex items-center gap-2\">\n {logo}\n </div>\n ) : (\n <img\n src={logoUrl}\n alt=\"Logo\"\n className=\"h-10 opacity-100 scale-100 transition-all duration-500 object-contain\"\n />\n )\n ) : (\n collapsedLogo ? (\n <div className=\"flex items-center gap-2 w-8\">\n {collapsedLogo}\n </div>\n ) : (\n <img\n src={logoUrl}\n alt=\"Logo\"\n className=\"h-7 opacity-90 transition-all duration-500 object-contain\"\n />\n )\n )}\n {isExpanded && !logo && (\n <span className=\"text-white/60 text-[10px] mt-1 font-medium tracking-wider uppercase\">\n Moldsoft\n </span>\n )}\n </div>\n\n <div className=\"px-4 mb-4\">\n <Separator className=\"bg-white/20\" />\n </div>\n\n {/* Nav Items */}\n <nav className=\"flex-1 px-1 space-y-1 overflow-y-auto no-scrollbar scroll-smooth\">\n {items.map((item) => (\n <SidebarNavLink\n key={item.href}\n item={item}\n isSidebarExpanded={isExpanded}\n isActive={checkActive(item)}\n checkActive={checkActive}\n />\n ))}\n </nav>\n\n {/* Footer Section */}\n <div className=\"mt-auto px-1 pb-2 space-y-1\">\n {footerItems.map((item) => (\n <SidebarNavLink\n key={item.href}\n item={item}\n isSidebarExpanded={isExpanded}\n isActive={checkActive(item)}\n checkActive={checkActive}\n />\n ))}\n {children && (\n <div className={cn(\n \"transition-all duration-500 overflow-hidden\",\n isExpanded ? \"opacity-100 mt-2\" : \"opacity-0 h-0\"\n )}>\n {children}\n </div>\n )}\n </div>\n </div>\n </main>\n </aside>\n )\n}\n\nfunction SidebarNavLink({\n item,\n isSidebarExpanded,\n isActive,\n checkActive,\n depth = 0\n}: {\n item: SidebarItem\n isSidebarExpanded: boolean\n isActive: boolean\n checkActive: (item: SidebarItem) => boolean\n depth?: number\n}) {\n const [isOpen, setIsOpen] = React.useState(isActive)\n const hasSubItems = item.items && item.items.length > 0\n\n // Update isOpen if isActive changes (to auto-expand when navigating)\n React.useEffect(() => {\n if (isActive) setIsOpen(true)\n }, [isActive])\n\n // Only allow sub-items to be visible if sidebar is expanded\n const isSubItemsVisible = hasSubItems && isSidebarExpanded && isOpen\n\n return (\n <div className=\"flex flex-col\">\n <a\n href={item.href}\n onClick={(e) => {\n if (hasSubItems) {\n e.preventDefault()\n setIsOpen(!isOpen)\n }\n }}\n className={cn(\n \"flex items-center h-12 rounded-2xl transition-all duration-500 px-3 relative group overflow-hidden\",\n isActive\n ? \"bg-[#092a5e] text-white\"\n : \"text-white/80 hover:bg-white/10 hover:text-white\"\n )}\n >\n {/* Smooth Centering Spacer - Only active when collapsed */}\n <div className={cn(\n \"transition-all duration-500 ease-in-out h-1\",\n isSidebarExpanded ? \"w-0 opacity-0\" : \"flex-1\"\n )} />\n\n {\n item.icon && (\n <div className={cn(\n \"shrink-0 w-8 h-8 flex items-center justify-center transition-all duration-500\"\n )}>\n {item.icon}\n </div>\n )\n }\n\n\n <span\n className={cn(\n \"font-medium whitespace-nowrap transition-all duration-500 ease-in-out overflow-hidden text-sm\",\n isSidebarExpanded ? \"opacity-100 w-auto\" : \"opacity-0 w-0 pointer-events-none\",\n item.icon ? \"ml-3\" : \"\"\n )}\n >\n {item.label}\n </span>\n\n {/* Right Spacer - Always pushes items to left when expanded, centers when combined with left spacer when collapsed */}\n <div className=\"flex-1 transition-all duration-500\" />\n\n {hasSubItems && isSidebarExpanded && (\n <div className={cn(\n \"transition-transform duration-300\",\n isOpen ? \"rotate-180\" : \"\"\n )}>\n <svg width=\"10\" height=\"6\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 1L5 5L9 1\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </div>\n )}\n </a>\n\n {/* Sub Items rendering */}\n {hasSubItems && isSidebarExpanded && (\n <div className={cn(\n \"overflow-hidden transition-all duration-300 ease-in-out\",\n isOpen ? \"max-h-96 opacity-100 mt-1\" : \"max-h-0 opacity-0\"\n )}>\n <div className=\"ml-7 border-l border-white/10 pl-3 py-1 space-y-1\">\n {item.items?.map((subItem) => (\n <SidebarNavLink\n key={subItem.href}\n item={subItem}\n isSidebarExpanded={isSidebarExpanded}\n isActive={checkActive(subItem)}\n checkActive={checkActive}\n depth={depth + 1}\n />\n ))}\n </div>\n </div>\n )}\n </div>\n )\n}","import * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className\n )}\n {...props}\n />\n )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n"],"mappings":"0jBAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,YAAAE,EAAA,SAAAC,EAAA,gBAAAC,EAAA,oBAAAC,EAAA,eAAAC,EAAA,eAAAC,EAAA,cAAAC,EAAA,SAAAC,EAAA,YAAAC,GAAA,mBAAAC,IAAA,eAAAC,EAAAZ,ICAA,IAAAa,EAAuB,oBACvBC,EAAqB,gCACrBC,EAAuC,oCCFvC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDwCM,IAAAC,EAAA,6BAvCAC,KAAiB,OACrB,2VACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,yDACT,YACE,qEACF,QACE,iFACF,UACE,+DACF,MAAO,+CACP,KAAM,iDACR,EACA,KAAM,CACJ,QAAS,iBACT,GAAI,sBACJ,GAAI,uBACJ,KAAM,WACR,CACF,EACA,gBAAiB,CACf,QAAS,UACT,KAAM,SACR,CACF,CACF,EAQMC,EAAe,aACnB,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,QAAAC,EAAU,GAAO,GAAGC,CAAM,EAAGC,OAGtD,OAFWF,EAAU,OAAO,SAE3B,CACC,UAAWG,EAAGR,EAAe,CAAE,QAAAG,EAAS,KAAAC,EAAM,UAAAF,CAAU,CAAC,CAAC,EAC1D,IAAKK,EACJ,GAAGD,EACN,CAGN,EACAL,EAAO,YAAc,SErDrB,IAAAQ,EAAuB,oBAQrB,IAAAC,EAAA,6BAJIC,EAAa,aAGjB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,OAC1B,OAAC,OACC,IAAKA,EACL,UAAWC,EACT,2DACAH,CACF,EACC,GAAGC,EACN,CACD,EACDF,EAAK,YAAc,OAEnB,IAAMK,EA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CR,EAAK,SACD,OAAC,OAAI,UAAWK,EACZ,+EACJ,EACK,SAAAL,EAAK,KACV,KAKR,OAAC,QACG,UAAWK,EACP,gGACAG,EAAoB,qBAAuB,oCAC3CR,EAAK,KAAO,OAAS,EACzB,EAEC,SAAAA,EAAK,MACV,KAGA,OAAC,OAAI,UAAU,qCAAqC,EAEnDa,GAAeL,MACZ,OAAC,OAAI,UAAWH,EACZ,oCACAM,EAAS,aAAe,EAC5B,EACI,mBAAC,OAAI,MAAM,KAAK,OAAO,IAAI,QAAQ,WAAW,KAAK,OAAO,MAAM,6BAC5D,mBAAC,QAAK,EAAE,eAAe,OAAO,eAAe,YAAY,MAAM,cAAc,QAAQ,eAAe,QAAQ,EAChH,EACJ,GAER,EAGCE,GAAeL,MACZ,OAAC,OAAI,UAAWH,EACZ,0DACAM,EAAS,4BAA8B,mBAC3C,EACI,mBAAC,OAAI,UAAU,oDACV,SAAAX,EAAK,OAAO,IAAKgB,MACd,OAACT,EAAA,CAEG,KAAMS,EACN,kBAAmBR,EACnB,SAAUT,EAAYiB,CAAO,EAC7B,YAAajB,EACb,MAAOW,EAAQ,GALVM,EAAQ,IAMjB,CACH,EACL,EACJ,GAER,CAER","names":["index_exports","__export","Button","Card","CardContent","CardDescription","CardFooter","CardHeader","CardTitle","Logo","Sidebar","buttonVariants","__toCommonJS","React","import_react_slot","import_class_variance_authority","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","buttonVariants","Button","className","variant","size","asChild","props","ref","cn","React","import_jsx_runtime","Card","className","props","ref","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","import_jsx_runtime","Logo","size","className","props","logo_default","React","React","SeparatorPrimitive","import_jsx_runtime","Separator","className","orientation","decorative","props","ref","cn","import_jsx_runtime","Sidebar","children","logo","collapsedLogo","items","footerItems","showBackground","className","activePath","isExpanded","setIsExpanded","checkActive","item","bgUrl","bg_blue_default","logoUrl","white_icon_default","cn","Separator","SidebarNavLink","isSidebarExpanded","isActive","depth","isOpen","setIsOpen","hasSubItems","isSubItemsVisible","e","subItem"]}
|