neos-blocks
Version:
🌟 A simple ui-blocks library built on components from https://ui.shadcn.com/docs/components
3 lines (2 loc) • 2.24 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),n=require("./index.cjs6.js"),o=require("./index.cjs5.js"),m=require("./index.cjs7.js"),s=require("./index.cjs8.js"),c=require("./index.cjs9.js"),t=require("lucide-react");function p(a){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const i in a)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(l,i,r.get?r:{enumerable:!0,get:()=>a[i]})}}return l.default=a,Object.freeze(l)}const e=p(u),b=({})=>{const[a,l]=e.useState(!1);return e.createElement(m.TooltipProvider,{delayDuration:0},e.createElement(n.ResizablePanelGroup,{direction:"horizontal",className:"h-full max-h-[800px] items-stretch"},e.createElement(n.ResizablePanel,{defaultSize:22,collapsedSize:4,collapsible:!0,minSize:15,maxSize:20,onCollapse:()=>l(!0),className:o.cn(a&&"min-w-[50px] transition-all duration-300 ease-in-out")},e.createElement("div",{className:o.cn("flex h-[52px] items-center justify-center",a?"h-[52px]":"px-2")},e.createElement("h1",null,"Logo")),e.createElement(s.Separator,null),e.createElement(c.Nav,{isCollapsed:a,links:[{title:"Inbox",label:"128",icon:t.Inbox,variant:"default"},{title:"Drafts",label:"9",icon:t.Folder,variant:"ghost"},{title:"Sent",label:"",icon:t.Send,variant:"ghost"},{title:"Junk",label:"23",icon:t.Archive,variant:"ghost"},{title:"Trash",label:"",icon:t.Trash2,variant:"ghost"},{title:"Archive",label:"",icon:t.Archive,variant:"ghost"}]}),e.createElement(s.Separator,null),e.createElement(c.Nav,{isCollapsed:a,links:[{title:"Social",label:"972",icon:t.Users2,variant:"ghost"},{title:"Updates",label:"342",icon:t.AlertCircle,variant:"ghost"},{title:"Forums",label:"128",icon:t.MessagesSquare,variant:"ghost"},{title:"Shopping",label:"8",icon:t.ShoppingCart,variant:"ghost"},{title:"Promotions",label:"21",icon:t.Archive,variant:"ghost"}]})),e.createElement(n.ResizableHandle,{withHandle:!0}),e.createElement(n.ResizablePanel,{defaultSize:75},e.createElement("div",{className:"flex h-full items-center justify-center p-6"},e.createElement("span",{className:"font-semibold"},"Content")))))};exports.SidebarCollapsible=b;
//# sourceMappingURL=index.cjs3.js.map